@wix/auto_sdk_ecom_checkout 1.0.16 → 1.0.18

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