@commercelayer/sdk 7.8.0 → 7.10.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (1723) hide show
  1. package/lib/api-C56k_eNN.d.cts +18274 -0
  2. package/lib/api-fR7vDjer.d.ts +18274 -0
  3. package/lib/api.cjs +271 -271
  4. package/lib/api.d.cts +2 -2
  5. package/lib/api.d.ts +2 -2
  6. package/lib/api.js +139 -139
  7. package/lib/bundle.cjs +274 -274
  8. package/lib/bundle.cjs.map +1 -1
  9. package/lib/bundle.d.cts +3 -3
  10. package/lib/bundle.d.ts +3 -3
  11. package/lib/bundle.js +140 -140
  12. package/lib/bundle.js.map +1 -1
  13. package/lib/chunk-22RVT2J2.js +20 -0
  14. package/lib/chunk-22RVT2J2.js.map +1 -0
  15. package/lib/chunk-22YZMDGS.js +73 -0
  16. package/lib/chunk-22YZMDGS.js.map +1 -0
  17. package/lib/chunk-24DYX22L.cjs +34 -0
  18. package/lib/chunk-24DYX22L.cjs.map +1 -0
  19. package/lib/chunk-25LV6XNE.js +57 -0
  20. package/lib/chunk-25LV6XNE.js.map +1 -0
  21. package/lib/chunk-25SYMOHP.js +63 -0
  22. package/lib/chunk-25SYMOHP.js.map +1 -0
  23. package/lib/chunk-26IU3VMW.cjs +73 -0
  24. package/lib/chunk-26IU3VMW.cjs.map +1 -0
  25. package/lib/chunk-2COD7SFI.js +24 -0
  26. package/lib/chunk-2COD7SFI.js.map +1 -0
  27. package/lib/chunk-2D7XHAVQ.js +59 -0
  28. package/lib/chunk-2D7XHAVQ.js.map +1 -0
  29. package/lib/chunk-2TD56UNA.js +97 -0
  30. package/lib/chunk-2TD56UNA.js.map +1 -0
  31. package/lib/chunk-2UBHGJAR.cjs +30 -0
  32. package/lib/chunk-2UBHGJAR.cjs.map +1 -0
  33. package/lib/chunk-353DTUT5.js +56 -0
  34. package/lib/chunk-353DTUT5.js.map +1 -0
  35. package/lib/chunk-3AQSJH4T.js +53 -0
  36. package/lib/chunk-3AQSJH4T.js.map +1 -0
  37. package/lib/chunk-3CYUKNAO.js +48 -0
  38. package/lib/chunk-3CYUKNAO.js.map +1 -0
  39. package/lib/chunk-3F4JHN42.cjs +72 -0
  40. package/lib/chunk-3F4JHN42.cjs.map +1 -0
  41. package/lib/chunk-3GOADUES.cjs +63 -0
  42. package/lib/chunk-3GOADUES.cjs.map +1 -0
  43. package/lib/chunk-3KCHHQTI.js +97 -0
  44. package/lib/chunk-3KCHHQTI.js.map +1 -0
  45. package/lib/chunk-3QSWUE22.cjs +43 -0
  46. package/lib/chunk-3QSWUE22.cjs.map +1 -0
  47. package/lib/chunk-3R5E4QEL.cjs +57 -0
  48. package/lib/chunk-3R5E4QEL.cjs.map +1 -0
  49. package/lib/chunk-3XPKZ3WM.js +77 -0
  50. package/lib/chunk-3XPKZ3WM.js.map +1 -0
  51. package/lib/chunk-42TXSEGY.js +53 -0
  52. package/lib/chunk-42TXSEGY.js.map +1 -0
  53. package/lib/chunk-42VXKVD6.js +53 -0
  54. package/lib/chunk-42VXKVD6.js.map +1 -0
  55. package/lib/chunk-4KIM2UAJ.cjs +72 -0
  56. package/lib/chunk-4KIM2UAJ.cjs.map +1 -0
  57. package/lib/chunk-4KPMQG57.js +49 -0
  58. package/lib/chunk-4KPMQG57.js.map +1 -0
  59. package/lib/chunk-4MV6VICV.js +35 -0
  60. package/lib/chunk-4MV6VICV.js.map +1 -0
  61. package/lib/chunk-4QMCNTO4.js +44 -0
  62. package/lib/chunk-4QMCNTO4.js.map +1 -0
  63. package/lib/chunk-4W5EFFJ5.js +48 -0
  64. package/lib/chunk-4W5EFFJ5.js.map +1 -0
  65. package/lib/chunk-4WQKP2HI.js +44 -0
  66. package/lib/chunk-4WQKP2HI.js.map +1 -0
  67. package/lib/chunk-4YEJFKWN.cjs +55 -0
  68. package/lib/chunk-4YEJFKWN.cjs.map +1 -0
  69. package/lib/chunk-4YS4H4WH.cjs +54 -0
  70. package/lib/chunk-4YS4H4WH.cjs.map +1 -0
  71. package/lib/chunk-52L77NN2.js +59 -0
  72. package/lib/chunk-52L77NN2.js.map +1 -0
  73. package/lib/chunk-53R4X7QD.js +49 -0
  74. package/lib/chunk-53R4X7QD.js.map +1 -0
  75. package/lib/chunk-54765SFP.js +55 -0
  76. package/lib/chunk-54765SFP.js.map +1 -0
  77. package/lib/chunk-56DPVYQJ.js +41 -0
  78. package/lib/chunk-56DPVYQJ.js.map +1 -0
  79. package/lib/chunk-57EVDZVF.js +63 -0
  80. package/lib/chunk-57EVDZVF.js.map +1 -0
  81. package/lib/chunk-5CXQ67TT.js +53 -0
  82. package/lib/chunk-5CXQ67TT.js.map +1 -0
  83. package/lib/chunk-5FZ57V3M.cjs +93 -0
  84. package/lib/chunk-5FZ57V3M.cjs.map +1 -0
  85. package/lib/chunk-5NX7MHXP.cjs +51 -0
  86. package/lib/chunk-5NX7MHXP.cjs.map +1 -0
  87. package/lib/chunk-5QA264ZF.cjs +74 -0
  88. package/lib/chunk-5QA264ZF.cjs.map +1 -0
  89. package/lib/chunk-5QFZLLE2.js +37 -0
  90. package/lib/chunk-5QFZLLE2.js.map +1 -0
  91. package/lib/chunk-5T44TAQU.cjs +130 -0
  92. package/lib/chunk-5T44TAQU.cjs.map +1 -0
  93. package/lib/chunk-5UPTFJAY.cjs +51 -0
  94. package/lib/chunk-5UPTFJAY.cjs.map +1 -0
  95. package/lib/chunk-5WLMMRAX.js +93 -0
  96. package/lib/chunk-5WLMMRAX.js.map +1 -0
  97. package/lib/chunk-5Z47LT7L.js +53 -0
  98. package/lib/chunk-5Z47LT7L.js.map +1 -0
  99. package/lib/chunk-5ZWOLVB6.js +128 -0
  100. package/lib/chunk-5ZWOLVB6.js.map +1 -0
  101. package/lib/chunk-65QUR5IL.js +97 -0
  102. package/lib/chunk-65QUR5IL.js.map +1 -0
  103. package/lib/chunk-66BQF7RB.cjs +61 -0
  104. package/lib/chunk-66BQF7RB.cjs.map +1 -0
  105. package/lib/chunk-6ES3UMTH.cjs +286 -0
  106. package/lib/chunk-6ES3UMTH.cjs.map +1 -0
  107. package/lib/chunk-6EY5MW3N.js +53 -0
  108. package/lib/chunk-6EY5MW3N.js.map +1 -0
  109. package/lib/chunk-6GB4YMFB.js +52 -0
  110. package/lib/chunk-6GB4YMFB.js.map +1 -0
  111. package/lib/chunk-6RLGIXTB.cjs +61 -0
  112. package/lib/chunk-6RLGIXTB.cjs.map +1 -0
  113. package/lib/chunk-6YX6BZB6.js +55 -0
  114. package/lib/chunk-6YX6BZB6.js.map +1 -0
  115. package/lib/chunk-73IEITRE.js +44 -0
  116. package/lib/chunk-73IEITRE.js.map +1 -0
  117. package/lib/chunk-73XFO6GL.cjs +51 -0
  118. package/lib/chunk-73XFO6GL.cjs.map +1 -0
  119. package/lib/chunk-76RBIF4U.cjs +79 -0
  120. package/lib/chunk-76RBIF4U.cjs.map +1 -0
  121. package/lib/chunk-7FKCICOI.js +55 -0
  122. package/lib/chunk-7FKCICOI.js.map +1 -0
  123. package/lib/chunk-7N7KBV6L.js +158 -0
  124. package/lib/chunk-7N7KBV6L.js.map +1 -0
  125. package/lib/chunk-7RZTCBDR.cjs +22 -0
  126. package/lib/chunk-7RZTCBDR.cjs.map +1 -0
  127. package/lib/chunk-7UCAVCXA.cjs +99 -0
  128. package/lib/chunk-7UCAVCXA.cjs.map +1 -0
  129. package/lib/chunk-7XIPWO7I.cjs +61 -0
  130. package/lib/chunk-7XIPWO7I.cjs.map +1 -0
  131. package/lib/chunk-A7PIWL4I.js +58 -0
  132. package/lib/chunk-A7PIWL4I.js.map +1 -0
  133. package/lib/chunk-AGJQ5BMW.cjs +107 -0
  134. package/lib/chunk-AGJQ5BMW.cjs.map +1 -0
  135. package/lib/chunk-AHJQVBKB.cjs +160 -0
  136. package/lib/chunk-AHJQVBKB.cjs.map +1 -0
  137. package/lib/chunk-AJ5YOH5P.cjs +30 -0
  138. package/lib/chunk-AJ5YOH5P.cjs.map +1 -0
  139. package/lib/chunk-AQHMSOPU.js +45 -0
  140. package/lib/chunk-AQHMSOPU.js.map +1 -0
  141. package/lib/chunk-ASRC3G5N.cjs +42 -0
  142. package/lib/chunk-ASRC3G5N.cjs.map +1 -0
  143. package/lib/chunk-B3IWIR5W.cjs +46 -0
  144. package/lib/chunk-B3IWIR5W.cjs.map +1 -0
  145. package/lib/chunk-B4ASY4NL.js +45 -0
  146. package/lib/chunk-B4ASY4NL.js.map +1 -0
  147. package/lib/chunk-B6IY37XK.js +70 -0
  148. package/lib/chunk-B6IY37XK.js.map +1 -0
  149. package/lib/chunk-B6RRN2R4.cjs +51 -0
  150. package/lib/chunk-B6RRN2R4.cjs.map +1 -0
  151. package/lib/chunk-BBNWP52Z.cjs +44 -0
  152. package/lib/chunk-BBNWP52Z.cjs.map +1 -0
  153. package/lib/chunk-BCFDI5BB.cjs +51 -0
  154. package/lib/chunk-BCFDI5BB.cjs.map +1 -0
  155. package/lib/chunk-BE7FUFTL.js +53 -0
  156. package/lib/chunk-BE7FUFTL.js.map +1 -0
  157. package/lib/chunk-BGS3XVZ5.js +107 -0
  158. package/lib/chunk-BGS3XVZ5.js.map +1 -0
  159. package/lib/chunk-BLZ627KE.js +59 -0
  160. package/lib/chunk-BLZ627KE.js.map +1 -0
  161. package/lib/chunk-BOFLUBPB.js +55 -0
  162. package/lib/chunk-BOFLUBPB.js.map +1 -0
  163. package/lib/chunk-BUCTRSWS.js +45 -0
  164. package/lib/chunk-BUCTRSWS.js.map +1 -0
  165. package/lib/chunk-BUKCNQRD.cjs +43 -0
  166. package/lib/chunk-BUKCNQRD.cjs.map +1 -0
  167. package/lib/chunk-C2JKMWGR.cjs +51 -0
  168. package/lib/chunk-C2JKMWGR.cjs.map +1 -0
  169. package/lib/chunk-C5ML5FMX.cjs +53 -0
  170. package/lib/chunk-C5ML5FMX.cjs.map +1 -0
  171. package/lib/chunk-C77T7SV5.js +49 -0
  172. package/lib/chunk-C77T7SV5.js.map +1 -0
  173. package/lib/chunk-CAR7HCIH.cjs +50 -0
  174. package/lib/chunk-CAR7HCIH.cjs.map +1 -0
  175. package/lib/chunk-CD4WJZWD.js +49 -0
  176. package/lib/chunk-CD4WJZWD.js.map +1 -0
  177. package/lib/chunk-CHJOIVWT.cjs +51 -0
  178. package/lib/chunk-CHJOIVWT.cjs.map +1 -0
  179. package/lib/chunk-CIEVYLNA.cjs +57 -0
  180. package/lib/chunk-CIEVYLNA.cjs.map +1 -0
  181. package/lib/chunk-CRRVMIDJ.js +32 -0
  182. package/lib/chunk-CRRVMIDJ.js.map +1 -0
  183. package/lib/chunk-CSRXWHGF.cjs +662 -0
  184. package/lib/chunk-CSRXWHGF.cjs.map +1 -0
  185. package/lib/chunk-CXDNL2TL.cjs +57 -0
  186. package/lib/chunk-CXDNL2TL.cjs.map +1 -0
  187. package/lib/chunk-CZVJWKHF.cjs +51 -0
  188. package/lib/chunk-CZVJWKHF.cjs.map +1 -0
  189. package/lib/chunk-D5KCXRAI.js +57 -0
  190. package/lib/chunk-D5KCXRAI.js.map +1 -0
  191. package/lib/chunk-DGYQ3LEP.cjs +34 -0
  192. package/lib/chunk-DGYQ3LEP.cjs.map +1 -0
  193. package/lib/chunk-DHT6PN4S.js +72 -0
  194. package/lib/chunk-DHT6PN4S.js.map +1 -0
  195. package/lib/chunk-DKKVAVBN.cjs +99 -0
  196. package/lib/chunk-DKKVAVBN.cjs.map +1 -0
  197. package/lib/chunk-DKUONF23.cjs +56 -0
  198. package/lib/chunk-DKUONF23.cjs.map +1 -0
  199. package/lib/chunk-DZ6EOOOY.js +41 -0
  200. package/lib/chunk-DZ6EOOOY.js.map +1 -0
  201. package/lib/chunk-E2GOZ7ZV.js +55 -0
  202. package/lib/chunk-E2GOZ7ZV.js.map +1 -0
  203. package/lib/chunk-E4RUQPMF.js +40 -0
  204. package/lib/chunk-E4RUQPMF.js.map +1 -0
  205. package/lib/chunk-ED72HDOR.js +31 -0
  206. package/lib/chunk-ED72HDOR.js.map +1 -0
  207. package/lib/chunk-EGM5WCK7.js +40 -0
  208. package/lib/chunk-EGM5WCK7.js.map +1 -0
  209. package/lib/chunk-EN3E3X22.cjs +46 -0
  210. package/lib/chunk-EN3E3X22.cjs.map +1 -0
  211. package/lib/chunk-EOSTJ3GG.cjs +50 -0
  212. package/lib/chunk-EOSTJ3GG.cjs.map +1 -0
  213. package/lib/chunk-ESUFQPT7.cjs +71 -0
  214. package/lib/chunk-ESUFQPT7.cjs.map +1 -0
  215. package/lib/chunk-ESW2GV47.js +100 -0
  216. package/lib/chunk-ESW2GV47.js.map +1 -0
  217. package/lib/chunk-EV7JAD4X.js +91 -0
  218. package/lib/chunk-EV7JAD4X.js.map +1 -0
  219. package/lib/chunk-EY3D7ONH.cjs +109 -0
  220. package/lib/chunk-EY3D7ONH.cjs.map +1 -0
  221. package/lib/chunk-EZQHOZI2.js +49 -0
  222. package/lib/chunk-EZQHOZI2.js.map +1 -0
  223. package/lib/chunk-F3P63HYI.cjs +65 -0
  224. package/lib/chunk-F3P63HYI.cjs.map +1 -0
  225. package/lib/chunk-F6J4CRBZ.cjs +38 -0
  226. package/lib/chunk-F6J4CRBZ.cjs.map +1 -0
  227. package/lib/chunk-FBGHKFDZ.js +68 -0
  228. package/lib/chunk-FBGHKFDZ.js.map +1 -0
  229. package/lib/chunk-FEKNIG3W.js +99 -0
  230. package/lib/chunk-FEKNIG3W.js.map +1 -0
  231. package/lib/chunk-FKAKFPAS.js +61 -0
  232. package/lib/chunk-FKAKFPAS.js.map +1 -0
  233. package/lib/chunk-FSXKG62A.js +100 -0
  234. package/lib/chunk-FSXKG62A.js.map +1 -0
  235. package/lib/chunk-FT2UGQVD.js +54 -0
  236. package/lib/chunk-FT2UGQVD.js.map +1 -0
  237. package/lib/chunk-FUYP7J3H.js +53 -0
  238. package/lib/chunk-FUYP7J3H.js.map +1 -0
  239. package/lib/chunk-FYI5M2XM.cjs +57 -0
  240. package/lib/chunk-FYI5M2XM.cjs.map +1 -0
  241. package/lib/chunk-FYKH5NLF.cjs +50 -0
  242. package/lib/chunk-FYKH5NLF.cjs.map +1 -0
  243. package/lib/chunk-G2XGWVV4.cjs +81 -0
  244. package/lib/chunk-G2XGWVV4.cjs.map +1 -0
  245. package/lib/chunk-GNLY3HQ4.js +105 -0
  246. package/lib/chunk-GNLY3HQ4.js.map +1 -0
  247. package/lib/chunk-GRKXRJZE.js +65 -0
  248. package/lib/chunk-GRKXRJZE.js.map +1 -0
  249. package/lib/chunk-GSHDLOHZ.js +97 -0
  250. package/lib/chunk-GSHDLOHZ.js.map +1 -0
  251. package/lib/chunk-GSTAUOVL.js +57 -0
  252. package/lib/chunk-GSTAUOVL.js.map +1 -0
  253. package/lib/chunk-H3IBVZVF.js +28 -0
  254. package/lib/chunk-H3IBVZVF.js.map +1 -0
  255. package/lib/chunk-H4MPRTXI.js +37 -0
  256. package/lib/chunk-H4MPRTXI.js.map +1 -0
  257. package/lib/chunk-H5JOZYXN.cjs +51 -0
  258. package/lib/chunk-H5JOZYXN.cjs.map +1 -0
  259. package/lib/chunk-H7ZINK52.cjs +93 -0
  260. package/lib/chunk-H7ZINK52.cjs.map +1 -0
  261. package/lib/chunk-HFAQPY4K.cjs +42 -0
  262. package/lib/chunk-HFAQPY4K.cjs.map +1 -0
  263. package/lib/chunk-HLL6WIIC.js +91 -0
  264. package/lib/chunk-HLL6WIIC.js.map +1 -0
  265. package/lib/chunk-HLPUCTAZ.js +103 -0
  266. package/lib/chunk-HLPUCTAZ.js.map +1 -0
  267. package/lib/chunk-HNADBQ2G.cjs +55 -0
  268. package/lib/chunk-HNADBQ2G.cjs.map +1 -0
  269. package/lib/chunk-HOKEKQDI.js +49 -0
  270. package/lib/chunk-HOKEKQDI.js.map +1 -0
  271. package/lib/chunk-HP2WA7CM.cjs +59 -0
  272. package/lib/chunk-HP2WA7CM.cjs.map +1 -0
  273. package/lib/chunk-HQZ3S65M.js +44 -0
  274. package/lib/chunk-HQZ3S65M.js.map +1 -0
  275. package/lib/chunk-HR6ZQP3L.cjs +66 -0
  276. package/lib/chunk-HR6ZQP3L.cjs.map +1 -0
  277. package/lib/chunk-HR773LV5.cjs +54 -0
  278. package/lib/chunk-HR773LV5.cjs.map +1 -0
  279. package/lib/chunk-HTQJYP75.cjs +46 -0
  280. package/lib/chunk-HTQJYP75.cjs.map +1 -0
  281. package/lib/chunk-HWEIUKPN.cjs +57 -0
  282. package/lib/chunk-HWEIUKPN.cjs.map +1 -0
  283. package/lib/chunk-HWL3MJQJ.cjs +60 -0
  284. package/lib/chunk-HWL3MJQJ.cjs.map +1 -0
  285. package/lib/chunk-HZB22SU2.cjs +51 -0
  286. package/lib/chunk-HZB22SU2.cjs.map +1 -0
  287. package/lib/chunk-I22GQQSK.js +97 -0
  288. package/lib/chunk-I22GQQSK.js.map +1 -0
  289. package/lib/chunk-IESEQGGO.js +65 -0
  290. package/lib/chunk-IESEQGGO.js.map +1 -0
  291. package/lib/chunk-IFLQJWJG.cjs +55 -0
  292. package/lib/chunk-IFLQJWJG.cjs.map +1 -0
  293. package/lib/chunk-IGK3AET6.cjs +47 -0
  294. package/lib/chunk-IGK3AET6.cjs.map +1 -0
  295. package/lib/chunk-IJT6ADCT.cjs +70 -0
  296. package/lib/chunk-IJT6ADCT.cjs.map +1 -0
  297. package/lib/chunk-IKCYKGYL.js +151 -0
  298. package/lib/chunk-IKCYKGYL.js.map +1 -0
  299. package/lib/chunk-IMZ67YBL.cjs +55 -0
  300. package/lib/chunk-IMZ67YBL.cjs.map +1 -0
  301. package/lib/chunk-IR7ERHZU.js +57 -0
  302. package/lib/chunk-IR7ERHZU.js.map +1 -0
  303. package/lib/chunk-IWQQN4E4.js +47 -0
  304. package/lib/chunk-IWQQN4E4.js.map +1 -0
  305. package/lib/chunk-J3K32YXQ.js +49 -0
  306. package/lib/chunk-J3K32YXQ.js.map +1 -0
  307. package/lib/chunk-J5QKU3U7.cjs +54 -0
  308. package/lib/chunk-J5QKU3U7.cjs.map +1 -0
  309. package/lib/chunk-JAL5VEJ4.cjs +51 -0
  310. package/lib/chunk-JAL5VEJ4.cjs.map +1 -0
  311. package/lib/chunk-JBNN5FLR.cjs +99 -0
  312. package/lib/chunk-JBNN5FLR.cjs.map +1 -0
  313. package/lib/chunk-JEFXEO7O.js +49 -0
  314. package/lib/chunk-JEFXEO7O.js.map +1 -0
  315. package/lib/chunk-JIAAPIJS.js +69 -0
  316. package/lib/chunk-JIAAPIJS.js.map +1 -0
  317. package/lib/chunk-JNDUIJGS.js +32 -0
  318. package/lib/chunk-JNDUIJGS.js.map +1 -0
  319. package/lib/chunk-JTECSGQK.cjs +95 -0
  320. package/lib/chunk-JTECSGQK.cjs.map +1 -0
  321. package/lib/chunk-JU2GYUKV.js +54 -0
  322. package/lib/chunk-JU2GYUKV.js.map +1 -0
  323. package/lib/chunk-JW3TKFSF.cjs +99 -0
  324. package/lib/chunk-JW3TKFSF.cjs.map +1 -0
  325. package/lib/chunk-JWW6RX2L.cjs +47 -0
  326. package/lib/chunk-JWW6RX2L.cjs.map +1 -0
  327. package/lib/chunk-JZ5VDGTD.cjs +29 -0
  328. package/lib/chunk-JZ5VDGTD.cjs.map +1 -0
  329. package/lib/chunk-K277GYCD.cjs +40 -0
  330. package/lib/chunk-K277GYCD.cjs.map +1 -0
  331. package/lib/chunk-K4FGKWEQ.js +36 -0
  332. package/lib/chunk-K4FGKWEQ.js.map +1 -0
  333. package/lib/chunk-KAARRP5O.js +59 -0
  334. package/lib/chunk-KAARRP5O.js.map +1 -0
  335. package/lib/chunk-KDCQAUUV.js +48 -0
  336. package/lib/chunk-KDCQAUUV.js.map +1 -0
  337. package/lib/chunk-KMPHWFCV.cjs +47 -0
  338. package/lib/chunk-KMPHWFCV.cjs.map +1 -0
  339. package/lib/chunk-KRNU2FZC.js +53 -0
  340. package/lib/chunk-KRNU2FZC.js.map +1 -0
  341. package/lib/chunk-KUX4X636.js +49 -0
  342. package/lib/chunk-KUX4X636.js.map +1 -0
  343. package/lib/chunk-KWIFQC7H.js +52 -0
  344. package/lib/chunk-KWIFQC7H.js.map +1 -0
  345. package/lib/chunk-KZNM2CKM.cjs +59 -0
  346. package/lib/chunk-KZNM2CKM.cjs.map +1 -0
  347. package/lib/chunk-L27E3EGQ.js +49 -0
  348. package/lib/chunk-L27E3EGQ.js.map +1 -0
  349. package/lib/chunk-L2R5G3V5.js +276 -0
  350. package/lib/chunk-L2R5G3V5.js.map +1 -0
  351. package/lib/chunk-L6OLNB6W.js +41 -0
  352. package/lib/chunk-L6OLNB6W.js.map +1 -0
  353. package/lib/chunk-L7VZ5ST5.cjs +60 -0
  354. package/lib/chunk-L7VZ5ST5.cjs.map +1 -0
  355. package/lib/chunk-LBY2RHI4.js +45 -0
  356. package/lib/chunk-LBY2RHI4.js.map +1 -0
  357. package/lib/chunk-LGYK5DTL.cjs +50 -0
  358. package/lib/chunk-LGYK5DTL.cjs.map +1 -0
  359. package/lib/chunk-LLRE4DNW.cjs +55 -0
  360. package/lib/chunk-LLRE4DNW.cjs.map +1 -0
  361. package/lib/chunk-LQ5GKVLT.cjs +163 -0
  362. package/lib/chunk-LQ5GKVLT.cjs.map +1 -0
  363. package/lib/chunk-MAU4GMOM.js +52 -0
  364. package/lib/chunk-MAU4GMOM.js.map +1 -0
  365. package/lib/chunk-MBDEK4FD.cjs +51 -0
  366. package/lib/chunk-MBDEK4FD.cjs.map +1 -0
  367. package/lib/chunk-MDT7RJZY.cjs +39 -0
  368. package/lib/chunk-MDT7RJZY.cjs.map +1 -0
  369. package/lib/chunk-MF72Q5LL.cjs +39 -0
  370. package/lib/chunk-MF72Q5LL.cjs.map +1 -0
  371. package/lib/chunk-MGIOWUKO.cjs +38 -0
  372. package/lib/chunk-MGIOWUKO.cjs.map +1 -0
  373. package/lib/chunk-MIBC5G27.js +77 -0
  374. package/lib/chunk-MIBC5G27.js.map +1 -0
  375. package/lib/chunk-MU6PHJWP.js +48 -0
  376. package/lib/chunk-MU6PHJWP.js.map +1 -0
  377. package/lib/chunk-MVNE63MT.cjs +67 -0
  378. package/lib/chunk-MVNE63MT.cjs.map +1 -0
  379. package/lib/chunk-MWDZBQOU.cjs +47 -0
  380. package/lib/chunk-MWDZBQOU.cjs.map +1 -0
  381. package/lib/chunk-NKPMXNFW.js +49 -0
  382. package/lib/chunk-NKPMXNFW.js.map +1 -0
  383. package/lib/chunk-NKSXB523.js +42 -0
  384. package/lib/chunk-NKSXB523.js.map +1 -0
  385. package/lib/chunk-NL65GQHX.cjs +39 -0
  386. package/lib/chunk-NL65GQHX.cjs.map +1 -0
  387. package/lib/chunk-NM2TVMKS.cjs +43 -0
  388. package/lib/chunk-NM2TVMKS.cjs.map +1 -0
  389. package/lib/chunk-NUQ5KNXC.cjs +63 -0
  390. package/lib/chunk-NUQ5KNXC.cjs.map +1 -0
  391. package/lib/chunk-OQ3ZPPCE.js +55 -0
  392. package/lib/chunk-OQ3ZPPCE.js.map +1 -0
  393. package/lib/chunk-OR5ULL43.js +55 -0
  394. package/lib/chunk-OR5ULL43.js.map +1 -0
  395. package/lib/chunk-OSGNFURJ.js +63 -0
  396. package/lib/chunk-OSGNFURJ.js.map +1 -0
  397. package/lib/chunk-OSPDLBK7.cjs +57 -0
  398. package/lib/chunk-OSPDLBK7.cjs.map +1 -0
  399. package/lib/chunk-OTJ3AG3G.js +45 -0
  400. package/lib/chunk-OTJ3AG3G.js.map +1 -0
  401. package/lib/chunk-OUZO3UT3.cjs +65 -0
  402. package/lib/chunk-OUZO3UT3.cjs.map +1 -0
  403. package/lib/chunk-OXMHLYDD.js +49 -0
  404. package/lib/chunk-OXMHLYDD.js.map +1 -0
  405. package/lib/chunk-P2B3G2TZ.js +44 -0
  406. package/lib/chunk-P2B3G2TZ.js.map +1 -0
  407. package/lib/chunk-P3AQZNTG.js +79 -0
  408. package/lib/chunk-P3AQZNTG.js.map +1 -0
  409. package/lib/chunk-P3C4DMT6.cjs +57 -0
  410. package/lib/chunk-P3C4DMT6.cjs.map +1 -0
  411. package/lib/chunk-P6H53BD7.cjs +102 -0
  412. package/lib/chunk-P6H53BD7.cjs.map +1 -0
  413. package/lib/chunk-PAWJTO7I.js +49 -0
  414. package/lib/chunk-PAWJTO7I.js.map +1 -0
  415. package/lib/chunk-PD4I73FB.cjs +105 -0
  416. package/lib/chunk-PD4I73FB.cjs.map +1 -0
  417. package/lib/chunk-PGXMLN7A.js +49 -0
  418. package/lib/chunk-PGXMLN7A.js.map +1 -0
  419. package/lib/chunk-PIHQS6OG.js +153 -0
  420. package/lib/chunk-PIHQS6OG.js.map +1 -0
  421. package/lib/chunk-PUX7CAAV.js +53 -0
  422. package/lib/chunk-PUX7CAAV.js.map +1 -0
  423. package/lib/chunk-QE7S4OUZ.cjs +51 -0
  424. package/lib/chunk-QE7S4OUZ.cjs.map +1 -0
  425. package/lib/chunk-QKCTP2RD.cjs +55 -0
  426. package/lib/chunk-QKCTP2RD.cjs.map +1 -0
  427. package/lib/chunk-QNFZBJFQ.cjs +58 -0
  428. package/lib/chunk-QNFZBJFQ.cjs.map +1 -0
  429. package/lib/chunk-QU4NPZQC.cjs +56 -0
  430. package/lib/chunk-QU4NPZQC.cjs.map +1 -0
  431. package/lib/chunk-QVJTWTUN.cjs +54 -0
  432. package/lib/chunk-QVJTWTUN.cjs.map +1 -0
  433. package/lib/chunk-R3PNGGDR.cjs +55 -0
  434. package/lib/chunk-R3PNGGDR.cjs.map +1 -0
  435. package/lib/chunk-R7JDWIQK.cjs +107 -0
  436. package/lib/chunk-R7JDWIQK.cjs.map +1 -0
  437. package/lib/chunk-R7PR3V6Z.cjs +51 -0
  438. package/lib/chunk-R7PR3V6Z.cjs.map +1 -0
  439. package/lib/chunk-RH363QI7.cjs +99 -0
  440. package/lib/chunk-RH363QI7.cjs.map +1 -0
  441. package/lib/chunk-RLZGD4WS.cjs +57 -0
  442. package/lib/chunk-RLZGD4WS.cjs.map +1 -0
  443. package/lib/chunk-RNCWBCHU.js +55 -0
  444. package/lib/chunk-RNCWBCHU.js.map +1 -0
  445. package/lib/chunk-SEY2W62A.js +53 -0
  446. package/lib/chunk-SEY2W62A.js.map +1 -0
  447. package/lib/chunk-SGJTWE5I.js +40 -0
  448. package/lib/chunk-SGJTWE5I.js.map +1 -0
  449. package/lib/chunk-SK7SIING.cjs +42 -0
  450. package/lib/chunk-SK7SIING.cjs.map +1 -0
  451. package/lib/chunk-SNHW3YC5.cjs +55 -0
  452. package/lib/chunk-SNHW3YC5.cjs.map +1 -0
  453. package/lib/chunk-SWZUFDHY.js +102 -0
  454. package/lib/chunk-SWZUFDHY.js.map +1 -0
  455. package/lib/chunk-SXCTTGYT.cjs +50 -0
  456. package/lib/chunk-SXCTTGYT.cjs.map +1 -0
  457. package/lib/chunk-SXQSMTHR.js +58 -0
  458. package/lib/chunk-SXQSMTHR.js.map +1 -0
  459. package/lib/chunk-SZYWVDPJ.cjs +42 -0
  460. package/lib/chunk-SZYWVDPJ.cjs.map +1 -0
  461. package/lib/chunk-T4SW2CZX.cjs +67 -0
  462. package/lib/chunk-T4SW2CZX.cjs.map +1 -0
  463. package/lib/chunk-TE54DOJ6.cjs +75 -0
  464. package/lib/chunk-TE54DOJ6.cjs.map +1 -0
  465. package/lib/chunk-TJGZYDVV.js +58 -0
  466. package/lib/chunk-TJGZYDVV.js.map +1 -0
  467. package/lib/chunk-TPFXLI3J.js +27 -0
  468. package/lib/chunk-TPFXLI3J.js.map +1 -0
  469. package/lib/chunk-U43UPLTK.cjs +42 -0
  470. package/lib/chunk-U43UPLTK.cjs.map +1 -0
  471. package/lib/chunk-U5ZUHRP7.cjs +65 -0
  472. package/lib/chunk-U5ZUHRP7.cjs.map +1 -0
  473. package/lib/chunk-U7NVUYAO.js +71 -0
  474. package/lib/chunk-U7NVUYAO.js.map +1 -0
  475. package/lib/chunk-UBH2EC5P.cjs +284 -0
  476. package/lib/chunk-UBH2EC5P.cjs.map +1 -0
  477. package/lib/chunk-UMIZNUUK.js +45 -0
  478. package/lib/chunk-UMIZNUUK.js.map +1 -0
  479. package/lib/chunk-UQQTNQX3.cjs +153 -0
  480. package/lib/chunk-UQQTNQX3.cjs.map +1 -0
  481. package/lib/chunk-UR35VE5O.js +53 -0
  482. package/lib/chunk-UR35VE5O.js.map +1 -0
  483. package/lib/chunk-UTJX7SU6.cjs +55 -0
  484. package/lib/chunk-UTJX7SU6.cjs.map +1 -0
  485. package/lib/chunk-V2JFGTP4.cjs +33 -0
  486. package/lib/chunk-V2JFGTP4.cjs.map +1 -0
  487. package/lib/chunk-V3VI5SLU.cjs +58 -0
  488. package/lib/chunk-V3VI5SLU.cjs.map +1 -0
  489. package/lib/chunk-V57VEB52.cjs +51 -0
  490. package/lib/chunk-V57VEB52.cjs.map +1 -0
  491. package/lib/chunk-VCJOH3IE.js +63 -0
  492. package/lib/chunk-VCJOH3IE.js.map +1 -0
  493. package/lib/chunk-VROIQJ2H.js +48 -0
  494. package/lib/chunk-VROIQJ2H.js.map +1 -0
  495. package/lib/chunk-W5HJOZUZ.js +55 -0
  496. package/lib/chunk-W5HJOZUZ.js.map +1 -0
  497. package/lib/chunk-W6D7ACVK.cjs +26 -0
  498. package/lib/chunk-W6D7ACVK.cjs.map +1 -0
  499. package/lib/chunk-W76GDFLA.cjs +49 -0
  500. package/lib/chunk-W76GDFLA.cjs.map +1 -0
  501. package/lib/chunk-W7A5TBOT.js +37 -0
  502. package/lib/chunk-W7A5TBOT.js.map +1 -0
  503. package/lib/chunk-W7QZ4IET.js +55 -0
  504. package/lib/chunk-W7QZ4IET.js.map +1 -0
  505. package/lib/chunk-WAXSMT74.js +49 -0
  506. package/lib/chunk-WAXSMT74.js.map +1 -0
  507. package/lib/chunk-WENVZ7YQ.cjs +60 -0
  508. package/lib/chunk-WENVZ7YQ.cjs.map +1 -0
  509. package/lib/chunk-WN4NEQG3.cjs +47 -0
  510. package/lib/chunk-WN4NEQG3.cjs.map +1 -0
  511. package/lib/chunk-WPMZGCSL.js +49 -0
  512. package/lib/chunk-WPMZGCSL.js.map +1 -0
  513. package/lib/chunk-WVXUXB6M.cjs +51 -0
  514. package/lib/chunk-WVXUXB6M.cjs.map +1 -0
  515. package/lib/chunk-WYSCB65K.cjs +65 -0
  516. package/lib/chunk-WYSCB65K.cjs.map +1 -0
  517. package/lib/chunk-WZKB5BTI.cjs +57 -0
  518. package/lib/chunk-WZKB5BTI.cjs.map +1 -0
  519. package/lib/chunk-X3FOQEIP.cjs +57 -0
  520. package/lib/chunk-X3FOQEIP.cjs.map +1 -0
  521. package/lib/chunk-X435FPBT.js +70 -0
  522. package/lib/chunk-X435FPBT.js.map +1 -0
  523. package/lib/chunk-XAHCI5JE.js +284 -0
  524. package/lib/chunk-XAHCI5JE.js.map +1 -0
  525. package/lib/chunk-XAWZYCIT.cjs +51 -0
  526. package/lib/chunk-XAWZYCIT.cjs.map +1 -0
  527. package/lib/chunk-XFOVGIFM.cjs +59 -0
  528. package/lib/chunk-XFOVGIFM.cjs.map +1 -0
  529. package/lib/chunk-XGQYAM2O.cjs +102 -0
  530. package/lib/chunk-XGQYAM2O.cjs.map +1 -0
  531. package/lib/chunk-XHRLLOTH.cjs +46 -0
  532. package/lib/chunk-XHRLLOTH.cjs.map +1 -0
  533. package/lib/chunk-XLHGFYJD.js +40 -0
  534. package/lib/chunk-XLHGFYJD.js.map +1 -0
  535. package/lib/chunk-XLSIK3Q5.js +40 -0
  536. package/lib/chunk-XLSIK3Q5.js.map +1 -0
  537. package/lib/chunk-XMOZVHO7.js +56 -0
  538. package/lib/chunk-XMOZVHO7.js.map +1 -0
  539. package/lib/chunk-YDYPUEOW.js +52 -0
  540. package/lib/chunk-YDYPUEOW.js.map +1 -0
  541. package/lib/chunk-YF5IJQZK.cjs +55 -0
  542. package/lib/chunk-YF5IJQZK.cjs.map +1 -0
  543. package/lib/chunk-YI3IDZIR.js +646 -0
  544. package/lib/chunk-YI3IDZIR.js.map +1 -0
  545. package/lib/chunk-YNFTOIKI.cjs +47 -0
  546. package/lib/chunk-YNFTOIKI.cjs.map +1 -0
  547. package/lib/chunk-YOAULZCB.js +28 -0
  548. package/lib/chunk-YOAULZCB.js.map +1 -0
  549. package/lib/chunk-YOH56Z73.js +64 -0
  550. package/lib/chunk-YOH56Z73.js.map +1 -0
  551. package/lib/chunk-YYFNNQAF.js +49 -0
  552. package/lib/chunk-YYFNNQAF.js.map +1 -0
  553. package/lib/chunk-Z7FWE3KQ.cjs +55 -0
  554. package/lib/chunk-Z7FWE3KQ.cjs.map +1 -0
  555. package/lib/chunk-ZA4UM7JC.js +36 -0
  556. package/lib/chunk-ZA4UM7JC.js.map +1 -0
  557. package/lib/chunk-ZBKA7LEU.js +51 -0
  558. package/lib/chunk-ZBKA7LEU.js.map +1 -0
  559. package/lib/chunk-ZDO4C624.cjs +79 -0
  560. package/lib/chunk-ZDO4C624.cjs.map +1 -0
  561. package/lib/chunk-ZDPMTK4O.js +49 -0
  562. package/lib/chunk-ZDPMTK4O.js.map +1 -0
  563. package/lib/chunk-ZKTVCW5B.cjs +51 -0
  564. package/lib/chunk-ZKTVCW5B.cjs.map +1 -0
  565. package/lib/chunk-ZKZLRD43.cjs +46 -0
  566. package/lib/chunk-ZKZLRD43.cjs.map +1 -0
  567. package/lib/chunk-ZNRKFQBN.cjs +59 -0
  568. package/lib/chunk-ZNRKFQBN.cjs.map +1 -0
  569. package/lib/chunk-ZU3CNZKE.cjs +51 -0
  570. package/lib/chunk-ZU3CNZKE.cjs.map +1 -0
  571. package/lib/chunk-ZUURLADK.cjs +55 -0
  572. package/lib/chunk-ZUURLADK.cjs.map +1 -0
  573. package/lib/chunk-ZWTMB75R.js +49 -0
  574. package/lib/chunk-ZWTMB75R.js.map +1 -0
  575. package/lib/chunk-ZYU4XA7Z.cjs +101 -0
  576. package/lib/chunk-ZYU4XA7Z.cjs.map +1 -0
  577. package/lib/client.cjs +5 -5
  578. package/lib/client.d.cts +1 -1
  579. package/lib/client.d.ts +1 -1
  580. package/lib/client.js +4 -4
  581. package/lib/commercelayer.cjs +12 -12
  582. package/lib/commercelayer.d.cts +5 -5
  583. package/lib/commercelayer.d.ts +5 -5
  584. package/lib/commercelayer.js +8 -8
  585. package/lib/config.d.cts +1 -1
  586. package/lib/config.d.ts +1 -1
  587. package/lib/debug.cjs +2 -2
  588. package/lib/debug.js +1 -1
  589. package/lib/enum.cjs +16 -16
  590. package/lib/enum.d.cts +2 -2
  591. package/lib/enum.d.ts +2 -2
  592. package/lib/enum.js +1 -1
  593. package/lib/error.cjs +9 -9
  594. package/lib/error.js +2 -2
  595. package/lib/fetch-B8-kP4X0.d.cts +55 -0
  596. package/lib/fetch-B8-kP4X0.d.ts +55 -0
  597. package/lib/fetch.cjs +4 -4
  598. package/lib/fetch.d.cts +1 -1
  599. package/lib/fetch.d.ts +1 -1
  600. package/lib/fetch.js +2 -2
  601. package/lib/index.cjs +276 -276
  602. package/lib/index.d.cts +2 -2
  603. package/lib/index.d.ts +2 -2
  604. package/lib/index.js +141 -141
  605. package/lib/interceptor.d.cts +1 -1
  606. package/lib/interceptor.d.ts +1 -1
  607. package/lib/jsonapi.cjs +9 -9
  608. package/lib/jsonapi.d.cts +2 -2
  609. package/lib/jsonapi.d.ts +2 -2
  610. package/lib/jsonapi.js +7 -7
  611. package/lib/model.d.cts +2 -2
  612. package/lib/model.d.ts +2 -2
  613. package/lib/query.cjs +6 -6
  614. package/lib/query.d.cts +2 -2
  615. package/lib/query.d.ts +2 -2
  616. package/lib/query.js +3 -3
  617. package/lib/resource.cjs +12 -12
  618. package/lib/resource.d.cts +2 -2
  619. package/lib/resource.d.ts +2 -2
  620. package/lib/resource.js +7 -7
  621. package/lib/resources/addresses.cjs +9 -9
  622. package/lib/resources/addresses.d.cts +3 -3
  623. package/lib/resources/addresses.d.ts +2 -2
  624. package/lib/resources/addresses.js +8 -8
  625. package/lib/resources/adjustments.cjs +9 -9
  626. package/lib/resources/adjustments.d.cts +3 -3
  627. package/lib/resources/adjustments.d.ts +2 -2
  628. package/lib/resources/adjustments.js +8 -8
  629. package/lib/resources/adyen_gateways.cjs +9 -9
  630. package/lib/resources/adyen_gateways.d.cts +3 -3
  631. package/lib/resources/adyen_gateways.d.ts +2 -2
  632. package/lib/resources/adyen_gateways.js +8 -8
  633. package/lib/resources/adyen_payments.cjs +9 -9
  634. package/lib/resources/adyen_payments.d.cts +3 -3
  635. package/lib/resources/adyen_payments.d.ts +2 -2
  636. package/lib/resources/adyen_payments.js +8 -8
  637. package/lib/resources/applications.cjs +9 -9
  638. package/lib/resources/applications.d.cts +3 -3
  639. package/lib/resources/applications.d.ts +2 -2
  640. package/lib/resources/applications.js +8 -8
  641. package/lib/resources/attachments.cjs +9 -9
  642. package/lib/resources/attachments.d.cts +3 -3
  643. package/lib/resources/attachments.d.ts +2 -2
  644. package/lib/resources/attachments.js +8 -8
  645. package/lib/resources/authorizations.cjs +9 -9
  646. package/lib/resources/authorizations.d.cts +3 -3
  647. package/lib/resources/authorizations.d.ts +2 -2
  648. package/lib/resources/authorizations.js +8 -8
  649. package/lib/resources/avalara_accounts.cjs +9 -9
  650. package/lib/resources/avalara_accounts.d.cts +3 -3
  651. package/lib/resources/avalara_accounts.d.ts +2 -2
  652. package/lib/resources/avalara_accounts.js +8 -8
  653. package/lib/resources/axerve_gateways.cjs +9 -9
  654. package/lib/resources/axerve_gateways.d.cts +3 -3
  655. package/lib/resources/axerve_gateways.d.ts +2 -2
  656. package/lib/resources/axerve_gateways.js +8 -8
  657. package/lib/resources/axerve_payments.cjs +9 -9
  658. package/lib/resources/axerve_payments.d.cts +3 -3
  659. package/lib/resources/axerve_payments.d.ts +2 -2
  660. package/lib/resources/axerve_payments.js +8 -8
  661. package/lib/resources/bing_geocoders.cjs +9 -9
  662. package/lib/resources/bing_geocoders.d.cts +3 -3
  663. package/lib/resources/bing_geocoders.d.ts +2 -2
  664. package/lib/resources/bing_geocoders.js +8 -8
  665. package/lib/resources/braintree_gateways.cjs +9 -9
  666. package/lib/resources/braintree_gateways.d.cts +3 -3
  667. package/lib/resources/braintree_gateways.d.ts +2 -2
  668. package/lib/resources/braintree_gateways.js +8 -8
  669. package/lib/resources/braintree_payments.cjs +9 -9
  670. package/lib/resources/braintree_payments.d.cts +3 -3
  671. package/lib/resources/braintree_payments.d.ts +2 -2
  672. package/lib/resources/braintree_payments.js +8 -8
  673. package/lib/resources/bundles.cjs +9 -9
  674. package/lib/resources/bundles.d.cts +3 -3
  675. package/lib/resources/bundles.d.ts +2 -2
  676. package/lib/resources/bundles.js +8 -8
  677. package/lib/resources/buy_x_pay_y_promotions.cjs +9 -9
  678. package/lib/resources/buy_x_pay_y_promotions.d.cts +3 -3
  679. package/lib/resources/buy_x_pay_y_promotions.d.ts +2 -2
  680. package/lib/resources/buy_x_pay_y_promotions.js +8 -8
  681. package/lib/resources/captures.cjs +9 -9
  682. package/lib/resources/captures.d.cts +3 -3
  683. package/lib/resources/captures.d.ts +2 -2
  684. package/lib/resources/captures.js +8 -8
  685. package/lib/resources/carrier_accounts.cjs +9 -9
  686. package/lib/resources/carrier_accounts.d.cts +3 -3
  687. package/lib/resources/carrier_accounts.d.ts +2 -2
  688. package/lib/resources/carrier_accounts.js +8 -8
  689. package/lib/resources/checkout_com_gateways.cjs +9 -9
  690. package/lib/resources/checkout_com_gateways.d.cts +3 -3
  691. package/lib/resources/checkout_com_gateways.d.ts +2 -2
  692. package/lib/resources/checkout_com_gateways.js +8 -8
  693. package/lib/resources/checkout_com_payments.cjs +9 -9
  694. package/lib/resources/checkout_com_payments.d.cts +3 -3
  695. package/lib/resources/checkout_com_payments.d.ts +2 -2
  696. package/lib/resources/checkout_com_payments.js +8 -8
  697. package/lib/resources/cleanups.cjs +9 -9
  698. package/lib/resources/cleanups.d.cts +3 -3
  699. package/lib/resources/cleanups.d.ts +2 -2
  700. package/lib/resources/cleanups.js +8 -8
  701. package/lib/resources/coupon_codes_promotion_rules.cjs +9 -9
  702. package/lib/resources/coupon_codes_promotion_rules.d.cts +3 -3
  703. package/lib/resources/coupon_codes_promotion_rules.d.ts +2 -2
  704. package/lib/resources/coupon_codes_promotion_rules.js +8 -8
  705. package/lib/resources/coupon_recipients.cjs +9 -9
  706. package/lib/resources/coupon_recipients.d.cts +3 -3
  707. package/lib/resources/coupon_recipients.d.ts +2 -2
  708. package/lib/resources/coupon_recipients.js +8 -8
  709. package/lib/resources/coupons.cjs +9 -9
  710. package/lib/resources/coupons.d.cts +3 -3
  711. package/lib/resources/coupons.d.ts +2 -2
  712. package/lib/resources/coupons.js +8 -8
  713. package/lib/resources/custom_promotion_rules.cjs +9 -9
  714. package/lib/resources/custom_promotion_rules.d.cts +3 -3
  715. package/lib/resources/custom_promotion_rules.d.ts +2 -2
  716. package/lib/resources/custom_promotion_rules.js +8 -8
  717. package/lib/resources/customer_addresses.cjs +9 -9
  718. package/lib/resources/customer_addresses.d.cts +3 -3
  719. package/lib/resources/customer_addresses.d.ts +2 -2
  720. package/lib/resources/customer_addresses.js +8 -8
  721. package/lib/resources/customer_groups.cjs +9 -9
  722. package/lib/resources/customer_groups.d.cts +3 -3
  723. package/lib/resources/customer_groups.d.ts +2 -2
  724. package/lib/resources/customer_groups.js +8 -8
  725. package/lib/resources/customer_password_resets.cjs +9 -9
  726. package/lib/resources/customer_password_resets.d.cts +3 -3
  727. package/lib/resources/customer_password_resets.d.ts +2 -2
  728. package/lib/resources/customer_password_resets.js +8 -8
  729. package/lib/resources/customer_payment_sources.cjs +9 -9
  730. package/lib/resources/customer_payment_sources.d.cts +3 -3
  731. package/lib/resources/customer_payment_sources.d.ts +2 -2
  732. package/lib/resources/customer_payment_sources.js +8 -8
  733. package/lib/resources/customer_subscriptions.cjs +9 -9
  734. package/lib/resources/customer_subscriptions.d.cts +3 -3
  735. package/lib/resources/customer_subscriptions.d.ts +2 -2
  736. package/lib/resources/customer_subscriptions.js +8 -8
  737. package/lib/resources/customers.cjs +9 -9
  738. package/lib/resources/customers.d.cts +3 -3
  739. package/lib/resources/customers.d.ts +2 -2
  740. package/lib/resources/customers.js +8 -8
  741. package/lib/resources/delivery_lead_times.cjs +9 -9
  742. package/lib/resources/delivery_lead_times.d.cts +3 -3
  743. package/lib/resources/delivery_lead_times.d.ts +2 -2
  744. package/lib/resources/delivery_lead_times.js +8 -8
  745. package/lib/resources/discount_engine_items.cjs +9 -9
  746. package/lib/resources/discount_engine_items.d.cts +3 -3
  747. package/lib/resources/discount_engine_items.d.ts +2 -2
  748. package/lib/resources/discount_engine_items.js +8 -8
  749. package/lib/resources/discount_engines.cjs +9 -9
  750. package/lib/resources/discount_engines.d.cts +3 -3
  751. package/lib/resources/discount_engines.d.ts +2 -2
  752. package/lib/resources/discount_engines.js +8 -8
  753. package/lib/resources/easypost_pickups.cjs +9 -9
  754. package/lib/resources/easypost_pickups.d.cts +3 -3
  755. package/lib/resources/easypost_pickups.d.ts +2 -2
  756. package/lib/resources/easypost_pickups.js +8 -8
  757. package/lib/resources/event_callbacks.cjs +9 -9
  758. package/lib/resources/event_callbacks.d.cts +3 -3
  759. package/lib/resources/event_callbacks.d.ts +2 -2
  760. package/lib/resources/event_callbacks.js +8 -8
  761. package/lib/resources/event_stores.cjs +9 -9
  762. package/lib/resources/event_stores.d.cts +3 -3
  763. package/lib/resources/event_stores.d.ts +2 -2
  764. package/lib/resources/event_stores.js +8 -8
  765. package/lib/resources/events.cjs +9 -9
  766. package/lib/resources/events.d.cts +3 -3
  767. package/lib/resources/events.d.ts +2 -2
  768. package/lib/resources/events.js +8 -8
  769. package/lib/resources/exports.cjs +9 -9
  770. package/lib/resources/exports.d.cts +3 -3
  771. package/lib/resources/exports.d.ts +2 -2
  772. package/lib/resources/exports.js +8 -8
  773. package/lib/resources/external_gateways.cjs +9 -9
  774. package/lib/resources/external_gateways.d.cts +3 -3
  775. package/lib/resources/external_gateways.d.ts +2 -2
  776. package/lib/resources/external_gateways.js +8 -8
  777. package/lib/resources/external_payments.cjs +9 -9
  778. package/lib/resources/external_payments.d.cts +3 -3
  779. package/lib/resources/external_payments.d.ts +2 -2
  780. package/lib/resources/external_payments.js +8 -8
  781. package/lib/resources/external_promotions.cjs +9 -9
  782. package/lib/resources/external_promotions.d.cts +3 -3
  783. package/lib/resources/external_promotions.d.ts +2 -2
  784. package/lib/resources/external_promotions.js +8 -8
  785. package/lib/resources/external_tax_calculators.cjs +9 -9
  786. package/lib/resources/external_tax_calculators.d.cts +3 -3
  787. package/lib/resources/external_tax_calculators.d.ts +2 -2
  788. package/lib/resources/external_tax_calculators.js +8 -8
  789. package/lib/resources/fixed_amount_promotions.cjs +9 -9
  790. package/lib/resources/fixed_amount_promotions.d.cts +3 -3
  791. package/lib/resources/fixed_amount_promotions.d.ts +2 -2
  792. package/lib/resources/fixed_amount_promotions.js +8 -8
  793. package/lib/resources/fixed_price_promotions.cjs +9 -9
  794. package/lib/resources/fixed_price_promotions.d.cts +3 -3
  795. package/lib/resources/fixed_price_promotions.d.ts +2 -2
  796. package/lib/resources/fixed_price_promotions.js +8 -8
  797. package/lib/resources/flex_promotions.cjs +9 -9
  798. package/lib/resources/flex_promotions.d.cts +3 -3
  799. package/lib/resources/flex_promotions.d.ts +2 -2
  800. package/lib/resources/flex_promotions.js +8 -8
  801. package/lib/resources/free_gift_promotions.cjs +9 -9
  802. package/lib/resources/free_gift_promotions.d.cts +3 -3
  803. package/lib/resources/free_gift_promotions.d.ts +2 -2
  804. package/lib/resources/free_gift_promotions.js +8 -8
  805. package/lib/resources/free_shipping_promotions.cjs +9 -9
  806. package/lib/resources/free_shipping_promotions.d.cts +3 -3
  807. package/lib/resources/free_shipping_promotions.d.ts +2 -2
  808. package/lib/resources/free_shipping_promotions.js +8 -8
  809. package/lib/resources/geocoders.cjs +9 -9
  810. package/lib/resources/geocoders.d.cts +3 -3
  811. package/lib/resources/geocoders.d.ts +2 -2
  812. package/lib/resources/geocoders.js +8 -8
  813. package/lib/resources/gift_card_recipients.cjs +9 -9
  814. package/lib/resources/gift_card_recipients.d.cts +3 -3
  815. package/lib/resources/gift_card_recipients.d.ts +2 -2
  816. package/lib/resources/gift_card_recipients.js +8 -8
  817. package/lib/resources/gift_cards.cjs +9 -9
  818. package/lib/resources/gift_cards.d.cts +3 -3
  819. package/lib/resources/gift_cards.d.ts +2 -2
  820. package/lib/resources/gift_cards.js +8 -8
  821. package/lib/resources/google_geocoders.cjs +9 -9
  822. package/lib/resources/google_geocoders.d.cts +3 -3
  823. package/lib/resources/google_geocoders.d.ts +2 -2
  824. package/lib/resources/google_geocoders.js +8 -8
  825. package/lib/resources/imports.cjs +9 -9
  826. package/lib/resources/imports.d.cts +3 -3
  827. package/lib/resources/imports.d.ts +2 -2
  828. package/lib/resources/imports.js +8 -8
  829. package/lib/resources/in_stock_subscriptions.cjs +9 -9
  830. package/lib/resources/in_stock_subscriptions.d.cts +3 -3
  831. package/lib/resources/in_stock_subscriptions.d.ts +2 -2
  832. package/lib/resources/in_stock_subscriptions.js +8 -8
  833. package/lib/resources/inventory_models.cjs +9 -9
  834. package/lib/resources/inventory_models.d.cts +3 -3
  835. package/lib/resources/inventory_models.d.ts +2 -2
  836. package/lib/resources/inventory_models.js +8 -8
  837. package/lib/resources/inventory_return_locations.cjs +9 -9
  838. package/lib/resources/inventory_return_locations.d.cts +3 -3
  839. package/lib/resources/inventory_return_locations.d.ts +2 -2
  840. package/lib/resources/inventory_return_locations.js +8 -8
  841. package/lib/resources/inventory_stock_locations.cjs +9 -9
  842. package/lib/resources/inventory_stock_locations.d.cts +3 -3
  843. package/lib/resources/inventory_stock_locations.d.ts +2 -2
  844. package/lib/resources/inventory_stock_locations.js +8 -8
  845. package/lib/resources/klarna_gateways.cjs +9 -9
  846. package/lib/resources/klarna_gateways.d.cts +3 -3
  847. package/lib/resources/klarna_gateways.d.ts +2 -2
  848. package/lib/resources/klarna_gateways.js +8 -8
  849. package/lib/resources/klarna_payments.cjs +9 -9
  850. package/lib/resources/klarna_payments.d.cts +3 -3
  851. package/lib/resources/klarna_payments.d.ts +2 -2
  852. package/lib/resources/klarna_payments.js +8 -8
  853. package/lib/resources/line_item_options.cjs +9 -9
  854. package/lib/resources/line_item_options.d.cts +3 -3
  855. package/lib/resources/line_item_options.d.ts +2 -2
  856. package/lib/resources/line_item_options.js +8 -8
  857. package/lib/resources/line_items.cjs +9 -9
  858. package/lib/resources/line_items.d.cts +3 -3
  859. package/lib/resources/line_items.d.ts +2 -2
  860. package/lib/resources/line_items.js +8 -8
  861. package/lib/resources/links.cjs +9 -9
  862. package/lib/resources/links.d.cts +3 -3
  863. package/lib/resources/links.d.ts +2 -2
  864. package/lib/resources/links.js +8 -8
  865. package/lib/resources/manual_gateways.cjs +9 -9
  866. package/lib/resources/manual_gateways.d.cts +3 -3
  867. package/lib/resources/manual_gateways.d.ts +2 -2
  868. package/lib/resources/manual_gateways.js +8 -8
  869. package/lib/resources/manual_tax_calculators.cjs +9 -9
  870. package/lib/resources/manual_tax_calculators.d.cts +3 -3
  871. package/lib/resources/manual_tax_calculators.d.ts +2 -2
  872. package/lib/resources/manual_tax_calculators.js +8 -8
  873. package/lib/resources/markets.cjs +9 -9
  874. package/lib/resources/markets.d.cts +3 -3
  875. package/lib/resources/markets.d.ts +2 -2
  876. package/lib/resources/markets.js +8 -8
  877. package/lib/resources/merchants.cjs +9 -9
  878. package/lib/resources/merchants.d.cts +3 -3
  879. package/lib/resources/merchants.d.ts +2 -2
  880. package/lib/resources/merchants.js +8 -8
  881. package/lib/resources/notifications.cjs +9 -9
  882. package/lib/resources/notifications.d.cts +3 -3
  883. package/lib/resources/notifications.d.ts +2 -2
  884. package/lib/resources/notifications.js +8 -8
  885. package/lib/resources/order_amount_promotion_rules.cjs +9 -9
  886. package/lib/resources/order_amount_promotion_rules.d.cts +3 -3
  887. package/lib/resources/order_amount_promotion_rules.d.ts +2 -2
  888. package/lib/resources/order_amount_promotion_rules.js +8 -8
  889. package/lib/resources/order_copies.cjs +9 -9
  890. package/lib/resources/order_copies.d.cts +3 -3
  891. package/lib/resources/order_copies.d.ts +2 -2
  892. package/lib/resources/order_copies.js +8 -8
  893. package/lib/resources/order_factories.cjs +9 -9
  894. package/lib/resources/order_factories.d.cts +3 -3
  895. package/lib/resources/order_factories.d.ts +2 -2
  896. package/lib/resources/order_factories.js +8 -8
  897. package/lib/resources/order_subscription_items.cjs +9 -9
  898. package/lib/resources/order_subscription_items.d.cts +3 -3
  899. package/lib/resources/order_subscription_items.d.ts +2 -2
  900. package/lib/resources/order_subscription_items.js +8 -8
  901. package/lib/resources/order_subscriptions.cjs +9 -9
  902. package/lib/resources/order_subscriptions.d.cts +3 -3
  903. package/lib/resources/order_subscriptions.d.ts +2 -2
  904. package/lib/resources/order_subscriptions.js +8 -8
  905. package/lib/resources/orders.cjs +9 -9
  906. package/lib/resources/orders.d.cts +3 -3
  907. package/lib/resources/orders.d.ts +2 -2
  908. package/lib/resources/orders.js +8 -8
  909. package/lib/resources/organizations.cjs +9 -9
  910. package/lib/resources/organizations.d.cts +3 -3
  911. package/lib/resources/organizations.d.ts +2 -2
  912. package/lib/resources/organizations.js +8 -8
  913. package/lib/resources/packages.cjs +9 -9
  914. package/lib/resources/packages.d.cts +3 -3
  915. package/lib/resources/packages.d.ts +2 -2
  916. package/lib/resources/packages.js +8 -8
  917. package/lib/resources/parcel_line_items.cjs +9 -9
  918. package/lib/resources/parcel_line_items.d.cts +3 -3
  919. package/lib/resources/parcel_line_items.d.ts +2 -2
  920. package/lib/resources/parcel_line_items.js +8 -8
  921. package/lib/resources/parcels.cjs +9 -9
  922. package/lib/resources/parcels.d.cts +3 -3
  923. package/lib/resources/parcels.d.ts +2 -2
  924. package/lib/resources/parcels.js +8 -8
  925. package/lib/resources/payment_gateways.cjs +9 -9
  926. package/lib/resources/payment_gateways.d.cts +3 -3
  927. package/lib/resources/payment_gateways.d.ts +2 -2
  928. package/lib/resources/payment_gateways.js +8 -8
  929. package/lib/resources/payment_methods.cjs +9 -9
  930. package/lib/resources/payment_methods.d.cts +3 -3
  931. package/lib/resources/payment_methods.d.ts +2 -2
  932. package/lib/resources/payment_methods.js +8 -8
  933. package/lib/resources/payment_options.cjs +9 -9
  934. package/lib/resources/payment_options.d.cts +3 -3
  935. package/lib/resources/payment_options.d.ts +2 -2
  936. package/lib/resources/payment_options.js +8 -8
  937. package/lib/resources/paypal_gateways.cjs +9 -9
  938. package/lib/resources/paypal_gateways.d.cts +3 -3
  939. package/lib/resources/paypal_gateways.d.ts +2 -2
  940. package/lib/resources/paypal_gateways.js +8 -8
  941. package/lib/resources/paypal_payments.cjs +9 -9
  942. package/lib/resources/paypal_payments.d.cts +3 -3
  943. package/lib/resources/paypal_payments.d.ts +2 -2
  944. package/lib/resources/paypal_payments.js +8 -8
  945. package/lib/resources/percentage_discount_promotions.cjs +9 -9
  946. package/lib/resources/percentage_discount_promotions.d.cts +3 -3
  947. package/lib/resources/percentage_discount_promotions.d.ts +2 -2
  948. package/lib/resources/percentage_discount_promotions.js +8 -8
  949. package/lib/resources/pickups.cjs +9 -9
  950. package/lib/resources/pickups.d.cts +3 -3
  951. package/lib/resources/pickups.d.ts +2 -2
  952. package/lib/resources/pickups.js +8 -8
  953. package/lib/resources/price_frequency_tiers.cjs +9 -9
  954. package/lib/resources/price_frequency_tiers.d.cts +3 -3
  955. package/lib/resources/price_frequency_tiers.d.ts +2 -2
  956. package/lib/resources/price_frequency_tiers.js +8 -8
  957. package/lib/resources/price_list_schedulers.cjs +9 -9
  958. package/lib/resources/price_list_schedulers.d.cts +3 -3
  959. package/lib/resources/price_list_schedulers.d.ts +2 -2
  960. package/lib/resources/price_list_schedulers.js +8 -8
  961. package/lib/resources/price_lists.cjs +9 -9
  962. package/lib/resources/price_lists.d.cts +3 -3
  963. package/lib/resources/price_lists.d.ts +2 -2
  964. package/lib/resources/price_lists.js +8 -8
  965. package/lib/resources/price_tiers.cjs +9 -9
  966. package/lib/resources/price_tiers.d.cts +3 -3
  967. package/lib/resources/price_tiers.d.ts +2 -2
  968. package/lib/resources/price_tiers.js +8 -8
  969. package/lib/resources/price_volume_tiers.cjs +9 -9
  970. package/lib/resources/price_volume_tiers.d.cts +3 -3
  971. package/lib/resources/price_volume_tiers.d.ts +2 -2
  972. package/lib/resources/price_volume_tiers.js +8 -8
  973. package/lib/resources/prices.cjs +9 -9
  974. package/lib/resources/prices.d.cts +3 -3
  975. package/lib/resources/prices.d.ts +2 -2
  976. package/lib/resources/prices.js +8 -8
  977. package/lib/resources/promotion_rules.cjs +9 -9
  978. package/lib/resources/promotion_rules.d.cts +3 -3
  979. package/lib/resources/promotion_rules.d.ts +2 -2
  980. package/lib/resources/promotion_rules.js +8 -8
  981. package/lib/resources/promotions.cjs +9 -9
  982. package/lib/resources/promotions.d.cts +3 -3
  983. package/lib/resources/promotions.d.ts +2 -2
  984. package/lib/resources/promotions.js +8 -8
  985. package/lib/resources/recurring_order_copies.cjs +9 -9
  986. package/lib/resources/recurring_order_copies.d.cts +3 -3
  987. package/lib/resources/recurring_order_copies.d.ts +2 -2
  988. package/lib/resources/recurring_order_copies.js +8 -8
  989. package/lib/resources/refunds.cjs +9 -9
  990. package/lib/resources/refunds.d.cts +3 -3
  991. package/lib/resources/refunds.d.ts +2 -2
  992. package/lib/resources/refunds.js +8 -8
  993. package/lib/resources/reserved_stocks.cjs +9 -9
  994. package/lib/resources/reserved_stocks.d.cts +3 -3
  995. package/lib/resources/reserved_stocks.d.ts +2 -2
  996. package/lib/resources/reserved_stocks.js +8 -8
  997. package/lib/resources/resource_errors.cjs +9 -9
  998. package/lib/resources/resource_errors.d.cts +3 -3
  999. package/lib/resources/resource_errors.d.ts +2 -2
  1000. package/lib/resources/resource_errors.js +8 -8
  1001. package/lib/resources/return_line_items.cjs +9 -9
  1002. package/lib/resources/return_line_items.d.cts +3 -3
  1003. package/lib/resources/return_line_items.d.ts +2 -2
  1004. package/lib/resources/return_line_items.js +8 -8
  1005. package/lib/resources/returns.cjs +9 -9
  1006. package/lib/resources/returns.d.cts +3 -3
  1007. package/lib/resources/returns.d.ts +2 -2
  1008. package/lib/resources/returns.js +8 -8
  1009. package/lib/resources/satispay_gateways.cjs +9 -9
  1010. package/lib/resources/satispay_gateways.d.cts +3 -3
  1011. package/lib/resources/satispay_gateways.d.ts +2 -2
  1012. package/lib/resources/satispay_gateways.js +8 -8
  1013. package/lib/resources/satispay_payments.cjs +9 -9
  1014. package/lib/resources/satispay_payments.d.cts +3 -3
  1015. package/lib/resources/satispay_payments.d.ts +2 -2
  1016. package/lib/resources/satispay_payments.js +8 -8
  1017. package/lib/resources/shipments.cjs +9 -9
  1018. package/lib/resources/shipments.d.cts +3 -3
  1019. package/lib/resources/shipments.d.ts +2 -2
  1020. package/lib/resources/shipments.js +8 -8
  1021. package/lib/resources/shipping_categories.cjs +9 -9
  1022. package/lib/resources/shipping_categories.d.cts +3 -3
  1023. package/lib/resources/shipping_categories.d.ts +2 -2
  1024. package/lib/resources/shipping_categories.js +8 -8
  1025. package/lib/resources/shipping_method_tiers.cjs +9 -9
  1026. package/lib/resources/shipping_method_tiers.d.cts +3 -3
  1027. package/lib/resources/shipping_method_tiers.d.ts +2 -2
  1028. package/lib/resources/shipping_method_tiers.js +8 -8
  1029. package/lib/resources/shipping_methods.cjs +9 -9
  1030. package/lib/resources/shipping_methods.d.cts +3 -3
  1031. package/lib/resources/shipping_methods.d.ts +2 -2
  1032. package/lib/resources/shipping_methods.js +8 -8
  1033. package/lib/resources/shipping_weight_tiers.cjs +9 -9
  1034. package/lib/resources/shipping_weight_tiers.d.cts +3 -3
  1035. package/lib/resources/shipping_weight_tiers.d.ts +2 -2
  1036. package/lib/resources/shipping_weight_tiers.js +8 -8
  1037. package/lib/resources/shipping_zones.cjs +9 -9
  1038. package/lib/resources/shipping_zones.d.cts +3 -3
  1039. package/lib/resources/shipping_zones.d.ts +2 -2
  1040. package/lib/resources/shipping_zones.js +8 -8
  1041. package/lib/resources/sku_list_items.cjs +9 -9
  1042. package/lib/resources/sku_list_items.d.cts +3 -3
  1043. package/lib/resources/sku_list_items.d.ts +2 -2
  1044. package/lib/resources/sku_list_items.js +8 -8
  1045. package/lib/resources/sku_list_promotion_rules.cjs +9 -9
  1046. package/lib/resources/sku_list_promotion_rules.d.cts +3 -3
  1047. package/lib/resources/sku_list_promotion_rules.d.ts +2 -2
  1048. package/lib/resources/sku_list_promotion_rules.js +8 -8
  1049. package/lib/resources/sku_lists.cjs +9 -9
  1050. package/lib/resources/sku_lists.d.cts +3 -3
  1051. package/lib/resources/sku_lists.d.ts +2 -2
  1052. package/lib/resources/sku_lists.js +8 -8
  1053. package/lib/resources/sku_options.cjs +9 -9
  1054. package/lib/resources/sku_options.d.cts +3 -3
  1055. package/lib/resources/sku_options.d.ts +2 -2
  1056. package/lib/resources/sku_options.js +8 -8
  1057. package/lib/resources/skus.cjs +9 -9
  1058. package/lib/resources/skus.d.cts +3 -3
  1059. package/lib/resources/skus.d.ts +2 -2
  1060. package/lib/resources/skus.js +8 -8
  1061. package/lib/resources/stock_items.cjs +9 -9
  1062. package/lib/resources/stock_items.d.cts +3 -3
  1063. package/lib/resources/stock_items.d.ts +2 -2
  1064. package/lib/resources/stock_items.js +8 -8
  1065. package/lib/resources/stock_line_items.cjs +9 -9
  1066. package/lib/resources/stock_line_items.d.cts +3 -3
  1067. package/lib/resources/stock_line_items.d.ts +2 -2
  1068. package/lib/resources/stock_line_items.js +8 -8
  1069. package/lib/resources/stock_locations.cjs +9 -9
  1070. package/lib/resources/stock_locations.d.cts +3 -3
  1071. package/lib/resources/stock_locations.d.ts +2 -2
  1072. package/lib/resources/stock_locations.js +8 -8
  1073. package/lib/resources/stock_reservations.cjs +9 -9
  1074. package/lib/resources/stock_reservations.d.cts +3 -3
  1075. package/lib/resources/stock_reservations.d.ts +2 -2
  1076. package/lib/resources/stock_reservations.js +8 -8
  1077. package/lib/resources/stock_transfers.cjs +9 -9
  1078. package/lib/resources/stock_transfers.d.cts +3 -3
  1079. package/lib/resources/stock_transfers.d.ts +2 -2
  1080. package/lib/resources/stock_transfers.js +8 -8
  1081. package/lib/resources/stores.cjs +9 -9
  1082. package/lib/resources/stores.d.cts +3 -3
  1083. package/lib/resources/stores.d.ts +2 -2
  1084. package/lib/resources/stores.js +8 -8
  1085. package/lib/resources/stripe_gateways.cjs +9 -9
  1086. package/lib/resources/stripe_gateways.d.cts +3 -3
  1087. package/lib/resources/stripe_gateways.d.ts +2 -2
  1088. package/lib/resources/stripe_gateways.js +8 -8
  1089. package/lib/resources/stripe_payments.cjs +9 -9
  1090. package/lib/resources/stripe_payments.d.cts +3 -3
  1091. package/lib/resources/stripe_payments.d.ts +2 -2
  1092. package/lib/resources/stripe_payments.js +8 -8
  1093. package/lib/resources/stripe_tax_accounts.cjs +9 -9
  1094. package/lib/resources/stripe_tax_accounts.d.cts +3 -3
  1095. package/lib/resources/stripe_tax_accounts.d.ts +2 -2
  1096. package/lib/resources/stripe_tax_accounts.js +8 -8
  1097. package/lib/resources/subscription_models.cjs +9 -9
  1098. package/lib/resources/subscription_models.d.cts +3 -3
  1099. package/lib/resources/subscription_models.d.ts +2 -2
  1100. package/lib/resources/subscription_models.js +8 -8
  1101. package/lib/resources/tags.cjs +9 -9
  1102. package/lib/resources/tags.d.cts +3 -3
  1103. package/lib/resources/tags.d.ts +2 -2
  1104. package/lib/resources/tags.js +8 -8
  1105. package/lib/resources/talon_one_accounts.cjs +9 -9
  1106. package/lib/resources/talon_one_accounts.d.cts +3 -3
  1107. package/lib/resources/talon_one_accounts.d.ts +2 -2
  1108. package/lib/resources/talon_one_accounts.js +8 -8
  1109. package/lib/resources/tax_calculators.cjs +9 -9
  1110. package/lib/resources/tax_calculators.d.cts +3 -3
  1111. package/lib/resources/tax_calculators.d.ts +2 -2
  1112. package/lib/resources/tax_calculators.js +8 -8
  1113. package/lib/resources/tax_categories.cjs +9 -9
  1114. package/lib/resources/tax_categories.d.cts +3 -3
  1115. package/lib/resources/tax_categories.d.ts +2 -2
  1116. package/lib/resources/tax_categories.js +8 -8
  1117. package/lib/resources/tax_rules.cjs +9 -9
  1118. package/lib/resources/tax_rules.d.cts +3 -3
  1119. package/lib/resources/tax_rules.d.ts +2 -2
  1120. package/lib/resources/tax_rules.js +8 -8
  1121. package/lib/resources/taxjar_accounts.cjs +9 -9
  1122. package/lib/resources/taxjar_accounts.d.cts +3 -3
  1123. package/lib/resources/taxjar_accounts.d.ts +2 -2
  1124. package/lib/resources/taxjar_accounts.js +8 -8
  1125. package/lib/resources/transactions.cjs +9 -9
  1126. package/lib/resources/transactions.d.cts +3 -3
  1127. package/lib/resources/transactions.d.ts +2 -2
  1128. package/lib/resources/transactions.js +8 -8
  1129. package/lib/resources/versions.cjs +9 -9
  1130. package/lib/resources/versions.d.cts +3 -3
  1131. package/lib/resources/versions.d.ts +2 -2
  1132. package/lib/resources/versions.js +8 -8
  1133. package/lib/resources/vertex_accounts.cjs +9 -9
  1134. package/lib/resources/vertex_accounts.d.cts +3 -3
  1135. package/lib/resources/vertex_accounts.d.ts +2 -2
  1136. package/lib/resources/vertex_accounts.js +8 -8
  1137. package/lib/resources/voids.cjs +9 -9
  1138. package/lib/resources/voids.d.cts +3 -3
  1139. package/lib/resources/voids.d.ts +2 -2
  1140. package/lib/resources/voids.js +8 -8
  1141. package/lib/resources/webhooks.cjs +9 -9
  1142. package/lib/resources/webhooks.d.cts +3 -3
  1143. package/lib/resources/webhooks.d.ts +2 -2
  1144. package/lib/resources/webhooks.js +8 -8
  1145. package/lib/resources/wire_transfers.cjs +9 -9
  1146. package/lib/resources/wire_transfers.d.cts +3 -3
  1147. package/lib/resources/wire_transfers.d.ts +2 -2
  1148. package/lib/resources/wire_transfers.js +8 -8
  1149. package/lib/static.cjs +10 -10
  1150. package/lib/static.d.cts +2 -2
  1151. package/lib/static.d.ts +2 -2
  1152. package/lib/static.js +9 -9
  1153. package/lib/util.cjs +5 -5
  1154. package/lib/util.js +1 -1
  1155. package/package.json +6 -8
  1156. package/lib/api-D2LyR3zD.d.cts +0 -18255
  1157. package/lib/api-D8k2hYlQ.d.ts +0 -18255
  1158. package/lib/chunk-2AIPAXOH.cjs +0 -65
  1159. package/lib/chunk-2AIPAXOH.cjs.map +0 -1
  1160. package/lib/chunk-2CPNHJAZ.cjs +0 -51
  1161. package/lib/chunk-2CPNHJAZ.cjs.map +0 -1
  1162. package/lib/chunk-2H2ODZUY.cjs +0 -160
  1163. package/lib/chunk-2H2ODZUY.cjs.map +0 -1
  1164. package/lib/chunk-2JB3IVP4.js +0 -99
  1165. package/lib/chunk-2JB3IVP4.js.map +0 -1
  1166. package/lib/chunk-2M54XID3.cjs +0 -51
  1167. package/lib/chunk-2M54XID3.cjs.map +0 -1
  1168. package/lib/chunk-2M5MIMZG.cjs +0 -55
  1169. package/lib/chunk-2M5MIMZG.cjs.map +0 -1
  1170. package/lib/chunk-2QBP2WHJ.js +0 -49
  1171. package/lib/chunk-2QBP2WHJ.js.map +0 -1
  1172. package/lib/chunk-2VNQTC3B.cjs +0 -56
  1173. package/lib/chunk-2VNQTC3B.cjs.map +0 -1
  1174. package/lib/chunk-2XDNWGMO.cjs +0 -99
  1175. package/lib/chunk-2XDNWGMO.cjs.map +0 -1
  1176. package/lib/chunk-2ZVHALAO.cjs +0 -39
  1177. package/lib/chunk-2ZVHALAO.cjs.map +0 -1
  1178. package/lib/chunk-33CXJXIW.js +0 -63
  1179. package/lib/chunk-33CXJXIW.js.map +0 -1
  1180. package/lib/chunk-34MN4L45.js +0 -37
  1181. package/lib/chunk-34MN4L45.js.map +0 -1
  1182. package/lib/chunk-3CBCQQBN.cjs +0 -79
  1183. package/lib/chunk-3CBCQQBN.cjs.map +0 -1
  1184. package/lib/chunk-3FQU4LWE.js +0 -53
  1185. package/lib/chunk-3FQU4LWE.js.map +0 -1
  1186. package/lib/chunk-3KNN5WPE.js +0 -55
  1187. package/lib/chunk-3KNN5WPE.js.map +0 -1
  1188. package/lib/chunk-3QQQMHYY.js +0 -72
  1189. package/lib/chunk-3QQQMHYY.js.map +0 -1
  1190. package/lib/chunk-3WTRPII2.cjs +0 -47
  1191. package/lib/chunk-3WTRPII2.cjs.map +0 -1
  1192. package/lib/chunk-3X6OVCVT.cjs +0 -57
  1193. package/lib/chunk-3X6OVCVT.cjs.map +0 -1
  1194. package/lib/chunk-3YINNWNG.cjs +0 -51
  1195. package/lib/chunk-3YINNWNG.cjs.map +0 -1
  1196. package/lib/chunk-3ZOHHEJR.js +0 -59
  1197. package/lib/chunk-3ZOHHEJR.js.map +0 -1
  1198. package/lib/chunk-43SLAYP5.js +0 -68
  1199. package/lib/chunk-43SLAYP5.js.map +0 -1
  1200. package/lib/chunk-45YSQMGA.cjs +0 -81
  1201. package/lib/chunk-45YSQMGA.cjs.map +0 -1
  1202. package/lib/chunk-46ESSSNR.cjs +0 -102
  1203. package/lib/chunk-46ESSSNR.cjs.map +0 -1
  1204. package/lib/chunk-4IOIA2JQ.cjs +0 -93
  1205. package/lib/chunk-4IOIA2JQ.cjs.map +0 -1
  1206. package/lib/chunk-4L73VYT5.cjs +0 -51
  1207. package/lib/chunk-4L73VYT5.cjs.map +0 -1
  1208. package/lib/chunk-4MCWJ5GT.js +0 -57
  1209. package/lib/chunk-4MCWJ5GT.js.map +0 -1
  1210. package/lib/chunk-4MDMKEMH.js +0 -645
  1211. package/lib/chunk-4MDMKEMH.js.map +0 -1
  1212. package/lib/chunk-4XQNILDJ.js +0 -59
  1213. package/lib/chunk-4XQNILDJ.js.map +0 -1
  1214. package/lib/chunk-5BIP4OLZ.js +0 -54
  1215. package/lib/chunk-5BIP4OLZ.js.map +0 -1
  1216. package/lib/chunk-5QHMVNEQ.cjs +0 -34
  1217. package/lib/chunk-5QHMVNEQ.cjs.map +0 -1
  1218. package/lib/chunk-5TL34ZY6.js +0 -49
  1219. package/lib/chunk-5TL34ZY6.js.map +0 -1
  1220. package/lib/chunk-5WUI6OHH.cjs +0 -43
  1221. package/lib/chunk-5WUI6OHH.cjs.map +0 -1
  1222. package/lib/chunk-62EOOGD4.js +0 -128
  1223. package/lib/chunk-62EOOGD4.js.map +0 -1
  1224. package/lib/chunk-65LSQZTV.js +0 -45
  1225. package/lib/chunk-65LSQZTV.js.map +0 -1
  1226. package/lib/chunk-67LLQOPH.js +0 -55
  1227. package/lib/chunk-67LLQOPH.js.map +0 -1
  1228. package/lib/chunk-67TJ6ALR.js +0 -47
  1229. package/lib/chunk-67TJ6ALR.js.map +0 -1
  1230. package/lib/chunk-67U7A4FV.cjs +0 -72
  1231. package/lib/chunk-67U7A4FV.cjs.map +0 -1
  1232. package/lib/chunk-6DRGTFBA.cjs +0 -57
  1233. package/lib/chunk-6DRGTFBA.cjs.map +0 -1
  1234. package/lib/chunk-6EIS4TN3.js +0 -49
  1235. package/lib/chunk-6EIS4TN3.js.map +0 -1
  1236. package/lib/chunk-6KOFQEOI.cjs +0 -60
  1237. package/lib/chunk-6KOFQEOI.cjs.map +0 -1
  1238. package/lib/chunk-6KXHU2QJ.js +0 -70
  1239. package/lib/chunk-6KXHU2QJ.js.map +0 -1
  1240. package/lib/chunk-6LHRWK5U.cjs +0 -39
  1241. package/lib/chunk-6LHRWK5U.cjs.map +0 -1
  1242. package/lib/chunk-6PKJDHVC.js +0 -48
  1243. package/lib/chunk-6PKJDHVC.js.map +0 -1
  1244. package/lib/chunk-6S7EJUCA.cjs +0 -47
  1245. package/lib/chunk-6S7EJUCA.cjs.map +0 -1
  1246. package/lib/chunk-6SGYQRO6.js +0 -53
  1247. package/lib/chunk-6SGYQRO6.js.map +0 -1
  1248. package/lib/chunk-6SO2W3YA.js +0 -56
  1249. package/lib/chunk-6SO2W3YA.js.map +0 -1
  1250. package/lib/chunk-6STKOQR7.cjs +0 -63
  1251. package/lib/chunk-6STKOQR7.cjs.map +0 -1
  1252. package/lib/chunk-7P3ZTIQX.cjs +0 -55
  1253. package/lib/chunk-7P3ZTIQX.cjs.map +0 -1
  1254. package/lib/chunk-7YWXHAMP.cjs +0 -61
  1255. package/lib/chunk-7YWXHAMP.cjs.map +0 -1
  1256. package/lib/chunk-7Z7FQA33.cjs +0 -661
  1257. package/lib/chunk-7Z7FQA33.cjs.map +0 -1
  1258. package/lib/chunk-A2SZPZSG.cjs +0 -50
  1259. package/lib/chunk-A2SZPZSG.cjs.map +0 -1
  1260. package/lib/chunk-A3VWVK2F.js +0 -36
  1261. package/lib/chunk-A3VWVK2F.js.map +0 -1
  1262. package/lib/chunk-A4MUL4NB.js +0 -53
  1263. package/lib/chunk-A4MUL4NB.js.map +0 -1
  1264. package/lib/chunk-A5KAGODH.js +0 -51
  1265. package/lib/chunk-A5KAGODH.js.map +0 -1
  1266. package/lib/chunk-ALCZSKPR.cjs +0 -88
  1267. package/lib/chunk-ALCZSKPR.cjs.map +0 -1
  1268. package/lib/chunk-AWV5Y4SH.js +0 -70
  1269. package/lib/chunk-AWV5Y4SH.js.map +0 -1
  1270. package/lib/chunk-BGH55KTL.js +0 -55
  1271. package/lib/chunk-BGH55KTL.js.map +0 -1
  1272. package/lib/chunk-BGHPRKU4.cjs +0 -51
  1273. package/lib/chunk-BGHPRKU4.cjs.map +0 -1
  1274. package/lib/chunk-BHXCVURA.cjs +0 -130
  1275. package/lib/chunk-BHXCVURA.cjs.map +0 -1
  1276. package/lib/chunk-BNWM637R.js +0 -73
  1277. package/lib/chunk-BNWM637R.js.map +0 -1
  1278. package/lib/chunk-BQ4VRKE7.js +0 -28
  1279. package/lib/chunk-BQ4VRKE7.js.map +0 -1
  1280. package/lib/chunk-BRXYDOGG.cjs +0 -56
  1281. package/lib/chunk-BRXYDOGG.cjs.map +0 -1
  1282. package/lib/chunk-BT72RZCE.js +0 -36
  1283. package/lib/chunk-BT72RZCE.js.map +0 -1
  1284. package/lib/chunk-BTLPF6RH.js +0 -49
  1285. package/lib/chunk-BTLPF6RH.js.map +0 -1
  1286. package/lib/chunk-BUHV5UDN.cjs +0 -54
  1287. package/lib/chunk-BUHV5UDN.cjs.map +0 -1
  1288. package/lib/chunk-C27B7IUW.cjs +0 -39
  1289. package/lib/chunk-C27B7IUW.cjs.map +0 -1
  1290. package/lib/chunk-C47UWH7R.js +0 -48
  1291. package/lib/chunk-C47UWH7R.js.map +0 -1
  1292. package/lib/chunk-C6ACTKJH.js +0 -48
  1293. package/lib/chunk-C6ACTKJH.js.map +0 -1
  1294. package/lib/chunk-CETB5FAI.js +0 -41
  1295. package/lib/chunk-CETB5FAI.js.map +0 -1
  1296. package/lib/chunk-CHYP5F26.js +0 -59
  1297. package/lib/chunk-CHYP5F26.js.map +0 -1
  1298. package/lib/chunk-CQASXR3J.cjs +0 -60
  1299. package/lib/chunk-CQASXR3J.cjs.map +0 -1
  1300. package/lib/chunk-D2HUJSJV.cjs +0 -74
  1301. package/lib/chunk-D2HUJSJV.cjs.map +0 -1
  1302. package/lib/chunk-D7SALAS2.cjs +0 -29
  1303. package/lib/chunk-D7SALAS2.cjs.map +0 -1
  1304. package/lib/chunk-D7VHCT5M.cjs +0 -47
  1305. package/lib/chunk-D7VHCT5M.cjs.map +0 -1
  1306. package/lib/chunk-DIE5NWNX.js +0 -105
  1307. package/lib/chunk-DIE5NWNX.js.map +0 -1
  1308. package/lib/chunk-DM62R5CL.cjs +0 -50
  1309. package/lib/chunk-DM62R5CL.cjs.map +0 -1
  1310. package/lib/chunk-DOY7VJPG.js +0 -58
  1311. package/lib/chunk-DOY7VJPG.js.map +0 -1
  1312. package/lib/chunk-DPE4FTTS.cjs +0 -42
  1313. package/lib/chunk-DPE4FTTS.cjs.map +0 -1
  1314. package/lib/chunk-DPJDEC6A.js +0 -42
  1315. package/lib/chunk-DPJDEC6A.js.map +0 -1
  1316. package/lib/chunk-DQWWKXLR.cjs +0 -51
  1317. package/lib/chunk-DQWWKXLR.cjs.map +0 -1
  1318. package/lib/chunk-E2EVY45K.js +0 -48
  1319. package/lib/chunk-E2EVY45K.js.map +0 -1
  1320. package/lib/chunk-E2G3K7H4.js +0 -32
  1321. package/lib/chunk-E2G3K7H4.js.map +0 -1
  1322. package/lib/chunk-EAR4AXVU.cjs +0 -51
  1323. package/lib/chunk-EAR4AXVU.cjs.map +0 -1
  1324. package/lib/chunk-EFQH4OGQ.cjs +0 -46
  1325. package/lib/chunk-EFQH4OGQ.cjs.map +0 -1
  1326. package/lib/chunk-EJNNEY2F.cjs +0 -60
  1327. package/lib/chunk-EJNNEY2F.cjs.map +0 -1
  1328. package/lib/chunk-ERA2COOU.js +0 -37
  1329. package/lib/chunk-ERA2COOU.js.map +0 -1
  1330. package/lib/chunk-ESGRB4YB.cjs +0 -55
  1331. package/lib/chunk-ESGRB4YB.cjs.map +0 -1
  1332. package/lib/chunk-EVVUYC7T.cjs +0 -47
  1333. package/lib/chunk-EVVUYC7T.cjs.map +0 -1
  1334. package/lib/chunk-EZHUH52J.cjs +0 -54
  1335. package/lib/chunk-EZHUH52J.cjs.map +0 -1
  1336. package/lib/chunk-F3UMNXXH.js +0 -45
  1337. package/lib/chunk-F3UMNXXH.js.map +0 -1
  1338. package/lib/chunk-F46RW7IU.cjs +0 -109
  1339. package/lib/chunk-F46RW7IU.cjs.map +0 -1
  1340. package/lib/chunk-F4P2PUF7.cjs +0 -73
  1341. package/lib/chunk-F4P2PUF7.cjs.map +0 -1
  1342. package/lib/chunk-F6WABN7F.cjs +0 -105
  1343. package/lib/chunk-F6WABN7F.cjs.map +0 -1
  1344. package/lib/chunk-FDW7JX5A.cjs +0 -55
  1345. package/lib/chunk-FDW7JX5A.cjs.map +0 -1
  1346. package/lib/chunk-FFX5MED5.js +0 -55
  1347. package/lib/chunk-FFX5MED5.js.map +0 -1
  1348. package/lib/chunk-FI2PWG6C.js +0 -63
  1349. package/lib/chunk-FI2PWG6C.js.map +0 -1
  1350. package/lib/chunk-FI7BWBCX.js +0 -63
  1351. package/lib/chunk-FI7BWBCX.js.map +0 -1
  1352. package/lib/chunk-FIM76CMU.cjs +0 -42
  1353. package/lib/chunk-FIM76CMU.cjs.map +0 -1
  1354. package/lib/chunk-FMGDNZQ6.cjs +0 -51
  1355. package/lib/chunk-FMGDNZQ6.cjs.map +0 -1
  1356. package/lib/chunk-FTYGJZZM.js +0 -44
  1357. package/lib/chunk-FTYGJZZM.js.map +0 -1
  1358. package/lib/chunk-FUDBWYKD.js +0 -49
  1359. package/lib/chunk-FUDBWYKD.js.map +0 -1
  1360. package/lib/chunk-G2ZCHH4W.js +0 -55
  1361. package/lib/chunk-G2ZCHH4W.js.map +0 -1
  1362. package/lib/chunk-G5IOYKFS.js +0 -53
  1363. package/lib/chunk-G5IOYKFS.js.map +0 -1
  1364. package/lib/chunk-G74VYKRY.js +0 -45
  1365. package/lib/chunk-G74VYKRY.js.map +0 -1
  1366. package/lib/chunk-G7MROYQP.cjs +0 -42
  1367. package/lib/chunk-G7MROYQP.cjs.map +0 -1
  1368. package/lib/chunk-GAPLQGJO.js +0 -97
  1369. package/lib/chunk-GAPLQGJO.js.map +0 -1
  1370. package/lib/chunk-GHYWZ5KT.cjs +0 -99
  1371. package/lib/chunk-GHYWZ5KT.cjs.map +0 -1
  1372. package/lib/chunk-GJOZR5TC.cjs +0 -93
  1373. package/lib/chunk-GJOZR5TC.cjs.map +0 -1
  1374. package/lib/chunk-GKUFMSZL.js +0 -32
  1375. package/lib/chunk-GKUFMSZL.js.map +0 -1
  1376. package/lib/chunk-GLL264QG.cjs +0 -55
  1377. package/lib/chunk-GLL264QG.cjs.map +0 -1
  1378. package/lib/chunk-H5CKBXQS.js +0 -53
  1379. package/lib/chunk-H5CKBXQS.js.map +0 -1
  1380. package/lib/chunk-H7EX22DB.cjs +0 -65
  1381. package/lib/chunk-H7EX22DB.cjs.map +0 -1
  1382. package/lib/chunk-HBDXHKBE.js +0 -91
  1383. package/lib/chunk-HBDXHKBE.js.map +0 -1
  1384. package/lib/chunk-HBVSEXIQ.js +0 -58
  1385. package/lib/chunk-HBVSEXIQ.js.map +0 -1
  1386. package/lib/chunk-HOJUXLZD.cjs +0 -75
  1387. package/lib/chunk-HOJUXLZD.cjs.map +0 -1
  1388. package/lib/chunk-HU6DRUWJ.js +0 -86
  1389. package/lib/chunk-HU6DRUWJ.js.map +0 -1
  1390. package/lib/chunk-HUDH634O.cjs +0 -67
  1391. package/lib/chunk-HUDH634O.cjs.map +0 -1
  1392. package/lib/chunk-I2NZB6KN.js +0 -44
  1393. package/lib/chunk-I2NZB6KN.js.map +0 -1
  1394. package/lib/chunk-I3ZMOPMJ.js +0 -52
  1395. package/lib/chunk-I3ZMOPMJ.js.map +0 -1
  1396. package/lib/chunk-I56ZABWO.cjs +0 -38
  1397. package/lib/chunk-I56ZABWO.cjs.map +0 -1
  1398. package/lib/chunk-I5VOVSS7.cjs +0 -71
  1399. package/lib/chunk-I5VOVSS7.cjs.map +0 -1
  1400. package/lib/chunk-I64U2VMD.cjs +0 -51
  1401. package/lib/chunk-I64U2VMD.cjs.map +0 -1
  1402. package/lib/chunk-IHPFHOEJ.js +0 -40
  1403. package/lib/chunk-IHPFHOEJ.js.map +0 -1
  1404. package/lib/chunk-IKHD5UQP.cjs +0 -163
  1405. package/lib/chunk-IKHD5UQP.cjs.map +0 -1
  1406. package/lib/chunk-INW4SZG7.js +0 -93
  1407. package/lib/chunk-INW4SZG7.js.map +0 -1
  1408. package/lib/chunk-IODJPN7Z.js +0 -77
  1409. package/lib/chunk-IODJPN7Z.js.map +0 -1
  1410. package/lib/chunk-IQQNG3U2.cjs +0 -55
  1411. package/lib/chunk-IQQNG3U2.cjs.map +0 -1
  1412. package/lib/chunk-IQVSM3MS.js +0 -57
  1413. package/lib/chunk-IQVSM3MS.js.map +0 -1
  1414. package/lib/chunk-IT2MWRJY.js +0 -54
  1415. package/lib/chunk-IT2MWRJY.js.map +0 -1
  1416. package/lib/chunk-IXOAGKRD.cjs +0 -65
  1417. package/lib/chunk-IXOAGKRD.cjs.map +0 -1
  1418. package/lib/chunk-IYPHDMBD.js +0 -52
  1419. package/lib/chunk-IYPHDMBD.js.map +0 -1
  1420. package/lib/chunk-J32Z2XNX.cjs +0 -57
  1421. package/lib/chunk-J32Z2XNX.cjs.map +0 -1
  1422. package/lib/chunk-J3IOXLY2.cjs +0 -107
  1423. package/lib/chunk-J3IOXLY2.cjs.map +0 -1
  1424. package/lib/chunk-J42WGTN6.cjs +0 -50
  1425. package/lib/chunk-J42WGTN6.cjs.map +0 -1
  1426. package/lib/chunk-JAOFRM22.js +0 -61
  1427. package/lib/chunk-JAOFRM22.js.map +0 -1
  1428. package/lib/chunk-JCOJGOXF.cjs +0 -107
  1429. package/lib/chunk-JCOJGOXF.cjs.map +0 -1
  1430. package/lib/chunk-JD3MI7AO.js +0 -55
  1431. package/lib/chunk-JD3MI7AO.js.map +0 -1
  1432. package/lib/chunk-JDFDWBXQ.js +0 -53
  1433. package/lib/chunk-JDFDWBXQ.js.map +0 -1
  1434. package/lib/chunk-JLLZQ7JR.cjs +0 -57
  1435. package/lib/chunk-JLLZQ7JR.cjs.map +0 -1
  1436. package/lib/chunk-JPKZBEAY.js +0 -59
  1437. package/lib/chunk-JPKZBEAY.js.map +0 -1
  1438. package/lib/chunk-JPX4RLBV.js +0 -158
  1439. package/lib/chunk-JPX4RLBV.js.map +0 -1
  1440. package/lib/chunk-JUVEIRM4.cjs +0 -47
  1441. package/lib/chunk-JUVEIRM4.cjs.map +0 -1
  1442. package/lib/chunk-JVF5KY2J.cjs +0 -22
  1443. package/lib/chunk-JVF5KY2J.cjs.map +0 -1
  1444. package/lib/chunk-JWB5Y2WT.cjs +0 -58
  1445. package/lib/chunk-JWB5Y2WT.cjs.map +0 -1
  1446. package/lib/chunk-JWLNUOL5.js +0 -79
  1447. package/lib/chunk-JWLNUOL5.js.map +0 -1
  1448. package/lib/chunk-JYSIXEKG.cjs +0 -54
  1449. package/lib/chunk-JYSIXEKG.cjs.map +0 -1
  1450. package/lib/chunk-K2E4PX3F.cjs +0 -51
  1451. package/lib/chunk-K2E4PX3F.cjs.map +0 -1
  1452. package/lib/chunk-K3CF32TJ.cjs +0 -46
  1453. package/lib/chunk-K3CF32TJ.cjs.map +0 -1
  1454. package/lib/chunk-K6MX6OZL.js +0 -44
  1455. package/lib/chunk-K6MX6OZL.js.map +0 -1
  1456. package/lib/chunk-K7AR7Z3J.cjs +0 -58
  1457. package/lib/chunk-K7AR7Z3J.cjs.map +0 -1
  1458. package/lib/chunk-KAZKQXUO.js +0 -103
  1459. package/lib/chunk-KAZKQXUO.js.map +0 -1
  1460. package/lib/chunk-KDDMRBB6.cjs +0 -30
  1461. package/lib/chunk-KDDMRBB6.cjs.map +0 -1
  1462. package/lib/chunk-KGZ3FTYR.cjs +0 -43
  1463. package/lib/chunk-KGZ3FTYR.cjs.map +0 -1
  1464. package/lib/chunk-KM27D322.cjs +0 -70
  1465. package/lib/chunk-KM27D322.cjs.map +0 -1
  1466. package/lib/chunk-KMWKIU65.js +0 -107
  1467. package/lib/chunk-KMWKIU65.js.map +0 -1
  1468. package/lib/chunk-KT2FGWBT.cjs +0 -59
  1469. package/lib/chunk-KT2FGWBT.cjs.map +0 -1
  1470. package/lib/chunk-KVRZZTDE.js +0 -40
  1471. package/lib/chunk-KVRZZTDE.js.map +0 -1
  1472. package/lib/chunk-KWOKL6HK.cjs +0 -59
  1473. package/lib/chunk-KWOKL6HK.cjs.map +0 -1
  1474. package/lib/chunk-LE4I5AHS.js +0 -53
  1475. package/lib/chunk-LE4I5AHS.js.map +0 -1
  1476. package/lib/chunk-LESXALEZ.js +0 -49
  1477. package/lib/chunk-LESXALEZ.js.map +0 -1
  1478. package/lib/chunk-LF3CZYGK.js +0 -49
  1479. package/lib/chunk-LF3CZYGK.js.map +0 -1
  1480. package/lib/chunk-LGOJTWKL.js +0 -52
  1481. package/lib/chunk-LGOJTWKL.js.map +0 -1
  1482. package/lib/chunk-LIIFLHEH.cjs +0 -286
  1483. package/lib/chunk-LIIFLHEH.cjs.map +0 -1
  1484. package/lib/chunk-LKBPLGXI.cjs +0 -57
  1485. package/lib/chunk-LKBPLGXI.cjs.map +0 -1
  1486. package/lib/chunk-LKVJRTT2.cjs +0 -72
  1487. package/lib/chunk-LKVJRTT2.cjs.map +0 -1
  1488. package/lib/chunk-LTCWS2HF.cjs +0 -43
  1489. package/lib/chunk-LTCWS2HF.cjs.map +0 -1
  1490. package/lib/chunk-LUS6TTEC.js +0 -284
  1491. package/lib/chunk-LUS6TTEC.js.map +0 -1
  1492. package/lib/chunk-M37U5CLH.js +0 -102
  1493. package/lib/chunk-M37U5CLH.js.map +0 -1
  1494. package/lib/chunk-M6BKGQCR.js +0 -100
  1495. package/lib/chunk-M6BKGQCR.js.map +0 -1
  1496. package/lib/chunk-MBROL4C2.cjs +0 -101
  1497. package/lib/chunk-MBROL4C2.cjs.map +0 -1
  1498. package/lib/chunk-MCZXCMRV.js +0 -97
  1499. package/lib/chunk-MCZXCMRV.js.map +0 -1
  1500. package/lib/chunk-MHCLPVOI.js +0 -56
  1501. package/lib/chunk-MHCLPVOI.js.map +0 -1
  1502. package/lib/chunk-MHQOHOZS.js +0 -97
  1503. package/lib/chunk-MHQOHOZS.js.map +0 -1
  1504. package/lib/chunk-MKV2B7P5.cjs +0 -46
  1505. package/lib/chunk-MKV2B7P5.cjs.map +0 -1
  1506. package/lib/chunk-MOKBZVUU.js +0 -53
  1507. package/lib/chunk-MOKBZVUU.js.map +0 -1
  1508. package/lib/chunk-MUMTGXL2.js +0 -57
  1509. package/lib/chunk-MUMTGXL2.js.map +0 -1
  1510. package/lib/chunk-MXT6VH7V.js +0 -45
  1511. package/lib/chunk-MXT6VH7V.js.map +0 -1
  1512. package/lib/chunk-MYWCHH2I.cjs +0 -79
  1513. package/lib/chunk-MYWCHH2I.cjs.map +0 -1
  1514. package/lib/chunk-N35FM5P4.js +0 -64
  1515. package/lib/chunk-N35FM5P4.js.map +0 -1
  1516. package/lib/chunk-N4COQM5Q.js +0 -37
  1517. package/lib/chunk-N4COQM5Q.js.map +0 -1
  1518. package/lib/chunk-NEVN2SMR.js +0 -53
  1519. package/lib/chunk-NEVN2SMR.js.map +0 -1
  1520. package/lib/chunk-NQHQV4PY.js +0 -31
  1521. package/lib/chunk-NQHQV4PY.js.map +0 -1
  1522. package/lib/chunk-NRZBSJPM.js +0 -45
  1523. package/lib/chunk-NRZBSJPM.js.map +0 -1
  1524. package/lib/chunk-NTAREPLJ.js +0 -91
  1525. package/lib/chunk-NTAREPLJ.js.map +0 -1
  1526. package/lib/chunk-NVNPOVIQ.cjs +0 -46
  1527. package/lib/chunk-NVNPOVIQ.cjs.map +0 -1
  1528. package/lib/chunk-NWKIFDQH.cjs +0 -55
  1529. package/lib/chunk-NWKIFDQH.cjs.map +0 -1
  1530. package/lib/chunk-O3NWYOPV.cjs +0 -55
  1531. package/lib/chunk-O3NWYOPV.cjs.map +0 -1
  1532. package/lib/chunk-O66EZDG2.cjs +0 -53
  1533. package/lib/chunk-O66EZDG2.cjs.map +0 -1
  1534. package/lib/chunk-OA4DVMEQ.cjs +0 -59
  1535. package/lib/chunk-OA4DVMEQ.cjs.map +0 -1
  1536. package/lib/chunk-OA7RZ24N.js +0 -49
  1537. package/lib/chunk-OA7RZ24N.js.map +0 -1
  1538. package/lib/chunk-OEUSTDGS.cjs +0 -42
  1539. package/lib/chunk-OEUSTDGS.cjs.map +0 -1
  1540. package/lib/chunk-OH5533KN.cjs +0 -55
  1541. package/lib/chunk-OH5533KN.cjs.map +0 -1
  1542. package/lib/chunk-OL6PRNU5.js +0 -49
  1543. package/lib/chunk-OL6PRNU5.js.map +0 -1
  1544. package/lib/chunk-OPPZLGKC.js +0 -53
  1545. package/lib/chunk-OPPZLGKC.js.map +0 -1
  1546. package/lib/chunk-OSZIVS3X.cjs +0 -99
  1547. package/lib/chunk-OSZIVS3X.cjs.map +0 -1
  1548. package/lib/chunk-OV4JT553.cjs +0 -51
  1549. package/lib/chunk-OV4JT553.cjs.map +0 -1
  1550. package/lib/chunk-P2OLPCWV.cjs +0 -54
  1551. package/lib/chunk-P2OLPCWV.cjs.map +0 -1
  1552. package/lib/chunk-P7E2LQ6Q.js +0 -53
  1553. package/lib/chunk-P7E2LQ6Q.js.map +0 -1
  1554. package/lib/chunk-PA43CMMI.cjs +0 -55
  1555. package/lib/chunk-PA43CMMI.cjs.map +0 -1
  1556. package/lib/chunk-PBE4XAIR.cjs +0 -65
  1557. package/lib/chunk-PBE4XAIR.cjs.map +0 -1
  1558. package/lib/chunk-PBIARBZH.cjs +0 -51
  1559. package/lib/chunk-PBIARBZH.cjs.map +0 -1
  1560. package/lib/chunk-PLIS7EYD.js +0 -41
  1561. package/lib/chunk-PLIS7EYD.js.map +0 -1
  1562. package/lib/chunk-PXSMF4QS.cjs +0 -57
  1563. package/lib/chunk-PXSMF4QS.cjs.map +0 -1
  1564. package/lib/chunk-Q3ULISRX.cjs +0 -57
  1565. package/lib/chunk-Q3ULISRX.cjs.map +0 -1
  1566. package/lib/chunk-QB7GGVK7.js +0 -52
  1567. package/lib/chunk-QB7GGVK7.js.map +0 -1
  1568. package/lib/chunk-QGFAOPJG.cjs +0 -26
  1569. package/lib/chunk-QGFAOPJG.cjs.map +0 -1
  1570. package/lib/chunk-QPQRYXII.js +0 -44
  1571. package/lib/chunk-QPQRYXII.js.map +0 -1
  1572. package/lib/chunk-QVJM26QQ.cjs +0 -95
  1573. package/lib/chunk-QVJM26QQ.cjs.map +0 -1
  1574. package/lib/chunk-QXYNFQDJ.js +0 -24
  1575. package/lib/chunk-QXYNFQDJ.js.map +0 -1
  1576. package/lib/chunk-QYVJGMYT.cjs +0 -51
  1577. package/lib/chunk-QYVJGMYT.cjs.map +0 -1
  1578. package/lib/chunk-R2LRLUUY.js +0 -35
  1579. package/lib/chunk-R2LRLUUY.js.map +0 -1
  1580. package/lib/chunk-R5NSJSKB.js +0 -49
  1581. package/lib/chunk-R5NSJSKB.js.map +0 -1
  1582. package/lib/chunk-RAF3LK5T.cjs +0 -51
  1583. package/lib/chunk-RAF3LK5T.cjs.map +0 -1
  1584. package/lib/chunk-RHG3UVET.cjs +0 -44
  1585. package/lib/chunk-RHG3UVET.cjs.map +0 -1
  1586. package/lib/chunk-RJJQU44M.js +0 -45
  1587. package/lib/chunk-RJJQU44M.js.map +0 -1
  1588. package/lib/chunk-RK3E3UJ2.cjs +0 -61
  1589. package/lib/chunk-RK3E3UJ2.cjs.map +0 -1
  1590. package/lib/chunk-RZMSILW7.js +0 -71
  1591. package/lib/chunk-RZMSILW7.js.map +0 -1
  1592. package/lib/chunk-SDGSOWXI.js +0 -49
  1593. package/lib/chunk-SDGSOWXI.js.map +0 -1
  1594. package/lib/chunk-SFFSVEXJ.js +0 -55
  1595. package/lib/chunk-SFFSVEXJ.js.map +0 -1
  1596. package/lib/chunk-SKETQJTW.cjs +0 -59
  1597. package/lib/chunk-SKETQJTW.cjs.map +0 -1
  1598. package/lib/chunk-SRW7OWVS.cjs +0 -40
  1599. package/lib/chunk-SRW7OWVS.cjs.map +0 -1
  1600. package/lib/chunk-SWBSSC3A.js +0 -97
  1601. package/lib/chunk-SWBSSC3A.js.map +0 -1
  1602. package/lib/chunk-SXPZRQBF.js +0 -49
  1603. package/lib/chunk-SXPZRQBF.js.map +0 -1
  1604. package/lib/chunk-T2VDBKD4.js +0 -44
  1605. package/lib/chunk-T2VDBKD4.js.map +0 -1
  1606. package/lib/chunk-T5AO4445.cjs +0 -49
  1607. package/lib/chunk-T5AO4445.cjs.map +0 -1
  1608. package/lib/chunk-TE3N57V6.js +0 -40
  1609. package/lib/chunk-TE3N57V6.js.map +0 -1
  1610. package/lib/chunk-TFJYQUEH.cjs +0 -51
  1611. package/lib/chunk-TFJYQUEH.cjs.map +0 -1
  1612. package/lib/chunk-TIINXXHU.cjs +0 -46
  1613. package/lib/chunk-TIINXXHU.cjs.map +0 -1
  1614. package/lib/chunk-TLOIOTYF.cjs +0 -66
  1615. package/lib/chunk-TLOIOTYF.cjs.map +0 -1
  1616. package/lib/chunk-TWL4WEOL.js +0 -49
  1617. package/lib/chunk-TWL4WEOL.js.map +0 -1
  1618. package/lib/chunk-TZAGUXNS.cjs +0 -61
  1619. package/lib/chunk-TZAGUXNS.cjs.map +0 -1
  1620. package/lib/chunk-U22VLCMN.cjs +0 -284
  1621. package/lib/chunk-U22VLCMN.cjs.map +0 -1
  1622. package/lib/chunk-U25QRMJY.js +0 -28
  1623. package/lib/chunk-U25QRMJY.js.map +0 -1
  1624. package/lib/chunk-U4ELOYK7.cjs +0 -42
  1625. package/lib/chunk-U4ELOYK7.cjs.map +0 -1
  1626. package/lib/chunk-U7OGOZ5B.cjs +0 -51
  1627. package/lib/chunk-U7OGOZ5B.cjs.map +0 -1
  1628. package/lib/chunk-UEDVN7C4.js +0 -49
  1629. package/lib/chunk-UEDVN7C4.js.map +0 -1
  1630. package/lib/chunk-UEQ3CRVM.cjs +0 -50
  1631. package/lib/chunk-UEQ3CRVM.cjs.map +0 -1
  1632. package/lib/chunk-UG5XMVH3.cjs +0 -50
  1633. package/lib/chunk-UG5XMVH3.cjs.map +0 -1
  1634. package/lib/chunk-URMWXBVU.cjs +0 -99
  1635. package/lib/chunk-URMWXBVU.cjs.map +0 -1
  1636. package/lib/chunk-UUY77JM3.js +0 -151
  1637. package/lib/chunk-UUY77JM3.js.map +0 -1
  1638. package/lib/chunk-UWM5SGDS.js +0 -65
  1639. package/lib/chunk-UWM5SGDS.js.map +0 -1
  1640. package/lib/chunk-VDC2LQMB.cjs +0 -57
  1641. package/lib/chunk-VDC2LQMB.cjs.map +0 -1
  1642. package/lib/chunk-VEBN2D2K.js +0 -53
  1643. package/lib/chunk-VEBN2D2K.js.map +0 -1
  1644. package/lib/chunk-VGMMPMUL.js +0 -55
  1645. package/lib/chunk-VGMMPMUL.js.map +0 -1
  1646. package/lib/chunk-VKNNJ5CS.js +0 -49
  1647. package/lib/chunk-VKNNJ5CS.js.map +0 -1
  1648. package/lib/chunk-VO5QTCJ4.js +0 -97
  1649. package/lib/chunk-VO5QTCJ4.js.map +0 -1
  1650. package/lib/chunk-VRJJX4JV.js +0 -40
  1651. package/lib/chunk-VRJJX4JV.js.map +0 -1
  1652. package/lib/chunk-VT5HP44I.js +0 -49
  1653. package/lib/chunk-VT5HP44I.js.map +0 -1
  1654. package/lib/chunk-VUVL5VPT.js +0 -49
  1655. package/lib/chunk-VUVL5VPT.js.map +0 -1
  1656. package/lib/chunk-VZGJGOH3.js +0 -55
  1657. package/lib/chunk-VZGJGOH3.js.map +0 -1
  1658. package/lib/chunk-W2EFIUTW.js +0 -40
  1659. package/lib/chunk-W2EFIUTW.js.map +0 -1
  1660. package/lib/chunk-WAC3LO4S.cjs +0 -51
  1661. package/lib/chunk-WAC3LO4S.cjs.map +0 -1
  1662. package/lib/chunk-WFBWZVOK.js +0 -77
  1663. package/lib/chunk-WFBWZVOK.js.map +0 -1
  1664. package/lib/chunk-WK3SIZUG.js +0 -41
  1665. package/lib/chunk-WK3SIZUG.js.map +0 -1
  1666. package/lib/chunk-WLTZ66G4.cjs +0 -38
  1667. package/lib/chunk-WLTZ66G4.cjs.map +0 -1
  1668. package/lib/chunk-WO4S2ZUQ.js +0 -49
  1669. package/lib/chunk-WO4S2ZUQ.js.map +0 -1
  1670. package/lib/chunk-XD7GS4QW.js +0 -20
  1671. package/lib/chunk-XD7GS4QW.js.map +0 -1
  1672. package/lib/chunk-XFHMLWZM.js +0 -63
  1673. package/lib/chunk-XFHMLWZM.js.map +0 -1
  1674. package/lib/chunk-XKERR6OR.js +0 -276
  1675. package/lib/chunk-XKERR6OR.js.map +0 -1
  1676. package/lib/chunk-XOVAUMDC.cjs +0 -55
  1677. package/lib/chunk-XOVAUMDC.cjs.map +0 -1
  1678. package/lib/chunk-XYBXDS3Z.cjs +0 -30
  1679. package/lib/chunk-XYBXDS3Z.cjs.map +0 -1
  1680. package/lib/chunk-Y3NZRCF4.js +0 -49
  1681. package/lib/chunk-Y3NZRCF4.js.map +0 -1
  1682. package/lib/chunk-YDMB4XPA.cjs +0 -57
  1683. package/lib/chunk-YDMB4XPA.cjs.map +0 -1
  1684. package/lib/chunk-YIABS6K6.js +0 -57
  1685. package/lib/chunk-YIABS6K6.js.map +0 -1
  1686. package/lib/chunk-YII77MGK.cjs +0 -99
  1687. package/lib/chunk-YII77MGK.cjs.map +0 -1
  1688. package/lib/chunk-YPGYBULL.cjs +0 -33
  1689. package/lib/chunk-YPGYBULL.cjs.map +0 -1
  1690. package/lib/chunk-YTXFX5LA.js +0 -27
  1691. package/lib/chunk-YTXFX5LA.js.map +0 -1
  1692. package/lib/chunk-YVF52KQK.js +0 -58
  1693. package/lib/chunk-YVF52KQK.js.map +0 -1
  1694. package/lib/chunk-YX4ZQEON.cjs +0 -67
  1695. package/lib/chunk-YX4ZQEON.cjs.map +0 -1
  1696. package/lib/chunk-YY5ENJSH.cjs +0 -63
  1697. package/lib/chunk-YY5ENJSH.cjs.map +0 -1
  1698. package/lib/chunk-YYI4OFL3.js +0 -48
  1699. package/lib/chunk-YYI4OFL3.js.map +0 -1
  1700. package/lib/chunk-YZZQ7GVQ.js +0 -65
  1701. package/lib/chunk-YZZQ7GVQ.js.map +0 -1
  1702. package/lib/chunk-Z66CWIH5.cjs +0 -51
  1703. package/lib/chunk-Z66CWIH5.cjs.map +0 -1
  1704. package/lib/chunk-ZLFWYCCG.cjs +0 -34
  1705. package/lib/chunk-ZLFWYCCG.cjs.map +0 -1
  1706. package/lib/chunk-ZPEK2ZCL.cjs +0 -55
  1707. package/lib/chunk-ZPEK2ZCL.cjs.map +0 -1
  1708. package/lib/chunk-ZSG25S6U.cjs +0 -51
  1709. package/lib/chunk-ZSG25S6U.cjs.map +0 -1
  1710. package/lib/chunk-ZSH3A37I.js +0 -55
  1711. package/lib/chunk-ZSH3A37I.js.map +0 -1
  1712. package/lib/chunk-ZSWW2XGD.cjs +0 -57
  1713. package/lib/chunk-ZSWW2XGD.cjs.map +0 -1
  1714. package/lib/chunk-ZU7GFVQ6.js +0 -153
  1715. package/lib/chunk-ZU7GFVQ6.js.map +0 -1
  1716. package/lib/chunk-ZWVME7CU.cjs +0 -153
  1717. package/lib/chunk-ZWVME7CU.cjs.map +0 -1
  1718. package/lib/chunk-ZYAGX4RM.js +0 -69
  1719. package/lib/chunk-ZYAGX4RM.js.map +0 -1
  1720. package/lib/chunk-ZZOSKORP.cjs +0 -47
  1721. package/lib/chunk-ZZOSKORP.cjs.map +0 -1
  1722. package/lib/interceptor-ETmS7Tab.d.cts +0 -55
  1723. package/lib/interceptor-ETmS7Tab.d.ts +0 -55
