orb-billing 5.6.0 → 5.8.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 (60) hide show
  1. package/CHANGELOG.md +27 -0
  2. package/core.js +3 -3
  3. package/core.js.map +1 -1
  4. package/core.mjs +3 -3
  5. package/core.mjs.map +1 -1
  6. package/index.d.mts +2 -4
  7. package/index.d.ts +2 -4
  8. package/index.d.ts.map +1 -1
  9. package/index.js.map +1 -1
  10. package/index.mjs.map +1 -1
  11. package/package.json +1 -1
  12. package/resources/beta/beta.d.ts +288 -10
  13. package/resources/beta/beta.d.ts.map +1 -1
  14. package/resources/beta/beta.js.map +1 -1
  15. package/resources/beta/beta.mjs.map +1 -1
  16. package/resources/beta/external-plan-id.d.ts +288 -10
  17. package/resources/beta/external-plan-id.d.ts.map +1 -1
  18. package/resources/customers/customers.d.ts +27 -6
  19. package/resources/customers/customers.d.ts.map +1 -1
  20. package/resources/customers/customers.js.map +1 -1
  21. package/resources/customers/customers.mjs.map +1 -1
  22. package/resources/index.d.ts +1 -1
  23. package/resources/index.d.ts.map +1 -1
  24. package/resources/index.js.map +1 -1
  25. package/resources/index.mjs.map +1 -1
  26. package/resources/invoices.d.ts +3 -0
  27. package/resources/invoices.d.ts.map +1 -1
  28. package/resources/invoices.js.map +1 -1
  29. package/resources/invoices.mjs.map +1 -1
  30. package/resources/plans/plans.d.ts +144 -5
  31. package/resources/plans/plans.d.ts.map +1 -1
  32. package/resources/plans/plans.js.map +1 -1
  33. package/resources/plans/plans.mjs.map +1 -1
  34. package/resources/prices/prices.d.ts +926 -123
  35. package/resources/prices/prices.d.ts.map +1 -1
  36. package/resources/prices/prices.js.map +1 -1
  37. package/resources/prices/prices.mjs.map +1 -1
  38. package/resources/shared.d.ts +2474 -338
  39. package/resources/shared.d.ts.map +1 -1
  40. package/resources/shared.js.map +1 -1
  41. package/resources/shared.mjs.map +1 -1
  42. package/resources/subscriptions.d.ts +1369 -174
  43. package/resources/subscriptions.d.ts.map +1 -1
  44. package/resources/subscriptions.js.map +1 -1
  45. package/resources/subscriptions.mjs.map +1 -1
  46. package/src/core.ts +3 -3
  47. package/src/index.ts +0 -4
  48. package/src/resources/beta/beta.ts +348 -20
  49. package/src/resources/beta/external-plan-id.ts +348 -20
  50. package/src/resources/customers/customers.ts +48 -6
  51. package/src/resources/index.ts +0 -1
  52. package/src/resources/invoices.ts +3 -0
  53. package/src/resources/plans/plans.ts +174 -10
  54. package/src/resources/prices/prices.ts +1060 -113
  55. package/src/resources/shared.ts +2792 -288
  56. package/src/resources/subscriptions.ts +1609 -202
  57. package/src/version.ts +1 -1
  58. package/version.d.ts +1 -1
  59. package/version.js +1 -1
  60. package/version.mjs +1 -1
