orb-billing 4.74.0 → 5.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (137) hide show
  1. package/CHANGELOG.md +23 -0
  2. package/index.d.mts +148 -14
  3. package/index.d.ts +148 -14
  4. package/index.d.ts.map +1 -1
  5. package/index.js +0 -3
  6. package/index.js.map +1 -1
  7. package/index.mjs +3 -6
  8. package/index.mjs.map +1 -1
  9. package/package.json +1 -1
  10. package/resources/alerts.d.ts +20 -88
  11. package/resources/alerts.d.ts.map +1 -1
  12. package/resources/alerts.js.map +1 -1
  13. package/resources/alerts.mjs.map +1 -1
  14. package/resources/beta/beta.d.ts +9 -7313
  15. package/resources/beta/beta.d.ts.map +1 -1
  16. package/resources/beta/beta.js.map +1 -1
  17. package/resources/beta/beta.mjs.map +1 -1
  18. package/resources/beta/external-plan-id.d.ts +7 -7074
  19. package/resources/beta/external-plan-id.d.ts.map +1 -1
  20. package/resources/beta/external-plan-id.js.map +1 -1
  21. package/resources/beta/external-plan-id.mjs.map +1 -1
  22. package/resources/credit-notes.d.ts +9 -163
  23. package/resources/credit-notes.d.ts.map +1 -1
  24. package/resources/credit-notes.js +3 -6
  25. package/resources/credit-notes.js.map +1 -1
  26. package/resources/credit-notes.mjs +2 -4
  27. package/resources/credit-notes.mjs.map +1 -1
  28. package/resources/customers/balance-transactions.d.ts +5 -32
  29. package/resources/customers/balance-transactions.d.ts.map +1 -1
  30. package/resources/customers/balance-transactions.js.map +1 -1
  31. package/resources/customers/balance-transactions.mjs.map +1 -1
  32. package/resources/customers/costs.d.ts +3 -81
  33. package/resources/customers/costs.d.ts.map +1 -1
  34. package/resources/customers/credits/credits.d.ts +4 -4
  35. package/resources/customers/credits/credits.d.ts.map +1 -1
  36. package/resources/customers/credits/credits.js.map +1 -1
  37. package/resources/customers/credits/credits.mjs.map +1 -1
  38. package/resources/customers/credits/index.d.ts +2 -2
  39. package/resources/customers/credits/index.d.ts.map +1 -1
  40. package/resources/customers/credits/index.js.map +1 -1
  41. package/resources/customers/credits/index.mjs.map +1 -1
  42. package/resources/customers/credits/ledger.d.ts +171 -962
  43. package/resources/customers/credits/ledger.d.ts.map +1 -1
  44. package/resources/customers/credits/ledger.js.map +1 -1
  45. package/resources/customers/credits/ledger.mjs.map +1 -1
  46. package/resources/customers/credits/top-ups.d.ts +29 -121
  47. package/resources/customers/credits/top-ups.d.ts.map +1 -1
  48. package/resources/customers/credits/top-ups.js.map +1 -1
  49. package/resources/customers/credits/top-ups.mjs.map +1 -1
  50. package/resources/customers/customers.d.ts +72 -678
  51. package/resources/customers/customers.d.ts.map +1 -1
  52. package/resources/customers/customers.js.map +1 -1
  53. package/resources/customers/customers.mjs.map +1 -1
  54. package/resources/customers/index.d.ts +1 -1
  55. package/resources/customers/index.d.ts.map +1 -1
  56. package/resources/customers/index.js.map +1 -1
  57. package/resources/customers/index.mjs.map +1 -1
  58. package/resources/index.d.ts +7 -7
  59. package/resources/index.d.ts.map +1 -1
  60. package/resources/index.js +1 -4
  61. package/resources/index.js.map +1 -1
  62. package/resources/index.mjs +3 -3
  63. package/resources/index.mjs.map +1 -1
  64. package/resources/invoice-line-items.d.ts +6 -395
  65. package/resources/invoice-line-items.d.ts.map +1 -1
  66. package/resources/invoice-line-items.js.map +1 -1
  67. package/resources/invoice-line-items.mjs.map +1 -1
  68. package/resources/invoices.d.ts +30 -1700
  69. package/resources/invoices.d.ts.map +1 -1
  70. package/resources/invoices.js +3 -6
  71. package/resources/invoices.js.map +1 -1
  72. package/resources/invoices.mjs +2 -4
  73. package/resources/invoices.mjs.map +1 -1
  74. package/resources/plans/plans.d.ts +7 -3801
  75. package/resources/plans/plans.d.ts.map +1 -1
  76. package/resources/plans/plans.js.map +1 -1
  77. package/resources/plans/plans.mjs.map +1 -1
  78. package/resources/prices/external-price-id.d.ts +3 -3
  79. package/resources/prices/external-price-id.d.ts.map +1 -1
  80. package/resources/prices/index.d.ts +1 -1
  81. package/resources/prices/index.d.ts.map +1 -1
  82. package/resources/prices/index.js +1 -2
  83. package/resources/prices/index.js.map +1 -1
  84. package/resources/prices/index.mjs +1 -1
  85. package/resources/prices/index.mjs.map +1 -1
  86. package/resources/prices/prices.d.ts +346 -9372
  87. package/resources/prices/prices.d.ts.map +1 -1
  88. package/resources/prices/prices.js +39 -20
  89. package/resources/prices/prices.js.map +1 -1
  90. package/resources/prices/prices.mjs +38 -18
  91. package/resources/prices/prices.mjs.map +1 -1
  92. package/resources/shared.d.ts +7269 -9
  93. package/resources/shared.d.ts.map +1 -1
  94. package/resources/shared.js +11 -0
  95. package/resources/shared.js.map +1 -1
  96. package/resources/shared.mjs +7 -1
  97. package/resources/shared.mjs.map +1 -1
  98. package/resources/subscription-changes.d.ts +138 -2158
  99. package/resources/subscription-changes.d.ts.map +1 -1
  100. package/resources/subscription-changes.js.map +1 -1
  101. package/resources/subscription-changes.mjs.map +1 -1
  102. package/resources/subscriptions.d.ts +2639 -27234
  103. package/resources/subscriptions.d.ts.map +1 -1
  104. package/resources/subscriptions.js +1 -1
  105. package/resources/subscriptions.js.map +1 -1
  106. package/resources/subscriptions.mjs +1 -1
  107. package/resources/subscriptions.mjs.map +1 -1
  108. package/src/index.ts +219 -42
  109. package/src/resources/alerts.ts +20 -94
  110. package/src/resources/beta/beta.ts +124 -8892
  111. package/src/resources/beta/external-plan-id.ts +118 -8593
  112. package/src/resources/credit-notes.ts +10 -217
  113. package/src/resources/customers/balance-transactions.ts +5 -36
  114. package/src/resources/customers/costs.ts +3 -101
  115. package/src/resources/customers/credits/credits.ts +18 -0
  116. package/src/resources/customers/credits/index.ts +9 -0
  117. package/src/resources/customers/credits/ledger.ts +212 -1435
  118. package/src/resources/customers/credits/top-ups.ts +33 -136
  119. package/src/resources/customers/customers.ts +162 -1454
  120. package/src/resources/customers/index.ts +8 -0
  121. package/src/resources/index.ts +42 -22
  122. package/src/resources/invoice-line-items.ts +10 -501
  123. package/src/resources/invoices.ts +60 -2394
  124. package/src/resources/plans/plans.ts +38 -4588
  125. package/src/resources/prices/external-price-id.ts +3 -3
  126. package/src/resources/prices/index.ts +2 -2
  127. package/src/resources/prices/prices.ts +500 -11810
  128. package/src/resources/shared.ts +9582 -22
  129. package/src/resources/subscription-changes.ts +171 -2670
  130. package/src/resources/subscriptions.ts +3162 -32900
  131. package/src/version.ts +1 -1
  132. package/version.d.ts +1 -1
  133. package/version.d.ts.map +1 -1
  134. package/version.js +1 -1
  135. package/version.js.map +1 -1
  136. package/version.mjs +1 -1
  137. package/version.mjs.map +1 -1
@@ -3,6 +3,7 @@
3
3
  import { APIResource } from '../../resource';
4
4
  import { isRequestOptions } from '../../core';
5
5
  import * as Core from '../../core';
6
+ import * as Shared from '../shared';
6
7
  import * as BalanceTransactionsAPI from './balance-transactions';
