orb-billing 5.20.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.
- package/CHANGELOG.md +16 -0
- package/package.json +1 -1
- package/resources/customers/credits/ledger.d.ts +2 -2
- package/resources/customers/credits/ledger.d.ts.map +1 -1
- package/resources/customers/customers.d.ts +77 -3
- package/resources/customers/customers.d.ts.map +1 -1
- package/resources/customers/customers.js.map +1 -1
- package/resources/customers/customers.mjs.map +1 -1
- package/resources/shared.d.ts +17 -0
- package/resources/shared.d.ts.map +1 -1
- package/resources/shared.js.map +1 -1
- package/resources/shared.mjs.map +1 -1
- package/resources/subscription-changes.d.ts +14 -0
- package/resources/subscription-changes.d.ts.map +1 -1
- package/src/resources/customers/credits/ledger.ts +3 -3
- package/src/resources/customers/customers.ts +95 -0
- package/src/resources/shared.ts +21 -0
- package/src/resources/subscription-changes.ts +17 -0
- package/src/version.ts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
package/resources/shared.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"shared.js","sourceRoot":"","sources":["../src/resources/shared.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAGtF,iDAAqC;
|
|
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"}
|
package/resources/shared.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"shared.mjs","sourceRoot":"","sources":["../src/resources/shared.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAG/E,EAAE,IAAI,EAAE;
|
|
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"}
|
|
@@ -244,6 +244,20 @@ export interface SubscriptionChangeApplyParams {
|
|
|
244
244
|
* mark as paid and credit the difference to the customer's balance.
|
|
245
245
|
*/
|
|
246
246
|
mark_as_paid?: boolean | null;
|
|
247
|
+
/**
|
|
248
|
+
* An optional external ID to associate with the payment. Only applicable when
|
|
249
|
+
* mark_as_paid is true.
|
|
250
|
+
*/
|
|
251
|
+
payment_external_id?: string | null;
|
|
252
|
+
/**
|
|
253
|
+
* Optional notes about the payment. Only applicable when mark_as_paid is true.
|
|
254
|
+
*/
|
|
255
|
+
payment_notes?: string | null;
|
|
256
|
+
/**
|
|
257
|
+
* A date string to specify the date the payment was received. Only applicable when
|
|
258
|
+
* mark_as_paid is true. If not provided, defaults to the current date.
|
|
259
|
+
*/
|
|
260
|
+
payment_received_date?: string | null;
|
|
247
261
|
/**
|
|
248
262
|
* Amount already collected to apply to the customer's balance. If mark_as_paid is
|
|
249
263
|
* also provided, credit the difference to the customer's balance.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"subscription-changes.d.ts","sourceRoot":"","sources":["../src/resources/subscription-changes.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAE1C,OAAO,KAAK,IAAI,MAAM,SAAS,CAAC;AAChC,OAAO,KAAK,MAAM,MAAM,UAAU,CAAC;AACnC,OAAO,KAAK,YAAY,MAAM,uBAAuB,CAAC;AACtD,OAAO,KAAK,QAAQ,MAAM,eAAe,CAAC;AAE1C,qBAAa,mBAAoB,SAAQ,WAAW;IAClD;;;;;;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CAAC;IAExB,MAAM,EAAE,SAAS,GAAG,SAAS,GAAG,WAAW,CAAC;IAE5C,YAAY,EAAE,mBAAmB,GAAG,IAAI,CAAC;IAEzC;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAE3B;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CAC9B;AAED,MAAM,WAAW,6BAA6B;IAC5C;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAE5B;;;OAGG;IACH,YAAY,CAAC,EAAE,OAAO,GAAG,IAAI,CAAC;IAE9B;;;OAGG;IACH,mBAAmB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAEpC;;OAEG;IACH,aAAa,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAE9B;;;OAGG;IACH,qBAAqB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAEtC;;;OAGG;IACH,2BAA2B,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CAC7C;AAED,MAAM,CAAC,OAAO,WAAW,mBAAmB,CAAC;IAC3C,OAAO,EACL,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,kCAAkC,IAAI,kCAAkC,EAC7E,KAAK,+BAA+B,IAAI,+BAA+B,EACvE,KAAK,gCAAgC,IAAI,gCAAgC,EACzE,KAAK,6BAA6B,IAAI,6BAA6B,GACpE,CAAC;CACH"}
|
|
@@ -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
|
|
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
|
|
package/src/resources/shared.ts
CHANGED
|
@@ -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 {
|
|
@@ -326,6 +326,23 @@ export interface SubscriptionChangeApplyParams {
|
|
|
326
326
|
*/
|
|
327
327
|
mark_as_paid?: boolean | null;
|
|
328
328
|
|
|
329
|
+
/**
|
|
330
|
+
* An optional external ID to associate with the payment. Only applicable when
|
|
331
|
+
* mark_as_paid is true.
|
|
332
|
+
*/
|
|
333
|
+
payment_external_id?: string | null;
|
|
334
|
+
|
|
335
|
+
/**
|
|
336
|
+
* Optional notes about the payment. Only applicable when mark_as_paid is true.
|
|
337
|
+
*/
|
|
338
|
+
payment_notes?: string | null;
|
|
339
|
+
|
|
340
|
+
/**
|
|
341
|
+
* A date string to specify the date the payment was received. Only applicable when
|
|
342
|
+
* mark_as_paid is true. If not provided, defaults to the current date.
|
|
343
|
+
*/
|
|
344
|
+
payment_received_date?: string | null;
|
|
345
|
+
|
|
329
346
|
/**
|
|
330
347
|
* Amount already collected to apply to the customer's balance. If mark_as_paid is
|
|
331
348
|
* also provided, credit the difference to the customer's balance.
|
package/src/version.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const VERSION = '5.
|
|
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.
|
|
1
|
+
export declare const VERSION = "5.22.0";
|
|
2
2
|
//# sourceMappingURL=version.d.ts.map
|
package/version.js
CHANGED
package/version.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export const VERSION = '5.
|
|
1
|
+
export const VERSION = '5.22.0'; // x-release-please-version
|
|
2
2
|
//# sourceMappingURL=version.mjs.map
|