@@ -126,53 +126,190 @@ export namespace ExternalPlanIDCreatePlanVersionParams {
126
126
  plan_phase_order?: number | null;
127
127
 
128
128
  /**
129
- * The price to add to the plan
129
+ * New plan price request body params.
130
130
  */
131
131
  price?:
132
132
  | Shared.NewPlanUnitPrice
133
- | Shared.NewPlanPackagePrice
134
- | Shared.NewPlanMatrixPrice
135
133
  | Shared.NewPlanTieredPrice
136
134
  | Shared.NewPlanBulkPrice
135
+ | Shared.NewPlanPackagePrice
136
+ | Shared.NewPlanMatrixPrice
137
137
  | Shared.NewPlanThresholdTotalAmountPrice
138
138
  | Shared.NewPlanTieredPackagePrice
139
139
  | Shared.NewPlanTieredWithMinimumPrice
140
- | Shared.NewPlanUnitWithPercentPrice
140
+ | Shared.NewPlanGroupedTieredPrice
141
+ | Shared.NewPlanTieredPackageWithMinimumPrice
141
142
  | Shared.NewPlanPackageWithAllocationPrice
142
- | Shared.NewPlanTierWithProrationPrice
143
+ | Shared.NewPlanUnitWithPercentPrice
144
+ | Shared.NewPlanMatrixWithAllocationPrice
145
+ | AddPrice.NewPlanTieredWithProrationPrice
143
146
  | Shared.NewPlanUnitWithProrationPrice
144
147
  | Shared.NewPlanGroupedAllocationPrice
148
+ | Shared.NewPlanBulkWithProrationPrice
145
149
  | Shared.NewPlanGroupedWithProratedMinimumPrice
146
150
  | Shared.NewPlanGroupedWithMeteredMinimumPrice
147
151
  | AddPrice.NewPlanGroupedWithMinMaxThresholdsPrice
148
152
  | Shared.NewPlanMatrixWithDisplayNamePrice
149
- | Shared.NewPlanBulkWithProrationPrice
150
153
  | Shared.NewPlanGroupedTieredPackagePrice
151
154
  | Shared.NewPlanMaxGroupTieredPackagePrice
152
155
  | Shared.NewPlanScalableMatrixWithUnitPricingPrice
153
156
  | Shared.NewPlanScalableMatrixWithTieredPricingPrice
154
157
  | Shared.NewPlanCumulativeGroupedBulkPrice
155
- | Shared.NewPlanTieredPackageWithMinimumPrice
156
- | Shared.NewPlanMatrixWithAllocationPrice
157
- | Shared.NewPlanGroupedTieredPrice
158
158
  | Shared.NewPlanMinimumCompositePrice
159
159
  | null;
160
160
  }
161
161
 
