@vendasta/billing 14.48.0 → 14.49.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.
Files changed (35) hide show
  1. package/esm2022/lib/_internal/avalara-configuration.api.service.mjs +54 -0
  2. package/esm2022/lib/_internal/enums/index.mjs +2 -1
  3. package/esm2022/lib/_internal/enums/retail-subscription-group.enum.mjs +14 -0
  4. package/esm2022/lib/_internal/index.mjs +4 -1
  5. package/esm2022/lib/_internal/interfaces/avalara.interface.mjs +2 -0
  6. package/esm2022/lib/_internal/interfaces/index.mjs +1 -1
  7. package/esm2022/lib/_internal/interfaces/retail-subscription-group.interface.mjs +8 -0
  8. package/esm2022/lib/_internal/interfaces/subscription-preset.interface.mjs +1 -1
  9. package/esm2022/lib/_internal/interfaces/vendor-split.interface.mjs +8 -0
  10. package/esm2022/lib/_internal/objects/avalara.mjs +198 -0
  11. package/esm2022/lib/_internal/objects/index.mjs +4 -1
  12. package/esm2022/lib/_internal/objects/retail-subscription-group.mjs +80 -0
  13. package/esm2022/lib/_internal/objects/subscription-preset.mjs +4 -1
  14. package/esm2022/lib/_internal/objects/vendor-split.mjs +125 -0
  15. package/esm2022/lib/_internal/retail-subscription-group.api.service.mjs +40 -0
  16. package/esm2022/lib/_internal/vendor-split.api.service.mjs +45 -0
  17. package/fesm2022/vendasta-billing.mjs +849 -313
  18. package/fesm2022/vendasta-billing.mjs.map +1 -1
  19. package/lib/_internal/avalara-configuration.api.service.d.ts +17 -0
  20. package/lib/_internal/enums/index.d.ts +1 -0
  21. package/lib/_internal/enums/retail-subscription-group.enum.d.ts +6 -0
  22. package/lib/_internal/index.d.ts +3 -0
  23. package/lib/_internal/interfaces/avalara.interface.d.ts +29 -0
  24. package/lib/_internal/interfaces/index.d.ts +3 -0
  25. package/lib/_internal/interfaces/retail-subscription-group.interface.d.ts +12 -0
  26. package/lib/_internal/interfaces/subscription-preset.interface.d.ts +1 -0
  27. package/lib/_internal/interfaces/vendor-split.interface.d.ts +18 -0
  28. package/lib/_internal/objects/avalara.d.ts +55 -0
  29. package/lib/_internal/objects/index.d.ts +3 -0
  30. package/lib/_internal/objects/retail-subscription-group.d.ts +23 -0
  31. package/lib/_internal/objects/subscription-preset.d.ts +1 -0
  32. package/lib/_internal/objects/vendor-split.d.ts +35 -0
  33. package/lib/_internal/retail-subscription-group.api.service.d.ts +13 -0
  34. package/lib/_internal/vendor-split.api.service.d.ts +14 -0
  35. package/package.json +1 -1
@@ -747,6 +747,20 @@ var CreditNoteReason;
747
747
  CreditNoteReason[CreditNoteReason["CREDIT_NOTE_REASON_OTHER"] = 4] = "CREDIT_NOTE_REASON_OTHER";
748
748
  })(CreditNoteReason || (CreditNoteReason = {}));
749
749
 
750
+ // *********************************
751
+ // Code generated by sdkgen
752
+ // DO NOT EDIT!.
753
+ //
754
+ // Enums.
755
+ // *********************************
756
+ var DisplayOption;
757
+ (function (DisplayOption) {
758
+ DisplayOption[DisplayOption["DISPLAY_OPTION_INVALID"] = 0] = "DISPLAY_OPTION_INVALID";
759
+ DisplayOption[DisplayOption["SHOW_CONTENT_SHOW_PRICES"] = 1] = "SHOW_CONTENT_SHOW_PRICES";
760
+ DisplayOption[DisplayOption["SHOW_CONTENT_HIDE_PRICES"] = 2] = "SHOW_CONTENT_HIDE_PRICES";
761
+ DisplayOption[DisplayOption["HIDE_CONTENT_HIDE_PRICES"] = 3] = "HIDE_CONTENT_HIDE_PRICES";
762
+ })(DisplayOption || (DisplayOption = {}));
763
+
750
764
  // *********************************
751
765
  // Code generated by sdkgen
752
766
  // DO NOT EDIT!.
@@ -754,7 +768,7 @@ var CreditNoteReason;
754
768
  // Enums Index.
755
769
  // *********************************
756
770
 
