@rebilly/api 0.12.1 → 0.13.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,3 +1,3 @@
1
- ## 0.12.1 (2026-10-28)
1
+ ## 0.13.0 (2026-10-28)
2
2
 
3
3
  This was a version bump only for rebilly-api to align it with other projects, there were no code changes.
@@ -9326,6 +9326,30 @@ export type SubscriptionOrOneTimeSaleItem = {
9326
9326
  product?: Record<string, unknown>;
9327
9327
  };
9328
9328
  };
9329
+ /**
9330
+ * Sandbox recurring order retention.
9331
+ * In the sandbox environment, a recurring order is canceled 90 days after it is created or on the start date of the policy,
9332
+ * whichever is later, unless the order is retained or the organization is excluded from the policy.
9333
+ * This property is returned in the sandbox environment only, for recurring orders.
9334
+ * In the live environment, if the request includes this property with a value, a validation error is returned.
9335
+ * A `null` value in a request does not update the property.
9336
+ */
9337
+ export type SandboxRetention = {
9338
+ /**
9339
+ * Date and time of the automatic cancellation of the order: 90 days after the order is created or the start date of the policy,
9340
+ * whichever is later.
9341
+ * This value is `null` when the organization is excluded from the policy,
9342
+ * and for an order that can no longer bill, such as a churned or abandoned order.
9343
+ * @format date-time
9344
+ */
9345
+ readonly autoCancelTime?: string | null;
9346
+ /**
9347
+ * Specifies if the order is retained and not canceled on its `autoCancelTime`.
9348
+ * An organization retains up to 50 recurring orders.
9349
+ * If the request omits `sandboxRetention`, this value is not updated.
9350
+ */
9351
+ excluded: boolean;
9352
+ } | null;
9329
9353
  export type Subscription = {
9330
9354
  /**
9331
9355
  * ID of the order.
@@ -9610,6 +9634,7 @@ export type Subscription = {
9610
9634
  * Purchase order number displayed on the issued invoices.
9611
9635
  */
9612
9636
  poNumber?: string | null;
9637
+ sandboxRetention?: SandboxRetention;
9613
9638
  /**
9614
9639
  * Shipping settings of the order.
9615
9640
  * Changes to shipping apply to the upcoming invoice and to invoices created after the change.
@@ -10400,6 +10425,7 @@ export type RecurringOrder = {
10400
10425
  * Purchase order number that is displayed on the issued invoices.
10401
10426
  */
10402
10427
  poNumber?: string | null;
10428
+ sandboxRetention?: SandboxRetention;
10403
10429
  /**
10404
10430
  * Notes for the customer that are displayed on the order invoice.
10405
10431
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rebilly/api",
3
- "version": "0.12.1",
3
+ "version": "0.13.0",
4
4
  "description": "Rebilly Core and Storefront API clients generated from the OpenAPI definitions",
5
5
  "type": "module",
6
6
  "sideEffects": false,