@vendasta/billing 14.52.0 → 14.53.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/esm2022/lib/_internal/enums/index.mjs +2 -2
- package/esm2022/lib/_internal/interfaces/billable-item.interface.mjs +1 -1
- package/esm2022/lib/_internal/interfaces/index.mjs +1 -1
- package/esm2022/lib/_internal/interfaces/invoice.interface.mjs +1 -1
- package/esm2022/lib/_internal/objects/billable-item.mjs +7 -1
- package/esm2022/lib/_internal/objects/index.mjs +3 -3
- package/esm2022/lib/_internal/objects/invoice.mjs +45 -1
- package/fesm2022/vendasta-billing.mjs +289 -239
- package/fesm2022/vendasta-billing.mjs.map +1 -1
- package/lib/_internal/enums/index.d.ts +1 -1
- package/lib/_internal/interfaces/billable-item.interface.d.ts +1 -0
- package/lib/_internal/interfaces/index.d.ts +2 -2
- package/lib/_internal/interfaces/invoice.interface.d.ts +8 -0
- package/lib/_internal/objects/billable-item.d.ts +1 -0
- package/lib/_internal/objects/index.d.ts +2 -2
- package/lib/_internal/objects/invoice.d.ts +11 -0
- package/package.json +1 -1
|
@@ -137,6 +137,20 @@ var RenewalState;
|
|
|
137
137
|
RenewalState[RenewalState["RENEWAL_STATE_DELAYED"] = 1] = "RENEWAL_STATE_DELAYED";
|
|
138
138
|
})(RenewalState || (RenewalState = {}));
|
|
139
139
|
|
|
140
|
+
// *********************************
|
|
141
|
+
// Code generated by sdkgen
|
|
142
|
+
// DO NOT EDIT!.
|
|
143
|
+
//
|
|
144
|
+
// Enums.
|
|
145
|
+
// *********************************
|
|
146
|
+
var DisplayOption;
|
|
147
|
+
(function (DisplayOption) {
|
|
148
|
+
DisplayOption[DisplayOption["DISPLAY_OPTION_INVALID"] = 0] = "DISPLAY_OPTION_INVALID";
|
|
149
|
+
DisplayOption[DisplayOption["SHOW_CONTENT_SHOW_PRICES"] = 1] = "SHOW_CONTENT_SHOW_PRICES";
|
|
150
|
+
DisplayOption[DisplayOption["SHOW_CONTENT_HIDE_PRICES"] = 2] = "SHOW_CONTENT_HIDE_PRICES";
|
|
151
|
+
DisplayOption[DisplayOption["HIDE_CONTENT_HIDE_PRICES"] = 3] = "HIDE_CONTENT_HIDE_PRICES";
|
|
152
|
+
})(DisplayOption || (DisplayOption = {}));
|
|
153
|
+
|
|
140
154
|
// *********************************
|
|
141
155
|
// Code generated by sdkgen
|
|
142
156
|
// DO NOT EDIT!.
|
|
@@ -300,20 +314,6 @@ var RecurringInvoiceStatus;
|
|
|
300
314
|
RecurringInvoiceStatus[RecurringInvoiceStatus["RECURRING_INVOICE_STATUS_ARCHIVED"] = 3] = "RECURRING_INVOICE_STATUS_ARCHIVED";
|
|
301
315
|
})(RecurringInvoiceStatus || (RecurringInvoiceStatus = {}));
|
|
302
316
|
|
|
303
|
-
// *********************************
|
|
304
|
-
// Code generated by sdkgen
|
|
305
|
-
// DO NOT EDIT!.
|
|
306
|
-
//
|
|
307
|
-
// Enums.
|
|
308
|
-
// *********************************
|
|
309
|
-
var DisplayOption;
|
|
310
|
-
(function (DisplayOption) {
|
|
311
|
-
DisplayOption[DisplayOption["DISPLAY_OPTION_INVALID"] = 0] = "DISPLAY_OPTION_INVALID";
|
|
312
|
-
DisplayOption[DisplayOption["SHOW_CONTENT_SHOW_PRICES"] = 1] = "SHOW_CONTENT_SHOW_PRICES";
|
|
313
|
-
DisplayOption[DisplayOption["SHOW_CONTENT_HIDE_PRICES"] = 2] = "SHOW_CONTENT_HIDE_PRICES";
|
|
314
|
-
DisplayOption[DisplayOption["HIDE_CONTENT_HIDE_PRICES"] = 3] = "HIDE_CONTENT_HIDE_PRICES";
|
|
315
|
-
})(DisplayOption || (DisplayOption = {}));
|
|
316
|
-
|
|
317
317
|
// *********************************
|
|
318
318
|
// Code generated by sdkgen
|
|
319
319
|
// DO NOT EDIT!.
|
|
@@ -2129,6 +2129,180 @@ function enumStringToValue$E(enumRef, value) {
|
|
|
2129
2129
|
}
|
|
2130
2130
|
return enumRef[value];
|
|
2131
2131
|
}
|
|
2132
|
+
class CreateRetailSubscriptionGroupRequest {
|
|
2133
|
+
static fromProto(proto) {
|
|
2134
|
+
let m = new CreateRetailSubscriptionGroupRequest();
|
|
2135
|
+
m = Object.assign(m, proto);
|
|
2136
|
+
if (proto.retailSubscriptionGroup) {
|
|
2137
|
+
m.retailSubscriptionGroup = RetailSubscriptionGroup.fromProto(proto.retailSubscriptionGroup);
|
|
2138
|
+
}
|
|
2139
|
+
return m;
|
|
2140
|
+
}
|
|
2141
|
+
constructor(kwargs) {
|
|
2142
|
+
if (!kwargs) {
|
|
2143
|
+
return;
|
|
2144
|
+
}
|
|
2145
|
+
Object.assign(this, kwargs);
|
|
2146
|
+
}
|
|
2147
|
+
toApiJson() {
|
|
2148
|
+
const toReturn = {};
|
|
2149
|
+
if (typeof this.retailSubscriptionGroup !== 'undefined' && this.retailSubscriptionGroup !== null) {
|
|
2150
|
+
toReturn['retailSubscriptionGroup'] = 'toApiJson' in this.retailSubscriptionGroup ? this.retailSubscriptionGroup.toApiJson() : this.retailSubscriptionGroup;
|
|
2151
|
+
}
|
|
2152
|
+
return toReturn;
|
|
2153
|
+
}
|
|
2154
|
+
}
|
|
2155
|
+
class CreateRetailSubscriptionGroupResponse {
|
|
2156
|
+
static fromProto(proto) {
|
|
2157
|
+
let m = new CreateRetailSubscriptionGroupResponse();
|
|
2158
|
+
m = Object.assign(m, proto);
|
|
2159
|
+
return m;
|
|
2160
|
+
}
|
|
2161
|
+
constructor(kwargs) {
|
|
2162
|
+
if (!kwargs) {
|
|
2163
|
+
return;
|
|
2164
|
+
}
|
|
2165
|
+
Object.assign(this, kwargs);
|
|
2166
|
+
}
|
|
2167
|
+
toApiJson() {
|
|
2168
|
+
const toReturn = {};
|
|
2169
|
+
if (typeof this.id !== 'undefined') {
|
|
2170
|
+
toReturn['id'] = this.id;
|
|
2171
|
+
}
|
|
2172
|
+
return toReturn;
|
|
2173
|
+
}
|
|
2174
|
+
}
|
|
2175
|
+
class GetMultiRetailSubscriptionGroupRequest {
|
|
2176
|
+
static fromProto(proto) {
|
|
2177
|
+
let m = new GetMultiRetailSubscriptionGroupRequest();
|
|
2178
|
+
m = Object.assign(m, proto);
|
|
2179
|
+
return m;
|
|
2180
|
+
}
|
|
2181
|
+
constructor(kwargs) {
|
|
2182
|
+
if (!kwargs) {
|
|
2183
|
+
return;
|
|
2184
|
+
}
|
|
2185
|
+
Object.assign(this, kwargs);
|
|
2186
|
+
}
|
|
2187
|
+
toApiJson() {
|
|
2188
|
+
const toReturn = {};
|
|
2189
|
+
if (typeof this.ids !== 'undefined') {
|
|
2190
|
+
toReturn['ids'] = this.ids;
|
|
2191
|
+
}
|
|
2192
|
+
return toReturn;
|
|
2193
|
+
}
|
|
2194
|
+
}
|
|
2195
|
+
class GetMultiRetailSubscriptionGroupResponse {
|
|
2196
|
+
static fromProto(proto) {
|
|
2197
|
+
let m = new GetMultiRetailSubscriptionGroupResponse();
|
|
2198
|
+
m = Object.assign(m, proto);
|
|
2199
|
+
if (proto.retailSubscriptionGroups) {
|
|
2200
|
+
m.retailSubscriptionGroups = proto.retailSubscriptionGroups.map(RetailSubscriptionGroup.fromProto);
|
|
2201
|
+
}
|
|
2202
|
+
return m;
|
|
2203
|
+
}
|
|
2204
|
+
constructor(kwargs) {
|
|
2205
|
+
if (!kwargs) {
|
|
2206
|
+
return;
|
|
2207
|
+
}
|
|
2208
|
+
Object.assign(this, kwargs);
|
|
2209
|
+
}
|
|
2210
|
+
toApiJson() {
|
|
2211
|
+
const toReturn = {};
|
|
2212
|
+
if (typeof this.retailSubscriptionGroups !== 'undefined' && this.retailSubscriptionGroups !== null) {
|
|
2213
|
+
toReturn['retailSubscriptionGroups'] = 'toApiJson' in this.retailSubscriptionGroups ? this.retailSubscriptionGroups.toApiJson() : this.retailSubscriptionGroups;
|
|
2214
|
+
}
|
|
2215
|
+
return toReturn;
|
|
2216
|
+
}
|
|
2217
|
+
}
|
|
2218
|
+
class RetailSubscriptionGroup {
|
|
2219
|
+
static fromProto(proto) {
|
|
2220
|
+
let m = new RetailSubscriptionGroup();
|
|
2221
|
+
m = Object.assign(m, proto);
|
|
2222
|
+
if (proto.displayOption) {
|
|
2223
|
+
m.displayOption = enumStringToValue$E(DisplayOption, proto.displayOption);
|
|
2224
|
+
}
|
|
2225
|
+
return m;
|
|
2226
|
+
}
|
|
2227
|
+
constructor(kwargs) {
|
|
2228
|
+
if (!kwargs) {
|
|
2229
|
+
return;
|
|
2230
|
+
}
|
|
2231
|
+
Object.assign(this, kwargs);
|
|
2232
|
+
}
|
|
2233
|
+
toApiJson() {
|
|
2234
|
+
const toReturn = {};
|
|
2235
|
+
if (typeof this.id !== 'undefined') {
|
|
2236
|
+
toReturn['id'] = this.id;
|
|
2237
|
+
}
|
|
2238
|
+
if (typeof this.name !== 'undefined') {
|
|
2239
|
+
toReturn['name'] = this.name;
|
|
2240
|
+
}
|
|
2241
|
+
if (typeof this.displayOption !== 'undefined') {
|
|
2242
|
+
toReturn['displayOption'] = this.displayOption;
|
|
2243
|
+
}
|
|
2244
|
+
return toReturn;
|
|
2245
|
+
}
|
|
2246
|
+
}
|
|
2247
|
+
class UpdateRetailSubscriptionGroupRequest {
|
|
2248
|
+
static fromProto(proto) {
|
|
2249
|
+
let m = new UpdateRetailSubscriptionGroupRequest();
|
|
2250
|
+
m = Object.assign(m, proto);
|
|
2251
|
+
if (proto.retailSubscriptionGroup) {
|
|
2252
|
+
m.retailSubscriptionGroup = RetailSubscriptionGroup.fromProto(proto.retailSubscriptionGroup);
|
|
2253
|
+
}
|
|
2254
|
+
if (proto.fieldMask) {
|
|
2255
|
+
m.fieldMask = FieldMask.fromProto(proto.fieldMask);
|
|
2256
|
+
}
|
|
2257
|
+
return m;
|
|
2258
|
+
}
|
|
2259
|
+
constructor(kwargs) {
|
|
2260
|
+
if (!kwargs) {
|
|
2261
|
+
return;
|
|
2262
|
+
}
|
|
2263
|
+
Object.assign(this, kwargs);
|
|
2264
|
+
}
|
|
2265
|
+
toApiJson() {
|
|
2266
|
+
const toReturn = {};
|
|
2267
|
+
if (typeof this.retailSubscriptionGroup !== 'undefined' && this.retailSubscriptionGroup !== null) {
|
|
2268
|
+
toReturn['retailSubscriptionGroup'] = 'toApiJson' in this.retailSubscriptionGroup ? this.retailSubscriptionGroup.toApiJson() : this.retailSubscriptionGroup;
|
|
2269
|
+
}
|
|
2270
|
+
if (typeof this.fieldMask !== 'undefined' && this.fieldMask !== null) {
|
|
2271
|
+
toReturn['fieldMask'] = 'toApiJson' in this.fieldMask ? this.fieldMask.toApiJson() : this.fieldMask;
|
|
2272
|
+
}
|
|
2273
|
+
return toReturn;
|
|
2274
|
+
}
|
|
2275
|
+
}
|
|
2276
|
+
class UpdateRetailSubscriptionGroupResponse {
|
|
2277
|
+
static fromProto(proto) {
|
|
2278
|
+
let m = new UpdateRetailSubscriptionGroupResponse();
|
|
2279
|
+
m = Object.assign(m, proto);
|
|
2280
|
+
if (proto.retailSubscriptionGroup) {
|
|
2281
|
+
m.retailSubscriptionGroup = RetailSubscriptionGroup.fromProto(proto.retailSubscriptionGroup);
|
|
2282
|
+
}
|
|
2283
|
+
return m;
|
|
2284
|
+
}
|
|
2285
|
+
constructor(kwargs) {
|
|
2286
|
+
if (!kwargs) {
|
|
2287
|
+
return;
|
|
2288
|
+
}
|
|
2289
|
+
Object.assign(this, kwargs);
|
|
2290
|
+
}
|
|
2291
|
+
toApiJson() {
|
|
2292
|
+
const toReturn = {};
|
|
2293
|
+
if (typeof this.retailSubscriptionGroup !== 'undefined' && this.retailSubscriptionGroup !== null) {
|
|
2294
|
+
toReturn['retailSubscriptionGroup'] = 'toApiJson' in this.retailSubscriptionGroup ? this.retailSubscriptionGroup.toApiJson() : this.retailSubscriptionGroup;
|
|
2295
|
+
}
|
|
2296
|
+
return toReturn;
|
|
2297
|
+
}
|
|
2298
|
+
}
|
|
2299
|
+
|
|
2300
|
+
function enumStringToValue$D(enumRef, value) {
|
|
2301
|
+
if (typeof value === 'number') {
|
|
2302
|
+
return value;
|
|
2303
|
+
}
|
|
2304
|
+
return enumRef[value];
|
|
2305
|
+
}
|
|
2132
2306
|
class BillItemRequest {
|
|
2133
2307
|
static fromProto(proto) {
|
|
2134
2308
|
let m = new BillItemRequest();
|
|
@@ -2233,7 +2407,7 @@ class BillableItem {
|
|
|
2233
2407
|
m.updated = new Date(proto.updated);
|
|
2234
2408
|
}
|
|
2235
2409
|
if (proto.frequency) {
|
|
2236
|
-
m.frequency = enumStringToValue$
|
|
2410
|
+
m.frequency = enumStringToValue$D(Frequency, proto.frequency);
|
|
2237
2411
|
}
|
|
2238
2412
|
if (proto.nextRenewal) {
|
|
2239
2413
|
m.nextRenewal = new Date(proto.nextRenewal);
|
|
@@ -2245,7 +2419,7 @@ class BillableItem {
|
|
|
2245
2419
|
m.customUnitPrice = parseInt(proto.customUnitPrice, 10);
|
|
2246
2420
|
}
|
|
2247
2421
|
if (proto.retailFrequency) {
|
|
2248
|
-
m.retailFrequency = enumStringToValue$
|
|
2422
|
+
m.retailFrequency = enumStringToValue$D(Frequency, proto.retailFrequency);
|
|
2249
2423
|
}
|
|
2250
2424
|
if (proto.nextRetailRenewal) {
|
|
2251
2425
|
m.nextRetailRenewal = new Date(proto.nextRetailRenewal);
|
|
@@ -2254,7 +2428,7 @@ class BillableItem {
|
|
|
2254
2428
|
m.retailUnitPrice = parseInt(proto.retailUnitPrice, 10);
|
|
2255
2429
|
}
|
|
2256
2430
|
if (proto.status) {
|
|
2257
|
-
m.status = enumStringToValue$
|
|
2431
|
+
m.status = enumStringToValue$D(SubscriptionStatus, proto.status);
|
|
2258
2432
|
}
|
|
2259
2433
|
if (proto.price) {
|
|
2260
2434
|
m.price = ProductPricing.fromProto(proto.price);
|
|
@@ -2263,10 +2437,10 @@ class BillableItem {
|
|
|
2263
2437
|
m.deleted = new Date(proto.deleted);
|
|
2264
2438
|
}
|
|
2265
2439
|
if (proto.source) {
|
|
2266
|
-
m.source = enumStringToValue$
|
|
2440
|
+
m.source = enumStringToValue$D(Source, proto.source);
|
|
2267
2441
|
}
|
|
2268
2442
|
if (proto.consumer) {
|
|
2269
|
-
m.consumer = enumStringToValue$
|
|
2443
|
+
m.consumer = enumStringToValue$D(Consumer, proto.consumer);
|
|
2270
2444
|
}
|
|
2271
2445
|
if (proto.billingCycleAnchor) {
|
|
2272
2446
|
m.billingCycleAnchor = new Date(proto.billingCycleAnchor);
|
|
@@ -2557,7 +2731,7 @@ class ExportSubscriptionsRequest {
|
|
|
2557
2731
|
m.filters = ListSubscriptionsRequestFilters.fromProto(proto.filters);
|
|
2558
2732
|
}
|
|
2559
2733
|
if (proto.consumer) {
|
|
2560
|
-
m.consumer = enumStringToValue$
|
|
2734
|
+
m.consumer = enumStringToValue$D(Consumer, proto.consumer);
|
|
2561
2735
|
}
|
|
2562
2736
|
return m;
|
|
2563
2737
|
}
|
|
@@ -2609,7 +2783,7 @@ class ListSubscriptionsRequestFilters {
|
|
|
2609
2783
|
let m = new ListSubscriptionsRequestFilters();
|
|
2610
2784
|
m = Object.assign(m, proto);
|
|
2611
2785
|
if (proto.status) {
|
|
2612
|
-
m.status = enumStringToValue$
|
|
2786
|
+
m.status = enumStringToValue$D(SubscriptionStatus, proto.status);
|
|
2613
2787
|
}
|
|
2614
2788
|
if (proto.expiredDateGte) {
|
|
2615
2789
|
m.expiredDateGte = new Date(proto.expiredDateGte);
|
|
@@ -2618,7 +2792,7 @@ class ListSubscriptionsRequestFilters {
|
|
|
2618
2792
|
m.expiredDateLte = new Date(proto.expiredDateLte);
|
|
2619
2793
|
}
|
|
2620
2794
|
if (proto.frequencies) {
|
|
2621
|
-
m.frequencies = proto.frequencies.map((v) => enumStringToValue$
|
|
2795
|
+
m.frequencies = proto.frequencies.map((v) => enumStringToValue$D(Frequency, v));
|
|
2622
2796
|
}
|
|
2623
2797
|
return m;
|
|
2624
2798
|
}
|
|
@@ -2960,6 +3134,9 @@ class BillableItemRetailSubscriptionGroup {
|
|
|
2960
3134
|
static fromProto(proto) {
|
|
2961
3135
|
let m = new BillableItemRetailSubscriptionGroup();
|
|
2962
3136
|
m = Object.assign(m, proto);
|
|
3137
|
+
if (proto.displayOption) {
|
|
3138
|
+
m.displayOption = enumStringToValue$D(DisplayOption, proto.displayOption);
|
|
3139
|
+
}
|
|
2963
3140
|
return m;
|
|
2964
3141
|
}
|
|
2965
3142
|
constructor(kwargs) {
|
|
@@ -2976,6 +3153,9 @@ class BillableItemRetailSubscriptionGroup {
|
|
|
2976
3153
|
if (typeof this.name !== 'undefined') {
|
|
2977
3154
|
toReturn['name'] = this.name;
|
|
2978
3155
|
}
|
|
3156
|
+
if (typeof this.displayOption !== 'undefined') {
|
|
3157
|
+
toReturn['displayOption'] = this.displayOption;
|
|
3158
|
+
}
|
|
2979
3159
|
return toReturn;
|
|
2980
3160
|
}
|
|
2981
3161
|
}
|
|
@@ -3110,7 +3290,7 @@ class UpdateSubscriptionResponse {
|
|
|
3110
3290
|
}
|
|
3111
3291
|
}
|
|
3112
3292
|
|
|
3113
|
-
function enumStringToValue$
|
|
3293
|
+
function enumStringToValue$C(enumRef, value) {
|
|
3114
3294
|
if (typeof value === 'number') {
|
|
3115
3295
|
return value;
|
|
3116
3296
|
}
|
|
@@ -3121,7 +3301,7 @@ class AppliedDiscount {
|
|
|
3121
3301
|
let m = new AppliedDiscount();
|
|
3122
3302
|
m = Object.assign(m, proto);
|
|
3123
3303
|
if (proto.type) {
|
|
3124
|
-
m.type = enumStringToValue$
|
|
3304
|
+
m.type = enumStringToValue$C(DiscountType, proto.type);
|
|
3125
3305
|
}
|
|
3126
3306
|
if (proto.value) {
|
|
3127
3307
|
m.value = parseInt(proto.value, 10);
|
|
@@ -3158,7 +3338,7 @@ class AppliedDiscount {
|
|
|
3158
3338
|
}
|
|
3159
3339
|
}
|
|
3160
3340
|
|
|
3161
|
-
function enumStringToValue$
|
|
3341
|
+
function enumStringToValue$B(enumRef, value) {
|
|
3162
3342
|
if (typeof value === 'number') {
|
|
3163
3343
|
return value;
|
|
3164
3344
|
}
|
|
@@ -3216,7 +3396,7 @@ class BundleItem {
|
|
|
3216
3396
|
let m = new BundleItem();
|
|
3217
3397
|
m = Object.assign(m, proto);
|
|
3218
3398
|
if (proto.discountType) {
|
|
3219
|
-
m.discountType = enumStringToValue$
|
|
3399
|
+
m.discountType = enumStringToValue$B(DiscountType, proto.discountType);
|
|
3220
3400
|
}
|
|
3221
3401
|
if (proto.discountAmount) {
|
|
3222
3402
|
m.discountAmount = parseInt(proto.discountAmount, 10);
|
|
@@ -3474,7 +3654,7 @@ class BundlePricingPriceAndFrequency {
|
|
|
3474
3654
|
let m = new BundlePricingPriceAndFrequency();
|
|
3475
3655
|
m = Object.assign(m, proto);
|
|
3476
3656
|
if (proto.frequency) {
|
|
3477
|
-
m.frequency = enumStringToValue$
|
|
3657
|
+
m.frequency = enumStringToValue$B(Frequency, proto.frequency);
|
|
3478
3658
|
}
|
|
3479
3659
|
if (proto.effectivePrice) {
|
|
3480
3660
|
m.effectivePrice = parseInt(proto.effectivePrice, 10);
|
|
@@ -3546,7 +3726,7 @@ class UpsertBundleRequest {
|
|
|
3546
3726
|
}
|
|
3547
3727
|
}
|
|
3548
3728
|
|
|
3549
|
-
function enumStringToValue$
|
|
3729
|
+
function enumStringToValue$A(enumRef, value) {
|
|
3550
3730
|
if (typeof value === 'number') {
|
|
3551
3731
|
return value;
|
|
3552
3732
|
}
|
|
@@ -3563,7 +3743,7 @@ class Contract {
|
|
|
3563
3743
|
m.created = new Date(proto.created);
|
|
3564
3744
|
}
|
|
3565
3745
|
if (proto.currency) {
|
|
3566
|
-
m.currency = enumStringToValue$
|
|
3746
|
+
m.currency = enumStringToValue$A(Currency, proto.currency);
|
|
3567
3747
|
}
|
|
3568
3748
|
if (proto.signed) {
|
|
3569
3749
|
m.signed = new Date(proto.signed);
|
|
@@ -3584,7 +3764,7 @@ class Contract {
|
|
|
3584
3764
|
m.end = new Date(proto.end);
|
|
3585
3765
|
}
|
|
3586
3766
|
if (proto.subscriptionUpdateStatus) {
|
|
3587
|
-
m.subscriptionUpdateStatus = enumStringToValue$
|
|
3767
|
+
m.subscriptionUpdateStatus = enumStringToValue$A(ContractSubscriptionStatus, proto.subscriptionUpdateStatus);
|
|
3588
3768
|
}
|
|
3589
3769
|
return m;
|
|
3590
3770
|
}
|
|
@@ -3784,7 +3964,7 @@ class GetMerchantWholesaleCurrencyResponse {
|
|
|
3784
3964
|
let m = new GetMerchantWholesaleCurrencyResponse();
|
|
3785
3965
|
m = Object.assign(m, proto);
|
|
3786
3966
|
if (proto.currency) {
|
|
3787
|
-
m.currency = enumStringToValue$
|
|
3967
|
+
m.currency = enumStringToValue$A(Currency, proto.currency);
|
|
3788
3968
|
}
|
|
3789
3969
|
return m;
|
|
3790
3970
|
}
|
|
@@ -4039,7 +4219,7 @@ class UpdateContractSubscriptionRequest {
|
|
|
4039
4219
|
let m = new UpdateContractSubscriptionRequest();
|
|
4040
4220
|
m = Object.assign(m, proto);
|
|
4041
4221
|
if (proto.frequency) {
|
|
4042
|
-
m.frequency = enumStringToValue$
|
|
4222
|
+
m.frequency = enumStringToValue$A(Frequency, proto.frequency);
|
|
4043
4223
|
}
|
|
4044
4224
|
return m;
|
|
4045
4225
|
}
|
|
@@ -4064,7 +4244,7 @@ class UpdateContractSubscriptionRequest {
|
|
|
4064
4244
|
}
|
|
4065
4245
|
}
|
|
4066
4246
|
|
|
4067
|
-
function enumStringToValue$
|
|
4247
|
+
function enumStringToValue$z(enumRef, value) {
|
|
4068
4248
|
if (typeof value === 'number') {
|
|
4069
4249
|
return value;
|
|
4070
4250
|
}
|
|
@@ -4081,7 +4261,7 @@ class CustomerSummary {
|
|
|
4081
4261
|
m.purchaseItemTotal = parseInt(proto.purchaseItemTotal, 10);
|
|
4082
4262
|
}
|
|
4083
4263
|
if (proto.currency) {
|
|
4084
|
-
m.currency = enumStringToValue$
|
|
4264
|
+
m.currency = enumStringToValue$z(Currency, proto.currency);
|
|
4085
4265
|
}
|
|
4086
4266
|
return m;
|
|
4087
4267
|
}
|
|
@@ -4167,7 +4347,7 @@ class GetMultiCustomerSummariesResponse {
|
|
|
4167
4347
|
}
|
|
4168
4348
|
}
|
|
4169
4349
|
|
|
4170
|
-
function enumStringToValue$
|
|
4350
|
+
function enumStringToValue$y(enumRef, value) {
|
|
4171
4351
|
if (typeof value === 'number') {
|
|
4172
4352
|
return value;
|
|
4173
4353
|
}
|
|
@@ -4327,7 +4507,7 @@ class SetDefaultBankAccountRequest {
|
|
|
4327
4507
|
}
|
|
4328
4508
|
}
|
|
4329
4509
|
|
|
4330
|
-
function enumStringToValue$
|
|
4510
|
+
function enumStringToValue$x(enumRef, value) {
|
|
4331
4511
|
if (typeof value === 'number') {
|
|
4332
4512
|
return value;
|
|
4333
4513
|
}
|
|
@@ -4338,7 +4518,7 @@ class ProductSummaryDiscount {
|
|
|
4338
4518
|
let m = new ProductSummaryDiscount();
|
|
4339
4519
|
m = Object.assign(m, proto);
|
|
4340
4520
|
if (proto.type) {
|
|
4341
|
-
m.type = enumStringToValue$
|
|
4521
|
+
m.type = enumStringToValue$x(ProductSummaryDiscountDiscountType, proto.type);
|
|
4342
4522
|
}
|
|
4343
4523
|
if (proto.value) {
|
|
4344
4524
|
m.value = parseInt(proto.value, 10);
|
|
@@ -4632,7 +4812,7 @@ class Pricing {
|
|
|
4632
4812
|
let m = new Pricing();
|
|
4633
4813
|
m = Object.assign(m, proto);
|
|
4634
4814
|
if (proto.type) {
|
|
4635
|
-
m.type = enumStringToValue$
|
|
4815
|
+
m.type = enumStringToValue$x(PricingRuleType, proto.type);
|
|
4636
4816
|
}
|
|
4637
4817
|
if (proto.rules) {
|
|
4638
4818
|
m.rules = proto.rules.map(PricingRule.fromProto);
|
|
@@ -4676,13 +4856,13 @@ class ProductSummary {
|
|
|
4676
4856
|
m.discounts = proto.discounts.map(ProductSummaryDiscount.fromProto);
|
|
4677
4857
|
}
|
|
4678
4858
|
if (proto.billingStrategy) {
|
|
4679
|
-
m.billingStrategy = enumStringToValue$
|
|
4859
|
+
m.billingStrategy = enumStringToValue$x(ProductSummaryBillingStrategy, proto.billingStrategy);
|
|
4680
4860
|
}
|
|
4681
4861
|
if (proto.productType) {
|
|
4682
|
-
m.productType = enumStringToValue$
|
|
4862
|
+
m.productType = enumStringToValue$x(ProductSummaryProductType, proto.productType);
|
|
4683
4863
|
}
|
|
4684
4864
|
if (proto.frequency) {
|
|
4685
|
-
m.frequency = enumStringToValue$
|
|
4865
|
+
m.frequency = enumStringToValue$x(Frequency, proto.frequency);
|
|
4686
4866
|
}
|
|
4687
4867
|
if (proto.volumeCommitment) {
|
|
4688
4868
|
m.volumeCommitment = parseInt(proto.volumeCommitment, 10);
|
|
@@ -4863,7 +5043,7 @@ class ListSubscriptionRetentionByGroupResponseSubscriptionRetentionByGroup {
|
|
|
4863
5043
|
}
|
|
4864
5044
|
}
|
|
4865
5045
|
|
|
4866
|
-
function enumStringToValue$
|
|
5046
|
+
function enumStringToValue$w(enumRef, value) {
|
|
4867
5047
|
if (typeof value === 'number') {
|
|
4868
5048
|
return value;
|
|
4869
5049
|
}
|
|
@@ -4874,7 +5054,7 @@ class CreateDiscountRequest {
|
|
|
4874
5054
|
let m = new CreateDiscountRequest();
|
|
4875
5055
|
m = Object.assign(m, proto);
|
|
4876
5056
|
if (proto.discountType) {
|
|
4877
|
-
m.discountType = enumStringToValue$
|
|
5057
|
+
m.discountType = enumStringToValue$w(DiscountType, proto.discountType);
|
|
4878
5058
|
}
|
|
4879
5059
|
if (proto.amount) {
|
|
4880
5060
|
m.amount = parseInt(proto.amount, 10);
|
|
@@ -4886,7 +5066,7 @@ class CreateDiscountRequest {
|
|
|
4886
5066
|
m.end = new Date(proto.end);
|
|
4887
5067
|
}
|
|
4888
5068
|
if (proto.consumer) {
|
|
4889
|
-
m.consumer = enumStringToValue$
|
|
5069
|
+
m.consumer = enumStringToValue$w(Consumer, proto.consumer);
|
|
4890
5070
|
}
|
|
4891
5071
|
if (proto.numberOfBillingPeriods) {
|
|
4892
5072
|
m.numberOfBillingPeriods = parseInt(proto.numberOfBillingPeriods, 10);
|
|
@@ -4968,7 +5148,7 @@ class Discount {
|
|
|
4968
5148
|
m.discountId = parseInt(proto.discountId, 10);
|
|
4969
5149
|
}
|
|
4970
5150
|
if (proto.discountType) {
|
|
4971
|
-
m.discountType = enumStringToValue$
|
|
5151
|
+
m.discountType = enumStringToValue$w(DiscountType, proto.discountType);
|
|
4972
5152
|
}
|
|
4973
5153
|
if (proto.amount) {
|
|
4974
5154
|
m.amount = parseInt(proto.amount, 10);
|
|
@@ -4986,7 +5166,7 @@ class Discount {
|
|
|
4986
5166
|
m.updated = new Date(proto.updated);
|
|
4987
5167
|
}
|
|
4988
5168
|
if (proto.consumer) {
|
|
4989
|
-
m.consumer = enumStringToValue$
|
|
5169
|
+
m.consumer = enumStringToValue$w(Consumer, proto.consumer);
|
|
4990
5170
|
}
|
|
4991
5171
|
if (proto.numberOfBillingPeriods) {
|
|
4992
5172
|
m.numberOfBillingPeriods = parseInt(proto.numberOfBillingPeriods, 10);
|
|
@@ -5083,7 +5263,7 @@ class ListDiscountsRequestFilters {
|
|
|
5083
5263
|
m.expiry = new Date(proto.expiry);
|
|
5084
5264
|
}
|
|
5085
5265
|
if (proto.consumers) {
|
|
5086
|
-
m.consumers = proto.consumers.map((v) => enumStringToValue$
|
|
5266
|
+
m.consumers = proto.consumers.map((v) => enumStringToValue$w(Consumer, v));
|
|
5087
5267
|
}
|
|
5088
5268
|
return m;
|
|
5089
5269
|
}
|
|
@@ -5182,7 +5362,7 @@ class UpdateDiscountRequest {
|
|
|
5182
5362
|
let m = new UpdateDiscountRequest();
|
|
5183
5363
|
m = Object.assign(m, proto);
|
|
5184
5364
|
if (proto.discountType) {
|
|
5185
|
-
m.discountType = enumStringToValue$
|
|
5365
|
+
m.discountType = enumStringToValue$w(DiscountType, proto.discountType);
|
|
5186
5366
|
}
|
|
5187
5367
|
if (proto.amount) {
|
|
5188
5368
|
m.amount = parseInt(proto.amount, 10);
|
|
@@ -5243,7 +5423,7 @@ class UpdateDiscountRequest {
|
|
|
5243
5423
|
}
|
|
5244
5424
|
}
|
|
5245
5425
|
|
|
5246
|
-
function enumStringToValue$
|
|
5426
|
+
function enumStringToValue$v(enumRef, value) {
|
|
5247
5427
|
if (typeof value === 'number') {
|
|
5248
5428
|
return value;
|
|
5249
5429
|
}
|
|
@@ -5285,7 +5465,7 @@ class AppliedTaxRate {
|
|
|
5285
5465
|
}
|
|
5286
5466
|
}
|
|
5287
5467
|
|
|
5288
|
-
function enumStringToValue$
|
|
5468
|
+
function enumStringToValue$u(enumRef, value) {
|
|
5289
5469
|
if (typeof value === 'number') {
|
|
5290
5470
|
return value;
|
|
5291
5471
|
}
|
|
@@ -5777,7 +5957,7 @@ class UpdateTaxRequest {
|
|
|
5777
5957
|
}
|
|
5778
5958
|
}
|
|
5779
5959
|
|
|
5780
|
-
function enumStringToValue$
|
|
5960
|
+
function enumStringToValue$t(enumRef, value) {
|
|
5781
5961
|
if (typeof value === 'number') {
|
|
5782
5962
|
return value;
|
|
5783
5963
|
}
|
|
@@ -5854,7 +6034,7 @@ class AppliedBundleItem {
|
|
|
5854
6034
|
}
|
|
5855
6035
|
}
|
|
5856
6036
|
|
|
5857
|
-
function enumStringToValue$
|
|
6037
|
+
function enumStringToValue$s(enumRef, value) {
|
|
5858
6038
|
if (typeof value === 'number') {
|
|
5859
6039
|
return value;
|
|
5860
6040
|
}
|
|
@@ -5960,10 +6140,10 @@ class PaymentCard {
|
|
|
5960
6140
|
let m = new PaymentCard();
|
|
5961
6141
|
m = Object.assign(m, proto);
|
|
5962
6142
|
if (proto.cardType) {
|
|
5963
|
-
m.cardType = enumStringToValue$
|
|
6143
|
+
m.cardType = enumStringToValue$s(PaymentCardCARD_TYPE, proto.cardType);
|
|
5964
6144
|
}
|
|
5965
6145
|
if (proto.fundingType) {
|
|
5966
|
-
m.fundingType = enumStringToValue$
|
|
6146
|
+
m.fundingType = enumStringToValue$s(PaymentCardFUNDING_TYPE, proto.fundingType);
|
|
5967
6147
|
}
|
|
5968
6148
|
return m;
|
|
5969
6149
|
}
|
|
@@ -6070,7 +6250,7 @@ class UpdatePaymentCardRequest {
|
|
|
6070
6250
|
}
|
|
6071
6251
|
}
|
|
6072
6252
|
|
|
6073
|
-
function enumStringToValue$
|
|
6253
|
+
function enumStringToValue$r(enumRef, value) {
|
|
6074
6254
|
if (typeof value === 'number') {
|
|
6075
6255
|
return value;
|
|
6076
6256
|
}
|
|
@@ -6173,7 +6353,7 @@ class PaymentMethod {
|
|
|
6173
6353
|
let m = new PaymentMethod();
|
|
6174
6354
|
m = Object.assign(m, proto);
|
|
6175
6355
|
if (proto.type) {
|
|
6176
|
-
m.type = enumStringToValue$
|
|
6356
|
+
m.type = enumStringToValue$r(PaymentMethodType, proto.type);
|
|
6177
6357
|
}
|
|
6178
6358
|
if (proto.card) {
|
|
6179
6359
|
m.card = PaymentCard.fromProto(proto.card);
|
|
@@ -6213,7 +6393,7 @@ class PaymentMethod {
|
|
|
6213
6393
|
}
|
|
6214
6394
|
}
|
|
6215
6395
|
|
|
6216
|
-
function enumStringToValue$
|
|
6396
|
+
function enumStringToValue$q(enumRef, value) {
|
|
6217
6397
|
if (typeof value === 'number') {
|
|
6218
6398
|
return value;
|
|
6219
6399
|
}
|
|
@@ -6308,7 +6488,7 @@ class ListRecurringInvoicesFiltersDetailedInterval {
|
|
|
6308
6488
|
let m = new ListRecurringInvoicesFiltersDetailedInterval();
|
|
6309
6489
|
m = Object.assign(m, proto);
|
|
6310
6490
|
if (proto.interval) {
|
|
6311
|
-
m.interval = enumStringToValue$
|
|
6491
|
+
m.interval = enumStringToValue$q(Interval, proto.interval);
|
|
6312
6492
|
}
|
|
6313
6493
|
if (proto.intervalCount) {
|
|
6314
6494
|
m.intervalCount = parseInt(proto.intervalCount, 10);
|
|
@@ -6357,7 +6537,7 @@ class ListRecurringInvoicesFilters {
|
|
|
6357
6537
|
let m = new ListRecurringInvoicesFilters();
|
|
6358
6538
|
m = Object.assign(m, proto);
|
|
6359
6539
|
if (proto.statuses) {
|
|
6360
|
-
m.statuses = proto.statuses.map((v) => enumStringToValue$
|
|
6540
|
+
m.statuses = proto.statuses.map((v) => enumStringToValue$q(RecurringInvoiceStatus, v));
|
|
6361
6541
|
}
|
|
6362
6542
|
if (proto.intervals) {
|
|
6363
6543
|
m.intervals = proto.intervals.map(ListRecurringInvoicesFiltersDetailedInterval.fromProto);
|
|
@@ -6462,7 +6642,7 @@ class RecurringInvoice {
|
|
|
6462
6642
|
m.updated = new Date(proto.updated);
|
|
6463
6643
|
}
|
|
6464
6644
|
if (proto.status) {
|
|
6465
|
-
m.status = enumStringToValue$
|
|
6645
|
+
m.status = enumStringToValue$q(RecurringInvoiceStatus, proto.status);
|
|
6466
6646
|
}
|
|
6467
6647
|
if (proto.nextIssue) {
|
|
6468
6648
|
m.nextIssue = new Date(proto.nextIssue);
|
|
@@ -6471,16 +6651,16 @@ class RecurringInvoice {
|
|
|
6471
6651
|
m.intervalCount = parseInt(proto.intervalCount, 10);
|
|
6472
6652
|
}
|
|
6473
6653
|
if (proto.interval) {
|
|
6474
|
-
m.interval = enumStringToValue$
|
|
6654
|
+
m.interval = enumStringToValue$q(Interval, proto.interval);
|
|
6475
6655
|
}
|
|
6476
6656
|
if (proto.repeatOnDayOfMonth) {
|
|
6477
6657
|
m.repeatOnDayOfMonth = parseInt(proto.repeatOnDayOfMonth, 10);
|
|
6478
6658
|
}
|
|
6479
6659
|
if (proto.collectionMethod) {
|
|
6480
|
-
m.collectionMethod = enumStringToValue$
|
|
6660
|
+
m.collectionMethod = enumStringToValue$q(CollectionMethod, proto.collectionMethod);
|
|
6481
6661
|
}
|
|
6482
6662
|
if (proto.paymentProcessor) {
|
|
6483
|
-
m.paymentProcessor = enumStringToValue$
|
|
6663
|
+
m.paymentProcessor = enumStringToValue$q(PaymentProcessor, proto.paymentProcessor);
|
|
6484
6664
|
}
|
|
6485
6665
|
if (proto.items) {
|
|
6486
6666
|
m.items = proto.items.map(RecurringInvoiceItem.fromProto);
|
|
@@ -6498,7 +6678,7 @@ class RecurringInvoice {
|
|
|
6498
6678
|
m.netD = parseInt(proto.netD, 10);
|
|
6499
6679
|
}
|
|
6500
6680
|
if (proto.paymentMethodTypes) {
|
|
6501
|
-
m.paymentMethodTypes = proto.paymentMethodTypes.map((v) => enumStringToValue$
|
|
6681
|
+
m.paymentMethodTypes = proto.paymentMethodTypes.map((v) => enumStringToValue$q(PaymentMethodType, v));
|
|
6502
6682
|
}
|
|
6503
6683
|
return m;
|
|
6504
6684
|
}
|
|
@@ -6705,180 +6885,6 @@ class UpdateRecurringInvoiceRequest {
|
|
|
6705
6885
|
}
|
|
6706
6886
|
}
|
|
6707
6887
|
|
|
6708
|
-
function enumStringToValue$q(enumRef, value) {
|
|
6709
|
-
if (typeof value === 'number') {
|
|
6710
|
-
return value;
|
|
6711
|
-
}
|
|
6712
|
-
return enumRef[value];
|
|
6713
|
-
}
|
|
6714
|
-
class CreateRetailSubscriptionGroupRequest {
|
|
6715
|
-
static fromProto(proto) {
|
|
6716
|
-
let m = new CreateRetailSubscriptionGroupRequest();
|
|
6717
|
-
m = Object.assign(m, proto);
|
|
6718
|
-
if (proto.retailSubscriptionGroup) {
|
|
6719
|
-
m.retailSubscriptionGroup = RetailSubscriptionGroup.fromProto(proto.retailSubscriptionGroup);
|
|
6720
|
-
}
|
|
6721
|
-
return m;
|
|
6722
|
-
}
|
|
6723
|
-
constructor(kwargs) {
|
|
6724
|
-
if (!kwargs) {
|
|
6725
|
-
return;
|
|
6726
|
-
}
|
|
6727
|
-
Object.assign(this, kwargs);
|
|
6728
|
-
}
|
|
6729
|
-
toApiJson() {
|
|
6730
|
-
const toReturn = {};
|
|
6731
|
-
if (typeof this.retailSubscriptionGroup !== 'undefined' && this.retailSubscriptionGroup !== null) {
|
|
6732
|
-
toReturn['retailSubscriptionGroup'] = 'toApiJson' in this.retailSubscriptionGroup ? this.retailSubscriptionGroup.toApiJson() : this.retailSubscriptionGroup;
|
|
6733
|
-
}
|
|
6734
|
-
return toReturn;
|
|
6735
|
-
}
|
|
6736
|
-
}
|
|
6737
|
-
class CreateRetailSubscriptionGroupResponse {
|
|
6738
|
-
static fromProto(proto) {
|
|
6739
|
-
let m = new CreateRetailSubscriptionGroupResponse();
|
|
6740
|
-
m = Object.assign(m, proto);
|
|
6741
|
-
return m;
|
|
6742
|
-
}
|
|
6743
|
-
constructor(kwargs) {
|
|
6744
|
-
if (!kwargs) {
|
|
6745
|
-
return;
|
|
6746
|
-
}
|
|
6747
|
-
Object.assign(this, kwargs);
|
|
6748
|
-
}
|
|
6749
|
-
toApiJson() {
|
|
6750
|
-
const toReturn = {};
|
|
6751
|
-
if (typeof this.id !== 'undefined') {
|
|
6752
|
-
toReturn['id'] = this.id;
|
|
6753
|
-
}
|
|
6754
|
-
return toReturn;
|
|
6755
|
-
}
|
|
6756
|
-
}
|
|
6757
|
-
class GetMultiRetailSubscriptionGroupRequest {
|
|
6758
|
-
static fromProto(proto) {
|
|
6759
|
-
let m = new GetMultiRetailSubscriptionGroupRequest();
|
|
6760
|
-
m = Object.assign(m, proto);
|
|
6761
|
-
return m;
|
|
6762
|
-
}
|
|
6763
|
-
constructor(kwargs) {
|
|
6764
|
-
if (!kwargs) {
|
|
6765
|
-
return;
|
|
6766
|
-
}
|
|
6767
|
-
Object.assign(this, kwargs);
|
|
6768
|
-
}
|
|
6769
|
-
toApiJson() {
|
|
6770
|
-
const toReturn = {};
|
|
6771
|
-
if (typeof this.ids !== 'undefined') {
|
|
6772
|
-
toReturn['ids'] = this.ids;
|
|
6773
|
-
}
|
|
6774
|
-
return toReturn;
|
|
6775
|
-
}
|
|
6776
|
-
}
|
|
6777
|
-
class GetMultiRetailSubscriptionGroupResponse {
|
|
6778
|
-
static fromProto(proto) {
|
|
6779
|
-
let m = new GetMultiRetailSubscriptionGroupResponse();
|
|
6780
|
-
m = Object.assign(m, proto);
|
|
6781
|
-
if (proto.retailSubscriptionGroups) {
|
|
6782
|
-
m.retailSubscriptionGroups = proto.retailSubscriptionGroups.map(RetailSubscriptionGroup.fromProto);
|
|
6783
|
-
}
|
|
6784
|
-
return m;
|
|
6785
|
-
}
|
|
6786
|
-
constructor(kwargs) {
|
|
6787
|
-
if (!kwargs) {
|
|
6788
|
-
return;
|
|
6789
|
-
}
|
|
6790
|
-
Object.assign(this, kwargs);
|
|
6791
|
-
}
|
|
6792
|
-
toApiJson() {
|
|
6793
|
-
const toReturn = {};
|
|
6794
|
-
if (typeof this.retailSubscriptionGroups !== 'undefined' && this.retailSubscriptionGroups !== null) {
|
|
6795
|
-
toReturn['retailSubscriptionGroups'] = 'toApiJson' in this.retailSubscriptionGroups ? this.retailSubscriptionGroups.toApiJson() : this.retailSubscriptionGroups;
|
|
6796
|
-
}
|
|
6797
|
-
return toReturn;
|
|
6798
|
-
}
|
|
6799
|
-
}
|
|
6800
|
-
class RetailSubscriptionGroup {
|
|
6801
|
-
static fromProto(proto) {
|
|
6802
|
-
let m = new RetailSubscriptionGroup();
|
|
6803
|
-
m = Object.assign(m, proto);
|
|
6804
|
-
if (proto.displayOption) {
|
|
6805
|
-
m.displayOption = enumStringToValue$q(DisplayOption, proto.displayOption);
|
|
6806
|
-
}
|
|
6807
|
-
return m;
|
|
6808
|
-
}
|
|
6809
|
-
constructor(kwargs) {
|
|
6810
|
-
if (!kwargs) {
|
|
6811
|
-
return;
|
|
6812
|
-
}
|
|
6813
|
-
Object.assign(this, kwargs);
|
|
6814
|
-
}
|
|
6815
|
-
toApiJson() {
|
|
6816
|
-
const toReturn = {};
|
|
6817
|
-
if (typeof this.id !== 'undefined') {
|
|
6818
|
-
toReturn['id'] = this.id;
|
|
6819
|
-
}
|
|
6820
|
-
if (typeof this.name !== 'undefined') {
|
|
6821
|
-
toReturn['name'] = this.name;
|
|
6822
|
-
}
|
|
6823
|
-
if (typeof this.displayOption !== 'undefined') {
|
|
6824
|
-
toReturn['displayOption'] = this.displayOption;
|
|
6825
|
-
}
|
|
6826
|
-
return toReturn;
|
|
6827
|
-
}
|
|
6828
|
-
}
|
|
6829
|
-
class UpdateRetailSubscriptionGroupRequest {
|
|
6830
|
-
static fromProto(proto) {
|
|
6831
|
-
let m = new UpdateRetailSubscriptionGroupRequest();
|
|
6832
|
-
m = Object.assign(m, proto);
|
|
6833
|
-
if (proto.retailSubscriptionGroup) {
|
|
6834
|
-
m.retailSubscriptionGroup = RetailSubscriptionGroup.fromProto(proto.retailSubscriptionGroup);
|
|
6835
|
-
}
|
|
6836
|
-
if (proto.fieldMask) {
|
|
6837
|
-
m.fieldMask = FieldMask.fromProto(proto.fieldMask);
|
|
6838
|
-
}
|
|
6839
|
-
return m;
|
|
6840
|
-
}
|
|
6841
|
-
constructor(kwargs) {
|
|
6842
|
-
if (!kwargs) {
|
|
6843
|
-
return;
|
|
6844
|
-
}
|
|
6845
|
-
Object.assign(this, kwargs);
|
|
6846
|
-
}
|
|
6847
|
-
toApiJson() {
|
|
6848
|
-
const toReturn = {};
|
|
6849
|
-
if (typeof this.retailSubscriptionGroup !== 'undefined' && this.retailSubscriptionGroup !== null) {
|
|
6850
|
-
toReturn['retailSubscriptionGroup'] = 'toApiJson' in this.retailSubscriptionGroup ? this.retailSubscriptionGroup.toApiJson() : this.retailSubscriptionGroup;
|
|
6851
|
-
}
|
|
6852
|
-
if (typeof this.fieldMask !== 'undefined' && this.fieldMask !== null) {
|
|
6853
|
-
toReturn['fieldMask'] = 'toApiJson' in this.fieldMask ? this.fieldMask.toApiJson() : this.fieldMask;
|
|
6854
|
-
}
|
|
6855
|
-
return toReturn;
|
|
6856
|
-
}
|
|
6857
|
-
}
|
|
6858
|
-
class UpdateRetailSubscriptionGroupResponse {
|
|
6859
|
-
static fromProto(proto) {
|
|
6860
|
-
let m = new UpdateRetailSubscriptionGroupResponse();
|
|
6861
|
-
m = Object.assign(m, proto);
|
|
6862
|
-
if (proto.retailSubscriptionGroup) {
|
|
6863
|
-
m.retailSubscriptionGroup = RetailSubscriptionGroup.fromProto(proto.retailSubscriptionGroup);
|
|
6864
|
-
}
|
|
6865
|
-
return m;
|
|
6866
|
-
}
|
|
6867
|
-
constructor(kwargs) {
|
|
6868
|
-
if (!kwargs) {
|
|
6869
|
-
return;
|
|
6870
|
-
}
|
|
6871
|
-
Object.assign(this, kwargs);
|
|
6872
|
-
}
|
|
6873
|
-
toApiJson() {
|
|
6874
|
-
const toReturn = {};
|
|
6875
|
-
if (typeof this.retailSubscriptionGroup !== 'undefined' && this.retailSubscriptionGroup !== null) {
|
|
6876
|
-
toReturn['retailSubscriptionGroup'] = 'toApiJson' in this.retailSubscriptionGroup ? this.retailSubscriptionGroup.toApiJson() : this.retailSubscriptionGroup;
|
|
6877
|
-
}
|
|
6878
|
-
return toReturn;
|
|
6879
|
-
}
|
|
6880
|
-
}
|
|
6881
|
-
|
|
6882
6888
|
function enumStringToValue$p(enumRef, value) {
|
|
6883
6889
|
if (typeof value === 'number') {
|
|
6884
6890
|
return value;
|
|
@@ -7096,6 +7102,9 @@ class CreateInvoiceRequest {
|
|
|
7096
7102
|
if (proto.issued) {
|
|
7097
7103
|
m.issued = new Date(proto.issued);
|
|
7098
7104
|
}
|
|
7105
|
+
if (proto.displayGroups) {
|
|
7106
|
+
m.displayGroups = proto.displayGroups.map(ItemDisplayGroup.fromProto);
|
|
7107
|
+
}
|
|
7099
7108
|
return m;
|
|
7100
7109
|
}
|
|
7101
7110
|
constructor(kwargs) {
|
|
@@ -7136,6 +7145,9 @@ class CreateInvoiceRequest {
|
|
|
7136
7145
|
if (typeof this.issued !== 'undefined' && this.issued !== null) {
|
|
7137
7146
|
toReturn['issued'] = 'toApiJson' in this.issued ? this.issued.toApiJson() : this.issued;
|
|
7138
7147
|
}
|
|
7148
|
+
if (typeof this.displayGroups !== 'undefined' && this.displayGroups !== null) {
|
|
7149
|
+
toReturn['displayGroups'] = 'toApiJson' in this.displayGroups ? this.displayGroups.toApiJson() : this.displayGroups;
|
|
7150
|
+
}
|
|
7139
7151
|
return toReturn;
|
|
7140
7152
|
}
|
|
7141
7153
|
}
|
|
@@ -7681,6 +7693,9 @@ class Invoice {
|
|
|
7681
7693
|
if (proto.retailSubscriptionGroups) {
|
|
7682
7694
|
m.retailSubscriptionGroups = proto.retailSubscriptionGroups.map(RetailSubscriptionGroup.fromProto);
|
|
7683
7695
|
}
|
|
7696
|
+
if (proto.displayGroups) {
|
|
7697
|
+
m.displayGroups = proto.displayGroups.map(ItemDisplayGroup.fromProto);
|
|
7698
|
+
}
|
|
7684
7699
|
return m;
|
|
7685
7700
|
}
|
|
7686
7701
|
constructor(kwargs) {
|
|
@@ -7808,6 +7823,9 @@ class Invoice {
|
|
|
7808
7823
|
if (typeof this.retailSubscriptionGroups !== 'undefined' && this.retailSubscriptionGroups !== null) {
|
|
7809
7824
|
toReturn['retailSubscriptionGroups'] = 'toApiJson' in this.retailSubscriptionGroups ? this.retailSubscriptionGroups.toApiJson() : this.retailSubscriptionGroups;
|
|
7810
7825
|
}
|
|
7826
|
+
if (typeof this.displayGroups !== 'undefined' && this.displayGroups !== null) {
|
|
7827
|
+
toReturn['displayGroups'] = 'toApiJson' in this.displayGroups ? this.displayGroups.toApiJson() : this.displayGroups;
|
|
7828
|
+
}
|
|
7811
7829
|
return toReturn;
|
|
7812
7830
|
}
|
|
7813
7831
|
}
|
|
@@ -7900,6 +7918,38 @@ class InvoiceItem {
|
|
|
7900
7918
|
if (typeof this.retailSubscriptionGroupId !== 'undefined') {
|
|
7901
7919
|
toReturn['retailSubscriptionGroupId'] = this.retailSubscriptionGroupId;
|
|
7902
7920
|
}
|
|
7921
|
+
if (typeof this.displayGroupId !== 'undefined') {
|
|
7922
|
+
toReturn['displayGroupId'] = this.displayGroupId;
|
|
7923
|
+
}
|
|
7924
|
+
return toReturn;
|
|
7925
|
+
}
|
|
7926
|
+
}
|
|
7927
|
+
class ItemDisplayGroup {
|
|
7928
|
+
static fromProto(proto) {
|
|
7929
|
+
let m = new ItemDisplayGroup();
|
|
7930
|
+
m = Object.assign(m, proto);
|
|
7931
|
+
if (proto.displayOption) {
|
|
7932
|
+
m.displayOption = enumStringToValue$p(DisplayOption, proto.displayOption);
|
|
7933
|
+
}
|
|
7934
|
+
return m;
|
|
7935
|
+
}
|
|
7936
|
+
constructor(kwargs) {
|
|
7937
|
+
if (!kwargs) {
|
|
7938
|
+
return;
|
|
7939
|
+
}
|
|
7940
|
+
Object.assign(this, kwargs);
|
|
7941
|
+
}
|
|
7942
|
+
toApiJson() {
|
|
7943
|
+
const toReturn = {};
|
|
7944
|
+
if (typeof this.id !== 'undefined') {
|
|
7945
|
+
toReturn['id'] = this.id;
|
|
7946
|
+
}
|
|
7947
|
+
if (typeof this.name !== 'undefined') {
|
|
7948
|
+
toReturn['name'] = this.name;
|
|
7949
|
+
}
|
|
7950
|
+
if (typeof this.displayOption !== 'undefined') {
|
|
7951
|
+
toReturn['displayOption'] = this.displayOption;
|
|
7952
|
+
}
|
|
7903
7953
|
return toReturn;
|
|
7904
7954
|
}
|
|
7905
7955
|
}
|
|
@@ -19326,5 +19376,5 @@ const usdConversionRate = 1.4;
|
|
|
19326
19376
|
* Generated bundle index. Do not edit.
|
|
19327
19377
|
*/
|
|
19328
19378
|
|
|
19329
|
-
export { Access, AccountBalance, AddBundleRequest, AddBundleResponse, AddCreditRequest, AddLineItemRequest, AddLineItemResponse, Adjustment, AlignmentSubscription, AppliedBundle, AppliedBundleItem, AppliedCredit, AppliedCreditNote, AppliedDiscount, AppliedFee, AppliedReferenceType, AppliedTaxRate, AppliedTo, ArchiveTaxRequest, AvalaraConfiguration, AvalaraConfigurationApiService, Balance, BalanceAmount, BankAccount, BankReconciliationApiService, BillItemRequest, BillMultipleItemsRequest, BillMultipleItemsResponse, BillableItem, BillableItemCustomerAddress, BillableItemRetailSubscriptionGroup, BillingApiService, BillingStrategy, BulkReplaceTaxRulesRequest, BulkReplaceTaxRulesResponse, Bundle, BundleApiService, BundleItem, BundleItemPrice, BundlePricing, BundlePricingPriceAndFrequency, CalculateCreditNoteRequest, CalculateCreditNoteResponse, CalculateLineItemTaxesRequest, CalculateLineItemTaxesRequestLineItem, CalculateLineItemTaxesResponse, CalculateLineItemTaxesResponseLineItemTaxes, CalculateTaxRequest, CalculateTaxResponse, CanBillItemRequest, CanCreateSubscriptionsRequest, CanCreateSubscriptionsRequestSkusEntry, CanCreateSubscriptionsRequestSubscriptionItem, CanCreateSubscriptionsResponse, CancelRetailBillingRequest, CardType, ChangeCustomUnitPriceRequest, ChangeFrequencyRequest, ChangeRenewalDateRequest, ChargeInvoiceRequest, ChargeSalesInvoiceRequest, CloseRetailDisputeRequest, CollectionMethod, Commitment, ComponentPricing, ConfigureRetailPaymentProviderRequest, ConfigureRetailPaymentProviderResponse, ConfirmRetailPaymentRequest, ConnectStripeAccountRequest, ConnectStripeAccountResponse, Consumer, Contract, ContractApiService, ContractDocument, ContractDocumentApiService, ContractSubscriptionStatus, CreateAvalaraConfigurationRequest, CreateAvalaraConfigurationResponse, CreateContractRequest, CreateContractResponse, CreateCreditNoteRequest, CreateCreditNoteResponse, CreateDiscountRequest, CreateDiscountResponse, CreateInvoiceRequest, CreateInvoiceResponse, CreateMerchantRequest, CreateMerchantRequestIncludeInFinancialRecords, CreateMerchantServicesReportRun, CreateMeteredComponentRequest, CreatePaymentCardRequest, CreatePaymentLinkRequest, CreatePaymentLinkResponse, CreatePricingPlanProductRequest, CreatePricingPlanProductRequestPricingEntry, CreatePricingPlanProductResponse, CreatePricingPlanRequest, CreatePricingPlanResponse, CreateProductRequest, CreateRefundRequest, CreateRetailSubscriptionGroupRequest, CreateRetailSubscriptionGroupResponse, CreateSalesCreditNoteRequest, CreateStripeExternalAccountRequest, CreateSubscriptionRequest, CreateSubscriptionResponse, CreateSubscriptionsRequest, CreateSubscriptionsResponse, CreateTaxRequest, CreateTaxResponse, CreateUsageRequest, CreditApiService, CreditBalance, CreditNote, CreditNoteApiService, CreditNoteReason, CreditNoteType, CreditType, Currency, CustomerSummary, DateRange, DefaultCustomerConfiguration, DeleteAvalaraConfigurationRequest, DeleteBankAccountRequest, DeleteBillableItemRequest, DeleteContractDocumentRequest, DeleteInvoiceRequest, DeleteLineItemRequest, DeleteLineItemResponse, DeletePaymentCardRequest, DeletePricingPlanProductRequest, DeleteProductRequest, DeleteRecurringInvoiceRequest, DeleteRetailPricingRequest, DeleteTaxRuleRequest, Discount, DiscountApiService, DiscountType, DisplayOption, Dispute, DisputeEvidence, DisputeEvidenceDetails, DisputeStatus, DuplicateInvoiceRequest, DuplicateInvoiceResponse, EntityType, ExpireBillableItemRequest, ExpireDiscountRequest, ExportResponse, ExportSubscriptionsRequest, Fee, FeeAmountType, FeeType, FieldMask, File, Frequency, GenerateBillableItemsCSVRequest, GenerateBillableItemsCSVResponse, GenerateVendorReportRequest, GenerateVendorReportResponse, GetAvalaraConfigurationRequest, GetAvalaraConfigurationResponse, GetBalanceRequest, GetBalanceResponse, GetBillableItemRequest, GetBillableItemResponse, GetContractRequest, GetContractResponse, GetCreditNoteRequest, GetCreditNoteResponse, GetInvoiceRequest, GetInvoiceResponse, GetInvoiceWithCalculatedTaxesRequest, GetInvoiceWithCalculatedTaxesResponse, GetMerchantRequest, GetMerchantResponse, GetMerchantServicesReportRun, GetMerchantWholesaleCurrencyRequest, GetMerchantWholesaleCurrencyResponse, GetMultiBundleRequest, GetMultiBundleResponse, GetMultiBundleResponseBundlesEntry, GetMultiBundleRetailPricingRequest, GetMultiBundleRetailPricingResponse, GetMultiBundleRetailPricingResponsePricesEntry, GetMultiContractsRequest, GetMultiContractsResponse, GetMultiContractsResponseContractsEntry, GetMultiCreditNoteRequest, GetMultiCreditNoteResponse, GetMultiCustomerSummariesRequest, GetMultiCustomerSummariesResponse, GetMultiPricingPlanProductRequest, GetMultiPricingPlanProductResponse, GetMultiPricingPlanRequest, GetMultiPricingPlanResponse, GetMultiProductPricingRequest, GetMultiProductPricingResponse, GetMultiProductPricingResponseProductPricesEntry, GetMultiProductRequest, GetMultiProductResponse, GetMultiProductResponseProductsEntry, GetMultiRetailConfigurationsRequest, GetMultiRetailConfigurationsResponse, GetMultiRetailConfigurationsResponseRetailConfigurationsEntry, GetMultiRetailPricingRequest, GetMultiRetailPricingResponse, GetMultiRetailPricingResponseProductPricesEntry, GetMultiRetailSubscriptionGroupRequest, GetMultiRetailSubscriptionGroupResponse, GetMultiSubscriptionRelationshipsRequest, GetMultiSubscriptionRelationshipsResponse, GetMultiSubscriptionsRequest, GetMultiSubscriptionsRequestKey, GetMultiSubscriptionsResponse, GetMultiTaxRequest, GetMultiTaxResponse, GetMultiVendorSplitRequest, GetMultiVendorSplitResponse, GetMultiWholesaleCostRequest, GetMultiWholesaleCostResponse, GetNextRetailInvoiceSequenceRequest, GetNextRetailInvoiceSequenceResponse, GetOutstandingBalanceRequest, GetOutstandingBalanceResponse, GetPayoutSummaryRequest, GetPayoutSummaryResponse, GetPricingPlanProductRequest, GetPricingPlanProductResponse, GetProductSummariesTotalRequest, GetProductSummariesTotalResponse, GetPurchaseCostRequest, GetPurchaseCostResponse, GetRecurringInvoiceRequest, GetRetailAccountBalanceRequest, GetRetailAccountBalanceResponse, GetRetailBalanceRequest, GetRetailBalanceResponse, GetRetailCustomerConfigurationRequest, GetRetailCustomerConfigurationResponse, GetRetailDisputeRequest, GetRetailDisputeResponse, GetRetailPaymentProviderRequest, GetRetailPaymentProviderResponse, GetRetailPaymentRequest, GetRetailPaymentResponse, GetRetailPayoutRequest, GetRetailPayoutResponse, GetRevenueStatsRequest, GetRevenueStatsResponse, GetSalesInvoiceRequest, GetSalesInvoiceResponse, GetStatisticsRequest, GetStatisticsResponse, GetTaxProviderRequest, GetTaxProviderResponse, GetTaxRuleRequest, GetTaxRuleResponse, GetUpcomingInvoicePreviewRequest, GetUpcomingInvoicePreviewResponse, GetVendorSplitRequest, GetVendorSplitResponse, GetWholesaleComparisonRequest, GetWholesaleComparisonRequestGetWholesaleComparisonFilters, GetWholesaleComparisonResponse, GetWholesaleComparisonResponseGetWholesaleComparisonResult, GetWholesaleProviderPublicKeyRequest, GetWholesaleProviderPublicKeyResponse, HostService, Interval, Invoice, InvoiceApiService, InvoiceCustomerAddress, InvoiceItem, InvoiceItemRetailSubscriptionGroup, InvoiceStatus, Item, LastPaymentStatus, LineItem, ListBankAccountsRequest, ListBankAccountsResponse, ListBillableItemsRequest, ListBillableItemsRequestFilters, ListBillableItemsResponse, ListBundlesRequest, ListBundlesRequestFilters, ListBundlesResponse, ListContractDocumentsRequest, ListContractDocumentsRequestFilters, ListContractDocumentsResponse, ListContractsRequest, ListContractsResponse, ListCreditNotesRequest, ListCreditNotesRequestFilters, ListCreditNotesResponse, ListDiscountsRequest, ListDiscountsRequestFilters, ListDiscountsResponse, ListInvoicesRequest, ListInvoicesRequestFilters, ListInvoicesRequestFiltersDateFilter, ListInvoicesRequestFiltersDateFilterDateField, ListInvoicesResponse, ListMerchantBillingReportsRequest, ListMerchantBillingReportsResponse, ListPaymentCardsRequest, ListPaymentCardsResponse, ListPaymentMethodsRequest, ListPaymentMethodsResponse, ListPaymentRequest, ListPaymentRequestListPaymentFilters, ListPaymentResponse, ListPayoutsRequest, ListPayoutsRequestFilters, ListPayoutsResponse, ListPricingPlanProductsRequest, ListPricingPlanProductsRequestListPricingPlanProductsFilters, ListPricingPlanProductsResponse, ListProductSummariesRequest, ListProductSummariesResponse, ListProductsRequest, ListProductsRequestListProductsFilters, ListProductsResponse, ListPurchaseItemsRequest, ListPurchaseItemsRequestListPurchaseItemsFilters, ListPurchaseItemsResponse, ListPurchaseRequest, ListPurchaseRequestListPurchaseBillingStrategyFilter, ListPurchaseRequestListPurchaseFilters, ListPurchaseRequestState, ListPurchaseResponse, ListRecurringInvoicesFilters, ListRecurringInvoicesFiltersDateFilter, ListRecurringInvoicesFiltersDetailedInterval, ListRecurringInvoicesRequest, ListRecurringInvoicesResponse, ListRefundsRequest, ListRefundsResponse, ListRetailDisputesRequest, ListRetailDisputesRequestListRetailDisputesFilters, ListRetailDisputesResponse, ListRetailPaymentsRequest, ListRetailPaymentsRequestListRetailPaymentsFilters, ListRetailPaymentsResponse, ListRetailPayoutsRequest, ListRetailPayoutsResponse, ListRetailTransactionsRequest, ListRetailTransactionsRequestListRetailTransactionsFilters, ListRetailTransactionsResponse, ListSalesCreditNoteRequest, ListSalesCreditNoteRequestListSalesCreditNoteFilters, ListSalesCreditNoteResponse, ListSalesInvoiceRequest, ListSalesInvoiceRequestListSalesInvoiceFilters, ListSalesInvoiceResponse, ListSubscriptionRelationshipsRequest, ListSubscriptionRelationshipsRequestFilters, ListSubscriptionRelationshipsResponse, ListSubscriptionRetentionByGroupResponse, ListSubscriptionRetentionByGroupResponseSubscriptionRetentionByGroup, ListSubscriptionRetentionBySKUResponse, ListSubscriptionRetentionRequest, ListSubscriptionRetentionRequestFilters, ListSubscriptionsRequest, ListSubscriptionsRequestFilters, ListSubscriptionsResponse, ListTaxRequest, ListTaxRequestFilters, ListTaxResponse, ListTaxRulesRequest, ListTaxRulesRequestFilters, ListTaxRulesResponse, MCPOptions, MarkPurchaseAsPaidRequest, Merchant, MerchantApiService, MerchantReport, MerchantReportStatus, MerchantServicesReportRun, MerchantServicesReportRunStatus, MerchantServicesReportRunType, MerchantType, MeteredComponent, Month, Note, Origin, PagedRequestOptions, PagedResponseMetadata, PauseDunningRequest, PayInvoiceRequest, Payment, PaymentACHDebit, PaymentACSSDebit, PaymentAllocationType, PaymentApiService, PaymentCard, PaymentCardCARD_TYPE, PaymentCardFUNDING_TYPE, PaymentErrorCode, PaymentFacilitatorType, PaymentIntent, PaymentIntentStatus, PaymentLinkItem, PaymentMethod, PaymentMethodApiService, PaymentMethodType, PaymentPaymentAllocation, PaymentProcessor, PaymentSource, PaymentStatus, PaymentStatuses, Payout, PayoutStatus, PayoutType, PostSalesInvoiceRequest, PrepareRetailPaymentRequest, PrepareRetailPaymentRequestOrder, PrepareRetailPaymentResponse, Pricing, PricingApiService, PricingPlan, PricingPlanProduct, PricingPlanProductPricing, PricingPlanProductPricingEntry, PricingRule, PricingRuleType, ProcessingFailureCode, Product, ProductApiService, ProductPrices, ProductPricing, ProductPricingRule, ProductPricingType, ProductSummary, ProductSummaryApiService, ProductSummaryBillingStrategy, ProductSummaryDiscount, ProductSummaryDiscountDiscountType, ProductSummaryProductType, ProductType, Purchase, PurchaseApiService, PurchaseItem, PurchaseStatus, ReconcilePayoutRequest, ReconcilePayoutResponse, RecurringInvoice, RecurringInvoiceApiService, RecurringInvoiceBundle, RecurringInvoiceCustomerAddress, RecurringInvoiceItem, RecurringInvoiceLineItem, RecurringInvoiceStatus, ReferenceType, Refund, RefundApiService, RefundReason, RefundRetailPaymentRequest, RefundRetailPaymentResponse, RefundStatus, RelationshipType, RemoveBundleRequest, RemoveBundleResponse, RenewalState, ReplaceSubscriptionPresetsRequest, ReplaceSubscriptionPresetsResponse, ReplaceSubscriptionRelationshipsRequest, ReplaceSubscriptionRelationshipsResponse, ReplaceTaxRuleRequest, ReplaceTaxRuleResponse, ResetContractPricingRequest, ResetPaymentFacilitatorRequest, ResumeDunningRequest, RetailConfiguration, RetailCustomerConfiguration, RetailCustomerConfigurationApiService, RetailPayment, RetailPaymentACHDetails, RetailPaymentACSSDetails, RetailPaymentCardDetails, RetailPaymentPaymentMethodDetailsType, RetailPaymentReferenceType, RetailPaymentsEnabledRequest, RetailPaymentsEnabledResponse, RetailPayout, RetailRefund, RetailRefundFailureReason, RetailRefundReason, RetailRefundStatus, RetailStatusRequest, RetailStatusResponse, RetailStatusResponseVerificationError, RetailStatusResponseVerificationRequirements, RetailSubscriptionGroup, RetailSubscriptionGroupApiService, RetailTransaction, RetailTransactionType, RetentionMetrics, RetryPurchaseRequest, ReverseSubscriptionRequest, SalesCreditNote, SalesCreditNoteApiService, SalesCreditNoteStatus, SalesInvoice, SalesInvoiceApiService, SalesInvoiceStatus, SalesInvoiceType, SearchMerchantsRequest, SearchMerchantsRequestSortBy, SearchMerchantsResponse, SendCreditNoteRequest, SendInvoiceRequest, SendSalesInvoiceEmailRequest, SendSalesInvoiceReceiptEmailRequest, SetAutoBillableRequest, SetAutoChargeInvoicesRequest, SetAutoPostInvoicesRequest, SetDefaultBankAccountRequest, SetDefaultPaymentCardRequest, SetDefaultPaymentMethodRequest, SetHasAlternativePaymentMethodRequest, SetIncludeInFinancialRecordsRequest, SetNextRetailInvoiceSequenceRequest, SetRenewalStartRequest, SetWholesaleProductStrategyRequest, SetWholesaleProductVolumeCommitmentRequest, SortDirection, Source, StartRevRecTemplateBackfillRequest, StopDunningRequest, SubmitEvidenceRequest, SubmitEvidenceRequestDisputeEvidence, SubscribeValidation, SubscribeValidationStatus, Subscription, SubscriptionPreset, SubscriptionProjectionFilter, SubscriptionRelationship, SubscriptionRelationshipApiService, SubscriptionStatus, TaxApiService, TaxProviderType, TaxRate, TaxRule, TaxRuleCustomer, TaxRuleCustomerCustomerAddress, TaxRuleEntityType, TaxRuleProduct, TaxRuleProductProductIdentifier, TaxRuleTaxRuleEntity, TaxRuleType, TickComponentUsageRequest, UnexpireBillableItemRequest, UpdateAvalaraConfigurationRequest, UpdateAvalaraConfigurationResponse, UpdateBundleRequest, UpdateBundleResponse, UpdateContractRequest, UpdateContractRequestMutation, UpdateContractResponse, UpdateContractSubscriptionRequest, UpdateDefaultTaxRatesRequest, UpdateDefaultTaxRatesResponse, UpdateDiscountRequest, UpdateInvoiceRequest, UpdateInvoiceResponse, UpdateLineItemRequest, UpdateLineItemResponse, UpdateMerchantRequest, UpdateMerchantRequestIncludeInFinancialRecords, UpdatePaymentCardRequest, UpdatePricingPlanProductRequest, UpdatePricingPlanProductRequestPricingEntry, UpdatePricingPlanProductResponse, UpdatePricingPlanRequest, UpdatePricingPlanResponse, UpdateProductRequest, UpdateRecurringInvoiceRequest, UpdateRetailPaymentProviderRequest, UpdateRetailSubscriptionGroupRequest, UpdateRetailSubscriptionGroupResponse, UpdateSubscriptionRequest, UpdateSubscriptionRequestSubscription, UpdateSubscriptionResponse, UpdateTaxRequest, UpsertBundleRequest, UpsertDefaultRetailCustomerConfigurationRequest, UpsertRetailConfigurationRequest, UpsertRetailCustomerConfigurationRequest, UpsertRetailPricingRequest, UpsertRetailPricingRequestPricingEntry, UpsertVendorSplitRequest, UpsertVendorSplitResponse, UpsertWholesalePricingRequest, ValidateResponse, VendorApiService, VendorSplit, VendorSplitApiService, VoidInvoiceRequest, VoidPurchaseRequest, WholesaleCostItemRequest, usdConversionRate };
|
|
19379
|
+
export { Access, AccountBalance, AddBundleRequest, AddBundleResponse, AddCreditRequest, AddLineItemRequest, AddLineItemResponse, Adjustment, AlignmentSubscription, AppliedBundle, AppliedBundleItem, AppliedCredit, AppliedCreditNote, AppliedDiscount, AppliedFee, AppliedReferenceType, AppliedTaxRate, AppliedTo, ArchiveTaxRequest, AvalaraConfiguration, AvalaraConfigurationApiService, Balance, BalanceAmount, BankAccount, BankReconciliationApiService, BillItemRequest, BillMultipleItemsRequest, BillMultipleItemsResponse, BillableItem, BillableItemCustomerAddress, BillableItemRetailSubscriptionGroup, BillingApiService, BillingStrategy, BulkReplaceTaxRulesRequest, BulkReplaceTaxRulesResponse, Bundle, BundleApiService, BundleItem, BundleItemPrice, BundlePricing, BundlePricingPriceAndFrequency, CalculateCreditNoteRequest, CalculateCreditNoteResponse, CalculateLineItemTaxesRequest, CalculateLineItemTaxesRequestLineItem, CalculateLineItemTaxesResponse, CalculateLineItemTaxesResponseLineItemTaxes, CalculateTaxRequest, CalculateTaxResponse, CanBillItemRequest, CanCreateSubscriptionsRequest, CanCreateSubscriptionsRequestSkusEntry, CanCreateSubscriptionsRequestSubscriptionItem, CanCreateSubscriptionsResponse, CancelRetailBillingRequest, CardType, ChangeCustomUnitPriceRequest, ChangeFrequencyRequest, ChangeRenewalDateRequest, ChargeInvoiceRequest, ChargeSalesInvoiceRequest, CloseRetailDisputeRequest, CollectionMethod, Commitment, ComponentPricing, ConfigureRetailPaymentProviderRequest, ConfigureRetailPaymentProviderResponse, ConfirmRetailPaymentRequest, ConnectStripeAccountRequest, ConnectStripeAccountResponse, Consumer, Contract, ContractApiService, ContractDocument, ContractDocumentApiService, ContractSubscriptionStatus, CreateAvalaraConfigurationRequest, CreateAvalaraConfigurationResponse, CreateContractRequest, CreateContractResponse, CreateCreditNoteRequest, CreateCreditNoteResponse, CreateDiscountRequest, CreateDiscountResponse, CreateInvoiceRequest, CreateInvoiceResponse, CreateMerchantRequest, CreateMerchantRequestIncludeInFinancialRecords, CreateMerchantServicesReportRun, CreateMeteredComponentRequest, CreatePaymentCardRequest, CreatePaymentLinkRequest, CreatePaymentLinkResponse, CreatePricingPlanProductRequest, CreatePricingPlanProductRequestPricingEntry, CreatePricingPlanProductResponse, CreatePricingPlanRequest, CreatePricingPlanResponse, CreateProductRequest, CreateRefundRequest, CreateRetailSubscriptionGroupRequest, CreateRetailSubscriptionGroupResponse, CreateSalesCreditNoteRequest, CreateStripeExternalAccountRequest, CreateSubscriptionRequest, CreateSubscriptionResponse, CreateSubscriptionsRequest, CreateSubscriptionsResponse, CreateTaxRequest, CreateTaxResponse, CreateUsageRequest, CreditApiService, CreditBalance, CreditNote, CreditNoteApiService, CreditNoteReason, CreditNoteType, CreditType, Currency, CustomerSummary, DateRange, DefaultCustomerConfiguration, DeleteAvalaraConfigurationRequest, DeleteBankAccountRequest, DeleteBillableItemRequest, DeleteContractDocumentRequest, DeleteInvoiceRequest, DeleteLineItemRequest, DeleteLineItemResponse, DeletePaymentCardRequest, DeletePricingPlanProductRequest, DeleteProductRequest, DeleteRecurringInvoiceRequest, DeleteRetailPricingRequest, DeleteTaxRuleRequest, Discount, DiscountApiService, DiscountType, DisplayOption, Dispute, DisputeEvidence, DisputeEvidenceDetails, DisputeStatus, DuplicateInvoiceRequest, DuplicateInvoiceResponse, EntityType, ExpireBillableItemRequest, ExpireDiscountRequest, ExportResponse, ExportSubscriptionsRequest, Fee, FeeAmountType, FeeType, FieldMask, File, Frequency, GenerateBillableItemsCSVRequest, GenerateBillableItemsCSVResponse, GenerateVendorReportRequest, GenerateVendorReportResponse, GetAvalaraConfigurationRequest, GetAvalaraConfigurationResponse, GetBalanceRequest, GetBalanceResponse, GetBillableItemRequest, GetBillableItemResponse, GetContractRequest, GetContractResponse, GetCreditNoteRequest, GetCreditNoteResponse, GetInvoiceRequest, GetInvoiceResponse, GetInvoiceWithCalculatedTaxesRequest, GetInvoiceWithCalculatedTaxesResponse, GetMerchantRequest, GetMerchantResponse, GetMerchantServicesReportRun, GetMerchantWholesaleCurrencyRequest, GetMerchantWholesaleCurrencyResponse, GetMultiBundleRequest, GetMultiBundleResponse, GetMultiBundleResponseBundlesEntry, GetMultiBundleRetailPricingRequest, GetMultiBundleRetailPricingResponse, GetMultiBundleRetailPricingResponsePricesEntry, GetMultiContractsRequest, GetMultiContractsResponse, GetMultiContractsResponseContractsEntry, GetMultiCreditNoteRequest, GetMultiCreditNoteResponse, GetMultiCustomerSummariesRequest, GetMultiCustomerSummariesResponse, GetMultiPricingPlanProductRequest, GetMultiPricingPlanProductResponse, GetMultiPricingPlanRequest, GetMultiPricingPlanResponse, GetMultiProductPricingRequest, GetMultiProductPricingResponse, GetMultiProductPricingResponseProductPricesEntry, GetMultiProductRequest, GetMultiProductResponse, GetMultiProductResponseProductsEntry, GetMultiRetailConfigurationsRequest, GetMultiRetailConfigurationsResponse, GetMultiRetailConfigurationsResponseRetailConfigurationsEntry, GetMultiRetailPricingRequest, GetMultiRetailPricingResponse, GetMultiRetailPricingResponseProductPricesEntry, GetMultiRetailSubscriptionGroupRequest, GetMultiRetailSubscriptionGroupResponse, GetMultiSubscriptionRelationshipsRequest, GetMultiSubscriptionRelationshipsResponse, GetMultiSubscriptionsRequest, GetMultiSubscriptionsRequestKey, GetMultiSubscriptionsResponse, GetMultiTaxRequest, GetMultiTaxResponse, GetMultiVendorSplitRequest, GetMultiVendorSplitResponse, GetMultiWholesaleCostRequest, GetMultiWholesaleCostResponse, GetNextRetailInvoiceSequenceRequest, GetNextRetailInvoiceSequenceResponse, GetOutstandingBalanceRequest, GetOutstandingBalanceResponse, GetPayoutSummaryRequest, GetPayoutSummaryResponse, GetPricingPlanProductRequest, GetPricingPlanProductResponse, GetProductSummariesTotalRequest, GetProductSummariesTotalResponse, GetPurchaseCostRequest, GetPurchaseCostResponse, GetRecurringInvoiceRequest, GetRetailAccountBalanceRequest, GetRetailAccountBalanceResponse, GetRetailBalanceRequest, GetRetailBalanceResponse, GetRetailCustomerConfigurationRequest, GetRetailCustomerConfigurationResponse, GetRetailDisputeRequest, GetRetailDisputeResponse, GetRetailPaymentProviderRequest, GetRetailPaymentProviderResponse, GetRetailPaymentRequest, GetRetailPaymentResponse, GetRetailPayoutRequest, GetRetailPayoutResponse, GetRevenueStatsRequest, GetRevenueStatsResponse, GetSalesInvoiceRequest, GetSalesInvoiceResponse, GetStatisticsRequest, GetStatisticsResponse, GetTaxProviderRequest, GetTaxProviderResponse, GetTaxRuleRequest, GetTaxRuleResponse, GetUpcomingInvoicePreviewRequest, GetUpcomingInvoicePreviewResponse, GetVendorSplitRequest, GetVendorSplitResponse, GetWholesaleComparisonRequest, GetWholesaleComparisonRequestGetWholesaleComparisonFilters, GetWholesaleComparisonResponse, GetWholesaleComparisonResponseGetWholesaleComparisonResult, GetWholesaleProviderPublicKeyRequest, GetWholesaleProviderPublicKeyResponse, HostService, Interval, Invoice, InvoiceApiService, InvoiceCustomerAddress, InvoiceItem, InvoiceItemRetailSubscriptionGroup, InvoiceStatus, Item, ItemDisplayGroup, LastPaymentStatus, LineItem, ListBankAccountsRequest, ListBankAccountsResponse, ListBillableItemsRequest, ListBillableItemsRequestFilters, ListBillableItemsResponse, ListBundlesRequest, ListBundlesRequestFilters, ListBundlesResponse, ListContractDocumentsRequest, ListContractDocumentsRequestFilters, ListContractDocumentsResponse, ListContractsRequest, ListContractsResponse, ListCreditNotesRequest, ListCreditNotesRequestFilters, ListCreditNotesResponse, ListDiscountsRequest, ListDiscountsRequestFilters, ListDiscountsResponse, ListInvoicesRequest, ListInvoicesRequestFilters, ListInvoicesRequestFiltersDateFilter, ListInvoicesRequestFiltersDateFilterDateField, ListInvoicesResponse, ListMerchantBillingReportsRequest, ListMerchantBillingReportsResponse, ListPaymentCardsRequest, ListPaymentCardsResponse, ListPaymentMethodsRequest, ListPaymentMethodsResponse, ListPaymentRequest, ListPaymentRequestListPaymentFilters, ListPaymentResponse, ListPayoutsRequest, ListPayoutsRequestFilters, ListPayoutsResponse, ListPricingPlanProductsRequest, ListPricingPlanProductsRequestListPricingPlanProductsFilters, ListPricingPlanProductsResponse, ListProductSummariesRequest, ListProductSummariesResponse, ListProductsRequest, ListProductsRequestListProductsFilters, ListProductsResponse, ListPurchaseItemsRequest, ListPurchaseItemsRequestListPurchaseItemsFilters, ListPurchaseItemsResponse, ListPurchaseRequest, ListPurchaseRequestListPurchaseBillingStrategyFilter, ListPurchaseRequestListPurchaseFilters, ListPurchaseRequestState, ListPurchaseResponse, ListRecurringInvoicesFilters, ListRecurringInvoicesFiltersDateFilter, ListRecurringInvoicesFiltersDetailedInterval, ListRecurringInvoicesRequest, ListRecurringInvoicesResponse, ListRefundsRequest, ListRefundsResponse, ListRetailDisputesRequest, ListRetailDisputesRequestListRetailDisputesFilters, ListRetailDisputesResponse, ListRetailPaymentsRequest, ListRetailPaymentsRequestListRetailPaymentsFilters, ListRetailPaymentsResponse, ListRetailPayoutsRequest, ListRetailPayoutsResponse, ListRetailTransactionsRequest, ListRetailTransactionsRequestListRetailTransactionsFilters, ListRetailTransactionsResponse, ListSalesCreditNoteRequest, ListSalesCreditNoteRequestListSalesCreditNoteFilters, ListSalesCreditNoteResponse, ListSalesInvoiceRequest, ListSalesInvoiceRequestListSalesInvoiceFilters, ListSalesInvoiceResponse, ListSubscriptionRelationshipsRequest, ListSubscriptionRelationshipsRequestFilters, ListSubscriptionRelationshipsResponse, ListSubscriptionRetentionByGroupResponse, ListSubscriptionRetentionByGroupResponseSubscriptionRetentionByGroup, ListSubscriptionRetentionBySKUResponse, ListSubscriptionRetentionRequest, ListSubscriptionRetentionRequestFilters, ListSubscriptionsRequest, ListSubscriptionsRequestFilters, ListSubscriptionsResponse, ListTaxRequest, ListTaxRequestFilters, ListTaxResponse, ListTaxRulesRequest, ListTaxRulesRequestFilters, ListTaxRulesResponse, MCPOptions, MarkPurchaseAsPaidRequest, Merchant, MerchantApiService, MerchantReport, MerchantReportStatus, MerchantServicesReportRun, MerchantServicesReportRunStatus, MerchantServicesReportRunType, MerchantType, MeteredComponent, Month, Note, Origin, PagedRequestOptions, PagedResponseMetadata, PauseDunningRequest, PayInvoiceRequest, Payment, PaymentACHDebit, PaymentACSSDebit, PaymentAllocationType, PaymentApiService, PaymentCard, PaymentCardCARD_TYPE, PaymentCardFUNDING_TYPE, PaymentErrorCode, PaymentFacilitatorType, PaymentIntent, PaymentIntentStatus, PaymentLinkItem, PaymentMethod, PaymentMethodApiService, PaymentMethodType, PaymentPaymentAllocation, PaymentProcessor, PaymentSource, PaymentStatus, PaymentStatuses, Payout, PayoutStatus, PayoutType, PostSalesInvoiceRequest, PrepareRetailPaymentRequest, PrepareRetailPaymentRequestOrder, PrepareRetailPaymentResponse, Pricing, PricingApiService, PricingPlan, PricingPlanProduct, PricingPlanProductPricing, PricingPlanProductPricingEntry, PricingRule, PricingRuleType, ProcessingFailureCode, Product, ProductApiService, ProductPrices, ProductPricing, ProductPricingRule, ProductPricingType, ProductSummary, ProductSummaryApiService, ProductSummaryBillingStrategy, ProductSummaryDiscount, ProductSummaryDiscountDiscountType, ProductSummaryProductType, ProductType, Purchase, PurchaseApiService, PurchaseItem, PurchaseStatus, ReconcilePayoutRequest, ReconcilePayoutResponse, RecurringInvoice, RecurringInvoiceApiService, RecurringInvoiceBundle, RecurringInvoiceCustomerAddress, RecurringInvoiceItem, RecurringInvoiceLineItem, RecurringInvoiceStatus, ReferenceType, Refund, RefundApiService, RefundReason, RefundRetailPaymentRequest, RefundRetailPaymentResponse, RefundStatus, RelationshipType, RemoveBundleRequest, RemoveBundleResponse, RenewalState, ReplaceSubscriptionPresetsRequest, ReplaceSubscriptionPresetsResponse, ReplaceSubscriptionRelationshipsRequest, ReplaceSubscriptionRelationshipsResponse, ReplaceTaxRuleRequest, ReplaceTaxRuleResponse, ResetContractPricingRequest, ResetPaymentFacilitatorRequest, ResumeDunningRequest, RetailConfiguration, RetailCustomerConfiguration, RetailCustomerConfigurationApiService, RetailPayment, RetailPaymentACHDetails, RetailPaymentACSSDetails, RetailPaymentCardDetails, RetailPaymentPaymentMethodDetailsType, RetailPaymentReferenceType, RetailPaymentsEnabledRequest, RetailPaymentsEnabledResponse, RetailPayout, RetailRefund, RetailRefundFailureReason, RetailRefundReason, RetailRefundStatus, RetailStatusRequest, RetailStatusResponse, RetailStatusResponseVerificationError, RetailStatusResponseVerificationRequirements, RetailSubscriptionGroup, RetailSubscriptionGroupApiService, RetailTransaction, RetailTransactionType, RetentionMetrics, RetryPurchaseRequest, ReverseSubscriptionRequest, SalesCreditNote, SalesCreditNoteApiService, SalesCreditNoteStatus, SalesInvoice, SalesInvoiceApiService, SalesInvoiceStatus, SalesInvoiceType, SearchMerchantsRequest, SearchMerchantsRequestSortBy, SearchMerchantsResponse, SendCreditNoteRequest, SendInvoiceRequest, SendSalesInvoiceEmailRequest, SendSalesInvoiceReceiptEmailRequest, SetAutoBillableRequest, SetAutoChargeInvoicesRequest, SetAutoPostInvoicesRequest, SetDefaultBankAccountRequest, SetDefaultPaymentCardRequest, SetDefaultPaymentMethodRequest, SetHasAlternativePaymentMethodRequest, SetIncludeInFinancialRecordsRequest, SetNextRetailInvoiceSequenceRequest, SetRenewalStartRequest, SetWholesaleProductStrategyRequest, SetWholesaleProductVolumeCommitmentRequest, SortDirection, Source, StartRevRecTemplateBackfillRequest, StopDunningRequest, SubmitEvidenceRequest, SubmitEvidenceRequestDisputeEvidence, SubscribeValidation, SubscribeValidationStatus, Subscription, SubscriptionPreset, SubscriptionProjectionFilter, SubscriptionRelationship, SubscriptionRelationshipApiService, SubscriptionStatus, TaxApiService, TaxProviderType, TaxRate, TaxRule, TaxRuleCustomer, TaxRuleCustomerCustomerAddress, TaxRuleEntityType, TaxRuleProduct, TaxRuleProductProductIdentifier, TaxRuleTaxRuleEntity, TaxRuleType, TickComponentUsageRequest, UnexpireBillableItemRequest, UpdateAvalaraConfigurationRequest, UpdateAvalaraConfigurationResponse, UpdateBundleRequest, UpdateBundleResponse, UpdateContractRequest, UpdateContractRequestMutation, UpdateContractResponse, UpdateContractSubscriptionRequest, UpdateDefaultTaxRatesRequest, UpdateDefaultTaxRatesResponse, UpdateDiscountRequest, UpdateInvoiceRequest, UpdateInvoiceResponse, UpdateLineItemRequest, UpdateLineItemResponse, UpdateMerchantRequest, UpdateMerchantRequestIncludeInFinancialRecords, UpdatePaymentCardRequest, UpdatePricingPlanProductRequest, UpdatePricingPlanProductRequestPricingEntry, UpdatePricingPlanProductResponse, UpdatePricingPlanRequest, UpdatePricingPlanResponse, UpdateProductRequest, UpdateRecurringInvoiceRequest, UpdateRetailPaymentProviderRequest, UpdateRetailSubscriptionGroupRequest, UpdateRetailSubscriptionGroupResponse, UpdateSubscriptionRequest, UpdateSubscriptionRequestSubscription, UpdateSubscriptionResponse, UpdateTaxRequest, UpsertBundleRequest, UpsertDefaultRetailCustomerConfigurationRequest, UpsertRetailConfigurationRequest, UpsertRetailCustomerConfigurationRequest, UpsertRetailPricingRequest, UpsertRetailPricingRequestPricingEntry, UpsertVendorSplitRequest, UpsertVendorSplitResponse, UpsertWholesalePricingRequest, ValidateResponse, VendorApiService, VendorSplit, VendorSplitApiService, VoidInvoiceRequest, VoidPurchaseRequest, WholesaleCostItemRequest, usdConversionRate };
|
|
19330
19380
|
//# sourceMappingURL=vendasta-billing.mjs.map
|