Class: ChargeBee::Transaction
- Defined in:
- lib/chargebee/models/transaction.rb
Defined Under Namespace
Classes: LinkedCreditNote, LinkedInvoice, LinkedRefund
Instance Attribute Summary collapse
-
#amount ⇒ Object
Returns the value of attribute amount.
-
#amount_unused ⇒ Object
Returns the value of attribute amount_unused.
-
#currency_code ⇒ Object
Returns the value of attribute currency_code.
-
#customer_id ⇒ Object
Returns the value of attribute customer_id.
-
#date ⇒ Object
Returns the value of attribute date.
-
#deleted ⇒ Object
Returns the value of attribute deleted.
-
#error_code ⇒ Object
Returns the value of attribute error_code.
-
#error_text ⇒ Object
Returns the value of attribute error_text.
-
#gateway ⇒ Object
Returns the value of attribute gateway.
-
#gateway_account_id ⇒ Object
Returns the value of attribute gateway_account_id.
-
#id ⇒ Object
Returns the value of attribute id.
-
#id_at_gateway ⇒ Object
Returns the value of attribute id_at_gateway.
-
#linked_credit_notes ⇒ Object
Returns the value of attribute linked_credit_notes.
-
#linked_invoices ⇒ Object
Returns the value of attribute linked_invoices.
-
#linked_refunds ⇒ Object
Returns the value of attribute linked_refunds.
-
#masked_card_number ⇒ Object
Returns the value of attribute masked_card_number.
-
#payment_method ⇒ Object
Returns the value of attribute payment_method.
-
#reference_number ⇒ Object
Returns the value of attribute reference_number.
-
#reference_transaction_id ⇒ Object
Returns the value of attribute reference_transaction_id.
-
#refunded_txn_id ⇒ Object
Returns the value of attribute refunded_txn_id.
-
#resource_version ⇒ Object
Returns the value of attribute resource_version.
-
#reversal_transaction_id ⇒ Object
Returns the value of attribute reversal_transaction_id.
-
#status ⇒ Object
Returns the value of attribute status.
-
#subscription_id ⇒ Object
Returns the value of attribute subscription_id.
-
#type ⇒ Object
Returns the value of attribute type.
-
#updated_at ⇒ Object
Returns the value of attribute updated_at.
-
#voided_at ⇒ Object
Returns the value of attribute voided_at.
Class Method Summary collapse
-
.list(params = {}, env = nil, headers = {}) ⇒ Object
OPERATIONS ———–.
- .payments_for_invoice(id, params = {}, env = nil, headers = {}) ⇒ Object
- .retrieve(id, env = nil, headers = {}) ⇒ Object
- .transactions_for_customer(id, params = {}, env = nil, headers = {}) ⇒ Object
- .transactions_for_subscription(id, params = {}, env = nil, headers = {}) ⇒ Object
Methods inherited from Model
construct, #init_dependant, #init_dependant_list, #initialize, #inspect, #load, #method_missing, #to_s, uri_path
Constructor Details
This class inherits a constructor from ChargeBee::Model
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class ChargeBee::Model
Instance Attribute Details
#amount ⇒ Object
Returns the value of attribute amount.
16 17 18 |
# File 'lib/chargebee/models/transaction.rb', line 16 def amount @amount end |
#amount_unused ⇒ Object
Returns the value of attribute amount_unused.
16 17 18 |
# File 'lib/chargebee/models/transaction.rb', line 16 def amount_unused @amount_unused end |
#currency_code ⇒ Object
Returns the value of attribute currency_code.
16 17 18 |
# File 'lib/chargebee/models/transaction.rb', line 16 def currency_code @currency_code end |
#customer_id ⇒ Object
Returns the value of attribute customer_id.
16 17 18 |
# File 'lib/chargebee/models/transaction.rb', line 16 def customer_id @customer_id end |
#date ⇒ Object
Returns the value of attribute date.
16 17 18 |
# File 'lib/chargebee/models/transaction.rb', line 16 def date @date end |
#deleted ⇒ Object
Returns the value of attribute deleted.
16 17 18 |
# File 'lib/chargebee/models/transaction.rb', line 16 def deleted @deleted end |
#error_code ⇒ Object
Returns the value of attribute error_code.
16 17 18 |
# File 'lib/chargebee/models/transaction.rb', line 16 def error_code @error_code end |
#error_text ⇒ Object
Returns the value of attribute error_text.
16 17 18 |
# File 'lib/chargebee/models/transaction.rb', line 16 def error_text @error_text end |
#gateway ⇒ Object
Returns the value of attribute gateway.
16 17 18 |
# File 'lib/chargebee/models/transaction.rb', line 16 def gateway @gateway end |
#gateway_account_id ⇒ Object
Returns the value of attribute gateway_account_id.
16 17 18 |
# File 'lib/chargebee/models/transaction.rb', line 16 def gateway_account_id @gateway_account_id end |
#id ⇒ Object
Returns the value of attribute id.
16 17 18 |
# File 'lib/chargebee/models/transaction.rb', line 16 def id @id end |
#id_at_gateway ⇒ Object
Returns the value of attribute id_at_gateway.
16 17 18 |
# File 'lib/chargebee/models/transaction.rb', line 16 def id_at_gateway @id_at_gateway end |
#linked_credit_notes ⇒ Object
Returns the value of attribute linked_credit_notes.
16 17 18 |
# File 'lib/chargebee/models/transaction.rb', line 16 def linked_credit_notes @linked_credit_notes end |
#linked_invoices ⇒ Object
Returns the value of attribute linked_invoices.
16 17 18 |
# File 'lib/chargebee/models/transaction.rb', line 16 def linked_invoices @linked_invoices end |
#linked_refunds ⇒ Object
Returns the value of attribute linked_refunds.
16 17 18 |
# File 'lib/chargebee/models/transaction.rb', line 16 def linked_refunds @linked_refunds end |
#masked_card_number ⇒ Object
Returns the value of attribute masked_card_number.
16 17 18 |
# File 'lib/chargebee/models/transaction.rb', line 16 def masked_card_number @masked_card_number end |
#payment_method ⇒ Object
Returns the value of attribute payment_method.
16 17 18 |
# File 'lib/chargebee/models/transaction.rb', line 16 def payment_method @payment_method end |
#reference_number ⇒ Object
Returns the value of attribute reference_number.
16 17 18 |
# File 'lib/chargebee/models/transaction.rb', line 16 def reference_number @reference_number end |
#reference_transaction_id ⇒ Object
Returns the value of attribute reference_transaction_id.
16 17 18 |
# File 'lib/chargebee/models/transaction.rb', line 16 def reference_transaction_id @reference_transaction_id end |
#refunded_txn_id ⇒ Object
Returns the value of attribute refunded_txn_id.
16 17 18 |
# File 'lib/chargebee/models/transaction.rb', line 16 def refunded_txn_id @refunded_txn_id end |
#resource_version ⇒ Object
Returns the value of attribute resource_version.
16 17 18 |
# File 'lib/chargebee/models/transaction.rb', line 16 def resource_version @resource_version end |
#reversal_transaction_id ⇒ Object
Returns the value of attribute reversal_transaction_id.
16 17 18 |
# File 'lib/chargebee/models/transaction.rb', line 16 def reversal_transaction_id @reversal_transaction_id end |
#status ⇒ Object
Returns the value of attribute status.
16 17 18 |
# File 'lib/chargebee/models/transaction.rb', line 16 def status @status end |
#subscription_id ⇒ Object
Returns the value of attribute subscription_id.
16 17 18 |
# File 'lib/chargebee/models/transaction.rb', line 16 def subscription_id @subscription_id end |
#type ⇒ Object
Returns the value of attribute type.
16 17 18 |
# File 'lib/chargebee/models/transaction.rb', line 16 def type @type end |
#updated_at ⇒ Object
Returns the value of attribute updated_at.
16 17 18 |
# File 'lib/chargebee/models/transaction.rb', line 16 def updated_at @updated_at end |
#voided_at ⇒ Object
Returns the value of attribute voided_at.
16 17 18 |
# File 'lib/chargebee/models/transaction.rb', line 16 def voided_at @voided_at end |
Class Method Details
.list(params = {}, env = nil, headers = {}) ⇒ Object
OPERATIONS
25 26 27 |
# File 'lib/chargebee/models/transaction.rb', line 25 def self.list(params={}, env=nil, headers={}) Request.send_list_request('get', uri_path("transactions"), params, env, headers) end |
.payments_for_invoice(id, params = {}, env = nil, headers = {}) ⇒ Object
37 38 39 |
# File 'lib/chargebee/models/transaction.rb', line 37 def self.payments_for_invoice(id, params={}, env=nil, headers={}) Request.send('get', uri_path("invoices",id.to_s,"payments"), params, env, headers) end |
.retrieve(id, env = nil, headers = {}) ⇒ Object
41 42 43 |
# File 'lib/chargebee/models/transaction.rb', line 41 def self.retrieve(id, env=nil, headers={}) Request.send('get', uri_path("transactions",id.to_s), {}, env, headers) end |
.transactions_for_customer(id, params = {}, env = nil, headers = {}) ⇒ Object
29 30 31 |
# File 'lib/chargebee/models/transaction.rb', line 29 def self.transactions_for_customer(id, params={}, env=nil, headers={}) Request.send('get', uri_path("customers",id.to_s,"transactions"), params, env, headers) end |
.transactions_for_subscription(id, params = {}, env = nil, headers = {}) ⇒ Object
33 34 35 |
# File 'lib/chargebee/models/transaction.rb', line 33 def self.transactions_for_subscription(id, params={}, env=nil, headers={}) Request.send('get', uri_path("subscriptions",id.to_s,"transactions"), params, env, headers) end |