orb-billing 5.37.2 → 5.40.0
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 +35 -0
- package/LICENSE +1 -1
- package/README.md +4 -1
- package/index.d.mts +7 -4
- package/index.d.ts +7 -4
- package/index.d.ts.map +1 -1
- package/index.js +5 -0
- package/index.js.map +1 -1
- package/index.mjs +7 -2
- package/index.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/credit-blocks.d.ts +59 -0
- package/resources/credit-blocks.d.ts.map +1 -0
- package/resources/credit-blocks.js +38 -0
- package/resources/credit-blocks.js.map +1 -0
- package/resources/credit-blocks.mjs +34 -0
- package/resources/credit-blocks.mjs.map +1 -0
- package/resources/index.d.ts +3 -2
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +5 -1
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +3 -2
- package/resources/index.mjs.map +1 -1
- package/resources/invoices.d.ts +439 -2
- package/resources/invoices.d.ts.map +1 -1
- package/resources/invoices.js +28 -1
- package/resources/invoices.js.map +1 -1
- package/resources/invoices.mjs +26 -0
- package/resources/invoices.mjs.map +1 -1
- package/resources/plans/index.d.ts +1 -0
- package/resources/plans/index.d.ts.map +1 -1
- package/resources/plans/index.js +4 -1
- package/resources/plans/index.js.map +1 -1
- package/resources/plans/index.mjs +1 -0
- package/resources/plans/index.mjs.map +1 -1
- package/resources/plans/migrations.d.ts +47 -0
- package/resources/plans/migrations.d.ts.map +1 -0
- package/resources/plans/migrations.js +36 -0
- package/resources/plans/migrations.js.map +1 -0
- package/resources/plans/migrations.mjs +31 -0
- package/resources/plans/migrations.mjs.map +1 -0
- package/resources/plans/plans.d.ts +4 -0
- package/resources/plans/plans.d.ts.map +1 -1
- package/resources/plans/plans.js +5 -0
- package/resources/plans/plans.js.map +1 -1
- package/resources/plans/plans.mjs +5 -0
- package/resources/plans/plans.mjs.map +1 -1
- package/resources/prices/prices.d.ts +1 -91
- package/resources/prices/prices.d.ts.map +1 -1
- package/resources/prices/prices.js.map +1 -1
- package/resources/prices/prices.mjs.map +1 -1
- package/resources/shared.d.ts +3 -273
- package/resources/shared.d.ts.map +1 -1
- package/resources/shared.js.map +1 -1
- package/resources/shared.mjs.map +1 -1
- package/resources/subscription-changes.d.ts +96 -1
- package/resources/subscription-changes.d.ts.map +1 -1
- package/resources/subscription-changes.js +15 -1
- package/resources/subscription-changes.js.map +1 -1
- package/resources/subscription-changes.mjs +13 -0
- package/resources/subscription-changes.mjs.map +1 -1
- package/resources/subscriptions.d.ts +1 -91
- package/resources/subscriptions.d.ts.map +1 -1
- package/resources/subscriptions.js.map +1 -1
- package/resources/subscriptions.mjs.map +1 -1
- package/src/index.ts +19 -0
- package/src/resources/credit-blocks.ts +81 -0
- package/src/resources/index.ts +7 -0
- package/src/resources/invoices.ts +557 -1
- package/src/resources/plans/index.ts +8 -0
- package/src/resources/plans/migrations.ts +105 -0
- package/src/resources/plans/plans.ts +21 -0
- package/src/resources/prices/prices.ts +1 -91
- package/src/resources/shared.ts +3 -273
- package/src/resources/subscription-changes.ts +142 -0
- package/src/resources/subscriptions.ts +1 -91
- package/src/version.ts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
package/resources/shared.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"shared.js","sourceRoot":"","sources":["../src/resources/shared.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAGtF,iDAAqC;
|
|
1
|
+
{"version":3,"file":"shared.js","sourceRoot":"","sources":["../src/resources/shared.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAGtF,iDAAqC;AA8gcrC,MAAa,eAAgB,SAAQ,iBAAgB;CAAG;AAAxD,0CAAwD;AAExD,MAAa,YAAa,SAAQ,iBAAa;CAAG;AAAlD,oCAAkD;AAElD,MAAa,UAAW,SAAQ,iBAAW;CAAG;AAA9C,gCAA8C"}
|
package/resources/shared.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"shared.mjs","sourceRoot":"","sources":["../src/resources/shared.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAG/E,EAAE,IAAI,EAAE;
|
|
1
|
+
{"version":3,"file":"shared.mjs","sourceRoot":"","sources":["../src/resources/shared.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAG/E,EAAE,IAAI,EAAE;AA8gcf,MAAM,OAAO,eAAgB,SAAQ,IAAgB;CAAG;AAExD,MAAM,OAAO,YAAa,SAAQ,IAAa;CAAG;AAElD,MAAM,OAAO,UAAW,SAAQ,IAAW;CAAG"}
|
|
@@ -3,6 +3,7 @@ import * as Core from "../core.js";
|
|
|
3
3
|
import * as Shared from "./shared.js";
|
|
4
4
|
import * as CustomersAPI from "./customers/customers.js";
|
|
5
5
|
import * as PlansAPI from "./plans/plans.js";
|
|
6
|
+
import { Page, type PageParams } from "../pagination.js";
|
|
6
7
|
export declare class SubscriptionChanges extends APIResource {
|
|
7
8
|
/**
|
|
8
9
|
* This endpoint returns a subscription change given an identifier.
|
|
@@ -16,6 +17,13 @@ export declare class SubscriptionChanges extends APIResource {
|
|
|
16
17
|
* `pending_subscription_change` field in the response.
|
|
17
18
|
*/
|
|
18
19
|
retrieve(subscriptionChangeId: string, options?: Core.RequestOptions): Core.APIPromise<SubscriptionChangeRetrieveResponse>;
|
|
20
|
+
/**
|
|
21
|
+
* This endpoint returns a list of pending subscription changes for a customer. Use
|
|
22
|
+
* the [Fetch Subscription Change](fetch-subscription-change) endpoint to retrieve
|
|
23
|
+
* the expected subscription state after the pending change is applied.
|
|
24
|
+
*/
|
|
25
|
+
list(query?: SubscriptionChangeListParams, options?: Core.RequestOptions): Core.PagePromise<SubscriptionChangeListResponsesPage, SubscriptionChangeListResponse>;
|
|
26
|
+
list(options?: Core.RequestOptions): Core.PagePromise<SubscriptionChangeListResponsesPage, SubscriptionChangeListResponse>;
|
|
19
27
|
/**
|
|
20
28
|
* Apply a subscription change to perform the intended action. If a positive amount
|
|
21
29
|
* is passed with a request to this endpoint, any eligible invoices that were
|
|
@@ -30,6 +38,8 @@ export declare class SubscriptionChanges extends APIResource {
|
|
|
30
38
|
*/
|
|
31
39
|
cancel(subscriptionChangeId: string, options?: Core.RequestOptions): Core.APIPromise<SubscriptionChangeCancelResponse>;
|
|
32
40
|
}
|
|
41
|
+
export declare class SubscriptionChangeListResponsesPage extends Page<SubscriptionChangeListResponse> {
|
|
42
|
+
}
|
|
33
43
|
export interface MutatedSubscription {
|
|
34
44
|
id: string;
|
|
35
45
|
/**
|
|
@@ -173,6 +183,10 @@ export interface MutatedSubscription {
|
|
|
173
183
|
*/
|
|
174
184
|
export interface SubscriptionChangeRetrieveResponse {
|
|
175
185
|
id: string;
|
|
186
|
+
/**
|
|
187
|
+
* The type of change (e.g., 'schedule_plan_change', 'create_subscription').
|
|
188
|
+
*/
|
|
189
|
+
change_type: string;
|
|
176
190
|
/**
|
|
177
191
|
* Subscription change will be cancelled at this time and can no longer be applied.
|
|
178
192
|
*/
|
|
@@ -183,6 +197,40 @@ export interface SubscriptionChangeRetrieveResponse {
|
|
|
183
197
|
* When this change was applied.
|
|
184
198
|
*/
|
|
185
199
|
applied_at?: string | null;
|
|
200
|
+
/**
|
|
201
|
+
* Billing cycle alignment for plan changes.
|
|
202
|
+
*/
|
|
203
|
+
billing_cycle_alignment?: string | null;
|
|
204
|
+
/**
|
|
205
|
+
* When this change was cancelled.
|
|
206
|
+
*/
|
|
207
|
+
cancelled_at?: string | null;
|
|
208
|
+
/**
|
|
209
|
+
* How the change is scheduled (e.g., 'immediate', 'end_of_subscription_term',
|
|
210
|
+
* 'requested_date').
|
|
211
|
+
*/
|
|
212
|
+
change_option?: string | null;
|
|
213
|
+
/**
|
|
214
|
+
* When this change will take effect.
|
|
215
|
+
*/
|
|
216
|
+
effective_date?: string | null;
|
|
217
|
+
/**
|
|
218
|
+
* The target plan ID for plan changes.
|
|
219
|
+
*/
|
|
220
|
+
plan_id?: string | null;
|
|
221
|
+
}
|
|
222
|
+
export interface SubscriptionChangeListResponse {
|
|
223
|
+
id: string;
|
|
224
|
+
/**
|
|
225
|
+
* Subscription change will be cancelled at this time and can no longer be applied.
|
|
226
|
+
*/
|
|
227
|
+
expiration_time: string;
|
|
228
|
+
status: 'pending' | 'applied' | 'cancelled';
|
|
229
|
+
subscription_id: string | null;
|
|
230
|
+
/**
|
|
231
|
+
* When this change was applied.
|
|
232
|
+
*/
|
|
233
|
+
applied_at?: string | null;
|
|
186
234
|
/**
|
|
187
235
|
* When this change was cancelled.
|
|
188
236
|
*/
|
|
@@ -196,6 +244,10 @@ export interface SubscriptionChangeRetrieveResponse {
|
|
|
196
244
|
*/
|
|
197
245
|
export interface SubscriptionChangeApplyResponse {
|
|
198
246
|
id: string;
|
|
247
|
+
/**
|
|
248
|
+
* The type of change (e.g., 'schedule_plan_change', 'create_subscription').
|
|
249
|
+
*/
|
|
250
|
+
change_type: string;
|
|
199
251
|
/**
|
|
200
252
|
* Subscription change will be cancelled at this time and can no longer be applied.
|
|
201
253
|
*/
|
|
@@ -206,10 +258,27 @@ export interface SubscriptionChangeApplyResponse {
|
|
|
206
258
|
* When this change was applied.
|
|
207
259
|
*/
|
|
208
260
|
applied_at?: string | null;
|
|
261
|
+
/**
|
|
262
|
+
* Billing cycle alignment for plan changes.
|
|
263
|
+
*/
|
|
264
|
+
billing_cycle_alignment?: string | null;
|
|
209
265
|
/**
|
|
210
266
|
* When this change was cancelled.
|
|
211
267
|
*/
|
|
212
268
|
cancelled_at?: string | null;
|
|
269
|
+
/**
|
|
270
|
+
* How the change is scheduled (e.g., 'immediate', 'end_of_subscription_term',
|
|
271
|
+
* 'requested_date').
|
|
272
|
+
*/
|
|
273
|
+
change_option?: string | null;
|
|
274
|
+
/**
|
|
275
|
+
* When this change will take effect.
|
|
276
|
+
*/
|
|
277
|
+
effective_date?: string | null;
|
|
278
|
+
/**
|
|
279
|
+
* The target plan ID for plan changes.
|
|
280
|
+
*/
|
|
281
|
+
plan_id?: string | null;
|
|
213
282
|
}
|
|
214
283
|
/**
|
|
215
284
|
* A subscription change represents a desired new subscription / pending change to
|
|
@@ -219,6 +288,10 @@ export interface SubscriptionChangeApplyResponse {
|
|
|
219
288
|
*/
|
|
220
289
|
export interface SubscriptionChangeCancelResponse {
|
|
221
290
|
id: string;
|
|
291
|
+
/**
|
|
292
|
+
* The type of change (e.g., 'schedule_plan_change', 'create_subscription').
|
|
293
|
+
*/
|
|
294
|
+
change_type: string;
|
|
222
295
|
/**
|
|
223
296
|
* Subscription change will be cancelled at this time and can no longer be applied.
|
|
224
297
|
*/
|
|
@@ -229,10 +302,32 @@ export interface SubscriptionChangeCancelResponse {
|
|
|
229
302
|
* When this change was applied.
|
|
230
303
|
*/
|
|
231
304
|
applied_at?: string | null;
|
|
305
|
+
/**
|
|
306
|
+
* Billing cycle alignment for plan changes.
|
|
307
|
+
*/
|
|
308
|
+
billing_cycle_alignment?: string | null;
|
|
232
309
|
/**
|
|
233
310
|
* When this change was cancelled.
|
|
234
311
|
*/
|
|
235
312
|
cancelled_at?: string | null;
|
|
313
|
+
/**
|
|
314
|
+
* How the change is scheduled (e.g., 'immediate', 'end_of_subscription_term',
|
|
315
|
+
* 'requested_date').
|
|
316
|
+
*/
|
|
317
|
+
change_option?: string | null;
|
|
318
|
+
/**
|
|
319
|
+
* When this change will take effect.
|
|
320
|
+
*/
|
|
321
|
+
effective_date?: string | null;
|
|
322
|
+
/**
|
|
323
|
+
* The target plan ID for plan changes.
|
|
324
|
+
*/
|
|
325
|
+
plan_id?: string | null;
|
|
326
|
+
}
|
|
327
|
+
export interface SubscriptionChangeListParams extends PageParams {
|
|
328
|
+
customer_id?: string | null;
|
|
329
|
+
external_customer_id?: string | null;
|
|
330
|
+
status?: 'pending' | 'applied' | 'cancelled' | null;
|
|
236
331
|
}
|
|
237
332
|
export interface SubscriptionChangeApplyParams {
|
|
238
333
|
/**
|
|
@@ -265,6 +360,6 @@ export interface SubscriptionChangeApplyParams {
|
|
|
265
360
|
previously_collected_amount?: string | null;
|
|
266
361
|
}
|
|
267
362
|
export declare namespace SubscriptionChanges {
|
|
268
|
-
export { type MutatedSubscription as MutatedSubscription, type SubscriptionChangeRetrieveResponse as SubscriptionChangeRetrieveResponse, type SubscriptionChangeApplyResponse as SubscriptionChangeApplyResponse, type SubscriptionChangeCancelResponse as SubscriptionChangeCancelResponse, type SubscriptionChangeApplyParams as SubscriptionChangeApplyParams, };
|
|
363
|
+
export { type MutatedSubscription as MutatedSubscription, type SubscriptionChangeRetrieveResponse as SubscriptionChangeRetrieveResponse, type SubscriptionChangeListResponse as SubscriptionChangeListResponse, type SubscriptionChangeApplyResponse as SubscriptionChangeApplyResponse, type SubscriptionChangeCancelResponse as SubscriptionChangeCancelResponse, SubscriptionChangeListResponsesPage as SubscriptionChangeListResponsesPage, type SubscriptionChangeListParams as SubscriptionChangeListParams, type SubscriptionChangeApplyParams as SubscriptionChangeApplyParams, };
|
|
269
364
|
}
|
|
270
365
|
//# sourceMappingURL=subscription-changes.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"subscription-changes.d.ts","sourceRoot":"","sources":["../src/resources/subscription-changes.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAE1C,OAAO,KAAK,IAAI,MAAM,SAAS,CAAC;AAChC,OAAO,KAAK,MAAM,MAAM,UAAU,CAAC;AACnC,OAAO,KAAK,YAAY,MAAM,uBAAuB,CAAC;AACtD,OAAO,KAAK,QAAQ,MAAM,eAAe,CAAC;
|
|
1
|
+
{"version":3,"file":"subscription-changes.d.ts","sourceRoot":"","sources":["../src/resources/subscription-changes.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAE1C,OAAO,KAAK,IAAI,MAAM,SAAS,CAAC;AAChC,OAAO,KAAK,MAAM,MAAM,UAAU,CAAC;AACnC,OAAO,KAAK,YAAY,M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API spec by Stainless. See CONTRIBUTING.md for details.
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
-
exports.SubscriptionChanges = void 0;
|
|
4
|
+
exports.SubscriptionChangeListResponsesPage = exports.SubscriptionChanges = void 0;
|
|
5
5
|
const resource_1 = require("../resource.js");
|
|
6
6
|
const core_1 = require("../core.js");
|
|
7
|
+
const pagination_1 = require("../pagination.js");
|
|
7
8
|
class SubscriptionChanges extends resource_1.APIResource {
|
|
8
9
|
/**
|
|
9
10
|
* This endpoint returns a subscription change given an identifier.
|
|
@@ -19,6 +20,15 @@ class SubscriptionChanges extends resource_1.APIResource {
|
|
|
19
20
|
retrieve(subscriptionChangeId, options) {
|
|
20
21
|
return this._client.get(`/subscription_changes/${subscriptionChangeId}`, options);
|
|
21
22
|
}
|
|
23
|
+
list(query = {}, options) {
|
|
24
|
+
if ((0, core_1.isRequestOptions)(query)) {
|
|
25
|
+
return this.list({}, query);
|
|
26
|
+
}
|
|
27
|
+
return this._client.getAPIList('/subscription_changes', SubscriptionChangeListResponsesPage, {
|
|
28
|
+
query,
|
|
29
|
+
...options,
|
|
30
|
+
});
|
|
31
|
+
}
|
|
22
32
|
apply(subscriptionChangeId, body = {}, options) {
|
|
23
33
|
if ((0, core_1.isRequestOptions)(body)) {
|
|
24
34
|
return this.apply(subscriptionChangeId, {}, body);
|
|
@@ -35,4 +45,8 @@ class SubscriptionChanges extends resource_1.APIResource {
|
|
|
35
45
|
}
|
|
36
46
|
}
|
|
37
47
|
exports.SubscriptionChanges = SubscriptionChanges;
|
|
48
|
+
class SubscriptionChangeListResponsesPage extends pagination_1.Page {
|
|
49
|
+
}
|
|
50
|
+
exports.SubscriptionChangeListResponsesPage = SubscriptionChangeListResponsesPage;
|
|
51
|
+
SubscriptionChanges.SubscriptionChangeListResponsesPage = SubscriptionChangeListResponsesPage;
|
|
38
52
|
//# sourceMappingURL=subscription-changes.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"subscription-changes.js","sourceRoot":"","sources":["../src/resources/subscription-changes.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,6CAA0C;AAC1C,qCAA2C;
|
|
1
|
+
{"version":3,"file":"subscription-changes.js","sourceRoot":"","sources":["../src/resources/subscription-changes.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,6CAA0C;AAC1C,qCAA2C;AAK3C,iDAAsD;AAEtD,MAAa,mBAAoB,SAAQ,sBAAW;IAClD;;;;;;;;;;OAUG;IACH,QAAQ,CACN,oBAA4B,EAC5B,OAA6B;QAE7B,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,yBAAyB,oBAAoB,EAAE,EAAE,OAAO,CAAC,CAAC;IACpF,CAAC;IAcD,IAAI,CACF,QAA4D,EAAE,EAC9D,OAA6B;QAE7B,IAAI,IAAA,uBAAgB,EAAC,KAAK,CAAC,EAAE;YAC3B,OAAO,IAAI,CAAC,IAAI,CAAC,EAAE,EAAE,KAAK,CAAC,CAAC;SAC7B;QACD,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,uBAAuB,EAAE,mCAAmC,EAAE;YAC3F,KAAK;YACL,GAAG,OAAO;SACX,CAAC,CAAC;IACL,CAAC;IAgBD,KAAK,CACH,oBAA4B,EAC5B,OAA4D,EAAE,EAC9D,OAA6B;QAE7B,IAAI,IAAA,uBAAgB,EAAC,IAAI,CAAC,EAAE;YAC1B,OAAO,IAAI,CAAC,KAAK,CAAC,oBAAoB,EAAE,EAAE,EAAE,IAAI,CAAC,CAAC;SACnD;QACD,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,yBAAyB,oBAAoB,QAAQ,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACxG,CAAC;IAED;;;;OAIG;IACH,MAAM,CACJ,oBAA4B,EAC5B,OAA6B;QAE7B,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,yBAAyB,oBAAoB,SAAS,EAAE,OAAO,CAAC,CAAC;IAC5F,CAAC;CACF;AAhFD,kDAgFC;AAED,MAAa,mCAAoC,SAAQ,iBAAoC;CAAG;AAAhG,kFAAgG;AA6YhG,mBAAmB,CAAC,mCAAmC,GAAG,mCAAmC,CAAC"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
import { APIResource } from "../resource.mjs";
|
|
3
3
|
import { isRequestOptions } from "../core.mjs";
|
|
4
|
+
import { Page } from "../pagination.mjs";
|
|
4
5
|
export class SubscriptionChanges extends APIResource {
|
|
5
6
|
/**
|
|
6
7
|
* This endpoint returns a subscription change given an identifier.
|
|
@@ -16,6 +17,15 @@ export class SubscriptionChanges extends APIResource {
|
|
|
16
17
|
retrieve(subscriptionChangeId, options) {
|
|
17
18
|
return this._client.get(`/subscription_changes/${subscriptionChangeId}`, options);
|
|
18
19
|
}
|
|
20
|
+
list(query = {}, options) {
|
|
21
|
+
if (isRequestOptions(query)) {
|
|
22
|
+
return this.list({}, query);
|
|
23
|
+
}
|
|
24
|
+
return this._client.getAPIList('/subscription_changes', SubscriptionChangeListResponsesPage, {
|
|
25
|
+
query,
|
|
26
|
+
...options,
|
|
27
|
+
});
|
|
28
|
+
}
|
|
19
29
|
apply(subscriptionChangeId, body = {}, options) {
|
|
20
30
|
if (isRequestOptions(body)) {
|
|
21
31
|
return this.apply(subscriptionChangeId, {}, body);
|
|
@@ -31,4 +41,7 @@ export class SubscriptionChanges extends APIResource {
|
|
|
31
41
|
return this._client.post(`/subscription_changes/${subscriptionChangeId}/cancel`, options);
|
|
32
42
|
}
|
|
33
43
|
}
|
|
44
|
+
export class SubscriptionChangeListResponsesPage extends Page {
|
|
45
|
+
}
|
|
46
|
+
SubscriptionChanges.SubscriptionChangeListResponsesPage = SubscriptionChangeListResponsesPage;
|
|
34
47
|
//# sourceMappingURL=subscription-changes.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"subscription-changes.mjs","sourceRoot":"","sources":["../src/resources/subscription-changes.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OACf,EAAE,gBAAgB,EAAE;
|
|
1
|
+
{"version":3,"file":"subscription-changes.mjs","sourceRoot":"","sources":["../src/resources/subscription-changes.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OACf,EAAE,gBAAgB,EAAE;OAKpB,EAAE,IAAI,EAAmB;AAEhC,MAAM,OAAO,mBAAoB,SAAQ,WAAW;IAClD;;;;;;;;;;OAUG;IACH,QAAQ,CACN,oBAA4B,EAC5B,OAA6B;QAE7B,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,yBAAyB,oBAAoB,EAAE,EAAE,OAAO,CAAC,CAAC;IACpF,CAAC;IAcD,IAAI,CACF,QAA4D,EAAE,EAC9D,OAA6B;QAE7B,IAAI,gBAAgB,CAAC,KAAK,CAAC,EAAE;YAC3B,OAAO,IAAI,CAAC,IAAI,CAAC,EAAE,EAAE,KAAK,CAAC,CAAC;SAC7B;QACD,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,uBAAuB,EAAE,mCAAmC,EAAE;YAC3F,KAAK;YACL,GAAG,OAAO;SACX,CAAC,CAAC;IACL,CAAC;IAgBD,KAAK,CACH,oBAA4B,EAC5B,OAA4D,EAAE,EAC9D,OAA6B;QAE7B,IAAI,gBAAgB,CAAC,IAAI,CAAC,EAAE;YAC1B,OAAO,IAAI,CAAC,KAAK,CAAC,oBAAoB,EAAE,EAAE,EAAE,IAAI,CAAC,CAAC;SACnD;QACD,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,yBAAyB,oBAAoB,QAAQ,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACxG,CAAC;IAED;;;;OAIG;IACH,MAAM,CACJ,oBAA4B,EAC5B,OAA6B;QAE7B,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,yBAAyB,oBAAoB,SAAS,EAAE,OAAO,CAAC,CAAC;IAC5F,CAAC;CACF;AAED,MAAM,OAAO,mCAAoC,SAAQ,IAAoC;CAAG;AA6YhG,mBAAmB,CAAC,mCAAmC,GAAG,mCAAmC,CAAC"}
|
|
@@ -1220,9 +1220,6 @@ export declare namespace NewSubscriptionCumulativeGroupedBulkPrice {
|
|
|
1220
1220
|
* Each tier lower bound must have the same group of values.
|
|
1221
1221
|
*/
|
|
1222
1222
|
dimension_values: Array<CumulativeGroupedBulkConfig.DimensionValue>;
|
|
1223
|
-
/**
|
|
1224
|
-
* Grouping key name
|
|
1225
|
-
*/
|
|
1226
1223
|
group: string;
|
|
1227
1224
|
}
|
|
1228
1225
|
namespace CumulativeGroupedBulkConfig {
|
|
@@ -1443,9 +1440,6 @@ export declare namespace NewSubscriptionGroupedTieredPackagePrice {
|
|
|
1443
1440
|
* The event property used to group before tiering
|
|
1444
1441
|
*/
|
|
1445
1442
|
grouping_key: string;
|
|
1446
|
-
/**
|
|
1447
|
-
* Package size
|
|
1448
|
-
*/
|
|
1449
1443
|
package_size: string;
|
|
1450
1444
|
/**
|
|
1451
1445
|
* Apply tiered pricing after rounding up the quantity to the package size. Tiers
|
|
@@ -1459,12 +1453,9 @@ export declare namespace NewSubscriptionGroupedTieredPackagePrice {
|
|
|
1459
1453
|
*/
|
|
1460
1454
|
interface Tier {
|
|
1461
1455
|
/**
|
|
1462
|
-
*
|
|
1456
|
+
* Per package
|
|
1463
1457
|
*/
|
|
1464
1458
|
per_unit: string;
|
|
1465
|
-
/**
|
|
1466
|
-
* Tier lower bound
|
|
1467
|
-
*/
|
|
1468
1459
|
tier_lower_bound: string;
|
|
1469
1460
|
}
|
|
1470
1461
|
}
|
|
@@ -1574,9 +1565,6 @@ export declare namespace NewSubscriptionGroupedTieredPrice {
|
|
|
1574
1565
|
* Configuration for a single tier
|
|
1575
1566
|
*/
|
|
1576
1567
|
interface Tier {
|
|
1577
|
-
/**
|
|
1578
|
-
* Tier lower bound
|
|
1579
|
-
*/
|
|
1580
1568
|
tier_lower_bound: string;
|
|
1581
1569
|
/**
|
|
1582
1570
|
* Per unit amount
|
|
@@ -1707,22 +1695,13 @@ export declare namespace NewSubscriptionGroupedWithMeteredMinimumPrice {
|
|
|
1707
1695
|
* Configuration for a scaling factor
|
|
1708
1696
|
*/
|
|
1709
1697
|
interface ScalingFactor {
|
|
1710
|
-
/**
|
|
1711
|
-
* Scaling factor
|
|
1712
|
-
*/
|
|
1713
1698
|
scaling_factor: string;
|
|
1714
|
-
/**
|
|
1715
|
-
* Scaling value
|
|
1716
|
-
*/
|
|
1717
1699
|
scaling_value: string;
|
|
1718
1700
|
}
|
|
1719
1701
|
/**
|
|
1720
1702
|
* Configuration for a unit amount
|
|
1721
1703
|
*/
|
|
1722
1704
|
interface UnitAmount {
|
|
1723
|
-
/**
|
|
1724
|
-
* Pricing value
|
|
1725
|
-
*/
|
|
1726
1705
|
pricing_value: string;
|
|
1727
1706
|
/**
|
|
1728
1707
|
* Per unit amount
|
|
@@ -2218,9 +2197,6 @@ export declare namespace NewSubscriptionMaxGroupTieredPackagePrice {
|
|
|
2218
2197
|
* The event property used to group before tiering the group with the highest value
|
|
2219
2198
|
*/
|
|
2220
2199
|
grouping_key: string;
|
|
2221
|
-
/**
|
|
2222
|
-
* Package size
|
|
2223
|
-
*/
|
|
2224
2200
|
package_size: string;
|
|
2225
2201
|
/**
|
|
2226
2202
|
* Apply tiered pricing to the largest group after grouping with the provided key.
|
|
@@ -2232,9 +2208,6 @@ export declare namespace NewSubscriptionMaxGroupTieredPackagePrice {
|
|
|
2232
2208
|
* Configuration for a single tier
|
|
2233
2209
|
*/
|
|
2234
2210
|
interface Tier {
|
|
2235
|
-
/**
|
|
2236
|
-
* Tier lower bound
|
|
2237
|
-
*/
|
|
2238
2211
|
tier_lower_bound: string;
|
|
2239
2212
|
/**
|
|
2240
2213
|
* Per unit amount
|
|
@@ -2518,17 +2491,8 @@ export declare namespace NewSubscriptionPackageWithAllocationPrice {
|
|
|
2518
2491
|
* Configuration for package_with_allocation pricing
|
|
2519
2492
|
*/
|
|
2520
2493
|
interface PackageWithAllocationConfig {
|
|
2521
|
-
/**
|
|
2522
|
-
* Usage allocation
|
|
2523
|
-
*/
|
|
2524
2494
|
allocation: string;
|
|
2525
|
-
/**
|
|
2526
|
-
* Price per package
|
|
2527
|
-
*/
|
|
2528
2495
|
package_amount: string;
|
|
2529
|
-
/**
|
|
2530
|
-
* Package size
|
|
2531
|
-
*/
|
|
2532
2496
|
package_size: string;
|
|
2533
2497
|
}
|
|
2534
2498
|
}
|
|
@@ -2630,9 +2594,6 @@ export declare namespace NewSubscriptionScalableMatrixWithTieredPricingPrice {
|
|
|
2630
2594
|
* Apply a scaling factor to each dimension
|
|
2631
2595
|
*/
|
|
2632
2596
|
matrix_scaling_factors: Array<ScalableMatrixWithTieredPricingConfig.MatrixScalingFactor>;
|
|
2633
|
-
/**
|
|
2634
|
-
* Tier pricing structure
|
|
2635
|
-
*/
|
|
2636
2597
|
tiers: Array<ScalableMatrixWithTieredPricingConfig.Tier>;
|
|
2637
2598
|
/**
|
|
2638
2599
|
* Used for the scalable matrix second dimension (optional)
|
|
@@ -2644,30 +2605,15 @@ export declare namespace NewSubscriptionScalableMatrixWithTieredPricingPrice {
|
|
|
2644
2605
|
* Configuration for a single matrix scaling factor
|
|
2645
2606
|
*/
|
|
2646
2607
|
interface MatrixScalingFactor {
|
|
2647
|
-
/**
|
|
2648
|
-
* First dimension value
|
|
2649
|
-
*/
|
|
2650
2608
|
first_dimension_value: string;
|
|
2651
|
-
/**
|
|
2652
|
-
* Scaling factor
|
|
2653
|
-
*/
|
|
2654
2609
|
scaling_factor: string;
|
|
2655
|
-
/**
|
|
2656
|
-
* Second dimension value (optional)
|
|
2657
|
-
*/
|
|
2658
2610
|
second_dimension_value?: string | null;
|
|
2659
2611
|
}
|
|
2660
2612
|
/**
|
|
2661
2613
|
* Configuration for a single tier entry with business logic
|
|
2662
2614
|
*/
|
|
2663
2615
|
interface Tier {
|
|
2664
|
-
/**
|
|
2665
|
-
* Tier lower bound
|
|
2666
|
-
*/
|
|
2667
2616
|
tier_lower_bound: string;
|
|
2668
|
-
/**
|
|
2669
|
-
* Per unit amount
|
|
2670
|
-
*/
|
|
2671
2617
|
unit_amount: string;
|
|
2672
2618
|
}
|
|
2673
2619
|
}
|
|
@@ -2788,17 +2734,8 @@ export declare namespace NewSubscriptionScalableMatrixWithUnitPricingPrice {
|
|
|
2788
2734
|
* Configuration for a single matrix scaling factor
|
|
2789
2735
|
*/
|
|
2790
2736
|
interface MatrixScalingFactor {
|
|
2791
|
-
/**
|
|
2792
|
-
* First dimension value
|
|
2793
|
-
*/
|
|
2794
2737
|
first_dimension_value: string;
|
|
2795
|
-
/**
|
|
2796
|
-
* Scaling factor
|
|
2797
|
-
*/
|
|
2798
2738
|
scaling_factor: string;
|
|
2799
|
-
/**
|
|
2800
|
-
* Second dimension value (optional)
|
|
2801
|
-
*/
|
|
2802
2739
|
second_dimension_value?: string | null;
|
|
2803
2740
|
}
|
|
2804
2741
|
}
|
|
@@ -2908,9 +2845,6 @@ export declare namespace NewSubscriptionThresholdTotalAmountPrice {
|
|
|
2908
2845
|
* Configuration for a single threshold
|
|
2909
2846
|
*/
|
|
2910
2847
|
interface ConsumptionTable {
|
|
2911
|
-
/**
|
|
2912
|
-
* Quantity threshold
|
|
2913
|
-
*/
|
|
2914
2848
|
threshold: string;
|
|
2915
2849
|
/**
|
|
2916
2850
|
* Total amount for this threshold
|
|
@@ -3009,9 +2943,6 @@ export declare namespace NewSubscriptionTieredPackagePrice {
|
|
|
3009
2943
|
* Configuration for tiered_package pricing
|
|
3010
2944
|
*/
|
|
3011
2945
|
interface TieredPackageConfig {
|
|
3012
|
-
/**
|
|
3013
|
-
* Package size
|
|
3014
|
-
*/
|
|
3015
2946
|
package_size: string;
|
|
3016
2947
|
/**
|
|
3017
2948
|
* Apply tiered pricing after rounding up the quantity to the package size. Tiers
|
|
@@ -3030,9 +2961,6 @@ export declare namespace NewSubscriptionTieredPackagePrice {
|
|
|
3030
2961
|
* Price per package
|
|
3031
2962
|
*/
|
|
3032
2963
|
per_unit: string;
|
|
3033
|
-
/**
|
|
3034
|
-
* Tier lower bound
|
|
3035
|
-
*/
|
|
3036
2964
|
tier_lower_bound: string;
|
|
3037
2965
|
}
|
|
3038
2966
|
}
|
|
@@ -3127,9 +3055,6 @@ export declare namespace NewSubscriptionTieredPackageWithMinimumPrice {
|
|
|
3127
3055
|
* Configuration for tiered_package_with_minimum pricing
|
|
3128
3056
|
*/
|
|
3129
3057
|
interface TieredPackageWithMinimumConfig {
|
|
3130
|
-
/**
|
|
3131
|
-
* Package size
|
|
3132
|
-
*/
|
|
3133
3058
|
package_size: number;
|
|
3134
3059
|
/**
|
|
3135
3060
|
* Apply tiered pricing after rounding up the quantity to the package size. Tiers
|
|
@@ -3142,17 +3067,8 @@ export declare namespace NewSubscriptionTieredPackageWithMinimumPrice {
|
|
|
3142
3067
|
* Configuration for a single tier
|
|
3143
3068
|
*/
|
|
3144
3069
|
interface Tier {
|
|
3145
|
-
/**
|
|
3146
|
-
* Minimum amount
|
|
3147
|
-
*/
|
|
3148
3070
|
minimum_amount: string;
|
|
3149
|
-
/**
|
|
3150
|
-
* Price per package
|
|
3151
|
-
*/
|
|
3152
3071
|
per_unit: string;
|
|
3153
|
-
/**
|
|
3154
|
-
* Tier lower bound
|
|
3155
|
-
*/
|
|
3156
3072
|
tier_lower_bound: string;
|
|
3157
3073
|
}
|
|
3158
3074
|
}
|
|
@@ -3351,13 +3267,7 @@ export declare namespace NewSubscriptionTieredWithMinimumPrice {
|
|
|
3351
3267
|
* Configuration for a single tier
|
|
3352
3268
|
*/
|
|
3353
3269
|
interface Tier {
|
|
3354
|
-
/**
|
|
3355
|
-
* Minimum amount
|
|
3356
|
-
*/
|
|
3357
3270
|
minimum_amount: string;
|
|
3358
|
-
/**
|
|
3359
|
-
* Tier lower bound
|
|
3360
|
-
*/
|
|
3361
3271
|
tier_lower_bound: string;
|
|
3362
3272
|
/**
|
|
3363
3273
|
* Per unit amount
|