@vendasta/billing 15.1.0 → 16.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/esm2022/lib/_internal/index.mjs +1 -2
- package/esm2022/lib/_internal/interfaces/index.mjs +1 -1
- package/esm2022/lib/_internal/interfaces/invoice.interface.mjs +1 -1
- package/esm2022/lib/_internal/invoice.api.service.mjs +27 -2
- package/esm2022/lib/_internal/objects/index.mjs +2 -3
- package/esm2022/lib/_internal/objects/invoice.mjs +280 -2
- package/fesm2022/vendasta-billing.mjs +542 -417
- package/fesm2022/vendasta-billing.mjs.map +1 -1
- package/lib/_internal/index.d.ts +0 -1
- package/lib/_internal/interfaces/index.d.ts +1 -2
- package/lib/_internal/interfaces/invoice.interface.d.ts +49 -1
- package/lib/_internal/invoice.api.service.d.ts +7 -2
- package/lib/_internal/objects/index.d.ts +1 -2
- package/lib/_internal/objects/invoice.d.ts +79 -1
- package/package.json +1 -1
- package/esm2022/lib/_internal/interfaces/wholesale-tax-rule.interface.mjs +0 -2
- package/esm2022/lib/_internal/objects/wholesale-tax-rule.mjs +0 -141
- package/esm2022/lib/_internal/wholesale-tax-rule.api.service.mjs +0 -45
- package/lib/_internal/interfaces/wholesale-tax-rule.interface.d.ts +0 -22
- package/lib/_internal/objects/wholesale-tax-rule.d.ts +0 -39
- package/lib/_internal/wholesale-tax-rule.api.service.d.ts +0 -14
|
@@ -777,7 +777,7 @@ var CreditNoteReason;
|
|
|
777
777
|
// Enums Index.
|
|
778
778
|
// *********************************
|
|
779
779
|
|
|
780
|
-
function enumStringToValue$
|
|
780
|
+
function enumStringToValue$M(enumRef, value) {
|
|
781
781
|
if (typeof value === 'number') {
|
|
782
782
|
return value;
|
|
783
783
|
}
|
|
@@ -870,7 +870,7 @@ class PagedResponseMetadata {
|
|
|
870
870
|
}
|
|
871
871
|
}
|
|
872
872
|
|
|
873
|
-
function enumStringToValue$
|
|
873
|
+
function enumStringToValue$L(enumRef, value) {
|
|
874
874
|
if (typeof value === 'number') {
|
|
875
875
|
return value;
|
|
876
876
|
}
|
|
@@ -897,7 +897,7 @@ class FieldMask {
|
|
|
897
897
|
}
|
|
898
898
|
}
|
|
899
899
|
|
|
900
|
-
function enumStringToValue$
|
|
900
|
+
function enumStringToValue$K(enumRef, value) {
|
|
901
901
|
if (typeof value === 'number') {
|
|
902
902
|
return value;
|
|
903
903
|
}
|
|
@@ -933,7 +933,7 @@ class Commitment {
|
|
|
933
933
|
}
|
|
934
934
|
}
|
|
935
935
|
|
|
936
|
-
function enumStringToValue$
|
|
936
|
+
function enumStringToValue$J(enumRef, value) {
|
|
937
937
|
if (typeof value === 'number') {
|
|
938
938
|
return value;
|
|
939
939
|
}
|
|
@@ -973,10 +973,10 @@ class Fee {
|
|
|
973
973
|
let m = new Fee();
|
|
974
974
|
m = Object.assign(m, proto);
|
|
975
975
|
if (proto.amountType) {
|
|
976
|
-
m.amountType = enumStringToValue$
|
|
976
|
+
m.amountType = enumStringToValue$J(FeeAmountType, proto.amountType);
|
|
977
977
|
}
|
|
978
978
|
if (proto.feeType) {
|
|
979
|
-
m.feeType = enumStringToValue$
|
|
979
|
+
m.feeType = enumStringToValue$J(FeeType, proto.feeType);
|
|
980
980
|
}
|
|
981
981
|
return m;
|
|
982
982
|
}
|
|
@@ -1001,7 +1001,7 @@ class Fee {
|
|
|
1001
1001
|
}
|
|
1002
1002
|
}
|
|
1003
1003
|
|
|
1004
|
-
function enumStringToValue$
|
|
1004
|
+
function enumStringToValue$I(enumRef, value) {
|
|
1005
1005
|
if (typeof value === 'number') {
|
|
1006
1006
|
return value;
|
|
1007
1007
|
}
|
|
@@ -1038,7 +1038,7 @@ class CreatePricingPlanRequest {
|
|
|
1038
1038
|
let m = new CreatePricingPlanRequest();
|
|
1039
1039
|
m = Object.assign(m, proto);
|
|
1040
1040
|
if (proto.defaultBillingStrategy) {
|
|
1041
|
-
m.defaultBillingStrategy = enumStringToValue$
|
|
1041
|
+
m.defaultBillingStrategy = enumStringToValue$I(BillingStrategy, proto.defaultBillingStrategy);
|
|
1042
1042
|
}
|
|
1043
1043
|
return m;
|
|
1044
1044
|
}
|
|
@@ -1127,7 +1127,7 @@ class PricingPlan {
|
|
|
1127
1127
|
let m = new PricingPlan();
|
|
1128
1128
|
m = Object.assign(m, proto);
|
|
1129
1129
|
if (proto.defaultBillingStrategy) {
|
|
1130
|
-
m.defaultBillingStrategy = enumStringToValue$
|
|
1130
|
+
m.defaultBillingStrategy = enumStringToValue$I(BillingStrategy, proto.defaultBillingStrategy);
|
|
1131
1131
|
}
|
|
1132
1132
|
return m;
|
|
1133
1133
|
}
|
|
@@ -1156,7 +1156,7 @@ class PricingPlanProductPricing {
|
|
|
1156
1156
|
let m = new PricingPlanProductPricing();
|
|
1157
1157
|
m = Object.assign(m, proto);
|
|
1158
1158
|
if (proto.type) {
|
|
1159
|
-
m.type = enumStringToValue$
|
|
1159
|
+
m.type = enumStringToValue$I(ProductPricingType, proto.type);
|
|
1160
1160
|
}
|
|
1161
1161
|
if (proto.rules) {
|
|
1162
1162
|
m.rules = proto.rules.map(ProductPricingRule.fromProto);
|
|
@@ -1165,7 +1165,7 @@ class PricingPlanProductPricing {
|
|
|
1165
1165
|
m.setupFee = parseInt(proto.setupFee, 10);
|
|
1166
1166
|
}
|
|
1167
1167
|
if (proto.frequency) {
|
|
1168
|
-
m.frequency = enumStringToValue$
|
|
1168
|
+
m.frequency = enumStringToValue$I(Frequency, proto.frequency);
|
|
1169
1169
|
}
|
|
1170
1170
|
if (proto.fees) {
|
|
1171
1171
|
m.fees = proto.fees.map(Fee.fromProto);
|
|
@@ -1250,7 +1250,7 @@ class UpdatePricingPlanRequest {
|
|
|
1250
1250
|
m.fieldMask = FieldMask.fromProto(proto.fieldMask);
|
|
1251
1251
|
}
|
|
1252
1252
|
if (proto.defaultBillingStrategy) {
|
|
1253
|
-
m.defaultBillingStrategy = enumStringToValue$
|
|
1253
|
+
m.defaultBillingStrategy = enumStringToValue$I(BillingStrategy, proto.defaultBillingStrategy);
|
|
1254
1254
|
}
|
|
1255
1255
|
return m;
|
|
1256
1256
|
}
|
|
@@ -1295,7 +1295,7 @@ class UpdatePricingPlanResponse {
|
|
|
1295
1295
|
}
|
|
1296
1296
|
}
|
|
1297
1297
|
|
|
1298
|
-
function enumStringToValue$
|
|
1298
|
+
function enumStringToValue$H(enumRef, value) {
|
|
1299
1299
|
if (typeof value === 'number') {
|
|
1300
1300
|
return value;
|
|
1301
1301
|
}
|
|
@@ -1332,16 +1332,16 @@ class ProductPricing {
|
|
|
1332
1332
|
let m = new ProductPricing();
|
|
1333
1333
|
m = Object.assign(m, proto);
|
|
1334
1334
|
if (proto.strategy) {
|
|
1335
|
-
m.strategy = enumStringToValue$
|
|
1335
|
+
m.strategy = enumStringToValue$H(BillingStrategy, proto.strategy);
|
|
1336
1336
|
}
|
|
1337
1337
|
if (proto.pricingType) {
|
|
1338
|
-
m.pricingType = enumStringToValue$
|
|
1338
|
+
m.pricingType = enumStringToValue$H(ProductPricingType, proto.pricingType);
|
|
1339
1339
|
}
|
|
1340
1340
|
if (proto.currency) {
|
|
1341
|
-
m.currency = enumStringToValue$
|
|
1341
|
+
m.currency = enumStringToValue$H(Currency, proto.currency);
|
|
1342
1342
|
}
|
|
1343
1343
|
if (proto.frequency) {
|
|
1344
|
-
m.frequency = enumStringToValue$
|
|
1344
|
+
m.frequency = enumStringToValue$H(Frequency, proto.frequency);
|
|
1345
1345
|
}
|
|
1346
1346
|
if (proto.pricingRules) {
|
|
1347
1347
|
m.pricingRules = proto.pricingRules.map(ProductPricingRule.fromProto);
|
|
@@ -1412,7 +1412,7 @@ class WholesaleCostItemRequest {
|
|
|
1412
1412
|
m.quantity = parseInt(proto.quantity, 10);
|
|
1413
1413
|
}
|
|
1414
1414
|
if (proto.frequency) {
|
|
1415
|
-
m.frequency = enumStringToValue$
|
|
1415
|
+
m.frequency = enumStringToValue$H(Frequency, proto.frequency);
|
|
1416
1416
|
}
|
|
1417
1417
|
return m;
|
|
1418
1418
|
}
|
|
@@ -1437,7 +1437,7 @@ class WholesaleCostItemRequest {
|
|
|
1437
1437
|
}
|
|
1438
1438
|
}
|
|
1439
1439
|
|
|
1440
|
-
function enumStringToValue$
|
|
1440
|
+
function enumStringToValue$G(enumRef, value) {
|
|
1441
1441
|
if (typeof value === 'number') {
|
|
1442
1442
|
return value;
|
|
1443
1443
|
}
|
|
@@ -1448,7 +1448,7 @@ class SubscribeValidation {
|
|
|
1448
1448
|
let m = new SubscribeValidation();
|
|
1449
1449
|
m = Object.assign(m, proto);
|
|
1450
1450
|
if (proto.status) {
|
|
1451
|
-
m.status = enumStringToValue$
|
|
1451
|
+
m.status = enumStringToValue$G(SubscribeValidationStatus, proto.status);
|
|
1452
1452
|
}
|
|
1453
1453
|
return m;
|
|
1454
1454
|
}
|
|
@@ -1467,7 +1467,7 @@ class SubscribeValidation {
|
|
|
1467
1467
|
}
|
|
1468
1468
|
}
|
|
1469
1469
|
|
|
1470
|
-
function enumStringToValue$
|
|
1470
|
+
function enumStringToValue$F(enumRef, value) {
|
|
1471
1471
|
if (typeof value === 'number') {
|
|
1472
1472
|
return value;
|
|
1473
1473
|
}
|
|
@@ -1594,7 +1594,7 @@ class ChangeFrequencyRequest {
|
|
|
1594
1594
|
let m = new ChangeFrequencyRequest();
|
|
1595
1595
|
m = Object.assign(m, proto);
|
|
1596
1596
|
if (proto.frequency) {
|
|
1597
|
-
m.frequency = enumStringToValue$
|
|
1597
|
+
m.frequency = enumStringToValue$F(Frequency, proto.frequency);
|
|
1598
1598
|
}
|
|
1599
1599
|
return m;
|
|
1600
1600
|
}
|
|
@@ -1670,7 +1670,7 @@ class CreateSubscriptionRequest {
|
|
|
1670
1670
|
m.proratedTo = new Date(proto.proratedTo);
|
|
1671
1671
|
}
|
|
1672
1672
|
if (proto.renewalState) {
|
|
1673
|
-
m.renewalState = enumStringToValue$
|
|
1673
|
+
m.renewalState = enumStringToValue$F(RenewalState, proto.renewalState);
|
|
1674
1674
|
}
|
|
1675
1675
|
if (proto.customUnitPrice) {
|
|
1676
1676
|
m.customUnitPrice = parseInt(proto.customUnitPrice, 10);
|
|
@@ -1679,16 +1679,16 @@ class CreateSubscriptionRequest {
|
|
|
1679
1679
|
m.alignWith = AlignmentSubscription.fromProto(proto.alignWith);
|
|
1680
1680
|
}
|
|
1681
1681
|
if (proto.frequency) {
|
|
1682
|
-
m.frequency = enumStringToValue$
|
|
1682
|
+
m.frequency = enumStringToValue$F(Frequency, proto.frequency);
|
|
1683
1683
|
}
|
|
1684
1684
|
if (proto.retailAmount) {
|
|
1685
1685
|
m.retailAmount = parseInt(proto.retailAmount, 10);
|
|
1686
1686
|
}
|
|
1687
1687
|
if (proto.retailFrequency) {
|
|
1688
|
-
m.retailFrequency = enumStringToValue$
|
|
1688
|
+
m.retailFrequency = enumStringToValue$F(Frequency, proto.retailFrequency);
|
|
1689
1689
|
}
|
|
1690
1690
|
if (proto.consumer) {
|
|
1691
|
-
m.consumer = enumStringToValue$
|
|
1691
|
+
m.consumer = enumStringToValue$F(Consumer, proto.consumer);
|
|
1692
1692
|
}
|
|
1693
1693
|
if (proto.renewalStart) {
|
|
1694
1694
|
m.renewalStart = new Date(proto.renewalStart);
|
|
@@ -1962,7 +1962,7 @@ class Subscription {
|
|
|
1962
1962
|
m.billingStart = new Date(proto.billingStart);
|
|
1963
1963
|
}
|
|
1964
1964
|
if (proto.renewalState) {
|
|
1965
|
-
m.renewalState = enumStringToValue$
|
|
1965
|
+
m.renewalState = enumStringToValue$F(RenewalState, proto.renewalState);
|
|
1966
1966
|
}
|
|
1967
1967
|
if (proto.proratedTo) {
|
|
1968
1968
|
m.proratedTo = new Date(proto.proratedTo);
|
|
@@ -1974,16 +1974,16 @@ class Subscription {
|
|
|
1974
1974
|
m.alignWith = AlignmentSubscription.fromProto(proto.alignWith);
|
|
1975
1975
|
}
|
|
1976
1976
|
if (proto.frequency) {
|
|
1977
|
-
m.frequency = enumStringToValue$
|
|
1977
|
+
m.frequency = enumStringToValue$F(Frequency, proto.frequency);
|
|
1978
1978
|
}
|
|
1979
1979
|
if (proto.retailAmount) {
|
|
1980
1980
|
m.retailAmount = parseInt(proto.retailAmount, 10);
|
|
1981
1981
|
}
|
|
1982
1982
|
if (proto.retailFrequency) {
|
|
1983
|
-
m.retailFrequency = enumStringToValue$
|
|
1983
|
+
m.retailFrequency = enumStringToValue$F(Frequency, proto.retailFrequency);
|
|
1984
1984
|
}
|
|
1985
1985
|
if (proto.consumer) {
|
|
1986
|
-
m.consumer = enumStringToValue$
|
|
1986
|
+
m.consumer = enumStringToValue$F(Consumer, proto.consumer);
|
|
1987
1987
|
}
|
|
1988
1988
|
if (proto.renewalStart) {
|
|
1989
1989
|
m.renewalStart = new Date(proto.renewalStart);
|
|
@@ -2075,7 +2075,7 @@ class CanCreateSubscriptionsRequestSubscriptionItem {
|
|
|
2075
2075
|
let m = new CanCreateSubscriptionsRequestSubscriptionItem();
|
|
2076
2076
|
m = Object.assign(m, proto);
|
|
2077
2077
|
if (proto.frequency) {
|
|
2078
|
-
m.frequency = enumStringToValue$
|
|
2078
|
+
m.frequency = enumStringToValue$F(Frequency, proto.frequency);
|
|
2079
2079
|
}
|
|
2080
2080
|
if (proto.quantity) {
|
|
2081
2081
|
m.quantity = parseInt(proto.quantity, 10);
|
|
@@ -2129,7 +2129,7 @@ class ValidateResponse {
|
|
|
2129
2129
|
}
|
|
2130
2130
|
}
|
|
2131
2131
|
|
|
2132
|
-
function enumStringToValue$
|
|
2132
|
+
function enumStringToValue$E(enumRef, value) {
|
|
2133
2133
|
if (typeof value === 'number') {
|
|
2134
2134
|
return value;
|
|
2135
2135
|
}
|
|
@@ -2272,7 +2272,7 @@ class RSGSource {
|
|
|
2272
2272
|
let m = new RSGSource();
|
|
2273
2273
|
m = Object.assign(m, proto);
|
|
2274
2274
|
if (proto.sourceType) {
|
|
2275
|
-
m.sourceType = enumStringToValue$
|
|
2275
|
+
m.sourceType = enumStringToValue$E(RSGSourceType, proto.sourceType);
|
|
2276
2276
|
}
|
|
2277
2277
|
return m;
|
|
2278
2278
|
}
|
|
@@ -2298,7 +2298,7 @@ class RetailSubscriptionGroup {
|
|
|
2298
2298
|
let m = new RetailSubscriptionGroup();
|
|
2299
2299
|
m = Object.assign(m, proto);
|
|
2300
2300
|
if (proto.displayOption) {
|
|
2301
|
-
m.displayOption = enumStringToValue$
|
|
2301
|
+
m.displayOption = enumStringToValue$E(DisplayOption, proto.displayOption);
|
|
2302
2302
|
}
|
|
2303
2303
|
if (proto.source) {
|
|
2304
2304
|
m.source = RSGSource.fromProto(proto.source);
|
|
@@ -2387,7 +2387,7 @@ class UpdateRetailSubscriptionGroupResponse {
|
|
|
2387
2387
|
}
|
|
2388
2388
|
}
|
|
2389
2389
|
|
|
2390
|
-
function enumStringToValue$
|
|
2390
|
+
function enumStringToValue$D(enumRef, value) {
|
|
2391
2391
|
if (typeof value === 'number') {
|
|
2392
2392
|
return value;
|
|
2393
2393
|
}
|
|
@@ -2497,7 +2497,7 @@ class BillableItem {
|
|
|
2497
2497
|
m.updated = new Date(proto.updated);
|
|
2498
2498
|
}
|
|
2499
2499
|
if (proto.frequency) {
|
|
2500
|
-
m.frequency = enumStringToValue$
|
|
2500
|
+
m.frequency = enumStringToValue$D(Frequency, proto.frequency);
|
|
2501
2501
|
}
|
|
2502
2502
|
if (proto.nextRenewal) {
|
|
2503
2503
|
m.nextRenewal = new Date(proto.nextRenewal);
|
|
@@ -2509,7 +2509,7 @@ class BillableItem {
|
|
|
2509
2509
|
m.customUnitPrice = parseInt(proto.customUnitPrice, 10);
|
|
2510
2510
|
}
|
|
2511
2511
|
if (proto.retailFrequency) {
|
|
2512
|
-
m.retailFrequency = enumStringToValue$
|
|
2512
|
+
m.retailFrequency = enumStringToValue$D(Frequency, proto.retailFrequency);
|
|
2513
2513
|
}
|
|
2514
2514
|
if (proto.nextRetailRenewal) {
|
|
2515
2515
|
m.nextRetailRenewal = new Date(proto.nextRetailRenewal);
|
|
@@ -2518,7 +2518,7 @@ class BillableItem {
|
|
|
2518
2518
|
m.retailUnitPrice = parseInt(proto.retailUnitPrice, 10);
|
|
2519
2519
|
}
|
|
2520
2520
|
if (proto.status) {
|
|
2521
|
-
m.status = enumStringToValue$
|
|
2521
|
+
m.status = enumStringToValue$D(SubscriptionStatus, proto.status);
|
|
2522
2522
|
}
|
|
2523
2523
|
if (proto.price) {
|
|
2524
2524
|
m.price = ProductPricing.fromProto(proto.price);
|
|
@@ -2527,10 +2527,10 @@ class BillableItem {
|
|
|
2527
2527
|
m.deleted = new Date(proto.deleted);
|
|
2528
2528
|
}
|
|
2529
2529
|
if (proto.source) {
|
|
2530
|
-
m.source = enumStringToValue$
|
|
2530
|
+
m.source = enumStringToValue$D(Source, proto.source);
|
|
2531
2531
|
}
|
|
2532
2532
|
if (proto.consumer) {
|
|
2533
|
-
m.consumer = enumStringToValue$
|
|
2533
|
+
m.consumer = enumStringToValue$D(Consumer, proto.consumer);
|
|
2534
2534
|
}
|
|
2535
2535
|
if (proto.billingCycleAnchor) {
|
|
2536
2536
|
m.billingCycleAnchor = new Date(proto.billingCycleAnchor);
|
|
@@ -2809,7 +2809,7 @@ class ExportSubscriptionsRequest {
|
|
|
2809
2809
|
m.filters = ListSubscriptionsRequestFilters.fromProto(proto.filters);
|
|
2810
2810
|
}
|
|
2811
2811
|
if (proto.consumer) {
|
|
2812
|
-
m.consumer = enumStringToValue$
|
|
2812
|
+
m.consumer = enumStringToValue$D(Consumer, proto.consumer);
|
|
2813
2813
|
}
|
|
2814
2814
|
return m;
|
|
2815
2815
|
}
|
|
@@ -2861,7 +2861,7 @@ class ListSubscriptionsRequestFilters {
|
|
|
2861
2861
|
let m = new ListSubscriptionsRequestFilters();
|
|
2862
2862
|
m = Object.assign(m, proto);
|
|
2863
2863
|
if (proto.status) {
|
|
2864
|
-
m.status = enumStringToValue$
|
|
2864
|
+
m.status = enumStringToValue$D(SubscriptionStatus, proto.status);
|
|
2865
2865
|
}
|
|
2866
2866
|
if (proto.expiredDateGte) {
|
|
2867
2867
|
m.expiredDateGte = new Date(proto.expiredDateGte);
|
|
@@ -2870,7 +2870,7 @@ class ListSubscriptionsRequestFilters {
|
|
|
2870
2870
|
m.expiredDateLte = new Date(proto.expiredDateLte);
|
|
2871
2871
|
}
|
|
2872
2872
|
if (proto.frequencies) {
|
|
2873
|
-
m.frequencies = proto.frequencies.map((v) => enumStringToValue$
|
|
2873
|
+
m.frequencies = proto.frequencies.map((v) => enumStringToValue$D(Frequency, v));
|
|
2874
2874
|
}
|
|
2875
2875
|
return m;
|
|
2876
2876
|
}
|
|
@@ -3216,7 +3216,7 @@ class BillableItemRetailSubscriptionGroup {
|
|
|
3216
3216
|
let m = new BillableItemRetailSubscriptionGroup();
|
|
3217
3217
|
m = Object.assign(m, proto);
|
|
3218
3218
|
if (proto.displayOption) {
|
|
3219
|
-
m.displayOption = enumStringToValue$
|
|
3219
|
+
m.displayOption = enumStringToValue$D(DisplayOption, proto.displayOption);
|
|
3220
3220
|
}
|
|
3221
3221
|
return m;
|
|
3222
3222
|
}
|
|
@@ -3377,7 +3377,7 @@ class UpdateSubscriptionResponse {
|
|
|
3377
3377
|
}
|
|
3378
3378
|
}
|
|
3379
3379
|
|
|
3380
|
-
function enumStringToValue$
|
|
3380
|
+
function enumStringToValue$C(enumRef, value) {
|
|
3381
3381
|
if (typeof value === 'number') {
|
|
3382
3382
|
return value;
|
|
3383
3383
|
}
|
|
@@ -3388,7 +3388,7 @@ class AppliedDiscount {
|
|
|
3388
3388
|
let m = new AppliedDiscount();
|
|
3389
3389
|
m = Object.assign(m, proto);
|
|
3390
3390
|
if (proto.type) {
|
|
3391
|
-
m.type = enumStringToValue$
|
|
3391
|
+
m.type = enumStringToValue$C(DiscountType, proto.type);
|
|
3392
3392
|
}
|
|
3393
3393
|
if (proto.value) {
|
|
3394
3394
|
m.value = parseInt(proto.value, 10);
|
|
@@ -3425,7 +3425,7 @@ class AppliedDiscount {
|
|
|
3425
3425
|
}
|
|
3426
3426
|
}
|
|
3427
3427
|
|
|
3428
|
-
function enumStringToValue$
|
|
3428
|
+
function enumStringToValue$B(enumRef, value) {
|
|
3429
3429
|
if (typeof value === 'number') {
|
|
3430
3430
|
return value;
|
|
3431
3431
|
}
|
|
@@ -3483,7 +3483,7 @@ class BundleItem {
|
|
|
3483
3483
|
let m = new BundleItem();
|
|
3484
3484
|
m = Object.assign(m, proto);
|
|
3485
3485
|
if (proto.discountType) {
|
|
3486
|
-
m.discountType = enumStringToValue$
|
|
3486
|
+
m.discountType = enumStringToValue$B(DiscountType, proto.discountType);
|
|
3487
3487
|
}
|
|
3488
3488
|
if (proto.discountAmount) {
|
|
3489
3489
|
m.discountAmount = parseInt(proto.discountAmount, 10);
|
|
@@ -3741,7 +3741,7 @@ class BundlePricingPriceAndFrequency {
|
|
|
3741
3741
|
let m = new BundlePricingPriceAndFrequency();
|
|
3742
3742
|
m = Object.assign(m, proto);
|
|
3743
3743
|
if (proto.frequency) {
|
|
3744
|
-
m.frequency = enumStringToValue$
|
|
3744
|
+
m.frequency = enumStringToValue$B(Frequency, proto.frequency);
|
|
3745
3745
|
}
|
|
3746
3746
|
if (proto.effectivePrice) {
|
|
3747
3747
|
m.effectivePrice = parseInt(proto.effectivePrice, 10);
|
|
@@ -3813,7 +3813,7 @@ class UpsertBundleRequest {
|
|
|
3813
3813
|
}
|
|
3814
3814
|
}
|
|
3815
3815
|
|
|
3816
|
-
function enumStringToValue$
|
|
3816
|
+
function enumStringToValue$A(enumRef, value) {
|
|
3817
3817
|
if (typeof value === 'number') {
|
|
3818
3818
|
return value;
|
|
3819
3819
|
}
|
|
@@ -3830,7 +3830,7 @@ class Contract {
|
|
|
3830
3830
|
m.created = new Date(proto.created);
|
|
3831
3831
|
}
|
|
3832
3832
|
if (proto.currency) {
|
|
3833
|
-
m.currency = enumStringToValue$
|
|
3833
|
+
m.currency = enumStringToValue$A(Currency, proto.currency);
|
|
3834
3834
|
}
|
|
3835
3835
|
if (proto.signed) {
|
|
3836
3836
|
m.signed = new Date(proto.signed);
|
|
@@ -3851,7 +3851,7 @@ class Contract {
|
|
|
3851
3851
|
m.end = new Date(proto.end);
|
|
3852
3852
|
}
|
|
3853
3853
|
if (proto.subscriptionUpdateStatus) {
|
|
3854
|
-
m.subscriptionUpdateStatus = enumStringToValue$
|
|
3854
|
+
m.subscriptionUpdateStatus = enumStringToValue$A(ContractSubscriptionStatus, proto.subscriptionUpdateStatus);
|
|
3855
3855
|
}
|
|
3856
3856
|
return m;
|
|
3857
3857
|
}
|
|
@@ -4051,7 +4051,7 @@ class GetMerchantWholesaleCurrencyResponse {
|
|
|
4051
4051
|
let m = new GetMerchantWholesaleCurrencyResponse();
|
|
4052
4052
|
m = Object.assign(m, proto);
|
|
4053
4053
|
if (proto.currency) {
|
|
4054
|
-
m.currency = enumStringToValue$
|
|
4054
|
+
m.currency = enumStringToValue$A(Currency, proto.currency);
|
|
4055
4055
|
}
|
|
4056
4056
|
return m;
|
|
4057
4057
|
}
|
|
@@ -4306,7 +4306,7 @@ class UpdateContractSubscriptionRequest {
|
|
|
4306
4306
|
let m = new UpdateContractSubscriptionRequest();
|
|
4307
4307
|
m = Object.assign(m, proto);
|
|
4308
4308
|
if (proto.frequency) {
|
|
4309
|
-
m.frequency = enumStringToValue$
|
|
4309
|
+
m.frequency = enumStringToValue$A(Frequency, proto.frequency);
|
|
4310
4310
|
}
|
|
4311
4311
|
return m;
|
|
4312
4312
|
}
|
|
@@ -4331,7 +4331,7 @@ class UpdateContractSubscriptionRequest {
|
|
|
4331
4331
|
}
|
|
4332
4332
|
}
|
|
4333
4333
|
|
|
4334
|
-
function enumStringToValue$
|
|
4334
|
+
function enumStringToValue$z(enumRef, value) {
|
|
4335
4335
|
if (typeof value === 'number') {
|
|
4336
4336
|
return value;
|
|
4337
4337
|
}
|
|
@@ -4348,7 +4348,7 @@ class CustomerSummary {
|
|
|
4348
4348
|
m.purchaseItemTotal = parseInt(proto.purchaseItemTotal, 10);
|
|
4349
4349
|
}
|
|
4350
4350
|
if (proto.currency) {
|
|
4351
|
-
m.currency = enumStringToValue$
|
|
4351
|
+
m.currency = enumStringToValue$z(Currency, proto.currency);
|
|
4352
4352
|
}
|
|
4353
4353
|
return m;
|
|
4354
4354
|
}
|
|
@@ -4434,7 +4434,7 @@ class GetMultiCustomerSummariesResponse {
|
|
|
4434
4434
|
}
|
|
4435
4435
|
}
|
|
4436
4436
|
|
|
4437
|
-
function enumStringToValue$
|
|
4437
|
+
function enumStringToValue$y(enumRef, value) {
|
|
4438
4438
|
if (typeof value === 'number') {
|
|
4439
4439
|
return value;
|
|
4440
4440
|
}
|
|
@@ -4594,7 +4594,7 @@ class SetDefaultBankAccountRequest {
|
|
|
4594
4594
|
}
|
|
4595
4595
|
}
|
|
4596
4596
|
|
|
4597
|
-
function enumStringToValue$
|
|
4597
|
+
function enumStringToValue$x(enumRef, value) {
|
|
4598
4598
|
if (typeof value === 'number') {
|
|
4599
4599
|
return value;
|
|
4600
4600
|
}
|
|
@@ -4605,7 +4605,7 @@ class ProductSummaryDiscount {
|
|
|
4605
4605
|
let m = new ProductSummaryDiscount();
|
|
4606
4606
|
m = Object.assign(m, proto);
|
|
4607
4607
|
if (proto.type) {
|
|
4608
|
-
m.type = enumStringToValue$
|
|
4608
|
+
m.type = enumStringToValue$x(ProductSummaryDiscountDiscountType, proto.type);
|
|
4609
4609
|
}
|
|
4610
4610
|
if (proto.value) {
|
|
4611
4611
|
m.value = parseInt(proto.value, 10);
|
|
@@ -4899,7 +4899,7 @@ class Pricing {
|
|
|
4899
4899
|
let m = new Pricing();
|
|
4900
4900
|
m = Object.assign(m, proto);
|
|
4901
4901
|
if (proto.type) {
|
|
4902
|
-
m.type = enumStringToValue$
|
|
4902
|
+
m.type = enumStringToValue$x(PricingRuleType, proto.type);
|
|
4903
4903
|
}
|
|
4904
4904
|
if (proto.rules) {
|
|
4905
4905
|
m.rules = proto.rules.map(PricingRule.fromProto);
|
|
@@ -4943,13 +4943,13 @@ class ProductSummary {
|
|
|
4943
4943
|
m.discounts = proto.discounts.map(ProductSummaryDiscount.fromProto);
|
|
4944
4944
|
}
|
|
4945
4945
|
if (proto.billingStrategy) {
|
|
4946
|
-
m.billingStrategy = enumStringToValue$
|
|
4946
|
+
m.billingStrategy = enumStringToValue$x(ProductSummaryBillingStrategy, proto.billingStrategy);
|
|
4947
4947
|
}
|
|
4948
4948
|
if (proto.productType) {
|
|
4949
|
-
m.productType = enumStringToValue$
|
|
4949
|
+
m.productType = enumStringToValue$x(ProductSummaryProductType, proto.productType);
|
|
4950
4950
|
}
|
|
4951
4951
|
if (proto.frequency) {
|
|
4952
|
-
m.frequency = enumStringToValue$
|
|
4952
|
+
m.frequency = enumStringToValue$x(Frequency, proto.frequency);
|
|
4953
4953
|
}
|
|
4954
4954
|
if (proto.volumeCommitment) {
|
|
4955
4955
|
m.volumeCommitment = parseInt(proto.volumeCommitment, 10);
|
|
@@ -5130,7 +5130,7 @@ class ListSubscriptionRetentionByGroupResponseSubscriptionRetentionByGroup {
|
|
|
5130
5130
|
}
|
|
5131
5131
|
}
|
|
5132
5132
|
|
|
5133
|
-
function enumStringToValue$
|
|
5133
|
+
function enumStringToValue$w(enumRef, value) {
|
|
5134
5134
|
if (typeof value === 'number') {
|
|
5135
5135
|
return value;
|
|
5136
5136
|
}
|
|
@@ -5141,7 +5141,7 @@ class CreateDiscountRequest {
|
|
|
5141
5141
|
let m = new CreateDiscountRequest();
|
|
5142
5142
|
m = Object.assign(m, proto);
|
|
5143
5143
|
if (proto.discountType) {
|
|
5144
|
-
m.discountType = enumStringToValue$
|
|
5144
|
+
m.discountType = enumStringToValue$w(DiscountType, proto.discountType);
|
|
5145
5145
|
}
|
|
5146
5146
|
if (proto.amount) {
|
|
5147
5147
|
m.amount = parseInt(proto.amount, 10);
|
|
@@ -5153,7 +5153,7 @@ class CreateDiscountRequest {
|
|
|
5153
5153
|
m.end = new Date(proto.end);
|
|
5154
5154
|
}
|
|
5155
5155
|
if (proto.consumer) {
|
|
5156
|
-
m.consumer = enumStringToValue$
|
|
5156
|
+
m.consumer = enumStringToValue$w(Consumer, proto.consumer);
|
|
5157
5157
|
}
|
|
5158
5158
|
if (proto.numberOfBillingPeriods) {
|
|
5159
5159
|
m.numberOfBillingPeriods = parseInt(proto.numberOfBillingPeriods, 10);
|
|
@@ -5235,7 +5235,7 @@ class Discount {
|
|
|
5235
5235
|
m.discountId = parseInt(proto.discountId, 10);
|
|
5236
5236
|
}
|
|
5237
5237
|
if (proto.discountType) {
|
|
5238
|
-
m.discountType = enumStringToValue$
|
|
5238
|
+
m.discountType = enumStringToValue$w(DiscountType, proto.discountType);
|
|
5239
5239
|
}
|
|
5240
5240
|
if (proto.amount) {
|
|
5241
5241
|
m.amount = parseInt(proto.amount, 10);
|
|
@@ -5253,7 +5253,7 @@ class Discount {
|
|
|
5253
5253
|
m.updated = new Date(proto.updated);
|
|
5254
5254
|
}
|
|
5255
5255
|
if (proto.consumer) {
|
|
5256
|
-
m.consumer = enumStringToValue$
|
|
5256
|
+
m.consumer = enumStringToValue$w(Consumer, proto.consumer);
|
|
5257
5257
|
}
|
|
5258
5258
|
if (proto.numberOfBillingPeriods) {
|
|
5259
5259
|
m.numberOfBillingPeriods = parseInt(proto.numberOfBillingPeriods, 10);
|
|
@@ -5350,7 +5350,7 @@ class ListDiscountsRequestFilters {
|
|
|
5350
5350
|
m.expiry = new Date(proto.expiry);
|
|
5351
5351
|
}
|
|
5352
5352
|
if (proto.consumers) {
|
|
5353
|
-
m.consumers = proto.consumers.map((v) => enumStringToValue$
|
|
5353
|
+
m.consumers = proto.consumers.map((v) => enumStringToValue$w(Consumer, v));
|
|
5354
5354
|
}
|
|
5355
5355
|
return m;
|
|
5356
5356
|
}
|
|
@@ -5449,7 +5449,7 @@ class UpdateDiscountRequest {
|
|
|
5449
5449
|
let m = new UpdateDiscountRequest();
|
|
5450
5450
|
m = Object.assign(m, proto);
|
|
5451
5451
|
if (proto.discountType) {
|
|
5452
|
-
m.discountType = enumStringToValue$
|
|
5452
|
+
m.discountType = enumStringToValue$w(DiscountType, proto.discountType);
|
|
5453
5453
|
}
|
|
5454
5454
|
if (proto.amount) {
|
|
5455
5455
|
m.amount = parseInt(proto.amount, 10);
|
|
@@ -5510,7 +5510,7 @@ class UpdateDiscountRequest {
|
|
|
5510
5510
|
}
|
|
5511
5511
|
}
|
|
5512
5512
|
|
|
5513
|
-
function enumStringToValue$
|
|
5513
|
+
function enumStringToValue$v(enumRef, value) {
|
|
5514
5514
|
if (typeof value === 'number') {
|
|
5515
5515
|
return value;
|
|
5516
5516
|
}
|
|
@@ -5552,7 +5552,7 @@ class AppliedTaxRate {
|
|
|
5552
5552
|
}
|
|
5553
5553
|
}
|
|
5554
5554
|
|
|
5555
|
-
function enumStringToValue$
|
|
5555
|
+
function enumStringToValue$u(enumRef, value) {
|
|
5556
5556
|
if (typeof value === 'number') {
|
|
5557
5557
|
return value;
|
|
5558
5558
|
}
|
|
@@ -6044,7 +6044,7 @@ class UpdateTaxRequest {
|
|
|
6044
6044
|
}
|
|
6045
6045
|
}
|
|
6046
6046
|
|
|
6047
|
-
function enumStringToValue$
|
|
6047
|
+
function enumStringToValue$t(enumRef, value) {
|
|
6048
6048
|
if (typeof value === 'number') {
|
|
6049
6049
|
return value;
|
|
6050
6050
|
}
|
|
@@ -6121,7 +6121,7 @@ class AppliedBundleItem {
|
|
|
6121
6121
|
}
|
|
6122
6122
|
}
|
|
6123
6123
|
|
|
6124
|
-
function enumStringToValue$
|
|
6124
|
+
function enumStringToValue$s(enumRef, value) {
|
|
6125
6125
|
if (typeof value === 'number') {
|
|
6126
6126
|
return value;
|
|
6127
6127
|
}
|
|
@@ -6227,10 +6227,10 @@ class PaymentCard {
|
|
|
6227
6227
|
let m = new PaymentCard();
|
|
6228
6228
|
m = Object.assign(m, proto);
|
|
6229
6229
|
if (proto.cardType) {
|
|
6230
|
-
m.cardType = enumStringToValue$
|
|
6230
|
+
m.cardType = enumStringToValue$s(PaymentCardCARD_TYPE, proto.cardType);
|
|
6231
6231
|
}
|
|
6232
6232
|
if (proto.fundingType) {
|
|
6233
|
-
m.fundingType = enumStringToValue$
|
|
6233
|
+
m.fundingType = enumStringToValue$s(PaymentCardFUNDING_TYPE, proto.fundingType);
|
|
6234
6234
|
}
|
|
6235
6235
|
return m;
|
|
6236
6236
|
}
|
|
@@ -6337,7 +6337,7 @@ class UpdatePaymentCardRequest {
|
|
|
6337
6337
|
}
|
|
6338
6338
|
}
|
|
6339
6339
|
|
|
6340
|
-
function enumStringToValue$
|
|
6340
|
+
function enumStringToValue$r(enumRef, value) {
|
|
6341
6341
|
if (typeof value === 'number') {
|
|
6342
6342
|
return value;
|
|
6343
6343
|
}
|
|
@@ -6440,7 +6440,7 @@ class PaymentMethod {
|
|
|
6440
6440
|
let m = new PaymentMethod();
|
|
6441
6441
|
m = Object.assign(m, proto);
|
|
6442
6442
|
if (proto.type) {
|
|
6443
|
-
m.type = enumStringToValue$
|
|
6443
|
+
m.type = enumStringToValue$r(PaymentMethodType, proto.type);
|
|
6444
6444
|
}
|
|
6445
6445
|
if (proto.card) {
|
|
6446
6446
|
m.card = PaymentCard.fromProto(proto.card);
|
|
@@ -6480,7 +6480,7 @@ class PaymentMethod {
|
|
|
6480
6480
|
}
|
|
6481
6481
|
}
|
|
6482
6482
|
|
|
6483
|
-
function enumStringToValue$
|
|
6483
|
+
function enumStringToValue$q(enumRef, value) {
|
|
6484
6484
|
if (typeof value === 'number') {
|
|
6485
6485
|
return value;
|
|
6486
6486
|
}
|
|
@@ -6575,7 +6575,7 @@ class ListRecurringInvoicesFiltersDetailedInterval {
|
|
|
6575
6575
|
let m = new ListRecurringInvoicesFiltersDetailedInterval();
|
|
6576
6576
|
m = Object.assign(m, proto);
|
|
6577
6577
|
if (proto.interval) {
|
|
6578
|
-
m.interval = enumStringToValue$
|
|
6578
|
+
m.interval = enumStringToValue$q(Interval, proto.interval);
|
|
6579
6579
|
}
|
|
6580
6580
|
if (proto.intervalCount) {
|
|
6581
6581
|
m.intervalCount = parseInt(proto.intervalCount, 10);
|
|
@@ -6624,7 +6624,7 @@ class ListRecurringInvoicesFilters {
|
|
|
6624
6624
|
let m = new ListRecurringInvoicesFilters();
|
|
6625
6625
|
m = Object.assign(m, proto);
|
|
6626
6626
|
if (proto.statuses) {
|
|
6627
|
-
m.statuses = proto.statuses.map((v) => enumStringToValue$
|
|
6627
|
+
m.statuses = proto.statuses.map((v) => enumStringToValue$q(RecurringInvoiceStatus, v));
|
|
6628
6628
|
}
|
|
6629
6629
|
if (proto.intervals) {
|
|
6630
6630
|
m.intervals = proto.intervals.map(ListRecurringInvoicesFiltersDetailedInterval.fromProto);
|
|
@@ -6729,7 +6729,7 @@ class RecurringInvoice {
|
|
|
6729
6729
|
m.updated = new Date(proto.updated);
|
|
6730
6730
|
}
|
|
6731
6731
|
if (proto.status) {
|
|
6732
|
-
m.status = enumStringToValue$
|
|
6732
|
+
m.status = enumStringToValue$q(RecurringInvoiceStatus, proto.status);
|
|
6733
6733
|
}
|
|
6734
6734
|
if (proto.nextIssue) {
|
|
6735
6735
|
m.nextIssue = new Date(proto.nextIssue);
|
|
@@ -6738,16 +6738,16 @@ class RecurringInvoice {
|
|
|
6738
6738
|
m.intervalCount = parseInt(proto.intervalCount, 10);
|
|
6739
6739
|
}
|
|
6740
6740
|
if (proto.interval) {
|
|
6741
|
-
m.interval = enumStringToValue$
|
|
6741
|
+
m.interval = enumStringToValue$q(Interval, proto.interval);
|
|
6742
6742
|
}
|
|
6743
6743
|
if (proto.repeatOnDayOfMonth) {
|
|
6744
6744
|
m.repeatOnDayOfMonth = parseInt(proto.repeatOnDayOfMonth, 10);
|
|
6745
6745
|
}
|
|
6746
6746
|
if (proto.collectionMethod) {
|
|
6747
|
-
m.collectionMethod = enumStringToValue$
|
|
6747
|
+
m.collectionMethod = enumStringToValue$q(CollectionMethod, proto.collectionMethod);
|
|
6748
6748
|
}
|
|
6749
6749
|
if (proto.paymentProcessor) {
|
|
6750
|
-
m.paymentProcessor = enumStringToValue$
|
|
6750
|
+
m.paymentProcessor = enumStringToValue$q(PaymentProcessor, proto.paymentProcessor);
|
|
6751
6751
|
}
|
|
6752
6752
|
if (proto.items) {
|
|
6753
6753
|
m.items = proto.items.map(RecurringInvoiceItem.fromProto);
|
|
@@ -6765,7 +6765,7 @@ class RecurringInvoice {
|
|
|
6765
6765
|
m.netD = parseInt(proto.netD, 10);
|
|
6766
6766
|
}
|
|
6767
6767
|
if (proto.paymentMethodTypes) {
|
|
6768
|
-
m.paymentMethodTypes = proto.paymentMethodTypes.map((v) => enumStringToValue$
|
|
6768
|
+
m.paymentMethodTypes = proto.paymentMethodTypes.map((v) => enumStringToValue$q(PaymentMethodType, v));
|
|
6769
6769
|
}
|
|
6770
6770
|
return m;
|
|
6771
6771
|
}
|
|
@@ -6972,7 +6972,7 @@ class UpdateRecurringInvoiceRequest {
|
|
|
6972
6972
|
}
|
|
6973
6973
|
}
|
|
6974
6974
|
|
|
6975
|
-
function enumStringToValue$
|
|
6975
|
+
function enumStringToValue$p(enumRef, value) {
|
|
6976
6976
|
if (typeof value === 'number') {
|
|
6977
6977
|
return value;
|
|
6978
6978
|
}
|
|
@@ -7109,6 +7109,58 @@ class AddLineItemResponse {
|
|
|
7109
7109
|
return toReturn;
|
|
7110
7110
|
}
|
|
7111
7111
|
}
|
|
7112
|
+
class AddLineItemToDisplayGroupRequest {
|
|
7113
|
+
static fromProto(proto) {
|
|
7114
|
+
let m = new AddLineItemToDisplayGroupRequest();
|
|
7115
|
+
m = Object.assign(m, proto);
|
|
7116
|
+
return m;
|
|
7117
|
+
}
|
|
7118
|
+
constructor(kwargs) {
|
|
7119
|
+
if (!kwargs) {
|
|
7120
|
+
return;
|
|
7121
|
+
}
|
|
7122
|
+
Object.assign(this, kwargs);
|
|
7123
|
+
}
|
|
7124
|
+
toApiJson() {
|
|
7125
|
+
const toReturn = {};
|
|
7126
|
+
if (typeof this.merchantId !== 'undefined') {
|
|
7127
|
+
toReturn['merchantId'] = this.merchantId;
|
|
7128
|
+
}
|
|
7129
|
+
if (typeof this.invoiceId !== 'undefined') {
|
|
7130
|
+
toReturn['invoiceId'] = this.invoiceId;
|
|
7131
|
+
}
|
|
7132
|
+
if (typeof this.displayGroupId !== 'undefined') {
|
|
7133
|
+
toReturn['displayGroupId'] = this.displayGroupId;
|
|
7134
|
+
}
|
|
7135
|
+
if (typeof this.itemId !== 'undefined') {
|
|
7136
|
+
toReturn['itemId'] = this.itemId;
|
|
7137
|
+
}
|
|
7138
|
+
return toReturn;
|
|
7139
|
+
}
|
|
7140
|
+
}
|
|
7141
|
+
class AddLineItemToDisplayGroupResponse {
|
|
7142
|
+
static fromProto(proto) {
|
|
7143
|
+
let m = new AddLineItemToDisplayGroupResponse();
|
|
7144
|
+
m = Object.assign(m, proto);
|
|
7145
|
+
if (proto.invoice) {
|
|
7146
|
+
m.invoice = Invoice.fromProto(proto.invoice);
|
|
7147
|
+
}
|
|
7148
|
+
return m;
|
|
7149
|
+
}
|
|
7150
|
+
constructor(kwargs) {
|
|
7151
|
+
if (!kwargs) {
|
|
7152
|
+
return;
|
|
7153
|
+
}
|
|
7154
|
+
Object.assign(this, kwargs);
|
|
7155
|
+
}
|
|
7156
|
+
toApiJson() {
|
|
7157
|
+
const toReturn = {};
|
|
7158
|
+
if (typeof this.invoice !== 'undefined' && this.invoice !== null) {
|
|
7159
|
+
toReturn['invoice'] = 'toApiJson' in this.invoice ? this.invoice.toApiJson() : this.invoice;
|
|
7160
|
+
}
|
|
7161
|
+
return toReturn;
|
|
7162
|
+
}
|
|
7163
|
+
}
|
|
7112
7164
|
class AppliedCreditNote {
|
|
7113
7165
|
static fromProto(proto) {
|
|
7114
7166
|
let m = new AppliedCreditNote();
|
|
@@ -7117,7 +7169,7 @@ class AppliedCreditNote {
|
|
|
7117
7169
|
m.amount = parseInt(proto.amount, 10);
|
|
7118
7170
|
}
|
|
7119
7171
|
if (proto.creditNoteType) {
|
|
7120
|
-
m.creditNoteType = enumStringToValue$
|
|
7172
|
+
m.creditNoteType = enumStringToValue$p(CreditNoteType, proto.creditNoteType);
|
|
7121
7173
|
}
|
|
7122
7174
|
return m;
|
|
7123
7175
|
}
|
|
@@ -7173,6 +7225,64 @@ class ChargeInvoiceRequest {
|
|
|
7173
7225
|
return toReturn;
|
|
7174
7226
|
}
|
|
7175
7227
|
}
|
|
7228
|
+
class CreateInvoiceDisplayGroupRequest {
|
|
7229
|
+
static fromProto(proto) {
|
|
7230
|
+
let m = new CreateInvoiceDisplayGroupRequest();
|
|
7231
|
+
m = Object.assign(m, proto);
|
|
7232
|
+
if (proto.displayOption) {
|
|
7233
|
+
m.displayOption = enumStringToValue$p(DisplayOption, proto.displayOption);
|
|
7234
|
+
}
|
|
7235
|
+
return m;
|
|
7236
|
+
}
|
|
7237
|
+
constructor(kwargs) {
|
|
7238
|
+
if (!kwargs) {
|
|
7239
|
+
return;
|
|
7240
|
+
}
|
|
7241
|
+
Object.assign(this, kwargs);
|
|
7242
|
+
}
|
|
7243
|
+
toApiJson() {
|
|
7244
|
+
const toReturn = {};
|
|
7245
|
+
if (typeof this.merchantId !== 'undefined') {
|
|
7246
|
+
toReturn['merchantId'] = this.merchantId;
|
|
7247
|
+
}
|
|
7248
|
+
if (typeof this.invoiceId !== 'undefined') {
|
|
7249
|
+
toReturn['invoiceId'] = this.invoiceId;
|
|
7250
|
+
}
|
|
7251
|
+
if (typeof this.name !== 'undefined') {
|
|
7252
|
+
toReturn['name'] = this.name;
|
|
7253
|
+
}
|
|
7254
|
+
if (typeof this.displayOption !== 'undefined') {
|
|
7255
|
+
toReturn['displayOption'] = this.displayOption;
|
|
7256
|
+
}
|
|
7257
|
+
if (typeof this.itemIds !== 'undefined') {
|
|
7258
|
+
toReturn['itemIds'] = this.itemIds;
|
|
7259
|
+
}
|
|
7260
|
+
return toReturn;
|
|
7261
|
+
}
|
|
7262
|
+
}
|
|
7263
|
+
class CreateInvoiceDisplayGroupResponse {
|
|
7264
|
+
static fromProto(proto) {
|
|
7265
|
+
let m = new CreateInvoiceDisplayGroupResponse();
|
|
7266
|
+
m = Object.assign(m, proto);
|
|
7267
|
+
if (proto.invoice) {
|
|
7268
|
+
m.invoice = Invoice.fromProto(proto.invoice);
|
|
7269
|
+
}
|
|
7270
|
+
return m;
|
|
7271
|
+
}
|
|
7272
|
+
constructor(kwargs) {
|
|
7273
|
+
if (!kwargs) {
|
|
7274
|
+
return;
|
|
7275
|
+
}
|
|
7276
|
+
Object.assign(this, kwargs);
|
|
7277
|
+
}
|
|
7278
|
+
toApiJson() {
|
|
7279
|
+
const toReturn = {};
|
|
7280
|
+
if (typeof this.invoice !== 'undefined' && this.invoice !== null) {
|
|
7281
|
+
toReturn['invoice'] = 'toApiJson' in this.invoice ? this.invoice.toApiJson() : this.invoice;
|
|
7282
|
+
}
|
|
7283
|
+
return toReturn;
|
|
7284
|
+
}
|
|
7285
|
+
}
|
|
7176
7286
|
class CreateInvoiceRequest {
|
|
7177
7287
|
static fromProto(proto) {
|
|
7178
7288
|
let m = new CreateInvoiceRequest();
|
|
@@ -7181,10 +7291,10 @@ class CreateInvoiceRequest {
|
|
|
7181
7291
|
m.items = proto.items.map(InvoiceItem.fromProto);
|
|
7182
7292
|
}
|
|
7183
7293
|
if (proto.collectionMethod) {
|
|
7184
|
-
m.collectionMethod = enumStringToValue$
|
|
7294
|
+
m.collectionMethod = enumStringToValue$p(CollectionMethod, proto.collectionMethod);
|
|
7185
7295
|
}
|
|
7186
7296
|
if (proto.origin) {
|
|
7187
|
-
m.origin = enumStringToValue$
|
|
7297
|
+
m.origin = enumStringToValue$p(Origin, proto.origin);
|
|
7188
7298
|
}
|
|
7189
7299
|
if (proto.issued) {
|
|
7190
7300
|
m.issued = new Date(proto.issued);
|
|
@@ -7356,7 +7466,7 @@ class ListInvoicesRequestFiltersDateFilter {
|
|
|
7356
7466
|
let m = new ListInvoicesRequestFiltersDateFilter();
|
|
7357
7467
|
m = Object.assign(m, proto);
|
|
7358
7468
|
if (proto.dateField) {
|
|
7359
|
-
m.dateField = enumStringToValue$
|
|
7469
|
+
m.dateField = enumStringToValue$p(ListInvoicesRequestFiltersDateFilterDateField, proto.dateField);
|
|
7360
7470
|
}
|
|
7361
7471
|
if (proto.dateLte) {
|
|
7362
7472
|
m.dateLte = new Date(proto.dateLte);
|
|
@@ -7386,6 +7496,55 @@ class ListInvoicesRequestFiltersDateFilter {
|
|
|
7386
7496
|
return toReturn;
|
|
7387
7497
|
}
|
|
7388
7498
|
}
|
|
7499
|
+
class DeleteInvoiceDisplayGroupRequest {
|
|
7500
|
+
static fromProto(proto) {
|
|
7501
|
+
let m = new DeleteInvoiceDisplayGroupRequest();
|
|
7502
|
+
m = Object.assign(m, proto);
|
|
7503
|
+
return m;
|
|
7504
|
+
}
|
|
7505
|
+
constructor(kwargs) {
|
|
7506
|
+
if (!kwargs) {
|
|
7507
|
+
return;
|
|
7508
|
+
}
|
|
7509
|
+
Object.assign(this, kwargs);
|
|
7510
|
+
}
|
|
7511
|
+
toApiJson() {
|
|
7512
|
+
const toReturn = {};
|
|
7513
|
+
if (typeof this.merchantId !== 'undefined') {
|
|
7514
|
+
toReturn['merchantId'] = this.merchantId;
|
|
7515
|
+
}
|
|
7516
|
+
if (typeof this.invoiceId !== 'undefined') {
|
|
7517
|
+
toReturn['invoiceId'] = this.invoiceId;
|
|
7518
|
+
}
|
|
7519
|
+
if (typeof this.displayGroupId !== 'undefined') {
|
|
7520
|
+
toReturn['displayGroupId'] = this.displayGroupId;
|
|
7521
|
+
}
|
|
7522
|
+
return toReturn;
|
|
7523
|
+
}
|
|
7524
|
+
}
|
|
7525
|
+
class DeleteInvoiceDisplayGroupResponse {
|
|
7526
|
+
static fromProto(proto) {
|
|
7527
|
+
let m = new DeleteInvoiceDisplayGroupResponse();
|
|
7528
|
+
m = Object.assign(m, proto);
|
|
7529
|
+
if (proto.invoice) {
|
|
7530
|
+
m.invoice = Invoice.fromProto(proto.invoice);
|
|
7531
|
+
}
|
|
7532
|
+
return m;
|
|
7533
|
+
}
|
|
7534
|
+
constructor(kwargs) {
|
|
7535
|
+
if (!kwargs) {
|
|
7536
|
+
return;
|
|
7537
|
+
}
|
|
7538
|
+
Object.assign(this, kwargs);
|
|
7539
|
+
}
|
|
7540
|
+
toApiJson() {
|
|
7541
|
+
const toReturn = {};
|
|
7542
|
+
if (typeof this.invoice !== 'undefined' && this.invoice !== null) {
|
|
7543
|
+
toReturn['invoice'] = 'toApiJson' in this.invoice ? this.invoice.toApiJson() : this.invoice;
|
|
7544
|
+
}
|
|
7545
|
+
return toReturn;
|
|
7546
|
+
}
|
|
7547
|
+
}
|
|
7389
7548
|
class DeleteInvoiceRequest {
|
|
7390
7549
|
static fromProto(proto) {
|
|
7391
7550
|
let m = new DeleteInvoiceRequest();
|
|
@@ -7506,13 +7665,13 @@ class ListInvoicesRequestFilters {
|
|
|
7506
7665
|
let m = new ListInvoicesRequestFilters();
|
|
7507
7666
|
m = Object.assign(m, proto);
|
|
7508
7667
|
if (proto.statuses) {
|
|
7509
|
-
m.statuses = proto.statuses.map((v) => enumStringToValue$
|
|
7668
|
+
m.statuses = proto.statuses.map((v) => enumStringToValue$p(InvoiceStatus, v));
|
|
7510
7669
|
}
|
|
7511
7670
|
if (proto.dateFilter) {
|
|
7512
7671
|
m.dateFilter = ListInvoicesRequestFiltersDateFilter.fromProto(proto.dateFilter);
|
|
7513
7672
|
}
|
|
7514
7673
|
if (proto.lastPaymentStatuses) {
|
|
7515
|
-
m.lastPaymentStatuses = proto.lastPaymentStatuses.map((v) => enumStringToValue$
|
|
7674
|
+
m.lastPaymentStatuses = proto.lastPaymentStatuses.map((v) => enumStringToValue$p(LastPaymentStatus, v));
|
|
7516
7675
|
}
|
|
7517
7676
|
return m;
|
|
7518
7677
|
}
|
|
@@ -7706,7 +7865,7 @@ class Invoice {
|
|
|
7706
7865
|
let m = new Invoice();
|
|
7707
7866
|
m = Object.assign(m, proto);
|
|
7708
7867
|
if (proto.status) {
|
|
7709
|
-
m.status = enumStringToValue$
|
|
7868
|
+
m.status = enumStringToValue$p(InvoiceStatus, proto.status);
|
|
7710
7869
|
}
|
|
7711
7870
|
if (proto.subtotal) {
|
|
7712
7871
|
m.subtotal = parseInt(proto.subtotal, 10);
|
|
@@ -7733,7 +7892,7 @@ class Invoice {
|
|
|
7733
7892
|
m.items = proto.items.map(InvoiceItem.fromProto);
|
|
7734
7893
|
}
|
|
7735
7894
|
if (proto.currency) {
|
|
7736
|
-
m.currency = enumStringToValue$
|
|
7895
|
+
m.currency = enumStringToValue$p(Currency, proto.currency);
|
|
7737
7896
|
}
|
|
7738
7897
|
if (proto.paid) {
|
|
7739
7898
|
m.paid = new Date(proto.paid);
|
|
@@ -7766,10 +7925,10 @@ class Invoice {
|
|
|
7766
7925
|
m.autoAdvance = new Date(proto.autoAdvance);
|
|
7767
7926
|
}
|
|
7768
7927
|
if (proto.paymentMethodTypes) {
|
|
7769
|
-
m.paymentMethodTypes = proto.paymentMethodTypes.map((v) => enumStringToValue$
|
|
7928
|
+
m.paymentMethodTypes = proto.paymentMethodTypes.map((v) => enumStringToValue$p(PaymentMethodType, v));
|
|
7770
7929
|
}
|
|
7771
7930
|
if (proto.lastPaymentStatus) {
|
|
7772
|
-
m.lastPaymentStatus = enumStringToValue$
|
|
7931
|
+
m.lastPaymentStatus = enumStringToValue$p(LastPaymentStatus, proto.lastPaymentStatus);
|
|
7773
7932
|
}
|
|
7774
7933
|
if (proto.amountOwing) {
|
|
7775
7934
|
m.amountOwing = parseInt(proto.amountOwing, 10);
|
|
@@ -7778,7 +7937,7 @@ class Invoice {
|
|
|
7778
7937
|
m.appliedCreditNotes = proto.appliedCreditNotes.map(AppliedCreditNote.fromProto);
|
|
7779
7938
|
}
|
|
7780
7939
|
if (proto.processingFailureCode) {
|
|
7781
|
-
m.processingFailureCode = enumStringToValue$
|
|
7940
|
+
m.processingFailureCode = enumStringToValue$p(ProcessingFailureCode, proto.processingFailureCode);
|
|
7782
7941
|
}
|
|
7783
7942
|
if (proto.retailSubscriptionGroups) {
|
|
7784
7943
|
m.retailSubscriptionGroups = proto.retailSubscriptionGroups.map(RetailSubscriptionGroup.fromProto);
|
|
@@ -8019,7 +8178,7 @@ class ItemDisplayGroup {
|
|
|
8019
8178
|
let m = new ItemDisplayGroup();
|
|
8020
8179
|
m = Object.assign(m, proto);
|
|
8021
8180
|
if (proto.displayOption) {
|
|
8022
|
-
m.displayOption = enumStringToValue$
|
|
8181
|
+
m.displayOption = enumStringToValue$p(DisplayOption, proto.displayOption);
|
|
8023
8182
|
}
|
|
8024
8183
|
return m;
|
|
8025
8184
|
}
|
|
@@ -8208,6 +8367,58 @@ class RemoveBundleResponse {
|
|
|
8208
8367
|
return toReturn;
|
|
8209
8368
|
}
|
|
8210
8369
|
}
|
|
8370
|
+
class RemoveLineItemFromDisplayGroupRequest {
|
|
8371
|
+
static fromProto(proto) {
|
|
8372
|
+
let m = new RemoveLineItemFromDisplayGroupRequest();
|
|
8373
|
+
m = Object.assign(m, proto);
|
|
8374
|
+
return m;
|
|
8375
|
+
}
|
|
8376
|
+
constructor(kwargs) {
|
|
8377
|
+
if (!kwargs) {
|
|
8378
|
+
return;
|
|
8379
|
+
}
|
|
8380
|
+
Object.assign(this, kwargs);
|
|
8381
|
+
}
|
|
8382
|
+
toApiJson() {
|
|
8383
|
+
const toReturn = {};
|
|
8384
|
+
if (typeof this.merchantId !== 'undefined') {
|
|
8385
|
+
toReturn['merchantId'] = this.merchantId;
|
|
8386
|
+
}
|
|
8387
|
+
if (typeof this.invoiceId !== 'undefined') {
|
|
8388
|
+
toReturn['invoiceId'] = this.invoiceId;
|
|
8389
|
+
}
|
|
8390
|
+
if (typeof this.displayGroupId !== 'undefined') {
|
|
8391
|
+
toReturn['displayGroupId'] = this.displayGroupId;
|
|
8392
|
+
}
|
|
8393
|
+
if (typeof this.itemId !== 'undefined') {
|
|
8394
|
+
toReturn['itemId'] = this.itemId;
|
|
8395
|
+
}
|
|
8396
|
+
return toReturn;
|
|
8397
|
+
}
|
|
8398
|
+
}
|
|
8399
|
+
class RemoveLineItemFromDisplayGroupResponse {
|
|
8400
|
+
static fromProto(proto) {
|
|
8401
|
+
let m = new RemoveLineItemFromDisplayGroupResponse();
|
|
8402
|
+
m = Object.assign(m, proto);
|
|
8403
|
+
if (proto.invoice) {
|
|
8404
|
+
m.invoice = Invoice.fromProto(proto.invoice);
|
|
8405
|
+
}
|
|
8406
|
+
return m;
|
|
8407
|
+
}
|
|
8408
|
+
constructor(kwargs) {
|
|
8409
|
+
if (!kwargs) {
|
|
8410
|
+
return;
|
|
8411
|
+
}
|
|
8412
|
+
Object.assign(this, kwargs);
|
|
8413
|
+
}
|
|
8414
|
+
toApiJson() {
|
|
8415
|
+
const toReturn = {};
|
|
8416
|
+
if (typeof this.invoice !== 'undefined' && this.invoice !== null) {
|
|
8417
|
+
toReturn['invoice'] = 'toApiJson' in this.invoice ? this.invoice.toApiJson() : this.invoice;
|
|
8418
|
+
}
|
|
8419
|
+
return toReturn;
|
|
8420
|
+
}
|
|
8421
|
+
}
|
|
8211
8422
|
class InvoiceItemRetailSubscriptionGroup {
|
|
8212
8423
|
static fromProto(proto) {
|
|
8213
8424
|
let m = new InvoiceItemRetailSubscriptionGroup();
|
|
@@ -8262,7 +8473,62 @@ class SendInvoiceRequest {
|
|
|
8262
8473
|
}
|
|
8263
8474
|
class UpdateBundleRequest {
|
|
8264
8475
|
static fromProto(proto) {
|
|
8265
|
-
let m = new UpdateBundleRequest();
|
|
8476
|
+
let m = new UpdateBundleRequest();
|
|
8477
|
+
m = Object.assign(m, proto);
|
|
8478
|
+
return m;
|
|
8479
|
+
}
|
|
8480
|
+
constructor(kwargs) {
|
|
8481
|
+
if (!kwargs) {
|
|
8482
|
+
return;
|
|
8483
|
+
}
|
|
8484
|
+
Object.assign(this, kwargs);
|
|
8485
|
+
}
|
|
8486
|
+
toApiJson() {
|
|
8487
|
+
const toReturn = {};
|
|
8488
|
+
if (typeof this.merchantId !== 'undefined') {
|
|
8489
|
+
toReturn['merchantId'] = this.merchantId;
|
|
8490
|
+
}
|
|
8491
|
+
if (typeof this.invoiceId !== 'undefined') {
|
|
8492
|
+
toReturn['invoiceId'] = this.invoiceId;
|
|
8493
|
+
}
|
|
8494
|
+
if (typeof this.bundleId !== 'undefined') {
|
|
8495
|
+
toReturn['bundleId'] = this.bundleId;
|
|
8496
|
+
}
|
|
8497
|
+
if (typeof this.hideBundleItems !== 'undefined') {
|
|
8498
|
+
toReturn['hideBundleItems'] = this.hideBundleItems;
|
|
8499
|
+
}
|
|
8500
|
+
if (typeof this.bundleInstanceId !== 'undefined') {
|
|
8501
|
+
toReturn['bundleInstanceId'] = this.bundleInstanceId;
|
|
8502
|
+
}
|
|
8503
|
+
return toReturn;
|
|
8504
|
+
}
|
|
8505
|
+
}
|
|
8506
|
+
class UpdateBundleResponse {
|
|
8507
|
+
static fromProto(proto) {
|
|
8508
|
+
let m = new UpdateBundleResponse();
|
|
8509
|
+
m = Object.assign(m, proto);
|
|
8510
|
+
if (proto.invoice) {
|
|
8511
|
+
m.invoice = Invoice.fromProto(proto.invoice);
|
|
8512
|
+
}
|
|
8513
|
+
return m;
|
|
8514
|
+
}
|
|
8515
|
+
constructor(kwargs) {
|
|
8516
|
+
if (!kwargs) {
|
|
8517
|
+
return;
|
|
8518
|
+
}
|
|
8519
|
+
Object.assign(this, kwargs);
|
|
8520
|
+
}
|
|
8521
|
+
toApiJson() {
|
|
8522
|
+
const toReturn = {};
|
|
8523
|
+
if (typeof this.invoice !== 'undefined' && this.invoice !== null) {
|
|
8524
|
+
toReturn['invoice'] = 'toApiJson' in this.invoice ? this.invoice.toApiJson() : this.invoice;
|
|
8525
|
+
}
|
|
8526
|
+
return toReturn;
|
|
8527
|
+
}
|
|
8528
|
+
}
|
|
8529
|
+
class UpdateDefaultTaxRatesRequest {
|
|
8530
|
+
static fromProto(proto) {
|
|
8531
|
+
let m = new UpdateDefaultTaxRatesRequest();
|
|
8266
8532
|
m = Object.assign(m, proto);
|
|
8267
8533
|
return m;
|
|
8268
8534
|
}
|
|
@@ -8274,27 +8540,21 @@ class UpdateBundleRequest {
|
|
|
8274
8540
|
}
|
|
8275
8541
|
toApiJson() {
|
|
8276
8542
|
const toReturn = {};
|
|
8277
|
-
if (typeof this.merchantId !== 'undefined') {
|
|
8278
|
-
toReturn['merchantId'] = this.merchantId;
|
|
8279
|
-
}
|
|
8280
8543
|
if (typeof this.invoiceId !== 'undefined') {
|
|
8281
8544
|
toReturn['invoiceId'] = this.invoiceId;
|
|
8282
8545
|
}
|
|
8283
|
-
if (typeof this.
|
|
8284
|
-
toReturn['
|
|
8285
|
-
}
|
|
8286
|
-
if (typeof this.hideBundleItems !== 'undefined') {
|
|
8287
|
-
toReturn['hideBundleItems'] = this.hideBundleItems;
|
|
8546
|
+
if (typeof this.merchantId !== 'undefined') {
|
|
8547
|
+
toReturn['merchantId'] = this.merchantId;
|
|
8288
8548
|
}
|
|
8289
|
-
if (typeof this.
|
|
8290
|
-
toReturn['
|
|
8549
|
+
if (typeof this.taxRateIds !== 'undefined') {
|
|
8550
|
+
toReturn['taxRateIds'] = this.taxRateIds;
|
|
8291
8551
|
}
|
|
8292
8552
|
return toReturn;
|
|
8293
8553
|
}
|
|
8294
8554
|
}
|
|
8295
|
-
class
|
|
8555
|
+
class UpdateDefaultTaxRatesResponse {
|
|
8296
8556
|
static fromProto(proto) {
|
|
8297
|
-
let m = new
|
|
8557
|
+
let m = new UpdateDefaultTaxRatesResponse();
|
|
8298
8558
|
m = Object.assign(m, proto);
|
|
8299
8559
|
if (proto.invoice) {
|
|
8300
8560
|
m.invoice = Invoice.fromProto(proto.invoice);
|
|
@@ -8315,10 +8575,16 @@ class UpdateBundleResponse {
|
|
|
8315
8575
|
return toReturn;
|
|
8316
8576
|
}
|
|
8317
8577
|
}
|
|
8318
|
-
class
|
|
8578
|
+
class UpdateInvoiceDisplayGroupRequest {
|
|
8319
8579
|
static fromProto(proto) {
|
|
8320
|
-
let m = new
|
|
8580
|
+
let m = new UpdateInvoiceDisplayGroupRequest();
|
|
8321
8581
|
m = Object.assign(m, proto);
|
|
8582
|
+
if (proto.displayOption) {
|
|
8583
|
+
m.displayOption = enumStringToValue$p(DisplayOption, proto.displayOption);
|
|
8584
|
+
}
|
|
8585
|
+
if (proto.fieldMask) {
|
|
8586
|
+
m.fieldMask = FieldMask.fromProto(proto.fieldMask);
|
|
8587
|
+
}
|
|
8322
8588
|
return m;
|
|
8323
8589
|
}
|
|
8324
8590
|
constructor(kwargs) {
|
|
@@ -8329,21 +8595,33 @@ class UpdateDefaultTaxRatesRequest {
|
|
|
8329
8595
|
}
|
|
8330
8596
|
toApiJson() {
|
|
8331
8597
|
const toReturn = {};
|
|
8598
|
+
if (typeof this.merchantId !== 'undefined') {
|
|
8599
|
+
toReturn['merchantId'] = this.merchantId;
|
|
8600
|
+
}
|
|
8332
8601
|
if (typeof this.invoiceId !== 'undefined') {
|
|
8333
8602
|
toReturn['invoiceId'] = this.invoiceId;
|
|
8334
8603
|
}
|
|
8335
|
-
if (typeof this.
|
|
8336
|
-
toReturn['
|
|
8604
|
+
if (typeof this.displayGroupId !== 'undefined') {
|
|
8605
|
+
toReturn['displayGroupId'] = this.displayGroupId;
|
|
8337
8606
|
}
|
|
8338
|
-
if (typeof this.
|
|
8339
|
-
toReturn['
|
|
8607
|
+
if (typeof this.name !== 'undefined') {
|
|
8608
|
+
toReturn['name'] = this.name;
|
|
8609
|
+
}
|
|
8610
|
+
if (typeof this.displayOption !== 'undefined') {
|
|
8611
|
+
toReturn['displayOption'] = this.displayOption;
|
|
8612
|
+
}
|
|
8613
|
+
if (typeof this.itemIds !== 'undefined') {
|
|
8614
|
+
toReturn['itemIds'] = this.itemIds;
|
|
8615
|
+
}
|
|
8616
|
+
if (typeof this.fieldMask !== 'undefined' && this.fieldMask !== null) {
|
|
8617
|
+
toReturn['fieldMask'] = 'toApiJson' in this.fieldMask ? this.fieldMask.toApiJson() : this.fieldMask;
|
|
8340
8618
|
}
|
|
8341
8619
|
return toReturn;
|
|
8342
8620
|
}
|
|
8343
8621
|
}
|
|
8344
|
-
class
|
|
8622
|
+
class UpdateInvoiceDisplayGroupResponse {
|
|
8345
8623
|
static fromProto(proto) {
|
|
8346
|
-
let m = new
|
|
8624
|
+
let m = new UpdateInvoiceDisplayGroupResponse();
|
|
8347
8625
|
m = Object.assign(m, proto);
|
|
8348
8626
|
if (proto.invoice) {
|
|
8349
8627
|
m.invoice = Invoice.fromProto(proto.invoice);
|
|
@@ -8534,7 +8812,7 @@ class VoidInvoiceRequest {
|
|
|
8534
8812
|
}
|
|
8535
8813
|
}
|
|
8536
8814
|
|
|
8537
|
-
function enumStringToValue$
|
|
8815
|
+
function enumStringToValue$o(enumRef, value) {
|
|
8538
8816
|
if (typeof value === 'number') {
|
|
8539
8817
|
return value;
|
|
8540
8818
|
}
|
|
@@ -8628,7 +8906,7 @@ class BalanceAmount {
|
|
|
8628
8906
|
}
|
|
8629
8907
|
}
|
|
8630
8908
|
|
|
8631
|
-
function enumStringToValue$
|
|
8909
|
+
function enumStringToValue$n(enumRef, value) {
|
|
8632
8910
|
if (typeof value === 'number') {
|
|
8633
8911
|
return value;
|
|
8634
8912
|
}
|
|
@@ -8664,7 +8942,7 @@ class DateRange {
|
|
|
8664
8942
|
}
|
|
8665
8943
|
}
|
|
8666
8944
|
|
|
8667
|
-
function enumStringToValue$
|
|
8945
|
+
function enumStringToValue$m(enumRef, value) {
|
|
8668
8946
|
if (typeof value === 'number') {
|
|
8669
8947
|
return value;
|
|
8670
8948
|
}
|
|
@@ -8765,13 +9043,13 @@ class Payout {
|
|
|
8765
9043
|
m.amount = parseInt(proto.amount, 10);
|
|
8766
9044
|
}
|
|
8767
9045
|
if (proto.currency) {
|
|
8768
|
-
m.currency = enumStringToValue$
|
|
9046
|
+
m.currency = enumStringToValue$m(Currency, proto.currency);
|
|
8769
9047
|
}
|
|
8770
9048
|
if (proto.status) {
|
|
8771
|
-
m.status = enumStringToValue$
|
|
9049
|
+
m.status = enumStringToValue$m(PayoutStatus, proto.status);
|
|
8772
9050
|
}
|
|
8773
9051
|
if (proto.type) {
|
|
8774
|
-
m.type = enumStringToValue$
|
|
9052
|
+
m.type = enumStringToValue$m(PayoutType, proto.type);
|
|
8775
9053
|
}
|
|
8776
9054
|
return m;
|
|
8777
9055
|
}
|
|
@@ -8873,10 +9151,10 @@ class RetailPayout {
|
|
|
8873
9151
|
m.amount = parseInt(proto.amount, 10);
|
|
8874
9152
|
}
|
|
8875
9153
|
if (proto.status) {
|
|
8876
|
-
m.status = enumStringToValue$
|
|
9154
|
+
m.status = enumStringToValue$m(PayoutStatus, proto.status);
|
|
8877
9155
|
}
|
|
8878
9156
|
if (proto.type) {
|
|
8879
|
-
m.type = enumStringToValue$
|
|
9157
|
+
m.type = enumStringToValue$m(PayoutType, proto.type);
|
|
8880
9158
|
}
|
|
8881
9159
|
return m;
|
|
8882
9160
|
}
|
|
@@ -8925,7 +9203,7 @@ class RetailPayout {
|
|
|
8925
9203
|
}
|
|
8926
9204
|
}
|
|
8927
9205
|
|
|
8928
|
-
function enumStringToValue$
|
|
9206
|
+
function enumStringToValue$l(enumRef, value) {
|
|
8929
9207
|
if (typeof value === 'number') {
|
|
8930
9208
|
return value;
|
|
8931
9209
|
}
|
|
@@ -9040,7 +9318,7 @@ class CreateMerchantRequest {
|
|
|
9040
9318
|
m.includeInFinancialRecords = CreateMerchantRequestIncludeInFinancialRecords.fromProto(proto.includeInFinancialRecords);
|
|
9041
9319
|
}
|
|
9042
9320
|
if (proto.merchantType) {
|
|
9043
|
-
m.merchantType = enumStringToValue$
|
|
9321
|
+
m.merchantType = enumStringToValue$l(MerchantType, proto.merchantType);
|
|
9044
9322
|
}
|
|
9045
9323
|
return m;
|
|
9046
9324
|
}
|
|
@@ -9304,7 +9582,7 @@ class GetOutstandingBalanceResponse {
|
|
|
9304
9582
|
m.outstandingBalance = parseInt(proto.outstandingBalance, 10);
|
|
9305
9583
|
}
|
|
9306
9584
|
if (proto.currency) {
|
|
9307
|
-
m.currency = enumStringToValue$
|
|
9585
|
+
m.currency = enumStringToValue$l(Currency, proto.currency);
|
|
9308
9586
|
}
|
|
9309
9587
|
return m;
|
|
9310
9588
|
}
|
|
@@ -9615,7 +9893,7 @@ class Merchant {
|
|
|
9615
9893
|
let m = new Merchant();
|
|
9616
9894
|
m = Object.assign(m, proto);
|
|
9617
9895
|
if (proto.merchantType) {
|
|
9618
|
-
m.merchantType = enumStringToValue$
|
|
9896
|
+
m.merchantType = enumStringToValue$l(MerchantType, proto.merchantType);
|
|
9619
9897
|
}
|
|
9620
9898
|
return m;
|
|
9621
9899
|
}
|
|
@@ -9770,10 +10048,10 @@ class SearchMerchantsRequest {
|
|
|
9770
10048
|
let m = new SearchMerchantsRequest();
|
|
9771
10049
|
m = Object.assign(m, proto);
|
|
9772
10050
|
if (proto.sortBy) {
|
|
9773
|
-
m.sortBy = enumStringToValue$
|
|
10051
|
+
m.sortBy = enumStringToValue$l(SearchMerchantsRequestSortBy, proto.sortBy);
|
|
9774
10052
|
}
|
|
9775
10053
|
if (proto.sortDirection) {
|
|
9776
|
-
m.sortDirection = enumStringToValue$
|
|
10054
|
+
m.sortDirection = enumStringToValue$l(SortDirection, proto.sortDirection);
|
|
9777
10055
|
}
|
|
9778
10056
|
if (proto.pagingOptions) {
|
|
9779
10057
|
m.pagingOptions = PagedRequestOptions.fromProto(proto.pagingOptions);
|
|
@@ -9981,7 +10259,7 @@ class UpdateMerchantRequest {
|
|
|
9981
10259
|
m.includeInFinancialRecords = UpdateMerchantRequestIncludeInFinancialRecords.fromProto(proto.includeInFinancialRecords);
|
|
9982
10260
|
}
|
|
9983
10261
|
if (proto.merchantType) {
|
|
9984
|
-
m.merchantType = enumStringToValue$
|
|
10262
|
+
m.merchantType = enumStringToValue$l(MerchantType, proto.merchantType);
|
|
9985
10263
|
}
|
|
9986
10264
|
return m;
|
|
9987
10265
|
}
|
|
@@ -10106,7 +10384,7 @@ class UpsertRetailConfigurationRequest {
|
|
|
10106
10384
|
}
|
|
10107
10385
|
}
|
|
10108
10386
|
|
|
10109
|
-
function enumStringToValue$
|
|
10387
|
+
function enumStringToValue$k(enumRef, value) {
|
|
10110
10388
|
if (typeof value === 'number') {
|
|
10111
10389
|
return value;
|
|
10112
10390
|
}
|
|
@@ -10175,13 +10453,13 @@ class MerchantReport {
|
|
|
10175
10453
|
m.year = parseInt(proto.year, 10);
|
|
10176
10454
|
}
|
|
10177
10455
|
if (proto.month) {
|
|
10178
|
-
m.month = enumStringToValue$
|
|
10456
|
+
m.month = enumStringToValue$k(Month, proto.month);
|
|
10179
10457
|
}
|
|
10180
10458
|
if (proto.created) {
|
|
10181
10459
|
m.created = new Date(proto.created);
|
|
10182
10460
|
}
|
|
10183
10461
|
if (proto.status) {
|
|
10184
|
-
m.status = enumStringToValue$
|
|
10462
|
+
m.status = enumStringToValue$k(MerchantReportStatus, proto.status);
|
|
10185
10463
|
}
|
|
10186
10464
|
return m;
|
|
10187
10465
|
}
|
|
@@ -10212,7 +10490,7 @@ class MerchantReport {
|
|
|
10212
10490
|
}
|
|
10213
10491
|
}
|
|
10214
10492
|
|
|
10215
|
-
function enumStringToValue$
|
|
10493
|
+
function enumStringToValue$j(enumRef, value) {
|
|
10216
10494
|
if (typeof value === 'number') {
|
|
10217
10495
|
return value;
|
|
10218
10496
|
}
|
|
@@ -10309,7 +10587,7 @@ class TickComponentUsageRequest {
|
|
|
10309
10587
|
}
|
|
10310
10588
|
}
|
|
10311
10589
|
|
|
10312
|
-
function enumStringToValue$
|
|
10590
|
+
function enumStringToValue$i(enumRef, value) {
|
|
10313
10591
|
if (typeof value === 'number') {
|
|
10314
10592
|
return value;
|
|
10315
10593
|
}
|
|
@@ -10422,7 +10700,7 @@ class RetailPaymentCardDetails {
|
|
|
10422
10700
|
let m = new RetailPaymentCardDetails();
|
|
10423
10701
|
m = Object.assign(m, proto);
|
|
10424
10702
|
if (proto.cardType) {
|
|
10425
|
-
m.cardType = enumStringToValue$
|
|
10703
|
+
m.cardType = enumStringToValue$i(CardType, proto.cardType);
|
|
10426
10704
|
}
|
|
10427
10705
|
return m;
|
|
10428
10706
|
}
|
|
@@ -10471,7 +10749,7 @@ class ConfigureRetailPaymentProviderRequest {
|
|
|
10471
10749
|
let m = new ConfigureRetailPaymentProviderRequest();
|
|
10472
10750
|
m = Object.assign(m, proto);
|
|
10473
10751
|
if (proto.paymentFacilitatorType) {
|
|
10474
|
-
m.paymentFacilitatorType = enumStringToValue$
|
|
10752
|
+
m.paymentFacilitatorType = enumStringToValue$i(PaymentFacilitatorType, proto.paymentFacilitatorType);
|
|
10475
10753
|
}
|
|
10476
10754
|
return m;
|
|
10477
10755
|
}
|
|
@@ -10549,7 +10827,7 @@ class Dispute {
|
|
|
10549
10827
|
let m = new Dispute();
|
|
10550
10828
|
m = Object.assign(m, proto);
|
|
10551
10829
|
if (proto.status) {
|
|
10552
|
-
m.status = enumStringToValue$
|
|
10830
|
+
m.status = enumStringToValue$i(DisputeStatus, proto.status);
|
|
10553
10831
|
}
|
|
10554
10832
|
if (proto.amount) {
|
|
10555
10833
|
m.amount = parseInt(proto.amount, 10);
|
|
@@ -10567,7 +10845,7 @@ class Dispute {
|
|
|
10567
10845
|
m.fee = parseInt(proto.fee, 10);
|
|
10568
10846
|
}
|
|
10569
10847
|
if (proto.paymentReferenceType) {
|
|
10570
|
-
m.paymentReferenceType = enumStringToValue$
|
|
10848
|
+
m.paymentReferenceType = enumStringToValue$i(RetailPaymentReferenceType, proto.paymentReferenceType);
|
|
10571
10849
|
}
|
|
10572
10850
|
if (proto.paymentReceivedAt) {
|
|
10573
10851
|
m.paymentReceivedAt = new Date(proto.paymentReceivedAt);
|
|
@@ -10883,7 +11161,7 @@ class GetRetailPaymentProviderResponse {
|
|
|
10883
11161
|
let m = new GetRetailPaymentProviderResponse();
|
|
10884
11162
|
m = Object.assign(m, proto);
|
|
10885
11163
|
if (proto.paymentFacilitatorType) {
|
|
10886
|
-
m.paymentFacilitatorType = enumStringToValue$
|
|
11164
|
+
m.paymentFacilitatorType = enumStringToValue$i(PaymentFacilitatorType, proto.paymentFacilitatorType);
|
|
10887
11165
|
}
|
|
10888
11166
|
return m;
|
|
10889
11167
|
}
|
|
@@ -11097,7 +11375,7 @@ class ListRetailDisputesRequestListRetailDisputesFilters {
|
|
|
11097
11375
|
let m = new ListRetailDisputesRequestListRetailDisputesFilters();
|
|
11098
11376
|
m = Object.assign(m, proto);
|
|
11099
11377
|
if (proto.status) {
|
|
11100
|
-
m.status = enumStringToValue$
|
|
11378
|
+
m.status = enumStringToValue$i(DisputeStatus, proto.status);
|
|
11101
11379
|
}
|
|
11102
11380
|
return m;
|
|
11103
11381
|
}
|
|
@@ -11283,7 +11561,7 @@ class ListRetailTransactionsRequestListRetailTransactionsFilters {
|
|
|
11283
11561
|
m.createdDateLte = new Date(proto.createdDateLte);
|
|
11284
11562
|
}
|
|
11285
11563
|
if (proto.type) {
|
|
11286
|
-
m.type = enumStringToValue$
|
|
11564
|
+
m.type = enumStringToValue$i(RetailTransactionType, proto.type);
|
|
11287
11565
|
}
|
|
11288
11566
|
return m;
|
|
11289
11567
|
}
|
|
@@ -11417,10 +11695,10 @@ class Payment {
|
|
|
11417
11695
|
m.created = new Date(proto.created);
|
|
11418
11696
|
}
|
|
11419
11697
|
if (proto.currency) {
|
|
11420
|
-
m.currency = enumStringToValue$
|
|
11698
|
+
m.currency = enumStringToValue$i(Currency, proto.currency);
|
|
11421
11699
|
}
|
|
11422
11700
|
if (proto.paymentSource) {
|
|
11423
|
-
m.paymentSource = enumStringToValue$
|
|
11701
|
+
m.paymentSource = enumStringToValue$i(PaymentSource, proto.paymentSource);
|
|
11424
11702
|
}
|
|
11425
11703
|
if (proto.allocations) {
|
|
11426
11704
|
m.allocations = proto.allocations.map(PaymentPaymentAllocation.fromProto);
|
|
@@ -11429,7 +11707,7 @@ class Payment {
|
|
|
11429
11707
|
m.total = parseInt(proto.total, 10);
|
|
11430
11708
|
}
|
|
11431
11709
|
if (proto.status) {
|
|
11432
|
-
m.status = enumStringToValue$
|
|
11710
|
+
m.status = enumStringToValue$i(PaymentStatus, proto.status);
|
|
11433
11711
|
}
|
|
11434
11712
|
return m;
|
|
11435
11713
|
}
|
|
@@ -11479,7 +11757,7 @@ class PaymentPaymentAllocation {
|
|
|
11479
11757
|
m.amount = parseInt(proto.amount, 10);
|
|
11480
11758
|
}
|
|
11481
11759
|
if (proto.type) {
|
|
11482
|
-
m.type = enumStringToValue$
|
|
11760
|
+
m.type = enumStringToValue$i(PaymentAllocationType, proto.type);
|
|
11483
11761
|
}
|
|
11484
11762
|
return m;
|
|
11485
11763
|
}
|
|
@@ -11508,13 +11786,13 @@ class PaymentIntent {
|
|
|
11508
11786
|
let m = new PaymentIntent();
|
|
11509
11787
|
m = Object.assign(m, proto);
|
|
11510
11788
|
if (proto.paymentIntentStatus) {
|
|
11511
|
-
m.paymentIntentStatus = enumStringToValue$
|
|
11789
|
+
m.paymentIntentStatus = enumStringToValue$i(PaymentIntentStatus, proto.paymentIntentStatus);
|
|
11512
11790
|
}
|
|
11513
11791
|
if (proto.paymentMethodType) {
|
|
11514
|
-
m.paymentMethodType = enumStringToValue$
|
|
11792
|
+
m.paymentMethodType = enumStringToValue$i(PaymentMethodType, proto.paymentMethodType);
|
|
11515
11793
|
}
|
|
11516
11794
|
if (proto.lastErrorCode) {
|
|
11517
|
-
m.lastErrorCode = enumStringToValue$
|
|
11795
|
+
m.lastErrorCode = enumStringToValue$i(PaymentErrorCode, proto.lastErrorCode);
|
|
11518
11796
|
}
|
|
11519
11797
|
return m;
|
|
11520
11798
|
}
|
|
@@ -11546,7 +11824,7 @@ class PrepareRetailPaymentRequest {
|
|
|
11546
11824
|
m.order = PrepareRetailPaymentRequestOrder.fromProto(proto.order);
|
|
11547
11825
|
}
|
|
11548
11826
|
if (proto.paymentMethodTypes) {
|
|
11549
|
-
m.paymentMethodTypes = proto.paymentMethodTypes.map((v) => enumStringToValue$
|
|
11827
|
+
m.paymentMethodTypes = proto.paymentMethodTypes.map((v) => enumStringToValue$i(PaymentMethodType, v));
|
|
11550
11828
|
}
|
|
11551
11829
|
return m;
|
|
11552
11830
|
}
|
|
@@ -11613,7 +11891,7 @@ class RefundRetailPaymentRequest {
|
|
|
11613
11891
|
m.amount = parseInt(proto.amount, 10);
|
|
11614
11892
|
}
|
|
11615
11893
|
if (proto.reason) {
|
|
11616
|
-
m.reason = enumStringToValue$
|
|
11894
|
+
m.reason = enumStringToValue$i(RetailRefundReason, proto.reason);
|
|
11617
11895
|
}
|
|
11618
11896
|
return m;
|
|
11619
11897
|
}
|
|
@@ -11674,10 +11952,10 @@ class RetailPayment {
|
|
|
11674
11952
|
m.amount = parseInt(proto.amount, 10);
|
|
11675
11953
|
}
|
|
11676
11954
|
if (proto.referenceType) {
|
|
11677
|
-
m.referenceType = enumStringToValue$
|
|
11955
|
+
m.referenceType = enumStringToValue$i(RetailPaymentReferenceType, proto.referenceType);
|
|
11678
11956
|
}
|
|
11679
11957
|
if (proto.status) {
|
|
11680
|
-
m.status = enumStringToValue$
|
|
11958
|
+
m.status = enumStringToValue$i(PaymentStatus, proto.status);
|
|
11681
11959
|
}
|
|
11682
11960
|
if (proto.applicationFee) {
|
|
11683
11961
|
m.applicationFee = parseInt(proto.applicationFee, 10);
|
|
@@ -11692,7 +11970,7 @@ class RetailPayment {
|
|
|
11692
11970
|
m.refunds = proto.refunds.map(RetailRefund.fromProto);
|
|
11693
11971
|
}
|
|
11694
11972
|
if (proto.paymentMethodDetailsType) {
|
|
11695
|
-
m.paymentMethodDetailsType = enumStringToValue$
|
|
11973
|
+
m.paymentMethodDetailsType = enumStringToValue$i(RetailPaymentPaymentMethodDetailsType, proto.paymentMethodDetailsType);
|
|
11696
11974
|
}
|
|
11697
11975
|
if (proto.achDebitDetails) {
|
|
11698
11976
|
m.achDebitDetails = RetailPaymentACHDetails.fromProto(proto.achDebitDetails);
|
|
@@ -11704,7 +11982,7 @@ class RetailPayment {
|
|
|
11704
11982
|
m.paymentFacilitatorFee = parseInt(proto.paymentFacilitatorFee, 10);
|
|
11705
11983
|
}
|
|
11706
11984
|
if (proto.paymentFacilitatorType) {
|
|
11707
|
-
m.paymentFacilitatorType = enumStringToValue$
|
|
11985
|
+
m.paymentFacilitatorType = enumStringToValue$i(PaymentFacilitatorType, proto.paymentFacilitatorType);
|
|
11708
11986
|
}
|
|
11709
11987
|
if (proto.settledAt) {
|
|
11710
11988
|
m.settledAt = new Date(proto.settledAt);
|
|
@@ -11839,13 +12117,13 @@ class RetailRefund {
|
|
|
11839
12117
|
m.amount = parseInt(proto.amount, 10);
|
|
11840
12118
|
}
|
|
11841
12119
|
if (proto.refundReason) {
|
|
11842
|
-
m.refundReason = enumStringToValue$
|
|
12120
|
+
m.refundReason = enumStringToValue$i(RetailRefundReason, proto.refundReason);
|
|
11843
12121
|
}
|
|
11844
12122
|
if (proto.status) {
|
|
11845
|
-
m.status = enumStringToValue$
|
|
12123
|
+
m.status = enumStringToValue$i(RetailRefundStatus, proto.status);
|
|
11846
12124
|
}
|
|
11847
12125
|
if (proto.failureReason) {
|
|
11848
|
-
m.failureReason = enumStringToValue$
|
|
12126
|
+
m.failureReason = enumStringToValue$i(RetailRefundFailureReason, proto.failureReason);
|
|
11849
12127
|
}
|
|
11850
12128
|
if (proto.created) {
|
|
11851
12129
|
m.created = new Date(proto.created);
|
|
@@ -12109,7 +12387,7 @@ class RetailStatusResponseVerificationRequirements {
|
|
|
12109
12387
|
}
|
|
12110
12388
|
}
|
|
12111
12389
|
|
|
12112
|
-
function enumStringToValue$
|
|
12390
|
+
function enumStringToValue$h(enumRef, value) {
|
|
12113
12391
|
if (typeof value === 'number') {
|
|
12114
12392
|
return value;
|
|
12115
12393
|
}
|
|
@@ -12120,7 +12398,7 @@ class CreatePricingPlanProductRequest {
|
|
|
12120
12398
|
let m = new CreatePricingPlanProductRequest();
|
|
12121
12399
|
m = Object.assign(m, proto);
|
|
12122
12400
|
if (proto.frequency) {
|
|
12123
|
-
m.frequency = enumStringToValue$
|
|
12401
|
+
m.frequency = enumStringToValue$h(Frequency, proto.frequency);
|
|
12124
12402
|
}
|
|
12125
12403
|
if (proto.pricing) {
|
|
12126
12404
|
m.pricing = Object.keys(proto.pricing).reduce((obj, k) => { obj[k] = PricingPlanProductPricing.fromProto(proto.pricing[k]); return obj; }, {});
|
|
@@ -12129,7 +12407,7 @@ class CreatePricingPlanProductRequest {
|
|
|
12129
12407
|
m.commitment = Commitment.fromProto(proto.commitment);
|
|
12130
12408
|
}
|
|
12131
12409
|
if (proto.strategy) {
|
|
12132
|
-
m.strategy = enumStringToValue$
|
|
12410
|
+
m.strategy = enumStringToValue$h(BillingStrategy, proto.strategy);
|
|
12133
12411
|
}
|
|
12134
12412
|
if (proto.volumeCommitment) {
|
|
12135
12413
|
m.volumeCommitment = parseInt(proto.volumeCommitment, 10);
|
|
@@ -12303,7 +12581,7 @@ class GetPricingPlanProductResponse {
|
|
|
12303
12581
|
m.pricingPlanProduct = PricingPlanProduct.fromProto(proto.pricingPlanProduct);
|
|
12304
12582
|
}
|
|
12305
12583
|
if (proto.pricingPlanDefaultStrategy) {
|
|
12306
|
-
m.pricingPlanDefaultStrategy = enumStringToValue$
|
|
12584
|
+
m.pricingPlanDefaultStrategy = enumStringToValue$h(BillingStrategy, proto.pricingPlanDefaultStrategy);
|
|
12307
12585
|
}
|
|
12308
12586
|
return m;
|
|
12309
12587
|
}
|
|
@@ -12491,7 +12769,7 @@ class PricingPlanProduct {
|
|
|
12491
12769
|
let m = new PricingPlanProduct();
|
|
12492
12770
|
m = Object.assign(m, proto);
|
|
12493
12771
|
if (proto.frequency) {
|
|
12494
|
-
m.frequency = enumStringToValue$
|
|
12772
|
+
m.frequency = enumStringToValue$h(Frequency, proto.frequency);
|
|
12495
12773
|
}
|
|
12496
12774
|
if (proto.pricing) {
|
|
12497
12775
|
m.pricing = Object.keys(proto.pricing).reduce((obj, k) => { obj[k] = PricingPlanProductPricing.fromProto(proto.pricing[k]); return obj; }, {});
|
|
@@ -12506,7 +12784,7 @@ class PricingPlanProduct {
|
|
|
12506
12784
|
m.modified = new Date(proto.modified);
|
|
12507
12785
|
}
|
|
12508
12786
|
if (proto.strategy) {
|
|
12509
|
-
m.strategy = enumStringToValue$
|
|
12787
|
+
m.strategy = enumStringToValue$h(BillingStrategy, proto.strategy);
|
|
12510
12788
|
}
|
|
12511
12789
|
if (proto.volumeCommitment) {
|
|
12512
12790
|
m.volumeCommitment = parseInt(proto.volumeCommitment, 10);
|
|
@@ -12518,7 +12796,7 @@ class PricingPlanProduct {
|
|
|
12518
12796
|
m.volumeCommitmentEndsAt = new Date(proto.volumeCommitmentEndsAt);
|
|
12519
12797
|
}
|
|
12520
12798
|
if (proto.pricingType) {
|
|
12521
|
-
m.pricingType = enumStringToValue$
|
|
12799
|
+
m.pricingType = enumStringToValue$h(ProductPricingType, proto.pricingType);
|
|
12522
12800
|
}
|
|
12523
12801
|
return m;
|
|
12524
12802
|
}
|
|
@@ -12574,7 +12852,7 @@ class UpdatePricingPlanProductRequest {
|
|
|
12574
12852
|
let m = new UpdatePricingPlanProductRequest();
|
|
12575
12853
|
m = Object.assign(m, proto);
|
|
12576
12854
|
if (proto.frequency) {
|
|
12577
|
-
m.frequency = enumStringToValue$
|
|
12855
|
+
m.frequency = enumStringToValue$h(Frequency, proto.frequency);
|
|
12578
12856
|
}
|
|
12579
12857
|
if (proto.pricing) {
|
|
12580
12858
|
m.pricing = Object.keys(proto.pricing).reduce((obj, k) => { obj[k] = PricingPlanProductPricing.fromProto(proto.pricing[k]); return obj; }, {});
|
|
@@ -12586,7 +12864,7 @@ class UpdatePricingPlanProductRequest {
|
|
|
12586
12864
|
m.fieldMask = FieldMask.fromProto(proto.fieldMask);
|
|
12587
12865
|
}
|
|
12588
12866
|
if (proto.strategy) {
|
|
12589
|
-
m.strategy = enumStringToValue$
|
|
12867
|
+
m.strategy = enumStringToValue$h(BillingStrategy, proto.strategy);
|
|
12590
12868
|
}
|
|
12591
12869
|
if (proto.volumeCommitment) {
|
|
12592
12870
|
m.volumeCommitment = parseInt(proto.volumeCommitment, 10);
|
|
@@ -12668,7 +12946,7 @@ class UpsertWholesalePricingRequest {
|
|
|
12668
12946
|
m.termCommitment = Commitment.fromProto(proto.termCommitment);
|
|
12669
12947
|
}
|
|
12670
12948
|
if (proto.strategy) {
|
|
12671
|
-
m.strategy = enumStringToValue$
|
|
12949
|
+
m.strategy = enumStringToValue$h(BillingStrategy, proto.strategy);
|
|
12672
12950
|
}
|
|
12673
12951
|
if (proto.volumeCommitment) {
|
|
12674
12952
|
m.volumeCommitment = parseInt(proto.volumeCommitment, 10);
|
|
@@ -12717,7 +12995,7 @@ class UpsertWholesalePricingRequest {
|
|
|
12717
12995
|
}
|
|
12718
12996
|
}
|
|
12719
12997
|
|
|
12720
|
-
function enumStringToValue$
|
|
12998
|
+
function enumStringToValue$g(enumRef, value) {
|
|
12721
12999
|
if (typeof value === 'number') {
|
|
12722
13000
|
return value;
|
|
12723
13001
|
}
|
|
@@ -12728,7 +13006,7 @@ class CreateProductRequest {
|
|
|
12728
13006
|
let m = new CreateProductRequest();
|
|
12729
13007
|
m = Object.assign(m, proto);
|
|
12730
13008
|
if (proto.productType) {
|
|
12731
|
-
m.productType = enumStringToValue$
|
|
13009
|
+
m.productType = enumStringToValue$g(ProductType, proto.productType);
|
|
12732
13010
|
}
|
|
12733
13011
|
return m;
|
|
12734
13012
|
}
|
|
@@ -12832,7 +13110,7 @@ class ListProductsRequestListProductsFilters {
|
|
|
12832
13110
|
let m = new ListProductsRequestListProductsFilters();
|
|
12833
13111
|
m = Object.assign(m, proto);
|
|
12834
13112
|
if (proto.productType) {
|
|
12835
|
-
m.productType = proto.productType.map((v) => enumStringToValue$
|
|
13113
|
+
m.productType = proto.productType.map((v) => enumStringToValue$g(ProductType, v));
|
|
12836
13114
|
}
|
|
12837
13115
|
return m;
|
|
12838
13116
|
}
|
|
@@ -12928,7 +13206,7 @@ class Product {
|
|
|
12928
13206
|
let m = new Product();
|
|
12929
13207
|
m = Object.assign(m, proto);
|
|
12930
13208
|
if (proto.productType) {
|
|
12931
|
-
m.productType = enumStringToValue$
|
|
13209
|
+
m.productType = enumStringToValue$g(ProductType, proto.productType);
|
|
12932
13210
|
}
|
|
12933
13211
|
return m;
|
|
12934
13212
|
}
|
|
@@ -12995,7 +13273,7 @@ class UpdateProductRequest {
|
|
|
12995
13273
|
let m = new UpdateProductRequest();
|
|
12996
13274
|
m = Object.assign(m, proto);
|
|
12997
13275
|
if (proto.productType) {
|
|
12998
|
-
m.productType = enumStringToValue$
|
|
13276
|
+
m.productType = enumStringToValue$g(ProductType, proto.productType);
|
|
12999
13277
|
}
|
|
13000
13278
|
return m;
|
|
13001
13279
|
}
|
|
@@ -13026,7 +13304,7 @@ class UpdateProductRequest {
|
|
|
13026
13304
|
}
|
|
13027
13305
|
}
|
|
13028
13306
|
|
|
13029
|
-
function enumStringToValue$
|
|
13307
|
+
function enumStringToValue$f(enumRef, value) {
|
|
13030
13308
|
if (typeof value === 'number') {
|
|
13031
13309
|
return value;
|
|
13032
13310
|
}
|
|
@@ -13040,7 +13318,7 @@ class AppliedCredit {
|
|
|
13040
13318
|
m.appliedAmount = parseInt(proto.appliedAmount, 10);
|
|
13041
13319
|
}
|
|
13042
13320
|
if (proto.referenceType) {
|
|
13043
|
-
m.referenceType = enumStringToValue$
|
|
13321
|
+
m.referenceType = enumStringToValue$f(CreditType, proto.referenceType);
|
|
13044
13322
|
}
|
|
13045
13323
|
return m;
|
|
13046
13324
|
}
|
|
@@ -13069,7 +13347,7 @@ class ListPurchaseRequestListPurchaseBillingStrategyFilter {
|
|
|
13069
13347
|
let m = new ListPurchaseRequestListPurchaseBillingStrategyFilter();
|
|
13070
13348
|
m = Object.assign(m, proto);
|
|
13071
13349
|
if (proto.billingStrategy) {
|
|
13072
|
-
m.billingStrategy = proto.billingStrategy.map((v) => enumStringToValue$
|
|
13350
|
+
m.billingStrategy = proto.billingStrategy.map((v) => enumStringToValue$f(BillingStrategy, v));
|
|
13073
13351
|
}
|
|
13074
13352
|
return m;
|
|
13075
13353
|
}
|
|
@@ -13101,13 +13379,13 @@ class ListPurchaseRequestListPurchaseFilters {
|
|
|
13101
13379
|
m.billingStrategyFilter = ListPurchaseRequestListPurchaseBillingStrategyFilter.fromProto(proto.billingStrategyFilter);
|
|
13102
13380
|
}
|
|
13103
13381
|
if (proto.state) {
|
|
13104
|
-
m.state = enumStringToValue$
|
|
13382
|
+
m.state = enumStringToValue$f(ListPurchaseRequestState, proto.state);
|
|
13105
13383
|
}
|
|
13106
13384
|
if (proto.minPrice) {
|
|
13107
13385
|
m.minPrice = parseInt(proto.minPrice, 10);
|
|
13108
13386
|
}
|
|
13109
13387
|
if (proto.status) {
|
|
13110
|
-
m.status = enumStringToValue$
|
|
13388
|
+
m.status = enumStringToValue$f(PurchaseStatus, proto.status);
|
|
13111
13389
|
}
|
|
13112
13390
|
if (proto.dunningPauseStart) {
|
|
13113
13391
|
m.dunningPauseStart = new Date(proto.dunningPauseStart);
|
|
@@ -13239,7 +13517,7 @@ class ListPurchaseItemsResponse {
|
|
|
13239
13517
|
m.pagingMetadata = PagedResponseMetadata.fromProto(proto.pagingMetadata);
|
|
13240
13518
|
}
|
|
13241
13519
|
if (proto.currency) {
|
|
13242
|
-
m.currency = enumStringToValue$
|
|
13520
|
+
m.currency = enumStringToValue$f(Currency, proto.currency);
|
|
13243
13521
|
}
|
|
13244
13522
|
return m;
|
|
13245
13523
|
}
|
|
@@ -13390,13 +13668,13 @@ class Purchase {
|
|
|
13390
13668
|
m.total = parseInt(proto.total, 10);
|
|
13391
13669
|
}
|
|
13392
13670
|
if (proto.currency) {
|
|
13393
|
-
m.currency = enumStringToValue$
|
|
13671
|
+
m.currency = enumStringToValue$f(Currency, proto.currency);
|
|
13394
13672
|
}
|
|
13395
13673
|
if (proto.items) {
|
|
13396
13674
|
m.items = proto.items.map(PurchaseItem.fromProto);
|
|
13397
13675
|
}
|
|
13398
13676
|
if (proto.billingStrategy) {
|
|
13399
|
-
m.billingStrategy = enumStringToValue$
|
|
13677
|
+
m.billingStrategy = enumStringToValue$f(BillingStrategy, proto.billingStrategy);
|
|
13400
13678
|
}
|
|
13401
13679
|
if (proto.dunningAttempt) {
|
|
13402
13680
|
m.dunningAttempt = parseInt(proto.dunningAttempt, 10);
|
|
@@ -13405,7 +13683,7 @@ class Purchase {
|
|
|
13405
13683
|
m.voided = new Date(proto.voided);
|
|
13406
13684
|
}
|
|
13407
13685
|
if (proto.status) {
|
|
13408
|
-
m.status = enumStringToValue$
|
|
13686
|
+
m.status = enumStringToValue$f(PurchaseStatus, proto.status);
|
|
13409
13687
|
}
|
|
13410
13688
|
if (proto.creditAmount) {
|
|
13411
13689
|
m.creditAmount = parseInt(proto.creditAmount, 10);
|
|
@@ -13692,7 +13970,7 @@ class VoidPurchaseRequest {
|
|
|
13692
13970
|
}
|
|
13693
13971
|
}
|
|
13694
13972
|
|
|
13695
|
-
function enumStringToValue$
|
|
13973
|
+
function enumStringToValue$e(enumRef, value) {
|
|
13696
13974
|
if (typeof value === 'number') {
|
|
13697
13975
|
return value;
|
|
13698
13976
|
}
|
|
@@ -13706,10 +13984,10 @@ class CreateRefundRequest {
|
|
|
13706
13984
|
m.amount = parseInt(proto.amount, 10);
|
|
13707
13985
|
}
|
|
13708
13986
|
if (proto.reason) {
|
|
13709
|
-
m.reason = enumStringToValue$
|
|
13987
|
+
m.reason = enumStringToValue$e(RefundReason, proto.reason);
|
|
13710
13988
|
}
|
|
13711
13989
|
if (proto.referenceType) {
|
|
13712
|
-
m.referenceType = enumStringToValue$
|
|
13990
|
+
m.referenceType = enumStringToValue$e(ReferenceType, proto.referenceType);
|
|
13713
13991
|
}
|
|
13714
13992
|
return m;
|
|
13715
13993
|
}
|
|
@@ -13814,10 +14092,10 @@ class Refund {
|
|
|
13814
14092
|
m.amount = parseInt(proto.amount, 10);
|
|
13815
14093
|
}
|
|
13816
14094
|
if (proto.reason) {
|
|
13817
|
-
m.reason = enumStringToValue$
|
|
14095
|
+
m.reason = enumStringToValue$e(RefundReason, proto.reason);
|
|
13818
14096
|
}
|
|
13819
14097
|
if (proto.status) {
|
|
13820
|
-
m.status = enumStringToValue$
|
|
14098
|
+
m.status = enumStringToValue$e(RefundStatus, proto.status);
|
|
13821
14099
|
}
|
|
13822
14100
|
if (proto.created) {
|
|
13823
14101
|
m.created = new Date(proto.created);
|
|
@@ -13826,7 +14104,7 @@ class Refund {
|
|
|
13826
14104
|
m.updated = new Date(proto.updated);
|
|
13827
14105
|
}
|
|
13828
14106
|
if (proto.referenceType) {
|
|
13829
|
-
m.referenceType = enumStringToValue$
|
|
14107
|
+
m.referenceType = enumStringToValue$e(ReferenceType, proto.referenceType);
|
|
13830
14108
|
}
|
|
13831
14109
|
return m;
|
|
13832
14110
|
}
|
|
@@ -13878,7 +14156,7 @@ class Refund {
|
|
|
13878
14156
|
}
|
|
13879
14157
|
}
|
|
13880
14158
|
|
|
13881
|
-
function enumStringToValue$
|
|
14159
|
+
function enumStringToValue$d(enumRef, value) {
|
|
13882
14160
|
if (typeof value === 'number') {
|
|
13883
14161
|
return value;
|
|
13884
14162
|
}
|
|
@@ -13933,7 +14211,7 @@ class ListSalesCreditNoteRequestListSalesCreditNoteFilters {
|
|
|
13933
14211
|
let m = new ListSalesCreditNoteRequestListSalesCreditNoteFilters();
|
|
13934
14212
|
m = Object.assign(m, proto);
|
|
13935
14213
|
if (proto.statuses) {
|
|
13936
|
-
m.statuses = proto.statuses.map((v) => enumStringToValue$
|
|
14214
|
+
m.statuses = proto.statuses.map((v) => enumStringToValue$d(SalesCreditNoteStatus, v));
|
|
13937
14215
|
}
|
|
13938
14216
|
return m;
|
|
13939
14217
|
}
|
|
@@ -14023,7 +14301,7 @@ class SalesCreditNote {
|
|
|
14023
14301
|
m.dueDate = new Date(proto.dueDate);
|
|
14024
14302
|
}
|
|
14025
14303
|
if (proto.currency) {
|
|
14026
|
-
m.currency = enumStringToValue$
|
|
14304
|
+
m.currency = enumStringToValue$d(Currency, proto.currency);
|
|
14027
14305
|
}
|
|
14028
14306
|
if (proto.total) {
|
|
14029
14307
|
m.total = parseInt(proto.total, 10);
|
|
@@ -14032,7 +14310,7 @@ class SalesCreditNote {
|
|
|
14032
14310
|
m.outstanding = parseInt(proto.outstanding, 10);
|
|
14033
14311
|
}
|
|
14034
14312
|
if (proto.status) {
|
|
14035
|
-
m.status = enumStringToValue$
|
|
14313
|
+
m.status = enumStringToValue$d(SalesCreditNoteStatus, proto.status);
|
|
14036
14314
|
}
|
|
14037
14315
|
return m;
|
|
14038
14316
|
}
|
|
@@ -14090,7 +14368,7 @@ class SalesCreditNote {
|
|
|
14090
14368
|
}
|
|
14091
14369
|
}
|
|
14092
14370
|
|
|
14093
|
-
function enumStringToValue$
|
|
14371
|
+
function enumStringToValue$c(enumRef, value) {
|
|
14094
14372
|
if (typeof value === 'number') {
|
|
14095
14373
|
return value;
|
|
14096
14374
|
}
|
|
@@ -14147,10 +14425,10 @@ class ListSalesInvoiceRequestListSalesInvoiceFilters {
|
|
|
14147
14425
|
let m = new ListSalesInvoiceRequestListSalesInvoiceFilters();
|
|
14148
14426
|
m = Object.assign(m, proto);
|
|
14149
14427
|
if (proto.statuses) {
|
|
14150
|
-
m.statuses = proto.statuses.map((v) => enumStringToValue$
|
|
14428
|
+
m.statuses = proto.statuses.map((v) => enumStringToValue$c(SalesInvoiceStatus, v));
|
|
14151
14429
|
}
|
|
14152
14430
|
if (proto.paymentStatuses) {
|
|
14153
|
-
m.paymentStatuses = proto.paymentStatuses.map((v) => enumStringToValue$
|
|
14431
|
+
m.paymentStatuses = proto.paymentStatuses.map((v) => enumStringToValue$c(PaymentStatuses, v));
|
|
14154
14432
|
}
|
|
14155
14433
|
return m;
|
|
14156
14434
|
}
|
|
@@ -14278,16 +14556,16 @@ class SalesInvoice {
|
|
|
14278
14556
|
m.total = parseInt(proto.total, 10);
|
|
14279
14557
|
}
|
|
14280
14558
|
if (proto.currency) {
|
|
14281
|
-
m.currency = enumStringToValue$
|
|
14559
|
+
m.currency = enumStringToValue$c(Currency, proto.currency);
|
|
14282
14560
|
}
|
|
14283
14561
|
if (proto.status) {
|
|
14284
|
-
m.status = enumStringToValue$
|
|
14562
|
+
m.status = enumStringToValue$c(SalesInvoiceStatus, proto.status);
|
|
14285
14563
|
}
|
|
14286
14564
|
if (proto.outstanding) {
|
|
14287
14565
|
m.outstanding = parseInt(proto.outstanding, 10);
|
|
14288
14566
|
}
|
|
14289
14567
|
if (proto.type) {
|
|
14290
|
-
m.type = enumStringToValue$
|
|
14568
|
+
m.type = enumStringToValue$c(SalesInvoiceType, proto.type);
|
|
14291
14569
|
}
|
|
14292
14570
|
return m;
|
|
14293
14571
|
}
|
|
@@ -14391,7 +14669,7 @@ class SendSalesInvoiceReceiptEmailRequest {
|
|
|
14391
14669
|
}
|
|
14392
14670
|
}
|
|
14393
14671
|
|
|
14394
|
-
function enumStringToValue$
|
|
14672
|
+
function enumStringToValue$b(enumRef, value) {
|
|
14395
14673
|
if (typeof value === 'number') {
|
|
14396
14674
|
return value;
|
|
14397
14675
|
}
|
|
@@ -14500,10 +14778,10 @@ class ListTaxRulesRequestFilters {
|
|
|
14500
14778
|
let m = new ListTaxRulesRequestFilters();
|
|
14501
14779
|
m = Object.assign(m, proto);
|
|
14502
14780
|
if (proto.consumer) {
|
|
14503
|
-
m.consumer = enumStringToValue$
|
|
14781
|
+
m.consumer = enumStringToValue$b(Consumer, proto.consumer);
|
|
14504
14782
|
}
|
|
14505
14783
|
if (proto.entityType) {
|
|
14506
|
-
m.entityType = enumStringToValue$
|
|
14784
|
+
m.entityType = enumStringToValue$b(TaxRuleEntityType, proto.entityType);
|
|
14507
14785
|
}
|
|
14508
14786
|
return m;
|
|
14509
14787
|
}
|
|
@@ -14552,7 +14830,7 @@ class GetTaxProviderResponse {
|
|
|
14552
14830
|
let m = new GetTaxProviderResponse();
|
|
14553
14831
|
m = Object.assign(m, proto);
|
|
14554
14832
|
if (proto.taxProviderType) {
|
|
14555
|
-
m.taxProviderType = enumStringToValue$
|
|
14833
|
+
m.taxProviderType = enumStringToValue$b(TaxProviderType, proto.taxProviderType);
|
|
14556
14834
|
}
|
|
14557
14835
|
return m;
|
|
14558
14836
|
}
|
|
@@ -14676,7 +14954,7 @@ class TaxRuleProductProductIdentifier {
|
|
|
14676
14954
|
let m = new TaxRuleProductProductIdentifier();
|
|
14677
14955
|
m = Object.assign(m, proto);
|
|
14678
14956
|
if (proto.type) {
|
|
14679
|
-
m.type = enumStringToValue$
|
|
14957
|
+
m.type = enumStringToValue$b(ProductType, proto.type);
|
|
14680
14958
|
}
|
|
14681
14959
|
return m;
|
|
14682
14960
|
}
|
|
@@ -14705,13 +14983,13 @@ class ReplaceTaxRuleRequest {
|
|
|
14705
14983
|
let m = new ReplaceTaxRuleRequest();
|
|
14706
14984
|
m = Object.assign(m, proto);
|
|
14707
14985
|
if (proto.entityType) {
|
|
14708
|
-
m.entityType = enumStringToValue$
|
|
14986
|
+
m.entityType = enumStringToValue$b(TaxRuleEntityType, proto.entityType);
|
|
14709
14987
|
}
|
|
14710
14988
|
if (proto.type) {
|
|
14711
|
-
m.type = enumStringToValue$
|
|
14989
|
+
m.type = enumStringToValue$b(TaxRuleType, proto.type);
|
|
14712
14990
|
}
|
|
14713
14991
|
if (proto.consumer) {
|
|
14714
|
-
m.consumer = enumStringToValue$
|
|
14992
|
+
m.consumer = enumStringToValue$b(Consumer, proto.consumer);
|
|
14715
14993
|
}
|
|
14716
14994
|
return m;
|
|
14717
14995
|
}
|
|
@@ -14769,13 +15047,13 @@ class TaxRule {
|
|
|
14769
15047
|
let m = new TaxRule();
|
|
14770
15048
|
m = Object.assign(m, proto);
|
|
14771
15049
|
if (proto.entityType) {
|
|
14772
|
-
m.entityType = enumStringToValue$
|
|
15050
|
+
m.entityType = enumStringToValue$b(TaxRuleEntityType, proto.entityType);
|
|
14773
15051
|
}
|
|
14774
15052
|
if (proto.entity) {
|
|
14775
15053
|
m.entity = TaxRuleTaxRuleEntity.fromProto(proto.entity);
|
|
14776
15054
|
}
|
|
14777
15055
|
if (proto.type) {
|
|
14778
|
-
m.type = enumStringToValue$
|
|
15056
|
+
m.type = enumStringToValue$b(TaxRuleType, proto.type);
|
|
14779
15057
|
}
|
|
14780
15058
|
if (proto.taxRates) {
|
|
14781
15059
|
m.taxRates = proto.taxRates.map(TaxRate.fromProto);
|
|
@@ -14896,7 +15174,7 @@ class TaxRuleProduct {
|
|
|
14896
15174
|
}
|
|
14897
15175
|
}
|
|
14898
15176
|
|
|
14899
|
-
function enumStringToValue$
|
|
15177
|
+
function enumStringToValue$a(enumRef, value) {
|
|
14900
15178
|
if (typeof value === 'number') {
|
|
14901
15179
|
return value;
|
|
14902
15180
|
}
|
|
@@ -15036,7 +15314,7 @@ class ListContractDocumentsResponse {
|
|
|
15036
15314
|
}
|
|
15037
15315
|
}
|
|
15038
15316
|
|
|
15039
|
-
function enumStringToValue$
|
|
15317
|
+
function enumStringToValue$9(enumRef, value) {
|
|
15040
15318
|
if (typeof value === 'number') {
|
|
15041
15319
|
return value;
|
|
15042
15320
|
}
|
|
@@ -15102,7 +15380,7 @@ class RetailCustomerConfiguration {
|
|
|
15102
15380
|
m.netD = parseInt(proto.netD, 10);
|
|
15103
15381
|
}
|
|
15104
15382
|
if (proto.paymentMethodTypes) {
|
|
15105
|
-
m.paymentMethodTypes = proto.paymentMethodTypes.map((v) => enumStringToValue$
|
|
15383
|
+
m.paymentMethodTypes = proto.paymentMethodTypes.map((v) => enumStringToValue$9(PaymentMethodType, v));
|
|
15106
15384
|
}
|
|
15107
15385
|
return m;
|
|
15108
15386
|
}
|
|
@@ -15170,7 +15448,7 @@ class UpsertRetailCustomerConfigurationRequest {
|
|
|
15170
15448
|
m.netD = parseInt(proto.netD, 10);
|
|
15171
15449
|
}
|
|
15172
15450
|
if (proto.paymentMethodTypes) {
|
|
15173
|
-
m.paymentMethodTypes = proto.paymentMethodTypes.map((v) => enumStringToValue$
|
|
15451
|
+
m.paymentMethodTypes = proto.paymentMethodTypes.map((v) => enumStringToValue$9(PaymentMethodType, v));
|
|
15174
15452
|
}
|
|
15175
15453
|
if (proto.fieldMask) {
|
|
15176
15454
|
m.fieldMask = FieldMask.fromProto(proto.fieldMask);
|
|
@@ -15231,7 +15509,7 @@ class UpsertRetailCustomerConfigurationRequest {
|
|
|
15231
15509
|
}
|
|
15232
15510
|
}
|
|
15233
15511
|
|
|
15234
|
-
function enumStringToValue$
|
|
15512
|
+
function enumStringToValue$8(enumRef, value) {
|
|
15235
15513
|
if (typeof value === 'number') {
|
|
15236
15514
|
return value;
|
|
15237
15515
|
}
|
|
@@ -15348,7 +15626,7 @@ class GetBalanceResponse {
|
|
|
15348
15626
|
}
|
|
15349
15627
|
}
|
|
15350
15628
|
|
|
15351
|
-
function enumStringToValue$
|
|
15629
|
+
function enumStringToValue$7(enumRef, value) {
|
|
15352
15630
|
if (typeof value === 'number') {
|
|
15353
15631
|
return value;
|
|
15354
15632
|
}
|
|
@@ -15359,7 +15637,7 @@ class CreateMerchantServicesReportRun {
|
|
|
15359
15637
|
let m = new CreateMerchantServicesReportRun();
|
|
15360
15638
|
m = Object.assign(m, proto);
|
|
15361
15639
|
if (proto.reportType) {
|
|
15362
|
-
m.reportType = enumStringToValue$
|
|
15640
|
+
m.reportType = enumStringToValue$7(MerchantServicesReportRunType, proto.reportType);
|
|
15363
15641
|
}
|
|
15364
15642
|
if (proto.intervalStart) {
|
|
15365
15643
|
m.intervalStart = new Date(proto.intervalStart);
|
|
@@ -15423,10 +15701,10 @@ class MerchantServicesReportRun {
|
|
|
15423
15701
|
m.created = new Date(proto.created);
|
|
15424
15702
|
}
|
|
15425
15703
|
if (proto.reportType) {
|
|
15426
|
-
m.reportType = enumStringToValue$
|
|
15704
|
+
m.reportType = enumStringToValue$7(MerchantServicesReportRunType, proto.reportType);
|
|
15427
15705
|
}
|
|
15428
15706
|
if (proto.status) {
|
|
15429
|
-
m.status = enumStringToValue$
|
|
15707
|
+
m.status = enumStringToValue$7(MerchantServicesReportRunStatus, proto.status);
|
|
15430
15708
|
}
|
|
15431
15709
|
return m;
|
|
15432
15710
|
}
|
|
@@ -15457,7 +15735,7 @@ class MerchantServicesReportRun {
|
|
|
15457
15735
|
}
|
|
15458
15736
|
}
|
|
15459
15737
|
|
|
15460
|
-
function enumStringToValue$
|
|
15738
|
+
function enumStringToValue$6(enumRef, value) {
|
|
15461
15739
|
if (typeof value === 'number') {
|
|
15462
15740
|
return value;
|
|
15463
15741
|
}
|
|
@@ -15507,7 +15785,7 @@ class MCPOptions {
|
|
|
15507
15785
|
}
|
|
15508
15786
|
}
|
|
15509
15787
|
|
|
15510
|
-
function enumStringToValue$
|
|
15788
|
+
function enumStringToValue$5(enumRef, value) {
|
|
15511
15789
|
if (typeof value === 'number') {
|
|
15512
15790
|
return value;
|
|
15513
15791
|
}
|
|
@@ -15518,13 +15796,13 @@ class ListSubscriptionRelationshipsRequestFilters {
|
|
|
15518
15796
|
let m = new ListSubscriptionRelationshipsRequestFilters();
|
|
15519
15797
|
m = Object.assign(m, proto);
|
|
15520
15798
|
if (proto.originType) {
|
|
15521
|
-
m.originType = enumStringToValue$
|
|
15799
|
+
m.originType = enumStringToValue$5(EntityType, proto.originType);
|
|
15522
15800
|
}
|
|
15523
15801
|
if (proto.targetType) {
|
|
15524
|
-
m.targetType = enumStringToValue$
|
|
15802
|
+
m.targetType = enumStringToValue$5(EntityType, proto.targetType);
|
|
15525
15803
|
}
|
|
15526
15804
|
if (proto.relationshipType) {
|
|
15527
|
-
m.relationshipType = enumStringToValue$
|
|
15805
|
+
m.relationshipType = enumStringToValue$5(RelationshipType, proto.relationshipType);
|
|
15528
15806
|
}
|
|
15529
15807
|
return m;
|
|
15530
15808
|
}
|
|
@@ -15712,13 +15990,13 @@ class SubscriptionRelationship {
|
|
|
15712
15990
|
let m = new SubscriptionRelationship();
|
|
15713
15991
|
m = Object.assign(m, proto);
|
|
15714
15992
|
if (proto.originType) {
|
|
15715
|
-
m.originType = enumStringToValue$
|
|
15993
|
+
m.originType = enumStringToValue$5(EntityType, proto.originType);
|
|
15716
15994
|
}
|
|
15717
15995
|
if (proto.targetType) {
|
|
15718
|
-
m.targetType = enumStringToValue$
|
|
15996
|
+
m.targetType = enumStringToValue$5(EntityType, proto.targetType);
|
|
15719
15997
|
}
|
|
15720
15998
|
if (proto.relationshipType) {
|
|
15721
|
-
m.relationshipType = enumStringToValue$
|
|
15999
|
+
m.relationshipType = enumStringToValue$5(RelationshipType, proto.relationshipType);
|
|
15722
16000
|
}
|
|
15723
16001
|
if (proto.created) {
|
|
15724
16002
|
m.created = new Date(proto.created);
|
|
@@ -15776,7 +16054,7 @@ class SubscriptionRelationship {
|
|
|
15776
16054
|
}
|
|
15777
16055
|
}
|
|
15778
16056
|
|
|
15779
|
-
function enumStringToValue$
|
|
16057
|
+
function enumStringToValue$4(enumRef, value) {
|
|
15780
16058
|
if (typeof value === 'number') {
|
|
15781
16059
|
return value;
|
|
15782
16060
|
}
|
|
@@ -15882,7 +16160,7 @@ class SubscriptionPreset {
|
|
|
15882
16160
|
}
|
|
15883
16161
|
}
|
|
15884
16162
|
|
|
15885
|
-
function enumStringToValue$
|
|
16163
|
+
function enumStringToValue$3(enumRef, value) {
|
|
15886
16164
|
if (typeof value === 'number') {
|
|
15887
16165
|
return value;
|
|
15888
16166
|
}
|
|
@@ -15893,13 +16171,13 @@ class AppliedTo {
|
|
|
15893
16171
|
let m = new AppliedTo();
|
|
15894
16172
|
m = Object.assign(m, proto);
|
|
15895
16173
|
if (proto.referenceType) {
|
|
15896
|
-
m.referenceType = enumStringToValue$
|
|
16174
|
+
m.referenceType = enumStringToValue$3(AppliedReferenceType, proto.referenceType);
|
|
15897
16175
|
}
|
|
15898
16176
|
if (proto.amount) {
|
|
15899
16177
|
m.amount = parseInt(proto.amount, 10);
|
|
15900
16178
|
}
|
|
15901
16179
|
if (proto.creditNoteType) {
|
|
15902
|
-
m.creditNoteType = enumStringToValue$
|
|
16180
|
+
m.creditNoteType = enumStringToValue$3(CreditNoteType, proto.creditNoteType);
|
|
15903
16181
|
}
|
|
15904
16182
|
if (proto.appliedAt) {
|
|
15905
16183
|
m.appliedAt = new Date(proto.appliedAt);
|
|
@@ -16047,7 +16325,7 @@ class CreditNote {
|
|
|
16047
16325
|
m.items = proto.items.map(LineItem.fromProto);
|
|
16048
16326
|
}
|
|
16049
16327
|
if (proto.currency) {
|
|
16050
|
-
m.currency = enumStringToValue$
|
|
16328
|
+
m.currency = enumStringToValue$3(Currency, proto.currency);
|
|
16051
16329
|
}
|
|
16052
16330
|
if (proto.amountTax) {
|
|
16053
16331
|
m.amountTax = parseInt(proto.amountTax, 10);
|
|
@@ -16059,7 +16337,7 @@ class CreditNote {
|
|
|
16059
16337
|
m.notes = proto.notes.map(Note.fromProto);
|
|
16060
16338
|
}
|
|
16061
16339
|
if (proto.reason) {
|
|
16062
|
-
m.reason = enumStringToValue$
|
|
16340
|
+
m.reason = enumStringToValue$3(CreditNoteReason, proto.reason);
|
|
16063
16341
|
}
|
|
16064
16342
|
if (proto.appliedTo) {
|
|
16065
16343
|
m.appliedTo = proto.appliedTo.map(AppliedTo.fromProto);
|
|
@@ -16399,7 +16677,7 @@ class SendCreditNoteRequest {
|
|
|
16399
16677
|
}
|
|
16400
16678
|
}
|
|
16401
16679
|
|
|
16402
|
-
function enumStringToValue$
|
|
16680
|
+
function enumStringToValue$2(enumRef, value) {
|
|
16403
16681
|
if (typeof value === 'number') {
|
|
16404
16682
|
return value;
|
|
16405
16683
|
}
|
|
@@ -16567,7 +16845,7 @@ class VendorSplit {
|
|
|
16567
16845
|
}
|
|
16568
16846
|
}
|
|
16569
16847
|
|
|
16570
|
-
function enumStringToValue$
|
|
16848
|
+
function enumStringToValue$1(enumRef, value) {
|
|
16571
16849
|
if (typeof value === 'number') {
|
|
16572
16850
|
return value;
|
|
16573
16851
|
}
|
|
@@ -16764,146 +17042,6 @@ class UpdateAvalaraConfigurationResponse {
|
|
|
16764
17042
|
}
|
|
16765
17043
|
}
|
|
16766
17044
|
|
|
16767
|
-
function enumStringToValue$1(enumRef, value) {
|
|
16768
|
-
if (typeof value === 'number') {
|
|
16769
|
-
return value;
|
|
16770
|
-
}
|
|
16771
|
-
return enumRef[value];
|
|
16772
|
-
}
|
|
16773
|
-
class ListWholesaleTaxRulesRequest {
|
|
16774
|
-
static fromProto(proto) {
|
|
16775
|
-
let m = new ListWholesaleTaxRulesRequest();
|
|
16776
|
-
m = Object.assign(m, proto);
|
|
16777
|
-
if (proto.pagingOptions) {
|
|
16778
|
-
m.pagingOptions = PagedRequestOptions.fromProto(proto.pagingOptions);
|
|
16779
|
-
}
|
|
16780
|
-
return m;
|
|
16781
|
-
}
|
|
16782
|
-
constructor(kwargs) {
|
|
16783
|
-
if (!kwargs) {
|
|
16784
|
-
return;
|
|
16785
|
-
}
|
|
16786
|
-
Object.assign(this, kwargs);
|
|
16787
|
-
}
|
|
16788
|
-
toApiJson() {
|
|
16789
|
-
const toReturn = {};
|
|
16790
|
-
if (typeof this.pagingOptions !== 'undefined' && this.pagingOptions !== null) {
|
|
16791
|
-
toReturn['pagingOptions'] = 'toApiJson' in this.pagingOptions ? this.pagingOptions.toApiJson() : this.pagingOptions;
|
|
16792
|
-
}
|
|
16793
|
-
return toReturn;
|
|
16794
|
-
}
|
|
16795
|
-
}
|
|
16796
|
-
class ListWholesaleTaxRulesResponse {
|
|
16797
|
-
static fromProto(proto) {
|
|
16798
|
-
let m = new ListWholesaleTaxRulesResponse();
|
|
16799
|
-
m = Object.assign(m, proto);
|
|
16800
|
-
if (proto.taxRules) {
|
|
16801
|
-
m.taxRules = proto.taxRules.map(WholesaleTaxRule.fromProto);
|
|
16802
|
-
}
|
|
16803
|
-
if (proto.pagingMetadata) {
|
|
16804
|
-
m.pagingMetadata = PagedResponseMetadata.fromProto(proto.pagingMetadata);
|
|
16805
|
-
}
|
|
16806
|
-
return m;
|
|
16807
|
-
}
|
|
16808
|
-
constructor(kwargs) {
|
|
16809
|
-
if (!kwargs) {
|
|
16810
|
-
return;
|
|
16811
|
-
}
|
|
16812
|
-
Object.assign(this, kwargs);
|
|
16813
|
-
}
|
|
16814
|
-
toApiJson() {
|
|
16815
|
-
const toReturn = {};
|
|
16816
|
-
if (typeof this.taxRules !== 'undefined' && this.taxRules !== null) {
|
|
16817
|
-
toReturn['taxRules'] = 'toApiJson' in this.taxRules ? this.taxRules.toApiJson() : this.taxRules;
|
|
16818
|
-
}
|
|
16819
|
-
if (typeof this.pagingMetadata !== 'undefined' && this.pagingMetadata !== null) {
|
|
16820
|
-
toReturn['pagingMetadata'] = 'toApiJson' in this.pagingMetadata ? this.pagingMetadata.toApiJson() : this.pagingMetadata;
|
|
16821
|
-
}
|
|
16822
|
-
return toReturn;
|
|
16823
|
-
}
|
|
16824
|
-
}
|
|
16825
|
-
class UpsertWholesaleTaxRuleRequest {
|
|
16826
|
-
static fromProto(proto) {
|
|
16827
|
-
let m = new UpsertWholesaleTaxRuleRequest();
|
|
16828
|
-
m = Object.assign(m, proto);
|
|
16829
|
-
if (proto.item) {
|
|
16830
|
-
m.item = WholesaleTaxRule.fromProto(proto.item);
|
|
16831
|
-
}
|
|
16832
|
-
return m;
|
|
16833
|
-
}
|
|
16834
|
-
constructor(kwargs) {
|
|
16835
|
-
if (!kwargs) {
|
|
16836
|
-
return;
|
|
16837
|
-
}
|
|
16838
|
-
Object.assign(this, kwargs);
|
|
16839
|
-
}
|
|
16840
|
-
toApiJson() {
|
|
16841
|
-
const toReturn = {};
|
|
16842
|
-
if (typeof this.item !== 'undefined' && this.item !== null) {
|
|
16843
|
-
toReturn['item'] = 'toApiJson' in this.item ? this.item.toApiJson() : this.item;
|
|
16844
|
-
}
|
|
16845
|
-
return toReturn;
|
|
16846
|
-
}
|
|
16847
|
-
}
|
|
16848
|
-
class UpsertWholesaleTaxRuleResponse {
|
|
16849
|
-
static fromProto(proto) {
|
|
16850
|
-
let m = new UpsertWholesaleTaxRuleResponse();
|
|
16851
|
-
m = Object.assign(m, proto);
|
|
16852
|
-
if (proto.item) {
|
|
16853
|
-
m.item = WholesaleTaxRule.fromProto(proto.item);
|
|
16854
|
-
}
|
|
16855
|
-
return m;
|
|
16856
|
-
}
|
|
16857
|
-
constructor(kwargs) {
|
|
16858
|
-
if (!kwargs) {
|
|
16859
|
-
return;
|
|
16860
|
-
}
|
|
16861
|
-
Object.assign(this, kwargs);
|
|
16862
|
-
}
|
|
16863
|
-
toApiJson() {
|
|
16864
|
-
const toReturn = {};
|
|
16865
|
-
if (typeof this.item !== 'undefined' && this.item !== null) {
|
|
16866
|
-
toReturn['item'] = 'toApiJson' in this.item ? this.item.toApiJson() : this.item;
|
|
16867
|
-
}
|
|
16868
|
-
return toReturn;
|
|
16869
|
-
}
|
|
16870
|
-
}
|
|
16871
|
-
class WholesaleTaxRule {
|
|
16872
|
-
static fromProto(proto) {
|
|
16873
|
-
let m = new WholesaleTaxRule();
|
|
16874
|
-
m = Object.assign(m, proto);
|
|
16875
|
-
return m;
|
|
16876
|
-
}
|
|
16877
|
-
constructor(kwargs) {
|
|
16878
|
-
if (!kwargs) {
|
|
16879
|
-
return;
|
|
16880
|
-
}
|
|
16881
|
-
Object.assign(this, kwargs);
|
|
16882
|
-
}
|
|
16883
|
-
toApiJson() {
|
|
16884
|
-
const toReturn = {};
|
|
16885
|
-
if (typeof this.id !== 'undefined') {
|
|
16886
|
-
toReturn['id'] = this.id;
|
|
16887
|
-
}
|
|
16888
|
-
if (typeof this.countryCode !== 'undefined') {
|
|
16889
|
-
toReturn['countryCode'] = this.countryCode;
|
|
16890
|
-
}
|
|
16891
|
-
if (typeof this.stateCode !== 'undefined') {
|
|
16892
|
-
toReturn['stateCode'] = this.stateCode;
|
|
16893
|
-
}
|
|
16894
|
-
if (typeof this.taxCode !== 'undefined') {
|
|
16895
|
-
toReturn['taxCode'] = this.taxCode;
|
|
16896
|
-
}
|
|
16897
|
-
if (typeof this.externalTaxCode !== 'undefined') {
|
|
16898
|
-
toReturn['externalTaxCode'] = this.externalTaxCode;
|
|
16899
|
-
}
|
|
16900
|
-
if (typeof this.percentage !== 'undefined') {
|
|
16901
|
-
toReturn['percentage'] = this.percentage;
|
|
16902
|
-
}
|
|
16903
|
-
return toReturn;
|
|
16904
|
-
}
|
|
16905
|
-
}
|
|
16906
|
-
|
|
16907
17045
|
function enumStringToValue(enumRef, value) {
|
|
16908
17046
|
if (typeof value === 'number') {
|
|
16909
17047
|
return value;
|
|
@@ -18569,6 +18707,31 @@ class InvoiceApiService {
|
|
|
18569
18707
|
return this.http.post(this._host + "/billing.v1.InvoiceService/GetWithCalculatedTaxes", request.toApiJson(), this.apiOptions())
|
|
18570
18708
|
.pipe(map(resp => GetInvoiceWithCalculatedTaxesResponse.fromProto(resp)));
|
|
18571
18709
|
}
|
|
18710
|
+
createDisplayGroup(r) {
|
|
18711
|
+
const request = (r.toApiJson) ? r : new CreateInvoiceDisplayGroupRequest(r);
|
|
18712
|
+
return this.http.post(this._host + "/billing.v1.InvoiceService/CreateDisplayGroup", request.toApiJson(), this.apiOptions())
|
|
18713
|
+
.pipe(map(resp => CreateInvoiceDisplayGroupResponse.fromProto(resp)));
|
|
18714
|
+
}
|
|
18715
|
+
updateDisplayGroup(r) {
|
|
18716
|
+
const request = (r.toApiJson) ? r : new UpdateInvoiceDisplayGroupRequest(r);
|
|
18717
|
+
return this.http.post(this._host + "/billing.v1.InvoiceService/UpdateDisplayGroup", request.toApiJson(), this.apiOptions())
|
|
18718
|
+
.pipe(map(resp => UpdateInvoiceDisplayGroupResponse.fromProto(resp)));
|
|
18719
|
+
}
|
|
18720
|
+
deleteDisplayGroup(r) {
|
|
18721
|
+
const request = (r.toApiJson) ? r : new DeleteInvoiceDisplayGroupRequest(r);
|
|
18722
|
+
return this.http.post(this._host + "/billing.v1.InvoiceService/DeleteDisplayGroup", request.toApiJson(), this.apiOptions())
|
|
18723
|
+
.pipe(map(resp => DeleteInvoiceDisplayGroupResponse.fromProto(resp)));
|
|
18724
|
+
}
|
|
18725
|
+
addLineItemToDisplayGroup(r) {
|
|
18726
|
+
const request = (r.toApiJson) ? r : new AddLineItemToDisplayGroupRequest(r);
|
|
18727
|
+
return this.http.post(this._host + "/billing.v1.InvoiceService/AddLineItemToDisplayGroup", request.toApiJson(), this.apiOptions())
|
|
18728
|
+
.pipe(map(resp => AddLineItemToDisplayGroupResponse.fromProto(resp)));
|
|
18729
|
+
}
|
|
18730
|
+
removeLineItemFromDisplayGroup(r) {
|
|
18731
|
+
const request = (r.toApiJson) ? r : new RemoveLineItemFromDisplayGroupRequest(r);
|
|
18732
|
+
return this.http.post(this._host + "/billing.v1.InvoiceService/RemoveLineItemFromDisplayGroup", request.toApiJson(), this.apiOptions())
|
|
18733
|
+
.pipe(map(resp => RemoveLineItemFromDisplayGroupResponse.fromProto(resp)));
|
|
18734
|
+
}
|
|
18572
18735
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.5", ngImport: i0, type: InvoiceApiService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
18573
18736
|
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.0.5", ngImport: i0, type: InvoiceApiService, providedIn: 'root' }); }
|
|
18574
18737
|
}
|
|
@@ -19600,44 +19763,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.5", ngImpor
|
|
|
19600
19763
|
args: [{ providedIn: 'root' }]
|
|
19601
19764
|
}] });
|
|
19602
19765
|
|
|
19603
|
-
// *********************************
|
|
19604
|
-
// Code generated by sdkgen
|
|
19605
|
-
// DO NOT EDIT!.
|
|
19606
|
-
//
|
|
19607
|
-
// API Service.
|
|
19608
|
-
// *********************************
|
|
19609
|
-
class WholesaleTaxRuleApiService {
|
|
19610
|
-
constructor() {
|
|
19611
|
-
this.hostService = inject(HostService);
|
|
19612
|
-
this.http = inject(HttpClient);
|
|
19613
|
-
this._host = this.hostService.hostWithScheme;
|
|
19614
|
-
}
|
|
19615
|
-
apiOptions() {
|
|
19616
|
-
return {
|
|
19617
|
-
headers: new HttpHeaders({
|
|
19618
|
-
'Content-Type': 'application/json'
|
|
19619
|
-
}),
|
|
19620
|
-
withCredentials: true
|
|
19621
|
-
};
|
|
19622
|
-
}
|
|
19623
|
-
list(r) {
|
|
19624
|
-
const request = (r.toApiJson) ? r : new ListWholesaleTaxRulesRequest(r);
|
|
19625
|
-
return this.http.post(this._host + "/billing.v1.WholesaleTaxRuleService/List", request.toApiJson(), this.apiOptions())
|
|
19626
|
-
.pipe(map(resp => ListWholesaleTaxRulesResponse.fromProto(resp)));
|
|
19627
|
-
}
|
|
19628
|
-
upsert(r) {
|
|
19629
|
-
const request = (r.toApiJson) ? r : new UpsertWholesaleTaxRuleRequest(r);
|
|
19630
|
-
return this.http.post(this._host + "/billing.v1.WholesaleTaxRuleService/Upsert", request.toApiJson(), this.apiOptions())
|
|
19631
|
-
.pipe(map(resp => UpsertWholesaleTaxRuleResponse.fromProto(resp)));
|
|
19632
|
-
}
|
|
19633
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.5", ngImport: i0, type: WholesaleTaxRuleApiService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
19634
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.0.5", ngImport: i0, type: WholesaleTaxRuleApiService, providedIn: 'root' }); }
|
|
19635
|
-
}
|
|
19636
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.5", ngImport: i0, type: WholesaleTaxRuleApiService, decorators: [{
|
|
19637
|
-
type: Injectable,
|
|
19638
|
-
args: [{ providedIn: 'root' }]
|
|
19639
|
-
}] });
|
|
19640
|
-
|
|
19641
19766
|
// *********************************
|
|
19642
19767
|
// Code generated by sdkgen
|
|
19643
19768
|
// DO NOT EDIT!.
|
|
@@ -19652,5 +19777,5 @@ const usdConversionRate = 1.4;
|
|
|
19652
19777
|
* Generated bundle index. Do not edit.
|
|
19653
19778
|
*/
|
|
19654
19779
|
|
|
19655
|
-
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 };
|
|
19780
|
+
export { Access, AccountBalance, AddBundleRequest, AddBundleResponse, AddCreditRequest, AddLineItemRequest, AddLineItemResponse, AddLineItemToDisplayGroupRequest, AddLineItemToDisplayGroupResponse, 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, CreateInvoiceDisplayGroupRequest, CreateInvoiceDisplayGroupResponse, 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, DeleteInvoiceDisplayGroupRequest, DeleteInvoiceDisplayGroupResponse, 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, RemoveLineItemFromDisplayGroupRequest, RemoveLineItemFromDisplayGroupResponse, 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, UpdateInvoiceDisplayGroupRequest, UpdateInvoiceDisplayGroupResponse, 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 };
|
|
19656
19781
|
//# sourceMappingURL=vendasta-billing.mjs.map
|