@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.
- package/dist/cjs/src/client/schemas.d.cts +44 -0
- package/dist/cjs/src/client/subscriptions.d.cts +5 -0
- package/dist/cjs/src/zod/index.cjs +8 -0
- package/dist/cjs/src/zod/index.cjs.map +1 -1
- package/dist/cjs/src/zod/index.d.cts +2 -0
- package/dist/src/client/schemas.d.ts +44 -0
- package/dist/src/client/subscriptions.d.ts +5 -0
- package/dist/src/zod/index.d.ts +2 -0
- package/dist/src/zod/index.js +8 -0
- package/dist/src/zod/index.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
|
@@ -4837,6 +4837,7 @@ export declare const CreateSubscriptionBody: zod.ZodUnion<readonly [zod.ZodObjec
|
|
|
4837
4837
|
billablesMustAlign: zod.ZodOptional<zod.z.ZodCoercedBoolean<unknown>>;
|
|
4838
4838
|
}, zod.z.core.$strip>>;
|
|
4839
4839
|
billingAnchor: zod.ZodOptional<zod.z.ZodCoercedDate<unknown>>;
|
|
4840
|
+
billingStartsAt: zod.ZodOptional<zod.z.ZodCoercedDate<unknown>>;
|
|
4840
4841
|
costBasisMode: zod.ZodDefault<zod.ZodEnum<{
|
|
4841
4842
|
dynamic: "dynamic";
|
|
4842
4843
|
pinned: "pinned";
|
|
@@ -4861,6 +4862,7 @@ export declare const CreateSubscriptionBody: zod.ZodUnion<readonly [zod.ZodObjec
|
|
|
4861
4862
|
}>, zod.z.ZodCoercedDate<unknown>]>>;
|
|
4862
4863
|
}, zod.z.core.$strip>, zod.ZodObject<{
|
|
4863
4864
|
billingAnchor: zod.ZodOptional<zod.z.ZodCoercedDate<unknown>>;
|
|
4865
|
+
billingStartsAt: zod.ZodOptional<zod.z.ZodCoercedDate<unknown>>;
|
|
4864
4866
|
costBasisMode: zod.ZodDefault<zod.ZodEnum<{
|
|
4865
4867
|
dynamic: "dynamic";
|
|
4866
4868
|
pinned: "pinned";
|
|
@@ -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.js").components["schemas"]["ProRatingConfig"];
|
|
36
36
|
readonly billingAnchor: Date;
|
|
37
|
+
readonly billingStartsAt?: Date;
|
|
37
38
|
readonly settlementMode: import("./schemas.js").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.js").components["schemas"]["ProRatingConfig"];
|
|
64
65
|
readonly billingAnchor: Date;
|
|
66
|
+
readonly billingStartsAt?: Date;
|
|
65
67
|
readonly settlementMode: import("./schemas.js").components["schemas"]["BillingSettlementMode"];
|
|
66
68
|
alignment?: import("./schemas.js").components["schemas"]["SubscriptionAlignment"];
|
|
67
69
|
phases: import("./schemas.js").components["schemas"]["SubscriptionPhaseExpanded"][];
|
|
@@ -94,6 +96,7 @@ export declare class Subscriptions {
|
|
|
94
96
|
readonly billingCadence: string;
|
|
95
97
|
readonly proRatingConfig?: import("./schemas.js").components["schemas"]["ProRatingConfig"];
|
|
96
98
|
readonly billingAnchor: Date;
|
|
99
|
+
readonly billingStartsAt?: Date;
|
|
97
100
|
readonly settlementMode: import("./schemas.js").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.js").components["schemas"]["ProRatingConfig"];
|
|
126
129
|
readonly billingAnchor: Date;
|
|
130
|
+
readonly billingStartsAt?: Date;
|
|
127
131
|
readonly settlementMode: import("./schemas.js").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.js").components["schemas"]["ProRatingConfig"];
|
|
179
183
|
readonly billingAnchor: Date;
|
|
184
|
+
readonly billingStartsAt?: Date;
|
|
180
185
|
readonly settlementMode: import("./schemas.js").components["schemas"]["BillingSettlementMode"];
|
|
181
186
|
} | undefined>;
|
|
182
187
|
/**
|
package/dist/src/zod/index.d.ts
CHANGED
|
@@ -4837,6 +4837,7 @@ export declare const CreateSubscriptionBody: zod.ZodUnion<readonly [zod.ZodObjec
|
|
|
4837
4837
|
billablesMustAlign: zod.ZodOptional<zod.z.ZodCoercedBoolean<unknown>>;
|
|
4838
4838
|
}, zod.z.core.$strip>>;
|
|
4839
4839
|
billingAnchor: zod.ZodOptional<zod.z.ZodCoercedDate<unknown>>;
|
|
4840
|
+
billingStartsAt: zod.ZodOptional<zod.z.ZodCoercedDate<unknown>>;
|
|
4840
4841
|
costBasisMode: zod.ZodDefault<zod.ZodEnum<{
|
|
4841
4842
|
dynamic: "dynamic";
|
|
4842
4843
|
pinned: "pinned";
|
|
@@ -4861,6 +4862,7 @@ export declare const CreateSubscriptionBody: zod.ZodUnion<readonly [zod.ZodObjec
|
|
|
4861
4862
|
}>, zod.z.ZodCoercedDate<unknown>]>>;
|
|
4862
4863
|
}, zod.z.core.$strip>, zod.ZodObject<{
|
|
4863
4864
|
billingAnchor: zod.ZodOptional<zod.z.ZodCoercedDate<unknown>>;
|
|
4865
|
+
billingStartsAt: zod.ZodOptional<zod.z.ZodCoercedDate<unknown>>;
|
|
4864
4866
|
costBasisMode: zod.ZodDefault<zod.ZodEnum<{
|
|
4865
4867
|
dynamic: "dynamic";
|
|
4866
4868
|
pinned: "pinned";
|
package/dist/src/zod/index.js
CHANGED
|
@@ -10101,6 +10101,10 @@ export const CreateSubscriptionBody = zod
|
|
|
10101
10101
|
.date()
|
|
10102
10102
|
.optional()
|
|
10103
10103
|
.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.'),
|
|
10104
|
+
billingStartsAt: zod.coerce
|
|
10105
|
+
.date()
|
|
10106
|
+
.optional()
|
|
10107
|
+
.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."),
|
|
10104
10108
|
costBasisMode: zod
|
|
10105
10109
|
.enum(['dynamic', 'pinned'])
|
|
10106
10110
|
.describe('Controls how custom-currency cost bases are selected for the subscription.')
|
|
@@ -10176,6 +10180,10 @@ export const CreateSubscriptionBody = zod
|
|
|
10176
10180
|
.date()
|
|
10177
10181
|
.optional()
|
|
10178
10182
|
.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.'),
|
|
10183
|
+
billingStartsAt: zod.coerce
|
|
10184
|
+
.date()
|
|
10185
|
+
.optional()
|
|
10186
|
+
.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."),
|
|
10179
10187
|
costBasisMode: zod
|
|
10180
10188
|
.enum(['dynamic', 'pinned'])
|
|
10181
10189
|
.describe('Controls how custom-currency cost bases are selected for the subscription.')
|