@wix/auto_sdk_stores_subscription-options 1.0.39 → 1.0.41
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 +47 -58
- package/build/cjs/index.js +277 -336
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +158 -183
- package/build/cjs/index.typings.js +223 -273
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.d.ts +109 -123
- package/build/cjs/meta.js +203 -246
- package/build/cjs/meta.js.map +1 -1
- package/build/es/index.d.mts +47 -58
- package/build/es/index.mjs +277 -335
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +158 -183
- package/build/es/index.typings.mjs +223 -272
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.d.mts +109 -123
- package/build/es/meta.mjs +203 -245
- package/build/es/meta.mjs.map +1 -1
- package/build/internal/cjs/index.d.ts +47 -58
- package/build/internal/cjs/index.js +277 -336
- package/build/internal/cjs/index.js.map +1 -1
- package/build/internal/cjs/index.typings.d.ts +158 -183
- package/build/internal/cjs/index.typings.js +223 -273
- package/build/internal/cjs/index.typings.js.map +1 -1
- package/build/internal/cjs/meta.d.ts +109 -123
- package/build/internal/cjs/meta.js +203 -246
- package/build/internal/cjs/meta.js.map +1 -1
- package/build/internal/es/index.d.mts +47 -58
- package/build/internal/es/index.mjs +277 -335
- package/build/internal/es/index.mjs.map +1 -1
- package/build/internal/es/index.typings.d.mts +158 -183
- package/build/internal/es/index.typings.mjs +223 -272
- package/build/internal/es/index.typings.mjs.map +1 -1
- package/build/internal/es/meta.d.mts +109 -123
- package/build/internal/es/meta.mjs +203 -245
- package/build/internal/es/meta.mjs.map +1 -1
- package/package.json +2 -2
|
@@ -61,75 +61,30 @@ declare enum DiscountType {
|
|
|
61
61
|
}
|
|
62
62
|
/** @enumType */
|
|
63
63
|
type DiscountTypeWithLiterals = DiscountType | 'UNDEFINED' | 'AMOUNT' | 'PERCENT';
|
|
64
|
-
interface
|
|
65
|
-
/** Subscription option info. */
|
|
66
|
-
subscriptionOption: SubscriptionOption;
|
|
67
|
-
}
|
|
68
|
-
interface CreateSubscriptionOptionResponse {
|
|
69
|
-
/** Newly created subscription option. */
|
|
70
|
-
subscriptionOption?: SubscriptionOption;
|
|
71
|
-
}
|
|
72
|
-
interface UpdateSubscriptionOptionRequest {
|
|
73
|
-
/** Subscription option info. Only the passed parameters will be updated. */
|
|
74
|
-
subscriptionOption: SubscriptionOption;
|
|
75
|
-
}
|
|
76
|
-
interface UpdateSubscriptionOptionResponse {
|
|
77
|
-
/** Updated subscription option. */
|
|
78
|
-
subscriptionOption?: SubscriptionOption;
|
|
79
|
-
}
|
|
80
|
-
interface DeleteSubscriptionOptionRequest {
|
|
64
|
+
interface GetSubscriptionOptionRequest {
|
|
81
65
|
/**
|
|
82
|
-
*
|
|
66
|
+
* Subscription option ID.
|
|
83
67
|
* @minLength 1
|
|
84
68
|
* @format GUID
|
|
85
69
|
*/
|
|
86
70
|
_id: string;
|
|
87
71
|
}
|
|
88
|
-
interface
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
/**
|
|
92
|
-
* Subscription options info.
|
|
93
|
-
* @maxSize 100
|
|
94
|
-
*/
|
|
95
|
-
subscriptionOptions: SubscriptionOption[];
|
|
96
|
-
}
|
|
97
|
-
interface BulkCreateSubscriptionOptionsResponse {
|
|
98
|
-
/** Newly created subscription options. */
|
|
99
|
-
subscriptionOptions?: SubscriptionOption[];
|
|
100
|
-
}
|
|
101
|
-
interface BulkUpdateSubscriptionOptionsRequest {
|
|
102
|
-
/**
|
|
103
|
-
* Subscription options info. Only the passed parameters in each subscription option will be updated.
|
|
104
|
-
* @maxSize 100
|
|
105
|
-
*/
|
|
106
|
-
subscriptionOptions: SubscriptionOption[];
|
|
107
|
-
}
|
|
108
|
-
interface BulkUpdateSubscriptionOptionsResponse {
|
|
109
|
-
/** Updated subscription options. */
|
|
110
|
-
subscriptionOptions?: SubscriptionOption[];
|
|
111
|
-
}
|
|
112
|
-
interface BulkDeleteSubscriptionOptionsRequest {
|
|
113
|
-
/**
|
|
114
|
-
* IDs of the subscription options to delete.
|
|
115
|
-
* @maxSize 100
|
|
116
|
-
* @format GUID
|
|
117
|
-
*/
|
|
118
|
-
ids: string[];
|
|
119
|
-
}
|
|
120
|
-
interface BulkDeleteSubscriptionOptionsResponse {
|
|
72
|
+
interface GetSubscriptionOptionResponse {
|
|
73
|
+
/** Subscription option. */
|
|
74
|
+
subscriptionOption?: SubscriptionOption;
|
|
121
75
|
}
|
|
122
|
-
interface
|
|
76
|
+
interface GetSubscriptionOptionsForProductRequest {
|
|
123
77
|
/**
|
|
124
78
|
* Product ID.
|
|
125
79
|
* @minLength 1
|
|
126
80
|
*/
|
|
127
81
|
productId: string;
|
|
128
|
-
/**
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
82
|
+
/** Whether to include hidden subscription options in the results. */
|
|
83
|
+
includeHiddenSubscriptionOptions?: boolean;
|
|
84
|
+
}
|
|
85
|
+
interface GetSubscriptionOptionsForProductResponse {
|
|
86
|
+
/** Subscription options. */
|
|
87
|
+
subscriptionOptions?: SubscriptionOptionInProduct[];
|
|
133
88
|
}
|
|
134
89
|
interface SubscriptionOptionInProduct {
|
|
135
90
|
/**
|
|
@@ -163,55 +118,6 @@ interface SubscriptionOptionInProduct {
|
|
|
163
118
|
*/
|
|
164
119
|
discount?: Discount;
|
|
165
120
|
}
|
|
166
|
-
interface AssignSubscriptionOptionsToProductResponse {
|
|
167
|
-
}
|
|
168
|
-
interface AllowOneTimePurchasesRequest {
|
|
169
|
-
/**
|
|
170
|
-
* Product ID.
|
|
171
|
-
* @minLength 1
|
|
172
|
-
*/
|
|
173
|
-
productId: string;
|
|
174
|
-
/** Pass `true` to offer product by subscription and as one-time purchase. Pass `false` to offer product as subscription only. */
|
|
175
|
-
allowed: boolean | null;
|
|
176
|
-
}
|
|
177
|
-
interface AllowOneTimePurchasesResponse {
|
|
178
|
-
}
|
|
179
|
-
interface EnableCustomerCancellationRequest {
|
|
180
|
-
/**
|
|
181
|
-
* Product ID.
|
|
182
|
-
* @minLength 1
|
|
183
|
-
*/
|
|
184
|
-
productId: string;
|
|
185
|
-
/** Pass `true` to enable cancellation option of plans for the customer, pass `false` to disable it. */
|
|
186
|
-
allowed: boolean | null;
|
|
187
|
-
}
|
|
188
|
-
interface EnableCustomerCancellationResponse {
|
|
189
|
-
}
|
|
190
|
-
interface GetSubscriptionOptionRequest {
|
|
191
|
-
/**
|
|
192
|
-
* Subscription option ID.
|
|
193
|
-
* @minLength 1
|
|
194
|
-
* @format GUID
|
|
195
|
-
*/
|
|
196
|
-
_id: string;
|
|
197
|
-
}
|
|
198
|
-
interface GetSubscriptionOptionResponse {
|
|
199
|
-
/** Subscription option. */
|
|
200
|
-
subscriptionOption?: SubscriptionOption;
|
|
201
|
-
}
|
|
202
|
-
interface GetSubscriptionOptionsForProductRequest {
|
|
203
|
-
/**
|
|
204
|
-
* Product ID.
|
|
205
|
-
* @minLength 1
|
|
206
|
-
*/
|
|
207
|
-
productId: string;
|
|
208
|
-
/** Whether to include hidden subscription options in the results. */
|
|
209
|
-
includeHiddenSubscriptionOptions?: boolean;
|
|
210
|
-
}
|
|
211
|
-
interface GetSubscriptionOptionsForProductResponse {
|
|
212
|
-
/** Subscription options. */
|
|
213
|
-
subscriptionOptions?: SubscriptionOptionInProduct[];
|
|
214
|
-
}
|
|
215
121
|
interface ListSubscriptionOptionsRequest {
|
|
216
122
|
/**
|
|
217
123
|
* Subscription option IDs.
|
|
@@ -369,6 +275,151 @@ interface GetOneTimePurchasesStatusResponse {
|
|
|
369
275
|
/** Whether the specified product is available for one-time purchase */
|
|
370
276
|
allowed?: boolean;
|
|
371
277
|
}
|
|
278
|
+
interface CreateSubscriptionOptionRequest {
|
|
279
|
+
/** Subscription option info. */
|
|
280
|
+
subscriptionOption: SubscriptionOption;
|
|
281
|
+
}
|
|
282
|
+
interface CreateSubscriptionOptionResponse {
|
|
283
|
+
/** Newly created subscription option. */
|
|
284
|
+
subscriptionOption?: SubscriptionOption;
|
|
285
|
+
}
|
|
286
|
+
interface UpdateSubscriptionOptionRequest {
|
|
287
|
+
/** Subscription option info. Only the passed parameters will be updated. */
|
|
288
|
+
subscriptionOption: SubscriptionOption;
|
|
289
|
+
}
|
|
290
|
+
interface UpdateSubscriptionOptionResponse {
|
|
291
|
+
/** Updated subscription option. */
|
|
292
|
+
subscriptionOption?: SubscriptionOption;
|
|
293
|
+
}
|
|
294
|
+
interface DeleteSubscriptionOptionRequest {
|
|
295
|
+
/**
|
|
296
|
+
* ID of the subscription option to delete.
|
|
297
|
+
* @minLength 1
|
|
298
|
+
* @format GUID
|
|
299
|
+
*/
|
|
300
|
+
_id: string;
|
|
301
|
+
}
|
|
302
|
+
interface DeleteSubscriptionOptionResponse {
|
|
303
|
+
}
|
|
304
|
+
interface BulkCreateSubscriptionOptionsRequest {
|
|
305
|
+
/**
|
|
306
|
+
* Subscription options info.
|
|
307
|
+
* @maxSize 100
|
|
308
|
+
*/
|
|
309
|
+
subscriptionOptions: SubscriptionOption[];
|
|
310
|
+
}
|
|
311
|
+
interface BulkCreateSubscriptionOptionsResponse {
|
|
312
|
+
/** Newly created subscription options. */
|
|
313
|
+
subscriptionOptions?: SubscriptionOption[];
|
|
314
|
+
}
|
|
315
|
+
interface BulkUpdateSubscriptionOptionsRequest {
|
|
316
|
+
/**
|
|
317
|
+
* Subscription options info. Only the passed parameters in each subscription option will be updated.
|
|
318
|
+
* @maxSize 100
|
|
319
|
+
*/
|
|
320
|
+
subscriptionOptions: SubscriptionOption[];
|
|
321
|
+
}
|
|
322
|
+
interface BulkUpdateSubscriptionOptionsResponse {
|
|
323
|
+
/** Updated subscription options. */
|
|
324
|
+
subscriptionOptions?: SubscriptionOption[];
|
|
325
|
+
}
|
|
326
|
+
interface BulkDeleteSubscriptionOptionsRequest {
|
|
327
|
+
/**
|
|
328
|
+
* IDs of the subscription options to delete.
|
|
329
|
+
* @maxSize 100
|
|
330
|
+
* @format GUID
|
|
331
|
+
*/
|
|
332
|
+
ids: string[];
|
|
333
|
+
}
|
|
334
|
+
interface BulkDeleteSubscriptionOptionsResponse {
|
|
335
|
+
}
|
|
336
|
+
interface AssignSubscriptionOptionsToProductRequest {
|
|
337
|
+
/**
|
|
338
|
+
* Product ID.
|
|
339
|
+
* @minLength 1
|
|
340
|
+
*/
|
|
341
|
+
productId: string;
|
|
342
|
+
/**
|
|
343
|
+
* Ordered array of subscription options that will be assigned to the product. Pass an empty array to remove all subscription options from the product.
|
|
344
|
+
* @maxSize 6
|
|
345
|
+
*/
|
|
346
|
+
assignedSubscriptionOptions?: SubscriptionOptionInProduct[];
|
|
347
|
+
}
|
|
348
|
+
interface AssignSubscriptionOptionsToProductResponse {
|
|
349
|
+
}
|
|
350
|
+
interface AllowOneTimePurchasesRequest {
|
|
351
|
+
/**
|
|
352
|
+
* Product ID.
|
|
353
|
+
* @minLength 1
|
|
354
|
+
*/
|
|
355
|
+
productId: string;
|
|
356
|
+
/** Pass `true` to offer product by subscription and as one-time purchase. Pass `false` to offer product as subscription only. */
|
|
357
|
+
allowed: boolean | null;
|
|
358
|
+
}
|
|
359
|
+
interface AllowOneTimePurchasesResponse {
|
|
360
|
+
}
|
|
361
|
+
/**
|
|
362
|
+
* Retrieves a subscription option by ID.
|
|
363
|
+
* @param _id - Subscription option ID.
|
|
364
|
+
* @public
|
|
365
|
+
* @documentationMaturity preview
|
|
366
|
+
* @requiredField _id
|
|
367
|
+
* @permissionId WIX_STORES.READ_SUBSCRIPTION_OPTIONS
|
|
368
|
+
* @applicableIdentity APP
|
|
369
|
+
* @returns Subscription option.
|
|
370
|
+
* @fqn wix.ecommerce.subscription.option.api.v1.SubscriptionOptionsReadApi.GetSubscriptionOption
|
|
371
|
+
* @deprecated
|
|
372
|
+
*/
|
|
373
|
+
declare function getSubscriptionOption(_id: string): Promise<NonNullablePaths<SubscriptionOption, `subscriptionSettings.frequency` | `subscriptionSettings.autoRenewal` | `discount.type` | `discount.value`, 3>>;
|
|
374
|
+
/**
|
|
375
|
+
* Retrieves all subscription options assigned to a specified product.
|
|
376
|
+
* By default, hidden subscription options are not returned. To retrieve all subscription options you must pass `includeHiddenSubscriptionOptions = true`.
|
|
377
|
+
* @param productId - Product ID.
|
|
378
|
+
* @public
|
|
379
|
+
* @documentationMaturity preview
|
|
380
|
+
* @requiredField productId
|
|
381
|
+
* @param options - Options.
|
|
382
|
+
* @permissionId WIX_STORES.READ_SUBSCRIPTION_OPTIONS
|
|
383
|
+
* @applicableIdentity APP
|
|
384
|
+
* @fqn wix.ecommerce.subscription.option.api.v1.SubscriptionOptionsReadApi.GetSubscriptionOptionsForProduct
|
|
385
|
+
* @deprecated
|
|
386
|
+
*/
|
|
387
|
+
declare function getSubscriptionOptionsForProduct(productId: string, options?: GetSubscriptionOptionsForProductOptions): Promise<NonNullablePaths<GetSubscriptionOptionsForProductResponse, `subscriptionOptions` | `subscriptionOptions.${number}._id` | `subscriptionOptions.${number}.hidden` | `subscriptionOptions.${number}.subscriptionSettings.frequency` | `subscriptionOptions.${number}.subscriptionSettings.autoRenewal` | `subscriptionOptions.${number}.discount.type` | `subscriptionOptions.${number}.discount.value`, 5>>;
|
|
388
|
+
interface GetSubscriptionOptionsForProductOptions {
|
|
389
|
+
/** Whether to include hidden subscription options in the results. */
|
|
390
|
+
includeHiddenSubscriptionOptions?: boolean;
|
|
391
|
+
}
|
|
392
|
+
/**
|
|
393
|
+
* Retrieves the IDs of products associated with a specified subscription option.
|
|
394
|
+
* @param _id - Subscription option ID.
|
|
395
|
+
* @public
|
|
396
|
+
* @documentationMaturity preview
|
|
397
|
+
* @requiredField _id
|
|
398
|
+
* @param options - Paging and other options.
|
|
399
|
+
* @permissionId WIX_STORES.READ_SUBSCRIPTION_OPTIONS
|
|
400
|
+
* @applicableIdentity APP
|
|
401
|
+
* @fqn wix.ecommerce.subscription.option.api.v1.SubscriptionOptionsReadApi.GetProductIdsForSubscriptionOption
|
|
402
|
+
* @deprecated
|
|
403
|
+
*/
|
|
404
|
+
declare function getProductIdsForSubscriptionOption(_id: string, options?: GetProductIdsForSubscriptionOptionOptions): Promise<NonNullablePaths<GetProductIdsForSubscriptionOptionResponse, `productIds` | `metadata.items` | `metadata.offset` | `totalResults`, 3>>;
|
|
405
|
+
interface GetProductIdsForSubscriptionOptionOptions {
|
|
406
|
+
/** Whether to include hidden products in the returned results. */
|
|
407
|
+
includeHiddenProducts?: boolean;
|
|
408
|
+
/** Optional pagination parameters */
|
|
409
|
+
paging?: Paging;
|
|
410
|
+
}
|
|
411
|
+
/**
|
|
412
|
+
* Checks whether a specified product (associated with subscription options) is available for one-time purchase.
|
|
413
|
+
* @param productId - Product ID.
|
|
414
|
+
* @public
|
|
415
|
+
* @documentationMaturity preview
|
|
416
|
+
* @requiredField productId
|
|
417
|
+
* @permissionId WIX_STORES.READ_SUBSCRIPTION_OPTIONS
|
|
418
|
+
* @applicableIdentity APP
|
|
419
|
+
* @fqn wix.ecommerce.subscription.option.api.v1.SubscriptionOptionsReadApi.GetOneTimePurchasesStatus
|
|
420
|
+
* @deprecated
|
|
421
|
+
*/
|
|
422
|
+
declare function getOneTimePurchasesStatus(productId: string): Promise<NonNullablePaths<GetOneTimePurchasesStatusResponse, `allowed`, 2>>;
|
|
372
423
|
/**
|
|
373
424
|
* Creates a subscription option.
|
|
374
425
|
* To assign to a product, call [`assignSubscriptionOptionsToProduct()`](https://www.wix.com/velo/reference/wix-stores-v2/subscriptionoptions/assign-subscription-options-to-product).
|
|
@@ -517,81 +568,5 @@ interface AssignSubscriptionOptionsToProductOptions {
|
|
|
517
568
|
* @deprecated
|
|
518
569
|
*/
|
|
519
570
|
declare function allowOneTimePurchases(productId: string, allowed: boolean): Promise<void>;
|
|
520
|
-
/**
|
|
521
|
-
* Enable Customer Cancellation option for all subscriptions of a certain product.
|
|
522
|
-
* @param productId - Product ID.
|
|
523
|
-
* @param allowed - Pass `true` to enable cancellation option of plans for the customer, pass `false` to disable it.
|
|
524
|
-
* @public
|
|
525
|
-
* @documentationMaturity preview
|
|
526
|
-
* @requiredField allowed
|
|
527
|
-
* @requiredField productId
|
|
528
|
-
* @permissionId WIX_STORES.MODIFY_SUBSCRIPTION_OPTIONS
|
|
529
|
-
* @applicableIdentity APP
|
|
530
|
-
* @fqn wix.ecommerce.subscription.option.api.v1.SubscriptionOptionsWriteApi.EnableCustomerCancellation
|
|
531
|
-
* @deprecated
|
|
532
|
-
*/
|
|
533
|
-
declare function enableCustomerCancellation(productId: string, allowed: boolean): Promise<void>;
|
|
534
|
-
/**
|
|
535
|
-
* Retrieves a subscription option by ID.
|
|
536
|
-
* @param _id - Subscription option ID.
|
|
537
|
-
* @public
|
|
538
|
-
* @documentationMaturity preview
|
|
539
|
-
* @requiredField _id
|
|
540
|
-
* @permissionId WIX_STORES.READ_SUBSCRIPTION_OPTIONS
|
|
541
|
-
* @applicableIdentity APP
|
|
542
|
-
* @returns Subscription option.
|
|
543
|
-
* @fqn wix.ecommerce.subscription.option.api.v1.SubscriptionOptionsReadApi.GetSubscriptionOption
|
|
544
|
-
* @deprecated
|
|
545
|
-
*/
|
|
546
|
-
declare function getSubscriptionOption(_id: string): Promise<NonNullablePaths<SubscriptionOption, `subscriptionSettings.frequency` | `subscriptionSettings.autoRenewal` | `discount.type` | `discount.value`, 3>>;
|
|
547
|
-
/**
|
|
548
|
-
* Retrieves all subscription options assigned to a specified product.
|
|
549
|
-
* By default, hidden subscription options are not returned. To retrieve all subscription options you must pass `includeHiddenSubscriptionOptions = true`.
|
|
550
|
-
* @param productId - Product ID.
|
|
551
|
-
* @public
|
|
552
|
-
* @documentationMaturity preview
|
|
553
|
-
* @requiredField productId
|
|
554
|
-
* @param options - Options.
|
|
555
|
-
* @permissionId WIX_STORES.READ_SUBSCRIPTION_OPTIONS
|
|
556
|
-
* @applicableIdentity APP
|
|
557
|
-
* @fqn wix.ecommerce.subscription.option.api.v1.SubscriptionOptionsReadApi.GetSubscriptionOptionsForProduct
|
|
558
|
-
* @deprecated
|
|
559
|
-
*/
|
|
560
|
-
declare function getSubscriptionOptionsForProduct(productId: string, options?: GetSubscriptionOptionsForProductOptions): Promise<NonNullablePaths<GetSubscriptionOptionsForProductResponse, `subscriptionOptions` | `subscriptionOptions.${number}._id` | `subscriptionOptions.${number}.hidden` | `subscriptionOptions.${number}.subscriptionSettings.frequency` | `subscriptionOptions.${number}.subscriptionSettings.autoRenewal` | `subscriptionOptions.${number}.discount.type` | `subscriptionOptions.${number}.discount.value`, 5>>;
|
|
561
|
-
interface GetSubscriptionOptionsForProductOptions {
|
|
562
|
-
/** Whether to include hidden subscription options in the results. */
|
|
563
|
-
includeHiddenSubscriptionOptions?: boolean;
|
|
564
|
-
}
|
|
565
|
-
/**
|
|
566
|
-
* Retrieves the IDs of products associated with a specified subscription option.
|
|
567
|
-
* @param _id - Subscription option ID.
|
|
568
|
-
* @public
|
|
569
|
-
* @documentationMaturity preview
|
|
570
|
-
* @requiredField _id
|
|
571
|
-
* @param options - Paging and other options.
|
|
572
|
-
* @permissionId WIX_STORES.READ_SUBSCRIPTION_OPTIONS
|
|
573
|
-
* @applicableIdentity APP
|
|
574
|
-
* @fqn wix.ecommerce.subscription.option.api.v1.SubscriptionOptionsReadApi.GetProductIdsForSubscriptionOption
|
|
575
|
-
* @deprecated
|
|
576
|
-
*/
|
|
577
|
-
declare function getProductIdsForSubscriptionOption(_id: string, options?: GetProductIdsForSubscriptionOptionOptions): Promise<NonNullablePaths<GetProductIdsForSubscriptionOptionResponse, `productIds` | `metadata.items` | `metadata.offset` | `totalResults`, 3>>;
|
|
578
|
-
interface GetProductIdsForSubscriptionOptionOptions {
|
|
579
|
-
/** Whether to include hidden products in the returned results. */
|
|
580
|
-
includeHiddenProducts?: boolean;
|
|
581
|
-
/** Optional pagination parameters */
|
|
582
|
-
paging?: Paging;
|
|
583
|
-
}
|
|
584
|
-
/**
|
|
585
|
-
* Checks whether a specified product (associated with subscription options) is available for one-time purchase.
|
|
586
|
-
* @param productId - Product ID.
|
|
587
|
-
* @public
|
|
588
|
-
* @documentationMaturity preview
|
|
589
|
-
* @requiredField productId
|
|
590
|
-
* @permissionId WIX_STORES.READ_SUBSCRIPTION_OPTIONS
|
|
591
|
-
* @applicableIdentity APP
|
|
592
|
-
* @fqn wix.ecommerce.subscription.option.api.v1.SubscriptionOptionsReadApi.GetOneTimePurchasesStatus
|
|
593
|
-
* @deprecated
|
|
594
|
-
*/
|
|
595
|
-
declare function getOneTimePurchasesStatus(productId: string): Promise<NonNullablePaths<GetOneTimePurchasesStatusResponse, `allowed`, 2>>;
|
|
596
571
|
|
|
597
|
-
export { type AllowOneTimePurchasesRequest, type AllowOneTimePurchasesResponse, type AssignSubscriptionOptionsToProductOptions, type AssignSubscriptionOptionsToProductRequest, type AssignSubscriptionOptionsToProductResponse, type BulkCalculatePricesRequest, type BulkCalculatePricesRequestItem, type BulkCalculatePricesRequestV2, type BulkCalculatePricesResponse, type BulkCalculatePricesResponseItem, type BulkCalculatePricesResponseV2, type BulkCreateSubscriptionOptionsRequest, type BulkCreateSubscriptionOptionsResponse, type BulkDeleteSubscriptionOptionsRequest, type BulkDeleteSubscriptionOptionsResponse, type BulkUpdateSubscriptionOptionsRequest, type BulkUpdateSubscriptionOptionsResponse, type CalculatePricesRequest, type CalculatePricesResponse, type CreateSubscriptionOptionRequest, type CreateSubscriptionOptionResponse, type DeleteSubscriptionOptionRequest, type DeleteSubscriptionOptionResponse, type Discount, DiscountType, type DiscountTypeWithLiterals, type
|
|
572
|
+
export { type AllowOneTimePurchasesRequest, type AllowOneTimePurchasesResponse, type AssignSubscriptionOptionsToProductOptions, type AssignSubscriptionOptionsToProductRequest, type AssignSubscriptionOptionsToProductResponse, type BulkCalculatePricesRequest, type BulkCalculatePricesRequestItem, type BulkCalculatePricesRequestV2, type BulkCalculatePricesResponse, type BulkCalculatePricesResponseItem, type BulkCalculatePricesResponseV2, type BulkCreateSubscriptionOptionsRequest, type BulkCreateSubscriptionOptionsResponse, type BulkDeleteSubscriptionOptionsRequest, type BulkDeleteSubscriptionOptionsResponse, type BulkUpdateSubscriptionOptionsRequest, type BulkUpdateSubscriptionOptionsResponse, type CalculatePricesRequest, type CalculatePricesResponse, type CreateSubscriptionOptionRequest, type CreateSubscriptionOptionResponse, type DeleteSubscriptionOptionRequest, type DeleteSubscriptionOptionResponse, type Discount, DiscountType, type DiscountTypeWithLiterals, type GetOneTimePurchasesStatusRequest, type GetOneTimePurchasesStatusResponse, type GetProductIdsForSubscriptionOptionOptions, type GetProductIdsForSubscriptionOptionRequest, type GetProductIdsForSubscriptionOptionResponse, type GetSubscriptionOptionRequest, type GetSubscriptionOptionResponse, type GetSubscriptionOptionsForProductOptions, type GetSubscriptionOptionsForProductRequest, type GetSubscriptionOptionsForProductResponse, type ListSubscriptionOptionsRequest, type ListSubscriptionOptionsResponse, type Paging, type PagingMetadata, SubscriptionFrequency, type SubscriptionFrequencyWithLiterals, type SubscriptionOption, type SubscriptionOptionInProduct, type SubscriptionOptionPriceData, type SubscriptionOptionPrices, type SubscriptionSettings, type UpdateSubscriptionOption, type UpdateSubscriptionOptionRequest, type UpdateSubscriptionOptionResponse, allowOneTimePurchases, assignSubscriptionOptionsToProduct, bulkCreateSubscriptionOptions, bulkDeleteSubscriptionOptions, bulkUpdateSubscriptionOptions, createSubscriptionOption, deleteSubscriptionOption, getOneTimePurchasesStatus, getProductIdsForSubscriptionOption, getSubscriptionOption, getSubscriptionOptionsForProduct, updateSubscriptionOption };
|