@wix/auto_sdk_stores_subscription-options 1.0.1 → 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 -21
- package/build/cjs/src/stores-v1-subscription-option-subscription-options.http.js +129 -129
- 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 -40
- 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 -198
- package/build/cjs/src/stores-v1-subscription-option-subscription-options.universal.js +186 -186
- 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 -21
- package/build/es/src/stores-v1-subscription-option-subscription-options.http.js +124 -124
- 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 -40
- 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 -198
- package/build/es/src/stores-v1-subscription-option-subscription-options.universal.js +181 -181
- 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 -21
- package/build/internal/cjs/src/stores-v1-subscription-option-subscription-options.http.js +129 -129
- 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 -40
- 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 -198
- package/build/internal/cjs/src/stores-v1-subscription-option-subscription-options.universal.js +186 -186
- 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 -21
- package/build/internal/es/src/stores-v1-subscription-option-subscription-options.http.js +124 -124
- 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 -40
- 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 -198
- package/build/internal/es/src/stores-v1-subscription-option-subscription-options.universal.js +181 -181
- package/build/internal/es/src/stores-v1-subscription-option-subscription-options.universal.js.map +1 -1
- package/package.json +2 -2
|
@@ -17,6 +17,187 @@ export var DiscountType;
|
|
|
17
17
|
DiscountType["AMOUNT"] = "AMOUNT";
|
|
18
18
|
DiscountType["PERCENT"] = "PERCENT";
|
|
19
19
|
})(DiscountType || (DiscountType = {}));
|
|
20
|
+
/**
|
|
21
|
+
* Retrieves a subscription option by ID.
|
|
22
|
+
* @param _id - Subscription option ID.
|
|
23
|
+
* @public
|
|
24
|
+
* @documentationMaturity preview
|
|
25
|
+
* @requiredField _id
|
|
26
|
+
* @permissionId WIX_STORES.READ_SUBSCRIPTION_OPTIONS
|
|
27
|
+
* @permissionScope Manage Stores - all permissions
|
|
28
|
+
* @permissionScopeId SCOPE.DC-STORES-MEGA.MANAGE-STORES
|
|
29
|
+
* @permissionScope Manage Products
|
|
30
|
+
* @permissionScopeId SCOPE.DC-STORES.MANAGE-PRODUCTS
|
|
31
|
+
* @permissionScope Read Stores - all read permissions
|
|
32
|
+
* @permissionScopeId SCOPE.DC-STORES-MEGA.READ-STORES
|
|
33
|
+
* @permissionScope Read Products
|
|
34
|
+
* @permissionScopeId SCOPE.DC-STORES.READ-PRODUCTS
|
|
35
|
+
* @applicableIdentity APP
|
|
36
|
+
* @returns Subscription option.
|
|
37
|
+
* @fqn wix.ecommerce.subscription.option.api.v1.SubscriptionOptionsReadApi.GetSubscriptionOption
|
|
38
|
+
* @deprecated
|
|
39
|
+
*/
|
|
40
|
+
export async function getSubscriptionOption(_id) {
|
|
41
|
+
// @ts-ignore
|
|
42
|
+
const { httpClient, sideEffects } = arguments[1];
|
|
43
|
+
const payload = renameKeysFromSDKRequestToRESTRequest({ id: _id });
|
|
44
|
+
const reqOpts = ambassadorWixStoresV1SubscriptionOption.getSubscriptionOption(payload);
|
|
45
|
+
sideEffects?.onSiteCall?.();
|
|
46
|
+
try {
|
|
47
|
+
const result = await httpClient.request(reqOpts);
|
|
48
|
+
sideEffects?.onSuccess?.(result);
|
|
49
|
+
return renameKeysFromRESTResponseToSDKResponse(result.data)
|
|
50
|
+
?.subscriptionOption;
|
|
51
|
+
}
|
|
52
|
+
catch (err) {
|
|
53
|
+
const transformedError = sdkTransformError(err, {
|
|
54
|
+
spreadPathsToArguments: {},
|
|
55
|
+
explicitPathsToArguments: { id: '$[0]' },
|
|
56
|
+
singleArgumentUnchanged: false,
|
|
57
|
+
}, ['_id']);
|
|
58
|
+
sideEffects?.onError?.(err);
|
|
59
|
+
throw transformedError;
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
/**
|
|
63
|
+
* Retrieves all subscription options assigned to a specified product.
|
|
64
|
+
* By default, hidden subscription options are not returned. To retrieve all subscription options you must pass `includeHiddenSubscriptionOptions = true`.
|
|
65
|
+
* @param productId - Product ID.
|
|
66
|
+
* @public
|
|
67
|
+
* @documentationMaturity preview
|
|
68
|
+
* @requiredField productId
|
|
69
|
+
* @param options - Options.
|
|
70
|
+
* @permissionId WIX_STORES.READ_SUBSCRIPTION_OPTIONS
|
|
71
|
+
* @permissionScope Manage Stores - all permissions
|
|
72
|
+
* @permissionScopeId SCOPE.DC-STORES-MEGA.MANAGE-STORES
|
|
73
|
+
* @permissionScope Manage Products
|
|
74
|
+
* @permissionScopeId SCOPE.DC-STORES.MANAGE-PRODUCTS
|
|
75
|
+
* @permissionScope Read Stores - all read permissions
|
|
76
|
+
* @permissionScopeId SCOPE.DC-STORES-MEGA.READ-STORES
|
|
77
|
+
* @permissionScope Read Products
|
|
78
|
+
* @permissionScopeId SCOPE.DC-STORES.READ-PRODUCTS
|
|
79
|
+
* @applicableIdentity APP
|
|
80
|
+
* @fqn wix.ecommerce.subscription.option.api.v1.SubscriptionOptionsReadApi.GetSubscriptionOptionsForProduct
|
|
81
|
+
* @deprecated
|
|
82
|
+
*/
|
|
83
|
+
export async function getSubscriptionOptionsForProduct(productId, options) {
|
|
84
|
+
// @ts-ignore
|
|
85
|
+
const { httpClient, sideEffects } = arguments[2];
|
|
86
|
+
const payload = renameKeysFromSDKRequestToRESTRequest({
|
|
87
|
+
productId: productId,
|
|
88
|
+
includeHiddenSubscriptionOptions: options?.includeHiddenSubscriptionOptions,
|
|
89
|
+
});
|
|
90
|
+
const reqOpts = ambassadorWixStoresV1SubscriptionOption.getSubscriptionOptionsForProduct(payload);
|
|
91
|
+
sideEffects?.onSiteCall?.();
|
|
92
|
+
try {
|
|
93
|
+
const result = await httpClient.request(reqOpts);
|
|
94
|
+
sideEffects?.onSuccess?.(result);
|
|
95
|
+
return renameKeysFromRESTResponseToSDKResponse(result.data);
|
|
96
|
+
}
|
|
97
|
+
catch (err) {
|
|
98
|
+
const transformedError = sdkTransformError(err, {
|
|
99
|
+
spreadPathsToArguments: {},
|
|
100
|
+
explicitPathsToArguments: {
|
|
101
|
+
productId: '$[0]',
|
|
102
|
+
includeHiddenSubscriptionOptions: '$[1].includeHiddenSubscriptionOptions',
|
|
103
|
+
},
|
|
104
|
+
singleArgumentUnchanged: false,
|
|
105
|
+
}, ['productId', 'options']);
|
|
106
|
+
sideEffects?.onError?.(err);
|
|
107
|
+
throw transformedError;
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
/**
|
|
111
|
+
* Retrieves the IDs of products associated with a specified subscription option.
|
|
112
|
+
* @param _id - Subscription option ID.
|
|
113
|
+
* @public
|
|
114
|
+
* @documentationMaturity preview
|
|
115
|
+
* @requiredField _id
|
|
116
|
+
* @param options - Paging and other options.
|
|
117
|
+
* @permissionId WIX_STORES.READ_SUBSCRIPTION_OPTIONS
|
|
118
|
+
* @permissionScope Manage Stores - all permissions
|
|
119
|
+
* @permissionScopeId SCOPE.DC-STORES-MEGA.MANAGE-STORES
|
|
120
|
+
* @permissionScope Manage Products
|
|
121
|
+
* @permissionScopeId SCOPE.DC-STORES.MANAGE-PRODUCTS
|
|
122
|
+
* @permissionScope Read Stores - all read permissions
|
|
123
|
+
* @permissionScopeId SCOPE.DC-STORES-MEGA.READ-STORES
|
|
124
|
+
* @permissionScope Read Products
|
|
125
|
+
* @permissionScopeId SCOPE.DC-STORES.READ-PRODUCTS
|
|
126
|
+
* @applicableIdentity APP
|
|
127
|
+
* @fqn wix.ecommerce.subscription.option.api.v1.SubscriptionOptionsReadApi.GetProductIdsForSubscriptionOption
|
|
128
|
+
* @deprecated
|
|
129
|
+
*/
|
|
130
|
+
export async function getProductIdsForSubscriptionOption(_id, options) {
|
|
131
|
+
// @ts-ignore
|
|
132
|
+
const { httpClient, sideEffects } = arguments[2];
|
|
133
|
+
const payload = renameKeysFromSDKRequestToRESTRequest({
|
|
134
|
+
id: _id,
|
|
135
|
+
includeHiddenProducts: options?.includeHiddenProducts,
|
|
136
|
+
paging: options?.paging,
|
|
137
|
+
});
|
|
138
|
+
const reqOpts = ambassadorWixStoresV1SubscriptionOption.getProductIdsForSubscriptionOption(payload);
|
|
139
|
+
sideEffects?.onSiteCall?.();
|
|
140
|
+
try {
|
|
141
|
+
const result = await httpClient.request(reqOpts);
|
|
142
|
+
sideEffects?.onSuccess?.(result);
|
|
143
|
+
return renameKeysFromRESTResponseToSDKResponse(result.data);
|
|
144
|
+
}
|
|
145
|
+
catch (err) {
|
|
146
|
+
const transformedError = sdkTransformError(err, {
|
|
147
|
+
spreadPathsToArguments: {},
|
|
148
|
+
explicitPathsToArguments: {
|
|
149
|
+
id: '$[0]',
|
|
150
|
+
includeHiddenProducts: '$[1].includeHiddenProducts',
|
|
151
|
+
paging: '$[1].paging',
|
|
152
|
+
},
|
|
153
|
+
singleArgumentUnchanged: false,
|
|
154
|
+
}, ['_id', 'options']);
|
|
155
|
+
sideEffects?.onError?.(err);
|
|
156
|
+
throw transformedError;
|
|
157
|
+
}
|
|
158
|
+
}
|
|
159
|
+
/**
|
|
160
|
+
* Checks whether a specified product (associated with subscription options) is available for one-time purchase.
|
|
161
|
+
* @param productId - Product ID.
|
|
162
|
+
* @public
|
|
163
|
+
* @documentationMaturity preview
|
|
164
|
+
* @requiredField productId
|
|
165
|
+
* @permissionId WIX_STORES.READ_SUBSCRIPTION_OPTIONS
|
|
166
|
+
* @permissionScope Manage Stores - all permissions
|
|
167
|
+
* @permissionScopeId SCOPE.DC-STORES-MEGA.MANAGE-STORES
|
|
168
|
+
* @permissionScope Manage Products
|
|
169
|
+
* @permissionScopeId SCOPE.DC-STORES.MANAGE-PRODUCTS
|
|
170
|
+
* @permissionScope Read Stores - all read permissions
|
|
171
|
+
* @permissionScopeId SCOPE.DC-STORES-MEGA.READ-STORES
|
|
172
|
+
* @permissionScope Read Products
|
|
173
|
+
* @permissionScopeId SCOPE.DC-STORES.READ-PRODUCTS
|
|
174
|
+
* @applicableIdentity APP
|
|
175
|
+
* @fqn wix.ecommerce.subscription.option.api.v1.SubscriptionOptionsReadApi.GetOneTimePurchasesStatus
|
|
176
|
+
* @deprecated
|
|
177
|
+
*/
|
|
178
|
+
export async function getOneTimePurchasesStatus(productId) {
|
|
179
|
+
// @ts-ignore
|
|
180
|
+
const { httpClient, sideEffects } = arguments[1];
|
|
181
|
+
const payload = renameKeysFromSDKRequestToRESTRequest({
|
|
182
|
+
productId: productId,
|
|
183
|
+
});
|
|
184
|
+
const reqOpts = ambassadorWixStoresV1SubscriptionOption.getOneTimePurchasesStatus(payload);
|
|
185
|
+
sideEffects?.onSiteCall?.();
|
|
186
|
+
try {
|
|
187
|
+
const result = await httpClient.request(reqOpts);
|
|
188
|
+
sideEffects?.onSuccess?.(result);
|
|
189
|
+
return renameKeysFromRESTResponseToSDKResponse(result.data);
|
|
190
|
+
}
|
|
191
|
+
catch (err) {
|
|
192
|
+
const transformedError = sdkTransformError(err, {
|
|
193
|
+
spreadPathsToArguments: {},
|
|
194
|
+
explicitPathsToArguments: { productId: '$[0]' },
|
|
195
|
+
singleArgumentUnchanged: false,
|
|
196
|
+
}, ['productId']);
|
|
197
|
+
sideEffects?.onError?.(err);
|
|
198
|
+
throw transformedError;
|
|
199
|
+
}
|
|
200
|
+
}
|
|
20
201
|
/**
|
|
21
202
|
* Creates a subscription option.
|
|
22
203
|
* To assign to a product, call [`assignSubscriptionOptionsToProduct()`](https://www.wix.com/velo/reference/wix-stores-v2/subscriptionoptions/assign-subscription-options-to-product).
|
|
@@ -340,185 +521,4 @@ export async function allowOneTimePurchases(productId, allowed) {
|
|
|
340
521
|
throw transformedError;
|
|
341
522
|
}
|
|
342
523
|
}
|
|
343
|
-
/**
|
|
344
|
-
* Retrieves a subscription option by ID.
|
|
345
|
-
* @param _id - Subscription option ID.
|
|
346
|
-
* @public
|
|
347
|
-
* @documentationMaturity preview
|
|
348
|
-
* @requiredField _id
|
|
349
|
-
* @permissionId WIX_STORES.READ_SUBSCRIPTION_OPTIONS
|
|
350
|
-
* @permissionScope Manage Stores - all permissions
|
|
351
|
-
* @permissionScopeId SCOPE.DC-STORES-MEGA.MANAGE-STORES
|
|
352
|
-
* @permissionScope Manage Products
|
|
353
|
-
* @permissionScopeId SCOPE.DC-STORES.MANAGE-PRODUCTS
|
|
354
|
-
* @permissionScope Read Stores - all read permissions
|
|
355
|
-
* @permissionScopeId SCOPE.DC-STORES-MEGA.READ-STORES
|
|
356
|
-
* @permissionScope Read Products
|
|
357
|
-
* @permissionScopeId SCOPE.DC-STORES.READ-PRODUCTS
|
|
358
|
-
* @applicableIdentity APP
|
|
359
|
-
* @returns Subscription option.
|
|
360
|
-
* @fqn wix.ecommerce.subscription.option.api.v1.SubscriptionOptionsReadApi.GetSubscriptionOption
|
|
361
|
-
* @deprecated
|
|
362
|
-
*/
|
|
363
|
-
export async function getSubscriptionOption(_id) {
|
|
364
|
-
// @ts-ignore
|
|
365
|
-
const { httpClient, sideEffects } = arguments[1];
|
|
366
|
-
const payload = renameKeysFromSDKRequestToRESTRequest({ id: _id });
|
|
367
|
-
const reqOpts = ambassadorWixStoresV1SubscriptionOption.getSubscriptionOption(payload);
|
|
368
|
-
sideEffects?.onSiteCall?.();
|
|
369
|
-
try {
|
|
370
|
-
const result = await httpClient.request(reqOpts);
|
|
371
|
-
sideEffects?.onSuccess?.(result);
|
|
372
|
-
return renameKeysFromRESTResponseToSDKResponse(result.data)
|
|
373
|
-
?.subscriptionOption;
|
|
374
|
-
}
|
|
375
|
-
catch (err) {
|
|
376
|
-
const transformedError = sdkTransformError(err, {
|
|
377
|
-
spreadPathsToArguments: {},
|
|
378
|
-
explicitPathsToArguments: { id: '$[0]' },
|
|
379
|
-
singleArgumentUnchanged: false,
|
|
380
|
-
}, ['_id']);
|
|
381
|
-
sideEffects?.onError?.(err);
|
|
382
|
-
throw transformedError;
|
|
383
|
-
}
|
|
384
|
-
}
|
|
385
|
-
/**
|
|
386
|
-
* Retrieves all subscription options assigned to a specified product.
|
|
387
|
-
* By default, hidden subscription options are not returned. To retrieve all subscription options you must pass `includeHiddenSubscriptionOptions = true`.
|
|
388
|
-
* @param productId - Product ID.
|
|
389
|
-
* @public
|
|
390
|
-
* @documentationMaturity preview
|
|
391
|
-
* @requiredField productId
|
|
392
|
-
* @param options - Options.
|
|
393
|
-
* @permissionId WIX_STORES.READ_SUBSCRIPTION_OPTIONS
|
|
394
|
-
* @permissionScope Manage Stores - all permissions
|
|
395
|
-
* @permissionScopeId SCOPE.DC-STORES-MEGA.MANAGE-STORES
|
|
396
|
-
* @permissionScope Manage Products
|
|
397
|
-
* @permissionScopeId SCOPE.DC-STORES.MANAGE-PRODUCTS
|
|
398
|
-
* @permissionScope Read Stores - all read permissions
|
|
399
|
-
* @permissionScopeId SCOPE.DC-STORES-MEGA.READ-STORES
|
|
400
|
-
* @permissionScope Read Products
|
|
401
|
-
* @permissionScopeId SCOPE.DC-STORES.READ-PRODUCTS
|
|
402
|
-
* @applicableIdentity APP
|
|
403
|
-
* @fqn wix.ecommerce.subscription.option.api.v1.SubscriptionOptionsReadApi.GetSubscriptionOptionsForProduct
|
|
404
|
-
* @deprecated
|
|
405
|
-
*/
|
|
406
|
-
export async function getSubscriptionOptionsForProduct(productId, options) {
|
|
407
|
-
// @ts-ignore
|
|
408
|
-
const { httpClient, sideEffects } = arguments[2];
|
|
409
|
-
const payload = renameKeysFromSDKRequestToRESTRequest({
|
|
410
|
-
productId: productId,
|
|
411
|
-
includeHiddenSubscriptionOptions: options?.includeHiddenSubscriptionOptions,
|
|
412
|
-
});
|
|
413
|
-
const reqOpts = ambassadorWixStoresV1SubscriptionOption.getSubscriptionOptionsForProduct(payload);
|
|
414
|
-
sideEffects?.onSiteCall?.();
|
|
415
|
-
try {
|
|
416
|
-
const result = await httpClient.request(reqOpts);
|
|
417
|
-
sideEffects?.onSuccess?.(result);
|
|
418
|
-
return renameKeysFromRESTResponseToSDKResponse(result.data);
|
|
419
|
-
}
|
|
420
|
-
catch (err) {
|
|
421
|
-
const transformedError = sdkTransformError(err, {
|
|
422
|
-
spreadPathsToArguments: {},
|
|
423
|
-
explicitPathsToArguments: {
|
|
424
|
-
productId: '$[0]',
|
|
425
|
-
includeHiddenSubscriptionOptions: '$[1].includeHiddenSubscriptionOptions',
|
|
426
|
-
},
|
|
427
|
-
singleArgumentUnchanged: false,
|
|
428
|
-
}, ['productId', 'options']);
|
|
429
|
-
sideEffects?.onError?.(err);
|
|
430
|
-
throw transformedError;
|
|
431
|
-
}
|
|
432
|
-
}
|
|
433
|
-
/**
|
|
434
|
-
* Retrieves the IDs of products associated with a specified subscription option.
|
|
435
|
-
* @param _id - Subscription option ID.
|
|
436
|
-
* @public
|
|
437
|
-
* @documentationMaturity preview
|
|
438
|
-
* @requiredField _id
|
|
439
|
-
* @param options - Paging and other options.
|
|
440
|
-
* @permissionId WIX_STORES.READ_SUBSCRIPTION_OPTIONS
|
|
441
|
-
* @permissionScope Manage Stores - all permissions
|
|
442
|
-
* @permissionScopeId SCOPE.DC-STORES-MEGA.MANAGE-STORES
|
|
443
|
-
* @permissionScope Manage Products
|
|
444
|
-
* @permissionScopeId SCOPE.DC-STORES.MANAGE-PRODUCTS
|
|
445
|
-
* @permissionScope Read Stores - all read permissions
|
|
446
|
-
* @permissionScopeId SCOPE.DC-STORES-MEGA.READ-STORES
|
|
447
|
-
* @permissionScope Read Products
|
|
448
|
-
* @permissionScopeId SCOPE.DC-STORES.READ-PRODUCTS
|
|
449
|
-
* @applicableIdentity APP
|
|
450
|
-
* @fqn wix.ecommerce.subscription.option.api.v1.SubscriptionOptionsReadApi.GetProductIdsForSubscriptionOption
|
|
451
|
-
* @deprecated
|
|
452
|
-
*/
|
|
453
|
-
export async function getProductIdsForSubscriptionOption(_id, options) {
|
|
454
|
-
// @ts-ignore
|
|
455
|
-
const { httpClient, sideEffects } = arguments[2];
|
|
456
|
-
const payload = renameKeysFromSDKRequestToRESTRequest({
|
|
457
|
-
id: _id,
|
|
458
|
-
includeHiddenProducts: options?.includeHiddenProducts,
|
|
459
|
-
paging: options?.paging,
|
|
460
|
-
});
|
|
461
|
-
const reqOpts = ambassadorWixStoresV1SubscriptionOption.getProductIdsForSubscriptionOption(payload);
|
|
462
|
-
sideEffects?.onSiteCall?.();
|
|
463
|
-
try {
|
|
464
|
-
const result = await httpClient.request(reqOpts);
|
|
465
|
-
sideEffects?.onSuccess?.(result);
|
|
466
|
-
return renameKeysFromRESTResponseToSDKResponse(result.data);
|
|
467
|
-
}
|
|
468
|
-
catch (err) {
|
|
469
|
-
const transformedError = sdkTransformError(err, {
|
|
470
|
-
spreadPathsToArguments: {},
|
|
471
|
-
explicitPathsToArguments: {
|
|
472
|
-
id: '$[0]',
|
|
473
|
-
includeHiddenProducts: '$[1].includeHiddenProducts',
|
|
474
|
-
paging: '$[1].paging',
|
|
475
|
-
},
|
|
476
|
-
singleArgumentUnchanged: false,
|
|
477
|
-
}, ['_id', 'options']);
|
|
478
|
-
sideEffects?.onError?.(err);
|
|
479
|
-
throw transformedError;
|
|
480
|
-
}
|
|
481
|
-
}
|
|
482
|
-
/**
|
|
483
|
-
* Checks whether a specified product (associated with subscription options) is available for one-time purchase.
|
|
484
|
-
* @param productId - Product ID.
|
|
485
|
-
* @public
|
|
486
|
-
* @documentationMaturity preview
|
|
487
|
-
* @requiredField productId
|
|
488
|
-
* @permissionId WIX_STORES.READ_SUBSCRIPTION_OPTIONS
|
|
489
|
-
* @permissionScope Manage Stores - all permissions
|
|
490
|
-
* @permissionScopeId SCOPE.DC-STORES-MEGA.MANAGE-STORES
|
|
491
|
-
* @permissionScope Manage Products
|
|
492
|
-
* @permissionScopeId SCOPE.DC-STORES.MANAGE-PRODUCTS
|
|
493
|
-
* @permissionScope Read Stores - all read permissions
|
|
494
|
-
* @permissionScopeId SCOPE.DC-STORES-MEGA.READ-STORES
|
|
495
|
-
* @permissionScope Read Products
|
|
496
|
-
* @permissionScopeId SCOPE.DC-STORES.READ-PRODUCTS
|
|
497
|
-
* @applicableIdentity APP
|
|
498
|
-
* @fqn wix.ecommerce.subscription.option.api.v1.SubscriptionOptionsReadApi.GetOneTimePurchasesStatus
|
|
499
|
-
* @deprecated
|
|
500
|
-
*/
|
|
501
|
-
export async function getOneTimePurchasesStatus(productId) {
|
|
502
|
-
// @ts-ignore
|
|
503
|
-
const { httpClient, sideEffects } = arguments[1];
|
|
504
|
-
const payload = renameKeysFromSDKRequestToRESTRequest({
|
|
505
|
-
productId: productId,
|
|
506
|
-
});
|
|
507
|
-
const reqOpts = ambassadorWixStoresV1SubscriptionOption.getOneTimePurchasesStatus(payload);
|
|
508
|
-
sideEffects?.onSiteCall?.();
|
|
509
|
-
try {
|
|
510
|
-
const result = await httpClient.request(reqOpts);
|
|
511
|
-
sideEffects?.onSuccess?.(result);
|
|
512
|
-
return renameKeysFromRESTResponseToSDKResponse(result.data);
|
|
513
|
-
}
|
|
514
|
-
catch (err) {
|
|
515
|
-
const transformedError = sdkTransformError(err, {
|
|
516
|
-
spreadPathsToArguments: {},
|
|
517
|
-
explicitPathsToArguments: { productId: '$[0]' },
|
|
518
|
-
singleArgumentUnchanged: false,
|
|
519
|
-
}, ['productId']);
|
|
520
|
-
sideEffects?.onError?.(err);
|
|
521
|
-
throw transformedError;
|
|
522
|
-
}
|
|
523
|
-
}
|
|
524
524
|
//# sourceMappingURL=stores-v1-subscription-option-subscription-options.universal.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"stores-v1-subscription-option-subscription-options.universal.js","sourceRoot":"","sources":["../../../src/stores-v1-subscription-option-subscription-options.universal.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,IAAI,iBAAiB,EAAE,MAAM,kCAAkC,CAAC;AACvF,OAAO,EACL,qCAAqC,EACrC,uCAAuC,GACxC,MAAM,yCAAyC,CAAC;AAEjD,OAAO,KAAK,uCAAuC,MAAM,8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H,MAAM,OAAO,GACX,uCAAuC,CAAC,yBAAyB,CAAC,OAAO,CAAC,CAAC;IAE7E,WAAW,EAAE,UAAU,EAAE,EAAE,CAAC;IAC5B,IAAI,CAAC;QACH,MAAM,MAAM,GAAG,MAAM,UAAU,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC;QACjD,WAAW,EAAE,SAAS,EAAE,CAAC,MAAM,CAAC,CAAC;QAEjC,OAAO,uCAAuC,CAAC,MAAM,CAAC,IAAI,CAAE,CAAC;IAC/D,CAAC;IAAC,OAAO,GAAQ,EAAE,CAAC;QAClB,MAAM,gBAAgB,GAAG,iBAAiB,CACxC,GAAG,EACH;YACE,sBAAsB,EAAE,EAAE;YAC1B,wBAAwB,EAAE,EAAE,SAAS,EAAE,MAAM,EAAE;YAC/C,uBAAuB,EAAE,KAAK;SAC/B,EACD,CAAC,WAAW,CAAC,CACd,CAAC;QACF,WAAW,EAAE,OAAO,EAAE,CAAC,GAAG,CAAC,CAAC;QAE5B,MAAM,gBAAgB,CAAC;IACzB,CAAC;AACH,CAAC"}
|
|
1
|
+
{"version":3,"file":"stores-v1-subscription-option-subscription-options.universal.js","sourceRoot":"","sources":["../../../src/stores-v1-subscription-option-subscription-options.universal.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,IAAI,iBAAiB,EAAE,MAAM,kCAAkC,CAAC;AACvF,OAAO,EACL,qCAAqC,EACrC,uCAAuC,GACxC,MAAM,yCAAyC,CAAC;AAEjD,OAAO,KAAK,uCAAuC,MAAM,8DAA8D,CAAC;AAyCxH,0CAA0C;AAC1C,MAAM,CAAN,IAAY,qBAMX;AAND,WAAY,qBAAqB;IAC/B,gDAAuB,CAAA;IACvB,oCAAW,CAAA;IACX,sCAAa,CAAA;IACb,wCAAe,CAAA;IACf,sCAAa,CAAA;AACf,CAAC,EANW,qBAAqB,KAArB,qBAAqB,QAMhC;AASD,MAAM,CAAN,IAAY,YAKX;AALD,WAAY,YAAY;IACtB,uCAAuB,CAAA;I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AAC,OAAO,GAAQ,EAAE,CAAC;QAClB,MAAM,gBAAgB,GAAG,iBAAiB,CACxC,GAAG,EACH;YACE,sBAAsB,EAAE,EAAE;YAC1B,wBAAwB,EAAE,EAAE,SAAS,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE;YAChE,uBAAuB,EAAE,KAAK;SAC/B,EACD,CAAC,WAAW,EAAE,SAAS,CAAC,CACzB,CAAC;QACF,WAAW,EAAE,OAAO,EAAE,CAAC,GAAG,CAAC,CAAC;QAE5B,MAAM,gBAAgB,CAAC;IACzB,CAAC;AACH,CAAC"}
|
package/build/internal/cjs/src/stores-v1-subscription-option-subscription-options.context.d.ts
CHANGED
|
@@ -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';
|
package/build/internal/cjs/src/stores-v1-subscription-option-subscription-options.context.js
CHANGED
|
@@ -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; } });
|
package/build/internal/cjs/src/stores-v1-subscription-option-subscription-options.context.js.map
CHANGED
|
@@ -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).
|
|
@@ -47,24 +68,3 @@ export declare function assignSubscriptionOptionsToProduct(payload: object): Req
|
|
|
47
68
|
* @deprecated
|
|
48
69
|
*/
|
|
49
70
|
export declare function allowOneTimePurchases(payload: object): RequestOptionsFactory<any>;
|
|
50
|
-
/**
|
|
51
|
-
* Retrieves a subscription option by ID.
|
|
52
|
-
* @deprecated
|
|
53
|
-
*/
|
|
54
|
-
export declare function getSubscriptionOption(payload: object): RequestOptionsFactory<any>;
|
|
55
|
-
/**
|
|
56
|
-
* Retrieves all subscription options assigned to a specified product.
|
|
57
|
-
* By default, hidden subscription options are not returned. To retrieve all subscription options you must pass `includeHiddenSubscriptionOptions = true`.
|
|
58
|
-
* @deprecated
|
|
59
|
-
*/
|
|
60
|
-
export declare function getSubscriptionOptionsForProduct(payload: object): RequestOptionsFactory<any>;
|
|
61
|
-
/**
|
|
62
|
-
* Retrieves the IDs of products associated with a specified subscription option.
|
|
63
|
-
* @deprecated
|
|
64
|
-
*/
|
|
65
|
-
export declare function getProductIdsForSubscriptionOption(payload: object): RequestOptionsFactory<any>;
|
|
66
|
-
/**
|
|
67
|
-
* Checks whether a specified product (associated with subscription options) is available for one-time purchase.
|
|
68
|
-
* @deprecated
|
|
69
|
-
*/
|
|
70
|
-
export declare function getOneTimePurchasesStatus(payload: object): RequestOptionsFactory<any>;
|