@wix/auto_sdk_stores_subscription-options 1.0.33 → 1.0.34
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 +168 -168
- package/build/cjs/index.typings.js +233 -233
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.d.ts +119 -119
- package/build/cjs/meta.js +205 -205
- 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 +168 -168
- package/build/es/index.typings.mjs +233 -233
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.d.mts +119 -119
- package/build/es/meta.mjs +205 -205
- 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 +168 -168
- package/build/internal/cjs/index.typings.js +233 -233
- package/build/internal/cjs/index.typings.js.map +1 -1
- package/build/internal/cjs/meta.d.ts +119 -119
- package/build/internal/cjs/meta.js +205 -205
- 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 +168 -168
- package/build/internal/es/index.typings.mjs +233 -233
- package/build/internal/es/index.typings.mjs.map +1 -1
- package/build/internal/es/meta.d.mts +119 -119
- package/build/internal/es/meta.mjs +205 -205
- package/build/internal/es/meta.mjs.map +1 -1
- package/package.json +2 -2
package/build/es/meta.mjs
CHANGED
|
@@ -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, [
|
|
@@ -330,106 +430,6 @@ function enableCustomerCancellation(payload) {
|
|
|
330
430
|
}
|
|
331
431
|
return __enableCustomerCancellation;
|
|
332
432
|
}
|
|
333
|
-
function getSubscriptionOption(payload) {
|
|
334
|
-
function __getSubscriptionOption({ host }) {
|
|
335
|
-
const metadata = {
|
|
336
|
-
entityFqdn: "wix.stores.v1.subscription_option",
|
|
337
|
-
method: "GET",
|
|
338
|
-
methodFqn: "wix.ecommerce.subscription.option.api.v1.SubscriptionOptionsReadApi.GetSubscriptionOption",
|
|
339
|
-
packageName: PACKAGE_NAME,
|
|
340
|
-
migrationOptions: {
|
|
341
|
-
optInTransformResponse: true
|
|
342
|
-
},
|
|
343
|
-
url: resolveWixEcommerceSubscriptionOptionApiV1SubscriptionOptionsReadApiUrl(
|
|
344
|
-
{ protoPath: "/v1/subscription-options/{id}", data: payload, host }
|
|
345
|
-
),
|
|
346
|
-
params: toURLSearchParams(payload),
|
|
347
|
-
transformResponse: (payload2) => transformPaths(payload2, [
|
|
348
|
-
{
|
|
349
|
-
transformFn: transformRESTFloatToSDKFloat,
|
|
350
|
-
paths: [{ path: "subscriptionOption.discount.value" }]
|
|
351
|
-
}
|
|
352
|
-
])
|
|
353
|
-
};
|
|
354
|
-
return metadata;
|
|
355
|
-
}
|
|
356
|
-
return __getSubscriptionOption;
|
|
357
|
-
}
|
|
358
|
-
function getSubscriptionOptionsForProduct(payload) {
|
|
359
|
-
function __getSubscriptionOptionsForProduct({ host }) {
|
|
360
|
-
const metadata = {
|
|
361
|
-
entityFqdn: "wix.stores.v1.subscription_option",
|
|
362
|
-
method: "GET",
|
|
363
|
-
methodFqn: "wix.ecommerce.subscription.option.api.v1.SubscriptionOptionsReadApi.GetSubscriptionOptionsForProduct",
|
|
364
|
-
packageName: PACKAGE_NAME,
|
|
365
|
-
migrationOptions: {
|
|
366
|
-
optInTransformResponse: true
|
|
367
|
-
},
|
|
368
|
-
url: resolveWixEcommerceSubscriptionOptionApiV1SubscriptionOptionsReadApiUrl(
|
|
369
|
-
{
|
|
370
|
-
protoPath: "/v1/subscription-options/byProduct/{productId}",
|
|
371
|
-
data: payload,
|
|
372
|
-
host
|
|
373
|
-
}
|
|
374
|
-
),
|
|
375
|
-
params: toURLSearchParams(payload),
|
|
376
|
-
transformResponse: (payload2) => transformPaths(payload2, [
|
|
377
|
-
{
|
|
378
|
-
transformFn: transformRESTFloatToSDKFloat,
|
|
379
|
-
paths: [{ path: "subscriptionOptions.discount.value" }]
|
|
380
|
-
}
|
|
381
|
-
])
|
|
382
|
-
};
|
|
383
|
-
return metadata;
|
|
384
|
-
}
|
|
385
|
-
return __getSubscriptionOptionsForProduct;
|
|
386
|
-
}
|
|
387
|
-
function getProductIdsForSubscriptionOption(payload) {
|
|
388
|
-
function __getProductIdsForSubscriptionOption({ host }) {
|
|
389
|
-
const metadata = {
|
|
390
|
-
entityFqdn: "wix.stores.v1.subscription_option",
|
|
391
|
-
method: "GET",
|
|
392
|
-
methodFqn: "wix.ecommerce.subscription.option.api.v1.SubscriptionOptionsReadApi.GetProductIdsForSubscriptionOption",
|
|
393
|
-
packageName: PACKAGE_NAME,
|
|
394
|
-
migrationOptions: {
|
|
395
|
-
optInTransformResponse: true
|
|
396
|
-
},
|
|
397
|
-
url: resolveWixEcommerceSubscriptionOptionApiV1SubscriptionOptionsReadApiUrl(
|
|
398
|
-
{
|
|
399
|
-
protoPath: "/v1/subscription-options/{id}/productIds",
|
|
400
|
-
data: payload,
|
|
401
|
-
host
|
|
402
|
-
}
|
|
403
|
-
),
|
|
404
|
-
params: toURLSearchParams(payload)
|
|
405
|
-
};
|
|
406
|
-
return metadata;
|
|
407
|
-
}
|
|
408
|
-
return __getProductIdsForSubscriptionOption;
|
|
409
|
-
}
|
|
410
|
-
function getOneTimePurchasesStatus(payload) {
|
|
411
|
-
function __getOneTimePurchasesStatus({ host }) {
|
|
412
|
-
const metadata = {
|
|
413
|
-
entityFqdn: "wix.stores.v1.subscription_option",
|
|
414
|
-
method: "GET",
|
|
415
|
-
methodFqn: "wix.ecommerce.subscription.option.api.v1.SubscriptionOptionsReadApi.GetOneTimePurchasesStatus",
|
|
416
|
-
packageName: PACKAGE_NAME,
|
|
417
|
-
migrationOptions: {
|
|
418
|
-
optInTransformResponse: true
|
|
419
|
-
},
|
|
420
|
-
url: resolveWixEcommerceSubscriptionOptionApiV1SubscriptionOptionsReadApiUrl(
|
|
421
|
-
{
|
|
422
|
-
protoPath: "/v1/subscription-options/product/{productId}/oneTimePurchasesStatus",
|
|
423
|
-
data: payload,
|
|
424
|
-
host
|
|
425
|
-
}
|
|
426
|
-
),
|
|
427
|
-
params: toURLSearchParams(payload)
|
|
428
|
-
};
|
|
429
|
-
return metadata;
|
|
430
|
-
}
|
|
431
|
-
return __getOneTimePurchasesStatus;
|
|
432
|
-
}
|
|
433
433
|
|
|
434
434
|
// src/stores-v1-subscription-option-subscription-options.types.ts
|
|
435
435
|
var SubscriptionFrequency = /* @__PURE__ */ ((SubscriptionFrequency2) => {
|
|
@@ -448,6 +448,82 @@ var DiscountType = /* @__PURE__ */ ((DiscountType2) => {
|
|
|
448
448
|
})(DiscountType || {});
|
|
449
449
|
|
|
450
450
|
// src/stores-v1-subscription-option-subscription-options.meta.ts
|
|
451
|
+
function getSubscriptionOption2() {
|
|
452
|
+
const payload = { id: ":id" };
|
|
453
|
+
const getRequestOptions = getSubscriptionOption(payload);
|
|
454
|
+
const getUrl = (context) => {
|
|
455
|
+
const { url } = getRequestOptions(context);
|
|
456
|
+
return url;
|
|
457
|
+
};
|
|
458
|
+
return {
|
|
459
|
+
getUrl,
|
|
460
|
+
httpMethod: "GET",
|
|
461
|
+
path: "/v1/subscription-options/{id}",
|
|
462
|
+
pathParams: { id: "id" },
|
|
463
|
+
__requestType: null,
|
|
464
|
+
__originalRequestType: null,
|
|
465
|
+
__responseType: null,
|
|
466
|
+
__originalResponseType: null
|
|
467
|
+
};
|
|
468
|
+
}
|
|
469
|
+
function getSubscriptionOptionsForProduct2() {
|
|
470
|
+
const payload = { productId: ":productId" };
|
|
471
|
+
const getRequestOptions = getSubscriptionOptionsForProduct(
|
|
472
|
+
payload
|
|
473
|
+
);
|
|
474
|
+
const getUrl = (context) => {
|
|
475
|
+
const { url } = getRequestOptions(context);
|
|
476
|
+
return url;
|
|
477
|
+
};
|
|
478
|
+
return {
|
|
479
|
+
getUrl,
|
|
480
|
+
httpMethod: "GET",
|
|
481
|
+
path: "/v1/subscription-options/byProduct/{productId}",
|
|
482
|
+
pathParams: { productId: "productId" },
|
|
483
|
+
__requestType: null,
|
|
484
|
+
__originalRequestType: null,
|
|
485
|
+
__responseType: null,
|
|
486
|
+
__originalResponseType: null
|
|
487
|
+
};
|
|
488
|
+
}
|
|
489
|
+
function getProductIdsForSubscriptionOption2() {
|
|
490
|
+
const payload = { id: ":id" };
|
|
491
|
+
const getRequestOptions = getProductIdsForSubscriptionOption(
|
|
492
|
+
payload
|
|
493
|
+
);
|
|
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}/productIds",
|
|
502
|
+
pathParams: { id: "id" },
|
|
503
|
+
__requestType: null,
|
|
504
|
+
__originalRequestType: null,
|
|
505
|
+
__responseType: null,
|
|
506
|
+
__originalResponseType: null
|
|
507
|
+
};
|
|
508
|
+
}
|
|
509
|
+
function getOneTimePurchasesStatus2() {
|
|
510
|
+
const payload = { productId: ":productId" };
|
|
511
|
+
const getRequestOptions = getOneTimePurchasesStatus(payload);
|
|
512
|
+
const getUrl = (context) => {
|
|
513
|
+
const { url } = getRequestOptions(context);
|
|
514
|
+
return url;
|
|
515
|
+
};
|
|
516
|
+
return {
|
|
517
|
+
getUrl,
|
|
518
|
+
httpMethod: "GET",
|
|
519
|
+
path: "/v1/subscription-options/product/{productId}/oneTimePurchasesStatus",
|
|
520
|
+
pathParams: { productId: "productId" },
|
|
521
|
+
__requestType: null,
|
|
522
|
+
__originalRequestType: null,
|
|
523
|
+
__responseType: null,
|
|
524
|
+
__originalResponseType: null
|
|
525
|
+
};
|
|
526
|
+
}
|
|
451
527
|
function createSubscriptionOption2() {
|
|
452
528
|
const payload = {};
|
|
453
529
|
const getRequestOptions = createSubscriptionOption(payload);
|
|
@@ -620,82 +696,6 @@ function enableCustomerCancellation2() {
|
|
|
620
696
|
__originalResponseType: null
|
|
621
697
|
};
|
|
622
698
|
}
|
|
623
|
-
function getSubscriptionOption2() {
|
|
624
|
-
const payload = { id: ":id" };
|
|
625
|
-
const getRequestOptions = getSubscriptionOption(payload);
|
|
626
|
-
const getUrl = (context) => {
|
|
627
|
-
const { url } = getRequestOptions(context);
|
|
628
|
-
return url;
|
|
629
|
-
};
|
|
630
|
-
return {
|
|
631
|
-
getUrl,
|
|
632
|
-
httpMethod: "GET",
|
|
633
|
-
path: "/v1/subscription-options/{id}",
|
|
634
|
-
pathParams: { id: "id" },
|
|
635
|
-
__requestType: null,
|
|
636
|
-
__originalRequestType: null,
|
|
637
|
-
__responseType: null,
|
|
638
|
-
__originalResponseType: null
|
|
639
|
-
};
|
|
640
|
-
}
|
|
641
|
-
function getSubscriptionOptionsForProduct2() {
|
|
642
|
-
const payload = { productId: ":productId" };
|
|
643
|
-
const getRequestOptions = getSubscriptionOptionsForProduct(
|
|
644
|
-
payload
|
|
645
|
-
);
|
|
646
|
-
const getUrl = (context) => {
|
|
647
|
-
const { url } = getRequestOptions(context);
|
|
648
|
-
return url;
|
|
649
|
-
};
|
|
650
|
-
return {
|
|
651
|
-
getUrl,
|
|
652
|
-
httpMethod: "GET",
|
|
653
|
-
path: "/v1/subscription-options/byProduct/{productId}",
|
|
654
|
-
pathParams: { productId: "productId" },
|
|
655
|
-
__requestType: null,
|
|
656
|
-
__originalRequestType: null,
|
|
657
|
-
__responseType: null,
|
|
658
|
-
__originalResponseType: null
|
|
659
|
-
};
|
|
660
|
-
}
|
|
661
|
-
function getProductIdsForSubscriptionOption2() {
|
|
662
|
-
const payload = { id: ":id" };
|
|
663
|
-
const getRequestOptions = getProductIdsForSubscriptionOption(
|
|
664
|
-
payload
|
|
665
|
-
);
|
|
666
|
-
const getUrl = (context) => {
|
|
667
|
-
const { url } = getRequestOptions(context);
|
|
668
|
-
return url;
|
|
669
|
-
};
|
|
670
|
-
return {
|
|
671
|
-
getUrl,
|
|
672
|
-
httpMethod: "GET",
|
|
673
|
-
path: "/v1/subscription-options/{id}/productIds",
|
|
674
|
-
pathParams: { id: "id" },
|
|
675
|
-
__requestType: null,
|
|
676
|
-
__originalRequestType: null,
|
|
677
|
-
__responseType: null,
|
|
678
|
-
__originalResponseType: null
|
|
679
|
-
};
|
|
680
|
-
}
|
|
681
|
-
function getOneTimePurchasesStatus2() {
|
|
682
|
-
const payload = { productId: ":productId" };
|
|
683
|
-
const getRequestOptions = getOneTimePurchasesStatus(payload);
|
|
684
|
-
const getUrl = (context) => {
|
|
685
|
-
const { url } = getRequestOptions(context);
|
|
686
|
-
return url;
|
|
687
|
-
};
|
|
688
|
-
return {
|
|
689
|
-
getUrl,
|
|
690
|
-
httpMethod: "GET",
|
|
691
|
-
path: "/v1/subscription-options/product/{productId}/oneTimePurchasesStatus",
|
|
692
|
-
pathParams: { productId: "productId" },
|
|
693
|
-
__requestType: null,
|
|
694
|
-
__originalRequestType: null,
|
|
695
|
-
__responseType: null,
|
|
696
|
-
__originalResponseType: null
|
|
697
|
-
};
|
|
698
|
-
}
|
|
699
699
|
export {
|
|
700
700
|
DiscountType as DiscountTypeOriginal,
|
|
701
701
|
SubscriptionFrequency as SubscriptionFrequencyOriginal,
|