@metronome/sdk 2.0.0 → 2.2.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 +99 -0
- package/client.d.mts +1 -1
- package/client.d.mts.map +1 -1
- package/client.d.ts +1 -1
- package/client.d.ts.map +1 -1
- package/package.json +1 -1
- package/resources/shared.d.mts +73 -20
- package/resources/shared.d.mts.map +1 -1
- package/resources/shared.d.ts +73 -20
- package/resources/shared.d.ts.map +1 -1
- package/resources/v1/alerts.d.mts +20 -1
- package/resources/v1/alerts.d.mts.map +1 -1
- package/resources/v1/alerts.d.ts +20 -1
- package/resources/v1/alerts.d.ts.map +1 -1
- package/resources/v1/contracts/contracts.d.mts +89 -12
- package/resources/v1/contracts/contracts.d.mts.map +1 -1
- package/resources/v1/contracts/contracts.d.ts +89 -12
- package/resources/v1/contracts/contracts.d.ts.map +1 -1
- package/resources/v1/contracts/contracts.js +1 -1
- package/resources/v1/contracts/contracts.js.map +1 -1
- package/resources/v1/contracts/contracts.mjs +1 -1
- package/resources/v1/contracts/contracts.mjs.map +1 -1
- package/resources/v1/credit-grants.d.mts +10 -5
- package/resources/v1/credit-grants.d.mts.map +1 -1
- package/resources/v1/credit-grants.d.ts +10 -5
- package/resources/v1/credit-grants.d.ts.map +1 -1
- package/resources/v1/credit-grants.js +10 -5
- package/resources/v1/credit-grants.js.map +1 -1
- package/resources/v1/credit-grants.mjs +10 -5
- package/resources/v1/credit-grants.mjs.map +1 -1
- package/resources/v1/customers/alerts.d.mts +39 -1
- package/resources/v1/customers/alerts.d.mts.map +1 -1
- package/resources/v1/customers/alerts.d.ts +39 -1
- package/resources/v1/customers/alerts.d.ts.map +1 -1
- package/resources/v1/customers/billing-config.d.mts +25 -7
- package/resources/v1/customers/billing-config.d.mts.map +1 -1
- package/resources/v1/customers/billing-config.d.ts +25 -7
- package/resources/v1/customers/billing-config.d.ts.map +1 -1
- package/resources/v1/customers/billing-config.js +6 -3
- package/resources/v1/customers/billing-config.js.map +1 -1
- package/resources/v1/customers/billing-config.mjs +6 -3
- package/resources/v1/customers/billing-config.mjs.map +1 -1
- package/resources/v1/customers/commits.d.mts +3 -2
- package/resources/v1/customers/commits.d.mts.map +1 -1
- package/resources/v1/customers/commits.d.ts +3 -2
- package/resources/v1/customers/commits.d.ts.map +1 -1
- package/resources/v1/customers/commits.js +2 -1
- package/resources/v1/customers/commits.js.map +1 -1
- package/resources/v1/customers/commits.mjs +2 -1
- package/resources/v1/customers/commits.mjs.map +1 -1
- package/resources/v1/customers/customers.d.mts +89 -14
- package/resources/v1/customers/customers.d.mts.map +1 -1
- package/resources/v1/customers/customers.d.ts +89 -14
- package/resources/v1/customers/customers.d.ts.map +1 -1
- package/resources/v1/customers/customers.js +13 -8
- package/resources/v1/customers/customers.js.map +1 -1
- package/resources/v1/customers/customers.mjs +13 -8
- package/resources/v1/customers/customers.mjs.map +1 -1
- package/resources/v1/customers/index.d.mts +1 -1
- package/resources/v1/customers/index.d.mts.map +1 -1
- package/resources/v1/customers/index.d.ts +1 -1
- package/resources/v1/customers/index.d.ts.map +1 -1
- package/resources/v1/customers/index.js.map +1 -1
- package/resources/v1/customers/index.mjs.map +1 -1
- package/resources/v1/customers/invoices.d.mts +62 -5
- package/resources/v1/customers/invoices.d.mts.map +1 -1
- package/resources/v1/customers/invoices.d.ts +62 -5
- package/resources/v1/customers/invoices.d.ts.map +1 -1
- package/resources/v1/customers/invoices.js +2 -1
- package/resources/v1/customers/invoices.js.map +1 -1
- package/resources/v1/customers/invoices.mjs +2 -1
- package/resources/v1/customers/invoices.mjs.map +1 -1
- package/resources/v1/customers/plans.d.mts +9 -4
- package/resources/v1/customers/plans.d.mts.map +1 -1
- package/resources/v1/customers/plans.d.ts +9 -4
- package/resources/v1/customers/plans.d.ts.map +1 -1
- package/resources/v1/customers/plans.js +8 -4
- package/resources/v1/customers/plans.js.map +1 -1
- package/resources/v1/customers/plans.mjs +8 -4
- package/resources/v1/customers/plans.mjs.map +1 -1
- package/resources/v1/index.d.mts +2 -1
- package/resources/v1/index.d.mts.map +1 -1
- package/resources/v1/index.d.ts +2 -1
- package/resources/v1/index.d.ts.map +1 -1
- package/resources/v1/index.js +3 -1
- package/resources/v1/index.js.map +1 -1
- package/resources/v1/index.mjs +1 -0
- package/resources/v1/index.mjs.map +1 -1
- package/resources/v1/payments.d.mts +1 -0
- package/resources/v1/payments.d.mts.map +1 -1
- package/resources/v1/payments.d.ts +1 -0
- package/resources/v1/payments.d.ts.map +1 -1
- package/resources/v1/plans.d.mts +8 -4
- package/resources/v1/plans.d.mts.map +1 -1
- package/resources/v1/plans.d.ts +8 -4
- package/resources/v1/plans.d.ts.map +1 -1
- package/resources/v1/plans.js +8 -4
- package/resources/v1/plans.js.map +1 -1
- package/resources/v1/plans.mjs +8 -4
- package/resources/v1/plans.mjs.map +1 -1
- package/resources/v1/settings/billing-providers.d.mts +103 -0
- package/resources/v1/settings/billing-providers.d.mts.map +1 -0
- package/resources/v1/settings/billing-providers.d.ts +103 -0
- package/resources/v1/settings/billing-providers.d.ts.map +1 -0
- package/resources/v1/settings/billing-providers.js +48 -0
- package/resources/v1/settings/billing-providers.js.map +1 -0
- package/resources/v1/settings/billing-providers.mjs +44 -0
- package/resources/v1/settings/billing-providers.mjs.map +1 -0
- package/resources/v1/settings/index.d.mts +3 -0
- package/resources/v1/settings/index.d.mts.map +1 -0
- package/resources/v1/settings/index.d.ts +3 -0
- package/resources/v1/settings/index.d.ts.map +1 -0
- package/resources/v1/settings/index.js +9 -0
- package/resources/v1/settings/index.js.map +1 -0
- package/resources/v1/settings/index.mjs +4 -0
- package/resources/v1/settings/index.mjs.map +1 -0
- package/resources/v1/settings/settings.d.mts +60 -0
- package/resources/v1/settings/settings.d.mts.map +1 -0
- package/resources/v1/settings/settings.d.ts +60 -0
- package/resources/v1/settings/settings.d.ts.map +1 -0
- package/resources/v1/settings/settings.js +40 -0
- package/resources/v1/settings/settings.js.map +1 -0
- package/resources/v1/settings/settings.mjs +35 -0
- package/resources/v1/settings/settings.mjs.map +1 -0
- package/resources/v1/settings.d.mts +2 -0
- package/resources/v1/settings.d.mts.map +1 -0
- package/resources/v1/settings.d.ts +2 -0
- package/resources/v1/settings.d.ts.map +1 -0
- package/resources/v1/settings.js +6 -0
- package/resources/v1/settings.js.map +1 -0
- package/resources/v1/settings.mjs +3 -0
- package/resources/v1/settings.mjs.map +1 -0
- package/resources/v1/usage.d.mts +3 -2
- package/resources/v1/usage.d.mts.map +1 -1
- package/resources/v1/usage.d.ts +3 -2
- package/resources/v1/usage.d.ts.map +1 -1
- package/resources/v1/v1.d.mts +6 -2
- package/resources/v1/v1.d.mts.map +1 -1
- package/resources/v1/v1.d.ts +6 -2
- package/resources/v1/v1.d.ts.map +1 -1
- package/resources/v1/v1.js +4 -0
- package/resources/v1/v1.js.map +1 -1
- package/resources/v1/v1.mjs +4 -0
- package/resources/v1/v1.mjs.map +1 -1
- package/resources/v2/contracts.d.mts +204 -3
- package/resources/v2/contracts.d.mts.map +1 -1
- package/resources/v2/contracts.d.ts +204 -3
- package/resources/v2/contracts.d.ts.map +1 -1
- package/src/client.ts +1 -1
- package/src/resources/shared.ts +80 -20
- package/src/resources/v1/alerts.ts +24 -1
- package/src/resources/v1/contracts/contracts.ts +97 -12
- package/src/resources/v1/credit-grants.ts +10 -5
- package/src/resources/v1/customers/alerts.ts +45 -0
- package/src/resources/v1/customers/billing-config.ts +32 -7
- package/src/resources/v1/customers/commits.ts +3 -2
- package/src/resources/v1/customers/customers.ts +112 -18
- package/src/resources/v1/customers/index.ts +1 -0
- package/src/resources/v1/customers/invoices.ts +80 -3
- package/src/resources/v1/customers/plans.ts +10 -4
- package/src/resources/v1/index.ts +6 -0
- package/src/resources/v1/payments.ts +2 -0
- package/src/resources/v1/plans.ts +8 -4
- package/src/resources/v1/settings/billing-providers.ts +139 -0
- package/src/resources/v1/settings/index.ts +14 -0
- package/src/resources/v1/settings/settings.ts +94 -0
- package/src/resources/v1/settings.ts +3 -0
- package/src/resources/v1/usage.ts +3 -2
- package/src/resources/v1/v1.ts +16 -0
- package/src/resources/v2/contracts.ts +249 -3
- 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
|
@@ -189,7 +189,7 @@ export declare namespace CustomerAlert {
|
|
|
189
189
|
/**
|
|
190
190
|
* Type of the threshold notification
|
|
191
191
|
*/
|
|
192
|
-
type: 'low_credit_balance_reached' | 'spend_threshold_reached' | 'monthly_invoice_total_spend_threshold_reached' | 'low_remaining_days_in_plan_reached' | 'low_remaining_credit_percentage_reached' | 'usage_threshold_reached' | 'low_remaining_days_for_commit_segment_reached' | 'low_remaining_commit_balance_reached' | 'low_remaining_commit_percentage_reached' | 'low_remaining_days_for_contract_credit_segment_reached' | 'low_remaining_contract_credit_balance_reached' | 'low_remaining_contract_credit_percentage_reached' | 'low_remaining_contract_credit_and_commit_balance_reached' | 'invoice_total_reached';
|
|
192
|
+
type: 'low_credit_balance_reached' | 'spend_threshold_reached' | 'monthly_invoice_total_spend_threshold_reached' | 'low_remaining_days_in_plan_reached' | 'low_remaining_credit_percentage_reached' | 'usage_threshold_reached' | 'low_remaining_days_for_commit_segment_reached' | 'low_remaining_commit_balance_reached' | 'low_remaining_commit_percentage_reached' | 'low_remaining_days_for_contract_credit_segment_reached' | 'low_remaining_contract_credit_balance_reached' | 'low_remaining_contract_credit_percentage_reached' | 'low_remaining_contract_credit_and_commit_balance_reached' | 'low_remaining_seat_balance_reached' | 'invoice_total_reached';
|
|
193
193
|
/**
|
|
194
194
|
* Timestamp for when the threshold notification was last updated
|
|
195
195
|
*/
|
|
@@ -222,6 +222,11 @@ export declare namespace CustomerAlert {
|
|
|
222
222
|
* invoice types to evaluate.
|
|
223
223
|
*/
|
|
224
224
|
invoice_types_filter?: Array<string>;
|
|
225
|
+
/**
|
|
226
|
+
* Only present for low_remaining_seat_balance_reached notifications. The seat
|
|
227
|
+
* group key or seat group key-value pair the alert is scoped to.
|
|
228
|
+
*/
|
|
229
|
+
seat_filter?: Alert.SeatFilter;
|
|
225
230
|
/**
|
|
226
231
|
* Prevents the creation of duplicates. If a request to create a record is made
|
|
227
232
|
* with a previously used uniqueness key, a new record will not be created and the
|
|
@@ -247,6 +252,20 @@ export declare namespace CustomerAlert {
|
|
|
247
252
|
key: string;
|
|
248
253
|
value?: string;
|
|
249
254
|
}
|
|
255
|
+
/**
|
|
256
|
+
* Only present for low_remaining_seat_balance_reached notifications. The seat
|
|
257
|
+
* group key or seat group key-value pair the alert is scoped to.
|
|
258
|
+
*/
|
|
259
|
+
interface SeatFilter {
|
|
260
|
+
/**
|
|
261
|
+
* The seat group key (e.g., "seat_id", "user_id") that the alert is scoped to.
|
|
262
|
+
*/
|
|
263
|
+
seat_group_key: string;
|
|
264
|
+
/**
|
|
265
|
+
* The seat group value that the alert is scoped to.
|
|
266
|
+
*/
|
|
267
|
+
seat_group_value?: string;
|
|
268
|
+
}
|
|
250
269
|
}
|
|
251
270
|
}
|
|
252
271
|
export interface AlertRetrieveResponse {
|
|
@@ -271,6 +290,11 @@ export interface AlertRetrieveParams {
|
|
|
271
290
|
* denotes whether to fetch notifications for plans or contracts.
|
|
272
291
|
*/
|
|
273
292
|
plans_or_contracts?: 'PLANS' | 'CONTRACTS';
|
|
293
|
+
/**
|
|
294
|
+
* Only allowed for `low_remaining_seat_balance_reached` notifications. This
|
|
295
|
+
* filters alerts by the seat group key-value pair.
|
|
296
|
+
*/
|
|
297
|
+
seat_filter?: AlertRetrieveParams.SeatFilter;
|
|
274
298
|
}
|
|
275
299
|
export declare namespace AlertRetrieveParams {
|
|
276
300
|
/**
|
|
@@ -281,6 +305,20 @@ export declare namespace AlertRetrieveParams {
|
|
|
281
305
|
key: string;
|
|
282
306
|
value: string;
|
|
283
307
|
}
|
|
308
|
+
/**
|
|
309
|
+
* Only allowed for `low_remaining_seat_balance_reached` notifications. This
|
|
310
|
+
* filters alerts by the seat group key-value pair.
|
|
311
|
+
*/
|
|
312
|
+
interface SeatFilter {
|
|
313
|
+
/**
|
|
314
|
+
* The seat group key (e.g., "seat_id", "user_id")
|
|
315
|
+
*/
|
|
316
|
+
seat_group_key: string;
|
|
317
|
+
/**
|
|
318
|
+
* The specific seat identifier to filter by
|
|
319
|
+
*/
|
|
320
|
+
seat_group_value: string;
|
|
321
|
+
}
|
|
284
322
|
}
|
|
285
323
|
export interface AlertListParams extends CursorPageWithoutLimitParams {
|
|
286
324
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"alerts.d.ts","sourceRoot":"","sources":["../../../src/resources/v1/customers/alerts.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,MAAM;OACX,EAAE,UAAU,EAAE;OACd,EACL,sBAAsB,EACtB,KAAK,4BAA4B,EACjC,WAAW,EACZ;OAEM,EAAE,cAAc,EAAE;AAEzB,qBAAa,MAAO,SAAQ,WAAW;IACrC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAgEG;IACH,QAAQ,CAAC,IAAI,EAAE,mBAAmB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,qBAAqB,CAAC;IAIhG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OA0CG;IACH,IAAI,CACF,MAAM,EAAE,eAAe,EACvB,OAAO,CAAC,EAAE,cAAc,GACvB,WAAW,CAAC,oCAAoC,EAAE,aAAa,CAAC;IAUnE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAsCG;IACH,KAAK,CAAC,IAAI,EAAE,gBAAgB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,IAAI,CAAC;CAO1E;AAED,MAAM,MAAM,oCAAoC,GAAG,sBAAsB,CAAC,aAAa,CAAC,CAAC;AAEzF,MAAM,WAAW,aAAa;IAC5B,KAAK,EAAE,aAAa,C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;AAED,yBAAiB,mBAAmB,CAAC;IACnC;;;OAGG;IACH,UAAiB,UAAU;QACzB,GAAG,EAAE,MAAM,CAAC;QAEZ,KAAK,EAAE,MAAM,CAAC;KACf;IAED;;;OAGG;IACH,UAAiB,UAAU;QACzB;;WAEG;QACH,cAAc,EAAE,MAAM,CAAC;QAEvB;;WAEG;QACH,gBAAgB,EAAE,MAAM,CAAC;KAC1B;CACF;AAED,MAAM,WAAW,eAAgB,SAAQ,4BAA4B;IACnE;;OAEG;IACH,WAAW,EAAE,MAAM,CAAC;IAEpB;;;OAGG;IACH,cAAc,CAAC,EAAE,KAAK,CAAC,SAAS,GAAG,UAAU,GAAG,UAAU,CAAC,CAAC;CAC7D;AAED,MAAM,WAAW,gBAAgB;IAC/B;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;IAEjB;;OAEG;IACH,WAAW,EAAE,MAAM,CAAC;CACrB;AAED,MAAM,CAAC,OAAO,WAAW,MAAM,CAAC;IAC9B,OAAO,EACL,KAAK,aAAa,IAAI,aAAa,EACnC,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,oCAAoC,IAAI,oCAAoC,EACjF,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,eAAe,IAAI,eAAe,EACvC,KAAK,gBAAgB,IAAI,gBAAgB,GAC1C,CAAC;CACH"}
|
|
@@ -3,7 +3,8 @@ import { APIPromise } from "../../../core/api-promise.mjs";
|
|
|
3
3
|
import { RequestOptions } from "../../../internal/request-options.mjs";
|
|
4
4
|
export declare class BillingConfig extends APIResource {
|
|
5
5
|
/**
|
|
6
|
-
* Set the billing configuration for a given customer.
|
|
6
|
+
* Set the billing configuration for a given customer. This is a Plans (deprecated)
|
|
7
|
+
* endpoint. New clients should implement using Contracts.
|
|
7
8
|
*
|
|
8
9
|
* @example
|
|
9
10
|
* ```ts
|
|
@@ -17,7 +18,8 @@ export declare class BillingConfig extends APIResource {
|
|
|
17
18
|
*/
|
|
18
19
|
create(params: BillingConfigCreateParams, options?: RequestOptions): APIPromise<void>;
|
|
19
20
|
/**
|
|
20
|
-
* Fetch the billing configuration for the given customer.
|
|
21
|
+
* Fetch the billing configuration for the given customer. This is a Plans
|
|
22
|
+
* (deprecated) endpoint. New clients should implement using Contracts.
|
|
21
23
|
*
|
|
22
24
|
* @example
|
|
23
25
|
* ```ts
|
|
@@ -31,7 +33,8 @@ export declare class BillingConfig extends APIResource {
|
|
|
31
33
|
retrieve(params: BillingConfigRetrieveParams, options?: RequestOptions): APIPromise<BillingConfigRetrieveResponse>;
|
|
32
34
|
/**
|
|
33
35
|
* Delete the billing configuration for a given customer. Note: this is unsupported
|
|
34
|
-
* for Azure and AWS Marketplace customers.
|
|
36
|
+
* for Azure and AWS Marketplace customers. This is a Plans (deprecated) endpoint.
|
|
37
|
+
* New clients should implement using Contracts.
|
|
35
38
|
*
|
|
36
39
|
* @example
|
|
37
40
|
* ```ts
|
|
@@ -48,6 +51,8 @@ export interface BillingConfigRetrieveResponse {
|
|
|
48
51
|
}
|
|
49
52
|
export declare namespace BillingConfigRetrieveResponse {
|
|
50
53
|
interface Data {
|
|
54
|
+
aws_customer_account_id?: string;
|
|
55
|
+
aws_customer_id?: string;
|
|
51
56
|
/**
|
|
52
57
|
* Contract expiration date for the customer. The expected format is RFC 3339 and
|
|
53
58
|
* can be retrieved from
|
|
@@ -75,6 +80,10 @@ export declare namespace BillingConfigRetrieveResponse {
|
|
|
75
80
|
azure_start_date?: string;
|
|
76
81
|
azure_subscription_status?: 'Subscribed' | 'Unsubscribed' | 'Suspended' | 'PendingFulfillmentStart';
|
|
77
82
|
billing_provider_customer_id?: string;
|
|
83
|
+
/**
|
|
84
|
+
* The collection method for the customer's invoices. NOTE:
|
|
85
|
+
* `auto_charge_payment_intent` and `manually_charge_payment_intent` are in beta.
|
|
86
|
+
*/
|
|
78
87
|
stripe_collection_method?: 'charge_automatically' | 'send_invoice' | 'auto_charge_payment_intent' | 'manually_charge_payment_intent';
|
|
79
88
|
}
|
|
80
89
|
}
|
|
@@ -86,12 +95,20 @@ export interface BillingConfigCreateParams {
|
|
|
86
95
|
/**
|
|
87
96
|
* Path param: The billing provider (e.g. stripe)
|
|
88
97
|
*/
|
|
89
|
-
billing_provider_type: 'aws_marketplace' | 'stripe' | 'netsuite' | 'custom' | 'azure_marketplace' | 'quickbooks_online' | 'workday' | 'gcp_marketplace';
|
|
98
|
+
billing_provider_type: 'aws_marketplace' | 'stripe' | 'netsuite' | 'custom' | 'azure_marketplace' | 'quickbooks_online' | 'workday' | 'gcp_marketplace' | 'metronome';
|
|
90
99
|
/**
|
|
91
100
|
* Body param: The customer ID in the billing provider's system. For Azure, this is
|
|
92
101
|
* the subscription ID.
|
|
93
102
|
*/
|
|
94
103
|
billing_provider_customer_id: string;
|
|
104
|
+
/**
|
|
105
|
+
* Body param:
|
|
106
|
+
*/
|
|
107
|
+
aws_customer_account_id?: string;
|
|
108
|
+
/**
|
|
109
|
+
* Body param:
|
|
110
|
+
*/
|
|
111
|
+
aws_customer_id?: string;
|
|
95
112
|
/**
|
|
96
113
|
* Body param:
|
|
97
114
|
*/
|
|
@@ -101,7 +118,8 @@ export interface BillingConfigCreateParams {
|
|
|
101
118
|
*/
|
|
102
119
|
aws_region?: 'af-south-1' | 'ap-east-1' | 'ap-northeast-1' | 'ap-northeast-2' | 'ap-northeast-3' | 'ap-south-1' | 'ap-southeast-1' | 'ap-southeast-2' | 'ca-central-1' | 'cn-north-1' | 'cn-northwest-1' | 'eu-central-1' | 'eu-north-1' | 'eu-south-1' | 'eu-west-1' | 'eu-west-2' | 'eu-west-3' | 'me-south-1' | 'sa-east-1' | 'us-east-1' | 'us-east-2' | 'us-gov-east-1' | 'us-gov-west-1' | 'us-west-1' | 'us-west-2';
|
|
103
120
|
/**
|
|
104
|
-
* Body param:
|
|
121
|
+
* Body param: The collection method for the customer's invoices. NOTE:
|
|
122
|
+
* `auto_charge_payment_intent` and `manually_charge_payment_intent` are in beta.
|
|
105
123
|
*/
|
|
106
124
|
stripe_collection_method?: 'charge_automatically' | 'send_invoice' | 'auto_charge_payment_intent' | 'manually_charge_payment_intent';
|
|
107
125
|
}
|
|
@@ -110,14 +128,14 @@ export interface BillingConfigRetrieveParams {
|
|
|
110
128
|
/**
|
|
111
129
|
* The billing provider (e.g. stripe)
|
|
112
130
|
*/
|
|
113
|
-
billing_provider_type: 'aws_marketplace' | 'stripe' | 'netsuite' | 'custom' | 'azure_marketplace' | 'quickbooks_online' | 'workday' | 'gcp_marketplace';
|
|
131
|
+
billing_provider_type: 'aws_marketplace' | 'stripe' | 'netsuite' | 'custom' | 'azure_marketplace' | 'quickbooks_online' | 'workday' | 'gcp_marketplace' | 'metronome';
|
|
114
132
|
}
|
|
115
133
|
export interface BillingConfigDeleteParams {
|
|
116
134
|
customer_id: string;
|
|
117
135
|
/**
|
|
118
136
|
* The billing provider (e.g. stripe)
|
|
119
137
|
*/
|
|
120
|
-
billing_provider_type: 'aws_marketplace' | 'stripe' | 'netsuite' | 'custom' | 'azure_marketplace' | 'quickbooks_online' | 'workday' | 'gcp_marketplace';
|
|
138
|
+
billing_provider_type: 'aws_marketplace' | 'stripe' | 'netsuite' | 'custom' | 'azure_marketplace' | 'quickbooks_online' | 'workday' | 'gcp_marketplace' | 'metronome';
|
|
121
139
|
}
|
|
122
140
|
export declare namespace BillingConfig {
|
|
123
141
|
export { type BillingConfigRetrieveResponse as BillingConfigRetrieveResponse, type BillingConfigCreateParams as BillingConfigCreateParams, type BillingConfigRetrieveParams as BillingConfigRetrieveParams, type BillingConfigDeleteParams as BillingConfigDeleteParams, };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"billing-config.d.mts","sourceRoot":"","sources":["../../../src/resources/v1/customers/billing-config.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OAEd,EAAE,cAAc,EAAE;AAGzB,qBAAa,aAAc,SAAQ,WAAW;IAC5C
|
|
1
|
+
{"version":3,"file":"billing-config.d.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AA2B;IAC1C,WAAW,EAAE,MAAM,CAAC;IAEpB;;OAEG;IACH,qBAAqB,EACjB,iBAAiB,GACjB,QAAQ,GACR,UAAU,GACV,QAAQ,GACR,mBAAmB,GACnB,mBAAmB,GACnB,SAAS,GACT,iBAAiB,GACjB,WAAW,CAAC;CACjB;AAED,MAAM,WAAW,yBAAyB;IACxC,WAAW,EAAE,MAAM,CAAC;IAEpB;;OAEG;IACH,qBAAqB,EACjB,iBAAiB,GACjB,QAAQ,GACR,UAAU,GACV,QAAQ,GACR,mBAAmB,GACnB,mBAAmB,GACnB,SAAS,GACT,iBAAiB,GACjB,WAAW,CAAC;CACjB;AAED,MAAM,CAAC,OAAO,WAAW,aAAa,CAAC;IACrC,OAAO,EACL,KAAK,6BAA6B,IAAI,6BAA6B,EACnE,KAAK,yBAAyB,IAAI,yBAAyB,EAC3D,KAAK,2BAA2B,IAAI,2BAA2B,EAC/D,KAAK,yBAAyB,IAAI,yBAAyB,GAC5D,CAAC;CACH"}
|
|
@@ -3,7 +3,8 @@ import { APIPromise } from "../../../core/api-promise.js";
|
|
|
3
3
|
import { RequestOptions } from "../../../internal/request-options.js";
|
|
4
4
|
export declare class BillingConfig extends APIResource {
|
|
5
5
|
/**
|
|
6
|
-
* Set the billing configuration for a given customer.
|
|
6
|
+
* Set the billing configuration for a given customer. This is a Plans (deprecated)
|
|
7
|
+
* endpoint. New clients should implement using Contracts.
|
|
7
8
|
*
|
|
8
9
|
* @example
|
|
9
10
|
* ```ts
|
|
@@ -17,7 +18,8 @@ export declare class BillingConfig extends APIResource {
|
|
|
17
18
|
*/
|
|
18
19
|
create(params: BillingConfigCreateParams, options?: RequestOptions): APIPromise<void>;
|
|
19
20
|
/**
|
|
20
|
-
* Fetch the billing configuration for the given customer.
|
|
21
|
+
* Fetch the billing configuration for the given customer. This is a Plans
|
|
22
|
+
* (deprecated) endpoint. New clients should implement using Contracts.
|
|
21
23
|
*
|
|
22
24
|
* @example
|
|
23
25
|
* ```ts
|
|
@@ -31,7 +33,8 @@ export declare class BillingConfig extends APIResource {
|
|
|
31
33
|
retrieve(params: BillingConfigRetrieveParams, options?: RequestOptions): APIPromise<BillingConfigRetrieveResponse>;
|
|
32
34
|
/**
|
|
33
35
|
* Delete the billing configuration for a given customer. Note: this is unsupported
|
|
34
|
-
* for Azure and AWS Marketplace customers.
|
|
36
|
+
* for Azure and AWS Marketplace customers. This is a Plans (deprecated) endpoint.
|
|
37
|
+
* New clients should implement using Contracts.
|
|
35
38
|
*
|
|
36
39
|
* @example
|
|
37
40
|
* ```ts
|
|
@@ -48,6 +51,8 @@ export interface BillingConfigRetrieveResponse {
|
|
|
48
51
|
}
|
|
49
52
|
export declare namespace BillingConfigRetrieveResponse {
|
|
50
53
|
interface Data {
|
|
54
|
+
aws_customer_account_id?: string;
|
|
55
|
+
aws_customer_id?: string;
|
|
51
56
|
/**
|
|
52
57
|
* Contract expiration date for the customer. The expected format is RFC 3339 and
|
|
53
58
|
* can be retrieved from
|
|
@@ -75,6 +80,10 @@ export declare namespace BillingConfigRetrieveResponse {
|
|
|
75
80
|
azure_start_date?: string;
|
|
76
81
|
azure_subscription_status?: 'Subscribed' | 'Unsubscribed' | 'Suspended' | 'PendingFulfillmentStart';
|
|
77
82
|
billing_provider_customer_id?: string;
|
|
83
|
+
/**
|
|
84
|
+
* The collection method for the customer's invoices. NOTE:
|
|
85
|
+
* `auto_charge_payment_intent` and `manually_charge_payment_intent` are in beta.
|
|
86
|
+
*/
|
|
78
87
|
stripe_collection_method?: 'charge_automatically' | 'send_invoice' | 'auto_charge_payment_intent' | 'manually_charge_payment_intent';
|
|
79
88
|
}
|
|
80
89
|
}
|
|
@@ -86,12 +95,20 @@ export interface BillingConfigCreateParams {
|
|
|
86
95
|
/**
|
|
87
96
|
* Path param: The billing provider (e.g. stripe)
|
|
88
97
|
*/
|
|
89
|
-
billing_provider_type: 'aws_marketplace' | 'stripe' | 'netsuite' | 'custom' | 'azure_marketplace' | 'quickbooks_online' | 'workday' | 'gcp_marketplace';
|
|
98
|
+
billing_provider_type: 'aws_marketplace' | 'stripe' | 'netsuite' | 'custom' | 'azure_marketplace' | 'quickbooks_online' | 'workday' | 'gcp_marketplace' | 'metronome';
|
|
90
99
|
/**
|
|
91
100
|
* Body param: The customer ID in the billing provider's system. For Azure, this is
|
|
92
101
|
* the subscription ID.
|
|
93
102
|
*/
|
|
94
103
|
billing_provider_customer_id: string;
|
|
104
|
+
/**
|
|
105
|
+
* Body param:
|
|
106
|
+
*/
|
|
107
|
+
aws_customer_account_id?: string;
|
|
108
|
+
/**
|
|
109
|
+
* Body param:
|
|
110
|
+
*/
|
|
111
|
+
aws_customer_id?: string;
|
|
95
112
|
/**
|
|
96
113
|
* Body param:
|
|
97
114
|
*/
|
|
@@ -101,7 +118,8 @@ export interface BillingConfigCreateParams {
|
|
|
101
118
|
*/
|
|
102
119
|
aws_region?: 'af-south-1' | 'ap-east-1' | 'ap-northeast-1' | 'ap-northeast-2' | 'ap-northeast-3' | 'ap-south-1' | 'ap-southeast-1' | 'ap-southeast-2' | 'ca-central-1' | 'cn-north-1' | 'cn-northwest-1' | 'eu-central-1' | 'eu-north-1' | 'eu-south-1' | 'eu-west-1' | 'eu-west-2' | 'eu-west-3' | 'me-south-1' | 'sa-east-1' | 'us-east-1' | 'us-east-2' | 'us-gov-east-1' | 'us-gov-west-1' | 'us-west-1' | 'us-west-2';
|
|
103
120
|
/**
|
|
104
|
-
* Body param:
|
|
121
|
+
* Body param: The collection method for the customer's invoices. NOTE:
|
|
122
|
+
* `auto_charge_payment_intent` and `manually_charge_payment_intent` are in beta.
|
|
105
123
|
*/
|
|
106
124
|
stripe_collection_method?: 'charge_automatically' | 'send_invoice' | 'auto_charge_payment_intent' | 'manually_charge_payment_intent';
|
|
107
125
|
}
|
|
@@ -110,14 +128,14 @@ export interface BillingConfigRetrieveParams {
|
|
|
110
128
|
/**
|
|
111
129
|
* The billing provider (e.g. stripe)
|
|
112
130
|
*/
|
|
113
|
-
billing_provider_type: 'aws_marketplace' | 'stripe' | 'netsuite' | 'custom' | 'azure_marketplace' | 'quickbooks_online' | 'workday' | 'gcp_marketplace';
|
|
131
|
+
billing_provider_type: 'aws_marketplace' | 'stripe' | 'netsuite' | 'custom' | 'azure_marketplace' | 'quickbooks_online' | 'workday' | 'gcp_marketplace' | 'metronome';
|
|
114
132
|
}
|
|
115
133
|
export interface BillingConfigDeleteParams {
|
|
116
134
|
customer_id: string;
|
|
117
135
|
/**
|
|
118
136
|
* The billing provider (e.g. stripe)
|
|
119
137
|
*/
|
|
120
|
-
billing_provider_type: 'aws_marketplace' | 'stripe' | 'netsuite' | 'custom' | 'azure_marketplace' | 'quickbooks_online' | 'workday' | 'gcp_marketplace';
|
|
138
|
+
billing_provider_type: 'aws_marketplace' | 'stripe' | 'netsuite' | 'custom' | 'azure_marketplace' | 'quickbooks_online' | 'workday' | 'gcp_marketplace' | 'metronome';
|
|
121
139
|
}
|
|
122
140
|
export declare namespace BillingConfig {
|
|
123
141
|
export { type BillingConfigRetrieveResponse as BillingConfigRetrieveResponse, type BillingConfigCreateParams as BillingConfigCreateParams, type BillingConfigRetrieveParams as BillingConfigRetrieveParams, type BillingConfigDeleteParams as BillingConfigDeleteParams, };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"billing-config.d.ts","sourceRoot":"","sources":["../../../src/resources/v1/customers/billing-config.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OAEd,EAAE,cAAc,EAAE;AAGzB,qBAAa,aAAc,SAAQ,WAAW;IAC5C
|
|
1
|
+
{"version":3,"file":"billing-config.d.ts","sourceRoot":"","sources":["../../../src/resources/v1/customers/billing-config.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OAEd,EAAE,cAAc,EAAE;AAGzB,qBAAa,aAAc,SAAQ,WAAW;IAC5C;;;;;;;;;;;;;OAaG;IACH,MAAM,CAAC,MAAM,EAAE,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C,WAAW,EAAE,MAAM,CAAC;IAEpB;;OAEG;IACH,qBAAqB,EACjB,iBAAiB,GACjB,QAAQ,GACR,UAAU,GACV,QAAQ,GACR,mBAAmB,GACnB,mBAAmB,GACnB,SAAS,GACT,iBAAiB,GACjB,WAAW,CAAC;CACjB;AAED,MAAM,CAAC,OAAO,WAAW,aAAa,CAAC;IACrC,OAAO,EACL,KAAK,6BAA6B,IAAI,6BAA6B,EACnE,KAAK,yBAAyB,IAAI,yBAAyB,EAC3D,KAAK,2BAA2B,IAAI,2BAA2B,EAC/D,KAAK,yBAAyB,IAAI,yBAAyB,GAC5D,CAAC;CACH"}
|
|
@@ -7,7 +7,8 @@ const headers_1 = require("../../../internal/headers.js");
|
|
|
7
7
|
const path_1 = require("../../../internal/utils/path.js");
|
|
8
8
|
class BillingConfig extends resource_1.APIResource {
|
|
9
9
|
/**
|
|
10
|
-
* Set the billing configuration for a given customer.
|
|
10
|
+
* Set the billing configuration for a given customer. This is a Plans (deprecated)
|
|
11
|
+
* endpoint. New clients should implement using Contracts.
|
|
11
12
|
*
|
|
12
13
|
* @example
|
|
13
14
|
* ```ts
|
|
@@ -28,7 +29,8 @@ class BillingConfig extends resource_1.APIResource {
|
|
|
28
29
|
});
|
|
29
30
|
}
|
|
30
31
|
/**
|
|
31
|
-
* Fetch the billing configuration for the given customer.
|
|
32
|
+
* Fetch the billing configuration for the given customer. This is a Plans
|
|
33
|
+
* (deprecated) endpoint. New clients should implement using Contracts.
|
|
32
34
|
*
|
|
33
35
|
* @example
|
|
34
36
|
* ```ts
|
|
@@ -45,7 +47,8 @@ class BillingConfig extends resource_1.APIResource {
|
|
|
45
47
|
}
|
|
46
48
|
/**
|
|
47
49
|
* Delete the billing configuration for a given customer. Note: this is unsupported
|
|
48
|
-
* for Azure and AWS Marketplace customers.
|
|
50
|
+
* for Azure and AWS Marketplace customers. This is a Plans (deprecated) endpoint.
|
|
51
|
+
* New clients should implement using Contracts.
|
|
49
52
|
*
|
|
50
53
|
* @example
|
|
51
54
|
* ```ts
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"billing-config.js","sourceRoot":"","sources":["../../../src/resources/v1/customers/billing-config.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,wDAAqD;AAErD,0DAAyD;AAEzD,0DAAoD;AAEpD,MAAa,aAAc,SAAQ,sBAAW;IAC5C
|
|
1
|
+
{"version":3,"file":"billing-config.js","sourceRoot":"","sources":["../../../src/resources/v1/customers/billing-config.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,wDAAqD;AAErD,0DAAyD;AAEzD,0DAAoD;AAEpD,MAAa,aAAc,SAAQ,sBAAW;IAC5C;;;;;;;;;;;;;OAaG;IACH,MAAM,CAAC,MAAiC,EAAE,OAAwB;QAChE,MAAM,EAAE,WAAW,EAAE,qBAAqB,EAAE,GAAG,IAAI,EAAE,GAAG,MAAM,CAAC;QAC/D,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAA,WAAI,EAAA,iBAAiB,WAAW,mBAAmB,qBAAqB,EAAE,EAAE;YACnG,IAAI;YACJ,GAAG,OAAO;YACV,OAAO,EAAE,IAAA,sBAAY,EAAC,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;SAC7D,CAAC,CAAC;IACL,CAAC;IAED;;;;;;;;;;;;OAYG;IACH,QAAQ,CACN,MAAmC,EACnC,OAAwB;QAExB,MAAM,EAAE,WAAW,EAAE,qBAAqB,EAAE,GAAG,MAAM,CAAC;QACtD,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CACrB,IAAA,WAAI,EAAA,iBAAiB,WAAW,mBAAmB,qBAAqB,EAAE,EAC1E,OAAO,CACR,CAAC;IACJ,CAAC;IAED;;;;;;;;;;;;OAYG;IACH,MAAM,CAAC,MAAiC,EAAE,OAAwB;QAChE,MAAM,EAAE,WAAW,EAAE,qBAAqB,EAAE,GAAG,MAAM,CAAC;QACtD,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,IAAA,WAAI,EAAA,iBAAiB,WAAW,mBAAmB,qBAAqB,EAAE,EAAE;YACrG,GAAG,OAAO;YACV,OAAO,EAAE,IAAA,sBAAY,EAAC,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;SAC7D,CAAC,CAAC;IACL,CAAC;CACF;AApED,sCAoEC"}
|
|
@@ -4,7 +4,8 @@ import { buildHeaders } from "../../../internal/headers.mjs";
|
|
|
4
4
|
import { path } from "../../../internal/utils/path.mjs";
|
|
5
5
|
export class BillingConfig extends APIResource {
|
|
6
6
|
/**
|
|
7
|
-
* Set the billing configuration for a given customer.
|
|
7
|
+
* Set the billing configuration for a given customer. This is a Plans (deprecated)
|
|
8
|
+
* endpoint. New clients should implement using Contracts.
|
|
8
9
|
*
|
|
9
10
|
* @example
|
|
10
11
|
* ```ts
|
|
@@ -25,7 +26,8 @@ export class BillingConfig extends APIResource {
|
|
|
25
26
|
});
|
|
26
27
|
}
|
|
27
28
|
/**
|
|
28
|
-
* Fetch the billing configuration for the given customer.
|
|
29
|
+
* Fetch the billing configuration for the given customer. This is a Plans
|
|
30
|
+
* (deprecated) endpoint. New clients should implement using Contracts.
|
|
29
31
|
*
|
|
30
32
|
* @example
|
|
31
33
|
* ```ts
|
|
@@ -42,7 +44,8 @@ export class BillingConfig extends APIResource {
|
|
|
42
44
|
}
|
|
43
45
|
/**
|
|
44
46
|
* Delete the billing configuration for a given customer. Note: this is unsupported
|
|
45
|
-
* for Azure and AWS Marketplace customers.
|
|
47
|
+
* for Azure and AWS Marketplace customers. This is a Plans (deprecated) endpoint.
|
|
48
|
+
* New clients should implement using Contracts.
|
|
46
49
|
*
|
|
47
50
|
* @example
|
|
48
51
|
* ```ts
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"billing-config.mjs","sourceRoot":"","sources":["../../../src/resources/v1/customers/billing-config.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAEf,EAAE,YAAY,EAAE;OAEhB,EAAE,IAAI,EAAE;AAEf,MAAM,OAAO,aAAc,SAAQ,WAAW;IAC5C
|
|
1
|
+
{"version":3,"file":"billing-config.mjs","sourceRoot":"","sources":["../../../src/resources/v1/customers/billing-config.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAEf,EAAE,YAAY,EAAE;OAEhB,EAAE,IAAI,EAAE;AAEf,MAAM,OAAO,aAAc,SAAQ,WAAW;IAC5C;;;;;;;;;;;;;OAaG;IACH,MAAM,CAAC,MAAiC,EAAE,OAAwB;QAChE,MAAM,EAAE,WAAW,EAAE,qBAAqB,EAAE,GAAG,IAAI,EAAE,GAAG,MAAM,CAAC;QAC/D,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAA,iBAAiB,WAAW,mBAAmB,qBAAqB,EAAE,EAAE;YACnG,IAAI;YACJ,GAAG,OAAO;YACV,OAAO,EAAE,YAAY,CAAC,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;SAC7D,CAAC,CAAC;IACL,CAAC;IAED;;;;;;;;;;;;OAYG;IACH,QAAQ,CACN,MAAmC,EACnC,OAAwB;QAExB,MAAM,EAAE,WAAW,EAAE,qBAAqB,EAAE,GAAG,MAAM,CAAC;QACtD,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CACrB,IAAI,CAAA,iBAAiB,WAAW,mBAAmB,qBAAqB,EAAE,EAC1E,OAAO,CACR,CAAC;IACJ,CAAC;IAED;;;;;;;;;;;;OAYG;IACH,MAAM,CAAC,MAAiC,EAAE,OAAwB;QAChE,MAAM,EAAE,WAAW,EAAE,qBAAqB,EAAE,GAAG,MAAM,CAAC;QACtD,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,IAAI,CAAA,iBAAiB,WAAW,mBAAmB,qBAAqB,EAAE,EAAE;YACrG,GAAG,OAAO;YACV,OAAO,EAAE,YAAY,CAAC,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;SAC7D,CAAC,CAAC;IACL,CAAC;CACF"}
|
|
@@ -35,7 +35,8 @@ export declare class Commits extends APIResource {
|
|
|
35
35
|
* #### Billing configuration:
|
|
36
36
|
*
|
|
37
37
|
* - invoice_contract_id is required for postpaid commits and for prepaid commits
|
|
38
|
-
* with billing (only optional for free prepaid commits)
|
|
38
|
+
* with billing (only optional for free prepaid commits) unless do_not_invoice is
|
|
39
|
+
* set to true
|
|
39
40
|
* - For postpaid commits: access_schedule and invoice_schedule must have matching
|
|
40
41
|
* amounts
|
|
41
42
|
* - For postpaid commits: only one schedule item is allowed in both schedules.
|
|
@@ -242,7 +243,7 @@ export interface CommitCreateParams {
|
|
|
242
243
|
/**
|
|
243
244
|
* The contract that this commit will be billed on. This is required for "POSTPAID"
|
|
244
245
|
* commits and for "PREPAID" commits unless there is no invoice schedule above
|
|
245
|
-
* (i.e., the commit is 'free').
|
|
246
|
+
* (i.e., the commit is 'free'), or if do_not_invoice is set to true.
|
|
246
247
|
*/
|
|
247
248
|
invoice_contract_id?: string;
|
|
248
249
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"commits.d.mts","sourceRoot":"","sources":["../../../src/resources/v1/customers/commits.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,MAAM;OACX,EAAE,qBAAqB,EAAE;OACzB,EAAE,UAAU,EAAE;OACd,EAAkB,KAAK,oBAAoB,EAAE,WAAW,EAAE;OAC1D,EAAE,cAAc,EAAE;AAEzB,qBAAa,OAAQ,SAAQ,WAAW;IACtC
|
|
1
|
+
{"version":3,"file":"commits.d.mts","sourceRoot":"","sources":["../../../src/resources/v1/customers/commits.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;O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1B;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAED,MAAM,WAAW,yBAAyB;IACxC;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;IAElB;;OAEG;IACH,WAAW,EAAE,MAAM,CAAC;IAEpB;;;;OAIG;IACH,oBAAoB,CAAC,EAAE,MAAM,CAAC;IAE9B;;;OAGG;IACH,sBAAsB,CAAC,EAAE,MAAM,CAAC;CACjC;AAED,MAAM,CAAC,OAAO,WAAW,OAAO,CAAC;IAC/B,OAAO,EACL,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,2BAA2B,IAAI,2BAA2B,EAC/D,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,gBAAgB,IAAI,gBAAgB,EACzC,KAAK,yBAAyB,IAAI,yBAAyB,GAC5D,CAAC;CACH;AAED,OAAO,EAAE,KAAK,qBAAqB,EAAE,CAAC"}
|
|
@@ -35,7 +35,8 @@ export declare class Commits extends APIResource {
|
|
|
35
35
|
* #### Billing configuration:
|
|
36
36
|
*
|
|
37
37
|
* - invoice_contract_id is required for postpaid commits and for prepaid commits
|
|
38
|
-
* with billing (only optional for free prepaid commits)
|
|
38
|
+
* with billing (only optional for free prepaid commits) unless do_not_invoice is
|
|
39
|
+
* set to true
|
|
39
40
|
* - For postpaid commits: access_schedule and invoice_schedule must have matching
|
|
40
41
|
* amounts
|
|
41
42
|
* - For postpaid commits: only one schedule item is allowed in both schedules.
|
|
@@ -242,7 +243,7 @@ export interface CommitCreateParams {
|
|
|
242
243
|
/**
|
|
243
244
|
* The contract that this commit will be billed on. This is required for "POSTPAID"
|
|
244
245
|
* commits and for "PREPAID" commits unless there is no invoice schedule above
|
|
245
|
-
* (i.e., the commit is 'free').
|
|
246
|
+
* (i.e., the commit is 'free'), or if do_not_invoice is set to true.
|
|
246
247
|
*/
|
|
247
248
|
invoice_contract_id?: string;
|
|
248
249
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"commits.d.ts","sourceRoot":"","sources":["../../../src/resources/v1/customers/commits.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,MAAM;OACX,EAAE,qBAAqB,EAAE;OACzB,EAAE,UAAU,EAAE;OACd,EAAkB,KAAK,oBAAoB,EAAE,WAAW,EAAE;OAC1D,EAAE,cAAc,EAAE;AAEzB,qBAAa,OAAQ,SAAQ,WAAW;IACtC
|
|
1
|
+
{"version":3,"file":"commits.d.ts","sourceRoot":"","sources":["../../../src/resources/v1/customers/commits.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,MAAM;OACX,EAAE,qBAAqB,EAAE;OACzB,EAAE,UAAU,EAAE;OACd,EAAkB,KAAK,oBAAoB,EAAE,WAAW,EAAE;OAC1D,EAAE,cAAc,EAAE;AAEzB,qBAAa,OAAQ,SAAQ,WAAW;IACtC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAkGG;IACH,MAAM,CAAC,IAAI,EAAE,kBAAkB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,oBAAoB,CAAC;IAI5F;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OA0DG;IACH,IAAI,CAAC,IAAI,EAAE,gBAAgB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,WAAW,CAAC,qBAAqB,EAAE,MAAM,CAAC,MAAM,CAAC;IAQzG;;;;;;;;;;;;;;;;;;;;;OAqBG;IACH,aAAa,CACX,IAAI,EAAE,yBAAyB,EAC/B,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,2BAA2B,CAAC;CAG3C;AAED,MAAM,WAAW,oBAAoB;IACnC,IAAI,EAAE,MAAM,CAAC,EAAE,CAAC;CACjB;AAED,MAAM,WAAW,2BAA2B;IA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;IAC5D,WAAW,EAAE,MAAM,CAAC;IAEpB,SAAS,CAAC,EAAE,MAAM,CAAC;IAEnB;;OAEG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC;IAEvB;;OAEG;IACH,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAE1B;;OAEG;IACH,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAE3B;;;OAGG;IACH,eAAe,CAAC,EAAE,OAAO,CAAC;IAE1B;;OAEG;IACH,wBAAwB,CAAC,EAAE,OAAO,CAAC;IAEnC;;;OAGG;IACH,eAAe,CAAC,EAAE,OAAO,CAAC;IAE1B;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAED,MAAM,WAAW,yBAAyB;IACxC;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;IAElB;;OAEG;IACH,WAAW,EAAE,MAAM,CAAC;IAEpB;;;;OAIG;IACH,oBAAoB,CAAC,EAAE,MAAM,CAAC;IAE9B;;;OAGG;IACH,sBAAsB,CAAC,EAAE,MAAM,CAAC;CACjC;AAED,MAAM,CAAC,OAAO,WAAW,OAAO,CAAC;IAC/B,OAAO,EACL,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,2BAA2B,IAAI,2BAA2B,EAC/D,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,gBAAgB,IAAI,gBAAgB,EACzC,KAAK,yBAAyB,IAAI,yBAAyB,GAC5D,CAAC;CACH;AAED,OAAO,EAAE,KAAK,qBAAqB,EAAE,CAAC"}
|
|
@@ -35,7 +35,8 @@ class Commits extends resource_1.APIResource {
|
|
|
35
35
|
* #### Billing configuration:
|
|
36
36
|
*
|
|
37
37
|
* - invoice_contract_id is required for postpaid commits and for prepaid commits
|
|
38
|
-
* with billing (only optional for free prepaid commits)
|
|
38
|
+
* with billing (only optional for free prepaid commits) unless do_not_invoice is
|
|
39
|
+
* set to true
|
|
39
40
|
* - For postpaid commits: access_schedule and invoice_schedule must have matching
|
|
40
41
|
* amounts
|
|
41
42
|
* - For postpaid commits: only one schedule item is allowed in both schedules.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"commits.js","sourceRoot":"","sources":["../../../src/resources/v1/customers/commits.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,wDAAqD;AAIrD,4DAAkG;AAGlG,MAAa,OAAQ,SAAQ,sBAAW;IACtC
|
|
1
|
+
{"version":3,"file":"commits.js","sourceRoot":"","sources":["../../../src/resources/v1/customers/commits.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,wDAAqD;AAIrD,4DAAkG;AAGlG,MAAa,OAAQ,SAAQ,sBAAW;IACtC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAkGG;IACH,MAAM,CAAC,IAAwB,EAAE,OAAwB;QACvD,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,sCAAsC,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACzF,CAAC;IAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OA0DG;IACH,IAAI,CAAC,IAAsB,EAAE,OAAwB;QACnD,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,oCAAoC,EAAE,CAAA,2BAA6B,CAAA,EAAE;YAClG,IAAI;YACJ,MAAM,EAAE,MAAM;YACd,GAAG,OAAO;SACX,CAAC,CAAC;IACL,CAAC;IAED;;;;;;;;;;;;;;;;;;;;;OAqBG;IACH,aAAa,CACX,IAA+B,EAC/B,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,6CAA6C,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAChG,CAAC;CACF;AAvMD,0BAuMC"}
|
|
@@ -32,7 +32,8 @@ export class Commits extends APIResource {
|
|
|
32
32
|
* #### Billing configuration:
|
|
33
33
|
*
|
|
34
34
|
* - invoice_contract_id is required for postpaid commits and for prepaid commits
|
|
35
|
-
* with billing (only optional for free prepaid commits)
|
|
35
|
+
* with billing (only optional for free prepaid commits) unless do_not_invoice is
|
|
36
|
+
* set to true
|
|
36
37
|
* - For postpaid commits: access_schedule and invoice_schedule must have matching
|
|
37
38
|
* amounts
|
|
38
39
|
* - For postpaid commits: only one schedule item is allowed in both schedules.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"commits.mjs","sourceRoot":"","sources":["../../../src/resources/v1/customers/commits.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAIf,EAAE,cAAc,EAA0C;AAGjE,MAAM,OAAO,OAAQ,SAAQ,WAAW;IACtC
|
|
1
|
+
{"version":3,"file":"commits.mjs","sourceRoot":"","sources":["../../../src/resources/v1/customers/commits.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAIf,EAAE,cAAc,EAA0C;AAGjE,MAAM,OAAO,OAAQ,SAAQ,WAAW;IACtC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAkGG;IACH,MAAM,CAAC,IAAwB,EAAE,OAAwB;QACvD,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,sCAAsC,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACzF,CAAC;IAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OA0DG;IACH,IAAI,CAAC,IAAsB,EAAE,OAAwB;QACnD,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,oCAAoC,EAAE,CAAA,cAA6B,CAAA,EAAE;YAClG,IAAI;YACJ,MAAM,EAAE,MAAM;YACd,GAAG,OAAO;SACX,CAAC,CAAC;IACL,CAAC;IAED;;;;;;;;;;;;;;;;;;;;;OAqBG;IACH,aAAa,CACX,IAA+B,EAC/B,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,6CAA6C,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAChG,CAAC;CACF"}
|