Refund
A refund represents an amount of money transfered back to the customer for a given reason. Refunds may occur in relation to Returns, Swaps and Claims, but can also be initiated by an admin for an order.
Constructors
constructor
**new Refund**()
A refund represents an amount of money transfered back to the customer for a given reason. Refunds may occur in relation to Returns, Swaps and Claims, but can also be initiated by an admin for an order.
Properties
amountnumberRequiredThe amount that has be refunded to the Customer.
created_atDateRequiredThe date with timezone at which the resource was created.
idstringRequiredThe refund's ID
idempotency_keystringRequiredRandomly generated key used to continue the completion of the refund in case of failure.
metadataRecord<string, unknown>RequiredAn optional key-value map with additional details
notestringRequiredAn optional note explaining why the amount was refunded.
The details of the order this refund was created for.
order_idstringRequiredThe ID of the order this refund was created for.
The details of the payment associated with the refund.
payment_idstringRequiredThe payment's ID, if available.
reasonstringRequiredThe reason given for the Refund, will automatically be set when processed as part of a Swap, Claim or Return.
updated_atDateRequiredThe date with timezone at which the resource was updated.
Methods
beforeInsert
Private **beforeInsert**(): void
Returns
void
voidvoidWas this section helpful?