@wix/auto_sdk_pricing-plans_orders 1.0.111 → 1.0.113
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 +466 -466
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +489 -489
- package/build/cjs/index.typings.js +339 -339
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.d.ts +259 -259
- package/build/cjs/meta.js +344 -344
- 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 +466 -466
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +489 -489
- package/build/es/index.typings.mjs +339 -339
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.d.mts +259 -259
- package/build/es/meta.mjs +344 -344
- 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 +466 -466
- package/build/internal/cjs/index.js.map +1 -1
- package/build/internal/cjs/index.typings.d.ts +489 -489
- package/build/internal/cjs/index.typings.js +339 -339
- package/build/internal/cjs/index.typings.js.map +1 -1
- package/build/internal/cjs/meta.d.ts +259 -259
- package/build/internal/cjs/meta.js +344 -344
- 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 +466 -466
- package/build/internal/es/index.mjs.map +1 -1
- package/build/internal/es/index.typings.d.mts +489 -489
- package/build/internal/es/index.typings.mjs +339 -339
- package/build/internal/es/index.typings.mjs.map +1 -1
- package/build/internal/es/meta.d.mts +259 -259
- package/build/internal/es/meta.mjs +344 -344
- 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
|
@@ -56,100 +56,62 @@ 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 resolveComWixpressMembershipV2OrdersMemberMemberOrdersServiceUrl(opts) {
|
|
60
60
|
const domainToMappings = {
|
|
61
61
|
"api._api_base_domain_": [
|
|
62
62
|
{
|
|
63
|
-
srcPath: "/
|
|
63
|
+
srcPath: "/member-orders-service-proxy",
|
|
64
64
|
destPath: ""
|
|
65
65
|
}
|
|
66
66
|
],
|
|
67
67
|
"*.dev.wix-code.com": [
|
|
68
68
|
{
|
|
69
|
-
srcPath: "/_api/
|
|
70
|
-
destPath: "/v2/orders"
|
|
69
|
+
srcPath: "/_api/pricing-plans-member-orders/v2/member/orders",
|
|
70
|
+
destPath: "/v2/member/orders"
|
|
71
|
+
},
|
|
72
|
+
{
|
|
73
|
+
srcPath: "/_api/pricing-plans/v2/member/orders",
|
|
74
|
+
destPath: "/v2/member/orders"
|
|
71
75
|
}
|
|
72
76
|
],
|
|
73
77
|
"*.pub.wix-code.com": [
|
|
74
78
|
{
|
|
75
|
-
srcPath: "/_api/
|
|
76
|
-
destPath: "/v2/orders"
|
|
77
|
-
}
|
|
78
|
-
],
|
|
79
|
-
"*.wixapps.net": [
|
|
79
|
+
srcPath: "/_api/pricing-plans-member-orders/v2/member/orders",
|
|
80
|
+
destPath: "/v2/member/orders"
|
|
81
|
+
},
|
|
80
82
|
{
|
|
81
|
-
srcPath: "/_api/
|
|
82
|
-
destPath: "/v2/orders"
|
|
83
|
+
srcPath: "/_api/pricing-plans/v2/member/orders",
|
|
84
|
+
destPath: "/v2/member/orders"
|
|
83
85
|
}
|
|
84
86
|
],
|
|
85
87
|
_: [
|
|
86
88
|
{
|
|
87
|
-
srcPath: "/_api/
|
|
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"
|
|
89
|
+
srcPath: "/_api/pricing-plans/v2/member/orders",
|
|
90
|
+
destPath: "/v2/member/orders"
|
|
113
91
|
}
|
|
114
92
|
],
|
|
115
93
|
"editor.wixapps.net": [
|
|
116
94
|
{
|
|
117
|
-
srcPath: "/_api/
|
|
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"
|
|
95
|
+
srcPath: "/_api/pricing-plans/v2/member/orders",
|
|
96
|
+
destPath: "/v2/member/orders"
|
|
131
97
|
}
|
|
132
98
|
],
|
|
133
99
|
"manage._base_domain_": [
|
|
134
100
|
{
|
|
135
|
-
srcPath: "/_api/pricing-plans/v2/orders",
|
|
136
|
-
destPath: "/v2/orders"
|
|
137
|
-
},
|
|
138
|
-
{
|
|
139
|
-
srcPath: "/_api/paid-plans/v2/orders",
|
|
140
|
-
destPath: "/v2/orders"
|
|
101
|
+
srcPath: "/_api/pricing-plans/v2/member/orders",
|
|
102
|
+
destPath: "/v2/member/orders"
|
|
141
103
|
}
|
|
142
104
|
],
|
|
143
105
|
"www._base_domain_": [
|
|
144
106
|
{
|
|
145
|
-
srcPath: "/_api/
|
|
146
|
-
destPath: "/v2/orders"
|
|
107
|
+
srcPath: "/_api/pricing-plans/v2/member/orders",
|
|
108
|
+
destPath: "/v2/member/orders"
|
|
147
109
|
}
|
|
148
110
|
],
|
|
149
111
|
"www.wixapis.com": [
|
|
150
112
|
{
|
|
151
|
-
srcPath: "/pricing-plans/v2/orders",
|
|
152
|
-
destPath: "/v2/orders"
|
|
113
|
+
srcPath: "/pricing-plans/v2/member/orders",
|
|
114
|
+
destPath: "/v2/member/orders"
|
|
153
115
|
}
|
|
154
116
|
]
|
|
155
117
|
};
|
|
@@ -266,80 +228,118 @@ function resolveComWixpressMembershipV2OrdersCheckoutServiceUrl(opts) {
|
|
|
266
228
|
};
|
|
267
229
|
return (0, import_rest_modules2.resolveUrl)(Object.assign(opts, { domainToMappings }));
|
|
268
230
|
}
|
|
269
|
-
function
|
|
231
|
+
function resolveComWixpressMembershipV2OrdersOrderManagementServiceUrl(opts) {
|
|
270
232
|
const domainToMappings = {
|
|
271
233
|
"api._api_base_domain_": [
|
|
272
234
|
{
|
|
273
|
-
srcPath: "/
|
|
235
|
+
srcPath: "/order-management-service-proxy",
|
|
274
236
|
destPath: ""
|
|
275
237
|
}
|
|
276
238
|
],
|
|
277
239
|
"*.dev.wix-code.com": [
|
|
278
240
|
{
|
|
279
|
-
srcPath: "/_api/
|
|
280
|
-
destPath: "/v2/
|
|
281
|
-
},
|
|
282
|
-
{
|
|
283
|
-
srcPath: "/_api/pricing-plans/v2/member/orders",
|
|
284
|
-
destPath: "/v2/member/orders"
|
|
241
|
+
srcPath: "/_api/paid-plans/v2/orders",
|
|
242
|
+
destPath: "/v2/orders"
|
|
285
243
|
}
|
|
286
244
|
],
|
|
287
245
|
"*.pub.wix-code.com": [
|
|
288
246
|
{
|
|
289
|
-
srcPath: "/_api/
|
|
290
|
-
destPath: "/v2/
|
|
291
|
-
}
|
|
247
|
+
srcPath: "/_api/paid-plans/v2/orders",
|
|
248
|
+
destPath: "/v2/orders"
|
|
249
|
+
}
|
|
250
|
+
],
|
|
251
|
+
"*.wixapps.net": [
|
|
292
252
|
{
|
|
293
|
-
srcPath: "/_api/
|
|
294
|
-
destPath: "/v2/
|
|
253
|
+
srcPath: "/_api/paid-plans/v2/orders",
|
|
254
|
+
destPath: "/v2/orders"
|
|
295
255
|
}
|
|
296
256
|
],
|
|
297
257
|
_: [
|
|
298
258
|
{
|
|
299
|
-
srcPath: "/_api/
|
|
300
|
-
destPath: "/v2/
|
|
259
|
+
srcPath: "/_api/paid-plans/v2/orders",
|
|
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"
|
|
301
285
|
}
|
|
302
286
|
],
|
|
303
287
|
"editor.wixapps.net": [
|
|
304
288
|
{
|
|
305
|
-
srcPath: "/_api/
|
|
306
|
-
destPath: "/v2/
|
|
289
|
+
srcPath: "/_api/paid-plans/v2/orders",
|
|
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"
|
|
307
303
|
}
|
|
308
304
|
],
|
|
309
305
|
"manage._base_domain_": [
|
|
310
306
|
{
|
|
311
|
-
srcPath: "/_api/pricing-plans/v2/
|
|
312
|
-
destPath: "/v2/
|
|
307
|
+
srcPath: "/_api/pricing-plans/v2/orders",
|
|
308
|
+
destPath: "/v2/orders"
|
|
309
|
+
},
|
|
310
|
+
{
|
|
311
|
+
srcPath: "/_api/paid-plans/v2/orders",
|
|
312
|
+
destPath: "/v2/orders"
|
|
313
313
|
}
|
|
314
314
|
],
|
|
315
315
|
"www._base_domain_": [
|
|
316
316
|
{
|
|
317
|
-
srcPath: "/_api/
|
|
318
|
-
destPath: "/v2/
|
|
317
|
+
srcPath: "/_api/paid-plans/v2/orders",
|
|
318
|
+
destPath: "/v2/orders"
|
|
319
319
|
}
|
|
320
320
|
],
|
|
321
321
|
"www.wixapis.com": [
|
|
322
322
|
{
|
|
323
|
-
srcPath: "/pricing-plans/v2/
|
|
324
|
-
destPath: "/v2/
|
|
323
|
+
srcPath: "/pricing-plans/v2/orders",
|
|
324
|
+
destPath: "/v2/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 managementGetOrder(payload) {
|
|
332
|
+
function __managementGetOrder({ 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.OrderManagementService.GetOrder",
|
|
337
337
|
packageName: PACKAGE_NAME,
|
|
338
338
|
migrationOptions: {
|
|
339
339
|
optInTransformResponse: true
|
|
340
340
|
},
|
|
341
|
-
url:
|
|
342
|
-
protoPath: "/v2/
|
|
341
|
+
url: resolveComWixpressMembershipV2OrdersOrderManagementServiceUrl({
|
|
342
|
+
protoPath: "/v2/orders/{id}",
|
|
343
343
|
data: payload,
|
|
344
344
|
host
|
|
345
345
|
}),
|
|
@@ -366,20 +366,20 @@ function memberGetOrder(payload) {
|
|
|
366
366
|
};
|
|
367
367
|
return metadata;
|
|
368
368
|
}
|
|
369
|
-
return
|
|
369
|
+
return __managementGetOrder;
|
|
370
370
|
}
|
|
371
|
-
function
|
|
372
|
-
function
|
|
371
|
+
function managementListOrders(payload) {
|
|
372
|
+
function __managementListOrders({ 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.OrderManagementService.ListOrders",
|
|
377
377
|
packageName: PACKAGE_NAME,
|
|
378
378
|
migrationOptions: {
|
|
379
379
|
optInTransformResponse: true
|
|
380
380
|
},
|
|
381
|
-
url:
|
|
382
|
-
protoPath: "/v2/
|
|
381
|
+
url: resolveComWixpressMembershipV2OrdersOrderManagementServiceUrl({
|
|
382
|
+
protoPath: "/v2/orders",
|
|
383
383
|
data: payload,
|
|
384
384
|
host
|
|
385
385
|
}),
|
|
@@ -406,20 +406,47 @@ function memberListOrders(payload) {
|
|
|
406
406
|
};
|
|
407
407
|
return metadata;
|
|
408
408
|
}
|
|
409
|
-
return
|
|
409
|
+
return __managementListOrders;
|
|
410
410
|
}
|
|
411
|
-
function
|
|
412
|
-
function
|
|
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 }) {
|
|
413
440
|
const metadata = {
|
|
414
441
|
entityFqdn: "wix.pricing_plans.v2.order",
|
|
415
442
|
method: "POST",
|
|
416
|
-
methodFqn: "com.wixpress.membership.v2.orders.
|
|
443
|
+
methodFqn: "com.wixpress.membership.v2.orders.OrderManagementService.CancelOrder",
|
|
417
444
|
packageName: PACKAGE_NAME,
|
|
418
445
|
migrationOptions: {
|
|
419
446
|
optInTransformResponse: true
|
|
420
447
|
},
|
|
421
|
-
url:
|
|
422
|
-
protoPath: "/v2/
|
|
448
|
+
url: resolveComWixpressMembershipV2OrdersOrderManagementServiceUrl({
|
|
449
|
+
protoPath: "/v2/orders/{id}/cancel",
|
|
423
450
|
data: payload,
|
|
424
451
|
host
|
|
425
452
|
}),
|
|
@@ -427,7 +454,70 @@ function requestCancellation(payload) {
|
|
|
427
454
|
};
|
|
428
455
|
return metadata;
|
|
429
456
|
}
|
|
430
|
-
return
|
|
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;
|
|
500
|
+
}
|
|
501
|
+
function resumeOrder(payload) {
|
|
502
|
+
function __resumeOrder({ host }) {
|
|
503
|
+
const metadata = {
|
|
504
|
+
entityFqdn: "wix.pricing_plans.v2.order",
|
|
505
|
+
method: "POST",
|
|
506
|
+
methodFqn: "com.wixpress.membership.v2.orders.OrderManagementService.ResumeOrder",
|
|
507
|
+
packageName: PACKAGE_NAME,
|
|
508
|
+
migrationOptions: {
|
|
509
|
+
optInTransformResponse: true
|
|
510
|
+
},
|
|
511
|
+
url: resolveComWixpressMembershipV2OrdersOrderManagementServiceUrl({
|
|
512
|
+
protoPath: "/v2/orders/{id}/resume",
|
|
513
|
+
data: payload,
|
|
514
|
+
host
|
|
515
|
+
}),
|
|
516
|
+
data: payload
|
|
517
|
+
};
|
|
518
|
+
return metadata;
|
|
519
|
+
}
|
|
520
|
+
return __resumeOrder;
|
|
431
521
|
}
|
|
432
522
|
function createOnlineOrder(payload) {
|
|
433
523
|
function __createOnlineOrder({ host }) {
|
|
@@ -598,161 +688,33 @@ function getOfflineOrderPreview(payload) {
|
|
|
598
688
|
{ path: "order.earliestEndDate" },
|
|
599
689
|
{ path: "order.createdDate" },
|
|
600
690
|
{ path: "order.updatedDate" },
|
|
601
|
-
{ path: "order.cancellation.requestedDate" },
|
|
602
|
-
{ path: "order.pausePeriods.pauseDate" },
|
|
603
|
-
{ path: "order.pausePeriods.resumeDate" },
|
|
604
|
-
{ path: "order.currentCycle.startedDate" },
|
|
605
|
-
{ path: "order.currentCycle.endedDate" },
|
|
606
|
-
{ path: "order.cycles.startedDate" },
|
|
607
|
-
{ path: "order.cycles.endedDate" }
|
|
608
|
-
]
|
|
609
|
-
}
|
|
610
|
-
])
|
|
611
|
-
};
|
|
612
|
-
return metadata;
|
|
613
|
-
}
|
|
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
|
|
691
|
+
{ path: "order.cancellation.requestedDate" },
|
|
692
|
+
{ path: "order.pausePeriods.pauseDate" },
|
|
693
|
+
{ path: "order.pausePeriods.resumeDate" },
|
|
694
|
+
{ path: "order.currentCycle.startedDate" },
|
|
695
|
+
{ path: "order.currentCycle.endedDate" },
|
|
696
|
+
{ path: "order.cycles.startedDate" },
|
|
697
|
+
{ path: "order.cycles.endedDate" }
|
|
698
|
+
]
|
|
699
|
+
}
|
|
700
|
+
])
|
|
739
701
|
};
|
|
740
702
|
return metadata;
|
|
741
703
|
}
|
|
742
|
-
return
|
|
704
|
+
return __getOfflineOrderPreview;
|
|
743
705
|
}
|
|
744
|
-
function
|
|
745
|
-
function
|
|
706
|
+
function getPricePreview(payload) {
|
|
707
|
+
function __getPricePreview({ host }) {
|
|
746
708
|
const metadata = {
|
|
747
709
|
entityFqdn: "wix.pricing_plans.v2.order",
|
|
748
710
|
method: "POST",
|
|
749
|
-
methodFqn: "com.wixpress.membership.v2.orders.
|
|
711
|
+
methodFqn: "com.wixpress.membership.v2.orders.CheckoutService.GetPricePreview",
|
|
750
712
|
packageName: PACKAGE_NAME,
|
|
751
713
|
migrationOptions: {
|
|
752
714
|
optInTransformResponse: true
|
|
753
715
|
},
|
|
754
|
-
url:
|
|
755
|
-
protoPath: "/v2/orders/
|
|
716
|
+
url: resolveComWixpressMembershipV2OrdersCheckoutServiceUrl({
|
|
717
|
+
protoPath: "/v2/checkout/orders/price-preview",
|
|
756
718
|
data: payload,
|
|
757
719
|
host
|
|
758
720
|
}),
|
|
@@ -760,62 +722,100 @@ function cancelOrder(payload) {
|
|
|
760
722
|
};
|
|
761
723
|
return metadata;
|
|
762
724
|
}
|
|
763
|
-
return
|
|
725
|
+
return __getPricePreview;
|
|
764
726
|
}
|
|
765
|
-
function
|
|
766
|
-
function
|
|
727
|
+
function memberGetOrder(payload) {
|
|
728
|
+
function __memberGetOrder({ host }) {
|
|
767
729
|
const metadata = {
|
|
768
730
|
entityFqdn: "wix.pricing_plans.v2.order",
|
|
769
|
-
method: "
|
|
770
|
-
methodFqn: "com.wixpress.membership.v2.orders.
|
|
731
|
+
method: "GET",
|
|
732
|
+
methodFqn: "com.wixpress.membership.v2.orders.member.MemberOrdersService.GetOrder",
|
|
771
733
|
packageName: PACKAGE_NAME,
|
|
772
734
|
migrationOptions: {
|
|
773
735
|
optInTransformResponse: true
|
|
774
736
|
},
|
|
775
|
-
url:
|
|
776
|
-
protoPath: "/v2/orders/{id}
|
|
737
|
+
url: resolveComWixpressMembershipV2OrdersMemberMemberOrdersServiceUrl({
|
|
738
|
+
protoPath: "/v2/member/orders/{id}",
|
|
777
739
|
data: payload,
|
|
778
740
|
host
|
|
779
741
|
}),
|
|
780
|
-
|
|
742
|
+
params: (0, import_rest_modules.toURLSearchParams)(payload),
|
|
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
|
+
])
|
|
781
762
|
};
|
|
782
763
|
return metadata;
|
|
783
764
|
}
|
|
784
|
-
return
|
|
765
|
+
return __memberGetOrder;
|
|
785
766
|
}
|
|
786
|
-
function
|
|
787
|
-
function
|
|
767
|
+
function memberListOrders(payload) {
|
|
768
|
+
function __memberListOrders({ host }) {
|
|
788
769
|
const metadata = {
|
|
789
770
|
entityFqdn: "wix.pricing_plans.v2.order",
|
|
790
|
-
method: "
|
|
791
|
-
methodFqn: "com.wixpress.membership.v2.orders.
|
|
771
|
+
method: "GET",
|
|
772
|
+
methodFqn: "com.wixpress.membership.v2.orders.member.MemberOrdersService.ListOrders",
|
|
792
773
|
packageName: PACKAGE_NAME,
|
|
793
774
|
migrationOptions: {
|
|
794
775
|
optInTransformResponse: true
|
|
795
776
|
},
|
|
796
|
-
url:
|
|
797
|
-
protoPath: "/v2/orders
|
|
777
|
+
url: resolveComWixpressMembershipV2OrdersMemberMemberOrdersServiceUrl({
|
|
778
|
+
protoPath: "/v2/member/orders",
|
|
798
779
|
data: payload,
|
|
799
780
|
host
|
|
800
781
|
}),
|
|
801
|
-
|
|
782
|
+
params: (0, import_rest_modules.toURLSearchParams)(payload, true),
|
|
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
|
+
])
|
|
802
802
|
};
|
|
803
803
|
return metadata;
|
|
804
804
|
}
|
|
805
|
-
return
|
|
805
|
+
return __memberListOrders;
|
|
806
806
|
}
|
|
807
|
-
function
|
|
808
|
-
function
|
|
807
|
+
function requestCancellation(payload) {
|
|
808
|
+
function __requestCancellation({ 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.member.MemberOrdersService.RequestCancellation",
|
|
813
813
|
packageName: PACKAGE_NAME,
|
|
814
814
|
migrationOptions: {
|
|
815
815
|
optInTransformResponse: true
|
|
816
816
|
},
|
|
817
|
-
url:
|
|
818
|
-
protoPath: "/v2/orders/{id}/
|
|
817
|
+
url: resolveComWixpressMembershipV2OrdersMemberMemberOrdersServiceUrl({
|
|
818
|
+
protoPath: "/v2/member/orders/{id}/cancel",
|
|
819
819
|
data: payload,
|
|
820
820
|
host
|
|
821
821
|
}),
|
|
@@ -823,7 +823,7 @@ function resumeOrder(payload) {
|
|
|
823
823
|
};
|
|
824
824
|
return metadata;
|
|
825
825
|
}
|
|
826
|
-
return
|
|
826
|
+
return __requestCancellation;
|
|
827
827
|
}
|
|
828
828
|
|
|
829
829
|
// src/pricing-plans-v2-order-orders.types.ts
|
|
@@ -900,14 +900,6 @@ 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 || {});
|
|
911
903
|
var ReasonNotSuspendable = /* @__PURE__ */ ((ReasonNotSuspendable2) => {
|
|
912
904
|
ReasonNotSuspendable2["UNDEFINED"] = "UNDEFINED";
|
|
913
905
|
ReasonNotSuspendable2["PENDING"] = "PENDING";
|
|
@@ -919,11 +911,19 @@ var ReasonNotSuspendable = /* @__PURE__ */ ((ReasonNotSuspendable2) => {
|
|
|
919
911
|
ReasonNotSuspendable2["OLD_STRIPE"] = "OLD_STRIPE";
|
|
920
912
|
return ReasonNotSuspendable2;
|
|
921
913
|
})(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 managementGetOrder2() {
|
|
925
925
|
const payload = { id: ":id" };
|
|
926
|
-
const getRequestOptions =
|
|
926
|
+
const getRequestOptions = managementGetOrder(payload);
|
|
927
927
|
const getUrl = (context) => {
|
|
928
928
|
const { url } = getRequestOptions(context);
|
|
929
929
|
return url;
|
|
@@ -931,7 +931,7 @@ function memberGetOrder2() {
|
|
|
931
931
|
return {
|
|
932
932
|
getUrl,
|
|
933
933
|
httpMethod: "GET",
|
|
934
|
-
path: "/v2/
|
|
934
|
+
path: "/v2/orders/{id}",
|
|
935
935
|
pathParams: { id: "id" },
|
|
936
936
|
__requestType: null,
|
|
937
937
|
__originalRequestType: null,
|
|
@@ -939,9 +939,9 @@ function memberGetOrder2() {
|
|
|
939
939
|
__originalResponseType: null
|
|
940
940
|
};
|
|
941
941
|
}
|
|
942
|
-
function
|
|
942
|
+
function managementListOrders2() {
|
|
943
943
|
const payload = {};
|
|
944
|
-
const getRequestOptions =
|
|
944
|
+
const getRequestOptions = managementListOrders(payload);
|
|
945
945
|
const getUrl = (context) => {
|
|
946
946
|
const { url } = getRequestOptions(context);
|
|
947
947
|
return url;
|
|
@@ -949,7 +949,7 @@ function memberListOrders2() {
|
|
|
949
949
|
return {
|
|
950
950
|
getUrl,
|
|
951
951
|
httpMethod: "GET",
|
|
952
|
-
path: "/v2/
|
|
952
|
+
path: "/v2/orders",
|
|
953
953
|
pathParams: {},
|
|
954
954
|
__requestType: null,
|
|
955
955
|
__originalRequestType: null,
|
|
@@ -957,17 +957,17 @@ function memberListOrders2() {
|
|
|
957
957
|
__originalResponseType: null
|
|
958
958
|
};
|
|
959
959
|
}
|
|
960
|
-
function
|
|
960
|
+
function postponeEndDate2() {
|
|
961
961
|
const payload = { id: ":id" };
|
|
962
|
-
const getRequestOptions =
|
|
962
|
+
const getRequestOptions = postponeEndDate(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/
|
|
969
|
+
httpMethod: "PATCH",
|
|
970
|
+
path: "/v2/orders/{id}",
|
|
971
971
|
pathParams: { id: "id" },
|
|
972
972
|
__requestType: null,
|
|
973
973
|
__originalRequestType: null,
|
|
@@ -975,9 +975,9 @@ function requestCancellation2() {
|
|
|
975
975
|
__originalResponseType: null
|
|
976
976
|
};
|
|
977
977
|
}
|
|
978
|
-
function
|
|
979
|
-
const payload = {};
|
|
980
|
-
const getRequestOptions =
|
|
978
|
+
function cancelOrder2() {
|
|
979
|
+
const payload = { id: ":id" };
|
|
980
|
+
const getRequestOptions = cancelOrder(payload);
|
|
981
981
|
const getUrl = (context) => {
|
|
982
982
|
const { url } = getRequestOptions(context);
|
|
983
983
|
return url;
|
|
@@ -985,17 +985,17 @@ function createOnlineOrder2() {
|
|
|
985
985
|
return {
|
|
986
986
|
getUrl,
|
|
987
987
|
httpMethod: "POST",
|
|
988
|
-
path: "/v2/
|
|
989
|
-
pathParams: {},
|
|
988
|
+
path: "/v2/orders/{id}/cancel",
|
|
989
|
+
pathParams: { id: "id" },
|
|
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 markAsPaid2() {
|
|
997
|
+
const payload = { id: ":id" };
|
|
998
|
+
const getRequestOptions = markAsPaid(payload);
|
|
999
999
|
const getUrl = (context) => {
|
|
1000
1000
|
const { url } = getRequestOptions(context);
|
|
1001
1001
|
return url;
|
|
@@ -1003,17 +1003,17 @@ function createOfflineOrder2() {
|
|
|
1003
1003
|
return {
|
|
1004
1004
|
getUrl,
|
|
1005
1005
|
httpMethod: "POST",
|
|
1006
|
-
path: "/v2/
|
|
1007
|
-
pathParams: {},
|
|
1006
|
+
path: "/v2/orders/{id}/mark-as-paid",
|
|
1007
|
+
pathParams: { id: "id" },
|
|
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 pauseOrder2() {
|
|
1015
|
+
const payload = { id: ":id" };
|
|
1016
|
+
const getRequestOptions = pauseOrder(payload);
|
|
1017
1017
|
const getUrl = (context) => {
|
|
1018
1018
|
const { url } = getRequestOptions(context);
|
|
1019
1019
|
return url;
|
|
@@ -1021,17 +1021,17 @@ function getOnlineOrderPreview2() {
|
|
|
1021
1021
|
return {
|
|
1022
1022
|
getUrl,
|
|
1023
1023
|
httpMethod: "POST",
|
|
1024
|
-
path: "/v2/
|
|
1025
|
-
pathParams: {},
|
|
1024
|
+
path: "/v2/orders/{id}/pause",
|
|
1025
|
+
pathParams: { id: "id" },
|
|
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 resumeOrder2() {
|
|
1033
|
+
const payload = { id: ":id" };
|
|
1034
|
+
const getRequestOptions = resumeOrder(payload);
|
|
1035
1035
|
const getUrl = (context) => {
|
|
1036
1036
|
const { url } = getRequestOptions(context);
|
|
1037
1037
|
return url;
|
|
@@ -1039,17 +1039,17 @@ function getOfflineOrderPreview2() {
|
|
|
1039
1039
|
return {
|
|
1040
1040
|
getUrl,
|
|
1041
1041
|
httpMethod: "POST",
|
|
1042
|
-
path: "/v2/
|
|
1043
|
-
pathParams: {},
|
|
1042
|
+
path: "/v2/orders/{id}/resume",
|
|
1043
|
+
pathParams: { id: "id" },
|
|
1044
1044
|
__requestType: null,
|
|
1045
1045
|
__originalRequestType: null,
|
|
1046
1046
|
__responseType: null,
|
|
1047
1047
|
__originalResponseType: null
|
|
1048
1048
|
};
|
|
1049
1049
|
}
|
|
1050
|
-
function
|
|
1050
|
+
function createOnlineOrder2() {
|
|
1051
1051
|
const payload = {};
|
|
1052
|
-
const getRequestOptions =
|
|
1052
|
+
const getRequestOptions = createOnlineOrder(payload);
|
|
1053
1053
|
const getUrl = (context) => {
|
|
1054
1054
|
const { url } = getRequestOptions(context);
|
|
1055
1055
|
return url;
|
|
@@ -1057,7 +1057,7 @@ function getPricePreview2() {
|
|
|
1057
1057
|
return {
|
|
1058
1058
|
getUrl,
|
|
1059
1059
|
httpMethod: "POST",
|
|
1060
|
-
path: "/v2/checkout/orders/
|
|
1060
|
+
path: "/v2/checkout/orders/online",
|
|
1061
1061
|
pathParams: {},
|
|
1062
1062
|
__requestType: null,
|
|
1063
1063
|
__originalRequestType: null,
|
|
@@ -1065,35 +1065,35 @@ function getPricePreview2() {
|
|
|
1065
1065
|
__originalResponseType: null
|
|
1066
1066
|
};
|
|
1067
1067
|
}
|
|
1068
|
-
function
|
|
1069
|
-
const payload = {
|
|
1070
|
-
const getRequestOptions =
|
|
1068
|
+
function createOfflineOrder2() {
|
|
1069
|
+
const payload = {};
|
|
1070
|
+
const getRequestOptions = createOfflineOrder(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/orders/
|
|
1079
|
-
pathParams: {
|
|
1077
|
+
httpMethod: "POST",
|
|
1078
|
+
path: "/v2/checkout/orders/offline",
|
|
1079
|
+
pathParams: {},
|
|
1080
1080
|
__requestType: null,
|
|
1081
1081
|
__originalRequestType: null,
|
|
1082
1082
|
__responseType: null,
|
|
1083
1083
|
__originalResponseType: null
|
|
1084
1084
|
};
|
|
1085
1085
|
}
|
|
1086
|
-
function
|
|
1086
|
+
function getOnlineOrderPreview2() {
|
|
1087
1087
|
const payload = {};
|
|
1088
|
-
const getRequestOptions =
|
|
1088
|
+
const getRequestOptions = getOnlineOrderPreview(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/orders",
|
|
1095
|
+
httpMethod: "POST",
|
|
1096
|
+
path: "/v2/checkout/orders/preview-online",
|
|
1097
1097
|
pathParams: {},
|
|
1098
1098
|
__requestType: null,
|
|
1099
1099
|
__originalRequestType: null,
|
|
@@ -1101,27 +1101,27 @@ function managementListOrders2() {
|
|
|
1101
1101
|
__originalResponseType: null
|
|
1102
1102
|
};
|
|
1103
1103
|
}
|
|
1104
|
-
function
|
|
1105
|
-
const payload = {
|
|
1106
|
-
const getRequestOptions =
|
|
1104
|
+
function getOfflineOrderPreview2() {
|
|
1105
|
+
const payload = {};
|
|
1106
|
+
const getRequestOptions = getOfflineOrderPreview(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/orders/
|
|
1115
|
-
pathParams: {
|
|
1113
|
+
httpMethod: "POST",
|
|
1114
|
+
path: "/v2/checkout/orders/preview-offline",
|
|
1115
|
+
pathParams: {},
|
|
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 getPricePreview2() {
|
|
1123
|
+
const payload = {};
|
|
1124
|
+
const getRequestOptions = getPricePreview(payload);
|
|
1125
1125
|
const getUrl = (context) => {
|
|
1126
1126
|
const { url } = getRequestOptions(context);
|
|
1127
1127
|
return url;
|
|
@@ -1129,25 +1129,25 @@ function cancelOrder2() {
|
|
|
1129
1129
|
return {
|
|
1130
1130
|
getUrl,
|
|
1131
1131
|
httpMethod: "POST",
|
|
1132
|
-
path: "/v2/orders/
|
|
1133
|
-
pathParams: {
|
|
1132
|
+
path: "/v2/checkout/orders/price-preview",
|
|
1133
|
+
pathParams: {},
|
|
1134
1134
|
__requestType: null,
|
|
1135
1135
|
__originalRequestType: null,
|
|
1136
1136
|
__responseType: null,
|
|
1137
1137
|
__originalResponseType: null
|
|
1138
1138
|
};
|
|
1139
1139
|
}
|
|
1140
|
-
function
|
|
1140
|
+
function memberGetOrder2() {
|
|
1141
1141
|
const payload = { id: ":id" };
|
|
1142
|
-
const getRequestOptions =
|
|
1142
|
+
const getRequestOptions = memberGetOrder(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/orders/{id}
|
|
1149
|
+
httpMethod: "GET",
|
|
1150
|
+
path: "/v2/member/orders/{id}",
|
|
1151
1151
|
pathParams: { id: "id" },
|
|
1152
1152
|
__requestType: null,
|
|
1153
1153
|
__originalRequestType: null,
|
|
@@ -1155,27 +1155,27 @@ function markAsPaid2() {
|
|
|
1155
1155
|
__originalResponseType: null
|
|
1156
1156
|
};
|
|
1157
1157
|
}
|
|
1158
|
-
function
|
|
1159
|
-
const payload = {
|
|
1160
|
-
const getRequestOptions =
|
|
1158
|
+
function memberListOrders2() {
|
|
1159
|
+
const payload = {};
|
|
1160
|
+
const getRequestOptions = memberListOrders(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/orders
|
|
1169
|
-
pathParams: {
|
|
1167
|
+
httpMethod: "GET",
|
|
1168
|
+
path: "/v2/member/orders",
|
|
1169
|
+
pathParams: {},
|
|
1170
1170
|
__requestType: null,
|
|
1171
1171
|
__originalRequestType: null,
|
|
1172
1172
|
__responseType: null,
|
|
1173
1173
|
__originalResponseType: null
|
|
1174
1174
|
};
|
|
1175
1175
|
}
|
|
1176
|
-
function
|
|
1176
|
+
function requestCancellation2() {
|
|
1177
1177
|
const payload = { id: ":id" };
|
|
1178
|
-
const getRequestOptions =
|
|
1178
|
+
const getRequestOptions = requestCancellation(payload);
|
|
1179
1179
|
const getUrl = (context) => {
|
|
1180
1180
|
const { url } = getRequestOptions(context);
|
|
1181
1181
|
return url;
|
|
@@ -1183,7 +1183,7 @@ function resumeOrder2() {
|
|
|
1183
1183
|
return {
|
|
1184
1184
|
getUrl,
|
|
1185
1185
|
httpMethod: "POST",
|
|
1186
|
-
path: "/v2/orders/{id}/
|
|
1186
|
+
path: "/v2/member/orders/{id}/cancel",
|
|
1187
1187
|
pathParams: { id: "id" },
|
|
1188
1188
|
__requestType: null,
|
|
1189
1189
|
__originalRequestType: null,
|