@wix/auto_sdk_pricing-plans_orders 1.0.97 → 1.0.98
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 +153 -153
- package/build/cjs/index.js +642 -642
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +608 -608
- package/build/cjs/index.typings.js +507 -507
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.d.ts +459 -459
- package/build/cjs/meta.js +403 -403
- package/build/cjs/meta.js.map +1 -1
- package/build/es/index.d.mts +153 -153
- package/build/es/index.mjs +642 -642
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +608 -608
- package/build/es/index.typings.mjs +507 -507
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.d.mts +459 -459
- package/build/es/meta.mjs +403 -403
- package/build/es/meta.mjs.map +1 -1
- package/build/internal/cjs/index.d.ts +153 -153
- package/build/internal/cjs/index.js +642 -642
- package/build/internal/cjs/index.js.map +1 -1
- package/build/internal/cjs/index.typings.d.ts +608 -608
- package/build/internal/cjs/index.typings.js +507 -507
- package/build/internal/cjs/index.typings.js.map +1 -1
- package/build/internal/cjs/meta.d.ts +459 -459
- package/build/internal/cjs/meta.js +403 -403
- package/build/internal/cjs/meta.js.map +1 -1
- package/build/internal/es/index.d.mts +153 -153
- package/build/internal/es/index.mjs +642 -642
- package/build/internal/es/index.mjs.map +1 -1
- package/build/internal/es/index.typings.d.mts +608 -608
- package/build/internal/es/index.typings.mjs +507 -507
- package/build/internal/es/index.typings.mjs.map +1 -1
- package/build/internal/es/meta.d.mts +459 -459
- package/build/internal/es/meta.mjs +403 -403
- package/build/internal/es/meta.mjs.map +1 -1
- package/package.json +2 -2
|
@@ -4,105 +4,6 @@ import { transformSDKTimestampToRESTTimestamp } from "@wix/sdk-runtime/transform
|
|
|
4
4
|
import { transformRESTTimestampToSDKTimestamp } from "@wix/sdk-runtime/transformations/timestamp";
|
|
5
5
|
import { transformPaths } from "@wix/sdk-runtime/transformations/transform-paths";
|
|
6
6
|
import { resolveUrl } from "@wix/sdk-runtime/rest-modules";
|
|
7
|
-
function resolveComWixpressMembershipV2OrdersOrderManagementServiceUrl(opts) {
|
|
8
|
-
const domainToMappings = {
|
|
9
|
-
"api._api_base_domain_": [
|
|
10
|
-
{
|
|
11
|
-
srcPath: "/order-management-service-proxy",
|
|
12
|
-
destPath: ""
|
|
13
|
-
}
|
|
14
|
-
],
|
|
15
|
-
"*.dev.wix-code.com": [
|
|
16
|
-
{
|
|
17
|
-
srcPath: "/_api/paid-plans/v2/orders",
|
|
18
|
-
destPath: "/v2/orders"
|
|
19
|
-
}
|
|
20
|
-
],
|
|
21
|
-
"*.pub.wix-code.com": [
|
|
22
|
-
{
|
|
23
|
-
srcPath: "/_api/paid-plans/v2/orders",
|
|
24
|
-
destPath: "/v2/orders"
|
|
25
|
-
}
|
|
26
|
-
],
|
|
27
|
-
"*.wixapps.net": [
|
|
28
|
-
{
|
|
29
|
-
srcPath: "/_api/paid-plans/v2/orders",
|
|
30
|
-
destPath: "/v2/orders"
|
|
31
|
-
}
|
|
32
|
-
],
|
|
33
|
-
_: [
|
|
34
|
-
{
|
|
35
|
-
srcPath: "/_api/paid-plans/v2/orders",
|
|
36
|
-
destPath: "/v2/orders"
|
|
37
|
-
}
|
|
38
|
-
],
|
|
39
|
-
"editor-flow.wixapps.net": [
|
|
40
|
-
{
|
|
41
|
-
srcPath: "/_api/paid-plans/v2/orders",
|
|
42
|
-
destPath: "/v2/orders"
|
|
43
|
-
}
|
|
44
|
-
],
|
|
45
|
-
"editor._base_domain_": [
|
|
46
|
-
{
|
|
47
|
-
srcPath: "/_api/paid-plans/v2/orders",
|
|
48
|
-
destPath: "/v2/orders"
|
|
49
|
-
}
|
|
50
|
-
],
|
|
51
|
-
"blocks._base_domain_": [
|
|
52
|
-
{
|
|
53
|
-
srcPath: "/_api/paid-plans/v2/orders",
|
|
54
|
-
destPath: "/v2/orders"
|
|
55
|
-
}
|
|
56
|
-
],
|
|
57
|
-
"create.editorx": [
|
|
58
|
-
{
|
|
59
|
-
srcPath: "/_api/paid-plans/v2/orders",
|
|
60
|
-
destPath: "/v2/orders"
|
|
61
|
-
}
|
|
62
|
-
],
|
|
63
|
-
"editor.wixapps.net": [
|
|
64
|
-
{
|
|
65
|
-
srcPath: "/_api/paid-plans/v2/orders",
|
|
66
|
-
destPath: "/v2/orders"
|
|
67
|
-
}
|
|
68
|
-
],
|
|
69
|
-
"forums._base_domain_": [
|
|
70
|
-
{
|
|
71
|
-
srcPath: "/_api/paid-plans/v2/orders",
|
|
72
|
-
destPath: "/v2/orders"
|
|
73
|
-
}
|
|
74
|
-
],
|
|
75
|
-
"forums.wixapps.net": [
|
|
76
|
-
{
|
|
77
|
-
srcPath: "/_api/paid-plans/v2/orders",
|
|
78
|
-
destPath: "/v2/orders"
|
|
79
|
-
}
|
|
80
|
-
],
|
|
81
|
-
"manage._base_domain_": [
|
|
82
|
-
{
|
|
83
|
-
srcPath: "/_api/pricing-plans/v2/orders",
|
|
84
|
-
destPath: "/v2/orders"
|
|
85
|
-
},
|
|
86
|
-
{
|
|
87
|
-
srcPath: "/_api/paid-plans/v2/orders",
|
|
88
|
-
destPath: "/v2/orders"
|
|
89
|
-
}
|
|
90
|
-
],
|
|
91
|
-
"www._base_domain_": [
|
|
92
|
-
{
|
|
93
|
-
srcPath: "/_api/paid-plans/v2/orders",
|
|
94
|
-
destPath: "/v2/orders"
|
|
95
|
-
}
|
|
96
|
-
],
|
|
97
|
-
"www.wixapis.com": [
|
|
98
|
-
{
|
|
99
|
-
srcPath: "/pricing-plans/v2/orders",
|
|
100
|
-
destPath: "/v2/orders"
|
|
101
|
-
}
|
|
102
|
-
]
|
|
103
|
-
};
|
|
104
|
-
return resolveUrl(Object.assign(opts, { domainToMappings }));
|
|
105
|
-
}
|
|
106
7
|
function resolveComWixpressMembershipV2OrdersCheckoutServiceUrl(opts) {
|
|
107
8
|
const domainToMappings = {
|
|
108
9
|
"api._api_base_domain_": [
|
|
@@ -275,19 +176,118 @@ function resolveComWixpressMembershipV2OrdersMemberMemberOrdersServiceUrl(opts)
|
|
|
275
176
|
};
|
|
276
177
|
return resolveUrl(Object.assign(opts, { domainToMappings }));
|
|
277
178
|
}
|
|
179
|
+
function resolveComWixpressMembershipV2OrdersOrderManagementServiceUrl(opts) {
|
|
180
|
+
const domainToMappings = {
|
|
181
|
+
"api._api_base_domain_": [
|
|
182
|
+
{
|
|
183
|
+
srcPath: "/order-management-service-proxy",
|
|
184
|
+
destPath: ""
|
|
185
|
+
}
|
|
186
|
+
],
|
|
187
|
+
"*.dev.wix-code.com": [
|
|
188
|
+
{
|
|
189
|
+
srcPath: "/_api/paid-plans/v2/orders",
|
|
190
|
+
destPath: "/v2/orders"
|
|
191
|
+
}
|
|
192
|
+
],
|
|
193
|
+
"*.pub.wix-code.com": [
|
|
194
|
+
{
|
|
195
|
+
srcPath: "/_api/paid-plans/v2/orders",
|
|
196
|
+
destPath: "/v2/orders"
|
|
197
|
+
}
|
|
198
|
+
],
|
|
199
|
+
"*.wixapps.net": [
|
|
200
|
+
{
|
|
201
|
+
srcPath: "/_api/paid-plans/v2/orders",
|
|
202
|
+
destPath: "/v2/orders"
|
|
203
|
+
}
|
|
204
|
+
],
|
|
205
|
+
_: [
|
|
206
|
+
{
|
|
207
|
+
srcPath: "/_api/paid-plans/v2/orders",
|
|
208
|
+
destPath: "/v2/orders"
|
|
209
|
+
}
|
|
210
|
+
],
|
|
211
|
+
"editor-flow.wixapps.net": [
|
|
212
|
+
{
|
|
213
|
+
srcPath: "/_api/paid-plans/v2/orders",
|
|
214
|
+
destPath: "/v2/orders"
|
|
215
|
+
}
|
|
216
|
+
],
|
|
217
|
+
"editor._base_domain_": [
|
|
218
|
+
{
|
|
219
|
+
srcPath: "/_api/paid-plans/v2/orders",
|
|
220
|
+
destPath: "/v2/orders"
|
|
221
|
+
}
|
|
222
|
+
],
|
|
223
|
+
"blocks._base_domain_": [
|
|
224
|
+
{
|
|
225
|
+
srcPath: "/_api/paid-plans/v2/orders",
|
|
226
|
+
destPath: "/v2/orders"
|
|
227
|
+
}
|
|
228
|
+
],
|
|
229
|
+
"create.editorx": [
|
|
230
|
+
{
|
|
231
|
+
srcPath: "/_api/paid-plans/v2/orders",
|
|
232
|
+
destPath: "/v2/orders"
|
|
233
|
+
}
|
|
234
|
+
],
|
|
235
|
+
"editor.wixapps.net": [
|
|
236
|
+
{
|
|
237
|
+
srcPath: "/_api/paid-plans/v2/orders",
|
|
238
|
+
destPath: "/v2/orders"
|
|
239
|
+
}
|
|
240
|
+
],
|
|
241
|
+
"forums._base_domain_": [
|
|
242
|
+
{
|
|
243
|
+
srcPath: "/_api/paid-plans/v2/orders",
|
|
244
|
+
destPath: "/v2/orders"
|
|
245
|
+
}
|
|
246
|
+
],
|
|
247
|
+
"forums.wixapps.net": [
|
|
248
|
+
{
|
|
249
|
+
srcPath: "/_api/paid-plans/v2/orders",
|
|
250
|
+
destPath: "/v2/orders"
|
|
251
|
+
}
|
|
252
|
+
],
|
|
253
|
+
"manage._base_domain_": [
|
|
254
|
+
{
|
|
255
|
+
srcPath: "/_api/pricing-plans/v2/orders",
|
|
256
|
+
destPath: "/v2/orders"
|
|
257
|
+
},
|
|
258
|
+
{
|
|
259
|
+
srcPath: "/_api/paid-plans/v2/orders",
|
|
260
|
+
destPath: "/v2/orders"
|
|
261
|
+
}
|
|
262
|
+
],
|
|
263
|
+
"www._base_domain_": [
|
|
264
|
+
{
|
|
265
|
+
srcPath: "/_api/paid-plans/v2/orders",
|
|
266
|
+
destPath: "/v2/orders"
|
|
267
|
+
}
|
|
268
|
+
],
|
|
269
|
+
"www.wixapis.com": [
|
|
270
|
+
{
|
|
271
|
+
srcPath: "/pricing-plans/v2/orders",
|
|
272
|
+
destPath: "/v2/orders"
|
|
273
|
+
}
|
|
274
|
+
]
|
|
275
|
+
};
|
|
276
|
+
return resolveUrl(Object.assign(opts, { domainToMappings }));
|
|
277
|
+
}
|
|
278
278
|
var PACKAGE_NAME = "@wix/auto_sdk_pricing-plans_orders";
|
|
279
|
-
function
|
|
280
|
-
function
|
|
279
|
+
function managementGetOrder(payload) {
|
|
280
|
+
function __managementGetOrder({ host }) {
|
|
281
281
|
const metadata = {
|
|
282
282
|
entityFqdn: "wix.pricing_plans.v2.order",
|
|
283
283
|
method: "GET",
|
|
284
|
-
methodFqn: "com.wixpress.membership.v2.orders.
|
|
284
|
+
methodFqn: "com.wixpress.membership.v2.orders.OrderManagementService.GetOrder",
|
|
285
285
|
packageName: PACKAGE_NAME,
|
|
286
286
|
migrationOptions: {
|
|
287
287
|
optInTransformResponse: true
|
|
288
288
|
},
|
|
289
|
-
url:
|
|
290
|
-
protoPath: "/v2/
|
|
289
|
+
url: resolveComWixpressMembershipV2OrdersOrderManagementServiceUrl({
|
|
290
|
+
protoPath: "/v2/orders/{id}",
|
|
291
291
|
data: payload,
|
|
292
292
|
host
|
|
293
293
|
}),
|
|
@@ -314,20 +314,20 @@ function memberGetOrder(payload) {
|
|
|
314
314
|
};
|
|
315
315
|
return metadata;
|
|
316
316
|
}
|
|
317
|
-
return
|
|
317
|
+
return __managementGetOrder;
|
|
318
318
|
}
|
|
319
|
-
function
|
|
320
|
-
function
|
|
319
|
+
function managementListOrders(payload) {
|
|
320
|
+
function __managementListOrders({ host }) {
|
|
321
321
|
const metadata = {
|
|
322
322
|
entityFqdn: "wix.pricing_plans.v2.order",
|
|
323
323
|
method: "GET",
|
|
324
|
-
methodFqn: "com.wixpress.membership.v2.orders.
|
|
324
|
+
methodFqn: "com.wixpress.membership.v2.orders.OrderManagementService.ListOrders",
|
|
325
325
|
packageName: PACKAGE_NAME,
|
|
326
326
|
migrationOptions: {
|
|
327
327
|
optInTransformResponse: true
|
|
328
328
|
},
|
|
329
|
-
url:
|
|
330
|
-
protoPath: "/v2/
|
|
329
|
+
url: resolveComWixpressMembershipV2OrdersOrderManagementServiceUrl({
|
|
330
|
+
protoPath: "/v2/orders",
|
|
331
331
|
data: payload,
|
|
332
332
|
host
|
|
333
333
|
}),
|
|
@@ -354,225 +354,110 @@ function memberListOrders(payload) {
|
|
|
354
354
|
};
|
|
355
355
|
return metadata;
|
|
356
356
|
}
|
|
357
|
-
return
|
|
357
|
+
return __managementListOrders;
|
|
358
358
|
}
|
|
359
|
-
function
|
|
360
|
-
function
|
|
359
|
+
function postponeEndDate(payload) {
|
|
360
|
+
function __postponeEndDate({ host }) {
|
|
361
|
+
const serializedData = transformPaths(payload, [
|
|
362
|
+
{
|
|
363
|
+
transformFn: transformSDKTimestampToRESTTimestamp,
|
|
364
|
+
paths: [{ path: "endDate" }]
|
|
365
|
+
}
|
|
366
|
+
]);
|
|
361
367
|
const metadata = {
|
|
362
368
|
entityFqdn: "wix.pricing_plans.v2.order",
|
|
363
|
-
method: "
|
|
364
|
-
methodFqn: "com.wixpress.membership.v2.orders.
|
|
369
|
+
method: "PATCH",
|
|
370
|
+
methodFqn: "com.wixpress.membership.v2.orders.OrderManagementService.PostponeEndDate",
|
|
365
371
|
packageName: PACKAGE_NAME,
|
|
366
372
|
migrationOptions: {
|
|
367
373
|
optInTransformResponse: true
|
|
368
374
|
},
|
|
369
|
-
url:
|
|
370
|
-
protoPath: "/v2/
|
|
371
|
-
data:
|
|
375
|
+
url: resolveComWixpressMembershipV2OrdersOrderManagementServiceUrl({
|
|
376
|
+
protoPath: "/v2/orders/{id}",
|
|
377
|
+
data: serializedData,
|
|
372
378
|
host
|
|
373
379
|
}),
|
|
374
|
-
data:
|
|
380
|
+
data: serializedData
|
|
375
381
|
};
|
|
376
382
|
return metadata;
|
|
377
383
|
}
|
|
378
|
-
return
|
|
384
|
+
return __postponeEndDate;
|
|
379
385
|
}
|
|
380
|
-
function
|
|
381
|
-
function
|
|
382
|
-
const serializedData = transformPaths(payload, [
|
|
383
|
-
{
|
|
384
|
-
transformFn: transformSDKTimestampToRESTTimestamp,
|
|
385
|
-
paths: [{ path: "startDate" }]
|
|
386
|
-
}
|
|
387
|
-
]);
|
|
386
|
+
function cancelOrder(payload) {
|
|
387
|
+
function __cancelOrder({ host }) {
|
|
388
388
|
const metadata = {
|
|
389
389
|
entityFqdn: "wix.pricing_plans.v2.order",
|
|
390
390
|
method: "POST",
|
|
391
|
-
methodFqn: "com.wixpress.membership.v2.orders.
|
|
392
|
-
packageName: PACKAGE_NAME,
|
|
393
|
-
migrationOptions: {
|
|
394
|
-
optInTransformResponse: true
|
|
395
|
-
},
|
|
396
|
-
url: resolveComWixpressMembershipV2OrdersCheckoutServiceUrl({
|
|
397
|
-
protoPath: "/v2/checkout/orders/online",
|
|
398
|
-
data: serializedData,
|
|
399
|
-
host
|
|
400
|
-
}),
|
|
401
|
-
data: serializedData,
|
|
402
|
-
transformResponse: (payload2) => transformPaths(payload2, [
|
|
403
|
-
{
|
|
404
|
-
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
405
|
-
paths: [
|
|
406
|
-
{ path: "order.startDate" },
|
|
407
|
-
{ path: "order.endDate" },
|
|
408
|
-
{ path: "order.earliestEndDate" },
|
|
409
|
-
{ path: "order.createdDate" },
|
|
410
|
-
{ path: "order.updatedDate" },
|
|
411
|
-
{ path: "order.cancellation.requestedDate" },
|
|
412
|
-
{ path: "order.pausePeriods.pauseDate" },
|
|
413
|
-
{ path: "order.pausePeriods.resumeDate" },
|
|
414
|
-
{ path: "order.currentCycle.startedDate" },
|
|
415
|
-
{ path: "order.currentCycle.endedDate" },
|
|
416
|
-
{ path: "order.cycles.startedDate" },
|
|
417
|
-
{ path: "order.cycles.endedDate" }
|
|
418
|
-
]
|
|
419
|
-
}
|
|
420
|
-
])
|
|
421
|
-
};
|
|
422
|
-
return metadata;
|
|
423
|
-
}
|
|
424
|
-
return __createOnlineOrder;
|
|
425
|
-
}
|
|
426
|
-
function createOfflineOrder(payload) {
|
|
427
|
-
function __createOfflineOrder({ host }) {
|
|
428
|
-
const serializedData = transformPaths(payload, [
|
|
429
|
-
{
|
|
430
|
-
transformFn: transformSDKTimestampToRESTTimestamp,
|
|
431
|
-
paths: [{ path: "startDate" }]
|
|
432
|
-
}
|
|
433
|
-
]);
|
|
434
|
-
const metadata = {
|
|
435
|
-
entityFqdn: "wix.pricing_plans.v2.order",
|
|
436
|
-
method: "POST",
|
|
437
|
-
methodFqn: "com.wixpress.membership.v2.orders.CheckoutService.CreateOfflineOrder",
|
|
391
|
+
methodFqn: "com.wixpress.membership.v2.orders.OrderManagementService.CancelOrder",
|
|
438
392
|
packageName: PACKAGE_NAME,
|
|
439
393
|
migrationOptions: {
|
|
440
394
|
optInTransformResponse: true
|
|
441
395
|
},
|
|
442
|
-
url:
|
|
443
|
-
protoPath: "/v2/
|
|
444
|
-
data:
|
|
396
|
+
url: resolveComWixpressMembershipV2OrdersOrderManagementServiceUrl({
|
|
397
|
+
protoPath: "/v2/orders/{id}/cancel",
|
|
398
|
+
data: payload,
|
|
445
399
|
host
|
|
446
400
|
}),
|
|
447
|
-
data:
|
|
448
|
-
transformResponse: (payload2) => transformPaths(payload2, [
|
|
449
|
-
{
|
|
450
|
-
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
451
|
-
paths: [
|
|
452
|
-
{ path: "order.startDate" },
|
|
453
|
-
{ path: "order.endDate" },
|
|
454
|
-
{ path: "order.earliestEndDate" },
|
|
455
|
-
{ path: "order.createdDate" },
|
|
456
|
-
{ path: "order.updatedDate" },
|
|
457
|
-
{ path: "order.cancellation.requestedDate" },
|
|
458
|
-
{ path: "order.pausePeriods.pauseDate" },
|
|
459
|
-
{ path: "order.pausePeriods.resumeDate" },
|
|
460
|
-
{ path: "order.currentCycle.startedDate" },
|
|
461
|
-
{ path: "order.currentCycle.endedDate" },
|
|
462
|
-
{ path: "order.cycles.startedDate" },
|
|
463
|
-
{ path: "order.cycles.endedDate" }
|
|
464
|
-
]
|
|
465
|
-
}
|
|
466
|
-
])
|
|
401
|
+
data: payload
|
|
467
402
|
};
|
|
468
403
|
return metadata;
|
|
469
404
|
}
|
|
470
|
-
return
|
|
405
|
+
return __cancelOrder;
|
|
471
406
|
}
|
|
472
|
-
function
|
|
473
|
-
function
|
|
474
|
-
const serializedData = transformPaths(payload, [
|
|
475
|
-
{
|
|
476
|
-
transformFn: transformSDKTimestampToRESTTimestamp,
|
|
477
|
-
paths: [{ path: "startDate" }]
|
|
478
|
-
}
|
|
479
|
-
]);
|
|
407
|
+
function markAsPaid(payload) {
|
|
408
|
+
function __markAsPaid({ host }) {
|
|
480
409
|
const metadata = {
|
|
481
410
|
entityFqdn: "wix.pricing_plans.v2.order",
|
|
482
411
|
method: "POST",
|
|
483
|
-
methodFqn: "com.wixpress.membership.v2.orders.
|
|
412
|
+
methodFqn: "com.wixpress.membership.v2.orders.OrderManagementService.MarkAsPaid",
|
|
484
413
|
packageName: PACKAGE_NAME,
|
|
485
414
|
migrationOptions: {
|
|
486
415
|
optInTransformResponse: true
|
|
487
416
|
},
|
|
488
|
-
url:
|
|
489
|
-
protoPath: "/v2/
|
|
490
|
-
data:
|
|
417
|
+
url: resolveComWixpressMembershipV2OrdersOrderManagementServiceUrl({
|
|
418
|
+
protoPath: "/v2/orders/{id}/mark-as-paid",
|
|
419
|
+
data: payload,
|
|
491
420
|
host
|
|
492
421
|
}),
|
|
493
|
-
data:
|
|
494
|
-
transformResponse: (payload2) => transformPaths(payload2, [
|
|
495
|
-
{
|
|
496
|
-
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
497
|
-
paths: [
|
|
498
|
-
{ path: "order.startDate" },
|
|
499
|
-
{ path: "order.endDate" },
|
|
500
|
-
{ path: "order.earliestEndDate" },
|
|
501
|
-
{ path: "order.createdDate" },
|
|
502
|
-
{ path: "order.updatedDate" },
|
|
503
|
-
{ path: "order.cancellation.requestedDate" },
|
|
504
|
-
{ path: "order.pausePeriods.pauseDate" },
|
|
505
|
-
{ path: "order.pausePeriods.resumeDate" },
|
|
506
|
-
{ path: "order.currentCycle.startedDate" },
|
|
507
|
-
{ path: "order.currentCycle.endedDate" },
|
|
508
|
-
{ path: "order.cycles.startedDate" },
|
|
509
|
-
{ path: "order.cycles.endedDate" }
|
|
510
|
-
]
|
|
511
|
-
}
|
|
512
|
-
])
|
|
422
|
+
data: payload
|
|
513
423
|
};
|
|
514
424
|
return metadata;
|
|
515
425
|
}
|
|
516
|
-
return
|
|
426
|
+
return __markAsPaid;
|
|
517
427
|
}
|
|
518
|
-
function
|
|
519
|
-
function
|
|
520
|
-
const serializedData = transformPaths(payload, [
|
|
521
|
-
{
|
|
522
|
-
transformFn: transformSDKTimestampToRESTTimestamp,
|
|
523
|
-
paths: [{ path: "startDate" }]
|
|
524
|
-
}
|
|
525
|
-
]);
|
|
428
|
+
function pauseOrder(payload) {
|
|
429
|
+
function __pauseOrder({ host }) {
|
|
526
430
|
const metadata = {
|
|
527
431
|
entityFqdn: "wix.pricing_plans.v2.order",
|
|
528
432
|
method: "POST",
|
|
529
|
-
methodFqn: "com.wixpress.membership.v2.orders.
|
|
433
|
+
methodFqn: "com.wixpress.membership.v2.orders.OrderManagementService.PauseOrder",
|
|
530
434
|
packageName: PACKAGE_NAME,
|
|
531
435
|
migrationOptions: {
|
|
532
436
|
optInTransformResponse: true
|
|
533
437
|
},
|
|
534
|
-
url:
|
|
535
|
-
protoPath: "/v2/
|
|
536
|
-
data:
|
|
438
|
+
url: resolveComWixpressMembershipV2OrdersOrderManagementServiceUrl({
|
|
439
|
+
protoPath: "/v2/orders/{id}/pause",
|
|
440
|
+
data: payload,
|
|
537
441
|
host
|
|
538
442
|
}),
|
|
539
|
-
data:
|
|
540
|
-
transformResponse: (payload2) => transformPaths(payload2, [
|
|
541
|
-
{
|
|
542
|
-
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
543
|
-
paths: [
|
|
544
|
-
{ path: "order.startDate" },
|
|
545
|
-
{ path: "order.endDate" },
|
|
546
|
-
{ path: "order.earliestEndDate" },
|
|
547
|
-
{ path: "order.createdDate" },
|
|
548
|
-
{ path: "order.updatedDate" },
|
|
549
|
-
{ path: "order.cancellation.requestedDate" },
|
|
550
|
-
{ path: "order.pausePeriods.pauseDate" },
|
|
551
|
-
{ path: "order.pausePeriods.resumeDate" },
|
|
552
|
-
{ path: "order.currentCycle.startedDate" },
|
|
553
|
-
{ path: "order.currentCycle.endedDate" },
|
|
554
|
-
{ path: "order.cycles.startedDate" },
|
|
555
|
-
{ path: "order.cycles.endedDate" }
|
|
556
|
-
]
|
|
557
|
-
}
|
|
558
|
-
])
|
|
443
|
+
data: payload
|
|
559
444
|
};
|
|
560
445
|
return metadata;
|
|
561
446
|
}
|
|
562
|
-
return
|
|
447
|
+
return __pauseOrder;
|
|
563
448
|
}
|
|
564
|
-
function
|
|
565
|
-
function
|
|
449
|
+
function resumeOrder(payload) {
|
|
450
|
+
function __resumeOrder({ host }) {
|
|
566
451
|
const metadata = {
|
|
567
452
|
entityFqdn: "wix.pricing_plans.v2.order",
|
|
568
453
|
method: "POST",
|
|
569
|
-
methodFqn: "com.wixpress.membership.v2.orders.
|
|
454
|
+
methodFqn: "com.wixpress.membership.v2.orders.OrderManagementService.ResumeOrder",
|
|
570
455
|
packageName: PACKAGE_NAME,
|
|
571
456
|
migrationOptions: {
|
|
572
457
|
optInTransformResponse: true
|
|
573
458
|
},
|
|
574
|
-
url:
|
|
575
|
-
protoPath: "/v2/
|
|
459
|
+
url: resolveComWixpressMembershipV2OrdersOrderManagementServiceUrl({
|
|
460
|
+
protoPath: "/v2/orders/{id}/resume",
|
|
576
461
|
data: payload,
|
|
577
462
|
host
|
|
578
463
|
}),
|
|
@@ -580,20 +465,20 @@ function getPricePreview(payload) {
|
|
|
580
465
|
};
|
|
581
466
|
return metadata;
|
|
582
467
|
}
|
|
583
|
-
return
|
|
468
|
+
return __resumeOrder;
|
|
584
469
|
}
|
|
585
|
-
function
|
|
586
|
-
function
|
|
470
|
+
function memberGetOrder(payload) {
|
|
471
|
+
function __memberGetOrder({ host }) {
|
|
587
472
|
const metadata = {
|
|
588
473
|
entityFqdn: "wix.pricing_plans.v2.order",
|
|
589
474
|
method: "GET",
|
|
590
|
-
methodFqn: "com.wixpress.membership.v2.orders.
|
|
475
|
+
methodFqn: "com.wixpress.membership.v2.orders.member.MemberOrdersService.GetOrder",
|
|
591
476
|
packageName: PACKAGE_NAME,
|
|
592
477
|
migrationOptions: {
|
|
593
478
|
optInTransformResponse: true
|
|
594
479
|
},
|
|
595
|
-
url:
|
|
596
|
-
protoPath: "/v2/orders/{id}",
|
|
480
|
+
url: resolveComWixpressMembershipV2OrdersMemberMemberOrdersServiceUrl({
|
|
481
|
+
protoPath: "/v2/member/orders/{id}",
|
|
597
482
|
data: payload,
|
|
598
483
|
host
|
|
599
484
|
}),
|
|
@@ -620,20 +505,20 @@ function managementGetOrder(payload) {
|
|
|
620
505
|
};
|
|
621
506
|
return metadata;
|
|
622
507
|
}
|
|
623
|
-
return
|
|
508
|
+
return __memberGetOrder;
|
|
624
509
|
}
|
|
625
|
-
function
|
|
626
|
-
function
|
|
510
|
+
function memberListOrders(payload) {
|
|
511
|
+
function __memberListOrders({ host }) {
|
|
627
512
|
const metadata = {
|
|
628
513
|
entityFqdn: "wix.pricing_plans.v2.order",
|
|
629
514
|
method: "GET",
|
|
630
|
-
methodFqn: "com.wixpress.membership.v2.orders.
|
|
515
|
+
methodFqn: "com.wixpress.membership.v2.orders.member.MemberOrdersService.ListOrders",
|
|
631
516
|
packageName: PACKAGE_NAME,
|
|
632
517
|
migrationOptions: {
|
|
633
518
|
optInTransformResponse: true
|
|
634
519
|
},
|
|
635
|
-
url:
|
|
636
|
-
protoPath: "/v2/orders",
|
|
520
|
+
url: resolveComWixpressMembershipV2OrdersMemberMemberOrdersServiceUrl({
|
|
521
|
+
protoPath: "/v2/member/orders",
|
|
637
522
|
data: payload,
|
|
638
523
|
host
|
|
639
524
|
}),
|
|
@@ -660,110 +545,225 @@ function managementListOrders(payload) {
|
|
|
660
545
|
};
|
|
661
546
|
return metadata;
|
|
662
547
|
}
|
|
663
|
-
return
|
|
548
|
+
return __memberListOrders;
|
|
664
549
|
}
|
|
665
|
-
function
|
|
666
|
-
function
|
|
550
|
+
function requestCancellation(payload) {
|
|
551
|
+
function __requestCancellation({ host }) {
|
|
552
|
+
const metadata = {
|
|
553
|
+
entityFqdn: "wix.pricing_plans.v2.order",
|
|
554
|
+
method: "POST",
|
|
555
|
+
methodFqn: "com.wixpress.membership.v2.orders.member.MemberOrdersService.RequestCancellation",
|
|
556
|
+
packageName: PACKAGE_NAME,
|
|
557
|
+
migrationOptions: {
|
|
558
|
+
optInTransformResponse: true
|
|
559
|
+
},
|
|
560
|
+
url: resolveComWixpressMembershipV2OrdersMemberMemberOrdersServiceUrl({
|
|
561
|
+
protoPath: "/v2/member/orders/{id}/cancel",
|
|
562
|
+
data: payload,
|
|
563
|
+
host
|
|
564
|
+
}),
|
|
565
|
+
data: payload
|
|
566
|
+
};
|
|
567
|
+
return metadata;
|
|
568
|
+
}
|
|
569
|
+
return __requestCancellation;
|
|
570
|
+
}
|
|
571
|
+
function createOnlineOrder(payload) {
|
|
572
|
+
function __createOnlineOrder({ host }) {
|
|
667
573
|
const serializedData = transformPaths(payload, [
|
|
668
574
|
{
|
|
669
575
|
transformFn: transformSDKTimestampToRESTTimestamp,
|
|
670
|
-
paths: [{ path: "
|
|
576
|
+
paths: [{ path: "startDate" }]
|
|
671
577
|
}
|
|
672
578
|
]);
|
|
673
579
|
const metadata = {
|
|
674
580
|
entityFqdn: "wix.pricing_plans.v2.order",
|
|
675
|
-
method: "
|
|
676
|
-
methodFqn: "com.wixpress.membership.v2.orders.
|
|
581
|
+
method: "POST",
|
|
582
|
+
methodFqn: "com.wixpress.membership.v2.orders.CheckoutService.CreateOnlineOrder",
|
|
677
583
|
packageName: PACKAGE_NAME,
|
|
678
584
|
migrationOptions: {
|
|
679
585
|
optInTransformResponse: true
|
|
680
586
|
},
|
|
681
|
-
url:
|
|
682
|
-
protoPath: "/v2/orders/
|
|
587
|
+
url: resolveComWixpressMembershipV2OrdersCheckoutServiceUrl({
|
|
588
|
+
protoPath: "/v2/checkout/orders/online",
|
|
683
589
|
data: serializedData,
|
|
684
590
|
host
|
|
685
591
|
}),
|
|
686
|
-
data: serializedData
|
|
592
|
+
data: serializedData,
|
|
593
|
+
transformResponse: (payload2) => transformPaths(payload2, [
|
|
594
|
+
{
|
|
595
|
+
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
596
|
+
paths: [
|
|
597
|
+
{ path: "order.startDate" },
|
|
598
|
+
{ path: "order.endDate" },
|
|
599
|
+
{ path: "order.earliestEndDate" },
|
|
600
|
+
{ path: "order.createdDate" },
|
|
601
|
+
{ path: "order.updatedDate" },
|
|
602
|
+
{ path: "order.cancellation.requestedDate" },
|
|
603
|
+
{ path: "order.pausePeriods.pauseDate" },
|
|
604
|
+
{ path: "order.pausePeriods.resumeDate" },
|
|
605
|
+
{ path: "order.currentCycle.startedDate" },
|
|
606
|
+
{ path: "order.currentCycle.endedDate" },
|
|
607
|
+
{ path: "order.cycles.startedDate" },
|
|
608
|
+
{ path: "order.cycles.endedDate" }
|
|
609
|
+
]
|
|
610
|
+
}
|
|
611
|
+
])
|
|
687
612
|
};
|
|
688
613
|
return metadata;
|
|
689
614
|
}
|
|
690
|
-
return
|
|
615
|
+
return __createOnlineOrder;
|
|
691
616
|
}
|
|
692
|
-
function
|
|
693
|
-
function
|
|
617
|
+
function createOfflineOrder(payload) {
|
|
618
|
+
function __createOfflineOrder({ host }) {
|
|
619
|
+
const serializedData = transformPaths(payload, [
|
|
620
|
+
{
|
|
621
|
+
transformFn: transformSDKTimestampToRESTTimestamp,
|
|
622
|
+
paths: [{ path: "startDate" }]
|
|
623
|
+
}
|
|
624
|
+
]);
|
|
694
625
|
const metadata = {
|
|
695
626
|
entityFqdn: "wix.pricing_plans.v2.order",
|
|
696
627
|
method: "POST",
|
|
697
|
-
methodFqn: "com.wixpress.membership.v2.orders.
|
|
628
|
+
methodFqn: "com.wixpress.membership.v2.orders.CheckoutService.CreateOfflineOrder",
|
|
698
629
|
packageName: PACKAGE_NAME,
|
|
699
630
|
migrationOptions: {
|
|
700
631
|
optInTransformResponse: true
|
|
701
632
|
},
|
|
702
|
-
url:
|
|
703
|
-
protoPath: "/v2/orders/
|
|
704
|
-
data:
|
|
633
|
+
url: resolveComWixpressMembershipV2OrdersCheckoutServiceUrl({
|
|
634
|
+
protoPath: "/v2/checkout/orders/offline",
|
|
635
|
+
data: serializedData,
|
|
705
636
|
host
|
|
706
637
|
}),
|
|
707
|
-
data:
|
|
638
|
+
data: serializedData,
|
|
639
|
+
transformResponse: (payload2) => transformPaths(payload2, [
|
|
640
|
+
{
|
|
641
|
+
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
642
|
+
paths: [
|
|
643
|
+
{ path: "order.startDate" },
|
|
644
|
+
{ path: "order.endDate" },
|
|
645
|
+
{ path: "order.earliestEndDate" },
|
|
646
|
+
{ path: "order.createdDate" },
|
|
647
|
+
{ path: "order.updatedDate" },
|
|
648
|
+
{ path: "order.cancellation.requestedDate" },
|
|
649
|
+
{ path: "order.pausePeriods.pauseDate" },
|
|
650
|
+
{ path: "order.pausePeriods.resumeDate" },
|
|
651
|
+
{ path: "order.currentCycle.startedDate" },
|
|
652
|
+
{ path: "order.currentCycle.endedDate" },
|
|
653
|
+
{ path: "order.cycles.startedDate" },
|
|
654
|
+
{ path: "order.cycles.endedDate" }
|
|
655
|
+
]
|
|
656
|
+
}
|
|
657
|
+
])
|
|
708
658
|
};
|
|
709
659
|
return metadata;
|
|
710
660
|
}
|
|
711
|
-
return
|
|
661
|
+
return __createOfflineOrder;
|
|
712
662
|
}
|
|
713
|
-
function
|
|
714
|
-
function
|
|
663
|
+
function getOnlineOrderPreview(payload) {
|
|
664
|
+
function __getOnlineOrderPreview({ host }) {
|
|
665
|
+
const serializedData = transformPaths(payload, [
|
|
666
|
+
{
|
|
667
|
+
transformFn: transformSDKTimestampToRESTTimestamp,
|
|
668
|
+
paths: [{ path: "startDate" }]
|
|
669
|
+
}
|
|
670
|
+
]);
|
|
715
671
|
const metadata = {
|
|
716
672
|
entityFqdn: "wix.pricing_plans.v2.order",
|
|
717
673
|
method: "POST",
|
|
718
|
-
methodFqn: "com.wixpress.membership.v2.orders.
|
|
674
|
+
methodFqn: "com.wixpress.membership.v2.orders.CheckoutService.GetOnlineOrderPreview",
|
|
719
675
|
packageName: PACKAGE_NAME,
|
|
720
676
|
migrationOptions: {
|
|
721
677
|
optInTransformResponse: true
|
|
722
678
|
},
|
|
723
|
-
url:
|
|
724
|
-
protoPath: "/v2/orders/
|
|
725
|
-
data:
|
|
679
|
+
url: resolveComWixpressMembershipV2OrdersCheckoutServiceUrl({
|
|
680
|
+
protoPath: "/v2/checkout/orders/preview-online",
|
|
681
|
+
data: serializedData,
|
|
726
682
|
host
|
|
727
683
|
}),
|
|
728
|
-
data:
|
|
684
|
+
data: serializedData,
|
|
685
|
+
transformResponse: (payload2) => transformPaths(payload2, [
|
|
686
|
+
{
|
|
687
|
+
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
688
|
+
paths: [
|
|
689
|
+
{ path: "order.startDate" },
|
|
690
|
+
{ path: "order.endDate" },
|
|
691
|
+
{ path: "order.earliestEndDate" },
|
|
692
|
+
{ path: "order.createdDate" },
|
|
693
|
+
{ path: "order.updatedDate" },
|
|
694
|
+
{ path: "order.cancellation.requestedDate" },
|
|
695
|
+
{ path: "order.pausePeriods.pauseDate" },
|
|
696
|
+
{ path: "order.pausePeriods.resumeDate" },
|
|
697
|
+
{ path: "order.currentCycle.startedDate" },
|
|
698
|
+
{ path: "order.currentCycle.endedDate" },
|
|
699
|
+
{ path: "order.cycles.startedDate" },
|
|
700
|
+
{ path: "order.cycles.endedDate" }
|
|
701
|
+
]
|
|
702
|
+
}
|
|
703
|
+
])
|
|
729
704
|
};
|
|
730
705
|
return metadata;
|
|
731
706
|
}
|
|
732
|
-
return
|
|
707
|
+
return __getOnlineOrderPreview;
|
|
733
708
|
}
|
|
734
|
-
function
|
|
735
|
-
function
|
|
709
|
+
function getOfflineOrderPreview(payload) {
|
|
710
|
+
function __getOfflineOrderPreview({ host }) {
|
|
711
|
+
const serializedData = transformPaths(payload, [
|
|
712
|
+
{
|
|
713
|
+
transformFn: transformSDKTimestampToRESTTimestamp,
|
|
714
|
+
paths: [{ path: "startDate" }]
|
|
715
|
+
}
|
|
716
|
+
]);
|
|
736
717
|
const metadata = {
|
|
737
718
|
entityFqdn: "wix.pricing_plans.v2.order",
|
|
738
719
|
method: "POST",
|
|
739
|
-
methodFqn: "com.wixpress.membership.v2.orders.
|
|
720
|
+
methodFqn: "com.wixpress.membership.v2.orders.CheckoutService.GetOfflineOrderPreview",
|
|
740
721
|
packageName: PACKAGE_NAME,
|
|
741
722
|
migrationOptions: {
|
|
742
723
|
optInTransformResponse: true
|
|
743
724
|
},
|
|
744
|
-
url:
|
|
745
|
-
protoPath: "/v2/orders/
|
|
746
|
-
data:
|
|
725
|
+
url: resolveComWixpressMembershipV2OrdersCheckoutServiceUrl({
|
|
726
|
+
protoPath: "/v2/checkout/orders/preview-offline",
|
|
727
|
+
data: serializedData,
|
|
747
728
|
host
|
|
748
729
|
}),
|
|
749
|
-
data:
|
|
730
|
+
data: serializedData,
|
|
731
|
+
transformResponse: (payload2) => transformPaths(payload2, [
|
|
732
|
+
{
|
|
733
|
+
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
734
|
+
paths: [
|
|
735
|
+
{ path: "order.startDate" },
|
|
736
|
+
{ path: "order.endDate" },
|
|
737
|
+
{ path: "order.earliestEndDate" },
|
|
738
|
+
{ path: "order.createdDate" },
|
|
739
|
+
{ path: "order.updatedDate" },
|
|
740
|
+
{ path: "order.cancellation.requestedDate" },
|
|
741
|
+
{ path: "order.pausePeriods.pauseDate" },
|
|
742
|
+
{ path: "order.pausePeriods.resumeDate" },
|
|
743
|
+
{ path: "order.currentCycle.startedDate" },
|
|
744
|
+
{ path: "order.currentCycle.endedDate" },
|
|
745
|
+
{ path: "order.cycles.startedDate" },
|
|
746
|
+
{ path: "order.cycles.endedDate" }
|
|
747
|
+
]
|
|
748
|
+
}
|
|
749
|
+
])
|
|
750
750
|
};
|
|
751
751
|
return metadata;
|
|
752
752
|
}
|
|
753
|
-
return
|
|
753
|
+
return __getOfflineOrderPreview;
|
|
754
754
|
}
|
|
755
|
-
function
|
|
756
|
-
function
|
|
755
|
+
function getPricePreview(payload) {
|
|
756
|
+
function __getPricePreview({ host }) {
|
|
757
757
|
const metadata = {
|
|
758
758
|
entityFqdn: "wix.pricing_plans.v2.order",
|
|
759
759
|
method: "POST",
|
|
760
|
-
methodFqn: "com.wixpress.membership.v2.orders.
|
|
760
|
+
methodFqn: "com.wixpress.membership.v2.orders.CheckoutService.GetPricePreview",
|
|
761
761
|
packageName: PACKAGE_NAME,
|
|
762
762
|
migrationOptions: {
|
|
763
763
|
optInTransformResponse: true
|
|
764
764
|
},
|
|
765
|
-
url:
|
|
766
|
-
protoPath: "/v2/orders/
|
|
765
|
+
url: resolveComWixpressMembershipV2OrdersCheckoutServiceUrl({
|
|
766
|
+
protoPath: "/v2/checkout/orders/price-preview",
|
|
767
767
|
data: payload,
|
|
768
768
|
host
|
|
769
769
|
}),
|
|
@@ -771,7 +771,7 @@ function resumeOrder(payload) {
|
|
|
771
771
|
};
|
|
772
772
|
return metadata;
|
|
773
773
|
}
|
|
774
|
-
return
|
|
774
|
+
return __getPricePreview;
|
|
775
775
|
}
|
|
776
776
|
|
|
777
777
|
// src/pricing-plans-v2-order-orders.types.ts
|
|
@@ -848,14 +848,6 @@ var SortOrder = /* @__PURE__ */ ((SortOrder2) => {
|
|
|
848
848
|
SortOrder2["DESC"] = "DESC";
|
|
849
849
|
return SortOrder2;
|
|
850
850
|
})(SortOrder || {});
|
|
851
|
-
var WebhookIdentityType = /* @__PURE__ */ ((WebhookIdentityType2) => {
|
|
852
|
-
WebhookIdentityType2["UNKNOWN"] = "UNKNOWN";
|
|
853
|
-
WebhookIdentityType2["ANONYMOUS_VISITOR"] = "ANONYMOUS_VISITOR";
|
|
854
|
-
WebhookIdentityType2["MEMBER"] = "MEMBER";
|
|
855
|
-
WebhookIdentityType2["WIX_USER"] = "WIX_USER";
|
|
856
|
-
WebhookIdentityType2["APP"] = "APP";
|
|
857
|
-
return WebhookIdentityType2;
|
|
858
|
-
})(WebhookIdentityType || {});
|
|
859
851
|
var ReasonNotSuspendable = /* @__PURE__ */ ((ReasonNotSuspendable2) => {
|
|
860
852
|
ReasonNotSuspendable2["UNDEFINED"] = "UNDEFINED";
|
|
861
853
|
ReasonNotSuspendable2["PENDING"] = "PENDING";
|
|
@@ -867,11 +859,19 @@ var ReasonNotSuspendable = /* @__PURE__ */ ((ReasonNotSuspendable2) => {
|
|
|
867
859
|
ReasonNotSuspendable2["OLD_STRIPE"] = "OLD_STRIPE";
|
|
868
860
|
return ReasonNotSuspendable2;
|
|
869
861
|
})(ReasonNotSuspendable || {});
|
|
862
|
+
var WebhookIdentityType = /* @__PURE__ */ ((WebhookIdentityType2) => {
|
|
863
|
+
WebhookIdentityType2["UNKNOWN"] = "UNKNOWN";
|
|
864
|
+
WebhookIdentityType2["ANONYMOUS_VISITOR"] = "ANONYMOUS_VISITOR";
|
|
865
|
+
WebhookIdentityType2["MEMBER"] = "MEMBER";
|
|
866
|
+
WebhookIdentityType2["WIX_USER"] = "WIX_USER";
|
|
867
|
+
WebhookIdentityType2["APP"] = "APP";
|
|
868
|
+
return WebhookIdentityType2;
|
|
869
|
+
})(WebhookIdentityType || {});
|
|
870
870
|
|
|
871
871
|
// src/pricing-plans-v2-order-orders.meta.ts
|
|
872
|
-
function
|
|
872
|
+
function managementGetOrder2() {
|
|
873
873
|
const payload = { id: ":id" };
|
|
874
|
-
const getRequestOptions =
|
|
874
|
+
const getRequestOptions = managementGetOrder(payload);
|
|
875
875
|
const getUrl = (context) => {
|
|
876
876
|
const { url } = getRequestOptions(context);
|
|
877
877
|
return url;
|
|
@@ -879,7 +879,7 @@ function memberGetOrder2() {
|
|
|
879
879
|
return {
|
|
880
880
|
getUrl,
|
|
881
881
|
httpMethod: "GET",
|
|
882
|
-
path: "/v2/
|
|
882
|
+
path: "/v2/orders/{id}",
|
|
883
883
|
pathParams: { id: "id" },
|
|
884
884
|
__requestType: null,
|
|
885
885
|
__originalRequestType: null,
|
|
@@ -887,9 +887,9 @@ function memberGetOrder2() {
|
|
|
887
887
|
__originalResponseType: null
|
|
888
888
|
};
|
|
889
889
|
}
|
|
890
|
-
function
|
|
890
|
+
function managementListOrders2() {
|
|
891
891
|
const payload = {};
|
|
892
|
-
const getRequestOptions =
|
|
892
|
+
const getRequestOptions = managementListOrders(payload);
|
|
893
893
|
const getUrl = (context) => {
|
|
894
894
|
const { url } = getRequestOptions(context);
|
|
895
895
|
return url;
|
|
@@ -897,7 +897,7 @@ function memberListOrders2() {
|
|
|
897
897
|
return {
|
|
898
898
|
getUrl,
|
|
899
899
|
httpMethod: "GET",
|
|
900
|
-
path: "/v2/
|
|
900
|
+
path: "/v2/orders",
|
|
901
901
|
pathParams: {},
|
|
902
902
|
__requestType: null,
|
|
903
903
|
__originalRequestType: null,
|
|
@@ -905,17 +905,17 @@ function memberListOrders2() {
|
|
|
905
905
|
__originalResponseType: null
|
|
906
906
|
};
|
|
907
907
|
}
|
|
908
|
-
function
|
|
908
|
+
function postponeEndDate2() {
|
|
909
909
|
const payload = { id: ":id" };
|
|
910
|
-
const getRequestOptions =
|
|
910
|
+
const getRequestOptions = postponeEndDate(payload);
|
|
911
911
|
const getUrl = (context) => {
|
|
912
912
|
const { url } = getRequestOptions(context);
|
|
913
913
|
return url;
|
|
914
914
|
};
|
|
915
915
|
return {
|
|
916
916
|
getUrl,
|
|
917
|
-
httpMethod: "
|
|
918
|
-
path: "/v2/
|
|
917
|
+
httpMethod: "PATCH",
|
|
918
|
+
path: "/v2/orders/{id}",
|
|
919
919
|
pathParams: { id: "id" },
|
|
920
920
|
__requestType: null,
|
|
921
921
|
__originalRequestType: null,
|
|
@@ -923,9 +923,9 @@ function requestCancellation2() {
|
|
|
923
923
|
__originalResponseType: null
|
|
924
924
|
};
|
|
925
925
|
}
|
|
926
|
-
function
|
|
927
|
-
const payload = {};
|
|
928
|
-
const getRequestOptions =
|
|
926
|
+
function cancelOrder2() {
|
|
927
|
+
const payload = { id: ":id" };
|
|
928
|
+
const getRequestOptions = cancelOrder(payload);
|
|
929
929
|
const getUrl = (context) => {
|
|
930
930
|
const { url } = getRequestOptions(context);
|
|
931
931
|
return url;
|
|
@@ -933,17 +933,17 @@ function createOnlineOrder2() {
|
|
|
933
933
|
return {
|
|
934
934
|
getUrl,
|
|
935
935
|
httpMethod: "POST",
|
|
936
|
-
path: "/v2/
|
|
937
|
-
pathParams: {},
|
|
936
|
+
path: "/v2/orders/{id}/cancel",
|
|
937
|
+
pathParams: { id: "id" },
|
|
938
938
|
__requestType: null,
|
|
939
939
|
__originalRequestType: null,
|
|
940
940
|
__responseType: null,
|
|
941
941
|
__originalResponseType: null
|
|
942
942
|
};
|
|
943
943
|
}
|
|
944
|
-
function
|
|
945
|
-
const payload = {};
|
|
946
|
-
const getRequestOptions =
|
|
944
|
+
function markAsPaid2() {
|
|
945
|
+
const payload = { id: ":id" };
|
|
946
|
+
const getRequestOptions = markAsPaid(payload);
|
|
947
947
|
const getUrl = (context) => {
|
|
948
948
|
const { url } = getRequestOptions(context);
|
|
949
949
|
return url;
|
|
@@ -951,17 +951,17 @@ function createOfflineOrder2() {
|
|
|
951
951
|
return {
|
|
952
952
|
getUrl,
|
|
953
953
|
httpMethod: "POST",
|
|
954
|
-
path: "/v2/
|
|
955
|
-
pathParams: {},
|
|
954
|
+
path: "/v2/orders/{id}/mark-as-paid",
|
|
955
|
+
pathParams: { id: "id" },
|
|
956
956
|
__requestType: null,
|
|
957
957
|
__originalRequestType: null,
|
|
958
958
|
__responseType: null,
|
|
959
959
|
__originalResponseType: null
|
|
960
960
|
};
|
|
961
961
|
}
|
|
962
|
-
function
|
|
963
|
-
const payload = {};
|
|
964
|
-
const getRequestOptions =
|
|
962
|
+
function pauseOrder2() {
|
|
963
|
+
const payload = { id: ":id" };
|
|
964
|
+
const getRequestOptions = pauseOrder(payload);
|
|
965
965
|
const getUrl = (context) => {
|
|
966
966
|
const { url } = getRequestOptions(context);
|
|
967
967
|
return url;
|
|
@@ -969,17 +969,17 @@ function getOnlineOrderPreview2() {
|
|
|
969
969
|
return {
|
|
970
970
|
getUrl,
|
|
971
971
|
httpMethod: "POST",
|
|
972
|
-
path: "/v2/
|
|
973
|
-
pathParams: {},
|
|
972
|
+
path: "/v2/orders/{id}/pause",
|
|
973
|
+
pathParams: { id: "id" },
|
|
974
974
|
__requestType: null,
|
|
975
975
|
__originalRequestType: null,
|
|
976
976
|
__responseType: null,
|
|
977
977
|
__originalResponseType: null
|
|
978
978
|
};
|
|
979
979
|
}
|
|
980
|
-
function
|
|
981
|
-
const payload = {};
|
|
982
|
-
const getRequestOptions =
|
|
980
|
+
function resumeOrder2() {
|
|
981
|
+
const payload = { id: ":id" };
|
|
982
|
+
const getRequestOptions = resumeOrder(payload);
|
|
983
983
|
const getUrl = (context) => {
|
|
984
984
|
const { url } = getRequestOptions(context);
|
|
985
985
|
return url;
|
|
@@ -987,35 +987,35 @@ function getOfflineOrderPreview2() {
|
|
|
987
987
|
return {
|
|
988
988
|
getUrl,
|
|
989
989
|
httpMethod: "POST",
|
|
990
|
-
path: "/v2/
|
|
991
|
-
pathParams: {},
|
|
990
|
+
path: "/v2/orders/{id}/resume",
|
|
991
|
+
pathParams: { id: "id" },
|
|
992
992
|
__requestType: null,
|
|
993
993
|
__originalRequestType: null,
|
|
994
994
|
__responseType: null,
|
|
995
995
|
__originalResponseType: null
|
|
996
996
|
};
|
|
997
997
|
}
|
|
998
|
-
function
|
|
999
|
-
const payload = {};
|
|
1000
|
-
const getRequestOptions =
|
|
998
|
+
function memberGetOrder2() {
|
|
999
|
+
const payload = { id: ":id" };
|
|
1000
|
+
const getRequestOptions = memberGetOrder(payload);
|
|
1001
1001
|
const getUrl = (context) => {
|
|
1002
1002
|
const { url } = getRequestOptions(context);
|
|
1003
1003
|
return url;
|
|
1004
1004
|
};
|
|
1005
1005
|
return {
|
|
1006
1006
|
getUrl,
|
|
1007
|
-
httpMethod: "
|
|
1008
|
-
path: "/v2/
|
|
1009
|
-
pathParams: {},
|
|
1007
|
+
httpMethod: "GET",
|
|
1008
|
+
path: "/v2/member/orders/{id}",
|
|
1009
|
+
pathParams: { id: "id" },
|
|
1010
1010
|
__requestType: null,
|
|
1011
1011
|
__originalRequestType: null,
|
|
1012
1012
|
__responseType: null,
|
|
1013
1013
|
__originalResponseType: null
|
|
1014
1014
|
};
|
|
1015
1015
|
}
|
|
1016
|
-
function
|
|
1017
|
-
const payload = {
|
|
1018
|
-
const getRequestOptions =
|
|
1016
|
+
function memberListOrders2() {
|
|
1017
|
+
const payload = {};
|
|
1018
|
+
const getRequestOptions = memberListOrders(payload);
|
|
1019
1019
|
const getUrl = (context) => {
|
|
1020
1020
|
const { url } = getRequestOptions(context);
|
|
1021
1021
|
return url;
|
|
@@ -1023,53 +1023,53 @@ function managementGetOrder2() {
|
|
|
1023
1023
|
return {
|
|
1024
1024
|
getUrl,
|
|
1025
1025
|
httpMethod: "GET",
|
|
1026
|
-
path: "/v2/orders
|
|
1027
|
-
pathParams: {
|
|
1026
|
+
path: "/v2/member/orders",
|
|
1027
|
+
pathParams: {},
|
|
1028
1028
|
__requestType: null,
|
|
1029
1029
|
__originalRequestType: null,
|
|
1030
1030
|
__responseType: null,
|
|
1031
1031
|
__originalResponseType: null
|
|
1032
1032
|
};
|
|
1033
1033
|
}
|
|
1034
|
-
function
|
|
1035
|
-
const payload = {};
|
|
1036
|
-
const getRequestOptions =
|
|
1034
|
+
function requestCancellation2() {
|
|
1035
|
+
const payload = { id: ":id" };
|
|
1036
|
+
const getRequestOptions = requestCancellation(payload);
|
|
1037
1037
|
const getUrl = (context) => {
|
|
1038
1038
|
const { url } = getRequestOptions(context);
|
|
1039
1039
|
return url;
|
|
1040
1040
|
};
|
|
1041
1041
|
return {
|
|
1042
1042
|
getUrl,
|
|
1043
|
-
httpMethod: "
|
|
1044
|
-
path: "/v2/orders",
|
|
1045
|
-
pathParams: {},
|
|
1043
|
+
httpMethod: "POST",
|
|
1044
|
+
path: "/v2/member/orders/{id}/cancel",
|
|
1045
|
+
pathParams: { id: "id" },
|
|
1046
1046
|
__requestType: null,
|
|
1047
1047
|
__originalRequestType: null,
|
|
1048
1048
|
__responseType: null,
|
|
1049
1049
|
__originalResponseType: null
|
|
1050
1050
|
};
|
|
1051
1051
|
}
|
|
1052
|
-
function
|
|
1053
|
-
const payload = {
|
|
1054
|
-
const getRequestOptions =
|
|
1052
|
+
function createOnlineOrder2() {
|
|
1053
|
+
const payload = {};
|
|
1054
|
+
const getRequestOptions = createOnlineOrder(payload);
|
|
1055
1055
|
const getUrl = (context) => {
|
|
1056
1056
|
const { url } = getRequestOptions(context);
|
|
1057
1057
|
return url;
|
|
1058
1058
|
};
|
|
1059
1059
|
return {
|
|
1060
1060
|
getUrl,
|
|
1061
|
-
httpMethod: "
|
|
1062
|
-
path: "/v2/orders/
|
|
1063
|
-
pathParams: {
|
|
1061
|
+
httpMethod: "POST",
|
|
1062
|
+
path: "/v2/checkout/orders/online",
|
|
1063
|
+
pathParams: {},
|
|
1064
1064
|
__requestType: null,
|
|
1065
1065
|
__originalRequestType: null,
|
|
1066
1066
|
__responseType: null,
|
|
1067
1067
|
__originalResponseType: null
|
|
1068
1068
|
};
|
|
1069
1069
|
}
|
|
1070
|
-
function
|
|
1071
|
-
const payload = {
|
|
1072
|
-
const getRequestOptions =
|
|
1070
|
+
function createOfflineOrder2() {
|
|
1071
|
+
const payload = {};
|
|
1072
|
+
const getRequestOptions = createOfflineOrder(payload);
|
|
1073
1073
|
const getUrl = (context) => {
|
|
1074
1074
|
const { url } = getRequestOptions(context);
|
|
1075
1075
|
return url;
|
|
@@ -1077,17 +1077,17 @@ function cancelOrder2() {
|
|
|
1077
1077
|
return {
|
|
1078
1078
|
getUrl,
|
|
1079
1079
|
httpMethod: "POST",
|
|
1080
|
-
path: "/v2/orders/
|
|
1081
|
-
pathParams: {
|
|
1080
|
+
path: "/v2/checkout/orders/offline",
|
|
1081
|
+
pathParams: {},
|
|
1082
1082
|
__requestType: null,
|
|
1083
1083
|
__originalRequestType: null,
|
|
1084
1084
|
__responseType: null,
|
|
1085
1085
|
__originalResponseType: null
|
|
1086
1086
|
};
|
|
1087
1087
|
}
|
|
1088
|
-
function
|
|
1089
|
-
const payload = {
|
|
1090
|
-
const getRequestOptions =
|
|
1088
|
+
function getOnlineOrderPreview2() {
|
|
1089
|
+
const payload = {};
|
|
1090
|
+
const getRequestOptions = getOnlineOrderPreview(payload);
|
|
1091
1091
|
const getUrl = (context) => {
|
|
1092
1092
|
const { url } = getRequestOptions(context);
|
|
1093
1093
|
return url;
|
|
@@ -1095,17 +1095,17 @@ function markAsPaid2() {
|
|
|
1095
1095
|
return {
|
|
1096
1096
|
getUrl,
|
|
1097
1097
|
httpMethod: "POST",
|
|
1098
|
-
path: "/v2/orders/
|
|
1099
|
-
pathParams: {
|
|
1098
|
+
path: "/v2/checkout/orders/preview-online",
|
|
1099
|
+
pathParams: {},
|
|
1100
1100
|
__requestType: null,
|
|
1101
1101
|
__originalRequestType: null,
|
|
1102
1102
|
__responseType: null,
|
|
1103
1103
|
__originalResponseType: null
|
|
1104
1104
|
};
|
|
1105
1105
|
}
|
|
1106
|
-
function
|
|
1107
|
-
const payload = {
|
|
1108
|
-
const getRequestOptions =
|
|
1106
|
+
function getOfflineOrderPreview2() {
|
|
1107
|
+
const payload = {};
|
|
1108
|
+
const getRequestOptions = getOfflineOrderPreview(payload);
|
|
1109
1109
|
const getUrl = (context) => {
|
|
1110
1110
|
const { url } = getRequestOptions(context);
|
|
1111
1111
|
return url;
|
|
@@ -1113,17 +1113,17 @@ function pauseOrder2() {
|
|
|
1113
1113
|
return {
|
|
1114
1114
|
getUrl,
|
|
1115
1115
|
httpMethod: "POST",
|
|
1116
|
-
path: "/v2/orders/
|
|
1117
|
-
pathParams: {
|
|
1116
|
+
path: "/v2/checkout/orders/preview-offline",
|
|
1117
|
+
pathParams: {},
|
|
1118
1118
|
__requestType: null,
|
|
1119
1119
|
__originalRequestType: null,
|
|
1120
1120
|
__responseType: null,
|
|
1121
1121
|
__originalResponseType: null
|
|
1122
1122
|
};
|
|
1123
1123
|
}
|
|
1124
|
-
function
|
|
1125
|
-
const payload = {
|
|
1126
|
-
const getRequestOptions =
|
|
1124
|
+
function getPricePreview2() {
|
|
1125
|
+
const payload = {};
|
|
1126
|
+
const getRequestOptions = getPricePreview(payload);
|
|
1127
1127
|
const getUrl = (context) => {
|
|
1128
1128
|
const { url } = getRequestOptions(context);
|
|
1129
1129
|
return url;
|
|
@@ -1131,8 +1131,8 @@ function resumeOrder2() {
|
|
|
1131
1131
|
return {
|
|
1132
1132
|
getUrl,
|
|
1133
1133
|
httpMethod: "POST",
|
|
1134
|
-
path: "/v2/orders/
|
|
1135
|
-
pathParams: {
|
|
1134
|
+
path: "/v2/checkout/orders/price-preview",
|
|
1135
|
+
pathParams: {},
|
|
1136
1136
|
__requestType: null,
|
|
1137
1137
|
__originalRequestType: null,
|
|
1138
1138
|
__responseType: null,
|