Represents a payment refund processed by the Square Terminal. Only supports Interac (Canadian debit network) payment refunds.
TerminalRefund
Name | Type | Tags | Description | Getter |
---|---|---|---|---|
Id |
String |
Optional | A unique ID for this TerminalRefund .Constraints: Minimum Length: 10 , Maximum Length: 255 |
String getId() |
RefundId |
String |
Optional | The reference to the payment refund created by completing this TerminalRefund . |
String getRefundId() |
PaymentId |
String |
Required | The unique ID of the payment being refunded. Constraints: Minimum Length: 1 |
String getPaymentId() |
OrderId |
String |
Optional | The reference to the Square order ID for the payment identified by the payment_id . |
String getOrderId() |
AmountMoney |
Money |
Required | Represents an amount of money. Money fields can be signed or unsigned.Fields that do not explicitly define whether they are signed or unsigned are considered unsigned and can only hold positive amounts. For signed fields, the sign of the value indicates the purpose of the money transfer. See Working with Monetary Amounts for more information. |
Money getAmountMoney() |
Reason |
String |
Required | A description of the reason for the refund. Constraints: Maximum Length: 192 |
String getReason() |
DeviceId |
String |
Required | The unique ID of the device intended for this TerminalRefund .The Id can be retrieved from /v2/devices api. |
String getDeviceId() |
DeadlineDuration |
String |
Optional | The RFC 3339 duration, after which the refund is automatically canceled. A TerminalRefund that is PENDING is automatically CANCELED and has a cancellation reasonof TIMED_OUT .Default: 5 minutes from creation. Maximum: 5 minutes |
String getDeadlineDuration() |
Status |
String |
Optional | The status of the TerminalRefund .Options: PENDING , IN_PROGRESS , CANCEL_REQUESTED , CANCELED , or COMPLETED . |
String getStatus() |
CancelReason |
String |
Optional | - | String getCancelReason() |
CreatedAt |
String |
Optional | The time when the TerminalRefund was created, as an RFC 3339 timestamp. |
String getCreatedAt() |
UpdatedAt |
String |
Optional | The time when the TerminalRefund was last updated, as an RFC 3339 timestamp. |
String getUpdatedAt() |
AppId |
String |
Optional | The ID of the application that created the refund. | String getAppId() |
LocationId |
String |
Optional | The location of the device where the TerminalRefund was directed.Constraints: Maximum Length: 64 |
String getLocationId() |
{
"id": "id8",
"refund_id": "refund_id2",
"payment_id": "payment_id8",
"order_id": "order_id2",
"amount_money": {
"amount": 186,
"currency": "TZS"
},
"reason": "reason6",
"device_id": "device_id4",
"deadline_duration": "deadline_duration0",
"status": "status0"
}