@wix/auto_sdk_pricing-plans_orders 1.0.124 → 1.0.125
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/cjs/index.d.ts +129 -129
- package/build/cjs/index.js +629 -629
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +787 -787
- package/build/cjs/index.typings.js +502 -502
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.d.ts +484 -484
- package/build/cjs/meta.js +388 -388
- package/build/cjs/meta.js.map +1 -1
- package/build/cjs/schemas.d.ts +199 -199
- package/build/cjs/schemas.js +889 -889
- package/build/cjs/schemas.js.map +1 -1
- package/build/es/index.d.mts +129 -129
- package/build/es/index.mjs +629 -629
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +787 -787
- package/build/es/index.typings.mjs +502 -502
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.d.mts +484 -484
- package/build/es/meta.mjs +388 -388
- package/build/es/meta.mjs.map +1 -1
- package/build/es/schemas.d.mts +199 -199
- package/build/es/schemas.mjs +889 -889
- package/build/es/schemas.mjs.map +1 -1
- package/build/internal/cjs/index.d.ts +129 -129
- package/build/internal/cjs/index.typings.d.ts +813 -813
- package/build/internal/cjs/meta.d.ts +500 -500
- package/build/internal/cjs/schemas.d.ts +199 -199
- package/build/internal/es/index.d.mts +129 -129
- package/build/internal/es/index.typings.d.mts +813 -813
- package/build/internal/es/meta.d.mts +500 -500
- package/build/internal/es/schemas.d.mts +199 -199
- package/package.json +2 -2
package/build/cjs/meta.js
CHANGED
|
@@ -148,317 +148,323 @@ function resolveComWixpressMembershipV2OrdersMemberMemberOrdersServiceUrl(opts)
|
|
|
148
148
|
};
|
|
149
149
|
return (0, import_rest_modules2.resolveUrl)(Object.assign(opts, { domainToMappings }));
|
|
150
150
|
}
|
|
151
|
-
function
|
|
151
|
+
function resolveComWixpressMembershipV2OrdersOrderManagementServiceUrl(opts) {
|
|
152
152
|
const domainToMappings = {
|
|
153
153
|
"api._api_base_domain_": [
|
|
154
154
|
{
|
|
155
|
-
srcPath: "/
|
|
155
|
+
srcPath: "/order-management-service-proxy",
|
|
156
156
|
destPath: ""
|
|
157
157
|
}
|
|
158
158
|
],
|
|
159
159
|
"*.dev.wix-code.com": [
|
|
160
160
|
{
|
|
161
|
-
srcPath: "/_api/paid-plans/v2/
|
|
162
|
-
destPath: "/v2/
|
|
161
|
+
srcPath: "/_api/paid-plans/v2/orders",
|
|
162
|
+
destPath: "/v2/orders"
|
|
163
163
|
},
|
|
164
164
|
{
|
|
165
|
-
srcPath: "/_api/pricing-plans/v2/
|
|
166
|
-
destPath: "/v2/
|
|
165
|
+
srcPath: "/_api/pricing-plans/v2/orders",
|
|
166
|
+
destPath: "/v2/orders"
|
|
167
167
|
}
|
|
168
168
|
],
|
|
169
169
|
"*.wixapps.net": [
|
|
170
170
|
{
|
|
171
|
-
srcPath: "/_api/paid-plans/v2/
|
|
172
|
-
destPath: "/v2/
|
|
171
|
+
srcPath: "/_api/paid-plans/v2/orders",
|
|
172
|
+
destPath: "/v2/orders"
|
|
173
173
|
}
|
|
174
174
|
],
|
|
175
175
|
"editor-flow.wixapps.net": [
|
|
176
176
|
{
|
|
177
|
-
srcPath: "/_api/paid-plans/v2/
|
|
178
|
-
destPath: "/v2/
|
|
177
|
+
srcPath: "/_api/paid-plans/v2/orders",
|
|
178
|
+
destPath: "/v2/orders"
|
|
179
179
|
}
|
|
180
180
|
],
|
|
181
181
|
"editor._base_domain_": [
|
|
182
182
|
{
|
|
183
|
-
srcPath: "/_api/paid-plans/v2/
|
|
184
|
-
destPath: "/v2/
|
|
183
|
+
srcPath: "/_api/paid-plans/v2/orders",
|
|
184
|
+
destPath: "/v2/orders"
|
|
185
185
|
},
|
|
186
186
|
{
|
|
187
|
-
srcPath: "/_api/pricing-plans/v2/
|
|
188
|
-
destPath: "/v2/
|
|
187
|
+
srcPath: "/_api/pricing-plans/v2/orders",
|
|
188
|
+
destPath: "/v2/orders"
|
|
189
189
|
}
|
|
190
190
|
],
|
|
191
191
|
"blocks._base_domain_": [
|
|
192
192
|
{
|
|
193
|
-
srcPath: "/_api/paid-plans/v2/
|
|
194
|
-
destPath: "/v2/
|
|
193
|
+
srcPath: "/_api/paid-plans/v2/orders",
|
|
194
|
+
destPath: "/v2/orders"
|
|
195
195
|
},
|
|
196
196
|
{
|
|
197
|
-
srcPath: "/_api/pricing-plans/v2/
|
|
198
|
-
destPath: "/v2/
|
|
197
|
+
srcPath: "/_api/pricing-plans/v2/orders",
|
|
198
|
+
destPath: "/v2/orders"
|
|
199
199
|
}
|
|
200
200
|
],
|
|
201
201
|
"create.editorx": [
|
|
202
202
|
{
|
|
203
|
-
srcPath: "/_api/paid-plans/v2/
|
|
204
|
-
destPath: "/v2/
|
|
203
|
+
srcPath: "/_api/paid-plans/v2/orders",
|
|
204
|
+
destPath: "/v2/orders"
|
|
205
205
|
},
|
|
206
206
|
{
|
|
207
|
-
srcPath: "/_api/pricing-plans/v2/
|
|
208
|
-
destPath: "/v2/
|
|
207
|
+
srcPath: "/_api/pricing-plans/v2/orders",
|
|
208
|
+
destPath: "/v2/orders"
|
|
209
209
|
}
|
|
210
210
|
],
|
|
211
211
|
"editor.wixapps.net": [
|
|
212
212
|
{
|
|
213
|
-
srcPath: "/_api/paid-plans/v2/
|
|
214
|
-
destPath: "/v2/
|
|
213
|
+
srcPath: "/_api/paid-plans/v2/orders",
|
|
214
|
+
destPath: "/v2/orders"
|
|
215
215
|
},
|
|
216
216
|
{
|
|
217
|
-
srcPath: "/_api/pricing-plans/v2/
|
|
218
|
-
destPath: "/v2/
|
|
217
|
+
srcPath: "/_api/pricing-plans/v2/orders",
|
|
218
|
+
destPath: "/v2/orders"
|
|
219
219
|
}
|
|
220
220
|
],
|
|
221
221
|
"forums._base_domain_": [
|
|
222
222
|
{
|
|
223
|
-
srcPath: "/_api/paid-plans/v2/
|
|
224
|
-
destPath: "/v2/
|
|
223
|
+
srcPath: "/_api/paid-plans/v2/orders",
|
|
224
|
+
destPath: "/v2/orders"
|
|
225
225
|
}
|
|
226
226
|
],
|
|
227
227
|
"forums.wixapps.net": [
|
|
228
228
|
{
|
|
229
|
-
srcPath: "/_api/paid-plans/v2/
|
|
230
|
-
destPath: "/v2/
|
|
229
|
+
srcPath: "/_api/paid-plans/v2/orders",
|
|
230
|
+
destPath: "/v2/orders"
|
|
231
231
|
}
|
|
232
232
|
],
|
|
233
233
|
"manage._base_domain_": [
|
|
234
234
|
{
|
|
235
|
-
srcPath: "/_api/pricing-plans/v2/
|
|
236
|
-
destPath: "/v2/
|
|
237
|
-
},
|
|
238
|
-
{
|
|
239
|
-
srcPath: "/_api/paid-plans/v2/checkout",
|
|
240
|
-
destPath: "/v2/checkout"
|
|
235
|
+
srcPath: "/_api/pricing-plans/v2/orders",
|
|
236
|
+
destPath: "/v2/orders"
|
|
241
237
|
},
|
|
242
238
|
{
|
|
243
|
-
srcPath: "/
|
|
244
|
-
destPath: "/v2/
|
|
239
|
+
srcPath: "/_api/paid-plans/v2/orders",
|
|
240
|
+
destPath: "/v2/orders"
|
|
245
241
|
}
|
|
246
242
|
],
|
|
247
243
|
"www.wixapis.com": [
|
|
248
244
|
{
|
|
249
|
-
srcPath: "/pricing-plans/v2/
|
|
250
|
-
destPath: "/v2/
|
|
245
|
+
srcPath: "/pricing-plans/v2/orders",
|
|
246
|
+
destPath: "/v2/orders"
|
|
251
247
|
}
|
|
252
248
|
],
|
|
253
249
|
_: [
|
|
254
250
|
{
|
|
255
|
-
srcPath: "/
|
|
256
|
-
destPath: "/v2/
|
|
257
|
-
},
|
|
258
|
-
{
|
|
259
|
-
srcPath: "/_api/paid-plans/v2/checkout",
|
|
260
|
-
destPath: "/v2/checkout"
|
|
251
|
+
srcPath: "/_api/paid-plans/v2/orders",
|
|
252
|
+
destPath: "/v2/orders"
|
|
261
253
|
},
|
|
262
254
|
{
|
|
263
|
-
srcPath: "/_api/pricing-plans/v2/
|
|
264
|
-
destPath: "/v2/
|
|
255
|
+
srcPath: "/_api/pricing-plans/v2/orders",
|
|
256
|
+
destPath: "/v2/orders"
|
|
265
257
|
}
|
|
266
258
|
],
|
|
267
259
|
"*.pub.wix-code.com": [
|
|
268
260
|
{
|
|
269
|
-
srcPath: "/_api/paid-plans/v2/
|
|
270
|
-
destPath: "/v2/
|
|
261
|
+
srcPath: "/_api/paid-plans/v2/orders",
|
|
262
|
+
destPath: "/v2/orders"
|
|
271
263
|
}
|
|
272
264
|
],
|
|
273
265
|
"www._base_domain_": [
|
|
274
266
|
{
|
|
275
|
-
srcPath: "/_api/paid-plans/v2/
|
|
276
|
-
destPath: "/v2/
|
|
267
|
+
srcPath: "/_api/paid-plans/v2/orders",
|
|
268
|
+
destPath: "/v2/orders"
|
|
277
269
|
}
|
|
278
270
|
],
|
|
279
271
|
"apps._base_domain_": [
|
|
280
272
|
{
|
|
281
|
-
srcPath: "/_api/paid-plans/v2/
|
|
282
|
-
destPath: "/v2/
|
|
273
|
+
srcPath: "/_api/paid-plans/v2/orders",
|
|
274
|
+
destPath: "/v2/orders"
|
|
283
275
|
},
|
|
284
276
|
{
|
|
285
|
-
srcPath: "/_api/pricing-plans/v2/
|
|
286
|
-
destPath: "/v2/
|
|
277
|
+
srcPath: "/_api/pricing-plans/v2/orders",
|
|
278
|
+
destPath: "/v2/orders"
|
|
287
279
|
}
|
|
288
280
|
],
|
|
289
281
|
"dev._base_domain_": [
|
|
290
282
|
{
|
|
291
|
-
srcPath: "/_api/paid-plans/v2/
|
|
292
|
-
destPath: "/v2/
|
|
283
|
+
srcPath: "/_api/paid-plans/v2/orders",
|
|
284
|
+
destPath: "/v2/orders"
|
|
293
285
|
},
|
|
294
286
|
{
|
|
295
|
-
srcPath: "/_api/pricing-plans/v2/
|
|
296
|
-
destPath: "/v2/
|
|
287
|
+
srcPath: "/_api/pricing-plans/v2/orders",
|
|
288
|
+
destPath: "/v2/orders"
|
|
297
289
|
}
|
|
298
290
|
]
|
|
299
291
|
};
|
|
300
292
|
return (0, import_rest_modules2.resolveUrl)(Object.assign(opts, { domainToMappings }));
|
|
301
293
|
}
|
|
302
|
-
function
|
|
294
|
+
function resolveComWixpressMembershipV2OrdersCheckoutServiceUrl(opts) {
|
|
303
295
|
const domainToMappings = {
|
|
304
296
|
"api._api_base_domain_": [
|
|
305
297
|
{
|
|
306
|
-
srcPath: "/
|
|
298
|
+
srcPath: "/pricing-plans-checkout-proxy",
|
|
307
299
|
destPath: ""
|
|
308
300
|
}
|
|
309
301
|
],
|
|
310
302
|
"*.dev.wix-code.com": [
|
|
311
303
|
{
|
|
312
|
-
srcPath: "/_api/paid-plans/v2/
|
|
313
|
-
destPath: "/v2/
|
|
304
|
+
srcPath: "/_api/paid-plans/v2/checkout",
|
|
305
|
+
destPath: "/v2/checkout"
|
|
314
306
|
},
|
|
315
307
|
{
|
|
316
|
-
srcPath: "/_api/pricing-plans/v2/
|
|
317
|
-
destPath: "/v2/
|
|
308
|
+
srcPath: "/_api/pricing-plans/v2/checkout",
|
|
309
|
+
destPath: "/v2/checkout"
|
|
318
310
|
}
|
|
319
311
|
],
|
|
320
312
|
"*.wixapps.net": [
|
|
321
313
|
{
|
|
322
|
-
srcPath: "/_api/paid-plans/v2/
|
|
323
|
-
destPath: "/v2/
|
|
314
|
+
srcPath: "/_api/paid-plans/v2/checkout",
|
|
315
|
+
destPath: "/v2/checkout"
|
|
324
316
|
}
|
|
325
317
|
],
|
|
326
318
|
"editor-flow.wixapps.net": [
|
|
327
319
|
{
|
|
328
|
-
srcPath: "/_api/paid-plans/v2/
|
|
329
|
-
destPath: "/v2/
|
|
320
|
+
srcPath: "/_api/paid-plans/v2/checkout",
|
|
321
|
+
destPath: "/v2/checkout"
|
|
330
322
|
}
|
|
331
323
|
],
|
|
332
324
|
"editor._base_domain_": [
|
|
333
325
|
{
|
|
334
|
-
srcPath: "/_api/paid-plans/v2/
|
|
335
|
-
destPath: "/v2/
|
|
326
|
+
srcPath: "/_api/paid-plans/v2/checkout",
|
|
327
|
+
destPath: "/v2/checkout"
|
|
336
328
|
},
|
|
337
329
|
{
|
|
338
|
-
srcPath: "/_api/pricing-plans/v2/
|
|
339
|
-
destPath: "/v2/
|
|
330
|
+
srcPath: "/_api/pricing-plans/v2/checkout",
|
|
331
|
+
destPath: "/v2/checkout"
|
|
340
332
|
}
|
|
341
333
|
],
|
|
342
334
|
"blocks._base_domain_": [
|
|
343
335
|
{
|
|
344
|
-
srcPath: "/_api/paid-plans/v2/
|
|
345
|
-
destPath: "/v2/
|
|
336
|
+
srcPath: "/_api/paid-plans/v2/checkout",
|
|
337
|
+
destPath: "/v2/checkout"
|
|
346
338
|
},
|
|
347
339
|
{
|
|
348
|
-
srcPath: "/_api/pricing-plans/v2/
|
|
349
|
-
destPath: "/v2/
|
|
340
|
+
srcPath: "/_api/pricing-plans/v2/checkout",
|
|
341
|
+
destPath: "/v2/checkout"
|
|
350
342
|
}
|
|
351
343
|
],
|
|
352
344
|
"create.editorx": [
|
|
353
345
|
{
|
|
354
|
-
srcPath: "/_api/paid-plans/v2/
|
|
355
|
-
destPath: "/v2/
|
|
346
|
+
srcPath: "/_api/paid-plans/v2/checkout",
|
|
347
|
+
destPath: "/v2/checkout"
|
|
356
348
|
},
|
|
357
349
|
{
|
|
358
|
-
srcPath: "/_api/pricing-plans/v2/
|
|
359
|
-
destPath: "/v2/
|
|
350
|
+
srcPath: "/_api/pricing-plans/v2/checkout",
|
|
351
|
+
destPath: "/v2/checkout"
|
|
360
352
|
}
|
|
361
353
|
],
|
|
362
354
|
"editor.wixapps.net": [
|
|
363
355
|
{
|
|
364
|
-
srcPath: "/_api/paid-plans/v2/
|
|
365
|
-
destPath: "/v2/
|
|
356
|
+
srcPath: "/_api/paid-plans/v2/checkout",
|
|
357
|
+
destPath: "/v2/checkout"
|
|
366
358
|
},
|
|
367
359
|
{
|
|
368
|
-
srcPath: "/_api/pricing-plans/v2/
|
|
369
|
-
destPath: "/v2/
|
|
360
|
+
srcPath: "/_api/pricing-plans/v2/checkout",
|
|
361
|
+
destPath: "/v2/checkout"
|
|
370
362
|
}
|
|
371
363
|
],
|
|
372
364
|
"forums._base_domain_": [
|
|
373
365
|
{
|
|
374
|
-
srcPath: "/_api/paid-plans/v2/
|
|
375
|
-
destPath: "/v2/
|
|
366
|
+
srcPath: "/_api/paid-plans/v2/checkout",
|
|
367
|
+
destPath: "/v2/checkout"
|
|
376
368
|
}
|
|
377
369
|
],
|
|
378
370
|
"forums.wixapps.net": [
|
|
379
371
|
{
|
|
380
|
-
srcPath: "/_api/paid-plans/v2/
|
|
381
|
-
destPath: "/v2/
|
|
372
|
+
srcPath: "/_api/paid-plans/v2/checkout",
|
|
373
|
+
destPath: "/v2/checkout"
|
|
382
374
|
}
|
|
383
375
|
],
|
|
384
376
|
"manage._base_domain_": [
|
|
385
377
|
{
|
|
386
|
-
srcPath: "/_api/pricing-plans/v2/
|
|
387
|
-
destPath: "/v2/
|
|
378
|
+
srcPath: "/_api/pricing-plans/v2/checkout",
|
|
379
|
+
destPath: "/v2/checkout"
|
|
388
380
|
},
|
|
389
381
|
{
|
|
390
|
-
srcPath: "/_api/paid-plans/v2/
|
|
391
|
-
destPath: "/v2/
|
|
382
|
+
srcPath: "/_api/paid-plans/v2/checkout",
|
|
383
|
+
destPath: "/v2/checkout"
|
|
384
|
+
},
|
|
385
|
+
{
|
|
386
|
+
srcPath: "/pricing-plans/v2/checkout",
|
|
387
|
+
destPath: "/v2/checkout"
|
|
392
388
|
}
|
|
393
389
|
],
|
|
394
390
|
"www.wixapis.com": [
|
|
395
391
|
{
|
|
396
|
-
srcPath: "/pricing-plans/v2/
|
|
397
|
-
destPath: "/v2/
|
|
392
|
+
srcPath: "/pricing-plans/v2/checkout",
|
|
393
|
+
destPath: "/v2/checkout"
|
|
398
394
|
}
|
|
399
395
|
],
|
|
400
396
|
_: [
|
|
401
397
|
{
|
|
402
|
-
srcPath: "/
|
|
403
|
-
destPath: "/v2/
|
|
398
|
+
srcPath: "/pricing-plans/v2/checkout",
|
|
399
|
+
destPath: "/v2/checkout"
|
|
404
400
|
},
|
|
405
401
|
{
|
|
406
|
-
srcPath: "/_api/
|
|
407
|
-
destPath: "/v2/
|
|
402
|
+
srcPath: "/_api/paid-plans/v2/checkout",
|
|
403
|
+
destPath: "/v2/checkout"
|
|
404
|
+
},
|
|
405
|
+
{
|
|
406
|
+
srcPath: "/_api/pricing-plans/v2/checkout",
|
|
407
|
+
destPath: "/v2/checkout"
|
|
408
408
|
}
|
|
409
409
|
],
|
|
410
410
|
"*.pub.wix-code.com": [
|
|
411
411
|
{
|
|
412
|
-
srcPath: "/_api/paid-plans/v2/
|
|
413
|
-
destPath: "/v2/
|
|
412
|
+
srcPath: "/_api/paid-plans/v2/checkout",
|
|
413
|
+
destPath: "/v2/checkout"
|
|
414
414
|
}
|
|
415
415
|
],
|
|
416
416
|
"www._base_domain_": [
|
|
417
417
|
{
|
|
418
|
-
srcPath: "/_api/paid-plans/v2/
|
|
419
|
-
destPath: "/v2/
|
|
418
|
+
srcPath: "/_api/paid-plans/v2/checkout",
|
|
419
|
+
destPath: "/v2/checkout"
|
|
420
420
|
}
|
|
421
421
|
],
|
|
422
422
|
"apps._base_domain_": [
|
|
423
423
|
{
|
|
424
|
-
srcPath: "/_api/paid-plans/v2/
|
|
425
|
-
destPath: "/v2/
|
|
424
|
+
srcPath: "/_api/paid-plans/v2/checkout",
|
|
425
|
+
destPath: "/v2/checkout"
|
|
426
426
|
},
|
|
427
427
|
{
|
|
428
|
-
srcPath: "/_api/pricing-plans/v2/
|
|
429
|
-
destPath: "/v2/
|
|
428
|
+
srcPath: "/_api/pricing-plans/v2/checkout",
|
|
429
|
+
destPath: "/v2/checkout"
|
|
430
430
|
}
|
|
431
431
|
],
|
|
432
432
|
"dev._base_domain_": [
|
|
433
433
|
{
|
|
434
|
-
srcPath: "/_api/paid-plans/v2/
|
|
435
|
-
destPath: "/v2/
|
|
434
|
+
srcPath: "/_api/paid-plans/v2/checkout",
|
|
435
|
+
destPath: "/v2/checkout"
|
|
436
436
|
},
|
|
437
437
|
{
|
|
438
|
-
srcPath: "/_api/pricing-plans/v2/
|
|
439
|
-
destPath: "/v2/
|
|
438
|
+
srcPath: "/_api/pricing-plans/v2/checkout",
|
|
439
|
+
destPath: "/v2/checkout"
|
|
440
440
|
}
|
|
441
441
|
]
|
|
442
442
|
};
|
|
443
443
|
return (0, import_rest_modules2.resolveUrl)(Object.assign(opts, { domainToMappings }));
|
|
444
444
|
}
|
|
445
445
|
var PACKAGE_NAME = "@wix/auto_sdk_pricing-plans_orders";
|
|
446
|
-
function
|
|
447
|
-
function
|
|
446
|
+
function createOnlineOrder(payload) {
|
|
447
|
+
function __createOnlineOrder({ host }) {
|
|
448
|
+
const serializedData = (0, import_transform_paths.transformPaths)(payload, [
|
|
449
|
+
{
|
|
450
|
+
transformFn: import_timestamp.transformSDKTimestampToRESTTimestamp,
|
|
451
|
+
paths: [{ path: "startDate" }]
|
|
452
|
+
}
|
|
453
|
+
]);
|
|
448
454
|
const metadata = {
|
|
449
455
|
entityFqdn: "wix.pricing_plans.v2.order",
|
|
450
|
-
method: "
|
|
451
|
-
methodFqn: "com.wixpress.membership.v2.orders.
|
|
456
|
+
method: "POST",
|
|
457
|
+
methodFqn: "com.wixpress.membership.v2.orders.CheckoutService.CreateOnlineOrder",
|
|
452
458
|
packageName: PACKAGE_NAME,
|
|
453
459
|
migrationOptions: {
|
|
454
460
|
optInTransformResponse: true
|
|
455
461
|
},
|
|
456
|
-
url:
|
|
457
|
-
protoPath: "/v2/orders/
|
|
458
|
-
data:
|
|
462
|
+
url: resolveComWixpressMembershipV2OrdersCheckoutServiceUrl({
|
|
463
|
+
protoPath: "/v2/checkout/orders/online",
|
|
464
|
+
data: serializedData,
|
|
459
465
|
host
|
|
460
466
|
}),
|
|
461
|
-
|
|
467
|
+
data: serializedData,
|
|
462
468
|
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
463
469
|
{
|
|
464
470
|
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
@@ -481,138 +487,158 @@ function managementGetOrder(payload) {
|
|
|
481
487
|
};
|
|
482
488
|
return metadata;
|
|
483
489
|
}
|
|
484
|
-
return
|
|
490
|
+
return __createOnlineOrder;
|
|
485
491
|
}
|
|
486
|
-
function
|
|
487
|
-
function
|
|
492
|
+
function createOfflineOrder(payload) {
|
|
493
|
+
function __createOfflineOrder({ host }) {
|
|
488
494
|
const serializedData = (0, import_transform_paths.transformPaths)(payload, [
|
|
489
495
|
{
|
|
490
|
-
transformFn:
|
|
491
|
-
paths: [
|
|
492
|
-
{ path: "sorting.origin.latitude" },
|
|
493
|
-
{ path: "sorting.origin.longitude" }
|
|
494
|
-
]
|
|
496
|
+
transformFn: import_timestamp.transformSDKTimestampToRESTTimestamp,
|
|
497
|
+
paths: [{ path: "startDate" }]
|
|
495
498
|
}
|
|
496
499
|
]);
|
|
497
500
|
const metadata = {
|
|
498
501
|
entityFqdn: "wix.pricing_plans.v2.order",
|
|
499
|
-
method: "
|
|
500
|
-
methodFqn: "com.wixpress.membership.v2.orders.
|
|
502
|
+
method: "POST",
|
|
503
|
+
methodFqn: "com.wixpress.membership.v2.orders.CheckoutService.CreateOfflineOrder",
|
|
501
504
|
packageName: PACKAGE_NAME,
|
|
502
505
|
migrationOptions: {
|
|
503
506
|
optInTransformResponse: true
|
|
504
507
|
},
|
|
505
|
-
url:
|
|
506
|
-
protoPath: "/v2/orders",
|
|
508
|
+
url: resolveComWixpressMembershipV2OrdersCheckoutServiceUrl({
|
|
509
|
+
protoPath: "/v2/checkout/orders/offline",
|
|
507
510
|
data: serializedData,
|
|
508
511
|
host
|
|
509
512
|
}),
|
|
510
|
-
|
|
513
|
+
data: serializedData,
|
|
511
514
|
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
512
515
|
{
|
|
513
516
|
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
514
517
|
paths: [
|
|
515
|
-
{ path: "
|
|
516
|
-
{ path: "
|
|
517
|
-
{ path: "
|
|
518
|
-
{ path: "
|
|
519
|
-
{ path: "
|
|
520
|
-
{ path: "
|
|
521
|
-
{ path: "
|
|
522
|
-
{ path: "
|
|
523
|
-
{ path: "
|
|
524
|
-
{ path: "
|
|
525
|
-
{ path: "
|
|
526
|
-
{ path: "
|
|
518
|
+
{ path: "order.startDate" },
|
|
519
|
+
{ path: "order.endDate" },
|
|
520
|
+
{ path: "order.earliestEndDate" },
|
|
521
|
+
{ path: "order.createdDate" },
|
|
522
|
+
{ path: "order.updatedDate" },
|
|
523
|
+
{ path: "order.cancellation.requestedDate" },
|
|
524
|
+
{ path: "order.pausePeriods.pauseDate" },
|
|
525
|
+
{ path: "order.pausePeriods.resumeDate" },
|
|
526
|
+
{ path: "order.currentCycle.startedDate" },
|
|
527
|
+
{ path: "order.currentCycle.endedDate" },
|
|
528
|
+
{ path: "order.cycles.startedDate" },
|
|
529
|
+
{ path: "order.cycles.endedDate" }
|
|
527
530
|
]
|
|
528
531
|
}
|
|
529
532
|
])
|
|
530
533
|
};
|
|
531
534
|
return metadata;
|
|
532
535
|
}
|
|
533
|
-
return
|
|
536
|
+
return __createOfflineOrder;
|
|
534
537
|
}
|
|
535
|
-
function
|
|
536
|
-
function
|
|
538
|
+
function getOnlineOrderPreview(payload) {
|
|
539
|
+
function __getOnlineOrderPreview({ host }) {
|
|
537
540
|
const serializedData = (0, import_transform_paths.transformPaths)(payload, [
|
|
538
541
|
{
|
|
539
542
|
transformFn: import_timestamp.transformSDKTimestampToRESTTimestamp,
|
|
540
|
-
paths: [{ path: "
|
|
543
|
+
paths: [{ path: "startDate" }]
|
|
541
544
|
}
|
|
542
545
|
]);
|
|
543
|
-
const metadata = {
|
|
544
|
-
entityFqdn: "wix.pricing_plans.v2.order",
|
|
545
|
-
method: "PATCH",
|
|
546
|
-
methodFqn: "com.wixpress.membership.v2.orders.OrderManagementService.PostponeEndDate",
|
|
547
|
-
packageName: PACKAGE_NAME,
|
|
548
|
-
migrationOptions: {
|
|
549
|
-
optInTransformResponse: true
|
|
550
|
-
},
|
|
551
|
-
url: resolveComWixpressMembershipV2OrdersOrderManagementServiceUrl({
|
|
552
|
-
protoPath: "/v2/orders/{id}",
|
|
553
|
-
data: serializedData,
|
|
554
|
-
host
|
|
555
|
-
}),
|
|
556
|
-
data: serializedData
|
|
557
|
-
};
|
|
558
|
-
return metadata;
|
|
559
|
-
}
|
|
560
|
-
return __postponeEndDate;
|
|
561
|
-
}
|
|
562
|
-
function cancelOrder(payload) {
|
|
563
|
-
function __cancelOrder({ host }) {
|
|
564
546
|
const metadata = {
|
|
565
547
|
entityFqdn: "wix.pricing_plans.v2.order",
|
|
566
548
|
method: "POST",
|
|
567
|
-
methodFqn: "com.wixpress.membership.v2.orders.
|
|
549
|
+
methodFqn: "com.wixpress.membership.v2.orders.CheckoutService.GetOnlineOrderPreview",
|
|
568
550
|
packageName: PACKAGE_NAME,
|
|
569
551
|
migrationOptions: {
|
|
570
552
|
optInTransformResponse: true
|
|
571
553
|
},
|
|
572
|
-
url:
|
|
573
|
-
protoPath: "/v2/orders/
|
|
574
|
-
data:
|
|
554
|
+
url: resolveComWixpressMembershipV2OrdersCheckoutServiceUrl({
|
|
555
|
+
protoPath: "/v2/checkout/orders/preview-online",
|
|
556
|
+
data: serializedData,
|
|
575
557
|
host
|
|
576
558
|
}),
|
|
577
|
-
data:
|
|
559
|
+
data: serializedData,
|
|
560
|
+
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
561
|
+
{
|
|
562
|
+
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
563
|
+
paths: [
|
|
564
|
+
{ path: "order.startDate" },
|
|
565
|
+
{ path: "order.endDate" },
|
|
566
|
+
{ path: "order.earliestEndDate" },
|
|
567
|
+
{ path: "order.createdDate" },
|
|
568
|
+
{ path: "order.updatedDate" },
|
|
569
|
+
{ path: "order.cancellation.requestedDate" },
|
|
570
|
+
{ path: "order.pausePeriods.pauseDate" },
|
|
571
|
+
{ path: "order.pausePeriods.resumeDate" },
|
|
572
|
+
{ path: "order.currentCycle.startedDate" },
|
|
573
|
+
{ path: "order.currentCycle.endedDate" },
|
|
574
|
+
{ path: "order.cycles.startedDate" },
|
|
575
|
+
{ path: "order.cycles.endedDate" }
|
|
576
|
+
]
|
|
577
|
+
}
|
|
578
|
+
])
|
|
578
579
|
};
|
|
579
580
|
return metadata;
|
|
580
581
|
}
|
|
581
|
-
return
|
|
582
|
+
return __getOnlineOrderPreview;
|
|
582
583
|
}
|
|
583
|
-
function
|
|
584
|
-
function
|
|
584
|
+
function getOfflineOrderPreview(payload) {
|
|
585
|
+
function __getOfflineOrderPreview({ host }) {
|
|
586
|
+
const serializedData = (0, import_transform_paths.transformPaths)(payload, [
|
|
587
|
+
{
|
|
588
|
+
transformFn: import_timestamp.transformSDKTimestampToRESTTimestamp,
|
|
589
|
+
paths: [{ path: "startDate" }]
|
|
590
|
+
}
|
|
591
|
+
]);
|
|
585
592
|
const metadata = {
|
|
586
593
|
entityFqdn: "wix.pricing_plans.v2.order",
|
|
587
594
|
method: "POST",
|
|
588
|
-
methodFqn: "com.wixpress.membership.v2.orders.
|
|
595
|
+
methodFqn: "com.wixpress.membership.v2.orders.CheckoutService.GetOfflineOrderPreview",
|
|
589
596
|
packageName: PACKAGE_NAME,
|
|
590
597
|
migrationOptions: {
|
|
591
598
|
optInTransformResponse: true
|
|
592
599
|
},
|
|
593
|
-
url:
|
|
594
|
-
protoPath: "/v2/orders/
|
|
595
|
-
data:
|
|
600
|
+
url: resolveComWixpressMembershipV2OrdersCheckoutServiceUrl({
|
|
601
|
+
protoPath: "/v2/checkout/orders/preview-offline",
|
|
602
|
+
data: serializedData,
|
|
596
603
|
host
|
|
597
604
|
}),
|
|
598
|
-
data:
|
|
605
|
+
data: serializedData,
|
|
606
|
+
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
607
|
+
{
|
|
608
|
+
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
609
|
+
paths: [
|
|
610
|
+
{ path: "order.startDate" },
|
|
611
|
+
{ path: "order.endDate" },
|
|
612
|
+
{ path: "order.earliestEndDate" },
|
|
613
|
+
{ path: "order.createdDate" },
|
|
614
|
+
{ path: "order.updatedDate" },
|
|
615
|
+
{ path: "order.cancellation.requestedDate" },
|
|
616
|
+
{ path: "order.pausePeriods.pauseDate" },
|
|
617
|
+
{ path: "order.pausePeriods.resumeDate" },
|
|
618
|
+
{ path: "order.currentCycle.startedDate" },
|
|
619
|
+
{ path: "order.currentCycle.endedDate" },
|
|
620
|
+
{ path: "order.cycles.startedDate" },
|
|
621
|
+
{ path: "order.cycles.endedDate" }
|
|
622
|
+
]
|
|
623
|
+
}
|
|
624
|
+
])
|
|
599
625
|
};
|
|
600
626
|
return metadata;
|
|
601
627
|
}
|
|
602
|
-
return
|
|
628
|
+
return __getOfflineOrderPreview;
|
|
603
629
|
}
|
|
604
|
-
function
|
|
605
|
-
function
|
|
630
|
+
function getPricePreview(payload) {
|
|
631
|
+
function __getPricePreview({ host }) {
|
|
606
632
|
const metadata = {
|
|
607
633
|
entityFqdn: "wix.pricing_plans.v2.order",
|
|
608
634
|
method: "POST",
|
|
609
|
-
methodFqn: "com.wixpress.membership.v2.orders.
|
|
635
|
+
methodFqn: "com.wixpress.membership.v2.orders.CheckoutService.GetPricePreview",
|
|
610
636
|
packageName: PACKAGE_NAME,
|
|
611
637
|
migrationOptions: {
|
|
612
638
|
optInTransformResponse: true
|
|
613
639
|
},
|
|
614
|
-
url:
|
|
615
|
-
protoPath: "/v2/orders/
|
|
640
|
+
url: resolveComWixpressMembershipV2OrdersCheckoutServiceUrl({
|
|
641
|
+
protoPath: "/v2/checkout/orders/price-preview",
|
|
616
642
|
data: payload,
|
|
617
643
|
host
|
|
618
644
|
}),
|
|
@@ -620,51 +646,24 @@ function pauseOrder(payload) {
|
|
|
620
646
|
};
|
|
621
647
|
return metadata;
|
|
622
648
|
}
|
|
623
|
-
return
|
|
649
|
+
return __getPricePreview;
|
|
624
650
|
}
|
|
625
|
-
function
|
|
626
|
-
function
|
|
651
|
+
function managementGetOrder(payload) {
|
|
652
|
+
function __managementGetOrder({ host }) {
|
|
627
653
|
const metadata = {
|
|
628
654
|
entityFqdn: "wix.pricing_plans.v2.order",
|
|
629
|
-
method: "
|
|
630
|
-
methodFqn: "com.wixpress.membership.v2.orders.OrderManagementService.
|
|
655
|
+
method: "GET",
|
|
656
|
+
methodFqn: "com.wixpress.membership.v2.orders.OrderManagementService.GetOrder",
|
|
631
657
|
packageName: PACKAGE_NAME,
|
|
632
658
|
migrationOptions: {
|
|
633
659
|
optInTransformResponse: true
|
|
634
660
|
},
|
|
635
661
|
url: resolveComWixpressMembershipV2OrdersOrderManagementServiceUrl({
|
|
636
|
-
protoPath: "/v2/orders/{id}
|
|
662
|
+
protoPath: "/v2/orders/{id}",
|
|
637
663
|
data: payload,
|
|
638
664
|
host
|
|
639
665
|
}),
|
|
640
|
-
|
|
641
|
-
};
|
|
642
|
-
return metadata;
|
|
643
|
-
}
|
|
644
|
-
return __resumeOrder;
|
|
645
|
-
}
|
|
646
|
-
function createOnlineOrder(payload) {
|
|
647
|
-
function __createOnlineOrder({ host }) {
|
|
648
|
-
const serializedData = (0, import_transform_paths.transformPaths)(payload, [
|
|
649
|
-
{
|
|
650
|
-
transformFn: import_timestamp.transformSDKTimestampToRESTTimestamp,
|
|
651
|
-
paths: [{ path: "startDate" }]
|
|
652
|
-
}
|
|
653
|
-
]);
|
|
654
|
-
const metadata = {
|
|
655
|
-
entityFqdn: "wix.pricing_plans.v2.order",
|
|
656
|
-
method: "POST",
|
|
657
|
-
methodFqn: "com.wixpress.membership.v2.orders.CheckoutService.CreateOnlineOrder",
|
|
658
|
-
packageName: PACKAGE_NAME,
|
|
659
|
-
migrationOptions: {
|
|
660
|
-
optInTransformResponse: true
|
|
661
|
-
},
|
|
662
|
-
url: resolveComWixpressMembershipV2OrdersCheckoutServiceUrl({
|
|
663
|
-
protoPath: "/v2/checkout/orders/online",
|
|
664
|
-
data: serializedData,
|
|
665
|
-
host
|
|
666
|
-
}),
|
|
667
|
-
data: serializedData,
|
|
666
|
+
params: (0, import_rest_modules.toURLSearchParams)(payload),
|
|
668
667
|
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
669
668
|
{
|
|
670
669
|
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
@@ -687,158 +686,159 @@ function createOnlineOrder(payload) {
|
|
|
687
686
|
};
|
|
688
687
|
return metadata;
|
|
689
688
|
}
|
|
690
|
-
return
|
|
689
|
+
return __managementGetOrder;
|
|
691
690
|
}
|
|
692
|
-
function
|
|
693
|
-
function
|
|
691
|
+
function managementListOrders(payload) {
|
|
692
|
+
function __managementListOrders({ host }) {
|
|
694
693
|
const serializedData = (0, import_transform_paths.transformPaths)(payload, [
|
|
695
694
|
{
|
|
696
|
-
transformFn:
|
|
697
|
-
paths: [
|
|
695
|
+
transformFn: import_float.transformSDKFloatToRESTFloat,
|
|
696
|
+
paths: [
|
|
697
|
+
{ path: "sorting.origin.latitude" },
|
|
698
|
+
{ path: "sorting.origin.longitude" }
|
|
699
|
+
]
|
|
698
700
|
}
|
|
699
701
|
]);
|
|
700
702
|
const metadata = {
|
|
701
703
|
entityFqdn: "wix.pricing_plans.v2.order",
|
|
702
|
-
method: "
|
|
703
|
-
methodFqn: "com.wixpress.membership.v2.orders.
|
|
704
|
+
method: "GET",
|
|
705
|
+
methodFqn: "com.wixpress.membership.v2.orders.OrderManagementService.ListOrders",
|
|
704
706
|
packageName: PACKAGE_NAME,
|
|
705
707
|
migrationOptions: {
|
|
706
708
|
optInTransformResponse: true
|
|
707
709
|
},
|
|
708
|
-
url:
|
|
709
|
-
protoPath: "/v2/
|
|
710
|
+
url: resolveComWixpressMembershipV2OrdersOrderManagementServiceUrl({
|
|
711
|
+
protoPath: "/v2/orders",
|
|
710
712
|
data: serializedData,
|
|
711
713
|
host
|
|
712
714
|
}),
|
|
713
|
-
|
|
715
|
+
params: (0, import_rest_modules.toURLSearchParams)(serializedData, true),
|
|
714
716
|
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
715
717
|
{
|
|
716
718
|
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
717
719
|
paths: [
|
|
718
|
-
{ path: "
|
|
719
|
-
{ path: "
|
|
720
|
-
{ path: "
|
|
721
|
-
{ path: "
|
|
722
|
-
{ path: "
|
|
723
|
-
{ path: "
|
|
724
|
-
{ path: "
|
|
725
|
-
{ path: "
|
|
726
|
-
{ path: "
|
|
727
|
-
{ path: "
|
|
728
|
-
{ path: "
|
|
729
|
-
{ path: "
|
|
720
|
+
{ path: "orders.startDate" },
|
|
721
|
+
{ path: "orders.endDate" },
|
|
722
|
+
{ path: "orders.earliestEndDate" },
|
|
723
|
+
{ path: "orders.createdDate" },
|
|
724
|
+
{ path: "orders.updatedDate" },
|
|
725
|
+
{ path: "orders.cancellation.requestedDate" },
|
|
726
|
+
{ path: "orders.pausePeriods.pauseDate" },
|
|
727
|
+
{ path: "orders.pausePeriods.resumeDate" },
|
|
728
|
+
{ path: "orders.currentCycle.startedDate" },
|
|
729
|
+
{ path: "orders.currentCycle.endedDate" },
|
|
730
|
+
{ path: "orders.cycles.startedDate" },
|
|
731
|
+
{ path: "orders.cycles.endedDate" }
|
|
730
732
|
]
|
|
731
733
|
}
|
|
732
734
|
])
|
|
733
735
|
};
|
|
734
736
|
return metadata;
|
|
735
737
|
}
|
|
736
|
-
return
|
|
738
|
+
return __managementListOrders;
|
|
739
|
+
}
|
|
740
|
+
function postponeEndDate(payload) {
|
|
741
|
+
function __postponeEndDate({ host }) {
|
|
742
|
+
const serializedData = (0, import_transform_paths.transformPaths)(payload, [
|
|
743
|
+
{
|
|
744
|
+
transformFn: import_timestamp.transformSDKTimestampToRESTTimestamp,
|
|
745
|
+
paths: [{ path: "endDate" }]
|
|
746
|
+
}
|
|
747
|
+
]);
|
|
748
|
+
const metadata = {
|
|
749
|
+
entityFqdn: "wix.pricing_plans.v2.order",
|
|
750
|
+
method: "PATCH",
|
|
751
|
+
methodFqn: "com.wixpress.membership.v2.orders.OrderManagementService.PostponeEndDate",
|
|
752
|
+
packageName: PACKAGE_NAME,
|
|
753
|
+
migrationOptions: {
|
|
754
|
+
optInTransformResponse: true
|
|
755
|
+
},
|
|
756
|
+
url: resolveComWixpressMembershipV2OrdersOrderManagementServiceUrl({
|
|
757
|
+
protoPath: "/v2/orders/{id}",
|
|
758
|
+
data: serializedData,
|
|
759
|
+
host
|
|
760
|
+
}),
|
|
761
|
+
data: serializedData
|
|
762
|
+
};
|
|
763
|
+
return metadata;
|
|
764
|
+
}
|
|
765
|
+
return __postponeEndDate;
|
|
766
|
+
}
|
|
767
|
+
function cancelOrder(payload) {
|
|
768
|
+
function __cancelOrder({ host }) {
|
|
769
|
+
const metadata = {
|
|
770
|
+
entityFqdn: "wix.pricing_plans.v2.order",
|
|
771
|
+
method: "POST",
|
|
772
|
+
methodFqn: "com.wixpress.membership.v2.orders.OrderManagementService.CancelOrder",
|
|
773
|
+
packageName: PACKAGE_NAME,
|
|
774
|
+
migrationOptions: {
|
|
775
|
+
optInTransformResponse: true
|
|
776
|
+
},
|
|
777
|
+
url: resolveComWixpressMembershipV2OrdersOrderManagementServiceUrl({
|
|
778
|
+
protoPath: "/v2/orders/{id}/cancel",
|
|
779
|
+
data: payload,
|
|
780
|
+
host
|
|
781
|
+
}),
|
|
782
|
+
data: payload
|
|
783
|
+
};
|
|
784
|
+
return metadata;
|
|
785
|
+
}
|
|
786
|
+
return __cancelOrder;
|
|
737
787
|
}
|
|
738
|
-
function
|
|
739
|
-
function
|
|
740
|
-
const serializedData = (0, import_transform_paths.transformPaths)(payload, [
|
|
741
|
-
{
|
|
742
|
-
transformFn: import_timestamp.transformSDKTimestampToRESTTimestamp,
|
|
743
|
-
paths: [{ path: "startDate" }]
|
|
744
|
-
}
|
|
745
|
-
]);
|
|
788
|
+
function markAsPaid(payload) {
|
|
789
|
+
function __markAsPaid({ host }) {
|
|
746
790
|
const metadata = {
|
|
747
791
|
entityFqdn: "wix.pricing_plans.v2.order",
|
|
748
792
|
method: "POST",
|
|
749
|
-
methodFqn: "com.wixpress.membership.v2.orders.
|
|
793
|
+
methodFqn: "com.wixpress.membership.v2.orders.OrderManagementService.MarkAsPaid",
|
|
750
794
|
packageName: PACKAGE_NAME,
|
|
751
795
|
migrationOptions: {
|
|
752
796
|
optInTransformResponse: true
|
|
753
797
|
},
|
|
754
|
-
url:
|
|
755
|
-
protoPath: "/v2/
|
|
756
|
-
data:
|
|
798
|
+
url: resolveComWixpressMembershipV2OrdersOrderManagementServiceUrl({
|
|
799
|
+
protoPath: "/v2/orders/{id}/mark-as-paid",
|
|
800
|
+
data: payload,
|
|
757
801
|
host
|
|
758
802
|
}),
|
|
759
|
-
data:
|
|
760
|
-
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
761
|
-
{
|
|
762
|
-
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
763
|
-
paths: [
|
|
764
|
-
{ path: "order.startDate" },
|
|
765
|
-
{ path: "order.endDate" },
|
|
766
|
-
{ path: "order.earliestEndDate" },
|
|
767
|
-
{ path: "order.createdDate" },
|
|
768
|
-
{ path: "order.updatedDate" },
|
|
769
|
-
{ path: "order.cancellation.requestedDate" },
|
|
770
|
-
{ path: "order.pausePeriods.pauseDate" },
|
|
771
|
-
{ path: "order.pausePeriods.resumeDate" },
|
|
772
|
-
{ path: "order.currentCycle.startedDate" },
|
|
773
|
-
{ path: "order.currentCycle.endedDate" },
|
|
774
|
-
{ path: "order.cycles.startedDate" },
|
|
775
|
-
{ path: "order.cycles.endedDate" }
|
|
776
|
-
]
|
|
777
|
-
}
|
|
778
|
-
])
|
|
803
|
+
data: payload
|
|
779
804
|
};
|
|
780
805
|
return metadata;
|
|
781
806
|
}
|
|
782
|
-
return
|
|
807
|
+
return __markAsPaid;
|
|
783
808
|
}
|
|
784
|
-
function
|
|
785
|
-
function
|
|
786
|
-
const serializedData = (0, import_transform_paths.transformPaths)(payload, [
|
|
787
|
-
{
|
|
788
|
-
transformFn: import_timestamp.transformSDKTimestampToRESTTimestamp,
|
|
789
|
-
paths: [{ path: "startDate" }]
|
|
790
|
-
}
|
|
791
|
-
]);
|
|
809
|
+
function pauseOrder(payload) {
|
|
810
|
+
function __pauseOrder({ host }) {
|
|
792
811
|
const metadata = {
|
|
793
812
|
entityFqdn: "wix.pricing_plans.v2.order",
|
|
794
813
|
method: "POST",
|
|
795
|
-
methodFqn: "com.wixpress.membership.v2.orders.
|
|
814
|
+
methodFqn: "com.wixpress.membership.v2.orders.OrderManagementService.PauseOrder",
|
|
796
815
|
packageName: PACKAGE_NAME,
|
|
797
816
|
migrationOptions: {
|
|
798
817
|
optInTransformResponse: true
|
|
799
818
|
},
|
|
800
|
-
url:
|
|
801
|
-
protoPath: "/v2/
|
|
802
|
-
data:
|
|
819
|
+
url: resolveComWixpressMembershipV2OrdersOrderManagementServiceUrl({
|
|
820
|
+
protoPath: "/v2/orders/{id}/pause",
|
|
821
|
+
data: payload,
|
|
803
822
|
host
|
|
804
823
|
}),
|
|
805
|
-
data:
|
|
806
|
-
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
807
|
-
{
|
|
808
|
-
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
809
|
-
paths: [
|
|
810
|
-
{ path: "order.startDate" },
|
|
811
|
-
{ path: "order.endDate" },
|
|
812
|
-
{ path: "order.earliestEndDate" },
|
|
813
|
-
{ path: "order.createdDate" },
|
|
814
|
-
{ path: "order.updatedDate" },
|
|
815
|
-
{ path: "order.cancellation.requestedDate" },
|
|
816
|
-
{ path: "order.pausePeriods.pauseDate" },
|
|
817
|
-
{ path: "order.pausePeriods.resumeDate" },
|
|
818
|
-
{ path: "order.currentCycle.startedDate" },
|
|
819
|
-
{ path: "order.currentCycle.endedDate" },
|
|
820
|
-
{ path: "order.cycles.startedDate" },
|
|
821
|
-
{ path: "order.cycles.endedDate" }
|
|
822
|
-
]
|
|
823
|
-
}
|
|
824
|
-
])
|
|
824
|
+
data: payload
|
|
825
825
|
};
|
|
826
826
|
return metadata;
|
|
827
827
|
}
|
|
828
|
-
return
|
|
828
|
+
return __pauseOrder;
|
|
829
829
|
}
|
|
830
|
-
function
|
|
831
|
-
function
|
|
830
|
+
function resumeOrder(payload) {
|
|
831
|
+
function __resumeOrder({ host }) {
|
|
832
832
|
const metadata = {
|
|
833
833
|
entityFqdn: "wix.pricing_plans.v2.order",
|
|
834
834
|
method: "POST",
|
|
835
|
-
methodFqn: "com.wixpress.membership.v2.orders.
|
|
835
|
+
methodFqn: "com.wixpress.membership.v2.orders.OrderManagementService.ResumeOrder",
|
|
836
836
|
packageName: PACKAGE_NAME,
|
|
837
837
|
migrationOptions: {
|
|
838
838
|
optInTransformResponse: true
|
|
839
839
|
},
|
|
840
|
-
url:
|
|
841
|
-
protoPath: "/v2/
|
|
840
|
+
url: resolveComWixpressMembershipV2OrdersOrderManagementServiceUrl({
|
|
841
|
+
protoPath: "/v2/orders/{id}/resume",
|
|
842
842
|
data: payload,
|
|
843
843
|
host
|
|
844
844
|
}),
|
|
@@ -846,7 +846,7 @@ function getPricePreview(payload) {
|
|
|
846
846
|
};
|
|
847
847
|
return metadata;
|
|
848
848
|
}
|
|
849
|
-
return
|
|
849
|
+
return __resumeOrder;
|
|
850
850
|
}
|
|
851
851
|
function memberGetOrder(payload) {
|
|
852
852
|
function __memberGetOrder({ host }) {
|
|
@@ -1022,6 +1022,14 @@ var Status = /* @__PURE__ */ ((Status2) => {
|
|
|
1022
1022
|
Status2["ENDED"] = "ENDED";
|
|
1023
1023
|
return Status2;
|
|
1024
1024
|
})(Status || {});
|
|
1025
|
+
var WebhookIdentityType = /* @__PURE__ */ ((WebhookIdentityType2) => {
|
|
1026
|
+
WebhookIdentityType2["UNKNOWN"] = "UNKNOWN";
|
|
1027
|
+
WebhookIdentityType2["ANONYMOUS_VISITOR"] = "ANONYMOUS_VISITOR";
|
|
1028
|
+
WebhookIdentityType2["MEMBER"] = "MEMBER";
|
|
1029
|
+
WebhookIdentityType2["WIX_USER"] = "WIX_USER";
|
|
1030
|
+
WebhookIdentityType2["APP"] = "APP";
|
|
1031
|
+
return WebhookIdentityType2;
|
|
1032
|
+
})(WebhookIdentityType || {});
|
|
1025
1033
|
var Set = /* @__PURE__ */ ((Set2) => {
|
|
1026
1034
|
Set2["UNKNOWN_SET"] = "UNKNOWN_SET";
|
|
1027
1035
|
Set2["BASIC"] = "BASIC";
|
|
@@ -1044,45 +1052,37 @@ var ReasonNotSuspendable = /* @__PURE__ */ ((ReasonNotSuspendable2) => {
|
|
|
1044
1052
|
ReasonNotSuspendable2["OLD_STRIPE"] = "OLD_STRIPE";
|
|
1045
1053
|
return ReasonNotSuspendable2;
|
|
1046
1054
|
})(ReasonNotSuspendable || {});
|
|
1047
|
-
var WebhookIdentityType = /* @__PURE__ */ ((WebhookIdentityType2) => {
|
|
1048
|
-
WebhookIdentityType2["UNKNOWN"] = "UNKNOWN";
|
|
1049
|
-
WebhookIdentityType2["ANONYMOUS_VISITOR"] = "ANONYMOUS_VISITOR";
|
|
1050
|
-
WebhookIdentityType2["MEMBER"] = "MEMBER";
|
|
1051
|
-
WebhookIdentityType2["WIX_USER"] = "WIX_USER";
|
|
1052
|
-
WebhookIdentityType2["APP"] = "APP";
|
|
1053
|
-
return WebhookIdentityType2;
|
|
1054
|
-
})(WebhookIdentityType || {});
|
|
1055
1055
|
|
|
1056
1056
|
// src/pricing-plans-v2-order-orders.meta.ts
|
|
1057
|
-
function
|
|
1058
|
-
const payload = {
|
|
1059
|
-
const getRequestOptions =
|
|
1057
|
+
function createOnlineOrder2() {
|
|
1058
|
+
const payload = {};
|
|
1059
|
+
const getRequestOptions = createOnlineOrder(payload);
|
|
1060
1060
|
const getUrl = (context) => {
|
|
1061
1061
|
const { url } = getRequestOptions(context);
|
|
1062
1062
|
return url;
|
|
1063
1063
|
};
|
|
1064
1064
|
return {
|
|
1065
1065
|
getUrl,
|
|
1066
|
-
httpMethod: "
|
|
1067
|
-
path: "/v2/orders/
|
|
1068
|
-
pathParams: {
|
|
1066
|
+
httpMethod: "POST",
|
|
1067
|
+
path: "/v2/checkout/orders/online",
|
|
1068
|
+
pathParams: {},
|
|
1069
1069
|
__requestType: null,
|
|
1070
1070
|
__originalRequestType: null,
|
|
1071
1071
|
__responseType: null,
|
|
1072
1072
|
__originalResponseType: null
|
|
1073
1073
|
};
|
|
1074
1074
|
}
|
|
1075
|
-
function
|
|
1075
|
+
function createOfflineOrder2() {
|
|
1076
1076
|
const payload = {};
|
|
1077
|
-
const getRequestOptions =
|
|
1077
|
+
const getRequestOptions = createOfflineOrder(payload);
|
|
1078
1078
|
const getUrl = (context) => {
|
|
1079
1079
|
const { url } = getRequestOptions(context);
|
|
1080
1080
|
return url;
|
|
1081
1081
|
};
|
|
1082
1082
|
return {
|
|
1083
1083
|
getUrl,
|
|
1084
|
-
httpMethod: "
|
|
1085
|
-
path: "/v2/orders",
|
|
1084
|
+
httpMethod: "POST",
|
|
1085
|
+
path: "/v2/checkout/orders/offline",
|
|
1086
1086
|
pathParams: {},
|
|
1087
1087
|
__requestType: null,
|
|
1088
1088
|
__originalRequestType: null,
|
|
@@ -1090,27 +1090,27 @@ function managementListOrders2() {
|
|
|
1090
1090
|
__originalResponseType: null
|
|
1091
1091
|
};
|
|
1092
1092
|
}
|
|
1093
|
-
function
|
|
1094
|
-
const payload = {
|
|
1095
|
-
const getRequestOptions =
|
|
1093
|
+
function getOnlineOrderPreview2() {
|
|
1094
|
+
const payload = {};
|
|
1095
|
+
const getRequestOptions = getOnlineOrderPreview(payload);
|
|
1096
1096
|
const getUrl = (context) => {
|
|
1097
1097
|
const { url } = getRequestOptions(context);
|
|
1098
1098
|
return url;
|
|
1099
1099
|
};
|
|
1100
1100
|
return {
|
|
1101
1101
|
getUrl,
|
|
1102
|
-
httpMethod: "
|
|
1103
|
-
path: "/v2/orders/
|
|
1104
|
-
pathParams: {
|
|
1102
|
+
httpMethod: "POST",
|
|
1103
|
+
path: "/v2/checkout/orders/preview-online",
|
|
1104
|
+
pathParams: {},
|
|
1105
1105
|
__requestType: null,
|
|
1106
1106
|
__originalRequestType: null,
|
|
1107
1107
|
__responseType: null,
|
|
1108
1108
|
__originalResponseType: null
|
|
1109
1109
|
};
|
|
1110
1110
|
}
|
|
1111
|
-
function
|
|
1112
|
-
const payload = {
|
|
1113
|
-
const getRequestOptions =
|
|
1111
|
+
function getOfflineOrderPreview2() {
|
|
1112
|
+
const payload = {};
|
|
1113
|
+
const getRequestOptions = getOfflineOrderPreview(payload);
|
|
1114
1114
|
const getUrl = (context) => {
|
|
1115
1115
|
const { url } = getRequestOptions(context);
|
|
1116
1116
|
return url;
|
|
@@ -1118,17 +1118,17 @@ function cancelOrder2() {
|
|
|
1118
1118
|
return {
|
|
1119
1119
|
getUrl,
|
|
1120
1120
|
httpMethod: "POST",
|
|
1121
|
-
path: "/v2/orders/
|
|
1122
|
-
pathParams: {
|
|
1121
|
+
path: "/v2/checkout/orders/preview-offline",
|
|
1122
|
+
pathParams: {},
|
|
1123
1123
|
__requestType: null,
|
|
1124
1124
|
__originalRequestType: null,
|
|
1125
1125
|
__responseType: null,
|
|
1126
1126
|
__originalResponseType: null
|
|
1127
1127
|
};
|
|
1128
1128
|
}
|
|
1129
|
-
function
|
|
1130
|
-
const payload = {
|
|
1131
|
-
const getRequestOptions =
|
|
1129
|
+
function getPricePreview2() {
|
|
1130
|
+
const payload = {};
|
|
1131
|
+
const getRequestOptions = getPricePreview(payload);
|
|
1132
1132
|
const getUrl = (context) => {
|
|
1133
1133
|
const { url } = getRequestOptions(context);
|
|
1134
1134
|
return url;
|
|
@@ -1136,25 +1136,25 @@ function markAsPaid2() {
|
|
|
1136
1136
|
return {
|
|
1137
1137
|
getUrl,
|
|
1138
1138
|
httpMethod: "POST",
|
|
1139
|
-
path: "/v2/orders/
|
|
1140
|
-
pathParams: {
|
|
1139
|
+
path: "/v2/checkout/orders/price-preview",
|
|
1140
|
+
pathParams: {},
|
|
1141
1141
|
__requestType: null,
|
|
1142
1142
|
__originalRequestType: null,
|
|
1143
1143
|
__responseType: null,
|
|
1144
1144
|
__originalResponseType: null
|
|
1145
1145
|
};
|
|
1146
1146
|
}
|
|
1147
|
-
function
|
|
1147
|
+
function managementGetOrder2() {
|
|
1148
1148
|
const payload = { id: ":id" };
|
|
1149
|
-
const getRequestOptions =
|
|
1149
|
+
const getRequestOptions = managementGetOrder(payload);
|
|
1150
1150
|
const getUrl = (context) => {
|
|
1151
1151
|
const { url } = getRequestOptions(context);
|
|
1152
1152
|
return url;
|
|
1153
1153
|
};
|
|
1154
1154
|
return {
|
|
1155
1155
|
getUrl,
|
|
1156
|
-
httpMethod: "
|
|
1157
|
-
path: "/v2/orders/{id}
|
|
1156
|
+
httpMethod: "GET",
|
|
1157
|
+
path: "/v2/orders/{id}",
|
|
1158
1158
|
pathParams: { id: "id" },
|
|
1159
1159
|
__requestType: null,
|
|
1160
1160
|
__originalRequestType: null,
|
|
@@ -1162,45 +1162,45 @@ function pauseOrder2() {
|
|
|
1162
1162
|
__originalResponseType: null
|
|
1163
1163
|
};
|
|
1164
1164
|
}
|
|
1165
|
-
function
|
|
1166
|
-
const payload = {
|
|
1167
|
-
const getRequestOptions =
|
|
1165
|
+
function managementListOrders2() {
|
|
1166
|
+
const payload = {};
|
|
1167
|
+
const getRequestOptions = managementListOrders(payload);
|
|
1168
1168
|
const getUrl = (context) => {
|
|
1169
1169
|
const { url } = getRequestOptions(context);
|
|
1170
1170
|
return url;
|
|
1171
1171
|
};
|
|
1172
1172
|
return {
|
|
1173
1173
|
getUrl,
|
|
1174
|
-
httpMethod: "
|
|
1175
|
-
path: "/v2/orders
|
|
1176
|
-
pathParams: {
|
|
1174
|
+
httpMethod: "GET",
|
|
1175
|
+
path: "/v2/orders",
|
|
1176
|
+
pathParams: {},
|
|
1177
1177
|
__requestType: null,
|
|
1178
1178
|
__originalRequestType: null,
|
|
1179
1179
|
__responseType: null,
|
|
1180
1180
|
__originalResponseType: null
|
|
1181
1181
|
};
|
|
1182
1182
|
}
|
|
1183
|
-
function
|
|
1184
|
-
const payload = {};
|
|
1185
|
-
const getRequestOptions =
|
|
1183
|
+
function postponeEndDate2() {
|
|
1184
|
+
const payload = { id: ":id" };
|
|
1185
|
+
const getRequestOptions = postponeEndDate(payload);
|
|
1186
1186
|
const getUrl = (context) => {
|
|
1187
1187
|
const { url } = getRequestOptions(context);
|
|
1188
1188
|
return url;
|
|
1189
1189
|
};
|
|
1190
1190
|
return {
|
|
1191
1191
|
getUrl,
|
|
1192
|
-
httpMethod: "
|
|
1193
|
-
path: "/v2/
|
|
1194
|
-
pathParams: {},
|
|
1192
|
+
httpMethod: "PATCH",
|
|
1193
|
+
path: "/v2/orders/{id}",
|
|
1194
|
+
pathParams: { id: "id" },
|
|
1195
1195
|
__requestType: null,
|
|
1196
1196
|
__originalRequestType: null,
|
|
1197
1197
|
__responseType: null,
|
|
1198
1198
|
__originalResponseType: null
|
|
1199
1199
|
};
|
|
1200
1200
|
}
|
|
1201
|
-
function
|
|
1202
|
-
const payload = {};
|
|
1203
|
-
const getRequestOptions =
|
|
1201
|
+
function cancelOrder2() {
|
|
1202
|
+
const payload = { id: ":id" };
|
|
1203
|
+
const getRequestOptions = cancelOrder(payload);
|
|
1204
1204
|
const getUrl = (context) => {
|
|
1205
1205
|
const { url } = getRequestOptions(context);
|
|
1206
1206
|
return url;
|
|
@@ -1208,17 +1208,17 @@ function createOfflineOrder2() {
|
|
|
1208
1208
|
return {
|
|
1209
1209
|
getUrl,
|
|
1210
1210
|
httpMethod: "POST",
|
|
1211
|
-
path: "/v2/
|
|
1212
|
-
pathParams: {},
|
|
1211
|
+
path: "/v2/orders/{id}/cancel",
|
|
1212
|
+
pathParams: { id: "id" },
|
|
1213
1213
|
__requestType: null,
|
|
1214
1214
|
__originalRequestType: null,
|
|
1215
1215
|
__responseType: null,
|
|
1216
1216
|
__originalResponseType: null
|
|
1217
1217
|
};
|
|
1218
1218
|
}
|
|
1219
|
-
function
|
|
1220
|
-
const payload = {};
|
|
1221
|
-
const getRequestOptions =
|
|
1219
|
+
function markAsPaid2() {
|
|
1220
|
+
const payload = { id: ":id" };
|
|
1221
|
+
const getRequestOptions = markAsPaid(payload);
|
|
1222
1222
|
const getUrl = (context) => {
|
|
1223
1223
|
const { url } = getRequestOptions(context);
|
|
1224
1224
|
return url;
|
|
@@ -1226,17 +1226,17 @@ function getOnlineOrderPreview2() {
|
|
|
1226
1226
|
return {
|
|
1227
1227
|
getUrl,
|
|
1228
1228
|
httpMethod: "POST",
|
|
1229
|
-
path: "/v2/
|
|
1230
|
-
pathParams: {},
|
|
1229
|
+
path: "/v2/orders/{id}/mark-as-paid",
|
|
1230
|
+
pathParams: { id: "id" },
|
|
1231
1231
|
__requestType: null,
|
|
1232
1232
|
__originalRequestType: null,
|
|
1233
1233
|
__responseType: null,
|
|
1234
1234
|
__originalResponseType: null
|
|
1235
1235
|
};
|
|
1236
1236
|
}
|
|
1237
|
-
function
|
|
1238
|
-
const payload = {};
|
|
1239
|
-
const getRequestOptions =
|
|
1237
|
+
function pauseOrder2() {
|
|
1238
|
+
const payload = { id: ":id" };
|
|
1239
|
+
const getRequestOptions = pauseOrder(payload);
|
|
1240
1240
|
const getUrl = (context) => {
|
|
1241
1241
|
const { url } = getRequestOptions(context);
|
|
1242
1242
|
return url;
|
|
@@ -1244,17 +1244,17 @@ function getOfflineOrderPreview2() {
|
|
|
1244
1244
|
return {
|
|
1245
1245
|
getUrl,
|
|
1246
1246
|
httpMethod: "POST",
|
|
1247
|
-
path: "/v2/
|
|
1248
|
-
pathParams: {},
|
|
1247
|
+
path: "/v2/orders/{id}/pause",
|
|
1248
|
+
pathParams: { id: "id" },
|
|
1249
1249
|
__requestType: null,
|
|
1250
1250
|
__originalRequestType: null,
|
|
1251
1251
|
__responseType: null,
|
|
1252
1252
|
__originalResponseType: null
|
|
1253
1253
|
};
|
|
1254
1254
|
}
|
|
1255
|
-
function
|
|
1256
|
-
const payload = {};
|
|
1257
|
-
const getRequestOptions =
|
|
1255
|
+
function resumeOrder2() {
|
|
1256
|
+
const payload = { id: ":id" };
|
|
1257
|
+
const getRequestOptions = resumeOrder(payload);
|
|
1258
1258
|
const getUrl = (context) => {
|
|
1259
1259
|
const { url } = getRequestOptions(context);
|
|
1260
1260
|
return url;
|
|
@@ -1262,8 +1262,8 @@ function getPricePreview2() {
|
|
|
1262
1262
|
return {
|
|
1263
1263
|
getUrl,
|
|
1264
1264
|
httpMethod: "POST",
|
|
1265
|
-
path: "/v2/
|
|
1266
|
-
pathParams: {},
|
|
1265
|
+
path: "/v2/orders/{id}/resume",
|
|
1266
|
+
pathParams: { id: "id" },
|
|
1267
1267
|
__requestType: null,
|
|
1268
1268
|
__originalRequestType: null,
|
|
1269
1269
|
__responseType: null,
|