Skip to content

Latest commit

 

History

History
45 lines (40 loc) · 6.57 KB

refund.md

File metadata and controls

45 lines (40 loc) · 6.57 KB

Refund

Example Usage

import { Refund } from "@polar-sh/sdk/models/components/refund.js";

let value: Refund = {
  createdAt: new Date("2025-12-04T20:21:23.175Z"),
  modifiedAt: new Date("2024-05-23T22:39:09.157Z"),
  id: "<value>",
  metadata: {
    "key": "<value>",
  },
  status: "pending",
  reason: "duplicate",
  amount: 750354,
  taxAmount: 300741,
  currency: "Hryvnia",
  organizationId: "<value>",
  orderId: "<value>",
  subscriptionId: "<value>",
  customerId: "<value>",
  revokeBenefits: false,
};

Fields

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