162
162
  export namespace AddPrice {
163
+ export interface NewPlanTieredWithProrationPrice {
164
+ /**
165
+ * The cadence to bill for this price on.
166
+ */
167
+ cadence: 'annual' | 'semi_annual' | 'monthly' | 'quarterly' | 'one_time' | 'custom';
168
+
169
+ /**
170
+ * The id of the item the price will be associated with.
171
+ */
172
+ item_id: string;
173
+
174
+ /**
175
+ * The pricing model type
176
+ */
177
+ model_type: 'tiered_with_proration';
178
+
179
+ /**
180
+ * The name of the price.
181
+ */
182
+ name: string;
183
+
184
+ /**
185
+ * Configuration for tiered_with_proration pricing
186
+ */
187
+ tiered_with_proration_config: NewPlanTieredWithProrationPrice.TieredWithProrationConfig;
188
+
189
+ /**
190
+ * The id of the billable metric for the price. Only needed if the price is
191
+ * usage-based.
192
+ */
193
+ billable_metric_id?: string | null;
194
+
195
+ /**
196
+ * If the Price represents a fixed cost, the price will be billed in-advance if
197
+ * this is true, and in-arrears if this is false.
198
+ */
199
+ billed_in_advance?: boolean | null;
200
+
201
+ /**
202
+ * For custom cadence: specifies the duration of the billing period in days or
203
+ * months.
204
+ */
205
+ billing_cycle_configuration?: Shared.NewBillingCycleConfiguration | null;
206
+
207
+ /**
208
+ * The per unit conversion rate of the price currency to the invoicing currency.
209
+ */
210
+ conversion_rate?: number | null;
211
+
212
+ /**
213
+ * The configuration for the rate of the price currency to the invoicing currency.
214
+ */
215
+ conversion_rate_config?: Shared.UnitConversionRateConfig | Shared.TieredConversionRateConfig | null;
216
+
217
+ /**
218
+ * An ISO 4217 currency string, or custom pricing unit identifier, in which this
219
+ * price is billed.
220
+ */
221
+ currency?: string | null;
222
+
223
+ /**
224
+ * For dimensional price: specifies a price group and dimension values
225
+ */
226
+ dimensional_price_configuration?: Shared.NewDimensionalPriceConfiguration | null;
227
+
228
+ /**
229
+ * An alias for the price.
230
+ */
231
+ external_price_id?: string | null;
232
+
233
+ /**
234
+ * If the Price represents a fixed cost, this represents the quantity of units
235
+ * applied.
236
+ */
237
+ fixed_price_quantity?: number | null;
238
+
239
+ /**
240
+ * The property used to group this price on an invoice
241
+ */
242
+ invoice_grouping_key?: string | null;
243
+
244
+ /**
245
+ * Within each billing cycle, specifies the cadence at which invoices are produced.
246
+ * If unspecified, a single invoice is produced per billing cycle.
247
+ */
248
+ invoicing_cycle_configuration?: Shared.NewBillingCycleConfiguration | null;
249
+
250
+ /**
251
+ * User-specified key/value pairs for the resource. Individual keys can be removed
252
+ * by setting the value to `null`, and the entire metadata mapping can be cleared
253
+ * by setting `metadata` to `null`.
254
+ */
255
+ metadata?: { [key: string]: string | null } | null;
256
+
257
+ /**
258
+ * A transient ID that can be used to reference this price when adding adjustments
259
+ * in the same API call.
260
+ */
261
+ reference_id?: string | null;
262
+ }
263
+
264
+ export namespace NewPlanTieredWithProrationPrice {
265
+ /**
266
+ * Configuration for tiered_with_proration pricing
267
+ */
268
+ export interface TieredWithProrationConfig {
269
+ /**
270
+ * Tiers for rating based on total usage quantities into the specified tier with
271
+ * proration
272
+ */
273
+ tiers: Array<TieredWithProrationConfig.Tier>;
274
+ }
275
+
276
+ export namespace TieredWithProrationConfig {
277
+ /**
278
+ * Configuration for a single tiered with proration tier
279
+ */
280
+ export interface Tier {
281
+ /**
282
+ * Inclusive tier starting value
283
+ */
284
+ tier_lower_bound: string;
285
+
286
+ /**
287
+ * Amount per unit
288
+ */
289
+ unit_amount: string;
290
+ }
291
+ }
292
+ }
293
+
163
294
  export interface NewPlanGroupedWithMinMaxThresholdsPrice {
164
295
  /**
165
296
  * The cadence to bill for this price on.
166
297
  */
167
298
  cadence: 'annual' | 'semi_annual' | 'monthly' | 'quarterly' | 'one_time' | 'custom';
168
299
 
169
- grouped_with_min_max_thresholds_config: { [key: string]: unknown };
300
+ /**
301
+ * Configuration for grouped_with_min_max_thresholds pricing
302
+ */
303
+ grouped_with_min_max_thresholds_config: NewPlanGroupedWithMinMaxThresholdsPrice.GroupedWithMinMaxThresholdsConfig;
170
304
 
171
305
  /**
172
306
  * The id of the item the price will be associated with.
173
307
  */
174
308
  item_id: string;
175
309
 
310
+ /**
311
+ * The pricing model type
312
+ */
176
313
  model_type: 'grouped_with_min_max_thresholds';
177
314
 
178
315
  /**
@@ -254,6 +391,33 @@ export namespace ExternalPlanIDCreatePlanVersionParams {
254
391
  */
255
392
  reference_id?: string | null;
256
393
  }
394
+
395
+ export namespace NewPlanGroupedWithMinMaxThresholdsPrice {
396
+ /**
397
+ * Configuration for grouped_with_min_max_thresholds pricing
398
+ */
399
+ export interface GroupedWithMinMaxThresholdsConfig {
400
+ /**
401
+ * The event property used to group before applying thresholds
402
+ */
403
+ grouping_key: string;
404
+
405
+ /**
406
+ * The maximum amount to charge each group
407
+ */
408
+ maximum_charge: string;
409
+
410
+ /**
411
+ * The minimum amount to charge each group, regardless of usage
412
+ */
413
+ minimum_charge: string;
414
+
415
+ /**
416
+ * The base price charged per group
417
+ */
418
+ per_unit_rate: string;
419
+ }
420
+ }
257
421
  }
