@wix/auto_sdk_pricing-plans_orders 1.0.124 → 1.0.125
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 +629 -629
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +787 -787
- package/build/cjs/index.typings.js +502 -502
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.d.ts +484 -484
- package/build/cjs/meta.js +388 -388
- package/build/cjs/meta.js.map +1 -1
- package/build/cjs/schemas.d.ts +199 -199
- package/build/cjs/schemas.js +889 -889
- package/build/cjs/schemas.js.map +1 -1
- package/build/es/index.d.mts +129 -129
- package/build/es/index.mjs +629 -629
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +787 -787
- package/build/es/index.typings.mjs +502 -502
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.d.mts +484 -484
- package/build/es/meta.mjs +388 -388
- package/build/es/meta.mjs.map +1 -1
- package/build/es/schemas.d.mts +199 -199
- package/build/es/schemas.mjs +889 -889
- package/build/es/schemas.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/cjs/schemas.d.ts +199 -199
- 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/build/internal/es/schemas.d.mts +199 -199
- package/package.json +2 -2
package/build/cjs/index.js
CHANGED
|
@@ -171,317 +171,323 @@ function resolveComWixpressMembershipV2OrdersMemberMemberOrdersServiceUrl(opts)
|
|
|
171
171
|
};
|
|
172
172
|
return (0, import_rest_modules2.resolveUrl)(Object.assign(opts, { domainToMappings }));
|
|
173
173
|
}
|
|
174
|
-
function
|
|
174
|
+
function resolveComWixpressMembershipV2OrdersOrderManagementServiceUrl(opts) {
|
|
175
175
|
const domainToMappings = {
|
|
176
176
|
"api._api_base_domain_": [
|
|
177
177
|
{
|
|
178
|
-
srcPath: "/
|
|
178
|
+
srcPath: "/order-management-service-proxy",
|
|
179
179
|
destPath: ""
|
|
180
180
|
}
|
|
181
181
|
],
|
|
182
182
|
"*.dev.wix-code.com": [
|
|
183
183
|
{
|
|
184
|
-
srcPath: "/_api/paid-plans/v2/
|
|
185
|
-
destPath: "/v2/
|
|
184
|
+
srcPath: "/_api/paid-plans/v2/orders",
|
|
185
|
+
destPath: "/v2/orders"
|
|
186
186
|
},
|
|
187
187
|
{
|
|
188
|
-
srcPath: "/_api/pricing-plans/v2/
|
|
189
|
-
destPath: "/v2/
|
|
188
|
+
srcPath: "/_api/pricing-plans/v2/orders",
|
|
189
|
+
destPath: "/v2/orders"
|
|
190
190
|
}
|
|
191
191
|
],
|
|
192
192
|
"*.wixapps.net": [
|
|
193
193
|
{
|
|
194
|
-
srcPath: "/_api/paid-plans/v2/
|
|
195
|
-
destPath: "/v2/
|
|
194
|
+
srcPath: "/_api/paid-plans/v2/orders",
|
|
195
|
+
destPath: "/v2/orders"
|
|
196
196
|
}
|
|
197
197
|
],
|
|
198
198
|
"editor-flow.wixapps.net": [
|
|
199
199
|
{
|
|
200
|
-
srcPath: "/_api/paid-plans/v2/
|
|
201
|
-
destPath: "/v2/
|
|
200
|
+
srcPath: "/_api/paid-plans/v2/orders",
|
|
201
|
+
destPath: "/v2/orders"
|
|
202
202
|
}
|
|
203
203
|
],
|
|
204
204
|
"editor._base_domain_": [
|
|
205
205
|
{
|
|
206
|
-
srcPath: "/_api/paid-plans/v2/
|
|
207
|
-
destPath: "/v2/
|
|
206
|
+
srcPath: "/_api/paid-plans/v2/orders",
|
|
207
|
+
destPath: "/v2/orders"
|
|
208
208
|
},
|
|
209
209
|
{
|
|
210
|
-
srcPath: "/_api/pricing-plans/v2/
|
|
211
|
-
destPath: "/v2/
|
|
210
|
+
srcPath: "/_api/pricing-plans/v2/orders",
|
|
211
|
+
destPath: "/v2/orders"
|
|
212
212
|
}
|
|
213
213
|
],
|
|
214
214
|
"blocks._base_domain_": [
|
|
215
215
|
{
|
|
216
|
-
srcPath: "/_api/paid-plans/v2/
|
|
217
|
-
destPath: "/v2/
|
|
216
|
+
srcPath: "/_api/paid-plans/v2/orders",
|
|
217
|
+
destPath: "/v2/orders"
|
|
218
218
|
},
|
|
219
219
|
{
|
|
220
|
-
srcPath: "/_api/pricing-plans/v2/
|
|
221
|
-
destPath: "/v2/
|
|
220
|
+
srcPath: "/_api/pricing-plans/v2/orders",
|
|
221
|
+
destPath: "/v2/orders"
|
|
222
222
|
}
|
|
223
223
|
],
|
|
224
224
|
"create.editorx": [
|
|
225
225
|
{
|
|
226
|
-
srcPath: "/_api/paid-plans/v2/
|
|
227
|
-
destPath: "/v2/
|
|
226
|
+
srcPath: "/_api/paid-plans/v2/orders",
|
|
227
|
+
destPath: "/v2/orders"
|
|
228
228
|
},
|
|
229
229
|
{
|
|
230
|
-
srcPath: "/_api/pricing-plans/v2/
|
|
231
|
-
destPath: "/v2/
|
|
230
|
+
srcPath: "/_api/pricing-plans/v2/orders",
|
|
231
|
+
destPath: "/v2/orders"
|
|
232
232
|
}
|
|
233
233
|
],
|
|
234
234
|
"editor.wixapps.net": [
|
|
235
235
|
{
|
|
236
|
-
srcPath: "/_api/paid-plans/v2/
|
|
237
|
-
destPath: "/v2/
|
|
236
|
+
srcPath: "/_api/paid-plans/v2/orders",
|
|
237
|
+
destPath: "/v2/orders"
|
|
238
238
|
},
|
|
239
239
|
{
|
|
240
|
-
srcPath: "/_api/pricing-plans/v2/
|
|
241
|
-
destPath: "/v2/
|
|
240
|
+
srcPath: "/_api/pricing-plans/v2/orders",
|
|
241
|
+
destPath: "/v2/orders"
|
|
242
242
|
}
|
|
243
243
|
],
|
|
244
244
|
"forums._base_domain_": [
|
|
245
245
|
{
|
|
246
|
-
srcPath: "/_api/paid-plans/v2/
|
|
247
|
-
destPath: "/v2/
|
|
246
|
+
srcPath: "/_api/paid-plans/v2/orders",
|
|
247
|
+
destPath: "/v2/orders"
|
|
248
248
|
}
|
|
249
249
|
],
|
|
250
250
|
"forums.wixapps.net": [
|
|
251
251
|
{
|
|
252
|
-
srcPath: "/_api/paid-plans/v2/
|
|
253
|
-
destPath: "/v2/
|
|
252
|
+
srcPath: "/_api/paid-plans/v2/orders",
|
|
253
|
+
destPath: "/v2/orders"
|
|
254
254
|
}
|
|
255
255
|
],
|
|
256
256
|
"manage._base_domain_": [
|
|
257
257
|
{
|
|
258
|
-
srcPath: "/_api/pricing-plans/v2/
|
|
259
|
-
destPath: "/v2/
|
|
260
|
-
},
|
|
261
|
-
{
|
|
262
|
-
srcPath: "/_api/paid-plans/v2/checkout",
|
|
263
|
-
destPath: "/v2/checkout"
|
|
258
|
+
srcPath: "/_api/pricing-plans/v2/orders",
|
|
259
|
+
destPath: "/v2/orders"
|
|
264
260
|
},
|
|
265
261
|
{
|
|
266
|
-
srcPath: "/
|
|
267
|
-
destPath: "/v2/
|
|
262
|
+
srcPath: "/_api/paid-plans/v2/orders",
|
|
263
|
+
destPath: "/v2/orders"
|
|
268
264
|
}
|
|
269
265
|
],
|
|
270
266
|
"www.wixapis.com": [
|
|
271
267
|
{
|
|
272
|
-
srcPath: "/pricing-plans/v2/
|
|
273
|
-
destPath: "/v2/
|
|
268
|
+
srcPath: "/pricing-plans/v2/orders",
|
|
269
|
+
destPath: "/v2/orders"
|
|
274
270
|
}
|
|
275
271
|
],
|
|
276
272
|
_: [
|
|
277
273
|
{
|
|
278
|
-
srcPath: "/
|
|
279
|
-
destPath: "/v2/
|
|
280
|
-
},
|
|
281
|
-
{
|
|
282
|
-
srcPath: "/_api/paid-plans/v2/checkout",
|
|
283
|
-
destPath: "/v2/checkout"
|
|
274
|
+
srcPath: "/_api/paid-plans/v2/orders",
|
|
275
|
+
destPath: "/v2/orders"
|
|
284
276
|
},
|
|
285
277
|
{
|
|
286
|
-
srcPath: "/_api/pricing-plans/v2/
|
|
287
|
-
destPath: "/v2/
|
|
278
|
+
srcPath: "/_api/pricing-plans/v2/orders",
|
|
279
|
+
destPath: "/v2/orders"
|
|
288
280
|
}
|
|
289
281
|
],
|
|
290
282
|
"*.pub.wix-code.com": [
|
|
291
283
|
{
|
|
292
|
-
srcPath: "/_api/paid-plans/v2/
|
|
293
|
-
destPath: "/v2/
|
|
284
|
+
srcPath: "/_api/paid-plans/v2/orders",
|
|
285
|
+
destPath: "/v2/orders"
|
|
294
286
|
}
|
|
295
287
|
],
|
|
296
288
|
"www._base_domain_": [
|
|
297
289
|
{
|
|
298
|
-
srcPath: "/_api/paid-plans/v2/
|
|
299
|
-
destPath: "/v2/
|
|
290
|
+
srcPath: "/_api/paid-plans/v2/orders",
|
|
291
|
+
destPath: "/v2/orders"
|
|
300
292
|
}
|
|
301
293
|
],
|
|
302
294
|
"apps._base_domain_": [
|
|
303
295
|
{
|
|
304
|
-
srcPath: "/_api/paid-plans/v2/
|
|
305
|
-
destPath: "/v2/
|
|
296
|
+
srcPath: "/_api/paid-plans/v2/orders",
|
|
297
|
+
destPath: "/v2/orders"
|
|
306
298
|
},
|
|
307
299
|
{
|
|
308
|
-
srcPath: "/_api/pricing-plans/v2/
|
|
309
|
-
destPath: "/v2/
|
|
300
|
+
srcPath: "/_api/pricing-plans/v2/orders",
|
|
301
|
+
destPath: "/v2/orders"
|
|
310
302
|
}
|
|
311
303
|
],
|
|
312
304
|
"dev._base_domain_": [
|
|
313
305
|
{
|
|
314
|
-
srcPath: "/_api/paid-plans/v2/
|
|
315
|
-
destPath: "/v2/
|
|
306
|
+
srcPath: "/_api/paid-plans/v2/orders",
|
|
307
|
+
destPath: "/v2/orders"
|
|
316
308
|
},
|
|
317
309
|
{
|
|
318
|
-
srcPath: "/_api/pricing-plans/v2/
|
|
319
|
-
destPath: "/v2/
|
|
310
|
+
srcPath: "/_api/pricing-plans/v2/orders",
|
|
311
|
+
destPath: "/v2/orders"
|
|
320
312
|
}
|
|
321
313
|
]
|
|
322
314
|
};
|
|
323
315
|
return (0, import_rest_modules2.resolveUrl)(Object.assign(opts, { domainToMappings }));
|
|
324
316
|
}
|
|
325
|
-
function
|
|
317
|
+
function resolveComWixpressMembershipV2OrdersCheckoutServiceUrl(opts) {
|
|
326
318
|
const domainToMappings = {
|
|
327
319
|
"api._api_base_domain_": [
|
|
328
320
|
{
|
|
329
|
-
srcPath: "/
|
|
321
|
+
srcPath: "/pricing-plans-checkout-proxy",
|
|
330
322
|
destPath: ""
|
|
331
323
|
}
|
|
332
324
|
],
|
|
333
325
|
"*.dev.wix-code.com": [
|
|
334
326
|
{
|
|
335
|
-
srcPath: "/_api/paid-plans/v2/
|
|
336
|
-
destPath: "/v2/
|
|
327
|
+
srcPath: "/_api/paid-plans/v2/checkout",
|
|
328
|
+
destPath: "/v2/checkout"
|
|
337
329
|
},
|
|
338
330
|
{
|
|
339
|
-
srcPath: "/_api/pricing-plans/v2/
|
|
340
|
-
destPath: "/v2/
|
|
331
|
+
srcPath: "/_api/pricing-plans/v2/checkout",
|
|
332
|
+
destPath: "/v2/checkout"
|
|
341
333
|
}
|
|
342
334
|
],
|
|
343
335
|
"*.wixapps.net": [
|
|
344
336
|
{
|
|
345
|
-
srcPath: "/_api/paid-plans/v2/
|
|
346
|
-
destPath: "/v2/
|
|
337
|
+
srcPath: "/_api/paid-plans/v2/checkout",
|
|
338
|
+
destPath: "/v2/checkout"
|
|
347
339
|
}
|
|
348
340
|
],
|
|
349
341
|
"editor-flow.wixapps.net": [
|
|
350
342
|
{
|
|
351
|
-
srcPath: "/_api/paid-plans/v2/
|
|
352
|
-
destPath: "/v2/
|
|
343
|
+
srcPath: "/_api/paid-plans/v2/checkout",
|
|
344
|
+
destPath: "/v2/checkout"
|
|
353
345
|
}
|
|
354
346
|
],
|
|
355
347
|
"editor._base_domain_": [
|
|
356
348
|
{
|
|
357
|
-
srcPath: "/_api/paid-plans/v2/
|
|
358
|
-
destPath: "/v2/
|
|
349
|
+
srcPath: "/_api/paid-plans/v2/checkout",
|
|
350
|
+
destPath: "/v2/checkout"
|
|
359
351
|
},
|
|
360
352
|
{
|
|
361
|
-
srcPath: "/_api/pricing-plans/v2/
|
|
362
|
-
destPath: "/v2/
|
|
353
|
+
srcPath: "/_api/pricing-plans/v2/checkout",
|
|
354
|
+
destPath: "/v2/checkout"
|
|
363
355
|
}
|
|
364
356
|
],
|
|
365
357
|
"blocks._base_domain_": [
|
|
366
358
|
{
|
|
367
|
-
srcPath: "/_api/paid-plans/v2/
|
|
368
|
-
destPath: "/v2/
|
|
359
|
+
srcPath: "/_api/paid-plans/v2/checkout",
|
|
360
|
+
destPath: "/v2/checkout"
|
|
369
361
|
},
|
|
370
362
|
{
|
|
371
|
-
srcPath: "/_api/pricing-plans/v2/
|
|
372
|
-
destPath: "/v2/
|
|
363
|
+
srcPath: "/_api/pricing-plans/v2/checkout",
|
|
364
|
+
destPath: "/v2/checkout"
|
|
373
365
|
}
|
|
374
366
|
],
|
|
375
367
|
"create.editorx": [
|
|
376
368
|
{
|
|
377
|
-
srcPath: "/_api/paid-plans/v2/
|
|
378
|
-
destPath: "/v2/
|
|
369
|
+
srcPath: "/_api/paid-plans/v2/checkout",
|
|
370
|
+
destPath: "/v2/checkout"
|
|
379
371
|
},
|
|
380
372
|
{
|
|
381
|
-
srcPath: "/_api/pricing-plans/v2/
|
|
382
|
-
destPath: "/v2/
|
|
373
|
+
srcPath: "/_api/pricing-plans/v2/checkout",
|
|
374
|
+
destPath: "/v2/checkout"
|
|
383
375
|
}
|
|
384
376
|
],
|
|
385
377
|
"editor.wixapps.net": [
|
|
386
378
|
{
|
|
387
|
-
srcPath: "/_api/paid-plans/v2/
|
|
388
|
-
destPath: "/v2/
|
|
379
|
+
srcPath: "/_api/paid-plans/v2/checkout",
|
|
380
|
+
destPath: "/v2/checkout"
|
|
389
381
|
},
|
|
390
382
|
{
|
|
391
|
-
srcPath: "/_api/pricing-plans/v2/
|
|
392
|
-
destPath: "/v2/
|
|
383
|
+
srcPath: "/_api/pricing-plans/v2/checkout",
|
|
384
|
+
destPath: "/v2/checkout"
|
|
393
385
|
}
|
|
394
386
|
],
|
|
395
387
|
"forums._base_domain_": [
|
|
396
388
|
{
|
|
397
|
-
srcPath: "/_api/paid-plans/v2/
|
|
398
|
-
destPath: "/v2/
|
|
389
|
+
srcPath: "/_api/paid-plans/v2/checkout",
|
|
390
|
+
destPath: "/v2/checkout"
|
|
399
391
|
}
|
|
400
392
|
],
|
|
401
393
|
"forums.wixapps.net": [
|
|
402
394
|
{
|
|
403
|
-
srcPath: "/_api/paid-plans/v2/
|
|
404
|
-
destPath: "/v2/
|
|
395
|
+
srcPath: "/_api/paid-plans/v2/checkout",
|
|
396
|
+
destPath: "/v2/checkout"
|
|
405
397
|
}
|
|
406
398
|
],
|
|
407
399
|
"manage._base_domain_": [
|
|
408
400
|
{
|
|
409
|
-
srcPath: "/_api/pricing-plans/v2/
|
|
410
|
-
destPath: "/v2/
|
|
401
|
+
srcPath: "/_api/pricing-plans/v2/checkout",
|
|
402
|
+
destPath: "/v2/checkout"
|
|
411
403
|
},
|
|
412
404
|
{
|
|
413
|
-
srcPath: "/_api/paid-plans/v2/
|
|
414
|
-
destPath: "/v2/
|
|
405
|
+
srcPath: "/_api/paid-plans/v2/checkout",
|
|
406
|
+
destPath: "/v2/checkout"
|
|
407
|
+
},
|
|
408
|
+
{
|
|
409
|
+
srcPath: "/pricing-plans/v2/checkout",
|
|
410
|
+
destPath: "/v2/checkout"
|
|
415
411
|
}
|
|
416
412
|
],
|
|
417
413
|
"www.wixapis.com": [
|
|
418
414
|
{
|
|
419
|
-
srcPath: "/pricing-plans/v2/
|
|
420
|
-
destPath: "/v2/
|
|
415
|
+
srcPath: "/pricing-plans/v2/checkout",
|
|
416
|
+
destPath: "/v2/checkout"
|
|
421
417
|
}
|
|
422
418
|
],
|
|
423
419
|
_: [
|
|
424
420
|
{
|
|
425
|
-
srcPath: "/
|
|
426
|
-
destPath: "/v2/
|
|
421
|
+
srcPath: "/pricing-plans/v2/checkout",
|
|
422
|
+
destPath: "/v2/checkout"
|
|
427
423
|
},
|
|
428
424
|
{
|
|
429
|
-
srcPath: "/_api/
|
|
430
|
-
destPath: "/v2/
|
|
425
|
+
srcPath: "/_api/paid-plans/v2/checkout",
|
|
426
|
+
destPath: "/v2/checkout"
|
|
427
|
+
},
|
|
428
|
+
{
|
|
429
|
+
srcPath: "/_api/pricing-plans/v2/checkout",
|
|
430
|
+
destPath: "/v2/checkout"
|
|
431
431
|
}
|
|
432
432
|
],
|
|
433
433
|
"*.pub.wix-code.com": [
|
|
434
434
|
{
|
|
435
|
-
srcPath: "/_api/paid-plans/v2/
|
|
436
|
-
destPath: "/v2/
|
|
435
|
+
srcPath: "/_api/paid-plans/v2/checkout",
|
|
436
|
+
destPath: "/v2/checkout"
|
|
437
437
|
}
|
|
438
438
|
],
|
|
439
439
|
"www._base_domain_": [
|
|
440
440
|
{
|
|
441
|
-
srcPath: "/_api/paid-plans/v2/
|
|
442
|
-
destPath: "/v2/
|
|
441
|
+
srcPath: "/_api/paid-plans/v2/checkout",
|
|
442
|
+
destPath: "/v2/checkout"
|
|
443
443
|
}
|
|
444
444
|
],
|
|
445
445
|
"apps._base_domain_": [
|
|
446
446
|
{
|
|
447
|
-
srcPath: "/_api/paid-plans/v2/
|
|
448
|
-
destPath: "/v2/
|
|
447
|
+
srcPath: "/_api/paid-plans/v2/checkout",
|
|
448
|
+
destPath: "/v2/checkout"
|
|
449
449
|
},
|
|
450
450
|
{
|
|
451
|
-
srcPath: "/_api/pricing-plans/v2/
|
|
452
|
-
destPath: "/v2/
|
|
451
|
+
srcPath: "/_api/pricing-plans/v2/checkout",
|
|
452
|
+
destPath: "/v2/checkout"
|
|
453
453
|
}
|
|
454
454
|
],
|
|
455
455
|
"dev._base_domain_": [
|
|
456
456
|
{
|
|
457
|
-
srcPath: "/_api/paid-plans/v2/
|
|
458
|
-
destPath: "/v2/
|
|
457
|
+
srcPath: "/_api/paid-plans/v2/checkout",
|
|
458
|
+
destPath: "/v2/checkout"
|
|
459
459
|
},
|
|
460
460
|
{
|
|
461
|
-
srcPath: "/_api/pricing-plans/v2/
|
|
462
|
-
destPath: "/v2/
|
|
461
|
+
srcPath: "/_api/pricing-plans/v2/checkout",
|
|
462
|
+
destPath: "/v2/checkout"
|
|
463
463
|
}
|
|
464
464
|
]
|
|
465
465
|
};
|
|
466
466
|
return (0, import_rest_modules2.resolveUrl)(Object.assign(opts, { domainToMappings }));
|
|
467
467
|
}
|
|
468
468
|
var PACKAGE_NAME = "@wix/auto_sdk_pricing-plans_orders";
|
|
469
|
-
function
|
|
470
|
-
function
|
|
469
|
+
function createOnlineOrder(payload) {
|
|
470
|
+
function __createOnlineOrder({ host }) {
|
|
471
|
+
const serializedData = (0, import_transform_paths.transformPaths)(payload, [
|
|
472
|
+
{
|
|
473
|
+
transformFn: import_timestamp.transformSDKTimestampToRESTTimestamp,
|
|
474
|
+
paths: [{ path: "startDate" }]
|
|
475
|
+
}
|
|
476
|
+
]);
|
|
471
477
|
const metadata = {
|
|
472
478
|
entityFqdn: "wix.pricing_plans.v2.order",
|
|
473
|
-
method: "
|
|
474
|
-
methodFqn: "com.wixpress.membership.v2.orders.
|
|
479
|
+
method: "POST",
|
|
480
|
+
methodFqn: "com.wixpress.membership.v2.orders.CheckoutService.CreateOnlineOrder",
|
|
475
481
|
packageName: PACKAGE_NAME,
|
|
476
482
|
migrationOptions: {
|
|
477
483
|
optInTransformResponse: true
|
|
478
484
|
},
|
|
479
|
-
url:
|
|
480
|
-
protoPath: "/v2/orders/
|
|
481
|
-
data:
|
|
485
|
+
url: resolveComWixpressMembershipV2OrdersCheckoutServiceUrl({
|
|
486
|
+
protoPath: "/v2/checkout/orders/online",
|
|
487
|
+
data: serializedData,
|
|
482
488
|
host
|
|
483
489
|
}),
|
|
484
|
-
|
|
490
|
+
data: serializedData,
|
|
485
491
|
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
486
492
|
{
|
|
487
493
|
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
@@ -504,216 +510,10 @@ function managementGetOrder(payload) {
|
|
|
504
510
|
};
|
|
505
511
|
return metadata;
|
|
506
512
|
}
|
|
507
|
-
return
|
|
513
|
+
return __createOnlineOrder;
|
|
508
514
|
}
|
|
509
|
-
function
|
|
510
|
-
function
|
|
511
|
-
const serializedData = (0, import_transform_paths.transformPaths)(payload, [
|
|
512
|
-
{
|
|
513
|
-
transformFn: import_float.transformSDKFloatToRESTFloat,
|
|
514
|
-
paths: [
|
|
515
|
-
{ path: "sorting.origin.latitude" },
|
|
516
|
-
{ path: "sorting.origin.longitude" }
|
|
517
|
-
]
|
|
518
|
-
}
|
|
519
|
-
]);
|
|
520
|
-
const metadata = {
|
|
521
|
-
entityFqdn: "wix.pricing_plans.v2.order",
|
|
522
|
-
method: "GET",
|
|
523
|
-
methodFqn: "com.wixpress.membership.v2.orders.OrderManagementService.ListOrders",
|
|
524
|
-
packageName: PACKAGE_NAME,
|
|
525
|
-
migrationOptions: {
|
|
526
|
-
optInTransformResponse: true
|
|
527
|
-
},
|
|
528
|
-
url: resolveComWixpressMembershipV2OrdersOrderManagementServiceUrl({
|
|
529
|
-
protoPath: "/v2/orders",
|
|
530
|
-
data: serializedData,
|
|
531
|
-
host
|
|
532
|
-
}),
|
|
533
|
-
params: (0, import_rest_modules.toURLSearchParams)(serializedData, true),
|
|
534
|
-
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
535
|
-
{
|
|
536
|
-
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
537
|
-
paths: [
|
|
538
|
-
{ path: "orders.startDate" },
|
|
539
|
-
{ path: "orders.endDate" },
|
|
540
|
-
{ path: "orders.earliestEndDate" },
|
|
541
|
-
{ path: "orders.createdDate" },
|
|
542
|
-
{ path: "orders.updatedDate" },
|
|
543
|
-
{ path: "orders.cancellation.requestedDate" },
|
|
544
|
-
{ path: "orders.pausePeriods.pauseDate" },
|
|
545
|
-
{ path: "orders.pausePeriods.resumeDate" },
|
|
546
|
-
{ path: "orders.currentCycle.startedDate" },
|
|
547
|
-
{ path: "orders.currentCycle.endedDate" },
|
|
548
|
-
{ path: "orders.cycles.startedDate" },
|
|
549
|
-
{ path: "orders.cycles.endedDate" }
|
|
550
|
-
]
|
|
551
|
-
}
|
|
552
|
-
])
|
|
553
|
-
};
|
|
554
|
-
return metadata;
|
|
555
|
-
}
|
|
556
|
-
return __managementListOrders;
|
|
557
|
-
}
|
|
558
|
-
function postponeEndDate(payload) {
|
|
559
|
-
function __postponeEndDate({ host }) {
|
|
560
|
-
const serializedData = (0, import_transform_paths.transformPaths)(payload, [
|
|
561
|
-
{
|
|
562
|
-
transformFn: import_timestamp.transformSDKTimestampToRESTTimestamp,
|
|
563
|
-
paths: [{ path: "endDate" }]
|
|
564
|
-
}
|
|
565
|
-
]);
|
|
566
|
-
const metadata = {
|
|
567
|
-
entityFqdn: "wix.pricing_plans.v2.order",
|
|
568
|
-
method: "PATCH",
|
|
569
|
-
methodFqn: "com.wixpress.membership.v2.orders.OrderManagementService.PostponeEndDate",
|
|
570
|
-
packageName: PACKAGE_NAME,
|
|
571
|
-
migrationOptions: {
|
|
572
|
-
optInTransformResponse: true
|
|
573
|
-
},
|
|
574
|
-
url: resolveComWixpressMembershipV2OrdersOrderManagementServiceUrl({
|
|
575
|
-
protoPath: "/v2/orders/{id}",
|
|
576
|
-
data: serializedData,
|
|
577
|
-
host
|
|
578
|
-
}),
|
|
579
|
-
data: serializedData
|
|
580
|
-
};
|
|
581
|
-
return metadata;
|
|
582
|
-
}
|
|
583
|
-
return __postponeEndDate;
|
|
584
|
-
}
|
|
585
|
-
function cancelOrder(payload) {
|
|
586
|
-
function __cancelOrder({ host }) {
|
|
587
|
-
const metadata = {
|
|
588
|
-
entityFqdn: "wix.pricing_plans.v2.order",
|
|
589
|
-
method: "POST",
|
|
590
|
-
methodFqn: "com.wixpress.membership.v2.orders.OrderManagementService.CancelOrder",
|
|
591
|
-
packageName: PACKAGE_NAME,
|
|
592
|
-
migrationOptions: {
|
|
593
|
-
optInTransformResponse: true
|
|
594
|
-
},
|
|
595
|
-
url: resolveComWixpressMembershipV2OrdersOrderManagementServiceUrl({
|
|
596
|
-
protoPath: "/v2/orders/{id}/cancel",
|
|
597
|
-
data: payload,
|
|
598
|
-
host
|
|
599
|
-
}),
|
|
600
|
-
data: payload
|
|
601
|
-
};
|
|
602
|
-
return metadata;
|
|
603
|
-
}
|
|
604
|
-
return __cancelOrder;
|
|
605
|
-
}
|
|
606
|
-
function markAsPaid(payload) {
|
|
607
|
-
function __markAsPaid({ host }) {
|
|
608
|
-
const metadata = {
|
|
609
|
-
entityFqdn: "wix.pricing_plans.v2.order",
|
|
610
|
-
method: "POST",
|
|
611
|
-
methodFqn: "com.wixpress.membership.v2.orders.OrderManagementService.MarkAsPaid",
|
|
612
|
-
packageName: PACKAGE_NAME,
|
|
613
|
-
migrationOptions: {
|
|
614
|
-
optInTransformResponse: true
|
|
615
|
-
},
|
|
616
|
-
url: resolveComWixpressMembershipV2OrdersOrderManagementServiceUrl({
|
|
617
|
-
protoPath: "/v2/orders/{id}/mark-as-paid",
|
|
618
|
-
data: payload,
|
|
619
|
-
host
|
|
620
|
-
}),
|
|
621
|
-
data: payload
|
|
622
|
-
};
|
|
623
|
-
return metadata;
|
|
624
|
-
}
|
|
625
|
-
return __markAsPaid;
|
|
626
|
-
}
|
|
627
|
-
function pauseOrder(payload) {
|
|
628
|
-
function __pauseOrder({ host }) {
|
|
629
|
-
const metadata = {
|
|
630
|
-
entityFqdn: "wix.pricing_plans.v2.order",
|
|
631
|
-
method: "POST",
|
|
632
|
-
methodFqn: "com.wixpress.membership.v2.orders.OrderManagementService.PauseOrder",
|
|
633
|
-
packageName: PACKAGE_NAME,
|
|
634
|
-
migrationOptions: {
|
|
635
|
-
optInTransformResponse: true
|
|
636
|
-
},
|
|
637
|
-
url: resolveComWixpressMembershipV2OrdersOrderManagementServiceUrl({
|
|
638
|
-
protoPath: "/v2/orders/{id}/pause",
|
|
639
|
-
data: payload,
|
|
640
|
-
host
|
|
641
|
-
}),
|
|
642
|
-
data: payload
|
|
643
|
-
};
|
|
644
|
-
return metadata;
|
|
645
|
-
}
|
|
646
|
-
return __pauseOrder;
|
|
647
|
-
}
|
|
648
|
-
function resumeOrder(payload) {
|
|
649
|
-
function __resumeOrder({ host }) {
|
|
650
|
-
const metadata = {
|
|
651
|
-
entityFqdn: "wix.pricing_plans.v2.order",
|
|
652
|
-
method: "POST",
|
|
653
|
-
methodFqn: "com.wixpress.membership.v2.orders.OrderManagementService.ResumeOrder",
|
|
654
|
-
packageName: PACKAGE_NAME,
|
|
655
|
-
migrationOptions: {
|
|
656
|
-
optInTransformResponse: true
|
|
657
|
-
},
|
|
658
|
-
url: resolveComWixpressMembershipV2OrdersOrderManagementServiceUrl({
|
|
659
|
-
protoPath: "/v2/orders/{id}/resume",
|
|
660
|
-
data: payload,
|
|
661
|
-
host
|
|
662
|
-
}),
|
|
663
|
-
data: payload
|
|
664
|
-
};
|
|
665
|
-
return metadata;
|
|
666
|
-
}
|
|
667
|
-
return __resumeOrder;
|
|
668
|
-
}
|
|
669
|
-
function createOnlineOrder(payload) {
|
|
670
|
-
function __createOnlineOrder({ host }) {
|
|
671
|
-
const serializedData = (0, import_transform_paths.transformPaths)(payload, [
|
|
672
|
-
{
|
|
673
|
-
transformFn: import_timestamp.transformSDKTimestampToRESTTimestamp,
|
|
674
|
-
paths: [{ path: "startDate" }]
|
|
675
|
-
}
|
|
676
|
-
]);
|
|
677
|
-
const metadata = {
|
|
678
|
-
entityFqdn: "wix.pricing_plans.v2.order",
|
|
679
|
-
method: "POST",
|
|
680
|
-
methodFqn: "com.wixpress.membership.v2.orders.CheckoutService.CreateOnlineOrder",
|
|
681
|
-
packageName: PACKAGE_NAME,
|
|
682
|
-
migrationOptions: {
|
|
683
|
-
optInTransformResponse: true
|
|
684
|
-
},
|
|
685
|
-
url: resolveComWixpressMembershipV2OrdersCheckoutServiceUrl({
|
|
686
|
-
protoPath: "/v2/checkout/orders/online",
|
|
687
|
-
data: serializedData,
|
|
688
|
-
host
|
|
689
|
-
}),
|
|
690
|
-
data: serializedData,
|
|
691
|
-
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
692
|
-
{
|
|
693
|
-
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
694
|
-
paths: [
|
|
695
|
-
{ path: "order.startDate" },
|
|
696
|
-
{ path: "order.endDate" },
|
|
697
|
-
{ path: "order.earliestEndDate" },
|
|
698
|
-
{ path: "order.createdDate" },
|
|
699
|
-
{ path: "order.updatedDate" },
|
|
700
|
-
{ path: "order.cancellation.requestedDate" },
|
|
701
|
-
{ path: "order.pausePeriods.pauseDate" },
|
|
702
|
-
{ path: "order.pausePeriods.resumeDate" },
|
|
703
|
-
{ path: "order.currentCycle.startedDate" },
|
|
704
|
-
{ path: "order.currentCycle.endedDate" },
|
|
705
|
-
{ path: "order.cycles.startedDate" },
|
|
706
|
-
{ path: "order.cycles.endedDate" }
|
|
707
|
-
]
|
|
708
|
-
}
|
|
709
|
-
])
|
|
710
|
-
};
|
|
711
|
-
return metadata;
|
|
712
|
-
}
|
|
713
|
-
return __createOnlineOrder;
|
|
714
|
-
}
|
|
715
|
-
function createOfflineOrder(payload) {
|
|
716
|
-
function __createOfflineOrder({ host }) {
|
|
515
|
+
function createOfflineOrder(payload) {
|
|
516
|
+
function __createOfflineOrder({ host }) {
|
|
717
517
|
const serializedData = (0, import_transform_paths.transformPaths)(payload, [
|
|
718
518
|
{
|
|
719
519
|
transformFn: import_timestamp.transformSDKTimestampToRESTTimestamp,
|
|
@@ -871,18 +671,18 @@ function getPricePreview(payload) {
|
|
|
871
671
|
}
|
|
872
672
|
return __getPricePreview;
|
|
873
673
|
}
|
|
874
|
-
function
|
|
875
|
-
function
|
|
674
|
+
function managementGetOrder(payload) {
|
|
675
|
+
function __managementGetOrder({ host }) {
|
|
876
676
|
const metadata = {
|
|
877
677
|
entityFqdn: "wix.pricing_plans.v2.order",
|
|
878
678
|
method: "GET",
|
|
879
|
-
methodFqn: "com.wixpress.membership.v2.orders.
|
|
679
|
+
methodFqn: "com.wixpress.membership.v2.orders.OrderManagementService.GetOrder",
|
|
880
680
|
packageName: PACKAGE_NAME,
|
|
881
681
|
migrationOptions: {
|
|
882
682
|
optInTransformResponse: true
|
|
883
683
|
},
|
|
884
|
-
url:
|
|
885
|
-
protoPath: "/v2/
|
|
684
|
+
url: resolveComWixpressMembershipV2OrdersOrderManagementServiceUrl({
|
|
685
|
+
protoPath: "/v2/orders/{id}",
|
|
886
686
|
data: payload,
|
|
887
687
|
host
|
|
888
688
|
}),
|
|
@@ -909,10 +709,10 @@ function memberGetOrder(payload) {
|
|
|
909
709
|
};
|
|
910
710
|
return metadata;
|
|
911
711
|
}
|
|
912
|
-
return
|
|
712
|
+
return __managementGetOrder;
|
|
913
713
|
}
|
|
914
|
-
function
|
|
915
|
-
function
|
|
714
|
+
function managementListOrders(payload) {
|
|
715
|
+
function __managementListOrders({ host }) {
|
|
916
716
|
const serializedData = (0, import_transform_paths.transformPaths)(payload, [
|
|
917
717
|
{
|
|
918
718
|
transformFn: import_float.transformSDKFloatToRESTFloat,
|
|
@@ -925,13 +725,13 @@ function memberListOrders(payload) {
|
|
|
925
725
|
const metadata = {
|
|
926
726
|
entityFqdn: "wix.pricing_plans.v2.order",
|
|
927
727
|
method: "GET",
|
|
928
|
-
methodFqn: "com.wixpress.membership.v2.orders.
|
|
728
|
+
methodFqn: "com.wixpress.membership.v2.orders.OrderManagementService.ListOrders",
|
|
929
729
|
packageName: PACKAGE_NAME,
|
|
930
730
|
migrationOptions: {
|
|
931
731
|
optInTransformResponse: true
|
|
932
732
|
},
|
|
933
|
-
url:
|
|
934
|
-
protoPath: "/v2/
|
|
733
|
+
url: resolveComWixpressMembershipV2OrdersOrderManagementServiceUrl({
|
|
734
|
+
protoPath: "/v2/orders",
|
|
935
735
|
data: serializedData,
|
|
936
736
|
host
|
|
937
737
|
}),
|
|
@@ -958,35 +758,235 @@ function memberListOrders(payload) {
|
|
|
958
758
|
};
|
|
959
759
|
return metadata;
|
|
960
760
|
}
|
|
961
|
-
return
|
|
761
|
+
return __managementListOrders;
|
|
962
762
|
}
|
|
963
|
-
function
|
|
964
|
-
function
|
|
763
|
+
function postponeEndDate(payload) {
|
|
764
|
+
function __postponeEndDate({ host }) {
|
|
765
|
+
const serializedData = (0, import_transform_paths.transformPaths)(payload, [
|
|
766
|
+
{
|
|
767
|
+
transformFn: import_timestamp.transformSDKTimestampToRESTTimestamp,
|
|
768
|
+
paths: [{ path: "endDate" }]
|
|
769
|
+
}
|
|
770
|
+
]);
|
|
965
771
|
const metadata = {
|
|
966
772
|
entityFqdn: "wix.pricing_plans.v2.order",
|
|
967
|
-
method: "
|
|
968
|
-
methodFqn: "com.wixpress.membership.v2.orders.
|
|
773
|
+
method: "PATCH",
|
|
774
|
+
methodFqn: "com.wixpress.membership.v2.orders.OrderManagementService.PostponeEndDate",
|
|
969
775
|
packageName: PACKAGE_NAME,
|
|
970
776
|
migrationOptions: {
|
|
971
777
|
optInTransformResponse: true
|
|
972
778
|
},
|
|
973
|
-
url:
|
|
974
|
-
protoPath: "/v2/
|
|
975
|
-
data:
|
|
779
|
+
url: resolveComWixpressMembershipV2OrdersOrderManagementServiceUrl({
|
|
780
|
+
protoPath: "/v2/orders/{id}",
|
|
781
|
+
data: serializedData,
|
|
976
782
|
host
|
|
977
783
|
}),
|
|
978
|
-
data:
|
|
784
|
+
data: serializedData
|
|
979
785
|
};
|
|
980
786
|
return metadata;
|
|
981
787
|
}
|
|
982
|
-
return
|
|
788
|
+
return __postponeEndDate;
|
|
983
789
|
}
|
|
984
|
-
|
|
985
|
-
|
|
986
|
-
|
|
987
|
-
|
|
988
|
-
|
|
989
|
-
|
|
790
|
+
function cancelOrder(payload) {
|
|
791
|
+
function __cancelOrder({ host }) {
|
|
792
|
+
const metadata = {
|
|
793
|
+
entityFqdn: "wix.pricing_plans.v2.order",
|
|
794
|
+
method: "POST",
|
|
795
|
+
methodFqn: "com.wixpress.membership.v2.orders.OrderManagementService.CancelOrder",
|
|
796
|
+
packageName: PACKAGE_NAME,
|
|
797
|
+
migrationOptions: {
|
|
798
|
+
optInTransformResponse: true
|
|
799
|
+
},
|
|
800
|
+
url: resolveComWixpressMembershipV2OrdersOrderManagementServiceUrl({
|
|
801
|
+
protoPath: "/v2/orders/{id}/cancel",
|
|
802
|
+
data: payload,
|
|
803
|
+
host
|
|
804
|
+
}),
|
|
805
|
+
data: payload
|
|
806
|
+
};
|
|
807
|
+
return metadata;
|
|
808
|
+
}
|
|
809
|
+
return __cancelOrder;
|
|
810
|
+
}
|
|
811
|
+
function markAsPaid(payload) {
|
|
812
|
+
function __markAsPaid({ host }) {
|
|
813
|
+
const metadata = {
|
|
814
|
+
entityFqdn: "wix.pricing_plans.v2.order",
|
|
815
|
+
method: "POST",
|
|
816
|
+
methodFqn: "com.wixpress.membership.v2.orders.OrderManagementService.MarkAsPaid",
|
|
817
|
+
packageName: PACKAGE_NAME,
|
|
818
|
+
migrationOptions: {
|
|
819
|
+
optInTransformResponse: true
|
|
820
|
+
},
|
|
821
|
+
url: resolveComWixpressMembershipV2OrdersOrderManagementServiceUrl({
|
|
822
|
+
protoPath: "/v2/orders/{id}/mark-as-paid",
|
|
823
|
+
data: payload,
|
|
824
|
+
host
|
|
825
|
+
}),
|
|
826
|
+
data: payload
|
|
827
|
+
};
|
|
828
|
+
return metadata;
|
|
829
|
+
}
|
|
830
|
+
return __markAsPaid;
|
|
831
|
+
}
|
|
832
|
+
function pauseOrder(payload) {
|
|
833
|
+
function __pauseOrder({ host }) {
|
|
834
|
+
const metadata = {
|
|
835
|
+
entityFqdn: "wix.pricing_plans.v2.order",
|
|
836
|
+
method: "POST",
|
|
837
|
+
methodFqn: "com.wixpress.membership.v2.orders.OrderManagementService.PauseOrder",
|
|
838
|
+
packageName: PACKAGE_NAME,
|
|
839
|
+
migrationOptions: {
|
|
840
|
+
optInTransformResponse: true
|
|
841
|
+
},
|
|
842
|
+
url: resolveComWixpressMembershipV2OrdersOrderManagementServiceUrl({
|
|
843
|
+
protoPath: "/v2/orders/{id}/pause",
|
|
844
|
+
data: payload,
|
|
845
|
+
host
|
|
846
|
+
}),
|
|
847
|
+
data: payload
|
|
848
|
+
};
|
|
849
|
+
return metadata;
|
|
850
|
+
}
|
|
851
|
+
return __pauseOrder;
|
|
852
|
+
}
|
|
853
|
+
function resumeOrder(payload) {
|
|
854
|
+
function __resumeOrder({ host }) {
|
|
855
|
+
const metadata = {
|
|
856
|
+
entityFqdn: "wix.pricing_plans.v2.order",
|
|
857
|
+
method: "POST",
|
|
858
|
+
methodFqn: "com.wixpress.membership.v2.orders.OrderManagementService.ResumeOrder",
|
|
859
|
+
packageName: PACKAGE_NAME,
|
|
860
|
+
migrationOptions: {
|
|
861
|
+
optInTransformResponse: true
|
|
862
|
+
},
|
|
863
|
+
url: resolveComWixpressMembershipV2OrdersOrderManagementServiceUrl({
|
|
864
|
+
protoPath: "/v2/orders/{id}/resume",
|
|
865
|
+
data: payload,
|
|
866
|
+
host
|
|
867
|
+
}),
|
|
868
|
+
data: payload
|
|
869
|
+
};
|
|
870
|
+
return metadata;
|
|
871
|
+
}
|
|
872
|
+
return __resumeOrder;
|
|
873
|
+
}
|
|
874
|
+
function memberGetOrder(payload) {
|
|
875
|
+
function __memberGetOrder({ host }) {
|
|
876
|
+
const metadata = {
|
|
877
|
+
entityFqdn: "wix.pricing_plans.v2.order",
|
|
878
|
+
method: "GET",
|
|
879
|
+
methodFqn: "com.wixpress.membership.v2.orders.member.MemberOrdersService.GetOrder",
|
|
880
|
+
packageName: PACKAGE_NAME,
|
|
881
|
+
migrationOptions: {
|
|
882
|
+
optInTransformResponse: true
|
|
883
|
+
},
|
|
884
|
+
url: resolveComWixpressMembershipV2OrdersMemberMemberOrdersServiceUrl({
|
|
885
|
+
protoPath: "/v2/member/orders/{id}",
|
|
886
|
+
data: payload,
|
|
887
|
+
host
|
|
888
|
+
}),
|
|
889
|
+
params: (0, import_rest_modules.toURLSearchParams)(payload),
|
|
890
|
+
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
891
|
+
{
|
|
892
|
+
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
893
|
+
paths: [
|
|
894
|
+
{ path: "order.startDate" },
|
|
895
|
+
{ path: "order.endDate" },
|
|
896
|
+
{ path: "order.earliestEndDate" },
|
|
897
|
+
{ path: "order.createdDate" },
|
|
898
|
+
{ path: "order.updatedDate" },
|
|
899
|
+
{ path: "order.cancellation.requestedDate" },
|
|
900
|
+
{ path: "order.pausePeriods.pauseDate" },
|
|
901
|
+
{ path: "order.pausePeriods.resumeDate" },
|
|
902
|
+
{ path: "order.currentCycle.startedDate" },
|
|
903
|
+
{ path: "order.currentCycle.endedDate" },
|
|
904
|
+
{ path: "order.cycles.startedDate" },
|
|
905
|
+
{ path: "order.cycles.endedDate" }
|
|
906
|
+
]
|
|
907
|
+
}
|
|
908
|
+
])
|
|
909
|
+
};
|
|
910
|
+
return metadata;
|
|
911
|
+
}
|
|
912
|
+
return __memberGetOrder;
|
|
913
|
+
}
|
|
914
|
+
function memberListOrders(payload) {
|
|
915
|
+
function __memberListOrders({ host }) {
|
|
916
|
+
const serializedData = (0, import_transform_paths.transformPaths)(payload, [
|
|
917
|
+
{
|
|
918
|
+
transformFn: import_float.transformSDKFloatToRESTFloat,
|
|
919
|
+
paths: [
|
|
920
|
+
{ path: "sorting.origin.latitude" },
|
|
921
|
+
{ path: "sorting.origin.longitude" }
|
|
922
|
+
]
|
|
923
|
+
}
|
|
924
|
+
]);
|
|
925
|
+
const metadata = {
|
|
926
|
+
entityFqdn: "wix.pricing_plans.v2.order",
|
|
927
|
+
method: "GET",
|
|
928
|
+
methodFqn: "com.wixpress.membership.v2.orders.member.MemberOrdersService.ListOrders",
|
|
929
|
+
packageName: PACKAGE_NAME,
|
|
930
|
+
migrationOptions: {
|
|
931
|
+
optInTransformResponse: true
|
|
932
|
+
},
|
|
933
|
+
url: resolveComWixpressMembershipV2OrdersMemberMemberOrdersServiceUrl({
|
|
934
|
+
protoPath: "/v2/member/orders",
|
|
935
|
+
data: serializedData,
|
|
936
|
+
host
|
|
937
|
+
}),
|
|
938
|
+
params: (0, import_rest_modules.toURLSearchParams)(serializedData, true),
|
|
939
|
+
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
940
|
+
{
|
|
941
|
+
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
942
|
+
paths: [
|
|
943
|
+
{ path: "orders.startDate" },
|
|
944
|
+
{ path: "orders.endDate" },
|
|
945
|
+
{ path: "orders.earliestEndDate" },
|
|
946
|
+
{ path: "orders.createdDate" },
|
|
947
|
+
{ path: "orders.updatedDate" },
|
|
948
|
+
{ path: "orders.cancellation.requestedDate" },
|
|
949
|
+
{ path: "orders.pausePeriods.pauseDate" },
|
|
950
|
+
{ path: "orders.pausePeriods.resumeDate" },
|
|
951
|
+
{ path: "orders.currentCycle.startedDate" },
|
|
952
|
+
{ path: "orders.currentCycle.endedDate" },
|
|
953
|
+
{ path: "orders.cycles.startedDate" },
|
|
954
|
+
{ path: "orders.cycles.endedDate" }
|
|
955
|
+
]
|
|
956
|
+
}
|
|
957
|
+
])
|
|
958
|
+
};
|
|
959
|
+
return metadata;
|
|
960
|
+
}
|
|
961
|
+
return __memberListOrders;
|
|
962
|
+
}
|
|
963
|
+
function requestCancellation(payload) {
|
|
964
|
+
function __requestCancellation({ host }) {
|
|
965
|
+
const metadata = {
|
|
966
|
+
entityFqdn: "wix.pricing_plans.v2.order",
|
|
967
|
+
method: "POST",
|
|
968
|
+
methodFqn: "com.wixpress.membership.v2.orders.member.MemberOrdersService.RequestCancellation",
|
|
969
|
+
packageName: PACKAGE_NAME,
|
|
970
|
+
migrationOptions: {
|
|
971
|
+
optInTransformResponse: true
|
|
972
|
+
},
|
|
973
|
+
url: resolveComWixpressMembershipV2OrdersMemberMemberOrdersServiceUrl({
|
|
974
|
+
protoPath: "/v2/member/orders/{id}/cancel",
|
|
975
|
+
data: payload,
|
|
976
|
+
host
|
|
977
|
+
}),
|
|
978
|
+
data: payload
|
|
979
|
+
};
|
|
980
|
+
return metadata;
|
|
981
|
+
}
|
|
982
|
+
return __requestCancellation;
|
|
983
|
+
}
|
|
984
|
+
|
|
985
|
+
// src/pricing-plans-v2-order-orders.universal.ts
|
|
986
|
+
var PeriodUnit = /* @__PURE__ */ ((PeriodUnit2) => {
|
|
987
|
+
PeriodUnit2["UNDEFINED"] = "UNDEFINED";
|
|
988
|
+
PeriodUnit2["DAY"] = "DAY";
|
|
989
|
+
PeriodUnit2["WEEK"] = "WEEK";
|
|
990
990
|
PeriodUnit2["MONTH"] = "MONTH";
|
|
991
991
|
PeriodUnit2["YEAR"] = "YEAR";
|
|
992
992
|
return PeriodUnit2;
|
|
@@ -1045,6 +1045,14 @@ var Status = /* @__PURE__ */ ((Status2) => {
|
|
|
1045
1045
|
Status2["ENDED"] = "ENDED";
|
|
1046
1046
|
return Status2;
|
|
1047
1047
|
})(Status || {});
|
|
1048
|
+
var WebhookIdentityType = /* @__PURE__ */ ((WebhookIdentityType2) => {
|
|
1049
|
+
WebhookIdentityType2["UNKNOWN"] = "UNKNOWN";
|
|
1050
|
+
WebhookIdentityType2["ANONYMOUS_VISITOR"] = "ANONYMOUS_VISITOR";
|
|
1051
|
+
WebhookIdentityType2["MEMBER"] = "MEMBER";
|
|
1052
|
+
WebhookIdentityType2["WIX_USER"] = "WIX_USER";
|
|
1053
|
+
WebhookIdentityType2["APP"] = "APP";
|
|
1054
|
+
return WebhookIdentityType2;
|
|
1055
|
+
})(WebhookIdentityType || {});
|
|
1048
1056
|
var Set = /* @__PURE__ */ ((Set2) => {
|
|
1049
1057
|
Set2["UNKNOWN_SET"] = "UNKNOWN_SET";
|
|
1050
1058
|
Set2["BASIC"] = "BASIC";
|
|
@@ -1067,21 +1075,16 @@ var ReasonNotSuspendable = /* @__PURE__ */ ((ReasonNotSuspendable2) => {
|
|
|
1067
1075
|
ReasonNotSuspendable2["OLD_STRIPE"] = "OLD_STRIPE";
|
|
1068
1076
|
return ReasonNotSuspendable2;
|
|
1069
1077
|
})(ReasonNotSuspendable || {});
|
|
1070
|
-
|
|
1071
|
-
WebhookIdentityType2["UNKNOWN"] = "UNKNOWN";
|
|
1072
|
-
WebhookIdentityType2["ANONYMOUS_VISITOR"] = "ANONYMOUS_VISITOR";
|
|
1073
|
-
WebhookIdentityType2["MEMBER"] = "MEMBER";
|
|
1074
|
-
WebhookIdentityType2["WIX_USER"] = "WIX_USER";
|
|
1075
|
-
WebhookIdentityType2["APP"] = "APP";
|
|
1076
|
-
return WebhookIdentityType2;
|
|
1077
|
-
})(WebhookIdentityType || {});
|
|
1078
|
-
async function managementGetOrder2(_id, options) {
|
|
1078
|
+
async function createOnlineOrder2(planId, options) {
|
|
1079
1079
|
const { httpClient, sideEffects } = arguments[2];
|
|
1080
1080
|
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
1081
|
-
|
|
1082
|
-
|
|
1081
|
+
planId,
|
|
1082
|
+
startDate: options?.startDate,
|
|
1083
|
+
couponCode: options?.couponCode,
|
|
1084
|
+
onBehalf: options?.onBehalf,
|
|
1085
|
+
submissionId: options?.submissionId
|
|
1083
1086
|
});
|
|
1084
|
-
const reqOpts =
|
|
1087
|
+
const reqOpts = createOnlineOrder(payload);
|
|
1085
1088
|
sideEffects?.onSiteCall?.();
|
|
1086
1089
|
try {
|
|
1087
1090
|
const result = await httpClient.request(reqOpts);
|
|
@@ -1092,29 +1095,32 @@ async function managementGetOrder2(_id, options) {
|
|
|
1092
1095
|
err,
|
|
1093
1096
|
{
|
|
1094
1097
|
spreadPathsToArguments: {},
|
|
1095
|
-
explicitPathsToArguments: {
|
|
1098
|
+
explicitPathsToArguments: {
|
|
1099
|
+
planId: "$[0]",
|
|
1100
|
+
startDate: "$[1].startDate",
|
|
1101
|
+
couponCode: "$[1].couponCode",
|
|
1102
|
+
onBehalf: "$[1].onBehalf",
|
|
1103
|
+
submissionId: "$[1].submissionId"
|
|
1104
|
+
},
|
|
1096
1105
|
singleArgumentUnchanged: false
|
|
1097
1106
|
},
|
|
1098
|
-
["
|
|
1107
|
+
["planId", "options"]
|
|
1099
1108
|
);
|
|
1100
1109
|
sideEffects?.onError?.(err);
|
|
1101
1110
|
throw transformedError;
|
|
1102
1111
|
}
|
|
1103
1112
|
}
|
|
1104
|
-
async function
|
|
1105
|
-
const { httpClient, sideEffects } = arguments[
|
|
1113
|
+
async function createOfflineOrder2(planId, memberId, options) {
|
|
1114
|
+
const { httpClient, sideEffects } = arguments[3];
|
|
1106
1115
|
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
1107
|
-
|
|
1108
|
-
|
|
1109
|
-
|
|
1110
|
-
|
|
1111
|
-
|
|
1112
|
-
|
|
1113
|
-
offset: options?.offset,
|
|
1114
|
-
sorting: options?.sorting,
|
|
1115
|
-
fieldSet: options?.fieldSet
|
|
1116
|
+
planId,
|
|
1117
|
+
memberId,
|
|
1118
|
+
startDate: options?.startDate,
|
|
1119
|
+
paid: options?.paid,
|
|
1120
|
+
couponCode: options?.couponCode,
|
|
1121
|
+
submissionId: options?.submissionId
|
|
1116
1122
|
});
|
|
1117
|
-
const reqOpts =
|
|
1123
|
+
const reqOpts = createOfflineOrder(payload);
|
|
1118
1124
|
sideEffects?.onSiteCall?.();
|
|
1119
1125
|
try {
|
|
1120
1126
|
const result = await httpClient.request(reqOpts);
|
|
@@ -1126,300 +1132,294 @@ async function managementListOrders2(options) {
|
|
|
1126
1132
|
{
|
|
1127
1133
|
spreadPathsToArguments: {},
|
|
1128
1134
|
explicitPathsToArguments: {
|
|
1129
|
-
|
|
1130
|
-
|
|
1131
|
-
|
|
1132
|
-
|
|
1133
|
-
|
|
1134
|
-
|
|
1135
|
-
offset: "$[0].offset",
|
|
1136
|
-
sorting: "$[0].sorting",
|
|
1137
|
-
fieldSet: "$[0].fieldSet"
|
|
1135
|
+
planId: "$[0]",
|
|
1136
|
+
memberId: "$[1]",
|
|
1137
|
+
startDate: "$[2].startDate",
|
|
1138
|
+
paid: "$[2].paid",
|
|
1139
|
+
couponCode: "$[2].couponCode",
|
|
1140
|
+
submissionId: "$[2].submissionId"
|
|
1138
1141
|
},
|
|
1139
1142
|
singleArgumentUnchanged: false
|
|
1140
1143
|
},
|
|
1141
|
-
["options"]
|
|
1144
|
+
["planId", "memberId", "options"]
|
|
1142
1145
|
);
|
|
1143
1146
|
sideEffects?.onError?.(err);
|
|
1144
1147
|
throw transformedError;
|
|
1145
1148
|
}
|
|
1146
1149
|
}
|
|
1147
|
-
async function
|
|
1150
|
+
async function getOnlineOrderPreview2(planId, options) {
|
|
1148
1151
|
const { httpClient, sideEffects } = arguments[2];
|
|
1149
1152
|
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
1150
|
-
|
|
1151
|
-
|
|
1153
|
+
planId,
|
|
1154
|
+
startDate: options?.startDate,
|
|
1155
|
+
couponCode: options?.couponCode
|
|
1152
1156
|
});
|
|
1153
|
-
const reqOpts =
|
|
1157
|
+
const reqOpts = getOnlineOrderPreview(payload);
|
|
1154
1158
|
sideEffects?.onSiteCall?.();
|
|
1155
1159
|
try {
|
|
1156
1160
|
const result = await httpClient.request(reqOpts);
|
|
1157
1161
|
sideEffects?.onSuccess?.(result);
|
|
1162
|
+
return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data);
|
|
1158
1163
|
} catch (err) {
|
|
1159
1164
|
const transformedError = (0, import_transform_error.transformError)(
|
|
1160
1165
|
err,
|
|
1161
1166
|
{
|
|
1162
1167
|
spreadPathsToArguments: {},
|
|
1163
|
-
explicitPathsToArguments: {
|
|
1168
|
+
explicitPathsToArguments: {
|
|
1169
|
+
planId: "$[0]",
|
|
1170
|
+
startDate: "$[1].startDate",
|
|
1171
|
+
couponCode: "$[1].couponCode"
|
|
1172
|
+
},
|
|
1164
1173
|
singleArgumentUnchanged: false
|
|
1165
1174
|
},
|
|
1166
|
-
["
|
|
1175
|
+
["planId", "options"]
|
|
1167
1176
|
);
|
|
1168
1177
|
sideEffects?.onError?.(err);
|
|
1169
1178
|
throw transformedError;
|
|
1170
1179
|
}
|
|
1171
1180
|
}
|
|
1172
|
-
async function
|
|
1173
|
-
const { httpClient, sideEffects } = arguments[
|
|
1181
|
+
async function getOfflineOrderPreview2(planId, memberId, options) {
|
|
1182
|
+
const { httpClient, sideEffects } = arguments[3];
|
|
1174
1183
|
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
1175
|
-
|
|
1176
|
-
|
|
1184
|
+
planId,
|
|
1185
|
+
memberId,
|
|
1186
|
+
startDate: options?.startDate,
|
|
1187
|
+
couponCode: options?.couponCode
|
|
1177
1188
|
});
|
|
1178
|
-
const reqOpts =
|
|
1189
|
+
const reqOpts = getOfflineOrderPreview(payload);
|
|
1179
1190
|
sideEffects?.onSiteCall?.();
|
|
1180
1191
|
try {
|
|
1181
1192
|
const result = await httpClient.request(reqOpts);
|
|
1182
1193
|
sideEffects?.onSuccess?.(result);
|
|
1194
|
+
return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data);
|
|
1183
1195
|
} catch (err) {
|
|
1184
1196
|
const transformedError = (0, import_transform_error.transformError)(
|
|
1185
1197
|
err,
|
|
1186
1198
|
{
|
|
1187
1199
|
spreadPathsToArguments: {},
|
|
1188
|
-
explicitPathsToArguments: {
|
|
1200
|
+
explicitPathsToArguments: {
|
|
1201
|
+
planId: "$[0]",
|
|
1202
|
+
memberId: "$[1]",
|
|
1203
|
+
startDate: "$[2].startDate",
|
|
1204
|
+
couponCode: "$[2].couponCode"
|
|
1205
|
+
},
|
|
1189
1206
|
singleArgumentUnchanged: false
|
|
1190
1207
|
},
|
|
1191
|
-
["
|
|
1208
|
+
["planId", "memberId", "options"]
|
|
1192
1209
|
);
|
|
1193
1210
|
sideEffects?.onError?.(err);
|
|
1194
1211
|
throw transformedError;
|
|
1195
1212
|
}
|
|
1196
1213
|
}
|
|
1197
|
-
async function
|
|
1198
|
-
const { httpClient, sideEffects } = arguments[
|
|
1199
|
-
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
1200
|
-
|
|
1214
|
+
async function getPricePreview2(planId, options) {
|
|
1215
|
+
const { httpClient, sideEffects } = arguments[2];
|
|
1216
|
+
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
1217
|
+
planId,
|
|
1218
|
+
couponCode: options?.couponCode
|
|
1219
|
+
});
|
|
1220
|
+
const reqOpts = getPricePreview(payload);
|
|
1201
1221
|
sideEffects?.onSiteCall?.();
|
|
1202
1222
|
try {
|
|
1203
1223
|
const result = await httpClient.request(reqOpts);
|
|
1204
1224
|
sideEffects?.onSuccess?.(result);
|
|
1225
|
+
return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data);
|
|
1205
1226
|
} catch (err) {
|
|
1206
1227
|
const transformedError = (0, import_transform_error.transformError)(
|
|
1207
1228
|
err,
|
|
1208
1229
|
{
|
|
1209
1230
|
spreadPathsToArguments: {},
|
|
1210
|
-
explicitPathsToArguments: {
|
|
1231
|
+
explicitPathsToArguments: {
|
|
1232
|
+
planId: "$[0]",
|
|
1233
|
+
couponCode: "$[1].couponCode"
|
|
1234
|
+
},
|
|
1211
1235
|
singleArgumentUnchanged: false
|
|
1212
1236
|
},
|
|
1213
|
-
["
|
|
1237
|
+
["planId", "options"]
|
|
1214
1238
|
);
|
|
1215
1239
|
sideEffects?.onError?.(err);
|
|
1216
1240
|
throw transformedError;
|
|
1217
1241
|
}
|
|
1218
1242
|
}
|
|
1219
|
-
async function
|
|
1220
|
-
const { httpClient, sideEffects } = arguments[
|
|
1221
|
-
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
1222
|
-
|
|
1243
|
+
async function managementGetOrder2(_id, options) {
|
|
1244
|
+
const { httpClient, sideEffects } = arguments[2];
|
|
1245
|
+
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
1246
|
+
id: _id,
|
|
1247
|
+
fieldSet: options?.fieldSet
|
|
1248
|
+
});
|
|
1249
|
+
const reqOpts = managementGetOrder(payload);
|
|
1223
1250
|
sideEffects?.onSiteCall?.();
|
|
1224
1251
|
try {
|
|
1225
1252
|
const result = await httpClient.request(reqOpts);
|
|
1226
1253
|
sideEffects?.onSuccess?.(result);
|
|
1254
|
+
return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data);
|
|
1227
1255
|
} catch (err) {
|
|
1228
1256
|
const transformedError = (0, import_transform_error.transformError)(
|
|
1229
1257
|
err,
|
|
1230
1258
|
{
|
|
1231
1259
|
spreadPathsToArguments: {},
|
|
1232
|
-
explicitPathsToArguments: { id: "$[0]" },
|
|
1260
|
+
explicitPathsToArguments: { id: "$[0]", fieldSet: "$[1].fieldSet" },
|
|
1233
1261
|
singleArgumentUnchanged: false
|
|
1234
1262
|
},
|
|
1235
|
-
["_id"]
|
|
1263
|
+
["_id", "options"]
|
|
1236
1264
|
);
|
|
1237
1265
|
sideEffects?.onError?.(err);
|
|
1238
1266
|
throw transformedError;
|
|
1239
1267
|
}
|
|
1240
1268
|
}
|
|
1241
|
-
async function
|
|
1269
|
+
async function managementListOrders2(options) {
|
|
1242
1270
|
const { httpClient, sideEffects } = arguments[1];
|
|
1243
|
-
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
1244
|
-
|
|
1271
|
+
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
1272
|
+
buyerIds: options?.buyerIds,
|
|
1273
|
+
planIds: options?.planIds,
|
|
1274
|
+
autoRenewCanceled: options?.autoRenewCanceled,
|
|
1275
|
+
orderStatuses: options?.orderStatuses,
|
|
1276
|
+
paymentStatuses: options?.paymentStatuses,
|
|
1277
|
+
limit: options?.limit,
|
|
1278
|
+
offset: options?.offset,
|
|
1279
|
+
sorting: options?.sorting,
|
|
1280
|
+
fieldSet: options?.fieldSet
|
|
1281
|
+
});
|
|
1282
|
+
const reqOpts = managementListOrders(payload);
|
|
1245
1283
|
sideEffects?.onSiteCall?.();
|
|
1246
1284
|
try {
|
|
1247
1285
|
const result = await httpClient.request(reqOpts);
|
|
1248
1286
|
sideEffects?.onSuccess?.(result);
|
|
1287
|
+
return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data);
|
|
1249
1288
|
} catch (err) {
|
|
1250
1289
|
const transformedError = (0, import_transform_error.transformError)(
|
|
1251
1290
|
err,
|
|
1252
1291
|
{
|
|
1253
1292
|
spreadPathsToArguments: {},
|
|
1254
|
-
explicitPathsToArguments: {
|
|
1293
|
+
explicitPathsToArguments: {
|
|
1294
|
+
buyerIds: "$[0].buyerIds",
|
|
1295
|
+
planIds: "$[0].planIds",
|
|
1296
|
+
autoRenewCanceled: "$[0].autoRenewCanceled",
|
|
1297
|
+
orderStatuses: "$[0].orderStatuses",
|
|
1298
|
+
paymentStatuses: "$[0].paymentStatuses",
|
|
1299
|
+
limit: "$[0].limit",
|
|
1300
|
+
offset: "$[0].offset",
|
|
1301
|
+
sorting: "$[0].sorting",
|
|
1302
|
+
fieldSet: "$[0].fieldSet"
|
|
1303
|
+
},
|
|
1255
1304
|
singleArgumentUnchanged: false
|
|
1256
1305
|
},
|
|
1257
|
-
["
|
|
1306
|
+
["options"]
|
|
1258
1307
|
);
|
|
1259
1308
|
sideEffects?.onError?.(err);
|
|
1260
1309
|
throw transformedError;
|
|
1261
1310
|
}
|
|
1262
1311
|
}
|
|
1263
|
-
async function
|
|
1312
|
+
async function postponeEndDate2(_id, endDate) {
|
|
1264
1313
|
const { httpClient, sideEffects } = arguments[2];
|
|
1265
1314
|
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
1266
|
-
|
|
1267
|
-
|
|
1268
|
-
couponCode: options?.couponCode,
|
|
1269
|
-
onBehalf: options?.onBehalf,
|
|
1270
|
-
submissionId: options?.submissionId
|
|
1315
|
+
id: _id,
|
|
1316
|
+
endDate
|
|
1271
1317
|
});
|
|
1272
|
-
const reqOpts =
|
|
1318
|
+
const reqOpts = postponeEndDate(payload);
|
|
1273
1319
|
sideEffects?.onSiteCall?.();
|
|
1274
1320
|
try {
|
|
1275
1321
|
const result = await httpClient.request(reqOpts);
|
|
1276
1322
|
sideEffects?.onSuccess?.(result);
|
|
1277
|
-
return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data);
|
|
1278
1323
|
} catch (err) {
|
|
1279
1324
|
const transformedError = (0, import_transform_error.transformError)(
|
|
1280
1325
|
err,
|
|
1281
1326
|
{
|
|
1282
1327
|
spreadPathsToArguments: {},
|
|
1283
|
-
explicitPathsToArguments: {
|
|
1284
|
-
planId: "$[0]",
|
|
1285
|
-
startDate: "$[1].startDate",
|
|
1286
|
-
couponCode: "$[1].couponCode",
|
|
1287
|
-
onBehalf: "$[1].onBehalf",
|
|
1288
|
-
submissionId: "$[1].submissionId"
|
|
1289
|
-
},
|
|
1328
|
+
explicitPathsToArguments: { id: "$[0]", endDate: "$[1]" },
|
|
1290
1329
|
singleArgumentUnchanged: false
|
|
1291
1330
|
},
|
|
1292
|
-
["
|
|
1331
|
+
["_id", "endDate"]
|
|
1293
1332
|
);
|
|
1294
1333
|
sideEffects?.onError?.(err);
|
|
1295
1334
|
throw transformedError;
|
|
1296
1335
|
}
|
|
1297
1336
|
}
|
|
1298
|
-
async function
|
|
1299
|
-
const { httpClient, sideEffects } = arguments[
|
|
1337
|
+
async function cancelOrder2(_id, effectiveAt) {
|
|
1338
|
+
const { httpClient, sideEffects } = arguments[2];
|
|
1300
1339
|
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
1301
|
-
|
|
1302
|
-
|
|
1303
|
-
startDate: options?.startDate,
|
|
1304
|
-
paid: options?.paid,
|
|
1305
|
-
couponCode: options?.couponCode,
|
|
1306
|
-
submissionId: options?.submissionId
|
|
1340
|
+
id: _id,
|
|
1341
|
+
effectiveAt
|
|
1307
1342
|
});
|
|
1308
|
-
const reqOpts =
|
|
1343
|
+
const reqOpts = cancelOrder(payload);
|
|
1309
1344
|
sideEffects?.onSiteCall?.();
|
|
1310
1345
|
try {
|
|
1311
1346
|
const result = await httpClient.request(reqOpts);
|
|
1312
1347
|
sideEffects?.onSuccess?.(result);
|
|
1313
|
-
return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data);
|
|
1314
1348
|
} catch (err) {
|
|
1315
1349
|
const transformedError = (0, import_transform_error.transformError)(
|
|
1316
1350
|
err,
|
|
1317
1351
|
{
|
|
1318
1352
|
spreadPathsToArguments: {},
|
|
1319
|
-
explicitPathsToArguments: {
|
|
1320
|
-
planId: "$[0]",
|
|
1321
|
-
memberId: "$[1]",
|
|
1322
|
-
startDate: "$[2].startDate",
|
|
1323
|
-
paid: "$[2].paid",
|
|
1324
|
-
couponCode: "$[2].couponCode",
|
|
1325
|
-
submissionId: "$[2].submissionId"
|
|
1326
|
-
},
|
|
1353
|
+
explicitPathsToArguments: { id: "$[0]", effectiveAt: "$[1]" },
|
|
1327
1354
|
singleArgumentUnchanged: false
|
|
1328
1355
|
},
|
|
1329
|
-
["
|
|
1356
|
+
["_id", "effectiveAt"]
|
|
1330
1357
|
);
|
|
1331
1358
|
sideEffects?.onError?.(err);
|
|
1332
1359
|
throw transformedError;
|
|
1333
1360
|
}
|
|
1334
1361
|
}
|
|
1335
|
-
async function
|
|
1336
|
-
const { httpClient, sideEffects } = arguments[
|
|
1337
|
-
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
1338
|
-
|
|
1339
|
-
startDate: options?.startDate,
|
|
1340
|
-
couponCode: options?.couponCode
|
|
1341
|
-
});
|
|
1342
|
-
const reqOpts = getOnlineOrderPreview(payload);
|
|
1362
|
+
async function markAsPaid2(_id) {
|
|
1363
|
+
const { httpClient, sideEffects } = arguments[1];
|
|
1364
|
+
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({ id: _id });
|
|
1365
|
+
const reqOpts = markAsPaid(payload);
|
|
1343
1366
|
sideEffects?.onSiteCall?.();
|
|
1344
1367
|
try {
|
|
1345
1368
|
const result = await httpClient.request(reqOpts);
|
|
1346
1369
|
sideEffects?.onSuccess?.(result);
|
|
1347
|
-
return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data);
|
|
1348
1370
|
} catch (err) {
|
|
1349
1371
|
const transformedError = (0, import_transform_error.transformError)(
|
|
1350
1372
|
err,
|
|
1351
1373
|
{
|
|
1352
1374
|
spreadPathsToArguments: {},
|
|
1353
|
-
explicitPathsToArguments: {
|
|
1354
|
-
planId: "$[0]",
|
|
1355
|
-
startDate: "$[1].startDate",
|
|
1356
|
-
couponCode: "$[1].couponCode"
|
|
1357
|
-
},
|
|
1375
|
+
explicitPathsToArguments: { id: "$[0]" },
|
|
1358
1376
|
singleArgumentUnchanged: false
|
|
1359
1377
|
},
|
|
1360
|
-
["
|
|
1378
|
+
["_id"]
|
|
1361
1379
|
);
|
|
1362
1380
|
sideEffects?.onError?.(err);
|
|
1363
1381
|
throw transformedError;
|
|
1364
1382
|
}
|
|
1365
1383
|
}
|
|
1366
|
-
async function
|
|
1367
|
-
const { httpClient, sideEffects } = arguments[
|
|
1368
|
-
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
1369
|
-
|
|
1370
|
-
memberId,
|
|
1371
|
-
startDate: options?.startDate,
|
|
1372
|
-
couponCode: options?.couponCode
|
|
1373
|
-
});
|
|
1374
|
-
const reqOpts = getOfflineOrderPreview(payload);
|
|
1384
|
+
async function pauseOrder2(_id) {
|
|
1385
|
+
const { httpClient, sideEffects } = arguments[1];
|
|
1386
|
+
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({ id: _id });
|
|
1387
|
+
const reqOpts = pauseOrder(payload);
|
|
1375
1388
|
sideEffects?.onSiteCall?.();
|
|
1376
1389
|
try {
|
|
1377
1390
|
const result = await httpClient.request(reqOpts);
|
|
1378
1391
|
sideEffects?.onSuccess?.(result);
|
|
1379
|
-
return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data);
|
|
1380
1392
|
} catch (err) {
|
|
1381
1393
|
const transformedError = (0, import_transform_error.transformError)(
|
|
1382
1394
|
err,
|
|
1383
1395
|
{
|
|
1384
1396
|
spreadPathsToArguments: {},
|
|
1385
|
-
explicitPathsToArguments: {
|
|
1386
|
-
planId: "$[0]",
|
|
1387
|
-
memberId: "$[1]",
|
|
1388
|
-
startDate: "$[2].startDate",
|
|
1389
|
-
couponCode: "$[2].couponCode"
|
|
1390
|
-
},
|
|
1397
|
+
explicitPathsToArguments: { id: "$[0]" },
|
|
1391
1398
|
singleArgumentUnchanged: false
|
|
1392
1399
|
},
|
|
1393
|
-
["
|
|
1400
|
+
["_id"]
|
|
1394
1401
|
);
|
|
1395
1402
|
sideEffects?.onError?.(err);
|
|
1396
1403
|
throw transformedError;
|
|
1397
1404
|
}
|
|
1398
1405
|
}
|
|
1399
|
-
async function
|
|
1400
|
-
const { httpClient, sideEffects } = arguments[
|
|
1401
|
-
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
1402
|
-
|
|
1403
|
-
couponCode: options?.couponCode
|
|
1404
|
-
});
|
|
1405
|
-
const reqOpts = getPricePreview(payload);
|
|
1406
|
+
async function resumeOrder2(_id) {
|
|
1407
|
+
const { httpClient, sideEffects } = arguments[1];
|
|
1408
|
+
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({ id: _id });
|
|
1409
|
+
const reqOpts = resumeOrder(payload);
|
|
1406
1410
|
sideEffects?.onSiteCall?.();
|
|
1407
1411
|
try {
|
|
1408
1412
|
const result = await httpClient.request(reqOpts);
|
|
1409
1413
|
sideEffects?.onSuccess?.(result);
|
|
1410
|
-
return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data);
|
|
1411
1414
|
} catch (err) {
|
|
1412
1415
|
const transformedError = (0, import_transform_error.transformError)(
|
|
1413
1416
|
err,
|
|
1414
1417
|
{
|
|
1415
|
-
spreadPathsToArguments: {},
|
|
1416
|
-
explicitPathsToArguments: {
|
|
1417
|
-
planId: "$[0]",
|
|
1418
|
-
couponCode: "$[1].couponCode"
|
|
1419
|
-
},
|
|
1418
|
+
spreadPathsToArguments: {},
|
|
1419
|
+
explicitPathsToArguments: { id: "$[0]" },
|
|
1420
1420
|
singleArgumentUnchanged: false
|
|
1421
1421
|
},
|
|
1422
|
-
["
|
|
1422
|
+
["_id"]
|
|
1423
1423
|
);
|
|
1424
1424
|
sideEffects?.onError?.(err);
|
|
1425
1425
|
throw transformedError;
|
|
@@ -1519,6 +1519,48 @@ async function requestCancellation2(_id, effectiveAt) {
|
|
|
1519
1519
|
}
|
|
1520
1520
|
|
|
1521
1521
|
// src/pricing-plans-v2-order-orders.public.ts
|
|
1522
|
+
function createOnlineOrder3(httpClient) {
|
|
1523
|
+
return (planId, options) => createOnlineOrder2(
|
|
1524
|
+
planId,
|
|
1525
|
+
options,
|
|
1526
|
+
// @ts-ignore
|
|
1527
|
+
{ httpClient }
|
|
1528
|
+
);
|
|
1529
|
+
}
|
|
1530
|
+
function createOfflineOrder3(httpClient) {
|
|
1531
|
+
return (planId, memberId, options) => createOfflineOrder2(
|
|
1532
|
+
planId,
|
|
1533
|
+
memberId,
|
|
1534
|
+
options,
|
|
1535
|
+
// @ts-ignore
|
|
1536
|
+
{ httpClient }
|
|
1537
|
+
);
|
|
1538
|
+
}
|
|
1539
|
+
function getOnlineOrderPreview3(httpClient) {
|
|
1540
|
+
return (planId, options) => getOnlineOrderPreview2(
|
|
1541
|
+
planId,
|
|
1542
|
+
options,
|
|
1543
|
+
// @ts-ignore
|
|
1544
|
+
{ httpClient }
|
|
1545
|
+
);
|
|
1546
|
+
}
|
|
1547
|
+
function getOfflineOrderPreview3(httpClient) {
|
|
1548
|
+
return (planId, memberId, options) => getOfflineOrderPreview2(
|
|
1549
|
+
planId,
|
|
1550
|
+
memberId,
|
|
1551
|
+
options,
|
|
1552
|
+
// @ts-ignore
|
|
1553
|
+
{ httpClient }
|
|
1554
|
+
);
|
|
1555
|
+
}
|
|
1556
|
+
function getPricePreview3(httpClient) {
|
|
1557
|
+
return (planId, options) => getPricePreview2(
|
|
1558
|
+
planId,
|
|
1559
|
+
options,
|
|
1560
|
+
// @ts-ignore
|
|
1561
|
+
{ httpClient }
|
|
1562
|
+
);
|
|
1563
|
+
}
|
|
1522
1564
|
function managementGetOrder3(httpClient) {
|
|
1523
1565
|
return (_id, options) => managementGetOrder2(
|
|
1524
1566
|
_id,
|
|
@@ -1571,48 +1613,6 @@ function resumeOrder3(httpClient) {
|
|
|
1571
1613
|
{ httpClient }
|
|
1572
1614
|
);
|
|
1573
1615
|
}
|
|
1574
|
-
function createOnlineOrder3(httpClient) {
|
|
1575
|
-
return (planId, options) => createOnlineOrder2(
|
|
1576
|
-
planId,
|
|
1577
|
-
options,
|
|
1578
|
-
// @ts-ignore
|
|
1579
|
-
{ httpClient }
|
|
1580
|
-
);
|
|
1581
|
-
}
|
|
1582
|
-
function createOfflineOrder3(httpClient) {
|
|
1583
|
-
return (planId, memberId, options) => createOfflineOrder2(
|
|
1584
|
-
planId,
|
|
1585
|
-
memberId,
|
|
1586
|
-
options,
|
|
1587
|
-
// @ts-ignore
|
|
1588
|
-
{ httpClient }
|
|
1589
|
-
);
|
|
1590
|
-
}
|
|
1591
|
-
function getOnlineOrderPreview3(httpClient) {
|
|
1592
|
-
return (planId, options) => getOnlineOrderPreview2(
|
|
1593
|
-
planId,
|
|
1594
|
-
options,
|
|
1595
|
-
// @ts-ignore
|
|
1596
|
-
{ httpClient }
|
|
1597
|
-
);
|
|
1598
|
-
}
|
|
1599
|
-
function getOfflineOrderPreview3(httpClient) {
|
|
1600
|
-
return (planId, memberId, options) => getOfflineOrderPreview2(
|
|
1601
|
-
planId,
|
|
1602
|
-
memberId,
|
|
1603
|
-
options,
|
|
1604
|
-
// @ts-ignore
|
|
1605
|
-
{ httpClient }
|
|
1606
|
-
);
|
|
1607
|
-
}
|
|
1608
|
-
function getPricePreview3(httpClient) {
|
|
1609
|
-
return (planId, options) => getPricePreview2(
|
|
1610
|
-
planId,
|
|
1611
|
-
options,
|
|
1612
|
-
// @ts-ignore
|
|
1613
|
-
{ httpClient }
|
|
1614
|
-
);
|
|
1615
|
-
}
|
|
1616
1616
|
function memberGetOrder3(httpClient) {
|
|
1617
1617
|
return (_id, options) => memberGetOrder2(
|
|
1618
1618
|
_id,
|
|
@@ -1636,34 +1636,34 @@ function requestCancellation3(httpClient) {
|
|
|
1636
1636
|
{ httpClient }
|
|
1637
1637
|
);
|
|
1638
1638
|
}
|
|
1639
|
-
var
|
|
1640
|
-
"wix.pricing_plans.v2.
|
|
1639
|
+
var onOrderCreated = /* @__PURE__ */ (0, import_sdk_types.EventDefinition)(
|
|
1640
|
+
"wix.pricing_plans.v2.order_created",
|
|
1641
1641
|
true,
|
|
1642
1642
|
(event) => (0, import_rename_all_nested_keys2.renameKeysFromRESTResponseToSDKResponse)(
|
|
1643
1643
|
(0, import_transform_paths2.transformPaths)(event, [
|
|
1644
1644
|
{
|
|
1645
1645
|
transformFn: import_timestamp3.transformRESTTimestampToSDKTimestamp,
|
|
1646
1646
|
paths: [
|
|
1647
|
-
{ path: "
|
|
1648
|
-
{ path: "
|
|
1649
|
-
{ path: "
|
|
1650
|
-
{ path: "
|
|
1651
|
-
{ path: "
|
|
1652
|
-
{ path: "
|
|
1653
|
-
{ path: "
|
|
1654
|
-
{ path: "
|
|
1655
|
-
{ path: "
|
|
1656
|
-
{ path: "
|
|
1657
|
-
{ path: "
|
|
1658
|
-
{ path: "
|
|
1647
|
+
{ path: "entity.startDate" },
|
|
1648
|
+
{ path: "entity.endDate" },
|
|
1649
|
+
{ path: "entity.earliestEndDate" },
|
|
1650
|
+
{ path: "entity.createdDate" },
|
|
1651
|
+
{ path: "entity.updatedDate" },
|
|
1652
|
+
{ path: "entity.cancellation.requestedDate" },
|
|
1653
|
+
{ path: "entity.pausePeriods.pauseDate" },
|
|
1654
|
+
{ path: "entity.pausePeriods.resumeDate" },
|
|
1655
|
+
{ path: "entity.currentCycle.startedDate" },
|
|
1656
|
+
{ path: "entity.currentCycle.endedDate" },
|
|
1657
|
+
{ path: "entity.cycles.startedDate" },
|
|
1658
|
+
{ path: "entity.cycles.endedDate" },
|
|
1659
1659
|
{ path: "metadata.eventTime" }
|
|
1660
1660
|
]
|
|
1661
1661
|
}
|
|
1662
1662
|
])
|
|
1663
1663
|
)
|
|
1664
1664
|
)();
|
|
1665
|
-
var
|
|
1666
|
-
"wix.pricing_plans.v2.
|
|
1665
|
+
var onOrderStartDateChanged = /* @__PURE__ */ (0, import_sdk_types.EventDefinition)(
|
|
1666
|
+
"wix.pricing_plans.v2.order_start_date_changed",
|
|
1667
1667
|
true,
|
|
1668
1668
|
(event) => (0, import_rename_all_nested_keys2.renameKeysFromRESTResponseToSDKResponse)(
|
|
1669
1669
|
(0, import_transform_paths2.transformPaths)(event, [
|
|
@@ -1688,34 +1688,34 @@ var onOrderCanceled = /* @__PURE__ */ (0, import_sdk_types.EventDefinition)(
|
|
|
1688
1688
|
])
|
|
1689
1689
|
)
|
|
1690
1690
|
)();
|
|
1691
|
-
var
|
|
1692
|
-
"wix.pricing_plans.v2.
|
|
1691
|
+
var onOrderUpdated = /* @__PURE__ */ (0, import_sdk_types.EventDefinition)(
|
|
1692
|
+
"wix.pricing_plans.v2.order_updated",
|
|
1693
1693
|
true,
|
|
1694
1694
|
(event) => (0, import_rename_all_nested_keys2.renameKeysFromRESTResponseToSDKResponse)(
|
|
1695
1695
|
(0, import_transform_paths2.transformPaths)(event, [
|
|
1696
1696
|
{
|
|
1697
1697
|
transformFn: import_timestamp3.transformRESTTimestampToSDKTimestamp,
|
|
1698
1698
|
paths: [
|
|
1699
|
-
{ path: "
|
|
1700
|
-
{ path: "
|
|
1701
|
-
{ path: "
|
|
1702
|
-
{ path: "
|
|
1703
|
-
{ path: "
|
|
1704
|
-
{ path: "
|
|
1705
|
-
{ path: "
|
|
1706
|
-
{ path: "
|
|
1707
|
-
{ path: "
|
|
1708
|
-
{ path: "
|
|
1709
|
-
{ path: "
|
|
1710
|
-
{ path: "
|
|
1699
|
+
{ path: "entity.startDate" },
|
|
1700
|
+
{ path: "entity.endDate" },
|
|
1701
|
+
{ path: "entity.earliestEndDate" },
|
|
1702
|
+
{ path: "entity.createdDate" },
|
|
1703
|
+
{ path: "entity.updatedDate" },
|
|
1704
|
+
{ path: "entity.cancellation.requestedDate" },
|
|
1705
|
+
{ path: "entity.pausePeriods.pauseDate" },
|
|
1706
|
+
{ path: "entity.pausePeriods.resumeDate" },
|
|
1707
|
+
{ path: "entity.currentCycle.startedDate" },
|
|
1708
|
+
{ path: "entity.currentCycle.endedDate" },
|
|
1709
|
+
{ path: "entity.cycles.startedDate" },
|
|
1710
|
+
{ path: "entity.cycles.endedDate" },
|
|
1711
1711
|
{ path: "metadata.eventTime" }
|
|
1712
1712
|
]
|
|
1713
1713
|
}
|
|
1714
1714
|
])
|
|
1715
1715
|
)
|
|
1716
1716
|
)();
|
|
1717
|
-
var
|
|
1718
|
-
"wix.pricing_plans.v2.
|
|
1717
|
+
var onOrderAutoRenewCanceled = /* @__PURE__ */ (0, import_sdk_types.EventDefinition)(
|
|
1718
|
+
"wix.pricing_plans.v2.order_auto_renew_canceled",
|
|
1719
1719
|
true,
|
|
1720
1720
|
(event) => (0, import_rename_all_nested_keys2.renameKeysFromRESTResponseToSDKResponse)(
|
|
1721
1721
|
(0, import_transform_paths2.transformPaths)(event, [
|
|
@@ -1740,8 +1740,8 @@ var onOrderEndDatePostponed = /* @__PURE__ */ (0, import_sdk_types.EventDefiniti
|
|
|
1740
1740
|
])
|
|
1741
1741
|
)
|
|
1742
1742
|
)();
|
|
1743
|
-
var
|
|
1744
|
-
"wix.pricing_plans.v2.
|
|
1743
|
+
var onOrderCanceled = /* @__PURE__ */ (0, import_sdk_types.EventDefinition)(
|
|
1744
|
+
"wix.pricing_plans.v2.order_canceled",
|
|
1745
1745
|
true,
|
|
1746
1746
|
(event) => (0, import_rename_all_nested_keys2.renameKeysFromRESTResponseToSDKResponse)(
|
|
1747
1747
|
(0, import_transform_paths2.transformPaths)(event, [
|
|
@@ -1766,8 +1766,8 @@ var onOrderEnded = /* @__PURE__ */ (0, import_sdk_types.EventDefinition)(
|
|
|
1766
1766
|
])
|
|
1767
1767
|
)
|
|
1768
1768
|
)();
|
|
1769
|
-
var
|
|
1770
|
-
"wix.pricing_plans.v2.
|
|
1769
|
+
var onOrderCycleStarted = /* @__PURE__ */ (0, import_sdk_types.EventDefinition)(
|
|
1770
|
+
"wix.pricing_plans.v2.order_cycle_started",
|
|
1771
1771
|
true,
|
|
1772
1772
|
(event) => (0, import_rename_all_nested_keys2.renameKeysFromRESTResponseToSDKResponse)(
|
|
1773
1773
|
(0, import_transform_paths2.transformPaths)(event, [
|
|
@@ -1792,8 +1792,8 @@ var onOrderMarkedAsPaid = /* @__PURE__ */ (0, import_sdk_types.EventDefinition)(
|
|
|
1792
1792
|
])
|
|
1793
1793
|
)
|
|
1794
1794
|
)();
|
|
1795
|
-
var
|
|
1796
|
-
"wix.pricing_plans.v2.
|
|
1795
|
+
var onOrderEndDatePostponed = /* @__PURE__ */ (0, import_sdk_types.EventDefinition)(
|
|
1796
|
+
"wix.pricing_plans.v2.order_end_date_postponed",
|
|
1797
1797
|
true,
|
|
1798
1798
|
(event) => (0, import_rename_all_nested_keys2.renameKeysFromRESTResponseToSDKResponse)(
|
|
1799
1799
|
(0, import_transform_paths2.transformPaths)(event, [
|
|
@@ -1818,8 +1818,8 @@ var onOrderPaused = /* @__PURE__ */ (0, import_sdk_types.EventDefinition)(
|
|
|
1818
1818
|
])
|
|
1819
1819
|
)
|
|
1820
1820
|
)();
|
|
1821
|
-
var
|
|
1822
|
-
"wix.pricing_plans.v2.
|
|
1821
|
+
var onOrderEnded = /* @__PURE__ */ (0, import_sdk_types.EventDefinition)(
|
|
1822
|
+
"wix.pricing_plans.v2.order_ended",
|
|
1823
1823
|
true,
|
|
1824
1824
|
(event) => (0, import_rename_all_nested_keys2.renameKeysFromRESTResponseToSDKResponse)(
|
|
1825
1825
|
(0, import_transform_paths2.transformPaths)(event, [
|
|
@@ -1844,8 +1844,8 @@ var onOrderPurchased = /* @__PURE__ */ (0, import_sdk_types.EventDefinition)(
|
|
|
1844
1844
|
])
|
|
1845
1845
|
)
|
|
1846
1846
|
)();
|
|
1847
|
-
var
|
|
1848
|
-
"wix.pricing_plans.v2.
|
|
1847
|
+
var onOrderMarkedAsPaid = /* @__PURE__ */ (0, import_sdk_types.EventDefinition)(
|
|
1848
|
+
"wix.pricing_plans.v2.order_marked_as_paid",
|
|
1849
1849
|
true,
|
|
1850
1850
|
(event) => (0, import_rename_all_nested_keys2.renameKeysFromRESTResponseToSDKResponse)(
|
|
1851
1851
|
(0, import_transform_paths2.transformPaths)(event, [
|
|
@@ -1870,8 +1870,8 @@ var onOrderResumed = /* @__PURE__ */ (0, import_sdk_types.EventDefinition)(
|
|
|
1870
1870
|
])
|
|
1871
1871
|
)
|
|
1872
1872
|
)();
|
|
1873
|
-
var
|
|
1874
|
-
"wix.pricing_plans.v2.
|
|
1873
|
+
var onOrderPaused = /* @__PURE__ */ (0, import_sdk_types.EventDefinition)(
|
|
1874
|
+
"wix.pricing_plans.v2.order_paused",
|
|
1875
1875
|
true,
|
|
1876
1876
|
(event) => (0, import_rename_all_nested_keys2.renameKeysFromRESTResponseToSDKResponse)(
|
|
1877
1877
|
(0, import_transform_paths2.transformPaths)(event, [
|
|
@@ -1896,60 +1896,60 @@ var onOrderStarted = /* @__PURE__ */ (0, import_sdk_types.EventDefinition)(
|
|
|
1896
1896
|
])
|
|
1897
1897
|
)
|
|
1898
1898
|
)();
|
|
1899
|
-
var
|
|
1900
|
-
"wix.pricing_plans.v2.
|
|
1899
|
+
var onOrderPurchased = /* @__PURE__ */ (0, import_sdk_types.EventDefinition)(
|
|
1900
|
+
"wix.pricing_plans.v2.order_purchased",
|
|
1901
1901
|
true,
|
|
1902
1902
|
(event) => (0, import_rename_all_nested_keys2.renameKeysFromRESTResponseToSDKResponse)(
|
|
1903
1903
|
(0, import_transform_paths2.transformPaths)(event, [
|
|
1904
1904
|
{
|
|
1905
1905
|
transformFn: import_timestamp3.transformRESTTimestampToSDKTimestamp,
|
|
1906
1906
|
paths: [
|
|
1907
|
-
{ path: "
|
|
1908
|
-
{ path: "
|
|
1909
|
-
{ path: "
|
|
1910
|
-
{ path: "
|
|
1911
|
-
{ path: "
|
|
1912
|
-
{ path: "
|
|
1913
|
-
{ path: "
|
|
1914
|
-
{ path: "
|
|
1915
|
-
{ path: "
|
|
1916
|
-
{ path: "
|
|
1917
|
-
{ path: "
|
|
1918
|
-
{ path: "
|
|
1907
|
+
{ path: "data.order.startDate" },
|
|
1908
|
+
{ path: "data.order.endDate" },
|
|
1909
|
+
{ path: "data.order.earliestEndDate" },
|
|
1910
|
+
{ path: "data.order.createdDate" },
|
|
1911
|
+
{ path: "data.order.updatedDate" },
|
|
1912
|
+
{ path: "data.order.cancellation.requestedDate" },
|
|
1913
|
+
{ path: "data.order.pausePeriods.pauseDate" },
|
|
1914
|
+
{ path: "data.order.pausePeriods.resumeDate" },
|
|
1915
|
+
{ path: "data.order.currentCycle.startedDate" },
|
|
1916
|
+
{ path: "data.order.currentCycle.endedDate" },
|
|
1917
|
+
{ path: "data.order.cycles.startedDate" },
|
|
1918
|
+
{ path: "data.order.cycles.endedDate" },
|
|
1919
1919
|
{ path: "metadata.eventTime" }
|
|
1920
1920
|
]
|
|
1921
1921
|
}
|
|
1922
1922
|
])
|
|
1923
1923
|
)
|
|
1924
1924
|
)();
|
|
1925
|
-
var
|
|
1926
|
-
"wix.pricing_plans.v2.
|
|
1925
|
+
var onOrderResumed = /* @__PURE__ */ (0, import_sdk_types.EventDefinition)(
|
|
1926
|
+
"wix.pricing_plans.v2.order_resumed",
|
|
1927
1927
|
true,
|
|
1928
1928
|
(event) => (0, import_rename_all_nested_keys2.renameKeysFromRESTResponseToSDKResponse)(
|
|
1929
1929
|
(0, import_transform_paths2.transformPaths)(event, [
|
|
1930
1930
|
{
|
|
1931
1931
|
transformFn: import_timestamp3.transformRESTTimestampToSDKTimestamp,
|
|
1932
1932
|
paths: [
|
|
1933
|
-
{ path: "
|
|
1934
|
-
{ path: "
|
|
1935
|
-
{ path: "
|
|
1936
|
-
{ path: "
|
|
1937
|
-
{ path: "
|
|
1938
|
-
{ path: "
|
|
1939
|
-
{ path: "
|
|
1940
|
-
{ path: "
|
|
1941
|
-
{ path: "
|
|
1942
|
-
{ path: "
|
|
1943
|
-
{ path: "
|
|
1944
|
-
{ path: "
|
|
1933
|
+
{ path: "data.order.startDate" },
|
|
1934
|
+
{ path: "data.order.endDate" },
|
|
1935
|
+
{ path: "data.order.earliestEndDate" },
|
|
1936
|
+
{ path: "data.order.createdDate" },
|
|
1937
|
+
{ path: "data.order.updatedDate" },
|
|
1938
|
+
{ path: "data.order.cancellation.requestedDate" },
|
|
1939
|
+
{ path: "data.order.pausePeriods.pauseDate" },
|
|
1940
|
+
{ path: "data.order.pausePeriods.resumeDate" },
|
|
1941
|
+
{ path: "data.order.currentCycle.startedDate" },
|
|
1942
|
+
{ path: "data.order.currentCycle.endedDate" },
|
|
1943
|
+
{ path: "data.order.cycles.startedDate" },
|
|
1944
|
+
{ path: "data.order.cycles.endedDate" },
|
|
1945
1945
|
{ path: "metadata.eventTime" }
|
|
1946
1946
|
]
|
|
1947
1947
|
}
|
|
1948
1948
|
])
|
|
1949
1949
|
)
|
|
1950
1950
|
)();
|
|
1951
|
-
var
|
|
1952
|
-
"wix.pricing_plans.v2.
|
|
1951
|
+
var onOrderStarted = /* @__PURE__ */ (0, import_sdk_types.EventDefinition)(
|
|
1952
|
+
"wix.pricing_plans.v2.order_started",
|
|
1953
1953
|
true,
|
|
1954
1954
|
(event) => (0, import_rename_all_nested_keys2.renameKeysFromRESTResponseToSDKResponse)(
|
|
1955
1955
|
(0, import_transform_paths2.transformPaths)(event, [
|
|
@@ -1978,6 +1978,11 @@ var onOrderStartDateChanged = /* @__PURE__ */ (0, import_sdk_types.EventDefiniti
|
|
|
1978
1978
|
// src/pricing-plans-v2-order-orders.context.ts
|
|
1979
1979
|
var import_rest_modules3 = require("@wix/sdk-runtime/rest-modules");
|
|
1980
1980
|
var import_event_definition_modules = require("@wix/sdk-runtime/event-definition-modules");
|
|
1981
|
+
var createOnlineOrder4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(createOnlineOrder3);
|
|
1982
|
+
var createOfflineOrder4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(createOfflineOrder3);
|
|
1983
|
+
var getOnlineOrderPreview4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(getOnlineOrderPreview3);
|
|
1984
|
+
var getOfflineOrderPreview4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(getOfflineOrderPreview3);
|
|
1985
|
+
var getPricePreview4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(getPricePreview3);
|
|
1981
1986
|
var managementGetOrder4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(managementGetOrder3);
|
|
1982
1987
|
var managementListOrders4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(managementListOrders3);
|
|
1983
1988
|
var postponeEndDate4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(postponeEndDate3);
|
|
@@ -1985,14 +1990,14 @@ var cancelOrder4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(ca
|
|
|
1985
1990
|
var markAsPaid4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(markAsPaid3);
|
|
1986
1991
|
var pauseOrder4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(pauseOrder3);
|
|
1987
1992
|
var resumeOrder4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(resumeOrder3);
|
|
1988
|
-
var createOnlineOrder4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(createOnlineOrder3);
|
|
1989
|
-
var createOfflineOrder4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(createOfflineOrder3);
|
|
1990
|
-
var getOnlineOrderPreview4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(getOnlineOrderPreview3);
|
|
1991
|
-
var getOfflineOrderPreview4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(getOfflineOrderPreview3);
|
|
1992
|
-
var getPricePreview4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(getPricePreview3);
|
|
1993
1993
|
var memberGetOrder4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(memberGetOrder3);
|
|
1994
1994
|
var memberListOrders4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(memberListOrders3);
|
|
1995
1995
|
var requestCancellation4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(requestCancellation3);
|
|
1996
|
+
var onOrderCreated2 = /* @__PURE__ */ (0, import_event_definition_modules.createEventModule)(onOrderCreated);
|
|
1997
|
+
var onOrderStartDateChanged2 = /* @__PURE__ */ (0, import_event_definition_modules.createEventModule)(
|
|
1998
|
+
onOrderStartDateChanged
|
|
1999
|
+
);
|
|
2000
|
+
var onOrderUpdated2 = /* @__PURE__ */ (0, import_event_definition_modules.createEventModule)(onOrderUpdated);
|
|
1996
2001
|
var onOrderAutoRenewCanceled2 = /* @__PURE__ */ (0, import_event_definition_modules.createEventModule)(
|
|
1997
2002
|
onOrderAutoRenewCanceled
|
|
1998
2003
|
);
|
|
@@ -2015,11 +2020,6 @@ var onOrderPurchased2 = /* @__PURE__ */ (0, import_event_definition_modules.crea
|
|
|
2015
2020
|
);
|
|
2016
2021
|
var onOrderResumed2 = /* @__PURE__ */ (0, import_event_definition_modules.createEventModule)(onOrderResumed);
|
|
2017
2022
|
var onOrderStarted2 = /* @__PURE__ */ (0, import_event_definition_modules.createEventModule)(onOrderStarted);
|
|
2018
|
-
var onOrderUpdated2 = /* @__PURE__ */ (0, import_event_definition_modules.createEventModule)(onOrderUpdated);
|
|
2019
|
-
var onOrderCreated2 = /* @__PURE__ */ (0, import_event_definition_modules.createEventModule)(onOrderCreated);
|
|
2020
|
-
var onOrderStartDateChanged2 = /* @__PURE__ */ (0, import_event_definition_modules.createEventModule)(
|
|
2021
|
-
onOrderStartDateChanged
|
|
2022
|
-
);
|
|
2023
2023
|
// Annotate the CommonJS export names for ESM import in node:
|
|
2024
2024
|
0 && (module.exports = {
|
|
2025
2025
|
CancellationCause,
|