7
8
  import {
8
9
  BalanceTransactionCreateParams,
@@ -185,6 +186,26 @@ export class Customers extends APIResource {
185
186
 
186
187
  export class CustomersPage extends Page<Customer> {}
187
188
 
189
+ export interface AccountingProviderConfig {
190
+ external_provider_id: string;
191
+
192
+ provider_type: string;
193
+ }
194
+
195
+ export interface AddressInput {
196
+ city?: string | null;
197
+
198
+ country?: string | null;
199
+
200
+ line1?: string | null;
201
+
202
+ line2?: string | null;
203
+
204
+ postal_code?: string | null;
205
+
206
+ state?: string | null;
207
+ }
208
+
188
209
  /**
189
210
  * A customer is a buyer of your products, and the other party to the billing
190
211
  * relationship.
@@ -217,7 +238,7 @@ export interface Customer {
217
238
  */
218
239
  balance: string;
219
240
 
220
- billing_address: Customer.BillingAddress | null;
241
+ billing_address: Shared.Address | null;
221
242
 
222
243
  created_at: string;
223
244
 
@@ -274,7 +295,7 @@ export interface Customer {
274
295
 
275
296
  portal_url: string | null;
276
297
 
277
- shipping_address: Customer.ShippingAddress | null;
298
+ shipping_address: Shared.Address | null;
278
299
 
279
300
  /**
280
301
  * Tax IDs are commonly required to be displayed on customer invoices, which are
@@ -383,7 +404,7 @@ export interface Customer {
383
404
  * | Venezuela | `ve_rif` | Venezuelan RIF Number |
384
405
  * | Vietnam | `vn_tin` | Vietnamese Tax ID Number |
385
406
  */
386
- tax_id: Customer.TaxID | null;
407
+ tax_id: Shared.CustomerTaxID | null;
387
408
 
388
409
  /**
389
410
  * A timezone identifier from the IANA timezone database, such as
@@ -398,319 +419,13 @@ export interface Customer {
398
419
  }
399
420
 
400
421
  export namespace Customer {
401
- export interface BillingAddress {
402
- city: string | null;
403
-
404
- country: string | null;
405
-
406
- line1: string | null;
407
-
408
- line2: string | null;
409
-
410
- postal_code: string | null;
411
-
412
- state: string | null;
413
- }
414
-
415
422
  /**
416
423
  * The hierarchical relationships for this customer.
417
424
  */
418
425
  export interface Hierarchy {
419
- children: Array<Hierarchy.Child>;
420
-
421
- parent: Hierarchy.Parent | null;
422
- }
423
-
424
- export namespace Hierarchy {
425
- export interface Child {
426
- id: string;
427
-
428
- external_customer_id: string | null;
429
- }
430
-
431
- export interface Parent {
432
- id: string;
433
-
434
- external_customer_id: string | null;
435
- }
436
- }
437
-
438
- export interface ShippingAddress {
439
- city: string | null;
440
-
441
- country: string | null;
442
-
443
- line1: string | null;
444
-
445
- line2: string | null;
446
-
447
- postal_code: string | null;
448
-
449
- state: string | null;
450
- }
426
+ children: Array<Shared.CustomerMinified>;
451
427
 
452
- /**
453
- * Tax IDs are commonly required to be displayed on customer invoices, which are
454
- * added to the headers of invoices.
455
- *
456
- * ### Supported Tax ID Countries and Types
457
- *
458
- * | Country | Type | Description |
459
- * | -------------------- | ------------ | ------------------------------------------------------------------------------------------------------- |
460
- * | Andorra | `ad_nrt` | Andorran NRT Number |
461
- * | Argentina | `ar_cuit` | Argentinian Tax ID Number |
462
- * | Australia | `au_abn` | Australian Business Number (AU ABN) |
463
- * | Australia | `au_arn` | Australian Taxation Office Reference Number |
464
- * | Austria | `eu_vat` | European VAT Number |
465
- * | Bahrain | `bh_vat` | Bahraini VAT Number |
466
- * | Belgium | `eu_vat` | European VAT Number |
467
- * | Bolivia | `bo_tin` | Bolivian Tax ID |
468
- * | Brazil | `br_cnpj` | Brazilian CNPJ Number |
469
- * | Brazil | `br_cpf` | Brazilian CPF Number |
470
- * | Bulgaria | `bg_uic` | Bulgaria Unified Identification Code |
471
- * | Bulgaria | `eu_vat` | European VAT Number |
472
- * | Canada | `ca_bn` | Canadian BN |
473
- * | Canada | `ca_gst_hst` | Canadian GST/HST Number |
474
- * | Canada | `ca_pst_bc` | Canadian PST Number (British Columbia) |
475
- * | Canada | `ca_pst_mb` | Canadian PST Number (Manitoba) |
476
- * | Canada | `ca_pst_sk` | Canadian PST Number (Saskatchewan) |
477
- * | Canada | `ca_qst` | Canadian QST Number (Québec) |
478
- * | Chile | `cl_tin` | Chilean TIN |
479
- * | China | `cn_tin` | Chinese Tax ID |
480
- * | Colombia | `co_nit` | Colombian NIT Number |
481
- * | Costa Rica | `cr_tin` | Costa Rican Tax ID |
482
- * | Croatia | `eu_vat` | European VAT Number |
483
- * | Cyprus | `eu_vat` | European VAT Number |
484
- * | Czech Republic | `eu_vat` | European VAT Number |
485
- * | Denmark | `eu_vat` | European VAT Number |
486
- * | Dominican Republic | `do_rcn` | Dominican RCN Number |
487
- * | Ecuador | `ec_ruc` | Ecuadorian RUC Number |
488
- * | Egypt | `eg_tin` | Egyptian Tax Identification Number |
489
- * | El Salvador | `sv_nit` | El Salvadorian NIT Number |
490
- * | Estonia | `eu_vat` | European VAT Number |
491
- * | EU | `eu_oss_vat` | European One Stop Shop VAT Number for non-Union scheme |
492
- * | Finland | `eu_vat` | European VAT Number |
493
- * | France | `eu_vat` | European VAT Number |
494
- * | Georgia | `ge_vat` | Georgian VAT |
495
- * | Germany | `eu_vat` | European VAT Number |
496
- * | Greece | `eu_vat` | European VAT Number |
497
- * | Hong Kong | `hk_br` | Hong Kong BR Number |
498
- * | Hungary | `eu_vat` | European VAT Number |
499
- * | Hungary | `hu_tin` | Hungary Tax Number (adószám) |
500
- * | Iceland | `is_vat` | Icelandic VAT |
501
- * | India | `in_gst` | Indian GST Number |
502
- * | Indonesia | `id_npwp` | Indonesian NPWP Number |
503
- * | Ireland | `eu_vat` | European VAT Number |
504
- * | Israel | `il_vat` | Israel VAT |
505
- * | Italy | `eu_vat` | European VAT Number |
506
- * | Japan | `jp_cn` | Japanese Corporate Number (_Hōjin Bangō_) |
507
- * | Japan | `jp_rn` | Japanese Registered Foreign Businesses' Registration Number (_Tōroku Kokugai Jigyōsha no Tōroku Bangō_) |
508
- * | Japan | `jp_trn` | Japanese Tax Registration Number (_Tōroku Bangō_) |
509
- * | Kazakhstan | `kz_bin` | Kazakhstani Business Identification Number |
510
- * | Kenya | `ke_pin` | Kenya Revenue Authority Personal Identification Number |
511
- * | Latvia | `eu_vat` | European VAT Number |
512
- * | Liechtenstein | `li_uid` | Liechtensteinian UID Number |
513
- * | Lithuania | `eu_vat` | European VAT Number |
514
- * | Luxembourg | `eu_vat` | European VAT Number |
515
- * | Malaysia | `my_frp` | Malaysian FRP Number |
516
- * | Malaysia | `my_itn` | Malaysian ITN |
517
- * | Malaysia | `my_sst` | Malaysian SST Number |
518
- * | Malta | `eu_vat ` | European VAT Number |
519
- * | Mexico | `mx_rfc` | Mexican RFC Number |
520
- * | Netherlands | `eu_vat` | European VAT Number |
521
- * | New Zealand | `nz_gst` | New Zealand GST Number |
522
- * | Nigeria | `ng_tin` | Nigerian Tax Identification Number |
523
- * | Norway | `no_vat` | Norwegian VAT Number |
524
- * | Norway | `no_voec` | Norwegian VAT on e-commerce Number |
525
- * | Oman | `om_vat` | Omani VAT Number |
526
- * | Peru | `pe_ruc` | Peruvian RUC Number |
527
- * | Philippines | `ph_tin ` | Philippines Tax Identification Number |
528
- * | Poland | `eu_vat` | European VAT Number |
529
- * | Portugal | `eu_vat` | European VAT Number |
530
- * | Romania | `eu_vat` | European VAT Number |
531
- * | Romania | `ro_tin` | Romanian Tax ID Number |
532
- * | Russia | `ru_inn` | Russian INN |
533
- * | Russia | `ru_kpp` | Russian KPP |
534
- * | Saudi Arabia | `sa_vat` | Saudi Arabia VAT |
535
- * | Serbia | `rs_pib` | Serbian PIB Number |
536
- * | Singapore | `sg_gst` | Singaporean GST |
537
- * | Singapore | `sg_uen` | Singaporean UEN |
538
- * | Slovakia | `eu_vat` | European VAT Number |
539
- * | Slovenia | `eu_vat` | European VAT Number |
540
- * | Slovenia | `si_tin` | Slovenia Tax Number (davčna številka) |
541
- * | South Africa | `za_vat` | South African VAT Number |
542
- * | South Korea | `kr_brn` | Korean BRN |
543
- * | Spain | `es_cif` | Spanish NIF Number (previously Spanish CIF Number) |
544
- * | Spain | `eu_vat` | European VAT Number |
545
- * | Sweden | `eu_vat` | European VAT Number |
546
- * | Switzerland | `ch_vat` | Switzerland VAT Number |
547
- * | Taiwan | `tw_vat` | Taiwanese VAT |
548
- * | Thailand | `th_vat` | Thai VAT |
549
- * | Turkey | `tr_tin` | Turkish Tax Identification Number |
550
- * | Ukraine | `ua_vat` | Ukrainian VAT |
551
- * | United Arab Emirates | `ae_trn` | United Arab Emirates TRN |
552
- * | United Kingdom | `eu_vat` | Northern Ireland VAT Number |
553
- * | United Kingdom | `gb_vat` | United Kingdom VAT Number |
554
- * | United States | `us_ein` | United States EIN |
555
- * | Uruguay | `uy_ruc` | Uruguayan RUC Number |
556
- * | Venezuela | `ve_rif` | Venezuelan RIF Number |
557
- * | Vietnam | `vn_tin` | Vietnamese Tax ID Number |
558
- */
559
- export interface TaxID {
560
- country:
561
- | 'AD'
562
- | 'AE'
563
- | 'AR'
564
- | 'AT'
565
- | 'AU'
566
- | 'BE'
567
- | 'BG'
568
- | 'BH'
569
- | 'BO'
570
- | 'BR'
571
- | 'CA'
572
- | 'CH'
573
- | 'CL'
574
- | 'CN'
575
- | 'CO'
576
- | 'CR'
577
- | 'CY'
578
- | 'CZ'
579
- | 'DE'
580
- | 'DK'
581
- | 'EE'
582
- | 'DO'
583
- | 'EC'
584
- | 'EG'
585
- | 'ES'
586
- | 'EU'
587
- | 'FI'
588
- | 'FR'
589
- | 'GB'
590
- | 'GE'
591
- | 'GR'
592
- | 'HK'
593
- | 'HR'
594
- | 'HU'
595
- | 'ID'
596
- | 'IE'
597
- | 'IL'
598
- | 'IN'
599
- | 'IS'
600
- | 'IT'
601
- | 'JP'
602
- | 'KE'
603
- | 'KR'
604
- | 'KZ'
605
- | 'LI'
606
- | 'LT'
607
- | 'LU'
608
- | 'LV'
609
- | 'MT'
610
- | 'MX'
611
- | 'MY'
612
- | 'NG'
613
- | 'NL'
614
- | 'NO'
615
- | 'NZ'
616
- | 'OM'
617
- | 'PE'
618
- | 'PH'
619
- | 'PL'
620
- | 'PT'
621
- | 'RO'
622
- | 'RS'
623
- | 'RU'
624
- | 'SA'
625
- | 'SE'
626
- | 'SG'
627
- | 'SI'
628
- | 'SK'
629
- | 'SV'
630
- | 'TH'
631
- | 'TR'
632
- | 'TW'
633
- | 'UA'
634
- | 'US'
635
- | 'UY'
636
- | 'VE'
637
- | 'VN'
638
- | 'ZA';
639
-
640
- type:
641
- | 'ad_nrt'
642
- | 'ae_trn'
643
- | 'ar_cuit'
644
- | 'eu_vat'
645
- | 'au_abn'
646
- | 'au_arn'
647
- | 'bg_uic'
648
- | 'bh_vat'
649
- | 'bo_tin'
650
- | 'br_cnpj'
651
- | 'br_cpf'
652
- | 'ca_bn'
653
- | 'ca_gst_hst'
654
- | 'ca_pst_bc'
655
- | 'ca_pst_mb'
656
- | 'ca_pst_sk'
657
- | 'ca_qst'
658
- | 'ch_vat'
659
- | 'cl_tin'
660
- | 'cn_tin'
661
- | 'co_nit'
662
- | 'cr_tin'
663
- | 'do_rcn'
664
- | 'ec_ruc'
665
- | 'eg_tin'
666
- | 'es_cif'
667
- | 'eu_oss_vat'
668
- | 'gb_vat'
669
- | 'ge_vat'
670
- | 'hk_br'
671
- | 'hu_tin'
672
- | 'id_npwp'
673
- | 'il_vat'
674
- | 'in_gst'
675
- | 'is_vat'
676
- | 'jp_cn'
677
- | 'jp_rn'
678
- | 'jp_trn'
679
- | 'ke_pin'
680
- | 'kr_brn'
681
- | 'kz_bin'
682
- | 'li_uid'
683
- | 'mx_rfc'
684
- | 'my_frp'
685
- | 'my_itn'
686
- | 'my_sst'
687
- | 'ng_tin'
688
- | 'no_vat'
689
- | 'no_voec'
690
- | 'nz_gst'
691
- | 'om_vat'
692
- | 'pe_ruc'
693
- | 'ph_tin'
694
- | 'ro_tin'
695
- | 'rs_pib'
696
- | 'ru_inn'
697
- | 'ru_kpp'
698
- | 'sa_vat'
699
- | 'sg_gst'
700
- | 'sg_uen'
701
- | 'si_tin'
702
- | 'sv_nit'
703
- | 'th_vat'
704
- | 'tr_tin'
705
- | 'tw_vat'
706
- | 'ua_vat'
707
- | 'us_ein'
708
- | 'uy_ruc'
709
- | 've_rif'
710
- | 'vn_tin'
711
- | 'za_vat';
712
-
713
- value: string;
428
+ parent: Shared.CustomerMinified | null;
714
429
  }
715
430
 
716
431
  export interface AccountingSyncConfiguration {
@@ -732,6 +447,50 @@ export namespace Customer {
732
447
  }
733
448
  }
734
449
 
450
+ export interface CustomerHierarchyConfig {
451
+ /**
452
+ * A list of child customer IDs to add to the hierarchy. The desired child
453
+ * customers must not already be part of another hierarchy.
454
+ */
455
+ child_customer_ids?: Array<string>;
456
+
457
+ /**
458
+ * The ID of the parent customer in the hierarchy. The desired parent customer must
459
+ * not be a child of another customer.
460
+ */
461
+ parent_customer_id?: string | null;
462
+ }
463
+
464
+ export interface NewAccountingSyncConfiguration {
465
+ accounting_providers?: Array<AccountingProviderConfig> | null;
466
+
467
+ excluded?: boolean | null;
468
+ }
469
+
470
+ export interface NewAvalaraTaxConfiguration {
471
+ tax_exempt: boolean;
472
+
473
+ tax_provider: 'avalara';
474
+
475
+ tax_exemption_code?: string | null;
476
+ }
477
+
478
+ export interface NewReportingConfiguration {
479
+ exempt: boolean;
480
+ }
481
+
482
+ export interface NewSphereConfiguration {
483
+ tax_exempt: boolean;
484
+
485
+ tax_provider: 'sphere';
486
+ }
487
+
488
+ export interface NewTaxJarConfiguration {
489
+ tax_exempt: boolean;
490
+
491
+ tax_provider: 'taxjar';
492
+ }
493
+
735
494
  export interface CustomerCreateParams {
736
495
  /**
737
496
  * A valid customer email, to be used for notifications. When Orb triggers payment
@@ -745,7 +504,7 @@ export interface CustomerCreateParams {
745
504
  */
746
505
  name: string;
747
506
 
748
- accounting_sync_configuration?: CustomerCreateParams.AccountingSyncConfiguration | null;
507
+ accounting_sync_configuration?: NewAccountingSyncConfiguration | null;
749
508
 
750
509
  /**
751
510
  * Additional email addresses for this customer. If populated, these email
@@ -760,7 +519,7 @@ export interface CustomerCreateParams {
760
519
  */
761
520
  auto_collection?: boolean | null;
762
521
 
763
- billing_address?: CustomerCreateParams.BillingAddress | null;
522
+ billing_address?: AddressInput | null;
764
523
 
765
524
  /**
766
525
  * An ISO 4217 currency string used for the customer's invoices and balance. If not
@@ -780,7 +539,7 @@ export interface CustomerCreateParams {
780
539
  /**
781
540
  * The hierarchical relationships for this customer.
782
541
  */
783
- hierarchy?: CustomerCreateParams.Hierarchy | null;
542
+ hierarchy?: CustomerHierarchyConfig | null;
784
543
 
785
544
  /**
786
545
  * User-specified key/value pairs for the resource. Individual keys can be removed
@@ -802,15 +561,11 @@ export interface CustomerCreateParams {
802
561
  */
803
562
  payment_provider_id?: string | null;
804
563
 
805
- reporting_configuration?: CustomerCreateParams.ReportingConfiguration | null;
564
+ reporting_configuration?: NewReportingConfiguration | null;
806
565
 
807
- shipping_address?: CustomerCreateParams.ShippingAddress | null;
566
+ shipping_address?: AddressInput | null;
808
567
 
809
- tax_configuration?:
810
- | CustomerCreateParams.NewAvalaraTaxConfiguration
811
- | CustomerCreateParams.NewTaxJarConfiguration
812
- | CustomerCreateParams.NewSphereConfiguration
813
- | null;
568
+ tax_configuration?: NewAvalaraTaxConfiguration | NewTaxJarConfiguration | NewSphereConfiguration | null;
814
569
 
815
570
  /**
816
571
  * Tax IDs are commonly required to be displayed on customer invoices, which are
@@ -919,7 +674,7 @@ export interface CustomerCreateParams {
919
674
  * | Venezuela | `ve_rif` | Venezuelan RIF Number |
920
675
  * | Vietnam | `vn_tin` | Vietnamese Tax ID Number |
921
676
  */
922
- tax_id?: CustomerCreateParams.TaxID | null;
677
+ tax_id?: Shared.CustomerTaxID | null;
923
678
 
924
679
  /**
925
680
  * A timezone identifier from the IANA timezone database, such as
@@ -929,89 +684,82 @@ export interface CustomerCreateParams {
929
684
  timezone?: string | null;
930
685
  }
931
686
 
932
- export namespace CustomerCreateParams {
933
- export interface AccountingSyncConfiguration {
934
- accounting_providers?: Array<AccountingSyncConfiguration.AccountingProvider> | null;
935
-
936
- excluded?: boolean | null;
937
- }
938
-
939
- export namespace AccountingSyncConfiguration {
940
- export interface AccountingProvider {
941
- external_provider_id: string;
687
+ export interface CustomerUpdateParams {
688
+ accounting_sync_configuration?: NewAccountingSyncConfiguration | null;
942
689
 
943
- provider_type: string;
944
- }
945
- }
690
+ /**
691
+ * Additional email addresses for this customer. If populated, these email
692
+ * addresses will be CC'd for customer communications.
693
+ */
694
+ additional_emails?: Array<string> | null;
946
695
 
947
- export interface BillingAddress {
948
- city?: string | null;
696
+ /**
697
+ * Used to determine if invoices for this customer will automatically attempt to
698
+ * charge a saved payment method, if available. This parameter defaults to `True`
699
+ * when a payment provider is provided on customer creation.
700
+ */
701
+ auto_collection?: boolean | null;
949
702
 
950
- country?: string | null;
703
+ billing_address?: AddressInput | null;
951
704
 
952
- line1?: string | null;
705
+ /**
706
+ * An ISO 4217 currency string used for the customer's invoices and balance. If not
707
+ * set at creation time, will be set at subscription creation time.
708
+ */
709
+ currency?: string | null;
953
710
 
954
- line2?: string | null;
711
+ /**
712
+ * A valid customer email, to be used for invoicing and notifications.
713
+ */
714
+ email?: string | null;
955
715
 
956
- postal_code?: string | null;
716
+ email_delivery?: boolean | null;
957
717
 
958
- state?: string | null;
959
- }
718
+ /**
719
+ * The external customer ID. This can only be set if empty and the customer has no
720
+ * past or current subscriptions.
721
+ */
722
+ external_customer_id?: string | null;
960
723
 
961
724
  /**
962
725
  * The hierarchical relationships for this customer.
963
726
  */
964
- export interface Hierarchy {
965
- /**
966
- * A list of child customer IDs to add to the hierarchy. The desired child
967
- * customers must not already be part of another hierarchy.
968
- */
969
- child_customer_ids?: Array<string>;
970
-
971
- /**
972
- * The ID of the parent customer in the hierarchy. The desired parent customer must
973
- * not be a child of another customer.
974
- */
975
- parent_customer_id?: string | null;
976
- }
977
-
978
- export interface ReportingConfiguration {
979
- exempt: boolean;
980
- }
981
-
982
- export interface ShippingAddress {
983
- city?: string | null;
984
-
985
- country?: string | null;
986
-
987
- line1?: string | null;
988
-
989
- line2?: string | null;
727
+ hierarchy?: CustomerHierarchyConfig | null;
990
728
 
991
- postal_code?: string | null;
992
-
993
- state?: string | null;
994
- }
995
-
996
- export interface NewAvalaraTaxConfiguration {
997
- tax_exempt: boolean;
729
+ /**
730
+ * User-specified key/value pairs for the resource. Individual keys can be removed
731
+ * by setting the value to `null`, and the entire metadata mapping can be cleared
732
+ * by setting `metadata` to `null`.
733
+ */
734
+ metadata?: Record<string, string | null> | null;
998
735
 
999
- tax_provider: 'avalara';
736
+ /**
737
+ * The full name of the customer
738
+ */
739
+ name?: string | null;
1000
740
 
1001
- tax_exemption_code?: string | null;
1002
- }
741
+ /**
742
+ * This is used for creating charges or invoices in an external system via Orb.
743
+ * When not in test mode:
744
+ *
745
+ * - the connection must first be configured in the Orb webapp.
746
+ * - if the provider is an invoicing provider (`stripe_invoice`, `quickbooks`,
747
+ * `bill.com`, `netsuite`), any product mappings must first be configured with
748
+ * the Orb team.
749
+ */
750
+ payment_provider?: 'quickbooks' | 'bill.com' | 'stripe_charge' | 'stripe_invoice' | 'netsuite' | null;
1003
751
 
1004
- export interface NewTaxJarConfiguration {
1005
- tax_exempt: boolean;
752
+ /**
753
+ * The ID of this customer in an external payments solution, such as Stripe. This
754
+ * is used for creating charges or invoices in the external system via Orb.
755
+ */
756
+ payment_provider_id?: string | null;
1006
757
 
1007
- tax_provider: 'taxjar';
1008
- }
758
+ reporting_configuration?: NewReportingConfiguration | null;
1009
759
 
1010
- export interface NewSphereConfiguration {
1011
- tax_exempt: boolean;
760
+ shipping_address?: AddressInput | null;
1012
761
 
1013
- tax_provider: 'sphere';
1014
- }
762
+ tax_configuration?: NewAvalaraTaxConfiguration | NewTaxJarConfiguration | NewSphereConfiguration | null;
1015
763
 
1016
764
  /**
1017
765
  * Tax IDs are commonly required to be displayed on customer invoices, which are
@@ -1120,166 +868,21 @@ export namespace CustomerCreateParams {
1120
868
  * | Venezuela | `ve_rif` | Venezuelan RIF Number |
1121
869
  * | Vietnam | `vn_tin` | Vietnamese Tax ID Number |
1122
870
  */
1123
- export interface TaxID {
1124
- country:
1125
- | 'AD'
1126
- | 'AE'
1127
- | 'AR'
1128
- | 'AT'
1129
- | 'AU'
1130
- | 'BE'
1131
- | 'BG'
1132
- | 'BH'
1133
- | 'BO'
1134
- | 'BR'
1135
- | 'CA'
1136
- | 'CH'
1137
- | 'CL'
1138
- | 'CN'
1139
- | 'CO'
1140
- | 'CR'
1141
- | 'CY'
1142
- | 'CZ'
1143
- | 'DE'
1144
- | 'DK'
1145
- | 'EE'
1146
- | 'DO'
1147
- | 'EC'
1148
- | 'EG'
1149
- | 'ES'
1150
- | 'EU'
1151
- | 'FI'
1152
- | 'FR'
1153
- | 'GB'
1154
- | 'GE'
1155
- | 'GR'
1156
- | 'HK'
1157
- | 'HR'
1158
- | 'HU'
1159
- | 'ID'
1160
- | 'IE'
1161
- | 'IL'
1162
- | 'IN'
1163
- | 'IS'
1164
- | 'IT'
1165
- | 'JP'
1166
- | 'KE'
1167
- | 'KR'
1168
- | 'KZ'
1169
- | 'LI'
1170
- | 'LT'
1171
- | 'LU'
1172
- | 'LV'
1173
- | 'MT'
1174
- | 'MX'
1175
- | 'MY'
1176
- | 'NG'
1177
- | 'NL'
1178
- | 'NO'
1179
- | 'NZ'
1180
- | 'OM'
1181
- | 'PE'
1182
- | 'PH'
1183
- | 'PL'
1184
- | 'PT'
1185
- | 'RO'
1186
- | 'RS'
1187
- | 'RU'
1188
- | 'SA'
1189
- | 'SE'
1190
- | 'SG'
1191
- | 'SI'
1192
- | 'SK'
1193
- | 'SV'
1194
- | 'TH'
1195
- | 'TR'
1196
- | 'TW'
1197
- | 'UA'
1198
- | 'US'
1199
- | 'UY'
1200
- | 'VE'
1201
- | 'VN'
1202
- | 'ZA';
1203
-
1204
- type:
1205
- | 'ad_nrt'
1206
- | 'ae_trn'
1207
- | 'ar_cuit'
1208
- | 'eu_vat'
1209
- | 'au_abn'
1210
- | 'au_arn'
1211
- | 'bg_uic'
1212
- | 'bh_vat'
1213
- | 'bo_tin'
1214
- | 'br_cnpj'
1215
- | 'br_cpf'
1216
- | 'ca_bn'
1217
- | 'ca_gst_hst'
1218
- | 'ca_pst_bc'
1219
- | 'ca_pst_mb'
1220
- | 'ca_pst_sk'
1221
- | 'ca_qst'
1222
- | 'ch_vat'
1223
- | 'cl_tin'
1224
- | 'cn_tin'
1225
- | 'co_nit'
1226
- | 'cr_tin'
1227
- | 'do_rcn'
1228
- | 'ec_ruc'
1229
- | 'eg_tin'
1230
- | 'es_cif'
1231
- | 'eu_oss_vat'
1232
- | 'gb_vat'
1233
- | 'ge_vat'
1234
- | 'hk_br'
1235
- | 'hu_tin'
1236
- | 'id_npwp'
1237
- | 'il_vat'
1238
- | 'in_gst'
1239
- | 'is_vat'
1240
- | 'jp_cn'
1241
- | 'jp_rn'
1242
- | 'jp_trn'
1243
- | 'ke_pin'
1244
- | 'kr_brn'
1245
- | 'kz_bin'
1246
- | 'li_uid'
1247
- | 'mx_rfc'
1248
- | 'my_frp'
1249
- | 'my_itn'
1250
- | 'my_sst'
1251
- | 'ng_tin'
1252
- | 'no_vat'
1253
- | 'no_voec'
1254
- | 'nz_gst'
1255
- | 'om_vat'
1256
- | 'pe_ruc'
1257
- | 'ph_tin'
1258
- | 'ro_tin'
1259
- | 'rs_pib'
1260
- | 'ru_inn'
1261
- | 'ru_kpp'
1262
- | 'sa_vat'
1263
- | 'sg_gst'
1264
- | 'sg_uen'
1265
- | 'si_tin'
1266
- | 'sv_nit'
1267
- | 'th_vat'
1268
- | 'tr_tin'
1269
- | 'tw_vat'
1270
- | 'ua_vat'
1271
- | 'us_ein'
1272
- | 'uy_ruc'
1273
- | 've_rif'
1274
- | 'vn_tin'
1275
- | 'za_vat';
1276
-
1277
- value: string;
1278
- }
871
+ tax_id?: Shared.CustomerTaxID | null;
1279
872
  }
1280
873
 
1281
- export interface CustomerUpdateParams {
1282
- accounting_sync_configuration?: CustomerUpdateParams.AccountingSyncConfiguration | null;
874
+ export interface CustomerListParams extends PageParams {
875
+ 'created_at[gt]'?: string | null;
876
+
877
+ 'created_at[gte]'?: string | null;
878
+
879
+ 'created_at[lt]'?: string | null;
880
+
881
+ 'created_at[lte]'?: string | null;
882
+ }
883
+
884
+ export interface CustomerUpdateByExternalIDParams {
885
+ accounting_sync_configuration?: NewAccountingSyncConfiguration | null;
1283
886
 
1284
887
  /**
1285
888
  * Additional email addresses for this customer. If populated, these email
@@ -1294,7 +897,7 @@ export interface CustomerUpdateParams {
1294
897
  */
1295
898
  auto_collection?: boolean | null;
1296
899
 
1297
- billing_address?: CustomerUpdateParams.BillingAddress | null;
900
+ billing_address?: AddressInput | null;
1298
901
 
1299
902
  /**
1300
903
  * An ISO 4217 currency string used for the customer's invoices and balance. If not
@@ -1318,7 +921,7 @@ export interface CustomerUpdateParams {
1318
921
  /**
1319
922
  * The hierarchical relationships for this customer.
1320
923
  */
1321
- hierarchy?: CustomerUpdateParams.Hierarchy | null;
924
+ hierarchy?: CustomerHierarchyConfig | null;
1322
925
 
1323
926
  /**
1324
927
  * User-specified key/value pairs for the resource. Individual keys can be removed
@@ -1349,15 +952,11 @@ export interface CustomerUpdateParams {
1349
952
  */
1350
953
  payment_provider_id?: string | null;
1351
954
 
1352
- reporting_configuration?: CustomerUpdateParams.ReportingConfiguration | null;
955
+ reporting_configuration?: NewReportingConfiguration | null;
1353
956
 
1354
- shipping_address?: CustomerUpdateParams.ShippingAddress | null;
957
+ shipping_address?: AddressInput | null;
1355
958
 
1356
- tax_configuration?:
1357
- | CustomerUpdateParams.NewAvalaraTaxConfiguration
1358
- | CustomerUpdateParams.NewTaxJarConfiguration
1359
- | CustomerUpdateParams.NewSphereConfiguration
1360
- | null;
959
+ tax_configuration?: NewAvalaraTaxConfiguration | NewTaxJarConfiguration | NewSphereConfiguration | null;
1361
960
 
1362
961
  /**
1363
962
  * Tax IDs are commonly required to be displayed on customer invoices, which are
@@ -1466,906 +1065,7 @@ export interface CustomerUpdateParams {
1466
1065
  * | Venezuela | `ve_rif` | Venezuelan RIF Number |
1467
1066
  * | Vietnam | `vn_tin` | Vietnamese Tax ID Number |
1468
1067
  */
1469
- tax_id?: CustomerUpdateParams.TaxID | null;
1470
- }
1471
-
1472
- export namespace CustomerUpdateParams {
1473
- export interface AccountingSyncConfiguration {
1474
- accounting_providers?: Array<AccountingSyncConfiguration.AccountingProvider> | null;
1475
-
1476
- excluded?: boolean | null;
1477
- }
1478
-
1479
- export namespace AccountingSyncConfiguration {
1480
- export interface AccountingProvider {
1481
- external_provider_id: string;
1482
-
1483
- provider_type: string;
1484
- }
1485
- }
1486
-
1487
- export interface BillingAddress {
1488
- city?: string | null;
1489
-
1490
- country?: string | null;
1491
-
1492
- line1?: string | null;
1493
-
1494
- line2?: string | null;
1495
-
1496
- postal_code?: string | null;
1497
-
1498
- state?: string | null;
1499
- }
1500
-
1501
- /**
1502
- * The hierarchical relationships for this customer.
1503
- */
1504
- export interface Hierarchy {
1505
- /**
1506
- * A list of child customer IDs to add to the hierarchy. The desired child
1507
- * customers must not already be part of another hierarchy.
1508
- */
1509
- child_customer_ids?: Array<string>;
1510
-
1511
- /**
1512
- * The ID of the parent customer in the hierarchy. The desired parent customer must
1513
- * not be a child of another customer.
1514
- */
1515
- parent_customer_id?: string | null;
1516
- }
1517
-
1518
- export interface ReportingConfiguration {
1519
- exempt: boolean;
1520
- }
1521
-
1522
- export interface ShippingAddress {
1523
- city?: string | null;
1524
-
1525
- country?: string | null;
1526
-
1527
- line1?: string | null;
1528
-
1529
- line2?: string | null;
1530
-
1531
- postal_code?: string | null;
1532
-
1533
- state?: string | null;
1534
- }
1535
-
1536
- export interface NewAvalaraTaxConfiguration {
1537
- tax_exempt: boolean;
1538
-
1539
- tax_provider: 'avalara';
1540
-
1541
- tax_exemption_code?: string | null;
1542
- }
1543
-
1544
- export interface NewTaxJarConfiguration {
1545
- tax_exempt: boolean;
1546
-
1547
- tax_provider: 'taxjar';
1548
- }
1549
-
1550
- export interface NewSphereConfiguration {
1551
- tax_exempt: boolean;
1552
-
1553
- tax_provider: 'sphere';
1554
- }
1555
-
1556
- /**
1557
- * Tax IDs are commonly required to be displayed on customer invoices, which are
1558
- * added to the headers of invoices.
1559
- *
1560
- * ### Supported Tax ID Countries and Types
1561
- *
1562
- * | Country | Type | Description |
1563
- * | -------------------- | ------------ | ------------------------------------------------------------------------------------------------------- |
1564
- * | Andorra | `ad_nrt` | Andorran NRT Number |
1565
- * | Argentina | `ar_cuit` | Argentinian Tax ID Number |
1566
- * | Australia | `au_abn` | Australian Business Number (AU ABN) |
1567
- * | Australia | `au_arn` | Australian Taxation Office Reference Number |
1568
- * | Austria | `eu_vat` | European VAT Number |
1569
- * | Bahrain | `bh_vat` | Bahraini VAT Number |
1570
- * | Belgium | `eu_vat` | European VAT Number |
1571
- * | Bolivia | `bo_tin` | Bolivian Tax ID |
1572
- * | Brazil | `br_cnpj` | Brazilian CNPJ Number |
1573
- * | Brazil | `br_cpf` | Brazilian CPF Number |
1574
- * | Bulgaria | `bg_uic` | Bulgaria Unified Identification Code |
1575
- * | Bulgaria | `eu_vat` | European VAT Number |
1576
- * | Canada | `ca_bn` | Canadian BN |
1577
- * | Canada | `ca_gst_hst` | Canadian GST/HST Number |
1578
- * | Canada | `ca_pst_bc` | Canadian PST Number (British Columbia) |
1579
- * | Canada | `ca_pst_mb` | Canadian PST Number (Manitoba) |
1580
- * | Canada | `ca_pst_sk` | Canadian PST Number (Saskatchewan) |
1581
- * | Canada | `ca_qst` | Canadian QST Number (Québec) |
1582
- * | Chile | `cl_tin` | Chilean TIN |
1583
- * | China | `cn_tin` | Chinese Tax ID |
1584
- * | Colombia | `co_nit` | Colombian NIT Number |
1585
- * | Costa Rica | `cr_tin` | Costa Rican Tax ID |
1586
- * | Croatia | `eu_vat` | European VAT Number |
1587
- * | Cyprus | `eu_vat` | European VAT Number |
1588
- * | Czech Republic | `eu_vat` | European VAT Number |
1589
- * | Denmark | `eu_vat` | European VAT Number |
1590
- * | Dominican Republic | `do_rcn` | Dominican RCN Number |
1591
- * | Ecuador | `ec_ruc` | Ecuadorian RUC Number |
1592
- * | Egypt | `eg_tin` | Egyptian Tax Identification Number |
1593
- * | El Salvador | `sv_nit` | El Salvadorian NIT Number |
1594
- * | Estonia | `eu_vat` | European VAT Number |
1595
- * | EU | `eu_oss_vat` | European One Stop Shop VAT Number for non-Union scheme |
1596
- * | Finland | `eu_vat` | European VAT Number |
1597
- * | France | `eu_vat` | European VAT Number |
1598
- * | Georgia | `ge_vat` | Georgian VAT |
1599
- * | Germany | `eu_vat` | European VAT Number |
1600
- * | Greece | `eu_vat` | European VAT Number |
1601
- * | Hong Kong | `hk_br` | Hong Kong BR Number |
1602
- * | Hungary | `eu_vat` | European VAT Number |
1603
- * | Hungary | `hu_tin` | Hungary Tax Number (adószám) |
1604
- * | Iceland | `is_vat` | Icelandic VAT |
1605
- * | India | `in_gst` | Indian GST Number |
1606
- * | Indonesia | `id_npwp` | Indonesian NPWP Number |
1607
- * | Ireland | `eu_vat` | European VAT Number |
1608
- * | Israel | `il_vat` | Israel VAT |
1609
- * | Italy | `eu_vat` | European VAT Number |
1610
- * | Japan | `jp_cn` | Japanese Corporate Number (_Hōjin Bangō_) |
1611
- * | Japan | `jp_rn` | Japanese Registered Foreign Businesses' Registration Number (_Tōroku Kokugai Jigyōsha no Tōroku Bangō_) |
1612
- * | Japan | `jp_trn` | Japanese Tax Registration Number (_Tōroku Bangō_) |
1613
- * | Kazakhstan | `kz_bin` | Kazakhstani Business Identification Number |
1614
- * | Kenya | `ke_pin` | Kenya Revenue Authority Personal Identification Number |
1615
- * | Latvia | `eu_vat` | European VAT Number |
1616
- * | Liechtenstein | `li_uid` | Liechtensteinian UID Number |
1617
- * | Lithuania | `eu_vat` | European VAT Number |
1618
- * | Luxembourg | `eu_vat` | European VAT Number |
1619
- * | Malaysia | `my_frp` | Malaysian FRP Number |
1620
- * | Malaysia | `my_itn` | Malaysian ITN |
1621
- * | Malaysia | `my_sst` | Malaysian SST Number |
1622
- * | Malta | `eu_vat ` | European VAT Number |
1623
- * | Mexico | `mx_rfc` | Mexican RFC Number |
1624
- * | Netherlands | `eu_vat` | European VAT Number |
1625
- * | New Zealand | `nz_gst` | New Zealand GST Number |
1626
- * | Nigeria | `ng_tin` | Nigerian Tax Identification Number |
1627
- * | Norway | `no_vat` | Norwegian VAT Number |
1628
- * | Norway | `no_voec` | Norwegian VAT on e-commerce Number |
1629
- * | Oman | `om_vat` | Omani VAT Number |
1630
- * | Peru | `pe_ruc` | Peruvian RUC Number |
1631
- * | Philippines | `ph_tin ` | Philippines Tax Identification Number |
1632
- * | Poland | `eu_vat` | European VAT Number |
1633
- * | Portugal | `eu_vat` | European VAT Number |
1634
- * | Romania | `eu_vat` | European VAT Number |
1635
- * | Romania | `ro_tin` | Romanian Tax ID Number |
1636
- * | Russia | `ru_inn` | Russian INN |
1637
- * | Russia | `ru_kpp` | Russian KPP |
1638
- * | Saudi Arabia | `sa_vat` | Saudi Arabia VAT |
1639
- * | Serbia | `rs_pib` | Serbian PIB Number |
1640
- * | Singapore | `sg_gst` | Singaporean GST |
1641
- * | Singapore | `sg_uen` | Singaporean UEN |
1642
- * | Slovakia | `eu_vat` | European VAT Number |
1643
- * | Slovenia | `eu_vat` | European VAT Number |
1644
- * | Slovenia | `si_tin` | Slovenia Tax Number (davčna številka) |
1645
- * | South Africa | `za_vat` | South African VAT Number |
1646
- * | South Korea | `kr_brn` | Korean BRN |
1647
- * | Spain | `es_cif` | Spanish NIF Number (previously Spanish CIF Number) |
1648
- * | Spain | `eu_vat` | European VAT Number |
1649
- * | Sweden | `eu_vat` | European VAT Number |
1650
- * | Switzerland | `ch_vat` | Switzerland VAT Number |
1651
- * | Taiwan | `tw_vat` | Taiwanese VAT |
1652
- * | Thailand | `th_vat` | Thai VAT |
1653
- * | Turkey | `tr_tin` | Turkish Tax Identification Number |
1654
- * | Ukraine | `ua_vat` | Ukrainian VAT |
1655
- * | United Arab Emirates | `ae_trn` | United Arab Emirates TRN |
1656
- * | United Kingdom | `eu_vat` | Northern Ireland VAT Number |
1657
- * | United Kingdom | `gb_vat` | United Kingdom VAT Number |
1658
- * | United States | `us_ein` | United States EIN |
1659
- * | Uruguay | `uy_ruc` | Uruguayan RUC Number |
1660
- * | Venezuela | `ve_rif` | Venezuelan RIF Number |
1661
- * | Vietnam | `vn_tin` | Vietnamese Tax ID Number |
1662
- */
1663
- export interface TaxID {
1664
- country:
1665
- | 'AD'
1666
- | 'AE'
1667
- | 'AR'
1668
- | 'AT'
1669
- | 'AU'
1670
- | 'BE'
1671
- | 'BG'
1672
- | 'BH'
1673
- | 'BO'
1674
- | 'BR'
1675
- | 'CA'
1676
- | 'CH'
1677
- | 'CL'
1678
- | 'CN'
1679
- | 'CO'
1680
- | 'CR'
1681
- | 'CY'
1682
- | 'CZ'
1683
- | 'DE'
1684
- | 'DK'
1685
- | 'EE'
1686
- | 'DO'
1687
- | 'EC'
1688
- | 'EG'
1689
- | 'ES'
1690
- | 'EU'
1691
- | 'FI'
1692
- | 'FR'
1693
- | 'GB'
1694
- | 'GE'
1695
- | 'GR'
1696
- | 'HK'
1697
- | 'HR'
1698
- | 'HU'
1699
- | 'ID'
1700
- | 'IE'
1701
- | 'IL'
1702
- | 'IN'
1703
- | 'IS'
1704
- | 'IT'
1705
- | 'JP'
1706
- | 'KE'
1707
- | 'KR'
1708
- | 'KZ'
1709
- | 'LI'
1710
- | 'LT'
1711
- | 'LU'
1712
- | 'LV'
1713
- | 'MT'
1714
- | 'MX'
1715
- | 'MY'
1716
- | 'NG'
1717
- | 'NL'
1718
- | 'NO'
1719
- | 'NZ'
1720
- | 'OM'
1721
- | 'PE'
1722
- | 'PH'
1723
- | 'PL'
1724
- | 'PT'
1725
- | 'RO'
1726
- | 'RS'
1727
- | 'RU'
1728
- | 'SA'
1729
- | 'SE'
1730
- | 'SG'
1731
- | 'SI'
1732
- | 'SK'
1733
- | 'SV'
1734
- | 'TH'
1735
- | 'TR'
1736
- | 'TW'
1737
- | 'UA'
1738
- | 'US'
1739
- | 'UY'
1740
- | 'VE'
1741
- | 'VN'
1742
- | 'ZA';
1743
-
1744
- type:
1745
- | 'ad_nrt'
1746
- | 'ae_trn'
1747
- | 'ar_cuit'
1748
- | 'eu_vat'
1749
- | 'au_abn'
1750
- | 'au_arn'
1751
- | 'bg_uic'
1752
- | 'bh_vat'
1753
- | 'bo_tin'
1754
- | 'br_cnpj'
1755
- | 'br_cpf'
1756
- | 'ca_bn'
1757
- | 'ca_gst_hst'
1758
- | 'ca_pst_bc'
1759
- | 'ca_pst_mb'
1760
- | 'ca_pst_sk'
1761
- | 'ca_qst'
1762
- | 'ch_vat'
1763
- | 'cl_tin'
1764
- | 'cn_tin'
1765
- | 'co_nit'
1766
- | 'cr_tin'
1767
- | 'do_rcn'
1768
- | 'ec_ruc'
1769
- | 'eg_tin'
1770
- | 'es_cif'
1771
- | 'eu_oss_vat'
1772
- | 'gb_vat'
1773
- | 'ge_vat'
1774
- | 'hk_br'
1775
- | 'hu_tin'
1776
- | 'id_npwp'
1777
- | 'il_vat'
1778
- | 'in_gst'
1779
- | 'is_vat'
1780
- | 'jp_cn'
1781
- | 'jp_rn'
1782
- | 'jp_trn'
1783
- | 'ke_pin'
1784
- | 'kr_brn'
1785
- | 'kz_bin'
1786
- | 'li_uid'
1787
- | 'mx_rfc'
1788
- | 'my_frp'
1789
- | 'my_itn'
1790
- | 'my_sst'
1791
- | 'ng_tin'
1792
- | 'no_vat'
1793
- | 'no_voec'
1794
- | 'nz_gst'
1795
- | 'om_vat'
1796
- | 'pe_ruc'
1797
- | 'ph_tin'
1798
- | 'ro_tin'
1799
- | 'rs_pib'
1800
- | 'ru_inn'
1801
- | 'ru_kpp'
1802
- | 'sa_vat'
1803
- | 'sg_gst'
1804
- | 'sg_uen'
1805
- | 'si_tin'
1806
- | 'sv_nit'
1807
- | 'th_vat'
1808
- | 'tr_tin'
1809
- | 'tw_vat'
1810
- | 'ua_vat'
1811
- | 'us_ein'
1812
- | 'uy_ruc'
1813
- | 've_rif'
1814
- | 'vn_tin'
1815
- | 'za_vat';
1816
-
1817
- value: string;
1818
- }
1819
- }
1820
-
1821
- export interface CustomerListParams extends PageParams {
1822
- 'created_at[gt]'?: string | null;
1823
-
1824
- 'created_at[gte]'?: string | null;
1825
-
1826
- 'created_at[lt]'?: string | null;
1827
-
1828
- 'created_at[lte]'?: string | null;
1829
- }
1830
-
1831
- export interface CustomerUpdateByExternalIDParams {
1832
- accounting_sync_configuration?: CustomerUpdateByExternalIDParams.AccountingSyncConfiguration | null;
1833
-
1834
- /**
1835
- * Additional email addresses for this customer. If populated, these email
1836
- * addresses will be CC'd for customer communications.
1837
- */
1838
- additional_emails?: Array<string> | null;
1839
-
1840
- /**
1841
- * Used to determine if invoices for this customer will automatically attempt to
1842
- * charge a saved payment method, if available. This parameter defaults to `True`
1843
- * when a payment provider is provided on customer creation.
1844
- */
1845
- auto_collection?: boolean | null;
1846
-
1847
- billing_address?: CustomerUpdateByExternalIDParams.BillingAddress | null;
1848
-
1849
- /**
1850
- * An ISO 4217 currency string used for the customer's invoices and balance. If not
1851
- * set at creation time, will be set at subscription creation time.
1852
- */
1853
- currency?: string | null;
1854
-
1855
- /**
1856
- * A valid customer email, to be used for invoicing and notifications.
1857
- */
1858
- email?: string | null;
1859
-
1860
- email_delivery?: boolean | null;
1861
-
1862
- /**
1863
- * The external customer ID. This can only be set if empty and the customer has no
1864
- * past or current subscriptions.
1865
- */
1866
- external_customer_id?: string | null;
1867
-
1868
- /**
1869
- * The hierarchical relationships for this customer.
1870
- */
1871
- hierarchy?: CustomerUpdateByExternalIDParams.Hierarchy | null;
1872
-
1873
- /**
1874
- * User-specified key/value pairs for the resource. Individual keys can be removed
1875
- * by setting the value to `null`, and the entire metadata mapping can be cleared
1876
- * by setting `metadata` to `null`.
1877
- */
1878
- metadata?: Record<string, string | null> | null;
1879
-
1880
- /**
1881
- * The full name of the customer
1882
- */
1883
- name?: string | null;
1884
-
1885
- /**
1886
- * This is used for creating charges or invoices in an external system via Orb.
1887
- * When not in test mode:
1888
- *
1889
- * - the connection must first be configured in the Orb webapp.
1890
- * - if the provider is an invoicing provider (`stripe_invoice`, `quickbooks`,
1891
- * `bill.com`, `netsuite`), any product mappings must first be configured with
1892
- * the Orb team.
1893
- */
1894
- payment_provider?: 'quickbooks' | 'bill.com' | 'stripe_charge' | 'stripe_invoice' | 'netsuite' | null;
1895
-
1896
- /**
1897
- * The ID of this customer in an external payments solution, such as Stripe. This
1898
- * is used for creating charges or invoices in the external system via Orb.
1899
- */
1900
- payment_provider_id?: string | null;
1901
-
1902
- reporting_configuration?: CustomerUpdateByExternalIDParams.ReportingConfiguration | null;
1903
-
1904
- shipping_address?: CustomerUpdateByExternalIDParams.ShippingAddress | null;
1905
-
1906
- tax_configuration?:
1907
- | CustomerUpdateByExternalIDParams.NewAvalaraTaxConfiguration
1908
- | CustomerUpdateByExternalIDParams.NewTaxJarConfiguration
1909
- | CustomerUpdateByExternalIDParams.NewSphereConfiguration
1910
- | null;
1911
-
1912
- /**
1913
- * Tax IDs are commonly required to be displayed on customer invoices, which are
1914
- * added to the headers of invoices.
1915
- *
1916
- * ### Supported Tax ID Countries and Types
1917
- *
1918
- * | Country | Type | Description |
1919
- * | -------------------- | ------------ | ------------------------------------------------------------------------------------------------------- |
1920
- * | Andorra | `ad_nrt` | Andorran NRT Number |
1921
- * | Argentina | `ar_cuit` | Argentinian Tax ID Number |
1922
- * | Australia | `au_abn` | Australian Business Number (AU ABN) |
1923
- * | Australia | `au_arn` | Australian Taxation Office Reference Number |
1924
- * | Austria | `eu_vat` | European VAT Number |
1925
- * | Bahrain | `bh_vat` | Bahraini VAT Number |
1926
- * | Belgium | `eu_vat` | European VAT Number |
1927
- * | Bolivia | `bo_tin` | Bolivian Tax ID |
1928
- * | Brazil | `br_cnpj` | Brazilian CNPJ Number |
1929
- * | Brazil | `br_cpf` | Brazilian CPF Number |
1930
- * | Bulgaria | `bg_uic` | Bulgaria Unified Identification Code |
1931
- * | Bulgaria | `eu_vat` | European VAT Number |
1932
- * | Canada | `ca_bn` | Canadian BN |
1933
- * | Canada | `ca_gst_hst` | Canadian GST/HST Number |
1934
- * | Canada | `ca_pst_bc` | Canadian PST Number (British Columbia) |
1935
- * | Canada | `ca_pst_mb` | Canadian PST Number (Manitoba) |
1936
- * | Canada | `ca_pst_sk` | Canadian PST Number (Saskatchewan) |
1937
- * | Canada | `ca_qst` | Canadian QST Number (Québec) |
1938
- * | Chile | `cl_tin` | Chilean TIN |
1939
- * | China | `cn_tin` | Chinese Tax ID |
1940
- * | Colombia | `co_nit` | Colombian NIT Number |
1941
- * | Costa Rica | `cr_tin` | Costa Rican Tax ID |
1942
- * | Croatia | `eu_vat` | European VAT Number |
1943
- * | Cyprus | `eu_vat` | European VAT Number |
1944
- * | Czech Republic | `eu_vat` | European VAT Number |
1945
- * | Denmark | `eu_vat` | European VAT Number |
1946
- * | Dominican Republic | `do_rcn` | Dominican RCN Number |
1947
- * | Ecuador | `ec_ruc` | Ecuadorian RUC Number |
1948
- * | Egypt | `eg_tin` | Egyptian Tax Identification Number |
1949
- * | El Salvador | `sv_nit` | El Salvadorian NIT Number |
1950
- * | Estonia | `eu_vat` | European VAT Number |
1951
- * | EU | `eu_oss_vat` | European One Stop Shop VAT Number for non-Union scheme |
1952
- * | Finland | `eu_vat` | European VAT Number |
1953
- * | France | `eu_vat` | European VAT Number |
1954
- * | Georgia | `ge_vat` | Georgian VAT |
1955
- * | Germany | `eu_vat` | European VAT Number |
1956
- * | Greece | `eu_vat` | European VAT Number |
1957
- * | Hong Kong | `hk_br` | Hong Kong BR Number |
1958
- * | Hungary | `eu_vat` | European VAT Number |
1959
- * | Hungary | `hu_tin` | Hungary Tax Number (adószám) |
1960
- * | Iceland | `is_vat` | Icelandic VAT |
1961
- * | India | `in_gst` | Indian GST Number |
1962
- * | Indonesia | `id_npwp` | Indonesian NPWP Number |
1963
- * | Ireland | `eu_vat` | European VAT Number |
1964
- * | Israel | `il_vat` | Israel VAT |
1965
- * | Italy | `eu_vat` | European VAT Number |
1966
- * | Japan | `jp_cn` | Japanese Corporate Number (_Hōjin Bangō_) |
1967
- * | Japan | `jp_rn` | Japanese Registered Foreign Businesses' Registration Number (_Tōroku Kokugai Jigyōsha no Tōroku Bangō_) |
1968
- * | Japan | `jp_trn` | Japanese Tax Registration Number (_Tōroku Bangō_) |
1969
- * | Kazakhstan | `kz_bin` | Kazakhstani Business Identification Number |
1970
- * | Kenya | `ke_pin` | Kenya Revenue Authority Personal Identification Number |
1971
- * | Latvia | `eu_vat` | European VAT Number |
1972
- * | Liechtenstein | `li_uid` | Liechtensteinian UID Number |
1973
- * | Lithuania | `eu_vat` | European VAT Number |
1974
- * | Luxembourg | `eu_vat` | European VAT Number |
1975
- * | Malaysia | `my_frp` | Malaysian FRP Number |
1976
- * | Malaysia | `my_itn` | Malaysian ITN |
1977
- * | Malaysia | `my_sst` | Malaysian SST Number |
1978
- * | Malta | `eu_vat ` | European VAT Number |
1979
- * | Mexico | `mx_rfc` | Mexican RFC Number |
1980
- * | Netherlands | `eu_vat` | European VAT Number |
1981
- * | New Zealand | `nz_gst` | New Zealand GST Number |
1982
- * | Nigeria | `ng_tin` | Nigerian Tax Identification Number |
1983
- * | Norway | `no_vat` | Norwegian VAT Number |
1984
- * | Norway | `no_voec` | Norwegian VAT on e-commerce Number |
1985
- * | Oman | `om_vat` | Omani VAT Number |
1986
- * | Peru | `pe_ruc` | Peruvian RUC Number |
1987
- * | Philippines | `ph_tin ` | Philippines Tax Identification Number |
1988
- * | Poland | `eu_vat` | European VAT Number |
1989
- * | Portugal | `eu_vat` | European VAT Number |
1990
- * | Romania | `eu_vat` | European VAT Number |
1991
- * | Romania | `ro_tin` | Romanian Tax ID Number |
1992
- * | Russia | `ru_inn` | Russian INN |
1993
- * | Russia | `ru_kpp` | Russian KPP |
1994
- * | Saudi Arabia | `sa_vat` | Saudi Arabia VAT |
1995
- * | Serbia | `rs_pib` | Serbian PIB Number |
1996
- * | Singapore | `sg_gst` | Singaporean GST |
1997
- * | Singapore | `sg_uen` | Singaporean UEN |
1998
- * | Slovakia | `eu_vat` | European VAT Number |
1999
- * | Slovenia | `eu_vat` | European VAT Number |
2000
- * | Slovenia | `si_tin` | Slovenia Tax Number (davčna številka) |
2001
- * | South Africa | `za_vat` | South African VAT Number |
2002
- * | South Korea | `kr_brn` | Korean BRN |
2003
- * | Spain | `es_cif` | Spanish NIF Number (previously Spanish CIF Number) |
2004
- * | Spain | `eu_vat` | European VAT Number |
2005
- * | Sweden | `eu_vat` | European VAT Number |
2006
- * | Switzerland | `ch_vat` | Switzerland VAT Number |
2007
- * | Taiwan | `tw_vat` | Taiwanese VAT |
2008
- * | Thailand | `th_vat` | Thai VAT |
2009
- * | Turkey | `tr_tin` | Turkish Tax Identification Number |
2010
- * | Ukraine | `ua_vat` | Ukrainian VAT |
2011
- * | United Arab Emirates | `ae_trn` | United Arab Emirates TRN |
2012
- * | United Kingdom | `eu_vat` | Northern Ireland VAT Number |
2013
- * | United Kingdom | `gb_vat` | United Kingdom VAT Number |
2014
- * | United States | `us_ein` | United States EIN |
2015
- * | Uruguay | `uy_ruc` | Uruguayan RUC Number |
2016
- * | Venezuela | `ve_rif` | Venezuelan RIF Number |
2017
- * | Vietnam | `vn_tin` | Vietnamese Tax ID Number |
2018
- */
2019
- tax_id?: CustomerUpdateByExternalIDParams.TaxID | null;
2020
- }
2021
-
2022
- export namespace CustomerUpdateByExternalIDParams {
2023
- export interface AccountingSyncConfiguration {
2024
- accounting_providers?: Array<AccountingSyncConfiguration.AccountingProvider> | null;
2025
-
2026
- excluded?: boolean | null;
2027
- }
2028
-
2029
- export namespace AccountingSyncConfiguration {
2030
- export interface AccountingProvider {
2031
- external_provider_id: string;
2032
-
2033
- provider_type: string;
2034
- }
2035
- }
2036
-
2037
- export interface BillingAddress {
2038
- city?: string | null;
2039
-
2040
- country?: string | null;
2041
-
2042
- line1?: string | null;
2043
-
2044
- line2?: string | null;
2045
-
2046
- postal_code?: string | null;
2047
-
2048
- state?: string | null;
2049
- }
2050
-
2051
- /**
2052
- * The hierarchical relationships for this customer.
2053
- */
2054
- export interface Hierarchy {
2055
- /**
2056
- * A list of child customer IDs to add to the hierarchy. The desired child
2057
- * customers must not already be part of another hierarchy.
2058
- */
2059
- child_customer_ids?: Array<string>;
2060
-
2061
- /**
2062
- * The ID of the parent customer in the hierarchy. The desired parent customer must
2063
- * not be a child of another customer.
2064
- */
2065
- parent_customer_id?: string | null;
2066
- }
2067
-
2068
- export interface ReportingConfiguration {
2069
- exempt: boolean;
2070
- }
2071
-
2072
- export interface ShippingAddress {
2073
- city?: string | null;
2074
-
2075
- country?: string | null;
2076
-
2077
- line1?: string | null;
2078
-
2079
- line2?: string | null;
2080
-
2081
- postal_code?: string | null;
2082
-
2083
- state?: string | null;
2084
- }
2085
-
2086
- export interface NewAvalaraTaxConfiguration {
2087
- tax_exempt: boolean;
2088
-
2089
- tax_provider: 'avalara';
2090
-
2091
- tax_exemption_code?: string | null;
2092
- }
2093
-
2094
- export interface NewTaxJarConfiguration {
2095
- tax_exempt: boolean;
2096
-
2097
- tax_provider: 'taxjar';
2098
- }
2099
-
2100
- export interface NewSphereConfiguration {
2101
- tax_exempt: boolean;
2102
-
2103
- tax_provider: 'sphere';
2104
- }
2105
-
2106
- /**
2107
- * Tax IDs are commonly required to be displayed on customer invoices, which are
2108
- * added to the headers of invoices.
2109
- *
2110
- * ### Supported Tax ID Countries and Types
2111
- *
2112
- * | Country | Type | Description |
2113
- * | -------------------- | ------------ | ------------------------------------------------------------------------------------------------------- |
2114
- * | Andorra | `ad_nrt` | Andorran NRT Number |
2115
- * | Argentina | `ar_cuit` | Argentinian Tax ID Number |
2116
- * | Australia | `au_abn` | Australian Business Number (AU ABN) |
2117
- * | Australia | `au_arn` | Australian Taxation Office Reference Number |
2118
- * | Austria | `eu_vat` | European VAT Number |
2119
- * | Bahrain | `bh_vat` | Bahraini VAT Number |
2120
- * | Belgium | `eu_vat` | European VAT Number |
2121
- * | Bolivia | `bo_tin` | Bolivian Tax ID |
2122
- * | Brazil | `br_cnpj` | Brazilian CNPJ Number |
2123
- * | Brazil | `br_cpf` | Brazilian CPF Number |
2124
- * | Bulgaria | `bg_uic` | Bulgaria Unified Identification Code |
2125
- * | Bulgaria | `eu_vat` | European VAT Number |
2126
- * | Canada | `ca_bn` | Canadian BN |
2127
- * | Canada | `ca_gst_hst` | Canadian GST/HST Number |
2128
- * | Canada | `ca_pst_bc` | Canadian PST Number (British Columbia) |
2129
- * | Canada | `ca_pst_mb` | Canadian PST Number (Manitoba) |
2130
- * | Canada | `ca_pst_sk` | Canadian PST Number (Saskatchewan) |
2131
- * | Canada | `ca_qst` | Canadian QST Number (Québec) |
2132
- * | Chile | `cl_tin` | Chilean TIN |
2133
- * | China | `cn_tin` | Chinese Tax ID |
2134
- * | Colombia | `co_nit` | Colombian NIT Number |
2135
- * | Costa Rica | `cr_tin` | Costa Rican Tax ID |
2136
- * | Croatia | `eu_vat` | European VAT Number |
2137
- * | Cyprus | `eu_vat` | European VAT Number |
2138
- * | Czech Republic | `eu_vat` | European VAT Number |
2139
- * | Denmark | `eu_vat` | European VAT Number |
2140
- * | Dominican Republic | `do_rcn` | Dominican RCN Number |
2141
- * | Ecuador | `ec_ruc` | Ecuadorian RUC Number |
2142
- * | Egypt | `eg_tin` | Egyptian Tax Identification Number |
2143
- * | El Salvador | `sv_nit` | El Salvadorian NIT Number |
2144
- * | Estonia | `eu_vat` | European VAT Number |
2145
- * | EU | `eu_oss_vat` | European One Stop Shop VAT Number for non-Union scheme |
2146
- * | Finland | `eu_vat` | European VAT Number |
2147
- * | France | `eu_vat` | European VAT Number |
2148
- * | Georgia | `ge_vat` | Georgian VAT |
2149
- * | Germany | `eu_vat` | European VAT Number |
2150
- * | Greece | `eu_vat` | European VAT Number |
2151
- * | Hong Kong | `hk_br` | Hong Kong BR Number |
2152
- * | Hungary | `eu_vat` | European VAT Number |
2153
- * | Hungary | `hu_tin` | Hungary Tax Number (adószám) |
2154
- * | Iceland | `is_vat` | Icelandic VAT |
2155
- * | India | `in_gst` | Indian GST Number |
2156
- * | Indonesia | `id_npwp` | Indonesian NPWP Number |
2157
- * | Ireland | `eu_vat` | European VAT Number |
2158
- * | Israel | `il_vat` | Israel VAT |
2159
- * | Italy | `eu_vat` | European VAT Number |
2160
- * | Japan | `jp_cn` | Japanese Corporate Number (_Hōjin Bangō_) |
2161
- * | Japan | `jp_rn` | Japanese Registered Foreign Businesses' Registration Number (_Tōroku Kokugai Jigyōsha no Tōroku Bangō_) |
2162
- * | Japan | `jp_trn` | Japanese Tax Registration Number (_Tōroku Bangō_) |
2163
- * | Kazakhstan | `kz_bin` | Kazakhstani Business Identification Number |
2164
- * | Kenya | `ke_pin` | Kenya Revenue Authority Personal Identification Number |
2165
- * | Latvia | `eu_vat` | European VAT Number |
2166
- * | Liechtenstein | `li_uid` | Liechtensteinian UID Number |
2167
- * | Lithuania | `eu_vat` | European VAT Number |
2168
- * | Luxembourg | `eu_vat` | European VAT Number |
2169
- * | Malaysia | `my_frp` | Malaysian FRP Number |
2170
- * | Malaysia | `my_itn` | Malaysian ITN |
2171
- * | Malaysia | `my_sst` | Malaysian SST Number |
2172
- * | Malta | `eu_vat ` | European VAT Number |
2173
- * | Mexico | `mx_rfc` | Mexican RFC Number |
2174
- * | Netherlands | `eu_vat` | European VAT Number |
2175
- * | New Zealand | `nz_gst` | New Zealand GST Number |
2176
- * | Nigeria | `ng_tin` | Nigerian Tax Identification Number |
2177
- * | Norway | `no_vat` | Norwegian VAT Number |
2178
- * | Norway | `no_voec` | Norwegian VAT on e-commerce Number |
2179
- * | Oman | `om_vat` | Omani VAT Number |
2180
- * | Peru | `pe_ruc` | Peruvian RUC Number |
2181
- * | Philippines | `ph_tin ` | Philippines Tax Identification Number |
2182
- * | Poland | `eu_vat` | European VAT Number |
2183
- * | Portugal | `eu_vat` | European VAT Number |
2184
- * | Romania | `eu_vat` | European VAT Number |
2185
- * | Romania | `ro_tin` | Romanian Tax ID Number |
2186
- * | Russia | `ru_inn` | Russian INN |
2187
- * | Russia | `ru_kpp` | Russian KPP |
2188
- * | Saudi Arabia | `sa_vat` | Saudi Arabia VAT |
2189
- * | Serbia | `rs_pib` | Serbian PIB Number |
2190
- * | Singapore | `sg_gst` | Singaporean GST |
2191
- * | Singapore | `sg_uen` | Singaporean UEN |
2192
- * | Slovakia | `eu_vat` | European VAT Number |
2193
- * | Slovenia | `eu_vat` | European VAT Number |
2194
- * | Slovenia | `si_tin` | Slovenia Tax Number (davčna številka) |
2195
- * | South Africa | `za_vat` | South African VAT Number |
2196
- * | South Korea | `kr_brn` | Korean BRN |
2197
- * | Spain | `es_cif` | Spanish NIF Number (previously Spanish CIF Number) |
2198
- * | Spain | `eu_vat` | European VAT Number |
2199
- * | Sweden | `eu_vat` | European VAT Number |
2200
- * | Switzerland | `ch_vat` | Switzerland VAT Number |
2201
- * | Taiwan | `tw_vat` | Taiwanese VAT |
2202
- * | Thailand | `th_vat` | Thai VAT |
2203
- * | Turkey | `tr_tin` | Turkish Tax Identification Number |
2204
- * | Ukraine | `ua_vat` | Ukrainian VAT |
2205
- * | United Arab Emirates | `ae_trn` | United Arab Emirates TRN |
2206
- * | United Kingdom | `eu_vat` | Northern Ireland VAT Number |
2207
- * | United Kingdom | `gb_vat` | United Kingdom VAT Number |
2208
- * | United States | `us_ein` | United States EIN |
2209
- * | Uruguay | `uy_ruc` | Uruguayan RUC Number |
2210
- * | Venezuela | `ve_rif` | Venezuelan RIF Number |
2211
- * | Vietnam | `vn_tin` | Vietnamese Tax ID Number |
2212
- */
2213
- export interface TaxID {
2214
- country:
2215
- | 'AD'
2216
- | 'AE'
2217
- | 'AR'
2218
- | 'AT'
2219
- | 'AU'
2220
- | 'BE'
2221
- | 'BG'
2222
- | 'BH'
2223
- | 'BO'
2224
- | 'BR'
2225
- | 'CA'
2226
- | 'CH'
2227
- | 'CL'
2228
- | 'CN'
2229
- | 'CO'
2230
- | 'CR'
2231
- | 'CY'
2232
- | 'CZ'
2233
- | 'DE'
2234
- | 'DK'
2235
- | 'EE'
2236
- | 'DO'
2237
- | 'EC'
2238
- | 'EG'
2239
- | 'ES'
2240
- | 'EU'
2241
- | 'FI'
2242
- | 'FR'
2243
- | 'GB'
2244
- | 'GE'
2245
- | 'GR'
2246
- | 'HK'
2247
- | 'HR'
2248
- | 'HU'
2249
- | 'ID'
2250
- | 'IE'
2251
- | 'IL'
2252
- | 'IN'
2253
- | 'IS'
2254
- | 'IT'
2255
- | 'JP'
2256
- | 'KE'
2257
- | 'KR'
2258
- | 'KZ'
2259
- | 'LI'
2260
- | 'LT'
2261
- | 'LU'
2262
- | 'LV'
2263
- | 'MT'
2264
- | 'MX'
2265
- | 'MY'
2266
- | 'NG'
2267
- | 'NL'
2268
- | 'NO'
2269
- | 'NZ'
2270
- | 'OM'
2271
- | 'PE'
2272
- | 'PH'
2273
- | 'PL'
2274
- | 'PT'
2275
- | 'RO'
2276
- | 'RS'
2277
- | 'RU'
2278
- | 'SA'
2279
- | 'SE'
2280
- | 'SG'
2281
- | 'SI'
2282
- | 'SK'
2283
- | 'SV'
2284
- | 'TH'
2285
- | 'TR'
2286
- | 'TW'
2287
- | 'UA'
2288
- | 'US'
2289
- | 'UY'
2290
- | 'VE'
2291
- | 'VN'
2292
- | 'ZA';
2293
-
2294
- type:
2295
- | 'ad_nrt'
2296
- | 'ae_trn'
2297
- | 'ar_cuit'
2298
- | 'eu_vat'
2299
- | 'au_abn'
2300
- | 'au_arn'
2301
- | 'bg_uic'
2302
- | 'bh_vat'
2303
- | 'bo_tin'
2304
- | 'br_cnpj'
2305
- | 'br_cpf'
2306
- | 'ca_bn'
2307
- | 'ca_gst_hst'
2308
- | 'ca_pst_bc'
2309
- | 'ca_pst_mb'
2310
- | 'ca_pst_sk'
2311
- | 'ca_qst'
2312
- | 'ch_vat'
2313
- | 'cl_tin'
2314
- | 'cn_tin'
2315
- | 'co_nit'
2316
- | 'cr_tin'
2317
- | 'do_rcn'
2318
- | 'ec_ruc'
2319
- | 'eg_tin'
2320
- | 'es_cif'
2321
- | 'eu_oss_vat'
2322
- | 'gb_vat'
2323
- | 'ge_vat'
2324
- | 'hk_br'
2325
- | 'hu_tin'
2326
- | 'id_npwp'
2327
- | 'il_vat'
2328
- | 'in_gst'
2329
- | 'is_vat'
2330
- | 'jp_cn'
2331
- | 'jp_rn'
2332
- | 'jp_trn'
2333
- | 'ke_pin'
2334
- | 'kr_brn'
2335
- | 'kz_bin'
2336
- | 'li_uid'
2337
- | 'mx_rfc'
2338
- | 'my_frp'
2339
- | 'my_itn'
2340
- | 'my_sst'
2341
- | 'ng_tin'
2342
- | 'no_vat'
2343
- | 'no_voec'
2344
- | 'nz_gst'
2345
- | 'om_vat'
2346
- | 'pe_ruc'
2347
- | 'ph_tin'
2348
- | 'ro_tin'
2349
- | 'rs_pib'
2350
- | 'ru_inn'
2351
- | 'ru_kpp'
2352
- | 'sa_vat'
2353
- | 'sg_gst'
2354
- | 'sg_uen'
2355
- | 'si_tin'
2356
- | 'sv_nit'
2357
- | 'th_vat'
2358
- | 'tr_tin'
2359
- | 'tw_vat'
2360
- | 'ua_vat'
2361
- | 'us_ein'
2362
- | 'uy_ruc'
2363
- | 've_rif'
2364
- | 'vn_tin'
2365
- | 'za_vat';
2366
-
2367
- value: string;
2368
- }
1068
+ tax_id?: Shared.CustomerTaxID | null;
2369
1069
  }
2370
1070
 
2371
1071
  Customers.CustomersPage = CustomersPage;
@@ -2378,7 +1078,15 @@ Customers.BalanceTransactionListResponsesPage = BalanceTransactionListResponsesP
2378
1078
 
2379
1079
  export declare namespace Customers {
2380
1080
  export {
1081
+ type AccountingProviderConfig as AccountingProviderConfig,
1082
+ type AddressInput as AddressInput,
2381
1083
  type Customer as Customer,
1084
+ type CustomerHierarchyConfig as CustomerHierarchyConfig,
1085
+ type NewAccountingSyncConfiguration as NewAccountingSyncConfiguration,
1086
+ type NewAvalaraTaxConfiguration as NewAvalaraTaxConfiguration,
1087
+ type NewReportingConfiguration as NewReportingConfiguration,
1088
+ type NewSphereConfiguration as NewSphereConfiguration,
1089
+ type NewTaxJarConfiguration as NewTaxJarConfiguration,
2382
1090
  CustomersPage as CustomersPage,
2383
1091
  type CustomerCreateParams as CustomerCreateParams,
2384
1092
  type CustomerUpdateParams as CustomerUpdateParams,