@@ -1,65 +0,0 @@
1
- 'use strict';
2
-
3
- var chunkU22VLCMN_cjs = require('./chunk-U22VLCMN.cjs');
4
-
5
- // src/resources/payment_methods.ts
6
- var PaymentMethods = class _PaymentMethods extends chunkU22VLCMN_cjs.ApiResource {
7
- static TYPE = "payment_methods";
8
- async create(resource, params, options) {
9
- return this.resources.create({ ...resource, type: _PaymentMethods.TYPE }, params, options);
10
- }
11
- async update(resource, params, options) {
12
- return this.resources.update({ ...resource, type: _PaymentMethods.TYPE }, params, options);
13
- }
14
- async delete(id, options) {
15
- await this.resources.delete(typeof id === "string" ? { id, type: _PaymentMethods.TYPE } : id, options);
16
- }
17
- async market(paymentMethodId, params, options) {
18
- const _paymentMethodId = paymentMethodId.id || paymentMethodId;
19
- return this.resources.fetch({ type: "markets" }, `payment_methods/${_paymentMethodId}/market`, params, options);
20
- }
21
- async payment_gateway(paymentMethodId, params, options) {
22
- const _paymentMethodId = paymentMethodId.id || paymentMethodId;
23
- return this.resources.fetch({ type: "payment_gateways" }, `payment_methods/${_paymentMethodId}/payment_gateway`, params, options);
24
- }
25
- async store(paymentMethodId, params, options) {
26
- const _paymentMethodId = paymentMethodId.id || paymentMethodId;
27
- return this.resources.fetch({ type: "stores" }, `payment_methods/${_paymentMethodId}/store`, params, options);
28
- }
29
- async attachments(paymentMethodId, params, options) {
30
- const _paymentMethodId = paymentMethodId.id || paymentMethodId;
31
- return this.resources.fetch({ type: "attachments" }, `payment_methods/${_paymentMethodId}/attachments`, params, options);
32
- }
33
- async versions(paymentMethodId, params, options) {
34
- const _paymentMethodId = paymentMethodId.id || paymentMethodId;
35
- return this.resources.fetch({ type: "versions" }, `payment_methods/${_paymentMethodId}/versions`, params, options);
36
- }
37
- async event_stores(paymentMethodId, params, options) {
38
- const _paymentMethodId = paymentMethodId.id || paymentMethodId;
39
- return this.resources.fetch({ type: "event_stores" }, `payment_methods/${_paymentMethodId}/event_stores`, params, options);
40
- }
41
- async _disable(id, params, options) {
42
- return this.resources.update({ id: typeof id === "string" ? id : id.id, type: _PaymentMethods.TYPE, _disable: true }, params, options);
43
- }
44
- async _enable(id, params, options) {
45
- return this.resources.update({ id: typeof id === "string" ? id : id.id, type: _PaymentMethods.TYPE, _enable: true }, params, options);
46
- }
47
- isPaymentMethod(resource) {
48
- return resource.type && resource.type === _PaymentMethods.TYPE;
49
- }
50
- relationship(id) {
51
- return super.relationshipOneToOne(id);
52
- }
53
- relationshipToMany(...ids) {
54
- return super.relationshipOneToMany(...ids);
55
- }
56
- type() {
57
- return _PaymentMethods.TYPE;
58
- }
59
- };
60
- var instance = new PaymentMethods();
61
- var payment_methods_default = instance;
62
-
63
- exports.payment_methods_default = payment_methods_default;
64
- //# sourceMappingURL=chunk-H7EX22DB.cjs.map
65
- //# sourceMappingURL=chunk-H7EX22DB.cjs.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../src/resources/payment_methods.ts"],"names":["ApiResource"],"mappings":";;;;;AAgOA,IAAM,cAAA,GAAN,MAAM,eAAA,SAAuBA,6BAAA,CAA2B;AAAA,EAEvD,OAAgB,IAAA,GAA0B,iBAAA;AAAA,EAE1C,MAAM,MAAA,CAAO,QAAA,EAA+B,MAAA,EAA6C,OAAA,EAAmD;AAC3I,IAAA,OAAO,IAAA,CAAK,SAAA,CAAU,MAAA,CAA2C,EAAE,GAAG,QAAA,EAAU,IAAA,EAAM,eAAA,CAAe,IAAA,EAAK,EAAG,MAAA,EAAQ,OAAO,CAAA;AAAA,EAC7H;AAAA,EAEA,MAAM,MAAA,CAAO,QAAA,EAA+B,MAAA,EAA6C,OAAA,EAAmD;AAC3I,IAAA,OAAO,IAAA,CAAK,SAAA,CAAU,MAAA,CAA2C,EAAE,GAAG,QAAA,EAAU,IAAA,EAAM,eAAA,CAAe,IAAA,EAAK,EAAG,MAAA,EAAQ,OAAO,CAAA;AAAA,EAC7H;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,EAAM,eAAA,CAAe,IAAA,EAAK,GAAI,IAAI,OAAO,CAAA;AAAA,EACtG;A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A,EAA0C;AACzD,IAAA,OAAO,QAAA,CAAS,IAAA,IAAS,QAAA,CAAS,IAAA,KAAS,eAAA,CAAe,IAAA;AAAA,EAC3D;AAAA,EAGA,aAAa,EAAA,EAAkD;AAC9D,IAAA,OAAO,KAAA,CAAM,qBAAuC,EAAE,CAAA;AAAA,EACvD;AAAA,EAEA,sBAAsB,GAAA,EAAmC;AACxD,IAAA,OAAO,KAAA,CAAM,qBAAA,CAAwC,GAAG,GAAG,CAAA;AAAA,EAC5D;AAAA,EAGA,IAAA,GAA0B;AACzB,IAAA,OAAO,eAAA,CAAe,IAAA;AAAA,EACvB;AAED,CAAA;AAGA,IAAM,QAAA,GAAW,IAAI,cAAA,EAAe;AACpC,IAAO,uBAAA,GAAQ","file":"chunk-H7EX22DB.cjs","sourcesContent":["import { ApiResource } from '../resource'\nimport type { Resource, ResourceCreate, ResourceUpdate, ResourceId, ResourcesConfig, ResourceRel, ListResponse, ResourceSort, /* ResourceFilter */ } from '../resource'\nimport type { QueryParamsRetrieve, QueryParamsList } from '../query'\n\nimport type { Market, MarketType } from './markets'\nimport type { PaymentGateway, PaymentGatewayType } from './payment_gateways'\nimport type { Store, StoreType } from './stores'\nimport type { Attachment } from './attachments'\nimport type { Version } from './versions'\nimport type { EventStore } from './event_stores'\n\n\ntype PaymentMethodType = 'payment_methods'\ntype PaymentMethodRel = ResourceRel & { type: PaymentMethodType }\ntype MarketRel = ResourceRel & { type: MarketType }\ntype PaymentGatewayRel = ResourceRel & { type: PaymentGatewayType }\ntype StoreRel = ResourceRel & { type: StoreType }\n\n\nexport type PaymentMethodSort = Pick<PaymentMethod, 'id' | 'name' | 'payment_source_type' | 'currency_code' | 'price_amount_cents' | 'disabled_at'> & ResourceSort\n// export type PaymentMethodFilter = Pick<PaymentMethod, 'id' | 'name' | 'payment_source_type' | 'currency_code' | 'price_amount_cents' | 'disabled_at'> & ResourceFilter\n\n\ninterface PaymentMethod extends Resource {\n\t\n\treadonly type: PaymentMethodType\n\n\t/** \n\t * The payment method's internal name.\n\t * @example ```\"Stripe Payment\"```\n\t */\n\tname?: string | null\n\t/** \n\t * The payment source type. One of 'adyen_payments', 'axerve_payments', 'braintree_payments', 'checkout_com_payments', 'external_payments', 'klarna_payments', 'paypal_payments', 'satispay_payments', 'stripe_payments', or 'wire_transfers'.\n\t * @example ```\"stripe_payments\"```\n\t */\n\tpayment_source_type: 'adyen_payments' | 'axerve_payments' | 'braintree_payments' | 'checkout_com_payments' | 'external_payments' | 'klarna_payments' | 'paypal_payments' | 'satispay_payments' | 'stripe_payments' | 'wire_transfers'\n\t/** \n\t * The international 3-letter currency code as defined by the ISO 4217 standard.\n\t * @example ```\"EUR\"```\n\t */\n\tcurrency_code?: string | null\n\t/** \n\t * Send this attribute if you want to mark the payment as MOTO, must be supported by payment gateway.\n\t */\n\tmoto?: boolean | null\n\t/** \n\t * Send this attribute if you want to require the payment capture before fulfillment.\n\t * @example ```true```\n\t */\n\trequire_capture?: boolean | null\n\t/** \n\t * Send this attribute if you want to automatically place the order upon authorization performed asynchronously.\n\t * @example ```true```\n\t */\n\tauto_place?: boolean | null\n\t/** \n\t * Send this attribute if you want to automatically capture the payment upon authorization.\n\t */\n\tauto_capture?: boolean | null\n\t/** \n\t * The payment method's price, in cents.\n\t */\n\tprice_amount_cents: number\n\t/** \n\t * The payment method's price, float.\n\t */\n\tprice_amount_float?: number | null\n\t/** \n\t * The payment method's price, formatted.\n\t * @example ```\"€0,00\"```\n\t */\n\tformatted_price_amount?: string | null\n\t/** \n\t * Send this attribute if you want to limit automatic capture to orders for which the total amount is equal or less than the specified value, in cents.\n\t */\n\tauto_capture_max_amount_cents?: number | null\n\t/** \n\t * The automatic capture max amount, float.\n\t */\n\tauto_capture_max_amount_float?: number | null\n\t/** \n\t * The automatic capture max amount, formatted.\n\t * @example ```\"€0,00\"```\n\t */\n\tformatted_auto_capture_max_amount?: string | 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\n\tmarket?: Market | null\n\tpayment_gateway?: PaymentGateway | null\n\tstore?: Store | null\n\tattachments?: Attachment[] | null\n\tversions?: Version[] | null\n\tevent_stores?: EventStore[] | null\n\n}\n\n\ninterface PaymentMethodCreate extends ResourceCreate {\n\t\n\t/** \n\t * The payment method's internal name.\n\t * @example ```\"Stripe Payment\"```\n\t */\n\tname?: string | null\n\t/** \n\t * The payment source type. One of 'adyen_payments', 'axerve_payments', 'braintree_payments', 'checkout_com_payments', 'external_payments', 'klarna_payments', 'paypal_payments', 'satispay_payments', 'stripe_payments', or 'wire_transfers'.\n\t * @example ```\"stripe_payments\"```\n\t */\n\tpayment_source_type: 'adyen_payments' | 'axerve_payments' | 'braintree_payments' | 'checkout_com_payments' | 'external_payments' | 'klarna_payments' | 'paypal_payments' | 'satispay_payments' | 'stripe_payments' | 'wire_transfers'\n\t/** \n\t * The international 3-letter currency code as defined by the ISO 4217 standard.\n\t * @example ```\"EUR\"```\n\t */\n\tcurrency_code?: string | null\n\t/** \n\t * Send this attribute if you want to mark the payment as MOTO, must be supported by payment gateway.\n\t */\n\tmoto?: boolean | null\n\t/** \n\t * Send this attribute if you want to require the payment capture before fulfillment.\n\t * @example ```true```\n\t */\n\trequire_capture?: boolean | null\n\t/** \n\t * Send this attribute if you want to automatically place the order upon authorization performed asynchronously.\n\t * @example ```true```\n\t */\n\tauto_place?: boolean | null\n\t/** \n\t * Send this attribute if you want to automatically capture the payment upon authorization.\n\t */\n\tauto_capture?: boolean | null\n\t/** \n\t * The payment method's price, in cents.\n\t */\n\tprice_amount_cents: number\n\t/** \n\t * Send this attribute if you want to limit automatic capture to orders for which the total amount is equal or less than the specified value, in cents.\n\t */\n\tauto_capture_max_amount_cents?: 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\n\tmarket?: MarketRel | null\n\tpayment_gateway: PaymentGatewayRel\n\tstore?: StoreRel | null\n\n}\n\n\ninterface PaymentMethodUpdate extends ResourceUpdate {\n\t\n\t/** \n\t * The payment method's internal name.\n\t * @example ```\"Stripe Payment\"```\n\t */\n\tname?: string | null\n\t/** \n\t * The payment source type. One of 'adyen_payments', 'axerve_payments', 'braintree_payments', 'checkout_com_payments', 'external_payments', 'klarna_payments', 'paypal_payments', 'satispay_payments', 'stripe_payments', or 'wire_transfers'.\n\t * @example ```\"stripe_payments\"```\n\t */\n\tpayment_source_type?: 'adyen_payments' | 'axerve_payments' | 'braintree_payments' | 'checkout_com_payments' | 'external_payments' | 'klarna_payments' | 'paypal_payments' | 'satispay_payments' | 'stripe_payments' | 'wire_transfers' | null\n\t/** \n\t * The international 3-letter currency code as defined by the ISO 4217 standard.\n\t * @example ```\"EUR\"```\n\t */\n\tcurrency_code?: string | null\n\t/** \n\t * Send this attribute if you want to mark the payment as MOTO, must be supported by payment gateway.\n\t */\n\tmoto?: boolean | null\n\t/** \n\t * Send this attribute if you want to require the payment capture before fulfillment.\n\t * @example ```true```\n\t */\n\trequire_capture?: boolean | null\n\t/** \n\t * Send this attribute if you want to automatically place the order upon authorization performed asynchronously.\n\t * @example ```true```\n\t */\n\tauto_place?: boolean | null\n\t/** \n\t * Send this attribute if you want to automatically capture the payment upon authorization.\n\t */\n\tauto_capture?: boolean | null\n\t/** \n\t * The payment method's price, in cents.\n\t */\n\tprice_amount_cents?: number | null\n\t/** \n\t * Send this attribute if you want to limit automatic capture to orders for which the total amount is equal or less than the specified value, in cents.\n\t */\n\tauto_capture_max_amount_cents?: 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\n\tmarket?: MarketRel | null\n\tpayment_gateway?: PaymentGatewayRel | null\n\tstore?: StoreRel | null\n\n}\n\n\nclass PaymentMethods extends ApiResource<PaymentMethod> {\n\n\tstatic readonly TYPE: PaymentMethodType = 'payment_methods' as const\n\n\tasync create(resource: PaymentMethodCreate, params?: QueryParamsRetrieve<PaymentMethod>, options?: ResourcesConfig): Promise<PaymentMethod> {\n\t\treturn this.resources.create<PaymentMethodCreate, PaymentMethod>({ ...resource, type: PaymentMethods.TYPE }, params, options)\n\t}\n\n\tasync update(resource: PaymentMethodUpdate, params?: QueryParamsRetrieve<PaymentMethod>, options?: ResourcesConfig): Promise<PaymentMethod> {\n\t\treturn this.resources.update<PaymentMethodUpdate, PaymentMethod>({ ...resource, type: PaymentMethods.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: PaymentMethods.TYPE } : id, options)\n\t}\n\n\tasync market(paymentMethodId: string | PaymentMethod, params?: QueryParamsRetrieve<Market>, options?: ResourcesConfig): Promise<Market> {\n\t\tconst _paymentMethodId = (paymentMethodId as PaymentMethod).id || paymentMethodId as string\n\t\treturn this.resources.fetch<Market>({ type: 'markets' }, `payment_methods/${_paymentMethodId}/market`, params, options) as unknown as Market\n\t}\n\n\tasync payment_gateway(paymentMethodId: string | PaymentMethod, params?: QueryParamsRetrieve<PaymentGateway>, options?: ResourcesConfig): Promise<PaymentGateway> {\n\t\tconst _paymentMethodId = (paymentMethodId as PaymentMethod).id || paymentMethodId as string\n\t\treturn this.resources.fetch<PaymentGateway>({ type: 'payment_gateways' }, `payment_methods/${_paymentMethodId}/payment_gateway`, params, options) as unknown as PaymentGateway\n\t}\n\n\tasync store(paymentMethodId: string | PaymentMethod, params?: QueryParamsRetrieve<Store>, options?: ResourcesConfig): Promise<Store> {\n\t\tconst _paymentMethodId = (paymentMethodId as PaymentMethod).id || paymentMethodId as string\n\t\treturn this.resources.fetch<Store>({ type: 'stores' }, `payment_methods/${_paymentMethodId}/store`, params, options) as unknown as Store\n\t}\n\n\tasync attachments(paymentMethodId: string | PaymentMethod, params?: QueryParamsList<Attachment>, options?: ResourcesConfig): Promise<ListResponse<Attachment>> {\n\t\tconst _paymentMethodId = (paymentMethodId as PaymentMethod).id || paymentMethodId as string\n\t\treturn this.resources.fetch<Attachment>({ type: 'attachments' }, `payment_methods/${_paymentMethodId}/attachments`, params, options) as unknown as ListResponse<Attachment>\n\t}\n\n\tasync versions(paymentMethodId: string | PaymentMethod, params?: QueryParamsList<Version>, options?: ResourcesConfig): Promise<ListResponse<Version>> {\n\t\tconst _paymentMethodId = (paymentMethodId as PaymentMethod).id || paymentMethodId as string\n\t\treturn this.resources.fetch<Version>({ type: 'versions' }, `payment_methods/${_paymentMethodId}/versions`, params, options) as unknown as ListResponse<Version>\n\t}\n\n\tasync event_stores(paymentMethodId: string | PaymentMethod, params?: QueryParamsList<EventStore>, options?: ResourcesConfig): Promise<ListResponse<EventStore>> {\n\t\tconst _paymentMethodId = (paymentMethodId as PaymentMethod).id || paymentMethodId as string\n\t\treturn this.resources.fetch<EventStore>({ type: 'event_stores' }, `payment_methods/${_paymentMethodId}/event_stores`, params, options) as unknown as ListResponse<EventStore>\n\t}\n\n\tasync _disable(id: string | PaymentMethod, params?: QueryParamsRetrieve<PaymentMethod>, options?: ResourcesConfig): Promise<PaymentMethod> {\n\t\treturn this.resources.update<PaymentMethodUpdate, PaymentMethod>({ id: (typeof id === 'string')? id: id.id, type: PaymentMethods.TYPE, _disable: true }, params, options)\n\t}\n\n\tasync _enable(id: string | PaymentMethod, params?: QueryParamsRetrieve<PaymentMethod>, options?: ResourcesConfig): Promise<PaymentMethod> {\n\t\treturn this.resources.update<PaymentMethodUpdate, PaymentMethod>({ id: (typeof id === 'string')? id: id.id, type: PaymentMethods.TYPE, _enable: true }, params, options)\n\t}\n\n\n\tisPaymentMethod(resource: any): resource is PaymentMethod {\n\t\treturn resource.type && (resource.type === PaymentMethods.TYPE)\n\t}\n\n\n\trelationship(id: string | ResourceId | null): PaymentMethodRel {\n\t\treturn super.relationshipOneToOne<PaymentMethodRel>(id)\n\t}\n\n\trelationshipToMany(...ids: string[]): PaymentMethodRel[] {\n\t\treturn super.relationshipOneToMany<PaymentMethodRel>(...ids)\n\t}\n\n\n\ttype(): PaymentMethodType {\n\t\treturn PaymentMethods.TYPE\n\t}\n\n}\n\n\nconst instance = new PaymentMethods()\nexport default instance\n\nexport type { PaymentMethods, PaymentMethod, PaymentMethodCreate, PaymentMethodUpdate, PaymentMethodType }\n"]}
@@ -1,91 +0,0 @@
1
- import { ApiResource } from './chunk-XKERR6OR.js';
2
-
3
- // src/resources/stock_transfers.ts
4
- var StockTransfers = class _StockTransfers extends ApiResource {
5
- static TYPE = "stock_transfers";
6
- async create(resource, params, options) {
7
- return this.resources.create({ ...resource, type: _StockTransfers.TYPE }, params, options);
8
- }
9
- async update(resource, params, options) {
10
- return this.resources.update({ ...resource, type: _StockTransfers.TYPE }, params, options);
11
- }
12
- async delete(id, options) {
13
- await this.resources.delete(typeof id === "string" ? { id, type: _StockTransfers.TYPE } : id, options);
14
- }
15
- async sku(stockTransferId, params, options) {
16
- const _stockTransferId = stockTransferId.id || stockTransferId;
17
- return this.resources.fetch({ type: "skus" }, `stock_transfers/${_stockTransferId}/sku`, params, options);
18
- }
19
- async origin_stock_location(stockTransferId, params, options) {
20
- const _stockTransferId = stockTransferId.id || stockTransferId;
21
- return this.resources.fetch({ type: "stock_locations" }, `stock_transfers/${_stockTransferId}/origin_stock_location`, params, options);
22
- }
23
- async destination_stock_location(stockTransferId, params, options) {
24
- const _stockTransferId = stockTransferId.id || stockTransferId;
25
- return this.resources.fetch({ type: "stock_locations" }, `stock_transfers/${_stockTransferId}/destination_stock_location`, params, options);
26
- }
27
- async shipment(stockTransferId, params, options) {
28
- const _stockTransferId = stockTransferId.id || stockTransferId;
29
- return this.resources.fetch({ type: "shipments" }, `stock_transfers/${_stockTransferId}/shipment`, params, options);
30
- }
31
- async line_item(stockTransferId, params, options) {
32
- const _stockTransferId = stockTransferId.id || stockTransferId;
33
- return this.resources.fetch({ type: "line_items" }, `stock_transfers/${_stockTransferId}/line_item`, params, options);
34
- }
35
- async stock_reservation(stockTransferId, params, options) {
36
- const _stockTransferId = stockTransferId.id || stockTransferId;
37
- return this.resources.fetch({ type: "stock_reservations" }, `stock_transfers/${_stockTransferId}/stock_reservation`, params, options);
38
- }
39
- async attachments(stockTransferId, params, options) {
40
- const _stockTransferId = stockTransferId.id || stockTransferId;
41
- return this.resources.fetch({ type: "attachments" }, `stock_transfers/${_stockTransferId}/attachments`, params, options);
42
- }
43
- async events(stockTransferId, params, options) {
44
- const _stockTransferId = stockTransferId.id || stockTransferId;
45
- return this.resources.fetch({ type: "events" }, `stock_transfers/${_stockTransferId}/events`, params, options);
46
- }
47
- async versions(stockTransferId, params, options) {
48
- const _stockTransferId = stockTransferId.id || stockTransferId;
49
- return this.resources.fetch({ type: "versions" }, `stock_transfers/${_stockTransferId}/versions`, params, options);
50
- }
51
- async event_stores(stockTransferId, params, options) {
52
- const _stockTransferId = stockTransferId.id || stockTransferId;
53
- return this.resources.fetch({ type: "event_stores" }, `stock_transfers/${_stockTransferId}/event_stores`, params, options);
54
- }
55
- async _upcoming(id, params, options) {
56
- return this.resources.update({ id: typeof id === "string" ? id : id.id, type: _StockTransfers.TYPE, _upcoming: true }, params, options);
57
- }
58
- async _on_hold(id, params, options) {
59
- return this.resources.update({ id: typeof id === "string" ? id : id.id, type: _StockTransfers.TYPE, _on_hold: true }, params, options);
60
- }
61
- async _picking(id, params, options) {
62
- return this.resources.update({ id: typeof id === "string" ? id : id.id, type: _StockTransfers.TYPE, _picking: true }, params, options);
63
- }
64
- async _in_transit(id, params, options) {
65
- return this.resources.update({ id: typeof id === "string" ? id : id.id, type: _StockTransfers.TYPE, _in_transit: true }, params, options);
66
- }
67
- async _complete(id, params, options) {
68
- return this.resources.update({ id: typeof id === "string" ? id : id.id, type: _StockTransfers.TYPE, _complete: true }, params, options);
69
- }
70
- async _cancel(id, params, options) {
71
- return this.resources.update({ id: typeof id === "string" ? id : id.id, type: _StockTransfers.TYPE, _cancel: true }, params, options);
72
- }
73
- isStockTransfer(resource) {
74
- return resource.type && resource.type === _StockTransfers.TYPE;
75
- }
76
- relationship(id) {
77
- return super.relationshipOneToOne(id);
78
- }
79
- relationshipToMany(...ids) {
80
- return super.relationshipOneToMany(...ids);
81
- }
82
- type() {
83
- return _StockTransfers.TYPE;
84
- }
85
- };
86
- var instance = new StockTransfers();
87
- var stock_transfers_default = instance;
88
-
89
- export { stock_transfers_default };
90
- //# sourceMappingURL=chunk-HBDXHKBE.js.map
91
- //# sourceMappingURL=chunk-HBDXHKBE.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../src/resources/stock_transfers.ts"],"names":[],"mappings":";;;AA+KA,IAAM,cAAA,GAAN,MAAM,eAAA,SAAuB,WAAA,CAA2B;AAAA,EAEvD,OAAgB,IAAA,GAA0B,iBAAA;AAAA,EAE1C,MAAM,MAAA,CAAO,QAAA,EAA+B,MAAA,EAA6C,OAAA,EAAmD;AAC3I,IAAA,OAAO,IAAA,CAAK,SAAA,CAAU,MAAA,CAA2C,EAAE,GAAG,QAAA,EAAU,IAAA,EAAM,eAAA,CAAe,IAAA,EAAK,EAAG,MAAA,EAAQ,OAAO,CAAA;AAAA,EAC7H;AAAA,EAEA,MAAM,MAAA,CAAO,QAAA,EAA+B,MAAA,EAA6C,OAAA,EAAmD;AAC3I,IAAA,OAAO,IAAA,CAAK,SAAA,CAAU,MAAA,CAA2C,EAAE,GAAG,QAAA,EAAU,IAAA,EAAM,eAAA,CAAe,IAAA,EAAK,EAAG,MAAA,EAAQ,OAAO,CAAA;AAAA,EAC7H;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,EAAM,eAAA,CAAe,I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C;AACzD,IAAA,OAAO,QAAA,CAAS,IAAA,IAAS,QAAA,CAAS,IAAA,KAAS,eAAA,CAAe,IAAA;AAAA,EAC3D;AAAA,EAGA,aAAa,EAAA,EAAkD;AAC9D,IAAA,OAAO,KAAA,CAAM,qBAAuC,EAAE,CAAA;AAAA,EACvD;AAAA,EAEA,sBAAsB,GAAA,EAAmC;AACxD,IAAA,OAAO,KAAA,CAAM,qBAAA,CAAwC,GAAG,GAAG,CAAA;AAAA,EAC5D;AAAA,EAGA,IAAA,GAA0B;AACzB,IAAA,OAAO,eAAA,CAAe,IAAA;AAAA,EACvB;AAED,CAAA;AAGA,IAAM,QAAA,GAAW,IAAI,cAAA,EAAe;AACpC,IAAO,uBAAA,GAAQ","file":"chunk-HBDXHKBE.js","sourcesContent":["import { ApiResource } from '../resource'\nimport type { Resource, ResourceCreate, ResourceUpdate, ResourceId, ResourcesConfig, ResourceRel, ListResponse, ResourceSort, /* ResourceFilter */ } from '../resource'\nimport type { QueryParamsRetrieve, QueryParamsList } from '../query'\n\nimport type { Sku, SkuType } from './skus'\nimport type { StockLocation, StockLocationType } from './stock_locations'\nimport type { Shipment, ShipmentType } from './shipments'\nimport type { LineItem, LineItemType } from './line_items'\nimport type { StockReservation } from './stock_reservations'\nimport type { Attachment } from './attachments'\nimport type { Event } from './events'\nimport type { Version } from './versions'\nimport type { EventStore } from './event_stores'\n\n\ntype StockTransferType = 'stock_transfers'\ntype StockTransferRel = ResourceRel & { type: StockTransferType }\ntype SkuRel = ResourceRel & { type: SkuType }\ntype StockLocationRel = ResourceRel & { type: StockLocationType }\ntype ShipmentRel = ResourceRel & { type: ShipmentType }\ntype LineItemRel = ResourceRel & { type: LineItemType }\n\n\nexport type StockTransferSort = Pick<StockTransfer, 'id' | 'number' | 'status' | 'quantity' | 'on_hold_at' | 'picking_at' | 'in_transit_at' | 'completed_at' | 'cancelled_at'> & ResourceSort\n// export type StockTransferFilter = Pick<StockTransfer, 'id' | 'number' | 'status' | 'quantity' | 'on_hold_at' | 'picking_at' | 'in_transit_at' | 'completed_at' | 'cancelled_at'> & ResourceFilter\n\n\ninterface StockTransfer extends Resource {\n\t\n\treadonly type: StockTransferType\n\n\t/** \n\t * Unique identifier for the stock transfer (numeric).\n\t * @example ```\"1234\"```\n\t */\n\tnumber?: string | null\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 stock transfer status. One of 'draft' (default), 'upcoming', 'on_hold', 'picking', 'in_transit', 'completed', or 'cancelled'.\n\t * @example ```\"draft\"```\n\t */\n\tstatus: 'draft' | 'upcoming' | 'on_hold' | 'picking' | 'in_transit' | 'completed' | 'cancelled'\n\t/** \n\t * The stock quantity to be transferred from the origin stock location to destination one. Updatable unless stock transfer is completed or cancelled and depending on origin stock availability.\n\t * @example ```2```\n\t */\n\tquantity: number\n\t/** \n\t * Time at which the stock transfer was put on hold.\n\t * @example ```\"2018-01-01T12:00:00.000Z\"```\n\t */\n\ton_hold_at?: string | null\n\t/** \n\t * Time at which the stock transfer was picking.\n\t * @example ```\"2018-01-01T12:00:00.000Z\"```\n\t */\n\tpicking_at?: string | null\n\t/** \n\t * Time at which the stock transfer was in transit.\n\t * @example ```\"2018-01-01T12:00:00.000Z\"```\n\t */\n\tin_transit_at?: string | null\n\t/** \n\t * Time at which the stock transfer was completed.\n\t * @example ```\"2018-01-01T12:00:00.000Z\"```\n\t */\n\tcompleted_at?: string | null\n\t/** \n\t * Time at which the stock transfer was cancelled.\n\t * @example ```\"2018-01-01T12:00:00.000Z\"```\n\t */\n\tcancelled_at?: string | null\n\n\tsku?: Sku | null\n\torigin_stock_location?: StockLocation | null\n\tdestination_stock_location?: StockLocation | null\n\tshipment?: Shipment | null\n\tline_item?: LineItem | null\n\tstock_reservation?: StockReservation | null\n\tattachments?: Attachment[] | null\n\tevents?: Event[] | null\n\tversions?: Version[] | null\n\tevent_stores?: EventStore[] | null\n\n}\n\n\ninterface StockTransferCreate extends ResourceCreate {\n\t\n\t/** \n\t * Unique identifier for the stock transfer (numeric).\n\t * @example ```\"1234\"```\n\t */\n\tnumber?: string | null\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 stock quantity to be transferred from the origin stock location to destination one. Updatable unless stock transfer is completed or cancelled and depending on origin stock availability.\n\t * @example ```2```\n\t */\n\tquantity: number\n\n\tsku: SkuRel\n\torigin_stock_location: StockLocationRel\n\tdestination_stock_location: StockLocationRel\n\tshipment?: ShipmentRel | null\n\tline_item?: LineItemRel | null\n\n}\n\n\ninterface StockTransferUpdate extends ResourceUpdate {\n\t\n\t/** \n\t * Unique identifier for the stock transfer (numeric).\n\t * @example ```\"1234\"```\n\t */\n\tnumber?: string | null\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 stock quantity to be transferred from the origin stock location to destination one. Updatable unless stock transfer is completed or cancelled and depending on origin stock availability.\n\t * @example ```2```\n\t */\n\tquantity?: number | null\n\t/** \n\t * Send this attribute if you want to mark this stock transfer as upcoming.\n\t * @example ```true```\n\t */\n\t_upcoming?: boolean | null\n\t/** \n\t * Send this attribute if you want to put this stock transfer on hold.\n\t * @example ```true```\n\t */\n\t_on_hold?: boolean | null\n\t/** \n\t * Send this attribute if you want to start picking this stock transfer.\n\t * @example ```true```\n\t */\n\t_picking?: boolean | null\n\t/** \n\t * Send this attribute if you want to mark this stock transfer as in transit.\n\t * @example ```true```\n\t */\n\t_in_transit?: boolean | null\n\t/** \n\t * Send this attribute if you want to complete this stock transfer.\n\t * @example ```true```\n\t */\n\t_complete?: boolean | null\n\t/** \n\t * Send this attribute if you want to cancel this stock transfer.\n\t * @example ```true```\n\t */\n\t_cancel?: boolean | null\n\n\tsku?: SkuRel | null\n\torigin_stock_location?: StockLocationRel | null\n\tdestination_stock_location?: StockLocationRel | null\n\tshipment?: ShipmentRel | null\n\tline_item?: LineItemRel | null\n\n}\n\n\nclass StockTransfers extends ApiResource<StockTransfer> {\n\n\tstatic readonly TYPE: StockTransferType = 'stock_transfers' as const\n\n\tasync create(resource: StockTransferCreate, params?: QueryParamsRetrieve<StockTransfer>, options?: ResourcesConfig): Promise<StockTransfer> {\n\t\treturn this.resources.create<StockTransferCreate, StockTransfer>({ ...resource, type: StockTransfers.TYPE }, params, options)\n\t}\n\n\tasync update(resource: StockTransferUpdate, params?: QueryParamsRetrieve<StockTransfer>, options?: ResourcesConfig): Promise<StockTransfer> {\n\t\treturn this.resources.update<StockTransferUpdate, StockTransfer>({ ...resource, type: StockTransfers.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: StockTransfers.TYPE } : id, options)\n\t}\n\n\tasync sku(stockTransferId: string | StockTransfer, params?: QueryParamsRetrieve<Sku>, options?: ResourcesConfig): Promise<Sku> {\n\t\tconst _stockTransferId = (stockTransferId as StockTransfer).id || stockTransferId as string\n\t\treturn this.resources.fetch<Sku>({ type: 'skus' }, `stock_transfers/${_stockTransferId}/sku`, params, options) as unknown as Sku\n\t}\n\n\tasync origin_stock_location(stockTransferId: string | StockTransfer, params?: QueryParamsRetrieve<StockLocation>, options?: ResourcesConfig): Promise<StockLocation> {\n\t\tconst _stockTransferId = (stockTransferId as StockTransfer).id || stockTransferId as string\n\t\treturn this.resources.fetch<StockLocation>({ type: 'stock_locations' }, `stock_transfers/${_stockTransferId}/origin_stock_location`, params, options) as unknown as StockLocation\n\t}\n\n\tasync destination_stock_location(stockTransferId: string | StockTransfer, params?: QueryParamsRetrieve<StockLocation>, options?: ResourcesConfig): Promise<StockLocation> {\n\t\tconst _stockTransferId = (stockTransferId as StockTransfer).id || stockTransferId as string\n\t\treturn this.resources.fetch<StockLocation>({ type: 'stock_locations' }, `stock_transfers/${_stockTransferId}/destination_stock_location`, params, options) as unknown as StockLocation\n\t}\n\n\tasync shipment(stockTransferId: string | StockTransfer, params?: QueryParamsRetrieve<Shipment>, options?: ResourcesConfig): Promise<Shipment> {\n\t\tconst _stockTransferId = (stockTransferId as StockTransfer).id || stockTransferId as string\n\t\treturn this.resources.fetch<Shipment>({ type: 'shipments' }, `stock_transfers/${_stockTransferId}/shipment`, params, options) as unknown as Shipment\n\t}\n\n\tasync line_item(stockTransferId: string | StockTransfer, params?: QueryParamsRetrieve<LineItem>, options?: ResourcesConfig): Promise<LineItem> {\n\t\tconst _stockTransferId = (stockTransferId as StockTransfer).id || stockTransferId as string\n\t\treturn this.resources.fetch<LineItem>({ type: 'line_items' }, `stock_transfers/${_stockTransferId}/line_item`, params, options) as unknown as LineItem\n\t}\n\n\tasync stock_reservation(stockTransferId: string | StockTransfer, params?: QueryParamsRetrieve<StockReservation>, options?: ResourcesConfig): Promise<StockReservation> {\n\t\tconst _stockTransferId = (stockTransferId as StockTransfer).id || stockTransferId as string\n\t\treturn this.resources.fetch<StockReservation>({ type: 'stock_reservations' }, `stock_transfers/${_stockTransferId}/stock_reservation`, params, options) as unknown as StockReservation\n\t}\n\n\tasync attachments(stockTransferId: string | StockTransfer, params?: QueryParamsList<Attachment>, options?: ResourcesConfig): Promise<ListResponse<Attachment>> {\n\t\tconst _stockTransferId = (stockTransferId as StockTransfer).id || stockTransferId as string\n\t\treturn this.resources.fetch<Attachment>({ type: 'attachments' }, `stock_transfers/${_stockTransferId}/attachments`, params, options) as unknown as ListResponse<Attachment>\n\t}\n\n\tasync events(stockTransferId: string | StockTransfer, params?: QueryParamsList<Event>, options?: ResourcesConfig): Promise<ListResponse<Event>> {\n\t\tconst _stockTransferId = (stockTransferId as StockTransfer).id || stockTransferId as string\n\t\treturn this.resources.fetch<Event>({ type: 'events' }, `stock_transfers/${_stockTransferId}/events`, params, options) as unknown as ListResponse<Event>\n\t}\n\n\tasync versions(stockTransferId: string | StockTransfer, params?: QueryParamsList<Version>, options?: ResourcesConfig): Promise<ListResponse<Version>> {\n\t\tconst _stockTransferId = (stockTransferId as StockTransfer).id || stockTransferId as string\n\t\treturn this.resources.fetch<Version>({ type: 'versions' }, `stock_transfers/${_stockTransferId}/versions`, params, options) as unknown as ListResponse<Version>\n\t}\n\n\tasync event_stores(stockTransferId: string | StockTransfer, params?: QueryParamsList<EventStore>, options?: ResourcesConfig): Promise<ListResponse<EventStore>> {\n\t\tconst _stockTransferId = (stockTransferId as StockTransfer).id || stockTransferId as string\n\t\treturn this.resources.fetch<EventStore>({ type: 'event_stores' }, `stock_transfers/${_stockTransferId}/event_stores`, params, options) as unknown as ListResponse<EventStore>\n\t}\n\n\tasync _upcoming(id: string | StockTransfer, params?: QueryParamsRetrieve<StockTransfer>, options?: ResourcesConfig): Promise<StockTransfer> {\n\t\treturn this.resources.update<StockTransferUpdate, StockTransfer>({ id: (typeof id === 'string')? id: id.id, type: StockTransfers.TYPE, _upcoming: true }, params, options)\n\t}\n\n\tasync _on_hold(id: string | StockTransfer, params?: QueryParamsRetrieve<StockTransfer>, options?: ResourcesConfig): Promise<StockTransfer> {\n\t\treturn this.resources.update<StockTransferUpdate, StockTransfer>({ id: (typeof id === 'string')? id: id.id, type: StockTransfers.TYPE, _on_hold: true }, params, options)\n\t}\n\n\tasync _picking(id: string | StockTransfer, params?: QueryParamsRetrieve<StockTransfer>, options?: ResourcesConfig): Promise<StockTransfer> {\n\t\treturn this.resources.update<StockTransferUpdate, StockTransfer>({ id: (typeof id === 'string')? id: id.id, type: StockTransfers.TYPE, _picking: true }, params, options)\n\t}\n\n\tasync _in_transit(id: string | StockTransfer, params?: QueryParamsRetrieve<StockTransfer>, options?: ResourcesConfig): Promise<StockTransfer> {\n\t\treturn this.resources.update<StockTransferUpdate, StockTransfer>({ id: (typeof id === 'string')? id: id.id, type: StockTransfers.TYPE, _in_transit: true }, params, options)\n\t}\n\n\tasync _complete(id: string | StockTransfer, params?: QueryParamsRetrieve<StockTransfer>, options?: ResourcesConfig): Promise<StockTransfer> {\n\t\treturn this.resources.update<StockTransferUpdate, StockTransfer>({ id: (typeof id === 'string')? id: id.id, type: StockTransfers.TYPE, _complete: true }, params, options)\n\t}\n\n\tasync _cancel(id: string | StockTransfer, params?: QueryParamsRetrieve<StockTransfer>, options?: ResourcesConfig): Promise<StockTransfer> {\n\t\treturn this.resources.update<StockTransferUpdate, StockTransfer>({ id: (typeof id === 'string')? id: id.id, type: StockTransfers.TYPE, _cancel: true }, params, options)\n\t}\n\n\n\tisStockTransfer(resource: any): resource is StockTransfer {\n\t\treturn resource.type && (resource.type === StockTransfers.TYPE)\n\t}\n\n\n\trelationship(id: string | ResourceId | null): StockTransferRel {\n\t\treturn super.relationshipOneToOne<StockTransferRel>(id)\n\t}\n\n\trelationshipToMany(...ids: string[]): StockTransferRel[] {\n\t\treturn super.relationshipOneToMany<StockTransferRel>(...ids)\n\t}\n\n\n\ttype(): StockTransferType {\n\t\treturn StockTransfers.TYPE\n\t}\n\n}\n\n\nconst instance = new StockTransfers()\nexport default instance\n\nexport type { StockTransfers, StockTransfer, StockTransferCreate, StockTransferUpdate, StockTransferType }\n"]}
@@ -1,58 +0,0 @@
1
- import { ApiResource } from './chunk-XKERR6OR.js';
2
-
3
- // src/resources/external_gateways.ts
4
- var ExternalGateways = class _ExternalGateways extends ApiResource {
5
- static TYPE = "external_gateways";
6
- async create(resource, params, options) {
7
- return this.resources.create({ ...resource, type: _ExternalGateways.TYPE }, params, options);
8
- }
9
- async update(resource, params, options) {
10
- return this.resources.update({ ...resource, type: _ExternalGateways.TYPE }, params, options);
11
- }
12
- async delete(id, options) {
13
- await this.resources.delete(typeof id === "string" ? { id, type: _ExternalGateways.TYPE } : id, options);
14
- }
15
- async payment_methods(externalGatewayId, params, options) {
16
- const _externalGatewayId = externalGatewayId.id || externalGatewayId;
17
- return this.resources.fetch({ type: "payment_methods" }, `external_gateways/${_externalGatewayId}/payment_methods`, params, options);
18
- }
19
- async versions(externalGatewayId, params, options) {
20
- const _externalGatewayId = externalGatewayId.id || externalGatewayId;
21
- return this.resources.fetch({ type: "versions" }, `external_gateways/${_externalGatewayId}/versions`, params, options);
22
- }
23
- async event_stores(externalGatewayId, params, options) {
24
- const _externalGatewayId = externalGatewayId.id || externalGatewayId;
25
- return this.resources.fetch({ type: "event_stores" }, `external_gateways/${_externalGatewayId}/event_stores`, params, options);
26
- }
27
- async external_payments(externalGatewayId, params, options) {
28
- const _externalGatewayId = externalGatewayId.id || externalGatewayId;
29
- return this.resources.fetch({ type: "external_payments" }, `external_gateways/${_externalGatewayId}/external_payments`, params, options);
30
- }
31
- async _disable(id, params, options) {
32
- return this.resources.update({ id: typeof id === "string" ? id : id.id, type: _ExternalGateways.TYPE, _disable: true }, params, options);
33
- }
34
- async _enable(id, params, options) {
35
- return this.resources.update({ id: typeof id === "string" ? id : id.id, type: _ExternalGateways.TYPE, _enable: true }, params, options);
36
- }
37
- async _reset_circuit(id, params, options) {
38
- return this.resources.update({ id: typeof id === "string" ? id : id.id, type: _ExternalGateways.TYPE, _reset_circuit: true }, params, options);
39
- }
40
- isExternalGateway(resource) {
41
- return resource.type && resource.type === _ExternalGateways.TYPE;
42
- }
43
- relationship(id) {
44
- return super.relationshipOneToOne(id);
45
- }
46
- relationshipToMany(...ids) {
47
- return super.relationshipOneToMany(...ids);
48
- }
49
- type() {
50
- return _ExternalGateways.TYPE;
51
- }
52
- };
53
- var instance = new ExternalGateways();
54
- var external_gateways_default = instance;
55
-
56
- export { external_gateways_default };
57
- //# sourceMappingURL=chunk-HBVSEXIQ.js.map
58
- //# sourceMappingURL=chunk-HBVSEXIQ.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../src/resources/external_gateways.ts"],"names":[],"mappings":";;;AAgNA,IAAM,gBAAA,GAAN,MAAM,iBAAA,SAAyB,WAAA,CAA6B;AAAA,EAE3D,OAAgB,IAAA,GAA4B,mBAAA;AAAA,EAE5C,MAAM,MAAA,CAAO,QAAA,EAAiC,MAA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AAG,QAAQ,OAAO,CAAA;AAAA,EAC9K;AAAA,EAEA,MAAM,cAAA,CAAe,EAAA,EAA8B,MAAA,EAA+C,OAAA,EAAqD;AACtJ,IAAA,OAAO,KAAK,SAAA,CAAU,MAAA,CAA+C,EAAE,EAAA,EAAK,OAAO,OAAO,QAAA,GAAW,EAAA,GAAI,EAAA,CAAG,EAAA,EAAI,MAAM,iBAAA,CAAiB,IAAA,EAAM,gBAAgB,IAAA,EAAK,EAAG,QAAQ,OAAO,CAAA;AAAA,EACrL;AAAA,EAGA,kBAAkB,QAAA,EAA4C;AAC7D,IAAA,OAAO,QAAA,CAAS,IAAA,IAAS,QAAA,CAAS,IAAA,KAAS,iBAAA,CAAiB,IAAA;AAAA,EAC7D;AAAA,EAGA,aAAa,EAAA,EAAoD;AAChE,IAAA,OAAO,KAAA,CAAM,qBAAyC,EAAE,CAAA;AAAA,EACzD;AAAA,EAEA,sBAAsB,GAAA,EAAqC;AAC1D,IAAA,OAAO,KAAA,CAAM,qBAAA,CAA0C,GAAG,GAAG,CAAA;AAAA,EAC9D;AAAA,EAGA,IAAA,GAA4B;AAC3B,IAAA,OAAO,iBAAA,CAAiB,IAAA;AAAA,EACzB;AAED,CAAA;AAGA,IAAM,QAAA,GAAW,IAAI,gBAAA,EAAiB;AACtC,IAAO,yBAAA,GAAQ","file":"chunk-HBVSEXIQ.js","sourcesContent":["import { ApiResource } from '../resource'\nimport type { Resource, ResourceCreate, ResourceUpdate, ResourceId, ResourcesConfig, ResourceRel, ListResponse, ResourceSort, /* ResourceFilter */ } from '../resource'\nimport type { QueryParamsRetrieve, QueryParamsList } from '../query'\n\nimport type { PaymentMethod } from './payment_methods'\nimport type { Version } from './versions'\nimport type { EventStore } from './event_stores'\nimport type { ExternalPayment } from './external_payments'\n\n\ntype ExternalGatewayType = 'external_gateways'\ntype ExternalGatewayRel = ResourceRel & { type: ExternalGatewayType }\n\n\nexport type ExternalGatewaySort = Pick<ExternalGateway, 'id' | 'name' | 'disabled_at' | 'circuit_state' | 'circuit_failure_count'> & ResourceSort\n// export type ExternalGatewayFilter = Pick<ExternalGateway, 'id' | 'name' | 'disabled_at' | 'circuit_state' | 'circuit_failure_count'> & ResourceFilter\n\n\ninterface ExternalGateway extends Resource {\n\t\n\treadonly type: ExternalGatewayType\n\n\t/** \n\t * The payment gateway's internal name.\n\t * @example ```\"US payment gateway\"```\n\t */\n\tname: string\n\t/** \n\t * Indicates if the payment source is forced on the editable order upon receiving a successful event from the gateway.\n\t * @example ```true```\n\t */\n\tforce_payments?: boolean | 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 endpoint used by the external gateway to authorize payments.\n\t * @example ```\"https://external_gateway.com/authorize\"```\n\t */\n\tauthorize_url?: string | null\n\t/** \n\t * The endpoint used by the external gateway to capture payments.\n\t * @example ```\"https://external_gateway.com/capture\"```\n\t */\n\tcapture_url?: string | null\n\t/** \n\t * The endpoint used by the external gateway to void payments.\n\t * @example ```\"https://external_gateway.com/void\"```\n\t */\n\tvoid_url?: string | null\n\t/** \n\t * The endpoint used by the external gateway to refund payments.\n\t * @example ```\"https://external_gateway.com/refund\"```\n\t */\n\trefund_url?: string | null\n\t/** \n\t * The endpoint used by the external gateway to create a customer payment token.\n\t * @example ```\"https://external_gateway.com/token\"```\n\t */\n\ttoken_url?: string | 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\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\tpayment_methods?: PaymentMethod[] | null\n\tversions?: Version[] | null\n\tevent_stores?: EventStore[] | null\n\texternal_payments?: ExternalPayment[] | null\n\n}\n\n\ninterface ExternalGatewayCreate extends ResourceCreate {\n\t\n\t/** \n\t * The payment gateway's internal name.\n\t * @example ```\"US payment gateway\"```\n\t */\n\tname: string\n\t/** \n\t * Indicates if the payment source is forced on the editable order upon receiving a successful event from the gateway.\n\t * @example ```true```\n\t */\n\tforce_payments?: boolean | 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 * The endpoint used by the external gateway to authorize payments.\n\t * @example ```\"https://external_gateway.com/authorize\"```\n\t */\n\tauthorize_url?: string | null\n\t/** \n\t * The endpoint used by the external gateway to capture payments.\n\t * @example ```\"https://external_gateway.com/capture\"```\n\t */\n\tcapture_url?: string | null\n\t/** \n\t * The endpoint used by the external gateway to void payments.\n\t * @example ```\"https://external_gateway.com/void\"```\n\t */\n\tvoid_url?: string | null\n\t/** \n\t * The endpoint used by the external gateway to refund payments.\n\t * @example ```\"https://external_gateway.com/refund\"```\n\t */\n\trefund_url?: string | null\n\t/** \n\t * The endpoint used by the external gateway to create a customer payment token.\n\t * @example ```\"https://external_gateway.com/token\"```\n\t */\n\ttoken_url?: string | 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\t\n}\n\n\ninterface ExternalGatewayUpdate extends ResourceUpdate {\n\t\n\t/** \n\t * The payment gateway's internal name.\n\t * @example ```\"US payment gateway\"```\n\t */\n\tname?: string | null\n\t/** \n\t * Indicates if the payment source is forced on the editable order upon receiving a successful event from the gateway.\n\t * @example ```true```\n\t */\n\tforce_payments?: boolean | 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 * The endpoint used by the external gateway to authorize payments.\n\t * @example ```\"https://external_gateway.com/authorize\"```\n\t */\n\tauthorize_url?: string | null\n\t/** \n\t * The endpoint used by the external gateway to capture payments.\n\t * @example ```\"https://external_gateway.com/capture\"```\n\t */\n\tcapture_url?: string | null\n\t/** \n\t * The endpoint used by the external gateway to void payments.\n\t * @example ```\"https://external_gateway.com/void\"```\n\t */\n\tvoid_url?: string | null\n\t/** \n\t * The endpoint used by the external gateway to refund payments.\n\t * @example ```\"https://external_gateway.com/refund\"```\n\t */\n\trefund_url?: string | null\n\t/** \n\t * The endpoint used by the external gateway to create a customer payment token.\n\t * @example ```\"https://external_gateway.com/token\"```\n\t */\n\ttoken_url?: 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 * 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\t\n}\n\n\nclass ExternalGateways extends ApiResource<ExternalGateway> {\n\n\tstatic readonly TYPE: ExternalGatewayType = 'external_gateways' as const\n\n\tasync create(resource: ExternalGatewayCreate, params?: QueryParamsRetrieve<ExternalGateway>, options?: ResourcesConfig): Promise<ExternalGateway> {\n\t\treturn this.resources.create<ExternalGatewayCreate, ExternalGateway>({ ...resource, type: ExternalGateways.TYPE }, params, options)\n\t}\n\n\tasync update(resource: ExternalGatewayUpdate, params?: QueryParamsRetrieve<ExternalGateway>, options?: ResourcesConfig): Promise<ExternalGateway> {\n\t\treturn this.resources.update<ExternalGatewayUpdate, ExternalGateway>({ ...resource, type: ExternalGateways.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: ExternalGateways.TYPE } : id, options)\n\t}\n\n\tasync payment_methods(externalGatewayId: string | ExternalGateway, params?: QueryParamsList<PaymentMethod>, options?: ResourcesConfig): Promise<ListResponse<PaymentMethod>> {\n\t\tconst _externalGatewayId = (externalGatewayId as ExternalGateway).id || externalGatewayId as string\n\t\treturn this.resources.fetch<PaymentMethod>({ type: 'payment_methods' }, `external_gateways/${_externalGatewayId}/payment_methods`, params, options) as unknown as ListResponse<PaymentMethod>\n\t}\n\n\tasync versions(externalGatewayId: string | ExternalGateway, params?: QueryParamsList<Version>, options?: ResourcesConfig): Promise<ListResponse<Version>> {\n\t\tconst _externalGatewayId = (externalGatewayId as ExternalGateway).id || externalGatewayId as string\n\t\treturn this.resources.fetch<Version>({ type: 'versions' }, `external_gateways/${_externalGatewayId}/versions`, params, options) as unknown as ListResponse<Version>\n\t}\n\n\tasync event_stores(externalGatewayId: string | ExternalGateway, params?: QueryParamsList<EventStore>, options?: ResourcesConfig): Promise<ListResponse<EventStore>> {\n\t\tconst _externalGatewayId = (externalGatewayId as ExternalGateway).id || externalGatewayId as string\n\t\treturn this.resources.fetch<EventStore>({ type: 'event_stores' }, `external_gateways/${_externalGatewayId}/event_stores`, params, options) as unknown as ListResponse<EventStore>\n\t}\n\n\tasync external_payments(externalGatewayId: string | ExternalGateway, params?: QueryParamsList<ExternalPayment>, options?: ResourcesConfig): Promise<ListResponse<ExternalPayment>> {\n\t\tconst _externalGatewayId = (externalGatewayId as ExternalGateway).id || externalGatewayId as string\n\t\treturn this.resources.fetch<ExternalPayment>({ type: 'external_payments' }, `external_gateways/${_externalGatewayId}/external_payments`, params, options) as unknown as ListResponse<ExternalPayment>\n\t}\n\n\tasync _disable(id: string | ExternalGateway, params?: QueryParamsRetrieve<ExternalGateway>, options?: ResourcesConfig): Promise<ExternalGateway> {\n\t\treturn this.resources.update<ExternalGatewayUpdate, ExternalGateway>({ id: (typeof id === 'string')? id: id.id, type: ExternalGateways.TYPE, _disable: true }, params, options)\n\t}\n\n\tasync _enable(id: string | ExternalGateway, params?: QueryParamsRetrieve<ExternalGateway>, options?: ResourcesConfig): Promise<ExternalGateway> {\n\t\treturn this.resources.update<ExternalGatewayUpdate, ExternalGateway>({ id: (typeof id === 'string')? id: id.id, type: ExternalGateways.TYPE, _enable: true }, params, options)\n\t}\n\n\tasync _reset_circuit(id: string | ExternalGateway, params?: QueryParamsRetrieve<ExternalGateway>, options?: ResourcesConfig): Promise<ExternalGateway> {\n\t\treturn this.resources.update<ExternalGatewayUpdate, ExternalGateway>({ id: (typeof id === 'string')? id: id.id, type: ExternalGateways.TYPE, _reset_circuit: true }, params, options)\n\t}\n\n\n\tisExternalGateway(resource: any): resource is ExternalGateway {\n\t\treturn resource.type && (resource.type === ExternalGateways.TYPE)\n\t}\n\n\n\trelationship(id: string | ResourceId | null): ExternalGatewayRel {\n\t\treturn super.relationshipOneToOne<ExternalGatewayRel>(id)\n\t}\n\n\trelationshipToMany(...ids: string[]): ExternalGatewayRel[] {\n\t\treturn super.relationshipOneToMany<ExternalGatewayRel>(...ids)\n\t}\n\n\n\ttype(): ExternalGatewayType {\n\t\treturn ExternalGateways.TYPE\n\t}\n\n}\n\n\nconst instance = new ExternalGateways()\nexport default instance\n\nexport type { ExternalGateways, ExternalGateway, ExternalGatewayCreate, ExternalGatewayUpdate, ExternalGatewayType }\n"]}
@@ -1,75 +0,0 @@
1
- 'use strict';
2
-
3
- var chunkU22VLCMN_cjs = require('./chunk-U22VLCMN.cjs');
4
-
5
- // src/resources/flex_promotions.ts
6
- var FlexPromotions = class _FlexPromotions extends chunkU22VLCMN_cjs.ApiResource {
7
- static TYPE = "flex_promotions";
8
- async create(resource, params, options) {
9
- return this.resources.create({ ...resource, type: _FlexPromotions.TYPE }, params, options);
10
- }
11
- async update(resource, params, options) {
12
- return this.resources.update({ ...resource, type: _FlexPromotions.TYPE }, params, options);
13
- }
14
- async delete(id, options) {
15
- await this.resources.delete(typeof id === "string" ? { id, type: _FlexPromotions.TYPE } : id, options);
16
- }
17
- async coupon_codes_promotion_rule(flexPromotionId, params, options) {
18
- const _flexPromotionId = flexPromotionId.id || flexPromotionId;
19
- return this.resources.fetch({ type: "coupon_codes_promotion_rules" }, `flex_promotions/${_flexPromotionId}/coupon_codes_promotion_rule`, params, options);
20
- }
21
- async coupons(flexPromotionId, params, options) {
22
- const _flexPromotionId = flexPromotionId.id || flexPromotionId;
23
- return this.resources.fetch({ type: "coupons" }, `flex_promotions/${_flexPromotionId}/coupons`, params, options);
24
- }
25
- async attachments(flexPromotionId, params, options) {
26
- const _flexPromotionId = flexPromotionId.id || flexPromotionId;
27
- return this.resources.fetch({ type: "attachments" }, `flex_promotions/${_flexPromotionId}/attachments`, params, options);
28
- }
29
- async events(flexPromotionId, params, options) {
30
- const _flexPromotionId = flexPromotionId.id || flexPromotionId;
31
- return this.resources.fetch({ type: "events" }, `flex_promotions/${_flexPromotionId}/events`, params, options);
32
- }
33
- async tags(flexPromotionId, params, options) {
34
- const _flexPromotionId = flexPromotionId.id || flexPromotionId;
35
- return this.resources.fetch({ type: "tags" }, `flex_promotions/${_flexPromotionId}/tags`, params, options);
36
- }
37
- async versions(flexPromotionId, params, options) {
38
- const _flexPromotionId = flexPromotionId.id || flexPromotionId;
39
- return this.resources.fetch({ type: "versions" }, `flex_promotions/${_flexPromotionId}/versions`, params, options);
40
- }
41
- async event_stores(flexPromotionId, params, options) {
42
- const _flexPromotionId = flexPromotionId.id || flexPromotionId;
43
- return this.resources.fetch({ type: "event_stores" }, `flex_promotions/${_flexPromotionId}/event_stores`, params, options);
44
- }
45
- async _disable(id, params, options) {
46
- return this.resources.update({ id: typeof id === "string" ? id : id.id, type: _FlexPromotions.TYPE, _disable: true }, params, options);
47
- }
48
- async _enable(id, params, options) {
49
- return this.resources.update({ id: typeof id === "string" ? id : id.id, type: _FlexPromotions.TYPE, _enable: true }, params, options);
50
- }
51
- async _add_tags(id, triggerValue, params, options) {
52
- return this.resources.update({ id: typeof id === "string" ? id : id.id, type: _FlexPromotions.TYPE, _add_tags: triggerValue }, params, options);
53
- }
54
- async _remove_tags(id, triggerValue, params, options) {
55
- return this.resources.update({ id: typeof id === "string" ? id : id.id, type: _FlexPromotions.TYPE, _remove_tags: triggerValue }, params, options);
56
- }
57
- isFlexPromotion(resource) {
58
- return resource.type && resource.type === _FlexPromotions.TYPE;
59
- }
60
- relationship(id) {
61
- return super.relationshipOneToOne(id);
62
- }
63
- relationshipToMany(...ids) {
64
- return super.relationshipOneToMany(...ids);
65
- }
66
- type() {
67
- return _FlexPromotions.TYPE;
68
- }
69
- };
70
- var instance = new FlexPromotions();
71
- var flex_promotions_default = instance;
72
-
73
- exports.flex_promotions_default = flex_promotions_default;
74
- //# sourceMappingURL=chunk-HOJUXLZD.cjs.map
75
- //# sourceMappingURL=chunk-HOJUXLZD.cjs.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../src/resources/flex_promotions.ts"],"names":["ApiResource"],"mappings":";;;;;AA4NA,IAAM,cAAA,GAAN,MAAM,eAAA,SAAuBA,6BAAA,CAA2B;AAAA,EAEvD,OAAgB,IAAA,GAA0B,iBAAA;AAAA,EAE1C,MAAM,MAAA,CAAO,QAAA,EAA+B,MAAA,EAA6C,OAAA,EAAmD;AAC3I,IAAA,OAAO,IAAA,CAAK,SAAA,CAAU,MAAA,CAA2C,EAAE,GAAG,QAAA,EAAU,IAAA,EAAM,eAAA,CAAe,IAAA,EAAK,EAAG,MAAA,EAAQ,OAAO,CAAA;AAAA,EAC7H;AAAA,EAEA,MAAM,MAAA,CAAO,QAAA,EAA+B,MAAA,EAA6C,OAAA,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Aa,EAAG,QAAQ,OAAO,CAAA;AAAA,EACrL;AAAA,EAGA,gBAAgB,QAAA,EAA0C;AACzD,IAAA,OAAO,QAAA,CAAS,IAAA,IAAS,QAAA,CAAS,IAAA,KAAS,eAAA,CAAe,IAAA;AAAA,EAC3D;AAAA,EAGA,aAAa,EAAA,EAAkD;AAC9D,IAAA,OAAO,KAAA,CAAM,qBAAuC,EAAE,CAAA;AAAA,EACvD;AAAA,EAEA,sBAAsB,GAAA,EAAmC;AACxD,IAAA,OAAO,KAAA,CAAM,qBAAA,CAAwC,GAAG,GAAG,CAAA;AAAA,EAC5D;AAAA,EAGA,IAAA,GAA0B;AACzB,IAAA,OAAO,eAAA,CAAe,IAAA;AAAA,EACvB;AAED,CAAA;AAGA,IAAM,QAAA,GAAW,IAAI,cAAA,EAAe;AACpC,IAAO,uBAAA,GAAQ","file":"chunk-HOJUXLZD.cjs","sourcesContent":["import { ApiResource } from '../resource'\nimport type { Resource, ResourceCreate, ResourceUpdate, ResourceId, ResourcesConfig, ResourceRel, ListResponse, ResourceSort, /* ResourceFilter */ } from '../resource'\nimport type { QueryParamsRetrieve, QueryParamsList } from '../query'\n\nimport type { CouponCodesPromotionRule, CouponCodesPromotionRuleType } from './coupon_codes_promotion_rules'\nimport type { Coupon } from './coupons'\nimport type { Attachment } from './attachments'\nimport type { Event } from './events'\nimport type { Tag, TagType } from './tags'\nimport type { Version } from './versions'\nimport type { EventStore } from './event_stores'\n\n\ntype FlexPromotionType = 'flex_promotions'\ntype FlexPromotionRel = ResourceRel & { type: FlexPromotionType }\ntype CouponCodesPromotionRuleRel = ResourceRel & { type: CouponCodesPromotionRuleType }\ntype TagRel = ResourceRel & { type: TagType }\n\n\nexport type FlexPromotionSort = Pick<FlexPromotion, 'id' | 'name' | 'exclusive' | 'priority' | 'starts_at' | 'expires_at' | 'total_usage_limit' | 'total_usage_count' | 'disabled_at'> & ResourceSort\n// export type FlexPromotionFilter = Pick<FlexPromotion, 'id' | 'name' | 'exclusive' | 'priority' | 'starts_at' | 'expires_at' | 'total_usage_limit' | 'total_usage_count' | 'rules' | 'disabled_at'> & ResourceFilter\n\n\ninterface FlexPromotion extends Resource {\n\t\n\treadonly type: FlexPromotionType\n\n\t/** \n\t * The promotion's internal name.\n\t * @example ```\"Personal promotion\"```\n\t */\n\tname: string\n\t/** \n\t * Indicates if the promotion will be applied exclusively, based on its priority score.\n\t * @example ```true```\n\t */\n\texclusive?: boolean | null\n\t/** \n\t * The priority assigned to the promotion (lower means higher priority).\n\t * @example ```2```\n\t */\n\tpriority?: number | null\n\t/** \n\t * The activation date/time of this promotion.\n\t * @example ```\"2018-01-01T12:00:00.000Z\"```\n\t */\n\tstarts_at: string\n\t/** \n\t * The expiration date/time of this promotion (must be after starts_at).\n\t * @example ```\"2018-01-02T12:00:00.000Z\"```\n\t */\n\texpires_at: string\n\t/** \n\t * The total number of times this promotion can be applied. When 'null' it means promotion can be applied infinite times.\n\t * @example ```5```\n\t */\n\ttotal_usage_limit?: number | null\n\t/** \n\t * The number of times this promotion has been applied.\n\t * @example ```2```\n\t */\n\ttotal_usage_count?: number | null\n\t/** \n\t * Indicates if the promotion is active (enabled and not expired).\n\t * @example ```true```\n\t */\n\tactive?: boolean | null\n\t/** \n\t * The promotion status. One of 'disabled', 'expired', 'pending', 'active', or 'inactive'.\n\t * @example ```\"pending\"```\n\t */\n\tstatus?: 'disabled' | 'expired' | 'pending' | 'active' | 'inactive' | null\n\t/** \n\t * The discount rule to be applied.\n\t * @example ```{}```\n\t */\n\trules: Record<string, any>\n\t/** \n\t * The rule outcomes.\n\t * @example ```[]```\n\t */\n\trule_outcomes?: Record<string, any> | 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 payload used to evaluate the rules.\n\t * @example ```{}```\n\t */\n\tresource_payload?: Record<string, any> | null\n\n\tcoupon_codes_promotion_rule?: CouponCodesPromotionRule | null\n\tcoupons?: Coupon[] | null\n\tattachments?: Attachment[] | null\n\tevents?: Event[] | null\n\ttags?: Tag[] | null\n\tversions?: Version[] | null\n\tevent_stores?: EventStore[] | null\n\n}\n\n\ninterface FlexPromotionCreate extends ResourceCreate {\n\t\n\t/** \n\t * The promotion's internal name.\n\t * @example ```\"Personal promotion\"```\n\t */\n\tname: string\n\t/** \n\t * Indicates if the promotion will be applied exclusively, based on its priority score.\n\t * @example ```true```\n\t */\n\texclusive?: boolean | null\n\t/** \n\t * The priority assigned to the promotion (lower means higher priority).\n\t * @example ```2```\n\t */\n\tpriority?: number | null\n\t/** \n\t * The activation date/time of this promotion.\n\t * @example ```\"2018-01-01T12:00:00.000Z\"```\n\t */\n\tstarts_at: string\n\t/** \n\t * The expiration date/time of this promotion (must be after starts_at).\n\t * @example ```\"2018-01-02T12:00:00.000Z\"```\n\t */\n\texpires_at: string\n\t/** \n\t * The total number of times this promotion can be applied. When 'null' it means promotion can be applied infinite times.\n\t * @example ```5```\n\t */\n\ttotal_usage_limit?: number | null\n\t/** \n\t * The discount rule to be applied.\n\t * @example ```{}```\n\t */\n\trules: Record<string, any>\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\n\tcoupon_codes_promotion_rule?: CouponCodesPromotionRuleRel | null\n\ttags?: TagRel[] | null\n\n}\n\n\ninterface FlexPromotionUpdate extends ResourceUpdate {\n\t\n\t/** \n\t * The promotion's internal name.\n\t * @example ```\"Personal promotion\"```\n\t */\n\tname?: string | null\n\t/** \n\t * Indicates if the promotion will be applied exclusively, based on its priority score.\n\t * @example ```true```\n\t */\n\texclusive?: boolean | null\n\t/** \n\t * The priority assigned to the promotion (lower means higher priority).\n\t * @example ```2```\n\t */\n\tpriority?: number | null\n\t/** \n\t * The activation date/time of this promotion.\n\t * @example ```\"2018-01-01T12:00:00.000Z\"```\n\t */\n\tstarts_at?: string | null\n\t/** \n\t * The expiration date/time of this promotion (must be after starts_at).\n\t * @example ```\"2018-01-02T12:00:00.000Z\"```\n\t */\n\texpires_at?: string | null\n\t/** \n\t * The total number of times this promotion can be applied. When 'null' it means promotion can be applied infinite times.\n\t * @example ```5```\n\t */\n\ttotal_usage_limit?: number | null\n\t/** \n\t * The discount rule to be applied.\n\t * @example ```{}```\n\t */\n\trules?: Record<string, any> | 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 * 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\tcoupon_codes_promotion_rule?: CouponCodesPromotionRuleRel | null\n\ttags?: TagRel[] | null\n\n}\n\n\nclass FlexPromotions extends ApiResource<FlexPromotion> {\n\n\tstatic readonly TYPE: FlexPromotionType = 'flex_promotions' as const\n\n\tasync create(resource: FlexPromotionCreate, params?: QueryParamsRetrieve<FlexPromotion>, options?: ResourcesConfig): Promise<FlexPromotion> {\n\t\treturn this.resources.create<FlexPromotionCreate, FlexPromotion>({ ...resource, type: FlexPromotions.TYPE }, params, options)\n\t}\n\n\tasync update(resource: FlexPromotionUpdate, params?: QueryParamsRetrieve<FlexPromotion>, options?: ResourcesConfig): Promise<FlexPromotion> {\n\t\treturn this.resources.update<FlexPromotionUpdate, FlexPromotion>({ ...resource, type: FlexPromotions.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: FlexPromotions.TYPE } : id, options)\n\t}\n\n\tasync coupon_codes_promotion_rule(flexPromotionId: string | FlexPromotion, params?: QueryParamsRetrieve<CouponCodesPromotionRule>, options?: ResourcesConfig): Promise<CouponCodesPromotionRule> {\n\t\tconst _flexPromotionId = (flexPromotionId as FlexPromotion).id || flexPromotionId as string\n\t\treturn this.resources.fetch<CouponCodesPromotionRule>({ type: 'coupon_codes_promotion_rules' }, `flex_promotions/${_flexPromotionId}/coupon_codes_promotion_rule`, params, options) as unknown as CouponCodesPromotionRule\n\t}\n\n\tasync coupons(flexPromotionId: string | FlexPromotion, params?: QueryParamsList<Coupon>, options?: ResourcesConfig): Promise<ListResponse<Coupon>> {\n\t\tconst _flexPromotionId = (flexPromotionId as FlexPromotion).id || flexPromotionId as string\n\t\treturn this.resources.fetch<Coupon>({ type: 'coupons' }, `flex_promotions/${_flexPromotionId}/coupons`, params, options) as unknown as ListResponse<Coupon>\n\t}\n\n\tasync attachments(flexPromotionId: string | FlexPromotion, params?: QueryParamsList<Attachment>, options?: ResourcesConfig): Promise<ListResponse<Attachment>> {\n\t\tconst _flexPromotionId = (flexPromotionId as FlexPromotion).id || flexPromotionId as string\n\t\treturn this.resources.fetch<Attachment>({ type: 'attachments' }, `flex_promotions/${_flexPromotionId}/attachments`, params, options) as unknown as ListResponse<Attachment>\n\t}\n\n\tasync events(flexPromotionId: string | FlexPromotion, params?: QueryParamsList<Event>, options?: ResourcesConfig): Promise<ListResponse<Event>> {\n\t\tconst _flexPromotionId = (flexPromotionId as FlexPromotion).id || flexPromotionId as string\n\t\treturn this.resources.fetch<Event>({ type: 'events' }, `flex_promotions/${_flexPromotionId}/events`, params, options) as unknown as ListResponse<Event>\n\t}\n\n\tasync tags(flexPromotionId: string | FlexPromotion, params?: QueryParamsList<Tag>, options?: ResourcesConfig): Promise<ListResponse<Tag>> {\n\t\tconst _flexPromotionId = (flexPromotionId as FlexPromotion).id || flexPromotionId as string\n\t\treturn this.resources.fetch<Tag>({ type: 'tags' }, `flex_promotions/${_flexPromotionId}/tags`, params, options) as unknown as ListResponse<Tag>\n\t}\n\n\tasync versions(flexPromotionId: string | FlexPromotion, params?: QueryParamsList<Version>, options?: ResourcesConfig): Promise<ListResponse<Version>> {\n\t\tconst _flexPromotionId = (flexPromotionId as FlexPromotion).id || flexPromotionId as string\n\t\treturn this.resources.fetch<Version>({ type: 'versions' }, `flex_promotions/${_flexPromotionId}/versions`, params, options) as unknown as ListResponse<Version>\n\t}\n\n\tasync event_stores(flexPromotionId: string | FlexPromotion, params?: QueryParamsList<EventStore>, options?: ResourcesConfig): Promise<ListResponse<EventStore>> {\n\t\tconst _flexPromotionId = (flexPromotionId as FlexPromotion).id || flexPromotionId as string\n\t\treturn this.resources.fetch<EventStore>({ type: 'event_stores' }, `flex_promotions/${_flexPromotionId}/event_stores`, params, options) as unknown as ListResponse<EventStore>\n\t}\n\n\tasync _disable(id: string | FlexPromotion, params?: QueryParamsRetrieve<FlexPromotion>, options?: ResourcesConfig): Promise<FlexPromotion> {\n\t\treturn this.resources.update<FlexPromotionUpdate, FlexPromotion>({ id: (typeof id === 'string')? id: id.id, type: FlexPromotions.TYPE, _disable: true }, params, options)\n\t}\n\n\tasync _enable(id: string | FlexPromotion, params?: QueryParamsRetrieve<FlexPromotion>, options?: ResourcesConfig): Promise<FlexPromotion> {\n\t\treturn this.resources.update<FlexPromotionUpdate, FlexPromotion>({ id: (typeof id === 'string')? id: id.id, type: FlexPromotions.TYPE, _enable: true }, params, options)\n\t}\n\n\tasync _add_tags(id: string | FlexPromotion, triggerValue: string, params?: QueryParamsRetrieve<FlexPromotion>, options?: ResourcesConfig): Promise<FlexPromotion> {\n\t\treturn this.resources.update<FlexPromotionUpdate, FlexPromotion>({ id: (typeof id === 'string')? id: id.id, type: FlexPromotions.TYPE, _add_tags: triggerValue }, params, options)\n\t}\n\n\tasync _remove_tags(id: string | FlexPromotion, triggerValue: string, params?: QueryParamsRetrieve<FlexPromotion>, options?: ResourcesConfig): Promise<FlexPromotion> {\n\t\treturn this.resources.update<FlexPromotionUpdate, FlexPromotion>({ id: (typeof id === 'string')? id: id.id, type: FlexPromotions.TYPE, _remove_tags: triggerValue }, params, options)\n\t}\n\n\n\tisFlexPromotion(resource: any): resource is FlexPromotion {\n\t\treturn resource.type && (resource.type === FlexPromotions.TYPE)\n\t}\n\n\n\trelationship(id: string | ResourceId | null): FlexPromotionRel {\n\t\treturn super.relationshipOneToOne<FlexPromotionRel>(id)\n\t}\n\n\trelationshipToMany(...ids: string[]): FlexPromotionRel[] {\n\t\treturn super.relationshipOneToMany<FlexPromotionRel>(...ids)\n\t}\n\n\n\ttype(): FlexPromotionType {\n\t\treturn FlexPromotions.TYPE\n\t}\n\n}\n\n\nconst instance = new FlexPromotions()\nexport default instance\n\nexport type { FlexPromotions, FlexPromotion, FlexPromotionCreate, FlexPromotionUpdate, FlexPromotionType }\n"]}
@@ -1,86 +0,0 @@
1
- import { ApiResource } from './chunk-XKERR6OR.js';
2
-
3
- // src/resources/shipping_methods.ts
4
- var ShippingMethods = class _ShippingMethods extends ApiResource {
5
- static TYPE = "shipping_methods";
6
- async create(resource, params, options) {
7
- return this.resources.create({ ...resource, type: _ShippingMethods.TYPE }, params, options);
8
- }
9
- async update(resource, params, options) {
10
- return this.resources.update({ ...resource, type: _ShippingMethods.TYPE }, params, options);
11
- }
12
- async delete(id, options) {
13
- await this.resources.delete(typeof id === "string" ? { id, type: _ShippingMethods.TYPE } : id, options);
14
- }
15
- async market(shippingMethodId, params, options) {
16
- const _shippingMethodId = shippingMethodId.id || shippingMethodId;
17
- return this.resources.fetch({ type: "markets" }, `shipping_methods/${_shippingMethodId}/market`, params, options);
18
- }
19
- async shipping_zone(shippingMethodId, params, options) {
20
- const _shippingMethodId = shippingMethodId.id || shippingMethodId;
21
- return this.resources.fetch({ type: "shipping_zones" }, `shipping_methods/${_shippingMethodId}/shipping_zone`, params, options);
22
- }
23
- async shipping_category(shippingMethodId, params, options) {
24
- const _shippingMethodId = shippingMethodId.id || shippingMethodId;
25
- return this.resources.fetch({ type: "shipping_categories" }, `shipping_methods/${_shippingMethodId}/shipping_category`, params, options);
26
- }
27
- async stock_location(shippingMethodId, params, options) {
28
- const _shippingMethodId = shippingMethodId.id || shippingMethodId;
29
- return this.resources.fetch({ type: "stock_locations" }, `shipping_methods/${_shippingMethodId}/stock_location`, params, options);
30
- }
31
- async delivery_lead_time_for_shipment(shippingMethodId, params, options) {
32
- const _shippingMethodId = shippingMethodId.id || shippingMethodId;
33
- return this.resources.fetch({ type: "delivery_lead_times" }, `shipping_methods/${_shippingMethodId}/delivery_lead_time_for_shipment`, params, options);
34
- }
35
- async shipping_method_tiers(shippingMethodId, params, options) {
36
- const _shippingMethodId = shippingMethodId.id || shippingMethodId;
37
- return this.resources.fetch({ type: "shipping_method_tiers" }, `shipping_methods/${_shippingMethodId}/shipping_method_tiers`, params, options);
38
- }
39
- async shipping_weight_tiers(shippingMethodId, params, options) {
40
- const _shippingMethodId = shippingMethodId.id || shippingMethodId;
41
- return this.resources.fetch({ type: "shipping_weight_tiers" }, `shipping_methods/${_shippingMethodId}/shipping_weight_tiers`, params, options);
42
- }
43
- async attachments(shippingMethodId, params, options) {
44
- const _shippingMethodId = shippingMethodId.id || shippingMethodId;
45
- return this.resources.fetch({ type: "attachments" }, `shipping_methods/${_shippingMethodId}/attachments`, params, options);
46
- }
47
- async notifications(shippingMethodId, params, options) {
48
- const _shippingMethodId = shippingMethodId.id || shippingMethodId;
49
- return this.resources.fetch({ type: "notifications" }, `shipping_methods/${_shippingMethodId}/notifications`, params, options);
50
- }
51
- async versions(shippingMethodId, params, options) {
52
- const _shippingMethodId = shippingMethodId.id || shippingMethodId;
53
- return this.resources.fetch({ type: "versions" }, `shipping_methods/${_shippingMethodId}/versions`, params, options);
54
- }
55
- async event_stores(shippingMethodId, params, options) {
56
- const _shippingMethodId = shippingMethodId.id || shippingMethodId;
57
- return this.resources.fetch({ type: "event_stores" }, `shipping_methods/${_shippingMethodId}/event_stores`, params, options);
58
- }
59
- async _disable(id, params, options) {
60
- return this.resources.update({ id: typeof id === "string" ? id : id.id, type: _ShippingMethods.TYPE, _disable: true }, params, options);
61
- }
62
- async _enable(id, params, options) {
63
- return this.resources.update({ id: typeof id === "string" ? id : id.id, type: _ShippingMethods.TYPE, _enable: true }, params, options);
64
- }
65
- async _reset_circuit(id, params, options) {
66
- return this.resources.update({ id: typeof id === "string" ? id : id.id, type: _ShippingMethods.TYPE, _reset_circuit: true }, params, options);
67
- }
68
- isShippingMethod(resource) {
69
- return resource.type && resource.type === _ShippingMethods.TYPE;
70
- }
71
- relationship(id) {
72
- return super.relationshipOneToOne(id);
73
- }
74
- relationshipToMany(...ids) {
75
- return super.relationshipOneToMany(...ids);
76
- }
77
- type() {
78
- return _ShippingMethods.TYPE;
79
- }
80
- };
81
- var instance = new ShippingMethods();
82
- var shipping_methods_default = instance;
83
-
84
- export { shipping_methods_default };
85
- //# sourceMappingURL=chunk-HU6DRUWJ.js.map
86
- //# sourceMappingURL=chunk-HU6DRUWJ.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../src/resources/shipping_methods.ts"],"names":[],"mappings":";;;AA4UA,IAAM,eAAA,GAAN,MAAM,gBAAA,SAAwB,WAAA,CAA4B;AAAA,EAEzD,OAAgB,IAAA,GAA2B,kBAAA;AAAA,EAE3C,MAAM,MAAA,CAAO,QAAA,EAAgC,MAAA,EAA8C,OAAA,EAAoD;AAC9I,IAAA,OAAO,IAAA,CAAK,SAAA,CAAU,MAAA,CAA6C,EAAE,GAAG,QAAA,EAAU,IAAA,EAAM,gBAAA,CAAgB,IAAA,EAAK,EAAG,MAAA,EAAQ,OAAO,CAAA;AAAA,EAChI;AAAA,EAEA,MAAM,MAAA,CAAO,QAAA,EAAgC,MAAA,EAA8C,OAAA,EAAoD;AAC9I,IAAA,OAAO,IAAA,CAAK,SAAA,CAAU,MAAA,CAA6C,EAAE,GAAG,QAAA,EAAU,IAAA,EAAM,gBAAA,CAAgB,IAAA,EAAK,EAAG,MAAA,EAAQ,OAAO,CAAA;AAAA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AA,EAC7D;AAAA,EAGA,IAAA,GAA2B;AAC1B,IAAA,OAAO,gBAAA,CAAgB,IAAA;AAAA,EACxB;AAED,CAAA;AAGA,IAAM,QAAA,GAAW,IAAI,eAAA,EAAgB;AACrC,IAAO,wBAAA,GAAQ","file":"chunk-HU6DRUWJ.js","sourcesContent":["import { ApiResource } from '../resource'\nimport type { Resource, ResourceCreate, ResourceUpdate, ResourceId, ResourcesConfig, ResourceRel, ListResponse, ResourceSort, /* ResourceFilter */ } from '../resource'\nimport type { QueryParamsRetrieve, QueryParamsList } from '../query'\n\nimport type { Market, MarketType } from './markets'\nimport type { ShippingZone, ShippingZoneType } from './shipping_zones'\nimport type { ShippingCategory, ShippingCategoryType } from './shipping_categories'\nimport type { StockLocation, StockLocationType } from './stock_locations'\nimport type { DeliveryLeadTime } from './delivery_lead_times'\nimport type { ShippingMethodTier, ShippingMethodTierType } from './shipping_method_tiers'\nimport type { ShippingWeightTier } from './shipping_weight_tiers'\nimport type { Attachment } from './attachments'\nimport type { Notification } from './notifications'\nimport type { Version } from './versions'\nimport type { EventStore } from './event_stores'\n\n\ntype ShippingMethodType = 'shipping_methods'\ntype ShippingMethodRel = ResourceRel & { type: ShippingMethodType }\ntype MarketRel = ResourceRel & { type: MarketType }\ntype ShippingZoneRel = ResourceRel & { type: ShippingZoneType }\ntype ShippingCategoryRel = ResourceRel & { type: ShippingCategoryType }\ntype StockLocationRel = ResourceRel & { type: StockLocationType }\ntype ShippingMethodTierRel = ResourceRel & { type: ShippingMethodTierType }\n\n\nexport type ShippingMethodSort = Pick<ShippingMethod, 'id' | 'name' | 'scheme' | 'currency_code' | 'price_amount_cents' | 'free_over_amount_cents' | 'disabled_at' | 'circuit_state' | 'circuit_failure_count'> & ResourceSort\n// export type ShippingMethodFilter = Pick<ShippingMethod, 'id' | 'name' | 'scheme' | 'currency_code' | 'price_amount_cents' | 'free_over_amount_cents' | 'disabled_at' | 'circuit_state' | 'circuit_failure_count'> & ResourceFilter\n\n\ninterface ShippingMethod extends Resource {\n\t\n\treadonly type: ShippingMethodType\n\n\t/** \n\t * The shipping method's name.\n\t * @example ```\"Standard shipping\"```\n\t */\n\tname: string\n\t/** \n\t * The shipping method's scheme. One of 'flat', 'weight_tiered', or 'external'.\n\t * @example ```\"flat\"```\n\t */\n\tscheme?: 'flat' | 'weight_tiered' | 'external' | null\n\t/** \n\t * The international 3-letter currency code as defined by the ISO 4217 standard.\n\t * @example ```\"EUR\"```\n\t */\n\tcurrency_code?: 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 price of this shipping method, in cents.\n\t * @example ```1000```\n\t */\n\tprice_amount_cents: number\n\t/** \n\t * The price of this shipping method, float.\n\t * @example ```10```\n\t */\n\tprice_amount_float?: number | null\n\t/** \n\t * The price of this shipping method, formatted.\n\t * @example ```\"€10,00\"```\n\t */\n\tformatted_price_amount?: string | null\n\t/** \n\t * Apply free shipping if the order amount is over this value, in cents.\n\t * @example ```9900```\n\t */\n\tfree_over_amount_cents?: number | null\n\t/** \n\t * Apply free shipping if the order amount is over this value, float.\n\t * @example ```99```\n\t */\n\tfree_over_amount_float?: number | null\n\t/** \n\t * Apply free shipping if the order amount is over this value, formatted.\n\t * @example ```\"€99,00\"```\n\t */\n\tformatted_free_over_amount?: string | null\n\t/** \n\t * Send this attribute if you want to compare the free over amount with order's subtotal (excluding discounts, if any).\n\t * @example ```true```\n\t */\n\tuse_subtotal?: boolean | null\n\t/** \n\t * The calculated price (zero or price amount) when associated to a shipment, in cents.\n\t */\n\tprice_amount_for_shipment_cents?: number | null\n\t/** \n\t * The calculated price (zero or price amount) when associated to a shipment, float.\n\t */\n\tprice_amount_for_shipment_float?: number | null\n\t/** \n\t * The calculated price (zero or price amount) when associated to a shipment, formatted.\n\t * @example ```\"€0,00\"```\n\t */\n\tformatted_price_amount_for_shipment?: string | null\n\t/** \n\t * The minimum weight for which this shipping method is available.\n\t * @example ```3```\n\t */\n\tmin_weight?: number | null\n\t/** \n\t * The maximum weight for which this shipping method is available.\n\t * @example ```300```\n\t */\n\tmax_weight?: 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 * The freight tax identifier code, specific for a particular tax calculator.\n\t * @example ```\"FR010000\"```\n\t */\n\ttax_code?: string | 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 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\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\tmarket?: Market | null\n\tshipping_zone?: ShippingZone | null\n\tshipping_category?: ShippingCategory | null\n\tstock_location?: StockLocation | null\n\tdelivery_lead_time_for_shipment?: DeliveryLeadTime | null\n\tshipping_method_tiers?: ShippingMethodTier[] | null\n\tshipping_weight_tiers?: ShippingWeightTier[] | null\n\tattachments?: Attachment[] | null\n\tnotifications?: Notification[] | null\n\tversions?: Version[] | null\n\tevent_stores?: EventStore[] | null\n\n}\n\n\ninterface ShippingMethodCreate extends ResourceCreate {\n\t\n\t/** \n\t * The shipping method's name.\n\t * @example ```\"Standard shipping\"```\n\t */\n\tname: string\n\t/** \n\t * The shipping method's scheme. One of 'flat', 'weight_tiered', or 'external'.\n\t * @example ```\"flat\"```\n\t */\n\tscheme?: 'flat' | 'weight_tiered' | 'external' | null\n\t/** \n\t * The international 3-letter currency code as defined by the ISO 4217 standard.\n\t * @example ```\"EUR\"```\n\t */\n\tcurrency_code?: 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 price of this shipping method, in cents.\n\t * @example ```1000```\n\t */\n\tprice_amount_cents: number\n\t/** \n\t * Apply free shipping if the order amount is over this value, in cents.\n\t * @example ```9900```\n\t */\n\tfree_over_amount_cents?: number | null\n\t/** \n\t * Send this attribute if you want to compare the free over amount with order's subtotal (excluding discounts, if any).\n\t * @example ```true```\n\t */\n\tuse_subtotal?: boolean | null\n\t/** \n\t * The minimum weight for which this shipping method is available.\n\t * @example ```3```\n\t */\n\tmin_weight?: number | null\n\t/** \n\t * The maximum weight for which this shipping method is available.\n\t * @example ```300```\n\t */\n\tmax_weight?: 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 * The freight tax identifier code, specific for a particular tax calculator.\n\t * @example ```\"FR010000\"```\n\t */\n\ttax_code?: string | 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\tmarket?: MarketRel | null\n\tshipping_zone?: ShippingZoneRel | null\n\tshipping_category?: ShippingCategoryRel | null\n\tstock_location?: StockLocationRel | null\n\tshipping_method_tiers?: ShippingMethodTierRel[] | null\n\n}\n\n\ninterface ShippingMethodUpdate extends ResourceUpdate {\n\t\n\t/** \n\t * The shipping method's name.\n\t * @example ```\"Standard shipping\"```\n\t */\n\tname?: string | null\n\t/** \n\t * The shipping method's scheme. One of 'flat', 'weight_tiered', or 'external'.\n\t * @example ```\"flat\"```\n\t */\n\tscheme?: 'flat' | 'weight_tiered' | 'external' | null\n\t/** \n\t * The international 3-letter currency code as defined by the ISO 4217 standard.\n\t * @example ```\"EUR\"```\n\t */\n\tcurrency_code?: 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 price of this shipping method, in cents.\n\t * @example ```1000```\n\t */\n\tprice_amount_cents?: number | null\n\t/** \n\t * Apply free shipping if the order amount is over this value, in cents.\n\t * @example ```9900```\n\t */\n\tfree_over_amount_cents?: number | null\n\t/** \n\t * Send this attribute if you want to compare the free over amount with order's subtotal (excluding discounts, if any).\n\t * @example ```true```\n\t */\n\tuse_subtotal?: boolean | null\n\t/** \n\t * The minimum weight for which this shipping method is available.\n\t * @example ```3```\n\t */\n\tmin_weight?: number | null\n\t/** \n\t * The maximum weight for which this shipping method is available.\n\t * @example ```300```\n\t */\n\tmax_weight?: 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 * The freight tax identifier code, specific for a particular tax calculator.\n\t * @example ```\"FR010000\"```\n\t */\n\ttax_code?: string | 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 * 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 * 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\tmarket?: MarketRel | null\n\tshipping_zone?: ShippingZoneRel | null\n\tshipping_category?: ShippingCategoryRel | null\n\tstock_location?: StockLocationRel | null\n\tshipping_method_tiers?: ShippingMethodTierRel[] | null\n\n}\n\n\nclass ShippingMethods extends ApiResource<ShippingMethod> {\n\n\tstatic readonly TYPE: ShippingMethodType = 'shipping_methods' as const\n\n\tasync create(resource: ShippingMethodCreate, params?: QueryParamsRetrieve<ShippingMethod>, options?: ResourcesConfig): Promise<ShippingMethod> {\n\t\treturn this.resources.create<ShippingMethodCreate, ShippingMethod>({ ...resource, type: ShippingMethods.TYPE }, params, options)\n\t}\n\n\tasync update(resource: ShippingMethodUpdate, params?: QueryParamsRetrieve<ShippingMethod>, options?: ResourcesConfig): Promise<ShippingMethod> {\n\t\treturn this.resources.update<ShippingMethodUpdate, ShippingMethod>({ ...resource, type: ShippingMethods.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: ShippingMethods.TYPE } : id, options)\n\t}\n\n\tasync market(shippingMethodId: string | ShippingMethod, params?: QueryParamsRetrieve<Market>, options?: ResourcesConfig): Promise<Market> {\n\t\tconst _shippingMethodId = (shippingMethodId as ShippingMethod).id || shippingMethodId as string\n\t\treturn this.resources.fetch<Market>({ type: 'markets' }, `shipping_methods/${_shippingMethodId}/market`, params, options) as unknown as Market\n\t}\n\n\tasync shipping_zone(shippingMethodId: string | ShippingMethod, params?: QueryParamsRetrieve<ShippingZone>, options?: ResourcesConfig): Promise<ShippingZone> {\n\t\tconst _shippingMethodId = (shippingMethodId as ShippingMethod).id || shippingMethodId as string\n\t\treturn this.resources.fetch<ShippingZone>({ type: 'shipping_zones' }, `shipping_methods/${_shippingMethodId}/shipping_zone`, params, options) as unknown as ShippingZone\n\t}\n\n\tasync shipping_category(shippingMethodId: string | ShippingMethod, params?: QueryParamsRetrieve<ShippingCategory>, options?: ResourcesConfig): Promise<ShippingCategory> {\n\t\tconst _shippingMethodId = (shippingMethodId as ShippingMethod).id || shippingMethodId as string\n\t\treturn this.resources.fetch<ShippingCategory>({ type: 'shipping_categories' }, `shipping_methods/${_shippingMethodId}/shipping_category`, params, options) as unknown as ShippingCategory\n\t}\n\n\tasync stock_location(shippingMethodId: string | ShippingMethod, params?: QueryParamsRetrieve<StockLocation>, options?: ResourcesConfig): Promise<StockLocation> {\n\t\tconst _shippingMethodId = (shippingMethodId as ShippingMethod).id || shippingMethodId as string\n\t\treturn this.resources.fetch<StockLocation>({ type: 'stock_locations' }, `shipping_methods/${_shippingMethodId}/stock_location`, params, options) as unknown as StockLocation\n\t}\n\n\tasync delivery_lead_time_for_shipment(shippingMethodId: string | ShippingMethod, params?: QueryParamsRetrieve<DeliveryLeadTime>, options?: ResourcesConfig): Promise<DeliveryLeadTime> {\n\t\tconst _shippingMethodId = (shippingMethodId as ShippingMethod).id || shippingMethodId as string\n\t\treturn this.resources.fetch<DeliveryLeadTime>({ type: 'delivery_lead_times' }, `shipping_methods/${_shippingMethodId}/delivery_lead_time_for_shipment`, params, options) as unknown as DeliveryLeadTime\n\t}\n\n\tasync shipping_method_tiers(shippingMethodId: string | ShippingMethod, params?: QueryParamsList<ShippingMethodTier>, options?: ResourcesConfig): Promise<ListResponse<ShippingMethodTier>> {\n\t\tconst _shippingMethodId = (shippingMethodId as ShippingMethod).id || shippingMethodId as string\n\t\treturn this.resources.fetch<ShippingMethodTier>({ type: 'shipping_method_tiers' }, `shipping_methods/${_shippingMethodId}/shipping_method_tiers`, params, options) as unknown as ListResponse<ShippingMethodTier>\n\t}\n\n\tasync shipping_weight_tiers(shippingMethodId: string | ShippingMethod, params?: QueryParamsList<ShippingWeightTier>, options?: ResourcesConfig): Promise<ListResponse<ShippingWeightTier>> {\n\t\tconst _shippingMethodId = (shippingMethodId as ShippingMethod).id || shippingMethodId as string\n\t\treturn this.resources.fetch<ShippingWeightTier>({ type: 'shipping_weight_tiers' }, `shipping_methods/${_shippingMethodId}/shipping_weight_tiers`, params, options) as unknown as ListResponse<ShippingWeightTier>\n\t}\n\n\tasync attachments(shippingMethodId: string | ShippingMethod, params?: QueryParamsList<Attachment>, options?: ResourcesConfig): Promise<ListResponse<Attachment>> {\n\t\tconst _shippingMethodId = (shippingMethodId as ShippingMethod).id || shippingMethodId as string\n\t\treturn this.resources.fetch<Attachment>({ type: 'attachments' }, `shipping_methods/${_shippingMethodId}/attachments`, params, options) as unknown as ListResponse<Attachment>\n\t}\n\n\tasync notifications(shippingMethodId: string | ShippingMethod, params?: QueryParamsList<Notification>, options?: ResourcesConfig): Promise<ListResponse<Notification>> {\n\t\tconst _shippingMethodId = (shippingMethodId as ShippingMethod).id || shippingMethodId as string\n\t\treturn this.resources.fetch<Notification>({ type: 'notifications' }, `shipping_methods/${_shippingMethodId}/notifications`, params, options) as unknown as ListResponse<Notification>\n\t}\n\n\tasync versions(shippingMethodId: string | ShippingMethod, params?: QueryParamsList<Version>, options?: ResourcesConfig): Promise<ListResponse<Version>> {\n\t\tconst _shippingMethodId = (shippingMethodId as ShippingMethod).id || shippingMethodId as string\n\t\treturn this.resources.fetch<Version>({ type: 'versions' }, `shipping_methods/${_shippingMethodId}/versions`, params, options) as unknown as ListResponse<Version>\n\t}\n\n\tasync event_stores(shippingMethodId: string | ShippingMethod, params?: QueryParamsList<EventStore>, options?: ResourcesConfig): Promise<ListResponse<EventStore>> {\n\t\tconst _shippingMethodId = (shippingMethodId as ShippingMethod).id || shippingMethodId as string\n\t\treturn this.resources.fetch<EventStore>({ type: 'event_stores' }, `shipping_methods/${_shippingMethodId}/event_stores`, params, options) as unknown as ListResponse<EventStore>\n\t}\n\n\tasync _disable(id: string | ShippingMethod, params?: QueryParamsRetrieve<ShippingMethod>, options?: ResourcesConfig): Promise<ShippingMethod> {\n\t\treturn this.resources.update<ShippingMethodUpdate, ShippingMethod>({ id: (typeof id === 'string')? id: id.id, type: ShippingMethods.TYPE, _disable: true }, params, options)\n\t}\n\n\tasync _enable(id: string | ShippingMethod, params?: QueryParamsRetrieve<ShippingMethod>, options?: ResourcesConfig): Promise<ShippingMethod> {\n\t\treturn this.resources.update<ShippingMethodUpdate, ShippingMethod>({ id: (typeof id === 'string')? id: id.id, type: ShippingMethods.TYPE, _enable: true }, params, options)\n\t}\n\n\tasync _reset_circuit(id: string | ShippingMethod, params?: QueryParamsRetrieve<ShippingMethod>, options?: ResourcesConfig): Promise<ShippingMethod> {\n\t\treturn this.resources.update<ShippingMethodUpdate, ShippingMethod>({ id: (typeof id === 'string')? id: id.id, type: ShippingMethods.TYPE, _reset_circuit: true }, params, options)\n\t}\n\n\n\tisShippingMethod(resource: any): resource is ShippingMethod {\n\t\treturn resource.type && (resource.type === ShippingMethods.TYPE)\n\t}\n\n\n\trelationship(id: string | ResourceId | null): ShippingMethodRel {\n\t\treturn super.relationshipOneToOne<ShippingMethodRel>(id)\n\t}\n\n\trelationshipToMany(...ids: string[]): ShippingMethodRel[] {\n\t\treturn super.relationshipOneToMany<ShippingMethodRel>(...ids)\n\t}\n\n\n\ttype(): ShippingMethodType {\n\t\treturn ShippingMethods.TYPE\n\t}\n\n}\n\n\nconst instance = new ShippingMethods()\nexport default instance\n\nexport type { ShippingMethods, ShippingMethod, ShippingMethodCreate, ShippingMethodUpdate, ShippingMethodType }\n"]}