Class: Afterpay::Components::Payment
- Defined in:
- lib/afterpay/components/payment.rb
Instance Attribute Summary collapse
-
#amount ⇒ Afterpay::Components::Money
The refund amount.
-
#is_checkout_adjusted ⇒ Boolean
Whether there have been changes to the order since the initial order creation.
-
#items ⇒ Array<Afterpay::Components::Item>
An array of order items that have been updated to be provided if it has changed since the initial order creation.
-
#merchant_reference ⇒ String
The merchant’s order id / reference that this payment corresponds to.
-
#payment_schedule_checksum ⇒ String
A unique value representing the payment schedule that must be provided when there has been changes since the initial order creation.
-
#shipping ⇒ Afterpay::Components::Contact
The shipping address for this order to be provided if it has changed since the initial order creation.
-
#token ⇒ String
The token returned in the order creation request.
Method Summary
Methods included from Initializable
Methods included from Representable
Instance Attribute Details
#amount ⇒ Afterpay::Components::Money
The refund amount.
19 20 21 |
# File 'lib/afterpay/components/payment.rb', line 19 def amount @amount end |
#is_checkout_adjusted ⇒ Boolean
Whether there have been changes to the order since the initial order creation.
24 25 26 |
# File 'lib/afterpay/components/payment.rb', line 24 def is_checkout_adjusted @is_checkout_adjusted end |
#items ⇒ Array<Afterpay::Components::Item>
An array of order items that have been updated to be provided if it has changed since the initial order creation.
36 37 38 |
# File 'lib/afterpay/components/payment.rb', line 36 def items @items end |
#merchant_reference ⇒ String
The merchant’s order id / reference that this payment corresponds to
14 15 16 |
# File 'lib/afterpay/components/payment.rb', line 14 def merchant_reference @merchant_reference end |
#payment_schedule_checksum ⇒ String
A unique value representing the payment schedule that must be provided when there has been changes since the initial order creation.
30 31 32 |
# File 'lib/afterpay/components/payment.rb', line 30 def payment_schedule_checksum @payment_schedule_checksum end |
#shipping ⇒ Afterpay::Components::Contact
The shipping address for this order to be provided if it has changed since the initial order creation.
41 42 43 |
# File 'lib/afterpay/components/payment.rb', line 41 def shipping @shipping end |
#token ⇒ String
The token returned in the order creation request.
9 10 11 |
# File 'lib/afterpay/components/payment.rb', line 9 def token @token end |