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