@wix/auto_sdk_stores_subscription-options 1.0.49 → 1.0.51
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 +45 -45
- package/build/cjs/index.js +274 -274
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +157 -157
- package/build/cjs/index.typings.js +230 -230
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.d.ts +108 -108
- package/build/cjs/meta.js +204 -204
- package/build/cjs/meta.js.map +1 -1
- package/build/es/index.d.mts +45 -45
- package/build/es/index.mjs +274 -274
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +157 -157
- package/build/es/index.typings.mjs +230 -230
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.d.mts +108 -108
- package/build/es/meta.mjs +204 -204
- package/build/es/meta.mjs.map +1 -1
- package/build/internal/cjs/index.d.ts +45 -45
- package/build/internal/cjs/index.js +274 -274
- package/build/internal/cjs/index.js.map +1 -1
- package/build/internal/cjs/index.typings.d.ts +157 -157
- package/build/internal/cjs/index.typings.js +230 -230
- package/build/internal/cjs/index.typings.js.map +1 -1
- package/build/internal/cjs/meta.d.ts +108 -108
- package/build/internal/cjs/meta.js +204 -204
- package/build/internal/cjs/meta.js.map +1 -1
- package/build/internal/es/index.d.mts +45 -45
- package/build/internal/es/index.mjs +274 -274
- package/build/internal/es/index.mjs.map +1 -1
- package/build/internal/es/index.typings.d.mts +157 -157
- package/build/internal/es/index.typings.mjs +230 -230
- package/build/internal/es/index.typings.mjs.map +1 -1
- package/build/internal/es/meta.d.mts +108 -108
- package/build/internal/es/meta.mjs +204 -204
- package/build/internal/es/meta.mjs.map +1 -1
- package/package.json +4 -4
|
@@ -4,35 +4,6 @@ import { transformSDKFloatToRESTFloat } from "@wix/sdk-runtime/transformations/f
|
|
|
4
4
|
import { transformRESTFloatToSDKFloat } from "@wix/sdk-runtime/transformations/float";
|
|
5
5
|
import { transformPaths } from "@wix/sdk-runtime/transformations/transform-paths";
|
|
6
6
|
import { resolveUrl } from "@wix/sdk-runtime/rest-modules";
|
|
7
|
-
function resolveWixEcommerceSubscriptionOptionApiV1SubscriptionOptionsReadApiUrl(opts) {
|
|
8
|
-
const domainToMappings = {
|
|
9
|
-
"api._api_base_domain_": [
|
|
10
|
-
{
|
|
11
|
-
srcPath: "/wix-ecommerce-plans-reader",
|
|
12
|
-
destPath: ""
|
|
13
|
-
}
|
|
14
|
-
],
|
|
15
|
-
"www._base_domain_": [
|
|
16
|
-
{
|
|
17
|
-
srcPath: "/_api/wix-ecommerce-plans-reader",
|
|
18
|
-
destPath: ""
|
|
19
|
-
}
|
|
20
|
-
],
|
|
21
|
-
_: [
|
|
22
|
-
{
|
|
23
|
-
srcPath: "/_api/subscription-options-reader-server",
|
|
24
|
-
destPath: ""
|
|
25
|
-
}
|
|
26
|
-
],
|
|
27
|
-
"manage._base_domain_": [
|
|
28
|
-
{
|
|
29
|
-
srcPath: "/_api/subscription-options-reader-server",
|
|
30
|
-
destPath: ""
|
|
31
|
-
}
|
|
32
|
-
]
|
|
33
|
-
};
|
|
34
|
-
return resolveUrl(Object.assign(opts, { domainToMappings }));
|
|
35
|
-
}
|
|
36
7
|
function resolveWixEcommerceSubscriptionOptionApiV1SubscriptionOptionsWriteApiUrl(opts) {
|
|
37
8
|
const domainToMappings = {
|
|
38
9
|
"api._api_base_domain_": [
|
|
@@ -80,7 +51,136 @@ function resolveWixEcommerceSubscriptionOptionApiV1SubscriptionOptionsWriteApiUr
|
|
|
80
51
|
};
|
|
81
52
|
return resolveUrl(Object.assign(opts, { domainToMappings }));
|
|
82
53
|
}
|
|
54
|
+
function resolveWixEcommerceSubscriptionOptionApiV1SubscriptionOptionsReadApiUrl(opts) {
|
|
55
|
+
const domainToMappings = {
|
|
56
|
+
"api._api_base_domain_": [
|
|
57
|
+
{
|
|
58
|
+
srcPath: "/wix-ecommerce-plans-reader",
|
|
59
|
+
destPath: ""
|
|
60
|
+
}
|
|
61
|
+
],
|
|
62
|
+
"www._base_domain_": [
|
|
63
|
+
{
|
|
64
|
+
srcPath: "/_api/wix-ecommerce-plans-reader",
|
|
65
|
+
destPath: ""
|
|
66
|
+
}
|
|
67
|
+
],
|
|
68
|
+
_: [
|
|
69
|
+
{
|
|
70
|
+
srcPath: "/_api/subscription-options-reader-server",
|
|
71
|
+
destPath: ""
|
|
72
|
+
}
|
|
73
|
+
],
|
|
74
|
+
"manage._base_domain_": [
|
|
75
|
+
{
|
|
76
|
+
srcPath: "/_api/subscription-options-reader-server",
|
|
77
|
+
destPath: ""
|
|
78
|
+
}
|
|
79
|
+
]
|
|
80
|
+
};
|
|
81
|
+
return resolveUrl(Object.assign(opts, { domainToMappings }));
|
|
82
|
+
}
|
|
83
83
|
var PACKAGE_NAME = "@wix/auto_sdk_stores_subscription-options";
|
|
84
|
+
function getSubscriptionOption(payload) {
|
|
85
|
+
function __getSubscriptionOption({ host }) {
|
|
86
|
+
const metadata = {
|
|
87
|
+
entityFqdn: "wix.stores.v1.subscription_option",
|
|
88
|
+
method: "GET",
|
|
89
|
+
methodFqn: "wix.ecommerce.subscription.option.api.v1.SubscriptionOptionsReadApi.GetSubscriptionOption",
|
|
90
|
+
packageName: PACKAGE_NAME,
|
|
91
|
+
migrationOptions: {
|
|
92
|
+
optInTransformResponse: true
|
|
93
|
+
},
|
|
94
|
+
url: resolveWixEcommerceSubscriptionOptionApiV1SubscriptionOptionsReadApiUrl(
|
|
95
|
+
{ protoPath: "/v1/subscription-options/{id}", data: payload, host }
|
|
96
|
+
),
|
|
97
|
+
params: toURLSearchParams(payload),
|
|
98
|
+
transformResponse: (payload2) => transformPaths(payload2, [
|
|
99
|
+
{
|
|
100
|
+
transformFn: transformRESTFloatToSDKFloat,
|
|
101
|
+
paths: [{ path: "subscriptionOption.discount.value" }]
|
|
102
|
+
}
|
|
103
|
+
])
|
|
104
|
+
};
|
|
105
|
+
return metadata;
|
|
106
|
+
}
|
|
107
|
+
return __getSubscriptionOption;
|
|
108
|
+
}
|
|
109
|
+
function getSubscriptionOptionsForProduct(payload) {
|
|
110
|
+
function __getSubscriptionOptionsForProduct({ host }) {
|
|
111
|
+
const metadata = {
|
|
112
|
+
entityFqdn: "wix.stores.v1.subscription_option",
|
|
113
|
+
method: "GET",
|
|
114
|
+
methodFqn: "wix.ecommerce.subscription.option.api.v1.SubscriptionOptionsReadApi.GetSubscriptionOptionsForProduct",
|
|
115
|
+
packageName: PACKAGE_NAME,
|
|
116
|
+
migrationOptions: {
|
|
117
|
+
optInTransformResponse: true
|
|
118
|
+
},
|
|
119
|
+
url: resolveWixEcommerceSubscriptionOptionApiV1SubscriptionOptionsReadApiUrl(
|
|
120
|
+
{
|
|
121
|
+
protoPath: "/v1/subscription-options/byProduct/{productId}",
|
|
122
|
+
data: payload,
|
|
123
|
+
host
|
|
124
|
+
}
|
|
125
|
+
),
|
|
126
|
+
params: toURLSearchParams(payload),
|
|
127
|
+
transformResponse: (payload2) => transformPaths(payload2, [
|
|
128
|
+
{
|
|
129
|
+
transformFn: transformRESTFloatToSDKFloat,
|
|
130
|
+
paths: [{ path: "subscriptionOptions.discount.value" }]
|
|
131
|
+
}
|
|
132
|
+
])
|
|
133
|
+
};
|
|
134
|
+
return metadata;
|
|
135
|
+
}
|
|
136
|
+
return __getSubscriptionOptionsForProduct;
|
|
137
|
+
}
|
|
138
|
+
function getProductIdsForSubscriptionOption(payload) {
|
|
139
|
+
function __getProductIdsForSubscriptionOption({ host }) {
|
|
140
|
+
const metadata = {
|
|
141
|
+
entityFqdn: "wix.stores.v1.subscription_option",
|
|
142
|
+
method: "GET",
|
|
143
|
+
methodFqn: "wix.ecommerce.subscription.option.api.v1.SubscriptionOptionsReadApi.GetProductIdsForSubscriptionOption",
|
|
144
|
+
packageName: PACKAGE_NAME,
|
|
145
|
+
migrationOptions: {
|
|
146
|
+
optInTransformResponse: true
|
|
147
|
+
},
|
|
148
|
+
url: resolveWixEcommerceSubscriptionOptionApiV1SubscriptionOptionsReadApiUrl(
|
|
149
|
+
{
|
|
150
|
+
protoPath: "/v1/subscription-options/{id}/productIds",
|
|
151
|
+
data: payload,
|
|
152
|
+
host
|
|
153
|
+
}
|
|
154
|
+
),
|
|
155
|
+
params: toURLSearchParams(payload)
|
|
156
|
+
};
|
|
157
|
+
return metadata;
|
|
158
|
+
}
|
|
159
|
+
return __getProductIdsForSubscriptionOption;
|
|
160
|
+
}
|
|
161
|
+
function getOneTimePurchasesStatus(payload) {
|
|
162
|
+
function __getOneTimePurchasesStatus({ host }) {
|
|
163
|
+
const metadata = {
|
|
164
|
+
entityFqdn: "wix.stores.v1.subscription_option",
|
|
165
|
+
method: "GET",
|
|
166
|
+
methodFqn: "wix.ecommerce.subscription.option.api.v1.SubscriptionOptionsReadApi.GetOneTimePurchasesStatus",
|
|
167
|
+
packageName: PACKAGE_NAME,
|
|
168
|
+
migrationOptions: {
|
|
169
|
+
optInTransformResponse: true
|
|
170
|
+
},
|
|
171
|
+
url: resolveWixEcommerceSubscriptionOptionApiV1SubscriptionOptionsReadApiUrl(
|
|
172
|
+
{
|
|
173
|
+
protoPath: "/v1/subscription-options/product/{productId}/oneTimePurchasesStatus",
|
|
174
|
+
data: payload,
|
|
175
|
+
host
|
|
176
|
+
}
|
|
177
|
+
),
|
|
178
|
+
params: toURLSearchParams(payload)
|
|
179
|
+
};
|
|
180
|
+
return metadata;
|
|
181
|
+
}
|
|
182
|
+
return __getOneTimePurchasesStatus;
|
|
183
|
+
}
|
|
84
184
|
function createSubscriptionOption(payload) {
|
|
85
185
|
function __createSubscriptionOption({ host }) {
|
|
86
186
|
const serializedData = transformPaths(payload, [
|
|
@@ -307,106 +407,6 @@ function allowOneTimePurchases(payload) {
|
|
|
307
407
|
}
|
|
308
408
|
return __allowOneTimePurchases;
|
|
309
409
|
}
|
|
310
|
-
function getSubscriptionOption(payload) {
|
|
311
|
-
function __getSubscriptionOption({ host }) {
|
|
312
|
-
const metadata = {
|
|
313
|
-
entityFqdn: "wix.stores.v1.subscription_option",
|
|
314
|
-
method: "GET",
|
|
315
|
-
methodFqn: "wix.ecommerce.subscription.option.api.v1.SubscriptionOptionsReadApi.GetSubscriptionOption",
|
|
316
|
-
packageName: PACKAGE_NAME,
|
|
317
|
-
migrationOptions: {
|
|
318
|
-
optInTransformResponse: true
|
|
319
|
-
},
|
|
320
|
-
url: resolveWixEcommerceSubscriptionOptionApiV1SubscriptionOptionsReadApiUrl(
|
|
321
|
-
{ protoPath: "/v1/subscription-options/{id}", data: payload, host }
|
|
322
|
-
),
|
|
323
|
-
params: toURLSearchParams(payload),
|
|
324
|
-
transformResponse: (payload2) => transformPaths(payload2, [
|
|
325
|
-
{
|
|
326
|
-
transformFn: transformRESTFloatToSDKFloat,
|
|
327
|
-
paths: [{ path: "subscriptionOption.discount.value" }]
|
|
328
|
-
}
|
|
329
|
-
])
|
|
330
|
-
};
|
|
331
|
-
return metadata;
|
|
332
|
-
}
|
|
333
|
-
return __getSubscriptionOption;
|
|
334
|
-
}
|
|
335
|
-
function getSubscriptionOptionsForProduct(payload) {
|
|
336
|
-
function __getSubscriptionOptionsForProduct({ host }) {
|
|
337
|
-
const metadata = {
|
|
338
|
-
entityFqdn: "wix.stores.v1.subscription_option",
|
|
339
|
-
method: "GET",
|
|
340
|
-
methodFqn: "wix.ecommerce.subscription.option.api.v1.SubscriptionOptionsReadApi.GetSubscriptionOptionsForProduct",
|
|
341
|
-
packageName: PACKAGE_NAME,
|
|
342
|
-
migrationOptions: {
|
|
343
|
-
optInTransformResponse: true
|
|
344
|
-
},
|
|
345
|
-
url: resolveWixEcommerceSubscriptionOptionApiV1SubscriptionOptionsReadApiUrl(
|
|
346
|
-
{
|
|
347
|
-
protoPath: "/v1/subscription-options/byProduct/{productId}",
|
|
348
|
-
data: payload,
|
|
349
|
-
host
|
|
350
|
-
}
|
|
351
|
-
),
|
|
352
|
-
params: toURLSearchParams(payload),
|
|
353
|
-
transformResponse: (payload2) => transformPaths(payload2, [
|
|
354
|
-
{
|
|
355
|
-
transformFn: transformRESTFloatToSDKFloat,
|
|
356
|
-
paths: [{ path: "subscriptionOptions.discount.value" }]
|
|
357
|
-
}
|
|
358
|
-
])
|
|
359
|
-
};
|
|
360
|
-
return metadata;
|
|
361
|
-
}
|
|
362
|
-
return __getSubscriptionOptionsForProduct;
|
|
363
|
-
}
|
|
364
|
-
function getProductIdsForSubscriptionOption(payload) {
|
|
365
|
-
function __getProductIdsForSubscriptionOption({ host }) {
|
|
366
|
-
const metadata = {
|
|
367
|
-
entityFqdn: "wix.stores.v1.subscription_option",
|
|
368
|
-
method: "GET",
|
|
369
|
-
methodFqn: "wix.ecommerce.subscription.option.api.v1.SubscriptionOptionsReadApi.GetProductIdsForSubscriptionOption",
|
|
370
|
-
packageName: PACKAGE_NAME,
|
|
371
|
-
migrationOptions: {
|
|
372
|
-
optInTransformResponse: true
|
|
373
|
-
},
|
|
374
|
-
url: resolveWixEcommerceSubscriptionOptionApiV1SubscriptionOptionsReadApiUrl(
|
|
375
|
-
{
|
|
376
|
-
protoPath: "/v1/subscription-options/{id}/productIds",
|
|
377
|
-
data: payload,
|
|
378
|
-
host
|
|
379
|
-
}
|
|
380
|
-
),
|
|
381
|
-
params: toURLSearchParams(payload)
|
|
382
|
-
};
|
|
383
|
-
return metadata;
|
|
384
|
-
}
|
|
385
|
-
return __getProductIdsForSubscriptionOption;
|
|
386
|
-
}
|
|
387
|
-
function getOneTimePurchasesStatus(payload) {
|
|
388
|
-
function __getOneTimePurchasesStatus({ host }) {
|
|
389
|
-
const metadata = {
|
|
390
|
-
entityFqdn: "wix.stores.v1.subscription_option",
|
|
391
|
-
method: "GET",
|
|
392
|
-
methodFqn: "wix.ecommerce.subscription.option.api.v1.SubscriptionOptionsReadApi.GetOneTimePurchasesStatus",
|
|
393
|
-
packageName: PACKAGE_NAME,
|
|
394
|
-
migrationOptions: {
|
|
395
|
-
optInTransformResponse: true
|
|
396
|
-
},
|
|
397
|
-
url: resolveWixEcommerceSubscriptionOptionApiV1SubscriptionOptionsReadApiUrl(
|
|
398
|
-
{
|
|
399
|
-
protoPath: "/v1/subscription-options/product/{productId}/oneTimePurchasesStatus",
|
|
400
|
-
data: payload,
|
|
401
|
-
host
|
|
402
|
-
}
|
|
403
|
-
),
|
|
404
|
-
params: toURLSearchParams(payload)
|
|
405
|
-
};
|
|
406
|
-
return metadata;
|
|
407
|
-
}
|
|
408
|
-
return __getOneTimePurchasesStatus;
|
|
409
|
-
}
|
|
410
410
|
|
|
411
411
|
// src/stores-v1-subscription-option-subscription-options.types.ts
|
|
412
412
|
var SubscriptionFrequency = /* @__PURE__ */ ((SubscriptionFrequency2) => {
|
|
@@ -425,55 +425,57 @@ var DiscountType = /* @__PURE__ */ ((DiscountType2) => {
|
|
|
425
425
|
})(DiscountType || {});
|
|
426
426
|
|
|
427
427
|
// src/stores-v1-subscription-option-subscription-options.meta.ts
|
|
428
|
-
function
|
|
429
|
-
const payload = {};
|
|
430
|
-
const getRequestOptions =
|
|
428
|
+
function getSubscriptionOption2() {
|
|
429
|
+
const payload = { id: ":id" };
|
|
430
|
+
const getRequestOptions = getSubscriptionOption(payload);
|
|
431
431
|
const getUrl = (context) => {
|
|
432
432
|
const { url } = getRequestOptions(context);
|
|
433
433
|
return url;
|
|
434
434
|
};
|
|
435
435
|
return {
|
|
436
436
|
getUrl,
|
|
437
|
-
httpMethod: "
|
|
438
|
-
path: "/v1/subscription-options",
|
|
439
|
-
pathParams: {},
|
|
437
|
+
httpMethod: "GET",
|
|
438
|
+
path: "/v1/subscription-options/{id}",
|
|
439
|
+
pathParams: { id: "id" },
|
|
440
440
|
__requestType: null,
|
|
441
441
|
__originalRequestType: null,
|
|
442
442
|
__responseType: null,
|
|
443
443
|
__originalResponseType: null
|
|
444
444
|
};
|
|
445
445
|
}
|
|
446
|
-
function
|
|
447
|
-
const payload = {
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
446
|
+
function getSubscriptionOptionsForProduct2() {
|
|
447
|
+
const payload = { productId: ":productId" };
|
|
448
|
+
const getRequestOptions = getSubscriptionOptionsForProduct(
|
|
449
|
+
payload
|
|
450
|
+
);
|
|
451
451
|
const getUrl = (context) => {
|
|
452
452
|
const { url } = getRequestOptions(context);
|
|
453
453
|
return url;
|
|
454
454
|
};
|
|
455
455
|
return {
|
|
456
456
|
getUrl,
|
|
457
|
-
httpMethod: "
|
|
458
|
-
path: "/v1/subscription-options/{
|
|
459
|
-
pathParams: {
|
|
457
|
+
httpMethod: "GET",
|
|
458
|
+
path: "/v1/subscription-options/byProduct/{productId}",
|
|
459
|
+
pathParams: { productId: "productId" },
|
|
460
460
|
__requestType: null,
|
|
461
461
|
__originalRequestType: null,
|
|
462
462
|
__responseType: null,
|
|
463
463
|
__originalResponseType: null
|
|
464
464
|
};
|
|
465
465
|
}
|
|
466
|
-
function
|
|
466
|
+
function getProductIdsForSubscriptionOption2() {
|
|
467
467
|
const payload = { id: ":id" };
|
|
468
|
-
const getRequestOptions =
|
|
468
|
+
const getRequestOptions = getProductIdsForSubscriptionOption(
|
|
469
|
+
payload
|
|
470
|
+
);
|
|
469
471
|
const getUrl = (context) => {
|
|
470
472
|
const { url } = getRequestOptions(context);
|
|
471
473
|
return url;
|
|
472
474
|
};
|
|
473
475
|
return {
|
|
474
476
|
getUrl,
|
|
475
|
-
httpMethod: "
|
|
476
|
-
path: "/v1/subscription-options/{id}",
|
|
477
|
+
httpMethod: "GET",
|
|
478
|
+
path: "/v1/subscription-options/{id}/productIds",
|
|
477
479
|
pathParams: { id: "id" },
|
|
478
480
|
__requestType: null,
|
|
479
481
|
__originalRequestType: null,
|
|
@@ -481,38 +483,34 @@ function deleteSubscriptionOption2() {
|
|
|
481
483
|
__originalResponseType: null
|
|
482
484
|
};
|
|
483
485
|
}
|
|
484
|
-
function
|
|
485
|
-
const payload = {};
|
|
486
|
-
const getRequestOptions =
|
|
487
|
-
payload
|
|
488
|
-
);
|
|
486
|
+
function getOneTimePurchasesStatus2() {
|
|
487
|
+
const payload = { productId: ":productId" };
|
|
488
|
+
const getRequestOptions = getOneTimePurchasesStatus(payload);
|
|
489
489
|
const getUrl = (context) => {
|
|
490
490
|
const { url } = getRequestOptions(context);
|
|
491
491
|
return url;
|
|
492
492
|
};
|
|
493
493
|
return {
|
|
494
494
|
getUrl,
|
|
495
|
-
httpMethod: "
|
|
496
|
-
path: "/v1/subscription-options/
|
|
497
|
-
pathParams: {},
|
|
495
|
+
httpMethod: "GET",
|
|
496
|
+
path: "/v1/subscription-options/product/{productId}/oneTimePurchasesStatus",
|
|
497
|
+
pathParams: { productId: "productId" },
|
|
498
498
|
__requestType: null,
|
|
499
499
|
__originalRequestType: null,
|
|
500
500
|
__responseType: null,
|
|
501
501
|
__originalResponseType: null
|
|
502
502
|
};
|
|
503
503
|
}
|
|
504
|
-
function
|
|
504
|
+
function createSubscriptionOption2() {
|
|
505
505
|
const payload = {};
|
|
506
|
-
const getRequestOptions =
|
|
507
|
-
payload
|
|
508
|
-
);
|
|
506
|
+
const getRequestOptions = createSubscriptionOption(payload);
|
|
509
507
|
const getUrl = (context) => {
|
|
510
508
|
const { url } = getRequestOptions(context);
|
|
511
509
|
return url;
|
|
512
510
|
};
|
|
513
511
|
return {
|
|
514
512
|
getUrl,
|
|
515
|
-
httpMethod: "
|
|
513
|
+
httpMethod: "POST",
|
|
516
514
|
path: "/v1/subscription-options",
|
|
517
515
|
pathParams: {},
|
|
518
516
|
__requestType: null,
|
|
@@ -521,85 +519,87 @@ function bulkUpdateSubscriptionOptions2() {
|
|
|
521
519
|
__originalResponseType: null
|
|
522
520
|
};
|
|
523
521
|
}
|
|
524
|
-
function
|
|
525
|
-
const payload = {
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
);
|
|
522
|
+
function updateSubscriptionOption2() {
|
|
523
|
+
const payload = {
|
|
524
|
+
subscriptionOption: { id: ":subscriptionOptionId" }
|
|
525
|
+
};
|
|
526
|
+
const getRequestOptions = updateSubscriptionOption(payload);
|
|
529
527
|
const getUrl = (context) => {
|
|
530
528
|
const { url } = getRequestOptions(context);
|
|
531
529
|
return url;
|
|
532
530
|
};
|
|
533
531
|
return {
|
|
534
532
|
getUrl,
|
|
535
|
-
httpMethod: "
|
|
536
|
-
path: "/v1/subscription-options/
|
|
537
|
-
pathParams: {},
|
|
533
|
+
httpMethod: "PATCH",
|
|
534
|
+
path: "/v1/subscription-options/{subscriptionOption.id}",
|
|
535
|
+
pathParams: { subscriptionOptionId: "subscriptionOptionId" },
|
|
538
536
|
__requestType: null,
|
|
539
537
|
__originalRequestType: null,
|
|
540
538
|
__responseType: null,
|
|
541
539
|
__originalResponseType: null
|
|
542
540
|
};
|
|
543
541
|
}
|
|
544
|
-
function
|
|
545
|
-
const payload = {
|
|
546
|
-
const getRequestOptions =
|
|
547
|
-
payload
|
|
548
|
-
);
|
|
542
|
+
function deleteSubscriptionOption2() {
|
|
543
|
+
const payload = { id: ":id" };
|
|
544
|
+
const getRequestOptions = deleteSubscriptionOption(payload);
|
|
549
545
|
const getUrl = (context) => {
|
|
550
546
|
const { url } = getRequestOptions(context);
|
|
551
547
|
return url;
|
|
552
548
|
};
|
|
553
549
|
return {
|
|
554
550
|
getUrl,
|
|
555
|
-
httpMethod: "
|
|
556
|
-
path: "/v1/subscription-options/
|
|
557
|
-
pathParams: {
|
|
551
|
+
httpMethod: "DELETE",
|
|
552
|
+
path: "/v1/subscription-options/{id}",
|
|
553
|
+
pathParams: { id: "id" },
|
|
558
554
|
__requestType: null,
|
|
559
555
|
__originalRequestType: null,
|
|
560
556
|
__responseType: null,
|
|
561
557
|
__originalResponseType: null
|
|
562
558
|
};
|
|
563
559
|
}
|
|
564
|
-
function
|
|
565
|
-
const payload = {
|
|
566
|
-
const getRequestOptions =
|
|
560
|
+
function bulkCreateSubscriptionOptions2() {
|
|
561
|
+
const payload = {};
|
|
562
|
+
const getRequestOptions = bulkCreateSubscriptionOptions(
|
|
563
|
+
payload
|
|
564
|
+
);
|
|
567
565
|
const getUrl = (context) => {
|
|
568
566
|
const { url } = getRequestOptions(context);
|
|
569
567
|
return url;
|
|
570
568
|
};
|
|
571
569
|
return {
|
|
572
570
|
getUrl,
|
|
573
|
-
httpMethod: "
|
|
574
|
-
path: "/v1/subscription-options/
|
|
575
|
-
pathParams: {
|
|
571
|
+
httpMethod: "POST",
|
|
572
|
+
path: "/v1/subscription-options/createBulk",
|
|
573
|
+
pathParams: {},
|
|
576
574
|
__requestType: null,
|
|
577
575
|
__originalRequestType: null,
|
|
578
576
|
__responseType: null,
|
|
579
577
|
__originalResponseType: null
|
|
580
578
|
};
|
|
581
579
|
}
|
|
582
|
-
function
|
|
583
|
-
const payload = {
|
|
584
|
-
const getRequestOptions =
|
|
580
|
+
function bulkUpdateSubscriptionOptions2() {
|
|
581
|
+
const payload = {};
|
|
582
|
+
const getRequestOptions = bulkUpdateSubscriptionOptions(
|
|
583
|
+
payload
|
|
584
|
+
);
|
|
585
585
|
const getUrl = (context) => {
|
|
586
586
|
const { url } = getRequestOptions(context);
|
|
587
587
|
return url;
|
|
588
588
|
};
|
|
589
589
|
return {
|
|
590
590
|
getUrl,
|
|
591
|
-
httpMethod: "
|
|
592
|
-
path: "/v1/subscription-options
|
|
593
|
-
pathParams: {
|
|
591
|
+
httpMethod: "PATCH",
|
|
592
|
+
path: "/v1/subscription-options",
|
|
593
|
+
pathParams: {},
|
|
594
594
|
__requestType: null,
|
|
595
595
|
__originalRequestType: null,
|
|
596
596
|
__responseType: null,
|
|
597
597
|
__originalResponseType: null
|
|
598
598
|
};
|
|
599
599
|
}
|
|
600
|
-
function
|
|
601
|
-
const payload = {
|
|
602
|
-
const getRequestOptions =
|
|
600
|
+
function bulkDeleteSubscriptionOptions2() {
|
|
601
|
+
const payload = {};
|
|
602
|
+
const getRequestOptions = bulkDeleteSubscriptionOptions(
|
|
603
603
|
payload
|
|
604
604
|
);
|
|
605
605
|
const getUrl = (context) => {
|
|
@@ -608,18 +608,18 @@ function getSubscriptionOptionsForProduct2() {
|
|
|
608
608
|
};
|
|
609
609
|
return {
|
|
610
610
|
getUrl,
|
|
611
|
-
httpMethod: "
|
|
612
|
-
path: "/v1/subscription-options/
|
|
613
|
-
pathParams: {
|
|
611
|
+
httpMethod: "POST",
|
|
612
|
+
path: "/v1/subscription-options/deleteBulk",
|
|
613
|
+
pathParams: {},
|
|
614
614
|
__requestType: null,
|
|
615
615
|
__originalRequestType: null,
|
|
616
616
|
__responseType: null,
|
|
617
617
|
__originalResponseType: null
|
|
618
618
|
};
|
|
619
619
|
}
|
|
620
|
-
function
|
|
621
|
-
const payload = {
|
|
622
|
-
const getRequestOptions =
|
|
620
|
+
function assignSubscriptionOptionsToProduct2() {
|
|
621
|
+
const payload = { productId: ":productId" };
|
|
622
|
+
const getRequestOptions = assignSubscriptionOptionsToProduct(
|
|
623
623
|
payload
|
|
624
624
|
);
|
|
625
625
|
const getUrl = (context) => {
|
|
@@ -628,26 +628,26 @@ function getProductIdsForSubscriptionOption2() {
|
|
|
628
628
|
};
|
|
629
629
|
return {
|
|
630
630
|
getUrl,
|
|
631
|
-
httpMethod: "
|
|
632
|
-
path: "/v1/subscription-options/{
|
|
633
|
-
pathParams: {
|
|
631
|
+
httpMethod: "POST",
|
|
632
|
+
path: "/v1/subscription-options/product/{productId}/assign",
|
|
633
|
+
pathParams: { productId: "productId" },
|
|
634
634
|
__requestType: null,
|
|
635
635
|
__originalRequestType: null,
|
|
636
636
|
__responseType: null,
|
|
637
637
|
__originalResponseType: null
|
|
638
638
|
};
|
|
639
639
|
}
|
|
640
|
-
function
|
|
640
|
+
function allowOneTimePurchases2() {
|
|
641
641
|
const payload = { productId: ":productId" };
|
|
642
|
-
const getRequestOptions =
|
|
642
|
+
const getRequestOptions = allowOneTimePurchases(payload);
|
|
643
643
|
const getUrl = (context) => {
|
|
644
644
|
const { url } = getRequestOptions(context);
|
|
645
645
|
return url;
|
|
646
646
|
};
|
|
647
647
|
return {
|
|
648
648
|
getUrl,
|
|
649
|
-
httpMethod: "
|
|
650
|
-
path: "/v1/subscription-options/product/{productId}/
|
|
649
|
+
httpMethod: "PATCH",
|
|
650
|
+
path: "/v1/subscription-options/product/{productId}/allowOneTimePurchase",
|
|
651
651
|
pathParams: { productId: "productId" },
|
|
652
652
|
__requestType: null,
|
|
653
653
|
__originalRequestType: null,
|