Class: ChargeBee::Transaction
- Defined in:
- lib/chargebee/models/transaction.rb
Defined Under Namespace
Classes: LinkedInvoice
Instance Attribute Summary collapse
-
#amount ⇒ Object
Returns the value of attribute amount.
-
#date ⇒ Object
Returns the value of attribute date.
-
#description ⇒ Object
Returns the value of attribute description.
-
#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.
-
#id ⇒ Object
Returns the value of attribute id.
-
#id_at_gateway ⇒ Object
Returns the value of attribute id_at_gateway.
-
#linked_invoices ⇒ Object
Returns the value of attribute linked_invoices.
-
#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.
-
#refunded_txn_id ⇒ Object
Returns the value of attribute refunded_txn_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.
-
#void_description ⇒ Object
Returns the value of attribute void_description.
-
#voided_at ⇒ Object
Returns the value of attribute voided_at.
Class Method Summary collapse
-
.list(params = {}, env = nil) ⇒ Object
OPERATIONS ———–.
- .record_payment(id, params, env = nil) ⇒ Object
- .refund(id, params = {}, env = nil) ⇒ Object
- .retrieve(id, env = nil) ⇒ Object
- .transactions_for_invoice(id, params = {}, env = nil) ⇒ Object
- .transactions_for_subscription(id, params = {}, env = nil) ⇒ Object
Methods inherited from Model
construct, #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.
8 9 10 |
# File 'lib/chargebee/models/transaction.rb', line 8 def amount @amount end |
#date ⇒ Object
Returns the value of attribute date.
8 9 10 |
# File 'lib/chargebee/models/transaction.rb', line 8 def date @date end |
#description ⇒ Object
Returns the value of attribute description.
8 9 10 |
# File 'lib/chargebee/models/transaction.rb', line 8 def description @description end |
#error_code ⇒ Object
Returns the value of attribute error_code.
8 9 10 |
# File 'lib/chargebee/models/transaction.rb', line 8 def error_code @error_code end |
#error_text ⇒ Object
Returns the value of attribute error_text.
8 9 10 |
# File 'lib/chargebee/models/transaction.rb', line 8 def error_text @error_text end |
#gateway ⇒ Object
Returns the value of attribute gateway.
8 9 10 |
# File 'lib/chargebee/models/transaction.rb', line 8 def gateway @gateway end |
#id ⇒ Object
Returns the value of attribute id.
8 9 10 |
# File 'lib/chargebee/models/transaction.rb', line 8 def id @id end |
#id_at_gateway ⇒ Object
Returns the value of attribute id_at_gateway.
8 9 10 |
# File 'lib/chargebee/models/transaction.rb', line 8 def id_at_gateway @id_at_gateway end |
#linked_invoices ⇒ Object
Returns the value of attribute linked_invoices.
8 9 10 |
# File 'lib/chargebee/models/transaction.rb', line 8 def linked_invoices @linked_invoices end |
#masked_card_number ⇒ Object
Returns the value of attribute masked_card_number.
8 9 10 |
# File 'lib/chargebee/models/transaction.rb', line 8 def masked_card_number @masked_card_number end |
#payment_method ⇒ Object
Returns the value of attribute payment_method.
8 9 10 |
# File 'lib/chargebee/models/transaction.rb', line 8 def payment_method @payment_method end |
#reference_number ⇒ Object
Returns the value of attribute reference_number.
8 9 10 |
# File 'lib/chargebee/models/transaction.rb', line 8 def reference_number @reference_number end |
#refunded_txn_id ⇒ Object
Returns the value of attribute refunded_txn_id.
8 9 10 |
# File 'lib/chargebee/models/transaction.rb', line 8 def refunded_txn_id @refunded_txn_id end |
#status ⇒ Object
Returns the value of attribute status.
8 9 10 |
# File 'lib/chargebee/models/transaction.rb', line 8 def status @status end |
#subscription_id ⇒ Object
Returns the value of attribute subscription_id.
8 9 10 |
# File 'lib/chargebee/models/transaction.rb', line 8 def subscription_id @subscription_id end |
#type ⇒ Object
Returns the value of attribute type.
8 9 10 |
# File 'lib/chargebee/models/transaction.rb', line 8 def type @type end |
#void_description ⇒ Object
Returns the value of attribute void_description.
8 9 10 |
# File 'lib/chargebee/models/transaction.rb', line 8 def void_description @void_description end |
#voided_at ⇒ Object
Returns the value of attribute voided_at.
8 9 10 |
# File 'lib/chargebee/models/transaction.rb', line 8 def voided_at @voided_at end |
Class Method Details
.list(params = {}, env = nil) ⇒ Object
OPERATIONS
15 16 17 |
# File 'lib/chargebee/models/transaction.rb', line 15 def self.list(params={}, env=nil) Request.send('get', uri_path("transactions"), params, env) end |
.record_payment(id, params, env = nil) ⇒ Object
31 32 33 |
# File 'lib/chargebee/models/transaction.rb', line 31 def self.record_payment(id, params, env=nil) Request.send('post', uri_path("invoices",id.to_s,"record_payment"), params, env) end |
.refund(id, params = {}, env = nil) ⇒ Object
35 36 37 |
# File 'lib/chargebee/models/transaction.rb', line 35 def self.refund(id, params={}, env=nil) Request.send('post', uri_path("transactions",id.to_s,"refund"), params, env) end |
.retrieve(id, env = nil) ⇒ Object
27 28 29 |
# File 'lib/chargebee/models/transaction.rb', line 27 def self.retrieve(id, env=nil) Request.send('get', uri_path("transactions",id.to_s), {}, env) end |