@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/imports.ts"],"names":[],"mappings":";;;AAmKA,IAAM,OAAA,GAAN,MAAM,QAAA,SAAgB,WAAA,CAAoB;AAAA,EAEzC,OAAgB,IAAA,GAAmB,SAAA;AAAA,EAEnC,MAAM,MAAA,CAAO,QAAA,EAAwB,MAAA,EAAsC,OAAA,EAA4C;AACtH,IAAA,OAAO,IAAA,CAAK,SAAA,CAAU,MAAA,CAA6B,EAAE,GAAG,QAAA,EAAU,IAAA,EAAM,QAAA,CAAQ,IAAA,EAAK,EAAG,MAAA,EAAQ,OAAO,CAAA;AAAA,EACxG;AAAA,EAEA,MAAM,MAAA,CAAO,QAAA,EAAwB,MAAA,EAAsC,OAAA,EAA4C;AACtH,IAAA,OAAO,IAAA,CAAK,SAAA,CAAU,MAAA,CAA6B,EAAE,GAAG,QAAA,EAAU,IAAA,EAAM,QAAA,CAAQ,IAAA,EAAK,EAAG,MAAA,EAAQ,OAAO,CAAA;AAAA,EACxG;AAAA,EAEA,MAAM,MAAA,CAAO,EAAA,EAAyB,OAAA,EAA0C;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;AACvD,IAAA,OAAO,KAAA,CAAM,qBAAgC,EAAE,CAAA;AAAA,EAChD;AAAA,EAEA,sBAAsB,GAAA,EAA4B;AACjD,IAAA,OAAO,KAAA,CAAM,qBAAA,CAAiC,GAAG,GAAG,CAAA;AAAA,EACrD;AAAA,EAGA,IAAA,GAAmB;AAClB,IAAA,OAAO,QAAA,CAAQ,IAAA;AAAA,EAChB;AAED,CAAA;AAGA,IAAM,QAAA,GAAW,IAAI,OAAA,EAAQ;AAC7B,IAAO,eAAA,GAAQ","file":"chunk-OFXYCDYF.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 { Event } from './events'\n\n\ntype ImportType = 'imports'\ntype ImportRel = ResourceRel & { type: ImportType }\n\n\nexport type ImportSort = Pick<Import, 'id' | 'resource_type' | 'format' | 'parent_resource_id' | 'status' | 'started_at' | 'completed_at' | 'interrupted_at' | 'inputs_size' | 'errors_count' | 'warnings_count' | 'destroyed_count' | 'processed_count' | 'attachment_url'> & ResourceSort\n// export type ImportFilter = Pick<Import, 'id' | 'resource_type' | 'format' | 'parent_resource_id' | 'status' | 'started_at' | 'completed_at' | 'interrupted_at' | 'inputs_size' | 'errors_count' | 'warnings_count' | 'destroyed_count' | 'processed_count' | 'errors_log' | 'warnings_log' | 'attachment_url'> & ResourceFilter\n\n\ninterface Import extends Resource {\n\t\n\treadonly type: ImportType\n\n\t/** \n\t * The type of resource being imported. One of 'addresses', 'tags', 'price_lists', 'line_items', 'orders', 'tax_categories', 'skus', 'shipping_categories', 'bundles', 'sku_lists', 'sku_list_items', 'stock_items', 'stock_locations', 'coupons', 'customers', 'customer_addresses', 'customer_payment_sources', 'customer_subscriptions', 'gift_cards', 'line_item_options', 'stock_transfers', 'sku_options', 'prices', or 'price_tiers'.\n\t * @example ```\"skus\"```\n\t */\n\tresource_type: 'addresses' | 'tags' | 'price_lists' | 'line_items' | 'orders' | 'tax_categories' | 'skus' | 'shipping_categories' | 'bundles' | 'sku_lists' | 'sku_list_items' | 'stock_items' | 'stock_locations' | 'coupons' | 'customers' | 'customer_addresses' | 'customer_payment_sources' | 'customer_subscriptions' | 'gift_cards' | 'line_item_options' | 'stock_transfers' | 'sku_options' | 'prices' | 'price_tiers'\n\t/** \n\t * The format of the import. One of 'csv', or 'json' (default).\n\t * @example ```\"json\"```\n\t */\n\tformat?: 'csv' | 'json' | null\n\t/** \n\t * The ID of the parent resource to be associated with imported data.\n\t * @example ```\"1234\"```\n\t */\n\tparent_resource_id?: string | null\n\t/** \n\t * The import job status. One of 'pending' (default), 'in_progress', 'interrupted', or 'completed'.\n\t * @example ```\"in_progress\"```\n\t */\n\tstatus: 'pending' | 'in_progress' | 'interrupted' | 'completed'\n\t/** \n\t * Time at which the import was started.\n\t * @example ```\"2018-01-01T12:00:00.000Z\"```\n\t */\n\tstarted_at?: string | null\n\t/** \n\t * Time at which the import was completed.\n\t * @example ```\"2018-01-01T12:00:00.000Z\"```\n\t */\n\tcompleted_at?: string | null\n\t/** \n\t * Time at which the import was interrupted.\n\t * @example ```\"2018-01-01T12:00:00.000Z\"```\n\t */\n\tinterrupted_at?: string | null\n\t/** \n\t * Array of objects representing the resources that are being imported.\n\t * @example ```[{\"code\":\"ABC\",\"name\":\"Foo\"},{\"code\":\"DEF\",\"name\":\"Bar\"}]```\n\t */\n\tinputs: Array<Record<string, any>>\n\t/** \n\t * Indicates the size of the objects to be imported.\n\t * @example ```300```\n\t */\n\tinputs_size?: number | null\n\t/** \n\t * Indicates the number of import errors, if any.\n\t * @example ```30```\n\t */\n\terrors_count?: number | null\n\t/** \n\t * Indicates the number of import warnings, if any.\n\t * @example ```1```\n\t */\n\twarnings_count?: number | null\n\t/** \n\t * Indicates the number of records that have been destroyed, if any.\n\t * @example ```99```\n\t */\n\tdestroyed_count?: number | null\n\t/** \n\t * Indicates the number of records that have been processed (created or updated).\n\t * @example ```270```\n\t */\n\tprocessed_count?: number | null\n\t/** \n\t * Contains the import errors, if any.\n\t * @example ```{\"ABC\":{\"name\":[\"has already been taken\"]}}```\n\t */\n\terrors_log?: Record<string, any> | null\n\t/** \n\t * Contains the import warnings, if any.\n\t * @example ```{\"ABC\":[\"could not be deleted\"]}```\n\t */\n\twarnings_log?: Record<string, any> | null\n\t/** \n\t * Indicates if the import should cleanup records that are not included in the inputs array.\n\t * @example ```true```\n\t */\n\tcleanup_records?: boolean | null\n\t/** \n\t * Disables the interruption of the import in case its errors exceeds the 10% threshold.\n\t * @example ```true```\n\t */\n\tskip_errors?: boolean | null\n\t/** \n\t * The URL the the raw inputs file, which will be generated at import start.\n\t * @example ```\"http://cl_imports.s3.amazonaws.com/\"```\n\t */\n\tattachment_url?: string | null\n\n\tevents?: Event[] | null\n\tevent_stores?: EventStore[] | null\n\n}\n\n\ninterface ImportCreate extends ResourceCreate {\n\t\n\t/** \n\t * The type of resource being imported. One of 'addresses', 'tags', 'price_lists', 'line_items', 'orders', 'tax_categories', 'skus', 'shipping_categories', 'bundles', 'sku_lists', 'sku_list_items', 'stock_items', 'stock_locations', 'coupons', 'customers', 'customer_addresses', 'customer_payment_sources', 'customer_subscriptions', 'gift_cards', 'line_item_options', 'stock_transfers', 'sku_options', 'prices', or 'price_tiers'.\n\t * @example ```\"skus\"```\n\t */\n\tresource_type: 'addresses' | 'tags' | 'price_lists' | 'line_items' | 'orders' | 'tax_categories' | 'skus' | 'shipping_categories' | 'bundles' | 'sku_lists' | 'sku_list_items' | 'stock_items' | 'stock_locations' | 'coupons' | 'customers' | 'customer_addresses' | 'customer_payment_sources' | 'customer_subscriptions' | 'gift_cards' | 'line_item_options' | 'stock_transfers' | 'sku_options' | 'prices' | 'price_tiers'\n\t/** \n\t * The format of the import. One of 'csv', or 'json' (default).\n\t * @example ```\"json\"```\n\t */\n\tformat?: 'csv' | 'json' | null\n\t/** \n\t * The ID of the parent resource to be associated with imported data.\n\t * @example ```\"1234\"```\n\t */\n\tparent_resource_id?: string | null\n\t/** \n\t * Array of objects representing the resources that are being imported.\n\t * @example ```[{\"code\":\"ABC\",\"name\":\"Foo\"},{\"code\":\"DEF\",\"name\":\"Bar\"}]```\n\t */\n\tinputs: Array<Record<string, any>>\n\t/** \n\t * Indicates if the import should cleanup records that are not included in the inputs array.\n\t * @example ```true```\n\t */\n\tcleanup_records?: boolean | null\n\t/** \n\t * Disables the interruption of the import in case its errors exceeds the 10% threshold.\n\t * @example ```true```\n\t */\n\tskip_errors?: boolean | null\n\t\n}\n\n\ninterface ImportUpdate extends ResourceUpdate {\n\t\n\t/** \n\t * Send this attribute if you want to mark status as 'interrupted'.\n\t * @example ```true```\n\t */\n\t_interrupt?: boolean | null\n\t\n}\n\n\nclass Imports extends ApiResource<Import> {\n\n\tstatic readonly TYPE: ImportType = 'imports' as const\n\n\tasync create(resource: ImportCreate, params?: QueryParamsRetrieve<Import>, options?: ResourcesConfig): Promise<Import> {\n\t\treturn this.resources.create<ImportCreate, Import>({ ...resource, type: Imports.TYPE }, params, options)\n\t}\n\n\tasync update(resource: ImportUpdate, params?: QueryParamsRetrieve<Import>, options?: ResourcesConfig): Promise<Import> {\n\t\treturn this.resources.update<ImportUpdate, Import>({ ...resource, type: Imports.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: Imports.TYPE } : id, options)\n\t}\n\n\tasync events(importId: string | Import, params?: QueryParamsList<Event>, options?: ResourcesConfig): Promise<ListResponse<Event>> {\n\t\tconst _importId = (importId as Import).id || importId as string\n\t\treturn this.resources.fetch<Event>({ type: 'events' }, `imports/${_importId}/events`, params, options) as unknown as ListResponse<Event>\n\t}\n\n\tasync event_stores(importId: string | Import, params?: QueryParamsList<EventStore>, options?: ResourcesConfig): Promise<ListResponse<EventStore>> {\n\t\tconst _importId = (importId as Import).id || importId as string\n\t\treturn this.resources.fetch<EventStore>({ type: 'event_stores' }, `imports/${_importId}/event_stores`, params, options) as unknown as ListResponse<EventStore>\n\t}\n\n\tasync _interrupt(id: string | Import, params?: QueryParamsRetrieve<Import>, options?: ResourcesConfig): Promise<Import> {\n\t\treturn this.resources.update<ImportUpdate, Import>({ id: (typeof id === 'string')? id: id.id, type: Imports.TYPE, _interrupt: true }, params, options)\n\t}\n\n\n\tisImport(resource: any): resource is Import {\n\t\treturn resource.type && (resource.type === Imports.TYPE)\n\t}\n\n\n\trelationship(id: string | ResourceId | null): ImportRel {\n\t\treturn super.relationshipOneToOne<ImportRel>(id)\n\t}\n\n\trelationshipToMany(...ids: string[]): ImportRel[] {\n\t\treturn super.relationshipOneToMany<ImportRel>(...ids)\n\t}\n\n\n\ttype(): ImportType {\n\t\treturn Imports.TYPE\n\t}\n\n}\n\n\nconst instance = new Imports()\nexport default instance\n\nexport type { Import, ImportCreate, Imports, ImportType, ImportUpdate }\n"]}
|
package/lib/chunk-ONK4A4VG.js
DELETED
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
import { ApiResource } from './chunk-USIBTSYD.js';
|
|
2
|
-
|
|
3
|
-
// src/resources/subscription_models.ts
|
|
4
|
-
var SubscriptionModels = class _SubscriptionModels extends ApiResource {
|
|
5
|
-
static TYPE = "subscription_models";
|
|
6
|
-
async create(resource, params, options) {
|
|
7
|
-
return this.resources.create({ ...resource, type: _SubscriptionModels.TYPE }, params, options);
|
|
8
|
-
}
|
|
9
|
-
async update(resource, params, options) {
|
|
10
|
-
return this.resources.update({ ...resource, type: _SubscriptionModels.TYPE }, params, options);
|
|
11
|
-
}
|
|
12
|
-
async delete(id, options) {
|
|
13
|
-
await this.resources.delete(typeof id === "string" ? { id, type: _SubscriptionModels.TYPE } : id, options);
|
|
14
|
-
}
|
|
15
|
-
async markets(subscriptionModelId, params, options) {
|
|
16
|
-
const _subscriptionModelId = subscriptionModelId.id || subscriptionModelId;
|
|
17
|
-
return this.resources.fetch({ type: "markets" }, `subscription_models/${_subscriptionModelId}/markets`, params, options);
|
|
18
|
-
}
|
|
19
|
-
async order_subscriptions(subscriptionModelId, params, options) {
|
|
20
|
-
const _subscriptionModelId = subscriptionModelId.id || subscriptionModelId;
|
|
21
|
-
return this.resources.fetch({ type: "order_subscriptions" }, `subscription_models/${_subscriptionModelId}/order_subscriptions`, params, options);
|
|
22
|
-
}
|
|
23
|
-
async attachments(subscriptionModelId, params, options) {
|
|
24
|
-
const _subscriptionModelId = subscriptionModelId.id || subscriptionModelId;
|
|
25
|
-
return this.resources.fetch({ type: "attachments" }, `subscription_models/${_subscriptionModelId}/attachments`, params, options);
|
|
26
|
-
}
|
|
27
|
-
async event_stores(subscriptionModelId, params, options) {
|
|
28
|
-
const _subscriptionModelId = subscriptionModelId.id || subscriptionModelId;
|
|
29
|
-
return this.resources.fetch({ type: "event_stores" }, `subscription_models/${_subscriptionModelId}/event_stores`, params, options);
|
|
30
|
-
}
|
|
31
|
-
isSubscriptionModel(resource) {
|
|
32
|
-
return resource.type && resource.type === _SubscriptionModels.TYPE;
|
|
33
|
-
}
|
|
34
|
-
relationship(id) {
|
|
35
|
-
return super.relationshipOneToOne(id);
|
|
36
|
-
}
|
|
37
|
-
relationshipToMany(...ids) {
|
|
38
|
-
return super.relationshipOneToMany(...ids);
|
|
39
|
-
}
|
|
40
|
-
type() {
|
|
41
|
-
return _SubscriptionModels.TYPE;
|
|
42
|
-
}
|
|
43
|
-
};
|
|
44
|
-
var instance = new SubscriptionModels();
|
|
45
|
-
var subscription_models_default = instance;
|
|
46
|
-
|
|
47
|
-
export { subscription_models_default };
|
|
48
|
-
//# sourceMappingURL=chunk-ONK4A4VG.js.map
|
|
49
|
-
//# sourceMappingURL=chunk-ONK4A4VG.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/resources/subscription_models.ts"],"names":[],"mappings":";;;AAkHA,IAAM,kBAAA,GAAN,MAAM,m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AA;AAGA,IAAM,QAAA,GAAW,IAAI,kBAAA,EAAmB;AACxC,IAAO,2BAAA,GAAQ","file":"chunk-ONK4A4VG.js","sourcesContent":["import type { QueryParamsList, QueryParamsRetrieve } from '../query'\nimport type { ListResponse, Resource, ResourceCreate, ResourceId, ResourceRel, ResourceSort, /* ResourceFilter */ ResourcesConfig, ResourceUpdate, } from '../resource'\nimport { ApiResource } from '../resource'\nimport type { Attachment } from './attachments'\nimport type { EventStore } from './event_stores'\nimport type { Market } from './markets'\nimport type { OrderSubscription } from './order_subscriptions'\n\n\ntype SubscriptionModelType = 'subscription_models'\ntype SubscriptionModelRel = ResourceRel & { type: SubscriptionModelType }\n\n\nexport type SubscriptionModelSort = Pick<SubscriptionModel, 'id' | 'name' | 'strategy'> & ResourceSort\n// export type SubscriptionModelFilter = Pick<SubscriptionModel, 'id' | 'name' | 'strategy' | 'auto_activate' | 'auto_cancel'> & ResourceFilter\n\n\ninterface SubscriptionModel extends Resource {\n\t\n\treadonly type: SubscriptionModelType\n\n\t/** \n\t * The subscription model's internal name.\n\t * @example ```\"EU Subscription Model\"```\n\t */\n\tname: string\n\t/** \n\t * The subscription model's strategy used to generate order subscriptions: one between 'by_frequency' (default) and 'by_line_items'.\n\t * @example ```\"by_frequency\"```\n\t */\n\tstrategy?: string | null\n\t/** \n\t * An object that contains the frequencies available for this subscription model. Supported ones are 'hourly', 'daily', 'weekly', 'monthly', 'two-month', 'three-month', 'four-month', 'six-month', 'yearly', or your custom crontab expression (min unit is hour).\n\t * @example ```[\"hourly\",\"10 * * * *\",\"weekly\",\"monthly\",\"two-month\"]```\n\t */\n\tfrequencies: string[]\n\t/** \n\t * Indicates if the created subscriptions will be activated considering the placed source order as its first run, default to true.\n\t * @example ```true```\n\t */\n\tauto_activate?: boolean | null\n\t/** \n\t * Indicates if the created subscriptions will be cancelled in case the source order is cancelled, default to false.\n\t */\n\tauto_cancel?: boolean | null\n\n\tmarkets?: Market[] | null\n\torder_subscriptions?: OrderSubscription[] | null\n\tattachments?: Attachment[] | null\n\tevent_stores?: EventStore[] | null\n\n}\n\n\ninterface SubscriptionModelCreate extends ResourceCreate {\n\t\n\t/** \n\t * The subscription model's internal name.\n\t * @example ```\"EU Subscription Model\"```\n\t */\n\tname: string\n\t/** \n\t * The subscription model's strategy used to generate order subscriptions: one between 'by_frequency' (default) and 'by_line_items'.\n\t * @example ```\"by_frequency\"```\n\t */\n\tstrategy?: string | null\n\t/** \n\t * An object that contains the frequencies available for this subscription model. Supported ones are 'hourly', 'daily', 'weekly', 'monthly', 'two-month', 'three-month', 'four-month', 'six-month', 'yearly', or your custom crontab expression (min unit is hour).\n\t * @example ```[\"hourly\",\"10 * * * *\",\"weekly\",\"monthly\",\"two-month\"]```\n\t */\n\tfrequencies: string[]\n\t/** \n\t * Indicates if the created subscriptions will be activated considering the placed source order as its first run, default to true.\n\t * @example ```true```\n\t */\n\tauto_activate?: boolean | null\n\t/** \n\t * Indicates if the created subscriptions will be cancelled in case the source order is cancelled, default to false.\n\t */\n\tauto_cancel?: boolean | null\n\t\n}\n\n\ninterface SubscriptionModelUpdate extends ResourceUpdate {\n\t\n\t/** \n\t * The subscription model's internal name.\n\t * @example ```\"EU Subscription Model\"```\n\t */\n\tname?: string | null\n\t/** \n\t * The subscription model's strategy used to generate order subscriptions: one between 'by_frequency' (default) and 'by_line_items'.\n\t * @example ```\"by_frequency\"```\n\t */\n\tstrategy?: string | null\n\t/** \n\t * An object that contains the frequencies available for this subscription model. Supported ones are 'hourly', 'daily', 'weekly', 'monthly', 'two-month', 'three-month', 'four-month', 'six-month', 'yearly', or your custom crontab expression (min unit is hour).\n\t * @example ```[\"hourly\",\"10 * * * *\",\"weekly\",\"monthly\",\"two-month\"]```\n\t */\n\tfrequencies?: string[] | null\n\t/** \n\t * Indicates if the created subscriptions will be activated considering the placed source order as its first run, default to true.\n\t * @example ```true```\n\t */\n\tauto_activate?: boolean | null\n\t/** \n\t * Indicates if the created subscriptions will be cancelled in case the source order is cancelled, default to false.\n\t */\n\tauto_cancel?: boolean | null\n\t\n}\n\n\nclass SubscriptionModels extends ApiResource<SubscriptionModel> {\n\n\tstatic readonly TYPE: SubscriptionModelType = 'subscription_models' as const\n\n\tasync create(resource: SubscriptionModelCreate, params?: QueryParamsRetrieve<SubscriptionModel>, options?: ResourcesConfig): Promise<SubscriptionModel> {\n\t\treturn this.resources.create<SubscriptionModelCreate, SubscriptionModel>({ ...resource, type: SubscriptionModels.TYPE }, params, options)\n\t}\n\n\tasync update(resource: SubscriptionModelUpdate, params?: QueryParamsRetrieve<SubscriptionModel>, options?: ResourcesConfig): Promise<SubscriptionModel> {\n\t\treturn this.resources.update<SubscriptionModelUpdate, SubscriptionModel>({ ...resource, type: SubscriptionModels.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: SubscriptionModels.TYPE } : id, options)\n\t}\n\n\tasync markets(subscriptionModelId: string | SubscriptionModel, params?: QueryParamsList<Market>, options?: ResourcesConfig): Promise<ListResponse<Market>> {\n\t\tconst _subscriptionModelId = (subscriptionModelId as SubscriptionModel).id || subscriptionModelId as string\n\t\treturn this.resources.fetch<Market>({ type: 'markets' }, `subscription_models/${_subscriptionModelId}/markets`, params, options) as unknown as ListResponse<Market>\n\t}\n\n\tasync order_subscriptions(subscriptionModelId: string | SubscriptionModel, params?: QueryParamsList<OrderSubscription>, options?: ResourcesConfig): Promise<ListResponse<OrderSubscription>> {\n\t\tconst _subscriptionModelId = (subscriptionModelId as SubscriptionModel).id || subscriptionModelId as string\n\t\treturn this.resources.fetch<OrderSubscription>({ type: 'order_subscriptions' }, `subscription_models/${_subscriptionModelId}/order_subscriptions`, params, options) as unknown as ListResponse<OrderSubscription>\n\t}\n\n\tasync attachments(subscriptionModelId: string | SubscriptionModel, params?: QueryParamsList<Attachment>, options?: ResourcesConfig): Promise<ListResponse<Attachment>> {\n\t\tconst _subscriptionModelId = (subscriptionModelId as SubscriptionModel).id || subscriptionModelId as string\n\t\treturn this.resources.fetch<Attachment>({ type: 'attachments' }, `subscription_models/${_subscriptionModelId}/attachments`, params, options) as unknown as ListResponse<Attachment>\n\t}\n\n\tasync event_stores(subscriptionModelId: string | SubscriptionModel, params?: QueryParamsList<EventStore>, options?: ResourcesConfig): Promise<ListResponse<EventStore>> {\n\t\tconst _subscriptionModelId = (subscriptionModelId as SubscriptionModel).id || subscriptionModelId as string\n\t\treturn this.resources.fetch<EventStore>({ type: 'event_stores' }, `subscription_models/${_subscriptionModelId}/event_stores`, params, options) as unknown as ListResponse<EventStore>\n\t}\n\n\n\tisSubscriptionModel(resource: any): resource is SubscriptionModel {\n\t\treturn resource.type && (resource.type === SubscriptionModels.TYPE)\n\t}\n\n\n\trelationship(id: string | ResourceId | null): SubscriptionModelRel {\n\t\treturn super.relationshipOneToOne<SubscriptionModelRel>(id)\n\t}\n\n\trelationshipToMany(...ids: string[]): SubscriptionModelRel[] {\n\t\treturn super.relationshipOneToMany<SubscriptionModelRel>(...ids)\n\t}\n\n\n\ttype(): SubscriptionModelType {\n\t\treturn SubscriptionModels.TYPE\n\t}\n\n}\n\n\nconst instance = new SubscriptionModels()\nexport default instance\n\nexport type { SubscriptionModel, SubscriptionModelCreate, SubscriptionModels, SubscriptionModelType, SubscriptionModelUpdate }\n"]}
|
package/lib/chunk-OOJKRV4I.js
DELETED
|
@@ -1,93 +0,0 @@
|
|
|
1
|
-
import { ApiResource } from './chunk-USIBTSYD.js';
|
|
2
|
-
|
|
3
|
-
// src/resources/fixed_amount_promotions.ts
|
|
4
|
-
var FixedAmountPromotions = class _FixedAmountPromotions extends ApiResource {
|
|
5
|
-
static TYPE = "fixed_amount_promotions";
|
|
6
|
-
async create(resource, params, options) {
|
|
7
|
-
return this.resources.create({ ...resource, type: _FixedAmountPromotions.TYPE }, params, options);
|
|
8
|
-
}
|
|
9
|
-
async update(resource, params, options) {
|
|
10
|
-
return this.resources.update({ ...resource, type: _FixedAmountPromotions.TYPE }, params, options);
|
|
11
|
-
}
|
|
12
|
-
async delete(id, options) {
|
|
13
|
-
await this.resources.delete(typeof id === "string" ? { id, type: _FixedAmountPromotions.TYPE } : id, options);
|
|
14
|
-
}
|
|
15
|
-
async market(fixedAmountPromotionId, params, options) {
|
|
16
|
-
const _fixedAmountPromotionId = fixedAmountPromotionId.id || fixedAmountPromotionId;
|
|
17
|
-
return this.resources.fetch({ type: "markets" }, `fixed_amount_promotions/${_fixedAmountPromotionId}/market`, params, options);
|
|
18
|
-
}
|
|
19
|
-
async order_amount_promotion_rule(fixedAmountPromotionId, params, options) {
|
|
20
|
-
const _fixedAmountPromotionId = fixedAmountPromotionId.id || fixedAmountPromotionId;
|
|
21
|
-
return this.resources.fetch({ type: "order_amount_promotion_rules" }, `fixed_amount_promotions/${_fixedAmountPromotionId}/order_amount_promotion_rule`, params, options);
|
|
22
|
-
}
|
|
23
|
-
async sku_list_promotion_rule(fixedAmountPromotionId, params, options) {
|
|
24
|
-
const _fixedAmountPromotionId = fixedAmountPromotionId.id || fixedAmountPromotionId;
|
|
25
|
-
return this.resources.fetch({ type: "sku_list_promotion_rules" }, `fixed_amount_promotions/${_fixedAmountPromotionId}/sku_list_promotion_rule`, params, options);
|
|
26
|
-
}
|
|
27
|
-
async coupon_codes_promotion_rule(fixedAmountPromotionId, params, options) {
|
|
28
|
-
const _fixedAmountPromotionId = fixedAmountPromotionId.id || fixedAmountPromotionId;
|
|
29
|
-
return this.resources.fetch({ type: "coupon_codes_promotion_rules" }, `fixed_amount_promotions/${_fixedAmountPromotionId}/coupon_codes_promotion_rule`, params, options);
|
|
30
|
-
}
|
|
31
|
-
async custom_promotion_rule(fixedAmountPromotionId, params, options) {
|
|
32
|
-
const _fixedAmountPromotionId = fixedAmountPromotionId.id || fixedAmountPromotionId;
|
|
33
|
-
return this.resources.fetch({ type: "custom_promotion_rules" }, `fixed_amount_promotions/${_fixedAmountPromotionId}/custom_promotion_rule`, params, options);
|
|
34
|
-
}
|
|
35
|
-
async sku_list(fixedAmountPromotionId, params, options) {
|
|
36
|
-
const _fixedAmountPromotionId = fixedAmountPromotionId.id || fixedAmountPromotionId;
|
|
37
|
-
return this.resources.fetch({ type: "sku_lists" }, `fixed_amount_promotions/${_fixedAmountPromotionId}/sku_list`, params, options);
|
|
38
|
-
}
|
|
39
|
-
async coupons(fixedAmountPromotionId, params, options) {
|
|
40
|
-
const _fixedAmountPromotionId = fixedAmountPromotionId.id || fixedAmountPromotionId;
|
|
41
|
-
return this.resources.fetch({ type: "coupons" }, `fixed_amount_promotions/${_fixedAmountPromotionId}/coupons`, params, options);
|
|
42
|
-
}
|
|
43
|
-
async attachments(fixedAmountPromotionId, params, options) {
|
|
44
|
-
const _fixedAmountPromotionId = fixedAmountPromotionId.id || fixedAmountPromotionId;
|
|
45
|
-
return this.resources.fetch({ type: "attachments" }, `fixed_amount_promotions/${_fixedAmountPromotionId}/attachments`, params, options);
|
|
46
|
-
}
|
|
47
|
-
async events(fixedAmountPromotionId, params, options) {
|
|
48
|
-
const _fixedAmountPromotionId = fixedAmountPromotionId.id || fixedAmountPromotionId;
|
|
49
|
-
return this.resources.fetch({ type: "events" }, `fixed_amount_promotions/${_fixedAmountPromotionId}/events`, params, options);
|
|
50
|
-
}
|
|
51
|
-
async tags(fixedAmountPromotionId, params, options) {
|
|
52
|
-
const _fixedAmountPromotionId = fixedAmountPromotionId.id || fixedAmountPromotionId;
|
|
53
|
-
return this.resources.fetch({ type: "tags" }, `fixed_amount_promotions/${_fixedAmountPromotionId}/tags`, params, options);
|
|
54
|
-
}
|
|
55
|
-
async event_stores(fixedAmountPromotionId, params, options) {
|
|
56
|
-
const _fixedAmountPromotionId = fixedAmountPromotionId.id || fixedAmountPromotionId;
|
|
57
|
-
return this.resources.fetch({ type: "event_stores" }, `fixed_amount_promotions/${_fixedAmountPromotionId}/event_stores`, params, options);
|
|
58
|
-
}
|
|
59
|
-
async skus(fixedAmountPromotionId, params, options) {
|
|
60
|
-
const _fixedAmountPromotionId = fixedAmountPromotionId.id || fixedAmountPromotionId;
|
|
61
|
-
return this.resources.fetch({ type: "skus" }, `fixed_amount_promotions/${_fixedAmountPromotionId}/skus`, params, options);
|
|
62
|
-
}
|
|
63
|
-
async _disable(id, params, options) {
|
|
64
|
-
return this.resources.update({ id: typeof id === "string" ? id : id.id, type: _FixedAmountPromotions.TYPE, _disable: true }, params, options);
|
|
65
|
-
}
|
|
66
|
-
async _enable(id, params, options) {
|
|
67
|
-
return this.resources.update({ id: typeof id === "string" ? id : id.id, type: _FixedAmountPromotions.TYPE, _enable: true }, params, options);
|
|
68
|
-
}
|
|
69
|
-
async _add_tags(id, triggerValue, params, options) {
|
|
70
|
-
return this.resources.update({ id: typeof id === "string" ? id : id.id, type: _FixedAmountPromotions.TYPE, _add_tags: triggerValue }, params, options);
|
|
71
|
-
}
|
|
72
|
-
async _remove_tags(id, triggerValue, params, options) {
|
|
73
|
-
return this.resources.update({ id: typeof id === "string" ? id : id.id, type: _FixedAmountPromotions.TYPE, _remove_tags: triggerValue }, params, options);
|
|
74
|
-
}
|
|
75
|
-
isFixedAmountPromotion(resource) {
|
|
76
|
-
return resource.type && resource.type === _FixedAmountPromotions.TYPE;
|
|
77
|
-
}
|
|
78
|
-
relationship(id) {
|
|
79
|
-
return super.relationshipOneToOne(id);
|
|
80
|
-
}
|
|
81
|
-
relationshipToMany(...ids) {
|
|
82
|
-
return super.relationshipOneToMany(...ids);
|
|
83
|
-
}
|
|
84
|
-
type() {
|
|
85
|
-
return _FixedAmountPromotions.TYPE;
|
|
86
|
-
}
|
|
87
|
-
};
|
|
88
|
-
var instance = new FixedAmountPromotions();
|
|
89
|
-
var fixed_amount_promotions_default = instance;
|
|
90
|
-
|
|
91
|
-
export { fixed_amount_promotions_default };
|
|
92
|
-
//# sourceMappingURL=chunk-OOJKRV4I.js.map
|
|
93
|
-
//# sourceMappingURL=chunk-OOJKRV4I.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":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AAiC;AAChC,IAAA,OAAO,sBAAA,CAAsB,IAAA;AAAA,EAC9B;AAED,CAAA;AAGA,IAAM,QAAA,GAAW,IAAI,qBAAA,EAAsB;AAC3C,IAAO,+BAAA,GAAQ","file":"chunk-OOJKRV4I.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 { Sku } from './skus'\nimport type { Tag, TagType } from './tags'\n\n\ntype FixedAmountPromotionType = 'fixed_amount_promotions'\ntype FixedAmountPromotionRel = ResourceRel & { type: FixedAmountPromotionType }\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 FixedAmountPromotionSort = Pick<FixedAmountPromotion, '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 FixedAmountPromotionFilter = Pick<FixedAmountPromotion, '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 FixedAmountPromotion extends Resource {\n\t\n\treadonly type: FixedAmountPromotionType\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\t/** \n\t * The discount fixed amount to be applied, in cents.\n\t * @example ```1000```\n\t */\n\tfixed_amount_cents: number\n\t/** \n\t * The discount fixed amount to be applied, float.\n\t * @example ```10```\n\t */\n\tfixed_amount_float?: number | null\n\t/** \n\t * The discount fixed amount to be applied, formatted.\n\t * @example ```\"€10,00\"```\n\t */\n\tformatted_fixed_amount?: 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\tskus?: Sku[] | null\n\n}\n\n\ninterface FixedAmountPromotionCreate 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\t/** \n\t * The discount fixed amount to be applied, in cents.\n\t * @example ```1000```\n\t */\n\tfixed_amount_cents: number\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 FixedAmountPromotionUpdate 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\t/** \n\t * The discount fixed amount to be applied, in cents.\n\t * @example ```1000```\n\t */\n\tfixed_amount_cents?: number | 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 FixedAmountPromotions extends ApiResource<FixedAmountPromotion> {\n\n\tstatic readonly TYPE: FixedAmountPromotionType = 'fixed_amount_promotions' as const\n\n\tasync create(resource: FixedAmountPromotionCreate, params?: QueryParamsRetrieve<FixedAmountPromotion>, options?: ResourcesConfig): Promise<FixedAmountPromotion> {\n\t\treturn this.resources.create<FixedAmountPromotionCreate, FixedAmountPromotion>({ ...resource, type: FixedAmountPromotions.TYPE }, params, options)\n\t}\n\n\tasync update(resource: FixedAmountPromotionUpdate, params?: QueryParamsRetrieve<FixedAmountPromotion>, options?: ResourcesConfig): Promise<FixedAmountPromotion> {\n\t\treturn this.resources.update<FixedAmountPromotionUpdate, FixedAmountPromotion>({ ...resource, type: FixedAmountPromotions.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: FixedAmountPromotions.TYPE } : id, options)\n\t}\n\n\tasync market(fixedAmountPromotionId: string | FixedAmountPromotion, params?: QueryParamsRetrieve<Market>, options?: ResourcesConfig): Promise<Market> {\n\t\tconst _fixedAmountPromotionId = (fixedAmountPromotionId as FixedAmountPromotion).id || fixedAmountPromotionId as string\n\t\treturn this.resources.fetch<Market>({ type: 'markets' }, `fixed_amount_promotions/${_fixedAmountPromotionId}/market`, params, options) as unknown as Market\n\t}\n\n\tasync order_amount_promotion_rule(fixedAmountPromotionId: string | FixedAmountPromotion, params?: QueryParamsRetrieve<OrderAmountPromotionRule>, options?: ResourcesConfig): Promise<OrderAmountPromotionRule> {\n\t\tconst _fixedAmountPromotionId = (fixedAmountPromotionId as FixedAmountPromotion).id || fixedAmountPromotionId as string\n\t\treturn this.resources.fetch<OrderAmountPromotionRule>({ type: 'order_amount_promotion_rules' }, `fixed_amount_promotions/${_fixedAmountPromotionId}/order_amount_promotion_rule`, params, options) as unknown as OrderAmountPromotionRule\n\t}\n\n\tasync sku_list_promotion_rule(fixedAmountPromotionId: string | FixedAmountPromotion, params?: QueryParamsRetrieve<SkuListPromotionRule>, options?: ResourcesConfig): Promise<SkuListPromotionRule> {\n\t\tconst _fixedAmountPromotionId = (fixedAmountPromotionId as FixedAmountPromotion).id || fixedAmountPromotionId as string\n\t\treturn this.resources.fetch<SkuListPromotionRule>({ type: 'sku_list_promotion_rules' }, `fixed_amount_promotions/${_fixedAmountPromotionId}/sku_list_promotion_rule`, params, options) as unknown as SkuListPromotionRule\n\t}\n\n\tasync coupon_codes_promotion_rule(fixedAmountPromotionId: string | FixedAmountPromotion, params?: QueryParamsRetrieve<CouponCodesPromotionRule>, options?: ResourcesConfig): Promise<CouponCodesPromotionRule> {\n\t\tconst _fixedAmountPromotionId = (fixedAmountPromotionId as FixedAmountPromotion).id || fixedAmountPromotionId as string\n\t\treturn this.resources.fetch<CouponCodesPromotionRule>({ type: 'coupon_codes_promotion_rules' }, `fixed_amount_promotions/${_fixedAmountPromotionId}/coupon_codes_promotion_rule`, params, options) as unknown as CouponCodesPromotionRule\n\t}\n\n\tasync custom_promotion_rule(fixedAmountPromotionId: string | FixedAmountPromotion, params?: QueryParamsRetrieve<CustomPromotionRule>, options?: ResourcesConfig): Promise<CustomPromotionRule> {\n\t\tconst _fixedAmountPromotionId = (fixedAmountPromotionId as FixedAmountPromotion).id || fixedAmountPromotionId as string\n\t\treturn this.resources.fetch<CustomPromotionRule>({ type: 'custom_promotion_rules' }, `fixed_amount_promotions/${_fixedAmountPromotionId}/custom_promotion_rule`, params, options) as unknown as CustomPromotionRule\n\t}\n\n\tasync sku_list(fixedAmountPromotionId: string | FixedAmountPromotion, params?: QueryParamsRetrieve<SkuList>, options?: ResourcesConfig): Promise<SkuList> {\n\t\tconst _fixedAmountPromotionId = (fixedAmountPromotionId as FixedAmountPromotion).id || fixedAmountPromotionId as string\n\t\treturn this.resources.fetch<SkuList>({ type: 'sku_lists' }, `fixed_amount_promotions/${_fixedAmountPromotionId}/sku_list`, params, options) as unknown as SkuList\n\t}\n\n\tasync coupons(fixedAmountPromotionId: string | FixedAmountPromotion, params?: QueryParamsList<Coupon>, options?: ResourcesConfig): Promise<ListResponse<Coupon>> {\n\t\tconst _fixedAmountPromotionId = (fixedAmountPromotionId as FixedAmountPromotion).id || fixedAmountPromotionId as string\n\t\treturn this.resources.fetch<Coupon>({ type: 'coupons' }, `fixed_amount_promotions/${_fixedAmountPromotionId}/coupons`, params, options) as unknown as ListResponse<Coupon>\n\t}\n\n\tasync attachments(fixedAmountPromotionId: string | FixedAmountPromotion, params?: QueryParamsList<Attachment>, options?: ResourcesConfig): Promise<ListResponse<Attachment>> {\n\t\tconst _fixedAmountPromotionId = (fixedAmountPromotionId as FixedAmountPromotion).id || fixedAmountPromotionId as string\n\t\treturn this.resources.fetch<Attachment>({ type: 'attachments' }, `fixed_amount_promotions/${_fixedAmountPromotionId}/attachments`, params, options) as unknown as ListResponse<Attachment>\n\t}\n\n\tasync events(fixedAmountPromotionId: string | FixedAmountPromotion, params?: QueryParamsList<Event>, options?: ResourcesConfig): Promise<ListResponse<Event>> {\n\t\tconst _fixedAmountPromotionId = (fixedAmountPromotionId as FixedAmountPromotion).id || fixedAmountPromotionId as string\n\t\treturn this.resources.fetch<Event>({ type: 'events' }, `fixed_amount_promotions/${_fixedAmountPromotionId}/events`, params, options) as unknown as ListResponse<Event>\n\t}\n\n\tasync tags(fixedAmountPromotionId: string | FixedAmountPromotion, params?: QueryParamsList<Tag>, options?: ResourcesConfig): Promise<ListResponse<Tag>> {\n\t\tconst _fixedAmountPromotionId = (fixedAmountPromotionId as FixedAmountPromotion).id || fixedAmountPromotionId as string\n\t\treturn this.resources.fetch<Tag>({ type: 'tags' }, `fixed_amount_promotions/${_fixedAmountPromotionId}/tags`, params, options) as unknown as ListResponse<Tag>\n\t}\n\n\tasync event_stores(fixedAmountPromotionId: string | FixedAmountPromotion, params?: QueryParamsList<EventStore>, options?: ResourcesConfig): Promise<ListResponse<EventStore>> {\n\t\tconst _fixedAmountPromotionId = (fixedAmountPromotionId as FixedAmountPromotion).id || fixedAmountPromotionId as string\n\t\treturn this.resources.fetch<EventStore>({ type: 'event_stores' }, `fixed_amount_promotions/${_fixedAmountPromotionId}/event_stores`, params, options) as unknown as ListResponse<EventStore>\n\t}\n\n\tasync skus(fixedAmountPromotionId: string | FixedAmountPromotion, params?: QueryParamsList<Sku>, options?: ResourcesConfig): Promise<ListResponse<Sku>> {\n\t\tconst _fixedAmountPromotionId = (fixedAmountPromotionId as FixedAmountPromotion).id || fixedAmountPromotionId as string\n\t\treturn this.resources.fetch<Sku>({ type: 'skus' }, `fixed_amount_promotions/${_fixedAmountPromotionId}/skus`, params, options) as unknown as ListResponse<Sku>\n\t}\n\n\tasync _disable(id: string | FixedAmountPromotion, params?: QueryParamsRetrieve<FixedAmountPromotion>, options?: ResourcesConfig): Promise<FixedAmountPromotion> {\n\t\treturn this.resources.update<FixedAmountPromotionUpdate, FixedAmountPromotion>({ id: (typeof id === 'string')? id: id.id, type: FixedAmountPromotions.TYPE, _disable: true }, params, options)\n\t}\n\n\tasync _enable(id: string | FixedAmountPromotion, params?: QueryParamsRetrieve<FixedAmountPromotion>, options?: ResourcesConfig): Promise<FixedAmountPromotion> {\n\t\treturn this.resources.update<FixedAmountPromotionUpdate, FixedAmountPromotion>({ id: (typeof id === 'string')? id: id.id, type: FixedAmountPromotions.TYPE, _enable: true }, params, options)\n\t}\n\n\tasync _add_tags(id: string | FixedAmountPromotion, triggerValue: string, params?: QueryParamsRetrieve<FixedAmountPromotion>, options?: ResourcesConfig): Promise<FixedAmountPromotion> {\n\t\treturn this.resources.update<FixedAmountPromotionUpdate, FixedAmountPromotion>({ id: (typeof id === 'string')? id: id.id, type: FixedAmountPromotions.TYPE, _add_tags: triggerValue }, params, options)\n\t}\n\n\tasync _remove_tags(id: string | FixedAmountPromotion, triggerValue: string, params?: QueryParamsRetrieve<FixedAmountPromotion>, options?: ResourcesConfig): Promise<FixedAmountPromotion> {\n\t\treturn this.resources.update<FixedAmountPromotionUpdate, FixedAmountPromotion>({ id: (typeof id === 'string')? id: id.id, type: FixedAmountPromotions.TYPE, _remove_tags: triggerValue }, params, options)\n\t}\n\n\n\tisFixedAmountPromotion(resource: any): resource is FixedAmountPromotion {\n\t\treturn resource.type && (resource.type === FixedAmountPromotions.TYPE)\n\t}\n\n\n\trelationship(id: string | ResourceId | null): FixedAmountPromotionRel {\n\t\treturn super.relationshipOneToOne<FixedAmountPromotionRel>(id)\n\t}\n\n\trelationshipToMany(...ids: string[]): FixedAmountPromotionRel[] {\n\t\treturn super.relationshipOneToMany<FixedAmountPromotionRel>(...ids)\n\t}\n\n\n\ttype(): FixedAmountPromotionType {\n\t\treturn FixedAmountPromotions.TYPE\n\t}\n\n}\n\n\nconst instance = new FixedAmountPromotions()\nexport default instance\n\nexport type { FixedAmountPromotion, FixedAmountPromotionCreate, FixedAmountPromotions, FixedAmountPromotionType, FixedAmountPromotionUpdate }\n"]}
|
package/lib/chunk-OXGE4UIS.cjs
DELETED
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
var chunkY56DKJ4Z_cjs = require('./chunk-Y56DKJ4Z.cjs');
|
|
4
|
-
|
|
5
|
-
// src/resources/external_payments.ts
|
|
6
|
-
var ExternalPayments = class _ExternalPayments extends chunkY56DKJ4Z_cjs.ApiResource {
|
|
7
|
-
static TYPE = "external_payments";
|
|
8
|
-
async create(resource, params, options) {
|
|
9
|
-
return this.resources.create({ ...resource, type: _ExternalPayments.TYPE }, params, options);
|
|
10
|
-
}
|
|
11
|
-
async update(resource, params, options) {
|
|
12
|
-
return this.resources.update({ ...resource, type: _ExternalPayments.TYPE }, params, options);
|
|
13
|
-
}
|
|
14
|
-
async delete(id, options) {
|
|
15
|
-
await this.resources.delete(typeof id === "string" ? { id, type: _ExternalPayments.TYPE } : id, options);
|
|
16
|
-
}
|
|
17
|
-
async order(externalPaymentId, params, options) {
|
|
18
|
-
const _externalPaymentId = externalPaymentId.id || externalPaymentId;
|
|
19
|
-
return this.resources.fetch({ type: "orders" }, `external_payments/${_externalPaymentId}/order`, params, options);
|
|
20
|
-
}
|
|
21
|
-
async payment_gateway(externalPaymentId, params, options) {
|
|
22
|
-
const _externalPaymentId = externalPaymentId.id || externalPaymentId;
|
|
23
|
-
return this.resources.fetch({ type: "payment_gateways" }, `external_payments/${_externalPaymentId}/payment_gateway`, params, options);
|
|
24
|
-
}
|
|
25
|
-
async wallet(externalPaymentId, params, options) {
|
|
26
|
-
const _externalPaymentId = externalPaymentId.id || externalPaymentId;
|
|
27
|
-
return this.resources.fetch({ type: "customer_payment_sources" }, `external_payments/${_externalPaymentId}/wallet`, params, options);
|
|
28
|
-
}
|
|
29
|
-
async event_stores(externalPaymentId, params, options) {
|
|
30
|
-
const _externalPaymentId = externalPaymentId.id || externalPaymentId;
|
|
31
|
-
return this.resources.fetch({ type: "event_stores" }, `external_payments/${_externalPaymentId}/event_stores`, params, options);
|
|
32
|
-
}
|
|
33
|
-
isExternalPayment(resource) {
|
|
34
|
-
return resource.type && resource.type === _ExternalPayments.TYPE;
|
|
35
|
-
}
|
|
36
|
-
relationship(id) {
|
|
37
|
-
return super.relationshipOneToOne(id);
|
|
38
|
-
}
|
|
39
|
-
relationshipToMany(...ids) {
|
|
40
|
-
return super.relationshipOneToMany(...ids);
|
|
41
|
-
}
|
|
42
|
-
type() {
|
|
43
|
-
return _ExternalPayments.TYPE;
|
|
44
|
-
}
|
|
45
|
-
};
|
|
46
|
-
var instance = new ExternalPayments();
|
|
47
|
-
var external_payments_default = instance;
|
|
48
|
-
|
|
49
|
-
exports.external_payments_default = external_payments_default;
|
|
50
|
-
//# sourceMappingURL=chunk-OXGE4UIS.cjs.map
|
|
51
|
-
//# sourceMappingURL=chunk-OXGE4UIS.cjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/resources/external_payments.ts"],"names":["ApiResource"],"mappings":";;;;;AA6EA,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,C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OAAO,IAAA,CAAK,SAAA,CAAU,KAAA,CAAkB,EAAE,IAAA,EAAM,cAAA,EAAe,EAAG,CAAA,kBAAA,EAAqB,kBAAkB,CAAA,aAAA,CAAA,EAAiB,MAAA,EAAQ,OAAO,CAAA;AAAA,EAC1I;AAAA,EAGA,kBAAkB,QAAA,EAA4C;AAC7D,IAAA,OAAO,QAAA,CAAS,IAAA,IAAS,QAAA,CAAS,IAAA,KAAS,iBAAA,CAAiB,IAAA;AAAA,EAC7D;AAAA,EAGA,aAAa,EAAA,EAAoD;AAChE,IAAA,OAAO,KAAA,CAAM,qBAAyC,EAAE,CAAA;AAAA,EACzD;AAAA,EAEA,sBAAsB,GAAA,EAAqC;AAC1D,IAAA,OAAO,KAAA,CAAM,qBAAA,CAA0C,GAAG,GAAG,CAAA;AAAA,EAC9D;AAAA,EAGA,IAAA,GAA4B;AAC3B,IAAA,OAAO,iBAAA,CAAiB,IAAA;AAAA,EACzB;AAED,CAAA;AAGA,IAAM,QAAA,GAAW,IAAI,gBAAA,EAAiB;AACtC,IAAO,yBAAA,GAAQ","file":"chunk-OXGE4UIS.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 { CustomerPaymentSource } from './customer_payment_sources'\nimport type { EventStore } from './event_stores'\nimport type { Order, OrderType } from './orders'\nimport type { PaymentGateway } from './payment_gateways'\n\n\ntype ExternalPaymentType = 'external_payments'\ntype ExternalPaymentRel = ResourceRel & { type: ExternalPaymentType }\ntype OrderRel = ResourceRel & { type: OrderType }\n\n\nexport type ExternalPaymentSort = Pick<ExternalPayment, 'id'> & ResourceSort\n// export type ExternalPaymentFilter = Pick<ExternalPayment, 'id' | 'payment_source_token'> & ResourceFilter\n\n\ninterface ExternalPayment extends Resource {\n\t\n\treadonly type: ExternalPaymentType\n\n\t/** \n\t * The payment source token, as generated by the external gateway SDK. Credit Card numbers are rejected.\n\t * @example ```\"xxxx.yyyy.zzzz\"```\n\t */\n\tpayment_source_token: string\n\t/** \n\t * External payment options.\n\t * @example ```{\"foo\":\"bar\"}```\n\t */\n\toptions?: Record<string, any> | null\n\t/** \n\t * Information about the payment instrument used in the transaction.\n\t * @example ```{\"issuer\":\"cl bank\",\"card_type\":\"visa\"}```\n\t */\n\tpayment_instrument?: Record<string, any> | null\n\n\torder?: Order | null\n\tpayment_gateway?: PaymentGateway | null\n\twallet?: CustomerPaymentSource | null\n\tevent_stores?: EventStore[] | null\n\n}\n\n\ninterface ExternalPaymentCreate extends ResourceCreate {\n\t\n\t/** \n\t * The payment source token, as generated by the external gateway SDK. Credit Card numbers are rejected.\n\t * @example ```\"xxxx.yyyy.zzzz\"```\n\t */\n\tpayment_source_token: string\n\t/** \n\t * External payment options.\n\t * @example ```{\"foo\":\"bar\"}```\n\t */\n\toptions?: Record<string, any> | null\n\n\torder: OrderRel\n\n}\n\n\ninterface ExternalPaymentUpdate extends ResourceUpdate {\n\t\n\t/** \n\t * External payment options.\n\t * @example ```{\"foo\":\"bar\"}```\n\t */\n\toptions?: Record<string, any> | null\n\n\torder?: OrderRel | null\n\n}\n\n\nclass ExternalPayments extends ApiResource<ExternalPayment> {\n\n\tstatic readonly TYPE: ExternalPaymentType = 'external_payments' as const\n\n\tasync create(resource: ExternalPaymentCreate, params?: QueryParamsRetrieve<ExternalPayment>, options?: ResourcesConfig): Promise<ExternalPayment> {\n\t\treturn this.resources.create<ExternalPaymentCreate, ExternalPayment>({ ...resource, type: ExternalPayments.TYPE }, params, options)\n\t}\n\n\tasync update(resource: ExternalPaymentUpdate, params?: QueryParamsRetrieve<ExternalPayment>, options?: ResourcesConfig): Promise<ExternalPayment> {\n\t\treturn this.resources.update<ExternalPaymentUpdate, ExternalPayment>({ ...resource, type: ExternalPayments.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: ExternalPayments.TYPE } : id, options)\n\t}\n\n\tasync order(externalPaymentId: string | ExternalPayment, params?: QueryParamsRetrieve<Order>, options?: ResourcesConfig): Promise<Order> {\n\t\tconst _externalPaymentId = (externalPaymentId as ExternalPayment).id || externalPaymentId as string\n\t\treturn this.resources.fetch<Order>({ type: 'orders' }, `external_payments/${_externalPaymentId}/order`, params, options) as unknown as Order\n\t}\n\n\tasync payment_gateway(externalPaymentId: string | ExternalPayment, params?: QueryParamsRetrieve<PaymentGateway>, options?: ResourcesConfig): Promise<PaymentGateway> {\n\t\tconst _externalPaymentId = (externalPaymentId as ExternalPayment).id || externalPaymentId as string\n\t\treturn this.resources.fetch<PaymentGateway>({ type: 'payment_gateways' }, `external_payments/${_externalPaymentId}/payment_gateway`, params, options) as unknown as PaymentGateway\n\t}\n\n\tasync wallet(externalPaymentId: string | ExternalPayment, params?: QueryParamsRetrieve<CustomerPaymentSource>, options?: ResourcesConfig): Promise<CustomerPaymentSource> {\n\t\tconst _externalPaymentId = (externalPaymentId as ExternalPayment).id || externalPaymentId as string\n\t\treturn this.resources.fetch<CustomerPaymentSource>({ type: 'customer_payment_sources' }, `external_payments/${_externalPaymentId}/wallet`, params, options) as unknown as CustomerPaymentSource\n\t}\n\n\tasync event_stores(externalPaymentId: string | ExternalPayment, params?: QueryParamsList<EventStore>, options?: ResourcesConfig): Promise<ListResponse<EventStore>> {\n\t\tconst _externalPaymentId = (externalPaymentId as ExternalPayment).id || externalPaymentId as string\n\t\treturn this.resources.fetch<EventStore>({ type: 'event_stores' }, `external_payments/${_externalPaymentId}/event_stores`, params, options) as unknown as ListResponse<EventStore>\n\t}\n\n\n\tisExternalPayment(resource: any): resource is ExternalPayment {\n\t\treturn resource.type && (resource.type === ExternalPayments.TYPE)\n\t}\n\n\n\trelationship(id: string | ResourceId | null): ExternalPaymentRel {\n\t\treturn super.relationshipOneToOne<ExternalPaymentRel>(id)\n\t}\n\n\trelationshipToMany(...ids: string[]): ExternalPaymentRel[] {\n\t\treturn super.relationshipOneToMany<ExternalPaymentRel>(...ids)\n\t}\n\n\n\ttype(): ExternalPaymentType {\n\t\treturn ExternalPayments.TYPE\n\t}\n\n}\n\n\nconst instance = new ExternalPayments()\nexport default instance\n\nexport type { ExternalPayment, ExternalPaymentCreate, ExternalPayments, ExternalPaymentType, ExternalPaymentUpdate }\n"]}
|
package/lib/chunk-P2SHNYXZ.cjs
DELETED
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
var chunkY56DKJ4Z_cjs = require('./chunk-Y56DKJ4Z.cjs');
|
|
4
|
-
|
|
5
|
-
// src/resources/paypal_payments.ts
|
|
6
|
-
var PaypalPayments = class _PaypalPayments extends chunkY56DKJ4Z_cjs.ApiResource {
|
|
7
|
-
static TYPE = "paypal_payments";
|
|
8
|
-
async create(resource, params, options) {
|
|
9
|
-
return this.resources.create({ ...resource, type: _PaypalPayments.TYPE }, params, options);
|
|
10
|
-
}
|
|
11
|
-
async update(resource, params, options) {
|
|
12
|
-
return this.resources.update({ ...resource, type: _PaypalPayments.TYPE }, params, options);
|
|
13
|
-
}
|
|
14
|
-
async delete(id, options) {
|
|
15
|
-
await this.resources.delete(typeof id === "string" ? { id, type: _PaypalPayments.TYPE } : id, options);
|
|
16
|
-
}
|
|
17
|
-
async order(paypalPaymentId, params, options) {
|
|
18
|
-
const _paypalPaymentId = paypalPaymentId.id || paypalPaymentId;
|
|
19
|
-
return this.resources.fetch({ type: "orders" }, `paypal_payments/${_paypalPaymentId}/order`, params, options);
|
|
20
|
-
}
|
|
21
|
-
async payment_gateway(paypalPaymentId, params, options) {
|
|
22
|
-
const _paypalPaymentId = paypalPaymentId.id || paypalPaymentId;
|
|
23
|
-
return this.resources.fetch({ type: "payment_gateways" }, `paypal_payments/${_paypalPaymentId}/payment_gateway`, params, options);
|
|
24
|
-
}
|
|
25
|
-
async event_stores(paypalPaymentId, params, options) {
|
|
26
|
-
const _paypalPaymentId = paypalPaymentId.id || paypalPaymentId;
|
|
27
|
-
return this.resources.fetch({ type: "event_stores" }, `paypal_payments/${_paypalPaymentId}/event_stores`, params, options);
|
|
28
|
-
}
|
|
29
|
-
isPaypalPayment(resource) {
|
|
30
|
-
return resource.type && resource.type === _PaypalPayments.TYPE;
|
|
31
|
-
}
|
|
32
|
-
relationship(id) {
|
|
33
|
-
return super.relationshipOneToOne(id);
|
|
34
|
-
}
|
|
35
|
-
relationshipToMany(...ids) {
|
|
36
|
-
return super.relationshipOneToMany(...ids);
|
|
37
|
-
}
|
|
38
|
-
type() {
|
|
39
|
-
return _PaypalPayments.TYPE;
|
|
40
|
-
}
|
|
41
|
-
};
|
|
42
|
-
var instance = new PaypalPayments();
|
|
43
|
-
var paypal_payments_default = instance;
|
|
44
|
-
|
|
45
|
-
exports.paypal_payments_default = paypal_payments_default;
|
|
46
|
-
//# sourceMappingURL=chunk-P2SHNYXZ.cjs.map
|
|
47
|
-
//# sourceMappingURL=chunk-P2SHNYXZ.cjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/resources/paypal_payments.ts"],"names":["ApiResource"],"mappings":";;;;;AAkHA,IAAM,cAAA,GAAN,MAAM,eAAA,SAAuBA,6BAAA,CAA2B;AAAA,EAEvD,OAAgB,IAAA,GAA0B,iBAAA;AAAA,EAE1C,MAAM,MAAA,CAAO,QAAA,EAA+B,MAAA,EAA6C,OAAA,EAAmD;AAC3I,IAAA,OAAO,IAAA,CAAK,SAAA,CAAU,MAAA,CAA2C,EAAE,GAAG,QAAA,EAAU,IAAA,EAAM,eAAA,CAAe,IAAA,EAAK,EAAG,MAAA,EAAQ,OAAO,CAAA;AAAA,EAC7H;AAAA,EAEA,MAAM,MAAA,CAAO,QAAA,EAA+B,MAAA,EAA6C,OAAA,EAAmD;AAC3I,IAAA,OAAO,IAAA,CAAK,SAAA,CAAU,MAAA,CAA2C,EAAE,G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,MAAA,EAAQ,OAAO,CAAA;AAAA,EACtI;AAAA,EAGA,gBAAgB,QAAA,EAA0C;AACzD,IAAA,OAAO,QAAA,CAAS,IAAA,IAAS,QAAA,CAAS,IAAA,KAAS,eAAA,CAAe,IAAA;AAAA,EAC3D;AAAA,EAGA,aAAa,EAAA,EAAkD;AAC9D,IAAA,OAAO,KAAA,CAAM,qBAAuC,EAAE,CAAA;AAAA,EACvD;AAAA,EAEA,sBAAsB,GAAA,EAAmC;AACxD,IAAA,OAAO,KAAA,CAAM,qBAAA,CAAwC,GAAG,GAAG,CAAA;AAAA,EAC5D;AAAA,EAGA,IAAA,GAA0B;AACzB,IAAA,OAAO,eAAA,CAAe,IAAA;AAAA,EACvB;AAED,CAAA;AAGA,IAAM,QAAA,GAAW,IAAI,cAAA,EAAe;AACpC,IAAO,uBAAA,GAAQ","file":"chunk-P2SHNYXZ.cjs","sourcesContent":["import type { QueryParamsList, QueryParamsRetrieve } from '../query'\nimport type { ListResponse, Resource, ResourceCreate, ResourceId, ResourceRel, ResourceSort, /* ResourceFilter */ ResourcesConfig, ResourceUpdate, } from '../resource'\nimport { ApiResource } from '../resource'\nimport type { EventStore } from './event_stores'\nimport type { Order, OrderType } from './orders'\nimport type { PaymentGateway } from './payment_gateways'\n\n\ntype PaypalPaymentType = 'paypal_payments'\ntype PaypalPaymentRel = ResourceRel & { type: PaypalPaymentType }\ntype OrderRel = ResourceRel & { type: OrderType }\n\n\nexport type PaypalPaymentSort = Pick<PaypalPayment, 'id'> & ResourceSort\n// export type PaypalPaymentFilter = Pick<PaypalPayment, 'id'> & ResourceFilter\n\n\ninterface PaypalPayment extends Resource {\n\t\n\treadonly type: PaypalPaymentType\n\n\t/** \n\t * The URL where the payer is redirected after they approve the payment.\n\t * @example ```\"https://yourdomain.com/thankyou\"```\n\t */\n\treturn_url: string\n\t/** \n\t * The URL where the payer is redirected after they cancel the payment.\n\t * @example ```\"https://yourdomain.com/checkout/payment\"```\n\t */\n\tcancel_url: string\n\t/** \n\t * A free-form field that you can use to send a note to the payer on PayPal.\n\t * @example ```\"Thank you for shopping with us!\"```\n\t */\n\tnote_to_payer?: string | null\n\t/** \n\t * The id of the payer that PayPal passes in the return_url.\n\t * @example ```\"ABCDEFGHG123456\"```\n\t */\n\tpaypal_payer_id?: string | null\n\t/** \n\t * The PayPal payer id (if present).\n\t * @example ```\"ABCDEFGHG123456\"```\n\t */\n\tname?: string | null\n\t/** \n\t * The id of the PayPal payment object.\n\t * @example ```\"1234567890\"```\n\t */\n\tpaypal_id?: string | null\n\t/** \n\t * The PayPal payment status. One of 'created', or 'approved'.\n\t * @example ```\"created\"```\n\t */\n\tstatus?: 'created' | 'approved' | null\n\t/** \n\t * The URL the customer should be redirected to approve the payment.\n\t * @example ```\"https://www.paypal.com/cgi-bin/webscr?cmd=_express-checkout&token=EC-1234567890ABCDEFGHG\"```\n\t */\n\tapproval_url?: string | null\n\t/** \n\t * Indicates if the order current amount differs form the one of the created payment intent.\n\t */\n\tmismatched_amounts?: boolean | null\n\t/** \n\t * 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 PaypalPaymentCreate extends ResourceCreate {\n\t\n\t/** \n\t * The URL where the payer is redirected after they approve the payment.\n\t * @example ```\"https://yourdomain.com/thankyou\"```\n\t */\n\treturn_url: string\n\t/** \n\t * The URL where the payer is redirected after they cancel the payment.\n\t * @example ```\"https://yourdomain.com/checkout/payment\"```\n\t */\n\tcancel_url: string\n\t/** \n\t * A free-form field that you can use to send a note to the payer on PayPal.\n\t * @example ```\"Thank you for shopping with us!\"```\n\t */\n\tnote_to_payer?: string | null\n\n\torder: OrderRel\n\n}\n\n\ninterface PaypalPaymentUpdate extends ResourceUpdate {\n\t\n\t/** \n\t * The id of the payer that PayPal passes in the return_url.\n\t * @example ```\"ABCDEFGHG123456\"```\n\t */\n\tpaypal_payer_id?: string | null\n\n\torder?: OrderRel | null\n\n}\n\n\nclass PaypalPayments extends ApiResource<PaypalPayment> {\n\n\tstatic readonly TYPE: PaypalPaymentType = 'paypal_payments' as const\n\n\tasync create(resource: PaypalPaymentCreate, params?: QueryParamsRetrieve<PaypalPayment>, options?: ResourcesConfig): Promise<PaypalPayment> {\n\t\treturn this.resources.create<PaypalPaymentCreate, PaypalPayment>({ ...resource, type: PaypalPayments.TYPE }, params, options)\n\t}\n\n\tasync update(resource: PaypalPaymentUpdate, params?: QueryParamsRetrieve<PaypalPayment>, options?: ResourcesConfig): Promise<PaypalPayment> {\n\t\treturn this.resources.update<PaypalPaymentUpdate, PaypalPayment>({ ...resource, type: PaypalPayments.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: PaypalPayments.TYPE } : id, options)\n\t}\n\n\tasync order(paypalPaymentId: string | PaypalPayment, params?: QueryParamsRetrieve<Order>, options?: ResourcesConfig): Promise<Order> {\n\t\tconst _paypalPaymentId = (paypalPaymentId as PaypalPayment).id || paypalPaymentId as string\n\t\treturn this.resources.fetch<Order>({ type: 'orders' }, `paypal_payments/${_paypalPaymentId}/order`, params, options) as unknown as Order\n\t}\n\n\tasync payment_gateway(paypalPaymentId: string | PaypalPayment, params?: QueryParamsRetrieve<PaymentGateway>, options?: ResourcesConfig): Promise<PaymentGateway> {\n\t\tconst _paypalPaymentId = (paypalPaymentId as PaypalPayment).id || paypalPaymentId as string\n\t\treturn this.resources.fetch<PaymentGateway>({ type: 'payment_gateways' }, `paypal_payments/${_paypalPaymentId}/payment_gateway`, params, options) as unknown as PaymentGateway\n\t}\n\n\tasync event_stores(paypalPaymentId: string | PaypalPayment, params?: QueryParamsList<EventStore>, options?: ResourcesConfig): Promise<ListResponse<EventStore>> {\n\t\tconst _paypalPaymentId = (paypalPaymentId as PaypalPayment).id || paypalPaymentId as string\n\t\treturn this.resources.fetch<EventStore>({ type: 'event_stores' }, `paypal_payments/${_paypalPaymentId}/event_stores`, params, options) as unknown as ListResponse<EventStore>\n\t}\n\n\n\tisPaypalPayment(resource: any): resource is PaypalPayment {\n\t\treturn resource.type && (resource.type === PaypalPayments.TYPE)\n\t}\n\n\n\trelationship(id: string | ResourceId | null): PaypalPaymentRel {\n\t\treturn super.relationshipOneToOne<PaypalPaymentRel>(id)\n\t}\n\n\trelationshipToMany(...ids: string[]): PaypalPaymentRel[] {\n\t\treturn super.relationshipOneToMany<PaypalPaymentRel>(...ids)\n\t}\n\n\n\ttype(): PaypalPaymentType {\n\t\treturn PaypalPayments.TYPE\n\t}\n\n}\n\n\nconst instance = new PaypalPayments()\nexport default instance\n\nexport type { PaypalPayment, PaypalPaymentCreate, PaypalPayments, PaypalPaymentType, PaypalPaymentUpdate }\n"]}
|
package/lib/chunk-P3SFKEXE.js
DELETED
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
import { ApiResource } from './chunk-USIBTSYD.js';
|
|
2
|
-
|
|
3
|
-
// src/resources/order_amount_promotion_rules.ts
|
|
4
|
-
var OrderAmountPromotionRules = class _OrderAmountPromotionRules extends ApiResource {
|
|
5
|
-
static TYPE = "order_amount_promotion_rules";
|
|
6
|
-
async create(resource, params, options) {
|
|
7
|
-
return this.resources.create({ ...resource, type: _OrderAmountPromotionRules.TYPE }, params, options);
|
|
8
|
-
}
|
|
9
|
-
async update(resource, params, options) {
|
|
10
|
-
return this.resources.update({ ...resource, type: _OrderAmountPromotionRules.TYPE }, params, options);
|
|
11
|
-
}
|
|
12
|
-
async delete(id, options) {
|
|
13
|
-
await this.resources.delete(typeof id === "string" ? { id, type: _OrderAmountPromotionRules.TYPE } : id, options);
|
|
14
|
-
}
|
|
15
|
-
async event_stores(orderAmountPromotionRuleId, params, options) {
|
|
16
|
-
const _orderAmountPromotionRuleId = orderAmountPromotionRuleId.id || orderAmountPromotionRuleId;
|
|
17
|
-
return this.resources.fetch({ type: "event_stores" }, `order_amount_promotion_rules/${_orderAmountPromotionRuleId}/event_stores`, params, options);
|
|
18
|
-
}
|
|
19
|
-
isOrderAmountPromotionRule(resource) {
|
|
20
|
-
return resource.type && resource.type === _OrderAmountPromotionRules.TYPE;
|
|
21
|
-
}
|
|
22
|
-
relationship(id) {
|
|
23
|
-
return super.relationshipOneToOne(id);
|
|
24
|
-
}
|
|
25
|
-
relationshipToMany(...ids) {
|
|
26
|
-
return super.relationshipOneToMany(...ids);
|
|
27
|
-
}
|
|
28
|
-
type() {
|
|
29
|
-
return _OrderAmountPromotionRules.TYPE;
|
|
30
|
-
}
|
|
31
|
-
};
|
|
32
|
-
var instance = new OrderAmountPromotionRules();
|
|
33
|
-
var order_amount_promotion_rules_default = instance;
|
|
34
|
-
|
|
35
|
-
export { order_amount_promotion_rules_default };
|
|
36
|
-
//# sourceMappingURL=chunk-P3SFKEXE.js.map
|
|
37
|
-
//# sourceMappingURL=chunk-P3SFKEXE.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/resources/order_amount_promotion_rules.ts"],"names":[],"mappings":";;;AAiGA,IAAM,yBAAA,GAAN,MAAM,0BAAA,SAAkC,WAAA,CAAsC;AAAA,EAE7E,OAAgB,IAAA,GAAqC,8BAAA;AAAA,EAErD,MAAM,MAAA,CAAO,QAAA,EAA0C,MAAA,EAAwD,OAAA,EAA8D;AAC5K,IAAA,OAAO,IAAA,CAAK,SAAA,CAAU,MAAA,CAAiE,EAAE,GAAG,QAAA,EAAU,IAAA,EAAM,0BAAA,CAA0B,IAAA,EAAK,EAAG,MAAA,EAAQ,OAAO,CAAA;AAAA,EAC9J;AAAA,EAEA,MAAM,MAAA,CAAO,QAAA,EAA0C,MAAA,EAAwD,OAAA,EAA8D;AAC5K,IAAA,OAAO,IAAA,CAAK,SAAA,CAAU,MAAA,CAAiE,EAAE,GAAG,QAAA,EAAU,IAAA,EAAM,0BAAA,CAA0B,IAAA,EAAK,EAAG,MAAA,EAAQ,OAAO,CAAA;AAAA,EAC9J;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,0BAAA,CAA0B,IAAA,EAAK,GAAI,IAAI,OAAO,CAAA;AAAA,EACjH;AAAA,EAEA,MAAM,YAAA,CAAa,0BAAA,EAA+D,MAAA,EAAsC,OAAA,EAA8D;AACrL,IAAA,MAAM,2BAAA,GAA+B,2BAAwD,EAAA,IAAM,0BAAA;AACnG,IAAA,OAAO,IAAA,CAAK,SAAA,CAAU,KAAA,CAAkB,EAAE,IAAA,EAAM,cAAA,EAAe,EAAG,CAAA,6BAAA,EAAgC,2BAA2B,CAAA,aAAA,CAAA,EAAiB,MAAA,EAAQ,OAAO,CAAA;AAAA,EAC9J;AAAA,EAGA,2BAA2B,QAAA,EAAqD;AAC/E,IAAA,OAAO,QAAA,CAAS,IAAA,IAAS,QAAA,CAAS,IAAA,KAAS,0BAAA,CAA0B,IAAA;AAAA,EACtE;AAAA,EAGA,aAAa,EAAA,EAA6D;AACzE,IAAA,OAAO,KAAA,CAAM,qBAAkD,EAAE,CAAA;AAAA,EAClE;AAAA,EAEA,sBAAsB,GAAA,EAA8C;AACnE,IAAA,OAAO,KAAA,CAAM,qBAAA,CAAmD,GAAG,GAAG,CAAA;AAAA,EACvE;AAAA,EAGA,IAAA,GAAqC;AACpC,IAAA,OAAO,0BAAA,CAA0B,IAAA;AAAA,EAClC;AAED,CAAA;AAGA,IAAM,QAAA,GAAW,IAAI,yBAAA,EAA0B;AAC/C,IAAO,oCAAA,GAAQ","file":"chunk-P3SFKEXE.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 { BuyXPayYPromotion, BuyXPayYPromotionType } from './buy_x_pay_y_promotions'\nimport type { EventStore } from './event_stores'\nimport type { ExternalPromotion, ExternalPromotionType } from './external_promotions'\nimport type { FixedAmountPromotion, FixedAmountPromotionType } from './fixed_amount_promotions'\nimport type { FixedPricePromotion, FixedPricePromotionType } from './fixed_price_promotions'\nimport type { FlexPromotion, FlexPromotionType } from './flex_promotions'\nimport type { FreeGiftPromotion, FreeGiftPromotionType } from './free_gift_promotions'\nimport type { FreeShippingPromotion, FreeShippingPromotionType } from './free_shipping_promotions'\nimport type { PercentageDiscountPromotion, PercentageDiscountPromotionType } from './percentage_discount_promotions'\n\n\ntype OrderAmountPromotionRuleType = 'order_amount_promotion_rules'\ntype OrderAmountPromotionRuleRel = ResourceRel & { type: OrderAmountPromotionRuleType }\ntype PercentageDiscountPromotionRel = ResourceRel & { type: PercentageDiscountPromotionType }\ntype FreeShippingPromotionRel = ResourceRel & { type: FreeShippingPromotionType }\ntype BuyXPayYPromotionRel = ResourceRel & { type: BuyXPayYPromotionType }\ntype FreeGiftPromotionRel = ResourceRel & { type: FreeGiftPromotionType }\ntype FixedPricePromotionRel = ResourceRel & { type: FixedPricePromotionType }\ntype ExternalPromotionRel = ResourceRel & { type: ExternalPromotionType }\ntype FixedAmountPromotionRel = ResourceRel & { type: FixedAmountPromotionType }\ntype FlexPromotionRel = ResourceRel & { type: FlexPromotionType }\n\n\nexport type OrderAmountPromotionRuleSort = Pick<OrderAmountPromotionRule, 'id'> & ResourceSort\n// export type OrderAmountPromotionRuleFilter = Pick<OrderAmountPromotionRule, 'id'> & ResourceFilter\n\n\ninterface OrderAmountPromotionRule extends Resource {\n\t\n\treadonly type: OrderAmountPromotionRuleType\n\n\t/** \n\t * Apply the promotion only when order is over this amount, in cents.\n\t * @example ```1000```\n\t */\n\torder_amount_cents?: number | null\n\t/** \n\t * Apply the promotion only when order is over this amount, float.\n\t * @example ```10```\n\t */\n\torder_amount_float?: number | null\n\t/** \n\t * Apply the promotion only when order is over this amount, formatted.\n\t * @example ```\"€10,00\"```\n\t */\n\tformatted_order_amount?: string | null\n\t/** \n\t * Send this attribute if you want to compare the specified amount with order's subtotal (excluding discounts, if any).\n\t * @example ```true```\n\t */\n\tuse_subtotal?: boolean | null\n\n\tpromotion?: PercentageDiscountPromotion | FreeShippingPromotion | BuyXPayYPromotion | FreeGiftPromotion | FixedPricePromotion | ExternalPromotion | FixedAmountPromotion | FlexPromotion | null\n\tevent_stores?: EventStore[] | null\n\n}\n\n\ninterface OrderAmountPromotionRuleCreate extends ResourceCreate {\n\t\n\t/** \n\t * Apply the promotion only when order is over this amount, in cents.\n\t * @example ```1000```\n\t */\n\torder_amount_cents?: number | null\n\t/** \n\t * Send this attribute if you want to compare the specified amount with order's subtotal (excluding discounts, if any).\n\t * @example ```true```\n\t */\n\tuse_subtotal?: boolean | null\n\n\tpromotion: PercentageDiscountPromotionRel | FreeShippingPromotionRel | BuyXPayYPromotionRel | FreeGiftPromotionRel | FixedPricePromotionRel | ExternalPromotionRel | FixedAmountPromotionRel | FlexPromotionRel\n\n}\n\n\ninterface OrderAmountPromotionRuleUpdate extends ResourceUpdate {\n\t\n\t/** \n\t * Apply the promotion only when order is over this amount, in cents.\n\t * @example ```1000```\n\t */\n\torder_amount_cents?: number | null\n\t/** \n\t * Send this attribute if you want to compare the specified amount with order's subtotal (excluding discounts, if any).\n\t * @example ```true```\n\t */\n\tuse_subtotal?: boolean | null\n\n\tpromotion?: PercentageDiscountPromotionRel | FreeShippingPromotionRel | BuyXPayYPromotionRel | FreeGiftPromotionRel | FixedPricePromotionRel | ExternalPromotionRel | FixedAmountPromotionRel | FlexPromotionRel | null\n\n}\n\n\nclass OrderAmountPromotionRules extends ApiResource<OrderAmountPromotionRule> {\n\n\tstatic readonly TYPE: OrderAmountPromotionRuleType = 'order_amount_promotion_rules' as const\n\n\tasync create(resource: OrderAmountPromotionRuleCreate, params?: QueryParamsRetrieve<OrderAmountPromotionRule>, options?: ResourcesConfig): Promise<OrderAmountPromotionRule> {\n\t\treturn this.resources.create<OrderAmountPromotionRuleCreate, OrderAmountPromotionRule>({ ...resource, type: OrderAmountPromotionRules.TYPE }, params, options)\n\t}\n\n\tasync update(resource: OrderAmountPromotionRuleUpdate, params?: QueryParamsRetrieve<OrderAmountPromotionRule>, options?: ResourcesConfig): Promise<OrderAmountPromotionRule> {\n\t\treturn this.resources.update<OrderAmountPromotionRuleUpdate, OrderAmountPromotionRule>({ ...resource, type: OrderAmountPromotionRules.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: OrderAmountPromotionRules.TYPE } : id, options)\n\t}\n\n\tasync event_stores(orderAmountPromotionRuleId: string | OrderAmountPromotionRule, params?: QueryParamsList<EventStore>, options?: ResourcesConfig): Promise<ListResponse<EventStore>> {\n\t\tconst _orderAmountPromotionRuleId = (orderAmountPromotionRuleId as OrderAmountPromotionRule).id || orderAmountPromotionRuleId as string\n\t\treturn this.resources.fetch<EventStore>({ type: 'event_stores' }, `order_amount_promotion_rules/${_orderAmountPromotionRuleId}/event_stores`, params, options) as unknown as ListResponse<EventStore>\n\t}\n\n\n\tisOrderAmountPromotionRule(resource: any): resource is OrderAmountPromotionRule {\n\t\treturn resource.type && (resource.type === OrderAmountPromotionRules.TYPE)\n\t}\n\n\n\trelationship(id: string | ResourceId | null): OrderAmountPromotionRuleRel {\n\t\treturn super.relationshipOneToOne<OrderAmountPromotionRuleRel>(id)\n\t}\n\n\trelationshipToMany(...ids: string[]): OrderAmountPromotionRuleRel[] {\n\t\treturn super.relationshipOneToMany<OrderAmountPromotionRuleRel>(...ids)\n\t}\n\n\n\ttype(): OrderAmountPromotionRuleType {\n\t\treturn OrderAmountPromotionRules.TYPE\n\t}\n\n}\n\n\nconst instance = new OrderAmountPromotionRules()\nexport default instance\n\nexport type { OrderAmountPromotionRule, OrderAmountPromotionRuleCreate, OrderAmountPromotionRules, OrderAmountPromotionRuleType, OrderAmountPromotionRuleUpdate }\n"]}
|
package/lib/chunk-P7TCVHNF.cjs
DELETED
|
@@ -1,56 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
var chunkY56DKJ4Z_cjs = require('./chunk-Y56DKJ4Z.cjs');
|
|
4
|
-
|
|
5
|
-
// src/resources/stripe_gateways.ts
|
|
6
|
-
var StripeGateways = class _StripeGateways extends chunkY56DKJ4Z_cjs.ApiResource {
|
|
7
|
-
static TYPE = "stripe_gateways";
|
|
8
|
-
async create(resource, params, options) {
|
|
9
|
-
return this.resources.create({ ...resource, type: _StripeGateways.TYPE }, params, options);
|
|
10
|
-
}
|
|
11
|
-
async update(resource, params, options) {
|
|
12
|
-
return this.resources.update({ ...resource, type: _StripeGateways.TYPE }, params, options);
|
|
13
|
-
}
|
|
14
|
-
async delete(id, options) {
|
|
15
|
-
await this.resources.delete(typeof id === "string" ? { id, type: _StripeGateways.TYPE } : id, options);
|
|
16
|
-
}
|
|
17
|
-
async payment_methods(stripeGatewayId, params, options) {
|
|
18
|
-
const _stripeGatewayId = stripeGatewayId.id || stripeGatewayId;
|
|
19
|
-
return this.resources.fetch({ type: "payment_methods" }, `stripe_gateways/${_stripeGatewayId}/payment_methods`, params, options);
|
|
20
|
-
}
|
|
21
|
-
async event_stores(stripeGatewayId, params, options) {
|
|
22
|
-
const _stripeGatewayId = stripeGatewayId.id || stripeGatewayId;
|
|
23
|
-
return this.resources.fetch({ type: "event_stores" }, `stripe_gateways/${_stripeGatewayId}/event_stores`, params, options);
|
|
24
|
-
}
|
|
25
|
-
async stripe_payments(stripeGatewayId, params, options) {
|
|
26
|
-
const _stripeGatewayId = stripeGatewayId.id || stripeGatewayId;
|
|
27
|
-
return this.resources.fetch({ type: "stripe_payments" }, `stripe_gateways/${_stripeGatewayId}/stripe_payments`, params, options);
|
|
28
|
-
}
|
|
29
|
-
async _disable(id, params, options) {
|
|
30
|
-
return this.resources.update({ id: typeof id === "string" ? id : id.id, type: _StripeGateways.TYPE, _disable: true }, params, options);
|
|
31
|
-
}
|
|
32
|
-
async _enable(id, params, options) {
|
|
33
|
-
return this.resources.update({ id: typeof id === "string" ? id : id.id, type: _StripeGateways.TYPE, _enable: true }, params, options);
|
|
34
|
-
}
|
|
35
|
-
async _check(id, params, options) {
|
|
36
|
-
return this.resources.update({ id: typeof id === "string" ? id : id.id, type: _StripeGateways.TYPE, _check: true }, params, options);
|
|
37
|
-
}
|
|
38
|
-
isStripeGateway(resource) {
|
|
39
|
-
return resource.type && resource.type === _StripeGateways.TYPE;
|
|
40
|
-
}
|
|
41
|
-
relationship(id) {
|
|
42
|
-
return super.relationshipOneToOne(id);
|
|
43
|
-
}
|
|
44
|
-
relationshipToMany(...ids) {
|
|
45
|
-
return super.relationshipOneToMany(...ids);
|
|
46
|
-
}
|
|
47
|
-
type() {
|
|
48
|
-
return _StripeGateways.TYPE;
|
|
49
|
-
}
|
|
50
|
-
};
|
|
51
|
-
var instance = new StripeGateways();
|
|
52
|
-
var stripe_gateways_default = instance;
|
|
53
|
-
|
|
54
|
-
exports.stripe_gateways_default = stripe_gateways_default;
|
|
55
|
-
//# sourceMappingURL=chunk-P7TCVHNF.cjs.map
|
|
56
|
-
//# sourceMappingURL=chunk-P7TCVHNF.cjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/resources/stripe_gateways.ts"],"names":["ApiResource"],"mappings":";;;;;AAyJA,IAAM,cAAA,GAAN,MAAM,eAAA,SAAuBA,6BAAA,CAA2B;AAAA,EAEvD,OAAgB,IAAA,GAA0B,iBAAA;AAAA,EAE1C,MAAM,MAAA,CAAO,QAAA,EAA+B,MAAA,EAA6C,OAAA,EAAmD;AAC3I,IAAA,OAAO,IAAA,CAAK,SAAA,CAAU,MAAA,CAA2C,EAAE,GAAG,QAAA,EAAU,IAAA,EAAM,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AAAA,EAGA,aAAa,EAAA,EAAkD;AAC9D,IAAA,OAAO,KAAA,CAAM,qBAAuC,EAAE,CAAA;AAAA,EACvD;AAAA,EAEA,sBAAsB,GAAA,EAAmC;AACxD,IAAA,OAAO,KAAA,CAAM,qBAAA,CAAwC,GAAG,GAAG,CAAA;AAAA,EAC5D;AAAA,EAGA,IAAA,GAA0B;AACzB,IAAA,OAAO,eAAA,CAAe,IAAA;AAAA,EACvB;AAED,CAAA;AAGA,IAAM,QAAA,GAAW,IAAI,cAAA,EAAe;AACpC,IAAO,uBAAA,GAAQ","file":"chunk-P7TCVHNF.cjs","sourcesContent":["import type { QueryParamsList, QueryParamsRetrieve } from '../query'\nimport type { ListResponse, Resource, ResourceCreate, ResourceId, ResourceRel, ResourceSort, /* ResourceFilter */ ResourcesConfig, ResourceUpdate, } from '../resource'\nimport { ApiResource } from '../resource'\nimport type { EventStore } from './event_stores'\nimport type { PaymentMethod } from './payment_methods'\nimport type { StripePayment } from './stripe_payments'\n\n\ntype StripeGatewayType = 'stripe_gateways'\ntype StripeGatewayRel = ResourceRel & { type: StripeGatewayType }\n\n\nexport type StripeGatewaySort = Pick<StripeGateway, 'id' | 'name' | 'disabled_at'> & ResourceSort\n// export type StripeGatewayFilter = Pick<StripeGateway, 'id' | 'name' | 'disabled_at'> & ResourceFilter\n\n\ninterface StripeGateway extends Resource {\n\t\n\treadonly type: StripeGatewayType\n\n\t/** \n\t * The payment gateway's internal name.\n\t * @example ```\"US payment gateway\"```\n\t */\n\tname: string\n\tforce_payments?: boolean | null\n\t/** \n\t * The payment gateway's API credential keys last digits.\n\t * @example ```{\"api_key\":\"********BW989\"}```\n\t */\n\tcredential_keys?: Record<string, any> | null\n\t/** \n\t * Time at which this resource was disabled.\n\t * @example ```\"2018-01-01T12:00:00.000Z\"```\n\t */\n\tdisabled_at?: string | null\n\t/** \n\t * The account (if any) for which the funds of the PaymentIntent are intended.\n\t * @example ```\"acct_xxxx-yyyy-zzzz\"```\n\t */\n\tconnected_account?: string | null\n\t/** \n\t * Indicates if the gateway will accept payment methods enabled in the Stripe dashboard.\n\t * @example ```true```\n\t */\n\tauto_payments?: boolean | null\n\t/** \n\t * The gateway webhook endpoint ID, generated automatically.\n\t * @example ```\"xxxx-yyyy-zzzz\"```\n\t */\n\twebhook_endpoint_id?: string | null\n\t/** \n\t * The gateway webhook endpoint secret, generated automatically.\n\t * @example ```\"xxxx-yyyy-zzzz\"```\n\t */\n\twebhook_endpoint_secret?: string | null\n\t/** \n\t * The gateway webhook URL, generated automatically.\n\t * @example ```\"https://core.commercelayer.co/webhook_callbacks/stripe_gateways/xxxxx\"```\n\t */\n\twebhook_endpoint_url?: string | null\n\n\tpayment_methods?: PaymentMethod[] | null\n\tevent_stores?: EventStore[] | null\n\tstripe_payments?: StripePayment[] | null\n\n}\n\n\ninterface StripeGatewayCreate extends ResourceCreate {\n\t\n\t/** \n\t * The payment gateway's internal name.\n\t * @example ```\"US payment gateway\"```\n\t */\n\tname: string\n\tforce_payments?: boolean | null\n\t/** \n\t * Send this attribute if you want to mark this resource as disabled.\n\t * @example ```true```\n\t */\n\t_disable?: boolean | null\n\t/** \n\t * Send this attribute if you want to mark this resource as enabled.\n\t * @example ```true```\n\t */\n\t_enable?: boolean | null\n\t/** \n\t * Send this attribute if you want to check the credentials against the payment gateway's APIs.\n\t * @example ```true```\n\t */\n\t_check?: boolean | null\n\t/** \n\t * The gateway login.\n\t * @example ```\"sk_live_xxxx-yyyy-zzzz\"```\n\t */\n\tlogin: string\n\t/** \n\t * The gateway publishable API key.\n\t * @example ```\"pk_live_xxxx-yyyy-zzzz\"```\n\t */\n\tpublishable_key?: string | null\n\t/** \n\t * The account (if any) for which the funds of the PaymentIntent are intended.\n\t * @example ```\"acct_xxxx-yyyy-zzzz\"```\n\t */\n\tconnected_account?: string | null\n\t/** \n\t * Indicates if the gateway will accept payment methods enabled in the Stripe dashboard.\n\t * @example ```true```\n\t */\n\tauto_payments?: boolean | null\n\t\n}\n\n\ninterface StripeGatewayUpdate extends ResourceUpdate {\n\t\n\t/** \n\t * The payment gateway's internal name.\n\t * @example ```\"US payment gateway\"```\n\t */\n\tname?: string | null\n\tforce_payments?: boolean | null\n\t/** \n\t * Send this attribute if you want to mark this resource as disabled.\n\t * @example ```true```\n\t */\n\t_disable?: boolean | null\n\t/** \n\t * Send this attribute if you want to mark this resource as enabled.\n\t * @example ```true```\n\t */\n\t_enable?: boolean | null\n\t/** \n\t * Send this attribute if you want to check the credentials against the payment gateway's APIs.\n\t * @example ```true```\n\t */\n\t_check?: boolean | null\n\t/** \n\t * The account (if any) for which the funds of the PaymentIntent are intended.\n\t * @example ```\"acct_xxxx-yyyy-zzzz\"```\n\t */\n\tconnected_account?: string | null\n\t/** \n\t * Indicates if the gateway will accept payment methods enabled in the Stripe dashboard.\n\t * @example ```true```\n\t */\n\tauto_payments?: boolean | null\n\t\n}\n\n\nclass StripeGateways extends ApiResource<StripeGateway> {\n\n\tstatic readonly TYPE: StripeGatewayType = 'stripe_gateways' as const\n\n\tasync create(resource: StripeGatewayCreate, params?: QueryParamsRetrieve<StripeGateway>, options?: ResourcesConfig): Promise<StripeGateway> {\n\t\treturn this.resources.create<StripeGatewayCreate, StripeGateway>({ ...resource, type: StripeGateways.TYPE }, params, options)\n\t}\n\n\tasync update(resource: StripeGatewayUpdate, params?: QueryParamsRetrieve<StripeGateway>, options?: ResourcesConfig): Promise<StripeGateway> {\n\t\treturn this.resources.update<StripeGatewayUpdate, StripeGateway>({ ...resource, type: StripeGateways.TYPE }, params, options)\n\t}\n\n\tasync delete(id: string | ResourceId, options?: ResourcesConfig): Promise<void> {\n\t\tawait this.resources.delete((typeof id === 'string')? { id, type: StripeGateways.TYPE } : id, options)\n\t}\n\n\tasync payment_methods(stripeGatewayId: string | StripeGateway, params?: QueryParamsList<PaymentMethod>, options?: ResourcesConfig): Promise<ListResponse<PaymentMethod>> {\n\t\tconst _stripeGatewayId = (stripeGatewayId as StripeGateway).id || stripeGatewayId as string\n\t\treturn this.resources.fetch<PaymentMethod>({ type: 'payment_methods' }, `stripe_gateways/${_stripeGatewayId}/payment_methods`, params, options) as unknown as ListResponse<PaymentMethod>\n\t}\n\n\tasync event_stores(stripeGatewayId: string | StripeGateway, params?: QueryParamsList<EventStore>, options?: ResourcesConfig): Promise<ListResponse<EventStore>> {\n\t\tconst _stripeGatewayId = (stripeGatewayId as StripeGateway).id || stripeGatewayId as string\n\t\treturn this.resources.fetch<EventStore>({ type: 'event_stores' }, `stripe_gateways/${_stripeGatewayId}/event_stores`, params, options) as unknown as ListResponse<EventStore>\n\t}\n\n\tasync stripe_payments(stripeGatewayId: string | StripeGateway, params?: QueryParamsList<StripePayment>, options?: ResourcesConfig): Promise<ListResponse<StripePayment>> {\n\t\tconst _stripeGatewayId = (stripeGatewayId as StripeGateway).id || stripeGatewayId as string\n\t\treturn this.resources.fetch<StripePayment>({ type: 'stripe_payments' }, `stripe_gateways/${_stripeGatewayId}/stripe_payments`, params, options) as unknown as ListResponse<StripePayment>\n\t}\n\n\tasync _disable(id: string | StripeGateway, params?: QueryParamsRetrieve<StripeGateway>, options?: ResourcesConfig): Promise<StripeGateway> {\n\t\treturn this.resources.update<StripeGatewayUpdate, StripeGateway>({ id: (typeof id === 'string')? id: id.id, type: StripeGateways.TYPE, _disable: true }, params, options)\n\t}\n\n\tasync _enable(id: string | StripeGateway, params?: QueryParamsRetrieve<StripeGateway>, options?: ResourcesConfig): Promise<StripeGateway> {\n\t\treturn this.resources.update<StripeGatewayUpdate, StripeGateway>({ id: (typeof id === 'string')? id: id.id, type: StripeGateways.TYPE, _enable: true }, params, options)\n\t}\n\n\tasync _check(id: string | StripeGateway, params?: QueryParamsRetrieve<StripeGateway>, options?: ResourcesConfig): Promise<StripeGateway> {\n\t\treturn this.resources.update<StripeGatewayUpdate, StripeGateway>({ id: (typeof id === 'string')? id: id.id, type: StripeGateways.TYPE, _check: true }, params, options)\n\t}\n\n\n\tisStripeGateway(resource: any): resource is StripeGateway {\n\t\treturn resource.type && (resource.type === StripeGateways.TYPE)\n\t}\n\n\n\trelationship(id: string | ResourceId | null): StripeGatewayRel {\n\t\treturn super.relationshipOneToOne<StripeGatewayRel>(id)\n\t}\n\n\trelationshipToMany(...ids: string[]): StripeGatewayRel[] {\n\t\treturn super.relationshipOneToMany<StripeGatewayRel>(...ids)\n\t}\n\n\n\ttype(): StripeGatewayType {\n\t\treturn StripeGateways.TYPE\n\t}\n\n}\n\n\nconst instance = new StripeGateways()\nexport default instance\n\nexport type { StripeGateway, StripeGatewayCreate, StripeGateways, StripeGatewayType, StripeGatewayUpdate }\n"]}
|
package/lib/chunk-PE4GN5GN.cjs
DELETED
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
var chunkY56DKJ4Z_cjs = require('./chunk-Y56DKJ4Z.cjs');
|
|
4
|
-
|
|
5
|
-
// src/resources/order_amount_promotion_rules.ts
|
|
6
|
-
var OrderAmountPromotionRules = class _OrderAmountPromotionRules extends chunkY56DKJ4Z_cjs.ApiResource {
|
|
7
|
-
static TYPE = "order_amount_promotion_rules";
|
|
8
|
-
async create(resource, params, options) {
|
|
9
|
-
return this.resources.create({ ...resource, type: _OrderAmountPromotionRules.TYPE }, params, options);
|
|
10
|
-
}
|
|
11
|
-
async update(resource, params, options) {
|
|
12
|
-
return this.resources.update({ ...resource, type: _OrderAmountPromotionRules.TYPE }, params, options);
|
|
13
|
-
}
|
|
14
|
-
async delete(id, options) {
|
|
15
|
-
await this.resources.delete(typeof id === "string" ? { id, type: _OrderAmountPromotionRules.TYPE } : id, options);
|
|
16
|
-
}
|
|
17
|
-
async event_stores(orderAmountPromotionRuleId, params, options) {
|
|
18
|
-
const _orderAmountPromotionRuleId = orderAmountPromotionRuleId.id || orderAmountPromotionRuleId;
|
|
19
|
-
return this.resources.fetch({ type: "event_stores" }, `order_amount_promotion_rules/${_orderAmountPromotionRuleId}/event_stores`, params, options);
|
|
20
|
-
}
|
|
21
|
-
isOrderAmountPromotionRule(resource) {
|
|
22
|
-
return resource.type && resource.type === _OrderAmountPromotionRules.TYPE;
|
|
23
|
-
}
|
|
24
|
-
relationship(id) {
|
|
25
|
-
return super.relationshipOneToOne(id);
|
|
26
|
-
}
|
|
27
|
-
relationshipToMany(...ids) {
|
|
28
|
-
return super.relationshipOneToMany(...ids);
|
|
29
|
-
}
|
|
30
|
-
type() {
|
|
31
|
-
return _OrderAmountPromotionRules.TYPE;
|
|
32
|
-
}
|
|
33
|
-
};
|
|
34
|
-
var instance = new OrderAmountPromotionRules();
|
|
35
|
-
var order_amount_promotion_rules_default = instance;
|
|
36
|
-
|
|
37
|
-
exports.order_amount_promotion_rules_default = order_amount_promotion_rules_default;
|
|
38
|
-
//# sourceMappingURL=chunk-PE4GN5GN.cjs.map
|
|
39
|
-
//# sourceMappingURL=chunk-PE4GN5GN.cjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/resources/order_amount_promotion_rules.ts"],"names":["ApiResource"],"mappings":";;;;;AAiGA,IAAM,yBAAA,GAAN,MAAM,0BAAA,SAAkCA,6BAAA,CAAsC;AAAA,EAE7E,OAAgB,IAAA,GAAqC,8BAAA;AAAA,EAErD,MAAM,MAAA,CAAO,QAAA,EAA0C,MAAA,EAAwD,OAAA,EAA8D;AAC5K,IAAA,OAAO,IAAA,CAAK,SAAA,CAAU,MAAA,CAAiE,EAAE,GAAG,QAAA,EAAU,IAAA,EAAM,0BAAA,CAA0B,IAAA,EAAK,EAAG,MAAA,EAAQ,OAAO,CAAA;AAAA,EAC9J;AAAA,EAEA,MAAM,MAAA,CAAO,QAAA,EAA0C,MAAA,EAAwD,OAAA,EAA8D;AAC5K,IAAA,OAAO,IAAA,CAAK,SAAA,CAAU,MAAA,CAAiE,EAAE,GAAG,QAAA,EAAU,IAAA,EAAM,0BAAA,CAA0B,IAAA,EAAK,EAAG,MAAA,EAAQ,OAAO,CAAA;AAAA,EAC9J;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,0BAAA,CAA0B,IAAA,EAAK,GAAI,IAAI,OAAO,CAAA;AAAA,EACjH;AAAA,EAEA,MAAM,YAAA,CAAa,0BAAA,EAA+D,MAAA,EAAsC,OAAA,EAA8D;AACrL,IAAA,MAAM,2BAAA,GAA+B,2BAAwD,EAAA,IAAM,0BAAA;AACnG,IAAA,OAAO,IAAA,CAAK,SAAA,CAAU,KAAA,CAAkB,EAAE,IAAA,EAAM,cAAA,EAAe,EAAG,CAAA,6BAAA,EAAgC,2BAA2B,CAAA,aAAA,CAAA,EAAiB,MAAA,EAAQ,OAAO,CAAA;AAAA,EAC9J;AAAA,EAGA,2BAA2B,QAAA,EAAqD;AAC/E,IAAA,OAAO,QAAA,CAAS,IAAA,IAAS,QAAA,CAAS,IAAA,KAAS,0BAAA,CAA0B,IAAA;AAAA,EACtE;AAAA,EAGA,aAAa,EAAA,EAA6D;AACzE,IAAA,OAAO,KAAA,CAAM,qBAAkD,EAAE,CAAA;AAAA,EAClE;AAAA,EAEA,sBAAsB,GAAA,EAA8C;AACnE,IAAA,OAAO,KAAA,CAAM,qBAAA,CAAmD,GAAG,GAAG,CAAA;AAAA,EACvE;AAAA,EAGA,IAAA,GAAqC;AACpC,IAAA,OAAO,0BAAA,CAA0B,IAAA;AAAA,EAClC;AAED,CAAA;AAGA,IAAM,QAAA,GAAW,IAAI,yBAAA,EAA0B;AAC/C,IAAO,oCAAA,GAAQ","file":"chunk-PE4GN5GN.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 { BuyXPayYPromotion, BuyXPayYPromotionType } from './buy_x_pay_y_promotions'\nimport type { EventStore } from './event_stores'\nimport type { ExternalPromotion, ExternalPromotionType } from './external_promotions'\nimport type { FixedAmountPromotion, FixedAmountPromotionType } from './fixed_amount_promotions'\nimport type { FixedPricePromotion, FixedPricePromotionType } from './fixed_price_promotions'\nimport type { FlexPromotion, FlexPromotionType } from './flex_promotions'\nimport type { FreeGiftPromotion, FreeGiftPromotionType } from './free_gift_promotions'\nimport type { FreeShippingPromotion, FreeShippingPromotionType } from './free_shipping_promotions'\nimport type { PercentageDiscountPromotion, PercentageDiscountPromotionType } from './percentage_discount_promotions'\n\n\ntype OrderAmountPromotionRuleType = 'order_amount_promotion_rules'\ntype OrderAmountPromotionRuleRel = ResourceRel & { type: OrderAmountPromotionRuleType }\ntype PercentageDiscountPromotionRel = ResourceRel & { type: PercentageDiscountPromotionType }\ntype FreeShippingPromotionRel = ResourceRel & { type: FreeShippingPromotionType }\ntype BuyXPayYPromotionRel = ResourceRel & { type: BuyXPayYPromotionType }\ntype FreeGiftPromotionRel = ResourceRel & { type: FreeGiftPromotionType }\ntype FixedPricePromotionRel = ResourceRel & { type: FixedPricePromotionType }\ntype ExternalPromotionRel = ResourceRel & { type: ExternalPromotionType }\ntype FixedAmountPromotionRel = ResourceRel & { type: FixedAmountPromotionType }\ntype FlexPromotionRel = ResourceRel & { type: FlexPromotionType }\n\n\nexport type OrderAmountPromotionRuleSort = Pick<OrderAmountPromotionRule, 'id'> & ResourceSort\n// export type OrderAmountPromotionRuleFilter = Pick<OrderAmountPromotionRule, 'id'> & ResourceFilter\n\n\ninterface OrderAmountPromotionRule extends Resource {\n\t\n\treadonly type: OrderAmountPromotionRuleType\n\n\t/** \n\t * Apply the promotion only when order is over this amount, in cents.\n\t * @example ```1000```\n\t */\n\torder_amount_cents?: number | null\n\t/** \n\t * Apply the promotion only when order is over this amount, float.\n\t * @example ```10```\n\t */\n\torder_amount_float?: number | null\n\t/** \n\t * Apply the promotion only when order is over this amount, formatted.\n\t * @example ```\"€10,00\"```\n\t */\n\tformatted_order_amount?: string | null\n\t/** \n\t * Send this attribute if you want to compare the specified amount with order's subtotal (excluding discounts, if any).\n\t * @example ```true```\n\t */\n\tuse_subtotal?: boolean | null\n\n\tpromotion?: PercentageDiscountPromotion | FreeShippingPromotion | BuyXPayYPromotion | FreeGiftPromotion | FixedPricePromotion | ExternalPromotion | FixedAmountPromotion | FlexPromotion | null\n\tevent_stores?: EventStore[] | null\n\n}\n\n\ninterface OrderAmountPromotionRuleCreate extends ResourceCreate {\n\t\n\t/** \n\t * Apply the promotion only when order is over this amount, in cents.\n\t * @example ```1000```\n\t */\n\torder_amount_cents?: number | null\n\t/** \n\t * Send this attribute if you want to compare the specified amount with order's subtotal (excluding discounts, if any).\n\t * @example ```true```\n\t */\n\tuse_subtotal?: boolean | null\n\n\tpromotion: PercentageDiscountPromotionRel | FreeShippingPromotionRel | BuyXPayYPromotionRel | FreeGiftPromotionRel | FixedPricePromotionRel | ExternalPromotionRel | FixedAmountPromotionRel | FlexPromotionRel\n\n}\n\n\ninterface OrderAmountPromotionRuleUpdate extends ResourceUpdate {\n\t\n\t/** \n\t * Apply the promotion only when order is over this amount, in cents.\n\t * @example ```1000```\n\t */\n\torder_amount_cents?: number | null\n\t/** \n\t * Send this attribute if you want to compare the specified amount with order's subtotal (excluding discounts, if any).\n\t * @example ```true```\n\t */\n\tuse_subtotal?: boolean | null\n\n\tpromotion?: PercentageDiscountPromotionRel | FreeShippingPromotionRel | BuyXPayYPromotionRel | FreeGiftPromotionRel | FixedPricePromotionRel | ExternalPromotionRel | FixedAmountPromotionRel | FlexPromotionRel | null\n\n}\n\n\nclass OrderAmountPromotionRules extends ApiResource<OrderAmountPromotionRule> {\n\n\tstatic readonly TYPE: OrderAmountPromotionRuleType = 'order_amount_promotion_rules' as const\n\n\tasync create(resource: OrderAmountPromotionRuleCreate, params?: QueryParamsRetrieve<OrderAmountPromotionRule>, options?: ResourcesConfig): Promise<OrderAmountPromotionRule> {\n\t\treturn this.resources.create<OrderAmountPromotionRuleCreate, OrderAmountPromotionRule>({ ...resource, type: OrderAmountPromotionRules.TYPE }, params, options)\n\t}\n\n\tasync update(resource: OrderAmountPromotionRuleUpdate, params?: QueryParamsRetrieve<OrderAmountPromotionRule>, options?: ResourcesConfig): Promise<OrderAmountPromotionRule> {\n\t\treturn this.resources.update<OrderAmountPromotionRuleUpdate, OrderAmountPromotionRule>({ ...resource, type: OrderAmountPromotionRules.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: OrderAmountPromotionRules.TYPE } : id, options)\n\t}\n\n\tasync event_stores(orderAmountPromotionRuleId: string | OrderAmountPromotionRule, params?: QueryParamsList<EventStore>, options?: ResourcesConfig): Promise<ListResponse<EventStore>> {\n\t\tconst _orderAmountPromotionRuleId = (orderAmountPromotionRuleId as OrderAmountPromotionRule).id || orderAmountPromotionRuleId as string\n\t\treturn this.resources.fetch<EventStore>({ type: 'event_stores' }, `order_amount_promotion_rules/${_orderAmountPromotionRuleId}/event_stores`, params, options) as unknown as ListResponse<EventStore>\n\t}\n\n\n\tisOrderAmountPromotionRule(resource: any): resource is OrderAmountPromotionRule {\n\t\treturn resource.type && (resource.type === OrderAmountPromotionRules.TYPE)\n\t}\n\n\n\trelationship(id: string | ResourceId | null): OrderAmountPromotionRuleRel {\n\t\treturn super.relationshipOneToOne<OrderAmountPromotionRuleRel>(id)\n\t}\n\n\trelationshipToMany(...ids: string[]): OrderAmountPromotionRuleRel[] {\n\t\treturn super.relationshipOneToMany<OrderAmountPromotionRuleRel>(...ids)\n\t}\n\n\n\ttype(): OrderAmountPromotionRuleType {\n\t\treturn OrderAmountPromotionRules.TYPE\n\t}\n\n}\n\n\nconst instance = new OrderAmountPromotionRules()\nexport default instance\n\nexport type { OrderAmountPromotionRule, OrderAmountPromotionRuleCreate, OrderAmountPromotionRules, OrderAmountPromotionRuleType, OrderAmountPromotionRuleUpdate }\n"]}
|