Sha256: 0a7066b0f4d15cce27ceb0d8310d0ce6d8440e23ca7d87a569d82b2176c2a540

Contents?: true

Size: 837 Bytes

Versions: 7

Compression:

Stored size: 837 Bytes

Contents

module ChargeBee
  class Transaction < Model

  attr_accessor :id, :subscription_id, :payment_method, :gateway, :description, :type, :date,
  :amount, :id_at_gateway, :status, :error_code, :error_text, :voided_at, :masked_card_number,
  :refunded_txn_id

  # OPERATIONS
  #-----------
    
  def self.list(params={}, env=nil)
    Request.send('get', "/transactions", params, env)
  end    

  def self.transactions_for_subscription(id, params={}, env=nil)
    Request.send('get', "/subscriptions/#{id.to_s}/transactions", params, env)
  end    

  def self.transactions_for_invoice(id, params={}, env=nil)
    Request.send('get', "/invoices/#{id.to_s}/transactions", params, env)
  end    

  def self.retrieve(id, env=nil)
    Request.send('get', "/transactions/#{id.to_s}", {}, env)
  end    

  end # ~Transaction
end # ~ChargeBee    

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
chargebee-1.3.2 lib/chargebee/models/transaction.rb
chargebee-1.3.1 lib/chargebee/models/transaction.rb
chargebee-1.3.0 lib/chargebee/models/transaction.rb
chargebee-1.2.9 lib/chargebee/models/transaction.rb
chargebee-1.2.8 lib/chargebee/models/transaction.rb
chargebee-1.2.7 lib/chargebee/models/transaction.rb
chargebee-1.2.6 lib/chargebee/models/transaction.rb