@wix/auto_sdk_pricing-plans_orders 1.0.113 → 1.0.114
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 +155 -155
- package/build/cjs/index.js +452 -452
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +498 -498
- package/build/cjs/index.typings.js +323 -323
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.d.ts +268 -268
- package/build/cjs/meta.js +334 -334
- package/build/cjs/meta.js.map +1 -1
- package/build/cjs/schemas.d.ts +30 -30
- package/build/cjs/schemas.js +59 -59
- package/build/cjs/schemas.js.map +1 -1
- package/build/es/index.d.mts +155 -155
- package/build/es/index.mjs +452 -452
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +498 -498
- package/build/es/index.typings.mjs +323 -323
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.d.mts +268 -268
- package/build/es/meta.mjs +334 -334
- package/build/es/meta.mjs.map +1 -1
- package/build/es/schemas.d.mts +30 -30
- package/build/es/schemas.mjs +59 -59
- package/build/es/schemas.mjs.map +1 -1
- package/build/internal/cjs/index.d.ts +155 -155
- package/build/internal/cjs/index.js +452 -452
- package/build/internal/cjs/index.js.map +1 -1
- package/build/internal/cjs/index.typings.d.ts +498 -498
- package/build/internal/cjs/index.typings.js +323 -323
- package/build/internal/cjs/index.typings.js.map +1 -1
- package/build/internal/cjs/meta.d.ts +268 -268
- package/build/internal/cjs/meta.js +334 -334
- package/build/internal/cjs/meta.js.map +1 -1
- package/build/internal/cjs/schemas.d.ts +30 -30
- package/build/internal/cjs/schemas.js +59 -59
- package/build/internal/cjs/schemas.js.map +1 -1
- package/build/internal/es/index.d.mts +155 -155
- package/build/internal/es/index.mjs +452 -452
- package/build/internal/es/index.mjs.map +1 -1
- package/build/internal/es/index.typings.d.mts +498 -498
- package/build/internal/es/index.typings.mjs +323 -323
- package/build/internal/es/index.typings.mjs.map +1 -1
- package/build/internal/es/meta.d.mts +268 -268
- package/build/internal/es/meta.mjs +334 -334
- package/build/internal/es/meta.mjs.map +1 -1
- package/build/internal/es/schemas.d.mts +30 -30
- package/build/internal/es/schemas.mjs +59 -59
- package/build/internal/es/schemas.mjs.map +1 -1
- package/package.json +2 -2
package/build/cjs/meta.js
CHANGED
|
@@ -56,62 +56,100 @@ var import_timestamp = require("@wix/sdk-runtime/transformations/timestamp");
|
|
|
56
56
|
var import_timestamp2 = require("@wix/sdk-runtime/transformations/timestamp");
|
|
57
57
|
var import_transform_paths = require("@wix/sdk-runtime/transformations/transform-paths");
|
|
58
58
|
var import_rest_modules2 = require("@wix/sdk-runtime/rest-modules");
|
|
59
|
-
function
|
|
59
|
+
function resolveComWixpressMembershipV2OrdersOrderManagementServiceUrl(opts) {
|
|
60
60
|
const domainToMappings = {
|
|
61
61
|
"api._api_base_domain_": [
|
|
62
62
|
{
|
|
63
|
-
srcPath: "/
|
|
63
|
+
srcPath: "/order-management-service-proxy",
|
|
64
64
|
destPath: ""
|
|
65
65
|
}
|
|
66
66
|
],
|
|
67
67
|
"*.dev.wix-code.com": [
|
|
68
68
|
{
|
|
69
|
-
srcPath: "/_api/
|
|
70
|
-
destPath: "/v2/
|
|
71
|
-
},
|
|
72
|
-
{
|
|
73
|
-
srcPath: "/_api/pricing-plans/v2/member/orders",
|
|
74
|
-
destPath: "/v2/member/orders"
|
|
69
|
+
srcPath: "/_api/paid-plans/v2/orders",
|
|
70
|
+
destPath: "/v2/orders"
|
|
75
71
|
}
|
|
76
72
|
],
|
|
77
73
|
"*.pub.wix-code.com": [
|
|
78
74
|
{
|
|
79
|
-
srcPath: "/_api/
|
|
80
|
-
destPath: "/v2/
|
|
81
|
-
}
|
|
75
|
+
srcPath: "/_api/paid-plans/v2/orders",
|
|
76
|
+
destPath: "/v2/orders"
|
|
77
|
+
}
|
|
78
|
+
],
|
|
79
|
+
"*.wixapps.net": [
|
|
82
80
|
{
|
|
83
|
-
srcPath: "/_api/
|
|
84
|
-
destPath: "/v2/
|
|
81
|
+
srcPath: "/_api/paid-plans/v2/orders",
|
|
82
|
+
destPath: "/v2/orders"
|
|
85
83
|
}
|
|
86
84
|
],
|
|
87
85
|
_: [
|
|
88
86
|
{
|
|
89
|
-
srcPath: "/_api/
|
|
90
|
-
destPath: "/v2/
|
|
87
|
+
srcPath: "/_api/paid-plans/v2/orders",
|
|
88
|
+
destPath: "/v2/orders"
|
|
89
|
+
}
|
|
90
|
+
],
|
|
91
|
+
"editor-flow.wixapps.net": [
|
|
92
|
+
{
|
|
93
|
+
srcPath: "/_api/paid-plans/v2/orders",
|
|
94
|
+
destPath: "/v2/orders"
|
|
95
|
+
}
|
|
96
|
+
],
|
|
97
|
+
"editor._base_domain_": [
|
|
98
|
+
{
|
|
99
|
+
srcPath: "/_api/paid-plans/v2/orders",
|
|
100
|
+
destPath: "/v2/orders"
|
|
101
|
+
}
|
|
102
|
+
],
|
|
103
|
+
"blocks._base_domain_": [
|
|
104
|
+
{
|
|
105
|
+
srcPath: "/_api/paid-plans/v2/orders",
|
|
106
|
+
destPath: "/v2/orders"
|
|
107
|
+
}
|
|
108
|
+
],
|
|
109
|
+
"create.editorx": [
|
|
110
|
+
{
|
|
111
|
+
srcPath: "/_api/paid-plans/v2/orders",
|
|
112
|
+
destPath: "/v2/orders"
|
|
91
113
|
}
|
|
92
114
|
],
|
|
93
115
|
"editor.wixapps.net": [
|
|
94
116
|
{
|
|
95
|
-
srcPath: "/_api/
|
|
96
|
-
destPath: "/v2/
|
|
117
|
+
srcPath: "/_api/paid-plans/v2/orders",
|
|
118
|
+
destPath: "/v2/orders"
|
|
119
|
+
}
|
|
120
|
+
],
|
|
121
|
+
"forums._base_domain_": [
|
|
122
|
+
{
|
|
123
|
+
srcPath: "/_api/paid-plans/v2/orders",
|
|
124
|
+
destPath: "/v2/orders"
|
|
125
|
+
}
|
|
126
|
+
],
|
|
127
|
+
"forums.wixapps.net": [
|
|
128
|
+
{
|
|
129
|
+
srcPath: "/_api/paid-plans/v2/orders",
|
|
130
|
+
destPath: "/v2/orders"
|
|
97
131
|
}
|
|
98
132
|
],
|
|
99
133
|
"manage._base_domain_": [
|
|
100
134
|
{
|
|
101
|
-
srcPath: "/_api/pricing-plans/v2/
|
|
102
|
-
destPath: "/v2/
|
|
135
|
+
srcPath: "/_api/pricing-plans/v2/orders",
|
|
136
|
+
destPath: "/v2/orders"
|
|
137
|
+
},
|
|
138
|
+
{
|
|
139
|
+
srcPath: "/_api/paid-plans/v2/orders",
|
|
140
|
+
destPath: "/v2/orders"
|
|
103
141
|
}
|
|
104
142
|
],
|
|
105
143
|
"www._base_domain_": [
|
|
106
144
|
{
|
|
107
|
-
srcPath: "/_api/
|
|
108
|
-
destPath: "/v2/
|
|
145
|
+
srcPath: "/_api/paid-plans/v2/orders",
|
|
146
|
+
destPath: "/v2/orders"
|
|
109
147
|
}
|
|
110
148
|
],
|
|
111
149
|
"www.wixapis.com": [
|
|
112
150
|
{
|
|
113
|
-
srcPath: "/pricing-plans/v2/
|
|
114
|
-
destPath: "/v2/
|
|
151
|
+
srcPath: "/pricing-plans/v2/orders",
|
|
152
|
+
destPath: "/v2/orders"
|
|
115
153
|
}
|
|
116
154
|
]
|
|
117
155
|
};
|
|
@@ -228,118 +266,80 @@ function resolveComWixpressMembershipV2OrdersCheckoutServiceUrl(opts) {
|
|
|
228
266
|
};
|
|
229
267
|
return (0, import_rest_modules2.resolveUrl)(Object.assign(opts, { domainToMappings }));
|
|
230
268
|
}
|
|
231
|
-
function
|
|
269
|
+
function resolveComWixpressMembershipV2OrdersMemberMemberOrdersServiceUrl(opts) {
|
|
232
270
|
const domainToMappings = {
|
|
233
271
|
"api._api_base_domain_": [
|
|
234
272
|
{
|
|
235
|
-
srcPath: "/
|
|
273
|
+
srcPath: "/member-orders-service-proxy",
|
|
236
274
|
destPath: ""
|
|
237
275
|
}
|
|
238
276
|
],
|
|
239
277
|
"*.dev.wix-code.com": [
|
|
240
278
|
{
|
|
241
|
-
srcPath: "/_api/
|
|
242
|
-
destPath: "/v2/orders"
|
|
279
|
+
srcPath: "/_api/pricing-plans-member-orders/v2/member/orders",
|
|
280
|
+
destPath: "/v2/member/orders"
|
|
281
|
+
},
|
|
282
|
+
{
|
|
283
|
+
srcPath: "/_api/pricing-plans/v2/member/orders",
|
|
284
|
+
destPath: "/v2/member/orders"
|
|
243
285
|
}
|
|
244
286
|
],
|
|
245
287
|
"*.pub.wix-code.com": [
|
|
246
288
|
{
|
|
247
|
-
srcPath: "/_api/
|
|
248
|
-
destPath: "/v2/orders"
|
|
249
|
-
}
|
|
250
|
-
],
|
|
251
|
-
"*.wixapps.net": [
|
|
289
|
+
srcPath: "/_api/pricing-plans-member-orders/v2/member/orders",
|
|
290
|
+
destPath: "/v2/member/orders"
|
|
291
|
+
},
|
|
252
292
|
{
|
|
253
|
-
srcPath: "/_api/
|
|
254
|
-
destPath: "/v2/orders"
|
|
293
|
+
srcPath: "/_api/pricing-plans/v2/member/orders",
|
|
294
|
+
destPath: "/v2/member/orders"
|
|
255
295
|
}
|
|
256
296
|
],
|
|
257
297
|
_: [
|
|
258
298
|
{
|
|
259
|
-
srcPath: "/_api/
|
|
260
|
-
destPath: "/v2/orders"
|
|
261
|
-
}
|
|
262
|
-
],
|
|
263
|
-
"editor-flow.wixapps.net": [
|
|
264
|
-
{
|
|
265
|
-
srcPath: "/_api/paid-plans/v2/orders",
|
|
266
|
-
destPath: "/v2/orders"
|
|
267
|
-
}
|
|
268
|
-
],
|
|
269
|
-
"editor._base_domain_": [
|
|
270
|
-
{
|
|
271
|
-
srcPath: "/_api/paid-plans/v2/orders",
|
|
272
|
-
destPath: "/v2/orders"
|
|
273
|
-
}
|
|
274
|
-
],
|
|
275
|
-
"blocks._base_domain_": [
|
|
276
|
-
{
|
|
277
|
-
srcPath: "/_api/paid-plans/v2/orders",
|
|
278
|
-
destPath: "/v2/orders"
|
|
279
|
-
}
|
|
280
|
-
],
|
|
281
|
-
"create.editorx": [
|
|
282
|
-
{
|
|
283
|
-
srcPath: "/_api/paid-plans/v2/orders",
|
|
284
|
-
destPath: "/v2/orders"
|
|
299
|
+
srcPath: "/_api/pricing-plans/v2/member/orders",
|
|
300
|
+
destPath: "/v2/member/orders"
|
|
285
301
|
}
|
|
286
302
|
],
|
|
287
303
|
"editor.wixapps.net": [
|
|
288
304
|
{
|
|
289
|
-
srcPath: "/_api/
|
|
290
|
-
destPath: "/v2/orders"
|
|
291
|
-
}
|
|
292
|
-
],
|
|
293
|
-
"forums._base_domain_": [
|
|
294
|
-
{
|
|
295
|
-
srcPath: "/_api/paid-plans/v2/orders",
|
|
296
|
-
destPath: "/v2/orders"
|
|
297
|
-
}
|
|
298
|
-
],
|
|
299
|
-
"forums.wixapps.net": [
|
|
300
|
-
{
|
|
301
|
-
srcPath: "/_api/paid-plans/v2/orders",
|
|
302
|
-
destPath: "/v2/orders"
|
|
305
|
+
srcPath: "/_api/pricing-plans/v2/member/orders",
|
|
306
|
+
destPath: "/v2/member/orders"
|
|
303
307
|
}
|
|
304
308
|
],
|
|
305
309
|
"manage._base_domain_": [
|
|
306
310
|
{
|
|
307
|
-
srcPath: "/_api/pricing-plans/v2/orders",
|
|
308
|
-
destPath: "/v2/orders"
|
|
309
|
-
},
|
|
310
|
-
{
|
|
311
|
-
srcPath: "/_api/paid-plans/v2/orders",
|
|
312
|
-
destPath: "/v2/orders"
|
|
311
|
+
srcPath: "/_api/pricing-plans/v2/member/orders",
|
|
312
|
+
destPath: "/v2/member/orders"
|
|
313
313
|
}
|
|
314
314
|
],
|
|
315
315
|
"www._base_domain_": [
|
|
316
316
|
{
|
|
317
|
-
srcPath: "/_api/
|
|
318
|
-
destPath: "/v2/orders"
|
|
317
|
+
srcPath: "/_api/pricing-plans/v2/member/orders",
|
|
318
|
+
destPath: "/v2/member/orders"
|
|
319
319
|
}
|
|
320
320
|
],
|
|
321
321
|
"www.wixapis.com": [
|
|
322
322
|
{
|
|
323
|
-
srcPath: "/pricing-plans/v2/orders",
|
|
324
|
-
destPath: "/v2/orders"
|
|
323
|
+
srcPath: "/pricing-plans/v2/member/orders",
|
|
324
|
+
destPath: "/v2/member/orders"
|
|
325
325
|
}
|
|
326
326
|
]
|
|
327
327
|
};
|
|
328
328
|
return (0, import_rest_modules2.resolveUrl)(Object.assign(opts, { domainToMappings }));
|
|
329
329
|
}
|
|
330
330
|
var PACKAGE_NAME = "@wix/auto_sdk_pricing-plans_orders";
|
|
331
|
-
function
|
|
332
|
-
function
|
|
331
|
+
function memberGetOrder(payload) {
|
|
332
|
+
function __memberGetOrder({ host }) {
|
|
333
333
|
const metadata = {
|
|
334
334
|
entityFqdn: "wix.pricing_plans.v2.order",
|
|
335
335
|
method: "GET",
|
|
336
|
-
methodFqn: "com.wixpress.membership.v2.orders.
|
|
336
|
+
methodFqn: "com.wixpress.membership.v2.orders.member.MemberOrdersService.GetOrder",
|
|
337
337
|
packageName: PACKAGE_NAME,
|
|
338
338
|
migrationOptions: {
|
|
339
339
|
optInTransformResponse: true
|
|
340
340
|
},
|
|
341
|
-
url:
|
|
342
|
-
protoPath: "/v2/orders/{id}",
|
|
341
|
+
url: resolveComWixpressMembershipV2OrdersMemberMemberOrdersServiceUrl({
|
|
342
|
+
protoPath: "/v2/member/orders/{id}",
|
|
343
343
|
data: payload,
|
|
344
344
|
host
|
|
345
345
|
}),
|
|
@@ -366,20 +366,20 @@ function managementGetOrder(payload) {
|
|
|
366
366
|
};
|
|
367
367
|
return metadata;
|
|
368
368
|
}
|
|
369
|
-
return
|
|
369
|
+
return __memberGetOrder;
|
|
370
370
|
}
|
|
371
|
-
function
|
|
372
|
-
function
|
|
371
|
+
function memberListOrders(payload) {
|
|
372
|
+
function __memberListOrders({ host }) {
|
|
373
373
|
const metadata = {
|
|
374
374
|
entityFqdn: "wix.pricing_plans.v2.order",
|
|
375
375
|
method: "GET",
|
|
376
|
-
methodFqn: "com.wixpress.membership.v2.orders.
|
|
376
|
+
methodFqn: "com.wixpress.membership.v2.orders.member.MemberOrdersService.ListOrders",
|
|
377
377
|
packageName: PACKAGE_NAME,
|
|
378
378
|
migrationOptions: {
|
|
379
379
|
optInTransformResponse: true
|
|
380
380
|
},
|
|
381
|
-
url:
|
|
382
|
-
protoPath: "/v2/orders",
|
|
381
|
+
url: resolveComWixpressMembershipV2OrdersMemberMemberOrdersServiceUrl({
|
|
382
|
+
protoPath: "/v2/member/orders",
|
|
383
383
|
data: payload,
|
|
384
384
|
host
|
|
385
385
|
}),
|
|
@@ -406,110 +406,20 @@ function managementListOrders(payload) {
|
|
|
406
406
|
};
|
|
407
407
|
return metadata;
|
|
408
408
|
}
|
|
409
|
-
return
|
|
410
|
-
}
|
|
411
|
-
function postponeEndDate(payload) {
|
|
412
|
-
function __postponeEndDate({ host }) {
|
|
413
|
-
const serializedData = (0, import_transform_paths.transformPaths)(payload, [
|
|
414
|
-
{
|
|
415
|
-
transformFn: import_timestamp.transformSDKTimestampToRESTTimestamp,
|
|
416
|
-
paths: [{ path: "endDate" }]
|
|
417
|
-
}
|
|
418
|
-
]);
|
|
419
|
-
const metadata = {
|
|
420
|
-
entityFqdn: "wix.pricing_plans.v2.order",
|
|
421
|
-
method: "PATCH",
|
|
422
|
-
methodFqn: "com.wixpress.membership.v2.orders.OrderManagementService.PostponeEndDate",
|
|
423
|
-
packageName: PACKAGE_NAME,
|
|
424
|
-
migrationOptions: {
|
|
425
|
-
optInTransformResponse: true
|
|
426
|
-
},
|
|
427
|
-
url: resolveComWixpressMembershipV2OrdersOrderManagementServiceUrl({
|
|
428
|
-
protoPath: "/v2/orders/{id}",
|
|
429
|
-
data: serializedData,
|
|
430
|
-
host
|
|
431
|
-
}),
|
|
432
|
-
data: serializedData
|
|
433
|
-
};
|
|
434
|
-
return metadata;
|
|
435
|
-
}
|
|
436
|
-
return __postponeEndDate;
|
|
437
|
-
}
|
|
438
|
-
function cancelOrder(payload) {
|
|
439
|
-
function __cancelOrder({ host }) {
|
|
440
|
-
const metadata = {
|
|
441
|
-
entityFqdn: "wix.pricing_plans.v2.order",
|
|
442
|
-
method: "POST",
|
|
443
|
-
methodFqn: "com.wixpress.membership.v2.orders.OrderManagementService.CancelOrder",
|
|
444
|
-
packageName: PACKAGE_NAME,
|
|
445
|
-
migrationOptions: {
|
|
446
|
-
optInTransformResponse: true
|
|
447
|
-
},
|
|
448
|
-
url: resolveComWixpressMembershipV2OrdersOrderManagementServiceUrl({
|
|
449
|
-
protoPath: "/v2/orders/{id}/cancel",
|
|
450
|
-
data: payload,
|
|
451
|
-
host
|
|
452
|
-
}),
|
|
453
|
-
data: payload
|
|
454
|
-
};
|
|
455
|
-
return metadata;
|
|
456
|
-
}
|
|
457
|
-
return __cancelOrder;
|
|
458
|
-
}
|
|
459
|
-
function markAsPaid(payload) {
|
|
460
|
-
function __markAsPaid({ host }) {
|
|
461
|
-
const metadata = {
|
|
462
|
-
entityFqdn: "wix.pricing_plans.v2.order",
|
|
463
|
-
method: "POST",
|
|
464
|
-
methodFqn: "com.wixpress.membership.v2.orders.OrderManagementService.MarkAsPaid",
|
|
465
|
-
packageName: PACKAGE_NAME,
|
|
466
|
-
migrationOptions: {
|
|
467
|
-
optInTransformResponse: true
|
|
468
|
-
},
|
|
469
|
-
url: resolveComWixpressMembershipV2OrdersOrderManagementServiceUrl({
|
|
470
|
-
protoPath: "/v2/orders/{id}/mark-as-paid",
|
|
471
|
-
data: payload,
|
|
472
|
-
host
|
|
473
|
-
}),
|
|
474
|
-
data: payload
|
|
475
|
-
};
|
|
476
|
-
return metadata;
|
|
477
|
-
}
|
|
478
|
-
return __markAsPaid;
|
|
479
|
-
}
|
|
480
|
-
function pauseOrder(payload) {
|
|
481
|
-
function __pauseOrder({ host }) {
|
|
482
|
-
const metadata = {
|
|
483
|
-
entityFqdn: "wix.pricing_plans.v2.order",
|
|
484
|
-
method: "POST",
|
|
485
|
-
methodFqn: "com.wixpress.membership.v2.orders.OrderManagementService.PauseOrder",
|
|
486
|
-
packageName: PACKAGE_NAME,
|
|
487
|
-
migrationOptions: {
|
|
488
|
-
optInTransformResponse: true
|
|
489
|
-
},
|
|
490
|
-
url: resolveComWixpressMembershipV2OrdersOrderManagementServiceUrl({
|
|
491
|
-
protoPath: "/v2/orders/{id}/pause",
|
|
492
|
-
data: payload,
|
|
493
|
-
host
|
|
494
|
-
}),
|
|
495
|
-
data: payload
|
|
496
|
-
};
|
|
497
|
-
return metadata;
|
|
498
|
-
}
|
|
499
|
-
return __pauseOrder;
|
|
409
|
+
return __memberListOrders;
|
|
500
410
|
}
|
|
501
|
-
function
|
|
502
|
-
function
|
|
411
|
+
function requestCancellation(payload) {
|
|
412
|
+
function __requestCancellation({ host }) {
|
|
503
413
|
const metadata = {
|
|
504
414
|
entityFqdn: "wix.pricing_plans.v2.order",
|
|
505
415
|
method: "POST",
|
|
506
|
-
methodFqn: "com.wixpress.membership.v2.orders.
|
|
416
|
+
methodFqn: "com.wixpress.membership.v2.orders.member.MemberOrdersService.RequestCancellation",
|
|
507
417
|
packageName: PACKAGE_NAME,
|
|
508
418
|
migrationOptions: {
|
|
509
419
|
optInTransformResponse: true
|
|
510
420
|
},
|
|
511
|
-
url:
|
|
512
|
-
protoPath: "/v2/orders/{id}/
|
|
421
|
+
url: resolveComWixpressMembershipV2OrdersMemberMemberOrdersServiceUrl({
|
|
422
|
+
protoPath: "/v2/member/orders/{id}/cancel",
|
|
513
423
|
data: payload,
|
|
514
424
|
host
|
|
515
425
|
}),
|
|
@@ -517,7 +427,7 @@ function resumeOrder(payload) {
|
|
|
517
427
|
};
|
|
518
428
|
return metadata;
|
|
519
429
|
}
|
|
520
|
-
return
|
|
430
|
+
return __requestCancellation;
|
|
521
431
|
}
|
|
522
432
|
function createOnlineOrder(payload) {
|
|
523
433
|
function __createOnlineOrder({ host }) {
|
|
@@ -701,20 +611,148 @@ function getOfflineOrderPreview(payload) {
|
|
|
701
611
|
};
|
|
702
612
|
return metadata;
|
|
703
613
|
}
|
|
704
|
-
return __getOfflineOrderPreview;
|
|
614
|
+
return __getOfflineOrderPreview;
|
|
615
|
+
}
|
|
616
|
+
function getPricePreview(payload) {
|
|
617
|
+
function __getPricePreview({ host }) {
|
|
618
|
+
const metadata = {
|
|
619
|
+
entityFqdn: "wix.pricing_plans.v2.order",
|
|
620
|
+
method: "POST",
|
|
621
|
+
methodFqn: "com.wixpress.membership.v2.orders.CheckoutService.GetPricePreview",
|
|
622
|
+
packageName: PACKAGE_NAME,
|
|
623
|
+
migrationOptions: {
|
|
624
|
+
optInTransformResponse: true
|
|
625
|
+
},
|
|
626
|
+
url: resolveComWixpressMembershipV2OrdersCheckoutServiceUrl({
|
|
627
|
+
protoPath: "/v2/checkout/orders/price-preview",
|
|
628
|
+
data: payload,
|
|
629
|
+
host
|
|
630
|
+
}),
|
|
631
|
+
data: payload
|
|
632
|
+
};
|
|
633
|
+
return metadata;
|
|
634
|
+
}
|
|
635
|
+
return __getPricePreview;
|
|
636
|
+
}
|
|
637
|
+
function managementGetOrder(payload) {
|
|
638
|
+
function __managementGetOrder({ host }) {
|
|
639
|
+
const metadata = {
|
|
640
|
+
entityFqdn: "wix.pricing_plans.v2.order",
|
|
641
|
+
method: "GET",
|
|
642
|
+
methodFqn: "com.wixpress.membership.v2.orders.OrderManagementService.GetOrder",
|
|
643
|
+
packageName: PACKAGE_NAME,
|
|
644
|
+
migrationOptions: {
|
|
645
|
+
optInTransformResponse: true
|
|
646
|
+
},
|
|
647
|
+
url: resolveComWixpressMembershipV2OrdersOrderManagementServiceUrl({
|
|
648
|
+
protoPath: "/v2/orders/{id}",
|
|
649
|
+
data: payload,
|
|
650
|
+
host
|
|
651
|
+
}),
|
|
652
|
+
params: (0, import_rest_modules.toURLSearchParams)(payload),
|
|
653
|
+
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
654
|
+
{
|
|
655
|
+
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
656
|
+
paths: [
|
|
657
|
+
{ path: "order.startDate" },
|
|
658
|
+
{ path: "order.endDate" },
|
|
659
|
+
{ path: "order.earliestEndDate" },
|
|
660
|
+
{ path: "order.createdDate" },
|
|
661
|
+
{ path: "order.updatedDate" },
|
|
662
|
+
{ path: "order.cancellation.requestedDate" },
|
|
663
|
+
{ path: "order.pausePeriods.pauseDate" },
|
|
664
|
+
{ path: "order.pausePeriods.resumeDate" },
|
|
665
|
+
{ path: "order.currentCycle.startedDate" },
|
|
666
|
+
{ path: "order.currentCycle.endedDate" },
|
|
667
|
+
{ path: "order.cycles.startedDate" },
|
|
668
|
+
{ path: "order.cycles.endedDate" }
|
|
669
|
+
]
|
|
670
|
+
}
|
|
671
|
+
])
|
|
672
|
+
};
|
|
673
|
+
return metadata;
|
|
674
|
+
}
|
|
675
|
+
return __managementGetOrder;
|
|
676
|
+
}
|
|
677
|
+
function managementListOrders(payload) {
|
|
678
|
+
function __managementListOrders({ host }) {
|
|
679
|
+
const metadata = {
|
|
680
|
+
entityFqdn: "wix.pricing_plans.v2.order",
|
|
681
|
+
method: "GET",
|
|
682
|
+
methodFqn: "com.wixpress.membership.v2.orders.OrderManagementService.ListOrders",
|
|
683
|
+
packageName: PACKAGE_NAME,
|
|
684
|
+
migrationOptions: {
|
|
685
|
+
optInTransformResponse: true
|
|
686
|
+
},
|
|
687
|
+
url: resolveComWixpressMembershipV2OrdersOrderManagementServiceUrl({
|
|
688
|
+
protoPath: "/v2/orders",
|
|
689
|
+
data: payload,
|
|
690
|
+
host
|
|
691
|
+
}),
|
|
692
|
+
params: (0, import_rest_modules.toURLSearchParams)(payload, true),
|
|
693
|
+
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
694
|
+
{
|
|
695
|
+
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
696
|
+
paths: [
|
|
697
|
+
{ path: "orders.startDate" },
|
|
698
|
+
{ path: "orders.endDate" },
|
|
699
|
+
{ path: "orders.earliestEndDate" },
|
|
700
|
+
{ path: "orders.createdDate" },
|
|
701
|
+
{ path: "orders.updatedDate" },
|
|
702
|
+
{ path: "orders.cancellation.requestedDate" },
|
|
703
|
+
{ path: "orders.pausePeriods.pauseDate" },
|
|
704
|
+
{ path: "orders.pausePeriods.resumeDate" },
|
|
705
|
+
{ path: "orders.currentCycle.startedDate" },
|
|
706
|
+
{ path: "orders.currentCycle.endedDate" },
|
|
707
|
+
{ path: "orders.cycles.startedDate" },
|
|
708
|
+
{ path: "orders.cycles.endedDate" }
|
|
709
|
+
]
|
|
710
|
+
}
|
|
711
|
+
])
|
|
712
|
+
};
|
|
713
|
+
return metadata;
|
|
714
|
+
}
|
|
715
|
+
return __managementListOrders;
|
|
716
|
+
}
|
|
717
|
+
function postponeEndDate(payload) {
|
|
718
|
+
function __postponeEndDate({ host }) {
|
|
719
|
+
const serializedData = (0, import_transform_paths.transformPaths)(payload, [
|
|
720
|
+
{
|
|
721
|
+
transformFn: import_timestamp.transformSDKTimestampToRESTTimestamp,
|
|
722
|
+
paths: [{ path: "endDate" }]
|
|
723
|
+
}
|
|
724
|
+
]);
|
|
725
|
+
const metadata = {
|
|
726
|
+
entityFqdn: "wix.pricing_plans.v2.order",
|
|
727
|
+
method: "PATCH",
|
|
728
|
+
methodFqn: "com.wixpress.membership.v2.orders.OrderManagementService.PostponeEndDate",
|
|
729
|
+
packageName: PACKAGE_NAME,
|
|
730
|
+
migrationOptions: {
|
|
731
|
+
optInTransformResponse: true
|
|
732
|
+
},
|
|
733
|
+
url: resolveComWixpressMembershipV2OrdersOrderManagementServiceUrl({
|
|
734
|
+
protoPath: "/v2/orders/{id}",
|
|
735
|
+
data: serializedData,
|
|
736
|
+
host
|
|
737
|
+
}),
|
|
738
|
+
data: serializedData
|
|
739
|
+
};
|
|
740
|
+
return metadata;
|
|
741
|
+
}
|
|
742
|
+
return __postponeEndDate;
|
|
705
743
|
}
|
|
706
|
-
function
|
|
707
|
-
function
|
|
744
|
+
function cancelOrder(payload) {
|
|
745
|
+
function __cancelOrder({ host }) {
|
|
708
746
|
const metadata = {
|
|
709
747
|
entityFqdn: "wix.pricing_plans.v2.order",
|
|
710
748
|
method: "POST",
|
|
711
|
-
methodFqn: "com.wixpress.membership.v2.orders.
|
|
749
|
+
methodFqn: "com.wixpress.membership.v2.orders.OrderManagementService.CancelOrder",
|
|
712
750
|
packageName: PACKAGE_NAME,
|
|
713
751
|
migrationOptions: {
|
|
714
752
|
optInTransformResponse: true
|
|
715
753
|
},
|
|
716
|
-
url:
|
|
717
|
-
protoPath: "/v2/
|
|
754
|
+
url: resolveComWixpressMembershipV2OrdersOrderManagementServiceUrl({
|
|
755
|
+
protoPath: "/v2/orders/{id}/cancel",
|
|
718
756
|
data: payload,
|
|
719
757
|
host
|
|
720
758
|
}),
|
|
@@ -722,100 +760,62 @@ function getPricePreview(payload) {
|
|
|
722
760
|
};
|
|
723
761
|
return metadata;
|
|
724
762
|
}
|
|
725
|
-
return
|
|
763
|
+
return __cancelOrder;
|
|
726
764
|
}
|
|
727
|
-
function
|
|
728
|
-
function
|
|
765
|
+
function markAsPaid(payload) {
|
|
766
|
+
function __markAsPaid({ host }) {
|
|
729
767
|
const metadata = {
|
|
730
768
|
entityFqdn: "wix.pricing_plans.v2.order",
|
|
731
|
-
method: "
|
|
732
|
-
methodFqn: "com.wixpress.membership.v2.orders.
|
|
769
|
+
method: "POST",
|
|
770
|
+
methodFqn: "com.wixpress.membership.v2.orders.OrderManagementService.MarkAsPaid",
|
|
733
771
|
packageName: PACKAGE_NAME,
|
|
734
772
|
migrationOptions: {
|
|
735
773
|
optInTransformResponse: true
|
|
736
774
|
},
|
|
737
|
-
url:
|
|
738
|
-
protoPath: "/v2/
|
|
775
|
+
url: resolveComWixpressMembershipV2OrdersOrderManagementServiceUrl({
|
|
776
|
+
protoPath: "/v2/orders/{id}/mark-as-paid",
|
|
739
777
|
data: payload,
|
|
740
778
|
host
|
|
741
779
|
}),
|
|
742
|
-
|
|
743
|
-
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
744
|
-
{
|
|
745
|
-
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
746
|
-
paths: [
|
|
747
|
-
{ path: "order.startDate" },
|
|
748
|
-
{ path: "order.endDate" },
|
|
749
|
-
{ path: "order.earliestEndDate" },
|
|
750
|
-
{ path: "order.createdDate" },
|
|
751
|
-
{ path: "order.updatedDate" },
|
|
752
|
-
{ path: "order.cancellation.requestedDate" },
|
|
753
|
-
{ path: "order.pausePeriods.pauseDate" },
|
|
754
|
-
{ path: "order.pausePeriods.resumeDate" },
|
|
755
|
-
{ path: "order.currentCycle.startedDate" },
|
|
756
|
-
{ path: "order.currentCycle.endedDate" },
|
|
757
|
-
{ path: "order.cycles.startedDate" },
|
|
758
|
-
{ path: "order.cycles.endedDate" }
|
|
759
|
-
]
|
|
760
|
-
}
|
|
761
|
-
])
|
|
780
|
+
data: payload
|
|
762
781
|
};
|
|
763
782
|
return metadata;
|
|
764
783
|
}
|
|
765
|
-
return
|
|
784
|
+
return __markAsPaid;
|
|
766
785
|
}
|
|
767
|
-
function
|
|
768
|
-
function
|
|
786
|
+
function pauseOrder(payload) {
|
|
787
|
+
function __pauseOrder({ host }) {
|
|
769
788
|
const metadata = {
|
|
770
789
|
entityFqdn: "wix.pricing_plans.v2.order",
|
|
771
|
-
method: "
|
|
772
|
-
methodFqn: "com.wixpress.membership.v2.orders.
|
|
790
|
+
method: "POST",
|
|
791
|
+
methodFqn: "com.wixpress.membership.v2.orders.OrderManagementService.PauseOrder",
|
|
773
792
|
packageName: PACKAGE_NAME,
|
|
774
793
|
migrationOptions: {
|
|
775
794
|
optInTransformResponse: true
|
|
776
795
|
},
|
|
777
|
-
url:
|
|
778
|
-
protoPath: "/v2/
|
|
796
|
+
url: resolveComWixpressMembershipV2OrdersOrderManagementServiceUrl({
|
|
797
|
+
protoPath: "/v2/orders/{id}/pause",
|
|
779
798
|
data: payload,
|
|
780
799
|
host
|
|
781
800
|
}),
|
|
782
|
-
|
|
783
|
-
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
784
|
-
{
|
|
785
|
-
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
786
|
-
paths: [
|
|
787
|
-
{ path: "orders.startDate" },
|
|
788
|
-
{ path: "orders.endDate" },
|
|
789
|
-
{ path: "orders.earliestEndDate" },
|
|
790
|
-
{ path: "orders.createdDate" },
|
|
791
|
-
{ path: "orders.updatedDate" },
|
|
792
|
-
{ path: "orders.cancellation.requestedDate" },
|
|
793
|
-
{ path: "orders.pausePeriods.pauseDate" },
|
|
794
|
-
{ path: "orders.pausePeriods.resumeDate" },
|
|
795
|
-
{ path: "orders.currentCycle.startedDate" },
|
|
796
|
-
{ path: "orders.currentCycle.endedDate" },
|
|
797
|
-
{ path: "orders.cycles.startedDate" },
|
|
798
|
-
{ path: "orders.cycles.endedDate" }
|
|
799
|
-
]
|
|
800
|
-
}
|
|
801
|
-
])
|
|
801
|
+
data: payload
|
|
802
802
|
};
|
|
803
803
|
return metadata;
|
|
804
804
|
}
|
|
805
|
-
return
|
|
805
|
+
return __pauseOrder;
|
|
806
806
|
}
|
|
807
|
-
function
|
|
808
|
-
function
|
|
807
|
+
function resumeOrder(payload) {
|
|
808
|
+
function __resumeOrder({ host }) {
|
|
809
809
|
const metadata = {
|
|
810
810
|
entityFqdn: "wix.pricing_plans.v2.order",
|
|
811
811
|
method: "POST",
|
|
812
|
-
methodFqn: "com.wixpress.membership.v2.orders.
|
|
812
|
+
methodFqn: "com.wixpress.membership.v2.orders.OrderManagementService.ResumeOrder",
|
|
813
813
|
packageName: PACKAGE_NAME,
|
|
814
814
|
migrationOptions: {
|
|
815
815
|
optInTransformResponse: true
|
|
816
816
|
},
|
|
817
|
-
url:
|
|
818
|
-
protoPath: "/v2/
|
|
817
|
+
url: resolveComWixpressMembershipV2OrdersOrderManagementServiceUrl({
|
|
818
|
+
protoPath: "/v2/orders/{id}/resume",
|
|
819
819
|
data: payload,
|
|
820
820
|
host
|
|
821
821
|
}),
|
|
@@ -823,7 +823,7 @@ function requestCancellation(payload) {
|
|
|
823
823
|
};
|
|
824
824
|
return metadata;
|
|
825
825
|
}
|
|
826
|
-
return
|
|
826
|
+
return __resumeOrder;
|
|
827
827
|
}
|
|
828
828
|
|
|
829
829
|
// src/pricing-plans-v2-order-orders.types.ts
|
|
@@ -900,6 +900,14 @@ var SortOrder = /* @__PURE__ */ ((SortOrder2) => {
|
|
|
900
900
|
SortOrder2["DESC"] = "DESC";
|
|
901
901
|
return SortOrder2;
|
|
902
902
|
})(SortOrder || {});
|
|
903
|
+
var WebhookIdentityType = /* @__PURE__ */ ((WebhookIdentityType2) => {
|
|
904
|
+
WebhookIdentityType2["UNKNOWN"] = "UNKNOWN";
|
|
905
|
+
WebhookIdentityType2["ANONYMOUS_VISITOR"] = "ANONYMOUS_VISITOR";
|
|
906
|
+
WebhookIdentityType2["MEMBER"] = "MEMBER";
|
|
907
|
+
WebhookIdentityType2["WIX_USER"] = "WIX_USER";
|
|
908
|
+
WebhookIdentityType2["APP"] = "APP";
|
|
909
|
+
return WebhookIdentityType2;
|
|
910
|
+
})(WebhookIdentityType || {});
|
|
903
911
|
var ReasonNotSuspendable = /* @__PURE__ */ ((ReasonNotSuspendable2) => {
|
|
904
912
|
ReasonNotSuspendable2["UNDEFINED"] = "UNDEFINED";
|
|
905
913
|
ReasonNotSuspendable2["PENDING"] = "PENDING";
|
|
@@ -911,19 +919,11 @@ var ReasonNotSuspendable = /* @__PURE__ */ ((ReasonNotSuspendable2) => {
|
|
|
911
919
|
ReasonNotSuspendable2["OLD_STRIPE"] = "OLD_STRIPE";
|
|
912
920
|
return ReasonNotSuspendable2;
|
|
913
921
|
})(ReasonNotSuspendable || {});
|
|
914
|
-
var WebhookIdentityType = /* @__PURE__ */ ((WebhookIdentityType2) => {
|
|
915
|
-
WebhookIdentityType2["UNKNOWN"] = "UNKNOWN";
|
|
916
|
-
WebhookIdentityType2["ANONYMOUS_VISITOR"] = "ANONYMOUS_VISITOR";
|
|
917
|
-
WebhookIdentityType2["MEMBER"] = "MEMBER";
|
|
918
|
-
WebhookIdentityType2["WIX_USER"] = "WIX_USER";
|
|
919
|
-
WebhookIdentityType2["APP"] = "APP";
|
|
920
|
-
return WebhookIdentityType2;
|
|
921
|
-
})(WebhookIdentityType || {});
|
|
922
922
|
|
|
923
923
|
// src/pricing-plans-v2-order-orders.meta.ts
|
|
924
|
-
function
|
|
924
|
+
function memberGetOrder2() {
|
|
925
925
|
const payload = { id: ":id" };
|
|
926
|
-
const getRequestOptions =
|
|
926
|
+
const getRequestOptions = memberGetOrder(payload);
|
|
927
927
|
const getUrl = (context) => {
|
|
928
928
|
const { url } = getRequestOptions(context);
|
|
929
929
|
return url;
|
|
@@ -931,7 +931,7 @@ function managementGetOrder2() {
|
|
|
931
931
|
return {
|
|
932
932
|
getUrl,
|
|
933
933
|
httpMethod: "GET",
|
|
934
|
-
path: "/v2/orders/{id}",
|
|
934
|
+
path: "/v2/member/orders/{id}",
|
|
935
935
|
pathParams: { id: "id" },
|
|
936
936
|
__requestType: null,
|
|
937
937
|
__originalRequestType: null,
|
|
@@ -939,9 +939,9 @@ function managementGetOrder2() {
|
|
|
939
939
|
__originalResponseType: null
|
|
940
940
|
};
|
|
941
941
|
}
|
|
942
|
-
function
|
|
942
|
+
function memberListOrders2() {
|
|
943
943
|
const payload = {};
|
|
944
|
-
const getRequestOptions =
|
|
944
|
+
const getRequestOptions = memberListOrders(payload);
|
|
945
945
|
const getUrl = (context) => {
|
|
946
946
|
const { url } = getRequestOptions(context);
|
|
947
947
|
return url;
|
|
@@ -949,7 +949,7 @@ function managementListOrders2() {
|
|
|
949
949
|
return {
|
|
950
950
|
getUrl,
|
|
951
951
|
httpMethod: "GET",
|
|
952
|
-
path: "/v2/orders",
|
|
952
|
+
path: "/v2/member/orders",
|
|
953
953
|
pathParams: {},
|
|
954
954
|
__requestType: null,
|
|
955
955
|
__originalRequestType: null,
|
|
@@ -957,17 +957,17 @@ function managementListOrders2() {
|
|
|
957
957
|
__originalResponseType: null
|
|
958
958
|
};
|
|
959
959
|
}
|
|
960
|
-
function
|
|
960
|
+
function requestCancellation2() {
|
|
961
961
|
const payload = { id: ":id" };
|
|
962
|
-
const getRequestOptions =
|
|
962
|
+
const getRequestOptions = requestCancellation(payload);
|
|
963
963
|
const getUrl = (context) => {
|
|
964
964
|
const { url } = getRequestOptions(context);
|
|
965
965
|
return url;
|
|
966
966
|
};
|
|
967
967
|
return {
|
|
968
968
|
getUrl,
|
|
969
|
-
httpMethod: "
|
|
970
|
-
path: "/v2/orders/{id}",
|
|
969
|
+
httpMethod: "POST",
|
|
970
|
+
path: "/v2/member/orders/{id}/cancel",
|
|
971
971
|
pathParams: { id: "id" },
|
|
972
972
|
__requestType: null,
|
|
973
973
|
__originalRequestType: null,
|
|
@@ -975,9 +975,9 @@ function postponeEndDate2() {
|
|
|
975
975
|
__originalResponseType: null
|
|
976
976
|
};
|
|
977
977
|
}
|
|
978
|
-
function
|
|
979
|
-
const payload = {
|
|
980
|
-
const getRequestOptions =
|
|
978
|
+
function createOnlineOrder2() {
|
|
979
|
+
const payload = {};
|
|
980
|
+
const getRequestOptions = createOnlineOrder(payload);
|
|
981
981
|
const getUrl = (context) => {
|
|
982
982
|
const { url } = getRequestOptions(context);
|
|
983
983
|
return url;
|
|
@@ -985,17 +985,17 @@ function cancelOrder2() {
|
|
|
985
985
|
return {
|
|
986
986
|
getUrl,
|
|
987
987
|
httpMethod: "POST",
|
|
988
|
-
path: "/v2/orders/
|
|
989
|
-
pathParams: {
|
|
988
|
+
path: "/v2/checkout/orders/online",
|
|
989
|
+
pathParams: {},
|
|
990
990
|
__requestType: null,
|
|
991
991
|
__originalRequestType: null,
|
|
992
992
|
__responseType: null,
|
|
993
993
|
__originalResponseType: null
|
|
994
994
|
};
|
|
995
995
|
}
|
|
996
|
-
function
|
|
997
|
-
const payload = {
|
|
998
|
-
const getRequestOptions =
|
|
996
|
+
function createOfflineOrder2() {
|
|
997
|
+
const payload = {};
|
|
998
|
+
const getRequestOptions = createOfflineOrder(payload);
|
|
999
999
|
const getUrl = (context) => {
|
|
1000
1000
|
const { url } = getRequestOptions(context);
|
|
1001
1001
|
return url;
|
|
@@ -1003,17 +1003,17 @@ function markAsPaid2() {
|
|
|
1003
1003
|
return {
|
|
1004
1004
|
getUrl,
|
|
1005
1005
|
httpMethod: "POST",
|
|
1006
|
-
path: "/v2/orders/
|
|
1007
|
-
pathParams: {
|
|
1006
|
+
path: "/v2/checkout/orders/offline",
|
|
1007
|
+
pathParams: {},
|
|
1008
1008
|
__requestType: null,
|
|
1009
1009
|
__originalRequestType: null,
|
|
1010
1010
|
__responseType: null,
|
|
1011
1011
|
__originalResponseType: null
|
|
1012
1012
|
};
|
|
1013
1013
|
}
|
|
1014
|
-
function
|
|
1015
|
-
const payload = {
|
|
1016
|
-
const getRequestOptions =
|
|
1014
|
+
function getOnlineOrderPreview2() {
|
|
1015
|
+
const payload = {};
|
|
1016
|
+
const getRequestOptions = getOnlineOrderPreview(payload);
|
|
1017
1017
|
const getUrl = (context) => {
|
|
1018
1018
|
const { url } = getRequestOptions(context);
|
|
1019
1019
|
return url;
|
|
@@ -1021,17 +1021,17 @@ function pauseOrder2() {
|
|
|
1021
1021
|
return {
|
|
1022
1022
|
getUrl,
|
|
1023
1023
|
httpMethod: "POST",
|
|
1024
|
-
path: "/v2/orders/
|
|
1025
|
-
pathParams: {
|
|
1024
|
+
path: "/v2/checkout/orders/preview-online",
|
|
1025
|
+
pathParams: {},
|
|
1026
1026
|
__requestType: null,
|
|
1027
1027
|
__originalRequestType: null,
|
|
1028
1028
|
__responseType: null,
|
|
1029
1029
|
__originalResponseType: null
|
|
1030
1030
|
};
|
|
1031
1031
|
}
|
|
1032
|
-
function
|
|
1033
|
-
const payload = {
|
|
1034
|
-
const getRequestOptions =
|
|
1032
|
+
function getOfflineOrderPreview2() {
|
|
1033
|
+
const payload = {};
|
|
1034
|
+
const getRequestOptions = getOfflineOrderPreview(payload);
|
|
1035
1035
|
const getUrl = (context) => {
|
|
1036
1036
|
const { url } = getRequestOptions(context);
|
|
1037
1037
|
return url;
|
|
@@ -1039,17 +1039,17 @@ function resumeOrder2() {
|
|
|
1039
1039
|
return {
|
|
1040
1040
|
getUrl,
|
|
1041
1041
|
httpMethod: "POST",
|
|
1042
|
-
path: "/v2/orders/
|
|
1043
|
-
pathParams: {
|
|
1042
|
+
path: "/v2/checkout/orders/preview-offline",
|
|
1043
|
+
pathParams: {},
|
|
1044
1044
|
__requestType: null,
|
|
1045
1045
|
__originalRequestType: null,
|
|
1046
1046
|
__responseType: null,
|
|
1047
1047
|
__originalResponseType: null
|
|
1048
1048
|
};
|
|
1049
1049
|
}
|
|
1050
|
-
function
|
|
1050
|
+
function getPricePreview2() {
|
|
1051
1051
|
const payload = {};
|
|
1052
|
-
const getRequestOptions =
|
|
1052
|
+
const getRequestOptions = getPricePreview(payload);
|
|
1053
1053
|
const getUrl = (context) => {
|
|
1054
1054
|
const { url } = getRequestOptions(context);
|
|
1055
1055
|
return url;
|
|
@@ -1057,7 +1057,7 @@ function createOnlineOrder2() {
|
|
|
1057
1057
|
return {
|
|
1058
1058
|
getUrl,
|
|
1059
1059
|
httpMethod: "POST",
|
|
1060
|
-
path: "/v2/checkout/orders/
|
|
1060
|
+
path: "/v2/checkout/orders/price-preview",
|
|
1061
1061
|
pathParams: {},
|
|
1062
1062
|
__requestType: null,
|
|
1063
1063
|
__originalRequestType: null,
|
|
@@ -1065,35 +1065,35 @@ function createOnlineOrder2() {
|
|
|
1065
1065
|
__originalResponseType: null
|
|
1066
1066
|
};
|
|
1067
1067
|
}
|
|
1068
|
-
function
|
|
1069
|
-
const payload = {};
|
|
1070
|
-
const getRequestOptions =
|
|
1068
|
+
function managementGetOrder2() {
|
|
1069
|
+
const payload = { id: ":id" };
|
|
1070
|
+
const getRequestOptions = managementGetOrder(payload);
|
|
1071
1071
|
const getUrl = (context) => {
|
|
1072
1072
|
const { url } = getRequestOptions(context);
|
|
1073
1073
|
return url;
|
|
1074
1074
|
};
|
|
1075
1075
|
return {
|
|
1076
1076
|
getUrl,
|
|
1077
|
-
httpMethod: "
|
|
1078
|
-
path: "/v2/
|
|
1079
|
-
pathParams: {},
|
|
1077
|
+
httpMethod: "GET",
|
|
1078
|
+
path: "/v2/orders/{id}",
|
|
1079
|
+
pathParams: { id: "id" },
|
|
1080
1080
|
__requestType: null,
|
|
1081
1081
|
__originalRequestType: null,
|
|
1082
1082
|
__responseType: null,
|
|
1083
1083
|
__originalResponseType: null
|
|
1084
1084
|
};
|
|
1085
1085
|
}
|
|
1086
|
-
function
|
|
1086
|
+
function managementListOrders2() {
|
|
1087
1087
|
const payload = {};
|
|
1088
|
-
const getRequestOptions =
|
|
1088
|
+
const getRequestOptions = managementListOrders(payload);
|
|
1089
1089
|
const getUrl = (context) => {
|
|
1090
1090
|
const { url } = getRequestOptions(context);
|
|
1091
1091
|
return url;
|
|
1092
1092
|
};
|
|
1093
1093
|
return {
|
|
1094
1094
|
getUrl,
|
|
1095
|
-
httpMethod: "
|
|
1096
|
-
path: "/v2/
|
|
1095
|
+
httpMethod: "GET",
|
|
1096
|
+
path: "/v2/orders",
|
|
1097
1097
|
pathParams: {},
|
|
1098
1098
|
__requestType: null,
|
|
1099
1099
|
__originalRequestType: null,
|
|
@@ -1101,27 +1101,27 @@ function getOnlineOrderPreview2() {
|
|
|
1101
1101
|
__originalResponseType: null
|
|
1102
1102
|
};
|
|
1103
1103
|
}
|
|
1104
|
-
function
|
|
1105
|
-
const payload = {};
|
|
1106
|
-
const getRequestOptions =
|
|
1104
|
+
function postponeEndDate2() {
|
|
1105
|
+
const payload = { id: ":id" };
|
|
1106
|
+
const getRequestOptions = postponeEndDate(payload);
|
|
1107
1107
|
const getUrl = (context) => {
|
|
1108
1108
|
const { url } = getRequestOptions(context);
|
|
1109
1109
|
return url;
|
|
1110
1110
|
};
|
|
1111
1111
|
return {
|
|
1112
1112
|
getUrl,
|
|
1113
|
-
httpMethod: "
|
|
1114
|
-
path: "/v2/
|
|
1115
|
-
pathParams: {},
|
|
1113
|
+
httpMethod: "PATCH",
|
|
1114
|
+
path: "/v2/orders/{id}",
|
|
1115
|
+
pathParams: { id: "id" },
|
|
1116
1116
|
__requestType: null,
|
|
1117
1117
|
__originalRequestType: null,
|
|
1118
1118
|
__responseType: null,
|
|
1119
1119
|
__originalResponseType: null
|
|
1120
1120
|
};
|
|
1121
1121
|
}
|
|
1122
|
-
function
|
|
1123
|
-
const payload = {};
|
|
1124
|
-
const getRequestOptions =
|
|
1122
|
+
function cancelOrder2() {
|
|
1123
|
+
const payload = { id: ":id" };
|
|
1124
|
+
const getRequestOptions = cancelOrder(payload);
|
|
1125
1125
|
const getUrl = (context) => {
|
|
1126
1126
|
const { url } = getRequestOptions(context);
|
|
1127
1127
|
return url;
|
|
@@ -1129,25 +1129,25 @@ function getPricePreview2() {
|
|
|
1129
1129
|
return {
|
|
1130
1130
|
getUrl,
|
|
1131
1131
|
httpMethod: "POST",
|
|
1132
|
-
path: "/v2/
|
|
1133
|
-
pathParams: {},
|
|
1132
|
+
path: "/v2/orders/{id}/cancel",
|
|
1133
|
+
pathParams: { id: "id" },
|
|
1134
1134
|
__requestType: null,
|
|
1135
1135
|
__originalRequestType: null,
|
|
1136
1136
|
__responseType: null,
|
|
1137
1137
|
__originalResponseType: null
|
|
1138
1138
|
};
|
|
1139
1139
|
}
|
|
1140
|
-
function
|
|
1140
|
+
function markAsPaid2() {
|
|
1141
1141
|
const payload = { id: ":id" };
|
|
1142
|
-
const getRequestOptions =
|
|
1142
|
+
const getRequestOptions = markAsPaid(payload);
|
|
1143
1143
|
const getUrl = (context) => {
|
|
1144
1144
|
const { url } = getRequestOptions(context);
|
|
1145
1145
|
return url;
|
|
1146
1146
|
};
|
|
1147
1147
|
return {
|
|
1148
1148
|
getUrl,
|
|
1149
|
-
httpMethod: "
|
|
1150
|
-
path: "/v2/
|
|
1149
|
+
httpMethod: "POST",
|
|
1150
|
+
path: "/v2/orders/{id}/mark-as-paid",
|
|
1151
1151
|
pathParams: { id: "id" },
|
|
1152
1152
|
__requestType: null,
|
|
1153
1153
|
__originalRequestType: null,
|
|
@@ -1155,27 +1155,27 @@ function memberGetOrder2() {
|
|
|
1155
1155
|
__originalResponseType: null
|
|
1156
1156
|
};
|
|
1157
1157
|
}
|
|
1158
|
-
function
|
|
1159
|
-
const payload = {};
|
|
1160
|
-
const getRequestOptions =
|
|
1158
|
+
function pauseOrder2() {
|
|
1159
|
+
const payload = { id: ":id" };
|
|
1160
|
+
const getRequestOptions = pauseOrder(payload);
|
|
1161
1161
|
const getUrl = (context) => {
|
|
1162
1162
|
const { url } = getRequestOptions(context);
|
|
1163
1163
|
return url;
|
|
1164
1164
|
};
|
|
1165
1165
|
return {
|
|
1166
1166
|
getUrl,
|
|
1167
|
-
httpMethod: "
|
|
1168
|
-
path: "/v2/
|
|
1169
|
-
pathParams: {},
|
|
1167
|
+
httpMethod: "POST",
|
|
1168
|
+
path: "/v2/orders/{id}/pause",
|
|
1169
|
+
pathParams: { id: "id" },
|
|
1170
1170
|
__requestType: null,
|
|
1171
1171
|
__originalRequestType: null,
|
|
1172
1172
|
__responseType: null,
|
|
1173
1173
|
__originalResponseType: null
|
|
1174
1174
|
};
|
|
1175
1175
|
}
|
|
1176
|
-
function
|
|
1176
|
+
function resumeOrder2() {
|
|
1177
1177
|
const payload = { id: ":id" };
|
|
1178
|
-
const getRequestOptions =
|
|
1178
|
+
const getRequestOptions = resumeOrder(payload);
|
|
1179
1179
|
const getUrl = (context) => {
|
|
1180
1180
|
const { url } = getRequestOptions(context);
|
|
1181
1181
|
return url;
|
|
@@ -1183,7 +1183,7 @@ function requestCancellation2() {
|
|
|
1183
1183
|
return {
|
|
1184
1184
|
getUrl,
|
|
1185
1185
|
httpMethod: "POST",
|
|
1186
|
-
path: "/v2/
|
|
1186
|
+
path: "/v2/orders/{id}/resume",
|
|
1187
1187
|
pathParams: { id: "id" },
|
|
1188
1188
|
__requestType: null,
|
|
1189
1189
|
__originalRequestType: null,
|