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