Class: ChargeBee::Transaction

Inherits:
Model
  • Object
show all
Defined in:
lib/chargebee/models/transaction.rb

Defined Under Namespace

Classes: LinkedCreditNote, LinkedInvoice, LinkedPayment, LinkedRefund

Instance Attribute Summary collapse

Class Method Summary collapse

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

#amountObject

Returns the value of attribute amount.



20
21
22
# File 'lib/chargebee/models/transaction.rb', line 20

def amount
  @amount
end

#amount_capturableObject

Returns the value of attribute amount_capturable.



20
21
22
# File 'lib/chargebee/models/transaction.rb', line 20

def amount_capturable
  @amount_capturable
end

#amount_unusedObject

Returns the value of attribute amount_unused.



20
21
22
# File 'lib/chargebee/models/transaction.rb', line 20

def amount_unused
  @amount_unused
end

#authorization_reasonObject

Returns the value of attribute authorization_reason.



20
21
22
# File 'lib/chargebee/models/transaction.rb', line 20

def authorization_reason
  @authorization_reason
end

#business_entity_idObject

Returns the value of attribute business_entity_id.



20
21
22
# File 'lib/chargebee/models/transaction.rb', line 20

def business_entity_id
  @business_entity_id
end

#currency_codeObject

Returns the value of attribute currency_code.



20
21
22
# File 'lib/chargebee/models/transaction.rb', line 20

def currency_code
  @currency_code
end

#customer_idObject

Returns the value of attribute customer_id.



20
21
22
# File 'lib/chargebee/models/transaction.rb', line 20

def customer_id
  @customer_id
end

#dateObject

Returns the value of attribute date.



20
21
22
# File 'lib/chargebee/models/transaction.rb', line 20

def date
  @date
end

#deletedObject

Returns the value of attribute deleted.



20
21
22
# File 'lib/chargebee/models/transaction.rb', line 20

def deleted
  @deleted
end

#error_codeObject

Returns the value of attribute error_code.



20
21
22
# File 'lib/chargebee/models/transaction.rb', line 20

def error_code
  @error_code
end

#error_textObject

Returns the value of attribute error_text.



20
21
22
# File 'lib/chargebee/models/transaction.rb', line 20

def error_text
  @error_text
end

#exchange_rateObject

Returns the value of attribute exchange_rate.



20
21
22
# File 'lib/chargebee/models/transaction.rb', line 20

def exchange_rate
  @exchange_rate
end

#fraud_flagObject

Returns the value of attribute fraud_flag.



20
21
22
# File 'lib/chargebee/models/transaction.rb', line 20

def fraud_flag
  @fraud_flag
end

#fraud_reasonObject

Returns the value of attribute fraud_reason.



20
21
22
# File 'lib/chargebee/models/transaction.rb', line 20

def fraud_reason
  @fraud_reason
end

#gatewayObject

Returns the value of attribute gateway.



20
21
22
# File 'lib/chargebee/models/transaction.rb', line 20

def gateway
  @gateway
end

#gateway_account_idObject

Returns the value of attribute gateway_account_id.



20
21
22
# File 'lib/chargebee/models/transaction.rb', line 20

def 
  @gateway_account_id
end

#idObject

Returns the value of attribute id.



20
21
22
# File 'lib/chargebee/models/transaction.rb', line 20

def id
  @id
end

#id_at_gatewayObject

Returns the value of attribute id_at_gateway.



20
21
22
# File 'lib/chargebee/models/transaction.rb', line 20

def id_at_gateway
  @id_at_gateway
end

#iinObject

Returns the value of attribute iin.



20
21
22
# File 'lib/chargebee/models/transaction.rb', line 20

def iin
  @iin
end

#initiator_typeObject

Returns the value of attribute initiator_type.



20
21
22
# File 'lib/chargebee/models/transaction.rb', line 20

def initiator_type
  @initiator_type
end

#last4Object

Returns the value of attribute last4.



20
21
22
# File 'lib/chargebee/models/transaction.rb', line 20

def last4
  @last4
end

#linked_credit_notesObject

Returns the value of attribute linked_credit_notes.



20
21
22
# File 'lib/chargebee/models/transaction.rb', line 20

def linked_credit_notes
  @linked_credit_notes
end

#linked_invoicesObject

Returns the value of attribute linked_invoices.



20
21
22
# File 'lib/chargebee/models/transaction.rb', line 20

def linked_invoices
  @linked_invoices
end

#linked_paymentsObject

Returns the value of attribute linked_payments.



20
21
22
# File 'lib/chargebee/models/transaction.rb', line 20

def linked_payments
  @linked_payments
end

#linked_refundsObject

Returns the value of attribute linked_refunds.



20
21
22
# File 'lib/chargebee/models/transaction.rb', line 20

def linked_refunds
  @linked_refunds
end

#masked_card_numberObject

Returns the value of attribute masked_card_number.



20
21
22
# File 'lib/chargebee/models/transaction.rb', line 20

def masked_card_number
  @masked_card_number
end

#merchant_reference_idObject

Returns the value of attribute merchant_reference_id.



20
21
22
# File 'lib/chargebee/models/transaction.rb', line 20

