@wix/auto_sdk_ecom_checkout 1.0.36 → 1.0.38

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.
Files changed (134) hide show
  1. package/build/{es/src/ecom-v1-checkout-checkout.types.d.ts → ecom-v1-checkout-checkout.universal-DEDRvPML.d.mts} +674 -365
  2. package/build/{cjs/src/ecom-v1-checkout-checkout.types.d.ts → ecom-v1-checkout-checkout.universal-DEDRvPML.d.ts} +674 -365
  3. package/build/index.d.mts +210 -0
  4. package/build/index.d.ts +210 -0
  5. package/build/index.js +2782 -0
  6. package/build/index.js.map +1 -0
  7. package/build/index.mjs +2708 -0
  8. package/build/index.mjs.map +1 -0
  9. package/build/internal/{cjs/src/ecom-v1-checkout-checkout.types.d.ts → ecom-v1-checkout-checkout.universal-CirtPjnM.d.mts} +803 -364
  10. package/build/internal/{es/src/ecom-v1-checkout-checkout.types.d.ts → ecom-v1-checkout-checkout.universal-CirtPjnM.d.ts} +803 -364
  11. package/build/internal/index.d.mts +240 -0
  12. package/build/internal/index.d.ts +240 -0
  13. package/build/internal/index.js +2782 -0
  14. package/build/internal/index.js.map +1 -0
  15. package/build/internal/index.mjs +2708 -0
  16. package/build/internal/index.mjs.map +1 -0
  17. package/build/internal/meta.d.mts +2606 -0
  18. package/build/internal/meta.d.ts +2606 -0
  19. package/build/internal/meta.js +1587 -0
  20. package/build/internal/meta.js.map +1 -0
  21. package/build/internal/meta.mjs +1544 -0
  22. package/build/internal/meta.mjs.map +1 -0
  23. package/build/meta.d.mts +2606 -0
  24. package/build/meta.d.ts +2606 -0
  25. package/build/meta.js +1587 -0
  26. package/build/meta.js.map +1 -0
  27. package/build/meta.mjs +1544 -0
  28. package/build/meta.mjs.map +1 -0
  29. package/package.json +12 -11
  30. package/build/cjs/index.d.ts +0 -1
  31. package/build/cjs/index.js +0 -18
  32. package/build/cjs/index.js.map +0 -1
  33. package/build/cjs/index.typings.d.ts +0 -1
  34. package/build/cjs/index.typings.js +0 -18
  35. package/build/cjs/index.typings.js.map +0 -1
  36. package/build/cjs/meta.d.ts +0 -1
  37. package/build/cjs/meta.js +0 -18
  38. package/build/cjs/meta.js.map +0 -1
  39. package/build/cjs/src/ecom-v1-checkout-checkout.context.d.ts +0 -35
  40. package/build/cjs/src/ecom-v1-checkout-checkout.context.js +0 -76
  41. package/build/cjs/src/ecom-v1-checkout-checkout.context.js.map +0 -1
  42. package/build/cjs/src/ecom-v1-checkout-checkout.http.d.ts +0 -101
  43. package/build/cjs/src/ecom-v1-checkout-checkout.http.js +0 -1317
  44. package/build/cjs/src/ecom-v1-checkout-checkout.http.js.map +0 -1
  45. package/build/cjs/src/ecom-v1-checkout-checkout.meta.d.ts +0 -59
  46. package/build/cjs/src/ecom-v1-checkout-checkout.meta.js +0 -351
  47. package/build/cjs/src/ecom-v1-checkout-checkout.meta.js.map +0 -1
  48. package/build/cjs/src/ecom-v1-checkout-checkout.public.d.ts +0 -182
  49. package/build/cjs/src/ecom-v1-checkout-checkout.public.js +0 -357
  50. package/build/cjs/src/ecom-v1-checkout-checkout.public.js.map +0 -1
  51. package/build/cjs/src/ecom-v1-checkout-checkout.types.js +0 -303
  52. package/build/cjs/src/ecom-v1-checkout-checkout.types.js.map +0 -1
  53. package/build/cjs/src/ecom-v1-checkout-checkout.universal.d.ts +0 -4437
  54. package/build/cjs/src/ecom-v1-checkout-checkout.universal.js +0 -1587
  55. package/build/cjs/src/ecom-v1-checkout-checkout.universal.js.map +0 -1
  56. package/build/es/index.d.ts +0 -1
  57. package/build/es/index.js +0 -2
  58. package/build/es/index.js.map +0 -1
  59. package/build/es/index.typings.d.ts +0 -1
  60. package/build/es/index.typings.js +0 -2
  61. package/build/es/index.typings.js.map +0 -1
  62. package/build/es/meta.d.ts +0 -1
  63. package/build/es/meta.js +0 -2
  64. package/build/es/meta.js.map +0 -1
  65. package/build/es/package.json +0 -3
  66. package/build/es/src/ecom-v1-checkout-checkout.context.d.ts +0 -35
  67. package/build/es/src/ecom-v1-checkout-checkout.context.js +0 -41
  68. package/build/es/src/ecom-v1-checkout-checkout.context.js.map +0 -1
  69. package/build/es/src/ecom-v1-checkout-checkout.http.d.ts +0 -101
  70. package/build/es/src/ecom-v1-checkout-checkout.http.js +0 -1297
  71. package/build/es/src/ecom-v1-checkout-checkout.http.js.map +0 -1
  72. package/build/es/src/ecom-v1-checkout-checkout.meta.d.ts +0 -59
  73. package/build/es/src/ecom-v1-checkout-checkout.meta.js +0 -308
  74. package/build/es/src/ecom-v1-checkout-checkout.meta.js.map +0 -1
  75. package/build/es/src/ecom-v1-checkout-checkout.public.d.ts +0 -182
  76. package/build/es/src/ecom-v1-checkout-checkout.public.js +0 -305
  77. package/build/es/src/ecom-v1-checkout-checkout.public.js.map +0 -1
  78. package/build/es/src/ecom-v1-checkout-checkout.types.js +0 -300
  79. package/build/es/src/ecom-v1-checkout-checkout.types.js.map +0 -1
  80. package/build/es/src/ecom-v1-checkout-checkout.universal.d.ts +0 -4437
  81. package/build/es/src/ecom-v1-checkout-checkout.universal.js +0 -1544
  82. package/build/es/src/ecom-v1-checkout-checkout.universal.js.map +0 -1
  83. package/build/internal/cjs/index.d.ts +0 -1
  84. package/build/internal/cjs/index.js +0 -18
  85. package/build/internal/cjs/index.js.map +0 -1
  86. package/build/internal/cjs/index.typings.d.ts +0 -1
  87. package/build/internal/cjs/index.typings.js +0 -18
  88. package/build/internal/cjs/index.typings.js.map +0 -1
  89. package/build/internal/cjs/meta.d.ts +0 -1
  90. package/build/internal/cjs/meta.js +0 -18
  91. package/build/internal/cjs/meta.js.map +0 -1
  92. package/build/internal/cjs/src/ecom-v1-checkout-checkout.context.d.ts +0 -41
  93. package/build/internal/cjs/src/ecom-v1-checkout-checkout.context.js +0 -76
  94. package/build/internal/cjs/src/ecom-v1-checkout-checkout.context.js.map +0 -1
  95. package/build/internal/cjs/src/ecom-v1-checkout-checkout.http.d.ts +0 -101
  96. package/build/internal/cjs/src/ecom-v1-checkout-checkout.http.js +0 -1317
  97. package/build/internal/cjs/src/ecom-v1-checkout-checkout.http.js.map +0 -1
  98. package/build/internal/cjs/src/ecom-v1-checkout-checkout.meta.d.ts +0 -59
  99. package/build/internal/cjs/src/ecom-v1-checkout-checkout.meta.js +0 -351
  100. package/build/internal/cjs/src/ecom-v1-checkout-checkout.meta.js.map +0 -1
  101. package/build/internal/cjs/src/ecom-v1-checkout-checkout.public.d.ts +0 -206
  102. package/build/internal/cjs/src/ecom-v1-checkout-checkout.public.js +0 -357
  103. package/build/internal/cjs/src/ecom-v1-checkout-checkout.public.js.map +0 -1
  104. package/build/internal/cjs/src/ecom-v1-checkout-checkout.types.js +0 -303
  105. package/build/internal/cjs/src/ecom-v1-checkout-checkout.types.js.map +0 -1
  106. package/build/internal/cjs/src/ecom-v1-checkout-checkout.universal.d.ts +0 -4623
  107. package/build/internal/cjs/src/ecom-v1-checkout-checkout.universal.js +0 -1587
  108. package/build/internal/cjs/src/ecom-v1-checkout-checkout.universal.js.map +0 -1
  109. package/build/internal/es/index.d.ts +0 -1
  110. package/build/internal/es/index.js +0 -2
  111. package/build/internal/es/index.js.map +0 -1
  112. package/build/internal/es/index.typings.d.ts +0 -1
  113. package/build/internal/es/index.typings.js +0 -2
  114. package/build/internal/es/index.typings.js.map +0 -1
  115. package/build/internal/es/meta.d.ts +0 -1
  116. package/build/internal/es/meta.js +0 -2
  117. package/build/internal/es/meta.js.map +0 -1
  118. package/build/internal/es/src/ecom-v1-checkout-checkout.context.d.ts +0 -41
  119. package/build/internal/es/src/ecom-v1-checkout-checkout.context.js +0 -41
  120. package/build/internal/es/src/ecom-v1-checkout-checkout.context.js.map +0 -1
  121. package/build/internal/es/src/ecom-v1-checkout-checkout.http.d.ts +0 -101
  122. package/build/internal/es/src/ecom-v1-checkout-checkout.http.js +0 -1297
  123. package/build/internal/es/src/ecom-v1-checkout-checkout.http.js.map +0 -1
  124. package/build/internal/es/src/ecom-v1-checkout-checkout.meta.d.ts +0 -59
  125. package/build/internal/es/src/ecom-v1-checkout-checkout.meta.js +0 -308
  126. package/build/internal/es/src/ecom-v1-checkout-checkout.meta.js.map +0 -1
  127. package/build/internal/es/src/ecom-v1-checkout-checkout.public.d.ts +0 -206
  128. package/build/internal/es/src/ecom-v1-checkout-checkout.public.js +0 -305
  129. package/build/internal/es/src/ecom-v1-checkout-checkout.public.js.map +0 -1
  130. package/build/internal/es/src/ecom-v1-checkout-checkout.types.js +0 -300
  131. package/build/internal/es/src/ecom-v1-checkout-checkout.types.js.map +0 -1
  132. package/build/internal/es/src/ecom-v1-checkout-checkout.universal.d.ts +0 -4623
  133. package/build/internal/es/src/ecom-v1-checkout-checkout.universal.js +0 -1544
  134. package/build/internal/es/src/ecom-v1-checkout-checkout.universal.js.map +0 -1
