@wix/auto_sdk_stores_subscription-options 1.0.55 → 1.0.56
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/cjs/schemas.d.ts +84 -84
- package/build/cjs/schemas.js +104 -104
- package/build/cjs/schemas.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/es/schemas.d.mts +84 -84
- package/build/es/schemas.mjs +104 -104
- package/build/es/schemas.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/cjs/schemas.d.ts +84 -84
- package/build/internal/cjs/schemas.js +104 -104
- package/build/internal/cjs/schemas.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/build/internal/es/schemas.d.mts +84 -84
- package/build/internal/es/schemas.mjs +104 -104
- package/build/internal/es/schemas.mjs.map +1 -1
- package/package.json +2 -2
package/build/cjs/meta.js
CHANGED
|
@@ -43,35 +43,6 @@ var import_float = require("@wix/sdk-runtime/transformations/float");
|
|
|
43
43
|
var import_float2 = require("@wix/sdk-runtime/transformations/float");
|
|
44
44
|
var import_transform_paths = require("@wix/sdk-runtime/transformations/transform-paths");
|
|
45
45
|
var import_rest_modules2 = require("@wix/sdk-runtime/rest-modules");
|
|
46
|
-
function resolveWixEcommerceSubscriptionOptionApiV1SubscriptionOptionsReadApiUrl(opts) {
|
|
47
|
-
const domainToMappings = {
|
|
48
|
-
"api._api_base_domain_": [
|
|
49
|
-
{
|
|
50
|
-
srcPath: "/wix-ecommerce-plans-reader",
|
|
51
|
-
destPath: ""
|
|
52
|
-
}
|
|
53
|
-
],
|
|
54
|
-
"www._base_domain_": [
|
|
55
|
-
{
|
|
56
|
-
srcPath: "/_api/wix-ecommerce-plans-reader",
|
|
57
|
-
destPath: ""
|
|
58
|
-
}
|
|
59
|
-
],
|
|
60
|
-
_: [
|
|
61
|
-
{
|
|
62
|
-
srcPath: "/_api/subscription-options-reader-server",
|
|
63
|
-
destPath: ""
|
|
64
|
-
}
|
|
65
|
-
],
|
|
66
|
-
"manage._base_domain_": [
|
|
67
|
-
{
|
|
68
|
-
srcPath: "/_api/subscription-options-reader-server",
|
|
69
|
-
destPath: ""
|
|
70
|
-
}
|
|
71
|
-
]
|
|
72
|
-
};
|
|
73
|
-
return (0, import_rest_modules2.resolveUrl)(Object.assign(opts, { domainToMappings }));
|
|
74
|
-
}
|
|
75
46
|
function resolveWixEcommerceSubscriptionOptionApiV1SubscriptionOptionsWriteApiUrl(opts) {
|
|
76
47
|
const domainToMappings = {
|
|
77
48
|
"api._api_base_domain_": [
|
|
@@ -119,7 +90,136 @@ function resolveWixEcommerceSubscriptionOptionApiV1SubscriptionOptionsWriteApiUr
|
|
|
119
90
|
};
|
|
120
91
|
return (0, import_rest_modules2.resolveUrl)(Object.assign(opts, { domainToMappings }));
|
|
121
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
|
+
}
|
|
122
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
|
+
}
|
|
123
223
|
function createSubscriptionOption(payload) {
|
|
124
224
|
function __createSubscriptionOption({ host }) {
|
|
125
225
|
const serializedData = (0, import_transform_paths.transformPaths)(payload, [
|
|
@@ -346,106 +446,6 @@ function allowOneTimePurchases(payload) {
|
|
|
346
446
|
}
|
|
347
447
|
return __allowOneTimePurchases;
|
|
348
448
|
}
|
|
349
|
-
function getSubscriptionOption(payload) {
|
|
350
|
-
function __getSubscriptionOption({ host }) {
|
|
351
|
-
const metadata = {
|
|
352
|
-
entityFqdn: "wix.stores.v1.subscription_option",
|
|
353
|
-
method: "GET",
|
|
354
|
-
methodFqn: "wix.ecommerce.subscription.option.api.v1.SubscriptionOptionsReadApi.GetSubscriptionOption",
|
|
355
|
-
packageName: PACKAGE_NAME,
|
|
356
|
-
migrationOptions: {
|
|
357
|
-
optInTransformResponse: true
|
|
358
|
-
},
|
|
359
|
-
url: resolveWixEcommerceSubscriptionOptionApiV1SubscriptionOptionsReadApiUrl(
|
|
360
|
-
{ protoPath: "/v1/subscription-options/{id}", data: payload, host }
|
|
361
|
-
),
|
|
362
|
-
params: (0, import_rest_modules.toURLSearchParams)(payload),
|
|
363
|
-
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
364
|
-
{
|
|
365
|
-
transformFn: import_float2.transformRESTFloatToSDKFloat,
|
|
366
|
-
paths: [{ path: "subscriptionOption.discount.value" }]
|
|
367
|
-
}
|
|
368
|
-
])
|
|
369
|
-
};
|
|
370
|
-
return metadata;
|
|
371
|
-
}
|
|
372
|
-
return __getSubscriptionOption;
|
|
373
|
-
}
|
|
374
|
-
function getSubscriptionOptionsForProduct(payload) {
|
|
375
|
-
function __getSubscriptionOptionsForProduct({ host }) {
|
|
376
|
-
const metadata = {
|
|
377
|
-
entityFqdn: "wix.stores.v1.subscription_option",
|
|
378
|
-
method: "GET",
|
|
379
|
-
methodFqn: "wix.ecommerce.subscription.option.api.v1.SubscriptionOptionsReadApi.GetSubscriptionOptionsForProduct",
|
|
380
|
-
packageName: PACKAGE_NAME,
|
|
381
|
-
migrationOptions: {
|
|
382
|
-
optInTransformResponse: true
|
|
383
|
-
},
|
|
384
|
-
url: resolveWixEcommerceSubscriptionOptionApiV1SubscriptionOptionsReadApiUrl(
|
|
385
|
-
{
|
|
386
|
-
protoPath: "/v1/subscription-options/byProduct/{productId}",
|
|
387
|
-
data: payload,
|
|
388
|
-
host
|
|
389
|
-
}
|
|
390
|
-
),
|
|
391
|
-
params: (0, import_rest_modules.toURLSearchParams)(payload),
|
|
392
|
-
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
393
|
-
{
|
|
394
|
-
transformFn: import_float2.transformRESTFloatToSDKFloat,
|
|
395
|
-
paths: [{ path: "subscriptionOptions.discount.value" }]
|
|
396
|
-
}
|
|
397
|
-
])
|
|
398
|
-
};
|
|
399
|
-
return metadata;
|
|
400
|
-
}
|
|
401
|
-
return __getSubscriptionOptionsForProduct;
|
|
402
|
-
}
|
|
403
|
-
function getProductIdsForSubscriptionOption(payload) {
|
|
404
|
-
function __getProductIdsForSubscriptionOption({ host }) {
|
|
405
|
-
const metadata = {
|
|
406
|
-
entityFqdn: "wix.stores.v1.subscription_option",
|
|
407
|
-
method: "GET",
|
|
408
|
-
methodFqn: "wix.ecommerce.subscription.option.api.v1.SubscriptionOptionsReadApi.GetProductIdsForSubscriptionOption",
|
|
409
|
-
packageName: PACKAGE_NAME,
|
|
410
|
-
migrationOptions: {
|
|
411
|
-
optInTransformResponse: true
|
|
412
|
-
},
|
|
413
|
-
url: resolveWixEcommerceSubscriptionOptionApiV1SubscriptionOptionsReadApiUrl(
|
|
414
|
-
{
|
|
415
|
-
protoPath: "/v1/subscription-options/{id}/productIds",
|
|
416
|
-
data: payload,
|
|
417
|
-
host
|
|
418
|
-
}
|
|
419
|
-
),
|
|
420
|
-
params: (0, import_rest_modules.toURLSearchParams)(payload)
|
|
421
|
-
};
|
|
422
|
-
return metadata;
|
|
423
|
-
}
|
|
424
|
-
return __getProductIdsForSubscriptionOption;
|
|
425
|
-
}
|
|
426
|
-
function getOneTimePurchasesStatus(payload) {
|
|
427
|
-
function __getOneTimePurchasesStatus({ host }) {
|
|
428
|
-
const metadata = {
|
|
429
|
-
entityFqdn: "wix.stores.v1.subscription_option",
|
|
430
|
-
method: "GET",
|
|
431
|
-
methodFqn: "wix.ecommerce.subscription.option.api.v1.SubscriptionOptionsReadApi.GetOneTimePurchasesStatus",
|
|
432
|
-
packageName: PACKAGE_NAME,
|
|
433
|
-
migrationOptions: {
|
|
434
|
-
optInTransformResponse: true
|
|
435
|
-
},
|
|
436
|
-
url: resolveWixEcommerceSubscriptionOptionApiV1SubscriptionOptionsReadApiUrl(
|
|
437
|
-
{
|
|
438
|
-
protoPath: "/v1/subscription-options/product/{productId}/oneTimePurchasesStatus",
|
|
439
|
-
data: payload,
|
|
440
|
-
host
|
|
441
|
-
}
|
|
442
|
-
),
|
|
443
|
-
params: (0, import_rest_modules.toURLSearchParams)(payload)
|
|
444
|
-
};
|
|
445
|
-
return metadata;
|
|
446
|
-
}
|
|
447
|
-
return __getOneTimePurchasesStatus;
|
|
448
|
-
}
|
|
449
449
|
|
|
450
450
|
// src/stores-v1-subscription-option-subscription-options.types.ts
|
|
451
451
|
var SubscriptionFrequency = /* @__PURE__ */ ((SubscriptionFrequency2) => {
|
|
@@ -464,55 +464,57 @@ var DiscountType = /* @__PURE__ */ ((DiscountType2) => {
|
|
|
464
464
|
})(DiscountType || {});
|
|
465
465
|
|
|
466
466
|
// src/stores-v1-subscription-option-subscription-options.meta.ts
|
|
467
|
-
function
|
|
468
|
-
const payload = {};
|
|
469
|
-
const getRequestOptions =
|
|
467
|
+
function getSubscriptionOption2() {
|
|
468
|
+
const payload = { id: ":id" };
|
|
469
|
+
const getRequestOptions = getSubscriptionOption(payload);
|
|
470
470
|
const getUrl = (context) => {
|
|
471
471
|
const { url } = getRequestOptions(context);
|
|
472
472
|
return url;
|
|
473
473
|
};
|
|
474
474
|
return {
|
|
475
475
|
getUrl,
|
|
476
|
-
httpMethod: "
|
|
477
|
-
path: "/v1/subscription-options",
|
|
478
|
-
pathParams: {},
|
|
476
|
+
httpMethod: "GET",
|
|
477
|
+
path: "/v1/subscription-options/{id}",
|
|
478
|
+
pathParams: { id: "id" },
|
|
479
479
|
__requestType: null,
|
|
480
480
|
__originalRequestType: null,
|
|
481
481
|
__responseType: null,
|
|
482
482
|
__originalResponseType: null
|
|
483
483
|
};
|
|
484
484
|
}
|
|
485
|
-
function
|
|
486
|
-
const payload = {
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
485
|
+
function getSubscriptionOptionsForProduct2() {
|
|
486
|
+
const payload = { productId: ":productId" };
|
|
487
|
+
const getRequestOptions = getSubscriptionOptionsForProduct(
|
|
488
|
+
payload
|
|
489
|
+
);
|
|
490
490
|
const getUrl = (context) => {
|
|
491
491
|
const { url } = getRequestOptions(context);
|
|
492
492
|
return url;
|
|
493
493
|
};
|
|
494
494
|
return {
|
|
495
495
|
getUrl,
|
|
496
|
-
httpMethod: "
|
|
497
|
-
path: "/v1/subscription-options/{
|
|
498
|
-
pathParams: {
|
|
496
|
+
httpMethod: "GET",
|
|
497
|
+
path: "/v1/subscription-options/byProduct/{productId}",
|
|
498
|
+
pathParams: { productId: "productId" },
|
|
499
499
|
__requestType: null,
|
|
500
500
|
__originalRequestType: null,
|
|
501
501
|
__responseType: null,
|
|
502
502
|
__originalResponseType: null
|
|
503
503
|
};
|
|
504
504
|
}
|
|
505
|
-
function
|
|
505
|
+
function getProductIdsForSubscriptionOption2() {
|
|
506
506
|
const payload = { id: ":id" };
|
|
507
|
-
const getRequestOptions =
|
|
507
|
+
const getRequestOptions = getProductIdsForSubscriptionOption(
|
|
508
|
+
payload
|
|
509
|
+
);
|
|
508
510
|
const getUrl = (context) => {
|
|
509
511
|
const { url } = getRequestOptions(context);
|
|
510
512
|
return url;
|
|
511
513
|
};
|
|
512
514
|
return {
|
|
513
515
|
getUrl,
|
|
514
|
-
httpMethod: "
|
|
515
|
-
path: "/v1/subscription-options/{id}",
|
|
516
|
+
httpMethod: "GET",
|
|
517
|
+
path: "/v1/subscription-options/{id}/productIds",
|
|
516
518
|
pathParams: { id: "id" },
|
|
517
519
|
__requestType: null,
|
|
518
520
|
__originalRequestType: null,
|
|
@@ -520,38 +522,34 @@ function deleteSubscriptionOption2() {
|
|
|
520
522
|
__originalResponseType: null
|
|
521
523
|
};
|
|
522
524
|
}
|
|
523
|
-
function
|
|
524
|
-
const payload = {};
|
|
525
|
-
const getRequestOptions =
|
|
526
|
-
payload
|
|
527
|
-
);
|
|
525
|
+
function getOneTimePurchasesStatus2() {
|
|
526
|
+
const payload = { productId: ":productId" };
|
|
527
|
+
const getRequestOptions = getOneTimePurchasesStatus(payload);
|
|
528
528
|
const getUrl = (context) => {
|
|
529
529
|
const { url } = getRequestOptions(context);
|
|
530
530
|
return url;
|
|
531
531
|
};
|
|
532
532
|
return {
|
|
533
533
|
getUrl,
|
|
534
|
-
httpMethod: "
|
|
535
|
-
path: "/v1/subscription-options/
|
|
536
|
-
pathParams: {},
|
|
534
|
+
httpMethod: "GET",
|
|
535
|
+
path: "/v1/subscription-options/product/{productId}/oneTimePurchasesStatus",
|
|
536
|
+
pathParams: { productId: "productId" },
|
|
537
537
|
__requestType: null,
|
|
538
538
|
__originalRequestType: null,
|
|
539
539
|
__responseType: null,
|
|
540
540
|
__originalResponseType: null
|
|
541
541
|
};
|
|
542
542
|
}
|
|
543
|
-
function
|
|
543
|
+
function createSubscriptionOption2() {
|
|
544
544
|
const payload = {};
|
|
545
|
-
const getRequestOptions =
|
|
546
|
-
payload
|
|
547
|
-
);
|
|
545
|
+
const getRequestOptions = createSubscriptionOption(payload);
|
|
548
546
|
const getUrl = (context) => {
|
|
549
547
|
const { url } = getRequestOptions(context);
|
|
550
548
|
return url;
|
|
551
549
|
};
|
|
552
550
|
return {
|
|
553
551
|
getUrl,
|
|
554
|
-
httpMethod: "
|
|
552
|
+
httpMethod: "POST",
|
|
555
553
|
path: "/v1/subscription-options",
|
|
556
554
|
pathParams: {},
|
|
557
555
|
__requestType: null,
|
|
@@ -560,85 +558,87 @@ function bulkUpdateSubscriptionOptions2() {
|
|
|
560
558
|
__originalResponseType: null
|
|
561
559
|
};
|
|
562
560
|
}
|
|
563
|
-
function
|
|
564
|
-
const payload = {
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
);
|
|
561
|
+
function updateSubscriptionOption2() {
|
|
562
|
+
const payload = {
|
|
563
|
+
subscriptionOption: { id: ":subscriptionOptionId" }
|
|
564
|
+
};
|
|
565
|
+
const getRequestOptions = updateSubscriptionOption(payload);
|
|
568
566
|
const getUrl = (context) => {
|
|
569
567
|
const { url } = getRequestOptions(context);
|
|
570
568
|
return url;
|
|
571
569
|
};
|
|
572
570
|
return {
|
|
573
571
|
getUrl,
|
|
574
|
-
httpMethod: "
|
|
575
|
-
path: "/v1/subscription-options/
|
|
576
|
-
pathParams: {},
|
|
572
|
+
httpMethod: "PATCH",
|
|
573
|
+
path: "/v1/subscription-options/{subscriptionOption.id}",
|
|
574
|
+
pathParams: { subscriptionOptionId: "subscriptionOptionId" },
|
|
577
575
|
__requestType: null,
|
|
578
576
|
__originalRequestType: null,
|
|
579
577
|
__responseType: null,
|
|
580
578
|
__originalResponseType: null
|
|
581
579
|
};
|
|
582
580
|
}
|
|
583
|
-
function
|
|
584
|
-
const payload = {
|
|
585
|
-
const getRequestOptions =
|
|
586
|
-
payload
|
|
587
|
-
);
|
|
581
|
+
function deleteSubscriptionOption2() {
|
|
582
|
+
const payload = { id: ":id" };
|
|
583
|
+
const getRequestOptions = deleteSubscriptionOption(payload);
|
|
588
584
|
const getUrl = (context) => {
|
|
589
585
|
const { url } = getRequestOptions(context);
|
|
590
586
|
return url;
|
|
591
587
|
};
|
|
592
588
|
return {
|
|
593
589
|
getUrl,
|
|
594
|
-
httpMethod: "
|
|
595
|
-
path: "/v1/subscription-options/
|
|
596
|
-
pathParams: {
|
|
590
|
+
httpMethod: "DELETE",
|
|
591
|
+
path: "/v1/subscription-options/{id}",
|
|
592
|
+
pathParams: { id: "id" },
|
|
597
593
|
__requestType: null,
|
|
598
594
|
__originalRequestType: null,
|
|
599
595
|
__responseType: null,
|
|
600
596
|
__originalResponseType: null
|
|
601
597
|
};
|
|
602
598
|
}
|
|
603
|
-
function
|
|
604
|
-
const payload = {
|
|
605
|
-
const getRequestOptions =
|
|
599
|
+
function bulkCreateSubscriptionOptions2() {
|
|
600
|
+
const payload = {};
|
|
601
|
+
const getRequestOptions = bulkCreateSubscriptionOptions(
|
|
602
|
+
payload
|
|
603
|
+
);
|
|
606
604
|
const getUrl = (context) => {
|
|
607
605
|
const { url } = getRequestOptions(context);
|
|
608
606
|
return url;
|
|
609
607
|
};
|
|
610
608
|
return {
|
|
611
609
|
getUrl,
|
|
612
|
-
httpMethod: "
|
|
613
|
-
path: "/v1/subscription-options/
|
|
614
|
-
pathParams: {
|
|
610
|
+
httpMethod: "POST",
|
|
611
|
+
path: "/v1/subscription-options/createBulk",
|
|
612
|
+
pathParams: {},
|
|
615
613
|
__requestType: null,
|
|
616
614
|
__originalRequestType: null,
|
|
617
615
|
__responseType: null,
|
|
618
616
|
__originalResponseType: null
|
|
619
617
|
};
|
|
620
618
|
}
|
|
621
|
-
function
|
|
622
|
-
const payload = {
|
|
623
|
-
const getRequestOptions =
|
|
619
|
+
function bulkUpdateSubscriptionOptions2() {
|
|
620
|
+
const payload = {};
|
|
621
|
+
const getRequestOptions = bulkUpdateSubscriptionOptions(
|
|
622
|
+
payload
|
|
623
|
+
);
|
|
624
624
|
const getUrl = (context) => {
|
|
625
625
|
const { url } = getRequestOptions(context);
|
|
626
626
|
return url;
|
|
627
627
|
};
|
|
628
628
|
return {
|
|
629
629
|
getUrl,
|
|
630
|
-
httpMethod: "
|
|
631
|
-
path: "/v1/subscription-options
|
|
632
|
-
pathParams: {
|
|
630
|
+
httpMethod: "PATCH",
|
|
631
|
+
path: "/v1/subscription-options",
|
|
632
|
+
pathParams: {},
|
|
633
633
|
__requestType: null,
|
|
634
634
|
__originalRequestType: null,
|
|
635
635
|
__responseType: null,
|
|
636
636
|
__originalResponseType: null
|
|
637
637
|
};
|
|
638
638
|
}
|
|
639
|
-
function
|
|
640
|
-
const payload = {
|
|
641
|
-
const getRequestOptions =
|
|
639
|
+
function bulkDeleteSubscriptionOptions2() {
|
|
640
|
+
const payload = {};
|
|
641
|
+
const getRequestOptions = bulkDeleteSubscriptionOptions(
|
|
642
642
|
payload
|
|
643
643
|
);
|
|
644
644
|
const getUrl = (context) => {
|
|
@@ -647,18 +647,18 @@ function getSubscriptionOptionsForProduct2() {
|
|
|
647
647
|
};
|
|
648
648
|
return {
|
|
649
649
|
getUrl,
|
|
650
|
-
httpMethod: "
|
|
651
|
-
path: "/v1/subscription-options/
|
|
652
|
-
pathParams: {
|
|
650
|
+
httpMethod: "POST",
|
|
651
|
+
path: "/v1/subscription-options/deleteBulk",
|
|
652
|
+
pathParams: {},
|
|
653
653
|
__requestType: null,
|
|
654
654
|
__originalRequestType: null,
|
|
655
655
|
__responseType: null,
|
|
656
656
|
__originalResponseType: null
|
|
657
657
|
};
|
|
658
658
|
}
|
|
659
|
-
function
|
|
660
|
-
const payload = {
|
|
661
|
-
const getRequestOptions =
|
|
659
|
+
function assignSubscriptionOptionsToProduct2() {
|
|
660
|
+
const payload = { productId: ":productId" };
|
|
661
|
+
const getRequestOptions = assignSubscriptionOptionsToProduct(
|
|
662
662
|
payload
|
|
663
663
|
);
|
|
664
664
|
const getUrl = (context) => {
|
|
@@ -667,26 +667,26 @@ function getProductIdsForSubscriptionOption2() {
|
|
|
667
667
|
};
|
|
668
668
|
return {
|
|
669
669
|
getUrl,
|
|
670
|
-
httpMethod: "
|
|
671
|
-
path: "/v1/subscription-options/{
|
|
672
|
-
pathParams: {
|
|
670
|
+
httpMethod: "POST",
|
|
671
|
+
path: "/v1/subscription-options/product/{productId}/assign",
|
|
672
|
+
pathParams: { productId: "productId" },
|
|
673
673
|
__requestType: null,
|
|
674
674
|
__originalRequestType: null,
|
|
675
675
|
__responseType: null,
|
|
676
676
|
__originalResponseType: null
|
|
677
677
|
};
|
|
678
678
|
}
|
|
679
|
-
function
|
|
679
|
+
function allowOneTimePurchases2() {
|
|
680
680
|
const payload = { productId: ":productId" };
|
|
681
|
-
const getRequestOptions =
|
|
681
|
+
const getRequestOptions = allowOneTimePurchases(payload);
|
|
682
682
|
const getUrl = (context) => {
|
|
683
683
|
const { url } = getRequestOptions(context);
|
|
684
684
|
return url;
|
|
685
685
|
};
|
|
686
686
|
return {
|
|
687
687
|
getUrl,
|
|
688
|
-
httpMethod: "
|
|
689
|
-
path: "/v1/subscription-options/product/{productId}/
|
|
688
|
+
httpMethod: "PATCH",
|
|
689
|
+
path: "/v1/subscription-options/product/{productId}/allowOneTimePurchase",
|
|
690
690
|
pathParams: { productId: "productId" },
|
|
691
691
|
__requestType: null,
|
|
692
692
|
__originalRequestType: null,
|