@vendasta/billing 14.58.0 → 14.59.1
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/esm2022/lib/_internal/index.mjs +2 -1
- package/esm2022/lib/_internal/interfaces/index.mjs +1 -1
- package/esm2022/lib/_internal/interfaces/invoice.interface.mjs +1 -1
- package/esm2022/lib/_internal/interfaces/wholesale-tax-rule.interface.mjs +2 -0
- package/esm2022/lib/_internal/objects/index.mjs +2 -1
- package/esm2022/lib/_internal/objects/invoice.mjs +2 -2
- package/esm2022/lib/_internal/objects/wholesale-tax-rule.mjs +141 -0
- package/esm2022/lib/_internal/wholesale-tax-rule.api.service.mjs +45 -0
- package/fesm2022/vendasta-billing.mjs +396 -218
- package/fesm2022/vendasta-billing.mjs.map +1 -1
- package/lib/_internal/index.d.ts +1 -0
- package/lib/_internal/interfaces/index.d.ts +1 -0
- package/lib/_internal/interfaces/invoice.interface.d.ts +1 -1
- package/lib/_internal/interfaces/wholesale-tax-rule.interface.d.ts +22 -0
- package/lib/_internal/objects/index.d.ts +1 -0
- package/lib/_internal/objects/invoice.d.ts +1 -1
- package/lib/_internal/objects/wholesale-tax-rule.d.ts +39 -0
- package/lib/_internal/wholesale-tax-rule.api.service.d.ts +14 -0
- package/package.json +1 -1
|
@@ -777,7 +777,7 @@ var CreditNoteReason;
|
|
|
777
777
|
// Enums Index.
|
|
778
778
|
// *********************************
|
|
779
779
|
|
|
780
|
-
function enumStringToValue$
|
|
780
|
+
function enumStringToValue$N(enumRef, value) {
|
|
781
781
|
if (typeof value === 'number') {
|
|
782
782
|
return value;
|
|
783
783
|
}
|
|
@@ -870,7 +870,7 @@ class PagedResponseMetadata {
|
|
|
870
870
|
}
|
|
871
871
|
}
|
|
872
872
|
|
|
873
|
-
function enumStringToValue$
|
|
873
|
+
function enumStringToValue$M(enumRef, value) {
|
|
874
874
|
if (typeof value === 'number') {
|
|
875
875
|
return value;
|
|
876
876
|
}
|
|
@@ -897,7 +897,7 @@ class FieldMask {
|
|
|
897
897
|
}
|
|
898
898
|
}
|
|
899
899
|
|
|
900
|
-
function enumStringToValue$
|
|
900
|
+
function enumStringToValue$L(enumRef, value) {
|
|
901
901
|
if (typeof value === 'number') {
|
|
902
902
|
return value;
|
|
903
903
|
}
|
|
@@ -933,7 +933,7 @@ class Commitment {
|
|
|
933
933
|
}
|
|
934
934
|
}
|
|
935
935
|
|
|
936
|
-
function enumStringToValue$
|
|
936
|
+
function enumStringToValue$K(enumRef, value) {
|
|
937
937
|
if (typeof value === 'number') {
|
|
938
938
|
return value;
|
|
939
939
|
}
|
|
@@ -973,10 +973,10 @@ class Fee {
|
|
|
973
973
|
let m = new Fee();
|
|
974
974
|
m = Object.assign(m, proto);
|
|
975
975
|
if (proto.amountType) {
|
|
976
|
-
m.amountType = enumStringToValue$
|
|
976
|
+
m.amountType = enumStringToValue$K(FeeAmountType, proto.amountType);
|
|
977
977
|
}
|
|
978
978
|
if (proto.feeType) {
|
|
979
|
-
m.feeType = enumStringToValue$
|
|
979
|
+
m.feeType = enumStringToValue$K(FeeType, proto.feeType);
|
|
980
980
|
}
|
|
981
981
|
return m;
|
|
982
982
|
}
|
|
@@ -1001,7 +1001,7 @@ class Fee {
|
|
|
1001
1001
|
}
|
|
1002
1002
|
}
|
|
1003
1003
|
|
|
1004
|
-
function enumStringToValue$
|
|
1004
|
+
function enumStringToValue$J(enumRef, value) {
|
|
1005
1005
|
if (typeof value === 'number') {
|
|
1006
1006
|
return value;
|
|
1007
1007
|
}
|
|
@@ -1038,7 +1038,7 @@ class CreatePricingPlanRequest {
|
|
|
1038
1038
|
let m = new CreatePricingPlanRequest();
|
|
1039
1039
|
m = Object.assign(m, proto);
|
|
1040
1040
|
if (proto.defaultBillingStrategy) {
|
|
1041
|
-
m.defaultBillingStrategy = enumStringToValue$
|
|
1041
|
+
m.defaultBillingStrategy = enumStringToValue$J(BillingStrategy, proto.defaultBillingStrategy);
|
|
1042
1042
|
}
|
|
1043
1043
|
return m;
|
|
1044
1044
|
}
|
|
@@ -1127,7 +1127,7 @@ class PricingPlan {
|
|
|
1127
1127
|
let m = new PricingPlan();
|
|
1128
1128
|
m = Object.assign(m, proto);
|
|
1129
1129
|
if (proto.defaultBillingStrategy) {
|
|
1130
|
-
m.defaultBillingStrategy = enumStringToValue$
|
|
1130
|
+
m.defaultBillingStrategy = enumStringToValue$J(BillingStrategy, proto.defaultBillingStrategy);
|
|
1131
1131
|
}
|
|
1132
1132
|
return m;
|
|
1133
1133
|
}
|
|
@@ -1156,7 +1156,7 @@ class PricingPlanProductPricing {
|
|
|
1156
1156
|
let m = new PricingPlanProductPricing();
|
|
1157
1157
|
m = Object.assign(m, proto);
|
|
1158
1158
|
if (proto.type) {
|
|
1159
|
-
m.type = enumStringToValue$
|
|
1159
|
+
m.type = enumStringToValue$J(ProductPricingType, proto.type);
|
|
1160
1160
|
}
|
|
1161
1161
|
if (proto.rules) {
|
|
1162
1162
|
m.rules = proto.rules.map(ProductPricingRule.fromProto);
|
|
@@ -1165,7 +1165,7 @@ class PricingPlanProductPricing {
|
|
|
1165
1165
|
m.setupFee = parseInt(proto.setupFee, 10);
|
|
1166
1166
|
}
|
|
1167
1167
|
if (proto.frequency) {
|
|
1168
|
-
m.frequency = enumStringToValue$
|
|
1168
|
+
m.frequency = enumStringToValue$J(Frequency, proto.frequency);
|
|
1169
1169
|
}
|
|
1170
1170
|
if (proto.fees) {
|
|
1171
1171
|
m.fees = proto.fees.map(Fee.fromProto);
|
|
@@ -1250,7 +1250,7 @@ class UpdatePricingPlanRequest {
|
|
|
1250
1250
|
m.fieldMask = FieldMask.fromProto(proto.fieldMask);
|
|
1251
1251
|
}
|
|
1252
1252
|
if (proto.defaultBillingStrategy) {
|
|
1253
|
-
m.defaultBillingStrategy = enumStringToValue$
|
|
1253
|
+
m.defaultBillingStrategy = enumStringToValue$J(BillingStrategy, proto.defaultBillingStrategy);
|
|
1254
1254
|
}
|
|
1255
1255
|
return m;
|
|
1256
1256
|
}
|
|
@@ -1295,7 +1295,7 @@ class UpdatePricingPlanResponse {
|
|
|
1295
1295
|
}
|
|
1296
1296
|
}
|
|
1297
1297
|
|
|
1298
|
-
function enumStringToValue$
|
|
1298
|
+
function enumStringToValue$I(enumRef, value) {
|
|
1299
1299
|
if (typeof value === 'number') {
|
|
1300
1300
|
return value;
|
|
1301
1301
|
}
|
|
@@ -1332,16 +1332,16 @@ class ProductPricing {
|
|
|
1332
1332
|
let m = new ProductPricing();
|
|
1333
1333
|
m = Object.assign(m, proto);
|
|
1334
1334
|
if (proto.strategy) {
|
|
1335
|
-
m.strategy = enumStringToValue$
|
|
1335
|
+
m.strategy = enumStringToValue$I(BillingStrategy, proto.strategy);
|
|
1336
1336
|
}
|
|
1337
1337
|
if (proto.pricingType) {
|
|
1338
|
-
m.pricingType = enumStringToValue$
|
|
1338
|
+
m.pricingType = enumStringToValue$I(ProductPricingType, proto.pricingType);
|
|
1339
1339
|
}
|
|
1340
1340
|
if (proto.currency) {
|
|
1341
|
-
m.currency = enumStringToValue$
|
|
1341
|
+
m.currency = enumStringToValue$I(Currency, proto.currency);
|
|
1342
1342
|
}
|
|
1343
1343
|
if (proto.frequency) {
|
|
1344
|
-
m.frequency = enumStringToValue$
|
|
1344
|
+
m.frequency = enumStringToValue$I(Frequency, proto.frequency);
|
|
1345
1345
|
}
|
|
1346
1346
|
if (proto.pricingRules) {
|
|
1347
1347
|
m.pricingRules = proto.pricingRules.map(ProductPricingRule.fromProto);
|
|
@@ -1412,7 +1412,7 @@ class WholesaleCostItemRequest {
|
|
|
1412
1412
|
m.quantity = parseInt(proto.quantity, 10);
|
|
1413
1413
|
}
|
|
1414
1414
|
if (proto.frequency) {
|
|
1415
|
-
m.frequency = enumStringToValue$
|
|
1415
|
+
m.frequency = enumStringToValue$I(Frequency, proto.frequency);
|
|
1416
1416
|
}
|
|
1417
1417
|
return m;
|
|
1418
1418
|
}
|
|
@@ -1437,7 +1437,7 @@ class WholesaleCostItemRequest {
|
|
|
1437
1437
|
}
|
|
1438
1438
|
}
|
|
1439
1439
|
|
|
1440
|
-
function enumStringToValue$
|
|
1440
|
+
function enumStringToValue$H(enumRef, value) {
|
|
1441
1441
|
if (typeof value === 'number') {
|
|
1442
1442
|
return value;
|
|
1443
1443
|
}
|
|
@@ -1448,7 +1448,7 @@ class SubscribeValidation {
|
|
|
1448
1448
|
let m = new SubscribeValidation();
|
|
1449
1449
|
m = Object.assign(m, proto);
|
|
1450
1450
|
if (proto.status) {
|
|
1451
|
-
m.status = enumStringToValue$
|
|
1451
|
+
m.status = enumStringToValue$H(SubscribeValidationStatus, proto.status);
|
|
1452
1452
|
}
|
|
1453
1453
|
return m;
|
|
1454
1454
|
}
|
|
@@ -1467,7 +1467,7 @@ class SubscribeValidation {
|
|
|
1467
1467
|
}
|
|
1468
1468
|
}
|
|
1469
1469
|
|
|
1470
|
-
function enumStringToValue$
|
|
1470
|
+
function enumStringToValue$G(enumRef, value) {
|
|
1471
1471
|
if (typeof value === 'number') {
|
|
1472
1472
|
return value;
|
|
1473
1473
|
}
|
|
@@ -1594,7 +1594,7 @@ class ChangeFrequencyRequest {
|
|
|
1594
1594
|
let m = new ChangeFrequencyRequest();
|
|
1595
1595
|
m = Object.assign(m, proto);
|
|
1596
1596
|
if (proto.frequency) {
|
|
1597
|
-
m.frequency = enumStringToValue$
|
|
1597
|
+
m.frequency = enumStringToValue$G(Frequency, proto.frequency);
|
|
1598
1598
|
}
|
|
1599
1599
|
return m;
|
|
1600
1600
|
}
|
|
@@ -1670,7 +1670,7 @@ class CreateSubscriptionRequest {
|
|
|
1670
1670
|
m.proratedTo = new Date(proto.proratedTo);
|
|
1671
1671
|
}
|
|
1672
1672
|
if (proto.renewalState) {
|
|
1673
|
-
m.renewalState = enumStringToValue$
|
|
1673
|
+
m.renewalState = enumStringToValue$G(RenewalState, proto.renewalState);
|
|
1674
1674
|
}
|
|
1675
1675
|
if (proto.customUnitPrice) {
|
|
1676
1676
|
m.customUnitPrice = parseInt(proto.customUnitPrice, 10);
|
|
@@ -1679,16 +1679,16 @@ class CreateSubscriptionRequest {
|
|
|
1679
1679
|
m.alignWith = AlignmentSubscription.fromProto(proto.alignWith);
|
|
1680
1680
|
}
|
|
1681
1681
|
if (proto.frequency) {
|
|
1682
|
-
m.frequency = enumStringToValue$
|
|
1682
|
+
m.frequency = enumStringToValue$G(Frequency, proto.frequency);
|
|
1683
1683
|
}
|
|
1684
1684
|
if (proto.retailAmount) {
|
|
1685
1685
|
m.retailAmount = parseInt(proto.retailAmount, 10);
|
|
1686
1686
|
}
|
|
1687
1687
|
if (proto.retailFrequency) {
|
|
1688
|
-
m.retailFrequency = enumStringToValue$
|
|
1688
|
+
m.retailFrequency = enumStringToValue$G(Frequency, proto.retailFrequency);
|
|
1689
1689
|
}
|
|
1690
1690
|
if (proto.consumer) {
|
|
1691
|
-
m.consumer = enumStringToValue$
|
|
1691
|
+
m.consumer = enumStringToValue$G(Consumer, proto.consumer);
|
|
1692
1692
|
}
|
|
1693
1693
|
if (proto.renewalStart) {
|
|
1694
1694
|
m.renewalStart = new Date(proto.renewalStart);
|
|
@@ -1962,7 +1962,7 @@ class Subscription {
|
|
|
1962
1962
|
m.billingStart = new Date(proto.billingStart);
|
|
1963
1963
|
}
|
|
1964
1964
|
if (proto.renewalState) {
|
|
1965
|
-
m.renewalState = enumStringToValue$
|
|
1965
|
+
m.renewalState = enumStringToValue$G(RenewalState, proto.renewalState);
|
|
1966
1966
|
}
|
|
1967
1967
|
if (proto.proratedTo) {
|
|
1968
1968
|
m.proratedTo = new Date(proto.proratedTo);
|
|
@@ -1974,16 +1974,16 @@ class Subscription {
|
|
|
1974
1974
|
m.alignWith = AlignmentSubscription.fromProto(proto.alignWith);
|
|
1975
1975
|
}
|
|
1976
1976
|
if (proto.frequency) {
|
|
1977
|
-
m.frequency = enumStringToValue$
|
|
1977
|
+
m.frequency = enumStringToValue$G(Frequency, proto.frequency);
|
|
1978
1978
|
}
|
|
1979
1979
|
if (proto.retailAmount) {
|
|
1980
1980
|
m.retailAmount = parseInt(proto.retailAmount, 10);
|
|
1981
1981
|
}
|
|
1982
1982
|
if (proto.retailFrequency) {
|
|
1983
|
-
m.retailFrequency = enumStringToValue$
|
|
1983
|
+
m.retailFrequency = enumStringToValue$G(Frequency, proto.retailFrequency);
|
|
1984
1984
|
}
|
|
1985
1985
|
if (proto.consumer) {
|
|
1986
|
-
m.consumer = enumStringToValue$
|
|
1986
|
+
m.consumer = enumStringToValue$G(Consumer, proto.consumer);
|
|
1987
1987
|
}
|
|
1988
1988
|
if (proto.renewalStart) {
|
|
1989
1989
|
m.renewalStart = new Date(proto.renewalStart);
|
|
@@ -2075,7 +2075,7 @@ class CanCreateSubscriptionsRequestSubscriptionItem {
|
|
|
2075
2075
|
let m = new CanCreateSubscriptionsRequestSubscriptionItem();
|
|
2076
2076
|
m = Object.assign(m, proto);
|
|
2077
2077
|
if (proto.frequency) {
|
|
2078
|
-
m.frequency = enumStringToValue$
|
|
2078
|
+
m.frequency = enumStringToValue$G(Frequency, proto.frequency);
|
|
2079
2079
|
}
|
|
2080
2080
|
if (proto.quantity) {
|
|
2081
2081
|
m.quantity = parseInt(proto.quantity, 10);
|
|
@@ -2129,7 +2129,7 @@ class ValidateResponse {
|
|
|
2129
2129
|
}
|
|
2130
2130
|
}
|
|
2131
2131
|
|
|
2132
|
-
function enumStringToValue$
|
|
2132
|
+
function enumStringToValue$F(enumRef, value) {
|
|
2133
2133
|
if (typeof value === 'number') {
|
|
2134
2134
|
return value;
|
|
2135
2135
|
}
|
|
@@ -2272,7 +2272,7 @@ class RSGSource {
|
|
|
2272
2272
|
let m = new RSGSource();
|
|
2273
2273
|
m = Object.assign(m, proto);
|
|
2274
2274
|
if (proto.sourceType) {
|
|
2275
|
-
m.sourceType = enumStringToValue$
|
|
2275
|
+
m.sourceType = enumStringToValue$F(RSGSourceType, proto.sourceType);
|
|
2276
2276
|
}
|
|
2277
2277
|
return m;
|
|
2278
2278
|
}
|
|
@@ -2298,7 +2298,7 @@ class RetailSubscriptionGroup {
|
|
|
2298
2298
|
let m = new RetailSubscriptionGroup();
|
|
2299
2299
|
m = Object.assign(m, proto);
|
|
2300
2300
|
if (proto.displayOption) {
|
|
2301
|
-
m.displayOption = enumStringToValue$
|
|
2301
|
+
m.displayOption = enumStringToValue$F(DisplayOption, proto.displayOption);
|
|
2302
2302
|
}
|
|
2303
2303
|
if (proto.source) {
|
|
2304
2304
|
m.source = RSGSource.fromProto(proto.source);
|
|
@@ -2387,7 +2387,7 @@ class UpdateRetailSubscriptionGroupResponse {
|
|
|
2387
2387
|
}
|
|
2388
2388
|
}
|
|
2389
2389
|
|
|
2390
|
-
function enumStringToValue$
|
|
2390
|
+
function enumStringToValue$E(enumRef, value) {
|
|
2391
2391
|
if (typeof value === 'number') {
|
|
2392
2392
|
return value;
|
|
2393
2393
|
}
|
|
@@ -2497,7 +2497,7 @@ class BillableItem {
|
|
|
2497
2497
|
m.updated = new Date(proto.updated);
|
|
2498
2498
|
}
|
|
2499
2499
|
if (proto.frequency) {
|
|
2500
|
-
m.frequency = enumStringToValue$
|
|
2500
|
+
m.frequency = enumStringToValue$E(Frequency, proto.frequency);
|
|
2501
2501
|
}
|
|
2502
2502
|
if (proto.nextRenewal) {
|
|
2503
2503
|
m.nextRenewal = new Date(proto.nextRenewal);
|
|
@@ -2509,7 +2509,7 @@ class BillableItem {
|
|
|
2509
2509
|
m.customUnitPrice = parseInt(proto.customUnitPrice, 10);
|
|
2510
2510
|
}
|
|
2511
2511
|
if (proto.retailFrequency) {
|
|
2512
|
-
m.retailFrequency = enumStringToValue$
|
|
2512
|
+
m.retailFrequency = enumStringToValue$E(Frequency, proto.retailFrequency);
|
|
2513
2513
|
}
|
|
2514
2514
|
if (proto.nextRetailRenewal) {
|
|
2515
2515
|
m.nextRetailRenewal = new Date(proto.nextRetailRenewal);
|
|
@@ -2518,7 +2518,7 @@ class BillableItem {
|
|
|
2518
2518
|
m.retailUnitPrice = parseInt(proto.retailUnitPrice, 10);
|
|
2519
2519
|
}
|
|
2520
2520
|
if (proto.status) {
|
|
2521
|
-
m.status = enumStringToValue$
|
|
2521
|
+
m.status = enumStringToValue$E(SubscriptionStatus, proto.status);
|
|
2522
2522
|
}
|
|
2523
2523
|
if (proto.price) {
|
|
2524
2524
|
m.price = ProductPricing.fromProto(proto.price);
|
|
@@ -2527,10 +2527,10 @@ class BillableItem {
|
|
|
2527
2527
|
m.deleted = new Date(proto.deleted);
|
|
2528
2528
|
}
|
|
2529
2529
|
if (proto.source) {
|
|
2530
|
-
m.source = enumStringToValue$
|
|
2530
|
+
m.source = enumStringToValue$E(Source, proto.source);
|
|
2531
2531
|
}
|
|
2532
2532
|
if (proto.consumer) {
|
|
2533
|
-
m.consumer = enumStringToValue$
|
|
2533
|
+
m.consumer = enumStringToValue$E(Consumer, proto.consumer);
|
|
2534
2534
|
}
|
|
2535
2535
|
if (proto.billingCycleAnchor) {
|
|
2536
2536
|
m.billingCycleAnchor = new Date(proto.billingCycleAnchor);
|
|
@@ -2821,7 +2821,7 @@ class ExportSubscriptionsRequest {
|
|
|
2821
2821
|
m.filters = ListSubscriptionsRequestFilters.fromProto(proto.filters);
|
|
2822
2822
|
}
|
|
2823
2823
|
if (proto.consumer) {
|
|
2824
|
-
m.consumer = enumStringToValue$
|
|
2824
|
+
m.consumer = enumStringToValue$E(Consumer, proto.consumer);
|
|
2825
2825
|
}
|
|
2826
2826
|
return m;
|
|
2827
2827
|
}
|
|
@@ -2873,7 +2873,7 @@ class ListSubscriptionsRequestFilters {
|
|
|
2873
2873
|
let m = new ListSubscriptionsRequestFilters();
|
|
2874
2874
|
m = Object.assign(m, proto);
|
|
2875
2875
|
if (proto.status) {
|
|
2876
|
-
m.status = enumStringToValue$
|
|
2876
|
+
m.status = enumStringToValue$E(SubscriptionStatus, proto.status);
|
|
2877
2877
|
}
|
|
2878
2878
|
if (proto.expiredDateGte) {
|
|
2879
2879
|
m.expiredDateGte = new Date(proto.expiredDateGte);
|
|
@@ -2882,7 +2882,7 @@ class ListSubscriptionsRequestFilters {
|
|
|
2882
2882
|
m.expiredDateLte = new Date(proto.expiredDateLte);
|
|
2883
2883
|
}
|
|
2884
2884
|
if (proto.frequencies) {
|
|
2885
|
-
m.frequencies = proto.frequencies.map((v) => enumStringToValue$
|
|
2885
|
+
m.frequencies = proto.frequencies.map((v) => enumStringToValue$E(Frequency, v));
|
|
2886
2886
|
}
|
|
2887
2887
|
return m;
|
|
2888
2888
|
}
|
|
@@ -3228,7 +3228,7 @@ class BillableItemRetailSubscriptionGroup {
|
|
|
3228
3228
|
let m = new BillableItemRetailSubscriptionGroup();
|
|
3229
3229
|
m = Object.assign(m, proto);
|
|
3230
3230
|
if (proto.displayOption) {
|
|
3231
|
-
m.displayOption = enumStringToValue$
|
|
3231
|
+
m.displayOption = enumStringToValue$E(DisplayOption, proto.displayOption);
|
|
3232
3232
|
}
|
|
3233
3233
|
return m;
|
|
3234
3234
|
}
|
|
@@ -3389,7 +3389,7 @@ class UpdateSubscriptionResponse {
|
|
|
3389
3389
|
}
|
|
3390
3390
|
}
|
|
3391
3391
|
|
|
3392
|
-
function enumStringToValue$
|
|
3392
|
+
function enumStringToValue$D(enumRef, value) {
|
|
3393
3393
|
if (typeof value === 'number') {
|
|
3394
3394
|
return value;
|
|
3395
3395
|
}
|
|
@@ -3400,7 +3400,7 @@ class AppliedDiscount {
|
|
|
3400
3400
|
let m = new AppliedDiscount();
|
|
3401
3401
|
m = Object.assign(m, proto);
|
|
3402
3402
|
if (proto.type) {
|
|
3403
|
-
m.type = enumStringToValue$
|
|
3403
|
+
m.type = enumStringToValue$D(DiscountType, proto.type);
|
|
3404
3404
|
}
|
|
3405
3405
|
if (proto.value) {
|
|
3406
3406
|
m.value = parseInt(proto.value, 10);
|
|
@@ -3437,7 +3437,7 @@ class AppliedDiscount {
|
|
|
3437
3437
|
}
|
|
3438
3438
|
}
|
|
3439
3439
|
|
|
3440
|
-
function enumStringToValue$
|
|
3440
|
+
function enumStringToValue$C(enumRef, value) {
|
|
3441
3441
|
if (typeof value === 'number') {
|
|
3442
3442
|
return value;
|
|
3443
3443
|
}
|
|
@@ -3495,7 +3495,7 @@ class BundleItem {
|
|
|
3495
3495
|
let m = new BundleItem();
|
|
3496
3496
|
m = Object.assign(m, proto);
|
|
3497
3497
|
if (proto.discountType) {
|
|
3498
|
-
m.discountType = enumStringToValue$
|
|
3498
|
+
m.discountType = enumStringToValue$C(DiscountType, proto.discountType);
|
|
3499
3499
|
}
|
|
3500
3500
|
if (proto.discountAmount) {
|
|
3501
3501
|
m.discountAmount = parseInt(proto.discountAmount, 10);
|
|
@@ -3753,7 +3753,7 @@ class BundlePricingPriceAndFrequency {
|
|
|
3753
3753
|
let m = new BundlePricingPriceAndFrequency();
|
|
3754
3754
|
m = Object.assign(m, proto);
|
|
3755
3755
|
if (proto.frequency) {
|
|
3756
|
-
m.frequency = enumStringToValue$
|
|
3756
|
+
m.frequency = enumStringToValue$C(Frequency, proto.frequency);
|
|
3757
3757
|
}
|
|
3758
3758
|
if (proto.effectivePrice) {
|
|
3759
3759
|
m.effectivePrice = parseInt(proto.effectivePrice, 10);
|
|
@@ -3825,7 +3825,7 @@ class UpsertBundleRequest {
|
|
|
3825
3825
|
}
|
|
3826
3826
|
}
|
|
3827
3827
|
|
|
3828
|
-
function enumStringToValue$
|
|
3828
|
+
function enumStringToValue$B(enumRef, value) {
|
|
3829
3829
|
if (typeof value === 'number') {
|
|
3830
3830
|
return value;
|
|
3831
3831
|
}
|
|
@@ -3842,7 +3842,7 @@ class Contract {
|
|
|
3842
3842
|
m.created = new Date(proto.created);
|
|
3843
3843
|
}
|
|
3844
3844
|
if (proto.currency) {
|
|
3845
|
-
m.currency = enumStringToValue$
|
|
3845
|
+
m.currency = enumStringToValue$B(Currency, proto.currency);
|
|
3846
3846
|
}
|
|
3847
3847
|
if (proto.signed) {
|
|
3848
3848
|
m.signed = new Date(proto.signed);
|
|
@@ -3863,7 +3863,7 @@ class Contract {
|
|
|
3863
3863
|
m.end = new Date(proto.end);
|
|
3864
3864
|
}
|
|
3865
3865
|
if (proto.subscriptionUpdateStatus) {
|
|
3866
|
-
m.subscriptionUpdateStatus = enumStringToValue$
|
|
3866
|
+
m.subscriptionUpdateStatus = enumStringToValue$B(ContractSubscriptionStatus, proto.subscriptionUpdateStatus);
|
|
3867
3867
|
}
|
|
3868
3868
|
return m;
|
|
3869
3869
|
}
|
|
@@ -4063,7 +4063,7 @@ class GetMerchantWholesaleCurrencyResponse {
|
|
|
4063
4063
|
let m = new GetMerchantWholesaleCurrencyResponse();
|
|
4064
4064
|
m = Object.assign(m, proto);
|
|
4065
4065
|
if (proto.currency) {
|
|
4066
|
-
m.currency = enumStringToValue$
|
|
4066
|
+
m.currency = enumStringToValue$B(Currency, proto.currency);
|
|
4067
4067
|
}
|
|
4068
4068
|
return m;
|
|
4069
4069
|
}
|
|
@@ -4318,7 +4318,7 @@ class UpdateContractSubscriptionRequest {
|
|
|
4318
4318
|
let m = new UpdateContractSubscriptionRequest();
|
|
4319
4319
|
m = Object.assign(m, proto);
|
|
4320
4320
|
if (proto.frequency) {
|
|
4321
|
-
m.frequency = enumStringToValue$
|
|
4321
|
+
m.frequency = enumStringToValue$B(Frequency, proto.frequency);
|
|
4322
4322
|
}
|
|
4323
4323
|
return m;
|
|
4324
4324
|
}
|
|
@@ -4343,7 +4343,7 @@ class UpdateContractSubscriptionRequest {
|
|
|
4343
4343
|
}
|
|
4344
4344
|
}
|
|
4345
4345
|
|
|
4346
|
-
function enumStringToValue$
|
|
4346
|
+
function enumStringToValue$A(enumRef, value) {
|
|
4347
4347
|
if (typeof value === 'number') {
|
|
4348
4348
|
return value;
|
|
4349
4349
|
}
|
|
@@ -4360,7 +4360,7 @@ class CustomerSummary {
|
|
|
4360
4360
|
m.purchaseItemTotal = parseInt(proto.purchaseItemTotal, 10);
|
|
4361
4361
|
}
|
|
4362
4362
|
if (proto.currency) {
|
|
4363
|
-
m.currency = enumStringToValue$
|
|
4363
|
+
m.currency = enumStringToValue$A(Currency, proto.currency);
|
|
4364
4364
|
}
|
|
4365
4365
|
return m;
|
|
4366
4366
|
}
|
|
@@ -4446,7 +4446,7 @@ class GetMultiCustomerSummariesResponse {
|
|
|
4446
4446
|
}
|
|
4447
4447
|
}
|
|
4448
4448
|
|
|
4449
|
-
function enumStringToValue$
|
|
4449
|
+
function enumStringToValue$z(enumRef, value) {
|
|
4450
4450
|
if (typeof value === 'number') {
|
|
4451
4451
|
return value;
|
|
4452
4452
|
}
|
|
@@ -4606,7 +4606,7 @@ class SetDefaultBankAccountRequest {
|
|
|
4606
4606
|
}
|
|
4607
4607
|
}
|
|
4608
4608
|
|
|
4609
|
-
function enumStringToValue$
|
|
4609
|
+
function enumStringToValue$y(enumRef, value) {
|
|
4610
4610
|
if (typeof value === 'number') {
|
|
4611
4611
|
return value;
|
|
4612
4612
|
}
|
|
@@ -4617,7 +4617,7 @@ class ProductSummaryDiscount {
|
|
|
4617
4617
|
let m = new ProductSummaryDiscount();
|
|
4618
4618
|
m = Object.assign(m, proto);
|
|
4619
4619
|
if (proto.type) {
|
|
4620
|
-
m.type = enumStringToValue$
|
|
4620
|
+
m.type = enumStringToValue$y(ProductSummaryDiscountDiscountType, proto.type);
|
|
4621
4621
|
}
|
|
4622
4622
|
if (proto.value) {
|
|
4623
4623
|
m.value = parseInt(proto.value, 10);
|
|
@@ -4911,7 +4911,7 @@ class Pricing {
|
|
|
4911
4911
|
let m = new Pricing();
|
|
4912
4912
|
m = Object.assign(m, proto);
|
|
4913
4913
|
if (proto.type) {
|
|
4914
|
-
m.type = enumStringToValue$
|
|
4914
|
+
m.type = enumStringToValue$y(PricingRuleType, proto.type);
|
|
4915
4915
|
}
|
|
4916
4916
|
if (proto.rules) {
|
|
4917
4917
|
m.rules = proto.rules.map(PricingRule.fromProto);
|
|
@@ -4955,13 +4955,13 @@ class ProductSummary {
|
|
|
4955
4955
|
m.discounts = proto.discounts.map(ProductSummaryDiscount.fromProto);
|
|
4956
4956
|
}
|
|
4957
4957
|
if (proto.billingStrategy) {
|
|
4958
|
-
m.billingStrategy = enumStringToValue$
|
|
4958
|
+
m.billingStrategy = enumStringToValue$y(ProductSummaryBillingStrategy, proto.billingStrategy);
|
|
4959
4959
|
}
|
|
4960
4960
|
if (proto.productType) {
|
|
4961
|
-
m.productType = enumStringToValue$
|
|
4961
|
+
m.productType = enumStringToValue$y(ProductSummaryProductType, proto.productType);
|
|
4962
4962
|
}
|
|
4963
4963
|
if (proto.frequency) {
|
|
4964
|
-
m.frequency = enumStringToValue$
|
|
4964
|
+
m.frequency = enumStringToValue$y(Frequency, proto.frequency);
|
|
4965
4965
|
}
|
|
4966
4966
|
if (proto.volumeCommitment) {
|
|
4967
4967
|
m.volumeCommitment = parseInt(proto.volumeCommitment, 10);
|
|
@@ -5142,7 +5142,7 @@ class ListSubscriptionRetentionByGroupResponseSubscriptionRetentionByGroup {
|
|
|
5142
5142
|
}
|
|
5143
5143
|
}
|
|
5144
5144
|
|
|
5145
|
-
function enumStringToValue$
|
|
5145
|
+
function enumStringToValue$x(enumRef, value) {
|
|
5146
5146
|
if (typeof value === 'number') {
|
|
5147
5147
|
return value;
|
|
5148
5148
|
}
|
|
@@ -5153,7 +5153,7 @@ class CreateDiscountRequest {
|
|
|
5153
5153
|
let m = new CreateDiscountRequest();
|
|
5154
5154
|
m = Object.assign(m, proto);
|
|
5155
5155
|
if (proto.discountType) {
|
|
5156
|
-
m.discountType = enumStringToValue$
|
|
5156
|
+
m.discountType = enumStringToValue$x(DiscountType, proto.discountType);
|
|
5157
5157
|
}
|
|
5158
5158
|
if (proto.amount) {
|
|
5159
5159
|
m.amount = parseInt(proto.amount, 10);
|
|
@@ -5165,7 +5165,7 @@ class CreateDiscountRequest {
|
|
|
5165
5165
|
m.end = new Date(proto.end);
|
|
5166
5166
|
}
|
|
5167
5167
|
if (proto.consumer) {
|
|
5168
|
-
m.consumer = enumStringToValue$
|
|
5168
|
+
m.consumer = enumStringToValue$x(Consumer, proto.consumer);
|
|
5169
5169
|
}
|
|
5170
5170
|
if (proto.numberOfBillingPeriods) {
|
|
5171
5171
|
m.numberOfBillingPeriods = parseInt(proto.numberOfBillingPeriods, 10);
|
|
@@ -5247,7 +5247,7 @@ class Discount {
|
|
|
5247
5247
|
m.discountId = parseInt(proto.discountId, 10);
|
|
5248
5248
|
}
|
|
5249
5249
|
if (proto.discountType) {
|
|
5250
|
-
m.discountType = enumStringToValue$
|
|
5250
|
+
m.discountType = enumStringToValue$x(DiscountType, proto.discountType);
|
|
5251
5251
|
}
|
|
5252
5252
|
if (proto.amount) {
|
|
5253
5253
|
m.amount = parseInt(proto.amount, 10);
|
|
@@ -5265,7 +5265,7 @@ class Discount {
|
|
|
5265
5265
|
m.updated = new Date(proto.updated);
|
|
5266
5266
|
}
|
|
5267
5267
|
if (proto.consumer) {
|
|
5268
|
-
m.consumer = enumStringToValue$
|
|
5268
|
+
m.consumer = enumStringToValue$x(Consumer, proto.consumer);
|
|
5269
5269
|
}
|
|
5270
5270
|
if (proto.numberOfBillingPeriods) {
|
|
5271
5271
|
m.numberOfBillingPeriods = parseInt(proto.numberOfBillingPeriods, 10);
|
|
@@ -5362,7 +5362,7 @@ class ListDiscountsRequestFilters {
|
|
|
5362
5362
|
m.expiry = new Date(proto.expiry);
|
|
5363
5363
|
}
|
|
5364
5364
|
if (proto.consumers) {
|
|
5365
|
-
m.consumers = proto.consumers.map((v) => enumStringToValue$
|
|
5365
|
+
m.consumers = proto.consumers.map((v) => enumStringToValue$x(Consumer, v));
|
|
5366
5366
|
}
|
|
5367
5367
|
return m;
|
|
5368
5368
|
}
|
|
@@ -5461,7 +5461,7 @@ class UpdateDiscountRequest {
|
|
|
5461
5461
|
let m = new UpdateDiscountRequest();
|
|
5462
5462
|
m = Object.assign(m, proto);
|
|
5463
5463
|
if (proto.discountType) {
|
|
5464
|
-
m.discountType = enumStringToValue$
|
|
5464
|
+
m.discountType = enumStringToValue$x(DiscountType, proto.discountType);
|
|
5465
5465
|
}
|
|
5466
5466
|
if (proto.amount) {
|
|
5467
5467
|
m.amount = parseInt(proto.amount, 10);
|
|
@@ -5522,7 +5522,7 @@ class UpdateDiscountRequest {
|
|
|
5522
5522
|
}
|
|
5523
5523
|
}
|
|
5524
5524
|
|
|
5525
|
-
function enumStringToValue$
|
|
5525
|
+
function enumStringToValue$w(enumRef, value) {
|
|
5526
5526
|
if (typeof value === 'number') {
|
|
5527
5527
|
return value;
|
|
5528
5528
|
}
|
|
@@ -5564,7 +5564,7 @@ class AppliedTaxRate {
|
|
|
5564
5564
|
}
|
|
5565
5565
|
}
|
|
5566
5566
|
|
|
5567
|
-
function enumStringToValue$
|
|
5567
|
+
function enumStringToValue$v(enumRef, value) {
|
|
5568
5568
|
if (typeof value === 'number') {
|
|
5569
5569
|
return value;
|
|
5570
5570
|
}
|
|
@@ -6056,7 +6056,7 @@ class UpdateTaxRequest {
|
|
|
6056
6056
|
}
|
|
6057
6057
|
}
|
|
6058
6058
|
|
|
6059
|
-
function enumStringToValue$
|
|
6059
|
+
function enumStringToValue$u(enumRef, value) {
|
|
6060
6060
|
if (typeof value === 'number') {
|
|
6061
6061
|
return value;
|
|
6062
6062
|
}
|
|
@@ -6133,7 +6133,7 @@ class AppliedBundleItem {
|
|
|
6133
6133
|
}
|
|
6134
6134
|
}
|
|
6135
6135
|
|
|
6136
|
-
function enumStringToValue$
|
|
6136
|
+
function enumStringToValue$t(enumRef, value) {
|
|
6137
6137
|
if (typeof value === 'number') {
|
|
6138
6138
|
return value;
|
|
6139
6139
|
}
|
|
@@ -6239,10 +6239,10 @@ class PaymentCard {
|
|
|
6239
6239
|
let m = new PaymentCard();
|
|
6240
6240
|
m = Object.assign(m, proto);
|
|
6241
6241
|
if (proto.cardType) {
|
|
6242
|
-
m.cardType = enumStringToValue$
|
|
6242
|
+
m.cardType = enumStringToValue$t(PaymentCardCARD_TYPE, proto.cardType);
|
|
6243
6243
|
}
|
|
6244
6244
|
if (proto.fundingType) {
|
|
6245
|
-
m.fundingType = enumStringToValue$
|
|
6245
|
+
m.fundingType = enumStringToValue$t(PaymentCardFUNDING_TYPE, proto.fundingType);
|
|
6246
6246
|
}
|
|
6247
6247
|
return m;
|
|
6248
6248
|
}
|
|
@@ -6349,7 +6349,7 @@ class UpdatePaymentCardRequest {
|
|
|
6349
6349
|
}
|
|
6350
6350
|
}
|
|
6351
6351
|
|
|
6352
|
-
function enumStringToValue$
|
|
6352
|
+
function enumStringToValue$s(enumRef, value) {
|
|
6353
6353
|
if (typeof value === 'number') {
|
|
6354
6354
|
return value;
|
|
6355
6355
|
}
|
|
@@ -6452,7 +6452,7 @@ class PaymentMethod {
|
|
|
6452
6452
|
let m = new PaymentMethod();
|
|
6453
6453
|
m = Object.assign(m, proto);
|
|
6454
6454
|
if (proto.type) {
|
|
6455
|
-
m.type = enumStringToValue$
|
|
6455
|
+
m.type = enumStringToValue$s(PaymentMethodType, proto.type);
|
|
6456
6456
|
}
|
|
6457
6457
|
if (proto.card) {
|
|
6458
6458
|
m.card = PaymentCard.fromProto(proto.card);
|
|
@@ -6492,7 +6492,7 @@ class PaymentMethod {
|
|
|
6492
6492
|
}
|
|
6493
6493
|
}
|
|
6494
6494
|
|
|
6495
|
-
function enumStringToValue$
|
|
6495
|
+
function enumStringToValue$r(enumRef, value) {
|
|
6496
6496
|
if (typeof value === 'number') {
|
|
6497
6497
|
return value;
|
|
6498
6498
|
}
|
|
@@ -6587,7 +6587,7 @@ class ListRecurringInvoicesFiltersDetailedInterval {
|
|
|
6587
6587
|
let m = new ListRecurringInvoicesFiltersDetailedInterval();
|
|
6588
6588
|
m = Object.assign(m, proto);
|
|
6589
6589
|
if (proto.interval) {
|
|
6590
|
-
m.interval = enumStringToValue$
|
|
6590
|
+
m.interval = enumStringToValue$r(Interval, proto.interval);
|
|
6591
6591
|
}
|
|
6592
6592
|
if (proto.intervalCount) {
|
|
6593
6593
|
m.intervalCount = parseInt(proto.intervalCount, 10);
|
|
@@ -6636,7 +6636,7 @@ class ListRecurringInvoicesFilters {
|
|
|
6636
6636
|
let m = new ListRecurringInvoicesFilters();
|
|
6637
6637
|
m = Object.assign(m, proto);
|
|
6638
6638
|
if (proto.statuses) {
|
|
6639
|
-
m.statuses = proto.statuses.map((v) => enumStringToValue$
|
|
6639
|
+
m.statuses = proto.statuses.map((v) => enumStringToValue$r(RecurringInvoiceStatus, v));
|
|
6640
6640
|
}
|
|
6641
6641
|
if (proto.intervals) {
|
|
6642
6642
|
m.intervals = proto.intervals.map(ListRecurringInvoicesFiltersDetailedInterval.fromProto);
|
|
@@ -6741,7 +6741,7 @@ class RecurringInvoice {
|
|
|
6741
6741
|
m.updated = new Date(proto.updated);
|
|
6742
6742
|
}
|
|
6743
6743
|
if (proto.status) {
|
|
6744
|
-
m.status = enumStringToValue$
|
|
6744
|
+
m.status = enumStringToValue$r(RecurringInvoiceStatus, proto.status);
|
|
6745
6745
|
}
|
|
6746
6746
|
if (proto.nextIssue) {
|
|
6747
6747
|
m.nextIssue = new Date(proto.nextIssue);
|
|
@@ -6750,16 +6750,16 @@ class RecurringInvoice {
|
|
|
6750
6750
|
m.intervalCount = parseInt(proto.intervalCount, 10);
|
|
6751
6751
|
}
|
|
6752
6752
|
if (proto.interval) {
|
|
6753
|
-
m.interval = enumStringToValue$
|
|
6753
|
+
m.interval = enumStringToValue$r(Interval, proto.interval);
|
|
6754
6754
|
}
|
|
6755
6755
|
if (proto.repeatOnDayOfMonth) {
|
|
6756
6756
|
m.repeatOnDayOfMonth = parseInt(proto.repeatOnDayOfMonth, 10);
|
|
6757
6757
|
}
|
|
6758
6758
|
if (proto.collectionMethod) {
|
|
6759
|
-
m.collectionMethod = enumStringToValue$
|
|
6759
|
+
m.collectionMethod = enumStringToValue$r(CollectionMethod, proto.collectionMethod);
|
|
6760
6760
|
}
|
|
6761
6761
|
if (proto.paymentProcessor) {
|
|
6762
|
-
m.paymentProcessor = enumStringToValue$
|
|
6762
|
+
m.paymentProcessor = enumStringToValue$r(PaymentProcessor, proto.paymentProcessor);
|
|
6763
6763
|
}
|
|
6764
6764
|
if (proto.items) {
|
|
6765
6765
|
m.items = proto.items.map(RecurringInvoiceItem.fromProto);
|
|
@@ -6777,7 +6777,7 @@ class RecurringInvoice {
|
|
|
6777
6777
|
m.netD = parseInt(proto.netD, 10);
|
|
6778
6778
|
}
|
|
6779
6779
|
if (proto.paymentMethodTypes) {
|
|
6780
|
-
m.paymentMethodTypes = proto.paymentMethodTypes.map((v) => enumStringToValue$
|
|
6780
|
+
m.paymentMethodTypes = proto.paymentMethodTypes.map((v) => enumStringToValue$r(PaymentMethodType, v));
|
|
6781
6781
|
}
|
|
6782
6782
|
return m;
|
|
6783
6783
|
}
|
|
@@ -6984,7 +6984,7 @@ class UpdateRecurringInvoiceRequest {
|
|
|
6984
6984
|
}
|
|
6985
6985
|
}
|
|
6986
6986
|
|
|
6987
|
-
function enumStringToValue$
|
|
6987
|
+
function enumStringToValue$q(enumRef, value) {
|
|
6988
6988
|
if (typeof value === 'number') {
|
|
6989
6989
|
return value;
|
|
6990
6990
|
}
|
|
@@ -7129,7 +7129,7 @@ class AppliedCreditNote {
|
|
|
7129
7129
|
m.amount = parseInt(proto.amount, 10);
|
|
7130
7130
|
}
|
|
7131
7131
|
if (proto.creditNoteType) {
|
|
7132
|
-
m.creditNoteType = enumStringToValue$
|
|
7132
|
+
m.creditNoteType = enumStringToValue$q(CreditNoteType, proto.creditNoteType);
|
|
7133
7133
|
}
|
|
7134
7134
|
return m;
|
|
7135
7135
|
}
|
|
@@ -7193,10 +7193,10 @@ class CreateInvoiceRequest {
|
|
|
7193
7193
|
m.items = proto.items.map(InvoiceItem.fromProto);
|
|
7194
7194
|
}
|
|
7195
7195
|
if (proto.collectionMethod) {
|
|
7196
|
-
m.collectionMethod = enumStringToValue$
|
|
7196
|
+
m.collectionMethod = enumStringToValue$q(CollectionMethod, proto.collectionMethod);
|
|
7197
7197
|
}
|
|
7198
7198
|
if (proto.origin) {
|
|
7199
|
-
m.origin = enumStringToValue$
|
|
7199
|
+
m.origin = enumStringToValue$q(Origin, proto.origin);
|
|
7200
7200
|
}
|
|
7201
7201
|
if (proto.issued) {
|
|
7202
7202
|
m.issued = new Date(proto.issued);
|
|
@@ -7368,7 +7368,7 @@ class ListInvoicesRequestFiltersDateFilter {
|
|
|
7368
7368
|
let m = new ListInvoicesRequestFiltersDateFilter();
|
|
7369
7369
|
m = Object.assign(m, proto);
|
|
7370
7370
|
if (proto.dateField) {
|
|
7371
|
-
m.dateField = enumStringToValue$
|
|
7371
|
+
m.dateField = enumStringToValue$q(ListInvoicesRequestFiltersDateFilterDateField, proto.dateField);
|
|
7372
7372
|
}
|
|
7373
7373
|
if (proto.dateLte) {
|
|
7374
7374
|
m.dateLte = new Date(proto.dateLte);
|
|
@@ -7518,13 +7518,13 @@ class ListInvoicesRequestFilters {
|
|
|
7518
7518
|
let m = new ListInvoicesRequestFilters();
|
|
7519
7519
|
m = Object.assign(m, proto);
|
|
7520
7520
|
if (proto.statuses) {
|
|
7521
|
-
m.statuses = proto.statuses.map((v) => enumStringToValue$
|
|
7521
|
+
m.statuses = proto.statuses.map((v) => enumStringToValue$q(InvoiceStatus, v));
|
|
7522
7522
|
}
|
|
7523
7523
|
if (proto.dateFilter) {
|
|
7524
7524
|
m.dateFilter = ListInvoicesRequestFiltersDateFilter.fromProto(proto.dateFilter);
|
|
7525
7525
|
}
|
|
7526
7526
|
if (proto.lastPaymentStatuses) {
|
|
7527
|
-
m.lastPaymentStatuses = proto.lastPaymentStatuses.map((v) => enumStringToValue$
|
|
7527
|
+
m.lastPaymentStatuses = proto.lastPaymentStatuses.map((v) => enumStringToValue$q(LastPaymentStatus, v));
|
|
7528
7528
|
}
|
|
7529
7529
|
return m;
|
|
7530
7530
|
}
|
|
@@ -7715,7 +7715,7 @@ class Invoice {
|
|
|
7715
7715
|
let m = new Invoice();
|
|
7716
7716
|
m = Object.assign(m, proto);
|
|
7717
7717
|
if (proto.status) {
|
|
7718
|
-
m.status = enumStringToValue$
|
|
7718
|
+
m.status = enumStringToValue$q(InvoiceStatus, proto.status);
|
|
7719
7719
|
}
|
|
7720
7720
|
if (proto.subtotal) {
|
|
7721
7721
|
m.subtotal = parseInt(proto.subtotal, 10);
|
|
@@ -7742,7 +7742,7 @@ class Invoice {
|
|
|
7742
7742
|
m.items = proto.items.map(InvoiceItem.fromProto);
|
|
7743
7743
|
}
|
|
7744
7744
|
if (proto.currency) {
|
|
7745
|
-
m.currency = enumStringToValue$
|
|
7745
|
+
m.currency = enumStringToValue$q(Currency, proto.currency);
|
|
7746
7746
|
}
|
|
7747
7747
|
if (proto.paid) {
|
|
7748
7748
|
m.paid = new Date(proto.paid);
|
|
@@ -7775,10 +7775,10 @@ class Invoice {
|
|
|
7775
7775
|
m.autoAdvance = new Date(proto.autoAdvance);
|
|
7776
7776
|
}
|
|
7777
7777
|
if (proto.paymentMethodTypes) {
|
|
7778
|
-
m.paymentMethodTypes = proto.paymentMethodTypes.map((v) => enumStringToValue$
|
|
7778
|
+
m.paymentMethodTypes = proto.paymentMethodTypes.map((v) => enumStringToValue$q(PaymentMethodType, v));
|
|
7779
7779
|
}
|
|
7780
7780
|
if (proto.lastPaymentStatus) {
|
|
7781
|
-
m.lastPaymentStatus = enumStringToValue$
|
|
7781
|
+
m.lastPaymentStatus = enumStringToValue$q(LastPaymentStatus, proto.lastPaymentStatus);
|
|
7782
7782
|
}
|
|
7783
7783
|
if (proto.amountOwing) {
|
|
7784
7784
|
m.amountOwing = parseInt(proto.amountOwing, 10);
|
|
@@ -7787,7 +7787,7 @@ class Invoice {
|
|
|
7787
7787
|
m.appliedCreditNotes = proto.appliedCreditNotes.map(AppliedCreditNote.fromProto);
|
|
7788
7788
|
}
|
|
7789
7789
|
if (proto.processingFailureCode) {
|
|
7790
|
-
m.processingFailureCode = enumStringToValue$
|
|
7790
|
+
m.processingFailureCode = enumStringToValue$q(ProcessingFailureCode, proto.processingFailureCode);
|
|
7791
7791
|
}
|
|
7792
7792
|
if (proto.retailSubscriptionGroups) {
|
|
7793
7793
|
m.retailSubscriptionGroups = proto.retailSubscriptionGroups.map(RetailSubscriptionGroup.fromProto);
|
|
@@ -8028,7 +8028,7 @@ class ItemDisplayGroup {
|
|
|
8028
8028
|
let m = new ItemDisplayGroup();
|
|
8029
8029
|
m = Object.assign(m, proto);
|
|
8030
8030
|
if (proto.displayOption) {
|
|
8031
|
-
m.displayOption = enumStringToValue$
|
|
8031
|
+
m.displayOption = enumStringToValue$q(DisplayOption, proto.displayOption);
|
|
8032
8032
|
}
|
|
8033
8033
|
return m;
|
|
8034
8034
|
}
|
|
@@ -8543,7 +8543,7 @@ class VoidInvoiceRequest {
|
|
|
8543
8543
|
}
|
|
8544
8544
|
}
|
|
8545
8545
|
|
|
8546
|
-
function enumStringToValue$
|
|
8546
|
+
function enumStringToValue$p(enumRef, value) {
|
|
8547
8547
|
if (typeof value === 'number') {
|
|
8548
8548
|
return value;
|
|
8549
8549
|
}
|
|
@@ -8637,7 +8637,7 @@ class BalanceAmount {
|
|
|
8637
8637
|
}
|
|
8638
8638
|
}
|
|
8639
8639
|
|
|
8640
|
-
function enumStringToValue$
|
|
8640
|
+
function enumStringToValue$o(enumRef, value) {
|
|
8641
8641
|
if (typeof value === 'number') {
|
|
8642
8642
|
return value;
|
|
8643
8643
|
}
|
|
@@ -8673,7 +8673,7 @@ class DateRange {
|
|
|
8673
8673
|
}
|
|
8674
8674
|
}
|
|
8675
8675
|
|
|
8676
|
-
function enumStringToValue$
|
|
8676
|
+
function enumStringToValue$n(enumRef, value) {
|
|
8677
8677
|
if (typeof value === 'number') {
|
|
8678
8678
|
return value;
|
|
8679
8679
|
}
|
|
@@ -8774,13 +8774,13 @@ class Payout {
|
|
|
8774
8774
|
m.amount = parseInt(proto.amount, 10);
|
|
8775
8775
|
}
|
|
8776
8776
|
if (proto.currency) {
|
|
8777
|
-
m.currency = enumStringToValue$
|
|
8777
|
+
m.currency = enumStringToValue$n(Currency, proto.currency);
|
|
8778
8778
|
}
|
|
8779
8779
|
if (proto.status) {
|
|
8780
|
-
m.status = enumStringToValue$
|
|
8780
|
+
m.status = enumStringToValue$n(PayoutStatus, proto.status);
|
|
8781
8781
|
}
|
|
8782
8782
|
if (proto.type) {
|
|
8783
|
-
m.type = enumStringToValue$
|
|
8783
|
+
m.type = enumStringToValue$n(PayoutType, proto.type);
|
|
8784
8784
|
}
|
|
8785
8785
|
return m;
|
|
8786
8786
|
}
|
|
@@ -8882,10 +8882,10 @@ class RetailPayout {
|
|
|
8882
8882
|
m.amount = parseInt(proto.amount, 10);
|
|
8883
8883
|
}
|
|
8884
8884
|
if (proto.status) {
|
|
8885
|
-
m.status = enumStringToValue$
|
|
8885
|
+
m.status = enumStringToValue$n(PayoutStatus, proto.status);
|
|
8886
8886
|
}
|
|
8887
8887
|
if (proto.type) {
|
|
8888
|
-
m.type = enumStringToValue$
|
|
8888
|
+
m.type = enumStringToValue$n(PayoutType, proto.type);
|
|
8889
8889
|
}
|
|
8890
8890
|
return m;
|
|
8891
8891
|
}
|
|
@@ -8934,7 +8934,7 @@ class RetailPayout {
|
|
|
8934
8934
|
}
|
|
8935
8935
|
}
|
|
8936
8936
|
|
|
8937
|
-
function enumStringToValue$
|
|
8937
|
+
function enumStringToValue$m(enumRef, value) {
|
|
8938
8938
|
if (typeof value === 'number') {
|
|
8939
8939
|
return value;
|
|
8940
8940
|
}
|
|
@@ -9049,7 +9049,7 @@ class CreateMerchantRequest {
|
|
|
9049
9049
|
m.includeInFinancialRecords = CreateMerchantRequestIncludeInFinancialRecords.fromProto(proto.includeInFinancialRecords);
|
|
9050
9050
|
}
|
|
9051
9051
|
if (proto.merchantType) {
|
|
9052
|
-
m.merchantType = enumStringToValue$
|
|
9052
|
+
m.merchantType = enumStringToValue$m(MerchantType, proto.merchantType);
|
|
9053
9053
|
}
|
|
9054
9054
|
return m;
|
|
9055
9055
|
}
|
|
@@ -9313,7 +9313,7 @@ class GetOutstandingBalanceResponse {
|
|
|
9313
9313
|
m.outstandingBalance = parseInt(proto.outstandingBalance, 10);
|
|
9314
9314
|
}
|
|
9315
9315
|
if (proto.currency) {
|
|
9316
|
-
m.currency = enumStringToValue$
|
|
9316
|
+
m.currency = enumStringToValue$m(Currency, proto.currency);
|
|
9317
9317
|
}
|
|
9318
9318
|
return m;
|
|
9319
9319
|
}
|
|
@@ -9624,7 +9624,7 @@ class Merchant {
|
|
|
9624
9624
|
let m = new Merchant();
|
|
9625
9625
|
m = Object.assign(m, proto);
|
|
9626
9626
|
if (proto.merchantType) {
|
|
9627
|
-
m.merchantType = enumStringToValue$
|
|
9627
|
+
m.merchantType = enumStringToValue$m(MerchantType, proto.merchantType);
|
|
9628
9628
|
}
|
|
9629
9629
|
return m;
|
|
9630
9630
|
}
|
|
@@ -9779,10 +9779,10 @@ class SearchMerchantsRequest {
|
|
|
9779
9779
|
let m = new SearchMerchantsRequest();
|
|
9780
9780
|
m = Object.assign(m, proto);
|
|
9781
9781
|
if (proto.sortBy) {
|
|
9782
|
-
m.sortBy = enumStringToValue$
|
|
9782
|
+
m.sortBy = enumStringToValue$m(SearchMerchantsRequestSortBy, proto.sortBy);
|
|
9783
9783
|
}
|
|
9784
9784
|
if (proto.sortDirection) {
|
|
9785
|
-
m.sortDirection = enumStringToValue$
|
|
9785
|
+
m.sortDirection = enumStringToValue$m(SortDirection, proto.sortDirection);
|
|
9786
9786
|
}
|
|
9787
9787
|
if (proto.pagingOptions) {
|
|
9788
9788
|
m.pagingOptions = PagedRequestOptions.fromProto(proto.pagingOptions);
|
|
@@ -9990,7 +9990,7 @@ class UpdateMerchantRequest {
|
|
|
9990
9990
|
m.includeInFinancialRecords = UpdateMerchantRequestIncludeInFinancialRecords.fromProto(proto.includeInFinancialRecords);
|
|
9991
9991
|
}
|
|
9992
9992
|
if (proto.merchantType) {
|
|
9993
|
-
m.merchantType = enumStringToValue$
|
|
9993
|
+
m.merchantType = enumStringToValue$m(MerchantType, proto.merchantType);
|
|
9994
9994
|
}
|
|
9995
9995
|
return m;
|
|
9996
9996
|
}
|
|
@@ -10115,7 +10115,7 @@ class UpsertRetailConfigurationRequest {
|
|
|
10115
10115
|
}
|
|
10116
10116
|
}
|
|
10117
10117
|
|
|
10118
|
-
function enumStringToValue$
|
|
10118
|
+
function enumStringToValue$l(enumRef, value) {
|
|
10119
10119
|
if (typeof value === 'number') {
|
|
10120
10120
|
return value;
|
|
10121
10121
|
}
|
|
@@ -10184,13 +10184,13 @@ class MerchantReport {
|
|
|
10184
10184
|
m.year = parseInt(proto.year, 10);
|
|
10185
10185
|
}
|
|
10186
10186
|
if (proto.month) {
|
|
10187
|
-
m.month = enumStringToValue$
|
|
10187
|
+
m.month = enumStringToValue$l(Month, proto.month);
|
|
10188
10188
|
}
|
|
10189
10189
|
if (proto.created) {
|
|
10190
10190
|
m.created = new Date(proto.created);
|
|
10191
10191
|
}
|
|
10192
10192
|
if (proto.status) {
|
|
10193
|
-
m.status = enumStringToValue$
|
|
10193
|
+
m.status = enumStringToValue$l(MerchantReportStatus, proto.status);
|
|
10194
10194
|
}
|
|
10195
10195
|
return m;
|
|
10196
10196
|
}
|
|
@@ -10221,7 +10221,7 @@ class MerchantReport {
|
|
|
10221
10221
|
}
|
|
10222
10222
|
}
|
|
10223
10223
|
|
|
10224
|
-
function enumStringToValue$
|
|
10224
|
+
function enumStringToValue$k(enumRef, value) {
|
|
10225
10225
|
if (typeof value === 'number') {
|
|
10226
10226
|
return value;
|
|
10227
10227
|
}
|
|
@@ -10318,7 +10318,7 @@ class TickComponentUsageRequest {
|
|
|
10318
10318
|
}
|
|
10319
10319
|
}
|
|
10320
10320
|
|
|
10321
|
-
function enumStringToValue$
|
|
10321
|
+
function enumStringToValue$j(enumRef, value) {
|
|
10322
10322
|
if (typeof value === 'number') {
|
|
10323
10323
|
return value;
|
|
10324
10324
|
}
|
|
@@ -10431,7 +10431,7 @@ class RetailPaymentCardDetails {
|
|
|
10431
10431
|
let m = new RetailPaymentCardDetails();
|
|
10432
10432
|
m = Object.assign(m, proto);
|
|
10433
10433
|
if (proto.cardType) {
|
|
10434
|
-
m.cardType = enumStringToValue$
|
|
10434
|
+
m.cardType = enumStringToValue$j(CardType, proto.cardType);
|
|
10435
10435
|
}
|
|
10436
10436
|
return m;
|
|
10437
10437
|
}
|
|
@@ -10480,7 +10480,7 @@ class ConfigureRetailPaymentProviderRequest {
|
|
|
10480
10480
|
let m = new ConfigureRetailPaymentProviderRequest();
|
|
10481
10481
|
m = Object.assign(m, proto);
|
|
10482
10482
|
if (proto.paymentFacilitatorType) {
|
|
10483
|
-
m.paymentFacilitatorType = enumStringToValue$
|
|
10483
|
+
m.paymentFacilitatorType = enumStringToValue$j(PaymentFacilitatorType, proto.paymentFacilitatorType);
|
|
10484
10484
|
}
|
|
10485
10485
|
return m;
|
|
10486
10486
|
}
|
|
@@ -10558,7 +10558,7 @@ class Dispute {
|
|
|
10558
10558
|
let m = new Dispute();
|
|
10559
10559
|
m = Object.assign(m, proto);
|
|
10560
10560
|
if (proto.status) {
|
|
10561
|
-
m.status = enumStringToValue$
|
|
10561
|
+
m.status = enumStringToValue$j(DisputeStatus, proto.status);
|
|
10562
10562
|
}
|
|
10563
10563
|
if (proto.amount) {
|
|
10564
10564
|
m.amount = parseInt(proto.amount, 10);
|
|
@@ -10576,7 +10576,7 @@ class Dispute {
|
|
|
10576
10576
|
m.fee = parseInt(proto.fee, 10);
|
|
10577
10577
|
}
|
|
10578
10578
|
if (proto.paymentReferenceType) {
|
|
10579
|
-
m.paymentReferenceType = enumStringToValue$
|
|
10579
|
+
m.paymentReferenceType = enumStringToValue$j(RetailPaymentReferenceType, proto.paymentReferenceType);
|
|
10580
10580
|
}
|
|
10581
10581
|
if (proto.paymentReceivedAt) {
|
|
10582
10582
|
m.paymentReceivedAt = new Date(proto.paymentReceivedAt);
|
|
@@ -10892,7 +10892,7 @@ class GetRetailPaymentProviderResponse {
|
|
|
10892
10892
|
let m = new GetRetailPaymentProviderResponse();
|
|
10893
10893
|
m = Object.assign(m, proto);
|
|
10894
10894
|
if (proto.paymentFacilitatorType) {
|
|
10895
|
-
m.paymentFacilitatorType = enumStringToValue$
|
|
10895
|
+
m.paymentFacilitatorType = enumStringToValue$j(PaymentFacilitatorType, proto.paymentFacilitatorType);
|
|
10896
10896
|
}
|
|
10897
10897
|
return m;
|
|
10898
10898
|
}
|
|
@@ -11106,7 +11106,7 @@ class ListRetailDisputesRequestListRetailDisputesFilters {
|
|
|
11106
11106
|
let m = new ListRetailDisputesRequestListRetailDisputesFilters();
|
|
11107
11107
|
m = Object.assign(m, proto);
|
|
11108
11108
|
if (proto.status) {
|
|
11109
|
-
m.status = enumStringToValue$
|
|
11109
|
+
m.status = enumStringToValue$j(DisputeStatus, proto.status);
|
|
11110
11110
|
}
|
|
11111
11111
|
return m;
|
|
11112
11112
|
}
|
|
@@ -11292,7 +11292,7 @@ class ListRetailTransactionsRequestListRetailTransactionsFilters {
|
|
|
11292
11292
|
m.createdDateLte = new Date(proto.createdDateLte);
|
|
11293
11293
|
}
|
|
11294
11294
|
if (proto.type) {
|
|
11295
|
-
m.type = enumStringToValue$
|
|
11295
|
+
m.type = enumStringToValue$j(RetailTransactionType, proto.type);
|
|
11296
11296
|
}
|
|
11297
11297
|
return m;
|
|
11298
11298
|
}
|
|
@@ -11426,10 +11426,10 @@ class Payment {
|
|
|
11426
11426
|
m.created = new Date(proto.created);
|
|
11427
11427
|
}
|
|
11428
11428
|
if (proto.currency) {
|
|
11429
|
-
m.currency = enumStringToValue$
|
|
11429
|
+
m.currency = enumStringToValue$j(Currency, proto.currency);
|
|
11430
11430
|
}
|
|
11431
11431
|
if (proto.paymentSource) {
|
|
11432
|
-
m.paymentSource = enumStringToValue$
|
|
11432
|
+
m.paymentSource = enumStringToValue$j(PaymentSource, proto.paymentSource);
|
|
11433
11433
|
}
|
|
11434
11434
|
if (proto.allocations) {
|
|
11435
11435
|
m.allocations = proto.allocations.map(PaymentPaymentAllocation.fromProto);
|
|
@@ -11438,7 +11438,7 @@ class Payment {
|
|
|
11438
11438
|
m.total = parseInt(proto.total, 10);
|
|
11439
11439
|
}
|
|
11440
11440
|
if (proto.status) {
|
|
11441
|
-
m.status = enumStringToValue$
|
|
11441
|
+
m.status = enumStringToValue$j(PaymentStatus, proto.status);
|
|
11442
11442
|
}
|
|
11443
11443
|
return m;
|
|
11444
11444
|
}
|
|
@@ -11488,7 +11488,7 @@ class PaymentPaymentAllocation {
|
|
|
11488
11488
|
m.amount = parseInt(proto.amount, 10);
|
|
11489
11489
|
}
|
|
11490
11490
|
if (proto.type) {
|
|
11491
|
-
m.type = enumStringToValue$
|
|
11491
|
+
m.type = enumStringToValue$j(PaymentAllocationType, proto.type);
|
|
11492
11492
|
}
|
|
11493
11493
|
return m;
|
|
11494
11494
|
}
|
|
@@ -11517,13 +11517,13 @@ class PaymentIntent {
|
|
|
11517
11517
|
let m = new PaymentIntent();
|
|
11518
11518
|
m = Object.assign(m, proto);
|
|
11519
11519
|
if (proto.paymentIntentStatus) {
|
|
11520
|
-
m.paymentIntentStatus = enumStringToValue$
|
|
11520
|
+
m.paymentIntentStatus = enumStringToValue$j(PaymentIntentStatus, proto.paymentIntentStatus);
|
|
11521
11521
|
}
|
|
11522
11522
|
if (proto.paymentMethodType) {
|
|
11523
|
-
m.paymentMethodType = enumStringToValue$
|
|
11523
|
+
m.paymentMethodType = enumStringToValue$j(PaymentMethodType, proto.paymentMethodType);
|
|
11524
11524
|
}
|
|
11525
11525
|
if (proto.lastErrorCode) {
|
|
11526
|
-
m.lastErrorCode = enumStringToValue$
|
|
11526
|
+
m.lastErrorCode = enumStringToValue$j(PaymentErrorCode, proto.lastErrorCode);
|
|
11527
11527
|
}
|
|
11528
11528
|
return m;
|
|
11529
11529
|
}
|
|
@@ -11555,7 +11555,7 @@ class PrepareRetailPaymentRequest {
|
|
|
11555
11555
|
m.order = PrepareRetailPaymentRequestOrder.fromProto(proto.order);
|
|
11556
11556
|
}
|
|
11557
11557
|
if (proto.paymentMethodTypes) {
|
|
11558
|
-
m.paymentMethodTypes = proto.paymentMethodTypes.map((v) => enumStringToValue$
|
|
11558
|
+
m.paymentMethodTypes = proto.paymentMethodTypes.map((v) => enumStringToValue$j(PaymentMethodType, v));
|
|
11559
11559
|
}
|
|
11560
11560
|
return m;
|
|
11561
11561
|
}
|
|
@@ -11622,7 +11622,7 @@ class RefundRetailPaymentRequest {
|
|
|
11622
11622
|
m.amount = parseInt(proto.amount, 10);
|
|
11623
11623
|
}
|
|
11624
11624
|
if (proto.reason) {
|
|
11625
|
-
m.reason = enumStringToValue$
|
|
11625
|
+
m.reason = enumStringToValue$j(RetailRefundReason, proto.reason);
|
|
11626
11626
|
}
|
|
11627
11627
|
return m;
|
|
11628
11628
|
}
|
|
@@ -11683,10 +11683,10 @@ class RetailPayment {
|
|
|
11683
11683
|
m.amount = parseInt(proto.amount, 10);
|
|
11684
11684
|
}
|
|
11685
11685
|
if (proto.referenceType) {
|
|
11686
|
-
m.referenceType = enumStringToValue$
|
|
11686
|
+
m.referenceType = enumStringToValue$j(RetailPaymentReferenceType, proto.referenceType);
|
|
11687
11687
|
}
|
|
11688
11688
|
if (proto.status) {
|
|
11689
|
-
m.status = enumStringToValue$
|
|
11689
|
+
m.status = enumStringToValue$j(PaymentStatus, proto.status);
|
|
11690
11690
|
}
|
|
11691
11691
|
if (proto.applicationFee) {
|
|
11692
11692
|
m.applicationFee = parseInt(proto.applicationFee, 10);
|
|
@@ -11701,7 +11701,7 @@ class RetailPayment {
|
|
|
11701
11701
|
m.refunds = proto.refunds.map(RetailRefund.fromProto);
|
|
11702
11702
|
}
|
|
11703
11703
|
if (proto.paymentMethodDetailsType) {
|
|
11704
|
-
m.paymentMethodDetailsType = enumStringToValue$
|
|
11704
|
+
m.paymentMethodDetailsType = enumStringToValue$j(RetailPaymentPaymentMethodDetailsType, proto.paymentMethodDetailsType);
|
|
11705
11705
|
}
|
|
11706
11706
|
if (proto.achDebitDetails) {
|
|
11707
11707
|
m.achDebitDetails = RetailPaymentACHDetails.fromProto(proto.achDebitDetails);
|
|
@@ -11713,7 +11713,7 @@ class RetailPayment {
|
|
|
11713
11713
|
m.paymentFacilitatorFee = parseInt(proto.paymentFacilitatorFee, 10);
|
|
11714
11714
|
}
|
|
11715
11715
|
if (proto.paymentFacilitatorType) {
|
|
11716
|
-
m.paymentFacilitatorType = enumStringToValue$
|
|
11716
|
+
m.paymentFacilitatorType = enumStringToValue$j(PaymentFacilitatorType, proto.paymentFacilitatorType);
|
|
11717
11717
|
}
|
|
11718
11718
|
if (proto.settledAt) {
|
|
11719
11719
|
m.settledAt = new Date(proto.settledAt);
|
|
@@ -11848,13 +11848,13 @@ class RetailRefund {
|
|
|
11848
11848
|
m.amount = parseInt(proto.amount, 10);
|
|
11849
11849
|
}
|
|
11850
11850
|
if (proto.refundReason) {
|
|
11851
|
-
m.refundReason = enumStringToValue$
|
|
11851
|
+
m.refundReason = enumStringToValue$j(RetailRefundReason, proto.refundReason);
|
|
11852
11852
|
}
|
|
11853
11853
|
if (proto.status) {
|
|
11854
|
-
m.status = enumStringToValue$
|
|
11854
|
+
m.status = enumStringToValue$j(RetailRefundStatus, proto.status);
|
|
11855
11855
|
}
|
|
11856
11856
|
if (proto.failureReason) {
|
|
11857
|
-
m.failureReason = enumStringToValue$
|
|
11857
|
+
m.failureReason = enumStringToValue$j(RetailRefundFailureReason, proto.failureReason);
|
|
11858
11858
|
}
|
|
11859
11859
|
if (proto.created) {
|
|
11860
11860
|
m.created = new Date(proto.created);
|
|
@@ -12118,7 +12118,7 @@ class RetailStatusResponseVerificationRequirements {
|
|
|
12118
12118
|
}
|
|
12119
12119
|
}
|
|
12120
12120
|
|
|
12121
|
-
function enumStringToValue$
|
|
12121
|
+
function enumStringToValue$i(enumRef, value) {
|
|
12122
12122
|
if (typeof value === 'number') {
|
|
12123
12123
|
return value;
|
|
12124
12124
|
}
|
|
@@ -12129,7 +12129,7 @@ class CreatePricingPlanProductRequest {
|
|
|
12129
12129
|
let m = new CreatePricingPlanProductRequest();
|
|
12130
12130
|
m = Object.assign(m, proto);
|
|
12131
12131
|
if (proto.frequency) {
|
|
12132
|
-
m.frequency = enumStringToValue$
|
|
12132
|
+
m.frequency = enumStringToValue$i(Frequency, proto.frequency);
|
|
12133
12133
|
}
|
|
12134
12134
|
if (proto.pricing) {
|
|
12135
12135
|
m.pricing = Object.keys(proto.pricing).reduce((obj, k) => { obj[k] = PricingPlanProductPricing.fromProto(proto.pricing[k]); return obj; }, {});
|
|
@@ -12138,7 +12138,7 @@ class CreatePricingPlanProductRequest {
|
|
|
12138
12138
|
m.commitment = Commitment.fromProto(proto.commitment);
|
|
12139
12139
|
}
|
|
12140
12140
|
if (proto.strategy) {
|
|
12141
|
-
m.strategy = enumStringToValue$
|
|
12141
|
+
m.strategy = enumStringToValue$i(BillingStrategy, proto.strategy);
|
|
12142
12142
|
}
|
|
12143
12143
|
if (proto.volumeCommitment) {
|
|
12144
12144
|
m.volumeCommitment = parseInt(proto.volumeCommitment, 10);
|
|
@@ -12312,7 +12312,7 @@ class GetPricingPlanProductResponse {
|
|
|
12312
12312
|
m.pricingPlanProduct = PricingPlanProduct.fromProto(proto.pricingPlanProduct);
|
|
12313
12313
|
}
|
|
12314
12314
|
if (proto.pricingPlanDefaultStrategy) {
|
|
12315
|
-
m.pricingPlanDefaultStrategy = enumStringToValue$
|
|
12315
|
+
m.pricingPlanDefaultStrategy = enumStringToValue$i(BillingStrategy, proto.pricingPlanDefaultStrategy);
|
|
12316
12316
|
}
|
|
12317
12317
|
return m;
|
|
12318
12318
|
}
|
|
@@ -12500,7 +12500,7 @@ class PricingPlanProduct {
|
|
|
12500
12500
|
let m = new PricingPlanProduct();
|
|
12501
12501
|
m = Object.assign(m, proto);
|
|
12502
12502
|
if (proto.frequency) {
|
|
12503
|
-
m.frequency = enumStringToValue$
|
|
12503
|
+
m.frequency = enumStringToValue$i(Frequency, proto.frequency);
|
|
12504
12504
|
}
|
|
12505
12505
|
if (proto.pricing) {
|
|
12506
12506
|
m.pricing = Object.keys(proto.pricing).reduce((obj, k) => { obj[k] = PricingPlanProductPricing.fromProto(proto.pricing[k]); return obj; }, {});
|
|
@@ -12515,7 +12515,7 @@ class PricingPlanProduct {
|
|
|
12515
12515
|
m.modified = new Date(proto.modified);
|
|
12516
12516
|
}
|
|
12517
12517
|
if (proto.strategy) {
|
|
12518
|
-
m.strategy = enumStringToValue$
|
|
12518
|
+
m.strategy = enumStringToValue$i(BillingStrategy, proto.strategy);
|
|
12519
12519
|
}
|
|
12520
12520
|
if (proto.volumeCommitment) {
|
|
12521
12521
|
m.volumeCommitment = parseInt(proto.volumeCommitment, 10);
|
|
@@ -12527,7 +12527,7 @@ class PricingPlanProduct {
|
|
|
12527
12527
|
m.volumeCommitmentEndsAt = new Date(proto.volumeCommitmentEndsAt);
|
|
12528
12528
|
}
|
|
12529
12529
|
if (proto.pricingType) {
|
|
12530
|
-
m.pricingType = enumStringToValue$
|
|
12530
|
+
m.pricingType = enumStringToValue$i(ProductPricingType, proto.pricingType);
|
|
12531
12531
|
}
|
|
12532
12532
|
return m;
|
|
12533
12533
|
}
|
|
@@ -12583,7 +12583,7 @@ class UpdatePricingPlanProductRequest {
|
|
|
12583
12583
|
let m = new UpdatePricingPlanProductRequest();
|
|
12584
12584
|
m = Object.assign(m, proto);
|
|
12585
12585
|
if (proto.frequency) {
|
|
12586
|
-
m.frequency = enumStringToValue$
|
|
12586
|
+
m.frequency = enumStringToValue$i(Frequency, proto.frequency);
|
|
12587
12587
|
}
|
|
12588
12588
|
if (proto.pricing) {
|
|
12589
12589
|
m.pricing = Object.keys(proto.pricing).reduce((obj, k) => { obj[k] = PricingPlanProductPricing.fromProto(proto.pricing[k]); return obj; }, {});
|
|
@@ -12595,7 +12595,7 @@ class UpdatePricingPlanProductRequest {
|
|
|
12595
12595
|
m.fieldMask = FieldMask.fromProto(proto.fieldMask);
|
|
12596
12596
|
}
|
|
12597
12597
|
if (proto.strategy) {
|
|
12598
|
-
m.strategy = enumStringToValue$
|
|
12598
|
+
m.strategy = enumStringToValue$i(BillingStrategy, proto.strategy);
|
|
12599
12599
|
}
|
|
12600
12600
|
if (proto.volumeCommitment) {
|
|
12601
12601
|
m.volumeCommitment = parseInt(proto.volumeCommitment, 10);
|
|
@@ -12677,7 +12677,7 @@ class UpsertWholesalePricingRequest {
|
|
|
12677
12677
|
m.termCommitment = Commitment.fromProto(proto.termCommitment);
|
|
12678
12678
|
}
|
|
12679
12679
|
if (proto.strategy) {
|
|
12680
|
-
m.strategy = enumStringToValue$
|
|
12680
|
+
m.strategy = enumStringToValue$i(BillingStrategy, proto.strategy);
|
|
12681
12681
|
}
|
|
12682
12682
|
if (proto.volumeCommitment) {
|
|
12683
12683
|
m.volumeCommitment = parseInt(proto.volumeCommitment, 10);
|
|
@@ -12726,7 +12726,7 @@ class UpsertWholesalePricingRequest {
|
|
|
12726
12726
|
}
|
|
12727
12727
|
}
|
|
12728
12728
|
|
|
12729
|
-
function enumStringToValue$
|
|
12729
|
+
function enumStringToValue$h(enumRef, value) {
|
|
12730
12730
|
if (typeof value === 'number') {
|
|
12731
12731
|
return value;
|
|
12732
12732
|
}
|
|
@@ -12737,7 +12737,7 @@ class CreateProductRequest {
|
|
|
12737
12737
|
let m = new CreateProductRequest();
|
|
12738
12738
|
m = Object.assign(m, proto);
|
|
12739
12739
|
if (proto.productType) {
|
|
12740
|
-
m.productType = enumStringToValue$
|
|
12740
|
+
m.productType = enumStringToValue$h(ProductType, proto.productType);
|
|
12741
12741
|
}
|
|
12742
12742
|
return m;
|
|
12743
12743
|
}
|
|
@@ -12841,7 +12841,7 @@ class ListProductsRequestListProductsFilters {
|
|
|
12841
12841
|
let m = new ListProductsRequestListProductsFilters();
|
|
12842
12842
|
m = Object.assign(m, proto);
|
|
12843
12843
|
if (proto.productType) {
|
|
12844
|
-
m.productType = proto.productType.map((v) => enumStringToValue$
|
|
12844
|
+
m.productType = proto.productType.map((v) => enumStringToValue$h(ProductType, v));
|
|
12845
12845
|
}
|
|
12846
12846
|
return m;
|
|
12847
12847
|
}
|
|
@@ -12937,7 +12937,7 @@ class Product {
|
|
|
12937
12937
|
let m = new Product();
|
|
12938
12938
|
m = Object.assign(m, proto);
|
|
12939
12939
|
if (proto.productType) {
|
|
12940
|
-
m.productType = enumStringToValue$
|
|
12940
|
+
m.productType = enumStringToValue$h(ProductType, proto.productType);
|
|
12941
12941
|
}
|
|
12942
12942
|
return m;
|
|
12943
12943
|
}
|
|
@@ -13004,7 +13004,7 @@ class UpdateProductRequest {
|
|
|
13004
13004
|
let m = new UpdateProductRequest();
|
|
13005
13005
|
m = Object.assign(m, proto);
|
|
13006
13006
|
if (proto.productType) {
|
|
13007
|
-
m.productType = enumStringToValue$
|
|
13007
|
+
m.productType = enumStringToValue$h(ProductType, proto.productType);
|
|
13008
13008
|
}
|
|
13009
13009
|
return m;
|
|
13010
13010
|
}
|
|
@@ -13035,7 +13035,7 @@ class UpdateProductRequest {
|
|
|
13035
13035
|
}
|
|
13036
13036
|
}
|
|
13037
13037
|
|
|
13038
|
-
function enumStringToValue$
|
|
13038
|
+
function enumStringToValue$g(enumRef, value) {
|
|
13039
13039
|
if (typeof value === 'number') {
|
|
13040
13040
|
return value;
|
|
13041
13041
|
}
|
|
@@ -13049,7 +13049,7 @@ class AppliedCredit {
|
|
|
13049
13049
|
m.appliedAmount = parseInt(proto.appliedAmount, 10);
|
|
13050
13050
|
}
|
|
13051
13051
|
if (proto.referenceType) {
|
|
13052
|
-
m.referenceType = enumStringToValue$
|
|
13052
|
+
m.referenceType = enumStringToValue$g(CreditType, proto.referenceType);
|
|
13053
13053
|
}
|
|
13054
13054
|
return m;
|
|
13055
13055
|
}
|
|
@@ -13078,7 +13078,7 @@ class ListPurchaseRequestListPurchaseBillingStrategyFilter {
|
|
|
13078
13078
|
let m = new ListPurchaseRequestListPurchaseBillingStrategyFilter();
|
|
13079
13079
|
m = Object.assign(m, proto);
|
|
13080
13080
|
if (proto.billingStrategy) {
|
|
13081
|
-
m.billingStrategy = proto.billingStrategy.map((v) => enumStringToValue$
|
|
13081
|
+
m.billingStrategy = proto.billingStrategy.map((v) => enumStringToValue$g(BillingStrategy, v));
|
|
13082
13082
|
}
|
|
13083
13083
|
return m;
|
|
13084
13084
|
}
|
|
@@ -13110,13 +13110,13 @@ class ListPurchaseRequestListPurchaseFilters {
|
|
|
13110
13110
|
m.billingStrategyFilter = ListPurchaseRequestListPurchaseBillingStrategyFilter.fromProto(proto.billingStrategyFilter);
|
|
13111
13111
|
}
|
|
13112
13112
|
if (proto.state) {
|
|
13113
|
-
m.state = enumStringToValue$
|
|
13113
|
+
m.state = enumStringToValue$g(ListPurchaseRequestState, proto.state);
|
|
13114
13114
|
}
|
|
13115
13115
|
if (proto.minPrice) {
|
|
13116
13116
|
m.minPrice = parseInt(proto.minPrice, 10);
|
|
13117
13117
|
}
|
|
13118
13118
|
if (proto.status) {
|
|
13119
|
-
m.status = enumStringToValue$
|
|
13119
|
+
m.status = enumStringToValue$g(PurchaseStatus, proto.status);
|
|
13120
13120
|
}
|
|
13121
13121
|
if (proto.dunningPauseStart) {
|
|
13122
13122
|
m.dunningPauseStart = new Date(proto.dunningPauseStart);
|
|
@@ -13248,7 +13248,7 @@ class ListPurchaseItemsResponse {
|
|
|
13248
13248
|
m.pagingMetadata = PagedResponseMetadata.fromProto(proto.pagingMetadata);
|
|
13249
13249
|
}
|
|
13250
13250
|
if (proto.currency) {
|
|
13251
|
-
m.currency = enumStringToValue$
|
|
13251
|
+
m.currency = enumStringToValue$g(Currency, proto.currency);
|
|
13252
13252
|
}
|
|
13253
13253
|
return m;
|
|
13254
13254
|
}
|
|
@@ -13399,13 +13399,13 @@ class Purchase {
|
|
|
13399
13399
|
m.total = parseInt(proto.total, 10);
|
|
13400
13400
|
}
|
|
13401
13401
|
if (proto.currency) {
|
|
13402
|
-
m.currency = enumStringToValue$
|
|
13402
|
+
m.currency = enumStringToValue$g(Currency, proto.currency);
|
|
13403
13403
|
}
|
|
13404
13404
|
if (proto.items) {
|
|
13405
13405
|
m.items = proto.items.map(PurchaseItem.fromProto);
|
|
13406
13406
|
}
|
|
13407
13407
|
if (proto.billingStrategy) {
|
|
13408
|
-
m.billingStrategy = enumStringToValue$
|
|
13408
|
+
m.billingStrategy = enumStringToValue$g(BillingStrategy, proto.billingStrategy);
|
|
13409
13409
|
}
|
|
13410
13410
|
if (proto.dunningAttempt) {
|
|
13411
13411
|
m.dunningAttempt = parseInt(proto.dunningAttempt, 10);
|
|
@@ -13414,7 +13414,7 @@ class Purchase {
|
|
|
13414
13414
|
m.voided = new Date(proto.voided);
|
|
13415
13415
|
}
|
|
13416
13416
|
if (proto.status) {
|
|
13417
|
-
m.status = enumStringToValue$
|
|
13417
|
+
m.status = enumStringToValue$g(PurchaseStatus, proto.status);
|
|
13418
13418
|
}
|
|
13419
13419
|
if (proto.creditAmount) {
|
|
13420
13420
|
m.creditAmount = parseInt(proto.creditAmount, 10);
|
|
@@ -13701,7 +13701,7 @@ class VoidPurchaseRequest {
|
|
|
13701
13701
|
}
|
|
13702
13702
|
}
|
|
13703
13703
|
|
|
13704
|
-
function enumStringToValue$
|
|
13704
|
+
function enumStringToValue$f(enumRef, value) {
|
|
13705
13705
|
if (typeof value === 'number') {
|
|
13706
13706
|
return value;
|
|
13707
13707
|
}
|
|
@@ -13715,10 +13715,10 @@ class CreateRefundRequest {
|
|
|
13715
13715
|
m.amount = parseInt(proto.amount, 10);
|
|
13716
13716
|
}
|
|
13717
13717
|
if (proto.reason) {
|
|
13718
|
-
m.reason = enumStringToValue$
|
|
13718
|
+
m.reason = enumStringToValue$f(RefundReason, proto.reason);
|
|
13719
13719
|
}
|
|
13720
13720
|
if (proto.referenceType) {
|
|
13721
|
-
m.referenceType = enumStringToValue$
|
|
13721
|
+
m.referenceType = enumStringToValue$f(ReferenceType, proto.referenceType);
|
|
13722
13722
|
}
|
|
13723
13723
|
return m;
|
|
13724
13724
|
}
|
|
@@ -13823,10 +13823,10 @@ class Refund {
|
|
|
13823
13823
|
m.amount = parseInt(proto.amount, 10);
|
|
13824
13824
|
}
|
|
13825
13825
|
if (proto.reason) {
|
|
13826
|
-
m.reason = enumStringToValue$
|
|
13826
|
+
m.reason = enumStringToValue$f(RefundReason, proto.reason);
|
|
13827
13827
|
}
|
|
13828
13828
|
if (proto.status) {
|
|
13829
|
-
m.status = enumStringToValue$
|
|
13829
|
+
m.status = enumStringToValue$f(RefundStatus, proto.status);
|
|
13830
13830
|
}
|
|
13831
13831
|
if (proto.created) {
|
|
13832
13832
|
m.created = new Date(proto.created);
|
|
@@ -13835,7 +13835,7 @@ class Refund {
|
|
|
13835
13835
|
m.updated = new Date(proto.updated);
|
|
13836
13836
|
}
|
|
13837
13837
|
if (proto.referenceType) {
|
|
13838
|
-
m.referenceType = enumStringToValue$
|
|
13838
|
+
m.referenceType = enumStringToValue$f(ReferenceType, proto.referenceType);
|
|
13839
13839
|
}
|
|
13840
13840
|
return m;
|
|
13841
13841
|
}
|
|
@@ -13887,7 +13887,7 @@ class Refund {
|
|
|
13887
13887
|
}
|
|
13888
13888
|
}
|
|
13889
13889
|
|
|
13890
|
-
function enumStringToValue$
|
|
13890
|
+
function enumStringToValue$e(enumRef, value) {
|
|
13891
13891
|
if (typeof value === 'number') {
|
|
13892
13892
|
return value;
|
|
13893
13893
|
}
|
|
@@ -13942,7 +13942,7 @@ class ListSalesCreditNoteRequestListSalesCreditNoteFilters {
|
|
|
13942
13942
|
let m = new ListSalesCreditNoteRequestListSalesCreditNoteFilters();
|
|
13943
13943
|
m = Object.assign(m, proto);
|
|
13944
13944
|
if (proto.statuses) {
|
|
13945
|
-
m.statuses = proto.statuses.map((v) => enumStringToValue$
|
|
13945
|
+
m.statuses = proto.statuses.map((v) => enumStringToValue$e(SalesCreditNoteStatus, v));
|
|
13946
13946
|
}
|
|
13947
13947
|
return m;
|
|
13948
13948
|
}
|
|
@@ -14032,7 +14032,7 @@ class SalesCreditNote {
|
|
|
14032
14032
|
m.dueDate = new Date(proto.dueDate);
|
|
14033
14033
|
}
|
|
14034
14034
|
if (proto.currency) {
|
|
14035
|
-
m.currency = enumStringToValue$
|
|
14035
|
+
m.currency = enumStringToValue$e(Currency, proto.currency);
|
|
14036
14036
|
}
|
|
14037
14037
|
if (proto.total) {
|
|
14038
14038
|
m.total = parseInt(proto.total, 10);
|
|
@@ -14041,7 +14041,7 @@ class SalesCreditNote {
|
|
|
14041
14041
|
m.outstanding = parseInt(proto.outstanding, 10);
|
|
14042
14042
|
}
|
|
14043
14043
|
if (proto.status) {
|
|
14044
|
-
m.status = enumStringToValue$
|
|
14044
|
+
m.status = enumStringToValue$e(SalesCreditNoteStatus, proto.status);
|
|
14045
14045
|
}
|
|
14046
14046
|
return m;
|
|
14047
14047
|
}
|
|
@@ -14099,7 +14099,7 @@ class SalesCreditNote {
|
|
|
14099
14099
|
}
|
|
14100
14100
|
}
|
|
14101
14101
|
|
|
14102
|
-
function enumStringToValue$
|
|
14102
|
+
function enumStringToValue$d(enumRef, value) {
|
|
14103
14103
|
if (typeof value === 'number') {
|
|
14104
14104
|
return value;
|
|
14105
14105
|
}
|
|
@@ -14156,10 +14156,10 @@ class ListSalesInvoiceRequestListSalesInvoiceFilters {
|
|
|
14156
14156
|
let m = new ListSalesInvoiceRequestListSalesInvoiceFilters();
|
|
14157
14157
|
m = Object.assign(m, proto);
|
|
14158
14158
|
if (proto.statuses) {
|
|
14159
|
-
m.statuses = proto.statuses.map((v) => enumStringToValue$
|
|
14159
|
+
m.statuses = proto.statuses.map((v) => enumStringToValue$d(SalesInvoiceStatus, v));
|
|
14160
14160
|
}
|
|
14161
14161
|
if (proto.paymentStatuses) {
|
|
14162
|
-
m.paymentStatuses = proto.paymentStatuses.map((v) => enumStringToValue$
|
|
14162
|
+
m.paymentStatuses = proto.paymentStatuses.map((v) => enumStringToValue$d(PaymentStatuses, v));
|
|
14163
14163
|
}
|
|
14164
14164
|
return m;
|
|
14165
14165
|
}
|
|
@@ -14287,16 +14287,16 @@ class SalesInvoice {
|
|
|
14287
14287
|
m.total = parseInt(proto.total, 10);
|
|
14288
14288
|
}
|
|
14289
14289
|
if (proto.currency) {
|
|
14290
|
-
m.currency = enumStringToValue$
|
|
14290
|
+
m.currency = enumStringToValue$d(Currency, proto.currency);
|
|
14291
14291
|
}
|
|
14292
14292
|
if (proto.status) {
|
|
14293
|
-
m.status = enumStringToValue$
|
|
14293
|
+
m.status = enumStringToValue$d(SalesInvoiceStatus, proto.status);
|
|
14294
14294
|
}
|
|
14295
14295
|
if (proto.outstanding) {
|
|
14296
14296
|
m.outstanding = parseInt(proto.outstanding, 10);
|
|
14297
14297
|
}
|
|
14298
14298
|
if (proto.type) {
|
|
14299
|
-
m.type = enumStringToValue$
|
|
14299
|
+
m.type = enumStringToValue$d(SalesInvoiceType, proto.type);
|
|
14300
14300
|
}
|
|
14301
14301
|
return m;
|
|
14302
14302
|
}
|
|
@@ -14400,7 +14400,7 @@ class SendSalesInvoiceReceiptEmailRequest {
|
|
|
14400
14400
|
}
|
|
14401
14401
|
}
|
|
14402
14402
|
|
|
14403
|
-
function enumStringToValue$
|
|
14403
|
+
function enumStringToValue$c(enumRef, value) {
|
|
14404
14404
|
if (typeof value === 'number') {
|
|
14405
14405
|
return value;
|
|
14406
14406
|
}
|
|
@@ -14509,10 +14509,10 @@ class ListTaxRulesRequestFilters {
|
|
|
14509
14509
|
let m = new ListTaxRulesRequestFilters();
|
|
14510
14510
|
m = Object.assign(m, proto);
|
|
14511
14511
|
if (proto.consumer) {
|
|
14512
|
-
m.consumer = enumStringToValue$
|
|
14512
|
+
m.consumer = enumStringToValue$c(Consumer, proto.consumer);
|
|
14513
14513
|
}
|
|
14514
14514
|
if (proto.entityType) {
|
|
14515
|
-
m.entityType = enumStringToValue$
|
|
14515
|
+
m.entityType = enumStringToValue$c(TaxRuleEntityType, proto.entityType);
|
|
14516
14516
|
}
|
|
14517
14517
|
return m;
|
|
14518
14518
|
}
|
|
@@ -14561,7 +14561,7 @@ class GetTaxProviderResponse {
|
|
|
14561
14561
|
let m = new GetTaxProviderResponse();
|
|
14562
14562
|
m = Object.assign(m, proto);
|
|
14563
14563
|
if (proto.taxProviderType) {
|
|
14564
|
-
m.taxProviderType = enumStringToValue$
|
|
14564
|
+
m.taxProviderType = enumStringToValue$c(TaxProviderType, proto.taxProviderType);
|
|
14565
14565
|
}
|
|
14566
14566
|
return m;
|
|
14567
14567
|
}
|
|
@@ -14685,7 +14685,7 @@ class TaxRuleProductProductIdentifier {
|
|
|
14685
14685
|
let m = new TaxRuleProductProductIdentifier();
|
|
14686
14686
|
m = Object.assign(m, proto);
|
|
14687
14687
|
if (proto.type) {
|
|
14688
|
-
m.type = enumStringToValue$
|
|
14688
|
+
m.type = enumStringToValue$c(ProductType, proto.type);
|
|
14689
14689
|
}
|
|
14690
14690
|
return m;
|
|
14691
14691
|
}
|
|
@@ -14714,13 +14714,13 @@ class ReplaceTaxRuleRequest {
|
|
|
14714
14714
|
let m = new ReplaceTaxRuleRequest();
|
|
14715
14715
|
m = Object.assign(m, proto);
|
|
14716
14716
|
if (proto.entityType) {
|
|
14717
|
-
m.entityType = enumStringToValue$
|
|
14717
|
+
m.entityType = enumStringToValue$c(TaxRuleEntityType, proto.entityType);
|
|
14718
14718
|
}
|
|
14719
14719
|
if (proto.type) {
|
|
14720
|
-
m.type = enumStringToValue$
|
|
14720
|
+
m.type = enumStringToValue$c(TaxRuleType, proto.type);
|
|
14721
14721
|
}
|
|
14722
14722
|
if (proto.consumer) {
|
|
14723
|
-
m.consumer = enumStringToValue$
|
|
14723
|
+
m.consumer = enumStringToValue$c(Consumer, proto.consumer);
|
|
14724
14724
|
}
|
|
14725
14725
|
return m;
|
|
14726
14726
|
}
|
|
@@ -14778,13 +14778,13 @@ class TaxRule {
|
|
|
14778
14778
|
let m = new TaxRule();
|
|
14779
14779
|
m = Object.assign(m, proto);
|
|
14780
14780
|
if (proto.entityType) {
|
|
14781
|
-
m.entityType = enumStringToValue$
|
|
14781
|
+
m.entityType = enumStringToValue$c(TaxRuleEntityType, proto.entityType);
|
|
14782
14782
|
}
|
|
14783
14783
|
if (proto.entity) {
|
|
14784
14784
|
m.entity = TaxRuleTaxRuleEntity.fromProto(proto.entity);
|
|
14785
14785
|
}
|
|
14786
14786
|
if (proto.type) {
|
|
14787
|
-
m.type = enumStringToValue$
|
|
14787
|
+
m.type = enumStringToValue$c(TaxRuleType, proto.type);
|
|
14788
14788
|
}
|
|
14789
14789
|
if (proto.taxRates) {
|
|
14790
14790
|
m.taxRates = proto.taxRates.map(TaxRate.fromProto);
|
|
@@ -14905,7 +14905,7 @@ class TaxRuleProduct {
|
|
|
14905
14905
|
}
|
|
14906
14906
|
}
|
|
14907
14907
|
|
|
14908
|
-
function enumStringToValue$
|
|
14908
|
+
function enumStringToValue$b(enumRef, value) {
|
|
14909
14909
|
if (typeof value === 'number') {
|
|
14910
14910
|
return value;
|
|
14911
14911
|
}
|
|
@@ -15045,7 +15045,7 @@ class ListContractDocumentsResponse {
|
|
|
15045
15045
|
}
|
|
15046
15046
|
}
|
|
15047
15047
|
|
|
15048
|
-
function enumStringToValue$
|
|
15048
|
+
function enumStringToValue$a(enumRef, value) {
|
|
15049
15049
|
if (typeof value === 'number') {
|
|
15050
15050
|
return value;
|
|
15051
15051
|
}
|
|
@@ -15111,7 +15111,7 @@ class RetailCustomerConfiguration {
|
|
|
15111
15111
|
m.netD = parseInt(proto.netD, 10);
|
|
15112
15112
|
}
|
|
15113
15113
|
if (proto.paymentMethodTypes) {
|
|
15114
|
-
m.paymentMethodTypes = proto.paymentMethodTypes.map((v) => enumStringToValue$
|
|
15114
|
+
m.paymentMethodTypes = proto.paymentMethodTypes.map((v) => enumStringToValue$a(PaymentMethodType, v));
|
|
15115
15115
|
}
|
|
15116
15116
|
return m;
|
|
15117
15117
|
}
|
|
@@ -15179,7 +15179,7 @@ class UpsertRetailCustomerConfigurationRequest {
|
|
|
15179
15179
|
m.netD = parseInt(proto.netD, 10);
|
|
15180
15180
|
}
|
|
15181
15181
|
if (proto.paymentMethodTypes) {
|
|
15182
|
-
m.paymentMethodTypes = proto.paymentMethodTypes.map((v) => enumStringToValue$
|
|
15182
|
+
m.paymentMethodTypes = proto.paymentMethodTypes.map((v) => enumStringToValue$a(PaymentMethodType, v));
|
|
15183
15183
|
}
|
|
15184
15184
|
if (proto.fieldMask) {
|
|
15185
15185
|
m.fieldMask = FieldMask.fromProto(proto.fieldMask);
|
|
@@ -15240,7 +15240,7 @@ class UpsertRetailCustomerConfigurationRequest {
|
|
|
15240
15240
|
}
|
|
15241
15241
|
}
|
|
15242
15242
|
|
|
15243
|
-
function enumStringToValue$
|
|
15243
|
+
function enumStringToValue$9(enumRef, value) {
|
|
15244
15244
|
if (typeof value === 'number') {
|
|
15245
15245
|
return value;
|
|
15246
15246
|
}
|
|
@@ -15357,7 +15357,7 @@ class GetBalanceResponse {
|
|
|
15357
15357
|
}
|
|
15358
15358
|
}
|
|
15359
15359
|
|
|
15360
|
-
function enumStringToValue$
|
|
15360
|
+
function enumStringToValue$8(enumRef, value) {
|
|
15361
15361
|
if (typeof value === 'number') {
|
|
15362
15362
|
return value;
|
|
15363
15363
|
}
|
|
@@ -15368,7 +15368,7 @@ class CreateMerchantServicesReportRun {
|
|
|
15368
15368
|
let m = new CreateMerchantServicesReportRun();
|
|
15369
15369
|
m = Object.assign(m, proto);
|
|
15370
15370
|
if (proto.reportType) {
|
|
15371
|
-
m.reportType = enumStringToValue$
|
|
15371
|
+
m.reportType = enumStringToValue$8(MerchantServicesReportRunType, proto.reportType);
|
|
15372
15372
|
}
|
|
15373
15373
|
if (proto.intervalStart) {
|
|
15374
15374
|
m.intervalStart = new Date(proto.intervalStart);
|
|
@@ -15432,10 +15432,10 @@ class MerchantServicesReportRun {
|
|
|
15432
15432
|
m.created = new Date(proto.created);
|
|
15433
15433
|
}
|
|
15434
15434
|
if (proto.reportType) {
|
|
15435
|
-
m.reportType = enumStringToValue$
|
|
15435
|
+
m.reportType = enumStringToValue$8(MerchantServicesReportRunType, proto.reportType);
|
|
15436
15436
|
}
|
|
15437
15437
|
if (proto.status) {
|
|
15438
|
-
m.status = enumStringToValue$
|
|
15438
|
+
m.status = enumStringToValue$8(MerchantServicesReportRunStatus, proto.status);
|
|
15439
15439
|
}
|
|
15440
15440
|
return m;
|
|
15441
15441
|
}
|
|
@@ -15466,7 +15466,7 @@ class MerchantServicesReportRun {
|
|
|
15466
15466
|
}
|
|
15467
15467
|
}
|
|
15468
15468
|
|
|
15469
|
-
function enumStringToValue$
|
|
15469
|
+
function enumStringToValue$7(enumRef, value) {
|
|
15470
15470
|
if (typeof value === 'number') {
|
|
15471
15471
|
return value;
|
|
15472
15472
|
}
|
|
@@ -15516,7 +15516,7 @@ class MCPOptions {
|
|
|
15516
15516
|
}
|
|
15517
15517
|
}
|
|
15518
15518
|
|
|
15519
|
-
function enumStringToValue$
|
|
15519
|
+
function enumStringToValue$6(enumRef, value) {
|
|
15520
15520
|
if (typeof value === 'number') {
|
|
15521
15521
|
return value;
|
|
15522
15522
|
}
|
|
@@ -15527,13 +15527,13 @@ class ListSubscriptionRelationshipsRequestFilters {
|
|
|
15527
15527
|
let m = new ListSubscriptionRelationshipsRequestFilters();
|
|
15528
15528
|
m = Object.assign(m, proto);
|
|
15529
15529
|
if (proto.originType) {
|
|
15530
|
-
m.originType = enumStringToValue$
|
|
15530
|
+
m.originType = enumStringToValue$6(EntityType, proto.originType);
|
|
15531
15531
|
}
|
|
15532
15532
|
if (proto.targetType) {
|
|
15533
|
-
m.targetType = enumStringToValue$
|
|
15533
|
+
m.targetType = enumStringToValue$6(EntityType, proto.targetType);
|
|
15534
15534
|
}
|
|
15535
15535
|
if (proto.relationshipType) {
|
|
15536
|
-
m.relationshipType = enumStringToValue$
|
|
15536
|
+
m.relationshipType = enumStringToValue$6(RelationshipType, proto.relationshipType);
|
|
15537
15537
|
}
|
|
15538
15538
|
return m;
|
|
15539
15539
|
}
|
|
@@ -15721,13 +15721,13 @@ class SubscriptionRelationship {
|
|
|
15721
15721
|
let m = new SubscriptionRelationship();
|
|
15722
15722
|
m = Object.assign(m, proto);
|
|
15723
15723
|
if (proto.originType) {
|
|
15724
|
-
m.originType = enumStringToValue$
|
|
15724
|
+
m.originType = enumStringToValue$6(EntityType, proto.originType);
|
|
15725
15725
|
}
|
|
15726
15726
|
if (proto.targetType) {
|
|
15727
|
-
m.targetType = enumStringToValue$
|
|
15727
|
+
m.targetType = enumStringToValue$6(EntityType, proto.targetType);
|
|
15728
15728
|
}
|
|
15729
15729
|
if (proto.relationshipType) {
|
|
15730
|
-
m.relationshipType = enumStringToValue$
|
|
15730
|
+
m.relationshipType = enumStringToValue$6(RelationshipType, proto.relationshipType);
|
|
15731
15731
|
}
|
|
15732
15732
|
if (proto.created) {
|
|
15733
15733
|
m.created = new Date(proto.created);
|
|
@@ -15785,7 +15785,7 @@ class SubscriptionRelationship {
|
|
|
15785
15785
|
}
|
|
15786
15786
|
}
|
|
15787
15787
|
|
|
15788
|
-
function enumStringToValue$
|
|
15788
|
+
function enumStringToValue$5(enumRef, value) {
|
|
15789
15789
|
if (typeof value === 'number') {
|
|
15790
15790
|
return value;
|
|
15791
15791
|
}
|
|
@@ -15891,7 +15891,7 @@ class SubscriptionPreset {
|
|
|
15891
15891
|
}
|
|
15892
15892
|
}
|
|
15893
15893
|
|
|
15894
|
-
function enumStringToValue$
|
|
15894
|
+
function enumStringToValue$4(enumRef, value) {
|
|
15895
15895
|
if (typeof value === 'number') {
|
|
15896
15896
|
return value;
|
|
15897
15897
|
}
|
|
@@ -15902,13 +15902,13 @@ class AppliedTo {
|
|
|
15902
15902
|
let m = new AppliedTo();
|
|
15903
15903
|
m = Object.assign(m, proto);
|
|
15904
15904
|
if (proto.referenceType) {
|
|
15905
|
-
m.referenceType = enumStringToValue$
|
|
15905
|
+
m.referenceType = enumStringToValue$4(AppliedReferenceType, proto.referenceType);
|
|
15906
15906
|
}
|
|
15907
15907
|
if (proto.amount) {
|
|
15908
15908
|
m.amount = parseInt(proto.amount, 10);
|
|
15909
15909
|
}
|
|
15910
15910
|
if (proto.creditNoteType) {
|
|
15911
|
-
m.creditNoteType = enumStringToValue$
|
|
15911
|
+
m.creditNoteType = enumStringToValue$4(CreditNoteType, proto.creditNoteType);
|
|
15912
15912
|
}
|
|
15913
15913
|
if (proto.appliedAt) {
|
|
15914
15914
|
m.appliedAt = new Date(proto.appliedAt);
|
|
@@ -16056,7 +16056,7 @@ class CreditNote {
|
|
|
16056
16056
|
m.items = proto.items.map(LineItem.fromProto);
|
|
16057
16057
|
}
|
|
16058
16058
|
if (proto.currency) {
|
|
16059
|
-
m.currency = enumStringToValue$
|
|
16059
|
+
m.currency = enumStringToValue$4(Currency, proto.currency);
|
|
16060
16060
|
}
|
|
16061
16061
|
if (proto.amountTax) {
|
|
16062
16062
|
m.amountTax = parseInt(proto.amountTax, 10);
|
|
@@ -16068,7 +16068,7 @@ class CreditNote {
|
|
|
16068
16068
|
m.notes = proto.notes.map(Note.fromProto);
|
|
16069
16069
|
}
|
|
16070
16070
|
if (proto.reason) {
|
|
16071
|
-
m.reason = enumStringToValue$
|
|
16071
|
+
m.reason = enumStringToValue$4(CreditNoteReason, proto.reason);
|
|
16072
16072
|
}
|
|
16073
16073
|
if (proto.appliedTo) {
|
|
16074
16074
|
m.appliedTo = proto.appliedTo.map(AppliedTo.fromProto);
|
|
@@ -16408,7 +16408,7 @@ class SendCreditNoteRequest {
|
|
|
16408
16408
|
}
|
|
16409
16409
|
}
|
|
16410
16410
|
|
|
16411
|
-
function enumStringToValue$
|
|
16411
|
+
function enumStringToValue$3(enumRef, value) {
|
|
16412
16412
|
if (typeof value === 'number') {
|
|
16413
16413
|
return value;
|
|
16414
16414
|
}
|
|
@@ -16576,7 +16576,7 @@ class VendorSplit {
|
|
|
16576
16576
|
}
|
|
16577
16577
|
}
|
|
16578
16578
|
|
|
16579
|
-
function enumStringToValue$
|
|
16579
|
+
function enumStringToValue$2(enumRef, value) {
|
|
16580
16580
|
if (typeof value === 'number') {
|
|
16581
16581
|
return value;
|
|
16582
16582
|
}
|
|
@@ -16773,6 +16773,146 @@ class UpdateAvalaraConfigurationResponse {
|
|
|
16773
16773
|
}
|
|
16774
16774
|
}
|
|
16775
16775
|
|
|
16776
|
+
function enumStringToValue$1(enumRef, value) {
|
|
16777
|
+
if (typeof value === 'number') {
|
|
16778
|
+
return value;
|
|
16779
|
+
}
|
|
16780
|
+
return enumRef[value];
|
|
16781
|
+
}
|
|
16782
|
+
class ListWholesaleTaxRulesRequest {
|
|
16783
|
+
static fromProto(proto) {
|
|
16784
|
+
let m = new ListWholesaleTaxRulesRequest();
|
|
16785
|
+
m = Object.assign(m, proto);
|
|
16786
|
+
if (proto.pagingOptions) {
|
|
16787
|
+
m.pagingOptions = PagedRequestOptions.fromProto(proto.pagingOptions);
|
|
16788
|
+
}
|
|
16789
|
+
return m;
|
|
16790
|
+
}
|
|
16791
|
+
constructor(kwargs) {
|
|
16792
|
+
if (!kwargs) {
|
|
16793
|
+
return;
|
|
16794
|
+
}
|
|
16795
|
+
Object.assign(this, kwargs);
|
|
16796
|
+
}
|
|
16797
|
+
toApiJson() {
|
|
16798
|
+
const toReturn = {};
|
|
16799
|
+
if (typeof this.pagingOptions !== 'undefined' && this.pagingOptions !== null) {
|
|
16800
|
+
toReturn['pagingOptions'] = 'toApiJson' in this.pagingOptions ? this.pagingOptions.toApiJson() : this.pagingOptions;
|
|
16801
|
+
}
|
|
16802
|
+
return toReturn;
|
|
16803
|
+
}
|
|
16804
|
+
}
|
|
16805
|
+
class ListWholesaleTaxRulesResponse {
|
|
16806
|
+
static fromProto(proto) {
|
|
16807
|
+
let m = new ListWholesaleTaxRulesResponse();
|
|
16808
|
+
m = Object.assign(m, proto);
|
|
16809
|
+
if (proto.taxRules) {
|
|
16810
|
+
m.taxRules = proto.taxRules.map(WholesaleTaxRule.fromProto);
|
|
16811
|
+
}
|
|
16812
|
+
if (proto.pagingMetadata) {
|
|
16813
|
+
m.pagingMetadata = PagedResponseMetadata.fromProto(proto.pagingMetadata);
|
|
16814
|
+
}
|
|
16815
|
+
return m;
|
|
16816
|
+
}
|
|
16817
|
+
constructor(kwargs) {
|
|
16818
|
+
if (!kwargs) {
|
|
16819
|
+
return;
|
|
16820
|
+
}
|
|
16821
|
+
Object.assign(this, kwargs);
|
|
16822
|
+
}
|
|
16823
|
+
toApiJson() {
|
|
16824
|
+
const toReturn = {};
|
|
16825
|
+
if (typeof this.taxRules !== 'undefined' && this.taxRules !== null) {
|
|
16826
|
+
toReturn['taxRules'] = 'toApiJson' in this.taxRules ? this.taxRules.toApiJson() : this.taxRules;
|
|
16827
|
+
}
|
|
16828
|
+
if (typeof this.pagingMetadata !== 'undefined' && this.pagingMetadata !== null) {
|
|
16829
|
+
toReturn['pagingMetadata'] = 'toApiJson' in this.pagingMetadata ? this.pagingMetadata.toApiJson() : this.pagingMetadata;
|
|
16830
|
+
}
|
|
16831
|
+
return toReturn;
|
|
16832
|
+
}
|
|
16833
|
+
}
|
|
16834
|
+
class UpsertWholesaleTaxRuleRequest {
|
|
16835
|
+
static fromProto(proto) {
|
|
16836
|
+
let m = new UpsertWholesaleTaxRuleRequest();
|
|
16837
|
+
m = Object.assign(m, proto);
|
|
16838
|
+
if (proto.item) {
|
|
16839
|
+
m.item = WholesaleTaxRule.fromProto(proto.item);
|
|
16840
|
+
}
|
|
16841
|
+
return m;
|
|
16842
|
+
}
|
|
16843
|
+
constructor(kwargs) {
|
|
16844
|
+
if (!kwargs) {
|
|
16845
|
+
return;
|
|
16846
|
+
}
|
|
16847
|
+
Object.assign(this, kwargs);
|
|
16848
|
+
}
|
|
16849
|
+
toApiJson() {
|
|
16850
|
+
const toReturn = {};
|
|
16851
|
+
if (typeof this.item !== 'undefined' && this.item !== null) {
|
|
16852
|
+
toReturn['item'] = 'toApiJson' in this.item ? this.item.toApiJson() : this.item;
|
|
16853
|
+
}
|
|
16854
|
+
return toReturn;
|
|
16855
|
+
}
|
|
16856
|
+
}
|
|
16857
|
+
class UpsertWholesaleTaxRuleResponse {
|
|
16858
|
+
static fromProto(proto) {
|
|
16859
|
+
let m = new UpsertWholesaleTaxRuleResponse();
|
|
16860
|
+
m = Object.assign(m, proto);
|
|
16861
|
+
if (proto.item) {
|
|
16862
|
+
m.item = WholesaleTaxRule.fromProto(proto.item);
|
|
16863
|
+
}
|
|
16864
|
+
return m;
|
|
16865
|
+
}
|
|
16866
|
+
constructor(kwargs) {
|
|
16867
|
+
if (!kwargs) {
|
|
16868
|
+
return;
|
|
16869
|
+
}
|
|
16870
|
+
Object.assign(this, kwargs);
|
|
16871
|
+
}
|
|
16872
|
+
toApiJson() {
|
|
16873
|
+
const toReturn = {};
|
|
16874
|
+
if (typeof this.item !== 'undefined' && this.item !== null) {
|
|
16875
|
+
toReturn['item'] = 'toApiJson' in this.item ? this.item.toApiJson() : this.item;
|
|
16876
|
+
}
|
|
16877
|
+
return toReturn;
|
|
16878
|
+
}
|
|
16879
|
+
}
|
|
16880
|
+
class WholesaleTaxRule {
|
|
16881
|
+
static fromProto(proto) {
|
|
16882
|
+
let m = new WholesaleTaxRule();
|
|
16883
|
+
m = Object.assign(m, proto);
|
|
16884
|
+
return m;
|
|
16885
|
+
}
|
|
16886
|
+
constructor(kwargs) {
|
|
16887
|
+
if (!kwargs) {
|
|
16888
|
+
return;
|
|
16889
|
+
}
|
|
16890
|
+
Object.assign(this, kwargs);
|
|
16891
|
+
}
|
|
16892
|
+
toApiJson() {
|
|
16893
|
+
const toReturn = {};
|
|
16894
|
+
if (typeof this.id !== 'undefined') {
|
|
16895
|
+
toReturn['id'] = this.id;
|
|
16896
|
+
}
|
|
16897
|
+
if (typeof this.countryCode !== 'undefined') {
|
|
16898
|
+
toReturn['countryCode'] = this.countryCode;
|
|
16899
|
+
}
|
|
16900
|
+
if (typeof this.stateCode !== 'undefined') {
|
|
16901
|
+
toReturn['stateCode'] = this.stateCode;
|
|
16902
|
+
}
|
|
16903
|
+
if (typeof this.taxCode !== 'undefined') {
|
|
16904
|
+
toReturn['taxCode'] = this.taxCode;
|
|
16905
|
+
}
|
|
16906
|
+
if (typeof this.externalTaxCode !== 'undefined') {
|
|
16907
|
+
toReturn['externalTaxCode'] = this.externalTaxCode;
|
|
16908
|
+
}
|
|
16909
|
+
if (typeof this.percentage !== 'undefined') {
|
|
16910
|
+
toReturn['percentage'] = this.percentage;
|
|
16911
|
+
}
|
|
16912
|
+
return toReturn;
|
|
16913
|
+
}
|
|
16914
|
+
}
|
|
16915
|
+
|
|
16776
16916
|
function enumStringToValue(enumRef, value) {
|
|
16777
16917
|
if (typeof value === 'number') {
|
|
16778
16918
|
return value;
|
|
@@ -19469,6 +19609,44 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.5", ngImpor
|
|
|
19469
19609
|
args: [{ providedIn: 'root' }]
|
|
19470
19610
|
}] });
|
|
19471
19611
|
|
|
19612
|
+
// *********************************
|
|
19613
|
+
// Code generated by sdkgen
|
|
19614
|
+
// DO NOT EDIT!.
|
|
19615
|
+
//
|
|
19616
|
+
// API Service.
|
|
19617
|
+
// *********************************
|
|
19618
|
+
class WholesaleTaxRuleApiService {
|
|
19619
|
+
constructor() {
|
|
19620
|
+
this.hostService = inject(HostService);
|
|
19621
|
+
this.http = inject(HttpClient);
|
|
19622
|
+
this._host = this.hostService.hostWithScheme;
|
|
19623
|
+
}
|
|
19624
|
+
apiOptions() {
|
|
19625
|
+
return {
|
|
19626
|
+
headers: new HttpHeaders({
|
|
19627
|
+
'Content-Type': 'application/json'
|
|
19628
|
+
}),
|
|
19629
|
+
withCredentials: true
|
|
19630
|
+
};
|
|
19631
|
+
}
|
|
19632
|
+
list(r) {
|
|
19633
|
+
const request = (r.toApiJson) ? r : new ListWholesaleTaxRulesRequest(r);
|
|
19634
|
+
return this.http.post(this._host + "/billing.v1.WholesaleTaxRuleService/List", request.toApiJson(), this.apiOptions())
|
|
19635
|
+
.pipe(map(resp => ListWholesaleTaxRulesResponse.fromProto(resp)));
|
|
19636
|
+
}
|
|
19637
|
+
upsert(r) {
|
|
19638
|
+
const request = (r.toApiJson) ? r : new UpsertWholesaleTaxRuleRequest(r);
|
|
19639
|
+
return this.http.post(this._host + "/billing.v1.WholesaleTaxRuleService/Upsert", request.toApiJson(), this.apiOptions())
|
|
19640
|
+
.pipe(map(resp => UpsertWholesaleTaxRuleResponse.fromProto(resp)));
|
|
19641
|
+
}
|
|
19642
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.5", ngImport: i0, type: WholesaleTaxRuleApiService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
19643
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.0.5", ngImport: i0, type: WholesaleTaxRuleApiService, providedIn: 'root' }); }
|
|
19644
|
+
}
|
|
19645
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.5", ngImport: i0, type: WholesaleTaxRuleApiService, decorators: [{
|
|
19646
|
+
type: Injectable,
|
|
19647
|
+
args: [{ providedIn: 'root' }]
|
|
19648
|
+
}] });
|
|
19649
|
+
|
|
19472
19650
|
// *********************************
|
|
19473
19651
|
// Code generated by sdkgen
|
|
19474
19652
|
// DO NOT EDIT!.
|
|
@@ -19483,5 +19661,5 @@ const usdConversionRate = 1.4;
|
|
|
19483
19661
|
* Generated bundle index. Do not edit.
|
|
19484
19662
|
*/
|
|
19485
19663
|
|
|
19486
|
-
export { Access, AccountBalance, AddBundleRequest, AddBundleResponse, AddCreditRequest, AddLineItemRequest, AddLineItemResponse, Adjustment, AlignmentSubscription, AppliedBundle, AppliedBundleItem, AppliedCredit, AppliedCreditNote, AppliedDiscount, AppliedFee, AppliedReferenceType, AppliedTaxRate, AppliedTo, ArchiveTaxRequest, AvalaraConfiguration, AvalaraConfigurationApiService, Balance, BalanceAmount, BankAccount, BankReconciliationApiService, BillItemRequest, BillMultipleItemsRequest, BillMultipleItemsResponse, BillableItem, BillableItemCustomerAddress, BillableItemRetailSubscriptionGroup, BillingApiService, BillingStrategy, BulkReplaceTaxRulesRequest, BulkReplaceTaxRulesResponse, Bundle, BundleApiService, BundleItem, BundleItemPrice, BundlePricing, BundlePricingPriceAndFrequency, CalculateCreditNoteRequest, CalculateCreditNoteResponse, CalculateLineItemTaxesRequest, CalculateLineItemTaxesRequestLineItem, CalculateLineItemTaxesResponse, CalculateLineItemTaxesResponseLineItemTaxes, CalculateTaxRequest, CalculateTaxResponse, CanBillItemRequest, CanCreateSubscriptionsRequest, CanCreateSubscriptionsRequestSkusEntry, CanCreateSubscriptionsRequestSubscriptionItem, CanCreateSubscriptionsResponse, CancelRetailBillingRequest, CardType, ChangeCustomUnitPriceRequest, ChangeFrequencyRequest, ChangeRenewalDateRequest, ChargeInvoiceRequest, ChargeSalesInvoiceRequest, CloseRetailDisputeRequest, CollectionMethod, Commitment, ComponentPricing, ConfigureRetailPaymentProviderRequest, ConfigureRetailPaymentProviderResponse, ConfirmRetailPaymentRequest, ConnectStripeAccountRequest, ConnectStripeAccountResponse, Consumer, Contract, ContractApiService, ContractDocument, ContractDocumentApiService, ContractSubscriptionStatus, CreateAvalaraConfigurationRequest, CreateAvalaraConfigurationResponse, CreateContractRequest, CreateContractResponse, CreateCreditNoteRequest, CreateCreditNoteResponse, CreateDiscountRequest, CreateDiscountResponse, CreateInvoiceRequest, CreateInvoiceResponse, CreateMerchantRequest, CreateMerchantRequestIncludeInFinancialRecords, CreateMerchantServicesReportRun, CreateMeteredComponentRequest, CreatePaymentCardRequest, CreatePaymentLinkRequest, CreatePaymentLinkResponse, CreatePricingPlanProductRequest, CreatePricingPlanProductRequestPricingEntry, CreatePricingPlanProductResponse, CreatePricingPlanRequest, CreatePricingPlanResponse, CreateProductRequest, CreateRefundRequest, CreateRetailSubscriptionGroupRequest, CreateRetailSubscriptionGroupResponse, CreateSalesCreditNoteRequest, CreateStripeExternalAccountRequest, CreateSubscriptionRequest, CreateSubscriptionResponse, CreateSubscriptionsRequest, CreateSubscriptionsResponse, CreateTaxRequest, CreateTaxResponse, CreateUsageRequest, CreditApiService, CreditBalance, CreditNote, CreditNoteApiService, CreditNoteReason, CreditNoteType, CreditType, Currency, CustomerSummary, DateRange, DefaultCustomerConfiguration, DeleteAvalaraConfigurationRequest, DeleteBankAccountRequest, DeleteBillableItemRequest, DeleteContractDocumentRequest, DeleteInvoiceRequest, DeleteLineItemRequest, DeleteLineItemResponse, DeletePaymentCardRequest, DeletePricingPlanProductRequest, DeleteProductRequest, DeleteRecurringInvoiceRequest, DeleteRetailPricingRequest, DeleteTaxRuleRequest, Discount, DiscountApiService, DiscountType, DisplayOption, Dispute, DisputeEvidence, DisputeEvidenceDetails, DisputeStatus, DuplicateInvoiceRequest, DuplicateInvoiceResponse, EntityType, ExpireBillableItemRequest, ExpireDiscountRequest, ExportResponse, ExportSubscriptionsRequest, Fee, FeeAmountType, FeeType, FieldMask, File, Frequency, GenerateBillableItemsCSVRequest, GenerateBillableItemsCSVResponse, GenerateVendorReportRequest, GenerateVendorReportResponse, GetAvalaraConfigurationRequest, GetAvalaraConfigurationResponse, GetBalanceRequest, GetBalanceResponse, GetBillableItemRequest, GetBillableItemResponse, GetContractRequest, GetContractResponse, GetCreditNoteRequest, GetCreditNoteResponse, GetInvoiceRequest, GetInvoiceResponse, GetInvoiceWithCalculatedTaxesRequest, GetInvoiceWithCalculatedTaxesResponse, GetMerchantRequest, GetMerchantResponse, GetMerchantServicesReportRun, GetMerchantWholesaleCurrencyRequest, GetMerchantWholesaleCurrencyResponse, GetMultiBundleRequest, GetMultiBundleResponse, GetMultiBundleResponseBundlesEntry, GetMultiBundleRetailPricingRequest, GetMultiBundleRetailPricingResponse, GetMultiBundleRetailPricingResponsePricesEntry, GetMultiContractsRequest, GetMultiContractsResponse, GetMultiContractsResponseContractsEntry, GetMultiCreditNoteRequest, GetMultiCreditNoteResponse, GetMultiCustomerSummariesRequest, GetMultiCustomerSummariesResponse, GetMultiPricingPlanProductRequest, GetMultiPricingPlanProductResponse, GetMultiPricingPlanRequest, GetMultiPricingPlanResponse, GetMultiProductPricingRequest, GetMultiProductPricingResponse, GetMultiProductPricingResponseProductPricesEntry, GetMultiProductRequest, GetMultiProductResponse, GetMultiProductResponseProductsEntry, GetMultiRetailConfigurationsRequest, GetMultiRetailConfigurationsResponse, GetMultiRetailConfigurationsResponseRetailConfigurationsEntry, GetMultiRetailPricingRequest, GetMultiRetailPricingResponse, GetMultiRetailPricingResponseProductPricesEntry, GetMultiRetailSubscriptionGroupRequest, GetMultiRetailSubscriptionGroupResponse, GetMultiSubscriptionRelationshipsRequest, GetMultiSubscriptionRelationshipsResponse, GetMultiSubscriptionsRequest, GetMultiSubscriptionsRequestKey, GetMultiSubscriptionsResponse, GetMultiTaxRequest, GetMultiTaxResponse, GetMultiVendorSplitRequest, GetMultiVendorSplitResponse, GetMultiWholesaleCostRequest, GetMultiWholesaleCostResponse, GetNextRetailInvoiceSequenceRequest, GetNextRetailInvoiceSequenceResponse, GetOutstandingBalanceRequest, GetOutstandingBalanceResponse, GetPayoutSummaryRequest, GetPayoutSummaryResponse, GetPricingPlanProductRequest, GetPricingPlanProductResponse, GetProductSummariesTotalRequest, GetProductSummariesTotalResponse, GetPurchaseCostRequest, GetPurchaseCostResponse, GetRecurringInvoiceRequest, GetRetailAccountBalanceRequest, GetRetailAccountBalanceResponse, GetRetailBalanceRequest, GetRetailBalanceResponse, GetRetailCustomerConfigurationRequest, GetRetailCustomerConfigurationResponse, GetRetailDisputeRequest, GetRetailDisputeResponse, GetRetailPaymentProviderRequest, GetRetailPaymentProviderResponse, GetRetailPaymentRequest, GetRetailPaymentResponse, GetRetailPayoutRequest, GetRetailPayoutResponse, GetRevenueStatsRequest, GetRevenueStatsResponse, GetSalesInvoiceRequest, GetSalesInvoiceResponse, GetStatisticsRequest, GetStatisticsResponse, GetTaxProviderRequest, GetTaxProviderResponse, GetTaxRuleRequest, GetTaxRuleResponse, GetUpcomingInvoicePreviewRequest, GetUpcomingInvoicePreviewResponse, GetVendorSplitRequest, GetVendorSplitResponse, GetWholesaleComparisonRequest, GetWholesaleComparisonRequestGetWholesaleComparisonFilters, GetWholesaleComparisonResponse, GetWholesaleComparisonResponseGetWholesaleComparisonResult, GetWholesaleProviderPublicKeyRequest, GetWholesaleProviderPublicKeyResponse, HostService, Interval, Invoice, InvoiceApiService, InvoiceCustomerAddress, InvoiceItem, InvoiceItemRetailSubscriptionGroup, InvoiceStatus, Item, ItemDisplayGroup, LastPaymentStatus, LineItem, ListBankAccountsRequest, ListBankAccountsResponse, ListBillableItemsRequest, ListBillableItemsRequestFilters, ListBillableItemsResponse, ListBundlesRequest, ListBundlesRequestFilters, ListBundlesResponse, ListContractDocumentsRequest, ListContractDocumentsRequestFilters, ListContractDocumentsResponse, ListContractsRequest, ListContractsResponse, ListCreditNotesRequest, ListCreditNotesRequestFilters, ListCreditNotesResponse, ListDiscountsRequest, ListDiscountsRequestFilters, ListDiscountsResponse, ListInvoicesRequest, ListInvoicesRequestFilters, ListInvoicesRequestFiltersDateFilter, ListInvoicesRequestFiltersDateFilterDateField, ListInvoicesResponse, ListMerchantBillingReportsRequest, ListMerchantBillingReportsResponse, ListPaymentCardsRequest, ListPaymentCardsResponse, ListPaymentMethodsRequest, ListPaymentMethodsResponse, ListPaymentRequest, ListPaymentRequestListPaymentFilters, ListPaymentResponse, ListPayoutsRequest, ListPayoutsRequestFilters, ListPayoutsResponse, ListPricingPlanProductsRequest, ListPricingPlanProductsRequestListPricingPlanProductsFilters, ListPricingPlanProductsResponse, ListProductSummariesRequest, ListProductSummariesResponse, ListProductsRequest, ListProductsRequestListProductsFilters, ListProductsResponse, ListPurchaseItemsRequest, ListPurchaseItemsRequestListPurchaseItemsFilters, ListPurchaseItemsResponse, ListPurchaseRequest, ListPurchaseRequestListPurchaseBillingStrategyFilter, ListPurchaseRequestListPurchaseFilters, ListPurchaseRequestState, ListPurchaseResponse, ListRecurringInvoicesFilters, ListRecurringInvoicesFiltersDateFilter, ListRecurringInvoicesFiltersDetailedInterval, ListRecurringInvoicesRequest, ListRecurringInvoicesResponse, ListRefundsRequest, ListRefundsResponse, ListRetailDisputesRequest, ListRetailDisputesRequestListRetailDisputesFilters, ListRetailDisputesResponse, ListRetailPaymentsRequest, ListRetailPaymentsRequestListRetailPaymentsFilters, ListRetailPaymentsResponse, ListRetailPayoutsRequest, ListRetailPayoutsResponse, ListRetailSubscriptionGroupsForCustomerRequest, ListRetailSubscriptionGroupsForCustomerResponse, ListRetailTransactionsRequest, ListRetailTransactionsRequestListRetailTransactionsFilters, ListRetailTransactionsResponse, ListSalesCreditNoteRequest, ListSalesCreditNoteRequestListSalesCreditNoteFilters, ListSalesCreditNoteResponse, ListSalesInvoiceRequest, ListSalesInvoiceRequestListSalesInvoiceFilters, ListSalesInvoiceResponse, ListSubscriptionRelationshipsRequest, ListSubscriptionRelationshipsRequestFilters, ListSubscriptionRelationshipsResponse, ListSubscriptionRetentionByGroupResponse, ListSubscriptionRetentionByGroupResponseSubscriptionRetentionByGroup, ListSubscriptionRetentionBySKUResponse, ListSubscriptionRetentionRequest, ListSubscriptionRetentionRequestFilters, ListSubscriptionsRequest, ListSubscriptionsRequestFilters, ListSubscriptionsResponse, ListTaxRequest, ListTaxRequestFilters, ListTaxResponse, ListTaxRulesRequest, ListTaxRulesRequestFilters, ListTaxRulesResponse, MCPOptions, MarkPurchaseAsPaidRequest, Merchant, MerchantApiService, MerchantReport, MerchantReportStatus, MerchantServicesReportRun, MerchantServicesReportRunStatus, MerchantServicesReportRunType, MerchantType, MeteredComponent, Month, Note, Origin, PagedRequestOptions, PagedResponseMetadata, PauseDunningRequest, PayInvoiceRequest, Payment, PaymentACHDebit, PaymentACSSDebit, PaymentAllocationType, PaymentApiService, PaymentCard, PaymentCardCARD_TYPE, PaymentCardFUNDING_TYPE, PaymentErrorCode, PaymentFacilitatorType, PaymentIntent, PaymentIntentStatus, PaymentLinkItem, PaymentMethod, PaymentMethodApiService, PaymentMethodType, PaymentPaymentAllocation, PaymentProcessor, PaymentSource, PaymentStatus, PaymentStatuses, Payout, PayoutStatus, PayoutType, PostSalesInvoiceRequest, PrepareRetailPaymentRequest, PrepareRetailPaymentRequestOrder, PrepareRetailPaymentResponse, Pricing, PricingApiService, PricingPlan, PricingPlanProduct, PricingPlanProductPricing, PricingPlanProductPricingEntry, PricingRule, PricingRuleType, ProcessingFailureCode, Product, ProductApiService, ProductPrices, ProductPricing, ProductPricingRule, ProductPricingType, ProductSummary, ProductSummaryApiService, ProductSummaryBillingStrategy, ProductSummaryDiscount, ProductSummaryDiscountDiscountType, ProductSummaryProductType, ProductType, Purchase, PurchaseApiService, PurchaseItem, PurchaseStatus, RSGSource, RSGSourceType, ReconcilePayoutRequest, ReconcilePayoutResponse, RecurringInvoice, RecurringInvoiceApiService, RecurringInvoiceBundle, RecurringInvoiceCustomerAddress, RecurringInvoiceItem, RecurringInvoiceLineItem, RecurringInvoiceStatus, ReferenceType, Refund, RefundApiService, RefundReason, RefundRetailPaymentRequest, RefundRetailPaymentResponse, RefundStatus, RelationshipType, RemoveBundleRequest, RemoveBundleResponse, RenewalState, ReplaceSubscriptionPresetsRequest, ReplaceSubscriptionPresetsResponse, ReplaceSubscriptionRelationshipsRequest, ReplaceSubscriptionRelationshipsResponse, ReplaceTaxRuleRequest, ReplaceTaxRuleResponse, ResetContractPricingRequest, ResetPaymentFacilitatorRequest, ResumeDunningRequest, RetailConfiguration, RetailCustomerConfiguration, RetailCustomerConfigurationApiService, RetailPayment, RetailPaymentACHDetails, RetailPaymentACSSDetails, RetailPaymentCardDetails, RetailPaymentPaymentMethodDetailsType, RetailPaymentReferenceType, RetailPaymentsEnabledRequest, RetailPaymentsEnabledResponse, RetailPayout, RetailRefund, RetailRefundFailureReason, RetailRefundReason, RetailRefundStatus, RetailStatusRequest, RetailStatusResponse, RetailStatusResponseVerificationError, RetailStatusResponseVerificationRequirements, RetailSubscriptionGroup, RetailSubscriptionGroupApiService, RetailTransaction, RetailTransactionType, RetentionMetrics, RetryPurchaseRequest, ReverseSubscriptionRequest, SalesCreditNote, SalesCreditNoteApiService, SalesCreditNoteStatus, SalesInvoice, SalesInvoiceApiService, SalesInvoiceStatus, SalesInvoiceType, SearchMerchantsRequest, SearchMerchantsRequestSortBy, SearchMerchantsResponse, SendCreditNoteRequest, SendInvoiceRequest, SendSalesInvoiceEmailRequest, SendSalesInvoiceReceiptEmailRequest, SetAutoBillableRequest, SetAutoChargeInvoicesRequest, SetAutoPostInvoicesRequest, SetDefaultBankAccountRequest, SetDefaultPaymentCardRequest, SetDefaultPaymentMethodRequest, SetHasAlternativePaymentMethodRequest, SetIncludeInFinancialRecordsRequest, SetNextRetailInvoiceSequenceRequest, SetRenewalStartRequest, SetWholesaleProductStrategyRequest, SetWholesaleProductVolumeCommitmentRequest, SortDirection, Source, StartRevRecTemplateBackfillRequest, StopDunningRequest, SubmitEvidenceRequest, SubmitEvidenceRequestDisputeEvidence, SubscribeValidation, SubscribeValidationStatus, Subscription, SubscriptionPreset, SubscriptionProjectionFilter, SubscriptionRelationship, SubscriptionRelationshipApiService, SubscriptionStatus, TaxApiService, TaxProviderType, TaxRate, TaxRule, TaxRuleCustomer, TaxRuleCustomerCustomerAddress, TaxRuleEntityType, TaxRuleProduct, TaxRuleProductProductIdentifier, TaxRuleTaxRuleEntity, TaxRuleType, TickComponentUsageRequest, UnexpireBillableItemRequest, UpdateAvalaraConfigurationRequest, UpdateAvalaraConfigurationResponse, UpdateBundleRequest, UpdateBundleResponse, UpdateContractRequest, UpdateContractRequestMutation, UpdateContractResponse, UpdateContractSubscriptionRequest, UpdateDefaultTaxRatesRequest, UpdateDefaultTaxRatesResponse, UpdateDiscountRequest, UpdateInvoiceRequest, UpdateInvoiceResponse, UpdateLineItemRequest, UpdateLineItemResponse, UpdateMerchantRequest, UpdateMerchantRequestIncludeInFinancialRecords, UpdatePaymentCardRequest, UpdatePricingPlanProductRequest, UpdatePricingPlanProductRequestPricingEntry, UpdatePricingPlanProductResponse, UpdatePricingPlanRequest, UpdatePricingPlanResponse, UpdateProductRequest, UpdateRecurringInvoiceRequest, UpdateRetailPaymentProviderRequest, UpdateRetailSubscriptionGroupRequest, UpdateRetailSubscriptionGroupResponse, UpdateSubscriptionRequest, UpdateSubscriptionRequestSubscription, UpdateSubscriptionResponse, UpdateTaxRequest, UpsertBundleRequest, UpsertDefaultRetailCustomerConfigurationRequest, UpsertRetailConfigurationRequest, UpsertRetailCustomerConfigurationRequest, UpsertRetailPricingRequest, UpsertRetailPricingRequestPricingEntry, UpsertVendorSplitRequest, UpsertVendorSplitResponse, UpsertWholesalePricingRequest, ValidateResponse, VendorApiService, VendorSplit, VendorSplitApiService, VoidInvoiceRequest, VoidPurchaseRequest, WholesaleCostItemRequest, usdConversionRate };
|
|
19664
|
+
export { Access, AccountBalance, AddBundleRequest, AddBundleResponse, AddCreditRequest, AddLineItemRequest, AddLineItemResponse, Adjustment, AlignmentSubscription, AppliedBundle, AppliedBundleItem, AppliedCredit, AppliedCreditNote, AppliedDiscount, AppliedFee, AppliedReferenceType, AppliedTaxRate, AppliedTo, ArchiveTaxRequest, AvalaraConfiguration, AvalaraConfigurationApiService, Balance, BalanceAmount, BankAccount, BankReconciliationApiService, BillItemRequest, BillMultipleItemsRequest, BillMultipleItemsResponse, BillableItem, BillableItemCustomerAddress, BillableItemRetailSubscriptionGroup, BillingApiService, BillingStrategy, BulkReplaceTaxRulesRequest, BulkReplaceTaxRulesResponse, Bundle, BundleApiService, BundleItem, BundleItemPrice, BundlePricing, BundlePricingPriceAndFrequency, CalculateCreditNoteRequest, CalculateCreditNoteResponse, CalculateLineItemTaxesRequest, CalculateLineItemTaxesRequestLineItem, CalculateLineItemTaxesResponse, CalculateLineItemTaxesResponseLineItemTaxes, CalculateTaxRequest, CalculateTaxResponse, CanBillItemRequest, CanCreateSubscriptionsRequest, CanCreateSubscriptionsRequestSkusEntry, CanCreateSubscriptionsRequestSubscriptionItem, CanCreateSubscriptionsResponse, CancelRetailBillingRequest, CardType, ChangeCustomUnitPriceRequest, ChangeFrequencyRequest, ChangeRenewalDateRequest, ChargeInvoiceRequest, ChargeSalesInvoiceRequest, CloseRetailDisputeRequest, CollectionMethod, Commitment, ComponentPricing, ConfigureRetailPaymentProviderRequest, ConfigureRetailPaymentProviderResponse, ConfirmRetailPaymentRequest, ConnectStripeAccountRequest, ConnectStripeAccountResponse, Consumer, Contract, ContractApiService, ContractDocument, ContractDocumentApiService, ContractSubscriptionStatus, CreateAvalaraConfigurationRequest, CreateAvalaraConfigurationResponse, CreateContractRequest, CreateContractResponse, CreateCreditNoteRequest, CreateCreditNoteResponse, CreateDiscountRequest, CreateDiscountResponse, CreateInvoiceRequest, CreateInvoiceResponse, CreateMerchantRequest, CreateMerchantRequestIncludeInFinancialRecords, CreateMerchantServicesReportRun, CreateMeteredComponentRequest, CreatePaymentCardRequest, CreatePaymentLinkRequest, CreatePaymentLinkResponse, CreatePricingPlanProductRequest, CreatePricingPlanProductRequestPricingEntry, CreatePricingPlanProductResponse, CreatePricingPlanRequest, CreatePricingPlanResponse, CreateProductRequest, CreateRefundRequest, CreateRetailSubscriptionGroupRequest, CreateRetailSubscriptionGroupResponse, CreateSalesCreditNoteRequest, CreateStripeExternalAccountRequest, CreateSubscriptionRequest, CreateSubscriptionResponse, CreateSubscriptionsRequest, CreateSubscriptionsResponse, CreateTaxRequest, CreateTaxResponse, CreateUsageRequest, CreditApiService, CreditBalance, CreditNote, CreditNoteApiService, CreditNoteReason, CreditNoteType, CreditType, Currency, CustomerSummary, DateRange, DefaultCustomerConfiguration, DeleteAvalaraConfigurationRequest, DeleteBankAccountRequest, DeleteBillableItemRequest, DeleteContractDocumentRequest, DeleteInvoiceRequest, DeleteLineItemRequest, DeleteLineItemResponse, DeletePaymentCardRequest, DeletePricingPlanProductRequest, DeleteProductRequest, DeleteRecurringInvoiceRequest, DeleteRetailPricingRequest, DeleteTaxRuleRequest, Discount, DiscountApiService, DiscountType, DisplayOption, Dispute, DisputeEvidence, DisputeEvidenceDetails, DisputeStatus, DuplicateInvoiceRequest, DuplicateInvoiceResponse, EntityType, ExpireBillableItemRequest, ExpireDiscountRequest, ExportResponse, ExportSubscriptionsRequest, Fee, FeeAmountType, FeeType, FieldMask, File, Frequency, GenerateBillableItemsCSVRequest, GenerateBillableItemsCSVResponse, GenerateVendorReportRequest, GenerateVendorReportResponse, GetAvalaraConfigurationRequest, GetAvalaraConfigurationResponse, GetBalanceRequest, GetBalanceResponse, GetBillableItemRequest, GetBillableItemResponse, GetContractRequest, GetContractResponse, GetCreditNoteRequest, GetCreditNoteResponse, GetInvoiceRequest, GetInvoiceResponse, GetInvoiceWithCalculatedTaxesRequest, GetInvoiceWithCalculatedTaxesResponse, GetMerchantRequest, GetMerchantResponse, GetMerchantServicesReportRun, GetMerchantWholesaleCurrencyRequest, GetMerchantWholesaleCurrencyResponse, GetMultiBundleRequest, GetMultiBundleResponse, GetMultiBundleResponseBundlesEntry, GetMultiBundleRetailPricingRequest, GetMultiBundleRetailPricingResponse, GetMultiBundleRetailPricingResponsePricesEntry, GetMultiContractsRequest, GetMultiContractsResponse, GetMultiContractsResponseContractsEntry, GetMultiCreditNoteRequest, GetMultiCreditNoteResponse, GetMultiCustomerSummariesRequest, GetMultiCustomerSummariesResponse, GetMultiPricingPlanProductRequest, GetMultiPricingPlanProductResponse, GetMultiPricingPlanRequest, GetMultiPricingPlanResponse, GetMultiProductPricingRequest, GetMultiProductPricingResponse, GetMultiProductPricingResponseProductPricesEntry, GetMultiProductRequest, GetMultiProductResponse, GetMultiProductResponseProductsEntry, GetMultiRetailConfigurationsRequest, GetMultiRetailConfigurationsResponse, GetMultiRetailConfigurationsResponseRetailConfigurationsEntry, GetMultiRetailPricingRequest, GetMultiRetailPricingResponse, GetMultiRetailPricingResponseProductPricesEntry, GetMultiRetailSubscriptionGroupRequest, GetMultiRetailSubscriptionGroupResponse, GetMultiSubscriptionRelationshipsRequest, GetMultiSubscriptionRelationshipsResponse, GetMultiSubscriptionsRequest, GetMultiSubscriptionsRequestKey, GetMultiSubscriptionsResponse, GetMultiTaxRequest, GetMultiTaxResponse, GetMultiVendorSplitRequest, GetMultiVendorSplitResponse, GetMultiWholesaleCostRequest, GetMultiWholesaleCostResponse, GetNextRetailInvoiceSequenceRequest, GetNextRetailInvoiceSequenceResponse, GetOutstandingBalanceRequest, GetOutstandingBalanceResponse, GetPayoutSummaryRequest, GetPayoutSummaryResponse, GetPricingPlanProductRequest, GetPricingPlanProductResponse, GetProductSummariesTotalRequest, GetProductSummariesTotalResponse, GetPurchaseCostRequest, GetPurchaseCostResponse, GetRecurringInvoiceRequest, GetRetailAccountBalanceRequest, GetRetailAccountBalanceResponse, GetRetailBalanceRequest, GetRetailBalanceResponse, GetRetailCustomerConfigurationRequest, GetRetailCustomerConfigurationResponse, GetRetailDisputeRequest, GetRetailDisputeResponse, GetRetailPaymentProviderRequest, GetRetailPaymentProviderResponse, GetRetailPaymentRequest, GetRetailPaymentResponse, GetRetailPayoutRequest, GetRetailPayoutResponse, GetRevenueStatsRequest, GetRevenueStatsResponse, GetSalesInvoiceRequest, GetSalesInvoiceResponse, GetStatisticsRequest, GetStatisticsResponse, GetTaxProviderRequest, GetTaxProviderResponse, GetTaxRuleRequest, GetTaxRuleResponse, GetUpcomingInvoicePreviewRequest, GetUpcomingInvoicePreviewResponse, GetVendorSplitRequest, GetVendorSplitResponse, GetWholesaleComparisonRequest, GetWholesaleComparisonRequestGetWholesaleComparisonFilters, GetWholesaleComparisonResponse, GetWholesaleComparisonResponseGetWholesaleComparisonResult, GetWholesaleProviderPublicKeyRequest, GetWholesaleProviderPublicKeyResponse, HostService, Interval, Invoice, InvoiceApiService, InvoiceCustomerAddress, InvoiceItem, InvoiceItemRetailSubscriptionGroup, InvoiceStatus, Item, ItemDisplayGroup, LastPaymentStatus, LineItem, ListBankAccountsRequest, ListBankAccountsResponse, ListBillableItemsRequest, ListBillableItemsRequestFilters, ListBillableItemsResponse, ListBundlesRequest, ListBundlesRequestFilters, ListBundlesResponse, ListContractDocumentsRequest, ListContractDocumentsRequestFilters, ListContractDocumentsResponse, ListContractsRequest, ListContractsResponse, ListCreditNotesRequest, ListCreditNotesRequestFilters, ListCreditNotesResponse, ListDiscountsRequest, ListDiscountsRequestFilters, ListDiscountsResponse, ListInvoicesRequest, ListInvoicesRequestFilters, ListInvoicesRequestFiltersDateFilter, ListInvoicesRequestFiltersDateFilterDateField, ListInvoicesResponse, ListMerchantBillingReportsRequest, ListMerchantBillingReportsResponse, ListPaymentCardsRequest, ListPaymentCardsResponse, ListPaymentMethodsRequest, ListPaymentMethodsResponse, ListPaymentRequest, ListPaymentRequestListPaymentFilters, ListPaymentResponse, ListPayoutsRequest, ListPayoutsRequestFilters, ListPayoutsResponse, ListPricingPlanProductsRequest, ListPricingPlanProductsRequestListPricingPlanProductsFilters, ListPricingPlanProductsResponse, ListProductSummariesRequest, ListProductSummariesResponse, ListProductsRequest, ListProductsRequestListProductsFilters, ListProductsResponse, ListPurchaseItemsRequest, ListPurchaseItemsRequestListPurchaseItemsFilters, ListPurchaseItemsResponse, ListPurchaseRequest, ListPurchaseRequestListPurchaseBillingStrategyFilter, ListPurchaseRequestListPurchaseFilters, ListPurchaseRequestState, ListPurchaseResponse, ListRecurringInvoicesFilters, ListRecurringInvoicesFiltersDateFilter, ListRecurringInvoicesFiltersDetailedInterval, ListRecurringInvoicesRequest, ListRecurringInvoicesResponse, ListRefundsRequest, ListRefundsResponse, ListRetailDisputesRequest, ListRetailDisputesRequestListRetailDisputesFilters, ListRetailDisputesResponse, ListRetailPaymentsRequest, ListRetailPaymentsRequestListRetailPaymentsFilters, ListRetailPaymentsResponse, ListRetailPayoutsRequest, ListRetailPayoutsResponse, ListRetailSubscriptionGroupsForCustomerRequest, ListRetailSubscriptionGroupsForCustomerResponse, ListRetailTransactionsRequest, ListRetailTransactionsRequestListRetailTransactionsFilters, ListRetailTransactionsResponse, ListSalesCreditNoteRequest, ListSalesCreditNoteRequestListSalesCreditNoteFilters, ListSalesCreditNoteResponse, ListSalesInvoiceRequest, ListSalesInvoiceRequestListSalesInvoiceFilters, ListSalesInvoiceResponse, ListSubscriptionRelationshipsRequest, ListSubscriptionRelationshipsRequestFilters, ListSubscriptionRelationshipsResponse, ListSubscriptionRetentionByGroupResponse, ListSubscriptionRetentionByGroupResponseSubscriptionRetentionByGroup, ListSubscriptionRetentionBySKUResponse, ListSubscriptionRetentionRequest, ListSubscriptionRetentionRequestFilters, ListSubscriptionsRequest, ListSubscriptionsRequestFilters, ListSubscriptionsResponse, ListTaxRequest, ListTaxRequestFilters, ListTaxResponse, ListTaxRulesRequest, ListTaxRulesRequestFilters, ListTaxRulesResponse, ListWholesaleTaxRulesRequest, ListWholesaleTaxRulesResponse, MCPOptions, MarkPurchaseAsPaidRequest, Merchant, MerchantApiService, MerchantReport, MerchantReportStatus, MerchantServicesReportRun, MerchantServicesReportRunStatus, MerchantServicesReportRunType, MerchantType, MeteredComponent, Month, Note, Origin, PagedRequestOptions, PagedResponseMetadata, PauseDunningRequest, PayInvoiceRequest, Payment, PaymentACHDebit, PaymentACSSDebit, PaymentAllocationType, PaymentApiService, PaymentCard, PaymentCardCARD_TYPE, PaymentCardFUNDING_TYPE, PaymentErrorCode, PaymentFacilitatorType, PaymentIntent, PaymentIntentStatus, PaymentLinkItem, PaymentMethod, PaymentMethodApiService, PaymentMethodType, PaymentPaymentAllocation, PaymentProcessor, PaymentSource, PaymentStatus, PaymentStatuses, Payout, PayoutStatus, PayoutType, PostSalesInvoiceRequest, PrepareRetailPaymentRequest, PrepareRetailPaymentRequestOrder, PrepareRetailPaymentResponse, Pricing, PricingApiService, PricingPlan, PricingPlanProduct, PricingPlanProductPricing, PricingPlanProductPricingEntry, PricingRule, PricingRuleType, ProcessingFailureCode, Product, ProductApiService, ProductPrices, ProductPricing, ProductPricingRule, ProductPricingType, ProductSummary, ProductSummaryApiService, ProductSummaryBillingStrategy, ProductSummaryDiscount, ProductSummaryDiscountDiscountType, ProductSummaryProductType, ProductType, Purchase, PurchaseApiService, PurchaseItem, PurchaseStatus, RSGSource, RSGSourceType, ReconcilePayoutRequest, ReconcilePayoutResponse, RecurringInvoice, RecurringInvoiceApiService, RecurringInvoiceBundle, RecurringInvoiceCustomerAddress, RecurringInvoiceItem, RecurringInvoiceLineItem, RecurringInvoiceStatus, ReferenceType, Refund, RefundApiService, RefundReason, RefundRetailPaymentRequest, RefundRetailPaymentResponse, RefundStatus, RelationshipType, RemoveBundleRequest, RemoveBundleResponse, RenewalState, ReplaceSubscriptionPresetsRequest, ReplaceSubscriptionPresetsResponse, ReplaceSubscriptionRelationshipsRequest, ReplaceSubscriptionRelationshipsResponse, ReplaceTaxRuleRequest, ReplaceTaxRuleResponse, ResetContractPricingRequest, ResetPaymentFacilitatorRequest, ResumeDunningRequest, RetailConfiguration, RetailCustomerConfiguration, RetailCustomerConfigurationApiService, RetailPayment, RetailPaymentACHDetails, RetailPaymentACSSDetails, RetailPaymentCardDetails, RetailPaymentPaymentMethodDetailsType, RetailPaymentReferenceType, RetailPaymentsEnabledRequest, RetailPaymentsEnabledResponse, RetailPayout, RetailRefund, RetailRefundFailureReason, RetailRefundReason, RetailRefundStatus, RetailStatusRequest, RetailStatusResponse, RetailStatusResponseVerificationError, RetailStatusResponseVerificationRequirements, RetailSubscriptionGroup, RetailSubscriptionGroupApiService, RetailTransaction, RetailTransactionType, RetentionMetrics, RetryPurchaseRequest, ReverseSubscriptionRequest, SalesCreditNote, SalesCreditNoteApiService, SalesCreditNoteStatus, SalesInvoice, SalesInvoiceApiService, SalesInvoiceStatus, SalesInvoiceType, SearchMerchantsRequest, SearchMerchantsRequestSortBy, SearchMerchantsResponse, SendCreditNoteRequest, SendInvoiceRequest, SendSalesInvoiceEmailRequest, SendSalesInvoiceReceiptEmailRequest, SetAutoBillableRequest, SetAutoChargeInvoicesRequest, SetAutoPostInvoicesRequest, SetDefaultBankAccountRequest, SetDefaultPaymentCardRequest, SetDefaultPaymentMethodRequest, SetHasAlternativePaymentMethodRequest, SetIncludeInFinancialRecordsRequest, SetNextRetailInvoiceSequenceRequest, SetRenewalStartRequest, SetWholesaleProductStrategyRequest, SetWholesaleProductVolumeCommitmentRequest, SortDirection, Source, StartRevRecTemplateBackfillRequest, StopDunningRequest, SubmitEvidenceRequest, SubmitEvidenceRequestDisputeEvidence, SubscribeValidation, SubscribeValidationStatus, Subscription, SubscriptionPreset, SubscriptionProjectionFilter, SubscriptionRelationship, SubscriptionRelationshipApiService, SubscriptionStatus, TaxApiService, TaxProviderType, TaxRate, TaxRule, TaxRuleCustomer, TaxRuleCustomerCustomerAddress, TaxRuleEntityType, TaxRuleProduct, TaxRuleProductProductIdentifier, TaxRuleTaxRuleEntity, TaxRuleType, TickComponentUsageRequest, UnexpireBillableItemRequest, UpdateAvalaraConfigurationRequest, UpdateAvalaraConfigurationResponse, UpdateBundleRequest, UpdateBundleResponse, UpdateContractRequest, UpdateContractRequestMutation, UpdateContractResponse, UpdateContractSubscriptionRequest, UpdateDefaultTaxRatesRequest, UpdateDefaultTaxRatesResponse, UpdateDiscountRequest, UpdateInvoiceRequest, UpdateInvoiceResponse, UpdateLineItemRequest, UpdateLineItemResponse, UpdateMerchantRequest, UpdateMerchantRequestIncludeInFinancialRecords, UpdatePaymentCardRequest, UpdatePricingPlanProductRequest, UpdatePricingPlanProductRequestPricingEntry, UpdatePricingPlanProductResponse, UpdatePricingPlanRequest, UpdatePricingPlanResponse, UpdateProductRequest, UpdateRecurringInvoiceRequest, UpdateRetailPaymentProviderRequest, UpdateRetailSubscriptionGroupRequest, UpdateRetailSubscriptionGroupResponse, UpdateSubscriptionRequest, UpdateSubscriptionRequestSubscription, UpdateSubscriptionResponse, UpdateTaxRequest, UpsertBundleRequest, UpsertDefaultRetailCustomerConfigurationRequest, UpsertRetailConfigurationRequest, UpsertRetailCustomerConfigurationRequest, UpsertRetailPricingRequest, UpsertRetailPricingRequestPricingEntry, UpsertVendorSplitRequest, UpsertVendorSplitResponse, UpsertWholesalePricingRequest, UpsertWholesaleTaxRuleRequest, UpsertWholesaleTaxRuleResponse, ValidateResponse, VendorApiService, VendorSplit, VendorSplitApiService, VoidInvoiceRequest, VoidPurchaseRequest, WholesaleCostItemRequest, WholesaleTaxRule, WholesaleTaxRuleApiService, usdConversionRate };
|
|
19487
19665
|
//# sourceMappingURL=vendasta-billing.mjs.map
|