@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
|
@@ -92,6 +92,18 @@ export class Customers extends APIResource {
|
|
|
92
92
|
return this._client.post('/api/v1/customers', { body, ...options });
|
|
93
93
|
}
|
|
94
94
|
|
|
95
|
+
/**
|
|
96
|
+
* Retrieves the effective entitlements for a customer or resource, including
|
|
97
|
+
* feature and credit entitlements.
|
|
98
|
+
*/
|
|
99
|
+
retrieveEntitlements(
|
|
100
|
+
id: string,
|
|
101
|
+
query: CustomerRetrieveEntitlementsParams | null | undefined = {},
|
|
102
|
+
options?: RequestOptions,
|
|
103
|
+
): APIPromise<CustomerRetrieveEntitlementsResponse> {
|
|
104
|
+
return this._client.get(path`/api/v1/customers/${id}/entitlements`, { query, ...options });
|
|
105
|
+
}
|
|
106
|
+
|
|
95
107
|
/**
|
|
96
108
|
* Restores an archived customer, allowing them to create new subscriptions again.
|
|
97
109
|
*/
|
|
@@ -139,6 +151,128 @@ export namespace CustomerResponse {
|
|
|
139
151
|
*/
|
|
140
152
|
updatedAt: string;
|
|
141
153
|
|
|
154
|
+
/**
|
|
155
|
+
* The billing currency of the customer
|
|
156
|
+
*/
|
|
157
|
+
billingCurrency?:
|
|
158
|
+
| 'usd'
|
|
159
|
+
| 'aed'
|
|
160
|
+
| 'all'
|
|
161
|
+
| 'amd'
|
|
162
|
+
| 'ang'
|
|
163
|
+
| 'aud'
|
|
164
|
+
| 'awg'
|
|
165
|
+
| 'azn'
|
|
166
|
+
| 'bam'
|
|
167
|
+
| 'bbd'
|
|
168
|
+
| 'bdt'
|
|
169
|
+
| 'bgn'
|
|
170
|
+
| 'bif'
|
|
171
|
+
| 'bmd'
|
|
172
|
+
| 'bnd'
|
|
173
|
+
| 'bsd'
|
|
174
|
+
| 'bwp'
|
|
175
|
+
| 'byn'
|
|
176
|
+
| 'bzd'
|
|
177
|
+
| 'brl'
|
|
178
|
+
| 'cad'
|
|
179
|
+
| 'cdf'
|
|
180
|
+
| 'chf'
|
|
181
|
+
| 'cny'
|
|
182
|
+
| 'czk'
|
|
183
|
+
| 'dkk'
|
|
184
|
+
| 'dop'
|
|
185
|
+
| 'dzd'
|
|
186
|
+
| 'egp'
|
|
187
|
+
| 'etb'
|
|
188
|
+
| 'eur'
|
|
189
|
+
| 'fjd'
|
|
190
|
+
| 'gbp'
|
|
191
|
+
| 'gel'
|
|
192
|
+
| 'gip'
|
|
193
|
+
| 'gmd'
|
|
194
|
+
| 'gyd'
|
|
195
|
+
| 'hkd'
|
|
196
|
+
| 'hrk'
|
|
197
|
+
| 'htg'
|
|
198
|
+
| 'idr'
|
|
199
|
+
| 'ils'
|
|
200
|
+
| 'inr'
|
|
201
|
+
| 'isk'
|
|
202
|
+
| 'jmd'
|
|
203
|
+
| 'jpy'
|
|
204
|
+
| 'kes'
|
|
205
|
+
| 'kgs'
|
|
206
|
+
| 'khr'
|
|
207
|
+
| 'kmf'
|
|
208
|
+
| 'krw'
|
|
209
|
+
| 'kyd'
|
|
210
|
+
| 'kzt'
|
|
211
|
+
| 'lbp'
|
|
212
|
+
| 'lkr'
|
|
213
|
+
| 'lrd'
|
|
214
|
+
| 'lsl'
|
|
215
|
+
| 'mad'
|
|
216
|
+
| 'mdl'
|
|
217
|
+
| 'mga'
|
|
218
|
+
| 'mkd'
|
|
219
|
+
| 'mmk'
|
|
220
|
+
| 'mnt'
|
|
221
|
+
| 'mop'
|
|
222
|
+
| 'mro'
|
|
223
|
+
| 'mvr'
|
|
224
|
+
| 'mwk'
|
|
225
|
+
| 'mxn'
|
|
226
|
+
| 'myr'
|
|
227
|
+
| 'mzn'
|
|
228
|
+
| 'nad'
|
|
229
|
+
| 'ngn'
|
|
230
|
+
| 'nok'
|
|
231
|
+
| 'npr'
|
|
232
|
+
| 'nzd'
|
|
233
|
+
| 'pgk'
|
|
234
|
+
| 'php'
|
|
235
|
+
| 'pkr'
|
|
236
|
+
| 'pln'
|
|
237
|
+
| 'qar'
|
|
238
|
+
| 'ron'
|
|
239
|
+
| 'rsd'
|
|
240
|
+
| 'rub'
|
|
241
|
+
| 'rwf'
|
|
242
|
+
| 'sar'
|
|
243
|
+
| 'sbd'
|
|
244
|
+
| 'scr'
|
|
245
|
+
| 'sek'
|
|
246
|
+
| 'sgd'
|
|
247
|
+
| 'sle'
|
|
248
|
+
| 'sll'
|
|
249
|
+
| 'sos'
|
|
250
|
+
| 'szl'
|
|
251
|
+
| 'thb'
|
|
252
|
+
| 'tjs'
|
|
253
|
+
| 'top'
|
|
254
|
+
| 'try'
|
|
255
|
+
| 'ttd'
|
|
256
|
+
| 'tzs'
|
|
257
|
+
| 'uah'
|
|
258
|
+
| 'uzs'
|
|
259
|
+
| 'vnd'
|
|
260
|
+
| 'vuv'
|
|
261
|
+
| 'wst'
|
|
262
|
+
| 'xaf'
|
|
263
|
+
| 'xcd'
|
|
264
|
+
| 'yer'
|
|
265
|
+
| 'zar'
|
|
266
|
+
| 'zmw'
|
|
267
|
+
| 'clp'
|
|
268
|
+
| 'djf'
|
|
269
|
+
| 'gnf'
|
|
270
|
+
| 'ugx'
|
|
271
|
+
| 'pyg'
|
|
272
|
+
| 'xof'
|
|
273
|
+
| 'xpf'
|
|
274
|
+
| null;
|
|
275
|
+
|
|
142
276
|
/**
|
|
143
277
|
* The unique identifier for the entity in the billing provider
|
|
144
278
|
*/
|
|
@@ -147,7 +281,7 @@ export namespace CustomerResponse {
|
|
|
147
281
|
/**
|
|
148
282
|
* Customer level coupon
|
|
149
283
|
*/
|
|
150
|
-
couponId?: string | null;
|
|
284
|
+
couponId?: (string & {}) | '' | null;
|
|
151
285
|
|
|
152
286
|
/**
|
|
153
287
|
* The default payment method details
|
|
@@ -164,6 +298,11 @@ export namespace CustomerResponse {
|
|
|
164
298
|
*/
|
|
165
299
|
integrations?: Array<Data.Integration>;
|
|
166
300
|
|
|
301
|
+
/**
|
|
302
|
+
* Language to use for this customer
|
|
303
|
+
*/
|
|
304
|
+
language?: string | null;
|
|
305
|
+
|
|
167
306
|
/**
|
|
168
307
|
* Additional metadata
|
|
169
308
|
*/
|
|
@@ -173,6 +312,16 @@ export namespace CustomerResponse {
|
|
|
173
312
|
* The name of the customer
|
|
174
313
|
*/
|
|
175
314
|
name?: string | null;
|
|
315
|
+
|
|
316
|
+
/**
|
|
317
|
+
* Vendor-specific billing passthrough fields.
|
|
318
|
+
*/
|
|
319
|
+
passthrough?: Data.Passthrough;
|
|
320
|
+
|
|
321
|
+
/**
|
|
322
|
+
* Timezone to use for this customer
|
|
323
|
+
*/
|
|
324
|
+
timezone?: string | null;
|
|
176
325
|
}
|
|
177
326
|
|
|
178
327
|
export namespace Data {
|
|
@@ -235,6 +384,328 @@ export namespace CustomerResponse {
|
|
|
235
384
|
| 'OPEN_FGA'
|
|
236
385
|
| 'APP_STORE';
|
|
237
386
|
}
|
|
387
|
+
|
|
388
|
+
/**
|
|
389
|
+
* Vendor-specific billing passthrough fields.
|
|
390
|
+
*/
|
|
391
|
+
export interface Passthrough {
|
|
392
|
+
/**
|
|
393
|
+
* Stripe-specific billing fields for the customer.
|
|
394
|
+
*/
|
|
395
|
+
stripe?: Passthrough.Stripe;
|
|
396
|
+
|
|
397
|
+
/**
|
|
398
|
+
* Zuora-specific billing fields for the customer.
|
|
399
|
+
*/
|
|
400
|
+
zuora?: Passthrough.Zuora;
|
|
401
|
+
}
|
|
402
|
+
|
|
403
|
+
export namespace Passthrough {
|
|
404
|
+
/**
|
|
405
|
+
* Stripe-specific billing fields for the customer.
|
|
406
|
+
*/
|
|
407
|
+
export interface Stripe {
|
|
408
|
+
/**
|
|
409
|
+
* Physical address
|
|
410
|
+
*/
|
|
411
|
+
billingAddress?: Stripe.BillingAddress;
|
|
412
|
+
|
|
413
|
+
/**
|
|
414
|
+
* Customer name
|
|
415
|
+
*/
|
|
416
|
+
customerName?: string;
|
|
417
|
+
|
|
418
|
+
/**
|
|
419
|
+
* Invoice custom fields
|
|
420
|
+
*/
|
|
421
|
+
invoiceCustomFields?: { [key: string]: string };
|
|
422
|
+
|
|
423
|
+
/**
|
|
424
|
+
* Additional metadata
|
|
425
|
+
*/
|
|
426
|
+
metadata?: { [key: string]: string };
|
|
427
|
+
|
|
428
|
+
/**
|
|
429
|
+
* Billing provider payment method id, attached to this customer
|
|
430
|
+
*/
|
|
431
|
+
paymentMethodId?: string;
|
|
432
|
+
|
|
433
|
+
/**
|
|
434
|
+
* Physical address
|
|
435
|
+
*/
|
|
436
|
+
shippingAddress?: Stripe.ShippingAddress;
|
|
437
|
+
|
|
438
|
+
/**
|
|
439
|
+
* Tax IDs
|
|
440
|
+
*/
|
|
441
|
+
taxIds?: Array<Stripe.TaxID>;
|
|
442
|
+
}
|
|
443
|
+
|
|
444
|
+
export namespace Stripe {
|
|
445
|
+
/**
|
|
446
|
+
* Physical address
|
|
447
|
+
*/
|
|
448
|
+
export interface BillingAddress {
|
|
449
|
+
/**
|
|
450
|
+
* City name
|
|
451
|
+
*/
|
|
452
|
+
city?: string;
|
|
453
|
+
|
|
454
|
+
/**
|
|
455
|
+
* Country code or name
|
|
456
|
+
*/
|
|
457
|
+
country?: string;
|
|
458
|
+
|
|
459
|
+
/**
|
|
460
|
+
* Street address line 1
|
|
461
|
+
*/
|
|
462
|
+
line1?: string;
|
|
463
|
+
|
|
464
|
+
/**
|
|
465
|
+
* Street address line 2
|
|
466
|
+
*/
|
|
467
|
+
line2?: string;
|
|
468
|
+
|
|
469
|
+
/**
|
|
470
|
+
* Postal or ZIP code
|
|
471
|
+
*/
|
|
472
|
+
postalCode?: string;
|
|
473
|
+
|
|
474
|
+
/**
|
|
475
|
+
* State or province
|
|
476
|
+
*/
|
|
477
|
+
state?: string;
|
|
478
|
+
}
|
|
479
|
+
|
|
480
|
+
/**
|
|
481
|
+
* Physical address
|
|
482
|
+
*/
|
|
483
|
+
export interface ShippingAddress {
|
|
484
|
+
/**
|
|
485
|
+
* City name
|
|
486
|
+
*/
|
|
487
|
+
city?: string;
|
|
488
|
+
|
|
489
|
+
/**
|
|
490
|
+
* Country code or name
|
|
491
|
+
*/
|
|
492
|
+
country?: string;
|
|
493
|
+
|
|
494
|
+
/**
|
|
495
|
+
* Street address line 1
|
|
496
|
+
*/
|
|
497
|
+
line1?: string;
|
|
498
|
+
|
|
499
|
+
/**
|
|
500
|
+
* Street address line 2
|
|
501
|
+
*/
|
|
502
|
+
line2?: string;
|
|
503
|
+
|
|
504
|
+
/**
|
|
505
|
+
* Postal or ZIP code
|
|
506
|
+
*/
|
|
507
|
+
postalCode?: string;
|
|
508
|
+
|
|
509
|
+
/**
|
|
510
|
+
* State or province
|
|
511
|
+
*/
|
|
512
|
+
state?: string;
|
|
513
|
+
}
|
|
514
|
+
|
|
515
|
+
/**
|
|
516
|
+
* Tax identifier with type and value for customer tax exemptions.
|
|
517
|
+
*/
|
|
518
|
+
export interface TaxID {
|
|
519
|
+
/**
|
|
520
|
+
* The type of tax exemption identifier, such as VAT.
|
|
521
|
+
*/
|
|
522
|
+
type: string;
|
|
523
|
+
|
|
524
|
+
/**
|
|
525
|
+
* The actual tax identifier value
|
|
526
|
+
*/
|
|
527
|
+
value: string;
|
|
528
|
+
}
|
|
529
|
+
}
|
|
530
|
+
|
|
531
|
+
/**
|
|
532
|
+
* Zuora-specific billing fields for the customer.
|
|
533
|
+
*/
|
|
534
|
+
export interface Zuora {
|
|
535
|
+
/**
|
|
536
|
+
* Physical address
|
|
537
|
+
*/
|
|
538
|
+
billingAddress?: Zuora.BillingAddress;
|
|
539
|
+
|
|
540
|
+
/**
|
|
541
|
+
* Customers selected currency
|
|
542
|
+
*/
|
|
543
|
+
currency?:
|
|
544
|
+
| 'usd'
|
|
545
|
+
| 'aed'
|
|
546
|
+
| 'all'
|
|
547
|
+
| 'amd'
|
|
548
|
+
| 'ang'
|
|
549
|
+
| 'aud'
|
|
550
|
+
| 'awg'
|
|
551
|
+
| 'azn'
|
|
552
|
+
| 'bam'
|
|
553
|
+
| 'bbd'
|
|
554
|
+
| 'bdt'
|
|
555
|
+
| 'bgn'
|
|
556
|
+
| 'bif'
|
|
557
|
+
| 'bmd'
|
|
558
|
+
| 'bnd'
|
|
559
|
+
| 'bsd'
|
|
560
|
+
| 'bwp'
|
|
561
|
+
| 'byn'
|
|
562
|
+
| 'bzd'
|
|
563
|
+
| 'brl'
|
|
564
|
+
| 'cad'
|
|
565
|
+
| 'cdf'
|
|
566
|
+
| 'chf'
|
|
567
|
+
| 'cny'
|
|
568
|
+
| 'czk'
|
|
569
|
+
| 'dkk'
|
|
570
|
+
| 'dop'
|
|
571
|
+
| 'dzd'
|
|
572
|
+
| 'egp'
|
|
573
|
+
| 'etb'
|
|
574
|
+
| 'eur'
|
|
575
|
+
| 'fjd'
|
|
576
|
+
| 'gbp'
|
|
577
|
+
| 'gel'
|
|
578
|
+
| 'gip'
|
|
579
|
+
| 'gmd'
|
|
580
|
+
| 'gyd'
|
|
581
|
+
| 'hkd'
|
|
582
|
+
| 'hrk'
|
|
583
|
+
| 'htg'
|
|
584
|
+
| 'idr'
|
|
585
|
+
| 'ils'
|
|
586
|
+
| 'inr'
|
|
587
|
+
| 'isk'
|
|
588
|
+
| 'jmd'
|
|
589
|
+
| 'jpy'
|
|
590
|
+
| 'kes'
|
|
591
|
+
| 'kgs'
|
|
592
|
+
| 'khr'
|
|
593
|
+
| 'kmf'
|
|
594
|
+
| 'krw'
|
|
595
|
+
| 'kyd'
|
|
596
|
+
| 'kzt'
|
|
597
|
+
| 'lbp'
|
|
598
|
+
| 'lkr'
|
|
599
|
+
| 'lrd'
|
|
600
|
+
| 'lsl'
|
|
601
|
+
| 'mad'
|
|
602
|
+
| 'mdl'
|
|
603
|
+
| 'mga'
|
|
604
|
+
| 'mkd'
|
|
605
|
+
| 'mmk'
|
|
606
|
+
| 'mnt'
|
|
607
|
+
| 'mop'
|
|
608
|
+
| 'mro'
|
|
609
|
+
| 'mvr'
|
|
610
|
+
| 'mwk'
|
|
611
|
+
| 'mxn'
|
|
612
|
+
| 'myr'
|
|
613
|
+
| 'mzn'
|
|
614
|
+
| 'nad'
|
|
615
|
+
| 'ngn'
|
|
616
|
+
| 'nok'
|
|
617
|
+
| 'npr'
|
|
618
|
+
| 'nzd'
|
|
619
|
+
| 'pgk'
|
|
620
|
+
| 'php'
|
|
621
|
+
| 'pkr'
|
|
622
|
+
| 'pln'
|
|
623
|
+
| 'qar'
|
|
624
|
+
| 'ron'
|
|
625
|
+
| 'rsd'
|
|
626
|
+
| 'rub'
|
|
627
|
+
| 'rwf'
|
|
628
|
+
| 'sar'
|
|
629
|
+
| 'sbd'
|
|
630
|
+
| 'scr'
|
|
631
|
+
| 'sek'
|
|
632
|
+
| 'sgd'
|
|
633
|
+
| 'sle'
|
|
634
|
+
| 'sll'
|
|
635
|
+
| 'sos'
|
|
636
|
+
| 'szl'
|
|
637
|
+
| 'thb'
|
|
638
|
+
| 'tjs'
|
|
639
|
+
| 'top'
|
|
640
|
+
| 'try'
|
|
641
|
+
| 'ttd'
|
|
642
|
+
| 'tzs'
|
|
643
|
+
| 'uah'
|
|
644
|
+
| 'uzs'
|
|
645
|
+
| 'vnd'
|
|
646
|
+
| 'vuv'
|
|
647
|
+
| 'wst'
|
|
648
|
+
| 'xaf'
|
|
649
|
+
| 'xcd'
|
|
650
|
+
| 'yer'
|
|
651
|
+
| 'zar'
|
|
652
|
+
| 'zmw'
|
|
653
|
+
| 'clp'
|
|
654
|
+
| 'djf'
|
|
655
|
+
| 'gnf'
|
|
656
|
+
| 'ugx'
|
|
657
|
+
| 'pyg'
|
|
658
|
+
| 'xof'
|
|
659
|
+
| 'xpf';
|
|
660
|
+
|
|
661
|
+
/**
|
|
662
|
+
* Additional metadata
|
|
663
|
+
*/
|
|
664
|
+
metadata?: { [key: string]: string };
|
|
665
|
+
|
|
666
|
+
/**
|
|
667
|
+
* Billing provider payment method id, attached to this customer
|
|
668
|
+
*/
|
|
669
|
+
paymentMethodId?: string;
|
|
670
|
+
}
|
|
671
|
+
|
|
672
|
+
export namespace Zuora {
|
|
673
|
+
/**
|
|
674
|
+
* Physical address
|
|
675
|
+
*/
|
|
676
|
+
export interface BillingAddress {
|
|
677
|
+
/**
|
|
678
|
+
* City name
|
|
679
|
+
*/
|
|
680
|
+
city?: string;
|
|
681
|
+
|
|
682
|
+
/**
|
|
683
|
+
* Country code or name
|
|
684
|
+
*/
|
|
685
|
+
country?: string;
|
|
686
|
+
|
|
687
|
+
/**
|
|
688
|
+
* Street address line 1
|
|
689
|
+
*/
|
|
690
|
+
line1?: string;
|
|
691
|
+
|
|
692
|
+
/**
|
|
693
|
+
* Street address line 2
|
|
694
|
+
*/
|
|
695
|
+
line2?: string;
|
|
696
|
+
|
|
697
|
+
/**
|
|
698
|
+
* Postal or ZIP code
|
|
699
|
+
*/
|
|
700
|
+
postalCode?: string;
|
|
701
|
+
|
|
702
|
+
/**
|
|
703
|
+
* State or province
|
|
704
|
+
*/
|
|
705
|
+
state?: string;
|
|
706
|
+
}
|
|
707
|
+
}
|
|
708
|
+
}
|
|
238
709
|
}
|
|
239
710
|
}
|
|
240
711
|
|
|
@@ -262,6 +733,128 @@ export interface CustomerListResponse {
|
|
|
262
733
|
*/
|
|
263
734
|
updatedAt: string;
|
|
264
735
|
|
|
736
|
+
/**
|
|
737
|
+
* The billing currency of the customer
|
|
738
|
+
*/
|
|
739
|
+
billingCurrency?:
|
|
740
|
+
| 'usd'
|
|
741
|
+
| 'aed'
|
|
742
|
+
| 'all'
|
|
743
|
+
| 'amd'
|
|
744
|
+
| 'ang'
|
|
745
|
+
| 'aud'
|
|
746
|
+
| 'awg'
|
|
747
|
+
| 'azn'
|
|
748
|
+
| 'bam'
|
|
749
|
+
| 'bbd'
|
|
750
|
+
| 'bdt'
|
|
751
|
+
| 'bgn'
|
|
752
|
+
| 'bif'
|
|
753
|
+
| 'bmd'
|
|
754
|
+
| 'bnd'
|
|
755
|
+
| 'bsd'
|
|
756
|
+
| 'bwp'
|
|
757
|
+
| 'byn'
|
|
758
|
+
| 'bzd'
|
|
759
|
+
| 'brl'
|
|
760
|
+
| 'cad'
|
|
761
|
+
| 'cdf'
|
|
762
|
+
| 'chf'
|
|
763
|
+
| 'cny'
|
|
764
|
+
| 'czk'
|
|
765
|
+
| 'dkk'
|
|
766
|
+
| 'dop'
|
|
767
|
+
| 'dzd'
|
|
768
|
+
| 'egp'
|
|
769
|
+
| 'etb'
|
|
770
|
+
| 'eur'
|
|
771
|
+
| 'fjd'
|
|
772
|
+
| 'gbp'
|
|
773
|
+
| 'gel'
|
|
774
|
+
| 'gip'
|
|
775
|
+
| 'gmd'
|
|
776
|
+
| 'gyd'
|
|
777
|
+
| 'hkd'
|
|
778
|
+
| 'hrk'
|
|
779
|
+
| 'htg'
|
|
780
|
+
| 'idr'
|
|
781
|
+
| 'ils'
|
|
782
|
+
| 'inr'
|
|
783
|
+
| 'isk'
|
|
784
|
+
| 'jmd'
|
|
785
|
+
| 'jpy'
|
|
786
|
+
| 'kes'
|
|
787
|
+
| 'kgs'
|
|
788
|
+
| 'khr'
|
|
789
|
+
| 'kmf'
|
|
790
|
+
| 'krw'
|
|
791
|
+
| 'kyd'
|
|
792
|
+
| 'kzt'
|
|
793
|
+
| 'lbp'
|
|
794
|
+
| 'lkr'
|
|
795
|
+
| 'lrd'
|
|
796
|
+
| 'lsl'
|
|
797
|
+
| 'mad'
|
|
798
|
+
| 'mdl'
|
|
799
|
+
| 'mga'
|
|
800
|
+
| 'mkd'
|
|
801
|
+
| 'mmk'
|
|
802
|
+
| 'mnt'
|
|
803
|
+
| 'mop'
|
|
804
|
+
| 'mro'
|
|
805
|
+
| 'mvr'
|
|
806
|
+
| 'mwk'
|
|
807
|
+
| 'mxn'
|
|
808
|
+
| 'myr'
|
|
809
|
+
| 'mzn'
|
|
810
|
+
| 'nad'
|
|
811
|
+
| 'ngn'
|
|
812
|
+
| 'nok'
|
|
813
|
+
| 'npr'
|
|
814
|
+
| 'nzd'
|
|
815
|
+
| 'pgk'
|
|
816
|
+
| 'php'
|
|
817
|
+
| 'pkr'
|
|
818
|
+
| 'pln'
|
|
819
|
+
| 'qar'
|
|
820
|
+
| 'ron'
|
|
821
|
+
| 'rsd'
|
|
822
|
+
| 'rub'
|
|
823
|
+
| 'rwf'
|
|
824
|
+
| 'sar'
|
|
825
|
+
| 'sbd'
|
|
826
|
+
| 'scr'
|
|
827
|
+
| 'sek'
|
|
828
|
+
| 'sgd'
|
|
829
|
+
| 'sle'
|
|
830
|
+
| 'sll'
|
|
831
|
+
| 'sos'
|
|
832
|
+
| 'szl'
|
|
833
|
+
| 'thb'
|
|
834
|
+
| 'tjs'
|
|
835
|
+
| 'top'
|
|
836
|
+
| 'try'
|
|
837
|
+
| 'ttd'
|
|
838
|
+
| 'tzs'
|
|
839
|
+
| 'uah'
|
|
840
|
+
| 'uzs'
|
|
841
|
+
| 'vnd'
|
|
842
|
+
| 'vuv'
|
|
843
|
+
| 'wst'
|
|
844
|
+
| 'xaf'
|
|
845
|
+
| 'xcd'
|
|
846
|
+
| 'yer'
|
|
847
|
+
| 'zar'
|
|
848
|
+
| 'zmw'
|
|
849
|
+
| 'clp'
|
|
850
|
+
| 'djf'
|
|
851
|
+
| 'gnf'
|
|
852
|
+
| 'ugx'
|
|
853
|
+
| 'pyg'
|
|
854
|
+
| 'xof'
|
|
855
|
+
| 'xpf'
|
|
856
|
+
| null;
|
|
857
|
+
|
|
265
858
|
/**
|
|
266
859
|
* The unique identifier for the entity in the billing provider
|
|
267
860
|
*/
|
|
@@ -270,7 +863,7 @@ export interface CustomerListResponse {
|
|
|
270
863
|
/**
|
|
271
864
|
* Customer level coupon
|
|
272
865
|
*/
|
|
273
|
-
couponId?: string | null;
|
|
866
|
+
couponId?: (string & {}) | '' | null;
|
|
274
867
|
|
|
275
868
|
/**
|
|
276
869
|
* The default payment method details
|
|
@@ -287,6 +880,11 @@ export interface CustomerListResponse {
|
|
|
287
880
|
*/
|
|
288
881
|
integrations?: Array<CustomerListResponse.Integration>;
|
|
289
882
|
|
|
883
|
+
/**
|
|
884
|
+
* Language to use for this customer
|
|
885
|
+
*/
|
|
886
|
+
language?: string | null;
|
|
887
|
+
|
|
290
888
|
/**
|
|
291
889
|
* Additional metadata
|
|
292
890
|
*/
|
|
@@ -296,6 +894,16 @@ export interface CustomerListResponse {
|
|
|
296
894
|
* The name of the customer
|
|
297
895
|
*/
|
|
298
896
|
name?: string | null;
|
|
897
|
+
|
|
898
|
+
/**
|
|
899
|
+
* Vendor-specific billing passthrough fields.
|
|
900
|
+
*/
|
|
901
|
+
passthrough?: CustomerListResponse.Passthrough;
|
|
902
|
+
|
|
903
|
+
/**
|
|
904
|
+
* Timezone to use for this customer
|
|
905
|
+
*/
|
|
906
|
+
timezone?: string | null;
|
|
299
907
|
}
|
|
300
908
|
|
|
301
909
|
export namespace CustomerListResponse {
|
|
@@ -358,6 +966,328 @@ export namespace CustomerListResponse {
|
|
|
358
966
|
| 'OPEN_FGA'
|
|
359
967
|
| 'APP_STORE';
|
|
360
968
|
}
|
|
969
|
+
|
|
970
|
+
/**
|
|
971
|
+
* Vendor-specific billing passthrough fields.
|
|
972
|
+
*/
|
|
973
|
+
export interface Passthrough {
|
|
974
|
+
/**
|
|
975
|
+
* Stripe-specific billing fields for the customer.
|
|
976
|
+
*/
|
|
977
|
+
stripe?: Passthrough.Stripe;
|
|
978
|
+
|
|
979
|
+
/**
|
|
980
|
+
* Zuora-specific billing fields for the customer.
|
|
981
|
+
*/
|
|
982
|
+
zuora?: Passthrough.Zuora;
|
|
983
|
+
}
|
|
984
|
+
|
|
985
|
+
export namespace Passthrough {
|
|
986
|
+
/**
|
|
987
|
+
* Stripe-specific billing fields for the customer.
|
|
988
|
+
*/
|
|
989
|
+
export interface Stripe {
|
|
990
|
+
/**
|
|
991
|
+
* Physical address
|
|
992
|
+
*/
|
|
993
|
+
billingAddress?: Stripe.BillingAddress;
|
|
994
|
+
|
|
995
|
+
/**
|
|
996
|
+
* Customer name
|
|
997
|
+
*/
|
|
998
|
+
customerName?: string;
|
|
999
|
+
|
|
1000
|
+
/**
|
|
1001
|
+
* Invoice custom fields
|
|
1002
|
+
*/
|
|
1003
|
+
invoiceCustomFields?: { [key: string]: string };
|
|
1004
|
+
|
|
1005
|
+
/**
|
|
1006
|
+
* Additional metadata
|
|
1007
|
+
*/
|
|
1008
|
+
metadata?: { [key: string]: string };
|
|
1009
|
+
|
|
1010
|
+
/**
|
|
1011
|
+
* Billing provider payment method id, attached to this customer
|
|
1012
|
+
*/
|
|
1013
|
+
paymentMethodId?: string;
|
|
1014
|
+
|
|
1015
|
+
/**
|
|
1016
|
+
* Physical address
|
|
1017
|
+
*/
|
|
1018
|
+
shippingAddress?: Stripe.ShippingAddress;
|
|
1019
|
+
|
|
1020
|
+
/**
|
|
1021
|
+
* Tax IDs
|
|
1022
|
+
*/
|
|
1023
|
+
taxIds?: Array<Stripe.TaxID>;
|
|
1024
|
+
}
|
|
1025
|
+
|
|
1026
|
+
export namespace Stripe {
|
|
1027
|
+
/**
|
|
1028
|
+
* Physical address
|
|
1029
|
+
*/
|
|
1030
|
+
export interface BillingAddress {
|
|
1031
|
+
/**
|
|
1032
|
+
* City name
|
|
1033
|
+
*/
|
|
1034
|
+
city?: string;
|
|
1035
|
+
|
|
1036
|
+
/**
|
|
1037
|
+
* Country code or name
|
|
1038
|
+
*/
|
|
1039
|
+
country?: string;
|
|
1040
|
+
|
|
1041
|
+
/**
|
|
1042
|
+
* Street address line 1
|
|
1043
|
+
*/
|
|
1044
|
+
line1?: string;
|
|
1045
|
+
|
|
1046
|
+
/**
|
|
1047
|
+
* Street address line 2
|
|
1048
|
+
*/
|
|
1049
|
+
line2?: string;
|
|
1050
|
+
|
|
1051
|
+
/**
|
|
1052
|
+
* Postal or ZIP code
|
|
1053
|
+
*/
|
|
1054
|
+
postalCode?: string;
|
|
1055
|
+
|
|
1056
|
+
/**
|
|
1057
|
+
* State or province
|
|
1058
|
+
*/
|
|
1059
|
+
state?: string;
|
|
1060
|
+
}
|
|
1061
|
+
|
|
1062
|
+
/**
|
|
1063
|
+
* Physical address
|
|
1064
|
+
*/
|
|
1065
|
+
export interface ShippingAddress {
|
|
1066
|
+
/**
|
|
1067
|
+
* City name
|
|
1068
|
+
*/
|
|
1069
|
+
city?: string;
|
|
1070
|
+
|
|
1071
|
+
/**
|
|
1072
|
+
* Country code or name
|
|
1073
|
+
*/
|
|
1074
|
+
country?: string;
|
|
1075
|
+
|
|
1076
|
+
/**
|
|
1077
|
+
* Street address line 1
|
|
1078
|
+
*/
|
|
1079
|
+
line1?: string;
|
|
1080
|
+
|
|
1081
|
+
/**
|
|
1082
|
+
* Street address line 2
|
|
1083
|
+
*/
|
|
1084
|
+
line2?: string;
|
|
1085
|
+
|
|
1086
|
+
/**
|
|
1087
|
+
* Postal or ZIP code
|
|
1088
|
+
*/
|
|
1089
|
+
postalCode?: string;
|
|
1090
|
+
|
|
1091
|
+
/**
|
|
1092
|
+
* State or province
|
|
1093
|
+
*/
|
|
1094
|
+
state?: string;
|
|
1095
|
+
}
|
|
1096
|
+
|
|
1097
|
+
/**
|
|
1098
|
+
* Tax identifier with type and value for customer tax exemptions.
|
|
1099
|
+
*/
|
|
1100
|
+
export interface TaxID {
|
|
1101
|
+
/**
|
|
1102
|
+
* The type of tax exemption identifier, such as VAT.
|
|
1103
|
+
*/
|
|
1104
|
+
type: string;
|
|
1105
|
+
|
|
1106
|
+
/**
|
|
1107
|
+
* The actual tax identifier value
|
|
1108
|
+
*/
|
|
1109
|
+
value: string;
|
|
1110
|
+
}
|
|
1111
|
+
}
|
|
1112
|
+
|
|
1113
|
+
/**
|
|
1114
|
+
* Zuora-specific billing fields for the customer.
|
|
1115
|
+
*/
|
|
1116
|
+
export interface Zuora {
|
|
1117
|
+
/**
|
|
1118
|
+
* Physical address
|
|
1119
|
+
*/
|
|
1120
|
+
billingAddress?: Zuora.BillingAddress;
|
|
1121
|
+
|
|
1122
|
+
/**
|
|
1123
|
+
* Customers selected currency
|
|
1124
|
+
*/
|
|
1125
|
+
currency?:
|
|
1126
|
+
| 'usd'
|
|
1127
|
+
| 'aed'
|
|
1128
|
+
| 'all'
|
|
1129
|
+
| 'amd'
|
|
1130
|
+
| 'ang'
|
|
1131
|
+
| 'aud'
|
|
1132
|
+
| 'awg'
|
|
1133
|
+
| 'azn'
|
|
1134
|
+
| 'bam'
|
|
1135
|
+
| 'bbd'
|
|
1136
|
+
| 'bdt'
|
|
1137
|
+
| 'bgn'
|
|
1138
|
+
| 'bif'
|
|
1139
|
+
| 'bmd'
|
|
1140
|
+
| 'bnd'
|
|
1141
|
+
| 'bsd'
|
|
1142
|
+
| 'bwp'
|
|
1143
|
+
| 'byn'
|
|
1144
|
+
| 'bzd'
|
|
1145
|
+
| 'brl'
|
|
1146
|
+
| 'cad'
|
|
1147
|
+
| 'cdf'
|
|
1148
|
+
| 'chf'
|
|
1149
|
+
| 'cny'
|
|
1150
|
+
| 'czk'
|
|
1151
|
+
| 'dkk'
|
|
1152
|
+
| 'dop'
|
|
1153
|
+
| 'dzd'
|
|
1154
|
+
| 'egp'
|
|
1155
|
+
| 'etb'
|
|
1156
|
+
| 'eur'
|
|
1157
|
+
| 'fjd'
|
|
1158
|
+
| 'gbp'
|
|
1159
|
+
| 'gel'
|
|
1160
|
+
| 'gip'
|
|
1161
|
+
| 'gmd'
|
|
1162
|
+
| 'gyd'
|
|
1163
|
+
| 'hkd'
|
|
1164
|
+
| 'hrk'
|
|
1165
|
+
| 'htg'
|
|
1166
|
+
| 'idr'
|
|
1167
|
+
| 'ils'
|
|
1168
|
+
| 'inr'
|
|
1169
|
+
| 'isk'
|
|
1170
|
+
| 'jmd'
|
|
1171
|
+
| 'jpy'
|
|
1172
|
+
| 'kes'
|
|
1173
|
+
| 'kgs'
|
|
1174
|
+
| 'khr'
|
|
1175
|
+
| 'kmf'
|
|
1176
|
+
| 'krw'
|
|
1177
|
+
| 'kyd'
|
|
1178
|
+
| 'kzt'
|
|
1179
|
+
| 'lbp'
|
|
1180
|
+
| 'lkr'
|
|
1181
|
+
| 'lrd'
|
|
1182
|
+
| 'lsl'
|
|
1183
|
+
| 'mad'
|
|
1184
|
+
| 'mdl'
|
|
1185
|
+
| 'mga'
|
|
1186
|
+
| 'mkd'
|
|
1187
|
+
| 'mmk'
|
|
1188
|
+
| 'mnt'
|
|
1189
|
+
| 'mop'
|
|
1190
|
+
| 'mro'
|
|
1191
|
+
| 'mvr'
|
|
1192
|
+
| 'mwk'
|
|
1193
|
+
| 'mxn'
|
|
1194
|
+
| 'myr'
|
|
1195
|
+
| 'mzn'
|
|
1196
|
+
| 'nad'
|
|
1197
|
+
| 'ngn'
|
|
1198
|
+
| 'nok'
|
|
1199
|
+
| 'npr'
|
|
1200
|
+
| 'nzd'
|
|
1201
|
+
| 'pgk'
|
|
1202
|
+
| 'php'
|
|
1203
|
+
| 'pkr'
|
|
1204
|
+
| 'pln'
|
|
1205
|
+
| 'qar'
|
|
1206
|
+
| 'ron'
|
|
1207
|
+
| 'rsd'
|
|
1208
|
+
| 'rub'
|
|
1209
|
+
| 'rwf'
|
|
1210
|
+
| 'sar'
|
|
1211
|
+
| 'sbd'
|
|
1212
|
+
| 'scr'
|
|
1213
|
+
| 'sek'
|
|
1214
|
+
| 'sgd'
|
|
1215
|
+
| 'sle'
|
|
1216
|
+
| 'sll'
|
|
1217
|
+
| 'sos'
|
|
1218
|
+
| 'szl'
|
|
1219
|
+
| 'thb'
|
|
1220
|
+
| 'tjs'
|
|
1221
|
+
| 'top'
|
|
1222
|
+
| 'try'
|
|
1223
|
+
| 'ttd'
|
|
1224
|
+
| 'tzs'
|
|
1225
|
+
| 'uah'
|
|
1226
|
+
| 'uzs'
|
|
1227
|
+
| 'vnd'
|
|
1228
|
+
| 'vuv'
|
|
1229
|
+
| 'wst'
|
|
1230
|
+
| 'xaf'
|
|
1231
|
+
| 'xcd'
|
|
1232
|
+
| 'yer'
|
|
1233
|
+
| 'zar'
|
|
1234
|
+
| 'zmw'
|
|
1235
|
+
| 'clp'
|
|
1236
|
+
| 'djf'
|
|
1237
|
+
| 'gnf'
|
|
1238
|
+
| 'ugx'
|
|
1239
|
+
| 'pyg'
|
|
1240
|
+
| 'xof'
|
|
1241
|
+
| 'xpf';
|
|
1242
|
+
|
|
1243
|
+
/**
|
|
1244
|
+
* Additional metadata
|
|
1245
|
+
*/
|
|
1246
|
+
metadata?: { [key: string]: string };
|
|
1247
|
+
|
|
1248
|
+
/**
|
|
1249
|
+
* Billing provider payment method id, attached to this customer
|
|
1250
|
+
*/
|
|
1251
|
+
paymentMethodId?: string;
|
|
1252
|
+
}
|
|
1253
|
+
|
|
1254
|
+
export namespace Zuora {
|
|
1255
|
+
/**
|
|
1256
|
+
* Physical address
|
|
1257
|
+
*/
|
|
1258
|
+
export interface BillingAddress {
|
|
1259
|
+
/**
|
|
1260
|
+
* City name
|
|
1261
|
+
*/
|
|
1262
|
+
city?: string;
|
|
1263
|
+
|
|
1264
|
+
/**
|
|
1265
|
+
* Country code or name
|
|
1266
|
+
*/
|
|
1267
|
+
country?: string;
|
|
1268
|
+
|
|
1269
|
+
/**
|
|
1270
|
+
* Street address line 1
|
|
1271
|
+
*/
|
|
1272
|
+
line1?: string;
|
|
1273
|
+
|
|
1274
|
+
/**
|
|
1275
|
+
* Street address line 2
|
|
1276
|
+
*/
|
|
1277
|
+
line2?: string;
|
|
1278
|
+
|
|
1279
|
+
/**
|
|
1280
|
+
* Postal or ZIP code
|
|
1281
|
+
*/
|
|
1282
|
+
postalCode?: string;
|
|
1283
|
+
|
|
1284
|
+
/**
|
|
1285
|
+
* State or province
|
|
1286
|
+
*/
|
|
1287
|
+
state?: string;
|
|
1288
|
+
}
|
|
1289
|
+
}
|
|
1290
|
+
}
|
|
361
1291
|
}
|
|
362
1292
|
|
|
363
1293
|
/**
|
|
@@ -402,7 +1332,332 @@ export interface CustomerListResourcesResponse {
|
|
|
402
1332
|
updatedAt: string;
|
|
403
1333
|
}
|
|
404
1334
|
|
|
1335
|
+
/**
|
|
1336
|
+
* Response object
|
|
1337
|
+
*/
|
|
1338
|
+
export interface CustomerRetrieveEntitlementsResponse {
|
|
1339
|
+
/**
|
|
1340
|
+
* The effective entitlements state for a customer or resource.
|
|
1341
|
+
*/
|
|
1342
|
+
data: CustomerRetrieveEntitlementsResponse.Data;
|
|
1343
|
+
}
|
|
1344
|
+
|
|
1345
|
+
export namespace CustomerRetrieveEntitlementsResponse {
|
|
1346
|
+
/**
|
|
1347
|
+
* The effective entitlements state for a customer or resource.
|
|
1348
|
+
*/
|
|
1349
|
+
export interface Data {
|
|
1350
|
+
/**
|
|
1351
|
+
* Reason why entitlements access was denied, if applicable
|
|
1352
|
+
*/
|
|
1353
|
+
accessDeniedReason: 'CustomerNotFound' | 'NoActiveSubscription' | 'CustomerIsArchived' | null;
|
|
1354
|
+
|
|
1355
|
+
/**
|
|
1356
|
+
* List of effective feature and credit entitlements
|
|
1357
|
+
*/
|
|
1358
|
+
entitlements: Array<Data.Feature | Data.Credit>;
|
|
1359
|
+
}
|
|
1360
|
+
|
|
1361
|
+
export namespace Data {
|
|
1362
|
+
export interface Feature {
|
|
1363
|
+
accessDeniedReason:
|
|
1364
|
+
| 'FeatureNotFound'
|
|
1365
|
+
| 'CustomerNotFound'
|
|
1366
|
+
| 'CustomerIsArchived'
|
|
1367
|
+
| 'CustomerResourceNotFound'
|
|
1368
|
+
| 'NoActiveSubscription'
|
|
1369
|
+
| 'NoFeatureEntitlementInSubscription'
|
|
1370
|
+
| 'RequestedUsageExceedingLimit'
|
|
1371
|
+
| 'RequestedValuesMismatch'
|
|
1372
|
+
| 'BudgetExceeded'
|
|
1373
|
+
| 'Unknown'
|
|
1374
|
+
| 'FeatureTypeMismatch'
|
|
1375
|
+
| 'Revoked'
|
|
1376
|
+
| 'InsufficientCredits'
|
|
1377
|
+
| 'EntitlementNotFound'
|
|
1378
|
+
| null;
|
|
1379
|
+
|
|
1380
|
+
isGranted: boolean;
|
|
1381
|
+
|
|
1382
|
+
type: 'FEATURE';
|
|
1383
|
+
|
|
1384
|
+
currentUsage?: number;
|
|
1385
|
+
|
|
1386
|
+
/**
|
|
1387
|
+
* Timestamp of the last update to the entitlement grant or configuration.
|
|
1388
|
+
*/
|
|
1389
|
+
entitlementUpdatedAt?: string;
|
|
1390
|
+
|
|
1391
|
+
feature?: Feature.Feature;
|
|
1392
|
+
|
|
1393
|
+
hasUnlimitedUsage?: boolean;
|
|
1394
|
+
|
|
1395
|
+
resetPeriod?: 'YEAR' | 'MONTH' | 'WEEK' | 'DAY' | 'HOUR' | null;
|
|
1396
|
+
|
|
1397
|
+
usageLimit?: number | null;
|
|
1398
|
+
|
|
1399
|
+
/**
|
|
1400
|
+
* The anchor for calculating the usage period for metered entitlements with a
|
|
1401
|
+
* reset period configured
|
|
1402
|
+
*/
|
|
1403
|
+
usagePeriodAnchor?: string;
|
|
1404
|
+
|
|
1405
|
+
/**
|
|
1406
|
+
* The end date of the usage period for metered entitlements with a reset period
|
|
1407
|
+
* configured
|
|
1408
|
+
*/
|
|
1409
|
+
usagePeriodEnd?: string;
|
|
1410
|
+
|
|
1411
|
+
/**
|
|
1412
|
+
* The start date of the usage period for metered entitlements with a reset period
|
|
1413
|
+
* configured
|
|
1414
|
+
*/
|
|
1415
|
+
usagePeriodStart?: string;
|
|
1416
|
+
|
|
1417
|
+
/**
|
|
1418
|
+
* The next time the entitlement should be recalculated
|
|
1419
|
+
*/
|
|
1420
|
+
validUntil?: string;
|
|
1421
|
+
}
|
|
1422
|
+
|
|
1423
|
+
export namespace Feature {
|
|
1424
|
+
export interface Feature {
|
|
1425
|
+
/**
|
|
1426
|
+
* The unique reference ID of the entitlement.
|
|
1427
|
+
*/
|
|
1428
|
+
id: string;
|
|
1429
|
+
|
|
1430
|
+
/**
|
|
1431
|
+
* The human-readable name of the entitlement, shown in UI elements.
|
|
1432
|
+
*/
|
|
1433
|
+
displayName: string;
|
|
1434
|
+
|
|
1435
|
+
/**
|
|
1436
|
+
* The current status of the feature.
|
|
1437
|
+
*/
|
|
1438
|
+
featureStatus: 'NEW' | 'SUSPENDED' | 'ACTIVE';
|
|
1439
|
+
|
|
1440
|
+
/**
|
|
1441
|
+
* The type of feature associated with the entitlement.
|
|
1442
|
+
*/
|
|
1443
|
+
featureType: 'BOOLEAN' | 'NUMBER' | 'ENUM';
|
|
1444
|
+
}
|
|
1445
|
+
}
|
|
1446
|
+
|
|
1447
|
+
export interface Credit {
|
|
1448
|
+
accessDeniedReason:
|
|
1449
|
+
| 'FeatureNotFound'
|
|
1450
|
+
| 'CustomerNotFound'
|
|
1451
|
+
| 'CustomerIsArchived'
|
|
1452
|
+
| 'CustomerResourceNotFound'
|
|
1453
|
+
| 'NoActiveSubscription'
|
|
1454
|
+
| 'NoFeatureEntitlementInSubscription'
|
|
1455
|
+
| 'RequestedUsageExceedingLimit'
|
|
1456
|
+
| 'RequestedValuesMismatch'
|
|
1457
|
+
| 'BudgetExceeded'
|
|
1458
|
+
| 'Unknown'
|
|
1459
|
+
| 'FeatureTypeMismatch'
|
|
1460
|
+
| 'Revoked'
|
|
1461
|
+
| 'InsufficientCredits'
|
|
1462
|
+
| 'EntitlementNotFound'
|
|
1463
|
+
| null;
|
|
1464
|
+
|
|
1465
|
+
/**
|
|
1466
|
+
* The currency associated with a credit entitlement.
|
|
1467
|
+
*/
|
|
1468
|
+
currency: Credit.Currency;
|
|
1469
|
+
|
|
1470
|
+
currentUsage: number;
|
|
1471
|
+
|
|
1472
|
+
isGranted: boolean;
|
|
1473
|
+
|
|
1474
|
+
type: 'CREDIT';
|
|
1475
|
+
|
|
1476
|
+
usageLimit: number;
|
|
1477
|
+
|
|
1478
|
+
/**
|
|
1479
|
+
* Timestamp of the last update to the credit usage.
|
|
1480
|
+
*/
|
|
1481
|
+
usageUpdatedAt: string;
|
|
1482
|
+
|
|
1483
|
+
/**
|
|
1484
|
+
* Timestamp of the last update to the entitlement grant or configuration.
|
|
1485
|
+
*/
|
|
1486
|
+
entitlementUpdatedAt?: string;
|
|
1487
|
+
|
|
1488
|
+
/**
|
|
1489
|
+
* The end date of the current billing period for recurring credit grants.
|
|
1490
|
+
*/
|
|
1491
|
+
usagePeriodEnd?: string;
|
|
1492
|
+
|
|
1493
|
+
/**
|
|
1494
|
+
* The next time the entitlement should be recalculated
|
|
1495
|
+
*/
|
|
1496
|
+
validUntil?: string;
|
|
1497
|
+
}
|
|
1498
|
+
|
|
1499
|
+
export namespace Credit {
|
|
1500
|
+
/**
|
|
1501
|
+
* The currency associated with a credit entitlement.
|
|
1502
|
+
*/
|
|
1503
|
+
export interface Currency {
|
|
1504
|
+
/**
|
|
1505
|
+
* The unique identifier of the custom currency.
|
|
1506
|
+
*/
|
|
1507
|
+
currencyId: string;
|
|
1508
|
+
|
|
1509
|
+
/**
|
|
1510
|
+
* The display name of the currency.
|
|
1511
|
+
*/
|
|
1512
|
+
displayName: string;
|
|
1513
|
+
|
|
1514
|
+
/**
|
|
1515
|
+
* A description of the currency.
|
|
1516
|
+
*/
|
|
1517
|
+
description?: string | null;
|
|
1518
|
+
|
|
1519
|
+
/**
|
|
1520
|
+
* Additional metadata associated with the currency.
|
|
1521
|
+
*/
|
|
1522
|
+
metadata?: { [key: string]: string } | null;
|
|
1523
|
+
|
|
1524
|
+
/**
|
|
1525
|
+
* The plural form of the currency unit.
|
|
1526
|
+
*/
|
|
1527
|
+
unitPlural?: string | null;
|
|
1528
|
+
|
|
1529
|
+
/**
|
|
1530
|
+
* The singular form of the currency unit.
|
|
1531
|
+
*/
|
|
1532
|
+
unitSingular?: string | null;
|
|
1533
|
+
}
|
|
1534
|
+
}
|
|
1535
|
+
}
|
|
1536
|
+
}
|
|
1537
|
+
|
|
405
1538
|
export interface CustomerUpdateParams {
|
|
1539
|
+
/**
|
|
1540
|
+
* The billing currency of the customer
|
|
1541
|
+
*/
|
|
1542
|
+
billingCurrency?:
|
|
1543
|
+
| 'usd'
|
|
1544
|
+
| 'aed'
|
|
1545
|
+
| 'all'
|
|
1546
|
+
| 'amd'
|
|
1547
|
+
| 'ang'
|
|
1548
|
+
| 'aud'
|
|
1549
|
+
| 'awg'
|
|
1550
|
+
| 'azn'
|
|
1551
|
+
| 'bam'
|
|
1552
|
+
| 'bbd'
|
|
1553
|
+
| 'bdt'
|
|
1554
|
+
| 'bgn'
|
|
1555
|
+
| 'bif'
|
|
1556
|
+
| 'bmd'
|
|
1557
|
+
| 'bnd'
|
|
1558
|
+
| 'bsd'
|
|
1559
|
+
| 'bwp'
|
|
1560
|
+
| 'byn'
|
|
1561
|
+
| 'bzd'
|
|
1562
|
+
| 'brl'
|
|
1563
|
+
| 'cad'
|
|
1564
|
+
| 'cdf'
|
|
1565
|
+
| 'chf'
|
|
1566
|
+
| 'cny'
|
|
1567
|
+
| 'czk'
|
|
1568
|
+
| 'dkk'
|
|
1569
|
+
| 'dop'
|
|
1570
|
+
| 'dzd'
|
|
1571
|
+
| 'egp'
|
|
1572
|
+
| 'etb'
|
|
1573
|
+
| 'eur'
|
|
1574
|
+
| 'fjd'
|
|
1575
|
+
| 'gbp'
|
|
1576
|
+
| 'gel'
|
|
1577
|
+
| 'gip'
|
|
1578
|
+
| 'gmd'
|
|
1579
|
+
| 'gyd'
|
|
1580
|
+
| 'hkd'
|
|
1581
|
+
| 'hrk'
|
|
1582
|
+
| 'htg'
|
|
1583
|
+
| 'idr'
|
|
1584
|
+
| 'ils'
|
|
1585
|
+
| 'inr'
|
|
1586
|
+
| 'isk'
|
|
1587
|
+
| 'jmd'
|
|
1588
|
+
| 'jpy'
|
|
1589
|
+
| 'kes'
|
|
1590
|
+
| 'kgs'
|
|
1591
|
+
| 'khr'
|
|
1592
|
+
| 'kmf'
|
|
1593
|
+
| 'krw'
|
|
1594
|
+
| 'kyd'
|
|
1595
|
+
| 'kzt'
|
|
1596
|
+
| 'lbp'
|
|
1597
|
+
| 'lkr'
|
|
1598
|
+
| 'lrd'
|
|
1599
|
+
| 'lsl'
|
|
1600
|
+
| 'mad'
|
|
1601
|
+
| 'mdl'
|
|
1602
|
+
| 'mga'
|
|
1603
|
+
| 'mkd'
|
|
1604
|
+
| 'mmk'
|
|
1605
|
+
| 'mnt'
|
|
1606
|
+
| 'mop'
|
|
1607
|
+
| 'mro'
|
|
1608
|
+
| 'mvr'
|
|
1609
|
+
| 'mwk'
|
|
1610
|
+
| 'mxn'
|
|
1611
|
+
| 'myr'
|
|
1612
|
+
| 'mzn'
|
|
1613
|
+
| 'nad'
|
|
1614
|
+
| 'ngn'
|
|
1615
|
+
| 'nok'
|
|
1616
|
+
| 'npr'
|
|
1617
|
+
| 'nzd'
|
|
1618
|
+
| 'pgk'
|
|
1619
|
+
| 'php'
|
|
1620
|
+
| 'pkr'
|
|
1621
|
+
| 'pln'
|
|
1622
|
+
| 'qar'
|
|
1623
|
+
| 'ron'
|
|
1624
|
+
| 'rsd'
|
|
1625
|
+
| 'rub'
|
|
1626
|
+
| 'rwf'
|
|
1627
|
+
| 'sar'
|
|
1628
|
+
| 'sbd'
|
|
1629
|
+
| 'scr'
|
|
1630
|
+
| 'sek'
|
|
1631
|
+
| 'sgd'
|
|
1632
|
+
| 'sle'
|
|
1633
|
+
| 'sll'
|
|
1634
|
+
| 'sos'
|
|
1635
|
+
| 'szl'
|
|
1636
|
+
| 'thb'
|
|
1637
|
+
| 'tjs'
|
|
1638
|
+
| 'top'
|
|
1639
|
+
| 'try'
|
|
1640
|
+
| 'ttd'
|
|
1641
|
+
| 'tzs'
|
|
1642
|
+
| 'uah'
|
|
1643
|
+
| 'uzs'
|
|
1644
|
+
| 'vnd'
|
|
1645
|
+
| 'vuv'
|
|
1646
|
+
| 'wst'
|
|
1647
|
+
| 'xaf'
|
|
1648
|
+
| 'xcd'
|
|
1649
|
+
| 'yer'
|
|
1650
|
+
| 'zar'
|
|
1651
|
+
| 'zmw'
|
|
1652
|
+
| 'clp'
|
|
1653
|
+
| 'djf'
|
|
1654
|
+
| 'gnf'
|
|
1655
|
+
| 'ugx'
|
|
1656
|
+
| 'pyg'
|
|
1657
|
+
| 'xof'
|
|
1658
|
+
| 'xpf'
|
|
1659
|
+
| null;
|
|
1660
|
+
|
|
406
1661
|
/**
|
|
407
1662
|
* The unique identifier for the entity in the billing provider
|
|
408
1663
|
*/
|
|
@@ -411,7 +1666,7 @@ export interface CustomerUpdateParams {
|
|
|
411
1666
|
/**
|
|
412
1667
|
* Customer level coupon
|
|
413
1668
|
*/
|
|
414
|
-
couponId?: string | null;
|
|
1669
|
+
couponId?: (string & {}) | '' | null;
|
|
415
1670
|
|
|
416
1671
|
/**
|
|
417
1672
|
* The email of the customer
|
|
@@ -423,6 +1678,11 @@ export interface CustomerUpdateParams {
|
|
|
423
1678
|
*/
|
|
424
1679
|
integrations?: Array<CustomerUpdateParams.Integration>;
|
|
425
1680
|
|
|
1681
|
+
/**
|
|
1682
|
+
* Language to use for this customer
|
|
1683
|
+
*/
|
|
1684
|
+
language?: string | null;
|
|
1685
|
+
|
|
426
1686
|
/**
|
|
427
1687
|
* Additional metadata
|
|
428
1688
|
*/
|
|
@@ -432,6 +1692,16 @@ export interface CustomerUpdateParams {
|
|
|
432
1692
|
* The name of the customer
|
|
433
1693
|
*/
|
|
434
1694
|
name?: string | null;
|
|
1695
|
+
|
|
1696
|
+
/**
|
|
1697
|
+
* Vendor-specific billing passthrough fields.
|
|
1698
|
+
*/
|
|
1699
|
+
passthrough?: CustomerUpdateParams.Passthrough;
|
|
1700
|
+
|
|
1701
|
+
/**
|
|
1702
|
+
* Timezone to use for this customer
|
|
1703
|
+
*/
|
|
1704
|
+
timezone?: string | null;
|
|
435
1705
|
}
|
|
436
1706
|
|
|
437
1707
|
export namespace CustomerUpdateParams {
|
|
@@ -464,6 +1734,328 @@ export namespace CustomerUpdateParams {
|
|
|
464
1734
|
| 'OPEN_FGA'
|
|
465
1735
|
| 'APP_STORE';
|
|
466
1736
|
}
|
|
1737
|
+
|
|
1738
|
+
/**
|
|
1739
|
+
* Vendor-specific billing passthrough fields.
|
|
1740
|
+
*/
|
|
1741
|
+
export interface Passthrough {
|
|
1742
|
+
/**
|
|
1743
|
+
* Stripe-specific billing fields for the customer.
|
|
1744
|
+
*/
|
|
1745
|
+
stripe?: Passthrough.Stripe;
|
|
1746
|
+
|
|
1747
|
+
/**
|
|
1748
|
+
* Zuora-specific billing fields for the customer.
|
|
1749
|
+
*/
|
|
1750
|
+
zuora?: Passthrough.Zuora;
|
|
1751
|
+
}
|
|
1752
|
+
|
|
1753
|
+
export namespace Passthrough {
|
|
1754
|
+
/**
|
|
1755
|
+
* Stripe-specific billing fields for the customer.
|
|
1756
|
+
*/
|
|
1757
|
+
export interface Stripe {
|
|
1758
|
+
/**
|
|
1759
|
+
* Physical address
|
|
1760
|
+
*/
|
|
1761
|
+
billingAddress?: Stripe.BillingAddress;
|
|
1762
|
+
|
|
1763
|
+
/**
|
|
1764
|
+
* Customer name
|
|
1765
|
+
*/
|
|
1766
|
+
customerName?: string;
|
|
1767
|
+
|
|
1768
|
+
/**
|
|
1769
|
+
* Invoice custom fields
|
|
1770
|
+
*/
|
|
1771
|
+
invoiceCustomFields?: { [key: string]: string };
|
|
1772
|
+
|
|
1773
|
+
/**
|
|
1774
|
+
* Additional metadata
|
|
1775
|
+
*/
|
|
1776
|
+
metadata?: { [key: string]: string };
|
|
1777
|
+
|
|
1778
|
+
/**
|
|
1779
|
+
* Billing provider payment method id, attached to this customer
|
|
1780
|
+
*/
|
|
1781
|
+
paymentMethodId?: string;
|
|
1782
|
+
|
|
1783
|
+
/**
|
|
1784
|
+
* Physical address
|
|
1785
|
+
*/
|
|
1786
|
+
shippingAddress?: Stripe.ShippingAddress;
|
|
1787
|
+
|
|
1788
|
+
/**
|
|
1789
|
+
* Tax IDs
|
|
1790
|
+
*/
|
|
1791
|
+
taxIds?: Array<Stripe.TaxID>;
|
|
1792
|
+
}
|
|
1793
|
+
|
|
1794
|
+
export namespace Stripe {
|
|
1795
|
+
/**
|
|
1796
|
+
* Physical address
|
|
1797
|
+
*/
|
|
1798
|
+
export interface BillingAddress {
|
|
1799
|
+
/**
|
|
1800
|
+
* City name
|
|
1801
|
+
*/
|
|
1802
|
+
city?: string;
|
|
1803
|
+
|
|
1804
|
+
/**
|
|
1805
|
+
* Country code or name
|
|
1806
|
+
*/
|
|
1807
|
+
country?: string;
|
|
1808
|
+
|
|
1809
|
+
/**
|
|
1810
|
+
* Street address line 1
|
|
1811
|
+
*/
|
|
1812
|
+
line1?: string;
|
|
1813
|
+
|
|
1814
|
+
/**
|
|
1815
|
+
* Street address line 2
|
|
1816
|
+
*/
|
|
1817
|
+
line2?: string;
|
|
1818
|
+
|
|
1819
|
+
/**
|
|
1820
|
+
* Postal or ZIP code
|
|
1821
|
+
*/
|
|
1822
|
+
postalCode?: string;
|
|
1823
|
+
|
|
1824
|
+
/**
|
|
1825
|
+
* State or province
|
|
1826
|
+
*/
|
|
1827
|
+
state?: string;
|
|
1828
|
+
}
|
|
1829
|
+
|
|
1830
|
+
/**
|
|
1831
|
+
* Physical address
|
|
1832
|
+
*/
|
|
1833
|
+
export interface ShippingAddress {
|
|
1834
|
+
/**
|
|
1835
|
+
* City name
|
|
1836
|
+
*/
|
|
1837
|
+
city?: string;
|
|
1838
|
+
|
|
1839
|
+
/**
|
|
1840
|
+
* Country code or name
|
|
1841
|
+
*/
|
|
1842
|
+
country?: string;
|
|
1843
|
+
|
|
1844
|
+
/**
|
|
1845
|
+
* Street address line 1
|
|
1846
|
+
*/
|
|
1847
|
+
line1?: string;
|
|
1848
|
+
|
|
1849
|
+
/**
|
|
1850
|
+
* Street address line 2
|
|
1851
|
+
*/
|
|
1852
|
+
line2?: string;
|
|
1853
|
+
|
|
1854
|
+
/**
|
|
1855
|
+
* Postal or ZIP code
|
|
1856
|
+
*/
|
|
1857
|
+
postalCode?: string;
|
|
1858
|
+
|
|
1859
|
+
/**
|
|
1860
|
+
* State or province
|
|
1861
|
+
*/
|
|
1862
|
+
state?: string;
|
|
1863
|
+
}
|
|
1864
|
+
|
|
1865
|
+
/**
|
|
1866
|
+
* Tax identifier with type and value for customer tax exemptions.
|
|
1867
|
+
*/
|
|
1868
|
+
export interface TaxID {
|
|
1869
|
+
/**
|
|
1870
|
+
* The type of tax exemption identifier, such as VAT.
|
|
1871
|
+
*/
|
|
1872
|
+
type: string;
|
|
1873
|
+
|
|
1874
|
+
/**
|
|
1875
|
+
* The actual tax identifier value
|
|
1876
|
+
*/
|
|
1877
|
+
value: string;
|
|
1878
|
+
}
|
|
1879
|
+
}
|
|
1880
|
+
|
|
1881
|
+
/**
|
|
1882
|
+
* Zuora-specific billing fields for the customer.
|
|
1883
|
+
*/
|
|
1884
|
+
export interface Zuora {
|
|
1885
|
+
/**
|
|
1886
|
+
* Physical address
|
|
1887
|
+
*/
|
|
1888
|
+
billingAddress?: Zuora.BillingAddress;
|
|
1889
|
+
|
|
1890
|
+
/**
|
|
1891
|
+
* Customers selected currency
|
|
1892
|
+
*/
|
|
1893
|
+
currency?:
|
|
1894
|
+
| 'usd'
|
|
1895
|
+
| 'aed'
|
|
1896
|
+
| 'all'
|
|
1897
|
+
| 'amd'
|
|
1898
|
+
| 'ang'
|
|
1899
|
+
| 'aud'
|
|
1900
|
+
| 'awg'
|
|
1901
|
+
| 'azn'
|
|
1902
|
+
| 'bam'
|
|
1903
|
+
| 'bbd'
|
|
1904
|
+
| 'bdt'
|
|
1905
|
+
| 'bgn'
|
|
1906
|
+
| 'bif'
|
|
1907
|
+
| 'bmd'
|
|
1908
|
+
| 'bnd'
|
|
1909
|
+
| 'bsd'
|
|
1910
|
+
| 'bwp'
|
|
1911
|
+
| 'byn'
|
|
1912
|
+
| 'bzd'
|
|
1913
|
+
| 'brl'
|
|
1914
|
+
| 'cad'
|
|
1915
|
+
| 'cdf'
|
|
1916
|
+
| 'chf'
|
|
1917
|
+
| 'cny'
|
|
1918
|
+
| 'czk'
|
|
1919
|
+
| 'dkk'
|
|
1920
|
+
| 'dop'
|
|
1921
|
+
| 'dzd'
|
|
1922
|
+
| 'egp'
|
|
1923
|
+
| 'etb'
|
|
1924
|
+
| 'eur'
|
|
1925
|
+
| 'fjd'
|
|
1926
|
+
| 'gbp'
|
|
1927
|
+
| 'gel'
|
|
1928
|
+
| 'gip'
|
|
1929
|
+
| 'gmd'
|
|
1930
|
+
| 'gyd'
|
|
1931
|
+
| 'hkd'
|
|
1932
|
+
| 'hrk'
|
|
1933
|
+
| 'htg'
|
|
1934
|
+
| 'idr'
|
|
1935
|
+
| 'ils'
|
|
1936
|
+
| 'inr'
|
|
1937
|
+
| 'isk'
|
|
1938
|
+
| 'jmd'
|
|
1939
|
+
| 'jpy'
|
|
1940
|
+
| 'kes'
|
|
1941
|
+
| 'kgs'
|
|
1942
|
+
| 'khr'
|
|
1943
|
+
| 'kmf'
|
|
1944
|
+
| 'krw'
|
|
1945
|
+
| 'kyd'
|
|
1946
|
+
| 'kzt'
|
|
1947
|
+
| 'lbp'
|
|
1948
|
+
| 'lkr'
|
|
1949
|
+
| 'lrd'
|
|
1950
|
+
| 'lsl'
|
|
1951
|
+
| 'mad'
|
|
1952
|
+
| 'mdl'
|
|
1953
|
+
| 'mga'
|
|
1954
|
+
| 'mkd'
|
|
1955
|
+
| 'mmk'
|
|
1956
|
+
| 'mnt'
|
|
1957
|
+
| 'mop'
|
|
1958
|
+
| 'mro'
|
|
1959
|
+
| 'mvr'
|
|
1960
|
+
| 'mwk'
|
|
1961
|
+
| 'mxn'
|
|
1962
|
+
| 'myr'
|
|
1963
|
+
| 'mzn'
|
|
1964
|
+
| 'nad'
|
|
1965
|
+
| 'ngn'
|
|
1966
|
+
| 'nok'
|
|
1967
|
+
| 'npr'
|
|
1968
|
+
| 'nzd'
|
|
1969
|
+
| 'pgk'
|
|
1970
|
+
| 'php'
|
|
1971
|
+
| 'pkr'
|
|
1972
|
+
| 'pln'
|
|
1973
|
+
| 'qar'
|
|
1974
|
+
| 'ron'
|
|
1975
|
+
| 'rsd'
|
|
1976
|
+
| 'rub'
|
|
1977
|
+
| 'rwf'
|
|
1978
|
+
| 'sar'
|
|
1979
|
+
| 'sbd'
|
|
1980
|
+
| 'scr'
|
|
1981
|
+
| 'sek'
|
|
1982
|
+
| 'sgd'
|
|
1983
|
+
| 'sle'
|
|
1984
|
+
| 'sll'
|
|
1985
|
+
| 'sos'
|
|
1986
|
+
| 'szl'
|
|
1987
|
+
| 'thb'
|
|
1988
|
+
| 'tjs'
|
|
1989
|
+
| 'top'
|
|
1990
|
+
| 'try'
|
|
1991
|
+
| 'ttd'
|
|
1992
|
+
| 'tzs'
|
|
1993
|
+
| 'uah'
|
|
1994
|
+
| 'uzs'
|
|
1995
|
+
| 'vnd'
|
|
1996
|
+
| 'vuv'
|
|
1997
|
+
| 'wst'
|
|
1998
|
+
| 'xaf'
|
|
1999
|
+
| 'xcd'
|
|
2000
|
+
| 'yer'
|
|
2001
|
+
| 'zar'
|
|
2002
|
+
| 'zmw'
|
|
2003
|
+
| 'clp'
|
|
2004
|
+
| 'djf'
|
|
2005
|
+
| 'gnf'
|
|
2006
|
+
| 'ugx'
|
|
2007
|
+
| 'pyg'
|
|
2008
|
+
| 'xof'
|
|
2009
|
+
| 'xpf';
|
|
2010
|
+
|
|
2011
|
+
/**
|
|
2012
|
+
* Additional metadata
|
|
2013
|
+
*/
|
|
2014
|
+
metadata?: { [key: string]: string };
|
|
2015
|
+
|
|
2016
|
+
/**
|
|
2017
|
+
* Billing provider payment method id, attached to this customer
|
|
2018
|
+
*/
|
|
2019
|
+
paymentMethodId?: string;
|
|
2020
|
+
}
|
|
2021
|
+
|
|
2022
|
+
export namespace Zuora {
|
|
2023
|
+
/**
|
|
2024
|
+
* Physical address
|
|
2025
|
+
*/
|
|
2026
|
+
export interface BillingAddress {
|
|
2027
|
+
/**
|
|
2028
|
+
* City name
|
|
2029
|
+
*/
|
|
2030
|
+
city?: string;
|
|
2031
|
+
|
|
2032
|
+
/**
|
|
2033
|
+
* Country code or name
|
|
2034
|
+
*/
|
|
2035
|
+
country?: string;
|
|
2036
|
+
|
|
2037
|
+
/**
|
|
2038
|
+
* Street address line 1
|
|
2039
|
+
*/
|
|
2040
|
+
line1?: string;
|
|
2041
|
+
|
|
2042
|
+
/**
|
|
2043
|
+
* Street address line 2
|
|
2044
|
+
*/
|
|
2045
|
+
line2?: string;
|
|
2046
|
+
|
|
2047
|
+
/**
|
|
2048
|
+
* Postal or ZIP code
|
|
2049
|
+
*/
|
|
2050
|
+
postalCode?: string;
|
|
2051
|
+
|
|
2052
|
+
/**
|
|
2053
|
+
* State or province
|
|
2054
|
+
*/
|
|
2055
|
+
state?: string;
|
|
2056
|
+
}
|
|
2057
|
+
}
|
|
2058
|
+
}
|
|
467
2059
|
}
|
|
468
2060
|
|
|
469
2061
|
export interface CustomerListParams extends MyCursorIDPageParams {
|
|
@@ -574,6 +2166,128 @@ export interface CustomerProvisionParams {
|
|
|
574
2166
|
*/
|
|
575
2167
|
id: string;
|
|
576
2168
|
|
|
2169
|
+
/**
|
|
2170
|
+
* The billing currency of the customer
|
|
2171
|
+
*/
|
|
2172
|
+
billingCurrency?:
|
|
2173
|
+
| 'usd'
|
|
2174
|
+
| 'aed'
|
|
2175
|
+
| 'all'
|
|
2176
|
+
| 'amd'
|
|
2177
|
+
| 'ang'
|
|
2178
|
+
| 'aud'
|
|
2179
|
+
| 'awg'
|
|
2180
|
+
| 'azn'
|
|
2181
|
+
| 'bam'
|
|
2182
|
+
| 'bbd'
|
|
2183
|
+
| 'bdt'
|
|
2184
|
+
| 'bgn'
|
|
2185
|
+
| 'bif'
|
|
2186
|
+
| 'bmd'
|
|
2187
|
+
| 'bnd'
|
|
2188
|
+
| 'bsd'
|
|
2189
|
+
| 'bwp'
|
|
2190
|
+
| 'byn'
|
|
2191
|
+
| 'bzd'
|
|
2192
|
+
| 'brl'
|
|
2193
|
+
| 'cad'
|
|
2194
|
+
| 'cdf'
|
|
2195
|
+
| 'chf'
|
|
2196
|
+
| 'cny'
|
|
2197
|
+
| 'czk'
|
|
2198
|
+
| 'dkk'
|
|
2199
|
+
| 'dop'
|
|
2200
|
+
| 'dzd'
|
|
2201
|
+
| 'egp'
|
|
2202
|
+
| 'etb'
|
|
2203
|
+
| 'eur'
|
|
2204
|
+
| 'fjd'
|
|
2205
|
+
| 'gbp'
|
|
2206
|
+
| 'gel'
|
|
2207
|
+
| 'gip'
|
|
2208
|
+
| 'gmd'
|
|
2209
|
+
| 'gyd'
|
|
2210
|
+
| 'hkd'
|
|
2211
|
+
| 'hrk'
|
|
2212
|
+
| 'htg'
|
|
2213
|
+
| 'idr'
|
|
2214
|
+
| 'ils'
|
|
2215
|
+
| 'inr'
|
|
2216
|
+
| 'isk'
|
|
2217
|
+
| 'jmd'
|
|
2218
|
+
| 'jpy'
|
|
2219
|
+
| 'kes'
|
|
2220
|
+
| 'kgs'
|
|
2221
|
+
| 'khr'
|
|
2222
|
+
| 'kmf'
|
|
2223
|
+
| 'krw'
|
|
2224
|
+
| 'kyd'
|
|
2225
|
+
| 'kzt'
|
|
2226
|
+
| 'lbp'
|
|
2227
|
+
| 'lkr'
|
|
2228
|
+
| 'lrd'
|
|
2229
|
+
| 'lsl'
|
|
2230
|
+
| 'mad'
|
|
2231
|
+
| 'mdl'
|
|
2232
|
+
| 'mga'
|
|
2233
|
+
| 'mkd'
|
|
2234
|
+
| 'mmk'
|
|
2235
|
+
| 'mnt'
|
|
2236
|
+
| 'mop'
|
|
2237
|
+
| 'mro'
|
|
2238
|
+
| 'mvr'
|
|
2239
|
+
| 'mwk'
|
|
2240
|
+
| 'mxn'
|
|
2241
|
+
| 'myr'
|
|
2242
|
+
| 'mzn'
|
|
2243
|
+
| 'nad'
|
|
2244
|
+
| 'ngn'
|
|
2245
|
+
| 'nok'
|
|
2246
|
+
| 'npr'
|
|
2247
|
+
| 'nzd'
|
|
2248
|
+
| 'pgk'
|
|
2249
|
+
| 'php'
|
|
2250
|
+
| 'pkr'
|
|
2251
|
+
| 'pln'
|
|
2252
|
+
| 'qar'
|
|
2253
|
+
| 'ron'
|
|
2254
|
+
| 'rsd'
|
|
2255
|
+
| 'rub'
|
|
2256
|
+
| 'rwf'
|
|
2257
|
+
| 'sar'
|
|
2258
|
+
| 'sbd'
|
|
2259
|
+
| 'scr'
|
|
2260
|
+
| 'sek'
|
|
2261
|
+
| 'sgd'
|
|
2262
|
+
| 'sle'
|
|
2263
|
+
| 'sll'
|
|
2264
|
+
| 'sos'
|
|
2265
|
+
| 'szl'
|
|
2266
|
+
| 'thb'
|
|
2267
|
+
| 'tjs'
|
|
2268
|
+
| 'top'
|
|
2269
|
+
| 'try'
|
|
2270
|
+
| 'ttd'
|
|
2271
|
+
| 'tzs'
|
|
2272
|
+
| 'uah'
|
|
2273
|
+
| 'uzs'
|
|
2274
|
+
| 'vnd'
|
|
2275
|
+
| 'vuv'
|
|
2276
|
+
| 'wst'
|
|
2277
|
+
| 'xaf'
|
|
2278
|
+
| 'xcd'
|
|
2279
|
+
| 'yer'
|
|
2280
|
+
| 'zar'
|
|
2281
|
+
| 'zmw'
|
|
2282
|
+
| 'clp'
|
|
2283
|
+
| 'djf'
|
|
2284
|
+
| 'gnf'
|
|
2285
|
+
| 'ugx'
|
|
2286
|
+
| 'pyg'
|
|
2287
|
+
| 'xof'
|
|
2288
|
+
| 'xpf'
|
|
2289
|
+
| null;
|
|
2290
|
+
|
|
577
2291
|
/**
|
|
578
2292
|
* The unique identifier for the entity in the billing provider
|
|
579
2293
|
*/
|
|
@@ -582,7 +2296,7 @@ export interface CustomerProvisionParams {
|
|
|
582
2296
|
/**
|
|
583
2297
|
* Customer level coupon
|
|
584
2298
|
*/
|
|
585
|
-
couponId?: string | null;
|
|
2299
|
+
couponId?: (string & {}) | '' | null;
|
|
586
2300
|
|
|
587
2301
|
/**
|
|
588
2302
|
* The default payment method details
|
|
@@ -599,6 +2313,11 @@ export interface CustomerProvisionParams {
|
|
|
599
2313
|
*/
|
|
600
2314
|
integrations?: Array<CustomerProvisionParams.Integration>;
|
|
601
2315
|
|
|
2316
|
+
/**
|
|
2317
|
+
* Language to use for this customer
|
|
2318
|
+
*/
|
|
2319
|
+
language?: string | null;
|
|
2320
|
+
|
|
602
2321
|
/**
|
|
603
2322
|
* Additional metadata
|
|
604
2323
|
*/
|
|
@@ -608,6 +2327,16 @@ export interface CustomerProvisionParams {
|
|
|
608
2327
|
* The name of the customer
|
|
609
2328
|
*/
|
|
610
2329
|
name?: string | null;
|
|
2330
|
+
|
|
2331
|
+
/**
|
|
2332
|
+
* Vendor-specific billing passthrough fields.
|
|
2333
|
+
*/
|
|
2334
|
+
passthrough?: CustomerProvisionParams.Passthrough;
|
|
2335
|
+
|
|
2336
|
+
/**
|
|
2337
|
+
* Timezone to use for this customer
|
|
2338
|
+
*/
|
|
2339
|
+
timezone?: string | null;
|
|
611
2340
|
}
|
|
612
2341
|
|
|
613
2342
|
export namespace CustomerProvisionParams {
|
|
@@ -670,6 +2399,335 @@ export namespace CustomerProvisionParams {
|
|
|
670
2399
|
| 'OPEN_FGA'
|
|
671
2400
|
| 'APP_STORE';
|
|
672
2401
|
}
|
|
2402
|
+
|
|
2403
|
+
/**
|
|
2404
|
+
* Vendor-specific billing passthrough fields.
|
|
2405
|
+
*/
|
|
2406
|
+
export interface Passthrough {
|
|
2407
|
+
/**
|
|
2408
|
+
* Stripe-specific billing fields for the customer.
|
|
2409
|
+
*/
|
|
2410
|
+
stripe?: Passthrough.Stripe;
|
|
2411
|
+
|
|
2412
|
+
/**
|
|
2413
|
+
* Zuora-specific billing fields for the customer.
|
|
2414
|
+
*/
|
|
2415
|
+
zuora?: Passthrough.Zuora;
|
|
2416
|
+
}
|
|
2417
|
+
|
|
2418
|
+
export namespace Passthrough {
|
|
2419
|
+
/**
|
|
2420
|
+
* Stripe-specific billing fields for the customer.
|
|
2421
|
+
*/
|
|
2422
|
+
export interface Stripe {
|
|
2423
|
+
/**
|
|
2424
|
+
* Physical address
|
|
2425
|
+
*/
|
|
2426
|
+
billingAddress?: Stripe.BillingAddress;
|
|
2427
|
+
|
|
2428
|
+
/**
|
|
2429
|
+
* Customer name
|
|
2430
|
+
*/
|
|
2431
|
+
customerName?: string;
|
|
2432
|
+
|
|
2433
|
+
/**
|
|
2434
|
+
* Invoice custom fields
|
|
2435
|
+
*/
|
|
2436
|
+
invoiceCustomFields?: { [key: string]: string };
|
|
2437
|
+
|
|
2438
|
+
/**
|
|
2439
|
+
* Additional metadata
|
|
2440
|
+
*/
|
|
2441
|
+
metadata?: { [key: string]: string };
|
|
2442
|
+
|
|
2443
|
+
/**
|
|
2444
|
+
* Billing provider payment method id, attached to this customer
|
|
2445
|
+
*/
|
|
2446
|
+
paymentMethodId?: string;
|
|
2447
|
+
|
|
2448
|
+
/**
|
|
2449
|
+
* Physical address
|
|
2450
|
+
*/
|
|
2451
|
+
shippingAddress?: Stripe.ShippingAddress;
|
|
2452
|
+
|
|
2453
|
+
/**
|
|
2454
|
+
* Tax IDs
|
|
2455
|
+
*/
|
|
2456
|
+
taxIds?: Array<Stripe.TaxID>;
|
|
2457
|
+
}
|
|
2458
|
+
|
|
2459
|
+
export namespace Stripe {
|
|
2460
|
+
/**
|
|
2461
|
+
* Physical address
|
|
2462
|
+
*/
|
|
2463
|
+
export interface BillingAddress {
|
|
2464
|
+
/**
|
|
2465
|
+
* City name
|
|
2466
|
+
*/
|
|
2467
|
+
city?: string;
|
|
2468
|
+
|
|
2469
|
+
/**
|
|
2470
|
+
* Country code or name
|
|
2471
|
+
*/
|
|
2472
|
+
country?: string;
|
|
2473
|
+
|
|
2474
|
+
/**
|
|
2475
|
+
* Street address line 1
|
|
2476
|
+
*/
|
|
2477
|
+
line1?: string;
|
|
2478
|
+
|
|
2479
|
+
/**
|
|
2480
|
+
* Street address line 2
|
|
2481
|
+
*/
|
|
2482
|
+
line2?: string;
|
|
2483
|
+
|
|
2484
|
+
/**
|
|
2485
|
+
* Postal or ZIP code
|
|
2486
|
+
*/
|
|
2487
|
+
postalCode?: string;
|
|
2488
|
+
|
|
2489
|
+
/**
|
|
2490
|
+
* State or province
|
|
2491
|
+
*/
|
|
2492
|
+
state?: string;
|
|
2493
|
+
}
|
|
2494
|
+
|
|
2495
|
+
/**
|
|
2496
|
+
* Physical address
|
|
2497
|
+
*/
|
|
2498
|
+
export interface ShippingAddress {
|
|
2499
|
+
/**
|
|
2500
|
+
* City name
|
|
2501
|
+
*/
|
|
2502
|
+
city?: string;
|
|
2503
|
+
|
|
2504
|
+
/**
|
|
2505
|
+
* Country code or name
|
|
2506
|
+
*/
|
|
2507
|
+
country?: string;
|
|
2508
|
+
|
|
2509
|
+
/**
|
|
2510
|
+
* Street address line 1
|
|
2511
|
+
*/
|
|
2512
|
+
line1?: string;
|
|
2513
|
+
|
|
2514
|
+
/**
|
|
2515
|
+
* Street address line 2
|
|
2516
|
+
*/
|
|
2517
|
+
line2?: string;
|
|
2518
|
+
|
|
2519
|
+
/**
|
|
2520
|
+
* Postal or ZIP code
|
|
2521
|
+
*/
|
|
2522
|
+
postalCode?: string;
|
|
2523
|
+
|
|
2524
|
+
/**
|
|
2525
|
+
* State or province
|
|
2526
|
+
*/
|
|
2527
|
+
state?: string;
|
|
2528
|
+
}
|
|
2529
|
+
|
|
2530
|
+
/**
|
|
2531
|
+
* Tax identifier with type and value for customer tax exemptions.
|
|
2532
|
+
*/
|
|
2533
|
+
export interface TaxID {
|
|
2534
|
+
/**
|
|
2535
|
+
* The type of tax exemption identifier, such as VAT.
|
|
2536
|
+
*/
|
|
2537
|
+
type: string;
|
|
2538
|
+
|
|
2539
|
+
/**
|
|
2540
|
+
* The actual tax identifier value
|
|
2541
|
+
*/
|
|
2542
|
+
value: string;
|
|
2543
|
+
}
|
|
2544
|
+
}
|
|
2545
|
+
|
|
2546
|
+
/**
|
|
2547
|
+
* Zuora-specific billing fields for the customer.
|
|
2548
|
+
*/
|
|
2549
|
+
export interface Zuora {
|
|
2550
|
+
/**
|
|
2551
|
+
* Physical address
|
|
2552
|
+
*/
|
|
2553
|
+
billingAddress?: Zuora.BillingAddress;
|
|
2554
|
+
|
|
2555
|
+
/**
|
|
2556
|
+
* Customers selected currency
|
|
2557
|
+
*/
|
|
2558
|
+
currency?:
|
|
2559
|
+
| 'usd'
|
|
2560
|
+
| 'aed'
|
|
2561
|
+
| 'all'
|
|
2562
|
+
| 'amd'
|
|
2563
|
+
| 'ang'
|
|
2564
|
+
| 'aud'
|
|
2565
|
+
| 'awg'
|
|
2566
|
+
| 'azn'
|
|
2567
|
+
| 'bam'
|
|
2568
|
+
| 'bbd'
|
|
2569
|
+
| 'bdt'
|
|
2570
|
+
| 'bgn'
|
|
2571
|
+
| 'bif'
|
|
2572
|
+
| 'bmd'
|
|
2573
|
+
| 'bnd'
|
|
2574
|
+
| 'bsd'
|
|
2575
|
+
| 'bwp'
|
|
2576
|
+
| 'byn'
|
|
2577
|
+
| 'bzd'
|
|
2578
|
+
| 'brl'
|
|
2579
|
+
| 'cad'
|
|
2580
|
+
| 'cdf'
|
|
2581
|
+
| 'chf'
|
|
2582
|
+
| 'cny'
|
|
2583
|
+
| 'czk'
|
|
2584
|
+
| 'dkk'
|
|
2585
|
+
| 'dop'
|
|
2586
|
+
| 'dzd'
|
|
2587
|
+
| 'egp'
|
|
2588
|
+
| 'etb'
|
|
2589
|
+
| 'eur'
|
|
2590
|
+
| 'fjd'
|
|
2591
|
+
| 'gbp'
|
|
2592
|
+
| 'gel'
|
|
2593
|
+
| 'gip'
|
|
2594
|
+
| 'gmd'
|
|
2595
|
+
| 'gyd'
|
|
2596
|
+
| 'hkd'
|
|
2597
|
+
| 'hrk'
|
|
2598
|
+
| 'htg'
|
|
2599
|
+
| 'idr'
|
|
2600
|
+
| 'ils'
|
|
2601
|
+
| 'inr'
|
|
2602
|
+
| 'isk'
|
|
2603
|
+
| 'jmd'
|
|
2604
|
+
| 'jpy'
|
|
2605
|
+
| 'kes'
|
|
2606
|
+
| 'kgs'
|
|
2607
|
+
| 'khr'
|
|
2608
|
+
| 'kmf'
|
|
2609
|
+
| 'krw'
|
|
2610
|
+
| 'kyd'
|
|
2611
|
+
| 'kzt'
|
|
2612
|
+
| 'lbp'
|
|
2613
|
+
| 'lkr'
|
|
2614
|
+
| 'lrd'
|
|
2615
|
+
| 'lsl'
|
|
2616
|
+
| 'mad'
|
|
2617
|
+
| 'mdl'
|
|
2618
|
+
| 'mga'
|
|
2619
|
+
| 'mkd'
|
|
2620
|
+
| 'mmk'
|
|
2621
|
+
| 'mnt'
|
|
2622
|
+
| 'mop'
|
|
2623
|
+
| 'mro'
|
|
2624
|
+
| 'mvr'
|
|
2625
|
+
| 'mwk'
|
|
2626
|
+
| 'mxn'
|
|
2627
|
+
| 'myr'
|
|
2628
|
+
| 'mzn'
|
|
2629
|
+
| 'nad'
|
|
2630
|
+
| 'ngn'
|
|
2631
|
+
| 'nok'
|
|
2632
|
+
| 'npr'
|
|
2633
|
+
| 'nzd'
|
|
2634
|
+
| 'pgk'
|
|
2635
|
+
| 'php'
|
|
2636
|
+
| 'pkr'
|
|
2637
|
+
| 'pln'
|
|
2638
|
+
| 'qar'
|
|
2639
|
+
| 'ron'
|
|
2640
|
+
| 'rsd'
|
|
2641
|
+
| 'rub'
|
|
2642
|
+
| 'rwf'
|
|
2643
|
+
| 'sar'
|
|
2644
|
+
| 'sbd'
|
|
2645
|
+
| 'scr'
|
|
2646
|
+
| 'sek'
|
|
2647
|
+
| 'sgd'
|
|
2648
|
+
| 'sle'
|
|
2649
|
+
| 'sll'
|
|
2650
|
+
| 'sos'
|
|
2651
|
+
| 'szl'
|
|
2652
|
+
| 'thb'
|
|
2653
|
+
| 'tjs'
|
|
2654
|
+
| 'top'
|
|
2655
|
+
| 'try'
|
|
2656
|
+
| 'ttd'
|
|
2657
|
+
| 'tzs'
|
|
2658
|
+
| 'uah'
|
|
2659
|
+
| 'uzs'
|
|
2660
|
+
| 'vnd'
|
|
2661
|
+
| 'vuv'
|
|
2662
|
+
| 'wst'
|
|
2663
|
+
| 'xaf'
|
|
2664
|
+
| 'xcd'
|
|
2665
|
+
| 'yer'
|
|
2666
|
+
| 'zar'
|
|
2667
|
+
| 'zmw'
|
|
2668
|
+
| 'clp'
|
|
2669
|
+
| 'djf'
|
|
2670
|
+
| 'gnf'
|
|
2671
|
+
| 'ugx'
|
|
2672
|
+
| 'pyg'
|
|
2673
|
+
| 'xof'
|
|
2674
|
+
| 'xpf';
|
|
2675
|
+
|
|
2676
|
+
/**
|
|
2677
|
+
* Additional metadata
|
|
2678
|
+
*/
|
|
2679
|
+
metadata?: { [key: string]: string };
|
|
2680
|
+
|
|
2681
|
+
/**
|
|
2682
|
+
* Billing provider payment method id, attached to this customer
|
|
2683
|
+
*/
|
|
2684
|
+
paymentMethodId?: string;
|
|
2685
|
+
}
|
|
2686
|
+
|
|
2687
|
+
export namespace Zuora {
|
|
2688
|
+
/**
|
|
2689
|
+
* Physical address
|
|
2690
|
+
*/
|
|
2691
|
+
export interface BillingAddress {
|
|
2692
|
+
/**
|
|
2693
|
+
* City name
|
|
2694
|
+
*/
|
|
2695
|
+
city?: string;
|
|
2696
|
+
|
|
2697
|
+
/**
|
|
2698
|
+
* Country code or name
|
|
2699
|
+
*/
|
|
2700
|
+
country?: string;
|
|
2701
|
+
|
|
2702
|
+
/**
|
|
2703
|
+
* Street address line 1
|
|
2704
|
+
*/
|
|
2705
|
+
line1?: string;
|
|
2706
|
+
|
|
2707
|
+
/**
|
|
2708
|
+
* Street address line 2
|
|
2709
|
+
*/
|
|
2710
|
+
line2?: string;
|
|
2711
|
+
|
|
2712
|
+
/**
|
|
2713
|
+
* Postal or ZIP code
|
|
2714
|
+
*/
|
|
2715
|
+
postalCode?: string;
|
|
2716
|
+
|
|
2717
|
+
/**
|
|
2718
|
+
* State or province
|
|
2719
|
+
*/
|
|
2720
|
+
state?: string;
|
|
2721
|
+
}
|
|
2722
|
+
}
|
|
2723
|
+
}
|
|
2724
|
+
}
|
|
2725
|
+
|
|
2726
|
+
export interface CustomerRetrieveEntitlementsParams {
|
|
2727
|
+
/**
|
|
2728
|
+
* Resource ID to scope entitlements to a specific resource
|
|
2729
|
+
*/
|
|
2730
|
+
resourceId?: string;
|
|
673
2731
|
}
|
|
674
2732
|
|
|
675
2733
|
Customers.PaymentMethod = PaymentMethod;
|
|
@@ -681,6 +2739,7 @@ export declare namespace Customers {
|
|
|
681
2739
|
type CustomerListResponse as CustomerListResponse,
|
|
682
2740
|
type CustomerImportResponse as CustomerImportResponse,
|
|
683
2741
|
type CustomerListResourcesResponse as CustomerListResourcesResponse,
|
|
2742
|
+
type CustomerRetrieveEntitlementsResponse as CustomerRetrieveEntitlementsResponse,
|
|
684
2743
|
type CustomerListResponsesMyCursorIDPage as CustomerListResponsesMyCursorIDPage,
|
|
685
2744
|
type CustomerListResourcesResponsesMyCursorIDPage as CustomerListResourcesResponsesMyCursorIDPage,
|
|
686
2745
|
type CustomerUpdateParams as CustomerUpdateParams,
|
|
@@ -688,6 +2747,7 @@ export declare namespace Customers {
|
|
|
688
2747
|
type CustomerImportParams as CustomerImportParams,
|
|
689
2748
|
type CustomerListResourcesParams as CustomerListResourcesParams,
|
|
690
2749
|
type CustomerProvisionParams as CustomerProvisionParams,
|
|
2750
|
+
type CustomerRetrieveEntitlementsParams as CustomerRetrieveEntitlementsParams,
|
|
691
2751
|
};
|
|
692
2752
|
|
|
693
2753
|
export { PaymentMethod as PaymentMethod, type PaymentMethodAttachParams as PaymentMethodAttachParams };
|