@wix/auto_sdk_stores_subscription-options 1.0.39 → 1.0.41
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/build/cjs/index.d.ts +47 -58
- package/build/cjs/index.js +277 -336
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +158 -183
- package/build/cjs/index.typings.js +223 -273
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.d.ts +109 -123
- package/build/cjs/meta.js +203 -246
- package/build/cjs/meta.js.map +1 -1
- package/build/es/index.d.mts +47 -58
- package/build/es/index.mjs +277 -335
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +158 -183
- package/build/es/index.typings.mjs +223 -272
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.d.mts +109 -123
- package/build/es/meta.mjs +203 -245
- package/build/es/meta.mjs.map +1 -1
- package/build/internal/cjs/index.d.ts +47 -58
- package/build/internal/cjs/index.js +277 -336
- package/build/internal/cjs/index.js.map +1 -1
- package/build/internal/cjs/index.typings.d.ts +158 -183
- package/build/internal/cjs/index.typings.js +223 -273
- package/build/internal/cjs/index.typings.js.map +1 -1
- package/build/internal/cjs/meta.d.ts +109 -123
- package/build/internal/cjs/meta.js +203 -246
- package/build/internal/cjs/meta.js.map +1 -1
- package/build/internal/es/index.d.mts +47 -58
- package/build/internal/es/index.mjs +277 -335
- package/build/internal/es/index.mjs.map +1 -1
- package/build/internal/es/index.typings.d.mts +158 -183
- package/build/internal/es/index.typings.mjs +223 -272
- package/build/internal/es/index.typings.mjs.map +1 -1
- package/build/internal/es/meta.d.mts +109 -123
- package/build/internal/es/meta.mjs +203 -245
- package/build/internal/es/meta.mjs.map +1 -1
- package/package.json +2 -2
package/build/cjs/meta.js
CHANGED
|
@@ -29,7 +29,6 @@ __export(meta_exports, {
|
|
|
29
29
|
bulkUpdateSubscriptionOptions: () => bulkUpdateSubscriptionOptions2,
|
|
30
30
|
createSubscriptionOption: () => createSubscriptionOption2,
|
|
31
31
|
deleteSubscriptionOption: () => deleteSubscriptionOption2,
|
|
32
|
-
enableCustomerCancellation: () => enableCustomerCancellation2,
|
|
33
32
|
getOneTimePurchasesStatus: () => getOneTimePurchasesStatus2,
|
|
34
33
|
getProductIdsForSubscriptionOption: () => getProductIdsForSubscriptionOption2,
|
|
35
34
|
getSubscriptionOption: () => getSubscriptionOption2,
|
|
@@ -44,35 +43,6 @@ var import_float = require("@wix/sdk-runtime/transformations/float");
|
|
|
44
43
|
var import_float2 = require("@wix/sdk-runtime/transformations/float");
|
|
45
44
|
var import_transform_paths = require("@wix/sdk-runtime/transformations/transform-paths");
|
|
46
45
|
var import_rest_modules2 = require("@wix/sdk-runtime/rest-modules");
|
|
47
|
-
function resolveWixEcommerceSubscriptionOptionApiV1SubscriptionOptionsReadApiUrl(opts) {
|
|
48
|
-
const domainToMappings = {
|
|
49
|
-
"api._api_base_domain_": [
|
|
50
|
-
{
|
|
51
|
-
srcPath: "/wix-ecommerce-plans-reader",
|
|
52
|
-
destPath: ""
|
|
53
|
-
}
|
|
54
|
-
],
|
|
55
|
-
"www._base_domain_": [
|
|
56
|
-
{
|
|
57
|
-
srcPath: "/_api/wix-ecommerce-plans-reader",
|
|
58
|
-
destPath: ""
|
|
59
|
-
}
|
|
60
|
-
],
|
|
61
|
-
_: [
|
|
62
|
-
{
|
|
63
|
-
srcPath: "/_api/subscription-options-reader-server",
|
|
64
|
-
destPath: ""
|
|
65
|
-
}
|
|
66
|
-
],
|
|
67
|
-
"manage._base_domain_": [
|
|
68
|
-
{
|
|
69
|
-
srcPath: "/_api/subscription-options-reader-server",
|
|
70
|
-
destPath: ""
|
|
71
|
-
}
|
|
72
|
-
]
|
|
73
|
-
};
|
|
74
|
-
return (0, import_rest_modules2.resolveUrl)(Object.assign(opts, { domainToMappings }));
|
|
75
|
-
}
|
|
76
46
|
function resolveWixEcommerceSubscriptionOptionApiV1SubscriptionOptionsWriteApiUrl(opts) {
|
|
77
47
|
const domainToMappings = {
|
|
78
48
|
"api._api_base_domain_": [
|
|
@@ -120,7 +90,136 @@ function resolveWixEcommerceSubscriptionOptionApiV1SubscriptionOptionsWriteApiUr
|
|
|
120
90
|
};
|
|
121
91
|
return (0, import_rest_modules2.resolveUrl)(Object.assign(opts, { domainToMappings }));
|
|
122
92
|
}
|
|
93
|
+
function resolveWixEcommerceSubscriptionOptionApiV1SubscriptionOptionsReadApiUrl(opts) {
|
|
94
|
+
const domainToMappings = {
|
|
95
|
+
"api._api_base_domain_": [
|
|
96
|
+
{
|
|
97
|
+
srcPath: "/wix-ecommerce-plans-reader",
|
|
98
|
+
destPath: ""
|
|
99
|
+
}
|
|
100
|
+
],
|
|
101
|
+
"www._base_domain_": [
|
|
102
|
+
{
|
|
103
|
+
srcPath: "/_api/wix-ecommerce-plans-reader",
|
|
104
|
+
destPath: ""
|
|
105
|
+
}
|
|
106
|
+
],
|
|
107
|
+
_: [
|
|
108
|
+
{
|
|
109
|
+
srcPath: "/_api/subscription-options-reader-server",
|
|
110
|
+
destPath: ""
|
|
111
|
+
}
|
|
112
|
+
],
|
|
113
|
+
"manage._base_domain_": [
|
|
114
|
+
{
|
|
115
|
+
srcPath: "/_api/subscription-options-reader-server",
|
|
116
|
+
destPath: ""
|
|
117
|
+
}
|
|
118
|
+
]
|
|
119
|
+
};
|
|
120
|
+
return (0, import_rest_modules2.resolveUrl)(Object.assign(opts, { domainToMappings }));
|
|
121
|
+
}
|
|
123
122
|
var PACKAGE_NAME = "@wix/auto_sdk_stores_subscription-options";
|
|
123
|
+
function getSubscriptionOption(payload) {
|
|
124
|
+
function __getSubscriptionOption({ host }) {
|
|
125
|
+
const metadata = {
|
|
126
|
+
entityFqdn: "wix.stores.v1.subscription_option",
|
|
127
|
+
method: "GET",
|
|
128
|
+
methodFqn: "wix.ecommerce.subscription.option.api.v1.SubscriptionOptionsReadApi.GetSubscriptionOption",
|
|
129
|
+
packageName: PACKAGE_NAME,
|
|
130
|
+
migrationOptions: {
|
|
131
|
+
optInTransformResponse: true
|
|
132
|
+
},
|
|
133
|
+
url: resolveWixEcommerceSubscriptionOptionApiV1SubscriptionOptionsReadApiUrl(
|
|
134
|
+
{ protoPath: "/v1/subscription-options/{id}", data: payload, host }
|
|
135
|
+
),
|
|
136
|
+
params: (0, import_rest_modules.toURLSearchParams)(payload),
|
|
137
|
+
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
138
|
+
{
|
|
139
|
+
transformFn: import_float2.transformRESTFloatToSDKFloat,
|
|
140
|
+
paths: [{ path: "subscriptionOption.discount.value" }]
|
|
141
|
+
}
|
|
142
|
+
])
|
|
143
|
+
};
|
|
144
|
+
return metadata;
|
|
145
|
+
}
|
|
146
|
+
return __getSubscriptionOption;
|
|
147
|
+
}
|
|
148
|
+
function getSubscriptionOptionsForProduct(payload) {
|
|
149
|
+
function __getSubscriptionOptionsForProduct({ host }) {
|
|
150
|
+
const metadata = {
|
|
151
|
+
entityFqdn: "wix.stores.v1.subscription_option",
|
|
152
|
+
method: "GET",
|
|
153
|
+
methodFqn: "wix.ecommerce.subscription.option.api.v1.SubscriptionOptionsReadApi.GetSubscriptionOptionsForProduct",
|
|
154
|
+
packageName: PACKAGE_NAME,
|
|
155
|
+
migrationOptions: {
|
|
156
|
+
optInTransformResponse: true
|
|
157
|
+
},
|
|
158
|
+
url: resolveWixEcommerceSubscriptionOptionApiV1SubscriptionOptionsReadApiUrl(
|
|
159
|
+
{
|
|
160
|
+
protoPath: "/v1/subscription-options/byProduct/{productId}",
|
|
161
|
+
data: payload,
|
|
162
|
+
host
|
|
163
|
+
}
|
|
164
|
+
),
|
|
165
|
+
params: (0, import_rest_modules.toURLSearchParams)(payload),
|
|
166
|
+
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
167
|
+
{
|
|
168
|
+
transformFn: import_float2.transformRESTFloatToSDKFloat,
|
|
169
|
+
paths: [{ path: "subscriptionOptions.discount.value" }]
|
|
170
|
+
}
|
|
171
|
+
])
|
|
172
|
+
};
|
|
173
|
+
return metadata;
|
|
174
|
+
}
|
|
175
|
+
return __getSubscriptionOptionsForProduct;
|
|
176
|
+
}
|
|
177
|
+
function getProductIdsForSubscriptionOption(payload) {
|
|
178
|
+
function __getProductIdsForSubscriptionOption({ host }) {
|
|
179
|
+
const metadata = {
|
|
180
|
+
entityFqdn: "wix.stores.v1.subscription_option",
|
|
181
|
+
method: "GET",
|
|
182
|
+
methodFqn: "wix.ecommerce.subscription.option.api.v1.SubscriptionOptionsReadApi.GetProductIdsForSubscriptionOption",
|
|
183
|
+
packageName: PACKAGE_NAME,
|
|
184
|
+
migrationOptions: {
|
|
185
|
+
optInTransformResponse: true
|
|
186
|
+
},
|
|
187
|
+
url: resolveWixEcommerceSubscriptionOptionApiV1SubscriptionOptionsReadApiUrl(
|
|
188
|
+
{
|
|
189
|
+
protoPath: "/v1/subscription-options/{id}/productIds",
|
|
190
|
+
data: payload,
|
|
191
|
+
host
|
|
192
|
+
}
|
|
193
|
+
),
|
|
194
|
+
params: (0, import_rest_modules.toURLSearchParams)(payload)
|
|
195
|
+
};
|
|
196
|
+
return metadata;
|
|
197
|
+
}
|
|
198
|
+
return __getProductIdsForSubscriptionOption;
|
|
199
|
+
}
|
|
200
|
+
function getOneTimePurchasesStatus(payload) {
|
|
201
|
+
function __getOneTimePurchasesStatus({ host }) {
|
|
202
|
+
const metadata = {
|
|
203
|
+
entityFqdn: "wix.stores.v1.subscription_option",
|
|
204
|
+
method: "GET",
|
|
205
|
+
methodFqn: "wix.ecommerce.subscription.option.api.v1.SubscriptionOptionsReadApi.GetOneTimePurchasesStatus",
|
|
206
|
+
packageName: PACKAGE_NAME,
|
|
207
|
+
migrationOptions: {
|
|
208
|
+
optInTransformResponse: true
|
|
209
|
+
},
|
|
210
|
+
url: resolveWixEcommerceSubscriptionOptionApiV1SubscriptionOptionsReadApiUrl(
|
|
211
|
+
{
|
|
212
|
+
protoPath: "/v1/subscription-options/product/{productId}/oneTimePurchasesStatus",
|
|
213
|
+
data: payload,
|
|
214
|
+
host
|
|
215
|
+
}
|
|
216
|
+
),
|
|
217
|
+
params: (0, import_rest_modules.toURLSearchParams)(payload)
|
|
218
|
+
};
|
|
219
|
+
return metadata;
|
|
220
|
+
}
|
|
221
|
+
return __getOneTimePurchasesStatus;
|
|
222
|
+
}
|
|
124
223
|
function createSubscriptionOption(payload) {
|
|
125
224
|
function __createSubscriptionOption({ host }) {
|
|
126
225
|
const serializedData = (0, import_transform_paths.transformPaths)(payload, [
|
|
@@ -347,129 +446,6 @@ function allowOneTimePurchases(payload) {
|
|
|
347
446
|
}
|
|
348
447
|
return __allowOneTimePurchases;
|
|
349
448
|
}
|
|
350
|
-
function enableCustomerCancellation(payload) {
|
|
351
|
-
function __enableCustomerCancellation({ host }) {
|
|
352
|
-
const metadata = {
|
|
353
|
-
entityFqdn: "wix.stores.v1.subscription_option",
|
|
354
|
-
method: "PATCH",
|
|
355
|
-
methodFqn: "wix.ecommerce.subscription.option.api.v1.SubscriptionOptionsWriteApi.EnableCustomerCancellation",
|
|
356
|
-
packageName: PACKAGE_NAME,
|
|
357
|
-
migrationOptions: {
|
|
358
|
-
optInTransformResponse: true
|
|
359
|
-
},
|
|
360
|
-
url: resolveWixEcommerceSubscriptionOptionApiV1SubscriptionOptionsWriteApiUrl(
|
|
361
|
-
{
|
|
362
|
-
protoPath: "/v1/subscription-options/product/{productId}/enableCustomerCancellation",
|
|
363
|
-
data: payload,
|
|
364
|
-
host
|
|
365
|
-
}
|
|
366
|
-
),
|
|
367
|
-
data: payload
|
|
368
|
-
};
|
|
369
|
-
return metadata;
|
|
370
|
-
}
|
|
371
|
-
return __enableCustomerCancellation;
|
|
372
|
-
}
|
|
373
|
-
function getSubscriptionOption(payload) {
|
|
374
|
-
function __getSubscriptionOption({ host }) {
|
|
375
|
-
const metadata = {
|
|
376
|
-
entityFqdn: "wix.stores.v1.subscription_option",
|
|
377
|
-
method: "GET",
|
|
378
|
-
methodFqn: "wix.ecommerce.subscription.option.api.v1.SubscriptionOptionsReadApi.GetSubscriptionOption",
|
|
379
|
-
packageName: PACKAGE_NAME,
|
|
380
|
-
migrationOptions: {
|
|
381
|
-
optInTransformResponse: true
|
|
382
|
-
},
|
|
383
|
-
url: resolveWixEcommerceSubscriptionOptionApiV1SubscriptionOptionsReadApiUrl(
|
|
384
|
-
{ protoPath: "/v1/subscription-options/{id}", data: payload, host }
|
|
385
|
-
),
|
|
386
|
-
params: (0, import_rest_modules.toURLSearchParams)(payload),
|
|
387
|
-
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
388
|
-
{
|
|
389
|
-
transformFn: import_float2.transformRESTFloatToSDKFloat,
|
|
390
|
-
paths: [{ path: "subscriptionOption.discount.value" }]
|
|
391
|
-
}
|
|
392
|
-
])
|
|
393
|
-
};
|
|
394
|
-
return metadata;
|
|
395
|
-
}
|
|
396
|
-
return __getSubscriptionOption;
|
|
397
|
-
}
|
|
398
|
-
function getSubscriptionOptionsForProduct(payload) {
|
|
399
|
-
function __getSubscriptionOptionsForProduct({ host }) {
|
|
400
|
-
const metadata = {
|
|
401
|
-
entityFqdn: "wix.stores.v1.subscription_option",
|
|
402
|
-
method: "GET",
|
|
403
|
-
methodFqn: "wix.ecommerce.subscription.option.api.v1.SubscriptionOptionsReadApi.GetSubscriptionOptionsForProduct",
|
|
404
|
-
packageName: PACKAGE_NAME,
|
|
405
|
-
migrationOptions: {
|
|
406
|
-
optInTransformResponse: true
|
|
407
|
-
},
|
|
408
|
-
url: resolveWixEcommerceSubscriptionOptionApiV1SubscriptionOptionsReadApiUrl(
|
|
409
|
-
{
|
|
410
|
-
protoPath: "/v1/subscription-options/byProduct/{productId}",
|
|
411
|
-
data: payload,
|
|
412
|
-
host
|
|
413
|
-
}
|
|
414
|
-
),
|
|
415
|
-
params: (0, import_rest_modules.toURLSearchParams)(payload),
|
|
416
|
-
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
417
|
-
{
|
|
418
|
-
transformFn: import_float2.transformRESTFloatToSDKFloat,
|
|
419
|
-
paths: [{ path: "subscriptionOptions.discount.value" }]
|
|
420
|
-
}
|
|
421
|
-
])
|
|
422
|
-
};
|
|
423
|
-
return metadata;
|
|
424
|
-
}
|
|
425
|
-
return __getSubscriptionOptionsForProduct;
|
|
426
|
-
}
|
|
427
|
-
function getProductIdsForSubscriptionOption(payload) {
|
|
428
|
-
function __getProductIdsForSubscriptionOption({ host }) {
|
|
429
|
-
const metadata = {
|
|
430
|
-
entityFqdn: "wix.stores.v1.subscription_option",
|
|
431
|
-
method: "GET",
|
|
432
|
-
methodFqn: "wix.ecommerce.subscription.option.api.v1.SubscriptionOptionsReadApi.GetProductIdsForSubscriptionOption",
|
|
433
|
-
packageName: PACKAGE_NAME,
|
|
434
|
-
migrationOptions: {
|
|
435
|
-
optInTransformResponse: true
|
|
436
|
-
},
|
|
437
|
-
url: resolveWixEcommerceSubscriptionOptionApiV1SubscriptionOptionsReadApiUrl(
|
|
438
|
-
{
|
|
439
|
-
protoPath: "/v1/subscription-options/{id}/productIds",
|
|
440
|
-
data: payload,
|
|
441
|
-
host
|
|
442
|
-
}
|
|
443
|
-
),
|
|
444
|
-
params: (0, import_rest_modules.toURLSearchParams)(payload)
|
|
445
|
-
};
|
|
446
|
-
return metadata;
|
|
447
|
-
}
|
|
448
|
-
return __getProductIdsForSubscriptionOption;
|
|
449
|
-
}
|
|
450
|
-
function getOneTimePurchasesStatus(payload) {
|
|
451
|
-
function __getOneTimePurchasesStatus({ host }) {
|
|
452
|
-
const metadata = {
|
|
453
|
-
entityFqdn: "wix.stores.v1.subscription_option",
|
|
454
|
-
method: "GET",
|
|
455
|
-
methodFqn: "wix.ecommerce.subscription.option.api.v1.SubscriptionOptionsReadApi.GetOneTimePurchasesStatus",
|
|
456
|
-
packageName: PACKAGE_NAME,
|
|
457
|
-
migrationOptions: {
|
|
458
|
-
optInTransformResponse: true
|
|
459
|
-
},
|
|
460
|
-
url: resolveWixEcommerceSubscriptionOptionApiV1SubscriptionOptionsReadApiUrl(
|
|
461
|
-
{
|
|
462
|
-
protoPath: "/v1/subscription-options/product/{productId}/oneTimePurchasesStatus",
|
|
463
|
-
data: payload,
|
|
464
|
-
host
|
|
465
|
-
}
|
|
466
|
-
),
|
|
467
|
-
params: (0, import_rest_modules.toURLSearchParams)(payload)
|
|
468
|
-
};
|
|
469
|
-
return metadata;
|
|
470
|
-
}
|
|
471
|
-
return __getOneTimePurchasesStatus;
|
|
472
|
-
}
|
|
473
449
|
|
|
474
450
|
// src/stores-v1-subscription-option-subscription-options.types.ts
|
|
475
451
|
var SubscriptionFrequency = /* @__PURE__ */ ((SubscriptionFrequency2) => {
|
|
@@ -488,65 +464,47 @@ var DiscountType = /* @__PURE__ */ ((DiscountType2) => {
|
|
|
488
464
|
})(DiscountType || {});
|
|
489
465
|
|
|
490
466
|
// src/stores-v1-subscription-option-subscription-options.meta.ts
|
|
491
|
-
function
|
|
492
|
-
const payload = {};
|
|
493
|
-
const getRequestOptions =
|
|
467
|
+
function getSubscriptionOption2() {
|
|
468
|
+
const payload = { id: ":id" };
|
|
469
|
+
const getRequestOptions = getSubscriptionOption(payload);
|
|
494
470
|
const getUrl = (context) => {
|
|
495
471
|
const { url } = getRequestOptions(context);
|
|
496
472
|
return url;
|
|
497
473
|
};
|
|
498
474
|
return {
|
|
499
475
|
getUrl,
|
|
500
|
-
httpMethod: "
|
|
501
|
-
path: "/v1/subscription-options",
|
|
502
|
-
pathParams: {},
|
|
476
|
+
httpMethod: "GET",
|
|
477
|
+
path: "/v1/subscription-options/{id}",
|
|
478
|
+
pathParams: { id: "id" },
|
|
503
479
|
__requestType: null,
|
|
504
480
|
__originalRequestType: null,
|
|
505
481
|
__responseType: null,
|
|
506
482
|
__originalResponseType: null
|
|
507
483
|
};
|
|
508
484
|
}
|
|
509
|
-
function
|
|
510
|
-
const payload = {
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
485
|
+
function getSubscriptionOptionsForProduct2() {
|
|
486
|
+
const payload = { productId: ":productId" };
|
|
487
|
+
const getRequestOptions = getSubscriptionOptionsForProduct(
|
|
488
|
+
payload
|
|
489
|
+
);
|
|
514
490
|
const getUrl = (context) => {
|
|
515
491
|
const { url } = getRequestOptions(context);
|
|
516
492
|
return url;
|
|
517
493
|
};
|
|
518
494
|
return {
|
|
519
495
|
getUrl,
|
|
520
|
-
httpMethod: "
|
|
521
|
-
path: "/v1/subscription-options/{
|
|
522
|
-
pathParams: {
|
|
496
|
+
httpMethod: "GET",
|
|
497
|
+
path: "/v1/subscription-options/byProduct/{productId}",
|
|
498
|
+
pathParams: { productId: "productId" },
|
|
523
499
|
__requestType: null,
|
|
524
500
|
__originalRequestType: null,
|
|
525
501
|
__responseType: null,
|
|
526
502
|
__originalResponseType: null
|
|
527
503
|
};
|
|
528
504
|
}
|
|
529
|
-
function
|
|
505
|
+
function getProductIdsForSubscriptionOption2() {
|
|
530
506
|
const payload = { id: ":id" };
|
|
531
|
-
const getRequestOptions =
|
|
532
|
-
const getUrl = (context) => {
|
|
533
|
-
const { url } = getRequestOptions(context);
|
|
534
|
-
return url;
|
|
535
|
-
};
|
|
536
|
-
return {
|
|
537
|
-
getUrl,
|
|
538
|
-
httpMethod: "DELETE",
|
|
539
|
-
path: "/v1/subscription-options/{id}",
|
|
540
|
-
pathParams: { id: "id" },
|
|
541
|
-
__requestType: null,
|
|
542
|
-
__originalRequestType: null,
|
|
543
|
-
__responseType: null,
|
|
544
|
-
__originalResponseType: null
|
|
545
|
-
};
|
|
546
|
-
}
|
|
547
|
-
function bulkCreateSubscriptionOptions2() {
|
|
548
|
-
const payload = {};
|
|
549
|
-
const getRequestOptions = bulkCreateSubscriptionOptions(
|
|
507
|
+
const getRequestOptions = getProductIdsForSubscriptionOption(
|
|
550
508
|
payload
|
|
551
509
|
);
|
|
552
510
|
const getUrl = (context) => {
|
|
@@ -555,40 +513,36 @@ function bulkCreateSubscriptionOptions2() {
|
|
|
555
513
|
};
|
|
556
514
|
return {
|
|
557
515
|
getUrl,
|
|
558
|
-
httpMethod: "
|
|
559
|
-
path: "/v1/subscription-options/
|
|
560
|
-
pathParams: {},
|
|
516
|
+
httpMethod: "GET",
|
|
517
|
+
path: "/v1/subscription-options/{id}/productIds",
|
|
518
|
+
pathParams: { id: "id" },
|
|
561
519
|
__requestType: null,
|
|
562
520
|
__originalRequestType: null,
|
|
563
521
|
__responseType: null,
|
|
564
522
|
__originalResponseType: null
|
|
565
523
|
};
|
|
566
524
|
}
|
|
567
|
-
function
|
|
568
|
-
const payload = {};
|
|
569
|
-
const getRequestOptions =
|
|
570
|
-
payload
|
|
571
|
-
);
|
|
525
|
+
function getOneTimePurchasesStatus2() {
|
|
526
|
+
const payload = { productId: ":productId" };
|
|
527
|
+
const getRequestOptions = getOneTimePurchasesStatus(payload);
|
|
572
528
|
const getUrl = (context) => {
|
|
573
529
|
const { url } = getRequestOptions(context);
|
|
574
530
|
return url;
|
|
575
531
|
};
|
|
576
532
|
return {
|
|
577
533
|
getUrl,
|
|
578
|
-
httpMethod: "
|
|
579
|
-
path: "/v1/subscription-options",
|
|
580
|
-
pathParams: {},
|
|
534
|
+
httpMethod: "GET",
|
|
535
|
+
path: "/v1/subscription-options/product/{productId}/oneTimePurchasesStatus",
|
|
536
|
+
pathParams: { productId: "productId" },
|
|
581
537
|
__requestType: null,
|
|
582
538
|
__originalRequestType: null,
|
|
583
539
|
__responseType: null,
|
|
584
540
|
__originalResponseType: null
|
|
585
541
|
};
|
|
586
542
|
}
|
|
587
|
-
function
|
|
543
|
+
function createSubscriptionOption2() {
|
|
588
544
|
const payload = {};
|
|
589
|
-
const getRequestOptions =
|
|
590
|
-
payload
|
|
591
|
-
);
|
|
545
|
+
const getRequestOptions = createSubscriptionOption(payload);
|
|
592
546
|
const getUrl = (context) => {
|
|
593
547
|
const { url } = getRequestOptions(context);
|
|
594
548
|
return url;
|
|
@@ -596,7 +550,7 @@ function bulkDeleteSubscriptionOptions2() {
|
|
|
596
550
|
return {
|
|
597
551
|
getUrl,
|
|
598
552
|
httpMethod: "POST",
|
|
599
|
-
path: "/v1/subscription-options
|
|
553
|
+
path: "/v1/subscription-options",
|
|
600
554
|
pathParams: {},
|
|
601
555
|
__requestType: null,
|
|
602
556
|
__originalRequestType: null,
|
|
@@ -604,83 +558,87 @@ function bulkDeleteSubscriptionOptions2() {
|
|
|
604
558
|
__originalResponseType: null
|
|
605
559
|
};
|
|
606
560
|
}
|
|
607
|
-
function
|
|
608
|
-
const payload = {
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
);
|
|
561
|
+
function updateSubscriptionOption2() {
|
|
562
|
+
const payload = {
|
|
563
|
+
subscriptionOption: { id: ":subscriptionOptionId" }
|
|
564
|
+
};
|
|
565
|
+
const getRequestOptions = updateSubscriptionOption(payload);
|
|
612
566
|
const getUrl = (context) => {
|
|
613
567
|
const { url } = getRequestOptions(context);
|
|
614
568
|
return url;
|
|
615
569
|
};
|
|
616
570
|
return {
|
|
617
571
|
getUrl,
|
|
618
|
-
httpMethod: "
|
|
619
|
-
path: "/v1/subscription-options/
|
|
620
|
-
pathParams: {
|
|
572
|
+
httpMethod: "PATCH",
|
|
573
|
+
path: "/v1/subscription-options/{subscriptionOption.id}",
|
|
574
|
+
pathParams: { subscriptionOptionId: "subscriptionOptionId" },
|
|
621
575
|
__requestType: null,
|
|
622
576
|
__originalRequestType: null,
|
|
623
577
|
__responseType: null,
|
|
624
578
|
__originalResponseType: null
|
|
625
579
|
};
|
|
626
580
|
}
|
|
627
|
-
function
|
|
628
|
-
const payload = {
|
|
629
|
-
const getRequestOptions =
|
|
581
|
+
function deleteSubscriptionOption2() {
|
|
582
|
+
const payload = { id: ":id" };
|
|
583
|
+
const getRequestOptions = deleteSubscriptionOption(payload);
|
|
630
584
|
const getUrl = (context) => {
|
|
631
585
|
const { url } = getRequestOptions(context);
|
|
632
586
|
return url;
|
|
633
587
|
};
|
|
634
588
|
return {
|
|
635
589
|
getUrl,
|
|
636
|
-
httpMethod: "
|
|
637
|
-
path: "/v1/subscription-options/
|
|
638
|
-
pathParams: {
|
|
590
|
+
httpMethod: "DELETE",
|
|
591
|
+
path: "/v1/subscription-options/{id}",
|
|
592
|
+
pathParams: { id: "id" },
|
|
639
593
|
__requestType: null,
|
|
640
594
|
__originalRequestType: null,
|
|
641
595
|
__responseType: null,
|
|
642
596
|
__originalResponseType: null
|
|
643
597
|
};
|
|
644
598
|
}
|
|
645
|
-
function
|
|
646
|
-
const payload = {
|
|
647
|
-
const getRequestOptions =
|
|
599
|
+
function bulkCreateSubscriptionOptions2() {
|
|
600
|
+
const payload = {};
|
|
601
|
+
const getRequestOptions = bulkCreateSubscriptionOptions(
|
|
602
|
+
payload
|
|
603
|
+
);
|
|
648
604
|
const getUrl = (context) => {
|
|
649
605
|
const { url } = getRequestOptions(context);
|
|
650
606
|
return url;
|
|
651
607
|
};
|
|
652
608
|
return {
|
|
653
609
|
getUrl,
|
|
654
|
-
httpMethod: "
|
|
655
|
-
path: "/v1/subscription-options/
|
|
656
|
-
pathParams: {
|
|
610
|
+
httpMethod: "POST",
|
|
611
|
+
path: "/v1/subscription-options/createBulk",
|
|
612
|
+
pathParams: {},
|
|
657
613
|
__requestType: null,
|
|
658
614
|
__originalRequestType: null,
|
|
659
615
|
__responseType: null,
|
|
660
616
|
__originalResponseType: null
|
|
661
617
|
};
|
|
662
618
|
}
|
|
663
|
-
function
|
|
664
|
-
const payload = {
|
|
665
|
-
const getRequestOptions =
|
|
619
|
+
function bulkUpdateSubscriptionOptions2() {
|
|
620
|
+
const payload = {};
|
|
621
|
+
const getRequestOptions = bulkUpdateSubscriptionOptions(
|
|
622
|
+
payload
|
|
623
|
+
);
|
|
666
624
|
const getUrl = (context) => {
|
|
667
625
|
const { url } = getRequestOptions(context);
|
|
668
626
|
return url;
|
|
669
627
|
};
|
|
670
628
|
return {
|
|
671
629
|
getUrl,
|
|
672
|
-
httpMethod: "
|
|
673
|
-
path: "/v1/subscription-options
|
|
674
|
-
pathParams: {
|
|
630
|
+
httpMethod: "PATCH",
|
|
631
|
+
path: "/v1/subscription-options",
|
|
632
|
+
pathParams: {},
|
|
675
633
|
__requestType: null,
|
|
676
634
|
__originalRequestType: null,
|
|
677
635
|
__responseType: null,
|
|
678
636
|
__originalResponseType: null
|
|
679
637
|
};
|
|
680
638
|
}
|
|
681
|
-
function
|
|
682
|
-
const payload = {
|
|
683
|
-
const getRequestOptions =
|
|
639
|
+
function bulkDeleteSubscriptionOptions2() {
|
|
640
|
+
const payload = {};
|
|
641
|
+
const getRequestOptions = bulkDeleteSubscriptionOptions(
|
|
684
642
|
payload
|
|
685
643
|
);
|
|
686
644
|
const getUrl = (context) => {
|
|
@@ -689,18 +647,18 @@ function getSubscriptionOptionsForProduct2() {
|
|
|
689
647
|
};
|
|
690
648
|
return {
|
|
691
649
|
getUrl,
|
|
692
|
-
httpMethod: "
|
|
693
|
-
path: "/v1/subscription-options/
|
|
694
|
-
pathParams: {
|
|
650
|
+
httpMethod: "POST",
|
|
651
|
+
path: "/v1/subscription-options/deleteBulk",
|
|
652
|
+
pathParams: {},
|
|
695
653
|
__requestType: null,
|
|
696
654
|
__originalRequestType: null,
|
|
697
655
|
__responseType: null,
|
|
698
656
|
__originalResponseType: null
|
|
699
657
|
};
|
|
700
658
|
}
|
|
701
|
-
function
|
|
702
|
-
const payload = {
|
|
703
|
-
const getRequestOptions =
|
|
659
|
+
function assignSubscriptionOptionsToProduct2() {
|
|
660
|
+
const payload = { productId: ":productId" };
|
|
661
|
+
const getRequestOptions = assignSubscriptionOptionsToProduct(
|
|
704
662
|
payload
|
|
705
663
|
);
|
|
706
664
|
const getUrl = (context) => {
|
|
@@ -709,26 +667,26 @@ function getProductIdsForSubscriptionOption2() {
|
|
|
709
667
|
};
|
|
710
668
|
return {
|
|
711
669
|
getUrl,
|
|
712
|
-
httpMethod: "
|
|
713
|
-
path: "/v1/subscription-options/{
|
|
714
|
-
pathParams: {
|
|
670
|
+
httpMethod: "POST",
|
|
671
|
+
path: "/v1/subscription-options/product/{productId}/assign",
|
|
672
|
+
pathParams: { productId: "productId" },
|
|
715
673
|
__requestType: null,
|
|
716
674
|
__originalRequestType: null,
|
|
717
675
|
__responseType: null,
|
|
718
676
|
__originalResponseType: null
|
|
719
677
|
};
|
|
720
678
|
}
|
|
721
|
-
function
|
|
679
|
+
function allowOneTimePurchases2() {
|
|
722
680
|
const payload = { productId: ":productId" };
|
|
723
|
-
const getRequestOptions =
|
|
681
|
+
const getRequestOptions = allowOneTimePurchases(payload);
|
|
724
682
|
const getUrl = (context) => {
|
|
725
683
|
const { url } = getRequestOptions(context);
|
|
726
684
|
return url;
|
|
727
685
|
};
|
|
728
686
|
return {
|
|
729
687
|
getUrl,
|
|
730
|
-
httpMethod: "
|
|
731
|
-
path: "/v1/subscription-options/product/{productId}/
|
|
688
|
+
httpMethod: "PATCH",
|
|
689
|
+
path: "/v1/subscription-options/product/{productId}/allowOneTimePurchase",
|
|
732
690
|
pathParams: { productId: "productId" },
|
|
733
691
|
__requestType: null,
|
|
734
692
|
__originalRequestType: null,
|
|
@@ -747,7 +705,6 @@ function getOneTimePurchasesStatus2() {
|
|
|
747
705
|
bulkUpdateSubscriptionOptions,
|
|
748
706
|
createSubscriptionOption,
|
|
749
707
|
deleteSubscriptionOption,
|
|
750
|
-
enableCustomerCancellation,
|
|
751
708
|
getOneTimePurchasesStatus,
|
|
752
709
|
getProductIdsForSubscriptionOption,
|
|
753
710
|
getSubscriptionOption,
|