@wix/auto_sdk_pricing-plans_orders 1.0.138 → 1.0.139
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 +507 -507
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +766 -766
- package/build/cjs/index.typings.js +405 -405
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.d.ts +484 -484
- package/build/cjs/meta.js +329 -329
- package/build/cjs/meta.js.map +1 -1
- package/build/es/index.d.mts +129 -129
- package/build/es/index.mjs +507 -507
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +766 -766
- package/build/es/index.typings.mjs +405 -405
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.d.mts +484 -484
- package/build/es/meta.mjs +329 -329
- package/build/es/meta.mjs.map +1 -1
- package/build/internal/cjs/index.d.ts +129 -129
- package/build/internal/cjs/index.typings.d.ts +794 -794
- package/build/internal/cjs/meta.d.ts +500 -500
- package/build/internal/es/index.d.mts +129 -129
- package/build/internal/es/index.typings.d.mts +794 -794
- package/build/internal/es/meta.d.mts +500 -500
- package/package.json +2 -2
|
@@ -61,8 +61,7 @@ var import_timestamp = require("@wix/sdk-runtime/transformations/timestamp");
|
|
|
61
61
|
var import_timestamp2 = require("@wix/sdk-runtime/transformations/timestamp");
|
|
62
62
|
var import_transform_paths = require("@wix/sdk-runtime/transformations/transform-paths");
|
|
63
63
|
var import_rest_modules2 = require("@wix/sdk-runtime/rest-modules");
|
|
64
|
-
var TRANSFORM_PATHS_0 = [
|
|
65
|
-
var TRANSFORM_PATHS_1 = [
|
|
64
|
+
var TRANSFORM_PATHS_0 = [
|
|
66
65
|
{ path: "order.startDate" },
|
|
67
66
|
{ path: "order.endDate" },
|
|
68
67
|
{ path: "order.earliestEndDate" },
|
|
@@ -76,11 +75,11 @@ var TRANSFORM_PATHS_1 = [
|
|
|
76
75
|
{ path: "order.cycles.startedDate" },
|
|
77
76
|
{ path: "order.cycles.endedDate" }
|
|
78
77
|
];
|
|
79
|
-
var
|
|
78
|
+
var TRANSFORM_PATHS_1 = [
|
|
80
79
|
{ path: "sorting.origin.latitude" },
|
|
81
80
|
{ path: "sorting.origin.longitude" }
|
|
82
81
|
];
|
|
83
|
-
var
|
|
82
|
+
var TRANSFORM_PATHS_2 = [
|
|
84
83
|
{ path: "orders.startDate" },
|
|
85
84
|
{ path: "orders.endDate" },
|
|
86
85
|
{ path: "orders.earliestEndDate" },
|
|
@@ -94,7 +93,8 @@ var TRANSFORM_PATHS_3 = [
|
|
|
94
93
|
{ path: "orders.cycles.startedDate" },
|
|
95
94
|
{ path: "orders.cycles.endedDate" }
|
|
96
95
|
];
|
|
97
|
-
var
|
|
96
|
+
var TRANSFORM_PATHS_3 = [{ path: "endDate" }];
|
|
97
|
+
var TRANSFORM_PATHS_4 = [{ path: "startDate" }];
|
|
98
98
|
function resolveComWixpressMembershipV2OrdersMemberMemberOrdersServiceUrl(opts) {
|
|
99
99
|
const domainToMappings = {
|
|
100
100
|
"api._api_base_domain_": [
|
|
@@ -186,445 +186,421 @@ function resolveComWixpressMembershipV2OrdersMemberMemberOrdersServiceUrl(opts)
|
|
|
186
186
|
};
|
|
187
187
|
return (0, import_rest_modules2.resolveUrl)(Object.assign(opts, { domainToMappings }));
|
|
188
188
|
}
|
|
189
|
-
function
|
|
189
|
+
function resolveComWixpressMembershipV2OrdersCheckoutServiceUrl(opts) {
|
|
190
190
|
const domainToMappings = {
|
|
191
191
|
"api._api_base_domain_": [
|
|
192
192
|
{
|
|
193
|
-
srcPath: "/
|
|
193
|
+
srcPath: "/pricing-plans-checkout-proxy",
|
|
194
194
|
destPath: ""
|
|
195
195
|
}
|
|
196
196
|
],
|
|
197
197
|
"*.dev.wix-code.com": [
|
|
198
198
|
{
|
|
199
|
-
srcPath: "/_api/paid-plans/v2/
|
|
200
|
-
destPath: "/v2/
|
|
199
|
+
srcPath: "/_api/paid-plans/v2/checkout",
|
|
200
|
+
destPath: "/v2/checkout"
|
|
201
201
|
},
|
|
202
202
|
{
|
|
203
|
-
srcPath: "/_api/pricing-plans/v2/
|
|
204
|
-
destPath: "/v2/
|
|
203
|
+
srcPath: "/_api/pricing-plans/v2/checkout",
|
|
204
|
+
destPath: "/v2/checkout"
|
|
205
205
|
}
|
|
206
206
|
],
|
|
207
207
|
"*.wixapps.net": [
|
|
208
208
|
{
|
|
209
|
-
srcPath: "/_api/paid-plans/v2/
|
|
210
|
-
destPath: "/v2/
|
|
209
|
+
srcPath: "/_api/paid-plans/v2/checkout",
|
|
210
|
+
destPath: "/v2/checkout"
|
|
211
211
|
}
|
|
212
212
|
],
|
|
213
213
|
"editor-flow.wixapps.net": [
|
|
214
214
|
{
|
|
215
|
-
srcPath: "/_api/paid-plans/v2/
|
|
216
|
-
destPath: "/v2/
|
|
215
|
+
srcPath: "/_api/paid-plans/v2/checkout",
|
|
216
|
+
destPath: "/v2/checkout"
|
|
217
217
|
}
|
|
218
218
|
],
|
|
219
219
|
"editor._base_domain_": [
|
|
220
220
|
{
|
|
221
|
-
srcPath: "/_api/paid-plans/v2/
|
|
222
|
-
destPath: "/v2/
|
|
221
|
+
srcPath: "/_api/paid-plans/v2/checkout",
|
|
222
|
+
destPath: "/v2/checkout"
|
|
223
223
|
},
|
|
224
224
|
{
|
|
225
|
-
srcPath: "/_api/pricing-plans/v2/
|
|
226
|
-
destPath: "/v2/
|
|
225
|
+
srcPath: "/_api/pricing-plans/v2/checkout",
|
|
226
|
+
destPath: "/v2/checkout"
|
|
227
227
|
}
|
|
228
228
|
],
|
|
229
229
|
"blocks._base_domain_": [
|
|
230
230
|
{
|
|
231
|
-
srcPath: "/_api/paid-plans/v2/
|
|
232
|
-
destPath: "/v2/
|
|
231
|
+
srcPath: "/_api/paid-plans/v2/checkout",
|
|
232
|
+
destPath: "/v2/checkout"
|
|
233
233
|
},
|
|
234
234
|
{
|
|
235
|
-
srcPath: "/_api/pricing-plans/v2/
|
|
236
|
-
destPath: "/v2/
|
|
235
|
+
srcPath: "/_api/pricing-plans/v2/checkout",
|
|
236
|
+
destPath: "/v2/checkout"
|
|
237
237
|
}
|
|
238
238
|
],
|
|
239
239
|
"create.editorx": [
|
|
240
240
|
{
|
|
241
|
-
srcPath: "/_api/paid-plans/v2/
|
|
242
|
-
destPath: "/v2/
|
|
241
|
+
srcPath: "/_api/paid-plans/v2/checkout",
|
|
242
|
+
destPath: "/v2/checkout"
|
|
243
243
|
},
|
|
244
244
|
{
|
|
245
|
-
srcPath: "/_api/pricing-plans/v2/
|
|
246
|
-
destPath: "/v2/
|
|
245
|
+
srcPath: "/_api/pricing-plans/v2/checkout",
|
|
246
|
+
destPath: "/v2/checkout"
|
|
247
247
|
}
|
|
248
248
|
],
|
|
249
249
|
"editor.wixapps.net": [
|
|
250
250
|
{
|
|
251
|
-
srcPath: "/_api/paid-plans/v2/
|
|
252
|
-
destPath: "/v2/
|
|
251
|
+
srcPath: "/_api/paid-plans/v2/checkout",
|
|
252
|
+
destPath: "/v2/checkout"
|
|
253
253
|
},
|
|
254
254
|
{
|
|
255
|
-
srcPath: "/_api/pricing-plans/v2/
|
|
256
|
-
destPath: "/v2/
|
|
255
|
+
srcPath: "/_api/pricing-plans/v2/checkout",
|
|
256
|
+
destPath: "/v2/checkout"
|
|
257
257
|
}
|
|
258
258
|
],
|
|
259
259
|
"forums._base_domain_": [
|
|
260
260
|
{
|
|
261
|
-
srcPath: "/_api/paid-plans/v2/
|
|
262
|
-
destPath: "/v2/
|
|
261
|
+
srcPath: "/_api/paid-plans/v2/checkout",
|
|
262
|
+
destPath: "/v2/checkout"
|
|
263
263
|
}
|
|
264
264
|
],
|
|
265
265
|
"forums.wixapps.net": [
|
|
266
266
|
{
|
|
267
|
-
srcPath: "/_api/paid-plans/v2/
|
|
268
|
-
destPath: "/v2/
|
|
267
|
+
srcPath: "/_api/paid-plans/v2/checkout",
|
|
268
|
+
destPath: "/v2/checkout"
|
|
269
269
|
}
|
|
270
270
|
],
|
|
271
271
|
"manage._base_domain_": [
|
|
272
272
|
{
|
|
273
|
-
srcPath: "/_api/pricing-plans/v2/
|
|
274
|
-
destPath: "/v2/
|
|
273
|
+
srcPath: "/_api/pricing-plans/v2/checkout",
|
|
274
|
+
destPath: "/v2/checkout"
|
|
275
275
|
},
|
|
276
276
|
{
|
|
277
|
-
srcPath: "/_api/paid-plans/v2/
|
|
278
|
-
destPath: "/v2/
|
|
277
|
+
srcPath: "/_api/paid-plans/v2/checkout",
|
|
278
|
+
destPath: "/v2/checkout"
|
|
279
|
+
},
|
|
280
|
+
{
|
|
281
|
+
srcPath: "/pricing-plans/v2/checkout",
|
|
282
|
+
destPath: "/v2/checkout"
|
|
279
283
|
}
|
|
280
284
|
],
|
|
281
285
|
"www.wixapis.com": [
|
|
282
286
|
{
|
|
283
|
-
srcPath: "/pricing-plans/v2/
|
|
284
|
-
destPath: "/v2/
|
|
287
|
+
srcPath: "/pricing-plans/v2/checkout",
|
|
288
|
+
destPath: "/v2/checkout"
|
|
285
289
|
}
|
|
286
290
|
],
|
|
287
291
|
_: [
|
|
288
292
|
{
|
|
289
|
-
srcPath: "/
|
|
290
|
-
destPath: "/v2/
|
|
293
|
+
srcPath: "/pricing-plans/v2/checkout",
|
|
294
|
+
destPath: "/v2/checkout"
|
|
291
295
|
},
|
|
292
296
|
{
|
|
293
|
-
srcPath: "/_api/
|
|
294
|
-
destPath: "/v2/
|
|
297
|
+
srcPath: "/_api/paid-plans/v2/checkout",
|
|
298
|
+
destPath: "/v2/checkout"
|
|
299
|
+
},
|
|
300
|
+
{
|
|
301
|
+
srcPath: "/_api/pricing-plans/v2/checkout",
|
|
302
|
+
destPath: "/v2/checkout"
|
|
295
303
|
}
|
|
296
304
|
],
|
|
297
305
|
"*.pub.wix-code.com": [
|
|
298
306
|
{
|
|
299
|
-
srcPath: "/_api/paid-plans/v2/
|
|
300
|
-
destPath: "/v2/
|
|
307
|
+
srcPath: "/_api/paid-plans/v2/checkout",
|
|
308
|
+
destPath: "/v2/checkout"
|
|
301
309
|
}
|
|
302
310
|
],
|
|
303
311
|
"www._base_domain_": [
|
|
304
312
|
{
|
|
305
|
-
srcPath: "/_api/paid-plans/v2/
|
|
306
|
-
destPath: "/v2/
|
|
313
|
+
srcPath: "/_api/paid-plans/v2/checkout",
|
|
314
|
+
destPath: "/v2/checkout"
|
|
307
315
|
}
|
|
308
316
|
],
|
|
309
317
|
"apps._base_domain_": [
|
|
310
318
|
{
|
|
311
|
-
srcPath: "/_api/paid-plans/v2/
|
|
312
|
-
destPath: "/v2/
|
|
319
|
+
srcPath: "/_api/paid-plans/v2/checkout",
|
|
320
|
+
destPath: "/v2/checkout"
|
|
313
321
|
},
|
|
314
322
|
{
|
|
315
|
-
srcPath: "/_api/pricing-plans/v2/
|
|
316
|
-
destPath: "/v2/
|
|
323
|
+
srcPath: "/_api/pricing-plans/v2/checkout",
|
|
324
|
+
destPath: "/v2/checkout"
|
|
317
325
|
}
|
|
318
326
|
],
|
|
319
327
|
"dev._base_domain_": [
|
|
320
328
|
{
|
|
321
|
-
srcPath: "/_api/paid-plans/v2/
|
|
322
|
-
destPath: "/v2/
|
|
329
|
+
srcPath: "/_api/paid-plans/v2/checkout",
|
|
330
|
+
destPath: "/v2/checkout"
|
|
323
331
|
},
|
|
324
332
|
{
|
|
325
|
-
srcPath: "/_api/pricing-plans/v2/
|
|
326
|
-
destPath: "/v2/
|
|
333
|
+
srcPath: "/_api/pricing-plans/v2/checkout",
|
|
334
|
+
destPath: "/v2/checkout"
|
|
327
335
|
}
|
|
328
336
|
]
|
|
329
337
|
};
|
|
330
338
|
return (0, import_rest_modules2.resolveUrl)(Object.assign(opts, { domainToMappings }));
|
|
331
339
|
}
|
|
332
|
-
function
|
|
340
|
+
function resolveComWixpressMembershipV2OrdersOrderManagementServiceUrl(opts) {
|
|
333
341
|
const domainToMappings = {
|
|
334
342
|
"api._api_base_domain_": [
|
|
335
343
|
{
|
|
336
|
-
srcPath: "/
|
|
344
|
+
srcPath: "/order-management-service-proxy",
|
|
337
345
|
destPath: ""
|
|
338
346
|
}
|
|
339
347
|
],
|
|
340
348
|
"*.dev.wix-code.com": [
|
|
341
349
|
{
|
|
342
|
-
srcPath: "/_api/paid-plans/v2/
|
|
343
|
-
destPath: "/v2/
|
|
350
|
+
srcPath: "/_api/paid-plans/v2/orders",
|
|
351
|
+
destPath: "/v2/orders"
|
|
344
352
|
},
|
|
345
353
|
{
|
|
346
|
-
srcPath: "/_api/pricing-plans/v2/
|
|
347
|
-
destPath: "/v2/
|
|
354
|
+
srcPath: "/_api/pricing-plans/v2/orders",
|
|
355
|
+
destPath: "/v2/orders"
|
|
348
356
|
}
|
|
349
357
|
],
|
|
350
358
|
"*.wixapps.net": [
|
|
351
359
|
{
|
|
352
|
-
srcPath: "/_api/paid-plans/v2/
|
|
353
|
-
destPath: "/v2/
|
|
360
|
+
srcPath: "/_api/paid-plans/v2/orders",
|
|
361
|
+
destPath: "/v2/orders"
|
|
354
362
|
}
|
|
355
363
|
],
|
|
356
364
|
"editor-flow.wixapps.net": [
|
|
357
365
|
{
|
|
358
|
-
srcPath: "/_api/paid-plans/v2/
|
|
359
|
-
destPath: "/v2/
|
|
366
|
+
srcPath: "/_api/paid-plans/v2/orders",
|
|
367
|
+
destPath: "/v2/orders"
|
|
360
368
|
}
|
|
361
369
|
],
|
|
362
370
|
"editor._base_domain_": [
|
|
363
371
|
{
|
|
364
|
-
srcPath: "/_api/paid-plans/v2/
|
|
365
|
-
destPath: "/v2/
|
|
372
|
+
srcPath: "/_api/paid-plans/v2/orders",
|
|
373
|
+
destPath: "/v2/orders"
|
|
366
374
|
},
|
|
367
375
|
{
|
|
368
|
-
srcPath: "/_api/pricing-plans/v2/
|
|
369
|
-
destPath: "/v2/
|
|
376
|
+
srcPath: "/_api/pricing-plans/v2/orders",
|
|
377
|
+
destPath: "/v2/orders"
|
|
370
378
|
}
|
|
371
379
|
],
|
|
372
380
|
"blocks._base_domain_": [
|
|
373
381
|
{
|
|
374
|
-
srcPath: "/_api/paid-plans/v2/
|
|
375
|
-
destPath: "/v2/
|
|
382
|
+
srcPath: "/_api/paid-plans/v2/orders",
|
|
383
|
+
destPath: "/v2/orders"
|
|
376
384
|
},
|
|
377
385
|
{
|
|
378
|
-
srcPath: "/_api/pricing-plans/v2/
|
|
379
|
-
destPath: "/v2/
|
|
386
|
+
srcPath: "/_api/pricing-plans/v2/orders",
|
|
387
|
+
destPath: "/v2/orders"
|
|
380
388
|
}
|
|
381
389
|
],
|
|
382
390
|
"create.editorx": [
|
|
383
391
|
{
|
|
384
|
-
srcPath: "/_api/paid-plans/v2/
|
|
385
|
-
destPath: "/v2/
|
|
392
|
+
srcPath: "/_api/paid-plans/v2/orders",
|
|
393
|
+
destPath: "/v2/orders"
|
|
386
394
|
},
|
|
387
395
|
{
|
|
388
|
-
srcPath: "/_api/pricing-plans/v2/
|
|
389
|
-
destPath: "/v2/
|
|
396
|
+
srcPath: "/_api/pricing-plans/v2/orders",
|
|
397
|
+
destPath: "/v2/orders"
|
|
390
398
|
}
|
|
391
399
|
],
|
|
392
400
|
"editor.wixapps.net": [
|
|
393
401
|
{
|
|
394
|
-
srcPath: "/_api/paid-plans/v2/
|
|
395
|
-
destPath: "/v2/
|
|
402
|
+
srcPath: "/_api/paid-plans/v2/orders",
|
|
403
|
+
destPath: "/v2/orders"
|
|
396
404
|
},
|
|
397
405
|
{
|
|
398
|
-
srcPath: "/_api/pricing-plans/v2/
|
|
399
|
-
destPath: "/v2/
|
|
406
|
+
srcPath: "/_api/pricing-plans/v2/orders",
|
|
407
|
+
destPath: "/v2/orders"
|
|
400
408
|
}
|
|
401
409
|
],
|
|
402
410
|
"forums._base_domain_": [
|
|
403
411
|
{
|
|
404
|
-
srcPath: "/_api/paid-plans/v2/
|
|
405
|
-
destPath: "/v2/
|
|
412
|
+
srcPath: "/_api/paid-plans/v2/orders",
|
|
413
|
+
destPath: "/v2/orders"
|
|
406
414
|
}
|
|
407
415
|
],
|
|
408
416
|
"forums.wixapps.net": [
|
|
409
417
|
{
|
|
410
|
-
srcPath: "/_api/paid-plans/v2/
|
|
411
|
-
destPath: "/v2/
|
|
418
|
+
srcPath: "/_api/paid-plans/v2/orders",
|
|
419
|
+
destPath: "/v2/orders"
|
|
412
420
|
}
|
|
413
421
|
],
|
|
414
422
|
"manage._base_domain_": [
|
|
415
423
|
{
|
|
416
|
-
srcPath: "/_api/pricing-plans/v2/
|
|
417
|
-
destPath: "/v2/
|
|
418
|
-
},
|
|
419
|
-
{
|
|
420
|
-
srcPath: "/_api/paid-plans/v2/checkout",
|
|
421
|
-
destPath: "/v2/checkout"
|
|
424
|
+
srcPath: "/_api/pricing-plans/v2/orders",
|
|
425
|
+
destPath: "/v2/orders"
|
|
422
426
|
},
|
|
423
427
|
{
|
|
424
|
-
srcPath: "/
|
|
425
|
-
destPath: "/v2/
|
|
428
|
+
srcPath: "/_api/paid-plans/v2/orders",
|
|
429
|
+
destPath: "/v2/orders"
|
|
426
430
|
}
|
|
427
431
|
],
|
|
428
432
|
"www.wixapis.com": [
|
|
429
433
|
{
|
|
430
|
-
srcPath: "/pricing-plans/v2/
|
|
431
|
-
destPath: "/v2/
|
|
434
|
+
srcPath: "/pricing-plans/v2/orders",
|
|
435
|
+
destPath: "/v2/orders"
|
|
432
436
|
}
|
|
433
437
|
],
|
|
434
438
|
_: [
|
|
435
439
|
{
|
|
436
|
-
srcPath: "/
|
|
437
|
-
destPath: "/v2/
|
|
438
|
-
},
|
|
439
|
-
{
|
|
440
|
-
srcPath: "/_api/paid-plans/v2/checkout",
|
|
441
|
-
destPath: "/v2/checkout"
|
|
440
|
+
srcPath: "/_api/paid-plans/v2/orders",
|
|
441
|
+
destPath: "/v2/orders"
|
|
442
442
|
},
|
|
443
443
|
{
|
|
444
|
-
srcPath: "/_api/pricing-plans/v2/
|
|
445
|
-
destPath: "/v2/
|
|
444
|
+
srcPath: "/_api/pricing-plans/v2/orders",
|
|
445
|
+
destPath: "/v2/orders"
|
|
446
446
|
}
|
|
447
447
|
],
|
|
448
448
|
"*.pub.wix-code.com": [
|
|
449
449
|
{
|
|
450
|
-
srcPath: "/_api/paid-plans/v2/
|
|
451
|
-
destPath: "/v2/
|
|
450
|
+
srcPath: "/_api/paid-plans/v2/orders",
|
|
451
|
+
destPath: "/v2/orders"
|
|
452
452
|
}
|
|
453
453
|
],
|
|
454
454
|
"www._base_domain_": [
|
|
455
455
|
{
|
|
456
|
-
srcPath: "/_api/paid-plans/v2/
|
|
457
|
-
destPath: "/v2/
|
|
456
|
+
srcPath: "/_api/paid-plans/v2/orders",
|
|
457
|
+
destPath: "/v2/orders"
|
|
458
458
|
}
|
|
459
459
|
],
|
|
460
460
|
"apps._base_domain_": [
|
|
461
461
|
{
|
|
462
|
-
srcPath: "/_api/paid-plans/v2/
|
|
463
|
-
destPath: "/v2/
|
|
462
|
+
srcPath: "/_api/paid-plans/v2/orders",
|
|
463
|
+
destPath: "/v2/orders"
|
|
464
464
|
},
|
|
465
465
|
{
|
|
466
|
-
srcPath: "/_api/pricing-plans/v2/
|
|
467
|
-
destPath: "/v2/
|
|
466
|
+
srcPath: "/_api/pricing-plans/v2/orders",
|
|
467
|
+
destPath: "/v2/orders"
|
|
468
468
|
}
|
|
469
469
|
],
|
|
470
470
|
"dev._base_domain_": [
|
|
471
471
|
{
|
|
472
|
-
srcPath: "/_api/paid-plans/v2/
|
|
473
|
-
destPath: "/v2/
|
|
472
|
+
srcPath: "/_api/paid-plans/v2/orders",
|
|
473
|
+
destPath: "/v2/orders"
|
|
474
474
|
},
|
|
475
475
|
{
|
|
476
|
-
srcPath: "/_api/pricing-plans/v2/
|
|
477
|
-
destPath: "/v2/
|
|
476
|
+
srcPath: "/_api/pricing-plans/v2/orders",
|
|
477
|
+
destPath: "/v2/orders"
|
|
478
478
|
}
|
|
479
479
|
]
|
|
480
480
|
};
|
|
481
481
|
return (0, import_rest_modules2.resolveUrl)(Object.assign(opts, { domainToMappings }));
|
|
482
482
|
}
|
|
483
483
|
var PACKAGE_NAME = "@wix/auto_sdk_pricing-plans_orders";
|
|
484
|
-
function
|
|
485
|
-
function
|
|
486
|
-
const serializedData = (0, import_transform_paths.transformPaths)(payload, [
|
|
487
|
-
{
|
|
488
|
-
transformFn: import_timestamp.transformSDKTimestampToRESTTimestamp,
|
|
489
|
-
paths: TRANSFORM_PATHS_0
|
|
490
|
-
}
|
|
491
|
-
]);
|
|
484
|
+
function managementGetOrder(payload) {
|
|
485
|
+
function __managementGetOrder({ host }) {
|
|
492
486
|
const metadata = {
|
|
493
487
|
entityFqdn: "wix.pricing_plans.v2.order",
|
|
494
|
-
method: "
|
|
495
|
-
methodFqn: "com.wixpress.membership.v2.orders.
|
|
488
|
+
method: "GET",
|
|
489
|
+
methodFqn: "com.wixpress.membership.v2.orders.OrderManagementService.GetOrder",
|
|
496
490
|
packageName: PACKAGE_NAME,
|
|
497
491
|
migrationOptions: {
|
|
498
492
|
optInTransformResponse: true
|
|
499
493
|
},
|
|
500
|
-
url:
|
|
501
|
-
protoPath: "/v2/
|
|
502
|
-
data:
|
|
494
|
+
url: resolveComWixpressMembershipV2OrdersOrderManagementServiceUrl({
|
|
495
|
+
protoPath: "/v2/orders/{id}",
|
|
496
|
+
data: payload,
|
|
503
497
|
host
|
|
504
498
|
}),
|
|
505
|
-
|
|
499
|
+
params: (0, import_rest_modules.toURLSearchParams)(payload),
|
|
506
500
|
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
507
501
|
{
|
|
508
502
|
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
509
|
-
paths:
|
|
503
|
+
paths: TRANSFORM_PATHS_0
|
|
510
504
|
}
|
|
511
505
|
])
|
|
512
506
|
};
|
|
513
507
|
return metadata;
|
|
514
508
|
}
|
|
515
|
-
return
|
|
509
|
+
return __managementGetOrder;
|
|
516
510
|
}
|
|
517
|
-
function
|
|
518
|
-
function
|
|
511
|
+
function managementListOrders(payload) {
|
|
512
|
+
function __managementListOrders({ host }) {
|
|
519
513
|
const serializedData = (0, import_transform_paths.transformPaths)(payload, [
|
|
520
514
|
{
|
|
521
|
-
transformFn:
|
|
522
|
-
paths:
|
|
515
|
+
transformFn: import_float.transformSDKFloatToRESTFloat,
|
|
516
|
+
paths: TRANSFORM_PATHS_1
|
|
523
517
|
}
|
|
524
518
|
]);
|
|
525
519
|
const metadata = {
|
|
526
520
|
entityFqdn: "wix.pricing_plans.v2.order",
|
|
527
|
-
method: "
|
|
528
|
-
methodFqn: "com.wixpress.membership.v2.orders.
|
|
521
|
+
method: "GET",
|
|
522
|
+
methodFqn: "com.wixpress.membership.v2.orders.OrderManagementService.ListOrders",
|
|
529
523
|
packageName: PACKAGE_NAME,
|
|
530
524
|
migrationOptions: {
|
|
531
525
|
optInTransformResponse: true
|
|
532
526
|
},
|
|
533
|
-
url:
|
|
534
|
-
protoPath: "/v2/
|
|
527
|
+
url: resolveComWixpressMembershipV2OrdersOrderManagementServiceUrl({
|
|
528
|
+
protoPath: "/v2/orders",
|
|
535
529
|
data: serializedData,
|
|
536
530
|
host
|
|
537
531
|
}),
|
|
538
|
-
|
|
532
|
+
params: (0, import_rest_modules.toURLSearchParams)(serializedData, true),
|
|
539
533
|
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
540
534
|
{
|
|
541
535
|
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
542
|
-
paths:
|
|
536
|
+
paths: TRANSFORM_PATHS_2
|
|
543
537
|
}
|
|
544
538
|
])
|
|
545
539
|
};
|
|
546
540
|
return metadata;
|
|
547
541
|
}
|
|
548
|
-
return
|
|
542
|
+
return __managementListOrders;
|
|
549
543
|
}
|
|
550
|
-
function
|
|
551
|
-
function
|
|
544
|
+
function postponeEndDate(payload) {
|
|
545
|
+
function __postponeEndDate({ host }) {
|
|
552
546
|
const serializedData = (0, import_transform_paths.transformPaths)(payload, [
|
|
553
547
|
{
|
|
554
548
|
transformFn: import_timestamp.transformSDKTimestampToRESTTimestamp,
|
|
555
|
-
paths:
|
|
549
|
+
paths: TRANSFORM_PATHS_3
|
|
556
550
|
}
|
|
557
551
|
]);
|
|
558
552
|
const metadata = {
|
|
559
553
|
entityFqdn: "wix.pricing_plans.v2.order",
|
|
560
|
-
method: "
|
|
561
|
-
methodFqn: "com.wixpress.membership.v2.orders.
|
|
554
|
+
method: "PATCH",
|
|
555
|
+
methodFqn: "com.wixpress.membership.v2.orders.OrderManagementService.PostponeEndDate",
|
|
562
556
|
packageName: PACKAGE_NAME,
|
|
563
557
|
migrationOptions: {
|
|
564
558
|
optInTransformResponse: true
|
|
565
559
|
},
|
|
566
|
-
url:
|
|
567
|
-
protoPath: "/v2/
|
|
560
|
+
url: resolveComWixpressMembershipV2OrdersOrderManagementServiceUrl({
|
|
561
|
+
protoPath: "/v2/orders/{id}",
|
|
568
562
|
data: serializedData,
|
|
569
563
|
host
|
|
570
564
|
}),
|
|
571
|
-
data: serializedData
|
|
572
|
-
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
573
|
-
{
|
|
574
|
-
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
575
|
-
paths: TRANSFORM_PATHS_1
|
|
576
|
-
}
|
|
577
|
-
])
|
|
565
|
+
data: serializedData
|
|
578
566
|
};
|
|
579
567
|
return metadata;
|
|
580
568
|
}
|
|
581
|
-
return
|
|
569
|
+
return __postponeEndDate;
|
|
582
570
|
}
|
|
583
|
-
function
|
|
584
|
-
function
|
|
585
|
-
const serializedData = (0, import_transform_paths.transformPaths)(payload, [
|
|
586
|
-
{
|
|
587
|
-
transformFn: import_timestamp.transformSDKTimestampToRESTTimestamp,
|
|
588
|
-
paths: TRANSFORM_PATHS_0
|
|
589
|
-
}
|
|
590
|
-
]);
|
|
571
|
+
function cancelOrder(payload) {
|
|
572
|
+
function __cancelOrder({ host }) {
|
|
591
573
|
const metadata = {
|
|
592
574
|
entityFqdn: "wix.pricing_plans.v2.order",
|
|
593
575
|
method: "POST",
|
|
594
|
-
methodFqn: "com.wixpress.membership.v2.orders.
|
|
576
|
+
methodFqn: "com.wixpress.membership.v2.orders.OrderManagementService.CancelOrder",
|
|
595
577
|
packageName: PACKAGE_NAME,
|
|
596
578
|
migrationOptions: {
|
|
597
579
|
optInTransformResponse: true
|
|
598
580
|
},
|
|
599
|
-
url:
|
|
600
|
-
protoPath: "/v2/
|
|
601
|
-
data:
|
|
581
|
+
url: resolveComWixpressMembershipV2OrdersOrderManagementServiceUrl({
|
|
582
|
+
protoPath: "/v2/orders/{id}/cancel",
|
|
583
|
+
data: payload,
|
|
602
584
|
host
|
|
603
585
|
}),
|
|
604
|
-
data:
|
|
605
|
-
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
606
|
-
{
|
|
607
|
-
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
608
|
-
paths: TRANSFORM_PATHS_1
|
|
609
|
-
}
|
|
610
|
-
])
|
|
586
|
+
data: payload
|
|
611
587
|
};
|
|
612
588
|
return metadata;
|
|
613
589
|
}
|
|
614
|
-
return
|
|
590
|
+
return __cancelOrder;
|
|
615
591
|
}
|
|
616
|
-
function
|
|
617
|
-
function
|
|
592
|
+
function markAsPaid(payload) {
|
|
593
|
+
function __markAsPaid({ host }) {
|
|
618
594
|
const metadata = {
|
|
619
595
|
entityFqdn: "wix.pricing_plans.v2.order",
|
|
620
596
|
method: "POST",
|
|
621
|
-
methodFqn: "com.wixpress.membership.v2.orders.
|
|
597
|
+
methodFqn: "com.wixpress.membership.v2.orders.OrderManagementService.MarkAsPaid",
|
|
622
598
|
packageName: PACKAGE_NAME,
|
|
623
599
|
migrationOptions: {
|
|
624
600
|
optInTransformResponse: true
|
|
625
601
|
},
|
|
626
|
-
url:
|
|
627
|
-
protoPath: "/v2/
|
|
602
|
+
url: resolveComWixpressMembershipV2OrdersOrderManagementServiceUrl({
|
|
603
|
+
protoPath: "/v2/orders/{id}/mark-as-paid",
|
|
628
604
|
data: payload,
|
|
629
605
|
host
|
|
630
606
|
}),
|
|
@@ -632,70 +608,52 @@ function getPricePreview(payload) {
|
|
|
632
608
|
};
|
|
633
609
|
return metadata;
|
|
634
610
|
}
|
|
635
|
-
return
|
|
611
|
+
return __markAsPaid;
|
|
636
612
|
}
|
|
637
|
-
function
|
|
638
|
-
function
|
|
613
|
+
function pauseOrder(payload) {
|
|
614
|
+
function __pauseOrder({ host }) {
|
|
639
615
|
const metadata = {
|
|
640
616
|
entityFqdn: "wix.pricing_plans.v2.order",
|
|
641
|
-
method: "
|
|
642
|
-
methodFqn: "com.wixpress.membership.v2.orders.OrderManagementService.
|
|
617
|
+
method: "POST",
|
|
618
|
+
methodFqn: "com.wixpress.membership.v2.orders.OrderManagementService.PauseOrder",
|
|
643
619
|
packageName: PACKAGE_NAME,
|
|
644
620
|
migrationOptions: {
|
|
645
621
|
optInTransformResponse: true
|
|
646
622
|
},
|
|
647
623
|
url: resolveComWixpressMembershipV2OrdersOrderManagementServiceUrl({
|
|
648
|
-
protoPath: "/v2/orders/{id}",
|
|
624
|
+
protoPath: "/v2/orders/{id}/pause",
|
|
649
625
|
data: payload,
|
|
650
626
|
host
|
|
651
627
|
}),
|
|
652
|
-
|
|
653
|
-
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
654
|
-
{
|
|
655
|
-
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
656
|
-
paths: TRANSFORM_PATHS_1
|
|
657
|
-
}
|
|
658
|
-
])
|
|
628
|
+
data: payload
|
|
659
629
|
};
|
|
660
630
|
return metadata;
|
|
661
631
|
}
|
|
662
|
-
return
|
|
632
|
+
return __pauseOrder;
|
|
663
633
|
}
|
|
664
|
-
function
|
|
665
|
-
function
|
|
666
|
-
const serializedData = (0, import_transform_paths.transformPaths)(payload, [
|
|
667
|
-
{
|
|
668
|
-
transformFn: import_float.transformSDKFloatToRESTFloat,
|
|
669
|
-
paths: TRANSFORM_PATHS_2
|
|
670
|
-
}
|
|
671
|
-
]);
|
|
634
|
+
function resumeOrder(payload) {
|
|
635
|
+
function __resumeOrder({ host }) {
|
|
672
636
|
const metadata = {
|
|
673
637
|
entityFqdn: "wix.pricing_plans.v2.order",
|
|
674
|
-
method: "
|
|
675
|
-
methodFqn: "com.wixpress.membership.v2.orders.OrderManagementService.
|
|
638
|
+
method: "POST",
|
|
639
|
+
methodFqn: "com.wixpress.membership.v2.orders.OrderManagementService.ResumeOrder",
|
|
676
640
|
packageName: PACKAGE_NAME,
|
|
677
641
|
migrationOptions: {
|
|
678
642
|
optInTransformResponse: true
|
|
679
643
|
},
|
|
680
644
|
url: resolveComWixpressMembershipV2OrdersOrderManagementServiceUrl({
|
|
681
|
-
protoPath: "/v2/orders",
|
|
682
|
-
data:
|
|
645
|
+
protoPath: "/v2/orders/{id}/resume",
|
|
646
|
+
data: payload,
|
|
683
647
|
host
|
|
684
648
|
}),
|
|
685
|
-
|
|
686
|
-
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
687
|
-
{
|
|
688
|
-
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
689
|
-
paths: TRANSFORM_PATHS_3
|
|
690
|
-
}
|
|
691
|
-
])
|
|
649
|
+
data: payload
|
|
692
650
|
};
|
|
693
651
|
return metadata;
|
|
694
652
|
}
|
|
695
|
-
return
|
|
653
|
+
return __resumeOrder;
|
|
696
654
|
}
|
|
697
|
-
function
|
|
698
|
-
function
|
|
655
|
+
function createOnlineOrder(payload) {
|
|
656
|
+
function __createOnlineOrder({ host }) {
|
|
699
657
|
const serializedData = (0, import_transform_paths.transformPaths)(payload, [
|
|
700
658
|
{
|
|
701
659
|
transformFn: import_timestamp.transformSDKTimestampToRESTTimestamp,
|
|
@@ -704,98 +662,140 @@ function postponeEndDate(payload) {
|
|
|
704
662
|
]);
|
|
705
663
|
const metadata = {
|
|
706
664
|
entityFqdn: "wix.pricing_plans.v2.order",
|
|
707
|
-
method: "
|
|
708
|
-
methodFqn: "com.wixpress.membership.v2.orders.
|
|
665
|
+
method: "POST",
|
|
666
|
+
methodFqn: "com.wixpress.membership.v2.orders.CheckoutService.CreateOnlineOrder",
|
|
709
667
|
packageName: PACKAGE_NAME,
|
|
710
668
|
migrationOptions: {
|
|
711
669
|
optInTransformResponse: true
|
|
712
670
|
},
|
|
713
|
-
url:
|
|
714
|
-
protoPath: "/v2/orders/
|
|
671
|
+
url: resolveComWixpressMembershipV2OrdersCheckoutServiceUrl({
|
|
672
|
+
protoPath: "/v2/checkout/orders/online",
|
|
715
673
|
data: serializedData,
|
|
716
674
|
host
|
|
717
675
|
}),
|
|
718
|
-
data: serializedData
|
|
676
|
+
data: serializedData,
|
|
677
|
+
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
678
|
+
{
|
|
679
|
+
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
680
|
+
paths: TRANSFORM_PATHS_0
|
|
681
|
+
}
|
|
682
|
+
])
|
|
719
683
|
};
|
|
720
684
|
return metadata;
|
|
721
685
|
}
|
|
722
|
-
return
|
|
686
|
+
return __createOnlineOrder;
|
|
723
687
|
}
|
|
724
|
-
function
|
|
725
|
-
function
|
|
688
|
+
function createOfflineOrder(payload) {
|
|
689
|
+
function __createOfflineOrder({ host }) {
|
|
690
|
+
const serializedData = (0, import_transform_paths.transformPaths)(payload, [
|
|
691
|
+
{
|
|
692
|
+
transformFn: import_timestamp.transformSDKTimestampToRESTTimestamp,
|
|
693
|
+
paths: TRANSFORM_PATHS_4
|
|
694
|
+
}
|
|
695
|
+
]);
|
|
726
696
|
const metadata = {
|
|
727
697
|
entityFqdn: "wix.pricing_plans.v2.order",
|
|
728
698
|
method: "POST",
|
|
729
|
-
methodFqn: "com.wixpress.membership.v2.orders.
|
|
699
|
+
methodFqn: "com.wixpress.membership.v2.orders.CheckoutService.CreateOfflineOrder",
|
|
730
700
|
packageName: PACKAGE_NAME,
|
|
731
701
|
migrationOptions: {
|
|
732
702
|
optInTransformResponse: true
|
|
733
703
|
},
|
|
734
|
-
url:
|
|
735
|
-
protoPath: "/v2/orders/
|
|
736
|
-
data:
|
|
704
|
+
url: resolveComWixpressMembershipV2OrdersCheckoutServiceUrl({
|
|
705
|
+
protoPath: "/v2/checkout/orders/offline",
|
|
706
|
+
data: serializedData,
|
|
737
707
|
host
|
|
738
708
|
}),
|
|
739
|
-
data:
|
|
709
|
+
data: serializedData,
|
|
710
|
+
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
711
|
+
{
|
|
712
|
+
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
713
|
+
paths: TRANSFORM_PATHS_0
|
|
714
|
+
}
|
|
715
|
+
])
|
|
740
716
|
};
|
|
741
717
|
return metadata;
|
|
742
718
|
}
|
|
743
|
-
return
|
|
719
|
+
return __createOfflineOrder;
|
|
744
720
|
}
|
|
745
|
-
function
|
|
746
|
-
function
|
|
721
|
+
function getOnlineOrderPreview(payload) {
|
|
722
|
+
function __getOnlineOrderPreview({ host }) {
|
|
723
|
+
const serializedData = (0, import_transform_paths.transformPaths)(payload, [
|
|
724
|
+
{
|
|
725
|
+
transformFn: import_timestamp.transformSDKTimestampToRESTTimestamp,
|
|
726
|
+
paths: TRANSFORM_PATHS_4
|
|
727
|
+
}
|
|
728
|
+
]);
|
|
747
729
|
const metadata = {
|
|
748
730
|
entityFqdn: "wix.pricing_plans.v2.order",
|
|
749
731
|
method: "POST",
|
|
750
|
-
methodFqn: "com.wixpress.membership.v2.orders.
|
|
732
|
+
methodFqn: "com.wixpress.membership.v2.orders.CheckoutService.GetOnlineOrderPreview",
|
|
751
733
|
packageName: PACKAGE_NAME,
|
|
752
734
|
migrationOptions: {
|
|
753
735
|
optInTransformResponse: true
|
|
754
736
|
},
|
|
755
|
-
url:
|
|
756
|
-
protoPath: "/v2/orders/
|
|
757
|
-
data:
|
|
737
|
+
url: resolveComWixpressMembershipV2OrdersCheckoutServiceUrl({
|
|
738
|
+
protoPath: "/v2/checkout/orders/preview-online",
|
|
739
|
+
data: serializedData,
|
|
758
740
|
host
|
|
759
741
|
}),
|
|
760
|
-
data:
|
|
742
|
+
data: serializedData,
|
|
743
|
+
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
744
|
+
{
|
|
745
|
+
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
746
|
+
paths: TRANSFORM_PATHS_0
|
|
747
|
+
}
|
|
748
|
+
])
|
|
761
749
|
};
|
|
762
750
|
return metadata;
|
|
763
751
|
}
|
|
764
|
-
return
|
|
752
|
+
return __getOnlineOrderPreview;
|
|
765
753
|
}
|
|
766
|
-
function
|
|
767
|
-
function
|
|
754
|
+
function getOfflineOrderPreview(payload) {
|
|
755
|
+
function __getOfflineOrderPreview({ host }) {
|
|
756
|
+
const serializedData = (0, import_transform_paths.transformPaths)(payload, [
|
|
757
|
+
{
|
|
758
|
+
transformFn: import_timestamp.transformSDKTimestampToRESTTimestamp,
|
|
759
|
+
paths: TRANSFORM_PATHS_4
|
|
760
|
+
}
|
|
761
|
+
]);
|
|
768
762
|
const metadata = {
|
|
769
763
|
entityFqdn: "wix.pricing_plans.v2.order",
|
|
770
764
|
method: "POST",
|
|
771
|
-
methodFqn: "com.wixpress.membership.v2.orders.
|
|
765
|
+
methodFqn: "com.wixpress.membership.v2.orders.CheckoutService.GetOfflineOrderPreview",
|
|
772
766
|
packageName: PACKAGE_NAME,
|
|
773
767
|
migrationOptions: {
|
|
774
768
|
optInTransformResponse: true
|
|
775
769
|
},
|
|
776
|
-
url:
|
|
777
|
-
protoPath: "/v2/orders/
|
|
778
|
-
data:
|
|
770
|
+
url: resolveComWixpressMembershipV2OrdersCheckoutServiceUrl({
|
|
771
|
+
protoPath: "/v2/checkout/orders/preview-offline",
|
|
772
|
+
data: serializedData,
|
|
779
773
|
host
|
|
780
774
|
}),
|
|
781
|
-
data:
|
|
775
|
+
data: serializedData,
|
|
776
|
+
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
777
|
+
{
|
|
778
|
+
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
779
|
+
paths: TRANSFORM_PATHS_0
|
|
780
|
+
}
|
|
781
|
+
])
|
|
782
782
|
};
|
|
783
783
|
return metadata;
|
|
784
784
|
}
|
|
785
|
-
return
|
|
785
|
+
return __getOfflineOrderPreview;
|
|
786
786
|
}
|
|
787
|
-
function
|
|
788
|
-
function
|
|
787
|
+
function getPricePreview(payload) {
|
|
788
|
+
function __getPricePreview({ host }) {
|
|
789
789
|
const metadata = {
|
|
790
790
|
entityFqdn: "wix.pricing_plans.v2.order",
|
|
791
791
|
method: "POST",
|
|
792
|
-
methodFqn: "com.wixpress.membership.v2.orders.
|
|
792
|
+
methodFqn: "com.wixpress.membership.v2.orders.CheckoutService.GetPricePreview",
|
|
793
793
|
packageName: PACKAGE_NAME,
|
|
794
794
|
migrationOptions: {
|
|
795
795
|
optInTransformResponse: true
|
|
796
796
|
},
|
|
797
|
-
url:
|
|
798
|
-
protoPath: "/v2/orders/
|
|
797
|
+
url: resolveComWixpressMembershipV2OrdersCheckoutServiceUrl({
|
|
798
|
+
protoPath: "/v2/checkout/orders/price-preview",
|
|
799
799
|
data: payload,
|
|
800
800
|
host
|
|
801
801
|
}),
|
|
@@ -803,7 +803,7 @@ function resumeOrder(payload) {
|
|
|
803
803
|
};
|
|
804
804
|
return metadata;
|
|
805
805
|
}
|
|
806
|
-
return
|
|
806
|
+
return __getPricePreview;
|
|
807
807
|
}
|
|
808
808
|
function memberGetOrder(payload) {
|
|
809
809
|
function __memberGetOrder({ host }) {
|
|
@@ -824,7 +824,7 @@ function memberGetOrder(payload) {
|
|
|
824
824
|
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
825
825
|
{
|
|
826
826
|
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
827
|
-
paths:
|
|
827
|
+
paths: TRANSFORM_PATHS_0
|
|
828
828
|
}
|
|
829
829
|
])
|
|
830
830
|
};
|
|
@@ -837,7 +837,7 @@ function memberListOrders(payload) {
|
|
|
837
837
|
const serializedData = (0, import_transform_paths.transformPaths)(payload, [
|
|
838
838
|
{
|
|
839
839
|
transformFn: import_float.transformSDKFloatToRESTFloat,
|
|
840
|
-
paths:
|
|
840
|
+
paths: TRANSFORM_PATHS_1
|
|
841
841
|
}
|
|
842
842
|
]);
|
|
843
843
|
const metadata = {
|
|
@@ -857,7 +857,7 @@ function memberListOrders(payload) {
|
|
|
857
857
|
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
858
858
|
{
|
|
859
859
|
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
860
|
-
paths:
|
|
860
|
+
paths: TRANSFORM_PATHS_2
|
|
861
861
|
}
|
|
862
862
|
])
|
|
863
863
|
};
|
|
@@ -950,14 +950,6 @@ var Status = /* @__PURE__ */ ((Status2) => {
|
|
|
950
950
|
Status2["ENDED"] = "ENDED";
|
|
951
951
|
return Status2;
|
|
952
952
|
})(Status || {});
|
|
953
|
-
var WebhookIdentityType = /* @__PURE__ */ ((WebhookIdentityType2) => {
|
|
954
|
-
WebhookIdentityType2["UNKNOWN"] = "UNKNOWN";
|
|
955
|
-
WebhookIdentityType2["ANONYMOUS_VISITOR"] = "ANONYMOUS_VISITOR";
|
|
956
|
-
WebhookIdentityType2["MEMBER"] = "MEMBER";
|
|
957
|
-
WebhookIdentityType2["WIX_USER"] = "WIX_USER";
|
|
958
|
-
WebhookIdentityType2["APP"] = "APP";
|
|
959
|
-
return WebhookIdentityType2;
|
|
960
|
-
})(WebhookIdentityType || {});
|
|
961
953
|
var Set = /* @__PURE__ */ ((Set2) => {
|
|
962
954
|
Set2["UNKNOWN_SET"] = "UNKNOWN_SET";
|
|
963
955
|
Set2["BASIC"] = "BASIC";
|
|
@@ -980,16 +972,21 @@ var ReasonNotSuspendable = /* @__PURE__ */ ((ReasonNotSuspendable2) => {
|
|
|
980
972
|
ReasonNotSuspendable2["OLD_STRIPE"] = "OLD_STRIPE";
|
|
981
973
|
return ReasonNotSuspendable2;
|
|
982
974
|
})(ReasonNotSuspendable || {});
|
|
983
|
-
|
|
975
|
+
var WebhookIdentityType = /* @__PURE__ */ ((WebhookIdentityType2) => {
|
|
976
|
+
WebhookIdentityType2["UNKNOWN"] = "UNKNOWN";
|
|
977
|
+
WebhookIdentityType2["ANONYMOUS_VISITOR"] = "ANONYMOUS_VISITOR";
|
|
978
|
+
WebhookIdentityType2["MEMBER"] = "MEMBER";
|
|
979
|
+
WebhookIdentityType2["WIX_USER"] = "WIX_USER";
|
|
980
|
+
WebhookIdentityType2["APP"] = "APP";
|
|
981
|
+
return WebhookIdentityType2;
|
|
982
|
+
})(WebhookIdentityType || {});
|
|
983
|
+
async function managementGetOrder2(_id, options) {
|
|
984
984
|
const { httpClient, sideEffects } = arguments[2];
|
|
985
985
|
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
986
|
-
|
|
987
|
-
|
|
988
|
-
couponCode: options?.couponCode,
|
|
989
|
-
onBehalf: options?.onBehalf,
|
|
990
|
-
submissionId: options?.submissionId
|
|
986
|
+
id: _id,
|
|
987
|
+
fieldSet: options?.fieldSet
|
|
991
988
|
});
|
|
992
|
-
const reqOpts =
|
|
989
|
+
const reqOpts = managementGetOrder(payload);
|
|
993
990
|
sideEffects?.onSiteCall?.();
|
|
994
991
|
try {
|
|
995
992
|
const result = await httpClient.request(reqOpts);
|
|
@@ -1000,32 +997,29 @@ async function createOnlineOrder2(planId, options) {
|
|
|
1000
997
|
err,
|
|
1001
998
|
{
|
|
1002
999
|
spreadPathsToArguments: {},
|
|
1003
|
-
explicitPathsToArguments: {
|
|
1004
|
-
planId: "$[0]",
|
|
1005
|
-
startDate: "$[1].startDate",
|
|
1006
|
-
couponCode: "$[1].couponCode",
|
|
1007
|
-
onBehalf: "$[1].onBehalf",
|
|
1008
|
-
submissionId: "$[1].submissionId"
|
|
1009
|
-
},
|
|
1000
|
+
explicitPathsToArguments: { id: "$[0]", fieldSet: "$[1].fieldSet" },
|
|
1010
1001
|
singleArgumentUnchanged: false
|
|
1011
1002
|
},
|
|
1012
|
-
["
|
|
1003
|
+
["_id", "options"]
|
|
1013
1004
|
);
|
|
1014
1005
|
sideEffects?.onError?.(err);
|
|
1015
1006
|
throw transformedError;
|
|
1016
1007
|
}
|
|
1017
1008
|
}
|
|
1018
|
-
async function
|
|
1019
|
-
const { httpClient, sideEffects } = arguments[
|
|
1009
|
+
async function managementListOrders2(options) {
|
|
1010
|
+
const { httpClient, sideEffects } = arguments[1];
|
|
1020
1011
|
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
1021
|
-
|
|
1022
|
-
|
|
1023
|
-
|
|
1024
|
-
|
|
1025
|
-
|
|
1026
|
-
|
|
1012
|
+
buyerIds: options?.buyerIds,
|
|
1013
|
+
planIds: options?.planIds,
|
|
1014
|
+
autoRenewCanceled: options?.autoRenewCanceled,
|
|
1015
|
+
orderStatuses: options?.orderStatuses,
|
|
1016
|
+
paymentStatuses: options?.paymentStatuses,
|
|
1017
|
+
limit: options?.limit,
|
|
1018
|
+
offset: options?.offset,
|
|
1019
|
+
sorting: options?.sorting,
|
|
1020
|
+
fieldSet: options?.fieldSet
|
|
1027
1021
|
});
|
|
1028
|
-
const reqOpts =
|
|
1022
|
+
const reqOpts = managementListOrders(payload);
|
|
1029
1023
|
sideEffects?.onSiteCall?.();
|
|
1030
1024
|
try {
|
|
1031
1025
|
const result = await httpClient.request(reqOpts);
|
|
@@ -1037,294 +1031,300 @@ async function createOfflineOrder2(planId, memberId, options) {
|
|
|
1037
1031
|
{
|
|
1038
1032
|
spreadPathsToArguments: {},
|
|
1039
1033
|
explicitPathsToArguments: {
|
|
1040
|
-
|
|
1041
|
-
|
|
1042
|
-
|
|
1043
|
-
|
|
1044
|
-
|
|
1045
|
-
|
|
1034
|
+
buyerIds: "$[0].buyerIds",
|
|
1035
|
+
planIds: "$[0].planIds",
|
|
1036
|
+
autoRenewCanceled: "$[0].autoRenewCanceled",
|
|
1037
|
+
orderStatuses: "$[0].orderStatuses",
|
|
1038
|
+
paymentStatuses: "$[0].paymentStatuses",
|
|
1039
|
+
limit: "$[0].limit",
|
|
1040
|
+
offset: "$[0].offset",
|
|
1041
|
+
sorting: "$[0].sorting",
|
|
1042
|
+
fieldSet: "$[0].fieldSet"
|
|
1046
1043
|
},
|
|
1047
1044
|
singleArgumentUnchanged: false
|
|
1048
1045
|
},
|
|
1049
|
-
["
|
|
1046
|
+
["options"]
|
|
1050
1047
|
);
|
|
1051
1048
|
sideEffects?.onError?.(err);
|
|
1052
1049
|
throw transformedError;
|
|
1053
1050
|
}
|
|
1054
1051
|
}
|
|
1055
|
-
async function
|
|
1052
|
+
async function postponeEndDate2(_id, endDate) {
|
|
1056
1053
|
const { httpClient, sideEffects } = arguments[2];
|
|
1057
1054
|
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
1058
|
-
|
|
1059
|
-
|
|
1060
|
-
couponCode: options?.couponCode
|
|
1055
|
+
id: _id,
|
|
1056
|
+
endDate
|
|
1061
1057
|
});
|
|
1062
|
-
const reqOpts =
|
|
1058
|
+
const reqOpts = postponeEndDate(payload);
|
|
1063
1059
|
sideEffects?.onSiteCall?.();
|
|
1064
1060
|
try {
|
|
1065
1061
|
const result = await httpClient.request(reqOpts);
|
|
1066
1062
|
sideEffects?.onSuccess?.(result);
|
|
1067
|
-
return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data);
|
|
1068
1063
|
} catch (err) {
|
|
1069
1064
|
const transformedError = (0, import_transform_error.transformError)(
|
|
1070
1065
|
err,
|
|
1071
1066
|
{
|
|
1072
1067
|
spreadPathsToArguments: {},
|
|
1073
|
-
explicitPathsToArguments: {
|
|
1074
|
-
planId: "$[0]",
|
|
1075
|
-
startDate: "$[1].startDate",
|
|
1076
|
-
couponCode: "$[1].couponCode"
|
|
1077
|
-
},
|
|
1068
|
+
explicitPathsToArguments: { id: "$[0]", endDate: "$[1]" },
|
|
1078
1069
|
singleArgumentUnchanged: false
|
|
1079
1070
|
},
|
|
1080
|
-
["
|
|
1071
|
+
["_id", "endDate"]
|
|
1081
1072
|
);
|
|
1082
1073
|
sideEffects?.onError?.(err);
|
|
1083
1074
|
throw transformedError;
|
|
1084
1075
|
}
|
|
1085
1076
|
}
|
|
1086
|
-
async function
|
|
1087
|
-
const { httpClient, sideEffects } = arguments[
|
|
1077
|
+
async function cancelOrder2(_id, effectiveAt) {
|
|
1078
|
+
const { httpClient, sideEffects } = arguments[2];
|
|
1088
1079
|
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
1089
|
-
|
|
1090
|
-
|
|
1091
|
-
startDate: options?.startDate,
|
|
1092
|
-
couponCode: options?.couponCode
|
|
1080
|
+
id: _id,
|
|
1081
|
+
effectiveAt
|
|
1093
1082
|
});
|
|
1094
|
-
const reqOpts =
|
|
1083
|
+
const reqOpts = cancelOrder(payload);
|
|
1095
1084
|
sideEffects?.onSiteCall?.();
|
|
1096
1085
|
try {
|
|
1097
1086
|
const result = await httpClient.request(reqOpts);
|
|
1098
1087
|
sideEffects?.onSuccess?.(result);
|
|
1099
|
-
return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data);
|
|
1100
1088
|
} catch (err) {
|
|
1101
1089
|
const transformedError = (0, import_transform_error.transformError)(
|
|
1102
1090
|
err,
|
|
1103
1091
|
{
|
|
1104
1092
|
spreadPathsToArguments: {},
|
|
1105
|
-
explicitPathsToArguments: {
|
|
1106
|
-
planId: "$[0]",
|
|
1107
|
-
memberId: "$[1]",
|
|
1108
|
-
startDate: "$[2].startDate",
|
|
1109
|
-
couponCode: "$[2].couponCode"
|
|
1110
|
-
},
|
|
1093
|
+
explicitPathsToArguments: { id: "$[0]", effectiveAt: "$[1]" },
|
|
1111
1094
|
singleArgumentUnchanged: false
|
|
1112
1095
|
},
|
|
1113
|
-
["
|
|
1096
|
+
["_id", "effectiveAt"]
|
|
1114
1097
|
);
|
|
1115
1098
|
sideEffects?.onError?.(err);
|
|
1116
1099
|
throw transformedError;
|
|
1117
1100
|
}
|
|
1118
1101
|
}
|
|
1119
|
-
async function
|
|
1120
|
-
const { httpClient, sideEffects } = arguments[
|
|
1121
|
-
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
1122
|
-
|
|
1123
|
-
couponCode: options?.couponCode
|
|
1124
|
-
});
|
|
1125
|
-
const reqOpts = getPricePreview(payload);
|
|
1102
|
+
async function markAsPaid2(_id) {
|
|
1103
|
+
const { httpClient, sideEffects } = arguments[1];
|
|
1104
|
+
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({ id: _id });
|
|
1105
|
+
const reqOpts = markAsPaid(payload);
|
|
1126
1106
|
sideEffects?.onSiteCall?.();
|
|
1127
1107
|
try {
|
|
1128
1108
|
const result = await httpClient.request(reqOpts);
|
|
1129
1109
|
sideEffects?.onSuccess?.(result);
|
|
1130
|
-
return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data);
|
|
1131
1110
|
} catch (err) {
|
|
1132
1111
|
const transformedError = (0, import_transform_error.transformError)(
|
|
1133
1112
|
err,
|
|
1134
1113
|
{
|
|
1135
1114
|
spreadPathsToArguments: {},
|
|
1136
|
-
explicitPathsToArguments: {
|
|
1137
|
-
planId: "$[0]",
|
|
1138
|
-
couponCode: "$[1].couponCode"
|
|
1139
|
-
},
|
|
1115
|
+
explicitPathsToArguments: { id: "$[0]" },
|
|
1140
1116
|
singleArgumentUnchanged: false
|
|
1141
1117
|
},
|
|
1142
|
-
["
|
|
1118
|
+
["_id"]
|
|
1143
1119
|
);
|
|
1144
1120
|
sideEffects?.onError?.(err);
|
|
1145
1121
|
throw transformedError;
|
|
1146
1122
|
}
|
|
1147
1123
|
}
|
|
1148
|
-
async function
|
|
1149
|
-
const { httpClient, sideEffects } = arguments[
|
|
1150
|
-
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
1151
|
-
|
|
1152
|
-
fieldSet: options?.fieldSet
|
|
1153
|
-
});
|
|
1154
|
-
const reqOpts = managementGetOrder(payload);
|
|
1124
|
+
async function pauseOrder2(_id) {
|
|
1125
|
+
const { httpClient, sideEffects } = arguments[1];
|
|
1126
|
+
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({ id: _id });
|
|
1127
|
+
const reqOpts = pauseOrder(payload);
|
|
1155
1128
|
sideEffects?.onSiteCall?.();
|
|
1156
1129
|
try {
|
|
1157
1130
|
const result = await httpClient.request(reqOpts);
|
|
1158
1131
|
sideEffects?.onSuccess?.(result);
|
|
1159
|
-
return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data);
|
|
1160
1132
|
} catch (err) {
|
|
1161
1133
|
const transformedError = (0, import_transform_error.transformError)(
|
|
1162
1134
|
err,
|
|
1163
1135
|
{
|
|
1164
1136
|
spreadPathsToArguments: {},
|
|
1165
|
-
explicitPathsToArguments: { id: "$[0]"
|
|
1137
|
+
explicitPathsToArguments: { id: "$[0]" },
|
|
1166
1138
|
singleArgumentUnchanged: false
|
|
1167
1139
|
},
|
|
1168
|
-
["_id"
|
|
1140
|
+
["_id"]
|
|
1169
1141
|
);
|
|
1170
1142
|
sideEffects?.onError?.(err);
|
|
1171
1143
|
throw transformedError;
|
|
1172
1144
|
}
|
|
1173
1145
|
}
|
|
1174
|
-
async function
|
|
1146
|
+
async function resumeOrder2(_id) {
|
|
1175
1147
|
const { httpClient, sideEffects } = arguments[1];
|
|
1176
|
-
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
1177
|
-
|
|
1178
|
-
planIds: options?.planIds,
|
|
1179
|
-
autoRenewCanceled: options?.autoRenewCanceled,
|
|
1180
|
-
orderStatuses: options?.orderStatuses,
|
|
1181
|
-
paymentStatuses: options?.paymentStatuses,
|
|
1182
|
-
limit: options?.limit,
|
|
1183
|
-
offset: options?.offset,
|
|
1184
|
-
sorting: options?.sorting,
|
|
1185
|
-
fieldSet: options?.fieldSet
|
|
1186
|
-
});
|
|
1187
|
-
const reqOpts = managementListOrders(payload);
|
|
1148
|
+
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({ id: _id });
|
|
1149
|
+
const reqOpts = resumeOrder(payload);
|
|
1188
1150
|
sideEffects?.onSiteCall?.();
|
|
1189
1151
|
try {
|
|
1190
1152
|
const result = await httpClient.request(reqOpts);
|
|
1191
1153
|
sideEffects?.onSuccess?.(result);
|
|
1192
|
-
return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data);
|
|
1193
1154
|
} catch (err) {
|
|
1194
1155
|
const transformedError = (0, import_transform_error.transformError)(
|
|
1195
1156
|
err,
|
|
1196
1157
|
{
|
|
1197
1158
|
spreadPathsToArguments: {},
|
|
1198
|
-
explicitPathsToArguments: {
|
|
1199
|
-
buyerIds: "$[0].buyerIds",
|
|
1200
|
-
planIds: "$[0].planIds",
|
|
1201
|
-
autoRenewCanceled: "$[0].autoRenewCanceled",
|
|
1202
|
-
orderStatuses: "$[0].orderStatuses",
|
|
1203
|
-
paymentStatuses: "$[0].paymentStatuses",
|
|
1204
|
-
limit: "$[0].limit",
|
|
1205
|
-
offset: "$[0].offset",
|
|
1206
|
-
sorting: "$[0].sorting",
|
|
1207
|
-
fieldSet: "$[0].fieldSet"
|
|
1208
|
-
},
|
|
1159
|
+
explicitPathsToArguments: { id: "$[0]" },
|
|
1209
1160
|
singleArgumentUnchanged: false
|
|
1210
1161
|
},
|
|
1211
|
-
["
|
|
1162
|
+
["_id"]
|
|
1212
1163
|
);
|
|
1213
1164
|
sideEffects?.onError?.(err);
|
|
1214
1165
|
throw transformedError;
|
|
1215
1166
|
}
|
|
1216
1167
|
}
|
|
1217
|
-
async function
|
|
1168
|
+
async function createOnlineOrder2(planId, options) {
|
|
1218
1169
|
const { httpClient, sideEffects } = arguments[2];
|
|
1219
1170
|
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
1220
|
-
|
|
1221
|
-
|
|
1171
|
+
planId,
|
|
1172
|
+
startDate: options?.startDate,
|
|
1173
|
+
couponCode: options?.couponCode,
|
|
1174
|
+
onBehalf: options?.onBehalf,
|
|
1175
|
+
submissionId: options?.submissionId
|
|
1222
1176
|
});
|
|
1223
|
-
const reqOpts =
|
|
1177
|
+
const reqOpts = createOnlineOrder(payload);
|
|
1224
1178
|
sideEffects?.onSiteCall?.();
|
|
1225
1179
|
try {
|
|
1226
1180
|
const result = await httpClient.request(reqOpts);
|
|
1227
1181
|
sideEffects?.onSuccess?.(result);
|
|
1182
|
+
return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data);
|
|
1228
1183
|
} catch (err) {
|
|
1229
1184
|
const transformedError = (0, import_transform_error.transformError)(
|
|
1230
1185
|
err,
|
|
1231
1186
|
{
|
|
1232
1187
|
spreadPathsToArguments: {},
|
|
1233
|
-
explicitPathsToArguments: {
|
|
1188
|
+
explicitPathsToArguments: {
|
|
1189
|
+
planId: "$[0]",
|
|
1190
|
+
startDate: "$[1].startDate",
|
|
1191
|
+
couponCode: "$[1].couponCode",
|
|
1192
|
+
onBehalf: "$[1].onBehalf",
|
|
1193
|
+
submissionId: "$[1].submissionId"
|
|
1194
|
+
},
|
|
1234
1195
|
singleArgumentUnchanged: false
|
|
1235
1196
|
},
|
|
1236
|
-
["
|
|
1197
|
+
["planId", "options"]
|
|
1237
1198
|
);
|
|
1238
1199
|
sideEffects?.onError?.(err);
|
|
1239
1200
|
throw transformedError;
|
|
1240
1201
|
}
|
|
1241
1202
|
}
|
|
1242
|
-
async function
|
|
1243
|
-
const { httpClient, sideEffects } = arguments[
|
|
1203
|
+
async function createOfflineOrder2(planId, memberId, options) {
|
|
1204
|
+
const { httpClient, sideEffects } = arguments[3];
|
|
1244
1205
|
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
1245
|
-
|
|
1246
|
-
|
|
1206
|
+
planId,
|
|
1207
|
+
memberId,
|
|
1208
|
+
startDate: options?.startDate,
|
|
1209
|
+
paid: options?.paid,
|
|
1210
|
+
couponCode: options?.couponCode,
|
|
1211
|
+
submissionId: options?.submissionId
|
|
1247
1212
|
});
|
|
1248
|
-
const reqOpts =
|
|
1213
|
+
const reqOpts = createOfflineOrder(payload);
|
|
1249
1214
|
sideEffects?.onSiteCall?.();
|
|
1250
1215
|
try {
|
|
1251
1216
|
const result = await httpClient.request(reqOpts);
|
|
1252
1217
|
sideEffects?.onSuccess?.(result);
|
|
1218
|
+
return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data);
|
|
1253
1219
|
} catch (err) {
|
|
1254
1220
|
const transformedError = (0, import_transform_error.transformError)(
|
|
1255
1221
|
err,
|
|
1256
1222
|
{
|
|
1257
1223
|
spreadPathsToArguments: {},
|
|
1258
|
-
explicitPathsToArguments: {
|
|
1224
|
+
explicitPathsToArguments: {
|
|
1225
|
+
planId: "$[0]",
|
|
1226
|
+
memberId: "$[1]",
|
|
1227
|
+
startDate: "$[2].startDate",
|
|
1228
|
+
paid: "$[2].paid",
|
|
1229
|
+
couponCode: "$[2].couponCode",
|
|
1230
|
+
submissionId: "$[2].submissionId"
|
|
1231
|
+
},
|
|
1259
1232
|
singleArgumentUnchanged: false
|
|
1260
1233
|
},
|
|
1261
|
-
["
|
|
1234
|
+
["planId", "memberId", "options"]
|
|
1262
1235
|
);
|
|
1263
1236
|
sideEffects?.onError?.(err);
|
|
1264
1237
|
throw transformedError;
|
|
1265
1238
|
}
|
|
1266
1239
|
}
|
|
1267
|
-
async function
|
|
1268
|
-
const { httpClient, sideEffects } = arguments[
|
|
1269
|
-
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
1270
|
-
|
|
1240
|
+
async function getOnlineOrderPreview2(planId, options) {
|
|
1241
|
+
const { httpClient, sideEffects } = arguments[2];
|
|
1242
|
+
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
1243
|
+
planId,
|
|
1244
|
+
startDate: options?.startDate,
|
|
1245
|
+
couponCode: options?.couponCode
|
|
1246
|
+
});
|
|
1247
|
+
const reqOpts = getOnlineOrderPreview(payload);
|
|
1271
1248
|
sideEffects?.onSiteCall?.();
|
|
1272
1249
|
try {
|
|
1273
1250
|
const result = await httpClient.request(reqOpts);
|
|
1274
1251
|
sideEffects?.onSuccess?.(result);
|
|
1252
|
+
return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data);
|
|
1275
1253
|
} catch (err) {
|
|
1276
1254
|
const transformedError = (0, import_transform_error.transformError)(
|
|
1277
1255
|
err,
|
|
1278
1256
|
{
|
|
1279
1257
|
spreadPathsToArguments: {},
|
|
1280
|
-
explicitPathsToArguments: {
|
|
1258
|
+
explicitPathsToArguments: {
|
|
1259
|
+
planId: "$[0]",
|
|
1260
|
+
startDate: "$[1].startDate",
|
|
1261
|
+
couponCode: "$[1].couponCode"
|
|
1262
|
+
},
|
|
1281
1263
|
singleArgumentUnchanged: false
|
|
1282
1264
|
},
|
|
1283
|
-
["
|
|
1265
|
+
["planId", "options"]
|
|
1284
1266
|
);
|
|
1285
1267
|
sideEffects?.onError?.(err);
|
|
1286
1268
|
throw transformedError;
|
|
1287
1269
|
}
|
|
1288
1270
|
}
|
|
1289
|
-
async function
|
|
1290
|
-
const { httpClient, sideEffects } = arguments[
|
|
1291
|
-
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
1292
|
-
|
|
1271
|
+
async function getOfflineOrderPreview2(planId, memberId, options) {
|
|
1272
|
+
const { httpClient, sideEffects } = arguments[3];
|
|
1273
|
+
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
1274
|
+
planId,
|
|
1275
|
+
memberId,
|
|
1276
|
+
startDate: options?.startDate,
|
|
1277
|
+
couponCode: options?.couponCode
|
|
1278
|
+
});
|
|
1279
|
+
const reqOpts = getOfflineOrderPreview(payload);
|
|
1293
1280
|
sideEffects?.onSiteCall?.();
|
|
1294
1281
|
try {
|
|
1295
1282
|
const result = await httpClient.request(reqOpts);
|
|
1296
1283
|
sideEffects?.onSuccess?.(result);
|
|
1284
|
+
return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data);
|
|
1297
1285
|
} catch (err) {
|
|
1298
1286
|
const transformedError = (0, import_transform_error.transformError)(
|
|
1299
1287
|
err,
|
|
1300
1288
|
{
|
|
1301
1289
|
spreadPathsToArguments: {},
|
|
1302
|
-
explicitPathsToArguments: {
|
|
1290
|
+
explicitPathsToArguments: {
|
|
1291
|
+
planId: "$[0]",
|
|
1292
|
+
memberId: "$[1]",
|
|
1293
|
+
startDate: "$[2].startDate",
|
|
1294
|
+
couponCode: "$[2].couponCode"
|
|
1295
|
+
},
|
|
1303
1296
|
singleArgumentUnchanged: false
|
|
1304
1297
|
},
|
|
1305
|
-
["
|
|
1298
|
+
["planId", "memberId", "options"]
|
|
1306
1299
|
);
|
|
1307
1300
|
sideEffects?.onError?.(err);
|
|
1308
1301
|
throw transformedError;
|
|
1309
1302
|
}
|
|
1310
1303
|
}
|
|
1311
|
-
async function
|
|
1312
|
-
const { httpClient, sideEffects } = arguments[
|
|
1313
|
-
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
1314
|
-
|
|
1304
|
+
async function getPricePreview2(planId, options) {
|
|
1305
|
+
const { httpClient, sideEffects } = arguments[2];
|
|
1306
|
+
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
1307
|
+
planId,
|
|
1308
|
+
couponCode: options?.couponCode
|
|
1309
|
+
});
|
|
1310
|
+
const reqOpts = getPricePreview(payload);
|
|
1315
1311
|
sideEffects?.onSiteCall?.();
|
|
1316
1312
|
try {
|
|
1317
1313
|
const result = await httpClient.request(reqOpts);
|
|
1318
1314
|
sideEffects?.onSuccess?.(result);
|
|
1315
|
+
return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data);
|
|
1319
1316
|
} catch (err) {
|
|
1320
1317
|
const transformedError = (0, import_transform_error.transformError)(
|
|
1321
1318
|
err,
|
|
1322
1319
|
{
|
|
1323
1320
|
spreadPathsToArguments: {},
|
|
1324
|
-
explicitPathsToArguments: {
|
|
1321
|
+
explicitPathsToArguments: {
|
|
1322
|
+
planId: "$[0]",
|
|
1323
|
+
couponCode: "$[1].couponCode"
|
|
1324
|
+
},
|
|
1325
1325
|
singleArgumentUnchanged: false
|
|
1326
1326
|
},
|
|
1327
|
-
["
|
|
1327
|
+
["planId", "options"]
|
|
1328
1328
|
);
|
|
1329
1329
|
sideEffects?.onError?.(err);
|
|
1330
1330
|
throw transformedError;
|