Class: Afterpay::Components::Refund
- Defined in:
- lib/afterpay/components/refund.rb
Instance Attribute Summary collapse
-
#amount ⇒ Afterpay::Components::Money
The refund amount.
-
#merchant_reference ⇒ String
The merchant’s refund id / reference that this refund corresponds to.
-
#refund_merchant_reference ⇒ String
A unique reference for the individual refund event.
-
#request_id ⇒ String
A unique request ID, required for safe retries.
Method Summary
Methods included from Initializable
Methods included from Representable
Instance Attribute Details
#amount ⇒ Afterpay::Components::Money
The refund amount.
26 27 28 |
# File 'lib/afterpay/components/refund.rb', line 26 def amount @amount end |
#merchant_reference ⇒ String
The merchant’s refund id / reference that this refund corresponds to.
15 16 17 |
# File 'lib/afterpay/components/refund.rb', line 15 def merchant_reference @merchant_reference end |
#refund_merchant_reference ⇒ String
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.
21 22 23 |
# File 'lib/afterpay/components/refund.rb', line 21 def refund_merchant_reference @refund_merchant_reference end |
#request_id ⇒ String
A unique request ID, required for safe retries. It is recommended that the merchant generate a UUID for each unique refund.
10 11 12 |
# File 'lib/afterpay/components/refund.rb', line 10 def request_id @request_id end |