@vendasta/billing 9.0.0 → 9.3.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/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 +51 -2
- package/esm2020/lib/_internal/objects/index.mjs +4 -3
- package/esm2020/lib/_internal/objects/product-pricing.mjs +33 -1
- package/esm2020/lib/_internal/objects/recurring-invoice.mjs +23 -10
- package/esm2020/lib/_internal/pricing.api.service.mjs +7 -2
- package/fesm2015/vendasta-billing.mjs +274 -146
- package/fesm2015/vendasta-billing.mjs.map +1 -1
- package/fesm2020/vendasta-billing.mjs +274 -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 +8 -1
- package/lib/_internal/interfaces/index.d.ts +3 -2
- package/lib/_internal/interfaces/product-pricing.interface.d.ts +5 -0
- package/lib/_internal/interfaces/recurring-invoice.interface.d.ts +5 -1
- package/lib/_internal/objects/annotations.d.ts +9 -0
- package/lib/_internal/objects/api.d.ts +14 -1
- package/lib/_internal/objects/index.d.ts +3 -2
- package/lib/_internal/objects/product-pricing.d.ts +8 -0
- package/lib/_internal/objects/recurring-invoice.d.ts +5 -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,7 +8027,7 @@ 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);
|
|
@@ -8189,7 +8189,7 @@ class GetPricingPlanProductResponse {
|
|
|
8189
8189
|
m.pricingPlanProduct = PricingPlanProduct.fromProto(proto.pricingPlanProduct);
|
|
8190
8190
|
}
|
|
8191
8191
|
if (proto.pricingPlanDefaultStrategy) {
|
|
8192
|
-
m.pricingPlanDefaultStrategy = enumStringToValue$
|
|
8192
|
+
m.pricingPlanDefaultStrategy = enumStringToValue$f(BillingStrategy, proto.pricingPlanDefaultStrategy);
|
|
8193
8193
|
}
|
|
8194
8194
|
return m;
|
|
8195
8195
|
}
|
|
@@ -8377,7 +8377,7 @@ class PricingPlanProduct {
|
|
|
8377
8377
|
let m = new PricingPlanProduct();
|
|
8378
8378
|
m = Object.assign(m, proto);
|
|
8379
8379
|
if (proto.frequency) {
|
|
8380
|
-
m.frequency = enumStringToValue$
|
|
8380
|
+
m.frequency = enumStringToValue$f(Frequency, proto.frequency);
|
|
8381
8381
|
}
|
|
8382
8382
|
if (proto.pricing) {
|
|
8383
8383
|
m.pricing = Object.keys(proto.pricing).reduce((obj, k) => { obj[k] = PricingPlanProductPricing.fromProto(proto.pricing[k]); return obj; }, {});
|
|
@@ -8392,13 +8392,13 @@ class PricingPlanProduct {
|
|
|
8392
8392
|
m.modified = new Date(proto.modified);
|
|
8393
8393
|
}
|
|
8394
8394
|
if (proto.strategy) {
|
|
8395
|
-
m.strategy = enumStringToValue$
|
|
8395
|
+
m.strategy = enumStringToValue$f(BillingStrategy, proto.strategy);
|
|
8396
8396
|
}
|
|
8397
8397
|
if (proto.volumeCommitment) {
|
|
8398
8398
|
m.volumeCommitment = parseInt(proto.volumeCommitment, 10);
|
|
8399
8399
|
}
|
|
8400
8400
|
if (proto.pricingType) {
|
|
8401
|
-
m.pricingType = enumStringToValue$
|
|
8401
|
+
m.pricingType = enumStringToValue$f(ProductPricingType, proto.pricingType);
|
|
8402
8402
|
}
|
|
8403
8403
|
return m;
|
|
8404
8404
|
}
|
|
@@ -8448,7 +8448,7 @@ class UpdatePricingPlanProductRequest {
|
|
|
8448
8448
|
let m = new UpdatePricingPlanProductRequest();
|
|
8449
8449
|
m = Object.assign(m, proto);
|
|
8450
8450
|
if (proto.frequency) {
|
|
8451
|
-
m.frequency = enumStringToValue$
|
|
8451
|
+
m.frequency = enumStringToValue$f(Frequency, proto.frequency);
|
|
8452
8452
|
}
|
|
8453
8453
|
if (proto.pricing) {
|
|
8454
8454
|
m.pricing = Object.keys(proto.pricing).reduce((obj, k) => { obj[k] = PricingPlanProductPricing.fromProto(proto.pricing[k]); return obj; }, {});
|
|
@@ -8460,7 +8460,7 @@ class UpdatePricingPlanProductRequest {
|
|
|
8460
8460
|
m.fieldMask = FieldMask.fromProto(proto.fieldMask);
|
|
8461
8461
|
}
|
|
8462
8462
|
if (proto.strategy) {
|
|
8463
|
-
m.strategy = enumStringToValue$
|
|
8463
|
+
m.strategy = enumStringToValue$f(BillingStrategy, proto.strategy);
|
|
8464
8464
|
}
|
|
8465
8465
|
if (proto.volumeCommitment) {
|
|
8466
8466
|
m.volumeCommitment = parseInt(proto.volumeCommitment, 10);
|
|
@@ -8530,7 +8530,7 @@ class UpsertWholesalePricingRequest {
|
|
|
8530
8530
|
m.termCommitment = Commitment.fromProto(proto.termCommitment);
|
|
8531
8531
|
}
|
|
8532
8532
|
if (proto.strategy) {
|
|
8533
|
-
m.strategy = enumStringToValue$
|
|
8533
|
+
m.strategy = enumStringToValue$f(BillingStrategy, proto.strategy);
|
|
8534
8534
|
}
|
|
8535
8535
|
if (proto.volumeCommitment) {
|
|
8536
8536
|
m.volumeCommitment = parseInt(proto.volumeCommitment, 10);
|
|
@@ -8561,7 +8561,7 @@ class UpsertWholesalePricingRequest {
|
|
|
8561
8561
|
}
|
|
8562
8562
|
}
|
|
8563
8563
|
|
|
8564
|
-
function enumStringToValue$
|
|
8564
|
+
function enumStringToValue$e(enumRef, value) {
|
|
8565
8565
|
if (typeof value === 'number') {
|
|
8566
8566
|
return value;
|
|
8567
8567
|
}
|
|
@@ -8578,7 +8578,7 @@ class CreateProductRequest {
|
|
|
8578
8578
|
let m = new CreateProductRequest();
|
|
8579
8579
|
m = Object.assign(m, proto);
|
|
8580
8580
|
if (proto.productType) {
|
|
8581
|
-
m.productType = enumStringToValue$
|
|
8581
|
+
m.productType = enumStringToValue$e(ProductType, proto.productType);
|
|
8582
8582
|
}
|
|
8583
8583
|
return m;
|
|
8584
8584
|
}
|
|
@@ -8679,7 +8679,7 @@ class ListProductsRequestListProductsFilters {
|
|
|
8679
8679
|
let m = new ListProductsRequestListProductsFilters();
|
|
8680
8680
|
m = Object.assign(m, proto);
|
|
8681
8681
|
if (proto.productType) {
|
|
8682
|
-
m.productType = proto.productType.map((v) => enumStringToValue$
|
|
8682
|
+
m.productType = proto.productType.map((v) => enumStringToValue$e(ProductType, v));
|
|
8683
8683
|
}
|
|
8684
8684
|
return m;
|
|
8685
8685
|
}
|
|
@@ -8775,7 +8775,7 @@ class Product {
|
|
|
8775
8775
|
let m = new Product();
|
|
8776
8776
|
m = Object.assign(m, proto);
|
|
8777
8777
|
if (proto.productType) {
|
|
8778
|
-
m.productType = enumStringToValue$
|
|
8778
|
+
m.productType = enumStringToValue$e(ProductType, proto.productType);
|
|
8779
8779
|
}
|
|
8780
8780
|
return m;
|
|
8781
8781
|
}
|
|
@@ -8839,7 +8839,7 @@ class UpdateProductRequest {
|
|
|
8839
8839
|
let m = new UpdateProductRequest();
|
|
8840
8840
|
m = Object.assign(m, proto);
|
|
8841
8841
|
if (proto.productType) {
|
|
8842
|
-
m.productType = enumStringToValue$
|
|
8842
|
+
m.productType = enumStringToValue$e(ProductType, proto.productType);
|
|
8843
8843
|
}
|
|
8844
8844
|
return m;
|
|
8845
8845
|
}
|
|
@@ -8861,7 +8861,7 @@ class UpdateProductRequest {
|
|
|
8861
8861
|
}
|
|
8862
8862
|
}
|
|
8863
8863
|
|
|
8864
|
-
function enumStringToValue$
|
|
8864
|
+
function enumStringToValue$d(enumRef, value) {
|
|
8865
8865
|
if (typeof value === 'number') {
|
|
8866
8866
|
return value;
|
|
8867
8867
|
}
|
|
@@ -8904,16 +8904,16 @@ class ProductPricing {
|
|
|
8904
8904
|
let m = new ProductPricing();
|
|
8905
8905
|
m = Object.assign(m, proto);
|
|
8906
8906
|
if (proto.strategy) {
|
|
8907
|
-
m.strategy = enumStringToValue$
|
|
8907
|
+
m.strategy = enumStringToValue$d(BillingStrategy, proto.strategy);
|
|
8908
8908
|
}
|
|
8909
8909
|
if (proto.pricingType) {
|
|
8910
|
-
m.pricingType = enumStringToValue$
|
|
8910
|
+
m.pricingType = enumStringToValue$d(ProductPricingType, proto.pricingType);
|
|
8911
8911
|
}
|
|
8912
8912
|
if (proto.currency) {
|
|
8913
|
-
m.currency = enumStringToValue$
|
|
8913
|
+
m.currency = enumStringToValue$d(Currency, proto.currency);
|
|
8914
8914
|
}
|
|
8915
8915
|
if (proto.frequency) {
|
|
8916
|
-
m.frequency = enumStringToValue$
|
|
8916
|
+
m.frequency = enumStringToValue$d(Frequency, proto.frequency);
|
|
8917
8917
|
}
|
|
8918
8918
|
if (proto.pricingRules) {
|
|
8919
8919
|
m.pricingRules = proto.pricingRules.map(ProductPricingRule.fromProto);
|
|
@@ -8964,8 +8964,40 @@ class ProductPricing {
|
|
|
8964
8964
|
return toReturn;
|
|
8965
8965
|
}
|
|
8966
8966
|
}
|
|
8967
|
+
class WholesaleCostItemRequest {
|
|
8968
|
+
constructor(kwargs) {
|
|
8969
|
+
if (!kwargs) {
|
|
8970
|
+
return;
|
|
8971
|
+
}
|
|
8972
|
+
Object.assign(this, kwargs);
|
|
8973
|
+
}
|
|
8974
|
+
static fromProto(proto) {
|
|
8975
|
+
let m = new WholesaleCostItemRequest();
|
|
8976
|
+
m = Object.assign(m, proto);
|
|
8977
|
+
if (proto.quantity) {
|
|
8978
|
+
m.quantity = parseInt(proto.quantity, 10);
|
|
8979
|
+
}
|
|
8980
|
+
if (proto.frequency) {
|
|
8981
|
+
m.frequency = enumStringToValue$d(Frequency, proto.frequency);
|
|
8982
|
+
}
|
|
8983
|
+
return m;
|
|
8984
|
+
}
|
|
8985
|
+
toApiJson() {
|
|
8986
|
+
const toReturn = {};
|
|
8987
|
+
if (typeof this.sku !== 'undefined') {
|
|
8988
|
+
toReturn['sku'] = this.sku;
|
|
8989
|
+
}
|
|
8990
|
+
if (typeof this.quantity !== 'undefined') {
|
|
8991
|
+
toReturn['quantity'] = this.quantity;
|
|
8992
|
+
}
|
|
8993
|
+
if (typeof this.frequency !== 'undefined') {
|
|
8994
|
+
toReturn['frequency'] = this.frequency;
|
|
8995
|
+
}
|
|
8996
|
+
return toReturn;
|
|
8997
|
+
}
|
|
8998
|
+
}
|
|
8967
8999
|
|
|
8968
|
-
function enumStringToValue$
|
|
9000
|
+
function enumStringToValue$c(enumRef, value) {
|
|
8969
9001
|
if (typeof value === 'number') {
|
|
8970
9002
|
return value;
|
|
8971
9003
|
}
|
|
@@ -8985,7 +9017,7 @@ class AppliedCredit {
|
|
|
8985
9017
|
m.appliedAmount = parseInt(proto.appliedAmount, 10);
|
|
8986
9018
|
}
|
|
8987
9019
|
if (proto.referenceType) {
|
|
8988
|
-
m.referenceType = enumStringToValue$
|
|
9020
|
+
m.referenceType = enumStringToValue$c(CreditType, proto.referenceType);
|
|
8989
9021
|
}
|
|
8990
9022
|
return m;
|
|
8991
9023
|
}
|
|
@@ -9014,7 +9046,7 @@ class ListPurchaseRequestListPurchaseBillingStrategyFilter {
|
|
|
9014
9046
|
let m = new ListPurchaseRequestListPurchaseBillingStrategyFilter();
|
|
9015
9047
|
m = Object.assign(m, proto);
|
|
9016
9048
|
if (proto.billingStrategy) {
|
|
9017
|
-
m.billingStrategy = proto.billingStrategy.map((v) => enumStringToValue$
|
|
9049
|
+
m.billingStrategy = proto.billingStrategy.map((v) => enumStringToValue$c(BillingStrategy, v));
|
|
9018
9050
|
}
|
|
9019
9051
|
return m;
|
|
9020
9052
|
}
|
|
@@ -9046,13 +9078,13 @@ class ListPurchaseRequestListPurchaseFilters {
|
|
|
9046
9078
|
m.billingStrategyFilter = ListPurchaseRequestListPurchaseBillingStrategyFilter.fromProto(proto.billingStrategyFilter);
|
|
9047
9079
|
}
|
|
9048
9080
|
if (proto.state) {
|
|
9049
|
-
m.state = enumStringToValue$
|
|
9081
|
+
m.state = enumStringToValue$c(ListPurchaseRequestState, proto.state);
|
|
9050
9082
|
}
|
|
9051
9083
|
if (proto.minPrice) {
|
|
9052
9084
|
m.minPrice = parseInt(proto.minPrice, 10);
|
|
9053
9085
|
}
|
|
9054
9086
|
if (proto.status) {
|
|
9055
|
-
m.status = enumStringToValue$
|
|
9087
|
+
m.status = enumStringToValue$c(PurchaseStatus, proto.status);
|
|
9056
9088
|
}
|
|
9057
9089
|
return m;
|
|
9058
9090
|
}
|
|
@@ -9169,7 +9201,7 @@ class ListPurchaseItemsResponse {
|
|
|
9169
9201
|
m.pagingMetadata = PagedResponseMetadata.fromProto(proto.pagingMetadata);
|
|
9170
9202
|
}
|
|
9171
9203
|
if (proto.currency) {
|
|
9172
|
-
m.currency = enumStringToValue$
|
|
9204
|
+
m.currency = enumStringToValue$c(Currency, proto.currency);
|
|
9173
9205
|
}
|
|
9174
9206
|
return m;
|
|
9175
9207
|
}
|
|
@@ -9262,13 +9294,13 @@ class Purchase {
|
|
|
9262
9294
|
m.total = parseInt(proto.total, 10);
|
|
9263
9295
|
}
|
|
9264
9296
|
if (proto.currency) {
|
|
9265
|
-
m.currency = enumStringToValue$
|
|
9297
|
+
m.currency = enumStringToValue$c(Currency, proto.currency);
|
|
9266
9298
|
}
|
|
9267
9299
|
if (proto.items) {
|
|
9268
9300
|
m.items = proto.items.map(PurchaseItem.fromProto);
|
|
9269
9301
|
}
|
|
9270
9302
|
if (proto.billingStrategy) {
|
|
9271
|
-
m.billingStrategy = enumStringToValue$
|
|
9303
|
+
m.billingStrategy = enumStringToValue$c(BillingStrategy, proto.billingStrategy);
|
|
9272
9304
|
}
|
|
9273
9305
|
if (proto.dunningAttempt) {
|
|
9274
9306
|
m.dunningAttempt = parseInt(proto.dunningAttempt, 10);
|
|
@@ -9277,7 +9309,7 @@ class Purchase {
|
|
|
9277
9309
|
m.voided = new Date(proto.voided);
|
|
9278
9310
|
}
|
|
9279
9311
|
if (proto.status) {
|
|
9280
|
-
m.status = enumStringToValue$
|
|
9312
|
+
m.status = enumStringToValue$c(PurchaseStatus, proto.status);
|
|
9281
9313
|
}
|
|
9282
9314
|
if (proto.creditAmount) {
|
|
9283
9315
|
m.creditAmount = parseInt(proto.creditAmount, 10);
|
|
@@ -9485,7 +9517,7 @@ class VoidPurchaseRequest {
|
|
|
9485
9517
|
}
|
|
9486
9518
|
}
|
|
9487
9519
|
|
|
9488
|
-
function enumStringToValue$
|
|
9520
|
+
function enumStringToValue$b(enumRef, value) {
|
|
9489
9521
|
if (typeof value === 'number') {
|
|
9490
9522
|
return value;
|
|
9491
9523
|
}
|
|
@@ -9505,10 +9537,10 @@ class CreateRefundRequest {
|
|
|
9505
9537
|
m.amount = parseInt(proto.amount, 10);
|
|
9506
9538
|
}
|
|
9507
9539
|
if (proto.reason) {
|
|
9508
|
-
m.reason = enumStringToValue$
|
|
9540
|
+
m.reason = enumStringToValue$b(RefundReason, proto.reason);
|
|
9509
9541
|
}
|
|
9510
9542
|
if (proto.referenceType) {
|
|
9511
|
-
m.referenceType = enumStringToValue$
|
|
9543
|
+
m.referenceType = enumStringToValue$b(ReferenceType, proto.referenceType);
|
|
9512
9544
|
}
|
|
9513
9545
|
return m;
|
|
9514
9546
|
}
|
|
@@ -9610,10 +9642,10 @@ class Refund {
|
|
|
9610
9642
|
m.amount = parseInt(proto.amount, 10);
|
|
9611
9643
|
}
|
|
9612
9644
|
if (proto.reason) {
|
|
9613
|
-
m.reason = enumStringToValue$
|
|
9645
|
+
m.reason = enumStringToValue$b(RefundReason, proto.reason);
|
|
9614
9646
|
}
|
|
9615
9647
|
if (proto.status) {
|
|
9616
|
-
m.status = enumStringToValue$
|
|
9648
|
+
m.status = enumStringToValue$b(RefundStatus, proto.status);
|
|
9617
9649
|
}
|
|
9618
9650
|
if (proto.created) {
|
|
9619
9651
|
m.created = new Date(proto.created);
|
|
@@ -9622,7 +9654,7 @@ class Refund {
|
|
|
9622
9654
|
m.updated = new Date(proto.updated);
|
|
9623
9655
|
}
|
|
9624
9656
|
if (proto.referenceType) {
|
|
9625
|
-
m.referenceType = enumStringToValue$
|
|
9657
|
+
m.referenceType = enumStringToValue$b(ReferenceType, proto.referenceType);
|
|
9626
9658
|
}
|
|
9627
9659
|
return m;
|
|
9628
9660
|
}
|
|
@@ -9665,7 +9697,7 @@ class Refund {
|
|
|
9665
9697
|
}
|
|
9666
9698
|
}
|
|
9667
9699
|
|
|
9668
|
-
function enumStringToValue$
|
|
9700
|
+
function enumStringToValue$a(enumRef, value) {
|
|
9669
9701
|
if (typeof value === 'number') {
|
|
9670
9702
|
return value;
|
|
9671
9703
|
}
|
|
@@ -9726,7 +9758,7 @@ class ListSalesCreditNoteRequestListSalesCreditNoteFilters {
|
|
|
9726
9758
|
let m = new ListSalesCreditNoteRequestListSalesCreditNoteFilters();
|
|
9727
9759
|
m = Object.assign(m, proto);
|
|
9728
9760
|
if (proto.statuses) {
|
|
9729
|
-
m.statuses = proto.statuses.map((v) => enumStringToValue$
|
|
9761
|
+
m.statuses = proto.statuses.map((v) => enumStringToValue$a(SalesCreditNoteStatus, v));
|
|
9730
9762
|
}
|
|
9731
9763
|
return m;
|
|
9732
9764
|
}
|
|
@@ -9816,7 +9848,7 @@ class SalesCreditNote {
|
|
|
9816
9848
|
m.dueDate = new Date(proto.dueDate);
|
|
9817
9849
|
}
|
|
9818
9850
|
if (proto.currency) {
|
|
9819
|
-
m.currency = enumStringToValue$
|
|
9851
|
+
m.currency = enumStringToValue$a(Currency, proto.currency);
|
|
9820
9852
|
}
|
|
9821
9853
|
if (proto.total) {
|
|
9822
9854
|
m.total = parseInt(proto.total, 10);
|
|
@@ -9825,7 +9857,7 @@ class SalesCreditNote {
|
|
|
9825
9857
|
m.outstanding = parseInt(proto.outstanding, 10);
|
|
9826
9858
|
}
|
|
9827
9859
|
if (proto.status) {
|
|
9828
|
-
m.status = enumStringToValue$
|
|
9860
|
+
m.status = enumStringToValue$a(SalesCreditNoteStatus, proto.status);
|
|
9829
9861
|
}
|
|
9830
9862
|
return m;
|
|
9831
9863
|
}
|
|
@@ -9874,7 +9906,7 @@ class SalesCreditNote {
|
|
|
9874
9906
|
}
|
|
9875
9907
|
}
|
|
9876
9908
|
|
|
9877
|
-
function enumStringToValue$
|
|
9909
|
+
function enumStringToValue$9(enumRef, value) {
|
|
9878
9910
|
if (typeof value === 'number') {
|
|
9879
9911
|
return value;
|
|
9880
9912
|
}
|
|
@@ -9937,10 +9969,10 @@ class ListSalesInvoiceRequestListSalesInvoiceFilters {
|
|
|
9937
9969
|
let m = new ListSalesInvoiceRequestListSalesInvoiceFilters();
|
|
9938
9970
|
m = Object.assign(m, proto);
|
|
9939
9971
|
if (proto.statuses) {
|
|
9940
|
-
m.statuses = proto.statuses.map((v) => enumStringToValue$
|
|
9972
|
+
m.statuses = proto.statuses.map((v) => enumStringToValue$9(SalesInvoiceStatus, v));
|
|
9941
9973
|
}
|
|
9942
9974
|
if (proto.paymentStatuses) {
|
|
9943
|
-
m.paymentStatuses = proto.paymentStatuses.map((v) => enumStringToValue$
|
|
9975
|
+
m.paymentStatuses = proto.paymentStatuses.map((v) => enumStringToValue$9(PaymentStatuses, v));
|
|
9944
9976
|
}
|
|
9945
9977
|
return m;
|
|
9946
9978
|
}
|
|
@@ -10068,16 +10100,16 @@ class SalesInvoice {
|
|
|
10068
10100
|
m.total = parseInt(proto.total, 10);
|
|
10069
10101
|
}
|
|
10070
10102
|
if (proto.currency) {
|
|
10071
|
-
m.currency = enumStringToValue$
|
|
10103
|
+
m.currency = enumStringToValue$9(Currency, proto.currency);
|
|
10072
10104
|
}
|
|
10073
10105
|
if (proto.status) {
|
|
10074
|
-
m.status = enumStringToValue$
|
|
10106
|
+
m.status = enumStringToValue$9(SalesInvoiceStatus, proto.status);
|
|
10075
10107
|
}
|
|
10076
10108
|
if (proto.outstanding) {
|
|
10077
10109
|
m.outstanding = parseInt(proto.outstanding, 10);
|
|
10078
10110
|
}
|
|
10079
10111
|
if (proto.type) {
|
|
10080
|
-
m.type = enumStringToValue$
|
|
10112
|
+
m.type = enumStringToValue$9(SalesInvoiceType, proto.type);
|
|
10081
10113
|
}
|
|
10082
10114
|
return m;
|
|
10083
10115
|
}
|
|
@@ -10172,7 +10204,7 @@ class SendSalesInvoiceReceiptEmailRequest {
|
|
|
10172
10204
|
}
|
|
10173
10205
|
}
|
|
10174
10206
|
|
|
10175
|
-
function enumStringToValue$
|
|
10207
|
+
function enumStringToValue$8(enumRef, value) {
|
|
10176
10208
|
if (typeof value === 'number') {
|
|
10177
10209
|
return value;
|
|
10178
10210
|
}
|
|
@@ -10189,7 +10221,7 @@ class SubscribeValidation {
|
|
|
10189
10221
|
let m = new SubscribeValidation();
|
|
10190
10222
|
m = Object.assign(m, proto);
|
|
10191
10223
|
if (proto.status) {
|
|
10192
|
-
m.status = enumStringToValue$
|
|
10224
|
+
m.status = enumStringToValue$8(SubscribeValidationStatus, proto.status);
|
|
10193
10225
|
}
|
|
10194
10226
|
return m;
|
|
10195
10227
|
}
|
|
@@ -10202,7 +10234,7 @@ class SubscribeValidation {
|
|
|
10202
10234
|
}
|
|
10203
10235
|
}
|
|
10204
10236
|
|
|
10205
|
-
function enumStringToValue$
|
|
10237
|
+
function enumStringToValue$7(enumRef, value) {
|
|
10206
10238
|
if (typeof value === 'number') {
|
|
10207
10239
|
return value;
|
|
10208
10240
|
}
|
|
@@ -10335,7 +10367,7 @@ class ChangeFrequencyRequest {
|
|
|
10335
10367
|
let m = new ChangeFrequencyRequest();
|
|
10336
10368
|
m = Object.assign(m, proto);
|
|
10337
10369
|
if (proto.frequency) {
|
|
10338
|
-
m.frequency = enumStringToValue$
|
|
10370
|
+
m.frequency = enumStringToValue$7(Frequency, proto.frequency);
|
|
10339
10371
|
}
|
|
10340
10372
|
return m;
|
|
10341
10373
|
}
|
|
@@ -10411,7 +10443,7 @@ class CreateSubscriptionRequest {
|
|
|
10411
10443
|
m.proratedTo = new Date(proto.proratedTo);
|
|
10412
10444
|
}
|
|
10413
10445
|
if (proto.renewalState) {
|
|
10414
|
-
m.renewalState = enumStringToValue$
|
|
10446
|
+
m.renewalState = enumStringToValue$7(RenewalState, proto.renewalState);
|
|
10415
10447
|
}
|
|
10416
10448
|
if (proto.customUnitPrice) {
|
|
10417
10449
|
m.customUnitPrice = parseInt(proto.customUnitPrice, 10);
|
|
@@ -10420,13 +10452,13 @@ class CreateSubscriptionRequest {
|
|
|
10420
10452
|
m.alignWith = AlignmentSubscription.fromProto(proto.alignWith);
|
|
10421
10453
|
}
|
|
10422
10454
|
if (proto.frequency) {
|
|
10423
|
-
m.frequency = enumStringToValue$
|
|
10455
|
+
m.frequency = enumStringToValue$7(Frequency, proto.frequency);
|
|
10424
10456
|
}
|
|
10425
10457
|
if (proto.retailAmount) {
|
|
10426
10458
|
m.retailAmount = parseInt(proto.retailAmount, 10);
|
|
10427
10459
|
}
|
|
10428
10460
|
if (proto.retailFrequency) {
|
|
10429
|
-
m.retailFrequency = enumStringToValue$
|
|
10461
|
+
m.retailFrequency = enumStringToValue$7(Frequency, proto.retailFrequency);
|
|
10430
10462
|
}
|
|
10431
10463
|
return m;
|
|
10432
10464
|
}
|
|
@@ -10627,7 +10659,7 @@ class Subscription {
|
|
|
10627
10659
|
m.billingStart = new Date(proto.billingStart);
|
|
10628
10660
|
}
|
|
10629
10661
|
if (proto.renewalState) {
|
|
10630
|
-
m.renewalState = enumStringToValue$
|
|
10662
|
+
m.renewalState = enumStringToValue$7(RenewalState, proto.renewalState);
|
|
10631
10663
|
}
|
|
10632
10664
|
if (proto.proratedTo) {
|
|
10633
10665
|
m.proratedTo = new Date(proto.proratedTo);
|
|
@@ -10639,13 +10671,13 @@ class Subscription {
|
|
|
10639
10671
|
m.alignWith = AlignmentSubscription.fromProto(proto.alignWith);
|
|
10640
10672
|
}
|
|
10641
10673
|
if (proto.frequency) {
|
|
10642
|
-
m.frequency = enumStringToValue$
|
|
10674
|
+
m.frequency = enumStringToValue$7(Frequency, proto.frequency);
|
|
10643
10675
|
}
|
|
10644
10676
|
if (proto.retailAmount) {
|
|
10645
10677
|
m.retailAmount = parseInt(proto.retailAmount, 10);
|
|
10646
10678
|
}
|
|
10647
10679
|
if (proto.retailFrequency) {
|
|
10648
|
-
m.retailFrequency = enumStringToValue$
|
|
10680
|
+
m.retailFrequency = enumStringToValue$7(Frequency, proto.retailFrequency);
|
|
10649
10681
|
}
|
|
10650
10682
|
return m;
|
|
10651
10683
|
}
|
|
@@ -10707,7 +10739,7 @@ class CanCreateSubscriptionsRequestSubscriptionItem {
|
|
|
10707
10739
|
let m = new CanCreateSubscriptionsRequestSubscriptionItem();
|
|
10708
10740
|
m = Object.assign(m, proto);
|
|
10709
10741
|
if (proto.frequency) {
|
|
10710
|
-
m.frequency = enumStringToValue$
|
|
10742
|
+
m.frequency = enumStringToValue$7(Frequency, proto.frequency);
|
|
10711
10743
|
}
|
|
10712
10744
|
if (proto.quantity) {
|
|
10713
10745
|
m.quantity = parseInt(proto.quantity, 10);
|
|
@@ -10755,7 +10787,7 @@ class ValidateResponse {
|
|
|
10755
10787
|
}
|
|
10756
10788
|
}
|
|
10757
10789
|
|
|
10758
|
-
function enumStringToValue$
|
|
10790
|
+
function enumStringToValue$6(enumRef, value) {
|
|
10759
10791
|
if (typeof value === 'number') {
|
|
10760
10792
|
return value;
|
|
10761
10793
|
}
|
|
@@ -10895,7 +10927,7 @@ class ListContractDocumentsResponse {
|
|
|
10895
10927
|
}
|
|
10896
10928
|
}
|
|
10897
10929
|
|
|
10898
|
-
function enumStringToValue$
|
|
10930
|
+
function enumStringToValue$5(enumRef, value) {
|
|
10899
10931
|
if (typeof value === 'number') {
|
|
10900
10932
|
return value;
|
|
10901
10933
|
}
|
|
@@ -11054,7 +11086,7 @@ class UpsertRetailCustomerConfigurationRequest {
|
|
|
11054
11086
|
}
|
|
11055
11087
|
}
|
|
11056
11088
|
|
|
11057
|
-
function enumStringToValue$
|
|
11089
|
+
function enumStringToValue$4(enumRef, value) {
|
|
11058
11090
|
if (typeof value === 'number') {
|
|
11059
11091
|
return value;
|
|
11060
11092
|
}
|
|
@@ -11168,7 +11200,7 @@ class GetBalanceResponse {
|
|
|
11168
11200
|
}
|
|
11169
11201
|
}
|
|
11170
11202
|
|
|
11171
|
-
function enumStringToValue$
|
|
11203
|
+
function enumStringToValue$3(enumRef, value) {
|
|
11172
11204
|
if (typeof value === 'number') {
|
|
11173
11205
|
return value;
|
|
11174
11206
|
}
|
|
@@ -11468,7 +11500,7 @@ class InvoiceTemplate {
|
|
|
11468
11500
|
m.items = proto.items.map(InvoiceTemplateItem.fromProto);
|
|
11469
11501
|
}
|
|
11470
11502
|
if (proto.currency) {
|
|
11471
|
-
m.currency = enumStringToValue$
|
|
11503
|
+
m.currency = enumStringToValue$3(Currency, proto.currency);
|
|
11472
11504
|
}
|
|
11473
11505
|
if (proto.total) {
|
|
11474
11506
|
m.total = parseInt(proto.total, 10);
|
|
@@ -11870,7 +11902,7 @@ class UpsertInvoiceTemplateResponse {
|
|
|
11870
11902
|
}
|
|
11871
11903
|
}
|
|
11872
11904
|
|
|
11873
|
-
function enumStringToValue$
|
|
11905
|
+
function enumStringToValue$2(enumRef, value) {
|
|
11874
11906
|
if (typeof value === 'number') {
|
|
11875
11907
|
return value;
|
|
11876
11908
|
}
|
|
@@ -11991,10 +12023,7 @@ class RecurringInvoice {
|
|
|
11991
12023
|
m.updated = new Date(proto.updated);
|
|
11992
12024
|
}
|
|
11993
12025
|
if (proto.status) {
|
|
11994
|
-
m.status = enumStringToValue$
|
|
11995
|
-
}
|
|
11996
|
-
if (proto.issuedAt) {
|
|
11997
|
-
m.issuedAt = new Date(proto.issuedAt);
|
|
12026
|
+
m.status = enumStringToValue$2(RecurringInvoiceStatus, proto.status);
|
|
11998
12027
|
}
|
|
11999
12028
|
if (proto.nextIssue) {
|
|
12000
12029
|
m.nextIssue = new Date(proto.nextIssue);
|
|
@@ -12003,13 +12032,16 @@ class RecurringInvoice {
|
|
|
12003
12032
|
m.intervalCount = parseInt(proto.intervalCount, 10);
|
|
12004
12033
|
}
|
|
12005
12034
|
if (proto.interval) {
|
|
12006
|
-
m.interval = enumStringToValue$
|
|
12035
|
+
m.interval = enumStringToValue$2(Interval, proto.interval);
|
|
12036
|
+
}
|
|
12037
|
+
if (proto.repeatOnDayOfMonth) {
|
|
12038
|
+
m.repeatOnDayOfMonth = parseInt(proto.repeatOnDayOfMonth, 10);
|
|
12007
12039
|
}
|
|
12008
12040
|
if (proto.collectionMethod) {
|
|
12009
|
-
m.collectionMethod = enumStringToValue$
|
|
12041
|
+
m.collectionMethod = enumStringToValue$2(CollectionMethod, proto.collectionMethod);
|
|
12010
12042
|
}
|
|
12011
12043
|
if (proto.paymentProcessor) {
|
|
12012
|
-
m.paymentProcessor = enumStringToValue$
|
|
12044
|
+
m.paymentProcessor = enumStringToValue$2(PaymentProcessor, proto.paymentProcessor);
|
|
12013
12045
|
}
|
|
12014
12046
|
if (proto.items) {
|
|
12015
12047
|
m.items = proto.items.map(RecurringInvoiceItem.fromProto);
|
|
@@ -12017,6 +12049,9 @@ class RecurringInvoice {
|
|
|
12017
12049
|
if (proto.totalAmount) {
|
|
12018
12050
|
m.totalAmount = parseInt(proto.totalAmount, 10);
|
|
12019
12051
|
}
|
|
12052
|
+
if (proto.endsAt) {
|
|
12053
|
+
m.endsAt = new Date(proto.endsAt);
|
|
12054
|
+
}
|
|
12020
12055
|
return m;
|
|
12021
12056
|
}
|
|
12022
12057
|
toApiJson() {
|
|
@@ -12036,9 +12071,6 @@ class RecurringInvoice {
|
|
|
12036
12071
|
if (typeof this.status !== 'undefined') {
|
|
12037
12072
|
toReturn['status'] = this.status;
|
|
12038
12073
|
}
|
|
12039
|
-
if (typeof this.issuedAt !== 'undefined' && this.issuedAt !== null) {
|
|
12040
|
-
toReturn['issuedAt'] = 'toApiJson' in this.issuedAt ? this.issuedAt.toApiJson() : this.issuedAt;
|
|
12041
|
-
}
|
|
12042
12074
|
if (typeof this.nextIssue !== 'undefined' && this.nextIssue !== null) {
|
|
12043
12075
|
toReturn['nextIssue'] = 'toApiJson' in this.nextIssue ? this.nextIssue.toApiJson() : this.nextIssue;
|
|
12044
12076
|
}
|
|
@@ -12048,6 +12080,9 @@ class RecurringInvoice {
|
|
|
12048
12080
|
if (typeof this.interval !== 'undefined') {
|
|
12049
12081
|
toReturn['interval'] = this.interval;
|
|
12050
12082
|
}
|
|
12083
|
+
if (typeof this.repeatOnDayOfMonth !== 'undefined') {
|
|
12084
|
+
toReturn['repeatOnDayOfMonth'] = this.repeatOnDayOfMonth;
|
|
12085
|
+
}
|
|
12051
12086
|
if (typeof this.collectionMethod !== 'undefined') {
|
|
12052
12087
|
toReturn['collectionMethod'] = this.collectionMethod;
|
|
12053
12088
|
}
|
|
@@ -12069,6 +12104,12 @@ class RecurringInvoice {
|
|
|
12069
12104
|
if (typeof this.currencyCode !== 'undefined') {
|
|
12070
12105
|
toReturn['currencyCode'] = this.currencyCode;
|
|
12071
12106
|
}
|
|
12107
|
+
if (typeof this.memo !== 'undefined') {
|
|
12108
|
+
toReturn['memo'] = this.memo;
|
|
12109
|
+
}
|
|
12110
|
+
if (typeof this.endsAt !== 'undefined' && this.endsAt !== null) {
|
|
12111
|
+
toReturn['endsAt'] = 'toApiJson' in this.endsAt ? this.endsAt.toApiJson() : this.endsAt;
|
|
12112
|
+
}
|
|
12072
12113
|
return toReturn;
|
|
12073
12114
|
}
|
|
12074
12115
|
}
|
|
@@ -12143,9 +12184,6 @@ class RecurringInvoiceLineItem {
|
|
|
12143
12184
|
if (proto.unitPrice) {
|
|
12144
12185
|
m.unitPrice = parseInt(proto.unitPrice, 10);
|
|
12145
12186
|
}
|
|
12146
|
-
if (proto.quantity) {
|
|
12147
|
-
m.quantity = parseInt(proto.quantity, 10);
|
|
12148
|
-
}
|
|
12149
12187
|
return m;
|
|
12150
12188
|
}
|
|
12151
12189
|
toApiJson() {
|
|
@@ -12181,6 +12219,9 @@ class UpdateRecurringInvoiceRequest {
|
|
|
12181
12219
|
if (proto.recurringInvoice) {
|
|
12182
12220
|
m.recurringInvoice = RecurringInvoice.fromProto(proto.recurringInvoice);
|
|
12183
12221
|
}
|
|
12222
|
+
if (proto.updateMask) {
|
|
12223
|
+
m.updateMask = FieldMask.fromProto(proto.updateMask);
|
|
12224
|
+
}
|
|
12184
12225
|
return m;
|
|
12185
12226
|
}
|
|
12186
12227
|
toApiJson() {
|
|
@@ -12188,6 +12229,39 @@ class UpdateRecurringInvoiceRequest {
|
|
|
12188
12229
|
if (typeof this.recurringInvoice !== 'undefined' && this.recurringInvoice !== null) {
|
|
12189
12230
|
toReturn['recurringInvoice'] = 'toApiJson' in this.recurringInvoice ? this.recurringInvoice.toApiJson() : this.recurringInvoice;
|
|
12190
12231
|
}
|
|
12232
|
+
if (typeof this.updateMask !== 'undefined' && this.updateMask !== null) {
|
|
12233
|
+
toReturn['updateMask'] = 'toApiJson' in this.updateMask ? this.updateMask.toApiJson() : this.updateMask;
|
|
12234
|
+
}
|
|
12235
|
+
return toReturn;
|
|
12236
|
+
}
|
|
12237
|
+
}
|
|
12238
|
+
|
|
12239
|
+
function enumStringToValue$1(enumRef, value) {
|
|
12240
|
+
if (typeof value === 'number') {
|
|
12241
|
+
return value;
|
|
12242
|
+
}
|
|
12243
|
+
return enumRef[value];
|
|
12244
|
+
}
|
|
12245
|
+
class Access {
|
|
12246
|
+
constructor(kwargs) {
|
|
12247
|
+
if (!kwargs) {
|
|
12248
|
+
return;
|
|
12249
|
+
}
|
|
12250
|
+
Object.assign(this, kwargs);
|
|
12251
|
+
}
|
|
12252
|
+
static fromProto(proto) {
|
|
12253
|
+
let m = new Access();
|
|
12254
|
+
m = Object.assign(m, proto);
|
|
12255
|
+
return m;
|
|
12256
|
+
}
|
|
12257
|
+
toApiJson() {
|
|
12258
|
+
const toReturn = {};
|
|
12259
|
+
if (typeof this.scope !== 'undefined') {
|
|
12260
|
+
toReturn['scope'] = this.scope;
|
|
12261
|
+
}
|
|
12262
|
+
if (typeof this.public !== 'undefined') {
|
|
12263
|
+
toReturn['public'] = this.public;
|
|
12264
|
+
}
|
|
12191
12265
|
return toReturn;
|
|
12192
12266
|
}
|
|
12193
12267
|
}
|
|
@@ -12505,6 +12579,55 @@ class GetMultiRetailPricingResponse {
|
|
|
12505
12579
|
return toReturn;
|
|
12506
12580
|
}
|
|
12507
12581
|
}
|
|
12582
|
+
class GetMultiWholesaleCostRequest {
|
|
12583
|
+
constructor(kwargs) {
|
|
12584
|
+
if (!kwargs) {
|
|
12585
|
+
return;
|
|
12586
|
+
}
|
|
12587
|
+
Object.assign(this, kwargs);
|
|
12588
|
+
}
|
|
12589
|
+
static fromProto(proto) {
|
|
12590
|
+
let m = new GetMultiWholesaleCostRequest();
|
|
12591
|
+
m = Object.assign(m, proto);
|
|
12592
|
+
if (proto.items) {
|
|
12593
|
+
m.items = proto.items.map(WholesaleCostItemRequest.fromProto);
|
|
12594
|
+
}
|
|
12595
|
+
return m;
|
|
12596
|
+
}
|
|
12597
|
+
toApiJson() {
|
|
12598
|
+
const toReturn = {};
|
|
12599
|
+
if (typeof this.merchantId !== 'undefined') {
|
|
12600
|
+
toReturn['merchantId'] = this.merchantId;
|
|
12601
|
+
}
|
|
12602
|
+
if (typeof this.items !== 'undefined' && this.items !== null) {
|
|
12603
|
+
toReturn['items'] = 'toApiJson' in this.items ? this.items.toApiJson() : this.items;
|
|
12604
|
+
}
|
|
12605
|
+
return toReturn;
|
|
12606
|
+
}
|
|
12607
|
+
}
|
|
12608
|
+
class GetMultiWholesaleCostResponse {
|
|
12609
|
+
constructor(kwargs) {
|
|
12610
|
+
if (!kwargs) {
|
|
12611
|
+
return;
|
|
12612
|
+
}
|
|
12613
|
+
Object.assign(this, kwargs);
|
|
12614
|
+
}
|
|
12615
|
+
static fromProto(proto) {
|
|
12616
|
+
let m = new GetMultiWholesaleCostResponse();
|
|
12617
|
+
m = Object.assign(m, proto);
|
|
12618
|
+
if (proto.costs) {
|
|
12619
|
+
m.costs = proto.costs.map(GetPurchaseCostResponse.fromProto);
|
|
12620
|
+
}
|
|
12621
|
+
return m;
|
|
12622
|
+
}
|
|
12623
|
+
toApiJson() {
|
|
12624
|
+
const toReturn = {};
|
|
12625
|
+
if (typeof this.costs !== 'undefined' && this.costs !== null) {
|
|
12626
|
+
toReturn['costs'] = 'toApiJson' in this.costs ? this.costs.toApiJson() : this.costs;
|
|
12627
|
+
}
|
|
12628
|
+
return toReturn;
|
|
12629
|
+
}
|
|
12630
|
+
}
|
|
12508
12631
|
class GetPurchaseCostRequest {
|
|
12509
12632
|
constructor(kwargs) {
|
|
12510
12633
|
if (!kwargs) {
|
|
@@ -13970,6 +14093,11 @@ class PricingApiService {
|
|
|
13970
14093
|
return this.http.post(this._host + "/billing.v1.PricingService/GetPurchaseCost", request.toApiJson(), this.apiOptions())
|
|
13971
14094
|
.pipe(map(resp => GetPurchaseCostResponse.fromProto(resp)));
|
|
13972
14095
|
}
|
|
14096
|
+
getMultiWholesaleCost(r) {
|
|
14097
|
+
const request = (r.toApiJson) ? r : new GetMultiWholesaleCostRequest(r);
|
|
14098
|
+
return this.http.post(this._host + "/billing.v1.PricingService/GetMultiWholesaleCost", request.toApiJson(), this.apiOptions())
|
|
14099
|
+
.pipe(map(resp => GetMultiWholesaleCostResponse.fromProto(resp)));
|
|
14100
|
+
}
|
|
13973
14101
|
upsertWholesale(r) {
|
|
13974
14102
|
const request = (r.toApiJson) ? r : new UpsertWholesalePricingRequest(r);
|
|
13975
14103
|
return this.http.post(this._host + "/billing.v1.PricingService/UpsertWholesale", request.toApiJson(), Object.assign(Object.assign({}, this.apiOptions()), { observe: 'response' }));
|
|
@@ -14365,5 +14493,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.0", ngImpor
|
|
|
14365
14493
|
* Generated bundle index. Do not edit.
|
|
14366
14494
|
*/
|
|
14367
14495
|
|
|
14368
|
-
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 };
|
|
14496
|
+
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 };
|
|
14369
14497
|
//# sourceMappingURL=vendasta-billing.mjs.map
|