@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
package/build/cjs/meta.js
CHANGED
|
@@ -56,6 +56,105 @@ var import_timestamp = require("@wix/sdk-runtime/transformations/timestamp");
|
|
|
56
56
|
var import_timestamp2 = require("@wix/sdk-runtime/transformations/timestamp");
|
|
57
57
|
var import_transform_paths = require("@wix/sdk-runtime/transformations/transform-paths");
|
|
58
58
|
var import_rest_modules2 = require("@wix/sdk-runtime/rest-modules");
|
|
59
|
+
function resolveComWixpressMembershipV2OrdersOrderManagementServiceUrl(opts) {
|
|
60
|
+
const domainToMappings = {
|
|
61
|
+
"api._api_base_domain_": [
|
|
62
|
+
{
|
|
63
|
+
srcPath: "/order-management-service-proxy",
|
|
64
|
+
destPath: ""
|
|
65
|
+
}
|
|
66
|
+
],
|
|
67
|
+
"*.dev.wix-code.com": [
|
|
68
|
+
{
|
|
69
|
+
srcPath: "/_api/paid-plans/v2/orders",
|
|
70
|
+
destPath: "/v2/orders"
|
|
71
|
+
}
|
|
72
|
+
],
|
|
73
|
+
"*.pub.wix-code.com": [
|
|
74
|
+
{
|
|
75
|
+
srcPath: "/_api/paid-plans/v2/orders",
|
|
76
|
+
destPath: "/v2/orders"
|
|
77
|
+
}
|
|
78
|
+
],
|
|
79
|
+
"*.wixapps.net": [
|
|
80
|
+
{
|
|
81
|
+
srcPath: "/_api/paid-plans/v2/orders",
|
|
82
|
+
destPath: "/v2/orders"
|
|
83
|
+
}
|
|
84
|
+
],
|
|
85
|
+
_: [
|
|
86
|
+
{
|
|
87
|
+
srcPath: "/_api/paid-plans/v2/orders",
|
|
88
|
+
destPath: "/v2/orders"
|
|
89
|
+
}
|
|
90
|
+
],
|
|
91
|
+
"editor-flow.wixapps.net": [
|
|
92
|
+
{
|
|
93
|
+
srcPath: "/_api/paid-plans/v2/orders",
|
|
94
|
+
destPath: "/v2/orders"
|
|
95
|
+
}
|
|
96
|
+
],
|
|
97
|
+
"editor._base_domain_": [
|
|
98
|
+
{
|
|
99
|
+
srcPath: "/_api/paid-plans/v2/orders",
|
|
100
|
+
destPath: "/v2/orders"
|
|
101
|
+
}
|
|
102
|
+
],
|
|
103
|
+
"blocks._base_domain_": [
|
|
104
|
+
{
|
|
105
|
+
srcPath: "/_api/paid-plans/v2/orders",
|
|
106
|
+
destPath: "/v2/orders"
|
|
107
|
+
}
|
|
108
|
+
],
|
|
109
|
+
"create.editorx": [
|
|
110
|
+
{
|
|
111
|
+
srcPath: "/_api/paid-plans/v2/orders",
|
|
112
|
+
destPath: "/v2/orders"
|
|
113
|
+
}
|
|
114
|
+
],
|
|
115
|
+
"editor.wixapps.net": [
|
|
116
|
+
{
|
|
117
|
+
srcPath: "/_api/paid-plans/v2/orders",
|
|
118
|
+
destPath: "/v2/orders"
|
|
119
|
+
}
|
|
120
|
+
],
|
|
121
|
+
"forums._base_domain_": [
|
|
122
|
+
{
|
|
123
|
+
srcPath: "/_api/paid-plans/v2/orders",
|
|
124
|
+
destPath: "/v2/orders"
|
|
125
|
+
}
|
|
126
|
+
],
|
|
127
|
+
"forums.wixapps.net": [
|
|
128
|
+
{
|
|
129
|
+
srcPath: "/_api/paid-plans/v2/orders",
|
|
130
|
+
destPath: "/v2/orders"
|
|
131
|
+
}
|
|
132
|
+
],
|
|
133
|
+
"manage._base_domain_": [
|
|
134
|
+
{
|
|
135
|
+
srcPath: "/_api/pricing-plans/v2/orders",
|
|
136
|
+
destPath: "/v2/orders"
|
|
137
|
+
},
|
|
138
|
+
{
|
|
139
|
+
srcPath: "/_api/paid-plans/v2/orders",
|
|
140
|
+
destPath: "/v2/orders"
|
|
141
|
+
}
|
|
142
|
+
],
|
|
143
|
+
"www._base_domain_": [
|
|
144
|
+
{
|
|
145
|
+
srcPath: "/_api/paid-plans/v2/orders",
|
|
146
|
+
destPath: "/v2/orders"
|
|
147
|
+
}
|
|
148
|
+
],
|
|
149
|
+
"www.wixapis.com": [
|
|
150
|
+
{
|
|
151
|
+
srcPath: "/pricing-plans/v2/orders",
|
|
152
|
+
destPath: "/v2/orders"
|
|
153
|
+
}
|
|
154
|
+
]
|
|
155
|
+
};
|
|
156
|
+
return (0, import_rest_modules2.resolveUrl)(Object.assign(opts, { domainToMappings }));
|
|
157
|
+
}
|
|
59
158
|
function resolveComWixpressMembershipV2OrdersCheckoutServiceUrl(opts) {
|
|
60
159
|
const domainToMappings = {
|
|
61
160
|
"api._api_base_domain_": [
|
|
@@ -228,118 +327,19 @@ function resolveComWixpressMembershipV2OrdersMemberMemberOrdersServiceUrl(opts)
|
|
|
228
327
|
};
|
|
229
328
|
return (0, import_rest_modules2.resolveUrl)(Object.assign(opts, { domainToMappings }));
|
|
230
329
|
}
|
|
231
|
-
function resolveComWixpressMembershipV2OrdersOrderManagementServiceUrl(opts) {
|
|
232
|
-
const domainToMappings = {
|
|
233
|
-
"api._api_base_domain_": [
|
|
234
|
-
{
|
|
235
|
-
srcPath: "/order-management-service-proxy",
|
|
236
|
-
destPath: ""
|
|
237
|
-
}
|
|
238
|
-
],
|
|
239
|
-
"*.dev.wix-code.com": [
|
|
240
|
-
{
|
|
241
|
-
srcPath: "/_api/paid-plans/v2/orders",
|
|
242
|
-
destPath: "/v2/orders"
|
|
243
|
-
}
|
|
244
|
-
],
|
|
245
|
-
"*.pub.wix-code.com": [
|
|
246
|
-
{
|
|
247
|
-
srcPath: "/_api/paid-plans/v2/orders",
|
|
248
|
-
destPath: "/v2/orders"
|
|
249
|
-
}
|
|
250
|
-
],
|
|
251
|
-
"*.wixapps.net": [
|
|
252
|
-
{
|
|
253
|
-
srcPath: "/_api/paid-plans/v2/orders",
|
|
254
|
-
destPath: "/v2/orders"
|
|
255
|
-
}
|
|
256
|
-
],
|
|
257
|
-
_: [
|
|
258
|
-
{
|
|
259
|
-
srcPath: "/_api/paid-plans/v2/orders",
|
|
260
|
-
destPath: "/v2/orders"
|
|
261
|
-
}
|
|
262
|
-
],
|
|
263
|
-
"editor-flow.wixapps.net": [
|
|
264
|
-
{
|
|
265
|
-
srcPath: "/_api/paid-plans/v2/orders",
|
|
266
|
-
destPath: "/v2/orders"
|
|
267
|
-
}
|
|
268
|
-
],
|
|
269
|
-
"editor._base_domain_": [
|
|
270
|
-
{
|
|
271
|
-
srcPath: "/_api/paid-plans/v2/orders",
|
|
272
|
-
destPath: "/v2/orders"
|
|
273
|
-
}
|
|
274
|
-
],
|
|
275
|
-
"blocks._base_domain_": [
|
|
276
|
-
{
|
|
277
|
-
srcPath: "/_api/paid-plans/v2/orders",
|
|
278
|
-
destPath: "/v2/orders"
|
|
279
|
-
}
|
|
280
|
-
],
|
|
281
|
-
"create.editorx": [
|
|
282
|
-
{
|
|
283
|
-
srcPath: "/_api/paid-plans/v2/orders",
|
|
284
|
-
destPath: "/v2/orders"
|
|
285
|
-
}
|
|
286
|
-
],
|
|
287
|
-
"editor.wixapps.net": [
|
|
288
|
-
{
|
|
289
|
-
srcPath: "/_api/paid-plans/v2/orders",
|
|
290
|
-
destPath: "/v2/orders"
|
|
291
|
-
}
|
|
292
|
-
],
|
|
293
|
-
"forums._base_domain_": [
|
|
294
|
-
{
|
|
295
|
-
srcPath: "/_api/paid-plans/v2/orders",
|
|
296
|
-
destPath: "/v2/orders"
|
|
297
|
-
}
|
|
298
|
-
],
|
|
299
|
-
"forums.wixapps.net": [
|
|
300
|
-
{
|
|
301
|
-
srcPath: "/_api/paid-plans/v2/orders",
|
|
302
|
-
destPath: "/v2/orders"
|
|
303
|
-
}
|
|
304
|
-
],
|
|
305
|
-
"manage._base_domain_": [
|
|
306
|
-
{
|
|
307
|
-
srcPath: "/_api/pricing-plans/v2/orders",
|
|
308
|
-
destPath: "/v2/orders"
|
|
309
|
-
},
|
|
310
|
-
{
|
|
311
|
-
srcPath: "/_api/paid-plans/v2/orders",
|
|
312
|
-
destPath: "/v2/orders"
|
|
313
|
-
}
|
|
314
|
-
],
|
|
315
|
-
"www._base_domain_": [
|
|
316
|
-
{
|
|
317
|
-
srcPath: "/_api/paid-plans/v2/orders",
|
|
318
|
-
destPath: "/v2/orders"
|
|
319
|
-
}
|
|
320
|
-
],
|
|
321
|
-
"www.wixapis.com": [
|
|
322
|
-
{
|
|
323
|
-
srcPath: "/pricing-plans/v2/orders",
|
|
324
|
-
destPath: "/v2/orders"
|
|
325
|
-
}
|
|
326
|
-
]
|
|
327
|
-
};
|
|
328
|
-
return (0, import_rest_modules2.resolveUrl)(Object.assign(opts, { domainToMappings }));
|
|
329
|
-
}
|
|
330
330
|
var PACKAGE_NAME = "@wix/auto_sdk_pricing-plans_orders";
|
|
331
|
-
function
|
|
332
|
-
function
|
|
331
|
+
function memberGetOrder(payload) {
|
|
332
|
+
function __memberGetOrder({ host }) {
|
|
333
333
|
const metadata = {
|
|
334
334
|
entityFqdn: "wix.pricing_plans.v2.order",
|
|
335
335
|
method: "GET",
|
|
336
|
-
methodFqn: "com.wixpress.membership.v2.orders.
|
|
336
|
+
methodFqn: "com.wixpress.membership.v2.orders.member.MemberOrdersService.GetOrder",
|
|
337
337
|
packageName: PACKAGE_NAME,
|
|
338
338
|
migrationOptions: {
|
|
339
339
|
optInTransformResponse: true
|
|
340
340
|
},
|
|
341
|
-
url:
|
|
342
|
-
protoPath: "/v2/orders/{id}",
|
|
341
|
+
url: resolveComWixpressMembershipV2OrdersMemberMemberOrdersServiceUrl({
|
|
342
|
+
protoPath: "/v2/member/orders/{id}",
|
|
343
343
|
data: payload,
|
|
344
344
|
host
|
|
345
345
|
}),
|
|
@@ -366,20 +366,20 @@ function managementGetOrder(payload) {
|
|
|
366
366
|
};
|
|
367
367
|
return metadata;
|
|
368
368
|
}
|
|
369
|
-
return
|
|
369
|
+
return __memberGetOrder;
|
|
370
370
|
}
|
|
371
|
-
function
|
|
372
|
-
function
|
|
371
|
+
function memberListOrders(payload) {
|
|
372
|
+
function __memberListOrders({ host }) {
|
|
373
373
|
const metadata = {
|
|
374
374
|
entityFqdn: "wix.pricing_plans.v2.order",
|
|
375
375
|
method: "GET",
|
|
376
|
-
methodFqn: "com.wixpress.membership.v2.orders.
|
|
376
|
+
methodFqn: "com.wixpress.membership.v2.orders.member.MemberOrdersService.ListOrders",
|
|
377
377
|
packageName: PACKAGE_NAME,
|
|
378
378
|
migrationOptions: {
|
|
379
379
|
optInTransformResponse: true
|
|
380
380
|
},
|
|
381
|
-
url:
|
|
382
|
-
protoPath: "/v2/orders",
|
|
381
|
+
url: resolveComWixpressMembershipV2OrdersMemberMemberOrdersServiceUrl({
|
|
382
|
+
protoPath: "/v2/member/orders",
|
|
383
383
|
data: payload,
|
|
384
384
|
host
|
|
385
385
|
}),
|
|
@@ -406,110 +406,225 @@ function managementListOrders(payload) {
|
|
|
406
406
|
};
|
|
407
407
|
return metadata;
|
|
408
408
|
}
|
|
409
|
-
return
|
|
409
|
+
return __memberListOrders;
|
|
410
410
|
}
|
|
411
|
-
function
|
|
412
|
-
function
|
|
413
|
-
const serializedData = (0, import_transform_paths.transformPaths)(payload, [
|
|
414
|
-
{
|
|
415
|
-
transformFn: import_timestamp.transformSDKTimestampToRESTTimestamp,
|
|
416
|
-
paths: [{ path: "endDate" }]
|
|
417
|
-
}
|
|
418
|
-
]);
|
|
411
|
+
function requestCancellation(payload) {
|
|
412
|
+
function __requestCancellation({ host }) {
|
|
419
413
|
const metadata = {
|
|
420
414
|
entityFqdn: "wix.pricing_plans.v2.order",
|
|
421
|
-
method: "
|
|
422
|
-
methodFqn: "com.wixpress.membership.v2.orders.
|
|
415
|
+
method: "POST",
|
|
416
|
+
methodFqn: "com.wixpress.membership.v2.orders.member.MemberOrdersService.RequestCancellation",
|
|
423
417
|
packageName: PACKAGE_NAME,
|
|
424
418
|
migrationOptions: {
|
|
425
419
|
optInTransformResponse: true
|
|
426
420
|
},
|
|
427
|
-
url:
|
|
428
|
-
protoPath: "/v2/orders/{id}",
|
|
429
|
-
data:
|
|
421
|
+
url: resolveComWixpressMembershipV2OrdersMemberMemberOrdersServiceUrl({
|
|
422
|
+
protoPath: "/v2/member/orders/{id}/cancel",
|
|
423
|
+
data: payload,
|
|
430
424
|
host
|
|
431
425
|
}),
|
|
432
|
-
data:
|
|
426
|
+
data: payload
|
|
433
427
|
};
|
|
434
428
|
return metadata;
|
|
435
429
|
}
|
|
436
|
-
return
|
|
430
|
+
return __requestCancellation;
|
|
437
431
|
}
|
|
438
|
-
function
|
|
439
|
-
function
|
|
432
|
+
function createOnlineOrder(payload) {
|
|
433
|
+
function __createOnlineOrder({ host }) {
|
|
434
|
+
const serializedData = (0, import_transform_paths.transformPaths)(payload, [
|
|
435
|
+
{
|
|
436
|
+
transformFn: import_timestamp.transformSDKTimestampToRESTTimestamp,
|
|
437
|
+
paths: [{ path: "startDate" }]
|
|
438
|
+
}
|
|
439
|
+
]);
|
|
440
440
|
const metadata = {
|
|
441
441
|
entityFqdn: "wix.pricing_plans.v2.order",
|
|
442
442
|
method: "POST",
|
|
443
|
-
methodFqn: "com.wixpress.membership.v2.orders.
|
|
443
|
+
methodFqn: "com.wixpress.membership.v2.orders.CheckoutService.CreateOnlineOrder",
|
|
444
444
|
packageName: PACKAGE_NAME,
|
|
445
445
|
migrationOptions: {
|
|
446
446
|
optInTransformResponse: true
|
|
447
447
|
},
|
|
448
|
-
url:
|
|
449
|
-
protoPath: "/v2/orders/
|
|
450
|
-
data:
|
|
448
|
+
url: resolveComWixpressMembershipV2OrdersCheckoutServiceUrl({
|
|
449
|
+
protoPath: "/v2/checkout/orders/online",
|
|
450
|
+
data: serializedData,
|
|
451
451
|
host
|
|
452
452
|
}),
|
|
453
|
-
data:
|
|
453
|
+
data: serializedData,
|
|
454
|
+
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
455
|
+
{
|
|
456
|
+
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
457
|
+
paths: [
|
|
458
|
+
{ path: "order.startDate" },
|
|
459
|
+
{ path: "order.endDate" },
|
|
460
|
+
{ path: "order.earliestEndDate" },
|
|
461
|
+
{ path: "order.createdDate" },
|
|
462
|
+
{ path: "order.updatedDate" },
|
|
463
|
+
{ path: "order.cancellation.requestedDate" },
|
|
464
|
+
{ path: "order.pausePeriods.pauseDate" },
|
|
465
|
+
{ path: "order.pausePeriods.resumeDate" },
|
|
466
|
+
{ path: "order.currentCycle.startedDate" },
|
|
467
|
+
{ path: "order.currentCycle.endedDate" },
|
|
468
|
+
{ path: "order.cycles.startedDate" },
|
|
469
|
+
{ path: "order.cycles.endedDate" }
|
|
470
|
+
]
|
|
471
|
+
}
|
|
472
|
+
])
|
|
454
473
|
};
|
|
455
474
|
return metadata;
|
|
456
475
|
}
|
|
457
|
-
return
|
|
476
|
+
return __createOnlineOrder;
|
|
458
477
|
}
|
|
459
|
-
function
|
|
460
|
-
function
|
|
478
|
+
function createOfflineOrder(payload) {
|
|
479
|
+
function __createOfflineOrder({ host }) {
|
|
480
|
+
const serializedData = (0, import_transform_paths.transformPaths)(payload, [
|
|
481
|
+
{
|
|
482
|
+
transformFn: import_timestamp.transformSDKTimestampToRESTTimestamp,
|
|
483
|
+
paths: [{ path: "startDate" }]
|
|
484
|
+
}
|
|
485
|
+
]);
|
|
461
486
|
const metadata = {
|
|
462
487
|
entityFqdn: "wix.pricing_plans.v2.order",
|
|
463
488
|
method: "POST",
|
|
464
|
-
methodFqn: "com.wixpress.membership.v2.orders.
|
|
489
|
+
methodFqn: "com.wixpress.membership.v2.orders.CheckoutService.CreateOfflineOrder",
|
|
465
490
|
packageName: PACKAGE_NAME,
|
|
466
491
|
migrationOptions: {
|
|
467
492
|
optInTransformResponse: true
|
|
468
493
|
},
|
|
469
|
-
url:
|
|
470
|
-
protoPath: "/v2/orders/
|
|
471
|
-
data:
|
|
494
|
+
url: resolveComWixpressMembershipV2OrdersCheckoutServiceUrl({
|
|
495
|
+
protoPath: "/v2/checkout/orders/offline",
|
|
496
|
+
data: serializedData,
|
|
472
497
|
host
|
|
473
498
|
}),
|
|
474
|
-
data:
|
|
499
|
+
data: serializedData,
|
|
500
|
+
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
501
|
+
{
|
|
502
|
+
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
503
|
+
paths: [
|
|
504
|
+
{ path: "order.startDate" },
|
|
505
|
+
{ path: "order.endDate" },
|
|
506
|
+
{ path: "order.earliestEndDate" },
|
|
507
|
+
{ path: "order.createdDate" },
|
|
508
|
+
{ path: "order.updatedDate" },
|
|
509
|
+
{ path: "order.cancellation.requestedDate" },
|
|
510
|
+
{ path: "order.pausePeriods.pauseDate" },
|
|
511
|
+
{ path: "order.pausePeriods.resumeDate" },
|
|
512
|
+
{ path: "order.currentCycle.startedDate" },
|
|
513
|
+
{ path: "order.currentCycle.endedDate" },
|
|
514
|
+
{ path: "order.cycles.startedDate" },
|
|
515
|
+
{ path: "order.cycles.endedDate" }
|
|
516
|
+
]
|
|
517
|
+
}
|
|
518
|
+
])
|
|
475
519
|
};
|
|
476
520
|
return metadata;
|
|
477
521
|
}
|
|
478
|
-
return
|
|
522
|
+
return __createOfflineOrder;
|
|
479
523
|
}
|
|
480
|
-
function
|
|
481
|
-
function
|
|
524
|
+
function getOnlineOrderPreview(payload) {
|
|
525
|
+
function __getOnlineOrderPreview({ host }) {
|
|
526
|
+
const serializedData = (0, import_transform_paths.transformPaths)(payload, [
|
|
527
|
+
{
|
|
528
|
+
transformFn: import_timestamp.transformSDKTimestampToRESTTimestamp,
|
|
529
|
+
paths: [{ path: "startDate" }]
|
|
530
|
+
}
|
|
531
|
+
]);
|
|
482
532
|
const metadata = {
|
|
483
533
|
entityFqdn: "wix.pricing_plans.v2.order",
|
|
484
534
|
method: "POST",
|
|
485
|
-
methodFqn: "com.wixpress.membership.v2.orders.
|
|
535
|
+
methodFqn: "com.wixpress.membership.v2.orders.CheckoutService.GetOnlineOrderPreview",
|
|
486
536
|
packageName: PACKAGE_NAME,
|
|
487
537
|
migrationOptions: {
|
|
488
538
|
optInTransformResponse: true
|
|
489
539
|
},
|
|
490
|
-
url:
|
|
491
|
-
protoPath: "/v2/orders/
|
|
492
|
-
data:
|
|
540
|
+
url: resolveComWixpressMembershipV2OrdersCheckoutServiceUrl({
|
|
541
|
+
protoPath: "/v2/checkout/orders/preview-online",
|
|
542
|
+
data: serializedData,
|
|
493
543
|
host
|
|
494
544
|
}),
|
|
495
|
-
data:
|
|
545
|
+
data: serializedData,
|
|
546
|
+
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
547
|
+
{
|
|
548
|
+
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
549
|
+
paths: [
|
|
550
|
+
{ path: "order.startDate" },
|
|
551
|
+
{ path: "order.endDate" },
|
|
552
|
+
{ path: "order.earliestEndDate" },
|
|
553
|
+
{ path: "order.createdDate" },
|
|
554
|
+
{ path: "order.updatedDate" },
|
|
555
|
+
{ path: "order.cancellation.requestedDate" },
|
|
556
|
+
{ path: "order.pausePeriods.pauseDate" },
|
|
557
|
+
{ path: "order.pausePeriods.resumeDate" },
|
|
558
|
+
{ path: "order.currentCycle.startedDate" },
|
|
559
|
+
{ path: "order.currentCycle.endedDate" },
|
|
560
|
+
{ path: "order.cycles.startedDate" },
|
|
561
|
+
{ path: "order.cycles.endedDate" }
|
|
562
|
+
]
|
|
563
|
+
}
|
|
564
|
+
])
|
|
496
565
|
};
|
|
497
566
|
return metadata;
|
|
498
567
|
}
|
|
499
|
-
return
|
|
568
|
+
return __getOnlineOrderPreview;
|
|
500
569
|
}
|
|
501
|
-
function
|
|
502
|
-
function
|
|
570
|
+
function getOfflineOrderPreview(payload) {
|
|
571
|
+
function __getOfflineOrderPreview({ host }) {
|
|
572
|
+
const serializedData = (0, import_transform_paths.transformPaths)(payload, [
|
|
573
|
+
{
|
|
574
|
+
transformFn: import_timestamp.transformSDKTimestampToRESTTimestamp,
|
|
575
|
+
paths: [{ path: "startDate" }]
|
|
576
|
+
}
|
|
577
|
+
]);
|
|
503
578
|
const metadata = {
|
|
504
579
|
entityFqdn: "wix.pricing_plans.v2.order",
|
|
505
580
|
method: "POST",
|
|
506
|
-
methodFqn: "com.wixpress.membership.v2.orders.
|
|
581
|
+
methodFqn: "com.wixpress.membership.v2.orders.CheckoutService.GetOfflineOrderPreview",
|
|
507
582
|
packageName: PACKAGE_NAME,
|
|
508
583
|
migrationOptions: {
|
|
509
584
|
optInTransformResponse: true
|
|
510
585
|
},
|
|
511
|
-
url:
|
|
512
|
-
protoPath: "/v2/orders/
|
|
586
|
+
url: resolveComWixpressMembershipV2OrdersCheckoutServiceUrl({
|
|
587
|
+
protoPath: "/v2/checkout/orders/preview-offline",
|
|
588
|
+
data: serializedData,
|
|
589
|
+
host
|
|
590
|
+
}),
|
|
591
|
+
data: serializedData,
|
|
592
|
+
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
593
|
+
{
|
|
594
|
+
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
595
|
+
paths: [
|
|
596
|
+
{ path: "order.startDate" },
|
|
597
|
+
{ path: "order.endDate" },
|
|
598
|
+
{ path: "order.earliestEndDate" },
|
|
599
|
+
{ path: "order.createdDate" },
|
|
600
|
+
{ path: "order.updatedDate" },
|
|
601
|
+
{ path: "order.cancellation.requestedDate" },
|
|
602
|
+
{ path: "order.pausePeriods.pauseDate" },
|
|
603
|
+
{ path: "order.pausePeriods.resumeDate" },
|
|
604
|
+
{ path: "order.currentCycle.startedDate" },
|
|
605
|
+
{ path: "order.currentCycle.endedDate" },
|
|
606
|
+
{ path: "order.cycles.startedDate" },
|
|
607
|
+
{ path: "order.cycles.endedDate" }
|
|
608
|
+
]
|
|
609
|
+
}
|
|
610
|
+
])
|
|
611
|
+
};
|
|
612
|
+
return metadata;
|
|
613
|
+
}
|
|
614
|
+
return __getOfflineOrderPreview;
|
|
615
|
+
}
|
|
616
|
+
function getPricePreview(payload) {
|
|
617
|
+
function __getPricePreview({ host }) {
|
|
618
|
+
const metadata = {
|
|
619
|
+
entityFqdn: "wix.pricing_plans.v2.order",
|
|
620
|
+
method: "POST",
|
|
621
|
+
methodFqn: "com.wixpress.membership.v2.orders.CheckoutService.GetPricePreview",
|
|
622
|
+
packageName: PACKAGE_NAME,
|
|
623
|
+
migrationOptions: {
|
|
624
|
+
optInTransformResponse: true
|
|
625
|
+
},
|
|
626
|
+
url: resolveComWixpressMembershipV2OrdersCheckoutServiceUrl({
|
|
627
|
+
protoPath: "/v2/checkout/orders/price-preview",
|
|
513
628
|
data: payload,
|
|
514
629
|
host
|
|
515
630
|
}),
|
|
@@ -517,20 +632,20 @@ function resumeOrder(payload) {
|
|
|
517
632
|
};
|
|
518
633
|
return metadata;
|
|
519
634
|
}
|
|
520
|
-
return
|
|
635
|
+
return __getPricePreview;
|
|
521
636
|
}
|
|
522
|
-
function
|
|
523
|
-
function
|
|
637
|
+
function managementGetOrder(payload) {
|
|
638
|
+
function __managementGetOrder({ host }) {
|
|
524
639
|
const metadata = {
|
|
525
640
|
entityFqdn: "wix.pricing_plans.v2.order",
|
|
526
641
|
method: "GET",
|
|
527
|
-
methodFqn: "com.wixpress.membership.v2.orders.
|
|
642
|
+
methodFqn: "com.wixpress.membership.v2.orders.OrderManagementService.GetOrder",
|
|
528
643
|
packageName: PACKAGE_NAME,
|
|
529
644
|
migrationOptions: {
|
|
530
645
|
optInTransformResponse: true
|
|
531
646
|
},
|
|
532
|
-
url:
|
|
533
|
-
protoPath: "/v2/
|
|
647
|
+
url: resolveComWixpressMembershipV2OrdersOrderManagementServiceUrl({
|
|
648
|
+
protoPath: "/v2/orders/{id}",
|
|
534
649
|
data: payload,
|
|
535
650
|
host
|
|
536
651
|
}),
|
|
@@ -557,20 +672,20 @@ function memberGetOrder(payload) {
|
|
|
557
672
|
};
|
|
558
673
|
return metadata;
|
|
559
674
|
}
|
|
560
|
-
return
|
|
675
|
+
return __managementGetOrder;
|
|
561
676
|
}
|
|
562
|
-
function
|
|
563
|
-
function
|
|
677
|
+
function managementListOrders(payload) {
|
|
678
|
+
function __managementListOrders({ host }) {
|
|
564
679
|
const metadata = {
|
|
565
680
|
entityFqdn: "wix.pricing_plans.v2.order",
|
|
566
681
|
method: "GET",
|
|
567
|
-
methodFqn: "com.wixpress.membership.v2.orders.
|
|
682
|
+
methodFqn: "com.wixpress.membership.v2.orders.OrderManagementService.ListOrders",
|
|
568
683
|
packageName: PACKAGE_NAME,
|
|
569
684
|
migrationOptions: {
|
|
570
685
|
optInTransformResponse: true
|
|
571
686
|
},
|
|
572
|
-
url:
|
|
573
|
-
protoPath: "/v2/
|
|
687
|
+
url: resolveComWixpressMembershipV2OrdersOrderManagementServiceUrl({
|
|
688
|
+
protoPath: "/v2/orders",
|
|
574
689
|
data: payload,
|
|
575
690
|
host
|
|
576
691
|
}),
|
|
@@ -597,225 +712,110 @@ function memberListOrders(payload) {
|
|
|
597
712
|
};
|
|
598
713
|
return metadata;
|
|
599
714
|
}
|
|
600
|
-
return
|
|
601
|
-
}
|
|
602
|
-
function requestCancellation(payload) {
|
|
603
|
-
function __requestCancellation({ host }) {
|
|
604
|
-
const metadata = {
|
|
605
|
-
entityFqdn: "wix.pricing_plans.v2.order",
|
|
606
|
-
method: "POST",
|
|
607
|
-
methodFqn: "com.wixpress.membership.v2.orders.member.MemberOrdersService.RequestCancellation",
|
|
608
|
-
packageName: PACKAGE_NAME,
|
|
609
|
-
migrationOptions: {
|
|
610
|
-
optInTransformResponse: true
|
|
611
|
-
},
|
|
612
|
-
url: resolveComWixpressMembershipV2OrdersMemberMemberOrdersServiceUrl({
|
|
613
|
-
protoPath: "/v2/member/orders/{id}/cancel",
|
|
614
|
-
data: payload,
|
|
615
|
-
host
|
|
616
|
-
}),
|
|
617
|
-
data: payload
|
|
618
|
-
};
|
|
619
|
-
return metadata;
|
|
620
|
-
}
|
|
621
|
-
return __requestCancellation;
|
|
715
|
+
return __managementListOrders;
|
|
622
716
|
}
|
|
623
|
-
function
|
|
624
|
-
function
|
|
717
|
+
function postponeEndDate(payload) {
|
|
718
|
+
function __postponeEndDate({ host }) {
|
|
625
719
|
const serializedData = (0, import_transform_paths.transformPaths)(payload, [
|
|
626
720
|
{
|
|
627
721
|
transformFn: import_timestamp.transformSDKTimestampToRESTTimestamp,
|
|
628
|
-
paths: [{ path: "
|
|
722
|
+
paths: [{ path: "endDate" }]
|
|
629
723
|
}
|
|
630
724
|
]);
|
|
631
725
|
const metadata = {
|
|
632
726
|
entityFqdn: "wix.pricing_plans.v2.order",
|
|
633
|
-
method: "
|
|
634
|
-
methodFqn: "com.wixpress.membership.v2.orders.
|
|
727
|
+
method: "PATCH",
|
|
728
|
+
methodFqn: "com.wixpress.membership.v2.orders.OrderManagementService.PostponeEndDate",
|
|
635
729
|
packageName: PACKAGE_NAME,
|
|
636
730
|
migrationOptions: {
|
|
637
731
|
optInTransformResponse: true
|
|
638
732
|
},
|
|
639
|
-
url:
|
|
640
|
-
protoPath: "/v2/
|
|
733
|
+
url: resolveComWixpressMembershipV2OrdersOrderManagementServiceUrl({
|
|
734
|
+
protoPath: "/v2/orders/{id}",
|
|
641
735
|
data: serializedData,
|
|
642
736
|
host
|
|
643
737
|
}),
|
|
644
|
-
data: serializedData
|
|
645
|
-
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
646
|
-
{
|
|
647
|
-
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
648
|
-
paths: [
|
|
649
|
-
{ path: "order.startDate" },
|
|
650
|
-
{ path: "order.endDate" },
|
|
651
|
-
{ path: "order.earliestEndDate" },
|
|
652
|
-
{ path: "order.createdDate" },
|
|
653
|
-
{ path: "order.updatedDate" },
|
|
654
|
-
{ path: "order.cancellation.requestedDate" },
|
|
655
|
-
{ path: "order.pausePeriods.pauseDate" },
|
|
656
|
-
{ path: "order.pausePeriods.resumeDate" },
|
|
657
|
-
{ path: "order.currentCycle.startedDate" },
|
|
658
|
-
{ path: "order.currentCycle.endedDate" },
|
|
659
|
-
{ path: "order.cycles.startedDate" },
|
|
660
|
-
{ path: "order.cycles.endedDate" }
|
|
661
|
-
]
|
|
662
|
-
}
|
|
663
|
-
])
|
|
738
|
+
data: serializedData
|
|
664
739
|
};
|
|
665
740
|
return metadata;
|
|
666
741
|
}
|
|
667
|
-
return
|
|
742
|
+
return __postponeEndDate;
|
|
668
743
|
}
|
|
669
|
-
function
|
|
670
|
-
function
|
|
671
|
-
const serializedData = (0, import_transform_paths.transformPaths)(payload, [
|
|
672
|
-
{
|
|
673
|
-
transformFn: import_timestamp.transformSDKTimestampToRESTTimestamp,
|
|
674
|
-
paths: [{ path: "startDate" }]
|
|
675
|
-
}
|
|
676
|
-
]);
|
|
744
|
+
function cancelOrder(payload) {
|
|
745
|
+
function __cancelOrder({ host }) {
|
|
677
746
|
const metadata = {
|
|
678
747
|
entityFqdn: "wix.pricing_plans.v2.order",
|
|
679
748
|
method: "POST",
|
|
680
|
-
methodFqn: "com.wixpress.membership.v2.orders.
|
|
749
|
+
methodFqn: "com.wixpress.membership.v2.orders.OrderManagementService.CancelOrder",
|
|
681
750
|
packageName: PACKAGE_NAME,
|
|
682
751
|
migrationOptions: {
|
|
683
752
|
optInTransformResponse: true
|
|
684
753
|
},
|
|
685
|
-
url:
|
|
686
|
-
protoPath: "/v2/
|
|
687
|
-
data:
|
|
754
|
+
url: resolveComWixpressMembershipV2OrdersOrderManagementServiceUrl({
|
|
755
|
+
protoPath: "/v2/orders/{id}/cancel",
|
|
756
|
+
data: payload,
|
|
688
757
|
host
|
|
689
758
|
}),
|
|
690
|
-
data:
|
|
691
|
-
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
692
|
-
{
|
|
693
|
-
transformFn: import_timestamp2.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
|
-
])
|
|
759
|
+
data: payload
|
|
710
760
|
};
|
|
711
761
|
return metadata;
|
|
712
762
|
}
|
|
713
|
-
return
|
|
763
|
+
return __cancelOrder;
|
|
714
764
|
}
|
|
715
|
-
function
|
|
716
|
-
function
|
|
717
|
-
const serializedData = (0, import_transform_paths.transformPaths)(payload, [
|
|
718
|
-
{
|
|
719
|
-
transformFn: import_timestamp.transformSDKTimestampToRESTTimestamp,
|
|
720
|
-
paths: [{ path: "startDate" }]
|
|
721
|
-
}
|
|
722
|
-
]);
|
|
765
|
+
function markAsPaid(payload) {
|
|
766
|
+
function __markAsPaid({ host }) {
|
|
723
767
|
const metadata = {
|
|
724
768
|
entityFqdn: "wix.pricing_plans.v2.order",
|
|
725
769
|
method: "POST",
|
|
726
|
-
methodFqn: "com.wixpress.membership.v2.orders.
|
|
770
|
+
methodFqn: "com.wixpress.membership.v2.orders.OrderManagementService.MarkAsPaid",
|
|
727
771
|
packageName: PACKAGE_NAME,
|
|
728
772
|
migrationOptions: {
|
|
729
773
|
optInTransformResponse: true
|
|
730
774
|
},
|
|
731
|
-
url:
|
|
732
|
-
protoPath: "/v2/
|
|
733
|
-
data:
|
|
775
|
+
url: resolveComWixpressMembershipV2OrdersOrderManagementServiceUrl({
|
|
776
|
+
protoPath: "/v2/orders/{id}/mark-as-paid",
|
|
777
|
+
data: payload,
|
|
734
778
|
host
|
|
735
779
|
}),
|
|
736
|
-
data:
|
|
737
|
-
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
738
|
-
{
|
|
739
|
-
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
740
|
-
paths: [
|
|
741
|
-
{ path: "order.startDate" },
|
|
742
|
-
{ path: "order.endDate" },
|
|
743
|
-
{ path: "order.earliestEndDate" },
|
|
744
|
-
{ path: "order.createdDate" },
|
|
745
|
-
{ path: "order.updatedDate" },
|
|
746
|
-
{ path: "order.cancellation.requestedDate" },
|
|
747
|
-
{ path: "order.pausePeriods.pauseDate" },
|
|
748
|
-
{ path: "order.pausePeriods.resumeDate" },
|
|
749
|
-
{ path: "order.currentCycle.startedDate" },
|
|
750
|
-
{ path: "order.currentCycle.endedDate" },
|
|
751
|
-
{ path: "order.cycles.startedDate" },
|
|
752
|
-
{ path: "order.cycles.endedDate" }
|
|
753
|
-
]
|
|
754
|
-
}
|
|
755
|
-
])
|
|
780
|
+
data: payload
|
|
756
781
|
};
|
|
757
782
|
return metadata;
|
|
758
783
|
}
|
|
759
|
-
return
|
|
784
|
+
return __markAsPaid;
|
|
760
785
|
}
|
|
761
|
-
function
|
|
762
|
-
function
|
|
763
|
-
const serializedData = (0, import_transform_paths.transformPaths)(payload, [
|
|
764
|
-
{
|
|
765
|
-
transformFn: import_timestamp.transformSDKTimestampToRESTTimestamp,
|
|
766
|
-
paths: [{ path: "startDate" }]
|
|
767
|
-
}
|
|
768
|
-
]);
|
|
786
|
+
function pauseOrder(payload) {
|
|
787
|
+
function __pauseOrder({ host }) {
|
|
769
788
|
const metadata = {
|
|
770
789
|
entityFqdn: "wix.pricing_plans.v2.order",
|
|
771
790
|
method: "POST",
|
|
772
|
-
methodFqn: "com.wixpress.membership.v2.orders.
|
|
791
|
+
methodFqn: "com.wixpress.membership.v2.orders.OrderManagementService.PauseOrder",
|
|
773
792
|
packageName: PACKAGE_NAME,
|
|
774
793
|
migrationOptions: {
|
|
775
794
|
optInTransformResponse: true
|
|
776
795
|
},
|
|
777
|
-
url:
|
|
778
|
-
protoPath: "/v2/
|
|
779
|
-
data:
|
|
796
|
+
url: resolveComWixpressMembershipV2OrdersOrderManagementServiceUrl({
|
|
797
|
+
protoPath: "/v2/orders/{id}/pause",
|
|
798
|
+
data: payload,
|
|
780
799
|
host
|
|
781
800
|
}),
|
|
782
|
-
data:
|
|
783
|
-
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
784
|
-
{
|
|
785
|
-
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
786
|
-
paths: [
|
|
787
|
-
{ path: "order.startDate" },
|
|
788
|
-
{ path: "order.endDate" },
|
|
789
|
-
{ path: "order.earliestEndDate" },
|
|
790
|
-
{ path: "order.createdDate" },
|
|
791
|
-
{ path: "order.updatedDate" },
|
|
792
|
-
{ path: "order.cancellation.requestedDate" },
|
|
793
|
-
{ path: "order.pausePeriods.pauseDate" },
|
|
794
|
-
{ path: "order.pausePeriods.resumeDate" },
|
|
795
|
-
{ path: "order.currentCycle.startedDate" },
|
|
796
|
-
{ path: "order.currentCycle.endedDate" },
|
|
797
|
-
{ path: "order.cycles.startedDate" },
|
|
798
|
-
{ path: "order.cycles.endedDate" }
|
|
799
|
-
]
|
|
800
|
-
}
|
|
801
|
-
])
|
|
801
|
+
data: payload
|
|
802
802
|
};
|
|
803
803
|
return metadata;
|
|
804
804
|
}
|
|
805
|
-
return
|
|
805
|
+
return __pauseOrder;
|
|
806
806
|
}
|
|
807
|
-
function
|
|
808
|
-
function
|
|
807
|
+
function resumeOrder(payload) {
|
|
808
|
+
function __resumeOrder({ host }) {
|
|
809
809
|
const metadata = {
|
|
810
810
|
entityFqdn: "wix.pricing_plans.v2.order",
|
|
811
811
|
method: "POST",
|
|
812
|
-
methodFqn: "com.wixpress.membership.v2.orders.
|
|
812
|
+
methodFqn: "com.wixpress.membership.v2.orders.OrderManagementService.ResumeOrder",
|
|
813
813
|
packageName: PACKAGE_NAME,
|
|
814
814
|
migrationOptions: {
|
|
815
815
|
optInTransformResponse: true
|
|
816
816
|
},
|
|
817
|
-
url:
|
|
818
|
-
protoPath: "/v2/
|
|
817
|
+
url: resolveComWixpressMembershipV2OrdersOrderManagementServiceUrl({
|
|
818
|
+
protoPath: "/v2/orders/{id}/resume",
|
|
819
819
|
data: payload,
|
|
820
820
|
host
|
|
821
821
|
}),
|
|
@@ -823,7 +823,7 @@ function getPricePreview(payload) {
|
|
|
823
823
|
};
|
|
824
824
|
return metadata;
|
|
825
825
|
}
|
|
826
|
-
return
|
|
826
|
+
return __resumeOrder;
|
|
827
827
|
}
|
|
828
828
|
|
|
829
829
|
// src/pricing-plans-v2-order-orders.types.ts
|
|
@@ -900,6 +900,14 @@ var SortOrder = /* @__PURE__ */ ((SortOrder2) => {
|
|
|
900
900
|
SortOrder2["DESC"] = "DESC";
|
|
901
901
|
return SortOrder2;
|
|
902
902
|
})(SortOrder || {});
|
|
903
|
+
var WebhookIdentityType = /* @__PURE__ */ ((WebhookIdentityType2) => {
|
|
904
|
+
WebhookIdentityType2["UNKNOWN"] = "UNKNOWN";
|
|
905
|
+
WebhookIdentityType2["ANONYMOUS_VISITOR"] = "ANONYMOUS_VISITOR";
|
|
906
|
+
WebhookIdentityType2["MEMBER"] = "MEMBER";
|
|
907
|
+
WebhookIdentityType2["WIX_USER"] = "WIX_USER";
|
|
908
|
+
WebhookIdentityType2["APP"] = "APP";
|
|
909
|
+
return WebhookIdentityType2;
|
|
910
|
+
})(WebhookIdentityType || {});
|
|
903
911
|
var ReasonNotSuspendable = /* @__PURE__ */ ((ReasonNotSuspendable2) => {
|
|
904
912
|
ReasonNotSuspendable2["UNDEFINED"] = "UNDEFINED";
|
|
905
913
|
ReasonNotSuspendable2["PENDING"] = "PENDING";
|
|
@@ -911,19 +919,11 @@ var ReasonNotSuspendable = /* @__PURE__ */ ((ReasonNotSuspendable2) => {
|
|
|
911
919
|
ReasonNotSuspendable2["OLD_STRIPE"] = "OLD_STRIPE";
|
|
912
920
|
return ReasonNotSuspendable2;
|
|
913
921
|
})(ReasonNotSuspendable || {});
|
|
914
|
-
var WebhookIdentityType = /* @__PURE__ */ ((WebhookIdentityType2) => {
|
|
915
|
-
WebhookIdentityType2["UNKNOWN"] = "UNKNOWN";
|
|
916
|
-
WebhookIdentityType2["ANONYMOUS_VISITOR"] = "ANONYMOUS_VISITOR";
|
|
917
|
-
WebhookIdentityType2["MEMBER"] = "MEMBER";
|
|
918
|
-
WebhookIdentityType2["WIX_USER"] = "WIX_USER";
|
|
919
|
-
WebhookIdentityType2["APP"] = "APP";
|
|
920
|
-
return WebhookIdentityType2;
|
|
921
|
-
})(WebhookIdentityType || {});
|
|
922
922
|
|
|
923
923
|
// src/pricing-plans-v2-order-orders.meta.ts
|
|
924
|
-
function
|
|
924
|
+
function memberGetOrder2() {
|
|
925
925
|
const payload = { id: ":id" };
|
|
926
|
-
const getRequestOptions =
|
|
926
|
+
const getRequestOptions = memberGetOrder(payload);
|
|
927
927
|
const getUrl = (context) => {
|
|
928
928
|
const { url } = getRequestOptions(context);
|
|
929
929
|
return url;
|
|
@@ -931,7 +931,7 @@ function managementGetOrder2() {
|
|
|
931
931
|
return {
|
|
932
932
|
getUrl,
|
|
933
933
|
httpMethod: "GET",
|
|
934
|
-
path: "/v2/orders/{id}",
|
|
934
|
+
path: "/v2/member/orders/{id}",
|
|
935
935
|
pathParams: { id: "id" },
|
|
936
936
|
__requestType: null,
|
|
937
937
|
__originalRequestType: null,
|
|
@@ -939,9 +939,9 @@ function managementGetOrder2() {
|
|
|
939
939
|
__originalResponseType: null
|
|
940
940
|
};
|
|
941
941
|
}
|
|
942
|
-
function
|
|
942
|
+
function memberListOrders2() {
|
|
943
943
|
const payload = {};
|
|
944
|
-
const getRequestOptions =
|
|
944
|
+
const getRequestOptions = memberListOrders(payload);
|
|
945
945
|
const getUrl = (context) => {
|
|
946
946
|
const { url } = getRequestOptions(context);
|
|
947
947
|
return url;
|
|
@@ -949,7 +949,7 @@ function managementListOrders2() {
|
|
|
949
949
|
return {
|
|
950
950
|
getUrl,
|
|
951
951
|
httpMethod: "GET",
|
|
952
|
-
path: "/v2/orders",
|
|
952
|
+
path: "/v2/member/orders",
|
|
953
953
|
pathParams: {},
|
|
954
954
|
__requestType: null,
|
|
955
955
|
__originalRequestType: null,
|
|
@@ -957,17 +957,17 @@ function managementListOrders2() {
|
|
|
957
957
|
__originalResponseType: null
|
|
958
958
|
};
|
|
959
959
|
}
|
|
960
|
-
function
|
|
960
|
+
function requestCancellation2() {
|
|
961
961
|
const payload = { id: ":id" };
|
|
962
|
-
const getRequestOptions =
|
|
962
|
+
const getRequestOptions = requestCancellation(payload);
|
|
963
963
|
const getUrl = (context) => {
|
|
964
964
|
const { url } = getRequestOptions(context);
|
|
965
965
|
return url;
|
|
966
966
|
};
|
|
967
967
|
return {
|
|
968
968
|
getUrl,
|
|
969
|
-
httpMethod: "
|
|
970
|
-
path: "/v2/orders/{id}",
|
|
969
|
+
httpMethod: "POST",
|
|
970
|
+
path: "/v2/member/orders/{id}/cancel",
|
|
971
971
|
pathParams: { id: "id" },
|
|
972
972
|
__requestType: null,
|
|
973
973
|
__originalRequestType: null,
|
|
@@ -975,9 +975,9 @@ function postponeEndDate2() {
|
|
|
975
975
|
__originalResponseType: null
|
|
976
976
|
};
|
|
977
977
|
}
|
|
978
|
-
function
|
|
979
|
-
const payload = {
|
|
980
|
-
const getRequestOptions =
|
|
978
|
+
function createOnlineOrder2() {
|
|
979
|
+
const payload = {};
|
|
980
|
+
const getRequestOptions = createOnlineOrder(payload);
|
|
981
981
|
const getUrl = (context) => {
|
|
982
982
|
const { url } = getRequestOptions(context);
|
|
983
983
|
return url;
|
|
@@ -985,17 +985,17 @@ function cancelOrder2() {
|
|
|
985
985
|
return {
|
|
986
986
|
getUrl,
|
|
987
987
|
httpMethod: "POST",
|
|
988
|
-
path: "/v2/orders/
|
|
989
|
-
pathParams: {
|
|
988
|
+
path: "/v2/checkout/orders/online",
|
|
989
|
+
pathParams: {},
|
|
990
990
|
__requestType: null,
|
|
991
991
|
__originalRequestType: null,
|
|
992
992
|
__responseType: null,
|
|
993
993
|
__originalResponseType: null
|
|
994
994
|
};
|
|
995
995
|
}
|
|
996
|
-
function
|
|
997
|
-
const payload = {
|
|
998
|
-
const getRequestOptions =
|
|
996
|
+
function createOfflineOrder2() {
|
|
997
|
+
const payload = {};
|
|
998
|
+
const getRequestOptions = createOfflineOrder(payload);
|
|
999
999
|
const getUrl = (context) => {
|
|
1000
1000
|
const { url } = getRequestOptions(context);
|
|
1001
1001
|
return url;
|
|
@@ -1003,17 +1003,17 @@ function markAsPaid2() {
|
|
|
1003
1003
|
return {
|
|
1004
1004
|
getUrl,
|
|
1005
1005
|
httpMethod: "POST",
|
|
1006
|
-
path: "/v2/orders/
|
|
1007
|
-
pathParams: {
|
|
1006
|
+
path: "/v2/checkout/orders/offline",
|
|
1007
|
+
pathParams: {},
|
|
1008
1008
|
__requestType: null,
|
|
1009
1009
|
__originalRequestType: null,
|
|
1010
1010
|
__responseType: null,
|
|
1011
1011
|
__originalResponseType: null
|
|
1012
1012
|
};
|
|
1013
1013
|
}
|
|
1014
|
-
function
|
|
1015
|
-
const payload = {
|
|
1016
|
-
const getRequestOptions =
|
|
1014
|
+
function getOnlineOrderPreview2() {
|
|
1015
|
+
const payload = {};
|
|
1016
|
+
const getRequestOptions = getOnlineOrderPreview(payload);
|
|
1017
1017
|
const getUrl = (context) => {
|
|
1018
1018
|
const { url } = getRequestOptions(context);
|
|
1019
1019
|
return url;
|
|
@@ -1021,17 +1021,17 @@ function pauseOrder2() {
|
|
|
1021
1021
|
return {
|
|
1022
1022
|
getUrl,
|
|
1023
1023
|
httpMethod: "POST",
|
|
1024
|
-
path: "/v2/orders/
|
|
1025
|
-
pathParams: {
|
|
1024
|
+
path: "/v2/checkout/orders/preview-online",
|
|
1025
|
+
pathParams: {},
|
|
1026
1026
|
__requestType: null,
|
|
1027
1027
|
__originalRequestType: null,
|
|
1028
1028
|
__responseType: null,
|
|
1029
1029
|
__originalResponseType: null
|
|
1030
1030
|
};
|
|
1031
1031
|
}
|
|
1032
|
-
function
|
|
1033
|
-
const payload = {
|
|
1034
|
-
const getRequestOptions =
|
|
1032
|
+
function getOfflineOrderPreview2() {
|
|
1033
|
+
const payload = {};
|
|
1034
|
+
const getRequestOptions = getOfflineOrderPreview(payload);
|
|
1035
1035
|
const getUrl = (context) => {
|
|
1036
1036
|
const { url } = getRequestOptions(context);
|
|
1037
1037
|
return url;
|
|
@@ -1039,35 +1039,35 @@ function resumeOrder2() {
|
|
|
1039
1039
|
return {
|
|
1040
1040
|
getUrl,
|
|
1041
1041
|
httpMethod: "POST",
|
|
1042
|
-
path: "/v2/orders/
|
|
1043
|
-
pathParams: {
|
|
1042
|
+
path: "/v2/checkout/orders/preview-offline",
|
|
1043
|
+
pathParams: {},
|
|
1044
1044
|
__requestType: null,
|
|
1045
1045
|
__originalRequestType: null,
|
|
1046
1046
|
__responseType: null,
|
|
1047
1047
|
__originalResponseType: null
|
|
1048
1048
|
};
|
|
1049
1049
|
}
|
|
1050
|
-
function
|
|
1051
|
-
const payload = {
|
|
1052
|
-
const getRequestOptions =
|
|
1050
|
+
function getPricePreview2() {
|
|
1051
|
+
const payload = {};
|
|
1052
|
+
const getRequestOptions = getPricePreview(payload);
|
|
1053
1053
|
const getUrl = (context) => {
|
|
1054
1054
|
const { url } = getRequestOptions(context);
|
|
1055
1055
|
return url;
|
|
1056
1056
|
};
|
|
1057
1057
|
return {
|
|
1058
1058
|
getUrl,
|
|
1059
|
-
httpMethod: "
|
|
1060
|
-
path: "/v2/
|
|
1061
|
-
pathParams: {
|
|
1059
|
+
httpMethod: "POST",
|
|
1060
|
+
path: "/v2/checkout/orders/price-preview",
|
|
1061
|
+
pathParams: {},
|
|
1062
1062
|
__requestType: null,
|
|
1063
1063
|
__originalRequestType: null,
|
|
1064
1064
|
__responseType: null,
|
|
1065
1065
|
__originalResponseType: null
|
|
1066
1066
|
};
|
|
1067
1067
|
}
|
|
1068
|
-
function
|
|
1069
|
-
const payload = {};
|
|
1070
|
-
const getRequestOptions =
|
|
1068
|
+
function managementGetOrder2() {
|
|
1069
|
+
const payload = { id: ":id" };
|
|
1070
|
+
const getRequestOptions = managementGetOrder(payload);
|
|
1071
1071
|
const getUrl = (context) => {
|
|
1072
1072
|
const { url } = getRequestOptions(context);
|
|
1073
1073
|
return url;
|
|
@@ -1075,53 +1075,53 @@ function memberListOrders2() {
|
|
|
1075
1075
|
return {
|
|
1076
1076
|
getUrl,
|
|
1077
1077
|
httpMethod: "GET",
|
|
1078
|
-
path: "/v2/
|
|
1079
|
-
pathParams: {},
|
|
1078
|
+
path: "/v2/orders/{id}",
|
|
1079
|
+
pathParams: { id: "id" },
|
|
1080
1080
|
__requestType: null,
|
|
1081
1081
|
__originalRequestType: null,
|
|
1082
1082
|
__responseType: null,
|
|
1083
1083
|
__originalResponseType: null
|
|
1084
1084
|
};
|
|
1085
1085
|
}
|
|
1086
|
-
function
|
|
1087
|
-
const payload = {
|
|
1088
|
-
const getRequestOptions =
|
|
1086
|
+
function managementListOrders2() {
|
|
1087
|
+
const payload = {};
|
|
1088
|
+
const getRequestOptions = managementListOrders(payload);
|
|
1089
1089
|
const getUrl = (context) => {
|
|
1090
1090
|
const { url } = getRequestOptions(context);
|
|
1091
1091
|
return url;
|
|
1092
1092
|
};
|
|
1093
1093
|
return {
|
|
1094
1094
|
getUrl,
|
|
1095
|
-
httpMethod: "
|
|
1096
|
-
path: "/v2/
|
|
1097
|
-
pathParams: {
|
|
1095
|
+
httpMethod: "GET",
|
|
1096
|
+
path: "/v2/orders",
|
|
1097
|
+
pathParams: {},
|
|
1098
1098
|
__requestType: null,
|
|
1099
1099
|
__originalRequestType: null,
|
|
1100
1100
|
__responseType: null,
|
|
1101
1101
|
__originalResponseType: null
|
|
1102
1102
|
};
|
|
1103
1103
|
}
|
|
1104
|
-
function
|
|
1105
|
-
const payload = {};
|
|
1106
|
-
const getRequestOptions =
|
|
1104
|
+
function postponeEndDate2() {
|
|
1105
|
+
const payload = { id: ":id" };
|
|
1106
|
+
const getRequestOptions = postponeEndDate(payload);
|
|
1107
1107
|
const getUrl = (context) => {
|
|
1108
1108
|
const { url } = getRequestOptions(context);
|
|
1109
1109
|
return url;
|
|
1110
1110
|
};
|
|
1111
1111
|
return {
|
|
1112
1112
|
getUrl,
|
|
1113
|
-
httpMethod: "
|
|
1114
|
-
path: "/v2/
|
|
1115
|
-
pathParams: {},
|
|
1113
|
+
httpMethod: "PATCH",
|
|
1114
|
+
path: "/v2/orders/{id}",
|
|
1115
|
+
pathParams: { id: "id" },
|
|
1116
1116
|
__requestType: null,
|
|
1117
1117
|
__originalRequestType: null,
|
|
1118
1118
|
__responseType: null,
|
|
1119
1119
|
__originalResponseType: null
|
|
1120
1120
|
};
|
|
1121
1121
|
}
|
|
1122
|
-
function
|
|
1123
|
-
const payload = {};
|
|
1124
|
-
const getRequestOptions =
|
|
1122
|
+
function cancelOrder2() {
|
|
1123
|
+
const payload = { id: ":id" };
|
|
1124
|
+
const getRequestOptions = cancelOrder(payload);
|
|
1125
1125
|
const getUrl = (context) => {
|
|
1126
1126
|
const { url } = getRequestOptions(context);
|
|
1127
1127
|
return url;
|
|
@@ -1129,17 +1129,17 @@ function createOfflineOrder2() {
|
|
|
1129
1129
|
return {
|
|
1130
1130
|
getUrl,
|
|
1131
1131
|
httpMethod: "POST",
|
|
1132
|
-
path: "/v2/
|
|
1133
|
-
pathParams: {},
|
|
1132
|
+
path: "/v2/orders/{id}/cancel",
|
|
1133
|
+
pathParams: { id: "id" },
|
|
1134
1134
|
__requestType: null,
|
|
1135
1135
|
__originalRequestType: null,
|
|
1136
1136
|
__responseType: null,
|
|
1137
1137
|
__originalResponseType: null
|
|
1138
1138
|
};
|
|
1139
1139
|
}
|
|
1140
|
-
function
|
|
1141
|
-
const payload = {};
|
|
1142
|
-
const getRequestOptions =
|
|
1140
|
+
function markAsPaid2() {
|
|
1141
|
+
const payload = { id: ":id" };
|
|
1142
|
+
const getRequestOptions = markAsPaid(payload);
|
|
1143
1143
|
const getUrl = (context) => {
|
|
1144
1144
|
const { url } = getRequestOptions(context);
|
|
1145
1145
|
return url;
|
|
@@ -1147,17 +1147,17 @@ function getOnlineOrderPreview2() {
|
|
|
1147
1147
|
return {
|
|
1148
1148
|
getUrl,
|
|
1149
1149
|
httpMethod: "POST",
|
|
1150
|
-
path: "/v2/
|
|
1151
|
-
pathParams: {},
|
|
1150
|
+
path: "/v2/orders/{id}/mark-as-paid",
|
|
1151
|
+
pathParams: { id: "id" },
|
|
1152
1152
|
__requestType: null,
|
|
1153
1153
|
__originalRequestType: null,
|
|
1154
1154
|
__responseType: null,
|
|
1155
1155
|
__originalResponseType: null
|
|
1156
1156
|
};
|
|
1157
1157
|
}
|
|
1158
|
-
function
|
|
1159
|
-
const payload = {};
|
|
1160
|
-
const getRequestOptions =
|
|
1158
|
+
function pauseOrder2() {
|
|
1159
|
+
const payload = { id: ":id" };
|
|
1160
|
+
const getRequestOptions = pauseOrder(payload);
|
|
1161
1161
|
const getUrl = (context) => {
|
|
1162
1162
|
const { url } = getRequestOptions(context);
|
|
1163
1163
|
return url;
|
|
@@ -1165,17 +1165,17 @@ function getOfflineOrderPreview2() {
|
|
|
1165
1165
|
return {
|
|
1166
1166
|
getUrl,
|
|
1167
1167
|
httpMethod: "POST",
|
|
1168
|
-
path: "/v2/
|
|
1169
|
-
pathParams: {},
|
|
1168
|
+
path: "/v2/orders/{id}/pause",
|
|
1169
|
+
pathParams: { id: "id" },
|
|
1170
1170
|
__requestType: null,
|
|
1171
1171
|
__originalRequestType: null,
|
|
1172
1172
|
__responseType: null,
|
|
1173
1173
|
__originalResponseType: null
|
|
1174
1174
|
};
|
|
1175
1175
|
}
|
|
1176
|
-
function
|
|
1177
|
-
const payload = {};
|
|
1178
|
-
const getRequestOptions =
|
|
1176
|
+
function resumeOrder2() {
|
|
1177
|
+
const payload = { id: ":id" };
|
|
1178
|
+
const getRequestOptions = resumeOrder(payload);
|
|
1179
1179
|
const getUrl = (context) => {
|
|
1180
1180
|
const { url } = getRequestOptions(context);
|
|
1181
1181
|
return url;
|
|
@@ -1183,8 +1183,8 @@ function getPricePreview2() {
|
|
|
1183
1183
|
return {
|
|
1184
1184
|
getUrl,
|
|
1185
1185
|
httpMethod: "POST",
|
|
1186
|
-
path: "/v2/
|
|
1187
|
-
pathParams: {},
|
|
1186
|
+
path: "/v2/orders/{id}/resume",
|
|
1187
|
+
pathParams: { id: "id" },
|
|
1188
1188
|
__requestType: null,
|
|
1189
1189
|
__originalRequestType: null,
|
|
1190
1190
|
__responseType: null,
|