@ecomiq/core 0.1.8 → 1.0.0

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 (274) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +39 -2
  3. package/dist/_virtual/_rolldown/runtime-C6LprzCP.cjs +22 -0
  4. package/dist/api.cjs +117 -102
  5. package/dist/api.d.cts +33 -37
  6. package/dist/api.d.ts +33 -37
  7. package/dist/api.js +116 -100
  8. package/dist/client.cjs +499 -1681
  9. package/dist/client.d.cts +156 -15
  10. package/dist/client.d.ts +156 -15
  11. package/dist/client.js +500 -1680
  12. package/dist/index.cjs +333 -2108
  13. package/dist/index.d.cts +53 -1117
  14. package/dist/index.d.ts +53 -1117
  15. package/dist/index.js +52 -1910
  16. package/dist/libs/bounded-read-cache-Abmb5VnJ.js +41 -0
  17. package/dist/libs/bounded-read-cache-D4644LJo.cjs +41 -0
  18. package/dist/libs/catalog-link-key-B7l5KZsF.js +9 -0
  19. package/dist/libs/catalog-link-key-CZTHJBGD.cjs +9 -0
  20. package/dist/libs/catalog-link-key.d.cts +2 -0
  21. package/dist/libs/catalog-link-key.d.ts +2 -0
  22. package/dist/libs/graphql-_6Y8lR_Q.js +49 -0
  23. package/dist/libs/graphql-selection-Cj51WkJn.cjs +21 -0
  24. package/dist/libs/graphql-selection-H1RMh6VD.js +21 -0
  25. package/dist/libs/graphql-selection.d.cts +3 -0
  26. package/dist/libs/graphql-selection.d.ts +3 -0
  27. package/dist/libs/graphql-wJH7HaQU.cjs +50 -0
  28. package/dist/libs/graphql.d.cts +24 -0
  29. package/dist/libs/graphql.d.ts +24 -0
  30. package/dist/models/amounts-cKBCecl7.js +5 -0
  31. package/dist/models/amounts-lmg89eJQ.cjs +4 -0
  32. package/dist/models/articles-C-4JvT2Z.js +27 -0
  33. package/dist/models/articles-xHCXLKDK.cjs +30 -0
  34. package/dist/models/articles.d.cts +46 -0
  35. package/dist/models/articles.d.ts +46 -0
  36. package/dist/models/catalog-links-BzJeyBy4.js +80 -0
  37. package/dist/models/catalog-links-c4LADGf_.cjs +88 -0
  38. package/dist/models/catalog-links.d.cts +39 -0
  39. package/dist/models/catalog-links.d.ts +39 -0
  40. package/dist/models/categories-CKkJY8_P.js +42 -0
  41. package/dist/models/categories-DZ5i5kwi.cjs +45 -0
  42. package/dist/models/categories.d.cts +54 -0
  43. package/dist/models/categories.d.ts +54 -0
  44. package/dist/models/collections.cjs +13 -24
  45. package/dist/models/collections.d.cts +23 -56
  46. package/dist/models/collections.d.ts +23 -56
  47. package/dist/models/collections.js +12 -22
  48. package/dist/models/complaint-book-D5INpuI2.cjs +64 -0
  49. package/dist/models/complaint-book-QpQZe7Xl.js +58 -0
  50. package/dist/models/complaint-book.d.cts +71 -0
  51. package/dist/models/complaint-book.d.ts +71 -0
  52. package/dist/models/customer-address.cjs +39 -32
  53. package/dist/models/customer-address.d.cts +59 -158
  54. package/dist/models/customer-address.d.ts +59 -158
  55. package/dist/models/customer-address.js +38 -30
  56. package/dist/models/customer-order.cjs +181 -136
  57. package/dist/models/customer-order.d.cts +430 -862
  58. package/dist/models/customer-order.d.ts +430 -862
  59. package/dist/models/customer-order.js +178 -135
  60. package/dist/models/customer-profile.cjs +121 -112
  61. package/dist/models/customer-profile.d.cts +90 -175
  62. package/dist/models/customer-profile.d.ts +90 -175
  63. package/dist/models/customer-profile.js +121 -110
  64. package/dist/models/customer-registration-C13knqyv.js +28 -0
  65. package/dist/models/customer-registration-EZ0yZgGr.cjs +31 -0
  66. package/dist/models/customer-registration.d.cts +66 -0
  67. package/dist/models/customer-registration.d.ts +66 -0
  68. package/dist/models/customer-session-BiX0TXhO.js +41 -0
  69. package/dist/models/customer-session-JeQiC8Yx.cjs +45 -0
  70. package/dist/models/customer-session.d.cts +61 -0
  71. package/dist/models/customer-session.d.ts +61 -0
  72. package/dist/models/geo.cjs +52 -51
  73. package/dist/models/geo.d.cts +141 -270
  74. package/dist/models/geo.d.ts +141 -270
  75. package/dist/models/geo.js +51 -49
  76. package/dist/models/ids.cjs +9 -13
  77. package/dist/models/ids.d.cts +9 -12
  78. package/dist/models/ids.d.ts +9 -12
  79. package/dist/models/ids.js +8 -12
  80. package/dist/models/order-draft-CnHJ0btL.js +37 -0
  81. package/dist/models/order-draft-PFBZfRRR.cjs +39 -0
  82. package/dist/models/order-draft.d.cts +51 -0
  83. package/dist/models/order-draft.d.ts +51 -0
  84. package/dist/models/order-review--xGlZKtS.cjs +18 -0
  85. package/dist/models/order-review-egGeCaqB.js +17 -0
  86. package/dist/models/order-review.d.cts +22 -0
  87. package/dist/models/order-review.d.ts +22 -0
  88. package/dist/models/order-status-CS_OeSPY.cjs +66 -0
  89. package/dist/models/order-status-CgaLkU0M.js +60 -0
  90. package/dist/models/order-status.d.cts +298 -0
  91. package/dist/models/order-status.d.ts +298 -0
  92. package/dist/models/payment-methods--VUUZpMz.js +17 -0
  93. package/dist/models/payment-methods-CmK08zBM.cjs +19 -0
  94. package/dist/models/payment-methods.d.cts +28 -0
  95. package/dist/models/payment-methods.d.ts +28 -0
  96. package/dist/models/products.cjs +214 -200
  97. package/dist/models/products.d.cts +616 -1359
  98. package/dist/models/products.d.ts +616 -1359
  99. package/dist/models/products.js +210 -192
  100. package/dist/models/search.cjs +15 -202
  101. package/dist/models/search.d.cts +21 -51
  102. package/dist/models/search.d.ts +21 -51
  103. package/dist/models/search.js +14 -200
  104. package/dist/models/sellers.cjs +44 -0
  105. package/dist/models/sellers.d.cts +82 -0
  106. package/dist/models/sellers.d.ts +82 -0
  107. package/dist/models/sellers.js +38 -0
  108. package/dist/models/settings.cjs +205 -238
  109. package/dist/models/settings.d.cts +862 -6949
  110. package/dist/models/settings.d.ts +862 -6949
  111. package/dist/models/settings.js +213 -241
  112. package/dist/models/storefront-cart.cjs +143 -129
  113. package/dist/models/storefront-cart.d.cts +255 -713
  114. package/dist/models/storefront-cart.d.ts +255 -713
  115. package/dist/models/storefront-cart.js +140 -127
  116. package/dist/models/storefront-checkout.cjs +212 -298
  117. package/dist/models/storefront-checkout.d.cts +656 -2441
  118. package/dist/models/storefront-checkout.d.ts +656 -2441
  119. package/dist/models/storefront-checkout.js +208 -298
  120. package/dist/models/storefront-reviews.cjs +62 -226
  121. package/dist/models/storefront-reviews.d.cts +73 -141
  122. package/dist/models/storefront-reviews.d.ts +73 -141
  123. package/dist/models/storefront-reviews.js +59 -225
  124. package/dist/models/tracking-CiIAhQW0.js +33 -0
  125. package/dist/models/tracking-wNyzQ6Bp.cjs +36 -0
  126. package/dist/models/tracking.d.cts +26 -0
  127. package/dist/models/tracking.d.ts +26 -0
  128. package/dist/models/urls-B0ZODOwH.cjs +35 -0
  129. package/dist/models/urls-Dt_dTt4Q.js +33 -0
  130. package/dist/models/urls.d.cts +201 -0
  131. package/dist/models/urls.d.ts +201 -0
  132. package/dist/redirects.cjs +113 -0
  133. package/dist/redirects.d.cts +11 -0
  134. package/dist/redirects.d.ts +11 -0
  135. package/dist/redirects.js +108 -0
  136. package/dist/services/article.service-DBsOvflH.js +10 -0
  137. package/dist/services/article.service-zmTkbbPV.cjs +11 -0
  138. package/dist/services/article.service.d.cts +4 -0
  139. package/dist/services/article.service.d.ts +4 -0
  140. package/dist/services/cart.service-B0D8s6jI.cjs +37 -0
  141. package/dist/services/cart.service-yMCz9oQP.js +33 -0
  142. package/dist/services/cart.service.d.cts +527 -0
  143. package/dist/services/cart.service.d.ts +527 -0
  144. package/dist/services/catalog-link.service-BQ2d-EPX.js +8 -0
  145. package/dist/services/catalog-link.service-DiB-OVjn.cjs +8 -0
  146. package/dist/services/category.service-8tieYX2r.js +6 -0
  147. package/dist/services/category.service-BsSJZV2B.cjs +6 -0
  148. package/dist/services/checkout.service-CC-3tm2y.js +60 -0
  149. package/dist/services/checkout.service-CG8KrDNY.cjs +69 -0
  150. package/dist/services/checkout.service.d.cts +439 -0
  151. package/dist/services/checkout.service.d.ts +439 -0
  152. package/dist/services/collection.service-C4QETpuI.js +11 -0
  153. package/dist/services/collection.service-DHGN3rhs.cjs +12 -0
  154. package/dist/services/complaint-book.service-C7TxltQe.cjs +13 -0
  155. package/dist/services/complaint-book.service-DXiVyKdD.js +12 -0
  156. package/dist/services/complaint-book.service.d.cts +4 -0
  157. package/dist/services/complaint-book.service.d.ts +4 -0
  158. package/dist/services/customer-address.service-Ca4qla_R.cjs +51 -0
  159. package/dist/services/customer-address.service-xEThx7cQ.js +47 -0
  160. package/dist/services/customer-address.service.d.cts +19 -0
  161. package/dist/services/customer-address.service.d.ts +19 -0
  162. package/dist/services/customer-order.service-DLGgT0xa.cjs +54 -0
  163. package/dist/services/customer-order.service-qHoRBuyX.js +51 -0
  164. package/dist/services/customer-order.service.d.cts +34 -0
  165. package/dist/services/customer-order.service.d.ts +34 -0
  166. package/dist/services/customer-registration.service-C3BNyCHP.cjs +10 -0
  167. package/dist/services/customer-registration.service-CxcWD2hf.js +9 -0
  168. package/dist/services/customer-registration.service.d.cts +5 -0
  169. package/dist/services/customer-registration.service.d.ts +5 -0
  170. package/dist/services/customer-session.service-4YgfbWRB.js +16 -0
  171. package/dist/services/customer-session.service-Bd8pLC2v.cjs +19 -0
  172. package/dist/services/customer.service-BM0NrOxP.cjs +26 -0
  173. package/dist/services/customer.service-BoU6l2-R.js +25 -0
  174. package/dist/services/customer.service.d.cts +10 -0
  175. package/dist/services/customer.service.d.ts +10 -0
  176. package/dist/services/geo.service-C32R7N8W.js +39 -0
  177. package/dist/services/geo.service-JeTT3Wun.cjs +42 -0
  178. package/dist/services/geo.service.d.cts +10 -0
  179. package/dist/services/geo.service.d.ts +10 -0
  180. package/dist/services/layout.service-BkvLzl1g.cjs +50 -0
  181. package/dist/services/layout.service-DmbeMOkK.js +50 -0
  182. package/dist/services/layout.service.d.cts +9 -0
  183. package/dist/services/layout.service.d.ts +9 -0
  184. package/dist/services/order-draft.service-D9gy-OPr.cjs +14 -0
  185. package/dist/services/order-draft.service-DYPR_pcV.js +13 -0
  186. package/dist/services/order-draft.service.d.cts +4 -0
  187. package/dist/services/order-draft.service.d.ts +4 -0
  188. package/dist/services/order-review.service-BEr-FB6_.cjs +11 -0
  189. package/dist/services/order-review.service-PdBPUsxE.js +11 -0
  190. package/dist/services/order-review.service.d.cts +7 -0
  191. package/dist/services/order-review.service.d.ts +7 -0
  192. package/dist/services/order-status.service-Cn7dsaJo.cjs +26 -0
  193. package/dist/services/order-status.service-MC9hVpP-.js +23 -0
  194. package/dist/services/order-status.service.d.cts +16 -0
  195. package/dist/services/order-status.service.d.ts +16 -0
  196. package/dist/services/page.service-CWhWCjMQ.js +7 -0
  197. package/dist/services/page.service-DmCSeMiR.cjs +7 -0
  198. package/dist/services/page.service.d.cts +4 -0
  199. package/dist/services/page.service.d.ts +4 -0
  200. package/dist/services/payment-method.service-CEt_nB4R.cjs +7 -0
  201. package/dist/services/payment-method.service-CjKbAsOh.js +7 -0
  202. package/dist/services/payment-method.service.d.cts +4 -0
  203. package/dist/services/payment-method.service.d.ts +4 -0
  204. package/dist/services/product.service-B05Qmbuh.js +35 -0
  205. package/dist/services/product.service-B7OFZWB1.cjs +37 -0
  206. package/dist/services/product.service.d.cts +231 -0
  207. package/dist/services/product.service.d.ts +231 -0
  208. package/dist/services/review.service-CO2icjpu.cjs +46 -0
  209. package/dist/services/review.service-De1YkhFp.js +43 -0
  210. package/dist/services/review.service.d.cts +28 -0
  211. package/dist/services/review.service.d.ts +28 -0
  212. package/dist/services/search.service-Bx1zbTHJ.cjs +10 -0
  213. package/dist/services/search.service-DSBMhaSY.js +10 -0
  214. package/dist/services/search.service.d.cts +9 -0
  215. package/dist/services/search.service.d.ts +9 -0
  216. package/dist/services/seller.service-D11WHhbC.cjs +10 -0
  217. package/dist/services/seller.service-DUptDTv4.js +9 -0
  218. package/dist/services/seller.service.d.cts +42 -0
  219. package/dist/services/seller.service.d.ts +42 -0
  220. package/dist/services/tracking.service-CPK1B69N.js +11 -0
  221. package/dist/services/tracking.service-DqOoi8qr.cjs +11 -0
  222. package/dist/services/tracking.service.d.cts +7 -0
  223. package/dist/services/tracking.service.d.ts +7 -0
  224. package/dist/services/url.service-B-nC14Ue.cjs +19 -0
  225. package/dist/services/url.service-CLW0Tc7S.js +18 -0
  226. package/dist/storefront-cache-revision.cjs +23 -0
  227. package/dist/storefront-cache-revision.d.cts +16 -0
  228. package/dist/storefront-cache-revision.d.ts +16 -0
  229. package/dist/storefront-cache-revision.js +17 -0
  230. package/dist/storefront-routes.cjs +14 -0
  231. package/dist/storefront-routes.d.cts +11 -0
  232. package/dist/storefront-routes.d.ts +11 -0
  233. package/dist/storefront-routes.js +12 -0
  234. package/dist/utils-CDEC5xcY.cjs +139 -0
  235. package/dist/utils-DK7qa54o.js +136 -0
  236. package/dist/utils.d.cts +3 -0
  237. package/dist/utils.d.ts +3 -0
  238. package/dist/video-links-CbRO0m8V.js +47 -0
  239. package/dist/video-links-ClryQjPH.cjs +47 -0
  240. package/dist/video-links.d.cts +7 -0
  241. package/dist/video-links.d.ts +7 -0
  242. package/package.json +28 -11
  243. package/dist/api.cjs.map +0 -1
  244. package/dist/api.js.map +0 -1
  245. package/dist/client-4ZTG2RZ3.d.ts +0 -195
  246. package/dist/client-BpX4yR6S.d.cts +0 -195
  247. package/dist/client.cjs.map +0 -1
  248. package/dist/client.js.map +0 -1
  249. package/dist/index.cjs.map +0 -1
  250. package/dist/index.js.map +0 -1
  251. package/dist/models/collections.cjs.map +0 -1
  252. package/dist/models/collections.js.map +0 -1
  253. package/dist/models/customer-address.cjs.map +0 -1
  254. package/dist/models/customer-address.js.map +0 -1
  255. package/dist/models/customer-order.cjs.map +0 -1
  256. package/dist/models/customer-order.js.map +0 -1
  257. package/dist/models/customer-profile.cjs.map +0 -1
  258. package/dist/models/customer-profile.js.map +0 -1
  259. package/dist/models/geo.cjs.map +0 -1
  260. package/dist/models/geo.js.map +0 -1
  261. package/dist/models/ids.cjs.map +0 -1
  262. package/dist/models/ids.js.map +0 -1
  263. package/dist/models/products.cjs.map +0 -1
  264. package/dist/models/products.js.map +0 -1
  265. package/dist/models/search.cjs.map +0 -1
  266. package/dist/models/search.js.map +0 -1
  267. package/dist/models/settings.cjs.map +0 -1
  268. package/dist/models/settings.js.map +0 -1
  269. package/dist/models/storefront-cart.cjs.map +0 -1
  270. package/dist/models/storefront-cart.js.map +0 -1
  271. package/dist/models/storefront-checkout.cjs.map +0 -1
  272. package/dist/models/storefront-checkout.js.map +0 -1
  273. package/dist/models/storefront-reviews.cjs.map +0 -1
  274. package/dist/models/storefront-reviews.js.map +0 -1
