@vendasta/billing 9.1.0 → 9.4.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/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/product-pricing.interface.mjs +1 -1
- package/esm2020/lib/_internal/interfaces/recurring-invoice.interface.mjs +1 -1
- package/esm2020/lib/_internal/objects/annotations.mjs +30 -0
- package/esm2020/lib/_internal/objects/api.mjs +63 -2
- package/esm2020/lib/_internal/objects/index.mjs +4 -3
- package/esm2020/lib/_internal/objects/pricing-plan-product.mjs +49 -1
- package/esm2020/lib/_internal/objects/product-pricing.mjs +33 -1
- package/esm2020/lib/_internal/objects/recurring-invoice.mjs +20 -10
- package/esm2020/lib/_internal/pricing.api.service.mjs +7 -2
- package/fesm2015/vendasta-billing.mjs +331 -146
- package/fesm2015/vendasta-billing.mjs.map +1 -1
- package/fesm2020/vendasta-billing.mjs +331 -146
- package/fesm2020/vendasta-billing.mjs.map +1 -1
- package/lib/_internal/interfaces/annotations.interface.d.ts +4 -0
- package/lib/_internal/interfaces/api.interface.d.ts +10 -1
- package/lib/_internal/interfaces/index.d.ts +3 -2
- package/lib/_internal/interfaces/pricing-plan-product.interface.d.ts +8 -0
- package/lib/_internal/interfaces/product-pricing.interface.d.ts +5 -0
- package/lib/_internal/interfaces/recurring-invoice.interface.d.ts +4 -1
- package/lib/_internal/objects/annotations.d.ts +9 -0
- package/lib/_internal/objects/api.d.ts +16 -1
- package/lib/_internal/objects/index.d.ts +3 -2
- package/lib/_internal/objects/pricing-plan-product.d.ts +8 -0
- package/lib/_internal/objects/product-pricing.d.ts +8 -0
- package/lib/_internal/objects/recurring-invoice.d.ts +4 -1
- package/lib/_internal/pricing.api.service.d.ts +3 -2
- package/package.json +1 -1
|
@@ -513,7 +513,7 @@ var RecurringInvoiceStatus;
|
|
|
513
513
|
|
|
514
514
|
// *********************************
|
|
515
515
|
|
|
516
|
-
function enumStringToValue$
|
|
516
|
+
function enumStringToValue$D(enumRef, value) {
|
|
517
517
|
if (typeof value === 'number') {
|
|
518
518
|
return value;
|
|
519
519
|
}
|
|
@@ -569,7 +569,7 @@ class PagedResponseMetadata {
|
|
|
569
569
|
}
|
|
570
570
|
}
|
|
571
571
|
|
|
572
|
-
function enumStringToValue$
|
|
572
|
+
function enumStringToValue$C(enumRef, value) {
|
|
573
573
|
if (typeof value === 'number') {
|
|
574
574
|
return value;
|
|
575
575
|
}
|
|
@@ -685,7 +685,7 @@ class BillableItem {
|
|
|
685
685
|
m.updated = new Date(proto.updated);
|
|
686
686
|
}
|
|
687
687
|
if (proto.frequency) {
|
|
688
|
-
m.frequency = enumStringToValue$
|
|
688
|
+
m.frequency = enumStringToValue$C(Frequency, proto.frequency);
|
|
689
689
|
}
|
|
690
690
|
if (proto.nextRenewal) {
|
|
691
691
|
m.nextRenewal = new Date(proto.nextRenewal);
|
|
@@ -697,7 +697,7 @@ class BillableItem {
|
|
|
697
697
|
m.customUnitPrice = parseInt(proto.customUnitPrice, 10);
|
|
698
698
|
}
|
|
699
699
|
if (proto.retailFrequency) {
|
|
700
|
-
m.retailFrequency = enumStringToValue$
|
|
700
|
+
m.retailFrequency = enumStringToValue$C(Frequency, proto.retailFrequency);
|
|
701
701
|
}
|
|
702
702
|
if (proto.nextRetailRenewal) {
|
|
703
703
|
m.nextRetailRenewal = new Date(proto.nextRetailRenewal);
|
|
@@ -1129,7 +1129,7 @@ class ListBillableItemsResponse {
|
|
|
1129
1129
|
}
|
|
1130
1130
|
}
|
|
1131
1131
|
|
|
1132
|
-
function enumStringToValue$
|
|
1132
|
+
function enumStringToValue$B(enumRef, value) {
|
|
1133
1133
|
if (typeof value === 'number') {
|
|
1134
1134
|
return value;
|
|
1135
1135
|
}
|
|
@@ -1146,7 +1146,7 @@ class AppliedDiscount {
|
|
|
1146
1146
|
let m = new AppliedDiscount();
|
|
1147
1147
|
m = Object.assign(m, proto);
|
|
1148
1148
|
if (proto.type) {
|
|
1149
|
-
m.type = enumStringToValue$
|
|
1149
|
+
m.type = enumStringToValue$B(DiscountType, proto.type);
|
|
1150
1150
|
}
|
|
1151
1151
|
if (proto.value) {
|
|
1152
1152
|
m.value = parseInt(proto.value, 10);
|
|
@@ -1174,7 +1174,7 @@ class AppliedDiscount {
|
|
|
1174
1174
|
}
|
|
1175
1175
|
}
|
|
1176
1176
|
|
|
1177
|
-
function enumStringToValue$
|
|
1177
|
+
function enumStringToValue$A(enumRef, value) {
|
|
1178
1178
|
if (typeof value === 'number') {
|
|
1179
1179
|
return value;
|
|
1180
1180
|
}
|
|
@@ -1238,7 +1238,7 @@ class BundleItem {
|
|
|
1238
1238
|
let m = new BundleItem();
|
|
1239
1239
|
m = Object.assign(m, proto);
|
|
1240
1240
|
if (proto.discountType) {
|
|
1241
|
-
m.discountType = enumStringToValue$
|
|
1241
|
+
m.discountType = enumStringToValue$A(DiscountType, proto.discountType);
|
|
1242
1242
|
}
|
|
1243
1243
|
if (proto.discountAmount) {
|
|
1244
1244
|
m.discountAmount = parseInt(proto.discountAmount, 10);
|
|
@@ -1496,7 +1496,7 @@ class BundlePricingPriceAndFrequency {
|
|
|
1496
1496
|
let m = new BundlePricingPriceAndFrequency();
|
|
1497
1497
|
m = Object.assign(m, proto);
|
|
1498
1498
|
if (proto.frequency) {
|
|
1499
|
-
m.frequency = enumStringToValue$
|
|
1499
|
+
m.frequency = enumStringToValue$A(Frequency, proto.frequency);
|
|
1500
1500
|
}
|
|
1501
1501
|
if (proto.effectivePrice) {
|
|
1502
1502
|
m.effectivePrice = parseInt(proto.effectivePrice, 10);
|
|
@@ -1562,7 +1562,7 @@ class UpsertBundleRequest {
|
|
|
1562
1562
|
}
|
|
1563
1563
|
}
|
|
1564
1564
|
|
|
1565
|
-
function enumStringToValue$
|
|
1565
|
+
function enumStringToValue$z(enumRef, value) {
|
|
1566
1566
|
if (typeof value === 'number') {
|
|
1567
1567
|
return value;
|
|
1568
1568
|
}
|
|
@@ -1598,7 +1598,7 @@ class Commitment {
|
|
|
1598
1598
|
}
|
|
1599
1599
|
}
|
|
1600
1600
|
|
|
1601
|
-
function enumStringToValue$
|
|
1601
|
+
function enumStringToValue$y(enumRef, value) {
|
|
1602
1602
|
if (typeof value === 'number') {
|
|
1603
1603
|
return value;
|
|
1604
1604
|
}
|
|
@@ -1621,7 +1621,7 @@ class Contract {
|
|
|
1621
1621
|
m.created = new Date(proto.created);
|
|
1622
1622
|
}
|
|
1623
1623
|
if (proto.currency) {
|
|
1624
|
-
m.currency = enumStringToValue$
|
|
1624
|
+
m.currency = enumStringToValue$y(Currency, proto.currency);
|
|
1625
1625
|
}
|
|
1626
1626
|
if (proto.signed) {
|
|
1627
1627
|
m.signed = new Date(proto.signed);
|
|
@@ -1642,7 +1642,7 @@ class Contract {
|
|
|
1642
1642
|
m.end = new Date(proto.end);
|
|
1643
1643
|
}
|
|
1644
1644
|
if (proto.subscriptionUpdateStatus) {
|
|
1645
|
-
m.subscriptionUpdateStatus = enumStringToValue$
|
|
1645
|
+
m.subscriptionUpdateStatus = enumStringToValue$y(ContractSubscriptionStatus, proto.subscriptionUpdateStatus);
|
|
1646
1646
|
}
|
|
1647
1647
|
return m;
|
|
1648
1648
|
}
|
|
@@ -2051,7 +2051,7 @@ class UpdateContractSubscriptionRequest {
|
|
|
2051
2051
|
let m = new UpdateContractSubscriptionRequest();
|
|
2052
2052
|
m = Object.assign(m, proto);
|
|
2053
2053
|
if (proto.frequency) {
|
|
2054
|
-
m.frequency = enumStringToValue$
|
|
2054
|
+
m.frequency = enumStringToValue$y(Frequency, proto.frequency);
|
|
2055
2055
|
}
|
|
2056
2056
|
return m;
|
|
2057
2057
|
}
|
|
@@ -2070,7 +2070,7 @@ class UpdateContractSubscriptionRequest {
|
|
|
2070
2070
|
}
|
|
2071
2071
|
}
|
|
2072
2072
|
|
|
2073
|
-
function enumStringToValue$
|
|
2073
|
+
function enumStringToValue$x(enumRef, value) {
|
|
2074
2074
|
if (typeof value === 'number') {
|
|
2075
2075
|
return value;
|
|
2076
2076
|
}
|
|
@@ -2093,7 +2093,7 @@ class CustomerSummary {
|
|
|
2093
2093
|
m.purchaseItemTotal = parseInt(proto.purchaseItemTotal, 10);
|
|
2094
2094
|
}
|
|
2095
2095
|
if (proto.currency) {
|
|
2096
|
-
m.currency = enumStringToValue$
|
|
2096
|
+
m.currency = enumStringToValue$x(Currency, proto.currency);
|
|
2097
2097
|
}
|
|
2098
2098
|
return m;
|
|
2099
2099
|
}
|
|
@@ -2173,7 +2173,7 @@ class GetMultiCustomerSummariesResponse {
|
|
|
2173
2173
|
}
|
|
2174
2174
|
}
|
|
2175
2175
|
|
|
2176
|
-
function enumStringToValue$
|
|
2176
|
+
function enumStringToValue$w(enumRef, value) {
|
|
2177
2177
|
if (typeof value === 'number') {
|
|
2178
2178
|
return value;
|
|
2179
2179
|
}
|
|
@@ -2333,7 +2333,7 @@ class SetDefaultBankAccountRequest {
|
|
|
2333
2333
|
}
|
|
2334
2334
|
}
|
|
2335
2335
|
|
|
2336
|
-
function enumStringToValue$
|
|
2336
|
+
function enumStringToValue$v(enumRef, value) {
|
|
2337
2337
|
if (typeof value === 'number') {
|
|
2338
2338
|
return value;
|
|
2339
2339
|
}
|
|
@@ -2350,7 +2350,7 @@ class ProductSummaryDiscount {
|
|
|
2350
2350
|
let m = new ProductSummaryDiscount();
|
|
2351
2351
|
m = Object.assign(m, proto);
|
|
2352
2352
|
if (proto.type) {
|
|
2353
|
-
m.type = enumStringToValue$
|
|
2353
|
+
m.type = enumStringToValue$v(ProductSummaryDiscountDiscountType, proto.type);
|
|
2354
2354
|
}
|
|
2355
2355
|
if (proto.value) {
|
|
2356
2356
|
m.value = parseInt(proto.value, 10);
|
|
@@ -2644,7 +2644,7 @@ class Pricing {
|
|
|
2644
2644
|
let m = new Pricing();
|
|
2645
2645
|
m = Object.assign(m, proto);
|
|
2646
2646
|
if (proto.type) {
|
|
2647
|
-
m.type = enumStringToValue$
|
|
2647
|
+
m.type = enumStringToValue$v(PricingRuleType, proto.type);
|
|
2648
2648
|
}
|
|
2649
2649
|
if (proto.rules) {
|
|
2650
2650
|
m.rules = proto.rules.map(PricingRule.fromProto);
|
|
@@ -2688,13 +2688,13 @@ class ProductSummary {
|
|
|
2688
2688
|
m.discounts = proto.discounts.map(ProductSummaryDiscount.fromProto);
|
|
2689
2689
|
}
|
|
2690
2690
|
if (proto.billingStrategy) {
|
|
2691
|
-
m.billingStrategy = enumStringToValue$
|
|
2691
|
+
m.billingStrategy = enumStringToValue$v(ProductSummaryBillingStrategy, proto.billingStrategy);
|
|
2692
2692
|
}
|
|
2693
2693
|
if (proto.productType) {
|
|
2694
|
-
m.productType = enumStringToValue$
|
|
2694
|
+
m.productType = enumStringToValue$v(ProductSummaryProductType, proto.productType);
|
|
2695
2695
|
}
|
|
2696
2696
|
if (proto.frequency) {
|
|
2697
|
-
m.frequency = enumStringToValue$
|
|
2697
|
+
m.frequency = enumStringToValue$v(Frequency, proto.frequency);
|
|
2698
2698
|
}
|
|
2699
2699
|
if (proto.volumeCommitment) {
|
|
2700
2700
|
m.volumeCommitment = parseInt(proto.volumeCommitment, 10);
|
|
@@ -2869,7 +2869,7 @@ class ListSubscriptionRetentionByGroupResponseSubscriptionRetentionByGroup {
|
|
|
2869
2869
|
}
|
|
2870
2870
|
}
|
|
2871
2871
|
|
|
2872
|
-
function enumStringToValue$
|
|
2872
|
+
function enumStringToValue$u(enumRef, value) {
|
|
2873
2873
|
if (typeof value === 'number') {
|
|
2874
2874
|
return value;
|
|
2875
2875
|
}
|
|
@@ -2886,7 +2886,7 @@ class CreateDiscountRequest {
|
|
|
2886
2886
|
let m = new CreateDiscountRequest();
|
|
2887
2887
|
m = Object.assign(m, proto);
|
|
2888
2888
|
if (proto.discountType) {
|
|
2889
|
-
m.discountType = enumStringToValue$
|
|
2889
|
+
m.discountType = enumStringToValue$u(DiscountType, proto.discountType);
|
|
2890
2890
|
}
|
|
2891
2891
|
if (proto.amount) {
|
|
2892
2892
|
m.amount = parseInt(proto.amount, 10);
|
|
@@ -2942,7 +2942,7 @@ class Discount {
|
|
|
2942
2942
|
m.discountId = parseInt(proto.discountId, 10);
|
|
2943
2943
|
}
|
|
2944
2944
|
if (proto.discountType) {
|
|
2945
|
-
m.discountType = enumStringToValue$
|
|
2945
|
+
m.discountType = enumStringToValue$u(DiscountType, proto.discountType);
|
|
2946
2946
|
}
|
|
2947
2947
|
if (proto.amount) {
|
|
2948
2948
|
m.amount = parseInt(proto.amount, 10);
|
|
@@ -3123,7 +3123,7 @@ class UpdateDiscountRequest {
|
|
|
3123
3123
|
let m = new UpdateDiscountRequest();
|
|
3124
3124
|
m = Object.assign(m, proto);
|
|
3125
3125
|
if (proto.discountType) {
|
|
3126
|
-
m.discountType = enumStringToValue$
|
|
3126
|
+
m.discountType = enumStringToValue$u(DiscountType, proto.discountType);
|
|
3127
3127
|
}
|
|
3128
3128
|
if (proto.amount) {
|
|
3129
3129
|
m.amount = parseInt(proto.amount, 10);
|
|
@@ -3166,7 +3166,7 @@ class UpdateDiscountRequest {
|
|
|
3166
3166
|
}
|
|
3167
3167
|
}
|
|
3168
3168
|
|
|
3169
|
-
function enumStringToValue$
|
|
3169
|
+
function enumStringToValue$t(enumRef, value) {
|
|
3170
3170
|
if (typeof value === 'number') {
|
|
3171
3171
|
return value;
|
|
3172
3172
|
}
|
|
@@ -3205,7 +3205,7 @@ class AppliedTaxRate {
|
|
|
3205
3205
|
}
|
|
3206
3206
|
}
|
|
3207
3207
|
|
|
3208
|
-
function enumStringToValue$
|
|
3208
|
+
function enumStringToValue$s(enumRef, value) {
|
|
3209
3209
|
if (typeof value === 'number') {
|
|
3210
3210
|
return value;
|
|
3211
3211
|
}
|
|
@@ -3232,7 +3232,7 @@ class FieldMask {
|
|
|
3232
3232
|
}
|
|
3233
3233
|
}
|
|
3234
3234
|
|
|
3235
|
-
function enumStringToValue$
|
|
3235
|
+
function enumStringToValue$r(enumRef, value) {
|
|
3236
3236
|
if (typeof value === 'number') {
|
|
3237
3237
|
return value;
|
|
3238
3238
|
}
|
|
@@ -3573,7 +3573,7 @@ class UpdateTaxRequest {
|
|
|
3573
3573
|
}
|
|
3574
3574
|
}
|
|
3575
3575
|
|
|
3576
|
-
function enumStringToValue$
|
|
3576
|
+
function enumStringToValue$q(enumRef, value) {
|
|
3577
3577
|
if (typeof value === 'number') {
|
|
3578
3578
|
return value;
|
|
3579
3579
|
}
|
|
@@ -3650,7 +3650,7 @@ class AppliedBundleItem {
|
|
|
3650
3650
|
}
|
|
3651
3651
|
}
|
|
3652
3652
|
|
|
3653
|
-
function enumStringToValue$
|
|
3653
|
+
function enumStringToValue$p(enumRef, value) {
|
|
3654
3654
|
if (typeof value === 'number') {
|
|
3655
3655
|
return value;
|
|
3656
3656
|
}
|
|
@@ -3893,7 +3893,7 @@ class ListInvoicesRequestFiltersDateFilter {
|
|
|
3893
3893
|
let m = new ListInvoicesRequestFiltersDateFilter();
|
|
3894
3894
|
m = Object.assign(m, proto);
|
|
3895
3895
|
if (proto.dateField) {
|
|
3896
|
-
m.dateField = enumStringToValue$
|
|
3896
|
+
m.dateField = enumStringToValue$p(ListInvoicesRequestFiltersDateFilterDateField, proto.dateField);
|
|
3897
3897
|
}
|
|
3898
3898
|
if (proto.dateLte) {
|
|
3899
3899
|
m.dateLte = new Date(proto.dateLte);
|
|
@@ -4043,7 +4043,7 @@ class ListInvoicesRequestFilters {
|
|
|
4043
4043
|
let m = new ListInvoicesRequestFilters();
|
|
4044
4044
|
m = Object.assign(m, proto);
|
|
4045
4045
|
if (proto.statuses) {
|
|
4046
|
-
m.statuses = proto.statuses.map((v) => enumStringToValue$
|
|
4046
|
+
m.statuses = proto.statuses.map((v) => enumStringToValue$p(InvoiceStatus, v));
|
|
4047
4047
|
}
|
|
4048
4048
|
if (proto.dateFilter) {
|
|
4049
4049
|
m.dateFilter = ListInvoicesRequestFiltersDateFilter.fromProto(proto.dateFilter);
|
|
@@ -4130,7 +4130,7 @@ class Invoice {
|
|
|
4130
4130
|
let m = new Invoice();
|
|
4131
4131
|
m = Object.assign(m, proto);
|
|
4132
4132
|
if (proto.status) {
|
|
4133
|
-
m.status = enumStringToValue$
|
|
4133
|
+
m.status = enumStringToValue$p(InvoiceStatus, proto.status);
|
|
4134
4134
|
}
|
|
4135
4135
|
if (proto.subtotal) {
|
|
4136
4136
|
m.subtotal = parseInt(proto.subtotal, 10);
|
|
@@ -4157,7 +4157,7 @@ class Invoice {
|
|
|
4157
4157
|
m.items = proto.items.map(InvoiceItem.fromProto);
|
|
4158
4158
|
}
|
|
4159
4159
|
if (proto.currency) {
|
|
4160
|
-
m.currency = enumStringToValue$
|
|
4160
|
+
m.currency = enumStringToValue$p(Currency, proto.currency);
|
|
4161
4161
|
}
|
|
4162
4162
|
if (proto.paid) {
|
|
4163
4163
|
m.paid = new Date(proto.paid);
|
|
@@ -4760,7 +4760,7 @@ class VoidInvoiceRequest {
|
|
|
4760
4760
|
}
|
|
4761
4761
|
}
|
|
4762
4762
|
|
|
4763
|
-
function enumStringToValue$
|
|
4763
|
+
function enumStringToValue$o(enumRef, value) {
|
|
4764
4764
|
if (typeof value === 'number') {
|
|
4765
4765
|
return value;
|
|
4766
4766
|
}
|
|
@@ -4805,7 +4805,7 @@ class Balance {
|
|
|
4805
4805
|
}
|
|
4806
4806
|
}
|
|
4807
4807
|
|
|
4808
|
-
function enumStringToValue$
|
|
4808
|
+
function enumStringToValue$n(enumRef, value) {
|
|
4809
4809
|
if (typeof value === 'number') {
|
|
4810
4810
|
return value;
|
|
4811
4811
|
}
|
|
@@ -4841,7 +4841,7 @@ class DateRange {
|
|
|
4841
4841
|
}
|
|
4842
4842
|
}
|
|
4843
4843
|
|
|
4844
|
-
function enumStringToValue$
|
|
4844
|
+
function enumStringToValue$m(enumRef, value) {
|
|
4845
4845
|
if (typeof value === 'number') {
|
|
4846
4846
|
return value;
|
|
4847
4847
|
}
|
|
@@ -4945,13 +4945,13 @@ class Payout {
|
|
|
4945
4945
|
m.amount = parseInt(proto.amount, 10);
|
|
4946
4946
|
}
|
|
4947
4947
|
if (proto.currency) {
|
|
4948
|
-
m.currency = enumStringToValue$
|
|
4948
|
+
m.currency = enumStringToValue$m(Currency, proto.currency);
|
|
4949
4949
|
}
|
|
4950
4950
|
if (proto.status) {
|
|
4951
|
-
m.status = enumStringToValue$
|
|
4951
|
+
m.status = enumStringToValue$m(PayoutStatus, proto.status);
|
|
4952
4952
|
}
|
|
4953
4953
|
if (proto.type) {
|
|
4954
|
-
m.type = enumStringToValue$
|
|
4954
|
+
m.type = enumStringToValue$m(PayoutType, proto.type);
|
|
4955
4955
|
}
|
|
4956
4956
|
return m;
|
|
4957
4957
|
}
|
|
@@ -5050,10 +5050,10 @@ class RetailPayout {
|
|
|
5050
5050
|
m.amount = parseInt(proto.amount, 10);
|
|
5051
5051
|
}
|
|
5052
5052
|
if (proto.status) {
|
|
5053
|
-
m.status = enumStringToValue$
|
|
5053
|
+
m.status = enumStringToValue$m(PayoutStatus, proto.status);
|
|
5054
5054
|
}
|
|
5055
5055
|
if (proto.type) {
|
|
5056
|
-
m.type = enumStringToValue$
|
|
5056
|
+
m.type = enumStringToValue$m(PayoutType, proto.type);
|
|
5057
5057
|
}
|
|
5058
5058
|
return m;
|
|
5059
5059
|
}
|
|
@@ -5096,7 +5096,7 @@ class RetailPayout {
|
|
|
5096
5096
|
}
|
|
5097
5097
|
}
|
|
5098
5098
|
|
|
5099
|
-
function enumStringToValue$
|
|
5099
|
+
function enumStringToValue$l(enumRef, value) {
|
|
5100
5100
|
if (typeof value === 'number') {
|
|
5101
5101
|
return value;
|
|
5102
5102
|
}
|
|
@@ -5394,7 +5394,7 @@ class GetOutstandingBalanceResponse {
|
|
|
5394
5394
|
m.outstandingBalance = parseInt(proto.outstandingBalance, 10);
|
|
5395
5395
|
}
|
|
5396
5396
|
if (proto.currency) {
|
|
5397
|
-
m.currency = enumStringToValue$
|
|
5397
|
+
m.currency = enumStringToValue$l(Currency, proto.currency);
|
|
5398
5398
|
}
|
|
5399
5399
|
return m;
|
|
5400
5400
|
}
|
|
@@ -5791,10 +5791,10 @@ class SearchMerchantsRequest {
|
|
|
5791
5791
|
let m = new SearchMerchantsRequest();
|
|
5792
5792
|
m = Object.assign(m, proto);
|
|
5793
5793
|
if (proto.sortBy) {
|
|
5794
|
-
m.sortBy = enumStringToValue$
|
|
5794
|
+
m.sortBy = enumStringToValue$l(SearchMerchantsRequestSortBy, proto.sortBy);
|
|
5795
5795
|
}
|
|
5796
5796
|
if (proto.sortDirection) {
|
|
5797
|
-
m.sortDirection = enumStringToValue$
|
|
5797
|
+
m.sortDirection = enumStringToValue$l(SortDirection, proto.sortDirection);
|
|
5798
5798
|
}
|
|
5799
5799
|
if (proto.pagingOptions) {
|
|
5800
5800
|
m.pagingOptions = PagedRequestOptions.fromProto(proto.pagingOptions);
|
|
@@ -6083,7 +6083,7 @@ class UpsertRetailConfigurationRequest {
|
|
|
6083
6083
|
}
|
|
6084
6084
|
}
|
|
6085
6085
|
|
|
6086
|
-
function enumStringToValue$
|
|
6086
|
+
function enumStringToValue$k(enumRef, value) {
|
|
6087
6087
|
if (typeof value === 'number') {
|
|
6088
6088
|
return value;
|
|
6089
6089
|
}
|
|
@@ -6158,13 +6158,13 @@ class MerchantReport {
|
|
|
6158
6158
|
m.year = parseInt(proto.year, 10);
|
|
6159
6159
|
}
|
|
6160
6160
|
if (proto.month) {
|
|
6161
|
-
m.month = enumStringToValue$
|
|
6161
|
+
m.month = enumStringToValue$k(Month, proto.month);
|
|
6162
6162
|
}
|
|
6163
6163
|
if (proto.created) {
|
|
6164
6164
|
m.created = new Date(proto.created);
|
|
6165
6165
|
}
|
|
6166
6166
|
if (proto.status) {
|
|
6167
|
-
m.status = enumStringToValue$
|
|
6167
|
+
m.status = enumStringToValue$k(MerchantReportStatus, proto.status);
|
|
6168
6168
|
}
|
|
6169
6169
|
return m;
|
|
6170
6170
|
}
|
|
@@ -6189,7 +6189,7 @@ class MerchantReport {
|
|
|
6189
6189
|
}
|
|
6190
6190
|
}
|
|
6191
6191
|
|
|
6192
|
-
function enumStringToValue$
|
|
6192
|
+
function enumStringToValue$j(enumRef, value) {
|
|
6193
6193
|
if (typeof value === 'number') {
|
|
6194
6194
|
return value;
|
|
6195
6195
|
}
|
|
@@ -6286,7 +6286,7 @@ class TickComponentUsageRequest {
|
|
|
6286
6286
|
}
|
|
6287
6287
|
}
|
|
6288
6288
|
|
|
6289
|
-
function enumStringToValue$
|
|
6289
|
+
function enumStringToValue$i(enumRef, value) {
|
|
6290
6290
|
if (typeof value === 'number') {
|
|
6291
6291
|
return value;
|
|
6292
6292
|
}
|
|
@@ -6303,7 +6303,7 @@ class RetailPaymentCardDetails {
|
|
|
6303
6303
|
let m = new RetailPaymentCardDetails();
|
|
6304
6304
|
m = Object.assign(m, proto);
|
|
6305
6305
|
if (proto.cardType) {
|
|
6306
|
-
m.cardType = enumStringToValue$
|
|
6306
|
+
m.cardType = enumStringToValue$i(CardType, proto.cardType);
|
|
6307
6307
|
}
|
|
6308
6308
|
return m;
|
|
6309
6309
|
}
|
|
@@ -6424,7 +6424,7 @@ class Dispute {
|
|
|
6424
6424
|
let m = new Dispute();
|
|
6425
6425
|
m = Object.assign(m, proto);
|
|
6426
6426
|
if (proto.status) {
|
|
6427
|
-
m.status = enumStringToValue$
|
|
6427
|
+
m.status = enumStringToValue$i(DisputeStatus, proto.status);
|
|
6428
6428
|
}
|
|
6429
6429
|
if (proto.amount) {
|
|
6430
6430
|
m.amount = parseInt(proto.amount, 10);
|
|
@@ -7079,10 +7079,10 @@ class Payment {
|
|
|
7079
7079
|
m.created = new Date(proto.created);
|
|
7080
7080
|
}
|
|
7081
7081
|
if (proto.currency) {
|
|
7082
|
-
m.currency = enumStringToValue$
|
|
7082
|
+
m.currency = enumStringToValue$i(Currency, proto.currency);
|
|
7083
7083
|
}
|
|
7084
7084
|
if (proto.paymentSource) {
|
|
7085
|
-
m.paymentSource = enumStringToValue$
|
|
7085
|
+
m.paymentSource = enumStringToValue$i(PaymentSource, proto.paymentSource);
|
|
7086
7086
|
}
|
|
7087
7087
|
if (proto.allocations) {
|
|
7088
7088
|
m.allocations = proto.allocations.map(PaymentPaymentAllocation.fromProto);
|
|
@@ -7091,7 +7091,7 @@ class Payment {
|
|
|
7091
7091
|
m.total = parseInt(proto.total, 10);
|
|
7092
7092
|
}
|
|
7093
7093
|
if (proto.status) {
|
|
7094
|
-
m.status = enumStringToValue$
|
|
7094
|
+
m.status = enumStringToValue$i(PaymentStatus, proto.status);
|
|
7095
7095
|
}
|
|
7096
7096
|
return m;
|
|
7097
7097
|
}
|
|
@@ -7141,7 +7141,7 @@ class PaymentPaymentAllocation {
|
|
|
7141
7141
|
m.amount = parseInt(proto.amount, 10);
|
|
7142
7142
|
}
|
|
7143
7143
|
if (proto.type) {
|
|
7144
|
-
m.type = enumStringToValue$
|
|
7144
|
+
m.type = enumStringToValue$i(PaymentAllocationType, proto.type);
|
|
7145
7145
|
}
|
|
7146
7146
|
return m;
|
|
7147
7147
|
}
|
|
@@ -7231,10 +7231,10 @@ class RetailPayment {
|
|
|
7231
7231
|
m.amount = parseInt(proto.amount, 10);
|
|
7232
7232
|
}
|
|
7233
7233
|
if (proto.referenceType) {
|
|
7234
|
-
m.referenceType = enumStringToValue$
|
|
7234
|
+
m.referenceType = enumStringToValue$i(RetailPaymentReferenceType, proto.referenceType);
|
|
7235
7235
|
}
|
|
7236
7236
|
if (proto.status) {
|
|
7237
|
-
m.status = enumStringToValue$
|
|
7237
|
+
m.status = enumStringToValue$i(PaymentStatus, proto.status);
|
|
7238
7238
|
}
|
|
7239
7239
|
if (proto.applicationFee) {
|
|
7240
7240
|
m.applicationFee = parseInt(proto.applicationFee, 10);
|
|
@@ -7503,7 +7503,7 @@ class RetailStatusResponseVerificationRequirements {
|
|
|
7503
7503
|
}
|
|
7504
7504
|
}
|
|
7505
7505
|
|
|
7506
|
-
function enumStringToValue$
|
|
7506
|
+
function enumStringToValue$h(enumRef, value) {
|
|
7507
7507
|
if (typeof value === 'number') {
|
|
7508
7508
|
return value;
|
|
7509
7509
|
}
|
|
@@ -7612,10 +7612,10 @@ class PaymentCard {
|
|
|
7612
7612
|
let m = new PaymentCard();
|
|
7613
7613
|
m = Object.assign(m, proto);
|
|
7614
7614
|
if (proto.cardType) {
|
|
7615
|
-
m.cardType = enumStringToValue$
|
|
7615
|
+
m.cardType = enumStringToValue$h(PaymentCardCARD_TYPE, proto.cardType);
|
|
7616
7616
|
}
|
|
7617
7617
|
if (proto.fundingType) {
|
|
7618
|
-
m.fundingType = enumStringToValue$
|
|
7618
|
+
m.fundingType = enumStringToValue$h(PaymentCardFUNDING_TYPE, proto.fundingType);
|
|
7619
7619
|
}
|
|
7620
7620
|
return m;
|
|
7621
7621
|
}
|
|
@@ -7713,7 +7713,7 @@ class UpdatePaymentCardRequest {
|
|
|
7713
7713
|
}
|
|
7714
7714
|
}
|
|
7715
7715
|
|
|
7716
|
-
function enumStringToValue$
|
|
7716
|
+
function enumStringToValue$g(enumRef, value) {
|
|
7717
7717
|
if (typeof value === 'number') {
|
|
7718
7718
|
return value;
|
|
7719
7719
|
}
|
|
@@ -7756,7 +7756,7 @@ class CreatePricingPlanRequest {
|
|
|
7756
7756
|
let m = new CreatePricingPlanRequest();
|
|
7757
7757
|
m = Object.assign(m, proto);
|
|
7758
7758
|
if (proto.defaultBillingStrategy) {
|
|
7759
|
-
m.defaultBillingStrategy = enumStringToValue$
|
|
7759
|
+
m.defaultBillingStrategy = enumStringToValue$g(BillingStrategy, proto.defaultBillingStrategy);
|
|
7760
7760
|
}
|
|
7761
7761
|
return m;
|
|
7762
7762
|
}
|
|
@@ -7845,7 +7845,7 @@ class PricingPlan {
|
|
|
7845
7845
|
let m = new PricingPlan();
|
|
7846
7846
|
m = Object.assign(m, proto);
|
|
7847
7847
|
if (proto.defaultBillingStrategy) {
|
|
7848
|
-
m.defaultBillingStrategy = enumStringToValue$
|
|
7848
|
+
m.defaultBillingStrategy = enumStringToValue$g(BillingStrategy, proto.defaultBillingStrategy);
|
|
7849
7849
|
}
|
|
7850
7850
|
return m;
|
|
7851
7851
|
}
|
|
@@ -7874,7 +7874,7 @@ class PricingPlanProductPricing {
|
|
|
7874
7874
|
let m = new PricingPlanProductPricing();
|
|
7875
7875
|
m = Object.assign(m, proto);
|
|
7876
7876
|
if (proto.type) {
|
|
7877
|
-
m.type = enumStringToValue$
|
|
7877
|
+
m.type = enumStringToValue$g(ProductPricingType, proto.type);
|
|
7878
7878
|
}
|
|
7879
7879
|
if (proto.rules) {
|
|
7880
7880
|
m.rules = proto.rules.map(ProductPricingRule.fromProto);
|
|
@@ -7883,7 +7883,7 @@ class PricingPlanProductPricing {
|
|
|
7883
7883
|
m.setupFee = parseInt(proto.setupFee, 10);
|
|
7884
7884
|
}
|
|
7885
7885
|
if (proto.frequency) {
|
|
7886
|
-
m.frequency = enumStringToValue$
|
|
7886
|
+
m.frequency = enumStringToValue$g(Frequency, proto.frequency);
|
|
7887
7887
|
}
|
|
7888
7888
|
return m;
|
|
7889
7889
|
}
|
|
@@ -7962,7 +7962,7 @@ class UpdatePricingPlanRequest {
|
|
|
7962
7962
|
m.fieldMask = FieldMask.fromProto(proto.fieldMask);
|
|
7963
7963
|
}
|
|
7964
7964
|
if (proto.defaultBillingStrategy) {
|
|
7965
|
-
m.defaultBillingStrategy = enumStringToValue$
|
|
7965
|
+
m.defaultBillingStrategy = enumStringToValue$g(BillingStrategy, proto.defaultBillingStrategy);
|
|
7966
7966
|
}
|
|
7967
7967
|
return m;
|
|
7968
7968
|
}
|
|
@@ -8001,7 +8001,7 @@ class UpdatePricingPlanResponse {
|
|
|
8001
8001
|
}
|
|
8002
8002
|
}
|
|
8003
8003
|
|
|
8004
|
-
function enumStringToValue$
|
|
8004
|
+
function enumStringToValue$f(enumRef, value) {
|
|
8005
8005
|
if (typeof value === 'number') {
|
|
8006
8006
|
return value;
|
|
8007
8007
|
}
|
|
@@ -8018,7 +8018,7 @@ class CreatePricingPlanProductRequest {
|
|
|
8018
8018
|
let m = new CreatePricingPlanProductRequest();
|
|
8019
8019
|
m = Object.assign(m, proto);
|
|
8020
8020
|
if (proto.frequency) {
|
|
8021
|
-
m.frequency = enumStringToValue$
|
|
8021
|
+
m.frequency = enumStringToValue$f(Frequency, proto.frequency);
|
|
8022
8022
|
}
|
|
8023
8023
|
if (proto.pricing) {
|
|
8024
8024
|
m.pricing = Object.keys(proto.pricing).reduce((obj, k) => { obj[k] = PricingPlanProductPricing.fromProto(proto.pricing[k]); return obj; }, {});
|
|
@@ -8027,11 +8027,17 @@ class CreatePricingPlanProductRequest {
|
|
|
8027
8027
|
m.commitment = Commitment.fromProto(proto.commitment);
|
|
8028
8028
|
}
|
|
8029
8029
|
if (proto.strategy) {
|
|
8030
|
-
m.strategy = enumStringToValue$
|
|
8030
|
+
m.strategy = enumStringToValue$f(BillingStrategy, proto.strategy);
|
|
8031
8031
|
}
|
|
8032
8032
|
if (proto.volumeCommitment) {
|
|
8033
8033
|
m.volumeCommitment = parseInt(proto.volumeCommitment, 10);
|
|
8034
8034
|
}
|
|
8035
|
+
if (proto.volumeCommitmentStartsAt) {
|
|
8036
|
+
m.volumeCommitmentStartsAt = new Date(proto.volumeCommitmentStartsAt);
|
|
8037
|
+
}
|
|
8038
|
+
if (proto.volumeCommitmentEndsAt) {
|
|
8039
|
+
m.volumeCommitmentEndsAt = new Date(proto.volumeCommitmentEndsAt);
|
|
8040
|
+
}
|
|
8035
8041
|
return m;
|
|
8036
8042
|
}
|
|
8037
8043
|
toApiJson() {
|
|
@@ -8057,6 +8063,12 @@ class CreatePricingPlanProductRequest {
|
|
|
8057
8063
|
if (typeof this.volumeCommitment !== 'undefined') {
|
|
8058
8064
|
toReturn['volumeCommitment'] = this.volumeCommitment;
|
|
8059
8065
|
}
|
|
8066
|
+
if (typeof this.volumeCommitmentStartsAt !== 'undefined' && this.volumeCommitmentStartsAt !== null) {
|
|
8067
|
+
toReturn['volumeCommitmentStartsAt'] = 'toApiJson' in this.volumeCommitmentStartsAt ? this.volumeCommitmentStartsAt.toApiJson() : this.volumeCommitmentStartsAt;
|
|
8068
|
+
}
|
|
8069
|
+
if (typeof this.volumeCommitmentEndsAt !== 'undefined' && this.volumeCommitmentEndsAt !== null) {
|
|
8070
|
+
toReturn['volumeCommitmentEndsAt'] = 'toApiJson' in this.volumeCommitmentEndsAt ? this.volumeCommitmentEndsAt.toApiJson() : this.volumeCommitmentEndsAt;
|
|
8071
|
+
}
|
|
8060
8072
|
return toReturn;
|
|
8061
8073
|
}
|
|
8062
8074
|
}
|
|
@@ -8189,7 +8201,7 @@ class GetPricingPlanProductResponse {
|
|
|
8189
8201
|
m.pricingPlanProduct = PricingPlanProduct.fromProto(proto.pricingPlanProduct);
|
|
8190
8202
|
}
|
|
8191
8203
|
if (proto.pricingPlanDefaultStrategy) {
|
|
8192
|
-
m.pricingPlanDefaultStrategy = enumStringToValue$
|
|
8204
|
+
m.pricingPlanDefaultStrategy = enumStringToValue$f(BillingStrategy, proto.pricingPlanDefaultStrategy);
|
|
8193
8205
|
}
|
|
8194
8206
|
return m;
|
|
8195
8207
|
}
|
|
@@ -8377,7 +8389,7 @@ class PricingPlanProduct {
|
|
|
8377
8389
|
let m = new PricingPlanProduct();
|
|
8378
8390
|
m = Object.assign(m, proto);
|
|
8379
8391
|
if (proto.frequency) {
|
|
8380
|
-
m.frequency = enumStringToValue$
|
|
8392
|
+
m.frequency = enumStringToValue$f(Frequency, proto.frequency);
|
|
8381
8393
|
}
|
|
8382
8394
|
if (proto.pricing) {
|
|
8383
8395
|
m.pricing = Object.keys(proto.pricing).reduce((obj, k) => { obj[k] = PricingPlanProductPricing.fromProto(proto.pricing[k]); return obj; }, {});
|
|
@@ -8392,13 +8404,19 @@ class PricingPlanProduct {
|
|
|
8392
8404
|
m.modified = new Date(proto.modified);
|
|
8393
8405
|
}
|
|
8394
8406
|
if (proto.strategy) {
|
|
8395
|
-
m.strategy = enumStringToValue$
|
|
8407
|
+
m.strategy = enumStringToValue$f(BillingStrategy, proto.strategy);
|
|
8396
8408
|
}
|
|
8397
8409
|
if (proto.volumeCommitment) {
|
|
8398
8410
|
m.volumeCommitment = parseInt(proto.volumeCommitment, 10);
|
|
8399
8411
|
}
|
|
8412
|
+
if (proto.volumeCommitmentStartsAt) {
|
|
8413
|
+
m.volumeCommitmentStartsAt = new Date(proto.volumeCommitmentStartsAt);
|
|
8414
|
+
}
|
|
8415
|
+
if (proto.volumeCommitmentEndsAt) {
|
|
8416
|
+
m.volumeCommitmentEndsAt = new Date(proto.volumeCommitmentEndsAt);
|
|
8417
|
+
}
|
|
8400
8418
|
if (proto.pricingType) {
|
|
8401
|
-
m.pricingType = enumStringToValue$
|
|
8419
|
+
m.pricingType = enumStringToValue$f(ProductPricingType, proto.pricingType);
|
|
8402
8420
|
}
|
|
8403
8421
|
return m;
|
|
8404
8422
|
}
|
|
@@ -8431,6 +8449,12 @@ class PricingPlanProduct {
|
|
|
8431
8449
|
if (typeof this.volumeCommitment !== 'undefined') {
|
|
8432
8450
|
toReturn['volumeCommitment'] = this.volumeCommitment;
|
|
8433
8451
|
}
|
|
8452
|
+
if (typeof this.volumeCommitmentStartsAt !== 'undefined' && this.volumeCommitmentStartsAt !== null) {
|
|
8453
|
+
toReturn['volumeCommitmentStartsAt'] = 'toApiJson' in this.volumeCommitmentStartsAt ? this.volumeCommitmentStartsAt.toApiJson() : this.volumeCommitmentStartsAt;
|
|
8454
|
+
}
|
|
8455
|
+
if (typeof this.volumeCommitmentEndsAt !== 'undefined' && this.volumeCommitmentEndsAt !== null) {
|
|
8456
|
+
toReturn['volumeCommitmentEndsAt'] = 'toApiJson' in this.volumeCommitmentEndsAt ? this.volumeCommitmentEndsAt.toApiJson() : this.volumeCommitmentEndsAt;
|
|
8457
|
+
}
|
|
8434
8458
|
if (typeof this.pricingType !== 'undefined') {
|
|
8435
8459
|
toReturn['pricingType'] = this.pricingType;
|
|
8436
8460
|
}
|
|
@@ -8448,7 +8472,7 @@ class UpdatePricingPlanProductRequest {
|
|
|
8448
8472
|
let m = new UpdatePricingPlanProductRequest();
|
|
8449
8473
|
m = Object.assign(m, proto);
|
|
8450
8474
|
if (proto.frequency) {
|
|
8451
|
-
m.frequency = enumStringToValue$
|
|
8475
|
+
m.frequency = enumStringToValue$f(Frequency, proto.frequency);
|
|
8452
8476
|
}
|
|
8453
8477
|
if (proto.pricing) {
|
|
8454
8478
|
m.pricing = Object.keys(proto.pricing).reduce((obj, k) => { obj[k] = PricingPlanProductPricing.fromProto(proto.pricing[k]); return obj; }, {});
|
|
@@ -8460,11 +8484,17 @@ class UpdatePricingPlanProductRequest {
|
|
|
8460
8484
|
m.fieldMask = FieldMask.fromProto(proto.fieldMask);
|
|
8461
8485
|
}
|
|
8462
8486
|
if (proto.strategy) {
|
|
8463
|
-
m.strategy = enumStringToValue$
|
|
8487
|
+
m.strategy = enumStringToValue$f(BillingStrategy, proto.strategy);
|
|
8464
8488
|
}
|
|
8465
8489
|
if (proto.volumeCommitment) {
|
|
8466
8490
|
m.volumeCommitment = parseInt(proto.volumeCommitment, 10);
|
|
8467
8491
|
}
|
|
8492
|
+
if (proto.volumeCommitmentStartsAt) {
|
|
8493
|
+
m.volumeCommitmentStartsAt = new Date(proto.volumeCommitmentStartsAt);
|
|
8494
|
+
}
|
|
8495
|
+
if (proto.volumeCommitmentEndsAt) {
|
|
8496
|
+
m.volumeCommitmentEndsAt = new Date(proto.volumeCommitmentEndsAt);
|
|
8497
|
+
}
|
|
8468
8498
|
return m;
|
|
8469
8499
|
}
|
|
8470
8500
|
toApiJson() {
|
|
@@ -8493,6 +8523,12 @@ class UpdatePricingPlanProductRequest {
|
|
|
8493
8523
|
if (typeof this.volumeCommitment !== 'undefined') {
|
|
8494
8524
|
toReturn['volumeCommitment'] = this.volumeCommitment;
|
|
8495
8525
|
}
|
|
8526
|
+
if (typeof this.volumeCommitmentStartsAt !== 'undefined' && this.volumeCommitmentStartsAt !== null) {
|
|
8527
|
+
toReturn['volumeCommitmentStartsAt'] = 'toApiJson' in this.volumeCommitmentStartsAt ? this.volumeCommitmentStartsAt.toApiJson() : this.volumeCommitmentStartsAt;
|
|
8528
|
+
}
|
|
8529
|
+
if (typeof this.volumeCommitmentEndsAt !== 'undefined' && this.volumeCommitmentEndsAt !== null) {
|
|
8530
|
+
toReturn['volumeCommitmentEndsAt'] = 'toApiJson' in this.volumeCommitmentEndsAt ? this.volumeCommitmentEndsAt.toApiJson() : this.volumeCommitmentEndsAt;
|
|
8531
|
+
}
|
|
8496
8532
|
return toReturn;
|
|
8497
8533
|
}
|
|
8498
8534
|
}
|
|
@@ -8530,11 +8566,17 @@ class UpsertWholesalePricingRequest {
|
|
|
8530
8566
|
m.termCommitment = Commitment.fromProto(proto.termCommitment);
|
|
8531
8567
|
}
|
|
8532
8568
|
if (proto.strategy) {
|
|
8533
|
-
m.strategy = enumStringToValue$
|
|
8569
|
+
m.strategy = enumStringToValue$f(BillingStrategy, proto.strategy);
|
|
8534
8570
|
}
|
|
8535
8571
|
if (proto.volumeCommitment) {
|
|
8536
8572
|
m.volumeCommitment = parseInt(proto.volumeCommitment, 10);
|
|
8537
8573
|
}
|
|
8574
|
+
if (proto.volumeCommitmentStartsAt) {
|
|
8575
|
+
m.volumeCommitmentStartsAt = new Date(proto.volumeCommitmentStartsAt);
|
|
8576
|
+
}
|
|
8577
|
+
if (proto.volumeCommitmentEndsAt) {
|
|
8578
|
+
m.volumeCommitmentEndsAt = new Date(proto.volumeCommitmentEndsAt);
|
|
8579
|
+
}
|
|
8538
8580
|
return m;
|
|
8539
8581
|
}
|
|
8540
8582
|
toApiJson() {
|
|
@@ -8557,11 +8599,17 @@ class UpsertWholesalePricingRequest {
|
|
|
8557
8599
|
if (typeof this.volumeCommitment !== 'undefined') {
|
|
8558
8600
|
toReturn['volumeCommitment'] = this.volumeCommitment;
|
|
8559
8601
|
}
|
|
8602
|
+
if (typeof this.volumeCommitmentStartsAt !== 'undefined' && this.volumeCommitmentStartsAt !== null) {
|
|
8603
|
+
toReturn['volumeCommitmentStartsAt'] = 'toApiJson' in this.volumeCommitmentStartsAt ? this.volumeCommitmentStartsAt.toApiJson() : this.volumeCommitmentStartsAt;
|
|
8604
|
+
}
|
|
8605
|
+
if (typeof this.volumeCommitmentEndsAt !== 'undefined' && this.volumeCommitmentEndsAt !== null) {
|
|
8606
|
+
toReturn['volumeCommitmentEndsAt'] = 'toApiJson' in this.volumeCommitmentEndsAt ? this.volumeCommitmentEndsAt.toApiJson() : this.volumeCommitmentEndsAt;
|
|
8607
|
+
}
|
|
8560
8608
|
return toReturn;
|
|
8561
8609
|
}
|
|
8562
8610
|
}
|
|
8563
8611
|
|
|
8564
|
-
function enumStringToValue$
|
|
8612
|
+
function enumStringToValue$e(enumRef, value) {
|
|
8565
8613
|
if (typeof value === 'number') {
|
|
8566
8614
|
return value;
|
|
8567
8615
|
}
|
|
@@ -8578,7 +8626,7 @@ class CreateProductRequest {
|
|
|
8578
8626
|
let m = new CreateProductRequest();
|
|
8579
8627
|
m = Object.assign(m, proto);
|
|
8580
8628
|
if (proto.productType) {
|
|
8581
|
-
m.productType = enumStringToValue$
|
|
8629
|
+
m.productType = enumStringToValue$e(ProductType, proto.productType);
|
|
8582
8630
|
}
|
|
8583
8631
|
return m;
|
|
8584
8632
|
}
|
|
@@ -8679,7 +8727,7 @@ class ListProductsRequestListProductsFilters {
|
|
|
8679
8727
|
let m = new ListProductsRequestListProductsFilters();
|
|
8680
8728
|
m = Object.assign(m, proto);
|
|
8681
8729
|
if (proto.productType) {
|
|
8682
|
-
m.productType = proto.productType.map((v) => enumStringToValue$
|
|
8730
|
+
m.productType = proto.productType.map((v) => enumStringToValue$e(ProductType, v));
|
|
8683
8731
|
}
|
|
8684
8732
|
return m;
|
|
8685
8733
|
}
|
|
@@ -8775,7 +8823,7 @@ class Product {
|
|
|
8775
8823
|
let m = new Product();
|
|
8776
8824
|
m = Object.assign(m, proto);
|
|
8777
8825
|
if (proto.productType) {
|
|
8778
|
-
m.productType = enumStringToValue$
|
|
8826
|
+
m.productType = enumStringToValue$e(ProductType, proto.productType);
|
|
8779
8827
|
}
|
|
8780
8828
|
return m;
|
|
8781
8829
|
}
|
|
@@ -8839,7 +8887,7 @@ class UpdateProductRequest {
|
|
|
8839
8887
|
let m = new UpdateProductRequest();
|
|
8840
8888
|
m = Object.assign(m, proto);
|
|
8841
8889
|
if (proto.productType) {
|
|
8842
|
-
m.productType = enumStringToValue$
|
|
8890
|
+
m.productType = enumStringToValue$e(ProductType, proto.productType);
|
|
8843
8891
|
}
|
|
8844
8892
|
return m;
|
|
8845
8893
|
}
|
|
@@ -8861,7 +8909,7 @@ class UpdateProductRequest {
|
|
|
8861
8909
|
}
|
|
8862
8910
|
}
|
|
8863
8911
|
|
|
8864
|
-
function enumStringToValue$
|
|
8912
|
+
function enumStringToValue$d(enumRef, value) {
|
|
8865
8913
|
if (typeof value === 'number') {
|
|
8866
8914
|
return value;
|
|
8867
8915
|
}
|
|
@@ -8904,16 +8952,16 @@ class ProductPricing {
|
|
|
8904
8952
|
let m = new ProductPricing();
|
|
8905
8953
|
m = Object.assign(m, proto);
|
|
8906
8954
|
if (proto.strategy) {
|
|
8907
|
-
m.strategy = enumStringToValue$
|
|
8955
|
+
m.strategy = enumStringToValue$d(BillingStrategy, proto.strategy);
|
|
8908
8956
|
}
|
|
8909
8957
|
if (proto.pricingType) {
|
|
8910
|
-
m.pricingType = enumStringToValue$
|
|
8958
|
+
m.pricingType = enumStringToValue$d(ProductPricingType, proto.pricingType);
|
|
8911
8959
|
}
|
|
8912
8960
|
if (proto.currency) {
|
|
8913
|
-
m.currency = enumStringToValue$
|
|
8961
|
+
m.currency = enumStringToValue$d(Currency, proto.currency);
|
|
8914
8962
|
}
|
|
8915
8963
|
if (proto.frequency) {
|
|
8916
|
-
m.frequency = enumStringToValue$
|
|
8964
|
+
m.frequency = enumStringToValue$d(Frequency, proto.frequency);
|
|
8917
8965
|
}
|
|
8918
8966
|
if (proto.pricingRules) {
|
|
8919
8967
|
m.pricingRules = proto.pricingRules.map(ProductPricingRule.fromProto);
|
|
@@ -8964,8 +9012,40 @@ class ProductPricing {
|
|
|
8964
9012
|
return toReturn;
|
|
8965
9013
|
}
|
|
8966
9014
|
}
|
|
9015
|
+
class WholesaleCostItemRequest {
|
|
9016
|
+
constructor(kwargs) {
|
|
9017
|
+
if (!kwargs) {
|
|
9018
|
+
return;
|
|
9019
|
+
}
|
|
9020
|
+
Object.assign(this, kwargs);
|
|
9021
|
+
}
|
|
9022
|
+
static fromProto(proto) {
|
|
9023
|
+
let m = new WholesaleCostItemRequest();
|
|
9024
|
+
m = Object.assign(m, proto);
|
|
9025
|
+
if (proto.quantity) {
|
|
9026
|
+
m.quantity = parseInt(proto.quantity, 10);
|
|
9027
|
+
}
|
|
9028
|
+
if (proto.frequency) {
|
|
9029
|
+
m.frequency = enumStringToValue$d(Frequency, proto.frequency);
|
|
9030
|
+
}
|
|
9031
|
+
return m;
|
|
9032
|
+
}
|
|
9033
|
+
toApiJson() {
|
|
9034
|
+
const toReturn = {};
|
|
9035
|
+
if (typeof this.sku !== 'undefined') {
|
|
9036
|
+
toReturn['sku'] = this.sku;
|
|
9037
|
+
}
|
|
9038
|
+
if (typeof this.quantity !== 'undefined') {
|
|
9039
|
+
toReturn['quantity'] = this.quantity;
|
|
9040
|
+
}
|
|
9041
|
+
if (typeof this.frequency !== 'undefined') {
|
|
9042
|
+
toReturn['frequency'] = this.frequency;
|
|
9043
|
+
}
|
|
9044
|
+
return toReturn;
|
|
9045
|
+
}
|
|
9046
|
+
}
|
|
8967
9047
|
|
|
8968
|
-
function enumStringToValue$
|
|
9048
|
+
function enumStringToValue$c(enumRef, value) {
|
|
8969
9049
|
if (typeof value === 'number') {
|
|
8970
9050
|
return value;
|
|
8971
9051
|
}
|
|
@@ -8985,7 +9065,7 @@ class AppliedCredit {
|
|
|
8985
9065
|
m.appliedAmount = parseInt(proto.appliedAmount, 10);
|
|
8986
9066
|
}
|
|
8987
9067
|
if (proto.referenceType) {
|
|
8988
|
-
m.referenceType = enumStringToValue$
|
|
9068
|
+
m.referenceType = enumStringToValue$c(CreditType, proto.referenceType);
|
|
8989
9069
|
}
|
|
8990
9070
|
return m;
|
|
8991
9071
|
}
|
|
@@ -9014,7 +9094,7 @@ class ListPurchaseRequestListPurchaseBillingStrategyFilter {
|
|
|
9014
9094
|
let m = new ListPurchaseRequestListPurchaseBillingStrategyFilter();
|
|
9015
9095
|
m = Object.assign(m, proto);
|
|
9016
9096
|
if (proto.billingStrategy) {
|
|
9017
|
-
m.billingStrategy = proto.billingStrategy.map((v) => enumStringToValue$
|
|
9097
|
+
m.billingStrategy = proto.billingStrategy.map((v) => enumStringToValue$c(BillingStrategy, v));
|
|
9018
9098
|
}
|
|
9019
9099
|
return m;
|
|
9020
9100
|
}
|
|
@@ -9046,13 +9126,13 @@ class ListPurchaseRequestListPurchaseFilters {
|
|
|
9046
9126
|
m.billingStrategyFilter = ListPurchaseRequestListPurchaseBillingStrategyFilter.fromProto(proto.billingStrategyFilter);
|
|
9047
9127
|
}
|
|
9048
9128
|
if (proto.state) {
|
|
9049
|
-
m.state = enumStringToValue$
|
|
9129
|
+
m.state = enumStringToValue$c(ListPurchaseRequestState, proto.state);
|
|
9050
9130
|
}
|
|
9051
9131
|
if (proto.minPrice) {
|
|
9052
9132
|
m.minPrice = parseInt(proto.minPrice, 10);
|
|
9053
9133
|
}
|
|
9054
9134
|
if (proto.status) {
|
|
9055
|
-
m.status = enumStringToValue$
|
|
9135
|
+
m.status = enumStringToValue$c(PurchaseStatus, proto.status);
|
|
9056
9136
|
}
|
|
9057
9137
|
return m;
|
|
9058
9138
|
}
|
|
@@ -9169,7 +9249,7 @@ class ListPurchaseItemsResponse {
|
|
|
9169
9249
|
m.pagingMetadata = PagedResponseMetadata.fromProto(proto.pagingMetadata);
|
|
9170
9250
|
}
|
|
9171
9251
|
if (proto.currency) {
|
|
9172
|
-
m.currency = enumStringToValue$
|
|
9252
|
+
m.currency = enumStringToValue$c(Currency, proto.currency);
|
|
9173
9253
|
}
|
|
9174
9254
|
return m;
|
|
9175
9255
|
}
|
|
@@ -9262,13 +9342,13 @@ class Purchase {
|
|
|
9262
9342
|
m.total = parseInt(proto.total, 10);
|
|
9263
9343
|
}
|
|
9264
9344
|
if (proto.currency) {
|
|
9265
|
-
m.currency = enumStringToValue$
|
|
9345
|
+
m.currency = enumStringToValue$c(Currency, proto.currency);
|
|
9266
9346
|
}
|
|
9267
9347
|
if (proto.items) {
|
|
9268
9348
|
m.items = proto.items.map(PurchaseItem.fromProto);
|
|
9269
9349
|
}
|
|
9270
9350
|
if (proto.billingStrategy) {
|
|
9271
|
-
m.billingStrategy = enumStringToValue$
|
|
9351
|
+
m.billingStrategy = enumStringToValue$c(BillingStrategy, proto.billingStrategy);
|
|
9272
9352
|
}
|
|
9273
9353
|
if (proto.dunningAttempt) {
|
|
9274
9354
|
m.dunningAttempt = parseInt(proto.dunningAttempt, 10);
|
|
@@ -9277,7 +9357,7 @@ class Purchase {
|
|
|
9277
9357
|
m.voided = new Date(proto.voided);
|
|
9278
9358
|
}
|
|
9279
9359
|
if (proto.status) {
|
|
9280
|
-
m.status = enumStringToValue$
|
|
9360
|
+
m.status = enumStringToValue$c(PurchaseStatus, proto.status);
|
|
9281
9361
|
}
|
|
9282
9362
|
if (proto.creditAmount) {
|
|
9283
9363
|
m.creditAmount = parseInt(proto.creditAmount, 10);
|
|
@@ -9485,7 +9565,7 @@ class VoidPurchaseRequest {
|
|
|
9485
9565
|
}
|
|
9486
9566
|
}
|
|
9487
9567
|
|
|
9488
|
-
function enumStringToValue$
|
|
9568
|
+
function enumStringToValue$b(enumRef, value) {
|
|
9489
9569
|
if (typeof value === 'number') {
|
|
9490
9570
|
return value;
|
|
9491
9571
|
}
|
|
@@ -9505,10 +9585,10 @@ class CreateRefundRequest {
|
|
|
9505
9585
|
m.amount = parseInt(proto.amount, 10);
|
|
9506
9586
|
}
|
|
9507
9587
|
if (proto.reason) {
|
|
9508
|
-
m.reason = enumStringToValue$
|
|
9588
|
+
m.reason = enumStringToValue$b(RefundReason, proto.reason);
|
|
9509
9589
|
}
|
|
9510
9590
|
if (proto.referenceType) {
|
|
9511
|
-
m.referenceType = enumStringToValue$
|
|
9591
|
+
m.referenceType = enumStringToValue$b(ReferenceType, proto.referenceType);
|
|
9512
9592
|
}
|
|
9513
9593
|
return m;
|
|
9514
9594
|
}
|
|
@@ -9610,10 +9690,10 @@ class Refund {
|
|
|
9610
9690
|
m.amount = parseInt(proto.amount, 10);
|
|
9611
9691
|
}
|
|
9612
9692
|
if (proto.reason) {
|
|
9613
|
-
m.reason = enumStringToValue$
|
|
9693
|
+
m.reason = enumStringToValue$b(RefundReason, proto.reason);
|
|
9614
9694
|
}
|
|
9615
9695
|
if (proto.status) {
|
|
9616
|
-
m.status = enumStringToValue$
|
|
9696
|
+
m.status = enumStringToValue$b(RefundStatus, proto.status);
|
|
9617
9697
|
}
|
|
9618
9698
|
if (proto.created) {
|
|
9619
9699
|
m.created = new Date(proto.created);
|
|
@@ -9622,7 +9702,7 @@ class Refund {
|
|
|
9622
9702
|
m.updated = new Date(proto.updated);
|
|
9623
9703
|
}
|
|
9624
9704
|
if (proto.referenceType) {
|
|
9625
|
-
m.referenceType = enumStringToValue$
|
|
9705
|
+
m.referenceType = enumStringToValue$b(ReferenceType, proto.referenceType);
|
|
9626
9706
|
}
|
|
9627
9707
|
return m;
|
|
9628
9708
|
}
|
|
@@ -9665,7 +9745,7 @@ class Refund {
|
|
|
9665
9745
|
}
|
|
9666
9746
|
}
|
|
9667
9747
|
|
|
9668
|
-
function enumStringToValue$
|
|
9748
|
+
function enumStringToValue$a(enumRef, value) {
|
|
9669
9749
|
if (typeof value === 'number') {
|
|
9670
9750
|
return value;
|
|
9671
9751
|
}
|
|
@@ -9726,7 +9806,7 @@ class ListSalesCreditNoteRequestListSalesCreditNoteFilters {
|
|
|
9726
9806
|
let m = new ListSalesCreditNoteRequestListSalesCreditNoteFilters();
|
|
9727
9807
|
m = Object.assign(m, proto);
|
|
9728
9808
|
if (proto.statuses) {
|
|
9729
|
-
m.statuses = proto.statuses.map((v) => enumStringToValue$
|
|
9809
|
+
m.statuses = proto.statuses.map((v) => enumStringToValue$a(SalesCreditNoteStatus, v));
|
|
9730
9810
|
}
|
|
9731
9811
|
return m;
|
|
9732
9812
|
}
|
|
@@ -9816,7 +9896,7 @@ class SalesCreditNote {
|
|
|
9816
9896
|
m.dueDate = new Date(proto.dueDate);
|
|
9817
9897
|
}
|
|
9818
9898
|
if (proto.currency) {
|
|
9819
|
-
m.currency = enumStringToValue$
|
|
9899
|
+
m.currency = enumStringToValue$a(Currency, proto.currency);
|
|
9820
9900
|
}
|
|
9821
9901
|
if (proto.total) {
|
|
9822
9902
|
m.total = parseInt(proto.total, 10);
|
|
@@ -9825,7 +9905,7 @@ class SalesCreditNote {
|
|
|
9825
9905
|
m.outstanding = parseInt(proto.outstanding, 10);
|
|
9826
9906
|
}
|
|
9827
9907
|
if (proto.status) {
|
|
9828
|
-
m.status = enumStringToValue$
|
|
9908
|
+
m.status = enumStringToValue$a(SalesCreditNoteStatus, proto.status);
|
|
9829
9909
|
}
|
|
9830
9910
|
return m;
|
|
9831
9911
|
}
|
|
@@ -9874,7 +9954,7 @@ class SalesCreditNote {
|
|
|
9874
9954
|
}
|
|
9875
9955
|
}
|
|
9876
9956
|
|
|
9877
|
-
function enumStringToValue$
|
|
9957
|
+
function enumStringToValue$9(enumRef, value) {
|
|
9878
9958
|
if (typeof value === 'number') {
|
|
9879
9959
|
return value;
|
|
9880
9960
|
}
|
|
@@ -9937,10 +10017,10 @@ class ListSalesInvoiceRequestListSalesInvoiceFilters {
|
|
|
9937
10017
|
let m = new ListSalesInvoiceRequestListSalesInvoiceFilters();
|
|
9938
10018
|
m = Object.assign(m, proto);
|
|
9939
10019
|
if (proto.statuses) {
|
|
9940
|
-
m.statuses = proto.statuses.map((v) => enumStringToValue$
|
|
10020
|
+
m.statuses = proto.statuses.map((v) => enumStringToValue$9(SalesInvoiceStatus, v));
|
|
9941
10021
|
}
|
|
9942
10022
|
if (proto.paymentStatuses) {
|
|
9943
|
-
m.paymentStatuses = proto.paymentStatuses.map((v) => enumStringToValue$
|
|
10023
|
+
m.paymentStatuses = proto.paymentStatuses.map((v) => enumStringToValue$9(PaymentStatuses, v));
|
|
9944
10024
|
}
|
|
9945
10025
|
return m;
|
|
9946
10026
|
}
|
|
@@ -10068,16 +10148,16 @@ class SalesInvoice {
|
|
|
10068
10148
|
m.total = parseInt(proto.total, 10);
|
|
10069
10149
|
}
|
|
10070
10150
|
if (proto.currency) {
|
|
10071
|
-
m.currency = enumStringToValue$
|
|
10151
|
+
m.currency = enumStringToValue$9(Currency, proto.currency);
|
|
10072
10152
|
}
|
|
10073
10153
|
if (proto.status) {
|
|
10074
|
-
m.status = enumStringToValue$
|
|
10154
|
+
m.status = enumStringToValue$9(SalesInvoiceStatus, proto.status);
|
|
10075
10155
|
}
|
|
10076
10156
|
if (proto.outstanding) {
|
|
10077
10157
|
m.outstanding = parseInt(proto.outstanding, 10);
|
|
10078
10158
|
}
|
|
10079
10159
|
if (proto.type) {
|
|
10080
|
-
m.type = enumStringToValue$
|
|
10160
|
+
m.type = enumStringToValue$9(SalesInvoiceType, proto.type);
|
|
10081
10161
|
}
|
|
10082
10162
|
return m;
|
|
10083
10163
|
}
|
|
@@ -10172,7 +10252,7 @@ class SendSalesInvoiceReceiptEmailRequest {
|
|
|
10172
10252
|
}
|
|
10173
10253
|
}
|
|
10174
10254
|
|
|
10175
|
-
function enumStringToValue$
|
|
10255
|
+
function enumStringToValue$8(enumRef, value) {
|
|
10176
10256
|
if (typeof value === 'number') {
|
|
10177
10257
|
return value;
|
|
10178
10258
|
}
|
|
@@ -10189,7 +10269,7 @@ class SubscribeValidation {
|
|
|
10189
10269
|
let m = new SubscribeValidation();
|
|
10190
10270
|
m = Object.assign(m, proto);
|
|
10191
10271
|
if (proto.status) {
|
|
10192
|
-
m.status = enumStringToValue$
|
|
10272
|
+
m.status = enumStringToValue$8(SubscribeValidationStatus, proto.status);
|
|
10193
10273
|
}
|
|
10194
10274
|
return m;
|
|
10195
10275
|
}
|
|
@@ -10202,7 +10282,7 @@ class SubscribeValidation {
|
|
|
10202
10282
|
}
|
|
10203
10283
|
}
|
|
10204
10284
|
|
|
10205
|
-
function enumStringToValue$
|
|
10285
|
+
function enumStringToValue$7(enumRef, value) {
|
|
10206
10286
|
if (typeof value === 'number') {
|
|
10207
10287
|
return value;
|
|
10208
10288
|
}
|
|
@@ -10335,7 +10415,7 @@ class ChangeFrequencyRequest {
|
|
|
10335
10415
|
let m = new ChangeFrequencyRequest();
|
|
10336
10416
|
m = Object.assign(m, proto);
|
|
10337
10417
|
if (proto.frequency) {
|
|
10338
|
-
m.frequency = enumStringToValue$
|
|
10418
|
+
m.frequency = enumStringToValue$7(Frequency, proto.frequency);
|
|
10339
10419
|
}
|
|
10340
10420
|
return m;
|
|
10341
10421
|
}
|
|
@@ -10411,7 +10491,7 @@ class CreateSubscriptionRequest {
|
|
|
10411
10491
|
m.proratedTo = new Date(proto.proratedTo);
|
|
10412
10492
|
}
|
|
10413
10493
|
if (proto.renewalState) {
|
|
10414
|
-
m.renewalState = enumStringToValue$
|
|
10494
|
+
m.renewalState = enumStringToValue$7(RenewalState, proto.renewalState);
|
|
10415
10495
|
}
|
|
10416
10496
|
if (proto.customUnitPrice) {
|
|
10417
10497
|
m.customUnitPrice = parseInt(proto.customUnitPrice, 10);
|
|
@@ -10420,13 +10500,13 @@ class CreateSubscriptionRequest {
|
|
|
10420
10500
|
m.alignWith = AlignmentSubscription.fromProto(proto.alignWith);
|
|
10421
10501
|
}
|
|
10422
10502
|
if (proto.frequency) {
|
|
10423
|
-
m.frequency = enumStringToValue$
|
|
10503
|
+
m.frequency = enumStringToValue$7(Frequency, proto.frequency);
|
|
10424
10504
|
}
|
|
10425
10505
|
if (proto.retailAmount) {
|
|
10426
10506
|
m.retailAmount = parseInt(proto.retailAmount, 10);
|
|
10427
10507
|
}
|
|
10428
10508
|
if (proto.retailFrequency) {
|
|
10429
|
-
m.retailFrequency = enumStringToValue$
|
|
10509
|
+
m.retailFrequency = enumStringToValue$7(Frequency, proto.retailFrequency);
|
|
10430
10510
|
}
|
|
10431
10511
|
return m;
|
|
10432
10512
|
}
|
|
@@ -10627,7 +10707,7 @@ class Subscription {
|
|
|
10627
10707
|
m.billingStart = new Date(proto.billingStart);
|
|
10628
10708
|
}
|
|
10629
10709
|
if (proto.renewalState) {
|
|
10630
|
-
m.renewalState = enumStringToValue$
|
|
10710
|
+
m.renewalState = enumStringToValue$7(RenewalState, proto.renewalState);
|
|
10631
10711
|
}
|
|
10632
10712
|
if (proto.proratedTo) {
|
|
10633
10713
|
m.proratedTo = new Date(proto.proratedTo);
|
|
@@ -10639,13 +10719,13 @@ class Subscription {
|
|
|
10639
10719
|
m.alignWith = AlignmentSubscription.fromProto(proto.alignWith);
|
|
10640
10720
|
}
|
|
10641
10721
|
if (proto.frequency) {
|
|
10642
|
-
m.frequency = enumStringToValue$
|
|
10722
|
+
m.frequency = enumStringToValue$7(Frequency, proto.frequency);
|
|
10643
10723
|
}
|
|
10644
10724
|
if (proto.retailAmount) {
|
|
10645
10725
|
m.retailAmount = parseInt(proto.retailAmount, 10);
|
|
10646
10726
|
}
|
|
10647
10727
|
if (proto.retailFrequency) {
|
|
10648
|
-
m.retailFrequency = enumStringToValue$
|
|
10728
|
+
m.retailFrequency = enumStringToValue$7(Frequency, proto.retailFrequency);
|
|
10649
10729
|
}
|
|
10650
10730
|
return m;
|
|
10651
10731
|
}
|
|
@@ -10707,7 +10787,7 @@ class CanCreateSubscriptionsRequestSubscriptionItem {
|
|
|
10707
10787
|
let m = new CanCreateSubscriptionsRequestSubscriptionItem();
|
|
10708
10788
|
m = Object.assign(m, proto);
|
|
10709
10789
|
if (proto.frequency) {
|
|
10710
|
-
m.frequency = enumStringToValue$
|
|
10790
|
+
m.frequency = enumStringToValue$7(Frequency, proto.frequency);
|
|
10711
10791
|
}
|
|
10712
10792
|
if (proto.quantity) {
|
|
10713
10793
|
m.quantity = parseInt(proto.quantity, 10);
|
|
@@ -10755,7 +10835,7 @@ class ValidateResponse {
|
|
|
10755
10835
|
}
|
|
10756
10836
|
}
|
|
10757
10837
|
|
|
10758
|
-
function enumStringToValue$
|
|
10838
|
+
function enumStringToValue$6(enumRef, value) {
|
|
10759
10839
|
if (typeof value === 'number') {
|
|
10760
10840
|
return value;
|
|
10761
10841
|
}
|
|
@@ -10895,7 +10975,7 @@ class ListContractDocumentsResponse {
|
|
|
10895
10975
|
}
|
|
10896
10976
|
}
|
|
10897
10977
|
|
|
10898
|
-
function enumStringToValue$
|
|
10978
|
+
function enumStringToValue$5(enumRef, value) {
|
|
10899
10979
|
if (typeof value === 'number') {
|
|
10900
10980
|
return value;
|
|
10901
10981
|
}
|
|
@@ -11054,7 +11134,7 @@ class UpsertRetailCustomerConfigurationRequest {
|
|
|
11054
11134
|
}
|
|
11055
11135
|
}
|
|
11056
11136
|
|
|
11057
|
-
function enumStringToValue$
|
|
11137
|
+
function enumStringToValue$4(enumRef, value) {
|
|
11058
11138
|
if (typeof value === 'number') {
|
|
11059
11139
|
return value;
|
|
11060
11140
|
}
|
|
@@ -11168,7 +11248,7 @@ class GetBalanceResponse {
|
|
|
11168
11248
|
}
|
|
11169
11249
|
}
|
|
11170
11250
|
|
|
11171
|
-
function enumStringToValue$
|
|
11251
|
+
function enumStringToValue$3(enumRef, value) {
|
|
11172
11252
|
if (typeof value === 'number') {
|
|
11173
11253
|
return value;
|
|
11174
11254
|
}
|
|
@@ -11468,7 +11548,7 @@ class InvoiceTemplate {
|
|
|
11468
11548
|
m.items = proto.items.map(InvoiceTemplateItem.fromProto);
|
|
11469
11549
|
}
|
|
11470
11550
|
if (proto.currency) {
|
|
11471
|
-
m.currency = enumStringToValue$
|
|
11551
|
+
m.currency = enumStringToValue$3(Currency, proto.currency);
|
|
11472
11552
|
}
|
|
11473
11553
|
if (proto.total) {
|
|
11474
11554
|
m.total = parseInt(proto.total, 10);
|
|
@@ -11870,7 +11950,7 @@ class UpsertInvoiceTemplateResponse {
|
|
|
11870
11950
|
}
|
|
11871
11951
|
}
|
|
11872
11952
|
|
|
11873
|
-
function enumStringToValue$
|
|
11953
|
+
function enumStringToValue$2(enumRef, value) {
|
|
11874
11954
|
if (typeof value === 'number') {
|
|
11875
11955
|
return value;
|
|
11876
11956
|
}
|
|
@@ -11991,10 +12071,7 @@ class RecurringInvoice {
|
|
|
11991
12071
|
m.updated = new Date(proto.updated);
|
|
11992
12072
|
}
|
|
11993
12073
|
if (proto.status) {
|
|
11994
|
-
m.status = enumStringToValue$
|
|
11995
|
-
}
|
|
11996
|
-
if (proto.issuedAt) {
|
|
11997
|
-
m.issuedAt = new Date(proto.issuedAt);
|
|
12074
|
+
m.status = enumStringToValue$2(RecurringInvoiceStatus, proto.status);
|
|
11998
12075
|
}
|
|
11999
12076
|
if (proto.nextIssue) {
|
|
12000
12077
|
m.nextIssue = new Date(proto.nextIssue);
|
|
@@ -12003,13 +12080,16 @@ class RecurringInvoice {
|
|
|
12003
12080
|
m.intervalCount = parseInt(proto.intervalCount, 10);
|
|
12004
12081
|
}
|
|
12005
12082
|
if (proto.interval) {
|
|
12006
|
-
m.interval = enumStringToValue$
|
|
12083
|
+
m.interval = enumStringToValue$2(Interval, proto.interval);
|
|
12084
|
+
}
|
|
12085
|
+
if (proto.repeatOnDayOfMonth) {
|
|
12086
|
+
m.repeatOnDayOfMonth = parseInt(proto.repeatOnDayOfMonth, 10);
|
|
12007
12087
|
}
|
|
12008
12088
|
if (proto.collectionMethod) {
|
|
12009
|
-
m.collectionMethod = enumStringToValue$
|
|
12089
|
+
m.collectionMethod = enumStringToValue$2(CollectionMethod, proto.collectionMethod);
|
|
12010
12090
|
}
|
|
12011
12091
|
if (proto.paymentProcessor) {
|
|
12012
|
-
m.paymentProcessor = enumStringToValue$
|
|
12092
|
+
m.paymentProcessor = enumStringToValue$2(PaymentProcessor, proto.paymentProcessor);
|
|
12013
12093
|
}
|
|
12014
12094
|
if (proto.items) {
|
|
12015
12095
|
m.items = proto.items.map(RecurringInvoiceItem.fromProto);
|
|
@@ -12017,6 +12097,9 @@ class RecurringInvoice {
|
|
|
12017
12097
|
if (proto.totalAmount) {
|
|
12018
12098
|
m.totalAmount = parseInt(proto.totalAmount, 10);
|
|
12019
12099
|
}
|
|
12100
|
+
if (proto.endsAt) {
|
|
12101
|
+
m.endsAt = new Date(proto.endsAt);
|
|
12102
|
+
}
|
|
12020
12103
|
return m;
|
|
12021
12104
|
}
|
|
12022
12105
|
toApiJson() {
|
|
@@ -12036,9 +12119,6 @@ class RecurringInvoice {
|
|
|
12036
12119
|
if (typeof this.status !== 'undefined') {
|
|
12037
12120
|
toReturn['status'] = this.status;
|
|
12038
12121
|
}
|
|
12039
|
-
if (typeof this.issuedAt !== 'undefined' && this.issuedAt !== null) {
|
|
12040
|
-
toReturn['issuedAt'] = 'toApiJson' in this.issuedAt ? this.issuedAt.toApiJson() : this.issuedAt;
|
|
12041
|
-
}
|
|
12042
12122
|
if (typeof this.nextIssue !== 'undefined' && this.nextIssue !== null) {
|
|
12043
12123
|
toReturn['nextIssue'] = 'toApiJson' in this.nextIssue ? this.nextIssue.toApiJson() : this.nextIssue;
|
|
12044
12124
|
}
|
|
@@ -12048,6 +12128,9 @@ class RecurringInvoice {
|
|
|
12048
12128
|
if (typeof this.interval !== 'undefined') {
|
|
12049
12129
|
toReturn['interval'] = this.interval;
|
|
12050
12130
|
}
|
|
12131
|
+
if (typeof this.repeatOnDayOfMonth !== 'undefined') {
|
|
12132
|
+
toReturn['repeatOnDayOfMonth'] = this.repeatOnDayOfMonth;
|
|
12133
|
+
}
|
|
12051
12134
|
if (typeof this.collectionMethod !== 'undefined') {
|
|
12052
12135
|
toReturn['collectionMethod'] = this.collectionMethod;
|
|
12053
12136
|
}
|
|
@@ -12072,6 +12155,9 @@ class RecurringInvoice {
|
|
|
12072
12155
|
if (typeof this.memo !== 'undefined') {
|
|
12073
12156
|
toReturn['memo'] = this.memo;
|
|
12074
12157
|
}
|
|
12158
|
+
if (typeof this.endsAt !== 'undefined' && this.endsAt !== null) {
|
|
12159
|
+
toReturn['endsAt'] = 'toApiJson' in this.endsAt ? this.endsAt.toApiJson() : this.endsAt;
|
|
12160
|
+
}
|
|
12075
12161
|
return toReturn;
|
|
12076
12162
|
}
|
|
12077
12163
|
}
|
|
@@ -12146,9 +12232,6 @@ class RecurringInvoiceLineItem {
|
|
|
12146
12232
|
if (proto.unitPrice) {
|
|
12147
12233
|
m.unitPrice = parseInt(proto.unitPrice, 10);
|
|
12148
12234
|
}
|
|
12149
|
-
if (proto.quantity) {
|
|
12150
|
-
m.quantity = parseInt(proto.quantity, 10);
|
|
12151
|
-
}
|
|
12152
12235
|
return m;
|
|
12153
12236
|
}
|
|
12154
12237
|
toApiJson() {
|
|
@@ -12184,6 +12267,9 @@ class UpdateRecurringInvoiceRequest {
|
|
|
12184
12267
|
if (proto.recurringInvoice) {
|
|
12185
12268
|
m.recurringInvoice = RecurringInvoice.fromProto(proto.recurringInvoice);
|
|
12186
12269
|
}
|
|
12270
|
+
if (proto.updateMask) {
|
|
12271
|
+
m.updateMask = FieldMask.fromProto(proto.updateMask);
|
|
12272
|
+
}
|
|
12187
12273
|
return m;
|
|
12188
12274
|
}
|
|
12189
12275
|
toApiJson() {
|
|
@@ -12191,6 +12277,39 @@ class UpdateRecurringInvoiceRequest {
|
|
|
12191
12277
|
if (typeof this.recurringInvoice !== 'undefined' && this.recurringInvoice !== null) {
|
|
12192
12278
|
toReturn['recurringInvoice'] = 'toApiJson' in this.recurringInvoice ? this.recurringInvoice.toApiJson() : this.recurringInvoice;
|
|
12193
12279
|
}
|
|
12280
|
+
if (typeof this.updateMask !== 'undefined' && this.updateMask !== null) {
|
|
12281
|
+
toReturn['updateMask'] = 'toApiJson' in this.updateMask ? this.updateMask.toApiJson() : this.updateMask;
|
|
12282
|
+
}
|
|
12283
|
+
return toReturn;
|
|
12284
|
+
}
|
|
12285
|
+
}
|
|
12286
|
+
|
|
12287
|
+
function enumStringToValue$1(enumRef, value) {
|
|
12288
|
+
if (typeof value === 'number') {
|
|
12289
|
+
return value;
|
|
12290
|
+
}
|
|
12291
|
+
return enumRef[value];
|
|
12292
|
+
}
|
|
12293
|
+
class Access {
|
|
12294
|
+
constructor(kwargs) {
|
|
12295
|
+
if (!kwargs) {
|
|
12296
|
+
return;
|
|
12297
|
+
}
|
|
12298
|
+
Object.assign(this, kwargs);
|
|
12299
|
+
}
|
|
12300
|
+
static fromProto(proto) {
|
|
12301
|
+
let m = new Access();
|
|
12302
|
+
m = Object.assign(m, proto);
|
|
12303
|
+
return m;
|
|
12304
|
+
}
|
|
12305
|
+
toApiJson() {
|
|
12306
|
+
const toReturn = {};
|
|
12307
|
+
if (typeof this.scope !== 'undefined') {
|
|
12308
|
+
toReturn['scope'] = this.scope;
|
|
12309
|
+
}
|
|
12310
|
+
if (typeof this.public !== 'undefined') {
|
|
12311
|
+
toReturn['public'] = this.public;
|
|
12312
|
+
}
|
|
12194
12313
|
return toReturn;
|
|
12195
12314
|
}
|
|
12196
12315
|
}
|
|
@@ -12508,6 +12627,55 @@ class GetMultiRetailPricingResponse {
|
|
|
12508
12627
|
return toReturn;
|
|
12509
12628
|
}
|
|
12510
12629
|
}
|
|
12630
|
+
class GetMultiWholesaleCostRequest {
|
|
12631
|
+
constructor(kwargs) {
|
|
12632
|
+
if (!kwargs) {
|
|
12633
|
+
return;
|
|
12634
|
+
}
|
|
12635
|
+
Object.assign(this, kwargs);
|
|
12636
|
+
}
|
|
12637
|
+
static fromProto(proto) {
|
|
12638
|
+
let m = new GetMultiWholesaleCostRequest();
|
|
12639
|
+
m = Object.assign(m, proto);
|
|
12640
|
+
if (proto.items) {
|
|
12641
|
+
m.items = proto.items.map(WholesaleCostItemRequest.fromProto);
|
|
12642
|
+
}
|
|
12643
|
+
return m;
|
|
12644
|
+
}
|
|
12645
|
+
toApiJson() {
|
|
12646
|
+
const toReturn = {};
|
|
12647
|
+
if (typeof this.merchantId !== 'undefined') {
|
|
12648
|
+
toReturn['merchantId'] = this.merchantId;
|
|
12649
|
+
}
|
|
12650
|
+
if (typeof this.items !== 'undefined' && this.items !== null) {
|
|
12651
|
+
toReturn['items'] = 'toApiJson' in this.items ? this.items.toApiJson() : this.items;
|
|
12652
|
+
}
|
|
12653
|
+
return toReturn;
|
|
12654
|
+
}
|
|
12655
|
+
}
|
|
12656
|
+
class GetMultiWholesaleCostResponse {
|
|
12657
|
+
constructor(kwargs) {
|
|
12658
|
+
if (!kwargs) {
|
|
12659
|
+
return;
|
|
12660
|
+
}
|
|
12661
|
+
Object.assign(this, kwargs);
|
|
12662
|
+
}
|
|
12663
|
+
static fromProto(proto) {
|
|
12664
|
+
let m = new GetMultiWholesaleCostResponse();
|
|
12665
|
+
m = Object.assign(m, proto);
|
|
12666
|
+
if (proto.costs) {
|
|
12667
|
+
m.costs = proto.costs.map(GetPurchaseCostResponse.fromProto);
|
|
12668
|
+
}
|
|
12669
|
+
return m;
|
|
12670
|
+
}
|
|
12671
|
+
toApiJson() {
|
|
12672
|
+
const toReturn = {};
|
|
12673
|
+
if (typeof this.costs !== 'undefined' && this.costs !== null) {
|
|
12674
|
+
toReturn['costs'] = 'toApiJson' in this.costs ? this.costs.toApiJson() : this.costs;
|
|
12675
|
+
}
|
|
12676
|
+
return toReturn;
|
|
12677
|
+
}
|
|
12678
|
+
}
|
|
12511
12679
|
class GetPurchaseCostRequest {
|
|
12512
12680
|
constructor(kwargs) {
|
|
12513
12681
|
if (!kwargs) {
|
|
@@ -12959,6 +13127,12 @@ class SetWholesaleProductVolumeCommitmentRequest {
|
|
|
12959
13127
|
if (proto.volumeCommitment) {
|
|
12960
13128
|
m.volumeCommitment = parseInt(proto.volumeCommitment, 10);
|
|
12961
13129
|
}
|
|
13130
|
+
if (proto.volumeCommitmentStartsAt) {
|
|
13131
|
+
m.volumeCommitmentStartsAt = new Date(proto.volumeCommitmentStartsAt);
|
|
13132
|
+
}
|
|
13133
|
+
if (proto.volumeCommitmentEndsAt) {
|
|
13134
|
+
m.volumeCommitmentEndsAt = new Date(proto.volumeCommitmentEndsAt);
|
|
13135
|
+
}
|
|
12962
13136
|
return m;
|
|
12963
13137
|
}
|
|
12964
13138
|
toApiJson() {
|
|
@@ -12972,6 +13146,12 @@ class SetWholesaleProductVolumeCommitmentRequest {
|
|
|
12972
13146
|
if (typeof this.volumeCommitment !== 'undefined') {
|
|
12973
13147
|
toReturn['volumeCommitment'] = this.volumeCommitment;
|
|
12974
13148
|
}
|
|
13149
|
+
if (typeof this.volumeCommitmentStartsAt !== 'undefined' && this.volumeCommitmentStartsAt !== null) {
|
|
13150
|
+
toReturn['volumeCommitmentStartsAt'] = 'toApiJson' in this.volumeCommitmentStartsAt ? this.volumeCommitmentStartsAt.toApiJson() : this.volumeCommitmentStartsAt;
|
|
13151
|
+
}
|
|
13152
|
+
if (typeof this.volumeCommitmentEndsAt !== 'undefined' && this.volumeCommitmentEndsAt !== null) {
|
|
13153
|
+
toReturn['volumeCommitmentEndsAt'] = 'toApiJson' in this.volumeCommitmentEndsAt ? this.volumeCommitmentEndsAt.toApiJson() : this.volumeCommitmentEndsAt;
|
|
13154
|
+
}
|
|
12975
13155
|
return toReturn;
|
|
12976
13156
|
}
|
|
12977
13157
|
}
|
|
@@ -13972,6 +14152,11 @@ class PricingApiService {
|
|
|
13972
14152
|
return this.http.post(this._host + "/billing.v1.PricingService/GetPurchaseCost", request.toApiJson(), this.apiOptions())
|
|
13973
14153
|
.pipe(map(resp => GetPurchaseCostResponse.fromProto(resp)));
|
|
13974
14154
|
}
|
|
14155
|
+
getMultiWholesaleCost(r) {
|
|
14156
|
+
const request = (r.toApiJson) ? r : new GetMultiWholesaleCostRequest(r);
|
|
14157
|
+
return this.http.post(this._host + "/billing.v1.PricingService/GetMultiWholesaleCost", request.toApiJson(), this.apiOptions())
|
|
14158
|
+
.pipe(map(resp => GetMultiWholesaleCostResponse.fromProto(resp)));
|
|
14159
|
+
}
|
|
13975
14160
|
upsertWholesale(r) {
|
|
13976
14161
|
const request = (r.toApiJson) ? r : new UpsertWholesalePricingRequest(r);
|
|
13977
14162
|
return this.http.post(this._host + "/billing.v1.PricingService/UpsertWholesale", request.toApiJson(), { ...this.apiOptions(), observe: 'response' });
|
|
@@ -14367,5 +14552,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.0", ngImpor
|
|
|
14367
14552
|
* Generated bundle index. Do not edit.
|
|
14368
14553
|
*/
|
|
14369
14554
|
|
|
14370
|
-
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, 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 };
|
|
14555
|
+
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, 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 };
|
|
14371
14556
|
//# sourceMappingURL=vendasta-billing.mjs.map
|