Class: Afterpay::Components::Payment

Inherits:
Base
  • Object
show all
Defined in:
lib/afterpay/components/payment.rb

Instance Attribute Summary collapse

Method Summary

Methods included from Initializable

included, #initialize

Methods included from Representable

#as_json, included

Instance Attribute Details

#amountAfterpay::Components::Money

The refund amount.



19
20
21
# File 'lib/afterpay/components/payment.rb', line 19

def amount
  @amount
end

#is_checkout_adjustedBoolean

Whether there have been changes to the order since the initial order creation.

Returns:

  • (Boolean)


24
25
26
# File 'lib/afterpay/components/payment.rb', line 24

def is_checkout_adjusted
  @is_checkout_adjusted
end

#itemsArray<Afterpay::Components::Item>

An array of order items that have been updated to be provided if it has changed since the initial order creation.

Returns:



36
37
38
# File 'lib/afterpay/components/payment.rb', line 36

def items
  @items
end

#merchant_referenceString

The merchant’s order id / reference that this payment corresponds to

Returns:

  • (String)


14
15
16
# File 'lib/afterpay/components/payment.rb', line 14

def merchant_reference
  @merchant_reference
end

#payment_schedule_checksumString

A unique value representing the payment schedule that must be provided when there has been changes since the initial order creation.

Returns:

  • (String)


30
31
32
# File 'lib/afterpay/components/payment.rb', line 30

def payment_schedule_checksum
  @payment_schedule_checksum
end

#shippingAfterpay::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

#tokenString

The token returned in the order creation request.

Returns:

  • (String)


9
10
11
# File 'lib/afterpay/components/payment.rb', line 9

def token
  @token
end