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