@vendasta/billing 9.2.0 → 9.5.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/report-run.enum.mjs +19 -0
- package/esm2020/lib/_internal/interfaces/annotations.interface.mjs +8 -0
- package/esm2020/lib/_internal/interfaces/api.interface.mjs +1 -1
- package/esm2020/lib/_internal/interfaces/index.mjs +1 -1
- package/esm2020/lib/_internal/interfaces/pricing-plan-product.interface.mjs +1 -1
- package/esm2020/lib/_internal/interfaces/recurring-invoice.interface.mjs +1 -1
- package/esm2020/lib/_internal/interfaces/report-run.interface.mjs +8 -0
- package/esm2020/lib/_internal/merchant.api.service.mjs +12 -2
- package/esm2020/lib/_internal/objects/annotations.mjs +30 -0
- package/esm2020/lib/_internal/objects/api.mjs +13 -1
- package/esm2020/lib/_internal/objects/index.mjs +3 -1
- package/esm2020/lib/_internal/objects/pricing-plan-product.mjs +49 -1
- package/esm2020/lib/_internal/objects/recurring-invoice.mjs +14 -1
- package/esm2020/lib/_internal/objects/report-run.mjs +110 -0
- package/fesm2015/vendasta-billing.mjs +378 -138
- package/fesm2015/vendasta-billing.mjs.map +1 -1
- package/fesm2020/vendasta-billing.mjs +378 -138
- package/fesm2020/vendasta-billing.mjs.map +1 -1
- package/lib/_internal/enums/index.d.ts +1 -0
- package/lib/_internal/enums/report-run.enum.d.ts +10 -0
- package/lib/_internal/interfaces/annotations.interface.d.ts +4 -0
- package/lib/_internal/interfaces/api.interface.d.ts +2 -0
- package/lib/_internal/interfaces/index.d.ts +2 -0
- package/lib/_internal/interfaces/pricing-plan-product.interface.d.ts +8 -0
- package/lib/_internal/interfaces/recurring-invoice.interface.d.ts +3 -0
- package/lib/_internal/interfaces/report-run.interface.d.ts +18 -0
- package/lib/_internal/merchant.api.service.d.ts +4 -2
- package/lib/_internal/objects/annotations.d.ts +9 -0
- package/lib/_internal/objects/api.d.ts +2 -0
- package/lib/_internal/objects/index.d.ts +2 -0
- package/lib/_internal/objects/pricing-plan-product.d.ts +8 -0
- package/lib/_internal/objects/recurring-invoice.d.ts +3 -0
- package/lib/_internal/objects/report-run.d.ts +29 -0
- package/package.json +1 -1
|
@@ -512,8 +512,27 @@ var RecurringInvoiceStatus;
|
|
|
512
512
|
})(RecurringInvoiceStatus || (RecurringInvoiceStatus = {}));
|
|
513
513
|
|
|
514
514
|
// *********************************
|
|
515
|
+
// Code generated by sdkgen
|
|
516
|
+
// DO NOT EDIT!.
|
|
517
|
+
//
|
|
518
|
+
// Enums.
|
|
519
|
+
// *********************************
|
|
520
|
+
var MerchantServicesReportRunStatus;
|
|
521
|
+
(function (MerchantServicesReportRunStatus) {
|
|
522
|
+
MerchantServicesReportRunStatus[MerchantServicesReportRunStatus["MERCHANT_SERVICES_REPORT_RUN_STATUS_UNSPECIFIED"] = 0] = "MERCHANT_SERVICES_REPORT_RUN_STATUS_UNSPECIFIED";
|
|
523
|
+
MerchantServicesReportRunStatus[MerchantServicesReportRunStatus["MERCHANT_SERVICES_REPORT_RUN_STATUS_PENDING"] = 1] = "MERCHANT_SERVICES_REPORT_RUN_STATUS_PENDING";
|
|
524
|
+
MerchantServicesReportRunStatus[MerchantServicesReportRunStatus["MERCHANT_SERVICES_REPORT_RUN_STATUS_SUCCEEDED"] = 2] = "MERCHANT_SERVICES_REPORT_RUN_STATUS_SUCCEEDED";
|
|
525
|
+
MerchantServicesReportRunStatus[MerchantServicesReportRunStatus["MERCHANT_SERVICES_REPORT_RUN_STATUS_FAILED"] = 3] = "MERCHANT_SERVICES_REPORT_RUN_STATUS_FAILED";
|
|
526
|
+
})(MerchantServicesReportRunStatus || (MerchantServicesReportRunStatus = {}));
|
|
527
|
+
var MerchantServicesReportRunType;
|
|
528
|
+
(function (MerchantServicesReportRunType) {
|
|
529
|
+
MerchantServicesReportRunType[MerchantServicesReportRunType["MERCHANT_SERVICES_REPORT_RUN_TYPE_UNSPECIFIED"] = 0] = "MERCHANT_SERVICES_REPORT_RUN_TYPE_UNSPECIFIED";
|
|
530
|
+
MerchantServicesReportRunType[MerchantServicesReportRunType["MERCHANT_SERVICES_REPORT_RUN_TYPE_BALANCE_ITEMIZED"] = 1] = "MERCHANT_SERVICES_REPORT_RUN_TYPE_BALANCE_ITEMIZED";
|
|
531
|
+
})(MerchantServicesReportRunType || (MerchantServicesReportRunType = {}));
|
|
515
532
|
|
|
516
|
-
|
|
533
|
+
// *********************************
|
|
534
|
+
|
|
535
|
+
function enumStringToValue$E(enumRef, value) {
|
|
517
536
|
if (typeof value === 'number') {
|
|
518
537
|
return value;
|
|
519
538
|
}
|
|
@@ -569,7 +588,7 @@ class PagedResponseMetadata {
|
|
|
569
588
|
}
|
|
570
589
|
}
|
|
571
590
|
|
|
572
|
-
function enumStringToValue$
|
|
591
|
+
function enumStringToValue$D(enumRef, value) {
|
|
573
592
|
if (typeof value === 'number') {
|
|
574
593
|
return value;
|
|
575
594
|
}
|
|
@@ -685,7 +704,7 @@ class BillableItem {
|
|
|
685
704
|
m.updated = new Date(proto.updated);
|
|
686
705
|
}
|
|
687
706
|
if (proto.frequency) {
|
|
688
|
-
m.frequency = enumStringToValue$
|
|
707
|
+
m.frequency = enumStringToValue$D(Frequency, proto.frequency);
|
|
689
708
|
}
|
|
690
709
|
if (proto.nextRenewal) {
|
|
691
710
|
m.nextRenewal = new Date(proto.nextRenewal);
|
|
@@ -697,7 +716,7 @@ class BillableItem {
|
|
|
697
716
|
m.customUnitPrice = parseInt(proto.customUnitPrice, 10);
|
|
698
717
|
}
|
|
699
718
|
if (proto.retailFrequency) {
|
|
700
|
-
m.retailFrequency = enumStringToValue$
|
|
719
|
+
m.retailFrequency = enumStringToValue$D(Frequency, proto.retailFrequency);
|
|
701
720
|
}
|
|
702
721
|
if (proto.nextRetailRenewal) {
|
|
703
722
|
m.nextRetailRenewal = new Date(proto.nextRetailRenewal);
|
|
@@ -1129,7 +1148,7 @@ class ListBillableItemsResponse {
|
|
|
1129
1148
|
}
|
|
1130
1149
|
}
|
|
1131
1150
|
|
|
1132
|
-
function enumStringToValue$
|
|
1151
|
+
function enumStringToValue$C(enumRef, value) {
|
|
1133
1152
|
if (typeof value === 'number') {
|
|
1134
1153
|
return value;
|
|
1135
1154
|
}
|
|
@@ -1146,7 +1165,7 @@ class AppliedDiscount {
|
|
|
1146
1165
|
let m = new AppliedDiscount();
|
|
1147
1166
|
m = Object.assign(m, proto);
|
|
1148
1167
|
if (proto.type) {
|
|
1149
|
-
m.type = enumStringToValue$
|
|
1168
|
+
m.type = enumStringToValue$C(DiscountType, proto.type);
|
|
1150
1169
|
}
|
|
1151
1170
|
if (proto.value) {
|
|
1152
1171
|
m.value = parseInt(proto.value, 10);
|
|
@@ -1174,7 +1193,7 @@ class AppliedDiscount {
|
|
|
1174
1193
|
}
|
|
1175
1194
|
}
|
|
1176
1195
|
|
|
1177
|
-
function enumStringToValue$
|
|
1196
|
+
function enumStringToValue$B(enumRef, value) {
|
|
1178
1197
|
if (typeof value === 'number') {
|
|
1179
1198
|
return value;
|
|
1180
1199
|
}
|
|
@@ -1238,7 +1257,7 @@ class BundleItem {
|
|
|
1238
1257
|
let m = new BundleItem();
|
|
1239
1258
|
m = Object.assign(m, proto);
|
|
1240
1259
|
if (proto.discountType) {
|
|
1241
|
-
m.discountType = enumStringToValue$
|
|
1260
|
+
m.discountType = enumStringToValue$B(DiscountType, proto.discountType);
|
|
1242
1261
|
}
|
|
1243
1262
|
if (proto.discountAmount) {
|
|
1244
1263
|
m.discountAmount = parseInt(proto.discountAmount, 10);
|
|
@@ -1496,7 +1515,7 @@ class BundlePricingPriceAndFrequency {
|
|
|
1496
1515
|
let m = new BundlePricingPriceAndFrequency();
|
|
1497
1516
|
m = Object.assign(m, proto);
|
|
1498
1517
|
if (proto.frequency) {
|
|
1499
|
-
m.frequency = enumStringToValue$
|
|
1518
|
+
m.frequency = enumStringToValue$B(Frequency, proto.frequency);
|
|
1500
1519
|
}
|
|
1501
1520
|
if (proto.effectivePrice) {
|
|
1502
1521
|
m.effectivePrice = parseInt(proto.effectivePrice, 10);
|
|
@@ -1562,7 +1581,7 @@ class UpsertBundleRequest {
|
|
|
1562
1581
|
}
|
|
1563
1582
|
}
|
|
1564
1583
|
|
|
1565
|
-
function enumStringToValue$
|
|
1584
|
+
function enumStringToValue$A(enumRef, value) {
|
|
1566
1585
|
if (typeof value === 'number') {
|
|
1567
1586
|
return value;
|
|
1568
1587
|
}
|
|
@@ -1598,7 +1617,7 @@ class Commitment {
|
|
|
1598
1617
|
}
|
|
1599
1618
|
}
|
|
1600
1619
|
|
|
1601
|
-
function enumStringToValue$
|
|
1620
|
+
function enumStringToValue$z(enumRef, value) {
|
|
1602
1621
|
if (typeof value === 'number') {
|
|
1603
1622
|
return value;
|
|
1604
1623
|
}
|
|
@@ -1621,7 +1640,7 @@ class Contract {
|
|
|
1621
1640
|
m.created = new Date(proto.created);
|
|
1622
1641
|
}
|
|
1623
1642
|
if (proto.currency) {
|
|
1624
|
-
m.currency = enumStringToValue$
|
|
1643
|
+
m.currency = enumStringToValue$z(Currency, proto.currency);
|
|
1625
1644
|
}
|
|
1626
1645
|
if (proto.signed) {
|
|
1627
1646
|
m.signed = new Date(proto.signed);
|
|
@@ -1642,7 +1661,7 @@ class Contract {
|
|
|
1642
1661
|
m.end = new Date(proto.end);
|
|
1643
1662
|
}
|
|
1644
1663
|
if (proto.subscriptionUpdateStatus) {
|
|
1645
|
-
m.subscriptionUpdateStatus = enumStringToValue$
|
|
1664
|
+
m.subscriptionUpdateStatus = enumStringToValue$z(ContractSubscriptionStatus, proto.subscriptionUpdateStatus);
|
|
1646
1665
|
}
|
|
1647
1666
|
return m;
|
|
1648
1667
|
}
|
|
@@ -2051,7 +2070,7 @@ class UpdateContractSubscriptionRequest {
|
|
|
2051
2070
|
let m = new UpdateContractSubscriptionRequest();
|
|
2052
2071
|
m = Object.assign(m, proto);
|
|
2053
2072
|
if (proto.frequency) {
|
|
2054
|
-
m.frequency = enumStringToValue$
|
|
2073
|
+
m.frequency = enumStringToValue$z(Frequency, proto.frequency);
|
|
2055
2074
|
}
|
|
2056
2075
|
return m;
|
|
2057
2076
|
}
|
|
@@ -2070,7 +2089,7 @@ class UpdateContractSubscriptionRequest {
|
|
|
2070
2089
|
}
|
|
2071
2090
|
}
|
|
2072
2091
|
|
|
2073
|
-
function enumStringToValue$
|
|
2092
|
+
function enumStringToValue$y(enumRef, value) {
|
|
2074
2093
|
if (typeof value === 'number') {
|
|
2075
2094
|
return value;
|
|
2076
2095
|
}
|
|
@@ -2093,7 +2112,7 @@ class CustomerSummary {
|
|
|
2093
2112
|
m.purchaseItemTotal = parseInt(proto.purchaseItemTotal, 10);
|
|
2094
2113
|
}
|
|
2095
2114
|
if (proto.currency) {
|
|
2096
|
-
m.currency = enumStringToValue$
|
|
2115
|
+
m.currency = enumStringToValue$y(Currency, proto.currency);
|
|
2097
2116
|
}
|
|
2098
2117
|
return m;
|
|
2099
2118
|
}
|
|
@@ -2173,7 +2192,7 @@ class GetMultiCustomerSummariesResponse {
|
|
|
2173
2192
|
}
|
|
2174
2193
|
}
|
|
2175
2194
|
|
|
2176
|
-
function enumStringToValue$
|
|
2195
|
+
function enumStringToValue$x(enumRef, value) {
|
|
2177
2196
|
if (typeof value === 'number') {
|
|
2178
2197
|
return value;
|
|
2179
2198
|
}
|
|
@@ -2333,7 +2352,7 @@ class SetDefaultBankAccountRequest {
|
|
|
2333
2352
|
}
|
|
2334
2353
|
}
|
|
2335
2354
|
|
|
2336
|
-
function enumStringToValue$
|
|
2355
|
+
function enumStringToValue$w(enumRef, value) {
|
|
2337
2356
|
if (typeof value === 'number') {
|
|
2338
2357
|
return value;
|
|
2339
2358
|
}
|
|
@@ -2350,7 +2369,7 @@ class ProductSummaryDiscount {
|
|
|
2350
2369
|
let m = new ProductSummaryDiscount();
|
|
2351
2370
|
m = Object.assign(m, proto);
|
|
2352
2371
|
if (proto.type) {
|
|
2353
|
-
m.type = enumStringToValue$
|
|
2372
|
+
m.type = enumStringToValue$w(ProductSummaryDiscountDiscountType, proto.type);
|
|
2354
2373
|
}
|
|
2355
2374
|
if (proto.value) {
|
|
2356
2375
|
m.value = parseInt(proto.value, 10);
|
|
@@ -2644,7 +2663,7 @@ class Pricing {
|
|
|
2644
2663
|
let m = new Pricing();
|
|
2645
2664
|
m = Object.assign(m, proto);
|
|
2646
2665
|
if (proto.type) {
|
|
2647
|
-
m.type = enumStringToValue$
|
|
2666
|
+
m.type = enumStringToValue$w(PricingRuleType, proto.type);
|
|
2648
2667
|
}
|
|
2649
2668
|
if (proto.rules) {
|
|
2650
2669
|
m.rules = proto.rules.map(PricingRule.fromProto);
|
|
@@ -2688,13 +2707,13 @@ class ProductSummary {
|
|
|
2688
2707
|
m.discounts = proto.discounts.map(ProductSummaryDiscount.fromProto);
|
|
2689
2708
|
}
|
|
2690
2709
|
if (proto.billingStrategy) {
|
|
2691
|
-
m.billingStrategy = enumStringToValue$
|
|
2710
|
+
m.billingStrategy = enumStringToValue$w(ProductSummaryBillingStrategy, proto.billingStrategy);
|
|
2692
2711
|
}
|
|
2693
2712
|
if (proto.productType) {
|
|
2694
|
-
m.productType = enumStringToValue$
|
|
2713
|
+
m.productType = enumStringToValue$w(ProductSummaryProductType, proto.productType);
|
|
2695
2714
|
}
|
|
2696
2715
|
if (proto.frequency) {
|
|
2697
|
-
m.frequency = enumStringToValue$
|
|
2716
|
+
m.frequency = enumStringToValue$w(Frequency, proto.frequency);
|
|
2698
2717
|
}
|
|
2699
2718
|
if (proto.volumeCommitment) {
|
|
2700
2719
|
m.volumeCommitment = parseInt(proto.volumeCommitment, 10);
|
|
@@ -2869,7 +2888,7 @@ class ListSubscriptionRetentionByGroupResponseSubscriptionRetentionByGroup {
|
|
|
2869
2888
|
}
|
|
2870
2889
|
}
|
|
2871
2890
|
|
|
2872
|
-
function enumStringToValue$
|
|
2891
|
+
function enumStringToValue$v(enumRef, value) {
|
|
2873
2892
|
if (typeof value === 'number') {
|
|
2874
2893
|
return value;
|
|
2875
2894
|
}
|
|
@@ -2886,7 +2905,7 @@ class CreateDiscountRequest {
|
|
|
2886
2905
|
let m = new CreateDiscountRequest();
|
|
2887
2906
|
m = Object.assign(m, proto);
|
|
2888
2907
|
if (proto.discountType) {
|
|
2889
|
-
m.discountType = enumStringToValue$
|
|
2908
|
+
m.discountType = enumStringToValue$v(DiscountType, proto.discountType);
|
|
2890
2909
|
}
|
|
2891
2910
|
if (proto.amount) {
|
|
2892
2911
|
m.amount = parseInt(proto.amount, 10);
|
|
@@ -2942,7 +2961,7 @@ class Discount {
|
|
|
2942
2961
|
m.discountId = parseInt(proto.discountId, 10);
|
|
2943
2962
|
}
|
|
2944
2963
|
if (proto.discountType) {
|
|
2945
|
-
m.discountType = enumStringToValue$
|
|
2964
|
+
m.discountType = enumStringToValue$v(DiscountType, proto.discountType);
|
|
2946
2965
|
}
|
|
2947
2966
|
if (proto.amount) {
|
|
2948
2967
|
m.amount = parseInt(proto.amount, 10);
|
|
@@ -3123,7 +3142,7 @@ class UpdateDiscountRequest {
|
|
|
3123
3142
|
let m = new UpdateDiscountRequest();
|
|
3124
3143
|
m = Object.assign(m, proto);
|
|
3125
3144
|
if (proto.discountType) {
|
|
3126
|
-
m.discountType = enumStringToValue$
|
|
3145
|
+
m.discountType = enumStringToValue$v(DiscountType, proto.discountType);
|
|
3127
3146
|
}
|
|
3128
3147
|
if (proto.amount) {
|
|
3129
3148
|
m.amount = parseInt(proto.amount, 10);
|
|
@@ -3166,7 +3185,7 @@ class UpdateDiscountRequest {
|
|
|
3166
3185
|
}
|
|
3167
3186
|
}
|
|
3168
3187
|
|
|
3169
|
-
function enumStringToValue$
|
|
3188
|
+
function enumStringToValue$u(enumRef, value) {
|
|
3170
3189
|
if (typeof value === 'number') {
|
|
3171
3190
|
return value;
|
|
3172
3191
|
}
|
|
@@ -3205,7 +3224,7 @@ class AppliedTaxRate {
|
|
|
3205
3224
|
}
|
|
3206
3225
|
}
|
|
3207
3226
|
|
|
3208
|
-
function enumStringToValue$
|
|
3227
|
+
function enumStringToValue$t(enumRef, value) {
|
|
3209
3228
|
if (typeof value === 'number') {
|
|
3210
3229
|
return value;
|
|
3211
3230
|
}
|
|
@@ -3232,7 +3251,7 @@ class FieldMask {
|
|
|
3232
3251
|
}
|
|
3233
3252
|
}
|
|
3234
3253
|
|
|
3235
|
-
function enumStringToValue$
|
|
3254
|
+
function enumStringToValue$s(enumRef, value) {
|
|
3236
3255
|
if (typeof value === 'number') {
|
|
3237
3256
|
return value;
|
|
3238
3257
|
}
|
|
@@ -3573,7 +3592,7 @@ class UpdateTaxRequest {
|
|
|
3573
3592
|
}
|
|
3574
3593
|
}
|
|
3575
3594
|
|
|
3576
|
-
function enumStringToValue$
|
|
3595
|
+
function enumStringToValue$r(enumRef, value) {
|
|
3577
3596
|
if (typeof value === 'number') {
|
|
3578
3597
|
return value;
|
|
3579
3598
|
}
|
|
@@ -3650,7 +3669,7 @@ class AppliedBundleItem {
|
|
|
3650
3669
|
}
|
|
3651
3670
|
}
|
|
3652
3671
|
|
|
3653
|
-
function enumStringToValue$
|
|
3672
|
+
function enumStringToValue$q(enumRef, value) {
|
|
3654
3673
|
if (typeof value === 'number') {
|
|
3655
3674
|
return value;
|
|
3656
3675
|
}
|
|
@@ -3893,7 +3912,7 @@ class ListInvoicesRequestFiltersDateFilter {
|
|
|
3893
3912
|
let m = new ListInvoicesRequestFiltersDateFilter();
|
|
3894
3913
|
m = Object.assign(m, proto);
|
|
3895
3914
|
if (proto.dateField) {
|
|
3896
|
-
m.dateField = enumStringToValue$
|
|
3915
|
+
m.dateField = enumStringToValue$q(ListInvoicesRequestFiltersDateFilterDateField, proto.dateField);
|
|
3897
3916
|
}
|
|
3898
3917
|
if (proto.dateLte) {
|
|
3899
3918
|
m.dateLte = new Date(proto.dateLte);
|
|
@@ -4043,7 +4062,7 @@ class ListInvoicesRequestFilters {
|
|
|
4043
4062
|
let m = new ListInvoicesRequestFilters();
|
|
4044
4063
|
m = Object.assign(m, proto);
|
|
4045
4064
|
if (proto.statuses) {
|
|
4046
|
-
m.statuses = proto.statuses.map((v) => enumStringToValue$
|
|
4065
|
+
m.statuses = proto.statuses.map((v) => enumStringToValue$q(InvoiceStatus, v));
|
|
4047
4066
|
}
|
|
4048
4067
|
if (proto.dateFilter) {
|
|
4049
4068
|
m.dateFilter = ListInvoicesRequestFiltersDateFilter.fromProto(proto.dateFilter);
|
|
@@ -4130,7 +4149,7 @@ class Invoice {
|
|
|
4130
4149
|
let m = new Invoice();
|
|
4131
4150
|
m = Object.assign(m, proto);
|
|
4132
4151
|
if (proto.status) {
|
|
4133
|
-
m.status = enumStringToValue$
|
|
4152
|
+
m.status = enumStringToValue$q(InvoiceStatus, proto.status);
|
|
4134
4153
|
}
|
|
4135
4154
|
if (proto.subtotal) {
|
|
4136
4155
|
m.subtotal = parseInt(proto.subtotal, 10);
|
|
@@ -4157,7 +4176,7 @@ class Invoice {
|
|
|
4157
4176
|
m.items = proto.items.map(InvoiceItem.fromProto);
|
|
4158
4177
|
}
|
|
4159
4178
|
if (proto.currency) {
|
|
4160
|
-
m.currency = enumStringToValue$
|
|
4179
|
+
m.currency = enumStringToValue$q(Currency, proto.currency);
|
|
4161
4180
|
}
|
|
4162
4181
|
if (proto.paid) {
|
|
4163
4182
|
m.paid = new Date(proto.paid);
|
|
@@ -4760,7 +4779,7 @@ class VoidInvoiceRequest {
|
|
|
4760
4779
|
}
|
|
4761
4780
|
}
|
|
4762
4781
|
|
|
4763
|
-
function enumStringToValue$
|
|
4782
|
+
function enumStringToValue$p(enumRef, value) {
|
|
4764
4783
|
if (typeof value === 'number') {
|
|
4765
4784
|
return value;
|
|
4766
4785
|
}
|
|
@@ -4805,7 +4824,7 @@ class Balance {
|
|
|
4805
4824
|
}
|
|
4806
4825
|
}
|
|
4807
4826
|
|
|
4808
|
-
function enumStringToValue$
|
|
4827
|
+
function enumStringToValue$o(enumRef, value) {
|
|
4809
4828
|
if (typeof value === 'number') {
|
|
4810
4829
|
return value;
|
|
4811
4830
|
}
|
|
@@ -4841,7 +4860,7 @@ class DateRange {
|
|
|
4841
4860
|
}
|
|
4842
4861
|
}
|
|
4843
4862
|
|
|
4844
|
-
function enumStringToValue$
|
|
4863
|
+
function enumStringToValue$n(enumRef, value) {
|
|
4845
4864
|
if (typeof value === 'number') {
|
|
4846
4865
|
return value;
|
|
4847
4866
|
}
|
|
@@ -4945,13 +4964,13 @@ class Payout {
|
|
|
4945
4964
|
m.amount = parseInt(proto.amount, 10);
|
|
4946
4965
|
}
|
|
4947
4966
|
if (proto.currency) {
|
|
4948
|
-
m.currency = enumStringToValue$
|
|
4967
|
+
m.currency = enumStringToValue$n(Currency, proto.currency);
|
|
4949
4968
|
}
|
|
4950
4969
|
if (proto.status) {
|
|
4951
|
-
m.status = enumStringToValue$
|
|
4970
|
+
m.status = enumStringToValue$n(PayoutStatus, proto.status);
|
|
4952
4971
|
}
|
|
4953
4972
|
if (proto.type) {
|
|
4954
|
-
m.type = enumStringToValue$
|
|
4973
|
+
m.type = enumStringToValue$n(PayoutType, proto.type);
|
|
4955
4974
|
}
|
|
4956
4975
|
return m;
|
|
4957
4976
|
}
|
|
@@ -5050,10 +5069,10 @@ class RetailPayout {
|
|
|
5050
5069
|
m.amount = parseInt(proto.amount, 10);
|
|
5051
5070
|
}
|
|
5052
5071
|
if (proto.status) {
|
|
5053
|
-
m.status = enumStringToValue$
|
|
5072
|
+
m.status = enumStringToValue$n(PayoutStatus, proto.status);
|
|
5054
5073
|
}
|
|
5055
5074
|
if (proto.type) {
|
|
5056
|
-
m.type = enumStringToValue$
|
|
5075
|
+
m.type = enumStringToValue$n(PayoutType, proto.type);
|
|
5057
5076
|
}
|
|
5058
5077
|
return m;
|
|
5059
5078
|
}
|
|
@@ -5096,7 +5115,7 @@ class RetailPayout {
|
|
|
5096
5115
|
}
|
|
5097
5116
|
}
|
|
5098
5117
|
|
|
5099
|
-
function enumStringToValue$
|
|
5118
|
+
function enumStringToValue$m(enumRef, value) {
|
|
5100
5119
|
if (typeof value === 'number') {
|
|
5101
5120
|
return value;
|
|
5102
5121
|
}
|
|
@@ -5394,7 +5413,7 @@ class GetOutstandingBalanceResponse {
|
|
|
5394
5413
|
m.outstandingBalance = parseInt(proto.outstandingBalance, 10);
|
|
5395
5414
|
}
|
|
5396
5415
|
if (proto.currency) {
|
|
5397
|
-
m.currency = enumStringToValue$
|
|
5416
|
+
m.currency = enumStringToValue$m(Currency, proto.currency);
|
|
5398
5417
|
}
|
|
5399
5418
|
return m;
|
|
5400
5419
|
}
|
|
@@ -5791,10 +5810,10 @@ class SearchMerchantsRequest {
|
|
|
5791
5810
|
let m = new SearchMerchantsRequest();
|
|
5792
5811
|
m = Object.assign(m, proto);
|
|
5793
5812
|
if (proto.sortBy) {
|
|
5794
|
-
m.sortBy = enumStringToValue$
|
|
5813
|
+
m.sortBy = enumStringToValue$m(SearchMerchantsRequestSortBy, proto.sortBy);
|
|
5795
5814
|
}
|
|
5796
5815
|
if (proto.sortDirection) {
|
|
5797
|
-
m.sortDirection = enumStringToValue$
|
|
5816
|
+
m.sortDirection = enumStringToValue$m(SortDirection, proto.sortDirection);
|
|
5798
5817
|
}
|
|
5799
5818
|
if (proto.pagingOptions) {
|
|
5800
5819
|
m.pagingOptions = PagedRequestOptions.fromProto(proto.pagingOptions);
|
|
@@ -6083,7 +6102,7 @@ class UpsertRetailConfigurationRequest {
|
|
|
6083
6102
|
}
|
|
6084
6103
|
}
|
|
6085
6104
|
|
|
6086
|
-
function enumStringToValue$
|
|
6105
|
+
function enumStringToValue$l(enumRef, value) {
|
|
6087
6106
|
if (typeof value === 'number') {
|
|
6088
6107
|
return value;
|
|
6089
6108
|
}
|
|
@@ -6158,13 +6177,13 @@ class MerchantReport {
|
|
|
6158
6177
|
m.year = parseInt(proto.year, 10);
|
|
6159
6178
|
}
|
|
6160
6179
|
if (proto.month) {
|
|
6161
|
-
m.month = enumStringToValue$
|
|
6180
|
+
m.month = enumStringToValue$l(Month, proto.month);
|
|
6162
6181
|
}
|
|
6163
6182
|
if (proto.created) {
|
|
6164
6183
|
m.created = new Date(proto.created);
|
|
6165
6184
|
}
|
|
6166
6185
|
if (proto.status) {
|
|
6167
|
-
m.status = enumStringToValue$
|
|
6186
|
+
m.status = enumStringToValue$l(MerchantReportStatus, proto.status);
|
|
6168
6187
|
}
|
|
6169
6188
|
return m;
|
|
6170
6189
|
}
|
|
@@ -6189,7 +6208,7 @@ class MerchantReport {
|
|
|
6189
6208
|
}
|
|
6190
6209
|
}
|
|
6191
6210
|
|
|
6192
|
-
function enumStringToValue$
|
|
6211
|
+
function enumStringToValue$k(enumRef, value) {
|
|
6193
6212
|
if (typeof value === 'number') {
|
|
6194
6213
|
return value;
|
|
6195
6214
|
}
|
|
@@ -6286,7 +6305,7 @@ class TickComponentUsageRequest {
|
|
|
6286
6305
|
}
|
|
6287
6306
|
}
|
|
6288
6307
|
|
|
6289
|
-
function enumStringToValue$
|
|
6308
|
+
function enumStringToValue$j(enumRef, value) {
|
|
6290
6309
|
if (typeof value === 'number') {
|
|
6291
6310
|
return value;
|
|
6292
6311
|
}
|
|
@@ -6303,7 +6322,7 @@ class RetailPaymentCardDetails {
|
|
|
6303
6322
|
let m = new RetailPaymentCardDetails();
|
|
6304
6323
|
m = Object.assign(m, proto);
|
|
6305
6324
|
if (proto.cardType) {
|
|
6306
|
-
m.cardType = enumStringToValue$
|
|
6325
|
+
m.cardType = enumStringToValue$j(CardType, proto.cardType);
|
|
6307
6326
|
}
|
|
6308
6327
|
return m;
|
|
6309
6328
|
}
|
|
@@ -6424,7 +6443,7 @@ class Dispute {
|
|
|
6424
6443
|
let m = new Dispute();
|
|
6425
6444
|
m = Object.assign(m, proto);
|
|
6426
6445
|
if (proto.status) {
|
|
6427
|
-
m.status = enumStringToValue$
|
|
6446
|
+
m.status = enumStringToValue$j(DisputeStatus, proto.status);
|
|
6428
6447
|
}
|
|
6429
6448
|
if (proto.amount) {
|
|
6430
6449
|
m.amount = parseInt(proto.amount, 10);
|
|
@@ -7079,10 +7098,10 @@ class Payment {
|
|
|
7079
7098
|
m.created = new Date(proto.created);
|
|
7080
7099
|
}
|
|
7081
7100
|
if (proto.currency) {
|
|
7082
|
-
m.currency = enumStringToValue$
|
|
7101
|
+
m.currency = enumStringToValue$j(Currency, proto.currency);
|
|
7083
7102
|
}
|
|
7084
7103
|
if (proto.paymentSource) {
|
|
7085
|
-
m.paymentSource = enumStringToValue$
|
|
7104
|
+
m.paymentSource = enumStringToValue$j(PaymentSource, proto.paymentSource);
|
|
7086
7105
|
}
|
|
7087
7106
|
if (proto.allocations) {
|
|
7088
7107
|
m.allocations = proto.allocations.map(PaymentPaymentAllocation.fromProto);
|
|
@@ -7091,7 +7110,7 @@ class Payment {
|
|
|
7091
7110
|
m.total = parseInt(proto.total, 10);
|
|
7092
7111
|
}
|
|
7093
7112
|
if (proto.status) {
|
|
7094
|
-
m.status = enumStringToValue$
|
|
7113
|
+
m.status = enumStringToValue$j(PaymentStatus, proto.status);
|
|
7095
7114
|
}
|
|
7096
7115
|
return m;
|
|
7097
7116
|
}
|
|
@@ -7141,7 +7160,7 @@ class PaymentPaymentAllocation {
|
|
|
7141
7160
|
m.amount = parseInt(proto.amount, 10);
|
|
7142
7161
|
}
|
|
7143
7162
|
if (proto.type) {
|
|
7144
|
-
m.type = enumStringToValue$
|
|
7163
|
+
m.type = enumStringToValue$j(PaymentAllocationType, proto.type);
|
|
7145
7164
|
}
|
|
7146
7165
|
return m;
|
|
7147
7166
|
}
|
|
@@ -7231,10 +7250,10 @@ class RetailPayment {
|
|
|
7231
7250
|
m.amount = parseInt(proto.amount, 10);
|
|
7232
7251
|
}
|
|
7233
7252
|
if (proto.referenceType) {
|
|
7234
|
-
m.referenceType = enumStringToValue$
|
|
7253
|
+
m.referenceType = enumStringToValue$j(RetailPaymentReferenceType, proto.referenceType);
|
|
7235
7254
|
}
|
|
7236
7255
|
if (proto.status) {
|
|
7237
|
-
m.status = enumStringToValue$
|
|
7256
|
+
m.status = enumStringToValue$j(PaymentStatus, proto.status);
|
|
7238
7257
|
}
|
|
7239
7258
|
if (proto.applicationFee) {
|
|
7240
7259
|
m.applicationFee = parseInt(proto.applicationFee, 10);
|
|
@@ -7503,7 +7522,7 @@ class RetailStatusResponseVerificationRequirements {
|
|
|
7503
7522
|
}
|
|
7504
7523
|
}
|
|
7505
7524
|
|
|
7506
|
-
function enumStringToValue$
|
|
7525
|
+
function enumStringToValue$i(enumRef, value) {
|
|
7507
7526
|
if (typeof value === 'number') {
|
|
7508
7527
|
return value;
|
|
7509
7528
|
}
|
|
@@ -7612,10 +7631,10 @@ class PaymentCard {
|
|
|
7612
7631
|
let m = new PaymentCard();
|
|
7613
7632
|
m = Object.assign(m, proto);
|
|
7614
7633
|
if (proto.cardType) {
|
|
7615
|
-
m.cardType = enumStringToValue$
|
|
7634
|
+
m.cardType = enumStringToValue$i(PaymentCardCARD_TYPE, proto.cardType);
|
|
7616
7635
|
}
|
|
7617
7636
|
if (proto.fundingType) {
|
|
7618
|
-
m.fundingType = enumStringToValue$
|
|
7637
|
+
m.fundingType = enumStringToValue$i(PaymentCardFUNDING_TYPE, proto.fundingType);
|
|
7619
7638
|
}
|
|
7620
7639
|
return m;
|
|
7621
7640
|
}
|
|
@@ -7713,7 +7732,7 @@ class UpdatePaymentCardRequest {
|
|
|
7713
7732
|
}
|
|
7714
7733
|
}
|
|
7715
7734
|
|
|
7716
|
-
function enumStringToValue$
|
|
7735
|
+
function enumStringToValue$h(enumRef, value) {
|
|
7717
7736
|
if (typeof value === 'number') {
|
|
7718
7737
|
return value;
|
|
7719
7738
|
}
|
|
@@ -7756,7 +7775,7 @@ class CreatePricingPlanRequest {
|
|
|
7756
7775
|
let m = new CreatePricingPlanRequest();
|
|
7757
7776
|
m = Object.assign(m, proto);
|
|
7758
7777
|
if (proto.defaultBillingStrategy) {
|
|
7759
|
-
m.defaultBillingStrategy = enumStringToValue$
|
|
7778
|
+
m.defaultBillingStrategy = enumStringToValue$h(BillingStrategy, proto.defaultBillingStrategy);
|
|
7760
7779
|
}
|
|
7761
7780
|
return m;
|
|
7762
7781
|
}
|
|
@@ -7845,7 +7864,7 @@ class PricingPlan {
|
|
|
7845
7864
|
let m = new PricingPlan();
|
|
7846
7865
|
m = Object.assign(m, proto);
|
|
7847
7866
|
if (proto.defaultBillingStrategy) {
|
|
7848
|
-
m.defaultBillingStrategy = enumStringToValue$
|
|
7867
|
+
m.defaultBillingStrategy = enumStringToValue$h(BillingStrategy, proto.defaultBillingStrategy);
|
|
7849
7868
|
}
|
|
7850
7869
|
return m;
|
|
7851
7870
|
}
|
|
@@ -7874,7 +7893,7 @@ class PricingPlanProductPricing {
|
|
|
7874
7893
|
let m = new PricingPlanProductPricing();
|
|
7875
7894
|
m = Object.assign(m, proto);
|
|
7876
7895
|
if (proto.type) {
|
|
7877
|
-
m.type = enumStringToValue$
|
|
7896
|
+
m.type = enumStringToValue$h(ProductPricingType, proto.type);
|
|
7878
7897
|
}
|
|
7879
7898
|
if (proto.rules) {
|
|
7880
7899
|
m.rules = proto.rules.map(ProductPricingRule.fromProto);
|
|
@@ -7883,7 +7902,7 @@ class PricingPlanProductPricing {
|
|
|
7883
7902
|
m.setupFee = parseInt(proto.setupFee, 10);
|
|
7884
7903
|
}
|
|
7885
7904
|
if (proto.frequency) {
|
|
7886
|
-
m.frequency = enumStringToValue$
|
|
7905
|
+
m.frequency = enumStringToValue$h(Frequency, proto.frequency);
|
|
7887
7906
|
}
|
|
7888
7907
|
return m;
|
|
7889
7908
|
}
|
|
@@ -7962,7 +7981,7 @@ class UpdatePricingPlanRequest {
|
|
|
7962
7981
|
m.fieldMask = FieldMask.fromProto(proto.fieldMask);
|
|
7963
7982
|
}
|
|
7964
7983
|
if (proto.defaultBillingStrategy) {
|
|
7965
|
-
m.defaultBillingStrategy = enumStringToValue$
|
|
7984
|
+
m.defaultBillingStrategy = enumStringToValue$h(BillingStrategy, proto.defaultBillingStrategy);
|
|
7966
7985
|
}
|
|
7967
7986
|
return m;
|
|
7968
7987
|
}
|
|
@@ -8001,7 +8020,7 @@ class UpdatePricingPlanResponse {
|
|
|
8001
8020
|
}
|
|
8002
8021
|
}
|
|
8003
8022
|
|
|
8004
|
-
function enumStringToValue$
|
|
8023
|
+
function enumStringToValue$g(enumRef, value) {
|
|
8005
8024
|
if (typeof value === 'number') {
|
|
8006
8025
|
return value;
|
|
8007
8026
|
}
|
|
@@ -8018,7 +8037,7 @@ class CreatePricingPlanProductRequest {
|
|
|
8018
8037
|
let m = new CreatePricingPlanProductRequest();
|
|
8019
8038
|
m = Object.assign(m, proto);
|
|
8020
8039
|
if (proto.frequency) {
|
|
8021
|
-
m.frequency = enumStringToValue$
|
|
8040
|
+
m.frequency = enumStringToValue$g(Frequency, proto.frequency);
|
|
8022
8041
|
}
|
|
8023
8042
|
if (proto.pricing) {
|
|
8024
8043
|
m.pricing = Object.keys(proto.pricing).reduce((obj, k) => { obj[k] = PricingPlanProductPricing.fromProto(proto.pricing[k]); return obj; }, {});
|
|
@@ -8027,11 +8046,17 @@ class CreatePricingPlanProductRequest {
|
|
|
8027
8046
|
m.commitment = Commitment.fromProto(proto.commitment);
|
|
8028
8047
|
}
|
|
8029
8048
|
if (proto.strategy) {
|
|
8030
|
-
m.strategy = enumStringToValue$
|
|
8049
|
+
m.strategy = enumStringToValue$g(BillingStrategy, proto.strategy);
|
|
8031
8050
|
}
|
|
8032
8051
|
if (proto.volumeCommitment) {
|
|
8033
8052
|
m.volumeCommitment = parseInt(proto.volumeCommitment, 10);
|
|
8034
8053
|
}
|
|
8054
|
+
if (proto.volumeCommitmentStartsAt) {
|
|
8055
|
+
m.volumeCommitmentStartsAt = new Date(proto.volumeCommitmentStartsAt);
|
|
8056
|
+
}
|
|
8057
|
+
if (proto.volumeCommitmentEndsAt) {
|
|
8058
|
+
m.volumeCommitmentEndsAt = new Date(proto.volumeCommitmentEndsAt);
|
|
8059
|
+
}
|
|
8035
8060
|
return m;
|
|
8036
8061
|
}
|
|
8037
8062
|
toApiJson() {
|
|
@@ -8057,6 +8082,12 @@ class CreatePricingPlanProductRequest {
|
|
|
8057
8082
|
if (typeof this.volumeCommitment !== 'undefined') {
|
|
8058
8083
|
toReturn['volumeCommitment'] = this.volumeCommitment;
|
|
8059
8084
|
}
|
|
8085
|
+
if (typeof this.volumeCommitmentStartsAt !== 'undefined' && this.volumeCommitmentStartsAt !== null) {
|
|
8086
|
+
toReturn['volumeCommitmentStartsAt'] = 'toApiJson' in this.volumeCommitmentStartsAt ? this.volumeCommitmentStartsAt.toApiJson() : this.volumeCommitmentStartsAt;
|
|
8087
|
+
}
|
|
8088
|
+
if (typeof this.volumeCommitmentEndsAt !== 'undefined' && this.volumeCommitmentEndsAt !== null) {
|
|
8089
|
+
toReturn['volumeCommitmentEndsAt'] = 'toApiJson' in this.volumeCommitmentEndsAt ? this.volumeCommitmentEndsAt.toApiJson() : this.volumeCommitmentEndsAt;
|
|
8090
|
+
}
|
|
8060
8091
|
return toReturn;
|
|
8061
8092
|
}
|
|
8062
8093
|
}
|
|
@@ -8189,7 +8220,7 @@ class GetPricingPlanProductResponse {
|
|
|
8189
8220
|
m.pricingPlanProduct = PricingPlanProduct.fromProto(proto.pricingPlanProduct);
|
|
8190
8221
|
}
|
|
8191
8222
|
if (proto.pricingPlanDefaultStrategy) {
|
|
8192
|
-
m.pricingPlanDefaultStrategy = enumStringToValue$
|
|
8223
|
+
m.pricingPlanDefaultStrategy = enumStringToValue$g(BillingStrategy, proto.pricingPlanDefaultStrategy);
|
|
8193
8224
|
}
|
|
8194
8225
|
return m;
|
|
8195
8226
|
}
|
|
@@ -8377,7 +8408,7 @@ class PricingPlanProduct {
|
|
|
8377
8408
|
let m = new PricingPlanProduct();
|
|
8378
8409
|
m = Object.assign(m, proto);
|
|
8379
8410
|
if (proto.frequency) {
|
|
8380
|
-
m.frequency = enumStringToValue$
|
|
8411
|
+
m.frequency = enumStringToValue$g(Frequency, proto.frequency);
|
|
8381
8412
|
}
|
|
8382
8413
|
if (proto.pricing) {
|
|
8383
8414
|
m.pricing = Object.keys(proto.pricing).reduce((obj, k) => { obj[k] = PricingPlanProductPricing.fromProto(proto.pricing[k]); return obj; }, {});
|
|
@@ -8392,13 +8423,19 @@ class PricingPlanProduct {
|
|
|
8392
8423
|
m.modified = new Date(proto.modified);
|
|
8393
8424
|
}
|
|
8394
8425
|
if (proto.strategy) {
|
|
8395
|
-
m.strategy = enumStringToValue$
|
|
8426
|
+
m.strategy = enumStringToValue$g(BillingStrategy, proto.strategy);
|
|
8396
8427
|
}
|
|
8397
8428
|
if (proto.volumeCommitment) {
|
|
8398
8429
|
m.volumeCommitment = parseInt(proto.volumeCommitment, 10);
|
|
8399
8430
|
}
|
|
8431
|
+
if (proto.volumeCommitmentStartsAt) {
|
|
8432
|
+
m.volumeCommitmentStartsAt = new Date(proto.volumeCommitmentStartsAt);
|
|
8433
|
+
}
|
|
8434
|
+
if (proto.volumeCommitmentEndsAt) {
|
|
8435
|
+
m.volumeCommitmentEndsAt = new Date(proto.volumeCommitmentEndsAt);
|
|
8436
|
+
}
|
|
8400
8437
|
if (proto.pricingType) {
|
|
8401
|
-
m.pricingType = enumStringToValue$
|
|
8438
|
+
m.pricingType = enumStringToValue$g(ProductPricingType, proto.pricingType);
|
|
8402
8439
|
}
|
|
8403
8440
|
return m;
|
|
8404
8441
|
}
|
|
@@ -8431,6 +8468,12 @@ class PricingPlanProduct {
|
|
|
8431
8468
|
if (typeof this.volumeCommitment !== 'undefined') {
|
|
8432
8469
|
toReturn['volumeCommitment'] = this.volumeCommitment;
|
|
8433
8470
|
}
|
|
8471
|
+
if (typeof this.volumeCommitmentStartsAt !== 'undefined' && this.volumeCommitmentStartsAt !== null) {
|
|
8472
|
+
toReturn['volumeCommitmentStartsAt'] = 'toApiJson' in this.volumeCommitmentStartsAt ? this.volumeCommitmentStartsAt.toApiJson() : this.volumeCommitmentStartsAt;
|
|
8473
|
+
}
|
|
8474
|
+
if (typeof this.volumeCommitmentEndsAt !== 'undefined' && this.volumeCommitmentEndsAt !== null) {
|
|
8475
|
+
toReturn['volumeCommitmentEndsAt'] = 'toApiJson' in this.volumeCommitmentEndsAt ? this.volumeCommitmentEndsAt.toApiJson() : this.volumeCommitmentEndsAt;
|
|
8476
|
+
}
|
|
8434
8477
|
if (typeof this.pricingType !== 'undefined') {
|
|
8435
8478
|
toReturn['pricingType'] = this.pricingType;
|
|
8436
8479
|
}
|
|
@@ -8448,7 +8491,7 @@ class UpdatePricingPlanProductRequest {
|
|
|
8448
8491
|
let m = new UpdatePricingPlanProductRequest();
|
|
8449
8492
|
m = Object.assign(m, proto);
|
|
8450
8493
|
if (proto.frequency) {
|
|
8451
|
-
m.frequency = enumStringToValue$
|
|
8494
|
+
m.frequency = enumStringToValue$g(Frequency, proto.frequency);
|
|
8452
8495
|
}
|
|
8453
8496
|
if (proto.pricing) {
|
|
8454
8497
|
m.pricing = Object.keys(proto.pricing).reduce((obj, k) => { obj[k] = PricingPlanProductPricing.fromProto(proto.pricing[k]); return obj; }, {});
|
|
@@ -8460,11 +8503,17 @@ class UpdatePricingPlanProductRequest {
|
|
|
8460
8503
|
m.fieldMask = FieldMask.fromProto(proto.fieldMask);
|
|
8461
8504
|
}
|
|
8462
8505
|
if (proto.strategy) {
|
|
8463
|
-
m.strategy = enumStringToValue$
|
|
8506
|
+
m.strategy = enumStringToValue$g(BillingStrategy, proto.strategy);
|
|
8464
8507
|
}
|
|
8465
8508
|
if (proto.volumeCommitment) {
|
|
8466
8509
|
m.volumeCommitment = parseInt(proto.volumeCommitment, 10);
|
|
8467
8510
|
}
|
|
8511
|
+
if (proto.volumeCommitmentStartsAt) {
|
|
8512
|
+
m.volumeCommitmentStartsAt = new Date(proto.volumeCommitmentStartsAt);
|
|
8513
|
+
}
|
|
8514
|
+
if (proto.volumeCommitmentEndsAt) {
|
|
8515
|
+
m.volumeCommitmentEndsAt = new Date(proto.volumeCommitmentEndsAt);
|
|
8516
|
+
}
|
|
8468
8517
|
return m;
|
|
8469
8518
|
}
|
|
8470
8519
|
toApiJson() {
|
|
@@ -8493,6 +8542,12 @@ class UpdatePricingPlanProductRequest {
|
|
|
8493
8542
|
if (typeof this.volumeCommitment !== 'undefined') {
|
|
8494
8543
|
toReturn['volumeCommitment'] = this.volumeCommitment;
|
|
8495
8544
|
}
|
|
8545
|
+
if (typeof this.volumeCommitmentStartsAt !== 'undefined' && this.volumeCommitmentStartsAt !== null) {
|
|
8546
|
+
toReturn['volumeCommitmentStartsAt'] = 'toApiJson' in this.volumeCommitmentStartsAt ? this.volumeCommitmentStartsAt.toApiJson() : this.volumeCommitmentStartsAt;
|
|
8547
|
+
}
|
|
8548
|
+
if (typeof this.volumeCommitmentEndsAt !== 'undefined' && this.volumeCommitmentEndsAt !== null) {
|
|
8549
|
+
toReturn['volumeCommitmentEndsAt'] = 'toApiJson' in this.volumeCommitmentEndsAt ? this.volumeCommitmentEndsAt.toApiJson() : this.volumeCommitmentEndsAt;
|
|
8550
|
+
}
|
|
8496
8551
|
return toReturn;
|
|
8497
8552
|
}
|
|
8498
8553
|
}
|
|
@@ -8530,11 +8585,17 @@ class UpsertWholesalePricingRequest {
|
|
|
8530
8585
|
m.termCommitment = Commitment.fromProto(proto.termCommitment);
|
|
8531
8586
|
}
|
|
8532
8587
|
if (proto.strategy) {
|
|
8533
|
-
m.strategy = enumStringToValue$
|
|
8588
|
+
m.strategy = enumStringToValue$g(BillingStrategy, proto.strategy);
|
|
8534
8589
|
}
|
|
8535
8590
|
if (proto.volumeCommitment) {
|
|
8536
8591
|
m.volumeCommitment = parseInt(proto.volumeCommitment, 10);
|
|
8537
8592
|
}
|
|
8593
|
+
if (proto.volumeCommitmentStartsAt) {
|
|
8594
|
+
m.volumeCommitmentStartsAt = new Date(proto.volumeCommitmentStartsAt);
|
|
8595
|
+
}
|
|
8596
|
+
if (proto.volumeCommitmentEndsAt) {
|
|
8597
|
+
m.volumeCommitmentEndsAt = new Date(proto.volumeCommitmentEndsAt);
|
|
8598
|
+
}
|
|
8538
8599
|
return m;
|
|
8539
8600
|
}
|
|
8540
8601
|
toApiJson() {
|
|
@@ -8557,11 +8618,17 @@ class UpsertWholesalePricingRequest {
|
|
|
8557
8618
|
if (typeof this.volumeCommitment !== 'undefined') {
|
|
8558
8619
|
toReturn['volumeCommitment'] = this.volumeCommitment;
|
|
8559
8620
|
}
|
|
8621
|
+
if (typeof this.volumeCommitmentStartsAt !== 'undefined' && this.volumeCommitmentStartsAt !== null) {
|
|
8622
|
+
toReturn['volumeCommitmentStartsAt'] = 'toApiJson' in this.volumeCommitmentStartsAt ? this.volumeCommitmentStartsAt.toApiJson() : this.volumeCommitmentStartsAt;
|
|
8623
|
+
}
|
|
8624
|
+
if (typeof this.volumeCommitmentEndsAt !== 'undefined' && this.volumeCommitmentEndsAt !== null) {
|
|
8625
|
+
toReturn['volumeCommitmentEndsAt'] = 'toApiJson' in this.volumeCommitmentEndsAt ? this.volumeCommitmentEndsAt.toApiJson() : this.volumeCommitmentEndsAt;
|
|
8626
|
+
}
|
|
8560
8627
|
return toReturn;
|
|
8561
8628
|
}
|
|
8562
8629
|
}
|
|
8563
8630
|
|
|
8564
|
-
function enumStringToValue$
|
|
8631
|
+
function enumStringToValue$f(enumRef, value) {
|
|
8565
8632
|
if (typeof value === 'number') {
|
|
8566
8633
|
return value;
|
|
8567
8634
|
}
|
|
@@ -8578,7 +8645,7 @@ class CreateProductRequest {
|
|
|
8578
8645
|
let m = new CreateProductRequest();
|
|
8579
8646
|
m = Object.assign(m, proto);
|
|
8580
8647
|
if (proto.productType) {
|
|
8581
|
-
m.productType = enumStringToValue$
|
|
8648
|
+
m.productType = enumStringToValue$f(ProductType, proto.productType);
|
|
8582
8649
|
}
|
|
8583
8650
|
return m;
|
|
8584
8651
|
}
|
|
@@ -8679,7 +8746,7 @@ class ListProductsRequestListProductsFilters {
|
|
|
8679
8746
|
let m = new ListProductsRequestListProductsFilters();
|
|
8680
8747
|
m = Object.assign(m, proto);
|
|
8681
8748
|
if (proto.productType) {
|
|
8682
|
-
m.productType = proto.productType.map((v) => enumStringToValue$
|
|
8749
|
+
m.productType = proto.productType.map((v) => enumStringToValue$f(ProductType, v));
|
|
8683
8750
|
}
|
|
8684
8751
|
return m;
|
|
8685
8752
|
}
|
|
@@ -8775,7 +8842,7 @@ class Product {
|
|
|
8775
8842
|
let m = new Product();
|
|
8776
8843
|
m = Object.assign(m, proto);
|
|
8777
8844
|
if (proto.productType) {
|
|
8778
|
-
m.productType = enumStringToValue$
|
|
8845
|
+
m.productType = enumStringToValue$f(ProductType, proto.productType);
|
|
8779
8846
|
}
|
|
8780
8847
|
return m;
|
|
8781
8848
|
}
|
|
@@ -8839,7 +8906,7 @@ class UpdateProductRequest {
|
|
|
8839
8906
|
let m = new UpdateProductRequest();
|
|
8840
8907
|
m = Object.assign(m, proto);
|
|
8841
8908
|
if (proto.productType) {
|
|
8842
|
-
m.productType = enumStringToValue$
|
|
8909
|
+
m.productType = enumStringToValue$f(ProductType, proto.productType);
|
|
8843
8910
|
}
|
|
8844
8911
|
return m;
|
|
8845
8912
|
}
|
|
@@ -8861,7 +8928,7 @@ class UpdateProductRequest {
|
|
|
8861
8928
|
}
|
|
8862
8929
|
}
|
|
8863
8930
|
|
|
8864
|
-
function enumStringToValue$
|
|
8931
|
+
function enumStringToValue$e(enumRef, value) {
|
|
8865
8932
|
if (typeof value === 'number') {
|
|
8866
8933
|
return value;
|
|
8867
8934
|
}
|
|
@@ -8904,16 +8971,16 @@ class ProductPricing {
|
|
|
8904
8971
|
let m = new ProductPricing();
|
|
8905
8972
|
m = Object.assign(m, proto);
|
|
8906
8973
|
if (proto.strategy) {
|
|
8907
|
-
m.strategy = enumStringToValue$
|
|
8974
|
+
m.strategy = enumStringToValue$e(BillingStrategy, proto.strategy);
|
|
8908
8975
|
}
|
|
8909
8976
|
if (proto.pricingType) {
|
|
8910
|
-
m.pricingType = enumStringToValue$
|
|
8977
|
+
m.pricingType = enumStringToValue$e(ProductPricingType, proto.pricingType);
|
|
8911
8978
|
}
|
|
8912
8979
|
if (proto.currency) {
|
|
8913
|
-
m.currency = enumStringToValue$
|
|
8980
|
+
m.currency = enumStringToValue$e(Currency, proto.currency);
|
|
8914
8981
|
}
|
|
8915
8982
|
if (proto.frequency) {
|
|
8916
|
-
m.frequency = enumStringToValue$
|
|
8983
|
+
m.frequency = enumStringToValue$e(Frequency, proto.frequency);
|
|
8917
8984
|
}
|
|
8918
8985
|
if (proto.pricingRules) {
|
|
8919
8986
|
m.pricingRules = proto.pricingRules.map(ProductPricingRule.fromProto);
|
|
@@ -8978,7 +9045,7 @@ class WholesaleCostItemRequest {
|
|
|
8978
9045
|
m.quantity = parseInt(proto.quantity, 10);
|
|
8979
9046
|
}
|
|
8980
9047
|
if (proto.frequency) {
|
|
8981
|
-
m.frequency = enumStringToValue$
|
|
9048
|
+
m.frequency = enumStringToValue$e(Frequency, proto.frequency);
|
|
8982
9049
|
}
|
|
8983
9050
|
return m;
|
|
8984
9051
|
}
|
|
@@ -8997,7 +9064,7 @@ class WholesaleCostItemRequest {
|
|
|
8997
9064
|
}
|
|
8998
9065
|
}
|
|
8999
9066
|
|
|
9000
|
-
function enumStringToValue$
|
|
9067
|
+
function enumStringToValue$d(enumRef, value) {
|
|
9001
9068
|
if (typeof value === 'number') {
|
|
9002
9069
|
return value;
|
|
9003
9070
|
}
|
|
@@ -9017,7 +9084,7 @@ class AppliedCredit {
|
|
|
9017
9084
|
m.appliedAmount = parseInt(proto.appliedAmount, 10);
|
|
9018
9085
|
}
|
|
9019
9086
|
if (proto.referenceType) {
|
|
9020
|
-
m.referenceType = enumStringToValue$
|
|
9087
|
+
m.referenceType = enumStringToValue$d(CreditType, proto.referenceType);
|
|
9021
9088
|
}
|
|
9022
9089
|
return m;
|
|
9023
9090
|
}
|
|
@@ -9046,7 +9113,7 @@ class ListPurchaseRequestListPurchaseBillingStrategyFilter {
|
|
|
9046
9113
|
let m = new ListPurchaseRequestListPurchaseBillingStrategyFilter();
|
|
9047
9114
|
m = Object.assign(m, proto);
|
|
9048
9115
|
if (proto.billingStrategy) {
|
|
9049
|
-
m.billingStrategy = proto.billingStrategy.map((v) => enumStringToValue$
|
|
9116
|
+
m.billingStrategy = proto.billingStrategy.map((v) => enumStringToValue$d(BillingStrategy, v));
|
|
9050
9117
|
}
|
|
9051
9118
|
return m;
|
|
9052
9119
|
}
|
|
@@ -9078,13 +9145,13 @@ class ListPurchaseRequestListPurchaseFilters {
|
|
|
9078
9145
|
m.billingStrategyFilter = ListPurchaseRequestListPurchaseBillingStrategyFilter.fromProto(proto.billingStrategyFilter);
|
|
9079
9146
|
}
|
|
9080
9147
|
if (proto.state) {
|
|
9081
|
-
m.state = enumStringToValue$
|
|
9148
|
+
m.state = enumStringToValue$d(ListPurchaseRequestState, proto.state);
|
|
9082
9149
|
}
|
|
9083
9150
|
if (proto.minPrice) {
|
|
9084
9151
|
m.minPrice = parseInt(proto.minPrice, 10);
|
|
9085
9152
|
}
|
|
9086
9153
|
if (proto.status) {
|
|
9087
|
-
m.status = enumStringToValue$
|
|
9154
|
+
m.status = enumStringToValue$d(PurchaseStatus, proto.status);
|
|
9088
9155
|
}
|
|
9089
9156
|
return m;
|
|
9090
9157
|
}
|
|
@@ -9201,7 +9268,7 @@ class ListPurchaseItemsResponse {
|
|
|
9201
9268
|
m.pagingMetadata = PagedResponseMetadata.fromProto(proto.pagingMetadata);
|
|
9202
9269
|
}
|
|
9203
9270
|
if (proto.currency) {
|
|
9204
|
-
m.currency = enumStringToValue$
|
|
9271
|
+
m.currency = enumStringToValue$d(Currency, proto.currency);
|
|
9205
9272
|
}
|
|
9206
9273
|
return m;
|
|
9207
9274
|
}
|
|
@@ -9294,13 +9361,13 @@ class Purchase {
|
|
|
9294
9361
|
m.total = parseInt(proto.total, 10);
|
|
9295
9362
|
}
|
|
9296
9363
|
if (proto.currency) {
|
|
9297
|
-
m.currency = enumStringToValue$
|
|
9364
|
+
m.currency = enumStringToValue$d(Currency, proto.currency);
|
|
9298
9365
|
}
|
|
9299
9366
|
if (proto.items) {
|
|
9300
9367
|
m.items = proto.items.map(PurchaseItem.fromProto);
|
|
9301
9368
|
}
|
|
9302
9369
|
if (proto.billingStrategy) {
|
|
9303
|
-
m.billingStrategy = enumStringToValue$
|
|
9370
|
+
m.billingStrategy = enumStringToValue$d(BillingStrategy, proto.billingStrategy);
|
|
9304
9371
|
}
|
|
9305
9372
|
if (proto.dunningAttempt) {
|
|
9306
9373
|
m.dunningAttempt = parseInt(proto.dunningAttempt, 10);
|
|
@@ -9309,7 +9376,7 @@ class Purchase {
|
|
|
9309
9376
|
m.voided = new Date(proto.voided);
|
|
9310
9377
|
}
|
|
9311
9378
|
if (proto.status) {
|
|
9312
|
-
m.status = enumStringToValue$
|
|
9379
|
+
m.status = enumStringToValue$d(PurchaseStatus, proto.status);
|
|
9313
9380
|
}
|
|
9314
9381
|
if (proto.creditAmount) {
|
|
9315
9382
|
m.creditAmount = parseInt(proto.creditAmount, 10);
|
|
@@ -9517,7 +9584,7 @@ class VoidPurchaseRequest {
|
|
|
9517
9584
|
}
|
|
9518
9585
|
}
|
|
9519
9586
|
|
|
9520
|
-
function enumStringToValue$
|
|
9587
|
+
function enumStringToValue$c(enumRef, value) {
|
|
9521
9588
|
if (typeof value === 'number') {
|
|
9522
9589
|
return value;
|
|
9523
9590
|
}
|
|
@@ -9537,10 +9604,10 @@ class CreateRefundRequest {
|
|
|
9537
9604
|
m.amount = parseInt(proto.amount, 10);
|
|
9538
9605
|
}
|
|
9539
9606
|
if (proto.reason) {
|
|
9540
|
-
m.reason = enumStringToValue$
|
|
9607
|
+
m.reason = enumStringToValue$c(RefundReason, proto.reason);
|
|
9541
9608
|
}
|
|
9542
9609
|
if (proto.referenceType) {
|
|
9543
|
-
m.referenceType = enumStringToValue$
|
|
9610
|
+
m.referenceType = enumStringToValue$c(ReferenceType, proto.referenceType);
|
|
9544
9611
|
}
|
|
9545
9612
|
return m;
|
|
9546
9613
|
}
|
|
@@ -9642,10 +9709,10 @@ class Refund {
|
|
|
9642
9709
|
m.amount = parseInt(proto.amount, 10);
|
|
9643
9710
|
}
|
|
9644
9711
|
if (proto.reason) {
|
|
9645
|
-
m.reason = enumStringToValue$
|
|
9712
|
+
m.reason = enumStringToValue$c(RefundReason, proto.reason);
|
|
9646
9713
|
}
|
|
9647
9714
|
if (proto.status) {
|
|
9648
|
-
m.status = enumStringToValue$
|
|
9715
|
+
m.status = enumStringToValue$c(RefundStatus, proto.status);
|
|
9649
9716
|
}
|
|
9650
9717
|
if (proto.created) {
|
|
9651
9718
|
m.created = new Date(proto.created);
|
|
@@ -9654,7 +9721,7 @@ class Refund {
|
|
|
9654
9721
|
m.updated = new Date(proto.updated);
|
|
9655
9722
|
}
|
|
9656
9723
|
if (proto.referenceType) {
|
|
9657
|
-
m.referenceType = enumStringToValue$
|
|
9724
|
+
m.referenceType = enumStringToValue$c(ReferenceType, proto.referenceType);
|
|
9658
9725
|
}
|
|
9659
9726
|
return m;
|
|
9660
9727
|
}
|
|
@@ -9697,7 +9764,7 @@ class Refund {
|
|
|
9697
9764
|
}
|
|
9698
9765
|
}
|
|
9699
9766
|
|
|
9700
|
-
function enumStringToValue$
|
|
9767
|
+
function enumStringToValue$b(enumRef, value) {
|
|
9701
9768
|
if (typeof value === 'number') {
|
|
9702
9769
|
return value;
|
|
9703
9770
|
}
|
|
@@ -9758,7 +9825,7 @@ class ListSalesCreditNoteRequestListSalesCreditNoteFilters {
|
|
|
9758
9825
|
let m = new ListSalesCreditNoteRequestListSalesCreditNoteFilters();
|
|
9759
9826
|
m = Object.assign(m, proto);
|
|
9760
9827
|
if (proto.statuses) {
|
|
9761
|
-
m.statuses = proto.statuses.map((v) => enumStringToValue$
|
|
9828
|
+
m.statuses = proto.statuses.map((v) => enumStringToValue$b(SalesCreditNoteStatus, v));
|
|
9762
9829
|
}
|
|
9763
9830
|
return m;
|
|
9764
9831
|
}
|
|
@@ -9848,7 +9915,7 @@ class SalesCreditNote {
|
|
|
9848
9915
|
m.dueDate = new Date(proto.dueDate);
|
|
9849
9916
|
}
|
|
9850
9917
|
if (proto.currency) {
|
|
9851
|
-
m.currency = enumStringToValue$
|
|
9918
|
+
m.currency = enumStringToValue$b(Currency, proto.currency);
|
|
9852
9919
|
}
|
|
9853
9920
|
if (proto.total) {
|
|
9854
9921
|
m.total = parseInt(proto.total, 10);
|
|
@@ -9857,7 +9924,7 @@ class SalesCreditNote {
|
|
|
9857
9924
|
m.outstanding = parseInt(proto.outstanding, 10);
|
|
9858
9925
|
}
|
|
9859
9926
|
if (proto.status) {
|
|
9860
|
-
m.status = enumStringToValue$
|
|
9927
|
+
m.status = enumStringToValue$b(SalesCreditNoteStatus, proto.status);
|
|
9861
9928
|
}
|
|
9862
9929
|
return m;
|
|
9863
9930
|
}
|
|
@@ -9906,7 +9973,7 @@ class SalesCreditNote {
|
|
|
9906
9973
|
}
|
|
9907
9974
|
}
|
|
9908
9975
|
|
|
9909
|
-
function enumStringToValue$
|
|
9976
|
+
function enumStringToValue$a(enumRef, value) {
|
|
9910
9977
|
if (typeof value === 'number') {
|
|
9911
9978
|
return value;
|
|
9912
9979
|
}
|
|
@@ -9969,10 +10036,10 @@ class ListSalesInvoiceRequestListSalesInvoiceFilters {
|
|
|
9969
10036
|
let m = new ListSalesInvoiceRequestListSalesInvoiceFilters();
|
|
9970
10037
|
m = Object.assign(m, proto);
|
|
9971
10038
|
if (proto.statuses) {
|
|
9972
|
-
m.statuses = proto.statuses.map((v) => enumStringToValue$
|
|
10039
|
+
m.statuses = proto.statuses.map((v) => enumStringToValue$a(SalesInvoiceStatus, v));
|
|
9973
10040
|
}
|
|
9974
10041
|
if (proto.paymentStatuses) {
|
|
9975
|
-
m.paymentStatuses = proto.paymentStatuses.map((v) => enumStringToValue$
|
|
10042
|
+
m.paymentStatuses = proto.paymentStatuses.map((v) => enumStringToValue$a(PaymentStatuses, v));
|
|
9976
10043
|
}
|
|
9977
10044
|
return m;
|
|
9978
10045
|
}
|
|
@@ -10100,16 +10167,16 @@ class SalesInvoice {
|
|
|
10100
10167
|
m.total = parseInt(proto.total, 10);
|
|
10101
10168
|
}
|
|
10102
10169
|
if (proto.currency) {
|
|
10103
|
-
m.currency = enumStringToValue$
|
|
10170
|
+
m.currency = enumStringToValue$a(Currency, proto.currency);
|
|
10104
10171
|
}
|
|
10105
10172
|
if (proto.status) {
|
|
10106
|
-
m.status = enumStringToValue$
|
|
10173
|
+
m.status = enumStringToValue$a(SalesInvoiceStatus, proto.status);
|
|
10107
10174
|
}
|
|
10108
10175
|
if (proto.outstanding) {
|
|
10109
10176
|
m.outstanding = parseInt(proto.outstanding, 10);
|
|
10110
10177
|
}
|
|
10111
10178
|
if (proto.type) {
|
|
10112
|
-
m.type = enumStringToValue$
|
|
10179
|
+
m.type = enumStringToValue$a(SalesInvoiceType, proto.type);
|
|
10113
10180
|
}
|
|
10114
10181
|
return m;
|
|
10115
10182
|
}
|
|
@@ -10204,7 +10271,7 @@ class SendSalesInvoiceReceiptEmailRequest {
|
|
|
10204
10271
|
}
|
|
10205
10272
|
}
|
|
10206
10273
|
|
|
10207
|
-
function enumStringToValue$
|
|
10274
|
+
function enumStringToValue$9(enumRef, value) {
|
|
10208
10275
|
if (typeof value === 'number') {
|
|
10209
10276
|
return value;
|
|
10210
10277
|
}
|
|
@@ -10221,7 +10288,7 @@ class SubscribeValidation {
|
|
|
10221
10288
|
let m = new SubscribeValidation();
|
|
10222
10289
|
m = Object.assign(m, proto);
|
|
10223
10290
|
if (proto.status) {
|
|
10224
|
-
m.status = enumStringToValue$
|
|
10291
|
+
m.status = enumStringToValue$9(SubscribeValidationStatus, proto.status);
|
|
10225
10292
|
}
|
|
10226
10293
|
return m;
|
|
10227
10294
|
}
|
|
@@ -10234,7 +10301,7 @@ class SubscribeValidation {
|
|
|
10234
10301
|
}
|
|
10235
10302
|
}
|
|
10236
10303
|
|
|
10237
|
-
function enumStringToValue$
|
|
10304
|
+
function enumStringToValue$8(enumRef, value) {
|
|
10238
10305
|
if (typeof value === 'number') {
|
|
10239
10306
|
return value;
|
|
10240
10307
|
}
|
|
@@ -10367,7 +10434,7 @@ class ChangeFrequencyRequest {
|
|
|
10367
10434
|
let m = new ChangeFrequencyRequest();
|
|
10368
10435
|
m = Object.assign(m, proto);
|
|
10369
10436
|
if (proto.frequency) {
|
|
10370
|
-
m.frequency = enumStringToValue$
|
|
10437
|
+
m.frequency = enumStringToValue$8(Frequency, proto.frequency);
|
|
10371
10438
|
}
|
|
10372
10439
|
return m;
|
|
10373
10440
|
}
|
|
@@ -10443,7 +10510,7 @@ class CreateSubscriptionRequest {
|
|
|
10443
10510
|
m.proratedTo = new Date(proto.proratedTo);
|
|
10444
10511
|
}
|
|
10445
10512
|
if (proto.renewalState) {
|
|
10446
|
-
m.renewalState = enumStringToValue$
|
|
10513
|
+
m.renewalState = enumStringToValue$8(RenewalState, proto.renewalState);
|
|
10447
10514
|
}
|
|
10448
10515
|
if (proto.customUnitPrice) {
|
|
10449
10516
|
m.customUnitPrice = parseInt(proto.customUnitPrice, 10);
|
|
@@ -10452,13 +10519,13 @@ class CreateSubscriptionRequest {
|
|
|
10452
10519
|
m.alignWith = AlignmentSubscription.fromProto(proto.alignWith);
|
|
10453
10520
|
}
|
|
10454
10521
|
if (proto.frequency) {
|
|
10455
|
-
m.frequency = enumStringToValue$
|
|
10522
|
+
m.frequency = enumStringToValue$8(Frequency, proto.frequency);
|
|
10456
10523
|
}
|
|
10457
10524
|
if (proto.retailAmount) {
|
|
10458
10525
|
m.retailAmount = parseInt(proto.retailAmount, 10);
|
|
10459
10526
|
}
|
|
10460
10527
|
if (proto.retailFrequency) {
|
|
10461
|
-
m.retailFrequency = enumStringToValue$
|
|
10528
|
+
m.retailFrequency = enumStringToValue$8(Frequency, proto.retailFrequency);
|
|
10462
10529
|
}
|
|
10463
10530
|
return m;
|
|
10464
10531
|
}
|
|
@@ -10659,7 +10726,7 @@ class Subscription {
|
|
|
10659
10726
|
m.billingStart = new Date(proto.billingStart);
|
|
10660
10727
|
}
|
|
10661
10728
|
if (proto.renewalState) {
|
|
10662
|
-
m.renewalState = enumStringToValue$
|
|
10729
|
+
m.renewalState = enumStringToValue$8(RenewalState, proto.renewalState);
|
|
10663
10730
|
}
|
|
10664
10731
|
if (proto.proratedTo) {
|
|
10665
10732
|
m.proratedTo = new Date(proto.proratedTo);
|
|
@@ -10671,13 +10738,13 @@ class Subscription {
|
|
|
10671
10738
|
m.alignWith = AlignmentSubscription.fromProto(proto.alignWith);
|
|
10672
10739
|
}
|
|
10673
10740
|
if (proto.frequency) {
|
|
10674
|
-
m.frequency = enumStringToValue$
|
|
10741
|
+
m.frequency = enumStringToValue$8(Frequency, proto.frequency);
|
|
10675
10742
|
}
|
|
10676
10743
|
if (proto.retailAmount) {
|
|
10677
10744
|
m.retailAmount = parseInt(proto.retailAmount, 10);
|
|
10678
10745
|
}
|
|
10679
10746
|
if (proto.retailFrequency) {
|
|
10680
|
-
m.retailFrequency = enumStringToValue$
|
|
10747
|
+
m.retailFrequency = enumStringToValue$8(Frequency, proto.retailFrequency);
|
|
10681
10748
|
}
|
|
10682
10749
|
return m;
|
|
10683
10750
|
}
|
|
@@ -10739,7 +10806,7 @@ class CanCreateSubscriptionsRequestSubscriptionItem {
|
|
|
10739
10806
|
let m = new CanCreateSubscriptionsRequestSubscriptionItem();
|
|
10740
10807
|
m = Object.assign(m, proto);
|
|
10741
10808
|
if (proto.frequency) {
|
|
10742
|
-
m.frequency = enumStringToValue$
|
|
10809
|
+
m.frequency = enumStringToValue$8(Frequency, proto.frequency);
|
|
10743
10810
|
}
|
|
10744
10811
|
if (proto.quantity) {
|
|
10745
10812
|
m.quantity = parseInt(proto.quantity, 10);
|
|
@@ -10787,7 +10854,7 @@ class ValidateResponse {
|
|
|
10787
10854
|
}
|
|
10788
10855
|
}
|
|
10789
10856
|
|
|
10790
|
-
function enumStringToValue$
|
|
10857
|
+
function enumStringToValue$7(enumRef, value) {
|
|
10791
10858
|
if (typeof value === 'number') {
|
|
10792
10859
|
return value;
|
|
10793
10860
|
}
|
|
@@ -10927,7 +10994,7 @@ class ListContractDocumentsResponse {
|
|
|
10927
10994
|
}
|
|
10928
10995
|
}
|
|
10929
10996
|
|
|
10930
|
-
function enumStringToValue$
|
|
10997
|
+
function enumStringToValue$6(enumRef, value) {
|
|
10931
10998
|
if (typeof value === 'number') {
|
|
10932
10999
|
return value;
|
|
10933
11000
|
}
|
|
@@ -11086,7 +11153,7 @@ class UpsertRetailCustomerConfigurationRequest {
|
|
|
11086
11153
|
}
|
|
11087
11154
|
}
|
|
11088
11155
|
|
|
11089
|
-
function enumStringToValue$
|
|
11156
|
+
function enumStringToValue$5(enumRef, value) {
|
|
11090
11157
|
if (typeof value === 'number') {
|
|
11091
11158
|
return value;
|
|
11092
11159
|
}
|
|
@@ -11200,7 +11267,7 @@ class GetBalanceResponse {
|
|
|
11200
11267
|
}
|
|
11201
11268
|
}
|
|
11202
11269
|
|
|
11203
|
-
function enumStringToValue$
|
|
11270
|
+
function enumStringToValue$4(enumRef, value) {
|
|
11204
11271
|
if (typeof value === 'number') {
|
|
11205
11272
|
return value;
|
|
11206
11273
|
}
|
|
@@ -11500,7 +11567,7 @@ class InvoiceTemplate {
|
|
|
11500
11567
|
m.items = proto.items.map(InvoiceTemplateItem.fromProto);
|
|
11501
11568
|
}
|
|
11502
11569
|
if (proto.currency) {
|
|
11503
|
-
m.currency = enumStringToValue$
|
|
11570
|
+
m.currency = enumStringToValue$4(Currency, proto.currency);
|
|
11504
11571
|
}
|
|
11505
11572
|
if (proto.total) {
|
|
11506
11573
|
m.total = parseInt(proto.total, 10);
|
|
@@ -11902,7 +11969,7 @@ class UpsertInvoiceTemplateResponse {
|
|
|
11902
11969
|
}
|
|
11903
11970
|
}
|
|
11904
11971
|
|
|
11905
|
-
function enumStringToValue$
|
|
11972
|
+
function enumStringToValue$3(enumRef, value) {
|
|
11906
11973
|
if (typeof value === 'number') {
|
|
11907
11974
|
return value;
|
|
11908
11975
|
}
|
|
@@ -12023,7 +12090,7 @@ class RecurringInvoice {
|
|
|
12023
12090
|
m.updated = new Date(proto.updated);
|
|
12024
12091
|
}
|
|
12025
12092
|
if (proto.status) {
|
|
12026
|
-
m.status = enumStringToValue$
|
|
12093
|
+
m.status = enumStringToValue$3(RecurringInvoiceStatus, proto.status);
|
|
12027
12094
|
}
|
|
12028
12095
|
if (proto.nextIssue) {
|
|
12029
12096
|
m.nextIssue = new Date(proto.nextIssue);
|
|
@@ -12032,16 +12099,16 @@ class RecurringInvoice {
|
|
|
12032
12099
|
m.intervalCount = parseInt(proto.intervalCount, 10);
|
|
12033
12100
|
}
|
|
12034
12101
|
if (proto.interval) {
|
|
12035
|
-
m.interval = enumStringToValue$
|
|
12102
|
+
m.interval = enumStringToValue$3(Interval, proto.interval);
|
|
12036
12103
|
}
|
|
12037
12104
|
if (proto.repeatOnDayOfMonth) {
|
|
12038
12105
|
m.repeatOnDayOfMonth = parseInt(proto.repeatOnDayOfMonth, 10);
|
|
12039
12106
|
}
|
|
12040
12107
|
if (proto.collectionMethod) {
|
|
12041
|
-
m.collectionMethod = enumStringToValue$
|
|
12108
|
+
m.collectionMethod = enumStringToValue$3(CollectionMethod, proto.collectionMethod);
|
|
12042
12109
|
}
|
|
12043
12110
|
if (proto.paymentProcessor) {
|
|
12044
|
-
m.paymentProcessor = enumStringToValue$
|
|
12111
|
+
m.paymentProcessor = enumStringToValue$3(PaymentProcessor, proto.paymentProcessor);
|
|
12045
12112
|
}
|
|
12046
12113
|
if (proto.items) {
|
|
12047
12114
|
m.items = proto.items.map(RecurringInvoiceItem.fromProto);
|
|
@@ -12049,6 +12116,9 @@ class RecurringInvoice {
|
|
|
12049
12116
|
if (proto.totalAmount) {
|
|
12050
12117
|
m.totalAmount = parseInt(proto.totalAmount, 10);
|
|
12051
12118
|
}
|
|
12119
|
+
if (proto.endsAt) {
|
|
12120
|
+
m.endsAt = new Date(proto.endsAt);
|
|
12121
|
+
}
|
|
12052
12122
|
return m;
|
|
12053
12123
|
}
|
|
12054
12124
|
toApiJson() {
|
|
@@ -12104,6 +12174,9 @@ class RecurringInvoice {
|
|
|
12104
12174
|
if (typeof this.memo !== 'undefined') {
|
|
12105
12175
|
toReturn['memo'] = this.memo;
|
|
12106
12176
|
}
|
|
12177
|
+
if (typeof this.endsAt !== 'undefined' && this.endsAt !== null) {
|
|
12178
|
+
toReturn['endsAt'] = 'toApiJson' in this.endsAt ? this.endsAt.toApiJson() : this.endsAt;
|
|
12179
|
+
}
|
|
12107
12180
|
return toReturn;
|
|
12108
12181
|
}
|
|
12109
12182
|
}
|
|
@@ -12213,6 +12286,9 @@ class UpdateRecurringInvoiceRequest {
|
|
|
12213
12286
|
if (proto.recurringInvoice) {
|
|
12214
12287
|
m.recurringInvoice = RecurringInvoice.fromProto(proto.recurringInvoice);
|
|
12215
12288
|
}
|
|
12289
|
+
if (proto.updateMask) {
|
|
12290
|
+
m.updateMask = FieldMask.fromProto(proto.updateMask);
|
|
12291
|
+
}
|
|
12216
12292
|
return m;
|
|
12217
12293
|
}
|
|
12218
12294
|
toApiJson() {
|
|
@@ -12220,6 +12296,148 @@ class UpdateRecurringInvoiceRequest {
|
|
|
12220
12296
|
if (typeof this.recurringInvoice !== 'undefined' && this.recurringInvoice !== null) {
|
|
12221
12297
|
toReturn['recurringInvoice'] = 'toApiJson' in this.recurringInvoice ? this.recurringInvoice.toApiJson() : this.recurringInvoice;
|
|
12222
12298
|
}
|
|
12299
|
+
if (typeof this.updateMask !== 'undefined' && this.updateMask !== null) {
|
|
12300
|
+
toReturn['updateMask'] = 'toApiJson' in this.updateMask ? this.updateMask.toApiJson() : this.updateMask;
|
|
12301
|
+
}
|
|
12302
|
+
return toReturn;
|
|
12303
|
+
}
|
|
12304
|
+
}
|
|
12305
|
+
|
|
12306
|
+
function enumStringToValue$2(enumRef, value) {
|
|
12307
|
+
if (typeof value === 'number') {
|
|
12308
|
+
return value;
|
|
12309
|
+
}
|
|
12310
|
+
return enumRef[value];
|
|
12311
|
+
}
|
|
12312
|
+
class CreateMerchantServicesReportRun {
|
|
12313
|
+
constructor(kwargs) {
|
|
12314
|
+
if (!kwargs) {
|
|
12315
|
+
return;
|
|
12316
|
+
}
|
|
12317
|
+
Object.assign(this, kwargs);
|
|
12318
|
+
}
|
|
12319
|
+
static fromProto(proto) {
|
|
12320
|
+
let m = new CreateMerchantServicesReportRun();
|
|
12321
|
+
m = Object.assign(m, proto);
|
|
12322
|
+
if (proto.reportType) {
|
|
12323
|
+
m.reportType = enumStringToValue$2(MerchantServicesReportRunType, proto.reportType);
|
|
12324
|
+
}
|
|
12325
|
+
if (proto.intervalStart) {
|
|
12326
|
+
m.intervalStart = new Date(proto.intervalStart);
|
|
12327
|
+
}
|
|
12328
|
+
if (proto.intervalEnd) {
|
|
12329
|
+
m.intervalEnd = new Date(proto.intervalEnd);
|
|
12330
|
+
}
|
|
12331
|
+
return m;
|
|
12332
|
+
}
|
|
12333
|
+
toApiJson() {
|
|
12334
|
+
const toReturn = {};
|
|
12335
|
+
if (typeof this.merchantId !== 'undefined') {
|
|
12336
|
+
toReturn['merchantId'] = this.merchantId;
|
|
12337
|
+
}
|
|
12338
|
+
if (typeof this.reportType !== 'undefined') {
|
|
12339
|
+
toReturn['reportType'] = this.reportType;
|
|
12340
|
+
}
|
|
12341
|
+
if (typeof this.intervalStart !== 'undefined' && this.intervalStart !== null) {
|
|
12342
|
+
toReturn['intervalStart'] = 'toApiJson' in this.intervalStart ? this.intervalStart.toApiJson() : this.intervalStart;
|
|
12343
|
+
}
|
|
12344
|
+
if (typeof this.intervalEnd !== 'undefined' && this.intervalEnd !== null) {
|
|
12345
|
+
toReturn['intervalEnd'] = 'toApiJson' in this.intervalEnd ? this.intervalEnd.toApiJson() : this.intervalEnd;
|
|
12346
|
+
}
|
|
12347
|
+
if (typeof this.currencyCode !== 'undefined') {
|
|
12348
|
+
toReturn['currencyCode'] = this.currencyCode;
|
|
12349
|
+
}
|
|
12350
|
+
return toReturn;
|
|
12351
|
+
}
|
|
12352
|
+
}
|
|
12353
|
+
class GetMerchantServicesReportRun {
|
|
12354
|
+
constructor(kwargs) {
|
|
12355
|
+
if (!kwargs) {
|
|
12356
|
+
return;
|
|
12357
|
+
}
|
|
12358
|
+
Object.assign(this, kwargs);
|
|
12359
|
+
}
|
|
12360
|
+
static fromProto(proto) {
|
|
12361
|
+
let m = new GetMerchantServicesReportRun();
|
|
12362
|
+
m = Object.assign(m, proto);
|
|
12363
|
+
return m;
|
|
12364
|
+
}
|
|
12365
|
+
toApiJson() {
|
|
12366
|
+
const toReturn = {};
|
|
12367
|
+
if (typeof this.id !== 'undefined') {
|
|
12368
|
+
toReturn['id'] = this.id;
|
|
12369
|
+
}
|
|
12370
|
+
return toReturn;
|
|
12371
|
+
}
|
|
12372
|
+
}
|
|
12373
|
+
class MerchantServicesReportRun {
|
|
12374
|
+
constructor(kwargs) {
|
|
12375
|
+
if (!kwargs) {
|
|
12376
|
+
return;
|
|
12377
|
+
}
|
|
12378
|
+
Object.assign(this, kwargs);
|
|
12379
|
+
}
|
|
12380
|
+
static fromProto(proto) {
|
|
12381
|
+
let m = new MerchantServicesReportRun();
|
|
12382
|
+
m = Object.assign(m, proto);
|
|
12383
|
+
if (proto.created) {
|
|
12384
|
+
m.created = new Date(proto.created);
|
|
12385
|
+
}
|
|
12386
|
+
if (proto.reportType) {
|
|
12387
|
+
m.reportType = enumStringToValue$2(MerchantServicesReportRunType, proto.reportType);
|
|
12388
|
+
}
|
|
12389
|
+
if (proto.status) {
|
|
12390
|
+
m.status = enumStringToValue$2(MerchantServicesReportRunStatus, proto.status);
|
|
12391
|
+
}
|
|
12392
|
+
return m;
|
|
12393
|
+
}
|
|
12394
|
+
toApiJson() {
|
|
12395
|
+
const toReturn = {};
|
|
12396
|
+
if (typeof this.id !== 'undefined') {
|
|
12397
|
+
toReturn['id'] = this.id;
|
|
12398
|
+
}
|
|
12399
|
+
if (typeof this.created !== 'undefined' && this.created !== null) {
|
|
12400
|
+
toReturn['created'] = 'toApiJson' in this.created ? this.created.toApiJson() : this.created;
|
|
12401
|
+
}
|
|
12402
|
+
if (typeof this.reportType !== 'undefined') {
|
|
12403
|
+
toReturn['reportType'] = this.reportType;
|
|
12404
|
+
}
|
|
12405
|
+
if (typeof this.status !== 'undefined') {
|
|
12406
|
+
toReturn['status'] = this.status;
|
|
12407
|
+
}
|
|
12408
|
+
if (typeof this.error !== 'undefined') {
|
|
12409
|
+
toReturn['error'] = this.error;
|
|
12410
|
+
}
|
|
12411
|
+
return toReturn;
|
|
12412
|
+
}
|
|
12413
|
+
}
|
|
12414
|
+
|
|
12415
|
+
function enumStringToValue$1(enumRef, value) {
|
|
12416
|
+
if (typeof value === 'number') {
|
|
12417
|
+
return value;
|
|
12418
|
+
}
|
|
12419
|
+
return enumRef[value];
|
|
12420
|
+
}
|
|
12421
|
+
class Access {
|
|
12422
|
+
constructor(kwargs) {
|
|
12423
|
+
if (!kwargs) {
|
|
12424
|
+
return;
|
|
12425
|
+
}
|
|
12426
|
+
Object.assign(this, kwargs);
|
|
12427
|
+
}
|
|
12428
|
+
static fromProto(proto) {
|
|
12429
|
+
let m = new Access();
|
|
12430
|
+
m = Object.assign(m, proto);
|
|
12431
|
+
return m;
|
|
12432
|
+
}
|
|
12433
|
+
toApiJson() {
|
|
12434
|
+
const toReturn = {};
|
|
12435
|
+
if (typeof this.scope !== 'undefined') {
|
|
12436
|
+
toReturn['scope'] = this.scope;
|
|
12437
|
+
}
|
|
12438
|
+
if (typeof this.public !== 'undefined') {
|
|
12439
|
+
toReturn['public'] = this.public;
|
|
12440
|
+
}
|
|
12223
12441
|
return toReturn;
|
|
12224
12442
|
}
|
|
12225
12443
|
}
|
|
@@ -13037,6 +13255,12 @@ class SetWholesaleProductVolumeCommitmentRequest {
|
|
|
13037
13255
|
if (proto.volumeCommitment) {
|
|
13038
13256
|
m.volumeCommitment = parseInt(proto.volumeCommitment, 10);
|
|
13039
13257
|
}
|
|
13258
|
+
if (proto.volumeCommitmentStartsAt) {
|
|
13259
|
+
m.volumeCommitmentStartsAt = new Date(proto.volumeCommitmentStartsAt);
|
|
13260
|
+
}
|
|
13261
|
+
if (proto.volumeCommitmentEndsAt) {
|
|
13262
|
+
m.volumeCommitmentEndsAt = new Date(proto.volumeCommitmentEndsAt);
|
|
13263
|
+
}
|
|
13040
13264
|
return m;
|
|
13041
13265
|
}
|
|
13042
13266
|
toApiJson() {
|
|
@@ -13050,6 +13274,12 @@ class SetWholesaleProductVolumeCommitmentRequest {
|
|
|
13050
13274
|
if (typeof this.volumeCommitment !== 'undefined') {
|
|
13051
13275
|
toReturn['volumeCommitment'] = this.volumeCommitment;
|
|
13052
13276
|
}
|
|
13277
|
+
if (typeof this.volumeCommitmentStartsAt !== 'undefined' && this.volumeCommitmentStartsAt !== null) {
|
|
13278
|
+
toReturn['volumeCommitmentStartsAt'] = 'toApiJson' in this.volumeCommitmentStartsAt ? this.volumeCommitmentStartsAt.toApiJson() : this.volumeCommitmentStartsAt;
|
|
13279
|
+
}
|
|
13280
|
+
if (typeof this.volumeCommitmentEndsAt !== 'undefined' && this.volumeCommitmentEndsAt !== null) {
|
|
13281
|
+
toReturn['volumeCommitmentEndsAt'] = 'toApiJson' in this.volumeCommitmentEndsAt ? this.volumeCommitmentEndsAt.toApiJson() : this.volumeCommitmentEndsAt;
|
|
13282
|
+
}
|
|
13053
13283
|
return toReturn;
|
|
13054
13284
|
}
|
|
13055
13285
|
}
|
|
@@ -13866,6 +14096,16 @@ class MerchantApiService {
|
|
|
13866
14096
|
return this.http.post(this._host + "/billing.v1.MerchantService/GetRetailPayout", request.toApiJson(), this.apiOptions())
|
|
13867
14097
|
.pipe(map(resp => GetRetailPayoutResponse.fromProto(resp)));
|
|
13868
14098
|
}
|
|
14099
|
+
createReportRun(r) {
|
|
14100
|
+
const request = (r.toApiJson) ? r : new CreateMerchantServicesReportRun(r);
|
|
14101
|
+
return this.http.post(this._host + "/billing.v1.MerchantService/CreateReportRun", request.toApiJson(), this.apiOptions())
|
|
14102
|
+
.pipe(map(resp => MerchantServicesReportRun.fromProto(resp)));
|
|
14103
|
+
}
|
|
14104
|
+
getReportRun(r) {
|
|
14105
|
+
const request = (r.toApiJson) ? r : new GetMerchantServicesReportRun(r);
|
|
14106
|
+
return this.http.post(this._host + "/billing.v1.MerchantService/GetReportRun", request.toApiJson(), this.apiOptions())
|
|
14107
|
+
.pipe(map(resp => MerchantServicesReportRun.fromProto(resp)));
|
|
14108
|
+
}
|
|
13869
14109
|
}
|
|
13870
14110
|
MerchantApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: MerchantApiService, deps: [{ token: i1.HttpClient }, { token: HostService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
13871
14111
|
MerchantApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: MerchantApiService, providedIn: 'root' });
|
|
@@ -14450,5 +14690,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.0", ngImpor
|
|
|
14450
14690
|
* Generated bundle index. Do not edit.
|
|
14451
14691
|
*/
|
|
14452
14692
|
|
|
14453
|
-
export { AddBundleRequest, AddBundleResponse, AddCreditRequest, AddLineItemRequest, AddLineItemResponse, AddTemplateBundleRequest, AddTemplateBundleResponse, AddTemplateLineItemRequest, AddTemplateLineItemResponse, AlignmentSubscription, AppliedBundle, AppliedBundleItem, AppliedCredit, AppliedDiscount, AppliedTaxRate, ArchiveTaxRequest, Balance, BankAccount, BankReconciliationApiService, BillItemRequest, BillMultipleItemsRequest, BillMultipleItemsResponse, BillableItem, BillableItemCustomerAddress, BillingApiService, BillingStrategy, Bundle, BundleApiService, BundleItem, BundleItemPrice, BundlePricing, BundlePricingPriceAndFrequency, CalculateTaxRequest, CalculateTaxResponse, CanBillItemRequest, CanCreateSubscriptionsRequest, CanCreateSubscriptionsRequestSkusEntry, CanCreateSubscriptionsRequestSubscriptionItem, CanCreateSubscriptionsResponse, CardType, ChangeCustomUnitPriceRequest, ChangeFrequencyRequest, ChangeRenewalDateRequest, ChargeInvoiceRequest, ChargeSalesInvoiceRequest, CloseRetailDisputeRequest, CollectionMethod, Commitment, ComponentPricing, ConfigureRetailPaymentProviderRequest, ConfigureRetailPaymentProviderResponse, ConfirmRetailPaymentRequest, ConnectStripeAccountRequest, ConnectStripeAccountResponse, Contract, ContractApiService, ContractDocument, ContractDocumentApiService, ContractSubscriptionStatus, CreateContractRequest, CreateContractResponse, CreateDiscountRequest, CreateInvoiceRequest, CreateInvoiceResponse, CreateMerchantRequest, CreateMerchantRequestIncludeInFinancialRecords, CreateMeteredComponentRequest, CreatePaymentCardRequest, CreatePricingPlanProductRequest, CreatePricingPlanProductRequestPricingEntry, CreatePricingPlanProductResponse, CreatePricingPlanRequest, CreatePricingPlanResponse, CreateProductRequest, CreateRefundRequest, CreateSalesCreditNoteRequest, CreateStripeExternalAccountRequest, CreateSubscriptionRequest, CreateSubscriptionsRequest, CreateSubscriptionsResponse, CreateTaxRequest, CreateTemplateRequest, CreateTemplateResponse, CreditApiService, CreditBalance, CreditType, Currency, CustomerSummary, DateRange, DefaultCustomerConfiguration, DeleteBankAccountRequest, DeleteBillableItemRequest, DeleteContractDocumentRequest, DeleteInvoiceRequest, DeleteInvoiceTemplateRequest, DeleteLineItemRequest, DeleteLineItemResponse, DeletePaymentCardRequest, DeletePricingPlanProductRequest, DeleteProductRequest, DeleteRecurringInvoiceRequest, DeleteRetailPricingRequest, DeleteTemplateLineItemRequest, DeleteTemplateLineItemResponse, Discount, DiscountApiService, DiscountType, Dispute, DisputeEvidence, DisputeEvidenceDetails, DisputeStatus, DuplicateInvoiceRequest, DuplicateInvoiceResponse, ExpireBillableItemRequest, ExpireDiscountRequest, FieldMask, File, Frequency, GenerateBillableItemsCSVRequest, GenerateBillableItemsCSVResponse, GenerateVendorReportRequest, GenerateVendorReportResponse, GetBalanceRequest, GetBalanceResponse, GetBillableItemRequest, GetBillableItemResponse, GetContractRequest, GetContractResponse, GetInvoiceRequest, GetInvoiceResponse, GetInvoiceTemplateRequest, GetInvoiceTemplateResponse, GetMerchantRequest, GetMerchantResponse, 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, GetRetailBalanceRequest, GetRetailBalanceResponse, GetRetailCustomerConfigurationRequest, GetRetailCustomerConfigurationResponse, GetRetailDisputeRequest, GetRetailDisputeResponse, GetRetailPaymentProviderRequest, GetRetailPaymentProviderResponse, GetRetailPaymentRequest, GetRetailPaymentResponse, GetRetailPayoutRequest, GetRetailPayoutResponse, GetRevenueStatsRequest, GetRevenueStatsResponse, GetSalesInvoiceRequest, GetSalesInvoiceResponse, GetStatisticsRequest, GetStatisticsResponse, GetWholesaleComparisonRequest, GetWholesaleComparisonRequestGetWholesaleComparisonFilters, GetWholesaleComparisonResponse, GetWholesaleComparisonResponseGetWholesaleComparisonResult, HostService, Interval, Invoice, InvoiceApiService, InvoiceCustomerAddress, InvoiceItem, InvoiceStatus, InvoiceTemplate, InvoiceTemplateApiService, InvoiceTemplateItem, 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, ListRecurringInvoicesRequest, ListRecurringInvoicesResponse, ListRefundsRequest, ListRefundsResponse, ListRetailDisputesRequest, ListRetailDisputesResponse, ListRetailPaymentsRequest, ListRetailPaymentsRequestListRetailPaymentsFilters, ListRetailPaymentsResponse, ListRetailPayoutsRequest, ListRetailPayoutsResponse, ListSalesCreditNoteRequest, ListSalesCreditNoteRequestListSalesCreditNoteFilters, ListSalesCreditNoteResponse, ListSalesInvoiceRequest, ListSalesInvoiceRequestListSalesInvoiceFilters, ListSalesInvoiceResponse, ListSubscriptionRetentionByGroupResponse, ListSubscriptionRetentionByGroupResponseSubscriptionRetentionByGroup, ListSubscriptionRetentionBySKUResponse, ListSubscriptionRetentionRequest, ListSubscriptionRetentionRequestFilters, ListTaxRequest, ListTaxRequestFilters, ListTaxResponse, Merchant, MerchantApiService, MerchantReport, MerchantReportStatus, MeteredComponent, Month, PagedRequestOptions, PagedResponseMetadata, PayInvoiceRequest, Payment, PaymentAllocationType, PaymentApiService, PaymentCard, PaymentCardCARD_TYPE, PaymentCardFUNDING_TYPE, 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, RecurringInvoiceItem, RecurringInvoiceLineItem, RecurringInvoiceStatus, ReferenceType, Refund, RefundApiService, RefundReason, RefundStatus, RemoveBundleRequest, RemoveBundleResponse, RenewalState, ResetContractPricingRequest, RetailConfiguration, RetailCustomerConfiguration, RetailCustomerConfigurationApiService, RetailPayment, RetailPaymentCardDetails, RetailPaymentReferenceType, RetailPaymentsEnabledRequest, RetailPaymentsEnabledResponse, RetailPayout, RetailStatusRequest, RetailStatusResponse, RetailStatusResponseVerificationError, RetailStatusResponseVerificationRequirements, 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, SubmitEvidenceRequest, SubmitEvidenceRequestDisputeEvidence, SubscribeValidation, SubscribeValidationStatus, Subscription, TaxApiService, TaxRate, TickComponentUsageRequest, 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, UpdateTemplateBundleRequest, UpdateTemplateBundleResponse, UpdateTemplateDefaultTaxRatesRequest, UpdateTemplateDefaultTaxRatesResponse, UpdateTemplateLineItemRequest, UpdateTemplateLineItemResponse, UpsertBundleRequest, UpsertDefaultRetailCustomerConfigurationRequest, UpsertInvoiceTemplateRequest, UpsertInvoiceTemplateRequestInvoiceTemplateItemRequest, UpsertInvoiceTemplateResponse, UpsertRetailConfigurationRequest, UpsertRetailCustomerConfigurationRequest, UpsertRetailPricingRequest, UpsertRetailPricingRequestPricingEntry, UpsertWholesalePricingRequest, ValidateResponse, VendorApiService, VoidInvoiceRequest, VoidPurchaseRequest, WholesaleCostItemRequest };
|
|
14693
|
+
export { Access, AddBundleRequest, AddBundleResponse, AddCreditRequest, AddLineItemRequest, AddLineItemResponse, AddTemplateBundleRequest, AddTemplateBundleResponse, AddTemplateLineItemRequest, AddTemplateLineItemResponse, AlignmentSubscription, AppliedBundle, AppliedBundleItem, AppliedCredit, AppliedDiscount, AppliedTaxRate, ArchiveTaxRequest, Balance, BankAccount, BankReconciliationApiService, BillItemRequest, BillMultipleItemsRequest, BillMultipleItemsResponse, BillableItem, BillableItemCustomerAddress, BillingApiService, BillingStrategy, Bundle, BundleApiService, BundleItem, BundleItemPrice, BundlePricing, BundlePricingPriceAndFrequency, CalculateTaxRequest, CalculateTaxResponse, CanBillItemRequest, CanCreateSubscriptionsRequest, CanCreateSubscriptionsRequestSkusEntry, CanCreateSubscriptionsRequestSubscriptionItem, CanCreateSubscriptionsResponse, CardType, ChangeCustomUnitPriceRequest, ChangeFrequencyRequest, ChangeRenewalDateRequest, ChargeInvoiceRequest, ChargeSalesInvoiceRequest, CloseRetailDisputeRequest, CollectionMethod, Commitment, ComponentPricing, ConfigureRetailPaymentProviderRequest, ConfigureRetailPaymentProviderResponse, ConfirmRetailPaymentRequest, ConnectStripeAccountRequest, ConnectStripeAccountResponse, Contract, ContractApiService, ContractDocument, ContractDocumentApiService, ContractSubscriptionStatus, CreateContractRequest, CreateContractResponse, CreateDiscountRequest, CreateInvoiceRequest, CreateInvoiceResponse, CreateMerchantRequest, CreateMerchantRequestIncludeInFinancialRecords, CreateMerchantServicesReportRun, CreateMeteredComponentRequest, CreatePaymentCardRequest, CreatePricingPlanProductRequest, CreatePricingPlanProductRequestPricingEntry, CreatePricingPlanProductResponse, CreatePricingPlanRequest, CreatePricingPlanResponse, CreateProductRequest, CreateRefundRequest, CreateSalesCreditNoteRequest, CreateStripeExternalAccountRequest, CreateSubscriptionRequest, CreateSubscriptionsRequest, CreateSubscriptionsResponse, CreateTaxRequest, CreateTemplateRequest, CreateTemplateResponse, CreditApiService, CreditBalance, CreditType, Currency, CustomerSummary, DateRange, DefaultCustomerConfiguration, DeleteBankAccountRequest, DeleteBillableItemRequest, DeleteContractDocumentRequest, DeleteInvoiceRequest, DeleteInvoiceTemplateRequest, DeleteLineItemRequest, DeleteLineItemResponse, DeletePaymentCardRequest, DeletePricingPlanProductRequest, DeleteProductRequest, DeleteRecurringInvoiceRequest, DeleteRetailPricingRequest, DeleteTemplateLineItemRequest, DeleteTemplateLineItemResponse, Discount, DiscountApiService, DiscountType, Dispute, DisputeEvidence, DisputeEvidenceDetails, DisputeStatus, DuplicateInvoiceRequest, DuplicateInvoiceResponse, ExpireBillableItemRequest, ExpireDiscountRequest, FieldMask, File, Frequency, GenerateBillableItemsCSVRequest, GenerateBillableItemsCSVResponse, GenerateVendorReportRequest, GenerateVendorReportResponse, GetBalanceRequest, GetBalanceResponse, GetBillableItemRequest, GetBillableItemResponse, GetContractRequest, GetContractResponse, GetInvoiceRequest, GetInvoiceResponse, GetInvoiceTemplateRequest, GetInvoiceTemplateResponse, 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, GetRetailBalanceRequest, GetRetailBalanceResponse, GetRetailCustomerConfigurationRequest, GetRetailCustomerConfigurationResponse, GetRetailDisputeRequest, GetRetailDisputeResponse, GetRetailPaymentProviderRequest, GetRetailPaymentProviderResponse, GetRetailPaymentRequest, GetRetailPaymentResponse, GetRetailPayoutRequest, GetRetailPayoutResponse, GetRevenueStatsRequest, GetRevenueStatsResponse, GetSalesInvoiceRequest, GetSalesInvoiceResponse, GetStatisticsRequest, GetStatisticsResponse, GetWholesaleComparisonRequest, GetWholesaleComparisonRequestGetWholesaleComparisonFilters, GetWholesaleComparisonResponse, GetWholesaleComparisonResponseGetWholesaleComparisonResult, HostService, Interval, Invoice, InvoiceApiService, InvoiceCustomerAddress, InvoiceItem, InvoiceStatus, InvoiceTemplate, InvoiceTemplateApiService, InvoiceTemplateItem, 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, ListRecurringInvoicesRequest, ListRecurringInvoicesResponse, ListRefundsRequest, ListRefundsResponse, ListRetailDisputesRequest, ListRetailDisputesResponse, ListRetailPaymentsRequest, ListRetailPaymentsRequestListRetailPaymentsFilters, ListRetailPaymentsResponse, ListRetailPayoutsRequest, ListRetailPayoutsResponse, ListSalesCreditNoteRequest, ListSalesCreditNoteRequestListSalesCreditNoteFilters, ListSalesCreditNoteResponse, ListSalesInvoiceRequest, ListSalesInvoiceRequestListSalesInvoiceFilters, ListSalesInvoiceResponse, ListSubscriptionRetentionByGroupResponse, ListSubscriptionRetentionByGroupResponseSubscriptionRetentionByGroup, ListSubscriptionRetentionBySKUResponse, ListSubscriptionRetentionRequest, ListSubscriptionRetentionRequestFilters, ListTaxRequest, ListTaxRequestFilters, ListTaxResponse, Merchant, MerchantApiService, MerchantReport, MerchantReportStatus, MerchantServicesReportRun, MerchantServicesReportRunStatus, MerchantServicesReportRunType, MeteredComponent, Month, PagedRequestOptions, PagedResponseMetadata, PayInvoiceRequest, Payment, PaymentAllocationType, PaymentApiService, PaymentCard, PaymentCardCARD_TYPE, PaymentCardFUNDING_TYPE, 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, RecurringInvoiceItem, RecurringInvoiceLineItem, RecurringInvoiceStatus, ReferenceType, Refund, RefundApiService, RefundReason, RefundStatus, RemoveBundleRequest, RemoveBundleResponse, RenewalState, ResetContractPricingRequest, RetailConfiguration, RetailCustomerConfiguration, RetailCustomerConfigurationApiService, RetailPayment, RetailPaymentCardDetails, RetailPaymentReferenceType, RetailPaymentsEnabledRequest, RetailPaymentsEnabledResponse, RetailPayout, RetailStatusRequest, RetailStatusResponse, RetailStatusResponseVerificationError, RetailStatusResponseVerificationRequirements, 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, SubmitEvidenceRequest, SubmitEvidenceRequestDisputeEvidence, SubscribeValidation, SubscribeValidationStatus, Subscription, TaxApiService, TaxRate, TickComponentUsageRequest, 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, UpdateTemplateBundleRequest, UpdateTemplateBundleResponse, UpdateTemplateDefaultTaxRatesRequest, UpdateTemplateDefaultTaxRatesResponse, UpdateTemplateLineItemRequest, UpdateTemplateLineItemResponse, UpsertBundleRequest, UpsertDefaultRetailCustomerConfigurationRequest, UpsertInvoiceTemplateRequest, UpsertInvoiceTemplateRequestInvoiceTemplateItemRequest, UpsertInvoiceTemplateResponse, UpsertRetailConfigurationRequest, UpsertRetailCustomerConfigurationRequest, UpsertRetailPricingRequest, UpsertRetailPricingRequestPricingEntry, UpsertWholesalePricingRequest, ValidateResponse, VendorApiService, VoidInvoiceRequest, VoidPurchaseRequest, WholesaleCostItemRequest };
|
|
14454
14694
|
//# sourceMappingURL=vendasta-billing.mjs.map
|