orb-billing 6.0.2 → 6.1.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 +15 -0
- package/client.d.mts +5 -10
- package/client.d.mts.map +1 -1
- package/client.d.ts +5 -10
- package/client.d.ts.map +1 -1
- package/client.js +140 -149
- package/client.js.map +1 -1
- package/client.mjs +138 -146
- package/client.mjs.map +1 -1
- package/core/api-promise.d.mts +2 -2
- package/core/api-promise.d.mts.map +1 -1
- package/core/api-promise.d.ts +2 -2
- package/core/api-promise.d.ts.map +1 -1
- package/core/api-promise.js.map +1 -1
- package/core/api-promise.mjs.map +1 -1
- package/core/pagination.d.mts +4 -4
- package/core/pagination.d.mts.map +1 -1
- package/core/pagination.d.ts +4 -4
- package/core/pagination.d.ts.map +1 -1
- package/core/pagination.js.map +1 -1
- package/core/pagination.mjs.map +1 -1
- package/core/resource.d.mts +3 -3
- package/core/resource.d.mts.map +1 -1
- package/core/resource.d.ts +3 -3
- package/core/resource.d.ts.map +1 -1
- package/core/resource.js.map +1 -1
- package/core/resource.mjs.map +1 -1
- package/index.d.mts +1 -1
- package/index.d.mts.map +1 -1
- package/index.d.ts +1 -1
- package/index.d.ts.map +1 -1
- package/index.js +1 -2
- package/index.js.map +1 -1
- package/index.mjs +1 -1
- package/index.mjs.map +1 -1
- package/internal/parse.d.mts +2 -2
- package/internal/parse.d.mts.map +1 -1
- package/internal/parse.d.ts +2 -2
- package/internal/parse.d.ts.map +1 -1
- package/internal/parse.js.map +1 -1
- package/internal/parse.mjs.map +1 -1
- package/internal/uploads.d.mts +4 -4
- package/internal/uploads.d.mts.map +1 -1
- package/internal/uploads.d.ts +4 -4
- package/internal/uploads.d.ts.map +1 -1
- package/internal/uploads.js.map +1 -1
- package/internal/uploads.mjs.map +1 -1
- package/internal/utils/log.d.mts +3 -3
- package/internal/utils/log.d.mts.map +1 -1
- package/internal/utils/log.d.ts +3 -3
- package/internal/utils/log.d.ts.map +1 -1
- package/internal/utils/log.js.map +1 -1
- package/internal/utils/log.mjs.map +1 -1
- package/package.json +4 -4
- package/resources/alerts.d.mts +18 -7
- package/resources/alerts.d.mts.map +1 -1
- package/resources/alerts.d.ts +18 -7
- package/resources/alerts.d.ts.map +1 -1
- package/resources/alerts.js +31 -14
- package/resources/alerts.js.map +1 -1
- package/resources/alerts.mjs +31 -14
- package/resources/alerts.mjs.map +1 -1
- package/resources/beta/beta.d.mts +2 -2
- package/resources/beta/beta.d.ts +2 -2
- package/resources/beta/beta.js +6 -6
- package/resources/beta/beta.js.map +1 -1
- package/resources/beta/beta.mjs +6 -6
- package/resources/beta/beta.mjs.map +1 -1
- package/resources/beta/external-plan-id.d.mts +2 -2
- package/resources/beta/external-plan-id.d.ts +2 -2
- package/resources/beta/external-plan-id.js +6 -6
- package/resources/beta/external-plan-id.js.map +1 -1
- package/resources/beta/external-plan-id.mjs +6 -6
- package/resources/beta/external-plan-id.mjs.map +1 -1
- package/resources/coupons/coupons.d.mts +2 -2
- package/resources/coupons/coupons.d.ts +2 -2
- package/resources/coupons/coupons.js +4 -4
- package/resources/coupons/coupons.mjs +4 -4
- package/resources/coupons/subscriptions.d.mts +1 -1
- package/resources/coupons/subscriptions.d.ts +1 -1
- package/resources/coupons/subscriptions.js +2 -2
- package/resources/coupons/subscriptions.mjs +2 -2
- package/resources/credit-blocks.d.mts +3 -3
- package/resources/credit-blocks.d.ts +3 -3
- package/resources/credit-blocks.js +6 -6
- package/resources/credit-blocks.mjs +6 -6
- package/resources/credit-notes.d.mts +1 -1
- package/resources/credit-notes.d.ts +1 -1
- package/resources/credit-notes.js +2 -2
- package/resources/credit-notes.mjs +2 -2
- package/resources/customers/balance-transactions.d.mts +2 -2
- package/resources/customers/balance-transactions.d.ts +2 -2
- package/resources/customers/balance-transactions.js +4 -4
- package/resources/customers/balance-transactions.mjs +4 -4
- package/resources/customers/costs.d.mts +2 -2
- package/resources/customers/costs.d.ts +2 -2
- package/resources/customers/costs.js +4 -4
- package/resources/customers/costs.mjs +4 -4
- package/resources/customers/credits/credits.d.mts +2 -2
- package/resources/customers/credits/credits.d.ts +2 -2
- package/resources/customers/credits/credits.js +4 -4
- package/resources/customers/credits/credits.mjs +4 -4
- package/resources/customers/credits/ledger.d.mts +4 -4
- package/resources/customers/credits/ledger.d.ts +4 -4
- package/resources/customers/credits/ledger.js +8 -8
- package/resources/customers/credits/ledger.mjs +8 -8
- package/resources/customers/credits/top-ups.d.mts +6 -6
- package/resources/customers/credits/top-ups.d.ts +6 -6
- package/resources/customers/credits/top-ups.js +14 -14
- package/resources/customers/credits/top-ups.js.map +1 -1
- package/resources/customers/credits/top-ups.mjs +14 -14
- package/resources/customers/credits/top-ups.mjs.map +1 -1
- package/resources/customers/customers.d.mts +65 -7
- package/resources/customers/customers.d.mts.map +1 -1
- package/resources/customers/customers.d.ts +65 -7
- package/resources/customers/customers.d.ts.map +1 -1
- package/resources/customers/customers.js +35 -12
- package/resources/customers/customers.js.map +1 -1
- package/resources/customers/customers.mjs +35 -12
- package/resources/customers/customers.mjs.map +1 -1
- package/resources/customers/index.d.mts +1 -1
- package/resources/customers/index.d.mts.map +1 -1
- package/resources/customers/index.d.ts +1 -1
- package/resources/customers/index.d.ts.map +1 -1
- package/resources/customers/index.js.map +1 -1
- package/resources/customers/index.mjs.map +1 -1
- package/resources/dimensional-price-groups/dimensional-price-groups.d.mts +2 -2
- package/resources/dimensional-price-groups/dimensional-price-groups.d.ts +2 -2
- package/resources/dimensional-price-groups/dimensional-price-groups.js +4 -4
- package/resources/dimensional-price-groups/dimensional-price-groups.mjs +4 -4
- package/resources/dimensional-price-groups/external-dimensional-price-group-id.d.mts +2 -2
- package/resources/dimensional-price-groups/external-dimensional-price-group-id.d.ts +2 -2
- package/resources/dimensional-price-groups/external-dimensional-price-group-id.js +4 -4
- package/resources/dimensional-price-groups/external-dimensional-price-group-id.mjs +4 -4
- package/resources/events/backfills.d.mts +3 -3
- package/resources/events/backfills.d.ts +3 -3
- package/resources/events/backfills.js +6 -6
- package/resources/events/backfills.mjs +6 -6
- package/resources/events/events.d.mts +2 -18
- package/resources/events/events.d.mts.map +1 -1
- package/resources/events/events.d.ts +2 -18
- package/resources/events/events.d.ts.map +1 -1
- package/resources/events/events.js +6 -6
- package/resources/events/events.js.map +1 -1
- package/resources/events/events.mjs +6 -6
- package/resources/events/events.mjs.map +1 -1
- package/resources/index.d.mts +1 -1
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +1 -1
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js.map +1 -1
- package/resources/index.mjs.map +1 -1
- package/resources/invoices.d.mts +74 -8
- package/resources/invoices.d.mts.map +1 -1
- package/resources/invoices.d.ts +74 -8
- package/resources/invoices.d.ts.map +1 -1
- package/resources/invoices.js +87 -17
- package/resources/invoices.js.map +1 -1
- package/resources/invoices.mjs +87 -17
- package/resources/invoices.mjs.map +1 -1
- package/resources/items.d.mts +3 -3
- package/resources/items.d.ts +3 -3
- package/resources/items.js +6 -6
- package/resources/items.mjs +6 -6
- package/resources/license-types.d.mts +1 -1
- package/resources/license-types.d.ts +1 -1
- package/resources/license-types.js +2 -2
- package/resources/license-types.mjs +2 -2
- package/resources/licenses/external-licenses.d.mts +1 -1
- package/resources/licenses/external-licenses.d.ts +1 -1
- package/resources/licenses/external-licenses.js +2 -2
- package/resources/licenses/external-licenses.mjs +2 -2
- package/resources/licenses/licenses.d.mts +3 -3
- package/resources/licenses/licenses.d.ts +3 -3
- package/resources/licenses/licenses.js +6 -6
- package/resources/licenses/licenses.mjs +6 -6
- package/resources/licenses/usage.d.mts +1 -1
- package/resources/licenses/usage.d.ts +1 -1
- package/resources/licenses/usage.js +2 -2
- package/resources/licenses/usage.mjs +2 -2
- package/resources/metrics.d.mts +2 -2
- package/resources/metrics.d.ts +2 -2
- package/resources/metrics.js +4 -4
- package/resources/metrics.mjs +4 -4
- package/resources/plans/external-plan-id.d.mts +2 -2
- package/resources/plans/external-plan-id.d.ts +2 -2
- package/resources/plans/external-plan-id.js +4 -4
- package/resources/plans/external-plan-id.mjs +4 -4
- package/resources/plans/migrations.d.mts +3 -3
- package/resources/plans/migrations.d.ts +3 -3
- package/resources/plans/migrations.js +8 -8
- package/resources/plans/migrations.js.map +1 -1
- package/resources/plans/migrations.mjs +8 -8
- package/resources/plans/migrations.mjs.map +1 -1
- package/resources/plans/plans.d.mts +2 -2
- package/resources/plans/plans.d.ts +2 -2
- package/resources/plans/plans.js +4 -4
- package/resources/plans/plans.mjs +4 -4
- package/resources/prices/external-price-id.d.mts +2 -2
- package/resources/prices/external-price-id.d.ts +2 -2
- package/resources/prices/external-price-id.js +4 -4
- package/resources/prices/external-price-id.mjs +4 -4
- package/resources/prices/prices.d.mts +3 -3
- package/resources/prices/prices.d.ts +3 -3
- package/resources/prices/prices.js +6 -6
- package/resources/prices/prices.mjs +6 -6
- package/resources/subscription-changes.d.mts +3 -3
- package/resources/subscription-changes.d.ts +3 -3
- package/resources/subscription-changes.js +6 -6
- package/resources/subscription-changes.mjs +6 -6
- package/resources/subscriptions.d.mts +15 -15
- package/resources/subscriptions.d.ts +15 -15
- package/resources/subscriptions.js +30 -30
- package/resources/subscriptions.mjs +30 -30
- package/src/client.ts +11 -8
- package/src/core/api-promise.ts +4 -7
- package/src/core/pagination.ts +5 -5
- package/src/core/resource.ts +3 -3
- package/src/index.ts +1 -1
- package/src/internal/parse.ts +2 -2
- package/src/internal/uploads.ts +5 -5
- package/src/internal/utils/log.ts +3 -3
- package/src/resources/alerts.ts +32 -14
- package/src/resources/beta/beta.ts +6 -6
- package/src/resources/beta/external-plan-id.ts +6 -6
- package/src/resources/coupons/coupons.ts +4 -4
- package/src/resources/coupons/subscriptions.ts +2 -2
- package/src/resources/credit-blocks.ts +6 -6
- package/src/resources/credit-notes.ts +2 -2
- package/src/resources/customers/balance-transactions.ts +4 -4
- package/src/resources/customers/costs.ts +4 -4
- package/src/resources/customers/credits/credits.ts +4 -4
- package/src/resources/customers/credits/ledger.ts +8 -8
- package/src/resources/customers/credits/top-ups.ts +14 -14
- package/src/resources/customers/customers.ts +105 -12
- package/src/resources/customers/index.ts +4 -0
- package/src/resources/dimensional-price-groups/dimensional-price-groups.ts +4 -4
- package/src/resources/dimensional-price-groups/external-dimensional-price-group-id.ts +4 -4
- package/src/resources/events/backfills.ts +6 -6
- package/src/resources/events/events.ts +6 -26
- package/src/resources/index.ts +4 -0
- package/src/resources/invoices.ts +89 -17
- package/src/resources/items.ts +6 -6
- package/src/resources/license-types.ts +2 -2
- package/src/resources/licenses/external-licenses.ts +2 -2
- package/src/resources/licenses/licenses.ts +6 -6
- package/src/resources/licenses/usage.ts +2 -2
- package/src/resources/metrics.ts +4 -4
- package/src/resources/plans/external-plan-id.ts +4 -4
- package/src/resources/plans/migrations.ts +8 -8
- package/src/resources/plans/plans.ts +4 -4
- package/src/resources/prices/external-price-id.ts +4 -4
- package/src/resources/prices/prices.ts +6 -6
- package/src/resources/subscription-changes.ts +6 -6
- package/src/resources/subscriptions.ts +30 -30
- package/src/version.ts +1 -1
- package/version.d.mts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
package/resources/items.mjs
CHANGED
|
@@ -28,8 +28,8 @@ export class Items extends APIResource {
|
|
|
28
28
|
* const item = await client.items.update('item_id');
|
|
29
29
|
* ```
|
|
30
30
|
*/
|
|
31
|
-
update(
|
|
32
|
-
return this._client.put(path `/items/${
|
|
31
|
+
update(itemID, body, options) {
|
|
32
|
+
return this._client.put(path `/items/${itemID}`, { body, ...options });
|
|
33
33
|
}
|
|
34
34
|
/**
|
|
35
35
|
* This endpoint returns a list of all Items, ordered in descending order by
|
|
@@ -54,8 +54,8 @@ export class Items extends APIResource {
|
|
|
54
54
|
* const item = await client.items.archive('item_id');
|
|
55
55
|
* ```
|
|
56
56
|
*/
|
|
57
|
-
archive(
|
|
58
|
-
return this._client.post(path `/items/${
|
|
57
|
+
archive(itemID, options) {
|
|
58
|
+
return this._client.post(path `/items/${itemID}/archive`, options);
|
|
59
59
|
}
|
|
60
60
|
/**
|
|
61
61
|
* This endpoint returns an item identified by its item_id.
|
|
@@ -65,8 +65,8 @@ export class Items extends APIResource {
|
|
|
65
65
|
* const item = await client.items.fetch('item_id');
|
|
66
66
|
* ```
|
|
67
67
|
*/
|
|
68
|
-
fetch(
|
|
69
|
-
return this._client.get(path `/items/${
|
|
68
|
+
fetch(itemID, options) {
|
|
69
|
+
return this._client.get(path `/items/${itemID}`, options);
|
|
70
70
|
}
|
|
71
71
|
}
|
|
72
72
|
//# sourceMappingURL=items.mjs.map
|
|
@@ -21,7 +21,7 @@ export declare class LicenseTypes extends APIResource {
|
|
|
21
21
|
* Use this endpoint to retrieve details about a specific license type, including
|
|
22
22
|
* its name and grouping key.
|
|
23
23
|
*/
|
|
24
|
-
retrieve(
|
|
24
|
+
retrieve(licenseTypeID: string, options?: RequestOptions): APIPromise<LicenseTypeRetrieveResponse>;
|
|
25
25
|
/**
|
|
26
26
|
* This endpoint returns a list of all license types configured for the account,
|
|
27
27
|
* ordered in ascending order by creation time.
|
|
@@ -21,7 +21,7 @@ export declare class LicenseTypes extends APIResource {
|
|
|
21
21
|
* Use this endpoint to retrieve details about a specific license type, including
|
|
22
22
|
* its name and grouping key.
|
|
23
23
|
*/
|
|
24
|
-
retrieve(
|
|
24
|
+
retrieve(licenseTypeID: string, options?: RequestOptions): APIPromise<LicenseTypeRetrieveResponse>;
|
|
25
25
|
/**
|
|
26
26
|
* This endpoint returns a list of all license types configured for the account,
|
|
27
27
|
* ordered in ascending order by creation time.
|
|
@@ -26,8 +26,8 @@ class LicenseTypes extends resource_1.APIResource {
|
|
|
26
26
|
* Use this endpoint to retrieve details about a specific license type, including
|
|
27
27
|
* its name and grouping key.
|
|
28
28
|
*/
|
|
29
|
-
retrieve(
|
|
30
|
-
return this._client.get((0, path_1.path) `/license_types/${
|
|
29
|
+
retrieve(licenseTypeID, options) {
|
|
30
|
+
return this._client.get((0, path_1.path) `/license_types/${licenseTypeID}`, options);
|
|
31
31
|
}
|
|
32
32
|
/**
|
|
33
33
|
* This endpoint returns a list of all license types configured for the account,
|
|
@@ -23,8 +23,8 @@ export class LicenseTypes extends APIResource {
|
|
|
23
23
|
* Use this endpoint to retrieve details about a specific license type, including
|
|
24
24
|
* its name and grouping key.
|
|
25
25
|
*/
|
|
26
|
-
retrieve(
|
|
27
|
-
return this._client.get(path `/license_types/${
|
|
26
|
+
retrieve(licenseTypeID, options) {
|
|
27
|
+
return this._client.get(path `/license_types/${licenseTypeID}`, options);
|
|
28
28
|
}
|
|
29
29
|
/**
|
|
30
30
|
* This endpoint returns a list of all license types configured for the account,
|
|
@@ -21,7 +21,7 @@ export declare class ExternalLicenses extends APIResource {
|
|
|
21
21
|
* );
|
|
22
22
|
* ```
|
|
23
23
|
*/
|
|
24
|
-
getUsage(
|
|
24
|
+
getUsage(externalLicenseID: string, query: ExternalLicenseGetUsageParams, options?: RequestOptions): APIPromise<ExternalLicenseGetUsageResponse>;
|
|
25
25
|
}
|
|
26
26
|
export interface ExternalLicenseGetUsageResponse {
|
|
27
27
|
data: Array<ExternalLicenseGetUsageResponse.Data>;
|
|
@@ -21,7 +21,7 @@ export declare class ExternalLicenses extends APIResource {
|
|
|
21
21
|
* );
|
|
22
22
|
* ```
|
|
23
23
|
*/
|
|
24
|
-
getUsage(
|
|
24
|
+
getUsage(externalLicenseID: string, query: ExternalLicenseGetUsageParams, options?: RequestOptions): APIPromise<ExternalLicenseGetUsageResponse>;
|
|
25
25
|
}
|
|
26
26
|
export interface ExternalLicenseGetUsageResponse {
|
|
27
27
|
data: Array<ExternalLicenseGetUsageResponse.Data>;
|
|
@@ -23,8 +23,8 @@ class ExternalLicenses extends resource_1.APIResource {
|
|
|
23
23
|
* );
|
|
24
24
|
* ```
|
|
25
25
|
*/
|
|
26
|
-
getUsage(
|
|
27
|
-
return this._client.get((0, path_1.path) `/licenses/external_licenses/${
|
|
26
|
+
getUsage(externalLicenseID, query, options) {
|
|
27
|
+
return this._client.get((0, path_1.path) `/licenses/external_licenses/${externalLicenseID}/usage`, {
|
|
28
28
|
query,
|
|
29
29
|
...options,
|
|
30
30
|
});
|
|
@@ -20,8 +20,8 @@ export class ExternalLicenses extends APIResource {
|
|
|
20
20
|
* );
|
|
21
21
|
* ```
|
|
22
22
|
*/
|
|
23
|
-
getUsage(
|
|
24
|
-
return this._client.get(path `/licenses/external_licenses/${
|
|
23
|
+
getUsage(externalLicenseID, query, options) {
|
|
24
|
+
return this._client.get(path `/licenses/external_licenses/${externalLicenseID}/usage`, {
|
|
25
25
|
query,
|
|
26
26
|
...options,
|
|
27
27
|
});
|
|
@@ -36,7 +36,7 @@ export declare class Licenses extends APIResource {
|
|
|
36
36
|
* );
|
|
37
37
|
* ```
|
|
38
38
|
*/
|
|
39
|
-
retrieve(
|
|
39
|
+
retrieve(licenseID: string, options?: RequestOptions): APIPromise<LicenseRetrieveResponse>;
|
|
40
40
|
/**
|
|
41
41
|
* This endpoint returns a list of all licenses for a subscription.
|
|
42
42
|
*
|
|
@@ -65,7 +65,7 @@ export declare class Licenses extends APIResource {
|
|
|
65
65
|
* );
|
|
66
66
|
* ```
|
|
67
67
|
*/
|
|
68
|
-
deactivate(
|
|
68
|
+
deactivate(licenseID: string, body: LicenseDeactivateParams, options?: RequestOptions): APIPromise<LicenseDeactivateResponse>;
|
|
69
69
|
/**
|
|
70
70
|
* This endpoint is used to fetch a license given an external license identifier.
|
|
71
71
|
*
|
|
@@ -80,7 +80,7 @@ export declare class Licenses extends APIResource {
|
|
|
80
80
|
* );
|
|
81
81
|
* ```
|
|
82
82
|
*/
|
|
83
|
-
retrieveByExternalID(
|
|
83
|
+
retrieveByExternalID(externalLicenseID: string, query: LicenseRetrieveByExternalIDParams, options?: RequestOptions): APIPromise<LicenseRetrieveByExternalIDResponse>;
|
|
84
84
|
}
|
|
85
85
|
export type LicenseListResponsesPage = Page<LicenseListResponse>;
|
|
86
86
|
export interface LicenseCreateResponse {
|
|
@@ -36,7 +36,7 @@ export declare class Licenses extends APIResource {
|
|
|
36
36
|
* );
|
|
37
37
|
* ```
|
|
38
38
|
*/
|
|
39
|
-
retrieve(
|
|
39
|
+
retrieve(licenseID: string, options?: RequestOptions): APIPromise<LicenseRetrieveResponse>;
|
|
40
40
|
/**
|
|
41
41
|
* This endpoint returns a list of all licenses for a subscription.
|
|
42
42
|
*
|
|
@@ -65,7 +65,7 @@ export declare class Licenses extends APIResource {
|
|
|
65
65
|
* );
|
|
66
66
|
* ```
|
|
67
67
|
*/
|
|
68
|
-
deactivate(
|
|
68
|
+
deactivate(licenseID: string, body: LicenseDeactivateParams, options?: RequestOptions): APIPromise<LicenseDeactivateResponse>;
|
|
69
69
|
/**
|
|
70
70
|
* This endpoint is used to fetch a license given an external license identifier.
|
|
71
71
|
*
|
|
@@ -80,7 +80,7 @@ export declare class Licenses extends APIResource {
|
|
|
80
80
|
* );
|
|
81
81
|
* ```
|
|
82
82
|
*/
|
|
83
|
-
retrieveByExternalID(
|
|
83
|
+
retrieveByExternalID(externalLicenseID: string, query: LicenseRetrieveByExternalIDParams, options?: RequestOptions): APIPromise<LicenseRetrieveByExternalIDResponse>;
|
|
84
84
|
}
|
|
85
85
|
export type LicenseListResponsesPage = Page<LicenseListResponse>;
|
|
86
86
|
export interface LicenseCreateResponse {
|
|
@@ -45,8 +45,8 @@ class Licenses extends resource_1.APIResource {
|
|
|
45
45
|
* );
|
|
46
46
|
* ```
|
|
47
47
|
*/
|
|
48
|
-
retrieve(
|
|
49
|
-
return this._client.get((0, path_1.path) `/licenses/${
|
|
48
|
+
retrieve(licenseID, options) {
|
|
49
|
+
return this._client.get((0, path_1.path) `/licenses/${licenseID}`, options);
|
|
50
50
|
}
|
|
51
51
|
/**
|
|
52
52
|
* This endpoint returns a list of all licenses for a subscription.
|
|
@@ -78,8 +78,8 @@ class Licenses extends resource_1.APIResource {
|
|
|
78
78
|
* );
|
|
79
79
|
* ```
|
|
80
80
|
*/
|
|
81
|
-
deactivate(
|
|
82
|
-
return this._client.post((0, path_1.path) `/licenses/${
|
|
81
|
+
deactivate(licenseID, body, options) {
|
|
82
|
+
return this._client.post((0, path_1.path) `/licenses/${licenseID}/deactivate`, { body, ...options });
|
|
83
83
|
}
|
|
84
84
|
/**
|
|
85
85
|
* This endpoint is used to fetch a license given an external license identifier.
|
|
@@ -95,8 +95,8 @@ class Licenses extends resource_1.APIResource {
|
|
|
95
95
|
* );
|
|
96
96
|
* ```
|
|
97
97
|
*/
|
|
98
|
-
retrieveByExternalID(
|
|
99
|
-
return this._client.get((0, path_1.path) `/licenses/external_license_id/${
|
|
98
|
+
retrieveByExternalID(externalLicenseID, query, options) {
|
|
99
|
+
return this._client.get((0, path_1.path) `/licenses/external_license_id/${externalLicenseID}`, { query, ...options });
|
|
100
100
|
}
|
|
101
101
|
}
|
|
102
102
|
exports.Licenses = Licenses;
|
|
@@ -41,8 +41,8 @@ export class Licenses extends APIResource {
|
|
|
41
41
|
* );
|
|
42
42
|
* ```
|
|
43
43
|
*/
|
|
44
|
-
retrieve(
|
|
45
|
-
return this._client.get(path `/licenses/${
|
|
44
|
+
retrieve(licenseID, options) {
|
|
45
|
+
return this._client.get(path `/licenses/${licenseID}`, options);
|
|
46
46
|
}
|
|
47
47
|
/**
|
|
48
48
|
* This endpoint returns a list of all licenses for a subscription.
|
|
@@ -74,8 +74,8 @@ export class Licenses extends APIResource {
|
|
|
74
74
|
* );
|
|
75
75
|
* ```
|
|
76
76
|
*/
|
|
77
|
-
deactivate(
|
|
78
|
-
return this._client.post(path `/licenses/${
|
|
77
|
+
deactivate(licenseID, body, options) {
|
|
78
|
+
return this._client.post(path `/licenses/${licenseID}/deactivate`, { body, ...options });
|
|
79
79
|
}
|
|
80
80
|
/**
|
|
81
81
|
* This endpoint is used to fetch a license given an external license identifier.
|
|
@@ -91,8 +91,8 @@ export class Licenses extends APIResource {
|
|
|
91
91
|
* );
|
|
92
92
|
* ```
|
|
93
93
|
*/
|
|
94
|
-
retrieveByExternalID(
|
|
95
|
-
return this._client.get(path `/licenses/external_license_id/${
|
|
94
|
+
retrieveByExternalID(externalLicenseID, query, options) {
|
|
95
|
+
return this._client.get(path `/licenses/external_license_id/${externalLicenseID}`, { query, ...options });
|
|
96
96
|
}
|
|
97
97
|
}
|
|
98
98
|
Licenses.ExternalLicenses = ExternalLicenses;
|
|
@@ -30,7 +30,7 @@ export declare class Usage extends APIResource {
|
|
|
30
30
|
* );
|
|
31
31
|
* ```
|
|
32
32
|
*/
|
|
33
|
-
getUsage(
|
|
33
|
+
getUsage(licenseID: string, query?: UsageGetUsageParams | null | undefined, options?: RequestOptions): APIPromise<UsageGetUsageResponse>;
|
|
34
34
|
}
|
|
35
35
|
export interface UsageGetAllUsageResponse {
|
|
36
36
|
data: Array<UsageGetAllUsageResponse.Data>;
|
|
@@ -30,7 +30,7 @@ export declare class Usage extends APIResource {
|
|
|
30
30
|
* );
|
|
31
31
|
* ```
|
|
32
32
|
*/
|
|
33
|
-
getUsage(
|
|
33
|
+
getUsage(licenseID: string, query?: UsageGetUsageParams | null | undefined, options?: RequestOptions): APIPromise<UsageGetUsageResponse>;
|
|
34
34
|
}
|
|
35
35
|
export interface UsageGetAllUsageResponse {
|
|
36
36
|
data: Array<UsageGetAllUsageResponse.Data>;
|
|
@@ -34,8 +34,8 @@ class Usage extends resource_1.APIResource {
|
|
|
34
34
|
* );
|
|
35
35
|
* ```
|
|
36
36
|
*/
|
|
37
|
-
getUsage(
|
|
38
|
-
return this._client.get((0, path_1.path) `/licenses/${
|
|
37
|
+
getUsage(licenseID, query = {}, options) {
|
|
38
|
+
return this._client.get((0, path_1.path) `/licenses/${licenseID}/usage`, { query, ...options });
|
|
39
39
|
}
|
|
40
40
|
}
|
|
41
41
|
exports.Usage = Usage;
|
|
@@ -31,8 +31,8 @@ export class Usage extends APIResource {
|
|
|
31
31
|
* );
|
|
32
32
|
* ```
|
|
33
33
|
*/
|
|
34
|
-
getUsage(
|
|
35
|
-
return this._client.get(path `/licenses/${
|
|
34
|
+
getUsage(licenseID, query = {}, options) {
|
|
35
|
+
return this._client.get(path `/licenses/${licenseID}/usage`, { query, ...options });
|
|
36
36
|
}
|
|
37
37
|
}
|
|
38
38
|
//# sourceMappingURL=usage.mjs.map
|
package/resources/metrics.d.mts
CHANGED
|
@@ -36,7 +36,7 @@ export declare class Metrics extends APIResource {
|
|
|
36
36
|
* );
|
|
37
37
|
* ```
|
|
38
38
|
*/
|
|
39
|
-
update(
|
|
39
|
+
update(metricID: string, body: MetricUpdateParams, options?: RequestOptions): APIPromise<BillableMetric>;
|
|
40
40
|
/**
|
|
41
41
|
* This endpoint is used to list [metrics](/core-concepts#metric). It returns
|
|
42
42
|
* information about the metrics including its name, description, and item.
|
|
@@ -62,7 +62,7 @@ export declare class Metrics extends APIResource {
|
|
|
62
62
|
* );
|
|
63
63
|
* ```
|
|
64
64
|
*/
|
|
65
|
-
fetch(
|
|
65
|
+
fetch(metricID: string, options?: RequestOptions): APIPromise<BillableMetric>;
|
|
66
66
|
}
|
|
67
67
|
export type BillableMetricsPage = Page<BillableMetric>;
|
|
68
68
|
/**
|
package/resources/metrics.d.ts
CHANGED
|
@@ -36,7 +36,7 @@ export declare class Metrics extends APIResource {
|
|
|
36
36
|
* );
|
|
37
37
|
* ```
|
|
38
38
|
*/
|
|
39
|
-
update(
|
|
39
|
+
update(metricID: string, body: MetricUpdateParams, options?: RequestOptions): APIPromise<BillableMetric>;
|
|
40
40
|
/**
|
|
41
41
|
* This endpoint is used to list [metrics](/core-concepts#metric). It returns
|
|
42
42
|
* information about the metrics including its name, description, and item.
|
|
@@ -62,7 +62,7 @@ export declare class Metrics extends APIResource {
|
|
|
62
62
|
* );
|
|
63
63
|
* ```
|
|
64
64
|
*/
|
|
65
|
-
fetch(
|
|
65
|
+
fetch(metricID: string, options?: RequestOptions): APIPromise<BillableMetric>;
|
|
66
66
|
}
|
|
67
67
|
export type BillableMetricsPage = Page<BillableMetric>;
|
|
68
68
|
/**
|
package/resources/metrics.js
CHANGED
|
@@ -40,8 +40,8 @@ class Metrics extends resource_1.APIResource {
|
|
|
40
40
|
* );
|
|
41
41
|
* ```
|
|
42
42
|
*/
|
|
43
|
-
update(
|
|
44
|
-
return this._client.put((0, path_1.path) `/metrics/${
|
|
43
|
+
update(metricID, body, options) {
|
|
44
|
+
return this._client.put((0, path_1.path) `/metrics/${metricID}`, { body, ...options });
|
|
45
45
|
}
|
|
46
46
|
/**
|
|
47
47
|
* This endpoint is used to list [metrics](/core-concepts#metric). It returns
|
|
@@ -70,8 +70,8 @@ class Metrics extends resource_1.APIResource {
|
|
|
70
70
|
* );
|
|
71
71
|
* ```
|
|
72
72
|
*/
|
|
73
|
-
fetch(
|
|
74
|
-
return this._client.get((0, path_1.path) `/metrics/${
|
|
73
|
+
fetch(metricID, options) {
|
|
74
|
+
return this._client.get((0, path_1.path) `/metrics/${metricID}`, options);
|
|
75
75
|
}
|
|
76
76
|
}
|
|
77
77
|
exports.Metrics = Metrics;
|
package/resources/metrics.mjs
CHANGED
|
@@ -37,8 +37,8 @@ export class Metrics extends APIResource {
|
|
|
37
37
|
* );
|
|
38
38
|
* ```
|
|
39
39
|
*/
|
|
40
|
-
update(
|
|
41
|
-
return this._client.put(path `/metrics/${
|
|
40
|
+
update(metricID, body, options) {
|
|
41
|
+
return this._client.put(path `/metrics/${metricID}`, { body, ...options });
|
|
42
42
|
}
|
|
43
43
|
/**
|
|
44
44
|
* This endpoint is used to list [metrics](/core-concepts#metric). It returns
|
|
@@ -67,8 +67,8 @@ export class Metrics extends APIResource {
|
|
|
67
67
|
* );
|
|
68
68
|
* ```
|
|
69
69
|
*/
|
|
70
|
-
fetch(
|
|
71
|
-
return this._client.get(path `/metrics/${
|
|
70
|
+
fetch(metricID, options) {
|
|
71
|
+
return this._client.get(path `/metrics/${metricID}`, options);
|
|
72
72
|
}
|
|
73
73
|
}
|
|
74
74
|
//# sourceMappingURL=metrics.mjs.map
|
|
@@ -14,7 +14,7 @@ export declare class ExternalPlanID extends APIResource {
|
|
|
14
14
|
*
|
|
15
15
|
* Other fields on a plan are currently immutable.
|
|
16
16
|
*/
|
|
17
|
-
update(
|
|
17
|
+
update(otherExternalPlanID: string, body: ExternalPlanIDUpdateParams, options?: RequestOptions): APIPromise<PlansAPI.Plan>;
|
|
18
18
|
/**
|
|
19
19
|
* This endpoint is used to fetch [plan](/core-concepts##plan-and-price) details
|
|
20
20
|
* given an external_plan_id identifier. It returns information about the prices
|
|
@@ -33,7 +33,7 @@ export declare class ExternalPlanID extends APIResource {
|
|
|
33
33
|
* that is present. A detailed explanation of price types can be found in the
|
|
34
34
|
* [Price schema](/core-concepts#plan-and-price). "
|
|
35
35
|
*/
|
|
36
|
-
fetch(
|
|
36
|
+
fetch(externalPlanID: string, options?: RequestOptions): APIPromise<PlansAPI.Plan>;
|
|
37
37
|
}
|
|
38
38
|
export interface ExternalPlanIDUpdateParams {
|
|
39
39
|
/**
|
|
@@ -14,7 +14,7 @@ export declare class ExternalPlanID extends APIResource {
|
|
|
14
14
|
*
|
|
15
15
|
* Other fields on a plan are currently immutable.
|
|
16
16
|
*/
|
|
17
|
-
update(
|
|
17
|
+
update(otherExternalPlanID: string, body: ExternalPlanIDUpdateParams, options?: RequestOptions): APIPromise<PlansAPI.Plan>;
|
|
18
18
|
/**
|
|
19
19
|
* This endpoint is used to fetch [plan](/core-concepts##plan-and-price) details
|
|
20
20
|
* given an external_plan_id identifier. It returns information about the prices
|
|
@@ -33,7 +33,7 @@ export declare class ExternalPlanID extends APIResource {
|
|
|
33
33
|
* that is present. A detailed explanation of price types can be found in the
|
|
34
34
|
* [Price schema](/core-concepts#plan-and-price). "
|
|
35
35
|
*/
|
|
36
|
-
fetch(
|
|
36
|
+
fetch(externalPlanID: string, options?: RequestOptions): APIPromise<PlansAPI.Plan>;
|
|
37
37
|
}
|
|
38
38
|
export interface ExternalPlanIDUpdateParams {
|
|
39
39
|
/**
|
|
@@ -16,8 +16,8 @@ class ExternalPlanID extends resource_1.APIResource {
|
|
|
16
16
|
*
|
|
17
17
|
* Other fields on a plan are currently immutable.
|
|
18
18
|
*/
|
|
19
|
-
update(
|
|
20
|
-
return this._client.put((0, path_1.path) `/plans/external_plan_id/${
|
|
19
|
+
update(otherExternalPlanID, body, options) {
|
|
20
|
+
return this._client.put((0, path_1.path) `/plans/external_plan_id/${otherExternalPlanID}`, { body, ...options });
|
|
21
21
|
}
|
|
22
22
|
/**
|
|
23
23
|
* This endpoint is used to fetch [plan](/core-concepts##plan-and-price) details
|
|
@@ -37,8 +37,8 @@ class ExternalPlanID extends resource_1.APIResource {
|
|
|
37
37
|
* that is present. A detailed explanation of price types can be found in the
|
|
38
38
|
* [Price schema](/core-concepts#plan-and-price). "
|
|
39
39
|
*/
|
|
40
|
-
fetch(
|
|
41
|
-
return this._client.get((0, path_1.path) `/plans/external_plan_id/${
|
|
40
|
+
fetch(externalPlanID, options) {
|
|
41
|
+
return this._client.get((0, path_1.path) `/plans/external_plan_id/${externalPlanID}`, options);
|
|
42
42
|
}
|
|
43
43
|
}
|
|
44
44
|
exports.ExternalPlanID = ExternalPlanID;
|
|
@@ -13,8 +13,8 @@ export class ExternalPlanID extends APIResource {
|
|
|
13
13
|
*
|
|
14
14
|
* Other fields on a plan are currently immutable.
|
|
15
15
|
*/
|
|
16
|
-
update(
|
|
17
|
-
return this._client.put(path `/plans/external_plan_id/${
|
|
16
|
+
update(otherExternalPlanID, body, options) {
|
|
17
|
+
return this._client.put(path `/plans/external_plan_id/${otherExternalPlanID}`, { body, ...options });
|
|
18
18
|
}
|
|
19
19
|
/**
|
|
20
20
|
* This endpoint is used to fetch [plan](/core-concepts##plan-and-price) details
|
|
@@ -34,8 +34,8 @@ export class ExternalPlanID extends APIResource {
|
|
|
34
34
|
* that is present. A detailed explanation of price types can be found in the
|
|
35
35
|
* [Price schema](/core-concepts#plan-and-price). "
|
|
36
36
|
*/
|
|
37
|
-
fetch(
|
|
38
|
-
return this._client.get(path `/plans/external_plan_id/${
|
|
37
|
+
fetch(externalPlanID, options) {
|
|
38
|
+
return this._client.get(path `/plans/external_plan_id/${externalPlanID}`, options);
|
|
39
39
|
}
|
|
40
40
|
}
|
|
41
41
|
//# sourceMappingURL=external-plan-id.mjs.map
|
|
@@ -11,18 +11,18 @@ export declare class Migrations extends APIResource {
|
|
|
11
11
|
/**
|
|
12
12
|
* Fetch migration
|
|
13
13
|
*/
|
|
14
|
-
retrieve(
|
|
14
|
+
retrieve(migrationID: string, params: MigrationRetrieveParams, options?: RequestOptions): APIPromise<MigrationRetrieveResponse>;
|
|
15
15
|
/**
|
|
16
16
|
* This endpoint returns a list of all migrations for a plan. The list of
|
|
17
17
|
* migrations is ordered starting from the most recently created migration. The
|
|
18
18
|
* response also includes pagination_metadata, which lets the caller retrieve the
|
|
19
19
|
* next page of results if they exist.
|
|
20
20
|
*/
|
|
21
|
-
list(
|
|
21
|
+
list(planID: string, query?: MigrationListParams | null | undefined, options?: RequestOptions): PagePromise<MigrationListResponsesPage, MigrationListResponse>;
|
|
22
22
|
/**
|
|
23
23
|
* This endpoint cancels a migration.
|
|
24
24
|
*/
|
|
25
|
-
cancel(
|
|
25
|
+
cancel(migrationID: string, params: MigrationCancelParams, options?: RequestOptions): APIPromise<MigrationCancelResponse>;
|
|
26
26
|
}
|
|
27
27
|
export type MigrationListResponsesPage = Page<MigrationListResponse>;
|
|
28
28
|
export interface MigrationRetrieveResponse {
|
|
@@ -11,18 +11,18 @@ export declare class Migrations extends APIResource {
|
|
|
11
11
|
/**
|
|
12
12
|
* Fetch migration
|
|
13
13
|
*/
|
|
14
|
-
retrieve(
|
|
14
|
+
retrieve(migrationID: string, params: MigrationRetrieveParams, options?: RequestOptions): APIPromise<MigrationRetrieveResponse>;
|
|
15
15
|
/**
|
|
16
16
|
* This endpoint returns a list of all migrations for a plan. The list of
|
|
17
17
|
* migrations is ordered starting from the most recently created migration. The
|
|
18
18
|
* response also includes pagination_metadata, which lets the caller retrieve the
|
|
19
19
|
* next page of results if they exist.
|
|
20
20
|
*/
|
|
21
|
-
list(
|
|
21
|
+
list(planID: string, query?: MigrationListParams | null | undefined, options?: RequestOptions): PagePromise<MigrationListResponsesPage, MigrationListResponse>;
|
|
22
22
|
/**
|
|
23
23
|
* This endpoint cancels a migration.
|
|
24
24
|
*/
|
|
25
|
-
cancel(
|
|
25
|
+
cancel(migrationID: string, params: MigrationCancelParams, options?: RequestOptions): APIPromise<MigrationCancelResponse>;
|
|
26
26
|
}
|
|
27
27
|
export type MigrationListResponsesPage = Page<MigrationListResponse>;
|
|
28
28
|
export interface MigrationRetrieveResponse {
|
|
@@ -14,9 +14,9 @@ class Migrations extends resource_1.APIResource {
|
|
|
14
14
|
/**
|
|
15
15
|
* Fetch migration
|
|
16
16
|
*/
|
|
17
|
-
retrieve(
|
|
18
|
-
const { plan_id
|
|
19
|
-
return this._client.get((0, path_1.path) `/plans/${
|
|
17
|
+
retrieve(migrationID, params, options) {
|
|
18
|
+
const { plan_id } = params;
|
|
19
|
+
return this._client.get((0, path_1.path) `/plans/${plan_id}/migrations/${migrationID}`, options);
|
|
20
20
|
}
|
|
21
21
|
/**
|
|
22
22
|
* This endpoint returns a list of all migrations for a plan. The list of
|
|
@@ -24,8 +24,8 @@ class Migrations extends resource_1.APIResource {
|
|
|
24
24
|
* response also includes pagination_metadata, which lets the caller retrieve the
|
|
25
25
|
* next page of results if they exist.
|
|
26
26
|
*/
|
|
27
|
-
list(
|
|
28
|
-
return this._client.getAPIList((0, path_1.path) `/plans/${
|
|
27
|
+
list(planID, query = {}, options) {
|
|
28
|
+
return this._client.getAPIList((0, path_1.path) `/plans/${planID}/migrations`, (pagination_1.Page), {
|
|
29
29
|
query,
|
|
30
30
|
...options,
|
|
31
31
|
});
|
|
@@ -33,9 +33,9 @@ class Migrations extends resource_1.APIResource {
|
|
|
33
33
|
/**
|
|
34
34
|
* This endpoint cancels a migration.
|
|
35
35
|
*/
|
|
36
|
-
cancel(
|
|
37
|
-
const { plan_id
|
|
38
|
-
return this._client.post((0, path_1.path) `/plans/${
|
|
36
|
+
cancel(migrationID, params, options) {
|
|
37
|
+
const { plan_id } = params;
|
|
38
|
+
return this._client.post((0, path_1.path) `/plans/${plan_id}/migrations/${migrationID}/cancel`, options);
|
|
39
39
|
}
|
|
40
40
|
}
|
|
41
41
|
exports.Migrations = Migrations;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"migrations.js","sourceRoot":"","sources":["../../src/resources/plans/migrations.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,qDAAkD;AAElD,yDAA2E;AAE3E,uDAAiD;AAEjD;;;;GAIG;AACH,MAAa,UAAW,SAAQ,sBAAW;IACzC;;OAEG;IACH,QAAQ,CACN,WAAmB,EACnB,MAA+B,EAC/B,OAAwB;QAExB,MAAM,EAAE,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"migrations.js","sourceRoot":"","sources":["../../src/resources/plans/migrations.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,qDAAkD;AAElD,yDAA2E;AAE3E,uDAAiD;AAEjD;;;;GAIG;AACH,MAAa,UAAW,SAAQ,sBAAW;IACzC;;OAEG;IACH,QAAQ,CACN,WAAmB,EACnB,MAA+B,EAC/B,OAAwB;QAExB,MAAM,EAAE,OAAO,EAAE,GAAG,MAAM,CAAC;QAC3B,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,UAAU,OAAO,eAAe,WAAW,EAAE,EAAE,OAAO,CAAC,CAAC;IACtF,CAAC;IAED;;;;;OAKG;IACH,IAAI,CACF,MAAc,EACd,QAAgD,EAAE,EAClD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,IAAA,WAAI,EAAA,UAAU,MAAM,aAAa,EAAE,CAAA,iBAA2B,CAAA,EAAE;YAC7F,KAAK;YACL,GAAG,OAAO;SACX,CAAC,CAAC;IACL,CAAC;IAED;;OAEG;IACH,MAAM,CACJ,WAAmB,EACnB,MAA6B,EAC7B,OAAwB;QAExB,MAAM,EAAE,OAAO,EAAE,GAAG,MAAM,CAAC;QAC3B,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAA,WAAI,EAAA,UAAU,OAAO,eAAe,WAAW,SAAS,EAAE,OAAO,CAAC,CAAC;IAC9F,CAAC;CACF;AAzCD,gCAyCC"}
|
|
@@ -11,9 +11,9 @@ export class Migrations extends APIResource {
|
|
|
11
11
|
/**
|
|
12
12
|
* Fetch migration
|
|
13
13
|
*/
|
|
14
|
-
retrieve(
|
|
15
|
-
const { plan_id
|
|
16
|
-
return this._client.get(path `/plans/${
|
|
14
|
+
retrieve(migrationID, params, options) {
|
|
15
|
+
const { plan_id } = params;
|
|
16
|
+
return this._client.get(path `/plans/${plan_id}/migrations/${migrationID}`, options);
|
|
17
17
|
}
|
|
18
18
|
/**
|
|
19
19
|
* This endpoint returns a list of all migrations for a plan. The list of
|
|
@@ -21,8 +21,8 @@ export class Migrations extends APIResource {
|
|
|
21
21
|
* response also includes pagination_metadata, which lets the caller retrieve the
|
|
22
22
|
* next page of results if they exist.
|
|
23
23
|
*/
|
|
24
|
-
list(
|
|
25
|
-
return this._client.getAPIList(path `/plans/${
|
|
24
|
+
list(planID, query = {}, options) {
|
|
25
|
+
return this._client.getAPIList(path `/plans/${planID}/migrations`, (Page), {
|
|
26
26
|
query,
|
|
27
27
|
...options,
|
|
28
28
|
});
|
|
@@ -30,9 +30,9 @@ export class Migrations extends APIResource {
|
|
|
30
30
|
/**
|
|
31
31
|
* This endpoint cancels a migration.
|
|
32
32
|
*/
|
|
33
|
-
cancel(
|
|
34
|
-
const { plan_id
|
|
35
|
-
return this._client.post(path `/plans/${
|
|
33
|
+
cancel(migrationID, params, options) {
|
|
34
|
+
const { plan_id } = params;
|
|
35
|
+
return this._client.post(path `/plans/${plan_id}/migrations/${migrationID}/cancel`, options);
|
|
36
36
|
}
|
|
37
37
|
}
|
|
38
38
|
//# sourceMappingURL=migrations.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"migrations.mjs","sourceRoot":"","sources":["../../src/resources/plans/migrations.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,WAAW,EAAE,gCAA4B;AAElD,OAAO,EAAE,IAAI,EAAgC,kCAA8B;AAE3E,OAAO,EAAE,IAAI,EAAE,sCAAkC;AAEjD;;;;GAIG;AACH,MAAM,OAAO,UAAW,SAAQ,WAAW;IACzC;;OAEG;IACH,QAAQ,CACN,WAAmB,EACnB,MAA+B,EAC/B,OAAwB;QAExB,MAAM,EAAE,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"migrations.mjs","sourceRoot":"","sources":["../../src/resources/plans/migrations.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,WAAW,EAAE,gCAA4B;AAElD,OAAO,EAAE,IAAI,EAAgC,kCAA8B;AAE3E,OAAO,EAAE,IAAI,EAAE,sCAAkC;AAEjD;;;;GAIG;AACH,MAAM,OAAO,UAAW,SAAQ,WAAW;IACzC;;OAEG;IACH,QAAQ,CACN,WAAmB,EACnB,MAA+B,EAC/B,OAAwB;QAExB,MAAM,EAAE,OAAO,EAAE,GAAG,MAAM,CAAC;QAC3B,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,UAAU,OAAO,eAAe,WAAW,EAAE,EAAE,OAAO,CAAC,CAAC;IACtF,CAAC;IAED;;;;;OAKG;IACH,IAAI,CACF,MAAc,EACd,QAAgD,EAAE,EAClD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,IAAI,CAAA,UAAU,MAAM,aAAa,EAAE,CAAA,IAA2B,CAAA,EAAE;YAC7F,KAAK;YACL,GAAG,OAAO;SACX,CAAC,CAAC;IACL,CAAC;IAED;;OAEG;IACH,MAAM,CACJ,WAAmB,EACnB,MAA6B,EAC7B,OAAwB;QAExB,MAAM,EAAE,OAAO,EAAE,GAAG,MAAM,CAAC;QAC3B,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAA,UAAU,OAAO,eAAe,WAAW,SAAS,EAAE,OAAO,CAAC,CAAC;IAC9F,CAAC;CACF"}
|
|
@@ -25,7 +25,7 @@ export declare class Plans extends APIResource {
|
|
|
25
25
|
*
|
|
26
26
|
* Other fields on a plan are currently immutable.
|
|
27
27
|
*/
|
|
28
|
-
update(
|
|
28
|
+
update(planID: string, body: PlanUpdateParams, options?: RequestOptions): APIPromise<Plan>;
|
|
29
29
|
/**
|
|
30
30
|
* This endpoint returns a list of all [plans](/core-concepts#plan-and-price) for
|
|
31
31
|
* an account in a list format. The list of plans is ordered starting from the most
|
|
@@ -53,7 +53,7 @@ export declare class Plans extends APIResource {
|
|
|
53
53
|
* Orb supports plan phases, also known as contract ramps. For plans with phases,
|
|
54
54
|
* the serialized prices refer to all prices across all phases.
|
|
55
55
|
*/
|
|
56
|
-
fetch(
|
|
56
|
+
fetch(planID: string, options?: RequestOptions): APIPromise<Plan>;
|
|
57
57
|
}
|
|
58
58
|
export type PlansPage = Page<Plan>;
|
|
59
59
|
/**
|
|
@@ -25,7 +25,7 @@ export declare class Plans extends APIResource {
|
|
|
25
25
|
*
|
|
26
26
|
* Other fields on a plan are currently immutable.
|
|
27
27
|
*/
|
|
28
|
-
update(
|
|
28
|
+
update(planID: string, body: PlanUpdateParams, options?: RequestOptions): APIPromise<Plan>;
|
|
29
29
|
/**
|
|
30
30
|
* This endpoint returns a list of all [plans](/core-concepts#plan-and-price) for
|
|
31
31
|
* an account in a list format. The list of plans is ordered starting from the most
|
|
@@ -53,7 +53,7 @@ export declare class Plans extends APIResource {
|
|
|
53
53
|
* Orb supports plan phases, also known as contract ramps. For plans with phases,
|
|
54
54
|
* the serialized prices refer to all prices across all phases.
|
|
55
55
|
*/
|
|
56
|
-
fetch(
|
|
56
|
+
fetch(planID: string, options?: RequestOptions): APIPromise<Plan>;
|
|
57
57
|
}
|
|
58
58
|
export type PlansPage = Page<Plan>;
|
|
59
59
|
/**
|