@openmeter/sdk 1.0.0-beta.237 → 1.0.0-beta.239

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.
@@ -4136,6 +4136,20 @@ export interface components {
4136
4136
  * @example 2023-01-01T01:01:01.001Z
4137
4137
  */
4138
4138
  billingAnchor?: Date;
4139
+ /**
4140
+ * Format: date-time
4141
+ * @description When billing starts for the subscription. Nothing is billed for service before this time, while access,
4142
+ * entitlements and metering start with the subscription. Use it when the time before was already billed elsewhere,
4143
+ * for example when importing a subscription from another billing system.
4144
+ *
4145
+ * It cannot be before the start of the subscription and cannot be changed later. On subscriptions billed through
4146
+ * invoice lines it must be the start of a billing period. If not provided, billing starts with the subscription.
4147
+ *
4148
+ * When billing starts inside a billing period, we recommend enabling price pro-rating (`prorate_prices`) on the
4149
+ * plan. Without it that billing period's flat fees are billed in full.
4150
+ * @example 2023-01-01T01:01:01.001Z
4151
+ */
4152
+ billingStartsAt?: Date;
4139
4153
  };
4140
4154
  /**
4141
4155
  * @description A customer object.
@@ -9869,6 +9883,20 @@ export interface components {
9869
9883
  * @example 2023-01-01T01:01:01.001Z
9870
9884
  */
9871
9885
  billingAnchor?: Date;
9886
+ /**
9887
+ * Format: date-time
9888
+ * @description When billing starts for the subscription. Nothing is billed for service before this time, while access,
9889
+ * entitlements and metering start with the subscription. Use it when the time before was already billed elsewhere,
9890
+ * for example when importing a subscription from another billing system.
9891
+ *
9892
+ * It cannot be before the start of the subscription and cannot be changed later. On subscriptions billed through
9893
+ * invoice lines it must be the start of a billing period. If not provided, billing starts with the subscription.
9894
+ *
9895
+ * When billing starts inside a billing period, we recommend enabling price pro-rating (`prorate_prices`) on the
9896
+ * plan. Without it that billing period's flat fees are billed in full.
9897
+ * @example 2023-01-01T01:01:01.001Z
9898
+ */
9899
+ billingStartsAt?: Date;
9872
9900
  };
9873
9901
  /**
9874
9902
  * @description A consumer portal token.
@@ -10966,6 +10994,14 @@ export interface components {
10966
10994
  * @example 2023-01-01T01:01:01.001Z
10967
10995
  */
10968
10996
  readonly billingAnchor: Date;
10997
+ /**
10998
+ * Billing starts at
10999
+ * Format: date-time
11000
+ * @description When billing starts for the subscription. Nothing is billed for service before this time.
11001
+ * If not set, billing starts with the subscription.
11002
+ * @example 2023-01-01T01:01:01.001Z
11003
+ */
11004
+ readonly billingStartsAt?: Date;
10969
11005
  /**
10970
11006
  * Settlement mode
10971
11007
  * @description The settlement mode of the subscription.
@@ -11457,6 +11493,14 @@ export interface components {
11457
11493
  * @example 2023-01-01T01:01:01.001Z
11458
11494
  */
11459
11495
  readonly billingAnchor: Date;
