@commercelayer/sdk 7.0.0-rc.8 → 7.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (1695) hide show
  1. package/README.md +2 -1
  2. package/lib/api-BsKF9Q-K.d.cts +17565 -0
  3. package/lib/api-hqUAWxVp.d.ts +17565 -0
  4. package/lib/api.cjs +288 -283
  5. package/lib/api.d.cts +1 -1
  6. package/lib/api.d.ts +1 -1
  7. package/lib/api.js +137 -136
  8. package/lib/bundle.cjs +277 -401
  9. package/lib/bundle.cjs.map +1 -1
  10. package/lib/bundle.d.cts +2 -2
  11. package/lib/bundle.d.ts +2 -2
  12. package/lib/bundle.js +276 -400
  13. package/lib/bundle.js.map +1 -1
  14. package/lib/chunk-2AIPAXOH.cjs +65 -0
  15. package/lib/chunk-2AIPAXOH.cjs.map +1 -0
  16. package/lib/chunk-2CPNHJAZ.cjs +51 -0
  17. package/lib/chunk-2CPNHJAZ.cjs.map +1 -0
  18. package/lib/chunk-2M54XID3.cjs +51 -0
  19. package/lib/chunk-2M54XID3.cjs.map +1 -0
  20. package/lib/chunk-2M5MIMZG.cjs +55 -0
  21. package/lib/chunk-2M5MIMZG.cjs.map +1 -0
  22. package/lib/chunk-2QBP2WHJ.js +49 -0
  23. package/lib/chunk-2QBP2WHJ.js.map +1 -0
  24. package/lib/chunk-2VNQTC3B.cjs +56 -0
  25. package/lib/chunk-2VNQTC3B.cjs.map +1 -0
  26. package/lib/chunk-2Y3T4MLF.cjs +53 -0
  27. package/lib/chunk-2Y3T4MLF.cjs.map +1 -0
  28. package/lib/chunk-33CXJXIW.js +63 -0
  29. package/lib/chunk-33CXJXIW.js.map +1 -0
  30. package/lib/chunk-3FQU4LWE.js +53 -0
  31. package/lib/chunk-3FQU4LWE.js.map +1 -0
  32. package/lib/chunk-3SD7QN5M.js +49 -0
  33. package/lib/chunk-3SD7QN5M.js.map +1 -0
  34. package/lib/chunk-3WTRPII2.cjs +47 -0
  35. package/lib/chunk-3WTRPII2.cjs.map +1 -0
  36. package/lib/chunk-3XJA5M3C.cjs +56 -0
  37. package/lib/chunk-3XJA5M3C.cjs.map +1 -0
  38. package/lib/chunk-3YINNWNG.cjs +51 -0
  39. package/lib/chunk-3YINNWNG.cjs.map +1 -0
  40. package/lib/chunk-3ZOHHEJR.js +59 -0
  41. package/lib/chunk-3ZOHHEJR.js.map +1 -0
  42. package/lib/chunk-43SLAYP5.js +68 -0
  43. package/lib/chunk-43SLAYP5.js.map +1 -0
  44. package/lib/chunk-45YSQMGA.cjs +81 -0
  45. package/lib/chunk-45YSQMGA.cjs.map +1 -0
  46. package/lib/chunk-4ATZM33H.js +49 -0
  47. package/lib/chunk-4ATZM33H.js.map +1 -0
  48. package/lib/chunk-4B4WZM22.cjs +39 -0
  49. package/lib/chunk-4B4WZM22.cjs.map +1 -0
  50. package/lib/chunk-4L73VYT5.cjs +51 -0
  51. package/lib/chunk-4L73VYT5.cjs.map +1 -0
  52. package/lib/chunk-4MCWJ5GT.js +57 -0
  53. package/lib/chunk-4MCWJ5GT.js.map +1 -0
  54. package/lib/chunk-4MDMKEMH.js +645 -0
  55. package/lib/chunk-4MDMKEMH.js.map +1 -0
  56. package/lib/chunk-4XQNILDJ.js +59 -0
  57. package/lib/chunk-4XQNILDJ.js.map +1 -0
  58. package/lib/chunk-54UOEWTE.cjs +79 -0
  59. package/lib/chunk-54UOEWTE.cjs.map +1 -0
  60. package/lib/chunk-5BIP4OLZ.js +54 -0
  61. package/lib/chunk-5BIP4OLZ.js.map +1 -0
  62. package/lib/chunk-5ENDZCMK.js +72 -0
  63. package/lib/chunk-5ENDZCMK.js.map +1 -0
  64. package/lib/chunk-5QHMVNEQ.cjs +34 -0
  65. package/lib/chunk-5QHMVNEQ.cjs.map +1 -0
  66. package/lib/chunk-5TL34ZY6.js +49 -0
  67. package/lib/chunk-5TL34ZY6.js.map +1 -0
  68. package/lib/chunk-5WUI6OHH.cjs +43 -0
  69. package/lib/chunk-5WUI6OHH.cjs.map +1 -0
  70. package/lib/chunk-62EOOGD4.js +128 -0
  71. package/lib/chunk-62EOOGD4.js.map +1 -0
  72. package/lib/chunk-65LSQZTV.js +45 -0
  73. package/lib/chunk-65LSQZTV.js.map +1 -0
  74. package/lib/chunk-67TJ6ALR.js +47 -0
  75. package/lib/chunk-67TJ6ALR.js.map +1 -0
  76. package/lib/chunk-67U7A4FV.cjs +72 -0
  77. package/lib/chunk-67U7A4FV.cjs.map +1 -0
  78. package/lib/chunk-6EIS4TN3.js +49 -0
  79. package/lib/chunk-6EIS4TN3.js.map +1 -0
  80. package/lib/chunk-6LHRWK5U.cjs +39 -0
  81. package/lib/chunk-6LHRWK5U.cjs.map +1 -0
  82. package/lib/chunk-6MVBC553.js +99 -0
  83. package/lib/chunk-6MVBC553.js.map +1 -0
  84. package/lib/chunk-6PKJDHVC.js +48 -0
  85. package/lib/chunk-6PKJDHVC.js.map +1 -0
  86. package/lib/chunk-6QOS6B5F.cjs +51 -0
  87. package/lib/chunk-6QOS6B5F.cjs.map +1 -0
  88. package/lib/chunk-6S7EJUCA.cjs +47 -0
  89. package/lib/chunk-6S7EJUCA.cjs.map +1 -0
  90. package/lib/chunk-6SGYQRO6.js +53 -0
  91. package/lib/chunk-6SGYQRO6.js.map +1 -0
  92. package/lib/chunk-6STKOQR7.cjs +63 -0
  93. package/lib/chunk-6STKOQR7.cjs.map +1 -0
  94. package/lib/chunk-6ZJMVQ7T.js +44 -0
  95. package/lib/chunk-6ZJMVQ7T.js.map +1 -0
  96. package/lib/chunk-6ZUGJHNV.cjs +47 -0
  97. package/lib/chunk-6ZUGJHNV.cjs.map +1 -0
  98. package/lib/chunk-73VR2FML.cjs +51 -0
  99. package/lib/chunk-73VR2FML.cjs.map +1 -0
  100. package/lib/chunk-7AHYBTEX.js +36 -0
  101. package/lib/chunk-7AHYBTEX.js.map +1 -0
  102. package/lib/chunk-7AOVIJPK.cjs +102 -0
  103. package/lib/chunk-7AOVIJPK.cjs.map +1 -0
  104. package/lib/chunk-7LH7NNTW.js +44 -0
  105. package/lib/chunk-7LH7NNTW.js.map +1 -0
  106. package/lib/chunk-7OLCOMGV.cjs +54 -0
  107. package/lib/chunk-7OLCOMGV.cjs.map +1 -0
  108. package/lib/chunk-7P3ZTIQX.cjs +55 -0
  109. package/lib/chunk-7P3ZTIQX.cjs.map +1 -0
  110. package/lib/chunk-7SJAVPZH.cjs +54 -0
  111. package/lib/chunk-7SJAVPZH.cjs.map +1 -0
  112. package/lib/chunk-7YWXHAMP.cjs +61 -0
  113. package/lib/chunk-7YWXHAMP.cjs.map +1 -0
  114. package/lib/chunk-7Z7FQA33.cjs +661 -0
  115. package/lib/chunk-7Z7FQA33.cjs.map +1 -0
  116. package/lib/chunk-A2SZPZSG.cjs +50 -0
  117. package/lib/chunk-A2SZPZSG.cjs.map +1 -0
  118. package/lib/chunk-A4MUL4NB.js +53 -0
  119. package/lib/chunk-A4MUL4NB.js.map +1 -0
  120. package/lib/chunk-A76SFMAB.cjs +51 -0
  121. package/lib/chunk-A76SFMAB.cjs.map +1 -0
  122. package/lib/chunk-AB7QWMMM.cjs +33 -0
  123. package/lib/chunk-AB7QWMMM.cjs.map +1 -0
  124. package/lib/chunk-AT27CIRM.js +107 -0
  125. package/lib/chunk-AT27CIRM.js.map +1 -0
  126. package/lib/chunk-ATVNGAQC.cjs +109 -0
  127. package/lib/chunk-ATVNGAQC.cjs.map +1 -0
  128. package/lib/chunk-AWV5Y4SH.js +70 -0
  129. package/lib/chunk-AWV5Y4SH.js.map +1 -0
  130. package/lib/chunk-BGHPRKU4.cjs +51 -0
  131. package/lib/chunk-BGHPRKU4.cjs.map +1 -0
  132. package/lib/chunk-BHXCVURA.cjs +130 -0
  133. package/lib/chunk-BHXCVURA.cjs.map +1 -0
  134. package/lib/chunk-BQ4VRKE7.js +28 -0
  135. package/lib/chunk-BQ4VRKE7.js.map +1 -0
  136. package/lib/chunk-BT72RZCE.js +36 -0
  137. package/lib/chunk-BT72RZCE.js.map +1 -0
  138. package/lib/chunk-BTLPF6RH.js +49 -0
  139. package/lib/chunk-BTLPF6RH.js.map +1 -0
  140. package/lib/chunk-BUHV5UDN.cjs +54 -0
  141. package/lib/chunk-BUHV5UDN.cjs.map +1 -0
  142. package/lib/chunk-C47UWH7R.js +48 -0
  143. package/lib/chunk-C47UWH7R.js.map +1 -0
  144. package/lib/chunk-C6ACTKJH.js +48 -0
  145. package/lib/chunk-C6ACTKJH.js.map +1 -0
  146. package/lib/chunk-CETB5FAI.js +41 -0
  147. package/lib/chunk-CETB5FAI.js.map +1 -0
  148. package/lib/chunk-CHYP5F26.js.map +1 -1
  149. package/lib/chunk-CMUUBOZK.cjs +99 -0
  150. package/lib/chunk-CMUUBOZK.cjs.map +1 -0
  151. package/lib/chunk-CRPD5Q5Y.js +88 -0
  152. package/lib/chunk-CRPD5Q5Y.js.map +1 -0
  153. package/lib/chunk-CYEVBUIW.js +100 -0
  154. package/lib/chunk-CYEVBUIW.js.map +1 -0
  155. package/lib/chunk-D7SALAS2.cjs +29 -0
  156. package/lib/chunk-D7SALAS2.cjs.map +1 -0
  157. package/lib/chunk-D7VHCT5M.cjs +47 -0
  158. package/lib/chunk-D7VHCT5M.cjs.map +1 -0
  159. package/lib/chunk-DEYOBMM5.js +49 -0
  160. package/lib/chunk-DEYOBMM5.js.map +1 -0
  161. package/lib/chunk-DIE5NWNX.js +105 -0
  162. package/lib/chunk-DIE5NWNX.js.map +1 -0
  163. package/lib/chunk-DM62R5CL.cjs +50 -0
  164. package/lib/chunk-DM62R5CL.cjs.map +1 -0
  165. package/lib/chunk-DPE4FTTS.cjs +42 -0
  166. package/lib/chunk-DPE4FTTS.cjs.map +1 -0
  167. package/lib/chunk-DPIHG4FX.cjs +51 -0
  168. package/lib/chunk-DPIHG4FX.cjs.map +1 -0
  169. package/lib/chunk-DPJDEC6A.js +42 -0
  170. package/lib/chunk-DPJDEC6A.js.map +1 -0
  171. package/lib/chunk-DQWWKXLR.cjs +51 -0
  172. package/lib/chunk-DQWWKXLR.cjs.map +1 -0
  173. package/lib/chunk-E2EVY45K.js +48 -0
  174. package/lib/chunk-E2EVY45K.js.map +1 -0
  175. package/lib/chunk-E2G3K7H4.js +32 -0
  176. package/lib/chunk-E2G3K7H4.js.map +1 -0
  177. package/lib/chunk-E6MQFGEF.js +77 -0
  178. package/lib/chunk-E6MQFGEF.js.map +1 -0
  179. package/lib/chunk-EAR4AXVU.cjs +51 -0
  180. package/lib/chunk-EAR4AXVU.cjs.map +1 -0
  181. package/lib/chunk-EFQH4OGQ.cjs +46 -0
  182. package/lib/chunk-EFQH4OGQ.cjs.map +1 -0
  183. package/lib/chunk-EFU44R7O.js +56 -0
  184. package/lib/chunk-EFU44R7O.js.map +1 -0
  185. package/lib/chunk-EPDTA5Z3.cjs +79 -0
  186. package/lib/chunk-EPDTA5Z3.cjs.map +1 -0
  187. package/lib/chunk-ESGRB4YB.cjs +55 -0
  188. package/lib/chunk-ESGRB4YB.cjs.map +1 -0
  189. package/lib/chunk-EVVUYC7T.cjs +47 -0
  190. package/lib/chunk-EVVUYC7T.cjs.map +1 -0
  191. package/lib/chunk-EW5ZFLK6.cjs +74 -0
  192. package/lib/chunk-EW5ZFLK6.cjs.map +1 -0
  193. package/lib/chunk-EZQ3QHF2.js +97 -0
  194. package/lib/chunk-EZQ3QHF2.js.map +1 -0
  195. package/lib/chunk-F3UMNXXH.js +45 -0
  196. package/lib/chunk-F3UMNXXH.js.map +1 -0
  197. package/lib/chunk-F6TOLEEF.js +37 -0
  198. package/lib/chunk-F6TOLEEF.js.map +1 -0
  199. package/lib/chunk-F6WABN7F.cjs +105 -0
  200. package/lib/chunk-F6WABN7F.cjs.map +1 -0
  201. package/lib/chunk-FCGKL7AI.cjs +51 -0
  202. package/lib/chunk-FCGKL7AI.cjs.map +1 -0
  203. package/lib/chunk-FDW7JX5A.cjs +55 -0
  204. package/lib/chunk-FDW7JX5A.cjs.map +1 -0
  205. package/lib/chunk-FDWMELHT.js +51 -0
  206. package/lib/chunk-FDWMELHT.js.map +1 -0
  207. package/lib/chunk-FI2PWG6C.js +63 -0
  208. package/lib/chunk-FI2PWG6C.js.map +1 -0
  209. package/lib/chunk-FI7BWBCX.js +63 -0
  210. package/lib/chunk-FI7BWBCX.js.map +1 -0
  211. package/lib/chunk-FIM76CMU.cjs +42 -0
  212. package/lib/chunk-FIM76CMU.cjs.map +1 -0
  213. package/lib/chunk-FLFTXWLQ.cjs +286 -0
  214. package/lib/chunk-FLFTXWLQ.cjs.map +1 -0
  215. package/lib/chunk-FMGDNZQ6.cjs +51 -0
  216. package/lib/chunk-FMGDNZQ6.cjs.map +1 -0
  217. package/lib/chunk-FNTJOIQB.cjs +60 -0
  218. package/lib/chunk-FNTJOIQB.cjs.map +1 -0
  219. package/lib/chunk-FTYGJZZM.js +44 -0
  220. package/lib/chunk-FTYGJZZM.js.map +1 -0
  221. package/lib/chunk-FUDBWYKD.js +49 -0
  222. package/lib/chunk-FUDBWYKD.js.map +1 -0
  223. package/lib/chunk-G2OYFKP2.cjs +90 -0
  224. package/lib/chunk-G2OYFKP2.cjs.map +1 -0
  225. package/lib/chunk-G2Y67WFX.js +73 -0
  226. package/lib/chunk-G2Y67WFX.js.map +1 -0
  227. package/lib/chunk-G2ZCHH4W.js +55 -0
  228. package/lib/chunk-G2ZCHH4W.js.map +1 -0
  229. package/lib/chunk-G5IOYKFS.js +53 -0
  230. package/lib/chunk-G5IOYKFS.js.map +1 -0
  231. package/lib/chunk-G74VYKRY.js +45 -0
  232. package/lib/chunk-G74VYKRY.js.map +1 -0
  233. package/lib/chunk-G7MROYQP.cjs +42 -0
  234. package/lib/chunk-G7MROYQP.cjs.map +1 -0
  235. package/lib/chunk-GJOZR5TC.cjs +93 -0
  236. package/lib/chunk-GJOZR5TC.cjs.map +1 -0
  237. package/lib/chunk-GKUFMSZL.js +32 -0
  238. package/lib/chunk-GKUFMSZL.js.map +1 -0
  239. package/lib/chunk-GLL264QG.cjs +55 -0
  240. package/lib/chunk-GLL264QG.cjs.map +1 -0
  241. package/lib/chunk-GRBPCPJQ.js +58 -0
  242. package/lib/chunk-GRBPCPJQ.js.map +1 -0
  243. package/lib/chunk-H5CKBXQS.js +53 -0
  244. package/lib/chunk-H5CKBXQS.js.map +1 -0
  245. package/lib/chunk-H6AQZ5TP.js +77 -0
  246. package/lib/chunk-H6AQZ5TP.js.map +1 -0
  247. package/lib/chunk-H7EX22DB.cjs +65 -0
  248. package/lib/chunk-H7EX22DB.cjs.map +1 -0
  249. package/lib/chunk-HBDXHKBE.js +91 -0
  250. package/lib/chunk-HBDXHKBE.js.map +1 -0
  251. package/lib/chunk-HH3NIT7B.js +49 -0
  252. package/lib/chunk-HH3NIT7B.js.map +1 -0
  253. package/lib/chunk-HUDH634O.cjs +67 -0
  254. package/lib/chunk-HUDH634O.cjs.map +1 -0
  255. package/lib/chunk-HXAWT7GZ.js +97 -0
  256. package/lib/chunk-HXAWT7GZ.js.map +1 -0
  257. package/lib/chunk-HZQRIP3G.js +284 -0
  258. package/lib/chunk-HZQRIP3G.js.map +1 -0
  259. package/lib/chunk-I2NZB6KN.js +44 -0
  260. package/lib/chunk-I2NZB6KN.js.map +1 -0
  261. package/lib/chunk-I3ZMOPMJ.js +52 -0
  262. package/lib/chunk-I3ZMOPMJ.js.map +1 -0
  263. package/lib/chunk-I56ZABWO.cjs +38 -0
  264. package/lib/chunk-I56ZABWO.cjs.map +1 -0
  265. package/lib/chunk-I5VOVSS7.cjs +71 -0
  266. package/lib/chunk-I5VOVSS7.cjs.map +1 -0
  267. package/lib/chunk-I64U2VMD.cjs +51 -0
  268. package/lib/chunk-I64U2VMD.cjs.map +1 -0
  269. package/lib/chunk-I66TFFKG.cjs +160 -0
  270. package/lib/chunk-I66TFFKG.cjs.map +1 -0
  271. package/lib/chunk-I73TW24N.cjs +101 -0
  272. package/lib/chunk-I73TW24N.cjs.map +1 -0
  273. package/lib/chunk-IALPF4NG.cjs +60 -0
  274. package/lib/chunk-IALPF4NG.cjs.map +1 -0
  275. package/lib/chunk-IHPFHOEJ.js +40 -0
  276. package/lib/chunk-IHPFHOEJ.js.map +1 -0
  277. package/lib/chunk-II544XO5.cjs +51 -0
  278. package/lib/chunk-II544XO5.cjs.map +1 -0
  279. package/lib/chunk-IKHD5UQP.cjs.map +1 -1
  280. package/lib/chunk-IQQNG3U2.cjs +55 -0
  281. package/lib/chunk-IQQNG3U2.cjs.map +1 -0
  282. package/lib/chunk-IQVSM3MS.js +57 -0
  283. package/lib/chunk-IQVSM3MS.js.map +1 -0
  284. package/lib/chunk-IXOAGKRD.cjs +65 -0
  285. package/lib/chunk-IXOAGKRD.cjs.map +1 -0
  286. package/lib/chunk-J32Z2XNX.cjs +57 -0
  287. package/lib/chunk-J32Z2XNX.cjs.map +1 -0
  288. package/lib/chunk-J42WGTN6.cjs +50 -0
  289. package/lib/chunk-J42WGTN6.cjs.map +1 -0
  290. package/lib/chunk-JAOFRM22.js +61 -0
  291. package/lib/chunk-JAOFRM22.js.map +1 -0
  292. package/lib/chunk-JCOJGOXF.cjs +107 -0
  293. package/lib/chunk-JCOJGOXF.cjs.map +1 -0
  294. package/lib/chunk-JDFDWBXQ.js +53 -0
  295. package/lib/chunk-JDFDWBXQ.js.map +1 -0
  296. package/lib/chunk-JPKZBEAY.js +59 -0
  297. package/lib/chunk-JPKZBEAY.js.map +1 -0
  298. package/lib/chunk-JRMM5QTS.cjs +99 -0
  299. package/lib/chunk-JRMM5QTS.cjs.map +1 -0
  300. package/lib/chunk-JUVEIRM4.cjs +47 -0
  301. package/lib/chunk-JUVEIRM4.cjs.map +1 -0
  302. package/lib/chunk-JVF5KY2J.cjs.map +1 -1
  303. package/lib/chunk-JVQVN3JM.js +31 -0
  304. package/lib/chunk-JVQVN3JM.js.map +1 -0
  305. package/lib/chunk-JWLNUOL5.js +79 -0
  306. package/lib/chunk-JWLNUOL5.js.map +1 -0
  307. package/lib/chunk-JYSIXEKG.cjs +54 -0
  308. package/lib/chunk-JYSIXEKG.cjs.map +1 -0
  309. package/lib/chunk-K2E4PX3F.cjs +51 -0
  310. package/lib/chunk-K2E4PX3F.cjs.map +1 -0
  311. package/lib/chunk-K3BSXSHS.cjs +55 -0
  312. package/lib/chunk-K3BSXSHS.cjs.map +1 -0
  313. package/lib/chunk-K7AR7Z3J.cjs +58 -0
  314. package/lib/chunk-K7AR7Z3J.cjs.map +1 -0
  315. package/lib/chunk-KAZKQXUO.js +103 -0
  316. package/lib/chunk-KAZKQXUO.js.map +1 -0
  317. package/lib/chunk-KDDMRBB6.cjs +30 -0
  318. package/lib/chunk-KDDMRBB6.cjs.map +1 -0
  319. package/lib/chunk-KDQRA5YH.js +49 -0
  320. package/lib/chunk-KDQRA5YH.js.map +1 -0
  321. package/lib/chunk-KGZ3FTYR.cjs +43 -0
  322. package/lib/chunk-KGZ3FTYR.cjs.map +1 -0
  323. package/lib/chunk-KIB4XYWP.js +37 -0
  324. package/lib/chunk-KIB4XYWP.js.map +1 -0
  325. package/lib/chunk-KM27D322.cjs +70 -0
  326. package/lib/chunk-KM27D322.cjs.map +1 -0
  327. package/lib/chunk-KNXPWX4D.cjs +73 -0
  328. package/lib/chunk-KNXPWX4D.cjs.map +1 -0
  329. package/lib/chunk-KT2FGWBT.cjs +59 -0
  330. package/lib/chunk-KT2FGWBT.cjs.map +1 -0
  331. package/lib/chunk-KVRZZTDE.js +40 -0
  332. package/lib/chunk-KVRZZTDE.js.map +1 -0
  333. package/lib/chunk-KWOKL6HK.cjs +59 -0
  334. package/lib/chunk-KWOKL6HK.cjs.map +1 -0
  335. package/lib/chunk-LE4I5AHS.js +53 -0
  336. package/lib/chunk-LE4I5AHS.js.map +1 -0
  337. package/lib/chunk-LESXALEZ.js +49 -0
  338. package/lib/chunk-LESXALEZ.js.map +1 -0
  339. package/lib/chunk-LF3CZYGK.js +49 -0
  340. package/lib/chunk-LF3CZYGK.js.map +1 -0
  341. package/lib/chunk-LGO42DAS.cjs +58 -0
  342. package/lib/chunk-LGO42DAS.cjs.map +1 -0
  343. package/lib/chunk-LGOJTWKL.js +52 -0
  344. package/lib/chunk-LGOJTWKL.js.map +1 -0
  345. package/lib/chunk-LLYWUA5S.js +54 -0
  346. package/lib/chunk-LLYWUA5S.js.map +1 -0
  347. package/lib/chunk-LTCWS2HF.cjs +43 -0
  348. package/lib/chunk-LTCWS2HF.cjs.map +1 -0
  349. package/lib/chunk-LZXPO7K6.cjs +88 -0
  350. package/lib/chunk-LZXPO7K6.cjs.map +1 -0
  351. package/lib/chunk-ME2ZNNMA.js +58 -0
  352. package/lib/chunk-ME2ZNNMA.js.map +1 -0
  353. package/lib/chunk-MHCLPVOI.js +56 -0
  354. package/lib/chunk-MHCLPVOI.js.map +1 -0
  355. package/lib/chunk-MKV2B7P5.cjs +46 -0
  356. package/lib/chunk-MKV2B7P5.cjs.map +1 -0
  357. package/lib/chunk-MOKBZVUU.js +53 -0
  358. package/lib/chunk-MOKBZVUU.js.map +1 -0
  359. package/lib/chunk-MR6CPNFJ.cjs +110 -0
  360. package/lib/chunk-MR6CPNFJ.cjs.map +1 -0
  361. package/lib/chunk-MUMTGXL2.js +57 -0
  362. package/lib/chunk-MUMTGXL2.js.map +1 -0
  363. package/lib/chunk-MXT6VH7V.js +45 -0
  364. package/lib/chunk-MXT6VH7V.js.map +1 -0
  365. package/lib/chunk-N35FM5P4.js +64 -0
  366. package/lib/chunk-N35FM5P4.js.map +1 -0
  367. package/lib/chunk-N4COQM5Q.js +37 -0
  368. package/lib/chunk-N4COQM5Q.js.map +1 -0
  369. package/lib/chunk-N5DBVBID.js +70 -0
  370. package/lib/chunk-N5DBVBID.js.map +1 -0
  371. package/lib/chunk-NEVN2SMR.js +53 -0
  372. package/lib/chunk-NEVN2SMR.js.map +1 -0
  373. package/lib/chunk-NEZXHBGE.js +3 -0
  374. package/lib/chunk-NEZXHBGE.js.map +1 -0
  375. package/lib/chunk-NODJ4LG6.js +97 -0
  376. package/lib/chunk-NODJ4LG6.js.map +1 -0
  377. package/lib/chunk-NRZBSJPM.js +45 -0
  378. package/lib/chunk-NRZBSJPM.js.map +1 -0
  379. package/lib/chunk-NWKIFDQH.cjs +55 -0
  380. package/lib/chunk-NWKIFDQH.cjs.map +1 -0
  381. package/lib/chunk-O3NWYOPV.cjs +55 -0
  382. package/lib/chunk-O3NWYOPV.cjs.map +1 -0
  383. package/lib/chunk-OA4DVMEQ.cjs +59 -0
  384. package/lib/chunk-OA4DVMEQ.cjs.map +1 -0
  385. package/lib/chunk-OA7RZ24N.js +49 -0
  386. package/lib/chunk-OA7RZ24N.js.map +1 -0
  387. package/lib/chunk-OEUSTDGS.cjs +42 -0
  388. package/lib/chunk-OEUSTDGS.cjs.map +1 -0
  389. package/lib/chunk-OH5533KN.cjs +55 -0
  390. package/lib/chunk-OH5533KN.cjs.map +1 -0
  391. package/lib/chunk-OL6PRNU5.js +49 -0
  392. package/lib/chunk-OL6PRNU5.js.map +1 -0
  393. package/lib/chunk-OS5DXUBX.js +49 -0
  394. package/lib/chunk-OS5DXUBX.js.map +1 -0
  395. package/lib/chunk-OV4JT553.cjs +51 -0
  396. package/lib/chunk-OV4JT553.cjs.map +1 -0
  397. package/lib/chunk-P2OLPCWV.cjs +54 -0
  398. package/lib/chunk-P2OLPCWV.cjs.map +1 -0
  399. package/lib/chunk-P5GRTTMC.js +71 -0
  400. package/lib/chunk-P5GRTTMC.js.map +1 -0
  401. package/lib/chunk-P7E2LQ6Q.js +53 -0
  402. package/lib/chunk-P7E2LQ6Q.js.map +1 -0
  403. package/lib/chunk-PA43CMMI.cjs +55 -0
  404. package/lib/chunk-PA43CMMI.cjs.map +1 -0
  405. package/lib/chunk-PBE4XAIR.cjs +65 -0
  406. package/lib/chunk-PBE4XAIR.cjs.map +1 -0
  407. package/lib/chunk-PBIARBZH.cjs +51 -0
  408. package/lib/chunk-PBIARBZH.cjs.map +1 -0
  409. package/lib/chunk-PEC5CKS7.cjs +22 -0
  410. package/lib/chunk-PEC5CKS7.cjs.map +1 -0
  411. package/lib/chunk-PENOPHMW.js +52 -0
  412. package/lib/chunk-PENOPHMW.js.map +1 -0
  413. package/lib/chunk-PIYKFPYB.js +49 -0
  414. package/lib/chunk-PIYKFPYB.js.map +1 -0
  415. package/lib/chunk-PLIS7EYD.js +41 -0
  416. package/lib/chunk-PLIS7EYD.js.map +1 -0
  417. package/lib/chunk-Q3ULISRX.cjs +57 -0
  418. package/lib/chunk-Q3ULISRX.cjs.map +1 -0
  419. package/lib/chunk-QB7GGVK7.js +52 -0
  420. package/lib/chunk-QB7GGVK7.js.map +1 -0
  421. package/lib/chunk-QD2VBPJU.js +53 -0
  422. package/lib/chunk-QD2VBPJU.js.map +1 -0
  423. package/lib/chunk-QGFAOPJG.cjs +26 -0
  424. package/lib/chunk-QGFAOPJG.cjs.map +1 -0
  425. package/lib/chunk-QXYNFQDJ.js +24 -0
  426. package/lib/chunk-QXYNFQDJ.js.map +1 -0
  427. package/lib/chunk-QYVJGMYT.cjs +51 -0
  428. package/lib/chunk-QYVJGMYT.cjs.map +1 -0
  429. package/lib/chunk-R2LRLUUY.js.map +1 -1
  430. package/lib/chunk-R5NSJSKB.js +49 -0
  431. package/lib/chunk-R5NSJSKB.js.map +1 -0
  432. package/lib/chunk-RAF3LK5T.cjs +51 -0
  433. package/lib/chunk-RAF3LK5T.cjs.map +1 -0
  434. package/lib/chunk-RDTIBHZO.cjs +51 -0
  435. package/lib/chunk-RDTIBHZO.cjs.map +1 -0
  436. package/lib/chunk-RHG3UVET.cjs +44 -0
  437. package/lib/chunk-RHG3UVET.cjs.map +1 -0
  438. package/lib/chunk-RJJQU44M.js +45 -0
  439. package/lib/chunk-RJJQU44M.js.map +1 -0
  440. package/lib/chunk-RK3E3UJ2.cjs +61 -0
  441. package/lib/chunk-RK3E3UJ2.cjs.map +1 -0
  442. package/lib/chunk-RLZV6AKT.cjs +99 -0
  443. package/lib/chunk-RLZV6AKT.cjs.map +1 -0
  444. package/lib/chunk-SDGSOWXI.js +49 -0
  445. package/lib/chunk-SDGSOWXI.js.map +1 -0
  446. package/lib/chunk-SKETQJTW.cjs +59 -0
  447. package/lib/chunk-SKETQJTW.cjs.map +1 -0
  448. package/lib/chunk-SRW7OWVS.cjs.map +1 -1
  449. package/lib/chunk-SRYEFARJ.cjs +4 -0
  450. package/lib/chunk-SRYEFARJ.cjs.map +1 -0
  451. package/lib/chunk-SXPZRQBF.js +49 -0
  452. package/lib/chunk-SXPZRQBF.js.map +1 -0
  453. package/lib/chunk-T2VDBKD4.js +44 -0
  454. package/lib/chunk-T2VDBKD4.js.map +1 -0
  455. package/lib/chunk-T5AO4445.cjs +49 -0
  456. package/lib/chunk-T5AO4445.cjs.map +1 -0
  457. package/lib/chunk-TE3N57V6.js +40 -0
  458. package/lib/chunk-TE3N57V6.js.map +1 -0
  459. package/lib/chunk-TFJYQUEH.cjs +51 -0
  460. package/lib/chunk-TFJYQUEH.cjs.map +1 -0
  461. package/lib/chunk-TIINXXHU.cjs +46 -0
  462. package/lib/chunk-TIINXXHU.cjs.map +1 -0
  463. package/lib/chunk-TLOIOTYF.cjs +66 -0
  464. package/lib/chunk-TLOIOTYF.cjs.map +1 -0
  465. package/lib/chunk-TRPV3CFO.cjs +75 -0
  466. package/lib/chunk-TRPV3CFO.cjs.map +1 -0
  467. package/lib/chunk-TWL4WEOL.js +49 -0
  468. package/lib/chunk-TWL4WEOL.js.map +1 -0
  469. package/lib/chunk-TWQ4THAG.js +45 -0
  470. package/lib/chunk-TWQ4THAG.js.map +1 -0
  471. package/lib/chunk-TZAGUXNS.cjs +61 -0
  472. package/lib/chunk-TZAGUXNS.cjs.map +1 -0
  473. package/lib/chunk-U22VLCMN.cjs +284 -0
  474. package/lib/chunk-U22VLCMN.cjs.map +1 -0
  475. package/lib/chunk-U25QRMJY.js +28 -0
  476. package/lib/chunk-U25QRMJY.js.map +1 -0
  477. package/lib/chunk-U4ELOYK7.cjs +42 -0
  478. package/lib/chunk-U4ELOYK7.cjs.map +1 -0
  479. package/lib/chunk-U7OGOZ5B.cjs +51 -0
  480. package/lib/chunk-U7OGOZ5B.cjs.map +1 -0
  481. package/lib/chunk-UEDVN7C4.js +49 -0
  482. package/lib/chunk-UEDVN7C4.js.map +1 -0
  483. package/lib/chunk-UEQ3CRVM.cjs +50 -0
  484. package/lib/chunk-UEQ3CRVM.cjs.map +1 -0
  485. package/lib/chunk-UHKV2XBV.cjs +95 -0
  486. package/lib/chunk-UHKV2XBV.cjs.map +1 -0
  487. package/lib/chunk-UIPKMXES.js +97 -0
  488. package/lib/chunk-UIPKMXES.js.map +1 -0
  489. package/lib/chunk-UTFSZHUD.cjs +39 -0
  490. package/lib/chunk-UTFSZHUD.cjs.map +1 -0
  491. package/lib/chunk-UUY77JM3.js +151 -0
  492. package/lib/chunk-UUY77JM3.js.map +1 -0
  493. package/lib/chunk-UWM5SGDS.js +65 -0
  494. package/lib/chunk-UWM5SGDS.js.map +1 -0
  495. package/lib/chunk-VDMJ7RC4.js +97 -0
  496. package/lib/chunk-VDMJ7RC4.js.map +1 -0
  497. package/lib/chunk-VEBN2D2K.js +53 -0
  498. package/lib/chunk-VEBN2D2K.js.map +1 -0
  499. package/lib/chunk-VGMMPMUL.js +55 -0
  500. package/lib/chunk-VGMMPMUL.js.map +1 -0
  501. package/lib/chunk-VKLOHZKL.js +104 -0
  502. package/lib/chunk-VKLOHZKL.js.map +1 -0
  503. package/lib/chunk-VKNNJ5CS.js +49 -0
  504. package/lib/chunk-VKNNJ5CS.js.map +1 -0
  505. package/lib/chunk-VRJJX4JV.js +40 -0
  506. package/lib/chunk-VRJJX4JV.js.map +1 -0
  507. package/lib/chunk-VT5HP44I.js +49 -0
  508. package/lib/chunk-VT5HP44I.js.map +1 -0
  509. package/lib/chunk-VUVL5VPT.js +49 -0
  510. package/lib/chunk-VUVL5VPT.js.map +1 -0
  511. package/lib/chunk-W2EFIUTW.js +40 -0
  512. package/lib/chunk-W2EFIUTW.js.map +1 -0
  513. package/lib/chunk-W6KL6Q4Z.cjs +99 -0
  514. package/lib/chunk-W6KL6Q4Z.cjs.map +1 -0
  515. package/lib/chunk-WAC3LO4S.cjs +51 -0
  516. package/lib/chunk-WAC3LO4S.cjs.map +1 -0
  517. package/lib/chunk-WEWTTMPS.cjs +46 -0
  518. package/lib/chunk-WEWTTMPS.cjs.map +1 -0
  519. package/lib/chunk-WK3SIZUG.js +41 -0
  520. package/lib/chunk-WK3SIZUG.js.map +1 -0
  521. package/lib/chunk-WO4S2ZUQ.js +49 -0
  522. package/lib/chunk-WO4S2ZUQ.js.map +1 -0
  523. package/lib/chunk-WVCUPAHM.cjs +38 -0
  524. package/lib/chunk-WVCUPAHM.cjs.map +1 -0
  525. package/lib/chunk-XD7GS4QW.js.map +1 -1
  526. package/lib/chunk-XFHMLWZM.js +63 -0
  527. package/lib/chunk-XFHMLWZM.js.map +1 -0
  528. package/lib/chunk-XKERR6OR.js +276 -0
  529. package/lib/chunk-XKERR6OR.js.map +1 -0
  530. package/lib/chunk-XOVAUMDC.cjs +55 -0
  531. package/lib/chunk-XOVAUMDC.cjs.map +1 -0
  532. package/lib/chunk-XYBXDS3Z.cjs +30 -0
  533. package/lib/chunk-XYBXDS3Z.cjs.map +1 -0
  534. package/lib/chunk-XYR7Q662.cjs +99 -0
  535. package/lib/chunk-XYR7Q662.cjs.map +1 -0
  536. package/lib/chunk-Y3NZRCF4.js +49 -0
  537. package/lib/chunk-Y3NZRCF4.js.map +1 -0
  538. package/lib/chunk-YIABS6K6.js +57 -0
  539. package/lib/chunk-YIABS6K6.js.map +1 -0
  540. package/lib/chunk-YPRABQMP.js +49 -0
  541. package/lib/chunk-YPRABQMP.js.map +1 -0
  542. package/lib/chunk-YTXFX5LA.js +27 -0
  543. package/lib/chunk-YTXFX5LA.js.map +1 -0
  544. package/lib/chunk-YX4ZQEON.cjs +67 -0
  545. package/lib/chunk-YX4ZQEON.cjs.map +1 -0
  546. package/lib/chunk-YY5ENJSH.cjs.map +1 -1
  547. package/lib/chunk-YZ4JURI3.cjs +51 -0
  548. package/lib/chunk-YZ4JURI3.cjs.map +1 -0
  549. package/lib/chunk-YZZQ7GVQ.js +65 -0
  550. package/lib/chunk-YZZQ7GVQ.js.map +1 -0
  551. package/lib/chunk-Z3FUZ3YM.cjs +72 -0
  552. package/lib/chunk-Z3FUZ3YM.cjs.map +1 -0
  553. package/lib/chunk-Z4LKTHPE.js +20 -0
  554. package/lib/chunk-Z4LKTHPE.js.map +1 -0
  555. package/lib/chunk-Z66CWIH5.cjs +51 -0
  556. package/lib/chunk-Z66CWIH5.cjs.map +1 -0
  557. package/lib/chunk-ZDTIKZYR.js +93 -0
  558. package/lib/chunk-ZDTIKZYR.js.map +1 -0
  559. package/lib/chunk-ZLFWYCCG.cjs +34 -0
  560. package/lib/chunk-ZLFWYCCG.cjs.map +1 -0
  561. package/lib/chunk-ZSG25S6U.cjs +51 -0
  562. package/lib/chunk-ZSG25S6U.cjs.map +1 -0
  563. package/lib/chunk-ZU7GFVQ6.js.map +1 -1
  564. package/lib/chunk-ZVS24BIO.js +86 -0
  565. package/lib/chunk-ZVS24BIO.js.map +1 -0
  566. package/lib/chunk-ZW4CB7J7.cjs +46 -0
  567. package/lib/chunk-ZW4CB7J7.cjs.map +1 -0
  568. package/lib/chunk-ZWVME7CU.cjs +153 -0
  569. package/lib/chunk-ZWVME7CU.cjs.map +1 -0
  570. package/lib/chunk-ZXEE43XR.js +52 -0
  571. package/lib/chunk-ZXEE43XR.js.map +1 -0
  572. package/lib/chunk-ZYAGX4RM.js +69 -0
  573. package/lib/chunk-ZYAGX4RM.js.map +1 -0
  574. package/lib/chunk-ZZ5BND4W.js +158 -0
  575. package/lib/chunk-ZZ5BND4W.js.map +1 -0
  576. package/lib/chunk-ZZOSKORP.cjs +47 -0
  577. package/lib/chunk-ZZOSKORP.cjs.map +1 -0
  578. package/lib/client.cjs +3 -3
  579. package/lib/client.d.cts +3 -1
  580. package/lib/client.js +2 -2
  581. package/lib/commercelayer.cjs +13 -9
  582. package/lib/commercelayer.d.cts +8 -5
  583. package/lib/commercelayer.d.ts +6 -5
  584. package/lib/commercelayer.js +5 -5
  585. package/lib/config.cjs +2 -2
  586. package/lib/config.js +1 -1
  587. package/lib/enum.cjs +16 -16
  588. package/lib/enum.d.cts +1 -1
  589. package/lib/enum.d.ts +1 -1
  590. package/lib/enum.js +1 -1
  591. package/lib/index.cjs +293 -288
  592. package/lib/index.d.cts +5 -2
  593. package/lib/index.d.ts +1 -1
  594. package/lib/index.js +139 -138
  595. package/lib/jsonapi.cjs +6 -6
  596. package/lib/jsonapi.d.cts +1 -1
  597. package/lib/jsonapi.d.ts +1 -1
  598. package/lib/jsonapi.js +4 -4
  599. package/lib/model.d.cts +1 -1
  600. package/lib/model.d.ts +1 -1
  601. package/lib/query.d.cts +1 -1
  602. package/lib/query.d.ts +1 -1
  603. package/lib/resource.cjs +9 -9
  604. package/lib/resource.d.cts +1 -1
  605. package/lib/resource.d.ts +1 -1
  606. package/lib/resource.js +4 -4
  607. package/lib/resources/addresses.cjs +6 -6
  608. package/lib/resources/addresses.d.cts +4 -1
  609. package/lib/resources/addresses.d.ts +1 -1
  610. package/lib/resources/addresses.js +5 -5
  611. package/lib/resources/adjustments.cjs +6 -6
  612. package/lib/resources/adjustments.d.cts +4 -1
  613. package/lib/resources/adjustments.d.ts +1 -1
  614. package/lib/resources/adjustments.js +5 -5
  615. package/lib/resources/adyen_gateways.cjs +6 -6
  616. package/lib/resources/adyen_gateways.d.cts +4 -1
  617. package/lib/resources/adyen_gateways.d.ts +1 -1
  618. package/lib/resources/adyen_gateways.js +5 -5
  619. package/lib/resources/adyen_payments.cjs +6 -6
  620. package/lib/resources/adyen_payments.d.cts +4 -1
  621. package/lib/resources/adyen_payments.d.ts +1 -1
  622. package/lib/resources/adyen_payments.js +5 -5
  623. package/lib/resources/applications.cjs +6 -6
  624. package/lib/resources/applications.d.cts +4 -1
  625. package/lib/resources/applications.d.ts +1 -1
  626. package/lib/resources/applications.js +5 -5
  627. package/lib/resources/attachments.cjs +6 -6
  628. package/lib/resources/attachments.d.cts +4 -1
  629. package/lib/resources/attachments.d.ts +1 -1
  630. package/lib/resources/attachments.js +5 -5
  631. package/lib/resources/authorizations.cjs +6 -6
  632. package/lib/resources/authorizations.d.cts +4 -1
  633. package/lib/resources/authorizations.d.ts +1 -1
  634. package/lib/resources/authorizations.js +5 -5
  635. package/lib/resources/avalara_accounts.cjs +6 -6
  636. package/lib/resources/avalara_accounts.d.cts +4 -1
  637. package/lib/resources/avalara_accounts.d.ts +1 -1
  638. package/lib/resources/avalara_accounts.js +5 -5
  639. package/lib/resources/axerve_gateways.cjs +6 -6
  640. package/lib/resources/axerve_gateways.d.cts +4 -1
  641. package/lib/resources/axerve_gateways.d.ts +1 -1
  642. package/lib/resources/axerve_gateways.js +5 -5
  643. package/lib/resources/axerve_payments.cjs +6 -6
  644. package/lib/resources/axerve_payments.d.cts +4 -1
  645. package/lib/resources/axerve_payments.d.ts +1 -1
  646. package/lib/resources/axerve_payments.js +5 -5
  647. package/lib/resources/bing_geocoders.cjs +6 -6
  648. package/lib/resources/bing_geocoders.d.cts +4 -1
  649. package/lib/resources/bing_geocoders.d.ts +1 -1
  650. package/lib/resources/bing_geocoders.js +5 -5
  651. package/lib/resources/braintree_gateways.cjs +6 -6
  652. package/lib/resources/braintree_gateways.d.cts +4 -1
  653. package/lib/resources/braintree_gateways.d.ts +1 -1
  654. package/lib/resources/braintree_gateways.js +5 -5
  655. package/lib/resources/braintree_payments.cjs +6 -6
  656. package/lib/resources/braintree_payments.d.cts +4 -1
  657. package/lib/resources/braintree_payments.d.ts +1 -1
  658. package/lib/resources/braintree_payments.js +5 -5
  659. package/lib/resources/bundles.cjs +6 -6
  660. package/lib/resources/bundles.d.cts +4 -1
  661. package/lib/resources/bundles.d.ts +1 -1
  662. package/lib/resources/bundles.js +5 -5
  663. package/lib/resources/buy_x_pay_y_promotions.cjs +6 -6
  664. package/lib/resources/buy_x_pay_y_promotions.d.cts +4 -1
  665. package/lib/resources/buy_x_pay_y_promotions.d.ts +1 -1
  666. package/lib/resources/buy_x_pay_y_promotions.js +5 -5
  667. package/lib/resources/captures.cjs +6 -6
  668. package/lib/resources/captures.d.cts +4 -1
  669. package/lib/resources/captures.d.ts +1 -1
  670. package/lib/resources/captures.js +5 -5
  671. package/lib/resources/carrier_accounts.cjs +6 -6
  672. package/lib/resources/carrier_accounts.d.cts +4 -1
  673. package/lib/resources/carrier_accounts.d.ts +1 -1
  674. package/lib/resources/carrier_accounts.js +5 -5
  675. package/lib/resources/checkout_com_gateways.cjs +6 -6
  676. package/lib/resources/checkout_com_gateways.d.cts +4 -1
  677. package/lib/resources/checkout_com_gateways.d.ts +1 -1
  678. package/lib/resources/checkout_com_gateways.js +5 -5
  679. package/lib/resources/checkout_com_payments.cjs +6 -6
  680. package/lib/resources/checkout_com_payments.d.cts +4 -1
  681. package/lib/resources/checkout_com_payments.d.ts +1 -1
  682. package/lib/resources/checkout_com_payments.js +5 -5
  683. package/lib/resources/cleanups.cjs +6 -6
  684. package/lib/resources/cleanups.d.cts +4 -1
  685. package/lib/resources/cleanups.d.ts +1 -1
  686. package/lib/resources/cleanups.js +5 -5
  687. package/lib/resources/coupon_codes_promotion_rules.cjs +6 -6
  688. package/lib/resources/coupon_codes_promotion_rules.d.cts +4 -1
  689. package/lib/resources/coupon_codes_promotion_rules.d.ts +1 -1
  690. package/lib/resources/coupon_codes_promotion_rules.js +5 -5
  691. package/lib/resources/coupon_recipients.cjs +6 -6
  692. package/lib/resources/coupon_recipients.d.cts +4 -1
  693. package/lib/resources/coupon_recipients.d.ts +1 -1
  694. package/lib/resources/coupon_recipients.js +5 -5
  695. package/lib/resources/coupons.cjs +6 -6
  696. package/lib/resources/coupons.d.cts +4 -1
  697. package/lib/resources/coupons.d.ts +1 -1
  698. package/lib/resources/coupons.js +5 -5
  699. package/lib/resources/custom_promotion_rules.cjs +6 -6
  700. package/lib/resources/custom_promotion_rules.d.cts +4 -1
  701. package/lib/resources/custom_promotion_rules.d.ts +1 -1
  702. package/lib/resources/custom_promotion_rules.js +5 -5
  703. package/lib/resources/customer_addresses.cjs +6 -6
  704. package/lib/resources/customer_addresses.d.cts +4 -1
  705. package/lib/resources/customer_addresses.d.ts +1 -1
  706. package/lib/resources/customer_addresses.js +5 -5
  707. package/lib/resources/customer_groups.cjs +6 -6
  708. package/lib/resources/customer_groups.d.cts +4 -1
  709. package/lib/resources/customer_groups.d.ts +1 -1
  710. package/lib/resources/customer_groups.js +5 -5
  711. package/lib/resources/customer_password_resets.cjs +6 -6
  712. package/lib/resources/customer_password_resets.d.cts +4 -1
  713. package/lib/resources/customer_password_resets.d.ts +1 -1
  714. package/lib/resources/customer_password_resets.js +5 -5
  715. package/lib/resources/customer_payment_sources.cjs +6 -6
  716. package/lib/resources/customer_payment_sources.d.cts +4 -1
  717. package/lib/resources/customer_payment_sources.d.ts +1 -1
  718. package/lib/resources/customer_payment_sources.js +5 -5
  719. package/lib/resources/customer_subscriptions.cjs +6 -6
  720. package/lib/resources/customer_subscriptions.d.cts +4 -1
  721. package/lib/resources/customer_subscriptions.d.ts +1 -1
  722. package/lib/resources/customer_subscriptions.js +5 -5
  723. package/lib/resources/customers.cjs +6 -6
  724. package/lib/resources/customers.d.cts +4 -1
  725. package/lib/resources/customers.d.ts +1 -1
  726. package/lib/resources/customers.js +5 -5
  727. package/lib/resources/delivery_lead_times.cjs +6 -6
  728. package/lib/resources/delivery_lead_times.d.cts +4 -1
  729. package/lib/resources/delivery_lead_times.d.ts +1 -1
  730. package/lib/resources/delivery_lead_times.js +5 -5
  731. package/lib/resources/discount_engine_items.cjs +6 -6
  732. package/lib/resources/discount_engine_items.d.cts +4 -1
  733. package/lib/resources/discount_engine_items.d.ts +1 -1
  734. package/lib/resources/discount_engine_items.js +5 -5
  735. package/lib/resources/discount_engines.cjs +6 -6
  736. package/lib/resources/discount_engines.d.cts +4 -1
  737. package/lib/resources/discount_engines.d.ts +1 -1
  738. package/lib/resources/discount_engines.js +5 -5
  739. package/lib/resources/easypost_pickups.cjs +6 -6
  740. package/lib/resources/easypost_pickups.d.cts +4 -1
  741. package/lib/resources/easypost_pickups.d.ts +1 -1
  742. package/lib/resources/easypost_pickups.js +5 -5
  743. package/lib/resources/event_callbacks.cjs +6 -6
  744. package/lib/resources/event_callbacks.d.cts +4 -1
  745. package/lib/resources/event_callbacks.d.ts +1 -1
  746. package/lib/resources/event_callbacks.js +5 -5
  747. package/lib/resources/event_stores.cjs +20 -0
  748. package/lib/resources/event_stores.cjs.map +1 -0
  749. package/lib/resources/event_stores.d.cts +7 -0
  750. package/lib/resources/event_stores.d.ts +4 -0
  751. package/lib/resources/event_stores.js +12 -0
  752. package/lib/resources/event_stores.js.map +1 -0
  753. package/lib/resources/events.cjs +6 -6
  754. package/lib/resources/events.d.cts +4 -1
  755. package/lib/resources/events.d.ts +1 -1
  756. package/lib/resources/events.js +5 -5
  757. package/lib/resources/exports.cjs +6 -6
  758. package/lib/resources/exports.d.cts +4 -1
  759. package/lib/resources/exports.d.ts +1 -1
  760. package/lib/resources/exports.js +5 -5
  761. package/lib/resources/external_gateways.cjs +6 -6
  762. package/lib/resources/external_gateways.d.cts +4 -1
  763. package/lib/resources/external_gateways.d.ts +1 -1
  764. package/lib/resources/external_gateways.js +5 -5
  765. package/lib/resources/external_payments.cjs +6 -6
  766. package/lib/resources/external_payments.d.cts +4 -1
  767. package/lib/resources/external_payments.d.ts +1 -1
  768. package/lib/resources/external_payments.js +5 -5
  769. package/lib/resources/external_promotions.cjs +6 -6
  770. package/lib/resources/external_promotions.d.cts +4 -1
  771. package/lib/resources/external_promotions.d.ts +1 -1
  772. package/lib/resources/external_promotions.js +5 -5
  773. package/lib/resources/external_tax_calculators.cjs +6 -6
  774. package/lib/resources/external_tax_calculators.d.cts +4 -1
  775. package/lib/resources/external_tax_calculators.d.ts +1 -1
  776. package/lib/resources/external_tax_calculators.js +5 -5
  777. package/lib/resources/fixed_amount_promotions.cjs +6 -6
  778. package/lib/resources/fixed_amount_promotions.d.cts +4 -1
  779. package/lib/resources/fixed_amount_promotions.d.ts +1 -1
  780. package/lib/resources/fixed_amount_promotions.js +5 -5
  781. package/lib/resources/fixed_price_promotions.cjs +6 -6
  782. package/lib/resources/fixed_price_promotions.d.cts +4 -1
  783. package/lib/resources/fixed_price_promotions.d.ts +1 -1
  784. package/lib/resources/fixed_price_promotions.js +5 -5
  785. package/lib/resources/flex_promotions.cjs +6 -6
  786. package/lib/resources/flex_promotions.d.cts +4 -1
  787. package/lib/resources/flex_promotions.d.ts +1 -1
  788. package/lib/resources/flex_promotions.js +5 -5
  789. package/lib/resources/free_gift_promotions.cjs +6 -6
  790. package/lib/resources/free_gift_promotions.d.cts +4 -1
  791. package/lib/resources/free_gift_promotions.d.ts +1 -1
  792. package/lib/resources/free_gift_promotions.js +5 -5
  793. package/lib/resources/free_shipping_promotions.cjs +6 -6
  794. package/lib/resources/free_shipping_promotions.d.cts +4 -1
  795. package/lib/resources/free_shipping_promotions.d.ts +1 -1
  796. package/lib/resources/free_shipping_promotions.js +5 -5
  797. package/lib/resources/geocoders.cjs +6 -6
  798. package/lib/resources/geocoders.d.cts +4 -1
  799. package/lib/resources/geocoders.d.ts +1 -1
  800. package/lib/resources/geocoders.js +5 -5
  801. package/lib/resources/gift_card_recipients.cjs +6 -6
  802. package/lib/resources/gift_card_recipients.d.cts +4 -1
  803. package/lib/resources/gift_card_recipients.d.ts +1 -1
  804. package/lib/resources/gift_card_recipients.js +5 -5
  805. package/lib/resources/gift_cards.cjs +6 -6
  806. package/lib/resources/gift_cards.d.cts +4 -1
  807. package/lib/resources/gift_cards.d.ts +1 -1
  808. package/lib/resources/gift_cards.js +5 -5
  809. package/lib/resources/google_geocoders.cjs +6 -6
  810. package/lib/resources/google_geocoders.d.cts +4 -1
  811. package/lib/resources/google_geocoders.d.ts +1 -1
  812. package/lib/resources/google_geocoders.js +5 -5
  813. package/lib/resources/imports.cjs +6 -6
  814. package/lib/resources/imports.d.cts +4 -1
  815. package/lib/resources/imports.d.ts +1 -1
  816. package/lib/resources/imports.js +5 -5
  817. package/lib/resources/in_stock_subscriptions.cjs +6 -6
  818. package/lib/resources/in_stock_subscriptions.d.cts +4 -1
  819. package/lib/resources/in_stock_subscriptions.d.ts +1 -1
  820. package/lib/resources/in_stock_subscriptions.js +5 -5
  821. package/lib/resources/inventory_models.cjs +6 -6
  822. package/lib/resources/inventory_models.d.cts +4 -1
  823. package/lib/resources/inventory_models.d.ts +1 -1
  824. package/lib/resources/inventory_models.js +5 -5
  825. package/lib/resources/inventory_return_locations.cjs +6 -6
  826. package/lib/resources/inventory_return_locations.d.cts +4 -1
  827. package/lib/resources/inventory_return_locations.d.ts +1 -1
  828. package/lib/resources/inventory_return_locations.js +5 -5
  829. package/lib/resources/inventory_stock_locations.cjs +6 -6
  830. package/lib/resources/inventory_stock_locations.d.cts +4 -1
  831. package/lib/resources/inventory_stock_locations.d.ts +1 -1
  832. package/lib/resources/inventory_stock_locations.js +5 -5
  833. package/lib/resources/klarna_gateways.cjs +6 -6
  834. package/lib/resources/klarna_gateways.d.cts +4 -1
  835. package/lib/resources/klarna_gateways.d.ts +1 -1
  836. package/lib/resources/klarna_gateways.js +5 -5
  837. package/lib/resources/klarna_payments.cjs +6 -6
  838. package/lib/resources/klarna_payments.d.cts +4 -1
  839. package/lib/resources/klarna_payments.d.ts +1 -1
  840. package/lib/resources/klarna_payments.js +5 -5
  841. package/lib/resources/line_item_options.cjs +6 -6
  842. package/lib/resources/line_item_options.d.cts +4 -1
  843. package/lib/resources/line_item_options.d.ts +1 -1
  844. package/lib/resources/line_item_options.js +5 -5
  845. package/lib/resources/line_items.cjs +6 -6
  846. package/lib/resources/line_items.d.cts +4 -1
  847. package/lib/resources/line_items.d.ts +1 -1
  848. package/lib/resources/line_items.js +5 -5
  849. package/lib/resources/links.cjs +6 -6
  850. package/lib/resources/links.d.cts +4 -1
  851. package/lib/resources/links.d.ts +1 -1
  852. package/lib/resources/links.js +5 -5
  853. package/lib/resources/manual_gateways.cjs +6 -6
  854. package/lib/resources/manual_gateways.d.cts +4 -1
  855. package/lib/resources/manual_gateways.d.ts +1 -1
  856. package/lib/resources/manual_gateways.js +5 -5
  857. package/lib/resources/manual_tax_calculators.cjs +6 -6
  858. package/lib/resources/manual_tax_calculators.d.cts +4 -1
  859. package/lib/resources/manual_tax_calculators.d.ts +1 -1
  860. package/lib/resources/manual_tax_calculators.js +5 -5
  861. package/lib/resources/markets.cjs +6 -6
  862. package/lib/resources/markets.d.cts +4 -1
  863. package/lib/resources/markets.d.ts +1 -1
  864. package/lib/resources/markets.js +5 -5
  865. package/lib/resources/merchants.cjs +6 -6
  866. package/lib/resources/merchants.d.cts +4 -1
  867. package/lib/resources/merchants.d.ts +1 -1
  868. package/lib/resources/merchants.js +5 -5
  869. package/lib/resources/notifications.cjs +6 -6
  870. package/lib/resources/notifications.d.cts +4 -1
  871. package/lib/resources/notifications.d.ts +1 -1
  872. package/lib/resources/notifications.js +5 -5
  873. package/lib/resources/order_amount_promotion_rules.cjs +6 -6
  874. package/lib/resources/order_amount_promotion_rules.d.cts +4 -1
  875. package/lib/resources/order_amount_promotion_rules.d.ts +1 -1
  876. package/lib/resources/order_amount_promotion_rules.js +5 -5
  877. package/lib/resources/order_copies.cjs +6 -6
  878. package/lib/resources/order_copies.d.cts +4 -1
  879. package/lib/resources/order_copies.d.ts +1 -1
  880. package/lib/resources/order_copies.js +5 -5
  881. package/lib/resources/order_factories.cjs +6 -6
  882. package/lib/resources/order_factories.d.cts +4 -1
  883. package/lib/resources/order_factories.d.ts +1 -1
  884. package/lib/resources/order_factories.js +5 -5
  885. package/lib/resources/order_subscription_items.cjs +6 -6
  886. package/lib/resources/order_subscription_items.d.cts +4 -1
  887. package/lib/resources/order_subscription_items.d.ts +1 -1
  888. package/lib/resources/order_subscription_items.js +5 -5
  889. package/lib/resources/order_subscriptions.cjs +6 -6
  890. package/lib/resources/order_subscriptions.d.cts +4 -1
  891. package/lib/resources/order_subscriptions.d.ts +1 -1
  892. package/lib/resources/order_subscriptions.js +5 -5
  893. package/lib/resources/orders.cjs +6 -6
  894. package/lib/resources/orders.d.cts +4 -1
  895. package/lib/resources/orders.d.ts +1 -1
  896. package/lib/resources/orders.js +5 -5
  897. package/lib/resources/organizations.cjs +6 -6
  898. package/lib/resources/organizations.d.cts +4 -1
  899. package/lib/resources/organizations.d.ts +1 -1
  900. package/lib/resources/organizations.js +5 -5
  901. package/lib/resources/packages.cjs +6 -6
  902. package/lib/resources/packages.d.cts +4 -1
  903. package/lib/resources/packages.d.ts +1 -1
  904. package/lib/resources/packages.js +5 -5
  905. package/lib/resources/parcel_line_items.cjs +6 -6
  906. package/lib/resources/parcel_line_items.d.cts +4 -1
  907. package/lib/resources/parcel_line_items.d.ts +1 -1
  908. package/lib/resources/parcel_line_items.js +5 -5
  909. package/lib/resources/parcels.cjs +6 -6
  910. package/lib/resources/parcels.d.cts +4 -1
  911. package/lib/resources/parcels.d.ts +1 -1
  912. package/lib/resources/parcels.js +5 -5
  913. package/lib/resources/payment_gateways.cjs +6 -6
  914. package/lib/resources/payment_gateways.d.cts +4 -1
  915. package/lib/resources/payment_gateways.d.ts +1 -1
  916. package/lib/resources/payment_gateways.js +5 -5
  917. package/lib/resources/payment_methods.cjs +6 -6
  918. package/lib/resources/payment_methods.d.cts +4 -1
  919. package/lib/resources/payment_methods.d.ts +1 -1
  920. package/lib/resources/payment_methods.js +5 -5
  921. package/lib/resources/payment_options.cjs +6 -6
  922. package/lib/resources/payment_options.d.cts +4 -1
  923. package/lib/resources/payment_options.d.ts +1 -1
  924. package/lib/resources/payment_options.js +5 -5
  925. package/lib/resources/paypal_gateways.cjs +6 -6
  926. package/lib/resources/paypal_gateways.d.cts +4 -1
  927. package/lib/resources/paypal_gateways.d.ts +1 -1
  928. package/lib/resources/paypal_gateways.js +5 -5
  929. package/lib/resources/paypal_payments.cjs +6 -6
  930. package/lib/resources/paypal_payments.d.cts +4 -1
  931. package/lib/resources/paypal_payments.d.ts +1 -1
  932. package/lib/resources/paypal_payments.js +5 -5
  933. package/lib/resources/percentage_discount_promotions.cjs +6 -6
  934. package/lib/resources/percentage_discount_promotions.d.cts +4 -1
  935. package/lib/resources/percentage_discount_promotions.d.ts +1 -1
  936. package/lib/resources/percentage_discount_promotions.js +5 -5
  937. package/lib/resources/pickups.cjs +6 -6
  938. package/lib/resources/pickups.d.cts +4 -1
  939. package/lib/resources/pickups.d.ts +1 -1
  940. package/lib/resources/pickups.js +5 -5
  941. package/lib/resources/price_frequency_tiers.cjs +6 -6
  942. package/lib/resources/price_frequency_tiers.d.cts +4 -1
  943. package/lib/resources/price_frequency_tiers.d.ts +1 -1
  944. package/lib/resources/price_frequency_tiers.js +5 -5
  945. package/lib/resources/price_list_schedulers.cjs +6 -6
  946. package/lib/resources/price_list_schedulers.d.cts +4 -1
  947. package/lib/resources/price_list_schedulers.d.ts +1 -1
  948. package/lib/resources/price_list_schedulers.js +5 -5
  949. package/lib/resources/price_lists.cjs +6 -6
  950. package/lib/resources/price_lists.d.cts +4 -1
  951. package/lib/resources/price_lists.d.ts +1 -1
  952. package/lib/resources/price_lists.js +5 -5
  953. package/lib/resources/price_tiers.cjs +6 -6
  954. package/lib/resources/price_tiers.d.cts +4 -1
  955. package/lib/resources/price_tiers.d.ts +1 -1
  956. package/lib/resources/price_tiers.js +5 -5
  957. package/lib/resources/price_volume_tiers.cjs +6 -6
  958. package/lib/resources/price_volume_tiers.d.cts +4 -1
  959. package/lib/resources/price_volume_tiers.d.ts +1 -1
  960. package/lib/resources/price_volume_tiers.js +5 -5
  961. package/lib/resources/prices.cjs +6 -6
  962. package/lib/resources/prices.d.cts +4 -1
  963. package/lib/resources/prices.d.ts +1 -1
  964. package/lib/resources/prices.js +5 -5
  965. package/lib/resources/promotion_rules.cjs +6 -6
  966. package/lib/resources/promotion_rules.d.cts +4 -1
  967. package/lib/resources/promotion_rules.d.ts +1 -1
  968. package/lib/resources/promotion_rules.js +5 -5
  969. package/lib/resources/promotions.cjs +6 -6
  970. package/lib/resources/promotions.d.cts +4 -1
  971. package/lib/resources/promotions.d.ts +1 -1
  972. package/lib/resources/promotions.js +5 -5
  973. package/lib/resources/recurring_order_copies.cjs +6 -6
  974. package/lib/resources/recurring_order_copies.d.cts +4 -1
  975. package/lib/resources/recurring_order_copies.d.ts +1 -1
  976. package/lib/resources/recurring_order_copies.js +5 -5
  977. package/lib/resources/refunds.cjs +6 -6
  978. package/lib/resources/refunds.d.cts +4 -1
  979. package/lib/resources/refunds.d.ts +1 -1
  980. package/lib/resources/refunds.js +5 -5
  981. package/lib/resources/reserved_stocks.cjs +6 -6
  982. package/lib/resources/reserved_stocks.d.cts +4 -1
  983. package/lib/resources/reserved_stocks.d.ts +1 -1
  984. package/lib/resources/reserved_stocks.js +5 -5
  985. package/lib/resources/resource_errors.cjs +6 -6
  986. package/lib/resources/resource_errors.d.cts +4 -1
  987. package/lib/resources/resource_errors.d.ts +1 -1
  988. package/lib/resources/resource_errors.js +5 -5
  989. package/lib/resources/return_line_items.cjs +6 -6
  990. package/lib/resources/return_line_items.d.cts +4 -1
  991. package/lib/resources/return_line_items.d.ts +1 -1
  992. package/lib/resources/return_line_items.js +5 -5
  993. package/lib/resources/returns.cjs +6 -6
  994. package/lib/resources/returns.d.cts +4 -1
  995. package/lib/resources/returns.d.ts +1 -1
  996. package/lib/resources/returns.js +5 -5
  997. package/lib/resources/satispay_gateways.cjs +6 -6
  998. package/lib/resources/satispay_gateways.d.cts +4 -1
  999. package/lib/resources/satispay_gateways.d.ts +1 -1
  1000. package/lib/resources/satispay_gateways.js +5 -5
  1001. package/lib/resources/satispay_payments.cjs +6 -6
  1002. package/lib/resources/satispay_payments.d.cts +4 -1
  1003. package/lib/resources/satispay_payments.d.ts +1 -1
  1004. package/lib/resources/satispay_payments.js +5 -5
  1005. package/lib/resources/shipments.cjs +6 -6
  1006. package/lib/resources/shipments.d.cts +4 -1
  1007. package/lib/resources/shipments.d.ts +1 -1
  1008. package/lib/resources/shipments.js +5 -5
  1009. package/lib/resources/shipping_categories.cjs +6 -6
  1010. package/lib/resources/shipping_categories.d.cts +4 -1
  1011. package/lib/resources/shipping_categories.d.ts +1 -1
  1012. package/lib/resources/shipping_categories.js +5 -5
  1013. package/lib/resources/shipping_method_tiers.cjs +6 -6
  1014. package/lib/resources/shipping_method_tiers.d.cts +4 -1
  1015. package/lib/resources/shipping_method_tiers.d.ts +1 -1
  1016. package/lib/resources/shipping_method_tiers.js +5 -5
  1017. package/lib/resources/shipping_methods.cjs +6 -6
  1018. package/lib/resources/shipping_methods.d.cts +4 -1
  1019. package/lib/resources/shipping_methods.d.ts +1 -1
  1020. package/lib/resources/shipping_methods.js +5 -5
  1021. package/lib/resources/shipping_weight_tiers.cjs +6 -6
  1022. package/lib/resources/shipping_weight_tiers.d.cts +4 -1
  1023. package/lib/resources/shipping_weight_tiers.d.ts +1 -1
  1024. package/lib/resources/shipping_weight_tiers.js +5 -5
  1025. package/lib/resources/shipping_zones.cjs +6 -6
  1026. package/lib/resources/shipping_zones.d.cts +4 -1
  1027. package/lib/resources/shipping_zones.d.ts +1 -1
  1028. package/lib/resources/shipping_zones.js +5 -5
  1029. package/lib/resources/sku_list_items.cjs +6 -6
  1030. package/lib/resources/sku_list_items.d.cts +4 -1
  1031. package/lib/resources/sku_list_items.d.ts +1 -1
  1032. package/lib/resources/sku_list_items.js +5 -5
  1033. package/lib/resources/sku_list_promotion_rules.cjs +6 -6
  1034. package/lib/resources/sku_list_promotion_rules.d.cts +4 -1
  1035. package/lib/resources/sku_list_promotion_rules.d.ts +1 -1
  1036. package/lib/resources/sku_list_promotion_rules.js +5 -5
  1037. package/lib/resources/sku_lists.cjs +6 -6
  1038. package/lib/resources/sku_lists.d.cts +4 -1
  1039. package/lib/resources/sku_lists.d.ts +1 -1
  1040. package/lib/resources/sku_lists.js +5 -5
  1041. package/lib/resources/sku_options.cjs +6 -6
  1042. package/lib/resources/sku_options.d.cts +4 -1
  1043. package/lib/resources/sku_options.d.ts +1 -1
  1044. package/lib/resources/sku_options.js +5 -5
  1045. package/lib/resources/skus.cjs +6 -6
  1046. package/lib/resources/skus.d.cts +4 -1
  1047. package/lib/resources/skus.d.ts +1 -1
  1048. package/lib/resources/skus.js +5 -5
  1049. package/lib/resources/stock_items.cjs +6 -6
  1050. package/lib/resources/stock_items.d.cts +4 -1
  1051. package/lib/resources/stock_items.d.ts +1 -1
  1052. package/lib/resources/stock_items.js +5 -5
  1053. package/lib/resources/stock_line_items.cjs +6 -6
  1054. package/lib/resources/stock_line_items.d.cts +4 -1
  1055. package/lib/resources/stock_line_items.d.ts +1 -1
  1056. package/lib/resources/stock_line_items.js +5 -5
  1057. package/lib/resources/stock_locations.cjs +6 -6
  1058. package/lib/resources/stock_locations.d.cts +4 -1
  1059. package/lib/resources/stock_locations.d.ts +1 -1
  1060. package/lib/resources/stock_locations.js +5 -5
  1061. package/lib/resources/stock_reservations.cjs +6 -6
  1062. package/lib/resources/stock_reservations.d.cts +4 -1
  1063. package/lib/resources/stock_reservations.d.ts +1 -1
  1064. package/lib/resources/stock_reservations.js +5 -5
  1065. package/lib/resources/stock_transfers.cjs +6 -6
  1066. package/lib/resources/stock_transfers.d.cts +4 -1
  1067. package/lib/resources/stock_transfers.d.ts +1 -1
  1068. package/lib/resources/stock_transfers.js +5 -5
  1069. package/lib/resources/stores.cjs +6 -6
  1070. package/lib/resources/stores.d.cts +4 -1
  1071. package/lib/resources/stores.d.ts +1 -1
  1072. package/lib/resources/stores.js +5 -5
  1073. package/lib/resources/stripe_gateways.cjs +6 -6
  1074. package/lib/resources/stripe_gateways.d.cts +4 -1
  1075. package/lib/resources/stripe_gateways.d.ts +1 -1
  1076. package/lib/resources/stripe_gateways.js +5 -5
  1077. package/lib/resources/stripe_payments.cjs +6 -6
  1078. package/lib/resources/stripe_payments.d.cts +4 -1
  1079. package/lib/resources/stripe_payments.d.ts +1 -1
  1080. package/lib/resources/stripe_payments.js +5 -5
  1081. package/lib/resources/stripe_tax_accounts.cjs +6 -6
  1082. package/lib/resources/stripe_tax_accounts.d.cts +4 -1
  1083. package/lib/resources/stripe_tax_accounts.d.ts +1 -1
  1084. package/lib/resources/stripe_tax_accounts.js +5 -5
  1085. package/lib/resources/subscription_models.cjs +6 -6
  1086. package/lib/resources/subscription_models.d.cts +4 -1
  1087. package/lib/resources/subscription_models.d.ts +1 -1
  1088. package/lib/resources/subscription_models.js +5 -5
  1089. package/lib/resources/tags.cjs +6 -6
  1090. package/lib/resources/tags.d.cts +4 -1
  1091. package/lib/resources/tags.d.ts +1 -1
  1092. package/lib/resources/tags.js +5 -5
  1093. package/lib/resources/talon_one_accounts.cjs +6 -6
  1094. package/lib/resources/talon_one_accounts.d.cts +4 -1
  1095. package/lib/resources/talon_one_accounts.d.ts +1 -1
  1096. package/lib/resources/talon_one_accounts.js +5 -5
  1097. package/lib/resources/tax_calculators.cjs +6 -6
  1098. package/lib/resources/tax_calculators.d.cts +4 -1
  1099. package/lib/resources/tax_calculators.d.ts +1 -1
  1100. package/lib/resources/tax_calculators.js +5 -5
  1101. package/lib/resources/tax_categories.cjs +6 -6
  1102. package/lib/resources/tax_categories.d.cts +4 -1
  1103. package/lib/resources/tax_categories.d.ts +1 -1
  1104. package/lib/resources/tax_categories.js +5 -5
  1105. package/lib/resources/tax_rules.cjs +6 -6
  1106. package/lib/resources/tax_rules.d.cts +4 -1
  1107. package/lib/resources/tax_rules.d.ts +1 -1
  1108. package/lib/resources/tax_rules.js +5 -5
  1109. package/lib/resources/taxjar_accounts.cjs +6 -6
  1110. package/lib/resources/taxjar_accounts.d.cts +4 -1
  1111. package/lib/resources/taxjar_accounts.d.ts +1 -1
  1112. package/lib/resources/taxjar_accounts.js +5 -5
  1113. package/lib/resources/transactions.cjs +6 -6
  1114. package/lib/resources/transactions.d.cts +4 -1
  1115. package/lib/resources/transactions.d.ts +1 -1
  1116. package/lib/resources/transactions.js +5 -5
  1117. package/lib/resources/versions.cjs +6 -6
  1118. package/lib/resources/versions.d.cts +4 -1
  1119. package/lib/resources/versions.d.ts +1 -1
  1120. package/lib/resources/versions.js +5 -5
  1121. package/lib/resources/vertex_accounts.cjs +6 -6
  1122. package/lib/resources/vertex_accounts.d.cts +4 -1
  1123. package/lib/resources/vertex_accounts.d.ts +1 -1
  1124. package/lib/resources/vertex_accounts.js +5 -5
  1125. package/lib/resources/voids.cjs +6 -6
  1126. package/lib/resources/voids.d.cts +4 -1
  1127. package/lib/resources/voids.d.ts +1 -1
  1128. package/lib/resources/voids.js +5 -5
  1129. package/lib/resources/webhooks.cjs +6 -6
  1130. package/lib/resources/webhooks.d.cts +4 -1
  1131. package/lib/resources/webhooks.d.ts +1 -1
  1132. package/lib/resources/webhooks.js +5 -5
  1133. package/lib/resources/wire_transfers.cjs +6 -6
  1134. package/lib/resources/wire_transfers.d.cts +4 -1
  1135. package/lib/resources/wire_transfers.d.ts +1 -1
  1136. package/lib/resources/wire_transfers.js +5 -5
  1137. package/lib/static.cjs +7 -7
  1138. package/lib/static.d.cts +2 -1
  1139. package/lib/static.d.ts +2 -1
  1140. package/lib/static.js +6 -6
  1141. package/package.json +11 -11
  1142. package/lib/api-CL2USQbG.d.cts +0 -17220
  1143. package/lib/api-DFDuF5Xh.d.ts +0 -17220
  1144. package/lib/chunk-2AFNQJXP.cjs +0 -61
  1145. package/lib/chunk-2AFNQJXP.cjs.map +0 -1
  1146. package/lib/chunk-2AMKJ6V7.cjs +0 -47
  1147. package/lib/chunk-2AMKJ6V7.cjs.map +0 -1
  1148. package/lib/chunk-2HLQW5MF.cjs +0 -59
  1149. package/lib/chunk-2HLQW5MF.cjs.map +0 -1
  1150. package/lib/chunk-2HPO4UZA.cjs +0 -51
  1151. package/lib/chunk-2HPO4UZA.cjs.map +0 -1
  1152. package/lib/chunk-2JOYLKTP.cjs +0 -42
  1153. package/lib/chunk-2JOYLKTP.cjs.map +0 -1
  1154. package/lib/chunk-2KKHO6QF.js +0 -59
  1155. package/lib/chunk-2KKHO6QF.js.map +0 -1
  1156. package/lib/chunk-2L2ZM3VD.js +0 -33
  1157. package/lib/chunk-2L2ZM3VD.js.map +0 -1
  1158. package/lib/chunk-2P6AFRJL.js +0 -44
  1159. package/lib/chunk-2P6AFRJL.js.map +0 -1
  1160. package/lib/chunk-2PYM3QGA.js +0 -45
  1161. package/lib/chunk-2PYM3QGA.js.map +0 -1
  1162. package/lib/chunk-2THU5NEW.cjs +0 -47
  1163. package/lib/chunk-2THU5NEW.cjs.map +0 -1
  1164. package/lib/chunk-2XGMKMF5.cjs +0 -51
  1165. package/lib/chunk-2XGMKMF5.cjs.map +0 -1
  1166. package/lib/chunk-34H2NFDA.js +0 -52
  1167. package/lib/chunk-34H2NFDA.js.map +0 -1
  1168. package/lib/chunk-35OHXDG3.cjs +0 -156
  1169. package/lib/chunk-35OHXDG3.cjs.map +0 -1
  1170. package/lib/chunk-3ADITMLN.cjs +0 -62
  1171. package/lib/chunk-3ADITMLN.cjs.map +0 -1
  1172. package/lib/chunk-3ANXNJ6U.cjs +0 -51
  1173. package/lib/chunk-3ANXNJ6U.cjs.map +0 -1
  1174. package/lib/chunk-3AOPII3W.js +0 -65
  1175. package/lib/chunk-3AOPII3W.js.map +0 -1
  1176. package/lib/chunk-3DFZ5QLR.js +0 -61
  1177. package/lib/chunk-3DFZ5QLR.js.map +0 -1
  1178. package/lib/chunk-3EX76AZW.js +0 -3
  1179. package/lib/chunk-3EX76AZW.js.map +0 -1
  1180. package/lib/chunk-3I5BJF3J.js +0 -45
  1181. package/lib/chunk-3I5BJF3J.js.map +0 -1
  1182. package/lib/chunk-3N2MNKA3.js +0 -54
  1183. package/lib/chunk-3N2MNKA3.js.map +0 -1
  1184. package/lib/chunk-3NWQH32A.js +0 -36
  1185. package/lib/chunk-3NWQH32A.js.map +0 -1
  1186. package/lib/chunk-3OBFBFUV.js +0 -45
  1187. package/lib/chunk-3OBFBFUV.js.map +0 -1
  1188. package/lib/chunk-3PVKJIA3.js +0 -40
  1189. package/lib/chunk-3PVKJIA3.js.map +0 -1
  1190. package/lib/chunk-3RR27O3T.js +0 -45
  1191. package/lib/chunk-3RR27O3T.js.map +0 -1
  1192. package/lib/chunk-3TGZNMLP.cjs +0 -38
  1193. package/lib/chunk-3TGZNMLP.cjs.map +0 -1
  1194. package/lib/chunk-3URHH3S6.js +0 -43
  1195. package/lib/chunk-3URHH3S6.js.map +0 -1
  1196. package/lib/chunk-3WKN5OCU.cjs +0 -47
  1197. package/lib/chunk-3WKN5OCU.cjs.map +0 -1
  1198. package/lib/chunk-3XWE56FL.cjs +0 -101
  1199. package/lib/chunk-3XWE56FL.cjs.map +0 -1
  1200. package/lib/chunk-42DT6ZET.cjs +0 -47
  1201. package/lib/chunk-42DT6ZET.cjs.map +0 -1
  1202. package/lib/chunk-432EXURP.js +0 -41
  1203. package/lib/chunk-432EXURP.js.map +0 -1
  1204. package/lib/chunk-465K3KVE.js +0 -49
  1205. package/lib/chunk-465K3KVE.js.map +0 -1
  1206. package/lib/chunk-4IH4EHXT.cjs +0 -69
  1207. package/lib/chunk-4IH4EHXT.cjs.map +0 -1
  1208. package/lib/chunk-4KFJUIFD.js +0 -45
  1209. package/lib/chunk-4KFJUIFD.js.map +0 -1
  1210. package/lib/chunk-4KO5LZ7F.js +0 -45
  1211. package/lib/chunk-4KO5LZ7F.js.map +0 -1
  1212. package/lib/chunk-4L4MGCUZ.js +0 -45
  1213. package/lib/chunk-4L4MGCUZ.js.map +0 -1
  1214. package/lib/chunk-4L73LJKG.js +0 -41
  1215. package/lib/chunk-4L73LJKG.js.map +0 -1
  1216. package/lib/chunk-4SCFKFIM.cjs +0 -38
  1217. package/lib/chunk-4SCFKFIM.cjs.map +0 -1
  1218. package/lib/chunk-57XXD3GQ.cjs +0 -50
  1219. package/lib/chunk-57XXD3GQ.cjs.map +0 -1
  1220. package/lib/chunk-5EXCGVF2.cjs +0 -47
  1221. package/lib/chunk-5EXCGVF2.cjs.map +0 -1
  1222. package/lib/chunk-5FZNBGAF.cjs +0 -38
  1223. package/lib/chunk-5FZNBGAF.cjs.map +0 -1
  1224. package/lib/chunk-5OQQBNVB.js +0 -49
  1225. package/lib/chunk-5OQQBNVB.js.map +0 -1
  1226. package/lib/chunk-5P5Z7NXC.js +0 -49
  1227. package/lib/chunk-5P5Z7NXC.js.map +0 -1
  1228. package/lib/chunk-5R76TU4I.cjs +0 -52
  1229. package/lib/chunk-5R76TU4I.cjs.map +0 -1
  1230. package/lib/chunk-5YMHXTJG.cjs +0 -4
  1231. package/lib/chunk-5YMHXTJG.cjs.map +0 -1
  1232. package/lib/chunk-627I2FYX.cjs +0 -47
  1233. package/lib/chunk-627I2FYX.cjs.map +0 -1
  1234. package/lib/chunk-66JDSPFD.cjs +0 -51
  1235. package/lib/chunk-66JDSPFD.cjs.map +0 -1
  1236. package/lib/chunk-67QVA2J3.cjs +0 -34
  1237. package/lib/chunk-67QVA2J3.cjs.map +0 -1
  1238. package/lib/chunk-6AJSOS56.cjs +0 -75
  1239. package/lib/chunk-6AJSOS56.cjs.map +0 -1
  1240. package/lib/chunk-6B66AQKB.cjs +0 -45
  1241. package/lib/chunk-6B66AQKB.cjs.map +0 -1
  1242. package/lib/chunk-6EDJTG3X.cjs +0 -50
  1243. package/lib/chunk-6EDJTG3X.cjs.map +0 -1
  1244. package/lib/chunk-6OHA2TO3.cjs +0 -61
  1245. package/lib/chunk-6OHA2TO3.cjs.map +0 -1
  1246. package/lib/chunk-6PWK52UZ.cjs +0 -70
  1247. package/lib/chunk-6PWK52UZ.cjs.map +0 -1
  1248. package/lib/chunk-6SCAIB4K.cjs +0 -43
  1249. package/lib/chunk-6SCAIB4K.cjs.map +0 -1
  1250. package/lib/chunk-6SOWFGBP.cjs +0 -63
  1251. package/lib/chunk-6SOWFGBP.cjs.map +0 -1
  1252. package/lib/chunk-7CQTUOR4.cjs +0 -42
  1253. package/lib/chunk-7CQTUOR4.cjs.map +0 -1
  1254. package/lib/chunk-7GVHCOUC.js +0 -73
  1255. package/lib/chunk-7GVHCOUC.js.map +0 -1
  1256. package/lib/chunk-7ISS2FDY.js +0 -93
  1257. package/lib/chunk-7ISS2FDY.js.map +0 -1
  1258. package/lib/chunk-7JLRB7QH.js +0 -24
  1259. package/lib/chunk-7JLRB7QH.js.map +0 -1
  1260. package/lib/chunk-7SG4WU7W.js +0 -45
  1261. package/lib/chunk-7SG4WU7W.js.map +0 -1
  1262. package/lib/chunk-7SZY5BWE.js +0 -45
  1263. package/lib/chunk-7SZY5BWE.js.map +0 -1
  1264. package/lib/chunk-7VSYXEXL.js +0 -59
  1265. package/lib/chunk-7VSYXEXL.js.map +0 -1
  1266. package/lib/chunk-7X36B7N6.js +0 -27
  1267. package/lib/chunk-7X36B7N6.js.map +0 -1
  1268. package/lib/chunk-7Z2U4MHU.cjs +0 -52
  1269. package/lib/chunk-7Z2U4MHU.cjs.map +0 -1
  1270. package/lib/chunk-A6BT5FSV.cjs +0 -43
  1271. package/lib/chunk-A6BT5FSV.cjs.map +0 -1
  1272. package/lib/chunk-A6ZDNNYD.js +0 -51
  1273. package/lib/chunk-A6ZDNNYD.js.map +0 -1
  1274. package/lib/chunk-A7BEMDVP.cjs +0 -55
  1275. package/lib/chunk-A7BEMDVP.cjs.map +0 -1
  1276. package/lib/chunk-AD73LDFJ.cjs +0 -43
  1277. package/lib/chunk-AD73LDFJ.cjs.map +0 -1
  1278. package/lib/chunk-AIGQRBCY.cjs +0 -47
  1279. package/lib/chunk-AIGQRBCY.cjs.map +0 -1
  1280. package/lib/chunk-ANCLAYJV.cjs +0 -98
  1281. package/lib/chunk-ANCLAYJV.cjs.map +0 -1
  1282. package/lib/chunk-AQFAND5D.cjs +0 -282
  1283. package/lib/chunk-AQFAND5D.cjs.map +0 -1
  1284. package/lib/chunk-ARIBIRKF.cjs +0 -47
  1285. package/lib/chunk-ARIBIRKF.cjs.map +0 -1
  1286. package/lib/chunk-AW3TRBZ7.js +0 -44
  1287. package/lib/chunk-AW3TRBZ7.js.map +0 -1
  1288. package/lib/chunk-AYTBSAHY.js +0 -20
  1289. package/lib/chunk-AYTBSAHY.js.map +0 -1
  1290. package/lib/chunk-B72FREUL.cjs +0 -57
  1291. package/lib/chunk-B72FREUL.cjs.map +0 -1
  1292. package/lib/chunk-BBEMCANC.cjs +0 -95
  1293. package/lib/chunk-BBEMCANC.cjs.map +0 -1
  1294. package/lib/chunk-BF7OPORP.js +0 -69
  1295. package/lib/chunk-BF7OPORP.js.map +0 -1
  1296. package/lib/chunk-BN6XJAZH.cjs +0 -43
  1297. package/lib/chunk-BN6XJAZH.cjs.map +0 -1
  1298. package/lib/chunk-BTAKU6V5.cjs +0 -42
  1299. package/lib/chunk-BTAKU6V5.cjs.map +0 -1
  1300. package/lib/chunk-BYRFMGBQ.js +0 -105
  1301. package/lib/chunk-BYRFMGBQ.js.map +0 -1
  1302. package/lib/chunk-CG2ACHGS.js +0 -45
  1303. package/lib/chunk-CG2ACHGS.js.map +0 -1
  1304. package/lib/chunk-CK6RZLVM.cjs +0 -47
  1305. package/lib/chunk-CK6RZLVM.cjs.map +0 -1
  1306. package/lib/chunk-CNCZCBI3.js +0 -99
  1307. package/lib/chunk-CNCZCBI3.js.map +0 -1
  1308. package/lib/chunk-CRRYP7ZN.js +0 -45
  1309. package/lib/chunk-CRRYP7ZN.js.map +0 -1
  1310. package/lib/chunk-CTXBUDGO.cjs +0 -39
  1311. package/lib/chunk-CTXBUDGO.cjs.map +0 -1
  1312. package/lib/chunk-CUNOMS5N.js +0 -40
  1313. package/lib/chunk-CUNOMS5N.js.map +0 -1
  1314. package/lib/chunk-D26KDUDM.cjs +0 -47
  1315. package/lib/chunk-D26KDUDM.cjs.map +0 -1
  1316. package/lib/chunk-D5E4OGXU.js +0 -49
  1317. package/lib/chunk-D5E4OGXU.js.map +0 -1
  1318. package/lib/chunk-D7KNSKNJ.js +0 -55
  1319. package/lib/chunk-D7KNSKNJ.js.map +0 -1
  1320. package/lib/chunk-DAXKXBA3.js +0 -48
  1321. package/lib/chunk-DAXKXBA3.js.map +0 -1
  1322. package/lib/chunk-DJ572MZB.cjs +0 -50
  1323. package/lib/chunk-DJ572MZB.cjs.map +0 -1
  1324. package/lib/chunk-DOFPDQMJ.cjs +0 -56
  1325. package/lib/chunk-DOFPDQMJ.cjs.map +0 -1
  1326. package/lib/chunk-DOGEZ6XX.cjs +0 -46
  1327. package/lib/chunk-DOGEZ6XX.cjs.map +0 -1
  1328. package/lib/chunk-DSKZRVXS.js +0 -28
  1329. package/lib/chunk-DSKZRVXS.js.map +0 -1
  1330. package/lib/chunk-DTGODPCN.js +0 -93
  1331. package/lib/chunk-DTGODPCN.js.map +0 -1
  1332. package/lib/chunk-DYZGWPZ6.js +0 -33
  1333. package/lib/chunk-DYZGWPZ6.js.map +0 -1
  1334. package/lib/chunk-E3FDHGI7.js +0 -36
  1335. package/lib/chunk-E3FDHGI7.js.map +0 -1
  1336. package/lib/chunk-E4DYW6HB.cjs +0 -42
  1337. package/lib/chunk-E4DYW6HB.cjs.map +0 -1
  1338. package/lib/chunk-E6TBQVLK.cjs +0 -39
  1339. package/lib/chunk-E6TBQVLK.cjs.map +0 -1
  1340. package/lib/chunk-EADFDBOR.cjs +0 -46
  1341. package/lib/chunk-EADFDBOR.cjs.map +0 -1
  1342. package/lib/chunk-ECMCBU3N.js +0 -53
  1343. package/lib/chunk-ECMCBU3N.js.map +0 -1
  1344. package/lib/chunk-EEFOL62K.js +0 -36
  1345. package/lib/chunk-EEFOL62K.js.map +0 -1
  1346. package/lib/chunk-EHWAGYNX.js +0 -68
  1347. package/lib/chunk-EHWAGYNX.js.map +0 -1
  1348. package/lib/chunk-EKGR3EB3.js +0 -82
  1349. package/lib/chunk-EKGR3EB3.js.map +0 -1
  1350. package/lib/chunk-ELBOXOTA.js +0 -28
  1351. package/lib/chunk-ELBOXOTA.js.map +0 -1
  1352. package/lib/chunk-EP22KKHR.js +0 -48
  1353. package/lib/chunk-EP22KKHR.js.map +0 -1
  1354. package/lib/chunk-EP7MAEQH.cjs +0 -47
  1355. package/lib/chunk-EP7MAEQH.cjs.map +0 -1
  1356. package/lib/chunk-EQD223JW.cjs +0 -95
  1357. package/lib/chunk-EQD223JW.cjs.map +0 -1
  1358. package/lib/chunk-F6MSHDB7.cjs +0 -47
  1359. package/lib/chunk-F6MSHDB7.cjs.map +0 -1
  1360. package/lib/chunk-FAU5EILL.js +0 -61
  1361. package/lib/chunk-FAU5EILL.js.map +0 -1
  1362. package/lib/chunk-FSFXOZ35.cjs +0 -47
  1363. package/lib/chunk-FSFXOZ35.cjs.map +0 -1
  1364. package/lib/chunk-FTAZDUH6.js +0 -99
  1365. package/lib/chunk-FTAZDUH6.js.map +0 -1
  1366. package/lib/chunk-FVJDRHG7.js +0 -48
  1367. package/lib/chunk-FVJDRHG7.js.map +0 -1
  1368. package/lib/chunk-FXE62CPP.cjs +0 -46
  1369. package/lib/chunk-FXE62CPP.cjs.map +0 -1
  1370. package/lib/chunk-FYKIHWAM.cjs +0 -77
  1371. package/lib/chunk-FYKIHWAM.cjs.map +0 -1
  1372. package/lib/chunk-G74OZ4M6.js +0 -45
  1373. package/lib/chunk-G74OZ4M6.js.map +0 -1
  1374. package/lib/chunk-GD4WRDF2.js +0 -644
  1375. package/lib/chunk-GD4WRDF2.js.map +0 -1
  1376. package/lib/chunk-GE6OHQR6.cjs +0 -89
  1377. package/lib/chunk-GE6OHQR6.cjs.map +0 -1
  1378. package/lib/chunk-GHLCA7BX.js +0 -53
  1379. package/lib/chunk-GHLCA7BX.js.map +0 -1
  1380. package/lib/chunk-GLSPCG3M.cjs +0 -46
  1381. package/lib/chunk-GLSPCG3M.cjs.map +0 -1
  1382. package/lib/chunk-H2USYPU6.js +0 -49
  1383. package/lib/chunk-H2USYPU6.js.map +0 -1
  1384. package/lib/chunk-H4PUXGNI.cjs +0 -47
  1385. package/lib/chunk-H4PUXGNI.cjs.map +0 -1
  1386. package/lib/chunk-H4SVEI6E.js +0 -151
  1387. package/lib/chunk-H4SVEI6E.js.map +0 -1
  1388. package/lib/chunk-HAAE23MQ.js +0 -93
  1389. package/lib/chunk-HAAE23MQ.js.map +0 -1
  1390. package/lib/chunk-HBUDZOK7.cjs +0 -55
  1391. package/lib/chunk-HBUDZOK7.cjs.map +0 -1
  1392. package/lib/chunk-HCBXRHD7.js +0 -45
  1393. package/lib/chunk-HCBXRHD7.js.map +0 -1
  1394. package/lib/chunk-HDYENVKD.js +0 -45
  1395. package/lib/chunk-HDYENVKD.js.map +0 -1
  1396. package/lib/chunk-HLCGKY7R.js +0 -59
  1397. package/lib/chunk-HLCGKY7R.js.map +0 -1
  1398. package/lib/chunk-HNHF6T2I.cjs +0 -54
  1399. package/lib/chunk-HNHF6T2I.cjs.map +0 -1
  1400. package/lib/chunk-HQ35KQFG.cjs +0 -86
  1401. package/lib/chunk-HQ35KQFG.cjs.map +0 -1
  1402. package/lib/chunk-HQ5STEMD.js +0 -55
  1403. package/lib/chunk-HQ5STEMD.js.map +0 -1
  1404. package/lib/chunk-HQ6TJSB7.cjs +0 -51
  1405. package/lib/chunk-HQ6TJSB7.cjs.map +0 -1
  1406. package/lib/chunk-HSILJQCD.js +0 -93
  1407. package/lib/chunk-HSILJQCD.js.map +0 -1
  1408. package/lib/chunk-I3SKGXTB.cjs +0 -26
  1409. package/lib/chunk-I3SKGXTB.cjs.map +0 -1
  1410. package/lib/chunk-IDAOX5RB.cjs +0 -95
  1411. package/lib/chunk-IDAOX5RB.cjs.map +0 -1
  1412. package/lib/chunk-IITNQS6D.js +0 -49
  1413. package/lib/chunk-IITNQS6D.js.map +0 -1
  1414. package/lib/chunk-IKENWSRH.cjs +0 -126
  1415. package/lib/chunk-IKENWSRH.cjs.map +0 -1
  1416. package/lib/chunk-INJ7FRDA.cjs +0 -55
  1417. package/lib/chunk-INJ7FRDA.cjs.map +0 -1
  1418. package/lib/chunk-INZD34YD.cjs +0 -91
  1419. package/lib/chunk-INZD34YD.cjs.map +0 -1
  1420. package/lib/chunk-J4CTOHX6.cjs +0 -68
  1421. package/lib/chunk-J4CTOHX6.cjs.map +0 -1
  1422. package/lib/chunk-J6NBJHWL.cjs +0 -101
  1423. package/lib/chunk-J6NBJHWL.cjs.map +0 -1
  1424. package/lib/chunk-J6PTNG3D.js +0 -280
  1425. package/lib/chunk-J6PTNG3D.js.map +0 -1
  1426. package/lib/chunk-J7ZSBB35.js +0 -45
  1427. package/lib/chunk-J7ZSBB35.js.map +0 -1
  1428. package/lib/chunk-JAQECLCE.js +0 -41
  1429. package/lib/chunk-JAQECLCE.js.map +0 -1
  1430. package/lib/chunk-JECYKPCC.cjs +0 -30
  1431. package/lib/chunk-JECYKPCC.cjs.map +0 -1
  1432. package/lib/chunk-JENLN6VJ.js +0 -51
  1433. package/lib/chunk-JENLN6VJ.js.map +0 -1
  1434. package/lib/chunk-JN4JL4WT.cjs +0 -75
  1435. package/lib/chunk-JN4JL4WT.cjs.map +0 -1
  1436. package/lib/chunk-JPUF5YXX.js +0 -37
  1437. package/lib/chunk-JPUF5YXX.js.map +0 -1
  1438. package/lib/chunk-JRTJ6LWK.js +0 -53
  1439. package/lib/chunk-JRTJ6LWK.js.map +0 -1
  1440. package/lib/chunk-JT7HVLLW.cjs +0 -57
  1441. package/lib/chunk-JT7HVLLW.cjs.map +0 -1
  1442. package/lib/chunk-JWC2GSYH.cjs +0 -47
  1443. package/lib/chunk-JWC2GSYH.cjs.map +0 -1
  1444. package/lib/chunk-JYOFP6BM.js +0 -87
  1445. package/lib/chunk-JYOFP6BM.js.map +0 -1
  1446. package/lib/chunk-JYXAF775.js +0 -49
  1447. package/lib/chunk-JYXAF775.js.map +0 -1
  1448. package/lib/chunk-K2CU5HIV.js +0 -66
  1449. package/lib/chunk-K2CU5HIV.js.map +0 -1
  1450. package/lib/chunk-K6WSCQKS.cjs +0 -53
  1451. package/lib/chunk-K6WSCQKS.cjs.map +0 -1
  1452. package/lib/chunk-KH5OQRQL.js +0 -38
  1453. package/lib/chunk-KH5OQRQL.js.map +0 -1
  1454. package/lib/chunk-KHMCPH47.cjs +0 -53
  1455. package/lib/chunk-KHMCPH47.cjs.map +0 -1
  1456. package/lib/chunk-KWRDUU7K.js +0 -45
  1457. package/lib/chunk-KWRDUU7K.js.map +0 -1
  1458. package/lib/chunk-L4LPS3DV.cjs +0 -47
  1459. package/lib/chunk-L4LPS3DV.cjs.map +0 -1
  1460. package/lib/chunk-L4TDKOAC.js +0 -32
  1461. package/lib/chunk-L4TDKOAC.js.map +0 -1
  1462. package/lib/chunk-L5NEDGXK.js +0 -124
  1463. package/lib/chunk-L5NEDGXK.js.map +0 -1
  1464. package/lib/chunk-L6IGO47T.js +0 -59
  1465. package/lib/chunk-L6IGO47T.js.map +0 -1
  1466. package/lib/chunk-LCLXLB2R.cjs +0 -53
  1467. package/lib/chunk-LCLXLB2R.cjs.map +0 -1
  1468. package/lib/chunk-LCNT6GY3.js +0 -45
  1469. package/lib/chunk-LCNT6GY3.js.map +0 -1
  1470. package/lib/chunk-LEWK7QET.cjs +0 -61
  1471. package/lib/chunk-LEWK7QET.cjs.map +0 -1
  1472. package/lib/chunk-LIT4FEIU.cjs +0 -47
  1473. package/lib/chunk-LIT4FEIU.cjs.map +0 -1
  1474. package/lib/chunk-LJ2EP6AL.cjs +0 -42
  1475. package/lib/chunk-LJ2EP6AL.cjs.map +0 -1
  1476. package/lib/chunk-LNMY5BDT.js +0 -33
  1477. package/lib/chunk-LNMY5BDT.js.map +0 -1
  1478. package/lib/chunk-LTLMRGB7.js +0 -45
  1479. package/lib/chunk-LTLMRGB7.js.map +0 -1
  1480. package/lib/chunk-M2ZERG2X.cjs +0 -95
  1481. package/lib/chunk-M2ZERG2X.cjs.map +0 -1
  1482. package/lib/chunk-MADGMICB.js +0 -45
  1483. package/lib/chunk-MADGMICB.js.map +0 -1
  1484. package/lib/chunk-MJRMRWP3.js +0 -67
  1485. package/lib/chunk-MJRMRWP3.js.map +0 -1
  1486. package/lib/chunk-MPSHBMZS.js +0 -93
  1487. package/lib/chunk-MPSHBMZS.js.map +0 -1
  1488. package/lib/chunk-MQZSDICO.cjs +0 -38
  1489. package/lib/chunk-MQZSDICO.cjs.map +0 -1
  1490. package/lib/chunk-MUPRLXGP.js +0 -48
  1491. package/lib/chunk-MUPRLXGP.js.map +0 -1
  1492. package/lib/chunk-MWYBER5I.cjs +0 -50
  1493. package/lib/chunk-MWYBER5I.cjs.map +0 -1
  1494. package/lib/chunk-MZNHRIXE.js +0 -41
  1495. package/lib/chunk-MZNHRIXE.js.map +0 -1
  1496. package/lib/chunk-N4P7A3RY.js +0 -64
  1497. package/lib/chunk-N4P7A3RY.js.map +0 -1
  1498. package/lib/chunk-N6MHUHGE.cjs +0 -95
  1499. package/lib/chunk-N6MHUHGE.cjs.map +0 -1
  1500. package/lib/chunk-N753UD4K.cjs +0 -22
  1501. package/lib/chunk-N753UD4K.cjs.map +0 -1
  1502. package/lib/chunk-NAWKHFBZ.js +0 -274
  1503. package/lib/chunk-NAWKHFBZ.js.map +0 -1
  1504. package/lib/chunk-NBYV35R4.cjs +0 -47
  1505. package/lib/chunk-NBYV35R4.cjs.map +0 -1
  1506. package/lib/chunk-NDPDO54G.js +0 -45
  1507. package/lib/chunk-NDPDO54G.js.map +0 -1
  1508. package/lib/chunk-NEC22ZSI.cjs +0 -47
  1509. package/lib/chunk-NEC22ZSI.cjs.map +0 -1
  1510. package/lib/chunk-NJQDJCFB.cjs +0 -71
  1511. package/lib/chunk-NJQDJCFB.cjs.map +0 -1
  1512. package/lib/chunk-NJYMO7FP.cjs +0 -51
  1513. package/lib/chunk-NJYMO7FP.cjs.map +0 -1
  1514. package/lib/chunk-NKJBVNTV.cjs +0 -103
  1515. package/lib/chunk-NKJBVNTV.cjs.map +0 -1
  1516. package/lib/chunk-NMVACSMG.js +0 -84
  1517. package/lib/chunk-NMVACSMG.js.map +0 -1
  1518. package/lib/chunk-NODKE6P4.js +0 -154
  1519. package/lib/chunk-NODKE6P4.js.map +0 -1
  1520. package/lib/chunk-OGLS27LJ.js +0 -45
  1521. package/lib/chunk-OGLS27LJ.js.map +0 -1
  1522. package/lib/chunk-OPQJPXLM.cjs +0 -43
  1523. package/lib/chunk-OPQJPXLM.cjs.map +0 -1
  1524. package/lib/chunk-OYFNK2SE.cjs +0 -38
  1525. package/lib/chunk-OYFNK2SE.cjs.map +0 -1
  1526. package/lib/chunk-P3NADEGE.cjs +0 -29
  1527. package/lib/chunk-P3NADEGE.cjs.map +0 -1
  1528. package/lib/chunk-PEU5GGGE.js +0 -52
  1529. package/lib/chunk-PEU5GGGE.js.map +0 -1
  1530. package/lib/chunk-PNSVP3KP.cjs +0 -54
  1531. package/lib/chunk-PNSVP3KP.cjs.map +0 -1
  1532. package/lib/chunk-PQS6KXZ2.cjs +0 -35
  1533. package/lib/chunk-PQS6KXZ2.cjs.map +0 -1
  1534. package/lib/chunk-PV7MUP5Z.js +0 -44
  1535. package/lib/chunk-PV7MUP5Z.js.map +0 -1
  1536. package/lib/chunk-PZZLLHJP.js +0 -41
  1537. package/lib/chunk-PZZLLHJP.js.map +0 -1
  1538. package/lib/chunk-Q2ZSQM7I.js +0 -45
  1539. package/lib/chunk-Q2ZSQM7I.js.map +0 -1
  1540. package/lib/chunk-Q66HILUF.js +0 -40
  1541. package/lib/chunk-Q66HILUF.js.map +0 -1
  1542. package/lib/chunk-Q66JEOCJ.cjs +0 -50
  1543. package/lib/chunk-Q66JEOCJ.cjs.map +0 -1
  1544. package/lib/chunk-Q7YHSPJL.js +0 -53
  1545. package/lib/chunk-Q7YHSPJL.js.map +0 -1
  1546. package/lib/chunk-QGE4ELJO.cjs +0 -47
  1547. package/lib/chunk-QGE4ELJO.cjs.map +0 -1
  1548. package/lib/chunk-QHRQCFDB.js +0 -41
  1549. package/lib/chunk-QHRQCFDB.js.map +0 -1
  1550. package/lib/chunk-QK5MFD4L.js +0 -45
  1551. package/lib/chunk-QK5MFD4L.js.map +0 -1
  1552. package/lib/chunk-QK7D6L3W.js +0 -51
  1553. package/lib/chunk-QK7D6L3W.js.map +0 -1
  1554. package/lib/chunk-QYDOENWU.cjs +0 -282
  1555. package/lib/chunk-QYDOENWU.cjs.map +0 -1
  1556. package/lib/chunk-QZTNLPOD.cjs +0 -51
  1557. package/lib/chunk-QZTNLPOD.cjs.map +0 -1
  1558. package/lib/chunk-QZWQNPKC.js +0 -45
  1559. package/lib/chunk-QZWQNPKC.js.map +0 -1
  1560. package/lib/chunk-R755X3AG.cjs +0 -47
  1561. package/lib/chunk-R755X3AG.cjs.map +0 -1
  1562. package/lib/chunk-RHARO4TQ.cjs +0 -47
  1563. package/lib/chunk-RHARO4TQ.cjs.map +0 -1
  1564. package/lib/chunk-ROPOLXIV.js +0 -96
  1565. package/lib/chunk-ROPOLXIV.js.map +0 -1
  1566. package/lib/chunk-RT7XLEV6.js +0 -49
  1567. package/lib/chunk-RT7XLEV6.js.map +0 -1
  1568. package/lib/chunk-RTDD2NRL.cjs +0 -39
  1569. package/lib/chunk-RTDD2NRL.cjs.map +0 -1
  1570. package/lib/chunk-RTGW34KX.cjs +0 -40
  1571. package/lib/chunk-RTGW34KX.cjs.map +0 -1
  1572. package/lib/chunk-RWPFE3LF.cjs +0 -51
  1573. package/lib/chunk-RWPFE3LF.cjs.map +0 -1
  1574. package/lib/chunk-SGOUEVJ3.cjs +0 -67
  1575. package/lib/chunk-SGOUEVJ3.cjs.map +0 -1
  1576. package/lib/chunk-SGWRNEJB.cjs +0 -35
  1577. package/lib/chunk-SGWRNEJB.cjs.map +0 -1
  1578. package/lib/chunk-SKFA2ZIK.js +0 -36
  1579. package/lib/chunk-SKFA2ZIK.js.map +0 -1
  1580. package/lib/chunk-SN6BP777.js +0 -89
  1581. package/lib/chunk-SN6BP777.js.map +0 -1
  1582. package/lib/chunk-SOXJJRL2.js +0 -44
  1583. package/lib/chunk-SOXJJRL2.js.map +0 -1
  1584. package/lib/chunk-SPLHKBWG.cjs +0 -51
  1585. package/lib/chunk-SPLHKBWG.cjs.map +0 -1
  1586. package/lib/chunk-SUJCEUOZ.cjs +0 -47
  1587. package/lib/chunk-SUJCEUOZ.cjs.map +0 -1
  1588. package/lib/chunk-SWWPX4V4.cjs +0 -34
  1589. package/lib/chunk-SWWPX4V4.cjs.map +0 -1
  1590. package/lib/chunk-THO6KQJZ.js +0 -50
  1591. package/lib/chunk-THO6KQJZ.js.map +0 -1
  1592. package/lib/chunk-THVPSJTK.cjs +0 -47
  1593. package/lib/chunk-THVPSJTK.cjs.map +0 -1
  1594. package/lib/chunk-TIJIXGNJ.cjs +0 -26
  1595. package/lib/chunk-TIJIXGNJ.cjs.map +0 -1
  1596. package/lib/chunk-TM5OCFYV.cjs +0 -61
  1597. package/lib/chunk-TM5OCFYV.cjs.map +0 -1
  1598. package/lib/chunk-TQFODT4D.cjs +0 -35
  1599. package/lib/chunk-TQFODT4D.cjs.map +0 -1
  1600. package/lib/chunk-TSD2PK6H.js +0 -32
  1601. package/lib/chunk-TSD2PK6H.js.map +0 -1
  1602. package/lib/chunk-TSLXKI72.js +0 -60
  1603. package/lib/chunk-TSLXKI72.js.map +0 -1
  1604. package/lib/chunk-U5FTZYJJ.js +0 -45
  1605. package/lib/chunk-U5FTZYJJ.js.map +0 -1
  1606. package/lib/chunk-U6PW4AZV.js +0 -24
  1607. package/lib/chunk-U6PW4AZV.js.map +0 -1
  1608. package/lib/chunk-UB4WKBUO.js +0 -48
  1609. package/lib/chunk-UB4WKBUO.js.map +0 -1
  1610. package/lib/chunk-UB6JC3W7.js +0 -49
  1611. package/lib/chunk-UB6JC3W7.js.map +0 -1
  1612. package/lib/chunk-UBXNH6J3.js +0 -57
  1613. package/lib/chunk-UBXNH6J3.js.map +0 -1
  1614. package/lib/chunk-UP7FR6HD.cjs +0 -66
  1615. package/lib/chunk-UP7FR6HD.cjs.map +0 -1
  1616. package/lib/chunk-VDZUWCIN.cjs +0 -51
  1617. package/lib/chunk-VDZUWCIN.cjs.map +0 -1
  1618. package/lib/chunk-VLLLEX5J.js +0 -101
  1619. package/lib/chunk-VLLLEX5J.js.map +0 -1
  1620. package/lib/chunk-VMJUXZ67.cjs +0 -84
  1621. package/lib/chunk-VMJUXZ67.cjs.map +0 -1
  1622. package/lib/chunk-VNWOCO65.cjs +0 -68
  1623. package/lib/chunk-VNWOCO65.cjs.map +0 -1
  1624. package/lib/chunk-VPXMI42G.cjs +0 -51
  1625. package/lib/chunk-VPXMI42G.cjs.map +0 -1
  1626. package/lib/chunk-VRFSITD3.js +0 -73
  1627. package/lib/chunk-VRFSITD3.js.map +0 -1
  1628. package/lib/chunk-VUCYIRSC.cjs +0 -47
  1629. package/lib/chunk-VUCYIRSC.cjs.map +0 -1
  1630. package/lib/chunk-WAL76UPE.cjs +0 -153
  1631. package/lib/chunk-WAL76UPE.cjs.map +0 -1
  1632. package/lib/chunk-WBPEFNL7.cjs +0 -29
  1633. package/lib/chunk-WBPEFNL7.cjs.map +0 -1
  1634. package/lib/chunk-WKN5RLNR.js +0 -45
  1635. package/lib/chunk-WKN5RLNR.js.map +0 -1
  1636. package/lib/chunk-WP3L72CW.js +0 -55
  1637. package/lib/chunk-WP3L72CW.js.map +0 -1
  1638. package/lib/chunk-WTHX574O.js +0 -66
  1639. package/lib/chunk-WTHX574O.js.map +0 -1
  1640. package/lib/chunk-WXD4O4UY.js +0 -36
  1641. package/lib/chunk-WXD4O4UY.js.map +0 -1
  1642. package/lib/chunk-X2D47UM7.cjs +0 -63
  1643. package/lib/chunk-X2D47UM7.cjs.map +0 -1
  1644. package/lib/chunk-X6PHZA6P.cjs +0 -660
  1645. package/lib/chunk-X6PHZA6P.cjs.map +0 -1
  1646. package/lib/chunk-XMDDYWH5.js +0 -48
  1647. package/lib/chunk-XMDDYWH5.js.map +0 -1
  1648. package/lib/chunk-XPF5Z2WY.js +0 -75
  1649. package/lib/chunk-XPF5Z2WY.js.map +0 -1
  1650. package/lib/chunk-XR3KEV7U.js +0 -49
  1651. package/lib/chunk-XR3KEV7U.js.map +0 -1
  1652. package/lib/chunk-XUC3BYL2.cjs +0 -43
  1653. package/lib/chunk-XUC3BYL2.cjs.map +0 -1
  1654. package/lib/chunk-Y2IGLW5N.js +0 -40
  1655. package/lib/chunk-Y2IGLW5N.js.map +0 -1
  1656. package/lib/chunk-Y3BFYVWA.js +0 -37
  1657. package/lib/chunk-Y3BFYVWA.js.map +0 -1
  1658. package/lib/chunk-YAKNUPNE.cjs +0 -51
  1659. package/lib/chunk-YAKNUPNE.cjs.map +0 -1
  1660. package/lib/chunk-YAVHAWTZ.js +0 -41
  1661. package/lib/chunk-YAVHAWTZ.js.map +0 -1
  1662. package/lib/chunk-YBXRC6MC.js +0 -49
  1663. package/lib/chunk-YBXRC6MC.js.map +0 -1
  1664. package/lib/chunk-YHYBOXVX.cjs +0 -30
  1665. package/lib/chunk-YHYBOXVX.cjs.map +0 -1
  1666. package/lib/chunk-YIDX7HVR.cjs +0 -50
  1667. package/lib/chunk-YIDX7HVR.cjs.map +0 -1
  1668. package/lib/chunk-YN4M5CNJ.js +0 -50
  1669. package/lib/chunk-YN4M5CNJ.js.map +0 -1
  1670. package/lib/chunk-YOHBJHTH.cjs +0 -57
  1671. package/lib/chunk-YOHBJHTH.cjs.map +0 -1
  1672. package/lib/chunk-YUGZUUAU.js +0 -27
  1673. package/lib/chunk-YUGZUUAU.js.map +0 -1
  1674. package/lib/chunk-Z2QVXW6T.cjs +0 -105
  1675. package/lib/chunk-Z2QVXW6T.cjs.map +0 -1
  1676. package/lib/chunk-Z667GAZJ.js +0 -37
  1677. package/lib/chunk-Z667GAZJ.js.map +0 -1
  1678. package/lib/chunk-Z7DKPFKZ.js +0 -40
  1679. package/lib/chunk-Z7DKPFKZ.js.map +0 -1
  1680. package/lib/chunk-ZAISVVBE.cjs +0 -55
  1681. package/lib/chunk-ZAISVVBE.cjs.map +0 -1
  1682. package/lib/chunk-ZASD6IUL.js +0 -103
  1683. package/lib/chunk-ZASD6IUL.js.map +0 -1
  1684. package/lib/chunk-ZEEB5YAU.js +0 -45
  1685. package/lib/chunk-ZEEB5YAU.js.map +0 -1
  1686. package/lib/chunk-ZFG533LP.js +0 -49
  1687. package/lib/chunk-ZFG533LP.js.map +0 -1
  1688. package/lib/chunk-ZLHZGR5I.cjs +0 -110
  1689. package/lib/chunk-ZLHZGR5I.cjs.map +0 -1
  1690. package/lib/chunk-ZQSCFH5J.cjs +0 -43
  1691. package/lib/chunk-ZQSCFH5J.cjs.map +0 -1
  1692. package/lib/chunk-ZTVQSWSD.cjs +0 -47
  1693. package/lib/chunk-ZTVQSWSD.cjs.map +0 -1
  1694. package/lib/chunk-ZZF34M2E.cjs +0 -47
  1695. package/lib/chunk-ZZF34M2E.cjs.map +0 -1
