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