@commercelayer/sdk 7.11.0 → 7.12.1

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 (1666) hide show
  1. package/README.md +15 -20
  2. package/lib/api-BL9tZFHY.d.cts +18190 -0
  3. package/lib/api-DZQtGYwQ.d.ts +18190 -0
  4. package/lib/api.cjs +265 -270
  5. package/lib/api.d.cts +1 -1
  6. package/lib/api.d.ts +1 -1
  7. package/lib/api.js +134 -135
  8. package/lib/bundle.cjs +408 -276
  9. package/lib/bundle.cjs.map +1 -1
  10. package/lib/bundle.d.cts +3 -2
  11. package/lib/bundle.d.ts +3 -2
  12. package/lib/bundle.js +407 -275
  13. package/lib/bundle.js.map +1 -1
  14. package/lib/chunk-24NE5SNH.cjs +56 -0
  15. package/lib/chunk-24NE5SNH.cjs.map +1 -0
  16. package/lib/chunk-2BD5EQXE.js +51 -0
  17. package/lib/chunk-2BD5EQXE.js.map +1 -0
  18. package/lib/chunk-2CFM6BXC.cjs +95 -0
  19. package/lib/chunk-2CFM6BXC.cjs.map +1 -0
  20. package/lib/chunk-2DG24Y6O.cjs +51 -0
  21. package/lib/chunk-2DG24Y6O.cjs.map +1 -0
  22. package/lib/chunk-2DQPE4FR.cjs +51 -0
  23. package/lib/chunk-2DQPE4FR.cjs.map +1 -0
  24. package/lib/chunk-2GU7EWJC.js +44 -0
  25. package/lib/chunk-2GU7EWJC.js.map +1 -0
  26. package/lib/chunk-2ILQ3GLM.cjs +47 -0
  27. package/lib/chunk-2ILQ3GLM.cjs.map +1 -0
  28. package/lib/chunk-2IW23WZS.cjs +47 -0
  29. package/lib/chunk-2IW23WZS.cjs.map +1 -0
  30. package/lib/chunk-2NFQDGNK.cjs +47 -0
  31. package/lib/chunk-2NFQDGNK.cjs.map +1 -0
  32. package/lib/chunk-2S7PLJHX.js +32 -0
  33. package/lib/chunk-2S7PLJHX.js.map +1 -0
  34. package/lib/chunk-2TXRJQTU.cjs +44 -0
  35. package/lib/chunk-2TXRJQTU.cjs.map +1 -0
  36. package/lib/chunk-2WH7FZLF.js +37 -0
  37. package/lib/chunk-2WH7FZLF.js.map +1 -0
  38. package/lib/chunk-3D4FUEMG.js +49 -0
  39. package/lib/chunk-3D4FUEMG.js.map +1 -0
  40. package/lib/chunk-3EX76AZW.js +3 -0
  41. package/lib/chunk-3EX76AZW.js.map +1 -0
  42. package/lib/chunk-3JAP7TVC.js +51 -0
  43. package/lib/chunk-3JAP7TVC.js.map +1 -0
  44. package/lib/chunk-43NY4KEG.js +49 -0
  45. package/lib/chunk-43NY4KEG.js.map +1 -0
  46. package/lib/chunk-44LYFX4Z.js +69 -0
  47. package/lib/chunk-44LYFX4Z.js.map +1 -0
  48. package/lib/chunk-46GP7OXR.js +96 -0
  49. package/lib/chunk-46GP7OXR.js.map +1 -0
  50. package/lib/chunk-4DIICB2C.js +68 -0
  51. package/lib/chunk-4DIICB2C.js.map +1 -0
  52. package/lib/chunk-4GRYDY72.js +36 -0
  53. package/lib/chunk-4GRYDY72.js.map +1 -0
  54. package/lib/chunk-4HI7WNDF.cjs +55 -0
  55. package/lib/chunk-4HI7WNDF.cjs.map +1 -0
  56. package/lib/chunk-4POJYIPJ.js +95 -0
  57. package/lib/chunk-4POJYIPJ.js.map +1 -0
  58. package/lib/chunk-4QWRJHKI.cjs +47 -0
  59. package/lib/chunk-4QWRJHKI.cjs.map +1 -0
  60. package/lib/chunk-4UPCZNRS.cjs +34 -0
  61. package/lib/chunk-4UPCZNRS.cjs.map +1 -0
  62. package/lib/chunk-4XTBGJWW.js +52 -0
  63. package/lib/chunk-4XTBGJWW.js.map +1 -0
  64. package/lib/chunk-537HL2FZ.cjs +107 -0
  65. package/lib/chunk-537HL2FZ.cjs.map +1 -0
  66. package/lib/chunk-54PMSXTI.cjs +51 -0
  67. package/lib/chunk-54PMSXTI.cjs.map +1 -0
  68. package/lib/chunk-57GQ3X6P.js +91 -0
  69. package/lib/chunk-57GQ3X6P.js.map +1 -0
  70. package/lib/chunk-5ARYINZ2.cjs +50 -0
  71. package/lib/chunk-5ARYINZ2.cjs.map +1 -0
  72. package/lib/chunk-5EIKNK5S.js +66 -0
  73. package/lib/chunk-5EIKNK5S.js.map +1 -0
  74. package/lib/chunk-5J35GMM3.js +28 -0
  75. package/lib/chunk-5J35GMM3.js.map +1 -0
  76. package/lib/chunk-5Q2MYZ5B.js +59 -0
  77. package/lib/chunk-5Q2MYZ5B.js.map +1 -0
  78. package/lib/chunk-5TOKIUAB.js +89 -0
  79. package/lib/chunk-5TOKIUAB.js.map +1 -0
  80. package/lib/chunk-5UVYU4XN.cjs +51 -0
  81. package/lib/chunk-5UVYU4XN.cjs.map +1 -0
  82. package/lib/chunk-5XLKZYDF.cjs +30 -0
  83. package/lib/chunk-5XLKZYDF.cjs.map +1 -0
  84. package/lib/chunk-5YMHXTJG.cjs +4 -0
  85. package/lib/chunk-5YMHXTJG.cjs.map +1 -0
  86. package/lib/chunk-64WLJSJG.cjs +51 -0
  87. package/lib/chunk-64WLJSJG.cjs.map +1 -0
  88. package/lib/chunk-6BMCLZBQ.cjs +51 -0
  89. package/lib/chunk-6BMCLZBQ.cjs.map +1 -0
  90. package/lib/chunk-6BUVYKSP.cjs +49 -0
  91. package/lib/chunk-6BUVYKSP.cjs.map +1 -0
  92. package/lib/chunk-6CRXGM2S.cjs +50 -0
  93. package/lib/chunk-6CRXGM2S.cjs.map +1 -0
  94. package/lib/chunk-6RG3EDXD.js +49 -0
  95. package/lib/chunk-6RG3EDXD.js.map +1 -0
  96. package/lib/chunk-6TBUF3H2.cjs +68 -0
  97. package/lib/chunk-6TBUF3H2.cjs.map +1 -0
  98. package/lib/chunk-6TO7G4WZ.cjs +118 -0
  99. package/lib/chunk-6TO7G4WZ.cjs.map +1 -0
  100. package/lib/chunk-6VN4NEUS.js +52 -0
  101. package/lib/chunk-6VN4NEUS.js.map +1 -0
  102. package/lib/chunk-6X3SERAO.cjs +39 -0
  103. package/lib/chunk-6X3SERAO.cjs.map +1 -0
  104. package/lib/chunk-6XX3G5GF.cjs +61 -0
  105. package/lib/chunk-6XX3G5GF.cjs.map +1 -0
  106. package/lib/chunk-73PTWYSG.js +48 -0
  107. package/lib/chunk-73PTWYSG.js.map +1 -0
  108. package/lib/chunk-73QKCTFL.cjs +95 -0
  109. package/lib/chunk-73QKCTFL.cjs.map +1 -0
  110. package/lib/chunk-74OFKAKF.js +54 -0
  111. package/lib/chunk-74OFKAKF.js.map +1 -0
  112. package/lib/chunk-7C2RQMWG.cjs +56 -0
  113. package/lib/chunk-7C2RQMWG.cjs.map +1 -0
  114. package/lib/chunk-7CG3LRH3.js +32 -0
  115. package/lib/chunk-7CG3LRH3.js.map +1 -0
  116. package/lib/chunk-7OHJVGWS.js +93 -0
  117. package/lib/chunk-7OHJVGWS.js.map +1 -0
  118. package/lib/chunk-7SB7OFM7.js +41 -0
  119. package/lib/chunk-7SB7OFM7.js.map +1 -0
  120. package/lib/chunk-7W4HDA22.js +61 -0
  121. package/lib/chunk-7W4HDA22.js.map +1 -0
  122. package/lib/chunk-7YTV5CFU.js +113 -0
  123. package/lib/chunk-7YTV5CFU.js.map +1 -0
  124. package/lib/chunk-A5P5CV26.js +99 -0
  125. package/lib/chunk-A5P5CV26.js.map +1 -0
  126. package/lib/chunk-ADBL6GHI.js +287 -0
  127. package/lib/chunk-ADBL6GHI.js.map +1 -0
  128. package/lib/chunk-AFCHVA7J.cjs +51 -0
  129. package/lib/chunk-AFCHVA7J.cjs.map +1 -0
  130. package/lib/chunk-ALWCRWTW.js +41 -0
  131. package/lib/chunk-ALWCRWTW.js.map +1 -0
  132. package/lib/chunk-ATUQUSZW.cjs +42 -0
  133. package/lib/chunk-ATUQUSZW.cjs.map +1 -0
  134. package/lib/chunk-B3C3H44A.cjs +47 -0
  135. package/lib/chunk-B3C3H44A.cjs.map +1 -0
  136. package/lib/chunk-B66V3CZY.cjs +56 -0
  137. package/lib/chunk-B66V3CZY.cjs.map +1 -0
  138. package/lib/chunk-BA5RFQPZ.cjs +95 -0
  139. package/lib/chunk-BA5RFQPZ.cjs.map +1 -0
  140. package/lib/chunk-BAHXWPSG.cjs +61 -0
  141. package/lib/chunk-BAHXWPSG.cjs.map +1 -0
  142. package/lib/chunk-BDXU3PHK.cjs +51 -0
  143. package/lib/chunk-BDXU3PHK.cjs.map +1 -0
  144. package/lib/chunk-BFGICGFK.js +73 -0
  145. package/lib/chunk-BFGICGFK.js.map +1 -0
  146. package/lib/chunk-BKHI7LSW.js +51 -0
  147. package/lib/chunk-BKHI7LSW.js.map +1 -0
  148. package/lib/chunk-BMMDE6ES.cjs +47 -0
  149. package/lib/chunk-BMMDE6ES.cjs.map +1 -0
  150. package/lib/chunk-BNRBLHHS.js +37 -0
  151. package/lib/chunk-BNRBLHHS.js.map +1 -0
  152. package/lib/chunk-BQIGX57O.js +48 -0
  153. package/lib/chunk-BQIGX57O.js.map +1 -0
  154. package/lib/chunk-BVJSDDPT.js +68 -0
  155. package/lib/chunk-BVJSDDPT.js.map +1 -0
  156. package/lib/chunk-BW4KC4JJ.js +48 -0
  157. package/lib/chunk-BW4KC4JJ.js.map +1 -0
  158. package/lib/chunk-C5TXM4TK.js +73 -0
  159. package/lib/chunk-C5TXM4TK.js.map +1 -0
  160. package/lib/chunk-C6RXW4YY.cjs +89 -0
  161. package/lib/chunk-C6RXW4YY.cjs.map +1 -0
  162. package/lib/chunk-C7K53SPD.js +24 -0
  163. package/lib/chunk-C7K53SPD.js.map +1 -0
  164. package/lib/chunk-CEZMXGF2.js +51 -0
  165. package/lib/chunk-CEZMXGF2.js.map +1 -0
  166. package/lib/chunk-CGJSEELZ.js +37 -0
  167. package/lib/chunk-CGJSEELZ.js.map +1 -0
  168. package/lib/chunk-CHD7QDKS.js +59 -0
  169. package/lib/chunk-CHD7QDKS.js.map +1 -0
  170. package/lib/chunk-CIKMIKZ6.js +42 -0
  171. package/lib/chunk-CIKMIKZ6.js.map +1 -0
  172. package/lib/chunk-CN4ZAHGA.js +40 -0
  173. package/lib/chunk-CN4ZAHGA.js.map +1 -0
  174. package/lib/chunk-CNDVEHRU.cjs +56 -0
  175. package/lib/chunk-CNDVEHRU.cjs.map +1 -0
  176. package/lib/chunk-COHQZCSV.js +54 -0
  177. package/lib/chunk-COHQZCSV.js.map +1 -0
  178. package/lib/chunk-CVEC2QZK.cjs +55 -0
  179. package/lib/chunk-CVEC2QZK.cjs.map +1 -0
  180. package/lib/chunk-CXIIIZIG.js +49 -0
  181. package/lib/chunk-CXIIIZIG.js.map +1 -0
  182. package/lib/chunk-CYBDCJQP.cjs +47 -0
  183. package/lib/chunk-CYBDCJQP.cjs.map +1 -0
  184. package/lib/chunk-D2TATW5F.cjs +550 -0
  185. package/lib/chunk-D2TATW5F.cjs.map +1 -0
  186. package/lib/chunk-D6LGIBLP.js +65 -0
  187. package/lib/chunk-D6LGIBLP.js.map +1 -0
  188. package/lib/chunk-D7CJRB3O.cjs +42 -0
  189. package/lib/chunk-D7CJRB3O.cjs.map +1 -0
  190. package/lib/chunk-DBZRDDQC.js +51 -0
  191. package/lib/chunk-DBZRDDQC.js.map +1 -0
  192. package/lib/chunk-DGN6CMSF.cjs +54 -0
  193. package/lib/chunk-DGN6CMSF.cjs.map +1 -0
  194. package/lib/chunk-DMYSSEB4.js +36 -0
  195. package/lib/chunk-DMYSSEB4.js.map +1 -0
  196. package/lib/chunk-DRHA2WTQ.js +67 -0
  197. package/lib/chunk-DRHA2WTQ.js.map +1 -0
  198. package/lib/chunk-DU7BKVA6.js +37 -0
  199. package/lib/chunk-DU7BKVA6.js.map +1 -0
  200. package/lib/chunk-DUQUDIXD.js +54 -0
  201. package/lib/chunk-DUQUDIXD.js.map +1 -0
  202. package/lib/chunk-E23O3HTZ.js +45 -0
  203. package/lib/chunk-E23O3HTZ.js.map +1 -0
  204. package/lib/chunk-E347ZWT4.js +49 -0
  205. package/lib/chunk-E347ZWT4.js.map +1 -0
  206. package/lib/chunk-EBBRMPEP.js +59 -0
  207. package/lib/chunk-EBBRMPEP.js.map +1 -0
  208. package/lib/chunk-EURZY6LF.js +45 -0
  209. package/lib/chunk-EURZY6LF.js.map +1 -0
  210. package/lib/chunk-EV2V5IMS.cjs +71 -0
  211. package/lib/chunk-EV2V5IMS.cjs.map +1 -0
  212. package/lib/chunk-EVZXYAFX.cjs +47 -0
  213. package/lib/chunk-EVZXYAFX.cjs.map +1 -0
  214. package/lib/chunk-EWGNTRWZ.cjs +51 -0
  215. package/lib/chunk-EWGNTRWZ.cjs.map +1 -0
  216. package/lib/chunk-EWPZW23I.cjs +50 -0
  217. package/lib/chunk-EWPZW23I.cjs.map +1 -0
  218. package/lib/chunk-EZBICJIP.cjs +30 -0
  219. package/lib/chunk-EZBICJIP.cjs.map +1 -0
  220. package/lib/chunk-FD73BWXU.js +93 -0
  221. package/lib/chunk-FD73BWXU.js.map +1 -0
  222. package/lib/chunk-FDG63RME.js +49 -0
  223. package/lib/chunk-FDG63RME.js.map +1 -0
  224. package/lib/chunk-FTEO3U3B.js +105 -0
  225. package/lib/chunk-FTEO3U3B.js.map +1 -0
  226. package/lib/chunk-FYD5UJFR.js +87 -0
  227. package/lib/chunk-FYD5UJFR.js.map +1 -0
  228. package/lib/chunk-FZQEBN4H.js +124 -0
  229. package/lib/chunk-FZQEBN4H.js.map +1 -0
  230. package/lib/chunk-GBFK7JL7.cjs +156 -0
  231. package/lib/chunk-GBFK7JL7.cjs.map +1 -0
  232. package/lib/chunk-GDB54Z5E.cjs +47 -0
  233. package/lib/chunk-GDB54Z5E.cjs.map +1 -0
  234. package/lib/chunk-GDMYCRU2.cjs +56 -0
  235. package/lib/chunk-GDMYCRU2.cjs.map +1 -0
  236. package/lib/chunk-GEYB6J6Q.cjs +51 -0
  237. package/lib/chunk-GEYB6J6Q.cjs.map +1 -0
  238. package/lib/chunk-GGOX5RVE.cjs +63 -0
  239. package/lib/chunk-GGOX5RVE.cjs.map +1 -0
  240. package/lib/chunk-GHXAIVNL.cjs +50 -0
  241. package/lib/chunk-GHXAIVNL.cjs.map +1 -0
  242. package/lib/chunk-GM6TOVU3.cjs +63 -0
  243. package/lib/chunk-GM6TOVU3.cjs.map +1 -0
  244. package/lib/chunk-GQ2VOYQW.cjs +47 -0
  245. package/lib/chunk-GQ2VOYQW.cjs.map +1 -0
  246. package/lib/chunk-GQSHLDFM.js +41 -0
  247. package/lib/chunk-GQSHLDFM.js.map +1 -0
  248. package/lib/chunk-GXS65DGD.js +93 -0
  249. package/lib/chunk-GXS65DGD.js.map +1 -0
  250. package/lib/chunk-HA2JISXS.cjs +56 -0
  251. package/lib/chunk-HA2JISXS.cjs.map +1 -0
  252. package/lib/chunk-HKE5VQN6.js +47 -0
  253. package/lib/chunk-HKE5VQN6.js.map +1 -0
  254. package/lib/chunk-HVB7P2BK.cjs +62 -0
  255. package/lib/chunk-HVB7P2BK.cjs.map +1 -0
  256. package/lib/chunk-HYJ7Z6D7.js +40 -0
  257. package/lib/chunk-HYJ7Z6D7.js.map +1 -0
  258. package/lib/chunk-IA3XLO6M.js +54 -0
  259. package/lib/chunk-IA3XLO6M.js.map +1 -0
  260. package/lib/chunk-ICFDBQ5X.cjs +75 -0
  261. package/lib/chunk-ICFDBQ5X.cjs.map +1 -0
  262. package/lib/chunk-IKTZENHC.js +53 -0
  263. package/lib/chunk-IKTZENHC.js.map +1 -0
  264. package/lib/chunk-ILX5NRZ6.cjs +55 -0
  265. package/lib/chunk-ILX5NRZ6.cjs.map +1 -0
  266. package/lib/chunk-ISUCEW36.cjs +39 -0
  267. package/lib/chunk-ISUCEW36.cjs.map +1 -0
  268. package/lib/chunk-IW6D2ATB.cjs +47 -0
  269. package/lib/chunk-IW6D2ATB.cjs.map +1 -0
  270. package/lib/chunk-J3EPWRQF.js +54 -0
  271. package/lib/chunk-J3EPWRQF.js.map +1 -0
  272. package/lib/chunk-JF7ZZKBL.cjs +70 -0
  273. package/lib/chunk-JF7ZZKBL.cjs.map +1 -0
  274. package/lib/chunk-JMINY25P.js +53 -0
  275. package/lib/chunk-JMINY25P.js.map +1 -0
  276. package/lib/chunk-JQWRLR32.js +37 -0
  277. package/lib/chunk-JQWRLR32.js.map +1 -0
  278. package/lib/chunk-JWSRNFYM.js +50 -0
  279. package/lib/chunk-JWSRNFYM.js.map +1 -0
  280. package/lib/chunk-JWZ3H57F.js +40 -0
  281. package/lib/chunk-JWZ3H57F.js.map +1 -0
  282. package/lib/chunk-JZ3NGNOU.cjs +75 -0
  283. package/lib/chunk-JZ3NGNOU.cjs.map +1 -0
  284. package/lib/chunk-K45H4QRJ.cjs +91 -0
  285. package/lib/chunk-K45H4QRJ.cjs.map +1 -0
  286. package/lib/chunk-KAEKTLB6.cjs +43 -0
  287. package/lib/chunk-KAEKTLB6.cjs.map +1 -0
  288. package/lib/chunk-KIYGE6PC.cjs +47 -0
  289. package/lib/chunk-KIYGE6PC.cjs.map +1 -0
  290. package/lib/chunk-KPX3O2BQ.cjs +34 -0
  291. package/lib/chunk-KPX3O2BQ.cjs.map +1 -0
  292. package/lib/chunk-KQ62ZCOB.js +45 -0
  293. package/lib/chunk-KQ62ZCOB.js.map +1 -0
  294. package/lib/chunk-KRINYHI4.js +48 -0
  295. package/lib/chunk-KRINYHI4.js.map +1 -0
  296. package/lib/chunk-KW6OBE6A.js +93 -0
  297. package/lib/chunk-KW6OBE6A.js.map +1 -0
  298. package/lib/chunk-KZHDWO2M.js +54 -0
  299. package/lib/chunk-KZHDWO2M.js.map +1 -0
  300. package/lib/chunk-L36P6TCW.cjs +61 -0
  301. package/lib/chunk-L36P6TCW.cjs.map +1 -0
  302. package/lib/chunk-L7UYIV5U.js +52 -0
  303. package/lib/chunk-L7UYIV5U.js.map +1 -0
  304. package/lib/chunk-LH3NVT5R.cjs +67 -0
  305. package/lib/chunk-LH3NVT5R.cjs.map +1 -0
  306. package/lib/chunk-LLV57FCL.cjs +95 -0
  307. package/lib/chunk-LLV57FCL.cjs.map +1 -0
  308. package/lib/chunk-LMDYSL5J.cjs +50 -0
  309. package/lib/chunk-LMDYSL5J.cjs.map +1 -0
  310. package/lib/chunk-LU7NF3DQ.cjs +39 -0
  311. package/lib/chunk-LU7NF3DQ.cjs.map +1 -0
  312. package/lib/chunk-MG6ISTV3.js +60 -0
  313. package/lib/chunk-MG6ISTV3.js.map +1 -0
  314. package/lib/chunk-MGHVUU2R.cjs +49 -0
  315. package/lib/chunk-MGHVUU2R.cjs.map +1 -0
  316. package/lib/chunk-MH54XBSX.cjs +29 -0
  317. package/lib/chunk-MH54XBSX.cjs.map +1 -0
  318. package/lib/chunk-MLED3JD2.js +45 -0
  319. package/lib/chunk-MLED3JD2.js.map +1 -0
  320. package/lib/chunk-MPGYQKVP.cjs +56 -0
  321. package/lib/chunk-MPGYQKVP.cjs.map +1 -0
  322. package/lib/chunk-MPYP5HNA.js +45 -0
  323. package/lib/chunk-MPYP5HNA.js.map +1 -0
  324. package/lib/chunk-MSAAHT3W.js +28 -0
  325. package/lib/chunk-MSAAHT3W.js.map +1 -0
  326. package/lib/chunk-MV3DXOEE.cjs +47 -0
  327. package/lib/chunk-MV3DXOEE.cjs.map +1 -0
  328. package/lib/chunk-MYXLBPGW.js +31 -0
  329. package/lib/chunk-MYXLBPGW.js.map +1 -0
  330. package/lib/chunk-N26J535W.js +53 -0
  331. package/lib/chunk-N26J535W.js.map +1 -0
  332. package/lib/chunk-NEPV2QT6.cjs +42 -0
  333. package/lib/chunk-NEPV2QT6.cjs.map +1 -0
  334. package/lib/chunk-NG7M2SWO.cjs +101 -0
  335. package/lib/chunk-NG7M2SWO.cjs.map +1 -0
  336. package/lib/chunk-NJ7VTZ45.js +40 -0
  337. package/lib/chunk-NJ7VTZ45.js.map +1 -0
  338. package/lib/chunk-NJZ5526I.cjs +98 -0
  339. package/lib/chunk-NJZ5526I.cjs.map +1 -0
  340. package/lib/chunk-NQ2WJSTK.js +45 -0
  341. package/lib/chunk-NQ2WJSTK.js.map +1 -0
  342. package/lib/chunk-NUJMM4IE.cjs +46 -0
  343. package/lib/chunk-NUJMM4IE.cjs.map +1 -0
  344. package/lib/chunk-NZV7T6OS.cjs +42 -0
  345. package/lib/chunk-NZV7T6OS.cjs.map +1 -0
  346. package/lib/chunk-O5LELQ3H.cjs +55 -0
  347. package/lib/chunk-O5LELQ3H.cjs.map +1 -0
  348. package/lib/chunk-O5ZCTFGS.cjs +57 -0
  349. package/lib/chunk-O5ZCTFGS.cjs.map +1 -0
  350. package/lib/chunk-OCHJ6H5L.js +59 -0
  351. package/lib/chunk-OCHJ6H5L.js.map +1 -0
  352. package/lib/chunk-OEOPKYYH.cjs +77 -0
  353. package/lib/chunk-OEOPKYYH.cjs.map +1 -0
  354. package/lib/chunk-OOWF4KZW.js +49 -0
  355. package/lib/chunk-OOWF4KZW.js.map +1 -0
  356. package/lib/chunk-OQ6XCVXY.js +41 -0
  357. package/lib/chunk-OQ6XCVXY.js.map +1 -0
  358. package/lib/chunk-OQJSTZNL.cjs +61 -0
  359. package/lib/chunk-OQJSTZNL.cjs.map +1 -0
  360. package/lib/chunk-ORUCCVMU.js +45 -0
  361. package/lib/chunk-ORUCCVMU.js.map +1 -0
  362. package/lib/chunk-OUXO6SLS.cjs +49 -0
  363. package/lib/chunk-OUXO6SLS.cjs.map +1 -0
  364. package/lib/chunk-OY6MZVBQ.cjs +38 -0
  365. package/lib/chunk-OY6MZVBQ.cjs.map +1 -0
  366. package/lib/chunk-PAQOOCG3.cjs +126 -0
  367. package/lib/chunk-PAQOOCG3.cjs.map +1 -0
  368. package/lib/chunk-PASUJC7O.cjs +51 -0
  369. package/lib/chunk-PASUJC7O.cjs.map +1 -0
  370. package/lib/chunk-PDGVNV5M.js +154 -0
  371. package/lib/chunk-PDGVNV5M.js.map +1 -0
  372. package/lib/chunk-PECN2STI.cjs +47 -0
  373. package/lib/chunk-PECN2STI.cjs.map +1 -0
  374. package/lib/chunk-PN24CPTP.js +40 -0
  375. package/lib/chunk-PN24CPTP.js.map +1 -0
  376. package/lib/chunk-PSSGYICM.cjs +47 -0
  377. package/lib/chunk-PSSGYICM.cjs.map +1 -0
  378. package/lib/chunk-PWISCPLC.cjs +55 -0
  379. package/lib/chunk-PWISCPLC.cjs.map +1 -0
  380. package/lib/chunk-Q35LAO5H.cjs +61 -0
  381. package/lib/chunk-Q35LAO5H.cjs.map +1 -0
  382. package/lib/chunk-Q5LEAU3I.js +44 -0
  383. package/lib/chunk-Q5LEAU3I.js.map +1 -0
  384. package/lib/chunk-QDU2H45U.cjs +53 -0
  385. package/lib/chunk-QDU2H45U.cjs.map +1 -0
  386. package/lib/chunk-QHDNUJT6.js +45 -0
  387. package/lib/chunk-QHDNUJT6.js.map +1 -0
  388. package/lib/chunk-QHLRNRP7.js +54 -0
  389. package/lib/chunk-QHLRNRP7.js.map +1 -0
  390. package/lib/chunk-QIAXU2SJ.cjs +54 -0
  391. package/lib/chunk-QIAXU2SJ.cjs.map +1 -0
  392. package/lib/chunk-QLHBMADF.cjs +52 -0
  393. package/lib/chunk-QLHBMADF.cjs.map +1 -0
  394. package/lib/chunk-QLLPSD32.cjs +51 -0
  395. package/lib/chunk-QLLPSD32.cjs.map +1 -0
  396. package/lib/chunk-QLW5QVVW.cjs +70 -0
  397. package/lib/chunk-QLW5QVVW.cjs.map +1 -0
  398. package/lib/chunk-QNJQIJKL.cjs +98 -0
  399. package/lib/chunk-QNJQIJKL.cjs.map +1 -0
  400. package/lib/chunk-QPFAATIQ.js +49 -0
  401. package/lib/chunk-QPFAATIQ.js.map +1 -0
  402. package/lib/chunk-QRRPEYJZ.cjs +26 -0
  403. package/lib/chunk-QRRPEYJZ.cjs.map +1 -0
  404. package/lib/chunk-QYNCYKXA.cjs +51 -0
  405. package/lib/chunk-QYNCYKXA.cjs.map +1 -0
  406. package/lib/chunk-QYQLV3UF.js +57 -0
  407. package/lib/chunk-QYQLV3UF.js.map +1 -0
  408. package/lib/chunk-R5GWVFCY.cjs +95 -0
  409. package/lib/chunk-R5GWVFCY.cjs.map +1 -0
  410. package/lib/chunk-R5RKU5ET.cjs +68 -0
  411. package/lib/chunk-R5RKU5ET.cjs.map +1 -0
  412. package/lib/chunk-RAVVFNM3.cjs +42 -0
  413. package/lib/chunk-RAVVFNM3.cjs.map +1 -0
  414. package/lib/chunk-RDACMJVS.js +53 -0
  415. package/lib/chunk-RDACMJVS.js.map +1 -0
  416. package/lib/chunk-RJIKKTQZ.cjs +39 -0
  417. package/lib/chunk-RJIKKTQZ.cjs.map +1 -0
  418. package/lib/chunk-ROYOEYGX.cjs +33 -0
  419. package/lib/chunk-ROYOEYGX.cjs.map +1 -0
  420. package/lib/chunk-RSYBOKNE.js +45 -0
  421. package/lib/chunk-RSYBOKNE.js.map +1 -0
  422. package/lib/chunk-RYPA7HYS.js +93 -0
  423. package/lib/chunk-RYPA7HYS.js.map +1 -0
  424. package/lib/chunk-S2SYYYG2.cjs +69 -0
  425. package/lib/chunk-S2SYYYG2.cjs.map +1 -0
  426. package/lib/chunk-S4AILUR7.js +536 -0
  427. package/lib/chunk-S4AILUR7.js.map +1 -0
  428. package/lib/chunk-S6XPCUJW.js +75 -0
  429. package/lib/chunk-S6XPCUJW.js.map +1 -0
  430. package/lib/chunk-SFYB5GXI.js +59 -0
  431. package/lib/chunk-SFYB5GXI.js.map +1 -0
  432. package/lib/chunk-SSQYQJV3.js +66 -0
  433. package/lib/chunk-SSQYQJV3.js.map +1 -0
  434. package/lib/chunk-SUUOHRSG.js +61 -0
  435. package/lib/chunk-SUUOHRSG.js.map +1 -0
  436. package/lib/chunk-SW5N35FH.cjs +43 -0
  437. package/lib/chunk-SW5N35FH.cjs.map +1 -0
  438. package/lib/chunk-T26776MO.cjs +105 -0
  439. package/lib/chunk-T26776MO.cjs.map +1 -0
  440. package/lib/chunk-T2OKZDN4.js +49 -0
  441. package/lib/chunk-T2OKZDN4.js.map +1 -0
  442. package/lib/chunk-T5G655QT.js +27 -0
  443. package/lib/chunk-T5G655QT.js.map +1 -0
  444. package/lib/chunk-TE67ODLT.js +47 -0
  445. package/lib/chunk-TE67ODLT.js.map +1 -0
  446. package/lib/chunk-TGFRUTII.js +45 -0
  447. package/lib/chunk-TGFRUTII.js.map +1 -0
  448. package/lib/chunk-TM3WY5JX.js +49 -0
  449. package/lib/chunk-TM3WY5JX.js.map +1 -0
  450. package/lib/chunk-TOIJVWRZ.cjs +285 -0
  451. package/lib/chunk-TOIJVWRZ.cjs.map +1 -0
  452. package/lib/chunk-TUCNQX6Y.js +49 -0
  453. package/lib/chunk-TUCNQX6Y.js.map +1 -0
  454. package/lib/chunk-U5RLBTS6.js +49 -0
  455. package/lib/chunk-U5RLBTS6.js.map +1 -0
  456. package/lib/chunk-UBFZSSUZ.js +50 -0
  457. package/lib/chunk-UBFZSSUZ.js.map +1 -0
  458. package/lib/chunk-UD2ZHF5I.js +49 -0
  459. package/lib/chunk-UD2ZHF5I.js.map +1 -0
  460. package/lib/chunk-UMID2D26.js +45 -0
  461. package/lib/chunk-UMID2D26.js.map +1 -0
  462. package/lib/chunk-UUL3UDIC.js +45 -0
  463. package/lib/chunk-UUL3UDIC.js.map +1 -0
  464. package/lib/chunk-V4PP6IUM.cjs +42 -0
  465. package/lib/chunk-V4PP6IUM.cjs.map +1 -0
  466. package/lib/chunk-VH65L3FZ.cjs +43 -0
  467. package/lib/chunk-VH65L3FZ.cjs.map +1 -0
  468. package/lib/chunk-VIPTK4KE.js +40 -0
  469. package/lib/chunk-VIPTK4KE.js.map +1 -0
  470. package/lib/chunk-VS7D74RY.cjs +54 -0
  471. package/lib/chunk-VS7D74RY.cjs.map +1 -0
  472. package/lib/chunk-VWZ2H35A.cjs +53 -0
  473. package/lib/chunk-VWZ2H35A.cjs.map +1 -0
  474. package/lib/chunk-W2ZODWRB.cjs +47 -0
  475. package/lib/chunk-W2ZODWRB.cjs.map +1 -0
  476. package/lib/chunk-W534ZCYS.cjs +43 -0
  477. package/lib/chunk-W534ZCYS.cjs.map +1 -0
  478. package/lib/chunk-WAQYCXXA.cjs +55 -0
  479. package/lib/chunk-WAQYCXXA.cjs.map +1 -0
  480. package/lib/chunk-WGKGDMJG.js +54 -0
  481. package/lib/chunk-WGKGDMJG.js.map +1 -0
  482. package/lib/chunk-WKD345DZ.cjs +52 -0
  483. package/lib/chunk-WKD345DZ.cjs.map +1 -0
  484. package/lib/chunk-WM3MOTCN.js +45 -0
  485. package/lib/chunk-WM3MOTCN.js.map +1 -0
  486. package/lib/chunk-WQKG5HJS.js +45 -0
  487. package/lib/chunk-WQKG5HJS.js.map +1 -0
  488. package/lib/chunk-WSNUMIIY.cjs +56 -0
  489. package/lib/chunk-WSNUMIIY.cjs.map +1 -0
  490. package/lib/chunk-WYULLF7A.cjs +53 -0
  491. package/lib/chunk-WYULLF7A.cjs.map +1 -0
  492. package/lib/chunk-X2BR77L2.js +283 -0
  493. package/lib/chunk-X2BR77L2.js.map +1 -0
  494. package/lib/chunk-X46PVG74.js +45 -0
  495. package/lib/chunk-X46PVG74.js.map +1 -0
  496. package/lib/chunk-X5OWNCC4.cjs +38 -0
  497. package/lib/chunk-X5OWNCC4.cjs.map +1 -0
  498. package/lib/chunk-X6SULYQB.cjs +38 -0
  499. package/lib/chunk-X6SULYQB.cjs.map +1 -0
  500. package/lib/chunk-X7AKN4S6.js +48 -0
  501. package/lib/chunk-X7AKN4S6.js.map +1 -0
  502. package/lib/chunk-XBBVFGOJ.js +45 -0
  503. package/lib/chunk-XBBVFGOJ.js.map +1 -0
  504. package/lib/chunk-XC67WDBZ.cjs +39 -0
  505. package/lib/chunk-XC67WDBZ.cjs.map +1 -0
  506. package/lib/chunk-XCFDOKIM.cjs +47 -0
  507. package/lib/chunk-XCFDOKIM.cjs.map +1 -0
  508. package/lib/chunk-XKDMHHU6.js +53 -0
  509. package/lib/chunk-XKDMHHU6.js.map +1 -0
  510. package/lib/chunk-XPE3CHFX.js +40 -0
  511. package/lib/chunk-XPE3CHFX.js.map +1 -0
  512. package/lib/chunk-XRYS36MH.js +45 -0
  513. package/lib/chunk-XRYS36MH.js.map +1 -0
  514. package/lib/chunk-XXL66GOT.js +103 -0
  515. package/lib/chunk-XXL66GOT.js.map +1 -0
  516. package/lib/chunk-XYFVAE5Q.js +37 -0
  517. package/lib/chunk-XYFVAE5Q.js.map +1 -0
  518. package/lib/chunk-XYPIGF36.cjs +295 -0
  519. package/lib/chunk-XYPIGF36.cjs.map +1 -0
  520. package/lib/chunk-Y262ZN7R.cjs +42 -0
  521. package/lib/chunk-Y262ZN7R.cjs.map +1 -0
  522. package/lib/chunk-YBRIQ52U.cjs +97 -0
  523. package/lib/chunk-YBRIQ52U.cjs.map +1 -0
  524. package/lib/chunk-YGGJGJU7.js +55 -0
  525. package/lib/chunk-YGGJGJU7.js.map +1 -0
  526. package/lib/chunk-YNKM6H3D.cjs +59 -0
  527. package/lib/chunk-YNKM6H3D.cjs.map +1 -0
  528. package/lib/chunk-YPX3YJ4L.cjs +93 -0
  529. package/lib/chunk-YPX3YJ4L.cjs.map +1 -0
  530. package/lib/chunk-YXMPQHE4.cjs +57 -0
  531. package/lib/chunk-YXMPQHE4.cjs.map +1 -0
  532. package/lib/chunk-Z3XTAUYM.js +96 -0
  533. package/lib/chunk-Z3XTAUYM.js.map +1 -0
  534. package/lib/chunk-Z4CUVPMW.js +47 -0
  535. package/lib/chunk-Z4CUVPMW.js.map +1 -0
  536. package/lib/chunk-Z4PD2SXY.js +55 -0
  537. package/lib/chunk-Z4PD2SXY.js.map +1 -0
  538. package/lib/chunk-ZBIJQ4CN.js +53 -0
  539. package/lib/chunk-ZBIJQ4CN.js.map +1 -0
  540. package/lib/chunk-ZCMD5U3M.js +36 -0
  541. package/lib/chunk-ZCMD5U3M.js.map +1 -0
  542. package/lib/chunk-ZF5RJEW7.cjs +39 -0
  543. package/lib/chunk-ZF5RJEW7.cjs.map +1 -0
  544. package/lib/chunk-ZGKZWE7U.cjs +53 -0
  545. package/lib/chunk-ZGKZWE7U.cjs.map +1 -0
  546. package/lib/chunk-ZHCI2QRX.cjs +46 -0
  547. package/lib/chunk-ZHCI2QRX.cjs.map +1 -0
  548. package/lib/chunk-ZMZ73HFP.cjs +53 -0
  549. package/lib/chunk-ZMZ73HFP.cjs.map +1 -0
  550. package/lib/chunk-ZT5VCXSB.js +45 -0
  551. package/lib/chunk-ZT5VCXSB.js.map +1 -0
  552. package/lib/chunk-ZTSVFTKP.cjs +51 -0
  553. package/lib/chunk-ZTSVFTKP.cjs.map +1 -0
  554. package/lib/chunk-ZVJZFSX5.cjs +47 -0
  555. package/lib/chunk-ZVJZFSX5.cjs.map +1 -0
  556. package/lib/chunk-ZZZ5IYR4.js +49 -0
  557. package/lib/chunk-ZZZ5IYR4.js.map +1 -0
  558. package/lib/commercelayer.cjs +7 -7
  559. package/lib/commercelayer.d.cts +5 -3
  560. package/lib/commercelayer.d.ts +5 -3
  561. package/lib/commercelayer.js +3 -3
  562. package/lib/enum.cjs +14 -22
  563. package/lib/enum.d.cts +1 -1
  564. package/lib/enum.d.ts +1 -1
  565. package/lib/enum.js +1 -1
  566. package/lib/index.cjs +270 -275
  567. package/lib/index.d.cts +1 -1
  568. package/lib/index.d.ts +1 -1
  569. package/lib/index.js +136 -137
  570. package/lib/jsonapi.cjs +4 -4
  571. package/lib/jsonapi.d.cts +1 -1
  572. package/lib/jsonapi.d.ts +1 -1
  573. package/lib/jsonapi.js +2 -2
  574. package/lib/model.d.cts +1 -1
  575. package/lib/model.d.ts +1 -1
  576. package/lib/query.d.cts +1 -1
  577. package/lib/query.d.ts +1 -1
  578. package/lib/resource.cjs +7 -7
  579. package/lib/resource.d.cts +1 -1
  580. package/lib/resource.d.ts +1 -1
  581. package/lib/resource.js +2 -2
  582. package/lib/resources/addresses.cjs +4 -4
  583. package/lib/resources/addresses.d.cts +2 -2
  584. package/lib/resources/addresses.d.ts +1 -1
  585. package/lib/resources/addresses.js +3 -3
  586. package/lib/resources/adjustments.cjs +4 -4
  587. package/lib/resources/adjustments.d.cts +2 -2
  588. package/lib/resources/adjustments.d.ts +1 -1
  589. package/lib/resources/adjustments.js +3 -3
  590. package/lib/resources/adyen_gateways.cjs +4 -4
  591. package/lib/resources/adyen_gateways.d.cts +2 -2
  592. package/lib/resources/adyen_gateways.d.ts +1 -1
  593. package/lib/resources/adyen_gateways.js +3 -3
  594. package/lib/resources/adyen_payments.cjs +4 -4
  595. package/lib/resources/adyen_payments.d.cts +2 -2
  596. package/lib/resources/adyen_payments.d.ts +1 -1
  597. package/lib/resources/adyen_payments.js +3 -3
  598. package/lib/resources/applications.cjs +4 -4
  599. package/lib/resources/applications.d.cts +2 -2
  600. package/lib/resources/applications.d.ts +1 -1
  601. package/lib/resources/applications.js +3 -3
  602. package/lib/resources/attachments.cjs +4 -4
  603. package/lib/resources/attachments.d.cts +2 -2
  604. package/lib/resources/attachments.d.ts +1 -1
  605. package/lib/resources/attachments.js +3 -3
  606. package/lib/resources/authorizations.cjs +4 -4
  607. package/lib/resources/authorizations.d.cts +2 -2
  608. package/lib/resources/authorizations.d.ts +1 -1
  609. package/lib/resources/authorizations.js +3 -3
  610. package/lib/resources/avalara_accounts.cjs +4 -4
  611. package/lib/resources/avalara_accounts.d.cts +2 -2
  612. package/lib/resources/avalara_accounts.d.ts +1 -1
  613. package/lib/resources/avalara_accounts.js +3 -3
  614. package/lib/resources/axerve_gateways.cjs +4 -4
  615. package/lib/resources/axerve_gateways.d.cts +2 -2
  616. package/lib/resources/axerve_gateways.d.ts +1 -1
  617. package/lib/resources/axerve_gateways.js +3 -3
  618. package/lib/resources/axerve_payments.cjs +4 -4
  619. package/lib/resources/axerve_payments.d.cts +2 -2
  620. package/lib/resources/axerve_payments.d.ts +1 -1
  621. package/lib/resources/axerve_payments.js +3 -3
  622. package/lib/resources/bing_geocoders.cjs +4 -4
  623. package/lib/resources/bing_geocoders.d.cts +2 -2
  624. package/lib/resources/bing_geocoders.d.ts +1 -1
  625. package/lib/resources/bing_geocoders.js +3 -3
  626. package/lib/resources/braintree_gateways.cjs +4 -4
  627. package/lib/resources/braintree_gateways.d.cts +2 -2
  628. package/lib/resources/braintree_gateways.d.ts +1 -1
  629. package/lib/resources/braintree_gateways.js +3 -3
  630. package/lib/resources/braintree_payments.cjs +4 -4
  631. package/lib/resources/braintree_payments.d.cts +2 -2
  632. package/lib/resources/braintree_payments.d.ts +1 -1
  633. package/lib/resources/braintree_payments.js +3 -3
  634. package/lib/resources/bundles.cjs +4 -4
  635. package/lib/resources/bundles.d.cts +2 -2
  636. package/lib/resources/bundles.d.ts +1 -1
  637. package/lib/resources/bundles.js +3 -3
  638. package/lib/resources/buy_x_pay_y_promotions.cjs +4 -4
  639. package/lib/resources/buy_x_pay_y_promotions.d.cts +2 -2
  640. package/lib/resources/buy_x_pay_y_promotions.d.ts +1 -1
  641. package/lib/resources/buy_x_pay_y_promotions.js +3 -3
  642. package/lib/resources/captures.cjs +4 -4
  643. package/lib/resources/captures.d.cts +2 -2
  644. package/lib/resources/captures.d.ts +1 -1
  645. package/lib/resources/captures.js +3 -3
  646. package/lib/resources/carrier_accounts.cjs +4 -4
  647. package/lib/resources/carrier_accounts.d.cts +2 -2
  648. package/lib/resources/carrier_accounts.d.ts +1 -1
  649. package/lib/resources/carrier_accounts.js +3 -3
  650. package/lib/resources/checkout_com_gateways.cjs +4 -4
  651. package/lib/resources/checkout_com_gateways.d.cts +2 -2
  652. package/lib/resources/checkout_com_gateways.d.ts +1 -1
  653. package/lib/resources/checkout_com_gateways.js +3 -3
  654. package/lib/resources/checkout_com_payments.cjs +4 -4
  655. package/lib/resources/checkout_com_payments.d.cts +2 -2
  656. package/lib/resources/checkout_com_payments.d.ts +1 -1
  657. package/lib/resources/checkout_com_payments.js +3 -3
  658. package/lib/resources/cleanups.cjs +4 -4
  659. package/lib/resources/cleanups.d.cts +2 -2
  660. package/lib/resources/cleanups.d.ts +1 -1
  661. package/lib/resources/cleanups.js +3 -3
  662. package/lib/resources/coupon_codes_promotion_rules.cjs +4 -4
  663. package/lib/resources/coupon_codes_promotion_rules.d.cts +2 -2
  664. package/lib/resources/coupon_codes_promotion_rules.d.ts +1 -1
  665. package/lib/resources/coupon_codes_promotion_rules.js +3 -3
  666. package/lib/resources/coupon_recipients.cjs +4 -4
  667. package/lib/resources/coupon_recipients.d.cts +2 -2
  668. package/lib/resources/coupon_recipients.d.ts +1 -1
  669. package/lib/resources/coupon_recipients.js +3 -3
  670. package/lib/resources/coupons.cjs +4 -4
  671. package/lib/resources/coupons.d.cts +2 -2
  672. package/lib/resources/coupons.d.ts +1 -1
  673. package/lib/resources/coupons.js +3 -3
  674. package/lib/resources/custom_promotion_rules.cjs +4 -4
  675. package/lib/resources/custom_promotion_rules.d.cts +2 -2
  676. package/lib/resources/custom_promotion_rules.d.ts +1 -1
  677. package/lib/resources/custom_promotion_rules.js +3 -3
  678. package/lib/resources/customer_addresses.cjs +4 -4
  679. package/lib/resources/customer_addresses.d.cts +2 -2
  680. package/lib/resources/customer_addresses.d.ts +1 -1
  681. package/lib/resources/customer_addresses.js +3 -3
  682. package/lib/resources/customer_groups.cjs +4 -4
  683. package/lib/resources/customer_groups.d.cts +2 -2
  684. package/lib/resources/customer_groups.d.ts +1 -1
  685. package/lib/resources/customer_groups.js +3 -3
  686. package/lib/resources/customer_password_resets.cjs +4 -4
  687. package/lib/resources/customer_password_resets.d.cts +2 -2
  688. package/lib/resources/customer_password_resets.d.ts +1 -1
  689. package/lib/resources/customer_password_resets.js +3 -3
  690. package/lib/resources/customer_payment_sources.cjs +4 -4
  691. package/lib/resources/customer_payment_sources.d.cts +2 -2
  692. package/lib/resources/customer_payment_sources.d.ts +1 -1
  693. package/lib/resources/customer_payment_sources.js +3 -3
  694. package/lib/resources/customer_subscriptions.cjs +4 -4
  695. package/lib/resources/customer_subscriptions.d.cts +2 -2
  696. package/lib/resources/customer_subscriptions.d.ts +1 -1
  697. package/lib/resources/customer_subscriptions.js +3 -3
  698. package/lib/resources/customers.cjs +4 -4
  699. package/lib/resources/customers.d.cts +2 -2
  700. package/lib/resources/customers.d.ts +1 -1
  701. package/lib/resources/customers.js +3 -3
  702. package/lib/resources/delivery_lead_times.cjs +4 -4
  703. package/lib/resources/delivery_lead_times.d.cts +2 -2
  704. package/lib/resources/delivery_lead_times.d.ts +1 -1
  705. package/lib/resources/delivery_lead_times.js +3 -3
  706. package/lib/resources/discount_engine_items.cjs +4 -4
  707. package/lib/resources/discount_engine_items.d.cts +2 -2
  708. package/lib/resources/discount_engine_items.d.ts +1 -1
  709. package/lib/resources/discount_engine_items.js +3 -3
  710. package/lib/resources/discount_engines.cjs +4 -4
  711. package/lib/resources/discount_engines.d.cts +2 -2
  712. package/lib/resources/discount_engines.d.ts +1 -1
  713. package/lib/resources/discount_engines.js +3 -3
  714. package/lib/resources/easypost_pickups.cjs +4 -4
  715. package/lib/resources/easypost_pickups.d.cts +2 -2
  716. package/lib/resources/easypost_pickups.d.ts +1 -1
  717. package/lib/resources/easypost_pickups.js +3 -3
  718. package/lib/resources/event_callbacks.cjs +4 -4
  719. package/lib/resources/event_callbacks.d.cts +2 -2
  720. package/lib/resources/event_callbacks.d.ts +1 -1
  721. package/lib/resources/event_callbacks.js +3 -3
  722. package/lib/resources/event_stores.cjs +4 -4
  723. package/lib/resources/event_stores.d.cts +2 -2
  724. package/lib/resources/event_stores.d.ts +1 -1
  725. package/lib/resources/event_stores.js +3 -3
  726. package/lib/resources/events.cjs +4 -4
  727. package/lib/resources/events.d.cts +2 -2
  728. package/lib/resources/events.d.ts +1 -1
  729. package/lib/resources/events.js +3 -3
  730. package/lib/resources/exports.cjs +4 -4
  731. package/lib/resources/exports.d.cts +2 -2
  732. package/lib/resources/exports.d.ts +1 -1
  733. package/lib/resources/exports.js +3 -3
  734. package/lib/resources/external_gateways.cjs +4 -4
  735. package/lib/resources/external_gateways.d.cts +2 -2
  736. package/lib/resources/external_gateways.d.ts +1 -1
  737. package/lib/resources/external_gateways.js +3 -3
  738. package/lib/resources/external_payments.cjs +4 -4
  739. package/lib/resources/external_payments.d.cts +2 -2
  740. package/lib/resources/external_payments.d.ts +1 -1
  741. package/lib/resources/external_payments.js +3 -3
  742. package/lib/resources/external_promotions.cjs +4 -4
  743. package/lib/resources/external_promotions.d.cts +2 -2
  744. package/lib/resources/external_promotions.d.ts +1 -1
  745. package/lib/resources/external_promotions.js +3 -3
  746. package/lib/resources/external_tax_calculators.cjs +4 -4
  747. package/lib/resources/external_tax_calculators.d.cts +2 -2
  748. package/lib/resources/external_tax_calculators.d.ts +1 -1
  749. package/lib/resources/external_tax_calculators.js +3 -3
  750. package/lib/resources/fixed_amount_promotions.cjs +4 -4
  751. package/lib/resources/fixed_amount_promotions.d.cts +2 -2
  752. package/lib/resources/fixed_amount_promotions.d.ts +1 -1
  753. package/lib/resources/fixed_amount_promotions.js +3 -3
  754. package/lib/resources/fixed_price_promotions.cjs +4 -4
  755. package/lib/resources/fixed_price_promotions.d.cts +2 -2
  756. package/lib/resources/fixed_price_promotions.d.ts +1 -1
  757. package/lib/resources/fixed_price_promotions.js +3 -3
  758. package/lib/resources/flex_promotions.cjs +4 -4
  759. package/lib/resources/flex_promotions.d.cts +2 -2
  760. package/lib/resources/flex_promotions.d.ts +1 -1
  761. package/lib/resources/flex_promotions.js +3 -3
  762. package/lib/resources/free_gift_promotions.cjs +4 -4
  763. package/lib/resources/free_gift_promotions.d.cts +2 -2
  764. package/lib/resources/free_gift_promotions.d.ts +1 -1
  765. package/lib/resources/free_gift_promotions.js +3 -3
  766. package/lib/resources/free_shipping_promotions.cjs +4 -4
  767. package/lib/resources/free_shipping_promotions.d.cts +2 -2
  768. package/lib/resources/free_shipping_promotions.d.ts +1 -1
  769. package/lib/resources/free_shipping_promotions.js +3 -3
  770. package/lib/resources/geocoders.cjs +4 -4
  771. package/lib/resources/geocoders.d.cts +2 -2
  772. package/lib/resources/geocoders.d.ts +1 -1
  773. package/lib/resources/geocoders.js +3 -3
  774. package/lib/resources/gift_card_recipients.cjs +4 -4
  775. package/lib/resources/gift_card_recipients.d.cts +2 -2
  776. package/lib/resources/gift_card_recipients.d.ts +1 -1
  777. package/lib/resources/gift_card_recipients.js +3 -3
  778. package/lib/resources/gift_cards.cjs +4 -4
  779. package/lib/resources/gift_cards.d.cts +2 -2
  780. package/lib/resources/gift_cards.d.ts +1 -1
  781. package/lib/resources/gift_cards.js +3 -3
  782. package/lib/resources/google_geocoders.cjs +4 -4
  783. package/lib/resources/google_geocoders.d.cts +2 -2
  784. package/lib/resources/google_geocoders.d.ts +1 -1
  785. package/lib/resources/google_geocoders.js +3 -3
  786. package/lib/resources/imports.cjs +4 -4
  787. package/lib/resources/imports.d.cts +2 -2
  788. package/lib/resources/imports.d.ts +1 -1
  789. package/lib/resources/imports.js +3 -3
  790. package/lib/resources/in_stock_subscriptions.cjs +4 -4
  791. package/lib/resources/in_stock_subscriptions.d.cts +2 -2
  792. package/lib/resources/in_stock_subscriptions.d.ts +1 -1
  793. package/lib/resources/in_stock_subscriptions.js +3 -3
  794. package/lib/resources/inventory_models.cjs +4 -4
  795. package/lib/resources/inventory_models.d.cts +2 -2
  796. package/lib/resources/inventory_models.d.ts +1 -1
  797. package/lib/resources/inventory_models.js +3 -3
  798. package/lib/resources/inventory_return_locations.cjs +4 -4
  799. package/lib/resources/inventory_return_locations.d.cts +2 -2
  800. package/lib/resources/inventory_return_locations.d.ts +1 -1
  801. package/lib/resources/inventory_return_locations.js +3 -3
  802. package/lib/resources/inventory_stock_locations.cjs +4 -4
  803. package/lib/resources/inventory_stock_locations.d.cts +2 -2
  804. package/lib/resources/inventory_stock_locations.d.ts +1 -1
  805. package/lib/resources/inventory_stock_locations.js +3 -3
  806. package/lib/resources/klarna_gateways.cjs +4 -4
  807. package/lib/resources/klarna_gateways.d.cts +2 -2
  808. package/lib/resources/klarna_gateways.d.ts +1 -1
  809. package/lib/resources/klarna_gateways.js +3 -3
  810. package/lib/resources/klarna_payments.cjs +4 -4
  811. package/lib/resources/klarna_payments.d.cts +2 -2
  812. package/lib/resources/klarna_payments.d.ts +1 -1
  813. package/lib/resources/klarna_payments.js +3 -3
  814. package/lib/resources/line_item_options.cjs +4 -4
  815. package/lib/resources/line_item_options.d.cts +2 -2
  816. package/lib/resources/line_item_options.d.ts +1 -1
  817. package/lib/resources/line_item_options.js +3 -3
  818. package/lib/resources/line_items.cjs +4 -4
  819. package/lib/resources/line_items.d.cts +2 -2
  820. package/lib/resources/line_items.d.ts +1 -1
  821. package/lib/resources/line_items.js +3 -3
  822. package/lib/resources/links.cjs +4 -4
  823. package/lib/resources/links.d.cts +2 -2
  824. package/lib/resources/links.d.ts +1 -1
  825. package/lib/resources/links.js +3 -3
  826. package/lib/resources/manual_gateways.cjs +4 -4
  827. package/lib/resources/manual_gateways.d.cts +2 -2
  828. package/lib/resources/manual_gateways.d.ts +1 -1
  829. package/lib/resources/manual_gateways.js +3 -3
  830. package/lib/resources/manual_tax_calculators.cjs +4 -4
  831. package/lib/resources/manual_tax_calculators.d.cts +2 -2
  832. package/lib/resources/manual_tax_calculators.d.ts +1 -1
  833. package/lib/resources/manual_tax_calculators.js +3 -3
  834. package/lib/resources/markets.cjs +4 -4
  835. package/lib/resources/markets.d.cts +2 -2
  836. package/lib/resources/markets.d.ts +1 -1
  837. package/lib/resources/markets.js +3 -3
  838. package/lib/resources/merchants.cjs +4 -4
  839. package/lib/resources/merchants.d.cts +2 -2
  840. package/lib/resources/merchants.d.ts +1 -1
  841. package/lib/resources/merchants.js +3 -3
  842. package/lib/resources/notifications.cjs +4 -4
  843. package/lib/resources/notifications.d.cts +2 -2
  844. package/lib/resources/notifications.d.ts +1 -1
  845. package/lib/resources/notifications.js +3 -3
  846. package/lib/resources/order_amount_promotion_rules.cjs +4 -4
  847. package/lib/resources/order_amount_promotion_rules.d.cts +2 -2
  848. package/lib/resources/order_amount_promotion_rules.d.ts +1 -1
  849. package/lib/resources/order_amount_promotion_rules.js +3 -3
  850. package/lib/resources/order_copies.cjs +4 -4
  851. package/lib/resources/order_copies.d.cts +2 -2
  852. package/lib/resources/order_copies.d.ts +1 -1
  853. package/lib/resources/order_copies.js +3 -3
  854. package/lib/resources/order_factories.cjs +4 -4
  855. package/lib/resources/order_factories.d.cts +2 -2
  856. package/lib/resources/order_factories.d.ts +1 -1
  857. package/lib/resources/order_factories.js +3 -3
  858. package/lib/resources/order_subscription_items.cjs +4 -4
  859. package/lib/resources/order_subscription_items.d.cts +2 -2
  860. package/lib/resources/order_subscription_items.d.ts +1 -1
  861. package/lib/resources/order_subscription_items.js +3 -3
  862. package/lib/resources/order_subscriptions.cjs +4 -4
  863. package/lib/resources/order_subscriptions.d.cts +2 -2
  864. package/lib/resources/order_subscriptions.d.ts +1 -1
  865. package/lib/resources/order_subscriptions.js +3 -3
  866. package/lib/resources/orders.cjs +4 -4
  867. package/lib/resources/orders.d.cts +2 -2
  868. package/lib/resources/orders.d.ts +1 -1
  869. package/lib/resources/orders.js +3 -3
  870. package/lib/resources/organizations.cjs +4 -4
  871. package/lib/resources/organizations.d.cts +2 -2
  872. package/lib/resources/organizations.d.ts +1 -1
  873. package/lib/resources/organizations.js +3 -3
  874. package/lib/resources/packages.cjs +4 -4
  875. package/lib/resources/packages.d.cts +2 -2
  876. package/lib/resources/packages.d.ts +1 -1
  877. package/lib/resources/packages.js +3 -3
  878. package/lib/resources/parcel_line_items.cjs +4 -4
  879. package/lib/resources/parcel_line_items.d.cts +2 -2
  880. package/lib/resources/parcel_line_items.d.ts +1 -1
  881. package/lib/resources/parcel_line_items.js +3 -3
  882. package/lib/resources/parcels.cjs +4 -4
  883. package/lib/resources/parcels.d.cts +2 -2
  884. package/lib/resources/parcels.d.ts +1 -1
  885. package/lib/resources/parcels.js +3 -3
  886. package/lib/resources/payment_gateways.cjs +4 -4
  887. package/lib/resources/payment_gateways.d.cts +2 -2
  888. package/lib/resources/payment_gateways.d.ts +1 -1
  889. package/lib/resources/payment_gateways.js +3 -3
  890. package/lib/resources/payment_methods.cjs +4 -4
  891. package/lib/resources/payment_methods.d.cts +2 -2
  892. package/lib/resources/payment_methods.d.ts +1 -1
  893. package/lib/resources/payment_methods.js +3 -3
  894. package/lib/resources/payment_options.cjs +4 -4
  895. package/lib/resources/payment_options.d.cts +2 -2
  896. package/lib/resources/payment_options.d.ts +1 -1
  897. package/lib/resources/payment_options.js +3 -3
  898. package/lib/resources/paypal_gateways.cjs +4 -4
  899. package/lib/resources/paypal_gateways.d.cts +2 -2
  900. package/lib/resources/paypal_gateways.d.ts +1 -1
  901. package/lib/resources/paypal_gateways.js +3 -3
  902. package/lib/resources/paypal_payments.cjs +4 -4
  903. package/lib/resources/paypal_payments.d.cts +2 -2
  904. package/lib/resources/paypal_payments.d.ts +1 -1
  905. package/lib/resources/paypal_payments.js +3 -3
  906. package/lib/resources/percentage_discount_promotions.cjs +4 -4
  907. package/lib/resources/percentage_discount_promotions.d.cts +2 -2
  908. package/lib/resources/percentage_discount_promotions.d.ts +1 -1
  909. package/lib/resources/percentage_discount_promotions.js +3 -3
  910. package/lib/resources/pickups.cjs +4 -4
  911. package/lib/resources/pickups.d.cts +2 -2
  912. package/lib/resources/pickups.d.ts +1 -1
  913. package/lib/resources/pickups.js +3 -3
  914. package/lib/resources/price_frequency_tiers.cjs +4 -4
  915. package/lib/resources/price_frequency_tiers.d.cts +2 -2
  916. package/lib/resources/price_frequency_tiers.d.ts +1 -1
  917. package/lib/resources/price_frequency_tiers.js +3 -3
  918. package/lib/resources/price_list_schedulers.cjs +4 -4
  919. package/lib/resources/price_list_schedulers.d.cts +2 -2
  920. package/lib/resources/price_list_schedulers.d.ts +1 -1
  921. package/lib/resources/price_list_schedulers.js +3 -3
  922. package/lib/resources/price_lists.cjs +4 -4
  923. package/lib/resources/price_lists.d.cts +2 -2
  924. package/lib/resources/price_lists.d.ts +1 -1
  925. package/lib/resources/price_lists.js +3 -3
  926. package/lib/resources/price_tiers.cjs +4 -4
  927. package/lib/resources/price_tiers.d.cts +2 -2
  928. package/lib/resources/price_tiers.d.ts +1 -1
  929. package/lib/resources/price_tiers.js +3 -3
  930. package/lib/resources/price_volume_tiers.cjs +4 -4
  931. package/lib/resources/price_volume_tiers.d.cts +2 -2
  932. package/lib/resources/price_volume_tiers.d.ts +1 -1
  933. package/lib/resources/price_volume_tiers.js +3 -3
  934. package/lib/resources/prices.cjs +4 -4
  935. package/lib/resources/prices.d.cts +2 -2
  936. package/lib/resources/prices.d.ts +1 -1
  937. package/lib/resources/prices.js +3 -3
  938. package/lib/resources/promotion_rules.cjs +4 -4
  939. package/lib/resources/promotion_rules.d.cts +2 -2
  940. package/lib/resources/promotion_rules.d.ts +1 -1
  941. package/lib/resources/promotion_rules.js +3 -3
  942. package/lib/resources/promotions.cjs +4 -4
  943. package/lib/resources/promotions.d.cts +2 -2
  944. package/lib/resources/promotions.d.ts +1 -1
  945. package/lib/resources/promotions.js +3 -3
  946. package/lib/resources/recurring_order_copies.cjs +4 -4
  947. package/lib/resources/recurring_order_copies.d.cts +2 -2
  948. package/lib/resources/recurring_order_copies.d.ts +1 -1
  949. package/lib/resources/recurring_order_copies.js +3 -3
  950. package/lib/resources/refunds.cjs +4 -4
  951. package/lib/resources/refunds.d.cts +2 -2
  952. package/lib/resources/refunds.d.ts +1 -1
  953. package/lib/resources/refunds.js +3 -3
  954. package/lib/resources/reserved_stocks.cjs +4 -4
  955. package/lib/resources/reserved_stocks.d.cts +2 -2
  956. package/lib/resources/reserved_stocks.d.ts +1 -1
  957. package/lib/resources/reserved_stocks.js +3 -3
  958. package/lib/resources/resource_errors.cjs +4 -4
  959. package/lib/resources/resource_errors.d.cts +2 -2
  960. package/lib/resources/resource_errors.d.ts +1 -1
  961. package/lib/resources/resource_errors.js +3 -3
  962. package/lib/resources/return_line_items.cjs +4 -4
  963. package/lib/resources/return_line_items.d.cts +2 -2
  964. package/lib/resources/return_line_items.d.ts +1 -1
  965. package/lib/resources/return_line_items.js +3 -3
  966. package/lib/resources/returns.cjs +4 -4
  967. package/lib/resources/returns.d.cts +2 -2
  968. package/lib/resources/returns.d.ts +1 -1
  969. package/lib/resources/returns.js +3 -3
  970. package/lib/resources/satispay_gateways.cjs +4 -4
  971. package/lib/resources/satispay_gateways.d.cts +2 -2
  972. package/lib/resources/satispay_gateways.d.ts +1 -1
  973. package/lib/resources/satispay_gateways.js +3 -3
  974. package/lib/resources/satispay_payments.cjs +4 -4
  975. package/lib/resources/satispay_payments.d.cts +2 -2
  976. package/lib/resources/satispay_payments.d.ts +1 -1
  977. package/lib/resources/satispay_payments.js +3 -3
  978. package/lib/resources/shipments.cjs +4 -4
  979. package/lib/resources/shipments.d.cts +2 -2
  980. package/lib/resources/shipments.d.ts +1 -1
  981. package/lib/resources/shipments.js +3 -3
  982. package/lib/resources/shipping_categories.cjs +4 -4
  983. package/lib/resources/shipping_categories.d.cts +2 -2
  984. package/lib/resources/shipping_categories.d.ts +1 -1
  985. package/lib/resources/shipping_categories.js +3 -3
  986. package/lib/resources/shipping_method_tiers.cjs +4 -4
  987. package/lib/resources/shipping_method_tiers.d.cts +2 -2
  988. package/lib/resources/shipping_method_tiers.d.ts +1 -1
  989. package/lib/resources/shipping_method_tiers.js +3 -3
  990. package/lib/resources/shipping_methods.cjs +4 -4
  991. package/lib/resources/shipping_methods.d.cts +2 -2
  992. package/lib/resources/shipping_methods.d.ts +1 -1
  993. package/lib/resources/shipping_methods.js +3 -3
  994. package/lib/resources/shipping_weight_tiers.cjs +4 -4
  995. package/lib/resources/shipping_weight_tiers.d.cts +2 -2
  996. package/lib/resources/shipping_weight_tiers.d.ts +1 -1
  997. package/lib/resources/shipping_weight_tiers.js +3 -3
  998. package/lib/resources/shipping_zones.cjs +4 -4
  999. package/lib/resources/shipping_zones.d.cts +2 -2
  1000. package/lib/resources/shipping_zones.d.ts +1 -1
  1001. package/lib/resources/shipping_zones.js +3 -3
  1002. package/lib/resources/sku_list_items.cjs +4 -4
  1003. package/lib/resources/sku_list_items.d.cts +2 -2
  1004. package/lib/resources/sku_list_items.d.ts +1 -1
  1005. package/lib/resources/sku_list_items.js +3 -3
  1006. package/lib/resources/sku_list_promotion_rules.cjs +4 -4
  1007. package/lib/resources/sku_list_promotion_rules.d.cts +2 -2
  1008. package/lib/resources/sku_list_promotion_rules.d.ts +1 -1
  1009. package/lib/resources/sku_list_promotion_rules.js +3 -3
  1010. package/lib/resources/sku_lists.cjs +4 -4
  1011. package/lib/resources/sku_lists.d.cts +2 -2
  1012. package/lib/resources/sku_lists.d.ts +1 -1
  1013. package/lib/resources/sku_lists.js +3 -3
  1014. package/lib/resources/sku_options.cjs +4 -4
  1015. package/lib/resources/sku_options.d.cts +2 -2
  1016. package/lib/resources/sku_options.d.ts +1 -1
  1017. package/lib/resources/sku_options.js +3 -3
  1018. package/lib/resources/skus.cjs +4 -4
  1019. package/lib/resources/skus.d.cts +2 -2
  1020. package/lib/resources/skus.d.ts +1 -1
  1021. package/lib/resources/skus.js +3 -3
  1022. package/lib/resources/stock_items.cjs +4 -4
  1023. package/lib/resources/stock_items.d.cts +2 -2
  1024. package/lib/resources/stock_items.d.ts +1 -1
  1025. package/lib/resources/stock_items.js +3 -3
  1026. package/lib/resources/stock_line_items.cjs +4 -4
  1027. package/lib/resources/stock_line_items.d.cts +2 -2
  1028. package/lib/resources/stock_line_items.d.ts +1 -1
  1029. package/lib/resources/stock_line_items.js +3 -3
  1030. package/lib/resources/stock_locations.cjs +4 -4
  1031. package/lib/resources/stock_locations.d.cts +2 -2
  1032. package/lib/resources/stock_locations.d.ts +1 -1
  1033. package/lib/resources/stock_locations.js +3 -3
  1034. package/lib/resources/stock_reservations.cjs +4 -4
  1035. package/lib/resources/stock_reservations.d.cts +2 -2
  1036. package/lib/resources/stock_reservations.d.ts +1 -1
  1037. package/lib/resources/stock_reservations.js +3 -3
  1038. package/lib/resources/stock_transfers.cjs +4 -4
  1039. package/lib/resources/stock_transfers.d.cts +2 -2
  1040. package/lib/resources/stock_transfers.d.ts +1 -1
  1041. package/lib/resources/stock_transfers.js +3 -3
  1042. package/lib/resources/stores.cjs +4 -4
  1043. package/lib/resources/stores.d.cts +2 -2
  1044. package/lib/resources/stores.d.ts +1 -1
  1045. package/lib/resources/stores.js +3 -3
  1046. package/lib/resources/stripe_gateways.cjs +4 -4
  1047. package/lib/resources/stripe_gateways.d.cts +2 -2
  1048. package/lib/resources/stripe_gateways.d.ts +1 -1
  1049. package/lib/resources/stripe_gateways.js +3 -3
  1050. package/lib/resources/stripe_payments.cjs +4 -4
  1051. package/lib/resources/stripe_payments.d.cts +2 -2
  1052. package/lib/resources/stripe_payments.d.ts +1 -1
  1053. package/lib/resources/stripe_payments.js +3 -3
  1054. package/lib/resources/stripe_tax_accounts.cjs +4 -4
  1055. package/lib/resources/stripe_tax_accounts.d.cts +2 -2
  1056. package/lib/resources/stripe_tax_accounts.d.ts +1 -1
  1057. package/lib/resources/stripe_tax_accounts.js +3 -3
  1058. package/lib/resources/subscription_models.cjs +4 -4
  1059. package/lib/resources/subscription_models.d.cts +2 -2
  1060. package/lib/resources/subscription_models.d.ts +1 -1
  1061. package/lib/resources/subscription_models.js +3 -3
  1062. package/lib/resources/tags.cjs +4 -4
  1063. package/lib/resources/tags.d.cts +2 -2
  1064. package/lib/resources/tags.d.ts +1 -1
  1065. package/lib/resources/tags.js +3 -3
  1066. package/lib/resources/talon_one_accounts.cjs +4 -4
  1067. package/lib/resources/talon_one_accounts.d.cts +2 -2
  1068. package/lib/resources/talon_one_accounts.d.ts +1 -1
  1069. package/lib/resources/talon_one_accounts.js +3 -3
  1070. package/lib/resources/tax_calculators.cjs +4 -4
  1071. package/lib/resources/tax_calculators.d.cts +2 -2
  1072. package/lib/resources/tax_calculators.d.ts +1 -1
  1073. package/lib/resources/tax_calculators.js +3 -3
  1074. package/lib/resources/tax_categories.cjs +4 -4
  1075. package/lib/resources/tax_categories.d.cts +2 -2
  1076. package/lib/resources/tax_categories.d.ts +1 -1
  1077. package/lib/resources/tax_categories.js +3 -3
  1078. package/lib/resources/tax_rules.cjs +4 -4
  1079. package/lib/resources/tax_rules.d.cts +2 -2
  1080. package/lib/resources/tax_rules.d.ts +1 -1
  1081. package/lib/resources/tax_rules.js +3 -3
  1082. package/lib/resources/taxjar_accounts.cjs +4 -4
  1083. package/lib/resources/taxjar_accounts.d.cts +2 -2
  1084. package/lib/resources/taxjar_accounts.d.ts +1 -1
  1085. package/lib/resources/taxjar_accounts.js +3 -3
  1086. package/lib/resources/transactions.cjs +4 -4
  1087. package/lib/resources/transactions.d.cts +2 -2
  1088. package/lib/resources/transactions.d.ts +1 -1
  1089. package/lib/resources/transactions.js +3 -3
  1090. package/lib/resources/vertex_accounts.cjs +4 -4
  1091. package/lib/resources/vertex_accounts.d.cts +2 -2
  1092. package/lib/resources/vertex_accounts.d.ts +1 -1
  1093. package/lib/resources/vertex_accounts.js +3 -3
  1094. package/lib/resources/voids.cjs +4 -4
  1095. package/lib/resources/voids.d.cts +2 -2
  1096. package/lib/resources/voids.d.ts +1 -1
  1097. package/lib/resources/voids.js +3 -3
  1098. package/lib/resources/webhooks.cjs +4 -4
  1099. package/lib/resources/webhooks.d.cts +2 -2
  1100. package/lib/resources/webhooks.d.ts +1 -1
  1101. package/lib/resources/webhooks.js +3 -3
  1102. package/lib/resources/wire_transfers.cjs +4 -4
  1103. package/lib/resources/wire_transfers.d.cts +2 -2
  1104. package/lib/resources/wire_transfers.d.ts +1 -1
  1105. package/lib/resources/wire_transfers.js +3 -3
  1106. package/lib/static.cjs +5 -5
  1107. package/lib/static.d.cts +1 -2
  1108. package/lib/static.d.ts +1 -2
  1109. package/lib/static.js +4 -4
  1110. package/package.json +9 -9
  1111. package/lib/api-C0NFQ-CQ.d.ts +0 -18311
  1112. package/lib/api-CG-sKBsP.d.cts +0 -18311
  1113. package/lib/chunk-22YZMDGS.js +0 -73
  1114. package/lib/chunk-22YZMDGS.js.map +0 -1
  1115. package/lib/chunk-24DYX22L.cjs +0 -34
  1116. package/lib/chunk-24DYX22L.cjs.map +0 -1
  1117. package/lib/chunk-25LV6XNE.js +0 -57
  1118. package/lib/chunk-25LV6XNE.js.map +0 -1
  1119. package/lib/chunk-25SYMOHP.js +0 -63
  1120. package/lib/chunk-25SYMOHP.js.map +0 -1
  1121. package/lib/chunk-26IU3VMW.cjs +0 -73
  1122. package/lib/chunk-26IU3VMW.cjs.map +0 -1
  1123. package/lib/chunk-2COD7SFI.js +0 -24
  1124. package/lib/chunk-2COD7SFI.js.map +0 -1
  1125. package/lib/chunk-2TD56UNA.js +0 -97
  1126. package/lib/chunk-2TD56UNA.js.map +0 -1
  1127. package/lib/chunk-2UBHGJAR.cjs +0 -30
  1128. package/lib/chunk-2UBHGJAR.cjs.map +0 -1
  1129. package/lib/chunk-353DTUT5.js +0 -56
  1130. package/lib/chunk-353DTUT5.js.map +0 -1
  1131. package/lib/chunk-3AQSJH4T.js +0 -53
  1132. package/lib/chunk-3AQSJH4T.js.map +0 -1
  1133. package/lib/chunk-3CYUKNAO.js +0 -48
  1134. package/lib/chunk-3CYUKNAO.js.map +0 -1
  1135. package/lib/chunk-3F4JHN42.cjs +0 -72
  1136. package/lib/chunk-3F4JHN42.cjs.map +0 -1
  1137. package/lib/chunk-3KCHHQTI.js +0 -97
  1138. package/lib/chunk-3KCHHQTI.js.map +0 -1
  1139. package/lib/chunk-3QSWUE22.cjs +0 -43
  1140. package/lib/chunk-3QSWUE22.cjs.map +0 -1
  1141. package/lib/chunk-3R5E4QEL.cjs +0 -57
  1142. package/lib/chunk-3R5E4QEL.cjs.map +0 -1
  1143. package/lib/chunk-3XPKZ3WM.js +0 -77
  1144. package/lib/chunk-3XPKZ3WM.js.map +0 -1
  1145. package/lib/chunk-42TXSEGY.js +0 -53
  1146. package/lib/chunk-42TXSEGY.js.map +0 -1
  1147. package/lib/chunk-42VXKVD6.js +0 -53
  1148. package/lib/chunk-42VXKVD6.js.map +0 -1
  1149. package/lib/chunk-4KIM2UAJ.cjs +0 -72
  1150. package/lib/chunk-4KIM2UAJ.cjs.map +0 -1
  1151. package/lib/chunk-4KPMQG57.js +0 -49
  1152. package/lib/chunk-4KPMQG57.js.map +0 -1
  1153. package/lib/chunk-4QMCNTO4.js +0 -44
  1154. package/lib/chunk-4QMCNTO4.js.map +0 -1
  1155. package/lib/chunk-4W5EFFJ5.js +0 -48
  1156. package/lib/chunk-4W5EFFJ5.js.map +0 -1
  1157. package/lib/chunk-4WQKP2HI.js +0 -44
  1158. package/lib/chunk-4WQKP2HI.js.map +0 -1
  1159. package/lib/chunk-4YEJFKWN.cjs +0 -55
  1160. package/lib/chunk-4YEJFKWN.cjs.map +0 -1
  1161. package/lib/chunk-4YS4H4WH.cjs +0 -54
  1162. package/lib/chunk-4YS4H4WH.cjs.map +0 -1
  1163. package/lib/chunk-52L77NN2.js +0 -59
  1164. package/lib/chunk-52L77NN2.js.map +0 -1
  1165. package/lib/chunk-53R4X7QD.js +0 -49
  1166. package/lib/chunk-53R4X7QD.js.map +0 -1
  1167. package/lib/chunk-54765SFP.js +0 -55
  1168. package/lib/chunk-54765SFP.js.map +0 -1
  1169. package/lib/chunk-56DPVYQJ.js +0 -41
  1170. package/lib/chunk-56DPVYQJ.js.map +0 -1
  1171. package/lib/chunk-57EVDZVF.js +0 -63
  1172. package/lib/chunk-57EVDZVF.js.map +0 -1
  1173. package/lib/chunk-5CXQ67TT.js +0 -53
  1174. package/lib/chunk-5CXQ67TT.js.map +0 -1
  1175. package/lib/chunk-5FZ57V3M.cjs +0 -93
  1176. package/lib/chunk-5FZ57V3M.cjs.map +0 -1
  1177. package/lib/chunk-5NX7MHXP.cjs +0 -51
  1178. package/lib/chunk-5NX7MHXP.cjs.map +0 -1
  1179. package/lib/chunk-5QA264ZF.cjs +0 -74
  1180. package/lib/chunk-5QA264ZF.cjs.map +0 -1
  1181. package/lib/chunk-5QFZLLE2.js +0 -37
  1182. package/lib/chunk-5QFZLLE2.js.map +0 -1
  1183. package/lib/chunk-5T44TAQU.cjs +0 -130
  1184. package/lib/chunk-5T44TAQU.cjs.map +0 -1
  1185. package/lib/chunk-5UPTFJAY.cjs +0 -51
  1186. package/lib/chunk-5UPTFJAY.cjs.map +0 -1
  1187. package/lib/chunk-5WLMMRAX.js +0 -93
  1188. package/lib/chunk-5WLMMRAX.js.map +0 -1
  1189. package/lib/chunk-5Z47LT7L.js +0 -53
  1190. package/lib/chunk-5Z47LT7L.js.map +0 -1
  1191. package/lib/chunk-5ZWOLVB6.js +0 -128
  1192. package/lib/chunk-5ZWOLVB6.js.map +0 -1
  1193. package/lib/chunk-65QUR5IL.js +0 -97
  1194. package/lib/chunk-65QUR5IL.js.map +0 -1
  1195. package/lib/chunk-66BQF7RB.cjs +0 -61
  1196. package/lib/chunk-66BQF7RB.cjs.map +0 -1
  1197. package/lib/chunk-6EY5MW3N.js +0 -53
  1198. package/lib/chunk-6EY5MW3N.js.map +0 -1
  1199. package/lib/chunk-6GB4YMFB.js +0 -52
  1200. package/lib/chunk-6GB4YMFB.js.map +0 -1
  1201. package/lib/chunk-6RLGIXTB.cjs +0 -61
  1202. package/lib/chunk-6RLGIXTB.cjs.map +0 -1
  1203. package/lib/chunk-6YX6BZB6.js +0 -55
  1204. package/lib/chunk-6YX6BZB6.js.map +0 -1
  1205. package/lib/chunk-73IEITRE.js +0 -44
  1206. package/lib/chunk-73IEITRE.js.map +0 -1
  1207. package/lib/chunk-73XFO6GL.cjs +0 -51
  1208. package/lib/chunk-73XFO6GL.cjs.map +0 -1
  1209. package/lib/chunk-76RBIF4U.cjs +0 -79
  1210. package/lib/chunk-76RBIF4U.cjs.map +0 -1
  1211. package/lib/chunk-7FKCICOI.js +0 -55
  1212. package/lib/chunk-7FKCICOI.js.map +0 -1
  1213. package/lib/chunk-7N7KBV6L.js +0 -158
  1214. package/lib/chunk-7N7KBV6L.js.map +0 -1
  1215. package/lib/chunk-7UCAVCXA.cjs +0 -99
  1216. package/lib/chunk-7UCAVCXA.cjs.map +0 -1
  1217. package/lib/chunk-7XIPWO7I.cjs +0 -61
  1218. package/lib/chunk-7XIPWO7I.cjs.map +0 -1
  1219. package/lib/chunk-A7PIWL4I.js +0 -58
  1220. package/lib/chunk-A7PIWL4I.js.map +0 -1
  1221. package/lib/chunk-AGJQ5BMW.cjs +0 -107
  1222. package/lib/chunk-AGJQ5BMW.cjs.map +0 -1
  1223. package/lib/chunk-AHJQVBKB.cjs +0 -160
  1224. package/lib/chunk-AHJQVBKB.cjs.map +0 -1
  1225. package/lib/chunk-AJ5YOH5P.cjs +0 -30
  1226. package/lib/chunk-AJ5YOH5P.cjs.map +0 -1
  1227. package/lib/chunk-AQHMSOPU.js +0 -45
  1228. package/lib/chunk-AQHMSOPU.js.map +0 -1
  1229. package/lib/chunk-ASRC3G5N.cjs +0 -42
  1230. package/lib/chunk-ASRC3G5N.cjs.map +0 -1
  1231. package/lib/chunk-B3IWIR5W.cjs +0 -46
  1232. package/lib/chunk-B3IWIR5W.cjs.map +0 -1
  1233. package/lib/chunk-B4ASY4NL.js +0 -45
  1234. package/lib/chunk-B4ASY4NL.js.map +0 -1
  1235. package/lib/chunk-B6IY37XK.js +0 -70
  1236. package/lib/chunk-B6IY37XK.js.map +0 -1
  1237. package/lib/chunk-B6RRN2R4.cjs +0 -51
  1238. package/lib/chunk-B6RRN2R4.cjs.map +0 -1
  1239. package/lib/chunk-BBNWP52Z.cjs +0 -44
  1240. package/lib/chunk-BBNWP52Z.cjs.map +0 -1
  1241. package/lib/chunk-BCFDI5BB.cjs +0 -51
  1242. package/lib/chunk-BCFDI5BB.cjs.map +0 -1
  1243. package/lib/chunk-BE7FUFTL.js +0 -53
  1244. package/lib/chunk-BE7FUFTL.js.map +0 -1
  1245. package/lib/chunk-BGS3XVZ5.js +0 -107
  1246. package/lib/chunk-BGS3XVZ5.js.map +0 -1
  1247. package/lib/chunk-BLZ627KE.js +0 -59
  1248. package/lib/chunk-BLZ627KE.js.map +0 -1
  1249. package/lib/chunk-BOFLUBPB.js +0 -55
  1250. package/lib/chunk-BOFLUBPB.js.map +0 -1
  1251. package/lib/chunk-BUCTRSWS.js +0 -45
  1252. package/lib/chunk-BUCTRSWS.js.map +0 -1
  1253. package/lib/chunk-BUKCNQRD.cjs +0 -43
  1254. package/lib/chunk-BUKCNQRD.cjs.map +0 -1
  1255. package/lib/chunk-C2JKMWGR.cjs +0 -51
  1256. package/lib/chunk-C2JKMWGR.cjs.map +0 -1
  1257. package/lib/chunk-C5ML5FMX.cjs +0 -53
  1258. package/lib/chunk-C5ML5FMX.cjs.map +0 -1
  1259. package/lib/chunk-C77T7SV5.js +0 -49
  1260. package/lib/chunk-C77T7SV5.js.map +0 -1
  1261. package/lib/chunk-C7QY2RS6.js +0 -102
  1262. package/lib/chunk-C7QY2RS6.js.map +0 -1
  1263. package/lib/chunk-CD4WJZWD.js +0 -49
  1264. package/lib/chunk-CD4WJZWD.js.map +0 -1
  1265. package/lib/chunk-CHJOIVWT.cjs +0 -51
  1266. package/lib/chunk-CHJOIVWT.cjs.map +0 -1
  1267. package/lib/chunk-CIEVYLNA.cjs +0 -57
  1268. package/lib/chunk-CIEVYLNA.cjs.map +0 -1
  1269. package/lib/chunk-CRRVMIDJ.js +0 -32
  1270. package/lib/chunk-CRRVMIDJ.js.map +0 -1
  1271. package/lib/chunk-CSRXWHGF.cjs +0 -662
  1272. package/lib/chunk-CSRXWHGF.cjs.map +0 -1
  1273. package/lib/chunk-CXDNL2TL.cjs +0 -57
  1274. package/lib/chunk-CXDNL2TL.cjs.map +0 -1
  1275. package/lib/chunk-CZVJWKHF.cjs +0 -51
  1276. package/lib/chunk-CZVJWKHF.cjs.map +0 -1
  1277. package/lib/chunk-D5KCXRAI.js +0 -57
  1278. package/lib/chunk-D5KCXRAI.js.map +0 -1
  1279. package/lib/chunk-DGYQ3LEP.cjs +0 -34
  1280. package/lib/chunk-DGYQ3LEP.cjs.map +0 -1
  1281. package/lib/chunk-DHT6PN4S.js +0 -72
  1282. package/lib/chunk-DHT6PN4S.js.map +0 -1
  1283. package/lib/chunk-DKKVAVBN.cjs +0 -99
  1284. package/lib/chunk-DKKVAVBN.cjs.map +0 -1
  1285. package/lib/chunk-DKUONF23.cjs +0 -56
  1286. package/lib/chunk-DKUONF23.cjs.map +0 -1
  1287. package/lib/chunk-DZ6EOOOY.js +0 -41
  1288. package/lib/chunk-DZ6EOOOY.js.map +0 -1
  1289. package/lib/chunk-E2GOZ7ZV.js +0 -55
  1290. package/lib/chunk-E2GOZ7ZV.js.map +0 -1
  1291. package/lib/chunk-E4RUQPMF.js +0 -40
  1292. package/lib/chunk-E4RUQPMF.js.map +0 -1
  1293. package/lib/chunk-ED72HDOR.js +0 -31
  1294. package/lib/chunk-ED72HDOR.js.map +0 -1
  1295. package/lib/chunk-EGM5WCK7.js +0 -40
  1296. package/lib/chunk-EGM5WCK7.js.map +0 -1
  1297. package/lib/chunk-EN3E3X22.cjs +0 -46
  1298. package/lib/chunk-EN3E3X22.cjs.map +0 -1
  1299. package/lib/chunk-EOSTJ3GG.cjs +0 -50
  1300. package/lib/chunk-EOSTJ3GG.cjs.map +0 -1
  1301. package/lib/chunk-ESUFQPT7.cjs +0 -71
  1302. package/lib/chunk-ESUFQPT7.cjs.map +0 -1
  1303. package/lib/chunk-ESW2GV47.js +0 -100
  1304. package/lib/chunk-ESW2GV47.js.map +0 -1
  1305. package/lib/chunk-ETO33E5U.js +0 -51
  1306. package/lib/chunk-ETO33E5U.js.map +0 -1
  1307. package/lib/chunk-EV7JAD4X.js +0 -91
  1308. package/lib/chunk-EV7JAD4X.js.map +0 -1
  1309. package/lib/chunk-EY3D7ONH.cjs +0 -109
  1310. package/lib/chunk-EY3D7ONH.cjs.map +0 -1
  1311. package/lib/chunk-EZQHOZI2.js +0 -49
  1312. package/lib/chunk-EZQHOZI2.js.map +0 -1
  1313. package/lib/chunk-F3P63HYI.cjs +0 -65
  1314. package/lib/chunk-F3P63HYI.cjs.map +0 -1
  1315. package/lib/chunk-F6J4CRBZ.cjs +0 -38
  1316. package/lib/chunk-F6J4CRBZ.cjs.map +0 -1
  1317. package/lib/chunk-FBGHKFDZ.js +0 -68
  1318. package/lib/chunk-FBGHKFDZ.js.map +0 -1
  1319. package/lib/chunk-FEKNIG3W.js +0 -99
  1320. package/lib/chunk-FEKNIG3W.js.map +0 -1
  1321. package/lib/chunk-FKAKFPAS.js +0 -61
  1322. package/lib/chunk-FKAKFPAS.js.map +0 -1
  1323. package/lib/chunk-FSXKG62A.js +0 -100
  1324. package/lib/chunk-FSXKG62A.js.map +0 -1
  1325. package/lib/chunk-FT2UGQVD.js +0 -54
  1326. package/lib/chunk-FT2UGQVD.js.map +0 -1
  1327. package/lib/chunk-FUYP7J3H.js +0 -53
  1328. package/lib/chunk-FUYP7J3H.js.map +0 -1
  1329. package/lib/chunk-FWRDLTUT.cjs +0 -53
  1330. package/lib/chunk-FWRDLTUT.cjs.map +0 -1
  1331. package/lib/chunk-FYI5M2XM.cjs +0 -57
  1332. package/lib/chunk-FYI5M2XM.cjs.map +0 -1
  1333. package/lib/chunk-FYKH5NLF.cjs +0 -50
  1334. package/lib/chunk-FYKH5NLF.cjs.map +0 -1
  1335. package/lib/chunk-G2XGWVV4.cjs +0 -81
  1336. package/lib/chunk-G2XGWVV4.cjs.map +0 -1
  1337. package/lib/chunk-GH7OO6KJ.js +0 -27
  1338. package/lib/chunk-GH7OO6KJ.js.map +0 -1
  1339. package/lib/chunk-GNLY3HQ4.js +0 -105
  1340. package/lib/chunk-GNLY3HQ4.js.map +0 -1
  1341. package/lib/chunk-GRKXRJZE.js +0 -65
  1342. package/lib/chunk-GRKXRJZE.js.map +0 -1
  1343. package/lib/chunk-GSHDLOHZ.js +0 -97
  1344. package/lib/chunk-GSHDLOHZ.js.map +0 -1
  1345. package/lib/chunk-GSTAUOVL.js +0 -57
  1346. package/lib/chunk-GSTAUOVL.js.map +0 -1
  1347. package/lib/chunk-H3IBVZVF.js +0 -28
  1348. package/lib/chunk-H3IBVZVF.js.map +0 -1
  1349. package/lib/chunk-H4MPRTXI.js +0 -37
  1350. package/lib/chunk-H4MPRTXI.js.map +0 -1
  1351. package/lib/chunk-H5JOZYXN.cjs +0 -51
  1352. package/lib/chunk-H5JOZYXN.cjs.map +0 -1
  1353. package/lib/chunk-H7ZINK52.cjs +0 -93
  1354. package/lib/chunk-H7ZINK52.cjs.map +0 -1
  1355. package/lib/chunk-HFAQPY4K.cjs +0 -42
  1356. package/lib/chunk-HFAQPY4K.cjs.map +0 -1
  1357. package/lib/chunk-HLL6WIIC.js +0 -91
  1358. package/lib/chunk-HLL6WIIC.js.map +0 -1
  1359. package/lib/chunk-HLPUCTAZ.js +0 -103
  1360. package/lib/chunk-HLPUCTAZ.js.map +0 -1
  1361. package/lib/chunk-HNADBQ2G.cjs +0 -55
  1362. package/lib/chunk-HNADBQ2G.cjs.map +0 -1
  1363. package/lib/chunk-HOKEKQDI.js +0 -49
  1364. package/lib/chunk-HOKEKQDI.js.map +0 -1
  1365. package/lib/chunk-HP2WA7CM.cjs +0 -59
  1366. package/lib/chunk-HP2WA7CM.cjs.map +0 -1
  1367. package/lib/chunk-HQZ3S65M.js +0 -44
  1368. package/lib/chunk-HQZ3S65M.js.map +0 -1
  1369. package/lib/chunk-HR6ZQP3L.cjs +0 -66
  1370. package/lib/chunk-HR6ZQP3L.cjs.map +0 -1
  1371. package/lib/chunk-HR773LV5.cjs +0 -54
  1372. package/lib/chunk-HR773LV5.cjs.map +0 -1
  1373. package/lib/chunk-HTQJYP75.cjs +0 -46
  1374. package/lib/chunk-HTQJYP75.cjs.map +0 -1
  1375. package/lib/chunk-HWEIUKPN.cjs +0 -57
  1376. package/lib/chunk-HWEIUKPN.cjs.map +0 -1
  1377. package/lib/chunk-HWL3MJQJ.cjs +0 -60
  1378. package/lib/chunk-HWL3MJQJ.cjs.map +0 -1
  1379. package/lib/chunk-HZB22SU2.cjs +0 -51
  1380. package/lib/chunk-HZB22SU2.cjs.map +0 -1
  1381. package/lib/chunk-I22GQQSK.js +0 -97
  1382. package/lib/chunk-I22GQQSK.js.map +0 -1
  1383. package/lib/chunk-IESEQGGO.js +0 -65
  1384. package/lib/chunk-IESEQGGO.js.map +0 -1
  1385. package/lib/chunk-IFLQJWJG.cjs +0 -55
  1386. package/lib/chunk-IFLQJWJG.cjs.map +0 -1
  1387. package/lib/chunk-IGK3AET6.cjs +0 -47
  1388. package/lib/chunk-IGK3AET6.cjs.map +0 -1
  1389. package/lib/chunk-IJT6ADCT.cjs +0 -70
  1390. package/lib/chunk-IJT6ADCT.cjs.map +0 -1
  1391. package/lib/chunk-IMZ67YBL.cjs +0 -55
  1392. package/lib/chunk-IMZ67YBL.cjs.map +0 -1
  1393. package/lib/chunk-IR7ERHZU.js +0 -57
  1394. package/lib/chunk-IR7ERHZU.js.map +0 -1
  1395. package/lib/chunk-IWQQN4E4.js +0 -47
  1396. package/lib/chunk-IWQQN4E4.js.map +0 -1
  1397. package/lib/chunk-J3K32YXQ.js +0 -49
  1398. package/lib/chunk-J3K32YXQ.js.map +0 -1
  1399. package/lib/chunk-J5QKU3U7.cjs +0 -54
  1400. package/lib/chunk-J5QKU3U7.cjs.map +0 -1
  1401. package/lib/chunk-JAL5VEJ4.cjs +0 -51
  1402. package/lib/chunk-JAL5VEJ4.cjs.map +0 -1
  1403. package/lib/chunk-JBNN5FLR.cjs +0 -99
  1404. package/lib/chunk-JBNN5FLR.cjs.map +0 -1
  1405. package/lib/chunk-JEFXEO7O.js +0 -49
  1406. package/lib/chunk-JEFXEO7O.js.map +0 -1
  1407. package/lib/chunk-JIAAPIJS.js +0 -69
  1408. package/lib/chunk-JIAAPIJS.js.map +0 -1
  1409. package/lib/chunk-JMGGWZOQ.js +0 -287
  1410. package/lib/chunk-JMGGWZOQ.js.map +0 -1
  1411. package/lib/chunk-JNDUIJGS.js +0 -32
  1412. package/lib/chunk-JNDUIJGS.js.map +0 -1
  1413. package/lib/chunk-JTECSGQK.cjs +0 -95
  1414. package/lib/chunk-JTECSGQK.cjs.map +0 -1
  1415. package/lib/chunk-JU2GYUKV.js +0 -54
  1416. package/lib/chunk-JU2GYUKV.js.map +0 -1
  1417. package/lib/chunk-JW3TKFSF.cjs +0 -99
  1418. package/lib/chunk-JW3TKFSF.cjs.map +0 -1
  1419. package/lib/chunk-JWW6RX2L.cjs +0 -47
  1420. package/lib/chunk-JWW6RX2L.cjs.map +0 -1
  1421. package/lib/chunk-K4FGKWEQ.js +0 -36
  1422. package/lib/chunk-K4FGKWEQ.js.map +0 -1
  1423. package/lib/chunk-KAARRP5O.js +0 -59
  1424. package/lib/chunk-KAARRP5O.js.map +0 -1
  1425. package/lib/chunk-KDCQAUUV.js +0 -48
  1426. package/lib/chunk-KDCQAUUV.js.map +0 -1
  1427. package/lib/chunk-KMPHWFCV.cjs +0 -47
  1428. package/lib/chunk-KMPHWFCV.cjs.map +0 -1
  1429. package/lib/chunk-KRNU2FZC.js +0 -53
  1430. package/lib/chunk-KRNU2FZC.js.map +0 -1
  1431. package/lib/chunk-KUX4X636.js +0 -49
  1432. package/lib/chunk-KUX4X636.js.map +0 -1
  1433. package/lib/chunk-KWIFQC7H.js +0 -52
  1434. package/lib/chunk-KWIFQC7H.js.map +0 -1
  1435. package/lib/chunk-KZNM2CKM.cjs +0 -59
  1436. package/lib/chunk-KZNM2CKM.cjs.map +0 -1
  1437. package/lib/chunk-L27E3EGQ.js +0 -49
  1438. package/lib/chunk-L27E3EGQ.js.map +0 -1
  1439. package/lib/chunk-L2R5G3V5.js +0 -276
  1440. package/lib/chunk-L2R5G3V5.js.map +0 -1
  1441. package/lib/chunk-L655OQHH.cjs +0 -29
  1442. package/lib/chunk-L655OQHH.cjs.map +0 -1
  1443. package/lib/chunk-L6OLNB6W.js +0 -41
  1444. package/lib/chunk-L6OLNB6W.js.map +0 -1
  1445. package/lib/chunk-L7VZ5ST5.cjs +0 -60
  1446. package/lib/chunk-L7VZ5ST5.cjs.map +0 -1
  1447. package/lib/chunk-LBY2RHI4.js +0 -45
  1448. package/lib/chunk-LBY2RHI4.js.map +0 -1
  1449. package/lib/chunk-LLRE4DNW.cjs +0 -55
  1450. package/lib/chunk-LLRE4DNW.cjs.map +0 -1
  1451. package/lib/chunk-MAU4GMOM.js +0 -52
  1452. package/lib/chunk-MAU4GMOM.js.map +0 -1
  1453. package/lib/chunk-MBDEK4FD.cjs +0 -51
  1454. package/lib/chunk-MBDEK4FD.cjs.map +0 -1
  1455. package/lib/chunk-MDT7RJZY.cjs +0 -39
  1456. package/lib/chunk-MDT7RJZY.cjs.map +0 -1
  1457. package/lib/chunk-MF72Q5LL.cjs +0 -39
  1458. package/lib/chunk-MF72Q5LL.cjs.map +0 -1
  1459. package/lib/chunk-MGIOWUKO.cjs +0 -38
  1460. package/lib/chunk-MGIOWUKO.cjs.map +0 -1
  1461. package/lib/chunk-MIBC5G27.js +0 -77
  1462. package/lib/chunk-MIBC5G27.js.map +0 -1
  1463. package/lib/chunk-MVNE63MT.cjs +0 -67
  1464. package/lib/chunk-MVNE63MT.cjs.map +0 -1
  1465. package/lib/chunk-MWDZBQOU.cjs +0 -47
  1466. package/lib/chunk-MWDZBQOU.cjs.map +0 -1
  1467. package/lib/chunk-NAPSK4CV.js +0 -48
  1468. package/lib/chunk-NAPSK4CV.js.map +0 -1
  1469. package/lib/chunk-NEZXHBGE.js +0 -3
  1470. package/lib/chunk-NEZXHBGE.js.map +0 -1
  1471. package/lib/chunk-NKPMXNFW.js +0 -49
  1472. package/lib/chunk-NKPMXNFW.js.map +0 -1
  1473. package/lib/chunk-NKSXB523.js +0 -42
  1474. package/lib/chunk-NKSXB523.js.map +0 -1
  1475. package/lib/chunk-NL65GQHX.cjs +0 -39
  1476. package/lib/chunk-NL65GQHX.cjs.map +0 -1
  1477. package/lib/chunk-NM2TVMKS.cjs +0 -43
  1478. package/lib/chunk-NM2TVMKS.cjs.map +0 -1
  1479. package/lib/chunk-NNRS7BTT.cjs +0 -107
  1480. package/lib/chunk-NNRS7BTT.cjs.map +0 -1
  1481. package/lib/chunk-NUQ5KNXC.cjs +0 -63
  1482. package/lib/chunk-NUQ5KNXC.cjs.map +0 -1
  1483. package/lib/chunk-OIKRKTUG.cjs +0 -50
  1484. package/lib/chunk-OIKRKTUG.cjs.map +0 -1
  1485. package/lib/chunk-OQ3ZPPCE.js +0 -55
  1486. package/lib/chunk-OQ3ZPPCE.js.map +0 -1
  1487. package/lib/chunk-OR5ULL43.js +0 -55
  1488. package/lib/chunk-OR5ULL43.js.map +0 -1
  1489. package/lib/chunk-OSGNFURJ.js +0 -63
  1490. package/lib/chunk-OSGNFURJ.js.map +0 -1
  1491. package/lib/chunk-OSPDLBK7.cjs +0 -57
  1492. package/lib/chunk-OSPDLBK7.cjs.map +0 -1
  1493. package/lib/chunk-OTJ3AG3G.js +0 -45
  1494. package/lib/chunk-OTJ3AG3G.js.map +0 -1
  1495. package/lib/chunk-OUZO3UT3.cjs +0 -65
  1496. package/lib/chunk-OUZO3UT3.cjs.map +0 -1
  1497. package/lib/chunk-OXMHLYDD.js +0 -49
  1498. package/lib/chunk-OXMHLYDD.js.map +0 -1
  1499. package/lib/chunk-P2B3G2TZ.js +0 -44
  1500. package/lib/chunk-P2B3G2TZ.js.map +0 -1
  1501. package/lib/chunk-P3AQZNTG.js +0 -79
  1502. package/lib/chunk-P3AQZNTG.js.map +0 -1
  1503. package/lib/chunk-P3C4DMT6.cjs +0 -57
  1504. package/lib/chunk-P3C4DMT6.cjs.map +0 -1
  1505. package/lib/chunk-P6H53BD7.cjs +0 -102
  1506. package/lib/chunk-P6H53BD7.cjs.map +0 -1
  1507. package/lib/chunk-PAWJTO7I.js +0 -49
  1508. package/lib/chunk-PAWJTO7I.js.map +0 -1
  1509. package/lib/chunk-PD4I73FB.cjs +0 -105
  1510. package/lib/chunk-PD4I73FB.cjs.map +0 -1
  1511. package/lib/chunk-PGXMLN7A.js +0 -49
  1512. package/lib/chunk-PGXMLN7A.js.map +0 -1
  1513. package/lib/chunk-PUX7CAAV.js +0 -53
  1514. package/lib/chunk-PUX7CAAV.js.map +0 -1
  1515. package/lib/chunk-QE7S4OUZ.cjs +0 -51
  1516. package/lib/chunk-QE7S4OUZ.cjs.map +0 -1
  1517. package/lib/chunk-QKCTP2RD.cjs +0 -55
  1518. package/lib/chunk-QKCTP2RD.cjs.map +0 -1
  1519. package/lib/chunk-QNFZBJFQ.cjs +0 -58
  1520. package/lib/chunk-QNFZBJFQ.cjs.map +0 -1
  1521. package/lib/chunk-QU4NPZQC.cjs +0 -56
  1522. package/lib/chunk-QU4NPZQC.cjs.map +0 -1
  1523. package/lib/chunk-QVJTWTUN.cjs +0 -54
  1524. package/lib/chunk-QVJTWTUN.cjs.map +0 -1
  1525. package/lib/chunk-R3PNGGDR.cjs +0 -55
  1526. package/lib/chunk-R3PNGGDR.cjs.map +0 -1
  1527. package/lib/chunk-R7PR3V6Z.cjs +0 -51
  1528. package/lib/chunk-R7PR3V6Z.cjs.map +0 -1
  1529. package/lib/chunk-RH363QI7.cjs +0 -99
  1530. package/lib/chunk-RH363QI7.cjs.map +0 -1
  1531. package/lib/chunk-RLZGD4WS.cjs +0 -57
  1532. package/lib/chunk-RLZGD4WS.cjs.map +0 -1
  1533. package/lib/chunk-RNCWBCHU.js +0 -55
  1534. package/lib/chunk-RNCWBCHU.js.map +0 -1
  1535. package/lib/chunk-SEY2W62A.js +0 -53
  1536. package/lib/chunk-SEY2W62A.js.map +0 -1
  1537. package/lib/chunk-SGJTWE5I.js +0 -40
  1538. package/lib/chunk-SGJTWE5I.js.map +0 -1
  1539. package/lib/chunk-SK7SIING.cjs +0 -42
  1540. package/lib/chunk-SK7SIING.cjs.map +0 -1
  1541. package/lib/chunk-SNHW3YC5.cjs +0 -55
  1542. package/lib/chunk-SNHW3YC5.cjs.map +0 -1
  1543. package/lib/chunk-SRYEFARJ.cjs +0 -4
  1544. package/lib/chunk-SRYEFARJ.cjs.map +0 -1
  1545. package/lib/chunk-SXCTTGYT.cjs +0 -50
  1546. package/lib/chunk-SXCTTGYT.cjs.map +0 -1
  1547. package/lib/chunk-SXQSMTHR.js +0 -58
  1548. package/lib/chunk-SXQSMTHR.js.map +0 -1
  1549. package/lib/chunk-SZYWVDPJ.cjs +0 -42
  1550. package/lib/chunk-SZYWVDPJ.cjs.map +0 -1
  1551. package/lib/chunk-T4SW2CZX.cjs +0 -67
  1552. package/lib/chunk-T4SW2CZX.cjs.map +0 -1
  1553. package/lib/chunk-TE54DOJ6.cjs +0 -75
  1554. package/lib/chunk-TE54DOJ6.cjs.map +0 -1
  1555. package/lib/chunk-TJGZYDVV.js +0 -58
  1556. package/lib/chunk-TJGZYDVV.js.map +0 -1
  1557. package/lib/chunk-U43UPLTK.cjs +0 -42
  1558. package/lib/chunk-U43UPLTK.cjs.map +0 -1
  1559. package/lib/chunk-U5ZUHRP7.cjs +0 -65
  1560. package/lib/chunk-U5ZUHRP7.cjs.map +0 -1
  1561. package/lib/chunk-U7NVUYAO.js +0 -71
  1562. package/lib/chunk-U7NVUYAO.js.map +0 -1
  1563. package/lib/chunk-UBH2EC5P.cjs +0 -284
  1564. package/lib/chunk-UBH2EC5P.cjs.map +0 -1
  1565. package/lib/chunk-UMIZNUUK.js +0 -45
  1566. package/lib/chunk-UMIZNUUK.js.map +0 -1
  1567. package/lib/chunk-UR35VE5O.js +0 -53
  1568. package/lib/chunk-UR35VE5O.js.map +0 -1
  1569. package/lib/chunk-UTJX7SU6.cjs +0 -55
  1570. package/lib/chunk-UTJX7SU6.cjs.map +0 -1
  1571. package/lib/chunk-V2JFGTP4.cjs +0 -33
  1572. package/lib/chunk-V2JFGTP4.cjs.map +0 -1
  1573. package/lib/chunk-V3VI5SLU.cjs +0 -58
  1574. package/lib/chunk-V3VI5SLU.cjs.map +0 -1
  1575. package/lib/chunk-V57VEB52.cjs +0 -51
  1576. package/lib/chunk-V57VEB52.cjs.map +0 -1
  1577. package/lib/chunk-VCJOH3IE.js +0 -63
  1578. package/lib/chunk-VCJOH3IE.js.map +0 -1
  1579. package/lib/chunk-W5HJOZUZ.js +0 -55
  1580. package/lib/chunk-W5HJOZUZ.js.map +0 -1
  1581. package/lib/chunk-W6D7ACVK.cjs +0 -26
  1582. package/lib/chunk-W6D7ACVK.cjs.map +0 -1
  1583. package/lib/chunk-W76GDFLA.cjs +0 -49
  1584. package/lib/chunk-W76GDFLA.cjs.map +0 -1
  1585. package/lib/chunk-W7A5TBOT.js +0 -37
  1586. package/lib/chunk-W7A5TBOT.js.map +0 -1
  1587. package/lib/chunk-W7QZ4IET.js +0 -55
  1588. package/lib/chunk-W7QZ4IET.js.map +0 -1
  1589. package/lib/chunk-WAXSMT74.js +0 -49
  1590. package/lib/chunk-WAXSMT74.js.map +0 -1
  1591. package/lib/chunk-WENVZ7YQ.cjs +0 -60
  1592. package/lib/chunk-WENVZ7YQ.cjs.map +0 -1
  1593. package/lib/chunk-WN4NEQG3.cjs +0 -47
  1594. package/lib/chunk-WN4NEQG3.cjs.map +0 -1
  1595. package/lib/chunk-WPMZGCSL.js +0 -49
  1596. package/lib/chunk-WPMZGCSL.js.map +0 -1
  1597. package/lib/chunk-WVXUXB6M.cjs +0 -51
  1598. package/lib/chunk-WVXUXB6M.cjs.map +0 -1
  1599. package/lib/chunk-WYSCB65K.cjs +0 -65
  1600. package/lib/chunk-WYSCB65K.cjs.map +0 -1
  1601. package/lib/chunk-WZKB5BTI.cjs +0 -57
  1602. package/lib/chunk-WZKB5BTI.cjs.map +0 -1
  1603. package/lib/chunk-X3FOQEIP.cjs +0 -57
  1604. package/lib/chunk-X3FOQEIP.cjs.map +0 -1
  1605. package/lib/chunk-X435FPBT.js +0 -70
  1606. package/lib/chunk-X435FPBT.js.map +0 -1
  1607. package/lib/chunk-XAWZYCIT.cjs +0 -51
  1608. package/lib/chunk-XAWZYCIT.cjs.map +0 -1
  1609. package/lib/chunk-XFOVGIFM.cjs +0 -59
  1610. package/lib/chunk-XFOVGIFM.cjs.map +0 -1
  1611. package/lib/chunk-XGQYAM2O.cjs +0 -102
  1612. package/lib/chunk-XGQYAM2O.cjs.map +0 -1
  1613. package/lib/chunk-XHRLLOTH.cjs +0 -46
  1614. package/lib/chunk-XHRLLOTH.cjs.map +0 -1
  1615. package/lib/chunk-XLHGFYJD.js +0 -40
  1616. package/lib/chunk-XLHGFYJD.js.map +0 -1
  1617. package/lib/chunk-XLSIK3Q5.js +0 -40
  1618. package/lib/chunk-XLSIK3Q5.js.map +0 -1
  1619. package/lib/chunk-XMOZVHO7.js +0 -56
  1620. package/lib/chunk-XMOZVHO7.js.map +0 -1
  1621. package/lib/chunk-YDYPUEOW.js +0 -52
  1622. package/lib/chunk-YDYPUEOW.js.map +0 -1
  1623. package/lib/chunk-YF5IJQZK.cjs +0 -55
  1624. package/lib/chunk-YF5IJQZK.cjs.map +0 -1
  1625. package/lib/chunk-YI3IDZIR.js +0 -646
  1626. package/lib/chunk-YI3IDZIR.js.map +0 -1
  1627. package/lib/chunk-YNFTOIKI.cjs +0 -47
  1628. package/lib/chunk-YNFTOIKI.cjs.map +0 -1
  1629. package/lib/chunk-YOAULZCB.js +0 -28
  1630. package/lib/chunk-YOAULZCB.js.map +0 -1
  1631. package/lib/chunk-YOH56Z73.js +0 -64
  1632. package/lib/chunk-YOH56Z73.js.map +0 -1
  1633. package/lib/chunk-YYFNNQAF.js +0 -49
  1634. package/lib/chunk-YYFNNQAF.js.map +0 -1
  1635. package/lib/chunk-Z7FWE3KQ.cjs +0 -55
  1636. package/lib/chunk-Z7FWE3KQ.cjs.map +0 -1
  1637. package/lib/chunk-ZA4UM7JC.js +0 -36
  1638. package/lib/chunk-ZA4UM7JC.js.map +0 -1
  1639. package/lib/chunk-ZBKA7LEU.js +0 -51
  1640. package/lib/chunk-ZBKA7LEU.js.map +0 -1
  1641. package/lib/chunk-ZDO4C624.cjs +0 -79
  1642. package/lib/chunk-ZDO4C624.cjs.map +0 -1
  1643. package/lib/chunk-ZDPMTK4O.js +0 -49
  1644. package/lib/chunk-ZDPMTK4O.js.map +0 -1
  1645. package/lib/chunk-ZJKC6474.cjs +0 -289
  1646. package/lib/chunk-ZJKC6474.cjs.map +0 -1
  1647. package/lib/chunk-ZKTVCW5B.cjs +0 -51
  1648. package/lib/chunk-ZKTVCW5B.cjs.map +0 -1
  1649. package/lib/chunk-ZKZLRD43.cjs +0 -46
  1650. package/lib/chunk-ZKZLRD43.cjs.map +0 -1
  1651. package/lib/chunk-ZNRKFQBN.cjs +0 -59
  1652. package/lib/chunk-ZNRKFQBN.cjs.map +0 -1
  1653. package/lib/chunk-ZU3CNZKE.cjs +0 -51
  1654. package/lib/chunk-ZU3CNZKE.cjs.map +0 -1
  1655. package/lib/chunk-ZUURLADK.cjs +0 -55
  1656. package/lib/chunk-ZUURLADK.cjs.map +0 -1
  1657. package/lib/chunk-ZWTMB75R.js +0 -49
  1658. package/lib/chunk-ZWTMB75R.js.map +0 -1
  1659. package/lib/chunk-ZYU4XA7Z.cjs +0 -101
  1660. package/lib/chunk-ZYU4XA7Z.cjs.map +0 -1
  1661. package/lib/resources/versions.cjs +0 -20
  1662. package/lib/resources/versions.cjs.map +0 -1
  1663. package/lib/resources/versions.d.cts +0 -7
  1664. package/lib/resources/versions.d.ts +0 -4
  1665. package/lib/resources/versions.js +0 -12
  1666. package/lib/resources/versions.js.map +0 -1
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/resources/transactions.ts"],"names":["ApiResource"],"mappings":";;;;;AAoGA,IAAM,YAAA,GAAN,MAAM,aAAA,SAAqBA,6BAAA,CAAyB;AAAA,EAEnD,OAAgB,IAAA,GAAwB,cAAA;AAAA,EAExC,MAAM,KAAA,CAAM,aAAA,EAAqC,MAAA,EAAqC,OAAA,EAA2C;AAChI,IAAA,MAAM,cAAA,GAAkB,cAA8B,EAAA,IAAM,aAAA;AAC5D,IAAA,OAAO,IAAA,CAAK,SAAA,CAAU,KAAA,CAAa,EAAE,IAAA,EAAM,QAAA,EAAS,EAAG,CAAA,aAAA,EAAgB,cAAc,CAAA,MAAA,CAAA,EAAU,MAAA,EAAQ,OAAO,CAAA;AAAA,EAC/G;AAAA,EAEA,MAAM,WAAA,CAAY,aAAA,EAAqC,MAAA,EAAsC,OAAA,EAA8D;AAC1J,IAAA,MAAM,cAAA,GAAkB,cAA8B,EAAA,IAAM,aAAA;AAC5D,IAAA,OAAO,IAAA,CAAK,SAAA,CAAU,KAAA,CAAkB,EAAE,IAAA,EAAM,aAAA,EAAc,EAAG,CAAA,aAAA,EAAgB,cAAc,CAAA,YAAA,CAAA,EAAgB,MAAA,EAAQ,OAAO,CAAA;AAAA,EAC/H;AAAA,EAEA,MAAM,MAAA,CAAO,aAAA,EAAqC,MAAA,EAAiC,OAAA,EAAyD;AAC3I,IAAA,MAAM,cAAA,GAAkB,cAA8B,EAAA,IAAM,aAAA;AAC5D,IAAA,OAAO,IAAA,CAAK,SAAA,CAAU,KAAA,CAAa,EAAE,IAAA,EAAM,QAAA,EAAS,EAAG,CAAA,aAAA,EAAgB,cAAc,CAAA,OAAA,CAAA,EAAW,MAAA,EAAQ,OAAO,CAAA;AAAA,EAChH;AAAA,EAEA,MAAM,YAAA,CAAa,aAAA,EAAqC,MAAA,EAAsC,OAAA,EAA8D;AAC3J,IAAA,MAAM,cAAA,GAAkB,cAA8B,EAAA,IAAM,aAAA;AAC5D,IAAA,OAAO,IAAA,CAAK,SAAA,CAAU,KAAA,CAAkB,EAAE,IAAA,EAAM,cAAA,EAAe,EAAG,CAAA,aAAA,EAAgB,cAAc,CAAA,aAAA,CAAA,EAAiB,MAAA,EAAQ,OAAO,CAAA;AAAA,EACjI;AAAA,EAGA,cAAc,QAAA,EAAwC;AACrD,IAAA,OAAO,QAAA,CAAS,IAAA,IAAS,QAAA,CAAS,IAAA,KAAS,aAAA,CAAa,IAAA;AAAA,EACzD;AAAA,EAGA,aAAa,EAAA,EAAgD;AAC5D,IAAA,OAAO,KAAA,CAAM,qBAAqC,EAAE,CAAA;AAAA,EACrD;AAAA,EAEA,sBAAsB,GAAA,EAAiC;AACtD,IAAA,OAAO,KAAA,CAAM,qBAAA,CAAsC,GAAG,GAAG,CAAA;AAAA,EAC1D;AAAA,EAGA,IAAA,GAAwB;AACvB,IAAA,OAAO,aAAA,CAAa,IAAA;AAAA,EACrB;AAED,CAAA;AAGA,IAAM,QAAA,GAAW,IAAI,YAAA,EAAa;AAClC,IAAO,oBAAA,GAAQ","file":"chunk-Y262ZN7R.cjs","sourcesContent":["import type { QueryParamsList, QueryParamsRetrieve } from '../query'\nimport type { ListResponse, Resource, ResourceId, ResourceRel, ResourceSort, /* ResourceFilter */ ResourcesConfig, } from '../resource'\nimport { ApiResource } from '../resource'\nimport type { AdyenPayment } from './adyen_payments'\nimport type { Attachment } from './attachments'\nimport type { AxervePayment } from './axerve_payments'\nimport type { BraintreePayment } from './braintree_payments'\nimport type { CheckoutComPayment } from './checkout_com_payments'\nimport type { EventStore } from './event_stores'\nimport type { Event } from './events'\nimport type { ExternalPayment } from './external_payments'\nimport type { KlarnaPayment } from './klarna_payments'\nimport type { Order } from './orders'\nimport type { PaypalPayment } from './paypal_payments'\nimport type { SatispayPayment } from './satispay_payments'\nimport type { StripePayment } from './stripe_payments'\nimport type { WireTransfer } from './wire_transfers'\n\n\ntype TransactionType = 'transactions'\ntype TransactionRel = ResourceRel & { type: TransactionType }\n\n\nexport type TransactionSort = Pick<Transaction, 'id' | 'number' | 'amount_cents'> & ResourceSort\n// export type TransactionFilter = Pick<Transaction, 'id' | 'number' | 'currency_code' | 'amount_cents' | 'succeeded' | 'message' | 'error_code' | 'error_detail' | 'token' | 'gateway_transaction_id'> & ResourceFilter\n\n\ninterface Transaction extends Resource {\n\t\n\treadonly type: TransactionType\n\n\t/** \n\t * The transaction number, auto generated.\n\t * @example ```\"42/T/001\"```\n\t */\n\tnumber: string\n\t/** \n\t * Information about the payment method used in the transaction.\n\t * @example ```\"credit card\"```\n\t */\n\tpayment_method_type?: string | null\n\t/** \n\t * The international 3-letter currency code as defined by the ISO 4217 standard, inherited from the associated order.\n\t * @example ```\"EUR\"```\n\t */\n\tcurrency_code: string\n\t/** \n\t * The transaction amount, in cents.\n\t * @example ```1500```\n\t */\n\tamount_cents: number\n\t/** \n\t * The transaction amount, float.\n\t * @example ```15```\n\t */\n\tamount_float: number\n\t/** \n\t * The transaction amount, formatted.\n\t * @example ```\"€15,00\"```\n\t */\n\tformatted_amount: string\n\t/** \n\t * Indicates if the transaction is successful.\n\t */\n\tsucceeded: boolean\n\t/** \n\t * The message returned by the payment gateway.\n\t * @example ```\"Accepted\"```\n\t */\n\tmessage?: string | null\n\t/** \n\t * The error code, if any, returned by the payment gateway.\n\t * @example ```\"00001\"```\n\t */\n\terror_code?: string | null\n\t/** \n\t * The error detail, if any, returned by the payment gateway.\n\t * @example ```\"Already settled\"```\n\t */\n\terror_detail?: string | null\n\t/** \n\t * The token identifying the transaction, returned by the payment gateway.\n\t * @example ```\"xxxx-yyyy-zzzz\"```\n\t */\n\ttoken?: string | null\n\t/** \n\t * The ID identifying the transaction, returned by the payment gateway.\n\t * @example ```\"xxxx-yyyy-zzzz\"```\n\t */\n\tgateway_transaction_id?: string | null\n\n\torder?: Order | null\n\tpayment_source?: AdyenPayment | AxervePayment | BraintreePayment | CheckoutComPayment | ExternalPayment | KlarnaPayment | PaypalPayment | SatispayPayment | StripePayment | WireTransfer | null\n\tattachments?: Attachment[] | null\n\tevents?: Event[] | null\n\tevent_stores?: EventStore[] | null\n\n}\n\n\nclass Transactions extends ApiResource<Transaction> {\n\n\tstatic readonly TYPE: TransactionType = 'transactions' as const\n\n\tasync order(transactionId: string | Transaction, params?: QueryParamsRetrieve<Order>, options?: ResourcesConfig): Promise<Order> {\n\t\tconst _transactionId = (transactionId as Transaction).id || transactionId as string\n\t\treturn this.resources.fetch<Order>({ type: 'orders' }, `transactions/${_transactionId}/order`, params, options) as unknown as Order\n\t}\n\n\tasync attachments(transactionId: string | Transaction, params?: QueryParamsList<Attachment>, options?: ResourcesConfig): Promise<ListResponse<Attachment>> {\n\t\tconst _transactionId = (transactionId as Transaction).id || transactionId as string\n\t\treturn this.resources.fetch<Attachment>({ type: 'attachments' }, `transactions/${_transactionId}/attachments`, params, options) as unknown as ListResponse<Attachment>\n\t}\n\n\tasync events(transactionId: string | Transaction, params?: QueryParamsList<Event>, options?: ResourcesConfig): Promise<ListResponse<Event>> {\n\t\tconst _transactionId = (transactionId as Transaction).id || transactionId as string\n\t\treturn this.resources.fetch<Event>({ type: 'events' }, `transactions/${_transactionId}/events`, params, options) as unknown as ListResponse<Event>\n\t}\n\n\tasync event_stores(transactionId: string | Transaction, params?: QueryParamsList<EventStore>, options?: ResourcesConfig): Promise<ListResponse<EventStore>> {\n\t\tconst _transactionId = (transactionId as Transaction).id || transactionId as string\n\t\treturn this.resources.fetch<EventStore>({ type: 'event_stores' }, `transactions/${_transactionId}/event_stores`, params, options) as unknown as ListResponse<EventStore>\n\t}\n\n\n\tisTransaction(resource: any): resource is Transaction {\n\t\treturn resource.type && (resource.type === Transactions.TYPE)\n\t}\n\n\n\trelationship(id: string | ResourceId | null): TransactionRel {\n\t\treturn super.relationshipOneToOne<TransactionRel>(id)\n\t}\n\n\trelationshipToMany(...ids: string[]): TransactionRel[] {\n\t\treturn super.relationshipOneToMany<TransactionRel>(...ids)\n\t}\n\n\n\ttype(): TransactionType {\n\t\treturn Transactions.TYPE\n\t}\n\n}\n\n\nconst instance = new Transactions()\nexport default instance\n\nexport type { Transaction, Transactions, TransactionType }\n"]}
@@ -0,0 +1,97 @@
1
+ 'use strict';
2
+
3
+ var chunkXYPIGF36_cjs = require('./chunk-XYPIGF36.cjs');
4
+
5
+ // src/resources/markets.ts
6
+ var Markets = class _Markets extends chunkXYPIGF36_cjs.ApiResource {
7
+ static TYPE = "markets";
8
+ async create(resource, params, options) {
9
+ return this.resources.create({ ...resource, type: _Markets.TYPE }, params, options);
10
+ }
11
+ async update(resource, params, options) {
12
+ return this.resources.update({ ...resource, type: _Markets.TYPE }, params, options);
13
+ }
14
+ async delete(id, options) {
15
+ await this.resources.delete(typeof id === "string" ? { id, type: _Markets.TYPE } : id, options);
16
+ }
17
+ async merchant(marketId, params, options) {
18
+ const _marketId = marketId.id || marketId;
19
+ return this.resources.fetch({ type: "merchants" }, `markets/${_marketId}/merchant`, params, options);
20
+ }
21
+ async price_list(marketId, params, options) {
22
+ const _marketId = marketId.id || marketId;
23
+ return this.resources.fetch({ type: "price_lists" }, `markets/${_marketId}/price_list`, params, options);
24
+ }
25
+ async base_price_list(marketId, params, options) {
26
+ const _marketId = marketId.id || marketId;
27
+ return this.resources.fetch({ type: "price_lists" }, `markets/${_marketId}/base_price_list`, params, options);
28
+ }
29
+ async inventory_model(marketId, params, options) {
30
+ const _marketId = marketId.id || marketId;
31
+ return this.resources.fetch({ type: "inventory_models" }, `markets/${_marketId}/inventory_model`, params, options);
32
+ }
33
+ async subscription_model(marketId, params, options) {
34
+ const _marketId = marketId.id || marketId;
35
+ return this.resources.fetch({ type: "subscription_models" }, `markets/${_marketId}/subscription_model`, params, options);
36
+ }
37
+ async discount_engine(marketId, params, options) {
38
+ const _marketId = marketId.id || marketId;
39
+ return this.resources.fetch({ type: "discount_engines" }, `markets/${_marketId}/discount_engine`, params, options);
40
+ }
41
+ async customer_group(marketId, params, options) {
42
+ const _marketId = marketId.id || marketId;
43
+ return this.resources.fetch({ type: "customer_groups" }, `markets/${_marketId}/customer_group`, params, options);
44
+ }
45
+ async geocoder(marketId, params, options) {
46
+ const _marketId = marketId.id || marketId;
47
+ return this.resources.fetch({ type: "geocoders" }, `markets/${_marketId}/geocoder`, params, options);
48
+ }
49
+ async default_shipping_method(marketId, params, options) {
50
+ const _marketId = marketId.id || marketId;
51
+ return this.resources.fetch({ type: "shipping_methods" }, `markets/${_marketId}/default_shipping_method`, params, options);
52
+ }
53
+ async default_payment_method(marketId, params, options) {
54
+ const _marketId = marketId.id || marketId;
55
+ return this.resources.fetch({ type: "payment_methods" }, `markets/${_marketId}/default_payment_method`, params, options);
56
+ }
57
+ async stores(marketId, params, options) {
58
+ const _marketId = marketId.id || marketId;
59
+ return this.resources.fetch({ type: "stores" }, `markets/${_marketId}/stores`, params, options);
60
+ }
61
+ async price_list_schedulers(marketId, params, options) {
62
+ const _marketId = marketId.id || marketId;
63
+ return this.resources.fetch({ type: "price_list_schedulers" }, `markets/${_marketId}/price_list_schedulers`, params, options);
64
+ }
65
+ async attachments(marketId, params, options) {
66
+ const _marketId = marketId.id || marketId;
67
+ return this.resources.fetch({ type: "attachments" }, `markets/${_marketId}/attachments`, params, options);
68
+ }
69
+ async event_stores(marketId, params, options) {
70
+ const _marketId = marketId.id || marketId;
71
+ return this.resources.fetch({ type: "event_stores" }, `markets/${_marketId}/event_stores`, params, options);
72
+ }
73
+ async _disable(id, params, options) {
74
+ return this.resources.update({ id: typeof id === "string" ? id : id.id, type: _Markets.TYPE, _disable: true }, params, options);
75
+ }
76
+ async _enable(id, params, options) {
77
+ return this.resources.update({ id: typeof id === "string" ? id : id.id, type: _Markets.TYPE, _enable: true }, params, options);
78
+ }
79
+ isMarket(resource) {
80
+ return resource.type && resource.type === _Markets.TYPE;
81
+ }
82
+ relationship(id) {
83
+ return super.relationshipOneToOne(id);
84
+ }
85
+ relationshipToMany(...ids) {
86
+ return super.relationshipOneToMany(...ids);
87
+ }
88
+ type() {
89
+ return _Markets.TYPE;
90
+ }
91
+ };
92
+ var instance = new Markets();
93
+ var markets_default = instance;
94
+
95
+ exports.markets_default = markets_default;
96
+ //# sourceMappingURL=chunk-YBRIQ52U.cjs.map
97
+ //# sourceMappingURL=chunk-YBRIQ52U.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/resources/markets.ts"],"names":["ApiResource"],"mappings":";;;;;AAyQA,IAAM,OAAA,GAAN,MAAM,QAAA,SAAgBA,6BAAA,CAAoB;AAAA,EAEzC,OAAgB,IAAA,GAAmB,SAAA;AAAA,EAEnC,MAAM,MAAA,CAAO,QAAA,EAAwB,MAAA,EAAsC,OAAA,EAA4C;AACtH,IAAA,OAAO,IAAA,CAAK,SAAA,CAAU,MAAA,CAA6B,EAAE,GAAG,QAAA,EAAU,IAAA,EAAM,QAAA,CAAQ,IAAA,EAAK,EAAG,MAAA,EAAQ,OAAO,CAAA;AAAA,EACxG;AAAA,EAEA,MAAM,MAAA,CAAO,QAAA,EAAwB,MAAA,EAAsC,OAAA,EAA4C;AACtH,IAAA,OAAO,IAAA,CAAK,SAAA,CAAU,MAAA,CAA6B,EAAE,GAAG,QAAA,EAAU,IAAA,EAAM,QAAA,CAAQ,IAAA,EAAK,EAAG,MAAA,EAAQ,OAAO,CAAA;AAAA,EACxG;AAAA,EAEA,M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,MAAA,CAA6B,EAAE,EAAA,EAAK,OAAO,OAAO,QAAA,GAAW,EAAA,GAAI,EAAA,CAAG,EAAA,EAAI,MAAM,QAAA,CAAQ,IAAA,EAAM,SAAS,IAAA,EAAK,EAAG,QAAQ,OAAO,CAAA;AAAA,EACnJ;AAAA,EAGA,SAAS,QAAA,EAAmC;AAC3C,IAAA,OAAO,QAAA,CAAS,IAAA,IAAS,QAAA,CAAS,IAAA,KAAS,QAAA,CAAQ,IAAA;AAAA,EACpD;AAAA,EAGA,aAAa,EAAA,EAA2C;AACvD,IAAA,OAAO,KAAA,CAAM,qBAAgC,EAAE,CAAA;AAAA,EAChD;AAAA,EAEA,sBAAsB,GAAA,EAA4B;AACjD,IAAA,OAAO,KAAA,CAAM,qBAAA,CAAiC,GAAG,GAAG,CAAA;AAAA,EACrD;AAAA,EAGA,IAAA,GAAmB;AAClB,IAAA,OAAO,QAAA,CAAQ,IAAA;AAAA,EAChB;AAED,CAAA;AAGA,IAAM,QAAA,GAAW,IAAI,OAAA,EAAQ;AAC7B,IAAO,eAAA,GAAQ","file":"chunk-YBRIQ52U.cjs","sourcesContent":["import type { QueryParamsList, QueryParamsRetrieve } from '../query'\nimport type { ListResponse, Resource, ResourceCreate, ResourceId, ResourceRel, ResourceSort, /* ResourceFilter */ ResourcesConfig, ResourceUpdate, } from '../resource'\nimport { ApiResource } from '../resource'\nimport type { Attachment } from './attachments'\nimport type { AvalaraAccount, AvalaraAccountType } from './avalara_accounts'\nimport type { CustomerGroup, CustomerGroupType } from './customer_groups'\nimport type { DiscountEngine, DiscountEngineType } from './discount_engines'\nimport type { EventStore } from './event_stores'\nimport type { ExternalTaxCalculator, ExternalTaxCalculatorType } from './external_tax_calculators'\nimport type { Geocoder, GeocoderType } from './geocoders'\nimport type { InventoryModel, InventoryModelType } from './inventory_models'\nimport type { ManualTaxCalculator, ManualTaxCalculatorType } from './manual_tax_calculators'\nimport type { Merchant, MerchantType } from './merchants'\nimport type { PaymentMethod, PaymentMethodType } from './payment_methods'\nimport type { PriceListScheduler } from './price_list_schedulers'\nimport type { PriceList, PriceListType } from './price_lists'\nimport type { ShippingMethod, ShippingMethodType } from './shipping_methods'\nimport type { Store } from './stores'\nimport type { StripeTaxAccount, StripeTaxAccountType } from './stripe_tax_accounts'\nimport type { SubscriptionModel, SubscriptionModelType } from './subscription_models'\nimport type { TaxjarAccount, TaxjarAccountType } from './taxjar_accounts'\nimport type { VertexAccount, VertexAccountType } from './vertex_accounts'\n\n\ntype MarketType = 'markets'\ntype MarketRel = ResourceRel & { type: MarketType }\ntype MerchantRel = ResourceRel & { type: MerchantType }\ntype PriceListRel = ResourceRel & { type: PriceListType }\ntype InventoryModelRel = ResourceRel & { type: InventoryModelType }\ntype SubscriptionModelRel = ResourceRel & { type: SubscriptionModelType }\ntype DiscountEngineRel = ResourceRel & { type: DiscountEngineType }\ntype AvalaraAccountRel = ResourceRel & { type: AvalaraAccountType }\ntype StripeTaxAccountRel = ResourceRel & { type: StripeTaxAccountType }\ntype VertexAccountRel = ResourceRel & { type: VertexAccountType }\ntype TaxjarAccountRel = ResourceRel & { type: TaxjarAccountType }\ntype ManualTaxCalculatorRel = ResourceRel & { type: ManualTaxCalculatorType }\ntype ExternalTaxCalculatorRel = ResourceRel & { type: ExternalTaxCalculatorType }\ntype CustomerGroupRel = ResourceRel & { type: CustomerGroupType }\ntype GeocoderRel = ResourceRel & { type: GeocoderType }\ntype ShippingMethodRel = ResourceRel & { type: ShippingMethodType }\ntype PaymentMethodRel = ResourceRel & { type: PaymentMethodType }\n\n\nexport type MarketSort = Pick<Market, 'id' | 'name' | 'code' | 'disabled_at'> & ResourceSort\n// export type MarketFilter = Pick<Market, 'id' | 'name' | 'code' | 'disabled_at'> & ResourceFilter\n\n\ninterface Market extends Resource {\n\t\n\treadonly type: MarketType\n\n\t/** \n\t * Unique identifier for the market (numeric).\n\t * @example ```1234```\n\t */\n\tnumber?: number | null\n\t/** \n\t * The market's internal name.\n\t * @example ```\"EU Market\"```\n\t */\n\tname: string\n\t/** \n\t * A string that you can use to identify the market (must be unique within the environment).\n\t * @example ```\"europe1\"```\n\t */\n\tcode?: string | null\n\t/** \n\t * The Facebook Pixed ID.\n\t * @example ```\"1234567890\"```\n\t */\n\tfacebook_pixel_id?: string | null\n\t/** \n\t * The checkout URL for this market.\n\t * @example ```\"https://checkout.yourbrand.com/:order_id\"```\n\t */\n\tcheckout_url?: string | null\n\t/** \n\t * The URL used to overwrite prices by an external source.\n\t * @example ```\"https://external_prices.yourbrand.com\"```\n\t */\n\texternal_prices_url?: string | null\n\t/** \n\t * The URL used to validate orders by an external source.\n\t * @example ```\"https://external_validation.yourbrand.com\"```\n\t */\n\texternal_order_validation_url?: string | null\n\t/** \n\t * Indicates if market belongs to a customer_group.\n\t * @example ```true```\n\t */\n\tprivate?: boolean | null\n\t/** \n\t * When specified indicates the maximum number of shipping line items with cost that will be added to an order.\n\t * @example ```3```\n\t */\n\tshipping_cost_cutoff?: number | null\n\t/** \n\t * Time at which this resource was disabled.\n\t * @example ```\"2018-01-01T12:00:00.000Z\"```\n\t */\n\tdisabled_at?: string | null\n\t/** \n\t * The shared secret used to sign the external request payload.\n\t * @example ```\"1c0994cc4e996e8c6ee56a2198f66f3c\"```\n\t */\n\tshared_secret: string\n\t/** \n\t * List of related resources that will be included in the request to the external callback. Please do consult the documentation to check on which resource the includes are related (i.e. the order) and the defaults in case no list is provided.\n\t * @example ```[\"order.line_item_options\"]```\n\t */\n\texternal_includes?: string[] | null\n\n\tmerchant?: Merchant | null\n\tprice_list?: PriceList | null\n\tbase_price_list?: PriceList | null\n\tinventory_model?: InventoryModel | null\n\tsubscription_model?: SubscriptionModel | null\n\tdiscount_engine?: DiscountEngine | null\n\ttax_calculator?: AvalaraAccount | StripeTaxAccount | VertexAccount | TaxjarAccount | ManualTaxCalculator | ExternalTaxCalculator | null\n\tcustomer_group?: CustomerGroup | null\n\tgeocoder?: Geocoder | null\n\tdefault_shipping_method?: ShippingMethod | null\n\tdefault_payment_method?: PaymentMethod | null\n\tstores?: Store[] | null\n\tprice_list_schedulers?: PriceListScheduler[] | null\n\tattachments?: Attachment[] | null\n\tevent_stores?: EventStore[] | null\n\n}\n\n\ninterface MarketCreate extends ResourceCreate {\n\t\n\t/** \n\t * The market's internal name.\n\t * @example ```\"EU Market\"```\n\t */\n\tname: string\n\t/** \n\t * A string that you can use to identify the market (must be unique within the environment).\n\t * @example ```\"europe1\"```\n\t */\n\tcode?: string | null\n\t/** \n\t * The Facebook Pixed ID.\n\t * @example ```\"1234567890\"```\n\t */\n\tfacebook_pixel_id?: string | null\n\t/** \n\t * The checkout URL for this market.\n\t * @example ```\"https://checkout.yourbrand.com/:order_id\"```\n\t */\n\tcheckout_url?: string | null\n\t/** \n\t * The URL used to overwrite prices by an external source.\n\t * @example ```\"https://external_prices.yourbrand.com\"```\n\t */\n\texternal_prices_url?: string | null\n\t/** \n\t * The URL used to validate orders by an external source.\n\t * @example ```\"https://external_validation.yourbrand.com\"```\n\t */\n\texternal_order_validation_url?: string | null\n\t/** \n\t * When specified indicates the maximum number of shipping line items with cost that will be added to an order.\n\t * @example ```3```\n\t */\n\tshipping_cost_cutoff?: number | null\n\t/** \n\t * Send this attribute if you want to mark this resource as disabled.\n\t * @example ```true```\n\t */\n\t_disable?: boolean | null\n\t/** \n\t * Send this attribute if you want to mark this resource as enabled.\n\t * @example ```true```\n\t */\n\t_enable?: boolean | null\n\t/** \n\t * List of related resources that will be included in the request to the external callback. Please do consult the documentation to check on which resource the includes are related (i.e. the order) and the defaults in case no list is provided.\n\t * @example ```[\"order.line_item_options\"]```\n\t */\n\texternal_includes?: string[] | null\n\n\tmerchant: MerchantRel\n\tprice_list: PriceListRel\n\tinventory_model: InventoryModelRel\n\tsubscription_model?: SubscriptionModelRel | null\n\tdiscount_engine?: DiscountEngineRel | null\n\ttax_calculator?: AvalaraAccountRel | StripeTaxAccountRel | VertexAccountRel | TaxjarAccountRel | ManualTaxCalculatorRel | ExternalTaxCalculatorRel | null\n\tcustomer_group?: CustomerGroupRel | null\n\tgeocoder?: GeocoderRel | null\n\tdefault_shipping_method?: ShippingMethodRel | null\n\tdefault_payment_method?: PaymentMethodRel | null\n\n}\n\n\ninterface MarketUpdate extends ResourceUpdate {\n\t\n\t/** \n\t * The market's internal name.\n\t * @example ```\"EU Market\"```\n\t */\n\tname?: string | null\n\t/** \n\t * A string that you can use to identify the market (must be unique within the environment).\n\t * @example ```\"europe1\"```\n\t */\n\tcode?: string | null\n\t/** \n\t * The Facebook Pixed ID.\n\t * @example ```\"1234567890\"```\n\t */\n\tfacebook_pixel_id?: string | null\n\t/** \n\t * The checkout URL for this market.\n\t * @example ```\"https://checkout.yourbrand.com/:order_id\"```\n\t */\n\tcheckout_url?: string | null\n\t/** \n\t * The URL used to overwrite prices by an external source.\n\t * @example ```\"https://external_prices.yourbrand.com\"```\n\t */\n\texternal_prices_url?: string | null\n\t/** \n\t * The URL used to validate orders by an external source.\n\t * @example ```\"https://external_validation.yourbrand.com\"```\n\t */\n\texternal_order_validation_url?: string | null\n\t/** \n\t * When specified indicates the maximum number of shipping line items with cost that will be added to an order.\n\t * @example ```3```\n\t */\n\tshipping_cost_cutoff?: number | null\n\t/** \n\t * Send this attribute if you want to mark this resource as disabled.\n\t * @example ```true```\n\t */\n\t_disable?: boolean | null\n\t/** \n\t * Send this attribute if you want to mark this resource as enabled.\n\t * @example ```true```\n\t */\n\t_enable?: boolean | null\n\t/** \n\t * List of related resources that will be included in the request to the external callback. Please do consult the documentation to check on which resource the includes are related (i.e. the order) and the defaults in case no list is provided.\n\t * @example ```[\"order.line_item_options\"]```\n\t */\n\texternal_includes?: string[] | null\n\n\tmerchant?: MerchantRel | null\n\tprice_list?: PriceListRel | null\n\tinventory_model?: InventoryModelRel | null\n\tsubscription_model?: SubscriptionModelRel | null\n\tdiscount_engine?: DiscountEngineRel | null\n\ttax_calculator?: AvalaraAccountRel | StripeTaxAccountRel | VertexAccountRel | TaxjarAccountRel | ManualTaxCalculatorRel | ExternalTaxCalculatorRel | null\n\tcustomer_group?: CustomerGroupRel | null\n\tgeocoder?: GeocoderRel | null\n\tdefault_shipping_method?: ShippingMethodRel | null\n\tdefault_payment_method?: PaymentMethodRel | null\n\n}\n\n\nclass Markets extends ApiResource<Market> {\n\n\tstatic readonly TYPE: MarketType = 'markets' as const\n\n\tasync create(resource: MarketCreate, params?: QueryParamsRetrieve<Market>, options?: ResourcesConfig): Promise<Market> {\n\t\treturn this.resources.create<MarketCreate, Market>({ ...resource, type: Markets.TYPE }, params, options)\n\t}\n\n\tasync update(resource: MarketUpdate, params?: QueryParamsRetrieve<Market>, options?: ResourcesConfig): Promise<Market> {\n\t\treturn this.resources.update<MarketUpdate, Market>({ ...resource, type: Markets.TYPE }, params, options)\n\t}\n\n\tasync delete(id: string | ResourceId, options?: ResourcesConfig): Promise<void> {\n\t\tawait this.resources.delete((typeof id === 'string')? { id, type: Markets.TYPE } : id, options)\n\t}\n\n\tasync merchant(marketId: string | Market, params?: QueryParamsRetrieve<Merchant>, options?: ResourcesConfig): Promise<Merchant> {\n\t\tconst _marketId = (marketId as Market).id || marketId as string\n\t\treturn this.resources.fetch<Merchant>({ type: 'merchants' }, `markets/${_marketId}/merchant`, params, options) as unknown as Merchant\n\t}\n\n\tasync price_list(marketId: string | Market, params?: QueryParamsRetrieve<PriceList>, options?: ResourcesConfig): Promise<PriceList> {\n\t\tconst _marketId = (marketId as Market).id || marketId as string\n\t\treturn this.resources.fetch<PriceList>({ type: 'price_lists' }, `markets/${_marketId}/price_list`, params, options) as unknown as PriceList\n\t}\n\n\tasync base_price_list(marketId: string | Market, params?: QueryParamsRetrieve<PriceList>, options?: ResourcesConfig): Promise<PriceList> {\n\t\tconst _marketId = (marketId as Market).id || marketId as string\n\t\treturn this.resources.fetch<PriceList>({ type: 'price_lists' }, `markets/${_marketId}/base_price_list`, params, options) as unknown as PriceList\n\t}\n\n\tasync inventory_model(marketId: string | Market, params?: QueryParamsRetrieve<InventoryModel>, options?: ResourcesConfig): Promise<InventoryModel> {\n\t\tconst _marketId = (marketId as Market).id || marketId as string\n\t\treturn this.resources.fetch<InventoryModel>({ type: 'inventory_models' }, `markets/${_marketId}/inventory_model`, params, options) as unknown as InventoryModel\n\t}\n\n\tasync subscription_model(marketId: string | Market, params?: QueryParamsRetrieve<SubscriptionModel>, options?: ResourcesConfig): Promise<SubscriptionModel> {\n\t\tconst _marketId = (marketId as Market).id || marketId as string\n\t\treturn this.resources.fetch<SubscriptionModel>({ type: 'subscription_models' }, `markets/${_marketId}/subscription_model`, params, options) as unknown as SubscriptionModel\n\t}\n\n\tasync discount_engine(marketId: string | Market, params?: QueryParamsRetrieve<DiscountEngine>, options?: ResourcesConfig): Promise<DiscountEngine> {\n\t\tconst _marketId = (marketId as Market).id || marketId as string\n\t\treturn this.resources.fetch<DiscountEngine>({ type: 'discount_engines' }, `markets/${_marketId}/discount_engine`, params, options) as unknown as DiscountEngine\n\t}\n\n\tasync customer_group(marketId: string | Market, params?: QueryParamsRetrieve<CustomerGroup>, options?: ResourcesConfig): Promise<CustomerGroup> {\n\t\tconst _marketId = (marketId as Market).id || marketId as string\n\t\treturn this.resources.fetch<CustomerGroup>({ type: 'customer_groups' }, `markets/${_marketId}/customer_group`, params, options) as unknown as CustomerGroup\n\t}\n\n\tasync geocoder(marketId: string | Market, params?: QueryParamsRetrieve<Geocoder>, options?: ResourcesConfig): Promise<Geocoder> {\n\t\tconst _marketId = (marketId as Market).id || marketId as string\n\t\treturn this.resources.fetch<Geocoder>({ type: 'geocoders' }, `markets/${_marketId}/geocoder`, params, options) as unknown as Geocoder\n\t}\n\n\tasync default_shipping_method(marketId: string | Market, params?: QueryParamsRetrieve<ShippingMethod>, options?: ResourcesConfig): Promise<ShippingMethod> {\n\t\tconst _marketId = (marketId as Market).id || marketId as string\n\t\treturn this.resources.fetch<ShippingMethod>({ type: 'shipping_methods' }, `markets/${_marketId}/default_shipping_method`, params, options) as unknown as ShippingMethod\n\t}\n\n\tasync default_payment_method(marketId: string | Market, params?: QueryParamsRetrieve<PaymentMethod>, options?: ResourcesConfig): Promise<PaymentMethod> {\n\t\tconst _marketId = (marketId as Market).id || marketId as string\n\t\treturn this.resources.fetch<PaymentMethod>({ type: 'payment_methods' }, `markets/${_marketId}/default_payment_method`, params, options) as unknown as PaymentMethod\n\t}\n\n\tasync stores(marketId: string | Market, params?: QueryParamsList<Store>, options?: ResourcesConfig): Promise<ListResponse<Store>> {\n\t\tconst _marketId = (marketId as Market).id || marketId as string\n\t\treturn this.resources.fetch<Store>({ type: 'stores' }, `markets/${_marketId}/stores`, params, options) as unknown as ListResponse<Store>\n\t}\n\n\tasync price_list_schedulers(marketId: string | Market, params?: QueryParamsList<PriceListScheduler>, options?: ResourcesConfig): Promise<ListResponse<PriceListScheduler>> {\n\t\tconst _marketId = (marketId as Market).id || marketId as string\n\t\treturn this.resources.fetch<PriceListScheduler>({ type: 'price_list_schedulers' }, `markets/${_marketId}/price_list_schedulers`, params, options) as unknown as ListResponse<PriceListScheduler>\n\t}\n\n\tasync attachments(marketId: string | Market, params?: QueryParamsList<Attachment>, options?: ResourcesConfig): Promise<ListResponse<Attachment>> {\n\t\tconst _marketId = (marketId as Market).id || marketId as string\n\t\treturn this.resources.fetch<Attachment>({ type: 'attachments' }, `markets/${_marketId}/attachments`, params, options) as unknown as ListResponse<Attachment>\n\t}\n\n\tasync event_stores(marketId: string | Market, params?: QueryParamsList<EventStore>, options?: ResourcesConfig): Promise<ListResponse<EventStore>> {\n\t\tconst _marketId = (marketId as Market).id || marketId as string\n\t\treturn this.resources.fetch<EventStore>({ type: 'event_stores' }, `markets/${_marketId}/event_stores`, params, options) as unknown as ListResponse<EventStore>\n\t}\n\n\tasync _disable(id: string | Market, params?: QueryParamsRetrieve<Market>, options?: ResourcesConfig): Promise<Market> {\n\t\treturn this.resources.update<MarketUpdate, Market>({ id: (typeof id === 'string')? id: id.id, type: Markets.TYPE, _disable: true }, params, options)\n\t}\n\n\tasync _enable(id: string | Market, params?: QueryParamsRetrieve<Market>, options?: ResourcesConfig): Promise<Market> {\n\t\treturn this.resources.update<MarketUpdate, Market>({ id: (typeof id === 'string')? id: id.id, type: Markets.TYPE, _enable: true }, params, options)\n\t}\n\n\n\tisMarket(resource: any): resource is Market {\n\t\treturn resource.type && (resource.type === Markets.TYPE)\n\t}\n\n\n\trelationship(id: string | ResourceId | null): MarketRel {\n\t\treturn super.relationshipOneToOne<MarketRel>(id)\n\t}\n\n\trelationshipToMany(...ids: string[]): MarketRel[] {\n\t\treturn super.relationshipOneToMany<MarketRel>(...ids)\n\t}\n\n\n\ttype(): MarketType {\n\t\treturn Markets.TYPE\n\t}\n\n}\n\n\nconst instance = new Markets()\nexport default instance\n\nexport type { Market, MarketCreate, Markets, MarketType, MarketUpdate }\n"]}
@@ -0,0 +1,55 @@
1
+ import { ApiResource } from './chunk-ADBL6GHI.js';
2
+
3
+ // src/resources/addresses.ts
4
+ var Addresses = class _Addresses extends ApiResource {
5
+ static TYPE = "addresses";
6
+ async create(resource, params, options) {
7
+ return this.resources.create({ ...resource, type: _Addresses.TYPE }, params, options);
8
+ }
9
+ async update(resource, params, options) {
10
+ return this.resources.update({ ...resource, type: _Addresses.TYPE }, params, options);
11
+ }
12
+ async delete(id, options) {
13
+ await this.resources.delete(typeof id === "string" ? { id, type: _Addresses.TYPE } : id, options);
14
+ }
15
+ async geocoder(addressId, params, options) {
16
+ const _addressId = addressId.id || addressId;
17
+ return this.resources.fetch({ type: "geocoders" }, `addresses/${_addressId}/geocoder`, params, options);
18
+ }
19
+ async events(addressId, params, options) {
20
+ const _addressId = addressId.id || addressId;
21
+ return this.resources.fetch({ type: "events" }, `addresses/${_addressId}/events`, params, options);
22
+ }
23
+ async tags(addressId, params, options) {
24
+ const _addressId = addressId.id || addressId;
25
+ return this.resources.fetch({ type: "tags" }, `addresses/${_addressId}/tags`, params, options);
26
+ }
27
+ async event_stores(addressId, params, options) {
28
+ const _addressId = addressId.id || addressId;
29
+ return this.resources.fetch({ type: "event_stores" }, `addresses/${_addressId}/event_stores`, params, options);
30
+ }
31
+ async _add_tags(id, triggerValue, params, options) {
32
+ return this.resources.update({ id: typeof id === "string" ? id : id.id, type: _Addresses.TYPE, _add_tags: triggerValue }, params, options);
33
+ }
34
+ async _remove_tags(id, triggerValue, params, options) {
35
+ return this.resources.update({ id: typeof id === "string" ? id : id.id, type: _Addresses.TYPE, _remove_tags: triggerValue }, params, options);
36
+ }
37
+ isAddress(resource) {
38
+ return resource.type && resource.type === _Addresses.TYPE;
39
+ }
40
+ relationship(id) {
41
+ return super.relationshipOneToOne(id);
42
+ }
43
+ relationshipToMany(...ids) {
44
+ return super.relationshipOneToMany(...ids);
45
+ }
46
+ type() {
47
+ return _Addresses.TYPE;
48
+ }
49
+ };
50
+ var instance = new Addresses();
51
+ var addresses_default = instance;
52
+
53
+ export { addresses_default };
54
+ //# sourceMappingURL=chunk-YGGJGJU7.js.map
55
+ //# sourceMappingURL=chunk-YGGJGJU7.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/resources/addresses.ts"],"names":[],"mappings":";;;AA+UA,IAAM,SAAA,GAAN,MAAM,UAAA,SAAkB,WAAA,CAAqB;AAAA,EAE5C,OAAgB,IAAA,GAAoB,WAAA;AAAA,EAEpC,MAAM,MAAA,CAAO,QAAA,EAAyB,MAAA,EAAuC,OAAA,EAA6C;AACzH,IAAA,OAAO,IAAA,CAAK,SAAA,CAAU,MAAA,CAA+B,EAAE,GAAG,QAAA,EAAU,IAAA,EAAM,UAAA,CAAU,IAAA,EAAK,EAAG,MAAA,EAAQ,OAAO,CAAA;AAAA,EAC5G;AAAA,EAEA,MAAM,MAAA,CAAO,QAAA,EAAyB,MAAA,EAAuC,OAAA,EAA6C;AACzH,IAAA,OAAO,IAAA,CAAK,SAAA,CAAU,MAAA,CAA+B,EAAE,GAAG,QAAA,EAAU,IAAA,EAAM,UAAA,CAAU,IAAA,EAAK,EAAG,MAAA,EAAQ,OAAO,CAAA;AAAA,EAC5G;AAAA,EAEA,MA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AAU;AAC/B,IAAO,iBAAA,GAAQ","file":"chunk-YGGJGJU7.js","sourcesContent":["import type { QueryParamsList, QueryParamsRetrieve } from '../query'\nimport type { ListResponse, Resource, ResourceCreate, ResourceId, ResourceRel, ResourceSort, /* ResourceFilter */ ResourcesConfig, ResourceUpdate, } from '../resource'\nimport { ApiResource } from '../resource'\nimport type { EventStore } from './event_stores'\nimport type { Event } from './events'\nimport type { Geocoder, GeocoderType } from './geocoders'\nimport type { Tag, TagType } from './tags'\n\n\ntype AddressType = 'addresses'\ntype AddressRel = ResourceRel & { type: AddressType }\ntype GeocoderRel = ResourceRel & { type: GeocoderType }\ntype TagRel = ResourceRel & { type: TagType }\n\n\nexport type AddressSort = Pick<Address, 'id' | 'city' | 'state_code' | 'country_code'> & ResourceSort\n// export type AddressFilter = Pick<Address, 'id' | 'business' | 'first_name' | 'last_name' | 'company' | 'line_1' | 'line_2' | 'city' | 'zip_code' | 'state_code' | 'country_code' | 'phone' | 'email' | 'notes' | 'lat' | 'lng' | 'billing_info'> & ResourceFilter\n\n\ninterface Address extends Resource {\n\t\n\treadonly type: AddressType\n\n\t/** \n\t * Indicates if it's a business or a personal address.\n\t */\n\tbusiness?: boolean | null\n\t/** \n\t * Address first name (personal).\n\t * @example ```\"John\"```\n\t */\n\tfirst_name?: string | null\n\t/** \n\t * Address last name (personal).\n\t * @example ```\"Smith\"```\n\t */\n\tlast_name?: string | null\n\t/** \n\t * Address company name (business).\n\t * @example ```\"The Red Brand Inc.\"```\n\t */\n\tcompany?: string | null\n\t/** \n\t * Company name (business) of first name and last name (personal).\n\t * @example ```\"John Smith\"```\n\t */\n\tfull_name?: string | null\n\t/** \n\t * Address line 1, i.e. Street address, PO Box.\n\t * @example ```\"2883 Geraldine Lane\"```\n\t */\n\tline_1: string\n\t/** \n\t * Address line 2, i.e. Apartment, Suite, Building.\n\t * @example ```\"Apt.23\"```\n\t */\n\tline_2?: string | null\n\t/** \n\t * Address city.\n\t * @example ```\"New York\"```\n\t */\n\tcity: string\n\t/** \n\t * ZIP or postal code.\n\t * @example ```\"10013\"```\n\t */\n\tzip_code?: string | null\n\t/** \n\t * State, province or region code.\n\t * @example ```\"NY\"```\n\t */\n\tstate_code?: string | null\n\t/** \n\t * The international 2-letter country code as defined by the ISO 3166-1 standard.\n\t * @example ```\"US\"```\n\t */\n\tcountry_code: string\n\t/** \n\t * Phone number (including extension).\n\t * @example ```\"(212) 646-338-1228\"```\n\t */\n\tphone: string\n\t/** \n\t * Compact description of the address location, without the full name.\n\t * @example ```\"2883 Geraldine Lane Apt.23, 10013 New York NY (US) (212) 646-338-1228\"```\n\t */\n\tfull_address?: string | null\n\t/** \n\t * Compact description of the address location, including the full name.\n\t * @example ```\"John Smith, 2883 Geraldine Lane Apt.23, 10013 New York NY (US) (212) 646-338-1228\"```\n\t */\n\tname?: string | null\n\t/** \n\t * Email address.\n\t * @example ```\"john@example.com\"```\n\t */\n\temail?: string | null\n\t/** \n\t * A free notes attached to the address. When used as a shipping address, this can be useful to let the customers add specific delivery instructions.\n\t * @example ```\"Please ring the bell twice\"```\n\t */\n\tnotes?: string | null\n\t/** \n\t * The address geocoded latitude. This is automatically generated when creating a shipping/billing address for an order and a valid geocoder is attached to the order's market.\n\t * @example ```40.6971494```\n\t */\n\tlat?: number | null\n\t/** \n\t * The address geocoded longitude. This is automatically generated when creating a shipping/billing address for an order and a valid geocoder is attached to the order's market.\n\t * @example ```-74.2598672```\n\t */\n\tlng?: number | null\n\t/** \n\t * Indicates if the latitude and logitude are present, either geocoded or manually updated.\n\t * @example ```true```\n\t */\n\tis_localized?: boolean | null\n\t/** \n\t * Indicates if the address has been successfully geocoded.\n\t * @example ```true```\n\t */\n\tis_geocoded?: boolean | null\n\t/** \n\t * The geocoder provider name (either Google or Bing).\n\t * @example ```\"google\"```\n\t */\n\tprovider_name?: string | null\n\t/** \n\t * The map url of the geocoded address (if geocoded).\n\t * @example ```\"https://www.google.com/maps/search/?api=1&query=40.6971494,-74.2598672\"```\n\t */\n\tmap_url?: string | null\n\t/** \n\t * The static map image url of the geocoded address (if geocoded).\n\t * @example ```\"https://maps.googleapis.com/maps/api/staticmap?center=40.6971494,-74.2598672&size=640x320&zoom=15\"```\n\t */\n\tstatic_map_url?: string | null\n\t/** \n\t * Customer's billing information (i.e. VAT number, codice fiscale).\n\t * @example ```\"VAT ID IT02382940977\"```\n\t */\n\tbilling_info?: string | null\n\n\tgeocoder?: Geocoder | null\n\tevents?: Event[] | null\n\ttags?: Tag[] | null\n\tevent_stores?: EventStore[] | null\n\n}\n\n\ninterface AddressCreate extends ResourceCreate {\n\t\n\t/** \n\t * Indicates if it's a business or a personal address.\n\t */\n\tbusiness?: boolean | null\n\t/** \n\t * Address first name (personal).\n\t * @example ```\"John\"```\n\t */\n\tfirst_name?: string | null\n\t/** \n\t * Address last name (personal).\n\t * @example ```\"Smith\"```\n\t */\n\tlast_name?: string | null\n\t/** \n\t * Address company name (business).\n\t * @example ```\"The Red Brand Inc.\"```\n\t */\n\tcompany?: string | null\n\t/** \n\t * Address line 1, i.e. Street address, PO Box.\n\t * @example ```\"2883 Geraldine Lane\"```\n\t */\n\tline_1: string\n\t/** \n\t * Address line 2, i.e. Apartment, Suite, Building.\n\t * @example ```\"Apt.23\"```\n\t */\n\tline_2?: string | null\n\t/** \n\t * Address city.\n\t * @example ```\"New York\"```\n\t */\n\tcity: string\n\t/** \n\t * ZIP or postal code.\n\t * @example ```\"10013\"```\n\t */\n\tzip_code?: string | null\n\t/** \n\t * State, province or region code.\n\t * @example ```\"NY\"```\n\t */\n\tstate_code?: string | null\n\t/** \n\t * The international 2-letter country code as defined by the ISO 3166-1 standard.\n\t * @example ```\"US\"```\n\t */\n\tcountry_code: string\n\t/** \n\t * Phone number (including extension).\n\t * @example ```\"(212) 646-338-1228\"```\n\t */\n\tphone: string\n\t/** \n\t * Email address.\n\t * @example ```\"john@example.com\"```\n\t */\n\temail?: string | null\n\t/** \n\t * A free notes attached to the address. When used as a shipping address, this can be useful to let the customers add specific delivery instructions.\n\t * @example ```\"Please ring the bell twice\"```\n\t */\n\tnotes?: string | null\n\t/** \n\t * The address geocoded latitude. This is automatically generated when creating a shipping/billing address for an order and a valid geocoder is attached to the order's market.\n\t * @example ```40.6971494```\n\t */\n\tlat?: number | null\n\t/** \n\t * The address geocoded longitude. This is automatically generated when creating a shipping/billing address for an order and a valid geocoder is attached to the order's market.\n\t * @example ```-74.2598672```\n\t */\n\tlng?: number | null\n\t/** \n\t * Customer's billing information (i.e. VAT number, codice fiscale).\n\t * @example ```\"VAT ID IT02382940977\"```\n\t */\n\tbilling_info?: string | null\n\n\tgeocoder?: GeocoderRel | null\n\ttags?: TagRel[] | null\n\n}\n\n\ninterface AddressUpdate extends ResourceUpdate {\n\t\n\t/** \n\t * Indicates if it's a business or a personal address.\n\t */\n\tbusiness?: boolean | null\n\t/** \n\t * Address first name (personal).\n\t * @example ```\"John\"```\n\t */\n\tfirst_name?: string | null\n\t/** \n\t * Address last name (personal).\n\t * @example ```\"Smith\"```\n\t */\n\tlast_name?: string | null\n\t/** \n\t * Address company name (business).\n\t * @example ```\"The Red Brand Inc.\"```\n\t */\n\tcompany?: string | null\n\t/** \n\t * Address line 1, i.e. Street address, PO Box.\n\t * @example ```\"2883 Geraldine Lane\"```\n\t */\n\tline_1?: string | null\n\t/** \n\t * Address line 2, i.e. Apartment, Suite, Building.\n\t * @example ```\"Apt.23\"```\n\t */\n\tline_2?: string | null\n\t/** \n\t * Address city.\n\t * @example ```\"New York\"```\n\t */\n\tcity?: string | null\n\t/** \n\t * ZIP or postal code.\n\t * @example ```\"10013\"```\n\t */\n\tzip_code?: string | null\n\t/** \n\t * State, province or region code.\n\t * @example ```\"NY\"```\n\t */\n\tstate_code?: string | null\n\t/** \n\t * The international 2-letter country code as defined by the ISO 3166-1 standard.\n\t * @example ```\"US\"```\n\t */\n\tcountry_code?: string | null\n\t/** \n\t * Phone number (including extension).\n\t * @example ```\"(212) 646-338-1228\"```\n\t */\n\tphone?: string | null\n\t/** \n\t * Email address.\n\t * @example ```\"john@example.com\"```\n\t */\n\temail?: string | null\n\t/** \n\t * A free notes attached to the address. When used as a shipping address, this can be useful to let the customers add specific delivery instructions.\n\t * @example ```\"Please ring the bell twice\"```\n\t */\n\tnotes?: string | null\n\t/** \n\t * The address geocoded latitude. This is automatically generated when creating a shipping/billing address for an order and a valid geocoder is attached to the order's market.\n\t * @example ```40.6971494```\n\t */\n\tlat?: number | null\n\t/** \n\t * The address geocoded longitude. This is automatically generated when creating a shipping/billing address for an order and a valid geocoder is attached to the order's market.\n\t * @example ```-74.2598672```\n\t */\n\tlng?: number | null\n\t/** \n\t * Customer's billing information (i.e. VAT number, codice fiscale).\n\t * @example ```\"VAT ID IT02382940977\"```\n\t */\n\tbilling_info?: string | null\n\t/** \n\t * Comma separated list of tags to be added. Duplicates, invalid and non existing ones are discarded. Cannot be passed by sales channels.\n\t */\n\t_add_tags?: string | null\n\t/** \n\t * Comma separated list of tags to be removed. Duplicates, invalid and non existing ones are discarded. Cannot be passed by sales channels.\n\t */\n\t_remove_tags?: string | null\n\n\tgeocoder?: GeocoderRel | null\n\ttags?: TagRel[] | null\n\n}\n\n\nclass Addresses extends ApiResource<Address> {\n\n\tstatic readonly TYPE: AddressType = 'addresses' as const\n\n\tasync create(resource: AddressCreate, params?: QueryParamsRetrieve<Address>, options?: ResourcesConfig): Promise<Address> {\n\t\treturn this.resources.create<AddressCreate, Address>({ ...resource, type: Addresses.TYPE }, params, options)\n\t}\n\n\tasync update(resource: AddressUpdate, params?: QueryParamsRetrieve<Address>, options?: ResourcesConfig): Promise<Address> {\n\t\treturn this.resources.update<AddressUpdate, Address>({ ...resource, type: Addresses.TYPE }, params, options)\n\t}\n\n\tasync delete(id: string | ResourceId, options?: ResourcesConfig): Promise<void> {\n\t\tawait this.resources.delete((typeof id === 'string')? { id, type: Addresses.TYPE } : id, options)\n\t}\n\n\tasync geocoder(addressId: string | Address, params?: QueryParamsRetrieve<Geocoder>, options?: ResourcesConfig): Promise<Geocoder> {\n\t\tconst _addressId = (addressId as Address).id || addressId as string\n\t\treturn this.resources.fetch<Geocoder>({ type: 'geocoders' }, `addresses/${_addressId}/geocoder`, params, options) as unknown as Geocoder\n\t}\n\n\tasync events(addressId: string | Address, params?: QueryParamsList<Event>, options?: ResourcesConfig): Promise<ListResponse<Event>> {\n\t\tconst _addressId = (addressId as Address).id || addressId as string\n\t\treturn this.resources.fetch<Event>({ type: 'events' }, `addresses/${_addressId}/events`, params, options) as unknown as ListResponse<Event>\n\t}\n\n\tasync tags(addressId: string | Address, params?: QueryParamsList<Tag>, options?: ResourcesConfig): Promise<ListResponse<Tag>> {\n\t\tconst _addressId = (addressId as Address).id || addressId as string\n\t\treturn this.resources.fetch<Tag>({ type: 'tags' }, `addresses/${_addressId}/tags`, params, options) as unknown as ListResponse<Tag>\n\t}\n\n\tasync event_stores(addressId: string | Address, params?: QueryParamsList<EventStore>, options?: ResourcesConfig): Promise<ListResponse<EventStore>> {\n\t\tconst _addressId = (addressId as Address).id || addressId as string\n\t\treturn this.resources.fetch<EventStore>({ type: 'event_stores' }, `addresses/${_addressId}/event_stores`, params, options) as unknown as ListResponse<EventStore>\n\t}\n\n\tasync _add_tags(id: string | Address, triggerValue: string, params?: QueryParamsRetrieve<Address>, options?: ResourcesConfig): Promise<Address> {\n\t\treturn this.resources.update<AddressUpdate, Address>({ id: (typeof id === 'string')? id: id.id, type: Addresses.TYPE, _add_tags: triggerValue }, params, options)\n\t}\n\n\tasync _remove_tags(id: string | Address, triggerValue: string, params?: QueryParamsRetrieve<Address>, options?: ResourcesConfig): Promise<Address> {\n\t\treturn this.resources.update<AddressUpdate, Address>({ id: (typeof id === 'string')? id: id.id, type: Addresses.TYPE, _remove_tags: triggerValue }, params, options)\n\t}\n\n\n\tisAddress(resource: any): resource is Address {\n\t\treturn resource.type && (resource.type === Addresses.TYPE)\n\t}\n\n\n\trelationship(id: string | ResourceId | null): AddressRel {\n\t\treturn super.relationshipOneToOne<AddressRel>(id)\n\t}\n\n\trelationshipToMany(...ids: string[]): AddressRel[] {\n\t\treturn super.relationshipOneToMany<AddressRel>(...ids)\n\t}\n\n\n\ttype(): AddressType {\n\t\treturn Addresses.TYPE\n\t}\n\n}\n\n\nconst instance = new Addresses()\nexport default instance\n\nexport type { Address, AddressCreate, Addresses, AddressType, AddressUpdate }\n"]}
@@ -0,0 +1,59 @@
1
+ 'use strict';
2
+
3
+ var chunkXYPIGF36_cjs = require('./chunk-XYPIGF36.cjs');
4
+
5
+ // src/resources/parcels.ts
6
+ var Parcels = class _Parcels extends chunkXYPIGF36_cjs.ApiResource {
7
+ static TYPE = "parcels";
8
+ async create(resource, params, options) {
9
+ return this.resources.create({ ...resource, type: _Parcels.TYPE }, params, options);
10
+ }
11
+ async update(resource, params, options) {
12
+ return this.resources.update({ ...resource, type: _Parcels.TYPE }, params, options);
13
+ }
14
+ async delete(id, options) {
15
+ await this.resources.delete(typeof id === "string" ? { id, type: _Parcels.TYPE } : id, options);
16
+ }
17
+ async shipment(parcelId, params, options) {
18
+ const _parcelId = parcelId.id || parcelId;
19
+ return this.resources.fetch({ type: "shipments" }, `parcels/${_parcelId}/shipment`, params, options);
20
+ }
21
+ async package(parcelId, params, options) {
22
+ const _parcelId = parcelId.id || parcelId;
23
+ return this.resources.fetch({ type: "packages" }, `parcels/${_parcelId}/package`, params, options);
24
+ }
25
+ async parcel_line_items(parcelId, params, options) {
26
+ const _parcelId = parcelId.id || parcelId;
27
+ return this.resources.fetch({ type: "parcel_line_items" }, `parcels/${_parcelId}/parcel_line_items`, params, options);
28
+ }
29
+ async attachments(parcelId, params, options) {
30
+ const _parcelId = parcelId.id || parcelId;
31
+ return this.resources.fetch({ type: "attachments" }, `parcels/${_parcelId}/attachments`, params, options);
32
+ }
33
+ async events(parcelId, params, options) {
34
+ const _parcelId = parcelId.id || parcelId;
35
+ return this.resources.fetch({ type: "events" }, `parcels/${_parcelId}/events`, params, options);
36
+ }
37
+ async event_stores(parcelId, params, options) {
38
+ const _parcelId = parcelId.id || parcelId;
39
+ return this.resources.fetch({ type: "event_stores" }, `parcels/${_parcelId}/event_stores`, params, options);
40
+ }
41
+ isParcel(resource) {
42
+ return resource.type && resource.type === _Parcels.TYPE;
43
+ }
44
+ relationship(id) {
45
+ return super.relationshipOneToOne(id);
46
+ }
47
+ relationshipToMany(...ids) {
48
+ return super.relationshipOneToMany(...ids);
49
+ }
50
+ type() {
51
+ return _Parcels.TYPE;
52
+ }
53
+ };
54
+ var instance = new Parcels();
55
+ var parcels_default = instance;
56
+
57
+ exports.parcels_default = parcels_default;
58
+ //# sourceMappingURL=chunk-YNKM6H3D.cjs.map
59
+ //# sourceMappingURL=chunk-YNKM6H3D.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/resources/parcels.ts"],"names":["ApiResource"],"mappings":";;;;;AAuZA,IAAM,OAAA,GAAN,MAAM,QAAA,SAAgBA,6BAAA,CAAoB;AAAA,EAEzC,OAAgB,IAAA,GAAmB,SAAA;AAAA,EAEnC,MAAM,MAAA,CAAO,QAAA,EAAwB,MAAA,EAAsC,OAAA,EAA4C;AACtH,IAAA,OAAO,IAAA,CAAK,SAAA,CAAU,MAAA,CAA6B,EAAE,GAAG,QAAA,EAAU,IAAA,EAAM,QAAA,CAAQ,IAAA,EAAK,EAAG,MAAA,EAAQ,OAAO,CAAA;AAAA,EACxG;AAAA,EAEA,MAAM,MAAA,CAAO,QAAA,EAAwB,MAAA,EAAsC,OAAA,EAA4C;AACtH,IAAA,OAAO,IAAA,CAAK,SAAA,CAAU,MAAA,CAA6B,EAAE,GAAG,QAAA,EAAU,IAAA,EAAM,QAAA,CAAQ,IAAA,EAAK,EAAG,MAAA,EAAQ,OAAO,CAAA;AAAA,EACxG;AAAA,EAEA,MAAM,MAAA,CAAO,EAAA,EAAyB,OAAA,EAA0C;AAC/E,IAAA,MAAM,IAAA,CAAK,SAAA,CAAU,MAAA,CAAQ,OAAO,EAAA,KAAO,QAAA,GAAW,EAAE,EAAA,EAAI,IAAA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port type { ListResponse, Resource, ResourceCreate, ResourceId, ResourceRel, ResourceSort, /* ResourceFilter */ ResourcesConfig, ResourceUpdate, } from '../resource'\nimport { ApiResource } from '../resource'\nimport type { Attachment } from './attachments'\nimport type { EventStore } from './event_stores'\nimport type { Event } from './events'\nimport type { Package, PackageType } from './packages'\nimport type { ParcelLineItem } from './parcel_line_items'\nimport type { Shipment, ShipmentType } from './shipments'\n\n\ntype ParcelType = 'parcels'\ntype ParcelRel = ResourceRel & { type: ParcelType }\ntype ShipmentRel = ResourceRel & { type: ShipmentType }\ntype PackageRel = ResourceRel & { type: PackageType }\n\n\nexport type ParcelSort = Pick<Parcel, 'id' | 'weight' | 'tracking_status' | 'tracking_status_updated_at' | 'carrier_weight_oz'> & ResourceSort\n// export type ParcelFilter = Pick<Parcel, 'id' | 'weight' | 'contents_explanation' | 'shipping_label_url' | 'shipping_label_file_type' | 'shipping_label_size' | 'shipping_label_resolution' | 'tracking_number' | 'tracking_status' | 'tracking_status_detail' | 'tracking_status_updated_at' | 'carrier_weight_oz' | 'incoterm' | 'delivery_confirmation'> & ResourceFilter\n\n\ninterface Parcel extends Resource {\n\t\n\treadonly type: ParcelType\n\n\t/** \n\t * Unique identifier for the parcel.\n\t * @example ```\"#1234/S/001/P/001\"```\n\t */\n\tnumber?: string | null\n\t/** \n\t * The parcel weight, used to automatically calculate the tax rates from the available carrier accounts.\n\t * @example ```1000```\n\t */\n\tweight: number\n\t/** \n\t * The unit of weight. One of 'gr', 'oz', or 'lb'.\n\t * @example ```\"gr\"```\n\t */\n\tunit_of_weight: 'gr' | 'oz' | 'lb'\n\t/** \n\t * When shipping outside the US, you need to provide either an Exemption and Exclusion Legend (EEL) code or a Proof of Filing Citation (PFC). Which you need is based on the value of the goods being shipped. Value can be one of \"EEL\" o \"PFC\".\n\t * @example ```\"EEL\"```\n\t */\n\teel_pfc?: string | null\n\t/** \n\t * The type of item you are sending.\n\t * @example ```\"merchandise\"```\n\t */\n\tcontents_type?: string | null\n\t/** \n\t * If you specify 'other' in the 'contents_type' attribute, you must supply a brief description in this attribute.\n\t */\n\tcontents_explanation?: string | null\n\t/** \n\t * Indicates if the provided information is accurate.\n\t */\n\tcustoms_certify?: boolean | null\n\t/** \n\t * This is the name of the person who is certifying that the information provided on the customs form is accurate. Use a name of the person in your organization who is responsible for this.\n\t * @example ```\"John Doe\"```\n\t */\n\tcustoms_signer?: string | null\n\t/** \n\t * In case the shipment cannot be delivered, this option tells the carrier what you want to happen to the parcel. You can pass either 'return', or 'abandon'. The value defaults to 'return'. If you pass 'abandon', you will not receive the parcel back if it cannot be delivered.\n\t * @example ```\"return\"```\n\t */\n\tnon_delivery_option?: string | null\n\t/** \n\t * Describes if your parcel requires any special treatment or quarantine when entering the country. Can be one of 'none', 'other', 'quarantine', or 'sanitary_phytosanitary_inspection'.\n\t * @example ```\"none\"```\n\t */\n\trestriction_type?: string | null\n\t/** \n\t * If you specify 'other' in the restriction type, you must supply a brief description of what is required.\n\t */\n\trestriction_comments?: string | null\n\t/** \n\t * Indicates if the parcel requires customs info to get the shipping rates.\n\t */\n\tcustoms_info_required?: boolean | null\n\t/** \n\t * The shipping label url, ready to be downloaded and printed.\n\t * @example ```\"https://bucket.s3-us-west-2.amazonaws.com/files/postage_label/20180101/123.pdf\"```\n\t */\n\tshipping_label_url?: string | null\n\t/** \n\t * The shipping label file type. One of 'application/pdf', 'application/zpl', 'application/epl2', or 'image/png'.\n\t * @example ```\"application/pdf\"```\n\t */\n\tshipping_label_file_type?: string | null\n\t/** \n\t * The shipping label size.\n\t * @example ```\"4x7\"```\n\t */\n\tshipping_label_size?: string | null\n\t/** \n\t * The shipping label resolution.\n\t * @example ```\"200\"```\n\t */\n\tshipping_label_resolution?: string | null\n\t/** \n\t * The tracking number associated to this parcel.\n\t * @example ```\"1Z4V2A000000000000\"```\n\t */\n\ttracking_number?: string | null\n\t/** \n\t * The tracking status for this parcel, automatically updated in real time by the shipping carrier.\n\t * @example ```\"delivered\"```\n\t */\n\ttracking_status?: string | null\n\t/** \n\t * Additional information about the tracking status, automatically updated in real time by the shipping carrier.\n\t * @example ```\"arrived_at_destination\"```\n\t */\n\ttracking_status_detail?: string | null\n\t/** \n\t * Time at which the parcel's tracking status was last updated.\n\t * @example ```\"2018-01-01T12:00:00.000Z\"```\n\t */\n\ttracking_status_updated_at?: string | null\n\t/** \n\t * The parcel's full tracking history, automatically updated in real time by the shipping carrier.\n\t * @example ```[{\"object\":\"TrackingDetail\",\"message\":\"Pre-Shipment information received\",\"status\":\"pre_transit\",\"datetime\":\"2018-02-27T16:02:17Z\",\"source\":\"DHLExpress\",\"tracking_location\":{\"object\":\"TrackingLocation\"}}]```\n\t */\n\ttracking_details?: Array<Record<string, any>> | null\n\t/** \n\t * The weight of the parcel as measured by the carrier in ounces (if available).\n\t * @example ```\"42.32\"```\n\t */\n\tcarrier_weight_oz?: string | null\n\t/** \n\t * The name of the person who signed for the parcel (if available).\n\t * @example ```\"John Smith\"```\n\t */\n\tsigned_by?: string | null\n\t/** \n\t * The type of Incoterm (if available).\n\t * @example ```\"EXW\"```\n\t */\n\tincoterm?: string | null\n\t/** \n\t * The type of delivery confirmation option upon delivery.\n\t * @example ```\"SIGNATURE\"```\n\t */\n\tdelivery_confirmation?: string | null\n\n\tshipment?: Shipment | null\n\tpackage?: Package | null\n\tparcel_line_items?: ParcelLineItem[] | null\n\tattachments?: Attachment[] | null\n\tevents?: Event[] | null\n\tevent_stores?: EventStore[] | null\n\n}\n\n\ninterface ParcelCreate extends ResourceCreate {\n\t\n\t/** \n\t * The parcel weight, used to automatically calculate the tax rates from the available carrier accounts.\n\t * @example ```1000```\n\t */\n\tweight: number\n\t/** \n\t * The unit of weight. One of 'gr', 'oz', or 'lb'.\n\t * @example ```\"gr\"```\n\t */\n\tunit_of_weight: 'gr' | 'oz' | 'lb'\n\t/** \n\t * When shipping outside the US, you need to provide either an Exemption and Exclusion Legend (EEL) code or a Proof of Filing Citation (PFC). Which you need is based on the value of the goods being shipped. Value can be one of \"EEL\" o \"PFC\".\n\t * @example ```\"EEL\"```\n\t */\n\teel_pfc?: string | null\n\t/** \n\t * The type of item you are sending.\n\t * @example ```\"merchandise\"```\n\t */\n\tcontents_type?: string | null\n\t/** \n\t * If you specify 'other' in the 'contents_type' attribute, you must supply a brief description in this attribute.\n\t */\n\tcontents_explanation?: string | null\n\t/** \n\t * Indicates if the provided information is accurate.\n\t */\n\tcustoms_certify?: boolean | null\n\t/** \n\t * This is the name of the person who is certifying that the information provided on the customs form is accurate. Use a name of the person in your organization who is responsible for this.\n\t * @example ```\"John Doe\"```\n\t */\n\tcustoms_signer?: string | null\n\t/** \n\t * In case the shipment cannot be delivered, this option tells the carrier what you want to happen to the parcel. You can pass either 'return', or 'abandon'. The value defaults to 'return'. If you pass 'abandon', you will not receive the parcel back if it cannot be delivered.\n\t * @example ```\"return\"```\n\t */\n\tnon_delivery_option?: string | null\n\t/** \n\t * Describes if your parcel requires any special treatment or quarantine when entering the country. Can be one of 'none', 'other', 'quarantine', or 'sanitary_phytosanitary_inspection'.\n\t * @example ```\"none\"```\n\t */\n\trestriction_type?: string | null\n\t/** \n\t * If you specify 'other' in the restriction type, you must supply a brief description of what is required.\n\t */\n\trestriction_comments?: string | null\n\t/** \n\t * Indicates if the parcel requires customs info to get the shipping rates.\n\t */\n\tcustoms_info_required?: boolean | null\n\t/** \n\t * The shipping label url, ready to be downloaded and printed.\n\t * @example ```\"https://bucket.s3-us-west-2.amazonaws.com/files/postage_label/20180101/123.pdf\"```\n\t */\n\tshipping_label_url?: string | null\n\t/** \n\t * The shipping label file type. One of 'application/pdf', 'application/zpl', 'application/epl2', or 'image/png'.\n\t * @example ```\"application/pdf\"```\n\t */\n\tshipping_label_file_type?: string | null\n\t/** \n\t * The shipping label size.\n\t * @example ```\"4x7\"```\n\t */\n\tshipping_label_size?: string | null\n\t/** \n\t * The shipping label resolution.\n\t * @example ```\"200\"```\n\t */\n\tshipping_label_resolution?: string | null\n\t/** \n\t * The tracking number associated to this parcel.\n\t * @example ```\"1Z4V2A000000000000\"```\n\t */\n\ttracking_number?: string | null\n\t/** \n\t * The tracking status for this parcel, automatically updated in real time by the shipping carrier.\n\t * @example ```\"delivered\"```\n\t */\n\ttracking_status?: string | null\n\t/** \n\t * Additional information about the tracking status, automatically updated in real time by the shipping carrier.\n\t * @example ```\"arrived_at_destination\"```\n\t */\n\ttracking_status_detail?: string | null\n\t/** \n\t * Time at which the parcel's tracking status was last updated.\n\t * @example ```\"2018-01-01T12:00:00.000Z\"```\n\t */\n\ttracking_status_updated_at?: string | null\n\t/** \n\t * The parcel's full tracking history, automatically updated in real time by the shipping carrier.\n\t * @example ```[{\"object\":\"TrackingDetail\",\"message\":\"Pre-Shipment information received\",\"status\":\"pre_transit\",\"datetime\":\"2018-02-27T16:02:17Z\",\"source\":\"DHLExpress\",\"tracking_location\":{\"object\":\"TrackingLocation\"}}]```\n\t */\n\ttracking_details?: Array<Record<string, any>> | null\n\t/** \n\t * The weight of the parcel as measured by the carrier in ounces (if available).\n\t * @example ```\"42.32\"```\n\t */\n\tcarrier_weight_oz?: string | null\n\t/** \n\t * The name of the person who signed for the parcel (if available).\n\t * @example ```\"John Smith\"```\n\t */\n\tsigned_by?: string | null\n\t/** \n\t * The type of Incoterm (if available).\n\t * @example ```\"EXW\"```\n\t */\n\tincoterm?: string | null\n\t/** \n\t * The type of delivery confirmation option upon delivery.\n\t * @example ```\"SIGNATURE\"```\n\t */\n\tdelivery_confirmation?: string | null\n\n\tshipment: ShipmentRel\n\tpackage: PackageRel\n\n}\n\n\ninterface ParcelUpdate extends ResourceUpdate {\n\t\n\t/** \n\t * The parcel weight, used to automatically calculate the tax rates from the available carrier accounts.\n\t * @example ```1000```\n\t */\n\tweight?: number | null\n\t/** \n\t * The unit of weight. One of 'gr', 'oz', or 'lb'.\n\t * @example ```\"gr\"```\n\t */\n\tunit_of_weight?: 'gr' | 'oz' | 'lb' | null\n\t/** \n\t * When shipping outside the US, you need to provide either an Exemption and Exclusion Legend (EEL) code or a Proof of Filing Citation (PFC). Which you need is based on the value of the goods being shipped. Value can be one of \"EEL\" o \"PFC\".\n\t * @example ```\"EEL\"```\n\t */\n\teel_pfc?: string | null\n\t/** \n\t * The type of item you are sending.\n\t * @example ```\"merchandise\"```\n\t */\n\tcontents_type?: string | null\n\t/** \n\t * If you specify 'other' in the 'contents_type' attribute, you must supply a brief description in this attribute.\n\t */\n\tcontents_explanation?: string | null\n\t/** \n\t * Indicates if the provided information is accurate.\n\t */\n\tcustoms_certify?: boolean | null\n\t/** \n\t * This is the name of the person who is certifying that the information provided on the customs form is accurate. Use a name of the person in your organization who is responsible for this.\n\t * @example ```\"John Doe\"```\n\t */\n\tcustoms_signer?: string | null\n\t/** \n\t * In case the shipment cannot be delivered, this option tells the carrier what you want to happen to the parcel. You can pass either 'return', or 'abandon'. The value defaults to 'return'. If you pass 'abandon', you will not receive the parcel back if it cannot be delivered.\n\t * @example ```\"return\"```\n\t */\n\tnon_delivery_option?: string | null\n\t/** \n\t * Describes if your parcel requires any special treatment or quarantine when entering the country. Can be one of 'none', 'other', 'quarantine', or 'sanitary_phytosanitary_inspection'.\n\t * @example ```\"none\"```\n\t */\n\trestriction_type?: string | null\n\t/** \n\t * If you specify 'other' in the restriction type, you must supply a brief description of what is required.\n\t */\n\trestriction_comments?: string | null\n\t/** \n\t * Indicates if the parcel requires customs info to get the shipping rates.\n\t */\n\tcustoms_info_required?: boolean | null\n\t/** \n\t * The shipping label url, ready to be downloaded and printed.\n\t * @example ```\"https://bucket.s3-us-west-2.amazonaws.com/files/postage_label/20180101/123.pdf\"```\n\t */\n\tshipping_label_url?: string | null\n\t/** \n\t * The shipping label file type. One of 'application/pdf', 'application/zpl', 'application/epl2', or 'image/png'.\n\t * @example ```\"application/pdf\"```\n\t */\n\tshipping_label_file_type?: string | null\n\t/** \n\t * The shipping label size.\n\t * @example ```\"4x7\"```\n\t */\n\tshipping_label_size?: string | null\n\t/** \n\t * The shipping label resolution.\n\t * @example ```\"200\"```\n\t */\n\tshipping_label_resolution?: string | null\n\t/** \n\t * The tracking number associated to this parcel.\n\t * @example ```\"1Z4V2A000000000000\"```\n\t */\n\ttracking_number?: string | null\n\t/** \n\t * The tracking status for this parcel, automatically updated in real time by the shipping carrier.\n\t * @example ```\"delivered\"```\n\t */\n\ttracking_status?: string | null\n\t/** \n\t * Additional information about the tracking status, automatically updated in real time by the shipping carrier.\n\t * @example ```\"arrived_at_destination\"```\n\t */\n\ttracking_status_detail?: string | null\n\t/** \n\t * Time at which the parcel's tracking status was last updated.\n\t * @example ```\"2018-01-01T12:00:00.000Z\"```\n\t */\n\ttracking_status_updated_at?: string | null\n\t/** \n\t * The parcel's full tracking history, automatically updated in real time by the shipping carrier.\n\t * @example ```[{\"object\":\"TrackingDetail\",\"message\":\"Pre-Shipment information received\",\"status\":\"pre_transit\",\"datetime\":\"2018-02-27T16:02:17Z\",\"source\":\"DHLExpress\",\"tracking_location\":{\"object\":\"TrackingLocation\"}}]```\n\t */\n\ttracking_details?: Array<Record<string, any>> | null\n\t/** \n\t * The weight of the parcel as measured by the carrier in ounces (if available).\n\t * @example ```\"42.32\"```\n\t */\n\tcarrier_weight_oz?: string | null\n\t/** \n\t * The name of the person who signed for the parcel (if available).\n\t * @example ```\"John Smith\"```\n\t */\n\tsigned_by?: string | null\n\t/** \n\t * The type of Incoterm (if available).\n\t * @example ```\"EXW\"```\n\t */\n\tincoterm?: string | null\n\t/** \n\t * The type of delivery confirmation option upon delivery.\n\t * @example ```\"SIGNATURE\"```\n\t */\n\tdelivery_confirmation?: string | null\n\n\tshipment?: ShipmentRel | null\n\tpackage?: PackageRel | null\n\n}\n\n\nclass Parcels extends ApiResource<Parcel> {\n\n\tstatic readonly TYPE: ParcelType = 'parcels' as const\n\n\tasync create(resource: ParcelCreate, params?: QueryParamsRetrieve<Parcel>, options?: ResourcesConfig): Promise<Parcel> {\n\t\treturn this.resources.create<ParcelCreate, Parcel>({ ...resource, type: Parcels.TYPE }, params, options)\n\t}\n\n\tasync update(resource: ParcelUpdate, params?: QueryParamsRetrieve<Parcel>, options?: ResourcesConfig): Promise<Parcel> {\n\t\treturn this.resources.update<ParcelUpdate, Parcel>({ ...resource, type: Parcels.TYPE }, params, options)\n\t}\n\n\tasync delete(id: string | ResourceId, options?: ResourcesConfig): Promise<void> {\n\t\tawait this.resources.delete((typeof id === 'string')? { id, type: Parcels.TYPE } : id, options)\n\t}\n\n\tasync shipment(parcelId: string | Parcel, params?: QueryParamsRetrieve<Shipment>, options?: ResourcesConfig): Promise<Shipment> {\n\t\tconst _parcelId = (parcelId as Parcel).id || parcelId as string\n\t\treturn this.resources.fetch<Shipment>({ type: 'shipments' }, `parcels/${_parcelId}/shipment`, params, options) as unknown as Shipment\n\t}\n\n\tasync package(parcelId: string | Parcel, params?: QueryParamsRetrieve<Package>, options?: ResourcesConfig): Promise<Package> {\n\t\tconst _parcelId = (parcelId as Parcel).id || parcelId as string\n\t\treturn this.resources.fetch<Package>({ type: 'packages' }, `parcels/${_parcelId}/package`, params, options) as unknown as Package\n\t}\n\n\tasync parcel_line_items(parcelId: string | Parcel, params?: QueryParamsList<ParcelLineItem>, options?: ResourcesConfig): Promise<ListResponse<ParcelLineItem>> {\n\t\tconst _parcelId = (parcelId as Parcel).id || parcelId as string\n\t\treturn this.resources.fetch<ParcelLineItem>({ type: 'parcel_line_items' }, `parcels/${_parcelId}/parcel_line_items`, params, options) as unknown as ListResponse<ParcelLineItem>\n\t}\n\n\tasync attachments(parcelId: string | Parcel, params?: QueryParamsList<Attachment>, options?: ResourcesConfig): Promise<ListResponse<Attachment>> {\n\t\tconst _parcelId = (parcelId as Parcel).id || parcelId as string\n\t\treturn this.resources.fetch<Attachment>({ type: 'attachments' }, `parcels/${_parcelId}/attachments`, params, options) as unknown as ListResponse<Attachment>\n\t}\n\n\tasync events(parcelId: string | Parcel, params?: QueryParamsList<Event>, options?: ResourcesConfig): Promise<ListResponse<Event>> {\n\t\tconst _parcelId = (parcelId as Parcel).id || parcelId as string\n\t\treturn this.resources.fetch<Event>({ type: 'events' }, `parcels/${_parcelId}/events`, params, options) as unknown as ListResponse<Event>\n\t}\n\n\tasync event_stores(parcelId: string | Parcel, params?: QueryParamsList<EventStore>, options?: ResourcesConfig): Promise<ListResponse<EventStore>> {\n\t\tconst _parcelId = (parcelId as Parcel).id || parcelId as string\n\t\treturn this.resources.fetch<EventStore>({ type: 'event_stores' }, `parcels/${_parcelId}/event_stores`, params, options) as unknown as ListResponse<EventStore>\n\t}\n\n\n\tisParcel(resource: any): resource is Parcel {\n\t\treturn resource.type && (resource.type === Parcels.TYPE)\n\t}\n\n\n\trelationship(id: string | ResourceId | null): ParcelRel {\n\t\treturn super.relationshipOneToOne<ParcelRel>(id)\n\t}\n\n\trelationshipToMany(...ids: string[]): ParcelRel[] {\n\t\treturn super.relationshipOneToMany<ParcelRel>(...ids)\n\t}\n\n\n\ttype(): ParcelType {\n\t\treturn Parcels.TYPE\n\t}\n\n}\n\n\nconst instance = new Parcels()\nexport default instance\n\nexport type { Parcel, ParcelCreate, Parcels, ParcelType, ParcelUpdate }\n"]}
@@ -0,0 +1,93 @@
1
+ 'use strict';
2
+
3
+ var chunkXYPIGF36_cjs = require('./chunk-XYPIGF36.cjs');
4
+
5
+ // src/resources/line_items.ts
6
+ var LineItems = class _LineItems extends chunkXYPIGF36_cjs.ApiResource {
7
+ static TYPE = "line_items";
8
+ async create(resource, params, options) {
9
+ return this.resources.create({ ...resource, type: _LineItems.TYPE }, params, options);
10
+ }
11
+ async update(resource, params, options) {
12
+ return this.resources.update({ ...resource, type: _LineItems.TYPE }, params, options);
13
+ }
14
+ async delete(id, options) {
15
+ await this.resources.delete(typeof id === "string" ? { id, type: _LineItems.TYPE } : id, options);
16
+ }
17
+ async order(lineItemId, params, options) {
18
+ const _lineItemId = lineItemId.id || lineItemId;
19
+ return this.resources.fetch({ type: "orders" }, `line_items/${_lineItemId}/order`, params, options);
20
+ }
21
+ async line_item_options(lineItemId, params, options) {
22
+ const _lineItemId = lineItemId.id || lineItemId;
23
+ return this.resources.fetch({ type: "line_item_options" }, `line_items/${_lineItemId}/line_item_options`, params, options);
24
+ }
25
+ async return_line_items(lineItemId, params, options) {
26
+ const _lineItemId = lineItemId.id || lineItemId;
27
+ return this.resources.fetch({ type: "return_line_items" }, `line_items/${_lineItemId}/return_line_items`, params, options);
28
+ }
29
+ async stock_reservations(lineItemId, params, options) {
30
+ const _lineItemId = lineItemId.id || lineItemId;
31
+ return this.resources.fetch({ type: "stock_reservations" }, `line_items/${_lineItemId}/stock_reservations`, params, options);
32
+ }
33
+ async stock_line_items(lineItemId, params, options) {
34
+ const _lineItemId = lineItemId.id || lineItemId;
35
+ return this.resources.fetch({ type: "stock_line_items" }, `line_items/${_lineItemId}/stock_line_items`, params, options);
36
+ }
37
+ async stock_transfers(lineItemId, params, options) {
38
+ const _lineItemId = lineItemId.id || lineItemId;
39
+ return this.resources.fetch({ type: "stock_transfers" }, `line_items/${_lineItemId}/stock_transfers`, params, options);
40
+ }
41
+ async notifications(lineItemId, params, options) {
42
+ const _lineItemId = lineItemId.id || lineItemId;
43
+ return this.resources.fetch({ type: "notifications" }, `line_items/${_lineItemId}/notifications`, params, options);
44
+ }
45
+ async events(lineItemId, params, options) {
46
+ const _lineItemId = lineItemId.id || lineItemId;
47
+ return this.resources.fetch({ type: "events" }, `line_items/${_lineItemId}/events`, params, options);
48
+ }
49
+ async tags(lineItemId, params, options) {
50
+ const _lineItemId = lineItemId.id || lineItemId;
51
+ return this.resources.fetch({ type: "tags" }, `line_items/${_lineItemId}/tags`, params, options);
52
+ }
53
+ async event_stores(lineItemId, params, options) {
54
+ const _lineItemId = lineItemId.id || lineItemId;
55
+ return this.resources.fetch({ type: "event_stores" }, `line_items/${_lineItemId}/event_stores`, params, options);
56
+ }
57
+ async _external_price(id, params, options) {
58
+ return this.resources.update({ id: typeof id === "string" ? id : id.id, type: _LineItems.TYPE, _external_price: true }, params, options);
59
+ }
60
+ async _reserve_stock(id, params, options) {
61
+ return this.resources.update({ id: typeof id === "string" ? id : id.id, type: _LineItems.TYPE, _reserve_stock: true }, params, options);
62
+ }
63
+ async _reset_restocked_quantity(id, params, options) {
64
+ return this.resources.update({ id: typeof id === "string" ? id : id.id, type: _LineItems.TYPE, _reset_restocked_quantity: true }, params, options);
65
+ }
66
+ async _reset_circuit(id, params, options) {
67
+ return this.resources.update({ id: typeof id === "string" ? id : id.id, type: _LineItems.TYPE, _reset_circuit: true }, params, options);
68
+ }
69
+ async _add_tags(id, triggerValue, params, options) {
70
+ return this.resources.update({ id: typeof id === "string" ? id : id.id, type: _LineItems.TYPE, _add_tags: triggerValue }, params, options);
71
+ }
72
+ async _remove_tags(id, triggerValue, params, options) {
73
+ return this.resources.update({ id: typeof id === "string" ? id : id.id, type: _LineItems.TYPE, _remove_tags: triggerValue }, params, options);
74
+ }
75
+ isLineItem(resource) {
76
+ return resource.type && resource.type === _LineItems.TYPE;
77
+ }
78
+ relationship(id) {
79
+ return super.relationshipOneToOne(id);
80
+ }
81
+ relationshipToMany(...ids) {
82
+ return super.relationshipOneToMany(...ids);
83
+ }
84
+ type() {
85
+ return _LineItems.TYPE;
86
+ }
87
+ };
88
+ var instance = new LineItems();
89
+ var line_items_default = instance;
90
+
91
+ exports.line_items_default = line_items_default;
92
+ //# sourceMappingURL=chunk-YPX3YJ4L.cjs.map
93
+ //# sourceMappingURL=chunk-YPX3YJ4L.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/resources/line_items.ts"],"names":["ApiResource"],"mappings":";;;;;AAuZA,IAAM,SAAA,GAAN,MAAM,UAAA,SAAkBA,6BAAA,CAAsB;AAAA,EAE7C,OAAgB,IAAA,GAAqB,YAAA;AAAA,EAErC,MAAM,MAAA,CAAO,QAAA,EAA0B,MAAA,EAAwC,OAAA,EAA8C;AAC5H,IAAA,OAAO,IAAA,CAAK,SAAA,CAAU,MAAA,CAAiC,EAAE,GAAG,QAAA,EAAU,IAAA,EAAM,UAAA,CAAU,IAAA,EAAK,EAAG,MAA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AAA,CAAU,IAAA,EAAM,WAAW,YAAA,EAAa,EAAG,QAAQ,OAAO,CAAA;AAAA,EACnK;AAAA,EAEA,MAAM,YAAA,CAAa,EAAA,EAAuB,YAAA,EAAsB,QAAwC,OAAA,EAA8C;AACrJ,IAAA,OAAO,KAAK,SAAA,CAAU,MAAA,CAAiC,EAAE,EAAA,EAAK,OAAO,OAAO,QAAA,GAAW,EAAA,GAAI,EAAA,CAAG,EAAA,EAAI,MAAM,UAAA,CAAU,IAAA,EAAM,cAAc,YAAA,EAAa,EAAG,QAAQ,OAAO,CAAA;AAAA,EACtK;AAAA,EAGA,WAAW,QAAA,EAAqC;AAC/C,IAAA,OAAO,QAAA,CAAS,IAAA,IAAS,QAAA,CAAS,IAAA,KAAS,UAAA,CAAU,IAAA;AAAA,EACtD;AAAA,EAGA,aAAa,EAAA,EAA6C;AACzD,IAAA,OAAO,KAAA,CAAM,qBAAkC,EAAE,CAAA;AAAA,EAClD;AAAA,EAEA,sBAAsB,GAAA,EAA8B;AACnD,IAAA,OAAO,KAAA,CAAM,qBAAA,CAAmC,GAAG,GAAG,CAAA;AAAA,EACvD;AAAA,EAGA,IAAA,GAAqB;AACpB,IAAA,OAAO,UAAA,CAAU,IAAA;AAAA,EAClB;AAED,CAAA;AAGA,IAAM,QAAA,GAAW,IAAI,SAAA,EAAU;AAC/B,IAAO,kBAAA,GAAQ","file":"chunk-YPX3YJ4L.cjs","sourcesContent":["import type { QueryParamsList, QueryParamsRetrieve } from '../query'\nimport type { ListResponse, Resource, ResourceCreate, ResourceId, ResourceRel, ResourceSort, /* ResourceFilter */ ResourcesConfig, ResourceUpdate, } from '../resource'\nimport { ApiResource } from '../resource'\nimport type { Adjustment, AdjustmentType } from './adjustments'\nimport type { Bundle, BundleType } from './bundles'\nimport type { BuyXPayYPromotion, BuyXPayYPromotionType } from './buy_x_pay_y_promotions'\nimport type { DiscountEngineItem, DiscountEngineItemType } from './discount_engine_items'\nimport type { EventStore } from './event_stores'\nimport type { Event } from './events'\nimport type { ExternalPromotion, ExternalPromotionType } from './external_promotions'\nimport type { FixedAmountPromotion, FixedAmountPromotionType } from './fixed_amount_promotions'\nimport type { FixedPricePromotion, FixedPricePromotionType } from './fixed_price_promotions'\nimport type { FlexPromotion, FlexPromotionType } from './flex_promotions'\nimport type { FreeGiftPromotion, FreeGiftPromotionType } from './free_gift_promotions'\nimport type { FreeShippingPromotion, FreeShippingPromotionType } from './free_shipping_promotions'\nimport type { GiftCard, GiftCardType } from './gift_cards'\nimport type { LineItemOption } from './line_item_options'\nimport type { Notification } from './notifications'\nimport type { Order, OrderType } from './orders'\nimport type { PaymentMethod, PaymentMethodType } from './payment_methods'\nimport type { PercentageDiscountPromotion, PercentageDiscountPromotionType } from './percentage_discount_promotions'\nimport type { ReturnLineItem } from './return_line_items'\nimport type { Shipment, ShipmentType } from './shipments'\nimport type { Sku, SkuType } from './skus'\nimport type { StockLineItem } from './stock_line_items'\nimport type { StockReservation } from './stock_reservations'\nimport type { StockTransfer } from './stock_transfers'\nimport type { Tag, TagType } from './tags'\n\n\ntype LineItemType = 'line_items'\ntype LineItemRel = ResourceRel & { type: LineItemType }\ntype OrderRel = ResourceRel & { type: OrderType }\ntype SkuRel = ResourceRel & { type: SkuType }\ntype BundleRel = ResourceRel & { type: BundleType }\ntype GiftCardRel = ResourceRel & { type: GiftCardType }\ntype ShipmentRel = ResourceRel & { type: ShipmentType }\ntype PaymentMethodRel = ResourceRel & { type: PaymentMethodType }\ntype AdjustmentRel = ResourceRel & { type: AdjustmentType }\ntype DiscountEngineItemRel = ResourceRel & { type: DiscountEngineItemType }\ntype PercentageDiscountPromotionRel = ResourceRel & { type: PercentageDiscountPromotionType }\ntype FreeShippingPromotionRel = ResourceRel & { type: FreeShippingPromotionType }\ntype BuyXPayYPromotionRel = ResourceRel & { type: BuyXPayYPromotionType }\ntype FreeGiftPromotionRel = ResourceRel & { type: FreeGiftPromotionType }\ntype FixedPricePromotionRel = ResourceRel & { type: FixedPricePromotionType }\ntype ExternalPromotionRel = ResourceRel & { type: ExternalPromotionType }\ntype FixedAmountPromotionRel = ResourceRel & { type: FixedAmountPromotionType }\ntype FlexPromotionRel = ResourceRel & { type: FlexPromotionType }\ntype TagRel = ResourceRel & { type: TagType }\n\n\nexport type LineItemSort = Pick<LineItem, 'id' | 'currency_code' | 'unit_amount_cents' | 'compare_at_amount_cents' | 'options_amount_cents' | 'discount_cents' | 'total_amount_cents' | 'tax_amount_cents' | 'name' | 'item_type' | 'circuit_state' | 'circuit_failure_count'> & ResourceSort\n// export type LineItemFilter = Pick<LineItem, 'id' | 'sku_code' | 'quantity' | 'currency_code' | 'unit_amount_cents' | 'compare_at_amount_cents' | 'options_amount_cents' | 'discount_cents' | 'total_amount_cents' | 'tax_amount_cents' | 'name' | 'image_url' | 'item_type' | 'circuit_state' | 'circuit_failure_count'> & ResourceFilter\n\n\ninterface LineItem extends Resource {\n\t\n\treadonly type: LineItemType\n\n\t/** \n\t * The code of the associated SKU.\n\t * @example ```\"TSHIRTMM000000FFFFFFXLXX\"```\n\t */\n\tsku_code?: string | null\n\t/** \n\t * The code of the associated bundle.\n\t * @example ```\"BUNDLEMM000000FFFFFFXLXX\"```\n\t */\n\tbundle_code?: string | null\n\t/** \n\t * The line item quantity.\n\t * @example ```4```\n\t */\n\tquantity: number\n\t/** \n\t * When creating or updating a new line item, set this attribute to '1' if you want to inject the unit_amount_cents price from an external source. Any successive price computation will be done externally, until the attribute is reset to '0'.\n\t * @example ```true```\n\t */\n\t_external_price?: boolean | null\n\t/** \n\t * The international 3-letter currency code as defined by the ISO 4217 standard, automatically inherited from the order's market.\n\t * @example ```\"EUR\"```\n\t */\n\tcurrency_code?: string | null\n\t/** \n\t * The unit amount of the line item, in cents. Can be specified only via an integration application, or when the item is missing, otherwise is automatically computed by using one of the available methods. Cannot be passed by sales channels.\n\t * @example ```10000```\n\t */\n\tunit_amount_cents?: number | null\n\t/** \n\t * The unit amount of the line item, float. This can be useful to track the purchase on thrid party systems, e.g Google Analyitcs Enhanced Ecommerce.\n\t * @example ```100```\n\t */\n\tunit_amount_float?: number | null\n\t/** \n\t * The unit amount of the line item, formatted. This can be useful to display the amount with currency in you views.\n\t * @example ```\"€100,00\"```\n\t */\n\tformatted_unit_amount?: string | null\n\t/** \n\t * The compared price amount, in cents. Useful to display a percentage discount.\n\t * @example ```13000```\n\t */\n\tcompare_at_amount_cents?: number | null\n\t/** \n\t * The compared price amount, float.\n\t * @example ```130```\n\t */\n\tcompare_at_amount_float?: number | null\n\t/** \n\t * The compared price amount, formatted.\n\t * @example ```\"€130,00\"```\n\t */\n\tformatted_compare_at_amount?: string | null\n\t/** \n\t * The options amount of the line item, in cents. Cannot be passed by sales channels.\n\t * @example ```1000```\n\t */\n\toptions_amount_cents?: number | null\n\t/** \n\t * The options amount of the line item, float.\n\t * @example ```10```\n\t */\n\toptions_amount_float?: number | null\n\t/** \n\t * The options amount of the line item, formatted.\n\t * @example ```\"€10,00\"```\n\t */\n\tformatted_options_amount?: string | null\n\t/** \n\t * The discount applied to the line item, in cents. When you apply a discount to an order, this is automatically calculated basing on the line item total_amount_cents value.\n\t * @example ```-1000```\n\t */\n\tdiscount_cents?: number | null\n\t/** \n\t * The discount applied to the line item, float. When you apply a discount to an order, this is automatically calculated basing on the line item total_amount_cents value.\n\t * @example ```10```\n\t */\n\tdiscount_float?: number | null\n\t/** \n\t * The discount applied to the line item, fromatted. When you apply a discount to an order, this is automatically calculated basing on the line item total_amount_cents value.\n\t * @example ```\"€10,00\"```\n\t */\n\tformatted_discount?: string | null\n\t/** \n\t * Calculated as unit amount x quantity + options amount, in cents.\n\t * @example ```18800```\n\t */\n\ttotal_amount_cents?: number | null\n\t/** \n\t * Calculated as unit amount x quantity + options amount, float. This can be useful to track the purchase on thrid party systems, e.g Google Analyitcs Enhanced Ecommerce.\n\t * @example ```188```\n\t */\n\ttotal_amount_float: number\n\t/** \n\t * Calculated as unit amount x quantity + options amount, formatted. This can be useful to display the amount with currency in you views.\n\t * @example ```\"€188,00\"```\n\t */\n\tformatted_total_amount?: string | null\n\t/** \n\t * The collected tax amount, otherwise calculated as total amount cents - discount cent * tax rate, in cents.\n\t * @example ```1880```\n\t */\n\ttax_amount_cents?: number | null\n\t/** \n\t * The collected tax amount, otherwise calculated as total amount cents - discount cent * tax rate, float.\n\t * @example ```18.8```\n\t */\n\ttax_amount_float: number\n\t/** \n\t * The collected tax amount, otherwise calculated as total amount cents - discount cent * tax rate, formatted.\n\t * @example ```\"€18,80\"```\n\t */\n\tformatted_tax_amount?: string | null\n\t/** \n\t * The name of the line item. When blank, it gets populated with the name of the associated item (if present).\n\t * @example ```\"Men's Black T-shirt with White Logo (XL)\"```\n\t */\n\tname?: string | null\n\t/** \n\t * The image_url of the line item. When blank, it gets populated with the image_url of the associated item (if present, SKU only).\n\t * @example ```\"https://img.yourdomain.com/skus/xYZkjABcde.png\"```\n\t */\n\timage_url?: string | null\n\t/** \n\t * The discount breakdown for this line item (if calculated).\n\t * @example ```{\"41\":{\"name\":\"10% ALL\",\"cents\":-900,\"weight\":0.416,\"coupon_code\":\"XXXXXXXX\"}}```\n\t */\n\tdiscount_breakdown?: Record<string, any> | null\n\t/** \n\t * The tax rate for this line item (if calculated).\n\t * @example ```0.22```\n\t */\n\ttax_rate?: number | null\n\t/** \n\t * The tax breakdown for this line item (if calculated).\n\t * @example ```{\"id\":\"1234\",\"city_amount\":\"0.0\",\"state_amount\":6.6,\"city_tax_rate\":0,\"county_amount\":2.78,\"taxable_amount\":139,\"county_tax_rate\":0.02,\"tax_collectable\":10.08,\"special_tax_rate\":0.005,\"combined_tax_rate\":0.0725,\"city_taxable_amount\":0,\"state_sales_tax_rate\":0.0475,\"state_taxable_amount\":139,\"county_taxable_amount\":139,\"special_district_amount\":0.7,\"special_district_taxable_amount\":139}```\n\t */\n\ttax_breakdown?: Record<string, any> | null\n\t/** \n\t * The type of the associated item. One of 'skus', 'bundles', 'gift_cards', 'shipments', 'payment_methods', 'adjustments', 'discount_engine_items', 'percentage_discount_promotions', 'free_shipping_promotions', 'buy_x_pay_y_promotions', 'free_gift_promotions', 'fixed_price_promotions', 'external_promotions', 'fixed_amount_promotions', or 'flex_promotions'.\n\t * @example ```\"skus\"```\n\t */\n\titem_type?: 'skus' | 'bundles' | 'gift_cards' | 'shipments' | 'payment_methods' | 'adjustments' | 'discount_engine_items' | 'percentage_discount_promotions' | 'free_shipping_promotions' | 'buy_x_pay_y_promotions' | 'free_gift_promotions' | 'fixed_price_promotions' | 'external_promotions' | 'fixed_amount_promotions' | 'flex_promotions' | null\n\t/** \n\t * The frequency which generates a subscription. Must be supported by existing associated subscription_model.\n\t * @example ```\"monthly\"```\n\t */\n\tfrequency?: string | null\n\t/** \n\t * The coupon code, if any, used to trigger this promotion line item. null for other line item types or if the promotion line item wasn't triggered by a coupon.\n\t * @example ```\"SUMMERDISCOUNT\"```\n\t */\n\tcoupon_code?: string | null\n\t/** \n\t * The rule outcomes.\n\t * @example ```[]```\n\t */\n\trule_outcomes?: Record<string, any> | null\n\t/** \n\t * The circuit breaker state, by default it is 'closed'. It can become 'open' once the number of consecutive failures overlaps the specified threshold, in such case no further calls to the failing callback are made.\n\t * @example ```\"closed\"```\n\t */\n\tcircuit_state?: string | null\n\t/** \n\t * The number of consecutive failures recorded by the circuit breaker associated to this resource, will be reset on first successful call to callback.\n\t * @example ```5```\n\t */\n\tcircuit_failure_count?: number | null\n\n\torder?: Order | null\n\titem?: Sku | Bundle | GiftCard | Shipment | PaymentMethod | Adjustment | DiscountEngineItem | PercentageDiscountPromotion | FreeShippingPromotion | BuyXPayYPromotion | FreeGiftPromotion | FixedPricePromotion | ExternalPromotion | FixedAmountPromotion | FlexPromotion | null\n\tsku?: Sku | null\n\tbundle?: Bundle | null\n\tadjustment?: Adjustment | null\n\tgift_card?: GiftCard | null\n\tshipment?: Shipment | null\n\tpayment_method?: PaymentMethod | null\n\tline_item_options?: LineItemOption[] | null\n\treturn_line_items?: ReturnLineItem[] | null\n\tstock_reservations?: StockReservation[] | null\n\tstock_line_items?: StockLineItem[] | null\n\tstock_transfers?: StockTransfer[] | null\n\tnotifications?: Notification[] | null\n\tevents?: Event[] | null\n\ttags?: Tag[] | null\n\tevent_stores?: EventStore[] | null\n\n}\n\n\ninterface LineItemCreate extends ResourceCreate {\n\t\n\t/** \n\t * The code of the associated SKU.\n\t * @example ```\"TSHIRTMM000000FFFFFFXLXX\"```\n\t */\n\tsku_code?: string | null\n\t/** \n\t * The code of the associated bundle.\n\t * @example ```\"BUNDLEMM000000FFFFFFXLXX\"```\n\t */\n\tbundle_code?: string | null\n\t/** \n\t * The line item quantity.\n\t * @example ```4```\n\t */\n\tquantity: number\n\t/** \n\t * When creating or updating a new line item, set this attribute to '1' if you want to inject the unit_amount_cents price from an external source. Any successive price computation will be done externally, until the attribute is reset to '0'.\n\t * @example ```true```\n\t */\n\t_external_price?: boolean | null\n\t/** \n\t * When creating a new line item, set this attribute to '1' if you want to update the line item quantity (if present) instead of creating a new line item for the same SKU.\n\t * @example ```true```\n\t */\n\t_update_quantity?: boolean | null\n\t/** \n\t * Send this attribute if you want to reserve the stock for the line item's SKUs quantity. Stock reservations expiration depends on the inventory model's cutoff. When used on update the existing active stock reservations are renewed. Cannot be passed by sales channels.\n\t * @example ```true```\n\t */\n\t_reserve_stock?: boolean | null\n\t/** \n\t * Send this attribute if you want to reset the quantity restocked by a return or by an order/shipment cancel. This will allow for multiple returns, albeit you need to adjust the stock manually. Cannot be passed by sales channels.\n\t * @example ```true```\n\t */\n\t_reset_restocked_quantity?: boolean | null\n\t/** \n\t * The unit amount of the line item, in cents. Can be specified only via an integration application, or when the item is missing, otherwise is automatically computed by using one of the available methods. Cannot be passed by sales channels.\n\t * @example ```10000```\n\t */\n\tunit_amount_cents?: number | null\n\t/** \n\t * The compared price amount, in cents. Useful to display a percentage discount.\n\t * @example ```13000```\n\t */\n\tcompare_at_amount_cents?: number | null\n\t/** \n\t * The name of the line item. When blank, it gets populated with the name of the associated item (if present).\n\t * @example ```\"Men's Black T-shirt with White Logo (XL)\"```\n\t */\n\tname?: string | null\n\t/** \n\t * The image_url of the line item. When blank, it gets populated with the image_url of the associated item (if present, SKU only).\n\t * @example ```\"https://img.yourdomain.com/skus/xYZkjABcde.png\"```\n\t */\n\timage_url?: string | null\n\t/** \n\t * The type of the associated item. One of 'skus', 'bundles', 'gift_cards', 'shipments', 'payment_methods', 'adjustments', 'discount_engine_items', 'percentage_discount_promotions', 'free_shipping_promotions', 'buy_x_pay_y_promotions', 'free_gift_promotions', 'fixed_price_promotions', 'external_promotions', 'fixed_amount_promotions', or 'flex_promotions'.\n\t * @example ```\"skus\"```\n\t */\n\titem_type?: 'skus' | 'bundles' | 'gift_cards' | 'shipments' | 'payment_methods' | 'adjustments' | 'discount_engine_items' | 'percentage_discount_promotions' | 'free_shipping_promotions' | 'buy_x_pay_y_promotions' | 'free_gift_promotions' | 'fixed_price_promotions' | 'external_promotions' | 'fixed_amount_promotions' | 'flex_promotions' | null\n\t/** \n\t * The frequency which generates a subscription. Must be supported by existing associated subscription_model.\n\t * @example ```\"monthly\"```\n\t */\n\tfrequency?: string | null\n\n\torder: OrderRel\n\titem?: SkuRel | BundleRel | GiftCardRel | ShipmentRel | PaymentMethodRel | AdjustmentRel | DiscountEngineItemRel | PercentageDiscountPromotionRel | FreeShippingPromotionRel | BuyXPayYPromotionRel | FreeGiftPromotionRel | FixedPricePromotionRel | ExternalPromotionRel | FixedAmountPromotionRel | FlexPromotionRel | null\n\ttags?: TagRel[] | null\n\n}\n\n\ninterface LineItemUpdate extends ResourceUpdate {\n\t\n\t/** \n\t * The code of the associated SKU.\n\t * @example ```\"TSHIRTMM000000FFFFFFXLXX\"```\n\t */\n\tsku_code?: string | null\n\t/** \n\t * The code of the associated bundle.\n\t * @example ```\"BUNDLEMM000000FFFFFFXLXX\"```\n\t */\n\tbundle_code?: string | null\n\t/** \n\t * The line item quantity.\n\t * @example ```4```\n\t */\n\tquantity?: number | null\n\t/** \n\t * When creating or updating a new line item, set this attribute to '1' if you want to inject the unit_amount_cents price from an external source. Any successive price computation will be done externally, until the attribute is reset to '0'.\n\t * @example ```true```\n\t */\n\t_external_price?: boolean | null\n\t/** \n\t * Send this attribute if you want to reserve the stock for the line item's SKUs quantity. Stock reservations expiration depends on the inventory model's cutoff. When used on update the existing active stock reservations are renewed. Cannot be passed by sales channels.\n\t * @example ```true```\n\t */\n\t_reserve_stock?: boolean | null\n\t/** \n\t * Send this attribute if you want to reset the quantity restocked by a return or by an order/shipment cancel. This will allow for multiple returns, albeit you need to adjust the stock manually. Cannot be passed by sales channels.\n\t * @example ```true```\n\t */\n\t_reset_restocked_quantity?: boolean | null\n\t/** \n\t * The unit amount of the line item, in cents. Can be specified only via an integration application, or when the item is missing, otherwise is automatically computed by using one of the available methods. Cannot be passed by sales channels.\n\t * @example ```10000```\n\t */\n\tunit_amount_cents?: number | null\n\t/** \n\t * The compared price amount, in cents. Useful to display a percentage discount.\n\t * @example ```13000```\n\t */\n\tcompare_at_amount_cents?: number | null\n\t/** \n\t * The options amount of the line item, in cents. Cannot be passed by sales channels.\n\t * @example ```1000```\n\t */\n\toptions_amount_cents?: number | null\n\t/** \n\t * The name of the line item. When blank, it gets populated with the name of the associated item (if present).\n\t * @example ```\"Men's Black T-shirt with White Logo (XL)\"```\n\t */\n\tname?: string | null\n\t/** \n\t * The image_url of the line item. When blank, it gets populated with the image_url of the associated item (if present, SKU only).\n\t * @example ```\"https://img.yourdomain.com/skus/xYZkjABcde.png\"```\n\t */\n\timage_url?: string | null\n\t/** \n\t * The frequency which generates a subscription. Must be supported by existing associated subscription_model.\n\t * @example ```\"monthly\"```\n\t */\n\tfrequency?: string | null\n\t/** \n\t * Send this attribute if you want to reset the circuit breaker associated to this resource to 'closed' state and zero failures count. Cannot be passed by sales channels.\n\t * @example ```true```\n\t */\n\t_reset_circuit?: boolean | null\n\t/** \n\t * Comma separated list of tags to be added. Duplicates, invalid and non existing ones are discarded. Cannot be passed by sales channels.\n\t */\n\t_add_tags?: string | null\n\t/** \n\t * Comma separated list of tags to be removed. Duplicates, invalid and non existing ones are discarded. Cannot be passed by sales channels.\n\t */\n\t_remove_tags?: string | null\n\n\ttags?: TagRel[] | null\n\n}\n\n\nclass LineItems extends ApiResource<LineItem> {\n\n\tstatic readonly TYPE: LineItemType = 'line_items' as const\n\n\tasync create(resource: LineItemCreate, params?: QueryParamsRetrieve<LineItem>, options?: ResourcesConfig): Promise<LineItem> {\n\t\treturn this.resources.create<LineItemCreate, LineItem>({ ...resource, type: LineItems.TYPE }, params, options)\n\t}\n\n\tasync update(resource: LineItemUpdate, params?: QueryParamsRetrieve<LineItem>, options?: ResourcesConfig): Promise<LineItem> {\n\t\treturn this.resources.update<LineItemUpdate, LineItem>({ ...resource, type: LineItems.TYPE }, params, options)\n\t}\n\n\tasync delete(id: string | ResourceId, options?: ResourcesConfig): Promise<void> {\n\t\tawait this.resources.delete((typeof id === 'string')? { id, type: LineItems.TYPE } : id, options)\n\t}\n\n\tasync order(lineItemId: string | LineItem, params?: QueryParamsRetrieve<Order>, options?: ResourcesConfig): Promise<Order> {\n\t\tconst _lineItemId = (lineItemId as LineItem).id || lineItemId as string\n\t\treturn this.resources.fetch<Order>({ type: 'orders' }, `line_items/${_lineItemId}/order`, params, options) as unknown as Order\n\t}\n\n\tasync line_item_options(lineItemId: string | LineItem, params?: QueryParamsList<LineItemOption>, options?: ResourcesConfig): Promise<ListResponse<LineItemOption>> {\n\t\tconst _lineItemId = (lineItemId as LineItem).id || lineItemId as string\n\t\treturn this.resources.fetch<LineItemOption>({ type: 'line_item_options' }, `line_items/${_lineItemId}/line_item_options`, params, options) as unknown as ListResponse<LineItemOption>\n\t}\n\n\tasync return_line_items(lineItemId: string | LineItem, params?: QueryParamsList<ReturnLineItem>, options?: ResourcesConfig): Promise<ListResponse<ReturnLineItem>> {\n\t\tconst _lineItemId = (lineItemId as LineItem).id || lineItemId as string\n\t\treturn this.resources.fetch<ReturnLineItem>({ type: 'return_line_items' }, `line_items/${_lineItemId}/return_line_items`, params, options) as unknown as ListResponse<ReturnLineItem>\n\t}\n\n\tasync stock_reservations(lineItemId: string | LineItem, params?: QueryParamsList<StockReservation>, options?: ResourcesConfig): Promise<ListResponse<StockReservation>> {\n\t\tconst _lineItemId = (lineItemId as LineItem).id || lineItemId as string\n\t\treturn this.resources.fetch<StockReservation>({ type: 'stock_reservations' }, `line_items/${_lineItemId}/stock_reservations`, params, options) as unknown as ListResponse<StockReservation>\n\t}\n\n\tasync stock_line_items(lineItemId: string | LineItem, params?: QueryParamsList<StockLineItem>, options?: ResourcesConfig): Promise<ListResponse<StockLineItem>> {\n\t\tconst _lineItemId = (lineItemId as LineItem).id || lineItemId as string\n\t\treturn this.resources.fetch<StockLineItem>({ type: 'stock_line_items' }, `line_items/${_lineItemId}/stock_line_items`, params, options) as unknown as ListResponse<StockLineItem>\n\t}\n\n\tasync stock_transfers(lineItemId: string | LineItem, params?: QueryParamsList<StockTransfer>, options?: ResourcesConfig): Promise<ListResponse<StockTransfer>> {\n\t\tconst _lineItemId = (lineItemId as LineItem).id || lineItemId as string\n\t\treturn this.resources.fetch<StockTransfer>({ type: 'stock_transfers' }, `line_items/${_lineItemId}/stock_transfers`, params, options) as unknown as ListResponse<StockTransfer>\n\t}\n\n\tasync notifications(lineItemId: string | LineItem, params?: QueryParamsList<Notification>, options?: ResourcesConfig): Promise<ListResponse<Notification>> {\n\t\tconst _lineItemId = (lineItemId as LineItem).id || lineItemId as string\n\t\treturn this.resources.fetch<Notification>({ type: 'notifications' }, `line_items/${_lineItemId}/notifications`, params, options) as unknown as ListResponse<Notification>\n\t}\n\n\tasync events(lineItemId: string | LineItem, params?: QueryParamsList<Event>, options?: ResourcesConfig): Promise<ListResponse<Event>> {\n\t\tconst _lineItemId = (lineItemId as LineItem).id || lineItemId as string\n\t\treturn this.resources.fetch<Event>({ type: 'events' }, `line_items/${_lineItemId}/events`, params, options) as unknown as ListResponse<Event>\n\t}\n\n\tasync tags(lineItemId: string | LineItem, params?: QueryParamsList<Tag>, options?: ResourcesConfig): Promise<ListResponse<Tag>> {\n\t\tconst _lineItemId = (lineItemId as LineItem).id || lineItemId as string\n\t\treturn this.resources.fetch<Tag>({ type: 'tags' }, `line_items/${_lineItemId}/tags`, params, options) as unknown as ListResponse<Tag>\n\t}\n\n\tasync event_stores(lineItemId: string | LineItem, params?: QueryParamsList<EventStore>, options?: ResourcesConfig): Promise<ListResponse<EventStore>> {\n\t\tconst _lineItemId = (lineItemId as LineItem).id || lineItemId as string\n\t\treturn this.resources.fetch<EventStore>({ type: 'event_stores' }, `line_items/${_lineItemId}/event_stores`, params, options) as unknown as ListResponse<EventStore>\n\t}\n\n\tasync _external_price(id: string | LineItem, params?: QueryParamsRetrieve<LineItem>, options?: ResourcesConfig): Promise<LineItem> {\n\t\treturn this.resources.update<LineItemUpdate, LineItem>({ id: (typeof id === 'string')? id: id.id, type: LineItems.TYPE, _external_price: true }, params, options)\n\t}\n\n\tasync _reserve_stock(id: string | LineItem, params?: QueryParamsRetrieve<LineItem>, options?: ResourcesConfig): Promise<LineItem> {\n\t\treturn this.resources.update<LineItemUpdate, LineItem>({ id: (typeof id === 'string')? id: id.id, type: LineItems.TYPE, _reserve_stock: true }, params, options)\n\t}\n\n\tasync _reset_restocked_quantity(id: string | LineItem, params?: QueryParamsRetrieve<LineItem>, options?: ResourcesConfig): Promise<LineItem> {\n\t\treturn this.resources.update<LineItemUpdate, LineItem>({ id: (typeof id === 'string')? id: id.id, type: LineItems.TYPE, _reset_restocked_quantity: true }, params, options)\n\t}\n\n\tasync _reset_circuit(id: string | LineItem, params?: QueryParamsRetrieve<LineItem>, options?: ResourcesConfig): Promise<LineItem> {\n\t\treturn this.resources.update<LineItemUpdate, LineItem>({ id: (typeof id === 'string')? id: id.id, type: LineItems.TYPE, _reset_circuit: true }, params, options)\n\t}\n\n\tasync _add_tags(id: string | LineItem, triggerValue: string, params?: QueryParamsRetrieve<LineItem>, options?: ResourcesConfig): Promise<LineItem> {\n\t\treturn this.resources.update<LineItemUpdate, LineItem>({ id: (typeof id === 'string')? id: id.id, type: LineItems.TYPE, _add_tags: triggerValue }, params, options)\n\t}\n\n\tasync _remove_tags(id: string | LineItem, triggerValue: string, params?: QueryParamsRetrieve<LineItem>, options?: ResourcesConfig): Promise<LineItem> {\n\t\treturn this.resources.update<LineItemUpdate, LineItem>({ id: (typeof id === 'string')? id: id.id, type: LineItems.TYPE, _remove_tags: triggerValue }, params, options)\n\t}\n\n\n\tisLineItem(resource: any): resource is LineItem {\n\t\treturn resource.type && (resource.type === LineItems.TYPE)\n\t}\n\n\n\trelationship(id: string | ResourceId | null): LineItemRel {\n\t\treturn super.relationshipOneToOne<LineItemRel>(id)\n\t}\n\n\trelationshipToMany(...ids: string[]): LineItemRel[] {\n\t\treturn super.relationshipOneToMany<LineItemRel>(...ids)\n\t}\n\n\n\ttype(): LineItemType {\n\t\treturn LineItems.TYPE\n\t}\n\n}\n\n\nconst instance = new LineItems()\nexport default instance\n\nexport type { LineItem, LineItemCreate, LineItems, LineItemType, LineItemUpdate }\n"]}