def merchant_reference_id
  @merchant_reference_id
end

#payment_methodObject

Returns the value of attribute payment_method.



20
21
22
# File 'lib/chargebee/models/transaction.rb', line 20

def payment_method
  @payment_method
end

#payment_source_idObject

Returns the value of attribute payment_source_id.



20
21
22
# File 'lib/chargebee/models/transaction.rb', line 20

def payment_source_id
  @payment_source_id
end

#reference_authorization_idObject

Returns the value of attribute reference_authorization_id.



20
21
22
# File 'lib/chargebee/models/transaction.rb', line 20

def reference_authorization_id
  @reference_authorization_id
end

#reference_numberObject

Returns the value of attribute reference_number.



20
21
22
# File 'lib/chargebee/models/transaction.rb', line 20

def reference_number
  @reference_number
end

#reference_transaction_idObject

Returns the value of attribute reference_transaction_id.



20
21
22
# File 'lib/chargebee/models/transaction.rb', line 20

def reference_transaction_id
  @reference_transaction_id
end

#refunded_txn_idObject

Returns the value of attribute refunded_txn_id.



20
21
22
# File 'lib/chargebee/models/transaction.rb', line 20

def refunded_txn_id
  @refunded_txn_id
end

#resource_versionObject

Returns the value of attribute resource_version.



20
21
22
# File 'lib/chargebee/models/transaction.rb', line 20

def resource_version
  @resource_version
end

#reversal_transaction_idObject

Returns the value of attribute reversal_transaction_id.



20
21
22
# File 'lib/chargebee/models/transaction.rb', line 20

def reversal_transaction_id
  @reversal_transaction_id
end

#settled_atObject

Returns the value of attribute settled_at.



20
21
22
# File 'lib/chargebee/models/transaction.rb', line 20

def settled_at
  @settled_at
end

#statusObject

Returns the value of attribute status.



20
21
22
# File 'lib/chargebee/models/transaction.rb', line 20

def status
  @status
end

#subscription_idObject

Returns the value of attribute subscription_id.



20
21
22
# File 'lib/chargebee/models/transaction.rb', line 20

def subscription_id
  @subscription_id
end

#three_d_secureObject

Returns the value of attribute three_d_secure.



20
21
22
# File 'lib/chargebee/models/transaction.rb', line 20

def three_d_secure
  @three_d_secure
end

#typeObject

Returns the value of attribute type.



20
21
22
# File 'lib/chargebee/models/transaction.rb', line 20

def type
  @type
end

#updated_atObject

Returns the value of attribute updated_at.



20
21
22
# File 'lib/chargebee/models/transaction.rb', line 20

def updated_at
  @updated_at
end

#voided_atObject

Returns the value of attribute voided_at.



20
21
22
# File 'lib/chargebee/models/transaction.rb', line 20

def voided_at
  @voided_at
end

Class Method Details

.create_authorization(params, env = nil, headers = {}) ⇒ Object

OPERATIONS




31
32
33
# File 'lib/chargebee/models/transaction.rb', line 31

def self.create_authorization(params, env=nil, headers={})
  Request.send('post', uri_path("transactions","create_authorization"), params, env, headers)
end

.delete_offline_transaction(id, params = {}, env = nil, headers = {}) ⇒ Object



67
68
69
# File 'lib/chargebee/models/transaction.rb', line 67

def self.delete_offline_transaction(id, params={}, env=nil, headers={})
  Request.send('post', uri_path("transactions",id.to_s,"delete_offline_transaction"), params, env, headers)
end

.list(params = {}, env = nil, headers = {}) ⇒ Object



47
48
49
# File 'lib/chargebee/models/transaction.rb', line 47

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



59
60
61
# File 'lib/chargebee/models/transaction.rb', line 59

def self.payments_for_invoice(id, params={}, env=nil, headers={})
  Request.send('get', uri_path("invoices",id.to_s,"payments"), params, env, headers)
end

.record_refund(id, params, env = nil, headers = {}) ⇒ Object



39
40
41
# File 'lib/chargebee/models/transaction.rb', line 39

def self.record_refund(id, params, env=nil, headers={})
  Request.send('post', uri_path("transactions",id.to_s,"record_refund"), params, env, headers)
end

.refund(id, params = {}, env = nil, headers = {}) ⇒ Object



43
44
45
# File 'lib/chargebee/models/transaction.rb', line 43

def self.refund(id, params={}, env=nil, headers={})
  Request.send('post', uri_path("transactions",id.to_s,"refund"), params, env, headers)
end

.retrieve(id, env = nil, headers = {}) ⇒ Object



63
64
65
# File 'lib/chargebee/models/transaction.rb', line 63

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



51
52
53
# File 'lib/chargebee/models/transaction.rb', line 51

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



55
56
57
# File 'lib/chargebee/models/transaction.rb', line 55

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

.void_transaction(id, env = nil, headers = {}) ⇒ Object



35
36
37
# File 'lib/chargebee/models/transaction.rb', line 35

def self.void_transaction(id, env=nil, headers={})
  Request.send('post', uri_path("transactions",id.to_s,"void"), {}, env, headers)
end