@commercelayer/sdk 7.0.0-rc.3 → 7.0.0-rc.5
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/README.md +2 -1
- package/lib/{api-DDgIE2i8.d.ts → api-F1F37Dud.d.ts} +27 -8
- package/lib/{api-DmIZO_Np.d.cts → api-IwWtsAqE.d.cts} +27 -8
- package/lib/api.cjs +397 -521
- package/lib/api.cjs.map +1 -1
- package/lib/api.d.cts +1 -1
- package/lib/api.d.ts +1 -1
- package/lib/api.js +141 -131
- package/lib/api.js.map +1 -1
- package/lib/bundle.cjs +689 -0
- package/lib/bundle.cjs.map +1 -0
- package/lib/bundle.d.cts +145 -0
- package/lib/bundle.d.ts +145 -0
- package/lib/bundle.js +687 -0
- package/lib/bundle.js.map +1 -0
- package/lib/chunk-227VGGA2.cjs +47 -0
- package/lib/chunk-227VGGA2.cjs.map +1 -0
- package/lib/chunk-24QWQZWL.cjs +51 -0
- package/lib/chunk-24QWQZWL.cjs.map +1 -0
- package/lib/chunk-267DJ4MS.js +49 -0
- package/lib/chunk-267DJ4MS.js.map +1 -0
- package/lib/chunk-26A7O7WA.cjs +55 -0
- package/lib/chunk-26A7O7WA.cjs.map +1 -0
- package/lib/chunk-27XEREH6.cjs +46 -0
- package/lib/chunk-27XEREH6.cjs.map +1 -0
- package/lib/chunk-2BM2HCOW.js +40 -0
- package/lib/chunk-2BM2HCOW.js.map +1 -0
- package/lib/chunk-2E7PSICR.cjs +47 -0
- package/lib/chunk-2E7PSICR.cjs.map +1 -0
- package/lib/chunk-2RBF6QOC.cjs +53 -0
- package/lib/chunk-2RBF6QOC.cjs.map +1 -0
- package/lib/chunk-2TIOMQ3F.js +27 -0
- package/lib/chunk-2TIOMQ3F.js.map +1 -0
- package/lib/chunk-2VBIYZJ5.cjs +39 -0
- package/lib/chunk-2VBIYZJ5.cjs.map +1 -0
- package/lib/chunk-2YMDVSY6.cjs +95 -0
- package/lib/chunk-2YMDVSY6.cjs.map +1 -0
- package/lib/chunk-32FLT6EU.cjs +42 -0
- package/lib/chunk-32FLT6EU.cjs.map +1 -0
- package/lib/chunk-37S6ZTHC.cjs +38 -0
- package/lib/chunk-37S6ZTHC.cjs.map +1 -0
- package/lib/chunk-3AWJFCM6.js +33 -0
- package/lib/chunk-3AWJFCM6.js.map +1 -0
- package/lib/chunk-3EX76AZW.js +3 -0
- package/lib/chunk-3EX76AZW.js.map +1 -0
- package/lib/chunk-3SJEK6QW.cjs +47 -0
- package/lib/chunk-3SJEK6QW.cjs.map +1 -0
- package/lib/chunk-3XWRLB2B.js +44 -0
- package/lib/chunk-3XWRLB2B.js.map +1 -0
- package/lib/chunk-3XZDDKD7.js +52 -0
- package/lib/chunk-3XZDDKD7.js.map +1 -0
- package/lib/chunk-4E5DMBYD.js +27 -0
- package/lib/chunk-4E5DMBYD.js.map +1 -0
- package/lib/chunk-4FIUTSQX.cjs +50 -0
- package/lib/chunk-4FIUTSQX.cjs.map +1 -0
- package/lib/chunk-4IUCSBQJ.cjs +39 -0
- package/lib/chunk-4IUCSBQJ.cjs.map +1 -0
- package/lib/chunk-4YEJIBQ5.cjs +66 -0
- package/lib/chunk-4YEJIBQ5.cjs.map +1 -0
- package/lib/chunk-4YNKD3VT.cjs +51 -0
- package/lib/chunk-4YNKD3VT.cjs.map +1 -0
- package/lib/chunk-54CK7T4R.cjs +34 -0
- package/lib/chunk-54CK7T4R.cjs.map +1 -0
- package/lib/chunk-5DI3O5RJ.cjs +126 -0
- package/lib/chunk-5DI3O5RJ.cjs.map +1 -0
- package/lib/chunk-5DWYCGHP.cjs +47 -0
- package/lib/chunk-5DWYCGHP.cjs.map +1 -0
- package/lib/chunk-5JUWNHQ5.js +59 -0
- package/lib/chunk-5JUWNHQ5.js.map +1 -0
- package/lib/chunk-5NWRLZGC.js +49 -0
- package/lib/chunk-5NWRLZGC.js.map +1 -0
- package/lib/chunk-5PV4P3JM.js +61 -0
- package/lib/chunk-5PV4P3JM.js.map +1 -0
- package/lib/chunk-5RKGQCKX.js +105 -0
- package/lib/chunk-5RKGQCKX.js.map +1 -0
- package/lib/chunk-5YMHXTJG.cjs +4 -0
- package/lib/chunk-5YMHXTJG.cjs.map +1 -0
- package/lib/chunk-6HZYZZJ7.cjs +110 -0
- package/lib/chunk-6HZYZZJ7.cjs.map +1 -0
- package/lib/chunk-6RKVARIW.cjs +63 -0
- package/lib/chunk-6RKVARIW.cjs.map +1 -0
- package/lib/chunk-6T2NL26W.cjs +47 -0
- package/lib/chunk-6T2NL26W.cjs.map +1 -0
- package/lib/chunk-6XSQFXZG.js +48 -0
- package/lib/chunk-6XSQFXZG.js.map +1 -0
- package/lib/chunk-75Z4NSV3.js +48 -0
- package/lib/chunk-75Z4NSV3.js.map +1 -0
- package/lib/chunk-76KPAY2S.cjs +34 -0
- package/lib/chunk-76KPAY2S.cjs.map +1 -0
- package/lib/chunk-77TSOEKD.cjs +38 -0
- package/lib/chunk-77TSOEKD.cjs.map +1 -0
- package/lib/chunk-7ECXQJP2.cjs +42 -0
- package/lib/chunk-7ECXQJP2.cjs.map +1 -0
- package/lib/chunk-7FLESQUJ.js +55 -0
- package/lib/chunk-7FLESQUJ.js.map +1 -0
- package/lib/chunk-7FO2TNRH.js +45 -0
- package/lib/chunk-7FO2TNRH.js.map +1 -0
- package/lib/chunk-7JXR2VV3.cjs +47 -0
- package/lib/chunk-7JXR2VV3.cjs.map +1 -0
- package/lib/chunk-7KJ2OKSK.cjs +59 -0
- package/lib/chunk-7KJ2OKSK.cjs.map +1 -0
- package/lib/chunk-7KU4M5DS.cjs +57 -0
- package/lib/chunk-7KU4M5DS.cjs.map +1 -0
- package/lib/chunk-7PE6JN7I.js +48 -0
- package/lib/chunk-7PE6JN7I.js.map +1 -0
- package/lib/chunk-7RRTHZZC.cjs +75 -0
- package/lib/chunk-7RRTHZZC.cjs.map +1 -0
- package/lib/chunk-7TNL5VT5.js +38 -0
- package/lib/chunk-7TNL5VT5.js.map +1 -0
- package/lib/chunk-7UH4JAMB.js +54 -0
- package/lib/chunk-7UH4JAMB.js.map +1 -0
- package/lib/chunk-7ZCJTSYR.js +48 -0
- package/lib/chunk-7ZCJTSYR.js.map +1 -0
- package/lib/chunk-7ZGZN42S.cjs +30 -0
- package/lib/chunk-7ZGZN42S.cjs.map +1 -0
- package/lib/chunk-A2RAUGGE.js +93 -0
- package/lib/chunk-A2RAUGGE.js.map +1 -0
- package/lib/chunk-ACTS2OQX.cjs +95 -0
- package/lib/chunk-ACTS2OQX.cjs.map +1 -0
- package/lib/chunk-AHIMATNV.cjs +61 -0
- package/lib/chunk-AHIMATNV.cjs.map +1 -0
- package/lib/chunk-AIXOGHCK.cjs +51 -0
- package/lib/chunk-AIXOGHCK.cjs.map +1 -0
- package/lib/chunk-AKL5XTMU.cjs +85 -0
- package/lib/chunk-AKL5XTMU.cjs.map +1 -0
- package/lib/chunk-ANSRMBAE.cjs +42 -0
- package/lib/chunk-ANSRMBAE.cjs.map +1 -0
- package/lib/chunk-AOD4FQNI.cjs +47 -0
- package/lib/chunk-AOD4FQNI.cjs.map +1 -0
- package/lib/chunk-APIZA2AG.cjs +47 -0
- package/lib/chunk-APIZA2AG.cjs.map +1 -0
- package/lib/chunk-AU5NYIYK.js +36 -0
- package/lib/chunk-AU5NYIYK.js.map +1 -0
- package/lib/chunk-AV47JRSS.js +44 -0
- package/lib/chunk-AV47JRSS.js.map +1 -0
- package/lib/chunk-AX2EM527.js +37 -0
- package/lib/chunk-AX2EM527.js.map +1 -0
- package/lib/chunk-AYTBSAHY.js +20 -0
- package/lib/chunk-AYTBSAHY.js.map +1 -0
- package/lib/chunk-BCUQHA7L.js +45 -0
- package/lib/chunk-BCUQHA7L.js.map +1 -0
- package/lib/chunk-BHR6XP7Y.js +36 -0
- package/lib/chunk-BHR6XP7Y.js.map +1 -0
- package/lib/chunk-BNK4C2OU.cjs +84 -0
- package/lib/chunk-BNK4C2OU.cjs.map +1 -0
- package/lib/chunk-BPKDEM3O.cjs +47 -0
- package/lib/chunk-BPKDEM3O.cjs.map +1 -0
- package/lib/chunk-BVDBKLNZ.cjs +47 -0
- package/lib/chunk-BVDBKLNZ.cjs.map +1 -0
- package/lib/chunk-BW5JTJIL.cjs +47 -0
- package/lib/chunk-BW5JTJIL.cjs.map +1 -0
- package/lib/chunk-BZKSL26S.js +53 -0
- package/lib/chunk-BZKSL26S.js.map +1 -0
- package/lib/chunk-BZVA4RAA.cjs +47 -0
- package/lib/chunk-BZVA4RAA.cjs.map +1 -0
- package/lib/chunk-C3BQCKAK.cjs +43 -0
- package/lib/chunk-C3BQCKAK.cjs.map +1 -0
- package/lib/chunk-C4M7LJ7I.cjs +68 -0
- package/lib/chunk-C4M7LJ7I.cjs.map +1 -0
- package/lib/chunk-CHYP5F26.js +59 -0
- package/lib/chunk-CHYP5F26.js.map +1 -0
- package/lib/chunk-CS2C7ZYR.cjs +660 -0
- package/lib/chunk-CS2C7ZYR.cjs.map +1 -0
- package/lib/chunk-CUS55PHR.cjs +43 -0
- package/lib/chunk-CUS55PHR.cjs.map +1 -0
- package/lib/chunk-CXZQVDNF.js +45 -0
- package/lib/chunk-CXZQVDNF.js.map +1 -0
- package/lib/chunk-DAAWFJS2.js +45 -0
- package/lib/chunk-DAAWFJS2.js.map +1 -0
- package/lib/chunk-DAS7YWSF.cjs +156 -0
- package/lib/chunk-DAS7YWSF.cjs.map +1 -0
- package/lib/chunk-DBNYBJ5C.cjs +51 -0
- package/lib/chunk-DBNYBJ5C.cjs.map +1 -0
- package/lib/chunk-DF2BVTTZ.cjs +43 -0
- package/lib/chunk-DF2BVTTZ.cjs.map +1 -0
- package/lib/chunk-DGUM43GV.js +10 -0
- package/lib/chunk-DGUM43GV.js.map +1 -0
- package/lib/chunk-DP4RFJ2I.cjs +68 -0
- package/lib/chunk-DP4RFJ2I.cjs.map +1 -0
- package/lib/chunk-DX4DDLBS.js +83 -0
- package/lib/chunk-DX4DDLBS.js.map +1 -0
- package/lib/chunk-E2YLM3RR.js +51 -0
- package/lib/chunk-E2YLM3RR.js.map +1 -0
- package/lib/chunk-E4B3ANB5.js +93 -0
- package/lib/chunk-E4B3ANB5.js.map +1 -0
- package/lib/chunk-E4VBPMFD.js +73 -0
- package/lib/chunk-E4VBPMFD.js.map +1 -0
- package/lib/chunk-EBKU6FT5.js +103 -0
- package/lib/chunk-EBKU6FT5.js.map +1 -0
- package/lib/chunk-ECTCGSXW.js +40 -0
- package/lib/chunk-ECTCGSXW.js.map +1 -0
- package/lib/chunk-EGSJ6YKA.js +44 -0
- package/lib/chunk-EGSJ6YKA.js.map +1 -0
- package/lib/chunk-EMO3ZC2O.js +45 -0
- package/lib/chunk-EMO3ZC2O.js.map +1 -0
- package/lib/chunk-ERBAOD7L.cjs +47 -0
- package/lib/chunk-ERBAOD7L.cjs.map +1 -0
- package/lib/chunk-EXPAMTHI.js +68 -0
- package/lib/chunk-EXPAMTHI.js.map +1 -0
- package/lib/chunk-F7PE7QO2.cjs +29 -0
- package/lib/chunk-F7PE7QO2.cjs.map +1 -0
- package/lib/chunk-FBIUMJFR.js +75 -0
- package/lib/chunk-FBIUMJFR.js.map +1 -0
- package/lib/chunk-FBUFUXLX.js +99 -0
- package/lib/chunk-FBUFUXLX.js.map +1 -0
- package/lib/chunk-FG4NTGK6.js +41 -0
- package/lib/chunk-FG4NTGK6.js.map +1 -0
- package/lib/chunk-FGNIX3MU.cjs +47 -0
- package/lib/chunk-FGNIX3MU.cjs.map +1 -0
- package/lib/chunk-FIXXXEQQ.cjs +43 -0
- package/lib/chunk-FIXXXEQQ.cjs.map +1 -0
- package/lib/chunk-FKIGOMPV.js +41 -0
- package/lib/chunk-FKIGOMPV.js.map +1 -0
- package/lib/chunk-FKYM2RDC.cjs +46 -0
- package/lib/chunk-FKYM2RDC.cjs.map +1 -0
- package/lib/chunk-FMHMXRK5.js +49 -0
- package/lib/chunk-FMHMXRK5.js.map +1 -0
- package/lib/chunk-FN45EIWJ.cjs +75 -0
- package/lib/chunk-FN45EIWJ.cjs.map +1 -0
- package/lib/chunk-FYJO5RU5.js +33 -0
- package/lib/chunk-FYJO5RU5.js.map +1 -0
- package/lib/chunk-FZBFCMQZ.cjs +51 -0
- package/lib/chunk-FZBFCMQZ.cjs.map +1 -0
- package/lib/chunk-G2V76FJE.js +43 -0
- package/lib/chunk-G2V76FJE.js.map +1 -0
- package/lib/chunk-G6WGGNBM.cjs +26 -0
- package/lib/chunk-G6WGGNBM.cjs.map +1 -0
- package/lib/chunk-GMECYB3A.js +24 -0
- package/lib/chunk-GMECYB3A.js.map +1 -0
- package/lib/chunk-GRKFJOVR.js +154 -0
- package/lib/chunk-GRKFJOVR.js.map +1 -0
- package/lib/chunk-GTYAKU2E.cjs +29 -0
- package/lib/chunk-GTYAKU2E.cjs.map +1 -0
- package/lib/chunk-GTYSDD6X.js +37 -0
- package/lib/chunk-GTYSDD6X.js.map +1 -0
- package/lib/chunk-GZ6PQ7EP.cjs +65 -0
- package/lib/chunk-GZ6PQ7EP.cjs.map +1 -0
- package/lib/chunk-H4MXQKQI.cjs +47 -0
- package/lib/chunk-H4MXQKQI.cjs.map +1 -0
- package/lib/chunk-H4SVEI6E.js +151 -0
- package/lib/chunk-H4SVEI6E.js.map +1 -0
- package/lib/chunk-H7ZT6QLT.cjs +47 -0
- package/lib/chunk-H7ZT6QLT.cjs.map +1 -0
- package/lib/chunk-HBEUVQK5.js +87 -0
- package/lib/chunk-HBEUVQK5.js.map +1 -0
- package/lib/chunk-HBRJBDHB.cjs +50 -0
- package/lib/chunk-HBRJBDHB.cjs.map +1 -0
- package/lib/chunk-HHUXVDBF.js +37 -0
- package/lib/chunk-HHUXVDBF.js.map +1 -0
- package/lib/chunk-HIUMWBCO.cjs +86 -0
- package/lib/chunk-HIUMWBCO.cjs.map +1 -0
- package/lib/chunk-HLXVKH3U.js +53 -0
- package/lib/chunk-HLXVKH3U.js.map +1 -0
- package/lib/chunk-HM7D3KXS.js +644 -0
- package/lib/chunk-HM7D3KXS.js.map +1 -0
- package/lib/chunk-HMIISZ5U.js +59 -0
- package/lib/chunk-HMIISZ5U.js.map +1 -0
- package/lib/chunk-HMVRDAEV.js +48 -0
- package/lib/chunk-HMVRDAEV.js.map +1 -0
- package/lib/chunk-HR2AUHMN.cjs +101 -0
- package/lib/chunk-HR2AUHMN.cjs.map +1 -0
- package/lib/chunk-I3LB2N5Z.js +45 -0
- package/lib/chunk-I3LB2N5Z.js.map +1 -0
- package/lib/chunk-I3RBJRZV.js +45 -0
- package/lib/chunk-I3RBJRZV.js.map +1 -0
- package/lib/chunk-IDNK372S.js +52 -0
- package/lib/chunk-IDNK372S.js.map +1 -0
- package/lib/chunk-IFAZBYOS.cjs +45 -0
- package/lib/chunk-IFAZBYOS.cjs.map +1 -0
- package/lib/chunk-IGOQEXAJ.cjs +35 -0
- package/lib/chunk-IGOQEXAJ.cjs.map +1 -0
- package/lib/chunk-IKHD5UQP.cjs +163 -0
- package/lib/chunk-IKHD5UQP.cjs.map +1 -0
- package/lib/chunk-IMKKKS3E.js +44 -0
- package/lib/chunk-IMKKKS3E.js.map +1 -0
- package/lib/chunk-IU7GTZZ2.cjs +51 -0
- package/lib/chunk-IU7GTZZ2.cjs.map +1 -0
- package/lib/chunk-IWRJZHIZ.js +41 -0
- package/lib/chunk-IWRJZHIZ.js.map +1 -0
- package/lib/chunk-IYCV54XR.cjs +51 -0
- package/lib/chunk-IYCV54XR.cjs.map +1 -0
- package/lib/chunk-IZXPVIGP.js +67 -0
- package/lib/chunk-IZXPVIGP.js.map +1 -0
- package/lib/chunk-J7Z7GIWP.cjs +95 -0
- package/lib/chunk-J7Z7GIWP.cjs.map +1 -0
- package/lib/chunk-JDXVL7EK.cjs +26 -0
- package/lib/chunk-JDXVL7EK.cjs.map +1 -0
- package/lib/chunk-JEQ2X3Z6.cjs +12 -0
- package/lib/chunk-JEQ2X3Z6.cjs.map +1 -0
- package/lib/chunk-JGKX4WVT.cjs +56 -0
- package/lib/chunk-JGKX4WVT.cjs.map +1 -0
- package/lib/chunk-JIJYTTWF.js +45 -0
- package/lib/chunk-JIJYTTWF.js.map +1 -0
- package/lib/chunk-JOVN55GM.js +93 -0
- package/lib/chunk-JOVN55GM.js.map +1 -0
- package/lib/chunk-JSRPPOQC.js +24 -0
- package/lib/chunk-JSRPPOQC.js.map +1 -0
- package/lib/chunk-JVF5KY2J.cjs +22 -0
- package/lib/chunk-JVF5KY2J.cjs.map +1 -0
- package/lib/chunk-JWB7A2P7.cjs +101 -0
- package/lib/chunk-JWB7A2P7.cjs.map +1 -0
- package/lib/chunk-JWO5TMOF.cjs +50 -0
- package/lib/chunk-JWO5TMOF.cjs.map +1 -0
- package/lib/chunk-JY75GB6J.js +45 -0
- package/lib/chunk-JY75GB6J.js.map +1 -0
- package/lib/chunk-JYVDZNYF.cjs +53 -0
- package/lib/chunk-JYVDZNYF.cjs.map +1 -0
- package/lib/chunk-K23MEZLJ.js +45 -0
- package/lib/chunk-K23MEZLJ.js.map +1 -0
- package/lib/chunk-K3QWUNID.cjs +105 -0
- package/lib/chunk-K3QWUNID.cjs.map +1 -0
- package/lib/chunk-K4TU3W2I.cjs +89 -0
- package/lib/chunk-K4TU3W2I.cjs.map +1 -0
- package/lib/chunk-K5M43K4M.js +28 -0
- package/lib/chunk-K5M43K4M.js.map +1 -0
- package/lib/chunk-KE2LKPT2.cjs +282 -0
- package/lib/chunk-KE2LKPT2.cjs.map +1 -0
- package/lib/chunk-KJEWYPKL.js +50 -0
- package/lib/chunk-KJEWYPKL.js.map +1 -0
- package/lib/chunk-KJZPFUCB.js +66 -0
- package/lib/chunk-KJZPFUCB.js.map +1 -0
- package/lib/chunk-KOJCFM4J.js +32 -0
- package/lib/chunk-KOJCFM4J.js.map +1 -0
- package/lib/chunk-KZVXL7XT.js +49 -0
- package/lib/chunk-KZVXL7XT.js.map +1 -0
- package/lib/chunk-L3MQUI2T.js +66 -0
- package/lib/chunk-L3MQUI2T.js.map +1 -0
- package/lib/chunk-LEBNVRZK.js +45 -0
- package/lib/chunk-LEBNVRZK.js.map +1 -0
- package/lib/chunk-LIHR6VSF.js +45 -0
- package/lib/chunk-LIHR6VSF.js.map +1 -0
- package/lib/chunk-LIXIL2W7.js +45 -0
- package/lib/chunk-LIXIL2W7.js.map +1 -0
- package/lib/chunk-LORMBCWI.cjs +77 -0
- package/lib/chunk-LORMBCWI.cjs.map +1 -0
- package/lib/chunk-LURXD472.cjs +54 -0
- package/lib/chunk-LURXD472.cjs.map +1 -0
- package/lib/chunk-LVNRKSSK.js +45 -0
- package/lib/chunk-LVNRKSSK.js.map +1 -0
- package/lib/chunk-M7VMF7DL.cjs +53 -0
- package/lib/chunk-M7VMF7DL.cjs.map +1 -0
- package/lib/chunk-MB2XHINV.cjs +42 -0
- package/lib/chunk-MB2XHINV.cjs.map +1 -0
- package/lib/chunk-MHZVSLOZ.js +69 -0
- package/lib/chunk-MHZVSLOZ.js.map +1 -0
- package/lib/chunk-MKYGCFFQ.cjs +55 -0
- package/lib/chunk-MKYGCFFQ.cjs.map +1 -0
- package/lib/chunk-MSW4UY65.cjs +50 -0
- package/lib/chunk-MSW4UY65.cjs.map +1 -0
- package/lib/chunk-MT62MFPF.js +84 -0
- package/lib/chunk-MT62MFPF.js.map +1 -0
- package/lib/chunk-MUGXSQGM.cjs +47 -0
- package/lib/chunk-MUGXSQGM.cjs.map +1 -0
- package/lib/chunk-N4AVJLPU.cjs +43 -0
- package/lib/chunk-N4AVJLPU.cjs.map +1 -0
- package/lib/chunk-N753UD4K.cjs +22 -0
- package/lib/chunk-N753UD4K.cjs.map +1 -0
- package/lib/chunk-N7GFZRXD.js +82 -0
- package/lib/chunk-N7GFZRXD.js.map +1 -0
- package/lib/chunk-N7PW3QAD.js +49 -0
- package/lib/chunk-N7PW3QAD.js.map +1 -0
- package/lib/chunk-NADXAHTL.js +49 -0
- package/lib/chunk-NADXAHTL.js.map +1 -0
- package/lib/chunk-NAJ5XC7F.cjs +47 -0
- package/lib/chunk-NAJ5XC7F.cjs.map +1 -0
- package/lib/chunk-NCKKWNLW.js +59 -0
- package/lib/chunk-NCKKWNLW.js.map +1 -0
- package/lib/chunk-NE24VBE2.js +55 -0
- package/lib/chunk-NE24VBE2.js.map +1 -0
- package/lib/chunk-NLEKIRTR.js +45 -0
- package/lib/chunk-NLEKIRTR.js.map +1 -0
- package/lib/chunk-NNQNIEWL.js +99 -0
- package/lib/chunk-NNQNIEWL.js.map +1 -0
- package/lib/chunk-NR2UE6JA.cjs +47 -0
- package/lib/chunk-NR2UE6JA.cjs.map +1 -0
- package/lib/chunk-NUYUBR2T.js +40 -0
- package/lib/chunk-NUYUBR2T.js.map +1 -0
- package/lib/chunk-NVWV2DB7.js +41 -0
- package/lib/chunk-NVWV2DB7.js.map +1 -0
- package/lib/chunk-O5PJZWBH.js +93 -0
- package/lib/chunk-O5PJZWBH.js.map +1 -0
- package/lib/chunk-O7BKHNXP.cjs +46 -0
- package/lib/chunk-O7BKHNXP.cjs.map +1 -0
- package/lib/chunk-OAVJPQOW.js +61 -0
- package/lib/chunk-OAVJPQOW.js.map +1 -0
- package/lib/chunk-OBUF6TTM.cjs +39 -0
- package/lib/chunk-OBUF6TTM.cjs.map +1 -0
- package/lib/chunk-OER5YD2H.js +50 -0
- package/lib/chunk-OER5YD2H.js.map +1 -0
- package/lib/chunk-OF35HBQQ.js +280 -0
- package/lib/chunk-OF35HBQQ.js.map +1 -0
- package/lib/chunk-OFLCORLR.cjs +51 -0
- package/lib/chunk-OFLCORLR.cjs.map +1 -0
- package/lib/chunk-OIZGUEIJ.js +48 -0
- package/lib/chunk-OIZGUEIJ.js.map +1 -0
- package/lib/chunk-OKHXQNDT.js +36 -0
- package/lib/chunk-OKHXQNDT.js.map +1 -0
- package/lib/chunk-OPBVUQV2.js +51 -0
- package/lib/chunk-OPBVUQV2.js.map +1 -0
- package/lib/chunk-P4M5UAZM.js +45 -0
- package/lib/chunk-P4M5UAZM.js.map +1 -0
- package/lib/chunk-P5V4XO4C.js +41 -0
- package/lib/chunk-P5V4XO4C.js.map +1 -0
- package/lib/chunk-P6STDLMB.cjs +52 -0
- package/lib/chunk-P6STDLMB.cjs.map +1 -0
- package/lib/chunk-PBZHKR34.cjs +63 -0
- package/lib/chunk-PBZHKR34.cjs.map +1 -0
- package/lib/chunk-PJ55VLJG.cjs +54 -0
- package/lib/chunk-PJ55VLJG.cjs.map +1 -0
- package/lib/chunk-PMKK6RAV.js +64 -0
- package/lib/chunk-PMKK6RAV.js.map +1 -0
- package/lib/chunk-PQE6TCTR.js +124 -0
- package/lib/chunk-PQE6TCTR.js.map +1 -0
- package/lib/chunk-PQVYOUBP.cjs +43 -0
- package/lib/chunk-PQVYOUBP.cjs.map +1 -0
- package/lib/chunk-PYFJA7OD.cjs +50 -0
- package/lib/chunk-PYFJA7OD.cjs.map +1 -0
- package/lib/chunk-Q2J67HA3.cjs +38 -0
- package/lib/chunk-Q2J67HA3.cjs.map +1 -0
- package/lib/chunk-Q5XVEESL.cjs +61 -0
- package/lib/chunk-Q5XVEESL.cjs.map +1 -0
- package/lib/chunk-Q64YHPFK.cjs +47 -0
- package/lib/chunk-Q64YHPFK.cjs.map +1 -0
- package/lib/chunk-Q7PILATE.cjs +38 -0
- package/lib/chunk-Q7PILATE.cjs.map +1 -0
- package/lib/chunk-QAQU6OIM.js +49 -0
- package/lib/chunk-QAQU6OIM.js.map +1 -0
- package/lib/chunk-QFXJXWXT.js +55 -0
- package/lib/chunk-QFXJXWXT.js.map +1 -0
- package/lib/chunk-QIUMAA5U.cjs +95 -0
- package/lib/chunk-QIUMAA5U.cjs.map +1 -0
- package/lib/chunk-QJYTWO2A.js +57 -0
- package/lib/chunk-QJYTWO2A.js.map +1 -0
- package/lib/chunk-QMDQ73MJ.cjs +61 -0
- package/lib/chunk-QMDQ73MJ.cjs.map +1 -0
- package/lib/chunk-QQOJXI6Z.cjs +51 -0
- package/lib/chunk-QQOJXI6Z.cjs.map +1 -0
- package/lib/chunk-QSX5V6NO.js +36 -0
- package/lib/chunk-QSX5V6NO.js.map +1 -0
- package/lib/chunk-QT3SZ2S3.cjs +50 -0
- package/lib/chunk-QT3SZ2S3.cjs.map +1 -0
- package/lib/chunk-QT6CTYDI.js +41 -0
- package/lib/chunk-QT6CTYDI.js.map +1 -0
- package/lib/chunk-QWTTKALU.cjs +40 -0
- package/lib/chunk-QWTTKALU.cjs.map +1 -0
- package/lib/chunk-QZESYVCV.cjs +52 -0
- package/lib/chunk-QZESYVCV.cjs.map +1 -0
- package/lib/chunk-R2LRLUUY.js +35 -0
- package/lib/chunk-R2LRLUUY.js.map +1 -0
- package/lib/chunk-R6D4PVKX.cjs +35 -0
- package/lib/chunk-R6D4PVKX.cjs.map +1 -0
- package/lib/chunk-R6RTXRXP.js +89 -0
- package/lib/chunk-R6RTXRXP.js.map +1 -0
- package/lib/chunk-RIMHFMLM.js +28 -0
- package/lib/chunk-RIMHFMLM.js.map +1 -0
- package/lib/chunk-RLZUBO2G.cjs +51 -0
- package/lib/chunk-RLZUBO2G.cjs.map +1 -0
- package/lib/chunk-RRO546HE.js +45 -0
- package/lib/chunk-RRO546HE.js.map +1 -0
- package/lib/chunk-RS3CY7RY.js +53 -0
- package/lib/chunk-RS3CY7RY.js.map +1 -0
- package/lib/chunk-RT5FL7XE.js +41 -0
- package/lib/chunk-RT5FL7XE.js.map +1 -0
- package/lib/chunk-S6YAGIA2.cjs +43 -0
- package/lib/chunk-S6YAGIA2.cjs.map +1 -0
- package/lib/chunk-SJKKZJFB.js +45 -0
- package/lib/chunk-SJKKZJFB.js.map +1 -0
- package/lib/chunk-SM2NGL5E.js +45 -0
- package/lib/chunk-SM2NGL5E.js.map +1 -0
- package/lib/chunk-SPG7F6W2.cjs +55 -0
- package/lib/chunk-SPG7F6W2.cjs.map +1 -0
- package/lib/chunk-SRW7OWVS.cjs +40 -0
- package/lib/chunk-SRW7OWVS.cjs.map +1 -0
- package/lib/chunk-SZW75RX5.js +93 -0
- package/lib/chunk-SZW75RX5.js.map +1 -0
- package/lib/chunk-T4SIZV7L.cjs +57 -0
- package/lib/chunk-T4SIZV7L.cjs.map +1 -0
- package/lib/chunk-T52QAZNX.cjs +35 -0
- package/lib/chunk-T52QAZNX.cjs.map +1 -0
- package/lib/chunk-TBRWZGNA.js +45 -0
- package/lib/chunk-TBRWZGNA.js.map +1 -0
- package/lib/chunk-TDK6MSPY.js +45 -0
- package/lib/chunk-TDK6MSPY.js.map +1 -0
- package/lib/chunk-TQ5EVIGW.js +49 -0
- package/lib/chunk-TQ5EVIGW.js.map +1 -0
- package/lib/chunk-U2PEG3HM.js +45 -0
- package/lib/chunk-U2PEG3HM.js.map +1 -0
- package/lib/chunk-U7IZGAMR.js +49 -0
- package/lib/chunk-U7IZGAMR.js.map +1 -0
- package/lib/chunk-UBFCVEI3.js +45 -0
- package/lib/chunk-UBFCVEI3.js.map +1 -0
- package/lib/chunk-UDHY2MB5.cjs +51 -0
- package/lib/chunk-UDHY2MB5.cjs.map +1 -0
- package/lib/chunk-UN7V5GMB.cjs +91 -0
- package/lib/chunk-UN7V5GMB.cjs.map +1 -0
- package/lib/chunk-UOBOW5IB.js +45 -0
- package/lib/chunk-UOBOW5IB.js.map +1 -0
- package/lib/chunk-UOUMLS42.cjs +47 -0
- package/lib/chunk-UOUMLS42.cjs.map +1 -0
- package/lib/chunk-UPT6VVOV.cjs +98 -0
- package/lib/chunk-UPT6VVOV.cjs.map +1 -0
- package/lib/chunk-UR4EQ5TD.cjs +95 -0
- package/lib/chunk-UR4EQ5TD.cjs.map +1 -0
- package/lib/chunk-URXE6C3U.js +60 -0
- package/lib/chunk-URXE6C3U.js.map +1 -0
- package/lib/chunk-VB2QSU5M.cjs +69 -0
- package/lib/chunk-VB2QSU5M.cjs.map +1 -0
- package/lib/chunk-VD236VYU.cjs +47 -0
- package/lib/chunk-VD236VYU.cjs.map +1 -0
- package/lib/chunk-VKEYQUCF.js +36 -0
- package/lib/chunk-VKEYQUCF.js.map +1 -0
- package/lib/chunk-VP7I376Q.js +40 -0
- package/lib/chunk-VP7I376Q.js.map +1 -0
- package/lib/chunk-VRU2UGPN.cjs +46 -0
- package/lib/chunk-VRU2UGPN.cjs.map +1 -0
- package/lib/chunk-VRXXWQRL.cjs +282 -0
- package/lib/chunk-VRXXWQRL.cjs.map +1 -0
- package/lib/chunk-VV4DII4R.cjs +70 -0
- package/lib/chunk-VV4DII4R.cjs.map +1 -0
- package/lib/chunk-VX5APQQJ.js +73 -0
- package/lib/chunk-VX5APQQJ.js.map +1 -0
- package/lib/chunk-W3SYTX6F.js +49 -0
- package/lib/chunk-W3SYTX6F.js.map +1 -0
- package/lib/chunk-W4ZTXJH3.js +96 -0
- package/lib/chunk-W4ZTXJH3.js.map +1 -0
- package/lib/chunk-WAL76UPE.cjs +153 -0
- package/lib/chunk-WAL76UPE.cjs.map +1 -0
- package/lib/chunk-WLNQ5IJG.cjs +47 -0
- package/lib/chunk-WLNQ5IJG.cjs.map +1 -0
- package/lib/chunk-WWUILZ4S.cjs +57 -0
- package/lib/chunk-WWUILZ4S.cjs.map +1 -0
- package/lib/chunk-XAABBRMY.js +274 -0
- package/lib/chunk-XAABBRMY.js.map +1 -0
- package/lib/chunk-XCY643SK.cjs +38 -0
- package/lib/chunk-XCY643SK.cjs.map +1 -0
- package/lib/chunk-XD7GS4QW.js +20 -0
- package/lib/chunk-XD7GS4QW.js.map +1 -0
- package/lib/chunk-XEQPW7EY.cjs +67 -0
- package/lib/chunk-XEQPW7EY.cjs.map +1 -0
- package/lib/chunk-XG3BBOQC.js +33 -0
- package/lib/chunk-XG3BBOQC.js.map +1 -0
- package/lib/chunk-XIDAGHQ3.js +45 -0
- package/lib/chunk-XIDAGHQ3.js.map +1 -0
- package/lib/chunk-XNQHTNRU.js +65 -0
- package/lib/chunk-XNQHTNRU.js.map +1 -0
- package/lib/chunk-XUDOA53I.cjs +30 -0
- package/lib/chunk-XUDOA53I.cjs.map +1 -0
- package/lib/chunk-XV7JPEMC.js +53 -0
- package/lib/chunk-XV7JPEMC.js.map +1 -0
- package/lib/chunk-XZVEHDCJ.js +49 -0
- package/lib/chunk-XZVEHDCJ.js.map +1 -0
- package/lib/chunk-Y63HZGYO.js +32 -0
- package/lib/chunk-Y63HZGYO.js.map +1 -0
- package/lib/chunk-YEAWOUGM.cjs +51 -0
- package/lib/chunk-YEAWOUGM.cjs.map +1 -0
- package/lib/chunk-YFDW473C.cjs +71 -0
- package/lib/chunk-YFDW473C.cjs.map +1 -0
- package/lib/chunk-YGRMZILG.cjs +62 -0
- package/lib/chunk-YGRMZILG.cjs.map +1 -0
- package/lib/chunk-YJ76LM3Y.cjs +47 -0
- package/lib/chunk-YJ76LM3Y.cjs.map +1 -0
- package/lib/chunk-YORWAYDL.cjs +47 -0
- package/lib/chunk-YORWAYDL.cjs.map +1 -0
- package/lib/chunk-YVFBCUQ6.cjs +47 -0
- package/lib/chunk-YVFBCUQ6.cjs.map +1 -0
- package/lib/chunk-YW72SW25.js +63 -0
- package/lib/chunk-YW72SW25.js.map +1 -0
- package/lib/chunk-YWLWTQ5X.js +49 -0
- package/lib/chunk-YWLWTQ5X.js.map +1 -0
- package/lib/chunk-YXDNZZT7.js +45 -0
- package/lib/chunk-YXDNZZT7.js.map +1 -0
- package/lib/chunk-YY5ENJSH.cjs +63 -0
- package/lib/chunk-YY5ENJSH.cjs.map +1 -0
- package/lib/chunk-Z4BLXS3O.js +45 -0
- package/lib/chunk-Z4BLXS3O.js.map +1 -0
- package/lib/chunk-ZHKKNAPU.cjs +42 -0
- package/lib/chunk-ZHKKNAPU.cjs.map +1 -0
- package/lib/chunk-ZHM3FU7I.cjs +47 -0
- package/lib/chunk-ZHM3FU7I.cjs.map +1 -0
- package/lib/chunk-ZJC6ALGW.js +51 -0
- package/lib/chunk-ZJC6ALGW.js.map +1 -0
- package/lib/chunk-ZONTQPPL.js +40 -0
- package/lib/chunk-ZONTQPPL.js.map +1 -0
- package/lib/chunk-ZU7GFVQ6.js +153 -0
- package/lib/chunk-ZU7GFVQ6.js.map +1 -0
- package/lib/chunk-ZZAXYDCE.cjs +55 -0
- package/lib/chunk-ZZAXYDCE.cjs.map +1 -0
- package/lib/client.cjs +7 -151
- package/lib/client.cjs.map +1 -1
- package/lib/client.js +6 -149
- package/lib/client.js.map +1 -1
- package/lib/commercelayer.cjs +26 -105
- package/lib/commercelayer.cjs.map +1 -1
- package/lib/commercelayer.d.cts +4 -4
- package/lib/commercelayer.d.ts +4 -4
- package/lib/commercelayer.js +10 -102
- package/lib/commercelayer.js.map +1 -1
- package/lib/config.cjs +5 -16
- package/lib/config.cjs.map +1 -1
- package/lib/config.js +2 -17
- package/lib/config.js.map +1 -1
- package/lib/debug.cjs +5 -14
- package/lib/debug.cjs.map +1 -1
- package/lib/debug.js +2 -15
- package/lib/debug.js.map +1 -1
- package/lib/enum.cjs +64 -654
- package/lib/enum.cjs.map +1 -1
- package/lib/enum.d.cts +1 -1
- package/lib/enum.d.ts +1 -1
- package/lib/enum.js +2 -641
- package/lib/enum.js.map +1 -1
- package/lib/error.cjs +32 -95
- package/lib/error.cjs.map +1 -1
- package/lib/error.js +3 -91
- package/lib/error.js.map +1 -1
- package/lib/fetch.cjs +11 -64
- package/lib/fetch.cjs.map +1 -1
- package/lib/fetch.js +3 -62
- package/lib/fetch.js.map +1 -1
- package/lib/index.cjs +672 -18
- package/lib/index.cjs.map +1 -1
- package/lib/index.d.cts +1 -1
- package/lib/index.d.ts +1 -1
- package/lib/index.js +143 -3
- package/lib/index.js.map +1 -1
- package/lib/jsonapi.cjs +17 -74
- package/lib/jsonapi.cjs.map +1 -1
- package/lib/jsonapi.d.cts +1 -1
- package/lib/jsonapi.d.ts +1 -1
- package/lib/jsonapi.js +9 -71
- package/lib/jsonapi.js.map +1 -1
- package/lib/model.d.cts +1 -1
- package/lib/model.d.ts +1 -1
- package/lib/query.cjs +16 -59
- package/lib/query.cjs.map +1 -1
- package/lib/query.d.cts +1 -1
- package/lib/query.d.ts +1 -1
- package/lib/query.js +4 -56
- package/lib/query.js.map +1 -1
- package/lib/resource.cjs +29 -211
- package/lib/resource.cjs.map +1 -1
- package/lib/resource.d.cts +1 -1
- package/lib/resource.d.ts +1 -1
- package/lib/resource.js +9 -204
- package/lib/resource.js.map +1 -1
- package/lib/resources/addresses.cjs +12 -50
- package/lib/resources/addresses.cjs.map +1 -1
- package/lib/resources/addresses.d.cts +1 -1
- package/lib/resources/addresses.d.ts +1 -1
- package/lib/resources/addresses.js +10 -52
- package/lib/resources/addresses.js.map +1 -1
- package/lib/resources/adjustments.cjs +12 -32
- package/lib/resources/adjustments.cjs.map +1 -1
- package/lib/resources/adjustments.d.cts +1 -1
- package/lib/resources/adjustments.d.ts +1 -1
- package/lib/resources/adjustments.js +10 -34
- package/lib/resources/adjustments.js.map +1 -1
- package/lib/resources/adyen_gateways.cjs +12 -40
- package/lib/resources/adyen_gateways.cjs.map +1 -1
- package/lib/resources/adyen_gateways.d.cts +1 -1
- package/lib/resources/adyen_gateways.d.ts +1 -1
- package/lib/resources/adyen_gateways.js +10 -42
- package/lib/resources/adyen_gateways.js.map +1 -1
- package/lib/resources/adyen_payments.cjs +12 -46
- package/lib/resources/adyen_payments.cjs.map +1 -1
- package/lib/resources/adyen_payments.d.cts +1 -1
- package/lib/resources/adyen_payments.d.ts +1 -1
- package/lib/resources/adyen_payments.js +10 -48
- package/lib/resources/adyen_payments.js.map +1 -1
- package/lib/resources/applications.cjs +12 -22
- package/lib/resources/applications.cjs.map +1 -1
- package/lib/resources/applications.d.cts +1 -1
- package/lib/resources/applications.d.ts +1 -1
- package/lib/resources/applications.js +10 -24
- package/lib/resources/applications.js.map +1 -1
- package/lib/resources/attachments.cjs +12 -28
- package/lib/resources/attachments.cjs.map +1 -1
- package/lib/resources/attachments.d.cts +1 -1
- package/lib/resources/attachments.d.ts +1 -1
- package/lib/resources/attachments.js +10 -30
- package/lib/resources/attachments.js.map +1 -1
- package/lib/resources/authorizations.cjs +12 -61
- package/lib/resources/authorizations.cjs.map +1 -1
- package/lib/resources/authorizations.d.cts +1 -1
- package/lib/resources/authorizations.d.ts +1 -1
- package/lib/resources/authorizations.js +10 -63
- package/lib/resources/authorizations.js.map +1 -1
- package/lib/resources/avalara_accounts.cjs +12 -48
- package/lib/resources/avalara_accounts.cjs.map +1 -1
- package/lib/resources/avalara_accounts.d.cts +1 -1
- package/lib/resources/avalara_accounts.d.ts +1 -1
- package/lib/resources/avalara_accounts.js +10 -50
- package/lib/resources/avalara_accounts.js.map +1 -1
- package/lib/resources/axerve_gateways.cjs +12 -40
- package/lib/resources/axerve_gateways.cjs.map +1 -1
- package/lib/resources/axerve_gateways.d.cts +1 -1
- package/lib/resources/axerve_gateways.d.ts +1 -1
- package/lib/resources/axerve_gateways.js +10 -42
- package/lib/resources/axerve_gateways.js.map +1 -1
- package/lib/resources/axerve_payments.cjs +12 -43
- package/lib/resources/axerve_payments.cjs.map +1 -1
- package/lib/resources/axerve_payments.d.cts +1 -1
- package/lib/resources/axerve_payments.d.ts +1 -1
- package/lib/resources/axerve_payments.js +10 -45
- package/lib/resources/axerve_payments.js.map +1 -1
- package/lib/resources/bing_geocoders.cjs +12 -40
- package/lib/resources/bing_geocoders.cjs.map +1 -1
- package/lib/resources/bing_geocoders.d.cts +1 -1
- package/lib/resources/bing_geocoders.d.ts +1 -1
- package/lib/resources/bing_geocoders.js +10 -42
- package/lib/resources/bing_geocoders.js.map +1 -1
- package/lib/resources/braintree_gateways.cjs +12 -40
- package/lib/resources/braintree_gateways.cjs.map +1 -1
- package/lib/resources/braintree_gateways.d.cts +1 -1
- package/lib/resources/braintree_gateways.d.ts +1 -1
- package/lib/resources/braintree_gateways.js +10 -42
- package/lib/resources/braintree_gateways.js.map +1 -1
- package/lib/resources/braintree_payments.cjs +12 -40
- package/lib/resources/braintree_payments.cjs.map +1 -1
- package/lib/resources/braintree_payments.d.cts +1 -1
- package/lib/resources/braintree_payments.d.ts +1 -1
- package/lib/resources/braintree_payments.js +10 -42
- package/lib/resources/braintree_payments.js.map +1 -1
- package/lib/resources/bundles.cjs +12 -68
- package/lib/resources/bundles.cjs.map +1 -1
- package/lib/resources/bundles.d.cts +1 -1
- package/lib/resources/bundles.d.ts +1 -1
- package/lib/resources/bundles.js +10 -70
- package/lib/resources/bundles.js.map +1 -1
- package/lib/resources/buy_x_pay_y_promotions.cjs +12 -88
- package/lib/resources/buy_x_pay_y_promotions.cjs.map +1 -1
- package/lib/resources/buy_x_pay_y_promotions.d.cts +1 -1
- package/lib/resources/buy_x_pay_y_promotions.d.ts +1 -1
- package/lib/resources/buy_x_pay_y_promotions.js +10 -90
- package/lib/resources/buy_x_pay_y_promotions.js.map +1 -1
- package/lib/resources/captures.cjs +12 -62
- package/lib/resources/captures.cjs.map +1 -1
- package/lib/resources/captures.d.cts +1 -1
- package/lib/resources/captures.d.ts +1 -1
- package/lib/resources/captures.js +10 -64
- package/lib/resources/captures.js.map +1 -1
- package/lib/resources/carrier_accounts.cjs +12 -40
- package/lib/resources/carrier_accounts.cjs.map +1 -1
- package/lib/resources/carrier_accounts.d.cts +1 -1
- package/lib/resources/carrier_accounts.d.ts +1 -1
- package/lib/resources/carrier_accounts.js +10 -42
- package/lib/resources/carrier_accounts.js.map +1 -1
- package/lib/resources/checkout_com_gateways.cjs +12 -40
- package/lib/resources/checkout_com_gateways.cjs.map +1 -1
- package/lib/resources/checkout_com_gateways.d.cts +1 -1
- package/lib/resources/checkout_com_gateways.d.ts +1 -1
- package/lib/resources/checkout_com_gateways.js +10 -42
- package/lib/resources/checkout_com_gateways.js.map +1 -1
- package/lib/resources/checkout_com_payments.cjs +12 -46
- package/lib/resources/checkout_com_payments.cjs.map +1 -1
- package/lib/resources/checkout_com_payments.d.cts +1 -1
- package/lib/resources/checkout_com_payments.d.ts +1 -1
- package/lib/resources/checkout_com_payments.js +10 -48
- package/lib/resources/checkout_com_payments.js.map +1 -1
- package/lib/resources/cleanups.cjs +12 -39
- package/lib/resources/cleanups.cjs.map +1 -1
- package/lib/resources/cleanups.d.cts +1 -1
- package/lib/resources/cleanups.d.ts +1 -1
- package/lib/resources/cleanups.js +10 -41
- package/lib/resources/cleanups.js.map +1 -1
- package/lib/resources/coupon_codes_promotion_rules.cjs +12 -36
- package/lib/resources/coupon_codes_promotion_rules.cjs.map +1 -1
- package/lib/resources/coupon_codes_promotion_rules.d.cts +1 -1
- package/lib/resources/coupon_codes_promotion_rules.d.ts +1 -1
- package/lib/resources/coupon_codes_promotion_rules.js +10 -38
- package/lib/resources/coupon_codes_promotion_rules.js.map +1 -1
- package/lib/resources/coupon_recipients.cjs +12 -40
- package/lib/resources/coupon_recipients.cjs.map +1 -1
- package/lib/resources/coupon_recipients.d.cts +1 -1
- package/lib/resources/coupon_recipients.d.ts +1 -1
- package/lib/resources/coupon_recipients.js +10 -42
- package/lib/resources/coupon_recipients.js.map +1 -1
- package/lib/resources/coupons.cjs +12 -54
- package/lib/resources/coupons.cjs.map +1 -1
- package/lib/resources/coupons.d.cts +1 -1
- package/lib/resources/coupons.d.ts +1 -1
- package/lib/resources/coupons.js +10 -56
- package/lib/resources/coupons.js.map +1 -1
- package/lib/resources/custom_promotion_rules.cjs +12 -32
- package/lib/resources/custom_promotion_rules.cjs.map +1 -1
- package/lib/resources/custom_promotion_rules.d.cts +1 -1
- package/lib/resources/custom_promotion_rules.d.ts +1 -1
- package/lib/resources/custom_promotion_rules.js +10 -34
- package/lib/resources/custom_promotion_rules.js.map +1 -1
- package/lib/resources/customer_addresses.cjs +12 -44
- package/lib/resources/customer_addresses.cjs.map +1 -1
- package/lib/resources/customer_addresses.d.cts +1 -1
- package/lib/resources/customer_addresses.d.ts +1 -1
- package/lib/resources/customer_addresses.js +10 -46
- package/lib/resources/customer_addresses.js.map +1 -1
- package/lib/resources/customer_groups.cjs +12 -44
- package/lib/resources/customer_groups.cjs.map +1 -1
- package/lib/resources/customer_groups.d.cts +1 -1
- package/lib/resources/customer_groups.d.ts +1 -1
- package/lib/resources/customer_groups.js +10 -46
- package/lib/resources/customer_groups.js.map +1 -1
- package/lib/resources/customer_password_resets.cjs +12 -39
- package/lib/resources/customer_password_resets.cjs.map +1 -1
- package/lib/resources/customer_password_resets.d.cts +1 -1
- package/lib/resources/customer_password_resets.d.ts +1 -1
- package/lib/resources/customer_password_resets.js +10 -41
- package/lib/resources/customer_password_resets.js.map +1 -1
- package/lib/resources/customer_payment_sources.cjs +12 -40
- package/lib/resources/customer_payment_sources.cjs.map +1 -1
- package/lib/resources/customer_payment_sources.d.cts +1 -1
- package/lib/resources/customer_payment_sources.d.ts +1 -1
- package/lib/resources/customer_payment_sources.js +10 -42
- package/lib/resources/customer_payment_sources.js.map +1 -1
- package/lib/resources/customer_subscriptions.cjs +12 -40
- package/lib/resources/customer_subscriptions.cjs.map +1 -1
- package/lib/resources/customer_subscriptions.d.cts +1 -1
- package/lib/resources/customer_subscriptions.d.ts +1 -1
- package/lib/resources/customer_subscriptions.js +10 -42
- package/lib/resources/customer_subscriptions.js.map +1 -1
- package/lib/resources/customers.cjs +12 -78
- package/lib/resources/customers.cjs.map +1 -1
- package/lib/resources/customers.d.cts +1 -1
- package/lib/resources/customers.d.ts +1 -1
- package/lib/resources/customers.js +10 -80
- package/lib/resources/customers.js.map +1 -1
- package/lib/resources/delivery_lead_times.cjs +12 -44
- package/lib/resources/delivery_lead_times.cjs.map +1 -1
- package/lib/resources/delivery_lead_times.d.cts +1 -1
- package/lib/resources/delivery_lead_times.d.ts +1 -1
- package/lib/resources/delivery_lead_times.js +10 -46
- package/lib/resources/delivery_lead_times.js.map +1 -1
- package/lib/resources/discount_engine_items.cjs +12 -27
- package/lib/resources/discount_engine_items.cjs.map +1 -1
- package/lib/resources/discount_engine_items.d.cts +1 -1
- package/lib/resources/discount_engine_items.d.ts +1 -1
- package/lib/resources/discount_engine_items.js +10 -29
- package/lib/resources/discount_engine_items.js.map +1 -1
- package/lib/resources/discount_engines.cjs +12 -35
- package/lib/resources/discount_engines.cjs.map +1 -1
- package/lib/resources/discount_engines.d.cts +1 -1
- package/lib/resources/discount_engines.d.ts +1 -1
- package/lib/resources/discount_engines.js +10 -37
- package/lib/resources/discount_engines.js.map +1 -1
- package/lib/resources/easypost_pickups.cjs +12 -43
- package/lib/resources/easypost_pickups.cjs.map +1 -1
- package/lib/resources/easypost_pickups.d.cts +1 -1
- package/lib/resources/easypost_pickups.d.ts +1 -1
- package/lib/resources/easypost_pickups.js +10 -45
- package/lib/resources/easypost_pickups.js.map +1 -1
- package/lib/resources/event_callbacks.cjs +12 -23
- package/lib/resources/event_callbacks.cjs.map +1 -1
- package/lib/resources/event_callbacks.d.cts +1 -1
- package/lib/resources/event_callbacks.d.ts +1 -1
- package/lib/resources/event_callbacks.js +10 -25
- package/lib/resources/event_callbacks.js.map +1 -1
- package/lib/resources/events.cjs +12 -33
- package/lib/resources/events.cjs.map +1 -1
- package/lib/resources/events.d.cts +1 -1
- package/lib/resources/events.d.ts +1 -1
- package/lib/resources/events.js +10 -35
- package/lib/resources/events.js.map +1 -1
- package/lib/resources/exports.cjs +12 -39
- package/lib/resources/exports.cjs.map +1 -1
- package/lib/resources/exports.d.cts +1 -1
- package/lib/resources/exports.d.ts +1 -1
- package/lib/resources/exports.js +10 -41
- package/lib/resources/exports.js.map +1 -1
- package/lib/resources/external_gateways.cjs +12 -43
- package/lib/resources/external_gateways.cjs.map +1 -1
- package/lib/resources/external_gateways.d.cts +1 -1
- package/lib/resources/external_gateways.d.ts +1 -1
- package/lib/resources/external_gateways.js +10 -45
- package/lib/resources/external_gateways.js.map +1 -1
- package/lib/resources/external_payments.cjs +12 -44
- package/lib/resources/external_payments.cjs.map +1 -1
- package/lib/resources/external_payments.d.cts +1 -1
- package/lib/resources/external_payments.d.ts +1 -1
- package/lib/resources/external_payments.js +10 -46
- package/lib/resources/external_payments.js.map +1 -1
- package/lib/resources/external_promotions.cjs +12 -91
- package/lib/resources/external_promotions.cjs.map +1 -1
- package/lib/resources/external_promotions.d.cts +1 -1
- package/lib/resources/external_promotions.d.ts +1 -1
- package/lib/resources/external_promotions.js +10 -93
- package/lib/resources/external_promotions.js.map +1 -1
- package/lib/resources/external_tax_calculators.cjs +12 -47
- package/lib/resources/external_tax_calculators.cjs.map +1 -1
- package/lib/resources/external_tax_calculators.d.cts +1 -1
- package/lib/resources/external_tax_calculators.d.ts +1 -1
- package/lib/resources/external_tax_calculators.js +10 -49
- package/lib/resources/external_tax_calculators.js.map +1 -1
- package/lib/resources/fixed_amount_promotions.cjs +12 -88
- package/lib/resources/fixed_amount_promotions.cjs.map +1 -1
- package/lib/resources/fixed_amount_promotions.d.cts +1 -1
- package/lib/resources/fixed_amount_promotions.d.ts +1 -1
- package/lib/resources/fixed_amount_promotions.js +10 -90
- package/lib/resources/fixed_amount_promotions.js.map +1 -1
- package/lib/resources/fixed_price_promotions.cjs +12 -88
- package/lib/resources/fixed_price_promotions.cjs.map +1 -1
- package/lib/resources/fixed_price_promotions.d.cts +1 -1
- package/lib/resources/fixed_price_promotions.d.ts +1 -1
- package/lib/resources/fixed_price_promotions.js +10 -90
- package/lib/resources/fixed_price_promotions.js.map +1 -1
- package/lib/resources/flex_promotions.cjs +12 -64
- package/lib/resources/flex_promotions.cjs.map +1 -1
- package/lib/resources/flex_promotions.d.cts +1 -1
- package/lib/resources/flex_promotions.d.ts +1 -1
- package/lib/resources/flex_promotions.js +10 -66
- package/lib/resources/flex_promotions.js.map +1 -1
- package/lib/resources/free_gift_promotions.cjs +12 -88
- package/lib/resources/free_gift_promotions.cjs.map +1 -1
- package/lib/resources/free_gift_promotions.d.cts +1 -1
- package/lib/resources/free_gift_promotions.d.ts +1 -1
- package/lib/resources/free_gift_promotions.js +10 -90
- package/lib/resources/free_gift_promotions.js.map +1 -1
- package/lib/resources/free_shipping_promotions.cjs +12 -84
- package/lib/resources/free_shipping_promotions.cjs.map +1 -1
- package/lib/resources/free_shipping_promotions.d.cts +1 -1
- package/lib/resources/free_shipping_promotions.d.ts +1 -1
- package/lib/resources/free_shipping_promotions.js +10 -86
- package/lib/resources/free_shipping_promotions.js.map +1 -1
- package/lib/resources/geocoders.cjs +12 -31
- package/lib/resources/geocoders.cjs.map +1 -1
- package/lib/resources/geocoders.d.cts +1 -1
- package/lib/resources/geocoders.d.ts +1 -1
- package/lib/resources/geocoders.js +10 -33
- package/lib/resources/geocoders.js.map +1 -1
- package/lib/resources/gift_card_recipients.cjs +12 -40
- package/lib/resources/gift_card_recipients.cjs.map +1 -1
- package/lib/resources/gift_card_recipients.d.cts +1 -1
- package/lib/resources/gift_card_recipients.d.ts +1 -1
- package/lib/resources/gift_card_recipients.js +10 -42
- package/lib/resources/gift_card_recipients.js.map +1 -1
- package/lib/resources/gift_cards.cjs +12 -70
- package/lib/resources/gift_cards.cjs.map +1 -1
- package/lib/resources/gift_cards.d.cts +1 -1
- package/lib/resources/gift_cards.d.ts +1 -1
- package/lib/resources/gift_cards.js +10 -72
- package/lib/resources/gift_cards.js.map +1 -1
- package/lib/resources/google_geocoders.cjs +12 -40
- package/lib/resources/google_geocoders.cjs.map +1 -1
- package/lib/resources/google_geocoders.d.cts +1 -1
- package/lib/resources/google_geocoders.d.ts +1 -1
- package/lib/resources/google_geocoders.js +10 -42
- package/lib/resources/google_geocoders.js.map +1 -1
- package/lib/resources/imports.cjs +12 -35
- package/lib/resources/imports.cjs.map +1 -1
- package/lib/resources/imports.d.cts +1 -1
- package/lib/resources/imports.d.ts +1 -1
- package/lib/resources/imports.js +10 -37
- package/lib/resources/imports.js.map +1 -1
- package/lib/resources/in_stock_subscriptions.cjs +12 -54
- package/lib/resources/in_stock_subscriptions.cjs.map +1 -1
- package/lib/resources/in_stock_subscriptions.d.cts +1 -1
- package/lib/resources/in_stock_subscriptions.d.ts +1 -1
- package/lib/resources/in_stock_subscriptions.js +10 -56
- package/lib/resources/in_stock_subscriptions.js.map +1 -1
- package/lib/resources/inventory_models.cjs +12 -44
- package/lib/resources/inventory_models.cjs.map +1 -1
- package/lib/resources/inventory_models.d.cts +1 -1
- package/lib/resources/inventory_models.d.ts +1 -1
- package/lib/resources/inventory_models.js +10 -46
- package/lib/resources/inventory_models.js.map +1 -1
- package/lib/resources/inventory_return_locations.cjs +12 -40
- package/lib/resources/inventory_return_locations.cjs.map +1 -1
- package/lib/resources/inventory_return_locations.d.cts +1 -1
- package/lib/resources/inventory_return_locations.d.ts +1 -1
- package/lib/resources/inventory_return_locations.js +10 -42
- package/lib/resources/inventory_return_locations.js.map +1 -1
- package/lib/resources/inventory_stock_locations.cjs +12 -40
- package/lib/resources/inventory_stock_locations.cjs.map +1 -1
- package/lib/resources/inventory_stock_locations.d.cts +1 -1
- package/lib/resources/inventory_stock_locations.d.ts +1 -1
- package/lib/resources/inventory_stock_locations.js +10 -42
- package/lib/resources/inventory_stock_locations.js.map +1 -1
- package/lib/resources/klarna_gateways.cjs +12 -40
- package/lib/resources/klarna_gateways.cjs.map +1 -1
- package/lib/resources/klarna_gateways.d.cts +1 -1
- package/lib/resources/klarna_gateways.d.ts +1 -1
- package/lib/resources/klarna_gateways.js +10 -42
- package/lib/resources/klarna_gateways.js.map +1 -1
- package/lib/resources/klarna_payments.cjs +12 -43
- package/lib/resources/klarna_payments.cjs.map +1 -1
- package/lib/resources/klarna_payments.d.cts +1 -1
- package/lib/resources/klarna_payments.d.ts +1 -1
- package/lib/resources/klarna_payments.js +10 -45
- package/lib/resources/klarna_payments.js.map +1 -1
- package/lib/resources/line_item_options.cjs +12 -50
- package/lib/resources/line_item_options.cjs.map +1 -1
- package/lib/resources/line_item_options.d.cts +1 -1
- package/lib/resources/line_item_options.d.ts +1 -1
- package/lib/resources/line_item_options.js +10 -52
- package/lib/resources/line_item_options.js.map +1 -1
- package/lib/resources/line_items.cjs +12 -79
- package/lib/resources/line_items.cjs.map +1 -1
- package/lib/resources/line_items.d.cts +1 -1
- package/lib/resources/line_items.d.ts +1 -1
- package/lib/resources/line_items.js +10 -81
- package/lib/resources/line_items.js.map +1 -1
- package/lib/resources/links.cjs +12 -38
- package/lib/resources/links.cjs.map +1 -1
- package/lib/resources/links.d.cts +1 -1
- package/lib/resources/links.d.ts +1 -1
- package/lib/resources/links.js +10 -40
- package/lib/resources/links.js.map +1 -1
- package/lib/resources/manual_gateways.cjs +12 -36
- package/lib/resources/manual_gateways.cjs.map +1 -1
- package/lib/resources/manual_gateways.d.cts +1 -1
- package/lib/resources/manual_gateways.d.ts +1 -1
- package/lib/resources/manual_gateways.js +10 -38
- package/lib/resources/manual_gateways.js.map +1 -1
- package/lib/resources/manual_tax_calculators.cjs +12 -48
- package/lib/resources/manual_tax_calculators.cjs.map +1 -1
- package/lib/resources/manual_tax_calculators.d.cts +1 -1
- package/lib/resources/manual_tax_calculators.d.ts +1 -1
- package/lib/resources/manual_tax_calculators.js +10 -50
- package/lib/resources/manual_tax_calculators.js.map +1 -1
- package/lib/resources/markets.cjs +12 -90
- package/lib/resources/markets.cjs.map +1 -1
- package/lib/resources/markets.d.cts +1 -1
- package/lib/resources/markets.d.ts +1 -1
- package/lib/resources/markets.js +10 -92
- package/lib/resources/markets.js.map +1 -1
- package/lib/resources/merchants.cjs +12 -40
- package/lib/resources/merchants.cjs.map +1 -1
- package/lib/resources/merchants.d.cts +1 -1
- package/lib/resources/merchants.d.ts +1 -1
- package/lib/resources/merchants.js +10 -42
- package/lib/resources/merchants.js.map +1 -1
- package/lib/resources/notifications.cjs +12 -28
- package/lib/resources/notifications.cjs.map +1 -1
- package/lib/resources/notifications.d.cts +1 -1
- package/lib/resources/notifications.d.ts +1 -1
- package/lib/resources/notifications.js +10 -30
- package/lib/resources/notifications.js.map +1 -1
- package/lib/resources/order_amount_promotion_rules.cjs +12 -32
- package/lib/resources/order_amount_promotion_rules.cjs.map +1 -1
- package/lib/resources/order_amount_promotion_rules.d.cts +1 -1
- package/lib/resources/order_amount_promotion_rules.d.ts +1 -1
- package/lib/resources/order_amount_promotion_rules.js +10 -34
- package/lib/resources/order_amount_promotion_rules.js.map +1 -1
- package/lib/resources/order_copies.cjs +12 -44
- package/lib/resources/order_copies.cjs.map +1 -1
- package/lib/resources/order_copies.d.cts +1 -1
- package/lib/resources/order_copies.d.ts +1 -1
- package/lib/resources/order_copies.js +10 -46
- package/lib/resources/order_copies.js.map +1 -1
- package/lib/resources/order_factories.cjs +12 -31
- package/lib/resources/order_factories.cjs.map +1 -1
- package/lib/resources/order_factories.d.cts +1 -1
- package/lib/resources/order_factories.d.ts +1 -1
- package/lib/resources/order_factories.js +10 -33
- package/lib/resources/order_factories.js.map +1 -1
- package/lib/resources/order_subscription_items.cjs +12 -36
- package/lib/resources/order_subscription_items.cjs.map +1 -1
- package/lib/resources/order_subscription_items.d.cts +1 -1
- package/lib/resources/order_subscription_items.d.ts +1 -1
- package/lib/resources/order_subscription_items.js +10 -38
- package/lib/resources/order_subscription_items.js.map +1 -1
- package/lib/resources/order_subscriptions.cjs +12 -94
- package/lib/resources/order_subscriptions.cjs.map +1 -1
- package/lib/resources/order_subscriptions.d.cts +1 -1
- package/lib/resources/order_subscriptions.d.ts +1 -1
- package/lib/resources/order_subscriptions.js +10 -96
- package/lib/resources/order_subscriptions.js.map +1 -1
- package/lib/resources/orders.cjs +12 -271
- package/lib/resources/orders.cjs.map +1 -1
- package/lib/resources/orders.d.cts +1 -1
- package/lib/resources/orders.d.ts +1 -1
- package/lib/resources/orders.js +10 -273
- package/lib/resources/orders.js.map +1 -1
- package/lib/resources/organizations.cjs +12 -22
- package/lib/resources/organizations.cjs.map +1 -1
- package/lib/resources/organizations.d.cts +1 -1
- package/lib/resources/organizations.d.ts +1 -1
- package/lib/resources/organizations.js +10 -24
- package/lib/resources/organizations.js.map +1 -1
- package/lib/resources/packages.cjs +12 -44
- package/lib/resources/packages.cjs.map +1 -1
- package/lib/resources/packages.d.cts +1 -1
- package/lib/resources/packages.d.ts +1 -1
- package/lib/resources/packages.js +10 -46
- package/lib/resources/packages.js.map +1 -1
- package/lib/resources/parcel_line_items.cjs +12 -40
- package/lib/resources/parcel_line_items.cjs.map +1 -1
- package/lib/resources/parcel_line_items.d.cts +1 -1
- package/lib/resources/parcel_line_items.d.ts +1 -1
- package/lib/resources/parcel_line_items.js +10 -42
- package/lib/resources/parcel_line_items.js.map +1 -1
- package/lib/resources/parcels.cjs +12 -52
- package/lib/resources/parcels.cjs.map +1 -1
- package/lib/resources/parcels.d.cts +1 -1
- package/lib/resources/parcels.d.ts +1 -1
- package/lib/resources/parcels.js +10 -54
- package/lib/resources/parcels.js.map +1 -1
- package/lib/resources/payment_gateways.cjs +12 -27
- package/lib/resources/payment_gateways.cjs.map +1 -1
- package/lib/resources/payment_gateways.d.cts +1 -1
- package/lib/resources/payment_gateways.d.ts +1 -1
- package/lib/resources/payment_gateways.js +10 -29
- package/lib/resources/payment_gateways.js.map +1 -1
- package/lib/resources/payment_methods.cjs +12 -58
- package/lib/resources/payment_methods.cjs.map +1 -1
- package/lib/resources/payment_methods.d.cts +1 -1
- package/lib/resources/payment_methods.d.ts +1 -1
- package/lib/resources/payment_methods.js +10 -60
- package/lib/resources/payment_methods.js.map +1 -1
- package/lib/resources/payment_options.cjs +12 -36
- package/lib/resources/payment_options.cjs.map +1 -1
- package/lib/resources/payment_options.d.cts +1 -1
- package/lib/resources/payment_options.d.ts +1 -1
- package/lib/resources/payment_options.js +10 -38
- package/lib/resources/payment_options.js.map +1 -1
- package/lib/resources/paypal_gateways.cjs +12 -40
- package/lib/resources/paypal_gateways.cjs.map +1 -1
- package/lib/resources/paypal_gateways.d.cts +1 -1
- package/lib/resources/paypal_gateways.d.ts +1 -1
- package/lib/resources/paypal_gateways.js +10 -42
- package/lib/resources/paypal_gateways.js.map +1 -1
- package/lib/resources/paypal_payments.cjs +12 -40
- package/lib/resources/paypal_payments.cjs.map +1 -1
- package/lib/resources/paypal_payments.d.cts +1 -1
- package/lib/resources/paypal_payments.d.ts +1 -1
- package/lib/resources/paypal_payments.js +10 -42
- package/lib/resources/paypal_payments.js.map +1 -1
- package/lib/resources/percentage_discount_promotions.cjs +12 -88
- package/lib/resources/percentage_discount_promotions.cjs.map +1 -1
- package/lib/resources/percentage_discount_promotions.d.cts +1 -1
- package/lib/resources/percentage_discount_promotions.d.ts +1 -1
- package/lib/resources/percentage_discount_promotions.js +10 -90
- package/lib/resources/percentage_discount_promotions.js.map +1 -1
- package/lib/resources/pickups.cjs +12 -31
- package/lib/resources/pickups.cjs.map +1 -1
- package/lib/resources/pickups.d.cts +1 -1
- package/lib/resources/pickups.d.ts +1 -1
- package/lib/resources/pickups.js +10 -33
- package/lib/resources/pickups.js.map +1 -1
- package/lib/resources/price_frequency_tiers.cjs +12 -44
- package/lib/resources/price_frequency_tiers.cjs.map +1 -1
- package/lib/resources/price_frequency_tiers.d.cts +1 -1
- package/lib/resources/price_frequency_tiers.d.ts +1 -1
- package/lib/resources/price_frequency_tiers.js +10 -46
- package/lib/resources/price_frequency_tiers.js.map +1 -1
- package/lib/resources/price_list_schedulers.cjs +12 -50
- package/lib/resources/price_list_schedulers.cjs.map +1 -1
- package/lib/resources/price_list_schedulers.d.cts +1 -1
- package/lib/resources/price_list_schedulers.d.ts +1 -1
- package/lib/resources/price_list_schedulers.js +10 -52
- package/lib/resources/price_list_schedulers.js.map +1 -1
- package/lib/resources/price_lists.cjs +12 -44
- package/lib/resources/price_lists.cjs.map +1 -1
- package/lib/resources/price_lists.d.cts +1 -1
- package/lib/resources/price_lists.d.ts +1 -1
- package/lib/resources/price_lists.js +10 -46
- package/lib/resources/price_lists.js.map +1 -1
- package/lib/resources/price_tiers.cjs +12 -31
- package/lib/resources/price_tiers.cjs.map +1 -1
- package/lib/resources/price_tiers.d.cts +1 -1
- package/lib/resources/price_tiers.d.ts +1 -1
- package/lib/resources/price_tiers.js +10 -33
- package/lib/resources/price_tiers.js.map +1 -1
- package/lib/resources/price_volume_tiers.cjs +12 -44
- package/lib/resources/price_volume_tiers.cjs.map +1 -1
- package/lib/resources/price_volume_tiers.d.cts +1 -1
- package/lib/resources/price_volume_tiers.d.ts +1 -1
- package/lib/resources/price_volume_tiers.js +10 -46
- package/lib/resources/price_volume_tiers.js.map +1 -1
- package/lib/resources/prices.cjs +12 -68
- package/lib/resources/prices.cjs.map +1 -1
- package/lib/resources/prices.d.cts +1 -1
- package/lib/resources/prices.d.ts +1 -1
- package/lib/resources/prices.js +10 -70
- package/lib/resources/prices.js.map +1 -1
- package/lib/resources/promotion_rules.cjs +12 -23
- package/lib/resources/promotion_rules.cjs.map +1 -1
- package/lib/resources/promotion_rules.d.cts +1 -1
- package/lib/resources/promotion_rules.d.ts +1 -1
- package/lib/resources/promotion_rules.js +10 -25
- package/lib/resources/promotion_rules.js.map +1 -1
- package/lib/resources/promotions.cjs +12 -63
- package/lib/resources/promotions.cjs.map +1 -1
- package/lib/resources/promotions.d.cts +1 -1
- package/lib/resources/promotions.d.ts +1 -1
- package/lib/resources/promotions.js +10 -65
- package/lib/resources/promotions.js.map +1 -1
- package/lib/resources/recurring_order_copies.cjs +12 -44
- package/lib/resources/recurring_order_copies.cjs.map +1 -1
- package/lib/resources/recurring_order_copies.d.cts +1 -1
- package/lib/resources/recurring_order_copies.d.ts +1 -1
- package/lib/resources/recurring_order_copies.js +10 -46
- package/lib/resources/recurring_order_copies.js.map +1 -1
- package/lib/resources/refunds.cjs +12 -49
- package/lib/resources/refunds.cjs.map +1 -1
- package/lib/resources/refunds.d.cts +1 -1
- package/lib/resources/refunds.d.ts +1 -1
- package/lib/resources/refunds.js +10 -51
- package/lib/resources/refunds.js.map +1 -1
- package/lib/resources/reserved_stocks.cjs +12 -35
- package/lib/resources/reserved_stocks.cjs.map +1 -1
- package/lib/resources/reserved_stocks.d.cts +1 -1
- package/lib/resources/reserved_stocks.d.ts +1 -1
- package/lib/resources/reserved_stocks.js +10 -37
- package/lib/resources/reserved_stocks.js.map +1 -1
- package/lib/resources/resource_errors.cjs +12 -19
- package/lib/resources/resource_errors.cjs.map +1 -1
- package/lib/resources/resource_errors.d.cts +1 -1
- package/lib/resources/resource_errors.d.ts +1 -1
- package/lib/resources/resource_errors.js +10 -21
- package/lib/resources/resource_errors.js.map +1 -1
- package/lib/resources/return_line_items.cjs +12 -39
- package/lib/resources/return_line_items.cjs.map +1 -1
- package/lib/resources/return_line_items.d.cts +1 -1
- package/lib/resources/return_line_items.d.ts +1 -1
- package/lib/resources/return_line_items.js +10 -41
- package/lib/resources/return_line_items.js.map +1 -1
- package/lib/resources/returns.cjs +12 -119
- package/lib/resources/returns.cjs.map +1 -1
- package/lib/resources/returns.d.cts +1 -1
- package/lib/resources/returns.d.ts +1 -1
- package/lib/resources/returns.js +10 -121
- package/lib/resources/returns.js.map +1 -1
- package/lib/resources/satispay_gateways.cjs +12 -40
- package/lib/resources/satispay_gateways.cjs.map +1 -1
- package/lib/resources/satispay_gateways.d.cts +1 -1
- package/lib/resources/satispay_gateways.d.ts +1 -1
- package/lib/resources/satispay_gateways.js +10 -42
- package/lib/resources/satispay_gateways.js.map +1 -1
- package/lib/resources/satispay_payments.cjs +12 -43
- package/lib/resources/satispay_payments.cjs.map +1 -1
- package/lib/resources/satispay_payments.d.cts +1 -1
- package/lib/resources/satispay_payments.d.ts +1 -1
- package/lib/resources/satispay_payments.js +10 -45
- package/lib/resources/satispay_payments.js.map +1 -1
- package/lib/resources/shipments.cjs +12 -149
- package/lib/resources/shipments.cjs.map +1 -1
- package/lib/resources/shipments.d.cts +1 -1
- package/lib/resources/shipments.d.ts +1 -1
- package/lib/resources/shipments.js +10 -151
- package/lib/resources/shipments.js.map +1 -1
- package/lib/resources/shipping_categories.cjs +12 -40
- package/lib/resources/shipping_categories.cjs.map +1 -1
- package/lib/resources/shipping_categories.d.cts +1 -1
- package/lib/resources/shipping_categories.d.ts +1 -1
- package/lib/resources/shipping_categories.js +10 -42
- package/lib/resources/shipping_categories.js.map +1 -1
- package/lib/resources/shipping_method_tiers.cjs +12 -31
- package/lib/resources/shipping_method_tiers.cjs.map +1 -1
- package/lib/resources/shipping_method_tiers.d.cts +1 -1
- package/lib/resources/shipping_method_tiers.d.ts +1 -1
- package/lib/resources/shipping_method_tiers.js +10 -33
- package/lib/resources/shipping_method_tiers.js.map +1 -1
- package/lib/resources/shipping_methods.cjs +12 -77
- package/lib/resources/shipping_methods.cjs.map +1 -1
- package/lib/resources/shipping_methods.d.cts +1 -1
- package/lib/resources/shipping_methods.d.ts +1 -1
- package/lib/resources/shipping_methods.js +10 -79
- package/lib/resources/shipping_methods.js.map +1 -1
- package/lib/resources/shipping_weight_tiers.cjs +12 -40
- package/lib/resources/shipping_weight_tiers.cjs.map +1 -1
- package/lib/resources/shipping_weight_tiers.d.cts +1 -1
- package/lib/resources/shipping_weight_tiers.d.ts +1 -1
- package/lib/resources/shipping_weight_tiers.js +10 -42
- package/lib/resources/shipping_weight_tiers.js.map +1 -1
- package/lib/resources/shipping_zones.cjs +12 -36
- package/lib/resources/shipping_zones.cjs.map +1 -1
- package/lib/resources/shipping_zones.d.cts +1 -1
- package/lib/resources/shipping_zones.d.ts +1 -1
- package/lib/resources/shipping_zones.js +10 -38
- package/lib/resources/shipping_zones.js.map +1 -1
- package/lib/resources/sku_list_items.cjs +12 -40
- package/lib/resources/sku_list_items.cjs.map +1 -1
- package/lib/resources/sku_list_items.d.cts +1 -1
- package/lib/resources/sku_list_items.d.ts +1 -1
- package/lib/resources/sku_list_items.js +10 -42
- package/lib/resources/sku_list_items.js.map +1 -1
- package/lib/resources/sku_list_promotion_rules.cjs +12 -40
- package/lib/resources/sku_list_promotion_rules.cjs.map +1 -1
- package/lib/resources/sku_list_promotion_rules.d.cts +1 -1
- package/lib/resources/sku_list_promotion_rules.d.ts +1 -1
- package/lib/resources/sku_list_promotion_rules.js +10 -42
- package/lib/resources/sku_list_promotion_rules.js.map +1 -1
- package/lib/resources/sku_lists.cjs +12 -56
- package/lib/resources/sku_lists.cjs.map +1 -1
- package/lib/resources/sku_lists.d.cts +1 -1
- package/lib/resources/sku_lists.d.ts +1 -1
- package/lib/resources/sku_lists.js +10 -58
- package/lib/resources/sku_lists.js.map +1 -1
- package/lib/resources/sku_options.cjs +12 -54
- package/lib/resources/sku_options.cjs.map +1 -1
- package/lib/resources/sku_options.d.cts +1 -1
- package/lib/resources/sku_options.d.ts +1 -1
- package/lib/resources/sku_options.js +10 -56
- package/lib/resources/sku_options.js.map +1 -1
- package/lib/resources/skus.cjs +12 -98
- package/lib/resources/skus.cjs.map +1 -1
- package/lib/resources/skus.d.cts +1 -1
- package/lib/resources/skus.d.ts +1 -1
- package/lib/resources/skus.js +10 -100
- package/lib/resources/skus.js.map +1 -1
- package/lib/resources/stock_items.cjs +12 -55
- package/lib/resources/stock_items.cjs.map +1 -1
- package/lib/resources/stock_items.d.cts +1 -1
- package/lib/resources/stock_items.d.ts +1 -1
- package/lib/resources/stock_items.js +10 -57
- package/lib/resources/stock_items.js.map +1 -1
- package/lib/resources/stock_line_items.cjs +12 -61
- package/lib/resources/stock_line_items.cjs.map +1 -1
- package/lib/resources/stock_line_items.d.cts +1 -1
- package/lib/resources/stock_line_items.d.ts +1 -1
- package/lib/resources/stock_line_items.js +10 -63
- package/lib/resources/stock_line_items.js.map +1 -1
- package/lib/resources/stock_locations.cjs +12 -60
- package/lib/resources/stock_locations.cjs.map +1 -1
- package/lib/resources/stock_locations.d.cts +1 -1
- package/lib/resources/stock_locations.d.ts +1 -1
- package/lib/resources/stock_locations.js +10 -62
- package/lib/resources/stock_locations.js.map +1 -1
- package/lib/resources/stock_reservations.cjs +12 -59
- package/lib/resources/stock_reservations.cjs.map +1 -1
- package/lib/resources/stock_reservations.d.cts +1 -1
- package/lib/resources/stock_reservations.d.ts +1 -1
- package/lib/resources/stock_reservations.js +10 -61
- package/lib/resources/stock_reservations.js.map +1 -1
- package/lib/resources/stock_transfers.cjs +12 -82
- package/lib/resources/stock_transfers.cjs.map +1 -1
- package/lib/resources/stock_transfers.d.cts +1 -1
- package/lib/resources/stock_transfers.d.ts +1 -1
- package/lib/resources/stock_transfers.js +10 -84
- package/lib/resources/stock_transfers.js.map +1 -1
- package/lib/resources/stores.cjs +12 -56
- package/lib/resources/stores.cjs.map +1 -1
- package/lib/resources/stores.d.cts +1 -1
- package/lib/resources/stores.d.ts +1 -1
- package/lib/resources/stores.js +10 -58
- package/lib/resources/stores.js.map +1 -1
- package/lib/resources/stripe_gateways.cjs +12 -40
- package/lib/resources/stripe_gateways.cjs.map +1 -1
- package/lib/resources/stripe_gateways.d.cts +1 -1
- package/lib/resources/stripe_gateways.d.ts +1 -1
- package/lib/resources/stripe_gateways.js +10 -42
- package/lib/resources/stripe_gateways.js.map +1 -1
- package/lib/resources/stripe_payments.cjs +12 -46
- package/lib/resources/stripe_payments.cjs.map +1 -1
- package/lib/resources/stripe_payments.d.cts +1 -1
- package/lib/resources/stripe_payments.d.ts +1 -1
- package/lib/resources/stripe_payments.js +10 -48
- package/lib/resources/stripe_payments.js.map +1 -1
- package/lib/resources/stripe_tax_accounts.cjs +12 -48
- package/lib/resources/stripe_tax_accounts.cjs.map +1 -1
- package/lib/resources/stripe_tax_accounts.d.cts +1 -1
- package/lib/resources/stripe_tax_accounts.d.ts +1 -1
- package/lib/resources/stripe_tax_accounts.js +10 -50
- package/lib/resources/stripe_tax_accounts.js.map +1 -1
- package/lib/resources/subscription_models.cjs +12 -40
- package/lib/resources/subscription_models.cjs.map +1 -1
- package/lib/resources/subscription_models.d.cts +1 -1
- package/lib/resources/subscription_models.d.ts +1 -1
- package/lib/resources/subscription_models.js +10 -42
- package/lib/resources/subscription_models.js.map +1 -1
- package/lib/resources/tags.cjs +12 -28
- package/lib/resources/tags.cjs.map +1 -1
- package/lib/resources/tags.d.cts +1 -1
- package/lib/resources/tags.d.ts +1 -1
- package/lib/resources/tags.js +10 -30
- package/lib/resources/tags.js.map +1 -1
- package/lib/resources/talon_one_accounts.cjs +12 -44
- package/lib/resources/talon_one_accounts.cjs.map +1 -1
- package/lib/resources/talon_one_accounts.d.cts +1 -1
- package/lib/resources/talon_one_accounts.d.ts +1 -1
- package/lib/resources/talon_one_accounts.js +10 -46
- package/lib/resources/talon_one_accounts.js.map +1 -1
- package/lib/resources/tax_calculators.cjs +12 -35
- package/lib/resources/tax_calculators.cjs.map +1 -1
- package/lib/resources/tax_calculators.d.cts +1 -1
- package/lib/resources/tax_calculators.d.ts +1 -1
- package/lib/resources/tax_calculators.js +10 -37
- package/lib/resources/tax_calculators.js.map +1 -1
- package/lib/resources/tax_categories.cjs +12 -40
- package/lib/resources/tax_categories.cjs.map +1 -1
- package/lib/resources/tax_categories.d.cts +1 -1
- package/lib/resources/tax_categories.d.ts +1 -1
- package/lib/resources/tax_categories.js +10 -42
- package/lib/resources/tax_categories.js.map +1 -1
- package/lib/resources/tax_rules.cjs +12 -36
- package/lib/resources/tax_rules.cjs.map +1 -1
- package/lib/resources/tax_rules.d.cts +1 -1
- package/lib/resources/tax_rules.d.ts +1 -1
- package/lib/resources/tax_rules.js +10 -38
- package/lib/resources/tax_rules.js.map +1 -1
- package/lib/resources/taxjar_accounts.cjs +12 -48
- package/lib/resources/taxjar_accounts.cjs.map +1 -1
- package/lib/resources/taxjar_accounts.d.cts +1 -1
- package/lib/resources/taxjar_accounts.d.ts +1 -1
- package/lib/resources/taxjar_accounts.js +10 -50
- package/lib/resources/taxjar_accounts.js.map +1 -1
- package/lib/resources/transactions.cjs +12 -35
- package/lib/resources/transactions.cjs.map +1 -1
- package/lib/resources/transactions.d.cts +1 -1
- package/lib/resources/transactions.d.ts +1 -1
- package/lib/resources/transactions.js +10 -37
- package/lib/resources/transactions.js.map +1 -1
- package/lib/resources/versions.cjs +12 -19
- package/lib/resources/versions.cjs.map +1 -1
- package/lib/resources/versions.d.cts +1 -1
- package/lib/resources/versions.d.ts +1 -1
- package/lib/resources/versions.js +10 -21
- package/lib/resources/versions.js.map +1 -1
- package/lib/resources/vertex_accounts.cjs +12 -47
- package/lib/resources/vertex_accounts.cjs.map +1 -1
- package/lib/resources/vertex_accounts.d.cts +1 -1
- package/lib/resources/vertex_accounts.d.ts +1 -1
- package/lib/resources/vertex_accounts.js +10 -49
- package/lib/resources/vertex_accounts.js.map +1 -1
- package/lib/resources/voids.cjs +12 -45
- package/lib/resources/voids.cjs.map +1 -1
- package/lib/resources/voids.d.cts +1 -1
- package/lib/resources/voids.d.ts +1 -1
- package/lib/resources/voids.js +10 -47
- package/lib/resources/voids.js.map +1 -1
- package/lib/resources/webhooks.cjs +12 -45
- package/lib/resources/webhooks.cjs.map +1 -1
- package/lib/resources/webhooks.d.cts +1 -1
- package/lib/resources/webhooks.d.ts +1 -1
- package/lib/resources/webhooks.js +10 -47
- package/lib/resources/webhooks.js.map +1 -1
- package/lib/resources/wire_transfers.cjs +12 -36
- package/lib/resources/wire_transfers.cjs.map +1 -1
- package/lib/resources/wire_transfers.d.cts +1 -1
- package/lib/resources/wire_transfers.d.ts +1 -1
- package/lib/resources/wire_transfers.js +10 -38
- package/lib/resources/wire_transfers.js.map +1 -1
- package/lib/static.cjs +16 -43
- package/lib/static.cjs.map +1 -1
- package/lib/static.d.cts +1 -1
- package/lib/static.d.ts +1 -1
- package/lib/static.js +11 -45
- package/lib/static.js.map +1 -1
- package/lib/util.cjs +20 -34
- package/lib/util.cjs.map +1 -1
- package/lib/util.js +2 -32
- package/lib/util.js.map +1 -1
- package/package.json +15 -4
@@ -0,0 +1,44 @@
|
|
1
|
+
import { ApiResource } from './chunk-XAABBRMY.js';
|
2
|
+
|
3
|
+
// src/resources/cleanups.ts
|
4
|
+
var Cleanups = class _Cleanups extends ApiResource {
|
5
|
+
static TYPE = "cleanups";
|
6
|
+
async create(resource, params, options) {
|
7
|
+
return this.resources.create({ ...resource, type: _Cleanups.TYPE }, params, options);
|
8
|
+
}
|
9
|
+
async update(resource, params, options) {
|
10
|
+
return this.resources.update({ ...resource, type: _Cleanups.TYPE }, params, options);
|
11
|
+
}
|
12
|
+
async delete(id, options) {
|
13
|
+
await this.resources.delete(typeof id === "string" ? { id, type: _Cleanups.TYPE } : id, options);
|
14
|
+
}
|
15
|
+
async events(cleanupId, params, options) {
|
16
|
+
const _cleanupId = cleanupId.id || cleanupId;
|
17
|
+
return this.resources.fetch({ type: "events" }, `cleanups/${_cleanupId}/events`, params, options);
|
18
|
+
}
|
19
|
+
async versions(cleanupId, params, options) {
|
20
|
+
const _cleanupId = cleanupId.id || cleanupId;
|
21
|
+
return this.resources.fetch({ type: "versions" }, `cleanups/${_cleanupId}/versions`, params, options);
|
22
|
+
}
|
23
|
+
async _interrupt(id, params, options) {
|
24
|
+
return this.resources.update({ id: typeof id === "string" ? id : id.id, type: _Cleanups.TYPE, _interrupt: true }, params, options);
|
25
|
+
}
|
26
|
+
isCleanup(resource) {
|
27
|
+
return resource.type && resource.type === _Cleanups.TYPE;
|
28
|
+
}
|
29
|
+
relationship(id) {
|
30
|
+
return super.relationshipOneToOne(id);
|
31
|
+
}
|
32
|
+
relationshipToMany(...ids) {
|
33
|
+
return super.relationshipOneToMany(...ids);
|
34
|
+
}
|
35
|
+
type() {
|
36
|
+
return _Cleanups.TYPE;
|
37
|
+
}
|
38
|
+
};
|
39
|
+
var instance = new Cleanups();
|
40
|
+
var cleanups_default = instance;
|
41
|
+
|
42
|
+
export { cleanups_default };
|
43
|
+
//# sourceMappingURL=chunk-3XWRLB2B.js.map
|
44
|
+
//# sourceMappingURL=chunk-3XWRLB2B.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"sources":["../src/resources/cleanups.ts"],"names":[],"mappings":";;;AAwGA,IAAM,QAAA,GAAN,MAAM,SAAA,SAAiB,WAAqB,CAAA;AAAA,EAE3C,OAAgB,IAAoB,GAAA,UAAA;AAAA,EAEpC,MAAM,MAAA,CAAO,QAAyB,EAAA,MAAA,EAAuC,OAA6C,EAAA;AACzH,IAAO,OAAA,IAAA,CAAK,SAAU,CAAA,MAAA,CAA+B,EAAE,GAAG,QAAU,EAAA,IAAA,EAAM,SAAS,CAAA,IAAA,EAAQ,EAAA,MAAA,EAAQ,OAAO,CAAA;AAAA;AAC3G,EAEA,MAAM,MAAA,CAAO,QAAyB,EAAA,MAAA,EAAuC,OAA6C,EAAA;AACzH,IAAO,OAAA,IAAA,CAAK,SAAU,CAAA,MAAA,CAA+B,EAAE,GAAG,QAAU,EAAA,IAAA,EAAM,SAAS,CAAA,IAAA,EAAQ,EAAA,MAAA,EAAQ,OAAO,CAAA;AAAA;AAC3G,EAEA,MAA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AA;AACxD,IAAO,OAAA,KAAA,CAAM,qBAAiC,EAAE,CAAA;AAAA;AACjD,EAEA,sBAAsB,GAA6B,EAAA;AAClD,IAAO,OAAA,KAAA,CAAM,qBAAkC,CAAA,GAAG,GAAG,CAAA;AAAA;AACtD,EAGA,IAAoB,GAAA;AACnB,IAAA,OAAO,SAAS,CAAA,IAAA;AAAA;AAGlB,CAAA;AAGA,IAAM,QAAA,GAAW,IAAI,QAAS,EAAA;AAC9B,IAAO,gBAAQ,GAAA","file":"chunk-3XWRLB2B.js","sourcesContent":["import { ApiResource } from '../resource'\nimport type { Resource, ResourceCreate, ResourceUpdate, ResourceId, ResourcesConfig, ResourceRel, ListResponse, ResourceSort, /* ResourceFilter */ } from '../resource'\nimport type { QueryParamsRetrieve, QueryParamsList } from '../query'\n\nimport type { Event } from './events'\nimport type { Version } from './versions'\n\n\ntype CleanupType = 'cleanups'\ntype CleanupRel = ResourceRel & { type: CleanupType }\n\n\nexport type CleanupSort = Pick<Cleanup, 'id' | 'resource_type' | 'status' | 'started_at' | 'completed_at' | 'interrupted_at' | 'records_count' | 'errors_count' | 'processed_count'> & ResourceSort\n// export type CleanupFilter = Pick<Cleanup, 'id' | 'resource_type' | 'status' | 'started_at' | 'completed_at' | 'interrupted_at' | 'records_count' | 'errors_count' | 'processed_count' | 'errors_log'> & ResourceFilter\n\n\ninterface Cleanup extends Resource {\n\t\n\treadonly type: CleanupType\n\n\t/** \n\t * The type of resource being cleaned.\n\t * @example ```\"skus\"```\n\t */\n\tresource_type: string\n\t/** \n\t * The cleanup job status. One of 'pending' (default), 'in_progress', 'interrupted', or 'completed'.\n\t * @example ```\"in_progress\"```\n\t */\n\tstatus: 'pending' | 'in_progress' | 'interrupted' | 'completed'\n\t/** \n\t * Time at which the cleanup was started.\n\t * @example ```\"2018-01-01T12:00:00.000Z\"```\n\t */\n\tstarted_at?: string | null\n\t/** \n\t * Time at which the cleanup was completed.\n\t * @example ```\"2018-01-01T12:00:00.000Z\"```\n\t */\n\tcompleted_at?: string | null\n\t/** \n\t * Time at which the cleanup was interrupted.\n\t * @example ```\"2018-01-01T12:00:00.000Z\"```\n\t */\n\tinterrupted_at?: string | null\n\t/** \n\t * The filters used to select the records to be cleaned.\n\t * @example ```{\"code_eq\":\"AAA\"}```\n\t */\n\tfilters?: Record<string, any> | null\n\t/** \n\t * Indicates the number of records to be cleaned.\n\t * @example ```300```\n\t */\n\trecords_count?: number | null\n\t/** \n\t * Indicates the number of cleanup errors, if any.\n\t * @example ```30```\n\t */\n\terrors_count?: number | null\n\t/** \n\t * Indicates the number of records that have been cleaned.\n\t * @example ```270```\n\t */\n\tprocessed_count?: number | null\n\t/** \n\t * Contains the cleanup errors, if any.\n\t * @example ```{\"ABC\":{\"name\":[\"has already been taken\"]}}```\n\t */\n\terrors_log?: Record<string, any> | null\n\n\tevents?: Event[] | null\n\tversions?: Version[] | null\n\n}\n\n\ninterface CleanupCreate extends ResourceCreate {\n\t\n\t/** \n\t * The type of resource being cleaned.\n\t * @example ```\"skus\"```\n\t */\n\tresource_type: string\n\t/** \n\t * The filters used to select the records to be cleaned.\n\t * @example ```{\"code_eq\":\"AAA\"}```\n\t */\n\tfilters?: Record<string, any> | null\n\t\n}\n\n\ninterface CleanupUpdate extends ResourceUpdate {\n\t\n\t/** \n\t * Send this attribute if you want to mark status as 'interrupted'.\n\t * @example ```true```\n\t */\n\t_interrupt?: boolean | null\n\t\n}\n\n\nclass Cleanups extends ApiResource<Cleanup> {\n\n\tstatic readonly TYPE: CleanupType = 'cleanups' as const\n\n\tasync create(resource: CleanupCreate, params?: QueryParamsRetrieve<Cleanup>, options?: ResourcesConfig): Promise<Cleanup> {\n\t\treturn this.resources.create<CleanupCreate, Cleanup>({ ...resource, type: Cleanups.TYPE }, params, options)\n\t}\n\n\tasync update(resource: CleanupUpdate, params?: QueryParamsRetrieve<Cleanup>, options?: ResourcesConfig): Promise<Cleanup> {\n\t\treturn this.resources.update<CleanupUpdate, Cleanup>({ ...resource, type: Cleanups.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: Cleanups.TYPE } : id, options)\n\t}\n\n\tasync events(cleanupId: string | Cleanup, params?: QueryParamsList<Event>, options?: ResourcesConfig): Promise<ListResponse<Event>> {\n\t\tconst _cleanupId = (cleanupId as Cleanup).id || cleanupId as string\n\t\treturn this.resources.fetch<Event>({ type: 'events' }, `cleanups/${_cleanupId}/events`, params, options) as unknown as ListResponse<Event>\n\t}\n\n\tasync versions(cleanupId: string | Cleanup, params?: QueryParamsList<Version>, options?: ResourcesConfig): Promise<ListResponse<Version>> {\n\t\tconst _cleanupId = (cleanupId as Cleanup).id || cleanupId as string\n\t\treturn this.resources.fetch<Version>({ type: 'versions' }, `cleanups/${_cleanupId}/versions`, params, options) as unknown as ListResponse<Version>\n\t}\n\n\tasync _interrupt(id: string | Cleanup, params?: QueryParamsRetrieve<Cleanup>, options?: ResourcesConfig): Promise<Cleanup> {\n\t\treturn this.resources.update<CleanupUpdate, Cleanup>({ id: (typeof id === 'string')? id: id.id, type: Cleanups.TYPE, _interrupt: true }, params, options)\n\t}\n\n\n\tisCleanup(resource: any): resource is Cleanup {\n\t\treturn resource.type && (resource.type === Cleanups.TYPE)\n\t}\n\n\n\trelationship(id: string | ResourceId | null): CleanupRel {\n\t\treturn super.relationshipOneToOne<CleanupRel>(id)\n\t}\n\n\trelationshipToMany(...ids: string[]): CleanupRel[] {\n\t\treturn super.relationshipOneToMany<CleanupRel>(...ids)\n\t}\n\n\n\ttype(): CleanupType {\n\t\treturn Cleanups.TYPE\n\t}\n\n}\n\n\nconst instance = new Cleanups()\nexport default instance\n\nexport type { Cleanups, Cleanup, CleanupCreate, CleanupUpdate, CleanupType }\n"]}
|
@@ -0,0 +1,52 @@
|
|
1
|
+
import { ApiResource } from './chunk-XAABBRMY.js';
|
2
|
+
|
3
|
+
// src/resources/external_tax_calculators.ts
|
4
|
+
var ExternalTaxCalculators = class _ExternalTaxCalculators extends ApiResource {
|
5
|
+
static TYPE = "external_tax_calculators";
|
6
|
+
async create(resource, params, options) {
|
7
|
+
return this.resources.create({ ...resource, type: _ExternalTaxCalculators.TYPE }, params, options);
|
8
|
+
}
|
9
|
+
async update(resource, params, options) {
|
10
|
+
return this.resources.update({ ...resource, type: _ExternalTaxCalculators.TYPE }, params, options);
|
11
|
+
}
|
12
|
+
async delete(id, options) {
|
13
|
+
await this.resources.delete(typeof id === "string" ? { id, type: _ExternalTaxCalculators.TYPE } : id, options);
|
14
|
+
}
|
15
|
+
async markets(externalTaxCalculatorId, params, options) {
|
16
|
+
const _externalTaxCalculatorId = externalTaxCalculatorId.id || externalTaxCalculatorId;
|
17
|
+
return this.resources.fetch({ type: "markets" }, `external_tax_calculators/${_externalTaxCalculatorId}/markets`, params, options);
|
18
|
+
}
|
19
|
+
async attachments(externalTaxCalculatorId, params, options) {
|
20
|
+
const _externalTaxCalculatorId = externalTaxCalculatorId.id || externalTaxCalculatorId;
|
21
|
+
return this.resources.fetch({ type: "attachments" }, `external_tax_calculators/${_externalTaxCalculatorId}/attachments`, params, options);
|
22
|
+
}
|
23
|
+
async events(externalTaxCalculatorId, params, options) {
|
24
|
+
const _externalTaxCalculatorId = externalTaxCalculatorId.id || externalTaxCalculatorId;
|
25
|
+
return this.resources.fetch({ type: "events" }, `external_tax_calculators/${_externalTaxCalculatorId}/events`, params, options);
|
26
|
+
}
|
27
|
+
async versions(externalTaxCalculatorId, params, options) {
|
28
|
+
const _externalTaxCalculatorId = externalTaxCalculatorId.id || externalTaxCalculatorId;
|
29
|
+
return this.resources.fetch({ type: "versions" }, `external_tax_calculators/${_externalTaxCalculatorId}/versions`, params, options);
|
30
|
+
}
|
31
|
+
async _reset_circuit(id, params, options) {
|
32
|
+
return this.resources.update({ id: typeof id === "string" ? id : id.id, type: _ExternalTaxCalculators.TYPE, _reset_circuit: true }, params, options);
|
33
|
+
}
|
34
|
+
isExternalTaxCalculator(resource) {
|
35
|
+
return resource.type && resource.type === _ExternalTaxCalculators.TYPE;
|
36
|
+
}
|
37
|
+
relationship(id) {
|
38
|
+
return super.relationshipOneToOne(id);
|
39
|
+
}
|
40
|
+
relationshipToMany(...ids) {
|
41
|
+
return super.relationshipOneToMany(...ids);
|
42
|
+
}
|
43
|
+
type() {
|
44
|
+
return _ExternalTaxCalculators.TYPE;
|
45
|
+
}
|
46
|
+
};
|
47
|
+
var instance = new ExternalTaxCalculators();
|
48
|
+
var external_tax_calculators_default = instance;
|
49
|
+
|
50
|
+
export { external_tax_calculators_default };
|
51
|
+
//# sourceMappingURL=chunk-3XZDDKD7.js.map
|
52
|
+
//# sourceMappingURL=chunk-3XZDDKD7.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"sources":["../src/resources/external_tax_calculators.ts"],"names":[],"mappings":";;;AA6FA,IAAM,sBAAA,GAAN,MAAM,uBAAA,SAA+B,WAAmC,CAAA;AAAA,EAEvE,OAAgB,IAAkC,GAAA,0BAAA;AAAA,EAElD,MAAM,MAAA,CAAO,QAAuC,EAAA,MAAA,EAAqD,OAA2D,EAAA;AACnK,IAAO,OAAA,IAAA,CAAK,SAAU,CAAA,MAAA,CAA2D,EAAE,GAAG,QAAU,EAAA,IAAA,EAAM,uBAAuB,CAAA,IAAA,EAAQ,EAAA,MAAA,EAAQ,OAAO,CAAA;AAAA;AACrJ,EAEA,MAAM,MAAA,CAAO,QAAuC,EAAA,MAAA,EAAqD,OAA2D,EAAA;AACnK,IAAO,OAAA,IAAA,CAAK,SAAU,CAAA,MAAA,CAA2D,EAAE,GAAG,QAAU,EAAA,IAAA,EAAM,uBAAuB,CAAA,IAAA,EAAQ,EAAA,MAAA,EAAQ,OAAO,CAAA;AAAA;AACrJ,EAEA,MAAM,MAAO,CAAA,EAAA,EAAyB,OAA0C,EAAA;AAC/E,IAAA,MAAM,IAAK,CAAA,SAAA,CAAU,MAAQ,CAAA,OAAO,EAAO,KAAA,QAAA,GAAW,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EAAG,CAA4B,yBAAA,EAAA,wBAAwB,CAAa,SAAA,CAAA,EAAA,MAAA,EAAQ,OAAO,CAAA;AAAA;AAC5I,EAEA,MAAM,cAAA,CAAe,EAAoC,EAAA,MAAA,EAAqD,OAA2D,EAAA;AACxK,IAAA,OAAO,KAAK,SAAU,CAAA,MAAA,CAA2D,EAAE,EAAK,EAAA,OAAO,OAAO,QAAW,GAAA,EAAA,GAAI,EAAG,CAAA,EAAA,EAAI,MAAM,uBAAuB,CAAA,IAAA,EAAM,gBAAgB,IAAK,EAAA,EAAG,QAAQ,OAAO,CAAA;AAAA;AACvM,EAGA,wBAAwB,QAAkD,EAAA;AACzE,IAAA,OAAO,QAAS,CAAA,IAAA,IAAS,QAAS,CAAA,IAAA,KAAS,uBAAuB,CAAA,IAAA;AAAA;AACnE,EAGA,aAAa,EAA0D,EAAA;AACtE,IAAO,OAAA,KAAA,CAAM,qBAA+C,EAAE,CAAA;AAAA;AAC/D,EAEA,sBAAsB,GAA2C,EAAA;AAChE,IAAO,OAAA,KAAA,CAAM,qBAAgD,CAAA,GAAG,GAAG,CAAA;AAAA;AACpE,EAGA,IAAkC,GAAA;AACjC,IAAA,OAAO,uBAAuB,CAAA,IAAA;AAAA;AAGhC,CAAA;AAGA,IAAM,QAAA,GAAW,IAAI,sBAAuB,EAAA;AAC5C,IAAO,gCAAQ,GAAA","file":"chunk-3XZDDKD7.js","sourcesContent":["import { ApiResource } from '../resource'\nimport type { Resource, ResourceCreate, ResourceUpdate, ResourceId, ResourcesConfig, ResourceRel, ListResponse, ResourceSort, /* ResourceFilter */ } from '../resource'\nimport type { QueryParamsRetrieve, QueryParamsList } from '../query'\n\nimport type { Market } from './markets'\nimport type { Attachment } from './attachments'\nimport type { Event } from './events'\nimport type { Version } from './versions'\n\n\ntype ExternalTaxCalculatorType = 'external_tax_calculators'\ntype ExternalTaxCalculatorRel = ResourceRel & { type: ExternalTaxCalculatorType }\n\n\nexport type ExternalTaxCalculatorSort = Pick<ExternalTaxCalculator, 'id' | 'name' | 'circuit_state' | 'circuit_failure_count'> & ResourceSort\n// export type ExternalTaxCalculatorFilter = Pick<ExternalTaxCalculator, 'id' | 'name' | 'circuit_state' | 'circuit_failure_count'> & ResourceFilter\n\n\ninterface ExternalTaxCalculator extends Resource {\n\t\n\treadonly type: ExternalTaxCalculatorType\n\n\t/** \n\t * The tax calculator's internal name.\n\t * @example ```\"Personal tax calculator\"```\n\t */\n\tname: string\n\t/** \n\t * The URL to the service that will compute the taxes.\n\t * @example ```\"https://external_calculator.yourbrand.com\"```\n\t */\n\ttax_calculator_url: string\n\t/** \n\t * The circuit breaker state, by default it is 'closed'. It can become 'open' once the number of consecutive failures overlaps the specified threshold, in such case no further calls to the failing callback are made.\n\t * @example ```\"closed\"```\n\t */\n\tcircuit_state?: string | null\n\t/** \n\t * The number of consecutive failures recorded by the circuit breaker associated to this resource, will be reset on first successful call to callback.\n\t * @example ```5```\n\t */\n\tcircuit_failure_count?: number | null\n\t/** \n\t * The shared secret used to sign the external request payload.\n\t * @example ```\"1c0994cc4e996e8c6ee56a2198f66f3c\"```\n\t */\n\tshared_secret: string\n\n\tmarkets?: Market[] | null\n\tattachments?: Attachment[] | null\n\tevents?: Event[] | null\n\tversions?: Version[] | null\n\n}\n\n\ninterface ExternalTaxCalculatorCreate extends ResourceCreate {\n\t\n\t/** \n\t * The tax calculator's internal name.\n\t * @example ```\"Personal tax calculator\"```\n\t */\n\tname: string\n\t/** \n\t * The URL to the service that will compute the taxes.\n\t * @example ```\"https://external_calculator.yourbrand.com\"```\n\t */\n\ttax_calculator_url: string\n\t\n}\n\n\ninterface ExternalTaxCalculatorUpdate extends ResourceUpdate {\n\t\n\t/** \n\t * The tax calculator's internal name.\n\t * @example ```\"Personal tax calculator\"```\n\t */\n\tname?: string | null\n\t/** \n\t * The URL to the service that will compute the taxes.\n\t * @example ```\"https://external_calculator.yourbrand.com\"```\n\t */\n\ttax_calculator_url?: string | null\n\t/** \n\t * Send this attribute if you want to reset the circuit breaker associated to this resource to 'closed' state and zero failures count. Cannot be passed by sales channels.\n\t * @example ```true```\n\t */\n\t_reset_circuit?: boolean | null\n\t\n}\n\n\nclass ExternalTaxCalculators extends ApiResource<ExternalTaxCalculator> {\n\n\tstatic readonly TYPE: ExternalTaxCalculatorType = 'external_tax_calculators' as const\n\n\tasync create(resource: ExternalTaxCalculatorCreate, params?: QueryParamsRetrieve<ExternalTaxCalculator>, options?: ResourcesConfig): Promise<ExternalTaxCalculator> {\n\t\treturn this.resources.create<ExternalTaxCalculatorCreate, ExternalTaxCalculator>({ ...resource, type: ExternalTaxCalculators.TYPE }, params, options)\n\t}\n\n\tasync update(resource: ExternalTaxCalculatorUpdate, params?: QueryParamsRetrieve<ExternalTaxCalculator>, options?: ResourcesConfig): Promise<ExternalTaxCalculator> {\n\t\treturn this.resources.update<ExternalTaxCalculatorUpdate, ExternalTaxCalculator>({ ...resource, type: ExternalTaxCalculators.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: ExternalTaxCalculators.TYPE } : id, options)\n\t}\n\n\tasync markets(externalTaxCalculatorId: string | ExternalTaxCalculator, params?: QueryParamsList<Market>, options?: ResourcesConfig): Promise<ListResponse<Market>> {\n\t\tconst _externalTaxCalculatorId = (externalTaxCalculatorId as ExternalTaxCalculator).id || externalTaxCalculatorId as string\n\t\treturn this.resources.fetch<Market>({ type: 'markets' }, `external_tax_calculators/${_externalTaxCalculatorId}/markets`, params, options) as unknown as ListResponse<Market>\n\t}\n\n\tasync attachments(externalTaxCalculatorId: string | ExternalTaxCalculator, params?: QueryParamsList<Attachment>, options?: ResourcesConfig): Promise<ListResponse<Attachment>> {\n\t\tconst _externalTaxCalculatorId = (externalTaxCalculatorId as ExternalTaxCalculator).id || externalTaxCalculatorId as string\n\t\treturn this.resources.fetch<Attachment>({ type: 'attachments' }, `external_tax_calculators/${_externalTaxCalculatorId}/attachments`, params, options) as unknown as ListResponse<Attachment>\n\t}\n\n\tasync events(externalTaxCalculatorId: string | ExternalTaxCalculator, params?: QueryParamsList<Event>, options?: ResourcesConfig): Promise<ListResponse<Event>> {\n\t\tconst _externalTaxCalculatorId = (externalTaxCalculatorId as ExternalTaxCalculator).id || externalTaxCalculatorId as string\n\t\treturn this.resources.fetch<Event>({ type: 'events' }, `external_tax_calculators/${_externalTaxCalculatorId}/events`, params, options) as unknown as ListResponse<Event>\n\t}\n\n\tasync versions(externalTaxCalculatorId: string | ExternalTaxCalculator, params?: QueryParamsList<Version>, options?: ResourcesConfig): Promise<ListResponse<Version>> {\n\t\tconst _externalTaxCalculatorId = (externalTaxCalculatorId as ExternalTaxCalculator).id || externalTaxCalculatorId as string\n\t\treturn this.resources.fetch<Version>({ type: 'versions' }, `external_tax_calculators/${_externalTaxCalculatorId}/versions`, params, options) as unknown as ListResponse<Version>\n\t}\n\n\tasync _reset_circuit(id: string | ExternalTaxCalculator, params?: QueryParamsRetrieve<ExternalTaxCalculator>, options?: ResourcesConfig): Promise<ExternalTaxCalculator> {\n\t\treturn this.resources.update<ExternalTaxCalculatorUpdate, ExternalTaxCalculator>({ id: (typeof id === 'string')? id: id.id, type: ExternalTaxCalculators.TYPE, _reset_circuit: true }, params, options)\n\t}\n\n\n\tisExternalTaxCalculator(resource: any): resource is ExternalTaxCalculator {\n\t\treturn resource.type && (resource.type === ExternalTaxCalculators.TYPE)\n\t}\n\n\n\trelationship(id: string | ResourceId | null): ExternalTaxCalculatorRel {\n\t\treturn super.relationshipOneToOne<ExternalTaxCalculatorRel>(id)\n\t}\n\n\trelationshipToMany(...ids: string[]): ExternalTaxCalculatorRel[] {\n\t\treturn super.relationshipOneToMany<ExternalTaxCalculatorRel>(...ids)\n\t}\n\n\n\ttype(): ExternalTaxCalculatorType {\n\t\treturn ExternalTaxCalculators.TYPE\n\t}\n\n}\n\n\nconst instance = new ExternalTaxCalculators()\nexport default instance\n\nexport type { ExternalTaxCalculators, ExternalTaxCalculator, ExternalTaxCalculatorCreate, ExternalTaxCalculatorUpdate, ExternalTaxCalculatorType }\n"]}
|
@@ -0,0 +1,27 @@
|
|
1
|
+
import { ApiSingleton } from './chunk-XAABBRMY.js';
|
2
|
+
|
3
|
+
// src/resources/organizations.ts
|
4
|
+
var Organizations = class _Organizations extends ApiSingleton {
|
5
|
+
static TYPE = "organizations";
|
6
|
+
isOrganization(resource) {
|
7
|
+
return resource.type && resource.type === _Organizations.TYPE;
|
8
|
+
}
|
9
|
+
relationship(id) {
|
10
|
+
return super.relationshipOneToOne(id);
|
11
|
+
}
|
12
|
+
relationshipToMany(...ids) {
|
13
|
+
return super.relationshipOneToMany(...ids);
|
14
|
+
}
|
15
|
+
type() {
|
16
|
+
return _Organizations.TYPE;
|
17
|
+
}
|
18
|
+
path() {
|
19
|
+
return "organization";
|
20
|
+
}
|
21
|
+
};
|
22
|
+
var instance = new Organizations();
|
23
|
+
var organizations_default = instance;
|
24
|
+
|
25
|
+
export { organizations_default };
|
26
|
+
//# sourceMappingURL=chunk-4E5DMBYD.js.map
|
27
|
+
//# sourceMappingURL=chunk-4E5DMBYD.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"sources":["../src/resources/organizations.ts"],"names":[],"mappings":";;;AA2PA,IAAM,aAAA,GAAN,MAAM,cAAA,SAAsB,YAA2B,CAAA;AAAA,EAEtD,OAAgB,IAAyB,GAAA,eAAA;AAAA,EAKzC,eAAe,QAAyC,EAAA;AACvD,IAAA,OAAO,QAAS,CAAA,IAAA,IAAS,QAAS,CAAA,IAAA,KAAS,cAAc,CAAA,IAAA;AAAA;AAC1D,EAGA,aAAa,EAAiD,EAAA;AAC7D,IAAO,OAAA,KAAA,CAAM,qBAAsC,EAAE,CAAA;AAAA;AACtD,EAEA,sBAAsB,GAAkC,EAAA;AACvD,IAAO,OAAA,KAAA,CAAM,qBAAuC,CAAA,GAAG,GAAG,CAAA;AAAA;AAC3D,EAGA,IAAyB,GAAA;AACxB,IAAA,OAAO,cAAc,CAAA,IAAA;AAAA;AACtB,EAEA,IAAe,GAAA;AACd,IAAO,OAAA,cAAA;AAAA;AAGT,CAAA;AAGA,IAAM,QAAA,GAAW,IAAI,aAAc,EAAA;AACnC,IAAO,qBAAQ,GAAA","file":"chunk-4E5DMBYD.js","sourcesContent":["import { ApiSingleton } from '../resource'\nimport type { Resource, ResourceId, ResourceRel, ResourceSort, /* ResourceFilter */ } from '../resource'\n\n\n\n\ntype OrganizationType = 'organizations'\ntype OrganizationRel = ResourceRel & { type: OrganizationType }\n\n\nexport type OrganizationSort = Pick<Organization, 'id'> & ResourceSort\n// export type OrganizationFilter = Pick<Organization, 'id'> & ResourceFilter\n\n\ninterface Organization extends Resource {\n\t\n\treadonly type: OrganizationType\n\n\t/** \n\t * The organization's internal name.\n\t * @example ```\"The Blue Brand\"```\n\t */\n\tname?: string | null\n\t/** \n\t * The organization's slug name.\n\t * @example ```\"the-blue-brand\"```\n\t */\n\tslug?: string | null\n\t/** \n\t * The organization's domain.\n\t * @example ```\"the-blue-brand.commercelayer.io\"```\n\t */\n\tdomain?: string | null\n\t/** \n\t * The organization's support phone.\n\t * @example ```\"+01 30800857\"```\n\t */\n\tsupport_phone?: string | null\n\t/** \n\t * The organization's support email.\n\t * @example ```\"support@bluebrand.com\"```\n\t */\n\tsupport_email?: string | null\n\t/** \n\t * The URL to the organization's logo.\n\t * @example ```\"https://bluebrand.com/img/logo.svg\"```\n\t */\n\tlogo_url?: string | null\n\t/** \n\t * The URL to the organization's favicon.\n\t * @example ```\"https://bluebrand.com/img/favicon.ico\"```\n\t */\n\tfavicon_url?: string | null\n\t/** \n\t * The organization's primary color.\n\t * @example ```\"#C8984E\"```\n\t */\n\tprimary_color?: string | null\n\t/** \n\t * The organization's Google Tag Manager ID.\n\t * @example ```\"GTM-5FJXX6\"```\n\t */\n\tgtm_id?: string | null\n\t/** \n\t * The organization's Google Tag Manager ID for test.\n\t * @example ```\"GTM-5FJXX7\"```\n\t */\n\tgtm_id_test?: string | null\n\t/** \n\t * The organization's configuration.\n\t * @example ```{\"mfe\":{\"default\":{\"links\":{\"cart\":\"https://cart.example.com/:order_id?accessToken=:access_token\",\"checkout\":\"https://checkout.example.com/:order_id?accessToken=:accessToken\",\"identity\":\"https://example.com/login\",\"microstore\":\"https://example.com/microstore/?accessToken=:access_token\",\"my_account\":\"https://example.com/my-custom-account?accessToken=:access_token\"},\"checkout\":{\"thankyou_page\":\"https://example.com/thanks/:lang/:orderId\",\"billing_countries\":[{\"value\":\"ES\",\"label\":\"Espana\"},{\"value\":\"IT\",\"label\":\"Italia\"},{\"value\":\"US\",\"label\":\"Unites States of America\"}],\"shipping_countries\":[{\"value\":\"ES\",\"label\":\"Espana\"},{\"value\":\"IT\",\"label\":\"Italia\"},{\"value\":\"US\",\"label\":\"Unites States of America\"}],\"billing_states\":{\"FR\":[{\"value\":\"PA\",\"label\":\"Paris\"},{\"value\":\"LY\",\"label\":\"Lyon\"},{\"value\":\"NI\",\"label\":\"Nice\"},{\"value\":\"MA\",\"label\":\"Marseille\"},{\"value\":\"BO\",\"label\":\"Bordeaux\"}]},\"shipping_states\":{\"FR\":[{\"value\":\"PA\",\"label\":\"Paris\"},{\"value\":\"LY\",\"label\":\"Lyon\"},{\"value\":\"NI\",\"label\":\"Nice\"},{\"value\":\"MA\",\"label\":\"Marseille\"},{\"value\":\"BO\",\"label\":\"Bordeaux\"}]},\"default_country\":\"US\"},\"urls\":{\"privacy\":\"https://example.com/privacy/:lang\",\"terms\":\"https://example.com/terms/:lang\"}},\"market:id:ZKcv13rT\":{\"links\":{\"cart\":\"https://example.com/custom-cart/:order_id?accessToken=:access_token\"},\"checkout\":{\"thankyou_page\":\"https://example.com/thanks/:order_id\"}}}}```\n\t */\n\tconfig?: Record<string, any> | null\n\t/** \n\t * Enables the redirect on the new Auth API.\n\t * @example ```true```\n\t */\n\tapi_auth_redirect?: boolean | null\n\t/** \n\t * Enables the rules engine for flex promotions and price list rules.\n\t */\n\tapi_rules_engine?: boolean | null\n\t/** \n\t * The fallback maximum number of conditions within a rules payload on a ruleable object, default is 150.\n\t * @example ```150```\n\t */\n\tapi_rules_engine_max_conditions_size?: number | null\n\t/** \n\t * The fallback maximum number of rules within a rules payload on a ruleable object, default is 15.\n\t * @example ```15```\n\t */\n\tapi_rules_engine_max_rules_size?: number | null\n\t/** \n\t * Forces the usage of the new Authentication API.\n\t * @example ```true```\n\t */\n\tapi_new_auth?: boolean | null\n\t/** \n\t * Enables the purge of cached single resources when list is purged.\n\t */\n\tapi_purge_single_resource?: boolean | null\n\t/** \n\t * The maximum length for the regular expressions, default is 5000.\n\t * @example ```5000```\n\t */\n\tapi_max_regex_length?: number | null\n\t/** \n\t * Indicates if the phone attribute is required for addresses, default is true.\n\t * @example ```true```\n\t */\n\taddresses_phone_required?: boolean | null\n\t/** \n\t * The minimum lapse in fraction of seconds to be observed between two consecutive order refreshes. If refresh is triggered within the minimum lapse, the update is performed, but no order refresh is done, until the lapse is observed.\n\t */\n\torders_min_refresh_lapse?: number | null\n\t/** \n\t * The maximum number line items allowed for a test order before disabling the autorefresh option.\n\t * @example ```50```\n\t */\n\torders_autorefresh_cutoff_test?: number | null\n\t/** \n\t * The maximum number line items allowed for a live order before disabling the autorefresh option.\n\t * @example ```500```\n\t */\n\torders_autorefresh_cutoff_live?: number | null\n\t/** \n\t * Enables orders number editing as a string in test (for enterprise plans only).\n\t */\n\torders_number_editable_test?: boolean | null\n\t/** \n\t * Enables orders number editing as a string in live (for enterprise plans only).\n\t */\n\torders_number_editable_live?: boolean | null\n\t/** \n\t * Enables to use the order number as payment reference on supported gateways.\n\t * @example ```true```\n\t */\n\torders_number_as_reference?: boolean | null\n\t/** \n\t * Enables raising of API errors in case the provided coupon code is invalid, default is true.\n\t * @example ```true```\n\t */\n\torders_invalid_coupon_errors?: boolean | null\n\t/** \n\t * The maximum number of SKUs allowed for bundles, default is 10.\n\t * @example ```10```\n\t */\n\tbundles_max_items_count?: number | null\n\t/** \n\t * The minimum length for coupon code, default is 8.\n\t * @example ```8```\n\t */\n\tcoupons_min_code_length?: number | null\n\t/** \n\t * The maximum length for coupon code, default is 40.\n\t * @example ```40```\n\t */\n\tcoupons_max_code_length?: number | null\n\t/** \n\t * The minimum length for gift card code, default is 8.\n\t * @example ```8```\n\t */\n\tgift_cards_min_code_length?: number | null\n\t/** \n\t * The maximum length for gift card code, default is 40.\n\t * @example ```40```\n\t */\n\tgift_cards_max_code_length?: number | null\n\t/** \n\t * The maximum number of concurrent cleanups allowed for your organization, default is 10.\n\t * @example ```10```\n\t */\n\tcleanups_max_concurrent_count?: number | null\n\t/** \n\t * The maximum number of concurrent exports allowed for your organization, default is 10.\n\t * @example ```10```\n\t */\n\texports_max_concurrent_count?: number | null\n\t/** \n\t * The maximum number of concurrent imports allowed for your organization, default is 10.\n\t * @example ```10```\n\t */\n\timports_max_concurrent_count?: number | null\n\t/** \n\t * Enables purging of cached resources upon succeeded imports.\n\t * @example ```true```\n\t */\n\timports_purge_cache?: boolean | null\n\t/** \n\t * Disables the interruption of the import in case its errors exceeds the 10% threshold, default is false.\n\t */\n\timports_skip_errors?: boolean | null\n\t/** \n\t * The maximum number of active concurrent promotions allowed for your organization, default is 10.\n\t * @example ```10```\n\t */\n\tpromotions_max_concurrent_count?: number | null\n\t/** \n\t * The maximum number of conditions within a rules payload on a promotion object, default is 150.\n\t * @example ```150```\n\t */\n\tpromotions_max_conditions_size?: number | null\n\t/** \n\t * The maximum number of rules within a rules payload on a promotion object, default is 15.\n\t * @example ```15```\n\t */\n\tpromotions_max_rules_size?: number | null\n\t/** \n\t * The maximum number of conditions within a rules payload on a price list object, default is 150.\n\t * @example ```150```\n\t */\n\tprice_lists_max_conditions_size?: number | null\n\t/** \n\t * The maximum number of rules within a rules payload on a price list object, default is 15.\n\t * @example ```15```\n\t */\n\tprice_lists_max_rules_size?: number | null\n\t/** \n\t * Enables triggering of webhooks during imports, default is false.\n\t */\n\timports_trigger_webhooks?: number | null\n\t/** \n\t * Enables the use of an external discount engine in place of the standard one, default is false.\n\t */\n\tdiscount_engines_enabled?: boolean | null\n\t/** \n\t * Enables raising of API errors in case of discount engine failure, default is false.\n\t */\n\tdiscount_engines_errors?: boolean | null\n\t/** \n\t * The maximum length for the tag name, default is 25.\n\t * @example ```25```\n\t */\n\ttags_max_name_length?: number | null\n\t/** \n\t * The maximum allowed number of tags for each resource, default is 10.\n\t * @example ```10```\n\t */\n\ttags_max_allowed_number?: number | null\n\t/** \n\t * Enables raising of API errors in case of tax calculation failure, default is false.\n\t */\n\ttax_calculators_errors?: boolean | null\n\t/** \n\t * Enables raising of API errors in case of external promotion failure, default is false.\n\t */\n\texternal_promotions_errors?: boolean | null\n\t\n}\n\n\nclass Organizations extends ApiSingleton<Organization> {\n\n\tstatic readonly TYPE: OrganizationType = 'organizations' as const\n\n\t\n\n\n\tisOrganization(resource: any): resource is Organization {\n\t\treturn resource.type && (resource.type === Organizations.TYPE)\n\t}\n\n\n\trelationship(id: string | ResourceId | null): OrganizationRel {\n\t\treturn super.relationshipOneToOne<OrganizationRel>(id)\n\t}\n\n\trelationshipToMany(...ids: string[]): OrganizationRel[] {\n\t\treturn super.relationshipOneToMany<OrganizationRel>(...ids)\n\t}\n\n\n\ttype(): OrganizationType {\n\t\treturn Organizations.TYPE\n\t}\n\n\tpath(): string {\n\t\treturn 'organization'\n\t}\n\n}\n\n\nconst instance = new Organizations()\nexport default instance\n\nexport type { Organizations, Organization, OrganizationType }\n"]}
|
@@ -0,0 +1,50 @@
|
|
1
|
+
'use strict';
|
2
|
+
|
3
|
+
var chunkVRXXWQRL_cjs = require('./chunk-VRXXWQRL.cjs');
|
4
|
+
|
5
|
+
// src/resources/satispay_payments.ts
|
6
|
+
var SatispayPayments = class _SatispayPayments extends chunkVRXXWQRL_cjs.ApiResource {
|
7
|
+
static TYPE = "satispay_payments";
|
8
|
+
async create(resource, params, options) {
|
9
|
+
return this.resources.create({ ...resource, type: _SatispayPayments.TYPE }, params, options);
|
10
|
+
}
|
11
|
+
async update(resource, params, options) {
|
12
|
+
return this.resources.update({ ...resource, type: _SatispayPayments.TYPE }, params, options);
|
13
|
+
}
|
14
|
+
async delete(id, options) {
|
15
|
+
await this.resources.delete(typeof id === "string" ? { id, type: _SatispayPayments.TYPE } : id, options);
|
16
|
+
}
|
17
|
+
async order(satispayPaymentId, params, options) {
|
18
|
+
const _satispayPaymentId = satispayPaymentId.id || satispayPaymentId;
|
19
|
+
return this.resources.fetch({ type: "orders" }, `satispay_payments/${_satispayPaymentId}/order`, params, options);
|
20
|
+
}
|
21
|
+
async payment_gateway(satispayPaymentId, params, options) {
|
22
|
+
const _satispayPaymentId = satispayPaymentId.id || satispayPaymentId;
|
23
|
+
return this.resources.fetch({ type: "payment_gateways" }, `satispay_payments/${_satispayPaymentId}/payment_gateway`, params, options);
|
24
|
+
}
|
25
|
+
async versions(satispayPaymentId, params, options) {
|
26
|
+
const _satispayPaymentId = satispayPaymentId.id || satispayPaymentId;
|
27
|
+
return this.resources.fetch({ type: "versions" }, `satispay_payments/${_satispayPaymentId}/versions`, params, options);
|
28
|
+
}
|
29
|
+
async _refresh(id, params, options) {
|
30
|
+
return this.resources.update({ id: typeof id === "string" ? id : id.id, type: _SatispayPayments.TYPE, _refresh: true }, params, options);
|
31
|
+
}
|
32
|
+
isSatispayPayment(resource) {
|
33
|
+
return resource.type && resource.type === _SatispayPayments.TYPE;
|
34
|
+
}
|
35
|
+
relationship(id) {
|
36
|
+
return super.relationshipOneToOne(id);
|
37
|
+
}
|
38
|
+
relationshipToMany(...ids) {
|
39
|
+
return super.relationshipOneToMany(...ids);
|
40
|
+
}
|
41
|
+
type() {
|
42
|
+
return _SatispayPayments.TYPE;
|
43
|
+
}
|
44
|
+
};
|
45
|
+
var instance = new SatispayPayments();
|
46
|
+
var satispay_payments_default = instance;
|
47
|
+
|
48
|
+
exports.satispay_payments_default = satispay_payments_default;
|
49
|
+
//# sourceMappingURL=chunk-4FIUTSQX.cjs.map
|
50
|
+
//# sourceMappingURL=chun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AAA,OAAO,iBAAiB,CAAA,IAAA;AAAA;AAG1B,CAAA;AAGA,IAAM,QAAA,GAAW,IAAI,gBAAiB,EAAA;AACtC,IAAO,yBAAQ,GAAA","file":"chunk-4FIUTSQX.cjs","sourcesContent":["import { ApiResource } from '../resource'\nimport type { Resource, ResourceCreate, ResourceUpdate, ResourceId, ResourcesConfig, ResourceRel, ListResponse, ResourceSort, /* ResourceFilter */ } from '../resource'\nimport type { QueryParamsRetrieve, QueryParamsList } from '../query'\n\nimport type { Order, OrderType } from './orders'\nimport type { PaymentGateway } from './payment_gateways'\nimport type { Version } from './versions'\n\n\ntype SatispayPaymentType = 'satispay_payments'\ntype SatispayPaymentRel = ResourceRel & { type: SatispayPaymentType }\ntype OrderRel = ResourceRel & { type: OrderType }\n\n\nexport type SatispayPaymentSort = Pick<SatispayPayment, 'id' | 'flow' | 'status'> & ResourceSort\n// export type SatispayPaymentFilter = Pick<SatispayPayment, 'id' | 'flow' | 'status'> & ResourceFilter\n\n\ninterface SatispayPayment extends Resource {\n\t\n\treadonly type: SatispayPaymentType\n\n\t/** \n\t * The payment unique identifier.\n\t * @example ```\"xxxx-yyyy-zzzz\"```\n\t */\n\tpayment_id?: string | null\n\t/** \n\t * The Satispay payment flow, inspect gateway API details for more information.\n\t * @example ```\"MATCH_CODE\"```\n\t */\n\tflow?: string | null\n\t/** \n\t * The Satispay payment status.\n\t * @example ```\"PENDING\"```\n\t */\n\tstatus?: string | null\n\t/** \n\t * The url to redirect the customer after the payment flow is completed.\n\t * @example ```\"http://commercelayer.dev/satispay/redirect\"```\n\t */\n\tredirect_url?: string | null\n\t/** \n\t * Redirect url to the payment page.\n\t * @example ```\"https://online.satispay.com/pay/xxxx-yyyy-zzzz?redirect_url={redirect_url}\"```\n\t */\n\tpayment_url?: string | null\n\t/** \n\t * The Satispay 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 * 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\n}\n\n\ninterface SatispayPaymentCreate extends ResourceCreate {\n\t\n\t/** \n\t * The Satispay payment flow, inspect gateway API details for more information.\n\t * @example ```\"MATCH_CODE\"```\n\t */\n\tflow?: string | null\n\t/** \n\t * The url to redirect the customer after the payment flow is completed.\n\t * @example ```\"http://commercelayer.dev/satispay/redirect\"```\n\t */\n\tredirect_url?: string | null\n\n\torder: OrderRel\n\n}\n\n\ninterface SatispayPaymentUpdate extends ResourceUpdate {\n\t\n\t/** \n\t * The url to redirect the customer after the payment flow is completed.\n\t * @example ```\"http://commercelayer.dev/satispay/redirect\"```\n\t */\n\tredirect_url?: string | 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 SatispayPayments extends ApiResource<SatispayPayment> {\n\n\tstatic readonly TYPE: SatispayPaymentType = 'satispay_payments' as const\n\n\tasync create(resource: SatispayPaymentCreate, params?: QueryParamsRetrieve<SatispayPayment>, options?: ResourcesConfig): Promise<SatispayPayment> {\n\t\treturn this.resources.create<SatispayPaymentCreate, SatispayPayment>({ ...resource, type: SatispayPayments.TYPE }, params, options)\n\t}\n\n\tasync update(resource: SatispayPaymentUpdate, params?: QueryParamsRetrieve<SatispayPayment>, options?: ResourcesConfig): Promise<SatispayPayment> {\n\t\treturn this.resources.update<SatispayPaymentUpdate, SatispayPayment>({ ...resource, type: SatispayPayments.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: SatispayPayments.TYPE } : id, options)\n\t}\n\n\tasync order(satispayPaymentId: string | SatispayPayment, params?: QueryParamsRetrieve<Order>, options?: ResourcesConfig): Promise<Order> {\n\t\tconst _satispayPaymentId = (satispayPaymentId as SatispayPayment).id || satispayPaymentId as string\n\t\treturn this.resources.fetch<Order>({ type: 'orders' }, `satispay_payments/${_satispayPaymentId}/order`, params, options) as unknown as Order\n\t}\n\n\tasync payment_gateway(satispayPaymentId: string | SatispayPayment, params?: QueryParamsRetrieve<PaymentGateway>, options?: ResourcesConfig): Promise<PaymentGateway> {\n\t\tconst _satispayPaymentId = (satispayPaymentId as SatispayPayment).id || satispayPaymentId as string\n\t\treturn this.resources.fetch<PaymentGateway>({ type: 'payment_gateways' }, `satispay_payments/${_satispayPaymentId}/payment_gateway`, params, options) as unknown as PaymentGateway\n\t}\n\n\tasync versions(satispayPaymentId: string | SatispayPayment, params?: QueryParamsList<Version>, options?: ResourcesConfig): Promise<ListResponse<Version>> {\n\t\tconst _satispayPaymentId = (satispayPaymentId as SatispayPayment).id || satispayPaymentId as string\n\t\treturn this.resources.fetch<Version>({ type: 'versions' }, `satispay_payments/${_satispayPaymentId}/versions`, params, options) as unknown as ListResponse<Version>\n\t}\n\n\tasync _refresh(id: string | SatispayPayment, params?: QueryParamsRetrieve<SatispayPayment>, options?: ResourcesConfig): Promise<SatispayPayment> {\n\t\treturn this.resources.update<SatispayPaymentUpdate, SatispayPayment>({ id: (typeof id === 'string')? id: id.id, type: SatispayPayments.TYPE, _refresh: true }, params, options)\n\t}\n\n\n\tisSatispayPayment(resource: any): resource is SatispayPayment {\n\t\treturn resource.type && (resource.type === SatispayPayments.TYPE)\n\t}\n\n\n\trelationship(id: string | ResourceId | null): SatispayPaymentRel {\n\t\treturn super.relationshipOneToOne<SatispayPaymentRel>(id)\n\t}\n\n\trelationshipToMany(...ids: string[]): SatispayPaymentRel[] {\n\t\treturn super.relationshipOneToMany<SatispayPaymentRel>(...ids)\n\t}\n\n\n\ttype(): SatispayPaymentType {\n\t\treturn SatispayPayments.TYPE\n\t}\n\n}\n\n\nconst instance = new SatispayPayments()\nexport default instance\n\nexport type { SatispayPayments, SatispayPayment, SatispayPaymentCreate, SatispayPaymentUpdate, SatispayPaymentType }\n"]}
|
@@ -0,0 +1,39 @@
|
|
1
|
+
'use strict';
|
2
|
+
|
3
|
+
var chunkVRXXWQRL_cjs = require('./chunk-VRXXWQRL.cjs');
|
4
|
+
|
5
|
+
// src/resources/adjustments.ts
|
6
|
+
var Adjustments = class _Adjustments extends chunkVRXXWQRL_cjs.ApiResource {
|
7
|
+
static TYPE = "adjustments";
|
8
|
+
async create(resource, params, options) {
|
9
|
+
return this.resources.create({ ...resource, type: _Adjustments.TYPE }, params, options);
|
10
|
+
}
|
11
|
+
async update(resource, params, options) {
|
12
|
+
return this.resources.update({ ...resource, type: _Adjustments.TYPE }, params, options);
|
13
|
+
}
|
14
|
+
async delete(id, options) {
|
15
|
+
await this.resources.delete(typeof id === "string" ? { id, type: _Adjustments.TYPE } : id, options);
|
16
|
+
}
|
17
|
+
async versions(adjustmentId, params, options) {
|
18
|
+
const _adjustmentId = adjustmentId.id || adjustmentId;
|
19
|
+
return this.resources.fetch({ type: "versions" }, `adjustments/${_adjustmentId}/versions`, params, options);
|
20
|
+
}
|
21
|
+
isAdjustment(resource) {
|
22
|
+
return resource.type && resource.type === _Adjustments.TYPE;
|
23
|
+
}
|
24
|
+
relationship(id) {
|
25
|
+
return super.relationshipOneToOne(id);
|
26
|
+
}
|
27
|
+
relationshipToMany(...ids) {
|
28
|
+
return super.relationshipOneToMany(...ids);
|
29
|
+
}
|
30
|
+
type() {
|
31
|
+
return _Adjustments.TYPE;
|
32
|
+
}
|
33
|
+
};
|
34
|
+
var instance = new Adjustments();
|
35
|
+
var adjustments_default = instance;
|
36
|
+
|
37
|
+
exports.adjustments_default = adjustments_default;
|
38
|
+
//# sourceMappingURL=chunk-4IUCSBQJ.cjs.map
|
39
|
+
//# sourceMappingURL=chunk-4IUCSBQJ.cjs.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"sources":["../src/resources/adj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D,EAGA,aAAa,EAA+C,EAAA;AAC3D,IAAO,OAAA,KAAA,CAAM,qBAAoC,EAAE,CAAA;AAAA;AACpD,EAEA,sBAAsB,GAAgC,EAAA;AACrD,IAAO,OAAA,KAAA,CAAM,qBAAqC,CAAA,GAAG,GAAG,CAAA;AAAA;AACzD,EAGA,IAAuB,GAAA;AACtB,IAAA,OAAO,YAAY,CAAA,IAAA;AAAA;AAGrB,CAAA;AAGA,IAAM,QAAA,GAAW,IAAI,WAAY,EAAA;AACjC,IAAO,mBAAQ,GAAA","file":"chunk-4IUCSBQJ.cjs","sourcesContent":["import { ApiResource } from '../resource'\nimport type { Resource, ResourceCreate, ResourceUpdate, ResourceId, ResourcesConfig, ResourceRel, ListResponse, ResourceSort, /* ResourceFilter */ } from '../resource'\nimport type { QueryParamsRetrieve, QueryParamsList } from '../query'\n\nimport type { Version } from './versions'\n\n\ntype AdjustmentType = 'adjustments'\ntype AdjustmentRel = ResourceRel & { type: AdjustmentType }\n\n\nexport type AdjustmentSort = Pick<Adjustment, 'id' | 'name' | 'currency_code' | 'amount_cents'> & ResourceSort\n// export type AdjustmentFilter = Pick<Adjustment, 'id' | 'name' | 'currency_code' | 'amount_cents'> & ResourceFilter\n\n\ninterface Adjustment extends Resource {\n\t\n\treadonly type: AdjustmentType\n\n\t/** \n\t * The adjustment name.\n\t * @example ```\"Additional service\"```\n\t */\n\tname: string\n\t/** \n\t * The international 3-letter currency code as defined by the ISO 4217 standard.\n\t * @example ```\"EUR\"```\n\t */\n\tcurrency_code: string\n\t/** \n\t * The adjustment amount, in cents.\n\t * @example ```1500```\n\t */\n\tamount_cents: number\n\t/** \n\t * The adjustment amount, float.\n\t * @example ```15```\n\t */\n\tamount_float: number\n\t/** \n\t * The adjustment amount, formatted.\n\t * @example ```\"€15,00\"```\n\t */\n\tformatted_amount: string\n\t/** \n\t * Indicates if negative adjustment amount is distributed for tax calculation.\n\t * @example ```true```\n\t */\n\tdistribute_discount?: boolean | null\n\n\tversions?: Version[] | null\n\n}\n\n\ninterface AdjustmentCreate extends ResourceCreate {\n\t\n\t/** \n\t * The adjustment name.\n\t * @example ```\"Additional service\"```\n\t */\n\tname: string\n\t/** \n\t * The international 3-letter currency code as defined by the ISO 4217 standard.\n\t * @example ```\"EUR\"```\n\t */\n\tcurrency_code: string\n\t/** \n\t * The adjustment amount, in cents.\n\t * @example ```1500```\n\t */\n\tamount_cents: number\n\t/** \n\t * Indicates if negative adjustment amount is distributed for tax calculation.\n\t * @example ```true```\n\t */\n\tdistribute_discount?: boolean | null\n\t\n}\n\n\ninterface AdjustmentUpdate extends ResourceUpdate {\n\t\n\t/** \n\t * The adjustment name.\n\t * @example ```\"Additional service\"```\n\t */\n\tname?: string | null\n\t/** \n\t * The international 3-letter currency code as defined by the ISO 4217 standard.\n\t * @example ```\"EUR\"```\n\t */\n\tcurrency_code?: string | null\n\t/** \n\t * The adjustment amount, in cents.\n\t * @example ```1500```\n\t */\n\tamount_cents?: number | null\n\t/** \n\t * Indicates if negative adjustment amount is distributed for tax calculation.\n\t * @example ```true```\n\t */\n\tdistribute_discount?: boolean | null\n\t\n}\n\n\nclass Adjustments extends ApiResource<Adjustment> {\n\n\tstatic readonly TYPE: AdjustmentType = 'adjustments' as const\n\n\tasync create(resource: AdjustmentCreate, params?: QueryParamsRetrieve<Adjustment>, options?: ResourcesConfig): Promise<Adjustment> {\n\t\treturn this.resources.create<AdjustmentCreate, Adjustment>({ ...resource, type: Adjustments.TYPE }, params, options)\n\t}\n\n\tasync update(resource: AdjustmentUpdate, params?: QueryParamsRetrieve<Adjustment>, options?: ResourcesConfig): Promise<Adjustment> {\n\t\treturn this.resources.update<AdjustmentUpdate, Adjustment>({ ...resource, type: Adjustments.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: Adjustments.TYPE } : id, options)\n\t}\n\n\tasync versions(adjustmentId: string | Adjustment, params?: QueryParamsList<Version>, options?: ResourcesConfig): Promise<ListResponse<Version>> {\n\t\tconst _adjustmentId = (adjustmentId as Adjustment).id || adjustmentId as string\n\t\treturn this.resources.fetch<Version>({ type: 'versions' }, `adjustments/${_adjustmentId}/versions`, params, options) as unknown as ListResponse<Version>\n\t}\n\n\n\tisAdjustment(resource: any): resource is Adjustment {\n\t\treturn resource.type && (resource.type === Adjustments.TYPE)\n\t}\n\n\n\trelationship(id: string | ResourceId | null): AdjustmentRel {\n\t\treturn super.relationshipOneToOne<AdjustmentRel>(id)\n\t}\n\n\trelationshipToMany(...ids: string[]): AdjustmentRel[] {\n\t\treturn super.relationshipOneToMany<AdjustmentRel>(...ids)\n\t}\n\n\n\ttype(): AdjustmentType {\n\t\treturn Adjustments.TYPE\n\t}\n\n}\n\n\nconst instance = new Adjustments()\nexport default instance\n\nexport type { Adjustments, Adjustment, AdjustmentCreate, AdjustmentUpdate, AdjustmentType }\n"]}
|
@@ -0,0 +1,66 @@
|
|
1
|
+
'use strict';
|
2
|
+
|
3
|
+
var chunkVRXXWQRL_cjs = require('./chunk-VRXXWQRL.cjs');
|
4
|
+
|
5
|
+
// src/resources/stock_reservations.ts
|
6
|
+
var StockReservations = class _StockReservations extends chunkVRXXWQRL_cjs.ApiResource {
|
7
|
+
static TYPE = "stock_reservations";
|
8
|
+
async create(resource, params, options) {
|
9
|
+
return this.resources.create({ ...resource, type: _StockReservations.TYPE }, params, options);
|
10
|
+
}
|
11
|
+
async update(resource, params, options) {
|
12
|
+
return this.resources.update({ ...resource, type: _StockReservations.TYPE }, params, options);
|
13
|
+
}
|
14
|
+
async delete(id, options) {
|
15
|
+
await this.resources.delete(typeof id === "string" ? { id, type: _StockReservations.TYPE } : id, options);
|
16
|
+
}
|
17
|
+
async line_item(stockReservationId, params, options) {
|
18
|
+
const _stockReservationId = stockReservationId.id || stockReservationId;
|
19
|
+
return this.resources.fetch({ type: "line_items" }, `stock_reservations/${_stockReservationId}/line_item`, params, options);
|
20
|
+
}
|
21
|
+
async order(stockReservationId, params, options) {
|
22
|
+
const _stockReservationId = stockReservationId.id || stockReservationId;
|
23
|
+
return this.resources.fetch({ type: "orders" }, `stock_reservations/${_stockReservationId}/order`, params, options);
|
24
|
+
}
|
25
|
+
async stock_line_item(stockReservationId, params, options) {
|
26
|
+
const _stockReservationId = stockReservationId.id || stockReservationId;
|
27
|
+
return this.resources.fetch({ type: "stock_line_items" }, `stock_reservations/${_stockReservationId}/stock_line_item`, params, options);
|
28
|
+
}
|
29
|
+
async stock_transfer(stockReservationId, params, options) {
|
30
|
+
const _stockReservationId = stockReservationId.id || stockReservationId;
|
31
|
+
return this.resources.fetch({ type: "stock_transfers" }, `stock_reservations/${_stockReservationId}/stock_transfer`, params, options);
|
32
|
+
}
|
33
|
+
async stock_item(stockReservationId, params, options) {
|
34
|
+
const _stockReservationId = stockReservationId.id || stockReservationId;
|
35
|
+
return this.resources.fetch({ type: "stock_items" }, `stock_reservations/${_stockReservationId}/stock_item`, params, options);
|
36
|
+
}
|
37
|
+
async reserved_stock(stockReservationId, params, options) {
|
38
|
+
const _stockReservationId = stockReservationId.id || stockReservationId;
|
39
|
+
return this.resources.fetch({ type: "reserved_stocks" }, `stock_reservations/${_stockReservationId}/reserved_stock`, params, options);
|
40
|
+
}
|
41
|
+
async sku(stockReservationId, params, options) {
|
42
|
+
const _stockReservationId = stockReservationId.id || stockReservationId;
|
43
|
+
return this.resources.fetch({ type: "skus" }, `stock_reservations/${_stockReservationId}/sku`, params, options);
|
44
|
+
}
|
45
|
+
async _pending(id, params, options) {
|
46
|
+
return this.resources.update({ id: typeof id === "string" ? id : id.id, type: _StockReservations.TYPE, _pending: true }, params, options);
|
47
|
+
}
|
48
|
+
isStockReservation(resource) {
|
49
|
+
return resource.type && resource.type === _StockReservations.TYPE;
|
50
|
+
}
|
51
|
+
relationship(id) {
|
52
|
+
return super.relationshipOneToOne(id);
|
53
|
+
}
|
54
|
+
relationshipToMany(...ids) {
|
55
|
+
return super.relationshipOneToMany(...ids);
|
56
|
+
}
|
57
|
+
type() {
|
58
|
+
return _StockReservations.TYPE;
|
59
|
+
}
|
60
|
+
};
|
61
|
+
var instance = new StockReservations();
|
62
|
+
var stock_reservations_default = instance;
|
63
|
+
|
64
|
+
exports.stock_reservations_default = stock_reservations_default;
|
65
|
+
//# sourceMappingURL=chunk-4YEJIBQ5.cjs.map
|
66
|
+
//# sourceMappingURL=chunk-4YEJIBQ5.cjs.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"sources":["../src/resources/stock_reservations.ts"],"names":["ApiResource"],"mappings":";;;;;AAkFA,IAAM,iBAAA,GAAN,MAAM,kBAAA,SAA0BA,6BAA8B,CAAA;AAAA,EAE7D,OAAgB,IAA6B,GAAA,oBAAA;AAAA,EAE7C,MAAM,MAAA,CAAO,QAAkC,EAAA,MAAA,EAAgD,OAAsD,EAAA;AACpJ,IAAO,OAAA,IAAA,CAAK,SAAU,CAAA,MAAA,CAAiD,EAAE,GAAG,QAAU,EAAA,IAAA,EAAM,kBAAkB,CAAA,IAAA,EAAQ,EAAA,MAAA,EAAQ,OAAO,CAAA;AAAA;AACtI,EAEA,MAAM,MAAA,CAAO,QAAkC,EAAA,MAAA,EAAgD,OAAsD,EAAA;AACpJ,IAAO,OAAA,IAAA,CAAK,SAAU,CAAA,MAAA,CAAiD,EAAE,GAAG,QAAU,EAAA,IAAA,EAAM,kBAAkB,CAAA,IAAA,EAAQ,EAAA,MAAA,EAAQ,OAAO,CAAA;AAAA;AACtI,EAEA,MAAM,MAAO,CAAA,EAAA,EAAyB,OAA0C,EAAA;AAC/E,IAAA,MAAM,IAAK,CAAA,SAAA,CAAU,MAAQ,CAAA,OAAO,EAAO,KAAA,QAAA,GAAW,EAAE,EAAA,EAAI,IAAM,EAAA,kBAAA,CAAkB,IAAK,EAAA,GAAI,IAAI,OAAO,CAAA;AAAA;AACzG,EAEA,MAAM,SAAA,CAAU,kBAA+C,EAAA,MAAA,EAAwC,OAA8C,EAAA;AACpJ,IAAM,M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A,KAAS,kBAAkB,CAAA,IAAA;AAAA;AAC9D,EAGA,aAAa,EAAqD,EAAA;AACjE,IAAO,OAAA,KAAA,CAAM,qBAA0C,EAAE,CAAA;AAAA;AAC1D,EAEA,sBAAsB,GAAsC,EAAA;AAC3D,IAAO,OAAA,KAAA,CAAM,qBAA2C,CAAA,GAAG,GAAG,CAAA;AAAA;AAC/D,EAGA,IAA6B,GAAA;AAC5B,IAAA,OAAO,kBAAkB,CAAA,IAAA;AAAA;AAG3B,CAAA;AAGA,IAAM,QAAA,GAAW,IAAI,iBAAkB,EAAA;AACvC,IAAO,0BAAQ,GAAA","file":"chunk-4YEJIBQ5.cjs","sourcesContent":["import { ApiResource } from '../resource'\nimport type { Resource, ResourceCreate, ResourceUpdate, ResourceId, ResourcesConfig, ResourceRel, ResourceSort, /* ResourceFilter */ } from '../resource'\nimport type { QueryParamsRetrieve } from '../query'\n\nimport type { LineItem } from './line_items'\nimport type { Order } from './orders'\nimport type { StockLineItem } from './stock_line_items'\nimport type { StockTransfer } from './stock_transfers'\nimport type { StockItem, StockItemType } from './stock_items'\nimport type { ReservedStock } from './reserved_stocks'\nimport type { Sku } from './skus'\n\n\ntype StockReservationType = 'stock_reservations'\ntype StockReservationRel = ResourceRel & { type: StockReservationType }\ntype StockItemRel = ResourceRel & { type: StockItemType }\n\n\nexport type StockReservationSort = Pick<StockReservation, 'id' | 'status' | 'quantity' | 'expires_at'> & ResourceSort\n// export type StockReservationFilter = Pick<StockReservation, 'id' | 'status' | 'quantity' | 'expires_at'> & ResourceFilter\n\n\ninterface StockReservation extends Resource {\n\t\n\treadonly type: StockReservationType\n\n\t/** \n\t * The stock reservation status. One of 'draft' (default), or 'pending'.\n\t * @example ```\"draft\"```\n\t */\n\tstatus: 'draft' | 'pending'\n\t/** \n\t * The stock reservation quantity.\n\t * @example ```4```\n\t */\n\tquantity: number\n\t/** \n\t * The expiration date/time of this stock reservation.\n\t * @example ```\"2018-01-02T12:00:00.000Z\"```\n\t */\n\texpires_at: string\n\n\tline_item?: LineItem | null\n\torder?: Order | null\n\tstock_line_item?: StockLineItem | null\n\tstock_transfer?: StockTransfer | null\n\tstock_item?: StockItem | null\n\treserved_stock?: ReservedStock | null\n\tsku?: Sku | null\n\n}\n\n\ninterface StockReservationCreate extends ResourceCreate {\n\t\n\t/** \n\t * The stock reservation quantity.\n\t * @example ```4```\n\t */\n\tquantity: number\n\n\tstock_item: StockItemRel\n\n}\n\n\ninterface StockReservationUpdate extends ResourceUpdate {\n\t\n\t/** \n\t * The stock reservation quantity.\n\t * @example ```4```\n\t */\n\tquantity?: number | null\n\t/** \n\t * Send this attribute if you want to mark this stock reservation as pending.\n\t * @example ```true```\n\t */\n\t_pending?: boolean | null\n\t\n}\n\n\nclass StockReservations extends ApiResource<StockReservation> {\n\n\tstatic readonly TYPE: StockReservationType = 'stock_reservations' as const\n\n\tasync create(resource: StockReservationCreate, params?: QueryParamsRetrieve<StockReservation>, options?: ResourcesConfig): Promise<StockReservation> {\n\t\treturn this.resources.create<StockReservationCreate, StockReservation>({ ...resource, type: StockReservations.TYPE }, params, options)\n\t}\n\n\tasync update(resource: StockReservationUpdate, params?: QueryParamsRetrieve<StockReservation>, options?: ResourcesConfig): Promise<StockReservation> {\n\t\treturn this.resources.update<StockReservationUpdate, StockReservation>({ ...resource, type: StockReservations.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: StockReservations.TYPE } : id, options)\n\t}\n\n\tasync line_item(stockReservationId: string | StockReservation, params?: QueryParamsRetrieve<LineItem>, options?: ResourcesConfig): Promise<LineItem> {\n\t\tconst _stockReservationId = (stockReservationId as StockReservation).id || stockReservationId as string\n\t\treturn this.resources.fetch<LineItem>({ type: 'line_items' }, `stock_reservations/${_stockReservationId}/line_item`, params, options) as unknown as LineItem\n\t}\n\n\tasync order(stockReservationId: string | StockReservation, params?: QueryParamsRetrieve<Order>, options?: ResourcesConfig): Promise<Order> {\n\t\tconst _stockReservationId = (stockReservationId as StockReservation).id || stockReservationId as string\n\t\treturn this.resources.fetch<Order>({ type: 'orders' }, `stock_reservations/${_stockReservationId}/order`, params, options) as unknown as Order\n\t}\n\n\tasync stock_line_item(stockReservationId: string | StockReservation, params?: QueryParamsRetrieve<StockLineItem>, options?: ResourcesConfig): Promise<StockLineItem> {\n\t\tconst _stockReservationId = (stockReservationId as StockReservation).id || stockReservationId as string\n\t\treturn this.resources.fetch<StockLineItem>({ type: 'stock_line_items' }, `stock_reservations/${_stockReservationId}/stock_line_item`, params, options) as unknown as StockLineItem\n\t}\n\n\tasync stock_transfer(stockReservationId: string | StockReservation, params?: QueryParamsRetrieve<StockTransfer>, options?: ResourcesConfig): Promise<StockTransfer> {\n\t\tconst _stockReservationId = (stockReservationId as StockReservation).id || stockReservationId as string\n\t\treturn this.resources.fetch<StockTransfer>({ type: 'stock_transfers' }, `stock_reservations/${_stockReservationId}/stock_transfer`, params, options) as unknown as StockTransfer\n\t}\n\n\tasync stock_item(stockReservationId: string | StockReservation, params?: QueryParamsRetrieve<StockItem>, options?: ResourcesConfig): Promise<StockItem> {\n\t\tconst _stockReservationId = (stockReservationId as StockReservation).id || stockReservationId as string\n\t\treturn this.resources.fetch<StockItem>({ type: 'stock_items' }, `stock_reservations/${_stockReservationId}/stock_item`, params, options) as unknown as StockItem\n\t}\n\n\tasync reserved_stock(stockReservationId: string | StockReservation, params?: QueryParamsRetrieve<ReservedStock>, options?: ResourcesConfig): Promise<ReservedStock> {\n\t\tconst _stockReservationId = (stockReservationId as StockReservation).id || stockReservationId as string\n\t\treturn this.resources.fetch<ReservedStock>({ type: 'reserved_stocks' }, `stock_reservations/${_stockReservationId}/reserved_stock`, params, options) as unknown as ReservedStock\n\t}\n\n\tasync sku(stockReservationId: string | StockReservation, params?: QueryParamsRetrieve<Sku>, options?: ResourcesConfig): Promise<Sku> {\n\t\tconst _stockReservationId = (stockReservationId as StockReservation).id || stockReservationId as string\n\t\treturn this.resources.fetch<Sku>({ type: 'skus' }, `stock_reservations/${_stockReservationId}/sku`, params, options) as unknown as Sku\n\t}\n\n\tasync _pending(id: string | StockReservation, params?: QueryParamsRetrieve<StockReservation>, options?: ResourcesConfig): Promise<StockReservation> {\n\t\treturn this.resources.update<StockReservationUpdate, StockReservation>({ id: (typeof id === 'string')? id: id.id, type: StockReservations.TYPE, _pending: true }, params, options)\n\t}\n\n\n\tisStockReservation(resource: any): resource is StockReservation {\n\t\treturn resource.type && (resource.type === StockReservations.TYPE)\n\t}\n\n\n\trelationship(id: string | ResourceId | null): StockReservationRel {\n\t\treturn super.relationshipOneToOne<StockReservationRel>(id)\n\t}\n\n\trelationshipToMany(...ids: string[]): StockReservationRel[] {\n\t\treturn super.relationshipOneToMany<StockReservationRel>(...ids)\n\t}\n\n\n\ttype(): StockReservationType {\n\t\treturn StockReservations.TYPE\n\t}\n\n}\n\n\nconst instance = new StockReservations()\nexport default instance\n\nexport type { StockReservations, StockReservation, StockReservationCreate, StockReservationUpdate, StockReservationType }\n"]}
|
@@ -0,0 +1,51 @@
|
|
1
|
+
'use strict';
|
2
|
+
|
3
|
+
var chunkVRXXWQRL_cjs = require('./chunk-VRXXWQRL.cjs');
|
4
|
+
|
5
|
+
// src/resources/inventory_models.ts
|
6
|
+
var InventoryModels = class _InventoryModels extends chunkVRXXWQRL_cjs.ApiResource {
|
7
|
+
static TYPE = "inventory_models";
|
8
|
+
async create(resource, params, options) {
|
9
|
+
return this.resources.create({ ...resource, type: _InventoryModels.TYPE }, params, options);
|
10
|
+
}
|
11
|
+
async update(resource, params, options) {
|
12
|
+
return this.resources.update({ ...resource, type: _InventoryModels.TYPE }, params, options);
|
13
|
+
}
|
14
|
+
async delete(id, options) {
|
15
|
+
await this.resources.delete(typeof id === "string" ? { id, type: _InventoryModels.TYPE } : id, options);
|
16
|
+
}
|
17
|
+
async inventory_stock_locations(inventoryModelId, params, options) {
|
18
|
+
const _inventoryModelId = inventoryModelId.id || inventoryModelId;
|
19
|
+
return this.resources.fetch({ type: "inventory_stock_locations" }, `inventory_models/${_inventoryModelId}/inventory_stock_locations`, params, options);
|
20
|
+
}
|
21
|
+
async inventory_return_locations(inventoryModelId, params, options) {
|
22
|
+
const _inventoryModelId = inventoryModelId.id || inventoryModelId;
|
23
|
+
return this.resources.fetch({ type: "inventory_return_locations" }, `inventory_models/${_inventoryModelId}/inventory_return_locations`, params, options);
|
24
|
+
}
|
25
|
+
async attachments(inventoryModelId, params, options) {
|
26
|
+
const _inventoryModelId = inventoryModelId.id || inventoryModelId;
|
27
|
+
return this.resources.fetch({ type: "attachments" }, `inventory_models/${_inventoryModelId}/attachments`, params, options);
|
28
|
+
}
|
29
|
+
async versions(inventoryModelId, params, options) {
|
30
|
+
const _inventoryModelId = inventoryModelId.id || inventoryModelId;
|
31
|
+
return this.resources.fetch({ type: "versions" }, `inventory_models/${_inventoryModelId}/versions`, params, options);
|
32
|
+
}
|
33
|
+
isInventoryModel(resource) {
|
34
|
+
return resource.type && resource.type === _InventoryModels.TYPE;
|
35
|
+
}
|
36
|
+
relationship(id) {
|
37
|
+
return super.relationshipOneToOne(id);
|
38
|
+
}
|
39
|
+
relationshipToMany(...ids) {
|
40
|
+
return super.relationshipOneToMany(...ids);
|
41
|
+
}
|
42
|
+
type() {
|
43
|
+
return _InventoryModels.TYPE;
|
44
|
+
}
|
45
|
+
};
|
46
|
+
var instance = new InventoryModels();
|
47
|
+
var inventory_models_default = instance;
|
48
|
+
|
49
|
+
exports.inventory_models_default = inventory_models_default;
|
50
|
+
//# sourceMappingURL=chunk-4YNKD3VT.cjs.map
|
51
|
+
//# sourceMappingURL=chunk-4YNKD3VT.cjs.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"sources":["../src/resources/inventory_models.ts"],"names":["ApiResource"],"mappings":";;;;;AAqIA,IAAM,eAAA,GAAN,MAAM,gBAAA,SAAwBA,6BAA4B,CAAA;AAAA,EAEzD,OAAgB,IAA2B,GAAA,kBAAA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{ Resource, ResourceCreate, ResourceUpdate, ResourceId, ResourcesConfig, ResourceRel, ListResponse, ResourceSort, /* ResourceFilter */ } from '../resource'\nimport type { QueryParamsRetrieve, QueryParamsList } from '../query'\n\nimport type { InventoryStockLocation } from './inventory_stock_locations'\nimport type { InventoryReturnLocation } from './inventory_return_locations'\nimport type { Attachment } from './attachments'\nimport type { Version } from './versions'\n\n\ntype InventoryModelType = 'inventory_models'\ntype InventoryModelRel = ResourceRel & { type: InventoryModelType }\n\n\nexport type InventoryModelSort = Pick<InventoryModel, 'id' | 'name' | 'strategy' | 'stock_locations_cutoff' | 'stock_reservation_cutoff'> & ResourceSort\n// export type InventoryModelFilter = Pick<InventoryModel, 'id' | 'name' | 'strategy' | 'stock_locations_cutoff' | 'stock_reservation_cutoff'> & ResourceFilter\n\n\ninterface InventoryModel extends Resource {\n\t\n\treadonly type: InventoryModelType\n\n\t/** \n\t * The inventory model's internal name.\n\t * @example ```\"EU Inventory Model\"```\n\t */\n\tname: string\n\t/** \n\t * The inventory model's shipping strategy: one between 'no_split' (default), 'split_shipments', 'ship_from_primary' and 'ship_from_first_available_or_primary'.\n\t * @example ```\"no_split\"```\n\t */\n\tstrategy?: string | null\n\t/** \n\t * The maximum number of stock locations used for inventory computation.\n\t * @example ```3```\n\t */\n\tstock_locations_cutoff?: number | null\n\t/** \n\t * The duration in seconds of the generated stock reservations.\n\t * @example ```3600```\n\t */\n\tstock_reservation_cutoff?: number | null\n\t/** \n\t * Indicates if the the stock transfers must be put on hold automatically with the associated shipment.\n\t * @example ```true```\n\t */\n\tput_stock_transfers_on_hold?: boolean | null\n\t/** \n\t * Indicates if the the stock will be decremented manually after the order approval.\n\t * @example ```true```\n\t */\n\tmanual_stock_decrement?: boolean | null\n\n\tinventory_stock_locations?: InventoryStockLocation[] | null\n\tinventory_return_locations?: InventoryReturnLocation[] | null\n\tattachments?: Attachment[] | null\n\tversions?: Version[] | null\n\n}\n\n\ninterface InventoryModelCreate extends ResourceCreate {\n\t\n\t/** \n\t * The inventory model's internal name.\n\t * @example ```\"EU Inventory Model\"```\n\t */\n\tname: string\n\t/** \n\t * The inventory model's shipping strategy: one between 'no_split' (default), 'split_shipments', 'ship_from_primary' and 'ship_from_first_available_or_primary'.\n\t * @example ```\"no_split\"```\n\t */\n\tstrategy?: string | null\n\t/** \n\t * The maximum number of stock locations used for inventory computation.\n\t * @example ```3```\n\t */\n\tstock_locations_cutoff?: number | null\n\t/** \n\t * The duration in seconds of the generated stock reservations.\n\t * @example ```3600```\n\t */\n\tstock_reservation_cutoff?: number | null\n\t/** \n\t * Indicates if the the stock transfers must be put on hold automatically with the associated shipment.\n\t * @example ```true```\n\t */\n\tput_stock_transfers_on_hold?: boolean | null\n\t/** \n\t * Indicates if the the stock will be decremented manually after the order approval.\n\t * @example ```true```\n\t */\n\tmanual_stock_decrement?: boolean | null\n\t\n}\n\n\ninterface InventoryModelUpdate extends ResourceUpdate {\n\t\n\t/** \n\t * The inventory model's internal name.\n\t * @example ```\"EU Inventory Model\"```\n\t */\n\tname?: string | null\n\t/** \n\t * The inventory model's shipping strategy: one between 'no_split' (default), 'split_shipments', 'ship_from_primary' and 'ship_from_first_available_or_primary'.\n\t * @example ```\"no_split\"```\n\t */\n\tstrategy?: string | null\n\t/** \n\t * The maximum number of stock locations used for inventory computation.\n\t * @example ```3```\n\t */\n\tstock_locations_cutoff?: number | null\n\t/** \n\t * The duration in seconds of the generated stock reservations.\n\t * @example ```3600```\n\t */\n\tstock_reservation_cutoff?: number | null\n\t/** \n\t * Indicates if the the stock transfers must be put on hold automatically with the associated shipment.\n\t * @example ```true```\n\t */\n\tput_stock_transfers_on_hold?: boolean | null\n\t/** \n\t * Indicates if the the stock will be decremented manually after the order approval.\n\t * @example ```true```\n\t */\n\tmanual_stock_decrement?: boolean | null\n\t\n}\n\n\nclass InventoryModels extends ApiResource<InventoryModel> {\n\n\tstatic readonly TYPE: InventoryModelType = 'inventory_models' as const\n\n\tasync create(resource: InventoryModelCreate, params?: QueryParamsRetrieve<InventoryModel>, options?: ResourcesConfig): Promise<InventoryModel> {\n\t\treturn this.resources.create<InventoryModelCreate, InventoryModel>({ ...resource, type: InventoryModels.TYPE }, params, options)\n\t}\n\n\tasync update(resource: InventoryModelUpdate, params?: QueryParamsRetrieve<InventoryModel>, options?: ResourcesConfig): Promise<InventoryModel> {\n\t\treturn this.resources.update<InventoryModelUpdate, InventoryModel>({ ...resource, type: InventoryModels.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: InventoryModels.TYPE } : id, options)\n\t}\n\n\tasync inventory_stock_locations(inventoryModelId: string | InventoryModel, params?: QueryParamsList<InventoryStockLocation>, options?: ResourcesConfig): Promise<ListResponse<InventoryStockLocation>> {\n\t\tconst _inventoryModelId = (inventoryModelId as InventoryModel).id || inventoryModelId as string\n\t\treturn this.resources.fetch<InventoryStockLocation>({ type: 'inventory_stock_locations' }, `inventory_models/${_inventoryModelId}/inventory_stock_locations`, params, options) as unknown as ListResponse<InventoryStockLocation>\n\t}\n\n\tasync inventory_return_locations(inventoryModelId: string | InventoryModel, params?: QueryParamsList<InventoryReturnLocation>, options?: ResourcesConfig): Promise<ListResponse<InventoryReturnLocation>> {\n\t\tconst _inventoryModelId = (inventoryModelId as InventoryModel).id || inventoryModelId as string\n\t\treturn this.resources.fetch<InventoryReturnLocation>({ type: 'inventory_return_locations' }, `inventory_models/${_inventoryModelId}/inventory_return_locations`, params, options) as unknown as ListResponse<InventoryReturnLocation>\n\t}\n\n\tasync attachments(inventoryModelId: string | InventoryModel, params?: QueryParamsList<Attachment>, options?: ResourcesConfig): Promise<ListResponse<Attachment>> {\n\t\tconst _inventoryModelId = (inventoryModelId as InventoryModel).id || inventoryModelId as string\n\t\treturn this.resources.fetch<Attachment>({ type: 'attachments' }, `inventory_models/${_inventoryModelId}/attachments`, params, options) as unknown as ListResponse<Attachment>\n\t}\n\n\tasync versions(inventoryModelId: string | InventoryModel, params?: QueryParamsList<Version>, options?: ResourcesConfig): Promise<ListResponse<Version>> {\n\t\tconst _inventoryModelId = (inventoryModelId as InventoryModel).id || inventoryModelId as string\n\t\treturn this.resources.fetch<Version>({ type: 'versions' }, `inventory_models/${_inventoryModelId}/versions`, params, options) as unknown as ListResponse<Version>\n\t}\n\n\n\tisInventoryModel(resource: any): resource is InventoryModel {\n\t\treturn resource.type && (resource.type === InventoryModels.TYPE)\n\t}\n\n\n\trelationship(id: string | ResourceId | null): InventoryModelRel {\n\t\treturn super.relationshipOneToOne<InventoryModelRel>(id)\n\t}\n\n\trelationshipToMany(...ids: string[]): InventoryModelRel[] {\n\t\treturn super.relationshipOneToMany<InventoryModelRel>(...ids)\n\t}\n\n\n\ttype(): InventoryModelType {\n\t\treturn InventoryModels.TYPE\n\t}\n\n}\n\n\nconst instance = new InventoryModels()\nexport default instance\n\nexport type { InventoryModels, InventoryModel, InventoryModelCreate, InventoryModelUpdate, InventoryModelType }\n"]}
|
@@ -0,0 +1,34 @@
|
|
1
|
+
'use strict';
|
2
|
+
|
3
|
+
var chunkVRXXWQRL_cjs = require('./chunk-VRXXWQRL.cjs');
|
4
|
+
|
5
|
+
// src/resources/payment_gateways.ts
|
6
|
+
var PaymentGateways = class _PaymentGateways extends chunkVRXXWQRL_cjs.ApiResource {
|
7
|
+
static TYPE = "payment_gateways";
|
8
|
+
async payment_methods(paymentGatewayId, params, options) {
|
9
|
+
const _paymentGatewayId = paymentGatewayId.id || paymentGatewayId;
|
10
|
+
return this.resources.fetch({ type: "payment_methods" }, `payment_gateways/${_paymentGatewayId}/payment_methods`, params, options);
|
11
|
+
}
|
12
|
+
async versions(paymentGatewayId, params, options) {
|
13
|
+
const _paymentGatewayId = paymentGatewayId.id || paymentGatewayId;
|
14
|
+
return this.resources.fetch({ type: "versions" }, `payment_gateways/${_paymentGatewayId}/versions`, params, options);
|
15
|
+
}
|
16
|
+
isPaymentGateway(resource) {
|
17
|
+
return resource.type && resource.type === _PaymentGateways.TYPE;
|
18
|
+
}
|
19
|
+
relationship(id) {
|
20
|
+
return super.relationshipOneToOne(id);
|
21
|
+
}
|
22
|
+
relationshipToMany(...ids) {
|
23
|
+
return super.relationshipOneToMany(...ids);
|
24
|
+
}
|
25
|
+
type() {
|
26
|
+
return _PaymentGateways.TYPE;
|
27
|
+
}
|
28
|
+
};
|
29
|
+
var instance = new PaymentGateways();
|
30
|
+
var payment_gateways_default = instance;
|
31
|
+
|
32
|
+
exports.payment_gateways_default = payment_gateways_default;
|
33
|
+
//# sourceMappingURL=chunk-54CK7T4R.cjs.map
|
34
|
+
//# sourceMappingURL=chunk-54CK7T4R.cjs.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"sources":["../src/resources/payment_gateways.ts"],"names":["ApiResource"],"mappings":";;;;;AAgCA,IAAM,eAAA,GAAN,MAAM,gBAAA,SAAwBA,6BAA4B,CAAA;AAAA,EAEzD,OAAgB,IAA2B,GAAA,kBAAA;AAAA,EAE3C,MAAM,eAAA,CAAgB,gBAA2C,EAAA,MAAA,EAAyC,OAAiE,EAAA;AAC1K,IAAM,MAAA,iBAAA,GAAqB,iBAAoC,EAAM,IAAA,gBAAA;AACrE,IAAO,OAAA,IAAA,CAAK,SAAU,CAAA,KAAA,CAAqB,EAAE,IAAA,EAAM,iBAAkB,EAAA,EAAG,CAAoB,iBAAA,EAAA,iBAAiB,CAAoB,gBAAA,CAAA,EAAA,MAAA,EAAQ,OAAO,CAAA;AAAA;AACjJ,EAEA,MAAM,QAAA,CAAS,gBAA2C,EAAA,MAAA,EAAmC,OAA2D,EAAA;AACvJ,IAAM,MAAA,iBAAA,GAAqB,iBAAoC,EAAM,IAAA,gBAAA;AACrE,IAAO,OAAA,IAAA,CAAK,SAAU,CAAA,KAAA,CAAe,EAAE,IAAA,EAAM,UAAW,EAAA,EAAG,CAAoB,iBAAA,EAAA,iBAAiB,CAAa,SAAA,CAAA,EAAA,MAAA,EAAQ,OAAO,CAAA;AAAA;AAC7H,EAGA,iBAAiB,QAA2C,EAAA;AAC3D,IAAA,OAAO,QAAS,CAAA,IAAA,IAAS,QAAS,CAAA,IAAA,KAAS,gBAAgB,CAAA,IAAA;AAAA;AAC5D,EAGA,aAAa,EAAmD,EAAA;AAC/D,IAAO,OAAA,KAAA,CAAM,qBAAwC,EAAE,CAAA;AAAA;AACxD,EAEA,sBAAsB,GAAoC,EAAA;AACzD,IAAO,OAAA,KAAA,CAAM,qBAAyC,CAAA,GAAG,GAAG,CAAA;AAAA;AAC7D,EAGA,IAA2B,GAAA;AAC1B,IAAA,OAAO,gBAAgB,CAAA,IAAA;AAAA;AAGzB,CAAA;AAGA,IAAM,QAAA,GAAW,IAAI,eAAgB,EAAA;AACrC,IAAO,wBAAQ,GAAA","file":"chunk-54CK7T4R.cjs","sourcesContent":["import { ApiResource } from '../resource'\nimport type { Resource, ResourceId, ResourcesConfig, ResourceRel, ListResponse, ResourceSort, /* ResourceFilter */ } from '../resource'\nimport type { QueryParamsList } from '../query'\n\nimport type { PaymentMethod } from './payment_methods'\nimport type { Version } from './versions'\n\n\ntype PaymentGatewayType = 'payment_gateways'\ntype PaymentGatewayRel = ResourceRel & { type: PaymentGatewayType }\n\n\nexport type PaymentGatewaySort = Pick<PaymentGateway, 'id' | 'name'> & ResourceSort\n// export type PaymentGatewayFilter = Pick<PaymentGateway, 'id' | 'name'> & ResourceFilter\n\n\ninterface PaymentGateway extends Resource {\n\t\n\treadonly type: PaymentGatewayType\n\n\t/** \n\t * The payment gateway's internal name.\n\t * @example ```\"US payment gateway\"```\n\t */\n\tname: string\n\n\tpayment_methods?: PaymentMethod[] | null\n\tversions?: Version[] | null\n\n}\n\n\nclass PaymentGateways extends ApiResource<PaymentGateway> {\n\n\tstatic readonly TYPE: PaymentGatewayType = 'payment_gateways' as const\n\n\tasync payment_methods(paymentGatewayId: string | PaymentGateway, params?: QueryParamsList<PaymentMethod>, options?: ResourcesConfig): Promise<ListResponse<PaymentMethod>> {\n\t\tconst _paymentGatewayId = (paymentGatewayId as PaymentGateway).id || paymentGatewayId as string\n\t\treturn this.resources.fetch<PaymentMethod>({ type: 'payment_methods' }, `payment_gateways/${_paymentGatewayId}/payment_methods`, params, options) as unknown as ListResponse<PaymentMethod>\n\t}\n\n\tasync versions(paymentGatewayId: string | PaymentGateway, params?: QueryParamsList<Version>, options?: ResourcesConfig): Promise<ListResponse<Version>> {\n\t\tconst _paymentGatewayId = (paymentGatewayId as PaymentGateway).id || paymentGatewayId as string\n\t\treturn this.resources.fetch<Version>({ type: 'versions' }, `payment_gateways/${_paymentGatewayId}/versions`, params, options) as unknown as ListResponse<Version>\n\t}\n\n\n\tisPaymentGateway(resource: any): resource is PaymentGateway {\n\t\treturn resource.type && (resource.type === PaymentGateways.TYPE)\n\t}\n\n\n\trelationship(id: string | ResourceId | null): PaymentGatewayRel {\n\t\treturn super.relationshipOneToOne<PaymentGatewayRel>(id)\n\t}\n\n\trelationshipToMany(...ids: string[]): PaymentGatewayRel[] {\n\t\treturn super.relationshipOneToMany<PaymentGatewayRel>(...ids)\n\t}\n\n\n\ttype(): PaymentGatewayType {\n\t\treturn PaymentGateways.TYPE\n\t}\n\n}\n\n\nconst instance = new PaymentGateways()\nexport default instance\n\nexport type { PaymentGateways, PaymentGateway, PaymentGatewayType }\n"]}
|