@wix/auto_sdk_stores_subscription-options 1.0.32 → 1.0.33
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 +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 +276 -276
- 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 +276 -276
- 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 +276 -276
- 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
|
@@ -44,76 +44,76 @@ var import_float = require("@wix/sdk-runtime/transformations/float");
|
|
|
44
44
|
var import_float2 = require("@wix/sdk-runtime/transformations/float");
|
|
45
45
|
var import_transform_paths = require("@wix/sdk-runtime/transformations/transform-paths");
|
|
46
46
|
var import_rest_modules2 = require("@wix/sdk-runtime/rest-modules");
|
|
47
|
-
function
|
|
47
|
+
function resolveWixEcommerceSubscriptionOptionApiV1SubscriptionOptionsReadApiUrl(opts) {
|
|
48
48
|
const domainToMappings = {
|
|
49
49
|
"api._api_base_domain_": [
|
|
50
50
|
{
|
|
51
|
-
srcPath: "/wix-ecommerce-plans",
|
|
51
|
+
srcPath: "/wix-ecommerce-plans-reader",
|
|
52
52
|
destPath: ""
|
|
53
53
|
}
|
|
54
54
|
],
|
|
55
|
-
"www.
|
|
55
|
+
"www._base_domain_": [
|
|
56
56
|
{
|
|
57
|
-
srcPath: "/
|
|
58
|
-
destPath: "
|
|
57
|
+
srcPath: "/_api/wix-ecommerce-plans-reader",
|
|
58
|
+
destPath: ""
|
|
59
59
|
}
|
|
60
60
|
],
|
|
61
|
-
|
|
61
|
+
_: [
|
|
62
62
|
{
|
|
63
|
-
srcPath: "/_api/subscription-options-server",
|
|
63
|
+
srcPath: "/_api/subscription-options-reader-server",
|
|
64
64
|
destPath: ""
|
|
65
65
|
}
|
|
66
66
|
],
|
|
67
|
-
"
|
|
67
|
+
"manage._base_domain_": [
|
|
68
68
|
{
|
|
69
|
-
srcPath: "/_api/subscription-options-server",
|
|
69
|
+
srcPath: "/_api/subscription-options-reader-server",
|
|
70
70
|
destPath: ""
|
|
71
71
|
}
|
|
72
|
-
]
|
|
73
|
-
|
|
72
|
+
]
|
|
73
|
+
};
|
|
74
|
+
return (0, import_rest_modules2.resolveUrl)(Object.assign(opts, { domainToMappings }));
|
|
75
|
+
}
|
|
76
|
+
function resolveWixEcommerceSubscriptionOptionApiV1SubscriptionOptionsWriteApiUrl(opts) {
|
|
77
|
+
const domainToMappings = {
|
|
78
|
+
"api._api_base_domain_": [
|
|
74
79
|
{
|
|
75
|
-
srcPath: "/
|
|
80
|
+
srcPath: "/wix-ecommerce-plans",
|
|
76
81
|
destPath: ""
|
|
77
82
|
}
|
|
78
83
|
],
|
|
79
|
-
"
|
|
84
|
+
"www.wixapis.com": [
|
|
80
85
|
{
|
|
81
|
-
srcPath: "/
|
|
82
|
-
destPath: ""
|
|
86
|
+
srcPath: "/stores/v1/subscription-options",
|
|
87
|
+
destPath: "/v1/subscription-options"
|
|
83
88
|
}
|
|
84
89
|
],
|
|
85
|
-
"
|
|
90
|
+
"www._base_domain_": [
|
|
86
91
|
{
|
|
87
92
|
srcPath: "/_api/subscription-options-server",
|
|
88
93
|
destPath: ""
|
|
89
94
|
}
|
|
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_": [
|
|
95
|
+
],
|
|
96
|
+
"editor._base_domain_": [
|
|
97
97
|
{
|
|
98
|
-
srcPath: "/
|
|
98
|
+
srcPath: "/_api/subscription-options-server",
|
|
99
99
|
destPath: ""
|
|
100
100
|
}
|
|
101
101
|
],
|
|
102
|
-
"
|
|
102
|
+
"blocks._base_domain_": [
|
|
103
103
|
{
|
|
104
|
-
srcPath: "/_api/
|
|
104
|
+
srcPath: "/_api/subscription-options-server",
|
|
105
105
|
destPath: ""
|
|
106
106
|
}
|
|
107
107
|
],
|
|
108
|
-
|
|
108
|
+
"create.editorx": [
|
|
109
109
|
{
|
|
110
|
-
srcPath: "/_api/subscription-options-
|
|
110
|
+
srcPath: "/_api/subscription-options-server",
|
|
111
111
|
destPath: ""
|
|
112
112
|
}
|
|
113
113
|
],
|
|
114
114
|
"manage._base_domain_": [
|
|
115
115
|
{
|
|
116
|
-
srcPath: "/_api/subscription-options-
|
|
116
|
+
srcPath: "/_api/subscription-options-server",
|
|
117
117
|
destPath: ""
|
|
118
118
|
}
|
|
119
119
|
]
|
|
@@ -121,106 +121,6 @@ function resolveWixEcommerceSubscriptionOptionApiV1SubscriptionOptionsReadApiUrl
|
|
|
121
121
|
return (0, import_rest_modules2.resolveUrl)(Object.assign(opts, { domainToMappings }));
|
|
122
122
|
}
|
|
123
123
|
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
124
|
function createSubscriptionOption(payload) {
|
|
225
125
|
function __createSubscriptionOption({ host }) {
|
|
226
126
|
const serializedData = (0, import_transform_paths.transformPaths)(payload, [
|
|
@@ -470,6 +370,106 @@ function enableCustomerCancellation(payload) {
|
|
|
470
370
|
}
|
|
471
371
|
return __enableCustomerCancellation;
|
|
472
372
|
}
|
|
373
|
+
function getSubscriptionOption(payload) {
|
|
374
|
+
function __getSubscriptionOption({ host }) {
|
|
375
|
+
const metadata = {
|
|
376
|
+
entityFqdn: "wix.stores.v1.subscription_option",
|
|
377
|
+
method: "GET",
|
|
378
|
+
methodFqn: "wix.ecommerce.subscription.option.api.v1.SubscriptionOptionsReadApi.GetSubscriptionOption",
|
|
379
|
+
packageName: PACKAGE_NAME,
|
|
380
|
+
migrationOptions: {
|
|
381
|
+
optInTransformResponse: true
|
|
382
|
+
},
|
|
383
|
+
url: resolveWixEcommerceSubscriptionOptionApiV1SubscriptionOptionsReadApiUrl(
|
|
384
|
+
{ protoPath: "/v1/subscription-options/{id}", data: payload, host }
|
|
385
|
+
),
|
|
386
|
+
params: (0, import_rest_modules.toURLSearchParams)(payload),
|
|
387
|
+
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
388
|
+
{
|
|
389
|
+
transformFn: import_float2.transformRESTFloatToSDKFloat,
|
|
390
|
+
paths: [{ path: "subscriptionOption.discount.value" }]
|
|
391
|
+
}
|
|
392
|
+
])
|
|
393
|
+
};
|
|
394
|
+
return metadata;
|
|
395
|
+
}
|
|
396
|
+
return __getSubscriptionOption;
|
|
397
|
+
}
|
|
398
|
+
function getSubscriptionOptionsForProduct(payload) {
|
|
399
|
+
function __getSubscriptionOptionsForProduct({ host }) {
|
|
400
|
+
const metadata = {
|
|
401
|
+
entityFqdn: "wix.stores.v1.subscription_option",
|
|
402
|
+
method: "GET",
|
|
403
|
+
methodFqn: "wix.ecommerce.subscription.option.api.v1.SubscriptionOptionsReadApi.GetSubscriptionOptionsForProduct",
|
|
404
|
+
packageName: PACKAGE_NAME,
|
|
405
|
+
migrationOptions: {
|
|
406
|
+
optInTransformResponse: true
|
|
407
|
+
},
|
|
408
|
+
url: resolveWixEcommerceSubscriptionOptionApiV1SubscriptionOptionsReadApiUrl(
|
|
409
|
+
{
|
|
410
|
+
protoPath: "/v1/subscription-options/byProduct/{productId}",
|
|
411
|
+
data: payload,
|
|
412
|
+
host
|
|
413
|
+
}
|
|
414
|
+
),
|
|
415
|
+
params: (0, import_rest_modules.toURLSearchParams)(payload),
|
|
416
|
+
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
417
|
+
{
|
|
418
|
+
transformFn: import_float2.transformRESTFloatToSDKFloat,
|
|
419
|
+
paths: [{ path: "subscriptionOptions.discount.value" }]
|
|
420
|
+
}
|
|
421
|
+
])
|
|
422
|
+
};
|
|
423
|
+
return metadata;
|
|
424
|
+
}
|
|
425
|
+
return __getSubscriptionOptionsForProduct;
|
|
426
|
+
}
|
|
427
|
+
function getProductIdsForSubscriptionOption(payload) {
|
|
428
|
+
function __getProductIdsForSubscriptionOption({ host }) {
|
|
429
|
+
const metadata = {
|
|
430
|
+
entityFqdn: "wix.stores.v1.subscription_option",
|
|
431
|
+
method: "GET",
|
|
432
|
+
methodFqn: "wix.ecommerce.subscription.option.api.v1.SubscriptionOptionsReadApi.GetProductIdsForSubscriptionOption",
|
|
433
|
+
packageName: PACKAGE_NAME,
|
|
434
|
+
migrationOptions: {
|
|
435
|
+
optInTransformResponse: true
|
|
436
|
+
},
|
|
437
|
+
url: resolveWixEcommerceSubscriptionOptionApiV1SubscriptionOptionsReadApiUrl(
|
|
438
|
+
{
|
|
439
|
+
protoPath: "/v1/subscription-options/{id}/productIds",
|
|
440
|
+
data: payload,
|
|
441
|
+
host
|
|
442
|
+
}
|
|
443
|
+
),
|
|
444
|
+
params: (0, import_rest_modules.toURLSearchParams)(payload)
|
|
445
|
+
};
|
|
446
|
+
return metadata;
|
|
447
|
+
}
|
|
448
|
+
return __getProductIdsForSubscriptionOption;
|
|
449
|
+
}
|
|
450
|
+
function getOneTimePurchasesStatus(payload) {
|
|
451
|
+
function __getOneTimePurchasesStatus({ host }) {
|
|
452
|
+
const metadata = {
|
|
453
|
+
entityFqdn: "wix.stores.v1.subscription_option",
|
|
454
|
+
method: "GET",
|
|
455
|
+
methodFqn: "wix.ecommerce.subscription.option.api.v1.SubscriptionOptionsReadApi.GetOneTimePurchasesStatus",
|
|
456
|
+
packageName: PACKAGE_NAME,
|
|
457
|
+
migrationOptions: {
|
|
458
|
+
optInTransformResponse: true
|
|
459
|
+
},
|
|
460
|
+
url: resolveWixEcommerceSubscriptionOptionApiV1SubscriptionOptionsReadApiUrl(
|
|
461
|
+
{
|
|
462
|
+
protoPath: "/v1/subscription-options/product/{productId}/oneTimePurchasesStatus",
|
|
463
|
+
data: payload,
|
|
464
|
+
host
|
|
465
|
+
}
|
|
466
|
+
),
|
|
467
|
+
params: (0, import_rest_modules.toURLSearchParams)(payload)
|
|
468
|
+
};
|
|
469
|
+
return metadata;
|
|
470
|
+
}
|
|
471
|
+
return __getOneTimePurchasesStatus;
|
|
472
|
+
}
|
|
473
473
|
|
|
474
474
|
// src/stores-v1-subscription-option-subscription-options.types.ts
|
|
475
475
|
var SubscriptionFrequency = /* @__PURE__ */ ((SubscriptionFrequency2) => {
|
|
@@ -488,82 +488,6 @@ var DiscountType = /* @__PURE__ */ ((DiscountType2) => {
|
|
|
488
488
|
})(DiscountType || {});
|
|
489
489
|
|
|
490
490
|
// 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
491
|
function createSubscriptionOption2() {
|
|
568
492
|
const payload = {};
|
|
569
493
|
const getRequestOptions = createSubscriptionOption(payload);
|
|
@@ -736,6 +660,82 @@ function enableCustomerCancellation2() {
|
|
|
736
660
|
__originalResponseType: null
|
|
737
661
|
};
|
|
738
662
|
}
|
|
663
|
+
function getSubscriptionOption2() {
|
|
664
|
+
const payload = { id: ":id" };
|
|
665
|
+
const getRequestOptions = getSubscriptionOption(payload);
|
|
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}",
|
|
674
|
+
pathParams: { id: "id" },
|
|
675
|
+
__requestType: null,
|
|
676
|
+
__originalRequestType: null,
|
|
677
|
+
__responseType: null,
|
|
678
|
+
__originalResponseType: null
|
|
679
|
+
};
|
|
680
|
+
}
|
|
681
|
+
function getSubscriptionOptionsForProduct2() {
|
|
682
|
+
const payload = { productId: ":productId" };
|
|
683
|
+
const getRequestOptions = getSubscriptionOptionsForProduct(
|
|
684
|
+
payload
|
|
685
|
+
);
|
|
686
|
+
const getUrl = (context) => {
|
|
687
|
+
const { url } = getRequestOptions(context);
|
|
688
|
+
return url;
|
|
689
|
+
};
|
|
690
|
+
return {
|
|
691
|
+
getUrl,
|
|
692
|
+
httpMethod: "GET",
|
|
693
|
+
path: "/v1/subscription-options/byProduct/{productId}",
|
|
694
|
+
pathParams: { productId: "productId" },
|
|
695
|
+
__requestType: null,
|
|
696
|
+
__originalRequestType: null,
|
|
697
|
+
__responseType: null,
|
|
698
|
+
__originalResponseType: null
|
|
699
|
+
};
|
|
700
|
+
}
|
|
701
|
+
function getProductIdsForSubscriptionOption2() {
|
|
702
|
+
const payload = { id: ":id" };
|
|
703
|
+
const getRequestOptions = getProductIdsForSubscriptionOption(
|
|
704
|
+
payload
|
|
705
|
+
);
|
|
706
|
+
const getUrl = (context) => {
|
|
707
|
+
const { url } = getRequestOptions(context);
|
|
708
|
+
return url;
|
|
709
|
+
};
|
|
710
|
+
return {
|
|
711
|
+
getUrl,
|
|
712
|
+
httpMethod: "GET",
|
|
713
|
+
path: "/v1/subscription-options/{id}/productIds",
|
|
714
|
+
pathParams: { id: "id" },
|
|
715
|
+
__requestType: null,
|
|
716
|
+
__originalRequestType: null,
|
|
717
|
+
__responseType: null,
|
|
718
|
+
__originalResponseType: null
|
|
719
|
+
};
|
|
720
|
+
}
|
|
721
|
+
function getOneTimePurchasesStatus2() {
|
|
722
|
+
const payload = { productId: ":productId" };
|
|
723
|
+
const getRequestOptions = getOneTimePurchasesStatus(payload);
|
|
724
|
+
const getUrl = (context) => {
|
|
725
|
+
const { url } = getRequestOptions(context);
|
|
726
|
+
return url;
|
|
727
|
+
};
|
|
728
|
+
return {
|
|
729
|
+
getUrl,
|
|
730
|
+
httpMethod: "GET",
|
|
731
|
+
path: "/v1/subscription-options/product/{productId}/oneTimePurchasesStatus",
|
|
732
|
+
pathParams: { productId: "productId" },
|
|
733
|
+
__requestType: null,
|
|
734
|
+
__originalRequestType: null,
|
|
735
|
+
__responseType: null,
|
|
736
|
+
__originalResponseType: null
|
|
737
|
+
};
|
|
738
|
+
}
|
|
739
739
|
// Annotate the CommonJS export names for ESM import in node:
|
|
740
740
|
0 && (module.exports = {
|
|
741
741
|
DiscountTypeOriginal,
|