@vendasta/billing 15.0.0 → 16.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/esm2022/lib/_internal/index.mjs +1 -2
- package/esm2022/lib/_internal/interfaces/index.mjs +1 -1
- package/esm2022/lib/_internal/interfaces/invoice.interface.mjs +1 -1
- package/esm2022/lib/_internal/objects/index.mjs +1 -2
- package/esm2022/lib/_internal/objects/invoice.mjs +4 -1
- package/fesm2022/vendasta-billing.mjs +221 -396
- package/fesm2022/vendasta-billing.mjs.map +1 -1
- package/lib/_internal/index.d.ts +0 -1
- package/lib/_internal/interfaces/index.d.ts +0 -1
- package/lib/_internal/interfaces/invoice.interface.d.ts +1 -0
- package/lib/_internal/objects/index.d.ts +0 -1
- package/lib/_internal/objects/invoice.d.ts +1 -0
- package/package.json +1 -1
- package/esm2022/lib/_internal/interfaces/wholesale-tax-rule.interface.mjs +0 -2
- package/esm2022/lib/_internal/objects/wholesale-tax-rule.mjs +0 -141
- package/esm2022/lib/_internal/wholesale-tax-rule.api.service.mjs +0 -45
- package/lib/_internal/interfaces/wholesale-tax-rule.interface.d.ts +0 -22
- package/lib/_internal/objects/wholesale-tax-rule.d.ts +0 -39
- package/lib/_internal/wholesale-tax-rule.api.service.d.ts +0 -14
|
@@ -777,7 +777,7 @@ var CreditNoteReason;
|
|
|
777
777
|
// Enums Index.
|
|
778
778
|
// *********************************
|
|
779
779
|
|
|
780
|
-
function enumStringToValue$
|
|
780
|
+
function enumStringToValue$M(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$L(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$K(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$J(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$J(FeeAmountType, proto.amountType);
|
|
977
977
|
}
|
|
978
978
|
if (proto.feeType) {
|
|
979
|
-
m.feeType = enumStringToValue$
|
|
979
|
+
m.feeType = enumStringToValue$J(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$I(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$I(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$I(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$I(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$I(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$I(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$H(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$H(BillingStrategy, proto.strategy);
|
|
1336
1336
|
}
|
|
1337
1337
|
if (proto.pricingType) {
|
|
1338
|
-
m.pricingType = enumStringToValue$
|
|
1338
|
+
m.pricingType = enumStringToValue$H(ProductPricingType, proto.pricingType);
|
|
1339
1339
|
}
|
|
1340
1340
|
if (proto.currency) {
|
|
1341
|
-
m.currency = enumStringToValue$
|
|
1341
|
+
m.currency = enumStringToValue$H(Currency, proto.currency);
|
|
1342
1342
|
}
|
|
1343
1343
|
if (proto.frequency) {
|
|
1344
|
-
m.frequency = enumStringToValue$
|
|
1344
|
+
m.frequency = enumStringToValue$H(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$H(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$G(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$G(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$F(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$F(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$F(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$F(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$F(Frequency, proto.retailFrequency);
|
|
1689
1689
|
}
|
|
1690
1690
|
if (proto.consumer) {
|
|
1691
|
-
m.consumer = enumStringToValue$
|
|
1691
|
+
m.consumer = enumStringToValue$F(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$F(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$F(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$F(Frequency, proto.retailFrequency);
|
|
1984
1984
|
}
|
|
1985
1985
|
if (proto.consumer) {
|
|
1986
|
-
m.consumer = enumStringToValue$
|
|
1986
|
+
m.consumer = enumStringToValue$F(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$F(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$E(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$E(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$E(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$D(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$D(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$D(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$D(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$D(Source, proto.source);
|
|
2531
2531
|
}
|
|
2532
2532
|
if (proto.consumer) {
|
|
2533
|
-
m.consumer = enumStringToValue$
|
|
2533
|
+
m.consumer = enumStringToValue$D(Consumer, proto.consumer);
|
|
2534
2534
|
}
|
|
2535
2535
|
if (proto.billingCycleAnchor) {
|
|
2536
2536
|
m.billingCycleAnchor = new Date(proto.billingCycleAnchor);
|
|
@@ -2809,7 +2809,7 @@ class ExportSubscriptionsRequest {
|
|
|
2809
2809
|
m.filters = ListSubscriptionsRequestFilters.fromProto(proto.filters);
|
|
2810
2810
|
}
|
|
2811
2811
|
if (proto.consumer) {
|
|
2812
|
-
m.consumer = enumStringToValue$
|
|
2812
|
+
m.consumer = enumStringToValue$D(Consumer, proto.consumer);
|
|
2813
2813
|
}
|
|
2814
2814
|
return m;
|
|
2815
2815
|
}
|
|
@@ -2861,7 +2861,7 @@ class ListSubscriptionsRequestFilters {
|
|
|
2861
2861
|
let m = new ListSubscriptionsRequestFilters();
|
|
2862
2862
|
m = Object.assign(m, proto);
|
|
2863
2863
|
if (proto.status) {
|
|
2864
|
-
m.status = enumStringToValue$
|
|
2864
|
+
m.status = enumStringToValue$D(SubscriptionStatus, proto.status);
|
|
2865
2865
|
}
|
|
2866
2866
|
if (proto.expiredDateGte) {
|
|
2867
2867
|
m.expiredDateGte = new Date(proto.expiredDateGte);
|
|
@@ -2870,7 +2870,7 @@ class ListSubscriptionsRequestFilters {
|
|
|
2870
2870
|
m.expiredDateLte = new Date(proto.expiredDateLte);
|
|
2871
2871
|
}
|
|
2872
2872
|
if (proto.frequencies) {
|
|
2873
|
-
m.frequencies = proto.frequencies.map((v) => enumStringToValue$
|
|
2873
|
+
m.frequencies = proto.frequencies.map((v) => enumStringToValue$D(Frequency, v));
|
|
2874
2874
|
}
|
|
2875
2875
|
return m;
|
|
2876
2876
|
}
|
|
@@ -3216,7 +3216,7 @@ class BillableItemRetailSubscriptionGroup {
|
|
|
3216
3216
|
let m = new BillableItemRetailSubscriptionGroup();
|
|
3217
3217
|
m = Object.assign(m, proto);
|
|
3218
3218
|
if (proto.displayOption) {
|
|
3219
|
-
m.displayOption = enumStringToValue$
|
|
3219
|
+
m.displayOption = enumStringToValue$D(DisplayOption, proto.displayOption);
|
|
3220
3220
|
}
|
|
3221
3221
|
return m;
|
|
3222
3222
|
}
|
|
@@ -3377,7 +3377,7 @@ class UpdateSubscriptionResponse {
|
|
|
3377
3377
|
}
|
|
3378
3378
|
}
|
|
3379
3379
|
|
|
3380
|
-
function enumStringToValue$
|
|
3380
|
+
function enumStringToValue$C(enumRef, value) {
|
|
3381
3381
|
if (typeof value === 'number') {
|
|
3382
3382
|
return value;
|
|
3383
3383
|
}
|
|
@@ -3388,7 +3388,7 @@ class AppliedDiscount {
|
|
|
3388
3388
|
let m = new AppliedDiscount();
|
|
3389
3389
|
m = Object.assign(m, proto);
|
|
3390
3390
|
if (proto.type) {
|
|
3391
|
-
m.type = enumStringToValue$
|
|
3391
|
+
m.type = enumStringToValue$C(DiscountType, proto.type);
|
|
3392
3392
|
}
|
|
3393
3393
|
if (proto.value) {
|
|
3394
3394
|
m.value = parseInt(proto.value, 10);
|
|
@@ -3425,7 +3425,7 @@ class AppliedDiscount {
|
|
|
3425
3425
|
}
|
|
3426
3426
|
}
|
|
3427
3427
|
|
|
3428
|
-
function enumStringToValue$
|
|
3428
|
+
function enumStringToValue$B(enumRef, value) {
|
|
3429
3429
|
if (typeof value === 'number') {
|
|
3430
3430
|
return value;
|
|
3431
3431
|
}
|
|
@@ -3483,7 +3483,7 @@ class BundleItem {
|
|
|
3483
3483
|
let m = new BundleItem();
|
|
3484
3484
|
m = Object.assign(m, proto);
|
|
3485
3485
|
if (proto.discountType) {
|
|
3486
|
-
m.discountType = enumStringToValue$
|
|
3486
|
+
m.discountType = enumStringToValue$B(DiscountType, proto.discountType);
|
|
3487
3487
|
}
|
|
3488
3488
|
if (proto.discountAmount) {
|
|
3489
3489
|
m.discountAmount = parseInt(proto.discountAmount, 10);
|
|
@@ -3741,7 +3741,7 @@ class BundlePricingPriceAndFrequency {
|
|
|
3741
3741
|
let m = new BundlePricingPriceAndFrequency();
|
|
3742
3742
|
m = Object.assign(m, proto);
|
|
3743
3743
|
if (proto.frequency) {
|
|
3744
|
-
m.frequency = enumStringToValue$
|
|
3744
|
+
m.frequency = enumStringToValue$B(Frequency, proto.frequency);
|
|
3745
3745
|
}
|
|
3746
3746
|
if (proto.effectivePrice) {
|
|
3747
3747
|
m.effectivePrice = parseInt(proto.effectivePrice, 10);
|
|
@@ -3813,7 +3813,7 @@ class UpsertBundleRequest {
|
|
|
3813
3813
|
}
|
|
3814
3814
|
}
|
|
3815
3815
|
|
|
3816
|
-
function enumStringToValue$
|
|
3816
|
+
function enumStringToValue$A(enumRef, value) {
|
|
3817
3817
|
if (typeof value === 'number') {
|
|
3818
3818
|
return value;
|
|
3819
3819
|
}
|
|
@@ -3830,7 +3830,7 @@ class Contract {
|
|
|
3830
3830
|
m.created = new Date(proto.created);
|
|
3831
3831
|
}
|
|
3832
3832
|
if (proto.currency) {
|
|
3833
|
-
m.currency = enumStringToValue$
|
|
3833
|
+
m.currency = enumStringToValue$A(Currency, proto.currency);
|
|
3834
3834
|
}
|
|
3835
3835
|
if (proto.signed) {
|
|
3836
3836
|
m.signed = new Date(proto.signed);
|
|
@@ -3851,7 +3851,7 @@ class Contract {
|
|
|
3851
3851
|
m.end = new Date(proto.end);
|
|
3852
3852
|
}
|
|
3853
3853
|
if (proto.subscriptionUpdateStatus) {
|
|
3854
|
-
m.subscriptionUpdateStatus = enumStringToValue$
|
|
3854
|
+
m.subscriptionUpdateStatus = enumStringToValue$A(ContractSubscriptionStatus, proto.subscriptionUpdateStatus);
|
|
3855
3855
|
}
|
|
3856
3856
|
return m;
|
|
3857
3857
|
}
|
|
@@ -4051,7 +4051,7 @@ class GetMerchantWholesaleCurrencyResponse {
|
|
|
4051
4051
|
let m = new GetMerchantWholesaleCurrencyResponse();
|
|
4052
4052
|
m = Object.assign(m, proto);
|
|
4053
4053
|
if (proto.currency) {
|
|
4054
|
-
m.currency = enumStringToValue$
|
|
4054
|
+
m.currency = enumStringToValue$A(Currency, proto.currency);
|
|
4055
4055
|
}
|
|
4056
4056
|
return m;
|
|
4057
4057
|
}
|
|
@@ -4306,7 +4306,7 @@ class UpdateContractSubscriptionRequest {
|
|
|
4306
4306
|
let m = new UpdateContractSubscriptionRequest();
|
|
4307
4307
|
m = Object.assign(m, proto);
|
|
4308
4308
|
if (proto.frequency) {
|
|
4309
|
-
m.frequency = enumStringToValue$
|
|
4309
|
+
m.frequency = enumStringToValue$A(Frequency, proto.frequency);
|
|
4310
4310
|
}
|
|
4311
4311
|
return m;
|
|
4312
4312
|
}
|
|
@@ -4331,7 +4331,7 @@ class UpdateContractSubscriptionRequest {
|
|
|
4331
4331
|
}
|
|
4332
4332
|
}
|
|
4333
4333
|
|
|
4334
|
-
function enumStringToValue$
|
|
4334
|
+
function enumStringToValue$z(enumRef, value) {
|
|
4335
4335
|
if (typeof value === 'number') {
|
|
4336
4336
|
return value;
|
|
4337
4337
|
}
|
|
@@ -4348,7 +4348,7 @@ class CustomerSummary {
|
|
|
4348
4348
|
m.purchaseItemTotal = parseInt(proto.purchaseItemTotal, 10);
|
|
4349
4349
|
}
|
|
4350
4350
|
if (proto.currency) {
|
|
4351
|
-
m.currency = enumStringToValue$
|
|
4351
|
+
m.currency = enumStringToValue$z(Currency, proto.currency);
|
|
4352
4352
|
}
|
|
4353
4353
|
return m;
|
|
4354
4354
|
}
|
|
@@ -4434,7 +4434,7 @@ class GetMultiCustomerSummariesResponse {
|
|
|
4434
4434
|
}
|
|
4435
4435
|
}
|
|
4436
4436
|
|
|
4437
|
-
function enumStringToValue$
|
|
4437
|
+
function enumStringToValue$y(enumRef, value) {
|
|
4438
4438
|
if (typeof value === 'number') {
|
|
4439
4439
|
return value;
|
|
4440
4440
|
}
|
|
@@ -4594,7 +4594,7 @@ class SetDefaultBankAccountRequest {
|
|
|
4594
4594
|
}
|
|
4595
4595
|
}
|
|
4596
4596
|
|
|
4597
|
-
function enumStringToValue$
|
|
4597
|
+
function enumStringToValue$x(enumRef, value) {
|
|
4598
4598
|
if (typeof value === 'number') {
|
|
4599
4599
|
return value;
|
|
4600
4600
|
}
|
|
@@ -4605,7 +4605,7 @@ class ProductSummaryDiscount {
|
|
|
4605
4605
|
let m = new ProductSummaryDiscount();
|
|
4606
4606
|
m = Object.assign(m, proto);
|
|
4607
4607
|
if (proto.type) {
|
|
4608
|
-
m.type = enumStringToValue$
|
|
4608
|
+
m.type = enumStringToValue$x(ProductSummaryDiscountDiscountType, proto.type);
|
|
4609
4609
|
}
|
|
4610
4610
|
if (proto.value) {
|
|
4611
4611
|
m.value = parseInt(proto.value, 10);
|
|
@@ -4899,7 +4899,7 @@ class Pricing {
|
|
|
4899
4899
|
let m = new Pricing();
|
|
4900
4900
|
m = Object.assign(m, proto);
|
|
4901
4901
|
if (proto.type) {
|
|
4902
|
-
m.type = enumStringToValue$
|
|
4902
|
+
m.type = enumStringToValue$x(PricingRuleType, proto.type);
|
|
4903
4903
|
}
|
|
4904
4904
|
if (proto.rules) {
|
|
4905
4905
|
m.rules = proto.rules.map(PricingRule.fromProto);
|
|
@@ -4943,13 +4943,13 @@ class ProductSummary {
|
|
|
4943
4943
|
m.discounts = proto.discounts.map(ProductSummaryDiscount.fromProto);
|
|
4944
4944
|
}
|
|
4945
4945
|
if (proto.billingStrategy) {
|
|
4946
|
-
m.billingStrategy = enumStringToValue$
|
|
4946
|
+
m.billingStrategy = enumStringToValue$x(ProductSummaryBillingStrategy, proto.billingStrategy);
|
|
4947
4947
|
}
|
|
4948
4948
|
if (proto.productType) {
|
|
4949
|
-
m.productType = enumStringToValue$
|
|
4949
|
+
m.productType = enumStringToValue$x(ProductSummaryProductType, proto.productType);
|
|
4950
4950
|
}
|
|
4951
4951
|
if (proto.frequency) {
|
|
4952
|
-
m.frequency = enumStringToValue$
|
|
4952
|
+
m.frequency = enumStringToValue$x(Frequency, proto.frequency);
|
|
4953
4953
|
}
|
|
4954
4954
|
if (proto.volumeCommitment) {
|
|
4955
4955
|
m.volumeCommitment = parseInt(proto.volumeCommitment, 10);
|
|
@@ -5130,7 +5130,7 @@ class ListSubscriptionRetentionByGroupResponseSubscriptionRetentionByGroup {
|
|
|
5130
5130
|
}
|
|
5131
5131
|
}
|
|
5132
5132
|
|
|
5133
|
-
function enumStringToValue$
|
|
5133
|
+
function enumStringToValue$w(enumRef, value) {
|
|
5134
5134
|
if (typeof value === 'number') {
|
|
5135
5135
|
return value;
|
|
5136
5136
|
}
|
|
@@ -5141,7 +5141,7 @@ class CreateDiscountRequest {
|
|
|
5141
5141
|
let m = new CreateDiscountRequest();
|
|
5142
5142
|
m = Object.assign(m, proto);
|
|
5143
5143
|
if (proto.discountType) {
|
|
5144
|
-
m.discountType = enumStringToValue$
|
|
5144
|
+
m.discountType = enumStringToValue$w(DiscountType, proto.discountType);
|
|
5145
5145
|
}
|
|
5146
5146
|
if (proto.amount) {
|
|
5147
5147
|
m.amount = parseInt(proto.amount, 10);
|
|
@@ -5153,7 +5153,7 @@ class CreateDiscountRequest {
|
|
|
5153
5153
|
m.end = new Date(proto.end);
|
|
5154
5154
|
}
|
|
5155
5155
|
if (proto.consumer) {
|
|
5156
|
-
m.consumer = enumStringToValue$
|
|
5156
|
+
m.consumer = enumStringToValue$w(Consumer, proto.consumer);
|
|
5157
5157
|
}
|
|
5158
5158
|
if (proto.numberOfBillingPeriods) {
|
|
5159
5159
|
m.numberOfBillingPeriods = parseInt(proto.numberOfBillingPeriods, 10);
|
|
@@ -5235,7 +5235,7 @@ class Discount {
|
|
|
5235
5235
|
m.discountId = parseInt(proto.discountId, 10);
|
|
5236
5236
|
}
|
|
5237
5237
|
if (proto.discountType) {
|
|
5238
|
-
m.discountType = enumStringToValue$
|
|
5238
|
+
m.discountType = enumStringToValue$w(DiscountType, proto.discountType);
|
|
5239
5239
|
}
|
|
5240
5240
|
if (proto.amount) {
|
|
5241
5241
|
m.amount = parseInt(proto.amount, 10);
|
|
@@ -5253,7 +5253,7 @@ class Discount {
|
|
|
5253
5253
|
m.updated = new Date(proto.updated);
|
|
5254
5254
|
}
|
|
5255
5255
|
if (proto.consumer) {
|
|
5256
|
-
m.consumer = enumStringToValue$
|
|
5256
|
+
m.consumer = enumStringToValue$w(Consumer, proto.consumer);
|
|
5257
5257
|
}
|
|
5258
5258
|
if (proto.numberOfBillingPeriods) {
|
|
5259
5259
|
m.numberOfBillingPeriods = parseInt(proto.numberOfBillingPeriods, 10);
|
|
@@ -5350,7 +5350,7 @@ class ListDiscountsRequestFilters {
|
|
|
5350
5350
|
m.expiry = new Date(proto.expiry);
|
|
5351
5351
|
}
|
|
5352
5352
|
if (proto.consumers) {
|
|
5353
|
-
m.consumers = proto.consumers.map((v) => enumStringToValue$
|
|
5353
|
+
m.consumers = proto.consumers.map((v) => enumStringToValue$w(Consumer, v));
|
|
5354
5354
|
}
|
|
5355
5355
|
return m;
|
|
5356
5356
|
}
|
|
@@ -5449,7 +5449,7 @@ class UpdateDiscountRequest {
|
|
|
5449
5449
|
let m = new UpdateDiscountRequest();
|
|
5450
5450
|
m = Object.assign(m, proto);
|
|
5451
5451
|
if (proto.discountType) {
|
|
5452
|
-
m.discountType = enumStringToValue$
|
|
5452
|
+
m.discountType = enumStringToValue$w(DiscountType, proto.discountType);
|
|
5453
5453
|
}
|
|
5454
5454
|
if (proto.amount) {
|
|
5455
5455
|
m.amount = parseInt(proto.amount, 10);
|
|
@@ -5510,7 +5510,7 @@ class UpdateDiscountRequest {
|
|
|
5510
5510
|
}
|
|
5511
5511
|
}
|
|
5512
5512
|
|
|
5513
|
-
function enumStringToValue$
|
|
5513
|
+
function enumStringToValue$v(enumRef, value) {
|
|
5514
5514
|
if (typeof value === 'number') {
|
|
5515
5515
|
return value;
|
|
5516
5516
|
}
|
|
@@ -5552,7 +5552,7 @@ class AppliedTaxRate {
|
|
|
5552
5552
|
}
|
|
5553
5553
|
}
|
|
5554
5554
|
|
|
5555
|
-
function enumStringToValue$
|
|
5555
|
+
function enumStringToValue$u(enumRef, value) {
|
|
5556
5556
|
if (typeof value === 'number') {
|
|
5557
5557
|
return value;
|
|
5558
5558
|
}
|
|
@@ -6044,7 +6044,7 @@ class UpdateTaxRequest {
|
|
|
6044
6044
|
}
|
|
6045
6045
|
}
|
|
6046
6046
|
|
|
6047
|
-
function enumStringToValue$
|
|
6047
|
+
function enumStringToValue$t(enumRef, value) {
|
|
6048
6048
|
if (typeof value === 'number') {
|
|
6049
6049
|
return value;
|
|
6050
6050
|
}
|
|
@@ -6121,7 +6121,7 @@ class AppliedBundleItem {
|
|
|
6121
6121
|
}
|
|
6122
6122
|
}
|
|
6123
6123
|
|
|
6124
|
-
function enumStringToValue$
|
|
6124
|
+
function enumStringToValue$s(enumRef, value) {
|
|
6125
6125
|
if (typeof value === 'number') {
|
|
6126
6126
|
return value;
|
|
6127
6127
|
}
|
|
@@ -6227,10 +6227,10 @@ class PaymentCard {
|
|
|
6227
6227
|
let m = new PaymentCard();
|
|
6228
6228
|
m = Object.assign(m, proto);
|
|
6229
6229
|
if (proto.cardType) {
|
|
6230
|
-
m.cardType = enumStringToValue$
|
|
6230
|
+
m.cardType = enumStringToValue$s(PaymentCardCARD_TYPE, proto.cardType);
|
|
6231
6231
|
}
|
|
6232
6232
|
if (proto.fundingType) {
|
|
6233
|
-
m.fundingType = enumStringToValue$
|
|
6233
|
+
m.fundingType = enumStringToValue$s(PaymentCardFUNDING_TYPE, proto.fundingType);
|
|
6234
6234
|
}
|
|
6235
6235
|
return m;
|
|
6236
6236
|
}
|
|
@@ -6337,7 +6337,7 @@ class UpdatePaymentCardRequest {
|
|
|
6337
6337
|
}
|
|
6338
6338
|
}
|
|
6339
6339
|
|
|
6340
|
-
function enumStringToValue$
|
|
6340
|
+
function enumStringToValue$r(enumRef, value) {
|
|
6341
6341
|
if (typeof value === 'number') {
|
|
6342
6342
|
return value;
|
|
6343
6343
|
}
|
|
@@ -6440,7 +6440,7 @@ class PaymentMethod {
|
|
|
6440
6440
|
let m = new PaymentMethod();
|
|
6441
6441
|
m = Object.assign(m, proto);
|
|
6442
6442
|
if (proto.type) {
|
|
6443
|
-
m.type = enumStringToValue$
|
|
6443
|
+
m.type = enumStringToValue$r(PaymentMethodType, proto.type);
|
|
6444
6444
|
}
|
|
6445
6445
|
if (proto.card) {
|
|
6446
6446
|
m.card = PaymentCard.fromProto(proto.card);
|
|
@@ -6480,7 +6480,7 @@ class PaymentMethod {
|
|
|
6480
6480
|
}
|
|
6481
6481
|
}
|
|
6482
6482
|
|
|
6483
|
-
function enumStringToValue$
|
|
6483
|
+
function enumStringToValue$q(enumRef, value) {
|
|
6484
6484
|
if (typeof value === 'number') {
|
|
6485
6485
|
return value;
|
|
6486
6486
|
}
|
|
@@ -6575,7 +6575,7 @@ class ListRecurringInvoicesFiltersDetailedInterval {
|
|
|
6575
6575
|
let m = new ListRecurringInvoicesFiltersDetailedInterval();
|
|
6576
6576
|
m = Object.assign(m, proto);
|
|
6577
6577
|
if (proto.interval) {
|
|
6578
|
-
m.interval = enumStringToValue$
|
|
6578
|
+
m.interval = enumStringToValue$q(Interval, proto.interval);
|
|
6579
6579
|
}
|
|
6580
6580
|
if (proto.intervalCount) {
|
|
6581
6581
|
m.intervalCount = parseInt(proto.intervalCount, 10);
|
|
@@ -6624,7 +6624,7 @@ class ListRecurringInvoicesFilters {
|
|
|
6624
6624
|
let m = new ListRecurringInvoicesFilters();
|
|
6625
6625
|
m = Object.assign(m, proto);
|
|
6626
6626
|
if (proto.statuses) {
|
|
6627
|
-
m.statuses = proto.statuses.map((v) => enumStringToValue$
|
|
6627
|
+
m.statuses = proto.statuses.map((v) => enumStringToValue$q(RecurringInvoiceStatus, v));
|
|
6628
6628
|
}
|
|
6629
6629
|
if (proto.intervals) {
|
|
6630
6630
|
m.intervals = proto.intervals.map(ListRecurringInvoicesFiltersDetailedInterval.fromProto);
|
|
@@ -6729,7 +6729,7 @@ class RecurringInvoice {
|
|
|
6729
6729
|
m.updated = new Date(proto.updated);
|
|
6730
6730
|
}
|
|
6731
6731
|
if (proto.status) {
|
|
6732
|
-
m.status = enumStringToValue$
|
|
6732
|
+
m.status = enumStringToValue$q(RecurringInvoiceStatus, proto.status);
|
|
6733
6733
|
}
|
|
6734
6734
|
if (proto.nextIssue) {
|
|
6735
6735
|
m.nextIssue = new Date(proto.nextIssue);
|
|
@@ -6738,16 +6738,16 @@ class RecurringInvoice {
|
|
|
6738
6738
|
m.intervalCount = parseInt(proto.intervalCount, 10);
|
|
6739
6739
|
}
|
|
6740
6740
|
if (proto.interval) {
|
|
6741
|
-
m.interval = enumStringToValue$
|
|
6741
|
+
m.interval = enumStringToValue$q(Interval, proto.interval);
|
|
6742
6742
|
}
|
|
6743
6743
|
if (proto.repeatOnDayOfMonth) {
|
|
6744
6744
|
m.repeatOnDayOfMonth = parseInt(proto.repeatOnDayOfMonth, 10);
|
|
6745
6745
|
}
|
|
6746
6746
|
if (proto.collectionMethod) {
|
|
6747
|
-
m.collectionMethod = enumStringToValue$
|
|
6747
|
+
m.collectionMethod = enumStringToValue$q(CollectionMethod, proto.collectionMethod);
|
|
6748
6748
|
}
|
|
6749
6749
|
if (proto.paymentProcessor) {
|
|
6750
|
-
m.paymentProcessor = enumStringToValue$
|
|
6750
|
+
m.paymentProcessor = enumStringToValue$q(PaymentProcessor, proto.paymentProcessor);
|
|
6751
6751
|
}
|
|
6752
6752
|
if (proto.items) {
|
|
6753
6753
|
m.items = proto.items.map(RecurringInvoiceItem.fromProto);
|
|
@@ -6765,7 +6765,7 @@ class RecurringInvoice {
|
|
|
6765
6765
|
m.netD = parseInt(proto.netD, 10);
|
|
6766
6766
|
}
|
|
6767
6767
|
if (proto.paymentMethodTypes) {
|
|
6768
|
-
m.paymentMethodTypes = proto.paymentMethodTypes.map((v) => enumStringToValue$
|
|
6768
|
+
m.paymentMethodTypes = proto.paymentMethodTypes.map((v) => enumStringToValue$q(PaymentMethodType, v));
|
|
6769
6769
|
}
|
|
6770
6770
|
return m;
|
|
6771
6771
|
}
|
|
@@ -6972,7 +6972,7 @@ class UpdateRecurringInvoiceRequest {
|
|
|
6972
6972
|
}
|
|
6973
6973
|
}
|
|
6974
6974
|
|
|
6975
|
-
function enumStringToValue$
|
|
6975
|
+
function enumStringToValue$p(enumRef, value) {
|
|
6976
6976
|
if (typeof value === 'number') {
|
|
6977
6977
|
return value;
|
|
6978
6978
|
}
|
|
@@ -7117,7 +7117,7 @@ class AppliedCreditNote {
|
|
|
7117
7117
|
m.amount = parseInt(proto.amount, 10);
|
|
7118
7118
|
}
|
|
7119
7119
|
if (proto.creditNoteType) {
|
|
7120
|
-
m.creditNoteType = enumStringToValue$
|
|
7120
|
+
m.creditNoteType = enumStringToValue$p(CreditNoteType, proto.creditNoteType);
|
|
7121
7121
|
}
|
|
7122
7122
|
return m;
|
|
7123
7123
|
}
|
|
@@ -7181,10 +7181,10 @@ class CreateInvoiceRequest {
|
|
|
7181
7181
|
m.items = proto.items.map(InvoiceItem.fromProto);
|
|
7182
7182
|
}
|
|
7183
7183
|
if (proto.collectionMethod) {
|
|
7184
|
-
m.collectionMethod = enumStringToValue$
|
|
7184
|
+
m.collectionMethod = enumStringToValue$p(CollectionMethod, proto.collectionMethod);
|
|
7185
7185
|
}
|
|
7186
7186
|
if (proto.origin) {
|
|
7187
|
-
m.origin = enumStringToValue$
|
|
7187
|
+
m.origin = enumStringToValue$p(Origin, proto.origin);
|
|
7188
7188
|
}
|
|
7189
7189
|
if (proto.issued) {
|
|
7190
7190
|
m.issued = new Date(proto.issued);
|
|
@@ -7356,7 +7356,7 @@ class ListInvoicesRequestFiltersDateFilter {
|
|
|
7356
7356
|
let m = new ListInvoicesRequestFiltersDateFilter();
|
|
7357
7357
|
m = Object.assign(m, proto);
|
|
7358
7358
|
if (proto.dateField) {
|
|
7359
|
-
m.dateField = enumStringToValue$
|
|
7359
|
+
m.dateField = enumStringToValue$p(ListInvoicesRequestFiltersDateFilterDateField, proto.dateField);
|
|
7360
7360
|
}
|
|
7361
7361
|
if (proto.dateLte) {
|
|
7362
7362
|
m.dateLte = new Date(proto.dateLte);
|
|
@@ -7506,13 +7506,13 @@ class ListInvoicesRequestFilters {
|
|
|
7506
7506
|
let m = new ListInvoicesRequestFilters();
|
|
7507
7507
|
m = Object.assign(m, proto);
|
|
7508
7508
|
if (proto.statuses) {
|
|
7509
|
-
m.statuses = proto.statuses.map((v) => enumStringToValue$
|
|
7509
|
+
m.statuses = proto.statuses.map((v) => enumStringToValue$p(InvoiceStatus, v));
|
|
7510
7510
|
}
|
|
7511
7511
|
if (proto.dateFilter) {
|
|
7512
7512
|
m.dateFilter = ListInvoicesRequestFiltersDateFilter.fromProto(proto.dateFilter);
|
|
7513
7513
|
}
|
|
7514
7514
|
if (proto.lastPaymentStatuses) {
|
|
7515
|
-
m.lastPaymentStatuses = proto.lastPaymentStatuses.map((v) => enumStringToValue$
|
|
7515
|
+
m.lastPaymentStatuses = proto.lastPaymentStatuses.map((v) => enumStringToValue$p(LastPaymentStatus, v));
|
|
7516
7516
|
}
|
|
7517
7517
|
return m;
|
|
7518
7518
|
}
|
|
@@ -7551,6 +7551,9 @@ class ListInvoicesRequestFilters {
|
|
|
7551
7551
|
if (typeof this.lastPaymentStatuses !== 'undefined') {
|
|
7552
7552
|
toReturn['lastPaymentStatuses'] = this.lastPaymentStatuses;
|
|
7553
7553
|
}
|
|
7554
|
+
if (typeof this.orderId !== 'undefined') {
|
|
7555
|
+
toReturn['orderId'] = this.orderId;
|
|
7556
|
+
}
|
|
7554
7557
|
return toReturn;
|
|
7555
7558
|
}
|
|
7556
7559
|
}
|
|
@@ -7703,7 +7706,7 @@ class Invoice {
|
|
|
7703
7706
|
let m = new Invoice();
|
|
7704
7707
|
m = Object.assign(m, proto);
|
|
7705
7708
|
if (proto.status) {
|
|
7706
|
-
m.status = enumStringToValue$
|
|
7709
|
+
m.status = enumStringToValue$p(InvoiceStatus, proto.status);
|
|
7707
7710
|
}
|
|
7708
7711
|
if (proto.subtotal) {
|
|
7709
7712
|
m.subtotal = parseInt(proto.subtotal, 10);
|
|
@@ -7730,7 +7733,7 @@ class Invoice {
|
|
|
7730
7733
|
m.items = proto.items.map(InvoiceItem.fromProto);
|
|
7731
7734
|
}
|
|
7732
7735
|
if (proto.currency) {
|
|
7733
|
-
m.currency = enumStringToValue$
|
|
7736
|
+
m.currency = enumStringToValue$p(Currency, proto.currency);
|
|
7734
7737
|
}
|
|
7735
7738
|
if (proto.paid) {
|
|
7736
7739
|
m.paid = new Date(proto.paid);
|
|
@@ -7763,10 +7766,10 @@ class Invoice {
|
|
|
7763
7766
|
m.autoAdvance = new Date(proto.autoAdvance);
|
|
7764
7767
|
}
|
|
7765
7768
|
if (proto.paymentMethodTypes) {
|
|
7766
|
-
m.paymentMethodTypes = proto.paymentMethodTypes.map((v) => enumStringToValue$
|
|
7769
|
+
m.paymentMethodTypes = proto.paymentMethodTypes.map((v) => enumStringToValue$p(PaymentMethodType, v));
|
|
7767
7770
|
}
|
|
7768
7771
|
if (proto.lastPaymentStatus) {
|
|
7769
|
-
m.lastPaymentStatus = enumStringToValue$
|
|
7772
|
+
m.lastPaymentStatus = enumStringToValue$p(LastPaymentStatus, proto.lastPaymentStatus);
|
|
7770
7773
|
}
|
|
7771
7774
|
if (proto.amountOwing) {
|
|
7772
7775
|
m.amountOwing = parseInt(proto.amountOwing, 10);
|
|
@@ -7775,7 +7778,7 @@ class Invoice {
|
|
|
7775
7778
|
m.appliedCreditNotes = proto.appliedCreditNotes.map(AppliedCreditNote.fromProto);
|
|
7776
7779
|
}
|
|
7777
7780
|
if (proto.processingFailureCode) {
|
|
7778
|
-
m.processingFailureCode = enumStringToValue$
|
|
7781
|
+
m.processingFailureCode = enumStringToValue$p(ProcessingFailureCode, proto.processingFailureCode);
|
|
7779
7782
|
}
|
|
7780
7783
|
if (proto.retailSubscriptionGroups) {
|
|
7781
7784
|
m.retailSubscriptionGroups = proto.retailSubscriptionGroups.map(RetailSubscriptionGroup.fromProto);
|
|
@@ -8016,7 +8019,7 @@ class ItemDisplayGroup {
|
|
|
8016
8019
|
let m = new ItemDisplayGroup();
|
|
8017
8020
|
m = Object.assign(m, proto);
|
|
8018
8021
|
if (proto.displayOption) {
|
|
8019
|
-
m.displayOption = enumStringToValue$
|
|
8022
|
+
m.displayOption = enumStringToValue$p(DisplayOption, proto.displayOption);
|
|
8020
8023
|
}
|
|
8021
8024
|
return m;
|
|
8022
8025
|
}
|
|
@@ -8531,7 +8534,7 @@ class VoidInvoiceRequest {
|
|
|
8531
8534
|
}
|
|
8532
8535
|
}
|
|
8533
8536
|
|
|
8534
|
-
function enumStringToValue$
|
|
8537
|
+
function enumStringToValue$o(enumRef, value) {
|
|
8535
8538
|
if (typeof value === 'number') {
|
|
8536
8539
|
return value;
|
|
8537
8540
|
}
|
|
@@ -8625,7 +8628,7 @@ class BalanceAmount {
|
|
|
8625
8628
|
}
|
|
8626
8629
|
}
|
|
8627
8630
|
|
|
8628
|
-
function enumStringToValue$
|
|
8631
|
+
function enumStringToValue$n(enumRef, value) {
|
|
8629
8632
|
if (typeof value === 'number') {
|
|
8630
8633
|
return value;
|
|
8631
8634
|
}
|
|
@@ -8661,7 +8664,7 @@ class DateRange {
|
|
|
8661
8664
|
}
|
|
8662
8665
|
}
|
|
8663
8666
|
|
|
8664
|
-
function enumStringToValue$
|
|
8667
|
+
function enumStringToValue$m(enumRef, value) {
|
|
8665
8668
|
if (typeof value === 'number') {
|
|
8666
8669
|
return value;
|
|
8667
8670
|
}
|
|
@@ -8762,13 +8765,13 @@ class Payout {
|
|
|
8762
8765
|
m.amount = parseInt(proto.amount, 10);
|
|
8763
8766
|
}
|
|
8764
8767
|
if (proto.currency) {
|
|
8765
|
-
m.currency = enumStringToValue$
|
|
8768
|
+
m.currency = enumStringToValue$m(Currency, proto.currency);
|
|
8766
8769
|
}
|
|
8767
8770
|
if (proto.status) {
|
|
8768
|
-
m.status = enumStringToValue$
|
|
8771
|
+
m.status = enumStringToValue$m(PayoutStatus, proto.status);
|
|
8769
8772
|
}
|
|
8770
8773
|
if (proto.type) {
|
|
8771
|
-
m.type = enumStringToValue$
|
|
8774
|
+
m.type = enumStringToValue$m(PayoutType, proto.type);
|
|
8772
8775
|
}
|
|
8773
8776
|
return m;
|
|
8774
8777
|
}
|
|
@@ -8870,10 +8873,10 @@ class RetailPayout {
|
|
|
8870
8873
|
m.amount = parseInt(proto.amount, 10);
|
|
8871
8874
|
}
|
|
8872
8875
|
if (proto.status) {
|
|
8873
|
-
m.status = enumStringToValue$
|
|
8876
|
+
m.status = enumStringToValue$m(PayoutStatus, proto.status);
|
|
8874
8877
|
}
|
|
8875
8878
|
if (proto.type) {
|
|
8876
|
-
m.type = enumStringToValue$
|
|
8879
|
+
m.type = enumStringToValue$m(PayoutType, proto.type);
|
|
8877
8880
|
}
|
|
8878
8881
|
return m;
|
|
8879
8882
|
}
|
|
@@ -8922,7 +8925,7 @@ class RetailPayout {
|
|
|
8922
8925
|
}
|
|
8923
8926
|
}
|
|
8924
8927
|
|
|
8925
|
-
function enumStringToValue$
|
|
8928
|
+
function enumStringToValue$l(enumRef, value) {
|
|
8926
8929
|
if (typeof value === 'number') {
|
|
8927
8930
|
return value;
|
|
8928
8931
|
}
|
|
@@ -9037,7 +9040,7 @@ class CreateMerchantRequest {
|
|
|
9037
9040
|
m.includeInFinancialRecords = CreateMerchantRequestIncludeInFinancialRecords.fromProto(proto.includeInFinancialRecords);
|
|
9038
9041
|
}
|
|
9039
9042
|
if (proto.merchantType) {
|
|
9040
|
-
m.merchantType = enumStringToValue$
|
|
9043
|
+
m.merchantType = enumStringToValue$l(MerchantType, proto.merchantType);
|
|
9041
9044
|
}
|
|
9042
9045
|
return m;
|
|
9043
9046
|
}
|
|
@@ -9301,7 +9304,7 @@ class GetOutstandingBalanceResponse {
|
|
|
9301
9304
|
m.outstandingBalance = parseInt(proto.outstandingBalance, 10);
|
|
9302
9305
|
}
|
|
9303
9306
|
if (proto.currency) {
|
|
9304
|
-
m.currency = enumStringToValue$
|
|
9307
|
+
m.currency = enumStringToValue$l(Currency, proto.currency);
|
|
9305
9308
|
}
|
|
9306
9309
|
return m;
|
|
9307
9310
|
}
|
|
@@ -9612,7 +9615,7 @@ class Merchant {
|
|
|
9612
9615
|
let m = new Merchant();
|
|
9613
9616
|
m = Object.assign(m, proto);
|
|
9614
9617
|
if (proto.merchantType) {
|
|
9615
|
-
m.merchantType = enumStringToValue$
|
|
9618
|
+
m.merchantType = enumStringToValue$l(MerchantType, proto.merchantType);
|
|
9616
9619
|
}
|
|
9617
9620
|
return m;
|
|
9618
9621
|
}
|
|
@@ -9767,10 +9770,10 @@ class SearchMerchantsRequest {
|
|
|
9767
9770
|
let m = new SearchMerchantsRequest();
|
|
9768
9771
|
m = Object.assign(m, proto);
|
|
9769
9772
|
if (proto.sortBy) {
|
|
9770
|
-
m.sortBy = enumStringToValue$
|
|
9773
|
+
m.sortBy = enumStringToValue$l(SearchMerchantsRequestSortBy, proto.sortBy);
|
|
9771
9774
|
}
|
|
9772
9775
|
if (proto.sortDirection) {
|
|
9773
|
-
m.sortDirection = enumStringToValue$
|
|
9776
|
+
m.sortDirection = enumStringToValue$l(SortDirection, proto.sortDirection);
|
|
9774
9777
|
}
|
|
9775
9778
|
if (proto.pagingOptions) {
|
|
9776
9779
|
m.pagingOptions = PagedRequestOptions.fromProto(proto.pagingOptions);
|
|
@@ -9978,7 +9981,7 @@ class UpdateMerchantRequest {
|
|
|
9978
9981
|
m.includeInFinancialRecords = UpdateMerchantRequestIncludeInFinancialRecords.fromProto(proto.includeInFinancialRecords);
|
|
9979
9982
|
}
|
|
9980
9983
|
if (proto.merchantType) {
|
|
9981
|
-
m.merchantType = enumStringToValue$
|
|
9984
|
+
m.merchantType = enumStringToValue$l(MerchantType, proto.merchantType);
|
|
9982
9985
|
}
|
|
9983
9986
|
return m;
|
|
9984
9987
|
}
|
|
@@ -10103,7 +10106,7 @@ class UpsertRetailConfigurationRequest {
|
|
|
10103
10106
|
}
|
|
10104
10107
|
}
|
|
10105
10108
|
|
|
10106
|
-
function enumStringToValue$
|
|
10109
|
+
function enumStringToValue$k(enumRef, value) {
|
|
10107
10110
|
if (typeof value === 'number') {
|
|
10108
10111
|
return value;
|
|
10109
10112
|
}
|
|
@@ -10172,13 +10175,13 @@ class MerchantReport {
|
|
|
10172
10175
|
m.year = parseInt(proto.year, 10);
|
|
10173
10176
|
}
|
|
10174
10177
|
if (proto.month) {
|
|
10175
|
-
m.month = enumStringToValue$
|
|
10178
|
+
m.month = enumStringToValue$k(Month, proto.month);
|
|
10176
10179
|
}
|
|
10177
10180
|
if (proto.created) {
|
|
10178
10181
|
m.created = new Date(proto.created);
|
|
10179
10182
|
}
|
|
10180
10183
|
if (proto.status) {
|
|
10181
|
-
m.status = enumStringToValue$
|
|
10184
|
+
m.status = enumStringToValue$k(MerchantReportStatus, proto.status);
|
|
10182
10185
|
}
|
|
10183
10186
|
return m;
|
|
10184
10187
|
}
|
|
@@ -10209,7 +10212,7 @@ class MerchantReport {
|
|
|
10209
10212
|
}
|
|
10210
10213
|
}
|
|
10211
10214
|
|
|
10212
|
-
function enumStringToValue$
|
|
10215
|
+
function enumStringToValue$j(enumRef, value) {
|
|
10213
10216
|
if (typeof value === 'number') {
|
|
10214
10217
|
return value;
|
|
10215
10218
|
}
|
|
@@ -10306,7 +10309,7 @@ class TickComponentUsageRequest {
|
|
|
10306
10309
|
}
|
|
10307
10310
|
}
|
|
10308
10311
|
|
|
10309
|
-
function enumStringToValue$
|
|
10312
|
+
function enumStringToValue$i(enumRef, value) {
|
|
10310
10313
|
if (typeof value === 'number') {
|
|
10311
10314
|
return value;
|
|
10312
10315
|
}
|
|
@@ -10419,7 +10422,7 @@ class RetailPaymentCardDetails {
|
|
|
10419
10422
|
let m = new RetailPaymentCardDetails();
|
|
10420
10423
|
m = Object.assign(m, proto);
|
|
10421
10424
|
if (proto.cardType) {
|
|
10422
|
-
m.cardType = enumStringToValue$
|
|
10425
|
+
m.cardType = enumStringToValue$i(CardType, proto.cardType);
|
|
10423
10426
|
}
|
|
10424
10427
|
return m;
|
|
10425
10428
|
}
|
|
@@ -10468,7 +10471,7 @@ class ConfigureRetailPaymentProviderRequest {
|
|
|
10468
10471
|
let m = new ConfigureRetailPaymentProviderRequest();
|
|
10469
10472
|
m = Object.assign(m, proto);
|
|
10470
10473
|
if (proto.paymentFacilitatorType) {
|
|
10471
|
-
m.paymentFacilitatorType = enumStringToValue$
|
|
10474
|
+
m.paymentFacilitatorType = enumStringToValue$i(PaymentFacilitatorType, proto.paymentFacilitatorType);
|
|
10472
10475
|
}
|
|
10473
10476
|
return m;
|
|
10474
10477
|
}
|
|
@@ -10546,7 +10549,7 @@ class Dispute {
|
|
|
10546
10549
|
let m = new Dispute();
|
|
10547
10550
|
m = Object.assign(m, proto);
|
|
10548
10551
|
if (proto.status) {
|
|
10549
|
-
m.status = enumStringToValue$
|
|
10552
|
+
m.status = enumStringToValue$i(DisputeStatus, proto.status);
|
|
10550
10553
|
}
|
|
10551
10554
|
if (proto.amount) {
|
|
10552
10555
|
m.amount = parseInt(proto.amount, 10);
|
|
@@ -10564,7 +10567,7 @@ class Dispute {
|
|
|
10564
10567
|
m.fee = parseInt(proto.fee, 10);
|
|
10565
10568
|
}
|
|
10566
10569
|
if (proto.paymentReferenceType) {
|
|
10567
|
-
m.paymentReferenceType = enumStringToValue$
|
|
10570
|
+
m.paymentReferenceType = enumStringToValue$i(RetailPaymentReferenceType, proto.paymentReferenceType);
|
|
10568
10571
|
}
|
|
10569
10572
|
if (proto.paymentReceivedAt) {
|
|
10570
10573
|
m.paymentReceivedAt = new Date(proto.paymentReceivedAt);
|
|
@@ -10880,7 +10883,7 @@ class GetRetailPaymentProviderResponse {
|
|
|
10880
10883
|
let m = new GetRetailPaymentProviderResponse();
|
|
10881
10884
|
m = Object.assign(m, proto);
|
|
10882
10885
|
if (proto.paymentFacilitatorType) {
|
|
10883
|
-
m.paymentFacilitatorType = enumStringToValue$
|
|
10886
|
+
m.paymentFacilitatorType = enumStringToValue$i(PaymentFacilitatorType, proto.paymentFacilitatorType);
|
|
10884
10887
|
}
|
|
10885
10888
|
return m;
|
|
10886
10889
|
}
|
|
@@ -11094,7 +11097,7 @@ class ListRetailDisputesRequestListRetailDisputesFilters {
|
|
|
11094
11097
|
let m = new ListRetailDisputesRequestListRetailDisputesFilters();
|
|
11095
11098
|
m = Object.assign(m, proto);
|
|
11096
11099
|
if (proto.status) {
|
|
11097
|
-
m.status = enumStringToValue$
|
|
11100
|
+
m.status = enumStringToValue$i(DisputeStatus, proto.status);
|
|
11098
11101
|
}
|
|
11099
11102
|
return m;
|
|
11100
11103
|
}
|
|
@@ -11280,7 +11283,7 @@ class ListRetailTransactionsRequestListRetailTransactionsFilters {
|
|
|
11280
11283
|
m.createdDateLte = new Date(proto.createdDateLte);
|
|
11281
11284
|
}
|
|
11282
11285
|
if (proto.type) {
|
|
11283
|
-
m.type = enumStringToValue$
|
|
11286
|
+
m.type = enumStringToValue$i(RetailTransactionType, proto.type);
|
|
11284
11287
|
}
|
|
11285
11288
|
return m;
|
|
11286
11289
|
}
|
|
@@ -11414,10 +11417,10 @@ class Payment {
|
|
|
11414
11417
|
m.created = new Date(proto.created);
|
|
11415
11418
|
}
|
|
11416
11419
|
if (proto.currency) {
|
|
11417
|
-
m.currency = enumStringToValue$
|
|
11420
|
+
m.currency = enumStringToValue$i(Currency, proto.currency);
|
|
11418
11421
|
}
|
|
11419
11422
|
if (proto.paymentSource) {
|
|
11420
|
-
m.paymentSource = enumStringToValue$
|
|
11423
|
+
m.paymentSource = enumStringToValue$i(PaymentSource, proto.paymentSource);
|
|
11421
11424
|
}
|
|
11422
11425
|
if (proto.allocations) {
|
|
11423
11426
|
m.allocations = proto.allocations.map(PaymentPaymentAllocation.fromProto);
|
|
@@ -11426,7 +11429,7 @@ class Payment {
|
|
|
11426
11429
|
m.total = parseInt(proto.total, 10);
|
|
11427
11430
|
}
|
|
11428
11431
|
if (proto.status) {
|
|
11429
|
-
m.status = enumStringToValue$
|
|
11432
|
+
m.status = enumStringToValue$i(PaymentStatus, proto.status);
|
|
11430
11433
|
}
|
|
11431
11434
|
return m;
|
|
11432
11435
|
}
|
|
@@ -11476,7 +11479,7 @@ class PaymentPaymentAllocation {
|
|
|
11476
11479
|
m.amount = parseInt(proto.amount, 10);
|
|
11477
11480
|
}
|
|
11478
11481
|
if (proto.type) {
|
|
11479
|
-
m.type = enumStringToValue$
|
|
11482
|
+
m.type = enumStringToValue$i(PaymentAllocationType, proto.type);
|
|
11480
11483
|
}
|
|
11481
11484
|
return m;
|
|
11482
11485
|
}
|
|
@@ -11505,13 +11508,13 @@ class PaymentIntent {
|
|
|
11505
11508
|
let m = new PaymentIntent();
|
|
11506
11509
|
m = Object.assign(m, proto);
|
|
11507
11510
|
if (proto.paymentIntentStatus) {
|
|
11508
|
-
m.paymentIntentStatus = enumStringToValue$
|
|
11511
|
+
m.paymentIntentStatus = enumStringToValue$i(PaymentIntentStatus, proto.paymentIntentStatus);
|
|
11509
11512
|
}
|
|
11510
11513
|
if (proto.paymentMethodType) {
|
|
11511
|
-
m.paymentMethodType = enumStringToValue$
|
|
11514
|
+
m.paymentMethodType = enumStringToValue$i(PaymentMethodType, proto.paymentMethodType);
|
|
11512
11515
|
}
|
|
11513
11516
|
if (proto.lastErrorCode) {
|
|
11514
|
-
m.lastErrorCode = enumStringToValue$
|
|
11517
|
+
m.lastErrorCode = enumStringToValue$i(PaymentErrorCode, proto.lastErrorCode);
|
|
11515
11518
|
}
|
|
11516
11519
|
return m;
|
|
11517
11520
|
}
|
|
@@ -11543,7 +11546,7 @@ class PrepareRetailPaymentRequest {
|
|
|
11543
11546
|
m.order = PrepareRetailPaymentRequestOrder.fromProto(proto.order);
|
|
11544
11547
|
}
|
|
11545
11548
|
if (proto.paymentMethodTypes) {
|
|
11546
|
-
m.paymentMethodTypes = proto.paymentMethodTypes.map((v) => enumStringToValue$
|
|
11549
|
+
m.paymentMethodTypes = proto.paymentMethodTypes.map((v) => enumStringToValue$i(PaymentMethodType, v));
|
|
11547
11550
|
}
|
|
11548
11551
|
return m;
|
|
11549
11552
|
}
|
|
@@ -11610,7 +11613,7 @@ class RefundRetailPaymentRequest {
|
|
|
11610
11613
|
m.amount = parseInt(proto.amount, 10);
|
|
11611
11614
|
}
|
|
11612
11615
|
if (proto.reason) {
|
|
11613
|
-
m.reason = enumStringToValue$
|
|
11616
|
+
m.reason = enumStringToValue$i(RetailRefundReason, proto.reason);
|
|
11614
11617
|
}
|
|
11615
11618
|
return m;
|
|
11616
11619
|
}
|
|
@@ -11671,10 +11674,10 @@ class RetailPayment {
|
|
|
11671
11674
|
m.amount = parseInt(proto.amount, 10);
|
|
11672
11675
|
}
|
|
11673
11676
|
if (proto.referenceType) {
|
|
11674
|
-
m.referenceType = enumStringToValue$
|
|
11677
|
+
m.referenceType = enumStringToValue$i(RetailPaymentReferenceType, proto.referenceType);
|
|
11675
11678
|
}
|
|
11676
11679
|
if (proto.status) {
|
|
11677
|
-
m.status = enumStringToValue$
|
|
11680
|
+
m.status = enumStringToValue$i(PaymentStatus, proto.status);
|
|
11678
11681
|
}
|
|
11679
11682
|
if (proto.applicationFee) {
|
|
11680
11683
|
m.applicationFee = parseInt(proto.applicationFee, 10);
|
|
@@ -11689,7 +11692,7 @@ class RetailPayment {
|
|
|
11689
11692
|
m.refunds = proto.refunds.map(RetailRefund.fromProto);
|
|
11690
11693
|
}
|
|
11691
11694
|
if (proto.paymentMethodDetailsType) {
|
|
11692
|
-
m.paymentMethodDetailsType = enumStringToValue$
|
|
11695
|
+
m.paymentMethodDetailsType = enumStringToValue$i(RetailPaymentPaymentMethodDetailsType, proto.paymentMethodDetailsType);
|
|
11693
11696
|
}
|
|
11694
11697
|
if (proto.achDebitDetails) {
|
|
11695
11698
|
m.achDebitDetails = RetailPaymentACHDetails.fromProto(proto.achDebitDetails);
|
|
@@ -11701,7 +11704,7 @@ class RetailPayment {
|
|
|
11701
11704
|
m.paymentFacilitatorFee = parseInt(proto.paymentFacilitatorFee, 10);
|
|
11702
11705
|
}
|
|
11703
11706
|
if (proto.paymentFacilitatorType) {
|
|
11704
|
-
m.paymentFacilitatorType = enumStringToValue$
|
|
11707
|
+
m.paymentFacilitatorType = enumStringToValue$i(PaymentFacilitatorType, proto.paymentFacilitatorType);
|
|
11705
11708
|
}
|
|
11706
11709
|
if (proto.settledAt) {
|
|
11707
11710
|
m.settledAt = new Date(proto.settledAt);
|
|
@@ -11836,13 +11839,13 @@ class RetailRefund {
|
|
|
11836
11839
|
m.amount = parseInt(proto.amount, 10);
|
|
11837
11840
|
}
|
|
11838
11841
|
if (proto.refundReason) {
|
|
11839
|
-
m.refundReason = enumStringToValue$
|
|
11842
|
+
m.refundReason = enumStringToValue$i(RetailRefundReason, proto.refundReason);
|
|
11840
11843
|
}
|
|
11841
11844
|
if (proto.status) {
|
|
11842
|
-
m.status = enumStringToValue$
|
|
11845
|
+
m.status = enumStringToValue$i(RetailRefundStatus, proto.status);
|
|
11843
11846
|
}
|
|
11844
11847
|
if (proto.failureReason) {
|
|
11845
|
-
m.failureReason = enumStringToValue$
|
|
11848
|
+
m.failureReason = enumStringToValue$i(RetailRefundFailureReason, proto.failureReason);
|
|
11846
11849
|
}
|
|
11847
11850
|
if (proto.created) {
|
|
11848
11851
|
m.created = new Date(proto.created);
|
|
@@ -12106,7 +12109,7 @@ class RetailStatusResponseVerificationRequirements {
|
|
|
12106
12109
|
}
|
|
12107
12110
|
}
|
|
12108
12111
|
|
|
12109
|
-
function enumStringToValue$
|
|
12112
|
+
function enumStringToValue$h(enumRef, value) {
|
|
12110
12113
|
if (typeof value === 'number') {
|
|
12111
12114
|
return value;
|
|
12112
12115
|
}
|
|
@@ -12117,7 +12120,7 @@ class CreatePricingPlanProductRequest {
|
|
|
12117
12120
|
let m = new CreatePricingPlanProductRequest();
|
|
12118
12121
|
m = Object.assign(m, proto);
|
|
12119
12122
|
if (proto.frequency) {
|
|
12120
|
-
m.frequency = enumStringToValue$
|
|
12123
|
+
m.frequency = enumStringToValue$h(Frequency, proto.frequency);
|
|
12121
12124
|
}
|
|
12122
12125
|
if (proto.pricing) {
|
|
12123
12126
|
m.pricing = Object.keys(proto.pricing).reduce((obj, k) => { obj[k] = PricingPlanProductPricing.fromProto(proto.pricing[k]); return obj; }, {});
|
|
@@ -12126,7 +12129,7 @@ class CreatePricingPlanProductRequest {
|
|
|
12126
12129
|
m.commitment = Commitment.fromProto(proto.commitment);
|
|
12127
12130
|
}
|
|
12128
12131
|
if (proto.strategy) {
|
|
12129
|
-
m.strategy = enumStringToValue$
|
|
12132
|
+
m.strategy = enumStringToValue$h(BillingStrategy, proto.strategy);
|
|
12130
12133
|
}
|
|
12131
12134
|
if (proto.volumeCommitment) {
|
|
12132
12135
|
m.volumeCommitment = parseInt(proto.volumeCommitment, 10);
|
|
@@ -12300,7 +12303,7 @@ class GetPricingPlanProductResponse {
|
|
|
12300
12303
|
m.pricingPlanProduct = PricingPlanProduct.fromProto(proto.pricingPlanProduct);
|
|
12301
12304
|
}
|
|
12302
12305
|
if (proto.pricingPlanDefaultStrategy) {
|
|
12303
|
-
m.pricingPlanDefaultStrategy = enumStringToValue$
|
|
12306
|
+
m.pricingPlanDefaultStrategy = enumStringToValue$h(BillingStrategy, proto.pricingPlanDefaultStrategy);
|
|
12304
12307
|
}
|
|
12305
12308
|
return m;
|
|
12306
12309
|
}
|
|
@@ -12488,7 +12491,7 @@ class PricingPlanProduct {
|
|
|
12488
12491
|
let m = new PricingPlanProduct();
|
|
12489
12492
|
m = Object.assign(m, proto);
|
|
12490
12493
|
if (proto.frequency) {
|
|
12491
|
-
m.frequency = enumStringToValue$
|
|
12494
|
+
m.frequency = enumStringToValue$h(Frequency, proto.frequency);
|
|
12492
12495
|
}
|
|
12493
12496
|
if (proto.pricing) {
|
|
12494
12497
|
m.pricing = Object.keys(proto.pricing).reduce((obj, k) => { obj[k] = PricingPlanProductPricing.fromProto(proto.pricing[k]); return obj; }, {});
|
|
@@ -12503,7 +12506,7 @@ class PricingPlanProduct {
|
|
|
12503
12506
|
m.modified = new Date(proto.modified);
|
|
12504
12507
|
}
|
|
12505
12508
|
if (proto.strategy) {
|
|
12506
|
-
m.strategy = enumStringToValue$
|
|
12509
|
+
m.strategy = enumStringToValue$h(BillingStrategy, proto.strategy);
|
|
12507
12510
|
}
|
|
12508
12511
|
if (proto.volumeCommitment) {
|
|
12509
12512
|
m.volumeCommitment = parseInt(proto.volumeCommitment, 10);
|
|
@@ -12515,7 +12518,7 @@ class PricingPlanProduct {
|
|
|
12515
12518
|
m.volumeCommitmentEndsAt = new Date(proto.volumeCommitmentEndsAt);
|
|
12516
12519
|
}
|
|
12517
12520
|
if (proto.pricingType) {
|
|
12518
|
-
m.pricingType = enumStringToValue$
|
|
12521
|
+
m.pricingType = enumStringToValue$h(ProductPricingType, proto.pricingType);
|
|
12519
12522
|
}
|
|
12520
12523
|
return m;
|
|
12521
12524
|
}
|
|
@@ -12571,7 +12574,7 @@ class UpdatePricingPlanProductRequest {
|
|
|
12571
12574
|
let m = new UpdatePricingPlanProductRequest();
|
|
12572
12575
|
m = Object.assign(m, proto);
|
|
12573
12576
|
if (proto.frequency) {
|
|
12574
|
-
m.frequency = enumStringToValue$
|
|
12577
|
+
m.frequency = enumStringToValue$h(Frequency, proto.frequency);
|
|
12575
12578
|
}
|
|
12576
12579
|
if (proto.pricing) {
|
|
12577
12580
|
m.pricing = Object.keys(proto.pricing).reduce((obj, k) => { obj[k] = PricingPlanProductPricing.fromProto(proto.pricing[k]); return obj; }, {});
|
|
@@ -12583,7 +12586,7 @@ class UpdatePricingPlanProductRequest {
|
|
|
12583
12586
|
m.fieldMask = FieldMask.fromProto(proto.fieldMask);
|
|
12584
12587
|
}
|
|
12585
12588
|
if (proto.strategy) {
|
|
12586
|
-
m.strategy = enumStringToValue$
|
|
12589
|
+
m.strategy = enumStringToValue$h(BillingStrategy, proto.strategy);
|
|
12587
12590
|
}
|
|
12588
12591
|
if (proto.volumeCommitment) {
|
|
12589
12592
|
m.volumeCommitment = parseInt(proto.volumeCommitment, 10);
|
|
@@ -12665,7 +12668,7 @@ class UpsertWholesalePricingRequest {
|
|
|
12665
12668
|
m.termCommitment = Commitment.fromProto(proto.termCommitment);
|
|
12666
12669
|
}
|
|
12667
12670
|
if (proto.strategy) {
|
|
12668
|
-
m.strategy = enumStringToValue$
|
|
12671
|
+
m.strategy = enumStringToValue$h(BillingStrategy, proto.strategy);
|
|
12669
12672
|
}
|
|
12670
12673
|
if (proto.volumeCommitment) {
|
|
12671
12674
|
m.volumeCommitment = parseInt(proto.volumeCommitment, 10);
|
|
@@ -12714,7 +12717,7 @@ class UpsertWholesalePricingRequest {
|
|
|
12714
12717
|
}
|
|
12715
12718
|
}
|
|
12716
12719
|
|
|
12717
|
-
function enumStringToValue$
|
|
12720
|
+
function enumStringToValue$g(enumRef, value) {
|
|
12718
12721
|
if (typeof value === 'number') {
|
|
12719
12722
|
return value;
|
|
12720
12723
|
}
|
|
@@ -12725,7 +12728,7 @@ class CreateProductRequest {
|
|
|
12725
12728
|
let m = new CreateProductRequest();
|
|
12726
12729
|
m = Object.assign(m, proto);
|
|
12727
12730
|
if (proto.productType) {
|
|
12728
|
-
m.productType = enumStringToValue$
|
|
12731
|
+
m.productType = enumStringToValue$g(ProductType, proto.productType);
|
|
12729
12732
|
}
|
|
12730
12733
|
return m;
|
|
12731
12734
|
}
|
|
@@ -12829,7 +12832,7 @@ class ListProductsRequestListProductsFilters {
|
|
|
12829
12832
|
let m = new ListProductsRequestListProductsFilters();
|
|
12830
12833
|
m = Object.assign(m, proto);
|
|
12831
12834
|
if (proto.productType) {
|
|
12832
|
-
m.productType = proto.productType.map((v) => enumStringToValue$
|
|
12835
|
+
m.productType = proto.productType.map((v) => enumStringToValue$g(ProductType, v));
|
|
12833
12836
|
}
|
|
12834
12837
|
return m;
|
|
12835
12838
|
}
|
|
@@ -12925,7 +12928,7 @@ class Product {
|
|
|
12925
12928
|
let m = new Product();
|
|
12926
12929
|
m = Object.assign(m, proto);
|
|
12927
12930
|
if (proto.productType) {
|
|
12928
|
-
m.productType = enumStringToValue$
|
|
12931
|
+
m.productType = enumStringToValue$g(ProductType, proto.productType);
|
|
12929
12932
|
}
|
|
12930
12933
|
return m;
|
|
12931
12934
|
}
|
|
@@ -12992,7 +12995,7 @@ class UpdateProductRequest {
|
|
|
12992
12995
|
let m = new UpdateProductRequest();
|
|
12993
12996
|
m = Object.assign(m, proto);
|
|
12994
12997
|
if (proto.productType) {
|
|
12995
|
-
m.productType = enumStringToValue$
|
|
12998
|
+
m.productType = enumStringToValue$g(ProductType, proto.productType);
|
|
12996
12999
|
}
|
|
12997
13000
|
return m;
|
|
12998
13001
|
}
|
|
@@ -13023,7 +13026,7 @@ class UpdateProductRequest {
|
|
|
13023
13026
|
}
|
|
13024
13027
|
}
|
|
13025
13028
|
|
|
13026
|
-
function enumStringToValue$
|
|
13029
|
+
function enumStringToValue$f(enumRef, value) {
|
|
13027
13030
|
if (typeof value === 'number') {
|
|
13028
13031
|
return value;
|
|
13029
13032
|
}
|
|
@@ -13037,7 +13040,7 @@ class AppliedCredit {
|
|
|
13037
13040
|
m.appliedAmount = parseInt(proto.appliedAmount, 10);
|
|
13038
13041
|
}
|
|
13039
13042
|
if (proto.referenceType) {
|
|
13040
|
-
m.referenceType = enumStringToValue$
|
|
13043
|
+
m.referenceType = enumStringToValue$f(CreditType, proto.referenceType);
|
|
13041
13044
|
}
|
|
13042
13045
|
return m;
|
|
13043
13046
|
}
|
|
@@ -13066,7 +13069,7 @@ class ListPurchaseRequestListPurchaseBillingStrategyFilter {
|
|
|
13066
13069
|
let m = new ListPurchaseRequestListPurchaseBillingStrategyFilter();
|
|
13067
13070
|
m = Object.assign(m, proto);
|
|
13068
13071
|
if (proto.billingStrategy) {
|
|
13069
|
-
m.billingStrategy = proto.billingStrategy.map((v) => enumStringToValue$
|
|
13072
|
+
m.billingStrategy = proto.billingStrategy.map((v) => enumStringToValue$f(BillingStrategy, v));
|
|
13070
13073
|
}
|
|
13071
13074
|
return m;
|
|
13072
13075
|
}
|
|
@@ -13098,13 +13101,13 @@ class ListPurchaseRequestListPurchaseFilters {
|
|
|
13098
13101
|
m.billingStrategyFilter = ListPurchaseRequestListPurchaseBillingStrategyFilter.fromProto(proto.billingStrategyFilter);
|
|
13099
13102
|
}
|
|
13100
13103
|
if (proto.state) {
|
|
13101
|
-
m.state = enumStringToValue$
|
|
13104
|
+
m.state = enumStringToValue$f(ListPurchaseRequestState, proto.state);
|
|
13102
13105
|
}
|
|
13103
13106
|
if (proto.minPrice) {
|
|
13104
13107
|
m.minPrice = parseInt(proto.minPrice, 10);
|
|
13105
13108
|
}
|
|
13106
13109
|
if (proto.status) {
|
|
13107
|
-
m.status = enumStringToValue$
|
|
13110
|
+
m.status = enumStringToValue$f(PurchaseStatus, proto.status);
|
|
13108
13111
|
}
|
|
13109
13112
|
if (proto.dunningPauseStart) {
|
|
13110
13113
|
m.dunningPauseStart = new Date(proto.dunningPauseStart);
|
|
@@ -13236,7 +13239,7 @@ class ListPurchaseItemsResponse {
|
|
|
13236
13239
|
m.pagingMetadata = PagedResponseMetadata.fromProto(proto.pagingMetadata);
|
|
13237
13240
|
}
|
|
13238
13241
|
if (proto.currency) {
|
|
13239
|
-
m.currency = enumStringToValue$
|
|
13242
|
+
m.currency = enumStringToValue$f(Currency, proto.currency);
|
|
13240
13243
|
}
|
|
13241
13244
|
return m;
|
|
13242
13245
|
}
|
|
@@ -13387,13 +13390,13 @@ class Purchase {
|
|
|
13387
13390
|
m.total = parseInt(proto.total, 10);
|
|
13388
13391
|
}
|
|
13389
13392
|
if (proto.currency) {
|
|
13390
|
-
m.currency = enumStringToValue$
|
|
13393
|
+
m.currency = enumStringToValue$f(Currency, proto.currency);
|
|
13391
13394
|
}
|
|
13392
13395
|
if (proto.items) {
|
|
13393
13396
|
m.items = proto.items.map(PurchaseItem.fromProto);
|
|
13394
13397
|
}
|
|
13395
13398
|
if (proto.billingStrategy) {
|
|
13396
|
-
m.billingStrategy = enumStringToValue$
|
|
13399
|
+
m.billingStrategy = enumStringToValue$f(BillingStrategy, proto.billingStrategy);
|
|
13397
13400
|
}
|
|
13398
13401
|
if (proto.dunningAttempt) {
|
|
13399
13402
|
m.dunningAttempt = parseInt(proto.dunningAttempt, 10);
|
|
@@ -13402,7 +13405,7 @@ class Purchase {
|
|
|
13402
13405
|
m.voided = new Date(proto.voided);
|
|
13403
13406
|
}
|
|
13404
13407
|
if (proto.status) {
|
|
13405
|
-
m.status = enumStringToValue$
|
|
13408
|
+
m.status = enumStringToValue$f(PurchaseStatus, proto.status);
|
|
13406
13409
|
}
|
|
13407
13410
|
if (proto.creditAmount) {
|
|
13408
13411
|
m.creditAmount = parseInt(proto.creditAmount, 10);
|
|
@@ -13689,7 +13692,7 @@ class VoidPurchaseRequest {
|
|
|
13689
13692
|
}
|
|
13690
13693
|
}
|
|
13691
13694
|
|
|
13692
|
-
function enumStringToValue$
|
|
13695
|
+
function enumStringToValue$e(enumRef, value) {
|
|
13693
13696
|
if (typeof value === 'number') {
|
|
13694
13697
|
return value;
|
|
13695
13698
|
}
|
|
@@ -13703,10 +13706,10 @@ class CreateRefundRequest {
|
|
|
13703
13706
|
m.amount = parseInt(proto.amount, 10);
|
|
13704
13707
|
}
|
|
13705
13708
|
if (proto.reason) {
|
|
13706
|
-
m.reason = enumStringToValue$
|
|
13709
|
+
m.reason = enumStringToValue$e(RefundReason, proto.reason);
|
|
13707
13710
|
}
|
|
13708
13711
|
if (proto.referenceType) {
|
|
13709
|
-
m.referenceType = enumStringToValue$
|
|
13712
|
+
m.referenceType = enumStringToValue$e(ReferenceType, proto.referenceType);
|
|
13710
13713
|
}
|
|
13711
13714
|
return m;
|
|
13712
13715
|
}
|
|
@@ -13811,10 +13814,10 @@ class Refund {
|
|
|
13811
13814
|
m.amount = parseInt(proto.amount, 10);
|
|
13812
13815
|
}
|
|
13813
13816
|
if (proto.reason) {
|
|
13814
|
-
m.reason = enumStringToValue$
|
|
13817
|
+
m.reason = enumStringToValue$e(RefundReason, proto.reason);
|
|
13815
13818
|
}
|
|
13816
13819
|
if (proto.status) {
|
|
13817
|
-
m.status = enumStringToValue$
|
|
13820
|
+
m.status = enumStringToValue$e(RefundStatus, proto.status);
|
|
13818
13821
|
}
|
|
13819
13822
|
if (proto.created) {
|
|
13820
13823
|
m.created = new Date(proto.created);
|
|
@@ -13823,7 +13826,7 @@ class Refund {
|
|
|
13823
13826
|
m.updated = new Date(proto.updated);
|
|
13824
13827
|
}
|
|
13825
13828
|
if (proto.referenceType) {
|
|
13826
|
-
m.referenceType = enumStringToValue$
|
|
13829
|
+
m.referenceType = enumStringToValue$e(ReferenceType, proto.referenceType);
|
|
13827
13830
|
}
|
|
13828
13831
|
return m;
|
|
13829
13832
|
}
|
|
@@ -13875,7 +13878,7 @@ class Refund {
|
|
|
13875
13878
|
}
|
|
13876
13879
|
}
|
|
13877
13880
|
|
|
13878
|
-
function enumStringToValue$
|
|
13881
|
+
function enumStringToValue$d(enumRef, value) {
|
|
13879
13882
|
if (typeof value === 'number') {
|
|
13880
13883
|
return value;
|
|
13881
13884
|
}
|
|
@@ -13930,7 +13933,7 @@ class ListSalesCreditNoteRequestListSalesCreditNoteFilters {
|
|
|
13930
13933
|
let m = new ListSalesCreditNoteRequestListSalesCreditNoteFilters();
|
|
13931
13934
|
m = Object.assign(m, proto);
|
|
13932
13935
|
if (proto.statuses) {
|
|
13933
|
-
m.statuses = proto.statuses.map((v) => enumStringToValue$
|
|
13936
|
+
m.statuses = proto.statuses.map((v) => enumStringToValue$d(SalesCreditNoteStatus, v));
|
|
13934
13937
|
}
|
|
13935
13938
|
return m;
|
|
13936
13939
|
}
|
|
@@ -14020,7 +14023,7 @@ class SalesCreditNote {
|
|
|
14020
14023
|
m.dueDate = new Date(proto.dueDate);
|
|
14021
14024
|
}
|
|
14022
14025
|
if (proto.currency) {
|
|
14023
|
-
m.currency = enumStringToValue$
|
|
14026
|
+
m.currency = enumStringToValue$d(Currency, proto.currency);
|
|
14024
14027
|
}
|
|
14025
14028
|
if (proto.total) {
|
|
14026
14029
|
m.total = parseInt(proto.total, 10);
|
|
@@ -14029,7 +14032,7 @@ class SalesCreditNote {
|
|
|
14029
14032
|
m.outstanding = parseInt(proto.outstanding, 10);
|
|
14030
14033
|
}
|
|
14031
14034
|
if (proto.status) {
|
|
14032
|
-
m.status = enumStringToValue$
|
|
14035
|
+
m.status = enumStringToValue$d(SalesCreditNoteStatus, proto.status);
|
|
14033
14036
|
}
|
|
14034
14037
|
return m;
|
|
14035
14038
|
}
|
|
@@ -14087,7 +14090,7 @@ class SalesCreditNote {
|
|
|
14087
14090
|
}
|
|
14088
14091
|
}
|
|
14089
14092
|
|
|
14090
|
-
function enumStringToValue$
|
|
14093
|
+
function enumStringToValue$c(enumRef, value) {
|
|
14091
14094
|
if (typeof value === 'number') {
|
|
14092
14095
|
return value;
|
|
14093
14096
|
}
|
|
@@ -14144,10 +14147,10 @@ class ListSalesInvoiceRequestListSalesInvoiceFilters {
|
|
|
14144
14147
|
let m = new ListSalesInvoiceRequestListSalesInvoiceFilters();
|
|
14145
14148
|
m = Object.assign(m, proto);
|
|
14146
14149
|
if (proto.statuses) {
|
|
14147
|
-
m.statuses = proto.statuses.map((v) => enumStringToValue$
|
|
14150
|
+
m.statuses = proto.statuses.map((v) => enumStringToValue$c(SalesInvoiceStatus, v));
|
|
14148
14151
|
}
|
|
14149
14152
|
if (proto.paymentStatuses) {
|
|
14150
|
-
m.paymentStatuses = proto.paymentStatuses.map((v) => enumStringToValue$
|
|
14153
|
+
m.paymentStatuses = proto.paymentStatuses.map((v) => enumStringToValue$c(PaymentStatuses, v));
|
|
14151
14154
|
}
|
|
14152
14155
|
return m;
|
|
14153
14156
|
}
|
|
@@ -14275,16 +14278,16 @@ class SalesInvoice {
|
|
|
14275
14278
|
m.total = parseInt(proto.total, 10);
|
|
14276
14279
|
}
|
|
14277
14280
|
if (proto.currency) {
|
|
14278
|
-
m.currency = enumStringToValue$
|
|
14281
|
+
m.currency = enumStringToValue$c(Currency, proto.currency);
|
|
14279
14282
|
}
|
|
14280
14283
|
if (proto.status) {
|
|
14281
|
-
m.status = enumStringToValue$
|
|
14284
|
+
m.status = enumStringToValue$c(SalesInvoiceStatus, proto.status);
|
|
14282
14285
|
}
|
|
14283
14286
|
if (proto.outstanding) {
|
|
14284
14287
|
m.outstanding = parseInt(proto.outstanding, 10);
|
|
14285
14288
|
}
|
|
14286
14289
|
if (proto.type) {
|
|
14287
|
-
m.type = enumStringToValue$
|
|
14290
|
+
m.type = enumStringToValue$c(SalesInvoiceType, proto.type);
|
|
14288
14291
|
}
|
|
14289
14292
|
return m;
|
|
14290
14293
|
}
|
|
@@ -14388,7 +14391,7 @@ class SendSalesInvoiceReceiptEmailRequest {
|
|
|
14388
14391
|
}
|
|
14389
14392
|
}
|
|
14390
14393
|
|
|
14391
|
-
function enumStringToValue$
|
|
14394
|
+
function enumStringToValue$b(enumRef, value) {
|
|
14392
14395
|
if (typeof value === 'number') {
|
|
14393
14396
|
return value;
|
|
14394
14397
|
}
|
|
@@ -14497,10 +14500,10 @@ class ListTaxRulesRequestFilters {
|
|
|
14497
14500
|
let m = new ListTaxRulesRequestFilters();
|
|
14498
14501
|
m = Object.assign(m, proto);
|
|
14499
14502
|
if (proto.consumer) {
|
|
14500
|
-
m.consumer = enumStringToValue$
|
|
14503
|
+
m.consumer = enumStringToValue$b(Consumer, proto.consumer);
|
|
14501
14504
|
}
|
|
14502
14505
|
if (proto.entityType) {
|
|
14503
|
-
m.entityType = enumStringToValue$
|
|
14506
|
+
m.entityType = enumStringToValue$b(TaxRuleEntityType, proto.entityType);
|
|
14504
14507
|
}
|
|
14505
14508
|
return m;
|
|
14506
14509
|
}
|
|
@@ -14549,7 +14552,7 @@ class GetTaxProviderResponse {
|
|
|
14549
14552
|
let m = new GetTaxProviderResponse();
|
|
14550
14553
|
m = Object.assign(m, proto);
|
|
14551
14554
|
if (proto.taxProviderType) {
|
|
14552
|
-
m.taxProviderType = enumStringToValue$
|
|
14555
|
+
m.taxProviderType = enumStringToValue$b(TaxProviderType, proto.taxProviderType);
|
|
14553
14556
|
}
|
|
14554
14557
|
return m;
|
|
14555
14558
|
}
|
|
@@ -14673,7 +14676,7 @@ class TaxRuleProductProductIdentifier {
|
|
|
14673
14676
|
let m = new TaxRuleProductProductIdentifier();
|
|
14674
14677
|
m = Object.assign(m, proto);
|
|
14675
14678
|
if (proto.type) {
|
|
14676
|
-
m.type = enumStringToValue$
|
|
14679
|
+
m.type = enumStringToValue$b(ProductType, proto.type);
|
|
14677
14680
|
}
|
|
14678
14681
|
return m;
|
|
14679
14682
|
}
|
|
@@ -14702,13 +14705,13 @@ class ReplaceTaxRuleRequest {
|
|
|
14702
14705
|
let m = new ReplaceTaxRuleRequest();
|
|
14703
14706
|
m = Object.assign(m, proto);
|
|
14704
14707
|
if (proto.entityType) {
|
|
14705
|
-
m.entityType = enumStringToValue$
|
|
14708
|
+
m.entityType = enumStringToValue$b(TaxRuleEntityType, proto.entityType);
|
|
14706
14709
|
}
|
|
14707
14710
|
if (proto.type) {
|
|
14708
|
-
m.type = enumStringToValue$
|
|
14711
|
+
m.type = enumStringToValue$b(TaxRuleType, proto.type);
|
|
14709
14712
|
}
|
|
14710
14713
|
if (proto.consumer) {
|
|
14711
|
-
m.consumer = enumStringToValue$
|
|
14714
|
+
m.consumer = enumStringToValue$b(Consumer, proto.consumer);
|
|
14712
14715
|
}
|
|
14713
14716
|
return m;
|
|
14714
14717
|
}
|
|
@@ -14766,13 +14769,13 @@ class TaxRule {
|
|
|
14766
14769
|
let m = new TaxRule();
|
|
14767
14770
|
m = Object.assign(m, proto);
|
|
14768
14771
|
if (proto.entityType) {
|
|
14769
|
-
m.entityType = enumStringToValue$
|
|
14772
|
+
m.entityType = enumStringToValue$b(TaxRuleEntityType, proto.entityType);
|
|
14770
14773
|
}
|
|
14771
14774
|
if (proto.entity) {
|
|
14772
14775
|
m.entity = TaxRuleTaxRuleEntity.fromProto(proto.entity);
|
|
14773
14776
|
}
|
|
14774
14777
|
if (proto.type) {
|
|
14775
|
-
m.type = enumStringToValue$
|
|
14778
|
+
m.type = enumStringToValue$b(TaxRuleType, proto.type);
|
|
14776
14779
|
}
|
|
14777
14780
|
if (proto.taxRates) {
|
|
14778
14781
|
m.taxRates = proto.taxRates.map(TaxRate.fromProto);
|
|
@@ -14893,7 +14896,7 @@ class TaxRuleProduct {
|
|
|
14893
14896
|
}
|
|
14894
14897
|
}
|
|
14895
14898
|
|
|
14896
|
-
function enumStringToValue$
|
|
14899
|
+
function enumStringToValue$a(enumRef, value) {
|
|
14897
14900
|
if (typeof value === 'number') {
|
|
14898
14901
|
return value;
|
|
14899
14902
|
}
|
|
@@ -15033,7 +15036,7 @@ class ListContractDocumentsResponse {
|
|
|
15033
15036
|
}
|
|
15034
15037
|
}
|
|
15035
15038
|
|
|
15036
|
-
function enumStringToValue$
|
|
15039
|
+
function enumStringToValue$9(enumRef, value) {
|
|
15037
15040
|
if (typeof value === 'number') {
|
|
15038
15041
|
return value;
|
|
15039
15042
|
}
|
|
@@ -15099,7 +15102,7 @@ class RetailCustomerConfiguration {
|
|
|
15099
15102
|
m.netD = parseInt(proto.netD, 10);
|
|
15100
15103
|
}
|
|
15101
15104
|
if (proto.paymentMethodTypes) {
|
|
15102
|
-
m.paymentMethodTypes = proto.paymentMethodTypes.map((v) => enumStringToValue$
|
|
15105
|
+
m.paymentMethodTypes = proto.paymentMethodTypes.map((v) => enumStringToValue$9(PaymentMethodType, v));
|
|
15103
15106
|
}
|
|
15104
15107
|
return m;
|
|
15105
15108
|
}
|
|
@@ -15167,7 +15170,7 @@ class UpsertRetailCustomerConfigurationRequest {
|
|
|
15167
15170
|
m.netD = parseInt(proto.netD, 10);
|
|
15168
15171
|
}
|
|
15169
15172
|
if (proto.paymentMethodTypes) {
|
|
15170
|
-
m.paymentMethodTypes = proto.paymentMethodTypes.map((v) => enumStringToValue$
|
|
15173
|
+
m.paymentMethodTypes = proto.paymentMethodTypes.map((v) => enumStringToValue$9(PaymentMethodType, v));
|
|
15171
15174
|
}
|
|
15172
15175
|
if (proto.fieldMask) {
|
|
15173
15176
|
m.fieldMask = FieldMask.fromProto(proto.fieldMask);
|
|
@@ -15228,7 +15231,7 @@ class UpsertRetailCustomerConfigurationRequest {
|
|
|
15228
15231
|
}
|
|
15229
15232
|
}
|
|
15230
15233
|
|
|
15231
|
-
function enumStringToValue$
|
|
15234
|
+
function enumStringToValue$8(enumRef, value) {
|
|
15232
15235
|
if (typeof value === 'number') {
|
|
15233
15236
|
return value;
|
|
15234
15237
|
}
|
|
@@ -15345,7 +15348,7 @@ class GetBalanceResponse {
|
|
|
15345
15348
|
}
|
|
15346
15349
|
}
|
|
15347
15350
|
|
|
15348
|
-
function enumStringToValue$
|
|
15351
|
+
function enumStringToValue$7(enumRef, value) {
|
|
15349
15352
|
if (typeof value === 'number') {
|
|
15350
15353
|
return value;
|
|
15351
15354
|
}
|
|
@@ -15356,7 +15359,7 @@ class CreateMerchantServicesReportRun {
|
|
|
15356
15359
|
let m = new CreateMerchantServicesReportRun();
|
|
15357
15360
|
m = Object.assign(m, proto);
|
|
15358
15361
|
if (proto.reportType) {
|
|
15359
|
-
m.reportType = enumStringToValue$
|
|
15362
|
+
m.reportType = enumStringToValue$7(MerchantServicesReportRunType, proto.reportType);
|
|
15360
15363
|
}
|
|
15361
15364
|
if (proto.intervalStart) {
|
|
15362
15365
|
m.intervalStart = new Date(proto.intervalStart);
|
|
@@ -15420,10 +15423,10 @@ class MerchantServicesReportRun {
|
|
|
15420
15423
|
m.created = new Date(proto.created);
|
|
15421
15424
|
}
|
|
15422
15425
|
if (proto.reportType) {
|
|
15423
|
-
m.reportType = enumStringToValue$
|
|
15426
|
+
m.reportType = enumStringToValue$7(MerchantServicesReportRunType, proto.reportType);
|
|
15424
15427
|
}
|
|
15425
15428
|
if (proto.status) {
|
|
15426
|
-
m.status = enumStringToValue$
|
|
15429
|
+
m.status = enumStringToValue$7(MerchantServicesReportRunStatus, proto.status);
|
|
15427
15430
|
}
|
|
15428
15431
|
return m;
|
|
15429
15432
|
}
|
|
@@ -15454,7 +15457,7 @@ class MerchantServicesReportRun {
|
|
|
15454
15457
|
}
|
|
15455
15458
|
}
|
|
15456
15459
|
|
|
15457
|
-
function enumStringToValue$
|
|
15460
|
+
function enumStringToValue$6(enumRef, value) {
|
|
15458
15461
|
if (typeof value === 'number') {
|
|
15459
15462
|
return value;
|
|
15460
15463
|
}
|
|
@@ -15504,7 +15507,7 @@ class MCPOptions {
|
|
|
15504
15507
|
}
|
|
15505
15508
|
}
|
|
15506
15509
|
|
|
15507
|
-
function enumStringToValue$
|
|
15510
|
+
function enumStringToValue$5(enumRef, value) {
|
|
15508
15511
|
if (typeof value === 'number') {
|
|
15509
15512
|
return value;
|
|
15510
15513
|
}
|
|
@@ -15515,13 +15518,13 @@ class ListSubscriptionRelationshipsRequestFilters {
|
|
|
15515
15518
|
let m = new ListSubscriptionRelationshipsRequestFilters();
|
|
15516
15519
|
m = Object.assign(m, proto);
|
|
15517
15520
|
if (proto.originType) {
|
|
15518
|
-
m.originType = enumStringToValue$
|
|
15521
|
+
m.originType = enumStringToValue$5(EntityType, proto.originType);
|
|
15519
15522
|
}
|
|
15520
15523
|
if (proto.targetType) {
|
|
15521
|
-
m.targetType = enumStringToValue$
|
|
15524
|
+
m.targetType = enumStringToValue$5(EntityType, proto.targetType);
|
|
15522
15525
|
}
|
|
15523
15526
|
if (proto.relationshipType) {
|
|
15524
|
-
m.relationshipType = enumStringToValue$
|
|
15527
|
+
m.relationshipType = enumStringToValue$5(RelationshipType, proto.relationshipType);
|
|
15525
15528
|
}
|
|
15526
15529
|
return m;
|
|
15527
15530
|
}
|
|
@@ -15709,13 +15712,13 @@ class SubscriptionRelationship {
|
|
|
15709
15712
|
let m = new SubscriptionRelationship();
|
|
15710
15713
|
m = Object.assign(m, proto);
|
|
15711
15714
|
if (proto.originType) {
|
|
15712
|
-
m.originType = enumStringToValue$
|
|
15715
|
+
m.originType = enumStringToValue$5(EntityType, proto.originType);
|
|
15713
15716
|
}
|
|
15714
15717
|
if (proto.targetType) {
|
|
15715
|
-
m.targetType = enumStringToValue$
|
|
15718
|
+
m.targetType = enumStringToValue$5(EntityType, proto.targetType);
|
|
15716
15719
|
}
|
|
15717
15720
|
if (proto.relationshipType) {
|
|
15718
|
-
m.relationshipType = enumStringToValue$
|
|
15721
|
+
m.relationshipType = enumStringToValue$5(RelationshipType, proto.relationshipType);
|
|
15719
15722
|
}
|
|
15720
15723
|
if (proto.created) {
|
|
15721
15724
|
m.created = new Date(proto.created);
|
|
@@ -15773,7 +15776,7 @@ class SubscriptionRelationship {
|
|
|
15773
15776
|
}
|
|
15774
15777
|
}
|
|
15775
15778
|
|
|
15776
|
-
function enumStringToValue$
|
|
15779
|
+
function enumStringToValue$4(enumRef, value) {
|
|
15777
15780
|
if (typeof value === 'number') {
|
|
15778
15781
|
return value;
|
|
15779
15782
|
}
|
|
@@ -15879,7 +15882,7 @@ class SubscriptionPreset {
|
|
|
15879
15882
|
}
|
|
15880
15883
|
}
|
|
15881
15884
|
|
|
15882
|
-
function enumStringToValue$
|
|
15885
|
+
function enumStringToValue$3(enumRef, value) {
|
|
15883
15886
|
if (typeof value === 'number') {
|
|
15884
15887
|
return value;
|
|
15885
15888
|
}
|
|
@@ -15890,13 +15893,13 @@ class AppliedTo {
|
|
|
15890
15893
|
let m = new AppliedTo();
|
|
15891
15894
|
m = Object.assign(m, proto);
|
|
15892
15895
|
if (proto.referenceType) {
|
|
15893
|
-
m.referenceType = enumStringToValue$
|
|
15896
|
+
m.referenceType = enumStringToValue$3(AppliedReferenceType, proto.referenceType);
|
|
15894
15897
|
}
|
|
15895
15898
|
if (proto.amount) {
|
|
15896
15899
|
m.amount = parseInt(proto.amount, 10);
|
|
15897
15900
|
}
|
|
15898
15901
|
if (proto.creditNoteType) {
|
|
15899
|
-
m.creditNoteType = enumStringToValue$
|
|
15902
|
+
m.creditNoteType = enumStringToValue$3(CreditNoteType, proto.creditNoteType);
|
|
15900
15903
|
}
|
|
15901
15904
|
if (proto.appliedAt) {
|
|
15902
15905
|
m.appliedAt = new Date(proto.appliedAt);
|
|
@@ -16044,7 +16047,7 @@ class CreditNote {
|
|
|
16044
16047
|
m.items = proto.items.map(LineItem.fromProto);
|
|
16045
16048
|
}
|
|
16046
16049
|
if (proto.currency) {
|
|
16047
|
-
m.currency = enumStringToValue$
|
|
16050
|
+
m.currency = enumStringToValue$3(Currency, proto.currency);
|
|
16048
16051
|
}
|
|
16049
16052
|
if (proto.amountTax) {
|
|
16050
16053
|
m.amountTax = parseInt(proto.amountTax, 10);
|
|
@@ -16056,7 +16059,7 @@ class CreditNote {
|
|
|
16056
16059
|
m.notes = proto.notes.map(Note.fromProto);
|
|
16057
16060
|
}
|
|
16058
16061
|
if (proto.reason) {
|
|
16059
|
-
m.reason = enumStringToValue$
|
|
16062
|
+
m.reason = enumStringToValue$3(CreditNoteReason, proto.reason);
|
|
16060
16063
|
}
|
|
16061
16064
|
if (proto.appliedTo) {
|
|
16062
16065
|
m.appliedTo = proto.appliedTo.map(AppliedTo.fromProto);
|
|
@@ -16396,7 +16399,7 @@ class SendCreditNoteRequest {
|
|
|
16396
16399
|
}
|
|
16397
16400
|
}
|
|
16398
16401
|
|
|
16399
|
-
function enumStringToValue$
|
|
16402
|
+
function enumStringToValue$2(enumRef, value) {
|
|
16400
16403
|
if (typeof value === 'number') {
|
|
16401
16404
|
return value;
|
|
16402
16405
|
}
|
|
@@ -16564,7 +16567,7 @@ class VendorSplit {
|
|
|
16564
16567
|
}
|
|
16565
16568
|
}
|
|
16566
16569
|
|
|
16567
|
-
function enumStringToValue$
|
|
16570
|
+
function enumStringToValue$1(enumRef, value) {
|
|
16568
16571
|
if (typeof value === 'number') {
|
|
16569
16572
|
return value;
|
|
16570
16573
|
}
|
|
@@ -16761,146 +16764,6 @@ class UpdateAvalaraConfigurationResponse {
|
|
|
16761
16764
|
}
|
|
16762
16765
|
}
|
|
16763
16766
|
|
|
16764
|
-
function enumStringToValue$1(enumRef, value) {
|
|
16765
|
-
if (typeof value === 'number') {
|
|
16766
|
-
return value;
|
|
16767
|
-
}
|
|
16768
|
-
return enumRef[value];
|
|
16769
|
-
}
|
|
16770
|
-
class ListWholesaleTaxRulesRequest {
|
|
16771
|
-
static fromProto(proto) {
|
|
16772
|
-
let m = new ListWholesaleTaxRulesRequest();
|
|
16773
|
-
m = Object.assign(m, proto);
|
|
16774
|
-
if (proto.pagingOptions) {
|
|
16775
|
-
m.pagingOptions = PagedRequestOptions.fromProto(proto.pagingOptions);
|
|
16776
|
-
}
|
|
16777
|
-
return m;
|
|
16778
|
-
}
|
|
16779
|
-
constructor(kwargs) {
|
|
16780
|
-
if (!kwargs) {
|
|
16781
|
-
return;
|
|
16782
|
-
}
|
|
16783
|
-
Object.assign(this, kwargs);
|
|
16784
|
-
}
|
|
16785
|
-
toApiJson() {
|
|
16786
|
-
const toReturn = {};
|
|
16787
|
-
if (typeof this.pagingOptions !== 'undefined' && this.pagingOptions !== null) {
|
|
16788
|
-
toReturn['pagingOptions'] = 'toApiJson' in this.pagingOptions ? this.pagingOptions.toApiJson() : this.pagingOptions;
|
|
16789
|
-
}
|
|
16790
|
-
return toReturn;
|
|
16791
|
-
}
|
|
16792
|
-
}
|
|
16793
|
-
class ListWholesaleTaxRulesResponse {
|
|
16794
|
-
static fromProto(proto) {
|
|
16795
|
-
let m = new ListWholesaleTaxRulesResponse();
|
|
16796
|
-
m = Object.assign(m, proto);
|
|
16797
|
-
if (proto.taxRules) {
|
|
16798
|
-
m.taxRules = proto.taxRules.map(WholesaleTaxRule.fromProto);
|
|
16799
|
-
}
|
|
16800
|
-
if (proto.pagingMetadata) {
|
|
16801
|
-
m.pagingMetadata = PagedResponseMetadata.fromProto(proto.pagingMetadata);
|
|
16802
|
-
}
|
|
16803
|
-
return m;
|
|
16804
|
-
}
|
|
16805
|
-
constructor(kwargs) {
|
|
16806
|
-
if (!kwargs) {
|
|
16807
|
-
return;
|
|
16808
|
-
}
|
|
16809
|
-
Object.assign(this, kwargs);
|
|
16810
|
-
}
|
|
16811
|
-
toApiJson() {
|
|
16812
|
-
const toReturn = {};
|
|
16813
|
-
if (typeof this.taxRules !== 'undefined' && this.taxRules !== null) {
|
|
16814
|
-
toReturn['taxRules'] = 'toApiJson' in this.taxRules ? this.taxRules.toApiJson() : this.taxRules;
|
|
16815
|
-
}
|
|
16816
|
-
if (typeof this.pagingMetadata !== 'undefined' && this.pagingMetadata !== null) {
|
|
16817
|
-
toReturn['pagingMetadata'] = 'toApiJson' in this.pagingMetadata ? this.pagingMetadata.toApiJson() : this.pagingMetadata;
|
|
16818
|
-
}
|
|
16819
|
-
return toReturn;
|
|
16820
|
-
}
|
|
16821
|
-
}
|
|
16822
|
-
class UpsertWholesaleTaxRuleRequest {
|
|
16823
|
-
static fromProto(proto) {
|
|
16824
|
-
let m = new UpsertWholesaleTaxRuleRequest();
|
|
16825
|
-
m = Object.assign(m, proto);
|
|
16826
|
-
if (proto.item) {
|
|
16827
|
-
m.item = WholesaleTaxRule.fromProto(proto.item);
|
|
16828
|
-
}
|
|
16829
|
-
return m;
|
|
16830
|
-
}
|
|
16831
|
-
constructor(kwargs) {
|
|
16832
|
-
if (!kwargs) {
|
|
16833
|
-
return;
|
|
16834
|
-
}
|
|
16835
|
-
Object.assign(this, kwargs);
|
|
16836
|
-
}
|
|
16837
|
-
toApiJson() {
|
|
16838
|
-
const toReturn = {};
|
|
16839
|
-
if (typeof this.item !== 'undefined' && this.item !== null) {
|
|
16840
|
-
toReturn['item'] = 'toApiJson' in this.item ? this.item.toApiJson() : this.item;
|
|
16841
|
-
}
|
|
16842
|
-
return toReturn;
|
|
16843
|
-
}
|
|
16844
|
-
}
|
|
16845
|
-
class UpsertWholesaleTaxRuleResponse {
|
|
16846
|
-
static fromProto(proto) {
|
|
16847
|
-
let m = new UpsertWholesaleTaxRuleResponse();
|
|
16848
|
-
m = Object.assign(m, proto);
|
|
16849
|
-
if (proto.item) {
|
|
16850
|
-
m.item = WholesaleTaxRule.fromProto(proto.item);
|
|
16851
|
-
}
|
|
16852
|
-
return m;
|
|
16853
|
-
}
|
|
16854
|
-
constructor(kwargs) {
|
|
16855
|
-
if (!kwargs) {
|
|
16856
|
-
return;
|
|
16857
|
-
}
|
|
16858
|
-
Object.assign(this, kwargs);
|
|
16859
|
-
}
|
|
16860
|
-
toApiJson() {
|
|
16861
|
-
const toReturn = {};
|
|
16862
|
-
if (typeof this.item !== 'undefined' && this.item !== null) {
|
|
16863
|
-
toReturn['item'] = 'toApiJson' in this.item ? this.item.toApiJson() : this.item;
|
|
16864
|
-
}
|
|
16865
|
-
return toReturn;
|
|
16866
|
-
}
|
|
16867
|
-
}
|
|
16868
|
-
class WholesaleTaxRule {
|
|
16869
|
-
static fromProto(proto) {
|
|
16870
|
-
let m = new WholesaleTaxRule();
|
|
16871
|
-
m = Object.assign(m, proto);
|
|
16872
|
-
return m;
|
|
16873
|
-
}
|
|
16874
|
-
constructor(kwargs) {
|
|
16875
|
-
if (!kwargs) {
|
|
16876
|
-
return;
|
|
16877
|
-
}
|
|
16878
|
-
Object.assign(this, kwargs);
|
|
16879
|
-
}
|
|
16880
|
-
toApiJson() {
|
|
16881
|
-
const toReturn = {};
|
|
16882
|
-
if (typeof this.id !== 'undefined') {
|
|
16883
|
-
toReturn['id'] = this.id;
|
|
16884
|
-
}
|
|
16885
|
-
if (typeof this.countryCode !== 'undefined') {
|
|
16886
|
-
toReturn['countryCode'] = this.countryCode;
|
|
16887
|
-
}
|
|
16888
|
-
if (typeof this.stateCode !== 'undefined') {
|
|
16889
|
-
toReturn['stateCode'] = this.stateCode;
|
|
16890
|
-
}
|
|
16891
|
-
if (typeof this.taxCode !== 'undefined') {
|
|
16892
|
-
toReturn['taxCode'] = this.taxCode;
|
|
16893
|
-
}
|
|
16894
|
-
if (typeof this.externalTaxCode !== 'undefined') {
|
|
16895
|
-
toReturn['externalTaxCode'] = this.externalTaxCode;
|
|
16896
|
-
}
|
|
16897
|
-
if (typeof this.percentage !== 'undefined') {
|
|
16898
|
-
toReturn['percentage'] = this.percentage;
|
|
16899
|
-
}
|
|
16900
|
-
return toReturn;
|
|
16901
|
-
}
|
|
16902
|
-
}
|
|
16903
|
-
|
|
16904
16767
|
function enumStringToValue(enumRef, value) {
|
|
16905
16768
|
if (typeof value === 'number') {
|
|
16906
16769
|
return value;
|
|
@@ -19597,44 +19460,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.5", ngImpor
|
|
|
19597
19460
|
args: [{ providedIn: 'root' }]
|
|
19598
19461
|
}] });
|
|
19599
19462
|
|
|
19600
|
-
// *********************************
|
|
19601
|
-
// Code generated by sdkgen
|
|
19602
|
-
// DO NOT EDIT!.
|
|
19603
|
-
//
|
|
19604
|
-
// API Service.
|
|
19605
|
-
// *********************************
|
|
19606
|
-
class WholesaleTaxRuleApiService {
|
|
19607
|
-
constructor() {
|
|
19608
|
-
this.hostService = inject(HostService);
|
|
19609
|
-
this.http = inject(HttpClient);
|
|
19610
|
-
this._host = this.hostService.hostWithScheme;
|
|
19611
|
-
}
|
|
19612
|
-
apiOptions() {
|
|
19613
|
-
return {
|
|
19614
|
-
headers: new HttpHeaders({
|
|
19615
|
-
'Content-Type': 'application/json'
|
|
19616
|
-
}),
|
|
19617
|
-
withCredentials: true
|
|
19618
|
-
};
|
|
19619
|
-
}
|
|
19620
|
-
list(r) {
|
|
19621
|
-
const request = (r.toApiJson) ? r : new ListWholesaleTaxRulesRequest(r);
|
|
19622
|
-
return this.http.post(this._host + "/billing.v1.WholesaleTaxRuleService/List", request.toApiJson(), this.apiOptions())
|
|
19623
|
-
.pipe(map(resp => ListWholesaleTaxRulesResponse.fromProto(resp)));
|
|
19624
|
-
}
|
|
19625
|
-
upsert(r) {
|
|
19626
|
-
const request = (r.toApiJson) ? r : new UpsertWholesaleTaxRuleRequest(r);
|
|
19627
|
-
return this.http.post(this._host + "/billing.v1.WholesaleTaxRuleService/Upsert", request.toApiJson(), this.apiOptions())
|
|
19628
|
-
.pipe(map(resp => UpsertWholesaleTaxRuleResponse.fromProto(resp)));
|
|
19629
|
-
}
|
|
19630
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.5", ngImport: i0, type: WholesaleTaxRuleApiService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
19631
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.0.5", ngImport: i0, type: WholesaleTaxRuleApiService, providedIn: 'root' }); }
|
|
19632
|
-
}
|
|
19633
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.5", ngImport: i0, type: WholesaleTaxRuleApiService, decorators: [{
|
|
19634
|
-
type: Injectable,
|
|
19635
|
-
args: [{ providedIn: 'root' }]
|
|
19636
|
-
}] });
|
|
19637
|
-
|
|
19638
19463
|
// *********************************
|
|
19639
19464
|
// Code generated by sdkgen
|
|
19640
19465
|
// DO NOT EDIT!.
|
|
@@ -19649,5 +19474,5 @@ const usdConversionRate = 1.4;
|
|
|
19649
19474
|
* Generated bundle index. Do not edit.
|
|
19650
19475
|
*/
|
|
19651
19476
|
|
|
19652
|
-
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 };
|
|
19477
|
+
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 };
|
|
19653
19478
|
//# sourceMappingURL=vendasta-billing.mjs.map
|