@wix/auto_sdk_stores_subscription-options 1.0.10 → 1.0.11
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/index.d.mts +144 -0
- package/build/index.d.ts +144 -0
- package/build/index.js +873 -0
- package/build/index.js.map +1 -0
- package/build/index.mjs +836 -0
- package/build/index.mjs.map +1 -0
- package/build/internal/index.d.mts +144 -0
- package/build/internal/index.d.ts +144 -0
- package/build/internal/index.js +873 -0
- package/build/internal/index.js.map +1 -0
- package/build/internal/index.mjs +836 -0
- package/build/internal/index.mjs.map +1 -0
- package/build/internal/meta.d.mts +290 -0
- package/build/internal/meta.d.ts +290 -0
- package/build/internal/meta.js +658 -0
- package/build/internal/meta.js.map +1 -0
- package/build/internal/meta.mjs +620 -0
- package/build/internal/meta.mjs.map +1 -0
- package/build/{es/src/stores-v1-subscription-option-subscription-options.types.d.ts → internal/stores-v1-subscription-option-subscription-options.universal-CvhCuWKj.d.mts} +98 -54
- package/build/internal/{cjs/src/stores-v1-subscription-option-subscription-options.types.d.ts → stores-v1-subscription-option-subscription-options.universal-CvhCuWKj.d.ts} +98 -54
- package/build/meta.d.mts +290 -0
- package/build/meta.d.ts +290 -0
- package/build/meta.js +658 -0
- package/build/meta.js.map +1 -0
- package/build/meta.mjs +620 -0
- package/build/meta.mjs.map +1 -0
- package/build/{internal/es/src/stores-v1-subscription-option-subscription-options.types.d.ts → stores-v1-subscription-option-subscription-options.universal-CvhCuWKj.d.mts} +98 -54
- package/build/{cjs/src/stores-v1-subscription-option-subscription-options.types.d.ts → stores-v1-subscription-option-subscription-options.universal-CvhCuWKj.d.ts} +98 -54
- package/package.json +12 -11
- package/build/cjs/index.d.ts +0 -1
- package/build/cjs/index.js +0 -18
- package/build/cjs/index.js.map +0 -1
- package/build/cjs/index.typings.d.ts +0 -1
- package/build/cjs/index.typings.js +0 -18
- package/build/cjs/index.typings.js.map +0 -1
- package/build/cjs/meta.d.ts +0 -1
- package/build/cjs/meta.js +0 -18
- package/build/cjs/meta.js.map +0 -1
- package/build/cjs/src/stores-v1-subscription-option-subscription-options.context.d.ts +0 -16
- package/build/cjs/src/stores-v1-subscription-option-subscription-options.context.js +0 -21
- package/build/cjs/src/stores-v1-subscription-option-subscription-options.context.js.map +0 -1
- package/build/cjs/src/stores-v1-subscription-option-subscription-options.http.d.ts +0 -70
- package/build/cjs/src/stores-v1-subscription-option-subscription-options.http.js +0 -421
- package/build/cjs/src/stores-v1-subscription-option-subscription-options.http.js.map +0 -1
- package/build/cjs/src/stores-v1-subscription-option-subscription-options.meta.d.ts +0 -40
- package/build/cjs/src/stores-v1-subscription-option-subscription-options.meta.js +0 -258
- package/build/cjs/src/stores-v1-subscription-option-subscription-options.meta.js.map +0 -1
- package/build/cjs/src/stores-v1-subscription-option-subscription-options.public.d.ts +0 -131
- package/build/cjs/src/stores-v1-subscription-option-subscription-options.public.js +0 -81
- package/build/cjs/src/stores-v1-subscription-option-subscription-options.public.js.map +0 -1
- package/build/cjs/src/stores-v1-subscription-option-subscription-options.types.js +0 -20
- package/build/cjs/src/stores-v1-subscription-option-subscription-options.types.js.map +0 -1
- package/build/cjs/src/stores-v1-subscription-option-subscription-options.universal.d.ts +0 -663
- package/build/cjs/src/stores-v1-subscription-option-subscription-options.universal.js +0 -586
- package/build/cjs/src/stores-v1-subscription-option-subscription-options.universal.js.map +0 -1
- package/build/es/index.d.ts +0 -1
- package/build/es/index.js +0 -2
- package/build/es/index.js.map +0 -1
- package/build/es/index.typings.d.ts +0 -1
- package/build/es/index.typings.js +0 -2
- package/build/es/index.typings.js.map +0 -1
- package/build/es/meta.d.ts +0 -1
- package/build/es/meta.js +0 -2
- package/build/es/meta.js.map +0 -1
- package/build/es/package.json +0 -3
- package/build/es/src/stores-v1-subscription-option-subscription-options.context.d.ts +0 -16
- package/build/es/src/stores-v1-subscription-option-subscription-options.context.js +0 -16
- package/build/es/src/stores-v1-subscription-option-subscription-options.context.js.map +0 -1
- package/build/es/src/stores-v1-subscription-option-subscription-options.http.d.ts +0 -70
- package/build/es/src/stores-v1-subscription-option-subscription-options.http.js +0 -406
- package/build/es/src/stores-v1-subscription-option-subscription-options.http.js.map +0 -1
- package/build/es/src/stores-v1-subscription-option-subscription-options.meta.d.ts +0 -40
- package/build/es/src/stores-v1-subscription-option-subscription-options.meta.js +0 -220
- package/build/es/src/stores-v1-subscription-option-subscription-options.meta.js.map +0 -1
- package/build/es/src/stores-v1-subscription-option-subscription-options.public.d.ts +0 -131
- package/build/es/src/stores-v1-subscription-option-subscription-options.public.js +0 -64
- package/build/es/src/stores-v1-subscription-option-subscription-options.public.js.map +0 -1
- package/build/es/src/stores-v1-subscription-option-subscription-options.types.js +0 -17
- package/build/es/src/stores-v1-subscription-option-subscription-options.types.js.map +0 -1
- package/build/es/src/stores-v1-subscription-option-subscription-options.universal.d.ts +0 -663
- package/build/es/src/stores-v1-subscription-option-subscription-options.universal.js +0 -548
- package/build/es/src/stores-v1-subscription-option-subscription-options.universal.js.map +0 -1
- package/build/internal/cjs/index.d.ts +0 -1
- package/build/internal/cjs/index.js +0 -18
- package/build/internal/cjs/index.js.map +0 -1
- package/build/internal/cjs/index.typings.d.ts +0 -1
- package/build/internal/cjs/index.typings.js +0 -18
- package/build/internal/cjs/index.typings.js.map +0 -1
- package/build/internal/cjs/meta.d.ts +0 -1
- package/build/internal/cjs/meta.js +0 -18
- package/build/internal/cjs/meta.js.map +0 -1
- package/build/internal/cjs/src/stores-v1-subscription-option-subscription-options.context.d.ts +0 -16
- package/build/internal/cjs/src/stores-v1-subscription-option-subscription-options.context.js +0 -21
- package/build/internal/cjs/src/stores-v1-subscription-option-subscription-options.context.js.map +0 -1
- package/build/internal/cjs/src/stores-v1-subscription-option-subscription-options.http.d.ts +0 -70
- package/build/internal/cjs/src/stores-v1-subscription-option-subscription-options.http.js +0 -421
- package/build/internal/cjs/src/stores-v1-subscription-option-subscription-options.http.js.map +0 -1
- package/build/internal/cjs/src/stores-v1-subscription-option-subscription-options.meta.d.ts +0 -40
- package/build/internal/cjs/src/stores-v1-subscription-option-subscription-options.meta.js +0 -258
- package/build/internal/cjs/src/stores-v1-subscription-option-subscription-options.meta.js.map +0 -1
- package/build/internal/cjs/src/stores-v1-subscription-option-subscription-options.public.d.ts +0 -131
- package/build/internal/cjs/src/stores-v1-subscription-option-subscription-options.public.js +0 -81
- package/build/internal/cjs/src/stores-v1-subscription-option-subscription-options.public.js.map +0 -1
- package/build/internal/cjs/src/stores-v1-subscription-option-subscription-options.types.js +0 -20
- package/build/internal/cjs/src/stores-v1-subscription-option-subscription-options.types.js.map +0 -1
- package/build/internal/cjs/src/stores-v1-subscription-option-subscription-options.universal.d.ts +0 -663
- package/build/internal/cjs/src/stores-v1-subscription-option-subscription-options.universal.js +0 -586
- package/build/internal/cjs/src/stores-v1-subscription-option-subscription-options.universal.js.map +0 -1
- package/build/internal/es/index.d.ts +0 -1
- package/build/internal/es/index.js +0 -2
- package/build/internal/es/index.js.map +0 -1
- package/build/internal/es/index.typings.d.ts +0 -1
- package/build/internal/es/index.typings.js +0 -2
- package/build/internal/es/index.typings.js.map +0 -1
- package/build/internal/es/meta.d.ts +0 -1
- package/build/internal/es/meta.js +0 -2
- package/build/internal/es/meta.js.map +0 -1
- package/build/internal/es/src/stores-v1-subscription-option-subscription-options.context.d.ts +0 -16
- package/build/internal/es/src/stores-v1-subscription-option-subscription-options.context.js +0 -16
- package/build/internal/es/src/stores-v1-subscription-option-subscription-options.context.js.map +0 -1
- package/build/internal/es/src/stores-v1-subscription-option-subscription-options.http.d.ts +0 -70
- package/build/internal/es/src/stores-v1-subscription-option-subscription-options.http.js +0 -406
- package/build/internal/es/src/stores-v1-subscription-option-subscription-options.http.js.map +0 -1
- package/build/internal/es/src/stores-v1-subscription-option-subscription-options.meta.d.ts +0 -40
- package/build/internal/es/src/stores-v1-subscription-option-subscription-options.meta.js +0 -220
- package/build/internal/es/src/stores-v1-subscription-option-subscription-options.meta.js.map +0 -1
- package/build/internal/es/src/stores-v1-subscription-option-subscription-options.public.d.ts +0 -131
- package/build/internal/es/src/stores-v1-subscription-option-subscription-options.public.js +0 -64
- package/build/internal/es/src/stores-v1-subscription-option-subscription-options.public.js.map +0 -1
- package/build/internal/es/src/stores-v1-subscription-option-subscription-options.types.js +0 -17
- package/build/internal/es/src/stores-v1-subscription-option-subscription-options.types.js.map +0 -1
- package/build/internal/es/src/stores-v1-subscription-option-subscription-options.universal.d.ts +0 -663
- package/build/internal/es/src/stores-v1-subscription-option-subscription-options.universal.js +0 -548
- package/build/internal/es/src/stores-v1-subscription-option-subscription-options.universal.js.map +0 -1
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
|
|
1
|
+
interface SubscriptionOption {
|
|
2
2
|
/**
|
|
3
3
|
* Subscription option ID (auto-generated upon subscription option creation).
|
|
4
4
|
* @format GUID
|
|
5
5
|
*/
|
|
6
|
-
|
|
6
|
+
_id?: string | null;
|
|
7
7
|
/**
|
|
8
8
|
* Subscription option title.
|
|
9
9
|
* @minLength 1
|
|
@@ -23,7 +23,7 @@ export interface SubscriptionOption {
|
|
|
23
23
|
*/
|
|
24
24
|
discount?: Discount;
|
|
25
25
|
}
|
|
26
|
-
|
|
26
|
+
interface SubscriptionSettings {
|
|
27
27
|
/** Frequency of recurring payment. */
|
|
28
28
|
frequency?: SubscriptionFrequencyWithLiterals;
|
|
29
29
|
/** Whether subscription is renewed automatically at the end of each period. */
|
|
@@ -36,7 +36,7 @@ export interface SubscriptionSettings {
|
|
|
36
36
|
billingCycles?: number | null;
|
|
37
37
|
}
|
|
38
38
|
/** Frequency unit of recurring payment */
|
|
39
|
-
|
|
39
|
+
declare enum SubscriptionFrequency {
|
|
40
40
|
UNDEFINED = "UNDEFINED",
|
|
41
41
|
DAY = "DAY",
|
|
42
42
|
WEEK = "WEEK",
|
|
@@ -44,34 +44,34 @@ export declare enum SubscriptionFrequency {
|
|
|
44
44
|
YEAR = "YEAR"
|
|
45
45
|
}
|
|
46
46
|
/** @enumType */
|
|
47
|
-
|
|
48
|
-
|
|
47
|
+
type SubscriptionFrequencyWithLiterals = SubscriptionFrequency | 'UNDEFINED' | 'DAY' | 'WEEK' | 'MONTH' | 'YEAR';
|
|
48
|
+
interface Discount {
|
|
49
49
|
/** Discount type. */
|
|
50
50
|
type?: DiscountTypeWithLiterals;
|
|
51
51
|
/** Discount value. */
|
|
52
52
|
value?: number;
|
|
53
53
|
}
|
|
54
|
-
|
|
54
|
+
declare enum DiscountType {
|
|
55
55
|
UNDEFINED = "UNDEFINED",
|
|
56
56
|
/** No discount */
|
|
57
57
|
AMOUNT = "AMOUNT",
|
|
58
58
|
PERCENT = "PERCENT"
|
|
59
59
|
}
|
|
60
60
|
/** @enumType */
|
|
61
|
-
|
|
62
|
-
|
|
61
|
+
type DiscountTypeWithLiterals = DiscountType | 'UNDEFINED' | 'AMOUNT' | 'PERCENT';
|
|
62
|
+
interface GetSubscriptionOptionRequest {
|
|
63
63
|
/**
|
|
64
64
|
* Subscription option ID.
|
|
65
65
|
* @minLength 1
|
|
66
66
|
* @format GUID
|
|
67
67
|
*/
|
|
68
|
-
|
|
68
|
+
_id: string;
|
|
69
69
|
}
|
|
70
|
-
|
|
70
|
+
interface GetSubscriptionOptionResponse {
|
|
71
71
|
/** Subscription option. */
|
|
72
72
|
subscriptionOption?: SubscriptionOption;
|
|
73
73
|
}
|
|
74
|
-
|
|
74
|
+
interface GetSubscriptionOptionsForProductRequest {
|
|
75
75
|
/**
|
|
76
76
|
* Product ID.
|
|
77
77
|
* @minLength 1
|
|
@@ -80,16 +80,16 @@ export interface GetSubscriptionOptionsForProductRequest {
|
|
|
80
80
|
/** Whether to include hidden subscription options in the results. */
|
|
81
81
|
includeHiddenSubscriptionOptions?: boolean;
|
|
82
82
|
}
|
|
83
|
-
|
|
83
|
+
interface GetSubscriptionOptionsForProductResponse {
|
|
84
84
|
/** Subscription options. */
|
|
85
85
|
subscriptionOptions?: SubscriptionOptionInProduct[];
|
|
86
86
|
}
|
|
87
|
-
|
|
87
|
+
interface SubscriptionOptionInProduct {
|
|
88
88
|
/**
|
|
89
89
|
* Subscription option ID.
|
|
90
90
|
* @format GUID
|
|
91
91
|
*/
|
|
92
|
-
|
|
92
|
+
_id?: string;
|
|
93
93
|
/** Whether the subscription option is hidden for the product (the default is false). */
|
|
94
94
|
hidden?: boolean;
|
|
95
95
|
/**
|
|
@@ -116,7 +116,7 @@ export interface SubscriptionOptionInProduct {
|
|
|
116
116
|
*/
|
|
117
117
|
discount?: Discount;
|
|
118
118
|
}
|
|
119
|
-
|
|
119
|
+
interface ListSubscriptionOptionsRequest {
|
|
120
120
|
/**
|
|
121
121
|
* Subscription option IDs.
|
|
122
122
|
* @format GUID
|
|
@@ -124,11 +124,11 @@ export interface ListSubscriptionOptionsRequest {
|
|
|
124
124
|
*/
|
|
125
125
|
ids?: string[];
|
|
126
126
|
}
|
|
127
|
-
|
|
127
|
+
interface ListSubscriptionOptionsResponse {
|
|
128
128
|
/** Subscription options. */
|
|
129
129
|
subscriptionOptions?: SubscriptionOption[];
|
|
130
130
|
}
|
|
131
|
-
|
|
131
|
+
interface CalculatePricesRequest {
|
|
132
132
|
/** original price to which subscription options discount will be applied */
|
|
133
133
|
price?: number;
|
|
134
134
|
/**
|
|
@@ -138,21 +138,21 @@ export interface CalculatePricesRequest {
|
|
|
138
138
|
*/
|
|
139
139
|
ids?: string[];
|
|
140
140
|
}
|
|
141
|
-
|
|
141
|
+
interface CalculatePricesResponse {
|
|
142
142
|
/** array of calculated prices */
|
|
143
143
|
prices?: SubscriptionOptionPrices[];
|
|
144
144
|
/** price to which subscription options discount applied */
|
|
145
145
|
originalPrice?: number;
|
|
146
146
|
}
|
|
147
|
-
|
|
147
|
+
interface SubscriptionOptionPrices {
|
|
148
148
|
/** Subscription option id */
|
|
149
|
-
|
|
149
|
+
_id?: string;
|
|
150
150
|
/** Price data calculated for subscription option */
|
|
151
151
|
priceData?: SubscriptionOptionPriceData;
|
|
152
152
|
/** Price data calculated for subscription option, converted to the currency requested in request header */
|
|
153
153
|
convertedPriceData?: SubscriptionOptionPriceData;
|
|
154
154
|
}
|
|
155
|
-
|
|
155
|
+
interface SubscriptionOptionPriceData {
|
|
156
156
|
/** Subscription option price currency */
|
|
157
157
|
currency?: string;
|
|
158
158
|
/** Price calculated after subscription option discount applied */
|
|
@@ -160,7 +160,7 @@ export interface SubscriptionOptionPriceData {
|
|
|
160
160
|
/** Price calculated after subscription option discount applied, formatted with the currency */
|
|
161
161
|
formattedDiscountedPrice?: string;
|
|
162
162
|
}
|
|
163
|
-
|
|
163
|
+
interface BulkCalculatePricesRequest {
|
|
164
164
|
/**
|
|
165
165
|
* Original prices to which subscription options discount will be applied.
|
|
166
166
|
* Key is identifier unique per price that can be used to match calculated prices with original price
|
|
@@ -174,27 +174,27 @@ export interface BulkCalculatePricesRequest {
|
|
|
174
174
|
*/
|
|
175
175
|
ids?: string[];
|
|
176
176
|
}
|
|
177
|
-
|
|
177
|
+
interface BulkCalculatePricesResponse {
|
|
178
178
|
/**
|
|
179
179
|
* Key is identifier unique per price that can be used to match calculated prices with original price
|
|
180
180
|
* Value is response with calculated prices for each subscription option
|
|
181
181
|
*/
|
|
182
182
|
calculatedPrices?: Record<string, CalculatePricesResponse>;
|
|
183
183
|
}
|
|
184
|
-
|
|
184
|
+
interface BulkCalculatePricesRequestV2 {
|
|
185
185
|
/**
|
|
186
186
|
* Original prices to be calculated for each corresponding product id with related subscription plan ids
|
|
187
187
|
* @maxSize 100
|
|
188
188
|
*/
|
|
189
189
|
items?: BulkCalculatePricesRequestItem[];
|
|
190
190
|
}
|
|
191
|
-
|
|
191
|
+
interface BulkCalculatePricesRequestItem {
|
|
192
192
|
/**
|
|
193
193
|
* Calculation id (product id)
|
|
194
194
|
* @minLength 1
|
|
195
195
|
* @maxLength 36
|
|
196
196
|
*/
|
|
197
|
-
|
|
197
|
+
_id?: string;
|
|
198
198
|
/**
|
|
199
199
|
* Original prices to which subscription options discount will be applied.
|
|
200
200
|
* Key is identifier unique per price that can be used to match calculated prices with original price
|
|
@@ -208,38 +208,38 @@ export interface BulkCalculatePricesRequestItem {
|
|
|
208
208
|
*/
|
|
209
209
|
subscriptionOptionIds?: string[];
|
|
210
210
|
}
|
|
211
|
-
|
|
211
|
+
interface BulkCalculatePricesResponseV2 {
|
|
212
212
|
/**
|
|
213
213
|
* Key is identifier unique per price that can be used to match calculated prices with original price
|
|
214
214
|
* Value is response with calculated prices for each subscription option for each product
|
|
215
215
|
*/
|
|
216
216
|
calculatedPricesPerProduct?: BulkCalculatePricesResponseItem[];
|
|
217
217
|
}
|
|
218
|
-
|
|
218
|
+
interface BulkCalculatePricesResponseItem {
|
|
219
219
|
/**
|
|
220
220
|
* Calculation id (product id)
|
|
221
221
|
* @minLength 1
|
|
222
222
|
*/
|
|
223
|
-
|
|
223
|
+
_id?: string;
|
|
224
224
|
/**
|
|
225
225
|
* Key is identifier unique per price that can be used to match calculated prices with original price
|
|
226
226
|
* Value is response with calculated prices for each subscription option
|
|
227
227
|
*/
|
|
228
228
|
calculatedPrices?: Record<string, CalculatePricesResponse>;
|
|
229
229
|
}
|
|
230
|
-
|
|
230
|
+
interface GetProductIdsForSubscriptionOptionRequest {
|
|
231
231
|
/**
|
|
232
232
|
* Subscription option ID.
|
|
233
233
|
* @minLength 1
|
|
234
234
|
* @format GUID
|
|
235
235
|
*/
|
|
236
|
-
|
|
236
|
+
_id: string;
|
|
237
237
|
/** Whether to include hidden products in the returned results. */
|
|
238
238
|
includeHiddenProducts?: boolean;
|
|
239
239
|
/** Optional pagination parameters */
|
|
240
240
|
paging?: Paging;
|
|
241
241
|
}
|
|
242
|
-
|
|
242
|
+
interface Paging {
|
|
243
243
|
/**
|
|
244
244
|
* Amount of items to load per page.
|
|
245
245
|
* @max 100
|
|
@@ -248,7 +248,7 @@ export interface Paging {
|
|
|
248
248
|
/** Number of items to skip in the display (relevant for all pages after the first). */
|
|
249
249
|
offset?: number | null;
|
|
250
250
|
}
|
|
251
|
-
|
|
251
|
+
interface GetProductIdsForSubscriptionOptionResponse {
|
|
252
252
|
/** IDs of products associated with the specified subscription option. */
|
|
253
253
|
productIds?: string[];
|
|
254
254
|
/** Paging metadata. */
|
|
@@ -256,72 +256,72 @@ export interface GetProductIdsForSubscriptionOptionResponse {
|
|
|
256
256
|
/** Number of total results. */
|
|
257
257
|
totalResults?: number;
|
|
258
258
|
}
|
|
259
|
-
|
|
259
|
+
interface PagingMetadata {
|
|
260
260
|
/** Amount of items to load per page. */
|
|
261
261
|
items?: number;
|
|
262
262
|
/** Number of items to skip in the display (relevant for all pages after the first). */
|
|
263
263
|
offset?: number;
|
|
264
264
|
}
|
|
265
|
-
|
|
265
|
+
interface GetOneTimePurchasesStatusRequest {
|
|
266
266
|
/**
|
|
267
267
|
* Product ID.
|
|
268
268
|
* @minLength 1
|
|
269
269
|
*/
|
|
270
270
|
productId: string;
|
|
271
271
|
}
|
|
272
|
-
|
|
272
|
+
interface GetOneTimePurchasesStatusResponse {
|
|
273
273
|
/** Whether the specified product is available for one-time purchase */
|
|
274
274
|
allowed?: boolean;
|
|
275
275
|
}
|
|
276
|
-
|
|
276
|
+
interface CreateSubscriptionOptionRequest {
|
|
277
277
|
/** Subscription option info. */
|
|
278
278
|
subscriptionOption: SubscriptionOption;
|
|
279
279
|
}
|
|
280
|
-
|
|
280
|
+
interface CreateSubscriptionOptionResponse {
|
|
281
281
|
/** Newly created subscription option. */
|
|
282
282
|
subscriptionOption?: SubscriptionOption;
|
|
283
283
|
}
|
|
284
|
-
|
|
284
|
+
interface UpdateSubscriptionOptionRequest {
|
|
285
285
|
/** Subscription option info. Only the passed parameters will be updated. */
|
|
286
286
|
subscriptionOption: SubscriptionOption;
|
|
287
287
|
}
|
|
288
|
-
|
|
288
|
+
interface UpdateSubscriptionOptionResponse {
|
|
289
289
|
/** Updated subscription option. */
|
|
290
290
|
subscriptionOption?: SubscriptionOption;
|
|
291
291
|
}
|
|
292
|
-
|
|
292
|
+
interface DeleteSubscriptionOptionRequest {
|
|
293
293
|
/**
|
|
294
294
|
* ID of the subscription option to delete.
|
|
295
295
|
* @minLength 1
|
|
296
296
|
* @format GUID
|
|
297
297
|
*/
|
|
298
|
-
|
|
298
|
+
_id: string;
|
|
299
299
|
}
|
|
300
|
-
|
|
300
|
+
interface DeleteSubscriptionOptionResponse {
|
|
301
301
|
}
|
|
302
|
-
|
|
302
|
+
interface BulkCreateSubscriptionOptionsRequest {
|
|
303
303
|
/**
|
|
304
304
|
* Subscription options info.
|
|
305
305
|
* @maxSize 100
|
|
306
306
|
*/
|
|
307
307
|
subscriptionOptions: SubscriptionOption[];
|
|
308
308
|
}
|
|
309
|
-
|
|
309
|
+
interface BulkCreateSubscriptionOptionsResponse {
|
|
310
310
|
/** Newly created subscription options. */
|
|
311
311
|
subscriptionOptions?: SubscriptionOption[];
|
|
312
312
|
}
|
|
313
|
-
|
|
313
|
+
interface BulkUpdateSubscriptionOptionsRequest {
|
|
314
314
|
/**
|
|
315
315
|
* Subscription options info. Only the passed parameters in each subscription option will be updated.
|
|
316
316
|
* @maxSize 100
|
|
317
317
|
*/
|
|
318
318
|
subscriptionOptions: SubscriptionOption[];
|
|
319
319
|
}
|
|
320
|
-
|
|
320
|
+
interface BulkUpdateSubscriptionOptionsResponse {
|
|
321
321
|
/** Updated subscription options. */
|
|
322
322
|
subscriptionOptions?: SubscriptionOption[];
|
|
323
323
|
}
|
|
324
|
-
|
|
324
|
+
interface BulkDeleteSubscriptionOptionsRequest {
|
|
325
325
|
/**
|
|
326
326
|
* IDs of the subscription options to delete.
|
|
327
327
|
* @maxSize 100
|
|
@@ -329,9 +329,9 @@ export interface BulkDeleteSubscriptionOptionsRequest {
|
|
|
329
329
|
*/
|
|
330
330
|
ids: string[];
|
|
331
331
|
}
|
|
332
|
-
|
|
332
|
+
interface BulkDeleteSubscriptionOptionsResponse {
|
|
333
333
|
}
|
|
334
|
-
|
|
334
|
+
interface AssignSubscriptionOptionsToProductRequest {
|
|
335
335
|
/**
|
|
336
336
|
* Product ID.
|
|
337
337
|
* @minLength 1
|
|
@@ -343,9 +343,9 @@ export interface AssignSubscriptionOptionsToProductRequest {
|
|
|
343
343
|
*/
|
|
344
344
|
assignedSubscriptionOptions?: SubscriptionOptionInProduct[];
|
|
345
345
|
}
|
|
346
|
-
|
|
346
|
+
interface AssignSubscriptionOptionsToProductResponse {
|
|
347
347
|
}
|
|
348
|
-
|
|
348
|
+
interface AllowOneTimePurchasesRequest {
|
|
349
349
|
/**
|
|
350
350
|
* Product ID.
|
|
351
351
|
* @minLength 1
|
|
@@ -354,5 +354,49 @@ export interface AllowOneTimePurchasesRequest {
|
|
|
354
354
|
/** Pass `true` to offer product by subscription and as one-time purchase. Pass `false` to offer product as subscription only. */
|
|
355
355
|
allowed: boolean | null;
|
|
356
356
|
}
|
|
357
|
-
|
|
357
|
+
interface AllowOneTimePurchasesResponse {
|
|
358
358
|
}
|
|
359
|
+
interface GetSubscriptionOptionsForProductOptions {
|
|
360
|
+
/** Whether to include hidden subscription options in the results. */
|
|
361
|
+
includeHiddenSubscriptionOptions?: boolean;
|
|
362
|
+
}
|
|
363
|
+
interface GetProductIdsForSubscriptionOptionOptions {
|
|
364
|
+
/** Whether to include hidden products in the returned results. */
|
|
365
|
+
includeHiddenProducts?: boolean;
|
|
366
|
+
/** Optional pagination parameters */
|
|
367
|
+
paging?: Paging;
|
|
368
|
+
}
|
|
369
|
+
interface UpdateSubscriptionOption {
|
|
370
|
+
/**
|
|
371
|
+
* Subscription option ID (auto-generated upon subscription option creation).
|
|
372
|
+
* @format GUID
|
|
373
|
+
*/
|
|
374
|
+
_id?: string | null;
|
|
375
|
+
/**
|
|
376
|
+
* Subscription option title.
|
|
377
|
+
* @minLength 1
|
|
378
|
+
* @maxLength 20
|
|
379
|
+
*/
|
|
380
|
+
title?: string | null;
|
|
381
|
+
/**
|
|
382
|
+
* Subscription option description (optional).
|
|
383
|
+
* @maxLength 60
|
|
384
|
+
*/
|
|
385
|
+
description?: string | null;
|
|
386
|
+
/** Subscription charge times. For example, if `frequency: MONTH` and `billingCycles: 6`; payment will be made monthly for 6 months. */
|
|
387
|
+
subscriptionSettings?: SubscriptionSettings;
|
|
388
|
+
/**
|
|
389
|
+
* Discount info (optional).
|
|
390
|
+
* For example, a $20 discount would be `value: 20`, `type: AMOUNT`.
|
|
391
|
+
*/
|
|
392
|
+
discount?: Discount;
|
|
393
|
+
}
|
|
394
|
+
interface AssignSubscriptionOptionsToProductOptions {
|
|
395
|
+
/**
|
|
396
|
+
* Ordered array of subscription options that will be assigned to the product. Pass an empty array to remove all subscription options from the product.
|
|
397
|
+
* @maxSize 6
|
|
398
|
+
*/
|
|
399
|
+
assignedSubscriptionOptions?: SubscriptionOptionInProduct[];
|
|
400
|
+
}
|
|
401
|
+
|
|
402
|
+
export { type AssignSubscriptionOptionsToProductOptions as A, type BulkCreateSubscriptionOptionsResponse as B, type CalculatePricesRequest as C, DiscountType as D, type CreateSubscriptionOptionResponse as E, type UpdateSubscriptionOptionRequest as F, type GetSubscriptionOptionsForProductOptions as G, type UpdateSubscriptionOptionResponse as H, type DeleteSubscriptionOptionRequest as I, type DeleteSubscriptionOptionResponse as J, type BulkCreateSubscriptionOptionsRequest as K, type ListSubscriptionOptionsRequest as L, type BulkUpdateSubscriptionOptionsRequest as M, type BulkDeleteSubscriptionOptionsRequest as N, type BulkDeleteSubscriptionOptionsResponse as O, type Paging as P, type AssignSubscriptionOptionsToProductRequest as Q, type AssignSubscriptionOptionsToProductResponse as R, type SubscriptionOption as S, type AllowOneTimePurchasesRequest as T, type UpdateSubscriptionOption as U, type AllowOneTimePurchasesResponse as V, type GetSubscriptionOptionsForProductResponse as a, type GetProductIdsForSubscriptionOptionOptions as b, type GetProductIdsForSubscriptionOptionResponse as c, type GetOneTimePurchasesStatusResponse as d, type BulkUpdateSubscriptionOptionsResponse as e, SubscriptionFrequency as f, type SubscriptionSettings as g, type Discount as h, type GetSubscriptionOptionRequest as i, type GetSubscriptionOptionResponse as j, type GetSubscriptionOptionsForProductRequest as k, type SubscriptionOptionInProduct as l, type ListSubscriptionOptionsResponse as m, type CalculatePricesResponse as n, type SubscriptionOptionPrices as o, type SubscriptionOptionPriceData as p, type BulkCalculatePricesRequest as q, type BulkCalculatePricesResponse as r, type BulkCalculatePricesRequestV2 as s, type BulkCalculatePricesRequestItem as t, type BulkCalculatePricesResponseV2 as u, type BulkCalculatePricesResponseItem as v, type GetProductIdsForSubscriptionOptionRequest as w, type PagingMetadata as x, type GetOneTimePurchasesStatusRequest as y, type CreateSubscriptionOptionRequest as z };
|
package/package.json
CHANGED
|
@@ -1,25 +1,25 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wix/auto_sdk_stores_subscription-options",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.11",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"registry": "https://registry.npmjs.org/",
|
|
6
6
|
"access": "public"
|
|
7
7
|
},
|
|
8
8
|
"keywords": [],
|
|
9
9
|
"sideEffects": false,
|
|
10
|
-
"main": "
|
|
11
|
-
"types": "./build/
|
|
10
|
+
"main": "/build/index.js",
|
|
11
|
+
"types": "./build/index.d.mts",
|
|
12
12
|
"exports": {
|
|
13
13
|
".": {
|
|
14
|
-
"import": "./build/
|
|
15
|
-
"require": "./build/
|
|
16
|
-
"types": "./build/
|
|
14
|
+
"import": "./build/index.mjs",
|
|
15
|
+
"require": "./build/index.js",
|
|
16
|
+
"types": "./build/index.d.mts"
|
|
17
17
|
},
|
|
18
18
|
"./package.json": "./package.json",
|
|
19
19
|
"./meta": {
|
|
20
|
-
"import": "./build/
|
|
21
|
-
"require": "./build/
|
|
22
|
-
"types": "./build/
|
|
20
|
+
"import": "./build/meta.mjs",
|
|
21
|
+
"require": "./build/meta.js",
|
|
22
|
+
"types": "./build/meta.d.mts"
|
|
23
23
|
}
|
|
24
24
|
},
|
|
25
25
|
"files": [
|
|
@@ -32,10 +32,11 @@
|
|
|
32
32
|
"@wix/sdk-types": "^1.13.28"
|
|
33
33
|
},
|
|
34
34
|
"devDependencies": {
|
|
35
|
+
"tsup": "^8.4.0",
|
|
35
36
|
"typescript": "^5.3.2"
|
|
36
37
|
},
|
|
37
38
|
"scripts": {
|
|
38
|
-
"build": "
|
|
39
|
+
"build": "tsup",
|
|
39
40
|
"test": ":"
|
|
40
41
|
},
|
|
41
42
|
"wix": {
|
|
@@ -48,5 +49,5 @@
|
|
|
48
49
|
"fqdn": "wix.stores.v1.subscription_option"
|
|
49
50
|
}
|
|
50
51
|
},
|
|
51
|
-
"falconPackageHash": "
|
|
52
|
+
"falconPackageHash": "cec2cef6b090d6cc9b2b88d0e74cfac38aa4ee238c0c6eac29d5d67a"
|
|
52
53
|
}
|
package/build/cjs/index.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './src/stores-v1-subscription-option-subscription-options.context.js';
|
package/build/cjs/index.js
DELETED
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
-
};
|
|
16
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("./src/stores-v1-subscription-option-subscription-options.context.js"), exports);
|
|
18
|
-
//# sourceMappingURL=index.js.map
|
package/build/cjs/index.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,sGAAoF"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './src/stores-v1-subscription-option-subscription-options.universal.js';
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
-
};
|
|
16
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("./src/stores-v1-subscription-option-subscription-options.universal.js"), exports);
|
|
18
|
-
//# sourceMappingURL=index.typings.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.typings.js","sourceRoot":"","sources":["../../index.typings.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,wGAAsF"}
|
package/build/cjs/meta.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './src/stores-v1-subscription-option-subscription-options.meta.js';
|
package/build/cjs/meta.js
DELETED
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
-
};
|
|
16
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("./src/stores-v1-subscription-option-subscription-options.meta.js"), exports);
|
|
18
|
-
//# sourceMappingURL=meta.js.map
|
package/build/cjs/meta.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"meta.js","sourceRoot":"","sources":["../../meta.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,mGAAiF"}
|
|
@@ -1,16 +0,0 @@
|
|
|
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
|
-
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>;
|
|
7
|
-
export declare const createSubscriptionOption: MaybeContext<BuildRESTFunction<typeof publicCreateSubscriptionOption> & typeof publicCreateSubscriptionOption>;
|
|
8
|
-
export declare const updateSubscriptionOption: MaybeContext<BuildRESTFunction<typeof publicUpdateSubscriptionOption> & typeof publicUpdateSubscriptionOption>;
|
|
9
|
-
export declare const deleteSubscriptionOption: MaybeContext<BuildRESTFunction<typeof publicDeleteSubscriptionOption> & typeof publicDeleteSubscriptionOption>;
|
|
10
|
-
export declare const bulkCreateSubscriptionOptions: MaybeContext<BuildRESTFunction<typeof publicBulkCreateSubscriptionOptions> & typeof publicBulkCreateSubscriptionOptions>;
|
|
11
|
-
export declare const bulkUpdateSubscriptionOptions: MaybeContext<BuildRESTFunction<typeof publicBulkUpdateSubscriptionOptions> & typeof publicBulkUpdateSubscriptionOptions>;
|
|
12
|
-
export declare const bulkDeleteSubscriptionOptions: MaybeContext<BuildRESTFunction<typeof publicBulkDeleteSubscriptionOptions> & typeof publicBulkDeleteSubscriptionOptions>;
|
|
13
|
-
export declare const assignSubscriptionOptionsToProduct: MaybeContext<BuildRESTFunction<typeof publicAssignSubscriptionOptionsToProduct> & typeof publicAssignSubscriptionOptionsToProduct>;
|
|
14
|
-
export declare const allowOneTimePurchases: MaybeContext<BuildRESTFunction<typeof publicAllowOneTimePurchases> & typeof publicAllowOneTimePurchases>;
|
|
15
|
-
export { SubscriptionFrequency, DiscountType, } from './stores-v1-subscription-option-subscription-options.universal.js';
|
|
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, GetSubscriptionOptionsForProductOptions, GetProductIdsForSubscriptionOptionOptions, UpdateSubscriptionOption, AssignSubscriptionOptionsToProductOptions, } from './stores-v1-subscription-option-subscription-options.universal.js';
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
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
|
-
const stores_v1_subscription_option_subscription_options_public_js_1 = require("./stores-v1-subscription-option-subscription-options.public.js");
|
|
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);
|
|
10
|
-
exports.createSubscriptionOption = (0, rest_modules_1.createRESTModule)(stores_v1_subscription_option_subscription_options_public_js_1.createSubscriptionOption);
|
|
11
|
-
exports.updateSubscriptionOption = (0, rest_modules_1.createRESTModule)(stores_v1_subscription_option_subscription_options_public_js_1.updateSubscriptionOption);
|
|
12
|
-
exports.deleteSubscriptionOption = (0, rest_modules_1.createRESTModule)(stores_v1_subscription_option_subscription_options_public_js_1.deleteSubscriptionOption);
|
|
13
|
-
exports.bulkCreateSubscriptionOptions = (0, rest_modules_1.createRESTModule)(stores_v1_subscription_option_subscription_options_public_js_1.bulkCreateSubscriptionOptions);
|
|
14
|
-
exports.bulkUpdateSubscriptionOptions = (0, rest_modules_1.createRESTModule)(stores_v1_subscription_option_subscription_options_public_js_1.bulkUpdateSubscriptionOptions);
|
|
15
|
-
exports.bulkDeleteSubscriptionOptions = (0, rest_modules_1.createRESTModule)(stores_v1_subscription_option_subscription_options_public_js_1.bulkDeleteSubscriptionOptions);
|
|
16
|
-
exports.assignSubscriptionOptionsToProduct = (0, rest_modules_1.createRESTModule)(stores_v1_subscription_option_subscription_options_public_js_1.assignSubscriptionOptionsToProduct);
|
|
17
|
-
exports.allowOneTimePurchases = (0, rest_modules_1.createRESTModule)(stores_v1_subscription_option_subscription_options_public_js_1.allowOneTimePurchases);
|
|
18
|
-
var stores_v1_subscription_option_subscription_options_universal_js_1 = require("./stores-v1-subscription-option-subscription-options.universal.js");
|
|
19
|
-
Object.defineProperty(exports, "SubscriptionFrequency", { enumerable: true, get: function () { return stores_v1_subscription_option_subscription_options_universal_js_1.SubscriptionFrequency; } });
|
|
20
|
-
Object.defineProperty(exports, "DiscountType", { enumerable: true, get: function () { return stores_v1_subscription_option_subscription_options_universal_js_1.DiscountType; } });
|
|
21
|
-
//# sourceMappingURL=stores-v1-subscription-option-subscription-options.context.js.map
|
|
@@ -1 +0,0 @@
|
|
|
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,70 +0,0 @@
|
|
|
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>;
|
|
23
|
-
/**
|
|
24
|
-
* Creates a subscription option.
|
|
25
|
-
* To assign to a product, call [`assignSubscriptionOptionsToProduct()`](https://www.wix.com/velo/reference/wix-stores-v2/subscriptionoptions/assign-subscription-options-to-product).
|
|
26
|
-
* Subscription options that are not assigned to a product will not be visible in the Wix business manager.
|
|
27
|
-
* @deprecated
|
|
28
|
-
*/
|
|
29
|
-
export declare function createSubscriptionOption(payload: object): RequestOptionsFactory<any>;
|
|
30
|
-
/**
|
|
31
|
-
* Updates a subscription option.
|
|
32
|
-
* Only parameters passed will be updated.
|
|
33
|
-
* @deprecated
|
|
34
|
-
*/
|
|
35
|
-
export declare function updateSubscriptionOption(payload: object): RequestOptionsFactory<any>;
|
|
36
|
-
/**
|
|
37
|
-
* Deletes a subscription option.
|
|
38
|
-
* @deprecated
|
|
39
|
-
*/
|
|
40
|
-
export declare function deleteSubscriptionOption(payload: object): RequestOptionsFactory<any>;
|
|
41
|
-
/**
|
|
42
|
-
* Creates multiple subscription options (up to 100).
|
|
43
|
-
* To assign to a product, call [`assignSubscriptionOptionsToProduct()`](https://www.wix.com/velo/reference/wix-stores-v2/subscriptionoptions/assign-subscription-options-to-product).
|
|
44
|
-
* Subscription options that are not assigned to a product will not be visible in the Wix business manager.
|
|
45
|
-
* @deprecated
|
|
46
|
-
*/
|
|
47
|
-
export declare function bulkCreateSubscriptionOptions(payload: object): RequestOptionsFactory<any>;
|
|
48
|
-
/**
|
|
49
|
-
* Updates multiple subscription options.
|
|
50
|
-
* Only parameters passed will be updated.
|
|
51
|
-
* @deprecated
|
|
52
|
-
*/
|
|
53
|
-
export declare function bulkUpdateSubscriptionOptions(payload: object): RequestOptionsFactory<any>;
|
|
54
|
-
/**
|
|
55
|
-
* Deletes multiple subscription options.
|
|
56
|
-
* @deprecated
|
|
57
|
-
*/
|
|
58
|
-
export declare function bulkDeleteSubscriptionOptions(payload: object): RequestOptionsFactory<any>;
|
|
59
|
-
/**
|
|
60
|
-
* Assign up to 6 subscription options to a specified product.
|
|
61
|
-
* Pass an empty array to remove all subscription options assigned to a product.
|
|
62
|
-
* @deprecated
|
|
63
|
-
*/
|
|
64
|
-
export declare function assignSubscriptionOptionsToProduct(payload: object): RequestOptionsFactory<any>;
|
|
65
|
-
/**
|
|
66
|
-
* Allow for one-time purchase of a product.
|
|
67
|
-
* By default, product can be sold only as part of a subscription, not as a one-time purchase.
|
|
68
|
-
* @deprecated
|
|
69
|
-
*/
|
|
70
|
-
export declare function allowOneTimePurchases(payload: object): RequestOptionsFactory<any>;
|