@stigg/typescript 0.1.0-alpha.21 → 0.1.0-alpha.23
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 +37 -0
- package/package.json +1 -1
- package/resources/v1/addons/addons.d.mts +493 -970
- package/resources/v1/addons/addons.d.mts.map +1 -1
- package/resources/v1/addons/addons.d.ts +493 -970
- package/resources/v1/addons/addons.d.ts.map +1 -1
- package/resources/v1/addons/addons.js +0 -6
- package/resources/v1/addons/addons.js.map +1 -1
- package/resources/v1/addons/addons.mjs +0 -6
- package/resources/v1/addons/addons.mjs.map +1 -1
- package/resources/v1/addons/entitlements.d.mts +28 -0
- package/resources/v1/addons/entitlements.d.mts.map +1 -1
- package/resources/v1/addons/entitlements.d.ts +28 -0
- package/resources/v1/addons/entitlements.d.ts.map +1 -1
- package/resources/v1/addons/index.d.mts +1 -1
- package/resources/v1/addons/index.d.mts.map +1 -1
- package/resources/v1/addons/index.d.ts +1 -1
- package/resources/v1/addons/index.d.ts.map +1 -1
- package/resources/v1/addons/index.js.map +1 -1
- package/resources/v1/addons/index.mjs.map +1 -1
- package/resources/v1/coupons.d.mts +3 -3
- package/resources/v1/coupons.d.ts +3 -3
- package/resources/v1/customers/customers.d.mts +935 -5
- package/resources/v1/customers/customers.d.mts.map +1 -1
- package/resources/v1/customers/customers.d.ts +935 -5
- package/resources/v1/customers/customers.d.ts.map +1 -1
- package/resources/v1/customers/customers.js +7 -0
- package/resources/v1/customers/customers.js.map +1 -1
- package/resources/v1/customers/customers.mjs +7 -0
- 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/events/credits/credits.d.mts +1 -1
- package/resources/v1/events/credits/credits.d.mts.map +1 -1
- package/resources/v1/events/credits/credits.d.ts +1 -1
- package/resources/v1/events/credits/credits.d.ts.map +1 -1
- package/resources/v1/events/credits/credits.js.map +1 -1
- package/resources/v1/events/credits/credits.mjs.map +1 -1
- package/resources/v1/events/credits/grants.d.mts +1 -1
- package/resources/v1/events/credits/grants.d.ts +1 -1
- package/resources/v1/features.d.mts +9 -0
- package/resources/v1/features.d.mts.map +1 -1
- package/resources/v1/features.d.ts +9 -0
- package/resources/v1/features.d.ts.map +1 -1
- package/resources/v1/index.d.mts +3 -3
- package/resources/v1/index.d.mts.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/plans/entitlements.d.mts +28 -0
- package/resources/v1/plans/entitlements.d.mts.map +1 -1
- package/resources/v1/plans/entitlements.d.ts +28 -0
- package/resources/v1/plans/entitlements.d.ts.map +1 -1
- package/resources/v1/plans/index.d.mts +1 -1
- package/resources/v1/plans/index.d.mts.map +1 -1
- package/resources/v1/plans/index.d.ts +1 -1
- package/resources/v1/plans/index.d.ts.map +1 -1
- package/resources/v1/plans/index.js.map +1 -1
- package/resources/v1/plans/index.mjs.map +1 -1
- package/resources/v1/plans/plans.d.mts +392 -391
- package/resources/v1/plans/plans.d.mts.map +1 -1
- package/resources/v1/plans/plans.d.ts +392 -391
- package/resources/v1/plans/plans.d.ts.map +1 -1
- package/resources/v1/plans/plans.js +0 -7
- package/resources/v1/plans/plans.js.map +1 -1
- package/resources/v1/plans/plans.mjs +0 -7
- package/resources/v1/plans/plans.mjs.map +1 -1
- package/resources/v1/products.d.mts +9 -5
- package/resources/v1/products.d.mts.map +1 -1
- package/resources/v1/products.d.ts +9 -5
- package/resources/v1/products.d.ts.map +1 -1
- package/resources/v1/subscriptions/subscriptions.d.mts +31 -21
- package/resources/v1/subscriptions/subscriptions.d.mts.map +1 -1
- package/resources/v1/subscriptions/subscriptions.d.ts +31 -21
- package/resources/v1/subscriptions/subscriptions.d.ts.map +1 -1
- package/resources/v1/subscriptions/subscriptions.js.map +1 -1
- package/resources/v1/subscriptions/subscriptions.mjs.map +1 -1
- package/resources/v1/usage.d.mts +1 -1
- package/resources/v1/usage.d.ts +1 -1
- package/resources/v1/v1.d.mts +6 -6
- package/resources/v1/v1.d.mts.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/src/resources/v1/addons/addons.ts +1111 -2508
- package/src/resources/v1/addons/entitlements.ts +33 -0
- package/src/resources/v1/addons/index.ts +0 -3
- package/src/resources/v1/coupons.ts +3 -3
- package/src/resources/v1/customers/customers.ts +2064 -4
- package/src/resources/v1/customers/index.ts +2 -0
- package/src/resources/v1/events/credits/credits.ts +3 -1
- package/src/resources/v1/events/credits/grants.ts +1 -1
- package/src/resources/v1/features.ts +9 -0
- package/src/resources/v1/index.ts +2 -4
- package/src/resources/v1/plans/entitlements.ts +33 -0
- package/src/resources/v1/plans/index.ts +0 -1
- package/src/resources/v1/plans/plans.ts +924 -930
- package/src/resources/v1/products.ts +9 -5
- package/src/resources/v1/subscriptions/subscriptions.ts +28 -22
- package/src/resources/v1/usage.ts +1 -1
- package/src/resources/v1/v1.ts +4 -8
- 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
|
@@ -42,6 +42,11 @@ export declare class Customers extends APIResource {
|
|
|
42
42
|
* single operation.
|
|
43
43
|
*/
|
|
44
44
|
provision(body: CustomerProvisionParams, options?: RequestOptions): APIPromise<CustomerResponse>;
|
|
45
|
+
/**
|
|
46
|
+
* Retrieves the effective entitlements for a customer or resource, including
|
|
47
|
+
* feature and credit entitlements.
|
|
48
|
+
*/
|
|
49
|
+
retrieveEntitlements(id: string, query?: CustomerRetrieveEntitlementsParams | null | undefined, options?: RequestOptions): APIPromise<CustomerRetrieveEntitlementsResponse>;
|
|
45
50
|
/**
|
|
46
51
|
* Restores an archived customer, allowing them to create new subscriptions again.
|
|
47
52
|
*/
|
|
@@ -79,6 +84,10 @@ export declare namespace CustomerResponse {
|
|
|
79
84
|
* Timestamp of when the record was last updated
|
|
80
85
|
*/
|
|
81
86
|
updatedAt: string;
|
|
87
|
+
/**
|
|
88
|
+
* The billing currency of the customer
|
|
89
|
+
*/
|
|
90
|
+
billingCurrency?: 'usd' | 'aed' | 'all' | 'amd' | 'ang' | 'aud' | 'awg' | 'azn' | 'bam' | 'bbd' | 'bdt' | 'bgn' | 'bif' | 'bmd' | 'bnd' | 'bsd' | 'bwp' | 'byn' | 'bzd' | 'brl' | 'cad' | 'cdf' | 'chf' | 'cny' | 'czk' | 'dkk' | 'dop' | 'dzd' | 'egp' | 'etb' | 'eur' | 'fjd' | 'gbp' | 'gel' | 'gip' | 'gmd' | 'gyd' | 'hkd' | 'hrk' | 'htg' | 'idr' | 'ils' | 'inr' | 'isk' | 'jmd' | 'jpy' | 'kes' | 'kgs' | 'khr' | 'kmf' | 'krw' | 'kyd' | 'kzt' | 'lbp' | 'lkr' | 'lrd' | 'lsl' | 'mad' | 'mdl' | 'mga' | 'mkd' | 'mmk' | 'mnt' | 'mop' | 'mro' | 'mvr' | 'mwk' | 'mxn' | 'myr' | 'mzn' | 'nad' | 'ngn' | 'nok' | 'npr' | 'nzd' | 'pgk' | 'php' | 'pkr' | 'pln' | 'qar' | 'ron' | 'rsd' | 'rub' | 'rwf' | 'sar' | 'sbd' | 'scr' | 'sek' | 'sgd' | 'sle' | 'sll' | 'sos' | 'szl' | 'thb' | 'tjs' | 'top' | 'try' | 'ttd' | 'tzs' | 'uah' | 'uzs' | 'vnd' | 'vuv' | 'wst' | 'xaf' | 'xcd' | 'yer' | 'zar' | 'zmw' | 'clp' | 'djf' | 'gnf' | 'ugx' | 'pyg' | 'xof' | 'xpf' | null;
|
|
82
91
|
/**
|
|
83
92
|
* The unique identifier for the entity in the billing provider
|
|
84
93
|
*/
|
|
@@ -86,7 +95,7 @@ export declare namespace CustomerResponse {
|
|
|
86
95
|
/**
|
|
87
96
|
* Customer level coupon
|
|
88
97
|
*/
|
|
89
|
-
couponId?: string | null;
|
|
98
|
+
couponId?: (string & {}) | '' | null;
|
|
90
99
|
/**
|
|
91
100
|
* The default payment method details
|
|
92
101
|
*/
|
|
@@ -99,6 +108,10 @@ export declare namespace CustomerResponse {
|
|
|
99
108
|
* List of integrations
|
|
100
109
|
*/
|
|
101
110
|
integrations?: Array<Data.Integration>;
|
|
111
|
+
/**
|
|
112
|
+
* Language to use for this customer
|
|
113
|
+
*/
|
|
114
|
+
language?: string | null;
|
|
102
115
|
/**
|
|
103
116
|
* Additional metadata
|
|
104
117
|
*/
|
|
@@ -109,6 +122,14 @@ export declare namespace CustomerResponse {
|
|
|
109
122
|
* The name of the customer
|
|
110
123
|
*/
|
|
111
124
|
name?: string | null;
|
|
125
|
+
/**
|
|
126
|
+
* Vendor-specific billing passthrough fields.
|
|
127
|
+
*/
|
|
128
|
+
passthrough?: Data.Passthrough;
|
|
129
|
+
/**
|
|
130
|
+
* Timezone to use for this customer
|
|
131
|
+
*/
|
|
132
|
+
timezone?: string | null;
|
|
112
133
|
}
|
|
113
134
|
namespace Data {
|
|
114
135
|
/**
|
|
@@ -153,6 +174,185 @@ export declare namespace CustomerResponse {
|
|
|
153
174
|
*/
|
|
154
175
|
vendorIdentifier: 'AUTH0' | 'ZUORA' | 'STRIPE' | 'HUBSPOT' | 'AWS_MARKETPLACE' | 'SNOWFLAKE' | 'SALESFORCE' | 'BIG_QUERY' | 'OPEN_FGA' | 'APP_STORE';
|
|
155
176
|
}
|
|
177
|
+
/**
|
|
178
|
+
* Vendor-specific billing passthrough fields.
|
|
179
|
+
*/
|
|
180
|
+
interface Passthrough {
|
|
181
|
+
/**
|
|
182
|
+
* Stripe-specific billing fields for the customer.
|
|
183
|
+
*/
|
|
184
|
+
stripe?: Passthrough.Stripe;
|
|
185
|
+
/**
|
|
186
|
+
* Zuora-specific billing fields for the customer.
|
|
187
|
+
*/
|
|
188
|
+
zuora?: Passthrough.Zuora;
|
|
189
|
+
}
|
|
190
|
+
namespace Passthrough {
|
|
191
|
+
/**
|
|
192
|
+
* Stripe-specific billing fields for the customer.
|
|
193
|
+
*/
|
|
194
|
+
interface Stripe {
|
|
195
|
+
/**
|
|
196
|
+
* Physical address
|
|
197
|
+
*/
|
|
198
|
+
billingAddress?: Stripe.BillingAddress;
|
|
199
|
+
/**
|
|
200
|
+
* Customer name
|
|
201
|
+
*/
|
|
202
|
+
customerName?: string;
|
|
203
|
+
/**
|
|
204
|
+
* Invoice custom fields
|
|
205
|
+
*/
|
|
206
|
+
invoiceCustomFields?: {
|
|
207
|
+
[key: string]: string;
|
|
208
|
+
};
|
|
209
|
+
/**
|
|
210
|
+
* Additional metadata
|
|
211
|
+
*/
|
|
212
|
+
metadata?: {
|
|
213
|
+
[key: string]: string;
|
|
214
|
+
};
|
|
215
|
+
/**
|
|
216
|
+
* Billing provider payment method id, attached to this customer
|
|
217
|
+
*/
|
|
218
|
+
paymentMethodId?: string;
|
|
219
|
+
/**
|
|
220
|
+
* Physical address
|
|
221
|
+
*/
|
|
222
|
+
shippingAddress?: Stripe.ShippingAddress;
|
|
223
|
+
/**
|
|
224
|
+
* Tax IDs
|
|
225
|
+
*/
|
|
226
|
+
taxIds?: Array<Stripe.TaxID>;
|
|
227
|
+
}
|
|
228
|
+
namespace Stripe {
|
|
229
|
+
/**
|
|
230
|
+
* Physical address
|
|
231
|
+
*/
|
|
232
|
+
interface BillingAddress {
|
|
233
|
+
/**
|
|
234
|
+
* City name
|
|
235
|
+
*/
|
|
236
|
+
city?: string;
|
|
237
|
+
/**
|
|
238
|
+
* Country code or name
|
|
239
|
+
*/
|
|
240
|
+
country?: string;
|
|
241
|
+
/**
|
|
242
|
+
* Street address line 1
|
|
243
|
+
*/
|
|
244
|
+
line1?: string;
|
|
245
|
+
/**
|
|
246
|
+
* Street address line 2
|
|
247
|
+
*/
|
|
248
|
+
line2?: string;
|
|
249
|
+
/**
|
|
250
|
+
* Postal or ZIP code
|
|
251
|
+
*/
|
|
252
|
+
postalCode?: string;
|
|
253
|
+
/**
|
|
254
|
+
* State or province
|
|
255
|
+
*/
|
|
256
|
+
state?: string;
|
|
257
|
+
}
|
|
258
|
+
/**
|
|
259
|
+
* Physical address
|
|
260
|
+
*/
|
|
261
|
+
interface ShippingAddress {
|
|
262
|
+
/**
|
|
263
|
+
* City name
|
|
264
|
+
*/
|
|
265
|
+
city?: string;
|
|
266
|
+
/**
|
|
267
|
+
* Country code or name
|
|
268
|
+
*/
|
|
269
|
+
country?: string;
|
|
270
|
+
/**
|
|
271
|
+
* Street address line 1
|
|
272
|
+
*/
|
|
273
|
+
line1?: string;
|
|
274
|
+
/**
|
|
275
|
+
* Street address line 2
|
|
276
|
+
*/
|
|
277
|
+
line2?: string;
|
|
278
|
+
/**
|
|
279
|
+
* Postal or ZIP code
|
|
280
|
+
*/
|
|
281
|
+
postalCode?: string;
|
|
282
|
+
/**
|
|
283
|
+
* State or province
|
|
284
|
+
*/
|
|
285
|
+
state?: string;
|
|
286
|
+
}
|
|
287
|
+
/**
|
|
288
|
+
* Tax identifier with type and value for customer tax exemptions.
|
|
289
|
+
*/
|
|
290
|
+
interface TaxID {
|
|
291
|
+
/**
|
|
292
|
+
* The type of tax exemption identifier, such as VAT.
|
|
293
|
+
*/
|
|
294
|
+
type: string;
|
|
295
|
+
/**
|
|
296
|
+
* The actual tax identifier value
|
|
297
|
+
*/
|
|
298
|
+
value: string;
|
|
299
|
+
}
|
|
300
|
+
}
|
|
301
|
+
/**
|
|
302
|
+
* Zuora-specific billing fields for the customer.
|
|
303
|
+
*/
|
|
304
|
+
interface Zuora {
|
|
305
|
+
/**
|
|
306
|
+
* Physical address
|
|
307
|
+
*/
|
|
308
|
+
billingAddress?: Zuora.BillingAddress;
|
|
309
|
+
/**
|
|
310
|
+
* Customers selected currency
|
|
311
|
+
*/
|
|
312
|
+
currency?: 'usd' | 'aed' | 'all' | 'amd' | 'ang' | 'aud' | 'awg' | 'azn' | 'bam' | 'bbd' | 'bdt' | 'bgn' | 'bif' | 'bmd' | 'bnd' | 'bsd' | 'bwp' | 'byn' | 'bzd' | 'brl' | 'cad' | 'cdf' | 'chf' | 'cny' | 'czk' | 'dkk' | 'dop' | 'dzd' | 'egp' | 'etb' | 'eur' | 'fjd' | 'gbp' | 'gel' | 'gip' | 'gmd' | 'gyd' | 'hkd' | 'hrk' | 'htg' | 'idr' | 'ils' | 'inr' | 'isk' | 'jmd' | 'jpy' | 'kes' | 'kgs' | 'khr' | 'kmf' | 'krw' | 'kyd' | 'kzt' | 'lbp' | 'lkr' | 'lrd' | 'lsl' | 'mad' | 'mdl' | 'mga' | 'mkd' | 'mmk' | 'mnt' | 'mop' | 'mro' | 'mvr' | 'mwk' | 'mxn' | 'myr' | 'mzn' | 'nad' | 'ngn' | 'nok' | 'npr' | 'nzd' | 'pgk' | 'php' | 'pkr' | 'pln' | 'qar' | 'ron' | 'rsd' | 'rub' | 'rwf' | 'sar' | 'sbd' | 'scr' | 'sek' | 'sgd' | 'sle' | 'sll' | 'sos' | 'szl' | 'thb' | 'tjs' | 'top' | 'try' | 'ttd' | 'tzs' | 'uah' | 'uzs' | 'vnd' | 'vuv' | 'wst' | 'xaf' | 'xcd' | 'yer' | 'zar' | 'zmw' | 'clp' | 'djf' | 'gnf' | 'ugx' | 'pyg' | 'xof' | 'xpf';
|
|
313
|
+
/**
|
|
314
|
+
* Additional metadata
|
|
315
|
+
*/
|
|
316
|
+
metadata?: {
|
|
317
|
+
[key: string]: string;
|
|
318
|
+
};
|
|
319
|
+
/**
|
|
320
|
+
* Billing provider payment method id, attached to this customer
|
|
321
|
+
*/
|
|
322
|
+
paymentMethodId?: string;
|
|
323
|
+
}
|
|
324
|
+
namespace Zuora {
|
|
325
|
+
/**
|
|
326
|
+
* Physical address
|
|
327
|
+
*/
|
|
328
|
+
interface BillingAddress {
|
|
329
|
+
/**
|
|
330
|
+
* City name
|
|
331
|
+
*/
|
|
332
|
+
city?: string;
|
|
333
|
+
/**
|
|
334
|
+
* Country code or name
|
|
335
|
+
*/
|
|
336
|
+
country?: string;
|
|
337
|
+
/**
|
|
338
|
+
* Street address line 1
|
|
339
|
+
*/
|
|
340
|
+
line1?: string;
|
|
341
|
+
/**
|
|
342
|
+
* Street address line 2
|
|
343
|
+
*/
|
|
344
|
+
line2?: string;
|
|
345
|
+
/**
|
|
346
|
+
* Postal or ZIP code
|
|
347
|
+
*/
|
|
348
|
+
postalCode?: string;
|
|
349
|
+
/**
|
|
350
|
+
* State or province
|
|
351
|
+
*/
|
|
352
|
+
state?: string;
|
|
353
|
+
}
|
|
354
|
+
}
|
|
355
|
+
}
|
|
156
356
|
}
|
|
157
357
|
}
|
|
158
358
|
/**
|
|
@@ -175,6 +375,10 @@ export interface CustomerListResponse {
|
|
|
175
375
|
* Timestamp of when the record was last updated
|
|
176
376
|
*/
|
|
177
377
|
updatedAt: string;
|
|
378
|
+
/**
|
|
379
|
+
* The billing currency of the customer
|
|
380
|
+
*/
|
|
381
|
+
billingCurrency?: 'usd' | 'aed' | 'all' | 'amd' | 'ang' | 'aud' | 'awg' | 'azn' | 'bam' | 'bbd' | 'bdt' | 'bgn' | 'bif' | 'bmd' | 'bnd' | 'bsd' | 'bwp' | 'byn' | 'bzd' | 'brl' | 'cad' | 'cdf' | 'chf' | 'cny' | 'czk' | 'dkk' | 'dop' | 'dzd' | 'egp' | 'etb' | 'eur' | 'fjd' | 'gbp' | 'gel' | 'gip' | 'gmd' | 'gyd' | 'hkd' | 'hrk' | 'htg' | 'idr' | 'ils' | 'inr' | 'isk' | 'jmd' | 'jpy' | 'kes' | 'kgs' | 'khr' | 'kmf' | 'krw' | 'kyd' | 'kzt' | 'lbp' | 'lkr' | 'lrd' | 'lsl' | 'mad' | 'mdl' | 'mga' | 'mkd' | 'mmk' | 'mnt' | 'mop' | 'mro' | 'mvr' | 'mwk' | 'mxn' | 'myr' | 'mzn' | 'nad' | 'ngn' | 'nok' | 'npr' | 'nzd' | 'pgk' | 'php' | 'pkr' | 'pln' | 'qar' | 'ron' | 'rsd' | 'rub' | 'rwf' | 'sar' | 'sbd' | 'scr' | 'sek' | 'sgd' | 'sle' | 'sll' | 'sos' | 'szl' | 'thb' | 'tjs' | 'top' | 'try' | 'ttd' | 'tzs' | 'uah' | 'uzs' | 'vnd' | 'vuv' | 'wst' | 'xaf' | 'xcd' | 'yer' | 'zar' | 'zmw' | 'clp' | 'djf' | 'gnf' | 'ugx' | 'pyg' | 'xof' | 'xpf' | null;
|
|
178
382
|
/**
|
|
179
383
|
* The unique identifier for the entity in the billing provider
|
|
180
384
|
*/
|
|
@@ -182,7 +386,7 @@ export interface CustomerListResponse {
|
|
|
182
386
|
/**
|
|
183
387
|
* Customer level coupon
|
|
184
388
|
*/
|
|
185
|
-
couponId?: string | null;
|
|
389
|
+
couponId?: (string & {}) | '' | null;
|
|
186
390
|
/**
|
|
187
391
|
* The default payment method details
|
|
188
392
|
*/
|
|
@@ -195,6 +399,10 @@ export interface CustomerListResponse {
|
|
|
195
399
|
* List of integrations
|
|
196
400
|
*/
|
|
197
401
|
integrations?: Array<CustomerListResponse.Integration>;
|
|
402
|
+
/**
|
|
403
|
+
* Language to use for this customer
|
|
404
|
+
*/
|
|
405
|
+
language?: string | null;
|
|
198
406
|
/**
|
|
199
407
|
* Additional metadata
|
|
200
408
|
*/
|
|
@@ -205,6 +413,14 @@ export interface CustomerListResponse {
|
|
|
205
413
|
* The name of the customer
|
|
206
414
|
*/
|
|
207
415
|
name?: string | null;
|
|
416
|
+
/**
|
|
417
|
+
* Vendor-specific billing passthrough fields.
|
|
418
|
+
*/
|
|
419
|
+
passthrough?: CustomerListResponse.Passthrough;
|
|
420
|
+
/**
|
|
421
|
+
* Timezone to use for this customer
|
|
422
|
+
*/
|
|
423
|
+
timezone?: string | null;
|
|
208
424
|
}
|
|
209
425
|
export declare namespace CustomerListResponse {
|
|
210
426
|
/**
|
|
@@ -249,6 +465,185 @@ export declare namespace CustomerListResponse {
|
|
|
249
465
|
*/
|
|
250
466
|
vendorIdentifier: 'AUTH0' | 'ZUORA' | 'STRIPE' | 'HUBSPOT' | 'AWS_MARKETPLACE' | 'SNOWFLAKE' | 'SALESFORCE' | 'BIG_QUERY' | 'OPEN_FGA' | 'APP_STORE';
|
|
251
467
|
}
|
|
468
|
+
/**
|
|
469
|
+
* Vendor-specific billing passthrough fields.
|
|
470
|
+
*/
|
|
471
|
+
interface Passthrough {
|
|
472
|
+
/**
|
|
473
|
+
* Stripe-specific billing fields for the customer.
|
|
474
|
+
*/
|
|
475
|
+
stripe?: Passthrough.Stripe;
|
|
476
|
+
/**
|
|
477
|
+
* Zuora-specific billing fields for the customer.
|
|
478
|
+
*/
|
|
479
|
+
zuora?: Passthrough.Zuora;
|
|
480
|
+
}
|
|
481
|
+
namespace Passthrough {
|
|
482
|
+
/**
|
|
483
|
+
* Stripe-specific billing fields for the customer.
|
|
484
|
+
*/
|
|
485
|
+
interface Stripe {
|
|
486
|
+
/**
|
|
487
|
+
* Physical address
|
|
488
|
+
*/
|
|
489
|
+
billingAddress?: Stripe.BillingAddress;
|
|
490
|
+
/**
|
|
491
|
+
* Customer name
|
|
492
|
+
*/
|
|
493
|
+
customerName?: string;
|
|
494
|
+
/**
|
|
495
|
+
* Invoice custom fields
|
|
496
|
+
*/
|
|
497
|
+
invoiceCustomFields?: {
|
|
498
|
+
[key: string]: string;
|
|
499
|
+
};
|
|
500
|
+
/**
|
|
501
|
+
* Additional metadata
|
|
502
|
+
*/
|
|
503
|
+
metadata?: {
|
|
504
|
+
[key: string]: string;
|
|
505
|
+
};
|
|
506
|
+
/**
|
|
507
|
+
* Billing provider payment method id, attached to this customer
|
|
508
|
+
*/
|
|
509
|
+
paymentMethodId?: string;
|
|
510
|
+
/**
|
|
511
|
+
* Physical address
|
|
512
|
+
*/
|
|
513
|
+
shippingAddress?: Stripe.ShippingAddress;
|
|
514
|
+
/**
|
|
515
|
+
* Tax IDs
|
|
516
|
+
*/
|
|
517
|
+
taxIds?: Array<Stripe.TaxID>;
|
|
518
|
+
}
|
|
519
|
+
namespace Stripe {
|
|
520
|
+
/**
|
|
521
|
+
* Physical address
|
|
522
|
+
*/
|
|
523
|
+
interface BillingAddress {
|
|
524
|
+
/**
|
|
525
|
+
* City name
|
|
526
|
+
*/
|
|
527
|
+
city?: string;
|
|
528
|
+
/**
|
|
529
|
+
* Country code or name
|
|
530
|
+
*/
|
|
531
|
+
country?: string;
|
|
532
|
+
/**
|
|
533
|
+
* Street address line 1
|
|
534
|
+
*/
|
|
535
|
+
line1?: string;
|
|
536
|
+
/**
|
|
537
|
+
* Street address line 2
|
|
538
|
+
*/
|
|
539
|
+
line2?: string;
|
|
540
|
+
/**
|
|
541
|
+
* Postal or ZIP code
|
|
542
|
+
*/
|
|
543
|
+
postalCode?: string;
|
|
544
|
+
/**
|
|
545
|
+
* State or province
|
|
546
|
+
*/
|
|
547
|
+
state?: string;
|
|
548
|
+
}
|
|
549
|
+
/**
|
|
550
|
+
* Physical address
|
|
551
|
+
*/
|
|
552
|
+
interface ShippingAddress {
|
|
553
|
+
/**
|
|
554
|
+
* City name
|
|
555
|
+
*/
|
|
556
|
+
city?: string;
|
|
557
|
+
/**
|
|
558
|
+
* Country code or name
|
|
559
|
+
*/
|
|
560
|
+
country?: string;
|
|
561
|
+
/**
|
|
562
|
+
* Street address line 1
|
|
563
|
+
*/
|
|
564
|
+
line1?: string;
|
|
565
|
+
/**
|
|
566
|
+
* Street address line 2
|
|
567
|
+
*/
|
|
568
|
+
line2?: string;
|
|
569
|
+
/**
|
|
570
|
+
* Postal or ZIP code
|
|
571
|
+
*/
|
|
572
|
+
postalCode?: string;
|
|
573
|
+
/**
|
|
574
|
+
* State or province
|
|
575
|
+
*/
|
|
576
|
+
state?: string;
|
|
577
|
+
}
|
|
578
|
+
/**
|
|
579
|
+
* Tax identifier with type and value for customer tax exemptions.
|
|
580
|
+
*/
|
|
581
|
+
interface TaxID {
|
|
582
|
+
/**
|
|
583
|
+
* The type of tax exemption identifier, such as VAT.
|
|
584
|
+
*/
|
|
585
|
+
type: string;
|
|
586
|
+
/**
|
|
587
|
+
* The actual tax identifier value
|
|
588
|
+
*/
|
|
589
|
+
value: string;
|
|
590
|
+
}
|
|
591
|
+
}
|
|
592
|
+
/**
|
|
593
|
+
* Zuora-specific billing fields for the customer.
|
|
594
|
+
*/
|
|
595
|
+
interface Zuora {
|
|
596
|
+
/**
|
|
597
|
+
* Physical address
|
|
598
|
+
*/
|
|
599
|
+
billingAddress?: Zuora.BillingAddress;
|
|
600
|
+
/**
|
|
601
|
+
* Customers selected currency
|
|
602
|
+
*/
|
|
603
|
+
currency?: 'usd' | 'aed' | 'all' | 'amd' | 'ang' | 'aud' | 'awg' | 'azn' | 'bam' | 'bbd' | 'bdt' | 'bgn' | 'bif' | 'bmd' | 'bnd' | 'bsd' | 'bwp' | 'byn' | 'bzd' | 'brl' | 'cad' | 'cdf' | 'chf' | 'cny' | 'czk' | 'dkk' | 'dop' | 'dzd' | 'egp' | 'etb' | 'eur' | 'fjd' | 'gbp' | 'gel' | 'gip' | 'gmd' | 'gyd' | 'hkd' | 'hrk' | 'htg' | 'idr' | 'ils' | 'inr' | 'isk' | 'jmd' | 'jpy' | 'kes' | 'kgs' | 'khr' | 'kmf' | 'krw' | 'kyd' | 'kzt' | 'lbp' | 'lkr' | 'lrd' | 'lsl' | 'mad' | 'mdl' | 'mga' | 'mkd' | 'mmk' | 'mnt' | 'mop' | 'mro' | 'mvr' | 'mwk' | 'mxn' | 'myr' | 'mzn' | 'nad' | 'ngn' | 'nok' | 'npr' | 'nzd' | 'pgk' | 'php' | 'pkr' | 'pln' | 'qar' | 'ron' | 'rsd' | 'rub' | 'rwf' | 'sar' | 'sbd' | 'scr' | 'sek' | 'sgd' | 'sle' | 'sll' | 'sos' | 'szl' | 'thb' | 'tjs' | 'top' | 'try' | 'ttd' | 'tzs' | 'uah' | 'uzs' | 'vnd' | 'vuv' | 'wst' | 'xaf' | 'xcd' | 'yer' | 'zar' | 'zmw' | 'clp' | 'djf' | 'gnf' | 'ugx' | 'pyg' | 'xof' | 'xpf';
|
|
604
|
+
/**
|
|
605
|
+
* Additional metadata
|
|
606
|
+
*/
|
|
607
|
+
metadata?: {
|
|
608
|
+
[key: string]: string;
|
|
609
|
+
};
|
|
610
|
+
/**
|
|
611
|
+
* Billing provider payment method id, attached to this customer
|
|
612
|
+
*/
|
|
613
|
+
paymentMethodId?: string;
|
|
614
|
+
}
|
|
615
|
+
namespace Zuora {
|
|
616
|
+
/**
|
|
617
|
+
* Physical address
|
|
618
|
+
*/
|
|
619
|
+
interface BillingAddress {
|
|
620
|
+
/**
|
|
621
|
+
* City name
|
|
622
|
+
*/
|
|
623
|
+
city?: string;
|
|
624
|
+
/**
|
|
625
|
+
* Country code or name
|
|
626
|
+
*/
|
|
627
|
+
country?: string;
|
|
628
|
+
/**
|
|
629
|
+
* Street address line 1
|
|
630
|
+
*/
|
|
631
|
+
line1?: string;
|
|
632
|
+
/**
|
|
633
|
+
* Street address line 2
|
|
634
|
+
*/
|
|
635
|
+
line2?: string;
|
|
636
|
+
/**
|
|
637
|
+
* Postal or ZIP code
|
|
638
|
+
*/
|
|
639
|
+
postalCode?: string;
|
|
640
|
+
/**
|
|
641
|
+
* State or province
|
|
642
|
+
*/
|
|
643
|
+
state?: string;
|
|
644
|
+
}
|
|
645
|
+
}
|
|
646
|
+
}
|
|
252
647
|
}
|
|
253
648
|
/**
|
|
254
649
|
* Response object
|
|
@@ -287,7 +682,150 @@ export interface CustomerListResourcesResponse {
|
|
|
287
682
|
*/
|
|
288
683
|
updatedAt: string;
|
|
289
684
|
}
|
|
685
|
+
/**
|
|
686
|
+
* Response object
|
|
687
|
+
*/
|
|
688
|
+
export interface CustomerRetrieveEntitlementsResponse {
|
|
689
|
+
/**
|
|
690
|
+
* The effective entitlements state for a customer or resource.
|
|
691
|
+
*/
|
|
692
|
+
data: CustomerRetrieveEntitlementsResponse.Data;
|
|
693
|
+
}
|
|
694
|
+
export declare namespace CustomerRetrieveEntitlementsResponse {
|
|
695
|
+
/**
|
|
696
|
+
* The effective entitlements state for a customer or resource.
|
|
697
|
+
*/
|
|
698
|
+
interface Data {
|
|
699
|
+
/**
|
|
700
|
+
* Reason why entitlements access was denied, if applicable
|
|
701
|
+
*/
|
|
702
|
+
accessDeniedReason: 'CustomerNotFound' | 'NoActiveSubscription' | 'CustomerIsArchived' | null;
|
|
703
|
+
/**
|
|
704
|
+
* List of effective feature and credit entitlements
|
|
705
|
+
*/
|
|
706
|
+
entitlements: Array<Data.Feature | Data.Credit>;
|
|
707
|
+
}
|
|
708
|
+
namespace Data {
|
|
709
|
+
interface Feature {
|
|
710
|
+
accessDeniedReason: 'FeatureNotFound' | 'CustomerNotFound' | 'CustomerIsArchived' | 'CustomerResourceNotFound' | 'NoActiveSubscription' | 'NoFeatureEntitlementInSubscription' | 'RequestedUsageExceedingLimit' | 'RequestedValuesMismatch' | 'BudgetExceeded' | 'Unknown' | 'FeatureTypeMismatch' | 'Revoked' | 'InsufficientCredits' | 'EntitlementNotFound' | null;
|
|
711
|
+
isGranted: boolean;
|
|
712
|
+
type: 'FEATURE';
|
|
713
|
+
currentUsage?: number;
|
|
714
|
+
/**
|
|
715
|
+
* Timestamp of the last update to the entitlement grant or configuration.
|
|
716
|
+
*/
|
|
717
|
+
entitlementUpdatedAt?: string;
|
|
718
|
+
feature?: Feature.Feature;
|
|
719
|
+
hasUnlimitedUsage?: boolean;
|
|
720
|
+
resetPeriod?: 'YEAR' | 'MONTH' | 'WEEK' | 'DAY' | 'HOUR' | null;
|
|
721
|
+
usageLimit?: number | null;
|
|
722
|
+
/**
|
|
723
|
+
* The anchor for calculating the usage period for metered entitlements with a
|
|
724
|
+
* reset period configured
|
|
725
|
+
*/
|
|
726
|
+
usagePeriodAnchor?: string;
|
|
727
|
+
/**
|
|
728
|
+
* The end date of the usage period for metered entitlements with a reset period
|
|
729
|
+
* configured
|
|
730
|
+
*/
|
|
731
|
+
usagePeriodEnd?: string;
|
|
732
|
+
/**
|
|
733
|
+
* The start date of the usage period for metered entitlements with a reset period
|
|
734
|
+
* configured
|
|
735
|
+
*/
|
|
736
|
+
usagePeriodStart?: string;
|
|
737
|
+
/**
|
|
738
|
+
* The next time the entitlement should be recalculated
|
|
739
|
+
*/
|
|
740
|
+
validUntil?: string;
|
|
741
|
+
}
|
|
742
|
+
namespace Feature {
|
|
743
|
+
interface Feature {
|
|
744
|
+
/**
|
|
745
|
+
* The unique reference ID of the entitlement.
|
|
746
|
+
*/
|
|
747
|
+
id: string;
|
|
748
|
+
/**
|
|
749
|
+
* The human-readable name of the entitlement, shown in UI elements.
|
|
750
|
+
*/
|
|
751
|
+
displayName: string;
|
|
752
|
+
/**
|
|
753
|
+
* The current status of the feature.
|
|
754
|
+
*/
|
|
755
|
+
featureStatus: 'NEW' | 'SUSPENDED' | 'ACTIVE';
|
|
756
|
+
/**
|
|
757
|
+
* The type of feature associated with the entitlement.
|
|
758
|
+
*/
|
|
759
|
+
featureType: 'BOOLEAN' | 'NUMBER' | 'ENUM';
|
|
760
|
+
}
|
|
761
|
+
}
|
|
762
|
+
interface Credit {
|
|
763
|
+
accessDeniedReason: 'FeatureNotFound' | 'CustomerNotFound' | 'CustomerIsArchived' | 'CustomerResourceNotFound' | 'NoActiveSubscription' | 'NoFeatureEntitlementInSubscription' | 'RequestedUsageExceedingLimit' | 'RequestedValuesMismatch' | 'BudgetExceeded' | 'Unknown' | 'FeatureTypeMismatch' | 'Revoked' | 'InsufficientCredits' | 'EntitlementNotFound' | null;
|
|
764
|
+
/**
|
|
765
|
+
* The currency associated with a credit entitlement.
|
|
766
|
+
*/
|
|
767
|
+
currency: Credit.Currency;
|
|
768
|
+
currentUsage: number;
|
|
769
|
+
isGranted: boolean;
|
|
770
|
+
type: 'CREDIT';
|
|
771
|
+
usageLimit: number;
|
|
772
|
+
/**
|
|
773
|
+
* Timestamp of the last update to the credit usage.
|
|
774
|
+
*/
|
|
775
|
+
usageUpdatedAt: string;
|
|
776
|
+
/**
|
|
777
|
+
* Timestamp of the last update to the entitlement grant or configuration.
|
|
778
|
+
*/
|
|
779
|
+
entitlementUpdatedAt?: string;
|
|
780
|
+
/**
|
|
781
|
+
* The end date of the current billing period for recurring credit grants.
|
|
782
|
+
*/
|
|
783
|
+
usagePeriodEnd?: string;
|
|
784
|
+
/**
|
|
785
|
+
* The next time the entitlement should be recalculated
|
|
786
|
+
*/
|
|
787
|
+
validUntil?: string;
|
|
788
|
+
}
|
|
789
|
+
namespace Credit {
|
|
790
|
+
/**
|
|
791
|
+
* The currency associated with a credit entitlement.
|
|
792
|
+
*/
|
|
793
|
+
interface Currency {
|
|
794
|
+
/**
|
|
795
|
+
* The unique identifier of the custom currency.
|
|
796
|
+
*/
|
|
797
|
+
currencyId: string;
|
|
798
|
+
/**
|
|
799
|
+
* The display name of the currency.
|
|
800
|
+
*/
|
|
801
|
+
displayName: string;
|
|
802
|
+
/**
|
|
803
|
+
* A description of the currency.
|
|
804
|
+
*/
|
|
805
|
+
description?: string | null;
|
|
806
|
+
/**
|
|
807
|
+
* Additional metadata associated with the currency.
|
|
808
|
+
*/
|
|
809
|
+
metadata?: {
|
|
810
|
+
[key: string]: string;
|
|
811
|
+
} | null;
|
|
812
|
+
/**
|
|
813
|
+
* The plural form of the currency unit.
|
|
814
|
+
*/
|
|
815
|
+
unitPlural?: string | null;
|
|
816
|
+
/**
|
|
817
|
+
* The singular form of the currency unit.
|
|
818
|
+
*/
|
|
819
|
+
unitSingular?: string | null;
|
|
820
|
+
}
|
|
821
|
+
}
|
|
822
|
+
}
|
|
823
|
+
}
|
|
290
824
|
export interface CustomerUpdateParams {
|
|
825
|
+
/**
|
|
826
|
+
* The billing currency of the customer
|
|
827
|
+
*/
|
|
828
|
+
billingCurrency?: 'usd' | 'aed' | 'all' | 'amd' | 'ang' | 'aud' | 'awg' | 'azn' | 'bam' | 'bbd' | 'bdt' | 'bgn' | 'bif' | 'bmd' | 'bnd' | 'bsd' | 'bwp' | 'byn' | 'bzd' | 'brl' | 'cad' | 'cdf' | 'chf' | 'cny' | 'czk' | 'dkk' | 'dop' | 'dzd' | 'egp' | 'etb' | 'eur' | 'fjd' | 'gbp' | 'gel' | 'gip' | 'gmd' | 'gyd' | 'hkd' | 'hrk' | 'htg' | 'idr' | 'ils' | 'inr' | 'isk' | 'jmd' | 'jpy' | 'kes' | 'kgs' | 'khr' | 'kmf' | 'krw' | 'kyd' | 'kzt' | 'lbp' | 'lkr' | 'lrd' | 'lsl' | 'mad' | 'mdl' | 'mga' | 'mkd' | 'mmk' | 'mnt' | 'mop' | 'mro' | 'mvr' | 'mwk' | 'mxn' | 'myr' | 'mzn' | 'nad' | 'ngn' | 'nok' | 'npr' | 'nzd' | 'pgk' | 'php' | 'pkr' | 'pln' | 'qar' | 'ron' | 'rsd' | 'rub' | 'rwf' | 'sar' | 'sbd' | 'scr' | 'sek' | 'sgd' | 'sle' | 'sll' | 'sos' | 'szl' | 'thb' | 'tjs' | 'top' | 'try' | 'ttd' | 'tzs' | 'uah' | 'uzs' | 'vnd' | 'vuv' | 'wst' | 'xaf' | 'xcd' | 'yer' | 'zar' | 'zmw' | 'clp' | 'djf' | 'gnf' | 'ugx' | 'pyg' | 'xof' | 'xpf' | null;
|
|
291
829
|
/**
|
|
292
830
|
* The unique identifier for the entity in the billing provider
|
|
293
831
|
*/
|
|
@@ -295,7 +833,7 @@ export interface CustomerUpdateParams {
|
|
|
295
833
|
/**
|
|
296
834
|
* Customer level coupon
|
|
297
835
|
*/
|
|
298
|
-
couponId?: string | null;
|
|
836
|
+
couponId?: (string & {}) | '' | null;
|
|
299
837
|
/**
|
|
300
838
|
* The email of the customer
|
|
301
839
|
*/
|
|
@@ -304,6 +842,10 @@ export interface CustomerUpdateParams {
|
|
|
304
842
|
* List of integrations
|
|
305
843
|
*/
|
|
306
844
|
integrations?: Array<CustomerUpdateParams.Integration>;
|
|
845
|
+
/**
|
|
846
|
+
* Language to use for this customer
|
|
847
|
+
*/
|
|
848
|
+
language?: string | null;
|
|
307
849
|
/**
|
|
308
850
|
* Additional metadata
|
|
309
851
|
*/
|
|
@@ -314,6 +856,14 @@ export interface CustomerUpdateParams {
|
|
|
314
856
|
* The name of the customer
|
|
315
857
|
*/
|
|
316
858
|
name?: string | null;
|
|
859
|
+
/**
|
|
860
|
+
* Vendor-specific billing passthrough fields.
|
|
861
|
+
*/
|
|
862
|
+
passthrough?: CustomerUpdateParams.Passthrough;
|
|
863
|
+
/**
|
|
864
|
+
* Timezone to use for this customer
|
|
865
|
+
*/
|
|
866
|
+
timezone?: string | null;
|
|
317
867
|
}
|
|
318
868
|
export declare namespace CustomerUpdateParams {
|
|
319
869
|
/**
|
|
@@ -333,6 +883,185 @@ export declare namespace CustomerUpdateParams {
|
|
|
333
883
|
*/
|
|
334
884
|
vendorIdentifier: 'AUTH0' | 'ZUORA' | 'STRIPE' | 'HUBSPOT' | 'AWS_MARKETPLACE' | 'SNOWFLAKE' | 'SALESFORCE' | 'BIG_QUERY' | 'OPEN_FGA' | 'APP_STORE';
|
|
335
885
|
}
|
|
886
|
+
/**
|
|
887
|
+
* Vendor-specific billing passthrough fields.
|
|
888
|
+
*/
|
|
889
|
+
interface Passthrough {
|
|
890
|
+
/**
|
|
891
|
+
* Stripe-specific billing fields for the customer.
|
|
892
|
+
*/
|
|
893
|
+
stripe?: Passthrough.Stripe;
|
|
894
|
+
/**
|
|
895
|
+
* Zuora-specific billing fields for the customer.
|
|
896
|
+
*/
|
|
897
|
+
zuora?: Passthrough.Zuora;
|
|
898
|
+
}
|
|
899
|
+
namespace Passthrough {
|
|
900
|
+
/**
|
|
901
|
+
* Stripe-specific billing fields for the customer.
|
|
902
|
+
*/
|
|
903
|
+
interface Stripe {
|
|
904
|
+
/**
|
|
905
|
+
* Physical address
|
|
906
|
+
*/
|
|
907
|
+
billingAddress?: Stripe.BillingAddress;
|
|
908
|
+
/**
|
|
909
|
+
* Customer name
|
|
910
|
+
*/
|
|
911
|
+
customerName?: string;
|
|
912
|
+
/**
|
|
913
|
+
* Invoice custom fields
|
|
914
|
+
*/
|
|
915
|
+
invoiceCustomFields?: {
|
|
916
|
+
[key: string]: string;
|
|
917
|
+
};
|
|
918
|
+
/**
|
|
919
|
+
* Additional metadata
|
|
920
|
+
*/
|
|
921
|
+
metadata?: {
|
|
922
|
+
[key: string]: string;
|
|
923
|
+
};
|
|
924
|
+
/**
|
|
925
|
+
* Billing provider payment method id, attached to this customer
|
|
926
|
+
*/
|
|
927
|
+
paymentMethodId?: string;
|
|
928
|
+
/**
|
|
929
|
+
* Physical address
|
|
930
|
+
*/
|
|
931
|
+
shippingAddress?: Stripe.ShippingAddress;
|
|
932
|
+
/**
|
|
933
|
+
* Tax IDs
|
|
934
|
+
*/
|
|
935
|
+
taxIds?: Array<Stripe.TaxID>;
|
|
936
|
+
}
|
|
937
|
+
namespace Stripe {
|
|
938
|
+
/**
|
|
939
|
+
* Physical address
|
|
940
|
+
*/
|
|
941
|
+
interface BillingAddress {
|
|
942
|
+
/**
|
|
943
|
+
* City name
|
|
944
|
+
*/
|
|
945
|
+
city?: string;
|
|
946
|
+
/**
|
|
947
|
+
* Country code or name
|
|
948
|
+
*/
|
|
949
|
+
country?: string;
|
|
950
|
+
/**
|
|
951
|
+
* Street address line 1
|
|
952
|
+
*/
|
|
953
|
+
line1?: string;
|
|
954
|
+
/**
|
|
955
|
+
* Street address line 2
|
|
956
|
+
*/
|
|
957
|
+
line2?: string;
|
|
958
|
+
/**
|
|
959
|
+
* Postal or ZIP code
|
|
960
|
+
*/
|
|
961
|
+
postalCode?: string;
|
|
962
|
+
/**
|
|
963
|
+
* State or province
|
|
964
|
+
*/
|
|
965
|
+
state?: string;
|
|
966
|
+
}
|
|
967
|
+
/**
|
|
968
|
+
* Physical address
|
|
969
|
+
*/
|
|
970
|
+
interface ShippingAddress {
|
|
971
|
+
/**
|
|
972
|
+
* City name
|
|
973
|
+
*/
|
|
974
|
+
city?: string;
|
|
975
|
+
/**
|
|
976
|
+
* Country code or name
|
|
977
|
+
*/
|
|
978
|
+
country?: string;
|
|
979
|
+
/**
|
|
980
|
+
* Street address line 1
|
|
981
|
+
*/
|
|
982
|
+
line1?: string;
|
|
983
|
+
/**
|
|
984
|
+
* Street address line 2
|
|
985
|
+
*/
|
|
986
|
+
line2?: string;
|
|
987
|
+
/**
|
|
988
|
+
* Postal or ZIP code
|
|
989
|
+
*/
|
|
990
|
+
postalCode?: string;
|
|
991
|
+
/**
|
|
992
|
+
* State or province
|
|
993
|
+
*/
|
|
994
|
+
state?: string;
|
|
995
|
+
}
|
|
996
|
+
/**
|
|
997
|
+
* Tax identifier with type and value for customer tax exemptions.
|
|
998
|
+
*/
|
|
999
|
+
interface TaxID {
|
|
1000
|
+
/**
|
|
1001
|
+
* The type of tax exemption identifier, such as VAT.
|
|
1002
|
+
*/
|
|
1003
|
+
type: string;
|
|
1004
|
+
/**
|
|
1005
|
+
* The actual tax identifier value
|
|
1006
|
+
*/
|
|
1007
|
+
value: string;
|
|
1008
|
+
}
|
|
1009
|
+
}
|
|
1010
|
+
/**
|
|
1011
|
+
* Zuora-specific billing fields for the customer.
|
|
1012
|
+
*/
|
|
1013
|
+
interface Zuora {
|
|
1014
|
+
/**
|
|
1015
|
+
* Physical address
|
|
1016
|
+
*/
|
|
1017
|
+
billingAddress?: Zuora.BillingAddress;
|
|
1018
|
+
/**
|
|
1019
|
+
* Customers selected currency
|
|
1020
|
+
*/
|
|
1021
|
+
currency?: 'usd' | 'aed' | 'all' | 'amd' | 'ang' | 'aud' | 'awg' | 'azn' | 'bam' | 'bbd' | 'bdt' | 'bgn' | 'bif' | 'bmd' | 'bnd' | 'bsd' | 'bwp' | 'byn' | 'bzd' | 'brl' | 'cad' | 'cdf' | 'chf' | 'cny' | 'czk' | 'dkk' | 'dop' | 'dzd' | 'egp' | 'etb' | 'eur' | 'fjd' | 'gbp' | 'gel' | 'gip' | 'gmd' | 'gyd' | 'hkd' | 'hrk' | 'htg' | 'idr' | 'ils' | 'inr' | 'isk' | 'jmd' | 'jpy' | 'kes' | 'kgs' | 'khr' | 'kmf' | 'krw' | 'kyd' | 'kzt' | 'lbp' | 'lkr' | 'lrd' | 'lsl' | 'mad' | 'mdl' | 'mga' | 'mkd' | 'mmk' | 'mnt' | 'mop' | 'mro' | 'mvr' | 'mwk' | 'mxn' | 'myr' | 'mzn' | 'nad' | 'ngn' | 'nok' | 'npr' | 'nzd' | 'pgk' | 'php' | 'pkr' | 'pln' | 'qar' | 'ron' | 'rsd' | 'rub' | 'rwf' | 'sar' | 'sbd' | 'scr' | 'sek' | 'sgd' | 'sle' | 'sll' | 'sos' | 'szl' | 'thb' | 'tjs' | 'top' | 'try' | 'ttd' | 'tzs' | 'uah' | 'uzs' | 'vnd' | 'vuv' | 'wst' | 'xaf' | 'xcd' | 'yer' | 'zar' | 'zmw' | 'clp' | 'djf' | 'gnf' | 'ugx' | 'pyg' | 'xof' | 'xpf';
|
|
1022
|
+
/**
|
|
1023
|
+
* Additional metadata
|
|
1024
|
+
*/
|
|
1025
|
+
metadata?: {
|
|
1026
|
+
[key: string]: string;
|
|
1027
|
+
};
|
|
1028
|
+
/**
|
|
1029
|
+
* Billing provider payment method id, attached to this customer
|
|
1030
|
+
*/
|
|
1031
|
+
paymentMethodId?: string;
|
|
1032
|
+
}
|
|
1033
|
+
namespace Zuora {
|
|
1034
|
+
/**
|
|
1035
|
+
* Physical address
|
|
1036
|
+
*/
|
|
1037
|
+
interface BillingAddress {
|
|
1038
|
+
/**
|
|
1039
|
+
* City name
|
|
1040
|
+
*/
|
|
1041
|
+
city?: string;
|
|
1042
|
+
/**
|
|
1043
|
+
* Country code or name
|
|
1044
|
+
*/
|
|
1045
|
+
country?: string;
|
|
1046
|
+
/**
|
|
1047
|
+
* Street address line 1
|
|
1048
|
+
*/
|
|
1049
|
+
line1?: string;
|
|
1050
|
+
/**
|
|
1051
|
+
* Street address line 2
|
|
1052
|
+
*/
|
|
1053
|
+
line2?: string;
|
|
1054
|
+
/**
|
|
1055
|
+
* Postal or ZIP code
|
|
1056
|
+
*/
|
|
1057
|
+
postalCode?: string;
|
|
1058
|
+
/**
|
|
1059
|
+
* State or province
|
|
1060
|
+
*/
|
|
1061
|
+
state?: string;
|
|
1062
|
+
}
|
|
1063
|
+
}
|
|
1064
|
+
}
|
|
336
1065
|
}
|
|
337
1066
|
export interface CustomerListParams extends MyCursorIDPageParams {
|
|
338
1067
|
/**
|
|
@@ -426,6 +1155,10 @@ export interface CustomerProvisionParams {
|
|
|
426
1155
|
* Customer slug
|
|
427
1156
|
*/
|
|
428
1157
|
id: string;
|
|
1158
|
+
/**
|
|
1159
|
+
* The billing currency of the customer
|
|
1160
|
+
*/
|
|
1161
|
+
billingCurrency?: 'usd' | 'aed' | 'all' | 'amd' | 'ang' | 'aud' | 'awg' | 'azn' | 'bam' | 'bbd' | 'bdt' | 'bgn' | 'bif' | 'bmd' | 'bnd' | 'bsd' | 'bwp' | 'byn' | 'bzd' | 'brl' | 'cad' | 'cdf' | 'chf' | 'cny' | 'czk' | 'dkk' | 'dop' | 'dzd' | 'egp' | 'etb' | 'eur' | 'fjd' | 'gbp' | 'gel' | 'gip' | 'gmd' | 'gyd' | 'hkd' | 'hrk' | 'htg' | 'idr' | 'ils' | 'inr' | 'isk' | 'jmd' | 'jpy' | 'kes' | 'kgs' | 'khr' | 'kmf' | 'krw' | 'kyd' | 'kzt' | 'lbp' | 'lkr' | 'lrd' | 'lsl' | 'mad' | 'mdl' | 'mga' | 'mkd' | 'mmk' | 'mnt' | 'mop' | 'mro' | 'mvr' | 'mwk' | 'mxn' | 'myr' | 'mzn' | 'nad' | 'ngn' | 'nok' | 'npr' | 'nzd' | 'pgk' | 'php' | 'pkr' | 'pln' | 'qar' | 'ron' | 'rsd' | 'rub' | 'rwf' | 'sar' | 'sbd' | 'scr' | 'sek' | 'sgd' | 'sle' | 'sll' | 'sos' | 'szl' | 'thb' | 'tjs' | 'top' | 'try' | 'ttd' | 'tzs' | 'uah' | 'uzs' | 'vnd' | 'vuv' | 'wst' | 'xaf' | 'xcd' | 'yer' | 'zar' | 'zmw' | 'clp' | 'djf' | 'gnf' | 'ugx' | 'pyg' | 'xof' | 'xpf' | null;
|
|
429
1162
|
/**
|
|
430
1163
|
* The unique identifier for the entity in the billing provider
|
|
431
1164
|
*/
|
|
@@ -433,7 +1166,7 @@ export interface CustomerProvisionParams {
|
|
|
433
1166
|
/**
|
|
434
1167
|
* Customer level coupon
|
|
435
1168
|
*/
|
|
436
|
-
couponId?: string | null;
|
|
1169
|
+
couponId?: (string & {}) | '' | null;
|
|
437
1170
|
/**
|
|
438
1171
|
* The default payment method details
|
|
439
1172
|
*/
|
|
@@ -446,6 +1179,10 @@ export interface CustomerProvisionParams {
|
|
|
446
1179
|
* List of integrations
|
|
447
1180
|
*/
|
|
448
1181
|
integrations?: Array<CustomerProvisionParams.Integration>;
|
|
1182
|
+
/**
|
|
1183
|
+
* Language to use for this customer
|
|
1184
|
+
*/
|
|
1185
|
+
language?: string | null;
|
|
449
1186
|
/**
|
|
450
1187
|
* Additional metadata
|
|
451
1188
|
*/
|
|
@@ -456,6 +1193,14 @@ export interface CustomerProvisionParams {
|
|
|
456
1193
|
* The name of the customer
|
|
457
1194
|
*/
|
|
458
1195
|
name?: string | null;
|
|
1196
|
+
/**
|
|
1197
|
+
* Vendor-specific billing passthrough fields.
|
|
1198
|
+
*/
|
|
1199
|
+
passthrough?: CustomerProvisionParams.Passthrough;
|
|
1200
|
+
/**
|
|
1201
|
+
* Timezone to use for this customer
|
|
1202
|
+
*/
|
|
1203
|
+
timezone?: string | null;
|
|
459
1204
|
}
|
|
460
1205
|
export declare namespace CustomerProvisionParams {
|
|
461
1206
|
/**
|
|
@@ -500,9 +1245,194 @@ export declare namespace CustomerProvisionParams {
|
|
|
500
1245
|
*/
|
|
501
1246
|
vendorIdentifier: 'AUTH0' | 'ZUORA' | 'STRIPE' | 'HUBSPOT' | 'AWS_MARKETPLACE' | 'SNOWFLAKE' | 'SALESFORCE' | 'BIG_QUERY' | 'OPEN_FGA' | 'APP_STORE';
|
|
502
1247
|
}
|
|
1248
|
+
/**
|
|
1249
|
+
* Vendor-specific billing passthrough fields.
|
|
1250
|
+
*/
|
|
1251
|
+
interface Passthrough {
|
|
1252
|
+
/**
|
|
1253
|
+
* Stripe-specific billing fields for the customer.
|
|
1254
|
+
*/
|
|
1255
|
+
stripe?: Passthrough.Stripe;
|
|
1256
|
+
/**
|
|
1257
|
+
* Zuora-specific billing fields for the customer.
|
|
1258
|
+
*/
|
|
1259
|
+
zuora?: Passthrough.Zuora;
|
|
1260
|
+
}
|
|
1261
|
+
namespace Passthrough {
|
|
1262
|
+
/**
|
|
1263
|
+
* Stripe-specific billing fields for the customer.
|
|
1264
|
+
*/
|
|
1265
|
+
interface Stripe {
|
|
1266
|
+
/**
|
|
1267
|
+
* Physical address
|
|
1268
|
+
*/
|
|
1269
|
+
billingAddress?: Stripe.BillingAddress;
|
|
1270
|
+
/**
|
|
1271
|
+
* Customer name
|
|
1272
|
+
*/
|
|
1273
|
+
customerName?: string;
|
|
1274
|
+
/**
|
|
1275
|
+
* Invoice custom fields
|
|
1276
|
+
*/
|
|
1277
|
+
invoiceCustomFields?: {
|
|
1278
|
+
[key: string]: string;
|
|
1279
|
+
};
|
|
1280
|
+
/**
|
|
1281
|
+
* Additional metadata
|
|
1282
|
+
*/
|
|
1283
|
+
metadata?: {
|
|
1284
|
+
[key: string]: string;
|
|
1285
|
+
};
|
|
1286
|
+
/**
|
|
1287
|
+
* Billing provider payment method id, attached to this customer
|
|
1288
|
+
*/
|
|
1289
|
+
paymentMethodId?: string;
|
|
1290
|
+
/**
|
|
1291
|
+
* Physical address
|
|
1292
|
+
*/
|
|
1293
|
+
shippingAddress?: Stripe.ShippingAddress;
|
|
1294
|
+
/**
|
|
1295
|
+
* Tax IDs
|
|
1296
|
+
*/
|
|
1297
|
+
taxIds?: Array<Stripe.TaxID>;
|
|
1298
|
+
}
|
|
1299
|
+
namespace Stripe {
|
|
1300
|
+
/**
|
|
1301
|
+
* Physical address
|
|
1302
|
+
*/
|
|
1303
|
+
interface BillingAddress {
|
|
1304
|
+
/**
|
|
1305
|
+
* City name
|
|
1306
|
+
*/
|
|
1307
|
+
city?: string;
|
|
1308
|
+
/**
|
|
1309
|
+
* Country code or name
|
|
1310
|
+
*/
|
|
1311
|
+
country?: string;
|
|
1312
|
+
/**
|
|
1313
|
+
* Street address line 1
|
|
1314
|
+
*/
|
|
1315
|
+
line1?: string;
|
|
1316
|
+
/**
|
|
1317
|
+
* Street address line 2
|
|
1318
|
+
*/
|
|
1319
|
+
line2?: string;
|
|
1320
|
+
/**
|
|
1321
|
+
* Postal or ZIP code
|
|
1322
|
+
*/
|
|
1323
|
+
postalCode?: string;
|
|
1324
|
+
/**
|
|
1325
|
+
* State or province
|
|
1326
|
+
*/
|
|
1327
|
+
state?: string;
|
|
1328
|
+
}
|
|
1329
|
+
/**
|
|
1330
|
+
* Physical address
|
|
1331
|
+
*/
|
|
1332
|
+
interface ShippingAddress {
|
|
1333
|
+
/**
|
|
1334
|
+
* City name
|
|
1335
|
+
*/
|
|
1336
|
+
city?: string;
|
|
1337
|
+
/**
|
|
1338
|
+
* Country code or name
|
|
1339
|
+
*/
|
|
1340
|
+
country?: string;
|
|
1341
|
+
/**
|
|
1342
|
+
* Street address line 1
|
|
1343
|
+
*/
|
|
1344
|
+
line1?: string;
|
|
1345
|
+
/**
|
|
1346
|
+
* Street address line 2
|
|
1347
|
+
*/
|
|
1348
|
+
line2?: string;
|
|
1349
|
+
/**
|
|
1350
|
+
* Postal or ZIP code
|
|
1351
|
+
*/
|
|
1352
|
+
postalCode?: string;
|
|
1353
|
+
/**
|
|
1354
|
+
* State or province
|
|
1355
|
+
*/
|
|
1356
|
+
state?: string;
|
|
1357
|
+
}
|
|
1358
|
+
/**
|
|
1359
|
+
* Tax identifier with type and value for customer tax exemptions.
|
|
1360
|
+
*/
|
|
1361
|
+
interface TaxID {
|
|
1362
|
+
/**
|
|
1363
|
+
* The type of tax exemption identifier, such as VAT.
|
|
1364
|
+
*/
|
|
1365
|
+
type: string;
|
|
1366
|
+
/**
|
|
1367
|
+
* The actual tax identifier value
|
|
1368
|
+
*/
|
|
1369
|
+
value: string;
|
|
1370
|
+
}
|
|
1371
|
+
}
|
|
1372
|
+
/**
|
|
1373
|
+
* Zuora-specific billing fields for the customer.
|
|
1374
|
+
*/
|
|
1375
|
+
interface Zuora {
|
|
1376
|
+
/**
|
|
1377
|
+
* Physical address
|
|
1378
|
+
*/
|
|
1379
|
+
billingAddress?: Zuora.BillingAddress;
|
|
1380
|
+
/**
|
|
1381
|
+
* Customers selected currency
|
|
1382
|
+
*/
|
|
1383
|
+
currency?: 'usd' | 'aed' | 'all' | 'amd' | 'ang' | 'aud' | 'awg' | 'azn' | 'bam' | 'bbd' | 'bdt' | 'bgn' | 'bif' | 'bmd' | 'bnd' | 'bsd' | 'bwp' | 'byn' | 'bzd' | 'brl' | 'cad' | 'cdf' | 'chf' | 'cny' | 'czk' | 'dkk' | 'dop' | 'dzd' | 'egp' | 'etb' | 'eur' | 'fjd' | 'gbp' | 'gel' | 'gip' | 'gmd' | 'gyd' | 'hkd' | 'hrk' | 'htg' | 'idr' | 'ils' | 'inr' | 'isk' | 'jmd' | 'jpy' | 'kes' | 'kgs' | 'khr' | 'kmf' | 'krw' | 'kyd' | 'kzt' | 'lbp' | 'lkr' | 'lrd' | 'lsl' | 'mad' | 'mdl' | 'mga' | 'mkd' | 'mmk' | 'mnt' | 'mop' | 'mro' | 'mvr' | 'mwk' | 'mxn' | 'myr' | 'mzn' | 'nad' | 'ngn' | 'nok' | 'npr' | 'nzd' | 'pgk' | 'php' | 'pkr' | 'pln' | 'qar' | 'ron' | 'rsd' | 'rub' | 'rwf' | 'sar' | 'sbd' | 'scr' | 'sek' | 'sgd' | 'sle' | 'sll' | 'sos' | 'szl' | 'thb' | 'tjs' | 'top' | 'try' | 'ttd' | 'tzs' | 'uah' | 'uzs' | 'vnd' | 'vuv' | 'wst' | 'xaf' | 'xcd' | 'yer' | 'zar' | 'zmw' | 'clp' | 'djf' | 'gnf' | 'ugx' | 'pyg' | 'xof' | 'xpf';
|
|
1384
|
+
/**
|
|
1385
|
+
* Additional metadata
|
|
1386
|
+
*/
|
|
1387
|
+
metadata?: {
|
|
1388
|
+
[key: string]: string;
|
|
1389
|
+
};
|
|
1390
|
+
/**
|
|
1391
|
+
* Billing provider payment method id, attached to this customer
|
|
1392
|
+
*/
|
|
1393
|
+
paymentMethodId?: string;
|
|
1394
|
+
}
|
|
1395
|
+
namespace Zuora {
|
|
1396
|
+
/**
|
|
1397
|
+
* Physical address
|
|
1398
|
+
*/
|
|
1399
|
+
interface BillingAddress {
|
|
1400
|
+
/**
|
|
1401
|
+
* City name
|
|
1402
|
+
*/
|
|
1403
|
+
city?: string;
|
|
1404
|
+
/**
|
|
1405
|
+
* Country code or name
|
|
1406
|
+
*/
|
|
1407
|
+
country?: string;
|
|
1408
|
+
/**
|
|
1409
|
+
* Street address line 1
|
|
1410
|
+
*/
|
|
1411
|
+
line1?: string;
|
|
1412
|
+
/**
|
|
1413
|
+
* Street address line 2
|
|
1414
|
+
*/
|
|
1415
|
+
line2?: string;
|
|
1416
|
+
/**
|
|
1417
|
+
* Postal or ZIP code
|
|
1418
|
+
*/
|
|
1419
|
+
postalCode?: string;
|
|
1420
|
+
/**
|
|
1421
|
+
* State or province
|
|
1422
|
+
*/
|
|
1423
|
+
state?: string;
|
|
1424
|
+
}
|
|
1425
|
+
}
|
|
1426
|
+
}
|
|
1427
|
+
}
|
|
1428
|
+
export interface CustomerRetrieveEntitlementsParams {
|
|
1429
|
+
/**
|
|
1430
|
+
* Resource ID to scope entitlements to a specific resource
|
|
1431
|
+
*/
|
|
1432
|
+
resourceId?: string;
|
|
503
1433
|
}
|
|
504
1434
|
export declare namespace Customers {
|
|
505
|
-
export { type CustomerResponse as CustomerResponse, type CustomerListResponse as CustomerListResponse, type CustomerImportResponse as CustomerImportResponse, type CustomerListResourcesResponse as CustomerListResourcesResponse, type CustomerListResponsesMyCursorIDPage as CustomerListResponsesMyCursorIDPage, type CustomerListResourcesResponsesMyCursorIDPage as CustomerListResourcesResponsesMyCursorIDPage, type CustomerUpdateParams as CustomerUpdateParams, type CustomerListParams as CustomerListParams, type CustomerImportParams as CustomerImportParams, type CustomerListResourcesParams as CustomerListResourcesParams, type CustomerProvisionParams as CustomerProvisionParams, };
|
|
1435
|
+
export { type CustomerResponse as CustomerResponse, type CustomerListResponse as CustomerListResponse, type CustomerImportResponse as CustomerImportResponse, type CustomerListResourcesResponse as CustomerListResourcesResponse, type CustomerRetrieveEntitlementsResponse as CustomerRetrieveEntitlementsResponse, type CustomerListResponsesMyCursorIDPage as CustomerListResponsesMyCursorIDPage, type CustomerListResourcesResponsesMyCursorIDPage as CustomerListResourcesResponsesMyCursorIDPage, type CustomerUpdateParams as CustomerUpdateParams, type CustomerListParams as CustomerListParams, type CustomerImportParams as CustomerImportParams, type CustomerListResourcesParams as CustomerListResourcesParams, type CustomerProvisionParams as CustomerProvisionParams, type CustomerRetrieveEntitlementsParams as CustomerRetrieveEntitlementsParams, };
|
|
506
1436
|
export { PaymentMethod as PaymentMethod, type PaymentMethodAttachParams as PaymentMethodAttachParams };
|
|
507
1437
|
export { PromotionalEntitlements as PromotionalEntitlements, type PromotionalEntitlementCreateResponse as PromotionalEntitlementCreateResponse, type PromotionalEntitlementListResponse as PromotionalEntitlementListResponse, type PromotionalEntitlementRevokeResponse as PromotionalEntitlementRevokeResponse, type PromotionalEntitlementListResponsesMyCursorIDPage as PromotionalEntitlementListResponsesMyCursorIDPage, type PromotionalEntitlementCreateParams as PromotionalEntitlementCreateParams, type PromotionalEntitlementListParams as PromotionalEntitlementListParams, type PromotionalEntitlementRevokeParams as PromotionalEntitlementRevokeParams, };
|
|
508
1438
|
}
|