@@ -0,0 +1,1587 @@
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
+ addToCheckout: () => addToCheckout2,
24
+ createCheckout: () => createCheckout2,
25
+ createOrder: () => createOrder2,
26
+ createOrderAndCharge: () => createOrderAndCharge2,
27
+ getCheckout: () => getCheckout2,
28
+ getCheckoutByCartId: () => getCheckoutByCartId2,
29
+ getCheckoutPaymentSettings: () => getCheckoutPaymentSettings2,
30
+ getCheckoutUrl: () => getCheckoutUrl2,
31
+ getWixCheckoutUrl: () => getWixCheckoutUrl2,
32
+ markCheckoutAsCompleted: () => markCheckoutAsCompleted2,
33
+ markCheckoutAsCompletedAndRedirectToUrl: () => markCheckoutAsCompletedAndRedirectToUrl2,
34
+ removeCoupon: () => removeCoupon2,
35
+ removeGiftCard: () => removeGiftCard2,
36
+ removeLineItems: () => removeLineItems2,
37
+ removeOverrideCheckoutUrl: () => removeOverrideCheckoutUrl2,
38
+ updateCheckout: () => updateCheckout2,
39
+ updateLineItemsQuantity: () => updateLineItemsQuantity2
40
+ });
41
+ module.exports = __toCommonJS(meta_exports);
42
+
43
+ // src/ecom-v1-checkout-checkout.http.ts
44
+ var import_rest_modules = require("@wix/sdk-runtime/rest-modules");
45
+ var import_float = require("@wix/sdk-runtime/transformations/float");
46
+ var import_float2 = require("@wix/sdk-runtime/transformations/float");
47
+ var import_bytes = require("@wix/sdk-runtime/transformations/bytes");
48
+ var import_timestamp = require("@wix/sdk-runtime/transformations/timestamp");
49
+ var import_timestamp2 = require("@wix/sdk-runtime/transformations/timestamp");
50
+ var import_field_mask = require("@wix/sdk-runtime/transformations/field-mask");
51
+ var import_transform_paths = require("@wix/sdk-runtime/transformations/transform-paths");
52
+ var import_rest_modules2 = require("@wix/sdk-runtime/rest-modules");
53
+ function resolveComWixEcomCheckoutApiV1CheckoutServiceUrl(opts) {
54
+ const domainToMappings = {
55
+ "www.wixapis.com": [
56
+ {
57
+ srcPath: "/ecom/v1/checkouts",
58
+ destPath: "/v1/checkouts"
59
+ }
60
+ ],
61
+ "api._api_base_domain_": [
62
+ {
63
+ srcPath: "/checkout",
64
+ destPath: ""
65
+ }
66
+ ],
67
+ _: [
68
+ {
69
+ srcPath: "/ecom/v1/checkouts",
70
+ destPath: "/v1/checkouts"
71
+ }
72
+ ],
73
+ "manage._base_domain_": [
74
+ {
75
+ srcPath: "/ecom/v1/checkouts",
76
+ destPath: "/v1/checkouts"
77
+ }
78
+ ],
79
+ "www._base_domain_": [
80
+ {
81
+ srcPath: "/ecom/v1/checkouts",
82
+ destPath: "/v1/checkouts"
83
+ }
84
+ ],
85
+ "bo._base_domain_": [
86
+ {
87
+ srcPath: "/ecom/v1/checkouts",
88
+ destPath: "/v1/checkouts"
89
+ }
90
+ ],
91
+ "wixbo.ai": [
92
+ {
93
+ srcPath: "/ecom/v1/checkouts",
94
+ destPath: "/v1/checkouts"
95
+ }
96
+ ],
97
+ "wix-bo.com": [
98
+ {
99
+ srcPath: "/ecom/v1/checkouts",
100
+ destPath: "/v1/checkouts"
101
+ }
102
+ ]
103
+ };
104
+ return (0, import_rest_modules2.resolveUrl)(Object.assign(opts, { domainToMappings }));
105
+ }
106
+ var PACKAGE_NAME = "@wix/auto_sdk_ecom_checkout";
107
+ function createCheckout(payload) {
108
+ function __createCheckout({ host }) {
109
+ const serializedData = (0, import_transform_paths.transformPaths)(payload, [
110
+ {
111
+ transformFn: import_timestamp.transformSDKTimestampToRESTTimestamp,
112
+ paths: [
113
+ { path: "checkoutInfo.createdDate" },
114
+ { path: "checkoutInfo.updatedDate" },
115
+ { path: "checkoutInfo.lineItems.media.urlExpirationDate" },
116
+ {
117
+ path: "checkoutInfo.lineItems.subscriptionOptionInfo.subscriptionSettings.startDate"
118
+ },
119
+ { path: "checkoutInfo.lineItems.serviceProperties.scheduledDate" },
120
+ {
121
+ path: "checkoutInfo.shippingInfo.selectedCarrierServiceOption.logistics.deliveryTimeSlot.from"
122
+ },
123
+ {
124
+ path: "checkoutInfo.shippingInfo.selectedCarrierServiceOption.logistics.deliveryTimeSlot.to"
125
+ },
126
+ {
127
+ path: "checkoutInfo.shippingInfo.carrierServiceOptions.shippingOptions.logistics.deliveryTimeSlot.from"
128
+ },
129
+ {
130
+ path: "checkoutInfo.shippingInfo.carrierServiceOptions.shippingOptions.logistics.deliveryTimeSlot.to"
131
+ },
132
+ {
133
+ path: "checkoutInfo.membershipOptions.eligibleMemberships.expirationDate"
134
+ },
135
+ {
136
+ path: "checkoutInfo.membershipOptions.invalidMemberships.membership.expirationDate"
137
+ },
138
+ { path: "checkoutInfo.subscriptionCharges.charges.cycleBillingDate" },
139
+ { path: "lineItems.media.urlExpirationDate" },
140
+ {
141
+ path: "lineItems.subscriptionOptionInfo.subscriptionSettings.startDate"
142
+ },
143
+ { path: "lineItems.serviceProperties.scheduledDate" },
144
+ {
145
+ path: "customLineItems.subscriptionOptionInfo.subscriptionSettings.startDate"
146
+ },
147
+ { path: "customLineItems.serviceProperties.scheduledDate" }
148
+ ]
149
+ },
150
+ {
151
+ transformFn: import_float.transformSDKFloatToRESTFloat,
152
+ paths: [
153
+ { path: "checkoutInfo.lineItems.media.focalPoint.x" },
154
+ { path: "checkoutInfo.lineItems.media.focalPoint.y" },
155
+ { path: "lineItems.media.focalPoint.x" },
156
+ { path: "lineItems.media.focalPoint.y" },
157
+ { path: "checkoutInfo.lineItems.physicalProperties.weight" },
158
+ {
159
+ path: "checkoutInfo.lineItems.catalogOverrideFields.physicalProperties.weight"
160
+ },
161
+ { path: "checkoutInfo.billingInfo.address.geocode.latitude" },
162
+ { path: "checkoutInfo.billingInfo.address.geocode.longitude" },
163
+ {
164
+ path: "checkoutInfo.shippingInfo.shippingDestination.address.geocode.latitude"
165
+ },
166
+ {
167
+ path: "checkoutInfo.shippingInfo.shippingDestination.address.geocode.longitude"
168
+ },
169
+ {
170
+ path: "checkoutInfo.shippingInfo.selectedCarrierServiceOption.logistics.pickupDetails.address.geocode.latitude"
171
+ },
172
+ {
173
+ path: "checkoutInfo.shippingInfo.selectedCarrierServiceOption.logistics.pickupDetails.address.geocode.longitude"
174
+ },
175
+ {
176
+ path: "checkoutInfo.shippingInfo.carrierServiceOptions.shippingOptions.logistics.pickupDetails.address.geocode.latitude"
177
+ },
178
+ {
179
+ path: "checkoutInfo.shippingInfo.carrierServiceOptions.shippingOptions.logistics.pickupDetails.address.geocode.longitude"
180
+ },
181
+ { path: "checkoutInfo.appliedDiscounts.merchantDiscount.percentage" },
182
+ { path: "lineItems.physicalProperties.weight" },
183
+ { path: "lineItems.catalogOverrideFields.physicalProperties.weight" },
184
+ { path: "customLineItems.physicalProperties.weight" }
185
+ ]
186
+ }
187
+ ]);
188
+ const metadata = {
189
+ entityFqdn: "wix.ecom.v1.checkout",
190
+ method: "POST",
191
+ methodFqn: "com.wix.ecom.checkout.api.v1.CheckoutService.CreateCheckout",
192
+ packageName: PACKAGE_NAME,
193
+ url: resolveComWixEcomCheckoutApiV1CheckoutServiceUrl({
194
+ protoPath: "/v1/checkouts",
195
+ data: serializedData,
196
+ host
197
+ }),
198
+ data: serializedData,
199
+ transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
200
+ {
201
+ transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
202
+ paths: [
203
+ { path: "checkout.createdDate" },
204
+ { path: "checkout.updatedDate" },
205
+ { path: "checkout.lineItems.media.urlExpirationDate" },
206
+ {
207
+ path: "checkout.lineItems.subscriptionOptionInfo.subscriptionSettings.startDate"
208
+ },
209
+ { path: "checkout.lineItems.serviceProperties.scheduledDate" },
210
+ {
211
+ path: "checkout.shippingInfo.selectedCarrierServiceOption.logistics.deliveryTimeSlot.from"
212
+ },
213
+ {
214
+ path: "checkout.shippingInfo.selectedCarrierServiceOption.logistics.deliveryTimeSlot.to"
215
+ },
216
+ {
217
+ path: "checkout.shippingInfo.carrierServiceOptions.shippingOptions.logistics.deliveryTimeSlot.from"
218
+ },
219
+ {
220
+ path: "checkout.shippingInfo.carrierServiceOptions.shippingOptions.logistics.deliveryTimeSlot.to"
221
+ },
222
+ {
223
+ path: "checkout.membershipOptions.eligibleMemberships.expirationDate"
224
+ },
225
+ {
226
+ path: "checkout.membershipOptions.invalidMemberships.membership.expirationDate"
227
+ },
228
+ { path: "checkout.subscriptionCharges.charges.cycleBillingDate" }
229
+ ]
230
+ },
231
+ {
232
+ transformFn: import_float2.transformRESTFloatToSDKFloat,
233
+ paths: [
234
+ { path: "checkout.lineItems.media.focalPoint.x" },
235
+ { path: "checkout.lineItems.media.focalPoint.y" },
236
+ { path: "checkout.lineItems.physicalProperties.weight" },
237
+ {
238
+ path: "checkout.lineItems.catalogOverrideFields.physicalProperties.weight"
239
+ },
240
+ { path: "checkout.billingInfo.address.geocode.latitude" },
241
+ { path: "checkout.billingInfo.address.geocode.longitude" },
242
+ {
243
+ path: "checkout.shippingInfo.shippingDestination.address.geocode.latitude"
244
+ },
245
+ {
246
+ path: "checkout.shippingInfo.shippingDestination.address.geocode.longitude"
247
+ },
248
+ {
249
+ path: "checkout.shippingInfo.selectedCarrierServiceOption.logistics.pickupDetails.address.geocode.latitude"
250
+ },
251
+ {
252
+ path: "checkout.shippingInfo.selectedCarrierServiceOption.logistics.pickupDetails.address.geocode.longitude"
253
+ },
254
+ {
255
+ path: "checkout.shippingInfo.carrierServiceOptions.shippingOptions.logistics.pickupDetails.address.geocode.latitude"
256
+ },
257
+ {
258
+ path: "checkout.shippingInfo.carrierServiceOptions.shippingOptions.logistics.pickupDetails.address.geocode.longitude"
259
+ },
260
+ { path: "checkout.appliedDiscounts.merchantDiscount.percentage" }
261
+ ]
262
+ }
263
+ ])
264
+ };
265
+ return metadata;
266
+ }
267
+ return __createCheckout;
268
+ }
269
+ function getCheckout(payload) {
270
+ function __getCheckout({ host }) {
271
+ const metadata = {
272
+ entityFqdn: "wix.ecom.v1.checkout",
273
+ method: "GET",
274
+ methodFqn: "com.wix.ecom.checkout.api.v1.CheckoutService.GetCheckout",
275
+ packageName: PACKAGE_NAME,
276
+ url: resolveComWixEcomCheckoutApiV1CheckoutServiceUrl({
277
+ protoPath: "/v1/checkouts/{id}",
278
+ data: payload,
279
+ host
280
+ }),
281
+ params: (0, import_rest_modules.toURLSearchParams)(payload),
282
+ transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
283
+ {
284
+ transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
285
+ paths: [
286
+ { path: "checkout.createdDate" },
287
+ { path: "checkout.updatedDate" },
288
+ { path: "checkout.lineItems.media.urlExpirationDate" },
289
+ {
290
+ path: "checkout.lineItems.subscriptionOptionInfo.subscriptionSettings.startDate"
291
+ },
292
+ { path: "checkout.lineItems.serviceProperties.scheduledDate" },
293
+ {
294
+ path: "checkout.shippingInfo.selectedCarrierServiceOption.logistics.deliveryTimeSlot.from"
295
+ },
296
+ {
297
+ path: "checkout.shippingInfo.selectedCarrierServiceOption.logistics.deliveryTimeSlot.to"
298
+ },
299
+ {
300
+ path: "checkout.shippingInfo.carrierServiceOptions.shippingOptions.logistics.deliveryTimeSlot.from"
301
+ },
302
+ {
303
+ path: "checkout.shippingInfo.carrierServiceOptions.shippingOptions.logistics.deliveryTimeSlot.to"
304
+ },
305
+ {
306
+ path: "checkout.membershipOptions.eligibleMemberships.expirationDate"
307
+ },
308
+ {
309
+ path: "checkout.membershipOptions.invalidMemberships.membership.expirationDate"
310
+ },
311
+ { path: "checkout.subscriptionCharges.charges.cycleBillingDate" }
312
+ ]
313
+ },
314
+ {
315
+ transformFn: import_float2.transformRESTFloatToSDKFloat,
316
+ paths: [
317
+ { path: "checkout.lineItems.media.focalPoint.x" },
318
+ { path: "checkout.lineItems.media.focalPoint.y" },
319
+ { path: "checkout.lineItems.physicalProperties.weight" },
320
+ {
321
+ path: "checkout.lineItems.catalogOverrideFields.physicalProperties.weight"
322
+ },
323
+ { path: "checkout.billingInfo.address.geocode.latitude" },
324
+ { path: "checkout.billingInfo.address.geocode.longitude" },
325
+ {
326
+ path: "checkout.shippingInfo.shippingDestination.address.geocode.latitude"
327
+ },
328
+ {
329
+ path: "checkout.shippingInfo.shippingDestination.address.geocode.longitude"
330
+ },
331
+ {
332
+ path: "checkout.shippingInfo.selectedCarrierServiceOption.logistics.pickupDetails.address.geocode.latitude"
333
+ },
334
+ {
335
+ path: "checkout.shippingInfo.selectedCarrierServiceOption.logistics.pickupDetails.address.geocode.longitude"
336
+ },
337
+ {
338
+ path: "checkout.shippingInfo.carrierServiceOptions.shippingOptions.logistics.pickupDetails.address.geocode.latitude"
339
+ },
340
+ {
341
+ path: "checkout.shippingInfo.carrierServiceOptions.shippingOptions.logistics.pickupDetails.address.geocode.longitude"
342
+ },
343
+ { path: "checkout.appliedDiscounts.merchantDiscount.percentage" }
344
+ ]
345
+ }
346
+ ])
347
+ };
348
+ return metadata;
349
+ }
350
+ return __getCheckout;
351
+ }
352
+ function getCheckoutByCartId(payload) {
353
+ function __getCheckoutByCartId({ host }) {
354
+ const metadata = {
355
+ entityFqdn: "wix.ecom.v1.checkout",
356
+ method: "GET",
357
+ methodFqn: "com.wix.ecom.checkout.api.v1.CheckoutService.GetCheckoutByCartId",
358
+ packageName: PACKAGE_NAME,
359
+ url: resolveComWixEcomCheckoutApiV1CheckoutServiceUrl({
360
+ protoPath: "/v1/checkouts/by-cart-id/{id}",
361
+ data: payload,
362
+ host
363
+ }),
364
+ params: (0, import_rest_modules.toURLSearchParams)(payload),
365
+ transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
366
+ {
367
+ transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
368
+ paths: [
369
+ { path: "checkout.createdDate" },
370
+ { path: "checkout.updatedDate" },
371
+ { path: "checkout.lineItems.media.urlExpirationDate" },
372
+ {
373
+ path: "checkout.lineItems.subscriptionOptionInfo.subscriptionSettings.startDate"
374
+ },
375
+ { path: "checkout.lineItems.serviceProperties.scheduledDate" },
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
+ url: resolveComWixEcomCheckoutApiV1CheckoutServiceUrl({
443
+ protoPath: "/v1/checkouts/{id}/wix-checkout-url",
444
+ data: payload,
445
+ host
446
+ }),
447
+ params: (0, import_rest_modules.toURLSearchParams)(payload)
448
+ };
449
+ return metadata;
450
+ }
451
+ return __getWixCheckoutUrl;
452
+ }
453
+ function getCheckoutUrl(payload) {
454
+ function __getCheckoutUrl({ host }) {
455
+ const metadata = {
456
+ entityFqdn: "wix.ecom.v1.checkout",
457
+ method: "GET",
458
+ methodFqn: "com.wix.ecom.checkout.api.v1.CheckoutService.GetCheckoutURL",
459
+ packageName: PACKAGE_NAME,
460
+ url: resolveComWixEcomCheckoutApiV1CheckoutServiceUrl({
461
+ protoPath: "/v1/checkouts/{id}/checkout-url",
462
+ data: payload,
463
+ host
464
+ }),
465
+ params: (0, import_rest_modules.toURLSearchParams)(payload)
466
+ };
467
+ return metadata;
468
+ }
469
+ return __getCheckoutUrl;
470
+ }
471
+ function updateCheckout(payload) {
472
+ function __updateCheckout({ host }) {
473
+ const serializedData = (0, import_transform_paths.transformPaths)(payload, [
474
+ {
475
+ transformFn: import_field_mask.transformSDKFieldMaskToRESTFieldMask,
476
+ paths: [{ path: "fieldMask" }]
477
+ },
478
+ {
479
+ transformFn: import_timestamp.transformSDKTimestampToRESTTimestamp,
480
+ paths: [
481
+ { path: "checkout.createdDate" },
482
+ { path: "checkout.updatedDate" },
483
+ { path: "checkout.lineItems.media.urlExpirationDate" },
484
+ {
485
+ path: "checkout.lineItems.subscriptionOptionInfo.subscriptionSettings.startDate"
486
+ },
487
+ { path: "checkout.lineItems.serviceProperties.scheduledDate" },
488
+ {
489
+ path: "checkout.shippingInfo.selectedCarrierServiceOption.logistics.deliveryTimeSlot.from"
490
+ },
491
+ {
492
+ path: "checkout.shippingInfo.selectedCarrierServiceOption.logistics.deliveryTimeSlot.to"
493
+ },
494
+ {
495
+ path: "checkout.shippingInfo.carrierServiceOptions.shippingOptions.logistics.deliveryTimeSlot.from"
496
+ },
497
+ {
498
+ path: "checkout.shippingInfo.carrierServiceOptions.shippingOptions.logistics.deliveryTimeSlot.to"
499
+ },
500
+ {
501
+ path: "checkout.membershipOptions.eligibleMemberships.expirationDate"
502
+ },
503
+ {
504
+ path: "checkout.membershipOptions.invalidMemberships.membership.expirationDate"
505
+ },
506
+ { path: "checkout.subscriptionCharges.charges.cycleBillingDate" },
507
+ { path: "lineItems.media.urlExpirationDate" },
508
+ {
509
+ path: "lineItems.subscriptionOptionInfo.subscriptionSettings.startDate"
510
+ },
511
+ { path: "lineItems.serviceProperties.scheduledDate" },
512
+ {
513
+ path: "customLineItems.subscriptionOptionInfo.subscriptionSettings.startDate"
514
+ },
515
+ { path: "customLineItems.serviceProperties.scheduledDate" }
516
+ ]
517
+ },
518
+ {
519
+ transformFn: import_float.transformSDKFloatToRESTFloat,
520
+ paths: [
521
+ { path: "checkout.lineItems.media.focalPoint.x" },
522
+ { path: "checkout.lineItems.media.focalPoint.y" },
523
+ { path: "lineItems.media.focalPoint.x" },
524
+ { path: "lineItems.media.focalPoint.y" },
525
+ { path: "checkout.lineItems.physicalProperties.weight" },
526
+ {
527
+ path: "checkout.lineItems.catalogOverrideFields.physicalProperties.weight"
528
+ },
529
+ { path: "checkout.billingInfo.address.geocode.latitude" },
530
+ { path: "checkout.billingInfo.address.geocode.longitude" },
531
+ {
532
+ path: "checkout.shippingInfo.shippingDestination.address.geocode.latitude"
533
+ },
534
+ {
535
+ path: "checkout.shippingInfo.shippingDestination.address.geocode.longitude"
536
+ },
537
+ {
538
+ path: "checkout.shippingInfo.selectedCarrierServiceOption.logistics.pickupDetails.address.geocode.latitude"
539
+ },
540
+ {
541
+ path: "checkout.shippingInfo.selectedCarrierServiceOption.logistics.pickupDetails.address.geocode.longitude"
542
+ },
543
+ {
544
+ path: "checkout.shippingInfo.carrierServiceOptions.shippingOptions.logistics.pickupDetails.address.geocode.latitude"
545
+ },
546
+ {
547
+ path: "checkout.shippingInfo.carrierServiceOptions.shippingOptions.logistics.pickupDetails.address.geocode.longitude"
548
+ },
549
+ { path: "checkout.appliedDiscounts.merchantDiscount.percentage" },
550
+ { path: "lineItems.physicalProperties.weight" },
551
+ { path: "lineItems.catalogOverrideFields.physicalProperties.weight" },
552
+ { path: "customLineItems.physicalProperties.weight" }
553
+ ]
554
+ }
555
+ ]);
556
+ const metadata = {
557
+ entityFqdn: "wix.ecom.v1.checkout",
558
+ method: "PATCH",
559
+ methodFqn: "com.wix.ecom.checkout.api.v1.CheckoutService.UpdateCheckout",
560
+ packageName: PACKAGE_NAME,
561
+ url: resolveComWixEcomCheckoutApiV1CheckoutServiceUrl({
562
+ protoPath: "/v1/checkouts/{checkout.id}",
563
+ data: serializedData,
564
+ host
565
+ }),
566
+ data: serializedData,
567
+ transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
568
+ {
569
+ transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
570
+ paths: [
571
+ { path: "checkout.createdDate" },
572
+ { path: "checkout.updatedDate" },
573
+ { path: "checkout.lineItems.media.urlExpirationDate" },
574
+ {
575
+ path: "checkout.lineItems.subscriptionOptionInfo.subscriptionSettings.startDate"
576
+ },
577
+ { path: "checkout.lineItems.serviceProperties.scheduledDate" },
578
+ {
579
+ path: "checkout.shippingInfo.selectedCarrierServiceOption.logistics.deliveryTimeSlot.from"
580
+ },
581
+ {
582
+ path: "checkout.shippingInfo.selectedCarrierServiceOption.logistics.deliveryTimeSlot.to"
583
+ },
584
+ {
585
+ path: "checkout.shippingInfo.carrierServiceOptions.shippingOptions.logistics.deliveryTimeSlot.from"
586
+ },
587
+ {
588
+ path: "checkout.shippingInfo.carrierServiceOptions.shippingOptions.logistics.deliveryTimeSlot.to"
589
+ },
590
+ {
591
+ path: "checkout.membershipOptions.eligibleMemberships.expirationDate"
592
+ },
593
+ {
594
+ path: "checkout.membershipOptions.invalidMemberships.membership.expirationDate"
595
+ },
596
+ { path: "checkout.subscriptionCharges.charges.cycleBillingDate" }
597
+ ]
598
+ },
599
+ {
600
+ transformFn: import_float2.transformRESTFloatToSDKFloat,
601
+ paths: [
602
+ { path: "checkout.lineItems.media.focalPoint.x" },
603
+ { path: "checkout.lineItems.media.focalPoint.y" },
604
+ { path: "checkout.lineItems.physicalProperties.weight" },
605
+ {
606
+ path: "checkout.lineItems.catalogOverrideFields.physicalProperties.weight"
607
+ },
608
+ { path: "checkout.billingInfo.address.geocode.latitude" },
609
+ { path: "checkout.billingInfo.address.geocode.longitude" },
610
+ {
611
+ path: "checkout.shippingInfo.shippingDestination.address.geocode.latitude"
612
+ },
613
+ {
614
+ path: "checkout.shippingInfo.shippingDestination.address.geocode.longitude"
615
+ },
616
+ {
617
+ path: "checkout.shippingInfo.selectedCarrierServiceOption.logistics.pickupDetails.address.geocode.latitude"
618
+ },
619
+ {
620
+ path: "checkout.shippingInfo.selectedCarrierServiceOption.logistics.pickupDetails.address.geocode.longitude"
621
+ },
622
+ {
623
+ path: "checkout.shippingInfo.carrierServiceOptions.shippingOptions.logistics.pickupDetails.address.geocode.latitude"
624
+ },
625
+ {
626
+ path: "checkout.shippingInfo.carrierServiceOptions.shippingOptions.logistics.pickupDetails.address.geocode.longitude"
627
+ },
628
+ { path: "checkout.appliedDiscounts.merchantDiscount.percentage" }
629
+ ]
630
+ }
631
+ ])
632
+ };
633
+ return metadata;
634
+ }
635
+ return __updateCheckout;
636
+ }
637
+ function removeCoupon(payload) {
638
+ function __removeCoupon({ host }) {
639
+ const metadata = {
640
+ entityFqdn: "wix.ecom.v1.checkout",
641
+ method: "POST",
642
+ methodFqn: "com.wix.ecom.checkout.api.v1.CheckoutService.RemoveCoupon",
643
+ packageName: PACKAGE_NAME,
644
+ url: resolveComWixEcomCheckoutApiV1CheckoutServiceUrl({
645
+ protoPath: "/v1/checkouts/{id}/remove-coupon",
646
+ data: payload,
647
+ host
648
+ }),
649
+ data: payload,
650
+ transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
651
+ {
652
+ transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
653
+ paths: [
654
+ { path: "checkout.createdDate" },
655
+ { path: "checkout.updatedDate" },
656
+ { path: "checkout.lineItems.media.urlExpirationDate" },
657
+ {
658
+ path: "checkout.lineItems.subscriptionOptionInfo.subscriptionSettings.startDate"
659
+ },
660
+ { path: "checkout.lineItems.serviceProperties.scheduledDate" },
661
+ {
662
+ path: "checkout.shippingInfo.selectedCarrierServiceOption.logistics.deliveryTimeSlot.from"
663
+ },
664
+ {
665
+ path: "checkout.shippingInfo.selectedCarrierServiceOption.logistics.deliveryTimeSlot.to"
666
+ },
667
+ {
668
+ path: "checkout.shippingInfo.carrierServiceOptions.shippingOptions.logistics.deliveryTimeSlot.from"
669
+ },
670
+ {
671
+ path: "checkout.shippingInfo.carrierServiceOptions.shippingOptions.logistics.deliveryTimeSlot.to"
672
+ },
673
+ {
674
+ path: "checkout.membershipOptions.eligibleMemberships.expirationDate"
675
+ },
676
+ {
677
+ path: "checkout.membershipOptions.invalidMemberships.membership.expirationDate"
678
+ },
679
+ { path: "checkout.subscriptionCharges.charges.cycleBillingDate" }
680
+ ]
681
+ },
682
+ {
683
+ transformFn: import_float2.transformRESTFloatToSDKFloat,
684
+ paths: [
685
+ { path: "checkout.lineItems.media.focalPoint.x" },
686
+ { path: "checkout.lineItems.media.focalPoint.y" },
687
+ { path: "checkout.lineItems.physicalProperties.weight" },
688
+ {
689
+ path: "checkout.lineItems.catalogOverrideFields.physicalProperties.weight"
690
+ },
691
+ { path: "checkout.billingInfo.address.geocode.latitude" },
692
+ { path: "checkout.billingInfo.address.geocode.longitude" },
693
+ {
694
+ path: "checkout.shippingInfo.shippingDestination.address.geocode.latitude"
695
+ },
696
+ {
697
+ path: "checkout.shippingInfo.shippingDestination.address.geocode.longitude"
698
+ },
699
+ {
700
+ path: "checkout.shippingInfo.selectedCarrierServiceOption.logistics.pickupDetails.address.geocode.latitude"
701
+ },
702
+ {
703
+ path: "checkout.shippingInfo.selectedCarrierServiceOption.logistics.pickupDetails.address.geocode.longitude"
704
+ },
705
+ {
706
+ path: "checkout.shippingInfo.carrierServiceOptions.shippingOptions.logistics.pickupDetails.address.geocode.latitude"
707
+ },
708
+ {
709
+ path: "checkout.shippingInfo.carrierServiceOptions.shippingOptions.logistics.pickupDetails.address.geocode.longitude"
710
+ },
711
+ { path: "checkout.appliedDiscounts.merchantDiscount.percentage" }
712
+ ]
713
+ }
714
+ ])
715
+ };
716
+ return metadata;
717
+ }
718
+ return __removeCoupon;
719
+ }
720
+ function removeGiftCard(payload) {
721
+ function __removeGiftCard({ host }) {
722
+ const metadata = {
723
+ entityFqdn: "wix.ecom.v1.checkout",
724
+ method: "POST",
725
+ methodFqn: "com.wix.ecom.checkout.api.v1.CheckoutService.RemoveGiftCard",
726
+ packageName: PACKAGE_NAME,
727
+ url: resolveComWixEcomCheckoutApiV1CheckoutServiceUrl({
728
+ protoPath: "/v1/checkouts/{id}/remove-gift-card",
729
+ data: payload,
730
+ host
731
+ }),
732
+ data: payload,
733
+ transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
734
+ {
735
+ transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
736
+ paths: [
737
+ { path: "checkout.createdDate" },
738
+ { path: "checkout.updatedDate" },
739
+ { path: "checkout.lineItems.media.urlExpirationDate" },
740
+ {
741
+ path: "checkout.lineItems.subscriptionOptionInfo.subscriptionSettings.startDate"
742
+ },
743
+ { path: "checkout.lineItems.serviceProperties.scheduledDate" },
744
+ {
745
+ path: "checkout.shippingInfo.selectedCarrierServiceOption.logistics.deliveryTimeSlot.from"
746
+ },
747
+ {
748
+ path: "checkout.shippingInfo.selectedCarrierServiceOption.logistics.deliveryTimeSlot.to"
749
+ },
750
+ {
751
+ path: "checkout.shippingInfo.carrierServiceOptions.shippingOptions.logistics.deliveryTimeSlot.from"
752
+ },
753
+ {
754
+ path: "checkout.shippingInfo.carrierServiceOptions.shippingOptions.logistics.deliveryTimeSlot.to"
755
+ },
756
+ {
757
+ path: "checkout.membershipOptions.eligibleMemberships.expirationDate"
758
+ },
759
+ {
760
+ path: "checkout.membershipOptions.invalidMemberships.membership.expirationDate"
761
+ },
762
+ { path: "checkout.subscriptionCharges.charges.cycleBillingDate" }
763
+ ]
764
+ },
765
+ {
766
+ transformFn: import_float2.transformRESTFloatToSDKFloat,
767
+ paths: [
768
+ { path: "checkout.lineItems.media.focalPoint.x" },
769
+ { path: "checkout.lineItems.media.focalPoint.y" },
770
+ { path: "checkout.lineItems.physicalProperties.weight" },
771
+ {
772
+ path: "checkout.lineItems.catalogOverrideFields.physicalProperties.weight"
773
+ },
774
+ { path: "checkout.billingInfo.address.geocode.latitude" },
775
+ { path: "checkout.billingInfo.address.geocode.longitude" },
776
+ {
777
+ path: "checkout.shippingInfo.shippingDestination.address.geocode.latitude"
778
+ },
779
+ {
780
+ path: "checkout.shippingInfo.shippingDestination.address.geocode.longitude"
781
+ },
782
+ {
783
+ path: "checkout.shippingInfo.selectedCarrierServiceOption.logistics.pickupDetails.address.geocode.latitude"
784
+ },
785
+ {
786
+ path: "checkout.shippingInfo.selectedCarrierServiceOption.logistics.pickupDetails.address.geocode.longitude"
787
+ },
788
+ {
789
+ path: "checkout.shippingInfo.carrierServiceOptions.shippingOptions.logistics.pickupDetails.address.geocode.latitude"
790
+ },
791
+ {
792
+ path: "checkout.shippingInfo.carrierServiceOptions.shippingOptions.logistics.pickupDetails.address.geocode.longitude"
793
+ },
794
+ { path: "checkout.appliedDiscounts.merchantDiscount.percentage" }
795
+ ]
796
+ }
797
+ ])
798
+ };
799
+ return metadata;
800
+ }
801
+ return __removeGiftCard;
802
+ }
803
+ function removeOverrideCheckoutUrl(payload) {
804
+ function __removeOverrideCheckoutUrl({ host }) {
805
+ const metadata = {
806
+ entityFqdn: "wix.ecom.v1.checkout",
807
+ method: "POST",
808
+ methodFqn: "com.wix.ecom.checkout.api.v1.CheckoutService.RemoveOverrideCheckoutUrl",
809
+ packageName: PACKAGE_NAME,
810
+ url: resolveComWixEcomCheckoutApiV1CheckoutServiceUrl({
811
+ protoPath: "/v1/checkouts/{id}/remove-override-checkout-url",
812
+ data: payload,
813
+ host
814
+ }),
815
+ data: payload,
816
+ transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
817
+ {
818
+ transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
819
+ paths: [
820
+ { path: "checkout.createdDate" },
821
+ { path: "checkout.updatedDate" },
822
+ { path: "checkout.lineItems.media.urlExpirationDate" },
823
+ {
824
+ path: "checkout.lineItems.subscriptionOptionInfo.subscriptionSettings.startDate"
825
+ },
826
+ { path: "checkout.lineItems.serviceProperties.scheduledDate" },
827
+ {
828
+ path: "checkout.shippingInfo.selectedCarrierServiceOption.logistics.deliveryTimeSlot.from"
829
+ },
830
+ {
831
+ path: "checkout.shippingInfo.selectedCarrierServiceOption.logistics.deliveryTimeSlot.to"
832
+ },
833
+ {
834
+ path: "checkout.shippingInfo.carrierServiceOptions.shippingOptions.logistics.deliveryTimeSlot.from"
835
+ },
836
+ {
837
+ path: "checkout.shippingInfo.carrierServiceOptions.shippingOptions.logistics.deliveryTimeSlot.to"
838
+ },
839
+ {
840
+ path: "checkout.membershipOptions.eligibleMemberships.expirationDate"
841
+ },
842
+ {
843
+ path: "checkout.membershipOptions.invalidMemberships.membership.expirationDate"
844
+ },
845
+ { path: "checkout.subscriptionCharges.charges.cycleBillingDate" }
846
+ ]
847
+ },
848
+ {
849
+ transformFn: import_float2.transformRESTFloatToSDKFloat,
850
+ paths: [
851
+ { path: "checkout.lineItems.media.focalPoint.x" },
852
+ { path: "checkout.lineItems.media.focalPoint.y" },
853
+ { path: "checkout.lineItems.physicalProperties.weight" },
854
+ {
855
+ path: "checkout.lineItems.catalogOverrideFields.physicalProperties.weight"
856
+ },
857
+ { path: "checkout.billingInfo.address.geocode.latitude" },
858
+ { path: "checkout.billingInfo.address.geocode.longitude" },
859
+ {
860
+ path: "checkout.shippingInfo.shippingDestination.address.geocode.latitude"
861
+ },
862
+ {
863
+ path: "checkout.shippingInfo.shippingDestination.address.geocode.longitude"
864
+ },
865
+ {
866
+ path: "checkout.shippingInfo.selectedCarrierServiceOption.logistics.pickupDetails.address.geocode.latitude"
867
+ },
868
+ {
869
+ path: "checkout.shippingInfo.selectedCarrierServiceOption.logistics.pickupDetails.address.geocode.longitude"
870
+ },
871
+ {
872
+ path: "checkout.shippingInfo.carrierServiceOptions.shippingOptions.logistics.pickupDetails.address.geocode.latitude"
873
+ },
874
+ {
875
+ path: "checkout.shippingInfo.carrierServiceOptions.shippingOptions.logistics.pickupDetails.address.geocode.longitude"
876
+ },
877
+ { path: "checkout.appliedDiscounts.merchantDiscount.percentage" }
878
+ ]
879
+ }
880
+ ])
881
+ };
882
+ return metadata;
883
+ }
884
+ return __removeOverrideCheckoutUrl;
885
+ }
886
+ function addToCheckout(payload) {
887
+ function __addToCheckout({ host }) {
888
+ const serializedData = (0, import_transform_paths.transformPaths)(payload, [
889
+ {
890
+ transformFn: import_timestamp.transformSDKTimestampToRESTTimestamp,
891
+ paths: [
892
+ { path: "lineItems.media.urlExpirationDate" },
893
+ {
894
+ path: "lineItems.subscriptionOptionInfo.subscriptionSettings.startDate"
895
+ },
896
+ { path: "lineItems.serviceProperties.scheduledDate" },
897
+ {
898
+ path: "customLineItems.subscriptionOptionInfo.subscriptionSettings.startDate"
899
+ },
900
+ { path: "customLineItems.serviceProperties.scheduledDate" }
901
+ ]
902
+ },
903
+ {
904
+ transformFn: import_float.transformSDKFloatToRESTFloat,
905
+ paths: [
906
+ { path: "lineItems.media.focalPoint.x" },
907
+ { path: "lineItems.media.focalPoint.y" },
908
+ { path: "lineItems.physicalProperties.weight" },
909
+ { path: "lineItems.catalogOverrideFields.physicalProperties.weight" },
910
+ { path: "customLineItems.physicalProperties.weight" }
911
+ ]
912
+ }
913
+ ]);
914
+ const metadata = {
915
+ entityFqdn: "wix.ecom.v1.checkout",
916
+ method: "POST",
917
+ methodFqn: "com.wix.ecom.checkout.api.v1.CheckoutService.AddToCheckout",
918
+ packageName: PACKAGE_NAME,
919
+ url: resolveComWixEcomCheckoutApiV1CheckoutServiceUrl({
920
+ protoPath: "/v1/checkouts/{id}/add-to-checkout",
921
+ data: serializedData,
922
+ host
923
+ }),
924
+ data: serializedData,
925
+ transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
926
+ {
927
+ transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
928
+ paths: [
929
+ { path: "checkout.createdDate" },
930
+ { path: "checkout.updatedDate" },
931
+ { path: "checkout.lineItems.media.urlExpirationDate" },
932
+ {
933
+ path: "checkout.lineItems.subscriptionOptionInfo.subscriptionSettings.startDate"
934
+ },
935
+ { path: "checkout.lineItems.serviceProperties.scheduledDate" },
936
+ {
937
+ path: "checkout.shippingInfo.selectedCarrierServiceOption.logistics.deliveryTimeSlot.from"
938
+ },
939
+ {
940
+ path: "checkout.shippingInfo.selectedCarrierServiceOption.logistics.deliveryTimeSlot.to"
941
+ },
942
+ {
943
+ path: "checkout.shippingInfo.carrierServiceOptions.shippingOptions.logistics.deliveryTimeSlot.from"
944
+ },
945
+ {
946
+ path: "checkout.shippingInfo.carrierServiceOptions.shippingOptions.logistics.deliveryTimeSlot.to"
947
+ },
948
+ {
949
+ path: "checkout.membershipOptions.eligibleMemberships.expirationDate"
950
+ },
951
+ {
952
+ path: "checkout.membershipOptions.invalidMemberships.membership.expirationDate"
953
+ },
954
+ { path: "checkout.subscriptionCharges.charges.cycleBillingDate" }
955
+ ]
956
+ },
957
+ {
958
+ transformFn: import_float2.transformRESTFloatToSDKFloat,
959
+ paths: [
960
+ { path: "checkout.lineItems.media.focalPoint.x" },
961
+ { path: "checkout.lineItems.media.focalPoint.y" },
962
+ { path: "checkout.lineItems.physicalProperties.weight" },
963
+ {
964
+ path: "checkout.lineItems.catalogOverrideFields.physicalProperties.weight"
965
+ },
966
+ { path: "checkout.billingInfo.address.geocode.latitude" },
967
+ { path: "checkout.billingInfo.address.geocode.longitude" },
968
+ {
969
+ path: "checkout.shippingInfo.shippingDestination.address.geocode.latitude"
970
+ },
971
+ {
972
+ path: "checkout.shippingInfo.shippingDestination.address.geocode.longitude"
973
+ },
974
+ {
975
+ path: "checkout.shippingInfo.selectedCarrierServiceOption.logistics.pickupDetails.address.geocode.latitude"
976
+ },
977
+ {
978
+ path: "checkout.shippingInfo.selectedCarrierServiceOption.logistics.pickupDetails.address.geocode.longitude"
979
+ },
980
+ {
981
+ path: "checkout.shippingInfo.carrierServiceOptions.shippingOptions.logistics.pickupDetails.address.geocode.latitude"
982
+ },
983
+ {
984
+ path: "checkout.shippingInfo.carrierServiceOptions.shippingOptions.logistics.pickupDetails.address.geocode.longitude"
985
+ },
986
+ { path: "checkout.appliedDiscounts.merchantDiscount.percentage" }
987
+ ]
988
+ }
989
+ ])
990
+ };
991
+ return metadata;
992
+ }
993
+ return __addToCheckout;
994
+ }
995
+ function removeLineItems(payload) {
996
+ function __removeLineItems({ host }) {
997
+ const metadata = {
998
+ entityFqdn: "wix.ecom.v1.checkout",
999
+ method: "POST",
1000
+ methodFqn: "com.wix.ecom.checkout.api.v1.CheckoutService.RemoveLineItems",
1001
+ packageName: PACKAGE_NAME,
1002
+ url: resolveComWixEcomCheckoutApiV1CheckoutServiceUrl({
1003
+ protoPath: "/v1/checkouts/{id}/remove-line-items",
1004
+ data: payload,
1005
+ host
1006
+ }),
1007
+ data: payload,
1008
+ transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
1009
+ {
1010
+ transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
1011
+ paths: [
1012
+ { path: "checkout.createdDate" },
1013
+ { path: "checkout.updatedDate" },
1014
+ { path: "checkout.lineItems.media.urlExpirationDate" },
1015
+ {
1016
+ path: "checkout.lineItems.subscriptionOptionInfo.subscriptionSettings.startDate"
1017
+ },
1018
+ { path: "checkout.lineItems.serviceProperties.scheduledDate" },
1019
+ {
1020
+ path: "checkout.shippingInfo.selectedCarrierServiceOption.logistics.deliveryTimeSlot.from"
1021
+ },
1022
+ {
1023
+ path: "checkout.shippingInfo.selectedCarrierServiceOption.logistics.deliveryTimeSlot.to"
1024
+ },
1025
+ {
1026
+ path: "checkout.shippingInfo.carrierServiceOptions.shippingOptions.logistics.deliveryTimeSlot.from"
1027
+ },
1028
+ {
1029
+ path: "checkout.shippingInfo.carrierServiceOptions.shippingOptions.logistics.deliveryTimeSlot.to"
1030
+ },
1031
+ {
1032
+ path: "checkout.membershipOptions.eligibleMemberships.expirationDate"
1033
+ },
1034
+ {
1035
+ path: "checkout.membershipOptions.invalidMemberships.membership.expirationDate"
1036
+ },
1037
+ { path: "checkout.subscriptionCharges.charges.cycleBillingDate" }
1038
+ ]
1039
+ },
1040
+ {
1041
+ transformFn: import_float2.transformRESTFloatToSDKFloat,
1042
+ paths: [
1043
+ { path: "checkout.lineItems.media.focalPoint.x" },
1044
+ { path: "checkout.lineItems.media.focalPoint.y" },
1045
+ { path: "checkout.lineItems.physicalProperties.weight" },
1046
+ {
1047
+ path: "checkout.lineItems.catalogOverrideFields.physicalProperties.weight"
1048
+ },
1049
+ { path: "checkout.billingInfo.address.geocode.latitude" },
1050
+ { path: "checkout.billingInfo.address.geocode.longitude" },
1051
+ {
1052
+ path: "checkout.shippingInfo.shippingDestination.address.geocode.latitude"
1053
+ },
1054
+ {
1055
+ path: "checkout.shippingInfo.shippingDestination.address.geocode.longitude"
1056
+ },
1057
+ {
1058
+ path: "checkout.shippingInfo.selectedCarrierServiceOption.logistics.pickupDetails.address.geocode.latitude"
1059
+ },
1060
+ {
1061
+ path: "checkout.shippingInfo.selectedCarrierServiceOption.logistics.pickupDetails.address.geocode.longitude"
1062
+ },
1063
+ {
1064
+ path: "checkout.shippingInfo.carrierServiceOptions.shippingOptions.logistics.pickupDetails.address.geocode.latitude"
1065
+ },
1066
+ {
1067
+ path: "checkout.shippingInfo.carrierServiceOptions.shippingOptions.logistics.pickupDetails.address.geocode.longitude"
1068
+ },
1069
+ { path: "checkout.appliedDiscounts.merchantDiscount.percentage" }
1070
+ ]
1071
+ }
1072
+ ])
1073
+ };
1074
+ return metadata;
1075
+ }
1076
+ return __removeLineItems;
1077
+ }
1078
+ function createOrder(payload) {
1079
+ function __createOrder({ host }) {
1080
+ const metadata = {
1081
+ entityFqdn: "wix.ecom.v1.checkout",
1082
+ method: "POST",
1083
+ methodFqn: "com.wix.ecom.checkout.api.v1.CheckoutService.CreateOrder",
1084
+ packageName: PACKAGE_NAME,
1085
+ url: resolveComWixEcomCheckoutApiV1CheckoutServiceUrl({
1086
+ protoPath: "/v1/checkouts/{id}/create-order",
1087
+ data: payload,
1088
+ host
1089
+ }),
1090
+ data: payload
1091
+ };
1092
+ return metadata;
1093
+ }
1094
+ return __createOrder;
1095
+ }
1096
+ function createOrderAndCharge(payload) {
1097
+ function __createOrderAndCharge({ host }) {
1098
+ const metadata = {
1099
+ entityFqdn: "wix.ecom.v1.checkout",
1100
+ method: "POST",
1101
+ methodFqn: "com.wix.ecom.checkout.api.v1.CheckoutService.CreateOrderAndCharge",
1102
+ packageName: PACKAGE_NAME,
1103
+ url: resolveComWixEcomCheckoutApiV1CheckoutServiceUrl({
1104
+ protoPath: "/v1/checkouts/{id}/create-order-and-charge",
1105
+ data: payload,
1106
+ host
1107
+ }),
1108
+ data: payload
1109
+ };
1110
+ return metadata;
1111
+ }
1112
+ return __createOrderAndCharge;
1113
+ }
1114
+ function markCheckoutAsCompletedAndRedirectToUrl(payload) {
1115
+ function __markCheckoutAsCompletedAndRedirectToUrl({ host }) {
1116
+ const metadata = {
1117
+ entityFqdn: "wix.ecom.v1.checkout",
1118
+ method: "GET",
1119
+ methodFqn: "com.wix.ecom.checkout.api.v1.CheckoutService.MarkCheckoutAsCompletedAndRedirectToUrl",
1120
+ packageName: PACKAGE_NAME,
1121
+ url: resolveComWixEcomCheckoutApiV1CheckoutServiceUrl({
1122
+ protoPath: "/v1/checkouts/mark-checkout-as-completed-and-redirect-to-url",
1123
+ data: payload,
1124
+ host
1125
+ }),
1126
+ params: (0, import_rest_modules.toURLSearchParams)(payload),
1127
+ transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
1128
+ {
1129
+ transformFn: import_bytes.transformRESTBytesToSDKBytes,
1130
+ paths: [{ path: "body" }]
1131
+ }
1132
+ ])
1133
+ };
1134
+ return metadata;
1135
+ }
1136
+ return __markCheckoutAsCompletedAndRedirectToUrl;
1137
+ }
1138
+ function markCheckoutAsCompleted(payload) {
1139
+ function __markCheckoutAsCompleted({ host }) {
1140
+ const metadata = {
1141
+ entityFqdn: "wix.ecom.v1.checkout",
1142
+ method: "POST",
1143
+ methodFqn: "com.wix.ecom.checkout.api.v1.CheckoutService.MarkCheckoutAsCompleted",
1144
+ packageName: PACKAGE_NAME,
1145
+ url: resolveComWixEcomCheckoutApiV1CheckoutServiceUrl({
1146
+ protoPath: "/v1/checkouts/{id}/mark-as-completed",
1147
+ data: payload,
1148
+ host
1149
+ }),
1150
+ data: payload
1151
+ };
1152
+ return metadata;
1153
+ }
1154
+ return __markCheckoutAsCompleted;
1155
+ }
1156
+ function updateLineItemsQuantity(payload) {
1157
+ function __updateLineItemsQuantity({ host }) {
1158
+ const metadata = {
1159
+ entityFqdn: "wix.ecom.v1.checkout",
1160
+ method: "POST",
1161
+ methodFqn: "com.wix.ecom.checkout.api.v1.CheckoutService.UpdateLineItemsQuantity",
1162
+ packageName: PACKAGE_NAME,
1163
+ url: resolveComWixEcomCheckoutApiV1CheckoutServiceUrl({
1164
+ protoPath: "/v1/checkouts/{id}/update-line-items-quantity",
1165
+ data: payload,
1166
+ host
1167
+ }),
1168
+ data: payload,
1169
+ transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
1170
+ {
1171
+ transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
1172
+ paths: [
1173
+ { path: "checkout.createdDate" },
1174
+ { path: "checkout.updatedDate" },
1175
+ { path: "checkout.lineItems.media.urlExpirationDate" },
1176
+ {
1177
+ path: "checkout.lineItems.subscriptionOptionInfo.subscriptionSettings.startDate"
1178
+ },
1179
+ { path: "checkout.lineItems.serviceProperties.scheduledDate" },
1180
+ {
1181
+ path: "checkout.shippingInfo.selectedCarrierServiceOption.logistics.deliveryTimeSlot.from"
1182
+ },
1183
+ {
1184
+ path: "checkout.shippingInfo.selectedCarrierServiceOption.logistics.deliveryTimeSlot.to"
1185
+ },
1186
+ {
1187
+ path: "checkout.shippingInfo.carrierServiceOptions.shippingOptions.logistics.deliveryTimeSlot.from"
1188
+ },
1189
+ {
1190
+ path: "checkout.shippingInfo.carrierServiceOptions.shippingOptions.logistics.deliveryTimeSlot.to"
1191
+ },
1192
+ {
1193
+ path: "checkout.membershipOptions.eligibleMemberships.expirationDate"
1194
+ },
1195
+ {
1196
+ path: "checkout.membershipOptions.invalidMemberships.membership.expirationDate"
1197
+ },
1198
+ { path: "checkout.subscriptionCharges.charges.cycleBillingDate" }
1199
+ ]
1200
+ },
1201
+ {
1202
+ transformFn: import_float2.transformRESTFloatToSDKFloat,
1203
+ paths: [
1204
+ { path: "checkout.lineItems.media.focalPoint.x" },
1205
+ { path: "checkout.lineItems.media.focalPoint.y" },
1206
+ { path: "checkout.lineItems.physicalProperties.weight" },
1207
+ {
1208
+ path: "checkout.lineItems.catalogOverrideFields.physicalProperties.weight"
1209
+ },
1210
+ { path: "checkout.billingInfo.address.geocode.latitude" },
1211
+ { path: "checkout.billingInfo.address.geocode.longitude" },
1212
+ {
1213
+ path: "checkout.shippingInfo.shippingDestination.address.geocode.latitude"
1214
+ },
1215
+ {
1216
+ path: "checkout.shippingInfo.shippingDestination.address.geocode.longitude"
1217
+ },
1218
+ {
1219
+ path: "checkout.shippingInfo.selectedCarrierServiceOption.logistics.pickupDetails.address.geocode.latitude"
1220
+ },
1221
+ {
1222
+ path: "checkout.shippingInfo.selectedCarrierServiceOption.logistics.pickupDetails.address.geocode.longitude"
1223
+ },
1224
+ {
1225
+ path: "checkout.shippingInfo.carrierServiceOptions.shippingOptions.logistics.pickupDetails.address.geocode.latitude"
1226
+ },
1227
+ {
1228
+ path: "checkout.shippingInfo.carrierServiceOptions.shippingOptions.logistics.pickupDetails.address.geocode.longitude"
1229
+ },
1230
+ { path: "checkout.appliedDiscounts.merchantDiscount.percentage" }
1231
+ ]
1232
+ }
1233
+ ])
1234
+ };
1235
+ return metadata;
1236
+ }
1237
+ return __updateLineItemsQuantity;
1238
+ }
1239
+ function getCheckoutPaymentSettings(payload) {
1240
+ function __getCheckoutPaymentSettings({ host }) {
1241
+ const metadata = {
1242
+ entityFqdn: "wix.ecom.v1.checkout",
1243
+ method: "GET",
1244
+ methodFqn: "com.wix.ecom.checkout.api.v1.CheckoutService.GetCheckoutPaymentSettings",
1245
+ packageName: PACKAGE_NAME,
1246
+ url: resolveComWixEcomCheckoutApiV1CheckoutServiceUrl({
1247
+ protoPath: "/v1/checkouts/{id}/payment-settings",
1248
+ data: payload,
1249
+ host
1250
+ }),
1251
+ params: (0, import_rest_modules.toURLSearchParams)(payload)
1252
+ };
1253
+ return metadata;
1254
+ }
1255
+ return __getCheckoutPaymentSettings;
1256
+ }
1257
+
1258
+ // src/ecom-v1-checkout-checkout.meta.ts
1259
+ function createCheckout2() {
1260
+ const payload = {};
1261
+ const getRequestOptions = createCheckout(payload);
1262
+ const getUrl = (context) => {
1263
+ const { url } = getRequestOptions(context);
1264
+ return url;
1265
+ };
1266
+ return {
1267
+ getUrl,
1268
+ httpMethod: "POST",
1269
+ path: "/v1/checkouts",
1270
+ pathParams: {},
1271
+ __requestType: null,
1272
+ __originalRequestType: null,
1273
+ __responseType: null,
1274
+ __originalResponseType: null
1275
+ };
1276
+ }
1277
+ function getCheckout2() {
1278
+ const payload = { id: ":id" };
1279
+ const getRequestOptions = getCheckout(payload);
1280
+ const getUrl = (context) => {
1281
+ const { url } = getRequestOptions(context);
1282
+ return url;
1283
+ };
1284
+ return {
1285
+ getUrl,
1286
+ httpMethod: "GET",
1287
+ path: "/v1/checkouts/{id}",
1288
+ pathParams: { id: "id" },
1289
+ __requestType: null,
1290
+ __originalRequestType: null,
1291
+ __responseType: null,
1292
+ __originalResponseType: null
1293
+ };
1294
+ }
1295
+ function getCheckoutByCartId2() {
1296
+ const payload = { id: ":id" };
1297
+ const getRequestOptions = getCheckoutByCartId(payload);
1298
+ const getUrl = (context) => {
1299
+ const { url } = getRequestOptions(context);
1300
+ return url;
1301
+ };
1302
+ return {
1303
+ getUrl,
1304
+ httpMethod: "GET",
1305
+ path: "/v1/checkouts/by-cart-id/{id}",
1306
+ pathParams: { id: "id" },
1307
+ __requestType: null,
1308
+ __originalRequestType: null,
1309
+ __responseType: null,
1310
+ __originalResponseType: null
1311
+ };
1312
+ }
1313
+ function getWixCheckoutUrl2() {
1314
+ const payload = { id: ":id" };
1315
+ const getRequestOptions = getWixCheckoutUrl(payload);
1316
+ const getUrl = (context) => {
1317
+ const { url } = getRequestOptions(context);
1318
+ return url;
1319
+ };
1320
+ return {
1321
+ getUrl,
1322
+ httpMethod: "GET",
1323
+ path: "/v1/checkouts/{id}/wix-checkout-url",
1324
+ pathParams: { id: "id" },
1325
+ __requestType: null,
1326
+ __originalRequestType: null,
1327
+ __responseType: null,
1328
+ __originalResponseType: null
1329
+ };
1330
+ }
1331
+ function getCheckoutUrl2() {
1332
+ const payload = { id: ":id" };
1333
+ const getRequestOptions = getCheckoutUrl(payload);
1334
+ const getUrl = (context) => {
1335
+ const { url } = getRequestOptions(context);
1336
+ return url;
1337
+ };
1338
+ return {
1339
+ getUrl,
1340
+ httpMethod: "GET",
1341
+ path: "/v1/checkouts/{id}/checkout-url",
1342
+ pathParams: { id: "id" },
1343
+ __requestType: null,
1344
+ __originalRequestType: null,
1345
+ __responseType: null,
1346
+ __originalResponseType: null
1347
+ };
1348
+ }
1349
+ function updateCheckout2() {
1350
+ const payload = { checkout: { id: ":checkoutId" } };
1351
+ const getRequestOptions = updateCheckout(payload);
1352
+ const getUrl = (context) => {
1353
+ const { url } = getRequestOptions(context);
1354
+ return url;
1355
+ };
1356
+ return {
1357
+ getUrl,
1358
+ httpMethod: "PATCH",
1359
+ path: "/v1/checkouts/{checkout.id}",
1360
+ pathParams: { checkoutId: "checkoutId" },
1361
+ __requestType: null,
1362
+ __originalRequestType: null,
1363
+ __responseType: null,
1364
+ __originalResponseType: null
1365
+ };
1366
+ }
1367
+ function removeCoupon2() {
1368
+ const payload = { id: ":id" };
1369
+ const getRequestOptions = removeCoupon(payload);
1370
+ const getUrl = (context) => {
1371
+ const { url } = getRequestOptions(context);
1372
+ return url;
1373
+ };
1374
+ return {
1375
+ getUrl,
1376
+ httpMethod: "POST",
1377
+ path: "/v1/checkouts/{id}/remove-coupon",
1378
+ pathParams: { id: "id" },
1379
+ __requestType: null,
1380
+ __originalRequestType: null,
1381
+ __responseType: null,
1382
+ __originalResponseType: null
1383
+ };
1384
+ }
1385
+ function removeGiftCard2() {
1386
+ const payload = { id: ":id" };
1387
+ const getRequestOptions = removeGiftCard(payload);
1388
+ const getUrl = (context) => {
1389
+ const { url } = getRequestOptions(context);
1390
+ return url;
1391
+ };
1392
+ return {
1393
+ getUrl,
1394
+ httpMethod: "POST",
1395
+ path: "/v1/checkouts/{id}/remove-gift-card",
1396
+ pathParams: { id: "id" },
1397
+ __requestType: null,
1398
+ __originalRequestType: null,
1399
+ __responseType: null,
1400
+ __originalResponseType: null
1401
+ };
1402
+ }
1403
+ function removeOverrideCheckoutUrl2() {
1404
+ const payload = { id: ":id" };
1405
+ const getRequestOptions = removeOverrideCheckoutUrl(payload);
1406
+ const getUrl = (context) => {
1407
+ const { url } = getRequestOptions(context);
1408
+ return url;
1409
+ };
1410
+ return {
1411
+ getUrl,
1412
+ httpMethod: "POST",
1413
+ path: "/v1/checkouts/{id}/remove-override-checkout-url",
1414
+ pathParams: { id: "id" },
1415
+ __requestType: null,
1416
+ __originalRequestType: null,
1417
+ __responseType: null,
1418
+ __originalResponseType: null
1419
+ };
1420
+ }
1421
+ function addToCheckout2() {
1422
+ const payload = { id: ":id" };
1423
+ const getRequestOptions = addToCheckout(payload);
1424
+ const getUrl = (context) => {
1425
+ const { url } = getRequestOptions(context);
1426
+ return url;
1427
+ };
1428
+ return {
1429
+ getUrl,
1430
+ httpMethod: "POST",
1431
+ path: "/v1/checkouts/{id}/add-to-checkout",
1432
+ pathParams: { id: "id" },
1433
+ __requestType: null,
1434
+ __originalRequestType: null,
1435
+ __responseType: null,
1436
+ __originalResponseType: null
1437
+ };
1438
+ }
1439
+ function removeLineItems2() {
1440
+ const payload = { id: ":id" };
1441
+ const getRequestOptions = removeLineItems(payload);
1442
+ const getUrl = (context) => {
1443
+ const { url } = getRequestOptions(context);
1444
+ return url;
1445
+ };
1446
+ return {
1447
+ getUrl,
1448
+ httpMethod: "POST",
1449
+ path: "/v1/checkouts/{id}/remove-line-items",
1450
+ pathParams: { id: "id" },
1451
+ __requestType: null,
1452
+ __originalRequestType: null,
1453
+ __responseType: null,
1454
+ __originalResponseType: null
1455
+ };
1456
+ }
1457
+ function createOrder2() {
1458
+ const payload = { id: ":id" };
1459
+ const getRequestOptions = createOrder(payload);
1460
+ const getUrl = (context) => {
1461
+ const { url } = getRequestOptions(context);
1462
+ return url;
1463
+ };
1464
+ return {
1465
+ getUrl,
1466
+ httpMethod: "POST",
1467
+ path: "/v1/checkouts/{id}/create-order",
1468
+ pathParams: { id: "id" },
1469
+ __requestType: null,
1470
+ __originalRequestType: null,
1471
+ __responseType: null,
1472
+ __originalResponseType: null
1473
+ };
1474
+ }
1475
+ function createOrderAndCharge2() {
1476
+ const payload = { id: ":id" };
1477
+ const getRequestOptions = createOrderAndCharge(payload);
1478
+ const getUrl = (context) => {
1479
+ const { url } = getRequestOptions(context);
1480
+ return url;
1481
+ };
1482
+ return {
1483
+ getUrl,
1484
+ httpMethod: "POST",
1485
+ path: "/v1/checkouts/{id}/create-order-and-charge",
1486
+ pathParams: { id: "id" },
1487
+ __requestType: null,
1488
+ __originalRequestType: null,
1489
+ __responseType: null,
1490
+ __originalResponseType: null
1491
+ };
1492
+ }
1493
+ function markCheckoutAsCompletedAndRedirectToUrl2() {
1494
+ const payload = {};
1495
+ const getRequestOptions = markCheckoutAsCompletedAndRedirectToUrl(
1496
+ payload
1497
+ );
1498
+ const getUrl = (context) => {
1499
+ const { url } = getRequestOptions(context);
1500
+ return url;
1501
+ };
1502
+ return {
1503
+ getUrl,
1504
+ httpMethod: "GET",
1505
+ path: "/v1/checkouts/mark-checkout-as-completed-and-redirect-to-url",
1506
+ pathParams: {},
1507
+ __requestType: null,
1508
+ __originalRequestType: null,
1509
+ __responseType: null,
1510
+ __originalResponseType: null
1511
+ };
1512
+ }
1513
+ function markCheckoutAsCompleted2() {
1514
+ const payload = { id: ":id" };
1515
+ const getRequestOptions = markCheckoutAsCompleted(payload);
1516
+ const getUrl = (context) => {
1517
+ const { url } = getRequestOptions(context);
1518
+ return url;
1519
+ };
1520
+ return {
1521
+ getUrl,
1522
+ httpMethod: "POST",
1523
+ path: "/v1/checkouts/{id}/mark-as-completed",
1524
+ pathParams: { id: "id" },
1525
+ __requestType: null,
1526
+ __originalRequestType: null,
1527
+ __responseType: null,
1528
+ __originalResponseType: null
1529
+ };
1530
+ }
1531
+ function updateLineItemsQuantity2() {
1532
+ const payload = { id: ":id" };
1533
+ const getRequestOptions = updateLineItemsQuantity(payload);
1534
+ const getUrl = (context) => {
1535
+ const { url } = getRequestOptions(context);
1536
+ return url;
1537
+ };
1538
+ return {
1539
+ getUrl,
1540
+ httpMethod: "POST",
1541
+ path: "/v1/checkouts/{id}/update-line-items-quantity",
1542
+ pathParams: { id: "id" },
1543
+ __requestType: null,
1544
+ __originalRequestType: null,
1545
+ __responseType: null,
1546
+ __originalResponseType: null
1547
+ };
1548
+ }
1549
+ function getCheckoutPaymentSettings2() {
1550
+ const payload = { id: ":id" };
1551
+ const getRequestOptions = getCheckoutPaymentSettings(payload);
1552
+ const getUrl = (context) => {
1553
+ const { url } = getRequestOptions(context);
1554
+ return url;
1555
+ };
1556
+ return {
1557
+ getUrl,
1558
+ httpMethod: "GET",
1559
+ path: "/v1/checkouts/{id}/payment-settings",
1560
+ pathParams: { id: "id" },
1561
+ __requestType: null,
1562
+ __originalRequestType: null,
1563
+ __responseType: null,
1564
+ __originalResponseType: null
1565
+ };
1566
+ }
1567
+ // Annotate the CommonJS export names for ESM import in node:
1568
+ 0 && (module.exports = {
1569
+ addToCheckout,
1570
+ createCheckout,
1571
+ createOrder,
1572
+ createOrderAndCharge,
1573
+ getCheckout,
1574
+ getCheckoutByCartId,
1575
+ getCheckoutPaymentSettings,
1576
+ getCheckoutUrl,
1577
+ getWixCheckoutUrl,
1578
+ markCheckoutAsCompleted,
1579
+ markCheckoutAsCompletedAndRedirectToUrl,
1580
+ removeCoupon,
1581
+ removeGiftCard,
1582
+ removeLineItems,
1583
+ removeOverrideCheckoutUrl,
1584
+ updateCheckout,
1585
+ updateLineItemsQuantity
1586
+ });
1587
+ //# sourceMappingURL=meta.js.map