Class: Ravelin::CheckoutTransaction
- Inherits:
-
RavelinObject
- Object
- RavelinObject
- Ravelin::CheckoutTransaction
- Defined in:
- lib/ravelin/checkout_transaction.rb
Overview
Represents a transaction as used in the checkout endpoint. As such it can have all the fields of a regular Transaction but only requires the fields of PreTransaction
Instance Attribute Summary collapse
-
#auth_code ⇒ Object
Returns the value of attribute auth_code.
-
#avs_result_code ⇒ Object
Returns the value of attribute avs_result_code.
-
#credit ⇒ Object
Returns the value of attribute credit.
-
#currency ⇒ Object
Returns the value of attribute currency.
-
#custom ⇒ Object
Returns the value of attribute custom.
-
#cvv_result_code ⇒ Object
Returns the value of attribute cvv_result_code.
-
#debit ⇒ Object
Returns the value of attribute debit.
-
#decline_code ⇒ Object
Returns the value of attribute decline_code.
-
#email ⇒ Object
Returns the value of attribute email.
-
#gateway ⇒ Object
Returns the value of attribute gateway.
-
#gateway_reference ⇒ Object
Returns the value of attribute gateway_reference.
-
#success ⇒ Object
Returns the value of attribute success.
-
#three_d_secure ⇒ Object
Returns the value of attribute three_d_secure.
-
#time ⇒ Object
Returns the value of attribute time.
-
#transaction_id ⇒ Object
Returns the value of attribute transaction_id.
-
#type ⇒ Object
Returns the value of attribute type.
Instance Method Summary collapse
-
#initialize(params) ⇒ CheckoutTransaction
constructor
A new instance of CheckoutTransaction.
Methods inherited from RavelinObject
attr_accessor, attr_required, required_attributes, #serializable_hash, #validate
Constructor Details
#initialize(params) ⇒ CheckoutTransaction
Returns a new instance of CheckoutTransaction.
24 25 26 27 28 29 30 31 |
# File 'lib/ravelin/checkout_transaction.rb', line 24 def initialize(params) unless params['3ds'].nil? self.three_d_secure = ThreeDSecure.new(params['3ds']) params.delete('3ds') end super(params) end |
Instance Attribute Details
#auth_code ⇒ Object
Returns the value of attribute auth_code.
5 6 7 |
# File 'lib/ravelin/checkout_transaction.rb', line 5 def auth_code @auth_code end |
#avs_result_code ⇒ Object
Returns the value of attribute avs_result_code.
5 6 7 |
# File 'lib/ravelin/checkout_transaction.rb', line 5 def avs_result_code @avs_result_code end |
#credit ⇒ Object
Returns the value of attribute credit.
5 6 7 |
# File 'lib/ravelin/checkout_transaction.rb', line 5 def credit @credit end |
#currency ⇒ Object
Returns the value of attribute currency.
5 6 7 |
# File 'lib/ravelin/checkout_transaction.rb', line 5 def currency @currency end |
#custom ⇒ Object
Returns the value of attribute custom.
5 6 7 |
# File 'lib/ravelin/checkout_transaction.rb', line 5 def custom @custom end |
#cvv_result_code ⇒ Object
Returns the value of attribute cvv_result_code.
5 6 7 |
# File 'lib/ravelin/checkout_transaction.rb', line 5 def cvv_result_code @cvv_result_code end |
#debit ⇒ Object
Returns the value of attribute debit.
5 6 7 |
# File 'lib/ravelin/checkout_transaction.rb', line 5 def debit @debit end |
#decline_code ⇒ Object
Returns the value of attribute decline_code.
5 6 7 |
# File 'lib/ravelin/checkout_transaction.rb', line 5 def decline_code @decline_code end |
#email ⇒ Object
Returns the value of attribute email.
5 6 7 |
# File 'lib/ravelin/checkout_transaction.rb', line 5 def email @email end |
#gateway ⇒ Object
Returns the value of attribute gateway.
5 6 7 |
# File 'lib/ravelin/checkout_transaction.rb', line 5 def gateway @gateway end |
#gateway_reference ⇒ Object
Returns the value of attribute gateway_reference.
5 6 7 |
# File 'lib/ravelin/checkout_transaction.rb', line 5 def gateway_reference @gateway_reference end |
#success ⇒ Object
Returns the value of attribute success.
5 6 7 |
# File 'lib/ravelin/checkout_transaction.rb', line 5 def success @success end |
#three_d_secure ⇒ Object
Returns the value of attribute three_d_secure.
5 6 7 |
# File 'lib/ravelin/checkout_transaction.rb', line 5 def three_d_secure @three_d_secure end |
#time ⇒ Object
Returns the value of attribute time.
5 6 7 |
# File 'lib/ravelin/checkout_transaction.rb', line 5 def time @time end |
#transaction_id ⇒ Object
Returns the value of attribute transaction_id.
5 6 7 |
# File 'lib/ravelin/checkout_transaction.rb', line 5 def transaction_id @transaction_id end |
#type ⇒ Object
Returns the value of attribute type.
5 6 7 |
# File 'lib/ravelin/checkout_transaction.rb', line 5 def type @type end |