@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,50 @@
|
|
1
|
+
'use strict';
|
2
|
+
|
3
|
+
var chunkVRXXWQRL_cjs = require('./chunk-VRXXWQRL.cjs');
|
4
|
+
|
5
|
+
// src/resources/axerve_payments.ts
|
6
|
+
var AxervePayments = class _AxervePayments extends chunkVRXXWQRL_cjs.ApiResource {
|
7
|
+
static TYPE = "axerve_payments";
|
8
|
+
async create(resource, params, options) {
|
9
|
+
return this.resources.create({ ...resource, type: _AxervePayments.TYPE }, params, options);
|
10
|
+
}
|
11
|
+
async update(resource, params, options) {
|
12
|
+
return this.resources.update({ ...resource, type: _AxervePayments.TYPE }, params, options);
|
13
|
+
}
|
14
|
+
async delete(id, options) {
|
15
|
+
await this.resources.delete(typeof id === "string" ? { id, type: _AxervePayments.TYPE } : id, options);
|
16
|
+
}
|
17
|
+
async order(axervePaymentId, params, options) {
|
18
|
+
const _axervePaymentId = axervePaymentId.id || axervePaymentId;
|
19
|
+
return this.resources.fetch({ type: "orders" }, `axerve_payments/${_axervePaymentId}/order`, params, options);
|
20
|
+
}
|
21
|
+
async payment_gateway(axervePaymentId, params, options) {
|
22
|
+
const _axervePaymentId = axervePaymentId.id || axervePaymentId;
|
23
|
+
return this.resources.fetch({ type: "payment_gateways" }, `axerve_payments/${_axervePaymentId}/payment_gateway`, params, options);
|
24
|
+
}
|
25
|
+
async versions(axervePaymentId, params, options) {
|
26
|
+
const _axervePaymentId = axervePaymentId.id || axervePaymentId;
|
27
|
+
return this.resources.fetch({ type: "versions" }, `axerve_payments/${_axervePaymentId}/versions`, params, options);
|
28
|
+
}
|
29
|
+
async _update(id, params, options) {
|
30
|
+
return this.resources.update({ id: typeof id === "string" ? id : id.id, type: _AxervePayments.TYPE, _update: true }, params, options);
|
31
|
+
}
|
32
|
+
isAxervePayment(resource) {
|
33
|
+
return resource.type && resource.type === _AxervePayments.TYPE;
|
34
|
+
}
|
35
|
+
relationship(id) {
|
36
|
+
return super.relationshipOneToOne(id);
|
37
|
+
}
|
38
|
+
relationshipToMany(...ids) {
|
39
|
+
return super.relationshipOneToMany(...ids);
|
40
|
+
}
|
41
|
+
type() {
|
42
|
+
return _AxervePayments.TYPE;
|
43
|
+
}
|
44
|
+
};
|
45
|
+
var instance = new AxervePayments();
|
46
|
+
var axerve_payments_default = instance;
|
47
|
+
|
48
|
+
exports.axerve_payments_default = axerve_payments_default;
|
49
|
+
//# sourceMappingURL=chunk-PYFJA7OD.cjs.map
|
50
|
+
//# sourceMappingURL=chunk-PYFJA7OD.cjs.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"sources":["../src/resources/axerve_payments.ts"],"names":["ApiResource"],"mappings":"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","file":"chunk-PYFJA7OD.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 AxervePaymentType = 'axerve_payments'\ntype AxervePaymentRel = ResourceRel & { type: AxervePaymentType }\ntype OrderRel = ResourceRel & { type: OrderType }\n\n\nexport type AxervePaymentSort = Pick<AxervePayment, 'id'> & ResourceSort\n// export type AxervePaymentFilter = Pick<AxervePayment, 'id'> & ResourceFilter\n\n\ninterface AxervePayment extends Resource {\n\t\n\treadonly type: AxervePaymentType\n\n\t/** \n\t * The merchant login code.\n\t * @example ```\"xxxx-yyyy-zzzz\"```\n\t */\n\tlogin: string\n\t/** \n\t * The URL where the payer is redirected after they approve the payment.\n\t * @example ```\"https://yourdomain.com/thankyou\"```\n\t */\n\treturn_url: string\n\t/** \n\t * The Axerve payment request data, collected by client.\n\t * @example ```{\"foo\":\"bar\"}```\n\t */\n\tpayment_request_data?: Record<string, any> | null\n\t/** \n\t * The IP adress of the client creating the payment.\n\t * @example ```\"213.45.120.5\"```\n\t */\n\tclient_ip?: string | null\n\t/** \n\t * The details of the buyer creating the payment.\n\t * @example ```{\"cardHolder\":{\"email\":\"george.harrison@gmail.com\"},\"shippingAddress\":{\"firstName\":\"George\"}}```\n\t */\n\tbuyer_details?: Record<string, any> | null\n\t/** \n\t * Requires the creation of a token to represent this payment, mandatory to use customer's wallet and order subscriptions.\n\t * @example ```true```\n\t */\n\trequest_token?: boolean | null\n\t/** \n\t * Indicates if the order current amount differs form the one of the associated authorization.\n\t */\n\tmismatched_amounts?: boolean | null\n\t/** \n\t * Information about the payment instrument used in the transaction.\n\t * @example ```{\"issuer\":\"cl bank\",\"card_type\":\"visa\"}```\n\t */\n\tpayment_instrument?: Record<string, any> | null\n\n\torder?: Order | null\n\tpayment_gateway?: PaymentGateway | null\n\tversions?: Version[] | null\n\n}\n\n\ninterface AxervePaymentCreate extends ResourceCreate {\n\t\n\t/** \n\t * The URL where the payer is redirected after they approve the payment.\n\t * @example ```\"https://yourdomain.com/thankyou\"```\n\t */\n\treturn_url: string\n\t/** \n\t * The IP adress of the client creating the payment.\n\t * @example ```\"213.45.120.5\"```\n\t */\n\tclient_ip?: string | null\n\t/** \n\t * The details of the buyer creating the payment.\n\t * @example ```{\"cardHolder\":{\"email\":\"george.harrison@gmail.com\"},\"shippingAddress\":{\"firstName\":\"George\"}}```\n\t */\n\tbuyer_details?: Record<string, any> | null\n\t/** \n\t * Requires the creation of a token to represent this payment, mandatory to use customer's wallet and order subscriptions.\n\t * @example ```true```\n\t */\n\trequest_token?: boolean | null\n\n\torder: OrderRel\n\n}\n\n\ninterface AxervePaymentUpdate extends ResourceUpdate {\n\t\n\t/** \n\t * The Axerve payment request data, collected by client.\n\t * @example ```{\"foo\":\"bar\"}```\n\t */\n\tpayment_request_data?: Record<string, any> | null\n\t/** \n\t * Send this attribute if you want to update the payment with fresh order data.\n\t * @example ```true```\n\t */\n\t_update?: boolean | null\n\n\torder?: OrderRel | null\n\n}\n\n\nclass AxervePayments extends ApiResource<AxervePayment> {\n\n\tstatic readonly TYPE: AxervePaymentType = 'axerve_payments' as const\n\n\tasync create(resource: AxervePaymentCreate, params?: QueryParamsRetrieve<AxervePayment>, options?: ResourcesConfig): Promise<AxervePayment> {\n\t\treturn this.resources.create<AxervePaymentCreate, AxervePayment>({ ...resource, type: AxervePayments.TYPE }, params, options)\n\t}\n\n\tasync update(resource: AxervePaymentUpdate, params?: QueryParamsRetrieve<AxervePayment>, options?: ResourcesConfig): Promise<AxervePayment> {\n\t\treturn this.resources.update<AxervePaymentUpdate, AxervePayment>({ ...resource, type: AxervePayments.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: AxervePayments.TYPE } : id, options)\n\t}\n\n\tasync order(axervePaymentId: string | AxervePayment, params?: QueryParamsRetrieve<Order>, options?: ResourcesConfig): Promise<Order> {\n\t\tconst _axervePaymentId = (axervePaymentId as AxervePayment).id || axervePaymentId as string\n\t\treturn this.resources.fetch<Order>({ type: 'orders' }, `axerve_payments/${_axervePaymentId}/order`, params, options) as unknown as Order\n\t}\n\n\tasync payment_gateway(axervePaymentId: string | AxervePayment, params?: QueryParamsRetrieve<PaymentGateway>, options?: ResourcesConfig): Promise<PaymentGateway> {\n\t\tconst _axervePaymentId = (axervePaymentId as AxervePayment).id || axervePaymentId as string\n\t\treturn this.resources.fetch<PaymentGateway>({ type: 'payment_gateways' }, `axerve_payments/${_axervePaymentId}/payment_gateway`, params, options) as unknown as PaymentGateway\n\t}\n\n\tasync versions(axervePaymentId: string | AxervePayment, params?: QueryParamsList<Version>, options?: ResourcesConfig): Promise<ListResponse<Version>> {\n\t\tconst _axervePaymentId = (axervePaymentId as AxervePayment).id || axervePaymentId as string\n\t\treturn this.resources.fetch<Version>({ type: 'versions' }, `axerve_payments/${_axervePaymentId}/versions`, params, options) as unknown as ListResponse<Version>\n\t}\n\n\tasync _update(id: string | AxervePayment, params?: QueryParamsRetrieve<AxervePayment>, options?: ResourcesConfig): Promise<AxervePayment> {\n\t\treturn this.resources.update<AxervePaymentUpdate, AxervePayment>({ id: (typeof id === 'string')? id: id.id, type: AxervePayments.TYPE, _update: true }, params, options)\n\t}\n\n\n\tisAxervePayment(resource: any): resource is AxervePayment {\n\t\treturn resource.type && (resource.type === AxervePayments.TYPE)\n\t}\n\n\n\trelationship(id: string | ResourceId | null): AxervePaymentRel {\n\t\treturn super.relationshipOneToOne<AxervePaymentRel>(id)\n\t}\n\n\trelationshipToMany(...ids: string[]): AxervePaymentRel[] {\n\t\treturn super.relationshipOneToMany<AxervePaymentRel>(...ids)\n\t}\n\n\n\ttype(): AxervePaymentType {\n\t\treturn AxervePayments.TYPE\n\t}\n\n}\n\n\nconst instance = new AxervePayments()\nexport default instance\n\nexport type { AxervePayments, AxervePayment, AxervePaymentCreate, AxervePaymentUpdate, AxervePaymentType }\n"]}
|
@@ -0,0 +1,38 @@
|
|
1
|
+
'use strict';
|
2
|
+
|
3
|
+
var chunkVRXXWQRL_cjs = require('./chunk-VRXXWQRL.cjs');
|
4
|
+
|
5
|
+
// src/resources/price_tiers.ts
|
6
|
+
var PriceTiers = class _PriceTiers extends chunkVRXXWQRL_cjs.ApiResource {
|
7
|
+
static TYPE = "price_tiers";
|
8
|
+
async price(priceTierId, params, options) {
|
9
|
+
const _priceTierId = priceTierId.id || priceTierId;
|
10
|
+
return this.resources.fetch({ type: "prices" }, `price_tiers/${_priceTierId}/price`, params, options);
|
11
|
+
}
|
12
|
+
async attachments(priceTierId, params, options) {
|
13
|
+
const _priceTierId = priceTierId.id || priceTierId;
|
14
|
+
return this.resources.fetch({ type: "attachments" }, `price_tiers/${_priceTierId}/attachments`, params, options);
|
15
|
+
}
|
16
|
+
async versions(priceTierId, params, options) {
|
17
|
+
const _priceTierId = priceTierId.id || priceTierId;
|
18
|
+
return this.resources.fetch({ type: "versions" }, `price_tiers/${_priceTierId}/versions`, params, options);
|
19
|
+
}
|
20
|
+
isPriceTier(resource) {
|
21
|
+
return resource.type && resource.type === _PriceTiers.TYPE;
|
22
|
+
}
|
23
|
+
relationship(id) {
|
24
|
+
return super.relationshipOneToOne(id);
|
25
|
+
}
|
26
|
+
relationshipToMany(...ids) {
|
27
|
+
return super.relationshipOneToMany(...ids);
|
28
|
+
}
|
29
|
+
type() {
|
30
|
+
return _PriceTiers.TYPE;
|
31
|
+
}
|
32
|
+
};
|
33
|
+
var instance = new PriceTiers();
|
34
|
+
var price_tiers_default = instance;
|
35
|
+
|
36
|
+
exports.price_tiers_default = price_tiers_default;
|
37
|
+
//# sourceMappingURL=chunk-Q2J67HA3.cjs.map
|
38
|
+
//# sourceMappingURL=chunk-Q2J67HA3.cjs.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"sources":["../src/resources/price_tiers.ts"],"names":["ApiResource"],"mappings":";;;;;AAsDA,IAAM,UAAA,GAAN,MAAM,WAAA,SAAmBA,6BAAuB,CAAA;AAAA,EAE/C,OAAgB,IAAsB,GAAA,aAAA;AAAA,EAEtC,MAAM,KAAA,CAAM,WAAiC,EAAA,MAAA,EAAqC,OAA2C,EAAA;AAC5H,IAAM,MAAA,YAAA,GAAgB,YAA0B,EAAM,IAAA,WAAA;AACtD,IAAO,OAAA,IAAA,CAAK,SAAU,CAAA,KAAA,CAAa,EAAE,IAAA,EAAM,QAAS,EAAA,EAAG,CAAe,YAAA,EAAA,YAAY,CAAU,MAAA,CAAA,EAAA,MAAA,EAAQ,OAAO,CAAA;AAAA;AAC5G,EAEA,MAAM,WAAA,CAAY,WAAiC,EAAA,MAAA,EAAsC,OAA8D,EAAA;AACtJ,IAAM,MAAA,YAAA,GAAgB,YAA0B,EAAM,IAAA,WAAA;AACtD,IAAO,OAAA,IAAA,CAAK,SAAU,CAAA,KAAA,CAAkB,EAAE,IAAA,EAAM,aAAc,EAAA,EAAG,CAAe,YAAA,EAAA,YAAY,CAAgB,YAAA,CAAA,EAAA,MAAA,EAAQ,OAAO,CAAA;AAAA;AAC5H,EAEA,MAAM,QAAA,CAAS,WAAiC,EAAA,MAAA,EAAmC,OAA2D,EAAA;AAC7I,IAAM,MAAA,YAAA,GAAgB,YAA0B,EAAM,IAAA,WAAA;AACtD,IAAO,OAAA,IAAA,CAAK,SAAU,CAAA,KAAA,CAAe,EAAE,IAAA,EAAM,UAAW,EAAA,EAAG,CAAe,YAAA,EAAA,YAAY,CAAa,SAAA,CAAA,EAAA,MAAA,EAAQ,OAAO,CAAA;AAAA;AACnH,EAGA,YAAY,QAAsC,EAAA;AACjD,IAAA,OAAO,QAAS,CAAA,IAAA,IAAS,QAAS,CAAA,IAAA,KAAS,WAAW,CAAA,IAAA;AAAA;AACvD,EAGA,aAAa,EAA8C,EAAA;AAC1D,IAAO,OAAA,KAAA,CAAM,qBAAmC,EAAE,CAAA;AAAA;AACnD,EAEA,sBAAsB,GAA+B,EAAA;AACpD,IAAO,OAAA,KAAA,CAAM,qBAAoC,CAAA,GAAG,GAAG,CAAA;AAAA;AACxD,EAGA,IAAsB,GAAA;AACrB,IAAA,OAAO,WAAW,CAAA,IAAA;AAAA;AAGpB,CAAA;AAGA,IAAM,QAAA,GAAW,IAAI,UAAW,EAAA;AAChC,IAAO,mBAAQ,GAAA","file":"chunk-Q2J67HA3.cjs","sourcesContent":["import { ApiResource } from '../resource'\nimport type { Resource, ResourceId, ResourcesConfig, ResourceRel, ListResponse, ResourceSort, /* ResourceFilter */ } from '../resource'\nimport type { QueryParamsRetrieve, QueryParamsList } from '../query'\n\nimport type { Price } from './prices'\nimport type { Attachment } from './attachments'\nimport type { Version } from './versions'\n\n\ntype PriceTierType = 'price_tiers'\ntype PriceTierRel = ResourceRel & { type: PriceTierType }\n\n\nexport type PriceTierSort = Pick<PriceTier, 'id' | 'name' | 'up_to' | 'price_amount_cents'> & ResourceSort\n// export type PriceTierFilter = Pick<PriceTier, 'id' | 'name' | 'up_to' | 'price_amount_cents'> & ResourceFilter\n\n\ninterface PriceTier extends Resource {\n\t\n\treadonly type: PriceTierType\n\n\t/** \n\t * The price tier's name.\n\t * @example ```\"six pack\"```\n\t */\n\tname: string\n\t/** \n\t * The tier upper limit. When 'null' it means infinity (useful to have an always matching tier).\n\t * @example ```20.5```\n\t */\n\tup_to?: number | null\n\t/** \n\t * The price of this price tier, in cents.\n\t * @example ```1000```\n\t */\n\tprice_amount_cents: number\n\t/** \n\t * The price of this price tier, float.\n\t * @example ```10```\n\t */\n\tprice_amount_float?: number | null\n\t/** \n\t * The price of this price tier, formatted.\n\t * @example ```\"€10,00\"```\n\t */\n\tformatted_price_amount?: string | null\n\n\tprice?: Price | null\n\tattachments?: Attachment[] | null\n\tversions?: Version[] | null\n\n}\n\n\nclass PriceTiers extends ApiResource<PriceTier> {\n\n\tstatic readonly TYPE: PriceTierType = 'price_tiers' as const\n\n\tasync price(priceTierId: string | PriceTier, params?: QueryParamsRetrieve<Price>, options?: ResourcesConfig): Promise<Price> {\n\t\tconst _priceTierId = (priceTierId as PriceTier).id || priceTierId as string\n\t\treturn this.resources.fetch<Price>({ type: 'prices' }, `price_tiers/${_priceTierId}/price`, params, options) as unknown as Price\n\t}\n\n\tasync attachments(priceTierId: string | PriceTier, params?: QueryParamsList<Attachment>, options?: ResourcesConfig): Promise<ListResponse<Attachment>> {\n\t\tconst _priceTierId = (priceTierId as PriceTier).id || priceTierId as string\n\t\treturn this.resources.fetch<Attachment>({ type: 'attachments' }, `price_tiers/${_priceTierId}/attachments`, params, options) as unknown as ListResponse<Attachment>\n\t}\n\n\tasync versions(priceTierId: string | PriceTier, params?: QueryParamsList<Version>, options?: ResourcesConfig): Promise<ListResponse<Version>> {\n\t\tconst _priceTierId = (priceTierId as PriceTier).id || priceTierId as string\n\t\treturn this.resources.fetch<Version>({ type: 'versions' }, `price_tiers/${_priceTierId}/versions`, params, options) as unknown as ListResponse<Version>\n\t}\n\n\n\tisPriceTier(resource: any): resource is PriceTier {\n\t\treturn resource.type && (resource.type === PriceTiers.TYPE)\n\t}\n\n\n\trelationship(id: string | ResourceId | null): PriceTierRel {\n\t\treturn super.relationshipOneToOne<PriceTierRel>(id)\n\t}\n\n\trelationshipToMany(...ids: string[]): PriceTierRel[] {\n\t\treturn super.relationshipOneToMany<PriceTierRel>(...ids)\n\t}\n\n\n\ttype(): PriceTierType {\n\t\treturn PriceTiers.TYPE\n\t}\n\n}\n\n\nconst instance = new PriceTiers()\nexport default instance\n\nexport type { PriceTiers, PriceTier, PriceTierType }\n"]}
|
@@ -0,0 +1,61 @@
|
|
1
|
+
'use strict';
|
2
|
+
|
3
|
+
var chunkVRXXWQRL_cjs = require('./chunk-VRXXWQRL.cjs');
|
4
|
+
|
5
|
+
// src/resources/coupons.ts
|
6
|
+
var Coupons = class _Coupons extends chunkVRXXWQRL_cjs.ApiResource {
|
7
|
+
static TYPE = "coupons";
|
8
|
+
async create(resource, params, options) {
|
9
|
+
return this.resources.create({ ...resource, type: _Coupons.TYPE }, params, options);
|
10
|
+
}
|
11
|
+
async update(resource, params, options) {
|
12
|
+
return this.resources.update({ ...resource, type: _Coupons.TYPE }, params, options);
|
13
|
+
}
|
14
|
+
async delete(id, options) {
|
15
|
+
await this.resources.delete(typeof id === "string" ? { id, type: _Coupons.TYPE } : id, options);
|
16
|
+
}
|
17
|
+
async promotion_rule(couponId, params, options) {
|
18
|
+
const _couponId = couponId.id || couponId;
|
19
|
+
return this.resources.fetch({ type: "coupon_codes_promotion_rules" }, `coupons/${_couponId}/promotion_rule`, params, options);
|
20
|
+
}
|
21
|
+
async coupon_recipient(couponId, params, options) {
|
22
|
+
const _couponId = couponId.id || couponId;
|
23
|
+
return this.resources.fetch({ type: "coupon_recipients" }, `coupons/${_couponId}/coupon_recipient`, params, options);
|
24
|
+
}
|
25
|
+
async events(couponId, params, options) {
|
26
|
+
const _couponId = couponId.id || couponId;
|
27
|
+
return this.resources.fetch({ type: "events" }, `coupons/${_couponId}/events`, params, options);
|
28
|
+
}
|
29
|
+
async tags(couponId, params, options) {
|
30
|
+
const _couponId = couponId.id || couponId;
|
31
|
+
return this.resources.fetch({ type: "tags" }, `coupons/${_couponId}/tags`, params, options);
|
32
|
+
}
|
33
|
+
async versions(couponId, params, options) {
|
34
|
+
const _couponId = couponId.id || couponId;
|
35
|
+
return this.resources.fetch({ type: "versions" }, `coupons/${_couponId}/versions`, params, options);
|
36
|
+
}
|
37
|
+
async _add_tags(id, triggerValue, params, options) {
|
38
|
+
return this.resources.update({ id: typeof id === "string" ? id : id.id, type: _Coupons.TYPE, _add_tags: triggerValue }, params, options);
|
39
|
+
}
|
40
|
+
async _remove_tags(id, triggerValue, params, options) {
|
41
|
+
return this.resources.update({ id: typeof id === "string" ? id : id.id, type: _Coupons.TYPE, _remove_tags: triggerValue }, params, options);
|
42
|
+
}
|
43
|
+
isCoupon(resource) {
|
44
|
+
return resource.type && resource.type === _Coupons.TYPE;
|
45
|
+
}
|
46
|
+
relationship(id) {
|
47
|
+
return super.relationshipOneToOne(id);
|
48
|
+
}
|
49
|
+
relationshipToMany(...ids) {
|
50
|
+
return super.relationshipOneToMany(...ids);
|
51
|
+
}
|
52
|
+
type() {
|
53
|
+
return _Coupons.TYPE;
|
54
|
+
}
|
55
|
+
};
|
56
|
+
var instance = new Coupons();
|
57
|
+
var coupons_default = instance;
|
58
|
+
|
59
|
+
exports.coupons_default = coupons_default;
|
60
|
+
//# sourceMappingURL=chunk-Q5XVEESL.cjs.map
|
61
|
+
//# sourceMappingURL=chunk-Q5XVEESL.cjs.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"sources":["../src/resources/coupons.ts"],"names":["ApiResource"],"mappings":"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","file":"chunk-Q5XVEESL.cjs","sourcesContent":["import { ApiResource } from '../resource'\nimport type { Resource, ResourceCreate, ResourceUpdate, ResourceId, ResourcesConfig, ResourceRel, ListResponse, ResourceSort, /* ResourceFilter */ } from '../resource'\nimport type { QueryParamsRetrieve, QueryParamsList } from '../query'\n\nimport type { CouponCodesPromotionRule, CouponCodesPromotionRuleType } from './coupon_codes_promotion_rules'\nimport type { CouponRecipient, CouponRecipientType } from './coupon_recipients'\nimport type { Event } from './events'\nimport type { Tag, TagType } from './tags'\nimport type { Version } from './versions'\n\n\ntype CouponType = 'coupons'\ntype CouponRel = ResourceRel & { type: CouponType }\ntype CouponCodesPromotionRuleRel = ResourceRel & { type: CouponCodesPromotionRuleType }\ntype CouponRecipientRel = ResourceRel & { type: CouponRecipientType }\ntype TagRel = ResourceRel & { type: TagType }\n\n\nexport type CouponSort = Pick<Coupon, 'id' | 'code' | 'customer_single_use' | 'usage_limit' | 'usage_count' | 'expires_at'> & ResourceSort\n// export type CouponFilter = Pick<Coupon, 'id' | 'code' | 'customer_single_use' | 'usage_limit' | 'usage_count' | 'expires_at'> & ResourceFilter\n\n\ninterface Coupon extends Resource {\n\t\n\treadonly type: CouponType\n\n\t/** \n\t * The coupon code, that uniquely identifies the coupon within the promotion rule.\n\t * @example ```\"04371af2-70b3-48d7-8f4e-316b374224c3\"```\n\t */\n\tcode: string\n\t/** \n\t * Indicates if the coupon can be used just once per customer.\n\t */\n\tcustomer_single_use?: boolean | null\n\t/** \n\t * The total number of times this coupon can be used.\n\t * @example ```50```\n\t */\n\tusage_limit?: number | null\n\t/** \n\t * The number of times this coupon has been used.\n\t * @example ```20```\n\t */\n\tusage_count?: number | null\n\t/** \n\t * The email address of the associated recipient. When creating or updating a coupon, this is a shortcut to find or create the associated recipient by email.\n\t * @example ```\"john@example.com\"```\n\t */\n\trecipient_email?: string | null\n\t/** \n\t * Time at which the coupon will expire.\n\t * @example ```\"2018-01-01T12:00:00.000Z\"```\n\t */\n\texpires_at?: string | null\n\n\tpromotion_rule?: CouponCodesPromotionRule | null\n\tcoupon_recipient?: CouponRecipient | null\n\tevents?: Event[] | null\n\ttags?: Tag[] | null\n\tversions?: Version[] | null\n\n}\n\n\ninterface CouponCreate extends ResourceCreate {\n\t\n\t/** \n\t * The coupon code, that uniquely identifies the coupon within the promotion rule.\n\t * @example ```\"04371af2-70b3-48d7-8f4e-316b374224c3\"```\n\t */\n\tcode: string\n\t/** \n\t * Indicates if the coupon can be used just once per customer.\n\t */\n\tcustomer_single_use?: boolean | null\n\t/** \n\t * The total number of times this coupon can be used.\n\t * @example ```50```\n\t */\n\tusage_limit?: number | null\n\t/** \n\t * The email address of the associated recipient. When creating or updating a coupon, this is a shortcut to find or create the associated recipient by email.\n\t * @example ```\"john@example.com\"```\n\t */\n\trecipient_email?: string | null\n\t/** \n\t * Time at which the coupon will expire.\n\t * @example ```\"2018-01-01T12:00:00.000Z\"```\n\t */\n\texpires_at?: string | null\n\n\tpromotion_rule: CouponCodesPromotionRuleRel\n\tcoupon_recipient?: CouponRecipientRel | null\n\ttags?: TagRel[] | null\n\n}\n\n\ninterface CouponUpdate extends ResourceUpdate {\n\t\n\t/** \n\t * The coupon code, that uniquely identifies the coupon within the promotion rule.\n\t * @example ```\"04371af2-70b3-48d7-8f4e-316b374224c3\"```\n\t */\n\tcode?: string | null\n\t/** \n\t * Indicates if the coupon can be used just once per customer.\n\t */\n\tcustomer_single_use?: boolean | null\n\t/** \n\t * The total number of times this coupon can be used.\n\t * @example ```50```\n\t */\n\tusage_limit?: number | null\n\t/** \n\t * The email address of the associated recipient. When creating or updating a coupon, this is a shortcut to find or create the associated recipient by email.\n\t * @example ```\"john@example.com\"```\n\t */\n\trecipient_email?: string | null\n\t/** \n\t * Time at which the coupon will expire.\n\t * @example ```\"2018-01-01T12:00:00.000Z\"```\n\t */\n\texpires_at?: string | null\n\t/** \n\t * Comma separated list of tags to be added. Duplicates, invalid and non existing ones are discarded. Cannot be passed by sales channels.\n\t */\n\t_add_tags?: string | null\n\t/** \n\t * Comma separated list of tags to be removed. Duplicates, invalid and non existing ones are discarded. Cannot be passed by sales channels.\n\t */\n\t_remove_tags?: string | null\n\n\tpromotion_rule?: CouponCodesPromotionRuleRel | null\n\tcoupon_recipient?: CouponRecipientRel | null\n\ttags?: TagRel[] | null\n\n}\n\n\nclass Coupons extends ApiResource<Coupon> {\n\n\tstatic readonly TYPE: CouponType = 'coupons' as const\n\n\tasync create(resource: CouponCreate, params?: QueryParamsRetrieve<Coupon>, options?: ResourcesConfig): Promise<Coupon> {\n\t\treturn this.resources.create<CouponCreate, Coupon>({ ...resource, type: Coupons.TYPE }, params, options)\n\t}\n\n\tasync update(resource: CouponUpdate, params?: QueryParamsRetrieve<Coupon>, options?: ResourcesConfig): Promise<Coupon> {\n\t\treturn this.resources.update<CouponUpdate, Coupon>({ ...resource, type: Coupons.TYPE }, params, options)\n\t}\n\n\tasync delete(id: string | ResourceId, options?: ResourcesConfig): Promise<void> {\n\t\tawait this.resources.delete((typeof id === 'string')? { id, type: Coupons.TYPE } : id, options)\n\t}\n\n\tasync promotion_rule(couponId: string | Coupon, params?: QueryParamsRetrieve<CouponCodesPromotionRule>, options?: ResourcesConfig): Promise<CouponCodesPromotionRule> {\n\t\tconst _couponId = (couponId as Coupon).id || couponId as string\n\t\treturn this.resources.fetch<CouponCodesPromotionRule>({ type: 'coupon_codes_promotion_rules' }, `coupons/${_couponId}/promotion_rule`, params, options) as unknown as CouponCodesPromotionRule\n\t}\n\n\tasync coupon_recipient(couponId: string | Coupon, params?: QueryParamsRetrieve<CouponRecipient>, options?: ResourcesConfig): Promise<CouponRecipient> {\n\t\tconst _couponId = (couponId as Coupon).id || couponId as string\n\t\treturn this.resources.fetch<CouponRecipient>({ type: 'coupon_recipients' }, `coupons/${_couponId}/coupon_recipient`, params, options) as unknown as CouponRecipient\n\t}\n\n\tasync events(couponId: string | Coupon, params?: QueryParamsList<Event>, options?: ResourcesConfig): Promise<ListResponse<Event>> {\n\t\tconst _couponId = (couponId as Coupon).id || couponId as string\n\t\treturn this.resources.fetch<Event>({ type: 'events' }, `coupons/${_couponId}/events`, params, options) as unknown as ListResponse<Event>\n\t}\n\n\tasync tags(couponId: string | Coupon, params?: QueryParamsList<Tag>, options?: ResourcesConfig): Promise<ListResponse<Tag>> {\n\t\tconst _couponId = (couponId as Coupon).id || couponId as string\n\t\treturn this.resources.fetch<Tag>({ type: 'tags' }, `coupons/${_couponId}/tags`, params, options) as unknown as ListResponse<Tag>\n\t}\n\n\tasync versions(couponId: string | Coupon, params?: QueryParamsList<Version>, options?: ResourcesConfig): Promise<ListResponse<Version>> {\n\t\tconst _couponId = (couponId as Coupon).id || couponId as string\n\t\treturn this.resources.fetch<Version>({ type: 'versions' }, `coupons/${_couponId}/versions`, params, options) as unknown as ListResponse<Version>\n\t}\n\n\tasync _add_tags(id: string | Coupon, triggerValue: string, params?: QueryParamsRetrieve<Coupon>, options?: ResourcesConfig): Promise<Coupon> {\n\t\treturn this.resources.update<CouponUpdate, Coupon>({ id: (typeof id === 'string')? id: id.id, type: Coupons.TYPE, _add_tags: triggerValue }, params, options)\n\t}\n\n\tasync _remove_tags(id: string | Coupon, triggerValue: string, params?: QueryParamsRetrieve<Coupon>, options?: ResourcesConfig): Promise<Coupon> {\n\t\treturn this.resources.update<CouponUpdate, Coupon>({ id: (typeof id === 'string')? id: id.id, type: Coupons.TYPE, _remove_tags: triggerValue }, params, options)\n\t}\n\n\n\tisCoupon(resource: any): resource is Coupon {\n\t\treturn resource.type && (resource.type === Coupons.TYPE)\n\t}\n\n\n\trelationship(id: string | ResourceId | null): CouponRel {\n\t\treturn super.relationshipOneToOne<CouponRel>(id)\n\t}\n\n\trelationshipToMany(...ids: string[]): CouponRel[] {\n\t\treturn super.relationshipOneToMany<CouponRel>(...ids)\n\t}\n\n\n\ttype(): CouponType {\n\t\treturn Coupons.TYPE\n\t}\n\n}\n\n\nconst instance = new Coupons()\nexport default instance\n\nexport type { Coupons, Coupon, CouponCreate, CouponUpdate, CouponType }\n"]}
|
@@ -0,0 +1,47 @@
|
|
1
|
+
'use strict';
|
2
|
+
|
3
|
+
var chunkVRXXWQRL_cjs = require('./chunk-VRXXWQRL.cjs');
|
4
|
+
|
5
|
+
// src/resources/sku_list_items.ts
|
6
|
+
var SkuListItems = class _SkuListItems extends chunkVRXXWQRL_cjs.ApiResource {
|
7
|
+
static TYPE = "sku_list_items";
|
8
|
+
async create(resource, params, options) {
|
9
|
+
return this.resources.create({ ...resource, type: _SkuListItems.TYPE }, params, options);
|
10
|
+
}
|
11
|
+
async update(resource, params, options) {
|
12
|
+
return this.resources.update({ ...resource, type: _SkuListItems.TYPE }, params, options);
|
13
|
+
}
|
14
|
+
async delete(id, options) {
|
15
|
+
await this.resources.delete(typeof id === "string" ? { id, type: _SkuListItems.TYPE } : id, options);
|
16
|
+
}
|
17
|
+
async sku_list(skuListItemId, params, options) {
|
18
|
+
const _skuListItemId = skuListItemId.id || skuListItemId;
|
19
|
+
return this.resources.fetch({ type: "sku_lists" }, `sku_list_items/${_skuListItemId}/sku_list`, params, options);
|
20
|
+
}
|
21
|
+
async sku(skuListItemId, params, options) {
|
22
|
+
const _skuListItemId = skuListItemId.id || skuListItemId;
|
23
|
+
return this.resources.fetch({ type: "skus" }, `sku_list_items/${_skuListItemId}/sku`, params, options);
|
24
|
+
}
|
25
|
+
async versions(skuListItemId, params, options) {
|
26
|
+
const _skuListItemId = skuListItemId.id || skuListItemId;
|
27
|
+
return this.resources.fetch({ type: "versions" }, `sku_list_items/${_skuListItemId}/versions`, params, options);
|
28
|
+
}
|
29
|
+
isSkuListItem(resource) {
|
30
|
+
return resource.type && resource.type === _SkuListItems.TYPE;
|
31
|
+
}
|
32
|
+
relationship(id) {
|
33
|
+
return super.relationshipOneToOne(id);
|
34
|
+
}
|
35
|
+
relationshipToMany(...ids) {
|
36
|
+
return super.relationshipOneToMany(...ids);
|
37
|
+
}
|
38
|
+
type() {
|
39
|
+
return _SkuListItems.TYPE;
|
40
|
+
}
|
41
|
+
};
|
42
|
+
var instance = new SkuListItems();
|
43
|
+
var sku_list_items_default = instance;
|
44
|
+
|
45
|
+
exports.sku_list_items_default = sku_list_items_default;
|
46
|
+
//# sourceMappingURL=chunk-Q64YHPFK.cjs.map
|
47
|
+
//# sourceMappingURL=chunk-Q64YHPFK.cjs.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"sources":["../src/resources/sku_list_items.ts"],"names":["ApiResource"],"mappings":";;;;;AA2FA,IAAM,YAAA,GAAN,MAAM,aAAA,SAAqBA,6BAAyB,CAAA;AAAA,EAEnD,OAAgB,IAAwB,GAAA,gBAAA;AAAA,EAExC,MAAM,MAAA,CAAO,QAA6B,EAAA,MAAA,EAA2C,OAAiD,EAAA;AACrI,IAAO,OAAA,IAAA,CAAK,SAAU,CAAA,MAAA,CAAuC,EAAE,GAAG,QAAU,EAAA,IAAA,EAAM,aAAa,CAAA,IAAA,EAAQ,EAAA,MAAA,EAAQ,OAAO,CAAA;AAAA;AACvH,EAEA,MAAM,MAAA,CAAO,QAA6B,EAAA,MAAA,EAA2C,OAAiD,EAAA;AACrI,IAAO,OAAA,IAAA,CAAK,SAAU,CAAA,MAAA,CAAuC,EAAE,GAAG,QAAU,EAAA,IAAA,EAAM,aAAa,CAAA,IAAA,EAAQ,EAAA,MAAA,EAAQ,OAAO,CAAA;AAAA;AACvH,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,aAAA,CAAa,IAAK,EAAA,GAAI,IAAI,OAAO,CAAA;AAAA;AACpG,EAEA,MAAM,QAAA,CAAS,aAAqC,EAAA,MAAA,EAAuC,OAA6C,EAAA;AACvI,IAAM,MAAA,cAAA,GAAkB,cAA8B,EAAM,IAAA,aAAA;AAC5D,IAAO,OAAA,IAAA,CAAK,SAAU,CAAA,KAAA,CAAe,EAAE,IAAA,EAAM,WAAY,EAAA,EAAG,CAAkB,eAAA,EAAA,cAAc,CAAa,SAAA,CAAA,EAAA,MAAA,EAAQ,OAAO,CAAA;AAAA;AACzH,EAEA,MAAM,GAAA,CAAI,aAAqC,EAAA,MAAA,EAAmC,OAAyC,EAAA;AAC1H,IAAM,MAAA,cAAA,GAAkB,cAA8B,EAAM,IAAA,aAAA;AAC5D,IAAO,OAAA,IAAA,CAAK,SAAU,CAAA,KAAA,CAAW,EAAE,IAAA,EAAM,MAAO,EAAA,EAAG,CAAkB,eAAA,EAAA,cAAc,CAAQ,IAAA,CAAA,EAAA,MAAA,EAAQ,OAAO,CAAA;AAAA;AAC3G,EAEA,MAAM,QAAA,CAAS,aAAqC,EAAA,MAAA,EAAmC,OAA2D,EAAA;AACjJ,IAAM,MAAA,cAAA,GAAkB,cAA8B,EAAM,IAAA,aAAA;AAC5D,IAAO,OAAA,IAAA,CAAK,SAAU,CAAA,KAAA,CAAe,EAAE,IAAA,EAAM,UAAW,EAAA,EAAG,CAAkB,eAAA,EAAA,cAAc,CAAa,SAAA,CAAA,EAAA,MAAA,EAAQ,OAAO,CAAA;AAAA;AACxH,EAGA,cAAc,QAAwC,EAAA;AACrD,IAAA,OAAO,QAAS,CAAA,IAAA,IAAS,QAAS,CAAA,IAAA,KAAS,aAAa,CAAA,IAAA;AAAA;AACzD,EAGA,aAAa,EAAgD,EAAA;AAC5D,IAAO,OAAA,KAAA,CAAM,qBAAqC,EAAE,CAAA;AAAA;AACrD,EAEA,sBAAsB,GAAiC,EAAA;AACtD,IAAO,OAAA,KAAA,CAAM,qBAAsC,CAAA,GAAG,GAAG,CAAA;AAAA;AAC1D,EAGA,IAAwB,GAAA;AACvB,IAAA,OAAO,aAAa,CAAA,IAAA;AAAA;AAGtB,CAAA;AAGA,IAAM,QAAA,GAAW,IAAI,YAAa,EAAA;AAClC,IAAO,sBAAQ,GAAA","file":"chunk-Q64YHPFK.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 { SkuList, SkuListType } from './sku_lists'\nimport type { Sku, SkuType } from './skus'\nimport type { Version } from './versions'\n\n\ntype SkuListItemType = 'sku_list_items'\ntype SkuListItemRel = ResourceRel & { type: SkuListItemType }\ntype SkuListRel = ResourceRel & { type: SkuListType }\ntype SkuRel = ResourceRel & { type: SkuType }\n\n\nexport type SkuListItemSort = Pick<SkuListItem, 'id' | 'position' | 'quantity'> & ResourceSort\n// export type SkuListItemFilter = Pick<SkuListItem, 'id' | 'position' | 'quantity'> & ResourceFilter\n\n\ninterface SkuListItem extends Resource {\n\t\n\treadonly type: SkuListItemType\n\n\t/** \n\t * The SKU list item's position.\n\t * @example ```2```\n\t */\n\tposition?: number | null\n\t/** \n\t * The code of the associated SKU.\n\t * @example ```\"TSHIRTMM000000FFFFFFXLXX\"```\n\t */\n\tsku_code?: string | null\n\t/** \n\t * The SKU quantity for this SKU list item.\n\t * @example ```1```\n\t */\n\tquantity?: number | null\n\n\tsku_list?: SkuList | null\n\tsku?: Sku | null\n\tversions?: Version[] | null\n\n}\n\n\ninterface SkuListItemCreate extends ResourceCreate {\n\t\n\t/** \n\t * The SKU list item's position.\n\t * @example ```2```\n\t */\n\tposition?: number | null\n\t/** \n\t * The code of the associated SKU.\n\t * @example ```\"TSHIRTMM000000FFFFFFXLXX\"```\n\t */\n\tsku_code?: string | null\n\t/** \n\t * The SKU quantity for this SKU list item.\n\t * @example ```1```\n\t */\n\tquantity?: number | null\n\n\tsku_list: SkuListRel\n\tsku: SkuRel\n\n}\n\n\ninterface SkuListItemUpdate extends ResourceUpdate {\n\t\n\t/** \n\t * The SKU list item's position.\n\t * @example ```2```\n\t */\n\tposition?: number | null\n\t/** \n\t * The code of the associated SKU.\n\t * @example ```\"TSHIRTMM000000FFFFFFXLXX\"```\n\t */\n\tsku_code?: string | null\n\t/** \n\t * The SKU quantity for this SKU list item.\n\t * @example ```1```\n\t */\n\tquantity?: number | null\n\t\n}\n\n\nclass SkuListItems extends ApiResource<SkuListItem> {\n\n\tstatic readonly TYPE: SkuListItemType = 'sku_list_items' as const\n\n\tasync create(resource: SkuListItemCreate, params?: QueryParamsRetrieve<SkuListItem>, options?: ResourcesConfig): Promise<SkuListItem> {\n\t\treturn this.resources.create<SkuListItemCreate, SkuListItem>({ ...resource, type: SkuListItems.TYPE }, params, options)\n\t}\n\n\tasync update(resource: SkuListItemUpdate, params?: QueryParamsRetrieve<SkuListItem>, options?: ResourcesConfig): Promise<SkuListItem> {\n\t\treturn this.resources.update<SkuListItemUpdate, SkuListItem>({ ...resource, type: SkuListItems.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: SkuListItems.TYPE } : id, options)\n\t}\n\n\tasync sku_list(skuListItemId: string | SkuListItem, params?: QueryParamsRetrieve<SkuList>, options?: ResourcesConfig): Promise<SkuList> {\n\t\tconst _skuListItemId = (skuListItemId as SkuListItem).id || skuListItemId as string\n\t\treturn this.resources.fetch<SkuList>({ type: 'sku_lists' }, `sku_list_items/${_skuListItemId}/sku_list`, params, options) as unknown as SkuList\n\t}\n\n\tasync sku(skuListItemId: string | SkuListItem, params?: QueryParamsRetrieve<Sku>, options?: ResourcesConfig): Promise<Sku> {\n\t\tconst _skuListItemId = (skuListItemId as SkuListItem).id || skuListItemId as string\n\t\treturn this.resources.fetch<Sku>({ type: 'skus' }, `sku_list_items/${_skuListItemId}/sku`, params, options) as unknown as Sku\n\t}\n\n\tasync versions(skuListItemId: string | SkuListItem, params?: QueryParamsList<Version>, options?: ResourcesConfig): Promise<ListResponse<Version>> {\n\t\tconst _skuListItemId = (skuListItemId as SkuListItem).id || skuListItemId as string\n\t\treturn this.resources.fetch<Version>({ type: 'versions' }, `sku_list_items/${_skuListItemId}/versions`, params, options) as unknown as ListResponse<Version>\n\t}\n\n\n\tisSkuListItem(resource: any): resource is SkuListItem {\n\t\treturn resource.type && (resource.type === SkuListItems.TYPE)\n\t}\n\n\n\trelationship(id: string | ResourceId | null): SkuListItemRel {\n\t\treturn super.relationshipOneToOne<SkuListItemRel>(id)\n\t}\n\n\trelationshipToMany(...ids: string[]): SkuListItemRel[] {\n\t\treturn super.relationshipOneToMany<SkuListItemRel>(...ids)\n\t}\n\n\n\ttype(): SkuListItemType {\n\t\treturn SkuListItems.TYPE\n\t}\n\n}\n\n\nconst instance = new SkuListItems()\nexport default instance\n\nexport type { SkuListItems, SkuListItem, SkuListItemCreate, SkuListItemUpdate, SkuListItemType }\n"]}
|
@@ -0,0 +1,38 @@
|
|
1
|
+
'use strict';
|
2
|
+
|
3
|
+
var chunkVRXXWQRL_cjs = require('./chunk-VRXXWQRL.cjs');
|
4
|
+
|
5
|
+
// src/resources/order_factories.ts
|
6
|
+
var OrderFactories = class _OrderFactories extends chunkVRXXWQRL_cjs.ApiResource {
|
7
|
+
static TYPE = "order_factories";
|
8
|
+
async source_order(orderFactoryId, params, options) {
|
9
|
+
const _orderFactoryId = orderFactoryId.id || orderFactoryId;
|
10
|
+
return this.resources.fetch({ type: "orders" }, `order_factories/${_orderFactoryId}/source_order`, params, options);
|
11
|
+
}
|
12
|
+
async target_order(orderFactoryId, params, options) {
|
13
|
+
const _orderFactoryId = orderFactoryId.id || orderFactoryId;
|
14
|
+
return this.resources.fetch({ type: "orders" }, `order_factories/${_orderFactoryId}/target_order`, params, options);
|
15
|
+
}
|
16
|
+
async events(orderFactoryId, params, options) {
|
17
|
+
const _orderFactoryId = orderFactoryId.id || orderFactoryId;
|
18
|
+
return this.resources.fetch({ type: "events" }, `order_factories/${_orderFactoryId}/events`, params, options);
|
19
|
+
}
|
20
|
+
isOrderFactory(resource) {
|
21
|
+
return resource.type && resource.type === _OrderFactories.TYPE;
|
22
|
+
}
|
23
|
+
relationship(id) {
|
24
|
+
return super.relationshipOneToOne(id);
|
25
|
+
}
|
26
|
+
relationshipToMany(...ids) {
|
27
|
+
return super.relationshipOneToMany(...ids);
|
28
|
+
}
|
29
|
+
type() {
|
30
|
+
return _OrderFactories.TYPE;
|
31
|
+
}
|
32
|
+
};
|
33
|
+
var instance = new OrderFactories();
|
34
|
+
var order_factories_default = instance;
|
35
|
+
|
36
|
+
exports.order_factories_default = order_factories_default;
|
37
|
+
//# sourceMappingURL=chunk-Q7PILATE.cjs.map
|
38
|
+
//# sourceMappingURL=chunk-Q7PILATE.cjs.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"sources":["../src/resources/order_factories.ts"],"names":["ApiResource"],"mappings":";;;;;AAoEA,IAAM,cAAA,GAAN,MAAM,eAAA,SAAuBA,6BAA0B,CAAA;AAAA,EAEtD,OAAgB,IAAyB,GAAA,iBAAA;AAAA,EAEzC,MAAM,YAAA,CAAa,cAAuC,EAAA,MAAA,EAAqC,OAA2C,EAAA;AACzI,IAAM,MAAA,eAAA,GAAmB,eAAgC,EAAM,IAAA,cAAA;AAC/D,IAAO,OAAA,IAAA,CAAK,SAAU,CAAA,KAAA,CAAa,EAAE,IAAA,EAAM,QAAS,EAAA,EAAG,CAAmB,gBAAA,EAAA,eAAe,CAAiB,aAAA,CAAA,EAAA,MAAA,EAAQ,OAAO,CAAA;AAAA;AAC1H,EAEA,MAAM,YAAA,CAAa,cAAuC,EAAA,MAAA,EAAqC,OAA2C,EAAA;AACzI,IAAM,MAAA,eAAA,GAAmB,eAAgC,EAAM,IAAA,cAAA;AAC/D,IAAO,OAAA,IAAA,CAAK,SAAU,CAAA,KAAA,CAAa,EAAE,IAAA,EAAM,QAAS,EAAA,EAAG,CAAmB,gBAAA,EAAA,eAAe,CAAiB,aAAA,CAAA,EAAA,MAAA,EAAQ,OAAO,CAAA;AAAA;AAC1H,EAEA,MAAM,MAAA,CAAO,cAAuC,EAAA,MAAA,EAAiC,OAAyD,EAAA;AAC7I,IAAM,MAAA,eAAA,GAAmB,eAAgC,EAAM,IAAA,cAAA;AAC/D,IAAO,OAAA,IAAA,CAAK,SAAU,CAAA,KAAA,CAAa,EAAE,IAAA,EAAM,QAAS,EAAA,EAAG,CAAmB,gBAAA,EAAA,eAAe,CAAW,OAAA,CAAA,EAAA,MAAA,EAAQ,OAAO,CAAA;AAAA;AACpH,EAGA,eAAe,QAAyC,EAAA;AACvD,IAAA,OAAO,QAAS,CAAA,IAAA,IAAS,QAAS,CAAA,IAAA,KAAS,eAAe,CAAA,IAAA;AAAA;AAC3D,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,eAAe,CAAA,IAAA;AAAA;AAGxB,CAAA;AAGA,IAAM,QAAA,GAAW,IAAI,cAAe,EAAA;AACpC,IAAO,uBAAQ,GAAA","file":"chunk-Q7PILATE.cjs","sourcesContent":["import { ApiResource } from '../resource'\nimport type { Resource, ResourceId, ResourcesConfig, ResourceRel, ListResponse, ResourceSort, /* ResourceFilter */ } from '../resource'\nimport type { QueryParamsRetrieve, QueryParamsList } from '../query'\n\nimport type { Order } from './orders'\nimport type { Event } from './events'\n\n\ntype OrderFactoryType = 'order_factories'\ntype OrderFactoryRel = ResourceRel & { type: OrderFactoryType }\n\n\nexport type OrderFactorySort = Pick<OrderFactory, 'id' | 'status' | 'started_at' | 'completed_at' | 'failed_at' | 'errors_count'> & ResourceSort\n// export type OrderFactoryFilter = Pick<OrderFactory, 'id' | 'status' | 'started_at' | 'completed_at' | 'failed_at' | 'errors_count'> & ResourceFilter\n\n\ninterface OrderFactory extends Resource {\n\t\n\treadonly type: OrderFactoryType\n\n\t/** \n\t * The order factory status. One of 'pending' (default), 'in_progress', 'aborted', 'failed', or 'completed'.\n\t * @example ```\"in_progress\"```\n\t */\n\tstatus: 'pending' | 'in_progress' | 'aborted' | 'failed' | 'completed'\n\t/** \n\t * Time at which the order copy 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 order copy 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 order copy has failed.\n\t * @example ```\"2018-01-01T12:00:00.000Z\"```\n\t */\n\tfailed_at?: string | null\n\t/** \n\t * Contains the order copy errors, if any.\n\t * @example ```{\"status\":[\"cannot transition from draft to placed\"]}```\n\t */\n\terrors_log?: Record<string, any> | null\n\t/** \n\t * Indicates the number of copy errors, if any.\n\t * @example ```2```\n\t */\n\terrors_count?: number | null\n\t/** \n\t * Indicates if the target order must be placed upon copy.\n\t * @example ```true```\n\t */\n\tplace_target_order?: boolean | null\n\t/** \n\t * Indicates if the payment source within the source order customer's wallet must be copied.\n\t * @example ```true```\n\t */\n\treuse_wallet?: boolean | null\n\n\tsource_order?: Order | null\n\ttarget_order?: Order | null\n\tevents?: Event[] | null\n\n}\n\n\nclass OrderFactories extends ApiResource<OrderFactory> {\n\n\tstatic readonly TYPE: OrderFactoryType = 'order_factories' as const\n\n\tasync source_order(orderFactoryId: string | OrderFactory, params?: QueryParamsRetrieve<Order>, options?: ResourcesConfig): Promise<Order> {\n\t\tconst _orderFactoryId = (orderFactoryId as OrderFactory).id || orderFactoryId as string\n\t\treturn this.resources.fetch<Order>({ type: 'orders' }, `order_factories/${_orderFactoryId}/source_order`, params, options) as unknown as Order\n\t}\n\n\tasync target_order(orderFactoryId: string | OrderFactory, params?: QueryParamsRetrieve<Order>, options?: ResourcesConfig): Promise<Order> {\n\t\tconst _orderFactoryId = (orderFactoryId as OrderFactory).id || orderFactoryId as string\n\t\treturn this.resources.fetch<Order>({ type: 'orders' }, `order_factories/${_orderFactoryId}/target_order`, params, options) as unknown as Order\n\t}\n\n\tasync events(orderFactoryId: string | OrderFactory, params?: QueryParamsList<Event>, options?: ResourcesConfig): Promise<ListResponse<Event>> {\n\t\tconst _orderFactoryId = (orderFactoryId as OrderFactory).id || orderFactoryId as string\n\t\treturn this.resources.fetch<Event>({ type: 'events' }, `order_factories/${_orderFactoryId}/events`, params, options) as unknown as ListResponse<Event>\n\t}\n\n\n\tisOrderFactory(resource: any): resource is OrderFactory {\n\t\treturn resource.type && (resource.type === OrderFactories.TYPE)\n\t}\n\n\n\trelationship(id: string | ResourceId | null): OrderFactoryRel {\n\t\treturn super.relationshipOneToOne<OrderFactoryRel>(id)\n\t}\n\n\trelationshipToMany(...ids: string[]): OrderFactoryRel[] {\n\t\treturn super.relationshipOneToMany<OrderFactoryRel>(...ids)\n\t}\n\n\n\ttype(): OrderFactoryType {\n\t\treturn OrderFactories.TYPE\n\t}\n\n}\n\n\nconst instance = new OrderFactories()\nexport default instance\n\nexport type { OrderFactories, OrderFactory, OrderFactoryType }\n"]}
|
@@ -0,0 +1,49 @@
|
|
1
|
+
import { ApiResource } from './chunk-XAABBRMY.js';
|
2
|
+
|
3
|
+
// src/resources/packages.ts
|
4
|
+
var Packages = class _Packages extends ApiResource {
|
5
|
+
static TYPE = "packages";
|
6
|
+
async create(resource, params, options) {
|
7
|
+
return this.resources.create({ ...resource, type: _Packages.TYPE }, params, options);
|
8
|
+
}
|
9
|
+
async update(resource, params, options) {
|
10
|
+
return this.resources.update({ ...resource, type: _Packages.TYPE }, params, options);
|
11
|
+
}
|
12
|
+
async delete(id, options) {
|
13
|
+
await this.resources.delete(typeof id === "string" ? { id, type: _Packages.TYPE } : id, options);
|
14
|
+
}
|
15
|
+
async stock_location(packageId, params, options) {
|
16
|
+
const _packageId = packageId.id || packageId;
|
17
|
+
return this.resources.fetch({ type: "stock_locations" }, `packages/${_packageId}/stock_location`, params, options);
|
18
|
+
}
|
19
|
+
async parcels(packageId, params, options) {
|
20
|
+
const _packageId = packageId.id || packageId;
|
21
|
+
return this.resources.fetch({ type: "parcels" }, `packages/${_packageId}/parcels`, params, options);
|
22
|
+
}
|
23
|
+
async attachments(packageId, params, options) {
|
24
|
+
const _packageId = packageId.id || packageId;
|
25
|
+
return this.resources.fetch({ type: "attachments" }, `packages/${_packageId}/attachments`, params, options);
|
26
|
+
}
|
27
|
+
async versions(packageId, params, options) {
|
28
|
+
const _packageId = packageId.id || packageId;
|
29
|
+
return this.resources.fetch({ type: "versions" }, `packages/${_packageId}/versions`, params, options);
|
30
|
+
}
|
31
|
+
isPackage(resource) {
|
32
|
+
return resource.type && resource.type === _Packages.TYPE;
|
33
|
+
}
|
34
|
+
relationship(id) {
|
35
|
+
return super.relationshipOneToOne(id);
|
36
|
+
}
|
37
|
+
relationshipToMany(...ids) {
|
38
|
+
return super.relationshipOneToMany(...ids);
|
39
|
+
}
|
40
|
+
type() {
|
41
|
+
return _Packages.TYPE;
|
42
|
+
}
|
43
|
+
};
|
44
|
+
var instance = new Packages();
|
45
|
+
var packages_default = instance;
|
46
|
+
|
47
|
+
export { packages_default };
|
48
|
+
//# sourceMappingURL=chunk-QAQU6OIM.js.map
|
49
|
+
//# sourceMappingURL=chunk-QAQU6OIM.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"sources":["../src/resources/packages.ts"],"names":[],"mappings":"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","file":"chunk-QAQU6OIM.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 { StockLocation, StockLocationType } from './stock_locations'\nimport type { Parcel } from './parcels'\nimport type { Attachment } from './attachments'\nimport type { Version } from './versions'\n\n\ntype PackageType = 'packages'\ntype PackageRel = ResourceRel & { type: PackageType }\ntype StockLocationRel = ResourceRel & { type: StockLocationType }\n\n\nexport type PackageSort = Pick<Package, 'id' | 'name' | 'code' | 'length' | 'width' | 'height' | 'unit_of_length'> & ResourceSort\n// export type PackageFilter = Pick<Package, 'id' | 'name' | 'code' | 'length' | 'width' | 'height' | 'unit_of_length'> & ResourceFilter\n\n\ninterface Package extends Resource {\n\t\n\treadonly type: PackageType\n\n\t/** \n\t * Unique name for the package.\n\t * @example ```\"Large (60x40x30)\"```\n\t */\n\tname: string\n\t/** \n\t * The package identifying code.\n\t * @example ```\"YYYY 2000\"```\n\t */\n\tcode?: string | null\n\t/** \n\t * The package length, used to automatically calculate the tax rates from the available carrier accounts.\n\t * @example ```40```\n\t */\n\tlength: number\n\t/** \n\t * The package width, used to automatically calculate the tax rates from the available carrier accounts.\n\t * @example ```40```\n\t */\n\twidth: number\n\t/** \n\t * The package height, used to automatically calculate the tax rates from the available carrier accounts.\n\t * @example ```25```\n\t */\n\theight: number\n\t/** \n\t * The unit of length. Can be one of 'cm', or 'in'.\n\t * @example ```\"gr\"```\n\t */\n\tunit_of_length: string\n\n\tstock_location?: StockLocation | null\n\tparcels?: Parcel[] | null\n\tattachments?: Attachment[] | null\n\tversions?: Version[] | null\n\n}\n\n\ninterface PackageCreate extends ResourceCreate {\n\t\n\t/** \n\t * Unique name for the package.\n\t * @example ```\"Large (60x40x30)\"```\n\t */\n\tname: string\n\t/** \n\t * The package identifying code.\n\t * @example ```\"YYYY 2000\"```\n\t */\n\tcode?: string | null\n\t/** \n\t * The package length, used to automatically calculate the tax rates from the available carrier accounts.\n\t * @example ```40```\n\t */\n\tlength: number\n\t/** \n\t * The package width, used to automatically calculate the tax rates from the available carrier accounts.\n\t * @example ```40```\n\t */\n\twidth: number\n\t/** \n\t * The package height, used to automatically calculate the tax rates from the available carrier accounts.\n\t * @example ```25```\n\t */\n\theight: number\n\t/** \n\t * The unit of length. Can be one of 'cm', or 'in'.\n\t * @example ```\"gr\"```\n\t */\n\tunit_of_length: string\n\n\tstock_location: StockLocationRel\n\n}\n\n\ninterface PackageUpdate extends ResourceUpdate {\n\t\n\t/** \n\t * Unique name for the package.\n\t * @example ```\"Large (60x40x30)\"```\n\t */\n\tname?: string | null\n\t/** \n\t * The package identifying code.\n\t * @example ```\"YYYY 2000\"```\n\t */\n\tcode?: string | null\n\t/** \n\t * The package length, used to automatically calculate the tax rates from the available carrier accounts.\n\t * @example ```40```\n\t */\n\tlength?: number | null\n\t/** \n\t * The package width, used to automatically calculate the tax rates from the available carrier accounts.\n\t * @example ```40```\n\t */\n\twidth?: number | null\n\t/** \n\t * The package height, used to automatically calculate the tax rates from the available carrier accounts.\n\t * @example ```25```\n\t */\n\theight?: number | null\n\t/** \n\t * The unit of length. Can be one of 'cm', or 'in'.\n\t * @example ```\"gr\"```\n\t */\n\tunit_of_length?: string | null\n\n\tstock_location?: StockLocationRel | null\n\n}\n\n\nclass Packages extends ApiResource<Package> {\n\n\tstatic readonly TYPE: PackageType = 'packages' as const\n\n\tasync create(resource: PackageCreate, params?: QueryParamsRetrieve<Package>, options?: ResourcesConfig): Promise<Package> {\n\t\treturn this.resources.create<PackageCreate, Package>({ ...resource, type: Packages.TYPE }, params, options)\n\t}\n\n\tasync update(resource: PackageUpdate, params?: QueryParamsRetrieve<Package>, options?: ResourcesConfig): Promise<Package> {\n\t\treturn this.resources.update<PackageUpdate, Package>({ ...resource, type: Packages.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: Packages.TYPE } : id, options)\n\t}\n\n\tasync stock_location(packageId: string | Package, params?: QueryParamsRetrieve<StockLocation>, options?: ResourcesConfig): Promise<StockLocation> {\n\t\tconst _packageId = (packageId as Package).id || packageId as string\n\t\treturn this.resources.fetch<StockLocation>({ type: 'stock_locations' }, `packages/${_packageId}/stock_location`, params, options) as unknown as StockLocation\n\t}\n\n\tasync parcels(packageId: string | Package, params?: QueryParamsList<Parcel>, options?: ResourcesConfig): Promise<ListResponse<Parcel>> {\n\t\tconst _packageId = (packageId as Package).id || packageId as string\n\t\treturn this.resources.fetch<Parcel>({ type: 'parcels' }, `packages/${_packageId}/parcels`, params, options) as unknown as ListResponse<Parcel>\n\t}\n\n\tasync attachments(packageId: string | Package, params?: QueryParamsList<Attachment>, options?: ResourcesConfig): Promise<ListResponse<Attachment>> {\n\t\tconst _packageId = (packageId as Package).id || packageId as string\n\t\treturn this.resources.fetch<Attachment>({ type: 'attachments' }, `packages/${_packageId}/attachments`, params, options) as unknown as ListResponse<Attachment>\n\t}\n\n\tasync versions(packageId: string | Package, params?: QueryParamsList<Version>, options?: ResourcesConfig): Promise<ListResponse<Version>> {\n\t\tconst _packageId = (packageId as Package).id || packageId as string\n\t\treturn this.resources.fetch<Version>({ type: 'versions' }, `packages/${_packageId}/versions`, params, options) as unknown as ListResponse<Version>\n\t}\n\n\n\tisPackage(resource: any): resource is Package {\n\t\treturn resource.type && (resource.type === Packages.TYPE)\n\t}\n\n\n\trelationship(id: string | ResourceId | null): PackageRel {\n\t\treturn super.relationshipOneToOne<PackageRel>(id)\n\t}\n\n\trelationshipToMany(...ids: string[]): PackageRel[] {\n\t\treturn super.relationshipOneToMany<PackageRel>(...ids)\n\t}\n\n\n\ttype(): PackageType {\n\t\treturn Packages.TYPE\n\t}\n\n}\n\n\nconst instance = new Packages()\nexport default instance\n\nexport type { Packages, Package, PackageCreate, PackageUpdate, PackageType }\n"]}
|
@@ -0,0 +1,55 @@
|
|
1
|
+
import { ApiResource } from './chunk-XAABBRMY.js';
|
2
|
+
|
3
|
+
// src/resources/addresses.ts
|
4
|
+
var Addresses = class _Addresses extends ApiResource {
|
5
|
+
static TYPE = "addresses";
|
6
|
+
async create(resource, params, options) {
|
7
|
+
return this.resources.create({ ...resource, type: _Addresses.TYPE }, params, options);
|
8
|
+
}
|
9
|
+
async update(resource, params, options) {
|
10
|
+
return this.resources.update({ ...resource, type: _Addresses.TYPE }, params, options);
|
11
|
+
}
|
12
|
+
async delete(id, options) {
|
13
|
+
await this.resources.delete(typeof id === "string" ? { id, type: _Addresses.TYPE } : id, options);
|
14
|
+
}
|
15
|
+
async geocoder(addressId, params, options) {
|
16
|
+
const _addressId = addressId.id || addressId;
|
17
|
+
return this.resources.fetch({ type: "geocoders" }, `addresses/${_addressId}/geocoder`, params, options);
|
18
|
+
}
|
19
|
+
async events(addressId, params, options) {
|
20
|
+
const _addressId = addressId.id || addressId;
|
21
|
+
return this.resources.fetch({ type: "events" }, `addresses/${_addressId}/events`, params, options);
|
22
|
+
}
|
23
|
+
async tags(addressId, params, options) {
|
24
|
+
const _addressId = addressId.id || addressId;
|
25
|
+
return this.resources.fetch({ type: "tags" }, `addresses/${_addressId}/tags`, params, options);
|
26
|
+
}
|
27
|
+
async versions(addressId, params, options) {
|
28
|
+
const _addressId = addressId.id || addressId;
|
29
|
+
return this.resources.fetch({ type: "versions" }, `addresses/${_addressId}/versions`, params, options);
|
30
|
+
}
|
31
|
+
async _add_tags(id, triggerValue, params, options) {
|
32
|
+
return this.resources.update({ id: typeof id === "string" ? id : id.id, type: _Addresses.TYPE, _add_tags: triggerValue }, params, options);
|
33
|
+
}
|
34
|
+
async _remove_tags(id, triggerValue, params, options) {
|
35
|
+
return this.resources.update({ id: typeof id === "string" ? id : id.id, type: _Addresses.TYPE, _remove_tags: triggerValue }, params, options);
|
36
|
+
}
|
37
|
+
isAddress(resource) {
|
38
|
+
return resource.type && resource.type === _Addresses.TYPE;
|
39
|
+
}
|
40
|
+
relationship(id) {
|
41
|
+
return super.relationshipOneToOne(id);
|
42
|
+
}
|
43
|
+
relationshipToMany(...ids) {
|
44
|
+
return super.relationshipOneToMany(...ids);
|
45
|
+
}
|
46
|
+
type() {
|
47
|
+
return _Addresses.TYPE;
|
48
|
+
}
|
49
|
+
};
|
50
|
+
var instance = new Addresses();
|
51
|
+
var addresses_default = instance;
|
52
|
+
|
53
|
+
export { addresses_default };
|
54
|
+
//# sourceMappingURL=chunk-QFXJXWXT.js.map
|
55
|
+
//# sourceMappingURL=chunk-QFXJXWXT.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"sources":["../src/resources/addresses.ts"],"names":[],"mappings":"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","file":"chunk-QFXJXWXT.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 { Geocoder, GeocoderType } from './geocoders'\nimport type { Event } from './events'\nimport type { Tag, TagType } from './tags'\nimport type { Version } from './versions'\n\n\ntype AddressType = 'addresses'\ntype AddressRel = ResourceRel & { type: AddressType }\ntype GeocoderRel = ResourceRel & { type: GeocoderType }\ntype TagRel = ResourceRel & { type: TagType }\n\n\nexport type AddressSort = Pick<Address, 'id' | 'city' | 'state_code' | 'country_code'> & ResourceSort\n// export type AddressFilter = Pick<Address, 'id' | 'business' | 'first_name' | 'last_name' | 'company' | 'line_1' | 'line_2' | 'city' | 'zip_code' | 'state_code' | 'country_code' | 'phone' | 'email' | 'notes' | 'lat' | 'lng' | 'billing_info'> & ResourceFilter\n\n\ninterface Address extends Resource {\n\t\n\treadonly type: AddressType\n\n\t/** \n\t * Indicates if it's a business or a personal address.\n\t */\n\tbusiness?: boolean | null\n\t/** \n\t * Address first name (personal).\n\t * @example ```\"John\"```\n\t */\n\tfirst_name?: string | null\n\t/** \n\t * Address last name (personal).\n\t * @example ```\"Smith\"```\n\t */\n\tlast_name?: string | null\n\t/** \n\t * Address company name (business).\n\t * @example ```\"The Red Brand Inc.\"```\n\t */\n\tcompany?: string | null\n\t/** \n\t * Company name (business) of first name and last name (personal).\n\t * @example ```\"John Smith\"```\n\t */\n\tfull_name?: string | null\n\t/** \n\t * Address line 1, i.e. Street address, PO Box.\n\t * @example ```\"2883 Geraldine Lane\"```\n\t */\n\tline_1: string\n\t/** \n\t * Address line 2, i.e. Apartment, Suite, Building.\n\t * @example ```\"Apt.23\"```\n\t */\n\tline_2?: string | null\n\t/** \n\t * Address city.\n\t * @example ```\"New York\"```\n\t */\n\tcity: string\n\t/** \n\t * ZIP or postal code.\n\t * @example ```\"10013\"```\n\t */\n\tzip_code?: string | null\n\t/** \n\t * State, province or region code.\n\t * @example ```\"NY\"```\n\t */\n\tstate_code: string\n\t/** \n\t * The international 2-letter country code as defined by the ISO 3166-1 standard.\n\t * @example ```\"US\"```\n\t */\n\tcountry_code: string\n\t/** \n\t * Phone number (including extension).\n\t * @example ```\"(212) 646-338-1228\"```\n\t */\n\tphone: string\n\t/** \n\t * Compact description of the address location, without the full name.\n\t * @example ```\"2883 Geraldine Lane Apt.23, 10013 New York NY (US) (212) 646-338-1228\"```\n\t */\n\tfull_address?: string | null\n\t/** \n\t * Compact description of the address location, including the full name.\n\t * @example ```\"John Smith, 2883 Geraldine Lane Apt.23, 10013 New York NY (US) (212) 646-338-1228\"```\n\t */\n\tname?: string | null\n\t/** \n\t * Email address.\n\t * @example ```\"john@example.com\"```\n\t */\n\temail?: string | null\n\t/** \n\t * A free notes attached to the address. When used as a shipping address, this can be useful to let the customers add specific delivery instructions.\n\t * @example ```\"Please ring the bell twice\"```\n\t */\n\tnotes?: string | null\n\t/** \n\t * The address geocoded latitude. This is automatically generated when creating a shipping/billing address for an order and a valid geocoder is attached to the order's market.\n\t * @example ```40.6971494```\n\t */\n\tlat?: number | null\n\t/** \n\t * The address geocoded longitude. This is automatically generated when creating a shipping/billing address for an order and a valid geocoder is attached to the order's market.\n\t * @example ```-74.2598672```\n\t */\n\tlng?: number | null\n\t/** \n\t * Indicates if the latitude and logitude are present, either geocoded or manually updated.\n\t * @example ```true```\n\t */\n\tis_localized?: boolean | null\n\t/** \n\t * Indicates if the address has been successfully geocoded.\n\t * @example ```true```\n\t */\n\tis_geocoded?: boolean | null\n\t/** \n\t * The geocoder provider name (either Google or Bing).\n\t * @example ```\"google\"```\n\t */\n\tprovider_name?: string | null\n\t/** \n\t * The map url of the geocoded address (if geocoded).\n\t * @example ```\"https://www.google.com/maps/search/?api=1&query=40.6971494,-74.2598672\"```\n\t */\n\tmap_url?: string | null\n\t/** \n\t * The static map image url of the geocoded address (if geocoded).\n\t * @example ```\"https://maps.googleapis.com/maps/api/staticmap?center=40.6971494,-74.2598672&size=640x320&zoom=15\"```\n\t */\n\tstatic_map_url?: string | null\n\t/** \n\t * Customer's billing information (i.e. VAT number, codice fiscale).\n\t * @example ```\"VAT ID IT02382940977\"```\n\t */\n\tbilling_info?: string | null\n\n\tgeocoder?: Geocoder | null\n\tevents?: Event[] | null\n\ttags?: Tag[] | null\n\tversions?: Version[] | null\n\n}\n\n\ninterface AddressCreate extends ResourceCreate {\n\t\n\t/** \n\t * Indicates if it's a business or a personal address.\n\t */\n\tbusiness?: boolean | null\n\t/** \n\t * Address first name (personal).\n\t * @example ```\"John\"```\n\t */\n\tfirst_name?: string | null\n\t/** \n\t * Address last name (personal).\n\t * @example ```\"Smith\"```\n\t */\n\tlast_name?: string | null\n\t/** \n\t * Address company name (business).\n\t * @example ```\"The Red Brand Inc.\"```\n\t */\n\tcompany?: string | null\n\t/** \n\t * Address line 1, i.e. Street address, PO Box.\n\t * @example ```\"2883 Geraldine Lane\"```\n\t */\n\tline_1: string\n\t/** \n\t * Address line 2, i.e. Apartment, Suite, Building.\n\t * @example ```\"Apt.23\"```\n\t */\n\tline_2?: string | null\n\t/** \n\t * Address city.\n\t * @example ```\"New York\"```\n\t */\n\tcity: string\n\t/** \n\t * ZIP or postal code.\n\t * @example ```\"10013\"```\n\t */\n\tzip_code?: string | null\n\t/** \n\t * State, province or region code.\n\t * @example ```\"NY\"```\n\t */\n\tstate_code: string\n\t/** \n\t * The international 2-letter country code as defined by the ISO 3166-1 standard.\n\t * @example ```\"US\"```\n\t */\n\tcountry_code: string\n\t/** \n\t * Phone number (including extension).\n\t * @example ```\"(212) 646-338-1228\"```\n\t */\n\tphone: string\n\t/** \n\t * Email address.\n\t * @example ```\"john@example.com\"```\n\t */\n\temail?: string | null\n\t/** \n\t * A free notes attached to the address. When used as a shipping address, this can be useful to let the customers add specific delivery instructions.\n\t * @example ```\"Please ring the bell twice\"```\n\t */\n\tnotes?: string | null\n\t/** \n\t * The address geocoded latitude. This is automatically generated when creating a shipping/billing address for an order and a valid geocoder is attached to the order's market.\n\t * @example ```40.6971494```\n\t */\n\tlat?: number | null\n\t/** \n\t * The address geocoded longitude. This is automatically generated when creating a shipping/billing address for an order and a valid geocoder is attached to the order's market.\n\t * @example ```-74.2598672```\n\t */\n\tlng?: number | null\n\t/** \n\t * Customer's billing information (i.e. VAT number, codice fiscale).\n\t * @example ```\"VAT ID IT02382940977\"```\n\t */\n\tbilling_info?: string | null\n\n\tgeocoder?: GeocoderRel | null\n\ttags?: TagRel[] | null\n\n}\n\n\ninterface AddressUpdate extends ResourceUpdate {\n\t\n\t/** \n\t * Indicates if it's a business or a personal address.\n\t */\n\tbusiness?: boolean | null\n\t/** \n\t * Address first name (personal).\n\t * @example ```\"John\"```\n\t */\n\tfirst_name?: string | null\n\t/** \n\t * Address last name (personal).\n\t * @example ```\"Smith\"```\n\t */\n\tlast_name?: string | null\n\t/** \n\t * Address company name (business).\n\t * @example ```\"The Red Brand Inc.\"```\n\t */\n\tcompany?: string | null\n\t/** \n\t * Address line 1, i.e. Street address, PO Box.\n\t * @example ```\"2883 Geraldine Lane\"```\n\t */\n\tline_1?: string | null\n\t/** \n\t * Address line 2, i.e. Apartment, Suite, Building.\n\t * @example ```\"Apt.23\"```\n\t */\n\tline_2?: string | null\n\t/** \n\t * Address city.\n\t * @example ```\"New York\"```\n\t */\n\tcity?: string | null\n\t/** \n\t * ZIP or postal code.\n\t * @example ```\"10013\"```\n\t */\n\tzip_code?: string | null\n\t/** \n\t * State, province or region code.\n\t * @example ```\"NY\"```\n\t */\n\tstate_code?: string | null\n\t/** \n\t * The international 2-letter country code as defined by the ISO 3166-1 standard.\n\t * @example ```\"US\"```\n\t */\n\tcountry_code?: string | null\n\t/** \n\t * Phone number (including extension).\n\t * @example ```\"(212) 646-338-1228\"```\n\t */\n\tphone?: string | null\n\t/** \n\t * Email address.\n\t * @example ```\"john@example.com\"```\n\t */\n\temail?: string | null\n\t/** \n\t * A free notes attached to the address. When used as a shipping address, this can be useful to let the customers add specific delivery instructions.\n\t * @example ```\"Please ring the bell twice\"```\n\t */\n\tnotes?: string | null\n\t/** \n\t * The address geocoded latitude. This is automatically generated when creating a shipping/billing address for an order and a valid geocoder is attached to the order's market.\n\t * @example ```40.6971494```\n\t */\n\tlat?: number | null\n\t/** \n\t * The address geocoded longitude. This is automatically generated when creating a shipping/billing address for an order and a valid geocoder is attached to the order's market.\n\t * @example ```-74.2598672```\n\t */\n\tlng?: number | null\n\t/** \n\t * Customer's billing information (i.e. VAT number, codice fiscale).\n\t * @example ```\"VAT ID IT02382940977\"```\n\t */\n\tbilling_info?: string | null\n\t/** \n\t * Comma separated list of tags to be added. Duplicates, invalid and non existing ones are discarded. Cannot be passed by sales channels.\n\t */\n\t_add_tags?: string | null\n\t/** \n\t * Comma separated list of tags to be removed. Duplicates, invalid and non existing ones are discarded. Cannot be passed by sales channels.\n\t */\n\t_remove_tags?: string | null\n\n\tgeocoder?: GeocoderRel | null\n\ttags?: TagRel[] | null\n\n}\n\n\nclass Addresses extends ApiResource<Address> {\n\n\tstatic readonly TYPE: AddressType = 'addresses' as const\n\n\tasync create(resource: AddressCreate, params?: QueryParamsRetrieve<Address>, options?: ResourcesConfig): Promise<Address> {\n\t\treturn this.resources.create<AddressCreate, Address>({ ...resource, type: Addresses.TYPE }, params, options)\n\t}\n\n\tasync update(resource: AddressUpdate, params?: QueryParamsRetrieve<Address>, options?: ResourcesConfig): Promise<Address> {\n\t\treturn this.resources.update<AddressUpdate, Address>({ ...resource, type: Addresses.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: Addresses.TYPE } : id, options)\n\t}\n\n\tasync geocoder(addressId: string | Address, params?: QueryParamsRetrieve<Geocoder>, options?: ResourcesConfig): Promise<Geocoder> {\n\t\tconst _addressId = (addressId as Address).id || addressId as string\n\t\treturn this.resources.fetch<Geocoder>({ type: 'geocoders' }, `addresses/${_addressId}/geocoder`, params, options) as unknown as Geocoder\n\t}\n\n\tasync events(addressId: string | Address, params?: QueryParamsList<Event>, options?: ResourcesConfig): Promise<ListResponse<Event>> {\n\t\tconst _addressId = (addressId as Address).id || addressId as string\n\t\treturn this.resources.fetch<Event>({ type: 'events' }, `addresses/${_addressId}/events`, params, options) as unknown as ListResponse<Event>\n\t}\n\n\tasync tags(addressId: string | Address, params?: QueryParamsList<Tag>, options?: ResourcesConfig): Promise<ListResponse<Tag>> {\n\t\tconst _addressId = (addressId as Address).id || addressId as string\n\t\treturn this.resources.fetch<Tag>({ type: 'tags' }, `addresses/${_addressId}/tags`, params, options) as unknown as ListResponse<Tag>\n\t}\n\n\tasync versions(addressId: string | Address, params?: QueryParamsList<Version>, options?: ResourcesConfig): Promise<ListResponse<Version>> {\n\t\tconst _addressId = (addressId as Address).id || addressId as string\n\t\treturn this.resources.fetch<Version>({ type: 'versions' }, `addresses/${_addressId}/versions`, params, options) as unknown as ListResponse<Version>\n\t}\n\n\tasync _add_tags(id: string | Address, triggerValue: string, params?: QueryParamsRetrieve<Address>, options?: ResourcesConfig): Promise<Address> {\n\t\treturn this.resources.update<AddressUpdate, Address>({ id: (typeof id === 'string')? id: id.id, type: Addresses.TYPE, _add_tags: triggerValue }, params, options)\n\t}\n\n\tasync _remove_tags(id: string | Address, triggerValue: string, params?: QueryParamsRetrieve<Address>, options?: ResourcesConfig): Promise<Address> {\n\t\treturn this.resources.update<AddressUpdate, Address>({ id: (typeof id === 'string')? id: id.id, type: Addresses.TYPE, _remove_tags: triggerValue }, params, options)\n\t}\n\n\n\tisAddress(resource: any): resource is Address {\n\t\treturn resource.type && (resource.type === Addresses.TYPE)\n\t}\n\n\n\trelationship(id: string | ResourceId | null): AddressRel {\n\t\treturn super.relationshipOneToOne<AddressRel>(id)\n\t}\n\n\trelationshipToMany(...ids: string[]): AddressRel[] {\n\t\treturn super.relationshipOneToMany<AddressRel>(...ids)\n\t}\n\n\n\ttype(): AddressType {\n\t\treturn Addresses.TYPE\n\t}\n\n}\n\n\nconst instance = new Addresses()\nexport default instance\n\nexport type { Addresses, Address, AddressCreate, AddressUpdate, AddressType }\n"]}
|
@@ -0,0 +1,95 @@
|
|
1
|
+
'use strict';
|
2
|
+
|
3
|
+
var chunkVRXXWQRL_cjs = require('./chunk-VRXXWQRL.cjs');
|
4
|
+
|
5
|
+
// src/resources/free_gift_promotions.ts
|
6
|
+
var FreeGiftPromotions = class _FreeGiftPromotions extends chunkVRXXWQRL_cjs.ApiResource {
|
7
|
+
static TYPE = "free_gift_promotions";
|
8
|
+
async create(resource, params, options) {
|
9
|
+
return this.resources.create({ ...resource, type: _FreeGiftPromotions.TYPE }, params, options);
|
10
|
+
}
|
11
|
+
async update(resource, params, options) {
|
12
|
+
return this.resources.update({ ...resource, type: _FreeGiftPromotions.TYPE }, params, options);
|
13
|
+
}
|
14
|
+
async delete(id, options) {
|
15
|
+
await this.resources.delete(typeof id === "string" ? { id, type: _FreeGiftPromotions.TYPE } : id, options);
|
16
|
+
}
|
17
|
+
async market(freeGiftPromotionId, params, options) {
|
18
|
+
const _freeGiftPromotionId = freeGiftPromotionId.id || freeGiftPromotionId;
|
19
|
+
return this.resources.fetch({ type: "markets" }, `free_gift_promotions/${_freeGiftPromotionId}/market`, params, options);
|
20
|
+
}
|
21
|
+
async order_amount_promotion_rule(freeGiftPromotionId, params, options) {
|
22
|
+
const _freeGiftPromotionId = freeGiftPromotionId.id || freeGiftPromotionId;
|
23
|
+
return this.resources.fetch({ type: "order_amount_promotion_rules" }, `free_gift_promotions/${_freeGiftPromotionId}/order_amount_promotion_rule`, params, options);
|
24
|
+
}
|
25
|
+
async sku_list_promotion_rule(freeGiftPromotionId, params, options) {
|
26
|
+
const _freeGiftPromotionId = freeGiftPromotionId.id || freeGiftPromotionId;
|
27
|
+
return this.resources.fetch({ type: "sku_list_promotion_rules" }, `free_gift_promotions/${_freeGiftPromotionId}/sku_list_promotion_rule`, params, options);
|
28
|
+
}
|
29
|
+
async coupon_codes_promotion_rule(freeGiftPromotionId, params, options) {
|
30
|
+
const _freeGiftPromotionId = freeGiftPromotionId.id || freeGiftPromotionId;
|
31
|
+
return this.resources.fetch({ type: "coupon_codes_promotion_rules" }, `free_gift_promotions/${_freeGiftPromotionId}/coupon_codes_promotion_rule`, params, options);
|
32
|
+
}
|
33
|
+
async custom_promotion_rule(freeGiftPromotionId, params, options) {
|
34
|
+
const _freeGiftPromotionId = freeGiftPromotionId.id || freeGiftPromotionId;
|
35
|
+
return this.resources.fetch({ type: "custom_promotion_rules" }, `free_gift_promotions/${_freeGiftPromotionId}/custom_promotion_rule`, params, options);
|
36
|
+
}
|
37
|
+
async sku_list(freeGiftPromotionId, params, options) {
|
38
|
+
const _freeGiftPromotionId = freeGiftPromotionId.id || freeGiftPromotionId;
|
39
|
+
return this.resources.fetch({ type: "sku_lists" }, `free_gift_promotions/${_freeGiftPromotionId}/sku_list`, params, options);
|
40
|
+
}
|
41
|
+
async coupons(freeGiftPromotionId, params, options) {
|
42
|
+
const _freeGiftPromotionId = freeGiftPromotionId.id || freeGiftPromotionId;
|
43
|
+
return this.resources.fetch({ type: "coupons" }, `free_gift_promotions/${_freeGiftPromotionId}/coupons`, params, options);
|
44
|
+
}
|
45
|
+
async attachments(freeGiftPromotionId, params, options) {
|
46
|
+
const _freeGiftPromotionId = freeGiftPromotionId.id || freeGiftPromotionId;
|
47
|
+
return this.resources.fetch({ type: "attachments" }, `free_gift_promotions/${_freeGiftPromotionId}/attachments`, params, options);
|
48
|
+
}
|
49
|
+
async events(freeGiftPromotionId, params, options) {
|
50
|
+
const _freeGiftPromotionId = freeGiftPromotionId.id || freeGiftPromotionId;
|
51
|
+
return this.resources.fetch({ type: "events" }, `free_gift_promotions/${_freeGiftPromotionId}/events`, params, options);
|
52
|
+
}
|
53
|
+
async tags(freeGiftPromotionId, params, options) {
|
54
|
+
const _freeGiftPromotionId = freeGiftPromotionId.id || freeGiftPromotionId;
|
55
|
+
return this.resources.fetch({ type: "tags" }, `free_gift_promotions/${_freeGiftPromotionId}/tags`, params, options);
|
56
|
+
}
|
57
|
+
async versions(freeGiftPromotionId, params, options) {
|
58
|
+
const _freeGiftPromotionId = freeGiftPromotionId.id || freeGiftPromotionId;
|
59
|
+
return this.resources.fetch({ type: "versions" }, `free_gift_promotions/${_freeGiftPromotionId}/versions`, params, options);
|
60
|
+
}
|
61
|
+
async skus(freeGiftPromotionId, params, options) {
|
62
|
+
const _freeGiftPromotionId = freeGiftPromotionId.id || freeGiftPromotionId;
|
63
|
+
return this.resources.fetch({ type: "skus" }, `free_gift_promotions/${_freeGiftPromotionId}/skus`, params, options);
|
64
|
+
}
|
65
|
+
async _disable(id, params, options) {
|
66
|
+
return this.resources.update({ id: typeof id === "string" ? id : id.id, type: _FreeGiftPromotions.TYPE, _disable: true }, params, options);
|
67
|
+
}
|
68
|
+
async _enable(id, params, options) {
|
69
|
+
return this.resources.update({ id: typeof id === "string" ? id : id.id, type: _FreeGiftPromotions.TYPE, _enable: true }, params, options);
|
70
|
+
}
|
71
|
+
async _add_tags(id, triggerValue, params, options) {
|
72
|
+
return this.resources.update({ id: typeof id === "string" ? id : id.id, type: _FreeGiftPromotions.TYPE, _add_tags: triggerValue }, params, options);
|
73
|
+
}
|
74
|
+
async _remove_tags(id, triggerValue, params, options) {
|
75
|
+
return this.resources.update({ id: typeof id === "string" ? id : id.id, type: _FreeGiftPromotions.TYPE, _remove_tags: triggerValue }, params, options);
|
76
|
+
}
|
77
|
+
isFreeGiftPromotion(resource) {
|
78
|
+
return resource.type && resource.type === _FreeGiftPromotions.TYPE;
|
79
|
+
}
|
80
|
+
relationship(id) {
|
81
|
+
return super.relationshipOneToOne(id);
|
82
|
+
}
|
83
|
+
relationshipToMany(...ids) {
|
84
|
+
return super.relationshipOneToMany(...ids);
|
85
|
+
}
|
86
|
+
type() {
|
87
|
+
return _FreeGiftPromotions.TYPE;
|
88
|
+
}
|
89
|
+
};
|
90
|
+
var instance = new FreeGiftPromotions();
|
91
|
+
var free_gift_promotions_default = instance;
|
92
|
+
|
93
|
+
exports.free_gift_promotions_default = free_gift_promotions_default;
|
94
|
+
//# sourceMappingURL=chunk-QIUMAA5U.cjs.map
|
95
|
+
//# sourceMappingURL=chunk-QIUMAA5U.cjs.map
|