@vendasta/billing 12.9.0 → 12.10.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/esm2020/lib/_internal/enums/index.mjs +2 -1
- package/esm2020/lib/_internal/enums/subscription-relationship.enum.mjs +17 -0
- package/esm2020/lib/_internal/index.mjs +2 -1
- package/esm2020/lib/_internal/interfaces/billable-item.interface.mjs +1 -1
- package/esm2020/lib/_internal/interfaces/index.mjs +1 -1
- package/esm2020/lib/_internal/interfaces/subscription-relationship.interface.mjs +2 -0
- package/esm2020/lib/_internal/objects/billable-item.mjs +4 -1
- package/esm2020/lib/_internal/objects/index.mjs +2 -1
- package/esm2020/lib/_internal/objects/subscription-relationship.mjs +271 -0
- package/esm2020/lib/_internal/subscription-relationship.api.service.mjs +51 -0
- package/fesm2015/vendasta-billing.mjs +486 -159
- package/fesm2015/vendasta-billing.mjs.map +1 -1
- package/fesm2020/vendasta-billing.mjs +486 -159
- package/fesm2020/vendasta-billing.mjs.map +1 -1
- package/lib/_internal/enums/index.d.ts +1 -0
- package/lib/_internal/enums/subscription-relationship.enum.d.ts +8 -0
- package/lib/_internal/index.d.ts +1 -0
- package/lib/_internal/interfaces/billable-item.interface.d.ts +1 -0
- package/lib/_internal/interfaces/index.d.ts +1 -0
- package/lib/_internal/interfaces/subscription-relationship.interface.d.ts +45 -0
- package/lib/_internal/objects/billable-item.d.ts +1 -0
- package/lib/_internal/objects/index.d.ts +1 -0
- package/lib/_internal/objects/subscription-relationship.d.ts +71 -0
- package/lib/_internal/subscription-relationship.api.service.d.ts +18 -0
- package/package.json +1 -1
|
@@ -605,8 +605,25 @@ var MerchantServicesReportRunType;
|
|
|
605
605
|
})(MerchantServicesReportRunType || (MerchantServicesReportRunType = {}));
|
|
606
606
|
|
|
607
607
|
// *********************************
|
|
608
|
+
// Code generated by sdkgen
|
|
609
|
+
// DO NOT EDIT!.
|
|
610
|
+
//
|
|
611
|
+
// Enums.
|
|
612
|
+
// *********************************
|
|
613
|
+
var EntityType;
|
|
614
|
+
(function (EntityType) {
|
|
615
|
+
EntityType[EntityType["ENTITY_TYPE_INVALID"] = 0] = "ENTITY_TYPE_INVALID";
|
|
616
|
+
EntityType[EntityType["ENTITY_TYPE_SUBSCRIPTION"] = 1] = "ENTITY_TYPE_SUBSCRIPTION";
|
|
617
|
+
})(EntityType || (EntityType = {}));
|
|
618
|
+
var RelationshipType;
|
|
619
|
+
(function (RelationshipType) {
|
|
620
|
+
RelationshipType[RelationshipType["RELATIONSHIP_TYPE_INVALID"] = 0] = "RELATIONSHIP_TYPE_INVALID";
|
|
621
|
+
RelationshipType[RelationshipType["RELATIONSHIP_TYPE_ASSOCIATED_WITH"] = 1] = "RELATIONSHIP_TYPE_ASSOCIATED_WITH";
|
|
622
|
+
})(RelationshipType || (RelationshipType = {}));
|
|
608
623
|
|
|
609
|
-
|
|
624
|
+
// *********************************
|
|
625
|
+
|
|
626
|
+
function enumStringToValue$F(enumRef, value) {
|
|
610
627
|
if (typeof value === 'number') {
|
|
611
628
|
return value;
|
|
612
629
|
}
|
|
@@ -679,7 +696,7 @@ class PagedResponseMetadata {
|
|
|
679
696
|
}
|
|
680
697
|
}
|
|
681
698
|
|
|
682
|
-
function enumStringToValue$
|
|
699
|
+
function enumStringToValue$E(enumRef, value) {
|
|
683
700
|
if (typeof value === 'number') {
|
|
684
701
|
return value;
|
|
685
702
|
}
|
|
@@ -715,7 +732,7 @@ class Commitment {
|
|
|
715
732
|
}
|
|
716
733
|
}
|
|
717
734
|
|
|
718
|
-
function enumStringToValue$
|
|
735
|
+
function enumStringToValue$D(enumRef, value) {
|
|
719
736
|
if (typeof value === 'number') {
|
|
720
737
|
return value;
|
|
721
738
|
}
|
|
@@ -755,10 +772,10 @@ class Fee {
|
|
|
755
772
|
let m = new Fee();
|
|
756
773
|
m = Object.assign(m, proto);
|
|
757
774
|
if (proto.amountType) {
|
|
758
|
-
m.amountType = enumStringToValue$
|
|
775
|
+
m.amountType = enumStringToValue$D(FeeAmountType, proto.amountType);
|
|
759
776
|
}
|
|
760
777
|
if (proto.feeType) {
|
|
761
|
-
m.feeType = enumStringToValue$
|
|
778
|
+
m.feeType = enumStringToValue$D(FeeType, proto.feeType);
|
|
762
779
|
}
|
|
763
780
|
return m;
|
|
764
781
|
}
|
|
@@ -783,7 +800,7 @@ class Fee {
|
|
|
783
800
|
}
|
|
784
801
|
}
|
|
785
802
|
|
|
786
|
-
function enumStringToValue$
|
|
803
|
+
function enumStringToValue$C(enumRef, value) {
|
|
787
804
|
if (typeof value === 'number') {
|
|
788
805
|
return value;
|
|
789
806
|
}
|
|
@@ -810,7 +827,7 @@ class FieldMask {
|
|
|
810
827
|
}
|
|
811
828
|
}
|
|
812
829
|
|
|
813
|
-
function enumStringToValue$
|
|
830
|
+
function enumStringToValue$B(enumRef, value) {
|
|
814
831
|
if (typeof value === 'number') {
|
|
815
832
|
return value;
|
|
816
833
|
}
|
|
@@ -847,7 +864,7 @@ class CreatePricingPlanRequest {
|
|
|
847
864
|
let m = new CreatePricingPlanRequest();
|
|
848
865
|
m = Object.assign(m, proto);
|
|
849
866
|
if (proto.defaultBillingStrategy) {
|
|
850
|
-
m.defaultBillingStrategy = enumStringToValue$
|
|
867
|
+
m.defaultBillingStrategy = enumStringToValue$B(BillingStrategy, proto.defaultBillingStrategy);
|
|
851
868
|
}
|
|
852
869
|
return m;
|
|
853
870
|
}
|
|
@@ -936,7 +953,7 @@ class PricingPlan {
|
|
|
936
953
|
let m = new PricingPlan();
|
|
937
954
|
m = Object.assign(m, proto);
|
|
938
955
|
if (proto.defaultBillingStrategy) {
|
|
939
|
-
m.defaultBillingStrategy = enumStringToValue$
|
|
956
|
+
m.defaultBillingStrategy = enumStringToValue$B(BillingStrategy, proto.defaultBillingStrategy);
|
|
940
957
|
}
|
|
941
958
|
return m;
|
|
942
959
|
}
|
|
@@ -965,7 +982,7 @@ class PricingPlanProductPricing {
|
|
|
965
982
|
let m = new PricingPlanProductPricing();
|
|
966
983
|
m = Object.assign(m, proto);
|
|
967
984
|
if (proto.type) {
|
|
968
|
-
m.type = enumStringToValue$
|
|
985
|
+
m.type = enumStringToValue$B(ProductPricingType, proto.type);
|
|
969
986
|
}
|
|
970
987
|
if (proto.rules) {
|
|
971
988
|
m.rules = proto.rules.map(ProductPricingRule.fromProto);
|
|
@@ -974,7 +991,7 @@ class PricingPlanProductPricing {
|
|
|
974
991
|
m.setupFee = parseInt(proto.setupFee, 10);
|
|
975
992
|
}
|
|
976
993
|
if (proto.frequency) {
|
|
977
|
-
m.frequency = enumStringToValue$
|
|
994
|
+
m.frequency = enumStringToValue$B(Frequency, proto.frequency);
|
|
978
995
|
}
|
|
979
996
|
if (proto.fees) {
|
|
980
997
|
m.fees = proto.fees.map(Fee.fromProto);
|
|
@@ -1059,7 +1076,7 @@ class UpdatePricingPlanRequest {
|
|
|
1059
1076
|
m.fieldMask = FieldMask.fromProto(proto.fieldMask);
|
|
1060
1077
|
}
|
|
1061
1078
|
if (proto.defaultBillingStrategy) {
|
|
1062
|
-
m.defaultBillingStrategy = enumStringToValue$
|
|
1079
|
+
m.defaultBillingStrategy = enumStringToValue$B(BillingStrategy, proto.defaultBillingStrategy);
|
|
1063
1080
|
}
|
|
1064
1081
|
return m;
|
|
1065
1082
|
}
|
|
@@ -1104,7 +1121,7 @@ class UpdatePricingPlanResponse {
|
|
|
1104
1121
|
}
|
|
1105
1122
|
}
|
|
1106
1123
|
|
|
1107
|
-
function enumStringToValue$
|
|
1124
|
+
function enumStringToValue$A(enumRef, value) {
|
|
1108
1125
|
if (typeof value === 'number') {
|
|
1109
1126
|
return value;
|
|
1110
1127
|
}
|
|
@@ -1141,16 +1158,16 @@ class ProductPricing {
|
|
|
1141
1158
|
let m = new ProductPricing();
|
|
1142
1159
|
m = Object.assign(m, proto);
|
|
1143
1160
|
if (proto.strategy) {
|
|
1144
|
-
m.strategy = enumStringToValue$
|
|
1161
|
+
m.strategy = enumStringToValue$A(BillingStrategy, proto.strategy);
|
|
1145
1162
|
}
|
|
1146
1163
|
if (proto.pricingType) {
|
|
1147
|
-
m.pricingType = enumStringToValue$
|
|
1164
|
+
m.pricingType = enumStringToValue$A(ProductPricingType, proto.pricingType);
|
|
1148
1165
|
}
|
|
1149
1166
|
if (proto.currency) {
|
|
1150
|
-
m.currency = enumStringToValue$
|
|
1167
|
+
m.currency = enumStringToValue$A(Currency, proto.currency);
|
|
1151
1168
|
}
|
|
1152
1169
|
if (proto.frequency) {
|
|
1153
|
-
m.frequency = enumStringToValue$
|
|
1170
|
+
m.frequency = enumStringToValue$A(Frequency, proto.frequency);
|
|
1154
1171
|
}
|
|
1155
1172
|
if (proto.pricingRules) {
|
|
1156
1173
|
m.pricingRules = proto.pricingRules.map(ProductPricingRule.fromProto);
|
|
@@ -1221,7 +1238,7 @@ class WholesaleCostItemRequest {
|
|
|
1221
1238
|
m.quantity = parseInt(proto.quantity, 10);
|
|
1222
1239
|
}
|
|
1223
1240
|
if (proto.frequency) {
|
|
1224
|
-
m.frequency = enumStringToValue$
|
|
1241
|
+
m.frequency = enumStringToValue$A(Frequency, proto.frequency);
|
|
1225
1242
|
}
|
|
1226
1243
|
return m;
|
|
1227
1244
|
}
|
|
@@ -1246,7 +1263,7 @@ class WholesaleCostItemRequest {
|
|
|
1246
1263
|
}
|
|
1247
1264
|
}
|
|
1248
1265
|
|
|
1249
|
-
function enumStringToValue$
|
|
1266
|
+
function enumStringToValue$z(enumRef, value) {
|
|
1250
1267
|
if (typeof value === 'number') {
|
|
1251
1268
|
return value;
|
|
1252
1269
|
}
|
|
@@ -1356,7 +1373,7 @@ class BillableItem {
|
|
|
1356
1373
|
m.updated = new Date(proto.updated);
|
|
1357
1374
|
}
|
|
1358
1375
|
if (proto.frequency) {
|
|
1359
|
-
m.frequency = enumStringToValue$
|
|
1376
|
+
m.frequency = enumStringToValue$z(Frequency, proto.frequency);
|
|
1360
1377
|
}
|
|
1361
1378
|
if (proto.nextRenewal) {
|
|
1362
1379
|
m.nextRenewal = new Date(proto.nextRenewal);
|
|
@@ -1368,7 +1385,7 @@ class BillableItem {
|
|
|
1368
1385
|
m.customUnitPrice = parseInt(proto.customUnitPrice, 10);
|
|
1369
1386
|
}
|
|
1370
1387
|
if (proto.retailFrequency) {
|
|
1371
|
-
m.retailFrequency = enumStringToValue$
|
|
1388
|
+
m.retailFrequency = enumStringToValue$z(Frequency, proto.retailFrequency);
|
|
1372
1389
|
}
|
|
1373
1390
|
if (proto.nextRetailRenewal) {
|
|
1374
1391
|
m.nextRetailRenewal = new Date(proto.nextRetailRenewal);
|
|
@@ -1377,7 +1394,7 @@ class BillableItem {
|
|
|
1377
1394
|
m.retailUnitPrice = parseInt(proto.retailUnitPrice, 10);
|
|
1378
1395
|
}
|
|
1379
1396
|
if (proto.status) {
|
|
1380
|
-
m.status = enumStringToValue$
|
|
1397
|
+
m.status = enumStringToValue$z(SubscriptionStatus, proto.status);
|
|
1381
1398
|
}
|
|
1382
1399
|
if (proto.price) {
|
|
1383
1400
|
m.price = ProductPricing.fromProto(proto.price);
|
|
@@ -1449,6 +1466,9 @@ class BillableItem {
|
|
|
1449
1466
|
if (typeof this.price !== 'undefined' && this.price !== null) {
|
|
1450
1467
|
toReturn['price'] = 'toApiJson' in this.price ? this.price.toApiJson() : this.price;
|
|
1451
1468
|
}
|
|
1469
|
+
if (typeof this.subscriptionId !== 'undefined') {
|
|
1470
|
+
toReturn['subscriptionId'] = this.subscriptionId;
|
|
1471
|
+
}
|
|
1452
1472
|
return toReturn;
|
|
1453
1473
|
}
|
|
1454
1474
|
}
|
|
@@ -1666,7 +1686,7 @@ class ListSubscriptionsRequestFilters {
|
|
|
1666
1686
|
let m = new ListSubscriptionsRequestFilters();
|
|
1667
1687
|
m = Object.assign(m, proto);
|
|
1668
1688
|
if (proto.status) {
|
|
1669
|
-
m.status = enumStringToValue$
|
|
1689
|
+
m.status = enumStringToValue$z(SubscriptionStatus, proto.status);
|
|
1670
1690
|
}
|
|
1671
1691
|
if (proto.expiredDateGte) {
|
|
1672
1692
|
m.expiredDateGte = new Date(proto.expiredDateGte);
|
|
@@ -1675,7 +1695,7 @@ class ListSubscriptionsRequestFilters {
|
|
|
1675
1695
|
m.expiredDateLte = new Date(proto.expiredDateLte);
|
|
1676
1696
|
}
|
|
1677
1697
|
if (proto.frequencies) {
|
|
1678
|
-
m.frequencies = proto.frequencies.map((v) => enumStringToValue$
|
|
1698
|
+
m.frequencies = proto.frequencies.map((v) => enumStringToValue$z(Frequency, v));
|
|
1679
1699
|
}
|
|
1680
1700
|
return m;
|
|
1681
1701
|
}
|
|
@@ -2054,7 +2074,7 @@ class UnexpireBillableItemRequest {
|
|
|
2054
2074
|
}
|
|
2055
2075
|
}
|
|
2056
2076
|
|
|
2057
|
-
function enumStringToValue$
|
|
2077
|
+
function enumStringToValue$y(enumRef, value) {
|
|
2058
2078
|
if (typeof value === 'number') {
|
|
2059
2079
|
return value;
|
|
2060
2080
|
}
|
|
@@ -2065,7 +2085,7 @@ class AppliedDiscount {
|
|
|
2065
2085
|
let m = new AppliedDiscount();
|
|
2066
2086
|
m = Object.assign(m, proto);
|
|
2067
2087
|
if (proto.type) {
|
|
2068
|
-
m.type = enumStringToValue$
|
|
2088
|
+
m.type = enumStringToValue$y(DiscountType, proto.type);
|
|
2069
2089
|
}
|
|
2070
2090
|
if (proto.value) {
|
|
2071
2091
|
m.value = parseInt(proto.value, 10);
|
|
@@ -2099,7 +2119,7 @@ class AppliedDiscount {
|
|
|
2099
2119
|
}
|
|
2100
2120
|
}
|
|
2101
2121
|
|
|
2102
|
-
function enumStringToValue$
|
|
2122
|
+
function enumStringToValue$x(enumRef, value) {
|
|
2103
2123
|
if (typeof value === 'number') {
|
|
2104
2124
|
return value;
|
|
2105
2125
|
}
|
|
@@ -2157,7 +2177,7 @@ class BundleItem {
|
|
|
2157
2177
|
let m = new BundleItem();
|
|
2158
2178
|
m = Object.assign(m, proto);
|
|
2159
2179
|
if (proto.discountType) {
|
|
2160
|
-
m.discountType = enumStringToValue$
|
|
2180
|
+
m.discountType = enumStringToValue$x(DiscountType, proto.discountType);
|
|
2161
2181
|
}
|
|
2162
2182
|
if (proto.discountAmount) {
|
|
2163
2183
|
m.discountAmount = parseInt(proto.discountAmount, 10);
|
|
@@ -2415,7 +2435,7 @@ class BundlePricingPriceAndFrequency {
|
|
|
2415
2435
|
let m = new BundlePricingPriceAndFrequency();
|
|
2416
2436
|
m = Object.assign(m, proto);
|
|
2417
2437
|
if (proto.frequency) {
|
|
2418
|
-
m.frequency = enumStringToValue$
|
|
2438
|
+
m.frequency = enumStringToValue$x(Frequency, proto.frequency);
|
|
2419
2439
|
}
|
|
2420
2440
|
if (proto.effectivePrice) {
|
|
2421
2441
|
m.effectivePrice = parseInt(proto.effectivePrice, 10);
|
|
@@ -2487,7 +2507,7 @@ class UpsertBundleRequest {
|
|
|
2487
2507
|
}
|
|
2488
2508
|
}
|
|
2489
2509
|
|
|
2490
|
-
function enumStringToValue$
|
|
2510
|
+
function enumStringToValue$w(enumRef, value) {
|
|
2491
2511
|
if (typeof value === 'number') {
|
|
2492
2512
|
return value;
|
|
2493
2513
|
}
|
|
@@ -2504,7 +2524,7 @@ class Contract {
|
|
|
2504
2524
|
m.created = new Date(proto.created);
|
|
2505
2525
|
}
|
|
2506
2526
|
if (proto.currency) {
|
|
2507
|
-
m.currency = enumStringToValue$
|
|
2527
|
+
m.currency = enumStringToValue$w(Currency, proto.currency);
|
|
2508
2528
|
}
|
|
2509
2529
|
if (proto.signed) {
|
|
2510
2530
|
m.signed = new Date(proto.signed);
|
|
@@ -2525,7 +2545,7 @@ class Contract {
|
|
|
2525
2545
|
m.end = new Date(proto.end);
|
|
2526
2546
|
}
|
|
2527
2547
|
if (proto.subscriptionUpdateStatus) {
|
|
2528
|
-
m.subscriptionUpdateStatus = enumStringToValue$
|
|
2548
|
+
m.subscriptionUpdateStatus = enumStringToValue$w(ContractSubscriptionStatus, proto.subscriptionUpdateStatus);
|
|
2529
2549
|
}
|
|
2530
2550
|
return m;
|
|
2531
2551
|
}
|
|
@@ -2937,7 +2957,7 @@ class UpdateContractSubscriptionRequest {
|
|
|
2937
2957
|
let m = new UpdateContractSubscriptionRequest();
|
|
2938
2958
|
m = Object.assign(m, proto);
|
|
2939
2959
|
if (proto.frequency) {
|
|
2940
|
-
m.frequency = enumStringToValue$
|
|
2960
|
+
m.frequency = enumStringToValue$w(Frequency, proto.frequency);
|
|
2941
2961
|
}
|
|
2942
2962
|
return m;
|
|
2943
2963
|
}
|
|
@@ -2962,7 +2982,7 @@ class UpdateContractSubscriptionRequest {
|
|
|
2962
2982
|
}
|
|
2963
2983
|
}
|
|
2964
2984
|
|
|
2965
|
-
function enumStringToValue$
|
|
2985
|
+
function enumStringToValue$v(enumRef, value) {
|
|
2966
2986
|
if (typeof value === 'number') {
|
|
2967
2987
|
return value;
|
|
2968
2988
|
}
|
|
@@ -2979,7 +2999,7 @@ class CustomerSummary {
|
|
|
2979
2999
|
m.purchaseItemTotal = parseInt(proto.purchaseItemTotal, 10);
|
|
2980
3000
|
}
|
|
2981
3001
|
if (proto.currency) {
|
|
2982
|
-
m.currency = enumStringToValue$
|
|
3002
|
+
m.currency = enumStringToValue$v(Currency, proto.currency);
|
|
2983
3003
|
}
|
|
2984
3004
|
return m;
|
|
2985
3005
|
}
|
|
@@ -3065,7 +3085,7 @@ class GetMultiCustomerSummariesResponse {
|
|
|
3065
3085
|
}
|
|
3066
3086
|
}
|
|
3067
3087
|
|
|
3068
|
-
function enumStringToValue$
|
|
3088
|
+
function enumStringToValue$u(enumRef, value) {
|
|
3069
3089
|
if (typeof value === 'number') {
|
|
3070
3090
|
return value;
|
|
3071
3091
|
}
|
|
@@ -3225,7 +3245,7 @@ class SetDefaultBankAccountRequest {
|
|
|
3225
3245
|
}
|
|
3226
3246
|
}
|
|
3227
3247
|
|
|
3228
|
-
function enumStringToValue$
|
|
3248
|
+
function enumStringToValue$t(enumRef, value) {
|
|
3229
3249
|
if (typeof value === 'number') {
|
|
3230
3250
|
return value;
|
|
3231
3251
|
}
|
|
@@ -3236,7 +3256,7 @@ class ProductSummaryDiscount {
|
|
|
3236
3256
|
let m = new ProductSummaryDiscount();
|
|
3237
3257
|
m = Object.assign(m, proto);
|
|
3238
3258
|
if (proto.type) {
|
|
3239
|
-
m.type = enumStringToValue$
|
|
3259
|
+
m.type = enumStringToValue$t(ProductSummaryDiscountDiscountType, proto.type);
|
|
3240
3260
|
}
|
|
3241
3261
|
if (proto.value) {
|
|
3242
3262
|
m.value = parseInt(proto.value, 10);
|
|
@@ -3530,7 +3550,7 @@ class Pricing {
|
|
|
3530
3550
|
let m = new Pricing();
|
|
3531
3551
|
m = Object.assign(m, proto);
|
|
3532
3552
|
if (proto.type) {
|
|
3533
|
-
m.type = enumStringToValue$
|
|
3553
|
+
m.type = enumStringToValue$t(PricingRuleType, proto.type);
|
|
3534
3554
|
}
|
|
3535
3555
|
if (proto.rules) {
|
|
3536
3556
|
m.rules = proto.rules.map(PricingRule.fromProto);
|
|
@@ -3574,13 +3594,13 @@ class ProductSummary {
|
|
|
3574
3594
|
m.discounts = proto.discounts.map(ProductSummaryDiscount.fromProto);
|
|
3575
3595
|
}
|
|
3576
3596
|
if (proto.billingStrategy) {
|
|
3577
|
-
m.billingStrategy = enumStringToValue$
|
|
3597
|
+
m.billingStrategy = enumStringToValue$t(ProductSummaryBillingStrategy, proto.billingStrategy);
|
|
3578
3598
|
}
|
|
3579
3599
|
if (proto.productType) {
|
|
3580
|
-
m.productType = enumStringToValue$
|
|
3600
|
+
m.productType = enumStringToValue$t(ProductSummaryProductType, proto.productType);
|
|
3581
3601
|
}
|
|
3582
3602
|
if (proto.frequency) {
|
|
3583
|
-
m.frequency = enumStringToValue$
|
|
3603
|
+
m.frequency = enumStringToValue$t(Frequency, proto.frequency);
|
|
3584
3604
|
}
|
|
3585
3605
|
if (proto.volumeCommitment) {
|
|
3586
3606
|
m.volumeCommitment = parseInt(proto.volumeCommitment, 10);
|
|
@@ -3761,7 +3781,7 @@ class ListSubscriptionRetentionByGroupResponseSubscriptionRetentionByGroup {
|
|
|
3761
3781
|
}
|
|
3762
3782
|
}
|
|
3763
3783
|
|
|
3764
|
-
function enumStringToValue$
|
|
3784
|
+
function enumStringToValue$s(enumRef, value) {
|
|
3765
3785
|
if (typeof value === 'number') {
|
|
3766
3786
|
return value;
|
|
3767
3787
|
}
|
|
@@ -3772,7 +3792,7 @@ class CreateDiscountRequest {
|
|
|
3772
3792
|
let m = new CreateDiscountRequest();
|
|
3773
3793
|
m = Object.assign(m, proto);
|
|
3774
3794
|
if (proto.discountType) {
|
|
3775
|
-
m.discountType = enumStringToValue$
|
|
3795
|
+
m.discountType = enumStringToValue$s(DiscountType, proto.discountType);
|
|
3776
3796
|
}
|
|
3777
3797
|
if (proto.amount) {
|
|
3778
3798
|
m.amount = parseInt(proto.amount, 10);
|
|
@@ -3828,7 +3848,7 @@ class Discount {
|
|
|
3828
3848
|
m.discountId = parseInt(proto.discountId, 10);
|
|
3829
3849
|
}
|
|
3830
3850
|
if (proto.discountType) {
|
|
3831
|
-
m.discountType = enumStringToValue$
|
|
3851
|
+
m.discountType = enumStringToValue$s(DiscountType, proto.discountType);
|
|
3832
3852
|
}
|
|
3833
3853
|
if (proto.amount) {
|
|
3834
3854
|
m.amount = parseInt(proto.amount, 10);
|
|
@@ -4009,7 +4029,7 @@ class UpdateDiscountRequest {
|
|
|
4009
4029
|
let m = new UpdateDiscountRequest();
|
|
4010
4030
|
m = Object.assign(m, proto);
|
|
4011
4031
|
if (proto.discountType) {
|
|
4012
|
-
m.discountType = enumStringToValue$
|
|
4032
|
+
m.discountType = enumStringToValue$s(DiscountType, proto.discountType);
|
|
4013
4033
|
}
|
|
4014
4034
|
if (proto.amount) {
|
|
4015
4035
|
m.amount = parseInt(proto.amount, 10);
|
|
@@ -4058,7 +4078,7 @@ class UpdateDiscountRequest {
|
|
|
4058
4078
|
}
|
|
4059
4079
|
}
|
|
4060
4080
|
|
|
4061
|
-
function enumStringToValue$
|
|
4081
|
+
function enumStringToValue$r(enumRef, value) {
|
|
4062
4082
|
if (typeof value === 'number') {
|
|
4063
4083
|
return value;
|
|
4064
4084
|
}
|
|
@@ -4100,7 +4120,7 @@ class AppliedTaxRate {
|
|
|
4100
4120
|
}
|
|
4101
4121
|
}
|
|
4102
4122
|
|
|
4103
|
-
function enumStringToValue$
|
|
4123
|
+
function enumStringToValue$q(enumRef, value) {
|
|
4104
4124
|
if (typeof value === 'number') {
|
|
4105
4125
|
return value;
|
|
4106
4126
|
}
|
|
@@ -4560,7 +4580,7 @@ class UpdateTaxRequest {
|
|
|
4560
4580
|
}
|
|
4561
4581
|
}
|
|
4562
4582
|
|
|
4563
|
-
function enumStringToValue$
|
|
4583
|
+
function enumStringToValue$p(enumRef, value) {
|
|
4564
4584
|
if (typeof value === 'number') {
|
|
4565
4585
|
return value;
|
|
4566
4586
|
}
|
|
@@ -4637,7 +4657,7 @@ class AppliedBundleItem {
|
|
|
4637
4657
|
}
|
|
4638
4658
|
}
|
|
4639
4659
|
|
|
4640
|
-
function enumStringToValue$
|
|
4660
|
+
function enumStringToValue$o(enumRef, value) {
|
|
4641
4661
|
if (typeof value === 'number') {
|
|
4642
4662
|
return value;
|
|
4643
4663
|
}
|
|
@@ -4926,7 +4946,7 @@ class ListInvoicesRequestFiltersDateFilter {
|
|
|
4926
4946
|
let m = new ListInvoicesRequestFiltersDateFilter();
|
|
4927
4947
|
m = Object.assign(m, proto);
|
|
4928
4948
|
if (proto.dateField) {
|
|
4929
|
-
m.dateField = enumStringToValue$
|
|
4949
|
+
m.dateField = enumStringToValue$o(ListInvoicesRequestFiltersDateFilterDateField, proto.dateField);
|
|
4930
4950
|
}
|
|
4931
4951
|
if (proto.dateLte) {
|
|
4932
4952
|
m.dateLte = new Date(proto.dateLte);
|
|
@@ -5076,7 +5096,7 @@ class ListInvoicesRequestFilters {
|
|
|
5076
5096
|
let m = new ListInvoicesRequestFilters();
|
|
5077
5097
|
m = Object.assign(m, proto);
|
|
5078
5098
|
if (proto.statuses) {
|
|
5079
|
-
m.statuses = proto.statuses.map((v) => enumStringToValue$
|
|
5099
|
+
m.statuses = proto.statuses.map((v) => enumStringToValue$o(InvoiceStatus, v));
|
|
5080
5100
|
}
|
|
5081
5101
|
if (proto.dateFilter) {
|
|
5082
5102
|
m.dateFilter = ListInvoicesRequestFiltersDateFilter.fromProto(proto.dateFilter);
|
|
@@ -5221,7 +5241,7 @@ class Invoice {
|
|
|
5221
5241
|
let m = new Invoice();
|
|
5222
5242
|
m = Object.assign(m, proto);
|
|
5223
5243
|
if (proto.status) {
|
|
5224
|
-
m.status = enumStringToValue$
|
|
5244
|
+
m.status = enumStringToValue$o(InvoiceStatus, proto.status);
|
|
5225
5245
|
}
|
|
5226
5246
|
if (proto.subtotal) {
|
|
5227
5247
|
m.subtotal = parseInt(proto.subtotal, 10);
|
|
@@ -5248,7 +5268,7 @@ class Invoice {
|
|
|
5248
5268
|
m.items = proto.items.map(InvoiceItem.fromProto);
|
|
5249
5269
|
}
|
|
5250
5270
|
if (proto.currency) {
|
|
5251
|
-
m.currency = enumStringToValue$
|
|
5271
|
+
m.currency = enumStringToValue$o(Currency, proto.currency);
|
|
5252
5272
|
}
|
|
5253
5273
|
if (proto.paid) {
|
|
5254
5274
|
m.paid = new Date(proto.paid);
|
|
@@ -5886,7 +5906,7 @@ class VoidInvoiceRequest {
|
|
|
5886
5906
|
}
|
|
5887
5907
|
}
|
|
5888
5908
|
|
|
5889
|
-
function enumStringToValue$
|
|
5909
|
+
function enumStringToValue$n(enumRef, value) {
|
|
5890
5910
|
if (typeof value === 'number') {
|
|
5891
5911
|
return value;
|
|
5892
5912
|
}
|
|
@@ -5980,7 +6000,7 @@ class BalanceAmount {
|
|
|
5980
6000
|
}
|
|
5981
6001
|
}
|
|
5982
6002
|
|
|
5983
|
-
function enumStringToValue$
|
|
6003
|
+
function enumStringToValue$m(enumRef, value) {
|
|
5984
6004
|
if (typeof value === 'number') {
|
|
5985
6005
|
return value;
|
|
5986
6006
|
}
|
|
@@ -6016,7 +6036,7 @@ class DateRange {
|
|
|
6016
6036
|
}
|
|
6017
6037
|
}
|
|
6018
6038
|
|
|
6019
|
-
function enumStringToValue$
|
|
6039
|
+
function enumStringToValue$l(enumRef, value) {
|
|
6020
6040
|
if (typeof value === 'number') {
|
|
6021
6041
|
return value;
|
|
6022
6042
|
}
|
|
@@ -6117,13 +6137,13 @@ class Payout {
|
|
|
6117
6137
|
m.amount = parseInt(proto.amount, 10);
|
|
6118
6138
|
}
|
|
6119
6139
|
if (proto.currency) {
|
|
6120
|
-
m.currency = enumStringToValue$
|
|
6140
|
+
m.currency = enumStringToValue$l(Currency, proto.currency);
|
|
6121
6141
|
}
|
|
6122
6142
|
if (proto.status) {
|
|
6123
|
-
m.status = enumStringToValue$
|
|
6143
|
+
m.status = enumStringToValue$l(PayoutStatus, proto.status);
|
|
6124
6144
|
}
|
|
6125
6145
|
if (proto.type) {
|
|
6126
|
-
m.type = enumStringToValue$
|
|
6146
|
+
m.type = enumStringToValue$l(PayoutType, proto.type);
|
|
6127
6147
|
}
|
|
6128
6148
|
return m;
|
|
6129
6149
|
}
|
|
@@ -6225,10 +6245,10 @@ class RetailPayout {
|
|
|
6225
6245
|
m.amount = parseInt(proto.amount, 10);
|
|
6226
6246
|
}
|
|
6227
6247
|
if (proto.status) {
|
|
6228
|
-
m.status = enumStringToValue$
|
|
6248
|
+
m.status = enumStringToValue$l(PayoutStatus, proto.status);
|
|
6229
6249
|
}
|
|
6230
6250
|
if (proto.type) {
|
|
6231
|
-
m.type = enumStringToValue$
|
|
6251
|
+
m.type = enumStringToValue$l(PayoutType, proto.type);
|
|
6232
6252
|
}
|
|
6233
6253
|
return m;
|
|
6234
6254
|
}
|
|
@@ -6277,7 +6297,7 @@ class RetailPayout {
|
|
|
6277
6297
|
}
|
|
6278
6298
|
}
|
|
6279
6299
|
|
|
6280
|
-
function enumStringToValue$
|
|
6300
|
+
function enumStringToValue$k(enumRef, value) {
|
|
6281
6301
|
if (typeof value === 'number') {
|
|
6282
6302
|
return value;
|
|
6283
6303
|
}
|
|
@@ -6392,7 +6412,7 @@ class CreateMerchantRequest {
|
|
|
6392
6412
|
m.includeInFinancialRecords = CreateMerchantRequestIncludeInFinancialRecords.fromProto(proto.includeInFinancialRecords);
|
|
6393
6413
|
}
|
|
6394
6414
|
if (proto.merchantType) {
|
|
6395
|
-
m.merchantType = enumStringToValue$
|
|
6415
|
+
m.merchantType = enumStringToValue$k(MerchantType, proto.merchantType);
|
|
6396
6416
|
}
|
|
6397
6417
|
return m;
|
|
6398
6418
|
}
|
|
@@ -6604,7 +6624,7 @@ class GetOutstandingBalanceResponse {
|
|
|
6604
6624
|
m.outstandingBalance = parseInt(proto.outstandingBalance, 10);
|
|
6605
6625
|
}
|
|
6606
6626
|
if (proto.currency) {
|
|
6607
|
-
m.currency = enumStringToValue$
|
|
6627
|
+
m.currency = enumStringToValue$k(Currency, proto.currency);
|
|
6608
6628
|
}
|
|
6609
6629
|
return m;
|
|
6610
6630
|
}
|
|
@@ -6915,7 +6935,7 @@ class Merchant {
|
|
|
6915
6935
|
let m = new Merchant();
|
|
6916
6936
|
m = Object.assign(m, proto);
|
|
6917
6937
|
if (proto.merchantType) {
|
|
6918
|
-
m.merchantType = enumStringToValue$
|
|
6938
|
+
m.merchantType = enumStringToValue$k(MerchantType, proto.merchantType);
|
|
6919
6939
|
}
|
|
6920
6940
|
return m;
|
|
6921
6941
|
}
|
|
@@ -7050,10 +7070,10 @@ class SearchMerchantsRequest {
|
|
|
7050
7070
|
let m = new SearchMerchantsRequest();
|
|
7051
7071
|
m = Object.assign(m, proto);
|
|
7052
7072
|
if (proto.sortBy) {
|
|
7053
|
-
m.sortBy = enumStringToValue$
|
|
7073
|
+
m.sortBy = enumStringToValue$k(SearchMerchantsRequestSortBy, proto.sortBy);
|
|
7054
7074
|
}
|
|
7055
7075
|
if (proto.sortDirection) {
|
|
7056
|
-
m.sortDirection = enumStringToValue$
|
|
7076
|
+
m.sortDirection = enumStringToValue$k(SortDirection, proto.sortDirection);
|
|
7057
7077
|
}
|
|
7058
7078
|
if (proto.pagingOptions) {
|
|
7059
7079
|
m.pagingOptions = PagedRequestOptions.fromProto(proto.pagingOptions);
|
|
@@ -7235,7 +7255,7 @@ class UpdateMerchantRequest {
|
|
|
7235
7255
|
m.includeInFinancialRecords = UpdateMerchantRequestIncludeInFinancialRecords.fromProto(proto.includeInFinancialRecords);
|
|
7236
7256
|
}
|
|
7237
7257
|
if (proto.merchantType) {
|
|
7238
|
-
m.merchantType = enumStringToValue$
|
|
7258
|
+
m.merchantType = enumStringToValue$k(MerchantType, proto.merchantType);
|
|
7239
7259
|
}
|
|
7240
7260
|
return m;
|
|
7241
7261
|
}
|
|
@@ -7354,7 +7374,7 @@ class UpsertRetailConfigurationRequest {
|
|
|
7354
7374
|
}
|
|
7355
7375
|
}
|
|
7356
7376
|
|
|
7357
|
-
function enumStringToValue$
|
|
7377
|
+
function enumStringToValue$j(enumRef, value) {
|
|
7358
7378
|
if (typeof value === 'number') {
|
|
7359
7379
|
return value;
|
|
7360
7380
|
}
|
|
@@ -7423,13 +7443,13 @@ class MerchantReport {
|
|
|
7423
7443
|
m.year = parseInt(proto.year, 10);
|
|
7424
7444
|
}
|
|
7425
7445
|
if (proto.month) {
|
|
7426
|
-
m.month = enumStringToValue$
|
|
7446
|
+
m.month = enumStringToValue$j(Month, proto.month);
|
|
7427
7447
|
}
|
|
7428
7448
|
if (proto.created) {
|
|
7429
7449
|
m.created = new Date(proto.created);
|
|
7430
7450
|
}
|
|
7431
7451
|
if (proto.status) {
|
|
7432
|
-
m.status = enumStringToValue$
|
|
7452
|
+
m.status = enumStringToValue$j(MerchantReportStatus, proto.status);
|
|
7433
7453
|
}
|
|
7434
7454
|
return m;
|
|
7435
7455
|
}
|
|
@@ -7460,7 +7480,7 @@ class MerchantReport {
|
|
|
7460
7480
|
}
|
|
7461
7481
|
}
|
|
7462
7482
|
|
|
7463
|
-
function enumStringToValue$
|
|
7483
|
+
function enumStringToValue$i(enumRef, value) {
|
|
7464
7484
|
if (typeof value === 'number') {
|
|
7465
7485
|
return value;
|
|
7466
7486
|
}
|
|
@@ -7557,7 +7577,7 @@ class TickComponentUsageRequest {
|
|
|
7557
7577
|
}
|
|
7558
7578
|
}
|
|
7559
7579
|
|
|
7560
|
-
function enumStringToValue$
|
|
7580
|
+
function enumStringToValue$h(enumRef, value) {
|
|
7561
7581
|
if (typeof value === 'number') {
|
|
7562
7582
|
return value;
|
|
7563
7583
|
}
|
|
@@ -7630,7 +7650,7 @@ class RetailPaymentCardDetails {
|
|
|
7630
7650
|
let m = new RetailPaymentCardDetails();
|
|
7631
7651
|
m = Object.assign(m, proto);
|
|
7632
7652
|
if (proto.cardType) {
|
|
7633
|
-
m.cardType = enumStringToValue$
|
|
7653
|
+
m.cardType = enumStringToValue$h(CardType, proto.cardType);
|
|
7634
7654
|
}
|
|
7635
7655
|
return m;
|
|
7636
7656
|
}
|
|
@@ -7751,7 +7771,7 @@ class Dispute {
|
|
|
7751
7771
|
let m = new Dispute();
|
|
7752
7772
|
m = Object.assign(m, proto);
|
|
7753
7773
|
if (proto.status) {
|
|
7754
|
-
m.status = enumStringToValue$
|
|
7774
|
+
m.status = enumStringToValue$h(DisputeStatus, proto.status);
|
|
7755
7775
|
}
|
|
7756
7776
|
if (proto.amount) {
|
|
7757
7777
|
m.amount = parseInt(proto.amount, 10);
|
|
@@ -8420,7 +8440,7 @@ class ListRetailTransactionsRequestListRetailTransactionsFilters {
|
|
|
8420
8440
|
m.createdDateLte = new Date(proto.createdDateLte);
|
|
8421
8441
|
}
|
|
8422
8442
|
if (proto.type) {
|
|
8423
|
-
m.type = enumStringToValue$
|
|
8443
|
+
m.type = enumStringToValue$h(RetailTransactionType, proto.type);
|
|
8424
8444
|
}
|
|
8425
8445
|
return m;
|
|
8426
8446
|
}
|
|
@@ -8551,10 +8571,10 @@ class Payment {
|
|
|
8551
8571
|
m.created = new Date(proto.created);
|
|
8552
8572
|
}
|
|
8553
8573
|
if (proto.currency) {
|
|
8554
|
-
m.currency = enumStringToValue$
|
|
8574
|
+
m.currency = enumStringToValue$h(Currency, proto.currency);
|
|
8555
8575
|
}
|
|
8556
8576
|
if (proto.paymentSource) {
|
|
8557
|
-
m.paymentSource = enumStringToValue$
|
|
8577
|
+
m.paymentSource = enumStringToValue$h(PaymentSource, proto.paymentSource);
|
|
8558
8578
|
}
|
|
8559
8579
|
if (proto.allocations) {
|
|
8560
8580
|
m.allocations = proto.allocations.map(PaymentPaymentAllocation.fromProto);
|
|
@@ -8563,7 +8583,7 @@ class Payment {
|
|
|
8563
8583
|
m.total = parseInt(proto.total, 10);
|
|
8564
8584
|
}
|
|
8565
8585
|
if (proto.status) {
|
|
8566
|
-
m.status = enumStringToValue$
|
|
8586
|
+
m.status = enumStringToValue$h(PaymentStatus, proto.status);
|
|
8567
8587
|
}
|
|
8568
8588
|
return m;
|
|
8569
8589
|
}
|
|
@@ -8613,7 +8633,7 @@ class PaymentPaymentAllocation {
|
|
|
8613
8633
|
m.amount = parseInt(proto.amount, 10);
|
|
8614
8634
|
}
|
|
8615
8635
|
if (proto.type) {
|
|
8616
|
-
m.type = enumStringToValue$
|
|
8636
|
+
m.type = enumStringToValue$h(PaymentAllocationType, proto.type);
|
|
8617
8637
|
}
|
|
8618
8638
|
return m;
|
|
8619
8639
|
}
|
|
@@ -8700,7 +8720,7 @@ class RefundRetailPaymentRequest {
|
|
|
8700
8720
|
m.amount = parseInt(proto.amount, 10);
|
|
8701
8721
|
}
|
|
8702
8722
|
if (proto.reason) {
|
|
8703
|
-
m.reason = enumStringToValue$
|
|
8723
|
+
m.reason = enumStringToValue$h(RetailRefundReason, proto.reason);
|
|
8704
8724
|
}
|
|
8705
8725
|
return m;
|
|
8706
8726
|
}
|
|
@@ -8761,10 +8781,10 @@ class RetailPayment {
|
|
|
8761
8781
|
m.amount = parseInt(proto.amount, 10);
|
|
8762
8782
|
}
|
|
8763
8783
|
if (proto.referenceType) {
|
|
8764
|
-
m.referenceType = enumStringToValue$
|
|
8784
|
+
m.referenceType = enumStringToValue$h(RetailPaymentReferenceType, proto.referenceType);
|
|
8765
8785
|
}
|
|
8766
8786
|
if (proto.status) {
|
|
8767
|
-
m.status = enumStringToValue$
|
|
8787
|
+
m.status = enumStringToValue$h(PaymentStatus, proto.status);
|
|
8768
8788
|
}
|
|
8769
8789
|
if (proto.applicationFee) {
|
|
8770
8790
|
m.applicationFee = parseInt(proto.applicationFee, 10);
|
|
@@ -8890,13 +8910,13 @@ class RetailRefund {
|
|
|
8890
8910
|
m.amount = parseInt(proto.amount, 10);
|
|
8891
8911
|
}
|
|
8892
8912
|
if (proto.refundReason) {
|
|
8893
|
-
m.refundReason = enumStringToValue$
|
|
8913
|
+
m.refundReason = enumStringToValue$h(RetailRefundReason, proto.refundReason);
|
|
8894
8914
|
}
|
|
8895
8915
|
if (proto.status) {
|
|
8896
|
-
m.status = enumStringToValue$
|
|
8916
|
+
m.status = enumStringToValue$h(RetailRefundStatus, proto.status);
|
|
8897
8917
|
}
|
|
8898
8918
|
if (proto.failureReason) {
|
|
8899
|
-
m.failureReason = enumStringToValue$
|
|
8919
|
+
m.failureReason = enumStringToValue$h(RetailRefundFailureReason, proto.failureReason);
|
|
8900
8920
|
}
|
|
8901
8921
|
if (proto.created) {
|
|
8902
8922
|
m.created = new Date(proto.created);
|
|
@@ -9145,7 +9165,7 @@ class RetailStatusResponseVerificationRequirements {
|
|
|
9145
9165
|
}
|
|
9146
9166
|
}
|
|
9147
9167
|
|
|
9148
|
-
function enumStringToValue$
|
|
9168
|
+
function enumStringToValue$g(enumRef, value) {
|
|
9149
9169
|
if (typeof value === 'number') {
|
|
9150
9170
|
return value;
|
|
9151
9171
|
}
|
|
@@ -9248,10 +9268,10 @@ class PaymentCard {
|
|
|
9248
9268
|
let m = new PaymentCard();
|
|
9249
9269
|
m = Object.assign(m, proto);
|
|
9250
9270
|
if (proto.cardType) {
|
|
9251
|
-
m.cardType = enumStringToValue$
|
|
9271
|
+
m.cardType = enumStringToValue$g(PaymentCardCARD_TYPE, proto.cardType);
|
|
9252
9272
|
}
|
|
9253
9273
|
if (proto.fundingType) {
|
|
9254
|
-
m.fundingType = enumStringToValue$
|
|
9274
|
+
m.fundingType = enumStringToValue$g(PaymentCardFUNDING_TYPE, proto.fundingType);
|
|
9255
9275
|
}
|
|
9256
9276
|
return m;
|
|
9257
9277
|
}
|
|
@@ -9355,7 +9375,7 @@ class UpdatePaymentCardRequest {
|
|
|
9355
9375
|
}
|
|
9356
9376
|
}
|
|
9357
9377
|
|
|
9358
|
-
function enumStringToValue$
|
|
9378
|
+
function enumStringToValue$f(enumRef, value) {
|
|
9359
9379
|
if (typeof value === 'number') {
|
|
9360
9380
|
return value;
|
|
9361
9381
|
}
|
|
@@ -9366,7 +9386,7 @@ class CreatePricingPlanProductRequest {
|
|
|
9366
9386
|
let m = new CreatePricingPlanProductRequest();
|
|
9367
9387
|
m = Object.assign(m, proto);
|
|
9368
9388
|
if (proto.frequency) {
|
|
9369
|
-
m.frequency = enumStringToValue$
|
|
9389
|
+
m.frequency = enumStringToValue$f(Frequency, proto.frequency);
|
|
9370
9390
|
}
|
|
9371
9391
|
if (proto.pricing) {
|
|
9372
9392
|
m.pricing = Object.keys(proto.pricing).reduce((obj, k) => { obj[k] = PricingPlanProductPricing.fromProto(proto.pricing[k]); return obj; }, {});
|
|
@@ -9375,7 +9395,7 @@ class CreatePricingPlanProductRequest {
|
|
|
9375
9395
|
m.commitment = Commitment.fromProto(proto.commitment);
|
|
9376
9396
|
}
|
|
9377
9397
|
if (proto.strategy) {
|
|
9378
|
-
m.strategy = enumStringToValue$
|
|
9398
|
+
m.strategy = enumStringToValue$f(BillingStrategy, proto.strategy);
|
|
9379
9399
|
}
|
|
9380
9400
|
if (proto.volumeCommitment) {
|
|
9381
9401
|
m.volumeCommitment = parseInt(proto.volumeCommitment, 10);
|
|
@@ -9549,7 +9569,7 @@ class GetPricingPlanProductResponse {
|
|
|
9549
9569
|
m.pricingPlanProduct = PricingPlanProduct.fromProto(proto.pricingPlanProduct);
|
|
9550
9570
|
}
|
|
9551
9571
|
if (proto.pricingPlanDefaultStrategy) {
|
|
9552
|
-
m.pricingPlanDefaultStrategy = enumStringToValue$
|
|
9572
|
+
m.pricingPlanDefaultStrategy = enumStringToValue$f(BillingStrategy, proto.pricingPlanDefaultStrategy);
|
|
9553
9573
|
}
|
|
9554
9574
|
return m;
|
|
9555
9575
|
}
|
|
@@ -9737,7 +9757,7 @@ class PricingPlanProduct {
|
|
|
9737
9757
|
let m = new PricingPlanProduct();
|
|
9738
9758
|
m = Object.assign(m, proto);
|
|
9739
9759
|
if (proto.frequency) {
|
|
9740
|
-
m.frequency = enumStringToValue$
|
|
9760
|
+
m.frequency = enumStringToValue$f(Frequency, proto.frequency);
|
|
9741
9761
|
}
|
|
9742
9762
|
if (proto.pricing) {
|
|
9743
9763
|
m.pricing = Object.keys(proto.pricing).reduce((obj, k) => { obj[k] = PricingPlanProductPricing.fromProto(proto.pricing[k]); return obj; }, {});
|
|
@@ -9752,7 +9772,7 @@ class PricingPlanProduct {
|
|
|
9752
9772
|
m.modified = new Date(proto.modified);
|
|
9753
9773
|
}
|
|
9754
9774
|
if (proto.strategy) {
|
|
9755
|
-
m.strategy = enumStringToValue$
|
|
9775
|
+
m.strategy = enumStringToValue$f(BillingStrategy, proto.strategy);
|
|
9756
9776
|
}
|
|
9757
9777
|
if (proto.volumeCommitment) {
|
|
9758
9778
|
m.volumeCommitment = parseInt(proto.volumeCommitment, 10);
|
|
@@ -9764,7 +9784,7 @@ class PricingPlanProduct {
|
|
|
9764
9784
|
m.volumeCommitmentEndsAt = new Date(proto.volumeCommitmentEndsAt);
|
|
9765
9785
|
}
|
|
9766
9786
|
if (proto.pricingType) {
|
|
9767
|
-
m.pricingType = enumStringToValue$
|
|
9787
|
+
m.pricingType = enumStringToValue$f(ProductPricingType, proto.pricingType);
|
|
9768
9788
|
}
|
|
9769
9789
|
return m;
|
|
9770
9790
|
}
|
|
@@ -9820,7 +9840,7 @@ class UpdatePricingPlanProductRequest {
|
|
|
9820
9840
|
let m = new UpdatePricingPlanProductRequest();
|
|
9821
9841
|
m = Object.assign(m, proto);
|
|
9822
9842
|
if (proto.frequency) {
|
|
9823
|
-
m.frequency = enumStringToValue$
|
|
9843
|
+
m.frequency = enumStringToValue$f(Frequency, proto.frequency);
|
|
9824
9844
|
}
|
|
9825
9845
|
if (proto.pricing) {
|
|
9826
9846
|
m.pricing = Object.keys(proto.pricing).reduce((obj, k) => { obj[k] = PricingPlanProductPricing.fromProto(proto.pricing[k]); return obj; }, {});
|
|
@@ -9832,7 +9852,7 @@ class UpdatePricingPlanProductRequest {
|
|
|
9832
9852
|
m.fieldMask = FieldMask.fromProto(proto.fieldMask);
|
|
9833
9853
|
}
|
|
9834
9854
|
if (proto.strategy) {
|
|
9835
|
-
m.strategy = enumStringToValue$
|
|
9855
|
+
m.strategy = enumStringToValue$f(BillingStrategy, proto.strategy);
|
|
9836
9856
|
}
|
|
9837
9857
|
if (proto.volumeCommitment) {
|
|
9838
9858
|
m.volumeCommitment = parseInt(proto.volumeCommitment, 10);
|
|
@@ -9914,7 +9934,7 @@ class UpsertWholesalePricingRequest {
|
|
|
9914
9934
|
m.termCommitment = Commitment.fromProto(proto.termCommitment);
|
|
9915
9935
|
}
|
|
9916
9936
|
if (proto.strategy) {
|
|
9917
|
-
m.strategy = enumStringToValue$
|
|
9937
|
+
m.strategy = enumStringToValue$f(BillingStrategy, proto.strategy);
|
|
9918
9938
|
}
|
|
9919
9939
|
if (proto.volumeCommitment) {
|
|
9920
9940
|
m.volumeCommitment = parseInt(proto.volumeCommitment, 10);
|
|
@@ -9963,7 +9983,7 @@ class UpsertWholesalePricingRequest {
|
|
|
9963
9983
|
}
|
|
9964
9984
|
}
|
|
9965
9985
|
|
|
9966
|
-
function enumStringToValue$
|
|
9986
|
+
function enumStringToValue$e(enumRef, value) {
|
|
9967
9987
|
if (typeof value === 'number') {
|
|
9968
9988
|
return value;
|
|
9969
9989
|
}
|
|
@@ -9974,7 +9994,7 @@ class CreateProductRequest {
|
|
|
9974
9994
|
let m = new CreateProductRequest();
|
|
9975
9995
|
m = Object.assign(m, proto);
|
|
9976
9996
|
if (proto.productType) {
|
|
9977
|
-
m.productType = enumStringToValue$
|
|
9997
|
+
m.productType = enumStringToValue$e(ProductType, proto.productType);
|
|
9978
9998
|
}
|
|
9979
9999
|
return m;
|
|
9980
10000
|
}
|
|
@@ -10078,7 +10098,7 @@ class ListProductsRequestListProductsFilters {
|
|
|
10078
10098
|
let m = new ListProductsRequestListProductsFilters();
|
|
10079
10099
|
m = Object.assign(m, proto);
|
|
10080
10100
|
if (proto.productType) {
|
|
10081
|
-
m.productType = proto.productType.map((v) => enumStringToValue$
|
|
10101
|
+
m.productType = proto.productType.map((v) => enumStringToValue$e(ProductType, v));
|
|
10082
10102
|
}
|
|
10083
10103
|
return m;
|
|
10084
10104
|
}
|
|
@@ -10174,7 +10194,7 @@ class Product {
|
|
|
10174
10194
|
let m = new Product();
|
|
10175
10195
|
m = Object.assign(m, proto);
|
|
10176
10196
|
if (proto.productType) {
|
|
10177
|
-
m.productType = enumStringToValue$
|
|
10197
|
+
m.productType = enumStringToValue$e(ProductType, proto.productType);
|
|
10178
10198
|
}
|
|
10179
10199
|
return m;
|
|
10180
10200
|
}
|
|
@@ -10241,7 +10261,7 @@ class UpdateProductRequest {
|
|
|
10241
10261
|
let m = new UpdateProductRequest();
|
|
10242
10262
|
m = Object.assign(m, proto);
|
|
10243
10263
|
if (proto.productType) {
|
|
10244
|
-
m.productType = enumStringToValue$
|
|
10264
|
+
m.productType = enumStringToValue$e(ProductType, proto.productType);
|
|
10245
10265
|
}
|
|
10246
10266
|
return m;
|
|
10247
10267
|
}
|
|
@@ -10272,7 +10292,7 @@ class UpdateProductRequest {
|
|
|
10272
10292
|
}
|
|
10273
10293
|
}
|
|
10274
10294
|
|
|
10275
|
-
function enumStringToValue$
|
|
10295
|
+
function enumStringToValue$d(enumRef, value) {
|
|
10276
10296
|
if (typeof value === 'number') {
|
|
10277
10297
|
return value;
|
|
10278
10298
|
}
|
|
@@ -10286,7 +10306,7 @@ class AppliedCredit {
|
|
|
10286
10306
|
m.appliedAmount = parseInt(proto.appliedAmount, 10);
|
|
10287
10307
|
}
|
|
10288
10308
|
if (proto.referenceType) {
|
|
10289
|
-
m.referenceType = enumStringToValue$
|
|
10309
|
+
m.referenceType = enumStringToValue$d(CreditType, proto.referenceType);
|
|
10290
10310
|
}
|
|
10291
10311
|
return m;
|
|
10292
10312
|
}
|
|
@@ -10315,7 +10335,7 @@ class ListPurchaseRequestListPurchaseBillingStrategyFilter {
|
|
|
10315
10335
|
let m = new ListPurchaseRequestListPurchaseBillingStrategyFilter();
|
|
10316
10336
|
m = Object.assign(m, proto);
|
|
10317
10337
|
if (proto.billingStrategy) {
|
|
10318
|
-
m.billingStrategy = proto.billingStrategy.map((v) => enumStringToValue$
|
|
10338
|
+
m.billingStrategy = proto.billingStrategy.map((v) => enumStringToValue$d(BillingStrategy, v));
|
|
10319
10339
|
}
|
|
10320
10340
|
return m;
|
|
10321
10341
|
}
|
|
@@ -10347,13 +10367,13 @@ class ListPurchaseRequestListPurchaseFilters {
|
|
|
10347
10367
|
m.billingStrategyFilter = ListPurchaseRequestListPurchaseBillingStrategyFilter.fromProto(proto.billingStrategyFilter);
|
|
10348
10368
|
}
|
|
10349
10369
|
if (proto.state) {
|
|
10350
|
-
m.state = enumStringToValue$
|
|
10370
|
+
m.state = enumStringToValue$d(ListPurchaseRequestState, proto.state);
|
|
10351
10371
|
}
|
|
10352
10372
|
if (proto.minPrice) {
|
|
10353
10373
|
m.minPrice = parseInt(proto.minPrice, 10);
|
|
10354
10374
|
}
|
|
10355
10375
|
if (proto.status) {
|
|
10356
|
-
m.status = enumStringToValue$
|
|
10376
|
+
m.status = enumStringToValue$d(PurchaseStatus, proto.status);
|
|
10357
10377
|
}
|
|
10358
10378
|
if (proto.dunningPauseStart) {
|
|
10359
10379
|
m.dunningPauseStart = new Date(proto.dunningPauseStart);
|
|
@@ -10482,7 +10502,7 @@ class ListPurchaseItemsResponse {
|
|
|
10482
10502
|
m.pagingMetadata = PagedResponseMetadata.fromProto(proto.pagingMetadata);
|
|
10483
10503
|
}
|
|
10484
10504
|
if (proto.currency) {
|
|
10485
|
-
m.currency = enumStringToValue$
|
|
10505
|
+
m.currency = enumStringToValue$d(Currency, proto.currency);
|
|
10486
10506
|
}
|
|
10487
10507
|
return m;
|
|
10488
10508
|
}
|
|
@@ -10607,13 +10627,13 @@ class Purchase {
|
|
|
10607
10627
|
m.total = parseInt(proto.total, 10);
|
|
10608
10628
|
}
|
|
10609
10629
|
if (proto.currency) {
|
|
10610
|
-
m.currency = enumStringToValue$
|
|
10630
|
+
m.currency = enumStringToValue$d(Currency, proto.currency);
|
|
10611
10631
|
}
|
|
10612
10632
|
if (proto.items) {
|
|
10613
10633
|
m.items = proto.items.map(PurchaseItem.fromProto);
|
|
10614
10634
|
}
|
|
10615
10635
|
if (proto.billingStrategy) {
|
|
10616
|
-
m.billingStrategy = enumStringToValue$
|
|
10636
|
+
m.billingStrategy = enumStringToValue$d(BillingStrategy, proto.billingStrategy);
|
|
10617
10637
|
}
|
|
10618
10638
|
if (proto.dunningAttempt) {
|
|
10619
10639
|
m.dunningAttempt = parseInt(proto.dunningAttempt, 10);
|
|
@@ -10622,7 +10642,7 @@ class Purchase {
|
|
|
10622
10642
|
m.voided = new Date(proto.voided);
|
|
10623
10643
|
}
|
|
10624
10644
|
if (proto.status) {
|
|
10625
|
-
m.status = enumStringToValue$
|
|
10645
|
+
m.status = enumStringToValue$d(PurchaseStatus, proto.status);
|
|
10626
10646
|
}
|
|
10627
10647
|
if (proto.creditAmount) {
|
|
10628
10648
|
m.creditAmount = parseInt(proto.creditAmount, 10);
|
|
@@ -10906,7 +10926,7 @@ class VoidPurchaseRequest {
|
|
|
10906
10926
|
}
|
|
10907
10927
|
}
|
|
10908
10928
|
|
|
10909
|
-
function enumStringToValue$
|
|
10929
|
+
function enumStringToValue$c(enumRef, value) {
|
|
10910
10930
|
if (typeof value === 'number') {
|
|
10911
10931
|
return value;
|
|
10912
10932
|
}
|
|
@@ -10920,10 +10940,10 @@ class CreateRefundRequest {
|
|
|
10920
10940
|
m.amount = parseInt(proto.amount, 10);
|
|
10921
10941
|
}
|
|
10922
10942
|
if (proto.reason) {
|
|
10923
|
-
m.reason = enumStringToValue$
|
|
10943
|
+
m.reason = enumStringToValue$c(RefundReason, proto.reason);
|
|
10924
10944
|
}
|
|
10925
10945
|
if (proto.referenceType) {
|
|
10926
|
-
m.referenceType = enumStringToValue$
|
|
10946
|
+
m.referenceType = enumStringToValue$c(ReferenceType, proto.referenceType);
|
|
10927
10947
|
}
|
|
10928
10948
|
return m;
|
|
10929
10949
|
}
|
|
@@ -11028,10 +11048,10 @@ class Refund {
|
|
|
11028
11048
|
m.amount = parseInt(proto.amount, 10);
|
|
11029
11049
|
}
|
|
11030
11050
|
if (proto.reason) {
|
|
11031
|
-
m.reason = enumStringToValue$
|
|
11051
|
+
m.reason = enumStringToValue$c(RefundReason, proto.reason);
|
|
11032
11052
|
}
|
|
11033
11053
|
if (proto.status) {
|
|
11034
|
-
m.status = enumStringToValue$
|
|
11054
|
+
m.status = enumStringToValue$c(RefundStatus, proto.status);
|
|
11035
11055
|
}
|
|
11036
11056
|
if (proto.created) {
|
|
11037
11057
|
m.created = new Date(proto.created);
|
|
@@ -11040,7 +11060,7 @@ class Refund {
|
|
|
11040
11060
|
m.updated = new Date(proto.updated);
|
|
11041
11061
|
}
|
|
11042
11062
|
if (proto.referenceType) {
|
|
11043
|
-
m.referenceType = enumStringToValue$
|
|
11063
|
+
m.referenceType = enumStringToValue$c(ReferenceType, proto.referenceType);
|
|
11044
11064
|
}
|
|
11045
11065
|
return m;
|
|
11046
11066
|
}
|
|
@@ -11092,7 +11112,7 @@ class Refund {
|
|
|
11092
11112
|
}
|
|
11093
11113
|
}
|
|
11094
11114
|
|
|
11095
|
-
function enumStringToValue$
|
|
11115
|
+
function enumStringToValue$b(enumRef, value) {
|
|
11096
11116
|
if (typeof value === 'number') {
|
|
11097
11117
|
return value;
|
|
11098
11118
|
}
|
|
@@ -11147,7 +11167,7 @@ class ListSalesCreditNoteRequestListSalesCreditNoteFilters {
|
|
|
11147
11167
|
let m = new ListSalesCreditNoteRequestListSalesCreditNoteFilters();
|
|
11148
11168
|
m = Object.assign(m, proto);
|
|
11149
11169
|
if (proto.statuses) {
|
|
11150
|
-
m.statuses = proto.statuses.map((v) => enumStringToValue$
|
|
11170
|
+
m.statuses = proto.statuses.map((v) => enumStringToValue$b(SalesCreditNoteStatus, v));
|
|
11151
11171
|
}
|
|
11152
11172
|
return m;
|
|
11153
11173
|
}
|
|
@@ -11237,7 +11257,7 @@ class SalesCreditNote {
|
|
|
11237
11257
|
m.dueDate = new Date(proto.dueDate);
|
|
11238
11258
|
}
|
|
11239
11259
|
if (proto.currency) {
|
|
11240
|
-
m.currency = enumStringToValue$
|
|
11260
|
+
m.currency = enumStringToValue$b(Currency, proto.currency);
|
|
11241
11261
|
}
|
|
11242
11262
|
if (proto.total) {
|
|
11243
11263
|
m.total = parseInt(proto.total, 10);
|
|
@@ -11246,7 +11266,7 @@ class SalesCreditNote {
|
|
|
11246
11266
|
m.outstanding = parseInt(proto.outstanding, 10);
|
|
11247
11267
|
}
|
|
11248
11268
|
if (proto.status) {
|
|
11249
|
-
m.status = enumStringToValue$
|
|
11269
|
+
m.status = enumStringToValue$b(SalesCreditNoteStatus, proto.status);
|
|
11250
11270
|
}
|
|
11251
11271
|
return m;
|
|
11252
11272
|
}
|
|
@@ -11304,7 +11324,7 @@ class SalesCreditNote {
|
|
|
11304
11324
|
}
|
|
11305
11325
|
}
|
|
11306
11326
|
|
|
11307
|
-
function enumStringToValue$
|
|
11327
|
+
function enumStringToValue$a(enumRef, value) {
|
|
11308
11328
|
if (typeof value === 'number') {
|
|
11309
11329
|
return value;
|
|
11310
11330
|
}
|
|
@@ -11361,10 +11381,10 @@ class ListSalesInvoiceRequestListSalesInvoiceFilters {
|
|
|
11361
11381
|
let m = new ListSalesInvoiceRequestListSalesInvoiceFilters();
|
|
11362
11382
|
m = Object.assign(m, proto);
|
|
11363
11383
|
if (proto.statuses) {
|
|
11364
|
-
m.statuses = proto.statuses.map((v) => enumStringToValue$
|
|
11384
|
+
m.statuses = proto.statuses.map((v) => enumStringToValue$a(SalesInvoiceStatus, v));
|
|
11365
11385
|
}
|
|
11366
11386
|
if (proto.paymentStatuses) {
|
|
11367
|
-
m.paymentStatuses = proto.paymentStatuses.map((v) => enumStringToValue$
|
|
11387
|
+
m.paymentStatuses = proto.paymentStatuses.map((v) => enumStringToValue$a(PaymentStatuses, v));
|
|
11368
11388
|
}
|
|
11369
11389
|
return m;
|
|
11370
11390
|
}
|
|
@@ -11492,16 +11512,16 @@ class SalesInvoice {
|
|
|
11492
11512
|
m.total = parseInt(proto.total, 10);
|
|
11493
11513
|
}
|
|
11494
11514
|
if (proto.currency) {
|
|
11495
|
-
m.currency = enumStringToValue$
|
|
11515
|
+
m.currency = enumStringToValue$a(Currency, proto.currency);
|
|
11496
11516
|
}
|
|
11497
11517
|
if (proto.status) {
|
|
11498
|
-
m.status = enumStringToValue$
|
|
11518
|
+
m.status = enumStringToValue$a(SalesInvoiceStatus, proto.status);
|
|
11499
11519
|
}
|
|
11500
11520
|
if (proto.outstanding) {
|
|
11501
11521
|
m.outstanding = parseInt(proto.outstanding, 10);
|
|
11502
11522
|
}
|
|
11503
11523
|
if (proto.type) {
|
|
11504
|
-
m.type = enumStringToValue$
|
|
11524
|
+
m.type = enumStringToValue$a(SalesInvoiceType, proto.type);
|
|
11505
11525
|
}
|
|
11506
11526
|
return m;
|
|
11507
11527
|
}
|
|
@@ -11605,7 +11625,7 @@ class SendSalesInvoiceReceiptEmailRequest {
|
|
|
11605
11625
|
}
|
|
11606
11626
|
}
|
|
11607
11627
|
|
|
11608
|
-
function enumStringToValue$
|
|
11628
|
+
function enumStringToValue$9(enumRef, value) {
|
|
11609
11629
|
if (typeof value === 'number') {
|
|
11610
11630
|
return value;
|
|
11611
11631
|
}
|
|
@@ -11616,7 +11636,7 @@ class SubscribeValidation {
|
|
|
11616
11636
|
let m = new SubscribeValidation();
|
|
11617
11637
|
m = Object.assign(m, proto);
|
|
11618
11638
|
if (proto.status) {
|
|
11619
|
-
m.status = enumStringToValue$
|
|
11639
|
+
m.status = enumStringToValue$9(SubscribeValidationStatus, proto.status);
|
|
11620
11640
|
}
|
|
11621
11641
|
return m;
|
|
11622
11642
|
}
|
|
@@ -11635,7 +11655,7 @@ class SubscribeValidation {
|
|
|
11635
11655
|
}
|
|
11636
11656
|
}
|
|
11637
11657
|
|
|
11638
|
-
function enumStringToValue$
|
|
11658
|
+
function enumStringToValue$8(enumRef, value) {
|
|
11639
11659
|
if (typeof value === 'number') {
|
|
11640
11660
|
return value;
|
|
11641
11661
|
}
|
|
@@ -11762,7 +11782,7 @@ class ChangeFrequencyRequest {
|
|
|
11762
11782
|
let m = new ChangeFrequencyRequest();
|
|
11763
11783
|
m = Object.assign(m, proto);
|
|
11764
11784
|
if (proto.frequency) {
|
|
11765
|
-
m.frequency = enumStringToValue$
|
|
11785
|
+
m.frequency = enumStringToValue$8(Frequency, proto.frequency);
|
|
11766
11786
|
}
|
|
11767
11787
|
return m;
|
|
11768
11788
|
}
|
|
@@ -11838,7 +11858,7 @@ class CreateSubscriptionRequest {
|
|
|
11838
11858
|
m.proratedTo = new Date(proto.proratedTo);
|
|
11839
11859
|
}
|
|
11840
11860
|
if (proto.renewalState) {
|
|
11841
|
-
m.renewalState = enumStringToValue$
|
|
11861
|
+
m.renewalState = enumStringToValue$8(RenewalState, proto.renewalState);
|
|
11842
11862
|
}
|
|
11843
11863
|
if (proto.customUnitPrice) {
|
|
11844
11864
|
m.customUnitPrice = parseInt(proto.customUnitPrice, 10);
|
|
@@ -11847,16 +11867,16 @@ class CreateSubscriptionRequest {
|
|
|
11847
11867
|
m.alignWith = AlignmentSubscription.fromProto(proto.alignWith);
|
|
11848
11868
|
}
|
|
11849
11869
|
if (proto.frequency) {
|
|
11850
|
-
m.frequency = enumStringToValue$
|
|
11870
|
+
m.frequency = enumStringToValue$8(Frequency, proto.frequency);
|
|
11851
11871
|
}
|
|
11852
11872
|
if (proto.retailAmount) {
|
|
11853
11873
|
m.retailAmount = parseInt(proto.retailAmount, 10);
|
|
11854
11874
|
}
|
|
11855
11875
|
if (proto.retailFrequency) {
|
|
11856
|
-
m.retailFrequency = enumStringToValue$
|
|
11876
|
+
m.retailFrequency = enumStringToValue$8(Frequency, proto.retailFrequency);
|
|
11857
11877
|
}
|
|
11858
11878
|
if (proto.consumer) {
|
|
11859
|
-
m.consumer = enumStringToValue$
|
|
11879
|
+
m.consumer = enumStringToValue$8(Consumer, proto.consumer);
|
|
11860
11880
|
}
|
|
11861
11881
|
return m;
|
|
11862
11882
|
}
|
|
@@ -12060,7 +12080,7 @@ class Subscription {
|
|
|
12060
12080
|
m.billingStart = new Date(proto.billingStart);
|
|
12061
12081
|
}
|
|
12062
12082
|
if (proto.renewalState) {
|
|
12063
|
-
m.renewalState = enumStringToValue$
|
|
12083
|
+
m.renewalState = enumStringToValue$8(RenewalState, proto.renewalState);
|
|
12064
12084
|
}
|
|
12065
12085
|
if (proto.proratedTo) {
|
|
12066
12086
|
m.proratedTo = new Date(proto.proratedTo);
|
|
@@ -12072,16 +12092,16 @@ class Subscription {
|
|
|
12072
12092
|
m.alignWith = AlignmentSubscription.fromProto(proto.alignWith);
|
|
12073
12093
|
}
|
|
12074
12094
|
if (proto.frequency) {
|
|
12075
|
-
m.frequency = enumStringToValue$
|
|
12095
|
+
m.frequency = enumStringToValue$8(Frequency, proto.frequency);
|
|
12076
12096
|
}
|
|
12077
12097
|
if (proto.retailAmount) {
|
|
12078
12098
|
m.retailAmount = parseInt(proto.retailAmount, 10);
|
|
12079
12099
|
}
|
|
12080
12100
|
if (proto.retailFrequency) {
|
|
12081
|
-
m.retailFrequency = enumStringToValue$
|
|
12101
|
+
m.retailFrequency = enumStringToValue$8(Frequency, proto.retailFrequency);
|
|
12082
12102
|
}
|
|
12083
12103
|
if (proto.consumer) {
|
|
12084
|
-
m.consumer = enumStringToValue$
|
|
12104
|
+
m.consumer = enumStringToValue$8(Consumer, proto.consumer);
|
|
12085
12105
|
}
|
|
12086
12106
|
return m;
|
|
12087
12107
|
}
|
|
@@ -12146,7 +12166,7 @@ class CanCreateSubscriptionsRequestSubscriptionItem {
|
|
|
12146
12166
|
let m = new CanCreateSubscriptionsRequestSubscriptionItem();
|
|
12147
12167
|
m = Object.assign(m, proto);
|
|
12148
12168
|
if (proto.frequency) {
|
|
12149
|
-
m.frequency = enumStringToValue$
|
|
12169
|
+
m.frequency = enumStringToValue$8(Frequency, proto.frequency);
|
|
12150
12170
|
}
|
|
12151
12171
|
if (proto.quantity) {
|
|
12152
12172
|
m.quantity = parseInt(proto.quantity, 10);
|
|
@@ -12200,7 +12220,7 @@ class ValidateResponse {
|
|
|
12200
12220
|
}
|
|
12201
12221
|
}
|
|
12202
12222
|
|
|
12203
|
-
function enumStringToValue$
|
|
12223
|
+
function enumStringToValue$7(enumRef, value) {
|
|
12204
12224
|
if (typeof value === 'number') {
|
|
12205
12225
|
return value;
|
|
12206
12226
|
}
|
|
@@ -12340,7 +12360,7 @@ class ListContractDocumentsResponse {
|
|
|
12340
12360
|
}
|
|
12341
12361
|
}
|
|
12342
12362
|
|
|
12343
|
-
function enumStringToValue$
|
|
12363
|
+
function enumStringToValue$6(enumRef, value) {
|
|
12344
12364
|
if (typeof value === 'number') {
|
|
12345
12365
|
return value;
|
|
12346
12366
|
}
|
|
@@ -12505,7 +12525,7 @@ class UpsertRetailCustomerConfigurationRequest {
|
|
|
12505
12525
|
}
|
|
12506
12526
|
}
|
|
12507
12527
|
|
|
12508
|
-
function enumStringToValue$
|
|
12528
|
+
function enumStringToValue$5(enumRef, value) {
|
|
12509
12529
|
if (typeof value === 'number') {
|
|
12510
12530
|
return value;
|
|
12511
12531
|
}
|
|
@@ -12619,7 +12639,7 @@ class GetBalanceResponse {
|
|
|
12619
12639
|
}
|
|
12620
12640
|
}
|
|
12621
12641
|
|
|
12622
|
-
function enumStringToValue$
|
|
12642
|
+
function enumStringToValue$4(enumRef, value) {
|
|
12623
12643
|
if (typeof value === 'number') {
|
|
12624
12644
|
return value;
|
|
12625
12645
|
}
|
|
@@ -12714,7 +12734,7 @@ class ListRecurringInvoicesFiltersDetailedInterval {
|
|
|
12714
12734
|
let m = new ListRecurringInvoicesFiltersDetailedInterval();
|
|
12715
12735
|
m = Object.assign(m, proto);
|
|
12716
12736
|
if (proto.interval) {
|
|
12717
|
-
m.interval = enumStringToValue$
|
|
12737
|
+
m.interval = enumStringToValue$4(Interval, proto.interval);
|
|
12718
12738
|
}
|
|
12719
12739
|
if (proto.intervalCount) {
|
|
12720
12740
|
m.intervalCount = parseInt(proto.intervalCount, 10);
|
|
@@ -12763,7 +12783,7 @@ class ListRecurringInvoicesFilters {
|
|
|
12763
12783
|
let m = new ListRecurringInvoicesFilters();
|
|
12764
12784
|
m = Object.assign(m, proto);
|
|
12765
12785
|
if (proto.statuses) {
|
|
12766
|
-
m.statuses = proto.statuses.map((v) => enumStringToValue$
|
|
12786
|
+
m.statuses = proto.statuses.map((v) => enumStringToValue$4(RecurringInvoiceStatus, v));
|
|
12767
12787
|
}
|
|
12768
12788
|
if (proto.intervals) {
|
|
12769
12789
|
m.intervals = proto.intervals.map(ListRecurringInvoicesFiltersDetailedInterval.fromProto);
|
|
@@ -12868,7 +12888,7 @@ class RecurringInvoice {
|
|
|
12868
12888
|
m.updated = new Date(proto.updated);
|
|
12869
12889
|
}
|
|
12870
12890
|
if (proto.status) {
|
|
12871
|
-
m.status = enumStringToValue$
|
|
12891
|
+
m.status = enumStringToValue$4(RecurringInvoiceStatus, proto.status);
|
|
12872
12892
|
}
|
|
12873
12893
|
if (proto.nextIssue) {
|
|
12874
12894
|
m.nextIssue = new Date(proto.nextIssue);
|
|
@@ -12877,16 +12897,16 @@ class RecurringInvoice {
|
|
|
12877
12897
|
m.intervalCount = parseInt(proto.intervalCount, 10);
|
|
12878
12898
|
}
|
|
12879
12899
|
if (proto.interval) {
|
|
12880
|
-
m.interval = enumStringToValue$
|
|
12900
|
+
m.interval = enumStringToValue$4(Interval, proto.interval);
|
|
12881
12901
|
}
|
|
12882
12902
|
if (proto.repeatOnDayOfMonth) {
|
|
12883
12903
|
m.repeatOnDayOfMonth = parseInt(proto.repeatOnDayOfMonth, 10);
|
|
12884
12904
|
}
|
|
12885
12905
|
if (proto.collectionMethod) {
|
|
12886
|
-
m.collectionMethod = enumStringToValue$
|
|
12906
|
+
m.collectionMethod = enumStringToValue$4(CollectionMethod, proto.collectionMethod);
|
|
12887
12907
|
}
|
|
12888
12908
|
if (proto.paymentProcessor) {
|
|
12889
|
-
m.paymentProcessor = enumStringToValue$
|
|
12909
|
+
m.paymentProcessor = enumStringToValue$4(PaymentProcessor, proto.paymentProcessor);
|
|
12890
12910
|
}
|
|
12891
12911
|
if (proto.items) {
|
|
12892
12912
|
m.items = proto.items.map(RecurringInvoiceItem.fromProto);
|
|
@@ -13102,7 +13122,7 @@ class UpdateRecurringInvoiceRequest {
|
|
|
13102
13122
|
}
|
|
13103
13123
|
}
|
|
13104
13124
|
|
|
13105
|
-
function enumStringToValue$
|
|
13125
|
+
function enumStringToValue$3(enumRef, value) {
|
|
13106
13126
|
if (typeof value === 'number') {
|
|
13107
13127
|
return value;
|
|
13108
13128
|
}
|
|
@@ -13113,7 +13133,7 @@ class CreateMerchantServicesReportRun {
|
|
|
13113
13133
|
let m = new CreateMerchantServicesReportRun();
|
|
13114
13134
|
m = Object.assign(m, proto);
|
|
13115
13135
|
if (proto.reportType) {
|
|
13116
|
-
m.reportType = enumStringToValue$
|
|
13136
|
+
m.reportType = enumStringToValue$3(MerchantServicesReportRunType, proto.reportType);
|
|
13117
13137
|
}
|
|
13118
13138
|
if (proto.intervalStart) {
|
|
13119
13139
|
m.intervalStart = new Date(proto.intervalStart);
|
|
@@ -13177,10 +13197,10 @@ class MerchantServicesReportRun {
|
|
|
13177
13197
|
m.created = new Date(proto.created);
|
|
13178
13198
|
}
|
|
13179
13199
|
if (proto.reportType) {
|
|
13180
|
-
m.reportType = enumStringToValue$
|
|
13200
|
+
m.reportType = enumStringToValue$3(MerchantServicesReportRunType, proto.reportType);
|
|
13181
13201
|
}
|
|
13182
13202
|
if (proto.status) {
|
|
13183
|
-
m.status = enumStringToValue$
|
|
13203
|
+
m.status = enumStringToValue$3(MerchantServicesReportRunStatus, proto.status);
|
|
13184
13204
|
}
|
|
13185
13205
|
return m;
|
|
13186
13206
|
}
|
|
@@ -13211,7 +13231,7 @@ class MerchantServicesReportRun {
|
|
|
13211
13231
|
}
|
|
13212
13232
|
}
|
|
13213
13233
|
|
|
13214
|
-
function enumStringToValue$
|
|
13234
|
+
function enumStringToValue$2(enumRef, value) {
|
|
13215
13235
|
if (typeof value === 'number') {
|
|
13216
13236
|
return value;
|
|
13217
13237
|
}
|
|
@@ -13241,6 +13261,275 @@ class Access {
|
|
|
13241
13261
|
}
|
|
13242
13262
|
}
|
|
13243
13263
|
|
|
13264
|
+
function enumStringToValue$1(enumRef, value) {
|
|
13265
|
+
if (typeof value === 'number') {
|
|
13266
|
+
return value;
|
|
13267
|
+
}
|
|
13268
|
+
return enumRef[value];
|
|
13269
|
+
}
|
|
13270
|
+
class ListSubscriptionRelationshipsRequestFilters {
|
|
13271
|
+
static fromProto(proto) {
|
|
13272
|
+
let m = new ListSubscriptionRelationshipsRequestFilters();
|
|
13273
|
+
m = Object.assign(m, proto);
|
|
13274
|
+
if (proto.originType) {
|
|
13275
|
+
m.originType = enumStringToValue$1(EntityType, proto.originType);
|
|
13276
|
+
}
|
|
13277
|
+
if (proto.targetType) {
|
|
13278
|
+
m.targetType = enumStringToValue$1(EntityType, proto.targetType);
|
|
13279
|
+
}
|
|
13280
|
+
if (proto.relationshipType) {
|
|
13281
|
+
m.relationshipType = enumStringToValue$1(RelationshipType, proto.relationshipType);
|
|
13282
|
+
}
|
|
13283
|
+
return m;
|
|
13284
|
+
}
|
|
13285
|
+
constructor(kwargs) {
|
|
13286
|
+
if (!kwargs) {
|
|
13287
|
+
return;
|
|
13288
|
+
}
|
|
13289
|
+
Object.assign(this, kwargs);
|
|
13290
|
+
}
|
|
13291
|
+
toApiJson() {
|
|
13292
|
+
const toReturn = {};
|
|
13293
|
+
if (typeof this.merchantId !== 'undefined') {
|
|
13294
|
+
toReturn['merchantId'] = this.merchantId;
|
|
13295
|
+
}
|
|
13296
|
+
if (typeof this.customerId !== 'undefined') {
|
|
13297
|
+
toReturn['customerId'] = this.customerId;
|
|
13298
|
+
}
|
|
13299
|
+
if (typeof this.originId !== 'undefined') {
|
|
13300
|
+
toReturn['originId'] = this.originId;
|
|
13301
|
+
}
|
|
13302
|
+
if (typeof this.originType !== 'undefined') {
|
|
13303
|
+
toReturn['originType'] = this.originType;
|
|
13304
|
+
}
|
|
13305
|
+
if (typeof this.targetId !== 'undefined') {
|
|
13306
|
+
toReturn['targetId'] = this.targetId;
|
|
13307
|
+
}
|
|
13308
|
+
if (typeof this.targetType !== 'undefined') {
|
|
13309
|
+
toReturn['targetType'] = this.targetType;
|
|
13310
|
+
}
|
|
13311
|
+
if (typeof this.relationshipType !== 'undefined') {
|
|
13312
|
+
toReturn['relationshipType'] = this.relationshipType;
|
|
13313
|
+
}
|
|
13314
|
+
return toReturn;
|
|
13315
|
+
}
|
|
13316
|
+
}
|
|
13317
|
+
class GetMultiSubscriptionRelationshipsRequest {
|
|
13318
|
+
static fromProto(proto) {
|
|
13319
|
+
let m = new GetMultiSubscriptionRelationshipsRequest();
|
|
13320
|
+
m = Object.assign(m, proto);
|
|
13321
|
+
return m;
|
|
13322
|
+
}
|
|
13323
|
+
constructor(kwargs) {
|
|
13324
|
+
if (!kwargs) {
|
|
13325
|
+
return;
|
|
13326
|
+
}
|
|
13327
|
+
Object.assign(this, kwargs);
|
|
13328
|
+
}
|
|
13329
|
+
toApiJson() {
|
|
13330
|
+
const toReturn = {};
|
|
13331
|
+
if (typeof this.subscriptionRelationshipIds !== 'undefined') {
|
|
13332
|
+
toReturn['subscriptionRelationshipIds'] = this.subscriptionRelationshipIds;
|
|
13333
|
+
}
|
|
13334
|
+
return toReturn;
|
|
13335
|
+
}
|
|
13336
|
+
}
|
|
13337
|
+
class GetMultiSubscriptionRelationshipsResponse {
|
|
13338
|
+
static fromProto(proto) {
|
|
13339
|
+
let m = new GetMultiSubscriptionRelationshipsResponse();
|
|
13340
|
+
m = Object.assign(m, proto);
|
|
13341
|
+
if (proto.subscriptionRelationships) {
|
|
13342
|
+
m.subscriptionRelationships = proto.subscriptionRelationships.map(SubscriptionRelationship.fromProto);
|
|
13343
|
+
}
|
|
13344
|
+
return m;
|
|
13345
|
+
}
|
|
13346
|
+
constructor(kwargs) {
|
|
13347
|
+
if (!kwargs) {
|
|
13348
|
+
return;
|
|
13349
|
+
}
|
|
13350
|
+
Object.assign(this, kwargs);
|
|
13351
|
+
}
|
|
13352
|
+
toApiJson() {
|
|
13353
|
+
const toReturn = {};
|
|
13354
|
+
if (typeof this.subscriptionRelationships !== 'undefined' && this.subscriptionRelationships !== null) {
|
|
13355
|
+
toReturn['subscriptionRelationships'] = 'toApiJson' in this.subscriptionRelationships ? this.subscriptionRelationships.toApiJson() : this.subscriptionRelationships;
|
|
13356
|
+
}
|
|
13357
|
+
return toReturn;
|
|
13358
|
+
}
|
|
13359
|
+
}
|
|
13360
|
+
class ListSubscriptionRelationshipsRequest {
|
|
13361
|
+
static fromProto(proto) {
|
|
13362
|
+
let m = new ListSubscriptionRelationshipsRequest();
|
|
13363
|
+
m = Object.assign(m, proto);
|
|
13364
|
+
if (proto.filters) {
|
|
13365
|
+
m.filters = ListSubscriptionRelationshipsRequestFilters.fromProto(proto.filters);
|
|
13366
|
+
}
|
|
13367
|
+
if (proto.pagingOptions) {
|
|
13368
|
+
m.pagingOptions = PagedRequestOptions.fromProto(proto.pagingOptions);
|
|
13369
|
+
}
|
|
13370
|
+
return m;
|
|
13371
|
+
}
|
|
13372
|
+
constructor(kwargs) {
|
|
13373
|
+
if (!kwargs) {
|
|
13374
|
+
return;
|
|
13375
|
+
}
|
|
13376
|
+
Object.assign(this, kwargs);
|
|
13377
|
+
}
|
|
13378
|
+
toApiJson() {
|
|
13379
|
+
const toReturn = {};
|
|
13380
|
+
if (typeof this.filters !== 'undefined' && this.filters !== null) {
|
|
13381
|
+
toReturn['filters'] = 'toApiJson' in this.filters ? this.filters.toApiJson() : this.filters;
|
|
13382
|
+
}
|
|
13383
|
+
if (typeof this.pagingOptions !== 'undefined' && this.pagingOptions !== null) {
|
|
13384
|
+
toReturn['pagingOptions'] = 'toApiJson' in this.pagingOptions ? this.pagingOptions.toApiJson() : this.pagingOptions;
|
|
13385
|
+
}
|
|
13386
|
+
return toReturn;
|
|
13387
|
+
}
|
|
13388
|
+
}
|
|
13389
|
+
class ListSubscriptionRelationshipsResponse {
|
|
13390
|
+
static fromProto(proto) {
|
|
13391
|
+
let m = new ListSubscriptionRelationshipsResponse();
|
|
13392
|
+
m = Object.assign(m, proto);
|
|
13393
|
+
if (proto.subscriptionRelationships) {
|
|
13394
|
+
m.subscriptionRelationships = proto.subscriptionRelationships.map(SubscriptionRelationship.fromProto);
|
|
13395
|
+
}
|
|
13396
|
+
if (proto.pagingMetadata) {
|
|
13397
|
+
m.pagingMetadata = PagedResponseMetadata.fromProto(proto.pagingMetadata);
|
|
13398
|
+
}
|
|
13399
|
+
return m;
|
|
13400
|
+
}
|
|
13401
|
+
constructor(kwargs) {
|
|
13402
|
+
if (!kwargs) {
|
|
13403
|
+
return;
|
|
13404
|
+
}
|
|
13405
|
+
Object.assign(this, kwargs);
|
|
13406
|
+
}
|
|
13407
|
+
toApiJson() {
|
|
13408
|
+
const toReturn = {};
|
|
13409
|
+
if (typeof this.subscriptionRelationships !== 'undefined' && this.subscriptionRelationships !== null) {
|
|
13410
|
+
toReturn['subscriptionRelationships'] = 'toApiJson' in this.subscriptionRelationships ? this.subscriptionRelationships.toApiJson() : this.subscriptionRelationships;
|
|
13411
|
+
}
|
|
13412
|
+
if (typeof this.pagingMetadata !== 'undefined' && this.pagingMetadata !== null) {
|
|
13413
|
+
toReturn['pagingMetadata'] = 'toApiJson' in this.pagingMetadata ? this.pagingMetadata.toApiJson() : this.pagingMetadata;
|
|
13414
|
+
}
|
|
13415
|
+
return toReturn;
|
|
13416
|
+
}
|
|
13417
|
+
}
|
|
13418
|
+
class ReplaceSubscriptionRelationshipsRequest {
|
|
13419
|
+
static fromProto(proto) {
|
|
13420
|
+
let m = new ReplaceSubscriptionRelationshipsRequest();
|
|
13421
|
+
m = Object.assign(m, proto);
|
|
13422
|
+
if (proto.toAdd) {
|
|
13423
|
+
m.toAdd = proto.toAdd.map(SubscriptionRelationship.fromProto);
|
|
13424
|
+
}
|
|
13425
|
+
return m;
|
|
13426
|
+
}
|
|
13427
|
+
constructor(kwargs) {
|
|
13428
|
+
if (!kwargs) {
|
|
13429
|
+
return;
|
|
13430
|
+
}
|
|
13431
|
+
Object.assign(this, kwargs);
|
|
13432
|
+
}
|
|
13433
|
+
toApiJson() {
|
|
13434
|
+
const toReturn = {};
|
|
13435
|
+
if (typeof this.toAdd !== 'undefined' && this.toAdd !== null) {
|
|
13436
|
+
toReturn['toAdd'] = 'toApiJson' in this.toAdd ? this.toAdd.toApiJson() : this.toAdd;
|
|
13437
|
+
}
|
|
13438
|
+
if (typeof this.toRemove !== 'undefined') {
|
|
13439
|
+
toReturn['toRemove'] = this.toRemove;
|
|
13440
|
+
}
|
|
13441
|
+
return toReturn;
|
|
13442
|
+
}
|
|
13443
|
+
}
|
|
13444
|
+
class ReplaceSubscriptionRelationshipsResponse {
|
|
13445
|
+
static fromProto(proto) {
|
|
13446
|
+
let m = new ReplaceSubscriptionRelationshipsResponse();
|
|
13447
|
+
m = Object.assign(m, proto);
|
|
13448
|
+
return m;
|
|
13449
|
+
}
|
|
13450
|
+
constructor(kwargs) {
|
|
13451
|
+
if (!kwargs) {
|
|
13452
|
+
return;
|
|
13453
|
+
}
|
|
13454
|
+
Object.assign(this, kwargs);
|
|
13455
|
+
}
|
|
13456
|
+
toApiJson() {
|
|
13457
|
+
const toReturn = {};
|
|
13458
|
+
if (typeof this.addedSubscriptionRelationshipIds !== 'undefined') {
|
|
13459
|
+
toReturn['addedSubscriptionRelationshipIds'] = this.addedSubscriptionRelationshipIds;
|
|
13460
|
+
}
|
|
13461
|
+
return toReturn;
|
|
13462
|
+
}
|
|
13463
|
+
}
|
|
13464
|
+
class SubscriptionRelationship {
|
|
13465
|
+
static fromProto(proto) {
|
|
13466
|
+
let m = new SubscriptionRelationship();
|
|
13467
|
+
m = Object.assign(m, proto);
|
|
13468
|
+
if (proto.originType) {
|
|
13469
|
+
m.originType = enumStringToValue$1(EntityType, proto.originType);
|
|
13470
|
+
}
|
|
13471
|
+
if (proto.targetType) {
|
|
13472
|
+
m.targetType = enumStringToValue$1(EntityType, proto.targetType);
|
|
13473
|
+
}
|
|
13474
|
+
if (proto.relationshipType) {
|
|
13475
|
+
m.relationshipType = enumStringToValue$1(RelationshipType, proto.relationshipType);
|
|
13476
|
+
}
|
|
13477
|
+
if (proto.created) {
|
|
13478
|
+
m.created = new Date(proto.created);
|
|
13479
|
+
}
|
|
13480
|
+
if (proto.updated) {
|
|
13481
|
+
m.updated = new Date(proto.updated);
|
|
13482
|
+
}
|
|
13483
|
+
if (proto.deleted) {
|
|
13484
|
+
m.deleted = new Date(proto.deleted);
|
|
13485
|
+
}
|
|
13486
|
+
return m;
|
|
13487
|
+
}
|
|
13488
|
+
constructor(kwargs) {
|
|
13489
|
+
if (!kwargs) {
|
|
13490
|
+
return;
|
|
13491
|
+
}
|
|
13492
|
+
Object.assign(this, kwargs);
|
|
13493
|
+
}
|
|
13494
|
+
toApiJson() {
|
|
13495
|
+
const toReturn = {};
|
|
13496
|
+
if (typeof this.subscriptionRelationshipId !== 'undefined') {
|
|
13497
|
+
toReturn['subscriptionRelationshipId'] = this.subscriptionRelationshipId;
|
|
13498
|
+
}
|
|
13499
|
+
if (typeof this.merchantId !== 'undefined') {
|
|
13500
|
+
toReturn['merchantId'] = this.merchantId;
|
|
13501
|
+
}
|
|
13502
|
+
if (typeof this.customerId !== 'undefined') {
|
|
13503
|
+
toReturn['customerId'] = this.customerId;
|
|
13504
|
+
}
|
|
13505
|
+
if (typeof this.originId !== 'undefined') {
|
|
13506
|
+
toReturn['originId'] = this.originId;
|
|
13507
|
+
}
|
|
13508
|
+
if (typeof this.originType !== 'undefined') {
|
|
13509
|
+
toReturn['originType'] = this.originType;
|
|
13510
|
+
}
|
|
13511
|
+
if (typeof this.targetId !== 'undefined') {
|
|
13512
|
+
toReturn['targetId'] = this.targetId;
|
|
13513
|
+
}
|
|
13514
|
+
if (typeof this.targetType !== 'undefined') {
|
|
13515
|
+
toReturn['targetType'] = this.targetType;
|
|
13516
|
+
}
|
|
13517
|
+
if (typeof this.relationshipType !== 'undefined') {
|
|
13518
|
+
toReturn['relationshipType'] = this.relationshipType;
|
|
13519
|
+
}
|
|
13520
|
+
if (typeof this.created !== 'undefined' && this.created !== null) {
|
|
13521
|
+
toReturn['created'] = 'toApiJson' in this.created ? this.created.toApiJson() : this.created;
|
|
13522
|
+
}
|
|
13523
|
+
if (typeof this.updated !== 'undefined' && this.updated !== null) {
|
|
13524
|
+
toReturn['updated'] = 'toApiJson' in this.updated ? this.updated.toApiJson() : this.updated;
|
|
13525
|
+
}
|
|
13526
|
+
if (typeof this.deleted !== 'undefined' && this.deleted !== null) {
|
|
13527
|
+
toReturn['deleted'] = 'toApiJson' in this.deleted ? this.deleted.toApiJson() : this.deleted;
|
|
13528
|
+
}
|
|
13529
|
+
return toReturn;
|
|
13530
|
+
}
|
|
13531
|
+
}
|
|
13532
|
+
|
|
13244
13533
|
function enumStringToValue(enumRef, value) {
|
|
13245
13534
|
if (typeof value === 'number') {
|
|
13246
13535
|
return value;
|
|
@@ -15407,6 +15696,44 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.3", ngImpor
|
|
|
15407
15696
|
args: [{ providedIn: 'root' }]
|
|
15408
15697
|
}], ctorParameters: function () { return [{ type: i1.HttpClient }, { type: HostService }]; } });
|
|
15409
15698
|
|
|
15699
|
+
// *********************************
|
|
15700
|
+
class SubscriptionRelationshipApiService {
|
|
15701
|
+
constructor(http, hostService) {
|
|
15702
|
+
this.http = http;
|
|
15703
|
+
this.hostService = hostService;
|
|
15704
|
+
this._host = this.hostService.hostWithScheme;
|
|
15705
|
+
}
|
|
15706
|
+
apiOptions() {
|
|
15707
|
+
return {
|
|
15708
|
+
headers: new HttpHeaders({
|
|
15709
|
+
'Content-Type': 'application/json'
|
|
15710
|
+
}),
|
|
15711
|
+
withCredentials: true
|
|
15712
|
+
};
|
|
15713
|
+
}
|
|
15714
|
+
replace(r) {
|
|
15715
|
+
const request = (r.toApiJson) ? r : new ReplaceSubscriptionRelationshipsRequest(r);
|
|
15716
|
+
return this.http.post(this._host + "/billing.v1.SubscriptionRelationshipService/Replace", request.toApiJson(), this.apiOptions())
|
|
15717
|
+
.pipe(map(resp => ReplaceSubscriptionRelationshipsResponse.fromProto(resp)));
|
|
15718
|
+
}
|
|
15719
|
+
list(r) {
|
|
15720
|
+
const request = (r.toApiJson) ? r : new ListSubscriptionRelationshipsRequest(r);
|
|
15721
|
+
return this.http.post(this._host + "/billing.v1.SubscriptionRelationshipService/List", request.toApiJson(), this.apiOptions())
|
|
15722
|
+
.pipe(map(resp => ListSubscriptionRelationshipsResponse.fromProto(resp)));
|
|
15723
|
+
}
|
|
15724
|
+
getMulti(r) {
|
|
15725
|
+
const request = (r.toApiJson) ? r : new GetMultiSubscriptionRelationshipsRequest(r);
|
|
15726
|
+
return this.http.post(this._host + "/billing.v1.SubscriptionRelationshipService/GetMulti", request.toApiJson(), this.apiOptions())
|
|
15727
|
+
.pipe(map(resp => GetMultiSubscriptionRelationshipsResponse.fromProto(resp)));
|
|
15728
|
+
}
|
|
15729
|
+
}
|
|
15730
|
+
SubscriptionRelationshipApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.3", ngImport: i0, type: SubscriptionRelationshipApiService, deps: [{ token: i1.HttpClient }, { token: HostService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
15731
|
+
SubscriptionRelationshipApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.3", ngImport: i0, type: SubscriptionRelationshipApiService, providedIn: 'root' });
|
|
15732
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.3", ngImport: i0, type: SubscriptionRelationshipApiService, decorators: [{
|
|
15733
|
+
type: Injectable,
|
|
15734
|
+
args: [{ providedIn: 'root' }]
|
|
15735
|
+
}], ctorParameters: function () { return [{ type: i1.HttpClient }, { type: HostService }]; } });
|
|
15736
|
+
|
|
15410
15737
|
// *********************************
|
|
15411
15738
|
class TaxApiService {
|
|
15412
15739
|
constructor(http, hostService) {
|
|
@@ -15504,5 +15831,5 @@ const usdConversionRate = 1.4;
|
|
|
15504
15831
|
* Generated bundle index. Do not edit.
|
|
15505
15832
|
*/
|
|
15506
15833
|
|
|
15507
|
-
export { Access, AccountBalance, AddBundleRequest, AddBundleResponse, AddCreditRequest, AddLineItemRequest, AddLineItemResponse, Adjustment, AlignmentSubscription, AppliedBundle, AppliedBundleItem, AppliedCredit, AppliedDiscount, AppliedFee, AppliedTaxRate, ArchiveTaxRequest, Balance, BalanceAmount, BankAccount, BankReconciliationApiService, BillItemRequest, BillMultipleItemsRequest, BillMultipleItemsResponse, BillableItem, BillableItemCustomerAddress, BillingApiService, BillingStrategy, Bundle, BundleApiService, BundleItem, BundleItemPrice, BundlePricing, BundlePricingPriceAndFrequency, 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, CreateDiscountRequest, CreateInvoiceRequest, CreateInvoiceResponse, CreateMerchantRequest, CreateMerchantRequestIncludeInFinancialRecords, CreateMerchantServicesReportRun, CreateMeteredComponentRequest, CreatePaymentCardRequest, CreatePaymentLinkRequest, CreatePaymentLinkResponse, CreatePricingPlanProductRequest, CreatePricingPlanProductRequestPricingEntry, CreatePricingPlanProductResponse, CreatePricingPlanRequest, CreatePricingPlanResponse, CreateProductRequest, CreateRefundRequest, CreateSalesCreditNoteRequest, CreateStripeExternalAccountRequest, CreateSubscriptionRequest, CreateSubscriptionsRequest, CreateSubscriptionsResponse, CreateTaxRequest, CreateUsageRequest, CreditApiService, CreditBalance, CreditType, Currency, CustomerSummary, DateRange, DefaultCustomerConfiguration, DeleteBankAccountRequest, DeleteBillableItemRequest, DeleteContractDocumentRequest, DeleteInvoiceRequest, DeleteLineItemRequest, DeleteLineItemResponse, DeletePaymentCardRequest, DeletePricingPlanProductRequest, DeleteProductRequest, DeleteRecurringInvoiceRequest, DeleteRetailPricingRequest, Discount, DiscountApiService, DiscountType, Dispute, DisputeEvidence, DisputeEvidenceDetails, DisputeStatus, DuplicateInvoiceRequest, DuplicateInvoiceResponse, ExpireBillableItemRequest, ExpireDiscountRequest, ExportResponse, ExportSubscriptionsRequest, Fee, FeeAmountType, FeeType, FieldMask, File, Frequency, GenerateBillableItemsCSVRequest, GenerateBillableItemsCSVResponse, GenerateVendorReportRequest, GenerateVendorReportResponse, GetBalanceRequest, GetBalanceResponse, GetBillableItemRequest, GetBillableItemResponse, GetContractRequest, GetContractResponse, GetInvoiceRequest, GetInvoiceResponse, GetMerchantRequest, GetMerchantResponse, GetMerchantServicesReportRun, GetMultiBundleRequest, GetMultiBundleResponse, GetMultiBundleResponseBundlesEntry, GetMultiBundleRetailPricingRequest, GetMultiBundleRetailPricingResponse, GetMultiBundleRetailPricingResponsePricesEntry, GetMultiContractsRequest, GetMultiContractsResponse, GetMultiContractsResponseContractsEntry, GetMultiCustomerSummariesRequest, GetMultiCustomerSummariesResponse, GetMultiPricingPlanProductRequest, GetMultiPricingPlanProductResponse, GetMultiPricingPlanRequest, GetMultiPricingPlanResponse, GetMultiProductPricingRequest, GetMultiProductPricingResponse, GetMultiProductPricingResponseProductPricesEntry, GetMultiProductRequest, GetMultiProductResponse, GetMultiProductResponseProductsEntry, GetMultiRetailConfigurationsRequest, GetMultiRetailConfigurationsResponse, GetMultiRetailConfigurationsResponseRetailConfigurationsEntry, GetMultiRetailPricingRequest, GetMultiRetailPricingResponse, GetMultiRetailPricingResponseProductPricesEntry, GetMultiSubscriptionsRequest, GetMultiSubscriptionsRequestKey, GetMultiSubscriptionsResponse, GetMultiTaxRequest, GetMultiTaxResponse, GetMultiWholesaleCostRequest, GetMultiWholesaleCostResponse, 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, GetUpcomingInvoicePreviewRequest, GetUpcomingInvoicePreviewResponse, GetWholesaleComparisonRequest, GetWholesaleComparisonRequestGetWholesaleComparisonFilters, GetWholesaleComparisonResponse, GetWholesaleComparisonResponseGetWholesaleComparisonResult, GetWholesaleProviderPublicKeyRequest, GetWholesaleProviderPublicKeyResponse, HostService, Interval, Invoice, InvoiceApiService, InvoiceCustomerAddress, InvoiceItem, InvoiceStatus, Item, ListBankAccountsRequest, ListBankAccountsResponse, ListBillableItemsRequest, ListBillableItemsRequestFilters, ListBillableItemsResponse, ListBundlesRequest, ListBundlesRequestFilters, ListBundlesResponse, ListContractDocumentsRequest, ListContractDocumentsRequestFilters, ListContractDocumentsResponse, ListContractsRequest, ListContractsResponse, ListDiscountsRequest, ListDiscountsRequestFilters, ListDiscountsResponse, ListInvoicesRequest, ListInvoicesRequestFilters, ListInvoicesRequestFiltersDateFilter, ListInvoicesRequestFiltersDateFilterDateField, ListInvoicesResponse, ListMerchantBillingReportsRequest, ListMerchantBillingReportsResponse, ListPaymentCardsRequest, ListPaymentCardsResponse, 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, ListRetailDisputesResponse, ListRetailPaymentsRequest, ListRetailPaymentsRequestListRetailPaymentsFilters, ListRetailPaymentsResponse, ListRetailPayoutsRequest, ListRetailPayoutsResponse, ListRetailTransactionsRequest, ListRetailTransactionsRequestListRetailTransactionsFilters, ListRetailTransactionsResponse, ListSalesCreditNoteRequest, ListSalesCreditNoteRequestListSalesCreditNoteFilters, ListSalesCreditNoteResponse, ListSalesInvoiceRequest, ListSalesInvoiceRequestListSalesInvoiceFilters, ListSalesInvoiceResponse, ListSubscriptionRetentionByGroupResponse, ListSubscriptionRetentionByGroupResponseSubscriptionRetentionByGroup, ListSubscriptionRetentionBySKUResponse, ListSubscriptionRetentionRequest, ListSubscriptionRetentionRequestFilters, ListSubscriptionsRequest, ListSubscriptionsRequestFilters, ListSubscriptionsResponse, ListTaxRequest, ListTaxRequestFilters, ListTaxResponse, Merchant, MerchantApiService, MerchantReport, MerchantReportStatus, MerchantServicesReportRun, MerchantServicesReportRunStatus, MerchantServicesReportRunType, MerchantType, MeteredComponent, Month, PagedRequestOptions, PagedResponseMetadata, PauseDunningRequest, PayInvoiceRequest, Payment, PaymentAllocationType, PaymentApiService, PaymentCard, PaymentCardCARD_TYPE, PaymentCardFUNDING_TYPE, PaymentLinkItem, PaymentMethodApiService, PaymentPaymentAllocation, PaymentProcessor, PaymentSource, PaymentStatus, PaymentStatuses, Payout, PayoutStatus, PayoutType, PostSalesInvoiceRequest, PrepareRetailPaymentRequest, PrepareRetailPaymentRequestOrder, PrepareRetailPaymentResponse, Pricing, PricingApiService, PricingPlan, PricingPlanProduct, PricingPlanProductPricing, PricingPlanProductPricingEntry, PricingRule, PricingRuleType, 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, RemoveBundleRequest, RemoveBundleResponse, RenewalState, ResetContractPricingRequest, ResumeDunningRequest, RetailConfiguration, RetailCustomerConfiguration, RetailCustomerConfigurationApiService, RetailPayment, RetailPaymentCardDetails, 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, SendInvoiceRequest, SendSalesInvoiceEmailRequest, SendSalesInvoiceReceiptEmailRequest, SetAutoChargeInvoicesRequest, SetAutoPostInvoicesRequest, SetDefaultBankAccountRequest, SetDefaultPaymentCardRequest, SetDefaultPaymentMethodRequest, SetHasAlternativePaymentMethodRequest, SetIncludeInFinancialRecordsRequest, SetRenewalStartRequest, SetWholesaleProductStrategyRequest, SetWholesaleProductVolumeCommitmentRequest, SortDirection, StartRevRecTemplateBackfillRequest, StopDunningRequest, SubmitEvidenceRequest, SubmitEvidenceRequestDisputeEvidence, SubscribeValidation, SubscribeValidationStatus, Subscription, SubscriptionProjectionFilter, SubscriptionStatus, TaxApiService, TaxRate, 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, UpdateTaxRequest, UpsertBundleRequest, UpsertDefaultRetailCustomerConfigurationRequest, UpsertRetailConfigurationRequest, UpsertRetailCustomerConfigurationRequest, UpsertRetailPricingRequest, UpsertRetailPricingRequestPricingEntry, UpsertWholesalePricingRequest, ValidateResponse, VendorApiService, VoidInvoiceRequest, VoidPurchaseRequest, WholesaleCostItemRequest, usdConversionRate };
|
|
15834
|
+
export { Access, AccountBalance, AddBundleRequest, AddBundleResponse, AddCreditRequest, AddLineItemRequest, AddLineItemResponse, Adjustment, AlignmentSubscription, AppliedBundle, AppliedBundleItem, AppliedCredit, AppliedDiscount, AppliedFee, AppliedTaxRate, ArchiveTaxRequest, Balance, BalanceAmount, BankAccount, BankReconciliationApiService, BillItemRequest, BillMultipleItemsRequest, BillMultipleItemsResponse, BillableItem, BillableItemCustomerAddress, BillingApiService, BillingStrategy, Bundle, BundleApiService, BundleItem, BundleItemPrice, BundlePricing, BundlePricingPriceAndFrequency, 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, CreateDiscountRequest, CreateInvoiceRequest, CreateInvoiceResponse, CreateMerchantRequest, CreateMerchantRequestIncludeInFinancialRecords, CreateMerchantServicesReportRun, CreateMeteredComponentRequest, CreatePaymentCardRequest, CreatePaymentLinkRequest, CreatePaymentLinkResponse, CreatePricingPlanProductRequest, CreatePricingPlanProductRequestPricingEntry, CreatePricingPlanProductResponse, CreatePricingPlanRequest, CreatePricingPlanResponse, CreateProductRequest, CreateRefundRequest, CreateSalesCreditNoteRequest, CreateStripeExternalAccountRequest, CreateSubscriptionRequest, CreateSubscriptionsRequest, CreateSubscriptionsResponse, CreateTaxRequest, CreateUsageRequest, CreditApiService, CreditBalance, CreditType, Currency, CustomerSummary, DateRange, DefaultCustomerConfiguration, DeleteBankAccountRequest, DeleteBillableItemRequest, DeleteContractDocumentRequest, DeleteInvoiceRequest, DeleteLineItemRequest, DeleteLineItemResponse, DeletePaymentCardRequest, DeletePricingPlanProductRequest, DeleteProductRequest, DeleteRecurringInvoiceRequest, DeleteRetailPricingRequest, 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, GetInvoiceRequest, GetInvoiceResponse, GetMerchantRequest, GetMerchantResponse, GetMerchantServicesReportRun, GetMultiBundleRequest, GetMultiBundleResponse, GetMultiBundleResponseBundlesEntry, GetMultiBundleRetailPricingRequest, GetMultiBundleRetailPricingResponse, GetMultiBundleRetailPricingResponsePricesEntry, GetMultiContractsRequest, GetMultiContractsResponse, GetMultiContractsResponseContractsEntry, 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, 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, GetUpcomingInvoicePreviewRequest, GetUpcomingInvoicePreviewResponse, GetWholesaleComparisonRequest, GetWholesaleComparisonRequestGetWholesaleComparisonFilters, GetWholesaleComparisonResponse, GetWholesaleComparisonResponseGetWholesaleComparisonResult, GetWholesaleProviderPublicKeyRequest, GetWholesaleProviderPublicKeyResponse, HostService, Interval, Invoice, InvoiceApiService, InvoiceCustomerAddress, InvoiceItem, InvoiceStatus, Item, ListBankAccountsRequest, ListBankAccountsResponse, ListBillableItemsRequest, ListBillableItemsRequestFilters, ListBillableItemsResponse, ListBundlesRequest, ListBundlesRequestFilters, ListBundlesResponse, ListContractDocumentsRequest, ListContractDocumentsRequestFilters, ListContractDocumentsResponse, ListContractsRequest, ListContractsResponse, ListDiscountsRequest, ListDiscountsRequestFilters, ListDiscountsResponse, ListInvoicesRequest, ListInvoicesRequestFilters, ListInvoicesRequestFiltersDateFilter, ListInvoicesRequestFiltersDateFilterDateField, ListInvoicesResponse, ListMerchantBillingReportsRequest, ListMerchantBillingReportsResponse, ListPaymentCardsRequest, ListPaymentCardsResponse, 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, 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, Merchant, MerchantApiService, MerchantReport, MerchantReportStatus, MerchantServicesReportRun, MerchantServicesReportRunStatus, MerchantServicesReportRunType, MerchantType, MeteredComponent, Month, PagedRequestOptions, PagedResponseMetadata, PauseDunningRequest, PayInvoiceRequest, Payment, PaymentAllocationType, PaymentApiService, PaymentCard, PaymentCardCARD_TYPE, PaymentCardFUNDING_TYPE, PaymentLinkItem, PaymentMethodApiService, PaymentPaymentAllocation, PaymentProcessor, PaymentSource, PaymentStatus, PaymentStatuses, Payout, PayoutStatus, PayoutType, PostSalesInvoiceRequest, PrepareRetailPaymentRequest, PrepareRetailPaymentRequestOrder, PrepareRetailPaymentResponse, Pricing, PricingApiService, PricingPlan, PricingPlanProduct, PricingPlanProductPricing, PricingPlanProductPricingEntry, PricingRule, PricingRuleType, 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, ReplaceSubscriptionRelationshipsRequest, ReplaceSubscriptionRelationshipsResponse, ResetContractPricingRequest, ResumeDunningRequest, RetailConfiguration, RetailCustomerConfiguration, RetailCustomerConfigurationApiService, RetailPayment, RetailPaymentCardDetails, 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, SendInvoiceRequest, SendSalesInvoiceEmailRequest, SendSalesInvoiceReceiptEmailRequest, SetAutoChargeInvoicesRequest, SetAutoPostInvoicesRequest, SetDefaultBankAccountRequest, SetDefaultPaymentCardRequest, SetDefaultPaymentMethodRequest, SetHasAlternativePaymentMethodRequest, SetIncludeInFinancialRecordsRequest, SetRenewalStartRequest, SetWholesaleProductStrategyRequest, SetWholesaleProductVolumeCommitmentRequest, SortDirection, StartRevRecTemplateBackfillRequest, StopDunningRequest, SubmitEvidenceRequest, SubmitEvidenceRequestDisputeEvidence, SubscribeValidation, SubscribeValidationStatus, Subscription, SubscriptionProjectionFilter, SubscriptionRelationship, SubscriptionRelationshipApiService, SubscriptionStatus, TaxApiService, TaxRate, 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, UpdateTaxRequest, UpsertBundleRequest, UpsertDefaultRetailCustomerConfigurationRequest, UpsertRetailConfigurationRequest, UpsertRetailCustomerConfigurationRequest, UpsertRetailPricingRequest, UpsertRetailPricingRequestPricingEntry, UpsertWholesalePricingRequest, ValidateResponse, VendorApiService, VoidInvoiceRequest, VoidPurchaseRequest, WholesaleCostItemRequest, usdConversionRate };
|
|
15508
15835
|
//# sourceMappingURL=vendasta-billing.mjs.map
|