@wix/auto_sdk_stores_subscription-options 1.0.41 → 1.0.42
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 +276 -276
- 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 +276 -276
- 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 +276 -276
- 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 +276 -276
- 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 +2 -2
package/build/cjs/meta.js
CHANGED
|
@@ -43,76 +43,76 @@ 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
|
|
46
|
+
function resolveWixEcommerceSubscriptionOptionApiV1SubscriptionOptionsReadApiUrl(opts) {
|
|
47
47
|
const domainToMappings = {
|
|
48
48
|
"api._api_base_domain_": [
|
|
49
49
|
{
|
|
50
|
-
srcPath: "/wix-ecommerce-plans",
|
|
50
|
+
srcPath: "/wix-ecommerce-plans-reader",
|
|
51
51
|
destPath: ""
|
|
52
52
|
}
|
|
53
53
|
],
|
|
54
|
-
"www.
|
|
54
|
+
"www._base_domain_": [
|
|
55
55
|
{
|
|
56
|
-
srcPath: "/
|
|
57
|
-
destPath: "
|
|
56
|
+
srcPath: "/_api/wix-ecommerce-plans-reader",
|
|
57
|
+
destPath: ""
|
|
58
58
|
}
|
|
59
59
|
],
|
|
60
|
-
|
|
60
|
+
_: [
|
|
61
61
|
{
|
|
62
|
-
srcPath: "/_api/subscription-options-server",
|
|
62
|
+
srcPath: "/_api/subscription-options-reader-server",
|
|
63
63
|
destPath: ""
|
|
64
64
|
}
|
|
65
65
|
],
|
|
66
|
-
"
|
|
66
|
+
"manage._base_domain_": [
|
|
67
67
|
{
|
|
68
|
-
srcPath: "/_api/subscription-options-server",
|
|
68
|
+
srcPath: "/_api/subscription-options-reader-server",
|
|
69
69
|
destPath: ""
|
|
70
70
|
}
|
|
71
|
-
]
|
|
72
|
-
|
|
71
|
+
]
|
|
72
|
+
};
|
|
73
|
+
return (0, import_rest_modules2.resolveUrl)(Object.assign(opts, { domainToMappings }));
|
|
74
|
+
}
|
|
75
|
+
function resolveWixEcommerceSubscriptionOptionApiV1SubscriptionOptionsWriteApiUrl(opts) {
|
|
76
|
+
const domainToMappings = {
|
|
77
|
+
"api._api_base_domain_": [
|
|
73
78
|
{
|
|
74
|
-
srcPath: "/
|
|
79
|
+
srcPath: "/wix-ecommerce-plans",
|
|
75
80
|
destPath: ""
|
|
76
81
|
}
|
|
77
82
|
],
|
|
78
|
-
"
|
|
83
|
+
"www.wixapis.com": [
|
|
79
84
|
{
|
|
80
|
-
srcPath: "/
|
|
81
|
-
destPath: ""
|
|
85
|
+
srcPath: "/stores/v1/subscription-options",
|
|
86
|
+
destPath: "/v1/subscription-options"
|
|
82
87
|
}
|
|
83
88
|
],
|
|
84
|
-
"
|
|
89
|
+
"www._base_domain_": [
|
|
85
90
|
{
|
|
86
91
|
srcPath: "/_api/subscription-options-server",
|
|
87
92
|
destPath: ""
|
|
88
93
|
}
|
|
89
|
-
]
|
|
90
|
-
|
|
91
|
-
return (0, import_rest_modules2.resolveUrl)(Object.assign(opts, { domainToMappings }));
|
|
92
|
-
}
|
|
93
|
-
function resolveWixEcommerceSubscriptionOptionApiV1SubscriptionOptionsReadApiUrl(opts) {
|
|
94
|
-
const domainToMappings = {
|
|
95
|
-
"api._api_base_domain_": [
|
|
94
|
+
],
|
|
95
|
+
"editor._base_domain_": [
|
|
96
96
|
{
|
|
97
|
-
srcPath: "/
|
|
97
|
+
srcPath: "/_api/subscription-options-server",
|
|
98
98
|
destPath: ""
|
|
99
99
|
}
|
|
100
100
|
],
|
|
101
|
-
"
|
|
101
|
+
"blocks._base_domain_": [
|
|
102
102
|
{
|
|
103
|
-
srcPath: "/_api/
|
|
103
|
+
srcPath: "/_api/subscription-options-server",
|
|
104
104
|
destPath: ""
|
|
105
105
|
}
|
|
106
106
|
],
|
|
107
|
-
|
|
107
|
+
"create.editorx": [
|
|
108
108
|
{
|
|
109
|
-
srcPath: "/_api/subscription-options-
|
|
109
|
+
srcPath: "/_api/subscription-options-server",
|
|
110
110
|
destPath: ""
|
|
111
111
|
}
|
|
112
112
|
],
|
|
113
113
|
"manage._base_domain_": [
|
|
114
114
|
{
|
|
115
|
-
srcPath: "/_api/subscription-options-
|
|
115
|
+
srcPath: "/_api/subscription-options-server",
|
|
116
116
|
destPath: ""
|
|
117
117
|
}
|
|
118
118
|
]
|
|
@@ -120,106 +120,6 @@ function resolveWixEcommerceSubscriptionOptionApiV1SubscriptionOptionsReadApiUrl
|
|
|
120
120
|
return (0, import_rest_modules2.resolveUrl)(Object.assign(opts, { domainToMappings }));
|
|
121
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
|
-
}
|
|
223
123
|
function createSubscriptionOption(payload) {
|
|
224
124
|
function __createSubscriptionOption({ host }) {
|
|
225
125
|
const serializedData = (0, import_transform_paths.transformPaths)(payload, [
|
|
@@ -446,6 +346,106 @@ function allowOneTimePurchases(payload) {
|
|
|
446
346
|
}
|
|
447
347
|
return __allowOneTimePurchases;
|
|
448
348
|
}
|
|
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,57 +464,55 @@ 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 createSubscriptionOption2() {
|
|
468
|
+
const payload = {};
|
|
469
|
+
const getRequestOptions = createSubscriptionOption(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: "POST",
|
|
477
|
+
path: "/v1/subscription-options",
|
|
478
|
+
pathParams: {},
|
|
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 updateSubscriptionOption2() {
|
|
486
|
+
const payload = {
|
|
487
|
+
subscriptionOption: { id: ":subscriptionOptionId" }
|
|
488
|
+
};
|
|
489
|
+
const getRequestOptions = updateSubscriptionOption(payload);
|
|
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: "PATCH",
|
|
497
|
+
path: "/v1/subscription-options/{subscriptionOption.id}",
|
|
498
|
+
pathParams: { subscriptionOptionId: "subscriptionOptionId" },
|
|
499
499
|
__requestType: null,
|
|
500
500
|
__originalRequestType: null,
|
|
501
501
|
__responseType: null,
|
|
502
502
|
__originalResponseType: null
|
|
503
503
|
};
|
|
504
504
|
}
|
|
505
|
-
function
|
|
505
|
+
function deleteSubscriptionOption2() {
|
|
506
506
|
const payload = { id: ":id" };
|
|
507
|
-
const getRequestOptions =
|
|
508
|
-
payload
|
|
509
|
-
);
|
|
507
|
+
const getRequestOptions = deleteSubscriptionOption(payload);
|
|
510
508
|
const getUrl = (context) => {
|
|
511
509
|
const { url } = getRequestOptions(context);
|
|
512
510
|
return url;
|
|
513
511
|
};
|
|
514
512
|
return {
|
|
515
513
|
getUrl,
|
|
516
|
-
httpMethod: "
|
|
517
|
-
path: "/v1/subscription-options/{id}
|
|
514
|
+
httpMethod: "DELETE",
|
|
515
|
+
path: "/v1/subscription-options/{id}",
|
|
518
516
|
pathParams: { id: "id" },
|
|
519
517
|
__requestType: null,
|
|
520
518
|
__originalRequestType: null,
|
|
@@ -522,34 +520,38 @@ function getProductIdsForSubscriptionOption2() {
|
|
|
522
520
|
__originalResponseType: null
|
|
523
521
|
};
|
|
524
522
|
}
|
|
525
|
-
function
|
|
526
|
-
const payload = {
|
|
527
|
-
const getRequestOptions =
|
|
523
|
+
function bulkCreateSubscriptionOptions2() {
|
|
524
|
+
const payload = {};
|
|
525
|
+
const getRequestOptions = bulkCreateSubscriptionOptions(
|
|
526
|
+
payload
|
|
527
|
+
);
|
|
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: "POST",
|
|
535
|
+
path: "/v1/subscription-options/createBulk",
|
|
536
|
+
pathParams: {},
|
|
537
537
|
__requestType: null,
|
|
538
538
|
__originalRequestType: null,
|
|
539
539
|
__responseType: null,
|
|
540
540
|
__originalResponseType: null
|
|
541
541
|
};
|
|
542
542
|
}
|
|
543
|
-
function
|
|
543
|
+
function bulkUpdateSubscriptionOptions2() {
|
|
544
544
|
const payload = {};
|
|
545
|
-
const getRequestOptions =
|
|
545
|
+
const getRequestOptions = bulkUpdateSubscriptionOptions(
|
|
546
|
+
payload
|
|
547
|
+
);
|
|
546
548
|
const getUrl = (context) => {
|
|
547
549
|
const { url } = getRequestOptions(context);
|
|
548
550
|
return url;
|
|
549
551
|
};
|
|
550
552
|
return {
|
|
551
553
|
getUrl,
|
|
552
|
-
httpMethod: "
|
|
554
|
+
httpMethod: "PATCH",
|
|
553
555
|
path: "/v1/subscription-options",
|
|
554
556
|
pathParams: {},
|
|
555
557
|
__requestType: null,
|
|
@@ -558,87 +560,85 @@ function createSubscriptionOption2() {
|
|
|
558
560
|
__originalResponseType: null
|
|
559
561
|
};
|
|
560
562
|
}
|
|
561
|
-
function
|
|
562
|
-
const payload = {
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
563
|
+
function bulkDeleteSubscriptionOptions2() {
|
|
564
|
+
const payload = {};
|
|
565
|
+
const getRequestOptions = bulkDeleteSubscriptionOptions(
|
|
566
|
+
payload
|
|
567
|
+
);
|
|
566
568
|
const getUrl = (context) => {
|
|
567
569
|
const { url } = getRequestOptions(context);
|
|
568
570
|
return url;
|
|
569
571
|
};
|
|
570
572
|
return {
|
|
571
573
|
getUrl,
|
|
572
|
-
httpMethod: "
|
|
573
|
-
path: "/v1/subscription-options/
|
|
574
|
-
pathParams: {
|
|
574
|
+
httpMethod: "POST",
|
|
575
|
+
path: "/v1/subscription-options/deleteBulk",
|
|
576
|
+
pathParams: {},
|
|
575
577
|
__requestType: null,
|
|
576
578
|
__originalRequestType: null,
|
|
577
579
|
__responseType: null,
|
|
578
580
|
__originalResponseType: null
|
|
579
581
|
};
|
|
580
582
|
}
|
|
581
|
-
function
|
|
582
|
-
const payload = {
|
|
583
|
-
const getRequestOptions =
|
|
583
|
+
function assignSubscriptionOptionsToProduct2() {
|
|
584
|
+
const payload = { productId: ":productId" };
|
|
585
|
+
const getRequestOptions = assignSubscriptionOptionsToProduct(
|
|
586
|
+
payload
|
|
587
|
+
);
|
|
584
588
|
const getUrl = (context) => {
|
|
585
589
|
const { url } = getRequestOptions(context);
|
|
586
590
|
return url;
|
|
587
591
|
};
|
|
588
592
|
return {
|
|
589
593
|
getUrl,
|
|
590
|
-
httpMethod: "
|
|
591
|
-
path: "/v1/subscription-options/{
|
|
592
|
-
pathParams: {
|
|
594
|
+
httpMethod: "POST",
|
|
595
|
+
path: "/v1/subscription-options/product/{productId}/assign",
|
|
596
|
+
pathParams: { productId: "productId" },
|
|
593
597
|
__requestType: null,
|
|
594
598
|
__originalRequestType: null,
|
|
595
599
|
__responseType: null,
|
|
596
600
|
__originalResponseType: null
|
|
597
601
|
};
|
|
598
602
|
}
|
|
599
|
-
function
|
|
600
|
-
const payload = {};
|
|
601
|
-
const getRequestOptions =
|
|
602
|
-
payload
|
|
603
|
-
);
|
|
603
|
+
function allowOneTimePurchases2() {
|
|
604
|
+
const payload = { productId: ":productId" };
|
|
605
|
+
const getRequestOptions = allowOneTimePurchases(payload);
|
|
604
606
|
const getUrl = (context) => {
|
|
605
607
|
const { url } = getRequestOptions(context);
|
|
606
608
|
return url;
|
|
607
609
|
};
|
|
608
610
|
return {
|
|
609
611
|
getUrl,
|
|
610
|
-
httpMethod: "
|
|
611
|
-
path: "/v1/subscription-options/
|
|
612
|
-
pathParams: {},
|
|
612
|
+
httpMethod: "PATCH",
|
|
613
|
+
path: "/v1/subscription-options/product/{productId}/allowOneTimePurchase",
|
|
614
|
+
pathParams: { productId: "productId" },
|
|
613
615
|
__requestType: null,
|
|
614
616
|
__originalRequestType: null,
|
|
615
617
|
__responseType: null,
|
|
616
618
|
__originalResponseType: null
|
|
617
619
|
};
|
|
618
620
|
}
|
|
619
|
-
function
|
|
620
|
-
const payload = {};
|
|
621
|
-
const getRequestOptions =
|
|
622
|
-
payload
|
|
623
|
-
);
|
|
621
|
+
function getSubscriptionOption2() {
|
|
622
|
+
const payload = { id: ":id" };
|
|
623
|
+
const getRequestOptions = getSubscriptionOption(payload);
|
|
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: "GET",
|
|
631
|
+
path: "/v1/subscription-options/{id}",
|
|
632
|
+
pathParams: { id: "id" },
|
|
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 getSubscriptionOptionsForProduct2() {
|
|
640
|
+
const payload = { productId: ":productId" };
|
|
641
|
+
const getRequestOptions = getSubscriptionOptionsForProduct(
|
|
642
642
|
payload
|
|
643
643
|
);
|
|
644
644
|
const getUrl = (context) => {
|
|
@@ -647,18 +647,18 @@ function bulkDeleteSubscriptionOptions2() {
|
|
|
647
647
|
};
|
|
648
648
|
return {
|
|
649
649
|
getUrl,
|
|
650
|
-
httpMethod: "
|
|
651
|
-
path: "/v1/subscription-options/
|
|
652
|
-
pathParams: {},
|
|
650
|
+
httpMethod: "GET",
|
|
651
|
+
path: "/v1/subscription-options/byProduct/{productId}",
|
|
652
|
+
pathParams: { productId: "productId" },
|
|
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 getProductIdsForSubscriptionOption2() {
|
|
660
|
+
const payload = { id: ":id" };
|
|
661
|
+
const getRequestOptions = getProductIdsForSubscriptionOption(
|
|
662
662
|
payload
|
|
663
663
|
);
|
|
664
664
|
const getUrl = (context) => {
|
|
@@ -667,26 +667,26 @@ function assignSubscriptionOptionsToProduct2() {
|
|
|
667
667
|
};
|
|
668
668
|
return {
|
|
669
669
|
getUrl,
|
|
670
|
-
httpMethod: "
|
|
671
|
-
path: "/v1/subscription-options/
|
|
672
|
-
pathParams: {
|
|
670
|
+
httpMethod: "GET",
|
|
671
|
+
path: "/v1/subscription-options/{id}/productIds",
|
|
672
|
+
pathParams: { id: "id" },
|
|
673
673
|
__requestType: null,
|
|
674
674
|
__originalRequestType: null,
|
|
675
675
|
__responseType: null,
|
|
676
676
|
__originalResponseType: null
|
|
677
677
|
};
|
|
678
678
|
}
|
|
679
|
-
function
|
|
679
|
+
function getOneTimePurchasesStatus2() {
|
|
680
680
|
const payload = { productId: ":productId" };
|
|
681
|
-
const getRequestOptions =
|
|
681
|
+
const getRequestOptions = getOneTimePurchasesStatus(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: "GET",
|
|
689
|
+
path: "/v1/subscription-options/product/{productId}/oneTimePurchasesStatus",
|
|
690
690
|
pathParams: { productId: "productId" },
|
|
691
691
|
__requestType: null,
|
|
692
692
|
__originalRequestType: null,
|