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