@rebilly/api 0.9.0 → 0.9.2

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.9.0 (2026-10-26)
1
+ ## 0.9.2 (2026-10-27)
2
2
 
3
3
  This was a version bump only for rebilly-api to align it with other projects, there were no code changes.
@@ -3977,6 +3977,20 @@ export type Invoice = {
3977
3977
  * @format double
3978
3978
  */
3979
3979
  readonly discountAmount?: number;
3980
+ /**
3981
+ * Shipping settings of the invoice.
3982
+ * The `calculator` property is `manual` when the shipping amount is provided
3983
+ * and `rebilly` when the amount is calculated from shipping rates.
3984
+ * If `calculator` is `manual` and an issued invoice is recalculated or its items change,
3985
+ * the shipping amount is not changed, even if no invoice item requires shipping.
3986
+ * If `calculator` is `manual` and no invoice item requires shipping, the shipping amount is 0 in these cases:
3987
+ *
3988
+ * - A draft invoice is issued with the [Issue an invoice](https://www.rebilly.com/catalog/all/invoices/postinvoiceissuance) operation, a renewal invoice is issued, or a scheduled draft invoice is recalculated.
3989
+ * - An order is created or previewed, a quote is created, or a `pending` order is updated.
3990
+ * This applies to the order invoice. The order keeps its shipping amount.
3991
+ *
3992
+ * To change the shipping amount of an issued invoice, use the [Upsert an invoice](https://www.rebilly.com/catalog/all/invoices/putinvoice) operation.
3993
+ */
3980
3994
  shipping?: Shipping;
3981
3995
  tax?: Taxes;
3982
3996
  /**
@@ -9359,6 +9373,9 @@ export type Subscription = {
9359
9373
  /**
9360
9374
  * Specifies if there is a trial for this subscription.
9361
9375
  * Plans without trial prices are free trials.
9376
+ * If the order is active, all its items are in a trial, and `isTrialOnly` is `false`, setting this value to `false` ends the trial immediately.
9377
+ * In the response, this field remains `true`, and `endTime` contains the date and time when the trial ended.
9378
+ * If only some items of an active order are in a trial, setting this value to `false` returns a 409 error.
9362
9379
  */
9363
9380
  enabled?: boolean;
9364
9381
  /**
@@ -10327,6 +10344,9 @@ export type RecurringOrder = {
10327
10344
  /**
10328
10345
  * Specifies if there is a trial for this subscription.
10329
10346
  * Plans without trial prices are free trials.
10347
+ * If the order is active, all its items are in a trial, and `isTrialOnly` is `false`, setting this value to `false` ends the trial immediately.
10348
+ * In the response, this field remains `true`, and `endTime` contains the date and time when the trial ended.
10349
+ * If only some items of an active order are in a trial, setting this value to `false` returns a 409 error.
10330
10350
  */
10331
10351
  enabled?: boolean;
10332
10352
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rebilly/api",
3
- "version": "0.9.0",
3
+ "version": "0.9.2",
4
4
  "description": "Rebilly Core and Storefront API clients generated from the OpenAPI definitions",
5
5
  "type": "module",
6
6
  "sideEffects": false,