@@ -1,2494 +1,709 @@
1
- import { z } from 'zod';
2
-
3
- type CheckoutMetadataValue = string | number | boolean | null | CheckoutMetadataValue[] | {
4
- [key: string]: CheckoutMetadataValue;
1
+ import { z } from "zod";
2
+ export type CheckoutMetadataValue = string | number | boolean | null | CheckoutMetadataValue[] | {
3
+ [key: string]: CheckoutMetadataValue;
5
4
  };
6
- declare const CheckoutMetadataValueSchema: z.ZodType<CheckoutMetadataValue>;
7
- declare const CartBuyerParamsSchema: z.ZodObject<{
8
- cartId: z.ZodUnion<[z.ZodString, z.ZodString]>;
9
- email: z.ZodString;
10
- firstName: z.ZodString;
11
- lastName: z.ZodString;
12
- phone: z.ZodString;
13
- }, "strip", z.ZodTypeAny, {
14
- phone: string;
15
- email: string;
16
- firstName: string;
17
- lastName: string;
18
- cartId: string;
19
- }, {
20
- phone: string;
21
- email: string;
22
- firstName: string;
23
- lastName: string;
24
- cartId: string;
25
- }>;
26
- type CartBuyerParams = z.input<typeof CartBuyerParamsSchema>;
27
- declare const CartAddressWriteSchema: z.ZodObject<{
5
+ export declare const CheckoutMetadataValueSchema: z.ZodType<CheckoutMetadataValue>;
6
+ export declare const CartBuyerParamsSchema: z.ZodObject<{
7
+ cartToken: z.ZodString;
8
+ email: z.ZodString;
9
+ firstName: z.ZodString;
10
+ lastName: z.ZodString;
11
+ phone: z.ZodString;
12
+ identificationType: z.ZodOptional<z.ZodNullable<z.ZodString>>;
13
+ identificationCountryCode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
14
+ identificationNumber: z.ZodOptional<z.ZodNullable<z.ZodString>>;
15
+ entityTaxId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
16
+ entityName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
17
+ invoiceType: z.ZodOptional<z.ZodEnum<{
18
+ invoice: "invoice";
19
+ receipt: "receipt";
20
+ ticket: "ticket";
21
+ }>>;
22
+ }, z.core.$strip>;
23
+ export type CartBuyerParams = z.input<typeof CartBuyerParamsSchema>;
24
+ export declare const CartAddressWriteSchema: z.ZodObject<{
25
+ name: z.ZodString;
26
+ address1: z.ZodString;
27
+ city: z.ZodString;
28
+ countryCode: z.ZodString;
29
+ company: z.ZodOptional<z.ZodNullable<z.ZodString>>;
30
+ address2: z.ZodOptional<z.ZodNullable<z.ZodString>>;
31
+ department: z.ZodOptional<z.ZodNullable<z.ZodString>>;
32
+ province: z.ZodOptional<z.ZodNullable<z.ZodString>>;
33
+ postalCode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
34
+ district: z.ZodOptional<z.ZodNullable<z.ZodString>>;
35
+ departmentCode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
36
+ provinceCode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
37
+ districtCode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
38
+ phone: z.ZodOptional<z.ZodNullable<z.ZodString>>;
39
+ latitude: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
40
+ longitude: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
41
+ }, z.core.$strip>;
42
+ export type CartAddressWrite = z.input<typeof CartAddressWriteSchema>;
43
+ export declare const CartAddressesParamsSchema: z.ZodObject<{
44
+ cartToken: z.ZodString;
45
+ shippingAddress: z.ZodOptional<z.ZodObject<{
46
+ name: z.ZodString;
47
+ address1: z.ZodString;
48
+ city: z.ZodString;
49
+ countryCode: z.ZodString;
50
+ company: z.ZodOptional<z.ZodNullable<z.ZodString>>;
51
+ address2: z.ZodOptional<z.ZodNullable<z.ZodString>>;
52
+ department: z.ZodOptional<z.ZodNullable<z.ZodString>>;
53
+ province: z.ZodOptional<z.ZodNullable<z.ZodString>>;
54
+ postalCode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
55
+ district: z.ZodOptional<z.ZodNullable<z.ZodString>>;
56
+ departmentCode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
57
+ provinceCode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
58
+ districtCode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
59
+ phone: z.ZodOptional<z.ZodNullable<z.ZodString>>;
60
+ latitude: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
61
+ longitude: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
62
+ }, z.core.$strip>>;
63
+ billingAddress: z.ZodOptional<z.ZodObject<{
28
64
  name: z.ZodString;
29
65
  address1: z.ZodString;
30
66
  city: z.ZodString;
31
67
  countryCode: z.ZodString;
32
68
  company: z.ZodOptional<z.ZodNullable<z.ZodString>>;
33
69
  address2: z.ZodOptional<z.ZodNullable<z.ZodString>>;
70
+ department: z.ZodOptional<z.ZodNullable<z.ZodString>>;
34
71
  province: z.ZodOptional<z.ZodNullable<z.ZodString>>;
35
72
  postalCode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
36
73
  district: z.ZodOptional<z.ZodNullable<z.ZodString>>;
74
+ departmentCode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
75
+ provinceCode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
76
+ districtCode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
37
77
  phone: z.ZodOptional<z.ZodNullable<z.ZodString>>;
38
78
  latitude: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
39
79
  longitude: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
40
- geo: z.ZodOptional<z.ZodNullable<z.ZodObject<{
41
- departmentCode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
42
- provinceCode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
43
- districtCode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
44
- }, "strip", z.ZodTypeAny, {
45
- departmentCode?: string | null | undefined;
46
- provinceCode?: string | null | undefined;
47
- districtCode?: string | null | undefined;
48
- }, {
49
- departmentCode?: string | null | undefined;
50
- provinceCode?: string | null | undefined;
51
- districtCode?: string | null | undefined;
52
- }>>>;
53
- }, "strip", z.ZodTypeAny, {
54
- name: string;
55
- address1: string;
56
- city: string;
57
- countryCode: string;
58
- company?: string | null | undefined;
59
- address2?: string | null | undefined;
60
- province?: string | null | undefined;
61
- postalCode?: string | null | undefined;
62
- district?: string | null | undefined;
63
- phone?: string | null | undefined;
64
- latitude?: number | null | undefined;
65
- longitude?: number | null | undefined;
66
- geo?: {
67
- departmentCode?: string | null | undefined;
68
- provinceCode?: string | null | undefined;
69
- districtCode?: string | null | undefined;
70
- } | null | undefined;
71
- }, {
72
- name: string;
73
- address1: string;
74
- city: string;
75
- countryCode: string;
76
- company?: string | null | undefined;
77
- address2?: string | null | undefined;
78
- province?: string | null | undefined;
79
- postalCode?: string | null | undefined;
80
- district?: string | null | undefined;
81
- phone?: string | null | undefined;
82
- latitude?: number | null | undefined;
83
- longitude?: number | null | undefined;
84
- geo?: {
85
- departmentCode?: string | null | undefined;
86
- provinceCode?: string | null | undefined;
87
- districtCode?: string | null | undefined;
88
- } | null | undefined;
80
+ }, z.core.$strip>>;
81
+ }, z.core.$strip>;
82
+ export type CartAddressesParams = z.input<typeof CartAddressesParamsSchema>;
83
+ export declare const CheckoutModeSchema: z.ZodEnum<{
84
+ embedded: "embedded";
85
+ redirect: "redirect";
89
86
  }>;
90
- type CartAddressWrite = z.input<typeof CartAddressWriteSchema>;
91
- declare const CartAddressesParamsSchema: z.ZodObject<{
92
- cartId: z.ZodUnion<[z.ZodString, z.ZodString]>;
93
- shippingAddress: z.ZodObject<{
94
- name: z.ZodString;
95
- address1: z.ZodString;
96
- city: z.ZodString;
97
- countryCode: z.ZodString;
98
- company: z.ZodOptional<z.ZodNullable<z.ZodString>>;
99
- address2: z.ZodOptional<z.ZodNullable<z.ZodString>>;
100
- province: z.ZodOptional<z.ZodNullable<z.ZodString>>;
101
- postalCode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
102
- district: z.ZodOptional<z.ZodNullable<z.ZodString>>;
103
- phone: z.ZodOptional<z.ZodNullable<z.ZodString>>;
104
- latitude: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
105
- longitude: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
106
- geo: z.ZodOptional<z.ZodNullable<z.ZodObject<{
107
- departmentCode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
108
- provinceCode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
109
- districtCode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
110
- }, "strip", z.ZodTypeAny, {
111
- departmentCode?: string | null | undefined;
112
- provinceCode?: string | null | undefined;
113
- districtCode?: string | null | undefined;
114
- }, {
115
- departmentCode?: string | null | undefined;
116
- provinceCode?: string | null | undefined;
117
- districtCode?: string | null | undefined;
118
- }>>>;
119
- }, "strip", z.ZodTypeAny, {
120
- name: string;
121
- address1: string;
122
- city: string;
123
- countryCode: string;
124
- company?: string | null | undefined;
125
- address2?: string | null | undefined;
126
- province?: string | null | undefined;
127
- postalCode?: string | null | undefined;
128
- district?: string | null | undefined;
129
- phone?: string | null | undefined;
130
- latitude?: number | null | undefined;
131
- longitude?: number | null | undefined;
132
- geo?: {
133
- departmentCode?: string | null | undefined;
134
- provinceCode?: string | null | undefined;
135
- districtCode?: string | null | undefined;
136
- } | null | undefined;
137
- }, {
138
- name: string;
139
- address1: string;
140
- city: string;
141
- countryCode: string;
142
- company?: string | null | undefined;
143
- address2?: string | null | undefined;
144
- province?: string | null | undefined;
145
- postalCode?: string | null | undefined;
146
- district?: string | null | undefined;
147
- phone?: string | null | undefined;
148
- latitude?: number | null | undefined;
149
- longitude?: number | null | undefined;
150
- geo?: {
151
- departmentCode?: string | null | undefined;
152
- provinceCode?: string | null | undefined;
153
- districtCode?: string | null | undefined;
154
- } | null | undefined;
87
+ export type CheckoutMode = z.infer<typeof CheckoutModeSchema>;
88
+ export declare const PaymentBankAccountSchema: z.ZodObject<{
89
+ bankName: z.ZodString;
90
+ accountType: z.ZodString;
91
+ currencyCode: z.ZodString;
92
+ accountNumber: z.ZodString;
93
+ interbankAccountNumber: z.ZodOptional<z.ZodNullable<z.ZodString>>;
94
+ accountHolder: z.ZodString;
95
+ }, z.core.$strip>;
96
+ export type PaymentBankAccount = z.infer<typeof PaymentBankAccountSchema>;
97
+ export declare const CartPaymentMethodSchema: z.ZodObject<{
98
+ code: z.ZodString;
99
+ name: z.ZodString;
100
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
101
+ kind: z.ZodString;
102
+ providerMethodCode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
103
+ isActive: z.ZodBoolean;
104
+ isDefault: z.ZodBoolean;
105
+ isManual: z.ZodBoolean;
106
+ sortOrder: z.ZodNumber;
107
+ phoneNumber: z.ZodOptional<z.ZodNullable<z.ZodString>>;
108
+ accountHolder: z.ZodOptional<z.ZodNullable<z.ZodString>>;
109
+ qrImageUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
110
+ bankAccounts: z.ZodDefault<z.ZodArray<z.ZodObject<{
111
+ bankName: z.ZodString;
112
+ accountType: z.ZodString;
113
+ currencyCode: z.ZodString;
114
+ accountNumber: z.ZodString;
115
+ interbankAccountNumber: z.ZodOptional<z.ZodNullable<z.ZodString>>;
116
+ accountHolder: z.ZodString;
117
+ }, z.core.$strip>>>;
118
+ providerId: z.ZodNullable<z.ZodString>;
119
+ checkoutMode: z.ZodNullable<z.ZodEnum<{
120
+ embedded: "embedded";
121
+ redirect: "redirect";
122
+ }>>;
123
+ brands: z.ZodDefault<z.ZodArray<z.ZodString>>;
124
+ publicConfiguration: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
125
+ }, z.core.$strip>;
126
+ export type CartPaymentMethod = z.infer<typeof CartPaymentMethodSchema>;
127
+ export declare const CheckoutPaymentChargeSchema: z.ZodObject<{
128
+ currencyCode: z.ZodString;
129
+ amount: z.ZodNumber;
130
+ exchangeRate: z.ZodNumber;
131
+ }, z.core.$strip>;
132
+ export type CheckoutPaymentCharge = z.infer<typeof CheckoutPaymentChargeSchema>;
133
+ export declare const CartCheckoutPaymentMethodSchema: z.ZodObject<{
134
+ code: z.ZodString;
135
+ name: z.ZodString;
136
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
137
+ kind: z.ZodString;
138
+ providerMethodCode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
139
+ isActive: z.ZodBoolean;
140
+ isDefault: z.ZodBoolean;
141
+ isManual: z.ZodBoolean;
142
+ sortOrder: z.ZodNumber;
143
+ phoneNumber: z.ZodOptional<z.ZodNullable<z.ZodString>>;
144
+ accountHolder: z.ZodOptional<z.ZodNullable<z.ZodString>>;
145
+ qrImageUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
146
+ bankAccounts: z.ZodDefault<z.ZodArray<z.ZodObject<{
147
+ bankName: z.ZodString;
148
+ accountType: z.ZodString;
149
+ currencyCode: z.ZodString;
150
+ accountNumber: z.ZodString;
151
+ interbankAccountNumber: z.ZodOptional<z.ZodNullable<z.ZodString>>;
152
+ accountHolder: z.ZodString;
153
+ }, z.core.$strip>>>;
154
+ providerId: z.ZodNullable<z.ZodString>;
155
+ checkoutMode: z.ZodNullable<z.ZodEnum<{
156
+ embedded: "embedded";
157
+ redirect: "redirect";
158
+ }>>;
159
+ brands: z.ZodDefault<z.ZodArray<z.ZodString>>;
160
+ publicConfiguration: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
161
+ discountAmount: z.ZodNullable<z.ZodNumber>;
162
+ charge: z.ZodOptional<z.ZodNullable<z.ZodObject<{
163
+ currencyCode: z.ZodString;
164
+ amount: z.ZodNumber;
165
+ exchangeRate: z.ZodNumber;
166
+ }, z.core.$strip>>>;
167
+ }, z.core.$strip>;
168
+ export type CartCheckoutPaymentMethod = z.infer<typeof CartCheckoutPaymentMethodSchema>;
169
+ export declare const StorefrontOrderBumpSchema: z.ZodObject<{
170
+ id: z.ZodString;
171
+ productId: z.ZodString;
172
+ variantId: z.ZodString;
173
+ productName: z.ZodString;
174
+ variantName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
175
+ imageUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
176
+ currencyCode: z.ZodString;
177
+ regularPrice: z.ZodNumber;
178
+ offerPrice: z.ZodNumber;
179
+ maxPerCart: z.ZodNumber;
180
+ badgeLabel: z.ZodOptional<z.ZodNullable<z.ZodString>>;
181
+ callToAction: z.ZodString;
182
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
183
+ }, z.core.$strip>;
184
+ export type StorefrontOrderBump = z.infer<typeof StorefrontOrderBumpSchema>;
185
+ export declare const CartCheckoutReadParamsSchema: z.ZodObject<{
186
+ cartToken: z.ZodString;
187
+ }, z.core.$strip>;
188
+ export type CartCheckoutReadParams = z.input<typeof CartCheckoutReadParamsSchema>;
189
+ export declare const CartCheckoutReadResponseSchema: z.ZodObject<{
190
+ cart: z.ZodObject<{
191
+ id: z.ZodString;
192
+ token: z.ZodString;
193
+ cartNumber: z.ZodString;
194
+ email: z.ZodNullable<z.ZodString>;
195
+ phone: z.ZodNullable<z.ZodString>;
196
+ firstName: z.ZodNullable<z.ZodString>;
197
+ lastName: z.ZodNullable<z.ZodString>;
198
+ currencyCode: z.ZodString;
199
+ status: z.ZodEnum<{
200
+ abandoned: "abandoned";
201
+ cancelled: "cancelled";
202
+ completed: "completed";
203
+ expired: "expired";
204
+ failed: "failed";
205
+ inProgress: "inProgress";
206
+ pending: "pending";
155
207
  }>;
156
- billingAddress: z.ZodObject<{
157
- name: z.ZodString;
158
- address1: z.ZodString;
159
- city: z.ZodString;
160
- countryCode: z.ZodString;
161
- company: z.ZodOptional<z.ZodNullable<z.ZodString>>;
162
- address2: z.ZodOptional<z.ZodNullable<z.ZodString>>;
163
- province: z.ZodOptional<z.ZodNullable<z.ZodString>>;
164
- postalCode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
165
- district: z.ZodOptional<z.ZodNullable<z.ZodString>>;
166
- phone: z.ZodOptional<z.ZodNullable<z.ZodString>>;
167
- latitude: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
168
- longitude: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
169
- geo: z.ZodOptional<z.ZodNullable<z.ZodObject<{
170
- departmentCode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
171
- provinceCode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
172
- districtCode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
173
- }, "strip", z.ZodTypeAny, {
174
- departmentCode?: string | null | undefined;
175
- provinceCode?: string | null | undefined;
176
- districtCode?: string | null | undefined;
177
- }, {
178
- departmentCode?: string | null | undefined;
179
- provinceCode?: string | null | undefined;
180
- districtCode?: string | null | undefined;
181
- }>>>;
182
- }, "strip", z.ZodTypeAny, {
183
- name: string;
184
- address1: string;
185
- city: string;
186
- countryCode: string;
187
- company?: string | null | undefined;
188
- address2?: string | null | undefined;
189
- province?: string | null | undefined;
190
- postalCode?: string | null | undefined;
191
- district?: string | null | undefined;
192
- phone?: string | null | undefined;
193
- latitude?: number | null | undefined;
194
- longitude?: number | null | undefined;
195
- geo?: {
196
- departmentCode?: string | null | undefined;
197
- provinceCode?: string | null | undefined;
198
- districtCode?: string | null | undefined;
199
- } | null | undefined;
200
- }, {
201
- name: string;
202
- address1: string;
203
- city: string;
204
- countryCode: string;
205
- company?: string | null | undefined;
206
- address2?: string | null | undefined;
207
- province?: string | null | undefined;
208
- postalCode?: string | null | undefined;
209
- district?: string | null | undefined;
210
- phone?: string | null | undefined;
211
- latitude?: number | null | undefined;
212
- longitude?: number | null | undefined;
213
- geo?: {
214
- departmentCode?: string | null | undefined;
215
- provinceCode?: string | null | undefined;
216
- districtCode?: string | null | undefined;
217
- } | null | undefined;
208
+ completedAt: z.ZodNullable<z.ZodString>;
209
+ shippingAddress: z.ZodNullable<z.ZodObject<{
210
+ name: z.ZodNullable<z.ZodString>;
211
+ address1: z.ZodString;
212
+ city: z.ZodString;
213
+ countryCode: z.ZodString;
214
+ company: z.ZodNullable<z.ZodString>;
215
+ address2: z.ZodNullable<z.ZodString>;
216
+ department: z.ZodOptional<z.ZodNullable<z.ZodString>>;
217
+ province: z.ZodNullable<z.ZodString>;
218
+ postalCode: z.ZodNullable<z.ZodString>;
219
+ district: z.ZodNullable<z.ZodString>;
220
+ phone: z.ZodNullable<z.ZodString>;
221
+ latitude: z.ZodNullable<z.ZodNumber>;
222
+ longitude: z.ZodNullable<z.ZodNumber>;
223
+ }, z.core.$strip>>;
224
+ billingAddress: z.ZodNullable<z.ZodObject<{
225
+ name: z.ZodNullable<z.ZodString>;
226
+ address1: z.ZodString;
227
+ city: z.ZodString;
228
+ countryCode: z.ZodString;
229
+ company: z.ZodNullable<z.ZodString>;
230
+ address2: z.ZodNullable<z.ZodString>;
231
+ department: z.ZodOptional<z.ZodNullable<z.ZodString>>;
232
+ province: z.ZodNullable<z.ZodString>;
233
+ postalCode: z.ZodNullable<z.ZodString>;
234
+ district: z.ZodNullable<z.ZodString>;
235
+ phone: z.ZodNullable<z.ZodString>;
236
+ latitude: z.ZodNullable<z.ZodNumber>;
237
+ longitude: z.ZodNullable<z.ZodNumber>;
238
+ }, z.core.$strip>>;
239
+ promotionCodes: z.ZodArray<z.ZodString>;
240
+ items: z.ZodArray<z.ZodObject<{
241
+ id: z.ZodString;
242
+ productId: z.ZodNullable<z.ZodString>;
243
+ title: z.ZodString;
244
+ variantLabel: z.ZodNullable<z.ZodString>;
245
+ productHandle: z.ZodNullable<z.ZodString>;
246
+ productUrl: z.ZodNullable<z.ZodString>;
247
+ thumbnail: z.ZodNullable<z.ZodString>;
248
+ quantity: z.ZodNumber;
249
+ variantId: z.ZodNullable<z.ZodString>;
250
+ variantSku: z.ZodNullable<z.ZodString>;
251
+ unitPrice: z.ZodNumber;
252
+ compareAtUnitPrice: z.ZodNullable<z.ZodNumber>;
253
+ bundleItems: z.ZodArray<z.ZodObject<{
254
+ productId: z.ZodString;
255
+ variantId: z.ZodString;
256
+ productName: z.ZodString;
257
+ variantName: z.ZodNullable<z.ZodString>;
258
+ sku: z.ZodNullable<z.ZodString>;
259
+ brand: z.ZodNullable<z.ZodString>;
260
+ imageUrl: z.ZodNullable<z.ZodString>;
261
+ quantity: z.ZodNumber;
262
+ }, z.core.$strip>>;
263
+ requiresShipping: z.ZodBoolean;
264
+ sellerId: z.ZodNullable<z.ZodString>;
265
+ sellerName: z.ZodNullable<z.ZodString>;
266
+ orderBumpId: z.ZodNullable<z.ZodString>;
267
+ }, z.core.$strip>>;
268
+ shippingMethods: z.ZodArray<z.ZodObject<{
269
+ id: z.ZodString;
270
+ shippingMethodId: z.ZodNullable<z.ZodString>;
271
+ rateId: z.ZodNullable<z.ZodString>;
272
+ name: z.ZodString;
273
+ description: z.ZodNullable<z.ZodString>;
274
+ type: z.ZodEnum<{
275
+ express: "express";
276
+ localDelivery: "localDelivery";
277
+ pickup: "pickup";
278
+ regular: "regular";
279
+ sameDay: "sameDay";
280
+ }>;
281
+ target: z.ZodEnum<{
282
+ automatic: "automatic";
283
+ location: "location";
284
+ pickupPoint: "pickupPoint";
285
+ }>;
286
+ targetId: z.ZodNullable<z.ZodString>;
287
+ fulfillmentLocationId: z.ZodNullable<z.ZodString>;
288
+ total: z.ZodNumber;
289
+ estimatedDays: z.ZodNullable<z.ZodNumber>;
290
+ scheduledDate: z.ZodNullable<z.ZodString>;
291
+ scheduledTime: z.ZodNullable<z.ZodString>;
292
+ serviceCode: z.ZodNullable<z.ZodString>;
293
+ sellerId: z.ZodNullable<z.ZodString>;
294
+ shippingProfileId: z.ZodNullable<z.ZodString>;
295
+ }, z.core.$strip>>;
296
+ paymentMethodCode: z.ZodNullable<z.ZodString>;
297
+ totals: z.ZodObject<{
298
+ subtotal: z.ZodNumber;
299
+ discountTotal: z.ZodPipe<z.ZodNumber, z.ZodTransform<number, number>>;
300
+ shippingOriginalTotal: z.ZodNumber;
301
+ shippingTotal: z.ZodNumber;
302
+ taxTotal: z.ZodNumber;
303
+ warrantyTotal: z.ZodNumber;
304
+ total: z.ZodNumber;
305
+ }, z.core.$strip>;
306
+ invoiceType: z.ZodEnum<{
307
+ invoice: "invoice";
308
+ receipt: "receipt";
309
+ ticket: "ticket";
218
310
  }>;
219
- }, "strip", z.ZodTypeAny, {
220
- shippingAddress: {
221
- name: string;
222
- address1: string;
223
- city: string;
224
- countryCode: string;
225
- company?: string | null | undefined;
226
- address2?: string | null | undefined;
227
- province?: string | null | undefined;
228
- postalCode?: string | null | undefined;
229
- district?: string | null | undefined;
230
- phone?: string | null | undefined;
231
- latitude?: number | null | undefined;
232
- longitude?: number | null | undefined;
233
- geo?: {
234
- departmentCode?: string | null | undefined;
235
- provinceCode?: string | null | undefined;
236
- districtCode?: string | null | undefined;
237
- } | null | undefined;
238
- };
239
- billingAddress: {
240
- name: string;
241
- address1: string;
242
- city: string;
243
- countryCode: string;
244
- company?: string | null | undefined;
245
- address2?: string | null | undefined;
246
- province?: string | null | undefined;
247
- postalCode?: string | null | undefined;
248
- district?: string | null | undefined;
249
- phone?: string | null | undefined;
250
- latitude?: number | null | undefined;
251
- longitude?: number | null | undefined;
252
- geo?: {
253
- departmentCode?: string | null | undefined;
254
- provinceCode?: string | null | undefined;
255
- districtCode?: string | null | undefined;
256
- } | null | undefined;
257
- };
258
- cartId: string;
259
- }, {
260
- shippingAddress: {
261
- name: string;
262
- address1: string;
263
- city: string;
264
- countryCode: string;
265
- company?: string | null | undefined;
266
- address2?: string | null | undefined;
267
- province?: string | null | undefined;
268
- postalCode?: string | null | undefined;
269
- district?: string | null | undefined;
270
- phone?: string | null | undefined;
271
- latitude?: number | null | undefined;
272
- longitude?: number | null | undefined;
273
- geo?: {
274
- departmentCode?: string | null | undefined;
275
- provinceCode?: string | null | undefined;
276
- districtCode?: string | null | undefined;
277
- } | null | undefined;
278
- };
279
- billingAddress: {
280
- name: string;
281
- address1: string;
282
- city: string;
283
- countryCode: string;
284
- company?: string | null | undefined;
285
- address2?: string | null | undefined;
286
- province?: string | null | undefined;
287
- postalCode?: string | null | undefined;
288
- district?: string | null | undefined;
289
- phone?: string | null | undefined;
290
- latitude?: number | null | undefined;
291
- longitude?: number | null | undefined;
292
- geo?: {
293
- departmentCode?: string | null | undefined;
294
- provinceCode?: string | null | undefined;
295
- districtCode?: string | null | undefined;
296
- } | null | undefined;
297
- };
298
- cartId: string;
299
- }>;
300
- type CartAddressesParams = z.input<typeof CartAddressesParamsSchema>;
301
- declare const CartPaymentMethodSchema: z.ZodObject<{
302
- code: z.ZodString;
303
- name: z.ZodString;
304
- description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
305
- kind: z.ZodString;
306
- providerMethodCode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
307
- isActive: z.ZodBoolean;
308
- isDefault: z.ZodBoolean;
309
- isManual: z.ZodBoolean;
310
- sortOrder: z.ZodNumber;
311
- phoneNumber: z.ZodOptional<z.ZodNullable<z.ZodString>>;
312
- accountHolder: z.ZodOptional<z.ZodNullable<z.ZodString>>;
313
- qrImageUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
314
- }, "strip", z.ZodTypeAny, {
315
- code: string;
316
- name: string;
317
- kind: string;
318
- isActive: boolean;
319
- isDefault: boolean;
320
- isManual: boolean;
321
- sortOrder: number;
322
- description?: string | null | undefined;
323
- providerMethodCode?: string | null | undefined;
324
- phoneNumber?: string | null | undefined;
325
- accountHolder?: string | null | undefined;
326
- qrImageUrl?: string | null | undefined;
327
- }, {
328
- code: string;
329
- name: string;
330
- kind: string;
331
- isActive: boolean;
332
- isDefault: boolean;
333
- isManual: boolean;
334
- sortOrder: number;
335
- description?: string | null | undefined;
336
- providerMethodCode?: string | null | undefined;
337
- phoneNumber?: string | null | undefined;
338
- accountHolder?: string | null | undefined;
339
- qrImageUrl?: string | null | undefined;
340
- }>;
341
- type CartPaymentMethod = z.infer<typeof CartPaymentMethodSchema>;
342
- declare const StorefrontOrderBumpSchema: z.ZodObject<{
311
+ identificationType: z.ZodNullable<z.ZodString>;
312
+ identificationCountryCode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
313
+ identificationNumber: z.ZodNullable<z.ZodString>;
314
+ entityTaxId: z.ZodNullable<z.ZodString>;
315
+ entityName: z.ZodNullable<z.ZodString>;
316
+ }, z.core.$strip>;
317
+ paymentMethods: z.ZodObject<{
318
+ methods: z.ZodArray<z.ZodObject<{
319
+ code: z.ZodString;
320
+ name: z.ZodString;
321
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
322
+ kind: z.ZodString;
323
+ providerMethodCode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
324
+ isActive: z.ZodBoolean;
325
+ isDefault: z.ZodBoolean;
326
+ isManual: z.ZodBoolean;
327
+ sortOrder: z.ZodNumber;
328
+ phoneNumber: z.ZodOptional<z.ZodNullable<z.ZodString>>;
329
+ accountHolder: z.ZodOptional<z.ZodNullable<z.ZodString>>;
330
+ qrImageUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
331
+ bankAccounts: z.ZodDefault<z.ZodArray<z.ZodObject<{
332
+ bankName: z.ZodString;
333
+ accountType: z.ZodString;
334
+ currencyCode: z.ZodString;
335
+ accountNumber: z.ZodString;
336
+ interbankAccountNumber: z.ZodOptional<z.ZodNullable<z.ZodString>>;
337
+ accountHolder: z.ZodString;
338
+ }, z.core.$strip>>>;
339
+ providerId: z.ZodNullable<z.ZodString>;
340
+ checkoutMode: z.ZodNullable<z.ZodEnum<{
341
+ embedded: "embedded";
342
+ redirect: "redirect";
343
+ }>>;
344
+ brands: z.ZodDefault<z.ZodArray<z.ZodString>>;
345
+ publicConfiguration: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
346
+ discountAmount: z.ZodNullable<z.ZodNumber>;
347
+ charge: z.ZodOptional<z.ZodNullable<z.ZodObject<{
348
+ currencyCode: z.ZodString;
349
+ amount: z.ZodNumber;
350
+ exchangeRate: z.ZodNumber;
351
+ }, z.core.$strip>>>;
352
+ }, z.core.$strip>>;
353
+ }, z.core.$strip>;
354
+ orderBumps: z.ZodArray<z.ZodObject<{
343
355
  id: z.ZodString;
344
- productPublicId: z.ZodString;
345
- variantPublicId: z.ZodString;
356
+ productId: z.ZodString;
357
+ variantId: z.ZodString;
346
358
  productName: z.ZodString;
347
359
  variantName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
348
360
  imageUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
349
361
  currencyCode: z.ZodString;
350
362
  regularPrice: z.ZodNumber;
351
363
  offerPrice: z.ZodNumber;
364
+ maxPerCart: z.ZodNumber;
352
365
  badgeLabel: z.ZodOptional<z.ZodNullable<z.ZodString>>;
353
366
  callToAction: z.ZodString;
354
367
  description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
355
- }, "strip", z.ZodTypeAny, {
356
- id: string;
357
- productName: string;
358
- currencyCode: string;
359
- productPublicId: string;
360
- variantPublicId: string;
361
- regularPrice: number;
362
- offerPrice: number;
363
- callToAction: string;
364
- description?: string | null | undefined;
365
- imageUrl?: string | null | undefined;
366
- variantName?: string | null | undefined;
367
- badgeLabel?: string | null | undefined;
368
- }, {
369
- id: string;
370
- productName: string;
371
- currencyCode: string;
372
- productPublicId: string;
373
- variantPublicId: string;
374
- regularPrice: number;
375
- offerPrice: number;
376
- callToAction: string;
377
- description?: string | null | undefined;
378
- imageUrl?: string | null | undefined;
379
- variantName?: string | null | undefined;
380
- badgeLabel?: string | null | undefined;
381
- }>;
382
- type StorefrontOrderBump = z.infer<typeof StorefrontOrderBumpSchema>;
383
- declare const CartCheckoutReadParamsSchema: z.ZodObject<{
384
- cartId: z.ZodUnion<[z.ZodString, z.ZodString]>;
385
- }, "strip", z.ZodTypeAny, {
386
- cartId: string;
387
- }, {
388
- cartId: string;
389
- }>;
390
- type CartCheckoutReadParams = z.input<typeof CartCheckoutReadParamsSchema>;
391
- declare const CartCheckoutReadResponseSchema: z.ZodObject<{
392
- cart: z.ZodObject<{
393
- id: z.ZodUnion<[z.ZodString, z.ZodString]>;
394
- cartNumber: z.ZodString;
395
- email: z.ZodNullable<z.ZodString>;
396
- phone: z.ZodNullable<z.ZodString>;
397
- firstName: z.ZodNullable<z.ZodString>;
398
- lastName: z.ZodNullable<z.ZodString>;
399
- currencyCode: z.ZodString;
400
- status: z.ZodEnum<["inProgress", "pending", "completed", "abandoned", "cancelled", "expired", "failed"]>;
401
- completedAt: z.ZodNullable<z.ZodString>;
402
- shippingAddress: z.ZodNullable<z.ZodObject<{
403
- name: z.ZodNullable<z.ZodString>;
404
- address1: z.ZodString;
405
- city: z.ZodString;
406
- countryCode: z.ZodString;
407
- company: z.ZodNullable<z.ZodString>;
408
- address2: z.ZodNullable<z.ZodString>;
409
- province: z.ZodNullable<z.ZodString>;
410
- postalCode: z.ZodNullable<z.ZodString>;
411
- district: z.ZodNullable<z.ZodString>;
412
- phone: z.ZodNullable<z.ZodString>;
413
- latitude: z.ZodNullable<z.ZodNumber>;
414
- longitude: z.ZodNullable<z.ZodNumber>;
415
- }, "strip", z.ZodTypeAny, {
416
- name: string | null;
417
- address1: string;
418
- city: string;
419
- countryCode: string;
420
- company: string | null;
421
- address2: string | null;
422
- province: string | null;
423
- postalCode: string | null;
424
- district: string | null;
425
- phone: string | null;
426
- latitude: number | null;
427
- longitude: number | null;
428
- }, {
429
- name: string | null;
430
- address1: string;
431
- city: string;
432
- countryCode: string;
433
- company: string | null;
434
- address2: string | null;
435
- province: string | null;
436
- postalCode: string | null;
437
- district: string | null;
438
- phone: string | null;
439
- latitude: number | null;
440
- longitude: number | null;
441
- }>>;
442
- billingAddress: z.ZodNullable<z.ZodObject<{
443
- name: z.ZodNullable<z.ZodString>;
444
- address1: z.ZodString;
445
- city: z.ZodString;
446
- countryCode: z.ZodString;
447
- company: z.ZodNullable<z.ZodString>;
448
- address2: z.ZodNullable<z.ZodString>;
449
- province: z.ZodNullable<z.ZodString>;
450
- postalCode: z.ZodNullable<z.ZodString>;
451
- district: z.ZodNullable<z.ZodString>;
452
- phone: z.ZodNullable<z.ZodString>;
453
- latitude: z.ZodNullable<z.ZodNumber>;
454
- longitude: z.ZodNullable<z.ZodNumber>;
455
- }, "strip", z.ZodTypeAny, {
456
- name: string | null;
457
- address1: string;
458
- city: string;
459
- countryCode: string;
460
- company: string | null;
461
- address2: string | null;
462
- province: string | null;
463
- postalCode: string | null;
464
- district: string | null;
465
- phone: string | null;
466
- latitude: number | null;
467
- longitude: number | null;
468
- }, {
469
- name: string | null;
470
- address1: string;
471
- city: string;
472
- countryCode: string;
473
- company: string | null;
474
- address2: string | null;
475
- province: string | null;
476
- postalCode: string | null;
477
- district: string | null;
478
- phone: string | null;
479
- latitude: number | null;
480
- longitude: number | null;
481
- }>>;
482
- promotionCodes: z.ZodArray<z.ZodString, "many">;
483
- items: z.ZodArray<z.ZodObject<{
484
- id: z.ZodUnion<[z.ZodString, z.ZodString]>;
485
- productId: z.ZodNumber;
486
- title: z.ZodString;
487
- variantLabel: z.ZodNullable<z.ZodString>;
488
- productHandle: z.ZodNullable<z.ZodString>;
489
- thumbnail: z.ZodNullable<z.ZodString>;
490
- quantity: z.ZodNumber;
491
- variantId: z.ZodNumber;
492
- variantSku: z.ZodNullable<z.ZodString>;
493
- unitPrice: z.ZodNumber;
494
- compareAtUnitPrice: z.ZodNullable<z.ZodNumber>;
495
- bundleItems: z.ZodArray<z.ZodObject<{
496
- productId: z.ZodNumber;
497
- variantId: z.ZodNumber;
498
- productName: z.ZodString;
499
- variantName: z.ZodNullable<z.ZodString>;
500
- sku: z.ZodNullable<z.ZodString>;
501
- brand: z.ZodNullable<z.ZodString>;
502
- imageUrl: z.ZodNullable<z.ZodString>;
503
- quantity: z.ZodNumber;
504
- }, "strip", z.ZodTypeAny, {
505
- imageUrl: string | null;
506
- brand: string | null;
507
- productId: number;
508
- sku: string | null;
509
- quantity: number;
510
- variantId: number;
511
- productName: string;
512
- variantName: string | null;
513
- }, {
514
- imageUrl: string | null;
515
- brand: string | null;
516
- productId: number;
517
- sku: string | null;
518
- quantity: number;
519
- variantId: number;
520
- productName: string;
521
- variantName: string | null;
522
- }>, "many">;
523
- }, "strip", z.ZodTypeAny, {
524
- id: string;
525
- productId: number;
526
- quantity: number;
527
- variantId: number;
528
- unitPrice: number;
529
- bundleItems: {
530
- imageUrl: string | null;
531
- brand: string | null;
532
- productId: number;
533
- sku: string | null;
534
- quantity: number;
535
- variantId: number;
536
- productName: string;
537
- variantName: string | null;
538
- }[];
539
- title: string;
540
- variantLabel: string | null;
541
- productHandle: string | null;
542
- thumbnail: string | null;
543
- variantSku: string | null;
544
- compareAtUnitPrice: number | null;
545
- }, {
546
- id: string;
547
- productId: number;
548
- quantity: number;
549
- variantId: number;
550
- unitPrice: number;
551
- bundleItems: {
552
- imageUrl: string | null;
553
- brand: string | null;
554
- productId: number;
555
- sku: string | null;
556
- quantity: number;
557
- variantId: number;
558
- productName: string;
559
- variantName: string | null;
560
- }[];
561
- title: string;
562
- variantLabel: string | null;
563
- productHandle: string | null;
564
- thumbnail: string | null;
565
- variantSku: string | null;
566
- compareAtUnitPrice: number | null;
567
- }>, "many">;
568
- shippingMethods: z.ZodArray<z.ZodObject<{
569
- id: z.ZodUnion<[z.ZodString, z.ZodString]>;
570
- shippingMethodId: z.ZodNullable<z.ZodUnion<[z.ZodString, z.ZodString]>>;
571
- rateId: z.ZodNullable<z.ZodUnion<[z.ZodString, z.ZodString]>>;
572
- name: z.ZodString;
573
- description: z.ZodNullable<z.ZodString>;
574
- total: z.ZodNumber;
575
- locationId: z.ZodNullable<z.ZodUnion<[z.ZodString, z.ZodString]>>;
576
- estimatedDays: z.ZodNullable<z.ZodNumber>;
577
- pickupPointId: z.ZodNullable<z.ZodUnion<[z.ZodString, z.ZodString]>>;
578
- scheduledDate: z.ZodNullable<z.ZodString>;
579
- scheduledTime: z.ZodNullable<z.ZodString>;
580
- serviceCode: z.ZodNullable<z.ZodString>;
581
- sellerId: z.ZodNullable<z.ZodUnion<[z.ZodString, z.ZodString]>>;
582
- shippingProfileId: z.ZodNullable<z.ZodUnion<[z.ZodString, z.ZodString]>>;
583
- }, "strip", z.ZodTypeAny, {
584
- id: string;
585
- name: string;
586
- description: string | null;
587
- sellerId: string | null;
588
- locationId: string | null;
589
- shippingMethodId: string | null;
590
- rateId: string | null;
591
- total: number;
592
- estimatedDays: number | null;
593
- pickupPointId: string | null;
594
- scheduledDate: string | null;
595
- scheduledTime: string | null;
596
- serviceCode: string | null;
597
- shippingProfileId: string | null;
598
- }, {
599
- id: string;
600
- name: string;
601
- description: string | null;
602
- sellerId: string | null;
603
- locationId: string | null;
604
- shippingMethodId: string | null;
605
- rateId: string | null;
606
- total: number;
607
- estimatedDays: number | null;
608
- pickupPointId: string | null;
609
- scheduledDate: string | null;
610
- scheduledTime: string | null;
611
- serviceCode: string | null;
612
- shippingProfileId: string | null;
613
- }>, "many">;
614
- totals: z.ZodObject<{
615
- subtotal: z.ZodNumber;
616
- discountTotal: z.ZodNumber;
617
- shippingOriginalTotal: z.ZodNumber;
618
- shippingTotal: z.ZodNumber;
619
- taxTotal: z.ZodNumber;
620
- warrantyTotal: z.ZodNumber;
621
- total: z.ZodNumber;
622
- }, "strip", z.ZodTypeAny, {
623
- total: number;
624
- subtotal: number;
625
- discountTotal: number;
626
- shippingOriginalTotal: number;
627
- shippingTotal: number;
628
- taxTotal: number;
629
- warrantyTotal: number;
630
- }, {
631
- total: number;
632
- subtotal: number;
633
- discountTotal: number;
634
- shippingOriginalTotal: number;
635
- shippingTotal: number;
636
- taxTotal: number;
637
- warrantyTotal: number;
638
- }>;
639
- }, "strip", z.ZodTypeAny, {
640
- status: "inProgress" | "pending" | "completed" | "abandoned" | "cancelled" | "expired" | "failed";
641
- id: string;
642
- phone: string | null;
643
- cartNumber: string;
644
- email: string | null;
645
- firstName: string | null;
646
- lastName: string | null;
647
- currencyCode: string;
648
- completedAt: string | null;
649
- shippingAddress: {
650
- name: string | null;
651
- address1: string;
652
- city: string;
653
- countryCode: string;
654
- company: string | null;
655
- address2: string | null;
656
- province: string | null;
657
- postalCode: string | null;
658
- district: string | null;
659
- phone: string | null;
660
- latitude: number | null;
661
- longitude: number | null;
662
- } | null;
663
- billingAddress: {
664
- name: string | null;
665
- address1: string;
666
- city: string;
667
- countryCode: string;
668
- company: string | null;
669
- address2: string | null;
670
- province: string | null;
671
- postalCode: string | null;
672
- district: string | null;
673
- phone: string | null;
674
- latitude: number | null;
675
- longitude: number | null;
676
- } | null;
677
- promotionCodes: string[];
678
- items: {
679
- id: string;
680
- productId: number;
681
- quantity: number;
682
- variantId: number;
683
- unitPrice: number;
684
- bundleItems: {
685
- imageUrl: string | null;
686
- brand: string | null;
687
- productId: number;
688
- sku: string | null;
689
- quantity: number;
690
- variantId: number;
691
- productName: string;
692
- variantName: string | null;
693
- }[];
694
- title: string;
695
- variantLabel: string | null;
696
- productHandle: string | null;
697
- thumbnail: string | null;
698
- variantSku: string | null;
699
- compareAtUnitPrice: number | null;
700
- }[];
701
- shippingMethods: {
702
- id: string;
703
- name: string;
704
- description: string | null;
705
- sellerId: string | null;
706
- locationId: string | null;
707
- shippingMethodId: string | null;
708
- rateId: string | null;
709
- total: number;
710
- estimatedDays: number | null;
711
- pickupPointId: string | null;
712
- scheduledDate: string | null;
713
- scheduledTime: string | null;
714
- serviceCode: string | null;
715
- shippingProfileId: string | null;
716
- }[];
717
- totals: {
718
- total: number;
719
- subtotal: number;
720
- discountTotal: number;
721
- shippingOriginalTotal: number;
722
- shippingTotal: number;
723
- taxTotal: number;
724
- warrantyTotal: number;
725
- };
726
- }, {
727
- status: "inProgress" | "pending" | "completed" | "abandoned" | "cancelled" | "expired" | "failed";
728
- id: string;
729
- phone: string | null;
730
- cartNumber: string;
731
- email: string | null;
732
- firstName: string | null;
733
- lastName: string | null;
734
- currencyCode: string;
735
- completedAt: string | null;
736
- shippingAddress: {
737
- name: string | null;
738
- address1: string;
739
- city: string;
740
- countryCode: string;
741
- company: string | null;
742
- address2: string | null;
743
- province: string | null;
744
- postalCode: string | null;
745
- district: string | null;
746
- phone: string | null;
747
- latitude: number | null;
748
- longitude: number | null;
749
- } | null;
750
- billingAddress: {
751
- name: string | null;
752
- address1: string;
753
- city: string;
754
- countryCode: string;
755
- company: string | null;
756
- address2: string | null;
757
- province: string | null;
758
- postalCode: string | null;
759
- district: string | null;
760
- phone: string | null;
761
- latitude: number | null;
762
- longitude: number | null;
763
- } | null;
764
- promotionCodes: string[];
765
- items: {
766
- id: string;
767
- productId: number;
768
- quantity: number;
769
- variantId: number;
770
- unitPrice: number;
771
- bundleItems: {
772
- imageUrl: string | null;
773
- brand: string | null;
774
- productId: number;
775
- sku: string | null;
776
- quantity: number;
777
- variantId: number;
778
- productName: string;
779
- variantName: string | null;
780
- }[];
781
- title: string;
782
- variantLabel: string | null;
783
- productHandle: string | null;
784
- thumbnail: string | null;
785
- variantSku: string | null;
786
- compareAtUnitPrice: number | null;
787
- }[];
788
- shippingMethods: {
789
- id: string;
790
- name: string;
791
- description: string | null;
792
- sellerId: string | null;
793
- locationId: string | null;
794
- shippingMethodId: string | null;
795
- rateId: string | null;
796
- total: number;
797
- estimatedDays: number | null;
798
- pickupPointId: string | null;
799
- scheduledDate: string | null;
800
- scheduledTime: string | null;
801
- serviceCode: string | null;
802
- shippingProfileId: string | null;
803
- }[];
804
- totals: {
805
- total: number;
806
- subtotal: number;
807
- discountTotal: number;
808
- shippingOriginalTotal: number;
809
- shippingTotal: number;
810
- taxTotal: number;
811
- warrantyTotal: number;
812
- };
813
- }>;
814
- paymentMethods: z.ZodObject<{
815
- methods: z.ZodArray<z.ZodObject<{
816
- code: z.ZodString;
817
- name: z.ZodString;
818
- description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
819
- kind: z.ZodString;
820
- providerMethodCode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
821
- isActive: z.ZodBoolean;
822
- isDefault: z.ZodBoolean;
823
- isManual: z.ZodBoolean;
824
- sortOrder: z.ZodNumber;
825
- phoneNumber: z.ZodOptional<z.ZodNullable<z.ZodString>>;
826
- accountHolder: z.ZodOptional<z.ZodNullable<z.ZodString>>;
827
- qrImageUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
828
- }, "strip", z.ZodTypeAny, {
829
- code: string;
830
- name: string;
831
- kind: string;
832
- isActive: boolean;
833
- isDefault: boolean;
834
- isManual: boolean;
835
- sortOrder: number;
836
- description?: string | null | undefined;
837
- providerMethodCode?: string | null | undefined;
838
- phoneNumber?: string | null | undefined;
839
- accountHolder?: string | null | undefined;
840
- qrImageUrl?: string | null | undefined;
841
- }, {
842
- code: string;
843
- name: string;
844
- kind: string;
845
- isActive: boolean;
846
- isDefault: boolean;
847
- isManual: boolean;
848
- sortOrder: number;
849
- description?: string | null | undefined;
850
- providerMethodCode?: string | null | undefined;
851
- phoneNumber?: string | null | undefined;
852
- accountHolder?: string | null | undefined;
853
- qrImageUrl?: string | null | undefined;
854
- }>, "many">;
855
- }, "strip", z.ZodTypeAny, {
856
- methods: {
857
- code: string;
858
- name: string;
859
- kind: string;
860
- isActive: boolean;
861
- isDefault: boolean;
862
- isManual: boolean;
863
- sortOrder: number;
864
- description?: string | null | undefined;
865
- providerMethodCode?: string | null | undefined;
866
- phoneNumber?: string | null | undefined;
867
- accountHolder?: string | null | undefined;
868
- qrImageUrl?: string | null | undefined;
869
- }[];
870
- }, {
871
- methods: {
872
- code: string;
873
- name: string;
874
- kind: string;
875
- isActive: boolean;
876
- isDefault: boolean;
877
- isManual: boolean;
878
- sortOrder: number;
879
- description?: string | null | undefined;
880
- providerMethodCode?: string | null | undefined;
881
- phoneNumber?: string | null | undefined;
882
- accountHolder?: string | null | undefined;
883
- qrImageUrl?: string | null | undefined;
884
- }[];
885
- }>;
886
- orderBumps: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
887
- id: z.ZodString;
888
- productPublicId: z.ZodString;
889
- variantPublicId: z.ZodString;
890
- productName: z.ZodString;
891
- variantName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
892
- imageUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
893
- currencyCode: z.ZodString;
894
- regularPrice: z.ZodNumber;
895
- offerPrice: z.ZodNumber;
896
- badgeLabel: z.ZodOptional<z.ZodNullable<z.ZodString>>;
897
- callToAction: z.ZodString;
898
- description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
899
- }, "strip", z.ZodTypeAny, {
900
- id: string;
901
- productName: string;
902
- currencyCode: string;
903
- productPublicId: string;
904
- variantPublicId: string;
905
- regularPrice: number;
906
- offerPrice: number;
907
- callToAction: string;
908
- description?: string | null | undefined;
909
- imageUrl?: string | null | undefined;
910
- variantName?: string | null | undefined;
911
- badgeLabel?: string | null | undefined;
912
- }, {
913
- id: string;
914
- productName: string;
915
- currencyCode: string;
916
- productPublicId: string;
917
- variantPublicId: string;
918
- regularPrice: number;
919
- offerPrice: number;
920
- callToAction: string;
921
- description?: string | null | undefined;
922
- imageUrl?: string | null | undefined;
923
- variantName?: string | null | undefined;
924
- badgeLabel?: string | null | undefined;
925
- }>, "many">>>;
926
- }, "strip", z.ZodTypeAny, {
927
- cart: {
928
- status: "inProgress" | "pending" | "completed" | "abandoned" | "cancelled" | "expired" | "failed";
929
- id: string;
930
- phone: string | null;
931
- cartNumber: string;
932
- email: string | null;
933
- firstName: string | null;
934
- lastName: string | null;
935
- currencyCode: string;
936
- completedAt: string | null;
937
- shippingAddress: {
938
- name: string | null;
939
- address1: string;
940
- city: string;
941
- countryCode: string;
942
- company: string | null;
943
- address2: string | null;
944
- province: string | null;
945
- postalCode: string | null;
946
- district: string | null;
947
- phone: string | null;
948
- latitude: number | null;
949
- longitude: number | null;
950
- } | null;
951
- billingAddress: {
952
- name: string | null;
953
- address1: string;
954
- city: string;
955
- countryCode: string;
956
- company: string | null;
957
- address2: string | null;
958
- province: string | null;
959
- postalCode: string | null;
960
- district: string | null;
961
- phone: string | null;
962
- latitude: number | null;
963
- longitude: number | null;
964
- } | null;
965
- promotionCodes: string[];
966
- items: {
967
- id: string;
968
- productId: number;
969
- quantity: number;
970
- variantId: number;
971
- unitPrice: number;
972
- bundleItems: {
973
- imageUrl: string | null;
974
- brand: string | null;
975
- productId: number;
976
- sku: string | null;
977
- quantity: number;
978
- variantId: number;
979
- productName: string;
980
- variantName: string | null;
981
- }[];
982
- title: string;
983
- variantLabel: string | null;
984
- productHandle: string | null;
985
- thumbnail: string | null;
986
- variantSku: string | null;
987
- compareAtUnitPrice: number | null;
988
- }[];
989
- shippingMethods: {
990
- id: string;
991
- name: string;
992
- description: string | null;
993
- sellerId: string | null;
994
- locationId: string | null;
995
- shippingMethodId: string | null;
996
- rateId: string | null;
997
- total: number;
998
- estimatedDays: number | null;
999
- pickupPointId: string | null;
1000
- scheduledDate: string | null;
1001
- scheduledTime: string | null;
1002
- serviceCode: string | null;
1003
- shippingProfileId: string | null;
1004
- }[];
1005
- totals: {
1006
- total: number;
1007
- subtotal: number;
1008
- discountTotal: number;
1009
- shippingOriginalTotal: number;
1010
- shippingTotal: number;
1011
- taxTotal: number;
1012
- warrantyTotal: number;
1013
- };
1014
- };
1015
- paymentMethods: {
1016
- methods: {
1017
- code: string;
1018
- name: string;
1019
- kind: string;
1020
- isActive: boolean;
1021
- isDefault: boolean;
1022
- isManual: boolean;
1023
- sortOrder: number;
1024
- description?: string | null | undefined;
1025
- providerMethodCode?: string | null | undefined;
1026
- phoneNumber?: string | null | undefined;
1027
- accountHolder?: string | null | undefined;
1028
- qrImageUrl?: string | null | undefined;
1029
- }[];
1030
- };
1031
- orderBumps: {
1032
- id: string;
1033
- productName: string;
1034
- currencyCode: string;
1035
- productPublicId: string;
1036
- variantPublicId: string;
1037
- regularPrice: number;
1038
- offerPrice: number;
1039
- callToAction: string;
1040
- description?: string | null | undefined;
1041
- imageUrl?: string | null | undefined;
1042
- variantName?: string | null | undefined;
1043
- badgeLabel?: string | null | undefined;
1044
- }[];
1045
- }, {
1046
- cart: {
1047
- status: "inProgress" | "pending" | "completed" | "abandoned" | "cancelled" | "expired" | "failed";
1048
- id: string;
1049
- phone: string | null;
1050
- cartNumber: string;
1051
- email: string | null;
1052
- firstName: string | null;
1053
- lastName: string | null;
1054
- currencyCode: string;
1055
- completedAt: string | null;
1056
- shippingAddress: {
1057
- name: string | null;
1058
- address1: string;
1059
- city: string;
1060
- countryCode: string;
1061
- company: string | null;
1062
- address2: string | null;
1063
- province: string | null;
1064
- postalCode: string | null;
1065
- district: string | null;
1066
- phone: string | null;
1067
- latitude: number | null;
1068
- longitude: number | null;
1069
- } | null;
1070
- billingAddress: {
1071
- name: string | null;
1072
- address1: string;
1073
- city: string;
1074
- countryCode: string;
1075
- company: string | null;
1076
- address2: string | null;
1077
- province: string | null;
1078
- postalCode: string | null;
1079
- district: string | null;
1080
- phone: string | null;
1081
- latitude: number | null;
1082
- longitude: number | null;
1083
- } | null;
1084
- promotionCodes: string[];
1085
- items: {
1086
- id: string;
1087
- productId: number;
1088
- quantity: number;
1089
- variantId: number;
1090
- unitPrice: number;
1091
- bundleItems: {
1092
- imageUrl: string | null;
1093
- brand: string | null;
1094
- productId: number;
1095
- sku: string | null;
1096
- quantity: number;
1097
- variantId: number;
1098
- productName: string;
1099
- variantName: string | null;
1100
- }[];
1101
- title: string;
1102
- variantLabel: string | null;
1103
- productHandle: string | null;
1104
- thumbnail: string | null;
1105
- variantSku: string | null;
1106
- compareAtUnitPrice: number | null;
1107
- }[];
1108
- shippingMethods: {
1109
- id: string;
1110
- name: string;
1111
- description: string | null;
1112
- sellerId: string | null;
1113
- locationId: string | null;
1114
- shippingMethodId: string | null;
1115
- rateId: string | null;
1116
- total: number;
1117
- estimatedDays: number | null;
1118
- pickupPointId: string | null;
1119
- scheduledDate: string | null;
1120
- scheduledTime: string | null;
1121
- serviceCode: string | null;
1122
- shippingProfileId: string | null;
1123
- }[];
1124
- totals: {
1125
- total: number;
1126
- subtotal: number;
1127
- discountTotal: number;
1128
- shippingOriginalTotal: number;
1129
- shippingTotal: number;
1130
- taxTotal: number;
1131
- warrantyTotal: number;
1132
- };
1133
- };
1134
- paymentMethods: {
1135
- methods: {
1136
- code: string;
1137
- name: string;
1138
- kind: string;
1139
- isActive: boolean;
1140
- isDefault: boolean;
1141
- isManual: boolean;
1142
- sortOrder: number;
1143
- description?: string | null | undefined;
1144
- providerMethodCode?: string | null | undefined;
1145
- phoneNumber?: string | null | undefined;
1146
- accountHolder?: string | null | undefined;
1147
- qrImageUrl?: string | null | undefined;
1148
- }[];
1149
- };
1150
- orderBumps?: {
1151
- id: string;
1152
- productName: string;
1153
- currencyCode: string;
1154
- productPublicId: string;
1155
- variantPublicId: string;
1156
- regularPrice: number;
1157
- offerPrice: number;
1158
- callToAction: string;
1159
- description?: string | null | undefined;
1160
- imageUrl?: string | null | undefined;
1161
- variantName?: string | null | undefined;
1162
- badgeLabel?: string | null | undefined;
1163
- }[] | undefined;
1164
- }>;
1165
- type CartCheckoutReadResponse = z.infer<typeof CartCheckoutReadResponseSchema>;
1166
- declare const CartCheckoutPaymentActionSchema: z.ZodObject<{
1167
- publicConfiguration: z.ZodOptional<z.ZodNullable<z.ZodObject<{
1168
- publishableKey: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1169
- checkoutMode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1170
- phoneNumber: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1171
- accountHolder: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1172
- qrImageUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1173
- }, "strip", z.ZodTypeAny, {
1174
- phoneNumber?: string | null | undefined;
1175
- accountHolder?: string | null | undefined;
1176
- qrImageUrl?: string | null | undefined;
1177
- publishableKey?: string | null | undefined;
1178
- checkoutMode?: string | null | undefined;
1179
- }, {
1180
- phoneNumber?: string | null | undefined;
1181
- accountHolder?: string | null | undefined;
1182
- qrImageUrl?: string | null | undefined;
1183
- publishableKey?: string | null | undefined;
1184
- checkoutMode?: string | null | undefined;
1185
- }>>>;
368
+ }, z.core.$strip>>;
369
+ }, z.core.$strip>;
370
+ export type CartCheckoutReadResponse = z.infer<typeof CartCheckoutReadResponseSchema>;
371
+ export declare const CartCheckoutPaymentActionSchema: z.ZodObject<{
372
+ publicConfiguration: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>>;
373
+ url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
374
+ html: z.ZodOptional<z.ZodNullable<z.ZodString>>;
375
+ clientSecret: z.ZodOptional<z.ZodNullable<z.ZodString>>;
376
+ qrCode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
377
+ expiresAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
378
+ voucherCode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
379
+ qrImageUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
380
+ }, z.core.$strip>;
381
+ export declare const CartCheckoutPaymentSchema: z.ZodObject<{
382
+ transactionId: z.ZodString;
383
+ externalId: z.ZodNullable<z.ZodString>;
384
+ paymentMethodCode: z.ZodString;
385
+ providerId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
386
+ status: z.ZodString;
387
+ amount: z.ZodNumber;
388
+ reference: z.ZodString;
389
+ actionKind: z.ZodEnum<{
390
+ embedded: "embedded";
391
+ none: "none";
392
+ qrCode: "qrCode";
393
+ redirect: "redirect";
394
+ threeDS: "threeDS";
395
+ voucher: "voucher";
396
+ }>;
397
+ receiptUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
398
+ action: z.ZodOptional<z.ZodNullable<z.ZodObject<{
399
+ publicConfiguration: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>>;
1186
400
  url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1187
401
  html: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1188
402
  clientSecret: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1189
403
  qrCode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1190
404
  expiresAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1191
- }, "strip", z.ZodTypeAny, {
1192
- url?: string | null | undefined;
1193
- publicConfiguration?: {
1194
- phoneNumber?: string | null | undefined;
1195
- accountHolder?: string | null | undefined;
1196
- qrImageUrl?: string | null | undefined;
1197
- publishableKey?: string | null | undefined;
1198
- checkoutMode?: string | null | undefined;
1199
- } | null | undefined;
1200
- html?: string | null | undefined;
1201
- clientSecret?: string | null | undefined;
1202
- qrCode?: string | null | undefined;
1203
- expiresAt?: string | null | undefined;
1204
- }, {
1205
- url?: string | null | undefined;
1206
- publicConfiguration?: {
1207
- phoneNumber?: string | null | undefined;
1208
- accountHolder?: string | null | undefined;
1209
- qrImageUrl?: string | null | undefined;
1210
- publishableKey?: string | null | undefined;
1211
- checkoutMode?: string | null | undefined;
1212
- } | null | undefined;
1213
- html?: string | null | undefined;
1214
- clientSecret?: string | null | undefined;
1215
- qrCode?: string | null | undefined;
1216
- expiresAt?: string | null | undefined;
1217
- }>;
1218
- declare const CartCheckoutPaymentSchema: z.ZodObject<{
405
+ voucherCode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
406
+ qrImageUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
407
+ }, z.core.$strip>>>;
408
+ }, z.core.$strip>;
409
+ export type CartCheckoutPayment = z.infer<typeof CartCheckoutPaymentSchema>;
410
+ export declare const CartCheckoutResponseSchema: z.ZodObject<{
411
+ orderId: z.ZodString;
412
+ orderNumber: z.ZodString;
413
+ orderStatusUrl: z.ZodString;
414
+ orderGroup: z.ZodString;
415
+ orderIds: z.ZodArray<z.ZodString>;
416
+ payment: z.ZodNullable<z.ZodObject<{
1219
417
  transactionId: z.ZodString;
418
+ externalId: z.ZodNullable<z.ZodString>;
1220
419
  paymentMethodCode: z.ZodString;
1221
420
  providerId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1222
421
  status: z.ZodString;
1223
422
  amount: z.ZodNumber;
1224
423
  reference: z.ZodString;
1225
- actionType: z.ZodString;
424
+ actionKind: z.ZodEnum<{
425
+ embedded: "embedded";
426
+ none: "none";
427
+ qrCode: "qrCode";
428
+ redirect: "redirect";
429
+ threeDS: "threeDS";
430
+ voucher: "voucher";
431
+ }>;
1226
432
  receiptUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1227
433
  action: z.ZodOptional<z.ZodNullable<z.ZodObject<{
1228
- publicConfiguration: z.ZodOptional<z.ZodNullable<z.ZodObject<{
1229
- publishableKey: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1230
- checkoutMode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1231
- phoneNumber: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1232
- accountHolder: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1233
- qrImageUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1234
- }, "strip", z.ZodTypeAny, {
1235
- phoneNumber?: string | null | undefined;
1236
- accountHolder?: string | null | undefined;
1237
- qrImageUrl?: string | null | undefined;
1238
- publishableKey?: string | null | undefined;
1239
- checkoutMode?: string | null | undefined;
1240
- }, {
1241
- phoneNumber?: string | null | undefined;
1242
- accountHolder?: string | null | undefined;
1243
- qrImageUrl?: string | null | undefined;
1244
- publishableKey?: string | null | undefined;
1245
- checkoutMode?: string | null | undefined;
1246
- }>>>;
1247
- url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1248
- html: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1249
- clientSecret: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1250
- qrCode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1251
- expiresAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1252
- }, "strip", z.ZodTypeAny, {
1253
- url?: string | null | undefined;
1254
- publicConfiguration?: {
1255
- phoneNumber?: string | null | undefined;
1256
- accountHolder?: string | null | undefined;
1257
- qrImageUrl?: string | null | undefined;
1258
- publishableKey?: string | null | undefined;
1259
- checkoutMode?: string | null | undefined;
1260
- } | null | undefined;
1261
- html?: string | null | undefined;
1262
- clientSecret?: string | null | undefined;
1263
- qrCode?: string | null | undefined;
1264
- expiresAt?: string | null | undefined;
1265
- }, {
1266
- url?: string | null | undefined;
1267
- publicConfiguration?: {
1268
- phoneNumber?: string | null | undefined;
1269
- accountHolder?: string | null | undefined;
1270
- qrImageUrl?: string | null | undefined;
1271
- publishableKey?: string | null | undefined;
1272
- checkoutMode?: string | null | undefined;
1273
- } | null | undefined;
1274
- html?: string | null | undefined;
1275
- clientSecret?: string | null | undefined;
1276
- qrCode?: string | null | undefined;
1277
- expiresAt?: string | null | undefined;
1278
- }>>>;
1279
- }, "strip", z.ZodTypeAny, {
1280
- status: string;
1281
- transactionId: string;
1282
- paymentMethodCode: string;
1283
- amount: number;
1284
- reference: string;
1285
- actionType: string;
1286
- providerId?: string | null | undefined;
1287
- receiptUrl?: string | null | undefined;
1288
- action?: {
1289
- url?: string | null | undefined;
1290
- publicConfiguration?: {
1291
- phoneNumber?: string | null | undefined;
1292
- accountHolder?: string | null | undefined;
1293
- qrImageUrl?: string | null | undefined;
1294
- publishableKey?: string | null | undefined;
1295
- checkoutMode?: string | null | undefined;
1296
- } | null | undefined;
1297
- html?: string | null | undefined;
1298
- clientSecret?: string | null | undefined;
1299
- qrCode?: string | null | undefined;
1300
- expiresAt?: string | null | undefined;
1301
- } | null | undefined;
1302
- }, {
1303
- status: string;
1304
- transactionId: string;
1305
- paymentMethodCode: string;
1306
- amount: number;
1307
- reference: string;
1308
- actionType: string;
1309
- providerId?: string | null | undefined;
1310
- receiptUrl?: string | null | undefined;
1311
- action?: {
1312
- url?: string | null | undefined;
1313
- publicConfiguration?: {
1314
- phoneNumber?: string | null | undefined;
1315
- accountHolder?: string | null | undefined;
1316
- qrImageUrl?: string | null | undefined;
1317
- publishableKey?: string | null | undefined;
1318
- checkoutMode?: string | null | undefined;
1319
- } | null | undefined;
1320
- html?: string | null | undefined;
1321
- clientSecret?: string | null | undefined;
1322
- qrCode?: string | null | undefined;
1323
- expiresAt?: string | null | undefined;
1324
- } | null | undefined;
1325
- }>;
1326
- type CartCheckoutPayment = z.infer<typeof CartCheckoutPaymentSchema>;
1327
- declare const CartCheckoutResponseSchema: z.ZodObject<{
1328
- publicKey: z.ZodOptional<z.ZodString>;
1329
- publishableKey: z.ZodOptional<z.ZodString>;
1330
- stripePublicKey: z.ZodOptional<z.ZodString>;
1331
- clientSecret: z.ZodOptional<z.ZodString>;
1332
- intentClientSecret: z.ZodOptional<z.ZodString>;
1333
- orderId: z.ZodOptional<z.ZodString>;
1334
- orderGroup: z.ZodOptional<z.ZodString>;
1335
- orderIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1336
- payment: z.ZodOptional<z.ZodObject<{
1337
- transactionId: z.ZodString;
1338
- paymentMethodCode: z.ZodString;
1339
- providerId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1340
- status: z.ZodString;
1341
- amount: z.ZodNumber;
1342
- reference: z.ZodString;
1343
- actionType: z.ZodString;
1344
- receiptUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1345
- action: z.ZodOptional<z.ZodNullable<z.ZodObject<{
1346
- publicConfiguration: z.ZodOptional<z.ZodNullable<z.ZodObject<{
1347
- publishableKey: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1348
- checkoutMode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1349
- phoneNumber: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1350
- accountHolder: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1351
- qrImageUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1352
- }, "strip", z.ZodTypeAny, {
1353
- phoneNumber?: string | null | undefined;
1354
- accountHolder?: string | null | undefined;
1355
- qrImageUrl?: string | null | undefined;
1356
- publishableKey?: string | null | undefined;
1357
- checkoutMode?: string | null | undefined;
1358
- }, {
1359
- phoneNumber?: string | null | undefined;
1360
- accountHolder?: string | null | undefined;
1361
- qrImageUrl?: string | null | undefined;
1362
- publishableKey?: string | null | undefined;
1363
- checkoutMode?: string | null | undefined;
1364
- }>>>;
1365
- url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1366
- html: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1367
- clientSecret: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1368
- qrCode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1369
- expiresAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1370
- }, "strip", z.ZodTypeAny, {
1371
- url?: string | null | undefined;
1372
- publicConfiguration?: {
1373
- phoneNumber?: string | null | undefined;
1374
- accountHolder?: string | null | undefined;
1375
- qrImageUrl?: string | null | undefined;
1376
- publishableKey?: string | null | undefined;
1377
- checkoutMode?: string | null | undefined;
1378
- } | null | undefined;
1379
- html?: string | null | undefined;
1380
- clientSecret?: string | null | undefined;
1381
- qrCode?: string | null | undefined;
1382
- expiresAt?: string | null | undefined;
1383
- }, {
1384
- url?: string | null | undefined;
1385
- publicConfiguration?: {
1386
- phoneNumber?: string | null | undefined;
1387
- accountHolder?: string | null | undefined;
1388
- qrImageUrl?: string | null | undefined;
1389
- publishableKey?: string | null | undefined;
1390
- checkoutMode?: string | null | undefined;
1391
- } | null | undefined;
1392
- html?: string | null | undefined;
1393
- clientSecret?: string | null | undefined;
1394
- qrCode?: string | null | undefined;
1395
- expiresAt?: string | null | undefined;
1396
- }>>>;
1397
- }, "strip", z.ZodTypeAny, {
1398
- status: string;
1399
- transactionId: string;
1400
- paymentMethodCode: string;
1401
- amount: number;
1402
- reference: string;
1403
- actionType: string;
1404
- providerId?: string | null | undefined;
1405
- receiptUrl?: string | null | undefined;
1406
- action?: {
1407
- url?: string | null | undefined;
1408
- publicConfiguration?: {
1409
- phoneNumber?: string | null | undefined;
1410
- accountHolder?: string | null | undefined;
1411
- qrImageUrl?: string | null | undefined;
1412
- publishableKey?: string | null | undefined;
1413
- checkoutMode?: string | null | undefined;
1414
- } | null | undefined;
1415
- html?: string | null | undefined;
1416
- clientSecret?: string | null | undefined;
1417
- qrCode?: string | null | undefined;
1418
- expiresAt?: string | null | undefined;
1419
- } | null | undefined;
1420
- }, {
1421
- status: string;
1422
- transactionId: string;
1423
- paymentMethodCode: string;
1424
- amount: number;
1425
- reference: string;
1426
- actionType: string;
1427
- providerId?: string | null | undefined;
1428
- receiptUrl?: string | null | undefined;
1429
- action?: {
1430
- url?: string | null | undefined;
1431
- publicConfiguration?: {
1432
- phoneNumber?: string | null | undefined;
1433
- accountHolder?: string | null | undefined;
1434
- qrImageUrl?: string | null | undefined;
1435
- publishableKey?: string | null | undefined;
1436
- checkoutMode?: string | null | undefined;
1437
- } | null | undefined;
1438
- html?: string | null | undefined;
1439
- clientSecret?: string | null | undefined;
1440
- qrCode?: string | null | undefined;
1441
- expiresAt?: string | null | undefined;
1442
- } | null | undefined;
1443
- }>>;
1444
- cart: z.ZodOptional<z.ZodObject<{
1445
- id: z.ZodUnion<[z.ZodString, z.ZodString]>;
1446
- cartNumber: z.ZodString;
1447
- email: z.ZodNullable<z.ZodString>;
1448
- phone: z.ZodNullable<z.ZodString>;
1449
- firstName: z.ZodNullable<z.ZodString>;
1450
- lastName: z.ZodNullable<z.ZodString>;
1451
- currencyCode: z.ZodString;
1452
- status: z.ZodEnum<["inProgress", "pending", "completed", "abandoned", "cancelled", "expired", "failed"]>;
1453
- completedAt: z.ZodNullable<z.ZodString>;
1454
- shippingAddress: z.ZodNullable<z.ZodObject<{
1455
- name: z.ZodNullable<z.ZodString>;
1456
- address1: z.ZodString;
1457
- city: z.ZodString;
1458
- countryCode: z.ZodString;
1459
- company: z.ZodNullable<z.ZodString>;
1460
- address2: z.ZodNullable<z.ZodString>;
1461
- province: z.ZodNullable<z.ZodString>;
1462
- postalCode: z.ZodNullable<z.ZodString>;
1463
- district: z.ZodNullable<z.ZodString>;
1464
- phone: z.ZodNullable<z.ZodString>;
1465
- latitude: z.ZodNullable<z.ZodNumber>;
1466
- longitude: z.ZodNullable<z.ZodNumber>;
1467
- }, "strip", z.ZodTypeAny, {
1468
- name: string | null;
1469
- address1: string;
1470
- city: string;
1471
- countryCode: string;
1472
- company: string | null;
1473
- address2: string | null;
1474
- province: string | null;
1475
- postalCode: string | null;
1476
- district: string | null;
1477
- phone: string | null;
1478
- latitude: number | null;
1479
- longitude: number | null;
1480
- }, {
1481
- name: string | null;
1482
- address1: string;
1483
- city: string;
1484
- countryCode: string;
1485
- company: string | null;
1486
- address2: string | null;
1487
- province: string | null;
1488
- postalCode: string | null;
1489
- district: string | null;
1490
- phone: string | null;
1491
- latitude: number | null;
1492
- longitude: number | null;
1493
- }>>;
1494
- billingAddress: z.ZodNullable<z.ZodObject<{
1495
- name: z.ZodNullable<z.ZodString>;
1496
- address1: z.ZodString;
1497
- city: z.ZodString;
1498
- countryCode: z.ZodString;
1499
- company: z.ZodNullable<z.ZodString>;
1500
- address2: z.ZodNullable<z.ZodString>;
1501
- province: z.ZodNullable<z.ZodString>;
1502
- postalCode: z.ZodNullable<z.ZodString>;
1503
- district: z.ZodNullable<z.ZodString>;
1504
- phone: z.ZodNullable<z.ZodString>;
1505
- latitude: z.ZodNullable<z.ZodNumber>;
1506
- longitude: z.ZodNullable<z.ZodNumber>;
1507
- }, "strip", z.ZodTypeAny, {
1508
- name: string | null;
1509
- address1: string;
1510
- city: string;
1511
- countryCode: string;
1512
- company: string | null;
1513
- address2: string | null;
1514
- province: string | null;
1515
- postalCode: string | null;
1516
- district: string | null;
1517
- phone: string | null;
1518
- latitude: number | null;
1519
- longitude: number | null;
1520
- }, {
1521
- name: string | null;
1522
- address1: string;
1523
- city: string;
1524
- countryCode: string;
1525
- company: string | null;
1526
- address2: string | null;
1527
- province: string | null;
1528
- postalCode: string | null;
1529
- district: string | null;
1530
- phone: string | null;
1531
- latitude: number | null;
1532
- longitude: number | null;
1533
- }>>;
1534
- promotionCodes: z.ZodArray<z.ZodString, "many">;
1535
- items: z.ZodArray<z.ZodObject<{
1536
- id: z.ZodUnion<[z.ZodString, z.ZodString]>;
1537
- productId: z.ZodNumber;
1538
- title: z.ZodString;
1539
- variantLabel: z.ZodNullable<z.ZodString>;
1540
- productHandle: z.ZodNullable<z.ZodString>;
1541
- thumbnail: z.ZodNullable<z.ZodString>;
1542
- quantity: z.ZodNumber;
1543
- variantId: z.ZodNumber;
1544
- variantSku: z.ZodNullable<z.ZodString>;
1545
- unitPrice: z.ZodNumber;
1546
- compareAtUnitPrice: z.ZodNullable<z.ZodNumber>;
1547
- bundleItems: z.ZodArray<z.ZodObject<{
1548
- productId: z.ZodNumber;
1549
- variantId: z.ZodNumber;
1550
- productName: z.ZodString;
1551
- variantName: z.ZodNullable<z.ZodString>;
1552
- sku: z.ZodNullable<z.ZodString>;
1553
- brand: z.ZodNullable<z.ZodString>;
1554
- imageUrl: z.ZodNullable<z.ZodString>;
1555
- quantity: z.ZodNumber;
1556
- }, "strip", z.ZodTypeAny, {
1557
- imageUrl: string | null;
1558
- brand: string | null;
1559
- productId: number;
1560
- sku: string | null;
1561
- quantity: number;
1562
- variantId: number;
1563
- productName: string;
1564
- variantName: string | null;
1565
- }, {
1566
- imageUrl: string | null;
1567
- brand: string | null;
1568
- productId: number;
1569
- sku: string | null;
1570
- quantity: number;
1571
- variantId: number;
1572
- productName: string;
1573
- variantName: string | null;
1574
- }>, "many">;
1575
- }, "strip", z.ZodTypeAny, {
1576
- id: string;
1577
- productId: number;
1578
- quantity: number;
1579
- variantId: number;
1580
- unitPrice: number;
1581
- bundleItems: {
1582
- imageUrl: string | null;
1583
- brand: string | null;
1584
- productId: number;
1585
- sku: string | null;
1586
- quantity: number;
1587
- variantId: number;
1588
- productName: string;
1589
- variantName: string | null;
1590
- }[];
1591
- title: string;
1592
- variantLabel: string | null;
1593
- productHandle: string | null;
1594
- thumbnail: string | null;
1595
- variantSku: string | null;
1596
- compareAtUnitPrice: number | null;
1597
- }, {
1598
- id: string;
1599
- productId: number;
1600
- quantity: number;
1601
- variantId: number;
1602
- unitPrice: number;
1603
- bundleItems: {
1604
- imageUrl: string | null;
1605
- brand: string | null;
1606
- productId: number;
1607
- sku: string | null;
1608
- quantity: number;
1609
- variantId: number;
1610
- productName: string;
1611
- variantName: string | null;
1612
- }[];
1613
- title: string;
1614
- variantLabel: string | null;
1615
- productHandle: string | null;
1616
- thumbnail: string | null;
1617
- variantSku: string | null;
1618
- compareAtUnitPrice: number | null;
1619
- }>, "many">;
1620
- shippingMethods: z.ZodArray<z.ZodObject<{
1621
- id: z.ZodUnion<[z.ZodString, z.ZodString]>;
1622
- shippingMethodId: z.ZodNullable<z.ZodUnion<[z.ZodString, z.ZodString]>>;
1623
- rateId: z.ZodNullable<z.ZodUnion<[z.ZodString, z.ZodString]>>;
1624
- name: z.ZodString;
1625
- description: z.ZodNullable<z.ZodString>;
1626
- total: z.ZodNumber;
1627
- locationId: z.ZodNullable<z.ZodUnion<[z.ZodString, z.ZodString]>>;
1628
- estimatedDays: z.ZodNullable<z.ZodNumber>;
1629
- pickupPointId: z.ZodNullable<z.ZodUnion<[z.ZodString, z.ZodString]>>;
1630
- scheduledDate: z.ZodNullable<z.ZodString>;
1631
- scheduledTime: z.ZodNullable<z.ZodString>;
1632
- serviceCode: z.ZodNullable<z.ZodString>;
1633
- sellerId: z.ZodNullable<z.ZodUnion<[z.ZodString, z.ZodString]>>;
1634
- shippingProfileId: z.ZodNullable<z.ZodUnion<[z.ZodString, z.ZodString]>>;
1635
- }, "strip", z.ZodTypeAny, {
1636
- id: string;
1637
- name: string;
1638
- description: string | null;
1639
- sellerId: string | null;
1640
- locationId: string | null;
1641
- shippingMethodId: string | null;
1642
- rateId: string | null;
1643
- total: number;
1644
- estimatedDays: number | null;
1645
- pickupPointId: string | null;
1646
- scheduledDate: string | null;
1647
- scheduledTime: string | null;
1648
- serviceCode: string | null;
1649
- shippingProfileId: string | null;
1650
- }, {
1651
- id: string;
1652
- name: string;
1653
- description: string | null;
1654
- sellerId: string | null;
1655
- locationId: string | null;
1656
- shippingMethodId: string | null;
1657
- rateId: string | null;
1658
- total: number;
1659
- estimatedDays: number | null;
1660
- pickupPointId: string | null;
1661
- scheduledDate: string | null;
1662
- scheduledTime: string | null;
1663
- serviceCode: string | null;
1664
- shippingProfileId: string | null;
1665
- }>, "many">;
1666
- totals: z.ZodObject<{
1667
- subtotal: z.ZodNumber;
1668
- discountTotal: z.ZodNumber;
1669
- shippingOriginalTotal: z.ZodNumber;
1670
- shippingTotal: z.ZodNumber;
1671
- taxTotal: z.ZodNumber;
1672
- warrantyTotal: z.ZodNumber;
1673
- total: z.ZodNumber;
1674
- }, "strip", z.ZodTypeAny, {
1675
- total: number;
1676
- subtotal: number;
1677
- discountTotal: number;
1678
- shippingOriginalTotal: number;
1679
- shippingTotal: number;
1680
- taxTotal: number;
1681
- warrantyTotal: number;
1682
- }, {
1683
- total: number;
1684
- subtotal: number;
1685
- discountTotal: number;
1686
- shippingOriginalTotal: number;
1687
- shippingTotal: number;
1688
- taxTotal: number;
1689
- warrantyTotal: number;
1690
- }>;
1691
- }, "strip", z.ZodTypeAny, {
1692
- status: "inProgress" | "pending" | "completed" | "abandoned" | "cancelled" | "expired" | "failed";
1693
- id: string;
1694
- phone: string | null;
1695
- cartNumber: string;
1696
- email: string | null;
1697
- firstName: string | null;
1698
- lastName: string | null;
1699
- currencyCode: string;
1700
- completedAt: string | null;
1701
- shippingAddress: {
1702
- name: string | null;
1703
- address1: string;
1704
- city: string;
1705
- countryCode: string;
1706
- company: string | null;
1707
- address2: string | null;
1708
- province: string | null;
1709
- postalCode: string | null;
1710
- district: string | null;
1711
- phone: string | null;
1712
- latitude: number | null;
1713
- longitude: number | null;
1714
- } | null;
1715
- billingAddress: {
1716
- name: string | null;
1717
- address1: string;
1718
- city: string;
1719
- countryCode: string;
1720
- company: string | null;
1721
- address2: string | null;
1722
- province: string | null;
1723
- postalCode: string | null;
1724
- district: string | null;
1725
- phone: string | null;
1726
- latitude: number | null;
1727
- longitude: number | null;
1728
- } | null;
1729
- promotionCodes: string[];
1730
- items: {
1731
- id: string;
1732
- productId: number;
1733
- quantity: number;
1734
- variantId: number;
1735
- unitPrice: number;
1736
- bundleItems: {
1737
- imageUrl: string | null;
1738
- brand: string | null;
1739
- productId: number;
1740
- sku: string | null;
1741
- quantity: number;
1742
- variantId: number;
1743
- productName: string;
1744
- variantName: string | null;
1745
- }[];
1746
- title: string;
1747
- variantLabel: string | null;
1748
- productHandle: string | null;
1749
- thumbnail: string | null;
1750
- variantSku: string | null;
1751
- compareAtUnitPrice: number | null;
1752
- }[];
1753
- shippingMethods: {
1754
- id: string;
1755
- name: string;
1756
- description: string | null;
1757
- sellerId: string | null;
1758
- locationId: string | null;
1759
- shippingMethodId: string | null;
1760
- rateId: string | null;
1761
- total: number;
1762
- estimatedDays: number | null;
1763
- pickupPointId: string | null;
1764
- scheduledDate: string | null;
1765
- scheduledTime: string | null;
1766
- serviceCode: string | null;
1767
- shippingProfileId: string | null;
1768
- }[];
1769
- totals: {
1770
- total: number;
1771
- subtotal: number;
1772
- discountTotal: number;
1773
- shippingOriginalTotal: number;
1774
- shippingTotal: number;
1775
- taxTotal: number;
1776
- warrantyTotal: number;
1777
- };
1778
- }, {
1779
- status: "inProgress" | "pending" | "completed" | "abandoned" | "cancelled" | "expired" | "failed";
1780
- id: string;
1781
- phone: string | null;
1782
- cartNumber: string;
1783
- email: string | null;
1784
- firstName: string | null;
1785
- lastName: string | null;
1786
- currencyCode: string;
1787
- completedAt: string | null;
1788
- shippingAddress: {
1789
- name: string | null;
1790
- address1: string;
1791
- city: string;
1792
- countryCode: string;
1793
- company: string | null;
1794
- address2: string | null;
1795
- province: string | null;
1796
- postalCode: string | null;
1797
- district: string | null;
1798
- phone: string | null;
1799
- latitude: number | null;
1800
- longitude: number | null;
1801
- } | null;
1802
- billingAddress: {
1803
- name: string | null;
1804
- address1: string;
1805
- city: string;
1806
- countryCode: string;
1807
- company: string | null;
1808
- address2: string | null;
1809
- province: string | null;
1810
- postalCode: string | null;
1811
- district: string | null;
1812
- phone: string | null;
1813
- latitude: number | null;
1814
- longitude: number | null;
1815
- } | null;
1816
- promotionCodes: string[];
1817
- items: {
1818
- id: string;
1819
- productId: number;
1820
- quantity: number;
1821
- variantId: number;
1822
- unitPrice: number;
1823
- bundleItems: {
1824
- imageUrl: string | null;
1825
- brand: string | null;
1826
- productId: number;
1827
- sku: string | null;
1828
- quantity: number;
1829
- variantId: number;
1830
- productName: string;
1831
- variantName: string | null;
1832
- }[];
1833
- title: string;
1834
- variantLabel: string | null;
1835
- productHandle: string | null;
1836
- thumbnail: string | null;
1837
- variantSku: string | null;
1838
- compareAtUnitPrice: number | null;
1839
- }[];
1840
- shippingMethods: {
1841
- id: string;
1842
- name: string;
1843
- description: string | null;
1844
- sellerId: string | null;
1845
- locationId: string | null;
1846
- shippingMethodId: string | null;
1847
- rateId: string | null;
1848
- total: number;
1849
- estimatedDays: number | null;
1850
- pickupPointId: string | null;
1851
- scheduledDate: string | null;
1852
- scheduledTime: string | null;
1853
- serviceCode: string | null;
1854
- shippingProfileId: string | null;
1855
- }[];
1856
- totals: {
1857
- total: number;
1858
- subtotal: number;
1859
- discountTotal: number;
1860
- shippingOriginalTotal: number;
1861
- shippingTotal: number;
1862
- taxTotal: number;
1863
- warrantyTotal: number;
1864
- };
1865
- }>>;
1866
- }, "strip", z.ZodTypeAny, {
1867
- orderId?: string | undefined;
1868
- cart?: {
1869
- status: "inProgress" | "pending" | "completed" | "abandoned" | "cancelled" | "expired" | "failed";
1870
- id: string;
1871
- phone: string | null;
1872
- cartNumber: string;
1873
- email: string | null;
1874
- firstName: string | null;
1875
- lastName: string | null;
1876
- currencyCode: string;
1877
- completedAt: string | null;
1878
- shippingAddress: {
1879
- name: string | null;
1880
- address1: string;
1881
- city: string;
1882
- countryCode: string;
1883
- company: string | null;
1884
- address2: string | null;
1885
- province: string | null;
1886
- postalCode: string | null;
1887
- district: string | null;
1888
- phone: string | null;
1889
- latitude: number | null;
1890
- longitude: number | null;
1891
- } | null;
1892
- billingAddress: {
1893
- name: string | null;
1894
- address1: string;
1895
- city: string;
1896
- countryCode: string;
1897
- company: string | null;
1898
- address2: string | null;
1899
- province: string | null;
1900
- postalCode: string | null;
1901
- district: string | null;
1902
- phone: string | null;
1903
- latitude: number | null;
1904
- longitude: number | null;
1905
- } | null;
1906
- promotionCodes: string[];
1907
- items: {
1908
- id: string;
1909
- productId: number;
1910
- quantity: number;
1911
- variantId: number;
1912
- unitPrice: number;
1913
- bundleItems: {
1914
- imageUrl: string | null;
1915
- brand: string | null;
1916
- productId: number;
1917
- sku: string | null;
1918
- quantity: number;
1919
- variantId: number;
1920
- productName: string;
1921
- variantName: string | null;
1922
- }[];
1923
- title: string;
1924
- variantLabel: string | null;
1925
- productHandle: string | null;
1926
- thumbnail: string | null;
1927
- variantSku: string | null;
1928
- compareAtUnitPrice: number | null;
1929
- }[];
1930
- shippingMethods: {
1931
- id: string;
1932
- name: string;
1933
- description: string | null;
1934
- sellerId: string | null;
1935
- locationId: string | null;
1936
- shippingMethodId: string | null;
1937
- rateId: string | null;
1938
- total: number;
1939
- estimatedDays: number | null;
1940
- pickupPointId: string | null;
1941
- scheduledDate: string | null;
1942
- scheduledTime: string | null;
1943
- serviceCode: string | null;
1944
- shippingProfileId: string | null;
1945
- }[];
1946
- totals: {
1947
- total: number;
1948
- subtotal: number;
1949
- discountTotal: number;
1950
- shippingOriginalTotal: number;
1951
- shippingTotal: number;
1952
- taxTotal: number;
1953
- warrantyTotal: number;
1954
- };
1955
- } | undefined;
1956
- publishableKey?: string | undefined;
1957
- clientSecret?: string | undefined;
1958
- publicKey?: string | undefined;
1959
- stripePublicKey?: string | undefined;
1960
- intentClientSecret?: string | undefined;
1961
- orderGroup?: string | undefined;
1962
- orderIds?: string[] | undefined;
1963
- payment?: {
1964
- status: string;
1965
- transactionId: string;
1966
- paymentMethodCode: string;
1967
- amount: number;
1968
- reference: string;
1969
- actionType: string;
1970
- providerId?: string | null | undefined;
1971
- receiptUrl?: string | null | undefined;
1972
- action?: {
1973
- url?: string | null | undefined;
1974
- publicConfiguration?: {
1975
- phoneNumber?: string | null | undefined;
1976
- accountHolder?: string | null | undefined;
1977
- qrImageUrl?: string | null | undefined;
1978
- publishableKey?: string | null | undefined;
1979
- checkoutMode?: string | null | undefined;
1980
- } | null | undefined;
1981
- html?: string | null | undefined;
1982
- clientSecret?: string | null | undefined;
1983
- qrCode?: string | null | undefined;
1984
- expiresAt?: string | null | undefined;
1985
- } | null | undefined;
1986
- } | undefined;
1987
- }, {
1988
- orderId?: string | undefined;
1989
- cart?: {
1990
- status: "inProgress" | "pending" | "completed" | "abandoned" | "cancelled" | "expired" | "failed";
1991
- id: string;
1992
- phone: string | null;
1993
- cartNumber: string;
1994
- email: string | null;
1995
- firstName: string | null;
1996
- lastName: string | null;
1997
- currencyCode: string;
1998
- completedAt: string | null;
1999
- shippingAddress: {
2000
- name: string | null;
2001
- address1: string;
2002
- city: string;
2003
- countryCode: string;
2004
- company: string | null;
2005
- address2: string | null;
2006
- province: string | null;
2007
- postalCode: string | null;
2008
- district: string | null;
2009
- phone: string | null;
2010
- latitude: number | null;
2011
- longitude: number | null;
2012
- } | null;
2013
- billingAddress: {
2014
- name: string | null;
2015
- address1: string;
2016
- city: string;
2017
- countryCode: string;
2018
- company: string | null;
2019
- address2: string | null;
2020
- province: string | null;
2021
- postalCode: string | null;
2022
- district: string | null;
2023
- phone: string | null;
2024
- latitude: number | null;
2025
- longitude: number | null;
2026
- } | null;
2027
- promotionCodes: string[];
2028
- items: {
2029
- id: string;
2030
- productId: number;
2031
- quantity: number;
2032
- variantId: number;
2033
- unitPrice: number;
2034
- bundleItems: {
2035
- imageUrl: string | null;
2036
- brand: string | null;
2037
- productId: number;
2038
- sku: string | null;
2039
- quantity: number;
2040
- variantId: number;
2041
- productName: string;
2042
- variantName: string | null;
2043
- }[];
2044
- title: string;
2045
- variantLabel: string | null;
2046
- productHandle: string | null;
2047
- thumbnail: string | null;
2048
- variantSku: string | null;
2049
- compareAtUnitPrice: number | null;
2050
- }[];
2051
- shippingMethods: {
2052
- id: string;
2053
- name: string;
2054
- description: string | null;
2055
- sellerId: string | null;
2056
- locationId: string | null;
2057
- shippingMethodId: string | null;
2058
- rateId: string | null;
2059
- total: number;
2060
- estimatedDays: number | null;
2061
- pickupPointId: string | null;
2062
- scheduledDate: string | null;
2063
- scheduledTime: string | null;
2064
- serviceCode: string | null;
2065
- shippingProfileId: string | null;
2066
- }[];
2067
- totals: {
2068
- total: number;
2069
- subtotal: number;
2070
- discountTotal: number;
2071
- shippingOriginalTotal: number;
2072
- shippingTotal: number;
2073
- taxTotal: number;
2074
- warrantyTotal: number;
2075
- };
2076
- } | undefined;
2077
- publishableKey?: string | undefined;
2078
- clientSecret?: string | undefined;
2079
- publicKey?: string | undefined;
2080
- stripePublicKey?: string | undefined;
2081
- intentClientSecret?: string | undefined;
2082
- orderGroup?: string | undefined;
2083
- orderIds?: string[] | undefined;
2084
- payment?: {
2085
- status: string;
2086
- transactionId: string;
2087
- paymentMethodCode: string;
2088
- amount: number;
2089
- reference: string;
2090
- actionType: string;
2091
- providerId?: string | null | undefined;
2092
- receiptUrl?: string | null | undefined;
2093
- action?: {
2094
- url?: string | null | undefined;
2095
- publicConfiguration?: {
2096
- phoneNumber?: string | null | undefined;
2097
- accountHolder?: string | null | undefined;
2098
- qrImageUrl?: string | null | undefined;
2099
- publishableKey?: string | null | undefined;
2100
- checkoutMode?: string | null | undefined;
2101
- } | null | undefined;
2102
- html?: string | null | undefined;
2103
- clientSecret?: string | null | undefined;
2104
- qrCode?: string | null | undefined;
2105
- expiresAt?: string | null | undefined;
2106
- } | null | undefined;
2107
- } | undefined;
2108
- }>;
2109
- type CartCheckoutResponse = z.infer<typeof CartCheckoutResponseSchema>;
2110
- declare const CartCheckoutParamsSchema: z.ZodObject<{
2111
- cartId: z.ZodUnion<[z.ZodString, z.ZodString]>;
2112
- paymentMethodCode: z.ZodString;
2113
- externalRef: z.ZodString;
2114
- receiptUrl: z.ZodOptional<z.ZodString>;
2115
- }, "strip", z.ZodTypeAny, {
2116
- cartId: string;
2117
- paymentMethodCode: string;
2118
- externalRef: string;
2119
- receiptUrl?: string | undefined;
2120
- }, {
2121
- cartId: string;
2122
- paymentMethodCode: string;
2123
- externalRef: string;
2124
- receiptUrl?: string | undefined;
2125
- }>;
2126
- type CartCheckoutParams = z.input<typeof CartCheckoutParamsSchema>;
2127
- declare const ShippingRateSchema: z.ZodObject<{
434
+ publicConfiguration: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>>;
435
+ url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
436
+ html: z.ZodOptional<z.ZodNullable<z.ZodString>>;
437
+ clientSecret: z.ZodOptional<z.ZodNullable<z.ZodString>>;
438
+ qrCode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
439
+ expiresAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
440
+ voucherCode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
441
+ qrImageUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
442
+ }, z.core.$strip>>>;
443
+ }, z.core.$strip>>;
444
+ cart: z.ZodObject<{
445
+ id: z.ZodString;
446
+ token: z.ZodString;
447
+ cartNumber: z.ZodString;
448
+ email: z.ZodNullable<z.ZodString>;
449
+ phone: z.ZodNullable<z.ZodString>;
450
+ firstName: z.ZodNullable<z.ZodString>;
451
+ lastName: z.ZodNullable<z.ZodString>;
452
+ currencyCode: z.ZodString;
453
+ status: z.ZodEnum<{
454
+ abandoned: "abandoned";
455
+ cancelled: "cancelled";
456
+ completed: "completed";
457
+ expired: "expired";
458
+ failed: "failed";
459
+ inProgress: "inProgress";
460
+ pending: "pending";
461
+ }>;
462
+ completedAt: z.ZodNullable<z.ZodString>;
463
+ shippingAddress: z.ZodNullable<z.ZodObject<{
464
+ name: z.ZodNullable<z.ZodString>;
465
+ address1: z.ZodString;
466
+ city: z.ZodString;
467
+ countryCode: z.ZodString;
468
+ company: z.ZodNullable<z.ZodString>;
469
+ address2: z.ZodNullable<z.ZodString>;
470
+ department: z.ZodOptional<z.ZodNullable<z.ZodString>>;
471
+ province: z.ZodNullable<z.ZodString>;
472
+ postalCode: z.ZodNullable<z.ZodString>;
473
+ district: z.ZodNullable<z.ZodString>;
474
+ phone: z.ZodNullable<z.ZodString>;
475
+ latitude: z.ZodNullable<z.ZodNumber>;
476
+ longitude: z.ZodNullable<z.ZodNumber>;
477
+ }, z.core.$strip>>;
478
+ billingAddress: z.ZodNullable<z.ZodObject<{
479
+ name: z.ZodNullable<z.ZodString>;
480
+ address1: z.ZodString;
481
+ city: z.ZodString;
482
+ countryCode: z.ZodString;
483
+ company: z.ZodNullable<z.ZodString>;
484
+ address2: z.ZodNullable<z.ZodString>;
485
+ department: z.ZodOptional<z.ZodNullable<z.ZodString>>;
486
+ province: z.ZodNullable<z.ZodString>;
487
+ postalCode: z.ZodNullable<z.ZodString>;
488
+ district: z.ZodNullable<z.ZodString>;
489
+ phone: z.ZodNullable<z.ZodString>;
490
+ latitude: z.ZodNullable<z.ZodNumber>;
491
+ longitude: z.ZodNullable<z.ZodNumber>;
492
+ }, z.core.$strip>>;
493
+ promotionCodes: z.ZodArray<z.ZodString>;
494
+ items: z.ZodArray<z.ZodObject<{
495
+ id: z.ZodString;
496
+ productId: z.ZodNullable<z.ZodString>;
497
+ title: z.ZodString;
498
+ variantLabel: z.ZodNullable<z.ZodString>;
499
+ productHandle: z.ZodNullable<z.ZodString>;
500
+ productUrl: z.ZodNullable<z.ZodString>;
501
+ thumbnail: z.ZodNullable<z.ZodString>;
502
+ quantity: z.ZodNumber;
503
+ variantId: z.ZodNullable<z.ZodString>;
504
+ variantSku: z.ZodNullable<z.ZodString>;
505
+ unitPrice: z.ZodNumber;
506
+ compareAtUnitPrice: z.ZodNullable<z.ZodNumber>;
507
+ bundleItems: z.ZodArray<z.ZodObject<{
508
+ productId: z.ZodString;
509
+ variantId: z.ZodString;
510
+ productName: z.ZodString;
511
+ variantName: z.ZodNullable<z.ZodString>;
512
+ sku: z.ZodNullable<z.ZodString>;
513
+ brand: z.ZodNullable<z.ZodString>;
514
+ imageUrl: z.ZodNullable<z.ZodString>;
515
+ quantity: z.ZodNumber;
516
+ }, z.core.$strip>>;
517
+ requiresShipping: z.ZodBoolean;
518
+ sellerId: z.ZodNullable<z.ZodString>;
519
+ sellerName: z.ZodNullable<z.ZodString>;
520
+ orderBumpId: z.ZodNullable<z.ZodString>;
521
+ }, z.core.$strip>>;
522
+ shippingMethods: z.ZodArray<z.ZodObject<{
523
+ id: z.ZodString;
524
+ shippingMethodId: z.ZodNullable<z.ZodString>;
525
+ rateId: z.ZodNullable<z.ZodString>;
526
+ name: z.ZodString;
527
+ description: z.ZodNullable<z.ZodString>;
528
+ type: z.ZodEnum<{
529
+ express: "express";
530
+ localDelivery: "localDelivery";
531
+ pickup: "pickup";
532
+ regular: "regular";
533
+ sameDay: "sameDay";
534
+ }>;
535
+ target: z.ZodEnum<{
536
+ automatic: "automatic";
537
+ location: "location";
538
+ pickupPoint: "pickupPoint";
539
+ }>;
540
+ targetId: z.ZodNullable<z.ZodString>;
541
+ fulfillmentLocationId: z.ZodNullable<z.ZodString>;
542
+ total: z.ZodNumber;
543
+ estimatedDays: z.ZodNullable<z.ZodNumber>;
544
+ scheduledDate: z.ZodNullable<z.ZodString>;
545
+ scheduledTime: z.ZodNullable<z.ZodString>;
546
+ serviceCode: z.ZodNullable<z.ZodString>;
547
+ sellerId: z.ZodNullable<z.ZodString>;
548
+ shippingProfileId: z.ZodNullable<z.ZodString>;
549
+ }, z.core.$strip>>;
550
+ paymentMethodCode: z.ZodNullable<z.ZodString>;
551
+ totals: z.ZodObject<{
552
+ subtotal: z.ZodNumber;
553
+ discountTotal: z.ZodPipe<z.ZodNumber, z.ZodTransform<number, number>>;
554
+ shippingOriginalTotal: z.ZodNumber;
555
+ shippingTotal: z.ZodNumber;
556
+ taxTotal: z.ZodNumber;
557
+ warrantyTotal: z.ZodNumber;
558
+ total: z.ZodNumber;
559
+ }, z.core.$strip>;
560
+ invoiceType: z.ZodEnum<{
561
+ invoice: "invoice";
562
+ receipt: "receipt";
563
+ ticket: "ticket";
564
+ }>;
565
+ identificationType: z.ZodNullable<z.ZodString>;
566
+ identificationCountryCode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
567
+ identificationNumber: z.ZodNullable<z.ZodString>;
568
+ entityTaxId: z.ZodNullable<z.ZodString>;
569
+ entityName: z.ZodNullable<z.ZodString>;
570
+ }, z.core.$strip>;
571
+ }, z.core.$strip>;
572
+ export type CartCheckoutResponse = z.infer<typeof CartCheckoutResponseSchema>;
573
+ export declare const CartCheckoutParamsSchema: z.ZodObject<{
574
+ cartToken: z.ZodString;
575
+ paymentMethodCode: z.ZodString;
576
+ externalRef: z.ZodString;
577
+ receiptUrl: z.ZodOptional<z.ZodString>;
578
+ token: z.ZodOptional<z.ZodString>;
579
+ providerPaymentMethodId: z.ZodOptional<z.ZodString>;
580
+ deviceSessionId: z.ZodOptional<z.ZodString>;
581
+ campaignId: z.ZodOptional<z.ZodString>;
582
+ }, z.core.$strip>;
583
+ export type CartCheckoutParams = z.input<typeof CartCheckoutParamsSchema>;
584
+ export declare const ShippingRateSchema: z.ZodObject<{
585
+ shippingMethodId: z.ZodString;
586
+ name: z.ZodString;
587
+ displayName: z.ZodString;
588
+ type: z.ZodOptional<z.ZodString>;
589
+ target: z.ZodEnum<{
590
+ automatic: "automatic";
591
+ location: "location";
592
+ pickupPoint: "pickupPoint";
593
+ }>;
594
+ targetId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
595
+ targetName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
596
+ price: z.ZodNumber;
597
+ currency: z.ZodOptional<z.ZodString>;
598
+ sortOrder: z.ZodOptional<z.ZodNumber>;
599
+ rateId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
600
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
601
+ estimatedDeliveryDays: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
602
+ serviceCode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
603
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<CheckoutMetadataValue, unknown, z.core.$ZodTypeInternals<CheckoutMetadataValue, unknown>>>>;
604
+ }, z.core.$strip>;
605
+ export type ShippingRate = z.infer<typeof ShippingRateSchema>;
606
+ export declare const ShippingOptionGroupSchema: z.ZodObject<{
607
+ sellerId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
608
+ sellerName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
609
+ shippingProfileId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
610
+ orderAmount: z.ZodOptional<z.ZodNumber>;
611
+ totalWeight: z.ZodOptional<z.ZodNumber>;
612
+ itemIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
613
+ rates: z.ZodArray<z.ZodObject<{
2128
614
  shippingMethodId: z.ZodString;
2129
615
  name: z.ZodString;
2130
- displayName: z.ZodOptional<z.ZodString>;
616
+ displayName: z.ZodString;
2131
617
  type: z.ZodOptional<z.ZodString>;
618
+ target: z.ZodEnum<{
619
+ automatic: "automatic";
620
+ location: "location";
621
+ pickupPoint: "pickupPoint";
622
+ }>;
623
+ targetId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
624
+ targetName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2132
625
  price: z.ZodNumber;
2133
626
  currency: z.ZodOptional<z.ZodString>;
2134
627
  sortOrder: z.ZodOptional<z.ZodNumber>;
2135
- rateId: z.ZodString;
628
+ rateId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2136
629
  description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2137
- deliveryLocationId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2138
- deliveryLocationName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2139
630
  estimatedDeliveryDays: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
2140
631
  serviceCode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2141
- metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<CheckoutMetadataValue, z.ZodTypeDef, CheckoutMetadataValue>>>;
2142
- }, "strip", z.ZodTypeAny, {
2143
- name: string;
2144
- price: number;
2145
- shippingMethodId: string;
2146
- rateId: string;
2147
- type?: string | undefined;
2148
- description?: string | null | undefined;
2149
- serviceCode?: string | null | undefined;
2150
- sortOrder?: number | undefined;
2151
- displayName?: string | undefined;
2152
- currency?: string | undefined;
2153
- deliveryLocationId?: string | null | undefined;
2154
- deliveryLocationName?: string | null | undefined;
2155
- estimatedDeliveryDays?: number | null | undefined;
2156
- metadata?: Record<string, CheckoutMetadataValue> | undefined;
2157
- }, {
2158
- name: string;
2159
- price: number;
2160
- shippingMethodId: string;
2161
- rateId: string;
2162
- type?: string | undefined;
2163
- description?: string | null | undefined;
2164
- serviceCode?: string | null | undefined;
2165
- sortOrder?: number | undefined;
2166
- displayName?: string | undefined;
2167
- currency?: string | undefined;
2168
- deliveryLocationId?: string | null | undefined;
2169
- deliveryLocationName?: string | null | undefined;
2170
- estimatedDeliveryDays?: number | null | undefined;
2171
- metadata?: Record<string, CheckoutMetadataValue> | undefined;
2172
- }>;
2173
- type ShippingRate = z.infer<typeof ShippingRateSchema>;
2174
- declare const ShippingOptionGroupSchema: z.ZodObject<{
2175
- sellerId: z.ZodString;
632
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<CheckoutMetadataValue, unknown, z.core.$ZodTypeInternals<CheckoutMetadataValue, unknown>>>>;
633
+ }, z.core.$strip>>;
634
+ }, z.core.$strip>;
635
+ export type ShippingOptionGroup = z.infer<typeof ShippingOptionGroupSchema>;
636
+ export declare const ShippingOptionsResponseSchema: z.ZodObject<{
637
+ groups: z.ZodArray<z.ZodObject<{
638
+ sellerId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
639
+ sellerName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2176
640
  shippingProfileId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2177
641
  orderAmount: z.ZodOptional<z.ZodNumber>;
2178
642
  totalWeight: z.ZodOptional<z.ZodNumber>;
2179
- itemIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
643
+ itemIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
2180
644
  rates: z.ZodArray<z.ZodObject<{
2181
- shippingMethodId: z.ZodString;
2182
- name: z.ZodString;
2183
- displayName: z.ZodOptional<z.ZodString>;
2184
- type: z.ZodOptional<z.ZodString>;
2185
- price: z.ZodNumber;
2186
- currency: z.ZodOptional<z.ZodString>;
2187
- sortOrder: z.ZodOptional<z.ZodNumber>;
2188
- rateId: z.ZodString;
2189
- description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2190
- deliveryLocationId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2191
- deliveryLocationName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2192
- estimatedDeliveryDays: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
2193
- serviceCode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2194
- metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<CheckoutMetadataValue, z.ZodTypeDef, CheckoutMetadataValue>>>;
2195
- }, "strip", z.ZodTypeAny, {
2196
- name: string;
2197
- price: number;
2198
- shippingMethodId: string;
2199
- rateId: string;
2200
- type?: string | undefined;
2201
- description?: string | null | undefined;
2202
- serviceCode?: string | null | undefined;
2203
- sortOrder?: number | undefined;
2204
- displayName?: string | undefined;
2205
- currency?: string | undefined;
2206
- deliveryLocationId?: string | null | undefined;
2207
- deliveryLocationName?: string | null | undefined;
2208
- estimatedDeliveryDays?: number | null | undefined;
2209
- metadata?: Record<string, CheckoutMetadataValue> | undefined;
2210
- }, {
2211
- name: string;
2212
- price: number;
2213
- shippingMethodId: string;
2214
- rateId: string;
2215
- type?: string | undefined;
2216
- description?: string | null | undefined;
2217
- serviceCode?: string | null | undefined;
2218
- sortOrder?: number | undefined;
2219
- displayName?: string | undefined;
2220
- currency?: string | undefined;
2221
- deliveryLocationId?: string | null | undefined;
2222
- deliveryLocationName?: string | null | undefined;
2223
- estimatedDeliveryDays?: number | null | undefined;
2224
- metadata?: Record<string, CheckoutMetadataValue> | undefined;
2225
- }>, "many">;
2226
- }, "strip", z.ZodTypeAny, {
2227
- sellerId: string;
2228
- rates: {
2229
- name: string;
2230
- price: number;
2231
- shippingMethodId: string;
2232
- rateId: string;
2233
- type?: string | undefined;
2234
- description?: string | null | undefined;
2235
- serviceCode?: string | null | undefined;
2236
- sortOrder?: number | undefined;
2237
- displayName?: string | undefined;
2238
- currency?: string | undefined;
2239
- deliveryLocationId?: string | null | undefined;
2240
- deliveryLocationName?: string | null | undefined;
2241
- estimatedDeliveryDays?: number | null | undefined;
2242
- metadata?: Record<string, CheckoutMetadataValue> | undefined;
2243
- }[];
2244
- shippingProfileId?: string | null | undefined;
2245
- orderAmount?: number | undefined;
2246
- totalWeight?: number | undefined;
2247
- itemIds?: string[] | undefined;
2248
- }, {
2249
- sellerId: string;
2250
- rates: {
2251
- name: string;
2252
- price: number;
2253
- shippingMethodId: string;
2254
- rateId: string;
2255
- type?: string | undefined;
2256
- description?: string | null | undefined;
2257
- serviceCode?: string | null | undefined;
2258
- sortOrder?: number | undefined;
2259
- displayName?: string | undefined;
2260
- currency?: string | undefined;
2261
- deliveryLocationId?: string | null | undefined;
2262
- deliveryLocationName?: string | null | undefined;
2263
- estimatedDeliveryDays?: number | null | undefined;
2264
- metadata?: Record<string, CheckoutMetadataValue> | undefined;
2265
- }[];
2266
- shippingProfileId?: string | null | undefined;
2267
- orderAmount?: number | undefined;
2268
- totalWeight?: number | undefined;
2269
- itemIds?: string[] | undefined;
2270
- }>;
2271
- type ShippingOptionGroup = z.infer<typeof ShippingOptionGroupSchema>;
2272
- declare const ShippingOptionsResponseSchema: z.ZodObject<{
2273
- groups: z.ZodArray<z.ZodObject<{
2274
- sellerId: z.ZodString;
2275
- shippingProfileId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2276
- orderAmount: z.ZodOptional<z.ZodNumber>;
2277
- totalWeight: z.ZodOptional<z.ZodNumber>;
2278
- itemIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2279
- rates: z.ZodArray<z.ZodObject<{
2280
- shippingMethodId: z.ZodString;
2281
- name: z.ZodString;
2282
- displayName: z.ZodOptional<z.ZodString>;
2283
- type: z.ZodOptional<z.ZodString>;
2284
- price: z.ZodNumber;
2285
- currency: z.ZodOptional<z.ZodString>;
2286
- sortOrder: z.ZodOptional<z.ZodNumber>;
2287
- rateId: z.ZodString;
2288
- description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2289
- deliveryLocationId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2290
- deliveryLocationName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2291
- estimatedDeliveryDays: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
2292
- serviceCode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2293
- metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<CheckoutMetadataValue, z.ZodTypeDef, CheckoutMetadataValue>>>;
2294
- }, "strip", z.ZodTypeAny, {
2295
- name: string;
2296
- price: number;
2297
- shippingMethodId: string;
2298
- rateId: string;
2299
- type?: string | undefined;
2300
- description?: string | null | undefined;
2301
- serviceCode?: string | null | undefined;
2302
- sortOrder?: number | undefined;
2303
- displayName?: string | undefined;
2304
- currency?: string | undefined;
2305
- deliveryLocationId?: string | null | undefined;
2306
- deliveryLocationName?: string | null | undefined;
2307
- estimatedDeliveryDays?: number | null | undefined;
2308
- metadata?: Record<string, CheckoutMetadataValue> | undefined;
2309
- }, {
2310
- name: string;
2311
- price: number;
2312
- shippingMethodId: string;
2313
- rateId: string;
2314
- type?: string | undefined;
2315
- description?: string | null | undefined;
2316
- serviceCode?: string | null | undefined;
2317
- sortOrder?: number | undefined;
2318
- displayName?: string | undefined;
2319
- currency?: string | undefined;
2320
- deliveryLocationId?: string | null | undefined;
2321
- deliveryLocationName?: string | null | undefined;
2322
- estimatedDeliveryDays?: number | null | undefined;
2323
- metadata?: Record<string, CheckoutMetadataValue> | undefined;
2324
- }>, "many">;
2325
- }, "strip", z.ZodTypeAny, {
2326
- sellerId: string;
2327
- rates: {
2328
- name: string;
2329
- price: number;
2330
- shippingMethodId: string;
2331
- rateId: string;
2332
- type?: string | undefined;
2333
- description?: string | null | undefined;
2334
- serviceCode?: string | null | undefined;
2335
- sortOrder?: number | undefined;
2336
- displayName?: string | undefined;
2337
- currency?: string | undefined;
2338
- deliveryLocationId?: string | null | undefined;
2339
- deliveryLocationName?: string | null | undefined;
2340
- estimatedDeliveryDays?: number | null | undefined;
2341
- metadata?: Record<string, CheckoutMetadataValue> | undefined;
2342
- }[];
2343
- shippingProfileId?: string | null | undefined;
2344
- orderAmount?: number | undefined;
2345
- totalWeight?: number | undefined;
2346
- itemIds?: string[] | undefined;
2347
- }, {
2348
- sellerId: string;
2349
- rates: {
2350
- name: string;
2351
- price: number;
2352
- shippingMethodId: string;
2353
- rateId: string;
2354
- type?: string | undefined;
2355
- description?: string | null | undefined;
2356
- serviceCode?: string | null | undefined;
2357
- sortOrder?: number | undefined;
2358
- displayName?: string | undefined;
2359
- currency?: string | undefined;
2360
- deliveryLocationId?: string | null | undefined;
2361
- deliveryLocationName?: string | null | undefined;
2362
- estimatedDeliveryDays?: number | null | undefined;
2363
- metadata?: Record<string, CheckoutMetadataValue> | undefined;
2364
- }[];
2365
- shippingProfileId?: string | null | undefined;
2366
- orderAmount?: number | undefined;
2367
- totalWeight?: number | undefined;
2368
- itemIds?: string[] | undefined;
2369
- }>, "many">;
2370
- }, "strip", z.ZodTypeAny, {
2371
- groups: {
2372
- sellerId: string;
2373
- rates: {
2374
- name: string;
2375
- price: number;
2376
- shippingMethodId: string;
2377
- rateId: string;
2378
- type?: string | undefined;
2379
- description?: string | null | undefined;
2380
- serviceCode?: string | null | undefined;
2381
- sortOrder?: number | undefined;
2382
- displayName?: string | undefined;
2383
- currency?: string | undefined;
2384
- deliveryLocationId?: string | null | undefined;
2385
- deliveryLocationName?: string | null | undefined;
2386
- estimatedDeliveryDays?: number | null | undefined;
2387
- metadata?: Record<string, CheckoutMetadataValue> | undefined;
2388
- }[];
2389
- shippingProfileId?: string | null | undefined;
2390
- orderAmount?: number | undefined;
2391
- totalWeight?: number | undefined;
2392
- itemIds?: string[] | undefined;
2393
- }[];
2394
- }, {
2395
- groups: {
2396
- sellerId: string;
2397
- rates: {
2398
- name: string;
2399
- price: number;
2400
- shippingMethodId: string;
2401
- rateId: string;
2402
- type?: string | undefined;
2403
- description?: string | null | undefined;
2404
- serviceCode?: string | null | undefined;
2405
- sortOrder?: number | undefined;
2406
- displayName?: string | undefined;
2407
- currency?: string | undefined;
2408
- deliveryLocationId?: string | null | undefined;
2409
- deliveryLocationName?: string | null | undefined;
2410
- estimatedDeliveryDays?: number | null | undefined;
2411
- metadata?: Record<string, CheckoutMetadataValue> | undefined;
2412
- }[];
2413
- shippingProfileId?: string | null | undefined;
2414
- orderAmount?: number | undefined;
2415
- totalWeight?: number | undefined;
2416
- itemIds?: string[] | undefined;
2417
- }[];
2418
- }>;
2419
- type ShippingOptionsResponse = z.infer<typeof ShippingOptionsResponseSchema>;
2420
- declare const GetShippingOptionsParamsSchema: z.ZodObject<{
2421
- cartId: z.ZodUnion<[z.ZodString, z.ZodString]>;
2422
- postalCode: z.ZodString;
2423
- }, "strip", z.ZodTypeAny, {
2424
- postalCode: string;
2425
- cartId: string;
2426
- }, {
2427
- postalCode: string;
2428
- cartId: string;
2429
- }>;
2430
- type GetShippingOptionsParams = z.input<typeof GetShippingOptionsParamsSchema>;
2431
- declare const PutShippingMethodParamsSchema: z.ZodObject<{
2432
- cartId: z.ZodUnion<[z.ZodString, z.ZodString]>;
2433
- rateId: z.ZodString;
2434
- shippingMethodId: z.ZodString;
2435
- serviceCode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2436
- sellerId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2437
- shippingProfileId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2438
- locationId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2439
- pickupPointId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2440
- scheduledDate: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2441
- scheduledTime: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2442
- }, "strip", z.ZodTypeAny, {
2443
- shippingMethodId: string;
2444
- rateId: string;
2445
- cartId: string;
2446
- sellerId?: string | null | undefined;
2447
- locationId?: string | null | undefined;
2448
- pickupPointId?: string | null | undefined;
2449
- scheduledDate?: string | null | undefined;
2450
- scheduledTime?: string | null | undefined;
2451
- serviceCode?: string | null | undefined;
2452
- shippingProfileId?: string | null | undefined;
2453
- }, {
2454
- shippingMethodId: string;
2455
- rateId: string;
2456
- cartId: string;
2457
- sellerId?: string | null | undefined;
2458
- locationId?: string | null | undefined;
2459
- pickupPointId?: string | null | undefined;
2460
- scheduledDate?: string | null | undefined;
2461
- scheduledTime?: string | null | undefined;
2462
- serviceCode?: string | null | undefined;
2463
- shippingProfileId?: string | null | undefined;
2464
- }>;
2465
- type PutShippingMethodParams = z.input<typeof PutShippingMethodParamsSchema>;
2466
- declare const CartPaymentReceiptResponseSchema: z.ZodObject<{
2467
- id: z.ZodString;
2468
- url: z.ZodString;
2469
- }, "strip", z.ZodTypeAny, {
2470
- id: string;
2471
- url: string;
2472
- }, {
2473
- id: string;
2474
- url: string;
2475
- }>;
2476
- type CartPaymentReceiptResponse = z.infer<typeof CartPaymentReceiptResponseSchema>;
2477
- type UploadPaymentReceiptParams = {
2478
- cartId: string;
2479
- file: Blob;
2480
- fileName?: string;
645
+ shippingMethodId: z.ZodString;
646
+ name: z.ZodString;
647
+ displayName: z.ZodString;
648
+ type: z.ZodOptional<z.ZodString>;
649
+ target: z.ZodEnum<{
650
+ automatic: "automatic";
651
+ location: "location";
652
+ pickupPoint: "pickupPoint";
653
+ }>;
654
+ targetId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
655
+ targetName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
656
+ price: z.ZodNumber;
657
+ currency: z.ZodOptional<z.ZodString>;
658
+ sortOrder: z.ZodOptional<z.ZodNumber>;
659
+ rateId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
660
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
661
+ estimatedDeliveryDays: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
662
+ serviceCode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
663
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<CheckoutMetadataValue, unknown, z.core.$ZodTypeInternals<CheckoutMetadataValue, unknown>>>>;
664
+ }, z.core.$strip>>;
665
+ }, z.core.$strip>>;
666
+ }, z.core.$strip>;
667
+ export type ShippingOptionsResponse = z.infer<typeof ShippingOptionsResponseSchema>;
668
+ export declare const GetShippingOptionsParamsSchema: z.ZodObject<{
669
+ cartToken: z.ZodString;
670
+ postalCode: z.ZodString;
671
+ }, z.core.$strip>;
672
+ export type GetShippingOptionsParams = z.input<typeof GetShippingOptionsParamsSchema>;
673
+ export declare const PutShippingMethodParamsSchema: z.ZodObject<{
674
+ cartToken: z.ZodString;
675
+ rateId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
676
+ shippingMethodId: z.ZodString;
677
+ target: z.ZodEnum<{
678
+ automatic: "automatic";
679
+ location: "location";
680
+ pickupPoint: "pickupPoint";
681
+ }>;
682
+ targetId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
683
+ serviceCode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
684
+ sellerId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
685
+ shippingProfileId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
686
+ scheduledDate: z.ZodOptional<z.ZodNullable<z.ZodString>>;
687
+ scheduledTime: z.ZodOptional<z.ZodNullable<z.ZodString>>;
688
+ }, z.core.$strip>;
689
+ export type PutShippingMethodParams = z.input<typeof PutShippingMethodParamsSchema>;
690
+ export declare const PutCartPaymentMethodParamsSchema: z.ZodObject<{
691
+ cartToken: z.ZodString;
692
+ paymentMethodCode: z.ZodString;
693
+ }, z.core.$strip>;
694
+ export type PutCartPaymentMethodParams = z.input<typeof PutCartPaymentMethodParamsSchema>;
695
+ export declare const CartPaymentReceiptResponseSchema: z.ZodObject<{
696
+ id: z.ZodString;
697
+ url: z.ZodString;
698
+ }, z.core.$strip>;
699
+ export type CartPaymentReceiptResponse = z.infer<typeof CartPaymentReceiptResponseSchema>;
700
+ export type UploadPaymentReceiptParams = {
701
+ cartToken: string;
702
+ file: Blob;
703
+ fileName?: string;
2481
704
  };
2482
- declare const CartPromotionCodeParamsSchema: z.ZodObject<{
2483
- cartId: z.ZodUnion<[z.ZodString, z.ZodString]>;
2484
- code: z.ZodString;
2485
- }, "strip", z.ZodTypeAny, {
2486
- code: string;
2487
- cartId: string;
2488
- }, {
2489
- code: string;
2490
- cartId: string;
2491
- }>;
2492
- type CartPromotionCodeParams = z.input<typeof CartPromotionCodeParamsSchema>;
2493
-
2494
- export { type CartAddressWrite, CartAddressWriteSchema, type CartAddressesParams, CartAddressesParamsSchema, type CartBuyerParams, CartBuyerParamsSchema, type CartCheckoutParams, CartCheckoutParamsSchema, type CartCheckoutPayment, CartCheckoutPaymentActionSchema, CartCheckoutPaymentSchema, type CartCheckoutReadParams, CartCheckoutReadParamsSchema, type CartCheckoutReadResponse, CartCheckoutReadResponseSchema, type CartCheckoutResponse, CartCheckoutResponseSchema, type CartPaymentMethod, CartPaymentMethodSchema, type CartPaymentReceiptResponse, CartPaymentReceiptResponseSchema, type CartPromotionCodeParams, CartPromotionCodeParamsSchema, type CheckoutMetadataValue, CheckoutMetadataValueSchema, type GetShippingOptionsParams, GetShippingOptionsParamsSchema, type PutShippingMethodParams, PutShippingMethodParamsSchema, type ShippingOptionGroup, ShippingOptionGroupSchema, type ShippingOptionsResponse, ShippingOptionsResponseSchema, type ShippingRate, ShippingRateSchema, type StorefrontOrderBump, StorefrontOrderBumpSchema, type UploadPaymentReceiptParams };
705
+ export declare const CartPromotionCodeParamsSchema: z.ZodObject<{
706
+ cartToken: z.ZodString;
707
+ code: z.ZodString;
708
+ }, z.core.$strip>;
709
+ export type CartPromotionCodeParams = z.input<typeof CartPromotionCodeParamsSchema>;