@commercelayer/sdk 7.12.0 → 7.12.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/api-BL9tZFHY.d.cts +18190 -0
- package/lib/api-DZQtGYwQ.d.ts +18190 -0
- package/lib/api.cjs +263 -263
- package/lib/api.d.cts +1 -1
- package/lib/api.d.ts +1 -1
- package/lib/api.js +132 -132
- package/lib/bundle.cjs +406 -270
- package/lib/bundle.cjs.map +1 -1
- package/lib/bundle.d.cts +3 -1
- package/lib/bundle.d.ts +3 -1
- package/lib/bundle.js +405 -269
- package/lib/bundle.js.map +1 -1
- package/lib/chunk-24NE5SNH.cjs +56 -0
- package/lib/chunk-24NE5SNH.cjs.map +1 -0
- package/lib/chunk-2BD5EQXE.js +51 -0
- package/lib/chunk-2BD5EQXE.js.map +1 -0
- package/lib/chunk-2CFM6BXC.cjs +95 -0
- package/lib/chunk-2CFM6BXC.cjs.map +1 -0
- package/lib/chunk-2DG24Y6O.cjs +51 -0
- package/lib/chunk-2DG24Y6O.cjs.map +1 -0
- package/lib/chunk-2DQPE4FR.cjs +51 -0
- package/lib/chunk-2DQPE4FR.cjs.map +1 -0
- package/lib/chunk-2GU7EWJC.js +44 -0
- package/lib/chunk-2GU7EWJC.js.map +1 -0
- package/lib/chunk-2ILQ3GLM.cjs +47 -0
- package/lib/chunk-2ILQ3GLM.cjs.map +1 -0
- package/lib/chunk-2IW23WZS.cjs +47 -0
- package/lib/chunk-2IW23WZS.cjs.map +1 -0
- package/lib/chunk-2NFQDGNK.cjs +47 -0
- package/lib/chunk-2NFQDGNK.cjs.map +1 -0
- package/lib/chunk-2S7PLJHX.js +32 -0
- package/lib/chunk-2S7PLJHX.js.map +1 -0
- package/lib/chunk-2TXRJQTU.cjs +44 -0
- package/lib/chunk-2TXRJQTU.cjs.map +1 -0
- package/lib/chunk-2WH7FZLF.js +37 -0
- package/lib/chunk-2WH7FZLF.js.map +1 -0
- package/lib/chunk-3D4FUEMG.js +49 -0
- package/lib/chunk-3D4FUEMG.js.map +1 -0
- package/lib/chunk-3JAP7TVC.js +51 -0
- package/lib/chunk-3JAP7TVC.js.map +1 -0
- package/lib/chunk-43NY4KEG.js +49 -0
- package/lib/chunk-43NY4KEG.js.map +1 -0
- package/lib/chunk-44LYFX4Z.js +69 -0
- package/lib/chunk-44LYFX4Z.js.map +1 -0
- package/lib/chunk-46GP7OXR.js +96 -0
- package/lib/chunk-46GP7OXR.js.map +1 -0
- package/lib/chunk-4DIICB2C.js +68 -0
- package/lib/chunk-4DIICB2C.js.map +1 -0
- package/lib/chunk-4GRYDY72.js +36 -0
- package/lib/chunk-4GRYDY72.js.map +1 -0
- package/lib/chunk-4HI7WNDF.cjs +55 -0
- package/lib/chunk-4HI7WNDF.cjs.map +1 -0
- package/lib/chunk-4POJYIPJ.js +95 -0
- package/lib/chunk-4POJYIPJ.js.map +1 -0
- package/lib/chunk-4QWRJHKI.cjs +47 -0
- package/lib/chunk-4QWRJHKI.cjs.map +1 -0
- package/lib/chunk-4UPCZNRS.cjs +34 -0
- package/lib/chunk-4UPCZNRS.cjs.map +1 -0
- package/lib/chunk-4XTBGJWW.js +52 -0
- package/lib/chunk-4XTBGJWW.js.map +1 -0
- package/lib/chunk-537HL2FZ.cjs +107 -0
- package/lib/chunk-537HL2FZ.cjs.map +1 -0
- package/lib/chunk-54PMSXTI.cjs +51 -0
- package/lib/chunk-54PMSXTI.cjs.map +1 -0
- package/lib/chunk-57GQ3X6P.js +91 -0
- package/lib/chunk-57GQ3X6P.js.map +1 -0
- package/lib/chunk-5ARYINZ2.cjs +50 -0
- package/lib/chunk-5ARYINZ2.cjs.map +1 -0
- package/lib/chunk-5EIKNK5S.js +66 -0
- package/lib/chunk-5EIKNK5S.js.map +1 -0
- package/lib/chunk-5J35GMM3.js +28 -0
- package/lib/chunk-5J35GMM3.js.map +1 -0
- package/lib/chunk-5Q2MYZ5B.js +59 -0
- package/lib/chunk-5Q2MYZ5B.js.map +1 -0
- package/lib/chunk-5TOKIUAB.js +89 -0
- package/lib/chunk-5TOKIUAB.js.map +1 -0
- package/lib/chunk-5UVYU4XN.cjs +51 -0
- package/lib/chunk-5UVYU4XN.cjs.map +1 -0
- package/lib/chunk-5XLKZYDF.cjs +30 -0
- package/lib/chunk-5XLKZYDF.cjs.map +1 -0
- package/lib/chunk-64WLJSJG.cjs +51 -0
- package/lib/chunk-64WLJSJG.cjs.map +1 -0
- package/lib/chunk-6BMCLZBQ.cjs +51 -0
- package/lib/chunk-6BMCLZBQ.cjs.map +1 -0
- package/lib/chunk-6BUVYKSP.cjs +49 -0
- package/lib/chunk-6BUVYKSP.cjs.map +1 -0
- package/lib/chunk-6CRXGM2S.cjs +50 -0
- package/lib/chunk-6CRXGM2S.cjs.map +1 -0
- package/lib/chunk-6RG3EDXD.js +49 -0
- package/lib/chunk-6RG3EDXD.js.map +1 -0
- package/lib/chunk-6TBUF3H2.cjs +68 -0
- package/lib/chunk-6TBUF3H2.cjs.map +1 -0
- package/lib/chunk-6TO7G4WZ.cjs +118 -0
- package/lib/chunk-6TO7G4WZ.cjs.map +1 -0
- package/lib/chunk-6VN4NEUS.js +52 -0
- package/lib/chunk-6VN4NEUS.js.map +1 -0
- package/lib/chunk-6X3SERAO.cjs +39 -0
- package/lib/chunk-6X3SERAO.cjs.map +1 -0
- package/lib/chunk-6XX3G5GF.cjs +61 -0
- package/lib/chunk-6XX3G5GF.cjs.map +1 -0
- package/lib/chunk-73PTWYSG.js +48 -0
- package/lib/chunk-73PTWYSG.js.map +1 -0
- package/lib/chunk-73QKCTFL.cjs +95 -0
- package/lib/chunk-73QKCTFL.cjs.map +1 -0
- package/lib/chunk-74OFKAKF.js +54 -0
- package/lib/chunk-74OFKAKF.js.map +1 -0
- package/lib/chunk-7C2RQMWG.cjs +56 -0
- package/lib/chunk-7C2RQMWG.cjs.map +1 -0
- package/lib/chunk-7CG3LRH3.js +32 -0
- package/lib/chunk-7CG3LRH3.js.map +1 -0
- package/lib/chunk-7OHJVGWS.js +93 -0
- package/lib/chunk-7OHJVGWS.js.map +1 -0
- package/lib/chunk-7SB7OFM7.js +41 -0
- package/lib/chunk-7SB7OFM7.js.map +1 -0
- package/lib/chunk-7W4HDA22.js +61 -0
- package/lib/chunk-7W4HDA22.js.map +1 -0
- package/lib/chunk-7YTV5CFU.js +113 -0
- package/lib/chunk-7YTV5CFU.js.map +1 -0
- package/lib/chunk-A5P5CV26.js +99 -0
- package/lib/chunk-A5P5CV26.js.map +1 -0
- package/lib/chunk-ADBL6GHI.js +287 -0
- package/lib/chunk-ADBL6GHI.js.map +1 -0
- package/lib/chunk-AFCHVA7J.cjs +51 -0
- package/lib/chunk-AFCHVA7J.cjs.map +1 -0
- package/lib/chunk-ALWCRWTW.js +41 -0
- package/lib/chunk-ALWCRWTW.js.map +1 -0
- package/lib/chunk-ATUQUSZW.cjs +42 -0
- package/lib/chunk-ATUQUSZW.cjs.map +1 -0
- package/lib/chunk-B3C3H44A.cjs +47 -0
- package/lib/chunk-B3C3H44A.cjs.map +1 -0
- package/lib/chunk-B66V3CZY.cjs +56 -0
- package/lib/chunk-B66V3CZY.cjs.map +1 -0
- package/lib/chunk-BA5RFQPZ.cjs +95 -0
- package/lib/chunk-BA5RFQPZ.cjs.map +1 -0
- package/lib/chunk-BAHXWPSG.cjs +61 -0
- package/lib/chunk-BAHXWPSG.cjs.map +1 -0
- package/lib/chunk-BDXU3PHK.cjs +51 -0
- package/lib/chunk-BDXU3PHK.cjs.map +1 -0
- package/lib/chunk-BFGICGFK.js +73 -0
- package/lib/chunk-BFGICGFK.js.map +1 -0
- package/lib/chunk-BKHI7LSW.js +51 -0
- package/lib/chunk-BKHI7LSW.js.map +1 -0
- package/lib/chunk-BMMDE6ES.cjs +47 -0
- package/lib/chunk-BMMDE6ES.cjs.map +1 -0
- package/lib/chunk-BNRBLHHS.js +37 -0
- package/lib/chunk-BNRBLHHS.js.map +1 -0
- package/lib/chunk-BQIGX57O.js +48 -0
- package/lib/chunk-BQIGX57O.js.map +1 -0
- package/lib/chunk-BVJSDDPT.js +68 -0
- package/lib/chunk-BVJSDDPT.js.map +1 -0
- package/lib/chunk-BW4KC4JJ.js +48 -0
- package/lib/chunk-BW4KC4JJ.js.map +1 -0
- package/lib/chunk-C5TXM4TK.js +73 -0
- package/lib/chunk-C5TXM4TK.js.map +1 -0
- package/lib/chunk-C6RXW4YY.cjs +89 -0
- package/lib/chunk-C6RXW4YY.cjs.map +1 -0
- package/lib/chunk-C7K53SPD.js +24 -0
- package/lib/chunk-C7K53SPD.js.map +1 -0
- package/lib/chunk-CEZMXGF2.js +51 -0
- package/lib/chunk-CEZMXGF2.js.map +1 -0
- package/lib/chunk-CGJSEELZ.js +37 -0
- package/lib/chunk-CGJSEELZ.js.map +1 -0
- package/lib/chunk-CHD7QDKS.js +59 -0
- package/lib/chunk-CHD7QDKS.js.map +1 -0
- package/lib/chunk-CIKMIKZ6.js +42 -0
- package/lib/chunk-CIKMIKZ6.js.map +1 -0
- package/lib/chunk-CN4ZAHGA.js +40 -0
- package/lib/chunk-CN4ZAHGA.js.map +1 -0
- package/lib/chunk-CNDVEHRU.cjs +56 -0
- package/lib/chunk-CNDVEHRU.cjs.map +1 -0
- package/lib/chunk-COHQZCSV.js +54 -0
- package/lib/chunk-COHQZCSV.js.map +1 -0
- package/lib/chunk-CVEC2QZK.cjs +55 -0
- package/lib/chunk-CVEC2QZK.cjs.map +1 -0
- package/lib/chunk-CXIIIZIG.js +49 -0
- package/lib/chunk-CXIIIZIG.js.map +1 -0
- package/lib/chunk-CYBDCJQP.cjs +47 -0
- package/lib/chunk-CYBDCJQP.cjs.map +1 -0
- package/lib/chunk-D6LGIBLP.js +65 -0
- package/lib/chunk-D6LGIBLP.js.map +1 -0
- package/lib/chunk-D7CJRB3O.cjs +42 -0
- package/lib/chunk-D7CJRB3O.cjs.map +1 -0
- package/lib/chunk-DBZRDDQC.js +51 -0
- package/lib/chunk-DBZRDDQC.js.map +1 -0
- package/lib/chunk-DGN6CMSF.cjs +54 -0
- package/lib/chunk-DGN6CMSF.cjs.map +1 -0
- package/lib/chunk-DMYSSEB4.js +36 -0
- package/lib/chunk-DMYSSEB4.js.map +1 -0
- package/lib/chunk-DRHA2WTQ.js +67 -0
- package/lib/chunk-DRHA2WTQ.js.map +1 -0
- package/lib/chunk-DU7BKVA6.js +37 -0
- package/lib/chunk-DU7BKVA6.js.map +1 -0
- package/lib/chunk-DUQUDIXD.js +54 -0
- package/lib/chunk-DUQUDIXD.js.map +1 -0
- package/lib/chunk-E23O3HTZ.js +45 -0
- package/lib/chunk-E23O3HTZ.js.map +1 -0
- package/lib/chunk-E347ZWT4.js +49 -0
- package/lib/chunk-E347ZWT4.js.map +1 -0
- package/lib/chunk-EBBRMPEP.js +59 -0
- package/lib/chunk-EBBRMPEP.js.map +1 -0
- package/lib/chunk-EURZY6LF.js +45 -0
- package/lib/chunk-EURZY6LF.js.map +1 -0
- package/lib/chunk-EV2V5IMS.cjs +71 -0
- package/lib/chunk-EV2V5IMS.cjs.map +1 -0
- package/lib/chunk-EVZXYAFX.cjs +47 -0
- package/lib/chunk-EVZXYAFX.cjs.map +1 -0
- package/lib/chunk-EWGNTRWZ.cjs +51 -0
- package/lib/chunk-EWGNTRWZ.cjs.map +1 -0
- package/lib/chunk-EWPZW23I.cjs +50 -0
- package/lib/chunk-EWPZW23I.cjs.map +1 -0
- package/lib/chunk-EZBICJIP.cjs +30 -0
- package/lib/chunk-EZBICJIP.cjs.map +1 -0
- package/lib/chunk-FD73BWXU.js +93 -0
- package/lib/chunk-FD73BWXU.js.map +1 -0
- package/lib/chunk-FDG63RME.js +49 -0
- package/lib/chunk-FDG63RME.js.map +1 -0
- package/lib/chunk-FTEO3U3B.js +105 -0
- package/lib/chunk-FTEO3U3B.js.map +1 -0
- package/lib/chunk-FYD5UJFR.js +87 -0
- package/lib/chunk-FYD5UJFR.js.map +1 -0
- package/lib/chunk-FZQEBN4H.js +124 -0
- package/lib/chunk-FZQEBN4H.js.map +1 -0
- package/lib/chunk-GBFK7JL7.cjs +156 -0
- package/lib/chunk-GBFK7JL7.cjs.map +1 -0
- package/lib/chunk-GDB54Z5E.cjs +47 -0
- package/lib/chunk-GDB54Z5E.cjs.map +1 -0
- package/lib/chunk-GDMYCRU2.cjs +56 -0
- package/lib/chunk-GDMYCRU2.cjs.map +1 -0
- package/lib/chunk-GEYB6J6Q.cjs +51 -0
- package/lib/chunk-GEYB6J6Q.cjs.map +1 -0
- package/lib/chunk-GGOX5RVE.cjs +63 -0
- package/lib/chunk-GGOX5RVE.cjs.map +1 -0
- package/lib/chunk-GHXAIVNL.cjs +50 -0
- package/lib/chunk-GHXAIVNL.cjs.map +1 -0
- package/lib/chunk-GM6TOVU3.cjs +63 -0
- package/lib/chunk-GM6TOVU3.cjs.map +1 -0
- package/lib/chunk-GQ2VOYQW.cjs +47 -0
- package/lib/chunk-GQ2VOYQW.cjs.map +1 -0
- package/lib/chunk-GQSHLDFM.js +41 -0
- package/lib/chunk-GQSHLDFM.js.map +1 -0
- package/lib/chunk-GXS65DGD.js +93 -0
- package/lib/chunk-GXS65DGD.js.map +1 -0
- package/lib/chunk-HA2JISXS.cjs +56 -0
- package/lib/chunk-HA2JISXS.cjs.map +1 -0
- package/lib/chunk-HKE5VQN6.js +47 -0
- package/lib/chunk-HKE5VQN6.js.map +1 -0
- package/lib/chunk-HVB7P2BK.cjs +62 -0
- package/lib/chunk-HVB7P2BK.cjs.map +1 -0
- package/lib/chunk-HYJ7Z6D7.js +40 -0
- package/lib/chunk-HYJ7Z6D7.js.map +1 -0
- package/lib/chunk-IA3XLO6M.js +54 -0
- package/lib/chunk-IA3XLO6M.js.map +1 -0
- package/lib/chunk-ICFDBQ5X.cjs +75 -0
- package/lib/chunk-ICFDBQ5X.cjs.map +1 -0
- package/lib/chunk-IKTZENHC.js +53 -0
- package/lib/chunk-IKTZENHC.js.map +1 -0
- package/lib/chunk-ILX5NRZ6.cjs +55 -0
- package/lib/chunk-ILX5NRZ6.cjs.map +1 -0
- package/lib/chunk-ISUCEW36.cjs +39 -0
- package/lib/chunk-ISUCEW36.cjs.map +1 -0
- package/lib/chunk-IW6D2ATB.cjs +47 -0
- package/lib/chunk-IW6D2ATB.cjs.map +1 -0
- package/lib/chunk-J3EPWRQF.js +54 -0
- package/lib/chunk-J3EPWRQF.js.map +1 -0
- package/lib/chunk-JF7ZZKBL.cjs +70 -0
- package/lib/chunk-JF7ZZKBL.cjs.map +1 -0
- package/lib/chunk-JMINY25P.js +53 -0
- package/lib/chunk-JMINY25P.js.map +1 -0
- package/lib/chunk-JQWRLR32.js +37 -0
- package/lib/chunk-JQWRLR32.js.map +1 -0
- package/lib/chunk-JWSRNFYM.js +50 -0
- package/lib/chunk-JWSRNFYM.js.map +1 -0
- package/lib/chunk-JWZ3H57F.js +40 -0
- package/lib/chunk-JWZ3H57F.js.map +1 -0
- package/lib/chunk-JZ3NGNOU.cjs +75 -0
- package/lib/chunk-JZ3NGNOU.cjs.map +1 -0
- package/lib/chunk-K45H4QRJ.cjs +91 -0
- package/lib/chunk-K45H4QRJ.cjs.map +1 -0
- package/lib/chunk-KAEKTLB6.cjs +43 -0
- package/lib/chunk-KAEKTLB6.cjs.map +1 -0
- package/lib/chunk-KIYGE6PC.cjs +47 -0
- package/lib/chunk-KIYGE6PC.cjs.map +1 -0
- package/lib/chunk-KPX3O2BQ.cjs +34 -0
- package/lib/chunk-KPX3O2BQ.cjs.map +1 -0
- package/lib/chunk-KQ62ZCOB.js +45 -0
- package/lib/chunk-KQ62ZCOB.js.map +1 -0
- package/lib/chunk-KRINYHI4.js +48 -0
- package/lib/chunk-KRINYHI4.js.map +1 -0
- package/lib/chunk-KW6OBE6A.js +93 -0
- package/lib/chunk-KW6OBE6A.js.map +1 -0
- package/lib/chunk-KZHDWO2M.js +54 -0
- package/lib/chunk-KZHDWO2M.js.map +1 -0
- package/lib/chunk-L36P6TCW.cjs +61 -0
- package/lib/chunk-L36P6TCW.cjs.map +1 -0
- package/lib/chunk-L7UYIV5U.js +52 -0
- package/lib/chunk-L7UYIV5U.js.map +1 -0
- package/lib/chunk-LH3NVT5R.cjs +67 -0
- package/lib/chunk-LH3NVT5R.cjs.map +1 -0
- package/lib/chunk-LLV57FCL.cjs +95 -0
- package/lib/chunk-LLV57FCL.cjs.map +1 -0
- package/lib/chunk-LMDYSL5J.cjs +50 -0
- package/lib/chunk-LMDYSL5J.cjs.map +1 -0
- package/lib/chunk-LU7NF3DQ.cjs +39 -0
- package/lib/chunk-LU7NF3DQ.cjs.map +1 -0
- package/lib/chunk-MG6ISTV3.js +60 -0
- package/lib/chunk-MG6ISTV3.js.map +1 -0
- package/lib/chunk-MGHVUU2R.cjs +49 -0
- package/lib/chunk-MGHVUU2R.cjs.map +1 -0
- package/lib/chunk-MH54XBSX.cjs +29 -0
- package/lib/chunk-MH54XBSX.cjs.map +1 -0
- package/lib/chunk-MLED3JD2.js +45 -0
- package/lib/chunk-MLED3JD2.js.map +1 -0
- package/lib/chunk-MPGYQKVP.cjs +56 -0
- package/lib/chunk-MPGYQKVP.cjs.map +1 -0
- package/lib/chunk-MPYP5HNA.js +45 -0
- package/lib/chunk-MPYP5HNA.js.map +1 -0
- package/lib/chunk-MSAAHT3W.js +28 -0
- package/lib/chunk-MSAAHT3W.js.map +1 -0
- package/lib/chunk-MV3DXOEE.cjs +47 -0
- package/lib/chunk-MV3DXOEE.cjs.map +1 -0
- package/lib/chunk-MYXLBPGW.js +31 -0
- package/lib/chunk-MYXLBPGW.js.map +1 -0
- package/lib/chunk-N26J535W.js +53 -0
- package/lib/chunk-N26J535W.js.map +1 -0
- package/lib/chunk-NEPV2QT6.cjs +42 -0
- package/lib/chunk-NEPV2QT6.cjs.map +1 -0
- package/lib/chunk-NG7M2SWO.cjs +101 -0
- package/lib/chunk-NG7M2SWO.cjs.map +1 -0
- package/lib/chunk-NJ7VTZ45.js +40 -0
- package/lib/chunk-NJ7VTZ45.js.map +1 -0
- package/lib/chunk-NJZ5526I.cjs +98 -0
- package/lib/chunk-NJZ5526I.cjs.map +1 -0
- package/lib/chunk-NQ2WJSTK.js +45 -0
- package/lib/chunk-NQ2WJSTK.js.map +1 -0
- package/lib/chunk-NUJMM4IE.cjs +46 -0
- package/lib/chunk-NUJMM4IE.cjs.map +1 -0
- package/lib/chunk-NZV7T6OS.cjs +42 -0
- package/lib/chunk-NZV7T6OS.cjs.map +1 -0
- package/lib/chunk-O5LELQ3H.cjs +55 -0
- package/lib/chunk-O5LELQ3H.cjs.map +1 -0
- package/lib/chunk-O5ZCTFGS.cjs +57 -0
- package/lib/chunk-O5ZCTFGS.cjs.map +1 -0
- package/lib/chunk-OCHJ6H5L.js +59 -0
- package/lib/chunk-OCHJ6H5L.js.map +1 -0
- package/lib/chunk-OEOPKYYH.cjs +77 -0
- package/lib/chunk-OEOPKYYH.cjs.map +1 -0
- package/lib/chunk-OOWF4KZW.js +49 -0
- package/lib/chunk-OOWF4KZW.js.map +1 -0
- package/lib/chunk-OQ6XCVXY.js +41 -0
- package/lib/chunk-OQ6XCVXY.js.map +1 -0
- package/lib/chunk-OQJSTZNL.cjs +61 -0
- package/lib/chunk-OQJSTZNL.cjs.map +1 -0
- package/lib/chunk-ORUCCVMU.js +45 -0
- package/lib/chunk-ORUCCVMU.js.map +1 -0
- package/lib/chunk-OUXO6SLS.cjs +49 -0
- package/lib/chunk-OUXO6SLS.cjs.map +1 -0
- package/lib/chunk-OY6MZVBQ.cjs +38 -0
- package/lib/chunk-OY6MZVBQ.cjs.map +1 -0
- package/lib/chunk-PAQOOCG3.cjs +126 -0
- package/lib/chunk-PAQOOCG3.cjs.map +1 -0
- package/lib/chunk-PASUJC7O.cjs +51 -0
- package/lib/chunk-PASUJC7O.cjs.map +1 -0
- package/lib/chunk-PDGVNV5M.js +154 -0
- package/lib/chunk-PDGVNV5M.js.map +1 -0
- package/lib/chunk-PECN2STI.cjs +47 -0
- package/lib/chunk-PECN2STI.cjs.map +1 -0
- package/lib/chunk-PN24CPTP.js +40 -0
- package/lib/chunk-PN24CPTP.js.map +1 -0
- package/lib/chunk-PSSGYICM.cjs +47 -0
- package/lib/chunk-PSSGYICM.cjs.map +1 -0
- package/lib/chunk-PWISCPLC.cjs +55 -0
- package/lib/chunk-PWISCPLC.cjs.map +1 -0
- package/lib/chunk-Q35LAO5H.cjs +61 -0
- package/lib/chunk-Q35LAO5H.cjs.map +1 -0
- package/lib/chunk-Q5LEAU3I.js +44 -0
- package/lib/chunk-Q5LEAU3I.js.map +1 -0
- package/lib/chunk-QDU2H45U.cjs +53 -0
- package/lib/chunk-QDU2H45U.cjs.map +1 -0
- package/lib/chunk-QHDNUJT6.js +45 -0
- package/lib/chunk-QHDNUJT6.js.map +1 -0
- package/lib/chunk-QHLRNRP7.js +54 -0
- package/lib/chunk-QHLRNRP7.js.map +1 -0
- package/lib/chunk-QIAXU2SJ.cjs +54 -0
- package/lib/chunk-QIAXU2SJ.cjs.map +1 -0
- package/lib/chunk-QLHBMADF.cjs +52 -0
- package/lib/chunk-QLHBMADF.cjs.map +1 -0
- package/lib/chunk-QLLPSD32.cjs +51 -0
- package/lib/chunk-QLLPSD32.cjs.map +1 -0
- package/lib/chunk-QLW5QVVW.cjs +70 -0
- package/lib/chunk-QLW5QVVW.cjs.map +1 -0
- package/lib/chunk-QNJQIJKL.cjs +98 -0
- package/lib/chunk-QNJQIJKL.cjs.map +1 -0
- package/lib/chunk-QPFAATIQ.js +49 -0
- package/lib/chunk-QPFAATIQ.js.map +1 -0
- package/lib/chunk-QRRPEYJZ.cjs +26 -0
- package/lib/chunk-QRRPEYJZ.cjs.map +1 -0
- package/lib/chunk-QYNCYKXA.cjs +51 -0
- package/lib/chunk-QYNCYKXA.cjs.map +1 -0
- package/lib/chunk-QYQLV3UF.js +57 -0
- package/lib/chunk-QYQLV3UF.js.map +1 -0
- package/lib/chunk-R5GWVFCY.cjs +95 -0
- package/lib/chunk-R5GWVFCY.cjs.map +1 -0
- package/lib/chunk-R5RKU5ET.cjs +68 -0
- package/lib/chunk-R5RKU5ET.cjs.map +1 -0
- package/lib/chunk-RAVVFNM3.cjs +42 -0
- package/lib/chunk-RAVVFNM3.cjs.map +1 -0
- package/lib/chunk-RDACMJVS.js +53 -0
- package/lib/chunk-RDACMJVS.js.map +1 -0
- package/lib/chunk-RJIKKTQZ.cjs +39 -0
- package/lib/chunk-RJIKKTQZ.cjs.map +1 -0
- package/lib/chunk-ROYOEYGX.cjs +33 -0
- package/lib/chunk-ROYOEYGX.cjs.map +1 -0
- package/lib/chunk-RSYBOKNE.js +45 -0
- package/lib/chunk-RSYBOKNE.js.map +1 -0
- package/lib/chunk-RYPA7HYS.js +93 -0
- package/lib/chunk-RYPA7HYS.js.map +1 -0
- package/lib/chunk-S2SYYYG2.cjs +69 -0
- package/lib/chunk-S2SYYYG2.cjs.map +1 -0
- package/lib/chunk-S6XPCUJW.js +75 -0
- package/lib/chunk-S6XPCUJW.js.map +1 -0
- package/lib/chunk-SFYB5GXI.js +59 -0
- package/lib/chunk-SFYB5GXI.js.map +1 -0
- package/lib/chunk-SSQYQJV3.js +66 -0
- package/lib/chunk-SSQYQJV3.js.map +1 -0
- package/lib/chunk-SUUOHRSG.js +61 -0
- package/lib/chunk-SUUOHRSG.js.map +1 -0
- package/lib/chunk-SW5N35FH.cjs +43 -0
- package/lib/chunk-SW5N35FH.cjs.map +1 -0
- package/lib/chunk-T26776MO.cjs +105 -0
- package/lib/chunk-T26776MO.cjs.map +1 -0
- package/lib/chunk-T2OKZDN4.js +49 -0
- package/lib/chunk-T2OKZDN4.js.map +1 -0
- package/lib/chunk-T5G655QT.js +27 -0
- package/lib/chunk-T5G655QT.js.map +1 -0
- package/lib/chunk-TE67ODLT.js +47 -0
- package/lib/chunk-TE67ODLT.js.map +1 -0
- package/lib/chunk-TGFRUTII.js +45 -0
- package/lib/chunk-TGFRUTII.js.map +1 -0
- package/lib/chunk-TM3WY5JX.js +49 -0
- package/lib/chunk-TM3WY5JX.js.map +1 -0
- package/lib/chunk-TOIJVWRZ.cjs +285 -0
- package/lib/chunk-TOIJVWRZ.cjs.map +1 -0
- package/lib/chunk-TUCNQX6Y.js +49 -0
- package/lib/chunk-TUCNQX6Y.js.map +1 -0
- package/lib/chunk-U5RLBTS6.js +49 -0
- package/lib/chunk-U5RLBTS6.js.map +1 -0
- package/lib/chunk-UBFZSSUZ.js +50 -0
- package/lib/chunk-UBFZSSUZ.js.map +1 -0
- package/lib/chunk-UD2ZHF5I.js +49 -0
- package/lib/chunk-UD2ZHF5I.js.map +1 -0
- package/lib/chunk-UMID2D26.js +45 -0
- package/lib/chunk-UMID2D26.js.map +1 -0
- package/lib/chunk-UUL3UDIC.js +45 -0
- package/lib/chunk-UUL3UDIC.js.map +1 -0
- package/lib/chunk-V4PP6IUM.cjs +42 -0
- package/lib/chunk-V4PP6IUM.cjs.map +1 -0
- package/lib/chunk-VH65L3FZ.cjs +43 -0
- package/lib/chunk-VH65L3FZ.cjs.map +1 -0
- package/lib/chunk-VIPTK4KE.js +40 -0
- package/lib/chunk-VIPTK4KE.js.map +1 -0
- package/lib/chunk-VS7D74RY.cjs +54 -0
- package/lib/chunk-VS7D74RY.cjs.map +1 -0
- package/lib/chunk-VWZ2H35A.cjs +53 -0
- package/lib/chunk-VWZ2H35A.cjs.map +1 -0
- package/lib/chunk-W2ZODWRB.cjs +47 -0
- package/lib/chunk-W2ZODWRB.cjs.map +1 -0
- package/lib/chunk-W534ZCYS.cjs +43 -0
- package/lib/chunk-W534ZCYS.cjs.map +1 -0
- package/lib/chunk-WAQYCXXA.cjs +55 -0
- package/lib/chunk-WAQYCXXA.cjs.map +1 -0
- package/lib/chunk-WGKGDMJG.js +54 -0
- package/lib/chunk-WGKGDMJG.js.map +1 -0
- package/lib/chunk-WKD345DZ.cjs +52 -0
- package/lib/chunk-WKD345DZ.cjs.map +1 -0
- package/lib/chunk-WM3MOTCN.js +45 -0
- package/lib/chunk-WM3MOTCN.js.map +1 -0
- package/lib/chunk-WQKG5HJS.js +45 -0
- package/lib/chunk-WQKG5HJS.js.map +1 -0
- package/lib/chunk-WSNUMIIY.cjs +56 -0
- package/lib/chunk-WSNUMIIY.cjs.map +1 -0
- package/lib/chunk-WYULLF7A.cjs +53 -0
- package/lib/chunk-WYULLF7A.cjs.map +1 -0
- package/lib/chunk-X2BR77L2.js +283 -0
- package/lib/chunk-X2BR77L2.js.map +1 -0
- package/lib/chunk-X46PVG74.js +45 -0
- package/lib/chunk-X46PVG74.js.map +1 -0
- package/lib/chunk-X5OWNCC4.cjs +38 -0
- package/lib/chunk-X5OWNCC4.cjs.map +1 -0
- package/lib/chunk-X6SULYQB.cjs +38 -0
- package/lib/chunk-X6SULYQB.cjs.map +1 -0
- package/lib/chunk-X7AKN4S6.js +48 -0
- package/lib/chunk-X7AKN4S6.js.map +1 -0
- package/lib/chunk-XBBVFGOJ.js +45 -0
- package/lib/chunk-XBBVFGOJ.js.map +1 -0
- package/lib/chunk-XC67WDBZ.cjs +39 -0
- package/lib/chunk-XC67WDBZ.cjs.map +1 -0
- package/lib/chunk-XCFDOKIM.cjs +47 -0
- package/lib/chunk-XCFDOKIM.cjs.map +1 -0
- package/lib/chunk-XKDMHHU6.js +53 -0
- package/lib/chunk-XKDMHHU6.js.map +1 -0
- package/lib/chunk-XPE3CHFX.js +40 -0
- package/lib/chunk-XPE3CHFX.js.map +1 -0
- package/lib/chunk-XRYS36MH.js +45 -0
- package/lib/chunk-XRYS36MH.js.map +1 -0
- package/lib/chunk-XXL66GOT.js +103 -0
- package/lib/chunk-XXL66GOT.js.map +1 -0
- package/lib/chunk-XYFVAE5Q.js +37 -0
- package/lib/chunk-XYFVAE5Q.js.map +1 -0
- package/lib/chunk-XYPIGF36.cjs +295 -0
- package/lib/chunk-XYPIGF36.cjs.map +1 -0
- package/lib/chunk-Y262ZN7R.cjs +42 -0
- package/lib/chunk-Y262ZN7R.cjs.map +1 -0
- package/lib/chunk-YBRIQ52U.cjs +97 -0
- package/lib/chunk-YBRIQ52U.cjs.map +1 -0
- package/lib/chunk-YGGJGJU7.js +55 -0
- package/lib/chunk-YGGJGJU7.js.map +1 -0
- package/lib/chunk-YNKM6H3D.cjs +59 -0
- package/lib/chunk-YNKM6H3D.cjs.map +1 -0
- package/lib/chunk-YPX3YJ4L.cjs +93 -0
- package/lib/chunk-YPX3YJ4L.cjs.map +1 -0
- package/lib/chunk-YXMPQHE4.cjs +57 -0
- package/lib/chunk-YXMPQHE4.cjs.map +1 -0
- package/lib/chunk-Z3XTAUYM.js +96 -0
- package/lib/chunk-Z3XTAUYM.js.map +1 -0
- package/lib/chunk-Z4CUVPMW.js +47 -0
- package/lib/chunk-Z4CUVPMW.js.map +1 -0
- package/lib/chunk-Z4PD2SXY.js +55 -0
- package/lib/chunk-Z4PD2SXY.js.map +1 -0
- package/lib/chunk-ZBIJQ4CN.js +53 -0
- package/lib/chunk-ZBIJQ4CN.js.map +1 -0
- package/lib/chunk-ZCMD5U3M.js +36 -0
- package/lib/chunk-ZCMD5U3M.js.map +1 -0
- package/lib/chunk-ZF5RJEW7.cjs +39 -0
- package/lib/chunk-ZF5RJEW7.cjs.map +1 -0
- package/lib/chunk-ZGKZWE7U.cjs +53 -0
- package/lib/chunk-ZGKZWE7U.cjs.map +1 -0
- package/lib/chunk-ZHCI2QRX.cjs +46 -0
- package/lib/chunk-ZHCI2QRX.cjs.map +1 -0
- package/lib/chunk-ZMZ73HFP.cjs +53 -0
- package/lib/chunk-ZMZ73HFP.cjs.map +1 -0
- package/lib/chunk-ZT5VCXSB.js +45 -0
- package/lib/chunk-ZT5VCXSB.js.map +1 -0
- package/lib/chunk-ZTSVFTKP.cjs +51 -0
- package/lib/chunk-ZTSVFTKP.cjs.map +1 -0
- package/lib/chunk-ZVJZFSX5.cjs +47 -0
- package/lib/chunk-ZVJZFSX5.cjs.map +1 -0
- package/lib/chunk-ZZZ5IYR4.js +49 -0
- package/lib/chunk-ZZZ5IYR4.js.map +1 -0
- package/lib/commercelayer.cjs +6 -6
- package/lib/commercelayer.d.cts +3 -1
- package/lib/commercelayer.d.ts +3 -1
- package/lib/commercelayer.js +2 -2
- package/lib/enum.d.cts +1 -1
- package/lib/enum.d.ts +1 -1
- package/lib/index.cjs +268 -268
- package/lib/index.d.cts +1 -1
- package/lib/index.d.ts +1 -1
- package/lib/index.js +134 -134
- package/lib/jsonapi.cjs +3 -3
- package/lib/jsonapi.d.cts +1 -1
- package/lib/jsonapi.d.ts +1 -1
- package/lib/jsonapi.js +1 -1
- package/lib/model.d.cts +1 -1
- package/lib/model.d.ts +1 -1
- package/lib/query.d.cts +1 -1
- package/lib/query.d.ts +1 -1
- package/lib/resource.cjs +6 -6
- package/lib/resource.d.cts +1 -1
- package/lib/resource.d.ts +1 -1
- package/lib/resource.js +1 -1
- package/lib/resources/addresses.cjs +3 -3
- package/lib/resources/addresses.d.cts +2 -2
- package/lib/resources/addresses.d.ts +1 -1
- package/lib/resources/addresses.js +2 -2
- package/lib/resources/adjustments.cjs +3 -3
- package/lib/resources/adjustments.d.cts +2 -2
- package/lib/resources/adjustments.d.ts +1 -1
- package/lib/resources/adjustments.js +2 -2
- package/lib/resources/adyen_gateways.cjs +3 -3
- package/lib/resources/adyen_gateways.d.cts +2 -2
- package/lib/resources/adyen_gateways.d.ts +1 -1
- package/lib/resources/adyen_gateways.js +2 -2
- package/lib/resources/adyen_payments.cjs +3 -3
- package/lib/resources/adyen_payments.d.cts +2 -2
- package/lib/resources/adyen_payments.d.ts +1 -1
- package/lib/resources/adyen_payments.js +2 -2
- package/lib/resources/applications.cjs +3 -3
- package/lib/resources/applications.d.cts +2 -2
- package/lib/resources/applications.d.ts +1 -1
- package/lib/resources/applications.js +2 -2
- package/lib/resources/attachments.cjs +3 -3
- package/lib/resources/attachments.d.cts +2 -2
- package/lib/resources/attachments.d.ts +1 -1
- package/lib/resources/attachments.js +2 -2
- package/lib/resources/authorizations.cjs +3 -3
- package/lib/resources/authorizations.d.cts +2 -2
- package/lib/resources/authorizations.d.ts +1 -1
- package/lib/resources/authorizations.js +2 -2
- package/lib/resources/avalara_accounts.cjs +3 -3
- package/lib/resources/avalara_accounts.d.cts +2 -2
- package/lib/resources/avalara_accounts.d.ts +1 -1
- package/lib/resources/avalara_accounts.js +2 -2
- package/lib/resources/axerve_gateways.cjs +3 -3
- package/lib/resources/axerve_gateways.d.cts +2 -2
- package/lib/resources/axerve_gateways.d.ts +1 -1
- package/lib/resources/axerve_gateways.js +2 -2
- package/lib/resources/axerve_payments.cjs +3 -3
- package/lib/resources/axerve_payments.d.cts +2 -2
- package/lib/resources/axerve_payments.d.ts +1 -1
- package/lib/resources/axerve_payments.js +2 -2
- package/lib/resources/bing_geocoders.cjs +3 -3
- package/lib/resources/bing_geocoders.d.cts +2 -2
- package/lib/resources/bing_geocoders.d.ts +1 -1
- package/lib/resources/bing_geocoders.js +2 -2
- package/lib/resources/braintree_gateways.cjs +3 -3
- package/lib/resources/braintree_gateways.d.cts +2 -2
- package/lib/resources/braintree_gateways.d.ts +1 -1
- package/lib/resources/braintree_gateways.js +2 -2
- package/lib/resources/braintree_payments.cjs +3 -3
- package/lib/resources/braintree_payments.d.cts +2 -2
- package/lib/resources/braintree_payments.d.ts +1 -1
- package/lib/resources/braintree_payments.js +2 -2
- package/lib/resources/bundles.cjs +3 -3
- package/lib/resources/bundles.d.cts +2 -2
- package/lib/resources/bundles.d.ts +1 -1
- package/lib/resources/bundles.js +2 -2
- package/lib/resources/buy_x_pay_y_promotions.cjs +3 -3
- package/lib/resources/buy_x_pay_y_promotions.d.cts +2 -2
- package/lib/resources/buy_x_pay_y_promotions.d.ts +1 -1
- package/lib/resources/buy_x_pay_y_promotions.js +2 -2
- package/lib/resources/captures.cjs +3 -3
- package/lib/resources/captures.d.cts +2 -2
- package/lib/resources/captures.d.ts +1 -1
- package/lib/resources/captures.js +2 -2
- package/lib/resources/carrier_accounts.cjs +3 -3
- package/lib/resources/carrier_accounts.d.cts +2 -2
- package/lib/resources/carrier_accounts.d.ts +1 -1
- package/lib/resources/carrier_accounts.js +2 -2
- package/lib/resources/checkout_com_gateways.cjs +3 -3
- package/lib/resources/checkout_com_gateways.d.cts +2 -2
- package/lib/resources/checkout_com_gateways.d.ts +1 -1
- package/lib/resources/checkout_com_gateways.js +2 -2
- package/lib/resources/checkout_com_payments.cjs +3 -3
- package/lib/resources/checkout_com_payments.d.cts +2 -2
- package/lib/resources/checkout_com_payments.d.ts +1 -1
- package/lib/resources/checkout_com_payments.js +2 -2
- package/lib/resources/cleanups.cjs +3 -3
- package/lib/resources/cleanups.d.cts +2 -2
- package/lib/resources/cleanups.d.ts +1 -1
- package/lib/resources/cleanups.js +2 -2
- package/lib/resources/coupon_codes_promotion_rules.cjs +3 -3
- package/lib/resources/coupon_codes_promotion_rules.d.cts +2 -2
- package/lib/resources/coupon_codes_promotion_rules.d.ts +1 -1
- package/lib/resources/coupon_codes_promotion_rules.js +2 -2
- package/lib/resources/coupon_recipients.cjs +3 -3
- package/lib/resources/coupon_recipients.d.cts +2 -2
- package/lib/resources/coupon_recipients.d.ts +1 -1
- package/lib/resources/coupon_recipients.js +2 -2
- package/lib/resources/coupons.cjs +3 -3
- package/lib/resources/coupons.d.cts +2 -2
- package/lib/resources/coupons.d.ts +1 -1
- package/lib/resources/coupons.js +2 -2
- package/lib/resources/custom_promotion_rules.cjs +3 -3
- package/lib/resources/custom_promotion_rules.d.cts +2 -2
- package/lib/resources/custom_promotion_rules.d.ts +1 -1
- package/lib/resources/custom_promotion_rules.js +2 -2
- package/lib/resources/customer_addresses.cjs +3 -3
- package/lib/resources/customer_addresses.d.cts +2 -2
- package/lib/resources/customer_addresses.d.ts +1 -1
- package/lib/resources/customer_addresses.js +2 -2
- package/lib/resources/customer_groups.cjs +3 -3
- package/lib/resources/customer_groups.d.cts +2 -2
- package/lib/resources/customer_groups.d.ts +1 -1
- package/lib/resources/customer_groups.js +2 -2
- package/lib/resources/customer_password_resets.cjs +3 -3
- package/lib/resources/customer_password_resets.d.cts +2 -2
- package/lib/resources/customer_password_resets.d.ts +1 -1
- package/lib/resources/customer_password_resets.js +2 -2
- package/lib/resources/customer_payment_sources.cjs +3 -3
- package/lib/resources/customer_payment_sources.d.cts +2 -2
- package/lib/resources/customer_payment_sources.d.ts +1 -1
- package/lib/resources/customer_payment_sources.js +2 -2
- package/lib/resources/customer_subscriptions.cjs +3 -3
- package/lib/resources/customer_subscriptions.d.cts +2 -2
- package/lib/resources/customer_subscriptions.d.ts +1 -1
- package/lib/resources/customer_subscriptions.js +2 -2
- package/lib/resources/customers.cjs +3 -3
- package/lib/resources/customers.d.cts +2 -2
- package/lib/resources/customers.d.ts +1 -1
- package/lib/resources/customers.js +2 -2
- package/lib/resources/delivery_lead_times.cjs +3 -3
- package/lib/resources/delivery_lead_times.d.cts +2 -2
- package/lib/resources/delivery_lead_times.d.ts +1 -1
- package/lib/resources/delivery_lead_times.js +2 -2
- package/lib/resources/discount_engine_items.cjs +3 -3
- package/lib/resources/discount_engine_items.d.cts +2 -2
- package/lib/resources/discount_engine_items.d.ts +1 -1
- package/lib/resources/discount_engine_items.js +2 -2
- package/lib/resources/discount_engines.cjs +3 -3
- package/lib/resources/discount_engines.d.cts +2 -2
- package/lib/resources/discount_engines.d.ts +1 -1
- package/lib/resources/discount_engines.js +2 -2
- package/lib/resources/easypost_pickups.cjs +3 -3
- package/lib/resources/easypost_pickups.d.cts +2 -2
- package/lib/resources/easypost_pickups.d.ts +1 -1
- package/lib/resources/easypost_pickups.js +2 -2
- package/lib/resources/event_callbacks.cjs +3 -3
- package/lib/resources/event_callbacks.d.cts +2 -2
- package/lib/resources/event_callbacks.d.ts +1 -1
- package/lib/resources/event_callbacks.js +2 -2
- package/lib/resources/event_stores.cjs +3 -3
- package/lib/resources/event_stores.d.cts +2 -2
- package/lib/resources/event_stores.d.ts +1 -1
- package/lib/resources/event_stores.js +2 -2
- package/lib/resources/events.cjs +3 -3
- package/lib/resources/events.d.cts +2 -2
- package/lib/resources/events.d.ts +1 -1
- package/lib/resources/events.js +2 -2
- package/lib/resources/exports.cjs +3 -3
- package/lib/resources/exports.d.cts +2 -2
- package/lib/resources/exports.d.ts +1 -1
- package/lib/resources/exports.js +2 -2
- package/lib/resources/external_gateways.cjs +3 -3
- package/lib/resources/external_gateways.d.cts +2 -2
- package/lib/resources/external_gateways.d.ts +1 -1
- package/lib/resources/external_gateways.js +2 -2
- package/lib/resources/external_payments.cjs +3 -3
- package/lib/resources/external_payments.d.cts +2 -2
- package/lib/resources/external_payments.d.ts +1 -1
- package/lib/resources/external_payments.js +2 -2
- package/lib/resources/external_promotions.cjs +3 -3
- package/lib/resources/external_promotions.d.cts +2 -2
- package/lib/resources/external_promotions.d.ts +1 -1
- package/lib/resources/external_promotions.js +2 -2
- package/lib/resources/external_tax_calculators.cjs +3 -3
- package/lib/resources/external_tax_calculators.d.cts +2 -2
- package/lib/resources/external_tax_calculators.d.ts +1 -1
- package/lib/resources/external_tax_calculators.js +2 -2
- package/lib/resources/fixed_amount_promotions.cjs +3 -3
- package/lib/resources/fixed_amount_promotions.d.cts +2 -2
- package/lib/resources/fixed_amount_promotions.d.ts +1 -1
- package/lib/resources/fixed_amount_promotions.js +2 -2
- package/lib/resources/fixed_price_promotions.cjs +3 -3
- package/lib/resources/fixed_price_promotions.d.cts +2 -2
- package/lib/resources/fixed_price_promotions.d.ts +1 -1
- package/lib/resources/fixed_price_promotions.js +2 -2
- package/lib/resources/flex_promotions.cjs +3 -3
- package/lib/resources/flex_promotions.d.cts +2 -2
- package/lib/resources/flex_promotions.d.ts +1 -1
- package/lib/resources/flex_promotions.js +2 -2
- package/lib/resources/free_gift_promotions.cjs +3 -3
- package/lib/resources/free_gift_promotions.d.cts +2 -2
- package/lib/resources/free_gift_promotions.d.ts +1 -1
- package/lib/resources/free_gift_promotions.js +2 -2
- package/lib/resources/free_shipping_promotions.cjs +3 -3
- package/lib/resources/free_shipping_promotions.d.cts +2 -2
- package/lib/resources/free_shipping_promotions.d.ts +1 -1
- package/lib/resources/free_shipping_promotions.js +2 -2
- package/lib/resources/geocoders.cjs +3 -3
- package/lib/resources/geocoders.d.cts +2 -2
- package/lib/resources/geocoders.d.ts +1 -1
- package/lib/resources/geocoders.js +2 -2
- package/lib/resources/gift_card_recipients.cjs +3 -3
- package/lib/resources/gift_card_recipients.d.cts +2 -2
- package/lib/resources/gift_card_recipients.d.ts +1 -1
- package/lib/resources/gift_card_recipients.js +2 -2
- package/lib/resources/gift_cards.cjs +3 -3
- package/lib/resources/gift_cards.d.cts +2 -2
- package/lib/resources/gift_cards.d.ts +1 -1
- package/lib/resources/gift_cards.js +2 -2
- package/lib/resources/google_geocoders.cjs +3 -3
- package/lib/resources/google_geocoders.d.cts +2 -2
- package/lib/resources/google_geocoders.d.ts +1 -1
- package/lib/resources/google_geocoders.js +2 -2
- package/lib/resources/imports.cjs +3 -3
- package/lib/resources/imports.d.cts +2 -2
- package/lib/resources/imports.d.ts +1 -1
- package/lib/resources/imports.js +2 -2
- package/lib/resources/in_stock_subscriptions.cjs +3 -3
- package/lib/resources/in_stock_subscriptions.d.cts +2 -2
- package/lib/resources/in_stock_subscriptions.d.ts +1 -1
- package/lib/resources/in_stock_subscriptions.js +2 -2
- package/lib/resources/inventory_models.cjs +3 -3
- package/lib/resources/inventory_models.d.cts +2 -2
- package/lib/resources/inventory_models.d.ts +1 -1
- package/lib/resources/inventory_models.js +2 -2
- package/lib/resources/inventory_return_locations.cjs +3 -3
- package/lib/resources/inventory_return_locations.d.cts +2 -2
- package/lib/resources/inventory_return_locations.d.ts +1 -1
- package/lib/resources/inventory_return_locations.js +2 -2
- package/lib/resources/inventory_stock_locations.cjs +3 -3
- package/lib/resources/inventory_stock_locations.d.cts +2 -2
- package/lib/resources/inventory_stock_locations.d.ts +1 -1
- package/lib/resources/inventory_stock_locations.js +2 -2
- package/lib/resources/klarna_gateways.cjs +3 -3
- package/lib/resources/klarna_gateways.d.cts +2 -2
- package/lib/resources/klarna_gateways.d.ts +1 -1
- package/lib/resources/klarna_gateways.js +2 -2
- package/lib/resources/klarna_payments.cjs +3 -3
- package/lib/resources/klarna_payments.d.cts +2 -2
- package/lib/resources/klarna_payments.d.ts +1 -1
- package/lib/resources/klarna_payments.js +2 -2
- package/lib/resources/line_item_options.cjs +3 -3
- package/lib/resources/line_item_options.d.cts +2 -2
- package/lib/resources/line_item_options.d.ts +1 -1
- package/lib/resources/line_item_options.js +2 -2
- package/lib/resources/line_items.cjs +3 -3
- package/lib/resources/line_items.d.cts +2 -2
- package/lib/resources/line_items.d.ts +1 -1
- package/lib/resources/line_items.js +2 -2
- package/lib/resources/links.cjs +3 -3
- package/lib/resources/links.d.cts +2 -2
- package/lib/resources/links.d.ts +1 -1
- package/lib/resources/links.js +2 -2
- package/lib/resources/manual_gateways.cjs +3 -3
- package/lib/resources/manual_gateways.d.cts +2 -2
- package/lib/resources/manual_gateways.d.ts +1 -1
- package/lib/resources/manual_gateways.js +2 -2
- package/lib/resources/manual_tax_calculators.cjs +3 -3
- package/lib/resources/manual_tax_calculators.d.cts +2 -2
- package/lib/resources/manual_tax_calculators.d.ts +1 -1
- package/lib/resources/manual_tax_calculators.js +2 -2
- package/lib/resources/markets.cjs +3 -3
- package/lib/resources/markets.d.cts +2 -2
- package/lib/resources/markets.d.ts +1 -1
- package/lib/resources/markets.js +2 -2
- package/lib/resources/merchants.cjs +3 -3
- package/lib/resources/merchants.d.cts +2 -2
- package/lib/resources/merchants.d.ts +1 -1
- package/lib/resources/merchants.js +2 -2
- package/lib/resources/notifications.cjs +3 -3
- package/lib/resources/notifications.d.cts +2 -2
- package/lib/resources/notifications.d.ts +1 -1
- package/lib/resources/notifications.js +2 -2
- package/lib/resources/order_amount_promotion_rules.cjs +3 -3
- package/lib/resources/order_amount_promotion_rules.d.cts +2 -2
- package/lib/resources/order_amount_promotion_rules.d.ts +1 -1
- package/lib/resources/order_amount_promotion_rules.js +2 -2
- package/lib/resources/order_copies.cjs +3 -3
- package/lib/resources/order_copies.d.cts +2 -2
- package/lib/resources/order_copies.d.ts +1 -1
- package/lib/resources/order_copies.js +2 -2
- package/lib/resources/order_factories.cjs +3 -3
- package/lib/resources/order_factories.d.cts +2 -2
- package/lib/resources/order_factories.d.ts +1 -1
- package/lib/resources/order_factories.js +2 -2
- package/lib/resources/order_subscription_items.cjs +3 -3
- package/lib/resources/order_subscription_items.d.cts +2 -2
- package/lib/resources/order_subscription_items.d.ts +1 -1
- package/lib/resources/order_subscription_items.js +2 -2
- package/lib/resources/order_subscriptions.cjs +3 -3
- package/lib/resources/order_subscriptions.d.cts +2 -2
- package/lib/resources/order_subscriptions.d.ts +1 -1
- package/lib/resources/order_subscriptions.js +2 -2
- package/lib/resources/orders.cjs +3 -3
- package/lib/resources/orders.d.cts +2 -2
- package/lib/resources/orders.d.ts +1 -1
- package/lib/resources/orders.js +2 -2
- package/lib/resources/organizations.cjs +3 -3
- package/lib/resources/organizations.d.cts +2 -2
- package/lib/resources/organizations.d.ts +1 -1
- package/lib/resources/organizations.js +2 -2
- package/lib/resources/packages.cjs +3 -3
- package/lib/resources/packages.d.cts +2 -2
- package/lib/resources/packages.d.ts +1 -1
- package/lib/resources/packages.js +2 -2
- package/lib/resources/parcel_line_items.cjs +3 -3
- package/lib/resources/parcel_line_items.d.cts +2 -2
- package/lib/resources/parcel_line_items.d.ts +1 -1
- package/lib/resources/parcel_line_items.js +2 -2
- package/lib/resources/parcels.cjs +3 -3
- package/lib/resources/parcels.d.cts +2 -2
- package/lib/resources/parcels.d.ts +1 -1
- package/lib/resources/parcels.js +2 -2
- package/lib/resources/payment_gateways.cjs +3 -3
- package/lib/resources/payment_gateways.d.cts +2 -2
- package/lib/resources/payment_gateways.d.ts +1 -1
- package/lib/resources/payment_gateways.js +2 -2
- package/lib/resources/payment_methods.cjs +3 -3
- package/lib/resources/payment_methods.d.cts +2 -2
- package/lib/resources/payment_methods.d.ts +1 -1
- package/lib/resources/payment_methods.js +2 -2
- package/lib/resources/payment_options.cjs +3 -3
- package/lib/resources/payment_options.d.cts +2 -2
- package/lib/resources/payment_options.d.ts +1 -1
- package/lib/resources/payment_options.js +2 -2
- package/lib/resources/paypal_gateways.cjs +3 -3
- package/lib/resources/paypal_gateways.d.cts +2 -2
- package/lib/resources/paypal_gateways.d.ts +1 -1
- package/lib/resources/paypal_gateways.js +2 -2
- package/lib/resources/paypal_payments.cjs +3 -3
- package/lib/resources/paypal_payments.d.cts +2 -2
- package/lib/resources/paypal_payments.d.ts +1 -1
- package/lib/resources/paypal_payments.js +2 -2
- package/lib/resources/percentage_discount_promotions.cjs +3 -3
- package/lib/resources/percentage_discount_promotions.d.cts +2 -2
- package/lib/resources/percentage_discount_promotions.d.ts +1 -1
- package/lib/resources/percentage_discount_promotions.js +2 -2
- package/lib/resources/pickups.cjs +3 -3
- package/lib/resources/pickups.d.cts +2 -2
- package/lib/resources/pickups.d.ts +1 -1
- package/lib/resources/pickups.js +2 -2
- package/lib/resources/price_frequency_tiers.cjs +3 -3
- package/lib/resources/price_frequency_tiers.d.cts +2 -2
- package/lib/resources/price_frequency_tiers.d.ts +1 -1
- package/lib/resources/price_frequency_tiers.js +2 -2
- package/lib/resources/price_list_schedulers.cjs +3 -3
- package/lib/resources/price_list_schedulers.d.cts +2 -2
- package/lib/resources/price_list_schedulers.d.ts +1 -1
- package/lib/resources/price_list_schedulers.js +2 -2
- package/lib/resources/price_lists.cjs +3 -3
- package/lib/resources/price_lists.d.cts +2 -2
- package/lib/resources/price_lists.d.ts +1 -1
- package/lib/resources/price_lists.js +2 -2
- package/lib/resources/price_tiers.cjs +3 -3
- package/lib/resources/price_tiers.d.cts +2 -2
- package/lib/resources/price_tiers.d.ts +1 -1
- package/lib/resources/price_tiers.js +2 -2
- package/lib/resources/price_volume_tiers.cjs +3 -3
- package/lib/resources/price_volume_tiers.d.cts +2 -2
- package/lib/resources/price_volume_tiers.d.ts +1 -1
- package/lib/resources/price_volume_tiers.js +2 -2
- package/lib/resources/prices.cjs +3 -3
- package/lib/resources/prices.d.cts +2 -2
- package/lib/resources/prices.d.ts +1 -1
- package/lib/resources/prices.js +2 -2
- package/lib/resources/promotion_rules.cjs +3 -3
- package/lib/resources/promotion_rules.d.cts +2 -2
- package/lib/resources/promotion_rules.d.ts +1 -1
- package/lib/resources/promotion_rules.js +2 -2
- package/lib/resources/promotions.cjs +3 -3
- package/lib/resources/promotions.d.cts +2 -2
- package/lib/resources/promotions.d.ts +1 -1
- package/lib/resources/promotions.js +2 -2
- package/lib/resources/recurring_order_copies.cjs +3 -3
- package/lib/resources/recurring_order_copies.d.cts +2 -2
- package/lib/resources/recurring_order_copies.d.ts +1 -1
- package/lib/resources/recurring_order_copies.js +2 -2
- package/lib/resources/refunds.cjs +3 -3
- package/lib/resources/refunds.d.cts +2 -2
- package/lib/resources/refunds.d.ts +1 -1
- package/lib/resources/refunds.js +2 -2
- package/lib/resources/reserved_stocks.cjs +3 -3
- package/lib/resources/reserved_stocks.d.cts +2 -2
- package/lib/resources/reserved_stocks.d.ts +1 -1
- package/lib/resources/reserved_stocks.js +2 -2
- package/lib/resources/resource_errors.cjs +3 -3
- package/lib/resources/resource_errors.d.cts +2 -2
- package/lib/resources/resource_errors.d.ts +1 -1
- package/lib/resources/resource_errors.js +2 -2
- package/lib/resources/return_line_items.cjs +3 -3
- package/lib/resources/return_line_items.d.cts +2 -2
- package/lib/resources/return_line_items.d.ts +1 -1
- package/lib/resources/return_line_items.js +2 -2
- package/lib/resources/returns.cjs +3 -3
- package/lib/resources/returns.d.cts +2 -2
- package/lib/resources/returns.d.ts +1 -1
- package/lib/resources/returns.js +2 -2
- package/lib/resources/satispay_gateways.cjs +3 -3
- package/lib/resources/satispay_gateways.d.cts +2 -2
- package/lib/resources/satispay_gateways.d.ts +1 -1
- package/lib/resources/satispay_gateways.js +2 -2
- package/lib/resources/satispay_payments.cjs +3 -3
- package/lib/resources/satispay_payments.d.cts +2 -2
- package/lib/resources/satispay_payments.d.ts +1 -1
- package/lib/resources/satispay_payments.js +2 -2
- package/lib/resources/shipments.cjs +3 -3
- package/lib/resources/shipments.d.cts +2 -2
- package/lib/resources/shipments.d.ts +1 -1
- package/lib/resources/shipments.js +2 -2
- package/lib/resources/shipping_categories.cjs +3 -3
- package/lib/resources/shipping_categories.d.cts +2 -2
- package/lib/resources/shipping_categories.d.ts +1 -1
- package/lib/resources/shipping_categories.js +2 -2
- package/lib/resources/shipping_method_tiers.cjs +3 -3
- package/lib/resources/shipping_method_tiers.d.cts +2 -2
- package/lib/resources/shipping_method_tiers.d.ts +1 -1
- package/lib/resources/shipping_method_tiers.js +2 -2
- package/lib/resources/shipping_methods.cjs +3 -3
- package/lib/resources/shipping_methods.d.cts +2 -2
- package/lib/resources/shipping_methods.d.ts +1 -1
- package/lib/resources/shipping_methods.js +2 -2
- package/lib/resources/shipping_weight_tiers.cjs +3 -3
- package/lib/resources/shipping_weight_tiers.d.cts +2 -2
- package/lib/resources/shipping_weight_tiers.d.ts +1 -1
- package/lib/resources/shipping_weight_tiers.js +2 -2
- package/lib/resources/shipping_zones.cjs +3 -3
- package/lib/resources/shipping_zones.d.cts +2 -2
- package/lib/resources/shipping_zones.d.ts +1 -1
- package/lib/resources/shipping_zones.js +2 -2
- package/lib/resources/sku_list_items.cjs +3 -3
- package/lib/resources/sku_list_items.d.cts +2 -2
- package/lib/resources/sku_list_items.d.ts +1 -1
- package/lib/resources/sku_list_items.js +2 -2
- package/lib/resources/sku_list_promotion_rules.cjs +3 -3
- package/lib/resources/sku_list_promotion_rules.d.cts +2 -2
- package/lib/resources/sku_list_promotion_rules.d.ts +1 -1
- package/lib/resources/sku_list_promotion_rules.js +2 -2
- package/lib/resources/sku_lists.cjs +3 -3
- package/lib/resources/sku_lists.d.cts +2 -2
- package/lib/resources/sku_lists.d.ts +1 -1
- package/lib/resources/sku_lists.js +2 -2
- package/lib/resources/sku_options.cjs +3 -3
- package/lib/resources/sku_options.d.cts +2 -2
- package/lib/resources/sku_options.d.ts +1 -1
- package/lib/resources/sku_options.js +2 -2
- package/lib/resources/skus.cjs +3 -3
- package/lib/resources/skus.d.cts +2 -2
- package/lib/resources/skus.d.ts +1 -1
- package/lib/resources/skus.js +2 -2
- package/lib/resources/stock_items.cjs +3 -3
- package/lib/resources/stock_items.d.cts +2 -2
- package/lib/resources/stock_items.d.ts +1 -1
- package/lib/resources/stock_items.js +2 -2
- package/lib/resources/stock_line_items.cjs +3 -3
- package/lib/resources/stock_line_items.d.cts +2 -2
- package/lib/resources/stock_line_items.d.ts +1 -1
- package/lib/resources/stock_line_items.js +2 -2
- package/lib/resources/stock_locations.cjs +3 -3
- package/lib/resources/stock_locations.d.cts +2 -2
- package/lib/resources/stock_locations.d.ts +1 -1
- package/lib/resources/stock_locations.js +2 -2
- package/lib/resources/stock_reservations.cjs +3 -3
- package/lib/resources/stock_reservations.d.cts +2 -2
- package/lib/resources/stock_reservations.d.ts +1 -1
- package/lib/resources/stock_reservations.js +2 -2
- package/lib/resources/stock_transfers.cjs +3 -3
- package/lib/resources/stock_transfers.d.cts +2 -2
- package/lib/resources/stock_transfers.d.ts +1 -1
- package/lib/resources/stock_transfers.js +2 -2
- package/lib/resources/stores.cjs +3 -3
- package/lib/resources/stores.d.cts +2 -2
- package/lib/resources/stores.d.ts +1 -1
- package/lib/resources/stores.js +2 -2
- package/lib/resources/stripe_gateways.cjs +3 -3
- package/lib/resources/stripe_gateways.d.cts +2 -2
- package/lib/resources/stripe_gateways.d.ts +1 -1
- package/lib/resources/stripe_gateways.js +2 -2
- package/lib/resources/stripe_payments.cjs +3 -3
- package/lib/resources/stripe_payments.d.cts +2 -2
- package/lib/resources/stripe_payments.d.ts +1 -1
- package/lib/resources/stripe_payments.js +2 -2
- package/lib/resources/stripe_tax_accounts.cjs +3 -3
- package/lib/resources/stripe_tax_accounts.d.cts +2 -2
- package/lib/resources/stripe_tax_accounts.d.ts +1 -1
- package/lib/resources/stripe_tax_accounts.js +2 -2
- package/lib/resources/subscription_models.cjs +3 -3
- package/lib/resources/subscription_models.d.cts +2 -2
- package/lib/resources/subscription_models.d.ts +1 -1
- package/lib/resources/subscription_models.js +2 -2
- package/lib/resources/tags.cjs +3 -3
- package/lib/resources/tags.d.cts +2 -2
- package/lib/resources/tags.d.ts +1 -1
- package/lib/resources/tags.js +2 -2
- package/lib/resources/talon_one_accounts.cjs +3 -3
- package/lib/resources/talon_one_accounts.d.cts +2 -2
- package/lib/resources/talon_one_accounts.d.ts +1 -1
- package/lib/resources/talon_one_accounts.js +2 -2
- package/lib/resources/tax_calculators.cjs +3 -3
- package/lib/resources/tax_calculators.d.cts +2 -2
- package/lib/resources/tax_calculators.d.ts +1 -1
- package/lib/resources/tax_calculators.js +2 -2
- package/lib/resources/tax_categories.cjs +3 -3
- package/lib/resources/tax_categories.d.cts +2 -2
- package/lib/resources/tax_categories.d.ts +1 -1
- package/lib/resources/tax_categories.js +2 -2
- package/lib/resources/tax_rules.cjs +3 -3
- package/lib/resources/tax_rules.d.cts +2 -2
- package/lib/resources/tax_rules.d.ts +1 -1
- package/lib/resources/tax_rules.js +2 -2
- package/lib/resources/taxjar_accounts.cjs +3 -3
- package/lib/resources/taxjar_accounts.d.cts +2 -2
- package/lib/resources/taxjar_accounts.d.ts +1 -1
- package/lib/resources/taxjar_accounts.js +2 -2
- package/lib/resources/transactions.cjs +3 -3
- package/lib/resources/transactions.d.cts +2 -2
- package/lib/resources/transactions.d.ts +1 -1
- package/lib/resources/transactions.js +2 -2
- package/lib/resources/vertex_accounts.cjs +3 -3
- package/lib/resources/vertex_accounts.d.cts +2 -2
- package/lib/resources/vertex_accounts.d.ts +1 -1
- package/lib/resources/vertex_accounts.js +2 -2
- package/lib/resources/voids.cjs +3 -3
- package/lib/resources/voids.d.cts +2 -2
- package/lib/resources/voids.d.ts +1 -1
- package/lib/resources/voids.js +2 -2
- package/lib/resources/webhooks.cjs +3 -3
- package/lib/resources/webhooks.d.cts +2 -2
- package/lib/resources/webhooks.d.ts +1 -1
- package/lib/resources/webhooks.js +2 -2
- package/lib/resources/wire_transfers.cjs +3 -3
- package/lib/resources/wire_transfers.d.cts +2 -2
- package/lib/resources/wire_transfers.d.ts +1 -1
- package/lib/resources/wire_transfers.js +2 -2
- package/lib/static.cjs +4 -4
- package/lib/static.d.cts +1 -1
- package/lib/static.d.ts +1 -1
- package/lib/static.js +3 -3
- package/package.json +8 -8
- package/lib/api-CiWKv2Ad.d.ts +0 -18181
- package/lib/api-DhbS8TfO.d.cts +0 -18181
- package/lib/chunk-225RCDGU.cjs +0 -53
- package/lib/chunk-225RCDGU.cjs.map +0 -1
- package/lib/chunk-2GZROWFO.js +0 -41
- package/lib/chunk-2GZROWFO.js.map +0 -1
- package/lib/chunk-2LZNXUFY.js +0 -55
- package/lib/chunk-2LZNXUFY.js.map +0 -1
- package/lib/chunk-2MSMUHNG.js +0 -66
- package/lib/chunk-2MSMUHNG.js.map +0 -1
- package/lib/chunk-2RW3IPYK.js +0 -60
- package/lib/chunk-2RW3IPYK.js.map +0 -1
- package/lib/chunk-2SAZMGAW.cjs +0 -50
- package/lib/chunk-2SAZMGAW.cjs.map +0 -1
- package/lib/chunk-2V4MFNM5.js +0 -41
- package/lib/chunk-2V4MFNM5.js.map +0 -1
- package/lib/chunk-2YJ4ST4G.cjs +0 -42
- package/lib/chunk-2YJ4ST4G.cjs.map +0 -1
- package/lib/chunk-33UBXTQO.cjs +0 -77
- package/lib/chunk-33UBXTQO.cjs.map +0 -1
- package/lib/chunk-3BDF64VW.js +0 -73
- package/lib/chunk-3BDF64VW.js.map +0 -1
- package/lib/chunk-3IMSCYIC.js +0 -41
- package/lib/chunk-3IMSCYIC.js.map +0 -1
- package/lib/chunk-3JVNXYTI.js +0 -124
- package/lib/chunk-3JVNXYTI.js.map +0 -1
- package/lib/chunk-3NOES4EX.js +0 -49
- package/lib/chunk-3NOES4EX.js.map +0 -1
- package/lib/chunk-3QCIWYSW.cjs +0 -51
- package/lib/chunk-3QCIWYSW.cjs.map +0 -1
- package/lib/chunk-3W33J36Z.js +0 -49
- package/lib/chunk-3W33J36Z.js.map +0 -1
- package/lib/chunk-3WTTRPSK.js +0 -69
- package/lib/chunk-3WTTRPSK.js.map +0 -1
- package/lib/chunk-3ZZ6KGDB.cjs +0 -47
- package/lib/chunk-3ZZ6KGDB.cjs.map +0 -1
- package/lib/chunk-42Y23CRY.cjs +0 -51
- package/lib/chunk-42Y23CRY.cjs.map +0 -1
- package/lib/chunk-4AZXDT2V.cjs +0 -47
- package/lib/chunk-4AZXDT2V.cjs.map +0 -1
- package/lib/chunk-4DUH2RXG.js +0 -37
- package/lib/chunk-4DUH2RXG.js.map +0 -1
- package/lib/chunk-4ESM2OUZ.cjs +0 -50
- package/lib/chunk-4ESM2OUZ.cjs.map +0 -1
- package/lib/chunk-4IFBXO5W.js +0 -55
- package/lib/chunk-4IFBXO5W.js.map +0 -1
- package/lib/chunk-4J2ISS7L.cjs +0 -105
- package/lib/chunk-4J2ISS7L.cjs.map +0 -1
- package/lib/chunk-4JL3Z5QD.cjs +0 -38
- package/lib/chunk-4JL3Z5QD.cjs.map +0 -1
- package/lib/chunk-4PFYUFSO.cjs +0 -39
- package/lib/chunk-4PFYUFSO.cjs.map +0 -1
- package/lib/chunk-4RHF7JN2.js +0 -28
- package/lib/chunk-4RHF7JN2.js.map +0 -1
- package/lib/chunk-52SEULJP.cjs +0 -39
- package/lib/chunk-52SEULJP.cjs.map +0 -1
- package/lib/chunk-55TQRLLK.js +0 -93
- package/lib/chunk-55TQRLLK.js.map +0 -1
- package/lib/chunk-5CTTK5G7.cjs +0 -38
- package/lib/chunk-5CTTK5G7.cjs.map +0 -1
- package/lib/chunk-5HIY5RJQ.cjs +0 -47
- package/lib/chunk-5HIY5RJQ.cjs.map +0 -1
- package/lib/chunk-5RQOHU5P.js +0 -45
- package/lib/chunk-5RQOHU5P.js.map +0 -1
- package/lib/chunk-5S4VIVJT.cjs +0 -54
- package/lib/chunk-5S4VIVJT.cjs.map +0 -1
- package/lib/chunk-5SPLJRDY.js +0 -68
- package/lib/chunk-5SPLJRDY.js.map +0 -1
- package/lib/chunk-5UWLI25I.js +0 -95
- package/lib/chunk-5UWLI25I.js.map +0 -1
- package/lib/chunk-5W4UAUXC.js +0 -283
- package/lib/chunk-5W4UAUXC.js.map +0 -1
- package/lib/chunk-5ZBTQIMD.js +0 -53
- package/lib/chunk-5ZBTQIMD.js.map +0 -1
- package/lib/chunk-62L57UQU.cjs +0 -68
- package/lib/chunk-62L57UQU.cjs.map +0 -1
- package/lib/chunk-62N4SFGW.js +0 -45
- package/lib/chunk-62N4SFGW.js.map +0 -1
- package/lib/chunk-62PWL472.cjs +0 -43
- package/lib/chunk-62PWL472.cjs.map +0 -1
- package/lib/chunk-67DYVCOK.js +0 -45
- package/lib/chunk-67DYVCOK.js.map +0 -1
- package/lib/chunk-6A63W6IB.js +0 -49
- package/lib/chunk-6A63W6IB.js.map +0 -1
- package/lib/chunk-6BI2PL4B.cjs +0 -44
- package/lib/chunk-6BI2PL4B.cjs.map +0 -1
- package/lib/chunk-6H2URCPA.cjs +0 -61
- package/lib/chunk-6H2URCPA.cjs.map +0 -1
- package/lib/chunk-6OJKY6R2.js +0 -91
- package/lib/chunk-6OJKY6R2.js.map +0 -1
- package/lib/chunk-6PB2M2MP.js +0 -37
- package/lib/chunk-6PB2M2MP.js.map +0 -1
- package/lib/chunk-6Q3CIOEF.js +0 -105
- package/lib/chunk-6Q3CIOEF.js.map +0 -1
- package/lib/chunk-6RISOLQJ.js +0 -49
- package/lib/chunk-6RISOLQJ.js.map +0 -1
- package/lib/chunk-6TLH43XL.cjs +0 -30
- package/lib/chunk-6TLH43XL.cjs.map +0 -1
- package/lib/chunk-6ZH7H3BJ.js +0 -61
- package/lib/chunk-6ZH7H3BJ.js.map +0 -1
- package/lib/chunk-7GMW5BUO.cjs +0 -29
- package/lib/chunk-7GMW5BUO.cjs.map +0 -1
- package/lib/chunk-7HY2CVJG.cjs +0 -53
- package/lib/chunk-7HY2CVJG.cjs.map +0 -1
- package/lib/chunk-7IYE2CYM.cjs +0 -39
- package/lib/chunk-7IYE2CYM.cjs.map +0 -1
- package/lib/chunk-7QTFNA3O.js +0 -45
- package/lib/chunk-7QTFNA3O.js.map +0 -1
- package/lib/chunk-7TDUZM36.js +0 -48
- package/lib/chunk-7TDUZM36.js.map +0 -1
- package/lib/chunk-7TN3F3TS.cjs +0 -47
- package/lib/chunk-7TN3F3TS.cjs.map +0 -1
- package/lib/chunk-7XCMIHK2.js +0 -59
- package/lib/chunk-7XCMIHK2.js.map +0 -1
- package/lib/chunk-7XI2G4AH.js +0 -68
- package/lib/chunk-7XI2G4AH.js.map +0 -1
- package/lib/chunk-A6N5NU4Q.cjs +0 -70
- package/lib/chunk-A6N5NU4Q.cjs.map +0 -1
- package/lib/chunk-AANIDX5T.cjs +0 -101
- package/lib/chunk-AANIDX5T.cjs.map +0 -1
- package/lib/chunk-ADVFX6Q4.js +0 -45
- package/lib/chunk-ADVFX6Q4.js.map +0 -1
- package/lib/chunk-AEUJD27H.js +0 -24
- package/lib/chunk-AEUJD27H.js.map +0 -1
- package/lib/chunk-AFTJ3CBC.js +0 -40
- package/lib/chunk-AFTJ3CBC.js.map +0 -1
- package/lib/chunk-AHVQFILB.js +0 -45
- package/lib/chunk-AHVQFILB.js.map +0 -1
- package/lib/chunk-AIRHVW6S.js +0 -49
- package/lib/chunk-AIRHVW6S.js.map +0 -1
- package/lib/chunk-ATLMNH6A.js +0 -49
- package/lib/chunk-ATLMNH6A.js.map +0 -1
- package/lib/chunk-ATVY532N.js +0 -93
- package/lib/chunk-ATVY532N.js.map +0 -1
- package/lib/chunk-AWMC6AUP.js +0 -49
- package/lib/chunk-AWMC6AUP.js.map +0 -1
- package/lib/chunk-AYUBT6TU.js +0 -89
- package/lib/chunk-AYUBT6TU.js.map +0 -1
- package/lib/chunk-BOTOHTVE.cjs +0 -51
- package/lib/chunk-BOTOHTVE.cjs.map +0 -1
- package/lib/chunk-BPAVYFBD.cjs +0 -56
- package/lib/chunk-BPAVYFBD.cjs.map +0 -1
- package/lib/chunk-BPMQD6S6.cjs +0 -42
- package/lib/chunk-BPMQD6S6.cjs.map +0 -1
- package/lib/chunk-BPMSXN65.js +0 -93
- package/lib/chunk-BPMSXN65.js.map +0 -1
- package/lib/chunk-BRL2HVCW.cjs +0 -75
- package/lib/chunk-BRL2HVCW.cjs.map +0 -1
- package/lib/chunk-BSQCD2TW.cjs +0 -95
- package/lib/chunk-BSQCD2TW.cjs.map +0 -1
- package/lib/chunk-BW5ZHHDZ.js +0 -37
- package/lib/chunk-BW5ZHHDZ.js.map +0 -1
- package/lib/chunk-BYE3DAWN.cjs +0 -63
- package/lib/chunk-BYE3DAWN.cjs.map +0 -1
- package/lib/chunk-BZB7R6N6.js +0 -61
- package/lib/chunk-BZB7R6N6.js.map +0 -1
- package/lib/chunk-C3S4LUX5.cjs +0 -51
- package/lib/chunk-C3S4LUX5.cjs.map +0 -1
- package/lib/chunk-C5C3LBW5.js +0 -47
- package/lib/chunk-C5C3LBW5.js.map +0 -1
- package/lib/chunk-CCBBYTAJ.js +0 -93
- package/lib/chunk-CCBBYTAJ.js.map +0 -1
- package/lib/chunk-CHMVP6EF.cjs +0 -47
- package/lib/chunk-CHMVP6EF.cjs.map +0 -1
- package/lib/chunk-CIBRS4EH.cjs +0 -30
- package/lib/chunk-CIBRS4EH.cjs.map +0 -1
- package/lib/chunk-CK4H22TM.js +0 -49
- package/lib/chunk-CK4H22TM.js.map +0 -1
- package/lib/chunk-CO3BTLA4.cjs +0 -47
- package/lib/chunk-CO3BTLA4.cjs.map +0 -1
- package/lib/chunk-CRWGVC3Z.cjs +0 -50
- package/lib/chunk-CRWGVC3Z.cjs.map +0 -1
- package/lib/chunk-CSDHXRCC.cjs +0 -43
- package/lib/chunk-CSDHXRCC.cjs.map +0 -1
- package/lib/chunk-CW5BKX63.js +0 -49
- package/lib/chunk-CW5BKX63.js.map +0 -1
- package/lib/chunk-CXKK7PCG.js +0 -59
- package/lib/chunk-CXKK7PCG.js.map +0 -1
- package/lib/chunk-CXLQBCS4.js +0 -47
- package/lib/chunk-CXLQBCS4.js.map +0 -1
- package/lib/chunk-D23IE5HE.cjs +0 -34
- package/lib/chunk-D23IE5HE.cjs.map +0 -1
- package/lib/chunk-D253IBYC.cjs +0 -285
- package/lib/chunk-D253IBYC.cjs.map +0 -1
- package/lib/chunk-D3IOT5UK.js +0 -54
- package/lib/chunk-D3IOT5UK.js.map +0 -1
- package/lib/chunk-D72VXGOI.js +0 -57
- package/lib/chunk-D72VXGOI.js.map +0 -1
- package/lib/chunk-DALCPLML.cjs +0 -56
- package/lib/chunk-DALCPLML.cjs.map +0 -1
- package/lib/chunk-DCEQF4SO.cjs +0 -49
- package/lib/chunk-DCEQF4SO.cjs.map +0 -1
- package/lib/chunk-DJXJIVYA.js +0 -40
- package/lib/chunk-DJXJIVYA.js.map +0 -1
- package/lib/chunk-DKUADGYA.js +0 -37
- package/lib/chunk-DKUADGYA.js.map +0 -1
- package/lib/chunk-DOSBGZZR.cjs +0 -61
- package/lib/chunk-DOSBGZZR.cjs.map +0 -1
- package/lib/chunk-DSJFQTYA.cjs +0 -55
- package/lib/chunk-DSJFQTYA.cjs.map +0 -1
- package/lib/chunk-DX4A53QM.js +0 -49
- package/lib/chunk-DX4A53QM.js.map +0 -1
- package/lib/chunk-DYSUBTJJ.js +0 -44
- package/lib/chunk-DYSUBTJJ.js.map +0 -1
- package/lib/chunk-E24MPITG.cjs +0 -39
- package/lib/chunk-E24MPITG.cjs.map +0 -1
- package/lib/chunk-E3UAM5IG.js +0 -51
- package/lib/chunk-E3UAM5IG.js.map +0 -1
- package/lib/chunk-E4UQRXQX.js +0 -37
- package/lib/chunk-E4UQRXQX.js.map +0 -1
- package/lib/chunk-EH5M6YWR.cjs +0 -47
- package/lib/chunk-EH5M6YWR.cjs.map +0 -1
- package/lib/chunk-EZMKXDCD.cjs +0 -50
- package/lib/chunk-EZMKXDCD.cjs.map +0 -1
- package/lib/chunk-F2S3T7C7.js +0 -93
- package/lib/chunk-F2S3T7C7.js.map +0 -1
- package/lib/chunk-FHQSNPMZ.js +0 -49
- package/lib/chunk-FHQSNPMZ.js.map +0 -1
- package/lib/chunk-FJL7GQH5.cjs +0 -51
- package/lib/chunk-FJL7GQH5.cjs.map +0 -1
- package/lib/chunk-FLTE7T5O.cjs +0 -51
- package/lib/chunk-FLTE7T5O.cjs.map +0 -1
- package/lib/chunk-FNQRYCRE.js +0 -51
- package/lib/chunk-FNQRYCRE.js.map +0 -1
- package/lib/chunk-FRB2QR5J.js +0 -96
- package/lib/chunk-FRB2QR5J.js.map +0 -1
- package/lib/chunk-FUT3LCHP.cjs +0 -56
- package/lib/chunk-FUT3LCHP.cjs.map +0 -1
- package/lib/chunk-GJ2M5XUU.js +0 -45
- package/lib/chunk-GJ2M5XUU.js.map +0 -1
- package/lib/chunk-GJVFOJKS.cjs +0 -26
- package/lib/chunk-GJVFOJKS.cjs.map +0 -1
- package/lib/chunk-GQWPXVMQ.js +0 -53
- package/lib/chunk-GQWPXVMQ.js.map +0 -1
- package/lib/chunk-GXSSWG6Z.cjs +0 -52
- package/lib/chunk-GXSSWG6Z.cjs.map +0 -1
- package/lib/chunk-GY35DVJ7.cjs +0 -51
- package/lib/chunk-GY35DVJ7.cjs.map +0 -1
- package/lib/chunk-GYWUTAVE.cjs +0 -46
- package/lib/chunk-GYWUTAVE.cjs.map +0 -1
- package/lib/chunk-GZGQSKLF.js +0 -59
- package/lib/chunk-GZGQSKLF.js.map +0 -1
- package/lib/chunk-HJ3RDHVN.cjs +0 -34
- package/lib/chunk-HJ3RDHVN.cjs.map +0 -1
- package/lib/chunk-HJFTJL3E.js +0 -54
- package/lib/chunk-HJFTJL3E.js.map +0 -1
- package/lib/chunk-HJIVGKWG.cjs +0 -46
- package/lib/chunk-HJIVGKWG.cjs.map +0 -1
- package/lib/chunk-HL6MEEU5.js +0 -154
- package/lib/chunk-HL6MEEU5.js.map +0 -1
- package/lib/chunk-HWDD4SMM.js +0 -103
- package/lib/chunk-HWDD4SMM.js.map +0 -1
- package/lib/chunk-HWOQQNX3.cjs +0 -63
- package/lib/chunk-HWOQQNX3.cjs.map +0 -1
- package/lib/chunk-HZIRPRFN.cjs +0 -47
- package/lib/chunk-HZIRPRFN.cjs.map +0 -1
- package/lib/chunk-HZLPTAKA.js +0 -45
- package/lib/chunk-HZLPTAKA.js.map +0 -1
- package/lib/chunk-I4A63K2Q.js +0 -45
- package/lib/chunk-I4A63K2Q.js.map +0 -1
- package/lib/chunk-IHYX6NQH.js +0 -51
- package/lib/chunk-IHYX6NQH.js.map +0 -1
- package/lib/chunk-IP5HITFS.cjs +0 -70
- package/lib/chunk-IP5HITFS.cjs.map +0 -1
- package/lib/chunk-IPS6QJLO.cjs +0 -57
- package/lib/chunk-IPS6QJLO.cjs.map +0 -1
- package/lib/chunk-IRFX6LWG.js +0 -37
- package/lib/chunk-IRFX6LWG.js.map +0 -1
- package/lib/chunk-IYCURPP5.cjs +0 -107
- package/lib/chunk-IYCURPP5.cjs.map +0 -1
- package/lib/chunk-J26HOFAI.cjs +0 -47
- package/lib/chunk-J26HOFAI.cjs.map +0 -1
- package/lib/chunk-JCI5Z3SY.js +0 -59
- package/lib/chunk-JCI5Z3SY.js.map +0 -1
- package/lib/chunk-JF6PN4CF.js +0 -75
- package/lib/chunk-JF6PN4CF.js.map +0 -1
- package/lib/chunk-JGQSZ4FV.cjs +0 -75
- package/lib/chunk-JGQSZ4FV.cjs.map +0 -1
- package/lib/chunk-JO56R3TP.cjs +0 -54
- package/lib/chunk-JO56R3TP.cjs.map +0 -1
- package/lib/chunk-JVEOQPIP.cjs +0 -56
- package/lib/chunk-JVEOQPIP.cjs.map +0 -1
- package/lib/chunk-K6QROUP2.js +0 -45
- package/lib/chunk-K6QROUP2.js.map +0 -1
- package/lib/chunk-KA3ARL4M.cjs +0 -47
- package/lib/chunk-KA3ARL4M.cjs.map +0 -1
- package/lib/chunk-KACVNOCD.cjs +0 -53
- package/lib/chunk-KACVNOCD.cjs.map +0 -1
- package/lib/chunk-KBHOKNEY.cjs +0 -55
- package/lib/chunk-KBHOKNEY.cjs.map +0 -1
- package/lib/chunk-KNAQ4UMU.cjs +0 -51
- package/lib/chunk-KNAQ4UMU.cjs.map +0 -1
- package/lib/chunk-KX2TRARQ.js +0 -54
- package/lib/chunk-KX2TRARQ.js.map +0 -1
- package/lib/chunk-KXU3VOOJ.js +0 -73
- package/lib/chunk-KXU3VOOJ.js.map +0 -1
- package/lib/chunk-LA43RTZ4.js +0 -49
- package/lib/chunk-LA43RTZ4.js.map +0 -1
- package/lib/chunk-LAYXKEVY.js +0 -45
- package/lib/chunk-LAYXKEVY.js.map +0 -1
- package/lib/chunk-LBISZHJS.js +0 -45
- package/lib/chunk-LBISZHJS.js.map +0 -1
- package/lib/chunk-LGIROVQI.js +0 -32
- package/lib/chunk-LGIROVQI.js.map +0 -1
- package/lib/chunk-LL2RPBAA.js +0 -50
- package/lib/chunk-LL2RPBAA.js.map +0 -1
- package/lib/chunk-LL3M46A5.cjs +0 -42
- package/lib/chunk-LL3M46A5.cjs.map +0 -1
- package/lib/chunk-LXLCAD45.js +0 -66
- package/lib/chunk-LXLCAD45.js.map +0 -1
- package/lib/chunk-M5JX4ITG.cjs +0 -59
- package/lib/chunk-M5JX4ITG.cjs.map +0 -1
- package/lib/chunk-M7L2QTCA.cjs +0 -47
- package/lib/chunk-M7L2QTCA.cjs.map +0 -1
- package/lib/chunk-MANWK2IC.cjs +0 -62
- package/lib/chunk-MANWK2IC.cjs.map +0 -1
- package/lib/chunk-MIYTWFUU.js +0 -45
- package/lib/chunk-MIYTWFUU.js.map +0 -1
- package/lib/chunk-MMTE4ANB.cjs +0 -39
- package/lib/chunk-MMTE4ANB.cjs.map +0 -1
- package/lib/chunk-MQZYAWYA.cjs +0 -55
- package/lib/chunk-MQZYAWYA.cjs.map +0 -1
- package/lib/chunk-MSHBNBYN.cjs +0 -47
- package/lib/chunk-MSHBNBYN.cjs.map +0 -1
- package/lib/chunk-MYVVTZRG.cjs +0 -51
- package/lib/chunk-MYVVTZRG.cjs.map +0 -1
- package/lib/chunk-N4VDOIED.cjs +0 -43
- package/lib/chunk-N4VDOIED.cjs.map +0 -1
- package/lib/chunk-NDSFGWQP.cjs +0 -67
- package/lib/chunk-NDSFGWQP.cjs.map +0 -1
- package/lib/chunk-NIVC56IB.cjs +0 -56
- package/lib/chunk-NIVC56IB.cjs.map +0 -1
- package/lib/chunk-NZVKSLMS.js +0 -49
- package/lib/chunk-NZVKSLMS.js.map +0 -1
- package/lib/chunk-O35AP4HQ.js +0 -102
- package/lib/chunk-O35AP4HQ.js.map +0 -1
- package/lib/chunk-O43NEDTK.cjs +0 -61
- package/lib/chunk-O43NEDTK.cjs.map +0 -1
- package/lib/chunk-OAYIA3K5.js +0 -52
- package/lib/chunk-OAYIA3K5.js.map +0 -1
- package/lib/chunk-OCVGJZXG.cjs +0 -51
- package/lib/chunk-OCVGJZXG.cjs.map +0 -1
- package/lib/chunk-ODMNRKW7.js +0 -54
- package/lib/chunk-ODMNRKW7.js.map +0 -1
- package/lib/chunk-OK6YNH74.cjs +0 -51
- package/lib/chunk-OK6YNH74.cjs.map +0 -1
- package/lib/chunk-OVIWTYUN.cjs +0 -57
- package/lib/chunk-OVIWTYUN.cjs.map +0 -1
- package/lib/chunk-P45FTR27.js +0 -45
- package/lib/chunk-P45FTR27.js.map +0 -1
- package/lib/chunk-PBVIPSHG.cjs +0 -43
- package/lib/chunk-PBVIPSHG.cjs.map +0 -1
- package/lib/chunk-PCTX2ZF3.js +0 -44
- package/lib/chunk-PCTX2ZF3.js.map +0 -1
- package/lib/chunk-PF2U2L6L.js +0 -28
- package/lib/chunk-PF2U2L6L.js.map +0 -1
- package/lib/chunk-PHOVUFZ4.cjs +0 -47
- package/lib/chunk-PHOVUFZ4.cjs.map +0 -1
- package/lib/chunk-PNUZIK2G.js +0 -36
- package/lib/chunk-PNUZIK2G.js.map +0 -1
- package/lib/chunk-PUJN7S4J.cjs +0 -51
- package/lib/chunk-PUJN7S4J.cjs.map +0 -1
- package/lib/chunk-PUTFLUDX.js +0 -31
- package/lib/chunk-PUTFLUDX.js.map +0 -1
- package/lib/chunk-PVDC6VVA.cjs +0 -50
- package/lib/chunk-PVDC6VVA.cjs.map +0 -1
- package/lib/chunk-PVUVUM5B.cjs +0 -47
- package/lib/chunk-PVUVUM5B.cjs.map +0 -1
- package/lib/chunk-Q5U3QQ6L.cjs +0 -71
- package/lib/chunk-Q5U3QQ6L.cjs.map +0 -1
- package/lib/chunk-QSSLQRDU.js +0 -51
- package/lib/chunk-QSSLQRDU.js.map +0 -1
- package/lib/chunk-QYM7OXUQ.cjs +0 -68
- package/lib/chunk-QYM7OXUQ.cjs.map +0 -1
- package/lib/chunk-QZ7R3CGB.cjs +0 -42
- package/lib/chunk-QZ7R3CGB.cjs.map +0 -1
- package/lib/chunk-RAXA7MPX.js +0 -40
- package/lib/chunk-RAXA7MPX.js.map +0 -1
- package/lib/chunk-RDOB2GZT.cjs +0 -95
- package/lib/chunk-RDOB2GZT.cjs.map +0 -1
- package/lib/chunk-RJPVLWBM.cjs +0 -38
- package/lib/chunk-RJPVLWBM.cjs.map +0 -1
- package/lib/chunk-RM2WFVF5.cjs +0 -61
- package/lib/chunk-RM2WFVF5.cjs.map +0 -1
- package/lib/chunk-RSS5IWAB.cjs +0 -49
- package/lib/chunk-RSS5IWAB.cjs.map +0 -1
- package/lib/chunk-RX3HJ7IR.js +0 -36
- package/lib/chunk-RX3HJ7IR.js.map +0 -1
- package/lib/chunk-RYNUHEGX.js +0 -32
- package/lib/chunk-RYNUHEGX.js.map +0 -1
- package/lib/chunk-RZGKZSXT.js +0 -54
- package/lib/chunk-RZGKZSXT.js.map +0 -1
- package/lib/chunk-S4TPKIG5.js +0 -41
- package/lib/chunk-S4TPKIG5.js.map +0 -1
- package/lib/chunk-S7Q42BBG.cjs +0 -42
- package/lib/chunk-S7Q42BBG.cjs.map +0 -1
- package/lib/chunk-SERRVB25.cjs +0 -51
- package/lib/chunk-SERRVB25.cjs.map +0 -1
- package/lib/chunk-SWSX4KRR.js +0 -27
- package/lib/chunk-SWSX4KRR.js.map +0 -1
- package/lib/chunk-SYSNGHEG.js +0 -40
- package/lib/chunk-SYSNGHEG.js.map +0 -1
- package/lib/chunk-T23Y2QTM.cjs +0 -107
- package/lib/chunk-T23Y2QTM.cjs.map +0 -1
- package/lib/chunk-T3OBEDI4.cjs +0 -56
- package/lib/chunk-T3OBEDI4.cjs.map +0 -1
- package/lib/chunk-T7QXZHTL.cjs +0 -53
- package/lib/chunk-T7QXZHTL.cjs.map +0 -1
- package/lib/chunk-TIA53DAH.js +0 -54
- package/lib/chunk-TIA53DAH.js.map +0 -1
- package/lib/chunk-TJEA37RN.cjs +0 -39
- package/lib/chunk-TJEA37RN.cjs.map +0 -1
- package/lib/chunk-TPO5GEA3.cjs +0 -91
- package/lib/chunk-TPO5GEA3.cjs.map +0 -1
- package/lib/chunk-TUT5DSFS.cjs +0 -49
- package/lib/chunk-TUT5DSFS.cjs.map +0 -1
- package/lib/chunk-U2QBVG5P.js +0 -48
- package/lib/chunk-U2QBVG5P.js.map +0 -1
- package/lib/chunk-U3UQ2KCY.js +0 -59
- package/lib/chunk-U3UQ2KCY.js.map +0 -1
- package/lib/chunk-U7NPDLRU.js +0 -54
- package/lib/chunk-U7NPDLRU.js.map +0 -1
- package/lib/chunk-UB5WDQ5P.cjs +0 -55
- package/lib/chunk-UB5WDQ5P.cjs.map +0 -1
- package/lib/chunk-UFTGYB2P.js +0 -67
- package/lib/chunk-UFTGYB2P.js.map +0 -1
- package/lib/chunk-UW6CNKMD.cjs +0 -56
- package/lib/chunk-UW6CNKMD.cjs.map +0 -1
- package/lib/chunk-UXGOWL37.cjs +0 -47
- package/lib/chunk-UXGOWL37.cjs.map +0 -1
- package/lib/chunk-UZGOFUD6.js +0 -36
- package/lib/chunk-UZGOFUD6.js.map +0 -1
- package/lib/chunk-V2O6SHTJ.js +0 -53
- package/lib/chunk-V2O6SHTJ.js.map +0 -1
- package/lib/chunk-V2SVBB32.js +0 -54
- package/lib/chunk-V2SVBB32.js.map +0 -1
- package/lib/chunk-VBECGZ7Y.js +0 -48
- package/lib/chunk-VBECGZ7Y.js.map +0 -1
- package/lib/chunk-VG5QRLCS.cjs +0 -42
- package/lib/chunk-VG5QRLCS.cjs.map +0 -1
- package/lib/chunk-VJCI73KC.cjs +0 -156
- package/lib/chunk-VJCI73KC.cjs.map +0 -1
- package/lib/chunk-VNX3YIZW.js +0 -40
- package/lib/chunk-VNX3YIZW.js.map +0 -1
- package/lib/chunk-VRRJS3ZM.cjs +0 -284
- package/lib/chunk-VRRJS3ZM.cjs.map +0 -1
- package/lib/chunk-VZWZ2NTW.js +0 -99
- package/lib/chunk-VZWZ2NTW.js.map +0 -1
- package/lib/chunk-W2T4MBV4.js +0 -47
- package/lib/chunk-W2T4MBV4.js.map +0 -1
- package/lib/chunk-W4CBHKYP.cjs +0 -47
- package/lib/chunk-W4CBHKYP.cjs.map +0 -1
- package/lib/chunk-W4M3OCH3.js +0 -51
- package/lib/chunk-W4M3OCH3.js.map +0 -1
- package/lib/chunk-W5RMMV5S.js +0 -53
- package/lib/chunk-W5RMMV5S.js.map +0 -1
- package/lib/chunk-WEQGEKUT.cjs +0 -51
- package/lib/chunk-WEQGEKUT.cjs.map +0 -1
- package/lib/chunk-WHGWYAWD.cjs +0 -33
- package/lib/chunk-WHGWYAWD.cjs.map +0 -1
- package/lib/chunk-WIM4ZWWT.js +0 -40
- package/lib/chunk-WIM4ZWWT.js.map +0 -1
- package/lib/chunk-WISHL4PL.js +0 -48
- package/lib/chunk-WISHL4PL.js.map +0 -1
- package/lib/chunk-WIVDPOV2.js +0 -53
- package/lib/chunk-WIVDPOV2.js.map +0 -1
- package/lib/chunk-WL267QRV.cjs +0 -54
- package/lib/chunk-WL267QRV.cjs.map +0 -1
- package/lib/chunk-WL6XIY5R.js +0 -52
- package/lib/chunk-WL6XIY5R.js.map +0 -1
- package/lib/chunk-WYHH5QI4.js +0 -65
- package/lib/chunk-WYHH5QI4.js.map +0 -1
- package/lib/chunk-WYMOOVYG.js +0 -96
- package/lib/chunk-WYMOOVYG.js.map +0 -1
- package/lib/chunk-XBFVGK3J.js +0 -48
- package/lib/chunk-XBFVGK3J.js.map +0 -1
- package/lib/chunk-XBXYSL5J.cjs +0 -98
- package/lib/chunk-XBXYSL5J.cjs.map +0 -1
- package/lib/chunk-XCJM3XRN.cjs +0 -53
- package/lib/chunk-XCJM3XRN.cjs.map +0 -1
- package/lib/chunk-XDRKC6JM.js +0 -276
- package/lib/chunk-XDRKC6JM.js.map +0 -1
- package/lib/chunk-XECAN3XD.cjs +0 -55
- package/lib/chunk-XECAN3XD.cjs.map +0 -1
- package/lib/chunk-XIRWNWMI.cjs +0 -42
- package/lib/chunk-XIRWNWMI.cjs.map +0 -1
- package/lib/chunk-XLEJ2PV3.cjs +0 -61
- package/lib/chunk-XLEJ2PV3.cjs.map +0 -1
- package/lib/chunk-XMSZHD4G.js +0 -45
- package/lib/chunk-XMSZHD4G.js.map +0 -1
- package/lib/chunk-XND3VBYX.cjs +0 -55
- package/lib/chunk-XND3VBYX.cjs.map +0 -1
- package/lib/chunk-XTQHJJJ7.cjs +0 -95
- package/lib/chunk-XTQHJJJ7.cjs.map +0 -1
- package/lib/chunk-XVHODDX7.js +0 -49
- package/lib/chunk-XVHODDX7.js.map +0 -1
- package/lib/chunk-XXTRCYWK.cjs +0 -47
- package/lib/chunk-XXTRCYWK.cjs.map +0 -1
- package/lib/chunk-Y6CYBNR2.cjs +0 -52
- package/lib/chunk-Y6CYBNR2.cjs.map +0 -1
- package/lib/chunk-Y6QGYCKB.js +0 -87
- package/lib/chunk-Y6QGYCKB.js.map +0 -1
- package/lib/chunk-Y6ULTGRO.cjs +0 -56
- package/lib/chunk-Y6ULTGRO.cjs.map +0 -1
- package/lib/chunk-YDOTSBF3.js +0 -52
- package/lib/chunk-YDOTSBF3.js.map +0 -1
- package/lib/chunk-YEPVAW3U.cjs +0 -97
- package/lib/chunk-YEPVAW3U.cjs.map +0 -1
- package/lib/chunk-YJXFSO4R.js +0 -40
- package/lib/chunk-YJXFSO4R.js.map +0 -1
- package/lib/chunk-YLT2R3ZO.cjs +0 -69
- package/lib/chunk-YLT2R3ZO.cjs.map +0 -1
- package/lib/chunk-YMEGKTEP.js +0 -53
- package/lib/chunk-YMEGKTEP.js.map +0 -1
- package/lib/chunk-Z2DSJJDB.cjs +0 -89
- package/lib/chunk-Z2DSJJDB.cjs.map +0 -1
- package/lib/chunk-Z2XON3QS.js +0 -45
- package/lib/chunk-Z2XON3QS.js.map +0 -1
- package/lib/chunk-Z66KN6BV.cjs +0 -93
- package/lib/chunk-Z66KN6BV.cjs.map +0 -1
- package/lib/chunk-ZCDDPJN5.js +0 -50
- package/lib/chunk-ZCDDPJN5.js.map +0 -1
- package/lib/chunk-ZERO5UUI.cjs +0 -95
- package/lib/chunk-ZERO5UUI.cjs.map +0 -1
- package/lib/chunk-ZGLO72NX.cjs +0 -98
- package/lib/chunk-ZGLO72NX.cjs.map +0 -1
- package/lib/chunk-ZJ5UZTQT.js +0 -45
- package/lib/chunk-ZJ5UZTQT.js.map +0 -1
- package/lib/chunk-ZMSILIKP.cjs +0 -95
- package/lib/chunk-ZMSILIKP.cjs.map +0 -1
- package/lib/chunk-ZOASE2AV.cjs +0 -47
- package/lib/chunk-ZOASE2AV.cjs.map +0 -1
- package/lib/chunk-ZRAHMGDW.js +0 -42
- package/lib/chunk-ZRAHMGDW.js.map +0 -1
- package/lib/chunk-ZRZ4KAEU.js +0 -45
- package/lib/chunk-ZRZ4KAEU.js.map +0 -1
- package/lib/chunk-ZTYYOE7T.cjs +0 -126
- package/lib/chunk-ZTYYOE7T.cjs.map +0 -1
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { ApiResource } from './chunk-ADBL6GHI.js';
|
|
2
|
+
|
|
3
|
+
// src/resources/event_stores.ts
|
|
4
|
+
var EventStores = class _EventStores extends ApiResource {
|
|
5
|
+
static TYPE = "event_stores";
|
|
6
|
+
isEventStore(resource) {
|
|
7
|
+
return resource.type && resource.type === _EventStores.TYPE;
|
|
8
|
+
}
|
|
9
|
+
relationship(id) {
|
|
10
|
+
return super.relationshipOneToOne(id);
|
|
11
|
+
}
|
|
12
|
+
relationshipToMany(...ids) {
|
|
13
|
+
return super.relationshipOneToMany(...ids);
|
|
14
|
+
}
|
|
15
|
+
type() {
|
|
16
|
+
return _EventStores.TYPE;
|
|
17
|
+
}
|
|
18
|
+
};
|
|
19
|
+
var instance = new EventStores();
|
|
20
|
+
var event_stores_default = instance;
|
|
21
|
+
|
|
22
|
+
export { event_stores_default };
|
|
23
|
+
//# sourceMappingURL=chunk-C7K53SPD.js.map
|
|
24
|
+
//# sourceMappingURL=chunk-C7K53SPD.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/resources/event_stores.ts"],"names":[],"mappings":";;;AA+CA,IAAM,WAAA,GAAN,MAAM,YAAA,SAAoB,WAAA,CAAwB;AAAA,EAEjD,OAAgB,IAAA,GAAuB,cAAA;AAAA,EAKvC,aAAa,QAAA,EAAuC;AACnD,IAAA,OAAO,QAAA,CAAS,IAAA,IAAS,QAAA,CAAS,IAAA,KAAS,YAAA,CAAY,IAAA;AAAA,EACxD;AAAA,EAGA,aAAa,EAAA,EAA+C;AAC3D,IAAA,OAAO,KAAA,CAAM,qBAAoC,EAAE,CAAA;AAAA,EACpD;AAAA,EAEA,sBAAsB,GAAA,EAAgC;AACrD,IAAA,OAAO,KAAA,CAAM,qBAAA,CAAqC,GAAG,GAAG,CAAA;AAAA,EACzD;AAAA,EAGA,IAAA,GAAuB;AACtB,IAAA,OAAO,YAAA,CAAY,IAAA;AAAA,EACpB;AAED,CAAA;AAGA,IAAM,QAAA,GAAW,IAAI,WAAA,EAAY;AACjC,IAAO,oBAAA,GAAQ","file":"chunk-C7K53SPD.js","sourcesContent":["import type { Resource, ResourceId, ResourceRel, ResourceSort, /* ResourceFilter */ } from '../resource'\nimport { ApiResource } from '../resource'\n\n\n\n\ntype EventStoreType = 'event_stores'\ntype EventStoreRel = ResourceRel & { type: EventStoreType }\n\n\nexport type EventStoreSort = Pick<EventStore, 'id'> & ResourceSort\n// export type EventStoreFilter = Pick<EventStore, 'id'> & ResourceFilter\n\n\ninterface EventStore extends Resource {\n\t\n\treadonly type: EventStoreType\n\n\t/** \n\t * The type of the affected resource. One of 'applications', 'event_stores', 'organizations', 'addresses', 'geocoders', 'events', 'tags', 'adjustments', 'price_lists', 'payment_gateways', 'payment_methods', 'markets', 'customer_groups', 'line_items', 'discount_engine_items', 'promotions', 'adyen_payments', 'orders', 'transactions', 'order_factories', 'attachments', 'tax_calculators', 'tax_categories', 'skus', 'shipping_categories', 'axerve_payments', 'order_validation_rules', 'braintree_payments', 'bundles', 'sku_lists', 'sku_list_items', 'stock_items', 'stock_locations', 'promotion_rules', 'coupons', 'returns', 'carrier_accounts', 'checkout_com_payments', 'customers', 'customer_addresses', 'customer_payment_sources', 'customer_subscriptions', 'order_subscriptions', 'customer_password_resets', 'delivery_lead_times', 'shipping_methods', 'shipments', 'discount_engines', 'pickups', 'parcels', 'webhooks', 'event_callbacks', 'external_payments', 'gift_cards', 'in_stock_subscriptions', 'inventory_models', 'inventory_stock_locations', 'inventory_return_locations', 'klarna_payments', 'line_item_options', 'return_line_items', 'stock_line_items', 'stock_reservations', 'stock_transfers', 'notifications', 'sku_options', 'links', 'tax_rules', 'merchants', 'subscription_models', 'stores', 'price_list_schedulers', 'order_subscription_items', 'payment_options', 'resource_errors', 'paypal_payments', 'packages', 'parcel_line_items', 'prices', 'price_tiers', 'reserved_stocks', 'satispay_payments', 'shipping_method_tiers', 'shipping_zones', 'stripe_payments', or 'wire_transfers'.\n\t * @example ```\"orders\"```\n\t */\n\tresource_type?: 'applications' | 'event_stores' | 'organizations' | 'addresses' | 'geocoders' | 'events' | 'tags' | 'adjustments' | 'price_lists' | 'payment_gateways' | 'payment_methods' | 'markets' | 'customer_groups' | 'line_items' | 'discount_engine_items' | 'promotions' | 'adyen_payments' | 'orders' | 'transactions' | 'order_factories' | 'attachments' | 'tax_calculators' | 'tax_categories' | 'skus' | 'shipping_categories' | 'axerve_payments' | 'order_validation_rules' | 'braintree_payments' | 'bundles' | 'sku_lists' | 'sku_list_items' | 'stock_items' | 'stock_locations' | 'promotion_rules' | 'coupons' | 'returns' | 'carrier_accounts' | 'checkout_com_payments' | 'customers' | 'customer_addresses' | 'customer_payment_sources' | 'customer_subscriptions' | 'order_subscriptions' | 'customer_password_resets' | 'delivery_lead_times' | 'shipping_methods' | 'shipments' | 'discount_engines' | 'pickups' | 'parcels' | 'webhooks' | 'event_callbacks' | 'external_payments' | 'gift_cards' | 'in_stock_subscriptions' | 'inventory_models' | 'inventory_stock_locations' | 'inventory_return_locations' | 'klarna_payments' | 'line_item_options' | 'return_line_items' | 'stock_line_items' | 'stock_reservations' | 'stock_transfers' | 'notifications' | 'sku_options' | 'links' | 'tax_rules' | 'merchants' | 'subscription_models' | 'stores' | 'price_list_schedulers' | 'order_subscription_items' | 'payment_options' | 'resource_errors' | 'paypal_payments' | 'packages' | 'parcel_line_items' | 'prices' | 'price_tiers' | 'reserved_stocks' | 'satispay_payments' | 'shipping_method_tiers' | 'shipping_zones' | 'stripe_payments' | 'wire_transfers' | null\n\t/** \n\t * The ID of the affected resource.\n\t * @example ```\"PzdJhdLdYV\"```\n\t */\n\tresource_id?: string | null\n\t/** \n\t * The type of change (one of create or update).\n\t * @example ```\"update\"```\n\t */\n\tevent?: string | null\n\t/** \n\t * The object changes payload.\n\t * @example ```{\"status\":[\"draft\",\"placed\"]}```\n\t */\n\tpayload?: Record<string, any> | null\n\t/** \n\t * Information about who triggered the change.\n\t * @example ```{\"application\":{\"id\":\"DNOPYiZYpn\",\"kind\":\"sales_channel\",\"public\":true},\"owner\":{\"id\":\"yQQrBhLBmQ\",\"type\":\"Customer\"}}```\n\t */\n\twho?: Record<string, any> | null\n\t\n}\n\n\nclass EventStores extends ApiResource<EventStore> {\n\n\tstatic readonly TYPE: EventStoreType = 'event_stores' as const\n\n\t\n\n\n\tisEventStore(resource: any): resource is EventStore {\n\t\treturn resource.type && (resource.type === EventStores.TYPE)\n\t}\n\n\n\trelationship(id: string | ResourceId | null): EventStoreRel {\n\t\treturn super.relationshipOneToOne<EventStoreRel>(id)\n\t}\n\n\trelationshipToMany(...ids: string[]): EventStoreRel[] {\n\t\treturn super.relationshipOneToMany<EventStoreRel>(...ids)\n\t}\n\n\n\ttype(): EventStoreType {\n\t\treturn EventStores.TYPE\n\t}\n\n}\n\n\nconst instance = new EventStores()\nexport default instance\n\nexport type { EventStore, EventStores, EventStoreType }\n"]}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import { ApiResource } from './chunk-ADBL6GHI.js';
|
|
2
|
+
|
|
3
|
+
// src/resources/stripe_payments.ts
|
|
4
|
+
var StripePayments = class _StripePayments extends ApiResource {
|
|
5
|
+
static TYPE = "stripe_payments";
|
|
6
|
+
async create(resource, params, options) {
|
|
7
|
+
return this.resources.create({ ...resource, type: _StripePayments.TYPE }, params, options);
|
|
8
|
+
}
|
|
9
|
+
async update(resource, params, options) {
|
|
10
|
+
return this.resources.update({ ...resource, type: _StripePayments.TYPE }, params, options);
|
|
11
|
+
}
|
|
12
|
+
async delete(id, options) {
|
|
13
|
+
await this.resources.delete(typeof id === "string" ? { id, type: _StripePayments.TYPE } : id, options);
|
|
14
|
+
}
|
|
15
|
+
async order(stripePaymentId, params, options) {
|
|
16
|
+
const _stripePaymentId = stripePaymentId.id || stripePaymentId;
|
|
17
|
+
return this.resources.fetch({ type: "orders" }, `stripe_payments/${_stripePaymentId}/order`, params, options);
|
|
18
|
+
}
|
|
19
|
+
async payment_gateway(stripePaymentId, params, options) {
|
|
20
|
+
const _stripePaymentId = stripePaymentId.id || stripePaymentId;
|
|
21
|
+
return this.resources.fetch({ type: "payment_gateways" }, `stripe_payments/${_stripePaymentId}/payment_gateway`, params, options);
|
|
22
|
+
}
|
|
23
|
+
async event_stores(stripePaymentId, params, options) {
|
|
24
|
+
const _stripePaymentId = stripePaymentId.id || stripePaymentId;
|
|
25
|
+
return this.resources.fetch({ type: "event_stores" }, `stripe_payments/${_stripePaymentId}/event_stores`, params, options);
|
|
26
|
+
}
|
|
27
|
+
async _update(id, params, options) {
|
|
28
|
+
return this.resources.update({ id: typeof id === "string" ? id : id.id, type: _StripePayments.TYPE, _update: true }, params, options);
|
|
29
|
+
}
|
|
30
|
+
async _refresh(id, params, options) {
|
|
31
|
+
return this.resources.update({ id: typeof id === "string" ? id : id.id, type: _StripePayments.TYPE, _refresh: true }, params, options);
|
|
32
|
+
}
|
|
33
|
+
isStripePayment(resource) {
|
|
34
|
+
return resource.type && resource.type === _StripePayments.TYPE;
|
|
35
|
+
}
|
|
36
|
+
relationship(id) {
|
|
37
|
+
return super.relationshipOneToOne(id);
|
|
38
|
+
}
|
|
39
|
+
relationshipToMany(...ids) {
|
|
40
|
+
return super.relationshipOneToMany(...ids);
|
|
41
|
+
}
|
|
42
|
+
type() {
|
|
43
|
+
return _StripePayments.TYPE;
|
|
44
|
+
}
|
|
45
|
+
};
|
|
46
|
+
var instance = new StripePayments();
|
|
47
|
+
var stripe_payments_default = instance;
|
|
48
|
+
|
|
49
|
+
export { stripe_payments_default };
|
|
50
|
+
//# sourceMappingURL=chunk-CEZMXGF2.js.map
|
|
51
|
+
//# sourceMappingURL=chunk-CEZMXGF2.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/resources/stripe_payments.ts"],"names":[],"mappings":";;;AA0JA,IAAM,cAAA,GAAN,MAAM,eAAA,SAAuB,WAAA,CAA2B;AAAA,EAEvD,OAAgB,IAAA,GAA0B,iBAAA;AAAA,EAE1C,MAAM,MAAA,CAAO,QAAA,EAA+B,MAAA,EAA6C,OAAA,EAAmD;AAC3I,IAAA,OAAO,IAAA,CAAK,SAAA,CAAU,MAAA,CAA2C,EAAE,GAAG,QAAA,EAAU,IAAA,EAAM,eAAA,CAAe,IAAA,EAAK,EAAG,MAAA,EAAQ,OAAO,CAAA;AAAA,EAC7H;AAAA,EAEA,MAAM,MAAA,CAAO,QAAA,EAA+B,MAAA,EAA6C,OAAA,EAAm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{ ListResponse, Resource, ResourceCreate, ResourceId, ResourceRel, ResourceSort, /* ResourceFilter */ ResourcesConfig, ResourceUpdate, } from '../resource'\nimport { ApiResource } from '../resource'\nimport type { EventStore } from './event_stores'\nimport type { Order, OrderType } from './orders'\nimport type { PaymentGateway } from './payment_gateways'\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\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 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 { StripePayment, StripePaymentCreate, StripePayments, StripePaymentType, StripePaymentUpdate }\n"]}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { ApiResource } from './chunk-ADBL6GHI.js';
|
|
2
|
+
|
|
3
|
+
// src/resources/attachments.ts
|
|
4
|
+
var Attachments = class _Attachments extends ApiResource {
|
|
5
|
+
static TYPE = "attachments";
|
|
6
|
+
async create(resource, params, options) {
|
|
7
|
+
return this.resources.create({ ...resource, type: _Attachments.TYPE }, params, options);
|
|
8
|
+
}
|
|
9
|
+
async update(resource, params, options) {
|
|
10
|
+
return this.resources.update({ ...resource, type: _Attachments.TYPE }, params, options);
|
|
11
|
+
}
|
|
12
|
+
async delete(id, options) {
|
|
13
|
+
await this.resources.delete(typeof id === "string" ? { id, type: _Attachments.TYPE } : id, options);
|
|
14
|
+
}
|
|
15
|
+
async event_stores(attachmentId, params, options) {
|
|
16
|
+
const _attachmentId = attachmentId.id || attachmentId;
|
|
17
|
+
return this.resources.fetch({ type: "event_stores" }, `attachments/${_attachmentId}/event_stores`, params, options);
|
|
18
|
+
}
|
|
19
|
+
isAttachment(resource) {
|
|
20
|
+
return resource.type && resource.type === _Attachments.TYPE;
|
|
21
|
+
}
|
|
22
|
+
relationship(id) {
|
|
23
|
+
return super.relationshipOneToOne(id);
|
|
24
|
+
}
|
|
25
|
+
relationshipToMany(...ids) {
|
|
26
|
+
return super.relationshipOneToMany(...ids);
|
|
27
|
+
}
|
|
28
|
+
type() {
|
|
29
|
+
return _Attachments.TYPE;
|
|
30
|
+
}
|
|
31
|
+
};
|
|
32
|
+
var instance = new Attachments();
|
|
33
|
+
var attachments_default = instance;
|
|
34
|
+
|
|
35
|
+
export { attachments_default };
|
|
36
|
+
//# sourceMappingURL=chunk-CGJSEELZ.js.map
|
|
37
|
+
//# sourceMappingURL=chunk-CGJSEELZ.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/resources/attachments.ts"],"names":[],"mappings":";;;AAkKA,IAAM,WAAA,GAAN,MAAM,YAAA,SAAoB,WAAA,CAAwB;AAAA,EAEjD,OAAgB,IAAA,GAAuB,aAAA;AAAA,EAEvC,MAAM,MAAA,CAAO,QAAA,EAA4B,MAAA,EAA0C,OAAA,EAAgD;AAClI,IAAA,OAAO,IAAA,CAAK,SAAA,CAAU,MAAA,CA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;AACtB,IAAA,OAAO,YAAA,CAAY,IAAA;AAAA,EACpB;AAED,CAAA;AAGA,IAAM,QAAA,GAAW,IAAI,WAAA,EAAY;AACjC,IAAO,mBAAA,GAAQ","file":"chunk-CGJSEELZ.js","sourcesContent":["import type { QueryParamsList, QueryParamsRetrieve } from '../query'\nimport type { ListResponse, Resource, ResourceCreate, ResourceId, ResourceRel, ResourceSort, /* ResourceFilter */ ResourcesConfig, ResourceUpdate, } from '../resource'\nimport { ApiResource } from '../resource'\nimport type { Bundle, BundleType } from './bundles'\nimport type { CarrierAccount, CarrierAccountType } from './carrier_accounts'\nimport type { CouponRecipient, CouponRecipientType } from './coupon_recipients'\nimport type { CustomerGroup, CustomerGroupType } from './customer_groups'\nimport type { Customer, CustomerType } from './customers'\nimport type { DeliveryLeadTime, DeliveryLeadTimeType } from './delivery_lead_times'\nimport type { DiscountEngine, DiscountEngineType } from './discount_engines'\nimport type { EventStore } from './event_stores'\nimport type { Geocoder, GeocoderType } from './geocoders'\nimport type { GiftCardRecipient, GiftCardRecipientType } from './gift_card_recipients'\nimport type { GiftCard, GiftCardType } from './gift_cards'\nimport type { InventoryModel, InventoryModelType } from './inventory_models'\nimport type { Market, MarketType } from './markets'\nimport type { Merchant, MerchantType } from './merchants'\nimport type { Order, OrderType } from './orders'\nimport type { Package, PackageType } from './packages'\nimport type { Parcel, ParcelType } from './parcels'\nimport type { PaymentMethod, PaymentMethodType } from './payment_methods'\nimport type { PaymentOption, PaymentOptionType } from './payment_options'\nimport type { PriceList, PriceListType } from './price_lists'\nimport type { PriceTier, PriceTierType } from './price_tiers'\nimport type { Price, PriceType } from './prices'\nimport type { Promotion, PromotionType } from './promotions'\nimport type { Return, ReturnType } from './returns'\nimport type { Shipment, ShipmentType } from './shipments'\nimport type { ShippingCategory, ShippingCategoryType } from './shipping_categories'\nimport type { ShippingMethodTier, ShippingMethodTierType } from './shipping_method_tiers'\nimport type { ShippingMethod, ShippingMethodType } from './shipping_methods'\nimport type { ShippingZone, ShippingZoneType } from './shipping_zones'\nimport type { SkuList, SkuListType } from './sku_lists'\nimport type { SkuOption, SkuOptionType } from './sku_options'\nimport type { Sku, SkuType } from './skus'\nimport type { StockItem, StockItemType } from './stock_items'\nimport type { StockLocation, StockLocationType } from './stock_locations'\nimport type { StockTransfer, StockTransferType } from './stock_transfers'\nimport type { SubscriptionModel, SubscriptionModelType } from './subscription_models'\nimport type { TaxCalculator, TaxCalculatorType } from './tax_calculators'\nimport type { TaxCategory, TaxCategoryType } from './tax_categories'\nimport type { Transaction, TransactionType } from './transactions'\n\n\ntype AttachmentType = 'attachments'\ntype AttachmentRel = ResourceRel & { type: AttachmentType }\ntype GeocoderRel = ResourceRel & { type: GeocoderType }\ntype PriceListRel = ResourceRel & { type: PriceListType }\ntype PaymentMethodRel = ResourceRel & { type: PaymentMethodType }\ntype MarketRel = ResourceRel & { type: MarketType }\ntype CustomerGroupRel = ResourceRel & { type: CustomerGroupType }\ntype PromotionRel = ResourceRel & { type: PromotionType }\ntype OrderRel = ResourceRel & { type: OrderType }\ntype TransactionRel = ResourceRel & { type: TransactionType }\ntype TaxCalculatorRel = ResourceRel & { type: TaxCalculatorType }\ntype TaxCategoryRel = ResourceRel & { type: TaxCategoryType }\ntype SkuRel = ResourceRel & { type: SkuType }\ntype ShippingCategoryRel = ResourceRel & { type: ShippingCategoryType }\ntype BundleRel = ResourceRel & { type: BundleType }\ntype SkuListRel = ResourceRel & { type: SkuListType }\ntype StockItemRel = ResourceRel & { type: StockItemType }\ntype StockLocationRel = ResourceRel & { type: StockLocationType }\ntype ReturnRel = ResourceRel & { type: ReturnType }\ntype CarrierAccountRel = ResourceRel & { type: CarrierAccountType }\ntype CouponRecipientRel = ResourceRel & { type: CouponRecipientType }\ntype CustomerRel = ResourceRel & { type: CustomerType }\ntype DeliveryLeadTimeRel = ResourceRel & { type: DeliveryLeadTimeType }\ntype ShippingMethodRel = ResourceRel & { type: ShippingMethodType }\ntype ShipmentRel = ResourceRel & { type: ShipmentType }\ntype DiscountEngineRel = ResourceRel & { type: DiscountEngineType }\ntype ParcelRel = ResourceRel & { type: ParcelType }\ntype GiftCardRecipientRel = ResourceRel & { type: GiftCardRecipientType }\ntype GiftCardRel = ResourceRel & { type: GiftCardType }\ntype InventoryModelRel = ResourceRel & { type: InventoryModelType }\ntype StockTransferRel = ResourceRel & { type: StockTransferType }\ntype SkuOptionRel = ResourceRel & { type: SkuOptionType }\ntype MerchantRel = ResourceRel & { type: MerchantType }\ntype SubscriptionModelRel = ResourceRel & { type: SubscriptionModelType }\ntype PaymentOptionRel = ResourceRel & { type: PaymentOptionType }\ntype PackageRel = ResourceRel & { type: PackageType }\ntype PriceRel = ResourceRel & { type: PriceType }\ntype PriceTierRel = ResourceRel & { type: PriceTierType }\ntype ShippingMethodTierRel = ResourceRel & { type: ShippingMethodTierType }\ntype ShippingZoneRel = ResourceRel & { type: ShippingZoneType }\n\n\nexport type AttachmentSort = Pick<Attachment, 'id' | 'name'> & ResourceSort\n// export type AttachmentFilter = Pick<Attachment, 'id' | 'name' | 'description'> & ResourceFilter\n\n\ninterface Attachment extends Resource {\n\t\n\treadonly type: AttachmentType\n\n\t/** \n\t * The internal name of the attachment.\n\t * @example ```\"DDT transport document\"```\n\t */\n\tname: string\n\t/** \n\t * An internal description of the attachment.\n\t * @example ```\"Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.\"```\n\t */\n\tdescription?: string | null\n\t/** \n\t * The attachment URL.\n\t * @example ```\"https://s3.yourdomain.com/attachment.pdf\"```\n\t */\n\turl?: string | null\n\n\tattachable?: Geocoder | PriceList | PaymentMethod | Market | CustomerGroup | Promotion | Order | Transaction | TaxCalculator | TaxCategory | Sku | ShippingCategory | Bundle | SkuList | StockItem | StockLocation | Return | CarrierAccount | CouponRecipient | Customer | DeliveryLeadTime | ShippingMethod | Shipment | DiscountEngine | Parcel | GiftCardRecipient | GiftCard | InventoryModel | StockTransfer | SkuOption | Merchant | SubscriptionModel | PaymentOption | Package | Price | PriceTier | ShippingMethodTier | ShippingZone | null\n\tevent_stores?: EventStore[] | null\n\n}\n\n\ninterface AttachmentCreate extends ResourceCreate {\n\t\n\t/** \n\t * The internal name of the attachment.\n\t * @example ```\"DDT transport document\"```\n\t */\n\tname: string\n\t/** \n\t * An internal description of the attachment.\n\t * @example ```\"Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.\"```\n\t */\n\tdescription?: string | null\n\t/** \n\t * The attachment URL.\n\t * @example ```\"https://s3.yourdomain.com/attachment.pdf\"```\n\t */\n\turl?: string | null\n\n\tattachable: GeocoderRel | PriceListRel | PaymentMethodRel | MarketRel | CustomerGroupRel | PromotionRel | OrderRel | TransactionRel | TaxCalculatorRel | TaxCategoryRel | SkuRel | ShippingCategoryRel | BundleRel | SkuListRel | StockItemRel | StockLocationRel | ReturnRel | CarrierAccountRel | CouponRecipientRel | CustomerRel | DeliveryLeadTimeRel | ShippingMethodRel | ShipmentRel | DiscountEngineRel | ParcelRel | GiftCardRecipientRel | GiftCardRel | InventoryModelRel | StockTransferRel | SkuOptionRel | MerchantRel | SubscriptionModelRel | PaymentOptionRel | PackageRel | PriceRel | PriceTierRel | ShippingMethodTierRel | ShippingZoneRel\n\n}\n\n\ninterface AttachmentUpdate extends ResourceUpdate {\n\t\n\t/** \n\t * The internal name of the attachment.\n\t * @example ```\"DDT transport document\"```\n\t */\n\tname?: string | null\n\t/** \n\t * An internal description of the attachment.\n\t * @example ```\"Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.\"```\n\t */\n\tdescription?: string | null\n\t/** \n\t * The attachment URL.\n\t * @example ```\"https://s3.yourdomain.com/attachment.pdf\"```\n\t */\n\turl?: string | null\n\n\tattachable?: GeocoderRel | PriceListRel | PaymentMethodRel | MarketRel | CustomerGroupRel | PromotionRel | OrderRel | TransactionRel | TaxCalculatorRel | TaxCategoryRel | SkuRel | ShippingCategoryRel | BundleRel | SkuListRel | StockItemRel | StockLocationRel | ReturnRel | CarrierAccountRel | CouponRecipientRel | CustomerRel | DeliveryLeadTimeRel | ShippingMethodRel | ShipmentRel | DiscountEngineRel | ParcelRel | GiftCardRecipientRel | GiftCardRel | InventoryModelRel | StockTransferRel | SkuOptionRel | MerchantRel | SubscriptionModelRel | PaymentOptionRel | PackageRel | PriceRel | PriceTierRel | ShippingMethodTierRel | ShippingZoneRel | null\n\n}\n\n\nclass Attachments extends ApiResource<Attachment> {\n\n\tstatic readonly TYPE: AttachmentType = 'attachments' as const\n\n\tasync create(resource: AttachmentCreate, params?: QueryParamsRetrieve<Attachment>, options?: ResourcesConfig): Promise<Attachment> {\n\t\treturn this.resources.create<AttachmentCreate, Attachment>({ ...resource, type: Attachments.TYPE }, params, options)\n\t}\n\n\tasync update(resource: AttachmentUpdate, params?: QueryParamsRetrieve<Attachment>, options?: ResourcesConfig): Promise<Attachment> {\n\t\treturn this.resources.update<AttachmentUpdate, Attachment>({ ...resource, type: Attachments.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: Attachments.TYPE } : id, options)\n\t}\n\n\tasync event_stores(attachmentId: string | Attachment, params?: QueryParamsList<EventStore>, options?: ResourcesConfig): Promise<ListResponse<EventStore>> {\n\t\tconst _attachmentId = (attachmentId as Attachment).id || attachmentId as string\n\t\treturn this.resources.fetch<EventStore>({ type: 'event_stores' }, `attachments/${_attachmentId}/event_stores`, params, options) as unknown as ListResponse<EventStore>\n\t}\n\n\n\tisAttachment(resource: any): resource is Attachment {\n\t\treturn resource.type && (resource.type === Attachments.TYPE)\n\t}\n\n\n\trelationship(id: string | ResourceId | null): AttachmentRel {\n\t\treturn super.relationshipOneToOne<AttachmentRel>(id)\n\t}\n\n\trelationshipToMany(...ids: string[]): AttachmentRel[] {\n\t\treturn super.relationshipOneToMany<AttachmentRel>(...ids)\n\t}\n\n\n\ttype(): AttachmentType {\n\t\treturn Attachments.TYPE\n\t}\n\n}\n\n\nconst instance = new Attachments()\nexport default instance\n\nexport type { Attachment, AttachmentCreate, Attachments, AttachmentType, AttachmentUpdate }\n"]}
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import { ApiResource } from './chunk-ADBL6GHI.js';
|
|
2
|
+
|
|
3
|
+
// src/resources/payment_methods.ts
|
|
4
|
+
var PaymentMethods = class _PaymentMethods extends ApiResource {
|
|
5
|
+
static TYPE = "payment_methods";
|
|
6
|
+
async create(resource, params, options) {
|
|
7
|
+
return this.resources.create({ ...resource, type: _PaymentMethods.TYPE }, params, options);
|
|
8
|
+
}
|
|
9
|
+
async update(resource, params, options) {
|
|
10
|
+
return this.resources.update({ ...resource, type: _PaymentMethods.TYPE }, params, options);
|
|
11
|
+
}
|
|
12
|
+
async delete(id, options) {
|
|
13
|
+
await this.resources.delete(typeof id === "string" ? { id, type: _PaymentMethods.TYPE } : id, options);
|
|
14
|
+
}
|
|
15
|
+
async market(paymentMethodId, params, options) {
|
|
16
|
+
const _paymentMethodId = paymentMethodId.id || paymentMethodId;
|
|
17
|
+
return this.resources.fetch({ type: "markets" }, `payment_methods/${_paymentMethodId}/market`, params, options);
|
|
18
|
+
}
|
|
19
|
+
async payment_gateway(paymentMethodId, params, options) {
|
|
20
|
+
const _paymentMethodId = paymentMethodId.id || paymentMethodId;
|
|
21
|
+
return this.resources.fetch({ type: "payment_gateways" }, `payment_methods/${_paymentMethodId}/payment_gateway`, params, options);
|
|
22
|
+
}
|
|
23
|
+
async store(paymentMethodId, params, options) {
|
|
24
|
+
const _paymentMethodId = paymentMethodId.id || paymentMethodId;
|
|
25
|
+
return this.resources.fetch({ type: "stores" }, `payment_methods/${_paymentMethodId}/store`, params, options);
|
|
26
|
+
}
|
|
27
|
+
async attachments(paymentMethodId, params, options) {
|
|
28
|
+
const _paymentMethodId = paymentMethodId.id || paymentMethodId;
|
|
29
|
+
return this.resources.fetch({ type: "attachments" }, `payment_methods/${_paymentMethodId}/attachments`, params, options);
|
|
30
|
+
}
|
|
31
|
+
async event_stores(paymentMethodId, params, options) {
|
|
32
|
+
const _paymentMethodId = paymentMethodId.id || paymentMethodId;
|
|
33
|
+
return this.resources.fetch({ type: "event_stores" }, `payment_methods/${_paymentMethodId}/event_stores`, params, options);
|
|
34
|
+
}
|
|
35
|
+
async _disable(id, params, options) {
|
|
36
|
+
return this.resources.update({ id: typeof id === "string" ? id : id.id, type: _PaymentMethods.TYPE, _disable: true }, params, options);
|
|
37
|
+
}
|
|
38
|
+
async _enable(id, params, options) {
|
|
39
|
+
return this.resources.update({ id: typeof id === "string" ? id : id.id, type: _PaymentMethods.TYPE, _enable: true }, params, options);
|
|
40
|
+
}
|
|
41
|
+
isPaymentMethod(resource) {
|
|
42
|
+
return resource.type && resource.type === _PaymentMethods.TYPE;
|
|
43
|
+
}
|
|
44
|
+
relationship(id) {
|
|
45
|
+
return super.relationshipOneToOne(id);
|
|
46
|
+
}
|
|
47
|
+
relationshipToMany(...ids) {
|
|
48
|
+
return super.relationshipOneToMany(...ids);
|
|
49
|
+
}
|
|
50
|
+
type() {
|
|
51
|
+
return _PaymentMethods.TYPE;
|
|
52
|
+
}
|
|
53
|
+
};
|
|
54
|
+
var instance = new PaymentMethods();
|
|
55
|
+
var payment_methods_default = instance;
|
|
56
|
+
|
|
57
|
+
export { payment_methods_default };
|
|
58
|
+
//# sourceMappingURL=chunk-CHD7QDKS.js.map
|
|
59
|
+
//# sourceMappingURL=chunk-CHD7QDKS.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/resources/payment_methods.ts"],"names":[],"mappings":";;;AA6NA,IAAM,cAAA,GAAN,MAAM,eAAA,SAAuB,WAAA,CAA2B;AAAA,EAEvD,OAAgB,IAAA,GAA0B,iBAAA;AAAA,EAE1C,MAAM,MAAA,CAAO,QAAA,EAA+B,MAAA,EAA6C,OAAA,EAAmD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A,EACzK;AAAA,EAEA,MAAM,OAAA,CAAQ,EAAA,EAA4B,MAAA,EAA6C,OAAA,EAAmD;AACzI,IAAA,OAAO,KAAK,SAAA,CAAU,MAAA,CAA2C,EAAE,EAAA,EAAK,OAAO,OAAO,QAAA,GAAW,EAAA,GAAI,EAAA,CAAG,EAAA,EAAI,MAAM,eAAA,CAAe,IAAA,EAAM,SAAS,IAAA,EAAK,EAAG,QAAQ,OAAO,CAAA;AAAA,EACxK;AAAA,EAGA,gBAAgB,QAAA,EAA0C;AACzD,IAAA,OAAO,QAAA,CAAS,IAAA,IAAS,QAAA,CAAS,IAAA,KAAS,eAAA,CAAe,IAAA;AAAA,EAC3D;AAAA,EAGA,aAAa,EAAA,EAAkD;AAC9D,IAAA,OAAO,KAAA,CAAM,qBAAuC,EAAE,CAAA;AAAA,EACvD;AAAA,EAEA,sBAAsB,GAAA,EAAmC;AACxD,IAAA,OAAO,KAAA,CAAM,qBAAA,CAAwC,GAAG,GAAG,CAAA;AAAA,EAC5D;AAAA,EAGA,IAAA,GAA0B;AACzB,IAAA,OAAO,eAAA,CAAe,IAAA;AAAA,EACvB;AAED,CAAA;AAGA,IAAM,QAAA,GAAW,IAAI,cAAA,EAAe;AACpC,IAAO,uBAAA,GAAQ","file":"chunk-CHD7QDKS.js","sourcesContent":["import type { QueryParamsList, QueryParamsRetrieve } from '../query'\nimport type { ListResponse, Resource, ResourceCreate, ResourceId, ResourceRel, ResourceSort, /* ResourceFilter */ ResourcesConfig, ResourceUpdate, } from '../resource'\nimport { ApiResource } from '../resource'\nimport type { Attachment } from './attachments'\nimport type { EventStore } from './event_stores'\nimport type { Market, MarketType } from './markets'\nimport type { PaymentGateway, PaymentGatewayType } from './payment_gateways'\nimport type { Store, StoreType } from './stores'\n\n\ntype PaymentMethodType = 'payment_methods'\ntype PaymentMethodRel = ResourceRel & { type: PaymentMethodType }\ntype MarketRel = ResourceRel & { type: MarketType }\ntype PaymentGatewayRel = ResourceRel & { type: PaymentGatewayType }\ntype StoreRel = ResourceRel & { type: StoreType }\n\n\nexport type PaymentMethodSort = Pick<PaymentMethod, 'id' | 'name' | 'payment_source_type' | 'currency_code' | 'price_amount_cents' | 'disabled_at'> & ResourceSort\n// export type PaymentMethodFilter = Pick<PaymentMethod, 'id' | 'name' | 'payment_source_type' | 'currency_code' | 'price_amount_cents' | 'disabled_at'> & ResourceFilter\n\n\ninterface PaymentMethod extends Resource {\n\t\n\treadonly type: PaymentMethodType\n\n\t/** \n\t * The payment method's internal name.\n\t * @example ```\"Stripe Payment\"```\n\t */\n\tname?: string | null\n\t/** \n\t * The payment source type. One of 'adyen_payments', 'axerve_payments', 'braintree_payments', 'checkout_com_payments', 'external_payments', 'klarna_payments', 'paypal_payments', 'satispay_payments', 'stripe_payments', or 'wire_transfers'.\n\t * @example ```\"stripe_payments\"```\n\t */\n\tpayment_source_type: 'adyen_payments' | 'axerve_payments' | 'braintree_payments' | 'checkout_com_payments' | 'external_payments' | 'klarna_payments' | 'paypal_payments' | 'satispay_payments' | 'stripe_payments' | 'wire_transfers'\n\t/** \n\t * The international 3-letter currency code as defined by the ISO 4217 standard.\n\t * @example ```\"EUR\"```\n\t */\n\tcurrency_code?: string | null\n\t/** \n\t * Send this attribute if you want to mark the payment as MOTO, must be supported by payment gateway.\n\t */\n\tmoto?: boolean | null\n\t/** \n\t * Send this attribute if you want to require the payment capture before fulfillment.\n\t * @example ```true```\n\t */\n\trequire_capture?: boolean | null\n\t/** \n\t * Send this attribute if you want to automatically place the order upon authorization performed asynchronously.\n\t * @example ```true```\n\t */\n\tauto_place?: boolean | null\n\t/** \n\t * Send this attribute if you want to automatically capture the payment upon authorization.\n\t */\n\tauto_capture?: boolean | null\n\t/** \n\t * The payment method's price, in cents.\n\t */\n\tprice_amount_cents: number\n\t/** \n\t * The payment method's price, float.\n\t */\n\tprice_amount_float?: number | null\n\t/** \n\t * The payment method's price, formatted.\n\t * @example ```\"€0,00\"```\n\t */\n\tformatted_price_amount?: string | null\n\t/** \n\t * Send this attribute if you want to limit automatic capture to orders for which the total amount is equal or less than the specified value, in cents.\n\t */\n\tauto_capture_max_amount_cents?: number | null\n\t/** \n\t * The automatic capture max amount, float.\n\t */\n\tauto_capture_max_amount_float?: number | null\n\t/** \n\t * The automatic capture max amount, formatted.\n\t * @example ```\"€0,00\"```\n\t */\n\tformatted_auto_capture_max_amount?: string | null\n\t/** \n\t * Time at which this resource was disabled.\n\t * @example ```\"2018-01-01T12:00:00.000Z\"```\n\t */\n\tdisabled_at?: string | null\n\n\tmarket?: Market | null\n\tpayment_gateway?: PaymentGateway | null\n\tstore?: Store | null\n\tattachments?: Attachment[] | null\n\tevent_stores?: EventStore[] | null\n\n}\n\n\ninterface PaymentMethodCreate extends ResourceCreate {\n\t\n\t/** \n\t * The payment method's internal name.\n\t * @example ```\"Stripe Payment\"```\n\t */\n\tname?: string | null\n\t/** \n\t * The payment source type. One of 'adyen_payments', 'axerve_payments', 'braintree_payments', 'checkout_com_payments', 'external_payments', 'klarna_payments', 'paypal_payments', 'satispay_payments', 'stripe_payments', or 'wire_transfers'.\n\t * @example ```\"stripe_payments\"```\n\t */\n\tpayment_source_type: 'adyen_payments' | 'axerve_payments' | 'braintree_payments' | 'checkout_com_payments' | 'external_payments' | 'klarna_payments' | 'paypal_payments' | 'satispay_payments' | 'stripe_payments' | 'wire_transfers'\n\t/** \n\t * The international 3-letter currency code as defined by the ISO 4217 standard.\n\t * @example ```\"EUR\"```\n\t */\n\tcurrency_code?: string | null\n\t/** \n\t * Send this attribute if you want to mark the payment as MOTO, must be supported by payment gateway.\n\t */\n\tmoto?: boolean | null\n\t/** \n\t * Send this attribute if you want to require the payment capture before fulfillment.\n\t * @example ```true```\n\t */\n\trequire_capture?: boolean | null\n\t/** \n\t * Send this attribute if you want to automatically place the order upon authorization performed asynchronously.\n\t * @example ```true```\n\t */\n\tauto_place?: boolean | null\n\t/** \n\t * Send this attribute if you want to automatically capture the payment upon authorization.\n\t */\n\tauto_capture?: boolean | null\n\t/** \n\t * The payment method's price, in cents.\n\t */\n\tprice_amount_cents: number\n\t/** \n\t * Send this attribute if you want to limit automatic capture to orders for which the total amount is equal or less than the specified value, in cents.\n\t */\n\tauto_capture_max_amount_cents?: number | null\n\t/** \n\t * Send this attribute if you want to mark this resource as disabled.\n\t * @example ```true```\n\t */\n\t_disable?: boolean | null\n\t/** \n\t * Send this attribute if you want to mark this resource as enabled.\n\t * @example ```true```\n\t */\n\t_enable?: boolean | null\n\n\tmarket?: MarketRel | null\n\tpayment_gateway: PaymentGatewayRel\n\tstore?: StoreRel | null\n\n}\n\n\ninterface PaymentMethodUpdate extends ResourceUpdate {\n\t\n\t/** \n\t * The payment method's internal name.\n\t * @example ```\"Stripe Payment\"```\n\t */\n\tname?: string | null\n\t/** \n\t * The payment source type. One of 'adyen_payments', 'axerve_payments', 'braintree_payments', 'checkout_com_payments', 'external_payments', 'klarna_payments', 'paypal_payments', 'satispay_payments', 'stripe_payments', or 'wire_transfers'.\n\t * @example ```\"stripe_payments\"```\n\t */\n\tpayment_source_type?: 'adyen_payments' | 'axerve_payments' | 'braintree_payments' | 'checkout_com_payments' | 'external_payments' | 'klarna_payments' | 'paypal_payments' | 'satispay_payments' | 'stripe_payments' | 'wire_transfers' | null\n\t/** \n\t * The international 3-letter currency code as defined by the ISO 4217 standard.\n\t * @example ```\"EUR\"```\n\t */\n\tcurrency_code?: string | null\n\t/** \n\t * Send this attribute if you want to mark the payment as MOTO, must be supported by payment gateway.\n\t */\n\tmoto?: boolean | null\n\t/** \n\t * Send this attribute if you want to require the payment capture before fulfillment.\n\t * @example ```true```\n\t */\n\trequire_capture?: boolean | null\n\t/** \n\t * Send this attribute if you want to automatically place the order upon authorization performed asynchronously.\n\t * @example ```true```\n\t */\n\tauto_place?: boolean | null\n\t/** \n\t * Send this attribute if you want to automatically capture the payment upon authorization.\n\t */\n\tauto_capture?: boolean | null\n\t/** \n\t * The payment method's price, in cents.\n\t */\n\tprice_amount_cents?: number | null\n\t/** \n\t * Send this attribute if you want to limit automatic capture to orders for which the total amount is equal or less than the specified value, in cents.\n\t */\n\tauto_capture_max_amount_cents?: number | null\n\t/** \n\t * Send this attribute if you want to mark this resource as disabled.\n\t * @example ```true```\n\t */\n\t_disable?: boolean | null\n\t/** \n\t * Send this attribute if you want to mark this resource as enabled.\n\t * @example ```true```\n\t */\n\t_enable?: boolean | null\n\n\tmarket?: MarketRel | null\n\tpayment_gateway?: PaymentGatewayRel | null\n\tstore?: StoreRel | null\n\n}\n\n\nclass PaymentMethods extends ApiResource<PaymentMethod> {\n\n\tstatic readonly TYPE: PaymentMethodType = 'payment_methods' as const\n\n\tasync create(resource: PaymentMethodCreate, params?: QueryParamsRetrieve<PaymentMethod>, options?: ResourcesConfig): Promise<PaymentMethod> {\n\t\treturn this.resources.create<PaymentMethodCreate, PaymentMethod>({ ...resource, type: PaymentMethods.TYPE }, params, options)\n\t}\n\n\tasync update(resource: PaymentMethodUpdate, params?: QueryParamsRetrieve<PaymentMethod>, options?: ResourcesConfig): Promise<PaymentMethod> {\n\t\treturn this.resources.update<PaymentMethodUpdate, PaymentMethod>({ ...resource, type: PaymentMethods.TYPE }, params, options)\n\t}\n\n\tasync delete(id: string | ResourceId, options?: ResourcesConfig): Promise<void> {\n\t\tawait this.resources.delete((typeof id === 'string')? { id, type: PaymentMethods.TYPE } : id, options)\n\t}\n\n\tasync market(paymentMethodId: string | PaymentMethod, params?: QueryParamsRetrieve<Market>, options?: ResourcesConfig): Promise<Market> {\n\t\tconst _paymentMethodId = (paymentMethodId as PaymentMethod).id || paymentMethodId as string\n\t\treturn this.resources.fetch<Market>({ type: 'markets' }, `payment_methods/${_paymentMethodId}/market`, params, options) as unknown as Market\n\t}\n\n\tasync payment_gateway(paymentMethodId: string | PaymentMethod, params?: QueryParamsRetrieve<PaymentGateway>, options?: ResourcesConfig): Promise<PaymentGateway> {\n\t\tconst _paymentMethodId = (paymentMethodId as PaymentMethod).id || paymentMethodId as string\n\t\treturn this.resources.fetch<PaymentGateway>({ type: 'payment_gateways' }, `payment_methods/${_paymentMethodId}/payment_gateway`, params, options) as unknown as PaymentGateway\n\t}\n\n\tasync store(paymentMethodId: string | PaymentMethod, params?: QueryParamsRetrieve<Store>, options?: ResourcesConfig): Promise<Store> {\n\t\tconst _paymentMethodId = (paymentMethodId as PaymentMethod).id || paymentMethodId as string\n\t\treturn this.resources.fetch<Store>({ type: 'stores' }, `payment_methods/${_paymentMethodId}/store`, params, options) as unknown as Store\n\t}\n\n\tasync attachments(paymentMethodId: string | PaymentMethod, params?: QueryParamsList<Attachment>, options?: ResourcesConfig): Promise<ListResponse<Attachment>> {\n\t\tconst _paymentMethodId = (paymentMethodId as PaymentMethod).id || paymentMethodId as string\n\t\treturn this.resources.fetch<Attachment>({ type: 'attachments' }, `payment_methods/${_paymentMethodId}/attachments`, params, options) as unknown as ListResponse<Attachment>\n\t}\n\n\tasync event_stores(paymentMethodId: string | PaymentMethod, params?: QueryParamsList<EventStore>, options?: ResourcesConfig): Promise<ListResponse<EventStore>> {\n\t\tconst _paymentMethodId = (paymentMethodId as PaymentMethod).id || paymentMethodId as string\n\t\treturn this.resources.fetch<EventStore>({ type: 'event_stores' }, `payment_methods/${_paymentMethodId}/event_stores`, params, options) as unknown as ListResponse<EventStore>\n\t}\n\n\tasync _disable(id: string | PaymentMethod, params?: QueryParamsRetrieve<PaymentMethod>, options?: ResourcesConfig): Promise<PaymentMethod> {\n\t\treturn this.resources.update<PaymentMethodUpdate, PaymentMethod>({ id: (typeof id === 'string')? id: id.id, type: PaymentMethods.TYPE, _disable: true }, params, options)\n\t}\n\n\tasync _enable(id: string | PaymentMethod, params?: QueryParamsRetrieve<PaymentMethod>, options?: ResourcesConfig): Promise<PaymentMethod> {\n\t\treturn this.resources.update<PaymentMethodUpdate, PaymentMethod>({ id: (typeof id === 'string')? id: id.id, type: PaymentMethods.TYPE, _enable: true }, params, options)\n\t}\n\n\n\tisPaymentMethod(resource: any): resource is PaymentMethod {\n\t\treturn resource.type && (resource.type === PaymentMethods.TYPE)\n\t}\n\n\n\trelationship(id: string | ResourceId | null): PaymentMethodRel {\n\t\treturn super.relationshipOneToOne<PaymentMethodRel>(id)\n\t}\n\n\trelationshipToMany(...ids: string[]): PaymentMethodRel[] {\n\t\treturn super.relationshipOneToMany<PaymentMethodRel>(...ids)\n\t}\n\n\n\ttype(): PaymentMethodType {\n\t\treturn PaymentMethods.TYPE\n\t}\n\n}\n\n\nconst instance = new PaymentMethods()\nexport default instance\n\nexport type { PaymentMethod, PaymentMethodCreate, PaymentMethods, PaymentMethodType, PaymentMethodUpdate }\n"]}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { ApiResource } from './chunk-ADBL6GHI.js';
|
|
2
|
+
|
|
3
|
+
// src/resources/events.ts
|
|
4
|
+
var Events = class _Events extends ApiResource {
|
|
5
|
+
static TYPE = "events";
|
|
6
|
+
async update(resource, params, options) {
|
|
7
|
+
return this.resources.update({ ...resource, type: _Events.TYPE }, params, options);
|
|
8
|
+
}
|
|
9
|
+
async webhooks(eventId, params, options) {
|
|
10
|
+
const _eventId = eventId.id || eventId;
|
|
11
|
+
return this.resources.fetch({ type: "webhooks" }, `events/${_eventId}/webhooks`, params, options);
|
|
12
|
+
}
|
|
13
|
+
async last_event_callbacks(eventId, params, options) {
|
|
14
|
+
const _eventId = eventId.id || eventId;
|
|
15
|
+
return this.resources.fetch({ type: "event_callbacks" }, `events/${_eventId}/last_event_callbacks`, params, options);
|
|
16
|
+
}
|
|
17
|
+
async event_stores(eventId, params, options) {
|
|
18
|
+
const _eventId = eventId.id || eventId;
|
|
19
|
+
return this.resources.fetch({ type: "event_stores" }, `events/${_eventId}/event_stores`, params, options);
|
|
20
|
+
}
|
|
21
|
+
async _trigger(id, params, options) {
|
|
22
|
+
return this.resources.update({ id: typeof id === "string" ? id : id.id, type: _Events.TYPE, _trigger: true }, params, options);
|
|
23
|
+
}
|
|
24
|
+
isEvent(resource) {
|
|
25
|
+
return resource.type && resource.type === _Events.TYPE;
|
|
26
|
+
}
|
|
27
|
+
relationship(id) {
|
|
28
|
+
return super.relationshipOneToOne(id);
|
|
29
|
+
}
|
|
30
|
+
relationshipToMany(...ids) {
|
|
31
|
+
return super.relationshipOneToMany(...ids);
|
|
32
|
+
}
|
|
33
|
+
type() {
|
|
34
|
+
return _Events.TYPE;
|
|
35
|
+
}
|
|
36
|
+
};
|
|
37
|
+
var instance = new Events();
|
|
38
|
+
var events_default = instance;
|
|
39
|
+
|
|
40
|
+
export { events_default };
|
|
41
|
+
//# sourceMappingURL=chunk-CIKMIKZ6.js.map
|
|
42
|
+
//# sourceMappingURL=chunk-CIKMIKZ6.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/resources/events.ts"],"names":[],"mappings":";;;AA4CA,IAAM,MAAA,GAAN,MAAM,OAAA,SAAe,WAAA,CAAmB;AAAA,EAEvC,OAAgB,IAAA,GAAkB,QAAA;AAAA,EAElC,MAAM,MAAA,CAAO,QAAA,EAAuB,MAAA,EAAqC,OAAA,EAA2C;AACnH,IAAA,OAAO,IAAA,CAAK,SAAA,CAAU,MAAA,CAA2B,EAAE,GAAG,QAAA,EAAU,IAAA,EAAM,OAAA,CAAO,IAAA,EAAK,EAAG,MAAA,EAAQ,OAAO,CAAA;AAAA,EACrG;AAAA,EAEA,MAAM,QAAA,CAAS,OAAA,EAAyB,MAAA,EAAmC,OAAA,EAA2D;AACrI,IAAA,MAAM,QAAA,GAAY,QAAkB,EAAA,IAAM,OAAA;AAC1C,IAAA,OAAO,IAAA,CAAK,SAAA,CAAU,KAAA,CAAe,EAAE,IAAA,EAAM,UAAA,EAAW,EAAG,CAAA,OAAA,EAAU,QAAQ,CAAA,SAAA,CAAA,EAAa,MAAA,EAAQ,OAAO,CAAA;AAAA,EAC1G;AAAA,EAEA,MAAM,oBAAA,CAAqB,OAAA,EAAyB,MAAA,EAAyC,OAAA,EAAiE;AAC7J,IAAA,MAAM,QAAA,GAAY,QAAkB,EAAA,IAAM,OA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AO;AAC5B,IAAO,cAAA,GAAQ","file":"chunk-CIKMIKZ6.js","sourcesContent":["import type { QueryParamsList, QueryParamsRetrieve } from '../query'\nimport type { ListResponse, Resource, ResourceId, ResourceRel, ResourceSort, /* ResourceFilter */ ResourcesConfig, ResourceUpdate, } from '../resource'\nimport { ApiResource } from '../resource'\nimport type { EventCallback } from './event_callbacks'\nimport type { EventStore } from './event_stores'\nimport type { Webhook } from './webhooks'\n\n\ntype EventType = 'events'\ntype EventRel = ResourceRel & { type: EventType }\n\n\nexport type EventSort = Pick<Event, 'id' | 'name'> & ResourceSort\n// export type EventFilter = Pick<Event, 'id' | 'name'> & ResourceFilter\n\n\ninterface Event extends Resource {\n\t\n\treadonly type: EventType\n\n\t/** \n\t * The event's internal name.\n\t * @example ```\"orders.create\"```\n\t */\n\tname: string\n\n\twebhooks?: Webhook[] | null\n\tlast_event_callbacks?: EventCallback[] | null\n\tevent_stores?: EventStore[] | null\n\n}\n\n\ninterface EventUpdate extends ResourceUpdate {\n\t\n\t/** \n\t * Send this attribute if you want to force webhooks execution for this event. Cannot be passed by sales channels.\n\t * @example ```true```\n\t */\n\t_trigger?: boolean | null\n\t\n}\n\n\nclass Events extends ApiResource<Event> {\n\n\tstatic readonly TYPE: EventType = 'events' as const\n\n\tasync update(resource: EventUpdate, params?: QueryParamsRetrieve<Event>, options?: ResourcesConfig): Promise<Event> {\n\t\treturn this.resources.update<EventUpdate, Event>({ ...resource, type: Events.TYPE }, params, options)\n\t}\n\n\tasync webhooks(eventId: string | Event, params?: QueryParamsList<Webhook>, options?: ResourcesConfig): Promise<ListResponse<Webhook>> {\n\t\tconst _eventId = (eventId as Event).id || eventId as string\n\t\treturn this.resources.fetch<Webhook>({ type: 'webhooks' }, `events/${_eventId}/webhooks`, params, options) as unknown as ListResponse<Webhook>\n\t}\n\n\tasync last_event_callbacks(eventId: string | Event, params?: QueryParamsList<EventCallback>, options?: ResourcesConfig): Promise<ListResponse<EventCallback>> {\n\t\tconst _eventId = (eventId as Event).id || eventId as string\n\t\treturn this.resources.fetch<EventCallback>({ type: 'event_callbacks' }, `events/${_eventId}/last_event_callbacks`, params, options) as unknown as ListResponse<EventCallback>\n\t}\n\n\tasync event_stores(eventId: string | Event, params?: QueryParamsList<EventStore>, options?: ResourcesConfig): Promise<ListResponse<EventStore>> {\n\t\tconst _eventId = (eventId as Event).id || eventId as string\n\t\treturn this.resources.fetch<EventStore>({ type: 'event_stores' }, `events/${_eventId}/event_stores`, params, options) as unknown as ListResponse<EventStore>\n\t}\n\n\tasync _trigger(id: string | Event, params?: QueryParamsRetrieve<Event>, options?: ResourcesConfig): Promise<Event> {\n\t\treturn this.resources.update<EventUpdate, Event>({ id: (typeof id === 'string')? id: id.id, type: Events.TYPE, _trigger: true }, params, options)\n\t}\n\n\n\tisEvent(resource: any): resource is Event {\n\t\treturn resource.type && (resource.type === Events.TYPE)\n\t}\n\n\n\trelationship(id: string | ResourceId | null): EventRel {\n\t\treturn super.relationshipOneToOne<EventRel>(id)\n\t}\n\n\trelationshipToMany(...ids: string[]): EventRel[] {\n\t\treturn super.relationshipOneToMany<EventRel>(...ids)\n\t}\n\n\n\ttype(): EventType {\n\t\treturn Events.TYPE\n\t}\n\n}\n\n\nconst instance = new Events()\nexport default instance\n\nexport type { Event, Events, EventType, EventUpdate }\n"]}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { ApiResource } from './chunk-ADBL6GHI.js';
|
|
2
|
+
|
|
3
|
+
// src/resources/reserved_stocks.ts
|
|
4
|
+
var ReservedStocks = class _ReservedStocks extends ApiResource {
|
|
5
|
+
static TYPE = "reserved_stocks";
|
|
6
|
+
async stock_item(reservedStockId, params, options) {
|
|
7
|
+
const _reservedStockId = reservedStockId.id || reservedStockId;
|
|
8
|
+
return this.resources.fetch({ type: "stock_items" }, `reserved_stocks/${_reservedStockId}/stock_item`, params, options);
|
|
9
|
+
}
|
|
10
|
+
async sku(reservedStockId, params, options) {
|
|
11
|
+
const _reservedStockId = reservedStockId.id || reservedStockId;
|
|
12
|
+
return this.resources.fetch({ type: "skus" }, `reserved_stocks/${_reservedStockId}/sku`, params, options);
|
|
13
|
+
}
|
|
14
|
+
async stock_reservations(reservedStockId, params, options) {
|
|
15
|
+
const _reservedStockId = reservedStockId.id || reservedStockId;
|
|
16
|
+
return this.resources.fetch({ type: "stock_reservations" }, `reserved_stocks/${_reservedStockId}/stock_reservations`, params, options);
|
|
17
|
+
}
|
|
18
|
+
async event_stores(reservedStockId, params, options) {
|
|
19
|
+
const _reservedStockId = reservedStockId.id || reservedStockId;
|
|
20
|
+
return this.resources.fetch({ type: "event_stores" }, `reserved_stocks/${_reservedStockId}/event_stores`, params, options);
|
|
21
|
+
}
|
|
22
|
+
isReservedStock(resource) {
|
|
23
|
+
return resource.type && resource.type === _ReservedStocks.TYPE;
|
|
24
|
+
}
|
|
25
|
+
relationship(id) {
|
|
26
|
+
return super.relationshipOneToOne(id);
|
|
27
|
+
}
|
|
28
|
+
relationshipToMany(...ids) {
|
|
29
|
+
return super.relationshipOneToMany(...ids);
|
|
30
|
+
}
|
|
31
|
+
type() {
|
|
32
|
+
return _ReservedStocks.TYPE;
|
|
33
|
+
}
|
|
34
|
+
};
|
|
35
|
+
var instance = new ReservedStocks();
|
|
36
|
+
var reserved_stocks_default = instance;
|
|
37
|
+
|
|
38
|
+
export { reserved_stocks_default };
|
|
39
|
+
//# sourceMappingURL=chunk-CN4ZAHGA.js.map
|
|
40
|
+
//# sourceMappingURL=chunk-CN4ZAHGA.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/resources/reserved_stocks.ts"],"names":[],"mappings":";;;AAmCA,IAAM,cAAA,GAAN,MAAM,eAAA,SAAuB,WAAA,CAA2B;AAAA,EAEvD,OAAgB,IAAA,GAA0B,iBAAA;AAAA,EAE1C,MAAM,UAAA,CAAW,eAAA,EAAyC,MAAA,EAAyC,OAAA,EAA+C;AACjJ,IAAA,MAAM,gBAAA,GAAoB,gBAAkC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,IAAA,KAAS,eAAA,CAAe,IAAA;AAAA,EAC3D;AAAA,EAGA,aAAa,EAAA,EAAkD;AAC9D,IAAA,OAAO,KAAA,CAAM,qBAAuC,EAAE,CAAA;AAAA,EACvD;AAAA,EAEA,sBAAsB,GAAA,EAAmC;AACxD,IAAA,OAAO,KAAA,CAAM,qBAAA,CAAwC,GAAG,GAAG,CAAA;AAAA,EAC5D;AAAA,EAGA,IAAA,GAA0B;AACzB,IAAA,OAAO,eAAA,CAAe,IAAA;AAAA,EACvB;AAED,CAAA;AAGA,IAAM,QAAA,GAAW,IAAI,cAAA,EAAe;AACpC,IAAO,uBAAA,GAAQ","file":"chunk-CN4ZAHGA.js","sourcesContent":["import type { QueryParamsList, QueryParamsRetrieve } from '../query'\nimport type { ListResponse, Resource, ResourceId, ResourceRel, ResourceSort, /* ResourceFilter */ ResourcesConfig, } from '../resource'\nimport { ApiResource } from '../resource'\nimport type { EventStore } from './event_stores'\nimport type { Sku } from './skus'\nimport type { StockItem } from './stock_items'\nimport type { StockReservation } from './stock_reservations'\n\n\ntype ReservedStockType = 'reserved_stocks'\ntype ReservedStockRel = ResourceRel & { type: ReservedStockType }\n\n\nexport type ReservedStockSort = Pick<ReservedStock, 'id' | 'quantity'> & ResourceSort\n// export type ReservedStockFilter = Pick<ReservedStock, 'id' | 'quantity'> & ResourceFilter\n\n\ninterface ReservedStock extends Resource {\n\t\n\treadonly type: ReservedStockType\n\n\t/** \n\t * The stock item reserved quantity.\n\t * @example ```100```\n\t */\n\tquantity: number\n\n\tstock_item?: StockItem | null\n\tsku?: Sku | null\n\tstock_reservations?: StockReservation[] | null\n\tevent_stores?: EventStore[] | null\n\n}\n\n\nclass ReservedStocks extends ApiResource<ReservedStock> {\n\n\tstatic readonly TYPE: ReservedStockType = 'reserved_stocks' as const\n\n\tasync stock_item(reservedStockId: string | ReservedStock, params?: QueryParamsRetrieve<StockItem>, options?: ResourcesConfig): Promise<StockItem> {\n\t\tconst _reservedStockId = (reservedStockId as ReservedStock).id || reservedStockId as string\n\t\treturn this.resources.fetch<StockItem>({ type: 'stock_items' }, `reserved_stocks/${_reservedStockId}/stock_item`, params, options) as unknown as StockItem\n\t}\n\n\tasync sku(reservedStockId: string | ReservedStock, params?: QueryParamsRetrieve<Sku>, options?: ResourcesConfig): Promise<Sku> {\n\t\tconst _reservedStockId = (reservedStockId as ReservedStock).id || reservedStockId as string\n\t\treturn this.resources.fetch<Sku>({ type: 'skus' }, `reserved_stocks/${_reservedStockId}/sku`, params, options) as unknown as Sku\n\t}\n\n\tasync stock_reservations(reservedStockId: string | ReservedStock, params?: QueryParamsList<StockReservation>, options?: ResourcesConfig): Promise<ListResponse<StockReservation>> {\n\t\tconst _reservedStockId = (reservedStockId as ReservedStock).id || reservedStockId as string\n\t\treturn this.resources.fetch<StockReservation>({ type: 'stock_reservations' }, `reserved_stocks/${_reservedStockId}/stock_reservations`, params, options) as unknown as ListResponse<StockReservation>\n\t}\n\n\tasync event_stores(reservedStockId: string | ReservedStock, params?: QueryParamsList<EventStore>, options?: ResourcesConfig): Promise<ListResponse<EventStore>> {\n\t\tconst _reservedStockId = (reservedStockId as ReservedStock).id || reservedStockId as string\n\t\treturn this.resources.fetch<EventStore>({ type: 'event_stores' }, `reserved_stocks/${_reservedStockId}/event_stores`, params, options) as unknown as ListResponse<EventStore>\n\t}\n\n\n\tisReservedStock(resource: any): resource is ReservedStock {\n\t\treturn resource.type && (resource.type === ReservedStocks.TYPE)\n\t}\n\n\n\trelationship(id: string | ResourceId | null): ReservedStockRel {\n\t\treturn super.relationshipOneToOne<ReservedStockRel>(id)\n\t}\n\n\trelationshipToMany(...ids: string[]): ReservedStockRel[] {\n\t\treturn super.relationshipOneToMany<ReservedStockRel>(...ids)\n\t}\n\n\n\ttype(): ReservedStockType {\n\t\treturn ReservedStocks.TYPE\n\t}\n\n}\n\n\nconst instance = new ReservedStocks()\nexport default instance\n\nexport type { ReservedStock, ReservedStocks, ReservedStockType }\n"]}
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var chunkXYPIGF36_cjs = require('./chunk-XYPIGF36.cjs');
|
|
4
|
+
|
|
5
|
+
// src/resources/stripe_gateways.ts
|
|
6
|
+
var StripeGateways = class _StripeGateways extends chunkXYPIGF36_cjs.ApiResource {
|
|
7
|
+
static TYPE = "stripe_gateways";
|
|
8
|
+
async create(resource, params, options) {
|
|
9
|
+
return this.resources.create({ ...resource, type: _StripeGateways.TYPE }, params, options);
|
|
10
|
+
}
|
|
11
|
+
async update(resource, params, options) {
|
|
12
|
+
return this.resources.update({ ...resource, type: _StripeGateways.TYPE }, params, options);
|
|
13
|
+
}
|
|
14
|
+
async delete(id, options) {
|
|
15
|
+
await this.resources.delete(typeof id === "string" ? { id, type: _StripeGateways.TYPE } : id, options);
|
|
16
|
+
}
|
|
17
|
+
async payment_methods(stripeGatewayId, params, options) {
|
|
18
|
+
const _stripeGatewayId = stripeGatewayId.id || stripeGatewayId;
|
|
19
|
+
return this.resources.fetch({ type: "payment_methods" }, `stripe_gateways/${_stripeGatewayId}/payment_methods`, params, options);
|
|
20
|
+
}
|
|
21
|
+
async event_stores(stripeGatewayId, params, options) {
|
|
22
|
+
const _stripeGatewayId = stripeGatewayId.id || stripeGatewayId;
|
|
23
|
+
return this.resources.fetch({ type: "event_stores" }, `stripe_gateways/${_stripeGatewayId}/event_stores`, params, options);
|
|
24
|
+
}
|
|
25
|
+
async stripe_payments(stripeGatewayId, params, options) {
|
|
26
|
+
const _stripeGatewayId = stripeGatewayId.id || stripeGatewayId;
|
|
27
|
+
return this.resources.fetch({ type: "stripe_payments" }, `stripe_gateways/${_stripeGatewayId}/stripe_payments`, params, options);
|
|
28
|
+
}
|
|
29
|
+
async _disable(id, params, options) {
|
|
30
|
+
return this.resources.update({ id: typeof id === "string" ? id : id.id, type: _StripeGateways.TYPE, _disable: true }, params, options);
|
|
31
|
+
}
|
|
32
|
+
async _enable(id, params, options) {
|
|
33
|
+
return this.resources.update({ id: typeof id === "string" ? id : id.id, type: _StripeGateways.TYPE, _enable: true }, params, options);
|
|
34
|
+
}
|
|
35
|
+
async _check(id, params, options) {
|
|
36
|
+
return this.resources.update({ id: typeof id === "string" ? id : id.id, type: _StripeGateways.TYPE, _check: true }, params, options);
|
|
37
|
+
}
|
|
38
|
+
isStripeGateway(resource) {
|
|
39
|
+
return resource.type && resource.type === _StripeGateways.TYPE;
|
|
40
|
+
}
|
|
41
|
+
relationship(id) {
|
|
42
|
+
return super.relationshipOneToOne(id);
|
|
43
|
+
}
|
|
44
|
+
relationshipToMany(...ids) {
|
|
45
|
+
return super.relationshipOneToMany(...ids);
|
|
46
|
+
}
|
|
47
|
+
type() {
|
|
48
|
+
return _StripeGateways.TYPE;
|
|
49
|
+
}
|
|
50
|
+
};
|
|
51
|
+
var instance = new StripeGateways();
|
|
52
|
+
var stripe_gateways_default = instance;
|
|
53
|
+
|
|
54
|
+
exports.stripe_gateways_default = stripe_gateways_default;
|
|
55
|
+
//# sourceMappingURL=chunk-CNDVEHRU.cjs.map
|
|
56
|
+
//# sourceMappingURL=chunk-CNDVEHRU.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/resources/stripe_gateways.ts"],"names":["ApiResource"],"mappings":";;;;;AAyJA,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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AwC,GAAG,GAAG,CAAA;AAAA,EAC5D;AAAA,EAGA,IAAA,GAA0B;AACzB,IAAA,OAAO,eAAA,CAAe,IAAA;AAAA,EACvB;AAED,CAAA;AAGA,IAAM,QAAA,GAAW,IAAI,cAAA,EAAe;AACpC,IAAO,uBAAA,GAAQ","file":"chunk-CNDVEHRU.cjs","sourcesContent":["import type { QueryParamsList, QueryParamsRetrieve } from '../query'\nimport type { ListResponse, Resource, ResourceCreate, ResourceId, ResourceRel, ResourceSort, /* ResourceFilter */ ResourcesConfig, ResourceUpdate, } from '../resource'\nimport { ApiResource } from '../resource'\nimport type { EventStore } from './event_stores'\nimport type { PaymentMethod } from './payment_methods'\nimport type { StripePayment } from './stripe_payments'\n\n\ntype StripeGatewayType = 'stripe_gateways'\ntype StripeGatewayRel = ResourceRel & { type: StripeGatewayType }\n\n\nexport type StripeGatewaySort = Pick<StripeGateway, 'id' | 'name' | 'disabled_at'> & ResourceSort\n// export type StripeGatewayFilter = Pick<StripeGateway, 'id' | 'name' | 'disabled_at'> & ResourceFilter\n\n\ninterface StripeGateway extends Resource {\n\t\n\treadonly type: StripeGatewayType\n\n\t/** \n\t * The payment gateway's internal name.\n\t * @example ```\"US payment gateway\"```\n\t */\n\tname: string\n\tforce_payments?: boolean | null\n\t/** \n\t * The payment gateway's API credential keys last digits.\n\t * @example ```{\"api_key\":\"********BW989\"}```\n\t */\n\tcredential_keys?: Record<string, any> | null\n\t/** \n\t * Time at which this resource was disabled.\n\t * @example ```\"2018-01-01T12:00:00.000Z\"```\n\t */\n\tdisabled_at?: string | null\n\t/** \n\t * The 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 * Indicates if the gateway will accept payment methods enabled in the Stripe dashboard.\n\t * @example ```true```\n\t */\n\tauto_payments?: boolean | null\n\t/** \n\t * The gateway webhook endpoint ID, generated automatically.\n\t * @example ```\"xxxx-yyyy-zzzz\"```\n\t */\n\twebhook_endpoint_id?: string | null\n\t/** \n\t * The gateway webhook endpoint secret, generated automatically.\n\t * @example ```\"xxxx-yyyy-zzzz\"```\n\t */\n\twebhook_endpoint_secret?: string | null\n\t/** \n\t * The gateway webhook URL, generated automatically.\n\t * @example ```\"https://core.commercelayer.co/webhook_callbacks/stripe_gateways/xxxxx\"```\n\t */\n\twebhook_endpoint_url?: string | null\n\n\tpayment_methods?: PaymentMethod[] | null\n\tevent_stores?: EventStore[] | null\n\tstripe_payments?: StripePayment[] | null\n\n}\n\n\ninterface StripeGatewayCreate extends ResourceCreate {\n\t\n\t/** \n\t * The payment gateway's internal name.\n\t * @example ```\"US payment gateway\"```\n\t */\n\tname: string\n\tforce_payments?: boolean | null\n\t/** \n\t * Send this attribute if you want to mark this resource as disabled.\n\t * @example ```true```\n\t */\n\t_disable?: boolean | null\n\t/** \n\t * Send this attribute if you want to mark this resource as enabled.\n\t * @example ```true```\n\t */\n\t_enable?: boolean | null\n\t/** \n\t * Send this attribute if you want to check the credentials against the payment gateway's APIs.\n\t * @example ```true```\n\t */\n\t_check?: boolean | null\n\t/** \n\t * The gateway login.\n\t * @example ```\"sk_live_xxxx-yyyy-zzzz\"```\n\t */\n\tlogin: string\n\t/** \n\t * The gateway publishable API key.\n\t * @example ```\"pk_live_xxxx-yyyy-zzzz\"```\n\t */\n\tpublishable_key?: 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 * Indicates if the gateway will accept payment methods enabled in the Stripe dashboard.\n\t * @example ```true```\n\t */\n\tauto_payments?: boolean | null\n\t\n}\n\n\ninterface StripeGatewayUpdate extends ResourceUpdate {\n\t\n\t/** \n\t * The payment gateway's internal name.\n\t * @example ```\"US payment gateway\"```\n\t */\n\tname?: string | null\n\tforce_payments?: boolean | null\n\t/** \n\t * Send this attribute if you want to mark this resource as disabled.\n\t * @example ```true```\n\t */\n\t_disable?: boolean | null\n\t/** \n\t * Send this attribute if you want to mark this resource as enabled.\n\t * @example ```true```\n\t */\n\t_enable?: boolean | null\n\t/** \n\t * Send this attribute if you want to check the credentials against the payment gateway's APIs.\n\t * @example ```true```\n\t */\n\t_check?: boolean | 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 * Indicates if the gateway will accept payment methods enabled in the Stripe dashboard.\n\t * @example ```true```\n\t */\n\tauto_payments?: boolean | null\n\t\n}\n\n\nclass StripeGateways extends ApiResource<StripeGateway> {\n\n\tstatic readonly TYPE: StripeGatewayType = 'stripe_gateways' as const\n\n\tasync create(resource: StripeGatewayCreate, params?: QueryParamsRetrieve<StripeGateway>, options?: ResourcesConfig): Promise<StripeGateway> {\n\t\treturn this.resources.create<StripeGatewayCreate, StripeGateway>({ ...resource, type: StripeGateways.TYPE }, params, options)\n\t}\n\n\tasync update(resource: StripeGatewayUpdate, params?: QueryParamsRetrieve<StripeGateway>, options?: ResourcesConfig): Promise<StripeGateway> {\n\t\treturn this.resources.update<StripeGatewayUpdate, StripeGateway>({ ...resource, type: StripeGateways.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: StripeGateways.TYPE } : id, options)\n\t}\n\n\tasync payment_methods(stripeGatewayId: string | StripeGateway, params?: QueryParamsList<PaymentMethod>, options?: ResourcesConfig): Promise<ListResponse<PaymentMethod>> {\n\t\tconst _stripeGatewayId = (stripeGatewayId as StripeGateway).id || stripeGatewayId as string\n\t\treturn this.resources.fetch<PaymentMethod>({ type: 'payment_methods' }, `stripe_gateways/${_stripeGatewayId}/payment_methods`, params, options) as unknown as ListResponse<PaymentMethod>\n\t}\n\n\tasync event_stores(stripeGatewayId: string | StripeGateway, params?: QueryParamsList<EventStore>, options?: ResourcesConfig): Promise<ListResponse<EventStore>> {\n\t\tconst _stripeGatewayId = (stripeGatewayId as StripeGateway).id || stripeGatewayId as string\n\t\treturn this.resources.fetch<EventStore>({ type: 'event_stores' }, `stripe_gateways/${_stripeGatewayId}/event_stores`, params, options) as unknown as ListResponse<EventStore>\n\t}\n\n\tasync stripe_payments(stripeGatewayId: string | StripeGateway, params?: QueryParamsList<StripePayment>, options?: ResourcesConfig): Promise<ListResponse<StripePayment>> {\n\t\tconst _stripeGatewayId = (stripeGatewayId as StripeGateway).id || stripeGatewayId as string\n\t\treturn this.resources.fetch<StripePayment>({ type: 'stripe_payments' }, `stripe_gateways/${_stripeGatewayId}/stripe_payments`, params, options) as unknown as ListResponse<StripePayment>\n\t}\n\n\tasync _disable(id: string | StripeGateway, params?: QueryParamsRetrieve<StripeGateway>, options?: ResourcesConfig): Promise<StripeGateway> {\n\t\treturn this.resources.update<StripeGatewayUpdate, StripeGateway>({ id: (typeof id === 'string')? id: id.id, type: StripeGateways.TYPE, _disable: true }, params, options)\n\t}\n\n\tasync _enable(id: string | StripeGateway, params?: QueryParamsRetrieve<StripeGateway>, options?: ResourcesConfig): Promise<StripeGateway> {\n\t\treturn this.resources.update<StripeGatewayUpdate, StripeGateway>({ id: (typeof id === 'string')? id: id.id, type: StripeGateways.TYPE, _enable: true }, params, options)\n\t}\n\n\tasync _check(id: string | StripeGateway, params?: QueryParamsRetrieve<StripeGateway>, options?: ResourcesConfig): Promise<StripeGateway> {\n\t\treturn this.resources.update<StripeGatewayUpdate, StripeGateway>({ id: (typeof id === 'string')? id: id.id, type: StripeGateways.TYPE, _check: true }, params, options)\n\t}\n\n\n\tisStripeGateway(resource: any): resource is StripeGateway {\n\t\treturn resource.type && (resource.type === StripeGateways.TYPE)\n\t}\n\n\n\trelationship(id: string | ResourceId | null): StripeGatewayRel {\n\t\treturn super.relationshipOneToOne<StripeGatewayRel>(id)\n\t}\n\n\trelationshipToMany(...ids: string[]): StripeGatewayRel[] {\n\t\treturn super.relationshipOneToMany<StripeGatewayRel>(...ids)\n\t}\n\n\n\ttype(): StripeGatewayType {\n\t\treturn StripeGateways.TYPE\n\t}\n\n}\n\n\nconst instance = new StripeGateways()\nexport default instance\n\nexport type { StripeGateway, StripeGatewayCreate, StripeGateways, StripeGatewayType, StripeGatewayUpdate }\n"]}
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import { ApiResource } from './chunk-ADBL6GHI.js';
|
|
2
|
+
|
|
3
|
+
// src/resources/refunds.ts
|
|
4
|
+
var Refunds = class _Refunds extends ApiResource {
|
|
5
|
+
static TYPE = "refunds";
|
|
6
|
+
async update(resource, params, options) {
|
|
7
|
+
return this.resources.update({ ...resource, type: _Refunds.TYPE }, params, options);
|
|
8
|
+
}
|
|
9
|
+
async order(refundId, params, options) {
|
|
10
|
+
const _refundId = refundId.id || refundId;
|
|
11
|
+
return this.resources.fetch({ type: "orders" }, `refunds/${_refundId}/order`, params, options);
|
|
12
|
+
}
|
|
13
|
+
async attachments(refundId, params, options) {
|
|
14
|
+
const _refundId = refundId.id || refundId;
|
|
15
|
+
return this.resources.fetch({ type: "attachments" }, `refunds/${_refundId}/attachments`, params, options);
|
|
16
|
+
}
|
|
17
|
+
async events(refundId, params, options) {
|
|
18
|
+
const _refundId = refundId.id || refundId;
|
|
19
|
+
return this.resources.fetch({ type: "events" }, `refunds/${_refundId}/events`, params, options);
|
|
20
|
+
}
|
|
21
|
+
async event_stores(refundId, params, options) {
|
|
22
|
+
const _refundId = refundId.id || refundId;
|
|
23
|
+
return this.resources.fetch({ type: "event_stores" }, `refunds/${_refundId}/event_stores`, params, options);
|
|
24
|
+
}
|
|
25
|
+
async reference_capture(refundId, params, options) {
|
|
26
|
+
const _refundId = refundId.id || refundId;
|
|
27
|
+
return this.resources.fetch({ type: "captures" }, `refunds/${_refundId}/reference_capture`, params, options);
|
|
28
|
+
}
|
|
29
|
+
async return(refundId, params, options) {
|
|
30
|
+
const _refundId = refundId.id || refundId;
|
|
31
|
+
return this.resources.fetch({ type: "returns" }, `refunds/${_refundId}/return`, params, options);
|
|
32
|
+
}
|
|
33
|
+
async _forward(id, params, options) {
|
|
34
|
+
return this.resources.update({ id: typeof id === "string" ? id : id.id, type: _Refunds.TYPE, _forward: true }, params, options);
|
|
35
|
+
}
|
|
36
|
+
isRefund(resource) {
|
|
37
|
+
return resource.type && resource.type === _Refunds.TYPE;
|
|
38
|
+
}
|
|
39
|
+
relationship(id) {
|
|
40
|
+
return super.relationshipOneToOne(id);
|
|
41
|
+
}
|
|
42
|
+
relationshipToMany(...ids) {
|
|
43
|
+
return super.relationshipOneToMany(...ids);
|
|
44
|
+
}
|
|
45
|
+
type() {
|
|
46
|
+
return _Refunds.TYPE;
|
|
47
|
+
}
|
|
48
|
+
};
|
|
49
|
+
var instance = new Refunds();
|
|
50
|
+
var refunds_default = instance;
|
|
51
|
+
|
|
52
|
+
export { refunds_default };
|
|
53
|
+
//# sourceMappingURL=chunk-COHQZCSV.js.map
|
|
54
|
+
//# sourceMappingURL=chunk-COHQZCSV.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/resources/refunds.ts"],"names":[],"mappings":";;;AAuHA,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,EAAM,QAAA,CAAQ,IAAA,EAAK,EAAG,MAAA,EAAQ,OAAO,CAAA;AAAA,EACxG;AAAA,EAEA,MAAM,KAAA,CAAM,QAAA,EAA2B,MAAA,EAAqC,OAAA,EAA2C;AACtH,IAAA,MAAM,SAAA,GAAa,SAAoB,EAAA,IAAM,QAAA;AAC7C,IAAA,OAAO,IAAA,CAAK,SAAA,CAAU,KAAA,C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QueryParamsRetrieve } from '../query'\nimport type { ListResponse, Resource, ResourceId, ResourceRel, ResourceSort, /* ResourceFilter */ ResourcesConfig, ResourceUpdate, } from '../resource'\nimport { ApiResource } from '../resource'\nimport type { AdyenPayment } from './adyen_payments'\nimport type { Attachment } from './attachments'\nimport type { AxervePayment } from './axerve_payments'\nimport type { BraintreePayment } from './braintree_payments'\nimport type { Capture } from './captures'\nimport type { CheckoutComPayment } from './checkout_com_payments'\nimport type { EventStore } from './event_stores'\nimport type { Event } from './events'\nimport type { ExternalPayment } from './external_payments'\nimport type { KlarnaPayment } from './klarna_payments'\nimport type { Order } from './orders'\nimport type { PaypalPayment } from './paypal_payments'\nimport type { Return } from './returns'\nimport type { SatispayPayment } from './satispay_payments'\nimport type { StripePayment } from './stripe_payments'\nimport type { WireTransfer } from './wire_transfers'\n\n\ntype RefundType = 'refunds'\ntype RefundRel = ResourceRel & { type: RefundType }\n\n\nexport type RefundSort = Pick<Refund, 'id' | 'number' | 'amount_cents'> & ResourceSort\n// export type RefundFilter = Pick<Refund, 'id' | 'number' | 'currency_code' | 'amount_cents' | 'succeeded' | 'message' | 'error_code' | 'error_detail' | 'token' | 'gateway_transaction_id'> & ResourceFilter\n\n\ninterface Refund extends Resource {\n\t\n\treadonly type: RefundType\n\n\t/** \n\t * The transaction number, auto generated.\n\t * @example ```\"42/T/001\"```\n\t */\n\tnumber: string\n\t/** \n\t * Information about the payment method used in the transaction.\n\t * @example ```\"credit card\"```\n\t */\n\tpayment_method_type?: string | null\n\t/** \n\t * The international 3-letter currency code as defined by the ISO 4217 standard, inherited from the associated order.\n\t * @example ```\"EUR\"```\n\t */\n\tcurrency_code: string\n\t/** \n\t * The transaction amount, in cents.\n\t * @example ```1500```\n\t */\n\tamount_cents: number\n\t/** \n\t * The transaction amount, float.\n\t * @example ```15```\n\t */\n\tamount_float: number\n\t/** \n\t * The transaction amount, formatted.\n\t * @example ```\"€15,00\"```\n\t */\n\tformatted_amount: string\n\t/** \n\t * Indicates if the transaction is successful.\n\t */\n\tsucceeded: boolean\n\t/** \n\t * The message returned by the payment gateway.\n\t * @example ```\"Accepted\"```\n\t */\n\tmessage?: string | null\n\t/** \n\t * The error code, if any, returned by the payment gateway.\n\t * @example ```\"00001\"```\n\t */\n\terror_code?: string | null\n\t/** \n\t * The error detail, if any, returned by the payment gateway.\n\t * @example ```\"Already settled\"```\n\t */\n\terror_detail?: string | null\n\t/** \n\t * The token identifying the transaction, returned by the payment gateway.\n\t * @example ```\"xxxx-yyyy-zzzz\"```\n\t */\n\ttoken?: string | null\n\t/** \n\t * The ID identifying the transaction, returned by the payment gateway.\n\t * @example ```\"xxxx-yyyy-zzzz\"```\n\t */\n\tgateway_transaction_id?: string | null\n\n\torder?: Order | null\n\tpayment_source?: AdyenPayment | AxervePayment | BraintreePayment | CheckoutComPayment | ExternalPayment | KlarnaPayment | PaypalPayment | SatispayPayment | StripePayment | WireTransfer | null\n\tattachments?: Attachment[] | null\n\tevents?: Event[] | null\n\tevent_stores?: EventStore[] | null\n\treference_capture?: Capture | null\n\treturn?: Return | null\n\n}\n\n\ninterface RefundUpdate extends ResourceUpdate {\n\t\n\t/** \n\t * Indicates if the transaction is successful.\n\t */\n\tsucceeded?: boolean | null\n\t/** \n\t * Send this attribute if you want to forward a stuck transaction to succeeded and update associated order states accordingly.\n\t * @example ```true```\n\t */\n\t_forward?: boolean | null\n\t\n}\n\n\nclass Refunds extends ApiResource<Refund> {\n\n\tstatic readonly TYPE: RefundType = 'refunds' as const\n\n\tasync update(resource: RefundUpdate, params?: QueryParamsRetrieve<Refund>, options?: ResourcesConfig): Promise<Refund> {\n\t\treturn this.resources.update<RefundUpdate, Refund>({ ...resource, type: Refunds.TYPE }, params, options)\n\t}\n\n\tasync order(refundId: string | Refund, params?: QueryParamsRetrieve<Order>, options?: ResourcesConfig): Promise<Order> {\n\t\tconst _refundId = (refundId as Refund).id || refundId as string\n\t\treturn this.resources.fetch<Order>({ type: 'orders' }, `refunds/${_refundId}/order`, params, options) as unknown as Order\n\t}\n\n\tasync attachments(refundId: string | Refund, params?: QueryParamsList<Attachment>, options?: ResourcesConfig): Promise<ListResponse<Attachment>> {\n\t\tconst _refundId = (refundId as Refund).id || refundId as string\n\t\treturn this.resources.fetch<Attachment>({ type: 'attachments' }, `refunds/${_refundId}/attachments`, params, options) as unknown as ListResponse<Attachment>\n\t}\n\n\tasync events(refundId: string | Refund, params?: QueryParamsList<Event>, options?: ResourcesConfig): Promise<ListResponse<Event>> {\n\t\tconst _refundId = (refundId as Refund).id || refundId as string\n\t\treturn this.resources.fetch<Event>({ type: 'events' }, `refunds/${_refundId}/events`, params, options) as unknown as ListResponse<Event>\n\t}\n\n\tasync event_stores(refundId: string | Refund, params?: QueryParamsList<EventStore>, options?: ResourcesConfig): Promise<ListResponse<EventStore>> {\n\t\tconst _refundId = (refundId as Refund).id || refundId as string\n\t\treturn this.resources.fetch<EventStore>({ type: 'event_stores' }, `refunds/${_refundId}/event_stores`, params, options) as unknown as ListResponse<EventStore>\n\t}\n\n\tasync reference_capture(refundId: string | Refund, params?: QueryParamsRetrieve<Capture>, options?: ResourcesConfig): Promise<Capture> {\n\t\tconst _refundId = (refundId as Refund).id || refundId as string\n\t\treturn this.resources.fetch<Capture>({ type: 'captures' }, `refunds/${_refundId}/reference_capture`, params, options) as unknown as Capture\n\t}\n\n\tasync return(refundId: string | Refund, params?: QueryParamsRetrieve<Return>, options?: ResourcesConfig): Promise<Return> {\n\t\tconst _refundId = (refundId as Refund).id || refundId as string\n\t\treturn this.resources.fetch<Return>({ type: 'returns' }, `refunds/${_refundId}/return`, params, options) as unknown as Return\n\t}\n\n\tasync _forward(id: string | Refund, params?: QueryParamsRetrieve<Refund>, options?: ResourcesConfig): Promise<Refund> {\n\t\treturn this.resources.update<RefundUpdate, Refund>({ id: (typeof id === 'string')? id: id.id, type: Refunds.TYPE, _forward: true }, params, options)\n\t}\n\n\n\tisRefund(resource: any): resource is Refund {\n\t\treturn resource.type && (resource.type === Refunds.TYPE)\n\t}\n\n\n\trelationship(id: string | ResourceId | null): RefundRel {\n\t\treturn super.relationshipOneToOne<RefundRel>(id)\n\t}\n\n\trelationshipToMany(...ids: string[]): RefundRel[] {\n\t\treturn super.relationshipOneToMany<RefundRel>(...ids)\n\t}\n\n\n\ttype(): RefundType {\n\t\treturn Refunds.TYPE\n\t}\n\n}\n\n\nconst instance = new Refunds()\nexport default instance\n\nexport type { Refund, Refunds, RefundType, RefundUpdate }\n"]}
|