@wix/auto_sdk_pricing-plans_orders 1.0.122 → 1.0.124

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.
@@ -1,1357 +0,0 @@
1
- "use strict";
2
- var __defProp = Object.defineProperty;
3
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
- var __getOwnPropNames = Object.getOwnPropertyNames;
5
- var __hasOwnProp = Object.prototype.hasOwnProperty;
6
- var __export = (target, all) => {
7
- for (var name in all)
8
- __defProp(target, name, { get: all[name], enumerable: true });
9
- };
10
- var __copyProps = (to, from, except, desc) => {
11
- if (from && typeof from === "object" || typeof from === "function") {
12
- for (let key of __getOwnPropNames(from))
13
- if (!__hasOwnProp.call(to, key) && key !== except)
14
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
- }
16
- return to;
17
- };
18
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
-
20
- // meta.ts
21
- var meta_exports = {};
22
- __export(meta_exports, {
23
- CancellationCauseOriginal: () => CancellationCause,
24
- CancellationEffectiveAtOriginal: () => CancellationEffectiveAt,
25
- OrderMethodOriginal: () => OrderMethod,
26
- OrderStatusOriginal: () => OrderStatus,
27
- OrderTypeOriginal: () => OrderType,
28
- PaymentStatusOriginal: () => PaymentStatus,
29
- PeriodUnitOriginal: () => PeriodUnit,
30
- ReasonNotSuspendableOriginal: () => ReasonNotSuspendable,
31
- SetOriginal: () => Set,
32
- SortOrderOriginal: () => SortOrder,
33
- StatusOriginal: () => Status,
34
- WebhookIdentityTypeOriginal: () => WebhookIdentityType,
35
- cancelOrder: () => cancelOrder2,
36
- createOfflineOrder: () => createOfflineOrder2,
37
- createOnlineOrder: () => createOnlineOrder2,
38
- getOfflineOrderPreview: () => getOfflineOrderPreview2,
39
- getOnlineOrderPreview: () => getOnlineOrderPreview2,
40
- getPricePreview: () => getPricePreview2,
41
- managementGetOrder: () => managementGetOrder2,
42
- managementListOrders: () => managementListOrders2,
43
- markAsPaid: () => markAsPaid2,
44
- memberGetOrder: () => memberGetOrder2,
45
- memberListOrders: () => memberListOrders2,
46
- pauseOrder: () => pauseOrder2,
47
- postponeEndDate: () => postponeEndDate2,
48
- requestCancellation: () => requestCancellation2,
49
- resumeOrder: () => resumeOrder2
50
- });
51
- module.exports = __toCommonJS(meta_exports);
52
-
53
- // src/pricing-plans-v2-order-orders.http.ts
54
- var import_rest_modules = require("@wix/sdk-runtime/rest-modules");
55
- var import_float = require("@wix/sdk-runtime/transformations/float");
56
- var import_timestamp = require("@wix/sdk-runtime/transformations/timestamp");
57
- var import_timestamp2 = require("@wix/sdk-runtime/transformations/timestamp");
58
- var import_transform_paths = require("@wix/sdk-runtime/transformations/transform-paths");
59
- var import_rest_modules2 = require("@wix/sdk-runtime/rest-modules");
60
- function resolveComWixpressMembershipV2OrdersMemberMemberOrdersServiceUrl(opts) {
61
- const domainToMappings = {
62
- "api._api_base_domain_": [
63
- {
64
- srcPath: "/member-orders-service-proxy",
65
- destPath: ""
66
- }
67
- ],
68
- "*.dev.wix-code.com": [
69
- {
70
- srcPath: "/_api/pricing-plans-member-orders/v2/member/orders",
71
- destPath: "/v2/member/orders"
72
- },
73
- {
74
- srcPath: "/_api/pricing-plans/v2/member/orders",
75
- destPath: "/v2/member/orders"
76
- }
77
- ],
78
- "*.pub.wix-code.com": [
79
- {
80
- srcPath: "/_api/pricing-plans-member-orders/v2/member/orders",
81
- destPath: "/v2/member/orders"
82
- },
83
- {
84
- srcPath: "/_api/pricing-plans/v2/member/orders",
85
- destPath: "/v2/member/orders"
86
- }
87
- ],
88
- "editor.wixapps.net": [
89
- {
90
- srcPath: "/_api/pricing-plans/v2/member/orders",
91
- destPath: "/v2/member/orders"
92
- }
93
- ],
94
- "manage._base_domain_": [
95
- {
96
- srcPath: "/_api/pricing-plans/v2/member/orders",
97
- destPath: "/v2/member/orders"
98
- }
99
- ],
100
- "www._base_domain_": [
101
- {
102
- srcPath: "/_api/pricing-plans/v2/member/orders",
103
- destPath: "/v2/member/orders"
104
- }
105
- ],
106
- "www.wixapis.com": [
107
- {
108
- srcPath: "/pricing-plans/v2/member/orders",
109
- destPath: "/v2/member/orders"
110
- }
111
- ],
112
- _: [
113
- {
114
- srcPath: "/_api/pricing-plans/v2/member/orders",
115
- destPath: "/v2/member/orders"
116
- }
117
- ],
118
- "editor._base_domain_": [
119
- {
120
- srcPath: "/_api/pricing-plans/v2/member/orders",
121
- destPath: "/v2/member/orders"
122
- }
123
- ],
124
- "blocks._base_domain_": [
125
- {
126
- srcPath: "/_api/pricing-plans/v2/member/orders",
127
- destPath: "/v2/member/orders"
128
- }
129
- ],
130
- "create.editorx": [
131
- {
132
- srcPath: "/_api/pricing-plans/v2/member/orders",
133
- destPath: "/v2/member/orders"
134
- }
135
- ],
136
- "apps._base_domain_": [
137
- {
138
- srcPath: "/_api/pricing-plans/v2/member/orders",
139
- destPath: "/v2/member/orders"
140
- }
141
- ],
142
- "dev._base_domain_": [
143
- {
144
- srcPath: "/_api/pricing-plans/v2/member/orders",
145
- destPath: "/v2/member/orders"
146
- }
147
- ]
148
- };
149
- return (0, import_rest_modules2.resolveUrl)(Object.assign(opts, { domainToMappings }));
150
- }
151
- function resolveComWixpressMembershipV2OrdersCheckoutServiceUrl(opts) {
152
- const domainToMappings = {
153
- "api._api_base_domain_": [
154
- {
155
- srcPath: "/pricing-plans-checkout-proxy",
156
- destPath: ""
157
- }
158
- ],
159
- "*.dev.wix-code.com": [
160
- {
161
- srcPath: "/_api/paid-plans/v2/checkout",
162
- destPath: "/v2/checkout"
163
- },
164
- {
165
- srcPath: "/_api/pricing-plans/v2/checkout",
166
- destPath: "/v2/checkout"
167
- }
168
- ],
169
- "*.wixapps.net": [
170
- {
171
- srcPath: "/_api/paid-plans/v2/checkout",
172
- destPath: "/v2/checkout"
173
- }
174
- ],
175
- "editor-flow.wixapps.net": [
176
- {
177
- srcPath: "/_api/paid-plans/v2/checkout",
178
- destPath: "/v2/checkout"
179
- }
180
- ],
181
- "editor._base_domain_": [
182
- {
183
- srcPath: "/_api/paid-plans/v2/checkout",
184
- destPath: "/v2/checkout"
185
- },
186
- {
187
- srcPath: "/_api/pricing-plans/v2/checkout",
188
- destPath: "/v2/checkout"
189
- }
190
- ],
191
- "blocks._base_domain_": [
192
- {
193
- srcPath: "/_api/paid-plans/v2/checkout",
194
- destPath: "/v2/checkout"
195
- },
196
- {
197
- srcPath: "/_api/pricing-plans/v2/checkout",
198
- destPath: "/v2/checkout"
199
- }
200
- ],
201
- "create.editorx": [
202
- {
203
- srcPath: "/_api/paid-plans/v2/checkout",
204
- destPath: "/v2/checkout"
205
- },
206
- {
207
- srcPath: "/_api/pricing-plans/v2/checkout",
208
- destPath: "/v2/checkout"
209
- }
210
- ],
211
- "editor.wixapps.net": [
212
- {
213
- srcPath: "/_api/paid-plans/v2/checkout",
214
- destPath: "/v2/checkout"
215
- },
216
- {
217
- srcPath: "/_api/pricing-plans/v2/checkout",
218
- destPath: "/v2/checkout"
219
- }
220
- ],
221
- "forums._base_domain_": [
222
- {
223
- srcPath: "/_api/paid-plans/v2/checkout",
224
- destPath: "/v2/checkout"
225
- }
226
- ],
227
- "forums.wixapps.net": [
228
- {
229
- srcPath: "/_api/paid-plans/v2/checkout",
230
- destPath: "/v2/checkout"
231
- }
232
- ],
233
- "manage._base_domain_": [
234
- {
235
- srcPath: "/_api/pricing-plans/v2/checkout",
236
- destPath: "/v2/checkout"
237
- },
238
- {
239
- srcPath: "/_api/paid-plans/v2/checkout",
240
- destPath: "/v2/checkout"
241
- },
242
- {
243
- srcPath: "/pricing-plans/v2/checkout",
244
- destPath: "/v2/checkout"
245
- }
246
- ],
247
- "www.wixapis.com": [
248
- {
249
- srcPath: "/pricing-plans/v2/checkout",
250
- destPath: "/v2/checkout"
251
- }
252
- ],
253
- _: [
254
- {
255
- srcPath: "/pricing-plans/v2/checkout",
256
- destPath: "/v2/checkout"
257
- },
258
- {
259
- srcPath: "/_api/paid-plans/v2/checkout",
260
- destPath: "/v2/checkout"
261
- },
262
- {
263
- srcPath: "/_api/pricing-plans/v2/checkout",
264
- destPath: "/v2/checkout"
265
- }
266
- ],
267
- "*.pub.wix-code.com": [
268
- {
269
- srcPath: "/_api/paid-plans/v2/checkout",
270
- destPath: "/v2/checkout"
271
- }
272
- ],
273
- "www._base_domain_": [
274
- {
275
- srcPath: "/_api/paid-plans/v2/checkout",
276
- destPath: "/v2/checkout"
277
- }
278
- ],
279
- "apps._base_domain_": [
280
- {
281
- srcPath: "/_api/paid-plans/v2/checkout",
282
- destPath: "/v2/checkout"
283
- },
284
- {
285
- srcPath: "/_api/pricing-plans/v2/checkout",
286
- destPath: "/v2/checkout"
287
- }
288
- ],
289
- "dev._base_domain_": [
290
- {
291
- srcPath: "/_api/paid-plans/v2/checkout",
292
- destPath: "/v2/checkout"
293
- },
294
- {
295
- srcPath: "/_api/pricing-plans/v2/checkout",
296
- destPath: "/v2/checkout"
297
- }
298
- ]
299
- };
300
- return (0, import_rest_modules2.resolveUrl)(Object.assign(opts, { domainToMappings }));
301
- }
302
- function resolveComWixpressMembershipV2OrdersOrderManagementServiceUrl(opts) {
303
- const domainToMappings = {
304
- "api._api_base_domain_": [
305
- {
306
- srcPath: "/order-management-service-proxy",
307
- destPath: ""
308
- }
309
- ],
310
- "*.dev.wix-code.com": [
311
- {
312
- srcPath: "/_api/paid-plans/v2/orders",
313
- destPath: "/v2/orders"
314
- },
315
- {
316
- srcPath: "/_api/pricing-plans/v2/orders",
317
- destPath: "/v2/orders"
318
- }
319
- ],
320
- "*.wixapps.net": [
321
- {
322
- srcPath: "/_api/paid-plans/v2/orders",
323
- destPath: "/v2/orders"
324
- }
325
- ],
326
- "editor-flow.wixapps.net": [
327
- {
328
- srcPath: "/_api/paid-plans/v2/orders",
329
- destPath: "/v2/orders"
330
- }
331
- ],
332
- "editor._base_domain_": [
333
- {
334
- srcPath: "/_api/paid-plans/v2/orders",
335
- destPath: "/v2/orders"
336
- },
337
- {
338
- srcPath: "/_api/pricing-plans/v2/orders",
339
- destPath: "/v2/orders"
340
- }
341
- ],
342
- "blocks._base_domain_": [
343
- {
344
- srcPath: "/_api/paid-plans/v2/orders",
345
- destPath: "/v2/orders"
346
- },
347
- {
348
- srcPath: "/_api/pricing-plans/v2/orders",
349
- destPath: "/v2/orders"
350
- }
351
- ],
352
- "create.editorx": [
353
- {
354
- srcPath: "/_api/paid-plans/v2/orders",
355
- destPath: "/v2/orders"
356
- },
357
- {
358
- srcPath: "/_api/pricing-plans/v2/orders",
359
- destPath: "/v2/orders"
360
- }
361
- ],
362
- "editor.wixapps.net": [
363
- {
364
- srcPath: "/_api/paid-plans/v2/orders",
365
- destPath: "/v2/orders"
366
- },
367
- {
368
- srcPath: "/_api/pricing-plans/v2/orders",
369
- destPath: "/v2/orders"
370
- }
371
- ],
372
- "forums._base_domain_": [
373
- {
374
- srcPath: "/_api/paid-plans/v2/orders",
375
- destPath: "/v2/orders"
376
- }
377
- ],
378
- "forums.wixapps.net": [
379
- {
380
- srcPath: "/_api/paid-plans/v2/orders",
381
- destPath: "/v2/orders"
382
- }
383
- ],
384
- "manage._base_domain_": [
385
- {
386
- srcPath: "/_api/pricing-plans/v2/orders",
387
- destPath: "/v2/orders"
388
- },
389
- {
390
- srcPath: "/_api/paid-plans/v2/orders",
391
- destPath: "/v2/orders"
392
- }
393
- ],
394
- "www.wixapis.com": [
395
- {
396
- srcPath: "/pricing-plans/v2/orders",
397
- destPath: "/v2/orders"
398
- }
399
- ],
400
- _: [
401
- {
402
- srcPath: "/_api/paid-plans/v2/orders",
403
- destPath: "/v2/orders"
404
- },
405
- {
406
- srcPath: "/_api/pricing-plans/v2/orders",
407
- destPath: "/v2/orders"
408
- }
409
- ],
410
- "*.pub.wix-code.com": [
411
- {
412
- srcPath: "/_api/paid-plans/v2/orders",
413
- destPath: "/v2/orders"
414
- }
415
- ],
416
- "www._base_domain_": [
417
- {
418
- srcPath: "/_api/paid-plans/v2/orders",
419
- destPath: "/v2/orders"
420
- }
421
- ],
422
- "apps._base_domain_": [
423
- {
424
- srcPath: "/_api/paid-plans/v2/orders",
425
- destPath: "/v2/orders"
426
- },
427
- {
428
- srcPath: "/_api/pricing-plans/v2/orders",
429
- destPath: "/v2/orders"
430
- }
431
- ],
432
- "dev._base_domain_": [
433
- {
434
- srcPath: "/_api/paid-plans/v2/orders",
435
- destPath: "/v2/orders"
436
- },
437
- {
438
- srcPath: "/_api/pricing-plans/v2/orders",
439
- destPath: "/v2/orders"
440
- }
441
- ]
442
- };
443
- return (0, import_rest_modules2.resolveUrl)(Object.assign(opts, { domainToMappings }));
444
- }
445
- var PACKAGE_NAME = "@wix/auto_sdk_pricing-plans_orders";
446
- function managementGetOrder(payload) {
447
- function __managementGetOrder({ host }) {
448
- const metadata = {
449
- entityFqdn: "wix.pricing_plans.v2.order",
450
- method: "GET",
451
- methodFqn: "com.wixpress.membership.v2.orders.OrderManagementService.GetOrder",
452
- packageName: PACKAGE_NAME,
453
- migrationOptions: {
454
- optInTransformResponse: true
455
- },
456
- url: resolveComWixpressMembershipV2OrdersOrderManagementServiceUrl({
457
- protoPath: "/v2/orders/{id}",
458
- data: payload,
459
- host
460
- }),
461
- params: (0, import_rest_modules.toURLSearchParams)(payload),
462
- transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
463
- {
464
- transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
465
- paths: [
466
- { path: "order.startDate" },
467
- { path: "order.endDate" },
468
- { path: "order.earliestEndDate" },
469
- { path: "order.createdDate" },
470
- { path: "order.updatedDate" },
471
- { path: "order.cancellation.requestedDate" },
472
- { path: "order.pausePeriods.pauseDate" },
473
- { path: "order.pausePeriods.resumeDate" },
474
- { path: "order.currentCycle.startedDate" },
475
- { path: "order.currentCycle.endedDate" },
476
- { path: "order.cycles.startedDate" },
477
- { path: "order.cycles.endedDate" }
478
- ]
479
- }
480
- ])
481
- };
482
- return metadata;
483
- }
484
- return __managementGetOrder;
485
- }
486
- function managementListOrders(payload) {
487
- function __managementListOrders({ host }) {
488
- const serializedData = (0, import_transform_paths.transformPaths)(payload, [
489
- {
490
- transformFn: import_float.transformSDKFloatToRESTFloat,
491
- paths: [
492
- { path: "sorting.origin.latitude" },
493
- { path: "sorting.origin.longitude" }
494
- ]
495
- }
496
- ]);
497
- const metadata = {
498
- entityFqdn: "wix.pricing_plans.v2.order",
499
- method: "GET",
500
- methodFqn: "com.wixpress.membership.v2.orders.OrderManagementService.ListOrders",
501
- packageName: PACKAGE_NAME,
502
- migrationOptions: {
503
- optInTransformResponse: true
504
- },
505
- url: resolveComWixpressMembershipV2OrdersOrderManagementServiceUrl({
506
- protoPath: "/v2/orders",
507
- data: serializedData,
508
- host
509
- }),
510
- params: (0, import_rest_modules.toURLSearchParams)(serializedData, true),
511
- transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
512
- {
513
- transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
514
- paths: [
515
- { path: "orders.startDate" },
516
- { path: "orders.endDate" },
517
- { path: "orders.earliestEndDate" },
518
- { path: "orders.createdDate" },
519
- { path: "orders.updatedDate" },
520
- { path: "orders.cancellation.requestedDate" },
521
- { path: "orders.pausePeriods.pauseDate" },
522
- { path: "orders.pausePeriods.resumeDate" },
523
- { path: "orders.currentCycle.startedDate" },
524
- { path: "orders.currentCycle.endedDate" },
525
- { path: "orders.cycles.startedDate" },
526
- { path: "orders.cycles.endedDate" }
527
- ]
528
- }
529
- ])
530
- };
531
- return metadata;
532
- }
533
- return __managementListOrders;
534
- }
535
- function postponeEndDate(payload) {
536
- function __postponeEndDate({ host }) {
537
- const serializedData = (0, import_transform_paths.transformPaths)(payload, [
538
- {
539
- transformFn: import_timestamp.transformSDKTimestampToRESTTimestamp,
540
- paths: [{ path: "endDate" }]
541
- }
542
- ]);
543
- const metadata = {
544
- entityFqdn: "wix.pricing_plans.v2.order",
545
- method: "PATCH",
546
- methodFqn: "com.wixpress.membership.v2.orders.OrderManagementService.PostponeEndDate",
547
- packageName: PACKAGE_NAME,
548
- migrationOptions: {
549
- optInTransformResponse: true
550
- },
551
- url: resolveComWixpressMembershipV2OrdersOrderManagementServiceUrl({
552
- protoPath: "/v2/orders/{id}",
553
- data: serializedData,
554
- host
555
- }),
556
- data: serializedData
557
- };
558
- return metadata;
559
- }
560
- return __postponeEndDate;
561
- }
562
- function cancelOrder(payload) {
563
- function __cancelOrder({ host }) {
564
- const metadata = {
565
- entityFqdn: "wix.pricing_plans.v2.order",
566
- method: "POST",
567
- methodFqn: "com.wixpress.membership.v2.orders.OrderManagementService.CancelOrder",
568
- packageName: PACKAGE_NAME,
569
- migrationOptions: {
570
- optInTransformResponse: true
571
- },
572
- url: resolveComWixpressMembershipV2OrdersOrderManagementServiceUrl({
573
- protoPath: "/v2/orders/{id}/cancel",
574
- data: payload,
575
- host
576
- }),
577
- data: payload
578
- };
579
- return metadata;
580
- }
581
- return __cancelOrder;
582
- }
583
- function markAsPaid(payload) {
584
- function __markAsPaid({ host }) {
585
- const metadata = {
586
- entityFqdn: "wix.pricing_plans.v2.order",
587
- method: "POST",
588
- methodFqn: "com.wixpress.membership.v2.orders.OrderManagementService.MarkAsPaid",
589
- packageName: PACKAGE_NAME,
590
- migrationOptions: {
591
- optInTransformResponse: true
592
- },
593
- url: resolveComWixpressMembershipV2OrdersOrderManagementServiceUrl({
594
- protoPath: "/v2/orders/{id}/mark-as-paid",
595
- data: payload,
596
- host
597
- }),
598
- data: payload
599
- };
600
- return metadata;
601
- }
602
- return __markAsPaid;
603
- }
604
- function pauseOrder(payload) {
605
- function __pauseOrder({ host }) {
606
- const metadata = {
607
- entityFqdn: "wix.pricing_plans.v2.order",
608
- method: "POST",
609
- methodFqn: "com.wixpress.membership.v2.orders.OrderManagementService.PauseOrder",
610
- packageName: PACKAGE_NAME,
611
- migrationOptions: {
612
- optInTransformResponse: true
613
- },
614
- url: resolveComWixpressMembershipV2OrdersOrderManagementServiceUrl({
615
- protoPath: "/v2/orders/{id}/pause",
616
- data: payload,
617
- host
618
- }),
619
- data: payload
620
- };
621
- return metadata;
622
- }
623
- return __pauseOrder;
624
- }
625
- function resumeOrder(payload) {
626
- function __resumeOrder({ host }) {
627
- const metadata = {
628
- entityFqdn: "wix.pricing_plans.v2.order",
629
- method: "POST",
630
- methodFqn: "com.wixpress.membership.v2.orders.OrderManagementService.ResumeOrder",
631
- packageName: PACKAGE_NAME,
632
- migrationOptions: {
633
- optInTransformResponse: true
634
- },
635
- url: resolveComWixpressMembershipV2OrdersOrderManagementServiceUrl({
636
- protoPath: "/v2/orders/{id}/resume",
637
- data: payload,
638
- host
639
- }),
640
- data: payload
641
- };
642
- return metadata;
643
- }
644
- return __resumeOrder;
645
- }
646
- function createOnlineOrder(payload) {
647
- function __createOnlineOrder({ host }) {
648
- const serializedData = (0, import_transform_paths.transformPaths)(payload, [
649
- {
650
- transformFn: import_timestamp.transformSDKTimestampToRESTTimestamp,
651
- paths: [{ path: "startDate" }]
652
- }
653
- ]);
654
- const metadata = {
655
- entityFqdn: "wix.pricing_plans.v2.order",
656
- method: "POST",
657
- methodFqn: "com.wixpress.membership.v2.orders.CheckoutService.CreateOnlineOrder",
658
- packageName: PACKAGE_NAME,
659
- migrationOptions: {
660
- optInTransformResponse: true
661
- },
662
- url: resolveComWixpressMembershipV2OrdersCheckoutServiceUrl({
663
- protoPath: "/v2/checkout/orders/online",
664
- data: serializedData,
665
- host
666
- }),
667
- data: serializedData,
668
- transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
669
- {
670
- transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
671
- paths: [
672
- { path: "order.startDate" },
673
- { path: "order.endDate" },
674
- { path: "order.earliestEndDate" },
675
- { path: "order.createdDate" },
676
- { path: "order.updatedDate" },
677
- { path: "order.cancellation.requestedDate" },
678
- { path: "order.pausePeriods.pauseDate" },
679
- { path: "order.pausePeriods.resumeDate" },
680
- { path: "order.currentCycle.startedDate" },
681
- { path: "order.currentCycle.endedDate" },
682
- { path: "order.cycles.startedDate" },
683
- { path: "order.cycles.endedDate" }
684
- ]
685
- }
686
- ])
687
- };
688
- return metadata;
689
- }
690
- return __createOnlineOrder;
691
- }
692
- function createOfflineOrder(payload) {
693
- function __createOfflineOrder({ host }) {
694
- const serializedData = (0, import_transform_paths.transformPaths)(payload, [
695
- {
696
- transformFn: import_timestamp.transformSDKTimestampToRESTTimestamp,
697
- paths: [{ path: "startDate" }]
698
- }
699
- ]);
700
- const metadata = {
701
- entityFqdn: "wix.pricing_plans.v2.order",
702
- method: "POST",
703
- methodFqn: "com.wixpress.membership.v2.orders.CheckoutService.CreateOfflineOrder",
704
- packageName: PACKAGE_NAME,
705
- migrationOptions: {
706
- optInTransformResponse: true
707
- },
708
- url: resolveComWixpressMembershipV2OrdersCheckoutServiceUrl({
709
- protoPath: "/v2/checkout/orders/offline",
710
- data: serializedData,
711
- host
712
- }),
713
- data: serializedData,
714
- transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
715
- {
716
- transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
717
- paths: [
718
- { path: "order.startDate" },
719
- { path: "order.endDate" },
720
- { path: "order.earliestEndDate" },
721
- { path: "order.createdDate" },
722
- { path: "order.updatedDate" },
723
- { path: "order.cancellation.requestedDate" },
724
- { path: "order.pausePeriods.pauseDate" },
725
- { path: "order.pausePeriods.resumeDate" },
726
- { path: "order.currentCycle.startedDate" },
727
- { path: "order.currentCycle.endedDate" },
728
- { path: "order.cycles.startedDate" },
729
- { path: "order.cycles.endedDate" }
730
- ]
731
- }
732
- ])
733
- };
734
- return metadata;
735
- }
736
- return __createOfflineOrder;
737
- }
738
- function getOnlineOrderPreview(payload) {
739
- function __getOnlineOrderPreview({ host }) {
740
- const serializedData = (0, import_transform_paths.transformPaths)(payload, [
741
- {
742
- transformFn: import_timestamp.transformSDKTimestampToRESTTimestamp,
743
- paths: [{ path: "startDate" }]
744
- }
745
- ]);
746
- const metadata = {
747
- entityFqdn: "wix.pricing_plans.v2.order",
748
- method: "POST",
749
- methodFqn: "com.wixpress.membership.v2.orders.CheckoutService.GetOnlineOrderPreview",
750
- packageName: PACKAGE_NAME,
751
- migrationOptions: {
752
- optInTransformResponse: true
753
- },
754
- url: resolveComWixpressMembershipV2OrdersCheckoutServiceUrl({
755
- protoPath: "/v2/checkout/orders/preview-online",
756
- data: serializedData,
757
- host
758
- }),
759
- data: serializedData,
760
- transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
761
- {
762
- transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
763
- paths: [
764
- { path: "order.startDate" },
765
- { path: "order.endDate" },
766
- { path: "order.earliestEndDate" },
767
- { path: "order.createdDate" },
768
- { path: "order.updatedDate" },
769
- { path: "order.cancellation.requestedDate" },
770
- { path: "order.pausePeriods.pauseDate" },
771
- { path: "order.pausePeriods.resumeDate" },
772
- { path: "order.currentCycle.startedDate" },
773
- { path: "order.currentCycle.endedDate" },
774
- { path: "order.cycles.startedDate" },
775
- { path: "order.cycles.endedDate" }
776
- ]
777
- }
778
- ])
779
- };
780
- return metadata;
781
- }
782
- return __getOnlineOrderPreview;
783
- }
784
- function getOfflineOrderPreview(payload) {
785
- function __getOfflineOrderPreview({ host }) {
786
- const serializedData = (0, import_transform_paths.transformPaths)(payload, [
787
- {
788
- transformFn: import_timestamp.transformSDKTimestampToRESTTimestamp,
789
- paths: [{ path: "startDate" }]
790
- }
791
- ]);
792
- const metadata = {
793
- entityFqdn: "wix.pricing_plans.v2.order",
794
- method: "POST",
795
- methodFqn: "com.wixpress.membership.v2.orders.CheckoutService.GetOfflineOrderPreview",
796
- packageName: PACKAGE_NAME,
797
- migrationOptions: {
798
- optInTransformResponse: true
799
- },
800
- url: resolveComWixpressMembershipV2OrdersCheckoutServiceUrl({
801
- protoPath: "/v2/checkout/orders/preview-offline",
802
- data: serializedData,
803
- host
804
- }),
805
- data: serializedData,
806
- transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
807
- {
808
- transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
809
- paths: [
810
- { path: "order.startDate" },
811
- { path: "order.endDate" },
812
- { path: "order.earliestEndDate" },
813
- { path: "order.createdDate" },
814
- { path: "order.updatedDate" },
815
- { path: "order.cancellation.requestedDate" },
816
- { path: "order.pausePeriods.pauseDate" },
817
- { path: "order.pausePeriods.resumeDate" },
818
- { path: "order.currentCycle.startedDate" },
819
- { path: "order.currentCycle.endedDate" },
820
- { path: "order.cycles.startedDate" },
821
- { path: "order.cycles.endedDate" }
822
- ]
823
- }
824
- ])
825
- };
826
- return metadata;
827
- }
828
- return __getOfflineOrderPreview;
829
- }
830
- function getPricePreview(payload) {
831
- function __getPricePreview({ host }) {
832
- const metadata = {
833
- entityFqdn: "wix.pricing_plans.v2.order",
834
- method: "POST",
835
- methodFqn: "com.wixpress.membership.v2.orders.CheckoutService.GetPricePreview",
836
- packageName: PACKAGE_NAME,
837
- migrationOptions: {
838
- optInTransformResponse: true
839
- },
840
- url: resolveComWixpressMembershipV2OrdersCheckoutServiceUrl({
841
- protoPath: "/v2/checkout/orders/price-preview",
842
- data: payload,
843
- host
844
- }),
845
- data: payload
846
- };
847
- return metadata;
848
- }
849
- return __getPricePreview;
850
- }
851
- function memberGetOrder(payload) {
852
- function __memberGetOrder({ host }) {
853
- const metadata = {
854
- entityFqdn: "wix.pricing_plans.v2.order",
855
- method: "GET",
856
- methodFqn: "com.wixpress.membership.v2.orders.member.MemberOrdersService.GetOrder",
857
- packageName: PACKAGE_NAME,
858
- migrationOptions: {
859
- optInTransformResponse: true
860
- },
861
- url: resolveComWixpressMembershipV2OrdersMemberMemberOrdersServiceUrl({
862
- protoPath: "/v2/member/orders/{id}",
863
- data: payload,
864
- host
865
- }),
866
- params: (0, import_rest_modules.toURLSearchParams)(payload),
867
- transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
868
- {
869
- transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
870
- paths: [
871
- { path: "order.startDate" },
872
- { path: "order.endDate" },
873
- { path: "order.earliestEndDate" },
874
- { path: "order.createdDate" },
875
- { path: "order.updatedDate" },
876
- { path: "order.cancellation.requestedDate" },
877
- { path: "order.pausePeriods.pauseDate" },
878
- { path: "order.pausePeriods.resumeDate" },
879
- { path: "order.currentCycle.startedDate" },
880
- { path: "order.currentCycle.endedDate" },
881
- { path: "order.cycles.startedDate" },
882
- { path: "order.cycles.endedDate" }
883
- ]
884
- }
885
- ])
886
- };
887
- return metadata;
888
- }
889
- return __memberGetOrder;
890
- }
891
- function memberListOrders(payload) {
892
- function __memberListOrders({ host }) {
893
- const serializedData = (0, import_transform_paths.transformPaths)(payload, [
894
- {
895
- transformFn: import_float.transformSDKFloatToRESTFloat,
896
- paths: [
897
- { path: "sorting.origin.latitude" },
898
- { path: "sorting.origin.longitude" }
899
- ]
900
- }
901
- ]);
902
- const metadata = {
903
- entityFqdn: "wix.pricing_plans.v2.order",
904
- method: "GET",
905
- methodFqn: "com.wixpress.membership.v2.orders.member.MemberOrdersService.ListOrders",
906
- packageName: PACKAGE_NAME,
907
- migrationOptions: {
908
- optInTransformResponse: true
909
- },
910
- url: resolveComWixpressMembershipV2OrdersMemberMemberOrdersServiceUrl({
911
- protoPath: "/v2/member/orders",
912
- data: serializedData,
913
- host
914
- }),
915
- params: (0, import_rest_modules.toURLSearchParams)(serializedData, true),
916
- transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
917
- {
918
- transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
919
- paths: [
920
- { path: "orders.startDate" },
921
- { path: "orders.endDate" },
922
- { path: "orders.earliestEndDate" },
923
- { path: "orders.createdDate" },
924
- { path: "orders.updatedDate" },
925
- { path: "orders.cancellation.requestedDate" },
926
- { path: "orders.pausePeriods.pauseDate" },
927
- { path: "orders.pausePeriods.resumeDate" },
928
- { path: "orders.currentCycle.startedDate" },
929
- { path: "orders.currentCycle.endedDate" },
930
- { path: "orders.cycles.startedDate" },
931
- { path: "orders.cycles.endedDate" }
932
- ]
933
- }
934
- ])
935
- };
936
- return metadata;
937
- }
938
- return __memberListOrders;
939
- }
940
- function requestCancellation(payload) {
941
- function __requestCancellation({ host }) {
942
- const metadata = {
943
- entityFqdn: "wix.pricing_plans.v2.order",
944
- method: "POST",
945
- methodFqn: "com.wixpress.membership.v2.orders.member.MemberOrdersService.RequestCancellation",
946
- packageName: PACKAGE_NAME,
947
- migrationOptions: {
948
- optInTransformResponse: true
949
- },
950
- url: resolveComWixpressMembershipV2OrdersMemberMemberOrdersServiceUrl({
951
- protoPath: "/v2/member/orders/{id}/cancel",
952
- data: payload,
953
- host
954
- }),
955
- data: payload
956
- };
957
- return metadata;
958
- }
959
- return __requestCancellation;
960
- }
961
-
962
- // src/pricing-plans-v2-order-orders.types.ts
963
- var PeriodUnit = /* @__PURE__ */ ((PeriodUnit2) => {
964
- PeriodUnit2["UNDEFINED"] = "UNDEFINED";
965
- PeriodUnit2["DAY"] = "DAY";
966
- PeriodUnit2["WEEK"] = "WEEK";
967
- PeriodUnit2["MONTH"] = "MONTH";
968
- PeriodUnit2["YEAR"] = "YEAR";
969
- return PeriodUnit2;
970
- })(PeriodUnit || {});
971
- var OrderType = /* @__PURE__ */ ((OrderType2) => {
972
- OrderType2["UNDEFINED"] = "UNDEFINED";
973
- OrderType2["ONLINE"] = "ONLINE";
974
- OrderType2["OFFLINE"] = "OFFLINE";
975
- OrderType2["EXTERNAL"] = "EXTERNAL";
976
- return OrderType2;
977
- })(OrderType || {});
978
- var OrderMethod = /* @__PURE__ */ ((OrderMethod2) => {
979
- OrderMethod2["UNKNOWN"] = "UNKNOWN";
980
- OrderMethod2["MOTO"] = "MOTO";
981
- OrderMethod2["POS"] = "POS";
982
- return OrderMethod2;
983
- })(OrderMethod || {});
984
- var OrderStatus = /* @__PURE__ */ ((OrderStatus2) => {
985
- OrderStatus2["UNDEFINED"] = "UNDEFINED";
986
- OrderStatus2["DRAFT"] = "DRAFT";
987
- OrderStatus2["PENDING"] = "PENDING";
988
- OrderStatus2["ACTIVE"] = "ACTIVE";
989
- OrderStatus2["PAUSED"] = "PAUSED";
990
- OrderStatus2["ENDED"] = "ENDED";
991
- OrderStatus2["CANCELED"] = "CANCELED";
992
- return OrderStatus2;
993
- })(OrderStatus || {});
994
- var CancellationCause = /* @__PURE__ */ ((CancellationCause2) => {
995
- CancellationCause2["UNDEFINED"] = "UNDEFINED";
996
- CancellationCause2["OWNER_ACTION"] = "OWNER_ACTION";
997
- CancellationCause2["MEMBER_ACTION"] = "MEMBER_ACTION";
998
- CancellationCause2["PAYMENT_FAILURE"] = "PAYMENT_FAILURE";
999
- CancellationCause2["PAYMENT_SETUP_FAILURE"] = "PAYMENT_SETUP_FAILURE";
1000
- CancellationCause2["UNKNOWN"] = "UNKNOWN";
1001
- return CancellationCause2;
1002
- })(CancellationCause || {});
1003
- var CancellationEffectiveAt = /* @__PURE__ */ ((CancellationEffectiveAt2) => {
1004
- CancellationEffectiveAt2["UNDEFINED"] = "UNDEFINED";
1005
- CancellationEffectiveAt2["IMMEDIATELY"] = "IMMEDIATELY";
1006
- CancellationEffectiveAt2["NEXT_PAYMENT_DATE"] = "NEXT_PAYMENT_DATE";
1007
- return CancellationEffectiveAt2;
1008
- })(CancellationEffectiveAt || {});
1009
- var PaymentStatus = /* @__PURE__ */ ((PaymentStatus2) => {
1010
- PaymentStatus2["UNDEFINED"] = "UNDEFINED";
1011
- PaymentStatus2["PAID"] = "PAID";
1012
- PaymentStatus2["REFUNDED"] = "REFUNDED";
1013
- PaymentStatus2["FAILED"] = "FAILED";
1014
- PaymentStatus2["UNPAID"] = "UNPAID";
1015
- PaymentStatus2["PENDING"] = "PENDING";
1016
- PaymentStatus2["NOT_APPLICABLE"] = "NOT_APPLICABLE";
1017
- return PaymentStatus2;
1018
- })(PaymentStatus || {});
1019
- var Status = /* @__PURE__ */ ((Status2) => {
1020
- Status2["UNDEFINED"] = "UNDEFINED";
1021
- Status2["ACTIVE"] = "ACTIVE";
1022
- Status2["ENDED"] = "ENDED";
1023
- return Status2;
1024
- })(Status || {});
1025
- var Set = /* @__PURE__ */ ((Set2) => {
1026
- Set2["UNKNOWN_SET"] = "UNKNOWN_SET";
1027
- Set2["BASIC"] = "BASIC";
1028
- Set2["FULL"] = "FULL";
1029
- return Set2;
1030
- })(Set || {});
1031
- var SortOrder = /* @__PURE__ */ ((SortOrder2) => {
1032
- SortOrder2["ASC"] = "ASC";
1033
- SortOrder2["DESC"] = "DESC";
1034
- return SortOrder2;
1035
- })(SortOrder || {});
1036
- var ReasonNotSuspendable = /* @__PURE__ */ ((ReasonNotSuspendable2) => {
1037
- ReasonNotSuspendable2["UNDEFINED"] = "UNDEFINED";
1038
- ReasonNotSuspendable2["PENDING"] = "PENDING";
1039
- ReasonNotSuspendable2["TRIAL"] = "TRIAL";
1040
- ReasonNotSuspendable2["CANCELED"] = "CANCELED";
1041
- ReasonNotSuspendable2["ENDED"] = "ENDED";
1042
- ReasonNotSuspendable2["NOT_STARTED"] = "NOT_STARTED";
1043
- ReasonNotSuspendable2["ALREADY_SUSPENDED"] = "ALREADY_SUSPENDED";
1044
- ReasonNotSuspendable2["OLD_STRIPE"] = "OLD_STRIPE";
1045
- return ReasonNotSuspendable2;
1046
- })(ReasonNotSuspendable || {});
1047
- var WebhookIdentityType = /* @__PURE__ */ ((WebhookIdentityType2) => {
1048
- WebhookIdentityType2["UNKNOWN"] = "UNKNOWN";
1049
- WebhookIdentityType2["ANONYMOUS_VISITOR"] = "ANONYMOUS_VISITOR";
1050
- WebhookIdentityType2["MEMBER"] = "MEMBER";
1051
- WebhookIdentityType2["WIX_USER"] = "WIX_USER";
1052
- WebhookIdentityType2["APP"] = "APP";
1053
- return WebhookIdentityType2;
1054
- })(WebhookIdentityType || {});
1055
-
1056
- // src/pricing-plans-v2-order-orders.meta.ts
1057
- function managementGetOrder2() {
1058
- const payload = { id: ":id" };
1059
- const getRequestOptions = managementGetOrder(payload);
1060
- const getUrl = (context) => {
1061
- const { url } = getRequestOptions(context);
1062
- return url;
1063
- };
1064
- return {
1065
- getUrl,
1066
- httpMethod: "GET",
1067
- path: "/v2/orders/{id}",
1068
- pathParams: { id: "id" },
1069
- __requestType: null,
1070
- __originalRequestType: null,
1071
- __responseType: null,
1072
- __originalResponseType: null
1073
- };
1074
- }
1075
- function managementListOrders2() {
1076
- const payload = {};
1077
- const getRequestOptions = managementListOrders(payload);
1078
- const getUrl = (context) => {
1079
- const { url } = getRequestOptions(context);
1080
- return url;
1081
- };
1082
- return {
1083
- getUrl,
1084
- httpMethod: "GET",
1085
- path: "/v2/orders",
1086
- pathParams: {},
1087
- __requestType: null,
1088
- __originalRequestType: null,
1089
- __responseType: null,
1090
- __originalResponseType: null
1091
- };
1092
- }
1093
- function postponeEndDate2() {
1094
- const payload = { id: ":id" };
1095
- const getRequestOptions = postponeEndDate(payload);
1096
- const getUrl = (context) => {
1097
- const { url } = getRequestOptions(context);
1098
- return url;
1099
- };
1100
- return {
1101
- getUrl,
1102
- httpMethod: "PATCH",
1103
- path: "/v2/orders/{id}",
1104
- pathParams: { id: "id" },
1105
- __requestType: null,
1106
- __originalRequestType: null,
1107
- __responseType: null,
1108
- __originalResponseType: null
1109
- };
1110
- }
1111
- function cancelOrder2() {
1112
- const payload = { id: ":id" };
1113
- const getRequestOptions = cancelOrder(payload);
1114
- const getUrl = (context) => {
1115
- const { url } = getRequestOptions(context);
1116
- return url;
1117
- };
1118
- return {
1119
- getUrl,
1120
- httpMethod: "POST",
1121
- path: "/v2/orders/{id}/cancel",
1122
- pathParams: { id: "id" },
1123
- __requestType: null,
1124
- __originalRequestType: null,
1125
- __responseType: null,
1126
- __originalResponseType: null
1127
- };
1128
- }
1129
- function markAsPaid2() {
1130
- const payload = { id: ":id" };
1131
- const getRequestOptions = markAsPaid(payload);
1132
- const getUrl = (context) => {
1133
- const { url } = getRequestOptions(context);
1134
- return url;
1135
- };
1136
- return {
1137
- getUrl,
1138
- httpMethod: "POST",
1139
- path: "/v2/orders/{id}/mark-as-paid",
1140
- pathParams: { id: "id" },
1141
- __requestType: null,
1142
- __originalRequestType: null,
1143
- __responseType: null,
1144
- __originalResponseType: null
1145
- };
1146
- }
1147
- function pauseOrder2() {
1148
- const payload = { id: ":id" };
1149
- const getRequestOptions = pauseOrder(payload);
1150
- const getUrl = (context) => {
1151
- const { url } = getRequestOptions(context);
1152
- return url;
1153
- };
1154
- return {
1155
- getUrl,
1156
- httpMethod: "POST",
1157
- path: "/v2/orders/{id}/pause",
1158
- pathParams: { id: "id" },
1159
- __requestType: null,
1160
- __originalRequestType: null,
1161
- __responseType: null,
1162
- __originalResponseType: null
1163
- };
1164
- }
1165
- function resumeOrder2() {
1166
- const payload = { id: ":id" };
1167
- const getRequestOptions = resumeOrder(payload);
1168
- const getUrl = (context) => {
1169
- const { url } = getRequestOptions(context);
1170
- return url;
1171
- };
1172
- return {
1173
- getUrl,
1174
- httpMethod: "POST",
1175
- path: "/v2/orders/{id}/resume",
1176
- pathParams: { id: "id" },
1177
- __requestType: null,
1178
- __originalRequestType: null,
1179
- __responseType: null,
1180
- __originalResponseType: null
1181
- };
1182
- }
1183
- function createOnlineOrder2() {
1184
- const payload = {};
1185
- const getRequestOptions = createOnlineOrder(payload);
1186
- const getUrl = (context) => {
1187
- const { url } = getRequestOptions(context);
1188
- return url;
1189
- };
1190
- return {
1191
- getUrl,
1192
- httpMethod: "POST",
1193
- path: "/v2/checkout/orders/online",
1194
- pathParams: {},
1195
- __requestType: null,
1196
- __originalRequestType: null,
1197
- __responseType: null,
1198
- __originalResponseType: null
1199
- };
1200
- }
1201
- function createOfflineOrder2() {
1202
- const payload = {};
1203
- const getRequestOptions = createOfflineOrder(payload);
1204
- const getUrl = (context) => {
1205
- const { url } = getRequestOptions(context);
1206
- return url;
1207
- };
1208
- return {
1209
- getUrl,
1210
- httpMethod: "POST",
1211
- path: "/v2/checkout/orders/offline",
1212
- pathParams: {},
1213
- __requestType: null,
1214
- __originalRequestType: null,
1215
- __responseType: null,
1216
- __originalResponseType: null
1217
- };
1218
- }
1219
- function getOnlineOrderPreview2() {
1220
- const payload = {};
1221
- const getRequestOptions = getOnlineOrderPreview(payload);
1222
- const getUrl = (context) => {
1223
- const { url } = getRequestOptions(context);
1224
- return url;
1225
- };
1226
- return {
1227
- getUrl,
1228
- httpMethod: "POST",
1229
- path: "/v2/checkout/orders/preview-online",
1230
- pathParams: {},
1231
- __requestType: null,
1232
- __originalRequestType: null,
1233
- __responseType: null,
1234
- __originalResponseType: null
1235
- };
1236
- }
1237
- function getOfflineOrderPreview2() {
1238
- const payload = {};
1239
- const getRequestOptions = getOfflineOrderPreview(payload);
1240
- const getUrl = (context) => {
1241
- const { url } = getRequestOptions(context);
1242
- return url;
1243
- };
1244
- return {
1245
- getUrl,
1246
- httpMethod: "POST",
1247
- path: "/v2/checkout/orders/preview-offline",
1248
- pathParams: {},
1249
- __requestType: null,
1250
- __originalRequestType: null,
1251
- __responseType: null,
1252
- __originalResponseType: null
1253
- };
1254
- }
1255
- function getPricePreview2() {
1256
- const payload = {};
1257
- const getRequestOptions = getPricePreview(payload);
1258
- const getUrl = (context) => {
1259
- const { url } = getRequestOptions(context);
1260
- return url;
1261
- };
1262
- return {
1263
- getUrl,
1264
- httpMethod: "POST",
1265
- path: "/v2/checkout/orders/price-preview",
1266
- pathParams: {},
1267
- __requestType: null,
1268
- __originalRequestType: null,
1269
- __responseType: null,
1270
- __originalResponseType: null
1271
- };
1272
- }
1273
- function memberGetOrder2() {
1274
- const payload = { id: ":id" };
1275
- const getRequestOptions = memberGetOrder(payload);
1276
- const getUrl = (context) => {
1277
- const { url } = getRequestOptions(context);
1278
- return url;
1279
- };
1280
- return {
1281
- getUrl,
1282
- httpMethod: "GET",
1283
- path: "/v2/member/orders/{id}",
1284
- pathParams: { id: "id" },
1285
- __requestType: null,
1286
- __originalRequestType: null,
1287
- __responseType: null,
1288
- __originalResponseType: null
1289
- };
1290
- }
1291
- function memberListOrders2() {
1292
- const payload = {};
1293
- const getRequestOptions = memberListOrders(payload);
1294
- const getUrl = (context) => {
1295
- const { url } = getRequestOptions(context);
1296
- return url;
1297
- };
1298
- return {
1299
- getUrl,
1300
- httpMethod: "GET",
1301
- path: "/v2/member/orders",
1302
- pathParams: {},
1303
- __requestType: null,
1304
- __originalRequestType: null,
1305
- __responseType: null,
1306
- __originalResponseType: null
1307
- };
1308
- }
1309
- function requestCancellation2() {
1310
- const payload = { id: ":id" };
1311
- const getRequestOptions = requestCancellation(payload);
1312
- const getUrl = (context) => {
1313
- const { url } = getRequestOptions(context);
1314
- return url;
1315
- };
1316
- return {
1317
- getUrl,
1318
- httpMethod: "POST",
1319
- path: "/v2/member/orders/{id}/cancel",
1320
- pathParams: { id: "id" },
1321
- __requestType: null,
1322
- __originalRequestType: null,
1323
- __responseType: null,
1324
- __originalResponseType: null
1325
- };
1326
- }
1327
- // Annotate the CommonJS export names for ESM import in node:
1328
- 0 && (module.exports = {
1329
- CancellationCauseOriginal,
1330
- CancellationEffectiveAtOriginal,
1331
- OrderMethodOriginal,
1332
- OrderStatusOriginal,
1333
- OrderTypeOriginal,
1334
- PaymentStatusOriginal,
1335
- PeriodUnitOriginal,
1336
- ReasonNotSuspendableOriginal,
1337
- SetOriginal,
1338
- SortOrderOriginal,
1339
- StatusOriginal,
1340
- WebhookIdentityTypeOriginal,
1341
- cancelOrder,
1342
- createOfflineOrder,
1343
- createOnlineOrder,
1344
- getOfflineOrderPreview,
1345
- getOnlineOrderPreview,
1346
- getPricePreview,
1347
- managementGetOrder,
1348
- managementListOrders,
1349
- markAsPaid,
1350
- memberGetOrder,
1351
- memberListOrders,
1352
- pauseOrder,
1353
- postponeEndDate,
1354
- requestCancellation,
1355
- resumeOrder
1356
- });
1357
- //# sourceMappingURL=meta.js.map