@wix/auto_sdk_stores_subscription-options 1.0.30 → 1.0.32
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 +53 -42
- package/build/cjs/index.js +293 -234
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +175 -150
- package/build/cjs/index.typings.js +255 -205
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.d.ts +122 -108
- package/build/cjs/meta.js +219 -176
- package/build/cjs/meta.js.map +1 -1
- package/build/es/index.d.mts +53 -42
- package/build/es/index.mjs +292 -234
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +175 -150
- package/build/es/index.typings.mjs +254 -205
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.d.mts +122 -108
- package/build/es/meta.mjs +218 -176
- package/build/es/meta.mjs.map +1 -1
- package/build/internal/cjs/index.d.ts +53 -42
- package/build/internal/cjs/index.js +293 -234
- package/build/internal/cjs/index.js.map +1 -1
- package/build/internal/cjs/index.typings.d.ts +175 -150
- package/build/internal/cjs/index.typings.js +255 -205
- package/build/internal/cjs/index.typings.js.map +1 -1
- package/build/internal/cjs/meta.d.ts +122 -108
- package/build/internal/cjs/meta.js +219 -176
- package/build/internal/cjs/meta.js.map +1 -1
- package/build/internal/es/index.d.mts +53 -42
- package/build/internal/es/index.mjs +292 -234
- package/build/internal/es/index.mjs.map +1 -1
- package/build/internal/es/index.typings.d.mts +175 -150
- package/build/internal/es/index.typings.mjs +254 -205
- package/build/internal/es/index.typings.mjs.map +1 -1
- package/build/internal/es/meta.d.mts +122 -108
- package/build/internal/es/meta.mjs +218 -176
- 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,44 +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 GetSubscriptionOptionRequest {
|
|
180
|
-
/**
|
|
181
|
-
* Subscription option ID.
|
|
182
|
-
* @minLength 1
|
|
183
|
-
* @format GUID
|
|
184
|
-
*/
|
|
185
|
-
_id: string;
|
|
186
|
-
}
|
|
187
|
-
interface GetSubscriptionOptionResponse {
|
|
188
|
-
/** Subscription option. */
|
|
189
|
-
subscriptionOption?: SubscriptionOption;
|
|
190
|
-
}
|
|
191
|
-
interface GetSubscriptionOptionsForProductRequest {
|
|
192
|
-
/**
|
|
193
|
-
* Product ID.
|
|
194
|
-
* @minLength 1
|
|
195
|
-
*/
|
|
196
|
-
productId: string;
|
|
197
|
-
/** Whether to include hidden subscription options in the results. */
|
|
198
|
-
includeHiddenSubscriptionOptions?: boolean;
|
|
199
|
-
}
|
|
200
|
-
interface GetSubscriptionOptionsForProductResponse {
|
|
201
|
-
/** Subscription options. */
|
|
202
|
-
subscriptionOptions?: SubscriptionOptionInProduct[];
|
|
203
|
-
}
|
|
204
121
|
interface ListSubscriptionOptionsRequest {
|
|
205
122
|
/**
|
|
206
123
|
* Subscription option IDs.
|
|
@@ -358,6 +275,162 @@ interface GetOneTimePurchasesStatusResponse {
|
|
|
358
275
|
/** Whether the specified product is available for one-time purchase */
|
|
359
276
|
allowed?: boolean;
|
|
360
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
|
+
interface EnableCustomerCancellationRequest {
|
|
362
|
+
/**
|
|
363
|
+
* Product ID.
|
|
364
|
+
* @minLength 1
|
|
365
|
+
*/
|
|
366
|
+
productId: string;
|
|
367
|
+
/** Pass `true` to enable cancellation option of plans for the customer, pass `false` to disable it. */
|
|
368
|
+
allowed: boolean | null;
|
|
369
|
+
}
|
|
370
|
+
interface EnableCustomerCancellationResponse {
|
|
371
|
+
}
|
|
372
|
+
/**
|
|
373
|
+
* Retrieves a subscription option by ID.
|
|
374
|
+
* @param _id - Subscription option ID.
|
|
375
|
+
* @public
|
|
376
|
+
* @documentationMaturity preview
|
|
377
|
+
* @requiredField _id
|
|
378
|
+
* @permissionId WIX_STORES.READ_SUBSCRIPTION_OPTIONS
|
|
379
|
+
* @applicableIdentity APP
|
|
380
|
+
* @returns Subscription option.
|
|
381
|
+
* @fqn wix.ecommerce.subscription.option.api.v1.SubscriptionOptionsReadApi.GetSubscriptionOption
|
|
382
|
+
* @deprecated
|
|
383
|
+
*/
|
|
384
|
+
declare function getSubscriptionOption(_id: string): Promise<NonNullablePaths<SubscriptionOption, `subscriptionSettings.frequency` | `subscriptionSettings.autoRenewal` | `discount.type` | `discount.value`, 3>>;
|
|
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
|
+
* @applicableIdentity APP
|
|
395
|
+
* @fqn wix.ecommerce.subscription.option.api.v1.SubscriptionOptionsReadApi.GetSubscriptionOptionsForProduct
|
|
396
|
+
* @deprecated
|
|
397
|
+
*/
|
|
398
|
+
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>>;
|
|
399
|
+
interface GetSubscriptionOptionsForProductOptions {
|
|
400
|
+
/** Whether to include hidden subscription options in the results. */
|
|
401
|
+
includeHiddenSubscriptionOptions?: boolean;
|
|
402
|
+
}
|
|
403
|
+
/**
|
|
404
|
+
* Retrieves the IDs of products associated with a specified subscription option.
|
|
405
|
+
* @param _id - Subscription option ID.
|
|
406
|
+
* @public
|
|
407
|
+
* @documentationMaturity preview
|
|
408
|
+
* @requiredField _id
|
|
409
|
+
* @param options - Paging and other options.
|
|
410
|
+
* @permissionId WIX_STORES.READ_SUBSCRIPTION_OPTIONS
|
|
411
|
+
* @applicableIdentity APP
|
|
412
|
+
* @fqn wix.ecommerce.subscription.option.api.v1.SubscriptionOptionsReadApi.GetProductIdsForSubscriptionOption
|
|
413
|
+
* @deprecated
|
|
414
|
+
*/
|
|
415
|
+
declare function getProductIdsForSubscriptionOption(_id: string, options?: GetProductIdsForSubscriptionOptionOptions): Promise<NonNullablePaths<GetProductIdsForSubscriptionOptionResponse, `productIds` | `metadata.items` | `metadata.offset` | `totalResults`, 3>>;
|
|
416
|
+
interface GetProductIdsForSubscriptionOptionOptions {
|
|
417
|
+
/** Whether to include hidden products in the returned results. */
|
|
418
|
+
includeHiddenProducts?: boolean;
|
|
419
|
+
/** Optional pagination parameters */
|
|
420
|
+
paging?: Paging;
|
|
421
|
+
}
|
|
422
|
+
/**
|
|
423
|
+
* Checks whether a specified product (associated with subscription options) is available for one-time purchase.
|
|
424
|
+
* @param productId - Product ID.
|
|
425
|
+
* @public
|
|
426
|
+
* @documentationMaturity preview
|
|
427
|
+
* @requiredField productId
|
|
428
|
+
* @permissionId WIX_STORES.READ_SUBSCRIPTION_OPTIONS
|
|
429
|
+
* @applicableIdentity APP
|
|
430
|
+
* @fqn wix.ecommerce.subscription.option.api.v1.SubscriptionOptionsReadApi.GetOneTimePurchasesStatus
|
|
431
|
+
* @deprecated
|
|
432
|
+
*/
|
|
433
|
+
declare function getOneTimePurchasesStatus(productId: string): Promise<NonNullablePaths<GetOneTimePurchasesStatusResponse, `allowed`, 2>>;
|
|
361
434
|
/**
|
|
362
435
|
* Creates a subscription option.
|
|
363
436
|
* To assign to a product, call [`assignSubscriptionOptionsToProduct()`](https://www.wix.com/velo/reference/wix-stores-v2/subscriptionoptions/assign-subscription-options-to-product).
|
|
@@ -507,66 +580,18 @@ interface AssignSubscriptionOptionsToProductOptions {
|
|
|
507
580
|
*/
|
|
508
581
|
declare function allowOneTimePurchases(productId: string, allowed: boolean): Promise<void>;
|
|
509
582
|
/**
|
|
510
|
-
*
|
|
511
|
-
* @param _id - Subscription option ID.
|
|
512
|
-
* @public
|
|
513
|
-
* @documentationMaturity preview
|
|
514
|
-
* @requiredField _id
|
|
515
|
-
* @permissionId WIX_STORES.READ_SUBSCRIPTION_OPTIONS
|
|
516
|
-
* @applicableIdentity APP
|
|
517
|
-
* @returns Subscription option.
|
|
518
|
-
* @fqn wix.ecommerce.subscription.option.api.v1.SubscriptionOptionsReadApi.GetSubscriptionOption
|
|
519
|
-
* @deprecated
|
|
520
|
-
*/
|
|
521
|
-
declare function getSubscriptionOption(_id: string): Promise<NonNullablePaths<SubscriptionOption, `subscriptionSettings.frequency` | `subscriptionSettings.autoRenewal` | `discount.type` | `discount.value`, 3>>;
|
|
522
|
-
/**
|
|
523
|
-
* Retrieves all subscription options assigned to a specified product.
|
|
524
|
-
* By default, hidden subscription options are not returned. To retrieve all subscription options you must pass `includeHiddenSubscriptionOptions = true`.
|
|
525
|
-
* @param productId - Product ID.
|
|
526
|
-
* @public
|
|
527
|
-
* @documentationMaturity preview
|
|
528
|
-
* @requiredField productId
|
|
529
|
-
* @param options - Options.
|
|
530
|
-
* @permissionId WIX_STORES.READ_SUBSCRIPTION_OPTIONS
|
|
531
|
-
* @applicableIdentity APP
|
|
532
|
-
* @fqn wix.ecommerce.subscription.option.api.v1.SubscriptionOptionsReadApi.GetSubscriptionOptionsForProduct
|
|
533
|
-
* @deprecated
|
|
534
|
-
*/
|
|
535
|
-
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>>;
|
|
536
|
-
interface GetSubscriptionOptionsForProductOptions {
|
|
537
|
-
/** Whether to include hidden subscription options in the results. */
|
|
538
|
-
includeHiddenSubscriptionOptions?: boolean;
|
|
539
|
-
}
|
|
540
|
-
/**
|
|
541
|
-
* Retrieves the IDs of products associated with a specified subscription option.
|
|
542
|
-
* @param _id - Subscription option ID.
|
|
543
|
-
* @public
|
|
544
|
-
* @documentationMaturity preview
|
|
545
|
-
* @requiredField _id
|
|
546
|
-
* @param options - Paging and other options.
|
|
547
|
-
* @permissionId WIX_STORES.READ_SUBSCRIPTION_OPTIONS
|
|
548
|
-
* @applicableIdentity APP
|
|
549
|
-
* @fqn wix.ecommerce.subscription.option.api.v1.SubscriptionOptionsReadApi.GetProductIdsForSubscriptionOption
|
|
550
|
-
* @deprecated
|
|
551
|
-
*/
|
|
552
|
-
declare function getProductIdsForSubscriptionOption(_id: string, options?: GetProductIdsForSubscriptionOptionOptions): Promise<NonNullablePaths<GetProductIdsForSubscriptionOptionResponse, `productIds` | `metadata.items` | `metadata.offset` | `totalResults`, 3>>;
|
|
553
|
-
interface GetProductIdsForSubscriptionOptionOptions {
|
|
554
|
-
/** Whether to include hidden products in the returned results. */
|
|
555
|
-
includeHiddenProducts?: boolean;
|
|
556
|
-
/** Optional pagination parameters */
|
|
557
|
-
paging?: Paging;
|
|
558
|
-
}
|
|
559
|
-
/**
|
|
560
|
-
* Checks whether a specified product (associated with subscription options) is available for one-time purchase.
|
|
583
|
+
* Enable Customer Cancellation option for all subscriptions of a certain product.
|
|
561
584
|
* @param productId - Product ID.
|
|
585
|
+
* @param allowed - Pass `true` to enable cancellation option of plans for the customer, pass `false` to disable it.
|
|
562
586
|
* @public
|
|
563
587
|
* @documentationMaturity preview
|
|
588
|
+
* @requiredField allowed
|
|
564
589
|
* @requiredField productId
|
|
565
|
-
* @permissionId WIX_STORES.
|
|
590
|
+
* @permissionId WIX_STORES.MODIFY_SUBSCRIPTION_OPTIONS
|
|
566
591
|
* @applicableIdentity APP
|
|
567
|
-
* @fqn wix.ecommerce.subscription.option.api.v1.
|
|
592
|
+
* @fqn wix.ecommerce.subscription.option.api.v1.SubscriptionOptionsWriteApi.EnableCustomerCancellation
|
|
568
593
|
* @deprecated
|
|
569
594
|
*/
|
|
570
|
-
declare function
|
|
595
|
+
declare function enableCustomerCancellation(productId: string, allowed: boolean): Promise<void>;
|
|
571
596
|
|
|
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 };
|
|
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 EnableCustomerCancellationRequest, type EnableCustomerCancellationResponse, 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, enableCustomerCancellation, getOneTimePurchasesStatus, getProductIdsForSubscriptionOption, getSubscriptionOption, getSubscriptionOptionsForProduct, updateSubscriptionOption };
|