@wix/auto_sdk_ecom_checkout 1.0.168 → 1.0.170

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,1776 +0,0 @@
1
- // src/ecom-v1-checkout-checkout.http.ts
2
- import { toURLSearchParams } from "@wix/sdk-runtime/rest-modules";
3
- import { transformSDKFloatToRESTFloat } from "@wix/sdk-runtime/transformations/float";
4
- import { transformRESTFloatToSDKFloat } from "@wix/sdk-runtime/transformations/float";
5
- import { transformRESTBytesToSDKBytes } from "@wix/sdk-runtime/transformations/bytes";
6
- import { transformSDKTimestampToRESTTimestamp } from "@wix/sdk-runtime/transformations/timestamp";
7
- import { transformRESTTimestampToSDKTimestamp } from "@wix/sdk-runtime/transformations/timestamp";
8
- import { transformSDKFieldMaskToRESTFieldMask } from "@wix/sdk-runtime/transformations/field-mask";
9
- import { transformPaths } from "@wix/sdk-runtime/transformations/transform-paths";
10
- import { resolveUrl } from "@wix/sdk-runtime/rest-modules";
11
- function resolveComWixEcomCheckoutApiV1CheckoutServiceUrl(opts) {
12
- const domainToMappings = {
13
- "api._api_base_domain_": [
14
- {
15
- srcPath: "/checkout",
16
- destPath: ""
17
- }
18
- ]
19
- };
20
- return resolveUrl(Object.assign(opts, { domainToMappings }));
21
- }
22
- var PACKAGE_NAME = "@wix/auto_sdk_ecom_checkout";
23
- function createCheckout(payload) {
24
- function __createCheckout({ host }) {
25
- const serializedData = transformPaths(payload, [
26
- {
27
- transformFn: transformSDKTimestampToRESTTimestamp,
28
- paths: [
29
- { path: "checkoutInfo.createdDate" },
30
- { path: "checkoutInfo.updatedDate" },
31
- { path: "checkoutInfo.lineItems.media.urlExpirationDate" },
32
- {
33
- path: "checkoutInfo.lineItems.subscriptionOptionInfo.subscriptionSettings.startDate"
34
- },
35
- { path: "checkoutInfo.lineItems.serviceProperties.scheduledDate" },
36
- { path: "checkoutInfo.lineItems.serviceProperties.endDate" },
37
- {
38
- path: "checkoutInfo.shippingInfo.selectedCarrierServiceOption.logistics.deliveryTimeSlot.from"
39
- },
40
- {
41
- path: "checkoutInfo.shippingInfo.selectedCarrierServiceOption.logistics.deliveryTimeSlot.to"
42
- },
43
- {
44
- path: "checkoutInfo.shippingInfo.carrierServiceOptions.shippingOptions.logistics.deliveryTimeSlot.from"
45
- },
46
- {
47
- path: "checkoutInfo.shippingInfo.carrierServiceOptions.shippingOptions.logistics.deliveryTimeSlot.to"
48
- },
49
- {
50
- path: "checkoutInfo.membershipOptions.eligibleMemberships.expirationDate"
51
- },
52
- {
53
- path: "checkoutInfo.membershipOptions.invalidMemberships.membership.expirationDate"
54
- },
55
- { path: "checkoutInfo.subscriptionCharges.charges.cycleBillingDate" },
56
- { path: "lineItems.media.urlExpirationDate" },
57
- {
58
- path: "lineItems.subscriptionOptionInfo.subscriptionSettings.startDate"
59
- },
60
- { path: "lineItems.serviceProperties.scheduledDate" },
61
- { path: "lineItems.serviceProperties.endDate" },
62
- {
63
- path: "customLineItems.subscriptionOptionInfo.subscriptionSettings.startDate"
64
- },
65
- { path: "customLineItems.serviceProperties.scheduledDate" },
66
- { path: "customLineItems.serviceProperties.endDate" }
67
- ]
68
- },
69
- {
70
- transformFn: transformSDKFloatToRESTFloat,
71
- paths: [
72
- { path: "checkoutInfo.lineItems.media.focalPoint.x" },
73
- { path: "checkoutInfo.lineItems.media.focalPoint.y" },
74
- { path: "lineItems.media.focalPoint.x" },
75
- { path: "lineItems.media.focalPoint.y" },
76
- { path: "checkoutInfo.lineItems.physicalProperties.weight" },
77
- {
78
- path: "checkoutInfo.lineItems.catalogOverrideFields.physicalProperties.weight"
79
- },
80
- { path: "checkoutInfo.billingInfo.address.geocode.latitude" },
81
- { path: "checkoutInfo.billingInfo.address.geocode.longitude" },
82
- {
83
- path: "checkoutInfo.shippingInfo.shippingDestination.address.geocode.latitude"
84
- },
85
- {
86
- path: "checkoutInfo.shippingInfo.shippingDestination.address.geocode.longitude"
87
- },
88
- {
89
- path: "checkoutInfo.shippingInfo.selectedCarrierServiceOption.logistics.pickupDetails.address.geocode.latitude"
90
- },
91
- {
92
- path: "checkoutInfo.shippingInfo.selectedCarrierServiceOption.logistics.pickupDetails.address.geocode.longitude"
93
- },
94
- {
95
- path: "checkoutInfo.shippingInfo.carrierServiceOptions.shippingOptions.logistics.pickupDetails.address.geocode.latitude"
96
- },
97
- {
98
- path: "checkoutInfo.shippingInfo.carrierServiceOptions.shippingOptions.logistics.pickupDetails.address.geocode.longitude"
99
- },
100
- { path: "checkoutInfo.appliedDiscounts.merchantDiscount.percentage" },
101
- { path: "lineItems.physicalProperties.weight" },
102
- { path: "lineItems.catalogOverrideFields.physicalProperties.weight" },
103
- { path: "customLineItems.physicalProperties.weight" }
104
- ]
105
- }
106
- ]);
107
- const metadata = {
108
- entityFqdn: "wix.ecom.v1.checkout",
109
- method: "POST",
110
- methodFqn: "com.wix.ecom.checkout.api.v1.CheckoutService.CreateCheckout",
111
- packageName: PACKAGE_NAME,
112
- migrationOptions: {
113
- optInTransformResponse: true
114
- },
115
- url: resolveComWixEcomCheckoutApiV1CheckoutServiceUrl({
116
- protoPath: "/v1/checkouts",
117
- data: serializedData,
118
- host
119
- }),
120
- data: serializedData,
121
- transformResponse: (payload2) => transformPaths(payload2, [
122
- {
123
- transformFn: transformRESTTimestampToSDKTimestamp,
124
- paths: [
125
- { path: "checkout.createdDate" },
126
- { path: "checkout.updatedDate" },
127
- { path: "checkout.lineItems.media.urlExpirationDate" },
128
- {
129
- path: "checkout.lineItems.subscriptionOptionInfo.subscriptionSettings.startDate"
130
- },
131
- { path: "checkout.lineItems.serviceProperties.scheduledDate" },
132
- { path: "checkout.lineItems.serviceProperties.endDate" },
133
- {
134
- path: "checkout.shippingInfo.selectedCarrierServiceOption.logistics.deliveryTimeSlot.from"
135
- },
136
- {
137
- path: "checkout.shippingInfo.selectedCarrierServiceOption.logistics.deliveryTimeSlot.to"
138
- },
139
- {
140
- path: "checkout.shippingInfo.carrierServiceOptions.shippingOptions.logistics.deliveryTimeSlot.from"
141
- },
142
- {
143
- path: "checkout.shippingInfo.carrierServiceOptions.shippingOptions.logistics.deliveryTimeSlot.to"
144
- },
145
- {
146
- path: "checkout.membershipOptions.eligibleMemberships.expirationDate"
147
- },
148
- {
149
- path: "checkout.membershipOptions.invalidMemberships.membership.expirationDate"
150
- },
151
- { path: "checkout.subscriptionCharges.charges.cycleBillingDate" }
152
- ]
153
- },
154
- {
155
- transformFn: transformRESTFloatToSDKFloat,
156
- paths: [
157
- { path: "checkout.lineItems.media.focalPoint.x" },
158
- { path: "checkout.lineItems.media.focalPoint.y" },
159
- { path: "checkout.lineItems.physicalProperties.weight" },
160
- {
161
- path: "checkout.lineItems.catalogOverrideFields.physicalProperties.weight"
162
- },
163
- { path: "checkout.billingInfo.address.geocode.latitude" },
164
- { path: "checkout.billingInfo.address.geocode.longitude" },
165
- {
166
- path: "checkout.shippingInfo.shippingDestination.address.geocode.latitude"
167
- },
168
- {
169
- path: "checkout.shippingInfo.shippingDestination.address.geocode.longitude"
170
- },
171
- {
172
- path: "checkout.shippingInfo.selectedCarrierServiceOption.logistics.pickupDetails.address.geocode.latitude"
173
- },
174
- {
175
- path: "checkout.shippingInfo.selectedCarrierServiceOption.logistics.pickupDetails.address.geocode.longitude"
176
- },
177
- {
178
- path: "checkout.shippingInfo.carrierServiceOptions.shippingOptions.logistics.pickupDetails.address.geocode.latitude"
179
- },
180
- {
181
- path: "checkout.shippingInfo.carrierServiceOptions.shippingOptions.logistics.pickupDetails.address.geocode.longitude"
182
- },
183
- { path: "checkout.appliedDiscounts.merchantDiscount.percentage" }
184
- ]
185
- }
186
- ])
187
- };
188
- return metadata;
189
- }
190
- return __createCheckout;
191
- }
192
- function getCheckout(payload) {
193
- function __getCheckout({ host }) {
194
- const metadata = {
195
- entityFqdn: "wix.ecom.v1.checkout",
196
- method: "GET",
197
- methodFqn: "com.wix.ecom.checkout.api.v1.CheckoutService.GetCheckout",
198
- packageName: PACKAGE_NAME,
199
- migrationOptions: {
200
- optInTransformResponse: true
201
- },
202
- url: resolveComWixEcomCheckoutApiV1CheckoutServiceUrl({
203
- protoPath: "/v1/checkouts/{id}",
204
- data: payload,
205
- host
206
- }),
207
- params: toURLSearchParams(payload),
208
- transformResponse: (payload2) => transformPaths(payload2, [
209
- {
210
- transformFn: transformRESTTimestampToSDKTimestamp,
211
- paths: [
212
- { path: "checkout.createdDate" },
213
- { path: "checkout.updatedDate" },
214
- { path: "checkout.lineItems.media.urlExpirationDate" },
215
- {
216
- path: "checkout.lineItems.subscriptionOptionInfo.subscriptionSettings.startDate"
217
- },
218
- { path: "checkout.lineItems.serviceProperties.scheduledDate" },
219
- { path: "checkout.lineItems.serviceProperties.endDate" },
220
- {
221
- path: "checkout.shippingInfo.selectedCarrierServiceOption.logistics.deliveryTimeSlot.from"
222
- },
223
- {
224
- path: "checkout.shippingInfo.selectedCarrierServiceOption.logistics.deliveryTimeSlot.to"
225
- },
226
- {
227
- path: "checkout.shippingInfo.carrierServiceOptions.shippingOptions.logistics.deliveryTimeSlot.from"
228
- },
229
- {
230
- path: "checkout.shippingInfo.carrierServiceOptions.shippingOptions.logistics.deliveryTimeSlot.to"
231
- },
232
- {
233
- path: "checkout.membershipOptions.eligibleMemberships.expirationDate"
234
- },
235
- {
236
- path: "checkout.membershipOptions.invalidMemberships.membership.expirationDate"
237
- },
238
- { path: "checkout.subscriptionCharges.charges.cycleBillingDate" }
239
- ]
240
- },
241
- {
242
- transformFn: transformRESTFloatToSDKFloat,
243
- paths: [
244
- { path: "checkout.lineItems.media.focalPoint.x" },
245
- { path: "checkout.lineItems.media.focalPoint.y" },
246
- { path: "checkout.lineItems.physicalProperties.weight" },
247
- {
248
- path: "checkout.lineItems.catalogOverrideFields.physicalProperties.weight"
249
- },
250
- { path: "checkout.billingInfo.address.geocode.latitude" },
251
- { path: "checkout.billingInfo.address.geocode.longitude" },
252
- {
253
- path: "checkout.shippingInfo.shippingDestination.address.geocode.latitude"
254
- },
255
- {
256
- path: "checkout.shippingInfo.shippingDestination.address.geocode.longitude"
257
- },
258
- {
259
- path: "checkout.shippingInfo.selectedCarrierServiceOption.logistics.pickupDetails.address.geocode.latitude"
260
- },
261
- {
262
- path: "checkout.shippingInfo.selectedCarrierServiceOption.logistics.pickupDetails.address.geocode.longitude"
263
- },
264
- {
265
- path: "checkout.shippingInfo.carrierServiceOptions.shippingOptions.logistics.pickupDetails.address.geocode.latitude"
266
- },
267
- {
268
- path: "checkout.shippingInfo.carrierServiceOptions.shippingOptions.logistics.pickupDetails.address.geocode.longitude"
269
- },
270
- { path: "checkout.appliedDiscounts.merchantDiscount.percentage" }
271
- ]
272
- }
273
- ])
274
- };
275
- return metadata;
276
- }
277
- return __getCheckout;
278
- }
279
- function getCheckoutByCartId(payload) {
280
- function __getCheckoutByCartId({ host }) {
281
- const metadata = {
282
- entityFqdn: "wix.ecom.v1.checkout",
283
- method: "GET",
284
- methodFqn: "com.wix.ecom.checkout.api.v1.CheckoutService.GetCheckoutByCartId",
285
- packageName: PACKAGE_NAME,
286
- migrationOptions: {
287
- optInTransformResponse: true
288
- },
289
- url: resolveComWixEcomCheckoutApiV1CheckoutServiceUrl({
290
- protoPath: "/v1/checkouts/by-cart-id/{id}",
291
- data: payload,
292
- host
293
- }),
294
- params: toURLSearchParams(payload),
295
- transformResponse: (payload2) => transformPaths(payload2, [
296
- {
297
- transformFn: transformRESTTimestampToSDKTimestamp,
298
- paths: [
299
- { path: "checkout.createdDate" },
300
- { path: "checkout.updatedDate" },
301
- { path: "checkout.lineItems.media.urlExpirationDate" },
302
- {
303
- path: "checkout.lineItems.subscriptionOptionInfo.subscriptionSettings.startDate"
304
- },
305
- { path: "checkout.lineItems.serviceProperties.scheduledDate" },
306
- { path: "checkout.lineItems.serviceProperties.endDate" },
307
- {
308
- path: "checkout.shippingInfo.selectedCarrierServiceOption.logistics.deliveryTimeSlot.from"
309
- },
310
- {
311
- path: "checkout.shippingInfo.selectedCarrierServiceOption.logistics.deliveryTimeSlot.to"
312
- },
313
- {
314
- path: "checkout.shippingInfo.carrierServiceOptions.shippingOptions.logistics.deliveryTimeSlot.from"
315
- },
316
- {
317
- path: "checkout.shippingInfo.carrierServiceOptions.shippingOptions.logistics.deliveryTimeSlot.to"
318
- },
319
- {
320
- path: "checkout.membershipOptions.eligibleMemberships.expirationDate"
321
- },
322
- {
323
- path: "checkout.membershipOptions.invalidMemberships.membership.expirationDate"
324
- },
325
- { path: "checkout.subscriptionCharges.charges.cycleBillingDate" }
326
- ]
327
- },
328
- {
329
- transformFn: transformRESTFloatToSDKFloat,
330
- paths: [
331
- { path: "checkout.lineItems.media.focalPoint.x" },
332
- { path: "checkout.lineItems.media.focalPoint.y" },
333
- { path: "checkout.lineItems.physicalProperties.weight" },
334
- {
335
- path: "checkout.lineItems.catalogOverrideFields.physicalProperties.weight"
336
- },
337
- { path: "checkout.billingInfo.address.geocode.latitude" },
338
- { path: "checkout.billingInfo.address.geocode.longitude" },
339
- {
340
- path: "checkout.shippingInfo.shippingDestination.address.geocode.latitude"
341
- },
342
- {
343
- path: "checkout.shippingInfo.shippingDestination.address.geocode.longitude"
344
- },
345
- {
346
- path: "checkout.shippingInfo.selectedCarrierServiceOption.logistics.pickupDetails.address.geocode.latitude"
347
- },
348
- {
349
- path: "checkout.shippingInfo.selectedCarrierServiceOption.logistics.pickupDetails.address.geocode.longitude"
350
- },
351
- {
352
- path: "checkout.shippingInfo.carrierServiceOptions.shippingOptions.logistics.pickupDetails.address.geocode.latitude"
353
- },
354
- {
355
- path: "checkout.shippingInfo.carrierServiceOptions.shippingOptions.logistics.pickupDetails.address.geocode.longitude"
356
- },
357
- { path: "checkout.appliedDiscounts.merchantDiscount.percentage" }
358
- ]
359
- }
360
- ])
361
- };
362
- return metadata;
363
- }
364
- return __getCheckoutByCartId;
365
- }
366
- function getWixCheckoutUrl(payload) {
367
- function __getWixCheckoutUrl({ host }) {
368
- const metadata = {
369
- entityFqdn: "wix.ecom.v1.checkout",
370
- method: "GET",
371
- methodFqn: "com.wix.ecom.checkout.api.v1.CheckoutService.GetWixCheckoutURL",
372
- packageName: PACKAGE_NAME,
373
- migrationOptions: {
374
- optInTransformResponse: true
375
- },
376
- url: resolveComWixEcomCheckoutApiV1CheckoutServiceUrl({
377
- protoPath: "/v1/checkouts/{id}/wix-checkout-url",
378
- data: payload,
379
- host
380
- }),
381
- params: toURLSearchParams(payload)
382
- };
383
- return metadata;
384
- }
385
- return __getWixCheckoutUrl;
386
- }
387
- function getCheckoutUrl(payload) {
388
- function __getCheckoutUrl({ host }) {
389
- const metadata = {
390
- entityFqdn: "wix.ecom.v1.checkout",
391
- method: "GET",
392
- methodFqn: "com.wix.ecom.checkout.api.v1.CheckoutService.GetCheckoutURL",
393
- packageName: PACKAGE_NAME,
394
- migrationOptions: {
395
- optInTransformResponse: true
396
- },
397
- url: resolveComWixEcomCheckoutApiV1CheckoutServiceUrl({
398
- protoPath: "/v1/checkouts/{id}/checkout-url",
399
- data: payload,
400
- host
401
- }),
402
- params: toURLSearchParams(payload)
403
- };
404
- return metadata;
405
- }
406
- return __getCheckoutUrl;
407
- }
408
- function updateCheckout(payload) {
409
- function __updateCheckout({ host }) {
410
- const serializedData = transformPaths(payload, [
411
- {
412
- transformFn: transformSDKFieldMaskToRESTFieldMask,
413
- paths: [{ path: "fieldMask" }]
414
- },
415
- {
416
- transformFn: transformSDKTimestampToRESTTimestamp,
417
- paths: [
418
- { path: "checkout.createdDate" },
419
- { path: "checkout.updatedDate" },
420
- { path: "checkout.lineItems.media.urlExpirationDate" },
421
- {
422
- path: "checkout.lineItems.subscriptionOptionInfo.subscriptionSettings.startDate"
423
- },
424
- { path: "checkout.lineItems.serviceProperties.scheduledDate" },
425
- { path: "checkout.lineItems.serviceProperties.endDate" },
426
- {
427
- path: "checkout.shippingInfo.selectedCarrierServiceOption.logistics.deliveryTimeSlot.from"
428
- },
429
- {
430
- path: "checkout.shippingInfo.selectedCarrierServiceOption.logistics.deliveryTimeSlot.to"
431
- },
432
- {
433
- path: "checkout.shippingInfo.carrierServiceOptions.shippingOptions.logistics.deliveryTimeSlot.from"
434
- },
435
- {
436
- path: "checkout.shippingInfo.carrierServiceOptions.shippingOptions.logistics.deliveryTimeSlot.to"
437
- },
438
- {
439
- path: "checkout.membershipOptions.eligibleMemberships.expirationDate"
440
- },
441
- {
442
- path: "checkout.membershipOptions.invalidMemberships.membership.expirationDate"
443
- },
444
- { path: "checkout.subscriptionCharges.charges.cycleBillingDate" },
445
- { path: "lineItems.media.urlExpirationDate" },
446
- {
447
- path: "lineItems.subscriptionOptionInfo.subscriptionSettings.startDate"
448
- },
449
- { path: "lineItems.serviceProperties.scheduledDate" },
450
- { path: "lineItems.serviceProperties.endDate" },
451
- {
452
- path: "customLineItems.subscriptionOptionInfo.subscriptionSettings.startDate"
453
- },
454
- { path: "customLineItems.serviceProperties.scheduledDate" },
455
- { path: "customLineItems.serviceProperties.endDate" }
456
- ]
457
- },
458
- {
459
- transformFn: transformSDKFloatToRESTFloat,
460
- paths: [
461
- { path: "checkout.lineItems.media.focalPoint.x" },
462
- { path: "checkout.lineItems.media.focalPoint.y" },
463
- { path: "lineItems.media.focalPoint.x" },
464
- { path: "lineItems.media.focalPoint.y" },
465
- { path: "checkout.lineItems.physicalProperties.weight" },
466
- {
467
- path: "checkout.lineItems.catalogOverrideFields.physicalProperties.weight"
468
- },
469
- { path: "checkout.billingInfo.address.geocode.latitude" },
470
- { path: "checkout.billingInfo.address.geocode.longitude" },
471
- {
472
- path: "checkout.shippingInfo.shippingDestination.address.geocode.latitude"
473
- },
474
- {
475
- path: "checkout.shippingInfo.shippingDestination.address.geocode.longitude"
476
- },
477
- {
478
- path: "checkout.shippingInfo.selectedCarrierServiceOption.logistics.pickupDetails.address.geocode.latitude"
479
- },
480
- {
481
- path: "checkout.shippingInfo.selectedCarrierServiceOption.logistics.pickupDetails.address.geocode.longitude"
482
- },
483
- {
484
- path: "checkout.shippingInfo.carrierServiceOptions.shippingOptions.logistics.pickupDetails.address.geocode.latitude"
485
- },
486
- {
487
- path: "checkout.shippingInfo.carrierServiceOptions.shippingOptions.logistics.pickupDetails.address.geocode.longitude"
488
- },
489
- { path: "checkout.appliedDiscounts.merchantDiscount.percentage" },
490
- { path: "lineItems.physicalProperties.weight" },
491
- { path: "lineItems.catalogOverrideFields.physicalProperties.weight" },
492
- { path: "customLineItems.physicalProperties.weight" }
493
- ]
494
- }
495
- ]);
496
- const metadata = {
497
- entityFqdn: "wix.ecom.v1.checkout",
498
- method: "PATCH",
499
- methodFqn: "com.wix.ecom.checkout.api.v1.CheckoutService.UpdateCheckout",
500
- packageName: PACKAGE_NAME,
501
- migrationOptions: {
502
- optInTransformResponse: true
503
- },
504
- url: resolveComWixEcomCheckoutApiV1CheckoutServiceUrl({
505
- protoPath: "/v1/checkouts/{checkout.id}",
506
- data: serializedData,
507
- host
508
- }),
509
- data: serializedData,
510
- transformResponse: (payload2) => transformPaths(payload2, [
511
- {
512
- transformFn: transformRESTTimestampToSDKTimestamp,
513
- paths: [
514
- { path: "checkout.createdDate" },
515
- { path: "checkout.updatedDate" },
516
- { path: "checkout.lineItems.media.urlExpirationDate" },
517
- {
518
- path: "checkout.lineItems.subscriptionOptionInfo.subscriptionSettings.startDate"
519
- },
520
- { path: "checkout.lineItems.serviceProperties.scheduledDate" },
521
- { path: "checkout.lineItems.serviceProperties.endDate" },
522
- {
523
- path: "checkout.shippingInfo.selectedCarrierServiceOption.logistics.deliveryTimeSlot.from"
524
- },
525
- {
526
- path: "checkout.shippingInfo.selectedCarrierServiceOption.logistics.deliveryTimeSlot.to"
527
- },
528
- {
529
- path: "checkout.shippingInfo.carrierServiceOptions.shippingOptions.logistics.deliveryTimeSlot.from"
530
- },
531
- {
532
- path: "checkout.shippingInfo.carrierServiceOptions.shippingOptions.logistics.deliveryTimeSlot.to"
533
- },
534
- {
535
- path: "checkout.membershipOptions.eligibleMemberships.expirationDate"
536
- },
537
- {
538
- path: "checkout.membershipOptions.invalidMemberships.membership.expirationDate"
539
- },
540
- { path: "checkout.subscriptionCharges.charges.cycleBillingDate" }
541
- ]
542
- },
543
- {
544
- transformFn: transformRESTFloatToSDKFloat,
545
- paths: [
546
- { path: "checkout.lineItems.media.focalPoint.x" },
547
- { path: "checkout.lineItems.media.focalPoint.y" },
548
- { path: "checkout.lineItems.physicalProperties.weight" },
549
- {
550
- path: "checkout.lineItems.catalogOverrideFields.physicalProperties.weight"
551
- },
552
- { path: "checkout.billingInfo.address.geocode.latitude" },
553
- { path: "checkout.billingInfo.address.geocode.longitude" },
554
- {
555
- path: "checkout.shippingInfo.shippingDestination.address.geocode.latitude"
556
- },
557
- {
558
- path: "checkout.shippingInfo.shippingDestination.address.geocode.longitude"
559
- },
560
- {
561
- path: "checkout.shippingInfo.selectedCarrierServiceOption.logistics.pickupDetails.address.geocode.latitude"
562
- },
563
- {
564
- path: "checkout.shippingInfo.selectedCarrierServiceOption.logistics.pickupDetails.address.geocode.longitude"
565
- },
566
- {
567
- path: "checkout.shippingInfo.carrierServiceOptions.shippingOptions.logistics.pickupDetails.address.geocode.latitude"
568
- },
569
- {
570
- path: "checkout.shippingInfo.carrierServiceOptions.shippingOptions.logistics.pickupDetails.address.geocode.longitude"
571
- },
572
- { path: "checkout.appliedDiscounts.merchantDiscount.percentage" }
573
- ]
574
- }
575
- ])
576
- };
577
- return metadata;
578
- }
579
- return __updateCheckout;
580
- }
581
- function removeCoupon(payload) {
582
- function __removeCoupon({ host }) {
583
- const metadata = {
584
- entityFqdn: "wix.ecom.v1.checkout",
585
- method: "POST",
586
- methodFqn: "com.wix.ecom.checkout.api.v1.CheckoutService.RemoveCoupon",
587
- packageName: PACKAGE_NAME,
588
- migrationOptions: {
589
- optInTransformResponse: true
590
- },
591
- url: resolveComWixEcomCheckoutApiV1CheckoutServiceUrl({
592
- protoPath: "/v1/checkouts/{id}/remove-coupon",
593
- data: payload,
594
- host
595
- }),
596
- data: payload,
597
- transformResponse: (payload2) => transformPaths(payload2, [
598
- {
599
- transformFn: transformRESTTimestampToSDKTimestamp,
600
- paths: [
601
- { path: "checkout.createdDate" },
602
- { path: "checkout.updatedDate" },
603
- { path: "checkout.lineItems.media.urlExpirationDate" },
604
- {
605
- path: "checkout.lineItems.subscriptionOptionInfo.subscriptionSettings.startDate"
606
- },
607
- { path: "checkout.lineItems.serviceProperties.scheduledDate" },
608
- { path: "checkout.lineItems.serviceProperties.endDate" },
609
- {
610
- path: "checkout.shippingInfo.selectedCarrierServiceOption.logistics.deliveryTimeSlot.from"
611
- },
612
- {
613
- path: "checkout.shippingInfo.selectedCarrierServiceOption.logistics.deliveryTimeSlot.to"
614
- },
615
- {
616
- path: "checkout.shippingInfo.carrierServiceOptions.shippingOptions.logistics.deliveryTimeSlot.from"
617
- },
618
- {
619
- path: "checkout.shippingInfo.carrierServiceOptions.shippingOptions.logistics.deliveryTimeSlot.to"
620
- },
621
- {
622
- path: "checkout.membershipOptions.eligibleMemberships.expirationDate"
623
- },
624
- {
625
- path: "checkout.membershipOptions.invalidMemberships.membership.expirationDate"
626
- },
627
- { path: "checkout.subscriptionCharges.charges.cycleBillingDate" }
628
- ]
629
- },
630
- {
631
- transformFn: transformRESTFloatToSDKFloat,
632
- paths: [
633
- { path: "checkout.lineItems.media.focalPoint.x" },
634
- { path: "checkout.lineItems.media.focalPoint.y" },
635
- { path: "checkout.lineItems.physicalProperties.weight" },
636
- {
637
- path: "checkout.lineItems.catalogOverrideFields.physicalProperties.weight"
638
- },
639
- { path: "checkout.billingInfo.address.geocode.latitude" },
640
- { path: "checkout.billingInfo.address.geocode.longitude" },
641
- {
642
- path: "checkout.shippingInfo.shippingDestination.address.geocode.latitude"
643
- },
644
- {
645
- path: "checkout.shippingInfo.shippingDestination.address.geocode.longitude"
646
- },
647
- {
648
- path: "checkout.shippingInfo.selectedCarrierServiceOption.logistics.pickupDetails.address.geocode.latitude"
649
- },
650
- {
651
- path: "checkout.shippingInfo.selectedCarrierServiceOption.logistics.pickupDetails.address.geocode.longitude"
652
- },
653
- {
654
- path: "checkout.shippingInfo.carrierServiceOptions.shippingOptions.logistics.pickupDetails.address.geocode.latitude"
655
- },
656
- {
657
- path: "checkout.shippingInfo.carrierServiceOptions.shippingOptions.logistics.pickupDetails.address.geocode.longitude"
658
- },
659
- { path: "checkout.appliedDiscounts.merchantDiscount.percentage" }
660
- ]
661
- }
662
- ])
663
- };
664
- return metadata;
665
- }
666
- return __removeCoupon;
667
- }
668
- function removeGiftCard(payload) {
669
- function __removeGiftCard({ host }) {
670
- const metadata = {
671
- entityFqdn: "wix.ecom.v1.checkout",
672
- method: "POST",
673
- methodFqn: "com.wix.ecom.checkout.api.v1.CheckoutService.RemoveGiftCard",
674
- packageName: PACKAGE_NAME,
675
- migrationOptions: {
676
- optInTransformResponse: true
677
- },
678
- url: resolveComWixEcomCheckoutApiV1CheckoutServiceUrl({
679
- protoPath: "/v1/checkouts/{id}/remove-gift-card",
680
- data: payload,
681
- host
682
- }),
683
- data: payload,
684
- transformResponse: (payload2) => transformPaths(payload2, [
685
- {
686
- transformFn: transformRESTTimestampToSDKTimestamp,
687
- paths: [
688
- { path: "checkout.createdDate" },
689
- { path: "checkout.updatedDate" },
690
- { path: "checkout.lineItems.media.urlExpirationDate" },
691
- {
692
- path: "checkout.lineItems.subscriptionOptionInfo.subscriptionSettings.startDate"
693
- },
694
- { path: "checkout.lineItems.serviceProperties.scheduledDate" },
695
- { path: "checkout.lineItems.serviceProperties.endDate" },
696
- {
697
- path: "checkout.shippingInfo.selectedCarrierServiceOption.logistics.deliveryTimeSlot.from"
698
- },
699
- {
700
- path: "checkout.shippingInfo.selectedCarrierServiceOption.logistics.deliveryTimeSlot.to"
701
- },
702
- {
703
- path: "checkout.shippingInfo.carrierServiceOptions.shippingOptions.logistics.deliveryTimeSlot.from"
704
- },
705
- {
706
- path: "checkout.shippingInfo.carrierServiceOptions.shippingOptions.logistics.deliveryTimeSlot.to"
707
- },
708
- {
709
- path: "checkout.membershipOptions.eligibleMemberships.expirationDate"
710
- },
711
- {
712
- path: "checkout.membershipOptions.invalidMemberships.membership.expirationDate"
713
- },
714
- { path: "checkout.subscriptionCharges.charges.cycleBillingDate" }
715
- ]
716
- },
717
- {
718
- transformFn: transformRESTFloatToSDKFloat,
719
- paths: [
720
- { path: "checkout.lineItems.media.focalPoint.x" },
721
- { path: "checkout.lineItems.media.focalPoint.y" },
722
- { path: "checkout.lineItems.physicalProperties.weight" },
723
- {
724
- path: "checkout.lineItems.catalogOverrideFields.physicalProperties.weight"
725
- },
726
- { path: "checkout.billingInfo.address.geocode.latitude" },
727
- { path: "checkout.billingInfo.address.geocode.longitude" },
728
- {
729
- path: "checkout.shippingInfo.shippingDestination.address.geocode.latitude"
730
- },
731
- {
732
- path: "checkout.shippingInfo.shippingDestination.address.geocode.longitude"
733
- },
734
- {
735
- path: "checkout.shippingInfo.selectedCarrierServiceOption.logistics.pickupDetails.address.geocode.latitude"
736
- },
737
- {
738
- path: "checkout.shippingInfo.selectedCarrierServiceOption.logistics.pickupDetails.address.geocode.longitude"
739
- },
740
- {
741
- path: "checkout.shippingInfo.carrierServiceOptions.shippingOptions.logistics.pickupDetails.address.geocode.latitude"
742
- },
743
- {
744
- path: "checkout.shippingInfo.carrierServiceOptions.shippingOptions.logistics.pickupDetails.address.geocode.longitude"
745
- },
746
- { path: "checkout.appliedDiscounts.merchantDiscount.percentage" }
747
- ]
748
- }
749
- ])
750
- };
751
- return metadata;
752
- }
753
- return __removeGiftCard;
754
- }
755
- function removeOverrideCheckoutUrl(payload) {
756
- function __removeOverrideCheckoutUrl({ host }) {
757
- const metadata = {
758
- entityFqdn: "wix.ecom.v1.checkout",
759
- method: "POST",
760
- methodFqn: "com.wix.ecom.checkout.api.v1.CheckoutService.RemoveOverrideCheckoutUrl",
761
- packageName: PACKAGE_NAME,
762
- migrationOptions: {
763
- optInTransformResponse: true
764
- },
765
- url: resolveComWixEcomCheckoutApiV1CheckoutServiceUrl({
766
- protoPath: "/v1/checkouts/{id}/remove-override-checkout-url",
767
- data: payload,
768
- host
769
- }),
770
- data: payload,
771
- transformResponse: (payload2) => transformPaths(payload2, [
772
- {
773
- transformFn: transformRESTTimestampToSDKTimestamp,
774
- paths: [
775
- { path: "checkout.createdDate" },
776
- { path: "checkout.updatedDate" },
777
- { path: "checkout.lineItems.media.urlExpirationDate" },
778
- {
779
- path: "checkout.lineItems.subscriptionOptionInfo.subscriptionSettings.startDate"
780
- },
781
- { path: "checkout.lineItems.serviceProperties.scheduledDate" },
782
- { path: "checkout.lineItems.serviceProperties.endDate" },
783
- {
784
- path: "checkout.shippingInfo.selectedCarrierServiceOption.logistics.deliveryTimeSlot.from"
785
- },
786
- {
787
- path: "checkout.shippingInfo.selectedCarrierServiceOption.logistics.deliveryTimeSlot.to"
788
- },
789
- {
790
- path: "checkout.shippingInfo.carrierServiceOptions.shippingOptions.logistics.deliveryTimeSlot.from"
791
- },
792
- {
793
- path: "checkout.shippingInfo.carrierServiceOptions.shippingOptions.logistics.deliveryTimeSlot.to"
794
- },
795
- {
796
- path: "checkout.membershipOptions.eligibleMemberships.expirationDate"
797
- },
798
- {
799
- path: "checkout.membershipOptions.invalidMemberships.membership.expirationDate"
800
- },
801
- { path: "checkout.subscriptionCharges.charges.cycleBillingDate" }
802
- ]
803
- },
804
- {
805
- transformFn: transformRESTFloatToSDKFloat,
806
- paths: [
807
- { path: "checkout.lineItems.media.focalPoint.x" },
808
- { path: "checkout.lineItems.media.focalPoint.y" },
809
- { path: "checkout.lineItems.physicalProperties.weight" },
810
- {
811
- path: "checkout.lineItems.catalogOverrideFields.physicalProperties.weight"
812
- },
813
- { path: "checkout.billingInfo.address.geocode.latitude" },
814
- { path: "checkout.billingInfo.address.geocode.longitude" },
815
- {
816
- path: "checkout.shippingInfo.shippingDestination.address.geocode.latitude"
817
- },
818
- {
819
- path: "checkout.shippingInfo.shippingDestination.address.geocode.longitude"
820
- },
821
- {
822
- path: "checkout.shippingInfo.selectedCarrierServiceOption.logistics.pickupDetails.address.geocode.latitude"
823
- },
824
- {
825
- path: "checkout.shippingInfo.selectedCarrierServiceOption.logistics.pickupDetails.address.geocode.longitude"
826
- },
827
- {
828
- path: "checkout.shippingInfo.carrierServiceOptions.shippingOptions.logistics.pickupDetails.address.geocode.latitude"
829
- },
830
- {
831
- path: "checkout.shippingInfo.carrierServiceOptions.shippingOptions.logistics.pickupDetails.address.geocode.longitude"
832
- },
833
- { path: "checkout.appliedDiscounts.merchantDiscount.percentage" }
834
- ]
835
- }
836
- ])
837
- };
838
- return metadata;
839
- }
840
- return __removeOverrideCheckoutUrl;
841
- }
842
- function addToCheckout(payload) {
843
- function __addToCheckout({ host }) {
844
- const serializedData = transformPaths(payload, [
845
- {
846
- transformFn: transformSDKTimestampToRESTTimestamp,
847
- paths: [
848
- { path: "lineItems.media.urlExpirationDate" },
849
- {
850
- path: "lineItems.subscriptionOptionInfo.subscriptionSettings.startDate"
851
- },
852
- { path: "lineItems.serviceProperties.scheduledDate" },
853
- { path: "lineItems.serviceProperties.endDate" },
854
- {
855
- path: "customLineItems.subscriptionOptionInfo.subscriptionSettings.startDate"
856
- },
857
- { path: "customLineItems.serviceProperties.scheduledDate" },
858
- { path: "customLineItems.serviceProperties.endDate" }
859
- ]
860
- },
861
- {
862
- transformFn: transformSDKFloatToRESTFloat,
863
- paths: [
864
- { path: "lineItems.media.focalPoint.x" },
865
- { path: "lineItems.media.focalPoint.y" },
866
- { path: "lineItems.physicalProperties.weight" },
867
- { path: "lineItems.catalogOverrideFields.physicalProperties.weight" },
868
- { path: "customLineItems.physicalProperties.weight" }
869
- ]
870
- }
871
- ]);
872
- const metadata = {
873
- entityFqdn: "wix.ecom.v1.checkout",
874
- method: "POST",
875
- methodFqn: "com.wix.ecom.checkout.api.v1.CheckoutService.AddToCheckout",
876
- packageName: PACKAGE_NAME,
877
- migrationOptions: {
878
- optInTransformResponse: true
879
- },
880
- url: resolveComWixEcomCheckoutApiV1CheckoutServiceUrl({
881
- protoPath: "/v1/checkouts/{id}/add-to-checkout",
882
- data: serializedData,
883
- host
884
- }),
885
- data: serializedData,
886
- transformResponse: (payload2) => transformPaths(payload2, [
887
- {
888
- transformFn: transformRESTTimestampToSDKTimestamp,
889
- paths: [
890
- { path: "checkout.createdDate" },
891
- { path: "checkout.updatedDate" },
892
- { path: "checkout.lineItems.media.urlExpirationDate" },
893
- {
894
- path: "checkout.lineItems.subscriptionOptionInfo.subscriptionSettings.startDate"
895
- },
896
- { path: "checkout.lineItems.serviceProperties.scheduledDate" },
897
- { path: "checkout.lineItems.serviceProperties.endDate" },
898
- {
899
- path: "checkout.shippingInfo.selectedCarrierServiceOption.logistics.deliveryTimeSlot.from"
900
- },
901
- {
902
- path: "checkout.shippingInfo.selectedCarrierServiceOption.logistics.deliveryTimeSlot.to"
903
- },
904
- {
905
- path: "checkout.shippingInfo.carrierServiceOptions.shippingOptions.logistics.deliveryTimeSlot.from"
906
- },
907
- {
908
- path: "checkout.shippingInfo.carrierServiceOptions.shippingOptions.logistics.deliveryTimeSlot.to"
909
- },
910
- {
911
- path: "checkout.membershipOptions.eligibleMemberships.expirationDate"
912
- },
913
- {
914
- path: "checkout.membershipOptions.invalidMemberships.membership.expirationDate"
915
- },
916
- { path: "checkout.subscriptionCharges.charges.cycleBillingDate" }
917
- ]
918
- },
919
- {
920
- transformFn: transformRESTFloatToSDKFloat,
921
- paths: [
922
- { path: "checkout.lineItems.media.focalPoint.x" },
923
- { path: "checkout.lineItems.media.focalPoint.y" },
924
- { path: "checkout.lineItems.physicalProperties.weight" },
925
- {
926
- path: "checkout.lineItems.catalogOverrideFields.physicalProperties.weight"
927
- },
928
- { path: "checkout.billingInfo.address.geocode.latitude" },
929
- { path: "checkout.billingInfo.address.geocode.longitude" },
930
- {
931
- path: "checkout.shippingInfo.shippingDestination.address.geocode.latitude"
932
- },
933
- {
934
- path: "checkout.shippingInfo.shippingDestination.address.geocode.longitude"
935
- },
936
- {
937
- path: "checkout.shippingInfo.selectedCarrierServiceOption.logistics.pickupDetails.address.geocode.latitude"
938
- },
939
- {
940
- path: "checkout.shippingInfo.selectedCarrierServiceOption.logistics.pickupDetails.address.geocode.longitude"
941
- },
942
- {
943
- path: "checkout.shippingInfo.carrierServiceOptions.shippingOptions.logistics.pickupDetails.address.geocode.latitude"
944
- },
945
- {
946
- path: "checkout.shippingInfo.carrierServiceOptions.shippingOptions.logistics.pickupDetails.address.geocode.longitude"
947
- },
948
- { path: "checkout.appliedDiscounts.merchantDiscount.percentage" }
949
- ]
950
- }
951
- ])
952
- };
953
- return metadata;
954
- }
955
- return __addToCheckout;
956
- }
957
- function removeLineItems(payload) {
958
- function __removeLineItems({ host }) {
959
- const metadata = {
960
- entityFqdn: "wix.ecom.v1.checkout",
961
- method: "POST",
962
- methodFqn: "com.wix.ecom.checkout.api.v1.CheckoutService.RemoveLineItems",
963
- packageName: PACKAGE_NAME,
964
- migrationOptions: {
965
- optInTransformResponse: true
966
- },
967
- url: resolveComWixEcomCheckoutApiV1CheckoutServiceUrl({
968
- protoPath: "/v1/checkouts/{id}/remove-line-items",
969
- data: payload,
970
- host
971
- }),
972
- data: payload,
973
- transformResponse: (payload2) => transformPaths(payload2, [
974
- {
975
- transformFn: transformRESTTimestampToSDKTimestamp,
976
- paths: [
977
- { path: "checkout.createdDate" },
978
- { path: "checkout.updatedDate" },
979
- { path: "checkout.lineItems.media.urlExpirationDate" },
980
- {
981
- path: "checkout.lineItems.subscriptionOptionInfo.subscriptionSettings.startDate"
982
- },
983
- { path: "checkout.lineItems.serviceProperties.scheduledDate" },
984
- { path: "checkout.lineItems.serviceProperties.endDate" },
985
- {
986
- path: "checkout.shippingInfo.selectedCarrierServiceOption.logistics.deliveryTimeSlot.from"
987
- },
988
- {
989
- path: "checkout.shippingInfo.selectedCarrierServiceOption.logistics.deliveryTimeSlot.to"
990
- },
991
- {
992
- path: "checkout.shippingInfo.carrierServiceOptions.shippingOptions.logistics.deliveryTimeSlot.from"
993
- },
994
- {
995
- path: "checkout.shippingInfo.carrierServiceOptions.shippingOptions.logistics.deliveryTimeSlot.to"
996
- },
997
- {
998
- path: "checkout.membershipOptions.eligibleMemberships.expirationDate"
999
- },
1000
- {
1001
- path: "checkout.membershipOptions.invalidMemberships.membership.expirationDate"
1002
- },
1003
- { path: "checkout.subscriptionCharges.charges.cycleBillingDate" }
1004
- ]
1005
- },
1006
- {
1007
- transformFn: transformRESTFloatToSDKFloat,
1008
- paths: [
1009
- { path: "checkout.lineItems.media.focalPoint.x" },
1010
- { path: "checkout.lineItems.media.focalPoint.y" },
1011
- { path: "checkout.lineItems.physicalProperties.weight" },
1012
- {
1013
- path: "checkout.lineItems.catalogOverrideFields.physicalProperties.weight"
1014
- },
1015
- { path: "checkout.billingInfo.address.geocode.latitude" },
1016
- { path: "checkout.billingInfo.address.geocode.longitude" },
1017
- {
1018
- path: "checkout.shippingInfo.shippingDestination.address.geocode.latitude"
1019
- },
1020
- {
1021
- path: "checkout.shippingInfo.shippingDestination.address.geocode.longitude"
1022
- },
1023
- {
1024
- path: "checkout.shippingInfo.selectedCarrierServiceOption.logistics.pickupDetails.address.geocode.latitude"
1025
- },
1026
- {
1027
- path: "checkout.shippingInfo.selectedCarrierServiceOption.logistics.pickupDetails.address.geocode.longitude"
1028
- },
1029
- {
1030
- path: "checkout.shippingInfo.carrierServiceOptions.shippingOptions.logistics.pickupDetails.address.geocode.latitude"
1031
- },
1032
- {
1033
- path: "checkout.shippingInfo.carrierServiceOptions.shippingOptions.logistics.pickupDetails.address.geocode.longitude"
1034
- },
1035
- { path: "checkout.appliedDiscounts.merchantDiscount.percentage" }
1036
- ]
1037
- }
1038
- ])
1039
- };
1040
- return metadata;
1041
- }
1042
- return __removeLineItems;
1043
- }
1044
- function createOrder(payload) {
1045
- function __createOrder({ host }) {
1046
- const metadata = {
1047
- entityFqdn: "wix.ecom.v1.checkout",
1048
- method: "POST",
1049
- methodFqn: "com.wix.ecom.checkout.api.v1.CheckoutService.CreateOrder",
1050
- packageName: PACKAGE_NAME,
1051
- migrationOptions: {
1052
- optInTransformResponse: true
1053
- },
1054
- url: resolveComWixEcomCheckoutApiV1CheckoutServiceUrl({
1055
- protoPath: "/v1/checkouts/{id}/create-order",
1056
- data: payload,
1057
- host
1058
- }),
1059
- data: payload
1060
- };
1061
- return metadata;
1062
- }
1063
- return __createOrder;
1064
- }
1065
- function createOrderAndCharge(payload) {
1066
- function __createOrderAndCharge({ host }) {
1067
- const metadata = {
1068
- entityFqdn: "wix.ecom.v1.checkout",
1069
- method: "POST",
1070
- methodFqn: "com.wix.ecom.checkout.api.v1.CheckoutService.CreateOrderAndCharge",
1071
- packageName: PACKAGE_NAME,
1072
- migrationOptions: {
1073
- optInTransformResponse: true
1074
- },
1075
- url: resolveComWixEcomCheckoutApiV1CheckoutServiceUrl({
1076
- protoPath: "/v1/checkouts/{id}/create-order-and-charge",
1077
- data: payload,
1078
- host
1079
- }),
1080
- data: payload
1081
- };
1082
- return metadata;
1083
- }
1084
- return __createOrderAndCharge;
1085
- }
1086
- function markCheckoutAsCompletedAndRedirectToUrl(payload) {
1087
- function __markCheckoutAsCompletedAndRedirectToUrl({ host }) {
1088
- const metadata = {
1089
- entityFqdn: "wix.ecom.v1.checkout",
1090
- method: "GET",
1091
- methodFqn: "com.wix.ecom.checkout.api.v1.CheckoutService.MarkCheckoutAsCompletedAndRedirectToUrl",
1092
- packageName: PACKAGE_NAME,
1093
- migrationOptions: {
1094
- optInTransformResponse: true
1095
- },
1096
- url: resolveComWixEcomCheckoutApiV1CheckoutServiceUrl({
1097
- protoPath: "/v1/checkouts/mark-checkout-as-completed-and-redirect-to-url",
1098
- data: payload,
1099
- host
1100
- }),
1101
- params: toURLSearchParams(payload),
1102
- transformResponse: (payload2) => transformPaths(payload2, [
1103
- {
1104
- transformFn: transformRESTBytesToSDKBytes,
1105
- paths: [{ path: "body" }]
1106
- }
1107
- ])
1108
- };
1109
- return metadata;
1110
- }
1111
- return __markCheckoutAsCompletedAndRedirectToUrl;
1112
- }
1113
- function markCheckoutAsCompleted(payload) {
1114
- function __markCheckoutAsCompleted({ host }) {
1115
- const metadata = {
1116
- entityFqdn: "wix.ecom.v1.checkout",
1117
- method: "POST",
1118
- methodFqn: "com.wix.ecom.checkout.api.v1.CheckoutService.MarkCheckoutAsCompleted",
1119
- packageName: PACKAGE_NAME,
1120
- migrationOptions: {
1121
- optInTransformResponse: true
1122
- },
1123
- url: resolveComWixEcomCheckoutApiV1CheckoutServiceUrl({
1124
- protoPath: "/v1/checkouts/{id}/mark-as-completed",
1125
- data: payload,
1126
- host
1127
- }),
1128
- data: payload
1129
- };
1130
- return metadata;
1131
- }
1132
- return __markCheckoutAsCompleted;
1133
- }
1134
- function updateLineItemsQuantity(payload) {
1135
- function __updateLineItemsQuantity({ host }) {
1136
- const metadata = {
1137
- entityFqdn: "wix.ecom.v1.checkout",
1138
- method: "POST",
1139
- methodFqn: "com.wix.ecom.checkout.api.v1.CheckoutService.UpdateLineItemsQuantity",
1140
- packageName: PACKAGE_NAME,
1141
- migrationOptions: {
1142
- optInTransformResponse: true
1143
- },
1144
- url: resolveComWixEcomCheckoutApiV1CheckoutServiceUrl({
1145
- protoPath: "/v1/checkouts/{id}/update-line-items-quantity",
1146
- data: payload,
1147
- host
1148
- }),
1149
- data: payload,
1150
- transformResponse: (payload2) => transformPaths(payload2, [
1151
- {
1152
- transformFn: transformRESTTimestampToSDKTimestamp,
1153
- paths: [
1154
- { path: "checkout.createdDate" },
1155
- { path: "checkout.updatedDate" },
1156
- { path: "checkout.lineItems.media.urlExpirationDate" },
1157
- {
1158
- path: "checkout.lineItems.subscriptionOptionInfo.subscriptionSettings.startDate"
1159
- },
1160
- { path: "checkout.lineItems.serviceProperties.scheduledDate" },
1161
- { path: "checkout.lineItems.serviceProperties.endDate" },
1162
- {
1163
- path: "checkout.shippingInfo.selectedCarrierServiceOption.logistics.deliveryTimeSlot.from"
1164
- },
1165
- {
1166
- path: "checkout.shippingInfo.selectedCarrierServiceOption.logistics.deliveryTimeSlot.to"
1167
- },
1168
- {
1169
- path: "checkout.shippingInfo.carrierServiceOptions.shippingOptions.logistics.deliveryTimeSlot.from"
1170
- },
1171
- {
1172
- path: "checkout.shippingInfo.carrierServiceOptions.shippingOptions.logistics.deliveryTimeSlot.to"
1173
- },
1174
- {
1175
- path: "checkout.membershipOptions.eligibleMemberships.expirationDate"
1176
- },
1177
- {
1178
- path: "checkout.membershipOptions.invalidMemberships.membership.expirationDate"
1179
- },
1180
- { path: "checkout.subscriptionCharges.charges.cycleBillingDate" }
1181
- ]
1182
- },
1183
- {
1184
- transformFn: transformRESTFloatToSDKFloat,
1185
- paths: [
1186
- { path: "checkout.lineItems.media.focalPoint.x" },
1187
- { path: "checkout.lineItems.media.focalPoint.y" },
1188
- { path: "checkout.lineItems.physicalProperties.weight" },
1189
- {
1190
- path: "checkout.lineItems.catalogOverrideFields.physicalProperties.weight"
1191
- },
1192
- { path: "checkout.billingInfo.address.geocode.latitude" },
1193
- { path: "checkout.billingInfo.address.geocode.longitude" },
1194
- {
1195
- path: "checkout.shippingInfo.shippingDestination.address.geocode.latitude"
1196
- },
1197
- {
1198
- path: "checkout.shippingInfo.shippingDestination.address.geocode.longitude"
1199
- },
1200
- {
1201
- path: "checkout.shippingInfo.selectedCarrierServiceOption.logistics.pickupDetails.address.geocode.latitude"
1202
- },
1203
- {
1204
- path: "checkout.shippingInfo.selectedCarrierServiceOption.logistics.pickupDetails.address.geocode.longitude"
1205
- },
1206
- {
1207
- path: "checkout.shippingInfo.carrierServiceOptions.shippingOptions.logistics.pickupDetails.address.geocode.latitude"
1208
- },
1209
- {
1210
- path: "checkout.shippingInfo.carrierServiceOptions.shippingOptions.logistics.pickupDetails.address.geocode.longitude"
1211
- },
1212
- { path: "checkout.appliedDiscounts.merchantDiscount.percentage" }
1213
- ]
1214
- }
1215
- ])
1216
- };
1217
- return metadata;
1218
- }
1219
- return __updateLineItemsQuantity;
1220
- }
1221
-
1222
- // src/ecom-v1-checkout-checkout.types.ts
1223
- var JurisdictionType = /* @__PURE__ */ ((JurisdictionType2) => {
1224
- JurisdictionType2["UNDEFINED"] = "UNDEFINED";
1225
- JurisdictionType2["COUNTRY"] = "COUNTRY";
1226
- JurisdictionType2["STATE"] = "STATE";
1227
- JurisdictionType2["COUNTY"] = "COUNTY";
1228
- JurisdictionType2["CITY"] = "CITY";
1229
- JurisdictionType2["SPECIAL"] = "SPECIAL";
1230
- return JurisdictionType2;
1231
- })(JurisdictionType || {});
1232
- var DescriptionLineType = /* @__PURE__ */ ((DescriptionLineType2) => {
1233
- DescriptionLineType2["UNRECOGNISED"] = "UNRECOGNISED";
1234
- DescriptionLineType2["PLAIN_TEXT"] = "PLAIN_TEXT";
1235
- DescriptionLineType2["COLOR"] = "COLOR";
1236
- return DescriptionLineType2;
1237
- })(DescriptionLineType || {});
1238
- var ItemAvailabilityStatus = /* @__PURE__ */ ((ItemAvailabilityStatus2) => {
1239
- ItemAvailabilityStatus2["AVAILABLE"] = "AVAILABLE";
1240
- ItemAvailabilityStatus2["NOT_FOUND"] = "NOT_FOUND";
1241
- ItemAvailabilityStatus2["NOT_AVAILABLE"] = "NOT_AVAILABLE";
1242
- ItemAvailabilityStatus2["PARTIALLY_AVAILABLE"] = "PARTIALLY_AVAILABLE";
1243
- return ItemAvailabilityStatus2;
1244
- })(ItemAvailabilityStatus || {});
1245
- var DimensionsUnit = /* @__PURE__ */ ((DimensionsUnit2) => {
1246
- DimensionsUnit2["UNKNOWN_DIMENSIONS_UNIT"] = "UNKNOWN_DIMENSIONS_UNIT";
1247
- DimensionsUnit2["MM"] = "MM";
1248
- DimensionsUnit2["CM"] = "CM";
1249
- DimensionsUnit2["M"] = "M";
1250
- DimensionsUnit2["IN"] = "IN";
1251
- DimensionsUnit2["FT"] = "FT";
1252
- DimensionsUnit2["YD"] = "YD";
1253
- return DimensionsUnit2;
1254
- })(DimensionsUnit || {});
1255
- var ItemTypePreset = /* @__PURE__ */ ((ItemTypePreset2) => {
1256
- ItemTypePreset2["UNRECOGNISED"] = "UNRECOGNISED";
1257
- ItemTypePreset2["PHYSICAL"] = "PHYSICAL";
1258
- ItemTypePreset2["DIGITAL"] = "DIGITAL";
1259
- ItemTypePreset2["GIFT_CARD"] = "GIFT_CARD";
1260
- ItemTypePreset2["SERVICE"] = "SERVICE";
1261
- return ItemTypePreset2;
1262
- })(ItemTypePreset || {});
1263
- var SubscriptionFrequency = /* @__PURE__ */ ((SubscriptionFrequency2) => {
1264
- SubscriptionFrequency2["UNDEFINED"] = "UNDEFINED";
1265
- SubscriptionFrequency2["DAY"] = "DAY";
1266
- SubscriptionFrequency2["WEEK"] = "WEEK";
1267
- SubscriptionFrequency2["MONTH"] = "MONTH";
1268
- SubscriptionFrequency2["YEAR"] = "YEAR";
1269
- return SubscriptionFrequency2;
1270
- })(SubscriptionFrequency || {});
1271
- var ProductPeriodAlignment = /* @__PURE__ */ ((ProductPeriodAlignment2) => {
1272
- ProductPeriodAlignment2["ALIGNED_WITH_BILLING_PERIOD"] = "ALIGNED_WITH_BILLING_PERIOD";
1273
- ProductPeriodAlignment2["NOT_ALIGNED_WITH_BILLING_PERIOD"] = "NOT_ALIGNED_WITH_BILLING_PERIOD";
1274
- return ProductPeriodAlignment2;
1275
- })(ProductPeriodAlignment || {});
1276
- var FileType = /* @__PURE__ */ ((FileType2) => {
1277
- FileType2["UNSPECIFIED"] = "UNSPECIFIED";
1278
- FileType2["SECURE_PICTURE"] = "SECURE_PICTURE";
1279
- FileType2["SECURE_VIDEO"] = "SECURE_VIDEO";
1280
- FileType2["SECURE_DOCUMENT"] = "SECURE_DOCUMENT";
1281
- FileType2["SECURE_MUSIC"] = "SECURE_MUSIC";
1282
- FileType2["SECURE_ARCHIVE"] = "SECURE_ARCHIVE";
1283
- FileType2["SECURE_RAW"] = "SECURE_RAW";
1284
- return FileType2;
1285
- })(FileType || {});
1286
- var PaymentOptionType = /* @__PURE__ */ ((PaymentOptionType2) => {
1287
- PaymentOptionType2["FULL_PAYMENT_ONLINE"] = "FULL_PAYMENT_ONLINE";
1288
- PaymentOptionType2["FULL_PAYMENT_OFFLINE"] = "FULL_PAYMENT_OFFLINE";
1289
- PaymentOptionType2["MEMBERSHIP"] = "MEMBERSHIP";
1290
- PaymentOptionType2["DEPOSIT_ONLINE"] = "DEPOSIT_ONLINE";
1291
- PaymentOptionType2["MEMBERSHIP_OFFLINE"] = "MEMBERSHIP_OFFLINE";
1292
- PaymentOptionType2["MEMBERSHIP_ONLINE_WITH_OFFLINE_REMAINDER"] = "MEMBERSHIP_ONLINE_WITH_OFFLINE_REMAINDER";
1293
- return PaymentOptionType2;
1294
- })(PaymentOptionType || {});
1295
- var TaxableAddressType = /* @__PURE__ */ ((TaxableAddressType2) => {
1296
- TaxableAddressType2["BUSINESS"] = "BUSINESS";
1297
- TaxableAddressType2["BILLING"] = "BILLING";
1298
- TaxableAddressType2["SHIPPING"] = "SHIPPING";
1299
- return TaxableAddressType2;
1300
- })(TaxableAddressType || {});
1301
- var PlatformFeeChargeType = /* @__PURE__ */ ((PlatformFeeChargeType2) => {
1302
- PlatformFeeChargeType2["PASS_ON"] = "PASS_ON";
1303
- PlatformFeeChargeType2["ABSORBED"] = "ABSORBED";
1304
- return PlatformFeeChargeType2;
1305
- })(PlatformFeeChargeType || {});
1306
- var VatType = /* @__PURE__ */ ((VatType2) => {
1307
- VatType2["UNSPECIFIED"] = "UNSPECIFIED";
1308
- VatType2["CPF"] = "CPF";
1309
- VatType2["CNPJ"] = "CNPJ";
1310
- return VatType2;
1311
- })(VatType || {});
1312
- var PickupMethod = /* @__PURE__ */ ((PickupMethod2) => {
1313
- PickupMethod2["STORE_PICKUP"] = "STORE_PICKUP";
1314
- PickupMethod2["PICKUP_POINT"] = "PICKUP_POINT";
1315
- return PickupMethod2;
1316
- })(PickupMethod || {});
1317
- var ChargeType = /* @__PURE__ */ ((ChargeType2) => {
1318
- ChargeType2["HANDLING_FEE"] = "HANDLING_FEE";
1319
- ChargeType2["INSURANCE"] = "INSURANCE";
1320
- return ChargeType2;
1321
- })(ChargeType || {});
1322
- var RuleType = /* @__PURE__ */ ((RuleType2) => {
1323
- RuleType2["VALIDATION"] = "VALIDATION";
1324
- RuleType2["OTHER"] = "OTHER";
1325
- RuleType2["MAX"] = "MAX";
1326
- RuleType2["MIN"] = "MIN";
1327
- RuleType2["MAX_LENGTH"] = "MAX_LENGTH";
1328
- RuleType2["MIN_LENGTH"] = "MIN_LENGTH";
1329
- RuleType2["MAX_SIZE"] = "MAX_SIZE";
1330
- RuleType2["MIN_SIZE"] = "MIN_SIZE";
1331
- RuleType2["FORMAT"] = "FORMAT";
1332
- RuleType2["DECIMAL_LTE"] = "DECIMAL_LTE";
1333
- RuleType2["DECIMAL_GTE"] = "DECIMAL_GTE";
1334
- RuleType2["DECIMAL_LT"] = "DECIMAL_LT";
1335
- RuleType2["DECIMAL_GT"] = "DECIMAL_GT";
1336
- RuleType2["DECIMAL_MAX_SCALE"] = "DECIMAL_MAX_SCALE";
1337
- RuleType2["INVALID_ENUM_VALUE"] = "INVALID_ENUM_VALUE";
1338
- RuleType2["REQUIRED_FIELD"] = "REQUIRED_FIELD";
1339
- RuleType2["FIELD_NOT_ALLOWED"] = "FIELD_NOT_ALLOWED";
1340
- RuleType2["ONE_OF_ALIGNMENT"] = "ONE_OF_ALIGNMENT";
1341
- RuleType2["EXACT_LENGTH"] = "EXACT_LENGTH";
1342
- RuleType2["EXACT_SIZE"] = "EXACT_SIZE";
1343
- RuleType2["REQUIRED_ONE_OF_FIELD"] = "REQUIRED_ONE_OF_FIELD";
1344
- return RuleType2;
1345
- })(RuleType || {});
1346
- var DiscountType = /* @__PURE__ */ ((DiscountType2) => {
1347
- DiscountType2["GLOBAL"] = "GLOBAL";
1348
- DiscountType2["SPECIFIC_ITEMS"] = "SPECIFIC_ITEMS";
1349
- DiscountType2["SHIPPING"] = "SHIPPING";
1350
- return DiscountType2;
1351
- })(DiscountType || {});
1352
- var WeightUnit = /* @__PURE__ */ ((WeightUnit2) => {
1353
- WeightUnit2["UNSPECIFIED_WEIGHT_UNIT"] = "UNSPECIFIED_WEIGHT_UNIT";
1354
- WeightUnit2["KG"] = "KG";
1355
- WeightUnit2["LB"] = "LB";
1356
- return WeightUnit2;
1357
- })(WeightUnit || {});
1358
- var RateType = /* @__PURE__ */ ((RateType2) => {
1359
- RateType2["NO_TAX_COLLECTED"] = "NO_TAX_COLLECTED";
1360
- RateType2["MANUAL_RATE"] = "MANUAL_RATE";
1361
- RateType2["AUTO_RATE"] = "AUTO_RATE";
1362
- RateType2["FALLBACK_RATE"] = "FALLBACK_RATE";
1363
- return RateType2;
1364
- })(RateType || {});
1365
- var ManualCalculationReason = /* @__PURE__ */ ((ManualCalculationReason2) => {
1366
- ManualCalculationReason2["GLOBAL_SETTING_TO_MANUAL"] = "GLOBAL_SETTING_TO_MANUAL";
1367
- ManualCalculationReason2["REGION_SETTING_TO_MANUAL"] = "REGION_SETTING_TO_MANUAL";
1368
- return ManualCalculationReason2;
1369
- })(ManualCalculationReason || {});
1370
- var FallbackReason = /* @__PURE__ */ ((FallbackReason2) => {
1371
- FallbackReason2["AUTO_TAX_FAILED"] = "AUTO_TAX_FAILED";
1372
- FallbackReason2["AUTO_TAX_DEACTIVATED"] = "AUTO_TAX_DEACTIVATED";
1373
- return FallbackReason2;
1374
- })(FallbackReason || {});
1375
- var ChannelType = /* @__PURE__ */ ((ChannelType2) => {
1376
- ChannelType2["UNSPECIFIED"] = "UNSPECIFIED";
1377
- ChannelType2["WEB"] = "WEB";
1378
- ChannelType2["POS"] = "POS";
1379
- ChannelType2["EBAY"] = "EBAY";
1380
- ChannelType2["AMAZON"] = "AMAZON";
1381
- ChannelType2["OTHER_PLATFORM"] = "OTHER_PLATFORM";
1382
- ChannelType2["WIX_APP_STORE"] = "WIX_APP_STORE";
1383
- ChannelType2["WIX_INVOICES"] = "WIX_INVOICES";
1384
- ChannelType2["BACKOFFICE_MERCHANT"] = "BACKOFFICE_MERCHANT";
1385
- ChannelType2["WISH"] = "WISH";
1386
- ChannelType2["CLASS_PASS"] = "CLASS_PASS";
1387
- ChannelType2["GLOBAL_E"] = "GLOBAL_E";
1388
- ChannelType2["FACEBOOK"] = "FACEBOOK";
1389
- ChannelType2["ETSY"] = "ETSY";
1390
- ChannelType2["TIKTOK"] = "TIKTOK";
1391
- ChannelType2["FAIRE_COM"] = "FAIRE_COM";
1392
- ChannelType2["PAYPAL_AGENTIC_CHECKOUT"] = "PAYPAL_AGENTIC_CHECKOUT";
1393
- ChannelType2["STRIPE_AGENTIC_CHECKOUT"] = "STRIPE_AGENTIC_CHECKOUT";
1394
- ChannelType2["WIX_INVOICES_PLATFORM"] = "WIX_INVOICES_PLATFORM";
1395
- ChannelType2["UCP_AGENTIC_CHECKOUT"] = "UCP_AGENTIC_CHECKOUT";
1396
- return ChannelType2;
1397
- })(ChannelType || {});
1398
- var BalanceType = /* @__PURE__ */ ((BalanceType2) => {
1399
- BalanceType2["PUNCH_CARD"] = "PUNCH_CARD";
1400
- BalanceType2["CREDIT"] = "CREDIT";
1401
- return BalanceType2;
1402
- })(BalanceType || {});
1403
- var AdditionalFeeSource = /* @__PURE__ */ ((AdditionalFeeSource2) => {
1404
- AdditionalFeeSource2["UNKNOWN_ADDITIONAL_FEE_SOURCE"] = "UNKNOWN_ADDITIONAL_FEE_SOURCE";
1405
- AdditionalFeeSource2["SERVICE_PLUGIN"] = "SERVICE_PLUGIN";
1406
- AdditionalFeeSource2["ITEM"] = "ITEM";
1407
- AdditionalFeeSource2["MANUAL"] = "MANUAL";
1408
- AdditionalFeeSource2["SHIPPING"] = "SHIPPING";
1409
- AdditionalFeeSource2["PLATFORM"] = "PLATFORM";
1410
- return AdditionalFeeSource2;
1411
- })(AdditionalFeeSource || {});
1412
- var Severity = /* @__PURE__ */ ((Severity2) => {
1413
- Severity2["WARNING"] = "WARNING";
1414
- Severity2["ERROR"] = "ERROR";
1415
- return Severity2;
1416
- })(Severity || {});
1417
- var NameInOther = /* @__PURE__ */ ((NameInOther2) => {
1418
- NameInOther2["OTHER_DEFAULT"] = "OTHER_DEFAULT";
1419
- return NameInOther2;
1420
- })(NameInOther || {});
1421
- var NameInLineItem = /* @__PURE__ */ ((NameInLineItem2) => {
1422
- NameInLineItem2["LINE_ITEM_DEFAULT"] = "LINE_ITEM_DEFAULT";
1423
- return NameInLineItem2;
1424
- })(NameInLineItem || {});
1425
- var SuggestedFix = /* @__PURE__ */ ((SuggestedFix2) => {
1426
- SuggestedFix2["UNKNOWN_SUGGESTED_FIX"] = "UNKNOWN_SUGGESTED_FIX";
1427
- SuggestedFix2["REMOVE_LINE_ITEM"] = "REMOVE_LINE_ITEM";
1428
- return SuggestedFix2;
1429
- })(SuggestedFix || {});
1430
- var WebhookIdentityType = /* @__PURE__ */ ((WebhookIdentityType2) => {
1431
- WebhookIdentityType2["UNKNOWN"] = "UNKNOWN";
1432
- WebhookIdentityType2["ANONYMOUS_VISITOR"] = "ANONYMOUS_VISITOR";
1433
- WebhookIdentityType2["MEMBER"] = "MEMBER";
1434
- WebhookIdentityType2["WIX_USER"] = "WIX_USER";
1435
- WebhookIdentityType2["APP"] = "APP";
1436
- return WebhookIdentityType2;
1437
- })(WebhookIdentityType || {});
1438
-
1439
- // src/ecom-v1-checkout-checkout.meta.ts
1440
- function createCheckout2() {
1441
- const payload = {};
1442
- const getRequestOptions = createCheckout(payload);
1443
- const getUrl = (context) => {
1444
- const { url } = getRequestOptions(context);
1445
- return url;
1446
- };
1447
- return {
1448
- getUrl,
1449
- httpMethod: "POST",
1450
- path: "/v1/checkouts",
1451
- pathParams: {},
1452
- __requestType: null,
1453
- __originalRequestType: null,
1454
- __responseType: null,
1455
- __originalResponseType: null
1456
- };
1457
- }
1458
- function getCheckout2() {
1459
- const payload = { id: ":id" };
1460
- const getRequestOptions = getCheckout(payload);
1461
- const getUrl = (context) => {
1462
- const { url } = getRequestOptions(context);
1463
- return url;
1464
- };
1465
- return {
1466
- getUrl,
1467
- httpMethod: "GET",
1468
- path: "/v1/checkouts/{id}",
1469
- pathParams: { id: "id" },
1470
- __requestType: null,
1471
- __originalRequestType: null,
1472
- __responseType: null,
1473
- __originalResponseType: null
1474
- };
1475
- }
1476
- function getCheckoutByCartId2() {
1477
- const payload = { id: ":id" };
1478
- const getRequestOptions = getCheckoutByCartId(payload);
1479
- const getUrl = (context) => {
1480
- const { url } = getRequestOptions(context);
1481
- return url;
1482
- };
1483
- return {
1484
- getUrl,
1485
- httpMethod: "GET",
1486
- path: "/v1/checkouts/by-cart-id/{id}",
1487
- pathParams: { id: "id" },
1488
- __requestType: null,
1489
- __originalRequestType: null,
1490
- __responseType: null,
1491
- __originalResponseType: null
1492
- };
1493
- }
1494
- function getWixCheckoutUrl2() {
1495
- const payload = { id: ":id" };
1496
- const getRequestOptions = getWixCheckoutUrl(payload);
1497
- const getUrl = (context) => {
1498
- const { url } = getRequestOptions(context);
1499
- return url;
1500
- };
1501
- return {
1502
- getUrl,
1503
- httpMethod: "GET",
1504
- path: "/v1/checkouts/{id}/wix-checkout-url",
1505
- pathParams: { id: "id" },
1506
- __requestType: null,
1507
- __originalRequestType: null,
1508
- __responseType: null,
1509
- __originalResponseType: null
1510
- };
1511
- }
1512
- function getCheckoutUrl2() {
1513
- const payload = { id: ":id" };
1514
- const getRequestOptions = getCheckoutUrl(payload);
1515
- const getUrl = (context) => {
1516
- const { url } = getRequestOptions(context);
1517
- return url;
1518
- };
1519
- return {
1520
- getUrl,
1521
- httpMethod: "GET",
1522
- path: "/v1/checkouts/{id}/checkout-url",
1523
- pathParams: { id: "id" },
1524
- __requestType: null,
1525
- __originalRequestType: null,
1526
- __responseType: null,
1527
- __originalResponseType: null
1528
- };
1529
- }
1530
- function updateCheckout2() {
1531
- const payload = { checkout: { id: ":checkoutId" } };
1532
- const getRequestOptions = updateCheckout(payload);
1533
- const getUrl = (context) => {
1534
- const { url } = getRequestOptions(context);
1535
- return url;
1536
- };
1537
- return {
1538
- getUrl,
1539
- httpMethod: "PATCH",
1540
- path: "/v1/checkouts/{checkout.id}",
1541
- pathParams: { checkoutId: "checkoutId" },
1542
- __requestType: null,
1543
- __originalRequestType: null,
1544
- __responseType: null,
1545
- __originalResponseType: null
1546
- };
1547
- }
1548
- function removeCoupon2() {
1549
- const payload = { id: ":id" };
1550
- const getRequestOptions = removeCoupon(payload);
1551
- const getUrl = (context) => {
1552
- const { url } = getRequestOptions(context);
1553
- return url;
1554
- };
1555
- return {
1556
- getUrl,
1557
- httpMethod: "POST",
1558
- path: "/v1/checkouts/{id}/remove-coupon",
1559
- pathParams: { id: "id" },
1560
- __requestType: null,
1561
- __originalRequestType: null,
1562
- __responseType: null,
1563
- __originalResponseType: null
1564
- };
1565
- }
1566
- function removeGiftCard2() {
1567
- const payload = { id: ":id" };
1568
- const getRequestOptions = removeGiftCard(payload);
1569
- const getUrl = (context) => {
1570
- const { url } = getRequestOptions(context);
1571
- return url;
1572
- };
1573
- return {
1574
- getUrl,
1575
- httpMethod: "POST",
1576
- path: "/v1/checkouts/{id}/remove-gift-card",
1577
- pathParams: { id: "id" },
1578
- __requestType: null,
1579
- __originalRequestType: null,
1580
- __responseType: null,
1581
- __originalResponseType: null
1582
- };
1583
- }
1584
- function removeOverrideCheckoutUrl2() {
1585
- const payload = { id: ":id" };
1586
- const getRequestOptions = removeOverrideCheckoutUrl(payload);
1587
- const getUrl = (context) => {
1588
- const { url } = getRequestOptions(context);
1589
- return url;
1590
- };
1591
- return {
1592
- getUrl,
1593
- httpMethod: "POST",
1594
- path: "/v1/checkouts/{id}/remove-override-checkout-url",
1595
- pathParams: { id: "id" },
1596
- __requestType: null,
1597
- __originalRequestType: null,
1598
- __responseType: null,
1599
- __originalResponseType: null
1600
- };
1601
- }
1602
- function addToCheckout2() {
1603
- const payload = { id: ":id" };
1604
- const getRequestOptions = addToCheckout(payload);
1605
- const getUrl = (context) => {
1606
- const { url } = getRequestOptions(context);
1607
- return url;
1608
- };
1609
- return {
1610
- getUrl,
1611
- httpMethod: "POST",
1612
- path: "/v1/checkouts/{id}/add-to-checkout",
1613
- pathParams: { id: "id" },
1614
- __requestType: null,
1615
- __originalRequestType: null,
1616
- __responseType: null,
1617
- __originalResponseType: null
1618
- };
1619
- }
1620
- function removeLineItems2() {
1621
- const payload = { id: ":id" };
1622
- const getRequestOptions = removeLineItems(payload);
1623
- const getUrl = (context) => {
1624
- const { url } = getRequestOptions(context);
1625
- return url;
1626
- };
1627
- return {
1628
- getUrl,
1629
- httpMethod: "POST",
1630
- path: "/v1/checkouts/{id}/remove-line-items",
1631
- pathParams: { id: "id" },
1632
- __requestType: null,
1633
- __originalRequestType: null,
1634
- __responseType: null,
1635
- __originalResponseType: null
1636
- };
1637
- }
1638
- function createOrder2() {
1639
- const payload = { id: ":id" };
1640
- const getRequestOptions = createOrder(payload);
1641
- const getUrl = (context) => {
1642
- const { url } = getRequestOptions(context);
1643
- return url;
1644
- };
1645
- return {
1646
- getUrl,
1647
- httpMethod: "POST",
1648
- path: "/v1/checkouts/{id}/create-order",
1649
- pathParams: { id: "id" },
1650
- __requestType: null,
1651
- __originalRequestType: null,
1652
- __responseType: null,
1653
- __originalResponseType: null
1654
- };
1655
- }
1656
- function createOrderAndCharge2() {
1657
- const payload = { id: ":id" };
1658
- const getRequestOptions = createOrderAndCharge(payload);
1659
- const getUrl = (context) => {
1660
- const { url } = getRequestOptions(context);
1661
- return url;
1662
- };
1663
- return {
1664
- getUrl,
1665
- httpMethod: "POST",
1666
- path: "/v1/checkouts/{id}/create-order-and-charge",
1667
- pathParams: { id: "id" },
1668
- __requestType: null,
1669
- __originalRequestType: null,
1670
- __responseType: null,
1671
- __originalResponseType: null
1672
- };
1673
- }
1674
- function markCheckoutAsCompletedAndRedirectToUrl2() {
1675
- const payload = {};
1676
- const getRequestOptions = markCheckoutAsCompletedAndRedirectToUrl(
1677
- payload
1678
- );
1679
- const getUrl = (context) => {
1680
- const { url } = getRequestOptions(context);
1681
- return url;
1682
- };
1683
- return {
1684
- getUrl,
1685
- httpMethod: "GET",
1686
- path: "/v1/checkouts/mark-checkout-as-completed-and-redirect-to-url",
1687
- pathParams: {},
1688
- __requestType: null,
1689
- __originalRequestType: null,
1690
- __responseType: null,
1691
- __originalResponseType: null
1692
- };
1693
- }
1694
- function markCheckoutAsCompleted2() {
1695
- const payload = { id: ":id" };
1696
- const getRequestOptions = markCheckoutAsCompleted(payload);
1697
- const getUrl = (context) => {
1698
- const { url } = getRequestOptions(context);
1699
- return url;
1700
- };
1701
- return {
1702
- getUrl,
1703
- httpMethod: "POST",
1704
- path: "/v1/checkouts/{id}/mark-as-completed",
1705
- pathParams: { id: "id" },
1706
- __requestType: null,
1707
- __originalRequestType: null,
1708
- __responseType: null,
1709
- __originalResponseType: null
1710
- };
1711
- }
1712
- function updateLineItemsQuantity2() {
1713
- const payload = { id: ":id" };
1714
- const getRequestOptions = updateLineItemsQuantity(payload);
1715
- const getUrl = (context) => {
1716
- const { url } = getRequestOptions(context);
1717
- return url;
1718
- };
1719
- return {
1720
- getUrl,
1721
- httpMethod: "POST",
1722
- path: "/v1/checkouts/{id}/update-line-items-quantity",
1723
- pathParams: { id: "id" },
1724
- __requestType: null,
1725
- __originalRequestType: null,
1726
- __responseType: null,
1727
- __originalResponseType: null
1728
- };
1729
- }
1730
- export {
1731
- AdditionalFeeSource as AdditionalFeeSourceOriginal,
1732
- BalanceType as BalanceTypeOriginal,
1733
- ChannelType as ChannelTypeOriginal,
1734
- ChargeType as ChargeTypeOriginal,
1735
- DescriptionLineType as DescriptionLineTypeOriginal,
1736
- DimensionsUnit as DimensionsUnitOriginal,
1737
- DiscountType as DiscountTypeOriginal,
1738
- FallbackReason as FallbackReasonOriginal,
1739
- FileType as FileTypeOriginal,
1740
- ItemAvailabilityStatus as ItemAvailabilityStatusOriginal,
1741
- ItemTypePreset as ItemTypePresetOriginal,
1742
- JurisdictionType as JurisdictionTypeOriginal,
1743
- ManualCalculationReason as ManualCalculationReasonOriginal,
1744
- NameInLineItem as NameInLineItemOriginal,
1745
- NameInOther as NameInOtherOriginal,
1746
- PaymentOptionType as PaymentOptionTypeOriginal,
1747
- PickupMethod as PickupMethodOriginal,
1748
- PlatformFeeChargeType as PlatformFeeChargeTypeOriginal,
1749
- ProductPeriodAlignment as ProductPeriodAlignmentOriginal,
1750
- RateType as RateTypeOriginal,
1751
- RuleType as RuleTypeOriginal,
1752
- Severity as SeverityOriginal,
1753
- SubscriptionFrequency as SubscriptionFrequencyOriginal,
1754
- SuggestedFix as SuggestedFixOriginal,
1755
- TaxableAddressType as TaxableAddressTypeOriginal,
1756
- VatType as VatTypeOriginal,
1757
- WebhookIdentityType as WebhookIdentityTypeOriginal,
1758
- WeightUnit as WeightUnitOriginal,
1759
- addToCheckout2 as addToCheckout,
1760
- createCheckout2 as createCheckout,
1761
- createOrder2 as createOrder,
1762
- createOrderAndCharge2 as createOrderAndCharge,
1763
- getCheckout2 as getCheckout,
1764
- getCheckoutByCartId2 as getCheckoutByCartId,
1765
- getCheckoutUrl2 as getCheckoutUrl,
1766
- getWixCheckoutUrl2 as getWixCheckoutUrl,
1767
- markCheckoutAsCompleted2 as markCheckoutAsCompleted,
1768
- markCheckoutAsCompletedAndRedirectToUrl2 as markCheckoutAsCompletedAndRedirectToUrl,
1769
- removeCoupon2 as removeCoupon,
1770
- removeGiftCard2 as removeGiftCard,
1771
- removeLineItems2 as removeLineItems,
1772
- removeOverrideCheckoutUrl2 as removeOverrideCheckoutUrl,
1773
- updateCheckout2 as updateCheckout,
1774
- updateLineItemsQuantity2 as updateLineItemsQuantity
1775
- };
1776
- //# sourceMappingURL=meta.mjs.map