@@ -0,0 +1,57 @@
1
+ 'use strict';
2
+
3
+ var chunkU22VLCMN_cjs = require('./chunk-U22VLCMN.cjs');
4
+
5
+ // src/resources/stripe_payments.ts
6
+ var StripePayments = class _StripePayments extends chunkU22VLCMN_cjs.ApiResource {
7
+ static TYPE = "stripe_payments";
8
+ async create(resource, params, options) {
9
+ return this.resources.create({ ...resource, type: _StripePayments.TYPE }, params, options);
10
+ }
11
+ async update(resource, params, options) {
12
+ return this.resources.update({ ...resource, type: _StripePayments.TYPE }, params, options);
13
+ }
14
+ async delete(id, options) {
15
+ await this.resources.delete(typeof id === "string" ? { id, type: _StripePayments.TYPE } : id, options);
16
+ }
17
+ async order(stripePaymentId, params, options) {
18
+ const _stripePaymentId = stripePaymentId.id || stripePaymentId;
19
+ return this.resources.fetch({ type: "orders" }, `stripe_payments/${_stripePaymentId}/order`, params, options);
20
+ }
21
+ async payment_gateway(stripePaymentId, params, options) {
22
+ const _stripePaymentId = stripePaymentId.id || stripePaymentId;
23
+ return this.resources.fetch({ type: "payment_gateways" }, `stripe_payments/${_stripePaymentId}/payment_gateway`, params, options);
24
+ }
25
+ async versions(stripePaymentId, params, options) {
26
+ const _stripePaymentId = stripePaymentId.id || stripePaymentId;
27
+ return this.resources.fetch({ type: "versions" }, `stripe_payments/${_stripePaymentId}/versions`, params, options);
28
+ }
29
+ async event_stores(stripePaymentId, params, options) {
30
+ const _stripePaymentId = stripePaymentId.id || stripePaymentId;
31
+ return this.resources.fetch({ type: "event_stores" }, `stripe_payments/${_stripePaymentId}/event_stores`, params, options);
32
+ }
33
+ async _update(id, params, options) {
34
+ return this.resources.update({ id: typeof id === "string" ? id : id.id, type: _StripePayments.TYPE, _update: true }, params, options);
35
+ }
36
+ async _refresh(id, params, options) {
37
+ return this.resources.update({ id: typeof id === "string" ? id : id.id, type: _StripePayments.TYPE, _refresh: true }, params, options);
38
+ }
39
+ isStripePayment(resource) {
40
+ return resource.type && resource.type === _StripePayments.TYPE;
41
+ }
42
+ relationship(id) {
43
+ return super.relationshipOneToOne(id);
44
+ }
45
+ relationshipToMany(...ids) {
46
+ return super.relationshipOneToMany(...ids);
47
+ }
48
+ type() {
49
+ return _StripePayments.TYPE;
50
+ }
51
+ };
52
+ var instance = new StripePayments();
53
+ var stripe_payments_default = instance;
54
+
55
+ exports.stripe_payments_default = stripe_payments_default;
56
+ //# sourceMappingURL=chunk-J32Z2XNX.cjs.map
57
+ //# sourceMappingURL=chunk-J32Z2XNX.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/resources/stripe_payments.ts"],"names":["ApiResource"],"mappings":";;;;;AA6JA,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,M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AAQ","file":"chunk-J32Z2XNX.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 { Order, OrderType } from './orders'\nimport type { PaymentGateway } from './payment_gateways'\nimport type { Version } from './versions'\nimport type { EventStore } from './event_stores'\n\n\ntype StripePaymentType = 'stripe_payments'\ntype StripePaymentRel = ResourceRel & { type: StripePaymentType }\ntype OrderRel = ResourceRel & { type: OrderType }\n\n\nexport type StripePaymentSort = Pick<StripePayment, 'id'> & ResourceSort\n// export type StripePaymentFilter = Pick<StripePayment, 'id'> & ResourceFilter\n\n\ninterface StripePayment extends Resource {\n\t\n\treadonly type: StripePaymentType\n\n\t/** \n\t * The Stripe payment intent ID. Required to identify a payment session on stripe.\n\t * @example ```\"pi_1234XXX\"```\n\t */\n\tstripe_id?: string | null\n\t/** \n\t * The Stripe payment intent client secret. Required to create a charge through Stripe.js.\n\t * @example ```\"pi_1234XXX_secret_5678YYY\"```\n\t */\n\tclient_secret?: string | null\n\t/** \n\t * The account (if any) for which the funds of the PaymentIntent are intended.\n\t * @example ```\"acct_xxxx-yyyy-zzzz\"```\n\t */\n\tconnected_account?: string | null\n\t/** \n\t * The Stripe charge ID. Identifies money movement upon the payment intent confirmation.\n\t * @example ```\"ch_1234XXX\"```\n\t */\n\tcharge_id?: string | null\n\t/** \n\t * The Stripe publishable API key.\n\t * @example ```\"pk_live_xxxx-yyyy-zzzz\"```\n\t */\n\tpublishable_key?: string | null\n\t/** \n\t * The Stripe account ID that these funds are intended for.\n\t * @example ```\"xxxx-yyyy-zzzz\"```\n\t */\n\ton_behalf_of?: string | null\n\t/** \n\t * A string that identifies the resulting payment as part of a group.\n\t * @example ```\"xxxx-yyyy-zzzz\"```\n\t */\n\ttransfer_group?: string | null\n\t/** \n\t * Stripe payment options: 'customer', 'payment_method', 'return_url', etc. Check Stripe payment intent API for more details.\n\t * @example ```{\"customer\":\"cus_xxx\",\"payment_method\":\"pm_xxx\"}```\n\t */\n\toptions?: Record<string, any> | null\n\t/** \n\t * Stripe 'payment_method', set by webhook.\n\t * @example ```{\"id\":\"pm_xxx\"}```\n\t */\n\tpayment_method?: Record<string, any> | null\n\t/** \n\t * Indicates if the order current amount differs form the one of the created payment intent.\n\t */\n\tmismatched_amounts?: boolean | null\n\t/** \n\t * The URL to return to when a redirect payment is completed.\n\t * @example ```\"https://yourdomain.com/thankyou\"```\n\t */\n\treturn_url?: string | null\n\t/** \n\t * The email address to send the receipt to.\n\t * @example ```\"john@example.com\"```\n\t */\n\treceipt_email?: string | null\n\t/** \n\t * Information about the payment instrument used in the transaction.\n\t * @example ```{\"issuer\":\"cl bank\",\"card_type\":\"visa\"}```\n\t */\n\tpayment_instrument?: Record<string, any> | null\n\n\torder?: Order | null\n\tpayment_gateway?: PaymentGateway | null\n\tversions?: Version[] | null\n\tevent_stores?: EventStore[] | null\n\n}\n\n\ninterface StripePaymentCreate extends ResourceCreate {\n\t\n\t/** \n\t * The Stripe payment intent ID. Required to identify a payment session on stripe.\n\t * @example ```\"pi_1234XXX\"```\n\t */\n\tstripe_id?: string | null\n\t/** \n\t * The Stripe payment intent client secret. Required to create a charge through Stripe.js.\n\t * @example ```\"pi_1234XXX_secret_5678YYY\"```\n\t */\n\tclient_secret?: string | null\n\t/** \n\t * Stripe payment options: 'customer', 'payment_method', 'return_url', etc. Check Stripe payment intent API for more details.\n\t * @example ```{\"customer\":\"cus_xxx\",\"payment_method\":\"pm_xxx\"}```\n\t */\n\toptions?: Record<string, any> | null\n\t/** \n\t * The URL to return to when a redirect payment is completed.\n\t * @example ```\"https://yourdomain.com/thankyou\"```\n\t */\n\treturn_url?: string | null\n\t/** \n\t * The email address to send the receipt to.\n\t * @example ```\"john@example.com\"```\n\t */\n\treceipt_email?: string | null\n\n\torder: OrderRel\n\n}\n\n\ninterface StripePaymentUpdate extends ResourceUpdate {\n\t\n\t/** \n\t * Stripe payment options: 'customer', 'payment_method', 'return_url', etc. Check Stripe payment intent API for more details.\n\t * @example ```{\"customer\":\"cus_xxx\",\"payment_method\":\"pm_xxx\"}```\n\t */\n\toptions?: Record<string, any> | null\n\t/** \n\t * The URL to return to when a redirect payment is completed.\n\t * @example ```\"https://yourdomain.com/thankyou\"```\n\t */\n\treturn_url?: string | null\n\t/** \n\t * Send this attribute if you want to update the created payment intent with fresh order data.\n\t * @example ```true```\n\t */\n\t_update?: boolean | null\n\t/** \n\t * Send this attribute if you want to refresh the payment status, can be used as webhooks fallback logic.\n\t * @example ```true```\n\t */\n\t_refresh?: boolean | null\n\n\torder?: OrderRel | null\n\n}\n\n\nclass StripePayments extends ApiResource<StripePayment> {\n\n\tstatic readonly TYPE: StripePaymentType = 'stripe_payments' as const\n\n\tasync create(resource: StripePaymentCreate, params?: QueryParamsRetrieve<StripePayment>, options?: ResourcesConfig): Promise<StripePayment> {\n\t\treturn this.resources.create<StripePaymentCreate, StripePayment>({ ...resource, type: StripePayments.TYPE }, params, options)\n\t}\n\n\tasync update(resource: StripePaymentUpdate, params?: QueryParamsRetrieve<StripePayment>, options?: ResourcesConfig): Promise<StripePayment> {\n\t\treturn this.resources.update<StripePaymentUpdate, StripePayment>({ ...resource, type: StripePayments.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: StripePayments.TYPE } : id, options)\n\t}\n\n\tasync order(stripePaymentId: string | StripePayment, params?: QueryParamsRetrieve<Order>, options?: ResourcesConfig): Promise<Order> {\n\t\tconst _stripePaymentId = (stripePaymentId as StripePayment).id || stripePaymentId as string\n\t\treturn this.resources.fetch<Order>({ type: 'orders' }, `stripe_payments/${_stripePaymentId}/order`, params, options) as unknown as Order\n\t}\n\n\tasync payment_gateway(stripePaymentId: string | StripePayment, params?: QueryParamsRetrieve<PaymentGateway>, options?: ResourcesConfig): Promise<PaymentGateway> {\n\t\tconst _stripePaymentId = (stripePaymentId as StripePayment).id || stripePaymentId as string\n\t\treturn this.resources.fetch<PaymentGateway>({ type: 'payment_gateways' }, `stripe_payments/${_stripePaymentId}/payment_gateway`, params, options) as unknown as PaymentGateway\n\t}\n\n\tasync versions(stripePaymentId: string | StripePayment, params?: QueryParamsList<Version>, options?: ResourcesConfig): Promise<ListResponse<Version>> {\n\t\tconst _stripePaymentId = (stripePaymentId as StripePayment).id || stripePaymentId as string\n\t\treturn this.resources.fetch<Version>({ type: 'versions' }, `stripe_payments/${_stripePaymentId}/versions`, params, options) as unknown as ListResponse<Version>\n\t}\n\n\tasync event_stores(stripePaymentId: string | StripePayment, params?: QueryParamsList<EventStore>, options?: ResourcesConfig): Promise<ListResponse<EventStore>> {\n\t\tconst _stripePaymentId = (stripePaymentId as StripePayment).id || stripePaymentId as string\n\t\treturn this.resources.fetch<EventStore>({ type: 'event_stores' }, `stripe_payments/${_stripePaymentId}/event_stores`, params, options) as unknown as ListResponse<EventStore>\n\t}\n\n\tasync _update(id: string | StripePayment, params?: QueryParamsRetrieve<StripePayment>, options?: ResourcesConfig): Promise<StripePayment> {\n\t\treturn this.resources.update<StripePaymentUpdate, StripePayment>({ id: (typeof id === 'string')? id: id.id, type: StripePayments.TYPE, _update: true }, params, options)\n\t}\n\n\tasync _refresh(id: string | StripePayment, params?: QueryParamsRetrieve<StripePayment>, options?: ResourcesConfig): Promise<StripePayment> {\n\t\treturn this.resources.update<StripePaymentUpdate, StripePayment>({ id: (typeof id === 'string')? id: id.id, type: StripePayments.TYPE, _refresh: true }, params, options)\n\t}\n\n\n\tisStripePayment(resource: any): resource is StripePayment {\n\t\treturn resource.type && (resource.type === StripePayments.TYPE)\n\t}\n\n\n\trelationship(id: string | ResourceId | null): StripePaymentRel {\n\t\treturn super.relationshipOneToOne<StripePaymentRel>(id)\n\t}\n\n\trelationshipToMany(...ids: string[]): StripePaymentRel[] {\n\t\treturn super.relationshipOneToMany<StripePaymentRel>(...ids)\n\t}\n\n\n\ttype(): StripePaymentType {\n\t\treturn StripePayments.TYPE\n\t}\n\n}\n\n\nconst instance = new StripePayments()\nexport default instance\n\nexport type { StripePayments, StripePayment, StripePaymentCreate, StripePaymentUpdate, StripePaymentType }\n"]}
@@ -0,0 +1,50 @@
1
+ 'use strict';
2
+
3
+ var chunkU22VLCMN_cjs = require('./chunk-U22VLCMN.cjs');
4
+
5
+ // src/resources/exports.ts
6
+ var Exports = class _Exports extends chunkU22VLCMN_cjs.ApiResource {
7
+ static TYPE = "exports";
8
+ async create(resource, params, options) {
9
+ return this.resources.create({ ...resource, type: _Exports.TYPE }, params, options);
10
+ }
11
+ async update(resource, params, options) {
12
+ return this.resources.update({ ...resource, type: _Exports.TYPE }, params, options);
13
+ }
14
+ async delete(id, options) {
15
+ await this.resources.delete(typeof id === "string" ? { id, type: _Exports.TYPE } : id, options);
16
+ }
17
+ async events(exportId, params, options) {
18
+ const _exportId = exportId.id || exportId;
19
+ return this.resources.fetch({ type: "events" }, `exports/${_exportId}/events`, params, options);
20
+ }
21
+ async versions(exportId, params, options) {
22
+ const _exportId = exportId.id || exportId;
23
+ return this.resources.fetch({ type: "versions" }, `exports/${_exportId}/versions`, params, options);
24
+ }
25
+ async event_stores(exportId, params, options) {
26
+ const _exportId = exportId.id || exportId;
27
+ return this.resources.fetch({ type: "event_stores" }, `exports/${_exportId}/event_stores`, params, options);
28
+ }
29
+ async _interrupt(id, params, options) {
30
+ return this.resources.update({ id: typeof id === "string" ? id : id.id, type: _Exports.TYPE, _interrupt: true }, params, options);
31
+ }
32
+ isExport(resource) {
33
+ return resource.type && resource.type === _Exports.TYPE;
34
+ }
35
+ relationship(id) {
36
+ return super.relationshipOneToOne(id);
37
+ }
38
+ relationshipToMany(...ids) {
39
+ return super.relationshipOneToMany(...ids);
40
+ }
41
+ type() {
42
+ return _Exports.TYPE;
43
+ }
44
+ };
45
+ var instance = new Exports();
46
+ var exports_default = instance;
47
+
48
+ exports.exports_default = exports_default;
49
+ //# sourceMappingURL=chunk-J42WGTN6.cjs.map
50
+ //# sourceMappingURL=chunk-J42WGTN6.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/resources/exports.ts"],"names":["ApiResource"],"mappings":";;;;;AA2IA,IAAM,OAAA,GAAN,MAAM,QAAA,SAAgBA,6BAAA,CAAoB;AAAA,EAEzC,OAAgB,IAAA,GAAmB,SAAA;AAAA,EAEnC,MAAM,MAAA,CAAO,QAAA,EAAwB,MAAA,EAAsC,OAAA,EAA4C;AACtH,IAAA,OAAO,IAAA,CAAK,SAAA,CAAU,MAAA,CAA6B,EAAE,GAAG,QAAA,EAAU,IAAA,EAAM,QAAA,CAAQ,IAAA,EAAK,EAAG,MAAA,EAAQ,OAAO,CAAA;AAAA,EACxG;AAAA,EAEA,MAAM,MAAA,CAAO,QAAA,EAAwB,MAAA,EAAsC,OAAA,EAA4C;AACtH,IAAA,OAAO,IAAA,CAAK,SAAA,CAAU,MAAA,CAA6B,EAAE,GAAG,QAAA,EAAU,IAAA,EAAM,QAAA,CAAQ,IAAA,EAAK,EAAG,MAAA,EAAQ,OAAO,CAAA;AAAA,EACxG;AAAA,EAEA,MAAM,MAAA,CAAO,EAAA,EAAyB,OAAA,EAA0C;AAC/E,IAAA,MAAM,IAAA,CAAK,SAAA,CAAU,MAAA,CAAQ,OAAO,EAAA,KAAO,QAAA,GAAW,EAAE,EAAA,EAAI,IAAA,EAAM,QAAA,CAAQ,IAAA,EAAK,GAAI,IAAI,OAAO,CAAA;AAAA,EAC/F;AAAA,EAEA,MAAM,MAAA,CAAO,QAAA,EAA2B,MAAA,EAAiC,OAAA,EAAyD;AACjI,IAAA,MAAM,SAAA,GAAa,SAAoB,EAAA,IAAM,QAAA;AAC7C,IAAA,OAAO,IAAA,CAAK,SAAA,CAAU,KAAA,CAAa,EAAE,IAAA,EAAM,QAAA,EAAS,EAAG,CAAA,QAAA,EAAW,SAAS,CAAA,OAAA,CAAA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,CAAiC,GAAG,GAAG,CAAA;AAAA,EACrD;AAAA,EAGA,IAAA,GAAmB;AAClB,IAAA,OAAO,QAAA,CAAQ,IAAA;AAAA,EAChB;AAED,CAAA;AAGA,IAAM,QAAA,GAAW,IAAI,OAAA,EAAQ;AAC7B,IAAO,eAAA,GAAQ","file":"chunk-J42WGTN6.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 { Event } from './events'\nimport type { Version } from './versions'\nimport type { EventStore } from './event_stores'\n\n\ntype ExportType = 'exports'\ntype ExportRel = ResourceRel & { type: ExportType }\n\n\nexport type ExportSort = Pick<Export, 'id' | 'resource_type' | 'format' | 'status' | 'started_at' | 'completed_at' | 'interrupted_at' | 'records_count' | 'attachment_url'> & ResourceSort\n// export type ExportFilter = Pick<Export, 'id' | 'resource_type' | 'format' | 'status' | 'started_at' | 'completed_at' | 'interrupted_at' | 'records_count' | 'attachment_url' | 'errors_log'> & ResourceFilter\n\n\ninterface Export extends Resource {\n\t\n\treadonly type: ExportType\n\n\t/** \n\t * The type of resource being exported.\n\t * @example ```\"skus\"```\n\t */\n\tresource_type: string\n\t/** \n\t * The format of the export one of 'json' (default) or 'csv'.\n\t * @example ```\"json\"```\n\t */\n\tformat?: string | null\n\t/** \n\t * The export job status. One of 'pending' (default), 'in_progress', 'interrupted', or 'completed'.\n\t * @example ```\"in_progress\"```\n\t */\n\tstatus: 'pending' | 'in_progress' | 'interrupted' | 'completed'\n\t/** \n\t * List of related resources that should be included in the export (redundant when 'fields' are specified).\n\t * @example ```[\"prices.price_tiers\"]```\n\t */\n\tincludes?: string[] | null\n\t/** \n\t * List of fields to export for the main and related resources (automatically included). Pass the asterisk '*' to include all exportable fields for the main and related resources.\n\t * @example ```[\"code\",\"name\",\"prices.*\",\"prices.price_tiers.price_amount_cents\"]```\n\t */\n\tfields?: string[] | null\n\t/** \n\t * The filters used to select the records to be exported.\n\t * @example ```{\"code_eq\":\"AAA\"}```\n\t */\n\tfilters?: Record<string, any> | null\n\t/** \n\t * Send this attribute if you want to skip exporting redundant attributes (IDs, timestamps, blanks, etc.), useful when combining export and import to duplicate your dataset.\n\t */\n\tdry_data?: boolean | null\n\t/** \n\t * Time at which the export was started.\n\t * @example ```\"2018-01-01T12:00:00.000Z\"```\n\t */\n\tstarted_at?: string | null\n\t/** \n\t * Time at which the export 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 export was interrupted.\n\t * @example ```\"2018-01-01T12:00:00.000Z\"```\n\t */\n\tinterrupted_at?: string | null\n\t/** \n\t * Indicates the number of records to be exported.\n\t * @example ```300```\n\t */\n\trecords_count?: number | null\n\t/** \n\t * The URL to the output file, which will be generated upon export completion.\n\t * @example ```\"http://cl_exports.s3.amazonaws.com/\"```\n\t */\n\tattachment_url?: string | null\n\t/** \n\t * Contains the exports errors, if any.\n\t * @example ```{\"RuntimeError\":\"query timeout\"}```\n\t */\n\terrors_log?: Record<string, any> | null\n\n\tevents?: Event[] | null\n\tversions?: Version[] | null\n\tevent_stores?: EventStore[] | null\n\n}\n\n\ninterface ExportCreate extends ResourceCreate {\n\t\n\t/** \n\t * The type of resource being exported.\n\t * @example ```\"skus\"```\n\t */\n\tresource_type: string\n\t/** \n\t * The format of the export one of 'json' (default) or 'csv'.\n\t * @example ```\"json\"```\n\t */\n\tformat?: string | null\n\t/** \n\t * List of related resources that should be included in the export (redundant when 'fields' are specified).\n\t * @example ```[\"prices.price_tiers\"]```\n\t */\n\tincludes?: string[] | null\n\t/** \n\t * List of fields to export for the main and related resources (automatically included). Pass the asterisk '*' to include all exportable fields for the main and related resources.\n\t * @example ```[\"code\",\"name\",\"prices.*\",\"prices.price_tiers.price_amount_cents\"]```\n\t */\n\tfields?: string[] | null\n\t/** \n\t * The filters used to select the records to be exported.\n\t * @example ```{\"code_eq\":\"AAA\"}```\n\t */\n\tfilters?: Record<string, any> | null\n\t/** \n\t * Send this attribute if you want to skip exporting redundant attributes (IDs, timestamps, blanks, etc.), useful when combining export and import to duplicate your dataset.\n\t */\n\tdry_data?: boolean | null\n\t\n}\n\n\ninterface ExportUpdate extends ResourceUpdate {\n\t\n\t/** \n\t * Send this attribute if you want to mark status as 'interrupted'.\n\t * @example ```true```\n\t */\n\t_interrupt?: boolean | null\n\t\n}\n\n\nclass Exports extends ApiResource<Export> {\n\n\tstatic readonly TYPE: ExportType = 'exports' as const\n\n\tasync create(resource: ExportCreate, params?: QueryParamsRetrieve<Export>, options?: ResourcesConfig): Promise<Export> {\n\t\treturn this.resources.create<ExportCreate, Export>({ ...resource, type: Exports.TYPE }, params, options)\n\t}\n\n\tasync update(resource: ExportUpdate, params?: QueryParamsRetrieve<Export>, options?: ResourcesConfig): Promise<Export> {\n\t\treturn this.resources.update<ExportUpdate, Export>({ ...resource, type: Exports.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: Exports.TYPE } : id, options)\n\t}\n\n\tasync events(exportId: string | Export, params?: QueryParamsList<Event>, options?: ResourcesConfig): Promise<ListResponse<Event>> {\n\t\tconst _exportId = (exportId as Export).id || exportId as string\n\t\treturn this.resources.fetch<Event>({ type: 'events' }, `exports/${_exportId}/events`, params, options) as unknown as ListResponse<Event>\n\t}\n\n\tasync versions(exportId: string | Export, params?: QueryParamsList<Version>, options?: ResourcesConfig): Promise<ListResponse<Version>> {\n\t\tconst _exportId = (exportId as Export).id || exportId as string\n\t\treturn this.resources.fetch<Version>({ type: 'versions' }, `exports/${_exportId}/versions`, params, options) as unknown as ListResponse<Version>\n\t}\n\n\tasync event_stores(exportId: string | Export, params?: QueryParamsList<EventStore>, options?: ResourcesConfig): Promise<ListResponse<EventStore>> {\n\t\tconst _exportId = (exportId as Export).id || exportId as string\n\t\treturn this.resources.fetch<EventStore>({ type: 'event_stores' }, `exports/${_exportId}/event_stores`, params, options) as unknown as ListResponse<EventStore>\n\t}\n\n\tasync _interrupt(id: string | Export, params?: QueryParamsRetrieve<Export>, options?: ResourcesConfig): Promise<Export> {\n\t\treturn this.resources.update<ExportUpdate, Export>({ id: (typeof id === 'string')? id: id.id, type: Exports.TYPE, _interrupt: true }, params, options)\n\t}\n\n\n\tisExport(resource: any): resource is Export {\n\t\treturn resource.type && (resource.type === Exports.TYPE)\n\t}\n\n\n\trelationship(id: string | ResourceId | null): ExportRel {\n\t\treturn super.relationshipOneToOne<ExportRel>(id)\n\t}\n\n\trelationshipToMany(...ids: string[]): ExportRel[] {\n\t\treturn super.relationshipOneToMany<ExportRel>(...ids)\n\t}\n\n\n\ttype(): ExportType {\n\t\treturn Exports.TYPE\n\t}\n\n}\n\n\nconst instance = new Exports()\nexport default instance\n\nexport type { Exports, Export, ExportCreate, ExportUpdate, ExportType }\n"]}
@@ -0,0 +1,61 @@
1
+ import { ApiResource } from './chunk-XKERR6OR.js';
2
+
3
+ // src/resources/parcels.ts
4
+ var Parcels = class _Parcels extends ApiResource {
5
+ static TYPE = "parcels";
6
+ async create(resource, params, options) {
7
+ return this.resources.create({ ...resource, type: _Parcels.TYPE }, params, options);
8
+ }
9
+ async update(resource, params, options) {
10
+ return this.resources.update({ ...resource, type: _Parcels.TYPE }, params, options);
11
+ }
12
+ async delete(id, options) {
13
+ await this.resources.delete(typeof id === "string" ? { id, type: _Parcels.TYPE } : id, options);
14
+ }
15
+ async shipment(parcelId, params, options) {
16
+ const _parcelId = parcelId.id || parcelId;
17
+ return this.resources.fetch({ type: "shipments" }, `parcels/${_parcelId}/shipment`, params, options);
18
+ }
19
+ async package(parcelId, params, options) {
20
+ const _parcelId = parcelId.id || parcelId;
21
+ return this.resources.fetch({ type: "packages" }, `parcels/${_parcelId}/package`, params, options);
22
+ }
23
+ async parcel_line_items(parcelId, params, options) {
24
+ const _parcelId = parcelId.id || parcelId;
25
+ return this.resources.fetch({ type: "parcel_line_items" }, `parcels/${_parcelId}/parcel_line_items`, params, options);
26
+ }
27
+ async attachments(parcelId, params, options) {
28
+ const _parcelId = parcelId.id || parcelId;
29
+ return this.resources.fetch({ type: "attachments" }, `parcels/${_parcelId}/attachments`, params, options);
30
+ }
31
+ async events(parcelId, params, options) {
32
+ const _parcelId = parcelId.id || parcelId;
33
+ return this.resources.fetch({ type: "events" }, `parcels/${_parcelId}/events`, params, options);
34
+ }
35
+ async versions(parcelId, params, options) {
36
+ const _parcelId = parcelId.id || parcelId;
37
+ return this.resources.fetch({ type: "versions" }, `parcels/${_parcelId}/versions`, params, options);
38
+ }
39
+ async event_stores(parcelId, params, options) {
40
+ const _parcelId = parcelId.id || parcelId;
41
+ return this.resources.fetch({ type: "event_stores" }, `parcels/${_parcelId}/event_stores`, params, options);
42
+ }
43
+ isParcel(resource) {
44
+ return resource.type && resource.type === _Parcels.TYPE;
45
+ }
46
+ relationship(id) {
47
+ return super.relationshipOneToOne(id);
48
+ }
49
+ relationshipToMany(...ids) {
50
+ return super.relationshipOneToMany(...ids);
51
+ }
52
+ type() {
53
+ return _Parcels.TYPE;
54
+ }
55
+ };
56
+ var instance = new Parcels();
57
+ var parcels_default = instance;
58
+
59
+ export { parcels_default };
60
+ //# sourceMappingURL=chunk-JAOFRM22.js.map
61
+ //# sourceMappingURL=chunk-JAOFRM22.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/resources/parcels.ts"],"names":[],"mappings":";;;AA0ZA,IAAM,OAAA,GAAN,MAAM,QAAA,SAAgB,WAAA,CAAoB;AAAA,EAEzC,OAAgB,IAAA,GAAmB,SAAA;AAAA,EAEnC,MAAM,MAAA,CAAO,QAAA,EAAwB,MAAA,EAAsC,OAAA,EAA4C;AACtH,IAAA,OAAO,IAAA,CAAK,SAAA,CAAU,MAAA,CAA6B,EAAE,GAAG,QAAA,EAAU,IAAA,EAA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,GAAa,SAAoB,EAAA,IAAM,QAAA;AAC7C,IAAA,OAAO,IAAA,CAAK,SAAA,CAAU,KAAA,CAAkB,EAAE,IAAA,EAAM,cAAA,EAAe,EAAG,CAAA,QAAA,EAAW,SAAS,CAAA,aAAA,CAAA,EAAiB,MAAA,EAAQ,OAAO,CAAA;AAAA,EACvH;AAAA,EAGA,SAAS,QAAA,EAAmC;AAC3C,IAAA,OAAO,QAAA,CAAS,IAAA,IAAS,QAAA,CAAS,IAAA,KAAS,QAAA,CAAQ,IAAA;AAAA,EACpD;AAAA,EAGA,aAAa,EAAA,EAA2C;AACvD,IAAA,OAAO,KAAA,CAAM,qBAAgC,EAAE,CAAA;AAAA,EAChD;AAAA,EAEA,sBAAsB,GAAA,EAA4B;AACjD,IAAA,OAAO,KAAA,CAAM,qBAAA,CAAiC,GAAG,GAAG,CAAA;AAAA,EACrD;AAAA,EAGA,IAAA,GAAmB;AAClB,IAAA,OAAO,QAAA,CAAQ,IAAA;AAAA,EAChB;AAED,CAAA;AAGA,IAAM,QAAA,GAAW,IAAI,OAAA,EAAQ;AAC7B,IAAO,eAAA,GAAQ","file":"chunk-JAOFRM22.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 { Shipment, ShipmentType } from './shipments'\nimport type { Package, PackageType } from './packages'\nimport type { ParcelLineItem } from './parcel_line_items'\nimport type { Attachment } from './attachments'\nimport type { Event } from './events'\nimport type { Version } from './versions'\nimport type { EventStore } from './event_stores'\n\n\ntype ParcelType = 'parcels'\ntype ParcelRel = ResourceRel & { type: ParcelType }\ntype ShipmentRel = ResourceRel & { type: ShipmentType }\ntype PackageRel = ResourceRel & { type: PackageType }\n\n\nexport type ParcelSort = Pick<Parcel, 'id' | 'weight' | 'tracking_status' | 'tracking_status_updated_at' | 'carrier_weight_oz'> & ResourceSort\n// export type ParcelFilter = Pick<Parcel, 'id' | 'weight' | 'contents_explanation' | 'shipping_label_url' | 'shipping_label_file_type' | 'shipping_label_size' | 'shipping_label_resolution' | 'tracking_number' | 'tracking_status' | 'tracking_status_detail' | 'tracking_status_updated_at' | 'carrier_weight_oz' | 'incoterm' | 'delivery_confirmation'> & ResourceFilter\n\n\ninterface Parcel extends Resource {\n\t\n\treadonly type: ParcelType\n\n\t/** \n\t * Unique identifier for the parcel.\n\t * @example ```\"#1234/S/001/P/001\"```\n\t */\n\tnumber?: string | null\n\t/** \n\t * The parcel weight, used to automatically calculate the tax rates from the available carrier accounts.\n\t * @example ```1000```\n\t */\n\tweight: number\n\t/** \n\t * The unit of weight. One of 'gr', 'oz', or 'lb'.\n\t * @example ```\"gr\"```\n\t */\n\tunit_of_weight: 'gr' | 'oz' | 'lb'\n\t/** \n\t * When shipping outside the US, you need to provide either an Exemption and Exclusion Legend (EEL) code or a Proof of Filing Citation (PFC). Which you need is based on the value of the goods being shipped. Value can be one of \"EEL\" o \"PFC\".\n\t * @example ```\"EEL\"```\n\t */\n\teel_pfc?: string | null\n\t/** \n\t * The type of item you are sending.\n\t * @example ```\"merchandise\"```\n\t */\n\tcontents_type?: string | null\n\t/** \n\t * If you specify 'other' in the 'contents_type' attribute, you must supply a brief description in this attribute.\n\t */\n\tcontents_explanation?: string | null\n\t/** \n\t * Indicates if the provided information is accurate.\n\t */\n\tcustoms_certify?: boolean | null\n\t/** \n\t * This is the name of the person who is certifying that the information provided on the customs form is accurate. Use a name of the person in your organization who is responsible for this.\n\t * @example ```\"John Doe\"```\n\t */\n\tcustoms_signer?: string | null\n\t/** \n\t * In case the shipment cannot be delivered, this option tells the carrier what you want to happen to the parcel. You can pass either 'return', or 'abandon'. The value defaults to 'return'. If you pass 'abandon', you will not receive the parcel back if it cannot be delivered.\n\t * @example ```\"return\"```\n\t */\n\tnon_delivery_option?: string | null\n\t/** \n\t * Describes if your parcel requires any special treatment or quarantine when entering the country. Can be one of 'none', 'other', 'quarantine', or 'sanitary_phytosanitary_inspection'.\n\t * @example ```\"none\"```\n\t */\n\trestriction_type?: string | null\n\t/** \n\t * If you specify 'other' in the restriction type, you must supply a brief description of what is required.\n\t */\n\trestriction_comments?: string | null\n\t/** \n\t * Indicates if the parcel requires customs info to get the shipping rates.\n\t */\n\tcustoms_info_required?: boolean | null\n\t/** \n\t * The shipping label url, ready to be downloaded and printed.\n\t * @example ```\"https://bucket.s3-us-west-2.amazonaws.com/files/postage_label/20180101/123.pdf\"```\n\t */\n\tshipping_label_url?: string | null\n\t/** \n\t * The shipping label file type. One of 'application/pdf', 'application/zpl', 'application/epl2', or 'image/png'.\n\t * @example ```\"application/pdf\"```\n\t */\n\tshipping_label_file_type?: string | null\n\t/** \n\t * The shipping label size.\n\t * @example ```\"4x7\"```\n\t */\n\tshipping_label_size?: string | null\n\t/** \n\t * The shipping label resolution.\n\t * @example ```\"200\"```\n\t */\n\tshipping_label_resolution?: string | null\n\t/** \n\t * The tracking number associated to this parcel.\n\t * @example ```\"1Z4V2A000000000000\"```\n\t */\n\ttracking_number?: string | null\n\t/** \n\t * The tracking status for this parcel, automatically updated in real time by the shipping carrier.\n\t * @example ```\"delivered\"```\n\t */\n\ttracking_status?: string | null\n\t/** \n\t * Additional information about the tracking status, automatically updated in real time by the shipping carrier.\n\t * @example ```\"arrived_at_destination\"```\n\t */\n\ttracking_status_detail?: string | null\n\t/** \n\t * Time at which the parcel's tracking status was last updated.\n\t * @example ```\"2018-01-01T12:00:00.000Z\"```\n\t */\n\ttracking_status_updated_at?: string | null\n\t/** \n\t * The parcel's full tracking history, automatically updated in real time by the shipping carrier.\n\t * @example ```[{\"object\":\"TrackingDetail\",\"message\":\"Pre-Shipment information received\",\"status\":\"pre_transit\",\"datetime\":\"2018-02-27T16:02:17Z\",\"source\":\"DHLExpress\",\"tracking_location\":{\"object\":\"TrackingLocation\"}}]```\n\t */\n\ttracking_details?: Array<Record<string, any>> | null\n\t/** \n\t * The weight of the parcel as measured by the carrier in ounces (if available).\n\t * @example ```\"42.32\"```\n\t */\n\tcarrier_weight_oz?: string | null\n\t/** \n\t * The name of the person who signed for the parcel (if available).\n\t * @example ```\"John Smith\"```\n\t */\n\tsigned_by?: string | null\n\t/** \n\t * The type of Incoterm (if available).\n\t * @example ```\"EXW\"```\n\t */\n\tincoterm?: string | null\n\t/** \n\t * The type of delivery confirmation option upon delivery.\n\t * @example ```\"SIGNATURE\"```\n\t */\n\tdelivery_confirmation?: string | null\n\n\tshipment?: Shipment | null\n\tpackage?: Package | null\n\tparcel_line_items?: ParcelLineItem[] | null\n\tattachments?: Attachment[] | null\n\tevents?: Event[] | null\n\tversions?: Version[] | null\n\tevent_stores?: EventStore[] | null\n\n}\n\n\ninterface ParcelCreate extends ResourceCreate {\n\t\n\t/** \n\t * The parcel weight, used to automatically calculate the tax rates from the available carrier accounts.\n\t * @example ```1000```\n\t */\n\tweight: number\n\t/** \n\t * The unit of weight. One of 'gr', 'oz', or 'lb'.\n\t * @example ```\"gr\"```\n\t */\n\tunit_of_weight: 'gr' | 'oz' | 'lb'\n\t/** \n\t * When shipping outside the US, you need to provide either an Exemption and Exclusion Legend (EEL) code or a Proof of Filing Citation (PFC). Which you need is based on the value of the goods being shipped. Value can be one of \"EEL\" o \"PFC\".\n\t * @example ```\"EEL\"```\n\t */\n\teel_pfc?: string | null\n\t/** \n\t * The type of item you are sending.\n\t * @example ```\"merchandise\"```\n\t */\n\tcontents_type?: string | null\n\t/** \n\t * If you specify 'other' in the 'contents_type' attribute, you must supply a brief description in this attribute.\n\t */\n\tcontents_explanation?: string | null\n\t/** \n\t * Indicates if the provided information is accurate.\n\t */\n\tcustoms_certify?: boolean | null\n\t/** \n\t * This is the name of the person who is certifying that the information provided on the customs form is accurate. Use a name of the person in your organization who is responsible for this.\n\t * @example ```\"John Doe\"```\n\t */\n\tcustoms_signer?: string | null\n\t/** \n\t * In case the shipment cannot be delivered, this option tells the carrier what you want to happen to the parcel. You can pass either 'return', or 'abandon'. The value defaults to 'return'. If you pass 'abandon', you will not receive the parcel back if it cannot be delivered.\n\t * @example ```\"return\"```\n\t */\n\tnon_delivery_option?: string | null\n\t/** \n\t * Describes if your parcel requires any special treatment or quarantine when entering the country. Can be one of 'none', 'other', 'quarantine', or 'sanitary_phytosanitary_inspection'.\n\t * @example ```\"none\"```\n\t */\n\trestriction_type?: string | null\n\t/** \n\t * If you specify 'other' in the restriction type, you must supply a brief description of what is required.\n\t */\n\trestriction_comments?: string | null\n\t/** \n\t * Indicates if the parcel requires customs info to get the shipping rates.\n\t */\n\tcustoms_info_required?: boolean | null\n\t/** \n\t * The shipping label url, ready to be downloaded and printed.\n\t * @example ```\"https://bucket.s3-us-west-2.amazonaws.com/files/postage_label/20180101/123.pdf\"```\n\t */\n\tshipping_label_url?: string | null\n\t/** \n\t * The shipping label file type. One of 'application/pdf', 'application/zpl', 'application/epl2', or 'image/png'.\n\t * @example ```\"application/pdf\"```\n\t */\n\tshipping_label_file_type?: string | null\n\t/** \n\t * The shipping label size.\n\t * @example ```\"4x7\"```\n\t */\n\tshipping_label_size?: string | null\n\t/** \n\t * The shipping label resolution.\n\t * @example ```\"200\"```\n\t */\n\tshipping_label_resolution?: string | null\n\t/** \n\t * The tracking number associated to this parcel.\n\t * @example ```\"1Z4V2A000000000000\"```\n\t */\n\ttracking_number?: string | null\n\t/** \n\t * The tracking status for this parcel, automatically updated in real time by the shipping carrier.\n\t * @example ```\"delivered\"```\n\t */\n\ttracking_status?: string | null\n\t/** \n\t * Additional information about the tracking status, automatically updated in real time by the shipping carrier.\n\t * @example ```\"arrived_at_destination\"```\n\t */\n\ttracking_status_detail?: string | null\n\t/** \n\t * Time at which the parcel's tracking status was last updated.\n\t * @example ```\"2018-01-01T12:00:00.000Z\"```\n\t */\n\ttracking_status_updated_at?: string | null\n\t/** \n\t * The parcel's full tracking history, automatically updated in real time by the shipping carrier.\n\t * @example ```[{\"object\":\"TrackingDetail\",\"message\":\"Pre-Shipment information received\",\"status\":\"pre_transit\",\"datetime\":\"2018-02-27T16:02:17Z\",\"source\":\"DHLExpress\",\"tracking_location\":{\"object\":\"TrackingLocation\"}}]```\n\t */\n\ttracking_details?: Array<Record<string, any>> | null\n\t/** \n\t * The weight of the parcel as measured by the carrier in ounces (if available).\n\t * @example ```\"42.32\"```\n\t */\n\tcarrier_weight_oz?: string | null\n\t/** \n\t * The name of the person who signed for the parcel (if available).\n\t * @example ```\"John Smith\"```\n\t */\n\tsigned_by?: string | null\n\t/** \n\t * The type of Incoterm (if available).\n\t * @example ```\"EXW\"```\n\t */\n\tincoterm?: string | null\n\t/** \n\t * The type of delivery confirmation option upon delivery.\n\t * @example ```\"SIGNATURE\"```\n\t */\n\tdelivery_confirmation?: string | null\n\n\tshipment: ShipmentRel\n\tpackage: PackageRel\n\n}\n\n\ninterface ParcelUpdate extends ResourceUpdate {\n\t\n\t/** \n\t * The parcel weight, used to automatically calculate the tax rates from the available carrier accounts.\n\t * @example ```1000```\n\t */\n\tweight?: number | null\n\t/** \n\t * The unit of weight. One of 'gr', 'oz', or 'lb'.\n\t * @example ```\"gr\"```\n\t */\n\tunit_of_weight?: 'gr' | 'oz' | 'lb' | null\n\t/** \n\t * When shipping outside the US, you need to provide either an Exemption and Exclusion Legend (EEL) code or a Proof of Filing Citation (PFC). Which you need is based on the value of the goods being shipped. Value can be one of \"EEL\" o \"PFC\".\n\t * @example ```\"EEL\"```\n\t */\n\teel_pfc?: string | null\n\t/** \n\t * The type of item you are sending.\n\t * @example ```\"merchandise\"```\n\t */\n\tcontents_type?: string | null\n\t/** \n\t * If you specify 'other' in the 'contents_type' attribute, you must supply a brief description in this attribute.\n\t */\n\tcontents_explanation?: string | null\n\t/** \n\t * Indicates if the provided information is accurate.\n\t */\n\tcustoms_certify?: boolean | null\n\t/** \n\t * This is the name of the person who is certifying that the information provided on the customs form is accurate. Use a name of the person in your organization who is responsible for this.\n\t * @example ```\"John Doe\"```\n\t */\n\tcustoms_signer?: string | null\n\t/** \n\t * In case the shipment cannot be delivered, this option tells the carrier what you want to happen to the parcel. You can pass either 'return', or 'abandon'. The value defaults to 'return'. If you pass 'abandon', you will not receive the parcel back if it cannot be delivered.\n\t * @example ```\"return\"```\n\t */\n\tnon_delivery_option?: string | null\n\t/** \n\t * Describes if your parcel requires any special treatment or quarantine when entering the country. Can be one of 'none', 'other', 'quarantine', or 'sanitary_phytosanitary_inspection'.\n\t * @example ```\"none\"```\n\t */\n\trestriction_type?: string | null\n\t/** \n\t * If you specify 'other' in the restriction type, you must supply a brief description of what is required.\n\t */\n\trestriction_comments?: string | null\n\t/** \n\t * Indicates if the parcel requires customs info to get the shipping rates.\n\t */\n\tcustoms_info_required?: boolean | null\n\t/** \n\t * The shipping label url, ready to be downloaded and printed.\n\t * @example ```\"https://bucket.s3-us-west-2.amazonaws.com/files/postage_label/20180101/123.pdf\"```\n\t */\n\tshipping_label_url?: string | null\n\t/** \n\t * The shipping label file type. One of 'application/pdf', 'application/zpl', 'application/epl2', or 'image/png'.\n\t * @example ```\"application/pdf\"```\n\t */\n\tshipping_label_file_type?: string | null\n\t/** \n\t * The shipping label size.\n\t * @example ```\"4x7\"```\n\t */\n\tshipping_label_size?: string | null\n\t/** \n\t * The shipping label resolution.\n\t * @example ```\"200\"```\n\t */\n\tshipping_label_resolution?: string | null\n\t/** \n\t * The tracking number associated to this parcel.\n\t * @example ```\"1Z4V2A000000000000\"```\n\t */\n\ttracking_number?: string | null\n\t/** \n\t * The tracking status for this parcel, automatically updated in real time by the shipping carrier.\n\t * @example ```\"delivered\"```\n\t */\n\ttracking_status?: string | null\n\t/** \n\t * Additional information about the tracking status, automatically updated in real time by the shipping carrier.\n\t * @example ```\"arrived_at_destination\"```\n\t */\n\ttracking_status_detail?: string | null\n\t/** \n\t * Time at which the parcel's tracking status was last updated.\n\t * @example ```\"2018-01-01T12:00:00.000Z\"```\n\t */\n\ttracking_status_updated_at?: string | null\n\t/** \n\t * The parcel's full tracking history, automatically updated in real time by the shipping carrier.\n\t * @example ```[{\"object\":\"TrackingDetail\",\"message\":\"Pre-Shipment information received\",\"status\":\"pre_transit\",\"datetime\":\"2018-02-27T16:02:17Z\",\"source\":\"DHLExpress\",\"tracking_location\":{\"object\":\"TrackingLocation\"}}]```\n\t */\n\ttracking_details?: Array<Record<string, any>> | null\n\t/** \n\t * The weight of the parcel as measured by the carrier in ounces (if available).\n\t * @example ```\"42.32\"```\n\t */\n\tcarrier_weight_oz?: string | null\n\t/** \n\t * The name of the person who signed for the parcel (if available).\n\t * @example ```\"John Smith\"```\n\t */\n\tsigned_by?: string | null\n\t/** \n\t * The type of Incoterm (if available).\n\t * @example ```\"EXW\"```\n\t */\n\tincoterm?: string | null\n\t/** \n\t * The type of delivery confirmation option upon delivery.\n\t * @example ```\"SIGNATURE\"```\n\t */\n\tdelivery_confirmation?: string | null\n\n\tshipment?: ShipmentRel | null\n\tpackage?: PackageRel | null\n\n}\n\n\nclass Parcels extends ApiResource<Parcel> {\n\n\tstatic readonly TYPE: ParcelType = 'parcels' as const\n\n\tasync create(resource: ParcelCreate, params?: QueryParamsRetrieve<Parcel>, options?: ResourcesConfig): Promise<Parcel> {\n\t\treturn this.resources.create<ParcelCreate, Parcel>({ ...resource, type: Parcels.TYPE }, params, options)\n\t}\n\n\tasync update(resource: ParcelUpdate, params?: QueryParamsRetrieve<Parcel>, options?: ResourcesConfig): Promise<Parcel> {\n\t\treturn this.resources.update<ParcelUpdate, Parcel>({ ...resource, type: Parcels.TYPE }, params, options)\n\t}\n\n\tasync delete(id: string | ResourceId, options?: ResourcesConfig): Promise<void> {\n\t\tawait this.resources.delete((typeof id === 'string')? { id, type: Parcels.TYPE } : id, options)\n\t}\n\n\tasync shipment(parcelId: string | Parcel, params?: QueryParamsRetrieve<Shipment>, options?: ResourcesConfig): Promise<Shipment> {\n\t\tconst _parcelId = (parcelId as Parcel).id || parcelId as string\n\t\treturn this.resources.fetch<Shipment>({ type: 'shipments' }, `parcels/${_parcelId}/shipment`, params, options) as unknown as Shipment\n\t}\n\n\tasync package(parcelId: string | Parcel, params?: QueryParamsRetrieve<Package>, options?: ResourcesConfig): Promise<Package> {\n\t\tconst _parcelId = (parcelId as Parcel).id || parcelId as string\n\t\treturn this.resources.fetch<Package>({ type: 'packages' }, `parcels/${_parcelId}/package`, params, options) as unknown as Package\n\t}\n\n\tasync parcel_line_items(parcelId: string | Parcel, params?: QueryParamsList<ParcelLineItem>, options?: ResourcesConfig): Promise<ListResponse<ParcelLineItem>> {\n\t\tconst _parcelId = (parcelId as Parcel).id || parcelId as string\n\t\treturn this.resources.fetch<ParcelLineItem>({ type: 'parcel_line_items' }, `parcels/${_parcelId}/parcel_line_items`, params, options) as unknown as ListResponse<ParcelLineItem>\n\t}\n\n\tasync attachments(parcelId: string | Parcel, params?: QueryParamsList<Attachment>, options?: ResourcesConfig): Promise<ListResponse<Attachment>> {\n\t\tconst _parcelId = (parcelId as Parcel).id || parcelId as string\n\t\treturn this.resources.fetch<Attachment>({ type: 'attachments' }, `parcels/${_parcelId}/attachments`, params, options) as unknown as ListResponse<Attachment>\n\t}\n\n\tasync events(parcelId: string | Parcel, params?: QueryParamsList<Event>, options?: ResourcesConfig): Promise<ListResponse<Event>> {\n\t\tconst _parcelId = (parcelId as Parcel).id || parcelId as string\n\t\treturn this.resources.fetch<Event>({ type: 'events' }, `parcels/${_parcelId}/events`, params, options) as unknown as ListResponse<Event>\n\t}\n\n\tasync versions(parcelId: string | Parcel, params?: QueryParamsList<Version>, options?: ResourcesConfig): Promise<ListResponse<Version>> {\n\t\tconst _parcelId = (parcelId as Parcel).id || parcelId as string\n\t\treturn this.resources.fetch<Version>({ type: 'versions' }, `parcels/${_parcelId}/versions`, params, options) as unknown as ListResponse<Version>\n\t}\n\n\tasync event_stores(parcelId: string | Parcel, params?: QueryParamsList<EventStore>, options?: ResourcesConfig): Promise<ListResponse<EventStore>> {\n\t\tconst _parcelId = (parcelId as Parcel).id || parcelId as string\n\t\treturn this.resources.fetch<EventStore>({ type: 'event_stores' }, `parcels/${_parcelId}/event_stores`, params, options) as unknown as ListResponse<EventStore>\n\t}\n\n\n\tisParcel(resource: any): resource is Parcel {\n\t\treturn resource.type && (resource.type === Parcels.TYPE)\n\t}\n\n\n\trelationship(id: string | ResourceId | null): ParcelRel {\n\t\treturn super.relationshipOneToOne<ParcelRel>(id)\n\t}\n\n\trelationshipToMany(...ids: string[]): ParcelRel[] {\n\t\treturn super.relationshipOneToMany<ParcelRel>(...ids)\n\t}\n\n\n\ttype(): ParcelType {\n\t\treturn Parcels.TYPE\n\t}\n\n}\n\n\nconst instance = new Parcels()\nexport default instance\n\nexport type { Parcels, Parcel, ParcelCreate, ParcelUpdate, ParcelType }\n"]}
@@ -0,0 +1,107 @@
1
+ 'use strict';
2
+
3
+ var chunkU22VLCMN_cjs = require('./chunk-U22VLCMN.cjs');
4
+
5
+ // src/resources/customers.ts
6
+ var Customers = class _Customers extends chunkU22VLCMN_cjs.ApiResource {
7
+ static TYPE = "customers";
8
+ async create(resource, params, options) {
9
+ return this.resources.create({ ...resource, type: _Customers.TYPE }, params, options);
10
+ }
11
+ async update(resource, params, options) {
12
+ return this.resources.update({ ...resource, type: _Customers.TYPE }, params, options);
13
+ }
14
+ async delete(id, options) {
15
+ await this.resources.delete(typeof id === "string" ? { id, type: _Customers.TYPE } : id, options);
16
+ }
17
+ async customer_group(customerId, params, options) {
18
+ const _customerId = customerId.id || customerId;
19
+ return this.resources.fetch({ type: "customer_groups" }, `customers/${_customerId}/customer_group`, params, options);
20
+ }
21
+ async customer_addresses(customerId, params, options) {
22
+ const _customerId = customerId.id || customerId;
23
+ return this.resources.fetch({ type: "customer_addresses" }, `customers/${_customerId}/customer_addresses`, params, options);
24
+ }
25
+ async customer_payment_sources(customerId, params, options) {
26
+ const _customerId = customerId.id || customerId;
27
+ return this.resources.fetch({ type: "customer_payment_sources" }, `customers/${_customerId}/customer_payment_sources`, params, options);
28
+ }
29
+ async customer_subscriptions(customerId, params, options) {
30
+ const _customerId = customerId.id || customerId;
31
+ return this.resources.fetch({ type: "customer_subscriptions" }, `customers/${_customerId}/customer_subscriptions`, params, options);
32
+ }
33
+ async orders(customerId, params, options) {
34
+ const _customerId = customerId.id || customerId;
35
+ return this.resources.fetch({ type: "orders" }, `customers/${_customerId}/orders`, params, options);
36
+ }
37
+ async order_subscriptions(customerId, params, options) {
38
+ const _customerId = customerId.id || customerId;
39
+ return this.resources.fetch({ type: "order_subscriptions" }, `customers/${_customerId}/order_subscriptions`, params, options);
40
+ }
41
+ async returns(customerId, params, options) {
42
+ const _customerId = customerId.id || customerId;
43
+ return this.resources.fetch({ type: "returns" }, `customers/${_customerId}/returns`, params, options);
44
+ }
45
+ async sku_lists(customerId, params, options) {
46
+ const _customerId = customerId.id || customerId;
47
+ return this.resources.fetch({ type: "sku_lists" }, `customers/${_customerId}/sku_lists`, params, options);
48
+ }
49
+ async attachments(customerId, params, options) {
50
+ const _customerId = customerId.id || customerId;
51
+ return this.resources.fetch({ type: "attachments" }, `customers/${_customerId}/attachments`, params, options);
52
+ }
53
+ async events(customerId, params, options) {
54
+ const _customerId = customerId.id || customerId;
55
+ return this.resources.fetch({ type: "events" }, `customers/${_customerId}/events`, params, options);
56
+ }
57
+ async tags(customerId, params, options) {
58
+ const _customerId = customerId.id || customerId;
59
+ return this.resources.fetch({ type: "tags" }, `customers/${_customerId}/tags`, params, options);
60
+ }
61
+ async jwt_customer(customerId, params, options) {
62
+ const _customerId = customerId.id || customerId;
63
+ return this.resources.fetch({ type: "customers" }, `customers/${_customerId}/jwt_customer`, params, options);
64
+ }
65
+ async jwt_markets(customerId, params, options) {
66
+ const _customerId = customerId.id || customerId;
67
+ return this.resources.fetch({ type: "markets" }, `customers/${_customerId}/jwt_markets`, params, options);
68
+ }
69
+ async jwt_stock_locations(customerId, params, options) {
70
+ const _customerId = customerId.id || customerId;
71
+ return this.resources.fetch({ type: "stock_locations" }, `customers/${_customerId}/jwt_stock_locations`, params, options);
72
+ }
73
+ async event_stores(customerId, params, options) {
74
+ const _customerId = customerId.id || customerId;
75
+ return this.resources.fetch({ type: "event_stores" }, `customers/${_customerId}/event_stores`, params, options);
76
+ }
77
+ async _add_tags(id, triggerValue, params, options) {
78
+ return this.resources.update({ id: typeof id === "string" ? id : id.id, type: _Customers.TYPE, _add_tags: triggerValue }, params, options);
79
+ }
80
+ async _remove_tags(id, triggerValue, params, options) {
81
+ return this.resources.update({ id: typeof id === "string" ? id : id.id, type: _Customers.TYPE, _remove_tags: triggerValue }, params, options);
82
+ }
83
+ async _request_anonymization(id, params, options) {
84
+ return this.resources.update({ id: typeof id === "string" ? id : id.id, type: _Customers.TYPE, _request_anonymization: true }, params, options);
85
+ }
86
+ async _cancel_anonymization(id, params, options) {
87
+ return this.resources.update({ id: typeof id === "string" ? id : id.id, type: _Customers.TYPE, _cancel_anonymization: true }, params, options);
88
+ }
89
+ isCustomer(resource) {
90
+ return resource.type && resource.type === _Customers.TYPE;
91
+ }
92
+ relationship(id) {
93
+ return super.relationshipOneToOne(id);
94
+ }
95
+ relationshipToMany(...ids) {
96
+ return super.relationshipOneToMany(...ids);
97
+ }
98
+ type() {
99
+ return _Customers.TYPE;
100
+ }
101
+ };
102
+ var instance = new Customers();
103
+ var customers_default = instance;
104
+
105
+ exports.customers_default = customers_default;
106
+ //# sourceMappingURL=chunk-JCOJGOXF.cjs.map
107
+ //# sourceMappingURL=chunk-JCOJGOXF.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/resources/customers.ts"],"names":["ApiResource"],"mappings":";;;;;AA6LA,IAAM,SAAA,GAAN,MAAM,UAAA,SAAkBA,6BAAA,CAAsB;AAAA,EAE7C,OAAgB,IAAA,GAAqB,WAAA;AAAA,EAErC,MAAM,MAAA,CAAO,QAAA,EAA0B,MAAA,EAAwC,OAAA,EAA8C;AAC5H,IAAA,OAAO,IAAA,CAAK,SAAA,CAAU,MAAA,CAAiC,EAAE,GAAG,QAAA,EAAU,IAAA,EAAM,UAAA,CAAU,IAAA,EAA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,EAAI,MAAM,UAAA,CAAU,IAAA,EAAM,uBAAuB,IAAA,EAAK,EAAG,QAAQ,OAAO,CAAA;AAAA,EACvK;AAAA,EAGA,WAAW,QAAA,EAAqC;AAC/C,IAAA,OAAO,QAAA,CAAS,IAAA,IAAS,QAAA,CAAS,IAAA,KAAS,UAAA,CAAU,IAAA;AAAA,EACtD;AAAA,EAGA,aAAa,EAAA,EAA6C;AACzD,IAAA,OAAO,KAAA,CAAM,qBAAkC,EAAE,CAAA;AAAA,EAClD;AAAA,EAEA,sBAAsB,GAAA,EAA8B;AACnD,IAAA,OAAO,KAAA,CAAM,qBAAA,CAAmC,GAAG,GAAG,CAAA;AAAA,EACvD;AAAA,EAGA,IAAA,GAAqB;AACpB,IAAA,OAAO,UAAA,CAAU,IAAA;AAAA,EAClB;AAED,CAAA;AAGA,IAAM,QAAA,GAAW,IAAI,SAAA,EAAU;AAC/B,IAAO,iBAAA,GAAQ","file":"chunk-JCOJGOXF.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 { CustomerGroup, CustomerGroupType } from './customer_groups'\nimport type { CustomerAddress } from './customer_addresses'\nimport type { CustomerPaymentSource } from './customer_payment_sources'\nimport type { CustomerSubscription } from './customer_subscriptions'\nimport type { Order } from './orders'\nimport type { OrderSubscription } from './order_subscriptions'\nimport type { Return } from './returns'\nimport type { SkuList } from './sku_lists'\nimport type { Attachment } from './attachments'\nimport type { Event } from './events'\nimport type { Tag, TagType } from './tags'\nimport type { Market } from './markets'\nimport type { StockLocation } from './stock_locations'\nimport type { EventStore } from './event_stores'\n\n\ntype CustomerType = 'customers'\ntype CustomerRel = ResourceRel & { type: CustomerType }\ntype CustomerGroupRel = ResourceRel & { type: CustomerGroupType }\ntype TagRel = ResourceRel & { type: TagType }\n\n\nexport type CustomerSort = Pick<Customer, 'id' | 'email' | 'status' | 'total_orders_count' | 'anonymization_status'> & ResourceSort\n// export type CustomerFilter = Pick<Customer, 'id' | 'email' | 'status' | 'total_orders_count' | 'anonymization_status'> & ResourceFilter\n\n\ninterface Customer extends Resource {\n\t\n\treadonly type: CustomerType\n\n\t/** \n\t * The customer's email address.\n\t * @example ```\"john@example.com\"```\n\t */\n\temail: string\n\t/** \n\t * The customer's status. One of 'prospect' (default), 'acquired', or 'repeat'.\n\t * @example ```\"prospect\"```\n\t */\n\tstatus: 'prospect' | 'acquired' | 'repeat'\n\t/** \n\t * Indicates if the customer has a password.\n\t */\n\thas_password?: boolean | null\n\t/** \n\t * The total number of orders for the customer.\n\t * @example ```6```\n\t */\n\ttotal_orders_count?: number | null\n\t/** \n\t * A reference to uniquely identify the shopper during payment sessions.\n\t * @example ```\"xxx-yyy-zzz\"```\n\t */\n\tshopper_reference?: string | null\n\t/** \n\t * A reference to uniquely identify the customer on any connected external services.\n\t * @example ```\"xxx-yyy-zzz\"```\n\t */\n\tprofile_id?: string | null\n\t/** \n\t * A specific code to identify the tax exemption reason for this customer.\n\t * @example ```\"xxx-yyy-zzz\"```\n\t */\n\ttax_exemption_code?: string | null\n\t/** \n\t * The custom_claim attached to the current JWT (if any).\n\t * @example ```{}```\n\t */\n\tjwt_custom_claim?: Record<string, any> | null\n\t/** \n\t * The anonymization info object.\n\t * @example ```{\"status\":\"requested\",\"requested_at\":\"2025-03-15 11:39:21 UTC\",\"requester\":{\"id\":\"fdgt56hh\",\"first_name\":\"Travis\",\"last_name\":\"Muller\",\"email\":\"test@labadie.test\"}}```\n\t */\n\tanonymization_info?: Record<string, any> | null\n\t/** \n\t * Status of the current anonymization request (if any).\n\t * @example ```\"requested\"```\n\t */\n\tanonymization_status?: string | null\n\n\tcustomer_group?: CustomerGroup | null\n\tcustomer_addresses?: CustomerAddress[] | null\n\tcustomer_payment_sources?: CustomerPaymentSource[] | null\n\tcustomer_subscriptions?: CustomerSubscription[] | null\n\torders?: Order[] | null\n\torder_subscriptions?: OrderSubscription[] | null\n\treturns?: Return[] | null\n\tsku_lists?: SkuList[] | null\n\tattachments?: Attachment[] | null\n\tevents?: Event[] | null\n\ttags?: Tag[] | null\n\tjwt_customer?: Customer | null\n\tjwt_markets?: Market[] | null\n\tjwt_stock_locations?: StockLocation[] | null\n\tevent_stores?: EventStore[] | null\n\n}\n\n\ninterface CustomerCreate extends ResourceCreate {\n\t\n\t/** \n\t * The customer's email address.\n\t * @example ```\"john@example.com\"```\n\t */\n\temail: string\n\t/** \n\t * The customer's password. Initiate a customer password reset flow if you need to change it.\n\t * @example ```\"secret\"```\n\t */\n\tpassword?: string | null\n\t/** \n\t * A reference to uniquely identify the shopper during payment sessions.\n\t * @example ```\"xxx-yyy-zzz\"```\n\t */\n\tshopper_reference?: string | null\n\t/** \n\t * A reference to uniquely identify the customer on any connected external services.\n\t * @example ```\"xxx-yyy-zzz\"```\n\t */\n\tprofile_id?: string | null\n\t/** \n\t * A specific code to identify the tax exemption reason for this customer.\n\t * @example ```\"xxx-yyy-zzz\"```\n\t */\n\ttax_exemption_code?: string | null\n\n\tcustomer_group?: CustomerGroupRel | null\n\ttags?: TagRel[] | null\n\n}\n\n\ninterface CustomerUpdate extends ResourceUpdate {\n\t\n\t/** \n\t * The customer's email address.\n\t * @example ```\"john@example.com\"```\n\t */\n\temail?: string | null\n\t/** \n\t * The customer's password. Initiate a customer password reset flow if you need to change it.\n\t * @example ```\"secret\"```\n\t */\n\tpassword?: string | null\n\t/** \n\t * A reference to uniquely identify the shopper during payment sessions.\n\t * @example ```\"xxx-yyy-zzz\"```\n\t */\n\tshopper_reference?: string | null\n\t/** \n\t * A reference to uniquely identify the customer on any connected external services.\n\t * @example ```\"xxx-yyy-zzz\"```\n\t */\n\tprofile_id?: string | null\n\t/** \n\t * A specific code to identify the tax exemption reason for this customer.\n\t * @example ```\"xxx-yyy-zzz\"```\n\t */\n\ttax_exemption_code?: string | null\n\t/** \n\t * Comma separated list of tags to be added. Duplicates, invalid and non existing ones are discarded. Cannot be passed by sales channels.\n\t */\n\t_add_tags?: string | null\n\t/** \n\t * Comma separated list of tags to be removed. Duplicates, invalid and non existing ones are discarded. Cannot be passed by sales channels.\n\t */\n\t_remove_tags?: string | null\n\t/** \n\t * Send this attribute if you want to trigger anonymization. Cannot be passed by sales channels.\n\t * @example ```true```\n\t */\n\t_request_anonymization?: boolean | null\n\t/** \n\t * Send this attribute if you want to trigger a cancellation of anonymization. Cannot be passed by sales channels.\n\t * @example ```true```\n\t */\n\t_cancel_anonymization?: boolean | null\n\n\tcustomer_group?: CustomerGroupRel | null\n\ttags?: TagRel[] | null\n\n}\n\n\nclass Customers extends ApiResource<Customer> {\n\n\tstatic readonly TYPE: CustomerType = 'customers' as const\n\n\tasync create(resource: CustomerCreate, params?: QueryParamsRetrieve<Customer>, options?: ResourcesConfig): Promise<Customer> {\n\t\treturn this.resources.create<CustomerCreate, Customer>({ ...resource, type: Customers.TYPE }, params, options)\n\t}\n\n\tasync update(resource: CustomerUpdate, params?: QueryParamsRetrieve<Customer>, options?: ResourcesConfig): Promise<Customer> {\n\t\treturn this.resources.update<CustomerUpdate, Customer>({ ...resource, type: Customers.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: Customers.TYPE } : id, options)\n\t}\n\n\tasync customer_group(customerId: string | Customer, params?: QueryParamsRetrieve<CustomerGroup>, options?: ResourcesConfig): Promise<CustomerGroup> {\n\t\tconst _customerId = (customerId as Customer).id || customerId as string\n\t\treturn this.resources.fetch<CustomerGroup>({ type: 'customer_groups' }, `customers/${_customerId}/customer_group`, params, options) as unknown as CustomerGroup\n\t}\n\n\tasync customer_addresses(customerId: string | Customer, params?: QueryParamsList<CustomerAddress>, options?: ResourcesConfig): Promise<ListResponse<CustomerAddress>> {\n\t\tconst _customerId = (customerId as Customer).id || customerId as string\n\t\treturn this.resources.fetch<CustomerAddress>({ type: 'customer_addresses' }, `customers/${_customerId}/customer_addresses`, params, options) as unknown as ListResponse<CustomerAddress>\n\t}\n\n\tasync customer_payment_sources(customerId: string | Customer, params?: QueryParamsList<CustomerPaymentSource>, options?: ResourcesConfig): Promise<ListResponse<CustomerPaymentSource>> {\n\t\tconst _customerId = (customerId as Customer).id || customerId as string\n\t\treturn this.resources.fetch<CustomerPaymentSource>({ type: 'customer_payment_sources' }, `customers/${_customerId}/customer_payment_sources`, params, options) as unknown as ListResponse<CustomerPaymentSource>\n\t}\n\n\tasync customer_subscriptions(customerId: string | Customer, params?: QueryParamsList<CustomerSubscription>, options?: ResourcesConfig): Promise<ListResponse<CustomerSubscription>> {\n\t\tconst _customerId = (customerId as Customer).id || customerId as string\n\t\treturn this.resources.fetch<CustomerSubscription>({ type: 'customer_subscriptions' }, `customers/${_customerId}/customer_subscriptions`, params, options) as unknown as ListResponse<CustomerSubscription>\n\t}\n\n\tasync orders(customerId: string | Customer, params?: QueryParamsList<Order>, options?: ResourcesConfig): Promise<ListResponse<Order>> {\n\t\tconst _customerId = (customerId as Customer).id || customerId as string\n\t\treturn this.resources.fetch<Order>({ type: 'orders' }, `customers/${_customerId}/orders`, params, options) as unknown as ListResponse<Order>\n\t}\n\n\tasync order_subscriptions(customerId: string | Customer, params?: QueryParamsList<OrderSubscription>, options?: ResourcesConfig): Promise<ListResponse<OrderSubscription>> {\n\t\tconst _customerId = (customerId as Customer).id || customerId as string\n\t\treturn this.resources.fetch<OrderSubscription>({ type: 'order_subscriptions' }, `customers/${_customerId}/order_subscriptions`, params, options) as unknown as ListResponse<OrderSubscription>\n\t}\n\n\tasync returns(customerId: string | Customer, params?: QueryParamsList<Return>, options?: ResourcesConfig): Promise<ListResponse<Return>> {\n\t\tconst _customerId = (customerId as Customer).id || customerId as string\n\t\treturn this.resources.fetch<Return>({ type: 'returns' }, `customers/${_customerId}/returns`, params, options) as unknown as ListResponse<Return>\n\t}\n\n\tasync sku_lists(customerId: string | Customer, params?: QueryParamsList<SkuList>, options?: ResourcesConfig): Promise<ListResponse<SkuList>> {\n\t\tconst _customerId = (customerId as Customer).id || customerId as string\n\t\treturn this.resources.fetch<SkuList>({ type: 'sku_lists' }, `customers/${_customerId}/sku_lists`, params, options) as unknown as ListResponse<SkuList>\n\t}\n\n\tasync attachments(customerId: string | Customer, params?: QueryParamsList<Attachment>, options?: ResourcesConfig): Promise<ListResponse<Attachment>> {\n\t\tconst _customerId = (customerId as Customer).id || customerId as string\n\t\treturn this.resources.fetch<Attachment>({ type: 'attachments' }, `customers/${_customerId}/attachments`, params, options) as unknown as ListResponse<Attachment>\n\t}\n\n\tasync events(customerId: string | Customer, params?: QueryParamsList<Event>, options?: ResourcesConfig): Promise<ListResponse<Event>> {\n\t\tconst _customerId = (customerId as Customer).id || customerId as string\n\t\treturn this.resources.fetch<Event>({ type: 'events' }, `customers/${_customerId}/events`, params, options) as unknown as ListResponse<Event>\n\t}\n\n\tasync tags(customerId: string | Customer, params?: QueryParamsList<Tag>, options?: ResourcesConfig): Promise<ListResponse<Tag>> {\n\t\tconst _customerId = (customerId as Customer).id || customerId as string\n\t\treturn this.resources.fetch<Tag>({ type: 'tags' }, `customers/${_customerId}/tags`, params, options) as unknown as ListResponse<Tag>\n\t}\n\n\tasync jwt_customer(customerId: string | Customer, params?: QueryParamsRetrieve<Customer>, options?: ResourcesConfig): Promise<Customer> {\n\t\tconst _customerId = (customerId as Customer).id || customerId as string\n\t\treturn this.resources.fetch<Customer>({ type: 'customers' }, `customers/${_customerId}/jwt_customer`, params, options) as unknown as Customer\n\t}\n\n\tasync jwt_markets(customerId: string | Customer, params?: QueryParamsList<Market>, options?: ResourcesConfig): Promise<ListResponse<Market>> {\n\t\tconst _customerId = (customerId as Customer).id || customerId as string\n\t\treturn this.resources.fetch<Market>({ type: 'markets' }, `customers/${_customerId}/jwt_markets`, params, options) as unknown as ListResponse<Market>\n\t}\n\n\tasync jwt_stock_locations(customerId: string | Customer, params?: QueryParamsList<StockLocation>, options?: ResourcesConfig): Promise<ListResponse<StockLocation>> {\n\t\tconst _customerId = (customerId as Customer).id || customerId as string\n\t\treturn this.resources.fetch<StockLocation>({ type: 'stock_locations' }, `customers/${_customerId}/jwt_stock_locations`, params, options) as unknown as ListResponse<StockLocation>\n\t}\n\n\tasync event_stores(customerId: string | Customer, params?: QueryParamsList<EventStore>, options?: ResourcesConfig): Promise<ListResponse<EventStore>> {\n\t\tconst _customerId = (customerId as Customer).id || customerId as string\n\t\treturn this.resources.fetch<EventStore>({ type: 'event_stores' }, `customers/${_customerId}/event_stores`, params, options) as unknown as ListResponse<EventStore>\n\t}\n\n\tasync _add_tags(id: string | Customer, triggerValue: string, params?: QueryParamsRetrieve<Customer>, options?: ResourcesConfig): Promise<Customer> {\n\t\treturn this.resources.update<CustomerUpdate, Customer>({ id: (typeof id === 'string')? id: id.id, type: Customers.TYPE, _add_tags: triggerValue }, params, options)\n\t}\n\n\tasync _remove_tags(id: string | Customer, triggerValue: string, params?: QueryParamsRetrieve<Customer>, options?: ResourcesConfig): Promise<Customer> {\n\t\treturn this.resources.update<CustomerUpdate, Customer>({ id: (typeof id === 'string')? id: id.id, type: Customers.TYPE, _remove_tags: triggerValue }, params, options)\n\t}\n\n\tasync _request_anonymization(id: string | Customer, params?: QueryParamsRetrieve<Customer>, options?: ResourcesConfig): Promise<Customer> {\n\t\treturn this.resources.update<CustomerUpdate, Customer>({ id: (typeof id === 'string')? id: id.id, type: Customers.TYPE, _request_anonymization: true }, params, options)\n\t}\n\n\tasync _cancel_anonymization(id: string | Customer, params?: QueryParamsRetrieve<Customer>, options?: ResourcesConfig): Promise<Customer> {\n\t\treturn this.resources.update<CustomerUpdate, Customer>({ id: (typeof id === 'string')? id: id.id, type: Customers.TYPE, _cancel_anonymization: true }, params, options)\n\t}\n\n\n\tisCustomer(resource: any): resource is Customer {\n\t\treturn resource.type && (resource.type === Customers.TYPE)\n\t}\n\n\n\trelationship(id: string | ResourceId | null): CustomerRel {\n\t\treturn super.relationshipOneToOne<CustomerRel>(id)\n\t}\n\n\trelationshipToMany(...ids: string[]): CustomerRel[] {\n\t\treturn super.relationshipOneToMany<CustomerRel>(...ids)\n\t}\n\n\n\ttype(): CustomerType {\n\t\treturn Customers.TYPE\n\t}\n\n}\n\n\nconst instance = new Customers()\nexport default instance\n\nexport type { Customers, Customer, CustomerCreate, CustomerUpdate, CustomerType }\n"]}
@@ -0,0 +1,53 @@
1
+ import { ApiResource } from './chunk-XKERR6OR.js';
2
+
3
+ // src/resources/price_volume_tiers.ts
4
+ var PriceVolumeTiers = class _PriceVolumeTiers extends ApiResource {
5
+ static TYPE = "price_volume_tiers";
6
+ async create(resource, params, options) {
7
+ return this.resources.create({ ...resource, type: _PriceVolumeTiers.TYPE }, params, options);
8
+ }
9
+ async update(resource, params, options) {
10
+ return this.resources.update({ ...resource, type: _PriceVolumeTiers.TYPE }, params, options);
11
+ }
12
+ async delete(id, options) {
13
+ await this.resources.delete(typeof id === "string" ? { id, type: _PriceVolumeTiers.TYPE } : id, options);
14
+ }
15
+ async price(priceVolumeTierId, params, options) {
16
+ const _priceVolumeTierId = priceVolumeTierId.id || priceVolumeTierId;
17
+ return this.resources.fetch({ type: "prices" }, `price_volume_tiers/${_priceVolumeTierId}/price`, params, options);
18
+ }
19
+ async attachments(priceVolumeTierId, params, options) {
20
+ const _priceVolumeTierId = priceVolumeTierId.id || priceVolumeTierId;
21
+ return this.resources.fetch({ type: "attachments" }, `price_volume_tiers/${_priceVolumeTierId}/attachments`, params, options);
22
+ }
23
+ async versions(priceVolumeTierId, params, options) {
24
+ const _priceVolumeTierId = priceVolumeTierId.id || priceVolumeTierId;
25
+ return this.resources.fetch({ type: "versions" }, `price_volume_tiers/${_priceVolumeTierId}/versions`, params, options);
26
+ }
27
+ async event_stores(priceVolumeTierId, params, options) {
28
+ const _priceVolumeTierId = priceVolumeTierId.id || priceVolumeTierId;
29
+ return this.resources.fetch({ type: "event_stores" }, `price_volume_tiers/${_priceVolumeTierId}/event_stores`, params, options);
30
+ }
31
+ async events(priceVolumeTierId, params, options) {
32
+ const _priceVolumeTierId = priceVolumeTierId.id || priceVolumeTierId;
33
+ return this.resources.fetch({ type: "events" }, `price_volume_tiers/${_priceVolumeTierId}/events`, params, options);
34
+ }
35
+ isPriceVolumeTier(resource) {
36
+ return resource.type && resource.type === _PriceVolumeTiers.TYPE;
37
+ }
38
+ relationship(id) {
39
+ return super.relationshipOneToOne(id);
40
+ }
41
+ relationshipToMany(...ids) {
42
+ return super.relationshipOneToMany(...ids);
43
+ }
44
+ type() {
45
+ return _PriceVolumeTiers.TYPE;
46
+ }
47
+ };
48
+ var instance = new PriceVolumeTiers();
49
+ var price_volume_tiers_default = instance;
50
+
51
+ export { price_volume_tiers_default };
52
+ //# sourceMappingURL=chunk-JDFDWBXQ.js.map
53
+ //# sourceMappingURL=chunk-JDFDWBXQ.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/resources/price_volume_tiers.ts"],"names":[],"mappings":";;;AAyGA,IAAM,gBAAA,GAAN,MAAM,iBAAA,SAAyB,WAAA,CAA6B;AAAA,EAE3D,OAAgB,IAAA,GAA4B,oBAAA;AAAA,EAE5C,MAAM,MAAA,CAAO,QAAA,EAAiC,MAAA,EAA+C,OAAA,EAAqD;AACjJ,IAAA,OAAO,IAAA,CAAK,SAAA,CAAU,MAAA,CAA+C,EAAE,GAAG,QAAA,EAAU,IAAA,EAAM,iBAAA,CAAiB,IAAA,EAAK,EAAG,MAAA,EAAQ,OAAO,CAAA;AAAA,EACnI;AAAA,EAEA,MAAM,MAAA,CAAO,QAAA,EAAiC,MAAA,EAA+C,OAAA,EAAqD;AACjJ,IAAA,OAAO,IAAA,CAAK,SAAA,CAAU,MAAA,CAA+C,EAAE,GAAG,QAAA,EAAU,IAAA,EAAM,iBAAA,CAAiB,IAAA,EAAK,EAAG,MAAA,EAAQ,OAAO,CAAA;AAAA,EACnI;AAAA,EAEA,MAAM,MAAA,CAAO,EAAA,EAA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AAsB,kBAAsC,EAAA,IAAM,iBAAA;AACxE,IAAA,OAAO,IAAA,CAAK,SAAA,CAAU,KAAA,CAAkB,EAAE,IAAA,EAAM,cAAA,EAAe,EAAG,CAAA,mBAAA,EAAsB,kBAAkB,CAAA,aAAA,CAAA,EAAiB,MAAA,EAAQ,OAAO,CAAA;AAAA,EAC3I;AAAA,EAEA,MAAM,MAAA,CAAO,iBAAA,EAA6C,MAAA,EAAiC,OAAA,EAAyD;AACnJ,IAAA,MAAM,kBAAA,GAAsB,kBAAsC,EAAA,IAAM,iBAAA;AACxE,IAAA,OAAO,IAAA,CAAK,SAAA,CAAU,KAAA,CAAa,EAAE,IAAA,EAAM,QAAA,EAAS,EAAG,CAAA,mBAAA,EAAsB,kBAAkB,CAAA,OAAA,CAAA,EAAW,MAAA,EAAQ,OAAO,CAAA;AAAA,EAC1H;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,0BAAA,GAAQ","file":"chunk-JDFDWBXQ.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 { Price, PriceType } from './prices'\nimport type { Attachment } from './attachments'\nimport type { Version } from './versions'\nimport type { EventStore } from './event_stores'\nimport type { Event } from './events'\n\n\ntype PriceVolumeTierType = 'price_volume_tiers'\ntype PriceVolumeTierRel = ResourceRel & { type: PriceVolumeTierType }\ntype PriceRel = ResourceRel & { type: PriceType }\n\n\nexport type PriceVolumeTierSort = Pick<PriceVolumeTier, 'id' | 'name' | 'up_to' | 'price_amount_cents'> & ResourceSort\n// export type PriceVolumeTierFilter = Pick<PriceVolumeTier, 'id' | 'name' | 'up_to' | 'price_amount_cents'> & ResourceFilter\n\n\ninterface PriceVolumeTier extends Resource {\n\t\n\treadonly type: PriceVolumeTierType\n\n\t/** \n\t * The price tier's name.\n\t * @example ```\"six pack\"```\n\t */\n\tname: string\n\t/** \n\t * The tier upper limit, expressed as the line item quantity. When 'null' it means infinity (useful to have an always matching tier).\n\t * @example ```15```\n\t */\n\tup_to?: number | null\n\t/** \n\t * The price of this price tier, in cents.\n\t * @example ```1000```\n\t */\n\tprice_amount_cents: number\n\t/** \n\t * The price of this price tier, float.\n\t * @example ```10```\n\t */\n\tprice_amount_float?: number | null\n\t/** \n\t * The price of this price tier, formatted.\n\t * @example ```\"€10,00\"```\n\t */\n\tformatted_price_amount?: string | null\n\n\tprice?: Price | null\n\tattachments?: Attachment[] | null\n\tversions?: Version[] | null\n\tevent_stores?: EventStore[] | null\n\tevents?: Event[] | null\n\n}\n\n\ninterface PriceVolumeTierCreate extends ResourceCreate {\n\t\n\t/** \n\t * The price tier's name.\n\t * @example ```\"six pack\"```\n\t */\n\tname: string\n\t/** \n\t * The tier upper limit, expressed as the line item quantity. When 'null' it means infinity (useful to have an always matching tier).\n\t * @example ```15```\n\t */\n\tup_to?: number | null\n\t/** \n\t * The price of this price tier, in cents.\n\t * @example ```1000```\n\t */\n\tprice_amount_cents: number\n\n\tprice: PriceRel\n\n}\n\n\ninterface PriceVolumeTierUpdate extends ResourceUpdate {\n\t\n\t/** \n\t * The price tier's name.\n\t * @example ```\"six pack\"```\n\t */\n\tname?: string | null\n\t/** \n\t * The tier upper limit, expressed as the line item quantity. When 'null' it means infinity (useful to have an always matching tier).\n\t * @example ```15```\n\t */\n\tup_to?: number | null\n\t/** \n\t * The price of this price tier, in cents.\n\t * @example ```1000```\n\t */\n\tprice_amount_cents?: number | null\n\n\tprice?: PriceRel | null\n\n}\n\n\nclass PriceVolumeTiers extends ApiResource<PriceVolumeTier> {\n\n\tstatic readonly TYPE: PriceVolumeTierType = 'price_volume_tiers' as const\n\n\tasync create(resource: PriceVolumeTierCreate, params?: QueryParamsRetrieve<PriceVolumeTier>, options?: ResourcesConfig): Promise<PriceVolumeTier> {\n\t\treturn this.resources.create<PriceVolumeTierCreate, PriceVolumeTier>({ ...resource, type: PriceVolumeTiers.TYPE }, params, options)\n\t}\n\n\tasync update(resource: PriceVolumeTierUpdate, params?: QueryParamsRetrieve<PriceVolumeTier>, options?: ResourcesConfig): Promise<PriceVolumeTier> {\n\t\treturn this.resources.update<PriceVolumeTierUpdate, PriceVolumeTier>({ ...resource, type: PriceVolumeTiers.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: PriceVolumeTiers.TYPE } : id, options)\n\t}\n\n\tasync price(priceVolumeTierId: string | PriceVolumeTier, params?: QueryParamsRetrieve<Price>, options?: ResourcesConfig): Promise<Price> {\n\t\tconst _priceVolumeTierId = (priceVolumeTierId as PriceVolumeTier).id || priceVolumeTierId as string\n\t\treturn this.resources.fetch<Price>({ type: 'prices' }, `price_volume_tiers/${_priceVolumeTierId}/price`, params, options) as unknown as Price\n\t}\n\n\tasync attachments(priceVolumeTierId: string | PriceVolumeTier, params?: QueryParamsList<Attachment>, options?: ResourcesConfig): Promise<ListResponse<Attachment>> {\n\t\tconst _priceVolumeTierId = (priceVolumeTierId as PriceVolumeTier).id || priceVolumeTierId as string\n\t\treturn this.resources.fetch<Attachment>({ type: 'attachments' }, `price_volume_tiers/${_priceVolumeTierId}/attachments`, params, options) as unknown as ListResponse<Attachment>\n\t}\n\n\tasync versions(priceVolumeTierId: string | PriceVolumeTier, params?: QueryParamsList<Version>, options?: ResourcesConfig): Promise<ListResponse<Version>> {\n\t\tconst _priceVolumeTierId = (priceVolumeTierId as PriceVolumeTier).id || priceVolumeTierId as string\n\t\treturn this.resources.fetch<Version>({ type: 'versions' }, `price_volume_tiers/${_priceVolumeTierId}/versions`, params, options) as unknown as ListResponse<Version>\n\t}\n\n\tasync event_stores(priceVolumeTierId: string | PriceVolumeTier, params?: QueryParamsList<EventStore>, options?: ResourcesConfig): Promise<ListResponse<EventStore>> {\n\t\tconst _priceVolumeTierId = (priceVolumeTierId as PriceVolumeTier).id || priceVolumeTierId as string\n\t\treturn this.resources.fetch<EventStore>({ type: 'event_stores' }, `price_volume_tiers/${_priceVolumeTierId}/event_stores`, params, options) as unknown as ListResponse<EventStore>\n\t}\n\n\tasync events(priceVolumeTierId: string | PriceVolumeTier, params?: QueryParamsList<Event>, options?: ResourcesConfig): Promise<ListResponse<Event>> {\n\t\tconst _priceVolumeTierId = (priceVolumeTierId as PriceVolumeTier).id || priceVolumeTierId as string\n\t\treturn this.resources.fetch<Event>({ type: 'events' }, `price_volume_tiers/${_priceVolumeTierId}/events`, params, options) as unknown as ListResponse<Event>\n\t}\n\n\n\tisPriceVolumeTier(resource: any): resource is PriceVolumeTier {\n\t\treturn resource.type && (resource.type === PriceVolumeTiers.TYPE)\n\t}\n\n\n\trelationship(id: string | ResourceId | null): PriceVolumeTierRel {\n\t\treturn super.relationshipOneToOne<PriceVolumeTierRel>(id)\n\t}\n\n\trelationshipToMany(...ids: string[]): PriceVolumeTierRel[] {\n\t\treturn super.relationshipOneToMany<PriceVolumeTierRel>(...ids)\n\t}\n\n\n\ttype(): PriceVolumeTierType {\n\t\treturn PriceVolumeTiers.TYPE\n\t}\n\n}\n\n\nconst instance = new PriceVolumeTiers()\nexport default instance\n\nexport type { PriceVolumeTiers, PriceVolumeTier, PriceVolumeTierCreate, PriceVolumeTierUpdate, PriceVolumeTierType }\n"]}
@@ -0,0 +1,59 @@
1
+ import { ApiResource } from './chunk-XKERR6OR.js';
2
+
3
+ // src/resources/line_item_options.ts
4
+ var LineItemOptions = class _LineItemOptions extends ApiResource {
5
+ static TYPE = "line_item_options";
6
+ async create(resource, params, options) {
7
+ return this.resources.create({ ...resource, type: _LineItemOptions.TYPE }, params, options);
8
+ }
9
+ async update(resource, params, options) {
10
+ return this.resources.update({ ...resource, type: _LineItemOptions.TYPE }, params, options);
11
+ }
12
+ async delete(id, options) {
13
+ await this.resources.delete(typeof id === "string" ? { id, type: _LineItemOptions.TYPE } : id, options);
14
+ }
15
+ async line_item(lineItemOptionId, params, options) {
16
+ const _lineItemOptionId = lineItemOptionId.id || lineItemOptionId;
17
+ return this.resources.fetch({ type: "line_items" }, `line_item_options/${_lineItemOptionId}/line_item`, params, options);
18
+ }
19
+ async sku_option(lineItemOptionId, params, options) {
20
+ const _lineItemOptionId = lineItemOptionId.id || lineItemOptionId;
21
+ return this.resources.fetch({ type: "sku_options" }, `line_item_options/${_lineItemOptionId}/sku_option`, params, options);
22
+ }
23
+ async events(lineItemOptionId, params, options) {
24
+ const _lineItemOptionId = lineItemOptionId.id || lineItemOptionId;
25
+ return this.resources.fetch({ type: "events" }, `line_item_options/${_lineItemOptionId}/events`, params, options);
26
+ }
27
+ async tags(lineItemOptionId, params, options) {
28
+ const _lineItemOptionId = lineItemOptionId.id || lineItemOptionId;
29
+ return this.resources.fetch({ type: "tags" }, `line_item_options/${_lineItemOptionId}/tags`, params, options);
30
+ }
31
+ async event_stores(lineItemOptionId, params, options) {
32
+ const _lineItemOptionId = lineItemOptionId.id || lineItemOptionId;
33
+ return this.resources.fetch({ type: "event_stores" }, `line_item_options/${_lineItemOptionId}/event_stores`, params, options);
34
+ }
35
+ async _add_tags(id, triggerValue, params, options) {
36
+ return this.resources.update({ id: typeof id === "string" ? id : id.id, type: _LineItemOptions.TYPE, _add_tags: triggerValue }, params, options);
37
+ }
38
+ async _remove_tags(id, triggerValue, params, options) {
39
+ return this.resources.update({ id: typeof id === "string" ? id : id.id, type: _LineItemOptions.TYPE, _remove_tags: triggerValue }, params, options);
40
+ }
41
+ isLineItemOption(resource) {
42
+ return resource.type && resource.type === _LineItemOptions.TYPE;
43
+ }
44
+ relationship(id) {
45
+ return super.relationshipOneToOne(id);
46
+ }
47
+ relationshipToMany(...ids) {
48
+ return super.relationshipOneToMany(...ids);
49
+ }
50
+ type() {
51
+ return _LineItemOptions.TYPE;
52
+ }
53
+ };
54
+ var instance = new LineItemOptions();
55
+ var line_item_options_default = instance;
56
+
57
+ export { line_item_options_default };
58
+ //# sourceMappingURL=chunk-JPKZBEAY.js.map
59
+ //# sourceMappingURL=chunk-JPKZBEAY.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/resources/line_item_options.ts"],"names":[],"mappings":";;;AAmKA,IAAM,eAAA,GAAN,MAAM,gBAAA,SAAwB,WAAA,CAA4B;AAAA,EAEzD,OAAgB,IAAA,GAA2B,mBAAA;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,EAChI;AAAA,EAEA,MAAM,MAAA,CAAO,EAAA,EAAyB,OAAA,EAA0C;AAC/E,IAAA,MAAM,IAAA,C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EAAmD;AAC/D,IAAA,OAAO,KAAA,CAAM,qBAAwC,EAAE,CAAA;AAAA,EACxD;AAAA,EAEA,sBAAsB,GAAA,EAAoC;AACzD,IAAA,OAAO,KAAA,CAAM,qBAAA,CAAyC,GAAG,GAAG,CAAA;AAAA,EAC7D;AAAA,EAGA,IAAA,GAA2B;AAC1B,IAAA,OAAO,gBAAA,CAAgB,IAAA;AAAA,EACxB;AAED,CAAA;AAGA,IAAM,QAAA,GAAW,IAAI,eAAA,EAAgB;AACrC,IAAO,yBAAA,GAAQ","file":"chunk-JPKZBEAY.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 { LineItem, LineItemType } from './line_items'\nimport type { SkuOption, SkuOptionType } from './sku_options'\nimport type { Event } from './events'\nimport type { Tag, TagType } from './tags'\nimport type { EventStore } from './event_stores'\n\n\ntype LineItemOptionType = 'line_item_options'\ntype LineItemOptionRel = ResourceRel & { type: LineItemOptionType }\ntype LineItemRel = ResourceRel & { type: LineItemType }\ntype SkuOptionRel = ResourceRel & { type: SkuOptionType }\ntype TagRel = ResourceRel & { type: TagType }\n\n\nexport type LineItemOptionSort = Pick<LineItemOption, 'id' | 'name' | 'quantity' | 'currency_code' | 'unit_amount_cents' | 'delay_hours'> & ResourceSort\n// export type LineItemOptionFilter = Pick<LineItemOption, 'id' | 'name' | 'quantity' | 'currency_code' | 'unit_amount_cents' | 'delay_hours' | 'delay_days'> & ResourceFilter\n\n\ninterface LineItemOption extends Resource {\n\t\n\treadonly type: LineItemOptionType\n\n\t/** \n\t * The name of the line item option. When blank, it gets populated with the name of the associated SKU option.\n\t * @example ```\"Embossing\"```\n\t */\n\tname?: string | null\n\t/** \n\t * The line item option's quantity.\n\t * @example ```2```\n\t */\n\tquantity: number\n\t/** \n\t * The international 3-letter currency code as defined by the ISO 4217 standard, automatically inherited from the order's market.\n\t * @example ```\"EUR\"```\n\t */\n\tcurrency_code?: string | null\n\t/** \n\t * The unit amount of the line item option, in cents. When you add a line item option to an order, this is automatically populated from associated SKU option's price. Cannot be passed by sales channels.\n\t * @example ```990```\n\t */\n\tunit_amount_cents?: number | null\n\t/** \n\t * The unit amount of the line item option, float. This can be useful to track the purchase on thrid party systems, e.g Google Analyitcs Enhanced Ecommerce.\n\t * @example ```9.9```\n\t */\n\tunit_amount_float?: number | null\n\t/** \n\t * The unit amount of the line item option, formatted. This can be useful to display the amount with currency in you views.\n\t * @example ```\"€9,90\"```\n\t */\n\tformatted_unit_amount?: string | null\n\t/** \n\t * The unit amount x quantity, in cents.\n\t * @example ```1880```\n\t */\n\ttotal_amount_cents?: number | null\n\t/** \n\t * The unit amount x quantity, float. This can be useful to track the purchase on thrid party systems, e.g Google Analyitcs Enhanced Ecommerce.\n\t * @example ```18.8```\n\t */\n\ttotal_amount_float: number\n\t/** \n\t * The unit amount x quantity, formatted. This can be useful to display the amount with currency in you views.\n\t * @example ```\"€18,80\"```\n\t */\n\tformatted_total_amount?: string | null\n\t/** \n\t * The shipping delay that the customer can expect when adding this option (hours). Inherited from the associated SKU option.\n\t * @example ```48```\n\t */\n\tdelay_hours?: number | null\n\t/** \n\t * The shipping delay that the customer can expect when adding this option (days, rounded).\n\t * @example ```2```\n\t */\n\tdelay_days?: number | null\n\t/** \n\t * Set of key-value pairs that represent the selected options.\n\t * @example ```{\"embossing_text\":\"Happy Birthday!\"}```\n\t */\n\toptions: Record<string, any>\n\n\tline_item?: LineItem | null\n\tsku_option?: SkuOption | null\n\tevents?: Event[] | null\n\ttags?: Tag[] | null\n\tevent_stores?: EventStore[] | null\n\n}\n\n\ninterface LineItemOptionCreate extends ResourceCreate {\n\t\n\t/** \n\t * The name of the line item option. When blank, it gets populated with the name of the associated SKU option.\n\t * @example ```\"Embossing\"```\n\t */\n\tname?: string | null\n\t/** \n\t * The line item option's quantity.\n\t * @example ```2```\n\t */\n\tquantity: number\n\t/** \n\t * The unit amount of the line item option, in cents. When you add a line item option to an order, this is automatically populated from associated SKU option's price. Cannot be passed by sales channels.\n\t * @example ```990```\n\t */\n\tunit_amount_cents?: number | null\n\t/** \n\t * Set of key-value pairs that represent the selected options.\n\t * @example ```{\"embossing_text\":\"Happy Birthday!\"}```\n\t */\n\toptions: Record<string, any>\n\n\tline_item: LineItemRel\n\tsku_option: SkuOptionRel\n\ttags?: TagRel[] | null\n\n}\n\n\ninterface LineItemOptionUpdate extends ResourceUpdate {\n\t\n\t/** \n\t * The name of the line item option. When blank, it gets populated with the name of the associated SKU option.\n\t * @example ```\"Embossing\"```\n\t */\n\tname?: string | null\n\t/** \n\t * The line item option's quantity.\n\t * @example ```2```\n\t */\n\tquantity?: number | null\n\t/** \n\t * The unit amount of the line item option, in cents. When you add a line item option to an order, this is automatically populated from associated SKU option's price. Cannot be passed by sales channels.\n\t * @example ```990```\n\t */\n\tunit_amount_cents?: number | null\n\t/** \n\t * Set of key-value pairs that represent the selected options.\n\t * @example ```{\"embossing_text\":\"Happy Birthday!\"}```\n\t */\n\toptions?: Record<string, any> | 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\tsku_option?: SkuOptionRel | null\n\ttags?: TagRel[] | null\n\n}\n\n\nclass LineItemOptions extends ApiResource<LineItemOption> {\n\n\tstatic readonly TYPE: LineItemOptionType = 'line_item_options' as const\n\n\tasync create(resource: LineItemOptionCreate, params?: QueryParamsRetrieve<LineItemOption>, options?: ResourcesConfig): Promise<LineItemOption> {\n\t\treturn this.resources.create<LineItemOptionCreate, LineItemOption>({ ...resource, type: LineItemOptions.TYPE }, params, options)\n\t}\n\n\tasync update(resource: LineItemOptionUpdate, params?: QueryParamsRetrieve<LineItemOption>, options?: ResourcesConfig): Promise<LineItemOption> {\n\t\treturn this.resources.update<LineItemOptionUpdate, LineItemOption>({ ...resource, type: LineItemOptions.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: LineItemOptions.TYPE } : id, options)\n\t}\n\n\tasync line_item(lineItemOptionId: string | LineItemOption, params?: QueryParamsRetrieve<LineItem>, options?: ResourcesConfig): Promise<LineItem> {\n\t\tconst _lineItemOptionId = (lineItemOptionId as LineItemOption).id || lineItemOptionId as string\n\t\treturn this.resources.fetch<LineItem>({ type: 'line_items' }, `line_item_options/${_lineItemOptionId}/line_item`, params, options) as unknown as LineItem\n\t}\n\n\tasync sku_option(lineItemOptionId: string | LineItemOption, params?: QueryParamsRetrieve<SkuOption>, options?: ResourcesConfig): Promise<SkuOption> {\n\t\tconst _lineItemOptionId = (lineItemOptionId as LineItemOption).id || lineItemOptionId as string\n\t\treturn this.resources.fetch<SkuOption>({ type: 'sku_options' }, `line_item_options/${_lineItemOptionId}/sku_option`, params, options) as unknown as SkuOption\n\t}\n\n\tasync events(lineItemOptionId: string | LineItemOption, params?: QueryParamsList<Event>, options?: ResourcesConfig): Promise<ListResponse<Event>> {\n\t\tconst _lineItemOptionId = (lineItemOptionId as LineItemOption).id || lineItemOptionId as string\n\t\treturn this.resources.fetch<Event>({ type: 'events' }, `line_item_options/${_lineItemOptionId}/events`, params, options) as unknown as ListResponse<Event>\n\t}\n\n\tasync tags(lineItemOptionId: string | LineItemOption, params?: QueryParamsList<Tag>, options?: ResourcesConfig): Promise<ListResponse<Tag>> {\n\t\tconst _lineItemOptionId = (lineItemOptionId as LineItemOption).id || lineItemOptionId as string\n\t\treturn this.resources.fetch<Tag>({ type: 'tags' }, `line_item_options/${_lineItemOptionId}/tags`, params, options) as unknown as ListResponse<Tag>\n\t}\n\n\tasync event_stores(lineItemOptionId: string | LineItemOption, params?: QueryParamsList<EventStore>, options?: ResourcesConfig): Promise<ListResponse<EventStore>> {\n\t\tconst _lineItemOptionId = (lineItemOptionId as LineItemOption).id || lineItemOptionId as string\n\t\treturn this.resources.fetch<EventStore>({ type: 'event_stores' }, `line_item_options/${_lineItemOptionId}/event_stores`, params, options) as unknown as ListResponse<EventStore>\n\t}\n\n\tasync _add_tags(id: string | LineItemOption, triggerValue: string, params?: QueryParamsRetrieve<LineItemOption>, options?: ResourcesConfig): Promise<LineItemOption> {\n\t\treturn this.resources.update<LineItemOptionUpdate, LineItemOption>({ id: (typeof id === 'string')? id: id.id, type: LineItemOptions.TYPE, _add_tags: triggerValue }, params, options)\n\t}\n\n\tasync _remove_tags(id: string | LineItemOption, triggerValue: string, params?: QueryParamsRetrieve<LineItemOption>, options?: ResourcesConfig): Promise<LineItemOption> {\n\t\treturn this.resources.update<LineItemOptionUpdate, LineItemOption>({ id: (typeof id === 'string')? id: id.id, type: LineItemOptions.TYPE, _remove_tags: triggerValue }, params, options)\n\t}\n\n\n\tisLineItemOption(resource: any): resource is LineItemOption {\n\t\treturn resource.type && (resource.type === LineItemOptions.TYPE)\n\t}\n\n\n\trelationship(id: string | ResourceId | null): LineItemOptionRel {\n\t\treturn super.relationshipOneToOne<LineItemOptionRel>(id)\n\t}\n\n\trelationshipToMany(...ids: string[]): LineItemOptionRel[] {\n\t\treturn super.relationshipOneToMany<LineItemOptionRel>(...ids)\n\t}\n\n\n\ttype(): LineItemOptionType {\n\t\treturn LineItemOptions.TYPE\n\t}\n\n}\n\n\nconst instance = new LineItemOptions()\nexport default instance\n\nexport type { LineItemOptions, LineItemOption, LineItemOptionCreate, LineItemOptionUpdate, LineItemOptionType }\n"]}