Class: ChargeBee::Transaction
- Defined in:
- lib/chargebee/models/transaction.rb
Defined Under Namespace
Classes: GatewayErrorDetail, GatewayMetadata, LinkedCreditNote, LinkedInvoice, LinkedPayment, LinkedRefund, NetworkTransactionDetail
Instance Attribute Summary collapse
-
#amount ⇒ Object
Returns the value of attribute amount.
-
#amount_capturable ⇒ Object
Returns the value of attribute amount_capturable.
-
#amount_unused ⇒ Object
Returns the value of attribute amount_unused.
-
#authorization_reason ⇒ Object
Returns the value of attribute authorization_reason.
-
#business_entity_id ⇒ Object
Returns the value of attribute business_entity_id.
-
#currency_code ⇒ Object
Returns the value of attribute currency_code.
-
#custom_payment_method_id ⇒ Object
Returns the value of attribute custom_payment_method_id.
-
#custom_payment_method_name ⇒ Object
Returns the value of attribute custom_payment_method_name.
-
#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_detail ⇒ Object
Returns the value of attribute error_detail.
-
#error_text ⇒ Object
Returns the value of attribute error_text.
-
#exchange_rate ⇒ Object
Returns the value of attribute exchange_rate.
-
#fraud_flag ⇒ Object
Returns the value of attribute fraud_flag.
-
#fraud_reason ⇒ Object
Returns the value of attribute fraud_reason.
-
#gateway ⇒ Object
Returns the value of attribute gateway.
-
#gateway_account_id ⇒ Object
Returns the value of attribute gateway_account_id.
-
#gateway_metadata ⇒ Object
Returns the value of attribute gateway_metadata.
-
#id ⇒ Object
Returns the value of attribute id.
-
#id_at_gateway ⇒ Object
Returns the value of attribute id_at_gateway.
-
#iin ⇒ Object
Returns the value of attribute iin.
-
#initiator_type ⇒ Object
Returns the value of attribute initiator_type.
-
#last4 ⇒ Object
Returns the value of attribute last4.
-
#linked_credit_notes ⇒ Object
Returns the value of attribute linked_credit_notes.
-
#linked_invoices ⇒ Object
Returns the value of attribute linked_invoices.
-
#linked_payments ⇒ Object
Returns the value of attribute linked_payments.
-
#linked_refunds ⇒ Object
Returns the value of attribute linked_refunds.
-
#masked_card_number ⇒ Object
Returns the value of attribute masked_card_number.
-
#merchant_reference_id ⇒ Object
Returns the value of attribute merchant_reference_id.
-
#network_transaction_details ⇒ Object
Returns the value of attribute network_transaction_details.
-
#payment_method ⇒ Object
Returns the value of attribute payment_method.
-
#payment_method_details ⇒ Object
Returns the value of attribute payment_method_details.
-
#payment_source_id ⇒ Object
Returns the value of attribute payment_source_id.
-
#reference_authorization_id ⇒ Object
Returns the value of attribute reference_authorization_id.
-
#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.
-
#settled_at ⇒ Object
Returns the value of attribute settled_at.
-
#status ⇒ Object
Returns the value of attribute status.
-
#subscription_id ⇒ Object
Returns the value of attribute subscription_id.
-
#three_d_secure ⇒ Object
Returns the value of attribute three_d_secure.
-
#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
-
.create_authorization(params, env = nil, headers = {}) ⇒ Object
OPERATIONS -----------.
- .delete_offline_transaction(id, params = {}, env = nil, headers = {}) ⇒ Object
- .list(params = {}, env = nil, headers = {}) ⇒ Object
- .payments_for_invoice(id, params = {}, env = nil, headers = {}) ⇒ Object
- .reconcile(id, params = {}, env = nil, headers = {}) ⇒ Object
- .record_refund(id, params, env = nil, headers = {}) ⇒ Object
- .refund(id, params = {}, env = nil, headers = {}) ⇒ Object
- .retrieve(id, env = nil, headers = {}) ⇒ Object
-
.transactions_for_customer(id, params = {}, env = nil, headers = {}) ⇒ Object
deprecated
Deprecated.
This method is deprecated and will be removed in a future version.
-
.transactions_for_subscription(id, params = {}, env = nil, headers = {}) ⇒ Object
deprecated
Deprecated.
This method is deprecated and will be removed in a future version.
- .void_transaction(id, env = nil, headers = {}) ⇒ Object
Methods inherited from Model
construct, #init_dependant, #init_dependant_list, #initialize, #inspect, #load, #method_missing, #replace_white_space_with_underscore, #respond_to_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.
32 33 34 |
# File 'lib/chargebee/models/transaction.rb', line 32 def amount @amount end |
#amount_capturable ⇒ Object
Returns the value of attribute amount_capturable.
32 33 34 |
# File 'lib/chargebee/models/transaction.rb', line 32 def amount_capturable @amount_capturable end |
#amount_unused ⇒ Object
Returns the value of attribute amount_unused.
32 33 34 |
# File 'lib/chargebee/models/transaction.rb', line 32 def amount_unused @amount_unused end |
#authorization_reason ⇒ Object
Returns the value of attribute authorization_reason.
32 33 34 |
# File 'lib/chargebee/models/transaction.rb', line 32 def @authorization_reason end |
#business_entity_id ⇒ Object
Returns the value of attribute business_entity_id.
32 33 34 |
# File 'lib/chargebee/models/transaction.rb', line 32 def business_entity_id @business_entity_id end |
#currency_code ⇒ Object
Returns the value of attribute currency_code.
32 33 34 |
# File 'lib/chargebee/models/transaction.rb', line 32 def currency_code @currency_code end |
#custom_payment_method_id ⇒ Object
Returns the value of attribute custom_payment_method_id.
32 33 34 |
# File 'lib/chargebee/models/transaction.rb', line 32 def custom_payment_method_id @custom_payment_method_id end |
#custom_payment_method_name ⇒ Object
Returns the value of attribute custom_payment_method_name.
32 33 34 |
# File 'lib/chargebee/models/transaction.rb', line 32 def custom_payment_method_name @custom_payment_method_name end |
#customer_id ⇒ Object
Returns the value of attribute customer_id.
32 33 34 |
# File 'lib/chargebee/models/transaction.rb', line 32 def customer_id @customer_id end |
#date ⇒ Object
Returns the value of attribute date.
32 33 34 |
# File 'lib/chargebee/models/transaction.rb', line 32 def date @date end |
#deleted ⇒ Object
Returns the value of attribute deleted.
32 33 34 |
# File 'lib/chargebee/models/transaction.rb', line 32 def deleted @deleted end |
#error_code ⇒ Object
Returns the value of attribute error_code.
32 33 34 |
# File 'lib/chargebee/models/transaction.rb', line 32 def error_code @error_code end |
#error_detail ⇒ Object
Returns the value of attribute error_detail.
32 33 34 |
# File 'lib/chargebee/models/transaction.rb', line 32 def error_detail @error_detail end |
#error_text ⇒ Object
Returns the value of attribute error_text.
32 33 34 |
# File 'lib/chargebee/models/transaction.rb', line 32 def error_text @error_text end |
#exchange_rate ⇒ Object
Returns the value of attribute exchange_rate.
32 33 34 |
# File 'lib/chargebee/models/transaction.rb', line 32 def exchange_rate @exchange_rate end |
#fraud_flag ⇒ Object
Returns the value of attribute fraud_flag.
32 33 34 |
# File 'lib/chargebee/models/transaction.rb', line 32 def fraud_flag @fraud_flag end |
#fraud_reason ⇒ Object
Returns the value of attribute fraud_reason.
32 33 34 |
# File 'lib/chargebee/models/transaction.rb', line 32 def fraud_reason @fraud_reason end |
#gateway ⇒ Object
Returns the value of attribute gateway.
32 33 34 |
# File 'lib/chargebee/models/transaction.rb', line 32 def gateway @gateway end |
#gateway_account_id ⇒ Object
Returns the value of attribute gateway_account_id.
32 33 34 |
# File 'lib/chargebee/models/transaction.rb', line 32 def gateway_account_id @gateway_account_id end |
#gateway_metadata ⇒ Object
Returns the value of attribute gateway_metadata.
32 33 34 |
# File 'lib/chargebee/models/transaction.rb', line 32 def @gateway_metadata end |
#id ⇒ Object
Returns the value of attribute id.
32 33 34 |
# File 'lib/chargebee/models/transaction.rb', line 32 def id @id end |
#id_at_gateway ⇒ Object
Returns the value of attribute id_at_gateway.
32 33 34 |
# File 'lib/chargebee/models/transaction.rb', line 32 def id_at_gateway @id_at_gateway end |
#iin ⇒ Object
Returns the value of attribute iin.
32 33 34 |
# File 'lib/chargebee/models/transaction.rb', line 32 def iin @iin end |
#initiator_type ⇒ Object
Returns the value of attribute initiator_type.
32 33 34 |
# File 'lib/chargebee/models/transaction.rb', line 32 def initiator_type @initiator_type end |
#last4 ⇒ Object
Returns the value of attribute last4.
32 33 34 |
# File 'lib/chargebee/models/transaction.rb', line 32 def last4 @last4 end |
#linked_credit_notes ⇒ Object
Returns the value of attribute linked_credit_notes.
32 33 34 |
# File 'lib/chargebee/models/transaction.rb', line 32 def linked_credit_notes @linked_credit_notes end |
#linked_invoices ⇒ Object
Returns the value of attribute linked_invoices.
32 33 34 |
# File 'lib/chargebee/models/transaction.rb', line 32 def linked_invoices @linked_invoices end |
#linked_payments ⇒ Object
Returns the value of attribute linked_payments.
32 33 34 |
# File 'lib/chargebee/models/transaction.rb', line 32 def linked_payments @linked_payments end |
#linked_refunds ⇒ Object
Returns the value of attribute linked_refunds.
32 33 34 |
# File 'lib/chargebee/models/transaction.rb', line 32 def linked_refunds @linked_refunds end |
#masked_card_number ⇒ Object
Returns the value of attribute masked_card_number.
32 33 34 |
# File 'lib/chargebee/models/transaction.rb', line 32 def masked_card_number @masked_card_number end |
#merchant_reference_id ⇒ Object
Returns the value of attribute merchant_reference_id.
32 33 34 |
# File 'lib/chargebee/models/transaction.rb', line 32 def merchant_reference_id @merchant_reference_id end |
#network_transaction_details ⇒ Object
Returns the value of attribute network_transaction_details.
32 33 34 |
# File 'lib/chargebee/models/transaction.rb', line 32 def network_transaction_details @network_transaction_details end |
#payment_method ⇒ Object
Returns the value of attribute payment_method.
32 33 34 |
# File 'lib/chargebee/models/transaction.rb', line 32 def payment_method @payment_method end |
#payment_method_details ⇒ Object
Returns the value of attribute payment_method_details.
32 33 34 |
# File 'lib/chargebee/models/transaction.rb', line 32 def payment_method_details @payment_method_details end |
#payment_source_id ⇒ Object
Returns the value of attribute payment_source_id.
32 33 34 |
# File 'lib/chargebee/models/transaction.rb', line 32 def payment_source_id @payment_source_id end |
#reference_authorization_id ⇒ Object
Returns the value of attribute reference_authorization_id.
32 33 34 |
# File 'lib/chargebee/models/transaction.rb', line 32 def @reference_authorization_id end |
#reference_number ⇒ Object
Returns the value of attribute reference_number.
32 33 34 |
# File 'lib/chargebee/models/transaction.rb', line 32 def reference_number @reference_number end |
#reference_transaction_id ⇒ Object
Returns the value of attribute reference_transaction_id.
32 33 34 |
# File 'lib/chargebee/models/transaction.rb', line 32 def reference_transaction_id @reference_transaction_id end |
#refunded_txn_id ⇒ Object
Returns the value of attribute refunded_txn_id.
32 33 34 |
# File 'lib/chargebee/models/transaction.rb', line 32 def refunded_txn_id @refunded_txn_id end |
#resource_version ⇒ Object
Returns the value of attribute resource_version.
32 33 34 |
# File 'lib/chargebee/models/transaction.rb', line 32 def resource_version @resource_version end |
#reversal_transaction_id ⇒ Object
Returns the value of attribute reversal_transaction_id.
32 33 34 |
# File 'lib/chargebee/models/transaction.rb', line 32 def reversal_transaction_id @reversal_transaction_id end |
#settled_at ⇒ Object
Returns the value of attribute settled_at.
32 33 34 |
# File 'lib/chargebee/models/transaction.rb', line 32 def settled_at @settled_at end |
#status ⇒ Object
Returns the value of attribute status.
32 33 34 |
# File 'lib/chargebee/models/transaction.rb', line 32 def status @status end |
#subscription_id ⇒ Object
Returns the value of attribute subscription_id.
32 33 34 |
# File 'lib/chargebee/models/transaction.rb', line 32 def subscription_id @subscription_id end |
#three_d_secure ⇒ Object
Returns the value of attribute three_d_secure.
32 33 34 |
# File 'lib/chargebee/models/transaction.rb', line 32 def three_d_secure @three_d_secure end |
#type ⇒ Object
Returns the value of attribute type.
32 33 34 |
# File 'lib/chargebee/models/transaction.rb', line 32 def type @type end |
#updated_at ⇒ Object
Returns the value of attribute updated_at.
32 33 34 |
# File 'lib/chargebee/models/transaction.rb', line 32 def updated_at @updated_at end |
#voided_at ⇒ Object
Returns the value of attribute voided_at.
32 33 34 |
# File 'lib/chargebee/models/transaction.rb', line 32 def voided_at @voided_at end |
Class Method Details
.create_authorization(params, env = nil, headers = {}) ⇒ Object
OPERATIONS
44 45 46 47 48 49 50 51 |
# File 'lib/chargebee/models/transaction.rb', line 44 def self.(params, env=nil, headers={}) jsonKeys = { } = { :isIdempotent => true } Request.send('post', uri_path("transactions","create_authorization"), params, env, headers,nil, false, jsonKeys, , "transaction", "createAuthorization") end |
.delete_offline_transaction(id, params = {}, env = nil, headers = {}) ⇒ Object
126 127 128 129 130 131 132 133 |
# File 'lib/chargebee/models/transaction.rb', line 126 def self.delete_offline_transaction(id, params={}, env=nil, headers={}) jsonKeys = { } = { :isIdempotent => true } Request.send('post', uri_path("transactions",id.to_s,"delete_offline_transaction"), params, env, headers,nil, false, jsonKeys, , "transaction", "deleteOfflineTransaction") end |
.list(params = {}, env = nil, headers = {}) ⇒ Object
89 90 91 92 93 94 |
# File 'lib/chargebee/models/transaction.rb', line 89 def self.list(params={}, env=nil, headers={}) jsonKeys = { } = {} Request.send_list_request('get', uri_path("transactions"), params, env, headers,nil, false, jsonKeys, , "transaction", "list") end |
.payments_for_invoice(id, params = {}, env = nil, headers = {}) ⇒ Object
112 113 114 115 116 117 |
# File 'lib/chargebee/models/transaction.rb', line 112 def self.payments_for_invoice(id, params={}, env=nil, headers={}) jsonKeys = { } = {} Request.send('get', uri_path("invoices",id.to_s,"payments"), params, env, headers,nil, false, jsonKeys, , "transaction", "paymentsForInvoice") end |
.reconcile(id, params = {}, env = nil, headers = {}) ⇒ Object
71 72 73 74 75 76 77 78 |
# File 'lib/chargebee/models/transaction.rb', line 71 def self.reconcile(id, params={}, env=nil, headers={}) jsonKeys = { } = { :isIdempotent => true } Request.send('post', uri_path("transactions",id.to_s,"reconcile"), params, env, headers,nil, false, jsonKeys, , "transaction", "reconcile") end |
.record_refund(id, params, env = nil, headers = {}) ⇒ Object
62 63 64 65 66 67 68 69 |
# File 'lib/chargebee/models/transaction.rb', line 62 def self.record_refund(id, params, env=nil, headers={}) jsonKeys = { } = { :isIdempotent => true } Request.send('post', uri_path("transactions",id.to_s,"record_refund"), params, env, headers,nil, false, jsonKeys, , "transaction", "recordRefund") end |
.refund(id, params = {}, env = nil, headers = {}) ⇒ Object
80 81 82 83 84 85 86 87 |
# File 'lib/chargebee/models/transaction.rb', line 80 def self.refund(id, params={}, env=nil, headers={}) jsonKeys = { } = { :isIdempotent => true } Request.send('post', uri_path("transactions",id.to_s,"refund"), params, env, headers,nil, false, jsonKeys, , "transaction", "refund") end |
.retrieve(id, env = nil, headers = {}) ⇒ Object
119 120 121 122 123 124 |
# File 'lib/chargebee/models/transaction.rb', line 119 def self.retrieve(id, env=nil, headers={}) jsonKeys = { } = {} Request.send('get', uri_path("transactions",id.to_s), {}, env, headers,nil, false, jsonKeys, , "transaction", "retrieve") end |
.transactions_for_customer(id, params = {}, env = nil, headers = {}) ⇒ Object
This method is deprecated and will be removed in a future version.
97 98 99 100 101 102 |
# File 'lib/chargebee/models/transaction.rb', line 97 def self.transactions_for_customer(id, params={}, env=nil, headers={}) jsonKeys = { } = {} Request.send('get', uri_path("customers",id.to_s,"transactions"), params, env, headers,nil, false, jsonKeys, , "transaction", "transactionsForCustomer") end |
.transactions_for_subscription(id, params = {}, env = nil, headers = {}) ⇒ Object
This method is deprecated and will be removed in a future version.
105 106 107 108 109 110 |
# File 'lib/chargebee/models/transaction.rb', line 105 def self.transactions_for_subscription(id, params={}, env=nil, headers={}) jsonKeys = { } = {} Request.send('get', uri_path("subscriptions",id.to_s,"transactions"), params, env, headers,nil, false, jsonKeys, , "transaction", "transactionsForSubscription") end |
.void_transaction(id, env = nil, headers = {}) ⇒ Object
53 54 55 56 57 58 59 60 |
# File 'lib/chargebee/models/transaction.rb', line 53 def self.void_transaction(id, env=nil, headers={}) jsonKeys = { } = { :isIdempotent => true } Request.send('post', uri_path("transactions",id.to_s,"void"), {}, env, headers,nil, false, jsonKeys, , "transaction", "voidTransaction") end |