@wix/auto_sdk_pricing-plans_orders 1.0.97 → 1.0.98
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/cjs/index.d.ts +153 -153
- package/build/cjs/index.js +642 -642
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +608 -608
- package/build/cjs/index.typings.js +507 -507
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.d.ts +459 -459
- package/build/cjs/meta.js +403 -403
- package/build/cjs/meta.js.map +1 -1
- package/build/es/index.d.mts +153 -153
- package/build/es/index.mjs +642 -642
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +608 -608
- package/build/es/index.typings.mjs +507 -507
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.d.mts +459 -459
- package/build/es/meta.mjs +403 -403
- package/build/es/meta.mjs.map +1 -1
- package/build/internal/cjs/index.d.ts +153 -153
- package/build/internal/cjs/index.js +642 -642
- package/build/internal/cjs/index.js.map +1 -1
- package/build/internal/cjs/index.typings.d.ts +608 -608
- package/build/internal/cjs/index.typings.js +507 -507
- package/build/internal/cjs/index.typings.js.map +1 -1
- package/build/internal/cjs/meta.d.ts +459 -459
- package/build/internal/cjs/meta.js +403 -403
- package/build/internal/cjs/meta.js.map +1 -1
- package/build/internal/es/index.d.mts +153 -153
- package/build/internal/es/index.mjs +642 -642
- package/build/internal/es/index.mjs.map +1 -1
- package/build/internal/es/index.typings.d.mts +608 -608
- package/build/internal/es/index.typings.mjs +507 -507
- package/build/internal/es/index.typings.mjs.map +1 -1
- package/build/internal/es/meta.d.mts +459 -459
- package/build/internal/es/meta.mjs +403 -403
- package/build/internal/es/meta.mjs.map +1 -1
- package/package.json +2 -2
package/build/cjs/meta.js
CHANGED
|
@@ -56,105 +56,6 @@ 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
|
-
}
|
|
158
59
|
function resolveComWixpressMembershipV2OrdersCheckoutServiceUrl(opts) {
|
|
159
60
|
const domainToMappings = {
|
|
160
61
|
"api._api_base_domain_": [
|
|
@@ -327,19 +228,118 @@ function resolveComWixpressMembershipV2OrdersMemberMemberOrdersServiceUrl(opts)
|
|
|
327
228
|
};
|
|
328
229
|
return (0, import_rest_modules2.resolveUrl)(Object.assign(opts, { domainToMappings }));
|
|
329
230
|
}
|
|
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 managementGetOrder(payload) {
|
|
332
|
+
function __managementGetOrder({ 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.OrderManagementService.GetOrder",
|
|
337
337
|
packageName: PACKAGE_NAME,
|
|
338
338
|
migrationOptions: {
|
|
339
339
|
optInTransformResponse: true
|
|
340
340
|
},
|
|
341
|
-
url:
|
|
342
|
-
protoPath: "/v2/
|
|
341
|
+
url: resolveComWixpressMembershipV2OrdersOrderManagementServiceUrl({
|
|
342
|
+
protoPath: "/v2/orders/{id}",
|
|
343
343
|
data: payload,
|
|
344
344
|
host
|
|
345
345
|
}),
|
|
@@ -366,20 +366,20 @@ function memberGetOrder(payload) {
|
|
|
366
366
|
};
|
|
367
367
|
return metadata;
|
|
368
368
|
}
|
|
369
|
-
return
|
|
369
|
+
return __managementGetOrder;
|
|
370
370
|
}
|
|
371
|
-
function
|
|
372
|
-
function
|
|
371
|
+
function managementListOrders(payload) {
|
|
372
|
+
function __managementListOrders({ 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.OrderManagementService.ListOrders",
|
|
377
377
|
packageName: PACKAGE_NAME,
|
|
378
378
|
migrationOptions: {
|
|
379
379
|
optInTransformResponse: true
|
|
380
380
|
},
|
|
381
|
-
url:
|
|
382
|
-
protoPath: "/v2/
|
|
381
|
+
url: resolveComWixpressMembershipV2OrdersOrderManagementServiceUrl({
|
|
382
|
+
protoPath: "/v2/orders",
|
|
383
383
|
data: payload,
|
|
384
384
|
host
|
|
385
385
|
}),
|
|
@@ -406,225 +406,110 @@ function memberListOrders(payload) {
|
|
|
406
406
|
};
|
|
407
407
|
return metadata;
|
|
408
408
|
}
|
|
409
|
-
return
|
|
409
|
+
return __managementListOrders;
|
|
410
410
|
}
|
|
411
|
-
function
|
|
412
|
-
function
|
|
411
|
+
function postponeEndDate(payload) {
|
|
412
|
+
function __postponeEndDate({ host }) {
|
|
413
|
+
const serializedData = (0, import_transform_paths.transformPaths)(payload, [
|
|
414
|
+
{
|
|
415
|
+
transformFn: import_timestamp.transformSDKTimestampToRESTTimestamp,
|
|
416
|
+
paths: [{ path: "endDate" }]
|
|
417
|
+
}
|
|
418
|
+
]);
|
|
413
419
|
const metadata = {
|
|
414
420
|
entityFqdn: "wix.pricing_plans.v2.order",
|
|
415
|
-
method: "
|
|
416
|
-
methodFqn: "com.wixpress.membership.v2.orders.
|
|
421
|
+
method: "PATCH",
|
|
422
|
+
methodFqn: "com.wixpress.membership.v2.orders.OrderManagementService.PostponeEndDate",
|
|
417
423
|
packageName: PACKAGE_NAME,
|
|
418
424
|
migrationOptions: {
|
|
419
425
|
optInTransformResponse: true
|
|
420
426
|
},
|
|
421
|
-
url:
|
|
422
|
-
protoPath: "/v2/
|
|
423
|
-
data:
|
|
427
|
+
url: resolveComWixpressMembershipV2OrdersOrderManagementServiceUrl({
|
|
428
|
+
protoPath: "/v2/orders/{id}",
|
|
429
|
+
data: serializedData,
|
|
424
430
|
host
|
|
425
431
|
}),
|
|
426
|
-
data:
|
|
432
|
+
data: serializedData
|
|
427
433
|
};
|
|
428
434
|
return metadata;
|
|
429
435
|
}
|
|
430
|
-
return
|
|
436
|
+
return __postponeEndDate;
|
|
431
437
|
}
|
|
432
|
-
function
|
|
433
|
-
function
|
|
434
|
-
const serializedData = (0, import_transform_paths.transformPaths)(payload, [
|
|
435
|
-
{
|
|
436
|
-
transformFn: import_timestamp.transformSDKTimestampToRESTTimestamp,
|
|
437
|
-
paths: [{ path: "startDate" }]
|
|
438
|
-
}
|
|
439
|
-
]);
|
|
438
|
+
function cancelOrder(payload) {
|
|
439
|
+
function __cancelOrder({ host }) {
|
|
440
440
|
const metadata = {
|
|
441
441
|
entityFqdn: "wix.pricing_plans.v2.order",
|
|
442
442
|
method: "POST",
|
|
443
|
-
methodFqn: "com.wixpress.membership.v2.orders.
|
|
444
|
-
packageName: PACKAGE_NAME,
|
|
445
|
-
migrationOptions: {
|
|
446
|
-
optInTransformResponse: true
|
|
447
|
-
},
|
|
448
|
-
url: resolveComWixpressMembershipV2OrdersCheckoutServiceUrl({
|
|
449
|
-
protoPath: "/v2/checkout/orders/online",
|
|
450
|
-
data: serializedData,
|
|
451
|
-
host
|
|
452
|
-
}),
|
|
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
|
-
])
|
|
473
|
-
};
|
|
474
|
-
return metadata;
|
|
475
|
-
}
|
|
476
|
-
return __createOnlineOrder;
|
|
477
|
-
}
|
|
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
|
-
]);
|
|
486
|
-
const metadata = {
|
|
487
|
-
entityFqdn: "wix.pricing_plans.v2.order",
|
|
488
|
-
method: "POST",
|
|
489
|
-
methodFqn: "com.wixpress.membership.v2.orders.CheckoutService.CreateOfflineOrder",
|
|
443
|
+
methodFqn: "com.wixpress.membership.v2.orders.OrderManagementService.CancelOrder",
|
|
490
444
|
packageName: PACKAGE_NAME,
|
|
491
445
|
migrationOptions: {
|
|
492
446
|
optInTransformResponse: true
|
|
493
447
|
},
|
|
494
|
-
url:
|
|
495
|
-
protoPath: "/v2/
|
|
496
|
-
data:
|
|
448
|
+
url: resolveComWixpressMembershipV2OrdersOrderManagementServiceUrl({
|
|
449
|
+
protoPath: "/v2/orders/{id}/cancel",
|
|
450
|
+
data: payload,
|
|
497
451
|
host
|
|
498
452
|
}),
|
|
499
|
-
data:
|
|
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
|
-
])
|
|
453
|
+
data: payload
|
|
519
454
|
};
|
|
520
455
|
return metadata;
|
|
521
456
|
}
|
|
522
|
-
return
|
|
457
|
+
return __cancelOrder;
|
|
523
458
|
}
|
|
524
|
-
function
|
|
525
|
-
function
|
|
526
|
-
const serializedData = (0, import_transform_paths.transformPaths)(payload, [
|
|
527
|
-
{
|
|
528
|
-
transformFn: import_timestamp.transformSDKTimestampToRESTTimestamp,
|
|
529
|
-
paths: [{ path: "startDate" }]
|
|
530
|
-
}
|
|
531
|
-
]);
|
|
459
|
+
function markAsPaid(payload) {
|
|
460
|
+
function __markAsPaid({ host }) {
|
|
532
461
|
const metadata = {
|
|
533
462
|
entityFqdn: "wix.pricing_plans.v2.order",
|
|
534
463
|
method: "POST",
|
|
535
|
-
methodFqn: "com.wixpress.membership.v2.orders.
|
|
464
|
+
methodFqn: "com.wixpress.membership.v2.orders.OrderManagementService.MarkAsPaid",
|
|
536
465
|
packageName: PACKAGE_NAME,
|
|
537
466
|
migrationOptions: {
|
|
538
467
|
optInTransformResponse: true
|
|
539
468
|
},
|
|
540
|
-
url:
|
|
541
|
-
protoPath: "/v2/
|
|
542
|
-
data:
|
|
469
|
+
url: resolveComWixpressMembershipV2OrdersOrderManagementServiceUrl({
|
|
470
|
+
protoPath: "/v2/orders/{id}/mark-as-paid",
|
|
471
|
+
data: payload,
|
|
543
472
|
host
|
|
544
473
|
}),
|
|
545
|
-
data:
|
|
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
|
-
])
|
|
474
|
+
data: payload
|
|
565
475
|
};
|
|
566
476
|
return metadata;
|
|
567
477
|
}
|
|
568
|
-
return
|
|
478
|
+
return __markAsPaid;
|
|
569
479
|
}
|
|
570
|
-
function
|
|
571
|
-
function
|
|
572
|
-
const serializedData = (0, import_transform_paths.transformPaths)(payload, [
|
|
573
|
-
{
|
|
574
|
-
transformFn: import_timestamp.transformSDKTimestampToRESTTimestamp,
|
|
575
|
-
paths: [{ path: "startDate" }]
|
|
576
|
-
}
|
|
577
|
-
]);
|
|
480
|
+
function pauseOrder(payload) {
|
|
481
|
+
function __pauseOrder({ host }) {
|
|
578
482
|
const metadata = {
|
|
579
483
|
entityFqdn: "wix.pricing_plans.v2.order",
|
|
580
484
|
method: "POST",
|
|
581
|
-
methodFqn: "com.wixpress.membership.v2.orders.
|
|
485
|
+
methodFqn: "com.wixpress.membership.v2.orders.OrderManagementService.PauseOrder",
|
|
582
486
|
packageName: PACKAGE_NAME,
|
|
583
487
|
migrationOptions: {
|
|
584
488
|
optInTransformResponse: true
|
|
585
489
|
},
|
|
586
|
-
url:
|
|
587
|
-
protoPath: "/v2/
|
|
588
|
-
data:
|
|
490
|
+
url: resolveComWixpressMembershipV2OrdersOrderManagementServiceUrl({
|
|
491
|
+
protoPath: "/v2/orders/{id}/pause",
|
|
492
|
+
data: payload,
|
|
589
493
|
host
|
|
590
494
|
}),
|
|
591
|
-
data:
|
|
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
|
-
])
|
|
495
|
+
data: payload
|
|
611
496
|
};
|
|
612
497
|
return metadata;
|
|
613
498
|
}
|
|
614
|
-
return
|
|
499
|
+
return __pauseOrder;
|
|
615
500
|
}
|
|
616
|
-
function
|
|
617
|
-
function
|
|
501
|
+
function resumeOrder(payload) {
|
|
502
|
+
function __resumeOrder({ host }) {
|
|
618
503
|
const metadata = {
|
|
619
504
|
entityFqdn: "wix.pricing_plans.v2.order",
|
|
620
505
|
method: "POST",
|
|
621
|
-
methodFqn: "com.wixpress.membership.v2.orders.
|
|
506
|
+
methodFqn: "com.wixpress.membership.v2.orders.OrderManagementService.ResumeOrder",
|
|
622
507
|
packageName: PACKAGE_NAME,
|
|
623
508
|
migrationOptions: {
|
|
624
509
|
optInTransformResponse: true
|
|
625
510
|
},
|
|
626
|
-
url:
|
|
627
|
-
protoPath: "/v2/
|
|
511
|
+
url: resolveComWixpressMembershipV2OrdersOrderManagementServiceUrl({
|
|
512
|
+
protoPath: "/v2/orders/{id}/resume",
|
|
628
513
|
data: payload,
|
|
629
514
|
host
|
|
630
515
|
}),
|
|
@@ -632,20 +517,20 @@ function getPricePreview(payload) {
|
|
|
632
517
|
};
|
|
633
518
|
return metadata;
|
|
634
519
|
}
|
|
635
|
-
return
|
|
520
|
+
return __resumeOrder;
|
|
636
521
|
}
|
|
637
|
-
function
|
|
638
|
-
function
|
|
522
|
+
function memberGetOrder(payload) {
|
|
523
|
+
function __memberGetOrder({ host }) {
|
|
639
524
|
const metadata = {
|
|
640
525
|
entityFqdn: "wix.pricing_plans.v2.order",
|
|
641
526
|
method: "GET",
|
|
642
|
-
methodFqn: "com.wixpress.membership.v2.orders.
|
|
527
|
+
methodFqn: "com.wixpress.membership.v2.orders.member.MemberOrdersService.GetOrder",
|
|
643
528
|
packageName: PACKAGE_NAME,
|
|
644
529
|
migrationOptions: {
|
|
645
530
|
optInTransformResponse: true
|
|
646
531
|
},
|
|
647
|
-
url:
|
|
648
|
-
protoPath: "/v2/orders/{id}",
|
|
532
|
+
url: resolveComWixpressMembershipV2OrdersMemberMemberOrdersServiceUrl({
|
|
533
|
+
protoPath: "/v2/member/orders/{id}",
|
|
649
534
|
data: payload,
|
|
650
535
|
host
|
|
651
536
|
}),
|
|
@@ -672,20 +557,20 @@ function managementGetOrder(payload) {
|
|
|
672
557
|
};
|
|
673
558
|
return metadata;
|
|
674
559
|
}
|
|
675
|
-
return
|
|
560
|
+
return __memberGetOrder;
|
|
676
561
|
}
|
|
677
|
-
function
|
|
678
|
-
function
|
|
562
|
+
function memberListOrders(payload) {
|
|
563
|
+
function __memberListOrders({ host }) {
|
|
679
564
|
const metadata = {
|
|
680
565
|
entityFqdn: "wix.pricing_plans.v2.order",
|
|
681
566
|
method: "GET",
|
|
682
|
-
methodFqn: "com.wixpress.membership.v2.orders.
|
|
567
|
+
methodFqn: "com.wixpress.membership.v2.orders.member.MemberOrdersService.ListOrders",
|
|
683
568
|
packageName: PACKAGE_NAME,
|
|
684
569
|
migrationOptions: {
|
|
685
570
|
optInTransformResponse: true
|
|
686
571
|
},
|
|
687
|
-
url:
|
|
688
|
-
protoPath: "/v2/orders",
|
|
572
|
+
url: resolveComWixpressMembershipV2OrdersMemberMemberOrdersServiceUrl({
|
|
573
|
+
protoPath: "/v2/member/orders",
|
|
689
574
|
data: payload,
|
|
690
575
|
host
|
|
691
576
|
}),
|
|
@@ -712,110 +597,225 @@ function managementListOrders(payload) {
|
|
|
712
597
|
};
|
|
713
598
|
return metadata;
|
|
714
599
|
}
|
|
715
|
-
return
|
|
600
|
+
return __memberListOrders;
|
|
716
601
|
}
|
|
717
|
-
function
|
|
718
|
-
function
|
|
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;
|
|
622
|
+
}
|
|
623
|
+
function createOnlineOrder(payload) {
|
|
624
|
+
function __createOnlineOrder({ host }) {
|
|
719
625
|
const serializedData = (0, import_transform_paths.transformPaths)(payload, [
|
|
720
626
|
{
|
|
721
627
|
transformFn: import_timestamp.transformSDKTimestampToRESTTimestamp,
|
|
722
|
-
paths: [{ path: "
|
|
628
|
+
paths: [{ path: "startDate" }]
|
|
723
629
|
}
|
|
724
630
|
]);
|
|
725
631
|
const metadata = {
|
|
726
632
|
entityFqdn: "wix.pricing_plans.v2.order",
|
|
727
|
-
method: "
|
|
728
|
-
methodFqn: "com.wixpress.membership.v2.orders.
|
|
633
|
+
method: "POST",
|
|
634
|
+
methodFqn: "com.wixpress.membership.v2.orders.CheckoutService.CreateOnlineOrder",
|
|
729
635
|
packageName: PACKAGE_NAME,
|
|
730
636
|
migrationOptions: {
|
|
731
637
|
optInTransformResponse: true
|
|
732
638
|
},
|
|
733
|
-
url:
|
|
734
|
-
protoPath: "/v2/orders/
|
|
639
|
+
url: resolveComWixpressMembershipV2OrdersCheckoutServiceUrl({
|
|
640
|
+
protoPath: "/v2/checkout/orders/online",
|
|
735
641
|
data: serializedData,
|
|
736
642
|
host
|
|
737
643
|
}),
|
|
738
|
-
data: serializedData
|
|
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
|
+
])
|
|
739
664
|
};
|
|
740
665
|
return metadata;
|
|
741
666
|
}
|
|
742
|
-
return
|
|
667
|
+
return __createOnlineOrder;
|
|
743
668
|
}
|
|
744
|
-
function
|
|
745
|
-
function
|
|
669
|
+
function createOfflineOrder(payload) {
|
|
670
|
+
function __createOfflineOrder({ host }) {
|
|
671
|
+
const serializedData = (0, import_transform_paths.transformPaths)(payload, [
|
|
672
|
+
{
|
|
673
|
+
transformFn: import_timestamp.transformSDKTimestampToRESTTimestamp,
|
|
674
|
+
paths: [{ path: "startDate" }]
|
|
675
|
+
}
|
|
676
|
+
]);
|
|
746
677
|
const metadata = {
|
|
747
678
|
entityFqdn: "wix.pricing_plans.v2.order",
|
|
748
679
|
method: "POST",
|
|
749
|
-
methodFqn: "com.wixpress.membership.v2.orders.
|
|
680
|
+
methodFqn: "com.wixpress.membership.v2.orders.CheckoutService.CreateOfflineOrder",
|
|
750
681
|
packageName: PACKAGE_NAME,
|
|
751
682
|
migrationOptions: {
|
|
752
683
|
optInTransformResponse: true
|
|
753
684
|
},
|
|
754
|
-
url:
|
|
755
|
-
protoPath: "/v2/orders/
|
|
756
|
-
data:
|
|
685
|
+
url: resolveComWixpressMembershipV2OrdersCheckoutServiceUrl({
|
|
686
|
+
protoPath: "/v2/checkout/orders/offline",
|
|
687
|
+
data: serializedData,
|
|
757
688
|
host
|
|
758
689
|
}),
|
|
759
|
-
data:
|
|
690
|
+
data: serializedData,
|
|
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
|
+
])
|
|
760
710
|
};
|
|
761
711
|
return metadata;
|
|
762
712
|
}
|
|
763
|
-
return
|
|
713
|
+
return __createOfflineOrder;
|
|
764
714
|
}
|
|
765
|
-
function
|
|
766
|
-
function
|
|
715
|
+
function getOnlineOrderPreview(payload) {
|
|
716
|
+
function __getOnlineOrderPreview({ host }) {
|
|
717
|
+
const serializedData = (0, import_transform_paths.transformPaths)(payload, [
|
|
718
|
+
{
|
|
719
|
+
transformFn: import_timestamp.transformSDKTimestampToRESTTimestamp,
|
|
720
|
+
paths: [{ path: "startDate" }]
|
|
721
|
+
}
|
|
722
|
+
]);
|
|
767
723
|
const metadata = {
|
|
768
724
|
entityFqdn: "wix.pricing_plans.v2.order",
|
|
769
725
|
method: "POST",
|
|
770
|
-
methodFqn: "com.wixpress.membership.v2.orders.
|
|
726
|
+
methodFqn: "com.wixpress.membership.v2.orders.CheckoutService.GetOnlineOrderPreview",
|
|
771
727
|
packageName: PACKAGE_NAME,
|
|
772
728
|
migrationOptions: {
|
|
773
729
|
optInTransformResponse: true
|
|
774
730
|
},
|
|
775
|
-
url:
|
|
776
|
-
protoPath: "/v2/orders/
|
|
777
|
-
data:
|
|
731
|
+
url: resolveComWixpressMembershipV2OrdersCheckoutServiceUrl({
|
|
732
|
+
protoPath: "/v2/checkout/orders/preview-online",
|
|
733
|
+
data: serializedData,
|
|
778
734
|
host
|
|
779
735
|
}),
|
|
780
|
-
data:
|
|
736
|
+
data: serializedData,
|
|
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
|
+
])
|
|
781
756
|
};
|
|
782
757
|
return metadata;
|
|
783
758
|
}
|
|
784
|
-
return
|
|
759
|
+
return __getOnlineOrderPreview;
|
|
785
760
|
}
|
|
786
|
-
function
|
|
787
|
-
function
|
|
761
|
+
function getOfflineOrderPreview(payload) {
|
|
762
|
+
function __getOfflineOrderPreview({ host }) {
|
|
763
|
+
const serializedData = (0, import_transform_paths.transformPaths)(payload, [
|
|
764
|
+
{
|
|
765
|
+
transformFn: import_timestamp.transformSDKTimestampToRESTTimestamp,
|
|
766
|
+
paths: [{ path: "startDate" }]
|
|
767
|
+
}
|
|
768
|
+
]);
|
|
788
769
|
const metadata = {
|
|
789
770
|
entityFqdn: "wix.pricing_plans.v2.order",
|
|
790
771
|
method: "POST",
|
|
791
|
-
methodFqn: "com.wixpress.membership.v2.orders.
|
|
772
|
+
methodFqn: "com.wixpress.membership.v2.orders.CheckoutService.GetOfflineOrderPreview",
|
|
792
773
|
packageName: PACKAGE_NAME,
|
|
793
774
|
migrationOptions: {
|
|
794
775
|
optInTransformResponse: true
|
|
795
776
|
},
|
|
796
|
-
url:
|
|
797
|
-
protoPath: "/v2/orders/
|
|
798
|
-
data:
|
|
777
|
+
url: resolveComWixpressMembershipV2OrdersCheckoutServiceUrl({
|
|
778
|
+
protoPath: "/v2/checkout/orders/preview-offline",
|
|
779
|
+
data: serializedData,
|
|
799
780
|
host
|
|
800
781
|
}),
|
|
801
|
-
data:
|
|
782
|
+
data: serializedData,
|
|
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
|
+
])
|
|
802
802
|
};
|
|
803
803
|
return metadata;
|
|
804
804
|
}
|
|
805
|
-
return
|
|
805
|
+
return __getOfflineOrderPreview;
|
|
806
806
|
}
|
|
807
|
-
function
|
|
808
|
-
function
|
|
807
|
+
function getPricePreview(payload) {
|
|
808
|
+
function __getPricePreview({ 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.CheckoutService.GetPricePreview",
|
|
813
813
|
packageName: PACKAGE_NAME,
|
|
814
814
|
migrationOptions: {
|
|
815
815
|
optInTransformResponse: true
|
|
816
816
|
},
|
|
817
|
-
url:
|
|
818
|
-
protoPath: "/v2/orders/
|
|
817
|
+
url: resolveComWixpressMembershipV2OrdersCheckoutServiceUrl({
|
|
818
|
+
protoPath: "/v2/checkout/orders/price-preview",
|
|
819
819
|
data: payload,
|
|
820
820
|
host
|
|
821
821
|
}),
|
|
@@ -823,7 +823,7 @@ function resumeOrder(payload) {
|
|
|
823
823
|
};
|
|
824
824
|
return metadata;
|
|
825
825
|
}
|
|
826
|
-
return
|
|
826
|
+
return __getPricePreview;
|
|
827
827
|
}
|
|
828
828
|
|
|
829
829
|
// src/pricing-plans-v2-order-orders.types.ts
|
|
@@ -900,14 +900,6 @@ 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 || {});
|
|
911
903
|
var ReasonNotSuspendable = /* @__PURE__ */ ((ReasonNotSuspendable2) => {
|
|
912
904
|
ReasonNotSuspendable2["UNDEFINED"] = "UNDEFINED";
|
|
913
905
|
ReasonNotSuspendable2["PENDING"] = "PENDING";
|
|
@@ -919,11 +911,19 @@ var ReasonNotSuspendable = /* @__PURE__ */ ((ReasonNotSuspendable2) => {
|
|
|
919
911
|
ReasonNotSuspendable2["OLD_STRIPE"] = "OLD_STRIPE";
|
|
920
912
|
return ReasonNotSuspendable2;
|
|
921
913
|
})(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 managementGetOrder2() {
|
|
925
925
|
const payload = { id: ":id" };
|
|
926
|
-
const getRequestOptions =
|
|
926
|
+
const getRequestOptions = managementGetOrder(payload);
|
|
927
927
|
const getUrl = (context) => {
|
|
928
928
|
const { url } = getRequestOptions(context);
|
|
929
929
|
return url;
|
|
@@ -931,7 +931,7 @@ function memberGetOrder2() {
|
|
|
931
931
|
return {
|
|
932
932
|
getUrl,
|
|
933
933
|
httpMethod: "GET",
|
|
934
|
-
path: "/v2/
|
|
934
|
+
path: "/v2/orders/{id}",
|
|
935
935
|
pathParams: { id: "id" },
|
|
936
936
|
__requestType: null,
|
|
937
937
|
__originalRequestType: null,
|
|
@@ -939,9 +939,9 @@ function memberGetOrder2() {
|
|
|
939
939
|
__originalResponseType: null
|
|
940
940
|
};
|
|
941
941
|
}
|
|
942
|
-
function
|
|
942
|
+
function managementListOrders2() {
|
|
943
943
|
const payload = {};
|
|
944
|
-
const getRequestOptions =
|
|
944
|
+
const getRequestOptions = managementListOrders(payload);
|
|
945
945
|
const getUrl = (context) => {
|
|
946
946
|
const { url } = getRequestOptions(context);
|
|
947
947
|
return url;
|
|
@@ -949,7 +949,7 @@ function memberListOrders2() {
|
|
|
949
949
|
return {
|
|
950
950
|
getUrl,
|
|
951
951
|
httpMethod: "GET",
|
|
952
|
-
path: "/v2/
|
|
952
|
+
path: "/v2/orders",
|
|
953
953
|
pathParams: {},
|
|
954
954
|
__requestType: null,
|
|
955
955
|
__originalRequestType: null,
|
|
@@ -957,17 +957,17 @@ function memberListOrders2() {
|
|
|
957
957
|
__originalResponseType: null
|
|
958
958
|
};
|
|
959
959
|
}
|
|
960
|
-
function
|
|
960
|
+
function postponeEndDate2() {
|
|
961
961
|
const payload = { id: ":id" };
|
|
962
|
-
const getRequestOptions =
|
|
962
|
+
const getRequestOptions = postponeEndDate(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/
|
|
969
|
+
httpMethod: "PATCH",
|
|
970
|
+
path: "/v2/orders/{id}",
|
|
971
971
|
pathParams: { id: "id" },
|
|
972
972
|
__requestType: null,
|
|
973
973
|
__originalRequestType: null,
|
|
@@ -975,9 +975,9 @@ function requestCancellation2() {
|
|
|
975
975
|
__originalResponseType: null
|
|
976
976
|
};
|
|
977
977
|
}
|
|
978
|
-
function
|
|
979
|
-
const payload = {};
|
|
980
|
-
const getRequestOptions =
|
|
978
|
+
function cancelOrder2() {
|
|
979
|
+
const payload = { id: ":id" };
|
|
980
|
+
const getRequestOptions = cancelOrder(payload);
|
|
981
981
|
const getUrl = (context) => {
|
|
982
982
|
const { url } = getRequestOptions(context);
|
|
983
983
|
return url;
|
|
@@ -985,17 +985,17 @@ function createOnlineOrder2() {
|
|
|
985
985
|
return {
|
|
986
986
|
getUrl,
|
|
987
987
|
httpMethod: "POST",
|
|
988
|
-
path: "/v2/
|
|
989
|
-
pathParams: {},
|
|
988
|
+
path: "/v2/orders/{id}/cancel",
|
|
989
|
+
pathParams: { id: "id" },
|
|
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 markAsPaid2() {
|
|
997
|
+
const payload = { id: ":id" };
|
|
998
|
+
const getRequestOptions = markAsPaid(payload);
|
|
999
999
|
const getUrl = (context) => {
|
|
1000
1000
|
const { url } = getRequestOptions(context);
|
|
1001
1001
|
return url;
|
|
@@ -1003,17 +1003,17 @@ function createOfflineOrder2() {
|
|
|
1003
1003
|
return {
|
|
1004
1004
|
getUrl,
|
|
1005
1005
|
httpMethod: "POST",
|
|
1006
|
-
path: "/v2/
|
|
1007
|
-
pathParams: {},
|
|
1006
|
+
path: "/v2/orders/{id}/mark-as-paid",
|
|
1007
|
+
pathParams: { id: "id" },
|
|
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 pauseOrder2() {
|
|
1015
|
+
const payload = { id: ":id" };
|
|
1016
|
+
const getRequestOptions = pauseOrder(payload);
|
|
1017
1017
|
const getUrl = (context) => {
|
|
1018
1018
|
const { url } = getRequestOptions(context);
|
|
1019
1019
|
return url;
|
|
@@ -1021,17 +1021,17 @@ function getOnlineOrderPreview2() {
|
|
|
1021
1021
|
return {
|
|
1022
1022
|
getUrl,
|
|
1023
1023
|
httpMethod: "POST",
|
|
1024
|
-
path: "/v2/
|
|
1025
|
-
pathParams: {},
|
|
1024
|
+
path: "/v2/orders/{id}/pause",
|
|
1025
|
+
pathParams: { id: "id" },
|
|
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 resumeOrder2() {
|
|
1033
|
+
const payload = { id: ":id" };
|
|
1034
|
+
const getRequestOptions = resumeOrder(payload);
|
|
1035
1035
|
const getUrl = (context) => {
|
|
1036
1036
|
const { url } = getRequestOptions(context);
|
|
1037
1037
|
return url;
|
|
@@ -1039,35 +1039,35 @@ function getOfflineOrderPreview2() {
|
|
|
1039
1039
|
return {
|
|
1040
1040
|
getUrl,
|
|
1041
1041
|
httpMethod: "POST",
|
|
1042
|
-
path: "/v2/
|
|
1043
|
-
pathParams: {},
|
|
1042
|
+
path: "/v2/orders/{id}/resume",
|
|
1043
|
+
pathParams: { id: "id" },
|
|
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 memberGetOrder2() {
|
|
1051
|
+
const payload = { id: ":id" };
|
|
1052
|
+
const getRequestOptions = memberGetOrder(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: "GET",
|
|
1060
|
+
path: "/v2/member/orders/{id}",
|
|
1061
|
+
pathParams: { id: "id" },
|
|
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 memberListOrders2() {
|
|
1069
|
+
const payload = {};
|
|
1070
|
+
const getRequestOptions = memberListOrders(payload);
|
|
1071
1071
|
const getUrl = (context) => {
|
|
1072
1072
|
const { url } = getRequestOptions(context);
|
|
1073
1073
|
return url;
|
|
@@ -1075,53 +1075,53 @@ function managementGetOrder2() {
|
|
|
1075
1075
|
return {
|
|
1076
1076
|
getUrl,
|
|
1077
1077
|
httpMethod: "GET",
|
|
1078
|
-
path: "/v2/orders
|
|
1079
|
-
pathParams: {
|
|
1078
|
+
path: "/v2/member/orders",
|
|
1079
|
+
pathParams: {},
|
|
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 requestCancellation2() {
|
|
1087
|
+
const payload = { id: ":id" };
|
|
1088
|
+
const getRequestOptions = requestCancellation(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/orders",
|
|
1097
|
-
pathParams: {},
|
|
1095
|
+
httpMethod: "POST",
|
|
1096
|
+
path: "/v2/member/orders/{id}/cancel",
|
|
1097
|
+
pathParams: { id: "id" },
|
|
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 createOnlineOrder2() {
|
|
1105
|
+
const payload = {};
|
|
1106
|
+
const getRequestOptions = createOnlineOrder(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/orders/
|
|
1115
|
-
pathParams: {
|
|
1113
|
+
httpMethod: "POST",
|
|
1114
|
+
path: "/v2/checkout/orders/online",
|
|
1115
|
+
pathParams: {},
|
|
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 createOfflineOrder2() {
|
|
1123
|
+
const payload = {};
|
|
1124
|
+
const getRequestOptions = createOfflineOrder(payload);
|
|
1125
1125
|
const getUrl = (context) => {
|
|
1126
1126
|
const { url } = getRequestOptions(context);
|
|
1127
1127
|
return url;
|
|
@@ -1129,17 +1129,17 @@ function cancelOrder2() {
|
|
|
1129
1129
|
return {
|
|
1130
1130
|
getUrl,
|
|
1131
1131
|
httpMethod: "POST",
|
|
1132
|
-
path: "/v2/orders/
|
|
1133
|
-
pathParams: {
|
|
1132
|
+
path: "/v2/checkout/orders/offline",
|
|
1133
|
+
pathParams: {},
|
|
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 getOnlineOrderPreview2() {
|
|
1141
|
+
const payload = {};
|
|
1142
|
+
const getRequestOptions = getOnlineOrderPreview(payload);
|
|
1143
1143
|
const getUrl = (context) => {
|
|
1144
1144
|
const { url } = getRequestOptions(context);
|
|
1145
1145
|
return url;
|
|
@@ -1147,17 +1147,17 @@ function markAsPaid2() {
|
|
|
1147
1147
|
return {
|
|
1148
1148
|
getUrl,
|
|
1149
1149
|
httpMethod: "POST",
|
|
1150
|
-
path: "/v2/orders/
|
|
1151
|
-
pathParams: {
|
|
1150
|
+
path: "/v2/checkout/orders/preview-online",
|
|
1151
|
+
pathParams: {},
|
|
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 getOfflineOrderPreview2() {
|
|
1159
|
+
const payload = {};
|
|
1160
|
+
const getRequestOptions = getOfflineOrderPreview(payload);
|
|
1161
1161
|
const getUrl = (context) => {
|
|
1162
1162
|
const { url } = getRequestOptions(context);
|
|
1163
1163
|
return url;
|
|
@@ -1165,17 +1165,17 @@ function pauseOrder2() {
|
|
|
1165
1165
|
return {
|
|
1166
1166
|
getUrl,
|
|
1167
1167
|
httpMethod: "POST",
|
|
1168
|
-
path: "/v2/orders/
|
|
1169
|
-
pathParams: {
|
|
1168
|
+
path: "/v2/checkout/orders/preview-offline",
|
|
1169
|
+
pathParams: {},
|
|
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 getPricePreview2() {
|
|
1177
|
+
const payload = {};
|
|
1178
|
+
const getRequestOptions = getPricePreview(payload);
|
|
1179
1179
|
const getUrl = (context) => {
|
|
1180
1180
|
const { url } = getRequestOptions(context);
|
|
1181
1181
|
return url;
|
|
@@ -1183,8 +1183,8 @@ function resumeOrder2() {
|
|
|
1183
1183
|
return {
|
|
1184
1184
|
getUrl,
|
|
1185
1185
|
httpMethod: "POST",
|
|
1186
|
-
path: "/v2/orders/
|
|
1187
|
-
pathParams: {
|
|
1186
|
+
path: "/v2/checkout/orders/price-preview",
|
|
1187
|
+
pathParams: {},
|
|
1188
1188
|
__requestType: null,
|
|
1189
1189
|
__originalRequestType: null,
|
|
1190
1190
|
__responseType: null,
|