@vendasta/billing 14.59.0 → 15.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 +2 -1
- package/esm2022/lib/_internal/interfaces/billable-item.interface.mjs +1 -1
- package/esm2022/lib/_internal/interfaces/index.mjs +1 -1
- package/esm2022/lib/_internal/interfaces/invoice.interface.mjs +1 -1
- package/esm2022/lib/_internal/interfaces/wholesale-tax-rule.interface.mjs +2 -0
- package/esm2022/lib/_internal/objects/billable-item.mjs +1 -13
- package/esm2022/lib/_internal/objects/index.mjs +2 -1
- package/esm2022/lib/_internal/objects/invoice.mjs +2 -2
- package/esm2022/lib/_internal/objects/wholesale-tax-rule.mjs +141 -0
- package/esm2022/lib/_internal/wholesale-tax-rule.api.service.mjs +45 -0
- package/fesm2022/vendasta-billing.mjs +396 -230
- package/fesm2022/vendasta-billing.mjs.map +1 -1
- package/lib/_internal/index.d.ts +1 -0
- package/lib/_internal/interfaces/billable-item.interface.d.ts +0 -2
- package/lib/_internal/interfaces/index.d.ts +1 -0
- package/lib/_internal/interfaces/invoice.interface.d.ts +1 -1
- package/lib/_internal/interfaces/wholesale-tax-rule.interface.d.ts +22 -0
- package/lib/_internal/objects/billable-item.d.ts +0 -2
- package/lib/_internal/objects/index.d.ts +1 -0
- package/lib/_internal/objects/invoice.d.ts +1 -1
- package/lib/_internal/objects/wholesale-tax-rule.d.ts +39 -0
- package/lib/_internal/wholesale-tax-rule.api.service.d.ts +14 -0
- package/package.json +1 -1
|
@@ -777,7 +777,7 @@ var CreditNoteReason;
|
|
|
777
777
|
// Enums Index.
|
|
778
778
|
// *********************************
|
|
779
779
|
|
|
780
|
-
function enumStringToValue$
|
|
780
|
+
function enumStringToValue$N(enumRef, value) {
|
|
781
781
|
if (typeof value === 'number') {
|
|
782
782
|
return value;
|
|
783
783
|
}
|
|
@@ -870,7 +870,7 @@ class PagedResponseMetadata {
|
|
|
870
870
|
}
|
|
871
871
|
}
|
|
872
872
|
|
|
873
|
-
function enumStringToValue$
|
|
873
|
+
function enumStringToValue$M(enumRef, value) {
|
|
874
874
|
if (typeof value === 'number') {
|
|
875
875
|
return value;
|
|
876
876
|
}
|
|
@@ -897,7 +897,7 @@ class FieldMask {
|
|
|
897
897
|
}
|
|
898
898
|
}
|
|
899
899
|
|
|
900
|
-
function enumStringToValue$
|
|
900
|
+
function enumStringToValue$L(enumRef, value) {
|
|
901
901
|
if (typeof value === 'number') {
|
|
902
902
|
return value;
|
|
903
903
|
}
|
|
@@ -933,7 +933,7 @@ class Commitment {
|
|
|
933
933
|
}
|
|
934
934
|
}
|
|
935
935
|
|
|
936
|
-
function enumStringToValue$
|
|
936
|
+
function enumStringToValue$K(enumRef, value) {
|
|
937
937
|
if (typeof value === 'number') {
|
|
938
938
|
return value;
|
|
939
939
|
}
|
|
@@ -973,10 +973,10 @@ class Fee {
|
|
|
973
973
|
let m = new Fee();
|
|
974
974
|
m = Object.assign(m, proto);
|
|
975
975
|
if (proto.amountType) {
|
|
976
|
-
m.amountType = enumStringToValue$
|
|
976
|
+
m.amountType = enumStringToValue$K(FeeAmountType, proto.amountType);
|
|
977
977
|
}
|
|
978
978
|
if (proto.feeType) {
|
|
979
|
-
m.feeType = enumStringToValue$
|
|
979
|
+
m.feeType = enumStringToValue$K(FeeType, proto.feeType);
|
|
980
980
|
}
|
|
981
981
|
return m;
|
|
982
982
|
}
|
|
@@ -1001,7 +1001,7 @@ class Fee {
|
|
|
1001
1001
|
}
|
|
1002
1002
|
}
|
|
1003
1003
|
|
|
1004
|
-
function enumStringToValue$
|
|
1004
|
+
function enumStringToValue$J(enumRef, value) {
|
|
1005
1005
|
if (typeof value === 'number') {
|
|
1006
1006
|
return value;
|
|
1007
1007
|
}
|
|
@@ -1038,7 +1038,7 @@ class CreatePricingPlanRequest {
|
|
|
1038
1038
|
let m = new CreatePricingPlanRequest();
|
|
1039
1039
|
m = Object.assign(m, proto);
|
|
1040
1040
|
if (proto.defaultBillingStrategy) {
|
|
1041
|
-
m.defaultBillingStrategy = enumStringToValue$
|
|
1041
|
+
m.defaultBillingStrategy = enumStringToValue$J(BillingStrategy, proto.defaultBillingStrategy);
|
|
1042
1042
|
}
|
|
1043
1043
|
return m;
|
|
1044
1044
|
}
|
|
@@ -1127,7 +1127,7 @@ class PricingPlan {
|
|
|
1127
1127
|
let m = new PricingPlan();
|
|
1128
1128
|
m = Object.assign(m, proto);
|
|
1129
1129
|
if (proto.defaultBillingStrategy) {
|
|
1130
|
-
m.defaultBillingStrategy = enumStringToValue$
|
|
1130
|
+
m.defaultBillingStrategy = enumStringToValue$J(BillingStrategy, proto.defaultBillingStrategy);
|
|
1131
1131
|
}
|
|
1132
1132
|
return m;
|
|
1133
1133
|
}
|
|
@@ -1156,7 +1156,7 @@ class PricingPlanProductPricing {
|
|
|
1156
1156
|
let m = new PricingPlanProductPricing();
|
|
1157
1157
|
m = Object.assign(m, proto);
|
|
1158
1158
|
if (proto.type) {
|
|
1159
|
-
m.type = enumStringToValue$
|
|
1159
|
+
m.type = enumStringToValue$J(ProductPricingType, proto.type);
|
|
1160
1160
|
}
|
|
1161
1161
|
if (proto.rules) {
|
|
1162
1162
|
m.rules = proto.rules.map(ProductPricingRule.fromProto);
|
|
@@ -1165,7 +1165,7 @@ class PricingPlanProductPricing {
|
|
|
1165
1165
|
m.setupFee = parseInt(proto.setupFee, 10);
|
|
1166
1166
|
}
|
|
1167
1167
|
if (proto.frequency) {
|
|
1168
|
-
m.frequency = enumStringToValue$
|
|
1168
|
+
m.frequency = enumStringToValue$J(Frequency, proto.frequency);
|
|
1169
1169
|
}
|
|
1170
1170
|
if (proto.fees) {
|
|
1171
1171
|
m.fees = proto.fees.map(Fee.fromProto);
|
|
@@ -1250,7 +1250,7 @@ class UpdatePricingPlanRequest {
|
|
|
1250
1250
|
m.fieldMask = FieldMask.fromProto(proto.fieldMask);
|
|
1251
1251
|
}
|
|
1252
1252
|
if (proto.defaultBillingStrategy) {
|
|
1253
|
-
m.defaultBillingStrategy = enumStringToValue$
|
|
1253
|
+
m.defaultBillingStrategy = enumStringToValue$J(BillingStrategy, proto.defaultBillingStrategy);
|
|
1254
1254
|
}
|
|
1255
1255
|
return m;
|
|
1256
1256
|
}
|
|
@@ -1295,7 +1295,7 @@ class UpdatePricingPlanResponse {
|
|
|
1295
1295
|
}
|
|
1296
1296
|
}
|
|
1297
1297
|
|
|
1298
|
-
function enumStringToValue$
|
|
1298
|
+
function enumStringToValue$I(enumRef, value) {
|
|
1299
1299
|
if (typeof value === 'number') {
|
|
1300
1300
|
return value;
|
|
1301
1301
|
}
|
|
@@ -1332,16 +1332,16 @@ class ProductPricing {
|
|
|
1332
1332
|
let m = new ProductPricing();
|
|
1333
1333
|
m = Object.assign(m, proto);
|
|
1334
1334
|
if (proto.strategy) {
|
|
1335
|
-
m.strategy = enumStringToValue$
|
|
1335
|
+
m.strategy = enumStringToValue$I(BillingStrategy, proto.strategy);
|
|
1336
1336
|
}
|
|
1337
1337
|
if (proto.pricingType) {
|
|
1338
|
-
m.pricingType = enumStringToValue$
|
|
1338
|
+
m.pricingType = enumStringToValue$I(ProductPricingType, proto.pricingType);
|
|
1339
1339
|
}
|
|
1340
1340
|
if (proto.currency) {
|
|
1341
|
-
m.currency = enumStringToValue$
|
|
1341
|
+
m.currency = enumStringToValue$I(Currency, proto.currency);
|
|
1342
1342
|
}
|
|
1343
1343
|
if (proto.frequency) {
|
|
1344
|
-
m.frequency = enumStringToValue$
|
|
1344
|
+
m.frequency = enumStringToValue$I(Frequency, proto.frequency);
|
|
1345
1345
|
}
|
|
1346
1346
|
if (proto.pricingRules) {
|
|
1347
1347
|
m.pricingRules = proto.pricingRules.map(ProductPricingRule.fromProto);
|
|
@@ -1412,7 +1412,7 @@ class WholesaleCostItemRequest {
|
|
|
1412
1412
|
m.quantity = parseInt(proto.quantity, 10);
|
|
1413
1413
|
}
|
|
1414
1414
|
if (proto.frequency) {
|
|
1415
|
-
m.frequency = enumStringToValue$
|
|
1415
|
+
m.frequency = enumStringToValue$I(Frequency, proto.frequency);
|
|
1416
1416
|
}
|
|
1417
1417
|
return m;
|
|
1418
1418
|
}
|
|
@@ -1437,7 +1437,7 @@ class WholesaleCostItemRequest {
|
|
|
1437
1437
|
}
|
|
1438
1438
|
}
|
|
1439
1439
|
|
|
1440
|
-
function enumStringToValue$
|
|
1440
|
+
function enumStringToValue$H(enumRef, value) {
|
|
1441
1441
|
if (typeof value === 'number') {
|
|
1442
1442
|
return value;
|
|
1443
1443
|
}
|
|
@@ -1448,7 +1448,7 @@ class SubscribeValidation {
|
|
|
1448
1448
|
let m = new SubscribeValidation();
|
|
1449
1449
|
m = Object.assign(m, proto);
|
|
1450
1450
|
if (proto.status) {
|
|
1451
|
-
m.status = enumStringToValue$
|
|
1451
|
+
m.status = enumStringToValue$H(SubscribeValidationStatus, proto.status);
|
|
1452
1452
|
}
|
|
1453
1453
|
return m;
|
|
1454
1454
|
}
|
|
@@ -1467,7 +1467,7 @@ class SubscribeValidation {
|
|
|
1467
1467
|
}
|
|
1468
1468
|
}
|
|
1469
1469
|
|
|
1470
|
-
function enumStringToValue$
|
|
1470
|
+
function enumStringToValue$G(enumRef, value) {
|
|
1471
1471
|
if (typeof value === 'number') {
|
|
1472
1472
|
return value;
|
|
1473
1473
|
}
|
|
@@ -1594,7 +1594,7 @@ class ChangeFrequencyRequest {
|
|
|
1594
1594
|
let m = new ChangeFrequencyRequest();
|
|
1595
1595
|
m = Object.assign(m, proto);
|
|
1596
1596
|
if (proto.frequency) {
|
|
1597
|
-
m.frequency = enumStringToValue$
|
|
1597
|
+
m.frequency = enumStringToValue$G(Frequency, proto.frequency);
|
|
1598
1598
|
}
|
|
1599
1599
|
return m;
|
|
1600
1600
|
}
|
|
@@ -1670,7 +1670,7 @@ class CreateSubscriptionRequest {
|
|
|
1670
1670
|
m.proratedTo = new Date(proto.proratedTo);
|
|
1671
1671
|
}
|
|
1672
1672
|
if (proto.renewalState) {
|
|
1673
|
-
m.renewalState = enumStringToValue$
|
|
1673
|
+
m.renewalState = enumStringToValue$G(RenewalState, proto.renewalState);
|
|
1674
1674
|
}
|
|
1675
1675
|
if (proto.customUnitPrice) {
|
|
1676
1676
|
m.customUnitPrice = parseInt(proto.customUnitPrice, 10);
|
|
@@ -1679,16 +1679,16 @@ class CreateSubscriptionRequest {
|
|
|
1679
1679
|
m.alignWith = AlignmentSubscription.fromProto(proto.alignWith);
|
|
1680
1680
|
}
|
|
1681
1681
|
if (proto.frequency) {
|
|
1682
|
-
m.frequency = enumStringToValue$
|
|
1682
|
+
m.frequency = enumStringToValue$G(Frequency, proto.frequency);
|
|
1683
1683
|
}
|
|
1684
1684
|
if (proto.retailAmount) {
|
|
1685
1685
|
m.retailAmount = parseInt(proto.retailAmount, 10);
|
|
1686
1686
|
}
|
|
1687
1687
|
if (proto.retailFrequency) {
|
|
1688
|
-
m.retailFrequency = enumStringToValue$
|
|
1688
|
+
m.retailFrequency = enumStringToValue$G(Frequency, proto.retailFrequency);
|
|
1689
1689
|
}
|
|
1690
1690
|
if (proto.consumer) {
|
|
1691
|
-
m.consumer = enumStringToValue$
|
|
1691
|
+
m.consumer = enumStringToValue$G(Consumer, proto.consumer);
|
|
1692
1692
|
}
|
|
1693
1693
|
if (proto.renewalStart) {
|
|
1694
1694
|
m.renewalStart = new Date(proto.renewalStart);
|
|
@@ -1962,7 +1962,7 @@ class Subscription {
|
|
|
1962
1962
|
m.billingStart = new Date(proto.billingStart);
|
|
1963
1963
|
}
|
|
1964
1964
|
if (proto.renewalState) {
|
|
1965
|
-
m.renewalState = enumStringToValue$
|
|
1965
|
+
m.renewalState = enumStringToValue$G(RenewalState, proto.renewalState);
|
|
1966
1966
|
}
|
|
1967
1967
|
if (proto.proratedTo) {
|
|
1968
1968
|
m.proratedTo = new Date(proto.proratedTo);
|
|
@@ -1974,16 +1974,16 @@ class Subscription {
|
|
|
1974
1974
|
m.alignWith = AlignmentSubscription.fromProto(proto.alignWith);
|
|
1975
1975
|
}
|
|
1976
1976
|
if (proto.frequency) {
|
|
1977
|
-
m.frequency = enumStringToValue$
|
|
1977
|
+
m.frequency = enumStringToValue$G(Frequency, proto.frequency);
|
|
1978
1978
|
}
|
|
1979
1979
|
if (proto.retailAmount) {
|
|
1980
1980
|
m.retailAmount = parseInt(proto.retailAmount, 10);
|
|
1981
1981
|
}
|
|
1982
1982
|
if (proto.retailFrequency) {
|
|
1983
|
-
m.retailFrequency = enumStringToValue$
|
|
1983
|
+
m.retailFrequency = enumStringToValue$G(Frequency, proto.retailFrequency);
|
|
1984
1984
|
}
|
|
1985
1985
|
if (proto.consumer) {
|
|
1986
|
-
m.consumer = enumStringToValue$
|
|
1986
|
+
m.consumer = enumStringToValue$G(Consumer, proto.consumer);
|
|
1987
1987
|
}
|
|
1988
1988
|
if (proto.renewalStart) {
|
|
1989
1989
|
m.renewalStart = new Date(proto.renewalStart);
|
|
@@ -2075,7 +2075,7 @@ class CanCreateSubscriptionsRequestSubscriptionItem {
|
|
|
2075
2075
|
let m = new CanCreateSubscriptionsRequestSubscriptionItem();
|
|
2076
2076
|
m = Object.assign(m, proto);
|
|
2077
2077
|
if (proto.frequency) {
|
|
2078
|
-
m.frequency = enumStringToValue$
|
|
2078
|
+
m.frequency = enumStringToValue$G(Frequency, proto.frequency);
|
|
2079
2079
|
}
|
|
2080
2080
|
if (proto.quantity) {
|
|
2081
2081
|
m.quantity = parseInt(proto.quantity, 10);
|
|
@@ -2129,7 +2129,7 @@ class ValidateResponse {
|
|
|
2129
2129
|
}
|
|
2130
2130
|
}
|
|
2131
2131
|
|
|
2132
|
-
function enumStringToValue$
|
|
2132
|
+
function enumStringToValue$F(enumRef, value) {
|
|
2133
2133
|
if (typeof value === 'number') {
|
|
2134
2134
|
return value;
|
|
2135
2135
|
}
|
|
@@ -2272,7 +2272,7 @@ class RSGSource {
|
|
|
2272
2272
|
let m = new RSGSource();
|
|
2273
2273
|
m = Object.assign(m, proto);
|
|
2274
2274
|
if (proto.sourceType) {
|
|
2275
|
-
m.sourceType = enumStringToValue$
|
|
2275
|
+
m.sourceType = enumStringToValue$F(RSGSourceType, proto.sourceType);
|
|
2276
2276
|
}
|
|
2277
2277
|
return m;
|
|
2278
2278
|
}
|
|
@@ -2298,7 +2298,7 @@ class RetailSubscriptionGroup {
|
|
|
2298
2298
|
let m = new RetailSubscriptionGroup();
|
|
2299
2299
|
m = Object.assign(m, proto);
|
|
2300
2300
|
if (proto.displayOption) {
|
|
2301
|
-
m.displayOption = enumStringToValue$
|
|
2301
|
+
m.displayOption = enumStringToValue$F(DisplayOption, proto.displayOption);
|
|
2302
2302
|
}
|
|
2303
2303
|
if (proto.source) {
|
|
2304
2304
|
m.source = RSGSource.fromProto(proto.source);
|
|
@@ -2387,7 +2387,7 @@ class UpdateRetailSubscriptionGroupResponse {
|
|
|
2387
2387
|
}
|
|
2388
2388
|
}
|
|
2389
2389
|
|
|
2390
|
-
function enumStringToValue$
|
|
2390
|
+
function enumStringToValue$E(enumRef, value) {
|
|
2391
2391
|
if (typeof value === 'number') {
|
|
2392
2392
|
return value;
|
|
2393
2393
|
}
|
|
@@ -2497,7 +2497,7 @@ class BillableItem {
|
|
|
2497
2497
|
m.updated = new Date(proto.updated);
|
|
2498
2498
|
}
|
|
2499
2499
|
if (proto.frequency) {
|
|
2500
|
-
m.frequency = enumStringToValue$
|
|
2500
|
+
m.frequency = enumStringToValue$E(Frequency, proto.frequency);
|
|
2501
2501
|
}
|
|
2502
2502
|
if (proto.nextRenewal) {
|
|
2503
2503
|
m.nextRenewal = new Date(proto.nextRenewal);
|
|
@@ -2509,7 +2509,7 @@ class BillableItem {
|
|
|
2509
2509
|
m.customUnitPrice = parseInt(proto.customUnitPrice, 10);
|
|
2510
2510
|
}
|
|
2511
2511
|
if (proto.retailFrequency) {
|
|
2512
|
-
m.retailFrequency = enumStringToValue$
|
|
2512
|
+
m.retailFrequency = enumStringToValue$E(Frequency, proto.retailFrequency);
|
|
2513
2513
|
}
|
|
2514
2514
|
if (proto.nextRetailRenewal) {
|
|
2515
2515
|
m.nextRetailRenewal = new Date(proto.nextRetailRenewal);
|
|
@@ -2518,7 +2518,7 @@ class BillableItem {
|
|
|
2518
2518
|
m.retailUnitPrice = parseInt(proto.retailUnitPrice, 10);
|
|
2519
2519
|
}
|
|
2520
2520
|
if (proto.status) {
|
|
2521
|
-
m.status = enumStringToValue$
|
|
2521
|
+
m.status = enumStringToValue$E(SubscriptionStatus, proto.status);
|
|
2522
2522
|
}
|
|
2523
2523
|
if (proto.price) {
|
|
2524
2524
|
m.price = ProductPricing.fromProto(proto.price);
|
|
@@ -2527,20 +2527,14 @@ class BillableItem {
|
|
|
2527
2527
|
m.deleted = new Date(proto.deleted);
|
|
2528
2528
|
}
|
|
2529
2529
|
if (proto.source) {
|
|
2530
|
-
m.source = enumStringToValue$
|
|
2530
|
+
m.source = enumStringToValue$E(Source, proto.source);
|
|
2531
2531
|
}
|
|
2532
2532
|
if (proto.consumer) {
|
|
2533
|
-
m.consumer = enumStringToValue$
|
|
2533
|
+
m.consumer = enumStringToValue$E(Consumer, proto.consumer);
|
|
2534
2534
|
}
|
|
2535
2535
|
if (proto.billingCycleAnchor) {
|
|
2536
2536
|
m.billingCycleAnchor = new Date(proto.billingCycleAnchor);
|
|
2537
2537
|
}
|
|
2538
|
-
if (proto.nextServicePeriodStart) {
|
|
2539
|
-
m.nextServicePeriodStart = new Date(proto.nextServicePeriodStart);
|
|
2540
|
-
}
|
|
2541
|
-
if (proto.nextServicePeriodEnd) {
|
|
2542
|
-
m.nextServicePeriodEnd = new Date(proto.nextServicePeriodEnd);
|
|
2543
|
-
}
|
|
2544
2538
|
if (proto.nextInvoiceDate) {
|
|
2545
2539
|
m.nextInvoiceDate = new Date(proto.nextInvoiceDate);
|
|
2546
2540
|
}
|
|
@@ -2635,12 +2629,6 @@ class BillableItem {
|
|
|
2635
2629
|
if (typeof this.billingCycleAnchor !== 'undefined' && this.billingCycleAnchor !== null) {
|
|
2636
2630
|
toReturn['billingCycleAnchor'] = 'toApiJson' in this.billingCycleAnchor ? this.billingCycleAnchor.toApiJson() : this.billingCycleAnchor;
|
|
2637
2631
|
}
|
|
2638
|
-
if (typeof this.nextServicePeriodStart !== 'undefined' && this.nextServicePeriodStart !== null) {
|
|
2639
|
-
toReturn['nextServicePeriodStart'] = 'toApiJson' in this.nextServicePeriodStart ? this.nextServicePeriodStart.toApiJson() : this.nextServicePeriodStart;
|
|
2640
|
-
}
|
|
2641
|
-
if (typeof this.nextServicePeriodEnd !== 'undefined' && this.nextServicePeriodEnd !== null) {
|
|
2642
|
-
toReturn['nextServicePeriodEnd'] = 'toApiJson' in this.nextServicePeriodEnd ? this.nextServicePeriodEnd.toApiJson() : this.nextServicePeriodEnd;
|
|
2643
|
-
}
|
|
2644
2632
|
if (typeof this.nextInvoiceDate !== 'undefined' && this.nextInvoiceDate !== null) {
|
|
2645
2633
|
toReturn['nextInvoiceDate'] = 'toApiJson' in this.nextInvoiceDate ? this.nextInvoiceDate.toApiJson() : this.nextInvoiceDate;
|
|
2646
2634
|
}
|
|
@@ -2821,7 +2809,7 @@ class ExportSubscriptionsRequest {
|
|
|
2821
2809
|
m.filters = ListSubscriptionsRequestFilters.fromProto(proto.filters);
|
|
2822
2810
|
}
|
|
2823
2811
|
if (proto.consumer) {
|
|
2824
|
-
m.consumer = enumStringToValue$
|
|
2812
|
+
m.consumer = enumStringToValue$E(Consumer, proto.consumer);
|
|
2825
2813
|
}
|
|
2826
2814
|
return m;
|
|
2827
2815
|
}
|
|
@@ -2873,7 +2861,7 @@ class ListSubscriptionsRequestFilters {
|
|
|
2873
2861
|
let m = new ListSubscriptionsRequestFilters();
|
|
2874
2862
|
m = Object.assign(m, proto);
|
|
2875
2863
|
if (proto.status) {
|
|
2876
|
-
m.status = enumStringToValue$
|
|
2864
|
+
m.status = enumStringToValue$E(SubscriptionStatus, proto.status);
|
|
2877
2865
|
}
|
|
2878
2866
|
if (proto.expiredDateGte) {
|
|
2879
2867
|
m.expiredDateGte = new Date(proto.expiredDateGte);
|
|
@@ -2882,7 +2870,7 @@ class ListSubscriptionsRequestFilters {
|
|
|
2882
2870
|
m.expiredDateLte = new Date(proto.expiredDateLte);
|
|
2883
2871
|
}
|
|
2884
2872
|
if (proto.frequencies) {
|
|
2885
|
-
m.frequencies = proto.frequencies.map((v) => enumStringToValue$
|
|
2873
|
+
m.frequencies = proto.frequencies.map((v) => enumStringToValue$E(Frequency, v));
|
|
2886
2874
|
}
|
|
2887
2875
|
return m;
|
|
2888
2876
|
}
|
|
@@ -3228,7 +3216,7 @@ class BillableItemRetailSubscriptionGroup {
|
|
|
3228
3216
|
let m = new BillableItemRetailSubscriptionGroup();
|
|
3229
3217
|
m = Object.assign(m, proto);
|
|
3230
3218
|
if (proto.displayOption) {
|
|
3231
|
-
m.displayOption = enumStringToValue$
|
|
3219
|
+
m.displayOption = enumStringToValue$E(DisplayOption, proto.displayOption);
|
|
3232
3220
|
}
|
|
3233
3221
|
return m;
|
|
3234
3222
|
}
|
|
@@ -3389,7 +3377,7 @@ class UpdateSubscriptionResponse {
|
|
|
3389
3377
|
}
|
|
3390
3378
|
}
|
|
3391
3379
|
|
|
3392
|
-
function enumStringToValue$
|
|
3380
|
+
function enumStringToValue$D(enumRef, value) {
|
|
3393
3381
|
if (typeof value === 'number') {
|
|
3394
3382
|
return value;
|
|
3395
3383
|
}
|
|
@@ -3400,7 +3388,7 @@ class AppliedDiscount {
|
|
|
3400
3388
|
let m = new AppliedDiscount();
|
|
3401
3389
|
m = Object.assign(m, proto);
|
|
3402
3390
|
if (proto.type) {
|
|
3403
|
-
m.type = enumStringToValue$
|
|
3391
|
+
m.type = enumStringToValue$D(DiscountType, proto.type);
|
|
3404
3392
|
}
|
|
3405
3393
|
if (proto.value) {
|
|
3406
3394
|
m.value = parseInt(proto.value, 10);
|
|
@@ -3437,7 +3425,7 @@ class AppliedDiscount {
|
|
|
3437
3425
|
}
|
|
3438
3426
|
}
|
|
3439
3427
|
|
|
3440
|
-
function enumStringToValue$
|
|
3428
|
+
function enumStringToValue$C(enumRef, value) {
|
|
3441
3429
|
if (typeof value === 'number') {
|
|
3442
3430
|
return value;
|
|
3443
3431
|
}
|
|
@@ -3495,7 +3483,7 @@ class BundleItem {
|
|
|
3495
3483
|
let m = new BundleItem();
|
|
3496
3484
|
m = Object.assign(m, proto);
|
|
3497
3485
|
if (proto.discountType) {
|
|
3498
|
-
m.discountType = enumStringToValue$
|
|
3486
|
+
m.discountType = enumStringToValue$C(DiscountType, proto.discountType);
|
|
3499
3487
|
}
|
|
3500
3488
|
if (proto.discountAmount) {
|
|
3501
3489
|
m.discountAmount = parseInt(proto.discountAmount, 10);
|
|
@@ -3753,7 +3741,7 @@ class BundlePricingPriceAndFrequency {
|
|
|
3753
3741
|
let m = new BundlePricingPriceAndFrequency();
|
|
3754
3742
|
m = Object.assign(m, proto);
|
|
3755
3743
|
if (proto.frequency) {
|
|
3756
|
-
m.frequency = enumStringToValue$
|
|
3744
|
+
m.frequency = enumStringToValue$C(Frequency, proto.frequency);
|
|
3757
3745
|
}
|
|
3758
3746
|
if (proto.effectivePrice) {
|
|
3759
3747
|
m.effectivePrice = parseInt(proto.effectivePrice, 10);
|
|
@@ -3825,7 +3813,7 @@ class UpsertBundleRequest {
|
|
|
3825
3813
|
}
|
|
3826
3814
|
}
|
|
3827
3815
|
|
|
3828
|
-
function enumStringToValue$
|
|
3816
|
+
function enumStringToValue$B(enumRef, value) {
|
|
3829
3817
|
if (typeof value === 'number') {
|
|
3830
3818
|
return value;
|
|
3831
3819
|
}
|
|
@@ -3842,7 +3830,7 @@ class Contract {
|
|
|
3842
3830
|
m.created = new Date(proto.created);
|
|
3843
3831
|
}
|
|
3844
3832
|
if (proto.currency) {
|
|
3845
|
-
m.currency = enumStringToValue$
|
|
3833
|
+
m.currency = enumStringToValue$B(Currency, proto.currency);
|
|
3846
3834
|
}
|
|
3847
3835
|
if (proto.signed) {
|
|
3848
3836
|
m.signed = new Date(proto.signed);
|
|
@@ -3863,7 +3851,7 @@ class Contract {
|
|
|
3863
3851
|
m.end = new Date(proto.end);
|
|
3864
3852
|
}
|
|
3865
3853
|
if (proto.subscriptionUpdateStatus) {
|
|
3866
|
-
m.subscriptionUpdateStatus = enumStringToValue$
|
|
3854
|
+
m.subscriptionUpdateStatus = enumStringToValue$B(ContractSubscriptionStatus, proto.subscriptionUpdateStatus);
|
|
3867
3855
|
}
|
|
3868
3856
|
return m;
|
|
3869
3857
|
}
|
|
@@ -4063,7 +4051,7 @@ class GetMerchantWholesaleCurrencyResponse {
|
|
|
4063
4051
|
let m = new GetMerchantWholesaleCurrencyResponse();
|
|
4064
4052
|
m = Object.assign(m, proto);
|
|
4065
4053
|
if (proto.currency) {
|
|
4066
|
-
m.currency = enumStringToValue$
|
|
4054
|
+
m.currency = enumStringToValue$B(Currency, proto.currency);
|
|
4067
4055
|
}
|
|
4068
4056
|
return m;
|
|
4069
4057
|
}
|
|
@@ -4318,7 +4306,7 @@ class UpdateContractSubscriptionRequest {
|
|
|
4318
4306
|
let m = new UpdateContractSubscriptionRequest();
|
|
4319
4307
|
m = Object.assign(m, proto);
|
|
4320
4308
|
if (proto.frequency) {
|
|
4321
|
-
m.frequency = enumStringToValue$
|
|
4309
|
+
m.frequency = enumStringToValue$B(Frequency, proto.frequency);
|
|
4322
4310
|
}
|
|
4323
4311
|
return m;
|
|
4324
4312
|
}
|
|
@@ -4343,7 +4331,7 @@ class UpdateContractSubscriptionRequest {
|
|
|
4343
4331
|
}
|
|
4344
4332
|
}
|
|
4345
4333
|
|
|
4346
|
-
function enumStringToValue$
|
|
4334
|
+
function enumStringToValue$A(enumRef, value) {
|
|
4347
4335
|
if (typeof value === 'number') {
|
|
4348
4336
|
return value;
|
|
4349
4337
|
}
|
|
@@ -4360,7 +4348,7 @@ class CustomerSummary {
|
|
|
4360
4348
|
m.purchaseItemTotal = parseInt(proto.purchaseItemTotal, 10);
|
|
4361
4349
|
}
|
|
4362
4350
|
if (proto.currency) {
|
|
4363
|
-
m.currency = enumStringToValue$
|
|
4351
|
+
m.currency = enumStringToValue$A(Currency, proto.currency);
|
|
4364
4352
|
}
|
|
4365
4353
|
return m;
|
|
4366
4354
|
}
|
|
@@ -4446,7 +4434,7 @@ class GetMultiCustomerSummariesResponse {
|
|
|
4446
4434
|
}
|
|
4447
4435
|
}
|
|
4448
4436
|
|
|
4449
|
-
function enumStringToValue$
|
|
4437
|
+
function enumStringToValue$z(enumRef, value) {
|
|
4450
4438
|
if (typeof value === 'number') {
|
|
4451
4439
|
return value;
|
|
4452
4440
|
}
|
|
@@ -4606,7 +4594,7 @@ class SetDefaultBankAccountRequest {
|
|
|
4606
4594
|
}
|
|
4607
4595
|
}
|
|
4608
4596
|
|
|
4609
|
-
function enumStringToValue$
|
|
4597
|
+
function enumStringToValue$y(enumRef, value) {
|
|
4610
4598
|
if (typeof value === 'number') {
|
|
4611
4599
|
return value;
|
|
4612
4600
|
}
|
|
@@ -4617,7 +4605,7 @@ class ProductSummaryDiscount {
|
|
|
4617
4605
|
let m = new ProductSummaryDiscount();
|
|
4618
4606
|
m = Object.assign(m, proto);
|
|
4619
4607
|
if (proto.type) {
|
|
4620
|
-
m.type = enumStringToValue$
|
|
4608
|
+
m.type = enumStringToValue$y(ProductSummaryDiscountDiscountType, proto.type);
|
|
4621
4609
|
}
|
|
4622
4610
|
if (proto.value) {
|
|
4623
4611
|
m.value = parseInt(proto.value, 10);
|
|
@@ -4911,7 +4899,7 @@ class Pricing {
|
|
|
4911
4899
|
let m = new Pricing();
|
|
4912
4900
|
m = Object.assign(m, proto);
|
|
4913
4901
|
if (proto.type) {
|
|
4914
|
-
m.type = enumStringToValue$
|
|
4902
|
+
m.type = enumStringToValue$y(PricingRuleType, proto.type);
|
|
4915
4903
|
}
|
|
4916
4904
|
if (proto.rules) {
|
|
4917
4905
|
m.rules = proto.rules.map(PricingRule.fromProto);
|
|
@@ -4955,13 +4943,13 @@ class ProductSummary {
|
|
|
4955
4943
|
m.discounts = proto.discounts.map(ProductSummaryDiscount.fromProto);
|
|
4956
4944
|
}
|
|
4957
4945
|
if (proto.billingStrategy) {
|
|
4958
|
-
m.billingStrategy = enumStringToValue$
|
|
4946
|
+
m.billingStrategy = enumStringToValue$y(ProductSummaryBillingStrategy, proto.billingStrategy);
|
|
4959
4947
|
}
|
|
4960
4948
|
if (proto.productType) {
|
|
4961
|
-
m.productType = enumStringToValue$
|
|
4949
|
+
m.productType = enumStringToValue$y(ProductSummaryProductType, proto.productType);
|
|
4962
4950
|
}
|
|
4963
4951
|
if (proto.frequency) {
|
|
4964
|
-
m.frequency = enumStringToValue$
|
|
4952
|
+
m.frequency = enumStringToValue$y(Frequency, proto.frequency);
|
|
4965
4953
|
}
|
|
4966
4954
|
if (proto.volumeCommitment) {
|
|
4967
4955
|
m.volumeCommitment = parseInt(proto.volumeCommitment, 10);
|
|
@@ -5142,7 +5130,7 @@ class ListSubscriptionRetentionByGroupResponseSubscriptionRetentionByGroup {
|
|
|
5142
5130
|
}
|
|
5143
5131
|
}
|
|
5144
5132
|
|
|
5145
|
-
function enumStringToValue$
|
|
5133
|
+
function enumStringToValue$x(enumRef, value) {
|
|
5146
5134
|
if (typeof value === 'number') {
|
|
5147
5135
|
return value;
|
|
5148
5136
|
}
|
|
@@ -5153,7 +5141,7 @@ class CreateDiscountRequest {
|
|
|
5153
5141
|
let m = new CreateDiscountRequest();
|
|
5154
5142
|
m = Object.assign(m, proto);
|
|
5155
5143
|
if (proto.discountType) {
|
|
5156
|
-
m.discountType = enumStringToValue$
|
|
5144
|
+
m.discountType = enumStringToValue$x(DiscountType, proto.discountType);
|
|
5157
5145
|
}
|
|
5158
5146
|
if (proto.amount) {
|
|
5159
5147
|
m.amount = parseInt(proto.amount, 10);
|
|
@@ -5165,7 +5153,7 @@ class CreateDiscountRequest {
|
|
|
5165
5153
|
m.end = new Date(proto.end);
|
|
5166
5154
|
}
|
|
5167
5155
|
if (proto.consumer) {
|
|
5168
|
-
m.consumer = enumStringToValue$
|
|
5156
|
+
m.consumer = enumStringToValue$x(Consumer, proto.consumer);
|
|
5169
5157
|
}
|
|
5170
5158
|
if (proto.numberOfBillingPeriods) {
|
|
5171
5159
|
m.numberOfBillingPeriods = parseInt(proto.numberOfBillingPeriods, 10);
|
|
@@ -5247,7 +5235,7 @@ class Discount {
|
|
|
5247
5235
|
m.discountId = parseInt(proto.discountId, 10);
|
|
5248
5236
|
}
|
|
5249
5237
|
if (proto.discountType) {
|
|
5250
|
-
m.discountType = enumStringToValue$
|
|
5238
|
+
m.discountType = enumStringToValue$x(DiscountType, proto.discountType);
|
|
5251
5239
|
}
|
|
5252
5240
|
if (proto.amount) {
|
|
5253
5241
|
m.amount = parseInt(proto.amount, 10);
|
|
@@ -5265,7 +5253,7 @@ class Discount {
|
|
|
5265
5253
|
m.updated = new Date(proto.updated);
|
|
5266
5254
|
}
|
|
5267
5255
|
if (proto.consumer) {
|
|
5268
|
-
m.consumer = enumStringToValue$
|
|
5256
|
+
m.consumer = enumStringToValue$x(Consumer, proto.consumer);
|
|
5269
5257
|
}
|
|
5270
5258
|
if (proto.numberOfBillingPeriods) {
|
|
5271
5259
|
m.numberOfBillingPeriods = parseInt(proto.numberOfBillingPeriods, 10);
|
|
@@ -5362,7 +5350,7 @@ class ListDiscountsRequestFilters {
|
|
|
5362
5350
|
m.expiry = new Date(proto.expiry);
|
|
5363
5351
|
}
|
|
5364
5352
|
if (proto.consumers) {
|
|
5365
|
-
m.consumers = proto.consumers.map((v) => enumStringToValue$
|
|
5353
|
+
m.consumers = proto.consumers.map((v) => enumStringToValue$x(Consumer, v));
|
|
5366
5354
|
}
|
|
5367
5355
|
return m;
|
|
5368
5356
|
}
|
|
@@ -5461,7 +5449,7 @@ class UpdateDiscountRequest {
|
|
|
5461
5449
|
let m = new UpdateDiscountRequest();
|
|
5462
5450
|
m = Object.assign(m, proto);
|
|
5463
5451
|
if (proto.discountType) {
|
|
5464
|
-
m.discountType = enumStringToValue$
|
|
5452
|
+
m.discountType = enumStringToValue$x(DiscountType, proto.discountType);
|
|
5465
5453
|
}
|
|
5466
5454
|
if (proto.amount) {
|
|
5467
5455
|
m.amount = parseInt(proto.amount, 10);
|
|
@@ -5522,7 +5510,7 @@ class UpdateDiscountRequest {
|
|
|
5522
5510
|
}
|
|
5523
5511
|
}
|
|
5524
5512
|
|
|
5525
|
-
function enumStringToValue$
|
|
5513
|
+
function enumStringToValue$w(enumRef, value) {
|
|
5526
5514
|
if (typeof value === 'number') {
|
|
5527
5515
|
return value;
|
|
5528
5516
|
}
|
|
@@ -5564,7 +5552,7 @@ class AppliedTaxRate {
|
|
|
5564
5552
|
}
|
|
5565
5553
|
}
|
|
5566
5554
|
|
|
5567
|
-
function enumStringToValue$
|
|
5555
|
+
function enumStringToValue$v(enumRef, value) {
|
|
5568
5556
|
if (typeof value === 'number') {
|
|
5569
5557
|
return value;
|
|
5570
5558
|
}
|
|
@@ -6056,7 +6044,7 @@ class UpdateTaxRequest {
|
|
|
6056
6044
|
}
|
|
6057
6045
|
}
|
|
6058
6046
|
|
|
6059
|
-
function enumStringToValue$
|
|
6047
|
+
function enumStringToValue$u(enumRef, value) {
|
|
6060
6048
|
if (typeof value === 'number') {
|
|
6061
6049
|
return value;
|
|
6062
6050
|
}
|
|
@@ -6133,7 +6121,7 @@ class AppliedBundleItem {
|
|
|
6133
6121
|
}
|
|
6134
6122
|
}
|
|
6135
6123
|
|
|
6136
|
-
function enumStringToValue$
|
|
6124
|
+
function enumStringToValue$t(enumRef, value) {
|
|
6137
6125
|
if (typeof value === 'number') {
|
|
6138
6126
|
return value;
|
|
6139
6127
|
}
|
|
@@ -6239,10 +6227,10 @@ class PaymentCard {
|
|
|
6239
6227
|
let m = new PaymentCard();
|
|
6240
6228
|
m = Object.assign(m, proto);
|
|
6241
6229
|
if (proto.cardType) {
|
|
6242
|
-
m.cardType = enumStringToValue$
|
|
6230
|
+
m.cardType = enumStringToValue$t(PaymentCardCARD_TYPE, proto.cardType);
|
|
6243
6231
|
}
|
|
6244
6232
|
if (proto.fundingType) {
|
|
6245
|
-
m.fundingType = enumStringToValue$
|
|
6233
|
+
m.fundingType = enumStringToValue$t(PaymentCardFUNDING_TYPE, proto.fundingType);
|
|
6246
6234
|
}
|
|
6247
6235
|
return m;
|
|
6248
6236
|
}
|
|
@@ -6349,7 +6337,7 @@ class UpdatePaymentCardRequest {
|
|
|
6349
6337
|
}
|
|
6350
6338
|
}
|
|
6351
6339
|
|
|
6352
|
-
function enumStringToValue$
|
|
6340
|
+
function enumStringToValue$s(enumRef, value) {
|
|
6353
6341
|
if (typeof value === 'number') {
|
|
6354
6342
|
return value;
|
|
6355
6343
|
}
|
|
@@ -6452,7 +6440,7 @@ class PaymentMethod {
|
|
|
6452
6440
|
let m = new PaymentMethod();
|
|
6453
6441
|
m = Object.assign(m, proto);
|
|
6454
6442
|
if (proto.type) {
|
|
6455
|
-
m.type = enumStringToValue$
|
|
6443
|
+
m.type = enumStringToValue$s(PaymentMethodType, proto.type);
|
|
6456
6444
|
}
|
|
6457
6445
|
if (proto.card) {
|
|
6458
6446
|
m.card = PaymentCard.fromProto(proto.card);
|
|
@@ -6492,7 +6480,7 @@ class PaymentMethod {
|
|
|
6492
6480
|
}
|
|
6493
6481
|
}
|
|
6494
6482
|
|
|
6495
|
-
function enumStringToValue$
|
|
6483
|
+
function enumStringToValue$r(enumRef, value) {
|
|
6496
6484
|
if (typeof value === 'number') {
|
|
6497
6485
|
return value;
|
|
6498
6486
|
}
|
|
@@ -6587,7 +6575,7 @@ class ListRecurringInvoicesFiltersDetailedInterval {
|
|
|
6587
6575
|
let m = new ListRecurringInvoicesFiltersDetailedInterval();
|
|
6588
6576
|
m = Object.assign(m, proto);
|
|
6589
6577
|
if (proto.interval) {
|
|
6590
|
-
m.interval = enumStringToValue$
|
|
6578
|
+
m.interval = enumStringToValue$r(Interval, proto.interval);
|
|
6591
6579
|
}
|
|
6592
6580
|
if (proto.intervalCount) {
|
|
6593
6581
|
m.intervalCount = parseInt(proto.intervalCount, 10);
|
|
@@ -6636,7 +6624,7 @@ class ListRecurringInvoicesFilters {
|
|
|
6636
6624
|
let m = new ListRecurringInvoicesFilters();
|
|
6637
6625
|
m = Object.assign(m, proto);
|
|
6638
6626
|
if (proto.statuses) {
|
|
6639
|
-
m.statuses = proto.statuses.map((v) => enumStringToValue$
|
|
6627
|
+
m.statuses = proto.statuses.map((v) => enumStringToValue$r(RecurringInvoiceStatus, v));
|
|
6640
6628
|
}
|
|
6641
6629
|
if (proto.intervals) {
|
|
6642
6630
|
m.intervals = proto.intervals.map(ListRecurringInvoicesFiltersDetailedInterval.fromProto);
|
|
@@ -6741,7 +6729,7 @@ class RecurringInvoice {
|
|
|
6741
6729
|
m.updated = new Date(proto.updated);
|
|
6742
6730
|
}
|
|
6743
6731
|
if (proto.status) {
|
|
6744
|
-
m.status = enumStringToValue$
|
|
6732
|
+
m.status = enumStringToValue$r(RecurringInvoiceStatus, proto.status);
|
|
6745
6733
|
}
|
|
6746
6734
|
if (proto.nextIssue) {
|
|
6747
6735
|
m.nextIssue = new Date(proto.nextIssue);
|
|
@@ -6750,16 +6738,16 @@ class RecurringInvoice {
|
|
|
6750
6738
|
m.intervalCount = parseInt(proto.intervalCount, 10);
|
|
6751
6739
|
}
|
|
6752
6740
|
if (proto.interval) {
|
|
6753
|
-
m.interval = enumStringToValue$
|
|
6741
|
+
m.interval = enumStringToValue$r(Interval, proto.interval);
|
|
6754
6742
|
}
|
|
6755
6743
|
if (proto.repeatOnDayOfMonth) {
|
|
6756
6744
|
m.repeatOnDayOfMonth = parseInt(proto.repeatOnDayOfMonth, 10);
|
|
6757
6745
|
}
|
|
6758
6746
|
if (proto.collectionMethod) {
|
|
6759
|
-
m.collectionMethod = enumStringToValue$
|
|
6747
|
+
m.collectionMethod = enumStringToValue$r(CollectionMethod, proto.collectionMethod);
|
|
6760
6748
|
}
|
|
6761
6749
|
if (proto.paymentProcessor) {
|
|
6762
|
-
m.paymentProcessor = enumStringToValue$
|
|
6750
|
+
m.paymentProcessor = enumStringToValue$r(PaymentProcessor, proto.paymentProcessor);
|
|
6763
6751
|
}
|
|
6764
6752
|
if (proto.items) {
|
|
6765
6753
|
m.items = proto.items.map(RecurringInvoiceItem.fromProto);
|
|
@@ -6777,7 +6765,7 @@ class RecurringInvoice {
|
|
|
6777
6765
|
m.netD = parseInt(proto.netD, 10);
|
|
6778
6766
|
}
|
|
6779
6767
|
if (proto.paymentMethodTypes) {
|
|
6780
|
-
m.paymentMethodTypes = proto.paymentMethodTypes.map((v) => enumStringToValue$
|
|
6768
|
+
m.paymentMethodTypes = proto.paymentMethodTypes.map((v) => enumStringToValue$r(PaymentMethodType, v));
|
|
6781
6769
|
}
|
|
6782
6770
|
return m;
|
|
6783
6771
|
}
|
|
@@ -6984,7 +6972,7 @@ class UpdateRecurringInvoiceRequest {
|
|
|
6984
6972
|
}
|
|
6985
6973
|
}
|
|
6986
6974
|
|
|
6987
|
-
function enumStringToValue$
|
|
6975
|
+
function enumStringToValue$q(enumRef, value) {
|
|
6988
6976
|
if (typeof value === 'number') {
|
|
6989
6977
|
return value;
|
|
6990
6978
|
}
|
|
@@ -7129,7 +7117,7 @@ class AppliedCreditNote {
|
|
|
7129
7117
|
m.amount = parseInt(proto.amount, 10);
|
|
7130
7118
|
}
|
|
7131
7119
|
if (proto.creditNoteType) {
|
|
7132
|
-
m.creditNoteType = enumStringToValue$
|
|
7120
|
+
m.creditNoteType = enumStringToValue$q(CreditNoteType, proto.creditNoteType);
|
|
7133
7121
|
}
|
|
7134
7122
|
return m;
|
|
7135
7123
|
}
|
|
@@ -7193,10 +7181,10 @@ class CreateInvoiceRequest {
|
|
|
7193
7181
|
m.items = proto.items.map(InvoiceItem.fromProto);
|
|
7194
7182
|
}
|
|
7195
7183
|
if (proto.collectionMethod) {
|
|
7196
|
-
m.collectionMethod = enumStringToValue$
|
|
7184
|
+
m.collectionMethod = enumStringToValue$q(CollectionMethod, proto.collectionMethod);
|
|
7197
7185
|
}
|
|
7198
7186
|
if (proto.origin) {
|
|
7199
|
-
m.origin = enumStringToValue$
|
|
7187
|
+
m.origin = enumStringToValue$q(Origin, proto.origin);
|
|
7200
7188
|
}
|
|
7201
7189
|
if (proto.issued) {
|
|
7202
7190
|
m.issued = new Date(proto.issued);
|
|
@@ -7368,7 +7356,7 @@ class ListInvoicesRequestFiltersDateFilter {
|
|
|
7368
7356
|
let m = new ListInvoicesRequestFiltersDateFilter();
|
|
7369
7357
|
m = Object.assign(m, proto);
|
|
7370
7358
|
if (proto.dateField) {
|
|
7371
|
-
m.dateField = enumStringToValue$
|
|
7359
|
+
m.dateField = enumStringToValue$q(ListInvoicesRequestFiltersDateFilterDateField, proto.dateField);
|
|
7372
7360
|
}
|
|
7373
7361
|
if (proto.dateLte) {
|
|
7374
7362
|
m.dateLte = new Date(proto.dateLte);
|
|
@@ -7518,13 +7506,13 @@ class ListInvoicesRequestFilters {
|
|
|
7518
7506
|
let m = new ListInvoicesRequestFilters();
|
|
7519
7507
|
m = Object.assign(m, proto);
|
|
7520
7508
|
if (proto.statuses) {
|
|
7521
|
-
m.statuses = proto.statuses.map((v) => enumStringToValue$
|
|
7509
|
+
m.statuses = proto.statuses.map((v) => enumStringToValue$q(InvoiceStatus, v));
|
|
7522
7510
|
}
|
|
7523
7511
|
if (proto.dateFilter) {
|
|
7524
7512
|
m.dateFilter = ListInvoicesRequestFiltersDateFilter.fromProto(proto.dateFilter);
|
|
7525
7513
|
}
|
|
7526
7514
|
if (proto.lastPaymentStatuses) {
|
|
7527
|
-
m.lastPaymentStatuses = proto.lastPaymentStatuses.map((v) => enumStringToValue$
|
|
7515
|
+
m.lastPaymentStatuses = proto.lastPaymentStatuses.map((v) => enumStringToValue$q(LastPaymentStatus, v));
|
|
7528
7516
|
}
|
|
7529
7517
|
return m;
|
|
7530
7518
|
}
|
|
@@ -7715,7 +7703,7 @@ class Invoice {
|
|
|
7715
7703
|
let m = new Invoice();
|
|
7716
7704
|
m = Object.assign(m, proto);
|
|
7717
7705
|
if (proto.status) {
|
|
7718
|
-
m.status = enumStringToValue$
|
|
7706
|
+
m.status = enumStringToValue$q(InvoiceStatus, proto.status);
|
|
7719
7707
|
}
|
|
7720
7708
|
if (proto.subtotal) {
|
|
7721
7709
|
m.subtotal = parseInt(proto.subtotal, 10);
|
|
@@ -7742,7 +7730,7 @@ class Invoice {
|
|
|
7742
7730
|
m.items = proto.items.map(InvoiceItem.fromProto);
|
|
7743
7731
|
}
|
|
7744
7732
|
if (proto.currency) {
|
|
7745
|
-
m.currency = enumStringToValue$
|
|
7733
|
+
m.currency = enumStringToValue$q(Currency, proto.currency);
|
|
7746
7734
|
}
|
|
7747
7735
|
if (proto.paid) {
|
|
7748
7736
|
m.paid = new Date(proto.paid);
|
|
@@ -7775,10 +7763,10 @@ class Invoice {
|
|
|
7775
7763
|
m.autoAdvance = new Date(proto.autoAdvance);
|
|
7776
7764
|
}
|
|
7777
7765
|
if (proto.paymentMethodTypes) {
|
|
7778
|
-
m.paymentMethodTypes = proto.paymentMethodTypes.map((v) => enumStringToValue$
|
|
7766
|
+
m.paymentMethodTypes = proto.paymentMethodTypes.map((v) => enumStringToValue$q(PaymentMethodType, v));
|
|
7779
7767
|
}
|
|
7780
7768
|
if (proto.lastPaymentStatus) {
|
|
7781
|
-
m.lastPaymentStatus = enumStringToValue$
|
|
7769
|
+
m.lastPaymentStatus = enumStringToValue$q(LastPaymentStatus, proto.lastPaymentStatus);
|
|
7782
7770
|
}
|
|
7783
7771
|
if (proto.amountOwing) {
|
|
7784
7772
|
m.amountOwing = parseInt(proto.amountOwing, 10);
|
|
@@ -7787,7 +7775,7 @@ class Invoice {
|
|
|
7787
7775
|
m.appliedCreditNotes = proto.appliedCreditNotes.map(AppliedCreditNote.fromProto);
|
|
7788
7776
|
}
|
|
7789
7777
|
if (proto.processingFailureCode) {
|
|
7790
|
-
m.processingFailureCode = enumStringToValue$
|
|
7778
|
+
m.processingFailureCode = enumStringToValue$q(ProcessingFailureCode, proto.processingFailureCode);
|
|
7791
7779
|
}
|
|
7792
7780
|
if (proto.retailSubscriptionGroups) {
|
|
7793
7781
|
m.retailSubscriptionGroups = proto.retailSubscriptionGroups.map(RetailSubscriptionGroup.fromProto);
|
|
@@ -8028,7 +8016,7 @@ class ItemDisplayGroup {
|
|
|
8028
8016
|
let m = new ItemDisplayGroup();
|
|
8029
8017
|
m = Object.assign(m, proto);
|
|
8030
8018
|
if (proto.displayOption) {
|
|
8031
|
-
m.displayOption = enumStringToValue$
|
|
8019
|
+
m.displayOption = enumStringToValue$q(DisplayOption, proto.displayOption);
|
|
8032
8020
|
}
|
|
8033
8021
|
return m;
|
|
8034
8022
|
}
|
|
@@ -8543,7 +8531,7 @@ class VoidInvoiceRequest {
|
|
|
8543
8531
|
}
|
|
8544
8532
|
}
|
|
8545
8533
|
|
|
8546
|
-
function enumStringToValue$
|
|
8534
|
+
function enumStringToValue$p(enumRef, value) {
|
|
8547
8535
|
if (typeof value === 'number') {
|
|
8548
8536
|
return value;
|
|
8549
8537
|
}
|
|
@@ -8637,7 +8625,7 @@ class BalanceAmount {
|
|
|
8637
8625
|
}
|
|
8638
8626
|
}
|
|
8639
8627
|
|
|
8640
|
-
function enumStringToValue$
|
|
8628
|
+
function enumStringToValue$o(enumRef, value) {
|
|
8641
8629
|
if (typeof value === 'number') {
|
|
8642
8630
|
return value;
|
|
8643
8631
|
}
|
|
@@ -8673,7 +8661,7 @@ class DateRange {
|
|
|
8673
8661
|
}
|
|
8674
8662
|
}
|
|
8675
8663
|
|
|
8676
|
-
function enumStringToValue$
|
|
8664
|
+
function enumStringToValue$n(enumRef, value) {
|
|
8677
8665
|
if (typeof value === 'number') {
|
|
8678
8666
|
return value;
|
|
8679
8667
|
}
|
|
@@ -8774,13 +8762,13 @@ class Payout {
|
|
|
8774
8762
|
m.amount = parseInt(proto.amount, 10);
|
|
8775
8763
|
}
|
|
8776
8764
|
if (proto.currency) {
|
|
8777
|
-
m.currency = enumStringToValue$
|
|
8765
|
+
m.currency = enumStringToValue$n(Currency, proto.currency);
|
|
8778
8766
|
}
|
|
8779
8767
|
if (proto.status) {
|
|
8780
|
-
m.status = enumStringToValue$
|
|
8768
|
+
m.status = enumStringToValue$n(PayoutStatus, proto.status);
|
|
8781
8769
|
}
|
|
8782
8770
|
if (proto.type) {
|
|
8783
|
-
m.type = enumStringToValue$
|
|
8771
|
+
m.type = enumStringToValue$n(PayoutType, proto.type);
|
|
8784
8772
|
}
|
|
8785
8773
|
return m;
|
|
8786
8774
|
}
|
|
@@ -8882,10 +8870,10 @@ class RetailPayout {
|
|
|
8882
8870
|
m.amount = parseInt(proto.amount, 10);
|
|
8883
8871
|
}
|
|
8884
8872
|
if (proto.status) {
|
|
8885
|
-
m.status = enumStringToValue$
|
|
8873
|
+
m.status = enumStringToValue$n(PayoutStatus, proto.status);
|
|
8886
8874
|
}
|
|
8887
8875
|
if (proto.type) {
|
|
8888
|
-
m.type = enumStringToValue$
|
|
8876
|
+
m.type = enumStringToValue$n(PayoutType, proto.type);
|
|
8889
8877
|
}
|
|
8890
8878
|
return m;
|
|
8891
8879
|
}
|
|
@@ -8934,7 +8922,7 @@ class RetailPayout {
|
|
|
8934
8922
|
}
|
|
8935
8923
|
}
|
|
8936
8924
|
|
|
8937
|
-
function enumStringToValue$
|
|
8925
|
+
function enumStringToValue$m(enumRef, value) {
|
|
8938
8926
|
if (typeof value === 'number') {
|
|
8939
8927
|
return value;
|
|
8940
8928
|
}
|
|
@@ -9049,7 +9037,7 @@ class CreateMerchantRequest {
|
|
|
9049
9037
|
m.includeInFinancialRecords = CreateMerchantRequestIncludeInFinancialRecords.fromProto(proto.includeInFinancialRecords);
|
|
9050
9038
|
}
|
|
9051
9039
|
if (proto.merchantType) {
|
|
9052
|
-
m.merchantType = enumStringToValue$
|
|
9040
|
+
m.merchantType = enumStringToValue$m(MerchantType, proto.merchantType);
|
|
9053
9041
|
}
|
|
9054
9042
|
return m;
|
|
9055
9043
|
}
|
|
@@ -9313,7 +9301,7 @@ class GetOutstandingBalanceResponse {
|
|
|
9313
9301
|
m.outstandingBalance = parseInt(proto.outstandingBalance, 10);
|
|
9314
9302
|
}
|
|
9315
9303
|
if (proto.currency) {
|
|
9316
|
-
m.currency = enumStringToValue$
|
|
9304
|
+
m.currency = enumStringToValue$m(Currency, proto.currency);
|
|
9317
9305
|
}
|
|
9318
9306
|
return m;
|
|
9319
9307
|
}
|
|
@@ -9624,7 +9612,7 @@ class Merchant {
|
|
|
9624
9612
|
let m = new Merchant();
|
|
9625
9613
|
m = Object.assign(m, proto);
|
|
9626
9614
|
if (proto.merchantType) {
|
|
9627
|
-
m.merchantType = enumStringToValue$
|
|
9615
|
+
m.merchantType = enumStringToValue$m(MerchantType, proto.merchantType);
|
|
9628
9616
|
}
|
|
9629
9617
|
return m;
|
|
9630
9618
|
}
|
|
@@ -9779,10 +9767,10 @@ class SearchMerchantsRequest {
|
|
|
9779
9767
|
let m = new SearchMerchantsRequest();
|
|
9780
9768
|
m = Object.assign(m, proto);
|
|
9781
9769
|
if (proto.sortBy) {
|
|
9782
|
-
m.sortBy = enumStringToValue$
|
|
9770
|
+
m.sortBy = enumStringToValue$m(SearchMerchantsRequestSortBy, proto.sortBy);
|
|
9783
9771
|
}
|
|
9784
9772
|
if (proto.sortDirection) {
|
|
9785
|
-
m.sortDirection = enumStringToValue$
|
|
9773
|
+
m.sortDirection = enumStringToValue$m(SortDirection, proto.sortDirection);
|
|
9786
9774
|
}
|
|
9787
9775
|
if (proto.pagingOptions) {
|
|
9788
9776
|
m.pagingOptions = PagedRequestOptions.fromProto(proto.pagingOptions);
|
|
@@ -9990,7 +9978,7 @@ class UpdateMerchantRequest {
|
|
|
9990
9978
|
m.includeInFinancialRecords = UpdateMerchantRequestIncludeInFinancialRecords.fromProto(proto.includeInFinancialRecords);
|
|
9991
9979
|
}
|
|
9992
9980
|
if (proto.merchantType) {
|
|
9993
|
-
m.merchantType = enumStringToValue$
|
|
9981
|
+
m.merchantType = enumStringToValue$m(MerchantType, proto.merchantType);
|
|
9994
9982
|
}
|
|
9995
9983
|
return m;
|
|
9996
9984
|
}
|
|
@@ -10115,7 +10103,7 @@ class UpsertRetailConfigurationRequest {
|
|
|
10115
10103
|
}
|
|
10116
10104
|
}
|
|
10117
10105
|
|
|
10118
|
-
function enumStringToValue$
|
|
10106
|
+
function enumStringToValue$l(enumRef, value) {
|
|
10119
10107
|
if (typeof value === 'number') {
|
|
10120
10108
|
return value;
|
|
10121
10109
|
}
|
|
@@ -10184,13 +10172,13 @@ class MerchantReport {
|
|
|
10184
10172
|
m.year = parseInt(proto.year, 10);
|
|
10185
10173
|
}
|
|
10186
10174
|
if (proto.month) {
|
|
10187
|
-
m.month = enumStringToValue$
|
|
10175
|
+
m.month = enumStringToValue$l(Month, proto.month);
|
|
10188
10176
|
}
|
|
10189
10177
|
if (proto.created) {
|
|
10190
10178
|
m.created = new Date(proto.created);
|
|
10191
10179
|
}
|
|
10192
10180
|
if (proto.status) {
|
|
10193
|
-
m.status = enumStringToValue$
|
|
10181
|
+
m.status = enumStringToValue$l(MerchantReportStatus, proto.status);
|
|
10194
10182
|
}
|
|
10195
10183
|
return m;
|
|
10196
10184
|
}
|
|
@@ -10221,7 +10209,7 @@ class MerchantReport {
|
|
|
10221
10209
|
}
|
|
10222
10210
|
}
|
|
10223
10211
|
|
|
10224
|
-
function enumStringToValue$
|
|
10212
|
+
function enumStringToValue$k(enumRef, value) {
|
|
10225
10213
|
if (typeof value === 'number') {
|
|
10226
10214
|
return value;
|
|
10227
10215
|
}
|
|
@@ -10318,7 +10306,7 @@ class TickComponentUsageRequest {
|
|
|
10318
10306
|
}
|
|
10319
10307
|
}
|
|
10320
10308
|
|
|
10321
|
-
function enumStringToValue$
|
|
10309
|
+
function enumStringToValue$j(enumRef, value) {
|
|
10322
10310
|
if (typeof value === 'number') {
|
|
10323
10311
|
return value;
|
|
10324
10312
|
}
|
|
@@ -10431,7 +10419,7 @@ class RetailPaymentCardDetails {
|
|
|
10431
10419
|
let m = new RetailPaymentCardDetails();
|
|
10432
10420
|
m = Object.assign(m, proto);
|
|
10433
10421
|
if (proto.cardType) {
|
|
10434
|
-
m.cardType = enumStringToValue$
|
|
10422
|
+
m.cardType = enumStringToValue$j(CardType, proto.cardType);
|
|
10435
10423
|
}
|
|
10436
10424
|
return m;
|
|
10437
10425
|
}
|
|
@@ -10480,7 +10468,7 @@ class ConfigureRetailPaymentProviderRequest {
|
|
|
10480
10468
|
let m = new ConfigureRetailPaymentProviderRequest();
|
|
10481
10469
|
m = Object.assign(m, proto);
|
|
10482
10470
|
if (proto.paymentFacilitatorType) {
|
|
10483
|
-
m.paymentFacilitatorType = enumStringToValue$
|
|
10471
|
+
m.paymentFacilitatorType = enumStringToValue$j(PaymentFacilitatorType, proto.paymentFacilitatorType);
|
|
10484
10472
|
}
|
|
10485
10473
|
return m;
|
|
10486
10474
|
}
|
|
@@ -10558,7 +10546,7 @@ class Dispute {
|
|
|
10558
10546
|
let m = new Dispute();
|
|
10559
10547
|
m = Object.assign(m, proto);
|
|
10560
10548
|
if (proto.status) {
|
|
10561
|
-
m.status = enumStringToValue$
|
|
10549
|
+
m.status = enumStringToValue$j(DisputeStatus, proto.status);
|
|
10562
10550
|
}
|
|
10563
10551
|
if (proto.amount) {
|
|
10564
10552
|
m.amount = parseInt(proto.amount, 10);
|
|
@@ -10576,7 +10564,7 @@ class Dispute {
|
|
|
10576
10564
|
m.fee = parseInt(proto.fee, 10);
|
|
10577
10565
|
}
|
|
10578
10566
|
if (proto.paymentReferenceType) {
|
|
10579
|
-
m.paymentReferenceType = enumStringToValue$
|
|
10567
|
+
m.paymentReferenceType = enumStringToValue$j(RetailPaymentReferenceType, proto.paymentReferenceType);
|
|
10580
10568
|
}
|
|
10581
10569
|
if (proto.paymentReceivedAt) {
|
|
10582
10570
|
m.paymentReceivedAt = new Date(proto.paymentReceivedAt);
|
|
@@ -10892,7 +10880,7 @@ class GetRetailPaymentProviderResponse {
|
|
|
10892
10880
|
let m = new GetRetailPaymentProviderResponse();
|
|
10893
10881
|
m = Object.assign(m, proto);
|
|
10894
10882
|
if (proto.paymentFacilitatorType) {
|
|
10895
|
-
m.paymentFacilitatorType = enumStringToValue$
|
|
10883
|
+
m.paymentFacilitatorType = enumStringToValue$j(PaymentFacilitatorType, proto.paymentFacilitatorType);
|
|
10896
10884
|
}
|
|
10897
10885
|
return m;
|
|
10898
10886
|
}
|
|
@@ -11106,7 +11094,7 @@ class ListRetailDisputesRequestListRetailDisputesFilters {
|
|
|
11106
11094
|
let m = new ListRetailDisputesRequestListRetailDisputesFilters();
|
|
11107
11095
|
m = Object.assign(m, proto);
|
|
11108
11096
|
if (proto.status) {
|
|
11109
|
-
m.status = enumStringToValue$
|
|
11097
|
+
m.status = enumStringToValue$j(DisputeStatus, proto.status);
|
|
11110
11098
|
}
|
|
11111
11099
|
return m;
|
|
11112
11100
|
}
|
|
@@ -11292,7 +11280,7 @@ class ListRetailTransactionsRequestListRetailTransactionsFilters {
|
|
|
11292
11280
|
m.createdDateLte = new Date(proto.createdDateLte);
|
|
11293
11281
|
}
|
|
11294
11282
|
if (proto.type) {
|
|
11295
|
-
m.type = enumStringToValue$
|
|
11283
|
+
m.type = enumStringToValue$j(RetailTransactionType, proto.type);
|
|
11296
11284
|
}
|
|
11297
11285
|
return m;
|
|
11298
11286
|
}
|
|
@@ -11426,10 +11414,10 @@ class Payment {
|
|
|
11426
11414
|
m.created = new Date(proto.created);
|
|
11427
11415
|
}
|
|
11428
11416
|
if (proto.currency) {
|
|
11429
|
-
m.currency = enumStringToValue$
|
|
11417
|
+
m.currency = enumStringToValue$j(Currency, proto.currency);
|
|
11430
11418
|
}
|
|
11431
11419
|
if (proto.paymentSource) {
|
|
11432
|
-
m.paymentSource = enumStringToValue$
|
|
11420
|
+
m.paymentSource = enumStringToValue$j(PaymentSource, proto.paymentSource);
|
|
11433
11421
|
}
|
|
11434
11422
|
if (proto.allocations) {
|
|
11435
11423
|
m.allocations = proto.allocations.map(PaymentPaymentAllocation.fromProto);
|
|
@@ -11438,7 +11426,7 @@ class Payment {
|
|
|
11438
11426
|
m.total = parseInt(proto.total, 10);
|
|
11439
11427
|
}
|
|
11440
11428
|
if (proto.status) {
|
|
11441
|
-
m.status = enumStringToValue$
|
|
11429
|
+
m.status = enumStringToValue$j(PaymentStatus, proto.status);
|
|
11442
11430
|
}
|
|
11443
11431
|
return m;
|
|
11444
11432
|
}
|
|
@@ -11488,7 +11476,7 @@ class PaymentPaymentAllocation {
|
|
|
11488
11476
|
m.amount = parseInt(proto.amount, 10);
|
|
11489
11477
|
}
|
|
11490
11478
|
if (proto.type) {
|
|
11491
|
-
m.type = enumStringToValue$
|
|
11479
|
+
m.type = enumStringToValue$j(PaymentAllocationType, proto.type);
|
|
11492
11480
|
}
|
|
11493
11481
|
return m;
|
|
11494
11482
|
}
|
|
@@ -11517,13 +11505,13 @@ class PaymentIntent {
|
|
|
11517
11505
|
let m = new PaymentIntent();
|
|
11518
11506
|
m = Object.assign(m, proto);
|
|
11519
11507
|
if (proto.paymentIntentStatus) {
|
|
11520
|
-
m.paymentIntentStatus = enumStringToValue$
|
|
11508
|
+
m.paymentIntentStatus = enumStringToValue$j(PaymentIntentStatus, proto.paymentIntentStatus);
|
|
11521
11509
|
}
|
|
11522
11510
|
if (proto.paymentMethodType) {
|
|
11523
|
-
m.paymentMethodType = enumStringToValue$
|
|
11511
|
+
m.paymentMethodType = enumStringToValue$j(PaymentMethodType, proto.paymentMethodType);
|
|
11524
11512
|
}
|
|
11525
11513
|
if (proto.lastErrorCode) {
|
|
11526
|
-
m.lastErrorCode = enumStringToValue$
|
|
11514
|
+
m.lastErrorCode = enumStringToValue$j(PaymentErrorCode, proto.lastErrorCode);
|
|
11527
11515
|
}
|
|
11528
11516
|
return m;
|
|
11529
11517
|
}
|
|
@@ -11555,7 +11543,7 @@ class PrepareRetailPaymentRequest {
|
|
|
11555
11543
|
m.order = PrepareRetailPaymentRequestOrder.fromProto(proto.order);
|
|
11556
11544
|
}
|
|
11557
11545
|
if (proto.paymentMethodTypes) {
|
|
11558
|
-
m.paymentMethodTypes = proto.paymentMethodTypes.map((v) => enumStringToValue$
|
|
11546
|
+
m.paymentMethodTypes = proto.paymentMethodTypes.map((v) => enumStringToValue$j(PaymentMethodType, v));
|
|
11559
11547
|
}
|
|
11560
11548
|
return m;
|
|
11561
11549
|
}
|
|
@@ -11622,7 +11610,7 @@ class RefundRetailPaymentRequest {
|
|
|
11622
11610
|
m.amount = parseInt(proto.amount, 10);
|
|
11623
11611
|
}
|
|
11624
11612
|
if (proto.reason) {
|
|
11625
|
-
m.reason = enumStringToValue$
|
|
11613
|
+
m.reason = enumStringToValue$j(RetailRefundReason, proto.reason);
|
|
11626
11614
|
}
|
|
11627
11615
|
return m;
|
|
11628
11616
|
}
|
|
@@ -11683,10 +11671,10 @@ class RetailPayment {
|
|
|
11683
11671
|
m.amount = parseInt(proto.amount, 10);
|
|
11684
11672
|
}
|
|
11685
11673
|
if (proto.referenceType) {
|
|
11686
|
-
m.referenceType = enumStringToValue$
|
|
11674
|
+
m.referenceType = enumStringToValue$j(RetailPaymentReferenceType, proto.referenceType);
|
|
11687
11675
|
}
|
|
11688
11676
|
if (proto.status) {
|
|
11689
|
-
m.status = enumStringToValue$
|
|
11677
|
+
m.status = enumStringToValue$j(PaymentStatus, proto.status);
|
|
11690
11678
|
}
|
|
11691
11679
|
if (proto.applicationFee) {
|
|
11692
11680
|
m.applicationFee = parseInt(proto.applicationFee, 10);
|
|
@@ -11701,7 +11689,7 @@ class RetailPayment {
|
|
|
11701
11689
|
m.refunds = proto.refunds.map(RetailRefund.fromProto);
|
|
11702
11690
|
}
|
|
11703
11691
|
if (proto.paymentMethodDetailsType) {
|
|
11704
|
-
m.paymentMethodDetailsType = enumStringToValue$
|
|
11692
|
+
m.paymentMethodDetailsType = enumStringToValue$j(RetailPaymentPaymentMethodDetailsType, proto.paymentMethodDetailsType);
|
|
11705
11693
|
}
|
|
11706
11694
|
if (proto.achDebitDetails) {
|
|
11707
11695
|
m.achDebitDetails = RetailPaymentACHDetails.fromProto(proto.achDebitDetails);
|
|
@@ -11713,7 +11701,7 @@ class RetailPayment {
|
|
|
11713
11701
|
m.paymentFacilitatorFee = parseInt(proto.paymentFacilitatorFee, 10);
|
|
11714
11702
|
}
|
|
11715
11703
|
if (proto.paymentFacilitatorType) {
|
|
11716
|
-
m.paymentFacilitatorType = enumStringToValue$
|
|
11704
|
+
m.paymentFacilitatorType = enumStringToValue$j(PaymentFacilitatorType, proto.paymentFacilitatorType);
|
|
11717
11705
|
}
|
|
11718
11706
|
if (proto.settledAt) {
|
|
11719
11707
|
m.settledAt = new Date(proto.settledAt);
|
|
@@ -11848,13 +11836,13 @@ class RetailRefund {
|
|
|
11848
11836
|
m.amount = parseInt(proto.amount, 10);
|
|
11849
11837
|
}
|
|
11850
11838
|
if (proto.refundReason) {
|
|
11851
|
-
m.refundReason = enumStringToValue$
|
|
11839
|
+
m.refundReason = enumStringToValue$j(RetailRefundReason, proto.refundReason);
|
|
11852
11840
|
}
|
|
11853
11841
|
if (proto.status) {
|
|
11854
|
-
m.status = enumStringToValue$
|
|
11842
|
+
m.status = enumStringToValue$j(RetailRefundStatus, proto.status);
|
|
11855
11843
|
}
|
|
11856
11844
|
if (proto.failureReason) {
|
|
11857
|
-
m.failureReason = enumStringToValue$
|
|
11845
|
+
m.failureReason = enumStringToValue$j(RetailRefundFailureReason, proto.failureReason);
|
|
11858
11846
|
}
|
|
11859
11847
|
if (proto.created) {
|
|
11860
11848
|
m.created = new Date(proto.created);
|
|
@@ -12118,7 +12106,7 @@ class RetailStatusResponseVerificationRequirements {
|
|
|
12118
12106
|
}
|
|
12119
12107
|
}
|
|
12120
12108
|
|
|
12121
|
-
function enumStringToValue$
|
|
12109
|
+
function enumStringToValue$i(enumRef, value) {
|
|
12122
12110
|
if (typeof value === 'number') {
|
|
12123
12111
|
return value;
|
|
12124
12112
|
}
|
|
@@ -12129,7 +12117,7 @@ class CreatePricingPlanProductRequest {
|
|
|
12129
12117
|
let m = new CreatePricingPlanProductRequest();
|
|
12130
12118
|
m = Object.assign(m, proto);
|
|
12131
12119
|
if (proto.frequency) {
|
|
12132
|
-
m.frequency = enumStringToValue$
|
|
12120
|
+
m.frequency = enumStringToValue$i(Frequency, proto.frequency);
|
|
12133
12121
|
}
|
|
12134
12122
|
if (proto.pricing) {
|
|
12135
12123
|
m.pricing = Object.keys(proto.pricing).reduce((obj, k) => { obj[k] = PricingPlanProductPricing.fromProto(proto.pricing[k]); return obj; }, {});
|
|
@@ -12138,7 +12126,7 @@ class CreatePricingPlanProductRequest {
|
|
|
12138
12126
|
m.commitment = Commitment.fromProto(proto.commitment);
|
|
12139
12127
|
}
|
|
12140
12128
|
if (proto.strategy) {
|
|
12141
|
-
m.strategy = enumStringToValue$
|
|
12129
|
+
m.strategy = enumStringToValue$i(BillingStrategy, proto.strategy);
|
|
12142
12130
|
}
|
|
12143
12131
|
if (proto.volumeCommitment) {
|
|
12144
12132
|
m.volumeCommitment = parseInt(proto.volumeCommitment, 10);
|
|
@@ -12312,7 +12300,7 @@ class GetPricingPlanProductResponse {
|
|
|
12312
12300
|
m.pricingPlanProduct = PricingPlanProduct.fromProto(proto.pricingPlanProduct);
|
|
12313
12301
|
}
|
|
12314
12302
|
if (proto.pricingPlanDefaultStrategy) {
|
|
12315
|
-
m.pricingPlanDefaultStrategy = enumStringToValue$
|
|
12303
|
+
m.pricingPlanDefaultStrategy = enumStringToValue$i(BillingStrategy, proto.pricingPlanDefaultStrategy);
|
|
12316
12304
|
}
|
|
12317
12305
|
return m;
|
|
12318
12306
|
}
|
|
@@ -12500,7 +12488,7 @@ class PricingPlanProduct {
|
|
|
12500
12488
|
let m = new PricingPlanProduct();
|
|
12501
12489
|
m = Object.assign(m, proto);
|
|
12502
12490
|
if (proto.frequency) {
|
|
12503
|
-
m.frequency = enumStringToValue$
|
|
12491
|
+
m.frequency = enumStringToValue$i(Frequency, proto.frequency);
|
|
12504
12492
|
}
|
|
12505
12493
|
if (proto.pricing) {
|
|
12506
12494
|
m.pricing = Object.keys(proto.pricing).reduce((obj, k) => { obj[k] = PricingPlanProductPricing.fromProto(proto.pricing[k]); return obj; }, {});
|
|
@@ -12515,7 +12503,7 @@ class PricingPlanProduct {
|
|
|
12515
12503
|
m.modified = new Date(proto.modified);
|
|
12516
12504
|
}
|
|
12517
12505
|
if (proto.strategy) {
|
|
12518
|
-
m.strategy = enumStringToValue$
|
|
12506
|
+
m.strategy = enumStringToValue$i(BillingStrategy, proto.strategy);
|
|
12519
12507
|
}
|
|
12520
12508
|
if (proto.volumeCommitment) {
|
|
12521
12509
|
m.volumeCommitment = parseInt(proto.volumeCommitment, 10);
|
|
@@ -12527,7 +12515,7 @@ class PricingPlanProduct {
|
|
|
12527
12515
|
m.volumeCommitmentEndsAt = new Date(proto.volumeCommitmentEndsAt);
|
|
12528
12516
|
}
|
|
12529
12517
|
if (proto.pricingType) {
|
|
12530
|
-
m.pricingType = enumStringToValue$
|
|
12518
|
+
m.pricingType = enumStringToValue$i(ProductPricingType, proto.pricingType);
|
|
12531
12519
|
}
|
|
12532
12520
|
return m;
|
|
12533
12521
|
}
|
|
@@ -12583,7 +12571,7 @@ class UpdatePricingPlanProductRequest {
|
|
|
12583
12571
|
let m = new UpdatePricingPlanProductRequest();
|
|
12584
12572
|
m = Object.assign(m, proto);
|
|
12585
12573
|
if (proto.frequency) {
|
|
12586
|
-
m.frequency = enumStringToValue$
|
|
12574
|
+
m.frequency = enumStringToValue$i(Frequency, proto.frequency);
|
|
12587
12575
|
}
|
|
12588
12576
|
if (proto.pricing) {
|
|
12589
12577
|
m.pricing = Object.keys(proto.pricing).reduce((obj, k) => { obj[k] = PricingPlanProductPricing.fromProto(proto.pricing[k]); return obj; }, {});
|
|
@@ -12595,7 +12583,7 @@ class UpdatePricingPlanProductRequest {
|
|
|
12595
12583
|
m.fieldMask = FieldMask.fromProto(proto.fieldMask);
|
|
12596
12584
|
}
|
|
12597
12585
|
if (proto.strategy) {
|
|
12598
|
-
m.strategy = enumStringToValue$
|
|
12586
|
+
m.strategy = enumStringToValue$i(BillingStrategy, proto.strategy);
|
|
12599
12587
|
}
|
|
12600
12588
|
if (proto.volumeCommitment) {
|
|
12601
12589
|
m.volumeCommitment = parseInt(proto.volumeCommitment, 10);
|
|
@@ -12677,7 +12665,7 @@ class UpsertWholesalePricingRequest {
|
|
|
12677
12665
|
m.termCommitment = Commitment.fromProto(proto.termCommitment);
|
|
12678
12666
|
}
|
|
12679
12667
|
if (proto.strategy) {
|
|
12680
|
-
m.strategy = enumStringToValue$
|
|
12668
|
+
m.strategy = enumStringToValue$i(BillingStrategy, proto.strategy);
|
|
12681
12669
|
}
|
|
12682
12670
|
if (proto.volumeCommitment) {
|
|
12683
12671
|
m.volumeCommitment = parseInt(proto.volumeCommitment, 10);
|
|
@@ -12726,7 +12714,7 @@ class UpsertWholesalePricingRequest {
|
|
|
12726
12714
|
}
|
|
12727
12715
|
}
|
|
12728
12716
|
|
|
12729
|
-
function enumStringToValue$
|
|
12717
|
+
function enumStringToValue$h(enumRef, value) {
|
|
12730
12718
|
if (typeof value === 'number') {
|
|
12731
12719
|
return value;
|
|
12732
12720
|
}
|
|
@@ -12737,7 +12725,7 @@ class CreateProductRequest {
|
|
|
12737
12725
|
let m = new CreateProductRequest();
|
|
12738
12726
|
m = Object.assign(m, proto);
|
|
12739
12727
|
if (proto.productType) {
|
|
12740
|
-
m.productType = enumStringToValue$
|
|
12728
|
+
m.productType = enumStringToValue$h(ProductType, proto.productType);
|
|
12741
12729
|
}
|
|
12742
12730
|
return m;
|
|
12743
12731
|
}
|
|
@@ -12841,7 +12829,7 @@ class ListProductsRequestListProductsFilters {
|
|
|
12841
12829
|
let m = new ListProductsRequestListProductsFilters();
|
|
12842
12830
|
m = Object.assign(m, proto);
|
|
12843
12831
|
if (proto.productType) {
|
|
12844
|
-
m.productType = proto.productType.map((v) => enumStringToValue$
|
|
12832
|
+
m.productType = proto.productType.map((v) => enumStringToValue$h(ProductType, v));
|
|
12845
12833
|
}
|
|
12846
12834
|
return m;
|
|
12847
12835
|
}
|
|
@@ -12937,7 +12925,7 @@ class Product {
|
|
|
12937
12925
|
let m = new Product();
|
|
12938
12926
|
m = Object.assign(m, proto);
|
|
12939
12927
|
if (proto.productType) {
|
|
12940
|
-
m.productType = enumStringToValue$
|
|
12928
|
+
m.productType = enumStringToValue$h(ProductType, proto.productType);
|
|
12941
12929
|
}
|
|
12942
12930
|
return m;
|
|
12943
12931
|
}
|
|
@@ -13004,7 +12992,7 @@ class UpdateProductRequest {
|
|
|
13004
12992
|
let m = new UpdateProductRequest();
|
|
13005
12993
|
m = Object.assign(m, proto);
|
|
13006
12994
|
if (proto.productType) {
|
|
13007
|
-
m.productType = enumStringToValue$
|
|
12995
|
+
m.productType = enumStringToValue$h(ProductType, proto.productType);
|
|
13008
12996
|
}
|
|
13009
12997
|
return m;
|
|
13010
12998
|
}
|
|
@@ -13035,7 +13023,7 @@ class UpdateProductRequest {
|
|
|
13035
13023
|
}
|
|
13036
13024
|
}
|
|
13037
13025
|
|
|
13038
|
-
function enumStringToValue$
|
|
13026
|
+
function enumStringToValue$g(enumRef, value) {
|
|
13039
13027
|
if (typeof value === 'number') {
|
|
13040
13028
|
return value;
|
|
13041
13029
|
}
|
|
@@ -13049,7 +13037,7 @@ class AppliedCredit {
|
|
|
13049
13037
|
m.appliedAmount = parseInt(proto.appliedAmount, 10);
|
|
13050
13038
|
}
|
|
13051
13039
|
if (proto.referenceType) {
|
|
13052
|
-
m.referenceType = enumStringToValue$
|
|
13040
|
+
m.referenceType = enumStringToValue$g(CreditType, proto.referenceType);
|
|
13053
13041
|
}
|
|
13054
13042
|
return m;
|
|
13055
13043
|
}
|
|
@@ -13078,7 +13066,7 @@ class ListPurchaseRequestListPurchaseBillingStrategyFilter {
|
|
|
13078
13066
|
let m = new ListPurchaseRequestListPurchaseBillingStrategyFilter();
|
|
13079
13067
|
m = Object.assign(m, proto);
|
|
13080
13068
|
if (proto.billingStrategy) {
|
|
13081
|
-
m.billingStrategy = proto.billingStrategy.map((v) => enumStringToValue$
|
|
13069
|
+
m.billingStrategy = proto.billingStrategy.map((v) => enumStringToValue$g(BillingStrategy, v));
|
|
13082
13070
|
}
|
|
13083
13071
|
return m;
|
|
13084
13072
|
}
|
|
@@ -13110,13 +13098,13 @@ class ListPurchaseRequestListPurchaseFilters {
|
|
|
13110
13098
|
m.billingStrategyFilter = ListPurchaseRequestListPurchaseBillingStrategyFilter.fromProto(proto.billingStrategyFilter);
|
|
13111
13099
|
}
|
|
13112
13100
|
if (proto.state) {
|
|
13113
|
-
m.state = enumStringToValue$
|
|
13101
|
+
m.state = enumStringToValue$g(ListPurchaseRequestState, proto.state);
|
|
13114
13102
|
}
|
|
13115
13103
|
if (proto.minPrice) {
|
|
13116
13104
|
m.minPrice = parseInt(proto.minPrice, 10);
|
|
13117
13105
|
}
|
|
13118
13106
|
if (proto.status) {
|
|
13119
|
-
m.status = enumStringToValue$
|
|
13107
|
+
m.status = enumStringToValue$g(PurchaseStatus, proto.status);
|
|
13120
13108
|
}
|
|
13121
13109
|
if (proto.dunningPauseStart) {
|
|
13122
13110
|
m.dunningPauseStart = new Date(proto.dunningPauseStart);
|
|
@@ -13248,7 +13236,7 @@ class ListPurchaseItemsResponse {
|
|
|
13248
13236
|
m.pagingMetadata = PagedResponseMetadata.fromProto(proto.pagingMetadata);
|
|
13249
13237
|
}
|
|
13250
13238
|
if (proto.currency) {
|
|
13251
|
-
m.currency = enumStringToValue$
|
|
13239
|
+
m.currency = enumStringToValue$g(Currency, proto.currency);
|
|
13252
13240
|
}
|
|
13253
13241
|
return m;
|
|
13254
13242
|
}
|
|
@@ -13399,13 +13387,13 @@ class Purchase {
|
|
|
13399
13387
|
m.total = parseInt(proto.total, 10);
|
|
13400
13388
|
}
|
|
13401
13389
|
if (proto.currency) {
|
|
13402
|
-
m.currency = enumStringToValue$
|
|
13390
|
+
m.currency = enumStringToValue$g(Currency, proto.currency);
|
|
13403
13391
|
}
|
|
13404
13392
|
if (proto.items) {
|
|
13405
13393
|
m.items = proto.items.map(PurchaseItem.fromProto);
|
|
13406
13394
|
}
|
|
13407
13395
|
if (proto.billingStrategy) {
|
|
13408
|
-
m.billingStrategy = enumStringToValue$
|
|
13396
|
+
m.billingStrategy = enumStringToValue$g(BillingStrategy, proto.billingStrategy);
|
|
13409
13397
|
}
|
|
13410
13398
|
if (proto.dunningAttempt) {
|
|
13411
13399
|
m.dunningAttempt = parseInt(proto.dunningAttempt, 10);
|
|
@@ -13414,7 +13402,7 @@ class Purchase {
|
|
|
13414
13402
|
m.voided = new Date(proto.voided);
|
|
13415
13403
|
}
|
|
13416
13404
|
if (proto.status) {
|
|
13417
|
-
m.status = enumStringToValue$
|
|
13405
|
+
m.status = enumStringToValue$g(PurchaseStatus, proto.status);
|
|
13418
13406
|
}
|
|
13419
13407
|
if (proto.creditAmount) {
|
|
13420
13408
|
m.creditAmount = parseInt(proto.creditAmount, 10);
|
|
@@ -13701,7 +13689,7 @@ class VoidPurchaseRequest {
|
|
|
13701
13689
|
}
|
|
13702
13690
|
}
|
|
13703
13691
|
|
|
13704
|
-
function enumStringToValue$
|
|
13692
|
+
function enumStringToValue$f(enumRef, value) {
|
|
13705
13693
|
if (typeof value === 'number') {
|
|
13706
13694
|
return value;
|
|
13707
13695
|
}
|
|
@@ -13715,10 +13703,10 @@ class CreateRefundRequest {
|
|
|
13715
13703
|
m.amount = parseInt(proto.amount, 10);
|
|
13716
13704
|
}
|
|
13717
13705
|
if (proto.reason) {
|
|
13718
|
-
m.reason = enumStringToValue$
|
|
13706
|
+
m.reason = enumStringToValue$f(RefundReason, proto.reason);
|
|
13719
13707
|
}
|
|
13720
13708
|
if (proto.referenceType) {
|
|
13721
|
-
m.referenceType = enumStringToValue$
|
|
13709
|
+
m.referenceType = enumStringToValue$f(ReferenceType, proto.referenceType);
|
|
13722
13710
|
}
|
|
13723
13711
|
return m;
|
|
13724
13712
|
}
|
|
@@ -13823,10 +13811,10 @@ class Refund {
|
|
|
13823
13811
|
m.amount = parseInt(proto.amount, 10);
|
|
13824
13812
|
}
|
|
13825
13813
|
if (proto.reason) {
|
|
13826
|
-
m.reason = enumStringToValue$
|
|
13814
|
+
m.reason = enumStringToValue$f(RefundReason, proto.reason);
|
|
13827
13815
|
}
|
|
13828
13816
|
if (proto.status) {
|
|
13829
|
-
m.status = enumStringToValue$
|
|
13817
|
+
m.status = enumStringToValue$f(RefundStatus, proto.status);
|
|
13830
13818
|
}
|
|
13831
13819
|
if (proto.created) {
|
|
13832
13820
|
m.created = new Date(proto.created);
|
|
@@ -13835,7 +13823,7 @@ class Refund {
|
|
|
13835
13823
|
m.updated = new Date(proto.updated);
|
|
13836
13824
|
}
|
|
13837
13825
|
if (proto.referenceType) {
|
|
13838
|
-
m.referenceType = enumStringToValue$
|
|
13826
|
+
m.referenceType = enumStringToValue$f(ReferenceType, proto.referenceType);
|
|
13839
13827
|
}
|
|
13840
13828
|
return m;
|
|
13841
13829
|
}
|
|
@@ -13887,7 +13875,7 @@ class Refund {
|
|
|
13887
13875
|
}
|
|
13888
13876
|
}
|
|
13889
13877
|
|
|
13890
|
-
function enumStringToValue$
|
|
13878
|
+
function enumStringToValue$e(enumRef, value) {
|
|
13891
13879
|
if (typeof value === 'number') {
|
|
13892
13880
|
return value;
|
|
13893
13881
|
}
|
|
@@ -13942,7 +13930,7 @@ class ListSalesCreditNoteRequestListSalesCreditNoteFilters {
|
|
|
13942
13930
|
let m = new ListSalesCreditNoteRequestListSalesCreditNoteFilters();
|
|
13943
13931
|
m = Object.assign(m, proto);
|
|
13944
13932
|
if (proto.statuses) {
|
|
13945
|
-
m.statuses = proto.statuses.map((v) => enumStringToValue$
|
|
13933
|
+
m.statuses = proto.statuses.map((v) => enumStringToValue$e(SalesCreditNoteStatus, v));
|
|
13946
13934
|
}
|
|
13947
13935
|
return m;
|
|
13948
13936
|
}
|
|
@@ -14032,7 +14020,7 @@ class SalesCreditNote {
|
|
|
14032
14020
|
m.dueDate = new Date(proto.dueDate);
|
|
14033
14021
|
}
|
|
14034
14022
|
if (proto.currency) {
|
|
14035
|
-
m.currency = enumStringToValue$
|
|
14023
|
+
m.currency = enumStringToValue$e(Currency, proto.currency);
|
|
14036
14024
|
}
|
|
14037
14025
|
if (proto.total) {
|
|
14038
14026
|
m.total = parseInt(proto.total, 10);
|
|
@@ -14041,7 +14029,7 @@ class SalesCreditNote {
|
|
|
14041
14029
|
m.outstanding = parseInt(proto.outstanding, 10);
|
|
14042
14030
|
}
|
|
14043
14031
|
if (proto.status) {
|
|
14044
|
-
m.status = enumStringToValue$
|
|
14032
|
+
m.status = enumStringToValue$e(SalesCreditNoteStatus, proto.status);
|
|
14045
14033
|
}
|
|
14046
14034
|
return m;
|
|
14047
14035
|
}
|
|
@@ -14099,7 +14087,7 @@ class SalesCreditNote {
|
|
|
14099
14087
|
}
|
|
14100
14088
|
}
|
|
14101
14089
|
|
|
14102
|
-
function enumStringToValue$
|
|
14090
|
+
function enumStringToValue$d(enumRef, value) {
|
|
14103
14091
|
if (typeof value === 'number') {
|
|
14104
14092
|
return value;
|
|
14105
14093
|
}
|
|
@@ -14156,10 +14144,10 @@ class ListSalesInvoiceRequestListSalesInvoiceFilters {
|
|
|
14156
14144
|
let m = new ListSalesInvoiceRequestListSalesInvoiceFilters();
|
|
14157
14145
|
m = Object.assign(m, proto);
|
|
14158
14146
|
if (proto.statuses) {
|
|
14159
|
-
m.statuses = proto.statuses.map((v) => enumStringToValue$
|
|
14147
|
+
m.statuses = proto.statuses.map((v) => enumStringToValue$d(SalesInvoiceStatus, v));
|
|
14160
14148
|
}
|
|
14161
14149
|
if (proto.paymentStatuses) {
|
|
14162
|
-
m.paymentStatuses = proto.paymentStatuses.map((v) => enumStringToValue$
|
|
14150
|
+
m.paymentStatuses = proto.paymentStatuses.map((v) => enumStringToValue$d(PaymentStatuses, v));
|
|
14163
14151
|
}
|
|
14164
14152
|
return m;
|
|
14165
14153
|
}
|
|
@@ -14287,16 +14275,16 @@ class SalesInvoice {
|
|
|
14287
14275
|
m.total = parseInt(proto.total, 10);
|
|
14288
14276
|
}
|
|
14289
14277
|
if (proto.currency) {
|
|
14290
|
-
m.currency = enumStringToValue$
|
|
14278
|
+
m.currency = enumStringToValue$d(Currency, proto.currency);
|
|
14291
14279
|
}
|
|
14292
14280
|
if (proto.status) {
|
|
14293
|
-
m.status = enumStringToValue$
|
|
14281
|
+
m.status = enumStringToValue$d(SalesInvoiceStatus, proto.status);
|
|
14294
14282
|
}
|
|
14295
14283
|
if (proto.outstanding) {
|
|
14296
14284
|
m.outstanding = parseInt(proto.outstanding, 10);
|
|
14297
14285
|
}
|
|
14298
14286
|
if (proto.type) {
|
|
14299
|
-
m.type = enumStringToValue$
|
|
14287
|
+
m.type = enumStringToValue$d(SalesInvoiceType, proto.type);
|
|
14300
14288
|
}
|
|
14301
14289
|
return m;
|
|
14302
14290
|
}
|
|
@@ -14400,7 +14388,7 @@ class SendSalesInvoiceReceiptEmailRequest {
|
|
|
14400
14388
|
}
|
|
14401
14389
|
}
|
|
14402
14390
|
|
|
14403
|
-
function enumStringToValue$
|
|
14391
|
+
function enumStringToValue$c(enumRef, value) {
|
|
14404
14392
|
if (typeof value === 'number') {
|
|
14405
14393
|
return value;
|
|
14406
14394
|
}
|
|
@@ -14509,10 +14497,10 @@ class ListTaxRulesRequestFilters {
|
|
|
14509
14497
|
let m = new ListTaxRulesRequestFilters();
|
|
14510
14498
|
m = Object.assign(m, proto);
|
|
14511
14499
|
if (proto.consumer) {
|
|
14512
|
-
m.consumer = enumStringToValue$
|
|
14500
|
+
m.consumer = enumStringToValue$c(Consumer, proto.consumer);
|
|
14513
14501
|
}
|
|
14514
14502
|
if (proto.entityType) {
|
|
14515
|
-
m.entityType = enumStringToValue$
|
|
14503
|
+
m.entityType = enumStringToValue$c(TaxRuleEntityType, proto.entityType);
|
|
14516
14504
|
}
|
|
14517
14505
|
return m;
|
|
14518
14506
|
}
|
|
@@ -14561,7 +14549,7 @@ class GetTaxProviderResponse {
|
|
|
14561
14549
|
let m = new GetTaxProviderResponse();
|
|
14562
14550
|
m = Object.assign(m, proto);
|
|
14563
14551
|
if (proto.taxProviderType) {
|
|
14564
|
-
m.taxProviderType = enumStringToValue$
|
|
14552
|
+
m.taxProviderType = enumStringToValue$c(TaxProviderType, proto.taxProviderType);
|
|
14565
14553
|
}
|
|
14566
14554
|
return m;
|
|
14567
14555
|
}
|
|
@@ -14685,7 +14673,7 @@ class TaxRuleProductProductIdentifier {
|
|
|
14685
14673
|
let m = new TaxRuleProductProductIdentifier();
|
|
14686
14674
|
m = Object.assign(m, proto);
|
|
14687
14675
|
if (proto.type) {
|
|
14688
|
-
m.type = enumStringToValue$
|
|
14676
|
+
m.type = enumStringToValue$c(ProductType, proto.type);
|
|
14689
14677
|
}
|
|
14690
14678
|
return m;
|
|
14691
14679
|
}
|
|
@@ -14714,13 +14702,13 @@ class ReplaceTaxRuleRequest {
|
|
|
14714
14702
|
let m = new ReplaceTaxRuleRequest();
|
|
14715
14703
|
m = Object.assign(m, proto);
|
|
14716
14704
|
if (proto.entityType) {
|
|
14717
|
-
m.entityType = enumStringToValue$
|
|
14705
|
+
m.entityType = enumStringToValue$c(TaxRuleEntityType, proto.entityType);
|
|
14718
14706
|
}
|
|
14719
14707
|
if (proto.type) {
|
|
14720
|
-
m.type = enumStringToValue$
|
|
14708
|
+
m.type = enumStringToValue$c(TaxRuleType, proto.type);
|
|
14721
14709
|
}
|
|
14722
14710
|
if (proto.consumer) {
|
|
14723
|
-
m.consumer = enumStringToValue$
|
|
14711
|
+
m.consumer = enumStringToValue$c(Consumer, proto.consumer);
|
|
14724
14712
|
}
|
|
14725
14713
|
return m;
|
|
14726
14714
|
}
|
|
@@ -14778,13 +14766,13 @@ class TaxRule {
|
|
|
14778
14766
|
let m = new TaxRule();
|
|
14779
14767
|
m = Object.assign(m, proto);
|
|
14780
14768
|
if (proto.entityType) {
|
|
14781
|
-
m.entityType = enumStringToValue$
|
|
14769
|
+
m.entityType = enumStringToValue$c(TaxRuleEntityType, proto.entityType);
|
|
14782
14770
|
}
|
|
14783
14771
|
if (proto.entity) {
|
|
14784
14772
|
m.entity = TaxRuleTaxRuleEntity.fromProto(proto.entity);
|
|
14785
14773
|
}
|
|
14786
14774
|
if (proto.type) {
|
|
14787
|
-
m.type = enumStringToValue$
|
|
14775
|
+
m.type = enumStringToValue$c(TaxRuleType, proto.type);
|
|
14788
14776
|
}
|
|
14789
14777
|
if (proto.taxRates) {
|
|
14790
14778
|
m.taxRates = proto.taxRates.map(TaxRate.fromProto);
|
|
@@ -14905,7 +14893,7 @@ class TaxRuleProduct {
|
|
|
14905
14893
|
}
|
|
14906
14894
|
}
|
|
14907
14895
|
|
|
14908
|
-
function enumStringToValue$
|
|
14896
|
+
function enumStringToValue$b(enumRef, value) {
|
|
14909
14897
|
if (typeof value === 'number') {
|
|
14910
14898
|
return value;
|
|
14911
14899
|
}
|
|
@@ -15045,7 +15033,7 @@ class ListContractDocumentsResponse {
|
|
|
15045
15033
|
}
|
|
15046
15034
|
}
|
|
15047
15035
|
|
|
15048
|
-
function enumStringToValue$
|
|
15036
|
+
function enumStringToValue$a(enumRef, value) {
|
|
15049
15037
|
if (typeof value === 'number') {
|
|
15050
15038
|
return value;
|
|
15051
15039
|
}
|
|
@@ -15111,7 +15099,7 @@ class RetailCustomerConfiguration {
|
|
|
15111
15099
|
m.netD = parseInt(proto.netD, 10);
|
|
15112
15100
|
}
|
|
15113
15101
|
if (proto.paymentMethodTypes) {
|
|
15114
|
-
m.paymentMethodTypes = proto.paymentMethodTypes.map((v) => enumStringToValue$
|
|
15102
|
+
m.paymentMethodTypes = proto.paymentMethodTypes.map((v) => enumStringToValue$a(PaymentMethodType, v));
|
|
15115
15103
|
}
|
|
15116
15104
|
return m;
|
|
15117
15105
|
}
|
|
@@ -15179,7 +15167,7 @@ class UpsertRetailCustomerConfigurationRequest {
|
|
|
15179
15167
|
m.netD = parseInt(proto.netD, 10);
|
|
15180
15168
|
}
|
|
15181
15169
|
if (proto.paymentMethodTypes) {
|
|
15182
|
-
m.paymentMethodTypes = proto.paymentMethodTypes.map((v) => enumStringToValue$
|
|
15170
|
+
m.paymentMethodTypes = proto.paymentMethodTypes.map((v) => enumStringToValue$a(PaymentMethodType, v));
|
|
15183
15171
|
}
|
|
15184
15172
|
if (proto.fieldMask) {
|
|
15185
15173
|
m.fieldMask = FieldMask.fromProto(proto.fieldMask);
|
|
@@ -15240,7 +15228,7 @@ class UpsertRetailCustomerConfigurationRequest {
|
|
|
15240
15228
|
}
|
|
15241
15229
|
}
|
|
15242
15230
|
|
|
15243
|
-
function enumStringToValue$
|
|
15231
|
+
function enumStringToValue$9(enumRef, value) {
|
|
15244
15232
|
if (typeof value === 'number') {
|
|
15245
15233
|
return value;
|
|
15246
15234
|
}
|
|
@@ -15357,7 +15345,7 @@ class GetBalanceResponse {
|
|
|
15357
15345
|
}
|
|
15358
15346
|
}
|
|
15359
15347
|
|
|
15360
|
-
function enumStringToValue$
|
|
15348
|
+
function enumStringToValue$8(enumRef, value) {
|
|
15361
15349
|
if (typeof value === 'number') {
|
|
15362
15350
|
return value;
|
|
15363
15351
|
}
|
|
@@ -15368,7 +15356,7 @@ class CreateMerchantServicesReportRun {
|
|
|
15368
15356
|
let m = new CreateMerchantServicesReportRun();
|
|
15369
15357
|
m = Object.assign(m, proto);
|
|
15370
15358
|
if (proto.reportType) {
|
|
15371
|
-
m.reportType = enumStringToValue$
|
|
15359
|
+
m.reportType = enumStringToValue$8(MerchantServicesReportRunType, proto.reportType);
|
|
15372
15360
|
}
|
|
15373
15361
|
if (proto.intervalStart) {
|
|
15374
15362
|
m.intervalStart = new Date(proto.intervalStart);
|
|
@@ -15432,10 +15420,10 @@ class MerchantServicesReportRun {
|
|
|
15432
15420
|
m.created = new Date(proto.created);
|
|
15433
15421
|
}
|
|
15434
15422
|
if (proto.reportType) {
|
|
15435
|
-
m.reportType = enumStringToValue$
|
|
15423
|
+
m.reportType = enumStringToValue$8(MerchantServicesReportRunType, proto.reportType);
|
|
15436
15424
|
}
|
|
15437
15425
|
if (proto.status) {
|
|
15438
|
-
m.status = enumStringToValue$
|
|
15426
|
+
m.status = enumStringToValue$8(MerchantServicesReportRunStatus, proto.status);
|
|
15439
15427
|
}
|
|
15440
15428
|
return m;
|
|
15441
15429
|
}
|
|
@@ -15466,7 +15454,7 @@ class MerchantServicesReportRun {
|
|
|
15466
15454
|
}
|
|
15467
15455
|
}
|
|
15468
15456
|
|
|
15469
|
-
function enumStringToValue$
|
|
15457
|
+
function enumStringToValue$7(enumRef, value) {
|
|
15470
15458
|
if (typeof value === 'number') {
|
|
15471
15459
|
return value;
|
|
15472
15460
|
}
|
|
@@ -15516,7 +15504,7 @@ class MCPOptions {
|
|
|
15516
15504
|
}
|
|
15517
15505
|
}
|
|
15518
15506
|
|
|
15519
|
-
function enumStringToValue$
|
|
15507
|
+
function enumStringToValue$6(enumRef, value) {
|
|
15520
15508
|
if (typeof value === 'number') {
|
|
15521
15509
|
return value;
|
|
15522
15510
|
}
|
|
@@ -15527,13 +15515,13 @@ class ListSubscriptionRelationshipsRequestFilters {
|
|
|
15527
15515
|
let m = new ListSubscriptionRelationshipsRequestFilters();
|
|
15528
15516
|
m = Object.assign(m, proto);
|
|
15529
15517
|
if (proto.originType) {
|
|
15530
|
-
m.originType = enumStringToValue$
|
|
15518
|
+
m.originType = enumStringToValue$6(EntityType, proto.originType);
|
|
15531
15519
|
}
|
|
15532
15520
|
if (proto.targetType) {
|
|
15533
|
-
m.targetType = enumStringToValue$
|
|
15521
|
+
m.targetType = enumStringToValue$6(EntityType, proto.targetType);
|
|
15534
15522
|
}
|
|
15535
15523
|
if (proto.relationshipType) {
|
|
15536
|
-
m.relationshipType = enumStringToValue$
|
|
15524
|
+
m.relationshipType = enumStringToValue$6(RelationshipType, proto.relationshipType);
|
|
15537
15525
|
}
|
|
15538
15526
|
return m;
|
|
15539
15527
|
}
|
|
@@ -15721,13 +15709,13 @@ class SubscriptionRelationship {
|
|
|
15721
15709
|
let m = new SubscriptionRelationship();
|
|
15722
15710
|
m = Object.assign(m, proto);
|
|
15723
15711
|
if (proto.originType) {
|
|
15724
|
-
m.originType = enumStringToValue$
|
|
15712
|
+
m.originType = enumStringToValue$6(EntityType, proto.originType);
|
|
15725
15713
|
}
|
|
15726
15714
|
if (proto.targetType) {
|
|
15727
|
-
m.targetType = enumStringToValue$
|
|
15715
|
+
m.targetType = enumStringToValue$6(EntityType, proto.targetType);
|
|
15728
15716
|
}
|
|
15729
15717
|
if (proto.relationshipType) {
|
|
15730
|
-
m.relationshipType = enumStringToValue$
|
|
15718
|
+
m.relationshipType = enumStringToValue$6(RelationshipType, proto.relationshipType);
|
|
15731
15719
|
}
|
|
15732
15720
|
if (proto.created) {
|
|
15733
15721
|
m.created = new Date(proto.created);
|
|
@@ -15785,7 +15773,7 @@ class SubscriptionRelationship {
|
|
|
15785
15773
|
}
|
|
15786
15774
|
}
|
|
15787
15775
|
|
|
15788
|
-
function enumStringToValue$
|
|
15776
|
+
function enumStringToValue$5(enumRef, value) {
|
|
15789
15777
|
if (typeof value === 'number') {
|
|
15790
15778
|
return value;
|
|
15791
15779
|
}
|
|
@@ -15891,7 +15879,7 @@ class SubscriptionPreset {
|
|
|
15891
15879
|
}
|
|
15892
15880
|
}
|
|
15893
15881
|
|
|
15894
|
-
function enumStringToValue$
|
|
15882
|
+
function enumStringToValue$4(enumRef, value) {
|
|
15895
15883
|
if (typeof value === 'number') {
|
|
15896
15884
|
return value;
|
|
15897
15885
|
}
|
|
@@ -15902,13 +15890,13 @@ class AppliedTo {
|
|
|
15902
15890
|
let m = new AppliedTo();
|
|
15903
15891
|
m = Object.assign(m, proto);
|
|
15904
15892
|
if (proto.referenceType) {
|
|
15905
|
-
m.referenceType = enumStringToValue$
|
|
15893
|
+
m.referenceType = enumStringToValue$4(AppliedReferenceType, proto.referenceType);
|
|
15906
15894
|
}
|
|
15907
15895
|
if (proto.amount) {
|
|
15908
15896
|
m.amount = parseInt(proto.amount, 10);
|
|
15909
15897
|
}
|
|
15910
15898
|
if (proto.creditNoteType) {
|
|
15911
|
-
m.creditNoteType = enumStringToValue$
|
|
15899
|
+
m.creditNoteType = enumStringToValue$4(CreditNoteType, proto.creditNoteType);
|
|
15912
15900
|
}
|
|
15913
15901
|
if (proto.appliedAt) {
|
|
15914
15902
|
m.appliedAt = new Date(proto.appliedAt);
|
|
@@ -16056,7 +16044,7 @@ class CreditNote {
|
|
|
16056
16044
|
m.items = proto.items.map(LineItem.fromProto);
|
|
16057
16045
|
}
|
|
16058
16046
|
if (proto.currency) {
|
|
16059
|
-
m.currency = enumStringToValue$
|
|
16047
|
+
m.currency = enumStringToValue$4(Currency, proto.currency);
|
|
16060
16048
|
}
|
|
16061
16049
|
if (proto.amountTax) {
|
|
16062
16050
|
m.amountTax = parseInt(proto.amountTax, 10);
|
|
@@ -16068,7 +16056,7 @@ class CreditNote {
|
|
|
16068
16056
|
m.notes = proto.notes.map(Note.fromProto);
|
|
16069
16057
|
}
|
|
16070
16058
|
if (proto.reason) {
|
|
16071
|
-
m.reason = enumStringToValue$
|
|
16059
|
+
m.reason = enumStringToValue$4(CreditNoteReason, proto.reason);
|
|
16072
16060
|
}
|
|
16073
16061
|
if (proto.appliedTo) {
|
|
16074
16062
|
m.appliedTo = proto.appliedTo.map(AppliedTo.fromProto);
|
|
@@ -16408,7 +16396,7 @@ class SendCreditNoteRequest {
|
|
|
16408
16396
|
}
|
|
16409
16397
|
}
|
|
16410
16398
|
|
|
16411
|
-
function enumStringToValue$
|
|
16399
|
+
function enumStringToValue$3(enumRef, value) {
|
|
16412
16400
|
if (typeof value === 'number') {
|
|
16413
16401
|
return value;
|
|
16414
16402
|
}
|
|
@@ -16576,7 +16564,7 @@ class VendorSplit {
|
|
|
16576
16564
|
}
|
|
16577
16565
|
}
|
|
16578
16566
|
|
|
16579
|
-
function enumStringToValue$
|
|
16567
|
+
function enumStringToValue$2(enumRef, value) {
|
|
16580
16568
|
if (typeof value === 'number') {
|
|
16581
16569
|
return value;
|
|
16582
16570
|
}
|
|
@@ -16773,6 +16761,146 @@ class UpdateAvalaraConfigurationResponse {
|
|
|
16773
16761
|
}
|
|
16774
16762
|
}
|
|
16775
16763
|
|
|
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
|
+
|
|
16776
16904
|
function enumStringToValue(enumRef, value) {
|
|
16777
16905
|
if (typeof value === 'number') {
|
|
16778
16906
|
return value;
|
|
@@ -19469,6 +19597,44 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.5", ngImpor
|
|
|
19469
19597
|
args: [{ providedIn: 'root' }]
|
|
19470
19598
|
}] });
|
|
19471
19599
|
|
|
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
|
+
|
|
19472
19638
|
// *********************************
|
|
19473
19639
|
// Code generated by sdkgen
|
|
19474
19640
|
// DO NOT EDIT!.
|
|
@@ -19483,5 +19649,5 @@ const usdConversionRate = 1.4;
|
|
|
19483
19649
|
* Generated bundle index. Do not edit.
|
|
19484
19650
|
*/
|
|
19485
19651
|
|
|
19486
|
-
export { Access, AccountBalance, AddBundleRequest, AddBundleResponse, AddCreditRequest, AddLineItemRequest, AddLineItemResponse, Adjustment, AlignmentSubscription, AppliedBundle, AppliedBundleItem, AppliedCredit, AppliedCreditNote, AppliedDiscount, AppliedFee, AppliedReferenceType, AppliedTaxRate, AppliedTo, ArchiveTaxRequest, AvalaraConfiguration, AvalaraConfigurationApiService, Balance, BalanceAmount, BankAccount, BankReconciliationApiService, BillItemRequest, BillMultipleItemsRequest, BillMultipleItemsResponse, BillableItem, BillableItemCustomerAddress, BillableItemRetailSubscriptionGroup, BillingApiService, BillingStrategy, BulkReplaceTaxRulesRequest, BulkReplaceTaxRulesResponse, Bundle, BundleApiService, BundleItem, BundleItemPrice, BundlePricing, BundlePricingPriceAndFrequency, CalculateCreditNoteRequest, CalculateCreditNoteResponse, CalculateLineItemTaxesRequest, CalculateLineItemTaxesRequestLineItem, CalculateLineItemTaxesResponse, CalculateLineItemTaxesResponseLineItemTaxes, CalculateTaxRequest, CalculateTaxResponse, CanBillItemRequest, CanCreateSubscriptionsRequest, CanCreateSubscriptionsRequestSkusEntry, CanCreateSubscriptionsRequestSubscriptionItem, CanCreateSubscriptionsResponse, CancelRetailBillingRequest, CardType, ChangeCustomUnitPriceRequest, ChangeFrequencyRequest, ChangeRenewalDateRequest, ChargeInvoiceRequest, ChargeSalesInvoiceRequest, CloseRetailDisputeRequest, CollectionMethod, Commitment, ComponentPricing, ConfigureRetailPaymentProviderRequest, ConfigureRetailPaymentProviderResponse, ConfirmRetailPaymentRequest, ConnectStripeAccountRequest, ConnectStripeAccountResponse, Consumer, Contract, ContractApiService, ContractDocument, ContractDocumentApiService, ContractSubscriptionStatus, CreateAvalaraConfigurationRequest, CreateAvalaraConfigurationResponse, CreateContractRequest, CreateContractResponse, CreateCreditNoteRequest, CreateCreditNoteResponse, CreateDiscountRequest, CreateDiscountResponse, CreateInvoiceRequest, CreateInvoiceResponse, CreateMerchantRequest, CreateMerchantRequestIncludeInFinancialRecords, CreateMerchantServicesReportRun, CreateMeteredComponentRequest, CreatePaymentCardRequest, CreatePaymentLinkRequest, CreatePaymentLinkResponse, CreatePricingPlanProductRequest, CreatePricingPlanProductRequestPricingEntry, CreatePricingPlanProductResponse, CreatePricingPlanRequest, CreatePricingPlanResponse, CreateProductRequest, CreateRefundRequest, CreateRetailSubscriptionGroupRequest, CreateRetailSubscriptionGroupResponse, CreateSalesCreditNoteRequest, CreateStripeExternalAccountRequest, CreateSubscriptionRequest, CreateSubscriptionResponse, CreateSubscriptionsRequest, CreateSubscriptionsResponse, CreateTaxRequest, CreateTaxResponse, CreateUsageRequest, CreditApiService, CreditBalance, CreditNote, CreditNoteApiService, CreditNoteReason, CreditNoteType, CreditType, Currency, CustomerSummary, DateRange, DefaultCustomerConfiguration, DeleteAvalaraConfigurationRequest, DeleteBankAccountRequest, DeleteBillableItemRequest, DeleteContractDocumentRequest, DeleteInvoiceRequest, DeleteLineItemRequest, DeleteLineItemResponse, DeletePaymentCardRequest, DeletePricingPlanProductRequest, DeleteProductRequest, DeleteRecurringInvoiceRequest, DeleteRetailPricingRequest, DeleteTaxRuleRequest, Discount, DiscountApiService, DiscountType, DisplayOption, Dispute, DisputeEvidence, DisputeEvidenceDetails, DisputeStatus, DuplicateInvoiceRequest, DuplicateInvoiceResponse, EntityType, ExpireBillableItemRequest, ExpireDiscountRequest, ExportResponse, ExportSubscriptionsRequest, Fee, FeeAmountType, FeeType, FieldMask, File, Frequency, GenerateBillableItemsCSVRequest, GenerateBillableItemsCSVResponse, GenerateVendorReportRequest, GenerateVendorReportResponse, GetAvalaraConfigurationRequest, GetAvalaraConfigurationResponse, GetBalanceRequest, GetBalanceResponse, GetBillableItemRequest, GetBillableItemResponse, GetContractRequest, GetContractResponse, GetCreditNoteRequest, GetCreditNoteResponse, GetInvoiceRequest, GetInvoiceResponse, GetInvoiceWithCalculatedTaxesRequest, GetInvoiceWithCalculatedTaxesResponse, GetMerchantRequest, GetMerchantResponse, GetMerchantServicesReportRun, GetMerchantWholesaleCurrencyRequest, GetMerchantWholesaleCurrencyResponse, GetMultiBundleRequest, GetMultiBundleResponse, GetMultiBundleResponseBundlesEntry, GetMultiBundleRetailPricingRequest, GetMultiBundleRetailPricingResponse, GetMultiBundleRetailPricingResponsePricesEntry, GetMultiContractsRequest, GetMultiContractsResponse, GetMultiContractsResponseContractsEntry, GetMultiCreditNoteRequest, GetMultiCreditNoteResponse, GetMultiCustomerSummariesRequest, GetMultiCustomerSummariesResponse, GetMultiPricingPlanProductRequest, GetMultiPricingPlanProductResponse, GetMultiPricingPlanRequest, GetMultiPricingPlanResponse, GetMultiProductPricingRequest, GetMultiProductPricingResponse, GetMultiProductPricingResponseProductPricesEntry, GetMultiProductRequest, GetMultiProductResponse, GetMultiProductResponseProductsEntry, GetMultiRetailConfigurationsRequest, GetMultiRetailConfigurationsResponse, GetMultiRetailConfigurationsResponseRetailConfigurationsEntry, GetMultiRetailPricingRequest, GetMultiRetailPricingResponse, GetMultiRetailPricingResponseProductPricesEntry, GetMultiRetailSubscriptionGroupRequest, GetMultiRetailSubscriptionGroupResponse, GetMultiSubscriptionRelationshipsRequest, GetMultiSubscriptionRelationshipsResponse, GetMultiSubscriptionsRequest, GetMultiSubscriptionsRequestKey, GetMultiSubscriptionsResponse, GetMultiTaxRequest, GetMultiTaxResponse, GetMultiVendorSplitRequest, GetMultiVendorSplitResponse, GetMultiWholesaleCostRequest, GetMultiWholesaleCostResponse, GetNextRetailInvoiceSequenceRequest, GetNextRetailInvoiceSequenceResponse, GetOutstandingBalanceRequest, GetOutstandingBalanceResponse, GetPayoutSummaryRequest, GetPayoutSummaryResponse, GetPricingPlanProductRequest, GetPricingPlanProductResponse, GetProductSummariesTotalRequest, GetProductSummariesTotalResponse, GetPurchaseCostRequest, GetPurchaseCostResponse, GetRecurringInvoiceRequest, GetRetailAccountBalanceRequest, GetRetailAccountBalanceResponse, GetRetailBalanceRequest, GetRetailBalanceResponse, GetRetailCustomerConfigurationRequest, GetRetailCustomerConfigurationResponse, GetRetailDisputeRequest, GetRetailDisputeResponse, GetRetailPaymentProviderRequest, GetRetailPaymentProviderResponse, GetRetailPaymentRequest, GetRetailPaymentResponse, GetRetailPayoutRequest, GetRetailPayoutResponse, GetRevenueStatsRequest, GetRevenueStatsResponse, GetSalesInvoiceRequest, GetSalesInvoiceResponse, GetStatisticsRequest, GetStatisticsResponse, GetTaxProviderRequest, GetTaxProviderResponse, GetTaxRuleRequest, GetTaxRuleResponse, GetUpcomingInvoicePreviewRequest, GetUpcomingInvoicePreviewResponse, GetVendorSplitRequest, GetVendorSplitResponse, GetWholesaleComparisonRequest, GetWholesaleComparisonRequestGetWholesaleComparisonFilters, GetWholesaleComparisonResponse, GetWholesaleComparisonResponseGetWholesaleComparisonResult, GetWholesaleProviderPublicKeyRequest, GetWholesaleProviderPublicKeyResponse, HostService, Interval, Invoice, InvoiceApiService, InvoiceCustomerAddress, InvoiceItem, InvoiceItemRetailSubscriptionGroup, InvoiceStatus, Item, ItemDisplayGroup, LastPaymentStatus, LineItem, ListBankAccountsRequest, ListBankAccountsResponse, ListBillableItemsRequest, ListBillableItemsRequestFilters, ListBillableItemsResponse, ListBundlesRequest, ListBundlesRequestFilters, ListBundlesResponse, ListContractDocumentsRequest, ListContractDocumentsRequestFilters, ListContractDocumentsResponse, ListContractsRequest, ListContractsResponse, ListCreditNotesRequest, ListCreditNotesRequestFilters, ListCreditNotesResponse, ListDiscountsRequest, ListDiscountsRequestFilters, ListDiscountsResponse, ListInvoicesRequest, ListInvoicesRequestFilters, ListInvoicesRequestFiltersDateFilter, ListInvoicesRequestFiltersDateFilterDateField, ListInvoicesResponse, ListMerchantBillingReportsRequest, ListMerchantBillingReportsResponse, ListPaymentCardsRequest, ListPaymentCardsResponse, ListPaymentMethodsRequest, ListPaymentMethodsResponse, ListPaymentRequest, ListPaymentRequestListPaymentFilters, ListPaymentResponse, ListPayoutsRequest, ListPayoutsRequestFilters, ListPayoutsResponse, ListPricingPlanProductsRequest, ListPricingPlanProductsRequestListPricingPlanProductsFilters, ListPricingPlanProductsResponse, ListProductSummariesRequest, ListProductSummariesResponse, ListProductsRequest, ListProductsRequestListProductsFilters, ListProductsResponse, ListPurchaseItemsRequest, ListPurchaseItemsRequestListPurchaseItemsFilters, ListPurchaseItemsResponse, ListPurchaseRequest, ListPurchaseRequestListPurchaseBillingStrategyFilter, ListPurchaseRequestListPurchaseFilters, ListPurchaseRequestState, ListPurchaseResponse, ListRecurringInvoicesFilters, ListRecurringInvoicesFiltersDateFilter, ListRecurringInvoicesFiltersDetailedInterval, ListRecurringInvoicesRequest, ListRecurringInvoicesResponse, ListRefundsRequest, ListRefundsResponse, ListRetailDisputesRequest, ListRetailDisputesRequestListRetailDisputesFilters, ListRetailDisputesResponse, ListRetailPaymentsRequest, ListRetailPaymentsRequestListRetailPaymentsFilters, ListRetailPaymentsResponse, ListRetailPayoutsRequest, ListRetailPayoutsResponse, ListRetailSubscriptionGroupsForCustomerRequest, ListRetailSubscriptionGroupsForCustomerResponse, ListRetailTransactionsRequest, ListRetailTransactionsRequestListRetailTransactionsFilters, ListRetailTransactionsResponse, ListSalesCreditNoteRequest, ListSalesCreditNoteRequestListSalesCreditNoteFilters, ListSalesCreditNoteResponse, ListSalesInvoiceRequest, ListSalesInvoiceRequestListSalesInvoiceFilters, ListSalesInvoiceResponse, ListSubscriptionRelationshipsRequest, ListSubscriptionRelationshipsRequestFilters, ListSubscriptionRelationshipsResponse, ListSubscriptionRetentionByGroupResponse, ListSubscriptionRetentionByGroupResponseSubscriptionRetentionByGroup, ListSubscriptionRetentionBySKUResponse, ListSubscriptionRetentionRequest, ListSubscriptionRetentionRequestFilters, ListSubscriptionsRequest, ListSubscriptionsRequestFilters, ListSubscriptionsResponse, ListTaxRequest, ListTaxRequestFilters, ListTaxResponse, ListTaxRulesRequest, ListTaxRulesRequestFilters, ListTaxRulesResponse, MCPOptions, MarkPurchaseAsPaidRequest, Merchant, MerchantApiService, MerchantReport, MerchantReportStatus, MerchantServicesReportRun, MerchantServicesReportRunStatus, MerchantServicesReportRunType, MerchantType, MeteredComponent, Month, Note, Origin, PagedRequestOptions, PagedResponseMetadata, PauseDunningRequest, PayInvoiceRequest, Payment, PaymentACHDebit, PaymentACSSDebit, PaymentAllocationType, PaymentApiService, PaymentCard, PaymentCardCARD_TYPE, PaymentCardFUNDING_TYPE, PaymentErrorCode, PaymentFacilitatorType, PaymentIntent, PaymentIntentStatus, PaymentLinkItem, PaymentMethod, PaymentMethodApiService, PaymentMethodType, PaymentPaymentAllocation, PaymentProcessor, PaymentSource, PaymentStatus, PaymentStatuses, Payout, PayoutStatus, PayoutType, PostSalesInvoiceRequest, PrepareRetailPaymentRequest, PrepareRetailPaymentRequestOrder, PrepareRetailPaymentResponse, Pricing, PricingApiService, PricingPlan, PricingPlanProduct, PricingPlanProductPricing, PricingPlanProductPricingEntry, PricingRule, PricingRuleType, ProcessingFailureCode, Product, ProductApiService, ProductPrices, ProductPricing, ProductPricingRule, ProductPricingType, ProductSummary, ProductSummaryApiService, ProductSummaryBillingStrategy, ProductSummaryDiscount, ProductSummaryDiscountDiscountType, ProductSummaryProductType, ProductType, Purchase, PurchaseApiService, PurchaseItem, PurchaseStatus, RSGSource, RSGSourceType, ReconcilePayoutRequest, ReconcilePayoutResponse, RecurringInvoice, RecurringInvoiceApiService, RecurringInvoiceBundle, RecurringInvoiceCustomerAddress, RecurringInvoiceItem, RecurringInvoiceLineItem, RecurringInvoiceStatus, ReferenceType, Refund, RefundApiService, RefundReason, RefundRetailPaymentRequest, RefundRetailPaymentResponse, RefundStatus, RelationshipType, RemoveBundleRequest, RemoveBundleResponse, RenewalState, ReplaceSubscriptionPresetsRequest, ReplaceSubscriptionPresetsResponse, ReplaceSubscriptionRelationshipsRequest, ReplaceSubscriptionRelationshipsResponse, ReplaceTaxRuleRequest, ReplaceTaxRuleResponse, ResetContractPricingRequest, ResetPaymentFacilitatorRequest, ResumeDunningRequest, RetailConfiguration, RetailCustomerConfiguration, RetailCustomerConfigurationApiService, RetailPayment, RetailPaymentACHDetails, RetailPaymentACSSDetails, RetailPaymentCardDetails, RetailPaymentPaymentMethodDetailsType, RetailPaymentReferenceType, RetailPaymentsEnabledRequest, RetailPaymentsEnabledResponse, RetailPayout, RetailRefund, RetailRefundFailureReason, RetailRefundReason, RetailRefundStatus, RetailStatusRequest, RetailStatusResponse, RetailStatusResponseVerificationError, RetailStatusResponseVerificationRequirements, RetailSubscriptionGroup, RetailSubscriptionGroupApiService, RetailTransaction, RetailTransactionType, RetentionMetrics, RetryPurchaseRequest, ReverseSubscriptionRequest, SalesCreditNote, SalesCreditNoteApiService, SalesCreditNoteStatus, SalesInvoice, SalesInvoiceApiService, SalesInvoiceStatus, SalesInvoiceType, SearchMerchantsRequest, SearchMerchantsRequestSortBy, SearchMerchantsResponse, SendCreditNoteRequest, SendInvoiceRequest, SendSalesInvoiceEmailRequest, SendSalesInvoiceReceiptEmailRequest, SetAutoBillableRequest, SetAutoChargeInvoicesRequest, SetAutoPostInvoicesRequest, SetDefaultBankAccountRequest, SetDefaultPaymentCardRequest, SetDefaultPaymentMethodRequest, SetHasAlternativePaymentMethodRequest, SetIncludeInFinancialRecordsRequest, SetNextRetailInvoiceSequenceRequest, SetRenewalStartRequest, SetWholesaleProductStrategyRequest, SetWholesaleProductVolumeCommitmentRequest, SortDirection, Source, StartRevRecTemplateBackfillRequest, StopDunningRequest, SubmitEvidenceRequest, SubmitEvidenceRequestDisputeEvidence, SubscribeValidation, SubscribeValidationStatus, Subscription, SubscriptionPreset, SubscriptionProjectionFilter, SubscriptionRelationship, SubscriptionRelationshipApiService, SubscriptionStatus, TaxApiService, TaxProviderType, TaxRate, TaxRule, TaxRuleCustomer, TaxRuleCustomerCustomerAddress, TaxRuleEntityType, TaxRuleProduct, TaxRuleProductProductIdentifier, TaxRuleTaxRuleEntity, TaxRuleType, TickComponentUsageRequest, UnexpireBillableItemRequest, UpdateAvalaraConfigurationRequest, UpdateAvalaraConfigurationResponse, UpdateBundleRequest, UpdateBundleResponse, UpdateContractRequest, UpdateContractRequestMutation, UpdateContractResponse, UpdateContractSubscriptionRequest, UpdateDefaultTaxRatesRequest, UpdateDefaultTaxRatesResponse, UpdateDiscountRequest, UpdateInvoiceRequest, UpdateInvoiceResponse, UpdateLineItemRequest, UpdateLineItemResponse, UpdateMerchantRequest, UpdateMerchantRequestIncludeInFinancialRecords, UpdatePaymentCardRequest, UpdatePricingPlanProductRequest, UpdatePricingPlanProductRequestPricingEntry, UpdatePricingPlanProductResponse, UpdatePricingPlanRequest, UpdatePricingPlanResponse, UpdateProductRequest, UpdateRecurringInvoiceRequest, UpdateRetailPaymentProviderRequest, UpdateRetailSubscriptionGroupRequest, UpdateRetailSubscriptionGroupResponse, UpdateSubscriptionRequest, UpdateSubscriptionRequestSubscription, UpdateSubscriptionResponse, UpdateTaxRequest, UpsertBundleRequest, UpsertDefaultRetailCustomerConfigurationRequest, UpsertRetailConfigurationRequest, UpsertRetailCustomerConfigurationRequest, UpsertRetailPricingRequest, UpsertRetailPricingRequestPricingEntry, UpsertVendorSplitRequest, UpsertVendorSplitResponse, UpsertWholesalePricingRequest, ValidateResponse, VendorApiService, VendorSplit, VendorSplitApiService, VoidInvoiceRequest, VoidPurchaseRequest, WholesaleCostItemRequest, usdConversionRate };
|
|
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 };
|
|
19487
19653
|
//# sourceMappingURL=vendasta-billing.mjs.map
|