@commercelayer/sdk 7.8.0 → 7.10.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/api-C56k_eNN.d.cts +18274 -0
- package/lib/api-fR7vDjer.d.ts +18274 -0
- package/lib/api.cjs +271 -271
- package/lib/api.d.cts +2 -2
- package/lib/api.d.ts +2 -2
- package/lib/api.js +139 -139
- package/lib/bundle.cjs +274 -274
- package/lib/bundle.cjs.map +1 -1
- package/lib/bundle.d.cts +3 -3
- package/lib/bundle.d.ts +3 -3
- package/lib/bundle.js +140 -140
- package/lib/bundle.js.map +1 -1
- package/lib/chunk-22RVT2J2.js +20 -0
- package/lib/chunk-22RVT2J2.js.map +1 -0
- package/lib/chunk-22YZMDGS.js +73 -0
- package/lib/chunk-22YZMDGS.js.map +1 -0
- package/lib/chunk-24DYX22L.cjs +34 -0
- package/lib/chunk-24DYX22L.cjs.map +1 -0
- package/lib/chunk-25LV6XNE.js +57 -0
- package/lib/chunk-25LV6XNE.js.map +1 -0
- package/lib/chunk-25SYMOHP.js +63 -0
- package/lib/chunk-25SYMOHP.js.map +1 -0
- package/lib/chunk-26IU3VMW.cjs +73 -0
- package/lib/chunk-26IU3VMW.cjs.map +1 -0
- package/lib/chunk-2COD7SFI.js +24 -0
- package/lib/chunk-2COD7SFI.js.map +1 -0
- package/lib/chunk-2D7XHAVQ.js +59 -0
- package/lib/chunk-2D7XHAVQ.js.map +1 -0
- package/lib/chunk-2TD56UNA.js +97 -0
- package/lib/chunk-2TD56UNA.js.map +1 -0
- package/lib/chunk-2UBHGJAR.cjs +30 -0
- package/lib/chunk-2UBHGJAR.cjs.map +1 -0
- package/lib/chunk-353DTUT5.js +56 -0
- package/lib/chunk-353DTUT5.js.map +1 -0
- package/lib/chunk-3AQSJH4T.js +53 -0
- package/lib/chunk-3AQSJH4T.js.map +1 -0
- package/lib/chunk-3CYUKNAO.js +48 -0
- package/lib/chunk-3CYUKNAO.js.map +1 -0
- package/lib/chunk-3F4JHN42.cjs +72 -0
- package/lib/chunk-3F4JHN42.cjs.map +1 -0
- package/lib/chunk-3GOADUES.cjs +63 -0
- package/lib/chunk-3GOADUES.cjs.map +1 -0
- package/lib/chunk-3KCHHQTI.js +97 -0
- package/lib/chunk-3KCHHQTI.js.map +1 -0
- package/lib/chunk-3QSWUE22.cjs +43 -0
- package/lib/chunk-3QSWUE22.cjs.map +1 -0
- package/lib/chunk-3R5E4QEL.cjs +57 -0
- package/lib/chunk-3R5E4QEL.cjs.map +1 -0
- package/lib/chunk-3XPKZ3WM.js +77 -0
- package/lib/chunk-3XPKZ3WM.js.map +1 -0
- package/lib/chunk-42TXSEGY.js +53 -0
- package/lib/chunk-42TXSEGY.js.map +1 -0
- package/lib/chunk-42VXKVD6.js +53 -0
- package/lib/chunk-42VXKVD6.js.map +1 -0
- package/lib/chunk-4KIM2UAJ.cjs +72 -0
- package/lib/chunk-4KIM2UAJ.cjs.map +1 -0
- package/lib/chunk-4KPMQG57.js +49 -0
- package/lib/chunk-4KPMQG57.js.map +1 -0
- package/lib/chunk-4MV6VICV.js +35 -0
- package/lib/chunk-4MV6VICV.js.map +1 -0
- package/lib/chunk-4QMCNTO4.js +44 -0
- package/lib/chunk-4QMCNTO4.js.map +1 -0
- package/lib/chunk-4W5EFFJ5.js +48 -0
- package/lib/chunk-4W5EFFJ5.js.map +1 -0
- package/lib/chunk-4WQKP2HI.js +44 -0
- package/lib/chunk-4WQKP2HI.js.map +1 -0
- package/lib/chunk-4YEJFKWN.cjs +55 -0
- package/lib/chunk-4YEJFKWN.cjs.map +1 -0
- package/lib/chunk-4YS4H4WH.cjs +54 -0
- package/lib/chunk-4YS4H4WH.cjs.map +1 -0
- package/lib/chunk-52L77NN2.js +59 -0
- package/lib/chunk-52L77NN2.js.map +1 -0
- package/lib/chunk-53R4X7QD.js +49 -0
- package/lib/chunk-53R4X7QD.js.map +1 -0
- package/lib/chunk-54765SFP.js +55 -0
- package/lib/chunk-54765SFP.js.map +1 -0
- package/lib/chunk-56DPVYQJ.js +41 -0
- package/lib/chunk-56DPVYQJ.js.map +1 -0
- package/lib/chunk-57EVDZVF.js +63 -0
- package/lib/chunk-57EVDZVF.js.map +1 -0
- package/lib/chunk-5CXQ67TT.js +53 -0
- package/lib/chunk-5CXQ67TT.js.map +1 -0
- package/lib/chunk-5FZ57V3M.cjs +93 -0
- package/lib/chunk-5FZ57V3M.cjs.map +1 -0
- package/lib/chunk-5NX7MHXP.cjs +51 -0
- package/lib/chunk-5NX7MHXP.cjs.map +1 -0
- package/lib/chunk-5QA264ZF.cjs +74 -0
- package/lib/chunk-5QA264ZF.cjs.map +1 -0
- package/lib/chunk-5QFZLLE2.js +37 -0
- package/lib/chunk-5QFZLLE2.js.map +1 -0
- package/lib/chunk-5T44TAQU.cjs +130 -0
- package/lib/chunk-5T44TAQU.cjs.map +1 -0
- package/lib/chunk-5UPTFJAY.cjs +51 -0
- package/lib/chunk-5UPTFJAY.cjs.map +1 -0
- package/lib/chunk-5WLMMRAX.js +93 -0
- package/lib/chunk-5WLMMRAX.js.map +1 -0
- package/lib/chunk-5Z47LT7L.js +53 -0
- package/lib/chunk-5Z47LT7L.js.map +1 -0
- package/lib/chunk-5ZWOLVB6.js +128 -0
- package/lib/chunk-5ZWOLVB6.js.map +1 -0
- package/lib/chunk-65QUR5IL.js +97 -0
- package/lib/chunk-65QUR5IL.js.map +1 -0
- package/lib/chunk-66BQF7RB.cjs +61 -0
- package/lib/chunk-66BQF7RB.cjs.map +1 -0
- package/lib/chunk-6ES3UMTH.cjs +286 -0
- package/lib/chunk-6ES3UMTH.cjs.map +1 -0
- package/lib/chunk-6EY5MW3N.js +53 -0
- package/lib/chunk-6EY5MW3N.js.map +1 -0
- package/lib/chunk-6GB4YMFB.js +52 -0
- package/lib/chunk-6GB4YMFB.js.map +1 -0
- package/lib/chunk-6RLGIXTB.cjs +61 -0
- package/lib/chunk-6RLGIXTB.cjs.map +1 -0
- package/lib/chunk-6YX6BZB6.js +55 -0
- package/lib/chunk-6YX6BZB6.js.map +1 -0
- package/lib/chunk-73IEITRE.js +44 -0
- package/lib/chunk-73IEITRE.js.map +1 -0
- package/lib/chunk-73XFO6GL.cjs +51 -0
- package/lib/chunk-73XFO6GL.cjs.map +1 -0
- package/lib/chunk-76RBIF4U.cjs +79 -0
- package/lib/chunk-76RBIF4U.cjs.map +1 -0
- package/lib/chunk-7FKCICOI.js +55 -0
- package/lib/chunk-7FKCICOI.js.map +1 -0
- package/lib/chunk-7N7KBV6L.js +158 -0
- package/lib/chunk-7N7KBV6L.js.map +1 -0
- package/lib/chunk-7RZTCBDR.cjs +22 -0
- package/lib/chunk-7RZTCBDR.cjs.map +1 -0
- package/lib/chunk-7UCAVCXA.cjs +99 -0
- package/lib/chunk-7UCAVCXA.cjs.map +1 -0
- package/lib/chunk-7XIPWO7I.cjs +61 -0
- package/lib/chunk-7XIPWO7I.cjs.map +1 -0
- package/lib/chunk-A7PIWL4I.js +58 -0
- package/lib/chunk-A7PIWL4I.js.map +1 -0
- package/lib/chunk-AGJQ5BMW.cjs +107 -0
- package/lib/chunk-AGJQ5BMW.cjs.map +1 -0
- package/lib/chunk-AHJQVBKB.cjs +160 -0
- package/lib/chunk-AHJQVBKB.cjs.map +1 -0
- package/lib/chunk-AJ5YOH5P.cjs +30 -0
- package/lib/chunk-AJ5YOH5P.cjs.map +1 -0
- package/lib/chunk-AQHMSOPU.js +45 -0
- package/lib/chunk-AQHMSOPU.js.map +1 -0
- package/lib/chunk-ASRC3G5N.cjs +42 -0
- package/lib/chunk-ASRC3G5N.cjs.map +1 -0
- package/lib/chunk-B3IWIR5W.cjs +46 -0
- package/lib/chunk-B3IWIR5W.cjs.map +1 -0
- package/lib/chunk-B4ASY4NL.js +45 -0
- package/lib/chunk-B4ASY4NL.js.map +1 -0
- package/lib/chunk-B6IY37XK.js +70 -0
- package/lib/chunk-B6IY37XK.js.map +1 -0
- package/lib/chunk-B6RRN2R4.cjs +51 -0
- package/lib/chunk-B6RRN2R4.cjs.map +1 -0
- package/lib/chunk-BBNWP52Z.cjs +44 -0
- package/lib/chunk-BBNWP52Z.cjs.map +1 -0
- package/lib/chunk-BCFDI5BB.cjs +51 -0
- package/lib/chunk-BCFDI5BB.cjs.map +1 -0
- package/lib/chunk-BE7FUFTL.js +53 -0
- package/lib/chunk-BE7FUFTL.js.map +1 -0
- package/lib/chunk-BGS3XVZ5.js +107 -0
- package/lib/chunk-BGS3XVZ5.js.map +1 -0
- package/lib/chunk-BLZ627KE.js +59 -0
- package/lib/chunk-BLZ627KE.js.map +1 -0
- package/lib/chunk-BOFLUBPB.js +55 -0
- package/lib/chunk-BOFLUBPB.js.map +1 -0
- package/lib/chunk-BUCTRSWS.js +45 -0
- package/lib/chunk-BUCTRSWS.js.map +1 -0
- package/lib/chunk-BUKCNQRD.cjs +43 -0
- package/lib/chunk-BUKCNQRD.cjs.map +1 -0
- package/lib/chunk-C2JKMWGR.cjs +51 -0
- package/lib/chunk-C2JKMWGR.cjs.map +1 -0
- package/lib/chunk-C5ML5FMX.cjs +53 -0
- package/lib/chunk-C5ML5FMX.cjs.map +1 -0
- package/lib/chunk-C77T7SV5.js +49 -0
- package/lib/chunk-C77T7SV5.js.map +1 -0
- package/lib/chunk-CAR7HCIH.cjs +50 -0
- package/lib/chunk-CAR7HCIH.cjs.map +1 -0
- package/lib/chunk-CD4WJZWD.js +49 -0
- package/lib/chunk-CD4WJZWD.js.map +1 -0
- package/lib/chunk-CHJOIVWT.cjs +51 -0
- package/lib/chunk-CHJOIVWT.cjs.map +1 -0
- package/lib/chunk-CIEVYLNA.cjs +57 -0
- package/lib/chunk-CIEVYLNA.cjs.map +1 -0
- package/lib/chunk-CRRVMIDJ.js +32 -0
- package/lib/chunk-CRRVMIDJ.js.map +1 -0
- package/lib/chunk-CSRXWHGF.cjs +662 -0
- package/lib/chunk-CSRXWHGF.cjs.map +1 -0
- package/lib/chunk-CXDNL2TL.cjs +57 -0
- package/lib/chunk-CXDNL2TL.cjs.map +1 -0
- package/lib/chunk-CZVJWKHF.cjs +51 -0
- package/lib/chunk-CZVJWKHF.cjs.map +1 -0
- package/lib/chunk-D5KCXRAI.js +57 -0
- package/lib/chunk-D5KCXRAI.js.map +1 -0
- package/lib/chunk-DGYQ3LEP.cjs +34 -0
- package/lib/chunk-DGYQ3LEP.cjs.map +1 -0
- package/lib/chunk-DHT6PN4S.js +72 -0
- package/lib/chunk-DHT6PN4S.js.map +1 -0
- package/lib/chunk-DKKVAVBN.cjs +99 -0
- package/lib/chunk-DKKVAVBN.cjs.map +1 -0
- package/lib/chunk-DKUONF23.cjs +56 -0
- package/lib/chunk-DKUONF23.cjs.map +1 -0
- package/lib/chunk-DZ6EOOOY.js +41 -0
- package/lib/chunk-DZ6EOOOY.js.map +1 -0
- package/lib/chunk-E2GOZ7ZV.js +55 -0
- package/lib/chunk-E2GOZ7ZV.js.map +1 -0
- package/lib/chunk-E4RUQPMF.js +40 -0
- package/lib/chunk-E4RUQPMF.js.map +1 -0
- package/lib/chunk-ED72HDOR.js +31 -0
- package/lib/chunk-ED72HDOR.js.map +1 -0
- package/lib/chunk-EGM5WCK7.js +40 -0
- package/lib/chunk-EGM5WCK7.js.map +1 -0
- package/lib/chunk-EN3E3X22.cjs +46 -0
- package/lib/chunk-EN3E3X22.cjs.map +1 -0
- package/lib/chunk-EOSTJ3GG.cjs +50 -0
- package/lib/chunk-EOSTJ3GG.cjs.map +1 -0
- package/lib/chunk-ESUFQPT7.cjs +71 -0
- package/lib/chunk-ESUFQPT7.cjs.map +1 -0
- package/lib/chunk-ESW2GV47.js +100 -0
- package/lib/chunk-ESW2GV47.js.map +1 -0
- package/lib/chunk-EV7JAD4X.js +91 -0
- package/lib/chunk-EV7JAD4X.js.map +1 -0
- package/lib/chunk-EY3D7ONH.cjs +109 -0
- package/lib/chunk-EY3D7ONH.cjs.map +1 -0
- package/lib/chunk-EZQHOZI2.js +49 -0
- package/lib/chunk-EZQHOZI2.js.map +1 -0
- package/lib/chunk-F3P63HYI.cjs +65 -0
- package/lib/chunk-F3P63HYI.cjs.map +1 -0
- package/lib/chunk-F6J4CRBZ.cjs +38 -0
- package/lib/chunk-F6J4CRBZ.cjs.map +1 -0
- package/lib/chunk-FBGHKFDZ.js +68 -0
- package/lib/chunk-FBGHKFDZ.js.map +1 -0
- package/lib/chunk-FEKNIG3W.js +99 -0
- package/lib/chunk-FEKNIG3W.js.map +1 -0
- package/lib/chunk-FKAKFPAS.js +61 -0
- package/lib/chunk-FKAKFPAS.js.map +1 -0
- package/lib/chunk-FSXKG62A.js +100 -0
- package/lib/chunk-FSXKG62A.js.map +1 -0
- package/lib/chunk-FT2UGQVD.js +54 -0
- package/lib/chunk-FT2UGQVD.js.map +1 -0
- package/lib/chunk-FUYP7J3H.js +53 -0
- package/lib/chunk-FUYP7J3H.js.map +1 -0
- package/lib/chunk-FYI5M2XM.cjs +57 -0
- package/lib/chunk-FYI5M2XM.cjs.map +1 -0
- package/lib/chunk-FYKH5NLF.cjs +50 -0
- package/lib/chunk-FYKH5NLF.cjs.map +1 -0
- package/lib/chunk-G2XGWVV4.cjs +81 -0
- package/lib/chunk-G2XGWVV4.cjs.map +1 -0
- package/lib/chunk-GNLY3HQ4.js +105 -0
- package/lib/chunk-GNLY3HQ4.js.map +1 -0
- package/lib/chunk-GRKXRJZE.js +65 -0
- package/lib/chunk-GRKXRJZE.js.map +1 -0
- package/lib/chunk-GSHDLOHZ.js +97 -0
- package/lib/chunk-GSHDLOHZ.js.map +1 -0
- package/lib/chunk-GSTAUOVL.js +57 -0
- package/lib/chunk-GSTAUOVL.js.map +1 -0
- package/lib/chunk-H3IBVZVF.js +28 -0
- package/lib/chunk-H3IBVZVF.js.map +1 -0
- package/lib/chunk-H4MPRTXI.js +37 -0
- package/lib/chunk-H4MPRTXI.js.map +1 -0
- package/lib/chunk-H5JOZYXN.cjs +51 -0
- package/lib/chunk-H5JOZYXN.cjs.map +1 -0
- package/lib/chunk-H7ZINK52.cjs +93 -0
- package/lib/chunk-H7ZINK52.cjs.map +1 -0
- package/lib/chunk-HFAQPY4K.cjs +42 -0
- package/lib/chunk-HFAQPY4K.cjs.map +1 -0
- package/lib/chunk-HLL6WIIC.js +91 -0
- package/lib/chunk-HLL6WIIC.js.map +1 -0
- package/lib/chunk-HLPUCTAZ.js +103 -0
- package/lib/chunk-HLPUCTAZ.js.map +1 -0
- package/lib/chunk-HNADBQ2G.cjs +55 -0
- package/lib/chunk-HNADBQ2G.cjs.map +1 -0
- package/lib/chunk-HOKEKQDI.js +49 -0
- package/lib/chunk-HOKEKQDI.js.map +1 -0
- package/lib/chunk-HP2WA7CM.cjs +59 -0
- package/lib/chunk-HP2WA7CM.cjs.map +1 -0
- package/lib/chunk-HQZ3S65M.js +44 -0
- package/lib/chunk-HQZ3S65M.js.map +1 -0
- package/lib/chunk-HR6ZQP3L.cjs +66 -0
- package/lib/chunk-HR6ZQP3L.cjs.map +1 -0
- package/lib/chunk-HR773LV5.cjs +54 -0
- package/lib/chunk-HR773LV5.cjs.map +1 -0
- package/lib/chunk-HTQJYP75.cjs +46 -0
- package/lib/chunk-HTQJYP75.cjs.map +1 -0
- package/lib/chunk-HWEIUKPN.cjs +57 -0
- package/lib/chunk-HWEIUKPN.cjs.map +1 -0
- package/lib/chunk-HWL3MJQJ.cjs +60 -0
- package/lib/chunk-HWL3MJQJ.cjs.map +1 -0
- package/lib/chunk-HZB22SU2.cjs +51 -0
- package/lib/chunk-HZB22SU2.cjs.map +1 -0
- package/lib/chunk-I22GQQSK.js +97 -0
- package/lib/chunk-I22GQQSK.js.map +1 -0
- package/lib/chunk-IESEQGGO.js +65 -0
- package/lib/chunk-IESEQGGO.js.map +1 -0
- package/lib/chunk-IFLQJWJG.cjs +55 -0
- package/lib/chunk-IFLQJWJG.cjs.map +1 -0
- package/lib/chunk-IGK3AET6.cjs +47 -0
- package/lib/chunk-IGK3AET6.cjs.map +1 -0
- package/lib/chunk-IJT6ADCT.cjs +70 -0
- package/lib/chunk-IJT6ADCT.cjs.map +1 -0
- package/lib/chunk-IKCYKGYL.js +151 -0
- package/lib/chunk-IKCYKGYL.js.map +1 -0
- package/lib/chunk-IMZ67YBL.cjs +55 -0
- package/lib/chunk-IMZ67YBL.cjs.map +1 -0
- package/lib/chunk-IR7ERHZU.js +57 -0
- package/lib/chunk-IR7ERHZU.js.map +1 -0
- package/lib/chunk-IWQQN4E4.js +47 -0
- package/lib/chunk-IWQQN4E4.js.map +1 -0
- package/lib/chunk-J3K32YXQ.js +49 -0
- package/lib/chunk-J3K32YXQ.js.map +1 -0
- package/lib/chunk-J5QKU3U7.cjs +54 -0
- package/lib/chunk-J5QKU3U7.cjs.map +1 -0
- package/lib/chunk-JAL5VEJ4.cjs +51 -0
- package/lib/chunk-JAL5VEJ4.cjs.map +1 -0
- package/lib/chunk-JBNN5FLR.cjs +99 -0
- package/lib/chunk-JBNN5FLR.cjs.map +1 -0
- package/lib/chunk-JEFXEO7O.js +49 -0
- package/lib/chunk-JEFXEO7O.js.map +1 -0
- package/lib/chunk-JIAAPIJS.js +69 -0
- package/lib/chunk-JIAAPIJS.js.map +1 -0
- package/lib/chunk-JNDUIJGS.js +32 -0
- package/lib/chunk-JNDUIJGS.js.map +1 -0
- package/lib/chunk-JTECSGQK.cjs +95 -0
- package/lib/chunk-JTECSGQK.cjs.map +1 -0
- package/lib/chunk-JU2GYUKV.js +54 -0
- package/lib/chunk-JU2GYUKV.js.map +1 -0
- package/lib/chunk-JW3TKFSF.cjs +99 -0
- package/lib/chunk-JW3TKFSF.cjs.map +1 -0
- package/lib/chunk-JWW6RX2L.cjs +47 -0
- package/lib/chunk-JWW6RX2L.cjs.map +1 -0
- package/lib/chunk-JZ5VDGTD.cjs +29 -0
- package/lib/chunk-JZ5VDGTD.cjs.map +1 -0
- package/lib/chunk-K277GYCD.cjs +40 -0
- package/lib/chunk-K277GYCD.cjs.map +1 -0
- package/lib/chunk-K4FGKWEQ.js +36 -0
- package/lib/chunk-K4FGKWEQ.js.map +1 -0
- package/lib/chunk-KAARRP5O.js +59 -0
- package/lib/chunk-KAARRP5O.js.map +1 -0
- package/lib/chunk-KDCQAUUV.js +48 -0
- package/lib/chunk-KDCQAUUV.js.map +1 -0
- package/lib/chunk-KMPHWFCV.cjs +47 -0
- package/lib/chunk-KMPHWFCV.cjs.map +1 -0
- package/lib/chunk-KRNU2FZC.js +53 -0
- package/lib/chunk-KRNU2FZC.js.map +1 -0
- package/lib/chunk-KUX4X636.js +49 -0
- package/lib/chunk-KUX4X636.js.map +1 -0
- package/lib/chunk-KWIFQC7H.js +52 -0
- package/lib/chunk-KWIFQC7H.js.map +1 -0
- package/lib/chunk-KZNM2CKM.cjs +59 -0
- package/lib/chunk-KZNM2CKM.cjs.map +1 -0
- package/lib/chunk-L27E3EGQ.js +49 -0
- package/lib/chunk-L27E3EGQ.js.map +1 -0
- package/lib/chunk-L2R5G3V5.js +276 -0
- package/lib/chunk-L2R5G3V5.js.map +1 -0
- package/lib/chunk-L6OLNB6W.js +41 -0
- package/lib/chunk-L6OLNB6W.js.map +1 -0
- package/lib/chunk-L7VZ5ST5.cjs +60 -0
- package/lib/chunk-L7VZ5ST5.cjs.map +1 -0
- package/lib/chunk-LBY2RHI4.js +45 -0
- package/lib/chunk-LBY2RHI4.js.map +1 -0
- package/lib/chunk-LGYK5DTL.cjs +50 -0
- package/lib/chunk-LGYK5DTL.cjs.map +1 -0
- package/lib/chunk-LLRE4DNW.cjs +55 -0
- package/lib/chunk-LLRE4DNW.cjs.map +1 -0
- package/lib/chunk-LQ5GKVLT.cjs +163 -0
- package/lib/chunk-LQ5GKVLT.cjs.map +1 -0
- package/lib/chunk-MAU4GMOM.js +52 -0
- package/lib/chunk-MAU4GMOM.js.map +1 -0
- package/lib/chunk-MBDEK4FD.cjs +51 -0
- package/lib/chunk-MBDEK4FD.cjs.map +1 -0
- package/lib/chunk-MDT7RJZY.cjs +39 -0
- package/lib/chunk-MDT7RJZY.cjs.map +1 -0
- package/lib/chunk-MF72Q5LL.cjs +39 -0
- package/lib/chunk-MF72Q5LL.cjs.map +1 -0
- package/lib/chunk-MGIOWUKO.cjs +38 -0
- package/lib/chunk-MGIOWUKO.cjs.map +1 -0
- package/lib/chunk-MIBC5G27.js +77 -0
- package/lib/chunk-MIBC5G27.js.map +1 -0
- package/lib/chunk-MU6PHJWP.js +48 -0
- package/lib/chunk-MU6PHJWP.js.map +1 -0
- package/lib/chunk-MVNE63MT.cjs +67 -0
- package/lib/chunk-MVNE63MT.cjs.map +1 -0
- package/lib/chunk-MWDZBQOU.cjs +47 -0
- package/lib/chunk-MWDZBQOU.cjs.map +1 -0
- package/lib/chunk-NKPMXNFW.js +49 -0
- package/lib/chunk-NKPMXNFW.js.map +1 -0
- package/lib/chunk-NKSXB523.js +42 -0
- package/lib/chunk-NKSXB523.js.map +1 -0
- package/lib/chunk-NL65GQHX.cjs +39 -0
- package/lib/chunk-NL65GQHX.cjs.map +1 -0
- package/lib/chunk-NM2TVMKS.cjs +43 -0
- package/lib/chunk-NM2TVMKS.cjs.map +1 -0
- package/lib/chunk-NUQ5KNXC.cjs +63 -0
- package/lib/chunk-NUQ5KNXC.cjs.map +1 -0
- package/lib/chunk-OQ3ZPPCE.js +55 -0
- package/lib/chunk-OQ3ZPPCE.js.map +1 -0
- package/lib/chunk-OR5ULL43.js +55 -0
- package/lib/chunk-OR5ULL43.js.map +1 -0
- package/lib/chunk-OSGNFURJ.js +63 -0
- package/lib/chunk-OSGNFURJ.js.map +1 -0
- package/lib/chunk-OSPDLBK7.cjs +57 -0
- package/lib/chunk-OSPDLBK7.cjs.map +1 -0
- package/lib/chunk-OTJ3AG3G.js +45 -0
- package/lib/chunk-OTJ3AG3G.js.map +1 -0
- package/lib/chunk-OUZO3UT3.cjs +65 -0
- package/lib/chunk-OUZO3UT3.cjs.map +1 -0
- package/lib/chunk-OXMHLYDD.js +49 -0
- package/lib/chunk-OXMHLYDD.js.map +1 -0
- package/lib/chunk-P2B3G2TZ.js +44 -0
- package/lib/chunk-P2B3G2TZ.js.map +1 -0
- package/lib/chunk-P3AQZNTG.js +79 -0
- package/lib/chunk-P3AQZNTG.js.map +1 -0
- package/lib/chunk-P3C4DMT6.cjs +57 -0
- package/lib/chunk-P3C4DMT6.cjs.map +1 -0
- package/lib/chunk-P6H53BD7.cjs +102 -0
- package/lib/chunk-P6H53BD7.cjs.map +1 -0
- package/lib/chunk-PAWJTO7I.js +49 -0
- package/lib/chunk-PAWJTO7I.js.map +1 -0
- package/lib/chunk-PD4I73FB.cjs +105 -0
- package/lib/chunk-PD4I73FB.cjs.map +1 -0
- package/lib/chunk-PGXMLN7A.js +49 -0
- package/lib/chunk-PGXMLN7A.js.map +1 -0
- package/lib/chunk-PIHQS6OG.js +153 -0
- package/lib/chunk-PIHQS6OG.js.map +1 -0
- package/lib/chunk-PUX7CAAV.js +53 -0
- package/lib/chunk-PUX7CAAV.js.map +1 -0
- package/lib/chunk-QE7S4OUZ.cjs +51 -0
- package/lib/chunk-QE7S4OUZ.cjs.map +1 -0
- package/lib/chunk-QKCTP2RD.cjs +55 -0
- package/lib/chunk-QKCTP2RD.cjs.map +1 -0
- package/lib/chunk-QNFZBJFQ.cjs +58 -0
- package/lib/chunk-QNFZBJFQ.cjs.map +1 -0
- package/lib/chunk-QU4NPZQC.cjs +56 -0
- package/lib/chunk-QU4NPZQC.cjs.map +1 -0
- package/lib/chunk-QVJTWTUN.cjs +54 -0
- package/lib/chunk-QVJTWTUN.cjs.map +1 -0
- package/lib/chunk-R3PNGGDR.cjs +55 -0
- package/lib/chunk-R3PNGGDR.cjs.map +1 -0
- package/lib/chunk-R7JDWIQK.cjs +107 -0
- package/lib/chunk-R7JDWIQK.cjs.map +1 -0
- package/lib/chunk-R7PR3V6Z.cjs +51 -0
- package/lib/chunk-R7PR3V6Z.cjs.map +1 -0
- package/lib/chunk-RH363QI7.cjs +99 -0
- package/lib/chunk-RH363QI7.cjs.map +1 -0
- package/lib/chunk-RLZGD4WS.cjs +57 -0
- package/lib/chunk-RLZGD4WS.cjs.map +1 -0
- package/lib/chunk-RNCWBCHU.js +55 -0
- package/lib/chunk-RNCWBCHU.js.map +1 -0
- package/lib/chunk-SEY2W62A.js +53 -0
- package/lib/chunk-SEY2W62A.js.map +1 -0
- package/lib/chunk-SGJTWE5I.js +40 -0
- package/lib/chunk-SGJTWE5I.js.map +1 -0
- package/lib/chunk-SK7SIING.cjs +42 -0
- package/lib/chunk-SK7SIING.cjs.map +1 -0
- package/lib/chunk-SNHW3YC5.cjs +55 -0
- package/lib/chunk-SNHW3YC5.cjs.map +1 -0
- package/lib/chunk-SWZUFDHY.js +102 -0
- package/lib/chunk-SWZUFDHY.js.map +1 -0
- package/lib/chunk-SXCTTGYT.cjs +50 -0
- package/lib/chunk-SXCTTGYT.cjs.map +1 -0
- package/lib/chunk-SXQSMTHR.js +58 -0
- package/lib/chunk-SXQSMTHR.js.map +1 -0
- package/lib/chunk-SZYWVDPJ.cjs +42 -0
- package/lib/chunk-SZYWVDPJ.cjs.map +1 -0
- package/lib/chunk-T4SW2CZX.cjs +67 -0
- package/lib/chunk-T4SW2CZX.cjs.map +1 -0
- package/lib/chunk-TE54DOJ6.cjs +75 -0
- package/lib/chunk-TE54DOJ6.cjs.map +1 -0
- package/lib/chunk-TJGZYDVV.js +58 -0
- package/lib/chunk-TJGZYDVV.js.map +1 -0
- package/lib/chunk-TPFXLI3J.js +27 -0
- package/lib/chunk-TPFXLI3J.js.map +1 -0
- package/lib/chunk-U43UPLTK.cjs +42 -0
- package/lib/chunk-U43UPLTK.cjs.map +1 -0
- package/lib/chunk-U5ZUHRP7.cjs +65 -0
- package/lib/chunk-U5ZUHRP7.cjs.map +1 -0
- package/lib/chunk-U7NVUYAO.js +71 -0
- package/lib/chunk-U7NVUYAO.js.map +1 -0
- package/lib/chunk-UBH2EC5P.cjs +284 -0
- package/lib/chunk-UBH2EC5P.cjs.map +1 -0
- package/lib/chunk-UMIZNUUK.js +45 -0
- package/lib/chunk-UMIZNUUK.js.map +1 -0
- package/lib/chunk-UQQTNQX3.cjs +153 -0
- package/lib/chunk-UQQTNQX3.cjs.map +1 -0
- package/lib/chunk-UR35VE5O.js +53 -0
- package/lib/chunk-UR35VE5O.js.map +1 -0
- package/lib/chunk-UTJX7SU6.cjs +55 -0
- package/lib/chunk-UTJX7SU6.cjs.map +1 -0
- package/lib/chunk-V2JFGTP4.cjs +33 -0
- package/lib/chunk-V2JFGTP4.cjs.map +1 -0
- package/lib/chunk-V3VI5SLU.cjs +58 -0
- package/lib/chunk-V3VI5SLU.cjs.map +1 -0
- package/lib/chunk-V57VEB52.cjs +51 -0
- package/lib/chunk-V57VEB52.cjs.map +1 -0
- package/lib/chunk-VCJOH3IE.js +63 -0
- package/lib/chunk-VCJOH3IE.js.map +1 -0
- package/lib/chunk-VROIQJ2H.js +48 -0
- package/lib/chunk-VROIQJ2H.js.map +1 -0
- package/lib/chunk-W5HJOZUZ.js +55 -0
- package/lib/chunk-W5HJOZUZ.js.map +1 -0
- package/lib/chunk-W6D7ACVK.cjs +26 -0
- package/lib/chunk-W6D7ACVK.cjs.map +1 -0
- package/lib/chunk-W76GDFLA.cjs +49 -0
- package/lib/chunk-W76GDFLA.cjs.map +1 -0
- package/lib/chunk-W7A5TBOT.js +37 -0
- package/lib/chunk-W7A5TBOT.js.map +1 -0
- package/lib/chunk-W7QZ4IET.js +55 -0
- package/lib/chunk-W7QZ4IET.js.map +1 -0
- package/lib/chunk-WAXSMT74.js +49 -0
- package/lib/chunk-WAXSMT74.js.map +1 -0
- package/lib/chunk-WENVZ7YQ.cjs +60 -0
- package/lib/chunk-WENVZ7YQ.cjs.map +1 -0
- package/lib/chunk-WN4NEQG3.cjs +47 -0
- package/lib/chunk-WN4NEQG3.cjs.map +1 -0
- package/lib/chunk-WPMZGCSL.js +49 -0
- package/lib/chunk-WPMZGCSL.js.map +1 -0
- package/lib/chunk-WVXUXB6M.cjs +51 -0
- package/lib/chunk-WVXUXB6M.cjs.map +1 -0
- package/lib/chunk-WYSCB65K.cjs +65 -0
- package/lib/chunk-WYSCB65K.cjs.map +1 -0
- package/lib/chunk-WZKB5BTI.cjs +57 -0
- package/lib/chunk-WZKB5BTI.cjs.map +1 -0
- package/lib/chunk-X3FOQEIP.cjs +57 -0
- package/lib/chunk-X3FOQEIP.cjs.map +1 -0
- package/lib/chunk-X435FPBT.js +70 -0
- package/lib/chunk-X435FPBT.js.map +1 -0
- package/lib/chunk-XAHCI5JE.js +284 -0
- package/lib/chunk-XAHCI5JE.js.map +1 -0
- package/lib/chunk-XAWZYCIT.cjs +51 -0
- package/lib/chunk-XAWZYCIT.cjs.map +1 -0
- package/lib/chunk-XFOVGIFM.cjs +59 -0
- package/lib/chunk-XFOVGIFM.cjs.map +1 -0
- package/lib/chunk-XGQYAM2O.cjs +102 -0
- package/lib/chunk-XGQYAM2O.cjs.map +1 -0
- package/lib/chunk-XHRLLOTH.cjs +46 -0
- package/lib/chunk-XHRLLOTH.cjs.map +1 -0
- package/lib/chunk-XLHGFYJD.js +40 -0
- package/lib/chunk-XLHGFYJD.js.map +1 -0
- package/lib/chunk-XLSIK3Q5.js +40 -0
- package/lib/chunk-XLSIK3Q5.js.map +1 -0
- package/lib/chunk-XMOZVHO7.js +56 -0
- package/lib/chunk-XMOZVHO7.js.map +1 -0
- package/lib/chunk-YDYPUEOW.js +52 -0
- package/lib/chunk-YDYPUEOW.js.map +1 -0
- package/lib/chunk-YF5IJQZK.cjs +55 -0
- package/lib/chunk-YF5IJQZK.cjs.map +1 -0
- package/lib/chunk-YI3IDZIR.js +646 -0
- package/lib/chunk-YI3IDZIR.js.map +1 -0
- package/lib/chunk-YNFTOIKI.cjs +47 -0
- package/lib/chunk-YNFTOIKI.cjs.map +1 -0
- package/lib/chunk-YOAULZCB.js +28 -0
- package/lib/chunk-YOAULZCB.js.map +1 -0
- package/lib/chunk-YOH56Z73.js +64 -0
- package/lib/chunk-YOH56Z73.js.map +1 -0
- package/lib/chunk-YYFNNQAF.js +49 -0
- package/lib/chunk-YYFNNQAF.js.map +1 -0
- package/lib/chunk-Z7FWE3KQ.cjs +55 -0
- package/lib/chunk-Z7FWE3KQ.cjs.map +1 -0
- package/lib/chunk-ZA4UM7JC.js +36 -0
- package/lib/chunk-ZA4UM7JC.js.map +1 -0
- package/lib/chunk-ZBKA7LEU.js +51 -0
- package/lib/chunk-ZBKA7LEU.js.map +1 -0
- package/lib/chunk-ZDO4C624.cjs +79 -0
- package/lib/chunk-ZDO4C624.cjs.map +1 -0
- package/lib/chunk-ZDPMTK4O.js +49 -0
- package/lib/chunk-ZDPMTK4O.js.map +1 -0
- package/lib/chunk-ZKTVCW5B.cjs +51 -0
- package/lib/chunk-ZKTVCW5B.cjs.map +1 -0
- package/lib/chunk-ZKZLRD43.cjs +46 -0
- package/lib/chunk-ZKZLRD43.cjs.map +1 -0
- package/lib/chunk-ZNRKFQBN.cjs +59 -0
- package/lib/chunk-ZNRKFQBN.cjs.map +1 -0
- package/lib/chunk-ZU3CNZKE.cjs +51 -0
- package/lib/chunk-ZU3CNZKE.cjs.map +1 -0
- package/lib/chunk-ZUURLADK.cjs +55 -0
- package/lib/chunk-ZUURLADK.cjs.map +1 -0
- package/lib/chunk-ZWTMB75R.js +49 -0
- package/lib/chunk-ZWTMB75R.js.map +1 -0
- package/lib/chunk-ZYU4XA7Z.cjs +101 -0
- package/lib/chunk-ZYU4XA7Z.cjs.map +1 -0
- package/lib/client.cjs +5 -5
- package/lib/client.d.cts +1 -1
- package/lib/client.d.ts +1 -1
- package/lib/client.js +4 -4
- package/lib/commercelayer.cjs +12 -12
- package/lib/commercelayer.d.cts +5 -5
- package/lib/commercelayer.d.ts +5 -5
- package/lib/commercelayer.js +8 -8
- package/lib/config.d.cts +1 -1
- package/lib/config.d.ts +1 -1
- package/lib/debug.cjs +2 -2
- package/lib/debug.js +1 -1
- package/lib/enum.cjs +16 -16
- package/lib/enum.d.cts +2 -2
- package/lib/enum.d.ts +2 -2
- package/lib/enum.js +1 -1
- package/lib/error.cjs +9 -9
- package/lib/error.js +2 -2
- package/lib/fetch-B8-kP4X0.d.cts +55 -0
- package/lib/fetch-B8-kP4X0.d.ts +55 -0
- package/lib/fetch.cjs +4 -4
- package/lib/fetch.d.cts +1 -1
- package/lib/fetch.d.ts +1 -1
- package/lib/fetch.js +2 -2
- package/lib/index.cjs +276 -276
- package/lib/index.d.cts +2 -2
- package/lib/index.d.ts +2 -2
- package/lib/index.js +141 -141
- package/lib/interceptor.d.cts +1 -1
- package/lib/interceptor.d.ts +1 -1
- package/lib/jsonapi.cjs +9 -9
- package/lib/jsonapi.d.cts +2 -2
- package/lib/jsonapi.d.ts +2 -2
- package/lib/jsonapi.js +7 -7
- package/lib/model.d.cts +2 -2
- package/lib/model.d.ts +2 -2
- package/lib/query.cjs +6 -6
- package/lib/query.d.cts +2 -2
- package/lib/query.d.ts +2 -2
- package/lib/query.js +3 -3
- package/lib/resource.cjs +12 -12
- package/lib/resource.d.cts +2 -2
- package/lib/resource.d.ts +2 -2
- package/lib/resource.js +7 -7
- package/lib/resources/addresses.cjs +9 -9
- package/lib/resources/addresses.d.cts +3 -3
- package/lib/resources/addresses.d.ts +2 -2
- package/lib/resources/addresses.js +8 -8
- package/lib/resources/adjustments.cjs +9 -9
- package/lib/resources/adjustments.d.cts +3 -3
- package/lib/resources/adjustments.d.ts +2 -2
- package/lib/resources/adjustments.js +8 -8
- package/lib/resources/adyen_gateways.cjs +9 -9
- package/lib/resources/adyen_gateways.d.cts +3 -3
- package/lib/resources/adyen_gateways.d.ts +2 -2
- package/lib/resources/adyen_gateways.js +8 -8
- package/lib/resources/adyen_payments.cjs +9 -9
- package/lib/resources/adyen_payments.d.cts +3 -3
- package/lib/resources/adyen_payments.d.ts +2 -2
- package/lib/resources/adyen_payments.js +8 -8
- package/lib/resources/applications.cjs +9 -9
- package/lib/resources/applications.d.cts +3 -3
- package/lib/resources/applications.d.ts +2 -2
- package/lib/resources/applications.js +8 -8
- package/lib/resources/attachments.cjs +9 -9
- package/lib/resources/attachments.d.cts +3 -3
- package/lib/resources/attachments.d.ts +2 -2
- package/lib/resources/attachments.js +8 -8
- package/lib/resources/authorizations.cjs +9 -9
- package/lib/resources/authorizations.d.cts +3 -3
- package/lib/resources/authorizations.d.ts +2 -2
- package/lib/resources/authorizations.js +8 -8
- package/lib/resources/avalara_accounts.cjs +9 -9
- package/lib/resources/avalara_accounts.d.cts +3 -3
- package/lib/resources/avalara_accounts.d.ts +2 -2
- package/lib/resources/avalara_accounts.js +8 -8
- package/lib/resources/axerve_gateways.cjs +9 -9
- package/lib/resources/axerve_gateways.d.cts +3 -3
- package/lib/resources/axerve_gateways.d.ts +2 -2
- package/lib/resources/axerve_gateways.js +8 -8
- package/lib/resources/axerve_payments.cjs +9 -9
- package/lib/resources/axerve_payments.d.cts +3 -3
- package/lib/resources/axerve_payments.d.ts +2 -2
- package/lib/resources/axerve_payments.js +8 -8
- package/lib/resources/bing_geocoders.cjs +9 -9
- package/lib/resources/bing_geocoders.d.cts +3 -3
- package/lib/resources/bing_geocoders.d.ts +2 -2
- package/lib/resources/bing_geocoders.js +8 -8
- package/lib/resources/braintree_gateways.cjs +9 -9
- package/lib/resources/braintree_gateways.d.cts +3 -3
- package/lib/resources/braintree_gateways.d.ts +2 -2
- package/lib/resources/braintree_gateways.js +8 -8
- package/lib/resources/braintree_payments.cjs +9 -9
- package/lib/resources/braintree_payments.d.cts +3 -3
- package/lib/resources/braintree_payments.d.ts +2 -2
- package/lib/resources/braintree_payments.js +8 -8
- package/lib/resources/bundles.cjs +9 -9
- package/lib/resources/bundles.d.cts +3 -3
- package/lib/resources/bundles.d.ts +2 -2
- package/lib/resources/bundles.js +8 -8
- package/lib/resources/buy_x_pay_y_promotions.cjs +9 -9
- package/lib/resources/buy_x_pay_y_promotions.d.cts +3 -3
- package/lib/resources/buy_x_pay_y_promotions.d.ts +2 -2
- package/lib/resources/buy_x_pay_y_promotions.js +8 -8
- package/lib/resources/captures.cjs +9 -9
- package/lib/resources/captures.d.cts +3 -3
- package/lib/resources/captures.d.ts +2 -2
- package/lib/resources/captures.js +8 -8
- package/lib/resources/carrier_accounts.cjs +9 -9
- package/lib/resources/carrier_accounts.d.cts +3 -3
- package/lib/resources/carrier_accounts.d.ts +2 -2
- package/lib/resources/carrier_accounts.js +8 -8
- package/lib/resources/checkout_com_gateways.cjs +9 -9
- package/lib/resources/checkout_com_gateways.d.cts +3 -3
- package/lib/resources/checkout_com_gateways.d.ts +2 -2
- package/lib/resources/checkout_com_gateways.js +8 -8
- package/lib/resources/checkout_com_payments.cjs +9 -9
- package/lib/resources/checkout_com_payments.d.cts +3 -3
- package/lib/resources/checkout_com_payments.d.ts +2 -2
- package/lib/resources/checkout_com_payments.js +8 -8
- package/lib/resources/cleanups.cjs +9 -9
- package/lib/resources/cleanups.d.cts +3 -3
- package/lib/resources/cleanups.d.ts +2 -2
- package/lib/resources/cleanups.js +8 -8
- package/lib/resources/coupon_codes_promotion_rules.cjs +9 -9
- package/lib/resources/coupon_codes_promotion_rules.d.cts +3 -3
- package/lib/resources/coupon_codes_promotion_rules.d.ts +2 -2
- package/lib/resources/coupon_codes_promotion_rules.js +8 -8
- package/lib/resources/coupon_recipients.cjs +9 -9
- package/lib/resources/coupon_recipients.d.cts +3 -3
- package/lib/resources/coupon_recipients.d.ts +2 -2
- package/lib/resources/coupon_recipients.js +8 -8
- package/lib/resources/coupons.cjs +9 -9
- package/lib/resources/coupons.d.cts +3 -3
- package/lib/resources/coupons.d.ts +2 -2
- package/lib/resources/coupons.js +8 -8
- package/lib/resources/custom_promotion_rules.cjs +9 -9
- package/lib/resources/custom_promotion_rules.d.cts +3 -3
- package/lib/resources/custom_promotion_rules.d.ts +2 -2
- package/lib/resources/custom_promotion_rules.js +8 -8
- package/lib/resources/customer_addresses.cjs +9 -9
- package/lib/resources/customer_addresses.d.cts +3 -3
- package/lib/resources/customer_addresses.d.ts +2 -2
- package/lib/resources/customer_addresses.js +8 -8
- package/lib/resources/customer_groups.cjs +9 -9
- package/lib/resources/customer_groups.d.cts +3 -3
- package/lib/resources/customer_groups.d.ts +2 -2
- package/lib/resources/customer_groups.js +8 -8
- package/lib/resources/customer_password_resets.cjs +9 -9
- package/lib/resources/customer_password_resets.d.cts +3 -3
- package/lib/resources/customer_password_resets.d.ts +2 -2
- package/lib/resources/customer_password_resets.js +8 -8
- package/lib/resources/customer_payment_sources.cjs +9 -9
- package/lib/resources/customer_payment_sources.d.cts +3 -3
- package/lib/resources/customer_payment_sources.d.ts +2 -2
- package/lib/resources/customer_payment_sources.js +8 -8
- package/lib/resources/customer_subscriptions.cjs +9 -9
- package/lib/resources/customer_subscriptions.d.cts +3 -3
- package/lib/resources/customer_subscriptions.d.ts +2 -2
- package/lib/resources/customer_subscriptions.js +8 -8
- package/lib/resources/customers.cjs +9 -9
- package/lib/resources/customers.d.cts +3 -3
- package/lib/resources/customers.d.ts +2 -2
- package/lib/resources/customers.js +8 -8
- package/lib/resources/delivery_lead_times.cjs +9 -9
- package/lib/resources/delivery_lead_times.d.cts +3 -3
- package/lib/resources/delivery_lead_times.d.ts +2 -2
- package/lib/resources/delivery_lead_times.js +8 -8
- package/lib/resources/discount_engine_items.cjs +9 -9
- package/lib/resources/discount_engine_items.d.cts +3 -3
- package/lib/resources/discount_engine_items.d.ts +2 -2
- package/lib/resources/discount_engine_items.js +8 -8
- package/lib/resources/discount_engines.cjs +9 -9
- package/lib/resources/discount_engines.d.cts +3 -3
- package/lib/resources/discount_engines.d.ts +2 -2
- package/lib/resources/discount_engines.js +8 -8
- package/lib/resources/easypost_pickups.cjs +9 -9
- package/lib/resources/easypost_pickups.d.cts +3 -3
- package/lib/resources/easypost_pickups.d.ts +2 -2
- package/lib/resources/easypost_pickups.js +8 -8
- package/lib/resources/event_callbacks.cjs +9 -9
- package/lib/resources/event_callbacks.d.cts +3 -3
- package/lib/resources/event_callbacks.d.ts +2 -2
- package/lib/resources/event_callbacks.js +8 -8
- package/lib/resources/event_stores.cjs +9 -9
- package/lib/resources/event_stores.d.cts +3 -3
- package/lib/resources/event_stores.d.ts +2 -2
- package/lib/resources/event_stores.js +8 -8
- package/lib/resources/events.cjs +9 -9
- package/lib/resources/events.d.cts +3 -3
- package/lib/resources/events.d.ts +2 -2
- package/lib/resources/events.js +8 -8
- package/lib/resources/exports.cjs +9 -9
- package/lib/resources/exports.d.cts +3 -3
- package/lib/resources/exports.d.ts +2 -2
- package/lib/resources/exports.js +8 -8
- package/lib/resources/external_gateways.cjs +9 -9
- package/lib/resources/external_gateways.d.cts +3 -3
- package/lib/resources/external_gateways.d.ts +2 -2
- package/lib/resources/external_gateways.js +8 -8
- package/lib/resources/external_payments.cjs +9 -9
- package/lib/resources/external_payments.d.cts +3 -3
- package/lib/resources/external_payments.d.ts +2 -2
- package/lib/resources/external_payments.js +8 -8
- package/lib/resources/external_promotions.cjs +9 -9
- package/lib/resources/external_promotions.d.cts +3 -3
- package/lib/resources/external_promotions.d.ts +2 -2
- package/lib/resources/external_promotions.js +8 -8
- package/lib/resources/external_tax_calculators.cjs +9 -9
- package/lib/resources/external_tax_calculators.d.cts +3 -3
- package/lib/resources/external_tax_calculators.d.ts +2 -2
- package/lib/resources/external_tax_calculators.js +8 -8
- package/lib/resources/fixed_amount_promotions.cjs +9 -9
- package/lib/resources/fixed_amount_promotions.d.cts +3 -3
- package/lib/resources/fixed_amount_promotions.d.ts +2 -2
- package/lib/resources/fixed_amount_promotions.js +8 -8
- package/lib/resources/fixed_price_promotions.cjs +9 -9
- package/lib/resources/fixed_price_promotions.d.cts +3 -3
- package/lib/resources/fixed_price_promotions.d.ts +2 -2
- package/lib/resources/fixed_price_promotions.js +8 -8
- package/lib/resources/flex_promotions.cjs +9 -9
- package/lib/resources/flex_promotions.d.cts +3 -3
- package/lib/resources/flex_promotions.d.ts +2 -2
- package/lib/resources/flex_promotions.js +8 -8
- package/lib/resources/free_gift_promotions.cjs +9 -9
- package/lib/resources/free_gift_promotions.d.cts +3 -3
- package/lib/resources/free_gift_promotions.d.ts +2 -2
- package/lib/resources/free_gift_promotions.js +8 -8
- package/lib/resources/free_shipping_promotions.cjs +9 -9
- package/lib/resources/free_shipping_promotions.d.cts +3 -3
- package/lib/resources/free_shipping_promotions.d.ts +2 -2
- package/lib/resources/free_shipping_promotions.js +8 -8
- package/lib/resources/geocoders.cjs +9 -9
- package/lib/resources/geocoders.d.cts +3 -3
- package/lib/resources/geocoders.d.ts +2 -2
- package/lib/resources/geocoders.js +8 -8
- package/lib/resources/gift_card_recipients.cjs +9 -9
- package/lib/resources/gift_card_recipients.d.cts +3 -3
- package/lib/resources/gift_card_recipients.d.ts +2 -2
- package/lib/resources/gift_card_recipients.js +8 -8
- package/lib/resources/gift_cards.cjs +9 -9
- package/lib/resources/gift_cards.d.cts +3 -3
- package/lib/resources/gift_cards.d.ts +2 -2
- package/lib/resources/gift_cards.js +8 -8
- package/lib/resources/google_geocoders.cjs +9 -9
- package/lib/resources/google_geocoders.d.cts +3 -3
- package/lib/resources/google_geocoders.d.ts +2 -2
- package/lib/resources/google_geocoders.js +8 -8
- package/lib/resources/imports.cjs +9 -9
- package/lib/resources/imports.d.cts +3 -3
- package/lib/resources/imports.d.ts +2 -2
- package/lib/resources/imports.js +8 -8
- package/lib/resources/in_stock_subscriptions.cjs +9 -9
- package/lib/resources/in_stock_subscriptions.d.cts +3 -3
- package/lib/resources/in_stock_subscriptions.d.ts +2 -2
- package/lib/resources/in_stock_subscriptions.js +8 -8
- package/lib/resources/inventory_models.cjs +9 -9
- package/lib/resources/inventory_models.d.cts +3 -3
- package/lib/resources/inventory_models.d.ts +2 -2
- package/lib/resources/inventory_models.js +8 -8
- package/lib/resources/inventory_return_locations.cjs +9 -9
- package/lib/resources/inventory_return_locations.d.cts +3 -3
- package/lib/resources/inventory_return_locations.d.ts +2 -2
- package/lib/resources/inventory_return_locations.js +8 -8
- package/lib/resources/inventory_stock_locations.cjs +9 -9
- package/lib/resources/inventory_stock_locations.d.cts +3 -3
- package/lib/resources/inventory_stock_locations.d.ts +2 -2
- package/lib/resources/inventory_stock_locations.js +8 -8
- package/lib/resources/klarna_gateways.cjs +9 -9
- package/lib/resources/klarna_gateways.d.cts +3 -3
- package/lib/resources/klarna_gateways.d.ts +2 -2
- package/lib/resources/klarna_gateways.js +8 -8
- package/lib/resources/klarna_payments.cjs +9 -9
- package/lib/resources/klarna_payments.d.cts +3 -3
- package/lib/resources/klarna_payments.d.ts +2 -2
- package/lib/resources/klarna_payments.js +8 -8
- package/lib/resources/line_item_options.cjs +9 -9
- package/lib/resources/line_item_options.d.cts +3 -3
- package/lib/resources/line_item_options.d.ts +2 -2
- package/lib/resources/line_item_options.js +8 -8
- package/lib/resources/line_items.cjs +9 -9
- package/lib/resources/line_items.d.cts +3 -3
- package/lib/resources/line_items.d.ts +2 -2
- package/lib/resources/line_items.js +8 -8
- package/lib/resources/links.cjs +9 -9
- package/lib/resources/links.d.cts +3 -3
- package/lib/resources/links.d.ts +2 -2
- package/lib/resources/links.js +8 -8
- package/lib/resources/manual_gateways.cjs +9 -9
- package/lib/resources/manual_gateways.d.cts +3 -3
- package/lib/resources/manual_gateways.d.ts +2 -2
- package/lib/resources/manual_gateways.js +8 -8
- package/lib/resources/manual_tax_calculators.cjs +9 -9
- package/lib/resources/manual_tax_calculators.d.cts +3 -3
- package/lib/resources/manual_tax_calculators.d.ts +2 -2
- package/lib/resources/manual_tax_calculators.js +8 -8
- package/lib/resources/markets.cjs +9 -9
- package/lib/resources/markets.d.cts +3 -3
- package/lib/resources/markets.d.ts +2 -2
- package/lib/resources/markets.js +8 -8
- package/lib/resources/merchants.cjs +9 -9
- package/lib/resources/merchants.d.cts +3 -3
- package/lib/resources/merchants.d.ts +2 -2
- package/lib/resources/merchants.js +8 -8
- package/lib/resources/notifications.cjs +9 -9
- package/lib/resources/notifications.d.cts +3 -3
- package/lib/resources/notifications.d.ts +2 -2
- package/lib/resources/notifications.js +8 -8
- package/lib/resources/order_amount_promotion_rules.cjs +9 -9
- package/lib/resources/order_amount_promotion_rules.d.cts +3 -3
- package/lib/resources/order_amount_promotion_rules.d.ts +2 -2
- package/lib/resources/order_amount_promotion_rules.js +8 -8
- package/lib/resources/order_copies.cjs +9 -9
- package/lib/resources/order_copies.d.cts +3 -3
- package/lib/resources/order_copies.d.ts +2 -2
- package/lib/resources/order_copies.js +8 -8
- package/lib/resources/order_factories.cjs +9 -9
- package/lib/resources/order_factories.d.cts +3 -3
- package/lib/resources/order_factories.d.ts +2 -2
- package/lib/resources/order_factories.js +8 -8
- package/lib/resources/order_subscription_items.cjs +9 -9
- package/lib/resources/order_subscription_items.d.cts +3 -3
- package/lib/resources/order_subscription_items.d.ts +2 -2
- package/lib/resources/order_subscription_items.js +8 -8
- package/lib/resources/order_subscriptions.cjs +9 -9
- package/lib/resources/order_subscriptions.d.cts +3 -3
- package/lib/resources/order_subscriptions.d.ts +2 -2
- package/lib/resources/order_subscriptions.js +8 -8
- package/lib/resources/orders.cjs +9 -9
- package/lib/resources/orders.d.cts +3 -3
- package/lib/resources/orders.d.ts +2 -2
- package/lib/resources/orders.js +8 -8
- package/lib/resources/organizations.cjs +9 -9
- package/lib/resources/organizations.d.cts +3 -3
- package/lib/resources/organizations.d.ts +2 -2
- package/lib/resources/organizations.js +8 -8
- package/lib/resources/packages.cjs +9 -9
- package/lib/resources/packages.d.cts +3 -3
- package/lib/resources/packages.d.ts +2 -2
- package/lib/resources/packages.js +8 -8
- package/lib/resources/parcel_line_items.cjs +9 -9
- package/lib/resources/parcel_line_items.d.cts +3 -3
- package/lib/resources/parcel_line_items.d.ts +2 -2
- package/lib/resources/parcel_line_items.js +8 -8
- package/lib/resources/parcels.cjs +9 -9
- package/lib/resources/parcels.d.cts +3 -3
- package/lib/resources/parcels.d.ts +2 -2
- package/lib/resources/parcels.js +8 -8
- package/lib/resources/payment_gateways.cjs +9 -9
- package/lib/resources/payment_gateways.d.cts +3 -3
- package/lib/resources/payment_gateways.d.ts +2 -2
- package/lib/resources/payment_gateways.js +8 -8
- package/lib/resources/payment_methods.cjs +9 -9
- package/lib/resources/payment_methods.d.cts +3 -3
- package/lib/resources/payment_methods.d.ts +2 -2
- package/lib/resources/payment_methods.js +8 -8
- package/lib/resources/payment_options.cjs +9 -9
- package/lib/resources/payment_options.d.cts +3 -3
- package/lib/resources/payment_options.d.ts +2 -2
- package/lib/resources/payment_options.js +8 -8
- package/lib/resources/paypal_gateways.cjs +9 -9
- package/lib/resources/paypal_gateways.d.cts +3 -3
- package/lib/resources/paypal_gateways.d.ts +2 -2
- package/lib/resources/paypal_gateways.js +8 -8
- package/lib/resources/paypal_payments.cjs +9 -9
- package/lib/resources/paypal_payments.d.cts +3 -3
- package/lib/resources/paypal_payments.d.ts +2 -2
- package/lib/resources/paypal_payments.js +8 -8
- package/lib/resources/percentage_discount_promotions.cjs +9 -9
- package/lib/resources/percentage_discount_promotions.d.cts +3 -3
- package/lib/resources/percentage_discount_promotions.d.ts +2 -2
- package/lib/resources/percentage_discount_promotions.js +8 -8
- package/lib/resources/pickups.cjs +9 -9
- package/lib/resources/pickups.d.cts +3 -3
- package/lib/resources/pickups.d.ts +2 -2
- package/lib/resources/pickups.js +8 -8
- package/lib/resources/price_frequency_tiers.cjs +9 -9
- package/lib/resources/price_frequency_tiers.d.cts +3 -3
- package/lib/resources/price_frequency_tiers.d.ts +2 -2
- package/lib/resources/price_frequency_tiers.js +8 -8
- package/lib/resources/price_list_schedulers.cjs +9 -9
- package/lib/resources/price_list_schedulers.d.cts +3 -3
- package/lib/resources/price_list_schedulers.d.ts +2 -2
- package/lib/resources/price_list_schedulers.js +8 -8
- package/lib/resources/price_lists.cjs +9 -9
- package/lib/resources/price_lists.d.cts +3 -3
- package/lib/resources/price_lists.d.ts +2 -2
- package/lib/resources/price_lists.js +8 -8
- package/lib/resources/price_tiers.cjs +9 -9
- package/lib/resources/price_tiers.d.cts +3 -3
- package/lib/resources/price_tiers.d.ts +2 -2
- package/lib/resources/price_tiers.js +8 -8
- package/lib/resources/price_volume_tiers.cjs +9 -9
- package/lib/resources/price_volume_tiers.d.cts +3 -3
- package/lib/resources/price_volume_tiers.d.ts +2 -2
- package/lib/resources/price_volume_tiers.js +8 -8
- package/lib/resources/prices.cjs +9 -9
- package/lib/resources/prices.d.cts +3 -3
- package/lib/resources/prices.d.ts +2 -2
- package/lib/resources/prices.js +8 -8
- package/lib/resources/promotion_rules.cjs +9 -9
- package/lib/resources/promotion_rules.d.cts +3 -3
- package/lib/resources/promotion_rules.d.ts +2 -2
- package/lib/resources/promotion_rules.js +8 -8
- package/lib/resources/promotions.cjs +9 -9
- package/lib/resources/promotions.d.cts +3 -3
- package/lib/resources/promotions.d.ts +2 -2
- package/lib/resources/promotions.js +8 -8
- package/lib/resources/recurring_order_copies.cjs +9 -9
- package/lib/resources/recurring_order_copies.d.cts +3 -3
- package/lib/resources/recurring_order_copies.d.ts +2 -2
- package/lib/resources/recurring_order_copies.js +8 -8
- package/lib/resources/refunds.cjs +9 -9
- package/lib/resources/refunds.d.cts +3 -3
- package/lib/resources/refunds.d.ts +2 -2
- package/lib/resources/refunds.js +8 -8
- package/lib/resources/reserved_stocks.cjs +9 -9
- package/lib/resources/reserved_stocks.d.cts +3 -3
- package/lib/resources/reserved_stocks.d.ts +2 -2
- package/lib/resources/reserved_stocks.js +8 -8
- package/lib/resources/resource_errors.cjs +9 -9
- package/lib/resources/resource_errors.d.cts +3 -3
- package/lib/resources/resource_errors.d.ts +2 -2
- package/lib/resources/resource_errors.js +8 -8
- package/lib/resources/return_line_items.cjs +9 -9
- package/lib/resources/return_line_items.d.cts +3 -3
- package/lib/resources/return_line_items.d.ts +2 -2
- package/lib/resources/return_line_items.js +8 -8
- package/lib/resources/returns.cjs +9 -9
- package/lib/resources/returns.d.cts +3 -3
- package/lib/resources/returns.d.ts +2 -2
- package/lib/resources/returns.js +8 -8
- package/lib/resources/satispay_gateways.cjs +9 -9
- package/lib/resources/satispay_gateways.d.cts +3 -3
- package/lib/resources/satispay_gateways.d.ts +2 -2
- package/lib/resources/satispay_gateways.js +8 -8
- package/lib/resources/satispay_payments.cjs +9 -9
- package/lib/resources/satispay_payments.d.cts +3 -3
- package/lib/resources/satispay_payments.d.ts +2 -2
- package/lib/resources/satispay_payments.js +8 -8
- package/lib/resources/shipments.cjs +9 -9
- package/lib/resources/shipments.d.cts +3 -3
- package/lib/resources/shipments.d.ts +2 -2
- package/lib/resources/shipments.js +8 -8
- package/lib/resources/shipping_categories.cjs +9 -9
- package/lib/resources/shipping_categories.d.cts +3 -3
- package/lib/resources/shipping_categories.d.ts +2 -2
- package/lib/resources/shipping_categories.js +8 -8
- package/lib/resources/shipping_method_tiers.cjs +9 -9
- package/lib/resources/shipping_method_tiers.d.cts +3 -3
- package/lib/resources/shipping_method_tiers.d.ts +2 -2
- package/lib/resources/shipping_method_tiers.js +8 -8
- package/lib/resources/shipping_methods.cjs +9 -9
- package/lib/resources/shipping_methods.d.cts +3 -3
- package/lib/resources/shipping_methods.d.ts +2 -2
- package/lib/resources/shipping_methods.js +8 -8
- package/lib/resources/shipping_weight_tiers.cjs +9 -9
- package/lib/resources/shipping_weight_tiers.d.cts +3 -3
- package/lib/resources/shipping_weight_tiers.d.ts +2 -2
- package/lib/resources/shipping_weight_tiers.js +8 -8
- package/lib/resources/shipping_zones.cjs +9 -9
- package/lib/resources/shipping_zones.d.cts +3 -3
- package/lib/resources/shipping_zones.d.ts +2 -2
- package/lib/resources/shipping_zones.js +8 -8
- package/lib/resources/sku_list_items.cjs +9 -9
- package/lib/resources/sku_list_items.d.cts +3 -3
- package/lib/resources/sku_list_items.d.ts +2 -2
- package/lib/resources/sku_list_items.js +8 -8
- package/lib/resources/sku_list_promotion_rules.cjs +9 -9
- package/lib/resources/sku_list_promotion_rules.d.cts +3 -3
- package/lib/resources/sku_list_promotion_rules.d.ts +2 -2
- package/lib/resources/sku_list_promotion_rules.js +8 -8
- package/lib/resources/sku_lists.cjs +9 -9
- package/lib/resources/sku_lists.d.cts +3 -3
- package/lib/resources/sku_lists.d.ts +2 -2
- package/lib/resources/sku_lists.js +8 -8
- package/lib/resources/sku_options.cjs +9 -9
- package/lib/resources/sku_options.d.cts +3 -3
- package/lib/resources/sku_options.d.ts +2 -2
- package/lib/resources/sku_options.js +8 -8
- package/lib/resources/skus.cjs +9 -9
- package/lib/resources/skus.d.cts +3 -3
- package/lib/resources/skus.d.ts +2 -2
- package/lib/resources/skus.js +8 -8
- package/lib/resources/stock_items.cjs +9 -9
- package/lib/resources/stock_items.d.cts +3 -3
- package/lib/resources/stock_items.d.ts +2 -2
- package/lib/resources/stock_items.js +8 -8
- package/lib/resources/stock_line_items.cjs +9 -9
- package/lib/resources/stock_line_items.d.cts +3 -3
- package/lib/resources/stock_line_items.d.ts +2 -2
- package/lib/resources/stock_line_items.js +8 -8
- package/lib/resources/stock_locations.cjs +9 -9
- package/lib/resources/stock_locations.d.cts +3 -3
- package/lib/resources/stock_locations.d.ts +2 -2
- package/lib/resources/stock_locations.js +8 -8
- package/lib/resources/stock_reservations.cjs +9 -9
- package/lib/resources/stock_reservations.d.cts +3 -3
- package/lib/resources/stock_reservations.d.ts +2 -2
- package/lib/resources/stock_reservations.js +8 -8
- package/lib/resources/stock_transfers.cjs +9 -9
- package/lib/resources/stock_transfers.d.cts +3 -3
- package/lib/resources/stock_transfers.d.ts +2 -2
- package/lib/resources/stock_transfers.js +8 -8
- package/lib/resources/stores.cjs +9 -9
- package/lib/resources/stores.d.cts +3 -3
- package/lib/resources/stores.d.ts +2 -2
- package/lib/resources/stores.js +8 -8
- package/lib/resources/stripe_gateways.cjs +9 -9
- package/lib/resources/stripe_gateways.d.cts +3 -3
- package/lib/resources/stripe_gateways.d.ts +2 -2
- package/lib/resources/stripe_gateways.js +8 -8
- package/lib/resources/stripe_payments.cjs +9 -9
- package/lib/resources/stripe_payments.d.cts +3 -3
- package/lib/resources/stripe_payments.d.ts +2 -2
- package/lib/resources/stripe_payments.js +8 -8
- package/lib/resources/stripe_tax_accounts.cjs +9 -9
- package/lib/resources/stripe_tax_accounts.d.cts +3 -3
- package/lib/resources/stripe_tax_accounts.d.ts +2 -2
- package/lib/resources/stripe_tax_accounts.js +8 -8
- package/lib/resources/subscription_models.cjs +9 -9
- package/lib/resources/subscription_models.d.cts +3 -3
- package/lib/resources/subscription_models.d.ts +2 -2
- package/lib/resources/subscription_models.js +8 -8
- package/lib/resources/tags.cjs +9 -9
- package/lib/resources/tags.d.cts +3 -3
- package/lib/resources/tags.d.ts +2 -2
- package/lib/resources/tags.js +8 -8
- package/lib/resources/talon_one_accounts.cjs +9 -9
- package/lib/resources/talon_one_accounts.d.cts +3 -3
- package/lib/resources/talon_one_accounts.d.ts +2 -2
- package/lib/resources/talon_one_accounts.js +8 -8
- package/lib/resources/tax_calculators.cjs +9 -9
- package/lib/resources/tax_calculators.d.cts +3 -3
- package/lib/resources/tax_calculators.d.ts +2 -2
- package/lib/resources/tax_calculators.js +8 -8
- package/lib/resources/tax_categories.cjs +9 -9
- package/lib/resources/tax_categories.d.cts +3 -3
- package/lib/resources/tax_categories.d.ts +2 -2
- package/lib/resources/tax_categories.js +8 -8
- package/lib/resources/tax_rules.cjs +9 -9
- package/lib/resources/tax_rules.d.cts +3 -3
- package/lib/resources/tax_rules.d.ts +2 -2
- package/lib/resources/tax_rules.js +8 -8
- package/lib/resources/taxjar_accounts.cjs +9 -9
- package/lib/resources/taxjar_accounts.d.cts +3 -3
- package/lib/resources/taxjar_accounts.d.ts +2 -2
- package/lib/resources/taxjar_accounts.js +8 -8
- package/lib/resources/transactions.cjs +9 -9
- package/lib/resources/transactions.d.cts +3 -3
- package/lib/resources/transactions.d.ts +2 -2
- package/lib/resources/transactions.js +8 -8
- package/lib/resources/versions.cjs +9 -9
- package/lib/resources/versions.d.cts +3 -3
- package/lib/resources/versions.d.ts +2 -2
- package/lib/resources/versions.js +8 -8
- package/lib/resources/vertex_accounts.cjs +9 -9
- package/lib/resources/vertex_accounts.d.cts +3 -3
- package/lib/resources/vertex_accounts.d.ts +2 -2
- package/lib/resources/vertex_accounts.js +8 -8
- package/lib/resources/voids.cjs +9 -9
- package/lib/resources/voids.d.cts +3 -3
- package/lib/resources/voids.d.ts +2 -2
- package/lib/resources/voids.js +8 -8
- package/lib/resources/webhooks.cjs +9 -9
- package/lib/resources/webhooks.d.cts +3 -3
- package/lib/resources/webhooks.d.ts +2 -2
- package/lib/resources/webhooks.js +8 -8
- package/lib/resources/wire_transfers.cjs +9 -9
- package/lib/resources/wire_transfers.d.cts +3 -3
- package/lib/resources/wire_transfers.d.ts +2 -2
- package/lib/resources/wire_transfers.js +8 -8
- package/lib/static.cjs +10 -10
- package/lib/static.d.cts +2 -2
- package/lib/static.d.ts +2 -2
- package/lib/static.js +9 -9
- package/lib/util.cjs +5 -5
- package/lib/util.js +1 -1
- package/package.json +6 -8
- package/lib/api-D2LyR3zD.d.cts +0 -18255
- package/lib/api-D8k2hYlQ.d.ts +0 -18255
- package/lib/chunk-2AIPAXOH.cjs +0 -65
- package/lib/chunk-2AIPAXOH.cjs.map +0 -1
- package/lib/chunk-2CPNHJAZ.cjs +0 -51
- package/lib/chunk-2CPNHJAZ.cjs.map +0 -1
- package/lib/chunk-2H2ODZUY.cjs +0 -160
- package/lib/chunk-2H2ODZUY.cjs.map +0 -1
- package/lib/chunk-2JB3IVP4.js +0 -99
- package/lib/chunk-2JB3IVP4.js.map +0 -1
- package/lib/chunk-2M54XID3.cjs +0 -51
- package/lib/chunk-2M54XID3.cjs.map +0 -1
- package/lib/chunk-2M5MIMZG.cjs +0 -55
- package/lib/chunk-2M5MIMZG.cjs.map +0 -1
- package/lib/chunk-2QBP2WHJ.js +0 -49
- package/lib/chunk-2QBP2WHJ.js.map +0 -1
- package/lib/chunk-2VNQTC3B.cjs +0 -56
- package/lib/chunk-2VNQTC3B.cjs.map +0 -1
- package/lib/chunk-2XDNWGMO.cjs +0 -99
- package/lib/chunk-2XDNWGMO.cjs.map +0 -1
- package/lib/chunk-2ZVHALAO.cjs +0 -39
- package/lib/chunk-2ZVHALAO.cjs.map +0 -1
- package/lib/chunk-33CXJXIW.js +0 -63
- package/lib/chunk-33CXJXIW.js.map +0 -1
- package/lib/chunk-34MN4L45.js +0 -37
- package/lib/chunk-34MN4L45.js.map +0 -1
- package/lib/chunk-3CBCQQBN.cjs +0 -79
- package/lib/chunk-3CBCQQBN.cjs.map +0 -1
- package/lib/chunk-3FQU4LWE.js +0 -53
- package/lib/chunk-3FQU4LWE.js.map +0 -1
- package/lib/chunk-3KNN5WPE.js +0 -55
- package/lib/chunk-3KNN5WPE.js.map +0 -1
- package/lib/chunk-3QQQMHYY.js +0 -72
- package/lib/chunk-3QQQMHYY.js.map +0 -1
- package/lib/chunk-3WTRPII2.cjs +0 -47
- package/lib/chunk-3WTRPII2.cjs.map +0 -1
- package/lib/chunk-3X6OVCVT.cjs +0 -57
- package/lib/chunk-3X6OVCVT.cjs.map +0 -1
- package/lib/chunk-3YINNWNG.cjs +0 -51
- package/lib/chunk-3YINNWNG.cjs.map +0 -1
- package/lib/chunk-3ZOHHEJR.js +0 -59
- package/lib/chunk-3ZOHHEJR.js.map +0 -1
- package/lib/chunk-43SLAYP5.js +0 -68
- package/lib/chunk-43SLAYP5.js.map +0 -1
- package/lib/chunk-45YSQMGA.cjs +0 -81
- package/lib/chunk-45YSQMGA.cjs.map +0 -1
- package/lib/chunk-46ESSSNR.cjs +0 -102
- package/lib/chunk-46ESSSNR.cjs.map +0 -1
- package/lib/chunk-4IOIA2JQ.cjs +0 -93
- package/lib/chunk-4IOIA2JQ.cjs.map +0 -1
- package/lib/chunk-4L73VYT5.cjs +0 -51
- package/lib/chunk-4L73VYT5.cjs.map +0 -1
- package/lib/chunk-4MCWJ5GT.js +0 -57
- package/lib/chunk-4MCWJ5GT.js.map +0 -1
- package/lib/chunk-4MDMKEMH.js +0 -645
- package/lib/chunk-4MDMKEMH.js.map +0 -1
- package/lib/chunk-4XQNILDJ.js +0 -59
- package/lib/chunk-4XQNILDJ.js.map +0 -1
- package/lib/chunk-5BIP4OLZ.js +0 -54
- package/lib/chunk-5BIP4OLZ.js.map +0 -1
- package/lib/chunk-5QHMVNEQ.cjs +0 -34
- package/lib/chunk-5QHMVNEQ.cjs.map +0 -1
- package/lib/chunk-5TL34ZY6.js +0 -49
- package/lib/chunk-5TL34ZY6.js.map +0 -1
- package/lib/chunk-5WUI6OHH.cjs +0 -43
- package/lib/chunk-5WUI6OHH.cjs.map +0 -1
- package/lib/chunk-62EOOGD4.js +0 -128
- package/lib/chunk-62EOOGD4.js.map +0 -1
- package/lib/chunk-65LSQZTV.js +0 -45
- package/lib/chunk-65LSQZTV.js.map +0 -1
- package/lib/chunk-67LLQOPH.js +0 -55
- package/lib/chunk-67LLQOPH.js.map +0 -1
- package/lib/chunk-67TJ6ALR.js +0 -47
- package/lib/chunk-67TJ6ALR.js.map +0 -1
- package/lib/chunk-67U7A4FV.cjs +0 -72
- package/lib/chunk-67U7A4FV.cjs.map +0 -1
- package/lib/chunk-6DRGTFBA.cjs +0 -57
- package/lib/chunk-6DRGTFBA.cjs.map +0 -1
- package/lib/chunk-6EIS4TN3.js +0 -49
- package/lib/chunk-6EIS4TN3.js.map +0 -1
- package/lib/chunk-6KOFQEOI.cjs +0 -60
- package/lib/chunk-6KOFQEOI.cjs.map +0 -1
- package/lib/chunk-6KXHU2QJ.js +0 -70
- package/lib/chunk-6KXHU2QJ.js.map +0 -1
- package/lib/chunk-6LHRWK5U.cjs +0 -39
- package/lib/chunk-6LHRWK5U.cjs.map +0 -1
- package/lib/chunk-6PKJDHVC.js +0 -48
- package/lib/chunk-6PKJDHVC.js.map +0 -1
- package/lib/chunk-6S7EJUCA.cjs +0 -47
- package/lib/chunk-6S7EJUCA.cjs.map +0 -1
- package/lib/chunk-6SGYQRO6.js +0 -53
- package/lib/chunk-6SGYQRO6.js.map +0 -1
- package/lib/chunk-6SO2W3YA.js +0 -56
- package/lib/chunk-6SO2W3YA.js.map +0 -1
- package/lib/chunk-6STKOQR7.cjs +0 -63
- package/lib/chunk-6STKOQR7.cjs.map +0 -1
- package/lib/chunk-7P3ZTIQX.cjs +0 -55
- package/lib/chunk-7P3ZTIQX.cjs.map +0 -1
- package/lib/chunk-7YWXHAMP.cjs +0 -61
- package/lib/chunk-7YWXHAMP.cjs.map +0 -1
- package/lib/chunk-7Z7FQA33.cjs +0 -661
- package/lib/chunk-7Z7FQA33.cjs.map +0 -1
- package/lib/chunk-A2SZPZSG.cjs +0 -50
- package/lib/chunk-A2SZPZSG.cjs.map +0 -1
- package/lib/chunk-A3VWVK2F.js +0 -36
- package/lib/chunk-A3VWVK2F.js.map +0 -1
- package/lib/chunk-A4MUL4NB.js +0 -53
- package/lib/chunk-A4MUL4NB.js.map +0 -1
- package/lib/chunk-A5KAGODH.js +0 -51
- package/lib/chunk-A5KAGODH.js.map +0 -1
- package/lib/chunk-ALCZSKPR.cjs +0 -88
- package/lib/chunk-ALCZSKPR.cjs.map +0 -1
- package/lib/chunk-AWV5Y4SH.js +0 -70
- package/lib/chunk-AWV5Y4SH.js.map +0 -1
- package/lib/chunk-BGH55KTL.js +0 -55
- package/lib/chunk-BGH55KTL.js.map +0 -1
- package/lib/chunk-BGHPRKU4.cjs +0 -51
- package/lib/chunk-BGHPRKU4.cjs.map +0 -1
- package/lib/chunk-BHXCVURA.cjs +0 -130
- package/lib/chunk-BHXCVURA.cjs.map +0 -1
- package/lib/chunk-BNWM637R.js +0 -73
- package/lib/chunk-BNWM637R.js.map +0 -1
- package/lib/chunk-BQ4VRKE7.js +0 -28
- package/lib/chunk-BQ4VRKE7.js.map +0 -1
- package/lib/chunk-BRXYDOGG.cjs +0 -56
- package/lib/chunk-BRXYDOGG.cjs.map +0 -1
- package/lib/chunk-BT72RZCE.js +0 -36
- package/lib/chunk-BT72RZCE.js.map +0 -1
- package/lib/chunk-BTLPF6RH.js +0 -49
- package/lib/chunk-BTLPF6RH.js.map +0 -1
- package/lib/chunk-BUHV5UDN.cjs +0 -54
- package/lib/chunk-BUHV5UDN.cjs.map +0 -1
- package/lib/chunk-C27B7IUW.cjs +0 -39
- package/lib/chunk-C27B7IUW.cjs.map +0 -1
- package/lib/chunk-C47UWH7R.js +0 -48
- package/lib/chunk-C47UWH7R.js.map +0 -1
- package/lib/chunk-C6ACTKJH.js +0 -48
- package/lib/chunk-C6ACTKJH.js.map +0 -1
- package/lib/chunk-CETB5FAI.js +0 -41
- package/lib/chunk-CETB5FAI.js.map +0 -1
- package/lib/chunk-CHYP5F26.js +0 -59
- package/lib/chunk-CHYP5F26.js.map +0 -1
- package/lib/chunk-CQASXR3J.cjs +0 -60
- package/lib/chunk-CQASXR3J.cjs.map +0 -1
- package/lib/chunk-D2HUJSJV.cjs +0 -74
- package/lib/chunk-D2HUJSJV.cjs.map +0 -1
- package/lib/chunk-D7SALAS2.cjs +0 -29
- package/lib/chunk-D7SALAS2.cjs.map +0 -1
- package/lib/chunk-D7VHCT5M.cjs +0 -47
- package/lib/chunk-D7VHCT5M.cjs.map +0 -1
- package/lib/chunk-DIE5NWNX.js +0 -105
- package/lib/chunk-DIE5NWNX.js.map +0 -1
- package/lib/chunk-DM62R5CL.cjs +0 -50
- package/lib/chunk-DM62R5CL.cjs.map +0 -1
- package/lib/chunk-DOY7VJPG.js +0 -58
- package/lib/chunk-DOY7VJPG.js.map +0 -1
- package/lib/chunk-DPE4FTTS.cjs +0 -42
- package/lib/chunk-DPE4FTTS.cjs.map +0 -1
- package/lib/chunk-DPJDEC6A.js +0 -42
- package/lib/chunk-DPJDEC6A.js.map +0 -1
- package/lib/chunk-DQWWKXLR.cjs +0 -51
- package/lib/chunk-DQWWKXLR.cjs.map +0 -1
- package/lib/chunk-E2EVY45K.js +0 -48
- package/lib/chunk-E2EVY45K.js.map +0 -1
- package/lib/chunk-E2G3K7H4.js +0 -32
- package/lib/chunk-E2G3K7H4.js.map +0 -1
- package/lib/chunk-EAR4AXVU.cjs +0 -51
- package/lib/chunk-EAR4AXVU.cjs.map +0 -1
- package/lib/chunk-EFQH4OGQ.cjs +0 -46
- package/lib/chunk-EFQH4OGQ.cjs.map +0 -1
- package/lib/chunk-EJNNEY2F.cjs +0 -60
- package/lib/chunk-EJNNEY2F.cjs.map +0 -1
- package/lib/chunk-ERA2COOU.js +0 -37
- package/lib/chunk-ERA2COOU.js.map +0 -1
- package/lib/chunk-ESGRB4YB.cjs +0 -55
- package/lib/chunk-ESGRB4YB.cjs.map +0 -1
- package/lib/chunk-EVVUYC7T.cjs +0 -47
- package/lib/chunk-EVVUYC7T.cjs.map +0 -1
- package/lib/chunk-EZHUH52J.cjs +0 -54
- package/lib/chunk-EZHUH52J.cjs.map +0 -1
- package/lib/chunk-F3UMNXXH.js +0 -45
- package/lib/chunk-F3UMNXXH.js.map +0 -1
- package/lib/chunk-F46RW7IU.cjs +0 -109
- package/lib/chunk-F46RW7IU.cjs.map +0 -1
- package/lib/chunk-F4P2PUF7.cjs +0 -73
- package/lib/chunk-F4P2PUF7.cjs.map +0 -1
- package/lib/chunk-F6WABN7F.cjs +0 -105
- package/lib/chunk-F6WABN7F.cjs.map +0 -1
- package/lib/chunk-FDW7JX5A.cjs +0 -55
- package/lib/chunk-FDW7JX5A.cjs.map +0 -1
- package/lib/chunk-FFX5MED5.js +0 -55
- package/lib/chunk-FFX5MED5.js.map +0 -1
- package/lib/chunk-FI2PWG6C.js +0 -63
- package/lib/chunk-FI2PWG6C.js.map +0 -1
- package/lib/chunk-FI7BWBCX.js +0 -63
- package/lib/chunk-FI7BWBCX.js.map +0 -1
- package/lib/chunk-FIM76CMU.cjs +0 -42
- package/lib/chunk-FIM76CMU.cjs.map +0 -1
- package/lib/chunk-FMGDNZQ6.cjs +0 -51
- package/lib/chunk-FMGDNZQ6.cjs.map +0 -1
- package/lib/chunk-FTYGJZZM.js +0 -44
- package/lib/chunk-FTYGJZZM.js.map +0 -1
- package/lib/chunk-FUDBWYKD.js +0 -49
- package/lib/chunk-FUDBWYKD.js.map +0 -1
- package/lib/chunk-G2ZCHH4W.js +0 -55
- package/lib/chunk-G2ZCHH4W.js.map +0 -1
- package/lib/chunk-G5IOYKFS.js +0 -53
- package/lib/chunk-G5IOYKFS.js.map +0 -1
- package/lib/chunk-G74VYKRY.js +0 -45
- package/lib/chunk-G74VYKRY.js.map +0 -1
- package/lib/chunk-G7MROYQP.cjs +0 -42
- package/lib/chunk-G7MROYQP.cjs.map +0 -1
- package/lib/chunk-GAPLQGJO.js +0 -97
- package/lib/chunk-GAPLQGJO.js.map +0 -1
- package/lib/chunk-GHYWZ5KT.cjs +0 -99
- package/lib/chunk-GHYWZ5KT.cjs.map +0 -1
- package/lib/chunk-GJOZR5TC.cjs +0 -93
- package/lib/chunk-GJOZR5TC.cjs.map +0 -1
- package/lib/chunk-GKUFMSZL.js +0 -32
- package/lib/chunk-GKUFMSZL.js.map +0 -1
- package/lib/chunk-GLL264QG.cjs +0 -55
- package/lib/chunk-GLL264QG.cjs.map +0 -1
- package/lib/chunk-H5CKBXQS.js +0 -53
- package/lib/chunk-H5CKBXQS.js.map +0 -1
- package/lib/chunk-H7EX22DB.cjs +0 -65
- package/lib/chunk-H7EX22DB.cjs.map +0 -1
- package/lib/chunk-HBDXHKBE.js +0 -91
- package/lib/chunk-HBDXHKBE.js.map +0 -1
- package/lib/chunk-HBVSEXIQ.js +0 -58
- package/lib/chunk-HBVSEXIQ.js.map +0 -1
- package/lib/chunk-HOJUXLZD.cjs +0 -75
- package/lib/chunk-HOJUXLZD.cjs.map +0 -1
- package/lib/chunk-HU6DRUWJ.js +0 -86
- package/lib/chunk-HU6DRUWJ.js.map +0 -1
- package/lib/chunk-HUDH634O.cjs +0 -67
- package/lib/chunk-HUDH634O.cjs.map +0 -1
- package/lib/chunk-I2NZB6KN.js +0 -44
- package/lib/chunk-I2NZB6KN.js.map +0 -1
- package/lib/chunk-I3ZMOPMJ.js +0 -52
- package/lib/chunk-I3ZMOPMJ.js.map +0 -1
- package/lib/chunk-I56ZABWO.cjs +0 -38
- package/lib/chunk-I56ZABWO.cjs.map +0 -1
- package/lib/chunk-I5VOVSS7.cjs +0 -71
- package/lib/chunk-I5VOVSS7.cjs.map +0 -1
- package/lib/chunk-I64U2VMD.cjs +0 -51
- package/lib/chunk-I64U2VMD.cjs.map +0 -1
- package/lib/chunk-IHPFHOEJ.js +0 -40
- package/lib/chunk-IHPFHOEJ.js.map +0 -1
- package/lib/chunk-IKHD5UQP.cjs +0 -163
- package/lib/chunk-IKHD5UQP.cjs.map +0 -1
- package/lib/chunk-INW4SZG7.js +0 -93
- package/lib/chunk-INW4SZG7.js.map +0 -1
- package/lib/chunk-IODJPN7Z.js +0 -77
- package/lib/chunk-IODJPN7Z.js.map +0 -1
- package/lib/chunk-IQQNG3U2.cjs +0 -55
- package/lib/chunk-IQQNG3U2.cjs.map +0 -1
- package/lib/chunk-IQVSM3MS.js +0 -57
- package/lib/chunk-IQVSM3MS.js.map +0 -1
- package/lib/chunk-IT2MWRJY.js +0 -54
- package/lib/chunk-IT2MWRJY.js.map +0 -1
- package/lib/chunk-IXOAGKRD.cjs +0 -65
- package/lib/chunk-IXOAGKRD.cjs.map +0 -1
- package/lib/chunk-IYPHDMBD.js +0 -52
- package/lib/chunk-IYPHDMBD.js.map +0 -1
- package/lib/chunk-J32Z2XNX.cjs +0 -57
- package/lib/chunk-J32Z2XNX.cjs.map +0 -1
- package/lib/chunk-J3IOXLY2.cjs +0 -107
- package/lib/chunk-J3IOXLY2.cjs.map +0 -1
- package/lib/chunk-J42WGTN6.cjs +0 -50
- package/lib/chunk-J42WGTN6.cjs.map +0 -1
- package/lib/chunk-JAOFRM22.js +0 -61
- package/lib/chunk-JAOFRM22.js.map +0 -1
- package/lib/chunk-JCOJGOXF.cjs +0 -107
- package/lib/chunk-JCOJGOXF.cjs.map +0 -1
- package/lib/chunk-JD3MI7AO.js +0 -55
- package/lib/chunk-JD3MI7AO.js.map +0 -1
- package/lib/chunk-JDFDWBXQ.js +0 -53
- package/lib/chunk-JDFDWBXQ.js.map +0 -1
- package/lib/chunk-JLLZQ7JR.cjs +0 -57
- package/lib/chunk-JLLZQ7JR.cjs.map +0 -1
- package/lib/chunk-JPKZBEAY.js +0 -59
- package/lib/chunk-JPKZBEAY.js.map +0 -1
- package/lib/chunk-JPX4RLBV.js +0 -158
- package/lib/chunk-JPX4RLBV.js.map +0 -1
- package/lib/chunk-JUVEIRM4.cjs +0 -47
- package/lib/chunk-JUVEIRM4.cjs.map +0 -1
- package/lib/chunk-JVF5KY2J.cjs +0 -22
- package/lib/chunk-JVF5KY2J.cjs.map +0 -1
- package/lib/chunk-JWB5Y2WT.cjs +0 -58
- package/lib/chunk-JWB5Y2WT.cjs.map +0 -1
- package/lib/chunk-JWLNUOL5.js +0 -79
- package/lib/chunk-JWLNUOL5.js.map +0 -1
- package/lib/chunk-JYSIXEKG.cjs +0 -54
- package/lib/chunk-JYSIXEKG.cjs.map +0 -1
- package/lib/chunk-K2E4PX3F.cjs +0 -51
- package/lib/chunk-K2E4PX3F.cjs.map +0 -1
- package/lib/chunk-K3CF32TJ.cjs +0 -46
- package/lib/chunk-K3CF32TJ.cjs.map +0 -1
- package/lib/chunk-K6MX6OZL.js +0 -44
- package/lib/chunk-K6MX6OZL.js.map +0 -1
- package/lib/chunk-K7AR7Z3J.cjs +0 -58
- package/lib/chunk-K7AR7Z3J.cjs.map +0 -1
- package/lib/chunk-KAZKQXUO.js +0 -103
- package/lib/chunk-KAZKQXUO.js.map +0 -1
- package/lib/chunk-KDDMRBB6.cjs +0 -30
- package/lib/chunk-KDDMRBB6.cjs.map +0 -1
- package/lib/chunk-KGZ3FTYR.cjs +0 -43
- package/lib/chunk-KGZ3FTYR.cjs.map +0 -1
- package/lib/chunk-KM27D322.cjs +0 -70
- package/lib/chunk-KM27D322.cjs.map +0 -1
- package/lib/chunk-KMWKIU65.js +0 -107
- package/lib/chunk-KMWKIU65.js.map +0 -1
- package/lib/chunk-KT2FGWBT.cjs +0 -59
- package/lib/chunk-KT2FGWBT.cjs.map +0 -1
- package/lib/chunk-KVRZZTDE.js +0 -40
- package/lib/chunk-KVRZZTDE.js.map +0 -1
- package/lib/chunk-KWOKL6HK.cjs +0 -59
- package/lib/chunk-KWOKL6HK.cjs.map +0 -1
- package/lib/chunk-LE4I5AHS.js +0 -53
- package/lib/chunk-LE4I5AHS.js.map +0 -1
- package/lib/chunk-LESXALEZ.js +0 -49
- package/lib/chunk-LESXALEZ.js.map +0 -1
- package/lib/chunk-LF3CZYGK.js +0 -49
- package/lib/chunk-LF3CZYGK.js.map +0 -1
- package/lib/chunk-LGOJTWKL.js +0 -52
- package/lib/chunk-LGOJTWKL.js.map +0 -1
- package/lib/chunk-LIIFLHEH.cjs +0 -286
- package/lib/chunk-LIIFLHEH.cjs.map +0 -1
- package/lib/chunk-LKBPLGXI.cjs +0 -57
- package/lib/chunk-LKBPLGXI.cjs.map +0 -1
- package/lib/chunk-LKVJRTT2.cjs +0 -72
- package/lib/chunk-LKVJRTT2.cjs.map +0 -1
- package/lib/chunk-LTCWS2HF.cjs +0 -43
- package/lib/chunk-LTCWS2HF.cjs.map +0 -1
- package/lib/chunk-LUS6TTEC.js +0 -284
- package/lib/chunk-LUS6TTEC.js.map +0 -1
- package/lib/chunk-M37U5CLH.js +0 -102
- package/lib/chunk-M37U5CLH.js.map +0 -1
- package/lib/chunk-M6BKGQCR.js +0 -100
- package/lib/chunk-M6BKGQCR.js.map +0 -1
- package/lib/chunk-MBROL4C2.cjs +0 -101
- package/lib/chunk-MBROL4C2.cjs.map +0 -1
- package/lib/chunk-MCZXCMRV.js +0 -97
- package/lib/chunk-MCZXCMRV.js.map +0 -1
- package/lib/chunk-MHCLPVOI.js +0 -56
- package/lib/chunk-MHCLPVOI.js.map +0 -1
- package/lib/chunk-MHQOHOZS.js +0 -97
- package/lib/chunk-MHQOHOZS.js.map +0 -1
- package/lib/chunk-MKV2B7P5.cjs +0 -46
- package/lib/chunk-MKV2B7P5.cjs.map +0 -1
- package/lib/chunk-MOKBZVUU.js +0 -53
- package/lib/chunk-MOKBZVUU.js.map +0 -1
- package/lib/chunk-MUMTGXL2.js +0 -57
- package/lib/chunk-MUMTGXL2.js.map +0 -1
- package/lib/chunk-MXT6VH7V.js +0 -45
- package/lib/chunk-MXT6VH7V.js.map +0 -1
- package/lib/chunk-MYWCHH2I.cjs +0 -79
- package/lib/chunk-MYWCHH2I.cjs.map +0 -1
- package/lib/chunk-N35FM5P4.js +0 -64
- package/lib/chunk-N35FM5P4.js.map +0 -1
- package/lib/chunk-N4COQM5Q.js +0 -37
- package/lib/chunk-N4COQM5Q.js.map +0 -1
- package/lib/chunk-NEVN2SMR.js +0 -53
- package/lib/chunk-NEVN2SMR.js.map +0 -1
- package/lib/chunk-NQHQV4PY.js +0 -31
- package/lib/chunk-NQHQV4PY.js.map +0 -1
- package/lib/chunk-NRZBSJPM.js +0 -45
- package/lib/chunk-NRZBSJPM.js.map +0 -1
- package/lib/chunk-NTAREPLJ.js +0 -91
- package/lib/chunk-NTAREPLJ.js.map +0 -1
- package/lib/chunk-NVNPOVIQ.cjs +0 -46
- package/lib/chunk-NVNPOVIQ.cjs.map +0 -1
- package/lib/chunk-NWKIFDQH.cjs +0 -55
- package/lib/chunk-NWKIFDQH.cjs.map +0 -1
- package/lib/chunk-O3NWYOPV.cjs +0 -55
- package/lib/chunk-O3NWYOPV.cjs.map +0 -1
- package/lib/chunk-O66EZDG2.cjs +0 -53
- package/lib/chunk-O66EZDG2.cjs.map +0 -1
- package/lib/chunk-OA4DVMEQ.cjs +0 -59
- package/lib/chunk-OA4DVMEQ.cjs.map +0 -1
- package/lib/chunk-OA7RZ24N.js +0 -49
- package/lib/chunk-OA7RZ24N.js.map +0 -1
- package/lib/chunk-OEUSTDGS.cjs +0 -42
- package/lib/chunk-OEUSTDGS.cjs.map +0 -1
- package/lib/chunk-OH5533KN.cjs +0 -55
- package/lib/chunk-OH5533KN.cjs.map +0 -1
- package/lib/chunk-OL6PRNU5.js +0 -49
- package/lib/chunk-OL6PRNU5.js.map +0 -1
- package/lib/chunk-OPPZLGKC.js +0 -53
- package/lib/chunk-OPPZLGKC.js.map +0 -1
- package/lib/chunk-OSZIVS3X.cjs +0 -99
- package/lib/chunk-OSZIVS3X.cjs.map +0 -1
- package/lib/chunk-OV4JT553.cjs +0 -51
- package/lib/chunk-OV4JT553.cjs.map +0 -1
- package/lib/chunk-P2OLPCWV.cjs +0 -54
- package/lib/chunk-P2OLPCWV.cjs.map +0 -1
- package/lib/chunk-P7E2LQ6Q.js +0 -53
- package/lib/chunk-P7E2LQ6Q.js.map +0 -1
- package/lib/chunk-PA43CMMI.cjs +0 -55
- package/lib/chunk-PA43CMMI.cjs.map +0 -1
- package/lib/chunk-PBE4XAIR.cjs +0 -65
- package/lib/chunk-PBE4XAIR.cjs.map +0 -1
- package/lib/chunk-PBIARBZH.cjs +0 -51
- package/lib/chunk-PBIARBZH.cjs.map +0 -1
- package/lib/chunk-PLIS7EYD.js +0 -41
- package/lib/chunk-PLIS7EYD.js.map +0 -1
- package/lib/chunk-PXSMF4QS.cjs +0 -57
- package/lib/chunk-PXSMF4QS.cjs.map +0 -1
- package/lib/chunk-Q3ULISRX.cjs +0 -57
- package/lib/chunk-Q3ULISRX.cjs.map +0 -1
- package/lib/chunk-QB7GGVK7.js +0 -52
- package/lib/chunk-QB7GGVK7.js.map +0 -1
- package/lib/chunk-QGFAOPJG.cjs +0 -26
- package/lib/chunk-QGFAOPJG.cjs.map +0 -1
- package/lib/chunk-QPQRYXII.js +0 -44
- package/lib/chunk-QPQRYXII.js.map +0 -1
- package/lib/chunk-QVJM26QQ.cjs +0 -95
- package/lib/chunk-QVJM26QQ.cjs.map +0 -1
- package/lib/chunk-QXYNFQDJ.js +0 -24
- package/lib/chunk-QXYNFQDJ.js.map +0 -1
- package/lib/chunk-QYVJGMYT.cjs +0 -51
- package/lib/chunk-QYVJGMYT.cjs.map +0 -1
- package/lib/chunk-R2LRLUUY.js +0 -35
- package/lib/chunk-R2LRLUUY.js.map +0 -1
- package/lib/chunk-R5NSJSKB.js +0 -49
- package/lib/chunk-R5NSJSKB.js.map +0 -1
- package/lib/chunk-RAF3LK5T.cjs +0 -51
- package/lib/chunk-RAF3LK5T.cjs.map +0 -1
- package/lib/chunk-RHG3UVET.cjs +0 -44
- package/lib/chunk-RHG3UVET.cjs.map +0 -1
- package/lib/chunk-RJJQU44M.js +0 -45
- package/lib/chunk-RJJQU44M.js.map +0 -1
- package/lib/chunk-RK3E3UJ2.cjs +0 -61
- package/lib/chunk-RK3E3UJ2.cjs.map +0 -1
- package/lib/chunk-RZMSILW7.js +0 -71
- package/lib/chunk-RZMSILW7.js.map +0 -1
- package/lib/chunk-SDGSOWXI.js +0 -49
- package/lib/chunk-SDGSOWXI.js.map +0 -1
- package/lib/chunk-SFFSVEXJ.js +0 -55
- package/lib/chunk-SFFSVEXJ.js.map +0 -1
- package/lib/chunk-SKETQJTW.cjs +0 -59
- package/lib/chunk-SKETQJTW.cjs.map +0 -1
- package/lib/chunk-SRW7OWVS.cjs +0 -40
- package/lib/chunk-SRW7OWVS.cjs.map +0 -1
- package/lib/chunk-SWBSSC3A.js +0 -97
- package/lib/chunk-SWBSSC3A.js.map +0 -1
- package/lib/chunk-SXPZRQBF.js +0 -49
- package/lib/chunk-SXPZRQBF.js.map +0 -1
- package/lib/chunk-T2VDBKD4.js +0 -44
- package/lib/chunk-T2VDBKD4.js.map +0 -1
- package/lib/chunk-T5AO4445.cjs +0 -49
- package/lib/chunk-T5AO4445.cjs.map +0 -1
- package/lib/chunk-TE3N57V6.js +0 -40
- package/lib/chunk-TE3N57V6.js.map +0 -1
- package/lib/chunk-TFJYQUEH.cjs +0 -51
- package/lib/chunk-TFJYQUEH.cjs.map +0 -1
- package/lib/chunk-TIINXXHU.cjs +0 -46
- package/lib/chunk-TIINXXHU.cjs.map +0 -1
- package/lib/chunk-TLOIOTYF.cjs +0 -66
- package/lib/chunk-TLOIOTYF.cjs.map +0 -1
- package/lib/chunk-TWL4WEOL.js +0 -49
- package/lib/chunk-TWL4WEOL.js.map +0 -1
- package/lib/chunk-TZAGUXNS.cjs +0 -61
- package/lib/chunk-TZAGUXNS.cjs.map +0 -1
- package/lib/chunk-U22VLCMN.cjs +0 -284
- package/lib/chunk-U22VLCMN.cjs.map +0 -1
- package/lib/chunk-U25QRMJY.js +0 -28
- package/lib/chunk-U25QRMJY.js.map +0 -1
- package/lib/chunk-U4ELOYK7.cjs +0 -42
- package/lib/chunk-U4ELOYK7.cjs.map +0 -1
- package/lib/chunk-U7OGOZ5B.cjs +0 -51
- package/lib/chunk-U7OGOZ5B.cjs.map +0 -1
- package/lib/chunk-UEDVN7C4.js +0 -49
- package/lib/chunk-UEDVN7C4.js.map +0 -1
- package/lib/chunk-UEQ3CRVM.cjs +0 -50
- package/lib/chunk-UEQ3CRVM.cjs.map +0 -1
- package/lib/chunk-UG5XMVH3.cjs +0 -50
- package/lib/chunk-UG5XMVH3.cjs.map +0 -1
- package/lib/chunk-URMWXBVU.cjs +0 -99
- package/lib/chunk-URMWXBVU.cjs.map +0 -1
- package/lib/chunk-UUY77JM3.js +0 -151
- package/lib/chunk-UUY77JM3.js.map +0 -1
- package/lib/chunk-UWM5SGDS.js +0 -65
- package/lib/chunk-UWM5SGDS.js.map +0 -1
- package/lib/chunk-VDC2LQMB.cjs +0 -57
- package/lib/chunk-VDC2LQMB.cjs.map +0 -1
- package/lib/chunk-VEBN2D2K.js +0 -53
- package/lib/chunk-VEBN2D2K.js.map +0 -1
- package/lib/chunk-VGMMPMUL.js +0 -55
- package/lib/chunk-VGMMPMUL.js.map +0 -1
- package/lib/chunk-VKNNJ5CS.js +0 -49
- package/lib/chunk-VKNNJ5CS.js.map +0 -1
- package/lib/chunk-VO5QTCJ4.js +0 -97
- package/lib/chunk-VO5QTCJ4.js.map +0 -1
- package/lib/chunk-VRJJX4JV.js +0 -40
- package/lib/chunk-VRJJX4JV.js.map +0 -1
- package/lib/chunk-VT5HP44I.js +0 -49
- package/lib/chunk-VT5HP44I.js.map +0 -1
- package/lib/chunk-VUVL5VPT.js +0 -49
- package/lib/chunk-VUVL5VPT.js.map +0 -1
- package/lib/chunk-VZGJGOH3.js +0 -55
- package/lib/chunk-VZGJGOH3.js.map +0 -1
- package/lib/chunk-W2EFIUTW.js +0 -40
- package/lib/chunk-W2EFIUTW.js.map +0 -1
- package/lib/chunk-WAC3LO4S.cjs +0 -51
- package/lib/chunk-WAC3LO4S.cjs.map +0 -1
- package/lib/chunk-WFBWZVOK.js +0 -77
- package/lib/chunk-WFBWZVOK.js.map +0 -1
- package/lib/chunk-WK3SIZUG.js +0 -41
- package/lib/chunk-WK3SIZUG.js.map +0 -1
- package/lib/chunk-WLTZ66G4.cjs +0 -38
- package/lib/chunk-WLTZ66G4.cjs.map +0 -1
- package/lib/chunk-WO4S2ZUQ.js +0 -49
- package/lib/chunk-WO4S2ZUQ.js.map +0 -1
- package/lib/chunk-XD7GS4QW.js +0 -20
- package/lib/chunk-XD7GS4QW.js.map +0 -1
- package/lib/chunk-XFHMLWZM.js +0 -63
- package/lib/chunk-XFHMLWZM.js.map +0 -1
- package/lib/chunk-XKERR6OR.js +0 -276
- package/lib/chunk-XKERR6OR.js.map +0 -1
- package/lib/chunk-XOVAUMDC.cjs +0 -55
- package/lib/chunk-XOVAUMDC.cjs.map +0 -1
- package/lib/chunk-XYBXDS3Z.cjs +0 -30
- package/lib/chunk-XYBXDS3Z.cjs.map +0 -1
- package/lib/chunk-Y3NZRCF4.js +0 -49
- package/lib/chunk-Y3NZRCF4.js.map +0 -1
- package/lib/chunk-YDMB4XPA.cjs +0 -57
- package/lib/chunk-YDMB4XPA.cjs.map +0 -1
- package/lib/chunk-YIABS6K6.js +0 -57
- package/lib/chunk-YIABS6K6.js.map +0 -1
- package/lib/chunk-YII77MGK.cjs +0 -99
- package/lib/chunk-YII77MGK.cjs.map +0 -1
- package/lib/chunk-YPGYBULL.cjs +0 -33
- package/lib/chunk-YPGYBULL.cjs.map +0 -1
- package/lib/chunk-YTXFX5LA.js +0 -27
- package/lib/chunk-YTXFX5LA.js.map +0 -1
- package/lib/chunk-YVF52KQK.js +0 -58
- package/lib/chunk-YVF52KQK.js.map +0 -1
- package/lib/chunk-YX4ZQEON.cjs +0 -67
- package/lib/chunk-YX4ZQEON.cjs.map +0 -1
- package/lib/chunk-YY5ENJSH.cjs +0 -63
- package/lib/chunk-YY5ENJSH.cjs.map +0 -1
- package/lib/chunk-YYI4OFL3.js +0 -48
- package/lib/chunk-YYI4OFL3.js.map +0 -1
- package/lib/chunk-YZZQ7GVQ.js +0 -65
- package/lib/chunk-YZZQ7GVQ.js.map +0 -1
- package/lib/chunk-Z66CWIH5.cjs +0 -51
- package/lib/chunk-Z66CWIH5.cjs.map +0 -1
- package/lib/chunk-ZLFWYCCG.cjs +0 -34
- package/lib/chunk-ZLFWYCCG.cjs.map +0 -1
- package/lib/chunk-ZPEK2ZCL.cjs +0 -55
- package/lib/chunk-ZPEK2ZCL.cjs.map +0 -1
- package/lib/chunk-ZSG25S6U.cjs +0 -51
- package/lib/chunk-ZSG25S6U.cjs.map +0 -1
- package/lib/chunk-ZSH3A37I.js +0 -55
- package/lib/chunk-ZSH3A37I.js.map +0 -1
- package/lib/chunk-ZSWW2XGD.cjs +0 -57
- package/lib/chunk-ZSWW2XGD.cjs.map +0 -1
- package/lib/chunk-ZU7GFVQ6.js +0 -153
- package/lib/chunk-ZU7GFVQ6.js.map +0 -1
- package/lib/chunk-ZWVME7CU.cjs +0 -153
- package/lib/chunk-ZWVME7CU.cjs.map +0 -1
- package/lib/chunk-ZYAGX4RM.js +0 -69
- package/lib/chunk-ZYAGX4RM.js.map +0 -1
- package/lib/chunk-ZZOSKORP.cjs +0 -47
- package/lib/chunk-ZZOSKORP.cjs.map +0 -1
- package/lib/interceptor-ETmS7Tab.d.cts +0 -55
- package/lib/interceptor-ETmS7Tab.d.ts +0 -55
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var chunkUBH2EC5P_cjs = require('./chunk-UBH2EC5P.cjs');
|
|
4
|
+
|
|
5
|
+
// src/resources/parcels.ts
|
|
6
|
+
var Parcels = class _Parcels extends chunkUBH2EC5P_cjs.ApiResource {
|
|
7
|
+
static TYPE = "parcels";
|
|
8
|
+
async create(resource, params, options) {
|
|
9
|
+
return this.resources.create({ ...resource, type: _Parcels.TYPE }, params, options);
|
|
10
|
+
}
|
|
11
|
+
async update(resource, params, options) {
|
|
12
|
+
return this.resources.update({ ...resource, type: _Parcels.TYPE }, params, options);
|
|
13
|
+
}
|
|
14
|
+
async delete(id, options) {
|
|
15
|
+
await this.resources.delete(typeof id === "string" ? { id, type: _Parcels.TYPE } : id, options);
|
|
16
|
+
}
|
|
17
|
+
async shipment(parcelId, params, options) {
|
|
18
|
+
const _parcelId = parcelId.id || parcelId;
|
|
19
|
+
return this.resources.fetch({ type: "shipments" }, `parcels/${_parcelId}/shipment`, params, options);
|
|
20
|
+
}
|
|
21
|
+
async package(parcelId, params, options) {
|
|
22
|
+
const _parcelId = parcelId.id || parcelId;
|
|
23
|
+
return this.resources.fetch({ type: "packages" }, `parcels/${_parcelId}/package`, params, options);
|
|
24
|
+
}
|
|
25
|
+
async parcel_line_items(parcelId, params, options) {
|
|
26
|
+
const _parcelId = parcelId.id || parcelId;
|
|
27
|
+
return this.resources.fetch({ type: "parcel_line_items" }, `parcels/${_parcelId}/parcel_line_items`, params, options);
|
|
28
|
+
}
|
|
29
|
+
async attachments(parcelId, params, options) {
|
|
30
|
+
const _parcelId = parcelId.id || parcelId;
|
|
31
|
+
return this.resources.fetch({ type: "attachments" }, `parcels/${_parcelId}/attachments`, params, options);
|
|
32
|
+
}
|
|
33
|
+
async events(parcelId, params, options) {
|
|
34
|
+
const _parcelId = parcelId.id || parcelId;
|
|
35
|
+
return this.resources.fetch({ type: "events" }, `parcels/${_parcelId}/events`, params, options);
|
|
36
|
+
}
|
|
37
|
+
async versions(parcelId, params, options) {
|
|
38
|
+
const _parcelId = parcelId.id || parcelId;
|
|
39
|
+
return this.resources.fetch({ type: "versions" }, `parcels/${_parcelId}/versions`, params, options);
|
|
40
|
+
}
|
|
41
|
+
async event_stores(parcelId, params, options) {
|
|
42
|
+
const _parcelId = parcelId.id || parcelId;
|
|
43
|
+
return this.resources.fetch({ type: "event_stores" }, `parcels/${_parcelId}/event_stores`, params, options);
|
|
44
|
+
}
|
|
45
|
+
isParcel(resource) {
|
|
46
|
+
return resource.type && resource.type === _Parcels.TYPE;
|
|
47
|
+
}
|
|
48
|
+
relationship(id) {
|
|
49
|
+
return super.relationshipOneToOne(id);
|
|
50
|
+
}
|
|
51
|
+
relationshipToMany(...ids) {
|
|
52
|
+
return super.relationshipOneToMany(...ids);
|
|
53
|
+
}
|
|
54
|
+
type() {
|
|
55
|
+
return _Parcels.TYPE;
|
|
56
|
+
}
|
|
57
|
+
};
|
|
58
|
+
var instance = new Parcels();
|
|
59
|
+
var parcels_default = instance;
|
|
60
|
+
|
|
61
|
+
exports.parcels_default = parcels_default;
|
|
62
|
+
//# sourceMappingURL=chunk-NUQ5KNXC.cjs.map
|
|
63
|
+
//# sourceMappingURL=chunk-NUQ5KNXC.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/resources/parcels.ts"],"names":["ApiResource"],"mappings":";;;;;AAyZA,IAAM,OAAA,GAAN,MAAM,QAAA,SAAgBA,6BAAA,CAAoB;AAAA,EAEzC,OAAgB,IAAA,GAAmB,SAAA;AAAA,EAEnC,MAAM,MAAA,CAAO,QAAA,EAAwB,MAAA,EAAsC,OAAA,EAA4C;AACtH,IAAA,OAAO,IAAA,CAAK,SAAA,CAAU,MAAA,CAA6B,EAAE,GAAG,QAAA,EAAU,IAAA,EAAM,QAAA,CAAQ,IAAA,EAAK,EAAG,MAAA,EAAQ,OAAO,CAAA;AAAA,EACxG;AAAA,EAEA,MAAM,MAAA,CAAO,QAAA,EAAwB,MAAA,EAAsC,OAAA,EAA4C;AACtH,IAAA,OAAO,IAAA,CAAK,SAAA,CAAU,MAAA,CAA6B,EAAE,GAAG,QAAA,EAAU,IAAA,EAAM,QAAA,CAAQ,IAAA,EAAK,EAAG,MAAA,EAAQ,OAAO,CAAA;AAAA,EACxG;AAAA,EAEA,MAAM,MAAA,CAAO,EAA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,EACpD;AAAA,EAGA,aAAa,EAAA,EAA2C;AACvD,IAAA,OAAO,KAAA,CAAM,qBAAgC,EAAE,CAAA;AAAA,EAChD;AAAA,EAEA,sBAAsB,GAAA,EAA4B;AACjD,IAAA,OAAO,KAAA,CAAM,qBAAA,CAAiC,GAAG,GAAG,CAAA;AAAA,EACrD;AAAA,EAGA,IAAA,GAAmB;AAClB,IAAA,OAAO,QAAA,CAAQ,IAAA;AAAA,EAChB;AAED,CAAA;AAGA,IAAM,QAAA,GAAW,IAAI,OAAA,EAAQ;AAC7B,IAAO,eAAA,GAAQ","file":"chunk-NUQ5KNXC.cjs","sourcesContent":["import type { QueryParamsList, QueryParamsRetrieve } from '../query'\nimport type { ListResponse, Resource, ResourceCreate, ResourceId, ResourceRel, ResourceSort, /* ResourceFilter */ ResourcesConfig, ResourceUpdate, } from '../resource'\nimport { ApiResource } from '../resource'\nimport type { Attachment } from './attachments'\nimport type { EventStore } from './event_stores'\nimport type { Event } from './events'\nimport type { Package, PackageType } from './packages'\nimport type { ParcelLineItem } from './parcel_line_items'\nimport type { Shipment, ShipmentType } from './shipments'\nimport type { Version } from './versions'\n\n\ntype ParcelType = 'parcels'\ntype ParcelRel = ResourceRel & { type: ParcelType }\ntype ShipmentRel = ResourceRel & { type: ShipmentType }\ntype PackageRel = ResourceRel & { type: PackageType }\n\n\nexport type ParcelSort = Pick<Parcel, 'id' | 'weight' | 'tracking_status' | 'tracking_status_updated_at' | 'carrier_weight_oz'> & ResourceSort\n// export type ParcelFilter = Pick<Parcel, 'id' | 'weight' | 'contents_explanation' | 'shipping_label_url' | 'shipping_label_file_type' | 'shipping_label_size' | 'shipping_label_resolution' | 'tracking_number' | 'tracking_status' | 'tracking_status_detail' | 'tracking_status_updated_at' | 'carrier_weight_oz' | 'incoterm' | 'delivery_confirmation'> & ResourceFilter\n\n\ninterface Parcel extends Resource {\n\t\n\treadonly type: ParcelType\n\n\t/** \n\t * Unique identifier for the parcel.\n\t * @example ```\"#1234/S/001/P/001\"```\n\t */\n\tnumber?: string | null\n\t/** \n\t * The parcel weight, used to automatically calculate the tax rates from the available carrier accounts.\n\t * @example ```1000```\n\t */\n\tweight: number\n\t/** \n\t * The unit of weight. One of 'gr', 'oz', or 'lb'.\n\t * @example ```\"gr\"```\n\t */\n\tunit_of_weight: 'gr' | 'oz' | 'lb'\n\t/** \n\t * When shipping outside the US, you need to provide either an Exemption and Exclusion Legend (EEL) code or a Proof of Filing Citation (PFC). Which you need is based on the value of the goods being shipped. Value can be one of \"EEL\" o \"PFC\".\n\t * @example ```\"EEL\"```\n\t */\n\teel_pfc?: string | null\n\t/** \n\t * The type of item you are sending.\n\t * @example ```\"merchandise\"```\n\t */\n\tcontents_type?: string | null\n\t/** \n\t * If you specify 'other' in the 'contents_type' attribute, you must supply a brief description in this attribute.\n\t */\n\tcontents_explanation?: string | null\n\t/** \n\t * Indicates if the provided information is accurate.\n\t */\n\tcustoms_certify?: boolean | null\n\t/** \n\t * This is the name of the person who is certifying that the information provided on the customs form is accurate. Use a name of the person in your organization who is responsible for this.\n\t * @example ```\"John Doe\"```\n\t */\n\tcustoms_signer?: string | null\n\t/** \n\t * In case the shipment cannot be delivered, this option tells the carrier what you want to happen to the parcel. You can pass either 'return', or 'abandon'. The value defaults to 'return'. If you pass 'abandon', you will not receive the parcel back if it cannot be delivered.\n\t * @example ```\"return\"```\n\t */\n\tnon_delivery_option?: string | null\n\t/** \n\t * Describes if your parcel requires any special treatment or quarantine when entering the country. Can be one of 'none', 'other', 'quarantine', or 'sanitary_phytosanitary_inspection'.\n\t * @example ```\"none\"```\n\t */\n\trestriction_type?: string | null\n\t/** \n\t * If you specify 'other' in the restriction type, you must supply a brief description of what is required.\n\t */\n\trestriction_comments?: string | null\n\t/** \n\t * Indicates if the parcel requires customs info to get the shipping rates.\n\t */\n\tcustoms_info_required?: boolean | null\n\t/** \n\t * The shipping label url, ready to be downloaded and printed.\n\t * @example ```\"https://bucket.s3-us-west-2.amazonaws.com/files/postage_label/20180101/123.pdf\"```\n\t */\n\tshipping_label_url?: string | null\n\t/** \n\t * The shipping label file type. One of 'application/pdf', 'application/zpl', 'application/epl2', or 'image/png'.\n\t * @example ```\"application/pdf\"```\n\t */\n\tshipping_label_file_type?: string | null\n\t/** \n\t * The shipping label size.\n\t * @example ```\"4x7\"```\n\t */\n\tshipping_label_size?: string | null\n\t/** \n\t * The shipping label resolution.\n\t * @example ```\"200\"```\n\t */\n\tshipping_label_resolution?: string | null\n\t/** \n\t * The tracking number associated to this parcel.\n\t * @example ```\"1Z4V2A000000000000\"```\n\t */\n\ttracking_number?: string | null\n\t/** \n\t * The tracking status for this parcel, automatically updated in real time by the shipping carrier.\n\t * @example ```\"delivered\"```\n\t */\n\ttracking_status?: string | null\n\t/** \n\t * Additional information about the tracking status, automatically updated in real time by the shipping carrier.\n\t * @example ```\"arrived_at_destination\"```\n\t */\n\ttracking_status_detail?: string | null\n\t/** \n\t * Time at which the parcel's tracking status was last updated.\n\t * @example ```\"2018-01-01T12:00:00.000Z\"```\n\t */\n\ttracking_status_updated_at?: string | null\n\t/** \n\t * The parcel's full tracking history, automatically updated in real time by the shipping carrier.\n\t * @example ```[{\"object\":\"TrackingDetail\",\"message\":\"Pre-Shipment information received\",\"status\":\"pre_transit\",\"datetime\":\"2018-02-27T16:02:17Z\",\"source\":\"DHLExpress\",\"tracking_location\":{\"object\":\"TrackingLocation\"}}]```\n\t */\n\ttracking_details?: Array<Record<string, any>> | null\n\t/** \n\t * The weight of the parcel as measured by the carrier in ounces (if available).\n\t * @example ```\"42.32\"```\n\t */\n\tcarrier_weight_oz?: string | null\n\t/** \n\t * The name of the person who signed for the parcel (if available).\n\t * @example ```\"John Smith\"```\n\t */\n\tsigned_by?: string | null\n\t/** \n\t * The type of Incoterm (if available).\n\t * @example ```\"EXW\"```\n\t */\n\tincoterm?: string | null\n\t/** \n\t * The type of delivery confirmation option upon delivery.\n\t * @example ```\"SIGNATURE\"```\n\t */\n\tdelivery_confirmation?: string | null\n\n\tshipment?: Shipment | null\n\tpackage?: Package | null\n\tparcel_line_items?: ParcelLineItem[] | null\n\tattachments?: Attachment[] | null\n\tevents?: Event[] | null\n\tversions?: Version[] | null\n\tevent_stores?: EventStore[] | null\n\n}\n\n\ninterface ParcelCreate extends ResourceCreate {\n\t\n\t/** \n\t * The parcel weight, used to automatically calculate the tax rates from the available carrier accounts.\n\t * @example ```1000```\n\t */\n\tweight: number\n\t/** \n\t * The unit of weight. One of 'gr', 'oz', or 'lb'.\n\t * @example ```\"gr\"```\n\t */\n\tunit_of_weight: 'gr' | 'oz' | 'lb'\n\t/** \n\t * When shipping outside the US, you need to provide either an Exemption and Exclusion Legend (EEL) code or a Proof of Filing Citation (PFC). Which you need is based on the value of the goods being shipped. Value can be one of \"EEL\" o \"PFC\".\n\t * @example ```\"EEL\"```\n\t */\n\teel_pfc?: string | null\n\t/** \n\t * The type of item you are sending.\n\t * @example ```\"merchandise\"```\n\t */\n\tcontents_type?: string | null\n\t/** \n\t * If you specify 'other' in the 'contents_type' attribute, you must supply a brief description in this attribute.\n\t */\n\tcontents_explanation?: string | null\n\t/** \n\t * Indicates if the provided information is accurate.\n\t */\n\tcustoms_certify?: boolean | null\n\t/** \n\t * This is the name of the person who is certifying that the information provided on the customs form is accurate. Use a name of the person in your organization who is responsible for this.\n\t * @example ```\"John Doe\"```\n\t */\n\tcustoms_signer?: string | null\n\t/** \n\t * In case the shipment cannot be delivered, this option tells the carrier what you want to happen to the parcel. You can pass either 'return', or 'abandon'. The value defaults to 'return'. If you pass 'abandon', you will not receive the parcel back if it cannot be delivered.\n\t * @example ```\"return\"```\n\t */\n\tnon_delivery_option?: string | null\n\t/** \n\t * Describes if your parcel requires any special treatment or quarantine when entering the country. Can be one of 'none', 'other', 'quarantine', or 'sanitary_phytosanitary_inspection'.\n\t * @example ```\"none\"```\n\t */\n\trestriction_type?: string | null\n\t/** \n\t * If you specify 'other' in the restriction type, you must supply a brief description of what is required.\n\t */\n\trestriction_comments?: string | null\n\t/** \n\t * Indicates if the parcel requires customs info to get the shipping rates.\n\t */\n\tcustoms_info_required?: boolean | null\n\t/** \n\t * The shipping label url, ready to be downloaded and printed.\n\t * @example ```\"https://bucket.s3-us-west-2.amazonaws.com/files/postage_label/20180101/123.pdf\"```\n\t */\n\tshipping_label_url?: string | null\n\t/** \n\t * The shipping label file type. One of 'application/pdf', 'application/zpl', 'application/epl2', or 'image/png'.\n\t * @example ```\"application/pdf\"```\n\t */\n\tshipping_label_file_type?: string | null\n\t/** \n\t * The shipping label size.\n\t * @example ```\"4x7\"```\n\t */\n\tshipping_label_size?: string | null\n\t/** \n\t * The shipping label resolution.\n\t * @example ```\"200\"```\n\t */\n\tshipping_label_resolution?: string | null\n\t/** \n\t * The tracking number associated to this parcel.\n\t * @example ```\"1Z4V2A000000000000\"```\n\t */\n\ttracking_number?: string | null\n\t/** \n\t * The tracking status for this parcel, automatically updated in real time by the shipping carrier.\n\t * @example ```\"delivered\"```\n\t */\n\ttracking_status?: string | null\n\t/** \n\t * Additional information about the tracking status, automatically updated in real time by the shipping carrier.\n\t * @example ```\"arrived_at_destination\"```\n\t */\n\ttracking_status_detail?: string | null\n\t/** \n\t * Time at which the parcel's tracking status was last updated.\n\t * @example ```\"2018-01-01T12:00:00.000Z\"```\n\t */\n\ttracking_status_updated_at?: string | null\n\t/** \n\t * The parcel's full tracking history, automatically updated in real time by the shipping carrier.\n\t * @example ```[{\"object\":\"TrackingDetail\",\"message\":\"Pre-Shipment information received\",\"status\":\"pre_transit\",\"datetime\":\"2018-02-27T16:02:17Z\",\"source\":\"DHLExpress\",\"tracking_location\":{\"object\":\"TrackingLocation\"}}]```\n\t */\n\ttracking_details?: Array<Record<string, any>> | null\n\t/** \n\t * The weight of the parcel as measured by the carrier in ounces (if available).\n\t * @example ```\"42.32\"```\n\t */\n\tcarrier_weight_oz?: string | null\n\t/** \n\t * The name of the person who signed for the parcel (if available).\n\t * @example ```\"John Smith\"```\n\t */\n\tsigned_by?: string | null\n\t/** \n\t * The type of Incoterm (if available).\n\t * @example ```\"EXW\"```\n\t */\n\tincoterm?: string | null\n\t/** \n\t * The type of delivery confirmation option upon delivery.\n\t * @example ```\"SIGNATURE\"```\n\t */\n\tdelivery_confirmation?: string | null\n\n\tshipment: ShipmentRel\n\tpackage: PackageRel\n\n}\n\n\ninterface ParcelUpdate extends ResourceUpdate {\n\t\n\t/** \n\t * The parcel weight, used to automatically calculate the tax rates from the available carrier accounts.\n\t * @example ```1000```\n\t */\n\tweight?: number | null\n\t/** \n\t * The unit of weight. One of 'gr', 'oz', or 'lb'.\n\t * @example ```\"gr\"```\n\t */\n\tunit_of_weight?: 'gr' | 'oz' | 'lb' | null\n\t/** \n\t * When shipping outside the US, you need to provide either an Exemption and Exclusion Legend (EEL) code or a Proof of Filing Citation (PFC). Which you need is based on the value of the goods being shipped. Value can be one of \"EEL\" o \"PFC\".\n\t * @example ```\"EEL\"```\n\t */\n\teel_pfc?: string | null\n\t/** \n\t * The type of item you are sending.\n\t * @example ```\"merchandise\"```\n\t */\n\tcontents_type?: string | null\n\t/** \n\t * If you specify 'other' in the 'contents_type' attribute, you must supply a brief description in this attribute.\n\t */\n\tcontents_explanation?: string | null\n\t/** \n\t * Indicates if the provided information is accurate.\n\t */\n\tcustoms_certify?: boolean | null\n\t/** \n\t * This is the name of the person who is certifying that the information provided on the customs form is accurate. Use a name of the person in your organization who is responsible for this.\n\t * @example ```\"John Doe\"```\n\t */\n\tcustoms_signer?: string | null\n\t/** \n\t * In case the shipment cannot be delivered, this option tells the carrier what you want to happen to the parcel. You can pass either 'return', or 'abandon'. The value defaults to 'return'. If you pass 'abandon', you will not receive the parcel back if it cannot be delivered.\n\t * @example ```\"return\"```\n\t */\n\tnon_delivery_option?: string | null\n\t/** \n\t * Describes if your parcel requires any special treatment or quarantine when entering the country. Can be one of 'none', 'other', 'quarantine', or 'sanitary_phytosanitary_inspection'.\n\t * @example ```\"none\"```\n\t */\n\trestriction_type?: string | null\n\t/** \n\t * If you specify 'other' in the restriction type, you must supply a brief description of what is required.\n\t */\n\trestriction_comments?: string | null\n\t/** \n\t * Indicates if the parcel requires customs info to get the shipping rates.\n\t */\n\tcustoms_info_required?: boolean | null\n\t/** \n\t * The shipping label url, ready to be downloaded and printed.\n\t * @example ```\"https://bucket.s3-us-west-2.amazonaws.com/files/postage_label/20180101/123.pdf\"```\n\t */\n\tshipping_label_url?: string | null\n\t/** \n\t * The shipping label file type. One of 'application/pdf', 'application/zpl', 'application/epl2', or 'image/png'.\n\t * @example ```\"application/pdf\"```\n\t */\n\tshipping_label_file_type?: string | null\n\t/** \n\t * The shipping label size.\n\t * @example ```\"4x7\"```\n\t */\n\tshipping_label_size?: string | null\n\t/** \n\t * The shipping label resolution.\n\t * @example ```\"200\"```\n\t */\n\tshipping_label_resolution?: string | null\n\t/** \n\t * The tracking number associated to this parcel.\n\t * @example ```\"1Z4V2A000000000000\"```\n\t */\n\ttracking_number?: string | null\n\t/** \n\t * The tracking status for this parcel, automatically updated in real time by the shipping carrier.\n\t * @example ```\"delivered\"```\n\t */\n\ttracking_status?: string | null\n\t/** \n\t * Additional information about the tracking status, automatically updated in real time by the shipping carrier.\n\t * @example ```\"arrived_at_destination\"```\n\t */\n\ttracking_status_detail?: string | null\n\t/** \n\t * Time at which the parcel's tracking status was last updated.\n\t * @example ```\"2018-01-01T12:00:00.000Z\"```\n\t */\n\ttracking_status_updated_at?: string | null\n\t/** \n\t * The parcel's full tracking history, automatically updated in real time by the shipping carrier.\n\t * @example ```[{\"object\":\"TrackingDetail\",\"message\":\"Pre-Shipment information received\",\"status\":\"pre_transit\",\"datetime\":\"2018-02-27T16:02:17Z\",\"source\":\"DHLExpress\",\"tracking_location\":{\"object\":\"TrackingLocation\"}}]```\n\t */\n\ttracking_details?: Array<Record<string, any>> | null\n\t/** \n\t * The weight of the parcel as measured by the carrier in ounces (if available).\n\t * @example ```\"42.32\"```\n\t */\n\tcarrier_weight_oz?: string | null\n\t/** \n\t * The name of the person who signed for the parcel (if available).\n\t * @example ```\"John Smith\"```\n\t */\n\tsigned_by?: string | null\n\t/** \n\t * The type of Incoterm (if available).\n\t * @example ```\"EXW\"```\n\t */\n\tincoterm?: string | null\n\t/** \n\t * The type of delivery confirmation option upon delivery.\n\t * @example ```\"SIGNATURE\"```\n\t */\n\tdelivery_confirmation?: string | null\n\n\tshipment?: ShipmentRel | null\n\tpackage?: PackageRel | null\n\n}\n\n\nclass Parcels extends ApiResource<Parcel> {\n\n\tstatic readonly TYPE: ParcelType = 'parcels' as const\n\n\tasync create(resource: ParcelCreate, params?: QueryParamsRetrieve<Parcel>, options?: ResourcesConfig): Promise<Parcel> {\n\t\treturn this.resources.create<ParcelCreate, Parcel>({ ...resource, type: Parcels.TYPE }, params, options)\n\t}\n\n\tasync update(resource: ParcelUpdate, params?: QueryParamsRetrieve<Parcel>, options?: ResourcesConfig): Promise<Parcel> {\n\t\treturn this.resources.update<ParcelUpdate, Parcel>({ ...resource, type: Parcels.TYPE }, params, options)\n\t}\n\n\tasync delete(id: string | ResourceId, options?: ResourcesConfig): Promise<void> {\n\t\tawait this.resources.delete((typeof id === 'string')? { id, type: Parcels.TYPE } : id, options)\n\t}\n\n\tasync shipment(parcelId: string | Parcel, params?: QueryParamsRetrieve<Shipment>, options?: ResourcesConfig): Promise<Shipment> {\n\t\tconst _parcelId = (parcelId as Parcel).id || parcelId as string\n\t\treturn this.resources.fetch<Shipment>({ type: 'shipments' }, `parcels/${_parcelId}/shipment`, params, options) as unknown as Shipment\n\t}\n\n\tasync package(parcelId: string | Parcel, params?: QueryParamsRetrieve<Package>, options?: ResourcesConfig): Promise<Package> {\n\t\tconst _parcelId = (parcelId as Parcel).id || parcelId as string\n\t\treturn this.resources.fetch<Package>({ type: 'packages' }, `parcels/${_parcelId}/package`, params, options) as unknown as Package\n\t}\n\n\tasync parcel_line_items(parcelId: string | Parcel, params?: QueryParamsList<ParcelLineItem>, options?: ResourcesConfig): Promise<ListResponse<ParcelLineItem>> {\n\t\tconst _parcelId = (parcelId as Parcel).id || parcelId as string\n\t\treturn this.resources.fetch<ParcelLineItem>({ type: 'parcel_line_items' }, `parcels/${_parcelId}/parcel_line_items`, params, options) as unknown as ListResponse<ParcelLineItem>\n\t}\n\n\tasync attachments(parcelId: string | Parcel, params?: QueryParamsList<Attachment>, options?: ResourcesConfig): Promise<ListResponse<Attachment>> {\n\t\tconst _parcelId = (parcelId as Parcel).id || parcelId as string\n\t\treturn this.resources.fetch<Attachment>({ type: 'attachments' }, `parcels/${_parcelId}/attachments`, params, options) as unknown as ListResponse<Attachment>\n\t}\n\n\tasync events(parcelId: string | Parcel, params?: QueryParamsList<Event>, options?: ResourcesConfig): Promise<ListResponse<Event>> {\n\t\tconst _parcelId = (parcelId as Parcel).id || parcelId as string\n\t\treturn this.resources.fetch<Event>({ type: 'events' }, `parcels/${_parcelId}/events`, params, options) as unknown as ListResponse<Event>\n\t}\n\n\tasync versions(parcelId: string | Parcel, params?: QueryParamsList<Version>, options?: ResourcesConfig): Promise<ListResponse<Version>> {\n\t\tconst _parcelId = (parcelId as Parcel).id || parcelId as string\n\t\treturn this.resources.fetch<Version>({ type: 'versions' }, `parcels/${_parcelId}/versions`, params, options) as unknown as ListResponse<Version>\n\t}\n\n\tasync event_stores(parcelId: string | Parcel, params?: QueryParamsList<EventStore>, options?: ResourcesConfig): Promise<ListResponse<EventStore>> {\n\t\tconst _parcelId = (parcelId as Parcel).id || parcelId as string\n\t\treturn this.resources.fetch<EventStore>({ type: 'event_stores' }, `parcels/${_parcelId}/event_stores`, params, options) as unknown as ListResponse<EventStore>\n\t}\n\n\n\tisParcel(resource: any): resource is Parcel {\n\t\treturn resource.type && (resource.type === Parcels.TYPE)\n\t}\n\n\n\trelationship(id: string | ResourceId | null): ParcelRel {\n\t\treturn super.relationshipOneToOne<ParcelRel>(id)\n\t}\n\n\trelationshipToMany(...ids: string[]): ParcelRel[] {\n\t\treturn super.relationshipOneToMany<ParcelRel>(...ids)\n\t}\n\n\n\ttype(): ParcelType {\n\t\treturn Parcels.TYPE\n\t}\n\n}\n\n\nconst instance = new Parcels()\nexport default instance\n\nexport type { Parcel, ParcelCreate, Parcels, ParcelType, ParcelUpdate }\n"]}
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import { ApiResource } from './chunk-L2R5G3V5.js';
|
|
2
|
+
|
|
3
|
+
// src/resources/checkout_com_payments.ts
|
|
4
|
+
var CheckoutComPayments = class _CheckoutComPayments extends ApiResource {
|
|
5
|
+
static TYPE = "checkout_com_payments";
|
|
6
|
+
async create(resource, params, options) {
|
|
7
|
+
return this.resources.create({ ...resource, type: _CheckoutComPayments.TYPE }, params, options);
|
|
8
|
+
}
|
|
9
|
+
async update(resource, params, options) {
|
|
10
|
+
return this.resources.update({ ...resource, type: _CheckoutComPayments.TYPE }, params, options);
|
|
11
|
+
}
|
|
12
|
+
async delete(id, options) {
|
|
13
|
+
await this.resources.delete(typeof id === "string" ? { id, type: _CheckoutComPayments.TYPE } : id, options);
|
|
14
|
+
}
|
|
15
|
+
async order(checkoutComPaymentId, params, options) {
|
|
16
|
+
const _checkoutComPaymentId = checkoutComPaymentId.id || checkoutComPaymentId;
|
|
17
|
+
return this.resources.fetch({ type: "orders" }, `checkout_com_payments/${_checkoutComPaymentId}/order`, params, options);
|
|
18
|
+
}
|
|
19
|
+
async payment_gateway(checkoutComPaymentId, params, options) {
|
|
20
|
+
const _checkoutComPaymentId = checkoutComPaymentId.id || checkoutComPaymentId;
|
|
21
|
+
return this.resources.fetch({ type: "payment_gateways" }, `checkout_com_payments/${_checkoutComPaymentId}/payment_gateway`, params, options);
|
|
22
|
+
}
|
|
23
|
+
async versions(checkoutComPaymentId, params, options) {
|
|
24
|
+
const _checkoutComPaymentId = checkoutComPaymentId.id || checkoutComPaymentId;
|
|
25
|
+
return this.resources.fetch({ type: "versions" }, `checkout_com_payments/${_checkoutComPaymentId}/versions`, params, options);
|
|
26
|
+
}
|
|
27
|
+
async event_stores(checkoutComPaymentId, params, options) {
|
|
28
|
+
const _checkoutComPaymentId = checkoutComPaymentId.id || checkoutComPaymentId;
|
|
29
|
+
return this.resources.fetch({ type: "event_stores" }, `checkout_com_payments/${_checkoutComPaymentId}/event_stores`, params, options);
|
|
30
|
+
}
|
|
31
|
+
async _details(id, params, options) {
|
|
32
|
+
return this.resources.update({ id: typeof id === "string" ? id : id.id, type: _CheckoutComPayments.TYPE, _details: true }, params, options);
|
|
33
|
+
}
|
|
34
|
+
async _refresh(id, params, options) {
|
|
35
|
+
return this.resources.update({ id: typeof id === "string" ? id : id.id, type: _CheckoutComPayments.TYPE, _refresh: true }, params, options);
|
|
36
|
+
}
|
|
37
|
+
isCheckoutComPayment(resource) {
|
|
38
|
+
return resource.type && resource.type === _CheckoutComPayments.TYPE;
|
|
39
|
+
}
|
|
40
|
+
relationship(id) {
|
|
41
|
+
return super.relationshipOneToOne(id);
|
|
42
|
+
}
|
|
43
|
+
relationshipToMany(...ids) {
|
|
44
|
+
return super.relationshipOneToMany(...ids);
|
|
45
|
+
}
|
|
46
|
+
type() {
|
|
47
|
+
return _CheckoutComPayments.TYPE;
|
|
48
|
+
}
|
|
49
|
+
};
|
|
50
|
+
var instance = new CheckoutComPayments();
|
|
51
|
+
var checkout_com_payments_default = instance;
|
|
52
|
+
|
|
53
|
+
export { checkout_com_payments_default };
|
|
54
|
+
//# sourceMappingURL=chunk-OQ3ZPPCE.js.map
|
|
55
|
+
//# sourceMappingURL=chunk-OQ3ZPPCE.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/resources/checkout_com_payments.ts"],"names":[],"mappings":";;;AAmIA,IAAM,mBAAA,GAAN,MAAM,oBAAA,SAA4B,WAAA,CAAgC;AAAA,EAEjE,OAAgB,IAAA,GAA+B,uBAAA;AAAA,EAE/C,MAAM,MAAA,CAAO,QAAA,EAAoC,MAAA,EAAkD,OAAA,EAAwD;AAC1J,IAAA,OAAO,IAAA,CAAK,SAAA,CAAU,MAAA,CAAqD,EAAE,GAAG,QAAA,EAAU,I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QAAA,CAAS,IAAA,KAAS,oBAAA,CAAoB,IAAA;AAAA,EAChE;AAAA,EAGA,aAAa,EAAA,EAAuD;AACnE,IAAA,OAAO,KAAA,CAAM,qBAA4C,EAAE,CAAA;AAAA,EAC5D;AAAA,EAEA,sBAAsB,GAAA,EAAwC;AAC7D,IAAA,OAAO,KAAA,CAAM,qBAAA,CAA6C,GAAG,GAAG,CAAA;AAAA,EACjE;AAAA,EAGA,IAAA,GAA+B;AAC9B,IAAA,OAAO,oBAAA,CAAoB,IAAA;AAAA,EAC5B;AAED,CAAA;AAGA,IAAM,QAAA,GAAW,IAAI,mBAAA,EAAoB;AACzC,IAAO,6BAAA,GAAQ","file":"chunk-OQ3ZPPCE.js","sourcesContent":["import type { QueryParamsList, QueryParamsRetrieve } from '../query'\nimport type { ListResponse, Resource, ResourceCreate, ResourceId, ResourceRel, ResourceSort, /* ResourceFilter */ ResourcesConfig, ResourceUpdate, } from '../resource'\nimport { ApiResource } from '../resource'\nimport type { EventStore } from './event_stores'\nimport type { Order, OrderType } from './orders'\nimport type { PaymentGateway } from './payment_gateways'\nimport type { Version } from './versions'\n\n\ntype CheckoutComPaymentType = 'checkout_com_payments'\ntype CheckoutComPaymentRel = ResourceRel & { type: CheckoutComPaymentType }\ntype OrderRel = ResourceRel & { type: OrderType }\n\n\nexport type CheckoutComPaymentSort = Pick<CheckoutComPayment, 'id'> & ResourceSort\n// export type CheckoutComPaymentFilter = Pick<CheckoutComPayment, 'id'> & ResourceFilter\n\n\ninterface CheckoutComPayment extends Resource {\n\t\n\treadonly type: CheckoutComPaymentType\n\n\t/** \n\t * The Checkout.com publishable API key.\n\t * @example ```\"pk_test_xxxx-yyyy-zzzz\"```\n\t */\n\tpublic_key?: string | null\n\t/** \n\t * The Checkout.com payment or digital wallet token.\n\t * @example ```\"tok_4gzeau5o2uqubbk6fufs3m7p54\"```\n\t */\n\ttoken: string\n\t/** \n\t * The session object which initializes payment.\n\t * @example ```{\"id\":\"ps_xxxx_yyyy_zzzz\",\"payment_session_secret\":\"pss_xxxx_yyy_zzzz\",\"payment_session_token\":\"xxxxx_yyyyy_zzzzz\",\"_links\":{\"self\":{\"href\":\"https://api.sandbox.checkout.com/payment-sessions/ps_xxxx_yyyy_zzzz\"}}}```\n\t */\n\tpayment_session: Record<string, any>\n\t/** \n\t * The URL to redirect your customer upon 3DS succeeded authentication.\n\t * @example ```\"http://commercelayer.dev/checkout_com/success\"```\n\t */\n\tsuccess_url: string\n\t/** \n\t * The URL to redirect your customer upon 3DS failed authentication.\n\t * @example ```\"http://commercelayer.dev/checkout_com/failure\"```\n\t */\n\tfailure_url: string\n\t/** \n\t * The payment source identifier that can be used for subsequent payments.\n\t * @example ```\"src_nwd3m4in3hkuddfpjsaevunhdy\"```\n\t */\n\tsource_id?: string | null\n\t/** \n\t * The customer's unique identifier. This can be passed as a source when making a payment.\n\t * @example ```\"cus_udst2tfldj6upmye2reztkmm4i\"```\n\t */\n\tcustomer_token?: string | null\n\t/** \n\t * The URI that the customer should be redirected to in order to complete the payment.\n\t * @example ```\"https://api.checkout.com/3ds/pay_mbabizu24mvu3mela5njyhpit4\"```\n\t */\n\tredirect_uri?: string | null\n\t/** \n\t * The Checkout.com payment response, used to fetch internal data.\n\t * @example ```{\"foo\":\"bar\"}```\n\t */\n\tpayment_response?: Record<string, any> | null\n\t/** \n\t * Indicates if the order current amount differs form the one of the associated authorization.\n\t */\n\tmismatched_amounts?: boolean | null\n\t/** \n\t * Information about the payment instrument used in the transaction.\n\t * @example ```{\"issuer\":\"cl bank\",\"card_type\":\"visa\"}```\n\t */\n\tpayment_instrument?: Record<string, any> | null\n\n\torder?: Order | null\n\tpayment_gateway?: PaymentGateway | null\n\tversions?: Version[] | null\n\tevent_stores?: EventStore[] | null\n\n}\n\n\ninterface CheckoutComPaymentCreate extends ResourceCreate {\n\t\n\t/** \n\t * The Checkout.com payment or digital wallet token.\n\t * @example ```\"tok_4gzeau5o2uqubbk6fufs3m7p54\"```\n\t */\n\ttoken: string\n\t/** \n\t * The URL to redirect your customer upon 3DS succeeded authentication.\n\t * @example ```\"http://commercelayer.dev/checkout_com/success\"```\n\t */\n\tsuccess_url: string\n\t/** \n\t * The URL to redirect your customer upon 3DS failed authentication.\n\t * @example ```\"http://commercelayer.dev/checkout_com/failure\"```\n\t */\n\tfailure_url: string\n\n\torder: OrderRel\n\n}\n\n\ninterface CheckoutComPaymentUpdate extends ResourceUpdate {\n\t\n\t/** \n\t * The Checkout.com payment or digital wallet token.\n\t * @example ```\"tok_4gzeau5o2uqubbk6fufs3m7p54\"```\n\t */\n\ttoken?: string | null\n\t/** \n\t * Send this attribute if you want to send additional details the payment request (i.e. upon 3DS check).\n\t * @example ```true```\n\t */\n\t_details?: boolean | null\n\t/** \n\t * Send this attribute if you want to refresh all the pending transactions, 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 CheckoutComPayments extends ApiResource<CheckoutComPayment> {\n\n\tstatic readonly TYPE: CheckoutComPaymentType = 'checkout_com_payments' as const\n\n\tasync create(resource: CheckoutComPaymentCreate, params?: QueryParamsRetrieve<CheckoutComPayment>, options?: ResourcesConfig): Promise<CheckoutComPayment> {\n\t\treturn this.resources.create<CheckoutComPaymentCreate, CheckoutComPayment>({ ...resource, type: CheckoutComPayments.TYPE }, params, options)\n\t}\n\n\tasync update(resource: CheckoutComPaymentUpdate, params?: QueryParamsRetrieve<CheckoutComPayment>, options?: ResourcesConfig): Promise<CheckoutComPayment> {\n\t\treturn this.resources.update<CheckoutComPaymentUpdate, CheckoutComPayment>({ ...resource, type: CheckoutComPayments.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: CheckoutComPayments.TYPE } : id, options)\n\t}\n\n\tasync order(checkoutComPaymentId: string | CheckoutComPayment, params?: QueryParamsRetrieve<Order>, options?: ResourcesConfig): Promise<Order> {\n\t\tconst _checkoutComPaymentId = (checkoutComPaymentId as CheckoutComPayment).id || checkoutComPaymentId as string\n\t\treturn this.resources.fetch<Order>({ type: 'orders' }, `checkout_com_payments/${_checkoutComPaymentId}/order`, params, options) as unknown as Order\n\t}\n\n\tasync payment_gateway(checkoutComPaymentId: string | CheckoutComPayment, params?: QueryParamsRetrieve<PaymentGateway>, options?: ResourcesConfig): Promise<PaymentGateway> {\n\t\tconst _checkoutComPaymentId = (checkoutComPaymentId as CheckoutComPayment).id || checkoutComPaymentId as string\n\t\treturn this.resources.fetch<PaymentGateway>({ type: 'payment_gateways' }, `checkout_com_payments/${_checkoutComPaymentId}/payment_gateway`, params, options) as unknown as PaymentGateway\n\t}\n\n\tasync versions(checkoutComPaymentId: string | CheckoutComPayment, params?: QueryParamsList<Version>, options?: ResourcesConfig): Promise<ListResponse<Version>> {\n\t\tconst _checkoutComPaymentId = (checkoutComPaymentId as CheckoutComPayment).id || checkoutComPaymentId as string\n\t\treturn this.resources.fetch<Version>({ type: 'versions' }, `checkout_com_payments/${_checkoutComPaymentId}/versions`, params, options) as unknown as ListResponse<Version>\n\t}\n\n\tasync event_stores(checkoutComPaymentId: string | CheckoutComPayment, params?: QueryParamsList<EventStore>, options?: ResourcesConfig): Promise<ListResponse<EventStore>> {\n\t\tconst _checkoutComPaymentId = (checkoutComPaymentId as CheckoutComPayment).id || checkoutComPaymentId as string\n\t\treturn this.resources.fetch<EventStore>({ type: 'event_stores' }, `checkout_com_payments/${_checkoutComPaymentId}/event_stores`, params, options) as unknown as ListResponse<EventStore>\n\t}\n\n\tasync _details(id: string | CheckoutComPayment, params?: QueryParamsRetrieve<CheckoutComPayment>, options?: ResourcesConfig): Promise<CheckoutComPayment> {\n\t\treturn this.resources.update<CheckoutComPaymentUpdate, CheckoutComPayment>({ id: (typeof id === 'string')? id: id.id, type: CheckoutComPayments.TYPE, _details: true }, params, options)\n\t}\n\n\tasync _refresh(id: string | CheckoutComPayment, params?: QueryParamsRetrieve<CheckoutComPayment>, options?: ResourcesConfig): Promise<CheckoutComPayment> {\n\t\treturn this.resources.update<CheckoutComPaymentUpdate, CheckoutComPayment>({ id: (typeof id === 'string')? id: id.id, type: CheckoutComPayments.TYPE, _refresh: true }, params, options)\n\t}\n\n\n\tisCheckoutComPayment(resource: any): resource is CheckoutComPayment {\n\t\treturn resource.type && (resource.type === CheckoutComPayments.TYPE)\n\t}\n\n\n\trelationship(id: string | ResourceId | null): CheckoutComPaymentRel {\n\t\treturn super.relationshipOneToOne<CheckoutComPaymentRel>(id)\n\t}\n\n\trelationshipToMany(...ids: string[]): CheckoutComPaymentRel[] {\n\t\treturn super.relationshipOneToMany<CheckoutComPaymentRel>(...ids)\n\t}\n\n\n\ttype(): CheckoutComPaymentType {\n\t\treturn CheckoutComPayments.TYPE\n\t}\n\n}\n\n\nconst instance = new CheckoutComPayments()\nexport default instance\n\nexport type { CheckoutComPayment, CheckoutComPaymentCreate, CheckoutComPayments, CheckoutComPaymentType, CheckoutComPaymentUpdate }\n"]}
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import { ApiResource } from './chunk-L2R5G3V5.js';
|
|
2
|
+
|
|
3
|
+
// src/resources/satispay_gateways.ts
|
|
4
|
+
var SatispayGateways = class _SatispayGateways extends ApiResource {
|
|
5
|
+
static TYPE = "satispay_gateways";
|
|
6
|
+
async create(resource, params, options) {
|
|
7
|
+
return this.resources.create({ ...resource, type: _SatispayGateways.TYPE }, params, options);
|
|
8
|
+
}
|
|
9
|
+
async update(resource, params, options) {
|
|
10
|
+
return this.resources.update({ ...resource, type: _SatispayGateways.TYPE }, params, options);
|
|
11
|
+
}
|
|
12
|
+
async delete(id, options) {
|
|
13
|
+
await this.resources.delete(typeof id === "string" ? { id, type: _SatispayGateways.TYPE } : id, options);
|
|
14
|
+
}
|
|
15
|
+
async payment_methods(satispayGatewayId, params, options) {
|
|
16
|
+
const _satispayGatewayId = satispayGatewayId.id || satispayGatewayId;
|
|
17
|
+
return this.resources.fetch({ type: "payment_methods" }, `satispay_gateways/${_satispayGatewayId}/payment_methods`, params, options);
|
|
18
|
+
}
|
|
19
|
+
async versions(satispayGatewayId, params, options) {
|
|
20
|
+
const _satispayGatewayId = satispayGatewayId.id || satispayGatewayId;
|
|
21
|
+
return this.resources.fetch({ type: "versions" }, `satispay_gateways/${_satispayGatewayId}/versions`, params, options);
|
|
22
|
+
}
|
|
23
|
+
async event_stores(satispayGatewayId, params, options) {
|
|
24
|
+
const _satispayGatewayId = satispayGatewayId.id || satispayGatewayId;
|
|
25
|
+
return this.resources.fetch({ type: "event_stores" }, `satispay_gateways/${_satispayGatewayId}/event_stores`, params, options);
|
|
26
|
+
}
|
|
27
|
+
async satispay_payments(satispayGatewayId, params, options) {
|
|
28
|
+
const _satispayGatewayId = satispayGatewayId.id || satispayGatewayId;
|
|
29
|
+
return this.resources.fetch({ type: "satispay_payments" }, `satispay_gateways/${_satispayGatewayId}/satispay_payments`, params, options);
|
|
30
|
+
}
|
|
31
|
+
async _disable(id, params, options) {
|
|
32
|
+
return this.resources.update({ id: typeof id === "string" ? id : id.id, type: _SatispayGateways.TYPE, _disable: true }, params, options);
|
|
33
|
+
}
|
|
34
|
+
async _enable(id, params, options) {
|
|
35
|
+
return this.resources.update({ id: typeof id === "string" ? id : id.id, type: _SatispayGateways.TYPE, _enable: true }, params, options);
|
|
36
|
+
}
|
|
37
|
+
isSatispayGateway(resource) {
|
|
38
|
+
return resource.type && resource.type === _SatispayGateways.TYPE;
|
|
39
|
+
}
|
|
40
|
+
relationship(id) {
|
|
41
|
+
return super.relationshipOneToOne(id);
|
|
42
|
+
}
|
|
43
|
+
relationshipToMany(...ids) {
|
|
44
|
+
return super.relationshipOneToMany(...ids);
|
|
45
|
+
}
|
|
46
|
+
type() {
|
|
47
|
+
return _SatispayGateways.TYPE;
|
|
48
|
+
}
|
|
49
|
+
};
|
|
50
|
+
var instance = new SatispayGateways();
|
|
51
|
+
var satispay_gateways_default = instance;
|
|
52
|
+
|
|
53
|
+
export { satispay_gateways_default };
|
|
54
|
+
//# sourceMappingURL=chunk-OR5ULL43.js.map
|
|
55
|
+
//# sourceMappingURL=chunk-OR5ULL43.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/resources/satispay_gateways.ts"],"names":[],"mappings":";;;AA0HA,IAAM,gBAAA,GAAN,MAAM,iBAAA,SAAyB,WAAA,CAA6B;AAAA,EAE3D,OAAgB,IAAA,GAA4B,mBAAA;AAAA,EAE5C,MAAM,MAAA,CAAO,QAAA,EAAiC,MAAA,EAA+C,OAAA,EAAqD;AACjJ,IAAA,OAAO,IAAA,CAAK,SAAA,CAAU,MAAA,CAA+C,EAAE,GAAG,QAAA,EAAU,IAAA,EAAM,iBAAA,CAAiB,IAAA,EAAK,EAAG,MAAA,EAAQ,OAAO,CAAA;AAAA,EACnI;AAAA,EAEA,MAAM,MAAA,CAAO,QAAA,EAAiC,MAAA,EAA+C,OAAA,EAAqD;AACjJ,IAAA,OAAO,IAAA,CAAK,SAAA,CAAU,MAAA,CAA+C,EAAE,GAAG,QAAA,EAAU,IAAA,EAAM,iBAAA,CAAiB,IAAA,EAAK,EAAG,MAAA,EAAQ,OAAO,CAAA;AAAA,EACnI;AAAA,EAEA,MAAM,MAAA,CAAO,EAAA,EAAyB,OAAA,EAA0C;AAC/E,IAAA,MAAM,IAAA,CAAK,SAAA,CAAU,MAAA,CAAQ,OAAO,EAAA,KAAO,QAAA,GAAW,EAAE,EAAA,EAAI,IAAA,EAAM,iBAAA,CAAiB,IAAA,EAAK,GAAI,IAAI,OAAO,CAAA;AAAA,EACxG;AAAA,EAEA,MAAM,eAAA,CAAgB,iBAAA,EAA6C,MAAA,EAAyC,OAAA,EAAiE;AAC5K,IAAA,MAAM,kBAAA,GAAsB,kBAAsC,EAAA,IAAM,iBAAA;AACxE,IAAA,OAAO,IAAA,CAAK,SAAA,CAAU,KAAA,CAAqB,EAAE,IAAA,EAAM,iBAAA,EAAkB,EAAG,CAAA,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AAI,MAAM,iBAAA,CAAiB,IAAA,EAAM,UAAU,IAAA,EAAK,EAAG,QAAQ,OAAO,CAAA;AAAA,EAC/K;AAAA,EAEA,MAAM,OAAA,CAAQ,EAAA,EAA8B,MAAA,EAA+C,OAAA,EAAqD;AAC/I,IAAA,OAAO,KAAK,SAAA,CAAU,MAAA,CAA+C,EAAE,EAAA,EAAK,OAAO,OAAO,QAAA,GAAW,EAAA,GAAI,EAAA,CAAG,EAAA,EAAI,MAAM,iBAAA,CAAiB,IAAA,EAAM,SAAS,IAAA,EAAK,EAAG,QAAQ,OAAO,CAAA;AAAA,EAC9K;AAAA,EAGA,kBAAkB,QAAA,EAA4C;AAC7D,IAAA,OAAO,QAAA,CAAS,IAAA,IAAS,QAAA,CAAS,IAAA,KAAS,iBAAA,CAAiB,IAAA;AAAA,EAC7D;AAAA,EAGA,aAAa,EAAA,EAAoD;AAChE,IAAA,OAAO,KAAA,CAAM,qBAAyC,EAAE,CAAA;AAAA,EACzD;AAAA,EAEA,sBAAsB,GAAA,EAAqC;AAC1D,IAAA,OAAO,KAAA,CAAM,qBAAA,CAA0C,GAAG,GAAG,CAAA;AAAA,EAC9D;AAAA,EAGA,IAAA,GAA4B;AAC3B,IAAA,OAAO,iBAAA,CAAiB,IAAA;AAAA,EACzB;AAED,CAAA;AAGA,IAAM,QAAA,GAAW,IAAI,gBAAA,EAAiB;AACtC,IAAO,yBAAA,GAAQ","file":"chunk-OR5ULL43.js","sourcesContent":["import type { QueryParamsList, QueryParamsRetrieve } from '../query'\nimport type { ListResponse, Resource, ResourceCreate, ResourceId, ResourceRel, ResourceSort, /* ResourceFilter */ ResourcesConfig, ResourceUpdate, } from '../resource'\nimport { ApiResource } from '../resource'\nimport type { EventStore } from './event_stores'\nimport type { PaymentMethod } from './payment_methods'\nimport type { SatispayPayment, SatispayPaymentType } from './satispay_payments'\nimport type { Version } from './versions'\n\n\ntype SatispayGatewayType = 'satispay_gateways'\ntype SatispayGatewayRel = ResourceRel & { type: SatispayGatewayType }\ntype SatispayPaymentRel = ResourceRel & { type: SatispayPaymentType }\n\n\nexport type SatispayGatewaySort = Pick<SatispayGateway, 'id' | 'name' | 'disabled_at'> & ResourceSort\n// export type SatispayGatewayFilter = Pick<SatispayGateway, 'id' | 'name' | 'disabled_at'> & ResourceFilter\n\n\ninterface SatispayGateway extends Resource {\n\t\n\treadonly type: SatispayGatewayType\n\n\t/** \n\t * The payment gateway's internal name.\n\t * @example ```\"US payment gateway\"```\n\t */\n\tname: string\n\t/** \n\t * Indicates if the payment source is forced on the editable order upon receiving a successful event from the gateway.\n\t * @example ```true```\n\t */\n\tforce_payments?: boolean | null\n\t/** \n\t * Time at which this resource was disabled.\n\t * @example ```\"2018-01-01T12:00:00.000Z\"```\n\t */\n\tdisabled_at?: string | null\n\t/** \n\t * Activation code generated from the Satispay Dashboard.\n\t * @example ```\"623ECX\"```\n\t */\n\ttoken: string\n\t/** \n\t * The Satispay API key auto generated basing on activation code.\n\t * @example ```\"xxxx-yyyy-zzzz\"```\n\t */\n\tkey_id: string\n\t/** \n\t * The gateway webhook URL, generated automatically.\n\t * @example ```\"https://core.commercelayer.co/webhook_callbacks/satispay_gateways/xxxxx\"```\n\t */\n\twebhook_endpoint_url?: string | null\n\n\tpayment_methods?: PaymentMethod[] | null\n\tversions?: Version[] | null\n\tevent_stores?: EventStore[] | null\n\tsatispay_payments?: SatispayPayment[] | null\n\n}\n\n\ninterface SatispayGatewayCreate extends ResourceCreate {\n\t\n\t/** \n\t * The payment gateway's internal name.\n\t * @example ```\"US payment gateway\"```\n\t */\n\tname: string\n\t/** \n\t * Indicates if the payment source is forced on the editable order upon receiving a successful event from the gateway.\n\t * @example ```true```\n\t */\n\tforce_payments?: boolean | null\n\t/** \n\t * Send this attribute if you want to mark this resource as disabled.\n\t * @example ```true```\n\t */\n\t_disable?: boolean | null\n\t/** \n\t * Send this attribute if you want to mark this resource as enabled.\n\t * @example ```true```\n\t */\n\t_enable?: boolean | null\n\t/** \n\t * Activation code generated from the Satispay Dashboard.\n\t * @example ```\"623ECX\"```\n\t */\n\ttoken: string\n\n\tsatispay_payments?: SatispayPaymentRel[] | null\n\n}\n\n\ninterface SatispayGatewayUpdate extends ResourceUpdate {\n\t\n\t/** \n\t * The payment gateway's internal name.\n\t * @example ```\"US payment gateway\"```\n\t */\n\tname?: string | null\n\t/** \n\t * Indicates if the payment source is forced on the editable order upon receiving a successful event from the gateway.\n\t * @example ```true```\n\t */\n\tforce_payments?: boolean | null\n\t/** \n\t * Send this attribute if you want to mark this resource as disabled.\n\t * @example ```true```\n\t */\n\t_disable?: boolean | null\n\t/** \n\t * Send this attribute if you want to mark this resource as enabled.\n\t * @example ```true```\n\t */\n\t_enable?: boolean | null\n\n\tsatispay_payments?: SatispayPaymentRel[] | null\n\n}\n\n\nclass SatispayGateways extends ApiResource<SatispayGateway> {\n\n\tstatic readonly TYPE: SatispayGatewayType = 'satispay_gateways' as const\n\n\tasync create(resource: SatispayGatewayCreate, params?: QueryParamsRetrieve<SatispayGateway>, options?: ResourcesConfig): Promise<SatispayGateway> {\n\t\treturn this.resources.create<SatispayGatewayCreate, SatispayGateway>({ ...resource, type: SatispayGateways.TYPE }, params, options)\n\t}\n\n\tasync update(resource: SatispayGatewayUpdate, params?: QueryParamsRetrieve<SatispayGateway>, options?: ResourcesConfig): Promise<SatispayGateway> {\n\t\treturn this.resources.update<SatispayGatewayUpdate, SatispayGateway>({ ...resource, type: SatispayGateways.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: SatispayGateways.TYPE } : id, options)\n\t}\n\n\tasync payment_methods(satispayGatewayId: string | SatispayGateway, params?: QueryParamsList<PaymentMethod>, options?: ResourcesConfig): Promise<ListResponse<PaymentMethod>> {\n\t\tconst _satispayGatewayId = (satispayGatewayId as SatispayGateway).id || satispayGatewayId as string\n\t\treturn this.resources.fetch<PaymentMethod>({ type: 'payment_methods' }, `satispay_gateways/${_satispayGatewayId}/payment_methods`, params, options) as unknown as ListResponse<PaymentMethod>\n\t}\n\n\tasync versions(satispayGatewayId: string | SatispayGateway, params?: QueryParamsList<Version>, options?: ResourcesConfig): Promise<ListResponse<Version>> {\n\t\tconst _satispayGatewayId = (satispayGatewayId as SatispayGateway).id || satispayGatewayId as string\n\t\treturn this.resources.fetch<Version>({ type: 'versions' }, `satispay_gateways/${_satispayGatewayId}/versions`, params, options) as unknown as ListResponse<Version>\n\t}\n\n\tasync event_stores(satispayGatewayId: string | SatispayGateway, params?: QueryParamsList<EventStore>, options?: ResourcesConfig): Promise<ListResponse<EventStore>> {\n\t\tconst _satispayGatewayId = (satispayGatewayId as SatispayGateway).id || satispayGatewayId as string\n\t\treturn this.resources.fetch<EventStore>({ type: 'event_stores' }, `satispay_gateways/${_satispayGatewayId}/event_stores`, params, options) as unknown as ListResponse<EventStore>\n\t}\n\n\tasync satispay_payments(satispayGatewayId: string | SatispayGateway, params?: QueryParamsList<SatispayPayment>, options?: ResourcesConfig): Promise<ListResponse<SatispayPayment>> {\n\t\tconst _satispayGatewayId = (satispayGatewayId as SatispayGateway).id || satispayGatewayId as string\n\t\treturn this.resources.fetch<SatispayPayment>({ type: 'satispay_payments' }, `satispay_gateways/${_satispayGatewayId}/satispay_payments`, params, options) as unknown as ListResponse<SatispayPayment>\n\t}\n\n\tasync _disable(id: string | SatispayGateway, params?: QueryParamsRetrieve<SatispayGateway>, options?: ResourcesConfig): Promise<SatispayGateway> {\n\t\treturn this.resources.update<SatispayGatewayUpdate, SatispayGateway>({ id: (typeof id === 'string')? id: id.id, type: SatispayGateways.TYPE, _disable: true }, params, options)\n\t}\n\n\tasync _enable(id: string | SatispayGateway, params?: QueryParamsRetrieve<SatispayGateway>, options?: ResourcesConfig): Promise<SatispayGateway> {\n\t\treturn this.resources.update<SatispayGatewayUpdate, SatispayGateway>({ id: (typeof id === 'string')? id: id.id, type: SatispayGateways.TYPE, _enable: true }, params, options)\n\t}\n\n\n\tisSatispayGateway(resource: any): resource is SatispayGateway {\n\t\treturn resource.type && (resource.type === SatispayGateways.TYPE)\n\t}\n\n\n\trelationship(id: string | ResourceId | null): SatispayGatewayRel {\n\t\treturn super.relationshipOneToOne<SatispayGatewayRel>(id)\n\t}\n\n\trelationshipToMany(...ids: string[]): SatispayGatewayRel[] {\n\t\treturn super.relationshipOneToMany<SatispayGatewayRel>(...ids)\n\t}\n\n\n\ttype(): SatispayGatewayType {\n\t\treturn SatispayGateways.TYPE\n\t}\n\n}\n\n\nconst instance = new SatispayGateways()\nexport default instance\n\nexport type { SatispayGateway, SatispayGatewayCreate, SatispayGateways, SatispayGatewayType, SatispayGatewayUpdate }\n"]}
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
import { ApiResource } from './chunk-L2R5G3V5.js';
|
|
2
|
+
|
|
3
|
+
// src/resources/coupons.ts
|
|
4
|
+
var Coupons = class _Coupons extends ApiResource {
|
|
5
|
+
static TYPE = "coupons";
|
|
6
|
+
async create(resource, params, options) {
|
|
7
|
+
return this.resources.create({ ...resource, type: _Coupons.TYPE }, params, options);
|
|
8
|
+
}
|
|
9
|
+
async update(resource, params, options) {
|
|
10
|
+
return this.resources.update({ ...resource, type: _Coupons.TYPE }, params, options);
|
|
11
|
+
}
|
|
12
|
+
async delete(id, options) {
|
|
13
|
+
await this.resources.delete(typeof id === "string" ? { id, type: _Coupons.TYPE } : id, options);
|
|
14
|
+
}
|
|
15
|
+
async promotion_rule(couponId, params, options) {
|
|
16
|
+
const _couponId = couponId.id || couponId;
|
|
17
|
+
return this.resources.fetch({ type: "coupon_codes_promotion_rules" }, `coupons/${_couponId}/promotion_rule`, params, options);
|
|
18
|
+
}
|
|
19
|
+
async coupon_recipient(couponId, params, options) {
|
|
20
|
+
const _couponId = couponId.id || couponId;
|
|
21
|
+
return this.resources.fetch({ type: "coupon_recipients" }, `coupons/${_couponId}/coupon_recipient`, params, options);
|
|
22
|
+
}
|
|
23
|
+
async events(couponId, params, options) {
|
|
24
|
+
const _couponId = couponId.id || couponId;
|
|
25
|
+
return this.resources.fetch({ type: "events" }, `coupons/${_couponId}/events`, params, options);
|
|
26
|
+
}
|
|
27
|
+
async tags(couponId, params, options) {
|
|
28
|
+
const _couponId = couponId.id || couponId;
|
|
29
|
+
return this.resources.fetch({ type: "tags" }, `coupons/${_couponId}/tags`, params, options);
|
|
30
|
+
}
|
|
31
|
+
async versions(couponId, params, options) {
|
|
32
|
+
const _couponId = couponId.id || couponId;
|
|
33
|
+
return this.resources.fetch({ type: "versions" }, `coupons/${_couponId}/versions`, params, options);
|
|
34
|
+
}
|
|
35
|
+
async event_stores(couponId, params, options) {
|
|
36
|
+
const _couponId = couponId.id || couponId;
|
|
37
|
+
return this.resources.fetch({ type: "event_stores" }, `coupons/${_couponId}/event_stores`, params, options);
|
|
38
|
+
}
|
|
39
|
+
async _add_tags(id, triggerValue, params, options) {
|
|
40
|
+
return this.resources.update({ id: typeof id === "string" ? id : id.id, type: _Coupons.TYPE, _add_tags: triggerValue }, params, options);
|
|
41
|
+
}
|
|
42
|
+
async _remove_tags(id, triggerValue, params, options) {
|
|
43
|
+
return this.resources.update({ id: typeof id === "string" ? id : id.id, type: _Coupons.TYPE, _remove_tags: triggerValue }, params, options);
|
|
44
|
+
}
|
|
45
|
+
isCoupon(resource) {
|
|
46
|
+
return resource.type && resource.type === _Coupons.TYPE;
|
|
47
|
+
}
|
|
48
|
+
relationship(id) {
|
|
49
|
+
return super.relationshipOneToOne(id);
|
|
50
|
+
}
|
|
51
|
+
relationshipToMany(...ids) {
|
|
52
|
+
return super.relationshipOneToMany(...ids);
|
|
53
|
+
}
|
|
54
|
+
type() {
|
|
55
|
+
return _Coupons.TYPE;
|
|
56
|
+
}
|
|
57
|
+
};
|
|
58
|
+
var instance = new Coupons();
|
|
59
|
+
var coupons_default = instance;
|
|
60
|
+
|
|
61
|
+
export { coupons_default };
|
|
62
|
+
//# sourceMappingURL=chunk-OSGNFURJ.js.map
|
|
63
|
+
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A,OAAO,QAAA,CAAQ,IAAA;AAAA,EAChB;AAED,CAAA;AAGA,IAAM,QAAA,GAAW,IAAI,OAAA,EAAQ;AAC7B,IAAO,eAAA,GAAQ","file":"chunk-OSGNFURJ.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'\n\nimport type { CouponCodesPromotionRule, CouponCodesPromotionRuleType } from './coupon_codes_promotion_rules'\nimport type { CouponRecipient, CouponRecipientType } from './coupon_recipients'\nimport type { EventStore } from './event_stores'\nimport type { Event } from './events'\nimport type { Tag, TagType } from './tags'\nimport type { Version } from './versions'\n\n\ntype CouponType = 'coupons'\ntype CouponRel = ResourceRel & { type: CouponType }\ntype CouponCodesPromotionRuleRel = ResourceRel & { type: CouponCodesPromotionRuleType }\ntype CouponRecipientRel = ResourceRel & { type: CouponRecipientType }\ntype TagRel = ResourceRel & { type: TagType }\n\n\nexport type CouponSort = Pick<Coupon, 'id' | 'code' | 'customer_single_use' | 'usage_limit' | 'usage_count' | 'expires_at'> & ResourceSort\n// export type CouponFilter = Pick<Coupon, 'id' | 'code' | 'customer_single_use' | 'usage_limit' | 'usage_count' | 'expires_at'> & ResourceFilter\n\n\ninterface Coupon extends Resource {\n\t\n\treadonly type: CouponType\n\n\t/** \n\t * The coupon code, that uniquely identifies the coupon within the promotion rule.\n\t * @example ```\"04371af2-70b3-48d7-8f4e-316b374224c3\"```\n\t */\n\tcode: string\n\t/** \n\t * Indicates if the coupon can be used just once per customer.\n\t */\n\tcustomer_single_use?: boolean | null\n\t/** \n\t * The total number of times this coupon can be used.\n\t * @example ```50```\n\t */\n\tusage_limit?: number | null\n\t/** \n\t * The number of times this coupon has been used.\n\t * @example ```20```\n\t */\n\tusage_count?: number | null\n\t/** \n\t * The email address of the associated recipient. When creating or updating a coupon, this is a shortcut to find or create the associated recipient by email.\n\t * @example ```\"john@example.com\"```\n\t */\n\trecipient_email?: string | null\n\t/** \n\t * Time at which the coupon will expire.\n\t * @example ```\"2018-01-01T12:00:00.000Z\"```\n\t */\n\texpires_at?: string | null\n\n\tpromotion_rule?: CouponCodesPromotionRule | null\n\tcoupon_recipient?: CouponRecipient | null\n\tevents?: Event[] | null\n\ttags?: Tag[] | null\n\tversions?: Version[] | null\n\tevent_stores?: EventStore[] | null\n\n}\n\n\ninterface CouponCreate extends ResourceCreate {\n\t\n\t/** \n\t * The coupon code, that uniquely identifies the coupon within the promotion rule.\n\t * @example ```\"04371af2-70b3-48d7-8f4e-316b374224c3\"```\n\t */\n\tcode: string\n\t/** \n\t * Indicates if the coupon can be used just once per customer.\n\t */\n\tcustomer_single_use?: boolean | null\n\t/** \n\t * The total number of times this coupon can be used.\n\t * @example ```50```\n\t */\n\tusage_limit?: number | null\n\t/** \n\t * The email address of the associated recipient. When creating or updating a coupon, this is a shortcut to find or create the associated recipient by email.\n\t * @example ```\"john@example.com\"```\n\t */\n\trecipient_email?: string | null\n\t/** \n\t * Time at which the coupon will expire.\n\t * @example ```\"2018-01-01T12:00:00.000Z\"```\n\t */\n\texpires_at?: string | null\n\n\tpromotion_rule: CouponCodesPromotionRuleRel\n\tcoupon_recipient?: CouponRecipientRel | null\n\ttags?: TagRel[] | null\n\n}\n\n\ninterface CouponUpdate extends ResourceUpdate {\n\t\n\t/** \n\t * The coupon code, that uniquely identifies the coupon within the promotion rule.\n\t * @example ```\"04371af2-70b3-48d7-8f4e-316b374224c3\"```\n\t */\n\tcode?: string | null\n\t/** \n\t * Indicates if the coupon can be used just once per customer.\n\t */\n\tcustomer_single_use?: boolean | null\n\t/** \n\t * The total number of times this coupon can be used.\n\t * @example ```50```\n\t */\n\tusage_limit?: number | null\n\t/** \n\t * The email address of the associated recipient. When creating or updating a coupon, this is a shortcut to find or create the associated recipient by email.\n\t * @example ```\"john@example.com\"```\n\t */\n\trecipient_email?: string | null\n\t/** \n\t * Time at which the coupon will expire.\n\t * @example ```\"2018-01-01T12:00:00.000Z\"```\n\t */\n\texpires_at?: string | null\n\t/** \n\t * Comma separated list of tags to be added. Duplicates, invalid and non existing ones are discarded. Cannot be passed by sales channels.\n\t */\n\t_add_tags?: string | null\n\t/** \n\t * Comma separated list of tags to be removed. Duplicates, invalid and non existing ones are discarded. Cannot be passed by sales channels.\n\t */\n\t_remove_tags?: string | null\n\n\tpromotion_rule?: CouponCodesPromotionRuleRel | null\n\tcoupon_recipient?: CouponRecipientRel | null\n\ttags?: TagRel[] | null\n\n}\n\n\nclass Coupons extends ApiResource<Coupon> {\n\n\tstatic readonly TYPE: CouponType = 'coupons' as const\n\n\tasync create(resource: CouponCreate, params?: QueryParamsRetrieve<Coupon>, options?: ResourcesConfig): Promise<Coupon> {\n\t\treturn this.resources.create<CouponCreate, Coupon>({ ...resource, type: Coupons.TYPE }, params, options)\n\t}\n\n\tasync update(resource: CouponUpdate, params?: QueryParamsRetrieve<Coupon>, options?: ResourcesConfig): Promise<Coupon> {\n\t\treturn this.resources.update<CouponUpdate, Coupon>({ ...resource, type: Coupons.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: Coupons.TYPE } : id, options)\n\t}\n\n\tasync promotion_rule(couponId: string | Coupon, params?: QueryParamsRetrieve<CouponCodesPromotionRule>, options?: ResourcesConfig): Promise<CouponCodesPromotionRule> {\n\t\tconst _couponId = (couponId as Coupon).id || couponId as string\n\t\treturn this.resources.fetch<CouponCodesPromotionRule>({ type: 'coupon_codes_promotion_rules' }, `coupons/${_couponId}/promotion_rule`, params, options) as unknown as CouponCodesPromotionRule\n\t}\n\n\tasync coupon_recipient(couponId: string | Coupon, params?: QueryParamsRetrieve<CouponRecipient>, options?: ResourcesConfig): Promise<CouponRecipient> {\n\t\tconst _couponId = (couponId as Coupon).id || couponId as string\n\t\treturn this.resources.fetch<CouponRecipient>({ type: 'coupon_recipients' }, `coupons/${_couponId}/coupon_recipient`, params, options) as unknown as CouponRecipient\n\t}\n\n\tasync events(couponId: string | Coupon, params?: QueryParamsList<Event>, options?: ResourcesConfig): Promise<ListResponse<Event>> {\n\t\tconst _couponId = (couponId as Coupon).id || couponId as string\n\t\treturn this.resources.fetch<Event>({ type: 'events' }, `coupons/${_couponId}/events`, params, options) as unknown as ListResponse<Event>\n\t}\n\n\tasync tags(couponId: string | Coupon, params?: QueryParamsList<Tag>, options?: ResourcesConfig): Promise<ListResponse<Tag>> {\n\t\tconst _couponId = (couponId as Coupon).id || couponId as string\n\t\treturn this.resources.fetch<Tag>({ type: 'tags' }, `coupons/${_couponId}/tags`, params, options) as unknown as ListResponse<Tag>\n\t}\n\n\tasync versions(couponId: string | Coupon, params?: QueryParamsList<Version>, options?: ResourcesConfig): Promise<ListResponse<Version>> {\n\t\tconst _couponId = (couponId as Coupon).id || couponId as string\n\t\treturn this.resources.fetch<Version>({ type: 'versions' }, `coupons/${_couponId}/versions`, params, options) as unknown as ListResponse<Version>\n\t}\n\n\tasync event_stores(couponId: string | Coupon, params?: QueryParamsList<EventStore>, options?: ResourcesConfig): Promise<ListResponse<EventStore>> {\n\t\tconst _couponId = (couponId as Coupon).id || couponId as string\n\t\treturn this.resources.fetch<EventStore>({ type: 'event_stores' }, `coupons/${_couponId}/event_stores`, params, options) as unknown as ListResponse<EventStore>\n\t}\n\n\tasync _add_tags(id: string | Coupon, triggerValue: string, params?: QueryParamsRetrieve<Coupon>, options?: ResourcesConfig): Promise<Coupon> {\n\t\treturn this.resources.update<CouponUpdate, Coupon>({ id: (typeof id === 'string')? id: id.id, type: Coupons.TYPE, _add_tags: triggerValue }, params, options)\n\t}\n\n\tasync _remove_tags(id: string | Coupon, triggerValue: string, params?: QueryParamsRetrieve<Coupon>, options?: ResourcesConfig): Promise<Coupon> {\n\t\treturn this.resources.update<CouponUpdate, Coupon>({ id: (typeof id === 'string')? id: id.id, type: Coupons.TYPE, _remove_tags: triggerValue }, params, options)\n\t}\n\n\n\tisCoupon(resource: any): resource is Coupon {\n\t\treturn resource.type && (resource.type === Coupons.TYPE)\n\t}\n\n\n\trelationship(id: string | ResourceId | null): CouponRel {\n\t\treturn super.relationshipOneToOne<CouponRel>(id)\n\t}\n\n\trelationshipToMany(...ids: string[]): CouponRel[] {\n\t\treturn super.relationshipOneToMany<CouponRel>(...ids)\n\t}\n\n\n\ttype(): CouponType {\n\t\treturn Coupons.TYPE\n\t}\n\n}\n\n\nconst instance = new Coupons()\nexport default instance\n\nexport type { Coupon, CouponCreate, Coupons, CouponType, CouponUpdate }\n"]}
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var chunkUBH2EC5P_cjs = require('./chunk-UBH2EC5P.cjs');
|
|
4
|
+
|
|
5
|
+
// src/resources/stripe_payments.ts
|
|
6
|
+
var StripePayments = class _StripePayments extends chunkUBH2EC5P_cjs.ApiResource {
|
|
7
|
+
static TYPE = "stripe_payments";
|
|
8
|
+
async create(resource, params, options) {
|
|
9
|
+
return this.resources.create({ ...resource, type: _StripePayments.TYPE }, params, options);
|
|
10
|
+
}
|
|
11
|
+
async update(resource, params, options) {
|
|
12
|
+
return this.resources.update({ ...resource, type: _StripePayments.TYPE }, params, options);
|
|
13
|
+
}
|
|
14
|
+
async delete(id, options) {
|
|
15
|
+
await this.resources.delete(typeof id === "string" ? { id, type: _StripePayments.TYPE } : id, options);
|
|
16
|
+
}
|
|
17
|
+
async order(stripePaymentId, params, options) {
|
|
18
|
+
const _stripePaymentId = stripePaymentId.id || stripePaymentId;
|
|
19
|
+
return this.resources.fetch({ type: "orders" }, `stripe_payments/${_stripePaymentId}/order`, params, options);
|
|
20
|
+
}
|
|
21
|
+
async payment_gateway(stripePaymentId, params, options) {
|
|
22
|
+
const _stripePaymentId = stripePaymentId.id || stripePaymentId;
|
|
23
|
+
return this.resources.fetch({ type: "payment_gateways" }, `stripe_payments/${_stripePaymentId}/payment_gateway`, params, options);
|
|
24
|
+
}
|
|
25
|
+
async versions(stripePaymentId, params, options) {
|
|
26
|
+
const _stripePaymentId = stripePaymentId.id || stripePaymentId;
|
|
27
|
+
return this.resources.fetch({ type: "versions" }, `stripe_payments/${_stripePaymentId}/versions`, params, options);
|
|
28
|
+
}
|
|
29
|
+
async event_stores(stripePaymentId, params, options) {
|
|
30
|
+
const _stripePaymentId = stripePaymentId.id || stripePaymentId;
|
|
31
|
+
return this.resources.fetch({ type: "event_stores" }, `stripe_payments/${_stripePaymentId}/event_stores`, params, options);
|
|
32
|
+
}
|
|
33
|
+
async _update(id, params, options) {
|
|
34
|
+
return this.resources.update({ id: typeof id === "string" ? id : id.id, type: _StripePayments.TYPE, _update: true }, params, options);
|
|
35
|
+
}
|
|
36
|
+
async _refresh(id, params, options) {
|
|
37
|
+
return this.resources.update({ id: typeof id === "string" ? id : id.id, type: _StripePayments.TYPE, _refresh: true }, params, options);
|
|
38
|
+
}
|
|
39
|
+
isStripePayment(resource) {
|
|
40
|
+
return resource.type && resource.type === _StripePayments.TYPE;
|
|
41
|
+
}
|
|
42
|
+
relationship(id) {
|
|
43
|
+
return super.relationshipOneToOne(id);
|
|
44
|
+
}
|
|
45
|
+
relationshipToMany(...ids) {
|
|
46
|
+
return super.relationshipOneToMany(...ids);
|
|
47
|
+
}
|
|
48
|
+
type() {
|
|
49
|
+
return _StripePayments.TYPE;
|
|
50
|
+
}
|
|
51
|
+
};
|
|
52
|
+
var instance = new StripePayments();
|
|
53
|
+
var stripe_payments_default = instance;
|
|
54
|
+
|
|
55
|
+
exports.stripe_payments_default = stripe_payments_default;
|
|
56
|
+
//# sourceMappingURL=chunk-OSPDLBK7.cjs.map
|
|
57
|
+
//# sourceMappingURL=chunk-OSPDLBK7.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/resources/stripe_payments.ts"],"names":["ApiResource"],"mappings":";;;;;AA4JA,IAAM,cAAA,GAAN,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GAAW,EAAA,GAAI,EAAA,CAAG,EAAA,EAAI,MAAM,eAAA,CAAe,IAAA,EAAM,UAAU,IAAA,EAAK,EAAG,QAAQ,OAAO,CAAA;AAAA,EACzK;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-OSPDLBK7.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 { Order, OrderType } from './orders'\nimport type { PaymentGateway } from './payment_gateways'\nimport type { Version } from './versions'\n\n\ntype StripePaymentType = 'stripe_payments'\ntype StripePaymentRel = ResourceRel & { type: StripePaymentType }\ntype OrderRel = ResourceRel & { type: OrderType }\n\n\nexport type StripePaymentSort = Pick<StripePayment, 'id'> & ResourceSort\n// export type StripePaymentFilter = Pick<StripePayment, 'id'> & ResourceFilter\n\n\ninterface StripePayment extends Resource {\n\t\n\treadonly type: StripePaymentType\n\n\t/** \n\t * The Stripe payment intent ID. Required to identify a payment session on stripe.\n\t * @example ```\"pi_1234XXX\"```\n\t */\n\tstripe_id?: string | null\n\t/** \n\t * The Stripe payment intent client secret. Required to create a charge through Stripe.js.\n\t * @example ```\"pi_1234XXX_secret_5678YYY\"```\n\t */\n\tclient_secret?: string | null\n\t/** \n\t * The account (if any) for which the funds of the PaymentIntent are intended.\n\t * @example ```\"acct_xxxx-yyyy-zzzz\"```\n\t */\n\tconnected_account?: string | null\n\t/** \n\t * The Stripe charge ID. Identifies money movement upon the payment intent confirmation.\n\t * @example ```\"ch_1234XXX\"```\n\t */\n\tcharge_id?: string | null\n\t/** \n\t * The Stripe publishable API key.\n\t * @example ```\"pk_live_xxxx-yyyy-zzzz\"```\n\t */\n\tpublishable_key?: string | null\n\t/** \n\t * The Stripe account ID that these funds are intended for.\n\t * @example ```\"xxxx-yyyy-zzzz\"```\n\t */\n\ton_behalf_of?: string | null\n\t/** \n\t * A string that identifies the resulting payment as part of a group.\n\t * @example ```\"xxxx-yyyy-zzzz\"```\n\t */\n\ttransfer_group?: string | null\n\t/** \n\t * Stripe payment options: 'customer', 'payment_method', 'return_url', etc. Check Stripe payment intent API for more details.\n\t * @example ```{\"customer\":\"cus_xxx\",\"payment_method\":\"pm_xxx\"}```\n\t */\n\toptions?: Record<string, any> | null\n\t/** \n\t * Stripe 'payment_method', set by webhook.\n\t * @example ```{\"id\":\"pm_xxx\"}```\n\t */\n\tpayment_method?: Record<string, any> | null\n\t/** \n\t * Indicates if the order current amount differs form the one of the created payment intent.\n\t */\n\tmismatched_amounts?: boolean | null\n\t/** \n\t * The URL to return to when a redirect payment is completed.\n\t * @example ```\"https://yourdomain.com/thankyou\"```\n\t */\n\treturn_url?: string | null\n\t/** \n\t * The email address to send the receipt to.\n\t * @example ```\"john@example.com\"```\n\t */\n\treceipt_email?: string | null\n\t/** \n\t * Information about the payment instrument used in the transaction.\n\t * @example ```{\"issuer\":\"cl bank\",\"card_type\":\"visa\"}```\n\t */\n\tpayment_instrument?: Record<string, any> | null\n\n\torder?: Order | null\n\tpayment_gateway?: PaymentGateway | null\n\tversions?: Version[] | null\n\tevent_stores?: EventStore[] | null\n\n}\n\n\ninterface StripePaymentCreate extends ResourceCreate {\n\t\n\t/** \n\t * The Stripe payment intent ID. Required to identify a payment session on stripe.\n\t * @example ```\"pi_1234XXX\"```\n\t */\n\tstripe_id?: string | null\n\t/** \n\t * The Stripe payment intent client secret. Required to create a charge through Stripe.js.\n\t * @example ```\"pi_1234XXX_secret_5678YYY\"```\n\t */\n\tclient_secret?: string | null\n\t/** \n\t * Stripe payment options: 'customer', 'payment_method', 'return_url', etc. Check Stripe payment intent API for more details.\n\t * @example ```{\"customer\":\"cus_xxx\",\"payment_method\":\"pm_xxx\"}```\n\t */\n\toptions?: Record<string, any> | null\n\t/** \n\t * The URL to return to when a redirect payment is completed.\n\t * @example ```\"https://yourdomain.com/thankyou\"```\n\t */\n\treturn_url?: string | null\n\t/** \n\t * The email address to send the receipt to.\n\t * @example ```\"john@example.com\"```\n\t */\n\treceipt_email?: string | null\n\n\torder: OrderRel\n\n}\n\n\ninterface StripePaymentUpdate extends ResourceUpdate {\n\t\n\t/** \n\t * Stripe payment options: 'customer', 'payment_method', 'return_url', etc. Check Stripe payment intent API for more details.\n\t * @example ```{\"customer\":\"cus_xxx\",\"payment_method\":\"pm_xxx\"}```\n\t */\n\toptions?: Record<string, any> | null\n\t/** \n\t * The URL to return to when a redirect payment is completed.\n\t * @example ```\"https://yourdomain.com/thankyou\"```\n\t */\n\treturn_url?: string | null\n\t/** \n\t * Send this attribute if you want to update the created payment intent with fresh order data.\n\t * @example ```true```\n\t */\n\t_update?: boolean | null\n\t/** \n\t * Send this attribute if you want to refresh the payment status, can be used as webhooks fallback logic.\n\t * @example ```true```\n\t */\n\t_refresh?: boolean | null\n\n\torder?: OrderRel | null\n\n}\n\n\nclass StripePayments extends ApiResource<StripePayment> {\n\n\tstatic readonly TYPE: StripePaymentType = 'stripe_payments' as const\n\n\tasync create(resource: StripePaymentCreate, params?: QueryParamsRetrieve<StripePayment>, options?: ResourcesConfig): Promise<StripePayment> {\n\t\treturn this.resources.create<StripePaymentCreate, StripePayment>({ ...resource, type: StripePayments.TYPE }, params, options)\n\t}\n\n\tasync update(resource: StripePaymentUpdate, params?: QueryParamsRetrieve<StripePayment>, options?: ResourcesConfig): Promise<StripePayment> {\n\t\treturn this.resources.update<StripePaymentUpdate, StripePayment>({ ...resource, type: StripePayments.TYPE }, params, options)\n\t}\n\n\tasync delete(id: string | ResourceId, options?: ResourcesConfig): Promise<void> {\n\t\tawait this.resources.delete((typeof id === 'string')? { id, type: StripePayments.TYPE } : id, options)\n\t}\n\n\tasync order(stripePaymentId: string | StripePayment, params?: QueryParamsRetrieve<Order>, options?: ResourcesConfig): Promise<Order> {\n\t\tconst _stripePaymentId = (stripePaymentId as StripePayment).id || stripePaymentId as string\n\t\treturn this.resources.fetch<Order>({ type: 'orders' }, `stripe_payments/${_stripePaymentId}/order`, params, options) as unknown as Order\n\t}\n\n\tasync payment_gateway(stripePaymentId: string | StripePayment, params?: QueryParamsRetrieve<PaymentGateway>, options?: ResourcesConfig): Promise<PaymentGateway> {\n\t\tconst _stripePaymentId = (stripePaymentId as StripePayment).id || stripePaymentId as string\n\t\treturn this.resources.fetch<PaymentGateway>({ type: 'payment_gateways' }, `stripe_payments/${_stripePaymentId}/payment_gateway`, params, options) as unknown as PaymentGateway\n\t}\n\n\tasync versions(stripePaymentId: string | StripePayment, params?: QueryParamsList<Version>, options?: ResourcesConfig): Promise<ListResponse<Version>> {\n\t\tconst _stripePaymentId = (stripePaymentId as StripePayment).id || stripePaymentId as string\n\t\treturn this.resources.fetch<Version>({ type: 'versions' }, `stripe_payments/${_stripePaymentId}/versions`, params, options) as unknown as ListResponse<Version>\n\t}\n\n\tasync event_stores(stripePaymentId: string | StripePayment, params?: QueryParamsList<EventStore>, options?: ResourcesConfig): Promise<ListResponse<EventStore>> {\n\t\tconst _stripePaymentId = (stripePaymentId as StripePayment).id || stripePaymentId as string\n\t\treturn this.resources.fetch<EventStore>({ type: 'event_stores' }, `stripe_payments/${_stripePaymentId}/event_stores`, params, options) as unknown as ListResponse<EventStore>\n\t}\n\n\tasync _update(id: string | StripePayment, params?: QueryParamsRetrieve<StripePayment>, options?: ResourcesConfig): Promise<StripePayment> {\n\t\treturn this.resources.update<StripePaymentUpdate, StripePayment>({ id: (typeof id === 'string')? id: id.id, type: StripePayments.TYPE, _update: true }, params, options)\n\t}\n\n\tasync _refresh(id: string | StripePayment, params?: QueryParamsRetrieve<StripePayment>, options?: ResourcesConfig): Promise<StripePayment> {\n\t\treturn this.resources.update<StripePaymentUpdate, StripePayment>({ id: (typeof id === 'string')? id: id.id, type: StripePayments.TYPE, _refresh: true }, params, options)\n\t}\n\n\n\tisStripePayment(resource: any): resource is StripePayment {\n\t\treturn resource.type && (resource.type === StripePayments.TYPE)\n\t}\n\n\n\trelationship(id: string | ResourceId | null): StripePaymentRel {\n\t\treturn super.relationshipOneToOne<StripePaymentRel>(id)\n\t}\n\n\trelationshipToMany(...ids: string[]): StripePaymentRel[] {\n\t\treturn super.relationshipOneToMany<StripePaymentRel>(...ids)\n\t}\n\n\n\ttype(): StripePaymentType {\n\t\treturn StripePayments.TYPE\n\t}\n\n}\n\n\nconst instance = new StripePayments()\nexport default instance\n\nexport type { StripePayment, StripePaymentCreate, StripePayments, StripePaymentType, StripePaymentUpdate }\n"]}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { ApiResource } from './chunk-L2R5G3V5.js';
|
|
2
|
+
|
|
3
|
+
// src/resources/tax_rules.ts
|
|
4
|
+
var TaxRules = class _TaxRules extends ApiResource {
|
|
5
|
+
static TYPE = "tax_rules";
|
|
6
|
+
async create(resource, params, options) {
|
|
7
|
+
return this.resources.create({ ...resource, type: _TaxRules.TYPE }, params, options);
|
|
8
|
+
}
|
|
9
|
+
async update(resource, params, options) {
|
|
10
|
+
return this.resources.update({ ...resource, type: _TaxRules.TYPE }, params, options);
|
|
11
|
+
}
|
|
12
|
+
async delete(id, options) {
|
|
13
|
+
await this.resources.delete(typeof id === "string" ? { id, type: _TaxRules.TYPE } : id, options);
|
|
14
|
+
}
|
|
15
|
+
async manual_tax_calculator(taxRuleId, params, options) {
|
|
16
|
+
const _taxRuleId = taxRuleId.id || taxRuleId;
|
|
17
|
+
return this.resources.fetch({ type: "manual_tax_calculators" }, `tax_rules/${_taxRuleId}/manual_tax_calculator`, params, options);
|
|
18
|
+
}
|
|
19
|
+
async versions(taxRuleId, params, options) {
|
|
20
|
+
const _taxRuleId = taxRuleId.id || taxRuleId;
|
|
21
|
+
return this.resources.fetch({ type: "versions" }, `tax_rules/${_taxRuleId}/versions`, params, options);
|
|
22
|
+
}
|
|
23
|
+
async event_stores(taxRuleId, params, options) {
|
|
24
|
+
const _taxRuleId = taxRuleId.id || taxRuleId;
|
|
25
|
+
return this.resources.fetch({ type: "event_stores" }, `tax_rules/${_taxRuleId}/event_stores`, params, options);
|
|
26
|
+
}
|
|
27
|
+
isTaxRule(resource) {
|
|
28
|
+
return resource.type && resource.type === _TaxRules.TYPE;
|
|
29
|
+
}
|
|
30
|
+
relationship(id) {
|
|
31
|
+
return super.relationshipOneToOne(id);
|
|
32
|
+
}
|
|
33
|
+
relationshipToMany(...ids) {
|
|
34
|
+
return super.relationshipOneToMany(...ids);
|
|
35
|
+
}
|
|
36
|
+
type() {
|
|
37
|
+
return _TaxRules.TYPE;
|
|
38
|
+
}
|
|
39
|
+
};
|
|
40
|
+
var instance = new TaxRules();
|
|
41
|
+
var tax_rules_default = instance;
|
|
42
|
+
|
|
43
|
+
export { tax_rules_default };
|
|
44
|
+
//# sourceMappingURL=chunk-OTJ3AG3G.js.map
|
|
45
|
+
//# sourceMappingURL=chunk-OTJ3AG3G.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/resources/tax_rules.ts"],"names":[],"mappings":";;;AA0NA,IAAM,QAAA,GAAN,MAAM,SAAA,SAAiB,WAAA,CAAqB;AAAA,EAE3C,OAAgB,IAAA,GAAoB,WAAA;AAAA,EAEpC,MAAM,MAAA,CAAO,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AAa,MAAA,EAAQ,OAAO,CAAA;AAAA,EAC/G;AAAA,EAEA,MAAM,YAAA,CAAa,SAAA,EAA6B,MAAA,EAAsC,OAAA,EAA8D;AACnJ,IAAA,MAAM,UAAA,GAAc,UAAsB,EAAA,IAAM,SAAA;AAChD,IAAA,OAAO,IAAA,CAAK,SAAA,CAAU,KAAA,CAAkB,EAAE,IAAA,EAAM,cAAA,EAAe,EAAG,CAAA,UAAA,EAAa,UAAU,CAAA,aAAA,CAAA,EAAiB,MAAA,EAAQ,OAAO,CAAA;AAAA,EAC1H;AAAA,EAGA,UAAU,QAAA,EAAoC;AAC7C,IAAA,OAAO,QAAA,CAAS,IAAA,IAAS,QAAA,CAAS,IAAA,KAAS,SAAA,CAAS,IAAA;AAAA,EACrD;AAAA,EAGA,aAAa,EAAA,EAA4C;AACxD,IAAA,OAAO,KAAA,CAAM,qBAAiC,EAAE,CAAA;AAAA,EACjD;AAAA,EAEA,sBAAsB,GAAA,EAA6B;AAClD,IAAA,OAAO,KAAA,CAAM,qBAAA,CAAkC,GAAG,GAAG,CAAA;AAAA,EACtD;AAAA,EAGA,IAAA,GAAoB;AACnB,IAAA,OAAO,SAAA,CAAS,IAAA;AAAA,EACjB;AAED,CAAA;AAGA,IAAM,QAAA,GAAW,IAAI,QAAA,EAAS;AAC9B,IAAO,iBAAA,GAAQ","file":"chunk-OTJ3AG3G.js","sourcesContent":["import type { QueryParamsList, QueryParamsRetrieve } from '../query'\nimport type { ListResponse, Resource, ResourceCreate, ResourceId, ResourceRel, ResourceSort, /* ResourceFilter */ ResourcesConfig, ResourceUpdate, } from '../resource'\nimport { ApiResource } from '../resource'\nimport type { EventStore } from './event_stores'\nimport type { ManualTaxCalculator, ManualTaxCalculatorType } from './manual_tax_calculators'\nimport type { Version } from './versions'\n\n\ntype TaxRuleType = 'tax_rules'\ntype TaxRuleRel = ResourceRel & { type: TaxRuleType }\ntype ManualTaxCalculatorRel = ResourceRel & { type: ManualTaxCalculatorType }\n\n\nexport type TaxRuleSort = Pick<TaxRule, 'id' | 'name' | 'tax_rate'> & ResourceSort\n// export type TaxRuleFilter = Pick<TaxRule, 'id' | 'name' | 'tax_rate' | 'freight_taxable' | 'payment_method_taxable' | 'gift_card_taxable' | 'adjustment_taxable'> & ResourceFilter\n\n\ninterface TaxRule extends Resource {\n\t\n\treadonly type: TaxRuleType\n\n\t/** \n\t * The tax rule internal name.\n\t * @example ```\"Fixed 22%\"```\n\t */\n\tname: string\n\t/** \n\t * The tax rate for this rule.\n\t * @example ```0.22```\n\t */\n\ttax_rate?: number | null\n\t/** \n\t * Indicates if the freight is taxable.\n\t */\n\tfreight_taxable?: boolean | null\n\t/** \n\t * Indicates if the payment method is taxable.\n\t */\n\tpayment_method_taxable?: boolean | null\n\t/** \n\t * Indicates if gift cards are taxable.\n\t */\n\tgift_card_taxable?: boolean | null\n\t/** \n\t * Indicates if adjustemnts are taxable.\n\t */\n\tadjustment_taxable?: boolean | null\n\t/** \n\t * The breakdown for this tax rule (if calculated).\n\t * @example ```{\"41\":{\"tax_rate\":0.22}}```\n\t */\n\tbreakdown?: Record<string, any> | null\n\t/** \n\t * The regex that will be evaluated to match the shipping address country code, max size is 5000.\n\t * @example ```\"AT|BE|BG|CZ|DK|EE|DE|HU|LV|LT\"```\n\t */\n\tcountry_code_regex?: string | null\n\t/** \n\t * The regex that will be evaluated as negative match for the shipping address country code, max size is 5000.\n\t * @example ```\"AT|BE|BG|CZ|DK|EE|DE\"```\n\t */\n\tnot_country_code_regex?: string | null\n\t/** \n\t * The regex that will be evaluated to match the shipping address state code, max size is 5000.\n\t * @example ```\"A[KLRZ]|C[AOT]|D[CE]|FL\"```\n\t */\n\tstate_code_regex?: string | null\n\t/** \n\t * The regex that will be evaluated as negative match for the shipping address state code, max size is 5000.\n\t * @example ```\"A[KLRZ]|C[AOT]\"```\n\t */\n\tnot_state_code_regex?: string | null\n\t/** \n\t * The regex that will be evaluated to match the shipping address zip code, max size is 5000.\n\t * @example ```\"(?i)(JE1|JE2|JE3|JE4|JE5)\"```\n\t */\n\tzip_code_regex?: string | null\n\t/** \n\t * The regex that will be evaluated as negative match for the shipping zip country code, max size is 5000.\n\t * @example ```\"(?i)(JE1|JE2|JE3)\"```\n\t */\n\tnot_zip_code_regex?: string | null\n\n\tmanual_tax_calculator?: ManualTaxCalculator | null\n\tversions?: Version[] | null\n\tevent_stores?: EventStore[] | null\n\n}\n\n\ninterface TaxRuleCreate extends ResourceCreate {\n\t\n\t/** \n\t * The tax rule internal name.\n\t * @example ```\"Fixed 22%\"```\n\t */\n\tname: string\n\t/** \n\t * The tax rate for this rule.\n\t * @example ```0.22```\n\t */\n\ttax_rate?: number | null\n\t/** \n\t * Indicates if the freight is taxable.\n\t */\n\tfreight_taxable?: boolean | null\n\t/** \n\t * Indicates if the payment method is taxable.\n\t */\n\tpayment_method_taxable?: boolean | null\n\t/** \n\t * Indicates if gift cards are taxable.\n\t */\n\tgift_card_taxable?: boolean | null\n\t/** \n\t * Indicates if adjustemnts are taxable.\n\t */\n\tadjustment_taxable?: boolean | null\n\t/** \n\t * The regex that will be evaluated to match the shipping address country code, max size is 5000.\n\t * @example ```\"AT|BE|BG|CZ|DK|EE|DE|HU|LV|LT\"```\n\t */\n\tcountry_code_regex?: string | null\n\t/** \n\t * The regex that will be evaluated as negative match for the shipping address country code, max size is 5000.\n\t * @example ```\"AT|BE|BG|CZ|DK|EE|DE\"```\n\t */\n\tnot_country_code_regex?: string | null\n\t/** \n\t * The regex that will be evaluated to match the shipping address state code, max size is 5000.\n\t * @example ```\"A[KLRZ]|C[AOT]|D[CE]|FL\"```\n\t */\n\tstate_code_regex?: string | null\n\t/** \n\t * The regex that will be evaluated as negative match for the shipping address state code, max size is 5000.\n\t * @example ```\"A[KLRZ]|C[AOT]\"```\n\t */\n\tnot_state_code_regex?: string | null\n\t/** \n\t * The regex that will be evaluated to match the shipping address zip code, max size is 5000.\n\t * @example ```\"(?i)(JE1|JE2|JE3|JE4|JE5)\"```\n\t */\n\tzip_code_regex?: string | null\n\t/** \n\t * The regex that will be evaluated as negative match for the shipping zip country code, max size is 5000.\n\t * @example ```\"(?i)(JE1|JE2|JE3)\"```\n\t */\n\tnot_zip_code_regex?: string | null\n\n\tmanual_tax_calculator: ManualTaxCalculatorRel\n\n}\n\n\ninterface TaxRuleUpdate extends ResourceUpdate {\n\t\n\t/** \n\t * The tax rule internal name.\n\t * @example ```\"Fixed 22%\"```\n\t */\n\tname?: string | null\n\t/** \n\t * The tax rate for this rule.\n\t * @example ```0.22```\n\t */\n\ttax_rate?: number | null\n\t/** \n\t * Indicates if the freight is taxable.\n\t */\n\tfreight_taxable?: boolean | null\n\t/** \n\t * Indicates if the payment method is taxable.\n\t */\n\tpayment_method_taxable?: boolean | null\n\t/** \n\t * Indicates if gift cards are taxable.\n\t */\n\tgift_card_taxable?: boolean | null\n\t/** \n\t * Indicates if adjustemnts are taxable.\n\t */\n\tadjustment_taxable?: boolean | null\n\t/** \n\t * The regex that will be evaluated to match the shipping address country code, max size is 5000.\n\t * @example ```\"AT|BE|BG|CZ|DK|EE|DE|HU|LV|LT\"```\n\t */\n\tcountry_code_regex?: string | null\n\t/** \n\t * The regex that will be evaluated as negative match for the shipping address country code, max size is 5000.\n\t * @example ```\"AT|BE|BG|CZ|DK|EE|DE\"```\n\t */\n\tnot_country_code_regex?: string | null\n\t/** \n\t * The regex that will be evaluated to match the shipping address state code, max size is 5000.\n\t * @example ```\"A[KLRZ]|C[AOT]|D[CE]|FL\"```\n\t */\n\tstate_code_regex?: string | null\n\t/** \n\t * The regex that will be evaluated as negative match for the shipping address state code, max size is 5000.\n\t * @example ```\"A[KLRZ]|C[AOT]\"```\n\t */\n\tnot_state_code_regex?: string | null\n\t/** \n\t * The regex that will be evaluated to match the shipping address zip code, max size is 5000.\n\t * @example ```\"(?i)(JE1|JE2|JE3|JE4|JE5)\"```\n\t */\n\tzip_code_regex?: string | null\n\t/** \n\t * The regex that will be evaluated as negative match for the shipping zip country code, max size is 5000.\n\t * @example ```\"(?i)(JE1|JE2|JE3)\"```\n\t */\n\tnot_zip_code_regex?: string | null\n\n\tmanual_tax_calculator?: ManualTaxCalculatorRel | null\n\n}\n\n\nclass TaxRules extends ApiResource<TaxRule> {\n\n\tstatic readonly TYPE: TaxRuleType = 'tax_rules' as const\n\n\tasync create(resource: TaxRuleCreate, params?: QueryParamsRetrieve<TaxRule>, options?: ResourcesConfig): Promise<TaxRule> {\n\t\treturn this.resources.create<TaxRuleCreate, TaxRule>({ ...resource, type: TaxRules.TYPE }, params, options)\n\t}\n\n\tasync update(resource: TaxRuleUpdate, params?: QueryParamsRetrieve<TaxRule>, options?: ResourcesConfig): Promise<TaxRule> {\n\t\treturn this.resources.update<TaxRuleUpdate, TaxRule>({ ...resource, type: TaxRules.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: TaxRules.TYPE } : id, options)\n\t}\n\n\tasync manual_tax_calculator(taxRuleId: string | TaxRule, params?: QueryParamsRetrieve<ManualTaxCalculator>, options?: ResourcesConfig): Promise<ManualTaxCalculator> {\n\t\tconst _taxRuleId = (taxRuleId as TaxRule).id || taxRuleId as string\n\t\treturn this.resources.fetch<ManualTaxCalculator>({ type: 'manual_tax_calculators' }, `tax_rules/${_taxRuleId}/manual_tax_calculator`, params, options) as unknown as ManualTaxCalculator\n\t}\n\n\tasync versions(taxRuleId: string | TaxRule, params?: QueryParamsList<Version>, options?: ResourcesConfig): Promise<ListResponse<Version>> {\n\t\tconst _taxRuleId = (taxRuleId as TaxRule).id || taxRuleId as string\n\t\treturn this.resources.fetch<Version>({ type: 'versions' }, `tax_rules/${_taxRuleId}/versions`, params, options) as unknown as ListResponse<Version>\n\t}\n\n\tasync event_stores(taxRuleId: string | TaxRule, params?: QueryParamsList<EventStore>, options?: ResourcesConfig): Promise<ListResponse<EventStore>> {\n\t\tconst _taxRuleId = (taxRuleId as TaxRule).id || taxRuleId as string\n\t\treturn this.resources.fetch<EventStore>({ type: 'event_stores' }, `tax_rules/${_taxRuleId}/event_stores`, params, options) as unknown as ListResponse<EventStore>\n\t}\n\n\n\tisTaxRule(resource: any): resource is TaxRule {\n\t\treturn resource.type && (resource.type === TaxRules.TYPE)\n\t}\n\n\n\trelationship(id: string | ResourceId | null): TaxRuleRel {\n\t\treturn super.relationshipOneToOne<TaxRuleRel>(id)\n\t}\n\n\trelationshipToMany(...ids: string[]): TaxRuleRel[] {\n\t\treturn super.relationshipOneToMany<TaxRuleRel>(...ids)\n\t}\n\n\n\ttype(): TaxRuleType {\n\t\treturn TaxRules.TYPE\n\t}\n\n}\n\n\nconst instance = new TaxRules()\nexport default instance\n\nexport type { TaxRule, TaxRuleCreate, TaxRules, TaxRuleType, TaxRuleUpdate }\n"]}
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var chunkUBH2EC5P_cjs = require('./chunk-UBH2EC5P.cjs');
|
|
4
|
+
|
|
5
|
+
// src/resources/payment_methods.ts
|
|
6
|
+
var PaymentMethods = class _PaymentMethods extends chunkUBH2EC5P_cjs.ApiResource {
|
|
7
|
+
static TYPE = "payment_methods";
|
|
8
|
+
async create(resource, params, options) {
|
|
9
|
+
return this.resources.create({ ...resource, type: _PaymentMethods.TYPE }, params, options);
|
|
10
|
+
}
|
|
11
|
+
async update(resource, params, options) {
|
|
12
|
+
return this.resources.update({ ...resource, type: _PaymentMethods.TYPE }, params, options);
|
|
13
|
+
}
|
|
14
|
+
async delete(id, options) {
|
|
15
|
+
await this.resources.delete(typeof id === "string" ? { id, type: _PaymentMethods.TYPE } : id, options);
|
|
16
|
+
}
|
|
17
|
+
async market(paymentMethodId, params, options) {
|
|
18
|
+
const _paymentMethodId = paymentMethodId.id || paymentMethodId;
|
|
19
|
+
return this.resources.fetch({ type: "markets" }, `payment_methods/${_paymentMethodId}/market`, params, options);
|
|
20
|
+
}
|
|
21
|
+
async payment_gateway(paymentMethodId, params, options) {
|
|
22
|
+
const _paymentMethodId = paymentMethodId.id || paymentMethodId;
|
|
23
|
+
return this.resources.fetch({ type: "payment_gateways" }, `payment_methods/${_paymentMethodId}/payment_gateway`, params, options);
|
|
24
|
+
}
|
|
25
|
+
async store(paymentMethodId, params, options) {
|
|
26
|
+
const _paymentMethodId = paymentMethodId.id || paymentMethodId;
|
|
27
|
+
return this.resources.fetch({ type: "stores" }, `payment_methods/${_paymentMethodId}/store`, params, options);
|
|
28
|
+
}
|
|
29
|
+
async attachments(paymentMethodId, params, options) {
|
|
30
|
+
const _paymentMethodId = paymentMethodId.id || paymentMethodId;
|
|
31
|
+
return this.resources.fetch({ type: "attachments" }, `payment_methods/${_paymentMethodId}/attachments`, params, options);
|
|
32
|
+
}
|
|
33
|
+
async versions(paymentMethodId, params, options) {
|
|
34
|
+
const _paymentMethodId = paymentMethodId.id || paymentMethodId;
|
|
35
|
+
return this.resources.fetch({ type: "versions" }, `payment_methods/${_paymentMethodId}/versions`, params, options);
|
|
36
|
+
}
|
|
37
|
+
async event_stores(paymentMethodId, params, options) {
|
|
38
|
+
const _paymentMethodId = paymentMethodId.id || paymentMethodId;
|
|
39
|
+
return this.resources.fetch({ type: "event_stores" }, `payment_methods/${_paymentMethodId}/event_stores`, params, options);
|
|
40
|
+
}
|
|
41
|
+
async _disable(id, params, options) {
|
|
42
|
+
return this.resources.update({ id: typeof id === "string" ? id : id.id, type: _PaymentMethods.TYPE, _disable: true }, params, options);
|
|
43
|
+
}
|
|
44
|
+
async _enable(id, params, options) {
|
|
45
|
+
return this.resources.update({ id: typeof id === "string" ? id : id.id, type: _PaymentMethods.TYPE, _enable: true }, params, options);
|
|
46
|
+
}
|
|
47
|
+
isPaymentMethod(resource) {
|
|
48
|
+
return resource.type && resource.type === _PaymentMethods.TYPE;
|
|
49
|
+
}
|
|
50
|
+
relationship(id) {
|
|
51
|
+
return super.relationshipOneToOne(id);
|
|
52
|
+
}
|
|
53
|
+
relationshipToMany(...ids) {
|
|
54
|
+
return super.relationshipOneToMany(...ids);
|
|
55
|
+
}
|
|
56
|
+
type() {
|
|
57
|
+
return _PaymentMethods.TYPE;
|
|
58
|
+
}
|
|
59
|
+
};
|
|
60
|
+
var instance = new PaymentMethods();
|
|
61
|
+
var payment_methods_default = instance;
|
|
62
|
+
|
|
63
|
+
exports.payment_methods_default = payment_methods_default;
|
|
64
|
+
//# sourceMappingURL=chunk-OUZO3UT3.cjs.map
|
|
65
|
+
//# sourceMappingURL=chunk-OUZO3UT3.cjs.map
|