@openmeter/sdk 1.0.0-beta-bfda176d831c → 1.0.0-beta-c394e832bdc8

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.
@@ -9761,6 +9761,8 @@ export interface components {
9761
9761
  * @example 2023-01-01T01:01:01.001Z
9762
9762
  */
9763
9763
  billingAnchor?: Date;
9764
+ /** @description The settlement mode of the subscription. */
9765
+ settlementMode?: components['schemas']['BillingSettlementMode'];
9764
9766
  };
9765
9767
  /**
9766
9768
  * Create from plan
@@ -9782,6 +9784,8 @@ export interface components {
9782
9784
  name?: string;
9783
9785
  /** @description Description for the Subscription. */
9784
9786
  description?: string;
9787
+ /** @description The settlement mode of the subscription. */
9788
+ settlementMode?: components['schemas']['BillingSettlementMode'];
9785
9789
  /**
9786
9790
  * @description Timing configuration for the change, when the change should take effect.
9787
9791
  * The default is immediate.
@@ -9801,8 +9805,6 @@ export interface components {
9801
9805
  * @example 2023-01-01T01:01:01.001Z
9802
9806
  */
9803
9807
  billingAnchor?: Date;
9804
- /** @description The settlement mode of the subscription. */
9805
- settlementMode?: components['schemas']['BillingSettlementMode'];
9806
9808
  };
9807
9809
  /**
9808
9810
  * @description A consumer portal token.
@@ -11778,6 +11778,11 @@ exports.ChangeSubscriptionBody = zod
11778
11778
  })
11779
11779
  .describe('References an exact plan defaulting to the current active version.')
11780
11780
  .describe('The plan reference to change to.'),
11781
+ settlementMode: zod
11782
+ .enum(['credit_then_invoice', 'credit_only'])
11783
+ .describe('The settlement mode of a plan.\nIt determines how the billing system generates invoices and credits for the subscriptions using this plan.\n- credit_then_invoice: credits from the previous billing period are applied first, then the remaining balance is invoiced. This is the default and most common settlement mode.\n- credit_only: only credits from the previous billing period are generated and applied. No invoices are generated for the subscription.')
11784
+ .optional()
11785
+ .describe('The settlement mode of the subscription.'),
11781
11786
  startingPhase: zod.coerce
11782
11787
  .string()
11783
11788
  .min(1)