@wix/auto_sdk_pricing-plans_orders 1.0.120 → 1.0.121
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 +129 -129
- package/build/cjs/index.js +548 -548
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +787 -787
- package/build/cjs/index.typings.js +421 -421
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.d.ts +484 -484
- package/build/cjs/meta.js +352 -352
- package/build/cjs/meta.js.map +1 -1
- package/build/cjs/schemas.d.ts +199 -199
- package/build/cjs/schemas.js +885 -885
- package/build/cjs/schemas.js.map +1 -1
- package/build/es/index.d.mts +129 -129
- package/build/es/index.mjs +548 -548
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +787 -787
- package/build/es/index.typings.mjs +421 -421
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.d.mts +484 -484
- package/build/es/meta.mjs +352 -352
- package/build/es/meta.mjs.map +1 -1
- package/build/es/schemas.d.mts +199 -199
- package/build/es/schemas.mjs +885 -885
- package/build/es/schemas.mjs.map +1 -1
- package/build/internal/cjs/index.d.ts +129 -129
- package/build/internal/cjs/index.js +548 -548
- package/build/internal/cjs/index.js.map +1 -1
- package/build/internal/cjs/index.typings.d.ts +845 -786
- package/build/internal/cjs/index.typings.js +421 -421
- package/build/internal/cjs/index.typings.js.map +1 -1
- package/build/internal/cjs/meta.d.ts +578 -477
- package/build/internal/cjs/meta.js +352 -352
- package/build/internal/cjs/meta.js.map +1 -1
- package/build/internal/cjs/schemas.d.ts +199 -199
- package/build/internal/cjs/schemas.js +885 -885
- package/build/internal/cjs/schemas.js.map +1 -1
- package/build/internal/es/index.d.mts +129 -129
- package/build/internal/es/index.mjs +548 -548
- package/build/internal/es/index.mjs.map +1 -1
- package/build/internal/es/index.typings.d.mts +845 -786
- package/build/internal/es/index.typings.mjs +421 -421
- package/build/internal/es/index.typings.mjs.map +1 -1
- package/build/internal/es/meta.d.mts +578 -477
- package/build/internal/es/meta.mjs +352 -352
- package/build/internal/es/meta.mjs.map +1 -1
- package/build/internal/es/schemas.d.mts +199 -199
- package/build/internal/es/schemas.mjs +885 -885
- package/build/internal/es/schemas.mjs.map +1 -1
- package/package.json +4 -4
package/build/cjs/index.js
CHANGED
|
@@ -141,233 +141,239 @@ function resolveComWixpressMembershipV2OrdersMemberMemberOrdersServiceUrl(opts)
|
|
|
141
141
|
};
|
|
142
142
|
return (0, import_rest_modules2.resolveUrl)(Object.assign(opts, { domainToMappings }));
|
|
143
143
|
}
|
|
144
|
-
function
|
|
144
|
+
function resolveComWixpressMembershipV2OrdersOrderManagementServiceUrl(opts) {
|
|
145
145
|
const domainToMappings = {
|
|
146
146
|
"api._api_base_domain_": [
|
|
147
147
|
{
|
|
148
|
-
srcPath: "/
|
|
148
|
+
srcPath: "/order-management-service-proxy",
|
|
149
149
|
destPath: ""
|
|
150
150
|
}
|
|
151
151
|
],
|
|
152
152
|
"*.dev.wix-code.com": [
|
|
153
153
|
{
|
|
154
|
-
srcPath: "/_api/paid-plans/v2/
|
|
155
|
-
destPath: "/v2/
|
|
154
|
+
srcPath: "/_api/paid-plans/v2/orders",
|
|
155
|
+
destPath: "/v2/orders"
|
|
156
156
|
}
|
|
157
157
|
],
|
|
158
158
|
"*.pub.wix-code.com": [
|
|
159
159
|
{
|
|
160
|
-
srcPath: "/_api/paid-plans/v2/
|
|
161
|
-
destPath: "/v2/
|
|
160
|
+
srcPath: "/_api/paid-plans/v2/orders",
|
|
161
|
+
destPath: "/v2/orders"
|
|
162
162
|
}
|
|
163
163
|
],
|
|
164
164
|
"*.wixapps.net": [
|
|
165
165
|
{
|
|
166
|
-
srcPath: "/_api/paid-plans/v2/
|
|
167
|
-
destPath: "/v2/
|
|
166
|
+
srcPath: "/_api/paid-plans/v2/orders",
|
|
167
|
+
destPath: "/v2/orders"
|
|
168
168
|
}
|
|
169
169
|
],
|
|
170
170
|
_: [
|
|
171
171
|
{
|
|
172
|
-
srcPath: "/
|
|
173
|
-
destPath: "/v2/
|
|
174
|
-
},
|
|
175
|
-
{
|
|
176
|
-
srcPath: "/_api/paid-plans/v2/checkout",
|
|
177
|
-
destPath: "/v2/checkout"
|
|
178
|
-
},
|
|
179
|
-
{
|
|
180
|
-
srcPath: "/_api/pricing-plans/v2/checkout",
|
|
181
|
-
destPath: "/v2/checkout"
|
|
172
|
+
srcPath: "/_api/paid-plans/v2/orders",
|
|
173
|
+
destPath: "/v2/orders"
|
|
182
174
|
}
|
|
183
175
|
],
|
|
184
176
|
"editor-flow.wixapps.net": [
|
|
185
177
|
{
|
|
186
|
-
srcPath: "/_api/paid-plans/v2/
|
|
187
|
-
destPath: "/v2/
|
|
178
|
+
srcPath: "/_api/paid-plans/v2/orders",
|
|
179
|
+
destPath: "/v2/orders"
|
|
188
180
|
}
|
|
189
181
|
],
|
|
190
182
|
"editor._base_domain_": [
|
|
191
183
|
{
|
|
192
|
-
srcPath: "/_api/paid-plans/v2/
|
|
193
|
-
destPath: "/v2/
|
|
184
|
+
srcPath: "/_api/paid-plans/v2/orders",
|
|
185
|
+
destPath: "/v2/orders"
|
|
194
186
|
}
|
|
195
187
|
],
|
|
196
188
|
"blocks._base_domain_": [
|
|
197
189
|
{
|
|
198
|
-
srcPath: "/_api/paid-plans/v2/
|
|
199
|
-
destPath: "/v2/
|
|
190
|
+
srcPath: "/_api/paid-plans/v2/orders",
|
|
191
|
+
destPath: "/v2/orders"
|
|
200
192
|
}
|
|
201
193
|
],
|
|
202
194
|
"create.editorx": [
|
|
203
195
|
{
|
|
204
|
-
srcPath: "/_api/paid-plans/v2/
|
|
205
|
-
destPath: "/v2/
|
|
196
|
+
srcPath: "/_api/paid-plans/v2/orders",
|
|
197
|
+
destPath: "/v2/orders"
|
|
206
198
|
}
|
|
207
199
|
],
|
|
208
200
|
"editor.wixapps.net": [
|
|
209
201
|
{
|
|
210
|
-
srcPath: "/_api/paid-plans/v2/
|
|
211
|
-
destPath: "/v2/
|
|
202
|
+
srcPath: "/_api/paid-plans/v2/orders",
|
|
203
|
+
destPath: "/v2/orders"
|
|
212
204
|
}
|
|
213
205
|
],
|
|
214
206
|
"forums._base_domain_": [
|
|
215
207
|
{
|
|
216
|
-
srcPath: "/_api/paid-plans/v2/
|
|
217
|
-
destPath: "/v2/
|
|
208
|
+
srcPath: "/_api/paid-plans/v2/orders",
|
|
209
|
+
destPath: "/v2/orders"
|
|
218
210
|
}
|
|
219
211
|
],
|
|
220
212
|
"forums.wixapps.net": [
|
|
221
213
|
{
|
|
222
|
-
srcPath: "/_api/paid-plans/v2/
|
|
223
|
-
destPath: "/v2/
|
|
214
|
+
srcPath: "/_api/paid-plans/v2/orders",
|
|
215
|
+
destPath: "/v2/orders"
|
|
224
216
|
}
|
|
225
217
|
],
|
|
226
218
|
"manage._base_domain_": [
|
|
227
219
|
{
|
|
228
|
-
srcPath: "/_api/pricing-plans/v2/
|
|
229
|
-
destPath: "/v2/
|
|
230
|
-
},
|
|
231
|
-
{
|
|
232
|
-
srcPath: "/_api/paid-plans/v2/checkout",
|
|
233
|
-
destPath: "/v2/checkout"
|
|
220
|
+
srcPath: "/_api/pricing-plans/v2/orders",
|
|
221
|
+
destPath: "/v2/orders"
|
|
234
222
|
},
|
|
235
223
|
{
|
|
236
|
-
srcPath: "/
|
|
237
|
-
destPath: "/v2/
|
|
224
|
+
srcPath: "/_api/paid-plans/v2/orders",
|
|
225
|
+
destPath: "/v2/orders"
|
|
238
226
|
}
|
|
239
227
|
],
|
|
240
228
|
"www._base_domain_": [
|
|
241
229
|
{
|
|
242
|
-
srcPath: "/_api/paid-plans/v2/
|
|
243
|
-
destPath: "/v2/
|
|
230
|
+
srcPath: "/_api/paid-plans/v2/orders",
|
|
231
|
+
destPath: "/v2/orders"
|
|
244
232
|
}
|
|
245
233
|
],
|
|
246
234
|
"www.wixapis.com": [
|
|
247
235
|
{
|
|
248
|
-
srcPath: "/pricing-plans/v2/
|
|
249
|
-
destPath: "/v2/
|
|
236
|
+
srcPath: "/pricing-plans/v2/orders",
|
|
237
|
+
destPath: "/v2/orders"
|
|
250
238
|
}
|
|
251
239
|
]
|
|
252
240
|
};
|
|
253
241
|
return (0, import_rest_modules2.resolveUrl)(Object.assign(opts, { domainToMappings }));
|
|
254
242
|
}
|
|
255
|
-
function
|
|
243
|
+
function resolveComWixpressMembershipV2OrdersCheckoutServiceUrl(opts) {
|
|
256
244
|
const domainToMappings = {
|
|
257
245
|
"api._api_base_domain_": [
|
|
258
246
|
{
|
|
259
|
-
srcPath: "/
|
|
247
|
+
srcPath: "/pricing-plans-checkout-proxy",
|
|
260
248
|
destPath: ""
|
|
261
249
|
}
|
|
262
250
|
],
|
|
263
251
|
"*.dev.wix-code.com": [
|
|
264
252
|
{
|
|
265
|
-
srcPath: "/_api/paid-plans/v2/
|
|
266
|
-
destPath: "/v2/
|
|
253
|
+
srcPath: "/_api/paid-plans/v2/checkout",
|
|
254
|
+
destPath: "/v2/checkout"
|
|
267
255
|
}
|
|
268
256
|
],
|
|
269
257
|
"*.pub.wix-code.com": [
|
|
270
258
|
{
|
|
271
|
-
srcPath: "/_api/paid-plans/v2/
|
|
272
|
-
destPath: "/v2/
|
|
259
|
+
srcPath: "/_api/paid-plans/v2/checkout",
|
|
260
|
+
destPath: "/v2/checkout"
|
|
273
261
|
}
|
|
274
262
|
],
|
|
275
263
|
"*.wixapps.net": [
|
|
276
264
|
{
|
|
277
|
-
srcPath: "/_api/paid-plans/v2/
|
|
278
|
-
destPath: "/v2/
|
|
265
|
+
srcPath: "/_api/paid-plans/v2/checkout",
|
|
266
|
+
destPath: "/v2/checkout"
|
|
279
267
|
}
|
|
280
268
|
],
|
|
281
269
|
_: [
|
|
282
270
|
{
|
|
283
|
-
srcPath: "/
|
|
284
|
-
destPath: "/v2/
|
|
271
|
+
srcPath: "/pricing-plans/v2/checkout",
|
|
272
|
+
destPath: "/v2/checkout"
|
|
273
|
+
},
|
|
274
|
+
{
|
|
275
|
+
srcPath: "/_api/paid-plans/v2/checkout",
|
|
276
|
+
destPath: "/v2/checkout"
|
|
277
|
+
},
|
|
278
|
+
{
|
|
279
|
+
srcPath: "/_api/pricing-plans/v2/checkout",
|
|
280
|
+
destPath: "/v2/checkout"
|
|
285
281
|
}
|
|
286
282
|
],
|
|
287
283
|
"editor-flow.wixapps.net": [
|
|
288
284
|
{
|
|
289
|
-
srcPath: "/_api/paid-plans/v2/
|
|
290
|
-
destPath: "/v2/
|
|
285
|
+
srcPath: "/_api/paid-plans/v2/checkout",
|
|
286
|
+
destPath: "/v2/checkout"
|
|
291
287
|
}
|
|
292
288
|
],
|
|
293
289
|
"editor._base_domain_": [
|
|
294
290
|
{
|
|
295
|
-
srcPath: "/_api/paid-plans/v2/
|
|
296
|
-
destPath: "/v2/
|
|
291
|
+
srcPath: "/_api/paid-plans/v2/checkout",
|
|
292
|
+
destPath: "/v2/checkout"
|
|
297
293
|
}
|
|
298
294
|
],
|
|
299
295
|
"blocks._base_domain_": [
|
|
300
296
|
{
|
|
301
|
-
srcPath: "/_api/paid-plans/v2/
|
|
302
|
-
destPath: "/v2/
|
|
297
|
+
srcPath: "/_api/paid-plans/v2/checkout",
|
|
298
|
+
destPath: "/v2/checkout"
|
|
303
299
|
}
|
|
304
300
|
],
|
|
305
301
|
"create.editorx": [
|
|
306
302
|
{
|
|
307
|
-
srcPath: "/_api/paid-plans/v2/
|
|
308
|
-
destPath: "/v2/
|
|
303
|
+
srcPath: "/_api/paid-plans/v2/checkout",
|
|
304
|
+
destPath: "/v2/checkout"
|
|
309
305
|
}
|
|
310
306
|
],
|
|
311
307
|
"editor.wixapps.net": [
|
|
312
308
|
{
|
|
313
|
-
srcPath: "/_api/paid-plans/v2/
|
|
314
|
-
destPath: "/v2/
|
|
309
|
+
srcPath: "/_api/paid-plans/v2/checkout",
|
|
310
|
+
destPath: "/v2/checkout"
|
|
315
311
|
}
|
|
316
312
|
],
|
|
317
313
|
"forums._base_domain_": [
|
|
318
314
|
{
|
|
319
|
-
srcPath: "/_api/paid-plans/v2/
|
|
320
|
-
destPath: "/v2/
|
|
315
|
+
srcPath: "/_api/paid-plans/v2/checkout",
|
|
316
|
+
destPath: "/v2/checkout"
|
|
321
317
|
}
|
|
322
318
|
],
|
|
323
319
|
"forums.wixapps.net": [
|
|
324
320
|
{
|
|
325
|
-
srcPath: "/_api/paid-plans/v2/
|
|
326
|
-
destPath: "/v2/
|
|
321
|
+
srcPath: "/_api/paid-plans/v2/checkout",
|
|
322
|
+
destPath: "/v2/checkout"
|
|
327
323
|
}
|
|
328
324
|
],
|
|
329
325
|
"manage._base_domain_": [
|
|
330
326
|
{
|
|
331
|
-
srcPath: "/_api/pricing-plans/v2/
|
|
332
|
-
destPath: "/v2/
|
|
327
|
+
srcPath: "/_api/pricing-plans/v2/checkout",
|
|
328
|
+
destPath: "/v2/checkout"
|
|
333
329
|
},
|
|
334
330
|
{
|
|
335
|
-
srcPath: "/_api/paid-plans/v2/
|
|
336
|
-
destPath: "/v2/
|
|
331
|
+
srcPath: "/_api/paid-plans/v2/checkout",
|
|
332
|
+
destPath: "/v2/checkout"
|
|
333
|
+
},
|
|
334
|
+
{
|
|
335
|
+
srcPath: "/pricing-plans/v2/checkout",
|
|
336
|
+
destPath: "/v2/checkout"
|
|
337
337
|
}
|
|
338
338
|
],
|
|
339
339
|
"www._base_domain_": [
|
|
340
340
|
{
|
|
341
|
-
srcPath: "/_api/paid-plans/v2/
|
|
342
|
-
destPath: "/v2/
|
|
341
|
+
srcPath: "/_api/paid-plans/v2/checkout",
|
|
342
|
+
destPath: "/v2/checkout"
|
|
343
343
|
}
|
|
344
344
|
],
|
|
345
345
|
"www.wixapis.com": [
|
|
346
346
|
{
|
|
347
|
-
srcPath: "/pricing-plans/v2/
|
|
348
|
-
destPath: "/v2/
|
|
347
|
+
srcPath: "/pricing-plans/v2/checkout",
|
|
348
|
+
destPath: "/v2/checkout"
|
|
349
349
|
}
|
|
350
350
|
]
|
|
351
351
|
};
|
|
352
352
|
return (0, import_rest_modules2.resolveUrl)(Object.assign(opts, { domainToMappings }));
|
|
353
353
|
}
|
|
354
354
|
var PACKAGE_NAME = "@wix/auto_sdk_pricing-plans_orders";
|
|
355
|
-
function
|
|
356
|
-
function
|
|
355
|
+
function createOnlineOrder(payload) {
|
|
356
|
+
function __createOnlineOrder({ host }) {
|
|
357
|
+
const serializedData = (0, import_transform_paths.transformPaths)(payload, [
|
|
358
|
+
{
|
|
359
|
+
transformFn: import_timestamp.transformSDKTimestampToRESTTimestamp,
|
|
360
|
+
paths: [{ path: "startDate" }]
|
|
361
|
+
}
|
|
362
|
+
]);
|
|
357
363
|
const metadata = {
|
|
358
364
|
entityFqdn: "wix.pricing_plans.v2.order",
|
|
359
|
-
method: "
|
|
360
|
-
methodFqn: "com.wixpress.membership.v2.orders.
|
|
365
|
+
method: "POST",
|
|
366
|
+
methodFqn: "com.wixpress.membership.v2.orders.CheckoutService.CreateOnlineOrder",
|
|
361
367
|
packageName: PACKAGE_NAME,
|
|
362
368
|
migrationOptions: {
|
|
363
369
|
optInTransformResponse: true
|
|
364
370
|
},
|
|
365
|
-
url:
|
|
366
|
-
protoPath: "/v2/orders/
|
|
367
|
-
data:
|
|
371
|
+
url: resolveComWixpressMembershipV2OrdersCheckoutServiceUrl({
|
|
372
|
+
protoPath: "/v2/checkout/orders/online",
|
|
373
|
+
data: serializedData,
|
|
368
374
|
host
|
|
369
375
|
}),
|
|
370
|
-
|
|
376
|
+
data: serializedData,
|
|
371
377
|
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
372
378
|
{
|
|
373
379
|
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
@@ -390,186 +396,72 @@ function managementGetOrder(payload) {
|
|
|
390
396
|
};
|
|
391
397
|
return metadata;
|
|
392
398
|
}
|
|
393
|
-
return
|
|
399
|
+
return __createOnlineOrder;
|
|
394
400
|
}
|
|
395
|
-
function
|
|
396
|
-
function
|
|
401
|
+
function createOfflineOrder(payload) {
|
|
402
|
+
function __createOfflineOrder({ host }) {
|
|
397
403
|
const serializedData = (0, import_transform_paths.transformPaths)(payload, [
|
|
398
404
|
{
|
|
399
|
-
transformFn:
|
|
400
|
-
paths: [
|
|
401
|
-
{ path: "sorting.origin.latitude" },
|
|
402
|
-
{ path: "sorting.origin.longitude" }
|
|
403
|
-
]
|
|
405
|
+
transformFn: import_timestamp.transformSDKTimestampToRESTTimestamp,
|
|
406
|
+
paths: [{ path: "startDate" }]
|
|
404
407
|
}
|
|
405
408
|
]);
|
|
406
409
|
const metadata = {
|
|
407
410
|
entityFqdn: "wix.pricing_plans.v2.order",
|
|
408
|
-
method: "
|
|
409
|
-
methodFqn: "com.wixpress.membership.v2.orders.
|
|
411
|
+
method: "POST",
|
|
412
|
+
methodFqn: "com.wixpress.membership.v2.orders.CheckoutService.CreateOfflineOrder",
|
|
410
413
|
packageName: PACKAGE_NAME,
|
|
411
414
|
migrationOptions: {
|
|
412
415
|
optInTransformResponse: true
|
|
413
416
|
},
|
|
414
|
-
url:
|
|
415
|
-
protoPath: "/v2/orders",
|
|
417
|
+
url: resolveComWixpressMembershipV2OrdersCheckoutServiceUrl({
|
|
418
|
+
protoPath: "/v2/checkout/orders/offline",
|
|
416
419
|
data: serializedData,
|
|
417
420
|
host
|
|
418
421
|
}),
|
|
419
|
-
|
|
422
|
+
data: serializedData,
|
|
420
423
|
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
421
424
|
{
|
|
422
425
|
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
423
426
|
paths: [
|
|
424
|
-
{ path: "
|
|
425
|
-
{ path: "
|
|
426
|
-
{ path: "
|
|
427
|
-
{ path: "
|
|
428
|
-
{ path: "
|
|
429
|
-
{ path: "
|
|
430
|
-
{ path: "
|
|
431
|
-
{ path: "
|
|
432
|
-
{ path: "
|
|
433
|
-
{ path: "
|
|
434
|
-
{ path: "
|
|
435
|
-
{ path: "
|
|
427
|
+
{ path: "order.startDate" },
|
|
428
|
+
{ path: "order.endDate" },
|
|
429
|
+
{ path: "order.earliestEndDate" },
|
|
430
|
+
{ path: "order.createdDate" },
|
|
431
|
+
{ path: "order.updatedDate" },
|
|
432
|
+
{ path: "order.cancellation.requestedDate" },
|
|
433
|
+
{ path: "order.pausePeriods.pauseDate" },
|
|
434
|
+
{ path: "order.pausePeriods.resumeDate" },
|
|
435
|
+
{ path: "order.currentCycle.startedDate" },
|
|
436
|
+
{ path: "order.currentCycle.endedDate" },
|
|
437
|
+
{ path: "order.cycles.startedDate" },
|
|
438
|
+
{ path: "order.cycles.endedDate" }
|
|
436
439
|
]
|
|
437
440
|
}
|
|
438
441
|
])
|
|
439
442
|
};
|
|
440
443
|
return metadata;
|
|
441
444
|
}
|
|
442
|
-
return
|
|
445
|
+
return __createOfflineOrder;
|
|
443
446
|
}
|
|
444
|
-
function
|
|
445
|
-
function
|
|
447
|
+
function getOnlineOrderPreview(payload) {
|
|
448
|
+
function __getOnlineOrderPreview({ host }) {
|
|
446
449
|
const serializedData = (0, import_transform_paths.transformPaths)(payload, [
|
|
447
450
|
{
|
|
448
451
|
transformFn: import_timestamp.transformSDKTimestampToRESTTimestamp,
|
|
449
|
-
paths: [{ path: "
|
|
452
|
+
paths: [{ path: "startDate" }]
|
|
450
453
|
}
|
|
451
454
|
]);
|
|
452
455
|
const metadata = {
|
|
453
456
|
entityFqdn: "wix.pricing_plans.v2.order",
|
|
454
|
-
method: "
|
|
455
|
-
methodFqn: "com.wixpress.membership.v2.orders.
|
|
457
|
+
method: "POST",
|
|
458
|
+
methodFqn: "com.wixpress.membership.v2.orders.CheckoutService.GetOnlineOrderPreview",
|
|
456
459
|
packageName: PACKAGE_NAME,
|
|
457
460
|
migrationOptions: {
|
|
458
461
|
optInTransformResponse: true
|
|
459
462
|
},
|
|
460
|
-
url:
|
|
461
|
-
protoPath: "/v2/orders/
|
|
462
|
-
data: serializedData,
|
|
463
|
-
host
|
|
464
|
-
}),
|
|
465
|
-
data: serializedData
|
|
466
|
-
};
|
|
467
|
-
return metadata;
|
|
468
|
-
}
|
|
469
|
-
return __postponeEndDate;
|
|
470
|
-
}
|
|
471
|
-
function cancelOrder(payload) {
|
|
472
|
-
function __cancelOrder({ host }) {
|
|
473
|
-
const metadata = {
|
|
474
|
-
entityFqdn: "wix.pricing_plans.v2.order",
|
|
475
|
-
method: "POST",
|
|
476
|
-
methodFqn: "com.wixpress.membership.v2.orders.OrderManagementService.CancelOrder",
|
|
477
|
-
packageName: PACKAGE_NAME,
|
|
478
|
-
migrationOptions: {
|
|
479
|
-
optInTransformResponse: true
|
|
480
|
-
},
|
|
481
|
-
url: resolveComWixpressMembershipV2OrdersOrderManagementServiceUrl({
|
|
482
|
-
protoPath: "/v2/orders/{id}/cancel",
|
|
483
|
-
data: payload,
|
|
484
|
-
host
|
|
485
|
-
}),
|
|
486
|
-
data: payload
|
|
487
|
-
};
|
|
488
|
-
return metadata;
|
|
489
|
-
}
|
|
490
|
-
return __cancelOrder;
|
|
491
|
-
}
|
|
492
|
-
function markAsPaid(payload) {
|
|
493
|
-
function __markAsPaid({ host }) {
|
|
494
|
-
const metadata = {
|
|
495
|
-
entityFqdn: "wix.pricing_plans.v2.order",
|
|
496
|
-
method: "POST",
|
|
497
|
-
methodFqn: "com.wixpress.membership.v2.orders.OrderManagementService.MarkAsPaid",
|
|
498
|
-
packageName: PACKAGE_NAME,
|
|
499
|
-
migrationOptions: {
|
|
500
|
-
optInTransformResponse: true
|
|
501
|
-
},
|
|
502
|
-
url: resolveComWixpressMembershipV2OrdersOrderManagementServiceUrl({
|
|
503
|
-
protoPath: "/v2/orders/{id}/mark-as-paid",
|
|
504
|
-
data: payload,
|
|
505
|
-
host
|
|
506
|
-
}),
|
|
507
|
-
data: payload
|
|
508
|
-
};
|
|
509
|
-
return metadata;
|
|
510
|
-
}
|
|
511
|
-
return __markAsPaid;
|
|
512
|
-
}
|
|
513
|
-
function pauseOrder(payload) {
|
|
514
|
-
function __pauseOrder({ host }) {
|
|
515
|
-
const metadata = {
|
|
516
|
-
entityFqdn: "wix.pricing_plans.v2.order",
|
|
517
|
-
method: "POST",
|
|
518
|
-
methodFqn: "com.wixpress.membership.v2.orders.OrderManagementService.PauseOrder",
|
|
519
|
-
packageName: PACKAGE_NAME,
|
|
520
|
-
migrationOptions: {
|
|
521
|
-
optInTransformResponse: true
|
|
522
|
-
},
|
|
523
|
-
url: resolveComWixpressMembershipV2OrdersOrderManagementServiceUrl({
|
|
524
|
-
protoPath: "/v2/orders/{id}/pause",
|
|
525
|
-
data: payload,
|
|
526
|
-
host
|
|
527
|
-
}),
|
|
528
|
-
data: payload
|
|
529
|
-
};
|
|
530
|
-
return metadata;
|
|
531
|
-
}
|
|
532
|
-
return __pauseOrder;
|
|
533
|
-
}
|
|
534
|
-
function resumeOrder(payload) {
|
|
535
|
-
function __resumeOrder({ host }) {
|
|
536
|
-
const metadata = {
|
|
537
|
-
entityFqdn: "wix.pricing_plans.v2.order",
|
|
538
|
-
method: "POST",
|
|
539
|
-
methodFqn: "com.wixpress.membership.v2.orders.OrderManagementService.ResumeOrder",
|
|
540
|
-
packageName: PACKAGE_NAME,
|
|
541
|
-
migrationOptions: {
|
|
542
|
-
optInTransformResponse: true
|
|
543
|
-
},
|
|
544
|
-
url: resolveComWixpressMembershipV2OrdersOrderManagementServiceUrl({
|
|
545
|
-
protoPath: "/v2/orders/{id}/resume",
|
|
546
|
-
data: payload,
|
|
547
|
-
host
|
|
548
|
-
}),
|
|
549
|
-
data: payload
|
|
550
|
-
};
|
|
551
|
-
return metadata;
|
|
552
|
-
}
|
|
553
|
-
return __resumeOrder;
|
|
554
|
-
}
|
|
555
|
-
function createOnlineOrder(payload) {
|
|
556
|
-
function __createOnlineOrder({ host }) {
|
|
557
|
-
const serializedData = (0, import_transform_paths.transformPaths)(payload, [
|
|
558
|
-
{
|
|
559
|
-
transformFn: import_timestamp.transformSDKTimestampToRESTTimestamp,
|
|
560
|
-
paths: [{ path: "startDate" }]
|
|
561
|
-
}
|
|
562
|
-
]);
|
|
563
|
-
const metadata = {
|
|
564
|
-
entityFqdn: "wix.pricing_plans.v2.order",
|
|
565
|
-
method: "POST",
|
|
566
|
-
methodFqn: "com.wixpress.membership.v2.orders.CheckoutService.CreateOnlineOrder",
|
|
567
|
-
packageName: PACKAGE_NAME,
|
|
568
|
-
migrationOptions: {
|
|
569
|
-
optInTransformResponse: true
|
|
570
|
-
},
|
|
571
|
-
url: resolveComWixpressMembershipV2OrdersCheckoutServiceUrl({
|
|
572
|
-
protoPath: "/v2/checkout/orders/online",
|
|
463
|
+
url: resolveComWixpressMembershipV2OrdersCheckoutServiceUrl({
|
|
464
|
+
protoPath: "/v2/checkout/orders/preview-online",
|
|
573
465
|
data: serializedData,
|
|
574
466
|
host
|
|
575
467
|
}),
|
|
@@ -596,10 +488,10 @@ function createOnlineOrder(payload) {
|
|
|
596
488
|
};
|
|
597
489
|
return metadata;
|
|
598
490
|
}
|
|
599
|
-
return
|
|
491
|
+
return __getOnlineOrderPreview;
|
|
600
492
|
}
|
|
601
|
-
function
|
|
602
|
-
function
|
|
493
|
+
function getOfflineOrderPreview(payload) {
|
|
494
|
+
function __getOfflineOrderPreview({ host }) {
|
|
603
495
|
const serializedData = (0, import_transform_paths.transformPaths)(payload, [
|
|
604
496
|
{
|
|
605
497
|
transformFn: import_timestamp.transformSDKTimestampToRESTTimestamp,
|
|
@@ -609,13 +501,13 @@ function createOfflineOrder(payload) {
|
|
|
609
501
|
const metadata = {
|
|
610
502
|
entityFqdn: "wix.pricing_plans.v2.order",
|
|
611
503
|
method: "POST",
|
|
612
|
-
methodFqn: "com.wixpress.membership.v2.orders.CheckoutService.
|
|
504
|
+
methodFqn: "com.wixpress.membership.v2.orders.CheckoutService.GetOfflineOrderPreview",
|
|
613
505
|
packageName: PACKAGE_NAME,
|
|
614
506
|
migrationOptions: {
|
|
615
507
|
optInTransformResponse: true
|
|
616
508
|
},
|
|
617
509
|
url: resolveComWixpressMembershipV2OrdersCheckoutServiceUrl({
|
|
618
|
-
protoPath: "/v2/checkout/orders/offline",
|
|
510
|
+
protoPath: "/v2/checkout/orders/preview-offline",
|
|
619
511
|
data: serializedData,
|
|
620
512
|
host
|
|
621
513
|
}),
|
|
@@ -642,30 +534,45 @@ function createOfflineOrder(payload) {
|
|
|
642
534
|
};
|
|
643
535
|
return metadata;
|
|
644
536
|
}
|
|
645
|
-
return
|
|
537
|
+
return __getOfflineOrderPreview;
|
|
646
538
|
}
|
|
647
|
-
function
|
|
648
|
-
function
|
|
649
|
-
const serializedData = (0, import_transform_paths.transformPaths)(payload, [
|
|
650
|
-
{
|
|
651
|
-
transformFn: import_timestamp.transformSDKTimestampToRESTTimestamp,
|
|
652
|
-
paths: [{ path: "startDate" }]
|
|
653
|
-
}
|
|
654
|
-
]);
|
|
539
|
+
function getPricePreview(payload) {
|
|
540
|
+
function __getPricePreview({ host }) {
|
|
655
541
|
const metadata = {
|
|
656
542
|
entityFqdn: "wix.pricing_plans.v2.order",
|
|
657
543
|
method: "POST",
|
|
658
|
-
methodFqn: "com.wixpress.membership.v2.orders.CheckoutService.
|
|
544
|
+
methodFqn: "com.wixpress.membership.v2.orders.CheckoutService.GetPricePreview",
|
|
659
545
|
packageName: PACKAGE_NAME,
|
|
660
546
|
migrationOptions: {
|
|
661
547
|
optInTransformResponse: true
|
|
662
548
|
},
|
|
663
549
|
url: resolveComWixpressMembershipV2OrdersCheckoutServiceUrl({
|
|
664
|
-
protoPath: "/v2/checkout/orders/preview
|
|
665
|
-
data:
|
|
550
|
+
protoPath: "/v2/checkout/orders/price-preview",
|
|
551
|
+
data: payload,
|
|
666
552
|
host
|
|
667
553
|
}),
|
|
668
|
-
data:
|
|
554
|
+
data: payload
|
|
555
|
+
};
|
|
556
|
+
return metadata;
|
|
557
|
+
}
|
|
558
|
+
return __getPricePreview;
|
|
559
|
+
}
|
|
560
|
+
function managementGetOrder(payload) {
|
|
561
|
+
function __managementGetOrder({ host }) {
|
|
562
|
+
const metadata = {
|
|
563
|
+
entityFqdn: "wix.pricing_plans.v2.order",
|
|
564
|
+
method: "GET",
|
|
565
|
+
methodFqn: "com.wixpress.membership.v2.orders.OrderManagementService.GetOrder",
|
|
566
|
+
packageName: PACKAGE_NAME,
|
|
567
|
+
migrationOptions: {
|
|
568
|
+
optInTransformResponse: true
|
|
569
|
+
},
|
|
570
|
+
url: resolveComWixpressMembershipV2OrdersOrderManagementServiceUrl({
|
|
571
|
+
protoPath: "/v2/orders/{id}",
|
|
572
|
+
data: payload,
|
|
573
|
+
host
|
|
574
|
+
}),
|
|
575
|
+
params: (0, import_rest_modules.toURLSearchParams)(payload),
|
|
669
576
|
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
670
577
|
{
|
|
671
578
|
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
@@ -688,66 +595,96 @@ function getOnlineOrderPreview(payload) {
|
|
|
688
595
|
};
|
|
689
596
|
return metadata;
|
|
690
597
|
}
|
|
691
|
-
return
|
|
598
|
+
return __managementGetOrder;
|
|
692
599
|
}
|
|
693
|
-
function
|
|
694
|
-
function
|
|
600
|
+
function managementListOrders(payload) {
|
|
601
|
+
function __managementListOrders({ host }) {
|
|
695
602
|
const serializedData = (0, import_transform_paths.transformPaths)(payload, [
|
|
696
603
|
{
|
|
697
|
-
transformFn:
|
|
698
|
-
paths: [
|
|
604
|
+
transformFn: import_float.transformSDKFloatToRESTFloat,
|
|
605
|
+
paths: [
|
|
606
|
+
{ path: "sorting.origin.latitude" },
|
|
607
|
+
{ path: "sorting.origin.longitude" }
|
|
608
|
+
]
|
|
699
609
|
}
|
|
700
610
|
]);
|
|
701
611
|
const metadata = {
|
|
702
612
|
entityFqdn: "wix.pricing_plans.v2.order",
|
|
703
|
-
method: "
|
|
704
|
-
methodFqn: "com.wixpress.membership.v2.orders.
|
|
613
|
+
method: "GET",
|
|
614
|
+
methodFqn: "com.wixpress.membership.v2.orders.OrderManagementService.ListOrders",
|
|
705
615
|
packageName: PACKAGE_NAME,
|
|
706
616
|
migrationOptions: {
|
|
707
617
|
optInTransformResponse: true
|
|
708
618
|
},
|
|
709
|
-
url:
|
|
710
|
-
protoPath: "/v2/
|
|
619
|
+
url: resolveComWixpressMembershipV2OrdersOrderManagementServiceUrl({
|
|
620
|
+
protoPath: "/v2/orders",
|
|
711
621
|
data: serializedData,
|
|
712
622
|
host
|
|
713
623
|
}),
|
|
714
|
-
|
|
624
|
+
params: (0, import_rest_modules.toURLSearchParams)(serializedData, true),
|
|
715
625
|
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
716
626
|
{
|
|
717
627
|
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
718
628
|
paths: [
|
|
719
|
-
{ path: "
|
|
720
|
-
{ path: "
|
|
721
|
-
{ path: "
|
|
722
|
-
{ path: "
|
|
723
|
-
{ path: "
|
|
724
|
-
{ path: "
|
|
725
|
-
{ path: "
|
|
726
|
-
{ path: "
|
|
727
|
-
{ path: "
|
|
728
|
-
{ path: "
|
|
729
|
-
{ path: "
|
|
730
|
-
{ path: "
|
|
629
|
+
{ path: "orders.startDate" },
|
|
630
|
+
{ path: "orders.endDate" },
|
|
631
|
+
{ path: "orders.earliestEndDate" },
|
|
632
|
+
{ path: "orders.createdDate" },
|
|
633
|
+
{ path: "orders.updatedDate" },
|
|
634
|
+
{ path: "orders.cancellation.requestedDate" },
|
|
635
|
+
{ path: "orders.pausePeriods.pauseDate" },
|
|
636
|
+
{ path: "orders.pausePeriods.resumeDate" },
|
|
637
|
+
{ path: "orders.currentCycle.startedDate" },
|
|
638
|
+
{ path: "orders.currentCycle.endedDate" },
|
|
639
|
+
{ path: "orders.cycles.startedDate" },
|
|
640
|
+
{ path: "orders.cycles.endedDate" }
|
|
731
641
|
]
|
|
732
642
|
}
|
|
733
643
|
])
|
|
734
644
|
};
|
|
735
645
|
return metadata;
|
|
736
646
|
}
|
|
737
|
-
return
|
|
647
|
+
return __managementListOrders;
|
|
738
648
|
}
|
|
739
|
-
function
|
|
740
|
-
function
|
|
649
|
+
function postponeEndDate(payload) {
|
|
650
|
+
function __postponeEndDate({ host }) {
|
|
651
|
+
const serializedData = (0, import_transform_paths.transformPaths)(payload, [
|
|
652
|
+
{
|
|
653
|
+
transformFn: import_timestamp.transformSDKTimestampToRESTTimestamp,
|
|
654
|
+
paths: [{ path: "endDate" }]
|
|
655
|
+
}
|
|
656
|
+
]);
|
|
657
|
+
const metadata = {
|
|
658
|
+
entityFqdn: "wix.pricing_plans.v2.order",
|
|
659
|
+
method: "PATCH",
|
|
660
|
+
methodFqn: "com.wixpress.membership.v2.orders.OrderManagementService.PostponeEndDate",
|
|
661
|
+
packageName: PACKAGE_NAME,
|
|
662
|
+
migrationOptions: {
|
|
663
|
+
optInTransformResponse: true
|
|
664
|
+
},
|
|
665
|
+
url: resolveComWixpressMembershipV2OrdersOrderManagementServiceUrl({
|
|
666
|
+
protoPath: "/v2/orders/{id}",
|
|
667
|
+
data: serializedData,
|
|
668
|
+
host
|
|
669
|
+
}),
|
|
670
|
+
data: serializedData
|
|
671
|
+
};
|
|
672
|
+
return metadata;
|
|
673
|
+
}
|
|
674
|
+
return __postponeEndDate;
|
|
675
|
+
}
|
|
676
|
+
function cancelOrder(payload) {
|
|
677
|
+
function __cancelOrder({ host }) {
|
|
741
678
|
const metadata = {
|
|
742
679
|
entityFqdn: "wix.pricing_plans.v2.order",
|
|
743
680
|
method: "POST",
|
|
744
|
-
methodFqn: "com.wixpress.membership.v2.orders.
|
|
681
|
+
methodFqn: "com.wixpress.membership.v2.orders.OrderManagementService.CancelOrder",
|
|
745
682
|
packageName: PACKAGE_NAME,
|
|
746
683
|
migrationOptions: {
|
|
747
684
|
optInTransformResponse: true
|
|
748
685
|
},
|
|
749
|
-
url:
|
|
750
|
-
protoPath: "/v2/
|
|
686
|
+
url: resolveComWixpressMembershipV2OrdersOrderManagementServiceUrl({
|
|
687
|
+
protoPath: "/v2/orders/{id}/cancel",
|
|
751
688
|
data: payload,
|
|
752
689
|
host
|
|
753
690
|
}),
|
|
@@ -755,7 +692,70 @@ function getPricePreview(payload) {
|
|
|
755
692
|
};
|
|
756
693
|
return metadata;
|
|
757
694
|
}
|
|
758
|
-
return
|
|
695
|
+
return __cancelOrder;
|
|
696
|
+
}
|
|
697
|
+
function markAsPaid(payload) {
|
|
698
|
+
function __markAsPaid({ host }) {
|
|
699
|
+
const metadata = {
|
|
700
|
+
entityFqdn: "wix.pricing_plans.v2.order",
|
|
701
|
+
method: "POST",
|
|
702
|
+
methodFqn: "com.wixpress.membership.v2.orders.OrderManagementService.MarkAsPaid",
|
|
703
|
+
packageName: PACKAGE_NAME,
|
|
704
|
+
migrationOptions: {
|
|
705
|
+
optInTransformResponse: true
|
|
706
|
+
},
|
|
707
|
+
url: resolveComWixpressMembershipV2OrdersOrderManagementServiceUrl({
|
|
708
|
+
protoPath: "/v2/orders/{id}/mark-as-paid",
|
|
709
|
+
data: payload,
|
|
710
|
+
host
|
|
711
|
+
}),
|
|
712
|
+
data: payload
|
|
713
|
+
};
|
|
714
|
+
return metadata;
|
|
715
|
+
}
|
|
716
|
+
return __markAsPaid;
|
|
717
|
+
}
|
|
718
|
+
function pauseOrder(payload) {
|
|
719
|
+
function __pauseOrder({ host }) {
|
|
720
|
+
const metadata = {
|
|
721
|
+
entityFqdn: "wix.pricing_plans.v2.order",
|
|
722
|
+
method: "POST",
|
|
723
|
+
methodFqn: "com.wixpress.membership.v2.orders.OrderManagementService.PauseOrder",
|
|
724
|
+
packageName: PACKAGE_NAME,
|
|
725
|
+
migrationOptions: {
|
|
726
|
+
optInTransformResponse: true
|
|
727
|
+
},
|
|
728
|
+
url: resolveComWixpressMembershipV2OrdersOrderManagementServiceUrl({
|
|
729
|
+
protoPath: "/v2/orders/{id}/pause",
|
|
730
|
+
data: payload,
|
|
731
|
+
host
|
|
732
|
+
}),
|
|
733
|
+
data: payload
|
|
734
|
+
};
|
|
735
|
+
return metadata;
|
|
736
|
+
}
|
|
737
|
+
return __pauseOrder;
|
|
738
|
+
}
|
|
739
|
+
function resumeOrder(payload) {
|
|
740
|
+
function __resumeOrder({ host }) {
|
|
741
|
+
const metadata = {
|
|
742
|
+
entityFqdn: "wix.pricing_plans.v2.order",
|
|
743
|
+
method: "POST",
|
|
744
|
+
methodFqn: "com.wixpress.membership.v2.orders.OrderManagementService.ResumeOrder",
|
|
745
|
+
packageName: PACKAGE_NAME,
|
|
746
|
+
migrationOptions: {
|
|
747
|
+
optInTransformResponse: true
|
|
748
|
+
},
|
|
749
|
+
url: resolveComWixpressMembershipV2OrdersOrderManagementServiceUrl({
|
|
750
|
+
protoPath: "/v2/orders/{id}/resume",
|
|
751
|
+
data: payload,
|
|
752
|
+
host
|
|
753
|
+
}),
|
|
754
|
+
data: payload
|
|
755
|
+
};
|
|
756
|
+
return metadata;
|
|
757
|
+
}
|
|
758
|
+
return __resumeOrder;
|
|
759
759
|
}
|
|
760
760
|
function memberGetOrder(payload) {
|
|
761
761
|
function __memberGetOrder({ host }) {
|
|
@@ -931,6 +931,14 @@ var Status = /* @__PURE__ */ ((Status2) => {
|
|
|
931
931
|
Status2["ENDED"] = "ENDED";
|
|
932
932
|
return Status2;
|
|
933
933
|
})(Status || {});
|
|
934
|
+
var WebhookIdentityType = /* @__PURE__ */ ((WebhookIdentityType2) => {
|
|
935
|
+
WebhookIdentityType2["UNKNOWN"] = "UNKNOWN";
|
|
936
|
+
WebhookIdentityType2["ANONYMOUS_VISITOR"] = "ANONYMOUS_VISITOR";
|
|
937
|
+
WebhookIdentityType2["MEMBER"] = "MEMBER";
|
|
938
|
+
WebhookIdentityType2["WIX_USER"] = "WIX_USER";
|
|
939
|
+
WebhookIdentityType2["APP"] = "APP";
|
|
940
|
+
return WebhookIdentityType2;
|
|
941
|
+
})(WebhookIdentityType || {});
|
|
934
942
|
var Set = /* @__PURE__ */ ((Set2) => {
|
|
935
943
|
Set2["UNKNOWN_SET"] = "UNKNOWN_SET";
|
|
936
944
|
Set2["BASIC"] = "BASIC";
|
|
@@ -953,21 +961,16 @@ var ReasonNotSuspendable = /* @__PURE__ */ ((ReasonNotSuspendable2) => {
|
|
|
953
961
|
ReasonNotSuspendable2["OLD_STRIPE"] = "OLD_STRIPE";
|
|
954
962
|
return ReasonNotSuspendable2;
|
|
955
963
|
})(ReasonNotSuspendable || {});
|
|
956
|
-
|
|
957
|
-
WebhookIdentityType2["UNKNOWN"] = "UNKNOWN";
|
|
958
|
-
WebhookIdentityType2["ANONYMOUS_VISITOR"] = "ANONYMOUS_VISITOR";
|
|
959
|
-
WebhookIdentityType2["MEMBER"] = "MEMBER";
|
|
960
|
-
WebhookIdentityType2["WIX_USER"] = "WIX_USER";
|
|
961
|
-
WebhookIdentityType2["APP"] = "APP";
|
|
962
|
-
return WebhookIdentityType2;
|
|
963
|
-
})(WebhookIdentityType || {});
|
|
964
|
-
async function managementGetOrder2(_id, options) {
|
|
964
|
+
async function createOnlineOrder2(planId, options) {
|
|
965
965
|
const { httpClient, sideEffects } = arguments[2];
|
|
966
966
|
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
967
|
-
|
|
968
|
-
|
|
967
|
+
planId,
|
|
968
|
+
startDate: options?.startDate,
|
|
969
|
+
couponCode: options?.couponCode,
|
|
970
|
+
onBehalf: options?.onBehalf,
|
|
971
|
+
submissionId: options?.submissionId
|
|
969
972
|
});
|
|
970
|
-
const reqOpts =
|
|
973
|
+
const reqOpts = createOnlineOrder(payload);
|
|
971
974
|
sideEffects?.onSiteCall?.();
|
|
972
975
|
try {
|
|
973
976
|
const result = await httpClient.request(reqOpts);
|
|
@@ -978,29 +981,32 @@ async function managementGetOrder2(_id, options) {
|
|
|
978
981
|
err,
|
|
979
982
|
{
|
|
980
983
|
spreadPathsToArguments: {},
|
|
981
|
-
explicitPathsToArguments: {
|
|
984
|
+
explicitPathsToArguments: {
|
|
985
|
+
planId: "$[0]",
|
|
986
|
+
startDate: "$[1].startDate",
|
|
987
|
+
couponCode: "$[1].couponCode",
|
|
988
|
+
onBehalf: "$[1].onBehalf",
|
|
989
|
+
submissionId: "$[1].submissionId"
|
|
990
|
+
},
|
|
982
991
|
singleArgumentUnchanged: false
|
|
983
992
|
},
|
|
984
|
-
["
|
|
993
|
+
["planId", "options"]
|
|
985
994
|
);
|
|
986
995
|
sideEffects?.onError?.(err);
|
|
987
996
|
throw transformedError;
|
|
988
997
|
}
|
|
989
998
|
}
|
|
990
|
-
async function
|
|
991
|
-
const { httpClient, sideEffects } = arguments[
|
|
999
|
+
async function createOfflineOrder2(planId, memberId, options) {
|
|
1000
|
+
const { httpClient, sideEffects } = arguments[3];
|
|
992
1001
|
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
993
|
-
|
|
994
|
-
|
|
995
|
-
|
|
996
|
-
|
|
997
|
-
|
|
998
|
-
|
|
999
|
-
offset: options?.offset,
|
|
1000
|
-
sorting: options?.sorting,
|
|
1001
|
-
fieldSet: options?.fieldSet
|
|
1002
|
+
planId,
|
|
1003
|
+
memberId,
|
|
1004
|
+
startDate: options?.startDate,
|
|
1005
|
+
paid: options?.paid,
|
|
1006
|
+
couponCode: options?.couponCode,
|
|
1007
|
+
submissionId: options?.submissionId
|
|
1002
1008
|
});
|
|
1003
|
-
const reqOpts =
|
|
1009
|
+
const reqOpts = createOfflineOrder(payload);
|
|
1004
1010
|
sideEffects?.onSiteCall?.();
|
|
1005
1011
|
try {
|
|
1006
1012
|
const result = await httpClient.request(reqOpts);
|
|
@@ -1012,300 +1018,294 @@ async function managementListOrders2(options) {
|
|
|
1012
1018
|
{
|
|
1013
1019
|
spreadPathsToArguments: {},
|
|
1014
1020
|
explicitPathsToArguments: {
|
|
1015
|
-
|
|
1016
|
-
|
|
1017
|
-
|
|
1018
|
-
|
|
1019
|
-
|
|
1020
|
-
|
|
1021
|
-
offset: "$[0].offset",
|
|
1022
|
-
sorting: "$[0].sorting",
|
|
1023
|
-
fieldSet: "$[0].fieldSet"
|
|
1021
|
+
planId: "$[0]",
|
|
1022
|
+
memberId: "$[1]",
|
|
1023
|
+
startDate: "$[2].startDate",
|
|
1024
|
+
paid: "$[2].paid",
|
|
1025
|
+
couponCode: "$[2].couponCode",
|
|
1026
|
+
submissionId: "$[2].submissionId"
|
|
1024
1027
|
},
|
|
1025
1028
|
singleArgumentUnchanged: false
|
|
1026
1029
|
},
|
|
1027
|
-
["options"]
|
|
1030
|
+
["planId", "memberId", "options"]
|
|
1028
1031
|
);
|
|
1029
1032
|
sideEffects?.onError?.(err);
|
|
1030
1033
|
throw transformedError;
|
|
1031
1034
|
}
|
|
1032
1035
|
}
|
|
1033
|
-
async function
|
|
1036
|
+
async function getOnlineOrderPreview2(planId, options) {
|
|
1034
1037
|
const { httpClient, sideEffects } = arguments[2];
|
|
1035
1038
|
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
1036
|
-
|
|
1037
|
-
|
|
1039
|
+
planId,
|
|
1040
|
+
startDate: options?.startDate,
|
|
1041
|
+
couponCode: options?.couponCode
|
|
1038
1042
|
});
|
|
1039
|
-
const reqOpts =
|
|
1043
|
+
const reqOpts = getOnlineOrderPreview(payload);
|
|
1040
1044
|
sideEffects?.onSiteCall?.();
|
|
1041
1045
|
try {
|
|
1042
1046
|
const result = await httpClient.request(reqOpts);
|
|
1043
1047
|
sideEffects?.onSuccess?.(result);
|
|
1048
|
+
return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data);
|
|
1044
1049
|
} catch (err) {
|
|
1045
1050
|
const transformedError = (0, import_transform_error.transformError)(
|
|
1046
1051
|
err,
|
|
1047
1052
|
{
|
|
1048
1053
|
spreadPathsToArguments: {},
|
|
1049
|
-
explicitPathsToArguments: {
|
|
1054
|
+
explicitPathsToArguments: {
|
|
1055
|
+
planId: "$[0]",
|
|
1056
|
+
startDate: "$[1].startDate",
|
|
1057
|
+
couponCode: "$[1].couponCode"
|
|
1058
|
+
},
|
|
1050
1059
|
singleArgumentUnchanged: false
|
|
1051
1060
|
},
|
|
1052
|
-
["
|
|
1061
|
+
["planId", "options"]
|
|
1053
1062
|
);
|
|
1054
1063
|
sideEffects?.onError?.(err);
|
|
1055
1064
|
throw transformedError;
|
|
1056
1065
|
}
|
|
1057
1066
|
}
|
|
1058
|
-
async function
|
|
1059
|
-
const { httpClient, sideEffects } = arguments[
|
|
1067
|
+
async function getOfflineOrderPreview2(planId, memberId, options) {
|
|
1068
|
+
const { httpClient, sideEffects } = arguments[3];
|
|
1060
1069
|
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
1061
|
-
|
|
1062
|
-
|
|
1070
|
+
planId,
|
|
1071
|
+
memberId,
|
|
1072
|
+
startDate: options?.startDate,
|
|
1073
|
+
couponCode: options?.couponCode
|
|
1063
1074
|
});
|
|
1064
|
-
const reqOpts =
|
|
1075
|
+
const reqOpts = getOfflineOrderPreview(payload);
|
|
1065
1076
|
sideEffects?.onSiteCall?.();
|
|
1066
1077
|
try {
|
|
1067
1078
|
const result = await httpClient.request(reqOpts);
|
|
1068
1079
|
sideEffects?.onSuccess?.(result);
|
|
1080
|
+
return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data);
|
|
1069
1081
|
} catch (err) {
|
|
1070
1082
|
const transformedError = (0, import_transform_error.transformError)(
|
|
1071
1083
|
err,
|
|
1072
1084
|
{
|
|
1073
1085
|
spreadPathsToArguments: {},
|
|
1074
|
-
explicitPathsToArguments: {
|
|
1086
|
+
explicitPathsToArguments: {
|
|
1087
|
+
planId: "$[0]",
|
|
1088
|
+
memberId: "$[1]",
|
|
1089
|
+
startDate: "$[2].startDate",
|
|
1090
|
+
couponCode: "$[2].couponCode"
|
|
1091
|
+
},
|
|
1075
1092
|
singleArgumentUnchanged: false
|
|
1076
1093
|
},
|
|
1077
|
-
["
|
|
1094
|
+
["planId", "memberId", "options"]
|
|
1078
1095
|
);
|
|
1079
1096
|
sideEffects?.onError?.(err);
|
|
1080
1097
|
throw transformedError;
|
|
1081
1098
|
}
|
|
1082
1099
|
}
|
|
1083
|
-
async function
|
|
1084
|
-
const { httpClient, sideEffects } = arguments[
|
|
1085
|
-
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
1086
|
-
|
|
1100
|
+
async function getPricePreview2(planId, options) {
|
|
1101
|
+
const { httpClient, sideEffects } = arguments[2];
|
|
1102
|
+
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
1103
|
+
planId,
|
|
1104
|
+
couponCode: options?.couponCode
|
|
1105
|
+
});
|
|
1106
|
+
const reqOpts = getPricePreview(payload);
|
|
1087
1107
|
sideEffects?.onSiteCall?.();
|
|
1088
1108
|
try {
|
|
1089
1109
|
const result = await httpClient.request(reqOpts);
|
|
1090
1110
|
sideEffects?.onSuccess?.(result);
|
|
1111
|
+
return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data);
|
|
1091
1112
|
} catch (err) {
|
|
1092
1113
|
const transformedError = (0, import_transform_error.transformError)(
|
|
1093
1114
|
err,
|
|
1094
1115
|
{
|
|
1095
1116
|
spreadPathsToArguments: {},
|
|
1096
|
-
explicitPathsToArguments: {
|
|
1117
|
+
explicitPathsToArguments: {
|
|
1118
|
+
planId: "$[0]",
|
|
1119
|
+
couponCode: "$[1].couponCode"
|
|
1120
|
+
},
|
|
1097
1121
|
singleArgumentUnchanged: false
|
|
1098
1122
|
},
|
|
1099
|
-
["
|
|
1123
|
+
["planId", "options"]
|
|
1100
1124
|
);
|
|
1101
1125
|
sideEffects?.onError?.(err);
|
|
1102
1126
|
throw transformedError;
|
|
1103
1127
|
}
|
|
1104
1128
|
}
|
|
1105
|
-
async function
|
|
1106
|
-
const { httpClient, sideEffects } = arguments[
|
|
1107
|
-
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
1108
|
-
|
|
1129
|
+
async function managementGetOrder2(_id, options) {
|
|
1130
|
+
const { httpClient, sideEffects } = arguments[2];
|
|
1131
|
+
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
1132
|
+
id: _id,
|
|
1133
|
+
fieldSet: options?.fieldSet
|
|
1134
|
+
});
|
|
1135
|
+
const reqOpts = managementGetOrder(payload);
|
|
1109
1136
|
sideEffects?.onSiteCall?.();
|
|
1110
1137
|
try {
|
|
1111
1138
|
const result = await httpClient.request(reqOpts);
|
|
1112
1139
|
sideEffects?.onSuccess?.(result);
|
|
1140
|
+
return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data);
|
|
1113
1141
|
} catch (err) {
|
|
1114
1142
|
const transformedError = (0, import_transform_error.transformError)(
|
|
1115
1143
|
err,
|
|
1116
1144
|
{
|
|
1117
1145
|
spreadPathsToArguments: {},
|
|
1118
|
-
explicitPathsToArguments: { id: "$[0]" },
|
|
1146
|
+
explicitPathsToArguments: { id: "$[0]", fieldSet: "$[1].fieldSet" },
|
|
1119
1147
|
singleArgumentUnchanged: false
|
|
1120
1148
|
},
|
|
1121
|
-
["_id"]
|
|
1149
|
+
["_id", "options"]
|
|
1122
1150
|
);
|
|
1123
1151
|
sideEffects?.onError?.(err);
|
|
1124
1152
|
throw transformedError;
|
|
1125
1153
|
}
|
|
1126
1154
|
}
|
|
1127
|
-
async function
|
|
1155
|
+
async function managementListOrders2(options) {
|
|
1128
1156
|
const { httpClient, sideEffects } = arguments[1];
|
|
1129
|
-
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
1130
|
-
|
|
1157
|
+
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
1158
|
+
buyerIds: options?.buyerIds,
|
|
1159
|
+
planIds: options?.planIds,
|
|
1160
|
+
autoRenewCanceled: options?.autoRenewCanceled,
|
|
1161
|
+
orderStatuses: options?.orderStatuses,
|
|
1162
|
+
paymentStatuses: options?.paymentStatuses,
|
|
1163
|
+
limit: options?.limit,
|
|
1164
|
+
offset: options?.offset,
|
|
1165
|
+
sorting: options?.sorting,
|
|
1166
|
+
fieldSet: options?.fieldSet
|
|
1167
|
+
});
|
|
1168
|
+
const reqOpts = managementListOrders(payload);
|
|
1131
1169
|
sideEffects?.onSiteCall?.();
|
|
1132
1170
|
try {
|
|
1133
1171
|
const result = await httpClient.request(reqOpts);
|
|
1134
1172
|
sideEffects?.onSuccess?.(result);
|
|
1173
|
+
return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data);
|
|
1135
1174
|
} catch (err) {
|
|
1136
1175
|
const transformedError = (0, import_transform_error.transformError)(
|
|
1137
1176
|
err,
|
|
1138
1177
|
{
|
|
1139
1178
|
spreadPathsToArguments: {},
|
|
1140
|
-
explicitPathsToArguments: {
|
|
1179
|
+
explicitPathsToArguments: {
|
|
1180
|
+
buyerIds: "$[0].buyerIds",
|
|
1181
|
+
planIds: "$[0].planIds",
|
|
1182
|
+
autoRenewCanceled: "$[0].autoRenewCanceled",
|
|
1183
|
+
orderStatuses: "$[0].orderStatuses",
|
|
1184
|
+
paymentStatuses: "$[0].paymentStatuses",
|
|
1185
|
+
limit: "$[0].limit",
|
|
1186
|
+
offset: "$[0].offset",
|
|
1187
|
+
sorting: "$[0].sorting",
|
|
1188
|
+
fieldSet: "$[0].fieldSet"
|
|
1189
|
+
},
|
|
1141
1190
|
singleArgumentUnchanged: false
|
|
1142
1191
|
},
|
|
1143
|
-
["
|
|
1192
|
+
["options"]
|
|
1144
1193
|
);
|
|
1145
1194
|
sideEffects?.onError?.(err);
|
|
1146
1195
|
throw transformedError;
|
|
1147
1196
|
}
|
|
1148
1197
|
}
|
|
1149
|
-
async function
|
|
1198
|
+
async function postponeEndDate2(_id, endDate) {
|
|
1150
1199
|
const { httpClient, sideEffects } = arguments[2];
|
|
1151
1200
|
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
1152
|
-
|
|
1153
|
-
|
|
1154
|
-
couponCode: options?.couponCode,
|
|
1155
|
-
onBehalf: options?.onBehalf,
|
|
1156
|
-
submissionId: options?.submissionId
|
|
1201
|
+
id: _id,
|
|
1202
|
+
endDate
|
|
1157
1203
|
});
|
|
1158
|
-
const reqOpts =
|
|
1204
|
+
const reqOpts = postponeEndDate(payload);
|
|
1159
1205
|
sideEffects?.onSiteCall?.();
|
|
1160
1206
|
try {
|
|
1161
1207
|
const result = await httpClient.request(reqOpts);
|
|
1162
1208
|
sideEffects?.onSuccess?.(result);
|
|
1163
|
-
return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data);
|
|
1164
1209
|
} catch (err) {
|
|
1165
1210
|
const transformedError = (0, import_transform_error.transformError)(
|
|
1166
1211
|
err,
|
|
1167
1212
|
{
|
|
1168
1213
|
spreadPathsToArguments: {},
|
|
1169
|
-
explicitPathsToArguments: {
|
|
1170
|
-
planId: "$[0]",
|
|
1171
|
-
startDate: "$[1].startDate",
|
|
1172
|
-
couponCode: "$[1].couponCode",
|
|
1173
|
-
onBehalf: "$[1].onBehalf",
|
|
1174
|
-
submissionId: "$[1].submissionId"
|
|
1175
|
-
},
|
|
1214
|
+
explicitPathsToArguments: { id: "$[0]", endDate: "$[1]" },
|
|
1176
1215
|
singleArgumentUnchanged: false
|
|
1177
1216
|
},
|
|
1178
|
-
["
|
|
1217
|
+
["_id", "endDate"]
|
|
1179
1218
|
);
|
|
1180
1219
|
sideEffects?.onError?.(err);
|
|
1181
1220
|
throw transformedError;
|
|
1182
1221
|
}
|
|
1183
1222
|
}
|
|
1184
|
-
async function
|
|
1185
|
-
const { httpClient, sideEffects } = arguments[
|
|
1223
|
+
async function cancelOrder2(_id, effectiveAt) {
|
|
1224
|
+
const { httpClient, sideEffects } = arguments[2];
|
|
1186
1225
|
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
1187
|
-
|
|
1188
|
-
|
|
1189
|
-
startDate: options?.startDate,
|
|
1190
|
-
paid: options?.paid,
|
|
1191
|
-
couponCode: options?.couponCode,
|
|
1192
|
-
submissionId: options?.submissionId
|
|
1226
|
+
id: _id,
|
|
1227
|
+
effectiveAt
|
|
1193
1228
|
});
|
|
1194
|
-
const reqOpts =
|
|
1229
|
+
const reqOpts = cancelOrder(payload);
|
|
1195
1230
|
sideEffects?.onSiteCall?.();
|
|
1196
1231
|
try {
|
|
1197
1232
|
const result = await httpClient.request(reqOpts);
|
|
1198
1233
|
sideEffects?.onSuccess?.(result);
|
|
1199
|
-
return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data);
|
|
1200
1234
|
} catch (err) {
|
|
1201
1235
|
const transformedError = (0, import_transform_error.transformError)(
|
|
1202
1236
|
err,
|
|
1203
1237
|
{
|
|
1204
1238
|
spreadPathsToArguments: {},
|
|
1205
|
-
explicitPathsToArguments: {
|
|
1206
|
-
planId: "$[0]",
|
|
1207
|
-
memberId: "$[1]",
|
|
1208
|
-
startDate: "$[2].startDate",
|
|
1209
|
-
paid: "$[2].paid",
|
|
1210
|
-
couponCode: "$[2].couponCode",
|
|
1211
|
-
submissionId: "$[2].submissionId"
|
|
1212
|
-
},
|
|
1239
|
+
explicitPathsToArguments: { id: "$[0]", effectiveAt: "$[1]" },
|
|
1213
1240
|
singleArgumentUnchanged: false
|
|
1214
1241
|
},
|
|
1215
|
-
["
|
|
1242
|
+
["_id", "effectiveAt"]
|
|
1216
1243
|
);
|
|
1217
1244
|
sideEffects?.onError?.(err);
|
|
1218
1245
|
throw transformedError;
|
|
1219
1246
|
}
|
|
1220
1247
|
}
|
|
1221
|
-
async function
|
|
1222
|
-
const { httpClient, sideEffects } = arguments[
|
|
1223
|
-
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
1224
|
-
|
|
1225
|
-
startDate: options?.startDate,
|
|
1226
|
-
couponCode: options?.couponCode
|
|
1227
|
-
});
|
|
1228
|
-
const reqOpts = getOnlineOrderPreview(payload);
|
|
1248
|
+
async function markAsPaid2(_id) {
|
|
1249
|
+
const { httpClient, sideEffects } = arguments[1];
|
|
1250
|
+
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({ id: _id });
|
|
1251
|
+
const reqOpts = markAsPaid(payload);
|
|
1229
1252
|
sideEffects?.onSiteCall?.();
|
|
1230
1253
|
try {
|
|
1231
1254
|
const result = await httpClient.request(reqOpts);
|
|
1232
1255
|
sideEffects?.onSuccess?.(result);
|
|
1233
|
-
return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data);
|
|
1234
1256
|
} catch (err) {
|
|
1235
1257
|
const transformedError = (0, import_transform_error.transformError)(
|
|
1236
1258
|
err,
|
|
1237
1259
|
{
|
|
1238
1260
|
spreadPathsToArguments: {},
|
|
1239
|
-
explicitPathsToArguments: {
|
|
1240
|
-
planId: "$[0]",
|
|
1241
|
-
startDate: "$[1].startDate",
|
|
1242
|
-
couponCode: "$[1].couponCode"
|
|
1243
|
-
},
|
|
1261
|
+
explicitPathsToArguments: { id: "$[0]" },
|
|
1244
1262
|
singleArgumentUnchanged: false
|
|
1245
1263
|
},
|
|
1246
|
-
["
|
|
1264
|
+
["_id"]
|
|
1247
1265
|
);
|
|
1248
1266
|
sideEffects?.onError?.(err);
|
|
1249
1267
|
throw transformedError;
|
|
1250
1268
|
}
|
|
1251
1269
|
}
|
|
1252
|
-
async function
|
|
1253
|
-
const { httpClient, sideEffects } = arguments[
|
|
1254
|
-
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
1255
|
-
|
|
1256
|
-
memberId,
|
|
1257
|
-
startDate: options?.startDate,
|
|
1258
|
-
couponCode: options?.couponCode
|
|
1259
|
-
});
|
|
1260
|
-
const reqOpts = getOfflineOrderPreview(payload);
|
|
1270
|
+
async function pauseOrder2(_id) {
|
|
1271
|
+
const { httpClient, sideEffects } = arguments[1];
|
|
1272
|
+
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({ id: _id });
|
|
1273
|
+
const reqOpts = pauseOrder(payload);
|
|
1261
1274
|
sideEffects?.onSiteCall?.();
|
|
1262
1275
|
try {
|
|
1263
1276
|
const result = await httpClient.request(reqOpts);
|
|
1264
1277
|
sideEffects?.onSuccess?.(result);
|
|
1265
|
-
return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data);
|
|
1266
1278
|
} catch (err) {
|
|
1267
1279
|
const transformedError = (0, import_transform_error.transformError)(
|
|
1268
1280
|
err,
|
|
1269
1281
|
{
|
|
1270
1282
|
spreadPathsToArguments: {},
|
|
1271
|
-
explicitPathsToArguments: {
|
|
1272
|
-
planId: "$[0]",
|
|
1273
|
-
memberId: "$[1]",
|
|
1274
|
-
startDate: "$[2].startDate",
|
|
1275
|
-
couponCode: "$[2].couponCode"
|
|
1276
|
-
},
|
|
1283
|
+
explicitPathsToArguments: { id: "$[0]" },
|
|
1277
1284
|
singleArgumentUnchanged: false
|
|
1278
1285
|
},
|
|
1279
|
-
["
|
|
1286
|
+
["_id"]
|
|
1280
1287
|
);
|
|
1281
1288
|
sideEffects?.onError?.(err);
|
|
1282
1289
|
throw transformedError;
|
|
1283
1290
|
}
|
|
1284
1291
|
}
|
|
1285
|
-
async function
|
|
1286
|
-
const { httpClient, sideEffects } = arguments[
|
|
1287
|
-
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
1288
|
-
|
|
1289
|
-
couponCode: options?.couponCode
|
|
1290
|
-
});
|
|
1291
|
-
const reqOpts = getPricePreview(payload);
|
|
1292
|
+
async function resumeOrder2(_id) {
|
|
1293
|
+
const { httpClient, sideEffects } = arguments[1];
|
|
1294
|
+
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({ id: _id });
|
|
1295
|
+
const reqOpts = resumeOrder(payload);
|
|
1292
1296
|
sideEffects?.onSiteCall?.();
|
|
1293
1297
|
try {
|
|
1294
1298
|
const result = await httpClient.request(reqOpts);
|
|
1295
1299
|
sideEffects?.onSuccess?.(result);
|
|
1296
|
-
return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data);
|
|
1297
1300
|
} catch (err) {
|
|
1298
1301
|
const transformedError = (0, import_transform_error.transformError)(
|
|
1299
1302
|
err,
|
|
1300
1303
|
{
|
|
1301
|
-
spreadPathsToArguments: {},
|
|
1302
|
-
explicitPathsToArguments: {
|
|
1303
|
-
planId: "$[0]",
|
|
1304
|
-
couponCode: "$[1].couponCode"
|
|
1305
|
-
},
|
|
1304
|
+
spreadPathsToArguments: {},
|
|
1305
|
+
explicitPathsToArguments: { id: "$[0]" },
|
|
1306
1306
|
singleArgumentUnchanged: false
|
|
1307
1307
|
},
|
|
1308
|
-
["
|
|
1308
|
+
["_id"]
|
|
1309
1309
|
);
|
|
1310
1310
|
sideEffects?.onError?.(err);
|
|
1311
1311
|
throw transformedError;
|
|
@@ -1405,6 +1405,48 @@ async function requestCancellation2(_id, effectiveAt) {
|
|
|
1405
1405
|
}
|
|
1406
1406
|
|
|
1407
1407
|
// src/pricing-plans-v2-order-orders.public.ts
|
|
1408
|
+
function createOnlineOrder3(httpClient) {
|
|
1409
|
+
return (planId, options) => createOnlineOrder2(
|
|
1410
|
+
planId,
|
|
1411
|
+
options,
|
|
1412
|
+
// @ts-ignore
|
|
1413
|
+
{ httpClient }
|
|
1414
|
+
);
|
|
1415
|
+
}
|
|
1416
|
+
function createOfflineOrder3(httpClient) {
|
|
1417
|
+
return (planId, memberId, options) => createOfflineOrder2(
|
|
1418
|
+
planId,
|
|
1419
|
+
memberId,
|
|
1420
|
+
options,
|
|
1421
|
+
// @ts-ignore
|
|
1422
|
+
{ httpClient }
|
|
1423
|
+
);
|
|
1424
|
+
}
|
|
1425
|
+
function getOnlineOrderPreview3(httpClient) {
|
|
1426
|
+
return (planId, options) => getOnlineOrderPreview2(
|
|
1427
|
+
planId,
|
|
1428
|
+
options,
|
|
1429
|
+
// @ts-ignore
|
|
1430
|
+
{ httpClient }
|
|
1431
|
+
);
|
|
1432
|
+
}
|
|
1433
|
+
function getOfflineOrderPreview3(httpClient) {
|
|
1434
|
+
return (planId, memberId, options) => getOfflineOrderPreview2(
|
|
1435
|
+
planId,
|
|
1436
|
+
memberId,
|
|
1437
|
+
options,
|
|
1438
|
+
// @ts-ignore
|
|
1439
|
+
{ httpClient }
|
|
1440
|
+
);
|
|
1441
|
+
}
|
|
1442
|
+
function getPricePreview3(httpClient) {
|
|
1443
|
+
return (planId, options) => getPricePreview2(
|
|
1444
|
+
planId,
|
|
1445
|
+
options,
|
|
1446
|
+
// @ts-ignore
|
|
1447
|
+
{ httpClient }
|
|
1448
|
+
);
|
|
1449
|
+
}
|
|
1408
1450
|
function managementGetOrder3(httpClient) {
|
|
1409
1451
|
return (_id, options) => managementGetOrder2(
|
|
1410
1452
|
_id,
|
|
@@ -1457,48 +1499,6 @@ function resumeOrder3(httpClient) {
|
|
|
1457
1499
|
{ httpClient }
|
|
1458
1500
|
);
|
|
1459
1501
|
}
|
|
1460
|
-
function createOnlineOrder3(httpClient) {
|
|
1461
|
-
return (planId, options) => createOnlineOrder2(
|
|
1462
|
-
planId,
|
|
1463
|
-
options,
|
|
1464
|
-
// @ts-ignore
|
|
1465
|
-
{ httpClient }
|
|
1466
|
-
);
|
|
1467
|
-
}
|
|
1468
|
-
function createOfflineOrder3(httpClient) {
|
|
1469
|
-
return (planId, memberId, options) => createOfflineOrder2(
|
|
1470
|
-
planId,
|
|
1471
|
-
memberId,
|
|
1472
|
-
options,
|
|
1473
|
-
// @ts-ignore
|
|
1474
|
-
{ httpClient }
|
|
1475
|
-
);
|
|
1476
|
-
}
|
|
1477
|
-
function getOnlineOrderPreview3(httpClient) {
|
|
1478
|
-
return (planId, options) => getOnlineOrderPreview2(
|
|
1479
|
-
planId,
|
|
1480
|
-
options,
|
|
1481
|
-
// @ts-ignore
|
|
1482
|
-
{ httpClient }
|
|
1483
|
-
);
|
|
1484
|
-
}
|
|
1485
|
-
function getOfflineOrderPreview3(httpClient) {
|
|
1486
|
-
return (planId, memberId, options) => getOfflineOrderPreview2(
|
|
1487
|
-
planId,
|
|
1488
|
-
memberId,
|
|
1489
|
-
options,
|
|
1490
|
-
// @ts-ignore
|
|
1491
|
-
{ httpClient }
|
|
1492
|
-
);
|
|
1493
|
-
}
|
|
1494
|
-
function getPricePreview3(httpClient) {
|
|
1495
|
-
return (planId, options) => getPricePreview2(
|
|
1496
|
-
planId,
|
|
1497
|
-
options,
|
|
1498
|
-
// @ts-ignore
|
|
1499
|
-
{ httpClient }
|
|
1500
|
-
);
|
|
1501
|
-
}
|
|
1502
1502
|
function memberGetOrder3(httpClient) {
|
|
1503
1503
|
return (_id, options) => memberGetOrder2(
|
|
1504
1504
|
_id,
|
|
@@ -1522,34 +1522,34 @@ function requestCancellation3(httpClient) {
|
|
|
1522
1522
|
{ httpClient }
|
|
1523
1523
|
);
|
|
1524
1524
|
}
|
|
1525
|
-
var
|
|
1526
|
-
"wix.pricing_plans.v2.
|
|
1525
|
+
var onOrderCreated = (0, import_sdk_types.EventDefinition)(
|
|
1526
|
+
"wix.pricing_plans.v2.order_created",
|
|
1527
1527
|
true,
|
|
1528
1528
|
(event) => (0, import_rename_all_nested_keys2.renameKeysFromRESTResponseToSDKResponse)(
|
|
1529
1529
|
(0, import_transform_paths2.transformPaths)(event, [
|
|
1530
1530
|
{
|
|
1531
1531
|
transformFn: import_timestamp3.transformRESTTimestampToSDKTimestamp,
|
|
1532
1532
|
paths: [
|
|
1533
|
-
{ path: "
|
|
1534
|
-
{ path: "
|
|
1535
|
-
{ path: "
|
|
1536
|
-
{ path: "
|
|
1537
|
-
{ path: "
|
|
1538
|
-
{ path: "
|
|
1539
|
-
{ path: "
|
|
1540
|
-
{ path: "
|
|
1541
|
-
{ path: "
|
|
1542
|
-
{ path: "
|
|
1543
|
-
{ path: "
|
|
1544
|
-
{ path: "
|
|
1533
|
+
{ path: "entity.startDate" },
|
|
1534
|
+
{ path: "entity.endDate" },
|
|
1535
|
+
{ path: "entity.earliestEndDate" },
|
|
1536
|
+
{ path: "entity.createdDate" },
|
|
1537
|
+
{ path: "entity.updatedDate" },
|
|
1538
|
+
{ path: "entity.cancellation.requestedDate" },
|
|
1539
|
+
{ path: "entity.pausePeriods.pauseDate" },
|
|
1540
|
+
{ path: "entity.pausePeriods.resumeDate" },
|
|
1541
|
+
{ path: "entity.currentCycle.startedDate" },
|
|
1542
|
+
{ path: "entity.currentCycle.endedDate" },
|
|
1543
|
+
{ path: "entity.cycles.startedDate" },
|
|
1544
|
+
{ path: "entity.cycles.endedDate" },
|
|
1545
1545
|
{ path: "metadata.eventTime" }
|
|
1546
1546
|
]
|
|
1547
1547
|
}
|
|
1548
1548
|
])
|
|
1549
1549
|
)
|
|
1550
1550
|
)();
|
|
1551
|
-
var
|
|
1552
|
-
"wix.pricing_plans.v2.
|
|
1551
|
+
var onOrderStartDateChanged = (0, import_sdk_types.EventDefinition)(
|
|
1552
|
+
"wix.pricing_plans.v2.order_start_date_changed",
|
|
1553
1553
|
true,
|
|
1554
1554
|
(event) => (0, import_rename_all_nested_keys2.renameKeysFromRESTResponseToSDKResponse)(
|
|
1555
1555
|
(0, import_transform_paths2.transformPaths)(event, [
|
|
@@ -1574,34 +1574,34 @@ var onOrderCanceled = (0, import_sdk_types.EventDefinition)(
|
|
|
1574
1574
|
])
|
|
1575
1575
|
)
|
|
1576
1576
|
)();
|
|
1577
|
-
var
|
|
1578
|
-
"wix.pricing_plans.v2.
|
|
1577
|
+
var onOrderUpdated = (0, import_sdk_types.EventDefinition)(
|
|
1578
|
+
"wix.pricing_plans.v2.order_updated",
|
|
1579
1579
|
true,
|
|
1580
1580
|
(event) => (0, import_rename_all_nested_keys2.renameKeysFromRESTResponseToSDKResponse)(
|
|
1581
1581
|
(0, import_transform_paths2.transformPaths)(event, [
|
|
1582
1582
|
{
|
|
1583
1583
|
transformFn: import_timestamp3.transformRESTTimestampToSDKTimestamp,
|
|
1584
1584
|
paths: [
|
|
1585
|
-
{ path: "
|
|
1586
|
-
{ path: "
|
|
1587
|
-
{ path: "
|
|
1588
|
-
{ path: "
|
|
1589
|
-
{ path: "
|
|
1590
|
-
{ path: "
|
|
1591
|
-
{ path: "
|
|
1592
|
-
{ path: "
|
|
1593
|
-
{ path: "
|
|
1594
|
-
{ path: "
|
|
1595
|
-
{ path: "
|
|
1596
|
-
{ path: "
|
|
1585
|
+
{ path: "entity.startDate" },
|
|
1586
|
+
{ path: "entity.endDate" },
|
|
1587
|
+
{ path: "entity.earliestEndDate" },
|
|
1588
|
+
{ path: "entity.createdDate" },
|
|
1589
|
+
{ path: "entity.updatedDate" },
|
|
1590
|
+
{ path: "entity.cancellation.requestedDate" },
|
|
1591
|
+
{ path: "entity.pausePeriods.pauseDate" },
|
|
1592
|
+
{ path: "entity.pausePeriods.resumeDate" },
|
|
1593
|
+
{ path: "entity.currentCycle.startedDate" },
|
|
1594
|
+
{ path: "entity.currentCycle.endedDate" },
|
|
1595
|
+
{ path: "entity.cycles.startedDate" },
|
|
1596
|
+
{ path: "entity.cycles.endedDate" },
|
|
1597
1597
|
{ path: "metadata.eventTime" }
|
|
1598
1598
|
]
|
|
1599
1599
|
}
|
|
1600
1600
|
])
|
|
1601
1601
|
)
|
|
1602
1602
|
)();
|
|
1603
|
-
var
|
|
1604
|
-
"wix.pricing_plans.v2.
|
|
1603
|
+
var onOrderAutoRenewCanceled = (0, import_sdk_types.EventDefinition)(
|
|
1604
|
+
"wix.pricing_plans.v2.order_auto_renew_canceled",
|
|
1605
1605
|
true,
|
|
1606
1606
|
(event) => (0, import_rename_all_nested_keys2.renameKeysFromRESTResponseToSDKResponse)(
|
|
1607
1607
|
(0, import_transform_paths2.transformPaths)(event, [
|
|
@@ -1626,8 +1626,8 @@ var onOrderEndDatePostponed = (0, import_sdk_types.EventDefinition)(
|
|
|
1626
1626
|
])
|
|
1627
1627
|
)
|
|
1628
1628
|
)();
|
|
1629
|
-
var
|
|
1630
|
-
"wix.pricing_plans.v2.
|
|
1629
|
+
var onOrderCanceled = (0, import_sdk_types.EventDefinition)(
|
|
1630
|
+
"wix.pricing_plans.v2.order_canceled",
|
|
1631
1631
|
true,
|
|
1632
1632
|
(event) => (0, import_rename_all_nested_keys2.renameKeysFromRESTResponseToSDKResponse)(
|
|
1633
1633
|
(0, import_transform_paths2.transformPaths)(event, [
|
|
@@ -1652,8 +1652,8 @@ var onOrderEnded = (0, import_sdk_types.EventDefinition)(
|
|
|
1652
1652
|
])
|
|
1653
1653
|
)
|
|
1654
1654
|
)();
|
|
1655
|
-
var
|
|
1656
|
-
"wix.pricing_plans.v2.
|
|
1655
|
+
var onOrderCycleStarted = (0, import_sdk_types.EventDefinition)(
|
|
1656
|
+
"wix.pricing_plans.v2.order_cycle_started",
|
|
1657
1657
|
true,
|
|
1658
1658
|
(event) => (0, import_rename_all_nested_keys2.renameKeysFromRESTResponseToSDKResponse)(
|
|
1659
1659
|
(0, import_transform_paths2.transformPaths)(event, [
|
|
@@ -1678,8 +1678,8 @@ var onOrderMarkedAsPaid = (0, import_sdk_types.EventDefinition)(
|
|
|
1678
1678
|
])
|
|
1679
1679
|
)
|
|
1680
1680
|
)();
|
|
1681
|
-
var
|
|
1682
|
-
"wix.pricing_plans.v2.
|
|
1681
|
+
var onOrderEndDatePostponed = (0, import_sdk_types.EventDefinition)(
|
|
1682
|
+
"wix.pricing_plans.v2.order_end_date_postponed",
|
|
1683
1683
|
true,
|
|
1684
1684
|
(event) => (0, import_rename_all_nested_keys2.renameKeysFromRESTResponseToSDKResponse)(
|
|
1685
1685
|
(0, import_transform_paths2.transformPaths)(event, [
|
|
@@ -1704,8 +1704,8 @@ var onOrderPaused = (0, import_sdk_types.EventDefinition)(
|
|
|
1704
1704
|
])
|
|
1705
1705
|
)
|
|
1706
1706
|
)();
|
|
1707
|
-
var
|
|
1708
|
-
"wix.pricing_plans.v2.
|
|
1707
|
+
var onOrderEnded = (0, import_sdk_types.EventDefinition)(
|
|
1708
|
+
"wix.pricing_plans.v2.order_ended",
|
|
1709
1709
|
true,
|
|
1710
1710
|
(event) => (0, import_rename_all_nested_keys2.renameKeysFromRESTResponseToSDKResponse)(
|
|
1711
1711
|
(0, import_transform_paths2.transformPaths)(event, [
|
|
@@ -1730,8 +1730,8 @@ var onOrderPurchased = (0, import_sdk_types.EventDefinition)(
|
|
|
1730
1730
|
])
|
|
1731
1731
|
)
|
|
1732
1732
|
)();
|
|
1733
|
-
var
|
|
1734
|
-
"wix.pricing_plans.v2.
|
|
1733
|
+
var onOrderMarkedAsPaid = (0, import_sdk_types.EventDefinition)(
|
|
1734
|
+
"wix.pricing_plans.v2.order_marked_as_paid",
|
|
1735
1735
|
true,
|
|
1736
1736
|
(event) => (0, import_rename_all_nested_keys2.renameKeysFromRESTResponseToSDKResponse)(
|
|
1737
1737
|
(0, import_transform_paths2.transformPaths)(event, [
|
|
@@ -1756,8 +1756,8 @@ var onOrderResumed = (0, import_sdk_types.EventDefinition)(
|
|
|
1756
1756
|
])
|
|
1757
1757
|
)
|
|
1758
1758
|
)();
|
|
1759
|
-
var
|
|
1760
|
-
"wix.pricing_plans.v2.
|
|
1759
|
+
var onOrderPaused = (0, import_sdk_types.EventDefinition)(
|
|
1760
|
+
"wix.pricing_plans.v2.order_paused",
|
|
1761
1761
|
true,
|
|
1762
1762
|
(event) => (0, import_rename_all_nested_keys2.renameKeysFromRESTResponseToSDKResponse)(
|
|
1763
1763
|
(0, import_transform_paths2.transformPaths)(event, [
|
|
@@ -1782,60 +1782,60 @@ var onOrderStarted = (0, import_sdk_types.EventDefinition)(
|
|
|
1782
1782
|
])
|
|
1783
1783
|
)
|
|
1784
1784
|
)();
|
|
1785
|
-
var
|
|
1786
|
-
"wix.pricing_plans.v2.
|
|
1785
|
+
var onOrderPurchased = (0, import_sdk_types.EventDefinition)(
|
|
1786
|
+
"wix.pricing_plans.v2.order_purchased",
|
|
1787
1787
|
true,
|
|
1788
1788
|
(event) => (0, import_rename_all_nested_keys2.renameKeysFromRESTResponseToSDKResponse)(
|
|
1789
1789
|
(0, import_transform_paths2.transformPaths)(event, [
|
|
1790
1790
|
{
|
|
1791
1791
|
transformFn: import_timestamp3.transformRESTTimestampToSDKTimestamp,
|
|
1792
1792
|
paths: [
|
|
1793
|
-
{ path: "
|
|
1794
|
-
{ path: "
|
|
1795
|
-
{ path: "
|
|
1796
|
-
{ path: "
|
|
1797
|
-
{ path: "
|
|
1798
|
-
{ path: "
|
|
1799
|
-
{ path: "
|
|
1800
|
-
{ path: "
|
|
1801
|
-
{ path: "
|
|
1802
|
-
{ path: "
|
|
1803
|
-
{ path: "
|
|
1804
|
-
{ path: "
|
|
1793
|
+
{ path: "data.order.startDate" },
|
|
1794
|
+
{ path: "data.order.endDate" },
|
|
1795
|
+
{ path: "data.order.earliestEndDate" },
|
|
1796
|
+
{ path: "data.order.createdDate" },
|
|
1797
|
+
{ path: "data.order.updatedDate" },
|
|
1798
|
+
{ path: "data.order.cancellation.requestedDate" },
|
|
1799
|
+
{ path: "data.order.pausePeriods.pauseDate" },
|
|
1800
|
+
{ path: "data.order.pausePeriods.resumeDate" },
|
|
1801
|
+
{ path: "data.order.currentCycle.startedDate" },
|
|
1802
|
+
{ path: "data.order.currentCycle.endedDate" },
|
|
1803
|
+
{ path: "data.order.cycles.startedDate" },
|
|
1804
|
+
{ path: "data.order.cycles.endedDate" },
|
|
1805
1805
|
{ path: "metadata.eventTime" }
|
|
1806
1806
|
]
|
|
1807
1807
|
}
|
|
1808
1808
|
])
|
|
1809
1809
|
)
|
|
1810
1810
|
)();
|
|
1811
|
-
var
|
|
1812
|
-
"wix.pricing_plans.v2.
|
|
1811
|
+
var onOrderResumed = (0, import_sdk_types.EventDefinition)(
|
|
1812
|
+
"wix.pricing_plans.v2.order_resumed",
|
|
1813
1813
|
true,
|
|
1814
1814
|
(event) => (0, import_rename_all_nested_keys2.renameKeysFromRESTResponseToSDKResponse)(
|
|
1815
1815
|
(0, import_transform_paths2.transformPaths)(event, [
|
|
1816
1816
|
{
|
|
1817
1817
|
transformFn: import_timestamp3.transformRESTTimestampToSDKTimestamp,
|
|
1818
1818
|
paths: [
|
|
1819
|
-
{ path: "
|
|
1820
|
-
{ path: "
|
|
1821
|
-
{ path: "
|
|
1822
|
-
{ path: "
|
|
1823
|
-
{ path: "
|
|
1824
|
-
{ path: "
|
|
1825
|
-
{ path: "
|
|
1826
|
-
{ path: "
|
|
1827
|
-
{ path: "
|
|
1828
|
-
{ path: "
|
|
1829
|
-
{ path: "
|
|
1830
|
-
{ path: "
|
|
1819
|
+
{ path: "data.order.startDate" },
|
|
1820
|
+
{ path: "data.order.endDate" },
|
|
1821
|
+
{ path: "data.order.earliestEndDate" },
|
|
1822
|
+
{ path: "data.order.createdDate" },
|
|
1823
|
+
{ path: "data.order.updatedDate" },
|
|
1824
|
+
{ path: "data.order.cancellation.requestedDate" },
|
|
1825
|
+
{ path: "data.order.pausePeriods.pauseDate" },
|
|
1826
|
+
{ path: "data.order.pausePeriods.resumeDate" },
|
|
1827
|
+
{ path: "data.order.currentCycle.startedDate" },
|
|
1828
|
+
{ path: "data.order.currentCycle.endedDate" },
|
|
1829
|
+
{ path: "data.order.cycles.startedDate" },
|
|
1830
|
+
{ path: "data.order.cycles.endedDate" },
|
|
1831
1831
|
{ path: "metadata.eventTime" }
|
|
1832
1832
|
]
|
|
1833
1833
|
}
|
|
1834
1834
|
])
|
|
1835
1835
|
)
|
|
1836
1836
|
)();
|
|
1837
|
-
var
|
|
1838
|
-
"wix.pricing_plans.v2.
|
|
1837
|
+
var onOrderStarted = (0, import_sdk_types.EventDefinition)(
|
|
1838
|
+
"wix.pricing_plans.v2.order_started",
|
|
1839
1839
|
true,
|
|
1840
1840
|
(event) => (0, import_rename_all_nested_keys2.renameKeysFromRESTResponseToSDKResponse)(
|
|
1841
1841
|
(0, import_transform_paths2.transformPaths)(event, [
|
|
@@ -1864,6 +1864,11 @@ var onOrderStartDateChanged = (0, import_sdk_types.EventDefinition)(
|
|
|
1864
1864
|
// src/pricing-plans-v2-order-orders.context.ts
|
|
1865
1865
|
var import_rest_modules3 = require("@wix/sdk-runtime/rest-modules");
|
|
1866
1866
|
var import_event_definition_modules = require("@wix/sdk-runtime/event-definition-modules");
|
|
1867
|
+
var createOnlineOrder4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(createOnlineOrder3);
|
|
1868
|
+
var createOfflineOrder4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(createOfflineOrder3);
|
|
1869
|
+
var getOnlineOrderPreview4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(getOnlineOrderPreview3);
|
|
1870
|
+
var getOfflineOrderPreview4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(getOfflineOrderPreview3);
|
|
1871
|
+
var getPricePreview4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(getPricePreview3);
|
|
1867
1872
|
var managementGetOrder4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(managementGetOrder3);
|
|
1868
1873
|
var managementListOrders4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(managementListOrders3);
|
|
1869
1874
|
var postponeEndDate4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(postponeEndDate3);
|
|
@@ -1871,14 +1876,14 @@ var cancelOrder4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(ca
|
|
|
1871
1876
|
var markAsPaid4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(markAsPaid3);
|
|
1872
1877
|
var pauseOrder4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(pauseOrder3);
|
|
1873
1878
|
var resumeOrder4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(resumeOrder3);
|
|
1874
|
-
var createOnlineOrder4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(createOnlineOrder3);
|
|
1875
|
-
var createOfflineOrder4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(createOfflineOrder3);
|
|
1876
|
-
var getOnlineOrderPreview4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(getOnlineOrderPreview3);
|
|
1877
|
-
var getOfflineOrderPreview4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(getOfflineOrderPreview3);
|
|
1878
|
-
var getPricePreview4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(getPricePreview3);
|
|
1879
1879
|
var memberGetOrder4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(memberGetOrder3);
|
|
1880
1880
|
var memberListOrders4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(memberListOrders3);
|
|
1881
1881
|
var requestCancellation4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(requestCancellation3);
|
|
1882
|
+
var onOrderCreated2 = (0, import_event_definition_modules.createEventModule)(onOrderCreated);
|
|
1883
|
+
var onOrderStartDateChanged2 = (0, import_event_definition_modules.createEventModule)(
|
|
1884
|
+
onOrderStartDateChanged
|
|
1885
|
+
);
|
|
1886
|
+
var onOrderUpdated2 = (0, import_event_definition_modules.createEventModule)(onOrderUpdated);
|
|
1882
1887
|
var onOrderAutoRenewCanceled2 = (0, import_event_definition_modules.createEventModule)(
|
|
1883
1888
|
onOrderAutoRenewCanceled
|
|
1884
1889
|
);
|
|
@@ -1897,11 +1902,6 @@ var onOrderPaused2 = (0, import_event_definition_modules.createEventModule)(onOr
|
|
|
1897
1902
|
var onOrderPurchased2 = (0, import_event_definition_modules.createEventModule)(onOrderPurchased);
|
|
1898
1903
|
var onOrderResumed2 = (0, import_event_definition_modules.createEventModule)(onOrderResumed);
|
|
1899
1904
|
var onOrderStarted2 = (0, import_event_definition_modules.createEventModule)(onOrderStarted);
|
|
1900
|
-
var onOrderUpdated2 = (0, import_event_definition_modules.createEventModule)(onOrderUpdated);
|
|
1901
|
-
var onOrderCreated2 = (0, import_event_definition_modules.createEventModule)(onOrderCreated);
|
|
1902
|
-
var onOrderStartDateChanged2 = (0, import_event_definition_modules.createEventModule)(
|
|
1903
|
-
onOrderStartDateChanged
|
|
1904
|
-
);
|
|
1905
1905
|
// Annotate the CommonJS export names for ESM import in node:
|
|
1906
1906
|
0 && (module.exports = {
|
|
1907
1907
|
CancellationCause,
|