Sha256: f3c0e9d81f1fc4a9d5aa25bf9d0bb5180818fa146b0efc2b9de25e119251fc4f
Contents?: true
Size: 1.43 KB
Versions: 4
Compression:
Stored size: 1.43 KB
Contents
module ChargeBee class Transaction < Model class LinkedInvoice < Model attr_accessor :invoice_id, :applied_amount, :invoice_date, :invoice_amount end attr_accessor :id, :customer_id, :subscription_id, :payment_method, :reference_number, :gateway, :description, :type, :date, :amount, :id_at_gateway, :status, :error_code, :error_text, :voided_at, :void_description, :masked_card_number, :refunded_txn_id, :linked_invoices, :currency_code # OPERATIONS #----------- def self.list(params={}, env=nil, headers={}) Request.send('get', uri_path("transactions"), params, env, headers) end def self.transactions_for_customer(id, params={}, env=nil, headers={}) Request.send('get', uri_path("customers",id.to_s,"transactions"), params, env, headers) end def self.transactions_for_subscription(id, params={}, env=nil, headers={}) Request.send('get', uri_path("subscriptions",id.to_s,"transactions"), params, env, headers) end def self.transactions_for_invoice(id, params={}, env=nil, headers={}) Request.send('get', uri_path("invoices",id.to_s,"transactions"), params, env, headers) end def self.retrieve(id, env=nil, headers={}) Request.send('get', uri_path("transactions",id.to_s), {}, env, headers) end def self.record_payment(id, params, env=nil, headers={}) Request.send('post', uri_path("invoices",id.to_s,"record_payment"), params, env, headers) end end # ~Transaction end # ~ChargeBee
Version data entries
4 entries across 4 versions & 1 rubygems