11496
+ /**
11497
+ * Billing starts at
11498
+ * Format: date-time
11499
+ * @description When billing starts for the subscription. Nothing is billed for service before this time.
11500
+ * If not set, billing starts with the subscription.
11501
+ * @example 2023-01-01T01:01:01.001Z
11502
+ */
11503
+ readonly billingStartsAt?: Date;
11460
11504
  /**
11461
11505
  * Settlement mode
11462
11506
  * @description The settlement mode of the subscription.
@@ -34,6 +34,7 @@ export declare class Subscriptions {
34
34
  readonly billingCadence: string;
35
35
  readonly proRatingConfig?: import("./schemas.cjs").components["schemas"]["ProRatingConfig"];
36
36
  readonly billingAnchor: Date;
37
+ readonly billingStartsAt?: Date;
37
38
  readonly settlementMode: import("./schemas.cjs").components["schemas"]["BillingSettlementMode"];
38
39
  } | undefined>;
39
40
  /**
@@ -62,6 +63,7 @@ export declare class Subscriptions {
62
63
  readonly billingCadence: string;
63
64
  readonly proRatingConfig?: import("./schemas.cjs").components["schemas"]["ProRatingConfig"];
64
65
  readonly billingAnchor: Date;
66
+ readonly billingStartsAt?: Date;
65
67
  readonly settlementMode: import("./schemas.cjs").components["schemas"]["BillingSettlementMode"];
66
68
  alignment?: import("./schemas.cjs").components["schemas"]["SubscriptionAlignment"];
67
69
  phases: import("./schemas.cjs").components["schemas"]["SubscriptionPhaseExpanded"][];
@@ -94,6 +96,7 @@ export declare class Subscriptions {
94
96
  readonly billingCadence: string;
95
97
  readonly proRatingConfig?: import("./schemas.cjs").components["schemas"]["ProRatingConfig"];
96
98
  readonly billingAnchor: Date;
99
+ readonly billingStartsAt?: Date;
97
100
  readonly settlementMode: import("./schemas.cjs").components["schemas"]["BillingSettlementMode"];
98
101
  } | undefined>;
99
102
  /**
@@ -124,6 +127,7 @@ export declare class Subscriptions {
124
127
  readonly billingCadence: string;
125
128
  readonly proRatingConfig?: import("./schemas.cjs").components["schemas"]["ProRatingConfig"];
126
129
  readonly billingAnchor: Date;
130
+ readonly billingStartsAt?: Date;
127
131
  readonly settlementMode: import("./schemas.cjs").components["schemas"]["BillingSettlementMode"];
128
132
  } | undefined>;
129
133
  /**
@@ -177,6 +181,7 @@ export declare class Subscriptions {
177
181
  readonly billingCadence: string;
178
182
  readonly proRatingConfig?: import("./schemas.cjs").components["schemas"]["ProRatingConfig"];
179
183
  readonly billingAnchor: Date;
184
+ readonly billingStartsAt?: Date;
180
185
  readonly settlementMode: import("./schemas.cjs").components["schemas"]["BillingSettlementMode"];
181
186
  } | undefined>;
182
187
  /**
@@ -10165,6 +10165,10 @@ exports.CreateSubscriptionBody = zod
10165
10165
  .date()
10166
10166
  .optional()
10167
10167
  .describe('The billing anchor of the subscription. The provided date will be normalized according to the billing cadence to the nearest recurrence before start time. If not provided, the subscription start time will be used.'),
10168
+ billingStartsAt: zod.coerce
10169
+ .date()
10170
+ .optional()
10171
+ .describe("When billing starts for the subscription. Nothing is billed for service before this time, while access,\nentitlements and metering start with the subscription. Use it when the time before was already billed elsewhere,\nfor example when importing a subscription from another billing system.\n\nIt cannot be before the start of the subscription and cannot be changed later. On subscriptions billed through\ninvoice lines it must be the start of a billing period. If not provided, billing starts with the subscription.\n\nWhen billing starts inside a billing period, we recommend enabling price pro-rating (`prorate_prices`) on the\nplan. Without it that billing period's flat fees are billed in full."),
10168
10172
  costBasisMode: zod
10169
10173
  .enum(['dynamic', 'pinned'])
10170
10174
  .describe('Controls how custom-currency cost bases are selected for the subscription.')
@@ -10240,6 +10244,10 @@ exports.CreateSubscriptionBody = zod
10240
10244
  .date()
10241
10245
  .optional()
10242
10246
  .describe('The billing anchor of the subscription. The provided date will be normalized according to the billing cadence to the nearest recurrence before start time. If not provided, the subscription start time will be used.'),
10247
+ billingStartsAt: zod.coerce
10248
+ .date()
10249
+ .optional()
10250
+ .describe("When billing starts for the subscription. Nothing is billed for service before this time, while access,\nentitlements and metering start with the subscription. Use it when the time before was already billed elsewhere,\nfor example when importing a subscription from another billing system.\n\nIt cannot be before the start of the subscription and cannot be changed later. On subscriptions billed through\ninvoice lines it must be the start of a billing period. If not provided, billing starts with the subscription.\n\nWhen billing starts inside a billing period, we recommend enabling price pro-rating (`prorate_prices`) on the\nplan. Without it that billing period's flat fees are billed in full."),
10243
10251
  costBasisMode: zod
10244
10252
  .enum(['dynamic', 'pinned'])
10245
10253
  .describe('Controls how custom-currency cost bases are selected for the subscription.')