@wix/auto_sdk_pricing-plans_orders 1.0.127 → 1.0.129
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 +133 -133
- package/build/cjs/index.js +625 -625
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +777 -777
- package/build/cjs/index.typings.js +499 -499
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.d.ts +484 -484
- package/build/cjs/meta.js +389 -389
- package/build/cjs/meta.js.map +1 -1
- package/build/es/index.d.mts +133 -133
- package/build/es/index.mjs +625 -625
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +777 -777
- package/build/es/index.typings.mjs +499 -499
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.d.mts +484 -484
- package/build/es/meta.mjs +389 -389
- package/build/es/meta.mjs.map +1 -1
- package/build/internal/cjs/index.d.ts +133 -133
- package/build/internal/cjs/index.typings.d.ts +804 -804
- package/build/internal/cjs/meta.d.ts +500 -500
- package/build/internal/es/index.d.mts +133 -133
- package/build/internal/es/index.typings.d.mts +804 -804
- package/build/internal/es/meta.d.mts +500 -500
- package/package.json +2 -2
package/build/cjs/index.js
CHANGED
|
@@ -171,323 +171,317 @@ function resolveComWixpressMembershipV2OrdersMemberMemberOrdersServiceUrl(opts)
|
|
|
171
171
|
};
|
|
172
172
|
return (0, import_rest_modules2.resolveUrl)(Object.assign(opts, { domainToMappings }));
|
|
173
173
|
}
|
|
174
|
-
function
|
|
174
|
+
function resolveComWixpressMembershipV2OrdersCheckoutServiceUrl(opts) {
|
|
175
175
|
const domainToMappings = {
|
|
176
176
|
"api._api_base_domain_": [
|
|
177
177
|
{
|
|
178
|
-
srcPath: "/
|
|
178
|
+
srcPath: "/pricing-plans-checkout-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/checkout",
|
|
185
|
+
destPath: "/v2/checkout"
|
|
186
186
|
},
|
|
187
187
|
{
|
|
188
|
-
srcPath: "/_api/pricing-plans/v2/
|
|
189
|
-
destPath: "/v2/
|
|
188
|
+
srcPath: "/_api/pricing-plans/v2/checkout",
|
|
189
|
+
destPath: "/v2/checkout"
|
|
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/checkout",
|
|
195
|
+
destPath: "/v2/checkout"
|
|
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/checkout",
|
|
201
|
+
destPath: "/v2/checkout"
|
|
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/checkout",
|
|
207
|
+
destPath: "/v2/checkout"
|
|
208
208
|
},
|
|
209
209
|
{
|
|
210
|
-
srcPath: "/_api/pricing-plans/v2/
|
|
211
|
-
destPath: "/v2/
|
|
210
|
+
srcPath: "/_api/pricing-plans/v2/checkout",
|
|
211
|
+
destPath: "/v2/checkout"
|
|
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/checkout",
|
|
217
|
+
destPath: "/v2/checkout"
|
|
218
218
|
},
|
|
219
219
|
{
|
|
220
|
-
srcPath: "/_api/pricing-plans/v2/
|
|
221
|
-
destPath: "/v2/
|
|
220
|
+
srcPath: "/_api/pricing-plans/v2/checkout",
|
|
221
|
+
destPath: "/v2/checkout"
|
|
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/checkout",
|
|
227
|
+
destPath: "/v2/checkout"
|
|
228
228
|
},
|
|
229
229
|
{
|
|
230
|
-
srcPath: "/_api/pricing-plans/v2/
|
|
231
|
-
destPath: "/v2/
|
|
230
|
+
srcPath: "/_api/pricing-plans/v2/checkout",
|
|
231
|
+
destPath: "/v2/checkout"
|
|
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/checkout",
|
|
237
|
+
destPath: "/v2/checkout"
|
|
238
238
|
},
|
|
239
239
|
{
|
|
240
|
-
srcPath: "/_api/pricing-plans/v2/
|
|
241
|
-
destPath: "/v2/
|
|
240
|
+
srcPath: "/_api/pricing-plans/v2/checkout",
|
|
241
|
+
destPath: "/v2/checkout"
|
|
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/checkout",
|
|
247
|
+
destPath: "/v2/checkout"
|
|
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/checkout",
|
|
253
|
+
destPath: "/v2/checkout"
|
|
254
254
|
}
|
|
255
255
|
],
|
|
256
256
|
"manage._base_domain_": [
|
|
257
257
|
{
|
|
258
|
-
srcPath: "/_api/pricing-plans/v2/
|
|
259
|
-
destPath: "/v2/
|
|
258
|
+
srcPath: "/_api/pricing-plans/v2/checkout",
|
|
259
|
+
destPath: "/v2/checkout"
|
|
260
260
|
},
|
|
261
261
|
{
|
|
262
|
-
srcPath: "/_api/paid-plans/v2/
|
|
263
|
-
destPath: "/v2/
|
|
262
|
+
srcPath: "/_api/paid-plans/v2/checkout",
|
|
263
|
+
destPath: "/v2/checkout"
|
|
264
|
+
},
|
|
265
|
+
{
|
|
266
|
+
srcPath: "/pricing-plans/v2/checkout",
|
|
267
|
+
destPath: "/v2/checkout"
|
|
264
268
|
}
|
|
265
269
|
],
|
|
266
270
|
"www.wixapis.com": [
|
|
267
271
|
{
|
|
268
|
-
srcPath: "/pricing-plans/v2/
|
|
269
|
-
destPath: "/v2/
|
|
272
|
+
srcPath: "/pricing-plans/v2/checkout",
|
|
273
|
+
destPath: "/v2/checkout"
|
|
270
274
|
}
|
|
271
275
|
],
|
|
272
276
|
_: [
|
|
273
277
|
{
|
|
274
|
-
srcPath: "/
|
|
275
|
-
destPath: "/v2/
|
|
278
|
+
srcPath: "/pricing-plans/v2/checkout",
|
|
279
|
+
destPath: "/v2/checkout"
|
|
276
280
|
},
|
|
277
281
|
{
|
|
278
|
-
srcPath: "/_api/
|
|
279
|
-
destPath: "/v2/
|
|
282
|
+
srcPath: "/_api/paid-plans/v2/checkout",
|
|
283
|
+
destPath: "/v2/checkout"
|
|
284
|
+
},
|
|
285
|
+
{
|
|
286
|
+
srcPath: "/_api/pricing-plans/v2/checkout",
|
|
287
|
+
destPath: "/v2/checkout"
|
|
280
288
|
}
|
|
281
289
|
],
|
|
282
290
|
"*.pub.wix-code.com": [
|
|
283
291
|
{
|
|
284
|
-
srcPath: "/_api/paid-plans/v2/
|
|
285
|
-
destPath: "/v2/
|
|
292
|
+
srcPath: "/_api/paid-plans/v2/checkout",
|
|
293
|
+
destPath: "/v2/checkout"
|
|
286
294
|
}
|
|
287
295
|
],
|
|
288
296
|
"www._base_domain_": [
|
|
289
297
|
{
|
|
290
|
-
srcPath: "/_api/paid-plans/v2/
|
|
291
|
-
destPath: "/v2/
|
|
298
|
+
srcPath: "/_api/paid-plans/v2/checkout",
|
|
299
|
+
destPath: "/v2/checkout"
|
|
292
300
|
}
|
|
293
301
|
],
|
|
294
302
|
"apps._base_domain_": [
|
|
295
303
|
{
|
|
296
|
-
srcPath: "/_api/paid-plans/v2/
|
|
297
|
-
destPath: "/v2/
|
|
304
|
+
srcPath: "/_api/paid-plans/v2/checkout",
|
|
305
|
+
destPath: "/v2/checkout"
|
|
298
306
|
},
|
|
299
307
|
{
|
|
300
|
-
srcPath: "/_api/pricing-plans/v2/
|
|
301
|
-
destPath: "/v2/
|
|
308
|
+
srcPath: "/_api/pricing-plans/v2/checkout",
|
|
309
|
+
destPath: "/v2/checkout"
|
|
302
310
|
}
|
|
303
311
|
],
|
|
304
312
|
"dev._base_domain_": [
|
|
305
313
|
{
|
|
306
|
-
srcPath: "/_api/paid-plans/v2/
|
|
307
|
-
destPath: "/v2/
|
|
314
|
+
srcPath: "/_api/paid-plans/v2/checkout",
|
|
315
|
+
destPath: "/v2/checkout"
|
|
308
316
|
},
|
|
309
317
|
{
|
|
310
|
-
srcPath: "/_api/pricing-plans/v2/
|
|
311
|
-
destPath: "/v2/
|
|
318
|
+
srcPath: "/_api/pricing-plans/v2/checkout",
|
|
319
|
+
destPath: "/v2/checkout"
|
|
312
320
|
}
|
|
313
321
|
]
|
|
314
322
|
};
|
|
315
323
|
return (0, import_rest_modules2.resolveUrl)(Object.assign(opts, { domainToMappings }));
|
|
316
324
|
}
|
|
317
|
-
function
|
|
325
|
+
function resolveComWixpressMembershipV2OrdersOrderManagementServiceUrl(opts) {
|
|
318
326
|
const domainToMappings = {
|
|
319
327
|
"api._api_base_domain_": [
|
|
320
328
|
{
|
|
321
|
-
srcPath: "/
|
|
329
|
+
srcPath: "/order-management-service-proxy",
|
|
322
330
|
destPath: ""
|
|
323
331
|
}
|
|
324
332
|
],
|
|
325
333
|
"*.dev.wix-code.com": [
|
|
326
334
|
{
|
|
327
|
-
srcPath: "/_api/paid-plans/v2/
|
|
328
|
-
destPath: "/v2/
|
|
335
|
+
srcPath: "/_api/paid-plans/v2/orders",
|
|
336
|
+
destPath: "/v2/orders"
|
|
329
337
|
},
|
|
330
338
|
{
|
|
331
|
-
srcPath: "/_api/pricing-plans/v2/
|
|
332
|
-
destPath: "/v2/
|
|
339
|
+
srcPath: "/_api/pricing-plans/v2/orders",
|
|
340
|
+
destPath: "/v2/orders"
|
|
333
341
|
}
|
|
334
342
|
],
|
|
335
343
|
"*.wixapps.net": [
|
|
336
344
|
{
|
|
337
|
-
srcPath: "/_api/paid-plans/v2/
|
|
338
|
-
destPath: "/v2/
|
|
345
|
+
srcPath: "/_api/paid-plans/v2/orders",
|
|
346
|
+
destPath: "/v2/orders"
|
|
339
347
|
}
|
|
340
348
|
],
|
|
341
349
|
"editor-flow.wixapps.net": [
|
|
342
350
|
{
|
|
343
|
-
srcPath: "/_api/paid-plans/v2/
|
|
344
|
-
destPath: "/v2/
|
|
351
|
+
srcPath: "/_api/paid-plans/v2/orders",
|
|
352
|
+
destPath: "/v2/orders"
|
|
345
353
|
}
|
|
346
354
|
],
|
|
347
355
|
"editor._base_domain_": [
|
|
348
356
|
{
|
|
349
|
-
srcPath: "/_api/paid-plans/v2/
|
|
350
|
-
destPath: "/v2/
|
|
357
|
+
srcPath: "/_api/paid-plans/v2/orders",
|
|
358
|
+
destPath: "/v2/orders"
|
|
351
359
|
},
|
|
352
360
|
{
|
|
353
|
-
srcPath: "/_api/pricing-plans/v2/
|
|
354
|
-
destPath: "/v2/
|
|
361
|
+
srcPath: "/_api/pricing-plans/v2/orders",
|
|
362
|
+
destPath: "/v2/orders"
|
|
355
363
|
}
|
|
356
364
|
],
|
|
357
365
|
"blocks._base_domain_": [
|
|
358
366
|
{
|
|
359
|
-
srcPath: "/_api/paid-plans/v2/
|
|
360
|
-
destPath: "/v2/
|
|
367
|
+
srcPath: "/_api/paid-plans/v2/orders",
|
|
368
|
+
destPath: "/v2/orders"
|
|
361
369
|
},
|
|
362
370
|
{
|
|
363
|
-
srcPath: "/_api/pricing-plans/v2/
|
|
364
|
-
destPath: "/v2/
|
|
371
|
+
srcPath: "/_api/pricing-plans/v2/orders",
|
|
372
|
+
destPath: "/v2/orders"
|
|
365
373
|
}
|
|
366
374
|
],
|
|
367
375
|
"create.editorx": [
|
|
368
376
|
{
|
|
369
|
-
srcPath: "/_api/paid-plans/v2/
|
|
370
|
-
destPath: "/v2/
|
|
377
|
+
srcPath: "/_api/paid-plans/v2/orders",
|
|
378
|
+
destPath: "/v2/orders"
|
|
371
379
|
},
|
|
372
380
|
{
|
|
373
|
-
srcPath: "/_api/pricing-plans/v2/
|
|
374
|
-
destPath: "/v2/
|
|
381
|
+
srcPath: "/_api/pricing-plans/v2/orders",
|
|
382
|
+
destPath: "/v2/orders"
|
|
375
383
|
}
|
|
376
384
|
],
|
|
377
385
|
"editor.wixapps.net": [
|
|
378
386
|
{
|
|
379
|
-
srcPath: "/_api/paid-plans/v2/
|
|
380
|
-
destPath: "/v2/
|
|
387
|
+
srcPath: "/_api/paid-plans/v2/orders",
|
|
388
|
+
destPath: "/v2/orders"
|
|
381
389
|
},
|
|
382
390
|
{
|
|
383
|
-
srcPath: "/_api/pricing-plans/v2/
|
|
384
|
-
destPath: "/v2/
|
|
391
|
+
srcPath: "/_api/pricing-plans/v2/orders",
|
|
392
|
+
destPath: "/v2/orders"
|
|
385
393
|
}
|
|
386
394
|
],
|
|
387
395
|
"forums._base_domain_": [
|
|
388
396
|
{
|
|
389
|
-
srcPath: "/_api/paid-plans/v2/
|
|
390
|
-
destPath: "/v2/
|
|
397
|
+
srcPath: "/_api/paid-plans/v2/orders",
|
|
398
|
+
destPath: "/v2/orders"
|
|
391
399
|
}
|
|
392
400
|
],
|
|
393
401
|
"forums.wixapps.net": [
|
|
394
402
|
{
|
|
395
|
-
srcPath: "/_api/paid-plans/v2/
|
|
396
|
-
destPath: "/v2/
|
|
403
|
+
srcPath: "/_api/paid-plans/v2/orders",
|
|
404
|
+
destPath: "/v2/orders"
|
|
397
405
|
}
|
|
398
406
|
],
|
|
399
407
|
"manage._base_domain_": [
|
|
400
408
|
{
|
|
401
|
-
srcPath: "/_api/pricing-plans/v2/
|
|
402
|
-
destPath: "/v2/
|
|
403
|
-
},
|
|
404
|
-
{
|
|
405
|
-
srcPath: "/_api/paid-plans/v2/checkout",
|
|
406
|
-
destPath: "/v2/checkout"
|
|
409
|
+
srcPath: "/_api/pricing-plans/v2/orders",
|
|
410
|
+
destPath: "/v2/orders"
|
|
407
411
|
},
|
|
408
412
|
{
|
|
409
|
-
srcPath: "/
|
|
410
|
-
destPath: "/v2/
|
|
413
|
+
srcPath: "/_api/paid-plans/v2/orders",
|
|
414
|
+
destPath: "/v2/orders"
|
|
411
415
|
}
|
|
412
416
|
],
|
|
413
417
|
"www.wixapis.com": [
|
|
414
418
|
{
|
|
415
|
-
srcPath: "/pricing-plans/v2/
|
|
416
|
-
destPath: "/v2/
|
|
419
|
+
srcPath: "/pricing-plans/v2/orders",
|
|
420
|
+
destPath: "/v2/orders"
|
|
417
421
|
}
|
|
418
422
|
],
|
|
419
423
|
_: [
|
|
420
424
|
{
|
|
421
|
-
srcPath: "/
|
|
422
|
-
destPath: "/v2/
|
|
423
|
-
},
|
|
424
|
-
{
|
|
425
|
-
srcPath: "/_api/paid-plans/v2/checkout",
|
|
426
|
-
destPath: "/v2/checkout"
|
|
425
|
+
srcPath: "/_api/paid-plans/v2/orders",
|
|
426
|
+
destPath: "/v2/orders"
|
|
427
427
|
},
|
|
428
428
|
{
|
|
429
|
-
srcPath: "/_api/pricing-plans/v2/
|
|
430
|
-
destPath: "/v2/
|
|
429
|
+
srcPath: "/_api/pricing-plans/v2/orders",
|
|
430
|
+
destPath: "/v2/orders"
|
|
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/orders",
|
|
436
|
+
destPath: "/v2/orders"
|
|
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/orders",
|
|
442
|
+
destPath: "/v2/orders"
|
|
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/orders",
|
|
448
|
+
destPath: "/v2/orders"
|
|
449
449
|
},
|
|
450
450
|
{
|
|
451
|
-
srcPath: "/_api/pricing-plans/v2/
|
|
452
|
-
destPath: "/v2/
|
|
451
|
+
srcPath: "/_api/pricing-plans/v2/orders",
|
|
452
|
+
destPath: "/v2/orders"
|
|
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/orders",
|
|
458
|
+
destPath: "/v2/orders"
|
|
459
459
|
},
|
|
460
460
|
{
|
|
461
|
-
srcPath: "/_api/pricing-plans/v2/
|
|
462
|
-
destPath: "/v2/
|
|
461
|
+
srcPath: "/_api/pricing-plans/v2/orders",
|
|
462
|
+
destPath: "/v2/orders"
|
|
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
|
|
471
|
-
const serializedData = (0, import_transform_paths.transformPaths)(payload, [
|
|
472
|
-
{
|
|
473
|
-
transformFn: import_timestamp.transformSDKTimestampToRESTTimestamp,
|
|
474
|
-
paths: [{ path: "startDate" }]
|
|
475
|
-
}
|
|
476
|
-
]);
|
|
469
|
+
function managementGetOrder(payload) {
|
|
470
|
+
function __managementGetOrder({ host }) {
|
|
477
471
|
const metadata = {
|
|
478
472
|
entityFqdn: "wix.pricing_plans.v2.order",
|
|
479
|
-
method: "
|
|
480
|
-
methodFqn: "com.wixpress.membership.v2.orders.
|
|
473
|
+
method: "GET",
|
|
474
|
+
methodFqn: "com.wixpress.membership.v2.orders.OrderManagementService.GetOrder",
|
|
481
475
|
packageName: PACKAGE_NAME,
|
|
482
476
|
migrationOptions: {
|
|
483
477
|
optInTransformResponse: true
|
|
484
478
|
},
|
|
485
|
-
url:
|
|
486
|
-
protoPath: "/v2/
|
|
487
|
-
data:
|
|
479
|
+
url: resolveComWixpressMembershipV2OrdersOrderManagementServiceUrl({
|
|
480
|
+
protoPath: "/v2/orders/{id}",
|
|
481
|
+
data: payload,
|
|
488
482
|
host
|
|
489
483
|
}),
|
|
490
|
-
|
|
484
|
+
params: (0, import_rest_modules.toURLSearchParams)(payload),
|
|
491
485
|
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
492
486
|
{
|
|
493
487
|
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
@@ -510,16 +504,222 @@ function createOnlineOrder(payload) {
|
|
|
510
504
|
};
|
|
511
505
|
return metadata;
|
|
512
506
|
}
|
|
513
|
-
return
|
|
507
|
+
return __managementGetOrder;
|
|
514
508
|
}
|
|
515
|
-
function
|
|
516
|
-
function
|
|
509
|
+
function managementListOrders(payload) {
|
|
510
|
+
function __managementListOrders({ host }) {
|
|
517
511
|
const serializedData = (0, import_transform_paths.transformPaths)(payload, [
|
|
518
512
|
{
|
|
519
|
-
transformFn:
|
|
520
|
-
paths: [
|
|
521
|
-
|
|
522
|
-
|
|
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 }) {
|
|
717
|
+
const serializedData = (0, import_transform_paths.transformPaths)(payload, [
|
|
718
|
+
{
|
|
719
|
+
transformFn: import_timestamp.transformSDKTimestampToRESTTimestamp,
|
|
720
|
+
paths: [{ path: "startDate" }]
|
|
721
|
+
}
|
|
722
|
+
]);
|
|
523
723
|
const metadata = {
|
|
524
724
|
entityFqdn: "wix.pricing_plans.v2.order",
|
|
525
725
|
method: "POST",
|
|
@@ -671,18 +871,18 @@ function getPricePreview(payload) {
|
|
|
671
871
|
}
|
|
672
872
|
return __getPricePreview;
|
|
673
873
|
}
|
|
674
|
-
function
|
|
675
|
-
function
|
|
874
|
+
function memberGetOrder(payload) {
|
|
875
|
+
function __memberGetOrder({ host }) {
|
|
676
876
|
const metadata = {
|
|
677
877
|
entityFqdn: "wix.pricing_plans.v2.order",
|
|
678
878
|
method: "GET",
|
|
679
|
-
methodFqn: "com.wixpress.membership.v2.orders.
|
|
879
|
+
methodFqn: "com.wixpress.membership.v2.orders.member.MemberOrdersService.GetOrder",
|
|
680
880
|
packageName: PACKAGE_NAME,
|
|
681
881
|
migrationOptions: {
|
|
682
882
|
optInTransformResponse: true
|
|
683
883
|
},
|
|
684
|
-
url:
|
|
685
|
-
protoPath: "/v2/orders/{id}",
|
|
884
|
+
url: resolveComWixpressMembershipV2OrdersMemberMemberOrdersServiceUrl({
|
|
885
|
+
protoPath: "/v2/member/orders/{id}",
|
|
686
886
|
data: payload,
|
|
687
887
|
host
|
|
688
888
|
}),
|
|
@@ -709,10 +909,10 @@ function managementGetOrder(payload) {
|
|
|
709
909
|
};
|
|
710
910
|
return metadata;
|
|
711
911
|
}
|
|
712
|
-
return
|
|
912
|
+
return __memberGetOrder;
|
|
713
913
|
}
|
|
714
|
-
function
|
|
715
|
-
function
|
|
914
|
+
function memberListOrders(payload) {
|
|
915
|
+
function __memberListOrders({ host }) {
|
|
716
916
|
const serializedData = (0, import_transform_paths.transformPaths)(payload, [
|
|
717
917
|
{
|
|
718
918
|
transformFn: import_float.transformSDKFloatToRESTFloat,
|
|
@@ -725,13 +925,13 @@ function managementListOrders(payload) {
|
|
|
725
925
|
const metadata = {
|
|
726
926
|
entityFqdn: "wix.pricing_plans.v2.order",
|
|
727
927
|
method: "GET",
|
|
728
|
-
methodFqn: "com.wixpress.membership.v2.orders.
|
|
928
|
+
methodFqn: "com.wixpress.membership.v2.orders.member.MemberOrdersService.ListOrders",
|
|
729
929
|
packageName: PACKAGE_NAME,
|
|
730
930
|
migrationOptions: {
|
|
731
931
|
optInTransformResponse: true
|
|
732
932
|
},
|
|
733
|
-
url:
|
|
734
|
-
protoPath: "/v2/orders",
|
|
933
|
+
url: resolveComWixpressMembershipV2OrdersMemberMemberOrdersServiceUrl({
|
|
934
|
+
protoPath: "/v2/member/orders",
|
|
735
935
|
data: serializedData,
|
|
736
936
|
host
|
|
737
937
|
}),
|
|
@@ -758,224 +958,24 @@ function managementListOrders(payload) {
|
|
|
758
958
|
};
|
|
759
959
|
return metadata;
|
|
760
960
|
}
|
|
761
|
-
return
|
|
961
|
+
return __memberListOrders;
|
|
762
962
|
}
|
|
763
|
-
function
|
|
764
|
-
function
|
|
765
|
-
const serializedData = (0, import_transform_paths.transformPaths)(payload, [
|
|
766
|
-
{
|
|
767
|
-
transformFn: import_timestamp.transformSDKTimestampToRESTTimestamp,
|
|
768
|
-
paths: [{ path: "endDate" }]
|
|
769
|
-
}
|
|
770
|
-
]);
|
|
963
|
+
function requestCancellation(payload) {
|
|
964
|
+
function __requestCancellation({ host }) {
|
|
771
965
|
const metadata = {
|
|
772
966
|
entityFqdn: "wix.pricing_plans.v2.order",
|
|
773
|
-
method: "
|
|
774
|
-
methodFqn: "com.wixpress.membership.v2.orders.
|
|
967
|
+
method: "POST",
|
|
968
|
+
methodFqn: "com.wixpress.membership.v2.orders.member.MemberOrdersService.RequestCancellation",
|
|
775
969
|
packageName: PACKAGE_NAME,
|
|
776
970
|
migrationOptions: {
|
|
777
971
|
optInTransformResponse: true
|
|
778
972
|
},
|
|
779
|
-
url:
|
|
780
|
-
protoPath: "/v2/orders/{id}",
|
|
781
|
-
data:
|
|
973
|
+
url: resolveComWixpressMembershipV2OrdersMemberMemberOrdersServiceUrl({
|
|
974
|
+
protoPath: "/v2/member/orders/{id}/cancel",
|
|
975
|
+
data: payload,
|
|
782
976
|
host
|
|
783
977
|
}),
|
|
784
|
-
data:
|
|
785
|
-
};
|
|
786
|
-
return metadata;
|
|
787
|
-
}
|
|
788
|
-
return __postponeEndDate;
|
|
789
|
-
}
|
|
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
|
|
978
|
+
data: payload
|
|
979
979
|
};
|
|
980
980
|
return metadata;
|
|
981
981
|
}
|
|
@@ -1045,14 +1045,6 @@ 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 || {});
|
|
1056
1048
|
var Set = /* @__PURE__ */ ((Set2) => {
|
|
1057
1049
|
Set2["UNKNOWN_SET"] = "UNKNOWN_SET";
|
|
1058
1050
|
Set2["BASIC"] = "BASIC";
|
|
@@ -1075,16 +1067,21 @@ var ReasonNotSuspendable = /* @__PURE__ */ ((ReasonNotSuspendable2) => {
|
|
|
1075
1067
|
ReasonNotSuspendable2["OLD_STRIPE"] = "OLD_STRIPE";
|
|
1076
1068
|
return ReasonNotSuspendable2;
|
|
1077
1069
|
})(ReasonNotSuspendable || {});
|
|
1078
|
-
|
|
1070
|
+
var WebhookIdentityType = /* @__PURE__ */ ((WebhookIdentityType2) => {
|
|
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) {
|
|
1079
1079
|
const { httpClient, sideEffects } = arguments[2];
|
|
1080
1080
|
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
1081
|
-
|
|
1082
|
-
|
|
1083
|
-
couponCode: options?.couponCode,
|
|
1084
|
-
onBehalf: options?.onBehalf,
|
|
1085
|
-
submissionId: options?.submissionId
|
|
1081
|
+
id: _id,
|
|
1082
|
+
fieldSet: options?.fieldSet
|
|
1086
1083
|
});
|
|
1087
|
-
const reqOpts =
|
|
1084
|
+
const reqOpts = managementGetOrder(payload);
|
|
1088
1085
|
sideEffects?.onSiteCall?.();
|
|
1089
1086
|
try {
|
|
1090
1087
|
const result = await httpClient.request(reqOpts);
|
|
@@ -1095,32 +1092,29 @@ async function createOnlineOrder2(planId, options) {
|
|
|
1095
1092
|
err,
|
|
1096
1093
|
{
|
|
1097
1094
|
spreadPathsToArguments: {},
|
|
1098
|
-
explicitPathsToArguments: {
|
|
1099
|
-
planId: "$[0]",
|
|
1100
|
-
startDate: "$[1].startDate",
|
|
1101
|
-
couponCode: "$[1].couponCode",
|
|
1102
|
-
onBehalf: "$[1].onBehalf",
|
|
1103
|
-
submissionId: "$[1].submissionId"
|
|
1104
|
-
},
|
|
1095
|
+
explicitPathsToArguments: { id: "$[0]", fieldSet: "$[1].fieldSet" },
|
|
1105
1096
|
singleArgumentUnchanged: false
|
|
1106
1097
|
},
|
|
1107
|
-
["
|
|
1098
|
+
["_id", "options"]
|
|
1108
1099
|
);
|
|
1109
1100
|
sideEffects?.onError?.(err);
|
|
1110
1101
|
throw transformedError;
|
|
1111
1102
|
}
|
|
1112
1103
|
}
|
|
1113
|
-
async function
|
|
1114
|
-
const { httpClient, sideEffects } = arguments[
|
|
1104
|
+
async function managementListOrders2(options) {
|
|
1105
|
+
const { httpClient, sideEffects } = arguments[1];
|
|
1115
1106
|
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
1116
|
-
|
|
1117
|
-
|
|
1118
|
-
|
|
1119
|
-
|
|
1120
|
-
|
|
1121
|
-
|
|
1107
|
+
buyerIds: options?.buyerIds,
|
|
1108
|
+
planIds: options?.planIds,
|
|
1109
|
+
autoRenewCanceled: options?.autoRenewCanceled,
|
|
1110
|
+
orderStatuses: options?.orderStatuses,
|
|
1111
|
+
paymentStatuses: options?.paymentStatuses,
|
|
1112
|
+
limit: options?.limit,
|
|
1113
|
+
offset: options?.offset,
|
|
1114
|
+
sorting: options?.sorting,
|
|
1115
|
+
fieldSet: options?.fieldSet
|
|
1122
1116
|
});
|
|
1123
|
-
const reqOpts =
|
|
1117
|
+
const reqOpts = managementListOrders(payload);
|
|
1124
1118
|
sideEffects?.onSiteCall?.();
|
|
1125
1119
|
try {
|
|
1126
1120
|
const result = await httpClient.request(reqOpts);
|
|
@@ -1132,294 +1126,300 @@ async function createOfflineOrder2(planId, memberId, options) {
|
|
|
1132
1126
|
{
|
|
1133
1127
|
spreadPathsToArguments: {},
|
|
1134
1128
|
explicitPathsToArguments: {
|
|
1135
|
-
|
|
1136
|
-
|
|
1137
|
-
|
|
1138
|
-
|
|
1139
|
-
|
|
1140
|
-
|
|
1129
|
+
buyerIds: "$[0].buyerIds",
|
|
1130
|
+
planIds: "$[0].planIds",
|
|
1131
|
+
autoRenewCanceled: "$[0].autoRenewCanceled",
|
|
1132
|
+
orderStatuses: "$[0].orderStatuses",
|
|
1133
|
+
paymentStatuses: "$[0].paymentStatuses",
|
|
1134
|
+
limit: "$[0].limit",
|
|
1135
|
+
offset: "$[0].offset",
|
|
1136
|
+
sorting: "$[0].sorting",
|
|
1137
|
+
fieldSet: "$[0].fieldSet"
|
|
1141
1138
|
},
|
|
1142
1139
|
singleArgumentUnchanged: false
|
|
1143
1140
|
},
|
|
1144
|
-
["
|
|
1141
|
+
["options"]
|
|
1145
1142
|
);
|
|
1146
1143
|
sideEffects?.onError?.(err);
|
|
1147
1144
|
throw transformedError;
|
|
1148
1145
|
}
|
|
1149
1146
|
}
|
|
1150
|
-
async function
|
|
1147
|
+
async function postponeEndDate2(_id, endDate) {
|
|
1151
1148
|
const { httpClient, sideEffects } = arguments[2];
|
|
1152
1149
|
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
1153
|
-
|
|
1154
|
-
|
|
1155
|
-
couponCode: options?.couponCode
|
|
1150
|
+
id: _id,
|
|
1151
|
+
endDate
|
|
1156
1152
|
});
|
|
1157
|
-
const reqOpts =
|
|
1153
|
+
const reqOpts = postponeEndDate(payload);
|
|
1158
1154
|
sideEffects?.onSiteCall?.();
|
|
1159
1155
|
try {
|
|
1160
1156
|
const result = await httpClient.request(reqOpts);
|
|
1161
1157
|
sideEffects?.onSuccess?.(result);
|
|
1162
|
-
return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data);
|
|
1163
1158
|
} catch (err) {
|
|
1164
1159
|
const transformedError = (0, import_transform_error.transformError)(
|
|
1165
1160
|
err,
|
|
1166
1161
|
{
|
|
1167
1162
|
spreadPathsToArguments: {},
|
|
1168
|
-
explicitPathsToArguments: {
|
|
1169
|
-
planId: "$[0]",
|
|
1170
|
-
startDate: "$[1].startDate",
|
|
1171
|
-
couponCode: "$[1].couponCode"
|
|
1172
|
-
},
|
|
1163
|
+
explicitPathsToArguments: { id: "$[0]", endDate: "$[1]" },
|
|
1173
1164
|
singleArgumentUnchanged: false
|
|
1174
1165
|
},
|
|
1175
|
-
["
|
|
1166
|
+
["_id", "endDate"]
|
|
1176
1167
|
);
|
|
1177
1168
|
sideEffects?.onError?.(err);
|
|
1178
1169
|
throw transformedError;
|
|
1179
1170
|
}
|
|
1180
1171
|
}
|
|
1181
|
-
async function
|
|
1182
|
-
const { httpClient, sideEffects } = arguments[
|
|
1172
|
+
async function cancelOrder2(_id, effectiveAt) {
|
|
1173
|
+
const { httpClient, sideEffects } = arguments[2];
|
|
1183
1174
|
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
1184
|
-
|
|
1185
|
-
|
|
1186
|
-
startDate: options?.startDate,
|
|
1187
|
-
couponCode: options?.couponCode
|
|
1175
|
+
id: _id,
|
|
1176
|
+
effectiveAt
|
|
1188
1177
|
});
|
|
1189
|
-
const reqOpts =
|
|
1178
|
+
const reqOpts = cancelOrder(payload);
|
|
1190
1179
|
sideEffects?.onSiteCall?.();
|
|
1191
1180
|
try {
|
|
1192
1181
|
const result = await httpClient.request(reqOpts);
|
|
1193
1182
|
sideEffects?.onSuccess?.(result);
|
|
1194
|
-
return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data);
|
|
1195
1183
|
} catch (err) {
|
|
1196
1184
|
const transformedError = (0, import_transform_error.transformError)(
|
|
1197
1185
|
err,
|
|
1198
1186
|
{
|
|
1199
1187
|
spreadPathsToArguments: {},
|
|
1200
|
-
explicitPathsToArguments: {
|
|
1201
|
-
planId: "$[0]",
|
|
1202
|
-
memberId: "$[1]",
|
|
1203
|
-
startDate: "$[2].startDate",
|
|
1204
|
-
couponCode: "$[2].couponCode"
|
|
1205
|
-
},
|
|
1188
|
+
explicitPathsToArguments: { id: "$[0]", effectiveAt: "$[1]" },
|
|
1206
1189
|
singleArgumentUnchanged: false
|
|
1207
1190
|
},
|
|
1208
|
-
["
|
|
1191
|
+
["_id", "effectiveAt"]
|
|
1209
1192
|
);
|
|
1210
1193
|
sideEffects?.onError?.(err);
|
|
1211
1194
|
throw transformedError;
|
|
1212
1195
|
}
|
|
1213
1196
|
}
|
|
1214
|
-
async function
|
|
1215
|
-
const { httpClient, sideEffects } = arguments[
|
|
1216
|
-
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
1217
|
-
|
|
1218
|
-
couponCode: options?.couponCode
|
|
1219
|
-
});
|
|
1220
|
-
const reqOpts = getPricePreview(payload);
|
|
1197
|
+
async function markAsPaid2(_id) {
|
|
1198
|
+
const { httpClient, sideEffects } = arguments[1];
|
|
1199
|
+
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({ id: _id });
|
|
1200
|
+
const reqOpts = markAsPaid(payload);
|
|
1221
1201
|
sideEffects?.onSiteCall?.();
|
|
1222
1202
|
try {
|
|
1223
1203
|
const result = await httpClient.request(reqOpts);
|
|
1224
1204
|
sideEffects?.onSuccess?.(result);
|
|
1225
|
-
return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data);
|
|
1226
1205
|
} catch (err) {
|
|
1227
1206
|
const transformedError = (0, import_transform_error.transformError)(
|
|
1228
1207
|
err,
|
|
1229
1208
|
{
|
|
1230
1209
|
spreadPathsToArguments: {},
|
|
1231
|
-
explicitPathsToArguments: {
|
|
1232
|
-
planId: "$[0]",
|
|
1233
|
-
couponCode: "$[1].couponCode"
|
|
1234
|
-
},
|
|
1210
|
+
explicitPathsToArguments: { id: "$[0]" },
|
|
1235
1211
|
singleArgumentUnchanged: false
|
|
1236
1212
|
},
|
|
1237
|
-
["
|
|
1213
|
+
["_id"]
|
|
1238
1214
|
);
|
|
1239
1215
|
sideEffects?.onError?.(err);
|
|
1240
1216
|
throw transformedError;
|
|
1241
1217
|
}
|
|
1242
1218
|
}
|
|
1243
|
-
async function
|
|
1244
|
-
const { httpClient, sideEffects } = arguments[
|
|
1245
|
-
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
1246
|
-
|
|
1247
|
-
fieldSet: options?.fieldSet
|
|
1248
|
-
});
|
|
1249
|
-
const reqOpts = managementGetOrder(payload);
|
|
1219
|
+
async function pauseOrder2(_id) {
|
|
1220
|
+
const { httpClient, sideEffects } = arguments[1];
|
|
1221
|
+
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({ id: _id });
|
|
1222
|
+
const reqOpts = pauseOrder(payload);
|
|
1250
1223
|
sideEffects?.onSiteCall?.();
|
|
1251
1224
|
try {
|
|
1252
1225
|
const result = await httpClient.request(reqOpts);
|
|
1253
1226
|
sideEffects?.onSuccess?.(result);
|
|
1254
|
-
return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data);
|
|
1255
1227
|
} catch (err) {
|
|
1256
1228
|
const transformedError = (0, import_transform_error.transformError)(
|
|
1257
1229
|
err,
|
|
1258
1230
|
{
|
|
1259
1231
|
spreadPathsToArguments: {},
|
|
1260
|
-
explicitPathsToArguments: { id: "$[0]"
|
|
1232
|
+
explicitPathsToArguments: { id: "$[0]" },
|
|
1261
1233
|
singleArgumentUnchanged: false
|
|
1262
1234
|
},
|
|
1263
|
-
["_id"
|
|
1235
|
+
["_id"]
|
|
1264
1236
|
);
|
|
1265
1237
|
sideEffects?.onError?.(err);
|
|
1266
1238
|
throw transformedError;
|
|
1267
1239
|
}
|
|
1268
1240
|
}
|
|
1269
|
-
async function
|
|
1241
|
+
async function resumeOrder2(_id) {
|
|
1270
1242
|
const { httpClient, sideEffects } = arguments[1];
|
|
1271
|
-
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
1272
|
-
|
|
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);
|
|
1243
|
+
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({ id: _id });
|
|
1244
|
+
const reqOpts = resumeOrder(payload);
|
|
1283
1245
|
sideEffects?.onSiteCall?.();
|
|
1284
1246
|
try {
|
|
1285
1247
|
const result = await httpClient.request(reqOpts);
|
|
1286
1248
|
sideEffects?.onSuccess?.(result);
|
|
1287
|
-
return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data);
|
|
1288
1249
|
} catch (err) {
|
|
1289
1250
|
const transformedError = (0, import_transform_error.transformError)(
|
|
1290
1251
|
err,
|
|
1291
1252
|
{
|
|
1292
1253
|
spreadPathsToArguments: {},
|
|
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
|
-
},
|
|
1254
|
+
explicitPathsToArguments: { id: "$[0]" },
|
|
1304
1255
|
singleArgumentUnchanged: false
|
|
1305
1256
|
},
|
|
1306
|
-
["
|
|
1257
|
+
["_id"]
|
|
1307
1258
|
);
|
|
1308
1259
|
sideEffects?.onError?.(err);
|
|
1309
1260
|
throw transformedError;
|
|
1310
1261
|
}
|
|
1311
1262
|
}
|
|
1312
|
-
async function
|
|
1263
|
+
async function createOnlineOrder2(planId, options) {
|
|
1313
1264
|
const { httpClient, sideEffects } = arguments[2];
|
|
1314
1265
|
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
1315
|
-
|
|
1316
|
-
|
|
1266
|
+
planId,
|
|
1267
|
+
startDate: options?.startDate,
|
|
1268
|
+
couponCode: options?.couponCode,
|
|
1269
|
+
onBehalf: options?.onBehalf,
|
|
1270
|
+
submissionId: options?.submissionId
|
|
1317
1271
|
});
|
|
1318
|
-
const reqOpts =
|
|
1272
|
+
const reqOpts = createOnlineOrder(payload);
|
|
1319
1273
|
sideEffects?.onSiteCall?.();
|
|
1320
1274
|
try {
|
|
1321
1275
|
const result = await httpClient.request(reqOpts);
|
|
1322
1276
|
sideEffects?.onSuccess?.(result);
|
|
1277
|
+
return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data);
|
|
1323
1278
|
} catch (err) {
|
|
1324
1279
|
const transformedError = (0, import_transform_error.transformError)(
|
|
1325
1280
|
err,
|
|
1326
1281
|
{
|
|
1327
1282
|
spreadPathsToArguments: {},
|
|
1328
|
-
explicitPathsToArguments: {
|
|
1283
|
+
explicitPathsToArguments: {
|
|
1284
|
+
planId: "$[0]",
|
|
1285
|
+
startDate: "$[1].startDate",
|
|
1286
|
+
couponCode: "$[1].couponCode",
|
|
1287
|
+
onBehalf: "$[1].onBehalf",
|
|
1288
|
+
submissionId: "$[1].submissionId"
|
|
1289
|
+
},
|
|
1329
1290
|
singleArgumentUnchanged: false
|
|
1330
1291
|
},
|
|
1331
|
-
["
|
|
1292
|
+
["planId", "options"]
|
|
1332
1293
|
);
|
|
1333
1294
|
sideEffects?.onError?.(err);
|
|
1334
1295
|
throw transformedError;
|
|
1335
1296
|
}
|
|
1336
1297
|
}
|
|
1337
|
-
async function
|
|
1338
|
-
const { httpClient, sideEffects } = arguments[
|
|
1298
|
+
async function createOfflineOrder2(planId, memberId, options) {
|
|
1299
|
+
const { httpClient, sideEffects } = arguments[3];
|
|
1339
1300
|
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
1340
|
-
|
|
1341
|
-
|
|
1301
|
+
planId,
|
|
1302
|
+
memberId,
|
|
1303
|
+
startDate: options?.startDate,
|
|
1304
|
+
paid: options?.paid,
|
|
1305
|
+
couponCode: options?.couponCode,
|
|
1306
|
+
submissionId: options?.submissionId
|
|
1342
1307
|
});
|
|
1343
|
-
const reqOpts =
|
|
1308
|
+
const reqOpts = createOfflineOrder(payload);
|
|
1344
1309
|
sideEffects?.onSiteCall?.();
|
|
1345
1310
|
try {
|
|
1346
1311
|
const result = await httpClient.request(reqOpts);
|
|
1347
1312
|
sideEffects?.onSuccess?.(result);
|
|
1313
|
+
return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data);
|
|
1348
1314
|
} catch (err) {
|
|
1349
1315
|
const transformedError = (0, import_transform_error.transformError)(
|
|
1350
1316
|
err,
|
|
1351
1317
|
{
|
|
1352
1318
|
spreadPathsToArguments: {},
|
|
1353
|
-
explicitPathsToArguments: {
|
|
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
|
+
},
|
|
1354
1327
|
singleArgumentUnchanged: false
|
|
1355
1328
|
},
|
|
1356
|
-
["
|
|
1329
|
+
["planId", "memberId", "options"]
|
|
1357
1330
|
);
|
|
1358
1331
|
sideEffects?.onError?.(err);
|
|
1359
1332
|
throw transformedError;
|
|
1360
1333
|
}
|
|
1361
1334
|
}
|
|
1362
|
-
async function
|
|
1363
|
-
const { httpClient, sideEffects } = arguments[
|
|
1364
|
-
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
1365
|
-
|
|
1335
|
+
async function getOnlineOrderPreview2(planId, options) {
|
|
1336
|
+
const { httpClient, sideEffects } = arguments[2];
|
|
1337
|
+
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
1338
|
+
planId,
|
|
1339
|
+
startDate: options?.startDate,
|
|
1340
|
+
couponCode: options?.couponCode
|
|
1341
|
+
});
|
|
1342
|
+
const reqOpts = getOnlineOrderPreview(payload);
|
|
1366
1343
|
sideEffects?.onSiteCall?.();
|
|
1367
1344
|
try {
|
|
1368
1345
|
const result = await httpClient.request(reqOpts);
|
|
1369
1346
|
sideEffects?.onSuccess?.(result);
|
|
1347
|
+
return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data);
|
|
1370
1348
|
} catch (err) {
|
|
1371
1349
|
const transformedError = (0, import_transform_error.transformError)(
|
|
1372
1350
|
err,
|
|
1373
1351
|
{
|
|
1374
1352
|
spreadPathsToArguments: {},
|
|
1375
|
-
explicitPathsToArguments: {
|
|
1353
|
+
explicitPathsToArguments: {
|
|
1354
|
+
planId: "$[0]",
|
|
1355
|
+
startDate: "$[1].startDate",
|
|
1356
|
+
couponCode: "$[1].couponCode"
|
|
1357
|
+
},
|
|
1376
1358
|
singleArgumentUnchanged: false
|
|
1377
1359
|
},
|
|
1378
|
-
["
|
|
1360
|
+
["planId", "options"]
|
|
1379
1361
|
);
|
|
1380
1362
|
sideEffects?.onError?.(err);
|
|
1381
1363
|
throw transformedError;
|
|
1382
1364
|
}
|
|
1383
1365
|
}
|
|
1384
|
-
async function
|
|
1385
|
-
const { httpClient, sideEffects } = arguments[
|
|
1386
|
-
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
1387
|
-
|
|
1366
|
+
async function getOfflineOrderPreview2(planId, memberId, options) {
|
|
1367
|
+
const { httpClient, sideEffects } = arguments[3];
|
|
1368
|
+
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
1369
|
+
planId,
|
|
1370
|
+
memberId,
|
|
1371
|
+
startDate: options?.startDate,
|
|
1372
|
+
couponCode: options?.couponCode
|
|
1373
|
+
});
|
|
1374
|
+
const reqOpts = getOfflineOrderPreview(payload);
|
|
1388
1375
|
sideEffects?.onSiteCall?.();
|
|
1389
1376
|
try {
|
|
1390
1377
|
const result = await httpClient.request(reqOpts);
|
|
1391
1378
|
sideEffects?.onSuccess?.(result);
|
|
1379
|
+
return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data);
|
|
1392
1380
|
} catch (err) {
|
|
1393
1381
|
const transformedError = (0, import_transform_error.transformError)(
|
|
1394
1382
|
err,
|
|
1395
1383
|
{
|
|
1396
1384
|
spreadPathsToArguments: {},
|
|
1397
|
-
explicitPathsToArguments: {
|
|
1385
|
+
explicitPathsToArguments: {
|
|
1386
|
+
planId: "$[0]",
|
|
1387
|
+
memberId: "$[1]",
|
|
1388
|
+
startDate: "$[2].startDate",
|
|
1389
|
+
couponCode: "$[2].couponCode"
|
|
1390
|
+
},
|
|
1398
1391
|
singleArgumentUnchanged: false
|
|
1399
1392
|
},
|
|
1400
|
-
["
|
|
1393
|
+
["planId", "memberId", "options"]
|
|
1401
1394
|
);
|
|
1402
1395
|
sideEffects?.onError?.(err);
|
|
1403
1396
|
throw transformedError;
|
|
1404
1397
|
}
|
|
1405
1398
|
}
|
|
1406
|
-
async function
|
|
1407
|
-
const { httpClient, sideEffects } = arguments[
|
|
1408
|
-
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
1409
|
-
|
|
1399
|
+
async function getPricePreview2(planId, options) {
|
|
1400
|
+
const { httpClient, sideEffects } = arguments[2];
|
|
1401
|
+
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
1402
|
+
planId,
|
|
1403
|
+
couponCode: options?.couponCode
|
|
1404
|
+
});
|
|
1405
|
+
const reqOpts = getPricePreview(payload);
|
|
1410
1406
|
sideEffects?.onSiteCall?.();
|
|
1411
1407
|
try {
|
|
1412
1408
|
const result = await httpClient.request(reqOpts);
|
|
1413
1409
|
sideEffects?.onSuccess?.(result);
|
|
1410
|
+
return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data);
|
|
1414
1411
|
} catch (err) {
|
|
1415
1412
|
const transformedError = (0, import_transform_error.transformError)(
|
|
1416
1413
|
err,
|
|
1417
1414
|
{
|
|
1418
1415
|
spreadPathsToArguments: {},
|
|
1419
|
-
explicitPathsToArguments: {
|
|
1416
|
+
explicitPathsToArguments: {
|
|
1417
|
+
planId: "$[0]",
|
|
1418
|
+
couponCode: "$[1].couponCode"
|
|
1419
|
+
},
|
|
1420
1420
|
singleArgumentUnchanged: false
|
|
1421
1421
|
},
|
|
1422
|
-
["
|
|
1422
|
+
["planId", "options"]
|
|
1423
1423
|
);
|
|
1424
1424
|
sideEffects?.onError?.(err);
|
|
1425
1425
|
throw transformedError;
|
|
@@ -1519,48 +1519,6 @@ 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
|
-
}
|
|
1564
1522
|
function managementGetOrder3(httpClient) {
|
|
1565
1523
|
return (_id, options) => managementGetOrder2(
|
|
1566
1524
|
_id,
|
|
@@ -1613,6 +1571,48 @@ function resumeOrder3(httpClient) {
|
|
|
1613
1571
|
{ httpClient }
|
|
1614
1572
|
);
|
|
1615
1573
|
}
|
|
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,8 @@ function requestCancellation3(httpClient) {
|
|
|
1636
1636
|
{ httpClient }
|
|
1637
1637
|
);
|
|
1638
1638
|
}
|
|
1639
|
-
var
|
|
1640
|
-
"wix.pricing_plans.v2.
|
|
1641
|
-
true,
|
|
1642
|
-
(event) => (0, import_rename_all_nested_keys2.renameKeysFromRESTResponseToSDKResponse)(
|
|
1643
|
-
(0, import_transform_paths2.transformPaths)(event, [
|
|
1644
|
-
{
|
|
1645
|
-
transformFn: import_timestamp3.transformRESTTimestampToSDKTimestamp,
|
|
1646
|
-
paths: [
|
|
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
|
-
{ path: "metadata.eventTime" }
|
|
1660
|
-
]
|
|
1661
|
-
}
|
|
1662
|
-
])
|
|
1663
|
-
)
|
|
1664
|
-
)();
|
|
1665
|
-
var onOrderStartDateChanged = /* @__PURE__ */ (0, import_sdk_types.EventDefinition)(
|
|
1666
|
-
"wix.pricing_plans.v2.order_start_date_changed",
|
|
1639
|
+
var onOrderAutoRenewCanceled = /* @__PURE__ */ (0, import_sdk_types.EventDefinition)(
|
|
1640
|
+
"wix.pricing_plans.v2.order_auto_renew_canceled",
|
|
1667
1641
|
true,
|
|
1668
1642
|
(event) => (0, import_rename_all_nested_keys2.renameKeysFromRESTResponseToSDKResponse)(
|
|
1669
1643
|
(0, import_transform_paths2.transformPaths)(event, [
|
|
@@ -1688,34 +1662,8 @@ var onOrderStartDateChanged = /* @__PURE__ */ (0, import_sdk_types.EventDefiniti
|
|
|
1688
1662
|
])
|
|
1689
1663
|
)
|
|
1690
1664
|
)();
|
|
1691
|
-
var
|
|
1692
|
-
"wix.pricing_plans.v2.
|
|
1693
|
-
true,
|
|
1694
|
-
(event) => (0, import_rename_all_nested_keys2.renameKeysFromRESTResponseToSDKResponse)(
|
|
1695
|
-
(0, import_transform_paths2.transformPaths)(event, [
|
|
1696
|
-
{
|
|
1697
|
-
transformFn: import_timestamp3.transformRESTTimestampToSDKTimestamp,
|
|
1698
|
-
paths: [
|
|
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
|
-
{ path: "metadata.eventTime" }
|
|
1712
|
-
]
|
|
1713
|
-
}
|
|
1714
|
-
])
|
|
1715
|
-
)
|
|
1716
|
-
)();
|
|
1717
|
-
var onOrderAutoRenewCanceled = /* @__PURE__ */ (0, import_sdk_types.EventDefinition)(
|
|
1718
|
-
"wix.pricing_plans.v2.order_auto_renew_canceled",
|
|
1665
|
+
var onOrderCanceled = /* @__PURE__ */ (0, import_sdk_types.EventDefinition)(
|
|
1666
|
+
"wix.pricing_plans.v2.order_canceled",
|
|
1719
1667
|
true,
|
|
1720
1668
|
(event) => (0, import_rename_all_nested_keys2.renameKeysFromRESTResponseToSDKResponse)(
|
|
1721
1669
|
(0, import_transform_paths2.transformPaths)(event, [
|
|
@@ -1740,8 +1688,8 @@ var onOrderAutoRenewCanceled = /* @__PURE__ */ (0, import_sdk_types.EventDefinit
|
|
|
1740
1688
|
])
|
|
1741
1689
|
)
|
|
1742
1690
|
)();
|
|
1743
|
-
var
|
|
1744
|
-
"wix.pricing_plans.v2.
|
|
1691
|
+
var onOrderCycleStarted = /* @__PURE__ */ (0, import_sdk_types.EventDefinition)(
|
|
1692
|
+
"wix.pricing_plans.v2.order_cycle_started",
|
|
1745
1693
|
true,
|
|
1746
1694
|
(event) => (0, import_rename_all_nested_keys2.renameKeysFromRESTResponseToSDKResponse)(
|
|
1747
1695
|
(0, import_transform_paths2.transformPaths)(event, [
|
|
@@ -1766,8 +1714,8 @@ var onOrderCanceled = /* @__PURE__ */ (0, import_sdk_types.EventDefinition)(
|
|
|
1766
1714
|
])
|
|
1767
1715
|
)
|
|
1768
1716
|
)();
|
|
1769
|
-
var
|
|
1770
|
-
"wix.pricing_plans.v2.
|
|
1717
|
+
var onOrderEndDatePostponed = /* @__PURE__ */ (0, import_sdk_types.EventDefinition)(
|
|
1718
|
+
"wix.pricing_plans.v2.order_end_date_postponed",
|
|
1771
1719
|
true,
|
|
1772
1720
|
(event) => (0, import_rename_all_nested_keys2.renameKeysFromRESTResponseToSDKResponse)(
|
|
1773
1721
|
(0, import_transform_paths2.transformPaths)(event, [
|
|
@@ -1792,8 +1740,8 @@ var onOrderCycleStarted = /* @__PURE__ */ (0, import_sdk_types.EventDefinition)(
|
|
|
1792
1740
|
])
|
|
1793
1741
|
)
|
|
1794
1742
|
)();
|
|
1795
|
-
var
|
|
1796
|
-
"wix.pricing_plans.v2.
|
|
1743
|
+
var onOrderEnded = /* @__PURE__ */ (0, import_sdk_types.EventDefinition)(
|
|
1744
|
+
"wix.pricing_plans.v2.order_ended",
|
|
1797
1745
|
true,
|
|
1798
1746
|
(event) => (0, import_rename_all_nested_keys2.renameKeysFromRESTResponseToSDKResponse)(
|
|
1799
1747
|
(0, import_transform_paths2.transformPaths)(event, [
|
|
@@ -1818,8 +1766,8 @@ var onOrderEndDatePostponed = /* @__PURE__ */ (0, import_sdk_types.EventDefiniti
|
|
|
1818
1766
|
])
|
|
1819
1767
|
)
|
|
1820
1768
|
)();
|
|
1821
|
-
var
|
|
1822
|
-
"wix.pricing_plans.v2.
|
|
1769
|
+
var onOrderMarkedAsPaid = /* @__PURE__ */ (0, import_sdk_types.EventDefinition)(
|
|
1770
|
+
"wix.pricing_plans.v2.order_marked_as_paid",
|
|
1823
1771
|
true,
|
|
1824
1772
|
(event) => (0, import_rename_all_nested_keys2.renameKeysFromRESTResponseToSDKResponse)(
|
|
1825
1773
|
(0, import_transform_paths2.transformPaths)(event, [
|
|
@@ -1844,8 +1792,8 @@ var onOrderEnded = /* @__PURE__ */ (0, import_sdk_types.EventDefinition)(
|
|
|
1844
1792
|
])
|
|
1845
1793
|
)
|
|
1846
1794
|
)();
|
|
1847
|
-
var
|
|
1848
|
-
"wix.pricing_plans.v2.
|
|
1795
|
+
var onOrderPaused = /* @__PURE__ */ (0, import_sdk_types.EventDefinition)(
|
|
1796
|
+
"wix.pricing_plans.v2.order_paused",
|
|
1849
1797
|
true,
|
|
1850
1798
|
(event) => (0, import_rename_all_nested_keys2.renameKeysFromRESTResponseToSDKResponse)(
|
|
1851
1799
|
(0, import_transform_paths2.transformPaths)(event, [
|
|
@@ -1870,8 +1818,8 @@ var onOrderMarkedAsPaid = /* @__PURE__ */ (0, import_sdk_types.EventDefinition)(
|
|
|
1870
1818
|
])
|
|
1871
1819
|
)
|
|
1872
1820
|
)();
|
|
1873
|
-
var
|
|
1874
|
-
"wix.pricing_plans.v2.
|
|
1821
|
+
var onOrderPurchased = /* @__PURE__ */ (0, import_sdk_types.EventDefinition)(
|
|
1822
|
+
"wix.pricing_plans.v2.order_purchased",
|
|
1875
1823
|
true,
|
|
1876
1824
|
(event) => (0, import_rename_all_nested_keys2.renameKeysFromRESTResponseToSDKResponse)(
|
|
1877
1825
|
(0, import_transform_paths2.transformPaths)(event, [
|
|
@@ -1896,8 +1844,8 @@ var onOrderPaused = /* @__PURE__ */ (0, import_sdk_types.EventDefinition)(
|
|
|
1896
1844
|
])
|
|
1897
1845
|
)
|
|
1898
1846
|
)();
|
|
1899
|
-
var
|
|
1900
|
-
"wix.pricing_plans.v2.
|
|
1847
|
+
var onOrderResumed = /* @__PURE__ */ (0, import_sdk_types.EventDefinition)(
|
|
1848
|
+
"wix.pricing_plans.v2.order_resumed",
|
|
1901
1849
|
true,
|
|
1902
1850
|
(event) => (0, import_rename_all_nested_keys2.renameKeysFromRESTResponseToSDKResponse)(
|
|
1903
1851
|
(0, import_transform_paths2.transformPaths)(event, [
|
|
@@ -1922,8 +1870,8 @@ var onOrderPurchased = /* @__PURE__ */ (0, import_sdk_types.EventDefinition)(
|
|
|
1922
1870
|
])
|
|
1923
1871
|
)
|
|
1924
1872
|
)();
|
|
1925
|
-
var
|
|
1926
|
-
"wix.pricing_plans.v2.
|
|
1873
|
+
var onOrderStarted = /* @__PURE__ */ (0, import_sdk_types.EventDefinition)(
|
|
1874
|
+
"wix.pricing_plans.v2.order_started",
|
|
1927
1875
|
true,
|
|
1928
1876
|
(event) => (0, import_rename_all_nested_keys2.renameKeysFromRESTResponseToSDKResponse)(
|
|
1929
1877
|
(0, import_transform_paths2.transformPaths)(event, [
|
|
@@ -1948,8 +1896,60 @@ var onOrderResumed = /* @__PURE__ */ (0, import_sdk_types.EventDefinition)(
|
|
|
1948
1896
|
])
|
|
1949
1897
|
)
|
|
1950
1898
|
)();
|
|
1951
|
-
var
|
|
1952
|
-
"wix.pricing_plans.v2.
|
|
1899
|
+
var onOrderUpdated = /* @__PURE__ */ (0, import_sdk_types.EventDefinition)(
|
|
1900
|
+
"wix.pricing_plans.v2.order_updated",
|
|
1901
|
+
true,
|
|
1902
|
+
(event) => (0, import_rename_all_nested_keys2.renameKeysFromRESTResponseToSDKResponse)(
|
|
1903
|
+
(0, import_transform_paths2.transformPaths)(event, [
|
|
1904
|
+
{
|
|
1905
|
+
transformFn: import_timestamp3.transformRESTTimestampToSDKTimestamp,
|
|
1906
|
+
paths: [
|
|
1907
|
+
{ path: "entity.startDate" },
|
|
1908
|
+
{ path: "entity.endDate" },
|
|
1909
|
+
{ path: "entity.earliestEndDate" },
|
|
1910
|
+
{ path: "entity.createdDate" },
|
|
1911
|
+
{ path: "entity.updatedDate" },
|
|
1912
|
+
{ path: "entity.cancellation.requestedDate" },
|
|
1913
|
+
{ path: "entity.pausePeriods.pauseDate" },
|
|
1914
|
+
{ path: "entity.pausePeriods.resumeDate" },
|
|
1915
|
+
{ path: "entity.currentCycle.startedDate" },
|
|
1916
|
+
{ path: "entity.currentCycle.endedDate" },
|
|
1917
|
+
{ path: "entity.cycles.startedDate" },
|
|
1918
|
+
{ path: "entity.cycles.endedDate" },
|
|
1919
|
+
{ path: "metadata.eventTime" }
|
|
1920
|
+
]
|
|
1921
|
+
}
|
|
1922
|
+
])
|
|
1923
|
+
)
|
|
1924
|
+
)();
|
|
1925
|
+
var onOrderCreated = /* @__PURE__ */ (0, import_sdk_types.EventDefinition)(
|
|
1926
|
+
"wix.pricing_plans.v2.order_created",
|
|
1927
|
+
true,
|
|
1928
|
+
(event) => (0, import_rename_all_nested_keys2.renameKeysFromRESTResponseToSDKResponse)(
|
|
1929
|
+
(0, import_transform_paths2.transformPaths)(event, [
|
|
1930
|
+
{
|
|
1931
|
+
transformFn: import_timestamp3.transformRESTTimestampToSDKTimestamp,
|
|
1932
|
+
paths: [
|
|
1933
|
+
{ path: "entity.startDate" },
|
|
1934
|
+
{ path: "entity.endDate" },
|
|
1935
|
+
{ path: "entity.earliestEndDate" },
|
|
1936
|
+
{ path: "entity.createdDate" },
|
|
1937
|
+
{ path: "entity.updatedDate" },
|
|
1938
|
+
{ path: "entity.cancellation.requestedDate" },
|
|
1939
|
+
{ path: "entity.pausePeriods.pauseDate" },
|
|
1940
|
+
{ path: "entity.pausePeriods.resumeDate" },
|
|
1941
|
+
{ path: "entity.currentCycle.startedDate" },
|
|
1942
|
+
{ path: "entity.currentCycle.endedDate" },
|
|
1943
|
+
{ path: "entity.cycles.startedDate" },
|
|
1944
|
+
{ path: "entity.cycles.endedDate" },
|
|
1945
|
+
{ path: "metadata.eventTime" }
|
|
1946
|
+
]
|
|
1947
|
+
}
|
|
1948
|
+
])
|
|
1949
|
+
)
|
|
1950
|
+
)();
|
|
1951
|
+
var onOrderStartDateChanged = /* @__PURE__ */ (0, import_sdk_types.EventDefinition)(
|
|
1952
|
+
"wix.pricing_plans.v2.order_start_date_changed",
|
|
1953
1953
|
true,
|
|
1954
1954
|
(event) => (0, import_rename_all_nested_keys2.renameKeysFromRESTResponseToSDKResponse)(
|
|
1955
1955
|
(0, import_transform_paths2.transformPaths)(event, [
|
|
@@ -1978,11 +1978,6 @@ var onOrderStarted = /* @__PURE__ */ (0, import_sdk_types.EventDefinition)(
|
|
|
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);
|
|
1986
1981
|
var managementGetOrder4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(managementGetOrder3);
|
|
1987
1982
|
var managementListOrders4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(managementListOrders3);
|
|
1988
1983
|
var postponeEndDate4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(postponeEndDate3);
|
|
@@ -1990,14 +1985,14 @@ var cancelOrder4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(ca
|
|
|
1990
1985
|
var markAsPaid4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(markAsPaid3);
|
|
1991
1986
|
var pauseOrder4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(pauseOrder3);
|
|
1992
1987
|
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);
|
|
2001
1996
|
var onOrderAutoRenewCanceled2 = /* @__PURE__ */ (0, import_event_definition_modules.createEventModule)(
|
|
2002
1997
|
onOrderAutoRenewCanceled
|
|
2003
1998
|
);
|
|
@@ -2020,6 +2015,11 @@ var onOrderPurchased2 = /* @__PURE__ */ (0, import_event_definition_modules.crea
|
|
|
2020
2015
|
);
|
|
2021
2016
|
var onOrderResumed2 = /* @__PURE__ */ (0, import_event_definition_modules.createEventModule)(onOrderResumed);
|
|
2022
2017
|
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,
|