Class: Vantiv::Api::Transaction
- Inherits:
-
Object
- Object
- Vantiv::Api::Transaction
- Defined in:
- lib/vantiv/api/transaction.rb
Instance Attribute Summary collapse
-
#address ⇒ Object
Returns the value of attribute address.
-
#amount_in_cents ⇒ Object
Returns the value of attribute amount_in_cents.
-
#application_id ⇒ Object
Returns the value of attribute application_id.
-
#card ⇒ Object
Returns the value of attribute card.
-
#cardholder_authentication ⇒ Object
Returns the value of attribute cardholder_authentication.
-
#customer_id ⇒ Object
Returns the value of attribute customer_id.
-
#id ⇒ Object
Returns the value of attribute id.
-
#order_id ⇒ Object
Returns the value of attribute order_id.
-
#order_source ⇒ Object
Returns the value of attribute order_source.
-
#partial_approved_flag ⇒ Object
Returns the value of attribute partial_approved_flag.
-
#report_group ⇒ Object
Returns the value of attribute report_group.
-
#type ⇒ Object
Returns the value of attribute type.
Instance Method Summary collapse
- #amount ⇒ Object
- #amount=(value) ⇒ Object
-
#initialize(id: nil, amount_in_cents: nil, order_id: nil, customer_id: nil, partial_approved_flag: nil, order_source: nil, cardholder_authentication: nil) ⇒ Transaction
constructor
A new instance of Transaction.
Constructor Details
#initialize(id: nil, amount_in_cents: nil, order_id: nil, customer_id: nil, partial_approved_flag: nil, order_source: nil, cardholder_authentication: nil) ⇒ Transaction
Returns a new instance of Transaction.
8 9 10 11 12 13 14 15 16 17 |
# File 'lib/vantiv/api/transaction.rb', line 8 def initialize(id: nil, amount_in_cents: nil, order_id: nil, customer_id: nil, partial_approved_flag: nil, order_source: nil, cardholder_authentication: nil) @id = id @amount_in_cents = amount_in_cents @order_id = order_id @customer_id = customer_id @partial_approved_flag = partial_approved_flag @order_source = order_source @cardholder_authentication = cardholder_authentication end |
Instance Attribute Details
#address ⇒ Object
Returns the value of attribute address.
4 5 6 |
# File 'lib/vantiv/api/transaction.rb', line 4 def address @address end |
#amount_in_cents ⇒ Object
Returns the value of attribute amount_in_cents.
4 5 6 |
# File 'lib/vantiv/api/transaction.rb', line 4 def amount_in_cents @amount_in_cents end |
#application_id ⇒ Object
Returns the value of attribute application_id.
4 5 6 |
# File 'lib/vantiv/api/transaction.rb', line 4 def application_id @application_id end |
#card ⇒ Object
Returns the value of attribute card.
4 5 6 |
# File 'lib/vantiv/api/transaction.rb', line 4 def card @card end |
#cardholder_authentication ⇒ Object
Returns the value of attribute cardholder_authentication.
4 5 6 |
# File 'lib/vantiv/api/transaction.rb', line 4 def cardholder_authentication @cardholder_authentication end |
#customer_id ⇒ Object
Returns the value of attribute customer_id.
4 5 6 |
# File 'lib/vantiv/api/transaction.rb', line 4 def customer_id @customer_id end |
#id ⇒ Object
Returns the value of attribute id.
4 5 6 |
# File 'lib/vantiv/api/transaction.rb', line 4 def id @id end |
#order_id ⇒ Object
Returns the value of attribute order_id.
4 5 6 |
# File 'lib/vantiv/api/transaction.rb', line 4 def order_id @order_id end |
#order_source ⇒ Object
Returns the value of attribute order_source.
4 5 6 |
# File 'lib/vantiv/api/transaction.rb', line 4 def order_source @order_source end |
#partial_approved_flag ⇒ Object
Returns the value of attribute partial_approved_flag.
4 5 6 |
# File 'lib/vantiv/api/transaction.rb', line 4 def partial_approved_flag @partial_approved_flag end |
#report_group ⇒ Object
Returns the value of attribute report_group.
4 5 6 |
# File 'lib/vantiv/api/transaction.rb', line 4 def report_group @report_group end |
#type ⇒ Object
Returns the value of attribute type.
4 5 6 |
# File 'lib/vantiv/api/transaction.rb', line 4 def type @type end |
Instance Method Details
#amount ⇒ Object
19 20 21 |
# File 'lib/vantiv/api/transaction.rb', line 19 def amount format_cents_to_decimal(@amount_in_cents) if @amount_in_cents end |
#amount=(value) ⇒ Object
23 24 25 |
# File 'lib/vantiv/api/transaction.rb', line 23 def amount=(value) @amount_in_cents = decimal_string_to_cents(value) end |