@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.
@@ -5541,6 +5541,10 @@ export declare const ChangeSubscriptionBody: zod.ZodUnion<readonly [zod.ZodObjec
5541
5541
  key: zod.z.ZodCoercedString<unknown>;
5542
5542
  version: zod.ZodOptional<zod.z.ZodCoercedNumber<unknown>>;
5543
5543
  }, zod.z.core.$strip>;
5544
+ settlementMode: zod.ZodOptional<zod.ZodEnum<{
5545
+ credit_then_invoice: "credit_then_invoice";
5546
+ credit_only: "credit_only";
5547
+ }>>;
5544
5548
  startingPhase: zod.ZodOptional<zod.z.ZodCoercedString<unknown>>;
5545
5549
  timing: zod.ZodUnion<readonly [zod.ZodEnum<{
5546
5550
  immediate: "immediate";
@@ -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.
@@ -5541,6 +5541,10 @@ export declare const ChangeSubscriptionBody: zod.ZodUnion<readonly [zod.ZodObjec
5541
5541
  key: zod.z.ZodCoercedString<unknown>;
5542
5542
  version: zod.ZodOptional<zod.z.ZodCoercedNumber<unknown>>;
5543
5543
  }, zod.z.core.$strip>;
5544
+ settlementMode: zod.ZodOptional<zod.ZodEnum<{
5545
+ credit_then_invoice: "credit_then_invoice";
5546
+ credit_only: "credit_only";
5547
+ }>>;
5544
5548
  startingPhase: zod.ZodOptional<zod.z.ZodCoercedString<unknown>>;
5545
5549
  timing: zod.ZodUnion<readonly [zod.ZodEnum<{
5546
5550
  immediate: "immediate";
@@ -11714,6 +11714,11 @@ export const ChangeSubscriptionBody = zod
11714
11714
  })
11715
11715
  .describe('References an exact plan defaulting to the current active version.')
11716
11716
  .describe('The plan reference to change to.'),
11717
+ settlementMode: zod
11718
+ .enum(['credit_then_invoice', 'credit_only'])
11719
+ .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.')
11720
+ .optional()
11721
+ .describe('The settlement mode of the subscription.'),
11717
11722
  startingPhase: zod.coerce
11718
11723
  .string()
11719
11724
  .min(1)