Class: Afterpay::Components::Refund

Inherits:
Base
  • Object
show all
Defined in:
lib/afterpay/components/refund.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.



26
27
28
# File 'lib/afterpay/components/refund.rb', line 26

def amount
  @amount
end

#merchant_referenceString

The merchant’s refund id / reference that this refund corresponds to.

Returns:

  • (String)


15
16
17
# File 'lib/afterpay/components/refund.rb', line 15

def merchant_reference
  @merchant_reference
end

#refund_merchant_referenceString

A unique reference for the individual refund event. If provided, the value will appear in the daily settlement file as “Payment Event ID”. Limited to 128 characters.

Returns:

  • (String)


21
22
23
# File 'lib/afterpay/components/refund.rb', line 21

def refund_merchant_reference
  @refund_merchant_reference
end

#request_idString

A unique request ID, required for safe retries. It is recommended that the merchant generate a UUID for each unique refund.

Returns:

  • (String)


10
11
12
# File 'lib/afterpay/components/refund.rb', line 10

def request_id
  @request_id
end