Class: ChargeBee::Transaction
- Defined in:
- lib/chargebee/models/transaction.rb
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.
-
#masked_card_number ⇒ Object
Returns the value of attribute masked_card_number.
-
#payment_method ⇒ Object
Returns the value of attribute payment_method.
-
#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 ———–.
- .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
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.
4 5 6 |
# File 'lib/chargebee/models/transaction.rb', line 4 def amount @amount end |
#date ⇒ Object
Returns the value of attribute date.
4 5 6 |
# File 'lib/chargebee/models/transaction.rb', line 4 def date @date end |
#description ⇒ Object
Returns the value of attribute description.
4 5 6 |
# File 'lib/chargebee/models/transaction.rb', line 4 def description @description end |
#error_code ⇒ Object
Returns the value of attribute error_code.
4 5 6 |
# File 'lib/chargebee/models/transaction.rb', line 4 def error_code @error_code end |
#error_text ⇒ Object
Returns the value of attribute error_text.
4 5 6 |
# File 'lib/chargebee/models/transaction.rb', line 4 def error_text @error_text end |
#gateway ⇒ Object
Returns the value of attribute gateway.
4 5 6 |
# File 'lib/chargebee/models/transaction.rb', line 4 def gateway @gateway end |
#id ⇒ Object
Returns the value of attribute id.
4 5 6 |
# File 'lib/chargebee/models/transaction.rb', line 4 def id @id end |
#id_at_gateway ⇒ Object
Returns the value of attribute id_at_gateway.
4 5 6 |
# File 'lib/chargebee/models/transaction.rb', line 4 def id_at_gateway @id_at_gateway end |
#masked_card_number ⇒ Object
Returns the value of attribute masked_card_number.
4 5 6 |
# File 'lib/chargebee/models/transaction.rb', line 4 def masked_card_number @masked_card_number end |
#payment_method ⇒ Object
Returns the value of attribute payment_method.
4 5 6 |
# File 'lib/chargebee/models/transaction.rb', line 4 def payment_method @payment_method end |
#refunded_txn_id ⇒ Object
Returns the value of attribute refunded_txn_id.
4 5 6 |
# File 'lib/chargebee/models/transaction.rb', line 4 def refunded_txn_id @refunded_txn_id end |
#status ⇒ Object
Returns the value of attribute status.
4 5 6 |
# File 'lib/chargebee/models/transaction.rb', line 4 def status @status end |
#subscription_id ⇒ Object
Returns the value of attribute subscription_id.
4 5 6 |
# File 'lib/chargebee/models/transaction.rb', line 4 def subscription_id @subscription_id end |
#type ⇒ Object
Returns the value of attribute type.
4 5 6 |
# File 'lib/chargebee/models/transaction.rb', line 4 def type @type end |
#void_description ⇒ Object
Returns the value of attribute void_description.
4 5 6 |
# File 'lib/chargebee/models/transaction.rb', line 4 def void_description @void_description end |
#voided_at ⇒ Object
Returns the value of attribute voided_at.
4 5 6 |
# File 'lib/chargebee/models/transaction.rb', line 4 def voided_at @voided_at end |
Class Method Details
.list(params = {}, env = nil) ⇒ Object
OPERATIONS
11 12 13 |
# File 'lib/chargebee/models/transaction.rb', line 11 def self.list(params={}, env=nil) Request.send('get', "/transactions", params, env) end |
.refund(id, params = {}, env = nil) ⇒ Object
27 28 29 |
# File 'lib/chargebee/models/transaction.rb', line 27 def self.refund(id, params={}, env=nil) Request.send('post', "/transactions/#{id.to_s}/refund", params, env) end |
.retrieve(id, env = nil) ⇒ Object
23 24 25 |
# File 'lib/chargebee/models/transaction.rb', line 23 def self.retrieve(id, env=nil) Request.send('get', "/transactions/#{id.to_s}", {}, env) end |
.transactions_for_invoice(id, params = {}, env = nil) ⇒ Object
19 20 21 |
# File 'lib/chargebee/models/transaction.rb', line 19 def self.transactions_for_invoice(id, params={}, env=nil) Request.send('get', "/invoices/#{id.to_s}/transactions", params, env) end |
.transactions_for_subscription(id, params = {}, env = nil) ⇒ Object
15 16 17 |
# File 'lib/chargebee/models/transaction.rb', line 15 def self.transactions_for_subscription(id, params={}, env=nil) Request.send('get', "/subscriptions/#{id.to_s}/transactions", params, env) end |