757
- function enumStringToValue$J(enumRef, value) {
771
+ function enumStringToValue$M(enumRef, value) {
758
772
  if (typeof value === 'number') {
759
773
  return value;
760
774
  }
@@ -847,7 +861,7 @@ class PagedResponseMetadata {
847
861
  }
848
862
  }
849
863
 
850
- function enumStringToValue$I(enumRef, value) {
864
+ function enumStringToValue$L(enumRef, value) {
851
865
  if (typeof value === 'number') {
852
866
  return value;
853
867
  }
@@ -874,7 +888,7 @@ class FieldMask {
874
888
  }
875
889
  }
876
890
 
877
- function enumStringToValue$H(enumRef, value) {
891
+ function enumStringToValue$K(enumRef, value) {
878
892
  if (typeof value === 'number') {
879
893
  return value;
880
894
  }
@@ -910,7 +924,7 @@ class Commitment {
910
924
  }
911
925
  }
912
926
 
913
- function enumStringToValue$G(enumRef, value) {
927
+ function enumStringToValue$J(enumRef, value) {
914
928
  if (typeof value === 'number') {
915
929
  return value;
916
930
  }
@@ -950,10 +964,10 @@ class Fee {
950
964
  let m = new Fee();
951
965
  m = Object.assign(m, proto);
952
966
  if (proto.amountType) {
953
- m.amountType = enumStringToValue$G(FeeAmountType, proto.amountType);
967
+ m.amountType = enumStringToValue$J(FeeAmountType, proto.amountType);
954
968
  }
955
969
  if (proto.feeType) {
956
- m.feeType = enumStringToValue$G(FeeType, proto.feeType);
970
+ m.feeType = enumStringToValue$J(FeeType, proto.feeType);
957
971
  }
958
972
  return m;
959
973
  }
@@ -978,7 +992,7 @@ class Fee {
978
992
  }
979
993
  }
980
994
 
981
- function enumStringToValue$F(enumRef, value) {
995
+ function enumStringToValue$I(enumRef, value) {
982
996
  if (typeof value === 'number') {
983
997
  return value;
984
998
  }
@@ -1015,7 +1029,7 @@ class CreatePricingPlanRequest {
1015
1029
  let m = new CreatePricingPlanRequest();
1016
1030
  m = Object.assign(m, proto);
1017
1031
  if (proto.defaultBillingStrategy) {
1018
- m.defaultBillingStrategy = enumStringToValue$F(BillingStrategy, proto.defaultBillingStrategy);
1032
+ m.defaultBillingStrategy = enumStringToValue$I(BillingStrategy, proto.defaultBillingStrategy);
1019
1033
  }
1020
1034
  return m;
1021
1035
  }
@@ -1104,7 +1118,7 @@ class PricingPlan {
1104
1118
  let m = new PricingPlan();
1105
1119
  m = Object.assign(m, proto);
1106
1120
  if (proto.defaultBillingStrategy) {
1107
- m.defaultBillingStrategy = enumStringToValue$F(BillingStrategy, proto.defaultBillingStrategy);
1121
+ m.defaultBillingStrategy = enumStringToValue$I(BillingStrategy, proto.defaultBillingStrategy);
1108
1122
  }
1109
1123
  return m;
1110
1124
  }
@@ -1133,7 +1147,7 @@ class PricingPlanProductPricing {
1133
1147
  let m = new PricingPlanProductPricing();
1134
1148
  m = Object.assign(m, proto);
1135
1149
  if (proto.type) {
1136
- m.type = enumStringToValue$F(ProductPricingType, proto.type);
1150
+ m.type = enumStringToValue$I(ProductPricingType, proto.type);
1137
1151
  }
1138
1152
  if (proto.rules) {
1139
1153
  m.rules = proto.rules.map(ProductPricingRule.fromProto);
@@ -1142,7 +1156,7 @@ class PricingPlanProductPricing {
1142
1156
  m.setupFee = parseInt(proto.setupFee, 10);
1143
1157
  }
1144
1158
  if (proto.frequency) {
1145
- m.frequency = enumStringToValue$F(Frequency, proto.frequency);
1159
+ m.frequency = enumStringToValue$I(Frequency, proto.frequency);
1146
1160
  }
1147
1161
  if (proto.fees) {
1148
1162
  m.fees = proto.fees.map(Fee.fromProto);
@@ -1227,7 +1241,7 @@ class UpdatePricingPlanRequest {
1227
1241
  m.fieldMask = FieldMask.fromProto(proto.fieldMask);
1228
1242
  }
1229
1243
  if (proto.defaultBillingStrategy) {
1230
- m.defaultBillingStrategy = enumStringToValue$F(BillingStrategy, proto.defaultBillingStrategy);
1244
+ m.defaultBillingStrategy = enumStringToValue$I(BillingStrategy, proto.defaultBillingStrategy);
1231
1245
  }
1232
1246
  return m;
1233
1247
  }
@@ -1272,7 +1286,7 @@ class UpdatePricingPlanResponse {
1272
1286
  }
1273
1287
  }
1274
1288
 
1275
- function enumStringToValue$E(enumRef, value) {
1289
+ function enumStringToValue$H(enumRef, value) {
1276
1290
  if (typeof value === 'number') {
1277
1291
  return value;
1278
1292
  }
@@ -1309,16 +1323,16 @@ class ProductPricing {
1309
1323
  let m = new ProductPricing();
1310
1324
  m = Object.assign(m, proto);
1311
1325
  if (proto.strategy) {
1312
- m.strategy = enumStringToValue$E(BillingStrategy, proto.strategy);
1326
+ m.strategy = enumStringToValue$H(BillingStrategy, proto.strategy);
1313
1327
  }
1314
1328
  if (proto.pricingType) {
1315
- m.pricingType = enumStringToValue$E(ProductPricingType, proto.pricingType);
1329
+ m.pricingType = enumStringToValue$H(ProductPricingType, proto.pricingType);
1316
1330
  }
1317
1331
  if (proto.currency) {
1318
- m.currency = enumStringToValue$E(Currency, proto.currency);
1332
+ m.currency = enumStringToValue$H(Currency, proto.currency);
1319
1333
  }
1320
1334
  if (proto.frequency) {
1321
- m.frequency = enumStringToValue$E(Frequency, proto.frequency);
1335
+ m.frequency = enumStringToValue$H(Frequency, proto.frequency);
1322
1336
  }
1323
1337
  if (proto.pricingRules) {
1324
1338
  m.pricingRules = proto.pricingRules.map(ProductPricingRule.fromProto);
@@ -1389,7 +1403,7 @@ class WholesaleCostItemRequest {
1389
1403
  m.quantity = parseInt(proto.quantity, 10);
1390
1404
  }
1391
1405
  if (proto.frequency) {
1392
- m.frequency = enumStringToValue$E(Frequency, proto.frequency);
1406
+ m.frequency = enumStringToValue$H(Frequency, proto.frequency);
1393
1407
  }
1394
1408
  return m;
1395
1409
  }
@@ -1414,7 +1428,7 @@ class WholesaleCostItemRequest {
1414
1428
  }
1415
1429
  }
1416
1430
 
1417
- function enumStringToValue$D(enumRef, value) {
1431
+ function enumStringToValue$G(enumRef, value) {
1418
1432
  if (typeof value === 'number') {
1419
1433
  return value;
1420
1434
  }
@@ -1425,7 +1439,7 @@ class SubscribeValidation {
1425
1439
  let m = new SubscribeValidation();
1426
1440
  m = Object.assign(m, proto);
1427
1441
  if (proto.status) {
1428
- m.status = enumStringToValue$D(SubscribeValidationStatus, proto.status);
1442
+ m.status = enumStringToValue$G(SubscribeValidationStatus, proto.status);
1429
1443
  }
1430
1444
  return m;
1431
1445
  }
@@ -1444,7 +1458,7 @@ class SubscribeValidation {
1444
1458
  }
1445
1459
  }
1446
1460
 
1447
- function enumStringToValue$C(enumRef, value) {
1461
+ function enumStringToValue$F(enumRef, value) {
1448
1462
  if (typeof value === 'number') {
1449
1463
  return value;
1450
1464
  }
@@ -1571,7 +1585,7 @@ class ChangeFrequencyRequest {
1571
1585
  let m = new ChangeFrequencyRequest();
1572
1586
  m = Object.assign(m, proto);
1573
1587
  if (proto.frequency) {
1574
- m.frequency = enumStringToValue$C(Frequency, proto.frequency);
1588
+ m.frequency = enumStringToValue$F(Frequency, proto.frequency);
1575
1589
  }
1576
1590
  return m;
1577
1591
  }
@@ -1647,7 +1661,7 @@ class CreateSubscriptionRequest {
1647
1661
  m.proratedTo = new Date(proto.proratedTo);
1648
1662
  }
1649
1663
  if (proto.renewalState) {
1650
- m.renewalState = enumStringToValue$C(RenewalState, proto.renewalState);
1664
+ m.renewalState = enumStringToValue$F(RenewalState, proto.renewalState);
1651
1665
  }
1652
1666
  if (proto.customUnitPrice) {
1653
1667
  m.customUnitPrice = parseInt(proto.customUnitPrice, 10);
@@ -1656,16 +1670,16 @@ class CreateSubscriptionRequest {
1656
1670
  m.alignWith = AlignmentSubscription.fromProto(proto.alignWith);
1657
1671
  }
1658
1672
  if (proto.frequency) {
1659
- m.frequency = enumStringToValue$C(Frequency, proto.frequency);
1673
+ m.frequency = enumStringToValue$F(Frequency, proto.frequency);
1660
1674
  }
1661
1675
  if (proto.retailAmount) {
1662
1676
  m.retailAmount = parseInt(proto.retailAmount, 10);
1663
1677
  }
1664
1678
  if (proto.retailFrequency) {
1665
- m.retailFrequency = enumStringToValue$C(Frequency, proto.retailFrequency);
1679
+ m.retailFrequency = enumStringToValue$F(Frequency, proto.retailFrequency);
1666
1680
  }
1667
1681
  if (proto.consumer) {
1668
- m.consumer = enumStringToValue$C(Consumer, proto.consumer);
1682
+ m.consumer = enumStringToValue$F(Consumer, proto.consumer);
1669
1683
  }
1670
1684
  if (proto.renewalStart) {
1671
1685
  m.renewalStart = new Date(proto.renewalStart);
@@ -1939,7 +1953,7 @@ class Subscription {
1939
1953
  m.billingStart = new Date(proto.billingStart);
1940
1954
  }
1941
1955
  if (proto.renewalState) {
1942
- m.renewalState = enumStringToValue$C(RenewalState, proto.renewalState);
1956
+ m.renewalState = enumStringToValue$F(RenewalState, proto.renewalState);
1943
1957
  }
1944
1958
  if (proto.proratedTo) {
1945
1959
  m.proratedTo = new Date(proto.proratedTo);
@@ -1951,16 +1965,16 @@ class Subscription {
1951
1965
  m.alignWith = AlignmentSubscription.fromProto(proto.alignWith);
1952
1966
  }
1953
1967
  if (proto.frequency) {
1954
- m.frequency = enumStringToValue$C(Frequency, proto.frequency);
1968
+ m.frequency = enumStringToValue$F(Frequency, proto.frequency);
1955
1969
  }
1956
1970
  if (proto.retailAmount) {
1957
1971
  m.retailAmount = parseInt(proto.retailAmount, 10);
1958
1972
  }
1959
1973
  if (proto.retailFrequency) {
1960
- m.retailFrequency = enumStringToValue$C(Frequency, proto.retailFrequency);
1974
+ m.retailFrequency = enumStringToValue$F(Frequency, proto.retailFrequency);
1961
1975
  }
1962
1976
  if (proto.consumer) {
1963
- m.consumer = enumStringToValue$C(Consumer, proto.consumer);
1977
+ m.consumer = enumStringToValue$F(Consumer, proto.consumer);
1964
1978
  }
1965
1979
  if (proto.renewalStart) {
1966
1980
  m.renewalStart = new Date(proto.renewalStart);
@@ -2052,7 +2066,7 @@ class CanCreateSubscriptionsRequestSubscriptionItem {
2052
2066
  let m = new CanCreateSubscriptionsRequestSubscriptionItem();
2053
2067
  m = Object.assign(m, proto);
2054
2068
  if (proto.frequency) {
2055
- m.frequency = enumStringToValue$C(Frequency, proto.frequency);
2069
+ m.frequency = enumStringToValue$F(Frequency, proto.frequency);
2056
2070
  }
2057
2071
  if (proto.quantity) {
2058
2072
  m.quantity = parseInt(proto.quantity, 10);
@@ -2106,7 +2120,7 @@ class ValidateResponse {
2106
2120
  }
2107
2121
  }
2108
2122
 
2109
- function enumStringToValue$B(enumRef, value) {
2123
+ function enumStringToValue$E(enumRef, value) {
2110
2124
  if (typeof value === 'number') {
2111
2125
  return value;
2112
2126
  }
@@ -2216,7 +2230,7 @@ class BillableItem {
2216
2230
  m.updated = new Date(proto.updated);
2217
2231
  }
2218
2232
  if (proto.frequency) {
2219
- m.frequency = enumStringToValue$B(Frequency, proto.frequency);
2233
+ m.frequency = enumStringToValue$E(Frequency, proto.frequency);
2220
2234
  }
2221
2235
  if (proto.nextRenewal) {
2222
2236
  m.nextRenewal = new Date(proto.nextRenewal);
@@ -2228,7 +2242,7 @@ class BillableItem {
2228
2242
  m.customUnitPrice = parseInt(proto.customUnitPrice, 10);
2229
2243
  }
2230
2244
  if (proto.retailFrequency) {
2231
- m.retailFrequency = enumStringToValue$B(Frequency, proto.retailFrequency);
2245
+ m.retailFrequency = enumStringToValue$E(Frequency, proto.retailFrequency);
2232
2246
  }
2233
2247
  if (proto.nextRetailRenewal) {
2234
2248
  m.nextRetailRenewal = new Date(proto.nextRetailRenewal);
@@ -2237,7 +2251,7 @@ class BillableItem {
2237
2251
  m.retailUnitPrice = parseInt(proto.retailUnitPrice, 10);
2238
2252
  }
2239
2253
  if (proto.status) {
2240
- m.status = enumStringToValue$B(SubscriptionStatus, proto.status);
2254
+ m.status = enumStringToValue$E(SubscriptionStatus, proto.status);
2241
2255
  }
2242
2256
  if (proto.price) {
2243
2257
  m.price = ProductPricing.fromProto(proto.price);
@@ -2246,10 +2260,10 @@ class BillableItem {
2246
2260
  m.deleted = new Date(proto.deleted);
2247
2261
  }
2248
2262
  if (proto.source) {
2249
- m.source = enumStringToValue$B(Source, proto.source);
2263
+ m.source = enumStringToValue$E(Source, proto.source);
2250
2264
  }
2251
2265
  if (proto.consumer) {
2252
- m.consumer = enumStringToValue$B(Consumer, proto.consumer);
2266
+ m.consumer = enumStringToValue$E(Consumer, proto.consumer);
2253
2267
  }
2254
2268
  if (proto.billingCycleAnchor) {
2255
2269
  m.billingCycleAnchor = new Date(proto.billingCycleAnchor);
@@ -2540,7 +2554,7 @@ class ExportSubscriptionsRequest {
2540
2554
  m.filters = ListSubscriptionsRequestFilters.fromProto(proto.filters);
2541
2555
  }
2542
2556
  if (proto.consumer) {
2543
- m.consumer = enumStringToValue$B(Consumer, proto.consumer);
2557
+ m.consumer = enumStringToValue$E(Consumer, proto.consumer);
2544
2558
  }
2545
2559
  return m;
2546
2560
  }
@@ -2592,7 +2606,7 @@ class ListSubscriptionsRequestFilters {
2592
2606
  let m = new ListSubscriptionsRequestFilters();
2593
2607
  m = Object.assign(m, proto);
2594
2608
  if (proto.status) {
2595
- m.status = enumStringToValue$B(SubscriptionStatus, proto.status);
2609
+ m.status = enumStringToValue$E(SubscriptionStatus, proto.status);
2596
2610
  }
2597
2611
  if (proto.expiredDateGte) {
2598
2612
  m.expiredDateGte = new Date(proto.expiredDateGte);
@@ -2601,7 +2615,7 @@ class ListSubscriptionsRequestFilters {
2601
2615
  m.expiredDateLte = new Date(proto.expiredDateLte);
2602
2616
  }
2603
2617
  if (proto.frequencies) {
2604
- m.frequencies = proto.frequencies.map((v) => enumStringToValue$B(Frequency, v));
2618
+ m.frequencies = proto.frequencies.map((v) => enumStringToValue$E(Frequency, v));
2605
2619
  }
2606
2620
  return m;
2607
2621
  }
@@ -3093,7 +3107,7 @@ class UpdateSubscriptionResponse {
3093
3107
  }
3094
3108
  }
3095
3109
 
3096
- function enumStringToValue$A(enumRef, value) {
3110
+ function enumStringToValue$D(enumRef, value) {
3097
3111
  if (typeof value === 'number') {
3098
3112
  return value;
3099
3113
  }
@@ -3104,7 +3118,7 @@ class AppliedDiscount {
3104
3118
  let m = new AppliedDiscount();
3105
3119
  m = Object.assign(m, proto);
3106
3120
  if (proto.type) {
3107
- m.type = enumStringToValue$A(DiscountType, proto.type);
3121
+ m.type = enumStringToValue$D(DiscountType, proto.type);
3108
3122
  }
3109
3123
  if (proto.value) {
3110
3124
  m.value = parseInt(proto.value, 10);
@@ -3141,7 +3155,7 @@ class AppliedDiscount {
3141
3155
  }
3142
3156
  }
3143
3157
 
3144
- function enumStringToValue$z(enumRef, value) {
3158
+ function enumStringToValue$C(enumRef, value) {
3145
3159
  if (typeof value === 'number') {
3146
3160
  return value;
3147
3161
  }
@@ -3199,7 +3213,7 @@ class BundleItem {
3199
3213
  let m = new BundleItem();
3200
3214
  m = Object.assign(m, proto);
3201
3215
  if (proto.discountType) {
3202
- m.discountType = enumStringToValue$z(DiscountType, proto.discountType);
3216
+ m.discountType = enumStringToValue$C(DiscountType, proto.discountType);
3203
3217
  }
3204
3218
  if (proto.discountAmount) {
3205
3219
  m.discountAmount = parseInt(proto.discountAmount, 10);
@@ -3457,7 +3471,7 @@ class BundlePricingPriceAndFrequency {
3457
3471
  let m = new BundlePricingPriceAndFrequency();
3458
3472
  m = Object.assign(m, proto);
3459
3473
  if (proto.frequency) {
3460
- m.frequency = enumStringToValue$z(Frequency, proto.frequency);
3474
+ m.frequency = enumStringToValue$C(Frequency, proto.frequency);
3461
3475
  }
3462
3476
  if (proto.effectivePrice) {
3463
3477
  m.effectivePrice = parseInt(proto.effectivePrice, 10);
@@ -3529,7 +3543,7 @@ class UpsertBundleRequest {
3529
3543
  }
3530
3544
  }
3531
3545
 
3532
- function enumStringToValue$y(enumRef, value) {
3546
+ function enumStringToValue$B(enumRef, value) {
3533
3547
  if (typeof value === 'number') {
3534
3548
  return value;
3535
3549
  }
@@ -3546,7 +3560,7 @@ class Contract {
3546
3560
  m.created = new Date(proto.created);
3547
3561
  }
3548
3562
  if (proto.currency) {
3549
- m.currency = enumStringToValue$y(Currency, proto.currency);
3563
+ m.currency = enumStringToValue$B(Currency, proto.currency);
3550
3564
  }
3551
3565
  if (proto.signed) {
3552
3566
  m.signed = new Date(proto.signed);
@@ -3567,7 +3581,7 @@ class Contract {
3567
3581
  m.end = new Date(proto.end);
3568
3582
  }
3569
3583
  if (proto.subscriptionUpdateStatus) {
3570
- m.subscriptionUpdateStatus = enumStringToValue$y(ContractSubscriptionStatus, proto.subscriptionUpdateStatus);
3584
+ m.subscriptionUpdateStatus = enumStringToValue$B(ContractSubscriptionStatus, proto.subscriptionUpdateStatus);
3571
3585
  }
3572
3586
  return m;
3573
3587
  }
@@ -3767,7 +3781,7 @@ class GetMerchantWholesaleCurrencyResponse {
3767
3781
  let m = new GetMerchantWholesaleCurrencyResponse();
3768
3782
  m = Object.assign(m, proto);
3769
3783
  if (proto.currency) {
3770
- m.currency = enumStringToValue$y(Currency, proto.currency);
3784
+ m.currency = enumStringToValue$B(Currency, proto.currency);
3771
3785
  }
3772
3786
  return m;
3773
3787
  }
@@ -4022,7 +4036,7 @@ class UpdateContractSubscriptionRequest {
4022
4036
  let m = new UpdateContractSubscriptionRequest();
4023
4037
  m = Object.assign(m, proto);
4024
4038
  if (proto.frequency) {
4025
- m.frequency = enumStringToValue$y(Frequency, proto.frequency);
4039
+ m.frequency = enumStringToValue$B(Frequency, proto.frequency);
4026
4040
  }
4027
4041
  return m;
4028
4042
  }
@@ -4047,7 +4061,7 @@ class UpdateContractSubscriptionRequest {
4047
4061
  }
4048
4062
  }
4049
4063
 
4050
- function enumStringToValue$x(enumRef, value) {
4064
+ function enumStringToValue$A(enumRef, value) {
4051
4065
  if (typeof value === 'number') {
4052
4066
  return value;
4053
4067
  }
@@ -4064,7 +4078,7 @@ class CustomerSummary {
4064
4078
  m.purchaseItemTotal = parseInt(proto.purchaseItemTotal, 10);
4065
4079
  }
4066
4080
  if (proto.currency) {
4067
- m.currency = enumStringToValue$x(Currency, proto.currency);
4081
+ m.currency = enumStringToValue$A(Currency, proto.currency);
4068
4082
  }
4069
4083
  return m;
4070
4084
  }
@@ -4150,7 +4164,7 @@ class GetMultiCustomerSummariesResponse {
4150
4164
  }
4151
4165
  }
4152
4166
 
4153
- function enumStringToValue$w(enumRef, value) {
4167
+ function enumStringToValue$z(enumRef, value) {
4154
4168
  if (typeof value === 'number') {
4155
4169
  return value;
4156
4170
  }
@@ -4310,7 +4324,7 @@ class SetDefaultBankAccountRequest {
4310
4324
  }
4311
4325
  }
4312
4326
 
4313
- function enumStringToValue$v(enumRef, value) {
4327
+ function enumStringToValue$y(enumRef, value) {
4314
4328
  if (typeof value === 'number') {
4315
4329
  return value;
4316
4330
  }
@@ -4321,7 +4335,7 @@ class ProductSummaryDiscount {
4321
4335
  let m = new ProductSummaryDiscount();
4322
4336
  m = Object.assign(m, proto);
4323
4337
  if (proto.type) {
4324
- m.type = enumStringToValue$v(ProductSummaryDiscountDiscountType, proto.type);
4338
+ m.type = enumStringToValue$y(ProductSummaryDiscountDiscountType, proto.type);
4325
4339
  }
4326
4340
  if (proto.value) {
4327
4341
  m.value = parseInt(proto.value, 10);
@@ -4615,7 +4629,7 @@ class Pricing {
4615
4629
  let m = new Pricing();
4616
4630
  m = Object.assign(m, proto);
4617
4631
  if (proto.type) {
4618
- m.type = enumStringToValue$v(PricingRuleType, proto.type);
4632
+ m.type = enumStringToValue$y(PricingRuleType, proto.type);
4619
4633
  }
4620
4634
  if (proto.rules) {
4621
4635
  m.rules = proto.rules.map(PricingRule.fromProto);
@@ -4659,13 +4673,13 @@ class ProductSummary {
4659
4673
  m.discounts = proto.discounts.map(ProductSummaryDiscount.fromProto);
4660
4674
  }
4661
4675
  if (proto.billingStrategy) {
4662
- m.billingStrategy = enumStringToValue$v(ProductSummaryBillingStrategy, proto.billingStrategy);
4676
+ m.billingStrategy = enumStringToValue$y(ProductSummaryBillingStrategy, proto.billingStrategy);
4663
4677
  }
4664
4678
  if (proto.productType) {
4665
- m.productType = enumStringToValue$v(ProductSummaryProductType, proto.productType);
4679
+ m.productType = enumStringToValue$y(ProductSummaryProductType, proto.productType);
4666
4680
  }
4667
4681
  if (proto.frequency) {
4668
- m.frequency = enumStringToValue$v(Frequency, proto.frequency);
4682
+ m.frequency = enumStringToValue$y(Frequency, proto.frequency);
4669
4683
  }
4670
4684
  if (proto.volumeCommitment) {
4671
4685
  m.volumeCommitment = parseInt(proto.volumeCommitment, 10);
@@ -4846,7 +4860,7 @@ class ListSubscriptionRetentionByGroupResponseSubscriptionRetentionByGroup {
4846
4860
  }
4847
4861
  }
4848
4862
 
4849
- function enumStringToValue$u(enumRef, value) {
4863
+ function enumStringToValue$x(enumRef, value) {
4850
4864
  if (typeof value === 'number') {
4851
4865
  return value;
4852
4866
  }
@@ -4857,7 +4871,7 @@ class CreateDiscountRequest {
4857
4871
  let m = new CreateDiscountRequest();
4858
4872
  m = Object.assign(m, proto);
4859
4873
  if (proto.discountType) {
4860
- m.discountType = enumStringToValue$u(DiscountType, proto.discountType);
4874
+ m.discountType = enumStringToValue$x(DiscountType, proto.discountType);
4861
4875
  }
4862
4876
  if (proto.amount) {
4863
4877
  m.amount = parseInt(proto.amount, 10);
@@ -4869,7 +4883,7 @@ class CreateDiscountRequest {
4869
4883
  m.end = new Date(proto.end);
4870
4884
  }
4871
4885
  if (proto.consumer) {
4872
- m.consumer = enumStringToValue$u(Consumer, proto.consumer);
4886
+ m.consumer = enumStringToValue$x(Consumer, proto.consumer);
4873
4887
  }
4874
4888
  if (proto.numberOfBillingPeriods) {
4875
4889
  m.numberOfBillingPeriods = parseInt(proto.numberOfBillingPeriods, 10);
@@ -4951,7 +4965,7 @@ class Discount {
4951
4965
  m.discountId = parseInt(proto.discountId, 10);
4952
4966
  }
4953
4967
  if (proto.discountType) {
4954
- m.discountType = enumStringToValue$u(DiscountType, proto.discountType);
4968
+ m.discountType = enumStringToValue$x(DiscountType, proto.discountType);
4955
4969
  }
4956
4970
  if (proto.amount) {
4957
4971
  m.amount = parseInt(proto.amount, 10);
@@ -4969,7 +4983,7 @@ class Discount {
4969
4983
  m.updated = new Date(proto.updated);
4970
4984
  }
4971
4985
  if (proto.consumer) {
4972
- m.consumer = enumStringToValue$u(Consumer, proto.consumer);
4986
+ m.consumer = enumStringToValue$x(Consumer, proto.consumer);
4973
4987
  }
4974
4988
  if (proto.numberOfBillingPeriods) {
4975
4989
  m.numberOfBillingPeriods = parseInt(proto.numberOfBillingPeriods, 10);
@@ -5066,7 +5080,7 @@ class ListDiscountsRequestFilters {
5066
5080
  m.expiry = new Date(proto.expiry);
5067
5081
  }
5068
5082
  if (proto.consumers) {
5069
- m.consumers = proto.consumers.map((v) => enumStringToValue$u(Consumer, v));
5083
+ m.consumers = proto.consumers.map((v) => enumStringToValue$x(Consumer, v));
5070
5084
  }
5071
5085
  return m;
5072
5086
  }
@@ -5165,7 +5179,7 @@ class UpdateDiscountRequest {
5165
5179
  let m = new UpdateDiscountRequest();
5166
5180
  m = Object.assign(m, proto);
5167
5181
  if (proto.discountType) {
5168
- m.discountType = enumStringToValue$u(DiscountType, proto.discountType);
5182
+ m.discountType = enumStringToValue$x(DiscountType, proto.discountType);
5169
5183
  }
5170
5184
  if (proto.amount) {
5171
5185
  m.amount = parseInt(proto.amount, 10);
@@ -5226,7 +5240,7 @@ class UpdateDiscountRequest {
5226
5240
  }
5227
5241
  }
5228
5242
 
5229
- function enumStringToValue$t(enumRef, value) {
5243
+ function enumStringToValue$w(enumRef, value) {
5230
5244
  if (typeof value === 'number') {
5231
5245
  return value;
5232
5246
  }
@@ -5268,7 +5282,7 @@ class AppliedTaxRate {
5268
5282
  }
5269
5283
  }
5270
5284
 
5271
- function enumStringToValue$s(enumRef, value) {
5285
+ function enumStringToValue$v(enumRef, value) {
5272
5286
  if (typeof value === 'number') {
5273
5287
  return value;
5274
5288
  }
@@ -5760,7 +5774,7 @@ class UpdateTaxRequest {
5760
5774
  }
5761
5775
  }
5762
5776
 
5763
- function enumStringToValue$r(enumRef, value) {
5777
+ function enumStringToValue$u(enumRef, value) {
5764
5778
  if (typeof value === 'number') {
5765
5779
  return value;
5766
5780
  }
@@ -5837,7 +5851,7 @@ class AppliedBundleItem {
5837
5851
  }
5838
5852
  }
5839
5853
 
5840
- function enumStringToValue$q(enumRef, value) {
5854
+ function enumStringToValue$t(enumRef, value) {
5841
5855
  if (typeof value === 'number') {
5842
5856
  return value;
5843
5857
  }
@@ -5943,10 +5957,10 @@ class PaymentCard {
5943
5957
  let m = new PaymentCard();
5944
5958
  m = Object.assign(m, proto);
5945
5959
  if (proto.cardType) {
5946
- m.cardType = enumStringToValue$q(PaymentCardCARD_TYPE, proto.cardType);
5960
+ m.cardType = enumStringToValue$t(PaymentCardCARD_TYPE, proto.cardType);
5947
5961
  }
5948
5962
  if (proto.fundingType) {
5949
- m.fundingType = enumStringToValue$q(PaymentCardFUNDING_TYPE, proto.fundingType);
5963
+ m.fundingType = enumStringToValue$t(PaymentCardFUNDING_TYPE, proto.fundingType);
5950
5964
  }
5951
5965
  return m;
5952
5966
  }
@@ -6053,7 +6067,7 @@ class UpdatePaymentCardRequest {
6053
6067
  }
6054
6068
  }
6055
6069
 
6056
- function enumStringToValue$p(enumRef, value) {
6070
+ function enumStringToValue$s(enumRef, value) {
6057
6071
  if (typeof value === 'number') {
6058
6072
  return value;
6059
6073
  }
@@ -6156,7 +6170,7 @@ class PaymentMethod {
6156
6170
  let m = new PaymentMethod();
6157
6171
  m = Object.assign(m, proto);
6158
6172
  if (proto.type) {
6159
- m.type = enumStringToValue$p(PaymentMethodType, proto.type);
6173
+ m.type = enumStringToValue$s(PaymentMethodType, proto.type);
6160
6174
  }
6161
6175
  if (proto.card) {
6162
6176
  m.card = PaymentCard.fromProto(proto.card);
@@ -6196,7 +6210,7 @@ class PaymentMethod {
6196
6210
  }
6197
6211
  }
6198
6212
 
6199
- function enumStringToValue$o(enumRef, value) {
6213
+ function enumStringToValue$r(enumRef, value) {
6200
6214
  if (typeof value === 'number') {
6201
6215
  return value;
6202
6216
  }
@@ -6291,7 +6305,7 @@ class ListRecurringInvoicesFiltersDetailedInterval {
6291
6305
  let m = new ListRecurringInvoicesFiltersDetailedInterval();
6292
6306
  m = Object.assign(m, proto);
6293
6307
  if (proto.interval) {
6294
- m.interval = enumStringToValue$o(Interval, proto.interval);
6308
+ m.interval = enumStringToValue$r(Interval, proto.interval);
6295
6309
  }
6296
6310
  if (proto.intervalCount) {
6297
6311
  m.intervalCount = parseInt(proto.intervalCount, 10);
@@ -6340,7 +6354,7 @@ class ListRecurringInvoicesFilters {
6340
6354
  let m = new ListRecurringInvoicesFilters();
6341
6355
  m = Object.assign(m, proto);
6342
6356
  if (proto.statuses) {
6343
- m.statuses = proto.statuses.map((v) => enumStringToValue$o(RecurringInvoiceStatus, v));
6357
+ m.statuses = proto.statuses.map((v) => enumStringToValue$r(RecurringInvoiceStatus, v));
6344
6358
  }
6345
6359
  if (proto.intervals) {
6346
6360
  m.intervals = proto.intervals.map(ListRecurringInvoicesFiltersDetailedInterval.fromProto);
@@ -6445,7 +6459,7 @@ class RecurringInvoice {
6445
6459
  m.updated = new Date(proto.updated);
6446
6460
  }
6447
6461
  if (proto.status) {
6448
- m.status = enumStringToValue$o(RecurringInvoiceStatus, proto.status);
6462
+ m.status = enumStringToValue$r(RecurringInvoiceStatus, proto.status);
6449
6463
  }
6450
6464
  if (proto.nextIssue) {
6451
6465
  m.nextIssue = new Date(proto.nextIssue);
@@ -6454,16 +6468,16 @@ class RecurringInvoice {
6454
6468
  m.intervalCount = parseInt(proto.intervalCount, 10);
6455
6469
  }
6456
6470
  if (proto.interval) {
6457
- m.interval = enumStringToValue$o(Interval, proto.interval);
6471
+ m.interval = enumStringToValue$r(Interval, proto.interval);
6458
6472
  }
6459
6473
  if (proto.repeatOnDayOfMonth) {
6460
6474
  m.repeatOnDayOfMonth = parseInt(proto.repeatOnDayOfMonth, 10);
6461
6475
  }
6462
6476
  if (proto.collectionMethod) {
6463
- m.collectionMethod = enumStringToValue$o(CollectionMethod, proto.collectionMethod);
6477
+ m.collectionMethod = enumStringToValue$r(CollectionMethod, proto.collectionMethod);
6464
6478
  }
6465
6479
  if (proto.paymentProcessor) {
6466
- m.paymentProcessor = enumStringToValue$o(PaymentProcessor, proto.paymentProcessor);
6480
+ m.paymentProcessor = enumStringToValue$r(PaymentProcessor, proto.paymentProcessor);
6467
6481
  }
6468
6482
  if (proto.items) {
6469
6483
  m.items = proto.items.map(RecurringInvoiceItem.fromProto);
@@ -6481,7 +6495,7 @@ class RecurringInvoice {
6481
6495
  m.netD = parseInt(proto.netD, 10);
6482
6496
  }
6483
6497
  if (proto.paymentMethodTypes) {
6484
- m.paymentMethodTypes = proto.paymentMethodTypes.map((v) => enumStringToValue$o(PaymentMethodType, v));
6498
+ m.paymentMethodTypes = proto.paymentMethodTypes.map((v) => enumStringToValue$r(PaymentMethodType, v));
6485
6499
  }
6486
6500
  return m;
6487
6501
  }
@@ -6688,7 +6702,7 @@ class UpdateRecurringInvoiceRequest {
6688
6702
  }
6689
6703
  }
6690
6704
 
6691
- function enumStringToValue$n(enumRef, value) {
6705
+ function enumStringToValue$q(enumRef, value) {
6692
6706
  if (typeof value === 'number') {
6693
6707
  return value;
6694
6708
  }
@@ -6833,7 +6847,7 @@ class AppliedCreditNote {
6833
6847
  m.amount = parseInt(proto.amount, 10);
6834
6848
  }
6835
6849
  if (proto.creditNoteType) {
6836
- m.creditNoteType = enumStringToValue$n(CreditNoteType, proto.creditNoteType);
6850
+ m.creditNoteType = enumStringToValue$q(CreditNoteType, proto.creditNoteType);
6837
6851
  }
6838
6852
  return m;
6839
6853
  }
@@ -6897,10 +6911,10 @@ class CreateInvoiceRequest {
6897
6911
  m.items = proto.items.map(InvoiceItem.fromProto);
6898
6912
  }
6899
6913
  if (proto.collectionMethod) {
6900
- m.collectionMethod = enumStringToValue$n(CollectionMethod, proto.collectionMethod);
6914
+ m.collectionMethod = enumStringToValue$q(CollectionMethod, proto.collectionMethod);
6901
6915
  }
6902
6916
  if (proto.origin) {
6903
- m.origin = enumStringToValue$n(Origin, proto.origin);
6917
+ m.origin = enumStringToValue$q(Origin, proto.origin);
6904
6918
  }
6905
6919
  if (proto.issued) {
6906
6920
  m.issued = new Date(proto.issued);
@@ -7066,7 +7080,7 @@ class ListInvoicesRequestFiltersDateFilter {
7066
7080
  let m = new ListInvoicesRequestFiltersDateFilter();
7067
7081
  m = Object.assign(m, proto);
7068
7082
  if (proto.dateField) {
7069
- m.dateField = enumStringToValue$n(ListInvoicesRequestFiltersDateFilterDateField, proto.dateField);
7083
+ m.dateField = enumStringToValue$q(ListInvoicesRequestFiltersDateFilterDateField, proto.dateField);
7070
7084
  }
7071
7085
  if (proto.dateLte) {
7072
7086
  m.dateLte = new Date(proto.dateLte);
@@ -7216,13 +7230,13 @@ class ListInvoicesRequestFilters {
7216
7230
  let m = new ListInvoicesRequestFilters();
7217
7231
  m = Object.assign(m, proto);
7218
7232
  if (proto.statuses) {
7219
- m.statuses = proto.statuses.map((v) => enumStringToValue$n(InvoiceStatus, v));
7233
+ m.statuses = proto.statuses.map((v) => enumStringToValue$q(InvoiceStatus, v));
7220
7234
  }
7221
7235
  if (proto.dateFilter) {
7222
7236
  m.dateFilter = ListInvoicesRequestFiltersDateFilter.fromProto(proto.dateFilter);
7223
7237
  }
7224
7238
  if (proto.lastPaymentStatuses) {
7225
- m.lastPaymentStatuses = proto.lastPaymentStatuses.map((v) => enumStringToValue$n(LastPaymentStatus, v));
7239
+ m.lastPaymentStatuses = proto.lastPaymentStatuses.map((v) => enumStringToValue$q(LastPaymentStatus, v));
7226
7240
  }
7227
7241
  return m;
7228
7242
  }
@@ -7413,7 +7427,7 @@ class Invoice {
7413
7427
  let m = new Invoice();
7414
7428
  m = Object.assign(m, proto);
7415
7429
  if (proto.status) {
7416
- m.status = enumStringToValue$n(InvoiceStatus, proto.status);
7430
+ m.status = enumStringToValue$q(InvoiceStatus, proto.status);
7417
7431
  }
7418
7432
  if (proto.subtotal) {
7419
7433
  m.subtotal = parseInt(proto.subtotal, 10);
@@ -7440,7 +7454,7 @@ class Invoice {
7440
7454
  m.items = proto.items.map(InvoiceItem.fromProto);
7441
7455
  }
7442
7456
  if (proto.currency) {
7443
- m.currency = enumStringToValue$n(Currency, proto.currency);
7457
+ m.currency = enumStringToValue$q(Currency, proto.currency);
7444
7458
  }
7445
7459
  if (proto.paid) {
7446
7460
  m.paid = new Date(proto.paid);
@@ -7473,10 +7487,10 @@ class Invoice {
7473
7487
  m.autoAdvance = new Date(proto.autoAdvance);
7474
7488
  }
7475
7489
  if (proto.paymentMethodTypes) {
7476
- m.paymentMethodTypes = proto.paymentMethodTypes.map((v) => enumStringToValue$n(PaymentMethodType, v));
7490
+ m.paymentMethodTypes = proto.paymentMethodTypes.map((v) => enumStringToValue$q(PaymentMethodType, v));
7477
7491
  }
7478
7492
  if (proto.lastPaymentStatus) {
7479
- m.lastPaymentStatus = enumStringToValue$n(LastPaymentStatus, proto.lastPaymentStatus);
7493
+ m.lastPaymentStatus = enumStringToValue$q(LastPaymentStatus, proto.lastPaymentStatus);
7480
7494
  }
7481
7495
  if (proto.amountOwing) {
7482
7496
  m.amountOwing = parseInt(proto.amountOwing, 10);
@@ -7485,7 +7499,7 @@ class Invoice {
7485
7499
  m.appliedCreditNotes = proto.appliedCreditNotes.map(AppliedCreditNote.fromProto);
7486
7500
  }
7487
7501
  if (proto.processingFailureCode) {
7488
- m.processingFailureCode = enumStringToValue$n(ProcessingFailureCode, proto.processingFailureCode);
7502
+ m.processingFailureCode = enumStringToValue$q(ProcessingFailureCode, proto.processingFailureCode);
7489
7503
  }
7490
7504
  return m;
7491
7505
  }
@@ -8194,7 +8208,7 @@ class VoidInvoiceRequest {
8194
8208
  }
8195
8209
  }
8196
8210
 
8197
- function enumStringToValue$m(enumRef, value) {
8211
+ function enumStringToValue$p(enumRef, value) {
8198
8212
  if (typeof value === 'number') {
8199
8213
  return value;
8200
8214
  }
@@ -8288,7 +8302,7 @@ class BalanceAmount {
8288
8302
  }
8289
8303
  }
8290
8304
 
8291
- function enumStringToValue$l(enumRef, value) {
8305
+ function enumStringToValue$o(enumRef, value) {
8292
8306
  if (typeof value === 'number') {
8293
8307
  return value;
8294
8308
  }
@@ -8324,7 +8338,7 @@ class DateRange {
8324
8338
  }
8325
8339
  }
8326
8340
 
8327
- function enumStringToValue$k(enumRef, value) {
8341
+ function enumStringToValue$n(enumRef, value) {
8328
8342
  if (typeof value === 'number') {
8329
8343
  return value;
8330
8344
  }
@@ -8425,13 +8439,13 @@ class Payout {
8425
8439
  m.amount = parseInt(proto.amount, 10);
8426
8440
  }
8427
8441
  if (proto.currency) {
8428
- m.currency = enumStringToValue$k(Currency, proto.currency);
8442
+ m.currency = enumStringToValue$n(Currency, proto.currency);
8429
8443
  }
8430
8444
  if (proto.status) {
8431
- m.status = enumStringToValue$k(PayoutStatus, proto.status);
8445
+ m.status = enumStringToValue$n(PayoutStatus, proto.status);
8432
8446
  }
8433
8447
  if (proto.type) {
8434
- m.type = enumStringToValue$k(PayoutType, proto.type);
8448
+ m.type = enumStringToValue$n(PayoutType, proto.type);
8435
8449
  }
8436
8450
  return m;
8437
8451
  }
@@ -8533,10 +8547,10 @@ class RetailPayout {
8533
8547
  m.amount = parseInt(proto.amount, 10);
8534
8548
  }
8535
8549
  if (proto.status) {
8536
- m.status = enumStringToValue$k(PayoutStatus, proto.status);
8550
+ m.status = enumStringToValue$n(PayoutStatus, proto.status);
8537
8551
  }
8538
8552
  if (proto.type) {
8539
- m.type = enumStringToValue$k(PayoutType, proto.type);
8553
+ m.type = enumStringToValue$n(PayoutType, proto.type);
8540
8554
  }
8541
8555
  return m;
8542
8556
  }
@@ -8585,7 +8599,7 @@ class RetailPayout {
8585
8599
  }
8586
8600
  }
8587
8601
 
8588
- function enumStringToValue$j(enumRef, value) {
8602
+ function enumStringToValue$m(enumRef, value) {
8589
8603
  if (typeof value === 'number') {
8590
8604
  return value;
8591
8605
  }
@@ -8700,7 +8714,7 @@ class CreateMerchantRequest {
8700
8714
  m.includeInFinancialRecords = CreateMerchantRequestIncludeInFinancialRecords.fromProto(proto.includeInFinancialRecords);
8701
8715
  }
8702
8716
  if (proto.merchantType) {
8703
- m.merchantType = enumStringToValue$j(MerchantType, proto.merchantType);
8717
+ m.merchantType = enumStringToValue$m(MerchantType, proto.merchantType);
8704
8718
  }
8705
8719
  return m;
8706
8720
  }
@@ -8964,7 +8978,7 @@ class GetOutstandingBalanceResponse {
8964
8978
  m.outstandingBalance = parseInt(proto.outstandingBalance, 10);
8965
8979
  }
8966
8980
  if (proto.currency) {
8967
- m.currency = enumStringToValue$j(Currency, proto.currency);
8981
+ m.currency = enumStringToValue$m(Currency, proto.currency);
8968
8982
  }
8969
8983
  return m;
8970
8984
  }
@@ -9275,7 +9289,7 @@ class Merchant {
9275
9289
  let m = new Merchant();
9276
9290
  m = Object.assign(m, proto);
9277
9291
  if (proto.merchantType) {
9278
- m.merchantType = enumStringToValue$j(MerchantType, proto.merchantType);
9292
+ m.merchantType = enumStringToValue$m(MerchantType, proto.merchantType);
9279
9293
  }
9280
9294
  return m;
9281
9295
  }
@@ -9430,10 +9444,10 @@ class SearchMerchantsRequest {
9430
9444
  let m = new SearchMerchantsRequest();
9431
9445
  m = Object.assign(m, proto);
9432
9446
  if (proto.sortBy) {
9433
- m.sortBy = enumStringToValue$j(SearchMerchantsRequestSortBy, proto.sortBy);
9447
+ m.sortBy = enumStringToValue$m(SearchMerchantsRequestSortBy, proto.sortBy);
9434
9448
  }
9435
9449
  if (proto.sortDirection) {
9436
- m.sortDirection = enumStringToValue$j(SortDirection, proto.sortDirection);
9450
+ m.sortDirection = enumStringToValue$m(SortDirection, proto.sortDirection);
9437
9451
  }
9438
9452
  if (proto.pagingOptions) {
9439
9453
  m.pagingOptions = PagedRequestOptions.fromProto(proto.pagingOptions);
@@ -9641,7 +9655,7 @@ class UpdateMerchantRequest {
9641
9655
  m.includeInFinancialRecords = UpdateMerchantRequestIncludeInFinancialRecords.fromProto(proto.includeInFinancialRecords);
9642
9656
  }
9643
9657
  if (proto.merchantType) {
9644
- m.merchantType = enumStringToValue$j(MerchantType, proto.merchantType);
9658
+ m.merchantType = enumStringToValue$m(MerchantType, proto.merchantType);
9645
9659
  }
9646
9660
  return m;
9647
9661
  }
@@ -9766,7 +9780,7 @@ class UpsertRetailConfigurationRequest {
9766
9780
  }
9767
9781
  }
9768
9782
 
9769
- function enumStringToValue$i(enumRef, value) {
9783
+ function enumStringToValue$l(enumRef, value) {
9770
9784
  if (typeof value === 'number') {
9771
9785
  return value;
9772
9786
  }
@@ -9835,13 +9849,13 @@ class MerchantReport {
9835
9849
  m.year = parseInt(proto.year, 10);
9836
9850
  }
9837
9851
  if (proto.month) {
9838
- m.month = enumStringToValue$i(Month, proto.month);
9852
+ m.month = enumStringToValue$l(Month, proto.month);
9839
9853
  }
9840
9854
  if (proto.created) {
9841
9855
  m.created = new Date(proto.created);
9842
9856
  }
9843
9857
  if (proto.status) {
9844
- m.status = enumStringToValue$i(MerchantReportStatus, proto.status);
9858
+ m.status = enumStringToValue$l(MerchantReportStatus, proto.status);
9845
9859
  }
9846
9860
  return m;
9847
9861
  }
@@ -9872,7 +9886,7 @@ class MerchantReport {
9872
9886
  }
9873
9887
  }
9874
9888
 
9875
- function enumStringToValue$h(enumRef, value) {
9889
+ function enumStringToValue$k(enumRef, value) {
9876
9890
  if (typeof value === 'number') {
9877
9891
  return value;
9878
9892
  }
@@ -9969,7 +9983,7 @@ class TickComponentUsageRequest {
9969
9983
  }
9970
9984
  }
9971
9985
 
9972
- function enumStringToValue$g(enumRef, value) {
9986
+ function enumStringToValue$j(enumRef, value) {
9973
9987
  if (typeof value === 'number') {
9974
9988
  return value;
9975
9989
  }
@@ -10082,7 +10096,7 @@ class RetailPaymentCardDetails {
10082
10096
  let m = new RetailPaymentCardDetails();
10083
10097
  m = Object.assign(m, proto);
10084
10098
  if (proto.cardType) {
10085
- m.cardType = enumStringToValue$g(CardType, proto.cardType);
10099
+ m.cardType = enumStringToValue$j(CardType, proto.cardType);
10086
10100
  }
10087
10101
  return m;
10088
10102
  }
@@ -10131,7 +10145,7 @@ class ConfigureRetailPaymentProviderRequest {
10131
10145
  let m = new ConfigureRetailPaymentProviderRequest();
10132
10146
  m = Object.assign(m, proto);
10133
10147
  if (proto.paymentFacilitatorType) {
10134
- m.paymentFacilitatorType = enumStringToValue$g(PaymentFacilitatorType, proto.paymentFacilitatorType);
10148
+ m.paymentFacilitatorType = enumStringToValue$j(PaymentFacilitatorType, proto.paymentFacilitatorType);
10135
10149
  }
10136
10150
  return m;
10137
10151
  }
@@ -10209,7 +10223,7 @@ class Dispute {
10209
10223
  let m = new Dispute();
10210
10224
  m = Object.assign(m, proto);
10211
10225
  if (proto.status) {
10212
- m.status = enumStringToValue$g(DisputeStatus, proto.status);
10226
+ m.status = enumStringToValue$j(DisputeStatus, proto.status);
10213
10227
  }
10214
10228
  if (proto.amount) {
10215
10229
  m.amount = parseInt(proto.amount, 10);
@@ -10227,7 +10241,7 @@ class Dispute {
10227
10241
  m.fee = parseInt(proto.fee, 10);
10228
10242
  }
10229
10243
  if (proto.paymentReferenceType) {
10230
- m.paymentReferenceType = enumStringToValue$g(RetailPaymentReferenceType, proto.paymentReferenceType);
10244
+ m.paymentReferenceType = enumStringToValue$j(RetailPaymentReferenceType, proto.paymentReferenceType);
10231
10245
  }
10232
10246
  if (proto.paymentReceivedAt) {
10233
10247
  m.paymentReceivedAt = new Date(proto.paymentReceivedAt);
@@ -10543,7 +10557,7 @@ class GetRetailPaymentProviderResponse {
10543
10557
  let m = new GetRetailPaymentProviderResponse();
10544
10558
  m = Object.assign(m, proto);
10545
10559
  if (proto.paymentFacilitatorType) {
10546
- m.paymentFacilitatorType = enumStringToValue$g(PaymentFacilitatorType, proto.paymentFacilitatorType);
10560
+ m.paymentFacilitatorType = enumStringToValue$j(PaymentFacilitatorType, proto.paymentFacilitatorType);
10547
10561
  }
10548
10562
  return m;
10549
10563
  }
@@ -10757,7 +10771,7 @@ class ListRetailDisputesRequestListRetailDisputesFilters {
10757
10771
  let m = new ListRetailDisputesRequestListRetailDisputesFilters();
10758
10772
  m = Object.assign(m, proto);
10759
10773
  if (proto.status) {
10760
- m.status = enumStringToValue$g(DisputeStatus, proto.status);
10774
+ m.status = enumStringToValue$j(DisputeStatus, proto.status);
10761
10775
  }
10762
10776
  return m;
10763
10777
  }
@@ -10943,7 +10957,7 @@ class ListRetailTransactionsRequestListRetailTransactionsFilters {
10943
10957
  m.createdDateLte = new Date(proto.createdDateLte);
10944
10958
  }
10945
10959
  if (proto.type) {
10946
- m.type = enumStringToValue$g(RetailTransactionType, proto.type);
10960
+ m.type = enumStringToValue$j(RetailTransactionType, proto.type);
10947
10961
  }
10948
10962
  return m;
10949
10963
  }
@@ -11077,10 +11091,10 @@ class Payment {
11077
11091
  m.created = new Date(proto.created);
11078
11092
  }
11079
11093
  if (proto.currency) {
11080
- m.currency = enumStringToValue$g(Currency, proto.currency);
11094
+ m.currency = enumStringToValue$j(Currency, proto.currency);
11081
11095
  }
11082
11096
  if (proto.paymentSource) {
11083
- m.paymentSource = enumStringToValue$g(PaymentSource, proto.paymentSource);
11097
+ m.paymentSource = enumStringToValue$j(PaymentSource, proto.paymentSource);
11084
11098
  }
11085
11099
  if (proto.allocations) {
11086
11100
  m.allocations = proto.allocations.map(PaymentPaymentAllocation.fromProto);
@@ -11089,7 +11103,7 @@ class Payment {
11089
11103
  m.total = parseInt(proto.total, 10);
11090
11104
  }
11091
11105
  if (proto.status) {
11092
- m.status = enumStringToValue$g(PaymentStatus, proto.status);
11106
+ m.status = enumStringToValue$j(PaymentStatus, proto.status);
11093
11107
  }
11094
11108
  return m;
11095
11109
  }
@@ -11139,7 +11153,7 @@ class PaymentPaymentAllocation {
11139
11153
  m.amount = parseInt(proto.amount, 10);
11140
11154
  }
11141
11155
  if (proto.type) {
11142
- m.type = enumStringToValue$g(PaymentAllocationType, proto.type);
11156
+ m.type = enumStringToValue$j(PaymentAllocationType, proto.type);
11143
11157
  }
11144
11158
  return m;
11145
11159
  }
@@ -11168,13 +11182,13 @@ class PaymentIntent {
11168
11182
  let m = new PaymentIntent();
11169
11183
  m = Object.assign(m, proto);
11170
11184
  if (proto.paymentIntentStatus) {
11171
- m.paymentIntentStatus = enumStringToValue$g(PaymentIntentStatus, proto.paymentIntentStatus);
11185
+ m.paymentIntentStatus = enumStringToValue$j(PaymentIntentStatus, proto.paymentIntentStatus);
11172
11186
  }
11173
11187
  if (proto.paymentMethodType) {
11174
- m.paymentMethodType = enumStringToValue$g(PaymentMethodType, proto.paymentMethodType);
11188
+ m.paymentMethodType = enumStringToValue$j(PaymentMethodType, proto.paymentMethodType);
11175
11189
  }
11176
11190
  if (proto.lastErrorCode) {
11177
- m.lastErrorCode = enumStringToValue$g(PaymentErrorCode, proto.lastErrorCode);
11191
+ m.lastErrorCode = enumStringToValue$j(PaymentErrorCode, proto.lastErrorCode);
11178
11192
  }
11179
11193
  return m;
11180
11194
  }
@@ -11206,7 +11220,7 @@ class PrepareRetailPaymentRequest {
11206
11220
  m.order = PrepareRetailPaymentRequestOrder.fromProto(proto.order);
11207
11221
  }
11208
11222
  if (proto.paymentMethodTypes) {
11209
- m.paymentMethodTypes = proto.paymentMethodTypes.map((v) => enumStringToValue$g(PaymentMethodType, v));
11223
+ m.paymentMethodTypes = proto.paymentMethodTypes.map((v) => enumStringToValue$j(PaymentMethodType, v));
11210
11224
  }
11211
11225
  return m;
11212
11226
  }
@@ -11273,7 +11287,7 @@ class RefundRetailPaymentRequest {
11273
11287
  m.amount = parseInt(proto.amount, 10);
11274
11288
  }
11275
11289
  if (proto.reason) {
11276
- m.reason = enumStringToValue$g(RetailRefundReason, proto.reason);
11290
+ m.reason = enumStringToValue$j(RetailRefundReason, proto.reason);
11277
11291
  }
11278
11292
  return m;
11279
11293
  }
@@ -11334,10 +11348,10 @@ class RetailPayment {
11334
11348
  m.amount = parseInt(proto.amount, 10);
11335
11349
  }
11336
11350
  if (proto.referenceType) {
11337
- m.referenceType = enumStringToValue$g(RetailPaymentReferenceType, proto.referenceType);
11351
+ m.referenceType = enumStringToValue$j(RetailPaymentReferenceType, proto.referenceType);
11338
11352
  }
11339
11353
  if (proto.status) {
11340
- m.status = enumStringToValue$g(PaymentStatus, proto.status);
11354
+ m.status = enumStringToValue$j(PaymentStatus, proto.status);
11341
11355
  }
11342
11356
  if (proto.applicationFee) {
11343
11357
  m.applicationFee = parseInt(proto.applicationFee, 10);
@@ -11352,7 +11366,7 @@ class RetailPayment {
11352
11366
  m.refunds = proto.refunds.map(RetailRefund.fromProto);
11353
11367
  }
11354
11368
  if (proto.paymentMethodDetailsType) {
11355
- m.paymentMethodDetailsType = enumStringToValue$g(RetailPaymentPaymentMethodDetailsType, proto.paymentMethodDetailsType);
11369
+ m.paymentMethodDetailsType = enumStringToValue$j(RetailPaymentPaymentMethodDetailsType, proto.paymentMethodDetailsType);
11356
11370
  }
11357
11371
  if (proto.achDebitDetails) {
11358
11372
  m.achDebitDetails = RetailPaymentACHDetails.fromProto(proto.achDebitDetails);
@@ -11364,7 +11378,7 @@ class RetailPayment {
11364
11378
  m.paymentFacilitatorFee = parseInt(proto.paymentFacilitatorFee, 10);
11365
11379
  }
11366
11380
  if (proto.paymentFacilitatorType) {
11367
- m.paymentFacilitatorType = enumStringToValue$g(PaymentFacilitatorType, proto.paymentFacilitatorType);
11381
+ m.paymentFacilitatorType = enumStringToValue$j(PaymentFacilitatorType, proto.paymentFacilitatorType);
11368
11382
  }
11369
11383
  if (proto.settledAt) {
11370
11384
  m.settledAt = new Date(proto.settledAt);
@@ -11499,13 +11513,13 @@ class RetailRefund {
11499
11513
  m.amount = parseInt(proto.amount, 10);
11500
11514
  }
11501
11515
  if (proto.refundReason) {
11502
- m.refundReason = enumStringToValue$g(RetailRefundReason, proto.refundReason);
11516
+ m.refundReason = enumStringToValue$j(RetailRefundReason, proto.refundReason);
11503
11517
  }
11504
11518
  if (proto.status) {
11505
- m.status = enumStringToValue$g(RetailRefundStatus, proto.status);
11519
+ m.status = enumStringToValue$j(RetailRefundStatus, proto.status);
11506
11520
  }
11507
11521
  if (proto.failureReason) {
11508
- m.failureReason = enumStringToValue$g(RetailRefundFailureReason, proto.failureReason);
11522
+ m.failureReason = enumStringToValue$j(RetailRefundFailureReason, proto.failureReason);
11509
11523
  }
11510
11524
  if (proto.created) {
11511
11525
  m.created = new Date(proto.created);
@@ -11769,7 +11783,7 @@ class RetailStatusResponseVerificationRequirements {
11769
11783
  }
11770
11784
  }
11771
11785
 
11772
- function enumStringToValue$f(enumRef, value) {
11786
+ function enumStringToValue$i(enumRef, value) {
11773
11787
  if (typeof value === 'number') {
11774
11788
  return value;
11775
11789
  }
@@ -11780,7 +11794,7 @@ class CreatePricingPlanProductRequest {
11780
11794
  let m = new CreatePricingPlanProductRequest();
11781
11795
  m = Object.assign(m, proto);
11782
11796
  if (proto.frequency) {
11783
- m.frequency = enumStringToValue$f(Frequency, proto.frequency);
11797
+ m.frequency = enumStringToValue$i(Frequency, proto.frequency);
11784
11798
  }
11785
11799
  if (proto.pricing) {
11786
11800
  m.pricing = Object.keys(proto.pricing).reduce((obj, k) => { obj[k] = PricingPlanProductPricing.fromProto(proto.pricing[k]); return obj; }, {});
@@ -11789,7 +11803,7 @@ class CreatePricingPlanProductRequest {
11789
11803
  m.commitment = Commitment.fromProto(proto.commitment);
11790
11804
  }
11791
11805
  if (proto.strategy) {
11792
- m.strategy = enumStringToValue$f(BillingStrategy, proto.strategy);
11806
+ m.strategy = enumStringToValue$i(BillingStrategy, proto.strategy);
11793
11807
  }
11794
11808
  if (proto.volumeCommitment) {
11795
11809
  m.volumeCommitment = parseInt(proto.volumeCommitment, 10);
@@ -11963,7 +11977,7 @@ class GetPricingPlanProductResponse {
11963
11977
  m.pricingPlanProduct = PricingPlanProduct.fromProto(proto.pricingPlanProduct);
11964
11978
  }
11965
11979
  if (proto.pricingPlanDefaultStrategy) {
11966
- m.pricingPlanDefaultStrategy = enumStringToValue$f(BillingStrategy, proto.pricingPlanDefaultStrategy);
11980
+ m.pricingPlanDefaultStrategy = enumStringToValue$i(BillingStrategy, proto.pricingPlanDefaultStrategy);
11967
11981
  }
11968
11982
  return m;
11969
11983
  }
@@ -12151,7 +12165,7 @@ class PricingPlanProduct {
12151
12165
  let m = new PricingPlanProduct();
12152
12166
  m = Object.assign(m, proto);
12153
12167
  if (proto.frequency) {
12154
- m.frequency = enumStringToValue$f(Frequency, proto.frequency);
12168
+ m.frequency = enumStringToValue$i(Frequency, proto.frequency);
12155
12169
  }
12156
12170
  if (proto.pricing) {
12157
12171
  m.pricing = Object.keys(proto.pricing).reduce((obj, k) => { obj[k] = PricingPlanProductPricing.fromProto(proto.pricing[k]); return obj; }, {});
@@ -12166,7 +12180,7 @@ class PricingPlanProduct {
12166
12180
  m.modified = new Date(proto.modified);
12167
12181
  }
12168
12182
  if (proto.strategy) {
12169
- m.strategy = enumStringToValue$f(BillingStrategy, proto.strategy);
12183
+ m.strategy = enumStringToValue$i(BillingStrategy, proto.strategy);
12170
12184
  }
12171
12185
  if (proto.volumeCommitment) {
12172
12186
  m.volumeCommitment = parseInt(proto.volumeCommitment, 10);
@@ -12178,7 +12192,7 @@ class PricingPlanProduct {
12178
12192
  m.volumeCommitmentEndsAt = new Date(proto.volumeCommitmentEndsAt);
12179
12193
  }
12180
12194
  if (proto.pricingType) {
12181
- m.pricingType = enumStringToValue$f(ProductPricingType, proto.pricingType);
12195
+ m.pricingType = enumStringToValue$i(ProductPricingType, proto.pricingType);
12182
12196
  }
12183
12197
  return m;
12184
12198
  }
@@ -12234,7 +12248,7 @@ class UpdatePricingPlanProductRequest {
12234
12248
  let m = new UpdatePricingPlanProductRequest();
12235
12249
  m = Object.assign(m, proto);
12236
12250
  if (proto.frequency) {
12237
- m.frequency = enumStringToValue$f(Frequency, proto.frequency);
12251
+ m.frequency = enumStringToValue$i(Frequency, proto.frequency);
12238
12252
  }
12239
12253
  if (proto.pricing) {
12240
12254
  m.pricing = Object.keys(proto.pricing).reduce((obj, k) => { obj[k] = PricingPlanProductPricing.fromProto(proto.pricing[k]); return obj; }, {});
@@ -12246,7 +12260,7 @@ class UpdatePricingPlanProductRequest {
12246
12260
  m.fieldMask = FieldMask.fromProto(proto.fieldMask);
12247
12261
  }
12248
12262
  if (proto.strategy) {
12249
- m.strategy = enumStringToValue$f(BillingStrategy, proto.strategy);
12263
+ m.strategy = enumStringToValue$i(BillingStrategy, proto.strategy);
12250
12264
  }
12251
12265
  if (proto.volumeCommitment) {
12252
12266
  m.volumeCommitment = parseInt(proto.volumeCommitment, 10);
@@ -12328,7 +12342,7 @@ class UpsertWholesalePricingRequest {
12328
12342
  m.termCommitment = Commitment.fromProto(proto.termCommitment);
12329
12343
  }
12330
12344
  if (proto.strategy) {
12331
- m.strategy = enumStringToValue$f(BillingStrategy, proto.strategy);
12345
+ m.strategy = enumStringToValue$i(BillingStrategy, proto.strategy);
12332
12346
  }
12333
12347
  if (proto.volumeCommitment) {
12334
12348
  m.volumeCommitment = parseInt(proto.volumeCommitment, 10);
@@ -12377,7 +12391,7 @@ class UpsertWholesalePricingRequest {
12377
12391
  }
12378
12392
  }
12379
12393
 
12380
- function enumStringToValue$e(enumRef, value) {
12394
+ function enumStringToValue$h(enumRef, value) {
12381
12395
  if (typeof value === 'number') {
12382
12396
  return value;
12383
12397
  }
@@ -12388,7 +12402,7 @@ class CreateProductRequest {
12388
12402
  let m = new CreateProductRequest();
12389
12403
  m = Object.assign(m, proto);
12390
12404
  if (proto.productType) {
12391
- m.productType = enumStringToValue$e(ProductType, proto.productType);
12405
+ m.productType = enumStringToValue$h(ProductType, proto.productType);
12392
12406
  }
12393
12407
  return m;
12394
12408
  }
@@ -12492,7 +12506,7 @@ class ListProductsRequestListProductsFilters {
12492
12506
  let m = new ListProductsRequestListProductsFilters();
12493
12507
  m = Object.assign(m, proto);
12494
12508
  if (proto.productType) {
12495
- m.productType = proto.productType.map((v) => enumStringToValue$e(ProductType, v));
12509
+ m.productType = proto.productType.map((v) => enumStringToValue$h(ProductType, v));
12496
12510
  }
12497
12511
  return m;
12498
12512
  }
@@ -12588,7 +12602,7 @@ class Product {
12588
12602
  let m = new Product();
12589
12603
  m = Object.assign(m, proto);
12590
12604
  if (proto.productType) {
12591
- m.productType = enumStringToValue$e(ProductType, proto.productType);
12605
+ m.productType = enumStringToValue$h(ProductType, proto.productType);
12592
12606
  }
12593
12607
  return m;
12594
12608
  }
@@ -12655,7 +12669,7 @@ class UpdateProductRequest {
12655
12669
  let m = new UpdateProductRequest();
12656
12670
  m = Object.assign(m, proto);
12657
12671
  if (proto.productType) {
12658
- m.productType = enumStringToValue$e(ProductType, proto.productType);
12672
+ m.productType = enumStringToValue$h(ProductType, proto.productType);
12659
12673
  }
12660
12674
  return m;
12661
12675
  }
@@ -12686,7 +12700,7 @@ class UpdateProductRequest {
12686
12700
  }
12687
12701
  }
12688
12702
 
12689
- function enumStringToValue$d(enumRef, value) {
12703
+ function enumStringToValue$g(enumRef, value) {
12690
12704
  if (typeof value === 'number') {
12691
12705
  return value;
12692
12706
  }
@@ -12700,7 +12714,7 @@ class AppliedCredit {
12700
12714
  m.appliedAmount = parseInt(proto.appliedAmount, 10);
12701
12715
  }
12702
12716
  if (proto.referenceType) {
12703
- m.referenceType = enumStringToValue$d(CreditType, proto.referenceType);
12717
+ m.referenceType = enumStringToValue$g(CreditType, proto.referenceType);
12704
12718
  }
12705
12719
  return m;
12706
12720
  }
@@ -12729,7 +12743,7 @@ class ListPurchaseRequestListPurchaseBillingStrategyFilter {
12729
12743
  let m = new ListPurchaseRequestListPurchaseBillingStrategyFilter();
12730
12744
  m = Object.assign(m, proto);
12731
12745
  if (proto.billingStrategy) {
12732
- m.billingStrategy = proto.billingStrategy.map((v) => enumStringToValue$d(BillingStrategy, v));
12746
+ m.billingStrategy = proto.billingStrategy.map((v) => enumStringToValue$g(BillingStrategy, v));
12733
12747
  }
12734
12748
  return m;
12735
12749
  }
@@ -12761,13 +12775,13 @@ class ListPurchaseRequestListPurchaseFilters {
12761
12775
  m.billingStrategyFilter = ListPurchaseRequestListPurchaseBillingStrategyFilter.fromProto(proto.billingStrategyFilter);
12762
12776
  }
12763
12777
  if (proto.state) {
12764
- m.state = enumStringToValue$d(ListPurchaseRequestState, proto.state);
12778
+ m.state = enumStringToValue$g(ListPurchaseRequestState, proto.state);
12765
12779
  }
12766
12780
  if (proto.minPrice) {
12767
12781
  m.minPrice = parseInt(proto.minPrice, 10);
12768
12782
  }
12769
12783
  if (proto.status) {
12770
- m.status = enumStringToValue$d(PurchaseStatus, proto.status);
12784
+ m.status = enumStringToValue$g(PurchaseStatus, proto.status);
12771
12785
  }
12772
12786
  if (proto.dunningPauseStart) {
12773
12787
  m.dunningPauseStart = new Date(proto.dunningPauseStart);
@@ -12896,7 +12910,7 @@ class ListPurchaseItemsResponse {
12896
12910
  m.pagingMetadata = PagedResponseMetadata.fromProto(proto.pagingMetadata);
12897
12911
  }
12898
12912
  if (proto.currency) {
12899
- m.currency = enumStringToValue$d(Currency, proto.currency);
12913
+ m.currency = enumStringToValue$g(Currency, proto.currency);
12900
12914
  }
12901
12915
  return m;
12902
12916
  }
@@ -13021,13 +13035,13 @@ class Purchase {
13021
13035
  m.total = parseInt(proto.total, 10);
13022
13036
  }
13023
13037
  if (proto.currency) {
13024
- m.currency = enumStringToValue$d(Currency, proto.currency);
13038
+ m.currency = enumStringToValue$g(Currency, proto.currency);
13025
13039
  }
13026
13040
  if (proto.items) {
13027
13041
  m.items = proto.items.map(PurchaseItem.fromProto);
13028
13042
  }
13029
13043
  if (proto.billingStrategy) {
13030
- m.billingStrategy = enumStringToValue$d(BillingStrategy, proto.billingStrategy);
13044
+ m.billingStrategy = enumStringToValue$g(BillingStrategy, proto.billingStrategy);
13031
13045
  }
13032
13046
  if (proto.dunningAttempt) {
13033
13047
  m.dunningAttempt = parseInt(proto.dunningAttempt, 10);
@@ -13036,7 +13050,7 @@ class Purchase {
13036
13050
  m.voided = new Date(proto.voided);
13037
13051
  }
13038
13052
  if (proto.status) {
13039
- m.status = enumStringToValue$d(PurchaseStatus, proto.status);
13053
+ m.status = enumStringToValue$g(PurchaseStatus, proto.status);
13040
13054
  }
13041
13055
  if (proto.creditAmount) {
13042
13056
  m.creditAmount = parseInt(proto.creditAmount, 10);
@@ -13320,7 +13334,7 @@ class VoidPurchaseRequest {
13320
13334
  }
13321
13335
  }
13322
13336
 
13323
- function enumStringToValue$c(enumRef, value) {
13337
+ function enumStringToValue$f(enumRef, value) {
13324
13338
  if (typeof value === 'number') {
13325
13339
  return value;
13326
13340
  }
@@ -13334,10 +13348,10 @@ class CreateRefundRequest {
13334
13348
  m.amount = parseInt(proto.amount, 10);
13335
13349
  }
13336
13350
  if (proto.reason) {
13337
- m.reason = enumStringToValue$c(RefundReason, proto.reason);
13351
+ m.reason = enumStringToValue$f(RefundReason, proto.reason);
13338
13352
  }
13339
13353
  if (proto.referenceType) {
13340
- m.referenceType = enumStringToValue$c(ReferenceType, proto.referenceType);
13354
+ m.referenceType = enumStringToValue$f(ReferenceType, proto.referenceType);
13341
13355
  }
13342
13356
  return m;
13343
13357
  }
@@ -13442,10 +13456,10 @@ class Refund {
13442
13456
  m.amount = parseInt(proto.amount, 10);
13443
13457
  }
13444
13458
  if (proto.reason) {
13445
- m.reason = enumStringToValue$c(RefundReason, proto.reason);
13459
+ m.reason = enumStringToValue$f(RefundReason, proto.reason);
13446
13460
  }
13447
13461
  if (proto.status) {
13448
- m.status = enumStringToValue$c(RefundStatus, proto.status);
13462
+ m.status = enumStringToValue$f(RefundStatus, proto.status);
13449
13463
  }
13450
13464
  if (proto.created) {
13451
13465
  m.created = new Date(proto.created);
@@ -13454,7 +13468,7 @@ class Refund {
13454
13468
  m.updated = new Date(proto.updated);
13455
13469
  }
13456
13470
  if (proto.referenceType) {
13457
- m.referenceType = enumStringToValue$c(ReferenceType, proto.referenceType);
13471
+ m.referenceType = enumStringToValue$f(ReferenceType, proto.referenceType);
13458
13472
  }
13459
13473
  return m;
13460
13474
  }
@@ -13506,7 +13520,7 @@ class Refund {
13506
13520
  }
13507
13521
  }
13508
13522
 
13509
- function enumStringToValue$b(enumRef, value) {
13523
+ function enumStringToValue$e(enumRef, value) {
13510
13524
  if (typeof value === 'number') {
13511
13525
  return value;
13512
13526
  }
@@ -13561,7 +13575,7 @@ class ListSalesCreditNoteRequestListSalesCreditNoteFilters {
13561
13575
  let m = new ListSalesCreditNoteRequestListSalesCreditNoteFilters();
13562
13576
  m = Object.assign(m, proto);
13563
13577
  if (proto.statuses) {
13564
- m.statuses = proto.statuses.map((v) => enumStringToValue$b(SalesCreditNoteStatus, v));
13578
+ m.statuses = proto.statuses.map((v) => enumStringToValue$e(SalesCreditNoteStatus, v));
13565
13579
  }
13566
13580
  return m;
13567
13581
  }
@@ -13651,7 +13665,7 @@ class SalesCreditNote {
13651
13665
  m.dueDate = new Date(proto.dueDate);
13652
13666
  }
13653
13667
  if (proto.currency) {
13654
- m.currency = enumStringToValue$b(Currency, proto.currency);
13668
+ m.currency = enumStringToValue$e(Currency, proto.currency);
13655
13669
  }
13656
13670
  if (proto.total) {
13657
13671
  m.total = parseInt(proto.total, 10);
@@ -13660,7 +13674,7 @@ class SalesCreditNote {
13660
13674
  m.outstanding = parseInt(proto.outstanding, 10);
13661
13675
  }
13662
13676
  if (proto.status) {
13663
- m.status = enumStringToValue$b(SalesCreditNoteStatus, proto.status);
13677
+ m.status = enumStringToValue$e(SalesCreditNoteStatus, proto.status);
13664
13678
  }
13665
13679
  return m;
13666
13680
  }
@@ -13718,7 +13732,7 @@ class SalesCreditNote {
13718
13732
  }
13719
13733
  }
13720
13734
 
13721
- function enumStringToValue$a(enumRef, value) {
13735
+ function enumStringToValue$d(enumRef, value) {
13722
13736
  if (typeof value === 'number') {
13723
13737
  return value;
13724
13738
  }
@@ -13775,10 +13789,10 @@ class ListSalesInvoiceRequestListSalesInvoiceFilters {
13775
13789
  let m = new ListSalesInvoiceRequestListSalesInvoiceFilters();
13776
13790
  m = Object.assign(m, proto);
13777
13791
  if (proto.statuses) {
13778
- m.statuses = proto.statuses.map((v) => enumStringToValue$a(SalesInvoiceStatus, v));
13792
+ m.statuses = proto.statuses.map((v) => enumStringToValue$d(SalesInvoiceStatus, v));
13779
13793
  }
13780
13794
  if (proto.paymentStatuses) {
13781
- m.paymentStatuses = proto.paymentStatuses.map((v) => enumStringToValue$a(PaymentStatuses, v));
13795
+ m.paymentStatuses = proto.paymentStatuses.map((v) => enumStringToValue$d(PaymentStatuses, v));
13782
13796
  }
13783
13797
  return m;
13784
13798
  }
@@ -13906,16 +13920,16 @@ class SalesInvoice {
13906
13920
  m.total = parseInt(proto.total, 10);
13907
13921
  }
13908
13922
  if (proto.currency) {
13909
- m.currency = enumStringToValue$a(Currency, proto.currency);
13923
+ m.currency = enumStringToValue$d(Currency, proto.currency);
13910
13924
  }
13911
13925
  if (proto.status) {
13912
- m.status = enumStringToValue$a(SalesInvoiceStatus, proto.status);
13926
+ m.status = enumStringToValue$d(SalesInvoiceStatus, proto.status);
13913
13927
  }
13914
13928
  if (proto.outstanding) {
13915
13929
  m.outstanding = parseInt(proto.outstanding, 10);
13916
13930
  }
13917
13931
  if (proto.type) {
13918
- m.type = enumStringToValue$a(SalesInvoiceType, proto.type);
13932
+ m.type = enumStringToValue$d(SalesInvoiceType, proto.type);
13919
13933
  }
13920
13934
  return m;
13921
13935
  }
@@ -14019,7 +14033,7 @@ class SendSalesInvoiceReceiptEmailRequest {
14019
14033
  }
14020
14034
  }
14021
14035
 
14022
- function enumStringToValue$9(enumRef, value) {
14036
+ function enumStringToValue$c(enumRef, value) {
14023
14037
  if (typeof value === 'number') {
14024
14038
  return value;
14025
14039
  }
@@ -14128,10 +14142,10 @@ class ListTaxRulesRequestFilters {
14128
14142
  let m = new ListTaxRulesRequestFilters();
14129
14143
  m = Object.assign(m, proto);
14130
14144
  if (proto.consumer) {
14131
- m.consumer = enumStringToValue$9(Consumer, proto.consumer);
14145
+ m.consumer = enumStringToValue$c(Consumer, proto.consumer);
14132
14146
  }
14133
14147
  if (proto.entityType) {
14134
- m.entityType = enumStringToValue$9(TaxRuleEntityType, proto.entityType);
14148
+ m.entityType = enumStringToValue$c(TaxRuleEntityType, proto.entityType);
14135
14149
  }
14136
14150
  return m;
14137
14151
  }
@@ -14180,7 +14194,7 @@ class GetTaxProviderResponse {
14180
14194
  let m = new GetTaxProviderResponse();
14181
14195
  m = Object.assign(m, proto);
14182
14196
  if (proto.taxProviderType) {
14183
- m.taxProviderType = enumStringToValue$9(TaxProviderType, proto.taxProviderType);
14197
+ m.taxProviderType = enumStringToValue$c(TaxProviderType, proto.taxProviderType);
14184
14198
  }
14185
14199
  return m;
14186
14200
  }
@@ -14304,7 +14318,7 @@ class TaxRuleProductProductIdentifier {
14304
14318
  let m = new TaxRuleProductProductIdentifier();
14305
14319
  m = Object.assign(m, proto);
14306
14320
  if (proto.type) {
14307
- m.type = enumStringToValue$9(ProductType, proto.type);
14321
+ m.type = enumStringToValue$c(ProductType, proto.type);
14308
14322
  }
14309
14323
  return m;
14310
14324
  }
@@ -14333,13 +14347,13 @@ class ReplaceTaxRuleRequest {
14333
14347
  let m = new ReplaceTaxRuleRequest();
14334
14348
  m = Object.assign(m, proto);
14335
14349
  if (proto.entityType) {
14336
- m.entityType = enumStringToValue$9(TaxRuleEntityType, proto.entityType);
14350
+ m.entityType = enumStringToValue$c(TaxRuleEntityType, proto.entityType);
14337
14351
  }
14338
14352
  if (proto.type) {
14339
- m.type = enumStringToValue$9(TaxRuleType, proto.type);
14353
+ m.type = enumStringToValue$c(TaxRuleType, proto.type);
14340
14354
  }
14341
14355
  if (proto.consumer) {
14342
- m.consumer = enumStringToValue$9(Consumer, proto.consumer);
14356
+ m.consumer = enumStringToValue$c(Consumer, proto.consumer);
14343
14357
  }
14344
14358
  return m;
14345
14359
  }
@@ -14397,13 +14411,13 @@ class TaxRule {
14397
14411
  let m = new TaxRule();
14398
14412
  m = Object.assign(m, proto);
14399
14413
  if (proto.entityType) {
14400
- m.entityType = enumStringToValue$9(TaxRuleEntityType, proto.entityType);
14414
+ m.entityType = enumStringToValue$c(TaxRuleEntityType, proto.entityType);
14401
14415
  }
14402
14416
  if (proto.entity) {
14403
14417
  m.entity = TaxRuleTaxRuleEntity.fromProto(proto.entity);
14404
14418
  }
14405
14419
  if (proto.type) {
14406
- m.type = enumStringToValue$9(TaxRuleType, proto.type);
14420
+ m.type = enumStringToValue$c(TaxRuleType, proto.type);
14407
14421
  }
14408
14422
  if (proto.taxRates) {
14409
14423
  m.taxRates = proto.taxRates.map(TaxRate.fromProto);
@@ -14524,7 +14538,7 @@ class TaxRuleProduct {
14524
14538
  }
14525
14539
  }
14526
14540
 
14527
- function enumStringToValue$8(enumRef, value) {
14541
+ function enumStringToValue$b(enumRef, value) {
14528
14542
  if (typeof value === 'number') {
14529
14543
  return value;
14530
14544
  }
@@ -14664,7 +14678,7 @@ class ListContractDocumentsResponse {
14664
14678
  }
14665
14679
  }
14666
14680
 
14667
- function enumStringToValue$7(enumRef, value) {
14681
+ function enumStringToValue$a(enumRef, value) {
14668
14682
  if (typeof value === 'number') {
14669
14683
  return value;
14670
14684
  }
@@ -14730,7 +14744,7 @@ class RetailCustomerConfiguration {
14730
14744
  m.netD = parseInt(proto.netD, 10);
14731
14745
  }
14732
14746
  if (proto.paymentMethodTypes) {
14733
- m.paymentMethodTypes = proto.paymentMethodTypes.map((v) => enumStringToValue$7(PaymentMethodType, v));
14747
+ m.paymentMethodTypes = proto.paymentMethodTypes.map((v) => enumStringToValue$a(PaymentMethodType, v));
14734
14748
  }
14735
14749
  return m;
14736
14750
  }
@@ -14798,7 +14812,7 @@ class UpsertRetailCustomerConfigurationRequest {
14798
14812
  m.netD = parseInt(proto.netD, 10);
14799
14813
  }
14800
14814
  if (proto.paymentMethodTypes) {
14801
- m.paymentMethodTypes = proto.paymentMethodTypes.map((v) => enumStringToValue$7(PaymentMethodType, v));
14815
+ m.paymentMethodTypes = proto.paymentMethodTypes.map((v) => enumStringToValue$a(PaymentMethodType, v));
14802
14816
  }
14803
14817
  if (proto.fieldMask) {
14804
14818
  m.fieldMask = FieldMask.fromProto(proto.fieldMask);
@@ -14859,7 +14873,7 @@ class UpsertRetailCustomerConfigurationRequest {
14859
14873
  }
14860
14874
  }
14861
14875
 
14862
- function enumStringToValue$6(enumRef, value) {
14876
+ function enumStringToValue$9(enumRef, value) {
14863
14877
  if (typeof value === 'number') {
14864
14878
  return value;
14865
14879
  }
@@ -14976,7 +14990,7 @@ class GetBalanceResponse {
14976
14990
  }
14977
14991
  }
14978
14992
 
14979
- function enumStringToValue$5(enumRef, value) {
14993
+ function enumStringToValue$8(enumRef, value) {
14980
14994
  if (typeof value === 'number') {
14981
14995
  return value;
14982
14996
  }
@@ -14987,7 +15001,7 @@ class CreateMerchantServicesReportRun {
14987
15001
  let m = new CreateMerchantServicesReportRun();
14988
15002
  m = Object.assign(m, proto);
14989
15003
  if (proto.reportType) {
14990
- m.reportType = enumStringToValue$5(MerchantServicesReportRunType, proto.reportType);
15004
+ m.reportType = enumStringToValue$8(MerchantServicesReportRunType, proto.reportType);
14991
15005
  }
14992
15006
  if (proto.intervalStart) {
14993
15007
  m.intervalStart = new Date(proto.intervalStart);
@@ -15051,10 +15065,10 @@ class MerchantServicesReportRun {
15051
15065
  m.created = new Date(proto.created);
15052
15066
  }
15053
15067
  if (proto.reportType) {
15054
- m.reportType = enumStringToValue$5(MerchantServicesReportRunType, proto.reportType);
15068
+ m.reportType = enumStringToValue$8(MerchantServicesReportRunType, proto.reportType);
15055
15069
  }
15056
15070
  if (proto.status) {
15057
- m.status = enumStringToValue$5(MerchantServicesReportRunStatus, proto.status);
15071
+ m.status = enumStringToValue$8(MerchantServicesReportRunStatus, proto.status);
15058
15072
  }
15059
15073
  return m;
15060
15074
  }
@@ -15085,7 +15099,7 @@ class MerchantServicesReportRun {
15085
15099
  }
15086
15100
  }
15087
15101
 
15088
- function enumStringToValue$4(enumRef, value) {
15102
+ function enumStringToValue$7(enumRef, value) {
15089
15103
  if (typeof value === 'number') {
15090
15104
  return value;
15091
15105
  }
@@ -15135,7 +15149,7 @@ class MCPOptions {
15135
15149
  }
15136
15150
  }
15137
15151
 
15138
- function enumStringToValue$3(enumRef, value) {
15152
+ function enumStringToValue$6(enumRef, value) {
15139
15153
  if (typeof value === 'number') {
15140
15154
  return value;
15141
15155
  }
@@ -15146,13 +15160,13 @@ class ListSubscriptionRelationshipsRequestFilters {
15146
15160
  let m = new ListSubscriptionRelationshipsRequestFilters();
15147
15161
  m = Object.assign(m, proto);
15148
15162
  if (proto.originType) {
15149
- m.originType = enumStringToValue$3(EntityType, proto.originType);
15163
+ m.originType = enumStringToValue$6(EntityType, proto.originType);
15150
15164
  }
15151
15165
  if (proto.targetType) {
15152
- m.targetType = enumStringToValue$3(EntityType, proto.targetType);
15166
+ m.targetType = enumStringToValue$6(EntityType, proto.targetType);
15153
15167
  }
15154
15168
  if (proto.relationshipType) {
15155
- m.relationshipType = enumStringToValue$3(RelationshipType, proto.relationshipType);
15169
+ m.relationshipType = enumStringToValue$6(RelationshipType, proto.relationshipType);
15156
15170
  }
15157
15171
  return m;
15158
15172
  }
@@ -15340,13 +15354,13 @@ class SubscriptionRelationship {
15340
15354
  let m = new SubscriptionRelationship();
15341
15355
  m = Object.assign(m, proto);
15342
15356
  if (proto.originType) {
15343
- m.originType = enumStringToValue$3(EntityType, proto.originType);
15357
+ m.originType = enumStringToValue$6(EntityType, proto.originType);
15344
15358
  }
15345
15359
  if (proto.targetType) {
15346
- m.targetType = enumStringToValue$3(EntityType, proto.targetType);
15360
+ m.targetType = enumStringToValue$6(EntityType, proto.targetType);
15347
15361
  }
15348
15362
  if (proto.relationshipType) {
15349
- m.relationshipType = enumStringToValue$3(RelationshipType, proto.relationshipType);
15363
+ m.relationshipType = enumStringToValue$6(RelationshipType, proto.relationshipType);
15350
15364
  }
15351
15365
  if (proto.created) {
15352
15366
  m.created = new Date(proto.created);
@@ -15404,7 +15418,7 @@ class SubscriptionRelationship {
15404
15418
  }
15405
15419
  }
15406
15420
 
15407
- function enumStringToValue$2(enumRef, value) {
15421
+ function enumStringToValue$5(enumRef, value) {
15408
15422
  if (typeof value === 'number') {
15409
15423
  return value;
15410
15424
  }
@@ -15503,11 +15517,14 @@ class SubscriptionPreset {
15503
15517
  if (typeof this.invoiceId !== 'undefined') {
15504
15518
  toReturn['invoiceId'] = this.invoiceId;
15505
15519
  }
15520
+ if (typeof this.retailSubscriptionGroupId !== 'undefined') {
15521
+ toReturn['retailSubscriptionGroupId'] = this.retailSubscriptionGroupId;
15522
+ }
15506
15523
  return toReturn;
15507
15524
  }
15508
15525
  }
15509
15526
 
15510
- function enumStringToValue$1(enumRef, value) {
15527
+ function enumStringToValue$4(enumRef, value) {
15511
15528
  if (typeof value === 'number') {
15512
15529
  return value;
15513
15530
  }
@@ -15518,13 +15535,13 @@ class AppliedTo {
15518
15535
  let m = new AppliedTo();
15519
15536
  m = Object.assign(m, proto);
15520
15537
  if (proto.referenceType) {
15521
- m.referenceType = enumStringToValue$1(AppliedReferenceType, proto.referenceType);
15538
+ m.referenceType = enumStringToValue$4(AppliedReferenceType, proto.referenceType);
15522
15539
  }
15523
15540
  if (proto.amount) {
15524
15541
  m.amount = parseInt(proto.amount, 10);
15525
15542
  }
15526
15543
  if (proto.creditNoteType) {
15527
- m.creditNoteType = enumStringToValue$1(CreditNoteType, proto.creditNoteType);
15544
+ m.creditNoteType = enumStringToValue$4(CreditNoteType, proto.creditNoteType);
15528
15545
  }
15529
15546
  if (proto.appliedAt) {
15530
15547
  m.appliedAt = new Date(proto.appliedAt);
@@ -15672,7 +15689,7 @@ class CreditNote {
15672
15689
  m.items = proto.items.map(LineItem.fromProto);
15673
15690
  }
15674
15691
  if (proto.currency) {
15675
- m.currency = enumStringToValue$1(Currency, proto.currency);
15692
+ m.currency = enumStringToValue$4(Currency, proto.currency);
15676
15693
  }
15677
15694
  if (proto.amountTax) {
15678
15695
  m.amountTax = parseInt(proto.amountTax, 10);
@@ -15684,7 +15701,7 @@ class CreditNote {
15684
15701
  m.notes = proto.notes.map(Note.fromProto);
15685
15702
  }
15686
15703
  if (proto.reason) {
15687
- m.reason = enumStringToValue$1(CreditNoteReason, proto.reason);
15704
+ m.reason = enumStringToValue$4(CreditNoteReason, proto.reason);
15688
15705
  }
15689
15706
  if (proto.appliedTo) {
15690
15707
  m.appliedTo = proto.appliedTo.map(AppliedTo.fromProto);
@@ -16024,16 +16041,19 @@ class SendCreditNoteRequest {
16024
16041
  }
16025
16042
  }
16026
16043
 
16027
- function enumStringToValue(enumRef, value) {
16044
+ function enumStringToValue$3(enumRef, value) {
16028
16045
  if (typeof value === 'number') {
16029
16046
  return value;
16030
16047
  }
16031
16048
  return enumRef[value];
16032
16049
  }
16033
- class DeleteRetailPricingRequest {
16050
+ class CreateRetailSubscriptionGroupRequest {
16034
16051
  static fromProto(proto) {
16035
- let m = new DeleteRetailPricingRequest();
16052
+ let m = new CreateRetailSubscriptionGroupRequest();
16036
16053
  m = Object.assign(m, proto);
16054
+ if (proto.retailSubscriptionGroup) {
16055
+ m.retailSubscriptionGroup = RetailSubscriptionGroup.fromProto(proto.retailSubscriptionGroup);
16056
+ }
16037
16057
  return m;
16038
16058
  }
16039
16059
  constructor(kwargs) {
@@ -16044,34 +16064,16 @@ class DeleteRetailPricingRequest {
16044
16064
  }
16045
16065
  toApiJson() {
16046
16066
  const toReturn = {};
16047
- if (typeof this.merchantId !== 'undefined') {
16048
- toReturn['merchantId'] = this.merchantId;
16049
- }
16050
- if (typeof this.sku !== 'undefined') {
16051
- toReturn['sku'] = this.sku;
16052
- }
16053
- if (typeof this.groupId !== 'undefined') {
16054
- toReturn['groupId'] = this.groupId;
16055
- }
16056
- if (typeof this.customerId !== 'undefined') {
16057
- toReturn['customerId'] = this.customerId;
16058
- }
16059
- if (typeof this.subscriptionId !== 'undefined') {
16060
- toReturn['subscriptionId'] = this.subscriptionId;
16067
+ if (typeof this.retailSubscriptionGroup !== 'undefined' && this.retailSubscriptionGroup !== null) {
16068
+ toReturn['retailSubscriptionGroup'] = 'toApiJson' in this.retailSubscriptionGroup ? this.retailSubscriptionGroup.toApiJson() : this.retailSubscriptionGroup;
16061
16069
  }
16062
16070
  return toReturn;
16063
16071
  }
16064
16072
  }
16065
- class GenerateBillableItemsCSVRequest {
16073
+ class CreateRetailSubscriptionGroupResponse {
16066
16074
  static fromProto(proto) {
16067
- let m = new GenerateBillableItemsCSVRequest();
16075
+ let m = new CreateRetailSubscriptionGroupResponse();
16068
16076
  m = Object.assign(m, proto);
16069
- if (proto.periodStart) {
16070
- m.periodStart = new Date(proto.periodStart);
16071
- }
16072
- if (proto.periodEnd) {
16073
- m.periodEnd = new Date(proto.periodEnd);
16074
- }
16075
16077
  return m;
16076
16078
  }
16077
16079
  constructor(kwargs) {
@@ -16082,22 +16084,19 @@ class GenerateBillableItemsCSVRequest {
16082
16084
  }
16083
16085
  toApiJson() {
16084
16086
  const toReturn = {};
16085
- if (typeof this.merchantId !== 'undefined') {
16086
- toReturn['merchantId'] = this.merchantId;
16087
- }
16088
- if (typeof this.periodStart !== 'undefined' && this.periodStart !== null) {
16089
- toReturn['periodStart'] = 'toApiJson' in this.periodStart ? this.periodStart.toApiJson() : this.periodStart;
16090
- }
16091
- if (typeof this.periodEnd !== 'undefined' && this.periodEnd !== null) {
16092
- toReturn['periodEnd'] = 'toApiJson' in this.periodEnd ? this.periodEnd.toApiJson() : this.periodEnd;
16087
+ if (typeof this.id !== 'undefined') {
16088
+ toReturn['id'] = this.id;
16093
16089
  }
16094
16090
  return toReturn;
16095
16091
  }
16096
16092
  }
16097
- class GenerateBillableItemsCSVResponse {
16093
+ class RetailSubscriptionGroup {
16098
16094
  static fromProto(proto) {
16099
- let m = new GenerateBillableItemsCSVResponse();
16095
+ let m = new RetailSubscriptionGroup();
16100
16096
  m = Object.assign(m, proto);
16097
+ if (proto.displayOption) {
16098
+ m.displayOption = enumStringToValue$3(DisplayOption, proto.displayOption);
16099
+ }
16101
16100
  return m;
16102
16101
  }
16103
16102
  constructor(kwargs) {
@@ -16108,22 +16107,29 @@ class GenerateBillableItemsCSVResponse {
16108
16107
  }
16109
16108
  toApiJson() {
16110
16109
  const toReturn = {};
16111
- if (typeof this.url !== 'undefined') {
16112
- toReturn['url'] = this.url;
16110
+ if (typeof this.id !== 'undefined') {
16111
+ toReturn['id'] = this.id;
16112
+ }
16113
+ if (typeof this.name !== 'undefined') {
16114
+ toReturn['name'] = this.name;
16115
+ }
16116
+ if (typeof this.displayOption !== 'undefined') {
16117
+ toReturn['displayOption'] = this.displayOption;
16113
16118
  }
16114
16119
  return toReturn;
16115
16120
  }
16116
16121
  }
16117
- class GenerateVendorReportRequest {
16122
+
16123
+ function enumStringToValue$2(enumRef, value) {
16124
+ if (typeof value === 'number') {
16125
+ return value;
16126
+ }
16127
+ return enumRef[value];
16128
+ }
16129
+ class GetVendorSplitRequest {
16118
16130
  static fromProto(proto) {
16119
- let m = new GenerateVendorReportRequest();
16131
+ let m = new GetVendorSplitRequest();
16120
16132
  m = Object.assign(m, proto);
16121
- if (proto.periodStart) {
16122
- m.periodStart = new Date(proto.periodStart);
16123
- }
16124
- if (proto.periodEnd) {
16125
- m.periodEnd = new Date(proto.periodEnd);
16126
- }
16127
16133
  return m;
16128
16134
  }
16129
16135
  constructor(kwargs) {
@@ -16134,31 +16140,19 @@ class GenerateVendorReportRequest {
16134
16140
  }
16135
16141
  toApiJson() {
16136
16142
  const toReturn = {};
16137
- if (typeof this.skus !== 'undefined') {
16138
- toReturn['skus'] = this.skus;
16139
- }
16140
- if (typeof this.periodStart !== 'undefined' && this.periodStart !== null) {
16141
- toReturn['periodStart'] = 'toApiJson' in this.periodStart ? this.periodStart.toApiJson() : this.periodStart;
16142
- }
16143
- if (typeof this.periodEnd !== 'undefined' && this.periodEnd !== null) {
16144
- toReturn['periodEnd'] = 'toApiJson' in this.periodEnd ? this.periodEnd.toApiJson() : this.periodEnd;
16145
- }
16146
- if (typeof this.vendorName !== 'undefined') {
16147
- toReturn['vendorName'] = this.vendorName;
16148
- }
16149
- if (typeof this.markAsApproved !== 'undefined') {
16150
- toReturn['markAsApproved'] = this.markAsApproved;
16151
- }
16152
- if (typeof this.vendorMerchantId !== 'undefined') {
16153
- toReturn['vendorMerchantId'] = this.vendorMerchantId;
16143
+ if (typeof this.sku !== 'undefined') {
16144
+ toReturn['sku'] = this.sku;
16154
16145
  }
16155
16146
  return toReturn;
16156
16147
  }
16157
16148
  }
16158
- class GenerateVendorReportResponse {
16149
+ class GetVendorSplitResponse {
16159
16150
  static fromProto(proto) {
16160
- let m = new GenerateVendorReportResponse();
16151
+ let m = new GetVendorSplitResponse();
16161
16152
  m = Object.assign(m, proto);
16153
+ if (proto.vendorSplit) {
16154
+ m.vendorSplit = VendorSplit.fromProto(proto.vendorSplit);
16155
+ }
16162
16156
  return m;
16163
16157
  }
16164
16158
  constructor(kwargs) {
@@ -16169,22 +16163,19 @@ class GenerateVendorReportResponse {
16169
16163
  }
16170
16164
  toApiJson() {
16171
16165
  const toReturn = {};
16172
- if (typeof this.url !== 'undefined') {
16173
- toReturn['url'] = this.url;
16174
- }
16175
- if (typeof this.bucket !== 'undefined') {
16176
- toReturn['bucket'] = this.bucket;
16177
- }
16178
- if (typeof this.filename !== 'undefined') {
16179
- toReturn['filename'] = this.filename;
16166
+ if (typeof this.vendorSplit !== 'undefined' && this.vendorSplit !== null) {
16167
+ toReturn['vendorSplit'] = 'toApiJson' in this.vendorSplit ? this.vendorSplit.toApiJson() : this.vendorSplit;
16180
16168
  }
16181
16169
  return toReturn;
16182
16170
  }
16183
16171
  }
16184
- class GetMultiBundleRetailPricingRequest {
16172
+ class UpsertVendorSplitRequest {
16185
16173
  static fromProto(proto) {
16186
- let m = new GetMultiBundleRetailPricingRequest();
16174
+ let m = new UpsertVendorSplitRequest();
16187
16175
  m = Object.assign(m, proto);
16176
+ if (proto.vendorSplit) {
16177
+ m.vendorSplit = VendorSplit.fromProto(proto.vendorSplit);
16178
+ }
16188
16179
  return m;
16189
16180
  }
16190
16181
  constructor(kwargs) {
@@ -16195,24 +16186,18 @@ class GetMultiBundleRetailPricingRequest {
16195
16186
  }
16196
16187
  toApiJson() {
16197
16188
  const toReturn = {};
16198
- if (typeof this.merchantId !== 'undefined') {
16199
- toReturn['merchantId'] = this.merchantId;
16200
- }
16201
- if (typeof this.storeId !== 'undefined') {
16202
- toReturn['storeId'] = this.storeId;
16203
- }
16204
- if (typeof this.bundleIds !== 'undefined') {
16205
- toReturn['bundleIds'] = this.bundleIds;
16189
+ if (typeof this.vendorSplit !== 'undefined' && this.vendorSplit !== null) {
16190
+ toReturn['vendorSplit'] = 'toApiJson' in this.vendorSplit ? this.vendorSplit.toApiJson() : this.vendorSplit;
16206
16191
  }
16207
16192
  return toReturn;
16208
16193
  }
16209
16194
  }
16210
- class GetMultiBundleRetailPricingResponse {
16195
+ class UpsertVendorSplitResponse {
16211
16196
  static fromProto(proto) {
16212
- let m = new GetMultiBundleRetailPricingResponse();
16197
+ let m = new UpsertVendorSplitResponse();
16213
16198
  m = Object.assign(m, proto);
16214
- if (proto.prices) {
16215
- m.prices = Object.keys(proto.prices).reduce((obj, k) => { obj[k] = BundlePricing.fromProto(proto.prices[k]); return obj; }, {});
16199
+ if (proto.vendorSplit) {
16200
+ m.vendorSplit = VendorSplit.fromProto(proto.vendorSplit);
16216
16201
  }
16217
16202
  return m;
16218
16203
  }
@@ -16224,15 +16209,15 @@ class GetMultiBundleRetailPricingResponse {
16224
16209
  }
16225
16210
  toApiJson() {
16226
16211
  const toReturn = {};
16227
- if (typeof this.prices !== 'undefined' && this.prices !== null) {
16228
- toReturn['prices'] = 'toApiJson' in this.prices ? this.prices.toApiJson() : this.prices;
16212
+ if (typeof this.vendorSplit !== 'undefined' && this.vendorSplit !== null) {
16213
+ toReturn['vendorSplit'] = 'toApiJson' in this.vendorSplit ? this.vendorSplit.toApiJson() : this.vendorSplit;
16229
16214
  }
16230
16215
  return toReturn;
16231
16216
  }
16232
16217
  }
16233
- class GetMultiProductPricingRequest {
16218
+ class VendorSplit {
16234
16219
  static fromProto(proto) {
16235
- let m = new GetMultiProductPricingRequest();
16220
+ let m = new VendorSplit();
16236
16221
  m = Object.assign(m, proto);
16237
16222
  return m;
16238
16223
  }
@@ -16244,24 +16229,457 @@ class GetMultiProductPricingRequest {
16244
16229
  }
16245
16230
  toApiJson() {
16246
16231
  const toReturn = {};
16247
- if (typeof this.merchantId !== 'undefined') {
16248
- toReturn['merchantId'] = this.merchantId;
16232
+ if (typeof this.sku !== 'undefined') {
16233
+ toReturn['sku'] = this.sku;
16249
16234
  }
16250
- if (typeof this.skus !== 'undefined') {
16251
- toReturn['skus'] = this.skus;
16235
+ if (typeof this.productPrice !== 'undefined') {
16236
+ toReturn['productPrice'] = this.productPrice;
16252
16237
  }
16253
- if (typeof this.pricingPlanId !== 'undefined') {
16254
- toReturn['pricingPlanId'] = this.pricingPlanId;
16238
+ if (typeof this.setupFee !== 'undefined') {
16239
+ toReturn['setupFee'] = this.setupFee;
16240
+ }
16241
+ if (typeof this.managementFee !== 'undefined') {
16242
+ toReturn['managementFee'] = this.managementFee;
16255
16243
  }
16256
16244
  return toReturn;
16257
16245
  }
16258
16246
  }
16259
- class GetMultiProductPricingResponse {
16260
- static fromProto(proto) {
16261
- let m = new GetMultiProductPricingResponse();
16262
- m = Object.assign(m, proto);
16263
- if (proto.productPrices) {
16264
- m.productPrices = Object.keys(proto.productPrices).reduce((obj, k) => { obj[k] = ProductPricing.fromProto(proto.productPrices[k]); return obj; }, {});
16247
+
16248
+ function enumStringToValue$1(enumRef, value) {
16249
+ if (typeof value === 'number') {
16250
+ return value;
16251
+ }
16252
+ return enumRef[value];
16253
+ }
16254
+ class AvalaraConfiguration {
16255
+ static fromProto(proto) {
16256
+ let m = new AvalaraConfiguration();
16257
+ m = Object.assign(m, proto);
16258
+ return m;
16259
+ }
16260
+ constructor(kwargs) {
16261
+ if (!kwargs) {
16262
+ return;
16263
+ }
16264
+ Object.assign(this, kwargs);
16265
+ }
16266
+ toApiJson() {
16267
+ const toReturn = {};
16268
+ if (typeof this.merchantId !== 'undefined') {
16269
+ toReturn['merchantId'] = this.merchantId;
16270
+ }
16271
+ if (typeof this.companyCode !== 'undefined') {
16272
+ toReturn['companyCode'] = this.companyCode;
16273
+ }
16274
+ if (typeof this.accountId !== 'undefined') {
16275
+ toReturn['accountId'] = this.accountId;
16276
+ }
16277
+ if (typeof this.licenseKey !== 'undefined') {
16278
+ toReturn['licenseKey'] = this.licenseKey;
16279
+ }
16280
+ return toReturn;
16281
+ }
16282
+ }
16283
+ class CreateAvalaraConfigurationRequest {
16284
+ static fromProto(proto) {
16285
+ let m = new CreateAvalaraConfigurationRequest();
16286
+ m = Object.assign(m, proto);
16287
+ if (proto.configuration) {
16288
+ m.configuration = AvalaraConfiguration.fromProto(proto.configuration);
16289
+ }
16290
+ return m;
16291
+ }
16292
+ constructor(kwargs) {
16293
+ if (!kwargs) {
16294
+ return;
16295
+ }
16296
+ Object.assign(this, kwargs);
16297
+ }
16298
+ toApiJson() {
16299
+ const toReturn = {};
16300
+ if (typeof this.configuration !== 'undefined' && this.configuration !== null) {
16301
+ toReturn['configuration'] = 'toApiJson' in this.configuration ? this.configuration.toApiJson() : this.configuration;
16302
+ }
16303
+ return toReturn;
16304
+ }
16305
+ }
16306
+ class CreateAvalaraConfigurationResponse {
16307
+ static fromProto(proto) {
16308
+ let m = new CreateAvalaraConfigurationResponse();
16309
+ m = Object.assign(m, proto);
16310
+ if (proto.configuration) {
16311
+ m.configuration = AvalaraConfiguration.fromProto(proto.configuration);
16312
+ }
16313
+ return m;
16314
+ }
16315
+ constructor(kwargs) {
16316
+ if (!kwargs) {
16317
+ return;
16318
+ }
16319
+ Object.assign(this, kwargs);
16320
+ }
16321
+ toApiJson() {
16322
+ const toReturn = {};
16323
+ if (typeof this.configuration !== 'undefined' && this.configuration !== null) {
16324
+ toReturn['configuration'] = 'toApiJson' in this.configuration ? this.configuration.toApiJson() : this.configuration;
16325
+ }
16326
+ return toReturn;
16327
+ }
16328
+ }
16329
+ class DeleteAvalaraConfigurationRequest {
16330
+ static fromProto(proto) {
16331
+ let m = new DeleteAvalaraConfigurationRequest();
16332
+ m = Object.assign(m, proto);
16333
+ return m;
16334
+ }
16335
+ constructor(kwargs) {
16336
+ if (!kwargs) {
16337
+ return;
16338
+ }
16339
+ Object.assign(this, kwargs);
16340
+ }
16341
+ toApiJson() {
16342
+ const toReturn = {};
16343
+ if (typeof this.merchantId !== 'undefined') {
16344
+ toReturn['merchantId'] = this.merchantId;
16345
+ }
16346
+ return toReturn;
16347
+ }
16348
+ }
16349
+ class GetAvalaraConfigurationRequest {
16350
+ static fromProto(proto) {
16351
+ let m = new GetAvalaraConfigurationRequest();
16352
+ m = Object.assign(m, proto);
16353
+ return m;
16354
+ }
16355
+ constructor(kwargs) {
16356
+ if (!kwargs) {
16357
+ return;
16358
+ }
16359
+ Object.assign(this, kwargs);
16360
+ }
16361
+ toApiJson() {
16362
+ const toReturn = {};
16363
+ if (typeof this.merchantId !== 'undefined') {
16364
+ toReturn['merchantId'] = this.merchantId;
16365
+ }
16366
+ return toReturn;
16367
+ }
16368
+ }
16369
+ class GetAvalaraConfigurationResponse {
16370
+ static fromProto(proto) {
16371
+ let m = new GetAvalaraConfigurationResponse();
16372
+ m = Object.assign(m, proto);
16373
+ if (proto.configuration) {
16374
+ m.configuration = AvalaraConfiguration.fromProto(proto.configuration);
16375
+ }
16376
+ return m;
16377
+ }
16378
+ constructor(kwargs) {
16379
+ if (!kwargs) {
16380
+ return;
16381
+ }
16382
+ Object.assign(this, kwargs);
16383
+ }
16384
+ toApiJson() {
16385
+ const toReturn = {};
16386
+ if (typeof this.configuration !== 'undefined' && this.configuration !== null) {
16387
+ toReturn['configuration'] = 'toApiJson' in this.configuration ? this.configuration.toApiJson() : this.configuration;
16388
+ }
16389
+ return toReturn;
16390
+ }
16391
+ }
16392
+ class UpdateAvalaraConfigurationRequest {
16393
+ static fromProto(proto) {
16394
+ let m = new UpdateAvalaraConfigurationRequest();
16395
+ m = Object.assign(m, proto);
16396
+ if (proto.configuration) {
16397
+ m.configuration = AvalaraConfiguration.fromProto(proto.configuration);
16398
+ }
16399
+ if (proto.fieldMask) {
16400
+ m.fieldMask = FieldMask.fromProto(proto.fieldMask);
16401
+ }
16402
+ return m;
16403
+ }
16404
+ constructor(kwargs) {
16405
+ if (!kwargs) {
16406
+ return;
16407
+ }
16408
+ Object.assign(this, kwargs);
16409
+ }
16410
+ toApiJson() {
16411
+ const toReturn = {};
16412
+ if (typeof this.configuration !== 'undefined' && this.configuration !== null) {
16413
+ toReturn['configuration'] = 'toApiJson' in this.configuration ? this.configuration.toApiJson() : this.configuration;
16414
+ }
16415
+ if (typeof this.fieldMask !== 'undefined' && this.fieldMask !== null) {
16416
+ toReturn['fieldMask'] = 'toApiJson' in this.fieldMask ? this.fieldMask.toApiJson() : this.fieldMask;
16417
+ }
16418
+ return toReturn;
16419
+ }
16420
+ }
16421
+ class UpdateAvalaraConfigurationResponse {
16422
+ static fromProto(proto) {
16423
+ let m = new UpdateAvalaraConfigurationResponse();
16424
+ m = Object.assign(m, proto);
16425
+ if (proto.configuration) {
16426
+ m.configuration = AvalaraConfiguration.fromProto(proto.configuration);
16427
+ }
16428
+ return m;
16429
+ }
16430
+ constructor(kwargs) {
16431
+ if (!kwargs) {
16432
+ return;
16433
+ }
16434
+ Object.assign(this, kwargs);
16435
+ }
16436
+ toApiJson() {
16437
+ const toReturn = {};
16438
+ if (typeof this.configuration !== 'undefined' && this.configuration !== null) {
16439
+ toReturn['configuration'] = 'toApiJson' in this.configuration ? this.configuration.toApiJson() : this.configuration;
16440
+ }
16441
+ return toReturn;
16442
+ }
16443
+ }
16444
+
16445
+ function enumStringToValue(enumRef, value) {
16446
+ if (typeof value === 'number') {
16447
+ return value;
16448
+ }
16449
+ return enumRef[value];
16450
+ }
16451
+ class DeleteRetailPricingRequest {
16452
+ static fromProto(proto) {
16453
+ let m = new DeleteRetailPricingRequest();
16454
+ m = Object.assign(m, proto);
16455
+ return m;
16456
+ }
16457
+ constructor(kwargs) {
16458
+ if (!kwargs) {
16459
+ return;
16460
+ }
16461
+ Object.assign(this, kwargs);
16462
+ }
16463
+ toApiJson() {
16464
+ const toReturn = {};
16465
+ if (typeof this.merchantId !== 'undefined') {
16466
+ toReturn['merchantId'] = this.merchantId;
16467
+ }
16468
+ if (typeof this.sku !== 'undefined') {
16469
+ toReturn['sku'] = this.sku;
16470
+ }
16471
+ if (typeof this.groupId !== 'undefined') {
16472
+ toReturn['groupId'] = this.groupId;
16473
+ }
16474
+ if (typeof this.customerId !== 'undefined') {
16475
+ toReturn['customerId'] = this.customerId;
16476
+ }
16477
+ if (typeof this.subscriptionId !== 'undefined') {
16478
+ toReturn['subscriptionId'] = this.subscriptionId;
16479
+ }
16480
+ return toReturn;
16481
+ }
16482
+ }
16483
+ class GenerateBillableItemsCSVRequest {
16484
+ static fromProto(proto) {
16485
+ let m = new GenerateBillableItemsCSVRequest();
16486
+ m = Object.assign(m, proto);
16487
+ if (proto.periodStart) {
16488
+ m.periodStart = new Date(proto.periodStart);
16489
+ }
16490
+ if (proto.periodEnd) {
16491
+ m.periodEnd = new Date(proto.periodEnd);
16492
+ }
16493
+ return m;
16494
+ }
16495
+ constructor(kwargs) {
16496
+ if (!kwargs) {
16497
+ return;
16498
+ }
16499
+ Object.assign(this, kwargs);
16500
+ }
16501
+ toApiJson() {
16502
+ const toReturn = {};
16503
+ if (typeof this.merchantId !== 'undefined') {
16504
+ toReturn['merchantId'] = this.merchantId;
16505
+ }
16506
+ if (typeof this.periodStart !== 'undefined' && this.periodStart !== null) {
16507
+ toReturn['periodStart'] = 'toApiJson' in this.periodStart ? this.periodStart.toApiJson() : this.periodStart;
16508
+ }
16509
+ if (typeof this.periodEnd !== 'undefined' && this.periodEnd !== null) {
16510
+ toReturn['periodEnd'] = 'toApiJson' in this.periodEnd ? this.periodEnd.toApiJson() : this.periodEnd;
16511
+ }
16512
+ return toReturn;
16513
+ }
16514
+ }
16515
+ class GenerateBillableItemsCSVResponse {
16516
+ static fromProto(proto) {
16517
+ let m = new GenerateBillableItemsCSVResponse();
16518
+ m = Object.assign(m, proto);
16519
+ return m;
16520
+ }
16521
+ constructor(kwargs) {
16522
+ if (!kwargs) {
16523
+ return;
16524
+ }
16525
+ Object.assign(this, kwargs);
16526
+ }
16527
+ toApiJson() {
16528
+ const toReturn = {};
16529
+ if (typeof this.url !== 'undefined') {
16530
+ toReturn['url'] = this.url;
16531
+ }
16532
+ return toReturn;
16533
+ }
16534
+ }
16535
+ class GenerateVendorReportRequest {
16536
+ static fromProto(proto) {
16537
+ let m = new GenerateVendorReportRequest();
16538
+ m = Object.assign(m, proto);
16539
+ if (proto.periodStart) {
16540
+ m.periodStart = new Date(proto.periodStart);
16541
+ }
16542
+ if (proto.periodEnd) {
16543
+ m.periodEnd = new Date(proto.periodEnd);
16544
+ }
16545
+ return m;
16546
+ }
16547
+ constructor(kwargs) {
16548
+ if (!kwargs) {
16549
+ return;
16550
+ }
16551
+ Object.assign(this, kwargs);
16552
+ }
16553
+ toApiJson() {
16554
+ const toReturn = {};
16555
+ if (typeof this.skus !== 'undefined') {
16556
+ toReturn['skus'] = this.skus;
16557
+ }
16558
+ if (typeof this.periodStart !== 'undefined' && this.periodStart !== null) {
16559
+ toReturn['periodStart'] = 'toApiJson' in this.periodStart ? this.periodStart.toApiJson() : this.periodStart;
16560
+ }
16561
+ if (typeof this.periodEnd !== 'undefined' && this.periodEnd !== null) {
16562
+ toReturn['periodEnd'] = 'toApiJson' in this.periodEnd ? this.periodEnd.toApiJson() : this.periodEnd;
16563
+ }
16564
+ if (typeof this.vendorName !== 'undefined') {
16565
+ toReturn['vendorName'] = this.vendorName;
16566
+ }
16567
+ if (typeof this.markAsApproved !== 'undefined') {
16568
+ toReturn['markAsApproved'] = this.markAsApproved;
16569
+ }
16570
+ if (typeof this.vendorMerchantId !== 'undefined') {
16571
+ toReturn['vendorMerchantId'] = this.vendorMerchantId;
16572
+ }
16573
+ return toReturn;
16574
+ }
16575
+ }
16576
+ class GenerateVendorReportResponse {
16577
+ static fromProto(proto) {
16578
+ let m = new GenerateVendorReportResponse();
16579
+ m = Object.assign(m, proto);
16580
+ return m;
16581
+ }
16582
+ constructor(kwargs) {
16583
+ if (!kwargs) {
16584
+ return;
16585
+ }
16586
+ Object.assign(this, kwargs);
16587
+ }
16588
+ toApiJson() {
16589
+ const toReturn = {};
16590
+ if (typeof this.url !== 'undefined') {
16591
+ toReturn['url'] = this.url;
16592
+ }
16593
+ if (typeof this.bucket !== 'undefined') {
16594
+ toReturn['bucket'] = this.bucket;
16595
+ }
16596
+ if (typeof this.filename !== 'undefined') {
16597
+ toReturn['filename'] = this.filename;
16598
+ }
16599
+ return toReturn;
16600
+ }
16601
+ }
16602
+ class GetMultiBundleRetailPricingRequest {
16603
+ static fromProto(proto) {
16604
+ let m = new GetMultiBundleRetailPricingRequest();
16605
+ m = Object.assign(m, proto);
16606
+ return m;
16607
+ }
16608
+ constructor(kwargs) {
16609
+ if (!kwargs) {
16610
+ return;
16611
+ }
16612
+ Object.assign(this, kwargs);
16613
+ }
16614
+ toApiJson() {
16615
+ const toReturn = {};
16616
+ if (typeof this.merchantId !== 'undefined') {
16617
+ toReturn['merchantId'] = this.merchantId;
16618
+ }
16619
+ if (typeof this.storeId !== 'undefined') {
16620
+ toReturn['storeId'] = this.storeId;
16621
+ }
16622
+ if (typeof this.bundleIds !== 'undefined') {
16623
+ toReturn['bundleIds'] = this.bundleIds;
16624
+ }
16625
+ return toReturn;
16626
+ }
16627
+ }
16628
+ class GetMultiBundleRetailPricingResponse {
16629
+ static fromProto(proto) {
16630
+ let m = new GetMultiBundleRetailPricingResponse();
16631
+ m = Object.assign(m, proto);
16632
+ if (proto.prices) {
16633
+ m.prices = Object.keys(proto.prices).reduce((obj, k) => { obj[k] = BundlePricing.fromProto(proto.prices[k]); return obj; }, {});
16634
+ }
16635
+ return m;
16636
+ }
16637
+ constructor(kwargs) {
16638
+ if (!kwargs) {
16639
+ return;
16640
+ }
16641
+ Object.assign(this, kwargs);
16642
+ }
16643
+ toApiJson() {
16644
+ const toReturn = {};
16645
+ if (typeof this.prices !== 'undefined' && this.prices !== null) {
16646
+ toReturn['prices'] = 'toApiJson' in this.prices ? this.prices.toApiJson() : this.prices;
16647
+ }
16648
+ return toReturn;
16649
+ }
16650
+ }
16651
+ class GetMultiProductPricingRequest {
16652
+ static fromProto(proto) {
16653
+ let m = new GetMultiProductPricingRequest();
16654
+ m = Object.assign(m, proto);
16655
+ return m;
16656
+ }
16657
+ constructor(kwargs) {
16658
+ if (!kwargs) {
16659
+ return;
16660
+ }
16661
+ Object.assign(this, kwargs);
16662
+ }
16663
+ toApiJson() {
16664
+ const toReturn = {};
16665
+ if (typeof this.merchantId !== 'undefined') {
16666
+ toReturn['merchantId'] = this.merchantId;
16667
+ }
16668
+ if (typeof this.skus !== 'undefined') {
16669
+ toReturn['skus'] = this.skus;
16670
+ }
16671
+ if (typeof this.pricingPlanId !== 'undefined') {
16672
+ toReturn['pricingPlanId'] = this.pricingPlanId;
16673
+ }
16674
+ return toReturn;
16675
+ }
16676
+ }
16677
+ class GetMultiProductPricingResponse {
16678
+ static fromProto(proto) {
16679
+ let m = new GetMultiProductPricingResponse();
16680
+ m = Object.assign(m, proto);
16681
+ if (proto.productPrices) {
16682
+ m.productPrices = Object.keys(proto.productPrices).reduce((obj, k) => { obj[k] = ProductPricing.fromProto(proto.productPrices[k]); return obj; }, {});
16265
16683
  }
16266
16684
  if (proto.prices) {
16267
16685
  m.prices = proto.prices.map(ProductPrices.fromProto);
@@ -16972,6 +17390,53 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.5", ngImpor
16972
17390
  args: [{ providedIn: 'root' }]
16973
17391
  }] });
16974
17392
 
17393
+ // *********************************
17394
+ // Code generated by sdkgen
17395
+ // DO NOT EDIT!.
17396
+ //
17397
+ // API Service.
17398
+ // *********************************
17399
+ class AvalaraConfigurationApiService {
17400
+ constructor() {
17401
+ this.hostService = inject(HostService);
17402
+ this.http = inject(HttpClient);
17403
+ this._host = this.hostService.hostWithScheme;
17404
+ }
17405
+ apiOptions() {
17406
+ return {
17407
+ headers: new HttpHeaders({
17408
+ 'Content-Type': 'application/json'
17409
+ }),
17410
+ withCredentials: true
17411
+ };
17412
+ }
17413
+ get(r) {
17414
+ const request = (r.toApiJson) ? r : new GetAvalaraConfigurationRequest(r);
17415
+ return this.http.post(this._host + "/billing.v1.AvalaraConfigurationService/Get", request.toApiJson(), this.apiOptions())
17416
+ .pipe(map(resp => GetAvalaraConfigurationResponse.fromProto(resp)));
17417
+ }
17418
+ create(r) {
17419
+ const request = (r.toApiJson) ? r : new CreateAvalaraConfigurationRequest(r);
17420
+ return this.http.post(this._host + "/billing.v1.AvalaraConfigurationService/Create", request.toApiJson(), this.apiOptions())
17421
+ .pipe(map(resp => CreateAvalaraConfigurationResponse.fromProto(resp)));
17422
+ }
17423
+ update(r) {
17424
+ const request = (r.toApiJson) ? r : new UpdateAvalaraConfigurationRequest(r);
17425
+ return this.http.post(this._host + "/billing.v1.AvalaraConfigurationService/Update", request.toApiJson(), this.apiOptions())
17426
+ .pipe(map(resp => UpdateAvalaraConfigurationResponse.fromProto(resp)));
17427
+ }
17428
+ delete(r) {
17429
+ const request = (r.toApiJson) ? r : new DeleteAvalaraConfigurationRequest(r);
17430
+ return this.http.post(this._host + "/billing.v1.AvalaraConfigurationService/Delete", request.toApiJson(), { ...this.apiOptions(), observe: 'response' });
17431
+ }
17432
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.5", ngImport: i0, type: AvalaraConfigurationApiService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
17433
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.0.5", ngImport: i0, type: AvalaraConfigurationApiService, providedIn: 'root' }); }
17434
+ }
17435
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.5", ngImport: i0, type: AvalaraConfigurationApiService, decorators: [{
17436
+ type: Injectable,
17437
+ args: [{ providedIn: 'root' }]
17438
+ }] });
17439
+
16975
17440
  // *********************************
16976
17441
  // Code generated by sdkgen
16977
17442
  // DO NOT EDIT!.
@@ -18328,6 +18793,39 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.5", ngImpor
18328
18793
  args: [{ providedIn: 'root' }]
18329
18794
  }] });
18330
18795
 
18796
+ // *********************************
18797
+ // Code generated by sdkgen
18798
+ // DO NOT EDIT!.
18799
+ //
18800
+ // API Service.
18801
+ // *********************************
18802
+ class RetailSubscriptionGroupApiService {
18803
+ constructor() {
18804
+ this.hostService = inject(HostService);
18805
+ this.http = inject(HttpClient);
18806
+ this._host = this.hostService.hostWithScheme;
18807
+ }
18808
+ apiOptions() {
18809
+ return {
18810
+ headers: new HttpHeaders({
18811
+ 'Content-Type': 'application/json'
18812
+ }),
18813
+ withCredentials: true
18814
+ };
18815
+ }
18816
+ createRetailSubscriptionGroup(r) {
18817
+ const request = (r.toApiJson) ? r : new CreateRetailSubscriptionGroupRequest(r);
18818
+ return this.http.post(this._host + "/billing.v1.RetailSubscriptionGroupService/CreateRetailSubscriptionGroup", request.toApiJson(), this.apiOptions())
18819
+ .pipe(map(resp => CreateRetailSubscriptionGroupResponse.fromProto(resp)));
18820
+ }
18821
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.5", ngImport: i0, type: RetailSubscriptionGroupApiService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
18822
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.0.5", ngImport: i0, type: RetailSubscriptionGroupApiService, providedIn: 'root' }); }
18823
+ }
18824
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.5", ngImport: i0, type: RetailSubscriptionGroupApiService, decorators: [{
18825
+ type: Injectable,
18826
+ args: [{ providedIn: 'root' }]
18827
+ }] });
18828
+
18331
18829
  // *********************************
18332
18830
  // Code generated by sdkgen
18333
18831
  // DO NOT EDIT!.
@@ -18578,6 +19076,44 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.5", ngImpor
18578
19076
  args: [{ providedIn: 'root' }]
18579
19077
  }] });
18580
19078
 
19079
+ // *********************************
19080
+ // Code generated by sdkgen
19081
+ // DO NOT EDIT!.
19082
+ //
19083
+ // API Service.
19084
+ // *********************************
19085
+ class VendorSplitApiService {
19086
+ constructor() {
19087
+ this.hostService = inject(HostService);
19088
+ this.http = inject(HttpClient);
19089
+ this._host = this.hostService.hostWithScheme;
19090
+ }
19091
+ apiOptions() {
19092
+ return {
19093
+ headers: new HttpHeaders({
19094
+ 'Content-Type': 'application/json'
19095
+ }),
19096
+ withCredentials: true
19097
+ };
19098
+ }
19099
+ get(r) {
19100
+ const request = (r.toApiJson) ? r : new GetVendorSplitRequest(r);
19101
+ return this.http.post(this._host + "/billing.v1.VendorSplitService/Get", request.toApiJson(), this.apiOptions())
19102
+ .pipe(map(resp => GetVendorSplitResponse.fromProto(resp)));
19103
+ }
19104
+ upsert(r) {
19105
+ const request = (r.toApiJson) ? r : new UpsertVendorSplitRequest(r);
19106
+ return this.http.post(this._host + "/billing.v1.VendorSplitService/Upsert", request.toApiJson(), this.apiOptions())
19107
+ .pipe(map(resp => UpsertVendorSplitResponse.fromProto(resp)));
19108
+ }
19109
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.5", ngImport: i0, type: VendorSplitApiService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
19110
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.0.5", ngImport: i0, type: VendorSplitApiService, providedIn: 'root' }); }
19111
+ }
19112
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.5", ngImport: i0, type: VendorSplitApiService, decorators: [{
19113
+ type: Injectable,
19114
+ args: [{ providedIn: 'root' }]
19115
+ }] });
19116
+
18581
19117
  // *********************************
18582
19118
  // Code generated by sdkgen
18583
19119
  // DO NOT EDIT!.
@@ -18592,5 +19128,5 @@ const usdConversionRate = 1.4;
18592
19128
  * Generated bundle index. Do not edit.
18593
19129
  */
18594
19130
 
18595
- export { Access, AccountBalance, AddBundleRequest, AddBundleResponse, AddCreditRequest, AddLineItemRequest, AddLineItemResponse, Adjustment, AlignmentSubscription, AppliedBundle, AppliedBundleItem, AppliedCredit, AppliedCreditNote, AppliedDiscount, AppliedFee, AppliedReferenceType, AppliedTaxRate, AppliedTo, ArchiveTaxRequest, 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, CreateContractRequest, CreateContractResponse, CreateCreditNoteRequest, CreateCreditNoteResponse, CreateDiscountRequest, CreateDiscountResponse, CreateInvoiceRequest, CreateInvoiceResponse, CreateMerchantRequest, CreateMerchantRequestIncludeInFinancialRecords, CreateMerchantServicesReportRun, CreateMeteredComponentRequest, CreatePaymentCardRequest, CreatePaymentLinkRequest, CreatePaymentLinkResponse, CreatePricingPlanProductRequest, CreatePricingPlanProductRequestPricingEntry, CreatePricingPlanProductResponse, CreatePricingPlanRequest, CreatePricingPlanResponse, CreateProductRequest, CreateRefundRequest, CreateSalesCreditNoteRequest, CreateStripeExternalAccountRequest, CreateSubscriptionRequest, CreateSubscriptionResponse, CreateSubscriptionsRequest, CreateSubscriptionsResponse, CreateTaxRequest, CreateTaxResponse, CreateUsageRequest, CreditApiService, CreditBalance, CreditNote, CreditNoteApiService, CreditNoteReason, CreditNoteType, CreditType, Currency, CustomerSummary, DateRange, DefaultCustomerConfiguration, DeleteBankAccountRequest, DeleteBillableItemRequest, DeleteContractDocumentRequest, DeleteInvoiceRequest, DeleteLineItemRequest, DeleteLineItemResponse, DeletePaymentCardRequest, DeletePricingPlanProductRequest, DeleteProductRequest, DeleteRecurringInvoiceRequest, DeleteRetailPricingRequest, DeleteTaxRuleRequest, Discount, DiscountApiService, DiscountType, Dispute, DisputeEvidence, DisputeEvidenceDetails, DisputeStatus, DuplicateInvoiceRequest, DuplicateInvoiceResponse, EntityType, ExpireBillableItemRequest, ExpireDiscountRequest, ExportResponse, ExportSubscriptionsRequest, Fee, FeeAmountType, FeeType, FieldMask, File, Frequency, GenerateBillableItemsCSVRequest, GenerateBillableItemsCSVResponse, GenerateVendorReportRequest, GenerateVendorReportResponse, 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, GetMultiSubscriptionRelationshipsRequest, GetMultiSubscriptionRelationshipsResponse, GetMultiSubscriptionsRequest, GetMultiSubscriptionsRequestKey, GetMultiSubscriptionsResponse, GetMultiTaxRequest, GetMultiTaxResponse, 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, GetWholesaleComparisonRequest, GetWholesaleComparisonRequestGetWholesaleComparisonFilters, GetWholesaleComparisonResponse, GetWholesaleComparisonResponseGetWholesaleComparisonResult, GetWholesaleProviderPublicKeyRequest, GetWholesaleProviderPublicKeyResponse, HostService, Interval, Invoice, InvoiceApiService, InvoiceCustomerAddress, InvoiceItem, InvoiceItemRetailSubscriptionGroup, InvoiceStatus, Item, 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, 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, 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, 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, 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, UpdateBundleRequest, UpdateBundleResponse, UpdateContractRequest, UpdateContractRequestMutation, UpdateContractResponse, UpdateContractSubscriptionRequest, UpdateDefaultTaxRatesRequest, UpdateDefaultTaxRatesResponse, UpdateDiscountRequest, UpdateInvoiceRequest, UpdateInvoiceResponse, UpdateLineItemRequest, UpdateLineItemResponse, UpdateMerchantRequest, UpdateMerchantRequestIncludeInFinancialRecords, UpdatePaymentCardRequest, UpdatePricingPlanProductRequest, UpdatePricingPlanProductRequestPricingEntry, UpdatePricingPlanProductResponse, UpdatePricingPlanRequest, UpdatePricingPlanResponse, UpdateProductRequest, UpdateRecurringInvoiceRequest, UpdateRetailPaymentProviderRequest, UpdateSubscriptionRequest, UpdateSubscriptionRequestSubscription, UpdateSubscriptionResponse, UpdateTaxRequest, UpsertBundleRequest, UpsertDefaultRetailCustomerConfigurationRequest, UpsertRetailConfigurationRequest, UpsertRetailCustomerConfigurationRequest, UpsertRetailPricingRequest, UpsertRetailPricingRequestPricingEntry, UpsertWholesalePricingRequest, ValidateResponse, VendorApiService, VoidInvoiceRequest, VoidPurchaseRequest, WholesaleCostItemRequest, usdConversionRate };
19131
+ 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, GetMultiSubscriptionRelationshipsRequest, GetMultiSubscriptionRelationshipsResponse, GetMultiSubscriptionsRequest, GetMultiSubscriptionsRequestKey, GetMultiSubscriptionsResponse, GetMultiTaxRequest, GetMultiTaxResponse, 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, 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, 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, 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, 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, UpdateSubscriptionRequest, UpdateSubscriptionRequestSubscription, UpdateSubscriptionResponse, UpdateTaxRequest, UpsertBundleRequest, UpsertDefaultRetailCustomerConfigurationRequest, UpsertRetailConfigurationRequest, UpsertRetailCustomerConfigurationRequest, UpsertRetailPricingRequest, UpsertRetailPricingRequestPricingEntry, UpsertVendorSplitRequest, UpsertVendorSplitResponse, UpsertWholesalePricingRequest, ValidateResponse, VendorApiService, VendorSplit, VendorSplitApiService, VoidInvoiceRequest, VoidPurchaseRequest, WholesaleCostItemRequest, usdConversionRate };
18596
19132
  //# sourceMappingURL=vendasta-billing.mjs.map