258
422
 
259
423
  export interface RemoveAdjustment {
@@ -319,53 +483,190 @@ export namespace ExternalPlanIDCreatePlanVersionParams {
319
483
  plan_phase_order?: number | null;
320
484
 
321
485
  /**
322
- * The price to add to the plan
486
+ * New plan price request body params.
323
487
  */
324
488
  price?:
325
489
  | Shared.NewPlanUnitPrice
326
- | Shared.NewPlanPackagePrice
327
- | Shared.NewPlanMatrixPrice
328
490
  | Shared.NewPlanTieredPrice
329
491
  | Shared.NewPlanBulkPrice
492
+ | Shared.NewPlanPackagePrice
493
+ | Shared.NewPlanMatrixPrice
330
494
  | Shared.NewPlanThresholdTotalAmountPrice
331
495
  | Shared.NewPlanTieredPackagePrice
332
496
  | Shared.NewPlanTieredWithMinimumPrice
333
- | Shared.NewPlanUnitWithPercentPrice
497
+ | Shared.NewPlanGroupedTieredPrice
498
+ | Shared.NewPlanTieredPackageWithMinimumPrice
334
499
  | Shared.NewPlanPackageWithAllocationPrice
335
- | Shared.NewPlanTierWithProrationPrice
500
+ | Shared.NewPlanUnitWithPercentPrice
501
+ | Shared.NewPlanMatrixWithAllocationPrice
502
+ | ReplacePrice.NewPlanTieredWithProrationPrice
336
503
  | Shared.NewPlanUnitWithProrationPrice
337
504
  | Shared.NewPlanGroupedAllocationPrice
505
+ | Shared.NewPlanBulkWithProrationPrice
338
506
  | Shared.NewPlanGroupedWithProratedMinimumPrice
339
507
  | Shared.NewPlanGroupedWithMeteredMinimumPrice
340
508
  | ReplacePrice.NewPlanGroupedWithMinMaxThresholdsPrice
341
509
  | Shared.NewPlanMatrixWithDisplayNamePrice
342
- | Shared.NewPlanBulkWithProrationPrice
343
510
  | Shared.NewPlanGroupedTieredPackagePrice
344
511
  | Shared.NewPlanMaxGroupTieredPackagePrice
345
512
  | Shared.NewPlanScalableMatrixWithUnitPricingPrice
346
513
  | Shared.NewPlanScalableMatrixWithTieredPricingPrice
347
514
  | Shared.NewPlanCumulativeGroupedBulkPrice
348
- | Shared.NewPlanTieredPackageWithMinimumPrice
349
- | Shared.NewPlanMatrixWithAllocationPrice
350
- | Shared.NewPlanGroupedTieredPrice
351
515
  | Shared.NewPlanMinimumCompositePrice
352
516
  | null;
353
517
  }
354
518
 
355
519
  export namespace ReplacePrice {
520
+ export interface NewPlanTieredWithProrationPrice {
521
+ /**
522
+ * The cadence to bill for this price on.
523
+ */
524
+ cadence: 'annual' | 'semi_annual' | 'monthly' | 'quarterly' | 'one_time' | 'custom';
525
+
526
+ /**
527
+ * The id of the item the price will be associated with.
528
+ */
529
+ item_id: string;
530
+
531
+ /**
532
+ * The pricing model type
533
+ */
534
+ model_type: 'tiered_with_proration';
535
+
536
+ /**
537
+ * The name of the price.
538
+ */
539
+ name: string;
540
+
541
+ /**
542
+ * Configuration for tiered_with_proration pricing
543
+ */
544
+ tiered_with_proration_config: NewPlanTieredWithProrationPrice.TieredWithProrationConfig;
545
+
546
+ /**
547
+ * The id of the billable metric for the price. Only needed if the price is
548
+ * usage-based.
549
+ */
550
+ billable_metric_id?: string | null;
551
+
552
+ /**
553
+ * If the Price represents a fixed cost, the price will be billed in-advance if
554
+ * this is true, and in-arrears if this is false.
555
+ */
556
+ billed_in_advance?: boolean | null;
557
+
558
+ /**
559
+ * For custom cadence: specifies the duration of the billing period in days or
560
+ * months.
561
+ */
562
+ billing_cycle_configuration?: Shared.NewBillingCycleConfiguration | null;
563
+
564
+ /**
565
+ * The per unit conversion rate of the price currency to the invoicing currency.
566
+ */
567
+ conversion_rate?: number | null;
568
+
569
+ /**
570
+ * The configuration for the rate of the price currency to the invoicing currency.
571
+ */
572
+ conversion_rate_config?: Shared.UnitConversionRateConfig | Shared.TieredConversionRateConfig | null;
573
+
574
+ /**
575
+ * An ISO 4217 currency string, or custom pricing unit identifier, in which this
576
+ * price is billed.
577
+ */
578
+ currency?: string | null;
579
+
580
+ /**
581
+ * For dimensional price: specifies a price group and dimension values
582
+ */
583
+ dimensional_price_configuration?: Shared.NewDimensionalPriceConfiguration | null;
584
+
585
+ /**
586
+ * An alias for the price.
587
+ */
588
+ external_price_id?: string | null;
589
+
590
+ /**
591
+ * If the Price represents a fixed cost, this represents the quantity of units
592
+ * applied.
593
+ */
594
+ fixed_price_quantity?: number | null;
595
+
596
+ /**
597
+ * The property used to group this price on an invoice
598
+ */
599
+ invoice_grouping_key?: string | null;
600
+
601
+ /**
602
+ * Within each billing cycle, specifies the cadence at which invoices are produced.
603
+ * If unspecified, a single invoice is produced per billing cycle.
604
+ */
605
+ invoicing_cycle_configuration?: Shared.NewBillingCycleConfiguration | null;
606
+
607
+ /**
608
+ * User-specified key/value pairs for the resource. Individual keys can be removed
609
+ * by setting the value to `null`, and the entire metadata mapping can be cleared
610
+ * by setting `metadata` to `null`.
611
+ */
612
+ metadata?: { [key: string]: string | null } | null;
613
+
614
+ /**
615
+ * A transient ID that can be used to reference this price when adding adjustments
616
+ * in the same API call.
617
+ */
618
+ reference_id?: string | null;
619
+ }
620
+
621
+ export namespace NewPlanTieredWithProrationPrice {
622
+ /**
623
+ * Configuration for tiered_with_proration pricing
624
+ */
625
+ export interface TieredWithProrationConfig {
626
+ /**
627
+ * Tiers for rating based on total usage quantities into the specified tier with
628
+ * proration
629
+ */
630
+ tiers: Array<TieredWithProrationConfig.Tier>;
631
+ }
632
+
633
+ export namespace TieredWithProrationConfig {
634
+ /**
635
+ * Configuration for a single tiered with proration tier
636
+ */
637
+ export interface Tier {
638
+ /**
639
+ * Inclusive tier starting value
640
+ */
641
+ tier_lower_bound: string;
642
+
643
+ /**
644
+ * Amount per unit
645
+ */
646
+ unit_amount: string;
647
+ }
648
+ }
649
+ }
650
+
356
651
  export interface NewPlanGroupedWithMinMaxThresholdsPrice {
357
652
  /**
358
653
  * The cadence to bill for this price on.
359
654
  */
360
655
  cadence: 'annual' | 'semi_annual' | 'monthly' | 'quarterly' | 'one_time' | 'custom';
361
656
 
362
- grouped_with_min_max_thresholds_config: { [key: string]: unknown };
657
+ /**
658
+ * Configuration for grouped_with_min_max_thresholds pricing
659
+ */
660
+ grouped_with_min_max_thresholds_config: NewPlanGroupedWithMinMaxThresholdsPrice.GroupedWithMinMaxThresholdsConfig;
363
661
 
364
662
  /**
365
663
  * The id of the item the price will be associated with.
366
664
  */
367
665
  item_id: string;
368
666
 
667
+ /**
668
+ * The pricing model type
669
+ */
369
670
  model_type: 'grouped_with_min_max_thresholds';
370
671
 
371
672
  /**
@@ -447,6 +748,33 @@ export namespace ExternalPlanIDCreatePlanVersionParams {
447
748
  */
448
749
  reference_id?: string | null;
449
750
  }
751
+
752
+ export namespace NewPlanGroupedWithMinMaxThresholdsPrice {
753
+ /**
754
+ * Configuration for grouped_with_min_max_thresholds pricing
755
+ */
756
+ export interface GroupedWithMinMaxThresholdsConfig {
757
+ /**
758
+ * The event property used to group before applying thresholds
759
+ */
760
+ grouping_key: string;
761
+
762
+ /**
763
+ * The maximum amount to charge each group
764
+ */
765
+ maximum_charge: string;
766
+
767
+ /**
768
+ * The minimum amount to charge each group, regardless of usage
769
+ */
770
+ minimum_charge: string;
771
+
772
+ /**
773
+ * The base price charged per group
774
+ */
775
+ per_unit_rate: string;
776
+ }
777
+ }
450
778
  }
451
779
  }
