@commercelayer/sdk 8.0.0-beta.7 → 8.0.0-beta.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/api-BrD0VGs7.d.ts +18490 -0
- package/lib/api-p_JJnFXy.d.cts +18490 -0
- package/lib/api.cjs +356 -340
- package/lib/api.d.cts +2 -2
- package/lib/api.d.ts +2 -2
- package/lib/api.js +144 -140
- package/lib/bundle-compat.cjs +160 -0
- package/lib/bundle-compat.cjs.map +1 -0
- package/lib/bundle-compat.d.cts +24 -0
- package/lib/bundle-compat.d.ts +22 -0
- package/lib/bundle-compat.js +155 -0
- package/lib/bundle-compat.js.map +1 -0
- package/lib/bundle.cjs +157 -561
- package/lib/bundle.cjs.map +1 -1
- package/lib/bundle.d.cts +10 -2
- package/lib/bundle.d.ts +9 -3
- package/lib/bundle.js +146 -563
- package/lib/bundle.js.map +1 -1
- package/lib/chunk-27JY4ULD.js +45 -0
- package/lib/chunk-27JY4ULD.js.map +1 -0
- package/lib/chunk-2A2L2CKF.js +75 -0
- package/lib/chunk-2A2L2CKF.js.map +1 -0
- package/lib/chunk-2FPWAQJJ.js +96 -0
- package/lib/chunk-2FPWAQJJ.js.map +1 -0
- package/lib/chunk-2KTN65O5.cjs +70 -0
- package/lib/chunk-2KTN65O5.cjs.map +1 -0
- package/lib/chunk-2PFTQHFT.js +79 -0
- package/lib/chunk-2PFTQHFT.js.map +1 -0
- package/lib/chunk-2SPJZDGK.js +80 -0
- package/lib/chunk-2SPJZDGK.js.map +1 -0
- package/lib/chunk-2YNRSRZU.cjs +102 -0
- package/lib/chunk-2YNRSRZU.cjs.map +1 -0
- package/lib/chunk-32JKZIM5.js +68 -0
- package/lib/chunk-32JKZIM5.js.map +1 -0
- package/lib/chunk-36O6EEZT.cjs +53 -0
- package/lib/chunk-36O6EEZT.cjs.map +1 -0
- package/lib/chunk-37KCG4S4.cjs +79 -0
- package/lib/chunk-37KCG4S4.cjs.map +1 -0
- package/lib/chunk-3DMYHXGB.js +20 -0
- package/lib/chunk-3DMYHXGB.js.map +1 -0
- package/lib/chunk-3DQIXZAG.js +129 -0
- package/lib/chunk-3DQIXZAG.js.map +1 -0
- package/lib/chunk-3FZPEWUV.cjs +91 -0
- package/lib/chunk-3FZPEWUV.cjs.map +1 -0
- package/lib/chunk-3M6XJ7NN.js +100 -0
- package/lib/chunk-3M6XJ7NN.js.map +1 -0
- package/lib/chunk-3NBRFRLX.cjs +125 -0
- package/lib/chunk-3NBRFRLX.cjs.map +1 -0
- package/lib/chunk-3OLFEEMC.js +100 -0
- package/lib/chunk-3OLFEEMC.js.map +1 -0
- package/lib/chunk-3QD74K3Q.cjs +53 -0
- package/lib/chunk-3QD74K3Q.cjs.map +1 -0
- package/lib/chunk-3SW2ASSY.js +60 -0
- package/lib/chunk-3SW2ASSY.js.map +1 -0
- package/lib/chunk-3XPISUB4.js +42 -0
- package/lib/chunk-3XPISUB4.js.map +1 -0
- package/lib/chunk-47ZNGHD4.js +77 -0
- package/lib/chunk-47ZNGHD4.js.map +1 -0
- package/lib/chunk-4PQ23R44.cjs +62 -0
- package/lib/chunk-4PQ23R44.cjs.map +1 -0
- package/lib/chunk-4VNGP4WP.js +100 -0
- package/lib/chunk-4VNGP4WP.js.map +1 -0
- package/lib/chunk-4XVOXNET.cjs +70 -0
- package/lib/chunk-4XVOXNET.cjs.map +1 -0
- package/lib/chunk-4YWYHTLB.js +68 -0
- package/lib/chunk-4YWYHTLB.js.map +1 -0
- package/lib/chunk-55KBBWVE.cjs +62 -0
- package/lib/chunk-55KBBWVE.cjs.map +1 -0
- package/lib/chunk-5BZCMLOG.cjs +38 -0
- package/lib/chunk-5BZCMLOG.cjs.map +1 -0
- package/lib/chunk-5DKOODMA.cjs +91 -0
- package/lib/chunk-5DKOODMA.cjs.map +1 -0
- package/lib/chunk-5MSW2F5A.js +58 -0
- package/lib/chunk-5MSW2F5A.js.map +1 -0
- package/lib/chunk-5NDRJ2CN.cjs +79 -0
- package/lib/chunk-5NDRJ2CN.cjs.map +1 -0
- package/lib/chunk-5RDGD6N2.js +82 -0
- package/lib/chunk-5RDGD6N2.js.map +1 -0
- package/lib/chunk-5TLQ5NEK.js +60 -0
- package/lib/chunk-5TLQ5NEK.js.map +1 -0
- package/lib/chunk-5WLJRGB6.cjs +89 -0
- package/lib/chunk-5WLJRGB6.cjs.map +1 -0
- package/lib/chunk-5WSJNCYM.cjs +44 -0
- package/lib/chunk-5WSJNCYM.cjs.map +1 -0
- package/lib/chunk-5YY7PVEO.js +191 -0
- package/lib/chunk-5YY7PVEO.js.map +1 -0
- package/lib/chunk-5Z5QSUVM.cjs +71 -0
- package/lib/chunk-5Z5QSUVM.cjs.map +1 -0
- package/lib/chunk-5ZPUTH6R.cjs +62 -0
- package/lib/chunk-5ZPUTH6R.cjs.map +1 -0
- package/lib/chunk-65HWKNSV.cjs +71 -0
- package/lib/chunk-65HWKNSV.cjs.map +1 -0
- package/lib/chunk-6BUTICKQ.js +75 -0
- package/lib/chunk-6BUTICKQ.js.map +1 -0
- package/lib/chunk-6F3SJXD3.cjs +62 -0
- package/lib/chunk-6F3SJXD3.cjs.map +1 -0
- package/lib/chunk-6JIKAK5C.js +77 -0
- package/lib/chunk-6JIKAK5C.js.map +1 -0
- package/lib/chunk-6JP6GEER.cjs +70 -0
- package/lib/chunk-6JP6GEER.cjs.map +1 -0
- package/lib/chunk-6L3AE23J.cjs +193 -0
- package/lib/chunk-6L3AE23J.cjs.map +1 -0
- package/lib/chunk-6NPLS5UO.cjs +60 -0
- package/lib/chunk-6NPLS5UO.cjs.map +1 -0
- package/lib/chunk-6R6A75PL.cjs +712 -0
- package/lib/chunk-6R6A75PL.cjs.map +1 -0
- package/lib/chunk-6TJJD77K.cjs +40 -0
- package/lib/chunk-6TJJD77K.cjs.map +1 -0
- package/lib/chunk-6UATBFH6.cjs +614 -0
- package/lib/chunk-6UATBFH6.cjs.map +1 -0
- package/lib/chunk-7CMX56OH.cjs +62 -0
- package/lib/chunk-7CMX56OH.cjs.map +1 -0
- package/lib/chunk-7CZ5BGBN.js +60 -0
- package/lib/chunk-7CZ5BGBN.js.map +1 -0
- package/lib/chunk-7EGB7KLE.cjs +70 -0
- package/lib/chunk-7EGB7KLE.cjs.map +1 -0
- package/lib/chunk-7FXEYH5P.js +77 -0
- package/lib/chunk-7FXEYH5P.js.map +1 -0
- package/lib/chunk-7HJJTBA5.cjs +88 -0
- package/lib/chunk-7HJJTBA5.cjs.map +1 -0
- package/lib/chunk-7J7U2OVV.cjs +44 -0
- package/lib/chunk-7J7U2OVV.cjs.map +1 -0
- package/lib/chunk-7KAEFUHR.js +58 -0
- package/lib/chunk-7KAEFUHR.js.map +1 -0
- package/lib/chunk-7LWJU3MC.js +77 -0
- package/lib/chunk-7LWJU3MC.js.map +1 -0
- package/lib/chunk-7MKSY64F.cjs +77 -0
- package/lib/chunk-7MKSY64F.cjs.map +1 -0
- package/lib/chunk-7NXUTO5Z.cjs +70 -0
- package/lib/chunk-7NXUTO5Z.cjs.map +1 -0
- package/lib/chunk-7YLXO22M.js +78 -0
- package/lib/chunk-7YLXO22M.js.map +1 -0
- package/lib/chunk-7ZNP5ZRX.cjs +182 -0
- package/lib/chunk-7ZNP5ZRX.cjs.map +1 -0
- package/lib/chunk-A5MOUKBT.cjs +81 -0
- package/lib/chunk-A5MOUKBT.cjs.map +1 -0
- package/lib/chunk-ACLWKVZH.cjs +179 -0
- package/lib/chunk-ACLWKVZH.cjs.map +1 -0
- package/lib/chunk-AH4P3KIO.cjs +198 -0
- package/lib/chunk-AH4P3KIO.cjs.map +1 -0
- package/lib/chunk-AIQS4XI7.cjs +70 -0
- package/lib/chunk-AIQS4XI7.cjs.map +1 -0
- package/lib/chunk-AQ6OHDUF.js +709 -0
- package/lib/chunk-AQ6OHDUF.js.map +1 -0
- package/lib/chunk-ARM4HSQI.cjs +98 -0
- package/lib/chunk-ARM4HSQI.cjs.map +1 -0
- package/lib/chunk-AUQHYYKJ.cjs +60 -0
- package/lib/chunk-AUQHYYKJ.cjs.map +1 -0
- package/lib/chunk-AXXSDR45.js +96 -0
- package/lib/chunk-AXXSDR45.js.map +1 -0
- package/lib/chunk-AYXJJKWA.js +75 -0
- package/lib/chunk-AYXJJKWA.js.map +1 -0
- package/lib/chunk-B5P3GWI5.js +67 -0
- package/lib/chunk-B5P3GWI5.js.map +1 -0
- package/lib/chunk-B5XPPQC7.cjs +70 -0
- package/lib/chunk-B5XPPQC7.cjs.map +1 -0
- package/lib/chunk-BD3ASC6K.cjs +84 -0
- package/lib/chunk-BD3ASC6K.cjs.map +1 -0
- package/lib/chunk-BDZQCGCJ.cjs +77 -0
- package/lib/chunk-BDZQCGCJ.cjs.map +1 -0
- package/lib/chunk-BEANHXLX.js +612 -0
- package/lib/chunk-BEANHXLX.js.map +1 -0
- package/lib/chunk-BF5HDO3M.cjs +70 -0
- package/lib/chunk-BF5HDO3M.cjs.map +1 -0
- package/lib/chunk-BFQFVHLA.cjs +94 -0
- package/lib/chunk-BFQFVHLA.cjs.map +1 -0
- package/lib/chunk-BPANUY47.cjs +22 -0
- package/lib/chunk-BPANUY47.cjs.map +1 -0
- package/lib/chunk-BTFN2FBP.js +69 -0
- package/lib/chunk-BTFN2FBP.js.map +1 -0
- package/lib/chunk-BY57BZ6S.cjs +79 -0
- package/lib/chunk-BY57BZ6S.cjs.map +1 -0
- package/lib/chunk-CDWXHURD.js +96 -0
- package/lib/chunk-CDWXHURD.js.map +1 -0
- package/lib/chunk-CEAYZF3Z.js +120 -0
- package/lib/chunk-CEAYZF3Z.js.map +1 -0
- package/lib/chunk-CEBLLOSH.cjs +79 -0
- package/lib/chunk-CEBLLOSH.cjs.map +1 -0
- package/lib/chunk-CEZGXW2V.cjs +102 -0
- package/lib/chunk-CEZGXW2V.cjs.map +1 -0
- package/lib/chunk-CITYMGFY.js +78 -0
- package/lib/chunk-CITYMGFY.js.map +1 -0
- package/lib/chunk-CK2UROFT.js +68 -0
- package/lib/chunk-CK2UROFT.js.map +1 -0
- package/lib/chunk-CMQ4CS3C.cjs +84 -0
- package/lib/chunk-CMQ4CS3C.cjs.map +1 -0
- package/lib/chunk-CMRTIKRS.cjs +98 -0
- package/lib/chunk-CMRTIKRS.cjs.map +1 -0
- package/lib/chunk-COCVOAAR.js +168 -0
- package/lib/chunk-COCVOAAR.js.map +1 -0
- package/lib/chunk-CPC4EDUN.js +60 -0
- package/lib/chunk-CPC4EDUN.js.map +1 -0
- package/lib/chunk-CQMGOKLY.js +89 -0
- package/lib/chunk-CQMGOKLY.js.map +1 -0
- package/lib/chunk-D433AVZU.cjs +61 -0
- package/lib/chunk-D433AVZU.cjs.map +1 -0
- package/lib/chunk-DGMBHG2D.cjs +122 -0
- package/lib/chunk-DGMBHG2D.cjs.map +1 -0
- package/lib/chunk-DH4T5JRD.cjs +47 -0
- package/lib/chunk-DH4T5JRD.cjs.map +1 -0
- package/lib/chunk-DIDUU3HJ.cjs +98 -0
- package/lib/chunk-DIDUU3HJ.cjs.map +1 -0
- package/lib/chunk-DJRBZJME.js +116 -0
- package/lib/chunk-DJRBZJME.js.map +1 -0
- package/lib/chunk-DN2TPVPQ.js +84 -0
- package/lib/chunk-DN2TPVPQ.js.map +1 -0
- package/lib/chunk-DVXTCITU.js +86 -0
- package/lib/chunk-DVXTCITU.js.map +1 -0
- package/lib/chunk-DXMFGRLZ.js +83 -0
- package/lib/chunk-DXMFGRLZ.js.map +1 -0
- package/lib/chunk-E5XRQXA3.cjs +193 -0
- package/lib/chunk-E5XRQXA3.cjs.map +1 -0
- package/lib/chunk-E6G7T2X4.cjs +14 -0
- package/lib/chunk-E6G7T2X4.cjs.map +1 -0
- package/lib/chunk-ECE464P6.js +68 -0
- package/lib/chunk-ECE464P6.js.map +1 -0
- package/lib/chunk-ECFID6YL.cjs +179 -0
- package/lib/chunk-ECFID6YL.cjs.map +1 -0
- package/lib/chunk-EG2D35UQ.js +77 -0
- package/lib/chunk-EG2D35UQ.js.map +1 -0
- package/lib/chunk-EIPT5P4Q.cjs +120 -0
- package/lib/chunk-EIPT5P4Q.cjs.map +1 -0
- package/lib/chunk-EJXIWONM.cjs +88 -0
- package/lib/chunk-EJXIWONM.cjs.map +1 -0
- package/lib/chunk-ELXHUTOX.js +82 -0
- package/lib/chunk-ELXHUTOX.js.map +1 -0
- package/lib/chunk-ENLBWOGO.cjs +86 -0
- package/lib/chunk-ENLBWOGO.cjs.map +1 -0
- package/lib/chunk-ENY5ZEDH.js +65 -0
- package/lib/chunk-ENY5ZEDH.js.map +1 -0
- package/lib/chunk-EQQVT4VQ.js +77 -0
- package/lib/chunk-EQQVT4VQ.js.map +1 -0
- package/lib/chunk-ESIW5CXF.js +91 -0
- package/lib/chunk-ESIW5CXF.js.map +1 -0
- package/lib/chunk-EWUUQ4L5.cjs +62 -0
- package/lib/chunk-EWUUQ4L5.cjs.map +1 -0
- package/lib/chunk-F5BYJ3P2.js +59 -0
- package/lib/chunk-F5BYJ3P2.js.map +1 -0
- package/lib/chunk-F7QAC5GG.js +33 -0
- package/lib/chunk-F7QAC5GG.js.map +1 -0
- package/lib/chunk-F7T5ONOF.js +163 -0
- package/lib/chunk-F7T5ONOF.js.map +1 -0
- package/lib/chunk-FCBQU5M7.js +79 -0
- package/lib/chunk-FCBQU5M7.js.map +1 -0
- package/lib/chunk-FCHVA2JJ.cjs +70 -0
- package/lib/chunk-FCHVA2JJ.cjs.map +1 -0
- package/lib/chunk-FEANKEWU.cjs +52 -0
- package/lib/chunk-FEANKEWU.cjs.map +1 -0
- package/lib/chunk-FHZ4JRXD.js +118 -0
- package/lib/chunk-FHZ4JRXD.js.map +1 -0
- package/lib/chunk-FIFWQWWX.js +79 -0
- package/lib/chunk-FIFWQWWX.js.map +1 -0
- package/lib/chunk-FIOQCCDK.js +53 -0
- package/lib/chunk-FIOQCCDK.js.map +1 -0
- package/lib/chunk-FJUOPWWJ.js +77 -0
- package/lib/chunk-FJUOPWWJ.js.map +1 -0
- package/lib/chunk-FKZUAC4B.cjs +79 -0
- package/lib/chunk-FKZUAC4B.cjs.map +1 -0
- package/lib/chunk-FRDOPI4T.cjs +79 -0
- package/lib/chunk-FRDOPI4T.cjs.map +1 -0
- package/lib/chunk-FVWXA45V.cjs +179 -0
- package/lib/chunk-FVWXA45V.cjs.map +1 -0
- package/lib/chunk-G2AIQH2C.js +60 -0
- package/lib/chunk-G2AIQH2C.js.map +1 -0
- package/lib/chunk-G34UCKUZ.cjs +91 -0
- package/lib/chunk-G34UCKUZ.cjs.map +1 -0
- package/lib/chunk-G4LJVHIH.js +42 -0
- package/lib/chunk-G4LJVHIH.js.map +1 -0
- package/lib/chunk-G6D5G6IF.cjs +166 -0
- package/lib/chunk-G6D5G6IF.cjs.map +1 -0
- package/lib/chunk-GGISBFEU.cjs +69 -0
- package/lib/chunk-GGISBFEU.cjs.map +1 -0
- package/lib/chunk-GGZNCXGR.js +24 -0
- package/lib/chunk-GGZNCXGR.js.map +1 -0
- package/lib/chunk-GINNGSFR.cjs +120 -0
- package/lib/chunk-GINNGSFR.cjs.map +1 -0
- package/lib/chunk-GNSSCO7B.js +38 -0
- package/lib/chunk-GNSSCO7B.js.map +1 -0
- package/lib/chunk-GOF6YS2G.js +241 -0
- package/lib/chunk-GOF6YS2G.js.map +1 -0
- package/lib/chunk-GOK6KXUU.cjs +52 -0
- package/lib/chunk-GOK6KXUU.cjs.map +1 -0
- package/lib/chunk-GQNMEV3Q.cjs +243 -0
- package/lib/chunk-GQNMEV3Q.cjs.map +1 -0
- package/lib/chunk-GQU2VL6D.js +59 -0
- package/lib/chunk-GQU2VL6D.js.map +1 -0
- package/lib/chunk-GU6AYW56.cjs +118 -0
- package/lib/chunk-GU6AYW56.cjs.map +1 -0
- package/lib/chunk-GYKGN67Z.cjs +70 -0
- package/lib/chunk-GYKGN67Z.cjs.map +1 -0
- package/lib/chunk-H2SPYNQJ.js +68 -0
- package/lib/chunk-H2SPYNQJ.js.map +1 -0
- package/lib/chunk-H3JUBJ6N.js +68 -0
- package/lib/chunk-H3JUBJ6N.js.map +1 -0
- package/lib/chunk-HBQRDVGM.cjs +79 -0
- package/lib/chunk-HBQRDVGM.cjs.map +1 -0
- package/lib/chunk-HEL2QWYR.js +196 -0
- package/lib/chunk-HEL2QWYR.js.map +1 -0
- package/lib/chunk-HFIPME7H.cjs +86 -0
- package/lib/chunk-HFIPME7H.cjs.map +1 -0
- package/lib/chunk-HI4ESMWV.cjs +44 -0
- package/lib/chunk-HI4ESMWV.cjs.map +1 -0
- package/lib/chunk-HKHSTGP4.cjs +120 -0
- package/lib/chunk-HKHSTGP4.cjs.map +1 -0
- package/lib/chunk-HLMRSUWY.cjs +88 -0
- package/lib/chunk-HLMRSUWY.cjs.map +1 -0
- package/lib/chunk-HXHL7HRZ.cjs +179 -0
- package/lib/chunk-HXHL7HRZ.cjs.map +1 -0
- package/lib/chunk-HZMMDAUQ.cjs +179 -0
- package/lib/chunk-HZMMDAUQ.cjs.map +1 -0
- package/lib/chunk-I2JMQPUT.js +42 -0
- package/lib/chunk-I2JMQPUT.js.map +1 -0
- package/lib/chunk-I5EJCLGC.js +51 -0
- package/lib/chunk-I5EJCLGC.js.map +1 -0
- package/lib/chunk-I6QTNC6Y.cjs +81 -0
- package/lib/chunk-I6QTNC6Y.cjs.map +1 -0
- package/lib/chunk-IBQCEBT3.cjs +96 -0
- package/lib/chunk-IBQCEBT3.cjs.map +1 -0
- package/lib/chunk-IC7XKJ55.cjs +61 -0
- package/lib/chunk-IC7XKJ55.cjs.map +1 -0
- package/lib/chunk-ICFJKNCL.js +89 -0
- package/lib/chunk-ICFJKNCL.js.map +1 -0
- package/lib/chunk-IJS5RGNW.js +77 -0
- package/lib/chunk-IJS5RGNW.js.map +1 -0
- package/lib/chunk-ISR6D4PG.js +68 -0
- package/lib/chunk-ISR6D4PG.js.map +1 -0
- package/lib/chunk-IXKNMEYJ.js +82 -0
- package/lib/chunk-IXKNMEYJ.js.map +1 -0
- package/lib/chunk-J6K5KGCO.js +84 -0
- package/lib/chunk-J6K5KGCO.js.map +1 -0
- package/lib/chunk-JBZ3YPHB.js +60 -0
- package/lib/chunk-JBZ3YPHB.js.map +1 -0
- package/lib/chunk-JGMO7E75.cjs +193 -0
- package/lib/chunk-JGMO7E75.cjs.map +1 -0
- package/lib/chunk-JHK2ADFO.js +116 -0
- package/lib/chunk-JHK2ADFO.js.map +1 -0
- package/lib/chunk-JO3634ZB.cjs +84 -0
- package/lib/chunk-JO3634ZB.cjs.map +1 -0
- package/lib/chunk-JUZQNX6I.js +42 -0
- package/lib/chunk-JUZQNX6I.js.map +1 -0
- package/lib/chunk-JYEJBSLC.cjs +91 -0
- package/lib/chunk-JYEJBSLC.cjs.map +1 -0
- package/lib/chunk-K4W33IZP.cjs +70 -0
- package/lib/chunk-K4W33IZP.cjs.map +1 -0
- package/lib/chunk-KBQOXEYZ.cjs +81 -0
- package/lib/chunk-KBQOXEYZ.cjs.map +1 -0
- package/lib/chunk-KIYHIGIY.cjs +179 -0
- package/lib/chunk-KIYHIGIY.cjs.map +1 -0
- package/lib/chunk-KN6QR2VT.cjs +79 -0
- package/lib/chunk-KN6QR2VT.cjs.map +1 -0
- package/lib/chunk-LEVF3A5F.cjs +93 -0
- package/lib/chunk-LEVF3A5F.cjs.map +1 -0
- package/lib/chunk-LMJZ2K6P.js +77 -0
- package/lib/chunk-LMJZ2K6P.js.map +1 -0
- package/lib/chunk-LSBBCEX5.js +305 -0
- package/lib/chunk-LSBBCEX5.js.map +1 -0
- package/lib/chunk-LSH2CQLI.js +68 -0
- package/lib/chunk-LSH2CQLI.js.map +1 -0
- package/lib/chunk-LV5MM4CO.js +118 -0
- package/lib/chunk-LV5MM4CO.js.map +1 -0
- package/lib/chunk-LVETDD3O.cjs +67 -0
- package/lib/chunk-LVETDD3O.cjs.map +1 -0
- package/lib/chunk-LYKCJHYR.js +94 -0
- package/lib/chunk-LYKCJHYR.js.map +1 -0
- package/lib/chunk-M2L4OZJ6.cjs +88 -0
- package/lib/chunk-M2L4OZJ6.cjs.map +1 -0
- package/lib/chunk-M6EAUX5W.js +35 -0
- package/lib/chunk-M6EAUX5W.js.map +1 -0
- package/lib/chunk-MF5IYI5N.js +11 -0
- package/lib/chunk-MF5IYI5N.js.map +1 -0
- package/lib/chunk-MFEIFGUU.js +124 -0
- package/lib/chunk-MFEIFGUU.js.map +1 -0
- package/lib/chunk-MIJ6DRSS.js +51 -0
- package/lib/chunk-MIJ6DRSS.js.map +1 -0
- package/lib/chunk-MLMK3BYP.js +27 -0
- package/lib/chunk-MLMK3BYP.js.map +1 -0
- package/lib/chunk-MN7T5QVU.cjs +70 -0
- package/lib/chunk-MN7T5QVU.cjs.map +1 -0
- package/lib/chunk-MO3ADFGB.js +50 -0
- package/lib/chunk-MO3ADFGB.js.map +1 -0
- package/lib/chunk-MWQLDBWJ.js +51 -0
- package/lib/chunk-MWQLDBWJ.js.map +1 -0
- package/lib/chunk-N25XG3WB.cjs +77 -0
- package/lib/chunk-N25XG3WB.cjs.map +1 -0
- package/lib/chunk-N7HMWUKO.js +177 -0
- package/lib/chunk-N7HMWUKO.js.map +1 -0
- package/lib/chunk-N7RIOQEE.cjs +205 -0
- package/lib/chunk-N7RIOQEE.cjs.map +1 -0
- package/lib/chunk-NCHSV74A.js +180 -0
- package/lib/chunk-NCHSV74A.js.map +1 -0
- package/lib/chunk-NHCNGRUW.js +321 -0
- package/lib/chunk-NHCNGRUW.js.map +1 -0
- package/lib/chunk-NJJ3AQFY.cjs +75 -0
- package/lib/chunk-NJJ3AQFY.cjs.map +1 -0
- package/lib/chunk-NL47AA7V.cjs +323 -0
- package/lib/chunk-NL47AA7V.cjs.map +1 -0
- package/lib/chunk-NXWBNR4A.js +75 -0
- package/lib/chunk-NXWBNR4A.js.map +1 -0
- package/lib/chunk-NZ5R6RZP.js +113 -0
- package/lib/chunk-NZ5R6RZP.js.map +1 -0
- package/lib/chunk-O4UBVFXZ.cjs +80 -0
- package/lib/chunk-O4UBVFXZ.cjs.map +1 -0
- package/lib/chunk-O5NLCRMD.cjs +131 -0
- package/lib/chunk-O5NLCRMD.cjs.map +1 -0
- package/lib/chunk-O7ZCUDYF.js +191 -0
- package/lib/chunk-O7ZCUDYF.js.map +1 -0
- package/lib/chunk-OGZMICIO.cjs +62 -0
- package/lib/chunk-OGZMICIO.cjs.map +1 -0
- package/lib/chunk-OH4R7NRW.cjs +556 -0
- package/lib/chunk-OH4R7NRW.cjs.map +1 -0
- package/lib/chunk-OI4ZCY65.js +68 -0
- package/lib/chunk-OI4ZCY65.js.map +1 -0
- package/lib/chunk-OJGNL5XA.js +87 -0
- package/lib/chunk-OJGNL5XA.js.map +1 -0
- package/lib/chunk-OKXSPFSZ.js +65 -0
- package/lib/chunk-OKXSPFSZ.js.map +1 -0
- package/lib/chunk-OOS4I2K6.cjs +70 -0
- package/lib/chunk-OOS4I2K6.cjs.map +1 -0
- package/lib/chunk-OTRQ6CRD.cjs +94 -0
- package/lib/chunk-OTRQ6CRD.cjs.map +1 -0
- package/lib/chunk-OVAMOIAR.js +51 -0
- package/lib/chunk-OVAMOIAR.js.map +1 -0
- package/lib/chunk-OXGJX4G5.cjs +79 -0
- package/lib/chunk-OXGJX4G5.cjs.map +1 -0
- package/lib/chunk-OXHQKMPQ.js +20 -0
- package/lib/chunk-OXHQKMPQ.js.map +1 -0
- package/lib/chunk-OXLZLXNI.js +86 -0
- package/lib/chunk-OXLZLXNI.js.map +1 -0
- package/lib/chunk-OXTZP6XB.js +123 -0
- package/lib/chunk-OXTZP6XB.js.map +1 -0
- package/lib/chunk-OZ6L33P7.cjs +40 -0
- package/lib/chunk-OZ6L33P7.cjs.map +1 -0
- package/lib/chunk-P2IUL4K4.cjs +52 -0
- package/lib/chunk-P2IUL4K4.cjs.map +1 -0
- package/lib/chunk-P7FIQR6P.cjs +91 -0
- package/lib/chunk-P7FIQR6P.cjs.map +1 -0
- package/lib/chunk-PA3XKIYI.cjs +98 -0
- package/lib/chunk-PA3XKIYI.cjs.map +1 -0
- package/lib/chunk-PXI3FFHR.js +542 -0
- package/lib/chunk-PXI3FFHR.js.map +1 -0
- package/lib/chunk-QELDOHCC.cjs +63 -0
- package/lib/chunk-QELDOHCC.cjs.map +1 -0
- package/lib/chunk-QHJ6WOJI.js +69 -0
- package/lib/chunk-QHJ6WOJI.js.map +1 -0
- package/lib/chunk-QIYG7O7V.js +77 -0
- package/lib/chunk-QIYG7O7V.js.map +1 -0
- package/lib/chunk-QM3JEWRN.cjs +93 -0
- package/lib/chunk-QM3JEWRN.cjs.map +1 -0
- package/lib/chunk-QQAD7R24.js +61 -0
- package/lib/chunk-QQAD7R24.js.map +1 -0
- package/lib/chunk-QX4Z7FX4.js +177 -0
- package/lib/chunk-QX4Z7FX4.js.map +1 -0
- package/lib/chunk-QZBOTY6C.js +203 -0
- package/lib/chunk-QZBOTY6C.js.map +1 -0
- package/lib/chunk-R4LYMSQW.cjs +61 -0
- package/lib/chunk-R4LYMSQW.cjs.map +1 -0
- package/lib/chunk-R7MCKMYA.js +177 -0
- package/lib/chunk-R7MCKMYA.js.map +1 -0
- package/lib/chunk-R7PD7BIN.js +164 -0
- package/lib/chunk-R7PD7BIN.js.map +1 -0
- package/lib/chunk-RHVGUEEZ.cjs +82 -0
- package/lib/chunk-RHVGUEEZ.cjs.map +1 -0
- package/lib/chunk-RNVBXM52.cjs +79 -0
- package/lib/chunk-RNVBXM52.cjs.map +1 -0
- package/lib/chunk-ROIDGFBH.js +68 -0
- package/lib/chunk-ROIDGFBH.js.map +1 -0
- package/lib/chunk-RT6CH7MF.js +120 -0
- package/lib/chunk-RT6CH7MF.js.map +1 -0
- package/lib/chunk-RZXG6SYW.js +50 -0
- package/lib/chunk-RZXG6SYW.js.map +1 -0
- package/lib/chunk-S2E6K3CX.js +88 -0
- package/lib/chunk-S2E6K3CX.js.map +1 -0
- package/lib/chunk-S3KPKHRF.cjs +79 -0
- package/lib/chunk-S3KPKHRF.cjs.map +1 -0
- package/lib/chunk-S3PPZ4MN.cjs +170 -0
- package/lib/chunk-S3PPZ4MN.cjs.map +1 -0
- package/lib/chunk-S4N7TNLE.js +132 -0
- package/lib/chunk-S4N7TNLE.js.map +1 -0
- package/lib/chunk-S6LUE4BK.cjs +35 -0
- package/lib/chunk-S6LUE4BK.cjs.map +1 -0
- package/lib/chunk-SAU26L56.js +91 -0
- package/lib/chunk-SAU26L56.js.map +1 -0
- package/lib/chunk-SB36RX2R.cjs +85 -0
- package/lib/chunk-SB36RX2R.cjs.map +1 -0
- package/lib/chunk-SD6TP5QY.cjs +29 -0
- package/lib/chunk-SD6TP5QY.cjs.map +1 -0
- package/lib/chunk-SITF5ZAC.js +68 -0
- package/lib/chunk-SITF5ZAC.js.map +1 -0
- package/lib/chunk-SQTCUWGR.cjs +67 -0
- package/lib/chunk-SQTCUWGR.cjs.map +1 -0
- package/lib/chunk-SSXDR6PH.js +86 -0
- package/lib/chunk-SSXDR6PH.js.map +1 -0
- package/lib/chunk-SYRDEPVH.js +68 -0
- package/lib/chunk-SYRDEPVH.js.map +1 -0
- package/lib/chunk-TBRFFV55.cjs +53 -0
- package/lib/chunk-TBRFFV55.cjs.map +1 -0
- package/lib/chunk-TEOE3WNS.cjs +102 -0
- package/lib/chunk-TEOE3WNS.cjs.map +1 -0
- package/lib/chunk-TI5JILQ4.cjs +134 -0
- package/lib/chunk-TI5JILQ4.cjs.map +1 -0
- package/lib/chunk-TVRITF4Q.cjs +164 -0
- package/lib/chunk-TVRITF4Q.cjs.map +1 -0
- package/lib/chunk-U222MLC5.cjs +88 -0
- package/lib/chunk-U222MLC5.cjs.map +1 -0
- package/lib/chunk-UARW4YQW.cjs +70 -0
- package/lib/chunk-UARW4YQW.cjs.map +1 -0
- package/lib/chunk-UCTSAXGF.cjs +122 -0
- package/lib/chunk-UCTSAXGF.cjs.map +1 -0
- package/lib/chunk-UE2ALA2G.js +36 -0
- package/lib/chunk-UE2ALA2G.js.map +1 -0
- package/lib/chunk-UEXD6ROE.cjs +44 -0
- package/lib/chunk-UEXD6ROE.cjs.map +1 -0
- package/lib/chunk-ULS6IZPC.js +86 -0
- package/lib/chunk-ULS6IZPC.js.map +1 -0
- package/lib/chunk-UUEYW4SI.cjs +55 -0
- package/lib/chunk-UUEYW4SI.cjs.map +1 -0
- package/lib/chunk-V3NFJBSM.js +50 -0
- package/lib/chunk-V3NFJBSM.js.map +1 -0
- package/lib/chunk-V4KUITPI.js +86 -0
- package/lib/chunk-V4KUITPI.js.map +1 -0
- package/lib/chunk-VBQSG5M5.js +92 -0
- package/lib/chunk-VBQSG5M5.js.map +1 -0
- package/lib/chunk-VCRPNIEH.cjs +70 -0
- package/lib/chunk-VCRPNIEH.cjs.map +1 -0
- package/lib/chunk-VE3SPP3G.js +177 -0
- package/lib/chunk-VE3SPP3G.js.map +1 -0
- package/lib/chunk-VNBY6YSL.js +82 -0
- package/lib/chunk-VNBY6YSL.js.map +1 -0
- package/lib/chunk-VNML47KB.js +59 -0
- package/lib/chunk-VNML47KB.js.map +1 -0
- package/lib/chunk-VP4IZXYD.cjs +26 -0
- package/lib/chunk-VP4IZXYD.cjs.map +1 -0
- package/lib/chunk-VVZDCEJY.js +68 -0
- package/lib/chunk-VVZDCEJY.js.map +1 -0
- package/lib/chunk-VWLPSTPL.cjs +91 -0
- package/lib/chunk-VWLPSTPL.cjs.map +1 -0
- package/lib/chunk-VY2QQ6GL.cjs +126 -0
- package/lib/chunk-VY2QQ6GL.cjs.map +1 -0
- package/lib/chunk-VZPW7ARO.cjs +90 -0
- package/lib/chunk-VZPW7ARO.cjs.map +1 -0
- package/lib/chunk-W35HDHDU.js +191 -0
- package/lib/chunk-W35HDHDU.js.map +1 -0
- package/lib/chunk-W3DJZSUC.js +68 -0
- package/lib/chunk-W3DJZSUC.js.map +1 -0
- package/lib/chunk-WCBPR2FU.js +177 -0
- package/lib/chunk-WCBPR2FU.js.map +1 -0
- package/lib/chunk-WJLT2Q6F.cjs +79 -0
- package/lib/chunk-WJLT2Q6F.cjs.map +1 -0
- package/lib/chunk-WKDK4TTS.cjs +80 -0
- package/lib/chunk-WKDK4TTS.cjs.map +1 -0
- package/lib/chunk-WMDLFAGR.cjs +53 -0
- package/lib/chunk-WMDLFAGR.cjs.map +1 -0
- package/lib/chunk-WO5LQQSK.cjs +4 -0
- package/lib/chunk-WO5LQQSK.cjs.map +1 -0
- package/lib/chunk-WOVCY6ON.cjs +22 -0
- package/lib/chunk-WOVCY6ON.cjs.map +1 -0
- package/lib/chunk-WTD6QSTI.js +89 -0
- package/lib/chunk-WTD6QSTI.js.map +1 -0
- package/lib/chunk-WVVUEB6A.cjs +70 -0
- package/lib/chunk-WVVUEB6A.cjs.map +1 -0
- package/lib/chunk-X6J7WQEA.js +89 -0
- package/lib/chunk-X6J7WQEA.js.map +1 -0
- package/lib/chunk-XE46YXZW.js +51 -0
- package/lib/chunk-XE46YXZW.js.map +1 -0
- package/lib/chunk-XGCAYVWC.js +73 -0
- package/lib/chunk-XGCAYVWC.js.map +1 -0
- package/lib/chunk-XKFKPTKY.cjs +115 -0
- package/lib/chunk-XKFKPTKY.cjs.map +1 -0
- package/lib/chunk-XS3PGMW7.cjs +77 -0
- package/lib/chunk-XS3PGMW7.cjs.map +1 -0
- package/lib/chunk-XUIGE5EC.js +68 -0
- package/lib/chunk-XUIGE5EC.js.map +1 -0
- package/lib/chunk-Y6XMMFGD.js +68 -0
- package/lib/chunk-Y6XMMFGD.js.map +1 -0
- package/lib/chunk-Y7FJ5Q2J.cjs +72 -0
- package/lib/chunk-Y7FJ5Q2J.cjs.map +1 -0
- package/lib/chunk-YJ3O5XLC.js +3 -0
- package/lib/chunk-YJ3O5XLC.js.map +1 -0
- package/lib/chunk-YKSGPQWF.cjs +165 -0
- package/lib/chunk-YKSGPQWF.cjs.map +1 -0
- package/lib/chunk-YLGAEBN4.js +96 -0
- package/lib/chunk-YLGAEBN4.js.map +1 -0
- package/lib/chunk-YOTHMSEP.js +68 -0
- package/lib/chunk-YOTHMSEP.js.map +1 -0
- package/lib/chunk-YPAKLMVE.js +60 -0
- package/lib/chunk-YPAKLMVE.js.map +1 -0
- package/lib/chunk-YQLZRFYW.js +77 -0
- package/lib/chunk-YQLZRFYW.js.map +1 -0
- package/lib/chunk-YXFYXDGG.js +154 -0
- package/lib/chunk-YXFYXDGG.js.map +1 -0
- package/lib/chunk-YZDBPUNJ.cjs +313 -0
- package/lib/chunk-YZDBPUNJ.cjs.map +1 -0
- package/lib/chunk-Z3LIS3PJ.js +77 -0
- package/lib/chunk-Z3LIS3PJ.js.map +1 -0
- package/lib/chunk-ZI7VCQUJ.cjs +84 -0
- package/lib/chunk-ZI7VCQUJ.cjs.map +1 -0
- package/lib/chunk-ZJX6FYOO.cjs +53 -0
- package/lib/chunk-ZJX6FYOO.cjs.map +1 -0
- package/lib/chunk-ZMIDBZVE.js +89 -0
- package/lib/chunk-ZMIDBZVE.js.map +1 -0
- package/lib/chunk-ZTDGE4FR.js +92 -0
- package/lib/chunk-ZTDGE4FR.js.map +1 -0
- package/lib/chunk-ZV322LW2.js +89 -0
- package/lib/chunk-ZV322LW2.js.map +1 -0
- package/lib/chunk-ZX75XWHD.js +177 -0
- package/lib/chunk-ZX75XWHD.js.map +1 -0
- package/lib/client.cjs +7 -6
- package/lib/client.d.cts +2 -1
- package/lib/client.d.ts +2 -1
- package/lib/client.js +6 -5
- package/lib/commercelayer.cjs +21 -16
- package/lib/commercelayer.d.cts +11 -6
- package/lib/commercelayer.d.ts +11 -6
- package/lib/commercelayer.js +10 -9
- package/lib/config.cjs +2 -2
- package/lib/config.d.cts +1 -1
- package/lib/config.d.ts +1 -1
- package/lib/config.js +1 -1
- package/lib/debug.cjs +2 -2
- package/lib/debug.js +1 -1
- package/lib/enum.cjs +14 -14
- package/lib/enum.d.cts +2 -2
- package/lib/enum.d.ts +2 -2
- package/lib/enum.js +1 -1
- package/lib/error.cjs +9 -9
- package/lib/error.js +2 -2
- package/lib/fetch-D4JGyBOl.d.cts +55 -0
- package/lib/fetch-D4JGyBOl.d.ts +55 -0
- package/lib/fetch.cjs +4 -4
- package/lib/fetch.d.cts +1 -1
- package/lib/fetch.d.ts +1 -1
- package/lib/fetch.js +2 -2
- package/lib/index.cjs +154 -669
- package/lib/index.d.cts +6 -4
- package/lib/index.d.ts +5 -3
- package/lib/index.js +147 -142
- package/lib/interceptor.d.cts +1 -1
- package/lib/interceptor.d.ts +1 -1
- package/lib/jsonapi.cjs +11 -10
- package/lib/jsonapi.d.cts +2 -2
- package/lib/jsonapi.d.ts +2 -2
- package/lib/jsonapi.js +9 -8
- package/lib/model.d.cts +2 -2
- package/lib/model.d.ts +2 -2
- package/lib/query.cjs +6 -6
- package/lib/query.d.cts +2 -2
- package/lib/query.d.ts +2 -2
- package/lib/query.js +3 -3
- package/lib/resource.cjs +14 -13
- package/lib/resource.d.cts +2 -2
- package/lib/resource.d.ts +2 -2
- package/lib/resource.js +9 -8
- package/lib/resources/addresses.cjs +11 -10
- package/lib/resources/addresses.d.cts +3 -3
- package/lib/resources/addresses.d.ts +2 -2
- package/lib/resources/addresses.js +10 -9
- package/lib/resources/adjustments.cjs +11 -10
- package/lib/resources/adjustments.d.cts +3 -3
- package/lib/resources/adjustments.d.ts +2 -2
- package/lib/resources/adjustments.js +10 -9
- package/lib/resources/adyen_gateways.cjs +11 -10
- package/lib/resources/adyen_gateways.d.cts +3 -3
- package/lib/resources/adyen_gateways.d.ts +2 -2
- package/lib/resources/adyen_gateways.js +10 -9
- package/lib/resources/adyen_payments.cjs +11 -10
- package/lib/resources/adyen_payments.d.cts +3 -3
- package/lib/resources/adyen_payments.d.ts +2 -2
- package/lib/resources/adyen_payments.js +10 -9
- package/lib/resources/applications.cjs +11 -10
- package/lib/resources/applications.d.cts +3 -3
- package/lib/resources/applications.d.ts +2 -2
- package/lib/resources/applications.js +10 -9
- package/lib/resources/attachments.cjs +11 -10
- package/lib/resources/attachments.d.cts +3 -3
- package/lib/resources/attachments.d.ts +2 -2
- package/lib/resources/attachments.js +10 -9
- package/lib/resources/authorizations.cjs +11 -10
- package/lib/resources/authorizations.d.cts +3 -3
- package/lib/resources/authorizations.d.ts +2 -2
- package/lib/resources/authorizations.js +10 -9
- package/lib/resources/avalara_accounts.cjs +11 -10
- package/lib/resources/avalara_accounts.d.cts +3 -3
- package/lib/resources/avalara_accounts.d.ts +2 -2
- package/lib/resources/avalara_accounts.js +10 -9
- package/lib/resources/axerve_gateways.cjs +11 -10
- package/lib/resources/axerve_gateways.d.cts +3 -3
- package/lib/resources/axerve_gateways.d.ts +2 -2
- package/lib/resources/axerve_gateways.js +10 -9
- package/lib/resources/axerve_payments.cjs +11 -10
- package/lib/resources/axerve_payments.d.cts +3 -3
- package/lib/resources/axerve_payments.d.ts +2 -2
- package/lib/resources/axerve_payments.js +10 -9
- package/lib/resources/billing_info_validation_rules.cjs +21 -0
- package/lib/resources/billing_info_validation_rules.cjs.map +1 -0
- package/lib/resources/billing_info_validation_rules.d.cts +7 -0
- package/lib/resources/billing_info_validation_rules.d.ts +4 -0
- package/lib/resources/billing_info_validation_rules.js +13 -0
- package/lib/resources/billing_info_validation_rules.js.map +1 -0
- package/lib/resources/bing_geocoders.cjs +11 -10
- package/lib/resources/bing_geocoders.d.cts +3 -3
- package/lib/resources/bing_geocoders.d.ts +2 -2
- package/lib/resources/bing_geocoders.js +10 -9
- package/lib/resources/braintree_gateways.cjs +11 -10
- package/lib/resources/braintree_gateways.d.cts +3 -3
- package/lib/resources/braintree_gateways.d.ts +2 -2
- package/lib/resources/braintree_gateways.js +10 -9
- package/lib/resources/braintree_payments.cjs +11 -10
- package/lib/resources/braintree_payments.d.cts +3 -3
- package/lib/resources/braintree_payments.d.ts +2 -2
- package/lib/resources/braintree_payments.js +10 -9
- package/lib/resources/bundles.cjs +11 -10
- package/lib/resources/bundles.d.cts +3 -3
- package/lib/resources/bundles.d.ts +2 -2
- package/lib/resources/bundles.js +10 -9
- package/lib/resources/buy_x_pay_y_promotions.cjs +11 -10
- package/lib/resources/buy_x_pay_y_promotions.d.cts +3 -3
- package/lib/resources/buy_x_pay_y_promotions.d.ts +2 -2
- package/lib/resources/buy_x_pay_y_promotions.js +10 -9
- package/lib/resources/captures.cjs +11 -10
- package/lib/resources/captures.d.cts +3 -3
- package/lib/resources/captures.d.ts +2 -2
- package/lib/resources/captures.js +10 -9
- package/lib/resources/carrier_accounts.cjs +11 -10
- package/lib/resources/carrier_accounts.d.cts +3 -3
- package/lib/resources/carrier_accounts.d.ts +2 -2
- package/lib/resources/carrier_accounts.js +10 -9
- package/lib/resources/checkout_com_gateways.cjs +11 -10
- package/lib/resources/checkout_com_gateways.d.cts +3 -3
- package/lib/resources/checkout_com_gateways.d.ts +2 -2
- package/lib/resources/checkout_com_gateways.js +10 -9
- package/lib/resources/checkout_com_payments.cjs +11 -10
- package/lib/resources/checkout_com_payments.d.cts +3 -3
- package/lib/resources/checkout_com_payments.d.ts +2 -2
- package/lib/resources/checkout_com_payments.js +10 -9
- package/lib/resources/cleanups.cjs +11 -10
- package/lib/resources/cleanups.d.cts +3 -3
- package/lib/resources/cleanups.d.ts +2 -2
- package/lib/resources/cleanups.js +10 -9
- package/lib/resources/coupon_codes_promotion_rules.cjs +11 -10
- package/lib/resources/coupon_codes_promotion_rules.d.cts +3 -3
- package/lib/resources/coupon_codes_promotion_rules.d.ts +2 -2
- package/lib/resources/coupon_codes_promotion_rules.js +10 -9
- package/lib/resources/coupon_recipients.cjs +11 -10
- package/lib/resources/coupon_recipients.d.cts +3 -3
- package/lib/resources/coupon_recipients.d.ts +2 -2
- package/lib/resources/coupon_recipients.js +10 -9
- package/lib/resources/coupons.cjs +11 -10
- package/lib/resources/coupons.d.cts +3 -3
- package/lib/resources/coupons.d.ts +2 -2
- package/lib/resources/coupons.js +10 -9
- package/lib/resources/custom_promotion_rules.cjs +11 -10
- package/lib/resources/custom_promotion_rules.d.cts +3 -3
- package/lib/resources/custom_promotion_rules.d.ts +2 -2
- package/lib/resources/custom_promotion_rules.js +10 -9
- package/lib/resources/customer_addresses.cjs +11 -10
- package/lib/resources/customer_addresses.d.cts +3 -3
- package/lib/resources/customer_addresses.d.ts +2 -2
- package/lib/resources/customer_addresses.js +10 -9
- package/lib/resources/customer_groups.cjs +11 -10
- package/lib/resources/customer_groups.d.cts +3 -3
- package/lib/resources/customer_groups.d.ts +2 -2
- package/lib/resources/customer_groups.js +10 -9
- package/lib/resources/customer_password_resets.cjs +11 -10
- package/lib/resources/customer_password_resets.d.cts +3 -3
- package/lib/resources/customer_password_resets.d.ts +2 -2
- package/lib/resources/customer_password_resets.js +10 -9
- package/lib/resources/customer_payment_sources.cjs +11 -10
- package/lib/resources/customer_payment_sources.d.cts +3 -3
- package/lib/resources/customer_payment_sources.d.ts +2 -2
- package/lib/resources/customer_payment_sources.js +10 -9
- package/lib/resources/customer_subscriptions.cjs +11 -10
- package/lib/resources/customer_subscriptions.d.cts +3 -3
- package/lib/resources/customer_subscriptions.d.ts +2 -2
- package/lib/resources/customer_subscriptions.js +10 -9
- package/lib/resources/customers.cjs +11 -10
- package/lib/resources/customers.d.cts +3 -3
- package/lib/resources/customers.d.ts +2 -2
- package/lib/resources/customers.js +10 -9
- package/lib/resources/delivery_lead_times.cjs +11 -10
- package/lib/resources/delivery_lead_times.d.cts +3 -3
- package/lib/resources/delivery_lead_times.d.ts +2 -2
- package/lib/resources/delivery_lead_times.js +10 -9
- package/lib/resources/discount_engine_items.cjs +11 -10
- package/lib/resources/discount_engine_items.d.cts +3 -3
- package/lib/resources/discount_engine_items.d.ts +2 -2
- package/lib/resources/discount_engine_items.js +10 -9
- package/lib/resources/discount_engines.cjs +11 -10
- package/lib/resources/discount_engines.d.cts +3 -3
- package/lib/resources/discount_engines.d.ts +2 -2
- package/lib/resources/discount_engines.js +10 -9
- package/lib/resources/easypost_pickups.cjs +11 -10
- package/lib/resources/easypost_pickups.d.cts +3 -3
- package/lib/resources/easypost_pickups.d.ts +2 -2
- package/lib/resources/easypost_pickups.js +10 -9
- package/lib/resources/event_callbacks.cjs +11 -10
- package/lib/resources/event_callbacks.d.cts +3 -3
- package/lib/resources/event_callbacks.d.ts +2 -2
- package/lib/resources/event_callbacks.js +10 -9
- package/lib/resources/event_stores.cjs +11 -10
- package/lib/resources/event_stores.d.cts +3 -3
- package/lib/resources/event_stores.d.ts +2 -2
- package/lib/resources/event_stores.js +10 -9
- package/lib/resources/events.cjs +11 -10
- package/lib/resources/events.d.cts +3 -3
- package/lib/resources/events.d.ts +2 -2
- package/lib/resources/events.js +10 -9
- package/lib/resources/exports.cjs +11 -10
- package/lib/resources/exports.d.cts +3 -3
- package/lib/resources/exports.d.ts +2 -2
- package/lib/resources/exports.js +10 -9
- package/lib/resources/external_gateways.cjs +11 -10
- package/lib/resources/external_gateways.d.cts +3 -3
- package/lib/resources/external_gateways.d.ts +2 -2
- package/lib/resources/external_gateways.js +10 -9
- package/lib/resources/external_payments.cjs +11 -10
- package/lib/resources/external_payments.d.cts +3 -3
- package/lib/resources/external_payments.d.ts +2 -2
- package/lib/resources/external_payments.js +10 -9
- package/lib/resources/external_promotions.cjs +11 -10
- package/lib/resources/external_promotions.d.cts +3 -3
- package/lib/resources/external_promotions.d.ts +2 -2
- package/lib/resources/external_promotions.js +10 -9
- package/lib/resources/external_tax_calculators.cjs +11 -10
- package/lib/resources/external_tax_calculators.d.cts +3 -3
- package/lib/resources/external_tax_calculators.d.ts +2 -2
- package/lib/resources/external_tax_calculators.js +10 -9
- package/lib/resources/fixed_amount_promotions.cjs +11 -10
- package/lib/resources/fixed_amount_promotions.d.cts +3 -3
- package/lib/resources/fixed_amount_promotions.d.ts +2 -2
- package/lib/resources/fixed_amount_promotions.js +10 -9
- package/lib/resources/fixed_price_promotions.cjs +11 -10
- package/lib/resources/fixed_price_promotions.d.cts +3 -3
- package/lib/resources/fixed_price_promotions.d.ts +2 -2
- package/lib/resources/fixed_price_promotions.js +10 -9
- package/lib/resources/flex_promotions.cjs +11 -10
- package/lib/resources/flex_promotions.d.cts +3 -3
- package/lib/resources/flex_promotions.d.ts +2 -2
- package/lib/resources/flex_promotions.js +10 -9
- package/lib/resources/free_gift_promotions.cjs +11 -10
- package/lib/resources/free_gift_promotions.d.cts +3 -3
- package/lib/resources/free_gift_promotions.d.ts +2 -2
- package/lib/resources/free_gift_promotions.js +10 -9
- package/lib/resources/free_shipping_promotions.cjs +11 -10
- package/lib/resources/free_shipping_promotions.d.cts +3 -3
- package/lib/resources/free_shipping_promotions.d.ts +2 -2
- package/lib/resources/free_shipping_promotions.js +10 -9
- package/lib/resources/geocoders.cjs +11 -10
- package/lib/resources/geocoders.d.cts +3 -3
- package/lib/resources/geocoders.d.ts +2 -2
- package/lib/resources/geocoders.js +10 -9
- package/lib/resources/gift_card_recipients.cjs +11 -10
- package/lib/resources/gift_card_recipients.d.cts +3 -3
- package/lib/resources/gift_card_recipients.d.ts +2 -2
- package/lib/resources/gift_card_recipients.js +10 -9
- package/lib/resources/gift_cards.cjs +11 -10
- package/lib/resources/gift_cards.d.cts +3 -3
- package/lib/resources/gift_cards.d.ts +2 -2
- package/lib/resources/gift_cards.js +10 -9
- package/lib/resources/google_geocoders.cjs +11 -10
- package/lib/resources/google_geocoders.d.cts +3 -3
- package/lib/resources/google_geocoders.d.ts +2 -2
- package/lib/resources/google_geocoders.js +10 -9
- package/lib/resources/imports.cjs +11 -10
- package/lib/resources/imports.d.cts +3 -3
- package/lib/resources/imports.d.ts +2 -2
- package/lib/resources/imports.js +10 -9
- package/lib/resources/in_stock_subscriptions.cjs +11 -10
- package/lib/resources/in_stock_subscriptions.d.cts +3 -3
- package/lib/resources/in_stock_subscriptions.d.ts +2 -2
- package/lib/resources/in_stock_subscriptions.js +10 -9
- package/lib/resources/inventory_models.cjs +11 -10
- package/lib/resources/inventory_models.d.cts +3 -3
- package/lib/resources/inventory_models.d.ts +2 -2
- package/lib/resources/inventory_models.js +10 -9
- package/lib/resources/inventory_return_locations.cjs +11 -10
- package/lib/resources/inventory_return_locations.d.cts +3 -3
- package/lib/resources/inventory_return_locations.d.ts +2 -2
- package/lib/resources/inventory_return_locations.js +10 -9
- package/lib/resources/inventory_stock_locations.cjs +11 -10
- package/lib/resources/inventory_stock_locations.d.cts +3 -3
- package/lib/resources/inventory_stock_locations.d.ts +2 -2
- package/lib/resources/inventory_stock_locations.js +10 -9
- package/lib/resources/klarna_gateways.cjs +11 -10
- package/lib/resources/klarna_gateways.d.cts +3 -3
- package/lib/resources/klarna_gateways.d.ts +2 -2
- package/lib/resources/klarna_gateways.js +10 -9
- package/lib/resources/klarna_payments.cjs +11 -10
- package/lib/resources/klarna_payments.d.cts +3 -3
- package/lib/resources/klarna_payments.d.ts +2 -2
- package/lib/resources/klarna_payments.js +10 -9
- package/lib/resources/line_item_options.cjs +11 -10
- package/lib/resources/line_item_options.d.cts +3 -3
- package/lib/resources/line_item_options.d.ts +2 -2
- package/lib/resources/line_item_options.js +10 -9
- package/lib/resources/line_items.cjs +11 -10
- package/lib/resources/line_items.d.cts +3 -3
- package/lib/resources/line_items.d.ts +2 -2
- package/lib/resources/line_items.js +10 -9
- package/lib/resources/links.cjs +11 -10
- package/lib/resources/links.d.cts +3 -3
- package/lib/resources/links.d.ts +2 -2
- package/lib/resources/links.js +10 -9
- package/lib/resources/manual_gateways.cjs +11 -10
- package/lib/resources/manual_gateways.d.cts +3 -3
- package/lib/resources/manual_gateways.d.ts +2 -2
- package/lib/resources/manual_gateways.js +10 -9
- package/lib/resources/manual_tax_calculators.cjs +11 -10
- package/lib/resources/manual_tax_calculators.d.cts +3 -3
- package/lib/resources/manual_tax_calculators.d.ts +2 -2
- package/lib/resources/manual_tax_calculators.js +10 -9
- package/lib/resources/markets.cjs +11 -10
- package/lib/resources/markets.d.cts +3 -3
- package/lib/resources/markets.d.ts +2 -2
- package/lib/resources/markets.js +10 -9
- package/lib/resources/merchants.cjs +11 -10
- package/lib/resources/merchants.d.cts +3 -3
- package/lib/resources/merchants.d.ts +2 -2
- package/lib/resources/merchants.js +10 -9
- package/lib/resources/notifications.cjs +11 -10
- package/lib/resources/notifications.d.cts +3 -3
- package/lib/resources/notifications.d.ts +2 -2
- package/lib/resources/notifications.js +10 -9
- package/lib/resources/order_amount_promotion_rules.cjs +11 -10
- package/lib/resources/order_amount_promotion_rules.d.cts +3 -3
- package/lib/resources/order_amount_promotion_rules.d.ts +2 -2
- package/lib/resources/order_amount_promotion_rules.js +10 -9
- package/lib/resources/order_copies.cjs +11 -10
- package/lib/resources/order_copies.d.cts +3 -3
- package/lib/resources/order_copies.d.ts +2 -2
- package/lib/resources/order_copies.js +10 -9
- package/lib/resources/order_factories.cjs +11 -10
- package/lib/resources/order_factories.d.cts +3 -3
- package/lib/resources/order_factories.d.ts +2 -2
- package/lib/resources/order_factories.js +10 -9
- package/lib/resources/order_subscription_items.cjs +11 -10
- package/lib/resources/order_subscription_items.d.cts +3 -3
- package/lib/resources/order_subscription_items.d.ts +2 -2
- package/lib/resources/order_subscription_items.js +10 -9
- package/lib/resources/order_subscriptions.cjs +11 -10
- package/lib/resources/order_subscriptions.d.cts +3 -3
- package/lib/resources/order_subscriptions.d.ts +2 -2
- package/lib/resources/order_subscriptions.js +10 -9
- package/lib/resources/order_validation_rules.cjs +21 -0
- package/lib/resources/order_validation_rules.cjs.map +1 -0
- package/lib/resources/order_validation_rules.d.cts +7 -0
- package/lib/resources/order_validation_rules.d.ts +4 -0
- package/lib/resources/order_validation_rules.js +13 -0
- package/lib/resources/order_validation_rules.js.map +1 -0
- package/lib/resources/orders.cjs +11 -10
- package/lib/resources/orders.d.cts +3 -3
- package/lib/resources/orders.d.ts +2 -2
- package/lib/resources/orders.js +10 -9
- package/lib/resources/organizations.cjs +11 -10
- package/lib/resources/organizations.d.cts +3 -3
- package/lib/resources/organizations.d.ts +2 -2
- package/lib/resources/organizations.js +10 -9
- package/lib/resources/packages.cjs +11 -10
- package/lib/resources/packages.d.cts +3 -3
- package/lib/resources/packages.d.ts +2 -2
- package/lib/resources/packages.js +10 -9
- package/lib/resources/parcel_line_items.cjs +11 -10
- package/lib/resources/parcel_line_items.d.cts +3 -3
- package/lib/resources/parcel_line_items.d.ts +2 -2
- package/lib/resources/parcel_line_items.js +10 -9
- package/lib/resources/parcels.cjs +11 -10
- package/lib/resources/parcels.d.cts +3 -3
- package/lib/resources/parcels.d.ts +2 -2
- package/lib/resources/parcels.js +10 -9
- package/lib/resources/payment_gateways.cjs +11 -10
- package/lib/resources/payment_gateways.d.cts +3 -3
- package/lib/resources/payment_gateways.d.ts +2 -2
- package/lib/resources/payment_gateways.js +10 -9
- package/lib/resources/payment_methods.cjs +11 -10
- package/lib/resources/payment_methods.d.cts +3 -3
- package/lib/resources/payment_methods.d.ts +2 -2
- package/lib/resources/payment_methods.js +10 -9
- package/lib/resources/payment_options.cjs +11 -10
- package/lib/resources/payment_options.d.cts +3 -3
- package/lib/resources/payment_options.d.ts +2 -2
- package/lib/resources/payment_options.js +10 -9
- package/lib/resources/paypal_gateways.cjs +11 -10
- package/lib/resources/paypal_gateways.d.cts +3 -3
- package/lib/resources/paypal_gateways.d.ts +2 -2
- package/lib/resources/paypal_gateways.js +10 -9
- package/lib/resources/paypal_payments.cjs +11 -10
- package/lib/resources/paypal_payments.d.cts +3 -3
- package/lib/resources/paypal_payments.d.ts +2 -2
- package/lib/resources/paypal_payments.js +10 -9
- package/lib/resources/percentage_discount_promotions.cjs +11 -10
- package/lib/resources/percentage_discount_promotions.d.cts +3 -3
- package/lib/resources/percentage_discount_promotions.d.ts +2 -2
- package/lib/resources/percentage_discount_promotions.js +10 -9
- package/lib/resources/pickups.cjs +11 -10
- package/lib/resources/pickups.d.cts +3 -3
- package/lib/resources/pickups.d.ts +2 -2
- package/lib/resources/pickups.js +10 -9
- package/lib/resources/price_frequency_tiers.cjs +11 -10
- package/lib/resources/price_frequency_tiers.d.cts +3 -3
- package/lib/resources/price_frequency_tiers.d.ts +2 -2
- package/lib/resources/price_frequency_tiers.js +10 -9
- package/lib/resources/price_list_schedulers.cjs +11 -10
- package/lib/resources/price_list_schedulers.d.cts +3 -3
- package/lib/resources/price_list_schedulers.d.ts +2 -2
- package/lib/resources/price_list_schedulers.js +10 -9
- package/lib/resources/price_lists.cjs +11 -10
- package/lib/resources/price_lists.d.cts +3 -3
- package/lib/resources/price_lists.d.ts +2 -2
- package/lib/resources/price_lists.js +10 -9
- package/lib/resources/price_tiers.cjs +11 -10
- package/lib/resources/price_tiers.d.cts +3 -3
- package/lib/resources/price_tiers.d.ts +2 -2
- package/lib/resources/price_tiers.js +10 -9
- package/lib/resources/price_volume_tiers.cjs +11 -10
- package/lib/resources/price_volume_tiers.d.cts +3 -3
- package/lib/resources/price_volume_tiers.d.ts +2 -2
- package/lib/resources/price_volume_tiers.js +10 -9
- package/lib/resources/prices.cjs +11 -10
- package/lib/resources/prices.d.cts +3 -3
- package/lib/resources/prices.d.ts +2 -2
- package/lib/resources/prices.js +10 -9
- package/lib/resources/promotion_rules.cjs +11 -10
- package/lib/resources/promotion_rules.d.cts +3 -3
- package/lib/resources/promotion_rules.d.ts +2 -2
- package/lib/resources/promotion_rules.js +10 -9
- package/lib/resources/promotions.cjs +11 -10
- package/lib/resources/promotions.d.cts +3 -3
- package/lib/resources/promotions.d.ts +2 -2
- package/lib/resources/promotions.js +10 -9
- package/lib/resources/recurring_order_copies.cjs +11 -10
- package/lib/resources/recurring_order_copies.d.cts +3 -3
- package/lib/resources/recurring_order_copies.d.ts +2 -2
- package/lib/resources/recurring_order_copies.js +10 -9
- package/lib/resources/refunds.cjs +11 -10
- package/lib/resources/refunds.d.cts +3 -3
- package/lib/resources/refunds.d.ts +2 -2
- package/lib/resources/refunds.js +10 -9
- package/lib/resources/reserved_stocks.cjs +11 -10
- package/lib/resources/reserved_stocks.d.cts +3 -3
- package/lib/resources/reserved_stocks.d.ts +2 -2
- package/lib/resources/reserved_stocks.js +10 -9
- package/lib/resources/resource_errors.cjs +11 -10
- package/lib/resources/resource_errors.d.cts +3 -3
- package/lib/resources/resource_errors.d.ts +2 -2
- package/lib/resources/resource_errors.js +10 -9
- package/lib/resources/return_line_items.cjs +11 -10
- package/lib/resources/return_line_items.d.cts +3 -3
- package/lib/resources/return_line_items.d.ts +2 -2
- package/lib/resources/return_line_items.js +10 -9
- package/lib/resources/returns.cjs +11 -10
- package/lib/resources/returns.d.cts +3 -3
- package/lib/resources/returns.d.ts +2 -2
- package/lib/resources/returns.js +10 -9
- package/lib/resources/satispay_gateways.cjs +11 -10
- package/lib/resources/satispay_gateways.d.cts +3 -3
- package/lib/resources/satispay_gateways.d.ts +2 -2
- package/lib/resources/satispay_gateways.js +10 -9
- package/lib/resources/satispay_payments.cjs +11 -10
- package/lib/resources/satispay_payments.d.cts +3 -3
- package/lib/resources/satispay_payments.d.ts +2 -2
- package/lib/resources/satispay_payments.js +10 -9
- package/lib/resources/shipment_line_items.cjs +21 -0
- package/lib/resources/shipment_line_items.cjs.map +1 -0
- package/lib/resources/shipment_line_items.d.cts +7 -0
- package/lib/resources/shipment_line_items.d.ts +4 -0
- package/lib/resources/shipment_line_items.js +13 -0
- package/lib/resources/shipment_line_items.js.map +1 -0
- package/lib/resources/shipments.cjs +11 -10
- package/lib/resources/shipments.d.cts +3 -3
- package/lib/resources/shipments.d.ts +2 -2
- package/lib/resources/shipments.js +10 -9
- package/lib/resources/shipping_categories.cjs +11 -10
- package/lib/resources/shipping_categories.d.cts +3 -3
- package/lib/resources/shipping_categories.d.ts +2 -2
- package/lib/resources/shipping_categories.js +10 -9
- package/lib/resources/shipping_method_tiers.cjs +11 -10
- package/lib/resources/shipping_method_tiers.d.cts +3 -3
- package/lib/resources/shipping_method_tiers.d.ts +2 -2
- package/lib/resources/shipping_method_tiers.js +10 -9
- package/lib/resources/shipping_methods.cjs +11 -10
- package/lib/resources/shipping_methods.d.cts +3 -3
- package/lib/resources/shipping_methods.d.ts +2 -2
- package/lib/resources/shipping_methods.js +10 -9
- package/lib/resources/shipping_weight_tiers.cjs +11 -10
- package/lib/resources/shipping_weight_tiers.d.cts +3 -3
- package/lib/resources/shipping_weight_tiers.d.ts +2 -2
- package/lib/resources/shipping_weight_tiers.js +10 -9
- package/lib/resources/shipping_zones.cjs +11 -10
- package/lib/resources/shipping_zones.d.cts +3 -3
- package/lib/resources/shipping_zones.d.ts +2 -2
- package/lib/resources/shipping_zones.js +10 -9
- package/lib/resources/sku_list_items.cjs +11 -10
- package/lib/resources/sku_list_items.d.cts +3 -3
- package/lib/resources/sku_list_items.d.ts +2 -2
- package/lib/resources/sku_list_items.js +10 -9
- package/lib/resources/sku_list_promotion_rules.cjs +11 -10
- package/lib/resources/sku_list_promotion_rules.d.cts +3 -3
- package/lib/resources/sku_list_promotion_rules.d.ts +2 -2
- package/lib/resources/sku_list_promotion_rules.js +10 -9
- package/lib/resources/sku_lists.cjs +11 -10
- package/lib/resources/sku_lists.d.cts +3 -3
- package/lib/resources/sku_lists.d.ts +2 -2
- package/lib/resources/sku_lists.js +10 -9
- package/lib/resources/sku_options.cjs +11 -10
- package/lib/resources/sku_options.d.cts +3 -3
- package/lib/resources/sku_options.d.ts +2 -2
- package/lib/resources/sku_options.js +10 -9
- package/lib/resources/skus.cjs +11 -10
- package/lib/resources/skus.d.cts +3 -3
- package/lib/resources/skus.d.ts +2 -2
- package/lib/resources/skus.js +10 -9
- package/lib/resources/stock_items.cjs +11 -10
- package/lib/resources/stock_items.d.cts +3 -3
- package/lib/resources/stock_items.d.ts +2 -2
- package/lib/resources/stock_items.js +10 -9
- package/lib/resources/stock_line_items.cjs +11 -10
- package/lib/resources/stock_line_items.d.cts +3 -3
- package/lib/resources/stock_line_items.d.ts +2 -2
- package/lib/resources/stock_line_items.js +10 -9
- package/lib/resources/stock_locations.cjs +11 -10
- package/lib/resources/stock_locations.d.cts +3 -3
- package/lib/resources/stock_locations.d.ts +2 -2
- package/lib/resources/stock_locations.js +10 -9
- package/lib/resources/stock_reservations.cjs +11 -10
- package/lib/resources/stock_reservations.d.cts +3 -3
- package/lib/resources/stock_reservations.d.ts +2 -2
- package/lib/resources/stock_reservations.js +10 -9
- package/lib/resources/stock_transfers.cjs +11 -10
- package/lib/resources/stock_transfers.d.cts +3 -3
- package/lib/resources/stock_transfers.d.ts +2 -2
- package/lib/resources/stock_transfers.js +10 -9
- package/lib/resources/stores.cjs +11 -10
- package/lib/resources/stores.d.cts +3 -3
- package/lib/resources/stores.d.ts +2 -2
- package/lib/resources/stores.js +10 -9
- package/lib/resources/stripe_gateways.cjs +11 -10
- package/lib/resources/stripe_gateways.d.cts +3 -3
- package/lib/resources/stripe_gateways.d.ts +2 -2
- package/lib/resources/stripe_gateways.js +10 -9
- package/lib/resources/stripe_payments.cjs +11 -10
- package/lib/resources/stripe_payments.d.cts +3 -3
- package/lib/resources/stripe_payments.d.ts +2 -2
- package/lib/resources/stripe_payments.js +10 -9
- package/lib/resources/stripe_tax_accounts.cjs +11 -10
- package/lib/resources/stripe_tax_accounts.d.cts +3 -3
- package/lib/resources/stripe_tax_accounts.d.ts +2 -2
- package/lib/resources/stripe_tax_accounts.js +10 -9
- package/lib/resources/subscription_models.cjs +11 -10
- package/lib/resources/subscription_models.d.cts +3 -3
- package/lib/resources/subscription_models.d.ts +2 -2
- package/lib/resources/subscription_models.js +10 -9
- package/lib/resources/tags.cjs +11 -10
- package/lib/resources/tags.d.cts +3 -3
- package/lib/resources/tags.d.ts +2 -2
- package/lib/resources/tags.js +10 -9
- package/lib/resources/talon_one_accounts.cjs +11 -10
- package/lib/resources/talon_one_accounts.d.cts +3 -3
- package/lib/resources/talon_one_accounts.d.ts +2 -2
- package/lib/resources/talon_one_accounts.js +10 -9
- package/lib/resources/tax_calculators.cjs +11 -10
- package/lib/resources/tax_calculators.d.cts +3 -3
- package/lib/resources/tax_calculators.d.ts +2 -2
- package/lib/resources/tax_calculators.js +10 -9
- package/lib/resources/tax_categories.cjs +11 -10
- package/lib/resources/tax_categories.d.cts +3 -3
- package/lib/resources/tax_categories.d.ts +2 -2
- package/lib/resources/tax_categories.js +10 -9
- package/lib/resources/tax_rules.cjs +11 -10
- package/lib/resources/tax_rules.d.cts +3 -3
- package/lib/resources/tax_rules.d.ts +2 -2
- package/lib/resources/tax_rules.js +10 -9
- package/lib/resources/taxjar_accounts.cjs +11 -10
- package/lib/resources/taxjar_accounts.d.cts +3 -3
- package/lib/resources/taxjar_accounts.d.ts +2 -2
- package/lib/resources/taxjar_accounts.js +10 -9
- package/lib/resources/transactions.cjs +11 -10
- package/lib/resources/transactions.d.cts +3 -3
- package/lib/resources/transactions.d.ts +2 -2
- package/lib/resources/transactions.js +10 -9
- package/lib/resources/vertex_accounts.cjs +11 -10
- package/lib/resources/vertex_accounts.d.cts +3 -3
- package/lib/resources/vertex_accounts.d.ts +2 -2
- package/lib/resources/vertex_accounts.js +10 -9
- package/lib/resources/voids.cjs +11 -10
- package/lib/resources/voids.d.cts +3 -3
- package/lib/resources/voids.d.ts +2 -2
- package/lib/resources/voids.js +10 -9
- package/lib/resources/webhooks.cjs +11 -10
- package/lib/resources/webhooks.d.cts +3 -3
- package/lib/resources/webhooks.d.ts +2 -2
- package/lib/resources/webhooks.js +10 -9
- package/lib/resources/wire_transfers.cjs +11 -10
- package/lib/resources/wire_transfers.d.cts +3 -3
- package/lib/resources/wire_transfers.d.ts +2 -2
- package/lib/resources/wire_transfers.js +10 -9
- package/lib/single-client.cjs +708 -0
- package/lib/single-client.cjs.map +1 -0
- package/lib/single-client.d.cts +11 -0
- package/lib/single-client.d.ts +8 -0
- package/lib/single-client.js +149 -0
- package/lib/single-client.js.map +1 -0
- package/lib/static.cjs +12 -11
- package/lib/static.d.cts +2 -2
- package/lib/static.d.ts +2 -2
- package/lib/static.js +11 -10
- package/lib/util.cjs +5 -5
- package/lib/util.js +1 -1
- package/lib/version.cjs +17 -0
- package/lib/version.cjs.map +1 -0
- package/lib/version.d.cts +4 -0
- package/lib/version.d.ts +4 -0
- package/lib/version.js +4 -0
- package/lib/version.js.map +1 -0
- package/package.json +27 -17
- package/lib/api--5wB5Y2R.d.ts +0 -18326
- package/lib/api-D_vKsy0h.d.cts +0 -18326
- package/lib/chunk-22RVT2J2.js +0 -20
- package/lib/chunk-22RVT2J2.js.map +0 -1
- package/lib/chunk-24HV4EKV.js +0 -45
- package/lib/chunk-24HV4EKV.js.map +0 -1
- package/lib/chunk-2BYCZUKD.cjs +0 -47
- package/lib/chunk-2BYCZUKD.cjs.map +0 -1
- package/lib/chunk-2C5TBSGQ.cjs +0 -56
- package/lib/chunk-2C5TBSGQ.cjs.map +0 -1
- package/lib/chunk-2D7XHAVQ.js +0 -59
- package/lib/chunk-2D7XHAVQ.js.map +0 -1
- package/lib/chunk-2LDIS6UA.js +0 -53
- package/lib/chunk-2LDIS6UA.js.map +0 -1
- package/lib/chunk-2MSLSBHY.js +0 -57
- package/lib/chunk-2MSLSBHY.js.map +0 -1
- package/lib/chunk-2O5WYDVL.js +0 -37
- package/lib/chunk-2O5WYDVL.js.map +0 -1
- package/lib/chunk-2WHGIJGU.js +0 -54
- package/lib/chunk-2WHGIJGU.js.map +0 -1
- package/lib/chunk-35ININM5.js +0 -54
- package/lib/chunk-35ININM5.js.map +0 -1
- package/lib/chunk-376W3RHK.js +0 -27
- package/lib/chunk-376W3RHK.js.map +0 -1
- package/lib/chunk-3DEA3IGY.cjs +0 -47
- package/lib/chunk-3DEA3IGY.cjs.map +0 -1
- package/lib/chunk-3EX76AZW.js +0 -3
- package/lib/chunk-3EX76AZW.js.map +0 -1
- package/lib/chunk-3GOADUES.cjs +0 -63
- package/lib/chunk-3GOADUES.cjs.map +0 -1
- package/lib/chunk-3MGWBMJ2.cjs +0 -68
- package/lib/chunk-3MGWBMJ2.cjs.map +0 -1
- package/lib/chunk-3P4FFWTQ.cjs +0 -56
- package/lib/chunk-3P4FFWTQ.cjs.map +0 -1
- package/lib/chunk-3U7MK4SX.js +0 -68
- package/lib/chunk-3U7MK4SX.js.map +0 -1
- package/lib/chunk-3VI355UT.cjs +0 -62
- package/lib/chunk-3VI355UT.cjs.map +0 -1
- package/lib/chunk-3VVT6CKA.cjs +0 -70
- package/lib/chunk-3VVT6CKA.cjs.map +0 -1
- package/lib/chunk-3XGAVG4L.cjs +0 -34
- package/lib/chunk-3XGAVG4L.cjs.map +0 -1
- package/lib/chunk-3XSYH6SE.cjs +0 -38
- package/lib/chunk-3XSYH6SE.cjs.map +0 -1
- package/lib/chunk-3YIYVGMM.cjs +0 -42
- package/lib/chunk-3YIYVGMM.cjs.map +0 -1
- package/lib/chunk-4474ZEVS.js +0 -124
- package/lib/chunk-4474ZEVS.js.map +0 -1
- package/lib/chunk-4BE3G6GK.js +0 -51
- package/lib/chunk-4BE3G6GK.js.map +0 -1
- package/lib/chunk-4CLAI7ZC.cjs +0 -47
- package/lib/chunk-4CLAI7ZC.cjs.map +0 -1
- package/lib/chunk-4FW3MLHR.js +0 -53
- package/lib/chunk-4FW3MLHR.js.map +0 -1
- package/lib/chunk-4LAL3DCH.cjs +0 -55
- package/lib/chunk-4LAL3DCH.cjs.map +0 -1
- package/lib/chunk-4MV6VICV.js +0 -35
- package/lib/chunk-4MV6VICV.js.map +0 -1
- package/lib/chunk-53GWR3UF.js +0 -99
- package/lib/chunk-53GWR3UF.js.map +0 -1
- package/lib/chunk-5JDGRW3K.cjs +0 -47
- package/lib/chunk-5JDGRW3K.cjs.map +0 -1
- package/lib/chunk-5QFBTA7C.cjs +0 -61
- package/lib/chunk-5QFBTA7C.cjs.map +0 -1
- package/lib/chunk-5UISCFSR.cjs +0 -50
- package/lib/chunk-5UISCFSR.cjs.map +0 -1
- package/lib/chunk-5YMHXTJG.cjs +0 -4
- package/lib/chunk-5YMHXTJG.cjs.map +0 -1
- package/lib/chunk-62GRSGIA.js +0 -45
- package/lib/chunk-62GRSGIA.js.map +0 -1
- package/lib/chunk-64ENQFIL.cjs +0 -63
- package/lib/chunk-64ENQFIL.cjs.map +0 -1
- package/lib/chunk-6CE3DQTO.js +0 -53
- package/lib/chunk-6CE3DQTO.js.map +0 -1
- package/lib/chunk-6KXZ76ZM.js +0 -49
- package/lib/chunk-6KXZ76ZM.js.map +0 -1
- package/lib/chunk-6OF4JUHR.js +0 -45
- package/lib/chunk-6OF4JUHR.js.map +0 -1
- package/lib/chunk-6P72FNDJ.js +0 -53
- package/lib/chunk-6P72FNDJ.js.map +0 -1
- package/lib/chunk-73YM5XTA.cjs +0 -38
- package/lib/chunk-73YM5XTA.cjs.map +0 -1
- package/lib/chunk-74WLCRAL.cjs +0 -34
- package/lib/chunk-74WLCRAL.cjs.map +0 -1
- package/lib/chunk-7E73FXEL.cjs +0 -53
- package/lib/chunk-7E73FXEL.cjs.map +0 -1
- package/lib/chunk-7GSZFUJV.cjs +0 -59
- package/lib/chunk-7GSZFUJV.cjs.map +0 -1
- package/lib/chunk-7OUZNR45.js +0 -54
- package/lib/chunk-7OUZNR45.js.map +0 -1
- package/lib/chunk-7RZTCBDR.cjs +0 -22
- package/lib/chunk-7RZTCBDR.cjs.map +0 -1
- package/lib/chunk-7TGNLLZ4.js +0 -105
- package/lib/chunk-7TGNLLZ4.js.map +0 -1
- package/lib/chunk-7TM7YEPY.js +0 -89
- package/lib/chunk-7TM7YEPY.js.map +0 -1
- package/lib/chunk-A2CJAI7L.js +0 -24
- package/lib/chunk-A2CJAI7L.js.map +0 -1
- package/lib/chunk-A6DVFU4I.cjs +0 -46
- package/lib/chunk-A6DVFU4I.cjs.map +0 -1
- package/lib/chunk-A7NVPT5R.cjs +0 -55
- package/lib/chunk-A7NVPT5R.cjs.map +0 -1
- package/lib/chunk-A7ZFL7GH.js +0 -54
- package/lib/chunk-A7ZFL7GH.js.map +0 -1
- package/lib/chunk-AINFK7XE.js +0 -50
- package/lib/chunk-AINFK7XE.js.map +0 -1
- package/lib/chunk-AORS3S6A.js +0 -99
- package/lib/chunk-AORS3S6A.js.map +0 -1
- package/lib/chunk-APVQZ7L7.js +0 -48
- package/lib/chunk-APVQZ7L7.js.map +0 -1
- package/lib/chunk-ATT2PKKW.cjs +0 -95
- package/lib/chunk-ATT2PKKW.cjs.map +0 -1
- package/lib/chunk-AW6TSK6S.cjs +0 -42
- package/lib/chunk-AW6TSK6S.cjs.map +0 -1
- package/lib/chunk-AYKGUDP3.cjs +0 -285
- package/lib/chunk-AYKGUDP3.cjs.map +0 -1
- package/lib/chunk-AYPMKIN6.js +0 -51
- package/lib/chunk-AYPMKIN6.js.map +0 -1
- package/lib/chunk-B2MBAQSE.js +0 -41
- package/lib/chunk-B2MBAQSE.js.map +0 -1
- package/lib/chunk-BB3CT6HZ.js +0 -45
- package/lib/chunk-BB3CT6HZ.js.map +0 -1
- package/lib/chunk-BHLODYAT.js +0 -28
- package/lib/chunk-BHLODYAT.js.map +0 -1
- package/lib/chunk-BLI75VEN.cjs +0 -51
- package/lib/chunk-BLI75VEN.cjs.map +0 -1
- package/lib/chunk-BMO7YKG5.js +0 -60
- package/lib/chunk-BMO7YKG5.js.map +0 -1
- package/lib/chunk-BMOWFIX5.js +0 -45
- package/lib/chunk-BMOWFIX5.js.map +0 -1
- package/lib/chunk-BNCF46ZI.js +0 -61
- package/lib/chunk-BNCF46ZI.js.map +0 -1
- package/lib/chunk-BSXJPL6J.cjs +0 -55
- package/lib/chunk-BSXJPL6J.cjs.map +0 -1
- package/lib/chunk-BVQ2UTRP.cjs +0 -39
- package/lib/chunk-BVQ2UTRP.cjs.map +0 -1
- package/lib/chunk-BYDZPVOJ.js +0 -75
- package/lib/chunk-BYDZPVOJ.js.map +0 -1
- package/lib/chunk-C3I7H3HE.js +0 -49
- package/lib/chunk-C3I7H3HE.js.map +0 -1
- package/lib/chunk-C3UX7IBG.cjs +0 -59
- package/lib/chunk-C3UX7IBG.cjs.map +0 -1
- package/lib/chunk-C7OXTOX3.js +0 -36
- package/lib/chunk-C7OXTOX3.js.map +0 -1
- package/lib/chunk-CB5HXUPC.js +0 -31
- package/lib/chunk-CB5HXUPC.js.map +0 -1
- package/lib/chunk-CBFT5GYL.js +0 -103
- package/lib/chunk-CBFT5GYL.js.map +0 -1
- package/lib/chunk-D3LM2KQW.cjs +0 -47
- package/lib/chunk-D3LM2KQW.cjs.map +0 -1
- package/lib/chunk-D3ZUNI32.js +0 -67
- package/lib/chunk-D3ZUNI32.js.map +0 -1
- package/lib/chunk-D6CUKQZS.cjs +0 -55
- package/lib/chunk-D6CUKQZS.cjs.map +0 -1
- package/lib/chunk-DCEUM6EI.cjs +0 -30
- package/lib/chunk-DCEUM6EI.cjs.map +0 -1
- package/lib/chunk-DDV3U4FY.js +0 -48
- package/lib/chunk-DDV3U4FY.js.map +0 -1
- package/lib/chunk-DEQMKHOP.js +0 -40
- package/lib/chunk-DEQMKHOP.js.map +0 -1
- package/lib/chunk-DVDWNVCT.cjs +0 -49
- package/lib/chunk-DVDWNVCT.cjs.map +0 -1
- package/lib/chunk-DZP3JVEB.js +0 -45
- package/lib/chunk-DZP3JVEB.js.map +0 -1
- package/lib/chunk-E6MUVI6C.cjs +0 -51
- package/lib/chunk-E6MUVI6C.cjs.map +0 -1
- package/lib/chunk-E7GTEUA7.js +0 -49
- package/lib/chunk-E7GTEUA7.js.map +0 -1
- package/lib/chunk-EHEMWPTO.js +0 -102
- package/lib/chunk-EHEMWPTO.js.map +0 -1
- package/lib/chunk-EINVA4BK.cjs +0 -61
- package/lib/chunk-EINVA4BK.cjs.map +0 -1
- package/lib/chunk-EK7QE2CA.cjs +0 -47
- package/lib/chunk-EK7QE2CA.cjs.map +0 -1
- package/lib/chunk-EMD66UZY.cjs +0 -156
- package/lib/chunk-EMD66UZY.cjs.map +0 -1
- package/lib/chunk-ESJGAJ3L.js +0 -48
- package/lib/chunk-ESJGAJ3L.js.map +0 -1
- package/lib/chunk-EVFHODWY.js +0 -45
- package/lib/chunk-EVFHODWY.js.map +0 -1
- package/lib/chunk-F5GFKBDK.cjs +0 -95
- package/lib/chunk-F5GFKBDK.cjs.map +0 -1
- package/lib/chunk-F6REPWKJ.cjs +0 -77
- package/lib/chunk-F6REPWKJ.cjs.map +0 -1
- package/lib/chunk-F7F4VRB2.js +0 -45
- package/lib/chunk-F7F4VRB2.js.map +0 -1
- package/lib/chunk-FDLALORX.cjs +0 -47
- package/lib/chunk-FDLALORX.cjs.map +0 -1
- package/lib/chunk-FDTEUCMP.cjs +0 -26
- package/lib/chunk-FDTEUCMP.cjs.map +0 -1
- package/lib/chunk-FIRCMJCB.js +0 -93
- package/lib/chunk-FIRCMJCB.js.map +0 -1
- package/lib/chunk-FK3XYZ3Q.js +0 -45
- package/lib/chunk-FK3XYZ3Q.js.map +0 -1
- package/lib/chunk-FLOVFVKA.cjs +0 -51
- package/lib/chunk-FLOVFVKA.cjs.map +0 -1
- package/lib/chunk-FMQ5JHN6.cjs +0 -51
- package/lib/chunk-FMQ5JHN6.cjs.map +0 -1
- package/lib/chunk-FNIFFIDD.cjs +0 -39
- package/lib/chunk-FNIFFIDD.cjs.map +0 -1
- package/lib/chunk-FON2463F.js +0 -99
- package/lib/chunk-FON2463F.js.map +0 -1
- package/lib/chunk-G4GV5S6R.js +0 -283
- package/lib/chunk-G4GV5S6R.js.map +0 -1
- package/lib/chunk-G6BY3EA3.cjs +0 -51
- package/lib/chunk-G6BY3EA3.cjs.map +0 -1
- package/lib/chunk-GB23LWF6.js +0 -36
- package/lib/chunk-GB23LWF6.js.map +0 -1
- package/lib/chunk-GBM34MD2.cjs +0 -107
- package/lib/chunk-GBM34MD2.cjs.map +0 -1
- package/lib/chunk-GDD5SAYK.js +0 -36
- package/lib/chunk-GDD5SAYK.js.map +0 -1
- package/lib/chunk-GDPBS2DA.js +0 -154
- package/lib/chunk-GDPBS2DA.js.map +0 -1
- package/lib/chunk-GHJDV7RE.js +0 -59
- package/lib/chunk-GHJDV7RE.js.map +0 -1
- package/lib/chunk-GVVAHJ7J.cjs +0 -55
- package/lib/chunk-GVVAHJ7J.cjs.map +0 -1
- package/lib/chunk-GYCMQIMO.cjs +0 -550
- package/lib/chunk-GYCMQIMO.cjs.map +0 -1
- package/lib/chunk-H35WD77K.js +0 -49
- package/lib/chunk-H35WD77K.js.map +0 -1
- package/lib/chunk-H4OZFLUI.js +0 -37
- package/lib/chunk-H4OZFLUI.js.map +0 -1
- package/lib/chunk-HAF3NSFM.js +0 -93
- package/lib/chunk-HAF3NSFM.js.map +0 -1
- package/lib/chunk-HBEFGWUI.cjs +0 -49
- package/lib/chunk-HBEFGWUI.cjs.map +0 -1
- package/lib/chunk-HCK6NM5P.cjs +0 -47
- package/lib/chunk-HCK6NM5P.cjs.map +0 -1
- package/lib/chunk-HE4KWG6X.js +0 -55
- package/lib/chunk-HE4KWG6X.js.map +0 -1
- package/lib/chunk-HG36VCO5.js +0 -28
- package/lib/chunk-HG36VCO5.js.map +0 -1
- package/lib/chunk-HHOMPSSL.js +0 -91
- package/lib/chunk-HHOMPSSL.js.map +0 -1
- package/lib/chunk-HK6PGHU6.js +0 -57
- package/lib/chunk-HK6PGHU6.js.map +0 -1
- package/lib/chunk-HLI7KDN3.js +0 -45
- package/lib/chunk-HLI7KDN3.js.map +0 -1
- package/lib/chunk-HOQPWW7K.js +0 -40
- package/lib/chunk-HOQPWW7K.js.map +0 -1
- package/lib/chunk-HP6ZFYAJ.js +0 -37
- package/lib/chunk-HP6ZFYAJ.js.map +0 -1
- package/lib/chunk-HQZKODMU.js +0 -57
- package/lib/chunk-HQZKODMU.js.map +0 -1
- package/lib/chunk-HYO7YG3G.js +0 -45
- package/lib/chunk-HYO7YG3G.js.map +0 -1
- package/lib/chunk-HZ555CAY.js +0 -48
- package/lib/chunk-HZ555CAY.js.map +0 -1
- package/lib/chunk-IANMFIQD.js +0 -45
- package/lib/chunk-IANMFIQD.js.map +0 -1
- package/lib/chunk-IBXRFMT6.js +0 -69
- package/lib/chunk-IBXRFMT6.js.map +0 -1
- package/lib/chunk-IIWTNBRQ.cjs +0 -50
- package/lib/chunk-IIWTNBRQ.cjs.map +0 -1
- package/lib/chunk-IKCYKGYL.js +0 -151
- package/lib/chunk-IKCYKGYL.js.map +0 -1
- package/lib/chunk-IWC4U5GF.js +0 -49
- package/lib/chunk-IWC4U5GF.js.map +0 -1
- package/lib/chunk-IXLAN7TH.cjs +0 -61
- package/lib/chunk-IXLAN7TH.cjs.map +0 -1
- package/lib/chunk-JDAGKW5W.js +0 -44
- package/lib/chunk-JDAGKW5W.js.map +0 -1
- package/lib/chunk-JEWF32HM.js +0 -41
- package/lib/chunk-JEWF32HM.js.map +0 -1
- package/lib/chunk-JKO7QP65.cjs +0 -93
- package/lib/chunk-JKO7QP65.cjs.map +0 -1
- package/lib/chunk-JLC6MA4J.js +0 -65
- package/lib/chunk-JLC6MA4J.js.map +0 -1
- package/lib/chunk-JNXHE7P7.cjs +0 -42
- package/lib/chunk-JNXHE7P7.cjs.map +0 -1
- package/lib/chunk-JRMNMJVD.js +0 -61
- package/lib/chunk-JRMNMJVD.js.map +0 -1
- package/lib/chunk-JRUC5BXS.cjs +0 -42
- package/lib/chunk-JRUC5BXS.cjs.map +0 -1
- package/lib/chunk-JWPPED4R.js +0 -47
- package/lib/chunk-JWPPED4R.js.map +0 -1
- package/lib/chunk-K277GYCD.cjs +0 -40
- package/lib/chunk-K277GYCD.cjs.map +0 -1
- package/lib/chunk-K577VLOE.js +0 -45
- package/lib/chunk-K577VLOE.js.map +0 -1
- package/lib/chunk-K5YQI6TW.cjs +0 -47
- package/lib/chunk-K5YQI6TW.cjs.map +0 -1
- package/lib/chunk-KAMFWXPM.cjs +0 -51
- package/lib/chunk-KAMFWXPM.cjs.map +0 -1
- package/lib/chunk-KKB2YNT3.cjs +0 -100
- package/lib/chunk-KKB2YNT3.cjs.map +0 -1
- package/lib/chunk-KLPFAEV7.js +0 -55
- package/lib/chunk-KLPFAEV7.js.map +0 -1
- package/lib/chunk-KR3CTO6J.js +0 -53
- package/lib/chunk-KR3CTO6J.js.map +0 -1
- package/lib/chunk-KU43R6UR.js +0 -49
- package/lib/chunk-KU43R6UR.js.map +0 -1
- package/lib/chunk-L25AS3VU.cjs +0 -61
- package/lib/chunk-L25AS3VU.cjs.map +0 -1
- package/lib/chunk-L3ZQAILV.js +0 -45
- package/lib/chunk-L3ZQAILV.js.map +0 -1
- package/lib/chunk-LFPSATJW.js +0 -40
- package/lib/chunk-LFPSATJW.js.map +0 -1
- package/lib/chunk-LGYQGCME.cjs +0 -61
- package/lib/chunk-LGYQGCME.cjs.map +0 -1
- package/lib/chunk-LIWSHAZ4.cjs +0 -43
- package/lib/chunk-LIWSHAZ4.cjs.map +0 -1
- package/lib/chunk-LPHKPEHK.cjs +0 -69
- package/lib/chunk-LPHKPEHK.cjs.map +0 -1
- package/lib/chunk-LQ5GKVLT.cjs +0 -163
- package/lib/chunk-LQ5GKVLT.cjs.map +0 -1
- package/lib/chunk-LSWGTCTI.js +0 -59
- package/lib/chunk-LSWGTCTI.js.map +0 -1
- package/lib/chunk-LXVXNCLG.cjs +0 -71
- package/lib/chunk-LXVXNCLG.cjs.map +0 -1
- package/lib/chunk-M377L2KC.cjs +0 -59
- package/lib/chunk-M377L2KC.cjs.map +0 -1
- package/lib/chunk-MEN4RRXP.js +0 -41
- package/lib/chunk-MEN4RRXP.js.map +0 -1
- package/lib/chunk-MEZO63WH.js +0 -49
- package/lib/chunk-MEZO63WH.js.map +0 -1
- package/lib/chunk-ML4B3K2M.cjs +0 -126
- package/lib/chunk-ML4B3K2M.cjs.map +0 -1
- package/lib/chunk-NFJG6NQJ.cjs +0 -57
- package/lib/chunk-NFJG6NQJ.cjs.map +0 -1
- package/lib/chunk-NKXOTCMF.js +0 -42
- package/lib/chunk-NKXOTCMF.js.map +0 -1
- package/lib/chunk-NQW3T4PY.js +0 -40
- package/lib/chunk-NQW3T4PY.js.map +0 -1
- package/lib/chunk-NSLBPISG.cjs +0 -51
- package/lib/chunk-NSLBPISG.cjs.map +0 -1
- package/lib/chunk-NTPA4Q5S.js +0 -40
- package/lib/chunk-NTPA4Q5S.js.map +0 -1
- package/lib/chunk-NW4PT4NA.cjs +0 -75
- package/lib/chunk-NW4PT4NA.cjs.map +0 -1
- package/lib/chunk-NWDZHCQQ.cjs +0 -50
- package/lib/chunk-NWDZHCQQ.cjs.map +0 -1
- package/lib/chunk-O3GDTCML.cjs +0 -101
- package/lib/chunk-O3GDTCML.cjs.map +0 -1
- package/lib/chunk-O5452XSG.js +0 -41
- package/lib/chunk-O5452XSG.js.map +0 -1
- package/lib/chunk-OE4JCN6L.cjs +0 -47
- package/lib/chunk-OE4JCN6L.cjs.map +0 -1
- package/lib/chunk-OESVAYOY.cjs +0 -44
- package/lib/chunk-OESVAYOY.cjs.map +0 -1
- package/lib/chunk-OFXYCDYF.js +0 -44
- package/lib/chunk-OFXYCDYF.js.map +0 -1
- package/lib/chunk-ONK4A4VG.js +0 -49
- package/lib/chunk-ONK4A4VG.js.map +0 -1
- package/lib/chunk-OOJKRV4I.js +0 -93
- package/lib/chunk-OOJKRV4I.js.map +0 -1
- package/lib/chunk-OXGE4UIS.cjs +0 -51
- package/lib/chunk-OXGE4UIS.cjs.map +0 -1
- package/lib/chunk-P2SHNYXZ.cjs +0 -47
- package/lib/chunk-P2SHNYXZ.cjs.map +0 -1
- package/lib/chunk-P3SFKEXE.js +0 -37
- package/lib/chunk-P3SFKEXE.js.map +0 -1
- package/lib/chunk-P7TCVHNF.cjs +0 -56
- package/lib/chunk-P7TCVHNF.cjs.map +0 -1
- package/lib/chunk-PE4GN5GN.cjs +0 -39
- package/lib/chunk-PE4GN5GN.cjs.map +0 -1
- package/lib/chunk-PEC5CKS7.cjs +0 -22
- package/lib/chunk-PEC5CKS7.cjs.map +0 -1
- package/lib/chunk-PERRXGB6.js +0 -52
- package/lib/chunk-PERRXGB6.js.map +0 -1
- package/lib/chunk-PHTOGAMR.js +0 -93
- package/lib/chunk-PHTOGAMR.js.map +0 -1
- package/lib/chunk-PIHQS6OG.js +0 -153
- package/lib/chunk-PIHQS6OG.js.map +0 -1
- package/lib/chunk-PKRD2QKS.js +0 -51
- package/lib/chunk-PKRD2QKS.js.map +0 -1
- package/lib/chunk-PLWDHUYW.cjs +0 -95
- package/lib/chunk-PLWDHUYW.cjs.map +0 -1
- package/lib/chunk-PX5VMNOJ.cjs +0 -39
- package/lib/chunk-PX5VMNOJ.cjs.map +0 -1
- package/lib/chunk-PYJG4KKQ.js +0 -49
- package/lib/chunk-PYJG4KKQ.js.map +0 -1
- package/lib/chunk-Q3NXEKVS.cjs +0 -51
- package/lib/chunk-Q3NXEKVS.cjs.map +0 -1
- package/lib/chunk-Q3QW53MA.js +0 -53
- package/lib/chunk-Q3QW53MA.js.map +0 -1
- package/lib/chunk-QIL2RRUJ.cjs +0 -54
- package/lib/chunk-QIL2RRUJ.cjs.map +0 -1
- package/lib/chunk-QQU5KYKX.cjs +0 -33
- package/lib/chunk-QQU5KYKX.cjs.map +0 -1
- package/lib/chunk-QQZRPK6S.js +0 -536
- package/lib/chunk-QQZRPK6S.js.map +0 -1
- package/lib/chunk-QTXR3MOC.cjs +0 -51
- package/lib/chunk-QTXR3MOC.cjs.map +0 -1
- package/lib/chunk-QURTUQAU.cjs +0 -43
- package/lib/chunk-QURTUQAU.cjs.map +0 -1
- package/lib/chunk-QVFORRXP.cjs +0 -51
- package/lib/chunk-QVFORRXP.cjs.map +0 -1
- package/lib/chunk-QWW2P4EV.js +0 -68
- package/lib/chunk-QWW2P4EV.js.map +0 -1
- package/lib/chunk-R5RAVJU6.cjs +0 -53
- package/lib/chunk-R5RAVJU6.cjs.map +0 -1
- package/lib/chunk-R7ZZCZYK.cjs +0 -55
- package/lib/chunk-R7ZZCZYK.cjs.map +0 -1
- package/lib/chunk-REV57I2G.cjs +0 -56
- package/lib/chunk-REV57I2G.cjs.map +0 -1
- package/lib/chunk-RG2NWGVK.cjs +0 -101
- package/lib/chunk-RG2NWGVK.cjs.map +0 -1
- package/lib/chunk-RKP2R57M.js +0 -48
- package/lib/chunk-RKP2R57M.js.map +0 -1
- package/lib/chunk-RLR77QCI.cjs +0 -70
- package/lib/chunk-RLR77QCI.cjs.map +0 -1
- package/lib/chunk-RMNQWTPJ.cjs +0 -54
- package/lib/chunk-RMNQWTPJ.cjs.map +0 -1
- package/lib/chunk-ROXM5D5R.cjs +0 -50
- package/lib/chunk-ROXM5D5R.cjs.map +0 -1
- package/lib/chunk-RQ2EM4Q3.cjs +0 -56
- package/lib/chunk-RQ2EM4Q3.cjs.map +0 -1
- package/lib/chunk-RSLLFTPW.js +0 -49
- package/lib/chunk-RSLLFTPW.js.map +0 -1
- package/lib/chunk-S2BT3STJ.js +0 -32
- package/lib/chunk-S2BT3STJ.js.map +0 -1
- package/lib/chunk-S5DFPL4R.cjs +0 -91
- package/lib/chunk-S5DFPL4R.cjs.map +0 -1
- package/lib/chunk-S7RDGMD4.cjs +0 -55
- package/lib/chunk-S7RDGMD4.cjs.map +0 -1
- package/lib/chunk-SEHGRWGG.js +0 -66
- package/lib/chunk-SEHGRWGG.js.map +0 -1
- package/lib/chunk-SFMVCOGC.cjs +0 -47
- package/lib/chunk-SFMVCOGC.cjs.map +0 -1
- package/lib/chunk-SP4HOXSO.js +0 -45
- package/lib/chunk-SP4HOXSO.js.map +0 -1
- package/lib/chunk-TDLRTDXU.cjs +0 -89
- package/lib/chunk-TDLRTDXU.cjs.map +0 -1
- package/lib/chunk-TFCFXW7O.cjs +0 -101
- package/lib/chunk-TFCFXW7O.cjs.map +0 -1
- package/lib/chunk-TGFLFIXT.cjs +0 -47
- package/lib/chunk-TGFLFIXT.cjs.map +0 -1
- package/lib/chunk-TKDL7G4N.cjs +0 -53
- package/lib/chunk-TKDL7G4N.cjs.map +0 -1
- package/lib/chunk-TKZJTEON.cjs +0 -57
- package/lib/chunk-TKZJTEON.cjs.map +0 -1
- package/lib/chunk-TLYGE3RY.cjs +0 -38
- package/lib/chunk-TLYGE3RY.cjs.map +0 -1
- package/lib/chunk-TORNEVKC.js +0 -32
- package/lib/chunk-TORNEVKC.js.map +0 -1
- package/lib/chunk-TTE2YUFU.js +0 -54
- package/lib/chunk-TTE2YUFU.js.map +0 -1
- package/lib/chunk-TUANHZ5V.cjs +0 -56
- package/lib/chunk-TUANHZ5V.cjs.map +0 -1
- package/lib/chunk-TXH5CJLS.cjs +0 -49
- package/lib/chunk-TXH5CJLS.cjs.map +0 -1
- package/lib/chunk-TZ3RWTTE.cjs +0 -51
- package/lib/chunk-TZ3RWTTE.cjs.map +0 -1
- package/lib/chunk-UAYQ3LTT.cjs +0 -43
- package/lib/chunk-UAYQ3LTT.cjs.map +0 -1
- package/lib/chunk-UP7FMESP.js +0 -55
- package/lib/chunk-UP7FMESP.js.map +0 -1
- package/lib/chunk-UQQTNQX3.cjs +0 -153
- package/lib/chunk-UQQTNQX3.cjs.map +0 -1
- package/lib/chunk-URD6KUKM.js +0 -49
- package/lib/chunk-URD6KUKM.js.map +0 -1
- package/lib/chunk-USIBTSYD.js +0 -276
- package/lib/chunk-USIBTSYD.js.map +0 -1
- package/lib/chunk-V5S4O57M.js +0 -45
- package/lib/chunk-V5S4O57M.js.map +0 -1
- package/lib/chunk-VAZIDWSC.js +0 -87
- package/lib/chunk-VAZIDWSC.js.map +0 -1
- package/lib/chunk-VEPFANF7.js +0 -53
- package/lib/chunk-VEPFANF7.js.map +0 -1
- package/lib/chunk-VII4ZVM7.cjs +0 -42
- package/lib/chunk-VII4ZVM7.cjs.map +0 -1
- package/lib/chunk-VMKHXGVC.js +0 -73
- package/lib/chunk-VMKHXGVC.js.map +0 -1
- package/lib/chunk-VODDUQ3X.js +0 -49
- package/lib/chunk-VODDUQ3X.js.map +0 -1
- package/lib/chunk-VVY3GX6X.cjs +0 -56
- package/lib/chunk-VVY3GX6X.cjs.map +0 -1
- package/lib/chunk-WCZEGCEC.js +0 -37
- package/lib/chunk-WCZEGCEC.js.map +0 -1
- package/lib/chunk-WHLOYOJC.cjs +0 -107
- package/lib/chunk-WHLOYOJC.cjs.map +0 -1
- package/lib/chunk-WOZH2ZEF.js +0 -51
- package/lib/chunk-WOZH2ZEF.js.map +0 -1
- package/lib/chunk-WQICC32S.js +0 -59
- package/lib/chunk-WQICC32S.js.map +0 -1
- package/lib/chunk-WQLPOO4N.js +0 -45
- package/lib/chunk-WQLPOO4N.js.map +0 -1
- package/lib/chunk-WQOB2KER.js +0 -37
- package/lib/chunk-WQOB2KER.js.map +0 -1
- package/lib/chunk-WQSPNJNP.cjs +0 -63
- package/lib/chunk-WQSPNJNP.cjs.map +0 -1
- package/lib/chunk-WUI2XWKI.cjs +0 -47
- package/lib/chunk-WUI2XWKI.cjs.map +0 -1
- package/lib/chunk-WW7C4RZJ.js +0 -59
- package/lib/chunk-WW7C4RZJ.js.map +0 -1
- package/lib/chunk-WYUB5WZL.js +0 -98
- package/lib/chunk-WYUB5WZL.js.map +0 -1
- package/lib/chunk-WZV2V6IT.cjs +0 -39
- package/lib/chunk-WZV2V6IT.cjs.map +0 -1
- package/lib/chunk-X5V7ZUU7.js +0 -49
- package/lib/chunk-X5V7ZUU7.js.map +0 -1
- package/lib/chunk-X6RCAGFS.cjs +0 -67
- package/lib/chunk-X6RCAGFS.cjs.map +0 -1
- package/lib/chunk-XBXDURPZ.js +0 -93
- package/lib/chunk-XBXDURPZ.js.map +0 -1
- package/lib/chunk-XEAHROOE.cjs +0 -95
- package/lib/chunk-XEAHROOE.cjs.map +0 -1
- package/lib/chunk-XEPHQGPG.cjs +0 -57
- package/lib/chunk-XEPHQGPG.cjs.map +0 -1
- package/lib/chunk-XI6YNNGF.js +0 -52
- package/lib/chunk-XI6YNNGF.js.map +0 -1
- package/lib/chunk-XJ5QSB4X.js +0 -45
- package/lib/chunk-XJ5QSB4X.js.map +0 -1
- package/lib/chunk-XJHXJ2X2.js +0 -47
- package/lib/chunk-XJHXJ2X2.js.map +0 -1
- package/lib/chunk-XJP7O6DK.cjs +0 -53
- package/lib/chunk-XJP7O6DK.cjs.map +0 -1
- package/lib/chunk-XJUQEJMI.js +0 -40
- package/lib/chunk-XJUQEJMI.js.map +0 -1
- package/lib/chunk-XMRYT2R6.cjs +0 -29
- package/lib/chunk-XMRYT2R6.cjs.map +0 -1
- package/lib/chunk-XMWIRROB.cjs +0 -43
- package/lib/chunk-XMWIRROB.cjs.map +0 -1
- package/lib/chunk-XP4BWHD3.cjs +0 -47
- package/lib/chunk-XP4BWHD3.cjs.map +0 -1
- package/lib/chunk-XVLKPTNO.cjs +0 -68
- package/lib/chunk-XVLKPTNO.cjs.map +0 -1
- package/lib/chunk-XZB5NHLE.cjs +0 -42
- package/lib/chunk-XZB5NHLE.cjs.map +0 -1
- package/lib/chunk-Y56DKJ4Z.cjs +0 -284
- package/lib/chunk-Y56DKJ4Z.cjs.map +0 -1
- package/lib/chunk-Y5HM4EFJ.js +0 -54
- package/lib/chunk-Y5HM4EFJ.js.map +0 -1
- package/lib/chunk-Y7NYGZPZ.cjs +0 -95
- package/lib/chunk-Y7NYGZPZ.cjs.map +0 -1
- package/lib/chunk-Y7W5KVDM.cjs +0 -105
- package/lib/chunk-Y7W5KVDM.cjs.map +0 -1
- package/lib/chunk-YADXOWEP.cjs +0 -51
- package/lib/chunk-YADXOWEP.cjs.map +0 -1
- package/lib/chunk-YAVBHKRL.js +0 -49
- package/lib/chunk-YAVBHKRL.js.map +0 -1
- package/lib/chunk-YBHKXAWG.js +0 -66
- package/lib/chunk-YBHKXAWG.js.map +0 -1
- package/lib/chunk-YEFSXXFU.cjs +0 -52
- package/lib/chunk-YEFSXXFU.cjs.map +0 -1
- package/lib/chunk-YJ5ZKAK5.cjs +0 -42
- package/lib/chunk-YJ5ZKAK5.cjs.map +0 -1
- package/lib/chunk-YJTJJDRF.cjs +0 -46
- package/lib/chunk-YJTJJDRF.cjs.map +0 -1
- package/lib/chunk-YNVTCQEO.js +0 -54
- package/lib/chunk-YNVTCQEO.js.map +0 -1
- package/lib/chunk-YQNDMEVM.cjs +0 -50
- package/lib/chunk-YQNDMEVM.cjs.map +0 -1
- package/lib/chunk-YW5OSIBL.cjs +0 -30
- package/lib/chunk-YW5OSIBL.cjs.map +0 -1
- package/lib/chunk-YYJATDDO.js +0 -47
- package/lib/chunk-YYJATDDO.js.map +0 -1
- package/lib/chunk-Z22N4HZK.cjs +0 -47
- package/lib/chunk-Z22N4HZK.cjs.map +0 -1
- package/lib/chunk-Z4LKTHPE.js +0 -20
- package/lib/chunk-Z4LKTHPE.js.map +0 -1
- package/lib/chunk-ZADQ5IPG.js +0 -59
- package/lib/chunk-ZADQ5IPG.js.map +0 -1
- package/lib/chunk-ZAFMNQT3.cjs +0 -75
- package/lib/chunk-ZAFMNQT3.cjs.map +0 -1
- package/lib/chunk-ZCPDCC6N.js +0 -40
- package/lib/chunk-ZCPDCC6N.js.map +0 -1
- package/lib/chunk-ZFKOVGKA.js +0 -73
- package/lib/chunk-ZFKOVGKA.js.map +0 -1
- package/lib/chunk-ZGM7TVRO.cjs +0 -51
- package/lib/chunk-ZGM7TVRO.cjs.map +0 -1
- package/lib/chunk-ZJGCKI5T.cjs +0 -47
- package/lib/chunk-ZJGCKI5T.cjs.map +0 -1
- package/lib/chunk-ZK6DZMC3.cjs +0 -47
- package/lib/chunk-ZK6DZMC3.cjs.map +0 -1
- package/lib/chunk-ZZ6FBYJX.cjs +0 -39
- package/lib/chunk-ZZ6FBYJX.cjs.map +0 -1
- package/lib/fetch-B8-kP4X0.d.cts +0 -55
- package/lib/fetch-B8-kP4X0.d.ts +0 -55
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/resources/payment_gateways.ts"],"names":["ApiResource"],"mappings":";;;;;AA8CA,IAAM,eAAA,GAAN,MAAM,gBAAA,SAAwBA,6BAAA,CAA4B;AAAA,EAEzD,OAAgB,IAAA,GAA2B,kBAAA;AAAA,EAE3C,MAAM,eAAA,CAAgB,gBAAA,EAA2C,MAAA,EAAyC,OAAA,EAAiE;AAC1K,IAAA,MAAM,iBAAA,GAAqB,iBAAoC,EAAA,IAAM,gBAAA;AACrE,IAAA,OAAO,IAAA,CAAK,SAAA,CAAU,KAAA,CAAqB,EAAE,IAAA,EAAM,iBAAA,EAAkB,EAAG,CAAA,iBAAA,EAAoB,iBAAiB,CAAA,gBAAA,CAAA,EAAoB,MAAA,EAAQ,OAAO,CAAA;AAAA,EACjJ;AAAA,EAEA,MAAM,YAAA,CAAa,gBAAA,EAA2C,MAAA,EAAsC,OAAA,EAA8D;AACjK,IAAA,MAAM,iBAAA,GAAqB,iBAAoC,EAAA,IAAM,gBAAA;AACrE,IAAA,OAAO,IAAA,CAAK,SAAA,CAAU,KAAA,CAAkB,EAAE,IAAA,EAAM,cAAA,EAAe,EAAG,CAAA,iBAAA,EAAoB,iBAAiB,CAAA,aAAA,CAAA,EAAiB,MAAA,EAAQ,OAAO,CAAA;AAAA,EACxI;AAAA,EAGA,iBAAiB,QAAA,EAA2C;AAC3D,IAAA,OAAO,QAAA,CAAS,IAAA,IAAS,QAAA,CAAS,IAAA,KAAS,gBAAA,CAAgB,IAAA;AAAA,EAC5D;AAAA,EAGA,aAAa,EAAA,EAAmD;AAC/D,IAAA,OAAO,KAAA,CAAM,qBAAwC,EAAE,CAAA;AAAA,EACxD;AAAA,EAEA,sBAAsB,GAAA,EAAoC;AACzD,IAAA,OAAO,KAAA,CAAM,qBAAA,CAAyC,GAAG,GAAG,CAAA;AAAA,EAC7D;AAAA,EAGA,IAAA,GAA2B;AAC1B,IAAA,OAAO,gBAAA,CAAgB,IAAA;AAAA,EACxB;AAED,CAAA;AAGA,IAAM,QAAA,GAAW,IAAI,eAAA,EAAgB;AACrC,IAAO,wBAAA,GAAQ","file":"chunk-74WLCRAL.cjs","sourcesContent":["import type { QueryParamsList } from '../query'\nimport type { ListResponse, Resource, ResourceId, ResourceRel, ResourceSort, /* ResourceFilter */ ResourcesConfig, } from '../resource'\nimport { ApiResource } from '../resource'\nimport type { EventStore } from './event_stores'\nimport type { PaymentMethod } from './payment_methods'\n\n\ntype PaymentGatewayType = 'payment_gateways'\ntype PaymentGatewayRel = ResourceRel & { type: PaymentGatewayType }\n\n\nexport type PaymentGatewaySort = Pick<PaymentGateway, 'id' | 'name' | 'disabled_at'> & ResourceSort\n// export type PaymentGatewayFilter = Pick<PaymentGateway, 'id' | 'name' | 'disabled_at'> & ResourceFilter\n\n\ninterface PaymentGateway extends Resource {\n\t\n\treadonly type: PaymentGatewayType\n\n\t/** \n\t * The payment gateway's internal name.\n\t * @example ```\"US payment gateway\"```\n\t */\n\tname: string\n\t/** \n\t * Indicates if the payment source is forced on the editable order upon receiving a successful event from the gateway.\n\t * @example ```true```\n\t */\n\tforce_payments?: boolean | null\n\t/** \n\t * The payment gateway's API credential keys last digits.\n\t * @example ```{\"api_key\":\"********BW989\"}```\n\t */\n\tcredential_keys?: Record<string, any> | null\n\t/** \n\t * Time at which this resource was disabled.\n\t * @example ```\"2018-01-01T12:00:00.000Z\"```\n\t */\n\tdisabled_at?: string | null\n\n\tpayment_methods?: PaymentMethod[] | null\n\tevent_stores?: EventStore[] | null\n\n}\n\n\nclass PaymentGateways extends ApiResource<PaymentGateway> {\n\n\tstatic readonly TYPE: PaymentGatewayType = 'payment_gateways' as const\n\n\tasync payment_methods(paymentGatewayId: string | PaymentGateway, params?: QueryParamsList<PaymentMethod>, options?: ResourcesConfig): Promise<ListResponse<PaymentMethod>> {\n\t\tconst _paymentGatewayId = (paymentGatewayId as PaymentGateway).id || paymentGatewayId as string\n\t\treturn this.resources.fetch<PaymentMethod>({ type: 'payment_methods' }, `payment_gateways/${_paymentGatewayId}/payment_methods`, params, options) as unknown as ListResponse<PaymentMethod>\n\t}\n\n\tasync event_stores(paymentGatewayId: string | PaymentGateway, params?: QueryParamsList<EventStore>, options?: ResourcesConfig): Promise<ListResponse<EventStore>> {\n\t\tconst _paymentGatewayId = (paymentGatewayId as PaymentGateway).id || paymentGatewayId as string\n\t\treturn this.resources.fetch<EventStore>({ type: 'event_stores' }, `payment_gateways/${_paymentGatewayId}/event_stores`, params, options) as unknown as ListResponse<EventStore>\n\t}\n\n\n\tisPaymentGateway(resource: any): resource is PaymentGateway {\n\t\treturn resource.type && (resource.type === PaymentGateways.TYPE)\n\t}\n\n\n\trelationship(id: string | ResourceId | null): PaymentGatewayRel {\n\t\treturn super.relationshipOneToOne<PaymentGatewayRel>(id)\n\t}\n\n\trelationshipToMany(...ids: string[]): PaymentGatewayRel[] {\n\t\treturn super.relationshipOneToMany<PaymentGatewayRel>(...ids)\n\t}\n\n\n\ttype(): PaymentGatewayType {\n\t\treturn PaymentGateways.TYPE\n\t}\n\n}\n\n\nconst instance = new PaymentGateways()\nexport default instance\n\nexport type { PaymentGateway, PaymentGateways, PaymentGatewayType }\n"]}
|
package/lib/chunk-7E73FXEL.cjs
DELETED
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
var chunkY56DKJ4Z_cjs = require('./chunk-Y56DKJ4Z.cjs');
|
|
4
|
-
|
|
5
|
-
// src/resources/satispay_gateways.ts
|
|
6
|
-
var SatispayGateways = class _SatispayGateways extends chunkY56DKJ4Z_cjs.ApiResource {
|
|
7
|
-
static TYPE = "satispay_gateways";
|
|
8
|
-
async create(resource, params, options) {
|
|
9
|
-
return this.resources.create({ ...resource, type: _SatispayGateways.TYPE }, params, options);
|
|
10
|
-
}
|
|
11
|
-
async update(resource, params, options) {
|
|
12
|
-
return this.resources.update({ ...resource, type: _SatispayGateways.TYPE }, params, options);
|
|
13
|
-
}
|
|
14
|
-
async delete(id, options) {
|
|
15
|
-
await this.resources.delete(typeof id === "string" ? { id, type: _SatispayGateways.TYPE } : id, options);
|
|
16
|
-
}
|
|
17
|
-
async payment_methods(satispayGatewayId, params, options) {
|
|
18
|
-
const _satispayGatewayId = satispayGatewayId.id || satispayGatewayId;
|
|
19
|
-
return this.resources.fetch({ type: "payment_methods" }, `satispay_gateways/${_satispayGatewayId}/payment_methods`, params, options);
|
|
20
|
-
}
|
|
21
|
-
async event_stores(satispayGatewayId, params, options) {
|
|
22
|
-
const _satispayGatewayId = satispayGatewayId.id || satispayGatewayId;
|
|
23
|
-
return this.resources.fetch({ type: "event_stores" }, `satispay_gateways/${_satispayGatewayId}/event_stores`, params, options);
|
|
24
|
-
}
|
|
25
|
-
async satispay_payments(satispayGatewayId, params, options) {
|
|
26
|
-
const _satispayGatewayId = satispayGatewayId.id || satispayGatewayId;
|
|
27
|
-
return this.resources.fetch({ type: "satispay_payments" }, `satispay_gateways/${_satispayGatewayId}/satispay_payments`, params, options);
|
|
28
|
-
}
|
|
29
|
-
async _disable(id, params, options) {
|
|
30
|
-
return this.resources.update({ id: typeof id === "string" ? id : id.id, type: _SatispayGateways.TYPE, _disable: true }, params, options);
|
|
31
|
-
}
|
|
32
|
-
async _enable(id, params, options) {
|
|
33
|
-
return this.resources.update({ id: typeof id === "string" ? id : id.id, type: _SatispayGateways.TYPE, _enable: true }, params, options);
|
|
34
|
-
}
|
|
35
|
-
isSatispayGateway(resource) {
|
|
36
|
-
return resource.type && resource.type === _SatispayGateways.TYPE;
|
|
37
|
-
}
|
|
38
|
-
relationship(id) {
|
|
39
|
-
return super.relationshipOneToOne(id);
|
|
40
|
-
}
|
|
41
|
-
relationshipToMany(...ids) {
|
|
42
|
-
return super.relationshipOneToMany(...ids);
|
|
43
|
-
}
|
|
44
|
-
type() {
|
|
45
|
-
return _SatispayGateways.TYPE;
|
|
46
|
-
}
|
|
47
|
-
};
|
|
48
|
-
var instance = new SatispayGateways();
|
|
49
|
-
var satispay_gateways_default = instance;
|
|
50
|
-
|
|
51
|
-
exports.satispay_gateways_default = satispay_gateways_default;
|
|
52
|
-
//# sourceMappingURL=chunk-7E73FXEL.cjs.map
|
|
53
|
-
//# sourceMappingURL=chunk-7E73FXEL.cjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/resources/satispay_gateways.ts"],"names":["ApiResource"],"mappings":";;;;;AA6HA,IAAM,gBAAA,GAAN,MAAM,iBAAA,SAAyBA,6BAAA,CAA6B;AAAA,EAE3D,OAAgB,IAAA,GAA4B,mBAAA;AAAA,EAE5C,MAAM,MAAA,CAAO,QAAA,EAAiC,MAAA,EAA+C,OAAA,EAAqD;AACjJ,IAAA,OAAO,IAAA,CAAK,SAAA,CAAU,MAAA,CAA+C,EAAE,GAAG,QAAA,EAAU,IAAA,EAAM,iBAAA,CAAiB,IAAA,EAAK,EAAG,MAAA,EAAQ,OAAO,CAAA;AAAA,EACnI;AAAA,EAEA,MAAM,MAAA,CAAO,QAAA,EAAiC,MAAA,EAA+C,OAAA,EAAqD;AACjJ,IAAA,OAAO,IA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rieve } from '../query'\nimport type { ListResponse, Resource, ResourceCreate, ResourceId, ResourceRel, ResourceSort, /* ResourceFilter */ ResourcesConfig, ResourceUpdate, } from '../resource'\nimport { ApiResource } from '../resource'\nimport type { EventStore } from './event_stores'\nimport type { PaymentMethod } from './payment_methods'\nimport type { SatispayPayment, SatispayPaymentType } from './satispay_payments'\n\n\ntype SatispayGatewayType = 'satispay_gateways'\ntype SatispayGatewayRel = ResourceRel & { type: SatispayGatewayType }\ntype SatispayPaymentRel = ResourceRel & { type: SatispayPaymentType }\n\n\nexport type SatispayGatewaySort = Pick<SatispayGateway, 'id' | 'name' | 'disabled_at'> & ResourceSort\n// export type SatispayGatewayFilter = Pick<SatispayGateway, 'id' | 'name' | 'disabled_at'> & ResourceFilter\n\n\ninterface SatispayGateway extends Resource {\n\t\n\treadonly type: SatispayGatewayType\n\n\t/** \n\t * The payment gateway's internal name.\n\t * @example ```\"US payment gateway\"```\n\t */\n\tname: string\n\t/** \n\t * Indicates if the payment source is forced on the editable order upon receiving a successful event from the gateway.\n\t * @example ```true```\n\t */\n\tforce_payments?: boolean | null\n\t/** \n\t * The payment gateway's API credential keys last digits.\n\t * @example ```{\"api_key\":\"********BW989\"}```\n\t */\n\tcredential_keys?: Record<string, any> | null\n\t/** \n\t * Time at which this resource was disabled.\n\t * @example ```\"2018-01-01T12:00:00.000Z\"```\n\t */\n\tdisabled_at?: string | null\n\t/** \n\t * Activation code generated from the Satispay Dashboard.\n\t * @example ```\"623ECX\"```\n\t */\n\ttoken: string\n\t/** \n\t * The Satispay API key auto generated basing on activation code.\n\t * @example ```\"xxxx-yyyy-zzzz\"```\n\t */\n\tkey_id: string\n\t/** \n\t * The gateway webhook URL, generated automatically.\n\t * @example ```\"https://core.commercelayer.co/webhook_callbacks/satispay_gateways/xxxxx\"```\n\t */\n\twebhook_endpoint_url?: string | null\n\n\tpayment_methods?: PaymentMethod[] | null\n\tevent_stores?: EventStore[] | null\n\tsatispay_payments?: SatispayPayment[] | null\n\n}\n\n\ninterface SatispayGatewayCreate extends ResourceCreate {\n\t\n\t/** \n\t * The payment gateway's internal name.\n\t * @example ```\"US payment gateway\"```\n\t */\n\tname: string\n\t/** \n\t * Indicates if the payment source is forced on the editable order upon receiving a successful event from the gateway.\n\t * @example ```true```\n\t */\n\tforce_payments?: boolean | null\n\t/** \n\t * Send this attribute if you want to mark this resource as disabled.\n\t * @example ```true```\n\t */\n\t_disable?: boolean | null\n\t/** \n\t * Send this attribute if you want to mark this resource as enabled.\n\t * @example ```true```\n\t */\n\t_enable?: boolean | null\n\t/** \n\t * Activation code generated from the Satispay Dashboard.\n\t * @example ```\"623ECX\"```\n\t */\n\ttoken: string\n\n\tsatispay_payments?: SatispayPaymentRel[] | null\n\n}\n\n\ninterface SatispayGatewayUpdate extends ResourceUpdate {\n\t\n\t/** \n\t * The payment gateway's internal name.\n\t * @example ```\"US payment gateway\"```\n\t */\n\tname?: string | null\n\t/** \n\t * Indicates if the payment source is forced on the editable order upon receiving a successful event from the gateway.\n\t * @example ```true```\n\t */\n\tforce_payments?: boolean | null\n\t/** \n\t * Send this attribute if you want to mark this resource as disabled.\n\t * @example ```true```\n\t */\n\t_disable?: boolean | null\n\t/** \n\t * Send this attribute if you want to mark this resource as enabled.\n\t * @example ```true```\n\t */\n\t_enable?: boolean | null\n\n\tsatispay_payments?: SatispayPaymentRel[] | null\n\n}\n\n\nclass SatispayGateways extends ApiResource<SatispayGateway> {\n\n\tstatic readonly TYPE: SatispayGatewayType = 'satispay_gateways' as const\n\n\tasync create(resource: SatispayGatewayCreate, params?: QueryParamsRetrieve<SatispayGateway>, options?: ResourcesConfig): Promise<SatispayGateway> {\n\t\treturn this.resources.create<SatispayGatewayCreate, SatispayGateway>({ ...resource, type: SatispayGateways.TYPE }, params, options)\n\t}\n\n\tasync update(resource: SatispayGatewayUpdate, params?: QueryParamsRetrieve<SatispayGateway>, options?: ResourcesConfig): Promise<SatispayGateway> {\n\t\treturn this.resources.update<SatispayGatewayUpdate, SatispayGateway>({ ...resource, type: SatispayGateways.TYPE }, params, options)\n\t}\n\n\tasync delete(id: string | ResourceId, options?: ResourcesConfig): Promise<void> {\n\t\tawait this.resources.delete((typeof id === 'string')? { id, type: SatispayGateways.TYPE } : id, options)\n\t}\n\n\tasync payment_methods(satispayGatewayId: string | SatispayGateway, params?: QueryParamsList<PaymentMethod>, options?: ResourcesConfig): Promise<ListResponse<PaymentMethod>> {\n\t\tconst _satispayGatewayId = (satispayGatewayId as SatispayGateway).id || satispayGatewayId as string\n\t\treturn this.resources.fetch<PaymentMethod>({ type: 'payment_methods' }, `satispay_gateways/${_satispayGatewayId}/payment_methods`, params, options) as unknown as ListResponse<PaymentMethod>\n\t}\n\n\tasync event_stores(satispayGatewayId: string | SatispayGateway, params?: QueryParamsList<EventStore>, options?: ResourcesConfig): Promise<ListResponse<EventStore>> {\n\t\tconst _satispayGatewayId = (satispayGatewayId as SatispayGateway).id || satispayGatewayId as string\n\t\treturn this.resources.fetch<EventStore>({ type: 'event_stores' }, `satispay_gateways/${_satispayGatewayId}/event_stores`, params, options) as unknown as ListResponse<EventStore>\n\t}\n\n\tasync satispay_payments(satispayGatewayId: string | SatispayGateway, params?: QueryParamsList<SatispayPayment>, options?: ResourcesConfig): Promise<ListResponse<SatispayPayment>> {\n\t\tconst _satispayGatewayId = (satispayGatewayId as SatispayGateway).id || satispayGatewayId as string\n\t\treturn this.resources.fetch<SatispayPayment>({ type: 'satispay_payments' }, `satispay_gateways/${_satispayGatewayId}/satispay_payments`, params, options) as unknown as ListResponse<SatispayPayment>\n\t}\n\n\tasync _disable(id: string | SatispayGateway, params?: QueryParamsRetrieve<SatispayGateway>, options?: ResourcesConfig): Promise<SatispayGateway> {\n\t\treturn this.resources.update<SatispayGatewayUpdate, SatispayGateway>({ id: (typeof id === 'string')? id: id.id, type: SatispayGateways.TYPE, _disable: true }, params, options)\n\t}\n\n\tasync _enable(id: string | SatispayGateway, params?: QueryParamsRetrieve<SatispayGateway>, options?: ResourcesConfig): Promise<SatispayGateway> {\n\t\treturn this.resources.update<SatispayGatewayUpdate, SatispayGateway>({ id: (typeof id === 'string')? id: id.id, type: SatispayGateways.TYPE, _enable: true }, params, options)\n\t}\n\n\n\tisSatispayGateway(resource: any): resource is SatispayGateway {\n\t\treturn resource.type && (resource.type === SatispayGateways.TYPE)\n\t}\n\n\n\trelationship(id: string | ResourceId | null): SatispayGatewayRel {\n\t\treturn super.relationshipOneToOne<SatispayGatewayRel>(id)\n\t}\n\n\trelationshipToMany(...ids: string[]): SatispayGatewayRel[] {\n\t\treturn super.relationshipOneToMany<SatispayGatewayRel>(...ids)\n\t}\n\n\n\ttype(): SatispayGatewayType {\n\t\treturn SatispayGateways.TYPE\n\t}\n\n}\n\n\nconst instance = new SatispayGateways()\nexport default instance\n\nexport type { SatispayGateway, SatispayGatewayCreate, SatispayGateways, SatispayGatewayType, SatispayGatewayUpdate }\n"]}
|
package/lib/chunk-7GSZFUJV.cjs
DELETED
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
var chunkY56DKJ4Z_cjs = require('./chunk-Y56DKJ4Z.cjs');
|
|
4
|
-
|
|
5
|
-
// src/resources/external_gateways.ts
|
|
6
|
-
var ExternalGateways = class _ExternalGateways extends chunkY56DKJ4Z_cjs.ApiResource {
|
|
7
|
-
static TYPE = "external_gateways";
|
|
8
|
-
async create(resource, params, options) {
|
|
9
|
-
return this.resources.create({ ...resource, type: _ExternalGateways.TYPE }, params, options);
|
|
10
|
-
}
|
|
11
|
-
async update(resource, params, options) {
|
|
12
|
-
return this.resources.update({ ...resource, type: _ExternalGateways.TYPE }, params, options);
|
|
13
|
-
}
|
|
14
|
-
async delete(id, options) {
|
|
15
|
-
await this.resources.delete(typeof id === "string" ? { id, type: _ExternalGateways.TYPE } : id, options);
|
|
16
|
-
}
|
|
17
|
-
async payment_methods(externalGatewayId, params, options) {
|
|
18
|
-
const _externalGatewayId = externalGatewayId.id || externalGatewayId;
|
|
19
|
-
return this.resources.fetch({ type: "payment_methods" }, `external_gateways/${_externalGatewayId}/payment_methods`, params, options);
|
|
20
|
-
}
|
|
21
|
-
async event_stores(externalGatewayId, params, options) {
|
|
22
|
-
const _externalGatewayId = externalGatewayId.id || externalGatewayId;
|
|
23
|
-
return this.resources.fetch({ type: "event_stores" }, `external_gateways/${_externalGatewayId}/event_stores`, params, options);
|
|
24
|
-
}
|
|
25
|
-
async external_payments(externalGatewayId, params, options) {
|
|
26
|
-
const _externalGatewayId = externalGatewayId.id || externalGatewayId;
|
|
27
|
-
return this.resources.fetch({ type: "external_payments" }, `external_gateways/${_externalGatewayId}/external_payments`, params, options);
|
|
28
|
-
}
|
|
29
|
-
async _disable(id, params, options) {
|
|
30
|
-
return this.resources.update({ id: typeof id === "string" ? id : id.id, type: _ExternalGateways.TYPE, _disable: true }, params, options);
|
|
31
|
-
}
|
|
32
|
-
async _enable(id, params, options) {
|
|
33
|
-
return this.resources.update({ id: typeof id === "string" ? id : id.id, type: _ExternalGateways.TYPE, _enable: true }, params, options);
|
|
34
|
-
}
|
|
35
|
-
async _reset_circuit(id, params, options) {
|
|
36
|
-
return this.resources.update({ id: typeof id === "string" ? id : id.id, type: _ExternalGateways.TYPE, _reset_circuit: true }, params, options);
|
|
37
|
-
}
|
|
38
|
-
async _regenerate_shared_secret(id, params, options) {
|
|
39
|
-
return this.resources.update({ id: typeof id === "string" ? id : id.id, type: _ExternalGateways.TYPE, _regenerate_shared_secret: true }, params, options);
|
|
40
|
-
}
|
|
41
|
-
isExternalGateway(resource) {
|
|
42
|
-
return resource.type && resource.type === _ExternalGateways.TYPE;
|
|
43
|
-
}
|
|
44
|
-
relationship(id) {
|
|
45
|
-
return super.relationshipOneToOne(id);
|
|
46
|
-
}
|
|
47
|
-
relationshipToMany(...ids) {
|
|
48
|
-
return super.relationshipOneToMany(...ids);
|
|
49
|
-
}
|
|
50
|
-
type() {
|
|
51
|
-
return _ExternalGateways.TYPE;
|
|
52
|
-
}
|
|
53
|
-
};
|
|
54
|
-
var instance = new ExternalGateways();
|
|
55
|
-
var external_gateways_default = instance;
|
|
56
|
-
|
|
57
|
-
exports.external_gateways_default = external_gateways_default;
|
|
58
|
-
//# sourceMappingURL=chunk-7GSZFUJV.cjs.map
|
|
59
|
-
//# sourceMappingURL=chunk-7GSZFUJV.cjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/resources/external_gateways.ts"],"names":["ApiResource"],"mappings":";;;;;AAuNA,IAAM,gBAAA,GAAN,MAAM,iBAAA,SAAyBA,6BAAA,CAA6B;AAAA,EAE3D,OAAgB,IAAA,GAA4B,mBAAA;AAAA,EAE5C,MAAM,MAAA,CAAO,QAAA,EAAiC,MAAA,EAA+C,OAAA,EAAqD;AACjJ,IAAA,OAAO,IAAA,CAAK,SAAA,CAAU,MAAA,CAA+C,EAAE,GAAG,QAAA,EAAU,IAAA,EAAM,iBAAA,CAAiB,IAAA,EAAK,EAAG,MAAA,EAAQ,OAAO,CAAA;AAAA,EACnI;AAAA,EAEA,MAAM,MAAA,CAAO,QAAA,EAAiC,MAAA,EAA+C,OAAA,EAAqD;AACjJ,IAAA,OAAO,IAAA,CAAK,SAAA,CAAU,MAAA,CAA+C,EAAE,GAAG,QAAA,EAAU,IAAA,EAAM,iBAAA,CAAiB,IAAA,EAAK,EAAG,MAAA,EAAQ,OAAO,CAAA;AAAA,EACnI;AAAA,EAEA,MAAM,MAAA,CAAO,EAAA,EAAyB,OAAA,EAA0C;AAC/E,IAAA,MAAM,IAAA,CAAK,SAAA,CAAU,MAAA,CAAQ,OAAO,EAAA,KAAO,QAAA,GAAW,EAAE,EAAA,EAAI,IAAA,EAAM,iBAAA,CAAiB,IAAA,EAAK,GAAI,IAAI,OAAO,CAAA;AAAA,EACxG;AAAA,EAEA,MAAM,eAAA,CAAgB,iBAAA,EAA6C,MAAA,EAAyC,OAAA,EAAiE;AAC5K,IAAA,MAAM,kBAAA,GAAsB,kBAAsC,EAAA,IAAM,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IAAO,yBAAA,GAAQ","file":"chunk-7GSZFUJV.cjs","sourcesContent":["import type { QueryParamsList, QueryParamsRetrieve } from '../query'\nimport type { ListResponse, Resource, ResourceCreate, ResourceId, ResourceRel, ResourceSort, /* ResourceFilter */ ResourcesConfig, ResourceUpdate, } from '../resource'\nimport { ApiResource } from '../resource'\nimport type { EventStore } from './event_stores'\nimport type { ExternalPayment } from './external_payments'\nimport type { PaymentMethod } from './payment_methods'\n\n\ntype ExternalGatewayType = 'external_gateways'\ntype ExternalGatewayRel = ResourceRel & { type: ExternalGatewayType }\n\n\nexport type ExternalGatewaySort = Pick<ExternalGateway, 'id' | 'name' | 'disabled_at' | 'circuit_state' | 'circuit_failure_count'> & ResourceSort\n// export type ExternalGatewayFilter = Pick<ExternalGateway, 'id' | 'name' | 'disabled_at' | 'circuit_state' | 'circuit_failure_count'> & ResourceFilter\n\n\ninterface ExternalGateway extends Resource {\n\t\n\treadonly type: ExternalGatewayType\n\n\t/** \n\t * The payment gateway's internal name.\n\t * @example ```\"US payment gateway\"```\n\t */\n\tname: string\n\t/** \n\t * Indicates if the payment source is forced on the editable order upon receiving a successful event from the gateway.\n\t * @example ```true```\n\t */\n\tforce_payments?: boolean | null\n\t/** \n\t * The payment gateway's API credential keys last digits.\n\t * @example ```{\"api_key\":\"********BW989\"}```\n\t */\n\tcredential_keys?: Record<string, any> | null\n\t/** \n\t * Time at which this resource was disabled.\n\t * @example ```\"2018-01-01T12:00:00.000Z\"```\n\t */\n\tdisabled_at?: string | null\n\t/** \n\t * The circuit breaker state, by default it is 'closed'. It can become 'open' once the number of consecutive failures overlaps the specified threshold, in such case no further calls to the failing callback are made.\n\t * @example ```\"closed\"```\n\t */\n\tcircuit_state?: string | null\n\t/** \n\t * The number of consecutive failures recorded by the circuit breaker associated to this resource, will be reset on first successful call to callback.\n\t * @example ```5```\n\t */\n\tcircuit_failure_count?: number | null\n\t/** \n\t * The shared secret used to sign the external request payload.\n\t * @example ```\"1c0994cc4e996e8c6ee56a2198f66f3c\"```\n\t */\n\tshared_secret: string\n\t/** \n\t * List of related resources that will be included in the request to the external callback. Please do consult the documentation to check on which resource the includes are related (i.e. the order) and the defaults in case no list is provided.\n\t * @example ```[\"order.line_item_options\"]```\n\t */\n\texternal_includes?: string[] | null\n\t/** \n\t * The endpoint used by the external gateway to authorize payments.\n\t * @example ```\"https://external_gateway.com/authorize\"```\n\t */\n\tauthorize_url?: string | null\n\t/** \n\t * The endpoint used by the external gateway to capture payments.\n\t * @example ```\"https://external_gateway.com/capture\"```\n\t */\n\tcapture_url?: string | null\n\t/** \n\t * The endpoint used by the external gateway to void payments.\n\t * @example ```\"https://external_gateway.com/void\"```\n\t */\n\tvoid_url?: string | null\n\t/** \n\t * The endpoint used by the external gateway to refund payments.\n\t * @example ```\"https://external_gateway.com/refund\"```\n\t */\n\trefund_url?: string | null\n\t/** \n\t * The endpoint used by the external gateway to create a customer payment token.\n\t * @example ```\"https://external_gateway.com/token\"```\n\t */\n\ttoken_url?: string | null\n\n\tpayment_methods?: PaymentMethod[] | null\n\tevent_stores?: EventStore[] | null\n\texternal_payments?: ExternalPayment[] | null\n\n}\n\n\ninterface ExternalGatewayCreate extends ResourceCreate {\n\t\n\t/** \n\t * The payment gateway's internal name.\n\t * @example ```\"US payment gateway\"```\n\t */\n\tname: string\n\t/** \n\t * Indicates if the payment source is forced on the editable order upon receiving a successful event from the gateway.\n\t * @example ```true```\n\t */\n\tforce_payments?: boolean | null\n\t/** \n\t * Send this attribute if you want to mark this resource as disabled.\n\t * @example ```true```\n\t */\n\t_disable?: boolean | null\n\t/** \n\t * Send this attribute if you want to mark this resource as enabled.\n\t * @example ```true```\n\t */\n\t_enable?: boolean | null\n\t/** \n\t * List of related resources that will be included in the request to the external callback. Please do consult the documentation to check on which resource the includes are related (i.e. the order) and the defaults in case no list is provided.\n\t * @example ```[\"order.line_item_options\"]```\n\t */\n\texternal_includes?: string[] | null\n\t/** \n\t * The endpoint used by the external gateway to authorize payments.\n\t * @example ```\"https://external_gateway.com/authorize\"```\n\t */\n\tauthorize_url?: string | null\n\t/** \n\t * The endpoint used by the external gateway to capture payments.\n\t * @example ```\"https://external_gateway.com/capture\"```\n\t */\n\tcapture_url?: string | null\n\t/** \n\t * The endpoint used by the external gateway to void payments.\n\t * @example ```\"https://external_gateway.com/void\"```\n\t */\n\tvoid_url?: string | null\n\t/** \n\t * The endpoint used by the external gateway to refund payments.\n\t * @example ```\"https://external_gateway.com/refund\"```\n\t */\n\trefund_url?: string | null\n\t/** \n\t * The endpoint used by the external gateway to create a customer payment token.\n\t * @example ```\"https://external_gateway.com/token\"```\n\t */\n\ttoken_url?: string | null\n\t\n}\n\n\ninterface ExternalGatewayUpdate extends ResourceUpdate {\n\t\n\t/** \n\t * The payment gateway's internal name.\n\t * @example ```\"US payment gateway\"```\n\t */\n\tname?: string | null\n\t/** \n\t * Indicates if the payment source is forced on the editable order upon receiving a successful event from the gateway.\n\t * @example ```true```\n\t */\n\tforce_payments?: boolean | null\n\t/** \n\t * Send this attribute if you want to mark this resource as disabled.\n\t * @example ```true```\n\t */\n\t_disable?: boolean | null\n\t/** \n\t * Send this attribute if you want to mark this resource as enabled.\n\t * @example ```true```\n\t */\n\t_enable?: boolean | null\n\t/** \n\t * Send this attribute if you want to reset the circuit breaker associated to this resource to 'closed' state and zero failures count. Cannot be passed by sales channels.\n\t * @example ```true```\n\t */\n\t_reset_circuit?: boolean | null\n\t/** \n\t * Send this attribute if you want to regenerate the shared secret.\n\t * @example ```true```\n\t */\n\t_regenerate_shared_secret?: boolean | null\n\t/** \n\t * List of related resources that will be included in the request to the external callback. Please do consult the documentation to check on which resource the includes are related (i.e. the order) and the defaults in case no list is provided.\n\t * @example ```[\"order.line_item_options\"]```\n\t */\n\texternal_includes?: string[] | null\n\t/** \n\t * The endpoint used by the external gateway to authorize payments.\n\t * @example ```\"https://external_gateway.com/authorize\"```\n\t */\n\tauthorize_url?: string | null\n\t/** \n\t * The endpoint used by the external gateway to capture payments.\n\t * @example ```\"https://external_gateway.com/capture\"```\n\t */\n\tcapture_url?: string | null\n\t/** \n\t * The endpoint used by the external gateway to void payments.\n\t * @example ```\"https://external_gateway.com/void\"```\n\t */\n\tvoid_url?: string | null\n\t/** \n\t * The endpoint used by the external gateway to refund payments.\n\t * @example ```\"https://external_gateway.com/refund\"```\n\t */\n\trefund_url?: string | null\n\t/** \n\t * The endpoint used by the external gateway to create a customer payment token.\n\t * @example ```\"https://external_gateway.com/token\"```\n\t */\n\ttoken_url?: string | null\n\t\n}\n\n\nclass ExternalGateways extends ApiResource<ExternalGateway> {\n\n\tstatic readonly TYPE: ExternalGatewayType = 'external_gateways' as const\n\n\tasync create(resource: ExternalGatewayCreate, params?: QueryParamsRetrieve<ExternalGateway>, options?: ResourcesConfig): Promise<ExternalGateway> {\n\t\treturn this.resources.create<ExternalGatewayCreate, ExternalGateway>({ ...resource, type: ExternalGateways.TYPE }, params, options)\n\t}\n\n\tasync update(resource: ExternalGatewayUpdate, params?: QueryParamsRetrieve<ExternalGateway>, options?: ResourcesConfig): Promise<ExternalGateway> {\n\t\treturn this.resources.update<ExternalGatewayUpdate, ExternalGateway>({ ...resource, type: ExternalGateways.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: ExternalGateways.TYPE } : id, options)\n\t}\n\n\tasync payment_methods(externalGatewayId: string | ExternalGateway, params?: QueryParamsList<PaymentMethod>, options?: ResourcesConfig): Promise<ListResponse<PaymentMethod>> {\n\t\tconst _externalGatewayId = (externalGatewayId as ExternalGateway).id || externalGatewayId as string\n\t\treturn this.resources.fetch<PaymentMethod>({ type: 'payment_methods' }, `external_gateways/${_externalGatewayId}/payment_methods`, params, options) as unknown as ListResponse<PaymentMethod>\n\t}\n\n\tasync event_stores(externalGatewayId: string | ExternalGateway, params?: QueryParamsList<EventStore>, options?: ResourcesConfig): Promise<ListResponse<EventStore>> {\n\t\tconst _externalGatewayId = (externalGatewayId as ExternalGateway).id || externalGatewayId as string\n\t\treturn this.resources.fetch<EventStore>({ type: 'event_stores' }, `external_gateways/${_externalGatewayId}/event_stores`, params, options) as unknown as ListResponse<EventStore>\n\t}\n\n\tasync external_payments(externalGatewayId: string | ExternalGateway, params?: QueryParamsList<ExternalPayment>, options?: ResourcesConfig): Promise<ListResponse<ExternalPayment>> {\n\t\tconst _externalGatewayId = (externalGatewayId as ExternalGateway).id || externalGatewayId as string\n\t\treturn this.resources.fetch<ExternalPayment>({ type: 'external_payments' }, `external_gateways/${_externalGatewayId}/external_payments`, params, options) as unknown as ListResponse<ExternalPayment>\n\t}\n\n\tasync _disable(id: string | ExternalGateway, params?: QueryParamsRetrieve<ExternalGateway>, options?: ResourcesConfig): Promise<ExternalGateway> {\n\t\treturn this.resources.update<ExternalGatewayUpdate, ExternalGateway>({ id: (typeof id === 'string')? id: id.id, type: ExternalGateways.TYPE, _disable: true }, params, options)\n\t}\n\n\tasync _enable(id: string | ExternalGateway, params?: QueryParamsRetrieve<ExternalGateway>, options?: ResourcesConfig): Promise<ExternalGateway> {\n\t\treturn this.resources.update<ExternalGatewayUpdate, ExternalGateway>({ id: (typeof id === 'string')? id: id.id, type: ExternalGateways.TYPE, _enable: true }, params, options)\n\t}\n\n\tasync _reset_circuit(id: string | ExternalGateway, params?: QueryParamsRetrieve<ExternalGateway>, options?: ResourcesConfig): Promise<ExternalGateway> {\n\t\treturn this.resources.update<ExternalGatewayUpdate, ExternalGateway>({ id: (typeof id === 'string')? id: id.id, type: ExternalGateways.TYPE, _reset_circuit: true }, params, options)\n\t}\n\n\tasync _regenerate_shared_secret(id: string | ExternalGateway, params?: QueryParamsRetrieve<ExternalGateway>, options?: ResourcesConfig): Promise<ExternalGateway> {\n\t\treturn this.resources.update<ExternalGatewayUpdate, ExternalGateway>({ id: (typeof id === 'string')? id: id.id, type: ExternalGateways.TYPE, _regenerate_shared_secret: true }, params, options)\n\t}\n\n\n\tisExternalGateway(resource: any): resource is ExternalGateway {\n\t\treturn resource.type && (resource.type === ExternalGateways.TYPE)\n\t}\n\n\n\trelationship(id: string | ResourceId | null): ExternalGatewayRel {\n\t\treturn super.relationshipOneToOne<ExternalGatewayRel>(id)\n\t}\n\n\trelationshipToMany(...ids: string[]): ExternalGatewayRel[] {\n\t\treturn super.relationshipOneToMany<ExternalGatewayRel>(...ids)\n\t}\n\n\n\ttype(): ExternalGatewayType {\n\t\treturn ExternalGateways.TYPE\n\t}\n\n}\n\n\nconst instance = new ExternalGateways()\nexport default instance\n\nexport type { ExternalGateway, ExternalGatewayCreate, ExternalGateways, ExternalGatewayType, ExternalGatewayUpdate }\n"]}
|
package/lib/chunk-7OUZNR45.js
DELETED
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
import { ApiResource } from './chunk-USIBTSYD.js';
|
|
2
|
-
|
|
3
|
-
// src/resources/checkout_com_payments.ts
|
|
4
|
-
var CheckoutComPayments = class _CheckoutComPayments extends ApiResource {
|
|
5
|
-
static TYPE = "checkout_com_payments";
|
|
6
|
-
async create(resource, params, options) {
|
|
7
|
-
return this.resources.create({ ...resource, type: _CheckoutComPayments.TYPE }, params, options);
|
|
8
|
-
}
|
|
9
|
-
async update(resource, params, options) {
|
|
10
|
-
return this.resources.update({ ...resource, type: _CheckoutComPayments.TYPE }, params, options);
|
|
11
|
-
}
|
|
12
|
-
async delete(id, options) {
|
|
13
|
-
await this.resources.delete(typeof id === "string" ? { id, type: _CheckoutComPayments.TYPE } : id, options);
|
|
14
|
-
}
|
|
15
|
-
async order(checkoutComPaymentId, params, options) {
|
|
16
|
-
const _checkoutComPaymentId = checkoutComPaymentId.id || checkoutComPaymentId;
|
|
17
|
-
return this.resources.fetch({ type: "orders" }, `checkout_com_payments/${_checkoutComPaymentId}/order`, params, options);
|
|
18
|
-
}
|
|
19
|
-
async payment_gateway(checkoutComPaymentId, params, options) {
|
|
20
|
-
const _checkoutComPaymentId = checkoutComPaymentId.id || checkoutComPaymentId;
|
|
21
|
-
return this.resources.fetch({ type: "payment_gateways" }, `checkout_com_payments/${_checkoutComPaymentId}/payment_gateway`, params, options);
|
|
22
|
-
}
|
|
23
|
-
async event_stores(checkoutComPaymentId, params, options) {
|
|
24
|
-
const _checkoutComPaymentId = checkoutComPaymentId.id || checkoutComPaymentId;
|
|
25
|
-
return this.resources.fetch({ type: "event_stores" }, `checkout_com_payments/${_checkoutComPaymentId}/event_stores`, params, options);
|
|
26
|
-
}
|
|
27
|
-
async _authorize(id, params, options) {
|
|
28
|
-
return this.resources.update({ id: typeof id === "string" ? id : id.id, type: _CheckoutComPayments.TYPE, _authorize: true }, params, options);
|
|
29
|
-
}
|
|
30
|
-
async _details(id, params, options) {
|
|
31
|
-
return this.resources.update({ id: typeof id === "string" ? id : id.id, type: _CheckoutComPayments.TYPE, _details: true }, params, options);
|
|
32
|
-
}
|
|
33
|
-
async _refresh(id, params, options) {
|
|
34
|
-
return this.resources.update({ id: typeof id === "string" ? id : id.id, type: _CheckoutComPayments.TYPE, _refresh: true }, params, options);
|
|
35
|
-
}
|
|
36
|
-
isCheckoutComPayment(resource) {
|
|
37
|
-
return resource.type && resource.type === _CheckoutComPayments.TYPE;
|
|
38
|
-
}
|
|
39
|
-
relationship(id) {
|
|
40
|
-
return super.relationshipOneToOne(id);
|
|
41
|
-
}
|
|
42
|
-
relationshipToMany(...ids) {
|
|
43
|
-
return super.relationshipOneToMany(...ids);
|
|
44
|
-
}
|
|
45
|
-
type() {
|
|
46
|
-
return _CheckoutComPayments.TYPE;
|
|
47
|
-
}
|
|
48
|
-
};
|
|
49
|
-
var instance = new CheckoutComPayments();
|
|
50
|
-
var checkout_com_payments_default = instance;
|
|
51
|
-
|
|
52
|
-
export { checkout_com_payments_default };
|
|
53
|
-
//# sourceMappingURL=chunk-7OUZNR45.js.map
|
|
54
|
-
//# sourceMappingURL=chunk-7OUZNR45.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/resources/checkout_com_payments.ts"],"names":[],"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,EAAA,EAAK,OAAO,OAAO,QAAA,GAAW,EAAA,GAAI,EAAA,CAAG,EAAA,EAAI,MAAM,oBAAA,CAAoB,IAAA,EAAM,UAAU,IAAA,EAAK,EAAG,QAAQ,OAAO,CAAA;AAAA,EACxL;AAAA,EAGA,qBAAqB,QAAA,EAA+C;AACnE,IAAA,OAAO,QAAA,CAAS,IAAA,IAAS,QAAA,CAAS,IAAA,KAAS,oBAAA,CAAoB,IAAA;AAAA,EAChE;AAAA,EAGA,aAAa,EAAA,EAAuD;AACnE,IAAA,OAAO,KAAA,CAAM,qBAA4C,EAAE,CAAA;AAAA,EAC5D;AAAA,EAEA,sBAAsB,GAAA,EAAwC;AAC7D,IAAA,OAAO,KAAA,CAAM,qBAAA,CAA6C,GAAG,GAAG,CAAA;AAAA,EACjE;AAAA,EAGA,IAAA,GAA+B;AAC9B,IAAA,OAAO,oBAAA,CAAoB,IAAA;AAAA,EAC5B;AAED,CAAA;AAGA,IAAM,QAAA,GAAW,IAAI,mBAAA,EAAoB;AACzC,IAAO,6BAAA,GAAQ","file":"chunk-7OUZNR45.js","sourcesContent":["import type { QueryParamsList, QueryParamsRetrieve } from '../query'\nimport type { ListResponse, Resource, ResourceCreate, ResourceId, ResourceRel, ResourceSort, /* ResourceFilter */ ResourcesConfig, ResourceUpdate, } from '../resource'\nimport { ApiResource } from '../resource'\nimport type { EventStore } from './event_stores'\nimport type { Order, OrderType } from './orders'\nimport type { PaymentGateway } from './payment_gateways'\n\n\ntype CheckoutComPaymentType = 'checkout_com_payments'\ntype CheckoutComPaymentRel = ResourceRel & { type: CheckoutComPaymentType }\ntype OrderRel = ResourceRel & { type: OrderType }\n\n\nexport type CheckoutComPaymentSort = Pick<CheckoutComPayment, 'id'> & ResourceSort\n// export type CheckoutComPaymentFilter = Pick<CheckoutComPayment, 'id'> & ResourceFilter\n\n\ninterface CheckoutComPayment extends Resource {\n\t\n\treadonly type: CheckoutComPaymentType\n\n\t/** \n\t * The Checkout.com publishable API key.\n\t * @example ```\"pk_test_xxxx-yyyy-zzzz\"```\n\t */\n\tpublic_key?: string | null\n\t/** \n\t * The Checkout.com payment or digital wallet token.\n\t * @example ```\"tok_4gzeau5o2uqubbk6fufs3m7p54\"```\n\t */\n\ttoken: string\n\t/** \n\t * The session object which initializes payment.\n\t * @example ```{\"id\":\"ps_xxxx_yyyy_zzzz\",\"payment_session_secret\":\"pss_xxxx_yyy_zzzz\",\"payment_session_token\":\"xxxxx_yyyyy_zzzzz\",\"_links\":{\"self\":{\"href\":\"https://api.sandbox.checkout.com/payment-sessions/ps_xxxx_yyyy_zzzz\"}}}```\n\t */\n\tpayment_session: Record<string, any>\n\t/** \n\t * The URL to redirect your customer upon 3DS succeeded authentication.\n\t * @example ```\"http://commercelayer.dev/checkout_com/success\"```\n\t */\n\tsuccess_url: string\n\t/** \n\t * The URL to redirect your customer upon 3DS failed authentication.\n\t * @example ```\"http://commercelayer.dev/checkout_com/failure\"```\n\t */\n\tfailure_url: string\n\t/** \n\t * The payment source identifier that can be used for subsequent payments.\n\t * @example ```\"src_nwd3m4in3hkuddfpjsaevunhdy\"```\n\t */\n\tsource_id?: string | null\n\t/** \n\t * The customer's unique identifier. This can be passed as a source when making a payment.\n\t * @example ```\"cus_udst2tfldj6upmye2reztkmm4i\"```\n\t */\n\tcustomer_token?: string | null\n\t/** \n\t * The URI that the customer should be redirected to in order to complete the payment.\n\t * @example ```\"https://api.checkout.com/3ds/pay_mbabizu24mvu3mela5njyhpit4\"```\n\t */\n\tredirect_uri?: string | null\n\t/** \n\t * The Checkout.com payment response, used to fetch internal data.\n\t * @example ```{\"foo\":\"bar\"}```\n\t */\n\tpayment_response?: Record<string, any> | null\n\t/** \n\t * Indicates if the order current amount differs form the one of the associated authorization.\n\t */\n\tmismatched_amounts?: boolean | null\n\t/** \n\t * Information about the payment instrument used in the transaction.\n\t * @example ```{\"issuer\":\"cl bank\",\"card_type\":\"visa\"}```\n\t */\n\tpayment_instrument?: Record<string, any> | null\n\n\torder?: Order | null\n\tpayment_gateway?: PaymentGateway | null\n\tevent_stores?: EventStore[] | null\n\n}\n\n\ninterface CheckoutComPaymentCreate extends ResourceCreate {\n\t\n\t/** \n\t * The Checkout.com payment or digital wallet token.\n\t * @example ```\"tok_4gzeau5o2uqubbk6fufs3m7p54\"```\n\t */\n\ttoken: string\n\t/** \n\t * The URL to redirect your customer upon 3DS succeeded authentication.\n\t * @example ```\"http://commercelayer.dev/checkout_com/success\"```\n\t */\n\tsuccess_url: string\n\t/** \n\t * The URL to redirect your customer upon 3DS failed authentication.\n\t * @example ```\"http://commercelayer.dev/checkout_com/failure\"```\n\t */\n\tfailure_url: string\n\n\torder: OrderRel\n\n}\n\n\ninterface CheckoutComPaymentUpdate extends ResourceUpdate {\n\t\n\t/** \n\t * The Checkout.com payment or digital wallet token.\n\t * @example ```\"tok_4gzeau5o2uqubbk6fufs3m7p54\"```\n\t */\n\ttoken?: string | null\n\t/** \n\t * Send this attribute if you want to authorize the payment.\n\t * @example ```true```\n\t */\n\t_authorize?: boolean | null\n\t/** \n\t * Send this attribute if you want to send additional details the payment request (i.e. upon 3DS check).\n\t * @example ```true```\n\t */\n\t_details?: boolean | null\n\t/** \n\t * Send this attribute if you want to refresh all the pending transactions, can be used as webhooks fallback logic.\n\t * @example ```true```\n\t */\n\t_refresh?: boolean | null\n\n\torder?: OrderRel | null\n\n}\n\n\nclass CheckoutComPayments extends ApiResource<CheckoutComPayment> {\n\n\tstatic readonly TYPE: CheckoutComPaymentType = 'checkout_com_payments' as const\n\n\tasync create(resource: CheckoutComPaymentCreate, params?: QueryParamsRetrieve<CheckoutComPayment>, options?: ResourcesConfig): Promise<CheckoutComPayment> {\n\t\treturn this.resources.create<CheckoutComPaymentCreate, CheckoutComPayment>({ ...resource, type: CheckoutComPayments.TYPE }, params, options)\n\t}\n\n\tasync update(resource: CheckoutComPaymentUpdate, params?: QueryParamsRetrieve<CheckoutComPayment>, options?: ResourcesConfig): Promise<CheckoutComPayment> {\n\t\treturn this.resources.update<CheckoutComPaymentUpdate, CheckoutComPayment>({ ...resource, type: CheckoutComPayments.TYPE }, params, options)\n\t}\n\n\tasync delete(id: string | ResourceId, options?: ResourcesConfig): Promise<void> {\n\t\tawait this.resources.delete((typeof id === 'string')? { id, type: CheckoutComPayments.TYPE } : id, options)\n\t}\n\n\tasync order(checkoutComPaymentId: string | CheckoutComPayment, params?: QueryParamsRetrieve<Order>, options?: ResourcesConfig): Promise<Order> {\n\t\tconst _checkoutComPaymentId = (checkoutComPaymentId as CheckoutComPayment).id || checkoutComPaymentId as string\n\t\treturn this.resources.fetch<Order>({ type: 'orders' }, `checkout_com_payments/${_checkoutComPaymentId}/order`, params, options) as unknown as Order\n\t}\n\n\tasync payment_gateway(checkoutComPaymentId: string | CheckoutComPayment, params?: QueryParamsRetrieve<PaymentGateway>, options?: ResourcesConfig): Promise<PaymentGateway> {\n\t\tconst _checkoutComPaymentId = (checkoutComPaymentId as CheckoutComPayment).id || checkoutComPaymentId as string\n\t\treturn this.resources.fetch<PaymentGateway>({ type: 'payment_gateways' }, `checkout_com_payments/${_checkoutComPaymentId}/payment_gateway`, params, options) as unknown as PaymentGateway\n\t}\n\n\tasync event_stores(checkoutComPaymentId: string | CheckoutComPayment, params?: QueryParamsList<EventStore>, options?: ResourcesConfig): Promise<ListResponse<EventStore>> {\n\t\tconst _checkoutComPaymentId = (checkoutComPaymentId as CheckoutComPayment).id || checkoutComPaymentId as string\n\t\treturn this.resources.fetch<EventStore>({ type: 'event_stores' }, `checkout_com_payments/${_checkoutComPaymentId}/event_stores`, params, options) as unknown as ListResponse<EventStore>\n\t}\n\n\tasync _authorize(id: string | CheckoutComPayment, params?: QueryParamsRetrieve<CheckoutComPayment>, options?: ResourcesConfig): Promise<CheckoutComPayment> {\n\t\treturn this.resources.update<CheckoutComPaymentUpdate, CheckoutComPayment>({ id: (typeof id === 'string')? id: id.id, type: CheckoutComPayments.TYPE, _authorize: true }, params, options)\n\t}\n\n\tasync _details(id: string | CheckoutComPayment, params?: QueryParamsRetrieve<CheckoutComPayment>, options?: ResourcesConfig): Promise<CheckoutComPayment> {\n\t\treturn this.resources.update<CheckoutComPaymentUpdate, CheckoutComPayment>({ id: (typeof id === 'string')? id: id.id, type: CheckoutComPayments.TYPE, _details: true }, params, options)\n\t}\n\n\tasync _refresh(id: string | CheckoutComPayment, params?: QueryParamsRetrieve<CheckoutComPayment>, options?: ResourcesConfig): Promise<CheckoutComPayment> {\n\t\treturn this.resources.update<CheckoutComPaymentUpdate, CheckoutComPayment>({ id: (typeof id === 'string')? id: id.id, type: CheckoutComPayments.TYPE, _refresh: true }, params, options)\n\t}\n\n\n\tisCheckoutComPayment(resource: any): resource is CheckoutComPayment {\n\t\treturn resource.type && (resource.type === CheckoutComPayments.TYPE)\n\t}\n\n\n\trelationship(id: string | ResourceId | null): CheckoutComPaymentRel {\n\t\treturn super.relationshipOneToOne<CheckoutComPaymentRel>(id)\n\t}\n\n\trelationshipToMany(...ids: string[]): CheckoutComPaymentRel[] {\n\t\treturn super.relationshipOneToMany<CheckoutComPaymentRel>(...ids)\n\t}\n\n\n\ttype(): CheckoutComPaymentType {\n\t\treturn CheckoutComPayments.TYPE\n\t}\n\n}\n\n\nconst instance = new CheckoutComPayments()\nexport default instance\n\nexport type { CheckoutComPayment, CheckoutComPaymentCreate, CheckoutComPayments, CheckoutComPaymentType, CheckoutComPaymentUpdate }\n"]}
|
package/lib/chunk-7RZTCBDR.cjs
DELETED
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
var chunkJEQ2X3Z6_cjs = require('./chunk-JEQ2X3Z6.cjs');
|
|
4
|
-
|
|
5
|
-
// src/debug.ts
|
|
6
|
-
var debuggerFunction = (_pattern, ..._args) => {
|
|
7
|
-
};
|
|
8
|
-
var debuggerFactory = (_namespace) => debuggerFunction;
|
|
9
|
-
try {
|
|
10
|
-
const debugModule = chunkJEQ2X3Z6_cjs.__require("debug");
|
|
11
|
-
if (debugModule && typeof debugModule === "function") debuggerFactory = debugModule;
|
|
12
|
-
} catch (_error) {
|
|
13
|
-
}
|
|
14
|
-
var debugPrefix = "clsdk";
|
|
15
|
-
var debug = (namespace) => {
|
|
16
|
-
return debuggerFactory(`${debugPrefix}:${namespace}`);
|
|
17
|
-
};
|
|
18
|
-
var debug_default = debug;
|
|
19
|
-
|
|
20
|
-
exports.debug_default = debug_default;
|
|
21
|
-
//# sourceMappingURL=chunk-7RZTCBDR.cjs.map
|
|
22
|
-
//# sourceMappingURL=chunk-7RZTCBDR.cjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/debug.ts"],"names":["__require"],"mappings":";;;;;AAOA,IAAM,gBAAA,GAAmB,CAAC,QAAA,EAAA,GAAqB,KAAA,KAAuB;AAEtE,CAAA;AAEA,IAAI,eAAA,GAAmC,CAAC,UAAA,KAAiC,gBAAA;AAIzE,IAAI;AACH,EAAA,MAAM,WAAA,GAAcA,4BAAQ,OAAO,CAAA;AACnC,EAAA,IAAI,WAAA,IAAgB,OAAO,WAAA,KAAgB,UAAA,EAAa,eAAA,GAAkB,WAAA;AAC3E,CAAA,CAAA,OAAS,MAAA,EAAQ;AAEjB;AAGA,IAAM,WAAA,GAAc,OAAA;AAsBpB,IAAM,KAAA,GAAQ,CAAC,SAAA,KAAgC;AAC9C,EAAA,OAAO,eAAA,CAAgB,CAAA,EAAG,WAAW,CAAA,CAAA,EAAI,SAAS,CAAA,CAAE,CAAA;AACrD,CAAA;AAGA,IAAO,aAAA,GAAQ","file":"chunk-7RZTCBDR.cjs","sourcesContent":["\ntype Debugger = (pattern: string, ...args: any[]) => void\n\ntype DebuggerFactory = (namespace: string) => Debugger\n\n\n/* Nope debugger */\nconst debuggerFunction = (_pattern: string, ..._args: any[]): void => {\n\t// console.log(_pattern)\n}\n\nlet debuggerFactory: DebuggerFactory = (_namespace: string): Debugger => debuggerFunction\n\n\n/* Try loading 'debug' module */\ntry {\n\tconst debugModule = require('debug')\n\tif (debugModule && (typeof debugModule === 'function')) debuggerFactory = debugModule\n} catch (_error) {\n\t//\n}\n\n\nconst debugPrefix = 'clsdk'\n\n\n/* Retrieve the name of the caller 'module' */\n/*\nconst caller = (): string => {\n\n\tconst err = new Error()\n\n\tError.prepareStackTrace = (_, stack) => stack\n\tconst stack = err.stack as unknown as NodeJS.CallSite[]\n\tError.prepareStackTrace = undefined\n\n\tconst fileName = stack[2].getFileName() || '/'\n\n\treturn fileName.replace(/^.*[\\\\/]/, '').replace('.ts', '')\n\n}\n*/\n\n\n/* Return a debugger for the defined namespace */\nconst debug = (namespace: string): Debugger => {\n\treturn debuggerFactory(`${debugPrefix}:${namespace}`)\n}\n\n\nexport default debug\n"]}
|
package/lib/chunk-7TGNLLZ4.js
DELETED
|
@@ -1,105 +0,0 @@
|
|
|
1
|
-
import { ApiResource } from './chunk-USIBTSYD.js';
|
|
2
|
-
|
|
3
|
-
// src/resources/customers.ts
|
|
4
|
-
var Customers = class _Customers extends ApiResource {
|
|
5
|
-
static TYPE = "customers";
|
|
6
|
-
async create(resource, params, options) {
|
|
7
|
-
return this.resources.create({ ...resource, type: _Customers.TYPE }, params, options);
|
|
8
|
-
}
|
|
9
|
-
async update(resource, params, options) {
|
|
10
|
-
return this.resources.update({ ...resource, type: _Customers.TYPE }, params, options);
|
|
11
|
-
}
|
|
12
|
-
async delete(id, options) {
|
|
13
|
-
await this.resources.delete(typeof id === "string" ? { id, type: _Customers.TYPE } : id, options);
|
|
14
|
-
}
|
|
15
|
-
async customer_group(customerId, params, options) {
|
|
16
|
-
const _customerId = customerId.id || customerId;
|
|
17
|
-
return this.resources.fetch({ type: "customer_groups" }, `customers/${_customerId}/customer_group`, params, options);
|
|
18
|
-
}
|
|
19
|
-
async customer_addresses(customerId, params, options) {
|
|
20
|
-
const _customerId = customerId.id || customerId;
|
|
21
|
-
return this.resources.fetch({ type: "customer_addresses" }, `customers/${_customerId}/customer_addresses`, params, options);
|
|
22
|
-
}
|
|
23
|
-
async customer_payment_sources(customerId, params, options) {
|
|
24
|
-
const _customerId = customerId.id || customerId;
|
|
25
|
-
return this.resources.fetch({ type: "customer_payment_sources" }, `customers/${_customerId}/customer_payment_sources`, params, options);
|
|
26
|
-
}
|
|
27
|
-
async customer_subscriptions(customerId, params, options) {
|
|
28
|
-
const _customerId = customerId.id || customerId;
|
|
29
|
-
return this.resources.fetch({ type: "customer_subscriptions" }, `customers/${_customerId}/customer_subscriptions`, params, options);
|
|
30
|
-
}
|
|
31
|
-
async orders(customerId, params, options) {
|
|
32
|
-
const _customerId = customerId.id || customerId;
|
|
33
|
-
return this.resources.fetch({ type: "orders" }, `customers/${_customerId}/orders`, params, options);
|
|
34
|
-
}
|
|
35
|
-
async order_subscriptions(customerId, params, options) {
|
|
36
|
-
const _customerId = customerId.id || customerId;
|
|
37
|
-
return this.resources.fetch({ type: "order_subscriptions" }, `customers/${_customerId}/order_subscriptions`, params, options);
|
|
38
|
-
}
|
|
39
|
-
async returns(customerId, params, options) {
|
|
40
|
-
const _customerId = customerId.id || customerId;
|
|
41
|
-
return this.resources.fetch({ type: "returns" }, `customers/${_customerId}/returns`, params, options);
|
|
42
|
-
}
|
|
43
|
-
async sku_lists(customerId, params, options) {
|
|
44
|
-
const _customerId = customerId.id || customerId;
|
|
45
|
-
return this.resources.fetch({ type: "sku_lists" }, `customers/${_customerId}/sku_lists`, params, options);
|
|
46
|
-
}
|
|
47
|
-
async attachments(customerId, params, options) {
|
|
48
|
-
const _customerId = customerId.id || customerId;
|
|
49
|
-
return this.resources.fetch({ type: "attachments" }, `customers/${_customerId}/attachments`, params, options);
|
|
50
|
-
}
|
|
51
|
-
async events(customerId, params, options) {
|
|
52
|
-
const _customerId = customerId.id || customerId;
|
|
53
|
-
return this.resources.fetch({ type: "events" }, `customers/${_customerId}/events`, params, options);
|
|
54
|
-
}
|
|
55
|
-
async tags(customerId, params, options) {
|
|
56
|
-
const _customerId = customerId.id || customerId;
|
|
57
|
-
return this.resources.fetch({ type: "tags" }, `customers/${_customerId}/tags`, params, options);
|
|
58
|
-
}
|
|
59
|
-
async jwt_customer(customerId, params, options) {
|
|
60
|
-
const _customerId = customerId.id || customerId;
|
|
61
|
-
return this.resources.fetch({ type: "customers" }, `customers/${_customerId}/jwt_customer`, params, options);
|
|
62
|
-
}
|
|
63
|
-
async jwt_markets(customerId, params, options) {
|
|
64
|
-
const _customerId = customerId.id || customerId;
|
|
65
|
-
return this.resources.fetch({ type: "markets" }, `customers/${_customerId}/jwt_markets`, params, options);
|
|
66
|
-
}
|
|
67
|
-
async jwt_stock_locations(customerId, params, options) {
|
|
68
|
-
const _customerId = customerId.id || customerId;
|
|
69
|
-
return this.resources.fetch({ type: "stock_locations" }, `customers/${_customerId}/jwt_stock_locations`, params, options);
|
|
70
|
-
}
|
|
71
|
-
async event_stores(customerId, params, options) {
|
|
72
|
-
const _customerId = customerId.id || customerId;
|
|
73
|
-
return this.resources.fetch({ type: "event_stores" }, `customers/${_customerId}/event_stores`, params, options);
|
|
74
|
-
}
|
|
75
|
-
async _add_tags(id, triggerValue, params, options) {
|
|
76
|
-
return this.resources.update({ id: typeof id === "string" ? id : id.id, type: _Customers.TYPE, _add_tags: triggerValue }, params, options);
|
|
77
|
-
}
|
|
78
|
-
async _remove_tags(id, triggerValue, params, options) {
|
|
79
|
-
return this.resources.update({ id: typeof id === "string" ? id : id.id, type: _Customers.TYPE, _remove_tags: triggerValue }, params, options);
|
|
80
|
-
}
|
|
81
|
-
async _request_anonymization(id, params, options) {
|
|
82
|
-
return this.resources.update({ id: typeof id === "string" ? id : id.id, type: _Customers.TYPE, _request_anonymization: true }, params, options);
|
|
83
|
-
}
|
|
84
|
-
async _cancel_anonymization(id, params, options) {
|
|
85
|
-
return this.resources.update({ id: typeof id === "string" ? id : id.id, type: _Customers.TYPE, _cancel_anonymization: true }, params, options);
|
|
86
|
-
}
|
|
87
|
-
isCustomer(resource) {
|
|
88
|
-
return resource.type && resource.type === _Customers.TYPE;
|
|
89
|
-
}
|
|
90
|
-
relationship(id) {
|
|
91
|
-
return super.relationshipOneToOne(id);
|
|
92
|
-
}
|
|
93
|
-
relationshipToMany(...ids) {
|
|
94
|
-
return super.relationshipOneToMany(...ids);
|
|
95
|
-
}
|
|
96
|
-
type() {
|
|
97
|
-
return _Customers.TYPE;
|
|
98
|
-
}
|
|
99
|
-
};
|
|
100
|
-
var instance = new Customers();
|
|
101
|
-
var customers_default = instance;
|
|
102
|
-
|
|
103
|
-
export { customers_default };
|
|
104
|
-
//# sourceMappingURL=chunk-7TGNLLZ4.js.map
|
|
105
|
-
//# sourceMappingURL=chunk-7TGNLLZ4.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/resources/customers.ts"],"names":[],"mappings":";;;AA4LA,IAAM,SAAA,GAAN,MAAM,UAAA,SAAkB,WAAA,CAAsB;AAAA,EAE7C,OAAgB,IAAA,GAAqB,WAAA;AAAA,EAErC,MAAM,MAAA,CAAO,QAAA,EAA0B,MAAA,EAAwC,OAAA,EAA8C;AAC5H,IAAA,OAAO,IAAA,CAAK,SAAA,CAAU,MAAA,CAAiC,EAAE,GAAG,QAAA,EAAU,IAAA,EAAM,UAAA,CAAU,IAAA,EAAK,EAAG,MAAA,EAAQ,OAAO,CAAA;AAAA,EAC9G;AAAA,EAEA,MAAM,MAAA,CAAO,QAAA,EAA0B,MAAA,EAAwC,OAAA,EAA8C;AAC5H,IAAA,OAAO,IAAA,CAAK,SAAA,CAAU,MAAA,CAAiC,EAAE,GAAG,QAAA,EAAU,IAAA,EAAM,UAAA,CAAU,IAAA,EAAK,EAAG,MAAA,EAAQ,OAAO,CAAA;AAAA,EAC9G;AAAA,EAEA,MAAM,MAAA,CAAO,EAAA,EAAyB,OAAA,EAA0C;AAC/E,IAAA,MAAM,IAAA,CAAK,SAAA,CAAU,MAAA,CAAQ,OAAO,EAAA,KAAO,QAAA,GAAW,EAAE,EAAA,EAAI,IAAA,EAAM,UAAA,CAAU,IAAA,EAAK,GAAI,IAAI,O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AAA,EAClB;AAED,CAAA;AAGA,IAAM,QAAA,GAAW,IAAI,SAAA,EAAU;AAC/B,IAAO,iBAAA,GAAQ","file":"chunk-7TGNLLZ4.js","sourcesContent":["import type { QueryParamsList, QueryParamsRetrieve } from '../query'\nimport type { ListResponse, Resource, ResourceCreate, ResourceId, ResourceRel, ResourceSort, /* ResourceFilter */ ResourcesConfig, ResourceUpdate, } from '../resource'\nimport { ApiResource } from '../resource'\nimport type { Attachment } from './attachments'\nimport type { CustomerAddress } from './customer_addresses'\nimport type { CustomerGroup, CustomerGroupType } from './customer_groups'\nimport type { CustomerPaymentSource } from './customer_payment_sources'\nimport type { CustomerSubscription } from './customer_subscriptions'\nimport type { EventStore } from './event_stores'\nimport type { Event } from './events'\nimport type { Market } from './markets'\nimport type { OrderSubscription } from './order_subscriptions'\nimport type { Order } from './orders'\nimport type { Return } from './returns'\nimport type { SkuList } from './sku_lists'\nimport type { StockLocation } from './stock_locations'\nimport type { Tag, TagType } from './tags'\n\n\ntype CustomerType = 'customers'\ntype CustomerRel = ResourceRel & { type: CustomerType }\ntype CustomerGroupRel = ResourceRel & { type: CustomerGroupType }\ntype TagRel = ResourceRel & { type: TagType }\n\n\nexport type CustomerSort = Pick<Customer, 'id' | 'email' | 'status' | 'total_orders_count' | 'anonymization_status'> & ResourceSort\n// export type CustomerFilter = Pick<Customer, 'id' | 'email' | 'status' | 'total_orders_count' | 'anonymization_status'> & ResourceFilter\n\n\ninterface Customer extends Resource {\n\t\n\treadonly type: CustomerType\n\n\t/** \n\t * The customer's email address.\n\t * @example ```\"john@example.com\"```\n\t */\n\temail: string\n\t/** \n\t * The customer's status. One of 'prospect' (default), 'acquired', or 'repeat'.\n\t * @example ```\"prospect\"```\n\t */\n\tstatus: 'prospect' | 'acquired' | 'repeat'\n\t/** \n\t * Indicates if the customer has a password.\n\t */\n\thas_password?: boolean | null\n\t/** \n\t * The total number of orders for the customer.\n\t * @example ```6```\n\t */\n\ttotal_orders_count?: number | null\n\t/** \n\t * A reference to uniquely identify the shopper during payment sessions.\n\t * @example ```\"xxx-yyy-zzz\"```\n\t */\n\tshopper_reference?: string | null\n\t/** \n\t * A reference to uniquely identify the customer on any connected external services.\n\t * @example ```\"xxx-yyy-zzz\"```\n\t */\n\tprofile_id?: string | null\n\t/** \n\t * A specific code to identify the tax exemption reason for this customer.\n\t * @example ```\"xxx-yyy-zzz\"```\n\t */\n\ttax_exemption_code?: string | null\n\t/** \n\t * The custom_claim attached to the current JWT (if any).\n\t * @example ```{}```\n\t */\n\tjwt_custom_claim?: Record<string, any> | null\n\t/** \n\t * The anonymization info object.\n\t * @example ```{\"status\":\"requested\",\"requested_at\":\"2025-03-15 11:39:21 UTC\",\"requester\":{\"id\":\"fdgt56hh\",\"first_name\":\"Travis\",\"last_name\":\"Muller\",\"email\":\"test@labadie.test\"}}```\n\t */\n\tanonymization_info?: Record<string, any> | null\n\t/** \n\t * Status of the current anonymization request (if any). One of 'requested', 'started', 'completed', 'failed', or 'cancelled'.\n\t * @example ```\"requested\"```\n\t */\n\tanonymization_status?: 'requested' | 'started' | 'completed' | 'failed' | 'cancelled' | null\n\n\tcustomer_group?: CustomerGroup | null\n\tcustomer_addresses?: CustomerAddress[] | null\n\tcustomer_payment_sources?: CustomerPaymentSource[] | null\n\tcustomer_subscriptions?: CustomerSubscription[] | null\n\torders?: Order[] | null\n\torder_subscriptions?: OrderSubscription[] | null\n\treturns?: Return[] | null\n\tsku_lists?: SkuList[] | null\n\tattachments?: Attachment[] | null\n\tevents?: Event[] | null\n\ttags?: Tag[] | null\n\tjwt_customer?: Customer | null\n\tjwt_markets?: Market[] | null\n\tjwt_stock_locations?: StockLocation[] | null\n\tevent_stores?: EventStore[] | null\n\n}\n\n\ninterface CustomerCreate extends ResourceCreate {\n\t\n\t/** \n\t * The customer's email address.\n\t * @example ```\"john@example.com\"```\n\t */\n\temail: string\n\t/** \n\t * The customer's password. Initiate a customer password reset flow if you need to change it.\n\t * @example ```\"secret\"```\n\t */\n\tpassword?: string | null\n\t/** \n\t * A reference to uniquely identify the shopper during payment sessions.\n\t * @example ```\"xxx-yyy-zzz\"```\n\t */\n\tshopper_reference?: string | null\n\t/** \n\t * A reference to uniquely identify the customer on any connected external services.\n\t * @example ```\"xxx-yyy-zzz\"```\n\t */\n\tprofile_id?: string | null\n\t/** \n\t * A specific code to identify the tax exemption reason for this customer.\n\t * @example ```\"xxx-yyy-zzz\"```\n\t */\n\ttax_exemption_code?: string | null\n\n\tcustomer_group?: CustomerGroupRel | null\n\ttags?: TagRel[] | null\n\n}\n\n\ninterface CustomerUpdate extends ResourceUpdate {\n\t\n\t/** \n\t * The customer's email address.\n\t * @example ```\"john@example.com\"```\n\t */\n\temail?: string | null\n\t/** \n\t * The customer's password. Initiate a customer password reset flow if you need to change it.\n\t * @example ```\"secret\"```\n\t */\n\tpassword?: string | null\n\t/** \n\t * A reference to uniquely identify the shopper during payment sessions.\n\t * @example ```\"xxx-yyy-zzz\"```\n\t */\n\tshopper_reference?: string | null\n\t/** \n\t * A reference to uniquely identify the customer on any connected external services.\n\t * @example ```\"xxx-yyy-zzz\"```\n\t */\n\tprofile_id?: string | null\n\t/** \n\t * A specific code to identify the tax exemption reason for this customer.\n\t * @example ```\"xxx-yyy-zzz\"```\n\t */\n\ttax_exemption_code?: string | null\n\t/** \n\t * Comma separated list of tags to be added. Duplicates, invalid and non existing ones are discarded. Cannot be passed by sales channels.\n\t */\n\t_add_tags?: string | null\n\t/** \n\t * Comma separated list of tags to be removed. Duplicates, invalid and non existing ones are discarded. Cannot be passed by sales channels.\n\t */\n\t_remove_tags?: string | null\n\t/** \n\t * Send this attribute if you want to trigger anonymization. Cannot be passed by sales channels.\n\t * @example ```true```\n\t */\n\t_request_anonymization?: boolean | null\n\t/** \n\t * Send this attribute if you want to trigger a cancellation of anonymization. Cannot be passed by sales channels.\n\t * @example ```true```\n\t */\n\t_cancel_anonymization?: boolean | null\n\n\tcustomer_group?: CustomerGroupRel | null\n\ttags?: TagRel[] | null\n\n}\n\n\nclass Customers extends ApiResource<Customer> {\n\n\tstatic readonly TYPE: CustomerType = 'customers' as const\n\n\tasync create(resource: CustomerCreate, params?: QueryParamsRetrieve<Customer>, options?: ResourcesConfig): Promise<Customer> {\n\t\treturn this.resources.create<CustomerCreate, Customer>({ ...resource, type: Customers.TYPE }, params, options)\n\t}\n\n\tasync update(resource: CustomerUpdate, params?: QueryParamsRetrieve<Customer>, options?: ResourcesConfig): Promise<Customer> {\n\t\treturn this.resources.update<CustomerUpdate, Customer>({ ...resource, type: Customers.TYPE }, params, options)\n\t}\n\n\tasync delete(id: string | ResourceId, options?: ResourcesConfig): Promise<void> {\n\t\tawait this.resources.delete((typeof id === 'string')? { id, type: Customers.TYPE } : id, options)\n\t}\n\n\tasync customer_group(customerId: string | Customer, params?: QueryParamsRetrieve<CustomerGroup>, options?: ResourcesConfig): Promise<CustomerGroup> {\n\t\tconst _customerId = (customerId as Customer).id || customerId as string\n\t\treturn this.resources.fetch<CustomerGroup>({ type: 'customer_groups' }, `customers/${_customerId}/customer_group`, params, options) as unknown as CustomerGroup\n\t}\n\n\tasync customer_addresses(customerId: string | Customer, params?: QueryParamsList<CustomerAddress>, options?: ResourcesConfig): Promise<ListResponse<CustomerAddress>> {\n\t\tconst _customerId = (customerId as Customer).id || customerId as string\n\t\treturn this.resources.fetch<CustomerAddress>({ type: 'customer_addresses' }, `customers/${_customerId}/customer_addresses`, params, options) as unknown as ListResponse<CustomerAddress>\n\t}\n\n\tasync customer_payment_sources(customerId: string | Customer, params?: QueryParamsList<CustomerPaymentSource>, options?: ResourcesConfig): Promise<ListResponse<CustomerPaymentSource>> {\n\t\tconst _customerId = (customerId as Customer).id || customerId as string\n\t\treturn this.resources.fetch<CustomerPaymentSource>({ type: 'customer_payment_sources' }, `customers/${_customerId}/customer_payment_sources`, params, options) as unknown as ListResponse<CustomerPaymentSource>\n\t}\n\n\tasync customer_subscriptions(customerId: string | Customer, params?: QueryParamsList<CustomerSubscription>, options?: ResourcesConfig): Promise<ListResponse<CustomerSubscription>> {\n\t\tconst _customerId = (customerId as Customer).id || customerId as string\n\t\treturn this.resources.fetch<CustomerSubscription>({ type: 'customer_subscriptions' }, `customers/${_customerId}/customer_subscriptions`, params, options) as unknown as ListResponse<CustomerSubscription>\n\t}\n\n\tasync orders(customerId: string | Customer, params?: QueryParamsList<Order>, options?: ResourcesConfig): Promise<ListResponse<Order>> {\n\t\tconst _customerId = (customerId as Customer).id || customerId as string\n\t\treturn this.resources.fetch<Order>({ type: 'orders' }, `customers/${_customerId}/orders`, params, options) as unknown as ListResponse<Order>\n\t}\n\n\tasync order_subscriptions(customerId: string | Customer, params?: QueryParamsList<OrderSubscription>, options?: ResourcesConfig): Promise<ListResponse<OrderSubscription>> {\n\t\tconst _customerId = (customerId as Customer).id || customerId as string\n\t\treturn this.resources.fetch<OrderSubscription>({ type: 'order_subscriptions' }, `customers/${_customerId}/order_subscriptions`, params, options) as unknown as ListResponse<OrderSubscription>\n\t}\n\n\tasync returns(customerId: string | Customer, params?: QueryParamsList<Return>, options?: ResourcesConfig): Promise<ListResponse<Return>> {\n\t\tconst _customerId = (customerId as Customer).id || customerId as string\n\t\treturn this.resources.fetch<Return>({ type: 'returns' }, `customers/${_customerId}/returns`, params, options) as unknown as ListResponse<Return>\n\t}\n\n\tasync sku_lists(customerId: string | Customer, params?: QueryParamsList<SkuList>, options?: ResourcesConfig): Promise<ListResponse<SkuList>> {\n\t\tconst _customerId = (customerId as Customer).id || customerId as string\n\t\treturn this.resources.fetch<SkuList>({ type: 'sku_lists' }, `customers/${_customerId}/sku_lists`, params, options) as unknown as ListResponse<SkuList>\n\t}\n\n\tasync attachments(customerId: string | Customer, params?: QueryParamsList<Attachment>, options?: ResourcesConfig): Promise<ListResponse<Attachment>> {\n\t\tconst _customerId = (customerId as Customer).id || customerId as string\n\t\treturn this.resources.fetch<Attachment>({ type: 'attachments' }, `customers/${_customerId}/attachments`, params, options) as unknown as ListResponse<Attachment>\n\t}\n\n\tasync events(customerId: string | Customer, params?: QueryParamsList<Event>, options?: ResourcesConfig): Promise<ListResponse<Event>> {\n\t\tconst _customerId = (customerId as Customer).id || customerId as string\n\t\treturn this.resources.fetch<Event>({ type: 'events' }, `customers/${_customerId}/events`, params, options) as unknown as ListResponse<Event>\n\t}\n\n\tasync tags(customerId: string | Customer, params?: QueryParamsList<Tag>, options?: ResourcesConfig): Promise<ListResponse<Tag>> {\n\t\tconst _customerId = (customerId as Customer).id || customerId as string\n\t\treturn this.resources.fetch<Tag>({ type: 'tags' }, `customers/${_customerId}/tags`, params, options) as unknown as ListResponse<Tag>\n\t}\n\n\tasync jwt_customer(customerId: string | Customer, params?: QueryParamsRetrieve<Customer>, options?: ResourcesConfig): Promise<Customer> {\n\t\tconst _customerId = (customerId as Customer).id || customerId as string\n\t\treturn this.resources.fetch<Customer>({ type: 'customers' }, `customers/${_customerId}/jwt_customer`, params, options) as unknown as Customer\n\t}\n\n\tasync jwt_markets(customerId: string | Customer, params?: QueryParamsList<Market>, options?: ResourcesConfig): Promise<ListResponse<Market>> {\n\t\tconst _customerId = (customerId as Customer).id || customerId as string\n\t\treturn this.resources.fetch<Market>({ type: 'markets' }, `customers/${_customerId}/jwt_markets`, params, options) as unknown as ListResponse<Market>\n\t}\n\n\tasync jwt_stock_locations(customerId: string | Customer, params?: QueryParamsList<StockLocation>, options?: ResourcesConfig): Promise<ListResponse<StockLocation>> {\n\t\tconst _customerId = (customerId as Customer).id || customerId as string\n\t\treturn this.resources.fetch<StockLocation>({ type: 'stock_locations' }, `customers/${_customerId}/jwt_stock_locations`, params, options) as unknown as ListResponse<StockLocation>\n\t}\n\n\tasync event_stores(customerId: string | Customer, params?: QueryParamsList<EventStore>, options?: ResourcesConfig): Promise<ListResponse<EventStore>> {\n\t\tconst _customerId = (customerId as Customer).id || customerId as string\n\t\treturn this.resources.fetch<EventStore>({ type: 'event_stores' }, `customers/${_customerId}/event_stores`, params, options) as unknown as ListResponse<EventStore>\n\t}\n\n\tasync _add_tags(id: string | Customer, triggerValue: string, params?: QueryParamsRetrieve<Customer>, options?: ResourcesConfig): Promise<Customer> {\n\t\treturn this.resources.update<CustomerUpdate, Customer>({ id: (typeof id === 'string')? id: id.id, type: Customers.TYPE, _add_tags: triggerValue }, params, options)\n\t}\n\n\tasync _remove_tags(id: string | Customer, triggerValue: string, params?: QueryParamsRetrieve<Customer>, options?: ResourcesConfig): Promise<Customer> {\n\t\treturn this.resources.update<CustomerUpdate, Customer>({ id: (typeof id === 'string')? id: id.id, type: Customers.TYPE, _remove_tags: triggerValue }, params, options)\n\t}\n\n\tasync _request_anonymization(id: string | Customer, params?: QueryParamsRetrieve<Customer>, options?: ResourcesConfig): Promise<Customer> {\n\t\treturn this.resources.update<CustomerUpdate, Customer>({ id: (typeof id === 'string')? id: id.id, type: Customers.TYPE, _request_anonymization: true }, params, options)\n\t}\n\n\tasync _cancel_anonymization(id: string | Customer, params?: QueryParamsRetrieve<Customer>, options?: ResourcesConfig): Promise<Customer> {\n\t\treturn this.resources.update<CustomerUpdate, Customer>({ id: (typeof id === 'string')? id: id.id, type: Customers.TYPE, _cancel_anonymization: true }, params, options)\n\t}\n\n\n\tisCustomer(resource: any): resource is Customer {\n\t\treturn resource.type && (resource.type === Customers.TYPE)\n\t}\n\n\n\trelationship(id: string | ResourceId | null): CustomerRel {\n\t\treturn super.relationshipOneToOne<CustomerRel>(id)\n\t}\n\n\trelationshipToMany(...ids: string[]): CustomerRel[] {\n\t\treturn super.relationshipOneToMany<CustomerRel>(...ids)\n\t}\n\n\n\ttype(): CustomerType {\n\t\treturn Customers.TYPE\n\t}\n\n}\n\n\nconst instance = new Customers()\nexport default instance\n\nexport type { Customer, CustomerCreate, Customers, CustomerType, CustomerUpdate }\n"]}
|
package/lib/chunk-7TM7YEPY.js
DELETED
|
@@ -1,89 +0,0 @@
|
|
|
1
|
-
import { ApiResource } from './chunk-USIBTSYD.js';
|
|
2
|
-
|
|
3
|
-
// src/resources/free_shipping_promotions.ts
|
|
4
|
-
var FreeShippingPromotions = class _FreeShippingPromotions extends ApiResource {
|
|
5
|
-
static TYPE = "free_shipping_promotions";
|
|
6
|
-
async create(resource, params, options) {
|
|
7
|
-
return this.resources.create({ ...resource, type: _FreeShippingPromotions.TYPE }, params, options);
|
|
8
|
-
}
|
|
9
|
-
async update(resource, params, options) {
|
|
10
|
-
return this.resources.update({ ...resource, type: _FreeShippingPromotions.TYPE }, params, options);
|
|
11
|
-
}
|
|
12
|
-
async delete(id, options) {
|
|
13
|
-
await this.resources.delete(typeof id === "string" ? { id, type: _FreeShippingPromotions.TYPE } : id, options);
|
|
14
|
-
}
|
|
15
|
-
async market(freeShippingPromotionId, params, options) {
|
|
16
|
-
const _freeShippingPromotionId = freeShippingPromotionId.id || freeShippingPromotionId;
|
|
17
|
-
return this.resources.fetch({ type: "markets" }, `free_shipping_promotions/${_freeShippingPromotionId}/market`, params, options);
|
|
18
|
-
}
|
|
19
|
-
async order_amount_promotion_rule(freeShippingPromotionId, params, options) {
|
|
20
|
-
const _freeShippingPromotionId = freeShippingPromotionId.id || freeShippingPromotionId;
|
|
21
|
-
return this.resources.fetch({ type: "order_amount_promotion_rules" }, `free_shipping_promotions/${_freeShippingPromotionId}/order_amount_promotion_rule`, params, options);
|
|
22
|
-
}
|
|
23
|
-
async sku_list_promotion_rule(freeShippingPromotionId, params, options) {
|
|
24
|
-
const _freeShippingPromotionId = freeShippingPromotionId.id || freeShippingPromotionId;
|
|
25
|
-
return this.resources.fetch({ type: "sku_list_promotion_rules" }, `free_shipping_promotions/${_freeShippingPromotionId}/sku_list_promotion_rule`, params, options);
|
|
26
|
-
}
|
|
27
|
-
async coupon_codes_promotion_rule(freeShippingPromotionId, params, options) {
|
|
28
|
-
const _freeShippingPromotionId = freeShippingPromotionId.id || freeShippingPromotionId;
|
|
29
|
-
return this.resources.fetch({ type: "coupon_codes_promotion_rules" }, `free_shipping_promotions/${_freeShippingPromotionId}/coupon_codes_promotion_rule`, params, options);
|
|
30
|
-
}
|
|
31
|
-
async custom_promotion_rule(freeShippingPromotionId, params, options) {
|
|
32
|
-
const _freeShippingPromotionId = freeShippingPromotionId.id || freeShippingPromotionId;
|
|
33
|
-
return this.resources.fetch({ type: "custom_promotion_rules" }, `free_shipping_promotions/${_freeShippingPromotionId}/custom_promotion_rule`, params, options);
|
|
34
|
-
}
|
|
35
|
-
async sku_list(freeShippingPromotionId, params, options) {
|
|
36
|
-
const _freeShippingPromotionId = freeShippingPromotionId.id || freeShippingPromotionId;
|
|
37
|
-
return this.resources.fetch({ type: "sku_lists" }, `free_shipping_promotions/${_freeShippingPromotionId}/sku_list`, params, options);
|
|
38
|
-
}
|
|
39
|
-
async coupons(freeShippingPromotionId, params, options) {
|
|
40
|
-
const _freeShippingPromotionId = freeShippingPromotionId.id || freeShippingPromotionId;
|
|
41
|
-
return this.resources.fetch({ type: "coupons" }, `free_shipping_promotions/${_freeShippingPromotionId}/coupons`, params, options);
|
|
42
|
-
}
|
|
43
|
-
async attachments(freeShippingPromotionId, params, options) {
|
|
44
|
-
const _freeShippingPromotionId = freeShippingPromotionId.id || freeShippingPromotionId;
|
|
45
|
-
return this.resources.fetch({ type: "attachments" }, `free_shipping_promotions/${_freeShippingPromotionId}/attachments`, params, options);
|
|
46
|
-
}
|
|
47
|
-
async events(freeShippingPromotionId, params, options) {
|
|
48
|
-
const _freeShippingPromotionId = freeShippingPromotionId.id || freeShippingPromotionId;
|
|
49
|
-
return this.resources.fetch({ type: "events" }, `free_shipping_promotions/${_freeShippingPromotionId}/events`, params, options);
|
|
50
|
-
}
|
|
51
|
-
async tags(freeShippingPromotionId, params, options) {
|
|
52
|
-
const _freeShippingPromotionId = freeShippingPromotionId.id || freeShippingPromotionId;
|
|
53
|
-
return this.resources.fetch({ type: "tags" }, `free_shipping_promotions/${_freeShippingPromotionId}/tags`, params, options);
|
|
54
|
-
}
|
|
55
|
-
async event_stores(freeShippingPromotionId, params, options) {
|
|
56
|
-
const _freeShippingPromotionId = freeShippingPromotionId.id || freeShippingPromotionId;
|
|
57
|
-
return this.resources.fetch({ type: "event_stores" }, `free_shipping_promotions/${_freeShippingPromotionId}/event_stores`, params, options);
|
|
58
|
-
}
|
|
59
|
-
async _disable(id, params, options) {
|
|
60
|
-
return this.resources.update({ id: typeof id === "string" ? id : id.id, type: _FreeShippingPromotions.TYPE, _disable: true }, params, options);
|
|
61
|
-
}
|
|
62
|
-
async _enable(id, params, options) {
|
|
63
|
-
return this.resources.update({ id: typeof id === "string" ? id : id.id, type: _FreeShippingPromotions.TYPE, _enable: true }, params, options);
|
|
64
|
-
}
|
|
65
|
-
async _add_tags(id, triggerValue, params, options) {
|
|
66
|
-
return this.resources.update({ id: typeof id === "string" ? id : id.id, type: _FreeShippingPromotions.TYPE, _add_tags: triggerValue }, params, options);
|
|
67
|
-
}
|
|
68
|
-
async _remove_tags(id, triggerValue, params, options) {
|
|
69
|
-
return this.resources.update({ id: typeof id === "string" ? id : id.id, type: _FreeShippingPromotions.TYPE, _remove_tags: triggerValue }, params, options);
|
|
70
|
-
}
|
|
71
|
-
isFreeShippingPromotion(resource) {
|
|
72
|
-
return resource.type && resource.type === _FreeShippingPromotions.TYPE;
|
|
73
|
-
}
|
|
74
|
-
relationship(id) {
|
|
75
|
-
return super.relationshipOneToOne(id);
|
|
76
|
-
}
|
|
77
|
-
relationshipToMany(...ids) {
|
|
78
|
-
return super.relationshipOneToMany(...ids);
|
|
79
|
-
}
|
|
80
|
-
type() {
|
|
81
|
-
return _FreeShippingPromotions.TYPE;
|
|
82
|
-
}
|
|
83
|
-
};
|
|
84
|
-
var instance = new FreeShippingPromotions();
|
|
85
|
-
var free_shipping_promotions_default = instance;
|
|
86
|
-
|
|
87
|
-
export { free_shipping_promotions_default };
|
|
88
|
-
//# sourceMappingURL=chunk-7TM7YEPY.js.map
|
|
89
|
-
//# sourceMappingURL=chunk-7TM7YEPY.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/resources/free_shipping_promotions.ts"],"names":[],"mappings":";;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D,OAAA,EAA2D;AACzL,IAAA,OAAO,KAAK,SAAA,CAAU,MAAA,CAA2D,EAAE,EAAA,EAAK,OAAO,OAAO,QAAA,GAAW,EAAA,GAAI,EAAA,CAAG,EAAA,EAAI,MAAM,uBAAA,CAAuB,IAAA,EAAM,WAAW,YAAA,EAAa,EAAG,QAAQ,OAAO,CAAA;AAAA,EAC1M;AAAA,EAEA,MAAM,YAAA,CAAa,EAAA,EAAoC,YAAA,EAAsB,QAAqD,OAAA,EAA2D;AAC5L,IAAA,OAAO,KAAK,SAAA,CAAU,MAAA,CAA2D,EAAE,EAAA,EAAK,OAAO,OAAO,QAAA,GAAW,EAAA,GAAI,EAAA,CAAG,EAAA,EAAI,MAAM,uBAAA,CAAuB,IAAA,EAAM,cAAc,YAAA,EAAa,EAAG,QAAQ,OAAO,CAAA;AAAA,EAC7M;AAAA,EAGA,wBAAwB,QAAA,EAAkD;AACzE,IAAA,OAAO,QAAA,CAAS,IAAA,IAAS,QAAA,CAAS,IAAA,KAAS,uBAAA,CAAuB,IAAA;AAAA,EACnE;AAAA,EAGA,aAAa,EAAA,EAA0D;AACtE,IAAA,OAAO,KAAA,CAAM,qBAA+C,EAAE,CAAA;AAAA,EAC/D;AAAA,EAEA,sBAAsB,GAAA,EAA2C;AAChE,IAAA,OAAO,KAAA,CAAM,qBAAA,CAAgD,GAAG,GAAG,CAAA;AAAA,EACpE;AAAA,EAGA,IAAA,GAAkC;AACjC,IAAA,OAAO,uBAAA,CAAuB,IAAA;AAAA,EAC/B;AAED,CAAA;AAGA,IAAM,QAAA,GAAW,IAAI,sBAAA,EAAuB;AAC5C,IAAO,gCAAA,GAAQ","file":"chunk-7TM7YEPY.js","sourcesContent":["import type { QueryParamsList, QueryParamsRetrieve } from '../query'\nimport type { ListResponse, Resource, ResourceCreate, ResourceId, ResourceRel, ResourceSort, /* ResourceFilter */ ResourcesConfig, ResourceUpdate, } from '../resource'\nimport { ApiResource } from '../resource'\nimport type { Attachment } from './attachments'\nimport type { CouponCodesPromotionRule, CouponCodesPromotionRuleType } from './coupon_codes_promotion_rules'\nimport type { Coupon } from './coupons'\nimport type { CustomPromotionRule, CustomPromotionRuleType } from './custom_promotion_rules'\nimport type { EventStore } from './event_stores'\nimport type { Event } from './events'\nimport type { Market, MarketType } from './markets'\nimport type { OrderAmountPromotionRule, OrderAmountPromotionRuleType } from './order_amount_promotion_rules'\nimport type { PromotionRule } from './promotion_rules'\nimport type { SkuListPromotionRule, SkuListPromotionRuleType } from './sku_list_promotion_rules'\nimport type { SkuList, SkuListType } from './sku_lists'\nimport type { Tag, TagType } from './tags'\n\n\ntype FreeShippingPromotionType = 'free_shipping_promotions'\ntype FreeShippingPromotionRel = ResourceRel & { type: FreeShippingPromotionType }\ntype MarketRel = ResourceRel & { type: MarketType }\ntype OrderAmountPromotionRuleRel = ResourceRel & { type: OrderAmountPromotionRuleType }\ntype SkuListPromotionRuleRel = ResourceRel & { type: SkuListPromotionRuleType }\ntype CouponCodesPromotionRuleRel = ResourceRel & { type: CouponCodesPromotionRuleType }\ntype CustomPromotionRuleRel = ResourceRel & { type: CustomPromotionRuleType }\ntype SkuListRel = ResourceRel & { type: SkuListType }\ntype TagRel = ResourceRel & { type: TagType }\n\n\nexport type FreeShippingPromotionSort = Pick<FreeShippingPromotion, 'id' | 'name' | 'currency_code' | 'exclusive' | 'priority' | 'starts_at' | 'expires_at' | 'total_usage_limit' | 'total_usage_count' | 'total_usage_reached' | 'disabled_at'> & ResourceSort\n// export type FreeShippingPromotionFilter = Pick<FreeShippingPromotion, 'id' | 'name' | 'currency_code' | 'exclusive' | 'priority' | 'starts_at' | 'expires_at' | 'total_usage_limit' | 'total_usage_count' | 'total_usage_reached' | 'disabled_at'> & ResourceFilter\n\n\ninterface FreeShippingPromotion extends Resource {\n\t\n\treadonly type: FreeShippingPromotionType\n\n\t/** \n\t * The promotion's internal name.\n\t * @example ```\"Personal promotion\"```\n\t */\n\tname: string\n\t/** \n\t * The international 3-letter currency code as defined by the ISO 4217 standard.\n\t * @example ```\"EUR\"```\n\t */\n\tcurrency_code?: string | null\n\t/** \n\t * Indicates if the promotion will be applied exclusively, based on its priority score.\n\t * @example ```true```\n\t */\n\texclusive?: boolean | null\n\t/** \n\t * The priority assigned to the promotion (lower means higher priority).\n\t * @example ```2```\n\t */\n\tpriority?: number | null\n\t/** \n\t * The activation date/time of this promotion.\n\t * @example ```\"2018-01-01T12:00:00.000Z\"```\n\t */\n\tstarts_at: string\n\t/** \n\t * The expiration date/time of this promotion (must be after starts_at).\n\t * @example ```\"2018-01-02T12:00:00.000Z\"```\n\t */\n\texpires_at: string\n\t/** \n\t * The total number of times this promotion can be applied. When 'null' it means promotion can be applied infinite times.\n\t * @example ```5```\n\t */\n\ttotal_usage_limit?: number | null\n\t/** \n\t * The number of times this promotion has been applied.\n\t * @example ```2```\n\t */\n\ttotal_usage_count?: number | null\n\t/** \n\t * Indicates if the promotion has been applied the total number of allowed times.\n\t */\n\ttotal_usage_reached?: boolean | null\n\t/** \n\t * Indicates if the promotion is active (enabled and not expired).\n\t * @example ```true```\n\t */\n\tactive?: boolean | null\n\t/** \n\t * The promotion status. One of 'disabled', 'expired', 'pending', 'active', or 'inactive'.\n\t * @example ```\"pending\"```\n\t */\n\tstatus?: 'disabled' | 'expired' | 'pending' | 'active' | 'inactive' | null\n\t/** \n\t * The weight of the promotion, computed by exclusivity, priority, type and start time. Determines the order of application, higher weight apply first.\n\t * @example ```112```\n\t */\n\tweight?: number | null\n\t/** \n\t * The total number of coupons created for this promotion.\n\t * @example ```2```\n\t */\n\tcoupons_count?: number | null\n\t/** \n\t * Time at which this resource was disabled.\n\t * @example ```\"2018-01-01T12:00:00.000Z\"```\n\t */\n\tdisabled_at?: string | null\n\n\tmarket?: Market | null\n\tpromotion_rules?: PromotionRule[] | null\n\torder_amount_promotion_rule?: OrderAmountPromotionRule | null\n\tsku_list_promotion_rule?: SkuListPromotionRule | null\n\tcoupon_codes_promotion_rule?: CouponCodesPromotionRule | null\n\tcustom_promotion_rule?: CustomPromotionRule | null\n\tsku_list?: SkuList | null\n\tcoupons?: Coupon[] | null\n\tattachments?: Attachment[] | null\n\tevents?: Event[] | null\n\ttags?: Tag[] | null\n\tevent_stores?: EventStore[] | null\n\n}\n\n\ninterface FreeShippingPromotionCreate extends ResourceCreate {\n\t\n\t/** \n\t * The promotion's internal name.\n\t * @example ```\"Personal promotion\"```\n\t */\n\tname: string\n\t/** \n\t * The international 3-letter currency code as defined by the ISO 4217 standard.\n\t * @example ```\"EUR\"```\n\t */\n\tcurrency_code?: string | null\n\t/** \n\t * Indicates if the promotion will be applied exclusively, based on its priority score.\n\t * @example ```true```\n\t */\n\texclusive?: boolean | null\n\t/** \n\t * The priority assigned to the promotion (lower means higher priority).\n\t * @example ```2```\n\t */\n\tpriority?: number | null\n\t/** \n\t * The activation date/time of this promotion.\n\t * @example ```\"2018-01-01T12:00:00.000Z\"```\n\t */\n\tstarts_at: string\n\t/** \n\t * The expiration date/time of this promotion (must be after starts_at).\n\t * @example ```\"2018-01-02T12:00:00.000Z\"```\n\t */\n\texpires_at: string\n\t/** \n\t * The total number of times this promotion can be applied. When 'null' it means promotion can be applied infinite times.\n\t * @example ```5```\n\t */\n\ttotal_usage_limit?: number | null\n\t/** \n\t * Send this attribute if you want to mark this resource as disabled.\n\t * @example ```true```\n\t */\n\t_disable?: boolean | null\n\t/** \n\t * Send this attribute if you want to mark this resource as enabled.\n\t * @example ```true```\n\t */\n\t_enable?: boolean | null\n\n\tmarket?: MarketRel | null\n\torder_amount_promotion_rule?: OrderAmountPromotionRuleRel | null\n\tsku_list_promotion_rule?: SkuListPromotionRuleRel | null\n\tcoupon_codes_promotion_rule?: CouponCodesPromotionRuleRel | null\n\tcustom_promotion_rule?: CustomPromotionRuleRel | null\n\tsku_list?: SkuListRel | null\n\ttags?: TagRel[] | null\n\n}\n\n\ninterface FreeShippingPromotionUpdate extends ResourceUpdate {\n\t\n\t/** \n\t * The promotion's internal name.\n\t * @example ```\"Personal promotion\"```\n\t */\n\tname?: string | null\n\t/** \n\t * The international 3-letter currency code as defined by the ISO 4217 standard.\n\t * @example ```\"EUR\"```\n\t */\n\tcurrency_code?: string | null\n\t/** \n\t * Indicates if the promotion will be applied exclusively, based on its priority score.\n\t * @example ```true```\n\t */\n\texclusive?: boolean | null\n\t/** \n\t * The priority assigned to the promotion (lower means higher priority).\n\t * @example ```2```\n\t */\n\tpriority?: number | null\n\t/** \n\t * The activation date/time of this promotion.\n\t * @example ```\"2018-01-01T12:00:00.000Z\"```\n\t */\n\tstarts_at?: string | null\n\t/** \n\t * The expiration date/time of this promotion (must be after starts_at).\n\t * @example ```\"2018-01-02T12:00:00.000Z\"```\n\t */\n\texpires_at?: string | null\n\t/** \n\t * The total number of times this promotion can be applied. When 'null' it means promotion can be applied infinite times.\n\t * @example ```5```\n\t */\n\ttotal_usage_limit?: number | null\n\t/** \n\t * Send this attribute if you want to mark this resource as disabled.\n\t * @example ```true```\n\t */\n\t_disable?: boolean | null\n\t/** \n\t * Send this attribute if you want to mark this resource as enabled.\n\t * @example ```true```\n\t */\n\t_enable?: boolean | null\n\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\tmarket?: MarketRel | null\n\torder_amount_promotion_rule?: OrderAmountPromotionRuleRel | null\n\tsku_list_promotion_rule?: SkuListPromotionRuleRel | null\n\tcoupon_codes_promotion_rule?: CouponCodesPromotionRuleRel | null\n\tcustom_promotion_rule?: CustomPromotionRuleRel | null\n\tsku_list?: SkuListRel | null\n\ttags?: TagRel[] | null\n\n}\n\n\nclass FreeShippingPromotions extends ApiResource<FreeShippingPromotion> {\n\n\tstatic readonly TYPE: FreeShippingPromotionType = 'free_shipping_promotions' as const\n\n\tasync create(resource: FreeShippingPromotionCreate, params?: QueryParamsRetrieve<FreeShippingPromotion>, options?: ResourcesConfig): Promise<FreeShippingPromotion> {\n\t\treturn this.resources.create<FreeShippingPromotionCreate, FreeShippingPromotion>({ ...resource, type: FreeShippingPromotions.TYPE }, params, options)\n\t}\n\n\tasync update(resource: FreeShippingPromotionUpdate, params?: QueryParamsRetrieve<FreeShippingPromotion>, options?: ResourcesConfig): Promise<FreeShippingPromotion> {\n\t\treturn this.resources.update<FreeShippingPromotionUpdate, FreeShippingPromotion>({ ...resource, type: FreeShippingPromotions.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: FreeShippingPromotions.TYPE } : id, options)\n\t}\n\n\tasync market(freeShippingPromotionId: string | FreeShippingPromotion, params?: QueryParamsRetrieve<Market>, options?: ResourcesConfig): Promise<Market> {\n\t\tconst _freeShippingPromotionId = (freeShippingPromotionId as FreeShippingPromotion).id || freeShippingPromotionId as string\n\t\treturn this.resources.fetch<Market>({ type: 'markets' }, `free_shipping_promotions/${_freeShippingPromotionId}/market`, params, options) as unknown as Market\n\t}\n\n\tasync order_amount_promotion_rule(freeShippingPromotionId: string | FreeShippingPromotion, params?: QueryParamsRetrieve<OrderAmountPromotionRule>, options?: ResourcesConfig): Promise<OrderAmountPromotionRule> {\n\t\tconst _freeShippingPromotionId = (freeShippingPromotionId as FreeShippingPromotion).id || freeShippingPromotionId as string\n\t\treturn this.resources.fetch<OrderAmountPromotionRule>({ type: 'order_amount_promotion_rules' }, `free_shipping_promotions/${_freeShippingPromotionId}/order_amount_promotion_rule`, params, options) as unknown as OrderAmountPromotionRule\n\t}\n\n\tasync sku_list_promotion_rule(freeShippingPromotionId: string | FreeShippingPromotion, params?: QueryParamsRetrieve<SkuListPromotionRule>, options?: ResourcesConfig): Promise<SkuListPromotionRule> {\n\t\tconst _freeShippingPromotionId = (freeShippingPromotionId as FreeShippingPromotion).id || freeShippingPromotionId as string\n\t\treturn this.resources.fetch<SkuListPromotionRule>({ type: 'sku_list_promotion_rules' }, `free_shipping_promotions/${_freeShippingPromotionId}/sku_list_promotion_rule`, params, options) as unknown as SkuListPromotionRule\n\t}\n\n\tasync coupon_codes_promotion_rule(freeShippingPromotionId: string | FreeShippingPromotion, params?: QueryParamsRetrieve<CouponCodesPromotionRule>, options?: ResourcesConfig): Promise<CouponCodesPromotionRule> {\n\t\tconst _freeShippingPromotionId = (freeShippingPromotionId as FreeShippingPromotion).id || freeShippingPromotionId as string\n\t\treturn this.resources.fetch<CouponCodesPromotionRule>({ type: 'coupon_codes_promotion_rules' }, `free_shipping_promotions/${_freeShippingPromotionId}/coupon_codes_promotion_rule`, params, options) as unknown as CouponCodesPromotionRule\n\t}\n\n\tasync custom_promotion_rule(freeShippingPromotionId: string | FreeShippingPromotion, params?: QueryParamsRetrieve<CustomPromotionRule>, options?: ResourcesConfig): Promise<CustomPromotionRule> {\n\t\tconst _freeShippingPromotionId = (freeShippingPromotionId as FreeShippingPromotion).id || freeShippingPromotionId as string\n\t\treturn this.resources.fetch<CustomPromotionRule>({ type: 'custom_promotion_rules' }, `free_shipping_promotions/${_freeShippingPromotionId}/custom_promotion_rule`, params, options) as unknown as CustomPromotionRule\n\t}\n\n\tasync sku_list(freeShippingPromotionId: string | FreeShippingPromotion, params?: QueryParamsRetrieve<SkuList>, options?: ResourcesConfig): Promise<SkuList> {\n\t\tconst _freeShippingPromotionId = (freeShippingPromotionId as FreeShippingPromotion).id || freeShippingPromotionId as string\n\t\treturn this.resources.fetch<SkuList>({ type: 'sku_lists' }, `free_shipping_promotions/${_freeShippingPromotionId}/sku_list`, params, options) as unknown as SkuList\n\t}\n\n\tasync coupons(freeShippingPromotionId: string | FreeShippingPromotion, params?: QueryParamsList<Coupon>, options?: ResourcesConfig): Promise<ListResponse<Coupon>> {\n\t\tconst _freeShippingPromotionId = (freeShippingPromotionId as FreeShippingPromotion).id || freeShippingPromotionId as string\n\t\treturn this.resources.fetch<Coupon>({ type: 'coupons' }, `free_shipping_promotions/${_freeShippingPromotionId}/coupons`, params, options) as unknown as ListResponse<Coupon>\n\t}\n\n\tasync attachments(freeShippingPromotionId: string | FreeShippingPromotion, params?: QueryParamsList<Attachment>, options?: ResourcesConfig): Promise<ListResponse<Attachment>> {\n\t\tconst _freeShippingPromotionId = (freeShippingPromotionId as FreeShippingPromotion).id || freeShippingPromotionId as string\n\t\treturn this.resources.fetch<Attachment>({ type: 'attachments' }, `free_shipping_promotions/${_freeShippingPromotionId}/attachments`, params, options) as unknown as ListResponse<Attachment>\n\t}\n\n\tasync events(freeShippingPromotionId: string | FreeShippingPromotion, params?: QueryParamsList<Event>, options?: ResourcesConfig): Promise<ListResponse<Event>> {\n\t\tconst _freeShippingPromotionId = (freeShippingPromotionId as FreeShippingPromotion).id || freeShippingPromotionId as string\n\t\treturn this.resources.fetch<Event>({ type: 'events' }, `free_shipping_promotions/${_freeShippingPromotionId}/events`, params, options) as unknown as ListResponse<Event>\n\t}\n\n\tasync tags(freeShippingPromotionId: string | FreeShippingPromotion, params?: QueryParamsList<Tag>, options?: ResourcesConfig): Promise<ListResponse<Tag>> {\n\t\tconst _freeShippingPromotionId = (freeShippingPromotionId as FreeShippingPromotion).id || freeShippingPromotionId as string\n\t\treturn this.resources.fetch<Tag>({ type: 'tags' }, `free_shipping_promotions/${_freeShippingPromotionId}/tags`, params, options) as unknown as ListResponse<Tag>\n\t}\n\n\tasync event_stores(freeShippingPromotionId: string | FreeShippingPromotion, params?: QueryParamsList<EventStore>, options?: ResourcesConfig): Promise<ListResponse<EventStore>> {\n\t\tconst _freeShippingPromotionId = (freeShippingPromotionId as FreeShippingPromotion).id || freeShippingPromotionId as string\n\t\treturn this.resources.fetch<EventStore>({ type: 'event_stores' }, `free_shipping_promotions/${_freeShippingPromotionId}/event_stores`, params, options) as unknown as ListResponse<EventStore>\n\t}\n\n\tasync _disable(id: string | FreeShippingPromotion, params?: QueryParamsRetrieve<FreeShippingPromotion>, options?: ResourcesConfig): Promise<FreeShippingPromotion> {\n\t\treturn this.resources.update<FreeShippingPromotionUpdate, FreeShippingPromotion>({ id: (typeof id === 'string')? id: id.id, type: FreeShippingPromotions.TYPE, _disable: true }, params, options)\n\t}\n\n\tasync _enable(id: string | FreeShippingPromotion, params?: QueryParamsRetrieve<FreeShippingPromotion>, options?: ResourcesConfig): Promise<FreeShippingPromotion> {\n\t\treturn this.resources.update<FreeShippingPromotionUpdate, FreeShippingPromotion>({ id: (typeof id === 'string')? id: id.id, type: FreeShippingPromotions.TYPE, _enable: true }, params, options)\n\t}\n\n\tasync _add_tags(id: string | FreeShippingPromotion, triggerValue: string, params?: QueryParamsRetrieve<FreeShippingPromotion>, options?: ResourcesConfig): Promise<FreeShippingPromotion> {\n\t\treturn this.resources.update<FreeShippingPromotionUpdate, FreeShippingPromotion>({ id: (typeof id === 'string')? id: id.id, type: FreeShippingPromotions.TYPE, _add_tags: triggerValue }, params, options)\n\t}\n\n\tasync _remove_tags(id: string | FreeShippingPromotion, triggerValue: string, params?: QueryParamsRetrieve<FreeShippingPromotion>, options?: ResourcesConfig): Promise<FreeShippingPromotion> {\n\t\treturn this.resources.update<FreeShippingPromotionUpdate, FreeShippingPromotion>({ id: (typeof id === 'string')? id: id.id, type: FreeShippingPromotions.TYPE, _remove_tags: triggerValue }, params, options)\n\t}\n\n\n\tisFreeShippingPromotion(resource: any): resource is FreeShippingPromotion {\n\t\treturn resource.type && (resource.type === FreeShippingPromotions.TYPE)\n\t}\n\n\n\trelationship(id: string | ResourceId | null): FreeShippingPromotionRel {\n\t\treturn super.relationshipOneToOne<FreeShippingPromotionRel>(id)\n\t}\n\n\trelationshipToMany(...ids: string[]): FreeShippingPromotionRel[] {\n\t\treturn super.relationshipOneToMany<FreeShippingPromotionRel>(...ids)\n\t}\n\n\n\ttype(): FreeShippingPromotionType {\n\t\treturn FreeShippingPromotions.TYPE\n\t}\n\n}\n\n\nconst instance = new FreeShippingPromotions()\nexport default instance\n\nexport type { FreeShippingPromotion, FreeShippingPromotionCreate, FreeShippingPromotions, FreeShippingPromotionType, FreeShippingPromotionUpdate }\n"]}
|