@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
|
@@ -152,317 +152,323 @@ function resolveComWixpressMembershipV2OrdersMemberMemberOrdersServiceUrl(opts)
|
|
|
152
152
|
};
|
|
153
153
|
return (0, import_rest_modules2.resolveUrl)(Object.assign(opts, { domainToMappings }));
|
|
154
154
|
}
|
|
155
|
-
function
|
|
155
|
+
function resolveComWixpressMembershipV2OrdersOrderManagementServiceUrl(opts) {
|
|
156
156
|
const domainToMappings = {
|
|
157
157
|
"api._api_base_domain_": [
|
|
158
158
|
{
|
|
159
|
-
srcPath: "/
|
|
159
|
+
srcPath: "/order-management-service-proxy",
|
|
160
160
|
destPath: ""
|
|
161
161
|
}
|
|
162
162
|
],
|
|
163
163
|
"*.dev.wix-code.com": [
|
|
164
164
|
{
|
|
165
|
-
srcPath: "/_api/paid-plans/v2/
|
|
166
|
-
destPath: "/v2/
|
|
165
|
+
srcPath: "/_api/paid-plans/v2/orders",
|
|
166
|
+
destPath: "/v2/orders"
|
|
167
167
|
},
|
|
168
168
|
{
|
|
169
|
-
srcPath: "/_api/pricing-plans/v2/
|
|
170
|
-
destPath: "/v2/
|
|
169
|
+
srcPath: "/_api/pricing-plans/v2/orders",
|
|
170
|
+
destPath: "/v2/orders"
|
|
171
171
|
}
|
|
172
172
|
],
|
|
173
173
|
"*.wixapps.net": [
|
|
174
174
|
{
|
|
175
|
-
srcPath: "/_api/paid-plans/v2/
|
|
176
|
-
destPath: "/v2/
|
|
175
|
+
srcPath: "/_api/paid-plans/v2/orders",
|
|
176
|
+
destPath: "/v2/orders"
|
|
177
177
|
}
|
|
178
178
|
],
|
|
179
179
|
"editor-flow.wixapps.net": [
|
|
180
180
|
{
|
|
181
|
-
srcPath: "/_api/paid-plans/v2/
|
|
182
|
-
destPath: "/v2/
|
|
181
|
+
srcPath: "/_api/paid-plans/v2/orders",
|
|
182
|
+
destPath: "/v2/orders"
|
|
183
183
|
}
|
|
184
184
|
],
|
|
185
185
|
"editor._base_domain_": [
|
|
186
186
|
{
|
|
187
|
-
srcPath: "/_api/paid-plans/v2/
|
|
188
|
-
destPath: "/v2/
|
|
187
|
+
srcPath: "/_api/paid-plans/v2/orders",
|
|
188
|
+
destPath: "/v2/orders"
|
|
189
189
|
},
|
|
190
190
|
{
|
|
191
|
-
srcPath: "/_api/pricing-plans/v2/
|
|
192
|
-
destPath: "/v2/
|
|
191
|
+
srcPath: "/_api/pricing-plans/v2/orders",
|
|
192
|
+
destPath: "/v2/orders"
|
|
193
193
|
}
|
|
194
194
|
],
|
|
195
195
|
"blocks._base_domain_": [
|
|
196
196
|
{
|
|
197
|
-
srcPath: "/_api/paid-plans/v2/
|
|
198
|
-
destPath: "/v2/
|
|
197
|
+
srcPath: "/_api/paid-plans/v2/orders",
|
|
198
|
+
destPath: "/v2/orders"
|
|
199
199
|
},
|
|
200
200
|
{
|
|
201
|
-
srcPath: "/_api/pricing-plans/v2/
|
|
202
|
-
destPath: "/v2/
|
|
201
|
+
srcPath: "/_api/pricing-plans/v2/orders",
|
|
202
|
+
destPath: "/v2/orders"
|
|
203
203
|
}
|
|
204
204
|
],
|
|
205
205
|
"create.editorx": [
|
|
206
206
|
{
|
|
207
|
-
srcPath: "/_api/paid-plans/v2/
|
|
208
|
-
destPath: "/v2/
|
|
207
|
+
srcPath: "/_api/paid-plans/v2/orders",
|
|
208
|
+
destPath: "/v2/orders"
|
|
209
209
|
},
|
|
210
210
|
{
|
|
211
|
-
srcPath: "/_api/pricing-plans/v2/
|
|
212
|
-
destPath: "/v2/
|
|
211
|
+
srcPath: "/_api/pricing-plans/v2/orders",
|
|
212
|
+
destPath: "/v2/orders"
|
|
213
213
|
}
|
|
214
214
|
],
|
|
215
215
|
"editor.wixapps.net": [
|
|
216
216
|
{
|
|
217
|
-
srcPath: "/_api/paid-plans/v2/
|
|
218
|
-
destPath: "/v2/
|
|
217
|
+
srcPath: "/_api/paid-plans/v2/orders",
|
|
218
|
+
destPath: "/v2/orders"
|
|
219
219
|
},
|
|
220
220
|
{
|
|
221
|
-
srcPath: "/_api/pricing-plans/v2/
|
|
222
|
-
destPath: "/v2/
|
|
221
|
+
srcPath: "/_api/pricing-plans/v2/orders",
|
|
222
|
+
destPath: "/v2/orders"
|
|
223
223
|
}
|
|
224
224
|
],
|
|
225
225
|
"forums._base_domain_": [
|
|
226
226
|
{
|
|
227
|
-
srcPath: "/_api/paid-plans/v2/
|
|
228
|
-
destPath: "/v2/
|
|
227
|
+
srcPath: "/_api/paid-plans/v2/orders",
|
|
228
|
+
destPath: "/v2/orders"
|
|
229
229
|
}
|
|
230
230
|
],
|
|
231
231
|
"forums.wixapps.net": [
|
|
232
232
|
{
|
|
233
|
-
srcPath: "/_api/paid-plans/v2/
|
|
234
|
-
destPath: "/v2/
|
|
233
|
+
srcPath: "/_api/paid-plans/v2/orders",
|
|
234
|
+
destPath: "/v2/orders"
|
|
235
235
|
}
|
|
236
236
|
],
|
|
237
237
|
"manage._base_domain_": [
|
|
238
238
|
{
|
|
239
|
-
srcPath: "/_api/pricing-plans/v2/
|
|
240
|
-
destPath: "/v2/
|
|
241
|
-
},
|
|
242
|
-
{
|
|
243
|
-
srcPath: "/_api/paid-plans/v2/checkout",
|
|
244
|
-
destPath: "/v2/checkout"
|
|
239
|
+
srcPath: "/_api/pricing-plans/v2/orders",
|
|
240
|
+
destPath: "/v2/orders"
|
|
245
241
|
},
|
|
246
242
|
{
|
|
247
|
-
srcPath: "/
|
|
248
|
-
destPath: "/v2/
|
|
243
|
+
srcPath: "/_api/paid-plans/v2/orders",
|
|
244
|
+
destPath: "/v2/orders"
|
|
249
245
|
}
|
|
250
246
|
],
|
|
251
247
|
"www.wixapis.com": [
|
|
252
248
|
{
|
|
253
|
-
srcPath: "/pricing-plans/v2/
|
|
254
|
-
destPath: "/v2/
|
|
249
|
+
srcPath: "/pricing-plans/v2/orders",
|
|
250
|
+
destPath: "/v2/orders"
|
|
255
251
|
}
|
|
256
252
|
],
|
|
257
253
|
_: [
|
|
258
254
|
{
|
|
259
|
-
srcPath: "/
|
|
260
|
-
destPath: "/v2/
|
|
261
|
-
},
|
|
262
|
-
{
|
|
263
|
-
srcPath: "/_api/paid-plans/v2/checkout",
|
|
264
|
-
destPath: "/v2/checkout"
|
|
255
|
+
srcPath: "/_api/paid-plans/v2/orders",
|
|
256
|
+
destPath: "/v2/orders"
|
|
265
257
|
},
|
|
266
258
|
{
|
|
267
|
-
srcPath: "/_api/pricing-plans/v2/
|
|
268
|
-
destPath: "/v2/
|
|
259
|
+
srcPath: "/_api/pricing-plans/v2/orders",
|
|
260
|
+
destPath: "/v2/orders"
|
|
269
261
|
}
|
|
270
262
|
],
|
|
271
263
|
"*.pub.wix-code.com": [
|
|
272
264
|
{
|
|
273
|
-
srcPath: "/_api/paid-plans/v2/
|
|
274
|
-
destPath: "/v2/
|
|
265
|
+
srcPath: "/_api/paid-plans/v2/orders",
|
|
266
|
+
destPath: "/v2/orders"
|
|
275
267
|
}
|
|
276
268
|
],
|
|
277
269
|
"www._base_domain_": [
|
|
278
270
|
{
|
|
279
|
-
srcPath: "/_api/paid-plans/v2/
|
|
280
|
-
destPath: "/v2/
|
|
271
|
+
srcPath: "/_api/paid-plans/v2/orders",
|
|
272
|
+
destPath: "/v2/orders"
|
|
281
273
|
}
|
|
282
274
|
],
|
|
283
275
|
"apps._base_domain_": [
|
|
284
276
|
{
|
|
285
|
-
srcPath: "/_api/paid-plans/v2/
|
|
286
|
-
destPath: "/v2/
|
|
277
|
+
srcPath: "/_api/paid-plans/v2/orders",
|
|
278
|
+
destPath: "/v2/orders"
|
|
287
279
|
},
|
|
288
280
|
{
|
|
289
|
-
srcPath: "/_api/pricing-plans/v2/
|
|
290
|
-
destPath: "/v2/
|
|
281
|
+
srcPath: "/_api/pricing-plans/v2/orders",
|
|
282
|
+
destPath: "/v2/orders"
|
|
291
283
|
}
|
|
292
284
|
],
|
|
293
285
|
"dev._base_domain_": [
|
|
294
286
|
{
|
|
295
|
-
srcPath: "/_api/paid-plans/v2/
|
|
296
|
-
destPath: "/v2/
|
|
287
|
+
srcPath: "/_api/paid-plans/v2/orders",
|
|
288
|
+
destPath: "/v2/orders"
|
|
297
289
|
},
|
|
298
290
|
{
|
|
299
|
-
srcPath: "/_api/pricing-plans/v2/
|
|
300
|
-
destPath: "/v2/
|
|
291
|
+
srcPath: "/_api/pricing-plans/v2/orders",
|
|
292
|
+
destPath: "/v2/orders"
|
|
301
293
|
}
|
|
302
294
|
]
|
|
303
295
|
};
|
|
304
296
|
return (0, import_rest_modules2.resolveUrl)(Object.assign(opts, { domainToMappings }));
|
|
305
297
|
}
|
|
306
|
-
function
|
|
298
|
+
function resolveComWixpressMembershipV2OrdersCheckoutServiceUrl(opts) {
|
|
307
299
|
const domainToMappings = {
|
|
308
300
|
"api._api_base_domain_": [
|
|
309
301
|
{
|
|
310
|
-
srcPath: "/
|
|
302
|
+
srcPath: "/pricing-plans-checkout-proxy",
|
|
311
303
|
destPath: ""
|
|
312
304
|
}
|
|
313
305
|
],
|
|
314
306
|
"*.dev.wix-code.com": [
|
|
315
307
|
{
|
|
316
|
-
srcPath: "/_api/paid-plans/v2/
|
|
317
|
-
destPath: "/v2/
|
|
308
|
+
srcPath: "/_api/paid-plans/v2/checkout",
|
|
309
|
+
destPath: "/v2/checkout"
|
|
318
310
|
},
|
|
319
311
|
{
|
|
320
|
-
srcPath: "/_api/pricing-plans/v2/
|
|
321
|
-
destPath: "/v2/
|
|
312
|
+
srcPath: "/_api/pricing-plans/v2/checkout",
|
|
313
|
+
destPath: "/v2/checkout"
|
|
322
314
|
}
|
|
323
315
|
],
|
|
324
316
|
"*.wixapps.net": [
|
|
325
317
|
{
|
|
326
|
-
srcPath: "/_api/paid-plans/v2/
|
|
327
|
-
destPath: "/v2/
|
|
318
|
+
srcPath: "/_api/paid-plans/v2/checkout",
|
|
319
|
+
destPath: "/v2/checkout"
|
|
328
320
|
}
|
|
329
321
|
],
|
|
330
322
|
"editor-flow.wixapps.net": [
|
|
331
323
|
{
|
|
332
|
-
srcPath: "/_api/paid-plans/v2/
|
|
333
|
-
destPath: "/v2/
|
|
324
|
+
srcPath: "/_api/paid-plans/v2/checkout",
|
|
325
|
+
destPath: "/v2/checkout"
|
|
334
326
|
}
|
|
335
327
|
],
|
|
336
328
|
"editor._base_domain_": [
|
|
337
329
|
{
|
|
338
|
-
srcPath: "/_api/paid-plans/v2/
|
|
339
|
-
destPath: "/v2/
|
|
330
|
+
srcPath: "/_api/paid-plans/v2/checkout",
|
|
331
|
+
destPath: "/v2/checkout"
|
|
340
332
|
},
|
|
341
333
|
{
|
|
342
|
-
srcPath: "/_api/pricing-plans/v2/
|
|
343
|
-
destPath: "/v2/
|
|
334
|
+
srcPath: "/_api/pricing-plans/v2/checkout",
|
|
335
|
+
destPath: "/v2/checkout"
|
|
344
336
|
}
|
|
345
337
|
],
|
|
346
338
|
"blocks._base_domain_": [
|
|
347
339
|
{
|
|
348
|
-
srcPath: "/_api/paid-plans/v2/
|
|
349
|
-
destPath: "/v2/
|
|
340
|
+
srcPath: "/_api/paid-plans/v2/checkout",
|
|
341
|
+
destPath: "/v2/checkout"
|
|
350
342
|
},
|
|
351
343
|
{
|
|
352
|
-
srcPath: "/_api/pricing-plans/v2/
|
|
353
|
-
destPath: "/v2/
|
|
344
|
+
srcPath: "/_api/pricing-plans/v2/checkout",
|
|
345
|
+
destPath: "/v2/checkout"
|
|
354
346
|
}
|
|
355
347
|
],
|
|
356
348
|
"create.editorx": [
|
|
357
349
|
{
|
|
358
|
-
srcPath: "/_api/paid-plans/v2/
|
|
359
|
-
destPath: "/v2/
|
|
350
|
+
srcPath: "/_api/paid-plans/v2/checkout",
|
|
351
|
+
destPath: "/v2/checkout"
|
|
360
352
|
},
|
|
361
353
|
{
|
|
362
|
-
srcPath: "/_api/pricing-plans/v2/
|
|
363
|
-
destPath: "/v2/
|
|
354
|
+
srcPath: "/_api/pricing-plans/v2/checkout",
|
|
355
|
+
destPath: "/v2/checkout"
|
|
364
356
|
}
|
|
365
357
|
],
|
|
366
358
|
"editor.wixapps.net": [
|
|
367
359
|
{
|
|
368
|
-
srcPath: "/_api/paid-plans/v2/
|
|
369
|
-
destPath: "/v2/
|
|
360
|
+
srcPath: "/_api/paid-plans/v2/checkout",
|
|
361
|
+
destPath: "/v2/checkout"
|
|
370
362
|
},
|
|
371
363
|
{
|
|
372
|
-
srcPath: "/_api/pricing-plans/v2/
|
|
373
|
-
destPath: "/v2/
|
|
364
|
+
srcPath: "/_api/pricing-plans/v2/checkout",
|
|
365
|
+
destPath: "/v2/checkout"
|
|
374
366
|
}
|
|
375
367
|
],
|
|
376
368
|
"forums._base_domain_": [
|
|
377
369
|
{
|
|
378
|
-
srcPath: "/_api/paid-plans/v2/
|
|
379
|
-
destPath: "/v2/
|
|
370
|
+
srcPath: "/_api/paid-plans/v2/checkout",
|
|
371
|
+
destPath: "/v2/checkout"
|
|
380
372
|
}
|
|
381
373
|
],
|
|
382
374
|
"forums.wixapps.net": [
|
|
383
375
|
{
|
|
384
|
-
srcPath: "/_api/paid-plans/v2/
|
|
385
|
-
destPath: "/v2/
|
|
376
|
+
srcPath: "/_api/paid-plans/v2/checkout",
|
|
377
|
+
destPath: "/v2/checkout"
|
|
386
378
|
}
|
|
387
379
|
],
|
|
388
380
|
"manage._base_domain_": [
|
|
389
381
|
{
|
|
390
|
-
srcPath: "/_api/pricing-plans/v2/
|
|
391
|
-
destPath: "/v2/
|
|
382
|
+
srcPath: "/_api/pricing-plans/v2/checkout",
|
|
383
|
+
destPath: "/v2/checkout"
|
|
392
384
|
},
|
|
393
385
|
{
|
|
394
|
-
srcPath: "/_api/paid-plans/v2/
|
|
395
|
-
destPath: "/v2/
|
|
386
|
+
srcPath: "/_api/paid-plans/v2/checkout",
|
|
387
|
+
destPath: "/v2/checkout"
|
|
388
|
+
},
|
|
389
|
+
{
|
|
390
|
+
srcPath: "/pricing-plans/v2/checkout",
|
|
391
|
+
destPath: "/v2/checkout"
|
|
396
392
|
}
|
|
397
393
|
],
|
|
398
394
|
"www.wixapis.com": [
|
|
399
395
|
{
|
|
400
|
-
srcPath: "/pricing-plans/v2/
|
|
401
|
-
destPath: "/v2/
|
|
396
|
+
srcPath: "/pricing-plans/v2/checkout",
|
|
397
|
+
destPath: "/v2/checkout"
|
|
402
398
|
}
|
|
403
399
|
],
|
|
404
400
|
_: [
|
|
405
401
|
{
|
|
406
|
-
srcPath: "/
|
|
407
|
-
destPath: "/v2/
|
|
402
|
+
srcPath: "/pricing-plans/v2/checkout",
|
|
403
|
+
destPath: "/v2/checkout"
|
|
408
404
|
},
|
|
409
405
|
{
|
|
410
|
-
srcPath: "/_api/
|
|
411
|
-
destPath: "/v2/
|
|
406
|
+
srcPath: "/_api/paid-plans/v2/checkout",
|
|
407
|
+
destPath: "/v2/checkout"
|
|
408
|
+
},
|
|
409
|
+
{
|
|
410
|
+
srcPath: "/_api/pricing-plans/v2/checkout",
|
|
411
|
+
destPath: "/v2/checkout"
|
|
412
412
|
}
|
|
413
413
|
],
|
|
414
414
|
"*.pub.wix-code.com": [
|
|
415
415
|
{
|
|
416
|
-
srcPath: "/_api/paid-plans/v2/
|
|
417
|
-
destPath: "/v2/
|
|
416
|
+
srcPath: "/_api/paid-plans/v2/checkout",
|
|
417
|
+
destPath: "/v2/checkout"
|
|
418
418
|
}
|
|
419
419
|
],
|
|
420
420
|
"www._base_domain_": [
|
|
421
421
|
{
|
|
422
|
-
srcPath: "/_api/paid-plans/v2/
|
|
423
|
-
destPath: "/v2/
|
|
422
|
+
srcPath: "/_api/paid-plans/v2/checkout",
|
|
423
|
+
destPath: "/v2/checkout"
|
|
424
424
|
}
|
|
425
425
|
],
|
|
426
426
|
"apps._base_domain_": [
|
|
427
427
|
{
|
|
428
|
-
srcPath: "/_api/paid-plans/v2/
|
|
429
|
-
destPath: "/v2/
|
|
428
|
+
srcPath: "/_api/paid-plans/v2/checkout",
|
|
429
|
+
destPath: "/v2/checkout"
|
|
430
430
|
},
|
|
431
431
|
{
|
|
432
|
-
srcPath: "/_api/pricing-plans/v2/
|
|
433
|
-
destPath: "/v2/
|
|
432
|
+
srcPath: "/_api/pricing-plans/v2/checkout",
|
|
433
|
+
destPath: "/v2/checkout"
|
|
434
434
|
}
|
|
435
435
|
],
|
|
436
436
|
"dev._base_domain_": [
|
|
437
437
|
{
|
|
438
|
-
srcPath: "/_api/paid-plans/v2/
|
|
439
|
-
destPath: "/v2/
|
|
438
|
+
srcPath: "/_api/paid-plans/v2/checkout",
|
|
439
|
+
destPath: "/v2/checkout"
|
|
440
440
|
},
|
|
441
441
|
{
|
|
442
|
-
srcPath: "/_api/pricing-plans/v2/
|
|
443
|
-
destPath: "/v2/
|
|
442
|
+
srcPath: "/_api/pricing-plans/v2/checkout",
|
|
443
|
+
destPath: "/v2/checkout"
|
|
444
444
|
}
|
|
445
445
|
]
|
|
446
446
|
};
|
|
447
447
|
return (0, import_rest_modules2.resolveUrl)(Object.assign(opts, { domainToMappings }));
|
|
448
448
|
}
|
|
449
449
|
var PACKAGE_NAME = "@wix/auto_sdk_pricing-plans_orders";
|
|
450
|
-
function
|
|
451
|
-
function
|
|
450
|
+
function createOnlineOrder(payload) {
|
|
451
|
+
function __createOnlineOrder({ host }) {
|
|
452
|
+
const serializedData = (0, import_transform_paths.transformPaths)(payload, [
|
|
453
|
+
{
|
|
454
|
+
transformFn: import_timestamp.transformSDKTimestampToRESTTimestamp,
|
|
455
|
+
paths: [{ path: "startDate" }]
|
|
456
|
+
}
|
|
457
|
+
]);
|
|
452
458
|
const metadata = {
|
|
453
459
|
entityFqdn: "wix.pricing_plans.v2.order",
|
|
454
|
-
method: "
|
|
455
|
-
methodFqn: "com.wixpress.membership.v2.orders.
|
|
460
|
+
method: "POST",
|
|
461
|
+
methodFqn: "com.wixpress.membership.v2.orders.CheckoutService.CreateOnlineOrder",
|
|
456
462
|
packageName: PACKAGE_NAME,
|
|
457
463
|
migrationOptions: {
|
|
458
464
|
optInTransformResponse: true
|
|
459
465
|
},
|
|
460
|
-
url:
|
|
461
|
-
protoPath: "/v2/orders/
|
|
462
|
-
data:
|
|
466
|
+
url: resolveComWixpressMembershipV2OrdersCheckoutServiceUrl({
|
|
467
|
+
protoPath: "/v2/checkout/orders/online",
|
|
468
|
+
data: serializedData,
|
|
463
469
|
host
|
|
464
470
|
}),
|
|
465
|
-
|
|
471
|
+
data: serializedData,
|
|
466
472
|
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
467
473
|
{
|
|
468
474
|
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
@@ -485,216 +491,10 @@ function managementGetOrder(payload) {
|
|
|
485
491
|
};
|
|
486
492
|
return metadata;
|
|
487
493
|
}
|
|
488
|
-
return
|
|
494
|
+
return __createOnlineOrder;
|
|
489
495
|
}
|
|
490
|
-
function
|
|
491
|
-
function
|
|
492
|
-
const serializedData = (0, import_transform_paths.transformPaths)(payload, [
|
|
493
|
-
{
|
|
494
|
-
transformFn: import_float.transformSDKFloatToRESTFloat,
|
|
495
|
-
paths: [
|
|
496
|
-
{ path: "sorting.origin.latitude" },
|
|
497
|
-
{ path: "sorting.origin.longitude" }
|
|
498
|
-
]
|
|
499
|
-
}
|
|
500
|
-
]);
|
|
501
|
-
const metadata = {
|
|
502
|
-
entityFqdn: "wix.pricing_plans.v2.order",
|
|
503
|
-
method: "GET",
|
|
504
|
-
methodFqn: "com.wixpress.membership.v2.orders.OrderManagementService.ListOrders",
|
|
505
|
-
packageName: PACKAGE_NAME,
|
|
506
|
-
migrationOptions: {
|
|
507
|
-
optInTransformResponse: true
|
|
508
|
-
},
|
|
509
|
-
url: resolveComWixpressMembershipV2OrdersOrderManagementServiceUrl({
|
|
510
|
-
protoPath: "/v2/orders",
|
|
511
|
-
data: serializedData,
|
|
512
|
-
host
|
|
513
|
-
}),
|
|
514
|
-
params: (0, import_rest_modules.toURLSearchParams)(serializedData, true),
|
|
515
|
-
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
516
|
-
{
|
|
517
|
-
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
518
|
-
paths: [
|
|
519
|
-
{ path: "orders.startDate" },
|
|
520
|
-
{ path: "orders.endDate" },
|
|
521
|
-
{ path: "orders.earliestEndDate" },
|
|
522
|
-
{ path: "orders.createdDate" },
|
|
523
|
-
{ path: "orders.updatedDate" },
|
|
524
|
-
{ path: "orders.cancellation.requestedDate" },
|
|
525
|
-
{ path: "orders.pausePeriods.pauseDate" },
|
|
526
|
-
{ path: "orders.pausePeriods.resumeDate" },
|
|
527
|
-
{ path: "orders.currentCycle.startedDate" },
|
|
528
|
-
{ path: "orders.currentCycle.endedDate" },
|
|
529
|
-
{ path: "orders.cycles.startedDate" },
|
|
530
|
-
{ path: "orders.cycles.endedDate" }
|
|
531
|
-
]
|
|
532
|
-
}
|
|
533
|
-
])
|
|
534
|
-
};
|
|
535
|
-
return metadata;
|
|
536
|
-
}
|
|
537
|
-
return __managementListOrders;
|
|
538
|
-
}
|
|
539
|
-
function postponeEndDate(payload) {
|
|
540
|
-
function __postponeEndDate({ host }) {
|
|
541
|
-
const serializedData = (0, import_transform_paths.transformPaths)(payload, [
|
|
542
|
-
{
|
|
543
|
-
transformFn: import_timestamp.transformSDKTimestampToRESTTimestamp,
|
|
544
|
-
paths: [{ path: "endDate" }]
|
|
545
|
-
}
|
|
546
|
-
]);
|
|
547
|
-
const metadata = {
|
|
548
|
-
entityFqdn: "wix.pricing_plans.v2.order",
|
|
549
|
-
method: "PATCH",
|
|
550
|
-
methodFqn: "com.wixpress.membership.v2.orders.OrderManagementService.PostponeEndDate",
|
|
551
|
-
packageName: PACKAGE_NAME,
|
|
552
|
-
migrationOptions: {
|
|
553
|
-
optInTransformResponse: true
|
|
554
|
-
},
|
|
555
|
-
url: resolveComWixpressMembershipV2OrdersOrderManagementServiceUrl({
|
|
556
|
-
protoPath: "/v2/orders/{id}",
|
|
557
|
-
data: serializedData,
|
|
558
|
-
host
|
|
559
|
-
}),
|
|
560
|
-
data: serializedData
|
|
561
|
-
};
|
|
562
|
-
return metadata;
|
|
563
|
-
}
|
|
564
|
-
return __postponeEndDate;
|
|
565
|
-
}
|
|
566
|
-
function cancelOrder(payload) {
|
|
567
|
-
function __cancelOrder({ host }) {
|
|
568
|
-
const metadata = {
|
|
569
|
-
entityFqdn: "wix.pricing_plans.v2.order",
|
|
570
|
-
method: "POST",
|
|
571
|
-
methodFqn: "com.wixpress.membership.v2.orders.OrderManagementService.CancelOrder",
|
|
572
|
-
packageName: PACKAGE_NAME,
|
|
573
|
-
migrationOptions: {
|
|
574
|
-
optInTransformResponse: true
|
|
575
|
-
},
|
|
576
|
-
url: resolveComWixpressMembershipV2OrdersOrderManagementServiceUrl({
|
|
577
|
-
protoPath: "/v2/orders/{id}/cancel",
|
|
578
|
-
data: payload,
|
|
579
|
-
host
|
|
580
|
-
}),
|
|
581
|
-
data: payload
|
|
582
|
-
};
|
|
583
|
-
return metadata;
|
|
584
|
-
}
|
|
585
|
-
return __cancelOrder;
|
|
586
|
-
}
|
|
587
|
-
function markAsPaid(payload) {
|
|
588
|
-
function __markAsPaid({ host }) {
|
|
589
|
-
const metadata = {
|
|
590
|
-
entityFqdn: "wix.pricing_plans.v2.order",
|
|
591
|
-
method: "POST",
|
|
592
|
-
methodFqn: "com.wixpress.membership.v2.orders.OrderManagementService.MarkAsPaid",
|
|
593
|
-
packageName: PACKAGE_NAME,
|
|
594
|
-
migrationOptions: {
|
|
595
|
-
optInTransformResponse: true
|
|
596
|
-
},
|
|
597
|
-
url: resolveComWixpressMembershipV2OrdersOrderManagementServiceUrl({
|
|
598
|
-
protoPath: "/v2/orders/{id}/mark-as-paid",
|
|
599
|
-
data: payload,
|
|
600
|
-
host
|
|
601
|
-
}),
|
|
602
|
-
data: payload
|
|
603
|
-
};
|
|
604
|
-
return metadata;
|
|
605
|
-
}
|
|
606
|
-
return __markAsPaid;
|
|
607
|
-
}
|
|
608
|
-
function pauseOrder(payload) {
|
|
609
|
-
function __pauseOrder({ host }) {
|
|
610
|
-
const metadata = {
|
|
611
|
-
entityFqdn: "wix.pricing_plans.v2.order",
|
|
612
|
-
method: "POST",
|
|
613
|
-
methodFqn: "com.wixpress.membership.v2.orders.OrderManagementService.PauseOrder",
|
|
614
|
-
packageName: PACKAGE_NAME,
|
|
615
|
-
migrationOptions: {
|
|
616
|
-
optInTransformResponse: true
|
|
617
|
-
},
|
|
618
|
-
url: resolveComWixpressMembershipV2OrdersOrderManagementServiceUrl({
|
|
619
|
-
protoPath: "/v2/orders/{id}/pause",
|
|
620
|
-
data: payload,
|
|
621
|
-
host
|
|
622
|
-
}),
|
|
623
|
-
data: payload
|
|
624
|
-
};
|
|
625
|
-
return metadata;
|
|
626
|
-
}
|
|
627
|
-
return __pauseOrder;
|
|
628
|
-
}
|
|
629
|
-
function resumeOrder(payload) {
|
|
630
|
-
function __resumeOrder({ host }) {
|
|
631
|
-
const metadata = {
|
|
632
|
-
entityFqdn: "wix.pricing_plans.v2.order",
|
|
633
|
-
method: "POST",
|
|
634
|
-
methodFqn: "com.wixpress.membership.v2.orders.OrderManagementService.ResumeOrder",
|
|
635
|
-
packageName: PACKAGE_NAME,
|
|
636
|
-
migrationOptions: {
|
|
637
|
-
optInTransformResponse: true
|
|
638
|
-
},
|
|
639
|
-
url: resolveComWixpressMembershipV2OrdersOrderManagementServiceUrl({
|
|
640
|
-
protoPath: "/v2/orders/{id}/resume",
|
|
641
|
-
data: payload,
|
|
642
|
-
host
|
|
643
|
-
}),
|
|
644
|
-
data: payload
|
|
645
|
-
};
|
|
646
|
-
return metadata;
|
|
647
|
-
}
|
|
648
|
-
return __resumeOrder;
|
|
649
|
-
}
|
|
650
|
-
function createOnlineOrder(payload) {
|
|
651
|
-
function __createOnlineOrder({ host }) {
|
|
652
|
-
const serializedData = (0, import_transform_paths.transformPaths)(payload, [
|
|
653
|
-
{
|
|
654
|
-
transformFn: import_timestamp.transformSDKTimestampToRESTTimestamp,
|
|
655
|
-
paths: [{ path: "startDate" }]
|
|
656
|
-
}
|
|
657
|
-
]);
|
|
658
|
-
const metadata = {
|
|
659
|
-
entityFqdn: "wix.pricing_plans.v2.order",
|
|
660
|
-
method: "POST",
|
|
661
|
-
methodFqn: "com.wixpress.membership.v2.orders.CheckoutService.CreateOnlineOrder",
|
|
662
|
-
packageName: PACKAGE_NAME,
|
|
663
|
-
migrationOptions: {
|
|
664
|
-
optInTransformResponse: true
|
|
665
|
-
},
|
|
666
|
-
url: resolveComWixpressMembershipV2OrdersCheckoutServiceUrl({
|
|
667
|
-
protoPath: "/v2/checkout/orders/online",
|
|
668
|
-
data: serializedData,
|
|
669
|
-
host
|
|
670
|
-
}),
|
|
671
|
-
data: serializedData,
|
|
672
|
-
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
673
|
-
{
|
|
674
|
-
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
675
|
-
paths: [
|
|
676
|
-
{ path: "order.startDate" },
|
|
677
|
-
{ path: "order.endDate" },
|
|
678
|
-
{ path: "order.earliestEndDate" },
|
|
679
|
-
{ path: "order.createdDate" },
|
|
680
|
-
{ path: "order.updatedDate" },
|
|
681
|
-
{ path: "order.cancellation.requestedDate" },
|
|
682
|
-
{ path: "order.pausePeriods.pauseDate" },
|
|
683
|
-
{ path: "order.pausePeriods.resumeDate" },
|
|
684
|
-
{ path: "order.currentCycle.startedDate" },
|
|
685
|
-
{ path: "order.currentCycle.endedDate" },
|
|
686
|
-
{ path: "order.cycles.startedDate" },
|
|
687
|
-
{ path: "order.cycles.endedDate" }
|
|
688
|
-
]
|
|
689
|
-
}
|
|
690
|
-
])
|
|
691
|
-
};
|
|
692
|
-
return metadata;
|
|
693
|
-
}
|
|
694
|
-
return __createOnlineOrder;
|
|
695
|
-
}
|
|
696
|
-
function createOfflineOrder(payload) {
|
|
697
|
-
function __createOfflineOrder({ host }) {
|
|
496
|
+
function createOfflineOrder(payload) {
|
|
497
|
+
function __createOfflineOrder({ host }) {
|
|
698
498
|
const serializedData = (0, import_transform_paths.transformPaths)(payload, [
|
|
699
499
|
{
|
|
700
500
|
transformFn: import_timestamp.transformSDKTimestampToRESTTimestamp,
|
|
@@ -852,18 +652,18 @@ function getPricePreview(payload) {
|
|
|
852
652
|
}
|
|
853
653
|
return __getPricePreview;
|
|
854
654
|
}
|
|
855
|
-
function
|
|
856
|
-
function
|
|
655
|
+
function managementGetOrder(payload) {
|
|
656
|
+
function __managementGetOrder({ host }) {
|
|
857
657
|
const metadata = {
|
|
858
658
|
entityFqdn: "wix.pricing_plans.v2.order",
|
|
859
659
|
method: "GET",
|
|
860
|
-
methodFqn: "com.wixpress.membership.v2.orders.
|
|
660
|
+
methodFqn: "com.wixpress.membership.v2.orders.OrderManagementService.GetOrder",
|
|
861
661
|
packageName: PACKAGE_NAME,
|
|
862
662
|
migrationOptions: {
|
|
863
663
|
optInTransformResponse: true
|
|
864
664
|
},
|
|
865
|
-
url:
|
|
866
|
-
protoPath: "/v2/
|
|
665
|
+
url: resolveComWixpressMembershipV2OrdersOrderManagementServiceUrl({
|
|
666
|
+
protoPath: "/v2/orders/{id}",
|
|
867
667
|
data: payload,
|
|
868
668
|
host
|
|
869
669
|
}),
|
|
@@ -890,10 +690,10 @@ function memberGetOrder(payload) {
|
|
|
890
690
|
};
|
|
891
691
|
return metadata;
|
|
892
692
|
}
|
|
893
|
-
return
|
|
693
|
+
return __managementGetOrder;
|
|
894
694
|
}
|
|
895
|
-
function
|
|
896
|
-
function
|
|
695
|
+
function managementListOrders(payload) {
|
|
696
|
+
function __managementListOrders({ host }) {
|
|
897
697
|
const serializedData = (0, import_transform_paths.transformPaths)(payload, [
|
|
898
698
|
{
|
|
899
699
|
transformFn: import_float.transformSDKFloatToRESTFloat,
|
|
@@ -906,13 +706,13 @@ function memberListOrders(payload) {
|
|
|
906
706
|
const metadata = {
|
|
907
707
|
entityFqdn: "wix.pricing_plans.v2.order",
|
|
908
708
|
method: "GET",
|
|
909
|
-
methodFqn: "com.wixpress.membership.v2.orders.
|
|
709
|
+
methodFqn: "com.wixpress.membership.v2.orders.OrderManagementService.ListOrders",
|
|
910
710
|
packageName: PACKAGE_NAME,
|
|
911
711
|
migrationOptions: {
|
|
912
712
|
optInTransformResponse: true
|
|
913
713
|
},
|
|
914
|
-
url:
|
|
915
|
-
protoPath: "/v2/
|
|
714
|
+
url: resolveComWixpressMembershipV2OrdersOrderManagementServiceUrl({
|
|
715
|
+
protoPath: "/v2/orders",
|
|
916
716
|
data: serializedData,
|
|
917
717
|
host
|
|
918
718
|
}),
|
|
@@ -939,35 +739,235 @@ function memberListOrders(payload) {
|
|
|
939
739
|
};
|
|
940
740
|
return metadata;
|
|
941
741
|
}
|
|
942
|
-
return
|
|
742
|
+
return __managementListOrders;
|
|
943
743
|
}
|
|
944
|
-
function
|
|
945
|
-
function
|
|
744
|
+
function postponeEndDate(payload) {
|
|
745
|
+
function __postponeEndDate({ host }) {
|
|
746
|
+
const serializedData = (0, import_transform_paths.transformPaths)(payload, [
|
|
747
|
+
{
|
|
748
|
+
transformFn: import_timestamp.transformSDKTimestampToRESTTimestamp,
|
|
749
|
+
paths: [{ path: "endDate" }]
|
|
750
|
+
}
|
|
751
|
+
]);
|
|
946
752
|
const metadata = {
|
|
947
753
|
entityFqdn: "wix.pricing_plans.v2.order",
|
|
948
|
-
method: "
|
|
949
|
-
methodFqn: "com.wixpress.membership.v2.orders.
|
|
754
|
+
method: "PATCH",
|
|
755
|
+
methodFqn: "com.wixpress.membership.v2.orders.OrderManagementService.PostponeEndDate",
|
|
950
756
|
packageName: PACKAGE_NAME,
|
|
951
757
|
migrationOptions: {
|
|
952
758
|
optInTransformResponse: true
|
|
953
759
|
},
|
|
954
|
-
url:
|
|
955
|
-
protoPath: "/v2/
|
|
956
|
-
data:
|
|
760
|
+
url: resolveComWixpressMembershipV2OrdersOrderManagementServiceUrl({
|
|
761
|
+
protoPath: "/v2/orders/{id}",
|
|
762
|
+
data: serializedData,
|
|
957
763
|
host
|
|
958
764
|
}),
|
|
959
|
-
data:
|
|
765
|
+
data: serializedData
|
|
960
766
|
};
|
|
961
767
|
return metadata;
|
|
962
768
|
}
|
|
963
|
-
return
|
|
769
|
+
return __postponeEndDate;
|
|
964
770
|
}
|
|
965
|
-
|
|
966
|
-
|
|
967
|
-
|
|
968
|
-
|
|
969
|
-
|
|
970
|
-
|
|
771
|
+
function cancelOrder(payload) {
|
|
772
|
+
function __cancelOrder({ host }) {
|
|
773
|
+
const metadata = {
|
|
774
|
+
entityFqdn: "wix.pricing_plans.v2.order",
|
|
775
|
+
method: "POST",
|
|
776
|
+
methodFqn: "com.wixpress.membership.v2.orders.OrderManagementService.CancelOrder",
|
|
777
|
+
packageName: PACKAGE_NAME,
|
|
778
|
+
migrationOptions: {
|
|
779
|
+
optInTransformResponse: true
|
|
780
|
+
},
|
|
781
|
+
url: resolveComWixpressMembershipV2OrdersOrderManagementServiceUrl({
|
|
782
|
+
protoPath: "/v2/orders/{id}/cancel",
|
|
783
|
+
data: payload,
|
|
784
|
+
host
|
|
785
|
+
}),
|
|
786
|
+
data: payload
|
|
787
|
+
};
|
|
788
|
+
return metadata;
|
|
789
|
+
}
|
|
790
|
+
return __cancelOrder;
|
|
791
|
+
}
|
|
792
|
+
function markAsPaid(payload) {
|
|
793
|
+
function __markAsPaid({ host }) {
|
|
794
|
+
const metadata = {
|
|
795
|
+
entityFqdn: "wix.pricing_plans.v2.order",
|
|
796
|
+
method: "POST",
|
|
797
|
+
methodFqn: "com.wixpress.membership.v2.orders.OrderManagementService.MarkAsPaid",
|
|
798
|
+
packageName: PACKAGE_NAME,
|
|
799
|
+
migrationOptions: {
|
|
800
|
+
optInTransformResponse: true
|
|
801
|
+
},
|
|
802
|
+
url: resolveComWixpressMembershipV2OrdersOrderManagementServiceUrl({
|
|
803
|
+
protoPath: "/v2/orders/{id}/mark-as-paid",
|
|
804
|
+
data: payload,
|
|
805
|
+
host
|
|
806
|
+
}),
|
|
807
|
+
data: payload
|
|
808
|
+
};
|
|
809
|
+
return metadata;
|
|
810
|
+
}
|
|
811
|
+
return __markAsPaid;
|
|
812
|
+
}
|
|
813
|
+
function pauseOrder(payload) {
|
|
814
|
+
function __pauseOrder({ host }) {
|
|
815
|
+
const metadata = {
|
|
816
|
+
entityFqdn: "wix.pricing_plans.v2.order",
|
|
817
|
+
method: "POST",
|
|
818
|
+
methodFqn: "com.wixpress.membership.v2.orders.OrderManagementService.PauseOrder",
|
|
819
|
+
packageName: PACKAGE_NAME,
|
|
820
|
+
migrationOptions: {
|
|
821
|
+
optInTransformResponse: true
|
|
822
|
+
},
|
|
823
|
+
url: resolveComWixpressMembershipV2OrdersOrderManagementServiceUrl({
|
|
824
|
+
protoPath: "/v2/orders/{id}/pause",
|
|
825
|
+
data: payload,
|
|
826
|
+
host
|
|
827
|
+
}),
|
|
828
|
+
data: payload
|
|
829
|
+
};
|
|
830
|
+
return metadata;
|
|
831
|
+
}
|
|
832
|
+
return __pauseOrder;
|
|
833
|
+
}
|
|
834
|
+
function resumeOrder(payload) {
|
|
835
|
+
function __resumeOrder({ host }) {
|
|
836
|
+
const metadata = {
|
|
837
|
+
entityFqdn: "wix.pricing_plans.v2.order",
|
|
838
|
+
method: "POST",
|
|
839
|
+
methodFqn: "com.wixpress.membership.v2.orders.OrderManagementService.ResumeOrder",
|
|
840
|
+
packageName: PACKAGE_NAME,
|
|
841
|
+
migrationOptions: {
|
|
842
|
+
optInTransformResponse: true
|
|
843
|
+
},
|
|
844
|
+
url: resolveComWixpressMembershipV2OrdersOrderManagementServiceUrl({
|
|
845
|
+
protoPath: "/v2/orders/{id}/resume",
|
|
846
|
+
data: payload,
|
|
847
|
+
host
|
|
848
|
+
}),
|
|
849
|
+
data: payload
|
|
850
|
+
};
|
|
851
|
+
return metadata;
|
|
852
|
+
}
|
|
853
|
+
return __resumeOrder;
|
|
854
|
+
}
|
|
855
|
+
function memberGetOrder(payload) {
|
|
856
|
+
function __memberGetOrder({ host }) {
|
|
857
|
+
const metadata = {
|
|
858
|
+
entityFqdn: "wix.pricing_plans.v2.order",
|
|
859
|
+
method: "GET",
|
|
860
|
+
methodFqn: "com.wixpress.membership.v2.orders.member.MemberOrdersService.GetOrder",
|
|
861
|
+
packageName: PACKAGE_NAME,
|
|
862
|
+
migrationOptions: {
|
|
863
|
+
optInTransformResponse: true
|
|
864
|
+
},
|
|
865
|
+
url: resolveComWixpressMembershipV2OrdersMemberMemberOrdersServiceUrl({
|
|
866
|
+
protoPath: "/v2/member/orders/{id}",
|
|
867
|
+
data: payload,
|
|
868
|
+
host
|
|
869
|
+
}),
|
|
870
|
+
params: (0, import_rest_modules.toURLSearchParams)(payload),
|
|
871
|
+
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
872
|
+
{
|
|
873
|
+
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
874
|
+
paths: [
|
|
875
|
+
{ path: "order.startDate" },
|
|
876
|
+
{ path: "order.endDate" },
|
|
877
|
+
{ path: "order.earliestEndDate" },
|
|
878
|
+
{ path: "order.createdDate" },
|
|
879
|
+
{ path: "order.updatedDate" },
|
|
880
|
+
{ path: "order.cancellation.requestedDate" },
|
|
881
|
+
{ path: "order.pausePeriods.pauseDate" },
|
|
882
|
+
{ path: "order.pausePeriods.resumeDate" },
|
|
883
|
+
{ path: "order.currentCycle.startedDate" },
|
|
884
|
+
{ path: "order.currentCycle.endedDate" },
|
|
885
|
+
{ path: "order.cycles.startedDate" },
|
|
886
|
+
{ path: "order.cycles.endedDate" }
|
|
887
|
+
]
|
|
888
|
+
}
|
|
889
|
+
])
|
|
890
|
+
};
|
|
891
|
+
return metadata;
|
|
892
|
+
}
|
|
893
|
+
return __memberGetOrder;
|
|
894
|
+
}
|
|
895
|
+
function memberListOrders(payload) {
|
|
896
|
+
function __memberListOrders({ host }) {
|
|
897
|
+
const serializedData = (0, import_transform_paths.transformPaths)(payload, [
|
|
898
|
+
{
|
|
899
|
+
transformFn: import_float.transformSDKFloatToRESTFloat,
|
|
900
|
+
paths: [
|
|
901
|
+
{ path: "sorting.origin.latitude" },
|
|
902
|
+
{ path: "sorting.origin.longitude" }
|
|
903
|
+
]
|
|
904
|
+
}
|
|
905
|
+
]);
|
|
906
|
+
const metadata = {
|
|
907
|
+
entityFqdn: "wix.pricing_plans.v2.order",
|
|
908
|
+
method: "GET",
|
|
909
|
+
methodFqn: "com.wixpress.membership.v2.orders.member.MemberOrdersService.ListOrders",
|
|
910
|
+
packageName: PACKAGE_NAME,
|
|
911
|
+
migrationOptions: {
|
|
912
|
+
optInTransformResponse: true
|
|
913
|
+
},
|
|
914
|
+
url: resolveComWixpressMembershipV2OrdersMemberMemberOrdersServiceUrl({
|
|
915
|
+
protoPath: "/v2/member/orders",
|
|
916
|
+
data: serializedData,
|
|
917
|
+
host
|
|
918
|
+
}),
|
|
919
|
+
params: (0, import_rest_modules.toURLSearchParams)(serializedData, true),
|
|
920
|
+
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
921
|
+
{
|
|
922
|
+
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
923
|
+
paths: [
|
|
924
|
+
{ path: "orders.startDate" },
|
|
925
|
+
{ path: "orders.endDate" },
|
|
926
|
+
{ path: "orders.earliestEndDate" },
|
|
927
|
+
{ path: "orders.createdDate" },
|
|
928
|
+
{ path: "orders.updatedDate" },
|
|
929
|
+
{ path: "orders.cancellation.requestedDate" },
|
|
930
|
+
{ path: "orders.pausePeriods.pauseDate" },
|
|
931
|
+
{ path: "orders.pausePeriods.resumeDate" },
|
|
932
|
+
{ path: "orders.currentCycle.startedDate" },
|
|
933
|
+
{ path: "orders.currentCycle.endedDate" },
|
|
934
|
+
{ path: "orders.cycles.startedDate" },
|
|
935
|
+
{ path: "orders.cycles.endedDate" }
|
|
936
|
+
]
|
|
937
|
+
}
|
|
938
|
+
])
|
|
939
|
+
};
|
|
940
|
+
return metadata;
|
|
941
|
+
}
|
|
942
|
+
return __memberListOrders;
|
|
943
|
+
}
|
|
944
|
+
function requestCancellation(payload) {
|
|
945
|
+
function __requestCancellation({ host }) {
|
|
946
|
+
const metadata = {
|
|
947
|
+
entityFqdn: "wix.pricing_plans.v2.order",
|
|
948
|
+
method: "POST",
|
|
949
|
+
methodFqn: "com.wixpress.membership.v2.orders.member.MemberOrdersService.RequestCancellation",
|
|
950
|
+
packageName: PACKAGE_NAME,
|
|
951
|
+
migrationOptions: {
|
|
952
|
+
optInTransformResponse: true
|
|
953
|
+
},
|
|
954
|
+
url: resolveComWixpressMembershipV2OrdersMemberMemberOrdersServiceUrl({
|
|
955
|
+
protoPath: "/v2/member/orders/{id}/cancel",
|
|
956
|
+
data: payload,
|
|
957
|
+
host
|
|
958
|
+
}),
|
|
959
|
+
data: payload
|
|
960
|
+
};
|
|
961
|
+
return metadata;
|
|
962
|
+
}
|
|
963
|
+
return __requestCancellation;
|
|
964
|
+
}
|
|
965
|
+
|
|
966
|
+
// src/pricing-plans-v2-order-orders.universal.ts
|
|
967
|
+
var PeriodUnit = /* @__PURE__ */ ((PeriodUnit2) => {
|
|
968
|
+
PeriodUnit2["UNDEFINED"] = "UNDEFINED";
|
|
969
|
+
PeriodUnit2["DAY"] = "DAY";
|
|
970
|
+
PeriodUnit2["WEEK"] = "WEEK";
|
|
971
971
|
PeriodUnit2["MONTH"] = "MONTH";
|
|
972
972
|
PeriodUnit2["YEAR"] = "YEAR";
|
|
973
973
|
return PeriodUnit2;
|
|
@@ -1026,6 +1026,14 @@ var Status = /* @__PURE__ */ ((Status2) => {
|
|
|
1026
1026
|
Status2["ENDED"] = "ENDED";
|
|
1027
1027
|
return Status2;
|
|
1028
1028
|
})(Status || {});
|
|
1029
|
+
var WebhookIdentityType = /* @__PURE__ */ ((WebhookIdentityType2) => {
|
|
1030
|
+
WebhookIdentityType2["UNKNOWN"] = "UNKNOWN";
|
|
1031
|
+
WebhookIdentityType2["ANONYMOUS_VISITOR"] = "ANONYMOUS_VISITOR";
|
|
1032
|
+
WebhookIdentityType2["MEMBER"] = "MEMBER";
|
|
1033
|
+
WebhookIdentityType2["WIX_USER"] = "WIX_USER";
|
|
1034
|
+
WebhookIdentityType2["APP"] = "APP";
|
|
1035
|
+
return WebhookIdentityType2;
|
|
1036
|
+
})(WebhookIdentityType || {});
|
|
1029
1037
|
var Set = /* @__PURE__ */ ((Set2) => {
|
|
1030
1038
|
Set2["UNKNOWN_SET"] = "UNKNOWN_SET";
|
|
1031
1039
|
Set2["BASIC"] = "BASIC";
|
|
@@ -1048,21 +1056,16 @@ var ReasonNotSuspendable = /* @__PURE__ */ ((ReasonNotSuspendable2) => {
|
|
|
1048
1056
|
ReasonNotSuspendable2["OLD_STRIPE"] = "OLD_STRIPE";
|
|
1049
1057
|
return ReasonNotSuspendable2;
|
|
1050
1058
|
})(ReasonNotSuspendable || {});
|
|
1051
|
-
|
|
1052
|
-
WebhookIdentityType2["UNKNOWN"] = "UNKNOWN";
|
|
1053
|
-
WebhookIdentityType2["ANONYMOUS_VISITOR"] = "ANONYMOUS_VISITOR";
|
|
1054
|
-
WebhookIdentityType2["MEMBER"] = "MEMBER";
|
|
1055
|
-
WebhookIdentityType2["WIX_USER"] = "WIX_USER";
|
|
1056
|
-
WebhookIdentityType2["APP"] = "APP";
|
|
1057
|
-
return WebhookIdentityType2;
|
|
1058
|
-
})(WebhookIdentityType || {});
|
|
1059
|
-
async function managementGetOrder2(_id, options) {
|
|
1059
|
+
async function createOnlineOrder2(planId, options) {
|
|
1060
1060
|
const { httpClient, sideEffects } = arguments[2];
|
|
1061
1061
|
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
1062
|
-
|
|
1063
|
-
|
|
1062
|
+
planId,
|
|
1063
|
+
startDate: options?.startDate,
|
|
1064
|
+
couponCode: options?.couponCode,
|
|
1065
|
+
onBehalf: options?.onBehalf,
|
|
1066
|
+
submissionId: options?.submissionId
|
|
1064
1067
|
});
|
|
1065
|
-
const reqOpts =
|
|
1068
|
+
const reqOpts = createOnlineOrder(payload);
|
|
1066
1069
|
sideEffects?.onSiteCall?.();
|
|
1067
1070
|
try {
|
|
1068
1071
|
const result = await httpClient.request(reqOpts);
|
|
@@ -1073,29 +1076,32 @@ async function managementGetOrder2(_id, options) {
|
|
|
1073
1076
|
err,
|
|
1074
1077
|
{
|
|
1075
1078
|
spreadPathsToArguments: {},
|
|
1076
|
-
explicitPathsToArguments: {
|
|
1079
|
+
explicitPathsToArguments: {
|
|
1080
|
+
planId: "$[0]",
|
|
1081
|
+
startDate: "$[1].startDate",
|
|
1082
|
+
couponCode: "$[1].couponCode",
|
|
1083
|
+
onBehalf: "$[1].onBehalf",
|
|
1084
|
+
submissionId: "$[1].submissionId"
|
|
1085
|
+
},
|
|
1077
1086
|
singleArgumentUnchanged: false
|
|
1078
1087
|
},
|
|
1079
|
-
["
|
|
1088
|
+
["planId", "options"]
|
|
1080
1089
|
);
|
|
1081
1090
|
sideEffects?.onError?.(err);
|
|
1082
1091
|
throw transformedError;
|
|
1083
1092
|
}
|
|
1084
1093
|
}
|
|
1085
|
-
async function
|
|
1086
|
-
const { httpClient, sideEffects } = arguments[
|
|
1094
|
+
async function createOfflineOrder2(planId, memberId, options) {
|
|
1095
|
+
const { httpClient, sideEffects } = arguments[3];
|
|
1087
1096
|
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
1088
|
-
|
|
1089
|
-
|
|
1090
|
-
|
|
1091
|
-
|
|
1092
|
-
|
|
1093
|
-
|
|
1094
|
-
offset: options?.offset,
|
|
1095
|
-
sorting: options?.sorting,
|
|
1096
|
-
fieldSet: options?.fieldSet
|
|
1097
|
+
planId,
|
|
1098
|
+
memberId,
|
|
1099
|
+
startDate: options?.startDate,
|
|
1100
|
+
paid: options?.paid,
|
|
1101
|
+
couponCode: options?.couponCode,
|
|
1102
|
+
submissionId: options?.submissionId
|
|
1097
1103
|
});
|
|
1098
|
-
const reqOpts =
|
|
1104
|
+
const reqOpts = createOfflineOrder(payload);
|
|
1099
1105
|
sideEffects?.onSiteCall?.();
|
|
1100
1106
|
try {
|
|
1101
1107
|
const result = await httpClient.request(reqOpts);
|
|
@@ -1107,300 +1113,294 @@ async function managementListOrders2(options) {
|
|
|
1107
1113
|
{
|
|
1108
1114
|
spreadPathsToArguments: {},
|
|
1109
1115
|
explicitPathsToArguments: {
|
|
1110
|
-
|
|
1111
|
-
|
|
1112
|
-
|
|
1113
|
-
|
|
1114
|
-
|
|
1115
|
-
|
|
1116
|
-
offset: "$[0].offset",
|
|
1117
|
-
sorting: "$[0].sorting",
|
|
1118
|
-
fieldSet: "$[0].fieldSet"
|
|
1116
|
+
planId: "$[0]",
|
|
1117
|
+
memberId: "$[1]",
|
|
1118
|
+
startDate: "$[2].startDate",
|
|
1119
|
+
paid: "$[2].paid",
|
|
1120
|
+
couponCode: "$[2].couponCode",
|
|
1121
|
+
submissionId: "$[2].submissionId"
|
|
1119
1122
|
},
|
|
1120
1123
|
singleArgumentUnchanged: false
|
|
1121
1124
|
},
|
|
1122
|
-
["options"]
|
|
1125
|
+
["planId", "memberId", "options"]
|
|
1123
1126
|
);
|
|
1124
1127
|
sideEffects?.onError?.(err);
|
|
1125
1128
|
throw transformedError;
|
|
1126
1129
|
}
|
|
1127
1130
|
}
|
|
1128
|
-
async function
|
|
1131
|
+
async function getOnlineOrderPreview2(planId, options) {
|
|
1129
1132
|
const { httpClient, sideEffects } = arguments[2];
|
|
1130
1133
|
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
1131
|
-
|
|
1132
|
-
|
|
1134
|
+
planId,
|
|
1135
|
+
startDate: options?.startDate,
|
|
1136
|
+
couponCode: options?.couponCode
|
|
1133
1137
|
});
|
|
1134
|
-
const reqOpts =
|
|
1138
|
+
const reqOpts = getOnlineOrderPreview(payload);
|
|
1135
1139
|
sideEffects?.onSiteCall?.();
|
|
1136
1140
|
try {
|
|
1137
1141
|
const result = await httpClient.request(reqOpts);
|
|
1138
1142
|
sideEffects?.onSuccess?.(result);
|
|
1143
|
+
return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data);
|
|
1139
1144
|
} catch (err) {
|
|
1140
1145
|
const transformedError = (0, import_transform_error.transformError)(
|
|
1141
1146
|
err,
|
|
1142
1147
|
{
|
|
1143
1148
|
spreadPathsToArguments: {},
|
|
1144
|
-
explicitPathsToArguments: {
|
|
1149
|
+
explicitPathsToArguments: {
|
|
1150
|
+
planId: "$[0]",
|
|
1151
|
+
startDate: "$[1].startDate",
|
|
1152
|
+
couponCode: "$[1].couponCode"
|
|
1153
|
+
},
|
|
1145
1154
|
singleArgumentUnchanged: false
|
|
1146
1155
|
},
|
|
1147
|
-
["
|
|
1156
|
+
["planId", "options"]
|
|
1148
1157
|
);
|
|
1149
1158
|
sideEffects?.onError?.(err);
|
|
1150
1159
|
throw transformedError;
|
|
1151
1160
|
}
|
|
1152
1161
|
}
|
|
1153
|
-
async function
|
|
1154
|
-
const { httpClient, sideEffects } = arguments[
|
|
1162
|
+
async function getOfflineOrderPreview2(planId, memberId, options) {
|
|
1163
|
+
const { httpClient, sideEffects } = arguments[3];
|
|
1155
1164
|
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
1156
|
-
|
|
1157
|
-
|
|
1165
|
+
planId,
|
|
1166
|
+
memberId,
|
|
1167
|
+
startDate: options?.startDate,
|
|
1168
|
+
couponCode: options?.couponCode
|
|
1158
1169
|
});
|
|
1159
|
-
const reqOpts =
|
|
1170
|
+
const reqOpts = getOfflineOrderPreview(payload);
|
|
1160
1171
|
sideEffects?.onSiteCall?.();
|
|
1161
1172
|
try {
|
|
1162
1173
|
const result = await httpClient.request(reqOpts);
|
|
1163
1174
|
sideEffects?.onSuccess?.(result);
|
|
1175
|
+
return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data);
|
|
1164
1176
|
} catch (err) {
|
|
1165
1177
|
const transformedError = (0, import_transform_error.transformError)(
|
|
1166
1178
|
err,
|
|
1167
1179
|
{
|
|
1168
1180
|
spreadPathsToArguments: {},
|
|
1169
|
-
explicitPathsToArguments: {
|
|
1181
|
+
explicitPathsToArguments: {
|
|
1182
|
+
planId: "$[0]",
|
|
1183
|
+
memberId: "$[1]",
|
|
1184
|
+
startDate: "$[2].startDate",
|
|
1185
|
+
couponCode: "$[2].couponCode"
|
|
1186
|
+
},
|
|
1170
1187
|
singleArgumentUnchanged: false
|
|
1171
1188
|
},
|
|
1172
|
-
["
|
|
1189
|
+
["planId", "memberId", "options"]
|
|
1173
1190
|
);
|
|
1174
1191
|
sideEffects?.onError?.(err);
|
|
1175
1192
|
throw transformedError;
|
|
1176
1193
|
}
|
|
1177
1194
|
}
|
|
1178
|
-
async function
|
|
1179
|
-
const { httpClient, sideEffects } = arguments[
|
|
1180
|
-
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
1181
|
-
|
|
1195
|
+
async function getPricePreview2(planId, options) {
|
|
1196
|
+
const { httpClient, sideEffects } = arguments[2];
|
|
1197
|
+
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
1198
|
+
planId,
|
|
1199
|
+
couponCode: options?.couponCode
|
|
1200
|
+
});
|
|
1201
|
+
const reqOpts = getPricePreview(payload);
|
|
1182
1202
|
sideEffects?.onSiteCall?.();
|
|
1183
1203
|
try {
|
|
1184
1204
|
const result = await httpClient.request(reqOpts);
|
|
1185
1205
|
sideEffects?.onSuccess?.(result);
|
|
1206
|
+
return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data);
|
|
1186
1207
|
} catch (err) {
|
|
1187
1208
|
const transformedError = (0, import_transform_error.transformError)(
|
|
1188
1209
|
err,
|
|
1189
1210
|
{
|
|
1190
1211
|
spreadPathsToArguments: {},
|
|
1191
|
-
explicitPathsToArguments: {
|
|
1212
|
+
explicitPathsToArguments: {
|
|
1213
|
+
planId: "$[0]",
|
|
1214
|
+
couponCode: "$[1].couponCode"
|
|
1215
|
+
},
|
|
1192
1216
|
singleArgumentUnchanged: false
|
|
1193
1217
|
},
|
|
1194
|
-
["
|
|
1218
|
+
["planId", "options"]
|
|
1195
1219
|
);
|
|
1196
1220
|
sideEffects?.onError?.(err);
|
|
1197
1221
|
throw transformedError;
|
|
1198
1222
|
}
|
|
1199
1223
|
}
|
|
1200
|
-
async function
|
|
1201
|
-
const { httpClient, sideEffects } = arguments[
|
|
1202
|
-
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
1203
|
-
|
|
1224
|
+
async function managementGetOrder2(_id, options) {
|
|
1225
|
+
const { httpClient, sideEffects } = arguments[2];
|
|
1226
|
+
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
1227
|
+
id: _id,
|
|
1228
|
+
fieldSet: options?.fieldSet
|
|
1229
|
+
});
|
|
1230
|
+
const reqOpts = managementGetOrder(payload);
|
|
1204
1231
|
sideEffects?.onSiteCall?.();
|
|
1205
1232
|
try {
|
|
1206
1233
|
const result = await httpClient.request(reqOpts);
|
|
1207
1234
|
sideEffects?.onSuccess?.(result);
|
|
1235
|
+
return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data);
|
|
1208
1236
|
} catch (err) {
|
|
1209
1237
|
const transformedError = (0, import_transform_error.transformError)(
|
|
1210
1238
|
err,
|
|
1211
1239
|
{
|
|
1212
1240
|
spreadPathsToArguments: {},
|
|
1213
|
-
explicitPathsToArguments: { id: "$[0]" },
|
|
1241
|
+
explicitPathsToArguments: { id: "$[0]", fieldSet: "$[1].fieldSet" },
|
|
1214
1242
|
singleArgumentUnchanged: false
|
|
1215
1243
|
},
|
|
1216
|
-
["_id"]
|
|
1244
|
+
["_id", "options"]
|
|
1217
1245
|
);
|
|
1218
1246
|
sideEffects?.onError?.(err);
|
|
1219
1247
|
throw transformedError;
|
|
1220
1248
|
}
|
|
1221
1249
|
}
|
|
1222
|
-
async function
|
|
1250
|
+
async function managementListOrders2(options) {
|
|
1223
1251
|
const { httpClient, sideEffects } = arguments[1];
|
|
1224
|
-
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
1225
|
-
|
|
1252
|
+
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
1253
|
+
buyerIds: options?.buyerIds,
|
|
1254
|
+
planIds: options?.planIds,
|
|
1255
|
+
autoRenewCanceled: options?.autoRenewCanceled,
|
|
1256
|
+
orderStatuses: options?.orderStatuses,
|
|
1257
|
+
paymentStatuses: options?.paymentStatuses,
|
|
1258
|
+
limit: options?.limit,
|
|
1259
|
+
offset: options?.offset,
|
|
1260
|
+
sorting: options?.sorting,
|
|
1261
|
+
fieldSet: options?.fieldSet
|
|
1262
|
+
});
|
|
1263
|
+
const reqOpts = managementListOrders(payload);
|
|
1226
1264
|
sideEffects?.onSiteCall?.();
|
|
1227
1265
|
try {
|
|
1228
1266
|
const result = await httpClient.request(reqOpts);
|
|
1229
1267
|
sideEffects?.onSuccess?.(result);
|
|
1268
|
+
return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data);
|
|
1230
1269
|
} catch (err) {
|
|
1231
1270
|
const transformedError = (0, import_transform_error.transformError)(
|
|
1232
1271
|
err,
|
|
1233
1272
|
{
|
|
1234
1273
|
spreadPathsToArguments: {},
|
|
1235
|
-
explicitPathsToArguments: {
|
|
1274
|
+
explicitPathsToArguments: {
|
|
1275
|
+
buyerIds: "$[0].buyerIds",
|
|
1276
|
+
planIds: "$[0].planIds",
|
|
1277
|
+
autoRenewCanceled: "$[0].autoRenewCanceled",
|
|
1278
|
+
orderStatuses: "$[0].orderStatuses",
|
|
1279
|
+
paymentStatuses: "$[0].paymentStatuses",
|
|
1280
|
+
limit: "$[0].limit",
|
|
1281
|
+
offset: "$[0].offset",
|
|
1282
|
+
sorting: "$[0].sorting",
|
|
1283
|
+
fieldSet: "$[0].fieldSet"
|
|
1284
|
+
},
|
|
1236
1285
|
singleArgumentUnchanged: false
|
|
1237
1286
|
},
|
|
1238
|
-
["
|
|
1287
|
+
["options"]
|
|
1239
1288
|
);
|
|
1240
1289
|
sideEffects?.onError?.(err);
|
|
1241
1290
|
throw transformedError;
|
|
1242
1291
|
}
|
|
1243
1292
|
}
|
|
1244
|
-
async function
|
|
1293
|
+
async function postponeEndDate2(_id, endDate) {
|
|
1245
1294
|
const { httpClient, sideEffects } = arguments[2];
|
|
1246
1295
|
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
1247
|
-
|
|
1248
|
-
|
|
1249
|
-
couponCode: options?.couponCode,
|
|
1250
|
-
onBehalf: options?.onBehalf,
|
|
1251
|
-
submissionId: options?.submissionId
|
|
1296
|
+
id: _id,
|
|
1297
|
+
endDate
|
|
1252
1298
|
});
|
|
1253
|
-
const reqOpts =
|
|
1299
|
+
const reqOpts = postponeEndDate(payload);
|
|
1254
1300
|
sideEffects?.onSiteCall?.();
|
|
1255
1301
|
try {
|
|
1256
1302
|
const result = await httpClient.request(reqOpts);
|
|
1257
1303
|
sideEffects?.onSuccess?.(result);
|
|
1258
|
-
return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data);
|
|
1259
1304
|
} catch (err) {
|
|
1260
1305
|
const transformedError = (0, import_transform_error.transformError)(
|
|
1261
1306
|
err,
|
|
1262
1307
|
{
|
|
1263
1308
|
spreadPathsToArguments: {},
|
|
1264
|
-
explicitPathsToArguments: {
|
|
1265
|
-
planId: "$[0]",
|
|
1266
|
-
startDate: "$[1].startDate",
|
|
1267
|
-
couponCode: "$[1].couponCode",
|
|
1268
|
-
onBehalf: "$[1].onBehalf",
|
|
1269
|
-
submissionId: "$[1].submissionId"
|
|
1270
|
-
},
|
|
1309
|
+
explicitPathsToArguments: { id: "$[0]", endDate: "$[1]" },
|
|
1271
1310
|
singleArgumentUnchanged: false
|
|
1272
1311
|
},
|
|
1273
|
-
["
|
|
1312
|
+
["_id", "endDate"]
|
|
1274
1313
|
);
|
|
1275
1314
|
sideEffects?.onError?.(err);
|
|
1276
1315
|
throw transformedError;
|
|
1277
1316
|
}
|
|
1278
1317
|
}
|
|
1279
|
-
async function
|
|
1280
|
-
const { httpClient, sideEffects } = arguments[
|
|
1318
|
+
async function cancelOrder2(_id, effectiveAt) {
|
|
1319
|
+
const { httpClient, sideEffects } = arguments[2];
|
|
1281
1320
|
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
1282
|
-
|
|
1283
|
-
|
|
1284
|
-
startDate: options?.startDate,
|
|
1285
|
-
paid: options?.paid,
|
|
1286
|
-
couponCode: options?.couponCode,
|
|
1287
|
-
submissionId: options?.submissionId
|
|
1321
|
+
id: _id,
|
|
1322
|
+
effectiveAt
|
|
1288
1323
|
});
|
|
1289
|
-
const reqOpts =
|
|
1324
|
+
const reqOpts = cancelOrder(payload);
|
|
1290
1325
|
sideEffects?.onSiteCall?.();
|
|
1291
1326
|
try {
|
|
1292
1327
|
const result = await httpClient.request(reqOpts);
|
|
1293
1328
|
sideEffects?.onSuccess?.(result);
|
|
1294
|
-
return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data);
|
|
1295
1329
|
} catch (err) {
|
|
1296
1330
|
const transformedError = (0, import_transform_error.transformError)(
|
|
1297
1331
|
err,
|
|
1298
1332
|
{
|
|
1299
1333
|
spreadPathsToArguments: {},
|
|
1300
|
-
explicitPathsToArguments: {
|
|
1301
|
-
planId: "$[0]",
|
|
1302
|
-
memberId: "$[1]",
|
|
1303
|
-
startDate: "$[2].startDate",
|
|
1304
|
-
paid: "$[2].paid",
|
|
1305
|
-
couponCode: "$[2].couponCode",
|
|
1306
|
-
submissionId: "$[2].submissionId"
|
|
1307
|
-
},
|
|
1334
|
+
explicitPathsToArguments: { id: "$[0]", effectiveAt: "$[1]" },
|
|
1308
1335
|
singleArgumentUnchanged: false
|
|
1309
1336
|
},
|
|
1310
|
-
["
|
|
1337
|
+
["_id", "effectiveAt"]
|
|
1311
1338
|
);
|
|
1312
1339
|
sideEffects?.onError?.(err);
|
|
1313
1340
|
throw transformedError;
|
|
1314
1341
|
}
|
|
1315
1342
|
}
|
|
1316
|
-
async function
|
|
1317
|
-
const { httpClient, sideEffects } = arguments[
|
|
1318
|
-
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
1319
|
-
|
|
1320
|
-
startDate: options?.startDate,
|
|
1321
|
-
couponCode: options?.couponCode
|
|
1322
|
-
});
|
|
1323
|
-
const reqOpts = getOnlineOrderPreview(payload);
|
|
1343
|
+
async function markAsPaid2(_id) {
|
|
1344
|
+
const { httpClient, sideEffects } = arguments[1];
|
|
1345
|
+
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({ id: _id });
|
|
1346
|
+
const reqOpts = markAsPaid(payload);
|
|
1324
1347
|
sideEffects?.onSiteCall?.();
|
|
1325
1348
|
try {
|
|
1326
1349
|
const result = await httpClient.request(reqOpts);
|
|
1327
1350
|
sideEffects?.onSuccess?.(result);
|
|
1328
|
-
return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data);
|
|
1329
1351
|
} catch (err) {
|
|
1330
1352
|
const transformedError = (0, import_transform_error.transformError)(
|
|
1331
1353
|
err,
|
|
1332
1354
|
{
|
|
1333
1355
|
spreadPathsToArguments: {},
|
|
1334
|
-
explicitPathsToArguments: {
|
|
1335
|
-
planId: "$[0]",
|
|
1336
|
-
startDate: "$[1].startDate",
|
|
1337
|
-
couponCode: "$[1].couponCode"
|
|
1338
|
-
},
|
|
1356
|
+
explicitPathsToArguments: { id: "$[0]" },
|
|
1339
1357
|
singleArgumentUnchanged: false
|
|
1340
1358
|
},
|
|
1341
|
-
["
|
|
1359
|
+
["_id"]
|
|
1342
1360
|
);
|
|
1343
1361
|
sideEffects?.onError?.(err);
|
|
1344
1362
|
throw transformedError;
|
|
1345
1363
|
}
|
|
1346
1364
|
}
|
|
1347
|
-
async function
|
|
1348
|
-
const { httpClient, sideEffects } = arguments[
|
|
1349
|
-
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
1350
|
-
|
|
1351
|
-
memberId,
|
|
1352
|
-
startDate: options?.startDate,
|
|
1353
|
-
couponCode: options?.couponCode
|
|
1354
|
-
});
|
|
1355
|
-
const reqOpts = getOfflineOrderPreview(payload);
|
|
1365
|
+
async function pauseOrder2(_id) {
|
|
1366
|
+
const { httpClient, sideEffects } = arguments[1];
|
|
1367
|
+
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({ id: _id });
|
|
1368
|
+
const reqOpts = pauseOrder(payload);
|
|
1356
1369
|
sideEffects?.onSiteCall?.();
|
|
1357
1370
|
try {
|
|
1358
1371
|
const result = await httpClient.request(reqOpts);
|
|
1359
1372
|
sideEffects?.onSuccess?.(result);
|
|
1360
|
-
return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data);
|
|
1361
1373
|
} catch (err) {
|
|
1362
1374
|
const transformedError = (0, import_transform_error.transformError)(
|
|
1363
1375
|
err,
|
|
1364
1376
|
{
|
|
1365
1377
|
spreadPathsToArguments: {},
|
|
1366
|
-
explicitPathsToArguments: {
|
|
1367
|
-
planId: "$[0]",
|
|
1368
|
-
memberId: "$[1]",
|
|
1369
|
-
startDate: "$[2].startDate",
|
|
1370
|
-
couponCode: "$[2].couponCode"
|
|
1371
|
-
},
|
|
1378
|
+
explicitPathsToArguments: { id: "$[0]" },
|
|
1372
1379
|
singleArgumentUnchanged: false
|
|
1373
1380
|
},
|
|
1374
|
-
["
|
|
1381
|
+
["_id"]
|
|
1375
1382
|
);
|
|
1376
1383
|
sideEffects?.onError?.(err);
|
|
1377
1384
|
throw transformedError;
|
|
1378
1385
|
}
|
|
1379
1386
|
}
|
|
1380
|
-
async function
|
|
1381
|
-
const { httpClient, sideEffects } = arguments[
|
|
1382
|
-
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
1383
|
-
|
|
1384
|
-
couponCode: options?.couponCode
|
|
1385
|
-
});
|
|
1386
|
-
const reqOpts = getPricePreview(payload);
|
|
1387
|
+
async function resumeOrder2(_id) {
|
|
1388
|
+
const { httpClient, sideEffects } = arguments[1];
|
|
1389
|
+
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({ id: _id });
|
|
1390
|
+
const reqOpts = resumeOrder(payload);
|
|
1387
1391
|
sideEffects?.onSiteCall?.();
|
|
1388
1392
|
try {
|
|
1389
1393
|
const result = await httpClient.request(reqOpts);
|
|
1390
1394
|
sideEffects?.onSuccess?.(result);
|
|
1391
|
-
return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data);
|
|
1392
1395
|
} catch (err) {
|
|
1393
1396
|
const transformedError = (0, import_transform_error.transformError)(
|
|
1394
1397
|
err,
|
|
1395
1398
|
{
|
|
1396
1399
|
spreadPathsToArguments: {},
|
|
1397
|
-
explicitPathsToArguments: {
|
|
1398
|
-
planId: "$[0]",
|
|
1399
|
-
couponCode: "$[1].couponCode"
|
|
1400
|
-
},
|
|
1400
|
+
explicitPathsToArguments: { id: "$[0]" },
|
|
1401
1401
|
singleArgumentUnchanged: false
|
|
1402
1402
|
},
|
|
1403
|
-
["
|
|
1403
|
+
["_id"]
|
|
1404
1404
|
);
|
|
1405
1405
|
sideEffects?.onError?.(err);
|
|
1406
1406
|
throw transformedError;
|