@wix/auto_sdk_stores_subscription-options 1.0.0 → 1.0.2
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/src/stores-v1-subscription-option-subscription-options.context.d.ts +6 -6
- package/build/cjs/src/stores-v1-subscription-option-subscription-options.context.js +5 -5
- package/build/cjs/src/stores-v1-subscription-option-subscription-options.context.js.map +1 -1
- package/build/cjs/src/stores-v1-subscription-option-subscription-options.http.d.ts +21 -91
- package/build/cjs/src/stores-v1-subscription-option-subscription-options.http.js +129 -199
- package/build/cjs/src/stores-v1-subscription-option-subscription-options.http.js.map +1 -1
- package/build/cjs/src/stores-v1-subscription-option-subscription-options.meta.d.ts +12 -12
- package/build/cjs/src/stores-v1-subscription-option-subscription-options.meta.js +77 -77
- package/build/cjs/src/stores-v1-subscription-option-subscription-options.meta.js.map +1 -1
- package/build/cjs/src/stores-v1-subscription-option-subscription-options.public.d.ts +40 -110
- package/build/cjs/src/stores-v1-subscription-option-subscription-options.public.js +25 -25
- package/build/cjs/src/stores-v1-subscription-option-subscription-options.public.js.map +1 -1
- package/build/cjs/src/stores-v1-subscription-option-subscription-options.types.d.ts +188 -100
- package/build/cjs/src/stores-v1-subscription-option-subscription-options.types.js.map +1 -1
- package/build/cjs/src/stores-v1-subscription-option-subscription-options.universal.d.ts +299 -268
- package/build/cjs/src/stores-v1-subscription-option-subscription-options.universal.js +186 -256
- package/build/cjs/src/stores-v1-subscription-option-subscription-options.universal.js.map +1 -1
- package/build/es/src/stores-v1-subscription-option-subscription-options.context.d.ts +6 -6
- package/build/es/src/stores-v1-subscription-option-subscription-options.context.js +5 -5
- package/build/es/src/stores-v1-subscription-option-subscription-options.context.js.map +1 -1
- package/build/es/src/stores-v1-subscription-option-subscription-options.http.d.ts +21 -91
- package/build/es/src/stores-v1-subscription-option-subscription-options.http.js +124 -194
- package/build/es/src/stores-v1-subscription-option-subscription-options.http.js.map +1 -1
- package/build/es/src/stores-v1-subscription-option-subscription-options.meta.d.ts +12 -12
- package/build/es/src/stores-v1-subscription-option-subscription-options.meta.js +67 -67
- package/build/es/src/stores-v1-subscription-option-subscription-options.meta.js.map +1 -1
- package/build/es/src/stores-v1-subscription-option-subscription-options.public.d.ts +40 -110
- package/build/es/src/stores-v1-subscription-option-subscription-options.public.js +20 -20
- package/build/es/src/stores-v1-subscription-option-subscription-options.public.js.map +1 -1
- package/build/es/src/stores-v1-subscription-option-subscription-options.types.d.ts +188 -100
- package/build/es/src/stores-v1-subscription-option-subscription-options.types.js.map +1 -1
- package/build/es/src/stores-v1-subscription-option-subscription-options.universal.d.ts +299 -268
- package/build/es/src/stores-v1-subscription-option-subscription-options.universal.js +181 -251
- package/build/es/src/stores-v1-subscription-option-subscription-options.universal.js.map +1 -1
- package/build/internal/cjs/src/stores-v1-subscription-option-subscription-options.context.d.ts +6 -6
- package/build/internal/cjs/src/stores-v1-subscription-option-subscription-options.context.js +5 -5
- package/build/internal/cjs/src/stores-v1-subscription-option-subscription-options.context.js.map +1 -1
- package/build/internal/cjs/src/stores-v1-subscription-option-subscription-options.http.d.ts +21 -91
- package/build/internal/cjs/src/stores-v1-subscription-option-subscription-options.http.js +129 -199
- package/build/internal/cjs/src/stores-v1-subscription-option-subscription-options.http.js.map +1 -1
- package/build/internal/cjs/src/stores-v1-subscription-option-subscription-options.meta.d.ts +12 -12
- package/build/internal/cjs/src/stores-v1-subscription-option-subscription-options.meta.js +77 -77
- package/build/internal/cjs/src/stores-v1-subscription-option-subscription-options.meta.js.map +1 -1
- package/build/internal/cjs/src/stores-v1-subscription-option-subscription-options.public.d.ts +40 -110
- package/build/internal/cjs/src/stores-v1-subscription-option-subscription-options.public.js +25 -25
- package/build/internal/cjs/src/stores-v1-subscription-option-subscription-options.public.js.map +1 -1
- package/build/internal/cjs/src/stores-v1-subscription-option-subscription-options.types.d.ts +188 -100
- package/build/internal/cjs/src/stores-v1-subscription-option-subscription-options.types.js.map +1 -1
- package/build/internal/cjs/src/stores-v1-subscription-option-subscription-options.universal.d.ts +299 -268
- package/build/internal/cjs/src/stores-v1-subscription-option-subscription-options.universal.js +186 -256
- package/build/internal/cjs/src/stores-v1-subscription-option-subscription-options.universal.js.map +1 -1
- package/build/internal/es/src/stores-v1-subscription-option-subscription-options.context.d.ts +6 -6
- package/build/internal/es/src/stores-v1-subscription-option-subscription-options.context.js +5 -5
- package/build/internal/es/src/stores-v1-subscription-option-subscription-options.context.js.map +1 -1
- package/build/internal/es/src/stores-v1-subscription-option-subscription-options.http.d.ts +21 -91
- package/build/internal/es/src/stores-v1-subscription-option-subscription-options.http.js +124 -194
- package/build/internal/es/src/stores-v1-subscription-option-subscription-options.http.js.map +1 -1
- package/build/internal/es/src/stores-v1-subscription-option-subscription-options.meta.d.ts +12 -12
- package/build/internal/es/src/stores-v1-subscription-option-subscription-options.meta.js +67 -67
- package/build/internal/es/src/stores-v1-subscription-option-subscription-options.meta.js.map +1 -1
- package/build/internal/es/src/stores-v1-subscription-option-subscription-options.public.d.ts +40 -110
- package/build/internal/es/src/stores-v1-subscription-option-subscription-options.public.js +20 -20
- package/build/internal/es/src/stores-v1-subscription-option-subscription-options.public.js.map +1 -1
- package/build/internal/es/src/stores-v1-subscription-option-subscription-options.types.d.ts +188 -100
- package/build/internal/es/src/stores-v1-subscription-option-subscription-options.types.js.map +1 -1
- package/build/internal/es/src/stores-v1-subscription-option-subscription-options.universal.d.ts +299 -268
- package/build/internal/es/src/stores-v1-subscription-option-subscription-options.universal.js +181 -251
- package/build/internal/es/src/stores-v1-subscription-option-subscription-options.universal.js.map +1 -1
- package/package.json +2 -2
|
@@ -1,5 +1,9 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { getSubscriptionOption as publicGetSubscriptionOption, getSubscriptionOptionsForProduct as publicGetSubscriptionOptionsForProduct, getProductIdsForSubscriptionOption as publicGetProductIdsForSubscriptionOption, getOneTimePurchasesStatus as publicGetOneTimePurchasesStatus, createSubscriptionOption as publicCreateSubscriptionOption, updateSubscriptionOption as publicUpdateSubscriptionOption, deleteSubscriptionOption as publicDeleteSubscriptionOption, bulkCreateSubscriptionOptions as publicBulkCreateSubscriptionOptions, bulkUpdateSubscriptionOptions as publicBulkUpdateSubscriptionOptions, bulkDeleteSubscriptionOptions as publicBulkDeleteSubscriptionOptions, assignSubscriptionOptionsToProduct as publicAssignSubscriptionOptionsToProduct, allowOneTimePurchases as publicAllowOneTimePurchases } from './stores-v1-subscription-option-subscription-options.public.js';
|
|
2
2
|
import { BuildRESTFunction, MaybeContext } from '@wix/sdk-types';
|
|
3
|
+
export declare const getSubscriptionOption: MaybeContext<BuildRESTFunction<typeof publicGetSubscriptionOption> & typeof publicGetSubscriptionOption>;
|
|
4
|
+
export declare const getSubscriptionOptionsForProduct: MaybeContext<BuildRESTFunction<typeof publicGetSubscriptionOptionsForProduct> & typeof publicGetSubscriptionOptionsForProduct>;
|
|
5
|
+
export declare const getProductIdsForSubscriptionOption: MaybeContext<BuildRESTFunction<typeof publicGetProductIdsForSubscriptionOption> & typeof publicGetProductIdsForSubscriptionOption>;
|
|
6
|
+
export declare const getOneTimePurchasesStatus: MaybeContext<BuildRESTFunction<typeof publicGetOneTimePurchasesStatus> & typeof publicGetOneTimePurchasesStatus>;
|
|
3
7
|
export declare const createSubscriptionOption: MaybeContext<BuildRESTFunction<typeof publicCreateSubscriptionOption> & typeof publicCreateSubscriptionOption>;
|
|
4
8
|
export declare const updateSubscriptionOption: MaybeContext<BuildRESTFunction<typeof publicUpdateSubscriptionOption> & typeof publicUpdateSubscriptionOption>;
|
|
5
9
|
export declare const deleteSubscriptionOption: MaybeContext<BuildRESTFunction<typeof publicDeleteSubscriptionOption> & typeof publicDeleteSubscriptionOption>;
|
|
@@ -8,9 +12,5 @@ export declare const bulkUpdateSubscriptionOptions: MaybeContext<BuildRESTFuncti
|
|
|
8
12
|
export declare const bulkDeleteSubscriptionOptions: MaybeContext<BuildRESTFunction<typeof publicBulkDeleteSubscriptionOptions> & typeof publicBulkDeleteSubscriptionOptions>;
|
|
9
13
|
export declare const assignSubscriptionOptionsToProduct: MaybeContext<BuildRESTFunction<typeof publicAssignSubscriptionOptionsToProduct> & typeof publicAssignSubscriptionOptionsToProduct>;
|
|
10
14
|
export declare const allowOneTimePurchases: MaybeContext<BuildRESTFunction<typeof publicAllowOneTimePurchases> & typeof publicAllowOneTimePurchases>;
|
|
11
|
-
export declare const getSubscriptionOption: MaybeContext<BuildRESTFunction<typeof publicGetSubscriptionOption> & typeof publicGetSubscriptionOption>;
|
|
12
|
-
export declare const getSubscriptionOptionsForProduct: MaybeContext<BuildRESTFunction<typeof publicGetSubscriptionOptionsForProduct> & typeof publicGetSubscriptionOptionsForProduct>;
|
|
13
|
-
export declare const getProductIdsForSubscriptionOption: MaybeContext<BuildRESTFunction<typeof publicGetProductIdsForSubscriptionOption> & typeof publicGetProductIdsForSubscriptionOption>;
|
|
14
|
-
export declare const getOneTimePurchasesStatus: MaybeContext<BuildRESTFunction<typeof publicGetOneTimePurchasesStatus> & typeof publicGetOneTimePurchasesStatus>;
|
|
15
15
|
export { SubscriptionFrequency, DiscountType, } from './stores-v1-subscription-option-subscription-options.universal.js';
|
|
16
|
-
export { SubscriptionOption, SubscriptionSettings, Discount,
|
|
16
|
+
export { SubscriptionOption, SubscriptionSettings, Discount, GetSubscriptionOptionRequest, GetSubscriptionOptionResponse, GetSubscriptionOptionsForProductRequest, GetSubscriptionOptionsForProductResponse, SubscriptionOptionInProduct, ListSubscriptionOptionsRequest, ListSubscriptionOptionsResponse, CalculatePricesRequest, CalculatePricesResponse, SubscriptionOptionPrices, SubscriptionOptionPriceData, BulkCalculatePricesRequest, BulkCalculatePricesResponse, BulkCalculatePricesRequestV2, BulkCalculatePricesRequestItem, BulkCalculatePricesResponseV2, BulkCalculatePricesResponseItem, GetProductIdsForSubscriptionOptionRequest, Paging, GetProductIdsForSubscriptionOptionResponse, PagingMetadata, GetOneTimePurchasesStatusRequest, GetOneTimePurchasesStatusResponse, CreateSubscriptionOptionRequest, CreateSubscriptionOptionResponse, UpdateSubscriptionOptionRequest, UpdateSubscriptionOptionResponse, DeleteSubscriptionOptionRequest, DeleteSubscriptionOptionResponse, BulkCreateSubscriptionOptionsRequest, BulkCreateSubscriptionOptionsResponse, BulkUpdateSubscriptionOptionsRequest, BulkUpdateSubscriptionOptionsResponse, BulkDeleteSubscriptionOptionsRequest, BulkDeleteSubscriptionOptionsResponse, AssignSubscriptionOptionsToProductRequest, AssignSubscriptionOptionsToProductResponse, AllowOneTimePurchasesRequest, AllowOneTimePurchasesResponse, SubscriptionOptionNonNullableFields, GetSubscriptionOptionResponseNonNullableFields, GetSubscriptionOptionsForProductResponseNonNullableFields, GetProductIdsForSubscriptionOptionResponseNonNullableFields, GetOneTimePurchasesStatusResponseNonNullableFields, CreateSubscriptionOptionResponseNonNullableFields, UpdateSubscriptionOptionResponseNonNullableFields, BulkCreateSubscriptionOptionsResponseNonNullableFields, BulkUpdateSubscriptionOptionsResponseNonNullableFields, GetSubscriptionOptionsForProductOptions, GetProductIdsForSubscriptionOptionOptions, UpdateSubscriptionOption, AssignSubscriptionOptionsToProductOptions, } from './stores-v1-subscription-option-subscription-options.universal.js';
|
|
@@ -1,8 +1,12 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.DiscountType = exports.SubscriptionFrequency = exports.
|
|
3
|
+
exports.DiscountType = exports.SubscriptionFrequency = exports.allowOneTimePurchases = exports.assignSubscriptionOptionsToProduct = exports.bulkDeleteSubscriptionOptions = exports.bulkUpdateSubscriptionOptions = exports.bulkCreateSubscriptionOptions = exports.deleteSubscriptionOption = exports.updateSubscriptionOption = exports.createSubscriptionOption = exports.getOneTimePurchasesStatus = exports.getProductIdsForSubscriptionOption = exports.getSubscriptionOptionsForProduct = exports.getSubscriptionOption = void 0;
|
|
4
4
|
const stores_v1_subscription_option_subscription_options_public_js_1 = require("./stores-v1-subscription-option-subscription-options.public.js");
|
|
5
5
|
const rest_modules_1 = require("@wix/sdk-runtime/rest-modules");
|
|
6
|
+
exports.getSubscriptionOption = (0, rest_modules_1.createRESTModule)(stores_v1_subscription_option_subscription_options_public_js_1.getSubscriptionOption);
|
|
7
|
+
exports.getSubscriptionOptionsForProduct = (0, rest_modules_1.createRESTModule)(stores_v1_subscription_option_subscription_options_public_js_1.getSubscriptionOptionsForProduct);
|
|
8
|
+
exports.getProductIdsForSubscriptionOption = (0, rest_modules_1.createRESTModule)(stores_v1_subscription_option_subscription_options_public_js_1.getProductIdsForSubscriptionOption);
|
|
9
|
+
exports.getOneTimePurchasesStatus = (0, rest_modules_1.createRESTModule)(stores_v1_subscription_option_subscription_options_public_js_1.getOneTimePurchasesStatus);
|
|
6
10
|
exports.createSubscriptionOption = (0, rest_modules_1.createRESTModule)(stores_v1_subscription_option_subscription_options_public_js_1.createSubscriptionOption);
|
|
7
11
|
exports.updateSubscriptionOption = (0, rest_modules_1.createRESTModule)(stores_v1_subscription_option_subscription_options_public_js_1.updateSubscriptionOption);
|
|
8
12
|
exports.deleteSubscriptionOption = (0, rest_modules_1.createRESTModule)(stores_v1_subscription_option_subscription_options_public_js_1.deleteSubscriptionOption);
|
|
@@ -11,10 +15,6 @@ exports.bulkUpdateSubscriptionOptions = (0, rest_modules_1.createRESTModule)(sto
|
|
|
11
15
|
exports.bulkDeleteSubscriptionOptions = (0, rest_modules_1.createRESTModule)(stores_v1_subscription_option_subscription_options_public_js_1.bulkDeleteSubscriptionOptions);
|
|
12
16
|
exports.assignSubscriptionOptionsToProduct = (0, rest_modules_1.createRESTModule)(stores_v1_subscription_option_subscription_options_public_js_1.assignSubscriptionOptionsToProduct);
|
|
13
17
|
exports.allowOneTimePurchases = (0, rest_modules_1.createRESTModule)(stores_v1_subscription_option_subscription_options_public_js_1.allowOneTimePurchases);
|
|
14
|
-
exports.getSubscriptionOption = (0, rest_modules_1.createRESTModule)(stores_v1_subscription_option_subscription_options_public_js_1.getSubscriptionOption);
|
|
15
|
-
exports.getSubscriptionOptionsForProduct = (0, rest_modules_1.createRESTModule)(stores_v1_subscription_option_subscription_options_public_js_1.getSubscriptionOptionsForProduct);
|
|
16
|
-
exports.getProductIdsForSubscriptionOption = (0, rest_modules_1.createRESTModule)(stores_v1_subscription_option_subscription_options_public_js_1.getProductIdsForSubscriptionOption);
|
|
17
|
-
exports.getOneTimePurchasesStatus = (0, rest_modules_1.createRESTModule)(stores_v1_subscription_option_subscription_options_public_js_1.getOneTimePurchasesStatus);
|
|
18
18
|
var stores_v1_subscription_option_subscription_options_universal_js_1 = require("./stores-v1-subscription-option-subscription-options.universal.js");
|
|
19
19
|
Object.defineProperty(exports, "SubscriptionFrequency", { enumerable: true, get: function () { return stores_v1_subscription_option_subscription_options_universal_js_1.SubscriptionFrequency; } });
|
|
20
20
|
Object.defineProperty(exports, "DiscountType", { enumerable: true, get: function () { return stores_v1_subscription_option_subscription_options_universal_js_1.DiscountType; } });
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"stores-v1-subscription-option-subscription-options.context.js","sourceRoot":"","sources":["../../../src/stores-v1-subscription-option-subscription-options.context.ts"],"names":[],"mappings":";;;AAAA,iJAawE;AACxE,gEAAiE;AAGpD,QAAA,
|
|
1
|
+
{"version":3,"file":"stores-v1-subscription-option-subscription-options.context.js","sourceRoot":"","sources":["../../../src/stores-v1-subscription-option-subscription-options.context.ts"],"names":[],"mappings":";;;AAAA,iJAawE;AACxE,gEAAiE;AAGpD,QAAA,qBAAqB,GAGhB,IAAA,+BAAgB,EAAC,oFAA2B,CAAC,CAAC;AACnD,QAAA,gCAAgC,GAG3B,IAAA,+BAAgB,EAAC,+FAAsC,CAAC,CAAC;AAC9D,QAAA,kCAAkC,GAG7B,IAAA,+BAAgB,EAAC,iGAAwC,CAAC,CAAC;AAChE,QAAA,yBAAyB,GAGpB,IAAA,+BAAgB,EAAC,wFAA+B,CAAC,CAAC;AACvD,QAAA,wBAAwB,GAGnB,IAAA,+BAAgB,EAAC,uFAA8B,CAAC,CAAC;AACtD,QAAA,wBAAwB,GAGnB,IAAA,+BAAgB,EAAC,uFAA8B,CAAC,CAAC;AACtD,QAAA,wBAAwB,GAGnB,IAAA,+BAAgB,EAAC,uFAA8B,CAAC,CAAC;AACtD,QAAA,6BAA6B,GAGxB,IAAA,+BAAgB,EAAC,4FAAmC,CAAC,CAAC;AAC3D,QAAA,6BAA6B,GAGxB,IAAA,+BAAgB,EAAC,4FAAmC,CAAC,CAAC;AAC3D,QAAA,6BAA6B,GAGxB,IAAA,+BAAgB,EAAC,4FAAmC,CAAC,CAAC;AAC3D,QAAA,kCAAkC,GAG7B,IAAA,+BAAgB,EAAC,iGAAwC,CAAC,CAAC;AAChE,QAAA,qBAAqB,GAGhB,IAAA,+BAAgB,EAAC,oFAA2B,CAAC,CAAC;AAEhE,qJAG2E;AAFzE,wKAAA,qBAAqB,OAAA;AACrB,+JAAA,YAAY,OAAA"}
|
|
@@ -1,4 +1,25 @@
|
|
|
1
1
|
import { RequestOptionsFactory } from '@wix/sdk-types';
|
|
2
|
+
/**
|
|
3
|
+
* Retrieves a subscription option by ID.
|
|
4
|
+
* @deprecated
|
|
5
|
+
*/
|
|
6
|
+
export declare function getSubscriptionOption(payload: object): RequestOptionsFactory<any>;
|
|
7
|
+
/**
|
|
8
|
+
* Retrieves all subscription options assigned to a specified product.
|
|
9
|
+
* By default, hidden subscription options are not returned. To retrieve all subscription options you must pass `includeHiddenSubscriptionOptions = true`.
|
|
10
|
+
* @deprecated
|
|
11
|
+
*/
|
|
12
|
+
export declare function getSubscriptionOptionsForProduct(payload: object): RequestOptionsFactory<any>;
|
|
13
|
+
/**
|
|
14
|
+
* Retrieves the IDs of products associated with a specified subscription option.
|
|
15
|
+
* @deprecated
|
|
16
|
+
*/
|
|
17
|
+
export declare function getProductIdsForSubscriptionOption(payload: object): RequestOptionsFactory<any>;
|
|
18
|
+
/**
|
|
19
|
+
* Checks whether a specified product (associated with subscription options) is available for one-time purchase.
|
|
20
|
+
* @deprecated
|
|
21
|
+
*/
|
|
22
|
+
export declare function getOneTimePurchasesStatus(payload: object): RequestOptionsFactory<any>;
|
|
2
23
|
/**
|
|
3
24
|
* Creates a subscription option.
|
|
4
25
|
* To assign to a product, call [`assignSubscriptionOptionsToProduct()`](https://www.wix.com/velo/reference/wix-stores-v2/subscriptionoptions/assign-subscription-options-to-product).
|
|
@@ -9,25 +30,11 @@ export declare function createSubscriptionOption(payload: object): RequestOption
|
|
|
9
30
|
/**
|
|
10
31
|
* Updates a subscription option.
|
|
11
32
|
* Only parameters passed will be updated.
|
|
12
|
-
* <blockquote class='warning'>
|
|
13
|
-
*
|
|
14
|
-
* __Deprecation Notice:__
|
|
15
|
-
*
|
|
16
|
-
* This endpoint has been deprecated and will be removed on January 29, 2024.
|
|
17
|
-
*
|
|
18
|
-
* </blockquote>
|
|
19
33
|
* @deprecated
|
|
20
34
|
*/
|
|
21
35
|
export declare function updateSubscriptionOption(payload: object): RequestOptionsFactory<any>;
|
|
22
36
|
/**
|
|
23
37
|
* Deletes a subscription option.
|
|
24
|
-
* <blockquote class='warning'>
|
|
25
|
-
*
|
|
26
|
-
* __Deprecation Notice:__
|
|
27
|
-
*
|
|
28
|
-
* This endpoint has been deprecated and will be removed on January 29, 2024.
|
|
29
|
-
*
|
|
30
|
-
* </blockquote>
|
|
31
38
|
* @deprecated
|
|
32
39
|
*/
|
|
33
40
|
export declare function deleteSubscriptionOption(payload: object): RequestOptionsFactory<any>;
|
|
@@ -41,100 +48,23 @@ export declare function bulkCreateSubscriptionOptions(payload: object): RequestO
|
|
|
41
48
|
/**
|
|
42
49
|
* Updates multiple subscription options.
|
|
43
50
|
* Only parameters passed will be updated.
|
|
44
|
-
* <blockquote class='warning'>
|
|
45
|
-
*
|
|
46
|
-
* __Deprecation Notice:__
|
|
47
|
-
*
|
|
48
|
-
* This endpoint has been deprecated and will be removed on January 29, 2024.
|
|
49
|
-
*
|
|
50
|
-
* </blockquote>
|
|
51
51
|
* @deprecated
|
|
52
52
|
*/
|
|
53
53
|
export declare function bulkUpdateSubscriptionOptions(payload: object): RequestOptionsFactory<any>;
|
|
54
54
|
/**
|
|
55
55
|
* Deletes multiple subscription options.
|
|
56
|
-
* <blockquote class='warning'>
|
|
57
|
-
*
|
|
58
|
-
* __Deprecation Notice:__
|
|
59
|
-
*
|
|
60
|
-
* This endpoint has been deprecated and will be removed on January 29, 2024.
|
|
61
|
-
*
|
|
62
|
-
* </blockquote>
|
|
63
56
|
* @deprecated
|
|
64
57
|
*/
|
|
65
58
|
export declare function bulkDeleteSubscriptionOptions(payload: object): RequestOptionsFactory<any>;
|
|
66
59
|
/**
|
|
67
60
|
* Assign up to 6 subscription options to a specified product.
|
|
68
61
|
* Pass an empty array to remove all subscription options assigned to a product.
|
|
69
|
-
* <blockquote class='warning'>
|
|
70
|
-
*
|
|
71
|
-
* __Deprecation Notice:__
|
|
72
|
-
*
|
|
73
|
-
* This endpoint has been deprecated and will be removed on January 29, 2024.
|
|
74
|
-
*
|
|
75
|
-
* </blockquote>
|
|
76
62
|
* @deprecated
|
|
77
63
|
*/
|
|
78
64
|
export declare function assignSubscriptionOptionsToProduct(payload: object): RequestOptionsFactory<any>;
|
|
79
65
|
/**
|
|
80
66
|
* Allow for one-time purchase of a product.
|
|
81
67
|
* By default, product can be sold only as part of a subscription, not as a one-time purchase.
|
|
82
|
-
* <blockquote class='warning'>
|
|
83
|
-
*
|
|
84
|
-
* __Deprecation Notice:__
|
|
85
|
-
*
|
|
86
|
-
* This endpoint has been deprecated and will be removed on January 29, 2024.
|
|
87
|
-
*
|
|
88
|
-
* </blockquote>
|
|
89
68
|
* @deprecated
|
|
90
69
|
*/
|
|
91
70
|
export declare function allowOneTimePurchases(payload: object): RequestOptionsFactory<any>;
|
|
92
|
-
/**
|
|
93
|
-
* Retrieves a subscription option by ID.
|
|
94
|
-
* <blockquote class='warning'>
|
|
95
|
-
*
|
|
96
|
-
* __Deprecation Notice:__
|
|
97
|
-
*
|
|
98
|
-
* This endpoint has been deprecated and will be removed on January 29, 2024.
|
|
99
|
-
*
|
|
100
|
-
* </blockquote>
|
|
101
|
-
* @deprecated
|
|
102
|
-
*/
|
|
103
|
-
export declare function getSubscriptionOption(payload: object): RequestOptionsFactory<any>;
|
|
104
|
-
/**
|
|
105
|
-
* Retrieves all subscription options assigned to a specified product.
|
|
106
|
-
* By default, hidden subscription options are not returned. To retrieve all subscription options you must pass `includeHiddenSubscriptionOptions = true`.
|
|
107
|
-
* <blockquote class='warning'>
|
|
108
|
-
*
|
|
109
|
-
* __Deprecation Notice:__
|
|
110
|
-
*
|
|
111
|
-
* This endpoint has been deprecated and will be removed on January 29, 2024.
|
|
112
|
-
*
|
|
113
|
-
* </blockquote>
|
|
114
|
-
* @deprecated
|
|
115
|
-
*/
|
|
116
|
-
export declare function getSubscriptionOptionsForProduct(payload: object): RequestOptionsFactory<any>;
|
|
117
|
-
/**
|
|
118
|
-
* Retrieves the IDs of products associated with a specified subscription option.
|
|
119
|
-
* <blockquote class='warning'>
|
|
120
|
-
*
|
|
121
|
-
* __Deprecation Notice:__
|
|
122
|
-
*
|
|
123
|
-
* This endpoint has been deprecated and will be removed on January 29, 2024.
|
|
124
|
-
*
|
|
125
|
-
* </blockquote>
|
|
126
|
-
* @deprecated
|
|
127
|
-
*/
|
|
128
|
-
export declare function getProductIdsForSubscriptionOption(payload: object): RequestOptionsFactory<any>;
|
|
129
|
-
/**
|
|
130
|
-
* Checks whether a specified product (associated with subscription options) is available for one-time purchase.
|
|
131
|
-
* <blockquote class='warning'>
|
|
132
|
-
*
|
|
133
|
-
* __Deprecation Notice:__
|
|
134
|
-
*
|
|
135
|
-
* This endpoint has been deprecated and will be removed on January 29, 2024.
|
|
136
|
-
*
|
|
137
|
-
* </blockquote>
|
|
138
|
-
* @deprecated
|
|
139
|
-
*/
|
|
140
|
-
export declare function getOneTimePurchasesStatus(payload: object): RequestOptionsFactory<any>;
|
|
@@ -1,81 +1,81 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.allowOneTimePurchases = exports.assignSubscriptionOptionsToProduct = exports.bulkDeleteSubscriptionOptions = exports.bulkUpdateSubscriptionOptions = exports.bulkCreateSubscriptionOptions = exports.deleteSubscriptionOption = exports.updateSubscriptionOption = exports.createSubscriptionOption = exports.getOneTimePurchasesStatus = exports.getProductIdsForSubscriptionOption = exports.getSubscriptionOptionsForProduct = exports.getSubscriptionOption = void 0;
|
|
4
4
|
const rest_modules_1 = require("@wix/sdk-runtime/rest-modules");
|
|
5
5
|
const float_1 = require("@wix/sdk-runtime/transformations/float");
|
|
6
6
|
const float_2 = require("@wix/sdk-runtime/transformations/float");
|
|
7
7
|
const transform_paths_1 = require("@wix/sdk-runtime/transformations/transform-paths");
|
|
8
8
|
const rest_modules_2 = require("@wix/sdk-runtime/rest-modules");
|
|
9
|
-
function
|
|
9
|
+
function resolveWixEcommerceSubscriptionOptionApiV1SubscriptionOptionsWriteApiUrl(opts) {
|
|
10
10
|
const domainToMappings = {
|
|
11
11
|
'api._api_base_domain_': [
|
|
12
12
|
{
|
|
13
|
-
srcPath: '/wix-ecommerce-plans
|
|
13
|
+
srcPath: '/wix-ecommerce-plans',
|
|
14
14
|
destPath: '',
|
|
15
15
|
},
|
|
16
16
|
],
|
|
17
|
-
'www.
|
|
17
|
+
'www.wixapis.com': [
|
|
18
18
|
{
|
|
19
|
-
srcPath: '/
|
|
20
|
-
destPath: '',
|
|
19
|
+
srcPath: '/stores/v1/subscription-options',
|
|
20
|
+
destPath: '/v1/subscription-options',
|
|
21
21
|
},
|
|
22
22
|
],
|
|
23
|
-
|
|
23
|
+
'www._base_domain_': [
|
|
24
24
|
{
|
|
25
|
-
srcPath: '/_api/subscription-options-
|
|
25
|
+
srcPath: '/_api/subscription-options-server',
|
|
26
26
|
destPath: '',
|
|
27
27
|
},
|
|
28
28
|
],
|
|
29
|
-
'
|
|
29
|
+
'editor._base_domain_': [
|
|
30
30
|
{
|
|
31
|
-
srcPath: '/_api/subscription-options-
|
|
31
|
+
srcPath: '/_api/subscription-options-server',
|
|
32
32
|
destPath: '',
|
|
33
33
|
},
|
|
34
34
|
],
|
|
35
|
-
|
|
36
|
-
return (0, rest_modules_2.resolveUrl)(Object.assign(opts, { domainToMappings }));
|
|
37
|
-
}
|
|
38
|
-
function resolveWixEcommerceSubscriptionOptionApiV1SubscriptionOptionsWriteApiUrl(opts) {
|
|
39
|
-
const domainToMappings = {
|
|
40
|
-
'api._api_base_domain_': [
|
|
35
|
+
'blocks._base_domain_': [
|
|
41
36
|
{
|
|
42
|
-
srcPath: '/
|
|
37
|
+
srcPath: '/_api/subscription-options-server',
|
|
43
38
|
destPath: '',
|
|
44
39
|
},
|
|
45
40
|
],
|
|
46
|
-
'
|
|
41
|
+
'create.editorx': [
|
|
47
42
|
{
|
|
48
|
-
srcPath: '/
|
|
49
|
-
destPath: '
|
|
43
|
+
srcPath: '/_api/subscription-options-server',
|
|
44
|
+
destPath: '',
|
|
50
45
|
},
|
|
51
46
|
],
|
|
52
|
-
'
|
|
47
|
+
'manage._base_domain_': [
|
|
53
48
|
{
|
|
54
49
|
srcPath: '/_api/subscription-options-server',
|
|
55
50
|
destPath: '',
|
|
56
51
|
},
|
|
57
52
|
],
|
|
58
|
-
|
|
53
|
+
};
|
|
54
|
+
return (0, rest_modules_2.resolveUrl)(Object.assign(opts, { domainToMappings }));
|
|
55
|
+
}
|
|
56
|
+
function resolveWixEcommerceSubscriptionOptionApiV1SubscriptionOptionsReadApiUrl(opts) {
|
|
57
|
+
const domainToMappings = {
|
|
58
|
+
'api._api_base_domain_': [
|
|
59
59
|
{
|
|
60
|
-
srcPath: '/
|
|
60
|
+
srcPath: '/wix-ecommerce-plans-reader',
|
|
61
61
|
destPath: '',
|
|
62
62
|
},
|
|
63
63
|
],
|
|
64
|
-
'
|
|
64
|
+
'www._base_domain_': [
|
|
65
65
|
{
|
|
66
|
-
srcPath: '/_api/
|
|
66
|
+
srcPath: '/_api/wix-ecommerce-plans-reader',
|
|
67
67
|
destPath: '',
|
|
68
68
|
},
|
|
69
69
|
],
|
|
70
|
-
|
|
70
|
+
_: [
|
|
71
71
|
{
|
|
72
|
-
srcPath: '/_api/subscription-options-server',
|
|
72
|
+
srcPath: '/_api/subscription-options-reader-server',
|
|
73
73
|
destPath: '',
|
|
74
74
|
},
|
|
75
75
|
],
|
|
76
76
|
'manage._base_domain_': [
|
|
77
77
|
{
|
|
78
|
-
srcPath: '/_api/subscription-options-server',
|
|
78
|
+
srcPath: '/_api/subscription-options-reader-server',
|
|
79
79
|
destPath: '',
|
|
80
80
|
},
|
|
81
81
|
],
|
|
@@ -83,6 +83,107 @@ function resolveWixEcommerceSubscriptionOptionApiV1SubscriptionOptionsWriteApiUr
|
|
|
83
83
|
return (0, rest_modules_2.resolveUrl)(Object.assign(opts, { domainToMappings }));
|
|
84
84
|
}
|
|
85
85
|
const PACKAGE_NAME = '@wix/auto_sdk_stores_subscription-options';
|
|
86
|
+
/**
|
|
87
|
+
* Retrieves a subscription option by ID.
|
|
88
|
+
* @deprecated
|
|
89
|
+
*/
|
|
90
|
+
function getSubscriptionOption(payload) {
|
|
91
|
+
function __getSubscriptionOption({ host }) {
|
|
92
|
+
const metadata = {
|
|
93
|
+
entityFqdn: 'wix.stores.v1.subscription_option',
|
|
94
|
+
method: 'GET',
|
|
95
|
+
methodFqn: 'wix.ecommerce.subscription.option.api.v1.SubscriptionOptionsReadApi.GetSubscriptionOption',
|
|
96
|
+
packageName: PACKAGE_NAME,
|
|
97
|
+
url: resolveWixEcommerceSubscriptionOptionApiV1SubscriptionOptionsReadApiUrl({ protoPath: '/v1/subscription-options/{id}', data: payload, host }),
|
|
98
|
+
params: (0, rest_modules_1.toURLSearchParams)(payload),
|
|
99
|
+
transformResponse: (payload) => (0, transform_paths_1.transformPaths)(payload, [
|
|
100
|
+
{
|
|
101
|
+
transformFn: float_2.transformRESTFloatToSDKFloat,
|
|
102
|
+
paths: [{ path: 'subscriptionOption.discount.value' }],
|
|
103
|
+
},
|
|
104
|
+
]),
|
|
105
|
+
};
|
|
106
|
+
return metadata;
|
|
107
|
+
}
|
|
108
|
+
return __getSubscriptionOption;
|
|
109
|
+
}
|
|
110
|
+
exports.getSubscriptionOption = getSubscriptionOption;
|
|
111
|
+
/**
|
|
112
|
+
* Retrieves all subscription options assigned to a specified product.
|
|
113
|
+
* By default, hidden subscription options are not returned. To retrieve all subscription options you must pass `includeHiddenSubscriptionOptions = true`.
|
|
114
|
+
* @deprecated
|
|
115
|
+
*/
|
|
116
|
+
function getSubscriptionOptionsForProduct(payload) {
|
|
117
|
+
function __getSubscriptionOptionsForProduct({ host }) {
|
|
118
|
+
const metadata = {
|
|
119
|
+
entityFqdn: 'wix.stores.v1.subscription_option',
|
|
120
|
+
method: 'GET',
|
|
121
|
+
methodFqn: 'wix.ecommerce.subscription.option.api.v1.SubscriptionOptionsReadApi.GetSubscriptionOptionsForProduct',
|
|
122
|
+
packageName: PACKAGE_NAME,
|
|
123
|
+
url: resolveWixEcommerceSubscriptionOptionApiV1SubscriptionOptionsReadApiUrl({
|
|
124
|
+
protoPath: '/v1/subscription-options/byProduct/{productId}',
|
|
125
|
+
data: payload,
|
|
126
|
+
host,
|
|
127
|
+
}),
|
|
128
|
+
params: (0, rest_modules_1.toURLSearchParams)(payload),
|
|
129
|
+
transformResponse: (payload) => (0, transform_paths_1.transformPaths)(payload, [
|
|
130
|
+
{
|
|
131
|
+
transformFn: float_2.transformRESTFloatToSDKFloat,
|
|
132
|
+
paths: [{ path: 'subscriptionOptions.discount.value' }],
|
|
133
|
+
},
|
|
134
|
+
]),
|
|
135
|
+
};
|
|
136
|
+
return metadata;
|
|
137
|
+
}
|
|
138
|
+
return __getSubscriptionOptionsForProduct;
|
|
139
|
+
}
|
|
140
|
+
exports.getSubscriptionOptionsForProduct = getSubscriptionOptionsForProduct;
|
|
141
|
+
/**
|
|
142
|
+
* Retrieves the IDs of products associated with a specified subscription option.
|
|
143
|
+
* @deprecated
|
|
144
|
+
*/
|
|
145
|
+
function getProductIdsForSubscriptionOption(payload) {
|
|
146
|
+
function __getProductIdsForSubscriptionOption({ host }) {
|
|
147
|
+
const metadata = {
|
|
148
|
+
entityFqdn: 'wix.stores.v1.subscription_option',
|
|
149
|
+
method: 'GET',
|
|
150
|
+
methodFqn: 'wix.ecommerce.subscription.option.api.v1.SubscriptionOptionsReadApi.GetProductIdsForSubscriptionOption',
|
|
151
|
+
packageName: PACKAGE_NAME,
|
|
152
|
+
url: resolveWixEcommerceSubscriptionOptionApiV1SubscriptionOptionsReadApiUrl({
|
|
153
|
+
protoPath: '/v1/subscription-options/{id}/productIds',
|
|
154
|
+
data: payload,
|
|
155
|
+
host,
|
|
156
|
+
}),
|
|
157
|
+
params: (0, rest_modules_1.toURLSearchParams)(payload),
|
|
158
|
+
};
|
|
159
|
+
return metadata;
|
|
160
|
+
}
|
|
161
|
+
return __getProductIdsForSubscriptionOption;
|
|
162
|
+
}
|
|
163
|
+
exports.getProductIdsForSubscriptionOption = getProductIdsForSubscriptionOption;
|
|
164
|
+
/**
|
|
165
|
+
* Checks whether a specified product (associated with subscription options) is available for one-time purchase.
|
|
166
|
+
* @deprecated
|
|
167
|
+
*/
|
|
168
|
+
function getOneTimePurchasesStatus(payload) {
|
|
169
|
+
function __getOneTimePurchasesStatus({ host }) {
|
|
170
|
+
const metadata = {
|
|
171
|
+
entityFqdn: 'wix.stores.v1.subscription_option',
|
|
172
|
+
method: 'GET',
|
|
173
|
+
methodFqn: 'wix.ecommerce.subscription.option.api.v1.SubscriptionOptionsReadApi.GetOneTimePurchasesStatus',
|
|
174
|
+
packageName: PACKAGE_NAME,
|
|
175
|
+
url: resolveWixEcommerceSubscriptionOptionApiV1SubscriptionOptionsReadApiUrl({
|
|
176
|
+
protoPath: '/v1/subscription-options/product/{productId}/oneTimePurchasesStatus',
|
|
177
|
+
data: payload,
|
|
178
|
+
host,
|
|
179
|
+
}),
|
|
180
|
+
params: (0, rest_modules_1.toURLSearchParams)(payload),
|
|
181
|
+
};
|
|
182
|
+
return metadata;
|
|
183
|
+
}
|
|
184
|
+
return __getOneTimePurchasesStatus;
|
|
185
|
+
}
|
|
186
|
+
exports.getOneTimePurchasesStatus = getOneTimePurchasesStatus;
|
|
86
187
|
/**
|
|
87
188
|
* Creates a subscription option.
|
|
88
189
|
* To assign to a product, call [`assignSubscriptionOptionsToProduct()`](https://www.wix.com/velo/reference/wix-stores-v2/subscriptionoptions/assign-subscription-options-to-product).
|
|
@@ -119,13 +220,6 @@ exports.createSubscriptionOption = createSubscriptionOption;
|
|
|
119
220
|
/**
|
|
120
221
|
* Updates a subscription option.
|
|
121
222
|
* Only parameters passed will be updated.
|
|
122
|
-
* <blockquote class='warning'>
|
|
123
|
-
*
|
|
124
|
-
* __Deprecation Notice:__
|
|
125
|
-
*
|
|
126
|
-
* This endpoint has been deprecated and will be removed on January 29, 2024.
|
|
127
|
-
*
|
|
128
|
-
* </blockquote>
|
|
129
223
|
* @deprecated
|
|
130
224
|
*/
|
|
131
225
|
function updateSubscriptionOption(payload) {
|
|
@@ -161,13 +255,6 @@ function updateSubscriptionOption(payload) {
|
|
|
161
255
|
exports.updateSubscriptionOption = updateSubscriptionOption;
|
|
162
256
|
/**
|
|
163
257
|
* Deletes a subscription option.
|
|
164
|
-
* <blockquote class='warning'>
|
|
165
|
-
*
|
|
166
|
-
* __Deprecation Notice:__
|
|
167
|
-
*
|
|
168
|
-
* This endpoint has been deprecated and will be removed on January 29, 2024.
|
|
169
|
-
*
|
|
170
|
-
* </blockquote>
|
|
171
258
|
* @deprecated
|
|
172
259
|
*/
|
|
173
260
|
function deleteSubscriptionOption(payload) {
|
|
@@ -225,13 +312,6 @@ exports.bulkCreateSubscriptionOptions = bulkCreateSubscriptionOptions;
|
|
|
225
312
|
/**
|
|
226
313
|
* Updates multiple subscription options.
|
|
227
314
|
* Only parameters passed will be updated.
|
|
228
|
-
* <blockquote class='warning'>
|
|
229
|
-
*
|
|
230
|
-
* __Deprecation Notice:__
|
|
231
|
-
*
|
|
232
|
-
* This endpoint has been deprecated and will be removed on January 29, 2024.
|
|
233
|
-
*
|
|
234
|
-
* </blockquote>
|
|
235
315
|
* @deprecated
|
|
236
316
|
*/
|
|
237
317
|
function bulkUpdateSubscriptionOptions(payload) {
|
|
@@ -263,13 +343,6 @@ function bulkUpdateSubscriptionOptions(payload) {
|
|
|
263
343
|
exports.bulkUpdateSubscriptionOptions = bulkUpdateSubscriptionOptions;
|
|
264
344
|
/**
|
|
265
345
|
* Deletes multiple subscription options.
|
|
266
|
-
* <blockquote class='warning'>
|
|
267
|
-
*
|
|
268
|
-
* __Deprecation Notice:__
|
|
269
|
-
*
|
|
270
|
-
* This endpoint has been deprecated and will be removed on January 29, 2024.
|
|
271
|
-
*
|
|
272
|
-
* </blockquote>
|
|
273
346
|
* @deprecated
|
|
274
347
|
*/
|
|
275
348
|
function bulkDeleteSubscriptionOptions(payload) {
|
|
@@ -294,13 +367,6 @@ exports.bulkDeleteSubscriptionOptions = bulkDeleteSubscriptionOptions;
|
|
|
294
367
|
/**
|
|
295
368
|
* Assign up to 6 subscription options to a specified product.
|
|
296
369
|
* Pass an empty array to remove all subscription options assigned to a product.
|
|
297
|
-
* <blockquote class='warning'>
|
|
298
|
-
*
|
|
299
|
-
* __Deprecation Notice:__
|
|
300
|
-
*
|
|
301
|
-
* This endpoint has been deprecated and will be removed on January 29, 2024.
|
|
302
|
-
*
|
|
303
|
-
* </blockquote>
|
|
304
370
|
* @deprecated
|
|
305
371
|
*/
|
|
306
372
|
function assignSubscriptionOptionsToProduct(payload) {
|
|
@@ -331,13 +397,6 @@ exports.assignSubscriptionOptionsToProduct = assignSubscriptionOptionsToProduct;
|
|
|
331
397
|
/**
|
|
332
398
|
* Allow for one-time purchase of a product.
|
|
333
399
|
* By default, product can be sold only as part of a subscription, not as a one-time purchase.
|
|
334
|
-
* <blockquote class='warning'>
|
|
335
|
-
*
|
|
336
|
-
* __Deprecation Notice:__
|
|
337
|
-
*
|
|
338
|
-
* This endpoint has been deprecated and will be removed on January 29, 2024.
|
|
339
|
-
*
|
|
340
|
-
* </blockquote>
|
|
341
400
|
* @deprecated
|
|
342
401
|
*/
|
|
343
402
|
function allowOneTimePurchases(payload) {
|
|
@@ -359,133 +418,4 @@ function allowOneTimePurchases(payload) {
|
|
|
359
418
|
return __allowOneTimePurchases;
|
|
360
419
|
}
|
|
361
420
|
exports.allowOneTimePurchases = allowOneTimePurchases;
|
|
362
|
-
/**
|
|
363
|
-
* Retrieves a subscription option by ID.
|
|
364
|
-
* <blockquote class='warning'>
|
|
365
|
-
*
|
|
366
|
-
* __Deprecation Notice:__
|
|
367
|
-
*
|
|
368
|
-
* This endpoint has been deprecated and will be removed on January 29, 2024.
|
|
369
|
-
*
|
|
370
|
-
* </blockquote>
|
|
371
|
-
* @deprecated
|
|
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
|
-
url: resolveWixEcommerceSubscriptionOptionApiV1SubscriptionOptionsReadApiUrl({ protoPath: '/v1/subscription-options/{id}', data: payload, host }),
|
|
381
|
-
params: (0, rest_modules_1.toURLSearchParams)(payload),
|
|
382
|
-
transformResponse: (payload) => (0, transform_paths_1.transformPaths)(payload, [
|
|
383
|
-
{
|
|
384
|
-
transformFn: float_2.transformRESTFloatToSDKFloat,
|
|
385
|
-
paths: [{ path: 'subscriptionOption.discount.value' }],
|
|
386
|
-
},
|
|
387
|
-
]),
|
|
388
|
-
};
|
|
389
|
-
return metadata;
|
|
390
|
-
}
|
|
391
|
-
return __getSubscriptionOption;
|
|
392
|
-
}
|
|
393
|
-
exports.getSubscriptionOption = getSubscriptionOption;
|
|
394
|
-
/**
|
|
395
|
-
* Retrieves all subscription options assigned to a specified product.
|
|
396
|
-
* By default, hidden subscription options are not returned. To retrieve all subscription options you must pass `includeHiddenSubscriptionOptions = true`.
|
|
397
|
-
* <blockquote class='warning'>
|
|
398
|
-
*
|
|
399
|
-
* __Deprecation Notice:__
|
|
400
|
-
*
|
|
401
|
-
* This endpoint has been deprecated and will be removed on January 29, 2024.
|
|
402
|
-
*
|
|
403
|
-
* </blockquote>
|
|
404
|
-
* @deprecated
|
|
405
|
-
*/
|
|
406
|
-
function getSubscriptionOptionsForProduct(payload) {
|
|
407
|
-
function __getSubscriptionOptionsForProduct({ host }) {
|
|
408
|
-
const metadata = {
|
|
409
|
-
entityFqdn: 'wix.stores.v1.subscription_option',
|
|
410
|
-
method: 'GET',
|
|
411
|
-
methodFqn: 'wix.ecommerce.subscription.option.api.v1.SubscriptionOptionsReadApi.GetSubscriptionOptionsForProduct',
|
|
412
|
-
packageName: PACKAGE_NAME,
|
|
413
|
-
url: resolveWixEcommerceSubscriptionOptionApiV1SubscriptionOptionsReadApiUrl({
|
|
414
|
-
protoPath: '/v1/subscription-options/byProduct/{productId}',
|
|
415
|
-
data: payload,
|
|
416
|
-
host,
|
|
417
|
-
}),
|
|
418
|
-
params: (0, rest_modules_1.toURLSearchParams)(payload),
|
|
419
|
-
transformResponse: (payload) => (0, transform_paths_1.transformPaths)(payload, [
|
|
420
|
-
{
|
|
421
|
-
transformFn: float_2.transformRESTFloatToSDKFloat,
|
|
422
|
-
paths: [{ path: 'subscriptionOptions.discount.value' }],
|
|
423
|
-
},
|
|
424
|
-
]),
|
|
425
|
-
};
|
|
426
|
-
return metadata;
|
|
427
|
-
}
|
|
428
|
-
return __getSubscriptionOptionsForProduct;
|
|
429
|
-
}
|
|
430
|
-
exports.getSubscriptionOptionsForProduct = getSubscriptionOptionsForProduct;
|
|
431
|
-
/**
|
|
432
|
-
* Retrieves the IDs of products associated with a specified subscription option.
|
|
433
|
-
* <blockquote class='warning'>
|
|
434
|
-
*
|
|
435
|
-
* __Deprecation Notice:__
|
|
436
|
-
*
|
|
437
|
-
* This endpoint has been deprecated and will be removed on January 29, 2024.
|
|
438
|
-
*
|
|
439
|
-
* </blockquote>
|
|
440
|
-
* @deprecated
|
|
441
|
-
*/
|
|
442
|
-
function getProductIdsForSubscriptionOption(payload) {
|
|
443
|
-
function __getProductIdsForSubscriptionOption({ host }) {
|
|
444
|
-
const metadata = {
|
|
445
|
-
entityFqdn: 'wix.stores.v1.subscription_option',
|
|
446
|
-
method: 'GET',
|
|
447
|
-
methodFqn: 'wix.ecommerce.subscription.option.api.v1.SubscriptionOptionsReadApi.GetProductIdsForSubscriptionOption',
|
|
448
|
-
packageName: PACKAGE_NAME,
|
|
449
|
-
url: resolveWixEcommerceSubscriptionOptionApiV1SubscriptionOptionsReadApiUrl({
|
|
450
|
-
protoPath: '/v1/subscription-options/{id}/productIds',
|
|
451
|
-
data: payload,
|
|
452
|
-
host,
|
|
453
|
-
}),
|
|
454
|
-
params: (0, rest_modules_1.toURLSearchParams)(payload),
|
|
455
|
-
};
|
|
456
|
-
return metadata;
|
|
457
|
-
}
|
|
458
|
-
return __getProductIdsForSubscriptionOption;
|
|
459
|
-
}
|
|
460
|
-
exports.getProductIdsForSubscriptionOption = getProductIdsForSubscriptionOption;
|
|
461
|
-
/**
|
|
462
|
-
* Checks whether a specified product (associated with subscription options) is available for one-time purchase.
|
|
463
|
-
* <blockquote class='warning'>
|
|
464
|
-
*
|
|
465
|
-
* __Deprecation Notice:__
|
|
466
|
-
*
|
|
467
|
-
* This endpoint has been deprecated and will be removed on January 29, 2024.
|
|
468
|
-
*
|
|
469
|
-
* </blockquote>
|
|
470
|
-
* @deprecated
|
|
471
|
-
*/
|
|
472
|
-
function getOneTimePurchasesStatus(payload) {
|
|
473
|
-
function __getOneTimePurchasesStatus({ host }) {
|
|
474
|
-
const metadata = {
|
|
475
|
-
entityFqdn: 'wix.stores.v1.subscription_option',
|
|
476
|
-
method: 'GET',
|
|
477
|
-
methodFqn: 'wix.ecommerce.subscription.option.api.v1.SubscriptionOptionsReadApi.GetOneTimePurchasesStatus',
|
|
478
|
-
packageName: PACKAGE_NAME,
|
|
479
|
-
url: resolveWixEcommerceSubscriptionOptionApiV1SubscriptionOptionsReadApiUrl({
|
|
480
|
-
protoPath: '/v1/subscription-options/product/{productId}/oneTimePurchasesStatus',
|
|
481
|
-
data: payload,
|
|
482
|
-
host,
|
|
483
|
-
}),
|
|
484
|
-
params: (0, rest_modules_1.toURLSearchParams)(payload),
|
|
485
|
-
};
|
|
486
|
-
return metadata;
|
|
487
|
-
}
|
|
488
|
-
return __getOneTimePurchasesStatus;
|
|
489
|
-
}
|
|
490
|
-
exports.getOneTimePurchasesStatus = getOneTimePurchasesStatus;
|
|
491
421
|
//# sourceMappingURL=stores-v1-subscription-option-subscription-options.http.js.map
|