orb-billing 5.21.0 → 5.22.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.
@@ -1 +1 @@
1
- {"version":3,"file":"shared.js","sourceRoot":"","sources":["../src/resources/shared.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAGtF,iDAAqC;AAqncrC,MAAa,eAAgB,SAAQ,iBAAgB;CAAG;AAAxD,0CAAwD;AAExD,MAAa,YAAa,SAAQ,iBAAa;CAAG;AAAlD,oCAAkD;AAElD,MAAa,UAAW,SAAQ,iBAAW;CAAG;AAA9C,gCAA8C"}
1
+ {"version":3,"file":"shared.js","sourceRoot":"","sources":["../src/resources/shared.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAGtF,iDAAqC;AA0ocrC,MAAa,eAAgB,SAAQ,iBAAgB;CAAG;AAAxD,0CAAwD;AAExD,MAAa,YAAa,SAAQ,iBAAa;CAAG;AAAlD,oCAAkD;AAElD,MAAa,UAAW,SAAQ,iBAAW;CAAG;AAA9C,gCAA8C"}
@@ -1 +1 @@
1
- {"version":3,"file":"shared.mjs","sourceRoot":"","sources":["../src/resources/shared.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAG/E,EAAE,IAAI,EAAE;AAqncf,MAAM,OAAO,eAAgB,SAAQ,IAAgB;CAAG;AAExD,MAAM,OAAO,YAAa,SAAQ,IAAa;CAAG;AAElD,MAAM,OAAO,UAAW,SAAQ,IAAW;CAAG"}
1
+ {"version":3,"file":"shared.mjs","sourceRoot":"","sources":["../src/resources/shared.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAG/E,EAAE,IAAI,EAAE;AA0ocf,MAAM,OAAO,eAAgB,SAAQ,IAAgB;CAAG;AAExD,MAAM,OAAO,YAAa,SAAQ,IAAa;CAAG;AAElD,MAAM,OAAO,UAAW,SAAQ,IAAW;CAAG"}
@@ -471,15 +471,15 @@ export class LedgerListByExternalIDResponsesPage extends Page<LedgerListByExtern
471
471
  export interface AffectedBlock {
472
472
  id: string;
473
473
 
474
- block_filters: Array<AffectedBlock.BlockFilter> | null;
475
-
476
474
  expiry_date: string | null;
477
475
 
476
+ filters: Array<AffectedBlock.Filter>;
477
+
478
478
  per_unit_cost_basis: string | null;
479
479
  }
480
480
 
481
481
  export namespace AffectedBlock {
482
- export interface BlockFilter {
482
+ export interface Filter {
483
483
  /**
484
484
  * The property of the price to filter on.
485
485
  */
@@ -461,6 +461,12 @@ export interface Customer {
461
461
 
462
462
  accounting_sync_configuration?: Customer.AccountingSyncConfiguration | null;
463
463
 
464
+ /**
465
+ * Whether automatic tax calculation is enabled for this customer. This field is
466
+ * nullable for backwards compatibility but will always return a boolean value.
467
+ */
468
+ automatic_tax_enabled?: boolean | null;
469
+
464
470
  reporting_configuration?: Customer.ReportingConfiguration | null;
465
471
  }
466
472
 
@@ -518,6 +524,12 @@ export interface NewAvalaraTaxConfiguration {
518
524
 
519
525
  tax_provider: 'avalara';
520
526
 
527
+ /**
528
+ * Whether to automatically calculate tax for this customer. When null, inherits
529
+ * from account-level setting. When true or false, overrides the account setting.
530
+ */
531
+ automatic_tax_enabled?: boolean | null;
532
+
521
533
  tax_exemption_code?: string | null;
522
534
  }
523
535
 
@@ -529,12 +541,24 @@ export interface NewSphereConfiguration {
529
541
  tax_exempt: boolean;
530
542
 
531
543
  tax_provider: 'sphere';
544
+
545
+ /**
546
+ * Whether to automatically calculate tax for this customer. When null, inherits
547
+ * from account-level setting. When true or false, overrides the account setting.
548
+ */
549
+ automatic_tax_enabled?: boolean | null;
532
550
  }
533
551
 
534
552
  export interface NewTaxJarConfiguration {
535
553
  tax_exempt: boolean;
536
554
 
537
555
  tax_provider: 'taxjar';
556
+
557
+ /**
558
+ * Whether to automatically calculate tax for this customer. When null, inherits
559
+ * from account-level setting. When true or false, overrides the account setting.
560
+ */
561
+ automatic_tax_enabled?: boolean | null;
538
562
  }
539
563
 
540
564
  export interface CustomerCreateParams {
@@ -625,6 +649,7 @@ export interface CustomerCreateParams {
625
649
  | NewTaxJarConfiguration
626
650
  | NewSphereConfiguration
627
651
  | CustomerCreateParams.NewNumeralConfiguration
652
+ | CustomerCreateParams.NewAnrokConfiguration
628
653
  | null;
629
654
 
630
655
  /**
@@ -788,6 +813,24 @@ export namespace CustomerCreateParams {
788
813
  tax_exempt: boolean;
789
814
 
790
815
  tax_provider: 'numeral';
816
+
817
+ /**
818
+ * Whether to automatically calculate tax for this customer. When null, inherits
819
+ * from account-level setting. When true or false, overrides the account setting.
820
+ */
821
+ automatic_tax_enabled?: boolean | null;
822
+ }
823
+
824
+ export interface NewAnrokConfiguration {
825
+ tax_exempt: boolean;
826
+
827
+ tax_provider: 'anrok';
828
+
829
+ /**
830
+ * Whether to automatically calculate tax for this customer. When null, inherits
831
+ * from account-level setting. When true or false, overrides the account setting.
832
+ */
833
+ automatic_tax_enabled?: boolean | null;
791
834
  }
792
835
  }
793
836
 
@@ -816,6 +859,13 @@ export interface CustomerUpdateParams {
816
859
  */
817
860
  auto_issuance?: boolean | null;
818
861
 
862
+ /**
863
+ * Whether automatic tax calculation is enabled for this customer. When null,
864
+ * inherits from account-level setting. When true or false, overrides the account
865
+ * setting.
866
+ */
867
+ automatic_tax_enabled?: boolean | null;
868
+
819
869
  billing_address?: AddressInput | null;
820
870
 
821
871
  /**
@@ -883,6 +933,7 @@ export interface CustomerUpdateParams {
883
933
  | NewTaxJarConfiguration
884
934
  | NewSphereConfiguration
885
935
  | CustomerUpdateParams.NewNumeralConfiguration
936
+ | CustomerUpdateParams.NewAnrokConfiguration
886
937
  | null;
887
938
 
888
939
  /**
@@ -1039,6 +1090,24 @@ export namespace CustomerUpdateParams {
1039
1090
  tax_exempt: boolean;
1040
1091
 
1041
1092
  tax_provider: 'numeral';
1093
+
1094
+ /**
1095
+ * Whether to automatically calculate tax for this customer. When null, inherits
1096
+ * from account-level setting. When true or false, overrides the account setting.
1097
+ */
1098
+ automatic_tax_enabled?: boolean | null;
1099
+ }
1100
+
1101
+ export interface NewAnrokConfiguration {
1102
+ tax_exempt: boolean;
1103
+
1104
+ tax_provider: 'anrok';
1105
+
1106
+ /**
1107
+ * Whether to automatically calculate tax for this customer. When null, inherits
1108
+ * from account-level setting. When true or false, overrides the account setting.
1109
+ */
1110
+ automatic_tax_enabled?: boolean | null;
1042
1111
  }
1043
1112
  }
1044
1113
 
@@ -1077,6 +1146,13 @@ export interface CustomerUpdateByExternalIDParams {
1077
1146
  */
1078
1147
  auto_issuance?: boolean | null;
1079
1148
 
1149
+ /**
1150
+ * Whether automatic tax calculation is enabled for this customer. When null,
1151
+ * inherits from account-level setting. When true or false, overrides the account
1152
+ * setting.
1153
+ */
1154
+ automatic_tax_enabled?: boolean | null;
1155
+
1080
1156
  billing_address?: AddressInput | null;
1081
1157
 
1082
1158
  /**
@@ -1144,6 +1220,7 @@ export interface CustomerUpdateByExternalIDParams {
1144
1220
  | NewTaxJarConfiguration
1145
1221
  | NewSphereConfiguration
1146
1222
  | CustomerUpdateByExternalIDParams.NewNumeralConfiguration
1223
+ | CustomerUpdateByExternalIDParams.NewAnrokConfiguration
1147
1224
  | null;
1148
1225
 
1149
1226
  /**
@@ -1300,6 +1377,24 @@ export namespace CustomerUpdateByExternalIDParams {
1300
1377
  tax_exempt: boolean;
1301
1378
 
1302
1379
  tax_provider: 'numeral';
1380
+
1381
+ /**
1382
+ * Whether to automatically calculate tax for this customer. When null, inherits
1383
+ * from account-level setting. When true or false, overrides the account setting.
1384
+ */
1385
+ automatic_tax_enabled?: boolean | null;
1386
+ }
1387
+
1388
+ export interface NewAnrokConfiguration {
1389
+ tax_exempt: boolean;
1390
+
1391
+ tax_provider: 'anrok';
1392
+
1393
+ /**
1394
+ * Whether to automatically calculate tax for this customer. When null, inherits
1395
+ * from account-level setting. When true or false, overrides the account setting.
1396
+ */
1397
+ automatic_tax_enabled?: boolean | null;
1303
1398
  }
1304
1399
  }
1305
1400
 
@@ -67,6 +67,27 @@ export interface Allocation {
67
67
  currency: string;
68
68
 
69
69
  custom_expiration: CustomExpiration | null;
70
+
71
+ filters?: Array<Allocation.Filter>;
72
+ }
73
+
74
+ export namespace Allocation {
75
+ export interface Filter {
76
+ /**
77
+ * The property of the price to filter on.
78
+ */
79
+ field: 'price_id' | 'item_id' | 'price_type' | 'currency' | 'pricing_unit_id';
80
+
81
+ /**
82
+ * Should prices that match the filter be included or excluded.
83
+ */
84
+ operator: 'includes' | 'excludes';
85
+
86
+ /**
87
+ * The IDs or values that match this filter.
88
+ */
89
+ values: Array<string>;
90
+ }
70
91
  }
71
92
 
72
93
  export interface AmountDiscount {
package/src/version.ts CHANGED
@@ -1 +1 @@
1
- export const VERSION = '5.21.0'; // x-release-please-version
1
+ export const VERSION = '5.22.0'; // x-release-please-version
package/version.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- export declare const VERSION = "5.21.0";
1
+ export declare const VERSION = "5.22.0";
2
2
  //# sourceMappingURL=version.d.ts.map
package/version.js CHANGED
@@ -1,5 +1,5 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.VERSION = void 0;
4
- exports.VERSION = '5.21.0'; // x-release-please-version
4
+ exports.VERSION = '5.22.0'; // x-release-please-version
5
5
  //# sourceMappingURL=version.js.map
package/version.mjs CHANGED
@@ -1,2 +1,2 @@
1
- export const VERSION = '5.21.0'; // x-release-please-version
1
+ export const VERSION = '5.22.0'; // x-release-please-version
2
2
  //# sourceMappingURL=version.mjs.map