@wix/auto_sdk_pricing-plans_orders 1.0.95 → 1.0.97
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 +711 -711
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +803 -799
- package/build/cjs/index.typings.js +577 -577
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.d.ts +461 -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 +711 -711
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +803 -799
- package/build/es/index.typings.mjs +577 -577
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.d.mts +461 -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 +711 -711
- package/build/internal/cjs/index.js.map +1 -1
- package/build/internal/cjs/index.typings.d.ts +803 -799
- package/build/internal/cjs/index.typings.js +577 -577
- package/build/internal/cjs/index.typings.js.map +1 -1
- package/build/internal/cjs/meta.d.ts +461 -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 +711 -711
- package/build/internal/es/index.mjs.map +1 -1
- package/build/internal/es/index.typings.d.mts +803 -799
- package/build/internal/es/index.typings.mjs +577 -577
- package/build/internal/es/index.typings.mjs.map +1 -1
- package/build/internal/es/meta.d.mts +461 -459
- package/build/internal/es/meta.mjs +403 -403
- package/build/internal/es/meta.mjs.map +1 -1
- package/package.json +2 -2
|
@@ -4,6 +4,105 @@ 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
|
+
}
|
|
7
106
|
function resolveComWixpressMembershipV2OrdersCheckoutServiceUrl(opts) {
|
|
8
107
|
const domainToMappings = {
|
|
9
108
|
"api._api_base_domain_": [
|
|
@@ -176,118 +275,19 @@ function resolveComWixpressMembershipV2OrdersMemberMemberOrdersServiceUrl(opts)
|
|
|
176
275
|
};
|
|
177
276
|
return resolveUrl(Object.assign(opts, { domainToMappings }));
|
|
178
277
|
}
|
|
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 memberGetOrder(payload) {
|
|
280
|
+
function __memberGetOrder({ 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.member.MemberOrdersService.GetOrder",
|
|
285
285
|
packageName: PACKAGE_NAME,
|
|
286
286
|
migrationOptions: {
|
|
287
287
|
optInTransformResponse: true
|
|
288
288
|
},
|
|
289
|
-
url:
|
|
290
|
-
protoPath: "/v2/orders/{id}",
|
|
289
|
+
url: resolveComWixpressMembershipV2OrdersMemberMemberOrdersServiceUrl({
|
|
290
|
+
protoPath: "/v2/member/orders/{id}",
|
|
291
291
|
data: payload,
|
|
292
292
|
host
|
|
293
293
|
}),
|
|
@@ -314,20 +314,20 @@ function managementGetOrder(payload) {
|
|
|
314
314
|
};
|
|
315
315
|
return metadata;
|
|
316
316
|
}
|
|
317
|
-
return
|
|
317
|
+
return __memberGetOrder;
|
|
318
318
|
}
|
|
319
|
-
function
|
|
320
|
-
function
|
|
319
|
+
function memberListOrders(payload) {
|
|
320
|
+
function __memberListOrders({ 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.member.MemberOrdersService.ListOrders",
|
|
325
325
|
packageName: PACKAGE_NAME,
|
|
326
326
|
migrationOptions: {
|
|
327
327
|
optInTransformResponse: true
|
|
328
328
|
},
|
|
329
|
-
url:
|
|
330
|
-
protoPath: "/v2/orders",
|
|
329
|
+
url: resolveComWixpressMembershipV2OrdersMemberMemberOrdersServiceUrl({
|
|
330
|
+
protoPath: "/v2/member/orders",
|
|
331
331
|
data: payload,
|
|
332
332
|
host
|
|
333
333
|
}),
|
|
@@ -354,110 +354,225 @@ function managementListOrders(payload) {
|
|
|
354
354
|
};
|
|
355
355
|
return metadata;
|
|
356
356
|
}
|
|
357
|
-
return
|
|
357
|
+
return __memberListOrders;
|
|
358
358
|
}
|
|
359
|
-
function
|
|
360
|
-
function
|
|
361
|
-
const serializedData = transformPaths(payload, [
|
|
362
|
-
{
|
|
363
|
-
transformFn: transformSDKTimestampToRESTTimestamp,
|
|
364
|
-
paths: [{ path: "endDate" }]
|
|
365
|
-
}
|
|
366
|
-
]);
|
|
359
|
+
function requestCancellation(payload) {
|
|
360
|
+
function __requestCancellation({ host }) {
|
|
367
361
|
const metadata = {
|
|
368
362
|
entityFqdn: "wix.pricing_plans.v2.order",
|
|
369
|
-
method: "
|
|
370
|
-
methodFqn: "com.wixpress.membership.v2.orders.
|
|
363
|
+
method: "POST",
|
|
364
|
+
methodFqn: "com.wixpress.membership.v2.orders.member.MemberOrdersService.RequestCancellation",
|
|
371
365
|
packageName: PACKAGE_NAME,
|
|
372
366
|
migrationOptions: {
|
|
373
367
|
optInTransformResponse: true
|
|
374
368
|
},
|
|
375
|
-
url:
|
|
376
|
-
protoPath: "/v2/orders/{id}",
|
|
377
|
-
data:
|
|
369
|
+
url: resolveComWixpressMembershipV2OrdersMemberMemberOrdersServiceUrl({
|
|
370
|
+
protoPath: "/v2/member/orders/{id}/cancel",
|
|
371
|
+
data: payload,
|
|
378
372
|
host
|
|
379
373
|
}),
|
|
380
|
-
data:
|
|
374
|
+
data: payload
|
|
381
375
|
};
|
|
382
376
|
return metadata;
|
|
383
377
|
}
|
|
384
|
-
return
|
|
378
|
+
return __requestCancellation;
|
|
385
379
|
}
|
|
386
|
-
function
|
|
387
|
-
function
|
|
380
|
+
function createOnlineOrder(payload) {
|
|
381
|
+
function __createOnlineOrder({ host }) {
|
|
382
|
+
const serializedData = transformPaths(payload, [
|
|
383
|
+
{
|
|
384
|
+
transformFn: transformSDKTimestampToRESTTimestamp,
|
|
385
|
+
paths: [{ path: "startDate" }]
|
|
386
|
+
}
|
|
387
|
+
]);
|
|
388
388
|
const metadata = {
|
|
389
389
|
entityFqdn: "wix.pricing_plans.v2.order",
|
|
390
390
|
method: "POST",
|
|
391
|
-
methodFqn: "com.wixpress.membership.v2.orders.
|
|
391
|
+
methodFqn: "com.wixpress.membership.v2.orders.CheckoutService.CreateOnlineOrder",
|
|
392
392
|
packageName: PACKAGE_NAME,
|
|
393
393
|
migrationOptions: {
|
|
394
394
|
optInTransformResponse: true
|
|
395
395
|
},
|
|
396
|
-
url:
|
|
397
|
-
protoPath: "/v2/orders/
|
|
398
|
-
data:
|
|
396
|
+
url: resolveComWixpressMembershipV2OrdersCheckoutServiceUrl({
|
|
397
|
+
protoPath: "/v2/checkout/orders/online",
|
|
398
|
+
data: serializedData,
|
|
399
399
|
host
|
|
400
400
|
}),
|
|
401
|
-
data:
|
|
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
|
+
])
|
|
402
421
|
};
|
|
403
422
|
return metadata;
|
|
404
423
|
}
|
|
405
|
-
return
|
|
424
|
+
return __createOnlineOrder;
|
|
406
425
|
}
|
|
407
|
-
function
|
|
408
|
-
function
|
|
426
|
+
function createOfflineOrder(payload) {
|
|
427
|
+
function __createOfflineOrder({ host }) {
|
|
428
|
+
const serializedData = transformPaths(payload, [
|
|
429
|
+
{
|
|
430
|
+
transformFn: transformSDKTimestampToRESTTimestamp,
|
|
431
|
+
paths: [{ path: "startDate" }]
|
|
432
|
+
}
|
|
433
|
+
]);
|
|
409
434
|
const metadata = {
|
|
410
435
|
entityFqdn: "wix.pricing_plans.v2.order",
|
|
411
436
|
method: "POST",
|
|
412
|
-
methodFqn: "com.wixpress.membership.v2.orders.
|
|
437
|
+
methodFqn: "com.wixpress.membership.v2.orders.CheckoutService.CreateOfflineOrder",
|
|
413
438
|
packageName: PACKAGE_NAME,
|
|
414
439
|
migrationOptions: {
|
|
415
440
|
optInTransformResponse: true
|
|
416
441
|
},
|
|
417
|
-
url:
|
|
418
|
-
protoPath: "/v2/orders/
|
|
419
|
-
data:
|
|
442
|
+
url: resolveComWixpressMembershipV2OrdersCheckoutServiceUrl({
|
|
443
|
+
protoPath: "/v2/checkout/orders/offline",
|
|
444
|
+
data: serializedData,
|
|
420
445
|
host
|
|
421
446
|
}),
|
|
422
|
-
data:
|
|
447
|
+
data: serializedData,
|
|
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
|
+
])
|
|
423
467
|
};
|
|
424
468
|
return metadata;
|
|
425
469
|
}
|
|
426
|
-
return
|
|
470
|
+
return __createOfflineOrder;
|
|
427
471
|
}
|
|
428
|
-
function
|
|
429
|
-
function
|
|
472
|
+
function getOnlineOrderPreview(payload) {
|
|
473
|
+
function __getOnlineOrderPreview({ host }) {
|
|
474
|
+
const serializedData = transformPaths(payload, [
|
|
475
|
+
{
|
|
476
|
+
transformFn: transformSDKTimestampToRESTTimestamp,
|
|
477
|
+
paths: [{ path: "startDate" }]
|
|
478
|
+
}
|
|
479
|
+
]);
|
|
430
480
|
const metadata = {
|
|
431
481
|
entityFqdn: "wix.pricing_plans.v2.order",
|
|
432
482
|
method: "POST",
|
|
433
|
-
methodFqn: "com.wixpress.membership.v2.orders.
|
|
483
|
+
methodFqn: "com.wixpress.membership.v2.orders.CheckoutService.GetOnlineOrderPreview",
|
|
434
484
|
packageName: PACKAGE_NAME,
|
|
435
485
|
migrationOptions: {
|
|
436
486
|
optInTransformResponse: true
|
|
437
487
|
},
|
|
438
|
-
url:
|
|
439
|
-
protoPath: "/v2/orders/
|
|
440
|
-
data:
|
|
488
|
+
url: resolveComWixpressMembershipV2OrdersCheckoutServiceUrl({
|
|
489
|
+
protoPath: "/v2/checkout/orders/preview-online",
|
|
490
|
+
data: serializedData,
|
|
441
491
|
host
|
|
442
492
|
}),
|
|
443
|
-
data:
|
|
493
|
+
data: serializedData,
|
|
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
|
+
])
|
|
444
513
|
};
|
|
445
514
|
return metadata;
|
|
446
515
|
}
|
|
447
|
-
return
|
|
516
|
+
return __getOnlineOrderPreview;
|
|
448
517
|
}
|
|
449
|
-
function
|
|
450
|
-
function
|
|
518
|
+
function getOfflineOrderPreview(payload) {
|
|
519
|
+
function __getOfflineOrderPreview({ host }) {
|
|
520
|
+
const serializedData = transformPaths(payload, [
|
|
521
|
+
{
|
|
522
|
+
transformFn: transformSDKTimestampToRESTTimestamp,
|
|
523
|
+
paths: [{ path: "startDate" }]
|
|
524
|
+
}
|
|
525
|
+
]);
|
|
451
526
|
const metadata = {
|
|
452
527
|
entityFqdn: "wix.pricing_plans.v2.order",
|
|
453
528
|
method: "POST",
|
|
454
|
-
methodFqn: "com.wixpress.membership.v2.orders.
|
|
529
|
+
methodFqn: "com.wixpress.membership.v2.orders.CheckoutService.GetOfflineOrderPreview",
|
|
455
530
|
packageName: PACKAGE_NAME,
|
|
456
531
|
migrationOptions: {
|
|
457
532
|
optInTransformResponse: true
|
|
458
533
|
},
|
|
459
|
-
url:
|
|
460
|
-
protoPath: "/v2/orders/
|
|
534
|
+
url: resolveComWixpressMembershipV2OrdersCheckoutServiceUrl({
|
|
535
|
+
protoPath: "/v2/checkout/orders/preview-offline",
|
|
536
|
+
data: serializedData,
|
|
537
|
+
host
|
|
538
|
+
}),
|
|
539
|
+
data: serializedData,
|
|
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
|
+
])
|
|
559
|
+
};
|
|
560
|
+
return metadata;
|
|
561
|
+
}
|
|
562
|
+
return __getOfflineOrderPreview;
|
|
563
|
+
}
|
|
564
|
+
function getPricePreview(payload) {
|
|
565
|
+
function __getPricePreview({ host }) {
|
|
566
|
+
const metadata = {
|
|
567
|
+
entityFqdn: "wix.pricing_plans.v2.order",
|
|
568
|
+
method: "POST",
|
|
569
|
+
methodFqn: "com.wixpress.membership.v2.orders.CheckoutService.GetPricePreview",
|
|
570
|
+
packageName: PACKAGE_NAME,
|
|
571
|
+
migrationOptions: {
|
|
572
|
+
optInTransformResponse: true
|
|
573
|
+
},
|
|
574
|
+
url: resolveComWixpressMembershipV2OrdersCheckoutServiceUrl({
|
|
575
|
+
protoPath: "/v2/checkout/orders/price-preview",
|
|
461
576
|
data: payload,
|
|
462
577
|
host
|
|
463
578
|
}),
|
|
@@ -465,20 +580,20 @@ function resumeOrder(payload) {
|
|
|
465
580
|
};
|
|
466
581
|
return metadata;
|
|
467
582
|
}
|
|
468
|
-
return
|
|
583
|
+
return __getPricePreview;
|
|
469
584
|
}
|
|
470
|
-
function
|
|
471
|
-
function
|
|
585
|
+
function managementGetOrder(payload) {
|
|
586
|
+
function __managementGetOrder({ host }) {
|
|
472
587
|
const metadata = {
|
|
473
588
|
entityFqdn: "wix.pricing_plans.v2.order",
|
|
474
589
|
method: "GET",
|
|
475
|
-
methodFqn: "com.wixpress.membership.v2.orders.
|
|
590
|
+
methodFqn: "com.wixpress.membership.v2.orders.OrderManagementService.GetOrder",
|
|
476
591
|
packageName: PACKAGE_NAME,
|
|
477
592
|
migrationOptions: {
|
|
478
593
|
optInTransformResponse: true
|
|
479
594
|
},
|
|
480
|
-
url:
|
|
481
|
-
protoPath: "/v2/
|
|
595
|
+
url: resolveComWixpressMembershipV2OrdersOrderManagementServiceUrl({
|
|
596
|
+
protoPath: "/v2/orders/{id}",
|
|
482
597
|
data: payload,
|
|
483
598
|
host
|
|
484
599
|
}),
|
|
@@ -505,20 +620,20 @@ function memberGetOrder(payload) {
|
|
|
505
620
|
};
|
|
506
621
|
return metadata;
|
|
507
622
|
}
|
|
508
|
-
return
|
|
623
|
+
return __managementGetOrder;
|
|
509
624
|
}
|
|
510
|
-
function
|
|
511
|
-
function
|
|
625
|
+
function managementListOrders(payload) {
|
|
626
|
+
function __managementListOrders({ host }) {
|
|
512
627
|
const metadata = {
|
|
513
628
|
entityFqdn: "wix.pricing_plans.v2.order",
|
|
514
629
|
method: "GET",
|
|
515
|
-
methodFqn: "com.wixpress.membership.v2.orders.
|
|
630
|
+
methodFqn: "com.wixpress.membership.v2.orders.OrderManagementService.ListOrders",
|
|
516
631
|
packageName: PACKAGE_NAME,
|
|
517
632
|
migrationOptions: {
|
|
518
633
|
optInTransformResponse: true
|
|
519
634
|
},
|
|
520
|
-
url:
|
|
521
|
-
protoPath: "/v2/
|
|
635
|
+
url: resolveComWixpressMembershipV2OrdersOrderManagementServiceUrl({
|
|
636
|
+
protoPath: "/v2/orders",
|
|
522
637
|
data: payload,
|
|
523
638
|
host
|
|
524
639
|
}),
|
|
@@ -545,225 +660,110 @@ function memberListOrders(payload) {
|
|
|
545
660
|
};
|
|
546
661
|
return metadata;
|
|
547
662
|
}
|
|
548
|
-
return
|
|
549
|
-
}
|
|
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;
|
|
663
|
+
return __managementListOrders;
|
|
570
664
|
}
|
|
571
|
-
function
|
|
572
|
-
function
|
|
665
|
+
function postponeEndDate(payload) {
|
|
666
|
+
function __postponeEndDate({ host }) {
|
|
573
667
|
const serializedData = transformPaths(payload, [
|
|
574
668
|
{
|
|
575
669
|
transformFn: transformSDKTimestampToRESTTimestamp,
|
|
576
|
-
paths: [{ path: "
|
|
670
|
+
paths: [{ path: "endDate" }]
|
|
577
671
|
}
|
|
578
672
|
]);
|
|
579
673
|
const metadata = {
|
|
580
674
|
entityFqdn: "wix.pricing_plans.v2.order",
|
|
581
|
-
method: "
|
|
582
|
-
methodFqn: "com.wixpress.membership.v2.orders.
|
|
675
|
+
method: "PATCH",
|
|
676
|
+
methodFqn: "com.wixpress.membership.v2.orders.OrderManagementService.PostponeEndDate",
|
|
583
677
|
packageName: PACKAGE_NAME,
|
|
584
678
|
migrationOptions: {
|
|
585
679
|
optInTransformResponse: true
|
|
586
680
|
},
|
|
587
|
-
url:
|
|
588
|
-
protoPath: "/v2/
|
|
681
|
+
url: resolveComWixpressMembershipV2OrdersOrderManagementServiceUrl({
|
|
682
|
+
protoPath: "/v2/orders/{id}",
|
|
589
683
|
data: serializedData,
|
|
590
684
|
host
|
|
591
685
|
}),
|
|
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
|
-
])
|
|
686
|
+
data: serializedData
|
|
612
687
|
};
|
|
613
688
|
return metadata;
|
|
614
689
|
}
|
|
615
|
-
return
|
|
690
|
+
return __postponeEndDate;
|
|
616
691
|
}
|
|
617
|
-
function
|
|
618
|
-
function
|
|
619
|
-
const serializedData = transformPaths(payload, [
|
|
620
|
-
{
|
|
621
|
-
transformFn: transformSDKTimestampToRESTTimestamp,
|
|
622
|
-
paths: [{ path: "startDate" }]
|
|
623
|
-
}
|
|
624
|
-
]);
|
|
692
|
+
function cancelOrder(payload) {
|
|
693
|
+
function __cancelOrder({ host }) {
|
|
625
694
|
const metadata = {
|
|
626
695
|
entityFqdn: "wix.pricing_plans.v2.order",
|
|
627
696
|
method: "POST",
|
|
628
|
-
methodFqn: "com.wixpress.membership.v2.orders.
|
|
697
|
+
methodFqn: "com.wixpress.membership.v2.orders.OrderManagementService.CancelOrder",
|
|
629
698
|
packageName: PACKAGE_NAME,
|
|
630
699
|
migrationOptions: {
|
|
631
700
|
optInTransformResponse: true
|
|
632
701
|
},
|
|
633
|
-
url:
|
|
634
|
-
protoPath: "/v2/
|
|
635
|
-
data:
|
|
702
|
+
url: resolveComWixpressMembershipV2OrdersOrderManagementServiceUrl({
|
|
703
|
+
protoPath: "/v2/orders/{id}/cancel",
|
|
704
|
+
data: payload,
|
|
636
705
|
host
|
|
637
706
|
}),
|
|
638
|
-
data:
|
|
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
|
-
])
|
|
707
|
+
data: payload
|
|
658
708
|
};
|
|
659
709
|
return metadata;
|
|
660
710
|
}
|
|
661
|
-
return
|
|
711
|
+
return __cancelOrder;
|
|
662
712
|
}
|
|
663
|
-
function
|
|
664
|
-
function
|
|
665
|
-
const serializedData = transformPaths(payload, [
|
|
666
|
-
{
|
|
667
|
-
transformFn: transformSDKTimestampToRESTTimestamp,
|
|
668
|
-
paths: [{ path: "startDate" }]
|
|
669
|
-
}
|
|
670
|
-
]);
|
|
713
|
+
function markAsPaid(payload) {
|
|
714
|
+
function __markAsPaid({ host }) {
|
|
671
715
|
const metadata = {
|
|
672
716
|
entityFqdn: "wix.pricing_plans.v2.order",
|
|
673
717
|
method: "POST",
|
|
674
|
-
methodFqn: "com.wixpress.membership.v2.orders.
|
|
718
|
+
methodFqn: "com.wixpress.membership.v2.orders.OrderManagementService.MarkAsPaid",
|
|
675
719
|
packageName: PACKAGE_NAME,
|
|
676
720
|
migrationOptions: {
|
|
677
721
|
optInTransformResponse: true
|
|
678
722
|
},
|
|
679
|
-
url:
|
|
680
|
-
protoPath: "/v2/
|
|
681
|
-
data:
|
|
723
|
+
url: resolveComWixpressMembershipV2OrdersOrderManagementServiceUrl({
|
|
724
|
+
protoPath: "/v2/orders/{id}/mark-as-paid",
|
|
725
|
+
data: payload,
|
|
682
726
|
host
|
|
683
727
|
}),
|
|
684
|
-
data:
|
|
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
|
-
])
|
|
728
|
+
data: payload
|
|
704
729
|
};
|
|
705
730
|
return metadata;
|
|
706
731
|
}
|
|
707
|
-
return
|
|
732
|
+
return __markAsPaid;
|
|
708
733
|
}
|
|
709
|
-
function
|
|
710
|
-
function
|
|
711
|
-
const serializedData = transformPaths(payload, [
|
|
712
|
-
{
|
|
713
|
-
transformFn: transformSDKTimestampToRESTTimestamp,
|
|
714
|
-
paths: [{ path: "startDate" }]
|
|
715
|
-
}
|
|
716
|
-
]);
|
|
734
|
+
function pauseOrder(payload) {
|
|
735
|
+
function __pauseOrder({ host }) {
|
|
717
736
|
const metadata = {
|
|
718
737
|
entityFqdn: "wix.pricing_plans.v2.order",
|
|
719
738
|
method: "POST",
|
|
720
|
-
methodFqn: "com.wixpress.membership.v2.orders.
|
|
739
|
+
methodFqn: "com.wixpress.membership.v2.orders.OrderManagementService.PauseOrder",
|
|
721
740
|
packageName: PACKAGE_NAME,
|
|
722
741
|
migrationOptions: {
|
|
723
742
|
optInTransformResponse: true
|
|
724
743
|
},
|
|
725
|
-
url:
|
|
726
|
-
protoPath: "/v2/
|
|
727
|
-
data:
|
|
744
|
+
url: resolveComWixpressMembershipV2OrdersOrderManagementServiceUrl({
|
|
745
|
+
protoPath: "/v2/orders/{id}/pause",
|
|
746
|
+
data: payload,
|
|
728
747
|
host
|
|
729
748
|
}),
|
|
730
|
-
data:
|
|
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
|
-
])
|
|
749
|
+
data: payload
|
|
750
750
|
};
|
|
751
751
|
return metadata;
|
|
752
752
|
}
|
|
753
|
-
return
|
|
753
|
+
return __pauseOrder;
|
|
754
754
|
}
|
|
755
|
-
function
|
|
756
|
-
function
|
|
755
|
+
function resumeOrder(payload) {
|
|
756
|
+
function __resumeOrder({ 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.OrderManagementService.ResumeOrder",
|
|
761
761
|
packageName: PACKAGE_NAME,
|
|
762
762
|
migrationOptions: {
|
|
763
763
|
optInTransformResponse: true
|
|
764
764
|
},
|
|
765
|
-
url:
|
|
766
|
-
protoPath: "/v2/
|
|
765
|
+
url: resolveComWixpressMembershipV2OrdersOrderManagementServiceUrl({
|
|
766
|
+
protoPath: "/v2/orders/{id}/resume",
|
|
767
767
|
data: payload,
|
|
768
768
|
host
|
|
769
769
|
}),
|
|
@@ -771,7 +771,7 @@ function getPricePreview(payload) {
|
|
|
771
771
|
};
|
|
772
772
|
return metadata;
|
|
773
773
|
}
|
|
774
|
-
return
|
|
774
|
+
return __resumeOrder;
|
|
775
775
|
}
|
|
776
776
|
|
|
777
777
|
// src/pricing-plans-v2-order-orders.types.ts
|
|
@@ -848,6 +848,14 @@ 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 || {});
|
|
851
859
|
var ReasonNotSuspendable = /* @__PURE__ */ ((ReasonNotSuspendable2) => {
|
|
852
860
|
ReasonNotSuspendable2["UNDEFINED"] = "UNDEFINED";
|
|
853
861
|
ReasonNotSuspendable2["PENDING"] = "PENDING";
|
|
@@ -859,19 +867,11 @@ var ReasonNotSuspendable = /* @__PURE__ */ ((ReasonNotSuspendable2) => {
|
|
|
859
867
|
ReasonNotSuspendable2["OLD_STRIPE"] = "OLD_STRIPE";
|
|
860
868
|
return ReasonNotSuspendable2;
|
|
861
869
|
})(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 memberGetOrder2() {
|
|
873
873
|
const payload = { id: ":id" };
|
|
874
|
-
const getRequestOptions =
|
|
874
|
+
const getRequestOptions = memberGetOrder(payload);
|
|
875
875
|
const getUrl = (context) => {
|
|
876
876
|
const { url } = getRequestOptions(context);
|
|
877
877
|
return url;
|
|
@@ -879,7 +879,7 @@ function managementGetOrder2() {
|
|
|
879
879
|
return {
|
|
880
880
|
getUrl,
|
|
881
881
|
httpMethod: "GET",
|
|
882
|
-
path: "/v2/orders/{id}",
|
|
882
|
+
path: "/v2/member/orders/{id}",
|
|
883
883
|
pathParams: { id: "id" },
|
|
884
884
|
__requestType: null,
|
|
885
885
|
__originalRequestType: null,
|
|
@@ -887,9 +887,9 @@ function managementGetOrder2() {
|
|
|
887
887
|
__originalResponseType: null
|
|
888
888
|
};
|
|
889
889
|
}
|
|
890
|
-
function
|
|
890
|
+
function memberListOrders2() {
|
|
891
891
|
const payload = {};
|
|
892
|
-
const getRequestOptions =
|
|
892
|
+
const getRequestOptions = memberListOrders(payload);
|
|
893
893
|
const getUrl = (context) => {
|
|
894
894
|
const { url } = getRequestOptions(context);
|
|
895
895
|
return url;
|
|
@@ -897,7 +897,7 @@ function managementListOrders2() {
|
|
|
897
897
|
return {
|
|
898
898
|
getUrl,
|
|
899
899
|
httpMethod: "GET",
|
|
900
|
-
path: "/v2/orders",
|
|
900
|
+
path: "/v2/member/orders",
|
|
901
901
|
pathParams: {},
|
|
902
902
|
__requestType: null,
|
|
903
903
|
__originalRequestType: null,
|
|
@@ -905,17 +905,17 @@ function managementListOrders2() {
|
|
|
905
905
|
__originalResponseType: null
|
|
906
906
|
};
|
|
907
907
|
}
|
|
908
|
-
function
|
|
908
|
+
function requestCancellation2() {
|
|
909
909
|
const payload = { id: ":id" };
|
|
910
|
-
const getRequestOptions =
|
|
910
|
+
const getRequestOptions = requestCancellation(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/orders/{id}",
|
|
917
|
+
httpMethod: "POST",
|
|
918
|
+
path: "/v2/member/orders/{id}/cancel",
|
|
919
919
|
pathParams: { id: "id" },
|
|
920
920
|
__requestType: null,
|
|
921
921
|
__originalRequestType: null,
|
|
@@ -923,9 +923,9 @@ function postponeEndDate2() {
|
|
|
923
923
|
__originalResponseType: null
|
|
924
924
|
};
|
|
925
925
|
}
|
|
926
|
-
function
|
|
927
|
-
const payload = {
|
|
928
|
-
const getRequestOptions =
|
|
926
|
+
function createOnlineOrder2() {
|
|
927
|
+
const payload = {};
|
|
928
|
+
const getRequestOptions = createOnlineOrder(payload);
|
|
929
929
|
const getUrl = (context) => {
|
|
930
930
|
const { url } = getRequestOptions(context);
|
|
931
931
|
return url;
|
|
@@ -933,17 +933,17 @@ function cancelOrder2() {
|
|
|
933
933
|
return {
|
|
934
934
|
getUrl,
|
|
935
935
|
httpMethod: "POST",
|
|
936
|
-
path: "/v2/orders/
|
|
937
|
-
pathParams: {
|
|
936
|
+
path: "/v2/checkout/orders/online",
|
|
937
|
+
pathParams: {},
|
|
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 createOfflineOrder2() {
|
|
945
|
+
const payload = {};
|
|
946
|
+
const getRequestOptions = createOfflineOrder(payload);
|
|
947
947
|
const getUrl = (context) => {
|
|
948
948
|
const { url } = getRequestOptions(context);
|
|
949
949
|
return url;
|
|
@@ -951,17 +951,17 @@ function markAsPaid2() {
|
|
|
951
951
|
return {
|
|
952
952
|
getUrl,
|
|
953
953
|
httpMethod: "POST",
|
|
954
|
-
path: "/v2/orders/
|
|
955
|
-
pathParams: {
|
|
954
|
+
path: "/v2/checkout/orders/offline",
|
|
955
|
+
pathParams: {},
|
|
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 getOnlineOrderPreview2() {
|
|
963
|
+
const payload = {};
|
|
964
|
+
const getRequestOptions = getOnlineOrderPreview(payload);
|
|
965
965
|
const getUrl = (context) => {
|
|
966
966
|
const { url } = getRequestOptions(context);
|
|
967
967
|
return url;
|
|
@@ -969,17 +969,17 @@ function pauseOrder2() {
|
|
|
969
969
|
return {
|
|
970
970
|
getUrl,
|
|
971
971
|
httpMethod: "POST",
|
|
972
|
-
path: "/v2/orders/
|
|
973
|
-
pathParams: {
|
|
972
|
+
path: "/v2/checkout/orders/preview-online",
|
|
973
|
+
pathParams: {},
|
|
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 getOfflineOrderPreview2() {
|
|
981
|
+
const payload = {};
|
|
982
|
+
const getRequestOptions = getOfflineOrderPreview(payload);
|
|
983
983
|
const getUrl = (context) => {
|
|
984
984
|
const { url } = getRequestOptions(context);
|
|
985
985
|
return url;
|
|
@@ -987,35 +987,35 @@ function resumeOrder2() {
|
|
|
987
987
|
return {
|
|
988
988
|
getUrl,
|
|
989
989
|
httpMethod: "POST",
|
|
990
|
-
path: "/v2/orders/
|
|
991
|
-
pathParams: {
|
|
990
|
+
path: "/v2/checkout/orders/preview-offline",
|
|
991
|
+
pathParams: {},
|
|
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 getPricePreview2() {
|
|
999
|
+
const payload = {};
|
|
1000
|
+
const getRequestOptions = getPricePreview(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: "POST",
|
|
1008
|
+
path: "/v2/checkout/orders/price-preview",
|
|
1009
|
+
pathParams: {},
|
|
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 managementGetOrder2() {
|
|
1017
|
+
const payload = { id: ":id" };
|
|
1018
|
+
const getRequestOptions = managementGetOrder(payload);
|
|
1019
1019
|
const getUrl = (context) => {
|
|
1020
1020
|
const { url } = getRequestOptions(context);
|
|
1021
1021
|
return url;
|
|
@@ -1023,53 +1023,53 @@ function memberListOrders2() {
|
|
|
1023
1023
|
return {
|
|
1024
1024
|
getUrl,
|
|
1025
1025
|
httpMethod: "GET",
|
|
1026
|
-
path: "/v2/
|
|
1027
|
-
pathParams: {},
|
|
1026
|
+
path: "/v2/orders/{id}",
|
|
1027
|
+
pathParams: { id: "id" },
|
|
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 managementListOrders2() {
|
|
1035
|
+
const payload = {};
|
|
1036
|
+
const getRequestOptions = managementListOrders(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/
|
|
1045
|
-
pathParams: {
|
|
1043
|
+
httpMethod: "GET",
|
|
1044
|
+
path: "/v2/orders",
|
|
1045
|
+
pathParams: {},
|
|
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 postponeEndDate2() {
|
|
1053
|
+
const payload = { id: ":id" };
|
|
1054
|
+
const getRequestOptions = postponeEndDate(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/
|
|
1063
|
-
pathParams: {},
|
|
1061
|
+
httpMethod: "PATCH",
|
|
1062
|
+
path: "/v2/orders/{id}",
|
|
1063
|
+
pathParams: { id: "id" },
|
|
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 cancelOrder2() {
|
|
1071
|
+
const payload = { id: ":id" };
|
|
1072
|
+
const getRequestOptions = cancelOrder(payload);
|
|
1073
1073
|
const getUrl = (context) => {
|
|
1074
1074
|
const { url } = getRequestOptions(context);
|
|
1075
1075
|
return url;
|
|
@@ -1077,17 +1077,17 @@ function createOfflineOrder2() {
|
|
|
1077
1077
|
return {
|
|
1078
1078
|
getUrl,
|
|
1079
1079
|
httpMethod: "POST",
|
|
1080
|
-
path: "/v2/
|
|
1081
|
-
pathParams: {},
|
|
1080
|
+
path: "/v2/orders/{id}/cancel",
|
|
1081
|
+
pathParams: { id: "id" },
|
|
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 markAsPaid2() {
|
|
1089
|
+
const payload = { id: ":id" };
|
|
1090
|
+
const getRequestOptions = markAsPaid(payload);
|
|
1091
1091
|
const getUrl = (context) => {
|
|
1092
1092
|
const { url } = getRequestOptions(context);
|
|
1093
1093
|
return url;
|
|
@@ -1095,17 +1095,17 @@ function getOnlineOrderPreview2() {
|
|
|
1095
1095
|
return {
|
|
1096
1096
|
getUrl,
|
|
1097
1097
|
httpMethod: "POST",
|
|
1098
|
-
path: "/v2/
|
|
1099
|
-
pathParams: {},
|
|
1098
|
+
path: "/v2/orders/{id}/mark-as-paid",
|
|
1099
|
+
pathParams: { id: "id" },
|
|
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 pauseOrder2() {
|
|
1107
|
+
const payload = { id: ":id" };
|
|
1108
|
+
const getRequestOptions = pauseOrder(payload);
|
|
1109
1109
|
const getUrl = (context) => {
|
|
1110
1110
|
const { url } = getRequestOptions(context);
|
|
1111
1111
|
return url;
|
|
@@ -1113,17 +1113,17 @@ function getOfflineOrderPreview2() {
|
|
|
1113
1113
|
return {
|
|
1114
1114
|
getUrl,
|
|
1115
1115
|
httpMethod: "POST",
|
|
1116
|
-
path: "/v2/
|
|
1117
|
-
pathParams: {},
|
|
1116
|
+
path: "/v2/orders/{id}/pause",
|
|
1117
|
+
pathParams: { id: "id" },
|
|
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 resumeOrder2() {
|
|
1125
|
+
const payload = { id: ":id" };
|
|
1126
|
+
const getRequestOptions = resumeOrder(payload);
|
|
1127
1127
|
const getUrl = (context) => {
|
|
1128
1128
|
const { url } = getRequestOptions(context);
|
|
1129
1129
|
return url;
|
|
@@ -1131,8 +1131,8 @@ function getPricePreview2() {
|
|
|
1131
1131
|
return {
|
|
1132
1132
|
getUrl,
|
|
1133
1133
|
httpMethod: "POST",
|
|
1134
|
-
path: "/v2/
|
|
1135
|
-
pathParams: {},
|
|
1134
|
+
path: "/v2/orders/{id}/resume",
|
|
1135
|
+
pathParams: { id: "id" },
|
|
1136
1136
|
__requestType: null,
|
|
1137
1137
|
__originalRequestType: null,
|
|
1138
1138
|
__responseType: null,
|