import { Refund } from "@polar-sh/sdk/models/components/refund.js";
let value: Refund = {
createdAt: new Date("2024-05-25T04:08:34.395Z"),
modifiedAt: new Date("2023-03-13T21:04:17.200Z"),
id: "<value>",
metadata: {
"key": "<value>",
},
status: "canceled",
reason: "customer_request",
amount: 160305,
taxAmount: 805831,
currency: "Argentine Peso",
organizationId: "<value>",
orderId: "<value>",
subscriptionId: "<value>",
customerId: "<value>",
revokeBenefits: false,
};
Field |
Type |
Required |
Description |
createdAt |
Date |
✔️ |
Creation timestamp of the object. |
modifiedAt |
Date |
✔️ |
Last modification timestamp of the object. |
id |
string |
✔️ |
The ID of the object. |
metadata |
Record<string, components.RefundMetadata> |
✔️ |
N/A |
status |
components.RefundStatus |
✔️ |
N/A |
reason |
components.RefundReason |
✔️ |
N/A |
amount |
number |
✔️ |
N/A |
taxAmount |
number |
✔️ |
N/A |
currency |
string |
✔️ |
N/A |
organizationId |
string |
✔️ |
N/A |
orderId |
string |
✔️ |
N/A |
subscriptionId |
string |
✔️ |
N/A |
customerId |
string |
✔️ |
N/A |
revokeBenefits |
boolean |
✔️ |
N/A |