452
780
 
@@ -554,7 +554,8 @@ export interface CustomerCreateParams {
554
554
 
555
555
  /**
556
556
  * Additional email addresses for this customer. If populated, these email
557
- * addresses will be CC'd for customer communications.
557
+ * addresses will be CC'd for customer communications. The total number of email
558
+ * addresses (including the primary email) cannot exceed 50.
558
559
  */
559
560
  additional_emails?: Array<string> | null;
560
561
 
@@ -619,7 +620,12 @@ export interface CustomerCreateParams {
619
620
 
620
621
  shipping_address?: AddressInput | null;
621
622
 
622
- tax_configuration?: NewAvalaraTaxConfiguration | NewTaxJarConfiguration | NewSphereConfiguration | null;
623
+ tax_configuration?:
624
+ | NewAvalaraTaxConfiguration
625
+ | NewTaxJarConfiguration
626
+ | NewSphereConfiguration
627
+ | CustomerCreateParams.NewNumeralConfiguration
628
+ | null;
623
629
 
624
630
  /**
625
631
  * Tax IDs are commonly required to be displayed on customer invoices, which are
@@ -777,12 +783,21 @@ export interface CustomerCreateParams {
777
783
  timezone?: string | null;
778
784
  }
779
785
 
786
+ export namespace CustomerCreateParams {
787
+ export interface NewNumeralConfiguration {
788
+ tax_exempt: boolean;
789
+
790
+ tax_provider: 'numeral';
791
+ }
792
+ }
793
+
780
794
  export interface CustomerUpdateParams {
781
795
  accounting_sync_configuration?: NewAccountingSyncConfiguration | null;
782
796
 
783
797
  /**
784
798
  * Additional email addresses for this customer. If populated, these email
785
- * addresses will be CC'd for customer communications.
799
+ * addresses will be CC'd for customer communications. The total number of email
800
+ * addresses (including the primary email) cannot exceed 50.
786
801
  */
787
802
  additional_emails?: Array<string> | null;
788
803
 
@@ -863,7 +878,12 @@ export interface CustomerUpdateParams {
863
878
 
864
879
  shipping_address?: AddressInput | null;
865
880
 
866
- tax_configuration?: NewAvalaraTaxConfiguration | NewTaxJarConfiguration | NewSphereConfiguration | null;
881
+ tax_configuration?:
882
+ | NewAvalaraTaxConfiguration
883
+ | NewTaxJarConfiguration
884
+ | NewSphereConfiguration
885
+ | CustomerUpdateParams.NewNumeralConfiguration
886
+ | null;
867
887
 
868
888
  /**
869
889
  * Tax IDs are commonly required to be displayed on customer invoices, which are
@@ -1014,6 +1034,14 @@ export interface CustomerUpdateParams {
1014
1034
  tax_id?: Shared.CustomerTaxID | null;
1015
1035
  }
1016
1036
 
1037
+ export namespace CustomerUpdateParams {
1038
+ export interface NewNumeralConfiguration {
1039
+ tax_exempt: boolean;
1040
+
1041
+ tax_provider: 'numeral';
1042
+ }
1043
+ }
1044
+
1017
1045
  export interface CustomerListParams extends PageParams {
1018
1046
  'created_at[gt]'?: string | null;
1019
1047
 
@@ -1029,7 +1057,8 @@ export interface CustomerUpdateByExternalIDParams {
1029
1057
 
1030
1058
  /**
1031
1059
  * Additional email addresses for this customer. If populated, these email
1032
- * addresses will be CC'd for customer communications.
1060
+ * addresses will be CC'd for customer communications. The total number of email
1061
+ * addresses (including the primary email) cannot exceed 50.
1033
1062
  */
1034
1063
  additional_emails?: Array<string> | null;
1035
1064
 
@@ -1110,7 +1139,12 @@ export interface CustomerUpdateByExternalIDParams {
1110
1139
 
1111
1140
  shipping_address?: AddressInput | null;
1112
1141
 
1113
- tax_configuration?: NewAvalaraTaxConfiguration | NewTaxJarConfiguration | NewSphereConfiguration | null;
1142
+ tax_configuration?:
1143
+ | NewAvalaraTaxConfiguration
1144
+ | NewTaxJarConfiguration
1145
+ | NewSphereConfiguration
1146
+ | CustomerUpdateByExternalIDParams.NewNumeralConfiguration
1147
+ | null;
1114
1148
 
1115
1149
  /**
1116
1150
  * Tax IDs are commonly required to be displayed on customer invoices, which are
@@ -1261,6 +1295,14 @@ export interface CustomerUpdateByExternalIDParams {
1261
1295
  tax_id?: Shared.CustomerTaxID | null;
1262
1296
  }
1263
1297
 
1298
+ export namespace CustomerUpdateByExternalIDParams {
1299
+ export interface NewNumeralConfiguration {
1300
+ tax_exempt: boolean;
1301
+
1302
+ tax_provider: 'numeral';
1303
+ }
1304
+ }
1305
+
1264
1306
  Customers.CustomersPage = CustomersPage;
1265
1307
  Customers.Costs = Costs;
1266
1308
  Customers.Credits = Credits;
@@ -147,7 +147,6 @@ export {
147
147
  type NewSubscriptionScalableMatrixWithTieredPricingPrice,
148
148
  type NewSubscriptionScalableMatrixWithUnitPricingPrice,
149
149
  type NewSubscriptionThresholdTotalAmountPrice,
150
- type NewSubscriptionTierWithProrationPrice,
151
150
  type NewSubscriptionTieredPackagePrice,
152
151
  type NewSubscriptionTieredPackageWithMinimumPrice,
153
152
  type NewSubscriptionTieredPrice,
@@ -848,6 +848,9 @@ export namespace InvoiceCreateParams {
848
848
  */
849
849
  start_date: string;
850
850
 
851
+ /**
852
+ * Configuration for unit pricing
853
+ */
851
854
  unit_config: Shared.UnitConfig;
852
855
  }
853
856
  }