@wix/auto_sdk_stores_subscription-options 1.0.40 → 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 +42 -53
- package/build/cjs/index.js +234 -293
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +150 -175
- package/build/cjs/index.typings.js +205 -255
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.d.ts +108 -122
- package/build/cjs/meta.js +176 -219
- package/build/cjs/meta.js.map +1 -1
- package/build/es/index.d.mts +42 -53
- package/build/es/index.mjs +234 -292
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +150 -175
- package/build/es/index.typings.mjs +205 -254
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.d.mts +108 -122
- package/build/es/meta.mjs +176 -218
- package/build/es/meta.mjs.map +1 -1
- package/build/internal/cjs/index.d.ts +42 -53
- package/build/internal/cjs/index.js +234 -293
- package/build/internal/cjs/index.js.map +1 -1
- package/build/internal/cjs/index.typings.d.ts +150 -175
- package/build/internal/cjs/index.typings.js +205 -255
- package/build/internal/cjs/index.typings.js.map +1 -1
- package/build/internal/cjs/meta.d.ts +108 -122
- package/build/internal/cjs/meta.js +176 -219
- package/build/internal/cjs/meta.js.map +1 -1
- package/build/internal/es/index.d.mts +42 -53
- package/build/internal/es/index.mjs +234 -292
- package/build/internal/es/index.mjs.map +1 -1
- package/build/internal/es/index.typings.d.mts +150 -175
- package/build/internal/es/index.typings.mjs +205 -254
- package/build/internal/es/index.typings.mjs.map +1 -1
- package/build/internal/es/meta.d.mts +108 -122
- package/build/internal/es/meta.mjs +176 -218
- 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,76 +43,76 @@ 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
|
|
46
|
+
function resolveWixEcommerceSubscriptionOptionApiV1SubscriptionOptionsReadApiUrl(opts) {
|
|
48
47
|
const domainToMappings = {
|
|
49
48
|
"api._api_base_domain_": [
|
|
50
49
|
{
|
|
51
|
-
srcPath: "/wix-ecommerce-plans",
|
|
50
|
+
srcPath: "/wix-ecommerce-plans-reader",
|
|
52
51
|
destPath: ""
|
|
53
52
|
}
|
|
54
53
|
],
|
|
55
|
-
"www.
|
|
54
|
+
"www._base_domain_": [
|
|
56
55
|
{
|
|
57
|
-
srcPath: "/
|
|
58
|
-
destPath: "
|
|
56
|
+
srcPath: "/_api/wix-ecommerce-plans-reader",
|
|
57
|
+
destPath: ""
|
|
59
58
|
}
|
|
60
59
|
],
|
|
61
|
-
|
|
60
|
+
_: [
|
|
62
61
|
{
|
|
63
|
-
srcPath: "/_api/subscription-options-server",
|
|
62
|
+
srcPath: "/_api/subscription-options-reader-server",
|
|
64
63
|
destPath: ""
|
|
65
64
|
}
|
|
66
65
|
],
|
|
67
|
-
"
|
|
66
|
+
"manage._base_domain_": [
|
|
68
67
|
{
|
|
69
|
-
srcPath: "/_api/subscription-options-server",
|
|
68
|
+
srcPath: "/_api/subscription-options-reader-server",
|
|
70
69
|
destPath: ""
|
|
71
70
|
}
|
|
72
|
-
]
|
|
73
|
-
|
|
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_": [
|
|
74
78
|
{
|
|
75
|
-
srcPath: "/
|
|
79
|
+
srcPath: "/wix-ecommerce-plans",
|
|
76
80
|
destPath: ""
|
|
77
81
|
}
|
|
78
82
|
],
|
|
79
|
-
"
|
|
83
|
+
"www.wixapis.com": [
|
|
80
84
|
{
|
|
81
|
-
srcPath: "/
|
|
82
|
-
destPath: ""
|
|
85
|
+
srcPath: "/stores/v1/subscription-options",
|
|
86
|
+
destPath: "/v1/subscription-options"
|
|
83
87
|
}
|
|
84
88
|
],
|
|
85
|
-
"
|
|
89
|
+
"www._base_domain_": [
|
|
86
90
|
{
|
|
87
91
|
srcPath: "/_api/subscription-options-server",
|
|
88
92
|
destPath: ""
|
|
89
93
|
}
|
|
90
|
-
]
|
|
91
|
-
|
|
92
|
-
return (0, import_rest_modules2.resolveUrl)(Object.assign(opts, { domainToMappings }));
|
|
93
|
-
}
|
|
94
|
-
function resolveWixEcommerceSubscriptionOptionApiV1SubscriptionOptionsReadApiUrl(opts) {
|
|
95
|
-
const domainToMappings = {
|
|
96
|
-
"api._api_base_domain_": [
|
|
94
|
+
],
|
|
95
|
+
"editor._base_domain_": [
|
|
97
96
|
{
|
|
98
|
-
srcPath: "/
|
|
97
|
+
srcPath: "/_api/subscription-options-server",
|
|
99
98
|
destPath: ""
|
|
100
99
|
}
|
|
101
100
|
],
|
|
102
|
-
"
|
|
101
|
+
"blocks._base_domain_": [
|
|
103
102
|
{
|
|
104
|
-
srcPath: "/_api/
|
|
103
|
+
srcPath: "/_api/subscription-options-server",
|
|
105
104
|
destPath: ""
|
|
106
105
|
}
|
|
107
106
|
],
|
|
108
|
-
|
|
107
|
+
"create.editorx": [
|
|
109
108
|
{
|
|
110
|
-
srcPath: "/_api/subscription-options-
|
|
109
|
+
srcPath: "/_api/subscription-options-server",
|
|
111
110
|
destPath: ""
|
|
112
111
|
}
|
|
113
112
|
],
|
|
114
113
|
"manage._base_domain_": [
|
|
115
114
|
{
|
|
116
|
-
srcPath: "/_api/subscription-options-
|
|
115
|
+
srcPath: "/_api/subscription-options-server",
|
|
117
116
|
destPath: ""
|
|
118
117
|
}
|
|
119
118
|
]
|
|
@@ -121,106 +120,6 @@ function resolveWixEcommerceSubscriptionOptionApiV1SubscriptionOptionsReadApiUrl
|
|
|
121
120
|
return (0, import_rest_modules2.resolveUrl)(Object.assign(opts, { domainToMappings }));
|
|
122
121
|
}
|
|
123
122
|
var PACKAGE_NAME = "@wix/auto_sdk_stores_subscription-options";
|
|
124
|
-
function getSubscriptionOption(payload) {
|
|
125
|
-
function __getSubscriptionOption({ host }) {
|
|
126
|
-
const metadata = {
|
|
127
|
-
entityFqdn: "wix.stores.v1.subscription_option",
|
|
128
|
-
method: "GET",
|
|
129
|
-
methodFqn: "wix.ecommerce.subscription.option.api.v1.SubscriptionOptionsReadApi.GetSubscriptionOption",
|
|
130
|
-
packageName: PACKAGE_NAME,
|
|
131
|
-
migrationOptions: {
|
|
132
|
-
optInTransformResponse: true
|
|
133
|
-
},
|
|
134
|
-
url: resolveWixEcommerceSubscriptionOptionApiV1SubscriptionOptionsReadApiUrl(
|
|
135
|
-
{ protoPath: "/v1/subscription-options/{id}", data: payload, host }
|
|
136
|
-
),
|
|
137
|
-
params: (0, import_rest_modules.toURLSearchParams)(payload),
|
|
138
|
-
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
139
|
-
{
|
|
140
|
-
transformFn: import_float2.transformRESTFloatToSDKFloat,
|
|
141
|
-
paths: [{ path: "subscriptionOption.discount.value" }]
|
|
142
|
-
}
|
|
143
|
-
])
|
|
144
|
-
};
|
|
145
|
-
return metadata;
|
|
146
|
-
}
|
|
147
|
-
return __getSubscriptionOption;
|
|
148
|
-
}
|
|
149
|
-
function getSubscriptionOptionsForProduct(payload) {
|
|
150
|
-
function __getSubscriptionOptionsForProduct({ host }) {
|
|
151
|
-
const metadata = {
|
|
152
|
-
entityFqdn: "wix.stores.v1.subscription_option",
|
|
153
|
-
method: "GET",
|
|
154
|
-
methodFqn: "wix.ecommerce.subscription.option.api.v1.SubscriptionOptionsReadApi.GetSubscriptionOptionsForProduct",
|
|
155
|
-
packageName: PACKAGE_NAME,
|
|
156
|
-
migrationOptions: {
|
|
157
|
-
optInTransformResponse: true
|
|
158
|
-
},
|
|
159
|
-
url: resolveWixEcommerceSubscriptionOptionApiV1SubscriptionOptionsReadApiUrl(
|
|
160
|
-
{
|
|
161
|
-
protoPath: "/v1/subscription-options/byProduct/{productId}",
|
|
162
|
-
data: payload,
|
|
163
|
-
host
|
|
164
|
-
}
|
|
165
|
-
),
|
|
166
|
-
params: (0, import_rest_modules.toURLSearchParams)(payload),
|
|
167
|
-
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
168
|
-
{
|
|
169
|
-
transformFn: import_float2.transformRESTFloatToSDKFloat,
|
|
170
|
-
paths: [{ path: "subscriptionOptions.discount.value" }]
|
|
171
|
-
}
|
|
172
|
-
])
|
|
173
|
-
};
|
|
174
|
-
return metadata;
|
|
175
|
-
}
|
|
176
|
-
return __getSubscriptionOptionsForProduct;
|
|
177
|
-
}
|
|
178
|
-
function getProductIdsForSubscriptionOption(payload) {
|
|
179
|
-
function __getProductIdsForSubscriptionOption({ host }) {
|
|
180
|
-
const metadata = {
|
|
181
|
-
entityFqdn: "wix.stores.v1.subscription_option",
|
|
182
|
-
method: "GET",
|
|
183
|
-
methodFqn: "wix.ecommerce.subscription.option.api.v1.SubscriptionOptionsReadApi.GetProductIdsForSubscriptionOption",
|
|
184
|
-
packageName: PACKAGE_NAME,
|
|
185
|
-
migrationOptions: {
|
|
186
|
-
optInTransformResponse: true
|
|
187
|
-
},
|
|
188
|
-
url: resolveWixEcommerceSubscriptionOptionApiV1SubscriptionOptionsReadApiUrl(
|
|
189
|
-
{
|
|
190
|
-
protoPath: "/v1/subscription-options/{id}/productIds",
|
|
191
|
-
data: payload,
|
|
192
|
-
host
|
|
193
|
-
}
|
|
194
|
-
),
|
|
195
|
-
params: (0, import_rest_modules.toURLSearchParams)(payload)
|
|
196
|
-
};
|
|
197
|
-
return metadata;
|
|
198
|
-
}
|
|
199
|
-
return __getProductIdsForSubscriptionOption;
|
|
200
|
-
}
|
|
201
|
-
function getOneTimePurchasesStatus(payload) {
|
|
202
|
-
function __getOneTimePurchasesStatus({ host }) {
|
|
203
|
-
const metadata = {
|
|
204
|
-
entityFqdn: "wix.stores.v1.subscription_option",
|
|
205
|
-
method: "GET",
|
|
206
|
-
methodFqn: "wix.ecommerce.subscription.option.api.v1.SubscriptionOptionsReadApi.GetOneTimePurchasesStatus",
|
|
207
|
-
packageName: PACKAGE_NAME,
|
|
208
|
-
migrationOptions: {
|
|
209
|
-
optInTransformResponse: true
|
|
210
|
-
},
|
|
211
|
-
url: resolveWixEcommerceSubscriptionOptionApiV1SubscriptionOptionsReadApiUrl(
|
|
212
|
-
{
|
|
213
|
-
protoPath: "/v1/subscription-options/product/{productId}/oneTimePurchasesStatus",
|
|
214
|
-
data: payload,
|
|
215
|
-
host
|
|
216
|
-
}
|
|
217
|
-
),
|
|
218
|
-
params: (0, import_rest_modules.toURLSearchParams)(payload)
|
|
219
|
-
};
|
|
220
|
-
return metadata;
|
|
221
|
-
}
|
|
222
|
-
return __getOneTimePurchasesStatus;
|
|
223
|
-
}
|
|
224
123
|
function createSubscriptionOption(payload) {
|
|
225
124
|
function __createSubscriptionOption({ host }) {
|
|
226
125
|
const serializedData = (0, import_transform_paths.transformPaths)(payload, [
|
|
@@ -447,28 +346,105 @@ function allowOneTimePurchases(payload) {
|
|
|
447
346
|
}
|
|
448
347
|
return __allowOneTimePurchases;
|
|
449
348
|
}
|
|
450
|
-
function
|
|
451
|
-
function
|
|
349
|
+
function getSubscriptionOption(payload) {
|
|
350
|
+
function __getSubscriptionOption({ host }) {
|
|
452
351
|
const metadata = {
|
|
453
352
|
entityFqdn: "wix.stores.v1.subscription_option",
|
|
454
|
-
method: "
|
|
455
|
-
methodFqn: "wix.ecommerce.subscription.option.api.v1.
|
|
353
|
+
method: "GET",
|
|
354
|
+
methodFqn: "wix.ecommerce.subscription.option.api.v1.SubscriptionOptionsReadApi.GetSubscriptionOption",
|
|
456
355
|
packageName: PACKAGE_NAME,
|
|
457
356
|
migrationOptions: {
|
|
458
357
|
optInTransformResponse: true
|
|
459
358
|
},
|
|
460
|
-
url:
|
|
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, [
|
|
461
364
|
{
|
|
462
|
-
|
|
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}",
|
|
463
387
|
data: payload,
|
|
464
388
|
host
|
|
465
389
|
}
|
|
466
390
|
),
|
|
467
|
-
|
|
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)
|
|
468
444
|
};
|
|
469
445
|
return metadata;
|
|
470
446
|
}
|
|
471
|
-
return
|
|
447
|
+
return __getOneTimePurchasesStatus;
|
|
472
448
|
}
|
|
473
449
|
|
|
474
450
|
// src/stores-v1-subscription-option-subscription-options.types.ts
|
|
@@ -488,82 +464,6 @@ var DiscountType = /* @__PURE__ */ ((DiscountType2) => {
|
|
|
488
464
|
})(DiscountType || {});
|
|
489
465
|
|
|
490
466
|
// src/stores-v1-subscription-option-subscription-options.meta.ts
|
|
491
|
-
function getSubscriptionOption2() {
|
|
492
|
-
const payload = { id: ":id" };
|
|
493
|
-
const getRequestOptions = getSubscriptionOption(payload);
|
|
494
|
-
const getUrl = (context) => {
|
|
495
|
-
const { url } = getRequestOptions(context);
|
|
496
|
-
return url;
|
|
497
|
-
};
|
|
498
|
-
return {
|
|
499
|
-
getUrl,
|
|
500
|
-
httpMethod: "GET",
|
|
501
|
-
path: "/v1/subscription-options/{id}",
|
|
502
|
-
pathParams: { id: "id" },
|
|
503
|
-
__requestType: null,
|
|
504
|
-
__originalRequestType: null,
|
|
505
|
-
__responseType: null,
|
|
506
|
-
__originalResponseType: null
|
|
507
|
-
};
|
|
508
|
-
}
|
|
509
|
-
function getSubscriptionOptionsForProduct2() {
|
|
510
|
-
const payload = { productId: ":productId" };
|
|
511
|
-
const getRequestOptions = getSubscriptionOptionsForProduct(
|
|
512
|
-
payload
|
|
513
|
-
);
|
|
514
|
-
const getUrl = (context) => {
|
|
515
|
-
const { url } = getRequestOptions(context);
|
|
516
|
-
return url;
|
|
517
|
-
};
|
|
518
|
-
return {
|
|
519
|
-
getUrl,
|
|
520
|
-
httpMethod: "GET",
|
|
521
|
-
path: "/v1/subscription-options/byProduct/{productId}",
|
|
522
|
-
pathParams: { productId: "productId" },
|
|
523
|
-
__requestType: null,
|
|
524
|
-
__originalRequestType: null,
|
|
525
|
-
__responseType: null,
|
|
526
|
-
__originalResponseType: null
|
|
527
|
-
};
|
|
528
|
-
}
|
|
529
|
-
function getProductIdsForSubscriptionOption2() {
|
|
530
|
-
const payload = { id: ":id" };
|
|
531
|
-
const getRequestOptions = getProductIdsForSubscriptionOption(
|
|
532
|
-
payload
|
|
533
|
-
);
|
|
534
|
-
const getUrl = (context) => {
|
|
535
|
-
const { url } = getRequestOptions(context);
|
|
536
|
-
return url;
|
|
537
|
-
};
|
|
538
|
-
return {
|
|
539
|
-
getUrl,
|
|
540
|
-
httpMethod: "GET",
|
|
541
|
-
path: "/v1/subscription-options/{id}/productIds",
|
|
542
|
-
pathParams: { id: "id" },
|
|
543
|
-
__requestType: null,
|
|
544
|
-
__originalRequestType: null,
|
|
545
|
-
__responseType: null,
|
|
546
|
-
__originalResponseType: null
|
|
547
|
-
};
|
|
548
|
-
}
|
|
549
|
-
function getOneTimePurchasesStatus2() {
|
|
550
|
-
const payload = { productId: ":productId" };
|
|
551
|
-
const getRequestOptions = getOneTimePurchasesStatus(payload);
|
|
552
|
-
const getUrl = (context) => {
|
|
553
|
-
const { url } = getRequestOptions(context);
|
|
554
|
-
return url;
|
|
555
|
-
};
|
|
556
|
-
return {
|
|
557
|
-
getUrl,
|
|
558
|
-
httpMethod: "GET",
|
|
559
|
-
path: "/v1/subscription-options/product/{productId}/oneTimePurchasesStatus",
|
|
560
|
-
pathParams: { productId: "productId" },
|
|
561
|
-
__requestType: null,
|
|
562
|
-
__originalRequestType: null,
|
|
563
|
-
__responseType: null,
|
|
564
|
-
__originalResponseType: null
|
|
565
|
-
};
|
|
566
|
-
}
|
|
567
467
|
function createSubscriptionOption2() {
|
|
568
468
|
const payload = {};
|
|
569
469
|
const getRequestOptions = createSubscriptionOption(payload);
|
|
@@ -718,17 +618,75 @@ function allowOneTimePurchases2() {
|
|
|
718
618
|
__originalResponseType: null
|
|
719
619
|
};
|
|
720
620
|
}
|
|
721
|
-
function
|
|
621
|
+
function getSubscriptionOption2() {
|
|
622
|
+
const payload = { id: ":id" };
|
|
623
|
+
const getRequestOptions = getSubscriptionOption(payload);
|
|
624
|
+
const getUrl = (context) => {
|
|
625
|
+
const { url } = getRequestOptions(context);
|
|
626
|
+
return url;
|
|
627
|
+
};
|
|
628
|
+
return {
|
|
629
|
+
getUrl,
|
|
630
|
+
httpMethod: "GET",
|
|
631
|
+
path: "/v1/subscription-options/{id}",
|
|
632
|
+
pathParams: { id: "id" },
|
|
633
|
+
__requestType: null,
|
|
634
|
+
__originalRequestType: null,
|
|
635
|
+
__responseType: null,
|
|
636
|
+
__originalResponseType: null
|
|
637
|
+
};
|
|
638
|
+
}
|
|
639
|
+
function getSubscriptionOptionsForProduct2() {
|
|
640
|
+
const payload = { productId: ":productId" };
|
|
641
|
+
const getRequestOptions = getSubscriptionOptionsForProduct(
|
|
642
|
+
payload
|
|
643
|
+
);
|
|
644
|
+
const getUrl = (context) => {
|
|
645
|
+
const { url } = getRequestOptions(context);
|
|
646
|
+
return url;
|
|
647
|
+
};
|
|
648
|
+
return {
|
|
649
|
+
getUrl,
|
|
650
|
+
httpMethod: "GET",
|
|
651
|
+
path: "/v1/subscription-options/byProduct/{productId}",
|
|
652
|
+
pathParams: { productId: "productId" },
|
|
653
|
+
__requestType: null,
|
|
654
|
+
__originalRequestType: null,
|
|
655
|
+
__responseType: null,
|
|
656
|
+
__originalResponseType: null
|
|
657
|
+
};
|
|
658
|
+
}
|
|
659
|
+
function getProductIdsForSubscriptionOption2() {
|
|
660
|
+
const payload = { id: ":id" };
|
|
661
|
+
const getRequestOptions = getProductIdsForSubscriptionOption(
|
|
662
|
+
payload
|
|
663
|
+
);
|
|
664
|
+
const getUrl = (context) => {
|
|
665
|
+
const { url } = getRequestOptions(context);
|
|
666
|
+
return url;
|
|
667
|
+
};
|
|
668
|
+
return {
|
|
669
|
+
getUrl,
|
|
670
|
+
httpMethod: "GET",
|
|
671
|
+
path: "/v1/subscription-options/{id}/productIds",
|
|
672
|
+
pathParams: { id: "id" },
|
|
673
|
+
__requestType: null,
|
|
674
|
+
__originalRequestType: null,
|
|
675
|
+
__responseType: null,
|
|
676
|
+
__originalResponseType: null
|
|
677
|
+
};
|
|
678
|
+
}
|
|
679
|
+
function getOneTimePurchasesStatus2() {
|
|
722
680
|
const payload = { productId: ":productId" };
|
|
723
|
-
const getRequestOptions =
|
|
681
|
+
const getRequestOptions = getOneTimePurchasesStatus(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: "GET",
|
|
689
|
+
path: "/v1/subscription-options/product/{productId}/oneTimePurchasesStatus",
|
|
732
690
|
pathParams: { productId: "productId" },
|
|
733
691
|
__requestType: null,
|
|
734
692
|
__originalRequestType: null,
|
|
@@ -747,7 +705,6 @@ function enableCustomerCancellation2() {
|
|
|
747
705
|
bulkUpdateSubscriptionOptions,
|
|
748
706
|
createSubscriptionOption,
|
|
749
707
|
deleteSubscriptionOption,
|
|
750
|
-
enableCustomerCancellation,
|
|
751
708
|
getOneTimePurchasesStatus,
|
|
752
709
|
getProductIdsForSubscriptionOption,
|
|
753
710
|
getSubscriptionOption,
|