@metronome/sdk 0.1.0-beta.9 → 0.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 +179 -0
- package/README.md +30 -46
- package/_shims/index.d.ts +2 -0
- package/_shims/index.js +5 -1
- package/_shims/index.mjs +5 -1
- package/core.d.ts +19 -5
- package/core.d.ts.map +1 -1
- package/core.js +23 -14
- package/core.js.map +1 -1
- package/core.mjs +24 -15
- package/core.mjs.map +1 -1
- package/index.d.mts +3 -2
- package/index.d.ts +3 -2
- package/index.d.ts.map +1 -1
- package/index.js +6 -3
- package/index.js.map +1 -1
- package/index.mjs +6 -3
- package/index.mjs.map +1 -1
- package/package.json +1 -1
- package/pagination.d.ts +1 -0
- package/pagination.d.ts.map +1 -1
- package/pagination.js +3 -0
- package/pagination.js.map +1 -1
- package/pagination.mjs +3 -0
- package/pagination.mjs.map +1 -1
- package/resource.d.ts +1 -1
- package/resource.d.ts.map +1 -1
- package/resource.js.map +1 -1
- package/resource.mjs.map +1 -1
- package/resources/shared.d.ts +473 -37
- package/resources/shared.d.ts.map +1 -1
- package/resources/v1/alerts.d.ts +26 -2
- package/resources/v1/alerts.d.ts.map +1 -1
- package/resources/v1/alerts.js +19 -0
- package/resources/v1/alerts.js.map +1 -1
- package/resources/v1/alerts.mjs +19 -0
- package/resources/v1/alerts.mjs.map +1 -1
- package/resources/v1/audit-logs.d.ts +8 -0
- package/resources/v1/audit-logs.d.ts.map +1 -1
- package/resources/v1/audit-logs.js.map +1 -1
- package/resources/v1/audit-logs.mjs.map +1 -1
- package/resources/v1/billable-metrics.d.ts +58 -3
- package/resources/v1/billable-metrics.d.ts.map +1 -1
- package/resources/v1/billable-metrics.js +41 -0
- package/resources/v1/billable-metrics.js.map +1 -1
- package/resources/v1/billable-metrics.mjs +41 -0
- package/resources/v1/billable-metrics.mjs.map +1 -1
- package/resources/v1/contracts/contracts.d.ts +1478 -102
- package/resources/v1/contracts/contracts.d.ts.map +1 -1
- package/resources/v1/contracts/contracts.js +180 -3
- package/resources/v1/contracts/contracts.js.map +1 -1
- package/resources/v1/contracts/contracts.mjs +180 -3
- package/resources/v1/contracts/contracts.mjs.map +1 -1
- package/resources/v1/contracts/index.d.ts +2 -2
- package/resources/v1/contracts/index.d.ts.map +1 -1
- package/resources/v1/contracts/index.js.map +1 -1
- package/resources/v1/contracts/index.mjs.map +1 -1
- package/resources/v1/contracts/named-schedules.d.ts +21 -0
- package/resources/v1/contracts/named-schedules.d.ts.map +1 -1
- package/resources/v1/contracts/named-schedules.js +21 -0
- package/resources/v1/contracts/named-schedules.js.map +1 -1
- package/resources/v1/contracts/named-schedules.mjs +21 -0
- package/resources/v1/contracts/named-schedules.mjs.map +1 -1
- package/resources/v1/contracts/products.d.ts +51 -3
- package/resources/v1/contracts/products.d.ts.map +1 -1
- package/resources/v1/contracts/products.js +33 -0
- package/resources/v1/contracts/products.js.map +1 -1
- package/resources/v1/contracts/products.mjs +33 -0
- package/resources/v1/contracts/products.mjs.map +1 -1
- package/resources/v1/contracts/rate-cards/index.d.ts +1 -1
- package/resources/v1/contracts/rate-cards/index.d.ts.map +1 -1
- package/resources/v1/contracts/rate-cards/index.js.map +1 -1
- package/resources/v1/contracts/rate-cards/index.mjs.map +1 -1
- package/resources/v1/contracts/rate-cards/named-schedules.d.ts +25 -0
- package/resources/v1/contracts/rate-cards/named-schedules.d.ts.map +1 -1
- package/resources/v1/contracts/rate-cards/named-schedules.js +25 -0
- package/resources/v1/contracts/rate-cards/named-schedules.js.map +1 -1
- package/resources/v1/contracts/rate-cards/named-schedules.mjs +25 -0
- package/resources/v1/contracts/rate-cards/named-schedules.mjs.map +1 -1
- package/resources/v1/contracts/rate-cards/product-orders.d.ts +30 -0
- package/resources/v1/contracts/rate-cards/product-orders.d.ts.map +1 -1
- package/resources/v1/contracts/rate-cards/product-orders.js +30 -0
- package/resources/v1/contracts/rate-cards/product-orders.js.map +1 -1
- package/resources/v1/contracts/rate-cards/product-orders.mjs +30 -0
- package/resources/v1/contracts/rate-cards/product-orders.mjs.map +1 -1
- package/resources/v1/contracts/rate-cards/rate-cards.d.ts +107 -10
- package/resources/v1/contracts/rate-cards/rate-cards.d.ts.map +1 -1
- package/resources/v1/contracts/rate-cards/rate-cards.js +71 -0
- package/resources/v1/contracts/rate-cards/rate-cards.js.map +1 -1
- package/resources/v1/contracts/rate-cards/rate-cards.mjs +71 -0
- package/resources/v1/contracts/rate-cards/rate-cards.mjs.map +1 -1
- package/resources/v1/contracts/rate-cards/rates.d.ts +102 -14
- package/resources/v1/contracts/rate-cards/rates.d.ts.map +1 -1
- package/resources/v1/contracts/rate-cards/rates.js +68 -0
- package/resources/v1/contracts/rate-cards/rates.js.map +1 -1
- package/resources/v1/contracts/rate-cards/rates.mjs +68 -0
- package/resources/v1/contracts/rate-cards/rates.mjs.map +1 -1
- package/resources/v1/credit-grants.d.ts +77 -2
- package/resources/v1/credit-grants.d.ts.map +1 -1
- package/resources/v1/credit-grants.js +39 -2
- package/resources/v1/credit-grants.js.map +1 -1
- package/resources/v1/credit-grants.mjs +39 -2
- package/resources/v1/credit-grants.mjs.map +1 -1
- package/resources/v1/custom-fields.d.ts +51 -7
- package/resources/v1/custom-fields.d.ts.map +1 -1
- package/resources/v1/custom-fields.js +35 -0
- package/resources/v1/custom-fields.js.map +1 -1
- package/resources/v1/custom-fields.mjs +35 -0
- package/resources/v1/custom-fields.mjs.map +1 -1
- package/resources/v1/customers/alerts.d.ts +28 -0
- package/resources/v1/customers/alerts.d.ts.map +1 -1
- package/resources/v1/customers/alerts.js +23 -0
- package/resources/v1/customers/alerts.js.map +1 -1
- package/resources/v1/customers/alerts.mjs +23 -0
- package/resources/v1/customers/alerts.mjs.map +1 -1
- package/resources/v1/customers/billing-config.d.ts +31 -0
- package/resources/v1/customers/billing-config.d.ts.map +1 -1
- package/resources/v1/customers/billing-config.js +27 -0
- package/resources/v1/customers/billing-config.js.map +1 -1
- package/resources/v1/customers/billing-config.mjs +27 -0
- package/resources/v1/customers/billing-config.mjs.map +1 -1
- package/resources/v1/customers/commits.d.ts +94 -7
- package/resources/v1/customers/commits.d.ts.map +1 -1
- package/resources/v1/customers/commits.js +56 -1
- package/resources/v1/customers/commits.js.map +1 -1
- package/resources/v1/customers/commits.mjs +56 -1
- package/resources/v1/customers/commits.mjs.map +1 -1
- package/resources/v1/customers/credits.d.ts +73 -3
- package/resources/v1/customers/credits.d.ts.map +1 -1
- package/resources/v1/customers/credits.js +41 -1
- package/resources/v1/customers/credits.js.map +1 -1
- package/resources/v1/customers/credits.mjs +41 -1
- package/resources/v1/customers/credits.mjs.map +1 -1
- package/resources/v1/customers/customers.d.ts +186 -9
- package/resources/v1/customers/customers.d.ts.map +1 -1
- package/resources/v1/customers/customers.js +106 -1
- package/resources/v1/customers/customers.js.map +1 -1
- package/resources/v1/customers/customers.mjs +106 -1
- package/resources/v1/customers/customers.mjs.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.ts +144 -52
- package/resources/v1/customers/invoices.d.ts.map +1 -1
- package/resources/v1/customers/invoices.js +49 -0
- package/resources/v1/customers/invoices.js.map +1 -1
- package/resources/v1/customers/invoices.mjs +49 -0
- package/resources/v1/customers/invoices.mjs.map +1 -1
- package/resources/v1/customers/named-schedules.d.ts +21 -0
- package/resources/v1/customers/named-schedules.d.ts.map +1 -1
- package/resources/v1/customers/named-schedules.js +21 -0
- package/resources/v1/customers/named-schedules.js.map +1 -1
- package/resources/v1/customers/named-schedules.mjs +21 -0
- package/resources/v1/customers/named-schedules.mjs.map +1 -1
- package/resources/v1/customers/plans.d.ts +46 -1
- package/resources/v1/customers/plans.d.ts.map +1 -1
- package/resources/v1/customers/plans.js +43 -0
- package/resources/v1/customers/plans.js.map +1 -1
- package/resources/v1/customers/plans.mjs +43 -0
- package/resources/v1/customers/plans.mjs.map +1 -1
- package/resources/v1/dashboards.d.ts +30 -2
- package/resources/v1/dashboards.d.ts.map +1 -1
- package/resources/v1/dashboards.js +26 -0
- package/resources/v1/dashboards.js.map +1 -1
- package/resources/v1/dashboards.mjs +26 -0
- package/resources/v1/dashboards.mjs.map +1 -1
- package/resources/v1/index.d.ts +3 -3
- package/resources/v1/index.d.ts.map +1 -1
- package/resources/v1/index.js.map +1 -1
- package/resources/v1/index.mjs.map +1 -1
- package/resources/v1/invoices.d.ts +14 -0
- package/resources/v1/invoices.d.ts.map +1 -1
- package/resources/v1/invoices.js +14 -0
- package/resources/v1/invoices.js.map +1 -1
- package/resources/v1/invoices.mjs +14 -0
- package/resources/v1/invoices.mjs.map +1 -1
- package/resources/v1/plans.d.ts +47 -4
- package/resources/v1/plans.d.ts.map +1 -1
- package/resources/v1/plans.js +27 -0
- package/resources/v1/plans.js.map +1 -1
- package/resources/v1/plans.mjs +27 -0
- package/resources/v1/plans.mjs.map +1 -1
- package/resources/v1/pricing-units.d.ts +8 -0
- package/resources/v1/pricing-units.d.ts.map +1 -1
- package/resources/v1/pricing-units.js.map +1 -1
- package/resources/v1/pricing-units.mjs.map +1 -1
- package/resources/v1/services.d.ts +5 -0
- package/resources/v1/services.d.ts.map +1 -1
- package/resources/v1/services.js +5 -0
- package/resources/v1/services.js.map +1 -1
- package/resources/v1/services.mjs +5 -0
- package/resources/v1/services.mjs.map +1 -1
- package/resources/v1/usage.d.ts +161 -3
- package/resources/v1/usage.d.ts.map +1 -1
- package/resources/v1/usage.js +46 -0
- package/resources/v1/usage.js.map +1 -1
- package/resources/v1/usage.mjs +46 -0
- package/resources/v1/usage.mjs.map +1 -1
- package/resources/v1/v1.d.ts +6 -6
- package/resources/v1/v1.d.ts.map +1 -1
- package/resources/v1/v1.js.map +1 -1
- package/resources/v1/v1.mjs.map +1 -1
- package/resources/v2/contracts.d.ts +2923 -207
- package/resources/v2/contracts.d.ts.map +1 -1
- package/resources/v2/contracts.js +90 -2
- package/resources/v2/contracts.js.map +1 -1
- package/resources/v2/contracts.mjs +90 -2
- package/resources/v2/contracts.mjs.map +1 -1
- package/resources/webhooks.js +5 -5
- package/resources/webhooks.js.map +1 -1
- package/resources/webhooks.mjs +5 -5
- package/resources/webhooks.mjs.map +1 -1
- package/src/_shims/auto/runtime-bun.ts +1 -1
- package/src/_shims/auto/runtime-node.ts +1 -1
- package/src/_shims/auto/runtime.ts +1 -1
- package/src/_shims/auto/types-node.ts +1 -1
- package/src/_shims/bun-runtime.ts +2 -2
- package/src/_shims/index.d.ts +5 -3
- package/src/_shims/index.js +5 -1
- package/src/_shims/index.mjs +6 -2
- package/src/_shims/node-runtime.ts +3 -3
- package/src/_shims/registry.ts +1 -1
- package/src/_shims/web-runtime.ts +3 -3
- package/src/core.ts +46 -18
- package/src/error.ts +1 -1
- package/src/index.ts +22 -16
- package/src/internal/qs/formats.ts +1 -1
- package/src/internal/qs/index.ts +3 -3
- package/src/internal/qs/stringify.ts +3 -3
- package/src/internal/qs/utils.ts +2 -2
- package/src/pagination.ts +5 -1
- package/src/resource.ts +2 -2
- package/src/resources/index.ts +4 -4
- package/src/resources/shared.ts +539 -40
- package/src/resources/v1/alerts.ts +29 -5
- package/src/resources/v1/audit-logs.ts +12 -4
- package/src/resources/v1/billable-metrics.ts +57 -8
- package/src/resources/v1/contracts/contracts.ts +1643 -124
- package/src/resources/v1/contracts/index.ts +8 -4
- package/src/resources/v1/contracts/named-schedules.ts +23 -2
- package/src/resources/v1/contracts/products.ts +53 -9
- package/src/resources/v1/contracts/rate-cards/index.ts +6 -4
- package/src/resources/v1/contracts/rate-cards/named-schedules.ts +27 -2
- package/src/resources/v1/contracts/rate-cards/product-orders.ts +33 -3
- package/src/resources/v1/contracts/rate-cards/rate-cards.ts +113 -20
- package/src/resources/v1/contracts/rate-cards/rates.ts +86 -18
- package/src/resources/v1/contracts/rate-cards.ts +1 -1
- package/src/resources/v1/contracts.ts +1 -1
- package/src/resources/v1/credit-grants.ts +82 -10
- package/src/resources/v1/custom-fields.ts +57 -9
- package/src/resources/v1/customers/alerts.ts +32 -3
- package/src/resources/v1/customers/billing-config.ts +34 -2
- package/src/resources/v1/customers/commits.ts +97 -10
- package/src/resources/v1/customers/credits.ts +76 -6
- package/src/resources/v1/customers/customers.ts +208 -27
- package/src/resources/v1/customers/index.ts +10 -8
- package/src/resources/v1/customers/invoices.ts +123 -57
- package/src/resources/v1/customers/named-schedules.ts +23 -2
- package/src/resources/v1/customers/plans.ts +48 -5
- package/src/resources/v1/customers.ts +1 -1
- package/src/resources/v1/dashboards.ts +30 -4
- package/src/resources/v1/index.ts +20 -14
- package/src/resources/v1/invoices.ts +16 -2
- package/src/resources/v1/plans.ts +45 -10
- package/src/resources/v1/pricing-units.ts +12 -4
- package/src/resources/v1/services.ts +7 -2
- package/src/resources/v1/usage.ts +187 -6
- package/src/resources/v1/v1.ts +39 -27
- package/src/resources/v1.ts +1 -1
- package/src/resources/v2/contracts.ts +3397 -235
- package/src/resources/v2/index.ts +2 -2
- package/src/resources/v2/v2.ts +3 -3
- package/src/resources/v2.ts +1 -1
- package/src/resources/webhooks.ts +7 -7
- package/src/resources.ts +1 -1
- package/src/shims/node.ts +3 -3
- package/src/shims/web.ts +3 -3
- package/src/uploads.ts +4 -4
- package/src/version.ts +1 -1
- package/version.d.ts +1 -1
- package/version.d.ts.map +1 -1
- package/version.js +1 -1
- package/version.js.map +1 -1
- package/version.mjs +1 -1
- package/version.mjs.map +1 -1
|
@@ -4,14 +4,54 @@ import * as Shared from "../../shared.js";
|
|
|
4
4
|
export declare class Credits extends APIResource {
|
|
5
5
|
/**
|
|
6
6
|
* Create a new credit at the customer level.
|
|
7
|
+
*
|
|
8
|
+
* @example
|
|
9
|
+
* ```ts
|
|
10
|
+
* const credit = await client.v1.customers.credits.create({
|
|
11
|
+
* access_schedule: {
|
|
12
|
+
* credit_type_id: '2714e483-4ff1-48e4-9e25-ac732e8f24f2',
|
|
13
|
+
* schedule_items: [
|
|
14
|
+
* {
|
|
15
|
+
* amount: 1000,
|
|
16
|
+
* starting_at: '2020-01-01T00:00:00.000Z',
|
|
17
|
+
* ending_before: '2020-02-01T00:00:00.000Z',
|
|
18
|
+
* },
|
|
19
|
+
* ],
|
|
20
|
+
* },
|
|
21
|
+
* customer_id: '13117714-3f05-48e5-a6e9-a66093f13b4d',
|
|
22
|
+
* priority: 100,
|
|
23
|
+
* product_id: 'f14d6729-6a44-4b13-9908-9387f1918790',
|
|
24
|
+
* name: 'My Credit',
|
|
25
|
+
* });
|
|
26
|
+
* ```
|
|
7
27
|
*/
|
|
8
28
|
create(body: CreditCreateParams, options?: Core.RequestOptions): Core.APIPromise<CreditCreateResponse>;
|
|
9
29
|
/**
|
|
10
30
|
* List credits.
|
|
31
|
+
*
|
|
32
|
+
* @example
|
|
33
|
+
* ```ts
|
|
34
|
+
* const credits = await client.v1.customers.credits.list({
|
|
35
|
+
* customer_id: '13117714-3f05-48e5-a6e9-a66093f13b4d',
|
|
36
|
+
* credit_id: '6162d87b-e5db-4a33-b7f2-76ce6ead4e85',
|
|
37
|
+
* include_ledgers: true,
|
|
38
|
+
* });
|
|
39
|
+
* ```
|
|
11
40
|
*/
|
|
12
41
|
list(body: CreditListParams, options?: Core.RequestOptions): Core.APIPromise<CreditListResponse>;
|
|
13
42
|
/**
|
|
14
|
-
*
|
|
43
|
+
* Pull forward the end date of a credit. Use the "edit a credit" endpoint to
|
|
44
|
+
* extend the end date of a credit, or to make other edits to the credit.
|
|
45
|
+
*
|
|
46
|
+
* @example
|
|
47
|
+
* ```ts
|
|
48
|
+
* const response =
|
|
49
|
+
* await client.v1.customers.credits.updateEndDate({
|
|
50
|
+
* access_ending_before: '2020-01-01T00:00:00.000Z',
|
|
51
|
+
* credit_id: '6162d87b-e5db-4a33-b7f2-76ce6ead4e85',
|
|
52
|
+
* customer_id: '13117714-3f05-48e5-a6e9-a66093f13b4d',
|
|
53
|
+
* });
|
|
54
|
+
* ```
|
|
15
55
|
*/
|
|
16
56
|
updateEndDate(body: CreditUpdateEndDateParams, options?: Core.RequestOptions): Core.APIPromise<CreditUpdateEndDateResponse>;
|
|
17
57
|
}
|
|
@@ -52,7 +92,9 @@ export interface CreditCreateParams {
|
|
|
52
92
|
* applicable_product_tags are not provided, the credit applies to all products.
|
|
53
93
|
*/
|
|
54
94
|
applicable_product_tags?: Array<string>;
|
|
55
|
-
custom_fields?:
|
|
95
|
+
custom_fields?: {
|
|
96
|
+
[key: string]: string;
|
|
97
|
+
};
|
|
56
98
|
/**
|
|
57
99
|
* Used only in UI/API. It is not exposed to end customers.
|
|
58
100
|
*/
|
|
@@ -70,6 +112,13 @@ export interface CreditCreateParams {
|
|
|
70
112
|
* This field's availability is dependent on your client's configuration.
|
|
71
113
|
*/
|
|
72
114
|
salesforce_opportunity_id?: string;
|
|
115
|
+
/**
|
|
116
|
+
* List of filters that determine what kind of customer usage draws down a commit
|
|
117
|
+
* or credit. A customer's usage needs to meet the condition of at least one of the
|
|
118
|
+
* specifiers to contribute to a commit's or credit's drawdown. This field cannot
|
|
119
|
+
* be used together with `applicable_product_ids` or `applicable_product_tags`.
|
|
120
|
+
*/
|
|
121
|
+
specifiers?: Array<CreditCreateParams.Specifier>;
|
|
73
122
|
/**
|
|
74
123
|
* Prevents the creation of duplicates. If a request to create a commit or credit
|
|
75
124
|
* is made with a uniqueness key that was previously used to create a commit or
|
|
@@ -102,6 +151,23 @@ export declare namespace CreditCreateParams {
|
|
|
102
151
|
starting_at: string;
|
|
103
152
|
}
|
|
104
153
|
}
|
|
154
|
+
interface Specifier {
|
|
155
|
+
presentation_group_values?: {
|
|
156
|
+
[key: string]: string;
|
|
157
|
+
};
|
|
158
|
+
pricing_group_values?: {
|
|
159
|
+
[key: string]: string;
|
|
160
|
+
};
|
|
161
|
+
/**
|
|
162
|
+
* If provided, the specifier will only apply to the product with the specified ID.
|
|
163
|
+
*/
|
|
164
|
+
product_id?: string;
|
|
165
|
+
/**
|
|
166
|
+
* If provided, the specifier will only apply to products with all the specified
|
|
167
|
+
* tags.
|
|
168
|
+
*/
|
|
169
|
+
product_tags?: Array<string>;
|
|
170
|
+
}
|
|
105
171
|
}
|
|
106
172
|
export interface CreditListParams {
|
|
107
173
|
customer_id: string;
|
|
@@ -115,7 +181,7 @@ export interface CreditListParams {
|
|
|
115
181
|
*/
|
|
116
182
|
effective_before?: string;
|
|
117
183
|
/**
|
|
118
|
-
* Include credits from archived contracts.
|
|
184
|
+
* Include archived credits and credits from archived contracts.
|
|
119
185
|
*/
|
|
120
186
|
include_archived?: boolean;
|
|
121
187
|
/**
|
|
@@ -132,6 +198,10 @@ export interface CreditListParams {
|
|
|
132
198
|
* be slower.
|
|
133
199
|
*/
|
|
134
200
|
include_ledgers?: boolean;
|
|
201
|
+
/**
|
|
202
|
+
* The maximum number of commits to return. Defaults to 25.
|
|
203
|
+
*/
|
|
204
|
+
limit?: number;
|
|
135
205
|
/**
|
|
136
206
|
* The next page token from a previous response.
|
|
137
207
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"credits.d.ts","sourceRoot":"","sources":["../../../src/resources/v1/customers/credits.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAChD,OAAO,KAAK,IAAI,MAAM,eAAe,CAAC;AACtC,OAAO,KAAK,MAAM,MAAM,cAAc,CAAC;AAEvC,qBAAa,OAAQ,SAAQ,WAAW;IACtC
|
|
1
|
+
{"version":3,"file":"credits.d.ts","sourceRoot":"","sources":["../../../src/resources/v1/customers/credits.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAChD,OAAO,KAAK,IAAI,MAAM,eAAe,CAAC;AACtC,OAAO,KAAK,MAAM,MAAM,cAAc,CAAC;AAEvC,qBAAa,OAAQ,SAAQ,WAAW;IACtC;;;;;;;;;;;;;;;;;;;;;;OAsBG;IACH,MAAM,CAAC,IAAI,EAAE,kBAAkB,EAAE,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AC;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,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IAEnB;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAED,MAAM,WAAW,yBAAyB;IACxC;;;OAGG;IACH,oBAAoB,EAAE,MAAM,CAAC;IAE7B;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;IAElB;;OAEG;IACH,WAAW,EAAE,MAAM,CAAC;CACrB;AAED,MAAM,CAAC,OAAO,WAAW,OAAO,CAAC;IAC/B,OAAO,EACL,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,2BAA2B,IAAI,2BAA2B,EAC/D,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,gBAAgB,IAAI,gBAAgB,EACzC,KAAK,yBAAyB,IAAI,yBAAyB,GAC5D,CAAC;CACH"}
|
|
@@ -6,18 +6,58 @@ const resource_1 = require("../../../resource.js");
|
|
|
6
6
|
class Credits extends resource_1.APIResource {
|
|
7
7
|
/**
|
|
8
8
|
* Create a new credit at the customer level.
|
|
9
|
+
*
|
|
10
|
+
* @example
|
|
11
|
+
* ```ts
|
|
12
|
+
* const credit = await client.v1.customers.credits.create({
|
|
13
|
+
* access_schedule: {
|
|
14
|
+
* credit_type_id: '2714e483-4ff1-48e4-9e25-ac732e8f24f2',
|
|
15
|
+
* schedule_items: [
|
|
16
|
+
* {
|
|
17
|
+
* amount: 1000,
|
|
18
|
+
* starting_at: '2020-01-01T00:00:00.000Z',
|
|
19
|
+
* ending_before: '2020-02-01T00:00:00.000Z',
|
|
20
|
+
* },
|
|
21
|
+
* ],
|
|
22
|
+
* },
|
|
23
|
+
* customer_id: '13117714-3f05-48e5-a6e9-a66093f13b4d',
|
|
24
|
+
* priority: 100,
|
|
25
|
+
* product_id: 'f14d6729-6a44-4b13-9908-9387f1918790',
|
|
26
|
+
* name: 'My Credit',
|
|
27
|
+
* });
|
|
28
|
+
* ```
|
|
9
29
|
*/
|
|
10
30
|
create(body, options) {
|
|
11
31
|
return this._client.post('/v1/contracts/customerCredits/create', { body, ...options });
|
|
12
32
|
}
|
|
13
33
|
/**
|
|
14
34
|
* List credits.
|
|
35
|
+
*
|
|
36
|
+
* @example
|
|
37
|
+
* ```ts
|
|
38
|
+
* const credits = await client.v1.customers.credits.list({
|
|
39
|
+
* customer_id: '13117714-3f05-48e5-a6e9-a66093f13b4d',
|
|
40
|
+
* credit_id: '6162d87b-e5db-4a33-b7f2-76ce6ead4e85',
|
|
41
|
+
* include_ledgers: true,
|
|
42
|
+
* });
|
|
43
|
+
* ```
|
|
15
44
|
*/
|
|
16
45
|
list(body, options) {
|
|
17
46
|
return this._client.post('/v1/contracts/customerCredits/list', { body, ...options });
|
|
18
47
|
}
|
|
19
48
|
/**
|
|
20
|
-
*
|
|
49
|
+
* Pull forward the end date of a credit. Use the "edit a credit" endpoint to
|
|
50
|
+
* extend the end date of a credit, or to make other edits to the credit.
|
|
51
|
+
*
|
|
52
|
+
* @example
|
|
53
|
+
* ```ts
|
|
54
|
+
* const response =
|
|
55
|
+
* await client.v1.customers.credits.updateEndDate({
|
|
56
|
+
* access_ending_before: '2020-01-01T00:00:00.000Z',
|
|
57
|
+
* credit_id: '6162d87b-e5db-4a33-b7f2-76ce6ead4e85',
|
|
58
|
+
* customer_id: '13117714-3f05-48e5-a6e9-a66093f13b4d',
|
|
59
|
+
* });
|
|
60
|
+
* ```
|
|
21
61
|
*/
|
|
22
62
|
updateEndDate(body, options) {
|
|
23
63
|
return this._client.post('/v1/contracts/customerCredits/updateEndDate', { body, ...options });
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"credits.js","sourceRoot":"","sources":["../../../src/resources/v1/customers/credits.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,mDAAgD;AAIhD,MAAa,OAAQ,SAAQ,sBAAW;IACtC
|
|
1
|
+
{"version":3,"file":"credits.js","sourceRoot":"","sources":["../../../src/resources/v1/customers/credits.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,mDAAgD;AAIhD,MAAa,OAAQ,SAAQ,sBAAW;IACtC;;;;;;;;;;;;;;;;;;;;;;OAsBG;IACH,MAAM,CAAC,IAAwB,EAAE,OAA6B;QAC5D,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,sCAAsC,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACzF,CAAC;IAED;;;;;;;;;;;OAWG;IACH,IAAI,CAAC,IAAsB,EAAE,OAA6B;QACxD,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,oCAAoC,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACvF,CAAC;IAED;;;;;;;;;;;;;OAaG;IACH,aAAa,CACX,IAA+B,EAC/B,OAA6B;QAE7B,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,6CAA6C,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAChG,CAAC;CACF;AAhED,0BAgEC"}
|
|
@@ -3,18 +3,58 @@ import { APIResource } from "../../../resource.mjs";
|
|
|
3
3
|
export class Credits extends APIResource {
|
|
4
4
|
/**
|
|
5
5
|
* Create a new credit at the customer level.
|
|
6
|
+
*
|
|
7
|
+
* @example
|
|
8
|
+
* ```ts
|
|
9
|
+
* const credit = await client.v1.customers.credits.create({
|
|
10
|
+
* access_schedule: {
|
|
11
|
+
* credit_type_id: '2714e483-4ff1-48e4-9e25-ac732e8f24f2',
|
|
12
|
+
* schedule_items: [
|
|
13
|
+
* {
|
|
14
|
+
* amount: 1000,
|
|
15
|
+
* starting_at: '2020-01-01T00:00:00.000Z',
|
|
16
|
+
* ending_before: '2020-02-01T00:00:00.000Z',
|
|
17
|
+
* },
|
|
18
|
+
* ],
|
|
19
|
+
* },
|
|
20
|
+
* customer_id: '13117714-3f05-48e5-a6e9-a66093f13b4d',
|
|
21
|
+
* priority: 100,
|
|
22
|
+
* product_id: 'f14d6729-6a44-4b13-9908-9387f1918790',
|
|
23
|
+
* name: 'My Credit',
|
|
24
|
+
* });
|
|
25
|
+
* ```
|
|
6
26
|
*/
|
|
7
27
|
create(body, options) {
|
|
8
28
|
return this._client.post('/v1/contracts/customerCredits/create', { body, ...options });
|
|
9
29
|
}
|
|
10
30
|
/**
|
|
11
31
|
* List credits.
|
|
32
|
+
*
|
|
33
|
+
* @example
|
|
34
|
+
* ```ts
|
|
35
|
+
* const credits = await client.v1.customers.credits.list({
|
|
36
|
+
* customer_id: '13117714-3f05-48e5-a6e9-a66093f13b4d',
|
|
37
|
+
* credit_id: '6162d87b-e5db-4a33-b7f2-76ce6ead4e85',
|
|
38
|
+
* include_ledgers: true,
|
|
39
|
+
* });
|
|
40
|
+
* ```
|
|
12
41
|
*/
|
|
13
42
|
list(body, options) {
|
|
14
43
|
return this._client.post('/v1/contracts/customerCredits/list', { body, ...options });
|
|
15
44
|
}
|
|
16
45
|
/**
|
|
17
|
-
*
|
|
46
|
+
* Pull forward the end date of a credit. Use the "edit a credit" endpoint to
|
|
47
|
+
* extend the end date of a credit, or to make other edits to the credit.
|
|
48
|
+
*
|
|
49
|
+
* @example
|
|
50
|
+
* ```ts
|
|
51
|
+
* const response =
|
|
52
|
+
* await client.v1.customers.credits.updateEndDate({
|
|
53
|
+
* access_ending_before: '2020-01-01T00:00:00.000Z',
|
|
54
|
+
* credit_id: '6162d87b-e5db-4a33-b7f2-76ce6ead4e85',
|
|
55
|
+
* customer_id: '13117714-3f05-48e5-a6e9-a66093f13b4d',
|
|
56
|
+
* });
|
|
57
|
+
* ```
|
|
18
58
|
*/
|
|
19
59
|
updateEndDate(body, options) {
|
|
20
60
|
return this._client.post('/v1/contracts/customerCredits/updateEndDate', { body, ...options });
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"credits.mjs","sourceRoot":"","sources":["../../../src/resources/v1/customers/credits.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;AAItB,MAAM,OAAO,OAAQ,SAAQ,WAAW;IACtC
|
|
1
|
+
{"version":3,"file":"credits.mjs","sourceRoot":"","sources":["../../../src/resources/v1/customers/credits.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;AAItB,MAAM,OAAO,OAAQ,SAAQ,WAAW;IACtC;;;;;;;;;;;;;;;;;;;;;;OAsBG;IACH,MAAM,CAAC,IAAwB,EAAE,OAA6B;QAC5D,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,sCAAsC,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACzF,CAAC;IAED;;;;;;;;;;;OAWG;IACH,IAAI,CAAC,IAAsB,EAAE,OAA6B;QACxD,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,oCAAoC,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACvF,CAAC;IAED;;;;;;;;;;;;;OAaG;IACH,aAAa,CACX,IAA+B,EAC/B,OAA6B;QAE7B,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,6CAA6C,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAChG,CAAC;CACF"}
|
|
@@ -26,43 +26,153 @@ export declare class Customers extends APIResource {
|
|
|
26
26
|
namedSchedules: NamedSchedulesAPI.NamedSchedules;
|
|
27
27
|
/**
|
|
28
28
|
* Create a new customer
|
|
29
|
+
*
|
|
30
|
+
* @example
|
|
31
|
+
* ```ts
|
|
32
|
+
* const customer = await client.v1.customers.create({
|
|
33
|
+
* name: 'Example, Inc.',
|
|
34
|
+
* customer_billing_provider_configurations: [
|
|
35
|
+
* {
|
|
36
|
+
* billing_provider: 'stripe',
|
|
37
|
+
* delivery_method: 'direct_to_billing_provider',
|
|
38
|
+
* configuration: {
|
|
39
|
+
* stripe_customer_id: 'cus_123',
|
|
40
|
+
* stripe_collection_method: 'charge_automatically',
|
|
41
|
+
* },
|
|
42
|
+
* },
|
|
43
|
+
* ],
|
|
44
|
+
* ingest_aliases: ['team@example.com'],
|
|
45
|
+
* });
|
|
46
|
+
* ```
|
|
29
47
|
*/
|
|
30
48
|
create(body: CustomerCreateParams, options?: Core.RequestOptions): Core.APIPromise<CustomerCreateResponse>;
|
|
31
49
|
/**
|
|
32
50
|
* Get a customer by Metronome ID.
|
|
51
|
+
*
|
|
52
|
+
* @example
|
|
53
|
+
* ```ts
|
|
54
|
+
* const customer = await client.v1.customers.retrieve({
|
|
55
|
+
* customer_id: 'd7abd0cd-4ae9-4db7-8676-e986a4ebd8dc',
|
|
56
|
+
* });
|
|
57
|
+
* ```
|
|
33
58
|
*/
|
|
34
59
|
retrieve(params: CustomerRetrieveParams, options?: Core.RequestOptions): Core.APIPromise<CustomerRetrieveResponse>;
|
|
35
60
|
/**
|
|
36
61
|
* List all customers.
|
|
62
|
+
*
|
|
63
|
+
* @example
|
|
64
|
+
* ```ts
|
|
65
|
+
* // Automatically fetches more pages as needed.
|
|
66
|
+
* for await (const customerDetail of client.v1.customers.list()) {
|
|
67
|
+
* // ...
|
|
68
|
+
* }
|
|
69
|
+
* ```
|
|
37
70
|
*/
|
|
38
71
|
list(query?: CustomerListParams, options?: Core.RequestOptions): Core.PagePromise<CustomerDetailsCursorPage, CustomerDetail>;
|
|
39
72
|
list(options?: Core.RequestOptions): Core.PagePromise<CustomerDetailsCursorPage, CustomerDetail>;
|
|
40
73
|
/**
|
|
41
|
-
* Archive a customer
|
|
74
|
+
* Archive a customer Note: any alerts associated with the customer will not be
|
|
75
|
+
* triggered.
|
|
76
|
+
*
|
|
77
|
+
* @example
|
|
78
|
+
* ```ts
|
|
79
|
+
* const response = await client.v1.customers.archive({
|
|
80
|
+
* id: '8deed800-1b7a-495d-a207-6c52bac54dc9',
|
|
81
|
+
* });
|
|
82
|
+
* ```
|
|
42
83
|
*/
|
|
43
84
|
archive(body: CustomerArchiveParams, options?: Core.RequestOptions): Core.APIPromise<CustomerArchiveResponse>;
|
|
44
85
|
/**
|
|
45
86
|
* Get all billable metrics for a given customer.
|
|
87
|
+
*
|
|
88
|
+
* @example
|
|
89
|
+
* ```ts
|
|
90
|
+
* // Automatically fetches more pages as needed.
|
|
91
|
+
* for await (const customerListBillableMetricsResponse of client.v1.customers.listBillableMetrics(
|
|
92
|
+
* { customer_id: 'd7abd0cd-4ae9-4db7-8676-e986a4ebd8dc' },
|
|
93
|
+
* )) {
|
|
94
|
+
* // ...
|
|
95
|
+
* }
|
|
96
|
+
* ```
|
|
46
97
|
*/
|
|
47
98
|
listBillableMetrics(params: CustomerListBillableMetricsParams, options?: Core.RequestOptions): Core.PagePromise<CustomerListBillableMetricsResponsesCursorPage, CustomerListBillableMetricsResponse>;
|
|
48
99
|
/**
|
|
49
100
|
* Fetch daily pending costs for the specified customer, broken down by credit type
|
|
50
101
|
* and line items. Note: this is not supported for customers whose plan includes a
|
|
51
102
|
* UNIQUE-type billable metric.
|
|
103
|
+
*
|
|
104
|
+
* @example
|
|
105
|
+
* ```ts
|
|
106
|
+
* // Automatically fetches more pages as needed.
|
|
107
|
+
* for await (const customerListCostsResponse of client.v1.customers.listCosts(
|
|
108
|
+
* {
|
|
109
|
+
* customer_id: 'd7abd0cd-4ae9-4db7-8676-e986a4ebd8dc',
|
|
110
|
+
* ending_before: '2019-12-27T18:11:19.117Z',
|
|
111
|
+
* starting_on: '2019-12-27T18:11:19.117Z',
|
|
112
|
+
* },
|
|
113
|
+
* )) {
|
|
114
|
+
* // ...
|
|
115
|
+
* }
|
|
116
|
+
* ```
|
|
52
117
|
*/
|
|
53
118
|
listCosts(params: CustomerListCostsParams, options?: Core.RequestOptions): Core.PagePromise<CustomerListCostsResponsesCursorPage, CustomerListCostsResponse>;
|
|
119
|
+
/**
|
|
120
|
+
* Preview how a set of events will affect a customer's invoice. Generates a draft
|
|
121
|
+
* invoice for a customer using their current contract configuration and the
|
|
122
|
+
* provided events. This is useful for testing how new events will affect the
|
|
123
|
+
* customer's invoice before they are actually processed.
|
|
124
|
+
*
|
|
125
|
+
* @example
|
|
126
|
+
* ```ts
|
|
127
|
+
* const response = await client.v1.customers.previewEvents({
|
|
128
|
+
* customer_id: 'd7abd0cd-4ae9-4db7-8676-e986a4ebd8dc',
|
|
129
|
+
* events: [
|
|
130
|
+
* {
|
|
131
|
+
* event_type: 'heartbeat',
|
|
132
|
+
* timestamp: '2021-01-01T00:00:00Z',
|
|
133
|
+
* properties: { cpu_hours: 100, memory_gb_hours: 200 },
|
|
134
|
+
* },
|
|
135
|
+
* ],
|
|
136
|
+
* });
|
|
137
|
+
* ```
|
|
138
|
+
*/
|
|
139
|
+
previewEvents(params: CustomerPreviewEventsParams, options?: Core.RequestOptions): Core.APIPromise<CustomerPreviewEventsResponse>;
|
|
54
140
|
/**
|
|
55
141
|
* Sets the ingest aliases for a customer. Ingest aliases can be used in the
|
|
56
142
|
* `customer_id` field when sending usage events to Metronome. This call is
|
|
57
143
|
* idempotent. It fully replaces the set of ingest aliases for the given customer.
|
|
144
|
+
*
|
|
145
|
+
* @example
|
|
146
|
+
* ```ts
|
|
147
|
+
* await client.v1.customers.setIngestAliases({
|
|
148
|
+
* customer_id: 'd7abd0cd-4ae9-4db7-8676-e986a4ebd8dc',
|
|
149
|
+
* ingest_aliases: ['team@example.com'],
|
|
150
|
+
* });
|
|
151
|
+
* ```
|
|
58
152
|
*/
|
|
59
153
|
setIngestAliases(params: CustomerSetIngestAliasesParams, options?: Core.RequestOptions): Core.APIPromise<void>;
|
|
60
154
|
/**
|
|
61
155
|
* Updates the specified customer's name.
|
|
156
|
+
*
|
|
157
|
+
* @example
|
|
158
|
+
* ```ts
|
|
159
|
+
* const response = await client.v1.customers.setName({
|
|
160
|
+
* customer_id: 'd7abd0cd-4ae9-4db7-8676-e986a4ebd8dc',
|
|
161
|
+
* name: 'Example, Inc.',
|
|
162
|
+
* });
|
|
163
|
+
* ```
|
|
62
164
|
*/
|
|
63
165
|
setName(params: CustomerSetNameParams, options?: Core.RequestOptions): Core.APIPromise<CustomerSetNameResponse>;
|
|
64
166
|
/**
|
|
65
167
|
* Updates the specified customer's config.
|
|
168
|
+
*
|
|
169
|
+
* @example
|
|
170
|
+
* ```ts
|
|
171
|
+
* await client.v1.customers.updateConfig({
|
|
172
|
+
* customer_id: 'd7abd0cd-4ae9-4db7-8676-e986a4ebd8dc',
|
|
173
|
+
* salesforce_account_id: '0015500001WO1ZiABL',
|
|
174
|
+
* });
|
|
175
|
+
* ```
|
|
66
176
|
*/
|
|
67
177
|
updateConfig(params: CustomerUpdateConfigParams, options?: Core.RequestOptions): Core.APIPromise<void>;
|
|
68
178
|
}
|
|
@@ -88,14 +198,22 @@ export interface Customer {
|
|
|
88
198
|
*/
|
|
89
199
|
ingest_aliases: Array<string>;
|
|
90
200
|
name: string;
|
|
91
|
-
custom_fields?:
|
|
201
|
+
custom_fields?: {
|
|
202
|
+
[key: string]: string;
|
|
203
|
+
};
|
|
92
204
|
}
|
|
93
205
|
export interface CustomerDetail {
|
|
94
206
|
/**
|
|
95
207
|
* the Metronome ID of the customer
|
|
96
208
|
*/
|
|
97
209
|
id: string;
|
|
98
|
-
|
|
210
|
+
/**
|
|
211
|
+
* RFC 3339 timestamp indicating when the customer was created.
|
|
212
|
+
*/
|
|
213
|
+
created_at: string;
|
|
214
|
+
custom_fields: {
|
|
215
|
+
[key: string]: string;
|
|
216
|
+
};
|
|
99
217
|
customer_config: CustomerDetail.CustomerConfig;
|
|
100
218
|
/**
|
|
101
219
|
* (deprecated, use ingest_aliases instead) the first ID (Metronome or ingest
|
|
@@ -168,7 +286,9 @@ export interface CustomerListBillableMetricsResponse {
|
|
|
168
286
|
* provided, the billable metric is not archived.
|
|
169
287
|
*/
|
|
170
288
|
archived_at?: string;
|
|
171
|
-
custom_fields?:
|
|
289
|
+
custom_fields?: {
|
|
290
|
+
[key: string]: string;
|
|
291
|
+
};
|
|
172
292
|
/**
|
|
173
293
|
* An optional filtering rule to match the 'event_type' property of an event.
|
|
174
294
|
*/
|
|
@@ -176,7 +296,9 @@ export interface CustomerListBillableMetricsResponse {
|
|
|
176
296
|
/**
|
|
177
297
|
* (DEPRECATED) use property_filters & event_type_filter instead
|
|
178
298
|
*/
|
|
179
|
-
filter?:
|
|
299
|
+
filter?: {
|
|
300
|
+
[key: string]: unknown;
|
|
301
|
+
};
|
|
180
302
|
/**
|
|
181
303
|
* (DEPRECATED) use group_keys instead
|
|
182
304
|
*/
|
|
@@ -198,7 +320,9 @@ export interface CustomerListBillableMetricsResponse {
|
|
|
198
320
|
sql?: string;
|
|
199
321
|
}
|
|
200
322
|
export interface CustomerListCostsResponse {
|
|
201
|
-
credit_types:
|
|
323
|
+
credit_types: {
|
|
324
|
+
[key: string]: CustomerListCostsResponse.CreditTypes;
|
|
325
|
+
};
|
|
202
326
|
end_timestamp: string;
|
|
203
327
|
start_timestamp: string;
|
|
204
328
|
}
|
|
@@ -217,6 +341,9 @@ export declare namespace CustomerListCostsResponse {
|
|
|
217
341
|
}
|
|
218
342
|
}
|
|
219
343
|
}
|
|
344
|
+
export interface CustomerPreviewEventsResponse {
|
|
345
|
+
data: InvoicesAPI.Invoice;
|
|
346
|
+
}
|
|
220
347
|
export interface CustomerSetNameResponse {
|
|
221
348
|
data: Customer;
|
|
222
349
|
}
|
|
@@ -226,7 +353,9 @@ export interface CustomerCreateParams {
|
|
|
226
353
|
*/
|
|
227
354
|
name: string;
|
|
228
355
|
billing_config?: CustomerCreateParams.BillingConfig;
|
|
229
|
-
custom_fields?:
|
|
356
|
+
custom_fields?: {
|
|
357
|
+
[key: string]: string;
|
|
358
|
+
};
|
|
230
359
|
customer_billing_provider_configurations?: Array<CustomerCreateParams.CustomerBillingProviderConfiguration>;
|
|
231
360
|
/**
|
|
232
361
|
* (deprecated, use ingest_aliases instead) an alias that can be used to refer to
|
|
@@ -261,7 +390,9 @@ export declare namespace CustomerCreateParams {
|
|
|
261
390
|
* object, however, for most billing provider + delivery method combinations, it
|
|
262
391
|
* will not be a valid configuration.
|
|
263
392
|
*/
|
|
264
|
-
configuration?:
|
|
393
|
+
configuration?: {
|
|
394
|
+
[key: string]: unknown;
|
|
395
|
+
};
|
|
265
396
|
/**
|
|
266
397
|
* The method to use for delivering invoices to this customer. If not provided, the
|
|
267
398
|
* `delivery_method_id` must be provided.
|
|
@@ -329,6 +460,52 @@ export interface CustomerListCostsParams extends CursorPageParams {
|
|
|
329
460
|
*/
|
|
330
461
|
starting_on: string;
|
|
331
462
|
}
|
|
463
|
+
export interface CustomerPreviewEventsParams {
|
|
464
|
+
/**
|
|
465
|
+
* Path param:
|
|
466
|
+
*/
|
|
467
|
+
customer_id: string;
|
|
468
|
+
/**
|
|
469
|
+
* Body param:
|
|
470
|
+
*/
|
|
471
|
+
events: Array<CustomerPreviewEventsParams.Event>;
|
|
472
|
+
/**
|
|
473
|
+
* Body param: If set to "replace", the preview will be generated as if those were
|
|
474
|
+
* the only events for the specified customer. If set to "merge", the events will
|
|
475
|
+
* be merged with any existing events for the specified customer. Defaults to
|
|
476
|
+
* "replace".
|
|
477
|
+
*/
|
|
478
|
+
mode?: 'replace' | 'merge';
|
|
479
|
+
/**
|
|
480
|
+
* Body param: If set, all zero quantity line items will be filtered out of the
|
|
481
|
+
* response.
|
|
482
|
+
*/
|
|
483
|
+
skip_zero_qty_line_items?: boolean;
|
|
484
|
+
}
|
|
485
|
+
export declare namespace CustomerPreviewEventsParams {
|
|
486
|
+
interface Event {
|
|
487
|
+
event_type: string;
|
|
488
|
+
/**
|
|
489
|
+
* This has no effect for preview events, but may be set for consistency with Event
|
|
490
|
+
* objects. They will be processed even if they do not match the customer's ID or
|
|
491
|
+
* ingest aliases.
|
|
492
|
+
*/
|
|
493
|
+
customer_id?: string;
|
|
494
|
+
properties?: {
|
|
495
|
+
[key: string]: unknown;
|
|
496
|
+
};
|
|
497
|
+
/**
|
|
498
|
+
* RFC 3339 formatted. If not provided, the current time will be used.
|
|
499
|
+
*/
|
|
500
|
+
timestamp?: string;
|
|
501
|
+
/**
|
|
502
|
+
* This has no effect for preview events, but may be set for consistency with Event
|
|
503
|
+
* objects. Duplicate transaction_ids are NOT filtered out, even within the same
|
|
504
|
+
* request.
|
|
505
|
+
*/
|
|
506
|
+
transaction_id?: string;
|
|
507
|
+
}
|
|
508
|
+
}
|
|
332
509
|
export interface CustomerSetIngestAliasesParams {
|
|
333
510
|
/**
|
|
334
511
|
* Path param:
|
|
@@ -366,7 +543,7 @@ export interface CustomerUpdateConfigParams {
|
|
|
366
543
|
salesforce_account_id?: string | null;
|
|
367
544
|
}
|
|
368
545
|
export declare namespace Customers {
|
|
369
|
-
export { type Customer as Customer, type CustomerDetail as CustomerDetail, type CustomerCreateResponse as CustomerCreateResponse, type CustomerRetrieveResponse as CustomerRetrieveResponse, type CustomerArchiveResponse as CustomerArchiveResponse, type CustomerListBillableMetricsResponse as CustomerListBillableMetricsResponse, type CustomerListCostsResponse as CustomerListCostsResponse, type CustomerSetNameResponse as CustomerSetNameResponse, CustomerDetailsCursorPage as CustomerDetailsCursorPage, CustomerListBillableMetricsResponsesCursorPage as CustomerListBillableMetricsResponsesCursorPage, CustomerListCostsResponsesCursorPage as CustomerListCostsResponsesCursorPage, type CustomerCreateParams as CustomerCreateParams, type CustomerRetrieveParams as CustomerRetrieveParams, type CustomerListParams as CustomerListParams, type CustomerArchiveParams as CustomerArchiveParams, type CustomerListBillableMetricsParams as CustomerListBillableMetricsParams, type CustomerListCostsParams as CustomerListCostsParams, type CustomerSetIngestAliasesParams as CustomerSetIngestAliasesParams, type CustomerSetNameParams as CustomerSetNameParams, type CustomerUpdateConfigParams as CustomerUpdateConfigParams, };
|
|
546
|
+
export { type Customer as Customer, type CustomerDetail as CustomerDetail, type CustomerCreateResponse as CustomerCreateResponse, type CustomerRetrieveResponse as CustomerRetrieveResponse, type CustomerArchiveResponse as CustomerArchiveResponse, type CustomerListBillableMetricsResponse as CustomerListBillableMetricsResponse, type CustomerListCostsResponse as CustomerListCostsResponse, type CustomerPreviewEventsResponse as CustomerPreviewEventsResponse, type CustomerSetNameResponse as CustomerSetNameResponse, CustomerDetailsCursorPage as CustomerDetailsCursorPage, CustomerListBillableMetricsResponsesCursorPage as CustomerListBillableMetricsResponsesCursorPage, CustomerListCostsResponsesCursorPage as CustomerListCostsResponsesCursorPage, type CustomerCreateParams as CustomerCreateParams, type CustomerRetrieveParams as CustomerRetrieveParams, type CustomerListParams as CustomerListParams, type CustomerArchiveParams as CustomerArchiveParams, type CustomerListBillableMetricsParams as CustomerListBillableMetricsParams, type CustomerListCostsParams as CustomerListCostsParams, type CustomerPreviewEventsParams as CustomerPreviewEventsParams, type CustomerSetIngestAliasesParams as CustomerSetIngestAliasesParams, type CustomerSetNameParams as CustomerSetNameParams, type CustomerUpdateConfigParams as CustomerUpdateConfigParams, };
|
|
370
547
|
export { Alerts as Alerts, type CustomerAlert as CustomerAlert, type AlertRetrieveResponse as AlertRetrieveResponse, type AlertListResponse as AlertListResponse, type AlertRetrieveParams as AlertRetrieveParams, type AlertListParams as AlertListParams, type AlertResetParams as AlertResetParams, };
|
|
371
548
|
export { Plans as Plans, type PlanListResponse as PlanListResponse, type PlanAddResponse as PlanAddResponse, type PlanEndResponse as PlanEndResponse, type PlanListPriceAdjustmentsResponse as PlanListPriceAdjustmentsResponse, PlanListResponsesCursorPage as PlanListResponsesCursorPage, PlanListPriceAdjustmentsResponsesCursorPage as PlanListPriceAdjustmentsResponsesCursorPage, type PlanListParams as PlanListParams, type PlanAddParams as PlanAddParams, type PlanEndParams as PlanEndParams, type PlanListPriceAdjustmentsParams as PlanListPriceAdjustmentsParams, };
|
|
372
549
|
export { Invoices as Invoices, type Invoice as Invoice, type InvoiceRetrieveResponse as InvoiceRetrieveResponse, type InvoiceAddChargeResponse as InvoiceAddChargeResponse, type InvoiceListBreakdownsResponse as InvoiceListBreakdownsResponse, InvoicesCursorPage as InvoicesCursorPage, InvoiceListBreakdownsResponsesCursorPage as InvoiceListBreakdownsResponsesCursorPage, type InvoiceRetrieveParams as InvoiceRetrieveParams, type InvoiceListParams as InvoiceListParams, type InvoiceAddChargeParams as InvoiceAddChargeParams, type InvoiceListBreakdownsParams as InvoiceListBreakdownsParams, };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"customers.d.ts","sourceRoot":"","sources":["../../../src/resources/v1/customers/customers.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAEhD,OAAO,KAAK,IAAI,MAAM,eAAe,CAAC;AACtC,OAAO,KAAK,MAAM,MAAM,cAAc,CAAC;AACvC,OAAO,KAAK,SAAS,MAAM,UAAU,CAAC;AACtC,OAAO,EACL,eAAe,EACf,iBAAiB,EACjB,gBAAgB,EAChB,mBAAmB,EACnB,qBAAqB,EACrB,MAAM,EACN,aAAa,EACd,MAAM,UAAU,CAAC;AAClB,OAAO,KAAK,gBAAgB,MAAM,kBAAkB,CAAC;AACrD,OAAO,EACL,aAAa,IAAI,6BAA6B,EAC9C,yBAAyB,EACzB,yBAAyB,EACzB,2BAA2B,EAC3B,6BAA6B,EAC9B,MAAM,kBAAkB,CAAC;AAC1B,OAAO,KAAK,UAAU,MAAM,WAAW,CAAC;AACxC,OAAO,EACL,kBAAkB,EAClB,oBAAoB,EACpB,gBAAgB,EAChB,kBAAkB,EAClB,yBAAyB,EACzB,2BAA2B,EAC3B,OAAO,EACR,MAAM,WAAW,CAAC;AACnB,OAAO,KAAK,UAAU,MAAM,WAAW,CAAC;AACxC,OAAO,EACL,kBAAkB,EAClB,oBAAoB,EACpB,gBAAgB,EAChB,kBAAkB,EAClB,yBAAyB,EACzB,2BAA2B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