@wix/auto_sdk_pricing-plans_orders 1.0.113 → 1.0.114
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/cjs/index.d.ts +155 -155
- package/build/cjs/index.js +452 -452
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +498 -498
- package/build/cjs/index.typings.js +323 -323
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.d.ts +268 -268
- package/build/cjs/meta.js +334 -334
- package/build/cjs/meta.js.map +1 -1
- package/build/cjs/schemas.d.ts +30 -30
- package/build/cjs/schemas.js +59 -59
- package/build/cjs/schemas.js.map +1 -1
- package/build/es/index.d.mts +155 -155
- package/build/es/index.mjs +452 -452
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +498 -498
- package/build/es/index.typings.mjs +323 -323
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.d.mts +268 -268
- package/build/es/meta.mjs +334 -334
- package/build/es/meta.mjs.map +1 -1
- package/build/es/schemas.d.mts +30 -30
- package/build/es/schemas.mjs +59 -59
- package/build/es/schemas.mjs.map +1 -1
- package/build/internal/cjs/index.d.ts +155 -155
- package/build/internal/cjs/index.js +452 -452
- package/build/internal/cjs/index.js.map +1 -1
- package/build/internal/cjs/index.typings.d.ts +498 -498
- package/build/internal/cjs/index.typings.js +323 -323
- package/build/internal/cjs/index.typings.js.map +1 -1
- package/build/internal/cjs/meta.d.ts +268 -268
- package/build/internal/cjs/meta.js +334 -334
- package/build/internal/cjs/meta.js.map +1 -1
- package/build/internal/cjs/schemas.d.ts +30 -30
- package/build/internal/cjs/schemas.js +59 -59
- package/build/internal/cjs/schemas.js.map +1 -1
- package/build/internal/es/index.d.mts +155 -155
- package/build/internal/es/index.mjs +452 -452
- package/build/internal/es/index.mjs.map +1 -1
- package/build/internal/es/index.typings.d.mts +498 -498
- package/build/internal/es/index.typings.mjs +323 -323
- package/build/internal/es/index.typings.mjs.map +1 -1
- package/build/internal/es/meta.d.mts +268 -268
- package/build/internal/es/meta.mjs +334 -334
- package/build/internal/es/meta.mjs.map +1 -1
- package/build/internal/es/schemas.d.mts +30 -30
- package/build/internal/es/schemas.mjs +59 -59
- package/build/internal/es/schemas.mjs.map +1 -1
- package/package.json +2 -2
|
@@ -4,62 +4,100 @@ 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
|
|
7
|
+
function resolveComWixpressMembershipV2OrdersOrderManagementServiceUrl(opts) {
|
|
8
8
|
const domainToMappings = {
|
|
9
9
|
"api._api_base_domain_": [
|
|
10
10
|
{
|
|
11
|
-
srcPath: "/
|
|
11
|
+
srcPath: "/order-management-service-proxy",
|
|
12
12
|
destPath: ""
|
|
13
13
|
}
|
|
14
14
|
],
|
|
15
15
|
"*.dev.wix-code.com": [
|
|
16
16
|
{
|
|
17
|
-
srcPath: "/_api/
|
|
18
|
-
destPath: "/v2/
|
|
19
|
-
},
|
|
20
|
-
{
|
|
21
|
-
srcPath: "/_api/pricing-plans/v2/member/orders",
|
|
22
|
-
destPath: "/v2/member/orders"
|
|
17
|
+
srcPath: "/_api/paid-plans/v2/orders",
|
|
18
|
+
destPath: "/v2/orders"
|
|
23
19
|
}
|
|
24
20
|
],
|
|
25
21
|
"*.pub.wix-code.com": [
|
|
26
22
|
{
|
|
27
|
-
srcPath: "/_api/
|
|
28
|
-
destPath: "/v2/
|
|
29
|
-
}
|
|
23
|
+
srcPath: "/_api/paid-plans/v2/orders",
|
|
24
|
+
destPath: "/v2/orders"
|
|
25
|
+
}
|
|
26
|
+
],
|
|
27
|
+
"*.wixapps.net": [
|
|
30
28
|
{
|
|
31
|
-
srcPath: "/_api/
|
|
32
|
-
destPath: "/v2/
|
|
29
|
+
srcPath: "/_api/paid-plans/v2/orders",
|
|
30
|
+
destPath: "/v2/orders"
|
|
33
31
|
}
|
|
34
32
|
],
|
|
35
33
|
_: [
|
|
36
34
|
{
|
|
37
|
-
srcPath: "/_api/
|
|
38
|
-
destPath: "/v2/
|
|
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"
|
|
39
61
|
}
|
|
40
62
|
],
|
|
41
63
|
"editor.wixapps.net": [
|
|
42
64
|
{
|
|
43
|
-
srcPath: "/_api/
|
|
44
|
-
destPath: "/v2/
|
|
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"
|
|
45
79
|
}
|
|
46
80
|
],
|
|
47
81
|
"manage._base_domain_": [
|
|
48
82
|
{
|
|
49
|
-
srcPath: "/_api/pricing-plans/v2/
|
|
50
|
-
destPath: "/v2/
|
|
83
|
+
srcPath: "/_api/pricing-plans/v2/orders",
|
|
84
|
+
destPath: "/v2/orders"
|
|
85
|
+
},
|
|
86
|
+
{
|
|
87
|
+
srcPath: "/_api/paid-plans/v2/orders",
|
|
88
|
+
destPath: "/v2/orders"
|
|
51
89
|
}
|
|
52
90
|
],
|
|
53
91
|
"www._base_domain_": [
|
|
54
92
|
{
|
|
55
|
-
srcPath: "/_api/
|
|
56
|
-
destPath: "/v2/
|
|
93
|
+
srcPath: "/_api/paid-plans/v2/orders",
|
|
94
|
+
destPath: "/v2/orders"
|
|
57
95
|
}
|
|
58
96
|
],
|
|
59
97
|
"www.wixapis.com": [
|
|
60
98
|
{
|
|
61
|
-
srcPath: "/pricing-plans/v2/
|
|
62
|
-
destPath: "/v2/
|
|
99
|
+
srcPath: "/pricing-plans/v2/orders",
|
|
100
|
+
destPath: "/v2/orders"
|
|
63
101
|
}
|
|
64
102
|
]
|
|
65
103
|
};
|
|
@@ -176,118 +214,80 @@ function resolveComWixpressMembershipV2OrdersCheckoutServiceUrl(opts) {
|
|
|
176
214
|
};
|
|
177
215
|
return resolveUrl(Object.assign(opts, { domainToMappings }));
|
|
178
216
|
}
|
|
179
|
-
function
|
|
217
|
+
function resolveComWixpressMembershipV2OrdersMemberMemberOrdersServiceUrl(opts) {
|
|
180
218
|
const domainToMappings = {
|
|
181
219
|
"api._api_base_domain_": [
|
|
182
220
|
{
|
|
183
|
-
srcPath: "/
|
|
221
|
+
srcPath: "/member-orders-service-proxy",
|
|
184
222
|
destPath: ""
|
|
185
223
|
}
|
|
186
224
|
],
|
|
187
225
|
"*.dev.wix-code.com": [
|
|
188
226
|
{
|
|
189
|
-
srcPath: "/_api/
|
|
190
|
-
destPath: "/v2/orders"
|
|
227
|
+
srcPath: "/_api/pricing-plans-member-orders/v2/member/orders",
|
|
228
|
+
destPath: "/v2/member/orders"
|
|
229
|
+
},
|
|
230
|
+
{
|
|
231
|
+
srcPath: "/_api/pricing-plans/v2/member/orders",
|
|
232
|
+
destPath: "/v2/member/orders"
|
|
191
233
|
}
|
|
192
234
|
],
|
|
193
235
|
"*.pub.wix-code.com": [
|
|
194
236
|
{
|
|
195
|
-
srcPath: "/_api/
|
|
196
|
-
destPath: "/v2/orders"
|
|
197
|
-
}
|
|
198
|
-
],
|
|
199
|
-
"*.wixapps.net": [
|
|
237
|
+
srcPath: "/_api/pricing-plans-member-orders/v2/member/orders",
|
|
238
|
+
destPath: "/v2/member/orders"
|
|
239
|
+
},
|
|
200
240
|
{
|
|
201
|
-
srcPath: "/_api/
|
|
202
|
-
destPath: "/v2/orders"
|
|
241
|
+
srcPath: "/_api/pricing-plans/v2/member/orders",
|
|
242
|
+
destPath: "/v2/member/orders"
|
|
203
243
|
}
|
|
204
244
|
],
|
|
205
245
|
_: [
|
|
206
246
|
{
|
|
207
|
-
srcPath: "/_api/
|
|
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"
|
|
247
|
+
srcPath: "/_api/pricing-plans/v2/member/orders",
|
|
248
|
+
destPath: "/v2/member/orders"
|
|
233
249
|
}
|
|
234
250
|
],
|
|
235
251
|
"editor.wixapps.net": [
|
|
236
252
|
{
|
|
237
|
-
srcPath: "/_api/
|
|
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"
|
|
253
|
+
srcPath: "/_api/pricing-plans/v2/member/orders",
|
|
254
|
+
destPath: "/v2/member/orders"
|
|
251
255
|
}
|
|
252
256
|
],
|
|
253
257
|
"manage._base_domain_": [
|
|
254
258
|
{
|
|
255
|
-
srcPath: "/_api/pricing-plans/v2/orders",
|
|
256
|
-
destPath: "/v2/orders"
|
|
257
|
-
},
|
|
258
|
-
{
|
|
259
|
-
srcPath: "/_api/paid-plans/v2/orders",
|
|
260
|
-
destPath: "/v2/orders"
|
|
259
|
+
srcPath: "/_api/pricing-plans/v2/member/orders",
|
|
260
|
+
destPath: "/v2/member/orders"
|
|
261
261
|
}
|
|
262
262
|
],
|
|
263
263
|
"www._base_domain_": [
|
|
264
264
|
{
|
|
265
|
-
srcPath: "/_api/
|
|
266
|
-
destPath: "/v2/orders"
|
|
265
|
+
srcPath: "/_api/pricing-plans/v2/member/orders",
|
|
266
|
+
destPath: "/v2/member/orders"
|
|
267
267
|
}
|
|
268
268
|
],
|
|
269
269
|
"www.wixapis.com": [
|
|
270
270
|
{
|
|
271
|
-
srcPath: "/pricing-plans/v2/orders",
|
|
272
|
-
destPath: "/v2/orders"
|
|
271
|
+
srcPath: "/pricing-plans/v2/member/orders",
|
|
272
|
+
destPath: "/v2/member/orders"
|
|
273
273
|
}
|
|
274
274
|
]
|
|
275
275
|
};
|
|
276
276
|
return resolveUrl(Object.assign(opts, { domainToMappings }));
|
|
277
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,20 @@ function managementListOrders(payload) {
|
|
|
354
354
|
};
|
|
355
355
|
return metadata;
|
|
356
356
|
}
|
|
357
|
-
return
|
|
358
|
-
}
|
|
359
|
-
function postponeEndDate(payload) {
|
|
360
|
-
function __postponeEndDate({ host }) {
|
|
361
|
-
const serializedData = transformPaths(payload, [
|
|
362
|
-
{
|
|
363
|
-
transformFn: transformSDKTimestampToRESTTimestamp,
|
|
364
|
-
paths: [{ path: "endDate" }]
|
|
365
|
-
}
|
|
366
|
-
]);
|
|
367
|
-
const metadata = {
|
|
368
|
-
entityFqdn: "wix.pricing_plans.v2.order",
|
|
369
|
-
method: "PATCH",
|
|
370
|
-
methodFqn: "com.wixpress.membership.v2.orders.OrderManagementService.PostponeEndDate",
|
|
371
|
-
packageName: PACKAGE_NAME,
|
|
372
|
-
migrationOptions: {
|
|
373
|
-
optInTransformResponse: true
|
|
374
|
-
},
|
|
375
|
-
url: resolveComWixpressMembershipV2OrdersOrderManagementServiceUrl({
|
|
376
|
-
protoPath: "/v2/orders/{id}",
|
|
377
|
-
data: serializedData,
|
|
378
|
-
host
|
|
379
|
-
}),
|
|
380
|
-
data: serializedData
|
|
381
|
-
};
|
|
382
|
-
return metadata;
|
|
383
|
-
}
|
|
384
|
-
return __postponeEndDate;
|
|
385
|
-
}
|
|
386
|
-
function cancelOrder(payload) {
|
|
387
|
-
function __cancelOrder({ host }) {
|
|
388
|
-
const metadata = {
|
|
389
|
-
entityFqdn: "wix.pricing_plans.v2.order",
|
|
390
|
-
method: "POST",
|
|
391
|
-
methodFqn: "com.wixpress.membership.v2.orders.OrderManagementService.CancelOrder",
|
|
392
|
-
packageName: PACKAGE_NAME,
|
|
393
|
-
migrationOptions: {
|
|
394
|
-
optInTransformResponse: true
|
|
395
|
-
},
|
|
396
|
-
url: resolveComWixpressMembershipV2OrdersOrderManagementServiceUrl({
|
|
397
|
-
protoPath: "/v2/orders/{id}/cancel",
|
|
398
|
-
data: payload,
|
|
399
|
-
host
|
|
400
|
-
}),
|
|
401
|
-
data: payload
|
|
402
|
-
};
|
|
403
|
-
return metadata;
|
|
404
|
-
}
|
|
405
|
-
return __cancelOrder;
|
|
406
|
-
}
|
|
407
|
-
function markAsPaid(payload) {
|
|
408
|
-
function __markAsPaid({ host }) {
|
|
409
|
-
const metadata = {
|
|
410
|
-
entityFqdn: "wix.pricing_plans.v2.order",
|
|
411
|
-
method: "POST",
|
|
412
|
-
methodFqn: "com.wixpress.membership.v2.orders.OrderManagementService.MarkAsPaid",
|
|
413
|
-
packageName: PACKAGE_NAME,
|
|
414
|
-
migrationOptions: {
|
|
415
|
-
optInTransformResponse: true
|
|
416
|
-
},
|
|
417
|
-
url: resolveComWixpressMembershipV2OrdersOrderManagementServiceUrl({
|
|
418
|
-
protoPath: "/v2/orders/{id}/mark-as-paid",
|
|
419
|
-
data: payload,
|
|
420
|
-
host
|
|
421
|
-
}),
|
|
422
|
-
data: payload
|
|
423
|
-
};
|
|
424
|
-
return metadata;
|
|
425
|
-
}
|
|
426
|
-
return __markAsPaid;
|
|
427
|
-
}
|
|
428
|
-
function pauseOrder(payload) {
|
|
429
|
-
function __pauseOrder({ host }) {
|
|
430
|
-
const metadata = {
|
|
431
|
-
entityFqdn: "wix.pricing_plans.v2.order",
|
|
432
|
-
method: "POST",
|
|
433
|
-
methodFqn: "com.wixpress.membership.v2.orders.OrderManagementService.PauseOrder",
|
|
434
|
-
packageName: PACKAGE_NAME,
|
|
435
|
-
migrationOptions: {
|
|
436
|
-
optInTransformResponse: true
|
|
437
|
-
},
|
|
438
|
-
url: resolveComWixpressMembershipV2OrdersOrderManagementServiceUrl({
|
|
439
|
-
protoPath: "/v2/orders/{id}/pause",
|
|
440
|
-
data: payload,
|
|
441
|
-
host
|
|
442
|
-
}),
|
|
443
|
-
data: payload
|
|
444
|
-
};
|
|
445
|
-
return metadata;
|
|
446
|
-
}
|
|
447
|
-
return __pauseOrder;
|
|
357
|
+
return __memberListOrders;
|
|
448
358
|
}
|
|
449
|
-
function
|
|
450
|
-
function
|
|
359
|
+
function requestCancellation(payload) {
|
|
360
|
+
function __requestCancellation({ host }) {
|
|
451
361
|
const metadata = {
|
|
452
362
|
entityFqdn: "wix.pricing_plans.v2.order",
|
|
453
363
|
method: "POST",
|
|
454
|
-
methodFqn: "com.wixpress.membership.v2.orders.
|
|
364
|
+
methodFqn: "com.wixpress.membership.v2.orders.member.MemberOrdersService.RequestCancellation",
|
|
455
365
|
packageName: PACKAGE_NAME,
|
|
456
366
|
migrationOptions: {
|
|
457
367
|
optInTransformResponse: true
|
|
458
368
|
},
|
|
459
|
-
url:
|
|
460
|
-
protoPath: "/v2/orders/{id}/
|
|
369
|
+
url: resolveComWixpressMembershipV2OrdersMemberMemberOrdersServiceUrl({
|
|
370
|
+
protoPath: "/v2/member/orders/{id}/cancel",
|
|
461
371
|
data: payload,
|
|
462
372
|
host
|
|
463
373
|
}),
|
|
@@ -465,7 +375,7 @@ function resumeOrder(payload) {
|
|
|
465
375
|
};
|
|
466
376
|
return metadata;
|
|
467
377
|
}
|
|
468
|
-
return
|
|
378
|
+
return __requestCancellation;
|
|
469
379
|
}
|
|
470
380
|
function createOnlineOrder(payload) {
|
|
471
381
|
function __createOnlineOrder({ host }) {
|
|
@@ -649,20 +559,148 @@ function getOfflineOrderPreview(payload) {
|
|
|
649
559
|
};
|
|
650
560
|
return metadata;
|
|
651
561
|
}
|
|
652
|
-
return __getOfflineOrderPreview;
|
|
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",
|
|
576
|
+
data: payload,
|
|
577
|
+
host
|
|
578
|
+
}),
|
|
579
|
+
data: payload
|
|
580
|
+
};
|
|
581
|
+
return metadata;
|
|
582
|
+
}
|
|
583
|
+
return __getPricePreview;
|
|
584
|
+
}
|
|
585
|
+
function managementGetOrder(payload) {
|
|
586
|
+
function __managementGetOrder({ host }) {
|
|
587
|
+
const metadata = {
|
|
588
|
+
entityFqdn: "wix.pricing_plans.v2.order",
|
|
589
|
+
method: "GET",
|
|
590
|
+
methodFqn: "com.wixpress.membership.v2.orders.OrderManagementService.GetOrder",
|
|
591
|
+
packageName: PACKAGE_NAME,
|
|
592
|
+
migrationOptions: {
|
|
593
|
+
optInTransformResponse: true
|
|
594
|
+
},
|
|
595
|
+
url: resolveComWixpressMembershipV2OrdersOrderManagementServiceUrl({
|
|
596
|
+
protoPath: "/v2/orders/{id}",
|
|
597
|
+
data: payload,
|
|
598
|
+
host
|
|
599
|
+
}),
|
|
600
|
+
params: toURLSearchParams(payload),
|
|
601
|
+
transformResponse: (payload2) => transformPaths(payload2, [
|
|
602
|
+
{
|
|
603
|
+
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
604
|
+
paths: [
|
|
605
|
+
{ path: "order.startDate" },
|
|
606
|
+
{ path: "order.endDate" },
|
|
607
|
+
{ path: "order.earliestEndDate" },
|
|
608
|
+
{ path: "order.createdDate" },
|
|
609
|
+
{ path: "order.updatedDate" },
|
|
610
|
+
{ path: "order.cancellation.requestedDate" },
|
|
611
|
+
{ path: "order.pausePeriods.pauseDate" },
|
|
612
|
+
{ path: "order.pausePeriods.resumeDate" },
|
|
613
|
+
{ path: "order.currentCycle.startedDate" },
|
|
614
|
+
{ path: "order.currentCycle.endedDate" },
|
|
615
|
+
{ path: "order.cycles.startedDate" },
|
|
616
|
+
{ path: "order.cycles.endedDate" }
|
|
617
|
+
]
|
|
618
|
+
}
|
|
619
|
+
])
|
|
620
|
+
};
|
|
621
|
+
return metadata;
|
|
622
|
+
}
|
|
623
|
+
return __managementGetOrder;
|
|
624
|
+
}
|
|
625
|
+
function managementListOrders(payload) {
|
|
626
|
+
function __managementListOrders({ host }) {
|
|
627
|
+
const metadata = {
|
|
628
|
+
entityFqdn: "wix.pricing_plans.v2.order",
|
|
629
|
+
method: "GET",
|
|
630
|
+
methodFqn: "com.wixpress.membership.v2.orders.OrderManagementService.ListOrders",
|
|
631
|
+
packageName: PACKAGE_NAME,
|
|
632
|
+
migrationOptions: {
|
|
633
|
+
optInTransformResponse: true
|
|
634
|
+
},
|
|
635
|
+
url: resolveComWixpressMembershipV2OrdersOrderManagementServiceUrl({
|
|
636
|
+
protoPath: "/v2/orders",
|
|
637
|
+
data: payload,
|
|
638
|
+
host
|
|
639
|
+
}),
|
|
640
|
+
params: toURLSearchParams(payload, true),
|
|
641
|
+
transformResponse: (payload2) => transformPaths(payload2, [
|
|
642
|
+
{
|
|
643
|
+
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
644
|
+
paths: [
|
|
645
|
+
{ path: "orders.startDate" },
|
|
646
|
+
{ path: "orders.endDate" },
|
|
647
|
+
{ path: "orders.earliestEndDate" },
|
|
648
|
+
{ path: "orders.createdDate" },
|
|
649
|
+
{ path: "orders.updatedDate" },
|
|
650
|
+
{ path: "orders.cancellation.requestedDate" },
|
|
651
|
+
{ path: "orders.pausePeriods.pauseDate" },
|
|
652
|
+
{ path: "orders.pausePeriods.resumeDate" },
|
|
653
|
+
{ path: "orders.currentCycle.startedDate" },
|
|
654
|
+
{ path: "orders.currentCycle.endedDate" },
|
|
655
|
+
{ path: "orders.cycles.startedDate" },
|
|
656
|
+
{ path: "orders.cycles.endedDate" }
|
|
657
|
+
]
|
|
658
|
+
}
|
|
659
|
+
])
|
|
660
|
+
};
|
|
661
|
+
return metadata;
|
|
662
|
+
}
|
|
663
|
+
return __managementListOrders;
|
|
664
|
+
}
|
|
665
|
+
function postponeEndDate(payload) {
|
|
666
|
+
function __postponeEndDate({ host }) {
|
|
667
|
+
const serializedData = transformPaths(payload, [
|
|
668
|
+
{
|
|
669
|
+
transformFn: transformSDKTimestampToRESTTimestamp,
|
|
670
|
+
paths: [{ path: "endDate" }]
|
|
671
|
+
}
|
|
672
|
+
]);
|
|
673
|
+
const metadata = {
|
|
674
|
+
entityFqdn: "wix.pricing_plans.v2.order",
|
|
675
|
+
method: "PATCH",
|
|
676
|
+
methodFqn: "com.wixpress.membership.v2.orders.OrderManagementService.PostponeEndDate",
|
|
677
|
+
packageName: PACKAGE_NAME,
|
|
678
|
+
migrationOptions: {
|
|
679
|
+
optInTransformResponse: true
|
|
680
|
+
},
|
|
681
|
+
url: resolveComWixpressMembershipV2OrdersOrderManagementServiceUrl({
|
|
682
|
+
protoPath: "/v2/orders/{id}",
|
|
683
|
+
data: serializedData,
|
|
684
|
+
host
|
|
685
|
+
}),
|
|
686
|
+
data: serializedData
|
|
687
|
+
};
|
|
688
|
+
return metadata;
|
|
689
|
+
}
|
|
690
|
+
return __postponeEndDate;
|
|
653
691
|
}
|
|
654
|
-
function
|
|
655
|
-
function
|
|
692
|
+
function cancelOrder(payload) {
|
|
693
|
+
function __cancelOrder({ host }) {
|
|
656
694
|
const metadata = {
|
|
657
695
|
entityFqdn: "wix.pricing_plans.v2.order",
|
|
658
696
|
method: "POST",
|
|
659
|
-
methodFqn: "com.wixpress.membership.v2.orders.
|
|
697
|
+
methodFqn: "com.wixpress.membership.v2.orders.OrderManagementService.CancelOrder",
|
|
660
698
|
packageName: PACKAGE_NAME,
|
|
661
699
|
migrationOptions: {
|
|
662
700
|
optInTransformResponse: true
|
|
663
701
|
},
|
|
664
|
-
url:
|
|
665
|
-
protoPath: "/v2/
|
|
702
|
+
url: resolveComWixpressMembershipV2OrdersOrderManagementServiceUrl({
|
|
703
|
+
protoPath: "/v2/orders/{id}/cancel",
|
|
666
704
|
data: payload,
|
|
667
705
|
host
|
|
668
706
|
}),
|
|
@@ -670,100 +708,62 @@ function getPricePreview(payload) {
|
|
|
670
708
|
};
|
|
671
709
|
return metadata;
|
|
672
710
|
}
|
|
673
|
-
return
|
|
711
|
+
return __cancelOrder;
|
|
674
712
|
}
|
|
675
|
-
function
|
|
676
|
-
function
|
|
713
|
+
function markAsPaid(payload) {
|
|
714
|
+
function __markAsPaid({ host }) {
|
|
677
715
|
const metadata = {
|
|
678
716
|
entityFqdn: "wix.pricing_plans.v2.order",
|
|
679
|
-
method: "
|
|
680
|
-
methodFqn: "com.wixpress.membership.v2.orders.
|
|
717
|
+
method: "POST",
|
|
718
|
+
methodFqn: "com.wixpress.membership.v2.orders.OrderManagementService.MarkAsPaid",
|
|
681
719
|
packageName: PACKAGE_NAME,
|
|
682
720
|
migrationOptions: {
|
|
683
721
|
optInTransformResponse: true
|
|
684
722
|
},
|
|
685
|
-
url:
|
|
686
|
-
protoPath: "/v2/
|
|
723
|
+
url: resolveComWixpressMembershipV2OrdersOrderManagementServiceUrl({
|
|
724
|
+
protoPath: "/v2/orders/{id}/mark-as-paid",
|
|
687
725
|
data: payload,
|
|
688
726
|
host
|
|
689
727
|
}),
|
|
690
|
-
|
|
691
|
-
transformResponse: (payload2) => transformPaths(payload2, [
|
|
692
|
-
{
|
|
693
|
-
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
694
|
-
paths: [
|
|
695
|
-
{ path: "order.startDate" },
|
|
696
|
-
{ path: "order.endDate" },
|
|
697
|
-
{ path: "order.earliestEndDate" },
|
|
698
|
-
{ path: "order.createdDate" },
|
|
699
|
-
{ path: "order.updatedDate" },
|
|
700
|
-
{ path: "order.cancellation.requestedDate" },
|
|
701
|
-
{ path: "order.pausePeriods.pauseDate" },
|
|
702
|
-
{ path: "order.pausePeriods.resumeDate" },
|
|
703
|
-
{ path: "order.currentCycle.startedDate" },
|
|
704
|
-
{ path: "order.currentCycle.endedDate" },
|
|
705
|
-
{ path: "order.cycles.startedDate" },
|
|
706
|
-
{ path: "order.cycles.endedDate" }
|
|
707
|
-
]
|
|
708
|
-
}
|
|
709
|
-
])
|
|
728
|
+
data: payload
|
|
710
729
|
};
|
|
711
730
|
return metadata;
|
|
712
731
|
}
|
|
713
|
-
return
|
|
732
|
+
return __markAsPaid;
|
|
714
733
|
}
|
|
715
|
-
function
|
|
716
|
-
function
|
|
734
|
+
function pauseOrder(payload) {
|
|
735
|
+
function __pauseOrder({ host }) {
|
|
717
736
|
const metadata = {
|
|
718
737
|
entityFqdn: "wix.pricing_plans.v2.order",
|
|
719
|
-
method: "
|
|
720
|
-
methodFqn: "com.wixpress.membership.v2.orders.
|
|
738
|
+
method: "POST",
|
|
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/
|
|
744
|
+
url: resolveComWixpressMembershipV2OrdersOrderManagementServiceUrl({
|
|
745
|
+
protoPath: "/v2/orders/{id}/pause",
|
|
727
746
|
data: payload,
|
|
728
747
|
host
|
|
729
748
|
}),
|
|
730
|
-
|
|
731
|
-
transformResponse: (payload2) => transformPaths(payload2, [
|
|
732
|
-
{
|
|
733
|
-
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
734
|
-
paths: [
|
|
735
|
-
{ path: "orders.startDate" },
|
|
736
|
-
{ path: "orders.endDate" },
|
|
737
|
-
{ path: "orders.earliestEndDate" },
|
|
738
|
-
{ path: "orders.createdDate" },
|
|
739
|
-
{ path: "orders.updatedDate" },
|
|
740
|
-
{ path: "orders.cancellation.requestedDate" },
|
|
741
|
-
{ path: "orders.pausePeriods.pauseDate" },
|
|
742
|
-
{ path: "orders.pausePeriods.resumeDate" },
|
|
743
|
-
{ path: "orders.currentCycle.startedDate" },
|
|
744
|
-
{ path: "orders.currentCycle.endedDate" },
|
|
745
|
-
{ path: "orders.cycles.startedDate" },
|
|
746
|
-
{ path: "orders.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 requestCancellation(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,17 +987,17 @@ 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
|
|
998
|
+
function getPricePreview2() {
|
|
999
999
|
const payload = {};
|
|
1000
|
-
const getRequestOptions =
|
|
1000
|
+
const getRequestOptions = getPricePreview(payload);
|
|
1001
1001
|
const getUrl = (context) => {
|
|
1002
1002
|
const { url } = getRequestOptions(context);
|
|
1003
1003
|
return url;
|
|
@@ -1005,7 +1005,7 @@ function createOnlineOrder2() {
|
|
|
1005
1005
|
return {
|
|
1006
1006
|
getUrl,
|
|
1007
1007
|
httpMethod: "POST",
|
|
1008
|
-
path: "/v2/checkout/orders/
|
|
1008
|
+
path: "/v2/checkout/orders/price-preview",
|
|
1009
1009
|
pathParams: {},
|
|
1010
1010
|
__requestType: null,
|
|
1011
1011
|
__originalRequestType: null,
|
|
@@ -1013,35 +1013,35 @@ function createOnlineOrder2() {
|
|
|
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;
|
|
1022
1022
|
};
|
|
1023
1023
|
return {
|
|
1024
1024
|
getUrl,
|
|
1025
|
-
httpMethod: "
|
|
1026
|
-
path: "/v2/
|
|
1027
|
-
pathParams: {},
|
|
1025
|
+
httpMethod: "GET",
|
|
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
|
|
1034
|
+
function managementListOrders2() {
|
|
1035
1035
|
const payload = {};
|
|
1036
|
-
const getRequestOptions =
|
|
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/
|
|
1043
|
+
httpMethod: "GET",
|
|
1044
|
+
path: "/v2/orders",
|
|
1045
1045
|
pathParams: {},
|
|
1046
1046
|
__requestType: null,
|
|
1047
1047
|
__originalRequestType: null,
|
|
@@ -1049,27 +1049,27 @@ function getOnlineOrderPreview2() {
|
|
|
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,25 +1077,25 @@ function getPricePreview2() {
|
|
|
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
|
|
1088
|
+
function markAsPaid2() {
|
|
1089
1089
|
const payload = { id: ":id" };
|
|
1090
|
-
const getRequestOptions =
|
|
1090
|
+
const getRequestOptions = markAsPaid(payload);
|
|
1091
1091
|
const getUrl = (context) => {
|
|
1092
1092
|
const { url } = getRequestOptions(context);
|
|
1093
1093
|
return url;
|
|
1094
1094
|
};
|
|
1095
1095
|
return {
|
|
1096
1096
|
getUrl,
|
|
1097
|
-
httpMethod: "
|
|
1098
|
-
path: "/v2/
|
|
1097
|
+
httpMethod: "POST",
|
|
1098
|
+
path: "/v2/orders/{id}/mark-as-paid",
|
|
1099
1099
|
pathParams: { id: "id" },
|
|
1100
1100
|
__requestType: null,
|
|
1101
1101
|
__originalRequestType: null,
|
|
@@ -1103,27 +1103,27 @@ function memberGetOrder2() {
|
|
|
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;
|
|
1112
1112
|
};
|
|
1113
1113
|
return {
|
|
1114
1114
|
getUrl,
|
|
1115
|
-
httpMethod: "
|
|
1116
|
-
path: "/v2/
|
|
1117
|
-
pathParams: {},
|
|
1115
|
+
httpMethod: "POST",
|
|
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
|
|
1124
|
+
function resumeOrder2() {
|
|
1125
1125
|
const payload = { id: ":id" };
|
|
1126
|
-
const getRequestOptions =
|
|
1126
|
+
const getRequestOptions = resumeOrder(payload);
|
|
1127
1127
|
const getUrl = (context) => {
|
|
1128
1128
|
const { url } = getRequestOptions(context);
|
|
1129
1129
|
return url;
|
|
@@ -1131,7 +1131,7 @@ function requestCancellation2() {
|
|
|
1131
1131
|
return {
|
|
1132
1132
|
getUrl,
|
|
1133
1133
|
httpMethod: "POST",
|
|
1134
|
-
path: "/v2/
|
|
1134
|
+
path: "/v2/orders/{id}/resume",
|
|
1135
1135
|
pathParams: { id: "id" },
|
|
1136
1136
|
__requestType: null,
|
|
1137
1137
|
__originalRequestType: null,
|