@commercelayer/sdk 8.0.0-beta.7 → 8.0.0-beta.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +20 -8
- package/lib/api-B89jsST3.d.cts +18490 -0
- package/lib/api-DVobTSjQ.d.ts +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-235HO65F.cjs +75 -0
- package/lib/chunk-235HO65F.cjs.map +1 -0
- package/lib/chunk-2BRGAZ4X.js +68 -0
- package/lib/chunk-2BRGAZ4X.js.map +1 -0
- package/lib/chunk-2GRDW45N.cjs +70 -0
- package/lib/chunk-2GRDW45N.cjs.map +1 -0
- package/lib/chunk-2MI5Z7VJ.js +78 -0
- package/lib/chunk-2MI5Z7VJ.js.map +1 -0
- package/lib/chunk-2NEP5PSK.js +100 -0
- package/lib/chunk-2NEP5PSK.js.map +1 -0
- package/lib/chunk-2OYKT3RR.js +77 -0
- package/lib/chunk-2OYKT3RR.js.map +1 -0
- package/lib/chunk-2PQAQHJI.js +177 -0
- package/lib/chunk-2PQAQHJI.js.map +1 -0
- package/lib/chunk-2QQF3ZMT.cjs +79 -0
- package/lib/chunk-2QQF3ZMT.cjs.map +1 -0
- package/lib/chunk-2UKLZ4EG.js +36 -0
- package/lib/chunk-2UKLZ4EG.js.map +1 -0
- package/lib/chunk-2VUXKS2F.js +73 -0
- package/lib/chunk-2VUXKS2F.js.map +1 -0
- package/lib/chunk-2VZ3GTLB.js +89 -0
- package/lib/chunk-2VZ3GTLB.js.map +1 -0
- package/lib/chunk-36PT4X6A.cjs +62 -0
- package/lib/chunk-36PT4X6A.cjs.map +1 -0
- package/lib/chunk-37NI4FHX.js +68 -0
- package/lib/chunk-37NI4FHX.js.map +1 -0
- package/lib/chunk-3BHI5VNM.js +68 -0
- package/lib/chunk-3BHI5VNM.js.map +1 -0
- package/lib/chunk-3DMYHXGB.js +20 -0
- package/lib/chunk-3DMYHXGB.js.map +1 -0
- package/lib/chunk-3VR5QCJN.cjs +79 -0
- package/lib/chunk-3VR5QCJN.cjs.map +1 -0
- package/lib/chunk-42DVUIC3.cjs +69 -0
- package/lib/chunk-42DVUIC3.cjs.map +1 -0
- package/lib/chunk-446RVIXA.js +196 -0
- package/lib/chunk-446RVIXA.js.map +1 -0
- package/lib/chunk-46MXNGIX.cjs +67 -0
- package/lib/chunk-46MXNGIX.cjs.map +1 -0
- package/lib/chunk-4COAM2UE.cjs +44 -0
- package/lib/chunk-4COAM2UE.cjs.map +1 -0
- package/lib/chunk-4DTC6Q55.cjs +77 -0
- package/lib/chunk-4DTC6Q55.cjs.map +1 -0
- package/lib/chunk-4M5WDVHU.cjs +62 -0
- package/lib/chunk-4M5WDVHU.cjs.map +1 -0
- package/lib/chunk-4NJX5DTP.cjs +193 -0
- package/lib/chunk-4NJX5DTP.cjs.map +1 -0
- package/lib/chunk-4T2SG77Z.js +89 -0
- package/lib/chunk-4T2SG77Z.js.map +1 -0
- package/lib/chunk-4U6G25RN.js +91 -0
- package/lib/chunk-4U6G25RN.js.map +1 -0
- package/lib/chunk-4W2XRXKH.js +84 -0
- package/lib/chunk-4W2XRXKH.js.map +1 -0
- package/lib/chunk-4X4HMQC7.cjs +70 -0
- package/lib/chunk-4X4HMQC7.cjs.map +1 -0
- package/lib/chunk-4XCA5IXW.js +180 -0
- package/lib/chunk-4XCA5IXW.js.map +1 -0
- package/lib/chunk-5247NHKP.js +88 -0
- package/lib/chunk-5247NHKP.js.map +1 -0
- package/lib/chunk-57TABMO5.cjs +71 -0
- package/lib/chunk-57TABMO5.cjs.map +1 -0
- package/lib/chunk-5LWXBEM2.js +59 -0
- package/lib/chunk-5LWXBEM2.js.map +1 -0
- package/lib/chunk-5OBEOAVA.cjs +179 -0
- package/lib/chunk-5OBEOAVA.cjs.map +1 -0
- package/lib/chunk-5QZBWB7E.cjs +93 -0
- package/lib/chunk-5QZBWB7E.cjs.map +1 -0
- package/lib/chunk-5SCGD2SM.js +60 -0
- package/lib/chunk-5SCGD2SM.js.map +1 -0
- package/lib/chunk-5YXCRSRV.cjs +91 -0
- package/lib/chunk-5YXCRSRV.cjs.map +1 -0
- package/lib/chunk-676BTCSC.cjs +70 -0
- package/lib/chunk-676BTCSC.cjs.map +1 -0
- package/lib/chunk-67UKEI4Q.js +77 -0
- package/lib/chunk-67UKEI4Q.js.map +1 -0
- package/lib/chunk-6CI5PFOJ.cjs +84 -0
- package/lib/chunk-6CI5PFOJ.cjs.map +1 -0
- package/lib/chunk-6KUTNI4L.cjs +70 -0
- package/lib/chunk-6KUTNI4L.cjs.map +1 -0
- package/lib/chunk-6TJJD77K.cjs +40 -0
- package/lib/chunk-6TJJD77K.cjs.map +1 -0
- package/lib/chunk-6VEXYG3T.js +123 -0
- package/lib/chunk-6VEXYG3T.js.map +1 -0
- package/lib/chunk-6VWPITQA.cjs +165 -0
- package/lib/chunk-6VWPITQA.cjs.map +1 -0
- package/lib/chunk-6WIZIPTT.js +60 -0
- package/lib/chunk-6WIZIPTT.js.map +1 -0
- package/lib/chunk-6YI7SUXL.js +42 -0
- package/lib/chunk-6YI7SUXL.js.map +1 -0
- package/lib/chunk-6ZEDHYE7.js +68 -0
- package/lib/chunk-6ZEDHYE7.js.map +1 -0
- package/lib/chunk-75CGJHAH.js +163 -0
- package/lib/chunk-75CGJHAH.js.map +1 -0
- package/lib/chunk-767AGYG7.cjs +62 -0
- package/lib/chunk-767AGYG7.cjs.map +1 -0
- package/lib/chunk-76C7DJD6.cjs +91 -0
- package/lib/chunk-76C7DJD6.cjs.map +1 -0
- package/lib/chunk-76KIQ66Q.js +68 -0
- package/lib/chunk-76KIQ66Q.js.map +1 -0
- package/lib/chunk-7BI3E7HL.cjs +79 -0
- package/lib/chunk-7BI3E7HL.cjs.map +1 -0
- package/lib/chunk-7MAOZTJA.cjs +35 -0
- package/lib/chunk-7MAOZTJA.cjs.map +1 -0
- package/lib/chunk-7MSAW7UA.js +89 -0
- package/lib/chunk-7MSAW7UA.js.map +1 -0
- package/lib/chunk-7RGN2RV2.cjs +60 -0
- package/lib/chunk-7RGN2RV2.cjs.map +1 -0
- package/lib/chunk-7SDKOZQE.cjs +79 -0
- package/lib/chunk-7SDKOZQE.cjs.map +1 -0
- package/lib/chunk-A4RURV7K.cjs +53 -0
- package/lib/chunk-A4RURV7K.cjs.map +1 -0
- package/lib/chunk-A6SPZ23B.js +75 -0
- package/lib/chunk-A6SPZ23B.js.map +1 -0
- package/lib/chunk-AALFYYOS.js +177 -0
- package/lib/chunk-AALFYYOS.js.map +1 -0
- package/lib/chunk-ABFJHOWD.js +68 -0
- package/lib/chunk-ABFJHOWD.js.map +1 -0
- package/lib/chunk-AHD4BYFN.cjs +243 -0
- package/lib/chunk-AHD4BYFN.cjs.map +1 -0
- package/lib/chunk-ARM7D4MZ.cjs +53 -0
- package/lib/chunk-ARM7D4MZ.cjs.map +1 -0
- package/lib/chunk-ARRZDPYJ.cjs +82 -0
- package/lib/chunk-ARRZDPYJ.cjs.map +1 -0
- package/lib/chunk-AY6EM77P.js +58 -0
- package/lib/chunk-AY6EM77P.js.map +1 -0
- package/lib/chunk-B2NRMWAL.js +69 -0
- package/lib/chunk-B2NRMWAL.js.map +1 -0
- package/lib/chunk-BAROX6BR.js +92 -0
- package/lib/chunk-BAROX6BR.js.map +1 -0
- package/lib/chunk-BNJ6YNOM.cjs +94 -0
- package/lib/chunk-BNJ6YNOM.cjs.map +1 -0
- package/lib/chunk-BNJVH4IU.js +51 -0
- package/lib/chunk-BNJVH4IU.js.map +1 -0
- package/lib/chunk-BPANUY47.cjs +22 -0
- package/lib/chunk-BPANUY47.cjs.map +1 -0
- package/lib/chunk-BR2HYHSI.js +82 -0
- package/lib/chunk-BR2HYHSI.js.map +1 -0
- package/lib/chunk-BRQPZWVK.js +68 -0
- package/lib/chunk-BRQPZWVK.js.map +1 -0
- package/lib/chunk-BUKBRSD5.cjs +86 -0
- package/lib/chunk-BUKBRSD5.cjs.map +1 -0
- package/lib/chunk-C6GJIIFQ.js +42 -0
- package/lib/chunk-C6GJIIFQ.js.map +1 -0
- package/lib/chunk-CAYOO3JS.cjs +44 -0
- package/lib/chunk-CAYOO3JS.cjs.map +1 -0
- package/lib/chunk-CEU5RCUI.js +79 -0
- package/lib/chunk-CEU5RCUI.js.map +1 -0
- package/lib/chunk-CGTNH6IV.js +50 -0
- package/lib/chunk-CGTNH6IV.js.map +1 -0
- package/lib/chunk-CGVELRN7.cjs +91 -0
- package/lib/chunk-CGVELRN7.cjs.map +1 -0
- package/lib/chunk-CIBE2CZX.cjs +52 -0
- package/lib/chunk-CIBE2CZX.cjs.map +1 -0
- package/lib/chunk-CPLBLR4E.js +612 -0
- package/lib/chunk-CPLBLR4E.js.map +1 -0
- package/lib/chunk-CTNIVLTY.cjs +205 -0
- package/lib/chunk-CTNIVLTY.cjs.map +1 -0
- package/lib/chunk-CUTRMHSG.js +89 -0
- package/lib/chunk-CUTRMHSG.js.map +1 -0
- package/lib/chunk-CVABRGXH.cjs +90 -0
- package/lib/chunk-CVABRGXH.cjs.map +1 -0
- package/lib/chunk-CW2AOHY4.cjs +88 -0
- package/lib/chunk-CW2AOHY4.cjs.map +1 -0
- package/lib/chunk-D2YPSUY4.cjs +61 -0
- package/lib/chunk-D2YPSUY4.cjs.map +1 -0
- package/lib/chunk-DDRL7ERF.js +68 -0
- package/lib/chunk-DDRL7ERF.js.map +1 -0
- package/lib/chunk-DKUQ6K6B.cjs +88 -0
- package/lib/chunk-DKUQ6K6B.cjs.map +1 -0
- package/lib/chunk-DNTDADTR.js +68 -0
- package/lib/chunk-DNTDADTR.js.map +1 -0
- package/lib/chunk-DTOF2RPL.js +77 -0
- package/lib/chunk-DTOF2RPL.js.map +1 -0
- package/lib/chunk-DU6GNBT4.js +50 -0
- package/lib/chunk-DU6GNBT4.js.map +1 -0
- package/lib/chunk-EBQ2K7TQ.js +33 -0
- package/lib/chunk-EBQ2K7TQ.js.map +1 -0
- package/lib/chunk-ECBKFTAK.cjs +61 -0
- package/lib/chunk-ECBKFTAK.cjs.map +1 -0
- package/lib/chunk-ENFK5CSE.js +118 -0
- package/lib/chunk-ENFK5CSE.js.map +1 -0
- package/lib/chunk-EOU6MO6H.cjs +70 -0
- package/lib/chunk-EOU6MO6H.cjs.map +1 -0
- package/lib/chunk-EUBNM3ZO.js +132 -0
- package/lib/chunk-EUBNM3ZO.js.map +1 -0
- package/lib/chunk-EUETC74Z.cjs +79 -0
- package/lib/chunk-EUETC74Z.cjs.map +1 -0
- package/lib/chunk-EVDBBPVM.js +68 -0
- package/lib/chunk-EVDBBPVM.js.map +1 -0
- package/lib/chunk-EXDJVWKS.js +79 -0
- package/lib/chunk-EXDJVWKS.js.map +1 -0
- package/lib/chunk-EXJAC7CY.cjs +94 -0
- package/lib/chunk-EXJAC7CY.cjs.map +1 -0
- package/lib/chunk-EY6KN5IF.cjs +60 -0
- package/lib/chunk-EY6KN5IF.cjs.map +1 -0
- package/lib/chunk-EZ32PKLC.cjs +70 -0
- package/lib/chunk-EZ32PKLC.cjs.map +1 -0
- package/lib/chunk-F5A5D4S3.cjs +102 -0
- package/lib/chunk-F5A5D4S3.cjs.map +1 -0
- package/lib/chunk-FB355ROS.js +60 -0
- package/lib/chunk-FB355ROS.js.map +1 -0
- package/lib/chunk-FEZTHTWY.cjs +120 -0
- package/lib/chunk-FEZTHTWY.cjs.map +1 -0
- package/lib/chunk-FG5OAZGV.cjs +85 -0
- package/lib/chunk-FG5OAZGV.cjs.map +1 -0
- package/lib/chunk-FNFCD7PC.cjs +98 -0
- package/lib/chunk-FNFCD7PC.cjs.map +1 -0
- package/lib/chunk-FNWLI3ZP.js +42 -0
- package/lib/chunk-FNWLI3ZP.js.map +1 -0
- package/lib/chunk-FOGC3CFK.cjs +81 -0
- package/lib/chunk-FOGC3CFK.cjs.map +1 -0
- package/lib/chunk-G4HHEC6Y.js +68 -0
- package/lib/chunk-G4HHEC6Y.js.map +1 -0
- package/lib/chunk-G4LTWX4G.cjs +62 -0
- package/lib/chunk-G4LTWX4G.cjs.map +1 -0
- package/lib/chunk-GCG5LC5E.js +86 -0
- package/lib/chunk-GCG5LC5E.js.map +1 -0
- package/lib/chunk-GEXJ2VE2.cjs +91 -0
- package/lib/chunk-GEXJ2VE2.cjs.map +1 -0
- package/lib/chunk-GGQ6AIVP.cjs +88 -0
- package/lib/chunk-GGQ6AIVP.cjs.map +1 -0
- package/lib/chunk-GIFJ76X2.cjs +47 -0
- package/lib/chunk-GIFJ76X2.cjs.map +1 -0
- package/lib/chunk-GIJ3WM7Y.js +38 -0
- package/lib/chunk-GIJ3WM7Y.js.map +1 -0
- package/lib/chunk-GMIHCHTG.js +124 -0
- package/lib/chunk-GMIHCHTG.js.map +1 -0
- package/lib/chunk-GMNK6R5J.cjs +79 -0
- package/lib/chunk-GMNK6R5J.cjs.map +1 -0
- package/lib/chunk-GS6WJNM7.cjs +166 -0
- package/lib/chunk-GS6WJNM7.cjs.map +1 -0
- package/lib/chunk-GWXMGS75.cjs +44 -0
- package/lib/chunk-GWXMGS75.cjs.map +1 -0
- package/lib/chunk-GZZXSIB2.js +61 -0
- package/lib/chunk-GZZXSIB2.js.map +1 -0
- package/lib/chunk-H3VW56K5.js +86 -0
- package/lib/chunk-H3VW56K5.js.map +1 -0
- package/lib/chunk-H4HF6EEU.js +77 -0
- package/lib/chunk-H4HF6EEU.js.map +1 -0
- package/lib/chunk-H4HUFIWL.cjs +84 -0
- package/lib/chunk-H4HUFIWL.cjs.map +1 -0
- package/lib/chunk-HHVBAXKQ.js +75 -0
- package/lib/chunk-HHVBAXKQ.js.map +1 -0
- package/lib/chunk-HIXXUB6L.js +100 -0
- package/lib/chunk-HIXXUB6L.js.map +1 -0
- package/lib/chunk-HPPLGWM2.cjs +70 -0
- package/lib/chunk-HPPLGWM2.cjs.map +1 -0
- package/lib/chunk-HTIOMBO7.js +116 -0
- package/lib/chunk-HTIOMBO7.js.map +1 -0
- package/lib/chunk-HTXJD6EN.cjs +115 -0
- package/lib/chunk-HTXJD6EN.cjs.map +1 -0
- package/lib/chunk-I3WRPA4J.cjs +77 -0
- package/lib/chunk-I3WRPA4J.cjs.map +1 -0
- package/lib/chunk-I6SL6R6A.cjs +62 -0
- package/lib/chunk-I6SL6R6A.cjs.map +1 -0
- package/lib/chunk-I7BELWOZ.cjs +29 -0
- package/lib/chunk-I7BELWOZ.cjs.map +1 -0
- package/lib/chunk-IODO3GRL.cjs +170 -0
- package/lib/chunk-IODO3GRL.cjs.map +1 -0
- package/lib/chunk-IWIVCJZP.cjs +102 -0
- package/lib/chunk-IWIVCJZP.cjs.map +1 -0
- package/lib/chunk-J2Y6T6IN.js +120 -0
- package/lib/chunk-J2Y6T6IN.js.map +1 -0
- package/lib/chunk-J6K7L5VW.cjs +126 -0
- package/lib/chunk-J6K7L5VW.cjs.map +1 -0
- package/lib/chunk-JCHHPOT7.js +75 -0
- package/lib/chunk-JCHHPOT7.js.map +1 -0
- package/lib/chunk-JDEZCM7S.cjs +70 -0
- package/lib/chunk-JDEZCM7S.cjs.map +1 -0
- package/lib/chunk-JF57GVB2.cjs +193 -0
- package/lib/chunk-JF57GVB2.cjs.map +1 -0
- package/lib/chunk-JFSUTJFF.js +79 -0
- package/lib/chunk-JFSUTJFF.js.map +1 -0
- package/lib/chunk-JLJE2LDY.js +68 -0
- package/lib/chunk-JLJE2LDY.js.map +1 -0
- package/lib/chunk-JRT3ACN7.js +80 -0
- package/lib/chunk-JRT3ACN7.js.map +1 -0
- package/lib/chunk-JUAEZTVG.js +68 -0
- package/lib/chunk-JUAEZTVG.js.map +1 -0
- package/lib/chunk-JXGFGLHJ.js +59 -0
- package/lib/chunk-JXGFGLHJ.js.map +1 -0
- package/lib/chunk-K2XM5WOD.js +77 -0
- package/lib/chunk-K2XM5WOD.js.map +1 -0
- package/lib/chunk-K7ACN66H.js +60 -0
- package/lib/chunk-K7ACN66H.js.map +1 -0
- package/lib/chunk-KAMEZEWA.js +96 -0
- package/lib/chunk-KAMEZEWA.js.map +1 -0
- package/lib/chunk-KCJ5Q3RC.js +77 -0
- package/lib/chunk-KCJ5Q3RC.js.map +1 -0
- package/lib/chunk-KDT2QFFT.cjs +81 -0
- package/lib/chunk-KDT2QFFT.cjs.map +1 -0
- package/lib/chunk-KHWZJWFV.cjs +80 -0
- package/lib/chunk-KHWZJWFV.cjs.map +1 -0
- package/lib/chunk-KKCUNEDC.js +709 -0
- package/lib/chunk-KKCUNEDC.js.map +1 -0
- package/lib/chunk-KKFPVGSR.cjs +80 -0
- package/lib/chunk-KKFPVGSR.cjs.map +1 -0
- package/lib/chunk-KKHJJLMA.js +27 -0
- package/lib/chunk-KKHJJLMA.js.map +1 -0
- package/lib/chunk-KLKK2HYA.cjs +70 -0
- package/lib/chunk-KLKK2HYA.cjs.map +1 -0
- package/lib/chunk-KSBHVLHJ.js +321 -0
- package/lib/chunk-KSBHVLHJ.js.map +1 -0
- package/lib/chunk-KVSFJGOA.js +129 -0
- package/lib/chunk-KVSFJGOA.js.map +1 -0
- package/lib/chunk-KX5YC4QE.cjs +120 -0
- package/lib/chunk-KX5YC4QE.cjs.map +1 -0
- package/lib/chunk-L2I4FREQ.js +77 -0
- package/lib/chunk-L2I4FREQ.js.map +1 -0
- package/lib/chunk-L5LKAYAB.js +177 -0
- package/lib/chunk-L5LKAYAB.js.map +1 -0
- package/lib/chunk-L7PKARTY.cjs +79 -0
- package/lib/chunk-L7PKARTY.cjs.map +1 -0
- package/lib/chunk-LKRQUDCQ.js +51 -0
- package/lib/chunk-LKRQUDCQ.js.map +1 -0
- package/lib/chunk-LKYITM53.cjs +88 -0
- package/lib/chunk-LKYITM53.cjs.map +1 -0
- package/lib/chunk-LOCGW4UZ.js +68 -0
- package/lib/chunk-LOCGW4UZ.js.map +1 -0
- package/lib/chunk-LRQC72OM.js +87 -0
- package/lib/chunk-LRQC72OM.js.map +1 -0
- package/lib/chunk-LSQVELFQ.cjs +313 -0
- package/lib/chunk-LSQVELFQ.cjs.map +1 -0
- package/lib/chunk-LTUUDUV4.js +24 -0
- package/lib/chunk-LTUUDUV4.js.map +1 -0
- package/lib/chunk-LUAW6PVB.cjs +52 -0
- package/lib/chunk-LUAW6PVB.cjs.map +1 -0
- package/lib/chunk-LWMBA3O2.js +82 -0
- package/lib/chunk-LWMBA3O2.js.map +1 -0
- package/lib/chunk-M4RBYRV3.js +67 -0
- package/lib/chunk-M4RBYRV3.js.map +1 -0
- package/lib/chunk-M6EAUX5W.js +35 -0
- package/lib/chunk-M6EAUX5W.js.map +1 -0
- package/lib/chunk-M6OJPQJ4.js +77 -0
- package/lib/chunk-M6OJPQJ4.js.map +1 -0
- package/lib/chunk-M7J2SDJC.cjs +53 -0
- package/lib/chunk-M7J2SDJC.cjs.map +1 -0
- package/lib/chunk-MBJR7LV2.cjs +77 -0
- package/lib/chunk-MBJR7LV2.cjs.map +1 -0
- package/lib/chunk-MCODGGUN.js +60 -0
- package/lib/chunk-MCODGGUN.js.map +1 -0
- package/lib/chunk-MEZMS5RE.cjs +86 -0
- package/lib/chunk-MEZMS5RE.cjs.map +1 -0
- package/lib/chunk-MIREPRUH.js +86 -0
- package/lib/chunk-MIREPRUH.js.map +1 -0
- package/lib/chunk-MOHY2GQS.js +78 -0
- package/lib/chunk-MOHY2GQS.js.map +1 -0
- package/lib/chunk-MQ43UMAN.js +191 -0
- package/lib/chunk-MQ43UMAN.js.map +1 -0
- package/lib/chunk-MUWHE7HE.cjs +61 -0
- package/lib/chunk-MUWHE7HE.cjs.map +1 -0
- package/lib/chunk-MWRGTRKR.js +241 -0
- package/lib/chunk-MWRGTRKR.js.map +1 -0
- package/lib/chunk-MZAPRZJ5.cjs +91 -0
- package/lib/chunk-MZAPRZJ5.cjs.map +1 -0
- package/lib/chunk-N37YHRKP.js +58 -0
- package/lib/chunk-N37YHRKP.js.map +1 -0
- package/lib/chunk-NCDURU7R.js +51 -0
- package/lib/chunk-NCDURU7R.js.map +1 -0
- package/lib/chunk-NGFQ7KED.js +92 -0
- package/lib/chunk-NGFQ7KED.js.map +1 -0
- package/lib/chunk-NIGW2WJZ.js +100 -0
- package/lib/chunk-NIGW2WJZ.js.map +1 -0
- package/lib/chunk-NOEFPOPE.js +77 -0
- package/lib/chunk-NOEFPOPE.js.map +1 -0
- package/lib/chunk-NPES3RMM.cjs +98 -0
- package/lib/chunk-NPES3RMM.cjs.map +1 -0
- package/lib/chunk-O533BGM3.cjs +323 -0
- package/lib/chunk-O533BGM3.cjs.map +1 -0
- package/lib/chunk-O6SULED7.js +191 -0
- package/lib/chunk-O6SULED7.js.map +1 -0
- package/lib/chunk-OGTS3FUY.cjs +67 -0
- package/lib/chunk-OGTS3FUY.cjs.map +1 -0
- package/lib/chunk-OH4R7NRW.cjs +556 -0
- package/lib/chunk-OH4R7NRW.cjs.map +1 -0
- package/lib/chunk-OOHRQZZD.cjs +84 -0
- package/lib/chunk-OOHRQZZD.cjs.map +1 -0
- package/lib/chunk-OOL5BY5X.js +96 -0
- package/lib/chunk-OOL5BY5X.js.map +1 -0
- package/lib/chunk-OS6CCKJ2.cjs +55 -0
- package/lib/chunk-OS6CCKJ2.cjs.map +1 -0
- package/lib/chunk-OVVCRTP7.js +203 -0
- package/lib/chunk-OVVCRTP7.js.map +1 -0
- package/lib/chunk-OWHODKLW.cjs +614 -0
- package/lib/chunk-OWHODKLW.cjs.map +1 -0
- package/lib/chunk-OXGUUNU2.js +68 -0
- package/lib/chunk-OXGUUNU2.js.map +1 -0
- package/lib/chunk-OXHQKMPQ.js +20 -0
- package/lib/chunk-OXHQKMPQ.js.map +1 -0
- package/lib/chunk-P6LNSPOI.cjs +53 -0
- package/lib/chunk-P6LNSPOI.cjs.map +1 -0
- package/lib/chunk-PHBLKRKQ.cjs +70 -0
- package/lib/chunk-PHBLKRKQ.cjs.map +1 -0
- package/lib/chunk-PHYWUU7V.js +84 -0
- package/lib/chunk-PHYWUU7V.js.map +1 -0
- package/lib/chunk-PIPNMGPH.cjs +79 -0
- package/lib/chunk-PIPNMGPH.cjs.map +1 -0
- package/lib/chunk-PSLEKRZK.cjs +198 -0
- package/lib/chunk-PSLEKRZK.cjs.map +1 -0
- package/lib/chunk-PX7JHWRT.js +65 -0
- package/lib/chunk-PX7JHWRT.js.map +1 -0
- package/lib/chunk-PXI3FFHR.js +542 -0
- package/lib/chunk-PXI3FFHR.js.map +1 -0
- package/lib/chunk-Q6VOWBEQ.cjs +125 -0
- package/lib/chunk-Q6VOWBEQ.cjs.map +1 -0
- package/lib/chunk-QHRU26FW.js +75 -0
- package/lib/chunk-QHRU26FW.js.map +1 -0
- package/lib/chunk-QJ7CAGZ5.js +83 -0
- package/lib/chunk-QJ7CAGZ5.js.map +1 -0
- package/lib/chunk-QMN65ZNB.js +77 -0
- package/lib/chunk-QMN65ZNB.js.map +1 -0
- package/lib/chunk-QORYWNNP.cjs +63 -0
- package/lib/chunk-QORYWNNP.cjs.map +1 -0
- package/lib/chunk-QTGLEGGW.cjs +89 -0
- package/lib/chunk-QTGLEGGW.cjs.map +1 -0
- package/lib/chunk-QWN7WOZ5.cjs +79 -0
- package/lib/chunk-QWN7WOZ5.cjs.map +1 -0
- package/lib/chunk-QX7FGLBA.js +60 -0
- package/lib/chunk-QX7FGLBA.js.map +1 -0
- package/lib/chunk-QYNCY3YO.js +51 -0
- package/lib/chunk-QYNCY3YO.js.map +1 -0
- package/lib/chunk-QZUT3LHW.cjs +70 -0
- package/lib/chunk-QZUT3LHW.cjs.map +1 -0
- package/lib/chunk-R5TTR22O.cjs +81 -0
- package/lib/chunk-R5TTR22O.cjs.map +1 -0
- package/lib/chunk-RBVNKEEP.cjs +79 -0
- package/lib/chunk-RBVNKEEP.cjs.map +1 -0
- package/lib/chunk-RDB6NEE4.cjs +98 -0
- package/lib/chunk-RDB6NEE4.cjs.map +1 -0
- package/lib/chunk-RGVEG53S.js +168 -0
- package/lib/chunk-RGVEG53S.js.map +1 -0
- package/lib/chunk-RKMVLTAY.cjs +70 -0
- package/lib/chunk-RKMVLTAY.cjs.map +1 -0
- package/lib/chunk-RMANZCYG.cjs +70 -0
- package/lib/chunk-RMANZCYG.cjs.map +1 -0
- package/lib/chunk-RPRYQAVD.js +69 -0
- package/lib/chunk-RPRYQAVD.js.map +1 -0
- package/lib/chunk-RQ5M3VRG.js +118 -0
- package/lib/chunk-RQ5M3VRG.js.map +1 -0
- package/lib/chunk-RQRSN6GK.cjs +70 -0
- package/lib/chunk-RQRSN6GK.cjs.map +1 -0
- package/lib/chunk-RTLI25A2.cjs +118 -0
- package/lib/chunk-RTLI25A2.cjs.map +1 -0
- package/lib/chunk-RXSGRNKJ.js +50 -0
- package/lib/chunk-RXSGRNKJ.js.map +1 -0
- package/lib/chunk-S5LBERKZ.cjs +79 -0
- package/lib/chunk-S5LBERKZ.cjs.map +1 -0
- package/lib/chunk-S7AZ2CAV.cjs +62 -0
- package/lib/chunk-S7AZ2CAV.cjs.map +1 -0
- package/lib/chunk-SBCHXAFH.js +77 -0
- package/lib/chunk-SBCHXAFH.js.map +1 -0
- package/lib/chunk-SG6BDPDG.js +177 -0
- package/lib/chunk-SG6BDPDG.js.map +1 -0
- package/lib/chunk-SH2MT5YH.js +59 -0
- package/lib/chunk-SH2MT5YH.js.map +1 -0
- package/lib/chunk-SJAPPBAX.cjs +84 -0
- package/lib/chunk-SJAPPBAX.cjs.map +1 -0
- package/lib/chunk-SNYNOS4X.js +89 -0
- package/lib/chunk-SNYNOS4X.js.map +1 -0
- package/lib/chunk-SRUNHFBP.cjs +179 -0
- package/lib/chunk-SRUNHFBP.cjs.map +1 -0
- package/lib/chunk-T2QY74EE.cjs +122 -0
- package/lib/chunk-T2QY74EE.cjs.map +1 -0
- package/lib/chunk-T33HICMW.cjs +53 -0
- package/lib/chunk-T33HICMW.cjs.map +1 -0
- package/lib/chunk-T44NBZHI.cjs +134 -0
- package/lib/chunk-T44NBZHI.cjs.map +1 -0
- package/lib/chunk-T5HTYZIG.cjs +120 -0
- package/lib/chunk-T5HTYZIG.cjs.map +1 -0
- package/lib/chunk-TLA45WNE.js +53 -0
- package/lib/chunk-TLA45WNE.js.map +1 -0
- package/lib/chunk-TLYNUT46.js +191 -0
- package/lib/chunk-TLYNUT46.js.map +1 -0
- package/lib/chunk-TQJXJSPS.js +77 -0
- package/lib/chunk-TQJXJSPS.js.map +1 -0
- package/lib/chunk-TR7P3VDX.js +96 -0
- package/lib/chunk-TR7P3VDX.js.map +1 -0
- package/lib/chunk-TVRITF4Q.cjs +164 -0
- package/lib/chunk-TVRITF4Q.cjs.map +1 -0
- package/lib/chunk-TXK5K43E.js +82 -0
- package/lib/chunk-TXK5K43E.js.map +1 -0
- package/lib/chunk-TZICXIFV.js +113 -0
- package/lib/chunk-TZICXIFV.js.map +1 -0
- package/lib/chunk-TZXOKIVJ.js +86 -0
- package/lib/chunk-TZXOKIVJ.js.map +1 -0
- package/lib/chunk-UIXOF5WD.js +60 -0
- package/lib/chunk-UIXOF5WD.js.map +1 -0
- package/lib/chunk-UL36HJRH.cjs +179 -0
- package/lib/chunk-UL36HJRH.cjs.map +1 -0
- package/lib/chunk-UN5ADA3I.js +89 -0
- package/lib/chunk-UN5ADA3I.js.map +1 -0
- package/lib/chunk-UQA3V7EQ.cjs +193 -0
- package/lib/chunk-UQA3V7EQ.cjs.map +1 -0
- package/lib/chunk-US3S3AKJ.cjs +77 -0
- package/lib/chunk-US3S3AKJ.cjs.map +1 -0
- package/lib/chunk-UT5ALTP2.js +164 -0
- package/lib/chunk-UT5ALTP2.js.map +1 -0
- package/lib/chunk-UT7EZWLA.cjs +71 -0
- package/lib/chunk-UT7EZWLA.cjs.map +1 -0
- package/lib/chunk-UZZEUGAU.cjs +88 -0
- package/lib/chunk-UZZEUGAU.cjs.map +1 -0
- package/lib/chunk-V6ZTOCIP.cjs +44 -0
- package/lib/chunk-V6ZTOCIP.cjs.map +1 -0
- package/lib/chunk-VALGSE43.cjs +38 -0
- package/lib/chunk-VALGSE43.cjs.map +1 -0
- package/lib/chunk-VF2O2LL2.cjs +91 -0
- package/lib/chunk-VF2O2LL2.cjs.map +1 -0
- package/lib/chunk-VKKABEIF.js +91 -0
- package/lib/chunk-VKKABEIF.js.map +1 -0
- package/lib/chunk-VMIJFFMR.cjs +98 -0
- package/lib/chunk-VMIJFFMR.cjs.map +1 -0
- package/lib/chunk-VQL2GDOC.js +65 -0
- package/lib/chunk-VQL2GDOC.js.map +1 -0
- package/lib/chunk-W3DJZSUC.js +68 -0
- package/lib/chunk-W3DJZSUC.js.map +1 -0
- package/lib/chunk-W4TRA2O2.cjs +102 -0
- package/lib/chunk-W4TRA2O2.cjs.map +1 -0
- package/lib/chunk-W7HLFWQY.cjs +182 -0
- package/lib/chunk-W7HLFWQY.cjs.map +1 -0
- package/lib/chunk-WBWYSOBQ.js +177 -0
- package/lib/chunk-WBWYSOBQ.js.map +1 -0
- package/lib/chunk-WGBYJEHX.cjs +179 -0
- package/lib/chunk-WGBYJEHX.cjs.map +1 -0
- package/lib/chunk-WGJFSDBA.cjs +93 -0
- package/lib/chunk-WGJFSDBA.cjs.map +1 -0
- package/lib/chunk-WHX5YI6H.js +51 -0
- package/lib/chunk-WHX5YI6H.js.map +1 -0
- package/lib/chunk-WIDPMSU4.cjs +179 -0
- package/lib/chunk-WIDPMSU4.cjs.map +1 -0
- package/lib/chunk-WISBTS3C.cjs +79 -0
- package/lib/chunk-WISBTS3C.cjs.map +1 -0
- package/lib/chunk-WLKLPLXH.cjs +70 -0
- package/lib/chunk-WLKLPLXH.cjs.map +1 -0
- package/lib/chunk-WNCRJM76.js +120 -0
- package/lib/chunk-WNCRJM76.js.map +1 -0
- package/lib/chunk-WO5LQQSK.cjs +4 -0
- package/lib/chunk-WO5LQQSK.cjs.map +1 -0
- package/lib/chunk-WOD46TWU.js +96 -0
- package/lib/chunk-WOD46TWU.js.map +1 -0
- package/lib/chunk-WOVCY6ON.cjs +22 -0
- package/lib/chunk-WOVCY6ON.cjs.map +1 -0
- package/lib/chunk-WROORM6M.js +116 -0
- package/lib/chunk-WROORM6M.js.map +1 -0
- package/lib/chunk-WSSSFMLB.cjs +131 -0
- package/lib/chunk-WSSSFMLB.cjs.map +1 -0
- package/lib/chunk-WYHWZDME.js +82 -0
- package/lib/chunk-WYHWZDME.js.map +1 -0
- package/lib/chunk-WZKYHIUM.cjs +52 -0
- package/lib/chunk-WZKYHIUM.cjs.map +1 -0
- package/lib/chunk-X3NJTGAQ.js +45 -0
- package/lib/chunk-X3NJTGAQ.js.map +1 -0
- package/lib/chunk-X7J5ETGR.cjs +96 -0
- package/lib/chunk-X7J5ETGR.cjs.map +1 -0
- package/lib/chunk-XEZW6I2I.js +42 -0
- package/lib/chunk-XEZW6I2I.js.map +1 -0
- package/lib/chunk-XFFPZEJQ.cjs +40 -0
- package/lib/chunk-XFFPZEJQ.cjs.map +1 -0
- package/lib/chunk-XVMHGTZT.js +11 -0
- package/lib/chunk-XVMHGTZT.js.map +1 -0
- package/lib/chunk-Y7FJ5Q2J.cjs +72 -0
- package/lib/chunk-Y7FJ5Q2J.cjs.map +1 -0
- package/lib/chunk-YD6OZ4RO.cjs +712 -0
- package/lib/chunk-YD6OZ4RO.cjs.map +1 -0
- package/lib/chunk-YJ3O5XLC.js +3 -0
- package/lib/chunk-YJ3O5XLC.js.map +1 -0
- package/lib/chunk-YTWBZTJI.js +94 -0
- package/lib/chunk-YTWBZTJI.js.map +1 -0
- package/lib/chunk-YV756IAI.cjs +62 -0
- package/lib/chunk-YV756IAI.cjs.map +1 -0
- package/lib/chunk-YVX5EI7G.cjs +122 -0
- package/lib/chunk-YVX5EI7G.cjs.map +1 -0
- package/lib/chunk-YX2YHZDI.cjs +70 -0
- package/lib/chunk-YX2YHZDI.cjs.map +1 -0
- package/lib/chunk-YXCYLDXT.cjs +179 -0
- package/lib/chunk-YXCYLDXT.cjs.map +1 -0
- package/lib/chunk-YXFYXDGG.js +154 -0
- package/lib/chunk-YXFYXDGG.js.map +1 -0
- package/lib/chunk-YYOW53OQ.js +68 -0
- package/lib/chunk-YYOW53OQ.js.map +1 -0
- package/lib/chunk-Z3KQDJAD.cjs +26 -0
- package/lib/chunk-Z3KQDJAD.cjs.map +1 -0
- package/lib/chunk-ZCQOTKMF.js +177 -0
- package/lib/chunk-ZCQOTKMF.js.map +1 -0
- package/lib/chunk-ZDBMDLOT.js +86 -0
- package/lib/chunk-ZDBMDLOT.js.map +1 -0
- package/lib/chunk-ZQY6GVML.cjs +14 -0
- package/lib/chunk-ZQY6GVML.cjs.map +1 -0
- package/lib/chunk-ZYT2EPDD.js +305 -0
- package/lib/chunk-ZYT2EPDD.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 +155 -671
- package/lib/index.cjs.map +1 -1
- package/lib/index.d.cts +17 -6
- package/lib/index.d.ts +15 -3
- package/lib/index.js +154 -142
- package/lib/index.js.map +1 -1
- 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 +707 -0
- package/lib/single-client.cjs.map +1 -0
- package/lib/single-client.d.cts +21 -0
- package/lib/single-client.d.ts +19 -0
- package/lib/single-client.js +156 -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/fixed_price_promotions.ts"],"names":["ApiResource"],"mappings":";;;;;AAmRA,IAAM,oBAAA,GAAN,MAAM,qBAAA,SAA6BA,6BAAA,CAAiC;AAAA,EAEnE,OAAgB,IAAA,GAAgC,wBAAA;AAAA,EAEhD,MAAM,MAAA,CAAO,QAAA,EAAqC,MAAA,EAAmD,OAAA,EAAyD;AAC7J,IAAA,OAAO,IAAA,CAAK,SAAA,CAAU,MAAA,CAAuD,EAAE,GAAG,QAAA,EAAU,IAAA,EAAM,qBAAA,CAAqB,IAAA,EAAK,EAAG,MAAA,EAAQ,OAAO,CAAA;AAAA,EAC/I;AAAA,EAEA,MAAM,MAAA,CAAO,QAAA,EAAqC,MAAA,EAAmD,OAAA,EAAyD;AAC7J,IAAA,OAAO,IAAA,CAAK,SAAA,CAAU,MAAA,CAAuD,EAAE,GAAG,QAAA,EAAU,IAAA,EAAM,qBAAA,CAAqB,IAAA,EAAK,EAAG,MAAA,EAAQ,OAAO,CAAA;AAAA,EAC/I;AAAA,EAEA,MAAM,MAAA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A,EAAsB,QAAmD,OAAA,EAAyD;AACtL,IAAA,OAAO,KAAK,SAAA,CAAU,MAAA,CAAuD,EAAE,EAAA,EAAK,OAAO,OAAO,QAAA,GAAW,EAAA,GAAI,EAAA,CAAG,EAAA,EAAI,MAAM,qBAAA,CAAqB,IAAA,EAAM,cAAc,YAAA,EAAa,EAAG,QAAQ,OAAO,CAAA;AAAA,EACvM;AAAA,EAGA,sBAAsB,QAAA,EAAgD;AACrE,IAAA,OAAO,QAAA,CAAS,IAAA,IAAS,QAAA,CAAS,IAAA,KAAS,qBAAA,CAAqB,IAAA;AAAA,EACjE;AAAA,EAGA,aAAa,EAAA,EAAwD;AACpE,IAAA,OAAO,KAAA,CAAM,qBAA6C,EAAE,CAAA;AAAA,EAC7D;AAAA,EAEA,sBAAsB,GAAA,EAAyC;AAC9D,IAAA,OAAO,KAAA,CAAM,qBAAA,CAA8C,GAAG,GAAG,CAAA;AAAA,EAClE;AAAA,EAGA,IAAA,GAAgC;AAC/B,IAAA,OAAO,qBAAA,CAAqB,IAAA;AAAA,EAC7B;AAED,CAAA;AAGA,IAAM,QAAA,GAAW,IAAI,oBAAA,EAAqB;AAC1C,IAAO,8BAAA,GAAQ","file":"chunk-F5GFKBDK.cjs","sourcesContent":["import type { QueryParamsList, QueryParamsRetrieve } from '../query'\nimport type { ListResponse, Resource, ResourceCreate, ResourceId, ResourceRel, ResourceSort, /* ResourceFilter */ ResourcesConfig, ResourceUpdate, } from '../resource'\nimport { ApiResource } from '../resource'\nimport type { Attachment } from './attachments'\nimport type { 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 FixedPricePromotionType = 'fixed_price_promotions'\ntype FixedPricePromotionRel = ResourceRel & { type: FixedPricePromotionType }\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 FixedPricePromotionSort = Pick<FixedPricePromotion, '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 FixedPricePromotionFilter = Pick<FixedPricePromotion, '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 FixedPricePromotion extends Resource {\n\t\n\treadonly type: FixedPricePromotionType\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 price fixed amount to be applied on matching SKUs, 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 FixedPricePromotionCreate 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 price fixed amount to be applied on matching SKUs, 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\n\ttags?: TagRel[] | null\n\n}\n\n\ninterface FixedPricePromotionUpdate 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 price fixed amount to be applied on matching SKUs, 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 FixedPricePromotions extends ApiResource<FixedPricePromotion> {\n\n\tstatic readonly TYPE: FixedPricePromotionType = 'fixed_price_promotions' as const\n\n\tasync create(resource: FixedPricePromotionCreate, params?: QueryParamsRetrieve<FixedPricePromotion>, options?: ResourcesConfig): Promise<FixedPricePromotion> {\n\t\treturn this.resources.create<FixedPricePromotionCreate, FixedPricePromotion>({ ...resource, type: FixedPricePromotions.TYPE }, params, options)\n\t}\n\n\tasync update(resource: FixedPricePromotionUpdate, params?: QueryParamsRetrieve<FixedPricePromotion>, options?: ResourcesConfig): Promise<FixedPricePromotion> {\n\t\treturn this.resources.update<FixedPricePromotionUpdate, FixedPricePromotion>({ ...resource, type: FixedPricePromotions.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: FixedPricePromotions.TYPE } : id, options)\n\t}\n\n\tasync market(fixedPricePromotionId: string | FixedPricePromotion, params?: QueryParamsRetrieve<Market>, options?: ResourcesConfig): Promise<Market> {\n\t\tconst _fixedPricePromotionId = (fixedPricePromotionId as FixedPricePromotion).id || fixedPricePromotionId as string\n\t\treturn this.resources.fetch<Market>({ type: 'markets' }, `fixed_price_promotions/${_fixedPricePromotionId}/market`, params, options) as unknown as Market\n\t}\n\n\tasync order_amount_promotion_rule(fixedPricePromotionId: string | FixedPricePromotion, params?: QueryParamsRetrieve<OrderAmountPromotionRule>, options?: ResourcesConfig): Promise<OrderAmountPromotionRule> {\n\t\tconst _fixedPricePromotionId = (fixedPricePromotionId as FixedPricePromotion).id || fixedPricePromotionId as string\n\t\treturn this.resources.fetch<OrderAmountPromotionRule>({ type: 'order_amount_promotion_rules' }, `fixed_price_promotions/${_fixedPricePromotionId}/order_amount_promotion_rule`, params, options) as unknown as OrderAmountPromotionRule\n\t}\n\n\tasync sku_list_promotion_rule(fixedPricePromotionId: string | FixedPricePromotion, params?: QueryParamsRetrieve<SkuListPromotionRule>, options?: ResourcesConfig): Promise<SkuListPromotionRule> {\n\t\tconst _fixedPricePromotionId = (fixedPricePromotionId as FixedPricePromotion).id || fixedPricePromotionId as string\n\t\treturn this.resources.fetch<SkuListPromotionRule>({ type: 'sku_list_promotion_rules' }, `fixed_price_promotions/${_fixedPricePromotionId}/sku_list_promotion_rule`, params, options) as unknown as SkuListPromotionRule\n\t}\n\n\tasync coupon_codes_promotion_rule(fixedPricePromotionId: string | FixedPricePromotion, params?: QueryParamsRetrieve<CouponCodesPromotionRule>, options?: ResourcesConfig): Promise<CouponCodesPromotionRule> {\n\t\tconst _fixedPricePromotionId = (fixedPricePromotionId as FixedPricePromotion).id || fixedPricePromotionId as string\n\t\treturn this.resources.fetch<CouponCodesPromotionRule>({ type: 'coupon_codes_promotion_rules' }, `fixed_price_promotions/${_fixedPricePromotionId}/coupon_codes_promotion_rule`, params, options) as unknown as CouponCodesPromotionRule\n\t}\n\n\tasync custom_promotion_rule(fixedPricePromotionId: string | FixedPricePromotion, params?: QueryParamsRetrieve<CustomPromotionRule>, options?: ResourcesConfig): Promise<CustomPromotionRule> {\n\t\tconst _fixedPricePromotionId = (fixedPricePromotionId as FixedPricePromotion).id || fixedPricePromotionId as string\n\t\treturn this.resources.fetch<CustomPromotionRule>({ type: 'custom_promotion_rules' }, `fixed_price_promotions/${_fixedPricePromotionId}/custom_promotion_rule`, params, options) as unknown as CustomPromotionRule\n\t}\n\n\tasync sku_list(fixedPricePromotionId: string | FixedPricePromotion, params?: QueryParamsRetrieve<SkuList>, options?: ResourcesConfig): Promise<SkuList> {\n\t\tconst _fixedPricePromotionId = (fixedPricePromotionId as FixedPricePromotion).id || fixedPricePromotionId as string\n\t\treturn this.resources.fetch<SkuList>({ type: 'sku_lists' }, `fixed_price_promotions/${_fixedPricePromotionId}/sku_list`, params, options) as unknown as SkuList\n\t}\n\n\tasync coupons(fixedPricePromotionId: string | FixedPricePromotion, params?: QueryParamsList<Coupon>, options?: ResourcesConfig): Promise<ListResponse<Coupon>> {\n\t\tconst _fixedPricePromotionId = (fixedPricePromotionId as FixedPricePromotion).id || fixedPricePromotionId as string\n\t\treturn this.resources.fetch<Coupon>({ type: 'coupons' }, `fixed_price_promotions/${_fixedPricePromotionId}/coupons`, params, options) as unknown as ListResponse<Coupon>\n\t}\n\n\tasync attachments(fixedPricePromotionId: string | FixedPricePromotion, params?: QueryParamsList<Attachment>, options?: ResourcesConfig): Promise<ListResponse<Attachment>> {\n\t\tconst _fixedPricePromotionId = (fixedPricePromotionId as FixedPricePromotion).id || fixedPricePromotionId as string\n\t\treturn this.resources.fetch<Attachment>({ type: 'attachments' }, `fixed_price_promotions/${_fixedPricePromotionId}/attachments`, params, options) as unknown as ListResponse<Attachment>\n\t}\n\n\tasync events(fixedPricePromotionId: string | FixedPricePromotion, params?: QueryParamsList<Event>, options?: ResourcesConfig): Promise<ListResponse<Event>> {\n\t\tconst _fixedPricePromotionId = (fixedPricePromotionId as FixedPricePromotion).id || fixedPricePromotionId as string\n\t\treturn this.resources.fetch<Event>({ type: 'events' }, `fixed_price_promotions/${_fixedPricePromotionId}/events`, params, options) as unknown as ListResponse<Event>\n\t}\n\n\tasync tags(fixedPricePromotionId: string | FixedPricePromotion, params?: QueryParamsList<Tag>, options?: ResourcesConfig): Promise<ListResponse<Tag>> {\n\t\tconst _fixedPricePromotionId = (fixedPricePromotionId as FixedPricePromotion).id || fixedPricePromotionId as string\n\t\treturn this.resources.fetch<Tag>({ type: 'tags' }, `fixed_price_promotions/${_fixedPricePromotionId}/tags`, params, options) as unknown as ListResponse<Tag>\n\t}\n\n\tasync event_stores(fixedPricePromotionId: string | FixedPricePromotion, params?: QueryParamsList<EventStore>, options?: ResourcesConfig): Promise<ListResponse<EventStore>> {\n\t\tconst _fixedPricePromotionId = (fixedPricePromotionId as FixedPricePromotion).id || fixedPricePromotionId as string\n\t\treturn this.resources.fetch<EventStore>({ type: 'event_stores' }, `fixed_price_promotions/${_fixedPricePromotionId}/event_stores`, params, options) as unknown as ListResponse<EventStore>\n\t}\n\n\tasync skus(fixedPricePromotionId: string | FixedPricePromotion, params?: QueryParamsList<Sku>, options?: ResourcesConfig): Promise<ListResponse<Sku>> {\n\t\tconst _fixedPricePromotionId = (fixedPricePromotionId as FixedPricePromotion).id || fixedPricePromotionId as string\n\t\treturn this.resources.fetch<Sku>({ type: 'skus' }, `fixed_price_promotions/${_fixedPricePromotionId}/skus`, params, options) as unknown as ListResponse<Sku>\n\t}\n\n\tasync _disable(id: string | FixedPricePromotion, params?: QueryParamsRetrieve<FixedPricePromotion>, options?: ResourcesConfig): Promise<FixedPricePromotion> {\n\t\treturn this.resources.update<FixedPricePromotionUpdate, FixedPricePromotion>({ id: (typeof id === 'string')? id: id.id, type: FixedPricePromotions.TYPE, _disable: true }, params, options)\n\t}\n\n\tasync _enable(id: string | FixedPricePromotion, params?: QueryParamsRetrieve<FixedPricePromotion>, options?: ResourcesConfig): Promise<FixedPricePromotion> {\n\t\treturn this.resources.update<FixedPricePromotionUpdate, FixedPricePromotion>({ id: (typeof id === 'string')? id: id.id, type: FixedPricePromotions.TYPE, _enable: true }, params, options)\n\t}\n\n\tasync _add_tags(id: string | FixedPricePromotion, triggerValue: string, params?: QueryParamsRetrieve<FixedPricePromotion>, options?: ResourcesConfig): Promise<FixedPricePromotion> {\n\t\treturn this.resources.update<FixedPricePromotionUpdate, FixedPricePromotion>({ id: (typeof id === 'string')? id: id.id, type: FixedPricePromotions.TYPE, _add_tags: triggerValue }, params, options)\n\t}\n\n\tasync _remove_tags(id: string | FixedPricePromotion, triggerValue: string, params?: QueryParamsRetrieve<FixedPricePromotion>, options?: ResourcesConfig): Promise<FixedPricePromotion> {\n\t\treturn this.resources.update<FixedPricePromotionUpdate, FixedPricePromotion>({ id: (typeof id === 'string')? id: id.id, type: FixedPricePromotions.TYPE, _remove_tags: triggerValue }, params, options)\n\t}\n\n\n\tisFixedPricePromotion(resource: any): resource is FixedPricePromotion {\n\t\treturn resource.type && (resource.type === FixedPricePromotions.TYPE)\n\t}\n\n\n\trelationship(id: string | ResourceId | null): FixedPricePromotionRel {\n\t\treturn super.relationshipOneToOne<FixedPricePromotionRel>(id)\n\t}\n\n\trelationshipToMany(...ids: string[]): FixedPricePromotionRel[] {\n\t\treturn super.relationshipOneToMany<FixedPricePromotionRel>(...ids)\n\t}\n\n\n\ttype(): FixedPricePromotionType {\n\t\treturn FixedPricePromotions.TYPE\n\t}\n\n}\n\n\nconst instance = new FixedPricePromotions()\nexport default instance\n\nexport type { FixedPricePromotion, FixedPricePromotionCreate, FixedPricePromotions, FixedPricePromotionType, FixedPricePromotionUpdate }\n"]}
|
package/lib/chunk-F6REPWKJ.cjs
DELETED
|
@@ -1,77 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
var chunkY56DKJ4Z_cjs = require('./chunk-Y56DKJ4Z.cjs');
|
|
4
|
-
|
|
5
|
-
// src/resources/gift_cards.ts
|
|
6
|
-
var GiftCards = class _GiftCards extends chunkY56DKJ4Z_cjs.ApiResource {
|
|
7
|
-
static TYPE = "gift_cards";
|
|
8
|
-
async create(resource, params, options) {
|
|
9
|
-
return this.resources.create({ ...resource, type: _GiftCards.TYPE }, params, options);
|
|
10
|
-
}
|
|
11
|
-
async update(resource, params, options) {
|
|
12
|
-
return this.resources.update({ ...resource, type: _GiftCards.TYPE }, params, options);
|
|
13
|
-
}
|
|
14
|
-
async delete(id, options) {
|
|
15
|
-
await this.resources.delete(typeof id === "string" ? { id, type: _GiftCards.TYPE } : id, options);
|
|
16
|
-
}
|
|
17
|
-
async market(giftCardId, params, options) {
|
|
18
|
-
const _giftCardId = giftCardId.id || giftCardId;
|
|
19
|
-
return this.resources.fetch({ type: "markets" }, `gift_cards/${_giftCardId}/market`, params, options);
|
|
20
|
-
}
|
|
21
|
-
async gift_card_recipient(giftCardId, params, options) {
|
|
22
|
-
const _giftCardId = giftCardId.id || giftCardId;
|
|
23
|
-
return this.resources.fetch({ type: "gift_card_recipients" }, `gift_cards/${_giftCardId}/gift_card_recipient`, params, options);
|
|
24
|
-
}
|
|
25
|
-
async attachments(giftCardId, params, options) {
|
|
26
|
-
const _giftCardId = giftCardId.id || giftCardId;
|
|
27
|
-
return this.resources.fetch({ type: "attachments" }, `gift_cards/${_giftCardId}/attachments`, params, options);
|
|
28
|
-
}
|
|
29
|
-
async events(giftCardId, params, options) {
|
|
30
|
-
const _giftCardId = giftCardId.id || giftCardId;
|
|
31
|
-
return this.resources.fetch({ type: "events" }, `gift_cards/${_giftCardId}/events`, params, options);
|
|
32
|
-
}
|
|
33
|
-
async tags(giftCardId, params, options) {
|
|
34
|
-
const _giftCardId = giftCardId.id || giftCardId;
|
|
35
|
-
return this.resources.fetch({ type: "tags" }, `gift_cards/${_giftCardId}/tags`, params, options);
|
|
36
|
-
}
|
|
37
|
-
async event_stores(giftCardId, params, options) {
|
|
38
|
-
const _giftCardId = giftCardId.id || giftCardId;
|
|
39
|
-
return this.resources.fetch({ type: "event_stores" }, `gift_cards/${_giftCardId}/event_stores`, params, options);
|
|
40
|
-
}
|
|
41
|
-
async _purchase(id, params, options) {
|
|
42
|
-
return this.resources.update({ id: typeof id === "string" ? id : id.id, type: _GiftCards.TYPE, _purchase: true }, params, options);
|
|
43
|
-
}
|
|
44
|
-
async _activate(id, params, options) {
|
|
45
|
-
return this.resources.update({ id: typeof id === "string" ? id : id.id, type: _GiftCards.TYPE, _activate: true }, params, options);
|
|
46
|
-
}
|
|
47
|
-
async _deactivate(id, params, options) {
|
|
48
|
-
return this.resources.update({ id: typeof id === "string" ? id : id.id, type: _GiftCards.TYPE, _deactivate: true }, params, options);
|
|
49
|
-
}
|
|
50
|
-
async _balance_change_cents(id, triggerValue, params, options) {
|
|
51
|
-
return this.resources.update({ id: typeof id === "string" ? id : id.id, type: _GiftCards.TYPE, _balance_change_cents: triggerValue }, params, options);
|
|
52
|
-
}
|
|
53
|
-
async _add_tags(id, triggerValue, params, options) {
|
|
54
|
-
return this.resources.update({ id: typeof id === "string" ? id : id.id, type: _GiftCards.TYPE, _add_tags: triggerValue }, params, options);
|
|
55
|
-
}
|
|
56
|
-
async _remove_tags(id, triggerValue, params, options) {
|
|
57
|
-
return this.resources.update({ id: typeof id === "string" ? id : id.id, type: _GiftCards.TYPE, _remove_tags: triggerValue }, params, options);
|
|
58
|
-
}
|
|
59
|
-
isGiftCard(resource) {
|
|
60
|
-
return resource.type && resource.type === _GiftCards.TYPE;
|
|
61
|
-
}
|
|
62
|
-
relationship(id) {
|
|
63
|
-
return super.relationshipOneToOne(id);
|
|
64
|
-
}
|
|
65
|
-
relationshipToMany(...ids) {
|
|
66
|
-
return super.relationshipOneToMany(...ids);
|
|
67
|
-
}
|
|
68
|
-
type() {
|
|
69
|
-
return _GiftCards.TYPE;
|
|
70
|
-
}
|
|
71
|
-
};
|
|
72
|
-
var instance = new GiftCards();
|
|
73
|
-
var gift_cards_default = instance;
|
|
74
|
-
|
|
75
|
-
exports.gift_cards_default = gift_cards_default;
|
|
76
|
-
//# sourceMappingURL=chunk-F6REPWKJ.cjs.map
|
|
77
|
-
//# sourceMappingURL=chunk-F6REPWKJ.cjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/resources/gift_cards.ts"],"names":["ApiResource"],"mappings":";;;;;AAqRA,IAAM,SAAA,GAAN,MAAM,UAAA,SAAkBA,6BAAA,CAAsB;AAAA,EAE7C,OAAgB,IAAA,GAAqB,YAAA;AAAA,EAErC,MAAM,MAAA,CAAO,QAAA,EAA0B,MAAA,EAAwC,OAAA,EAA8C;AAC5H,IAAA,OAAO,IAAA,CAAK,SAAA,CAAU,MAAA,CAAiC,EAAE,GAAG,QAAA,EAAU,IAAA,EAAM,UAAA,CAAU,IAAA,EAAK,EAAG,MAAA,EAAQ,OAAO,CAAA;AAAA,EAC9G;AAAA,EAEA,MAAM,MAAA,CAAO,QAAA,EAA0B,MAAA,EAAwC,OAAA,EAA8C;AAC5H,IAAA,OAAO,IAAA,CAAK,SAAA,CAAU,MAAA,CAA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,IAAA,OAAO,KAAK,SAAA,CAAU,MAAA,CAAiC,EAAE,EAAA,EAAK,OAAO,OAAO,QAAA,GAAW,EAAA,GAAI,EAAA,CAAG,EAAA,EAAI,MAAM,UAAA,CAAU,IAAA,EAAM,cAAc,YAAA,EAAa,EAAG,QAAQ,OAAO,CAAA;AAAA,EACtK;AAAA,EAGA,WAAW,QAAA,EAAqC;AAC/C,IAAA,OAAO,QAAA,CAAS,IAAA,IAAS,QAAA,CAAS,IAAA,KAAS,UAAA,CAAU,IAAA;AAAA,EACtD;AAAA,EAGA,aAAa,EAAA,EAA6C;AACzD,IAAA,OAAO,KAAA,CAAM,qBAAkC,EAAE,CAAA;AAAA,EAClD;AAAA,EAEA,sBAAsB,GAAA,EAA8B;AACnD,IAAA,OAAO,KAAA,CAAM,qBAAA,CAAmC,GAAG,GAAG,CAAA;AAAA,EACvD;AAAA,EAGA,IAAA,GAAqB;AACpB,IAAA,OAAO,UAAA,CAAU,IAAA;AAAA,EAClB;AAED,CAAA;AAGA,IAAM,QAAA,GAAW,IAAI,SAAA,EAAU;AAC/B,IAAO,kBAAA,GAAQ","file":"chunk-F6REPWKJ.cjs","sourcesContent":["import type { QueryParamsList, QueryParamsRetrieve } from '../query'\nimport type { ListResponse, Resource, ResourceCreate, ResourceId, ResourceRel, ResourceSort, /* ResourceFilter */ ResourcesConfig, ResourceUpdate, } from '../resource'\nimport { ApiResource } from '../resource'\nimport type { Attachment } from './attachments'\nimport type { EventStore } from './event_stores'\nimport type { Event } from './events'\nimport type { GiftCardRecipient, GiftCardRecipientType } from './gift_card_recipients'\nimport type { Market, MarketType } from './markets'\nimport type { Tag, TagType } from './tags'\n\n\ntype GiftCardType = 'gift_cards'\ntype GiftCardRel = ResourceRel & { type: GiftCardType }\ntype MarketRel = ResourceRel & { type: MarketType }\ntype GiftCardRecipientRel = ResourceRel & { type: GiftCardRecipientType }\ntype TagRel = ResourceRel & { type: TagType }\n\n\nexport type GiftCardSort = Pick<GiftCard, 'id' | 'status' | 'currency_code' | 'balance_cents' | 'balance_max_cents' | 'expires_at'> & ResourceSort\n// export type GiftCardFilter = Pick<GiftCard, 'id' | 'status' | 'code' | 'currency_code' | 'balance_cents' | 'balance_max_cents' | 'single_use' | 'rechargeable' | 'expires_at'> & ResourceFilter\n\n\ninterface GiftCard extends Resource {\n\t\n\treadonly type: GiftCardType\n\n\t/** \n\t * The gift card status. One of 'draft' (default), 'inactive', 'active', or 'redeemed'.\n\t * @example ```\"draft\"```\n\t */\n\tstatus: 'draft' | 'inactive' | 'active' | 'redeemed'\n\t/** \n\t * The gift card code UUID. If not set, it's automatically generated.\n\t * @example ```\"32db311a-75d9-4c17-9e34-2be220137ad6\"```\n\t */\n\tcode?: string | null\n\t/** \n\t * The international 3-letter currency code as defined by the ISO 4217 standard.\n\t * @example ```\"EUR\"```\n\t */\n\tcurrency_code?: string | null\n\t/** \n\t * The gift card initial balance, in cents.\n\t * @example ```15000```\n\t */\n\tinitial_balance_cents: number\n\t/** \n\t * The gift card initial balance, float.\n\t * @example ```150```\n\t */\n\tinitial_balance_float: number\n\t/** \n\t * The gift card initial balance, formatted.\n\t * @example ```\"€150,00\"```\n\t */\n\tformatted_initial_balance: string\n\t/** \n\t * The gift card balance, in cents.\n\t * @example ```15000```\n\t */\n\tbalance_cents: number\n\t/** \n\t * The gift card balance, float.\n\t * @example ```150```\n\t */\n\tbalance_float: number\n\t/** \n\t * The gift card balance, formatted.\n\t * @example ```\"€150,00\"```\n\t */\n\tformatted_balance: string\n\t/** \n\t * The gift card balance max, in cents.\n\t * @example ```100000```\n\t */\n\tbalance_max_cents?: number | null\n\t/** \n\t * The gift card balance max, float.\n\t * @example ```1000```\n\t */\n\tbalance_max_float?: number | null\n\t/** \n\t * The gift card balance max, formatted.\n\t * @example ```\"€1000,00\"```\n\t */\n\tformatted_balance_max?: string | null\n\t/** \n\t * The gift card balance log. Tracks all the gift card transactions.\n\t * @example ```[{\"datetime\":\"2019-12-23T12:00:00.000Z\",\"balance_change_cents\":-10000},{\"datetime\":\"2020-02-01T12:00:00.000Z\",\"balance_change_cents\":5000}]```\n\t */\n\tbalance_log: Array<Record<string, any>>\n\t/** \n\t * The gift card usage log. Tracks all the gift card usage actions by orders.\n\t * @example ```{\"eNoKkhmbNp\":[{\"action\":\"use\",\"amount_cents\":-1000,\"balance_cents\":4000,\"order_number\":\"11111\",\"datetime\":\"2020-02-01T12:00:00.000Z\"}]}```\n\t */\n\tusage_log: Record<string, any>\n\t/** \n\t * Indicates if the gift card can be used only one.\n\t */\n\tsingle_use?: boolean | null\n\t/** \n\t * Indicates if the gift card can be recharged.\n\t * @example ```true```\n\t */\n\trechargeable?: boolean | null\n\t/** \n\t * Indicates if redeemed gift card amount is distributed for tax calculation.\n\t * @example ```true```\n\t */\n\tdistribute_discount?: boolean | null\n\t/** \n\t * The URL of an image that represents the gift card.\n\t * @example ```\"https://img.yourdomain.com/gift_cards/32db311a.png\"```\n\t */\n\timage_url?: string | null\n\t/** \n\t * Time at which the gift card will expire.\n\t * @example ```\"2018-01-01T12:00:00.000Z\"```\n\t */\n\texpires_at?: string | null\n\t/** \n\t * The email address of the associated recipient. When creating or updating a gift card, this is a shortcut to find or create the associated recipient by email.\n\t * @example ```\"john@example.com\"```\n\t */\n\trecipient_email?: string | null\n\n\tmarket?: Market | null\n\tgift_card_recipient?: GiftCardRecipient | null\n\tattachments?: Attachment[] | null\n\tevents?: Event[] | null\n\ttags?: Tag[] | null\n\tevent_stores?: EventStore[] | null\n\n}\n\n\ninterface GiftCardCreate extends ResourceCreate {\n\t\n\t/** \n\t * The gift card code UUID. If not set, it's automatically generated.\n\t * @example ```\"32db311a-75d9-4c17-9e34-2be220137ad6\"```\n\t */\n\tcode?: string | null\n\t/** \n\t * The international 3-letter currency code as defined by the ISO 4217 standard.\n\t * @example ```\"EUR\"```\n\t */\n\tcurrency_code?: string | null\n\t/** \n\t * The gift card balance, in cents.\n\t * @example ```15000```\n\t */\n\tbalance_cents: number\n\t/** \n\t * The gift card balance max, in cents.\n\t * @example ```100000```\n\t */\n\tbalance_max_cents?: number | null\n\t/** \n\t * Indicates if the gift card can be used only one.\n\t */\n\tsingle_use?: boolean | null\n\t/** \n\t * Indicates if the gift card can be recharged.\n\t * @example ```true```\n\t */\n\trechargeable?: boolean | null\n\t/** \n\t * Indicates if redeemed gift card amount is distributed for tax calculation.\n\t * @example ```true```\n\t */\n\tdistribute_discount?: boolean | null\n\t/** \n\t * The URL of an image that represents the gift card.\n\t * @example ```\"https://img.yourdomain.com/gift_cards/32db311a.png\"```\n\t */\n\timage_url?: string | null\n\t/** \n\t * Time at which the gift card will expire.\n\t * @example ```\"2018-01-01T12:00:00.000Z\"```\n\t */\n\texpires_at?: string | null\n\t/** \n\t * The email address of the associated recipient. When creating or updating a gift card, this is a shortcut to find or create the associated recipient by email.\n\t * @example ```\"john@example.com\"```\n\t */\n\trecipient_email?: string | null\n\n\tmarket?: MarketRel | null\n\tgift_card_recipient?: GiftCardRecipientRel | null\n\ttags?: TagRel[] | null\n\n}\n\n\ninterface GiftCardUpdate extends ResourceUpdate {\n\t\n\t/** \n\t * The international 3-letter currency code as defined by the ISO 4217 standard.\n\t * @example ```\"EUR\"```\n\t */\n\tcurrency_code?: string | null\n\t/** \n\t * The gift card balance, in cents.\n\t * @example ```15000```\n\t */\n\tbalance_cents?: number | null\n\t/** \n\t * The gift card balance max, in cents.\n\t * @example ```100000```\n\t */\n\tbalance_max_cents?: number | null\n\t/** \n\t * Indicates if the gift card can be used only one.\n\t */\n\tsingle_use?: boolean | null\n\t/** \n\t * Indicates if the gift card can be recharged.\n\t * @example ```true```\n\t */\n\trechargeable?: boolean | null\n\t/** \n\t * Indicates if redeemed gift card amount is distributed for tax calculation.\n\t * @example ```true```\n\t */\n\tdistribute_discount?: boolean | null\n\t/** \n\t * The URL of an image that represents the gift card.\n\t * @example ```\"https://img.yourdomain.com/gift_cards/32db311a.png\"```\n\t */\n\timage_url?: string | null\n\t/** \n\t * Time at which the gift card will expire.\n\t * @example ```\"2018-01-01T12:00:00.000Z\"```\n\t */\n\texpires_at?: string | null\n\t/** \n\t * The email address of the associated recipient. When creating or updating a gift card, this is a shortcut to find or create the associated recipient by email.\n\t * @example ```\"john@example.com\"```\n\t */\n\trecipient_email?: string | null\n\t/** \n\t * Send this attribute if you want to confirm a draft gift card. The gift card becomes 'inactive', waiting to be activated.\n\t * @example ```true```\n\t */\n\t_purchase?: boolean | null\n\t/** \n\t * Send this attribute if you want to activate a gift card.\n\t * @example ```true```\n\t */\n\t_activate?: boolean | null\n\t/** \n\t * Send this attribute if you want to deactivate a gift card.\n\t * @example ```true```\n\t */\n\t_deactivate?: boolean | null\n\t/** \n\t * The balance change, in cents. Send a negative value to reduces the card balance by the specified amount. Send a positive value to recharge the gift card (if rechargeable).\n\t * @example ```-5000```\n\t */\n\t_balance_change_cents?: number | null\n\t/** \n\t * Comma separated list of tags to be added. Duplicates, invalid and non existing ones are discarded. Cannot be passed by sales channels.\n\t */\n\t_add_tags?: string | null\n\t/** \n\t * Comma separated list of tags to be removed. Duplicates, invalid and non existing ones are discarded. Cannot be passed by sales channels.\n\t */\n\t_remove_tags?: string | null\n\n\tmarket?: MarketRel | null\n\tgift_card_recipient?: GiftCardRecipientRel | null\n\ttags?: TagRel[] | null\n\n}\n\n\nclass GiftCards extends ApiResource<GiftCard> {\n\n\tstatic readonly TYPE: GiftCardType = 'gift_cards' as const\n\n\tasync create(resource: GiftCardCreate, params?: QueryParamsRetrieve<GiftCard>, options?: ResourcesConfig): Promise<GiftCard> {\n\t\treturn this.resources.create<GiftCardCreate, GiftCard>({ ...resource, type: GiftCards.TYPE }, params, options)\n\t}\n\n\tasync update(resource: GiftCardUpdate, params?: QueryParamsRetrieve<GiftCard>, options?: ResourcesConfig): Promise<GiftCard> {\n\t\treturn this.resources.update<GiftCardUpdate, GiftCard>({ ...resource, type: GiftCards.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: GiftCards.TYPE } : id, options)\n\t}\n\n\tasync market(giftCardId: string | GiftCard, params?: QueryParamsRetrieve<Market>, options?: ResourcesConfig): Promise<Market> {\n\t\tconst _giftCardId = (giftCardId as GiftCard).id || giftCardId as string\n\t\treturn this.resources.fetch<Market>({ type: 'markets' }, `gift_cards/${_giftCardId}/market`, params, options) as unknown as Market\n\t}\n\n\tasync gift_card_recipient(giftCardId: string | GiftCard, params?: QueryParamsRetrieve<GiftCardRecipient>, options?: ResourcesConfig): Promise<GiftCardRecipient> {\n\t\tconst _giftCardId = (giftCardId as GiftCard).id || giftCardId as string\n\t\treturn this.resources.fetch<GiftCardRecipient>({ type: 'gift_card_recipients' }, `gift_cards/${_giftCardId}/gift_card_recipient`, params, options) as unknown as GiftCardRecipient\n\t}\n\n\tasync attachments(giftCardId: string | GiftCard, params?: QueryParamsList<Attachment>, options?: ResourcesConfig): Promise<ListResponse<Attachment>> {\n\t\tconst _giftCardId = (giftCardId as GiftCard).id || giftCardId as string\n\t\treturn this.resources.fetch<Attachment>({ type: 'attachments' }, `gift_cards/${_giftCardId}/attachments`, params, options) as unknown as ListResponse<Attachment>\n\t}\n\n\tasync events(giftCardId: string | GiftCard, params?: QueryParamsList<Event>, options?: ResourcesConfig): Promise<ListResponse<Event>> {\n\t\tconst _giftCardId = (giftCardId as GiftCard).id || giftCardId as string\n\t\treturn this.resources.fetch<Event>({ type: 'events' }, `gift_cards/${_giftCardId}/events`, params, options) as unknown as ListResponse<Event>\n\t}\n\n\tasync tags(giftCardId: string | GiftCard, params?: QueryParamsList<Tag>, options?: ResourcesConfig): Promise<ListResponse<Tag>> {\n\t\tconst _giftCardId = (giftCardId as GiftCard).id || giftCardId as string\n\t\treturn this.resources.fetch<Tag>({ type: 'tags' }, `gift_cards/${_giftCardId}/tags`, params, options) as unknown as ListResponse<Tag>\n\t}\n\n\tasync event_stores(giftCardId: string | GiftCard, params?: QueryParamsList<EventStore>, options?: ResourcesConfig): Promise<ListResponse<EventStore>> {\n\t\tconst _giftCardId = (giftCardId as GiftCard).id || giftCardId as string\n\t\treturn this.resources.fetch<EventStore>({ type: 'event_stores' }, `gift_cards/${_giftCardId}/event_stores`, params, options) as unknown as ListResponse<EventStore>\n\t}\n\n\tasync _purchase(id: string | GiftCard, params?: QueryParamsRetrieve<GiftCard>, options?: ResourcesConfig): Promise<GiftCard> {\n\t\treturn this.resources.update<GiftCardUpdate, GiftCard>({ id: (typeof id === 'string')? id: id.id, type: GiftCards.TYPE, _purchase: true }, params, options)\n\t}\n\n\tasync _activate(id: string | GiftCard, params?: QueryParamsRetrieve<GiftCard>, options?: ResourcesConfig): Promise<GiftCard> {\n\t\treturn this.resources.update<GiftCardUpdate, GiftCard>({ id: (typeof id === 'string')? id: id.id, type: GiftCards.TYPE, _activate: true }, params, options)\n\t}\n\n\tasync _deactivate(id: string | GiftCard, params?: QueryParamsRetrieve<GiftCard>, options?: ResourcesConfig): Promise<GiftCard> {\n\t\treturn this.resources.update<GiftCardUpdate, GiftCard>({ id: (typeof id === 'string')? id: id.id, type: GiftCards.TYPE, _deactivate: true }, params, options)\n\t}\n\n\tasync _balance_change_cents(id: string | GiftCard, triggerValue: number, params?: QueryParamsRetrieve<GiftCard>, options?: ResourcesConfig): Promise<GiftCard> {\n\t\treturn this.resources.update<GiftCardUpdate, GiftCard>({ id: (typeof id === 'string')? id: id.id, type: GiftCards.TYPE, _balance_change_cents: triggerValue }, params, options)\n\t}\n\n\tasync _add_tags(id: string | GiftCard, triggerValue: string, params?: QueryParamsRetrieve<GiftCard>, options?: ResourcesConfig): Promise<GiftCard> {\n\t\treturn this.resources.update<GiftCardUpdate, GiftCard>({ id: (typeof id === 'string')? id: id.id, type: GiftCards.TYPE, _add_tags: triggerValue }, params, options)\n\t}\n\n\tasync _remove_tags(id: string | GiftCard, triggerValue: string, params?: QueryParamsRetrieve<GiftCard>, options?: ResourcesConfig): Promise<GiftCard> {\n\t\treturn this.resources.update<GiftCardUpdate, GiftCard>({ id: (typeof id === 'string')? id: id.id, type: GiftCards.TYPE, _remove_tags: triggerValue }, params, options)\n\t}\n\n\n\tisGiftCard(resource: any): resource is GiftCard {\n\t\treturn resource.type && (resource.type === GiftCards.TYPE)\n\t}\n\n\n\trelationship(id: string | ResourceId | null): GiftCardRel {\n\t\treturn super.relationshipOneToOne<GiftCardRel>(id)\n\t}\n\n\trelationshipToMany(...ids: string[]): GiftCardRel[] {\n\t\treturn super.relationshipOneToMany<GiftCardRel>(...ids)\n\t}\n\n\n\ttype(): GiftCardType {\n\t\treturn GiftCards.TYPE\n\t}\n\n}\n\n\nconst instance = new GiftCards()\nexport default instance\n\nexport type { GiftCard, GiftCardCreate, GiftCards, GiftCardType, GiftCardUpdate }\n"]}
|
package/lib/chunk-F7F4VRB2.js
DELETED
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
import { ApiResource } from './chunk-USIBTSYD.js';
|
|
2
|
-
|
|
3
|
-
// src/resources/sku_list_items.ts
|
|
4
|
-
var SkuListItems = class _SkuListItems extends ApiResource {
|
|
5
|
-
static TYPE = "sku_list_items";
|
|
6
|
-
async create(resource, params, options) {
|
|
7
|
-
return this.resources.create({ ...resource, type: _SkuListItems.TYPE }, params, options);
|
|
8
|
-
}
|
|
9
|
-
async update(resource, params, options) {
|
|
10
|
-
return this.resources.update({ ...resource, type: _SkuListItems.TYPE }, params, options);
|
|
11
|
-
}
|
|
12
|
-
async delete(id, options) {
|
|
13
|
-
await this.resources.delete(typeof id === "string" ? { id, type: _SkuListItems.TYPE } : id, options);
|
|
14
|
-
}
|
|
15
|
-
async sku_list(skuListItemId, params, options) {
|
|
16
|
-
const _skuListItemId = skuListItemId.id || skuListItemId;
|
|
17
|
-
return this.resources.fetch({ type: "sku_lists" }, `sku_list_items/${_skuListItemId}/sku_list`, params, options);
|
|
18
|
-
}
|
|
19
|
-
async sku(skuListItemId, params, options) {
|
|
20
|
-
const _skuListItemId = skuListItemId.id || skuListItemId;
|
|
21
|
-
return this.resources.fetch({ type: "skus" }, `sku_list_items/${_skuListItemId}/sku`, params, options);
|
|
22
|
-
}
|
|
23
|
-
async event_stores(skuListItemId, params, options) {
|
|
24
|
-
const _skuListItemId = skuListItemId.id || skuListItemId;
|
|
25
|
-
return this.resources.fetch({ type: "event_stores" }, `sku_list_items/${_skuListItemId}/event_stores`, params, options);
|
|
26
|
-
}
|
|
27
|
-
isSkuListItem(resource) {
|
|
28
|
-
return resource.type && resource.type === _SkuListItems.TYPE;
|
|
29
|
-
}
|
|
30
|
-
relationship(id) {
|
|
31
|
-
return super.relationshipOneToOne(id);
|
|
32
|
-
}
|
|
33
|
-
relationshipToMany(...ids) {
|
|
34
|
-
return super.relationshipOneToMany(...ids);
|
|
35
|
-
}
|
|
36
|
-
type() {
|
|
37
|
-
return _SkuListItems.TYPE;
|
|
38
|
-
}
|
|
39
|
-
};
|
|
40
|
-
var instance = new SkuListItems();
|
|
41
|
-
var sku_list_items_default = instance;
|
|
42
|
-
|
|
43
|
-
export { sku_list_items_default };
|
|
44
|
-
//# sourceMappingURL=chunk-F7F4VRB2.js.map
|
|
45
|
-
//# sourceMappingURL=chunk-F7F4VRB2.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/resources/sku_list_items.ts"],"names":[],"mappings":";;;AA0FA,IAAM,YAAA,GAAN,MAAM,aAAA,SAAqB,WAAA,CAAyB;AAAA,EAEnD,OAAgB,IAAA,GAAwB,gBAAA;AAAA,EAExC,MAAM,MAAA,CAAO,QAAA,EAA6B,MAAA,EAA2C,OAAA,EAAiD;AACrI,IAAA,OAAO,IAAA,CAAK,SAAA,CAAU,MAAA,CAAuC,EAAE,GAAG,QAAA,EAAU,IAAA,EAAM,aAAA,CAAa,IAAA,EAAK,EAAG,MAAA,EAAQ,OAAO,CAAA;AAAA,EACvH;AAAA,EAEA,MAAM,MAAA,CAAO,QAAA,EAA6B,MAAA,EAA2C,OAAA,EAAiD;AACrI,IAAA,OAAO,IAAA,CAAK,SAAA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,EAAiB,MAAA,EAAQ,OAAO,CAAA;AAAA,EACnI;AAAA,EAGA,cAAc,QAAA,EAAwC;AACrD,IAAA,OAAO,QAAA,CAAS,IAAA,IAAS,QAAA,CAAS,IAAA,KAAS,aAAA,CAAa,IAAA;AAAA,EACzD;AAAA,EAGA,aAAa,EAAA,EAAgD;AAC5D,IAAA,OAAO,KAAA,CAAM,qBAAqC,EAAE,CAAA;AAAA,EACrD;AAAA,EAEA,sBAAsB,GAAA,EAAiC;AACtD,IAAA,OAAO,KAAA,CAAM,qBAAA,CAAsC,GAAG,GAAG,CAAA;AAAA,EAC1D;AAAA,EAGA,IAAA,GAAwB;AACvB,IAAA,OAAO,aAAA,CAAa,IAAA;AAAA,EACrB;AAED,CAAA;AAGA,IAAM,QAAA,GAAW,IAAI,YAAA,EAAa;AAClC,IAAO,sBAAA,GAAQ","file":"chunk-F7F4VRB2.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 { SkuList, SkuListType } from './sku_lists'\nimport type { Sku, SkuType } from './skus'\n\n\ntype SkuListItemType = 'sku_list_items'\ntype SkuListItemRel = ResourceRel & { type: SkuListItemType }\ntype SkuListRel = ResourceRel & { type: SkuListType }\ntype SkuRel = ResourceRel & { type: SkuType }\n\n\nexport type SkuListItemSort = Pick<SkuListItem, 'id' | 'position' | 'quantity'> & ResourceSort\n// export type SkuListItemFilter = Pick<SkuListItem, 'id' | 'position' | 'quantity'> & ResourceFilter\n\n\ninterface SkuListItem extends Resource {\n\t\n\treadonly type: SkuListItemType\n\n\t/** \n\t * The SKU list item's position.\n\t * @example ```2```\n\t */\n\tposition?: number | null\n\t/** \n\t * The code of the associated SKU.\n\t * @example ```\"TSHIRTMM000000FFFFFFXLXX\"```\n\t */\n\tsku_code?: string | null\n\t/** \n\t * The SKU quantity for this SKU list item.\n\t * @example ```1```\n\t */\n\tquantity?: number | null\n\n\tsku_list?: SkuList | null\n\tsku?: Sku | null\n\tevent_stores?: EventStore[] | null\n\n}\n\n\ninterface SkuListItemCreate extends ResourceCreate {\n\t\n\t/** \n\t * The SKU list item's position.\n\t * @example ```2```\n\t */\n\tposition?: number | null\n\t/** \n\t * The code of the associated SKU.\n\t * @example ```\"TSHIRTMM000000FFFFFFXLXX\"```\n\t */\n\tsku_code?: string | null\n\t/** \n\t * The SKU quantity for this SKU list item.\n\t * @example ```1```\n\t */\n\tquantity?: number | null\n\n\tsku_list: SkuListRel\n\tsku: SkuRel\n\n}\n\n\ninterface SkuListItemUpdate extends ResourceUpdate {\n\t\n\t/** \n\t * The SKU list item's position.\n\t * @example ```2```\n\t */\n\tposition?: number | null\n\t/** \n\t * The code of the associated SKU.\n\t * @example ```\"TSHIRTMM000000FFFFFFXLXX\"```\n\t */\n\tsku_code?: string | null\n\t/** \n\t * The SKU quantity for this SKU list item.\n\t * @example ```1```\n\t */\n\tquantity?: number | null\n\t\n}\n\n\nclass SkuListItems extends ApiResource<SkuListItem> {\n\n\tstatic readonly TYPE: SkuListItemType = 'sku_list_items' as const\n\n\tasync create(resource: SkuListItemCreate, params?: QueryParamsRetrieve<SkuListItem>, options?: ResourcesConfig): Promise<SkuListItem> {\n\t\treturn this.resources.create<SkuListItemCreate, SkuListItem>({ ...resource, type: SkuListItems.TYPE }, params, options)\n\t}\n\n\tasync update(resource: SkuListItemUpdate, params?: QueryParamsRetrieve<SkuListItem>, options?: ResourcesConfig): Promise<SkuListItem> {\n\t\treturn this.resources.update<SkuListItemUpdate, SkuListItem>({ ...resource, type: SkuListItems.TYPE }, params, options)\n\t}\n\n\tasync delete(id: string | ResourceId, options?: ResourcesConfig): Promise<void> {\n\t\tawait this.resources.delete((typeof id === 'string')? { id, type: SkuListItems.TYPE } : id, options)\n\t}\n\n\tasync sku_list(skuListItemId: string | SkuListItem, params?: QueryParamsRetrieve<SkuList>, options?: ResourcesConfig): Promise<SkuList> {\n\t\tconst _skuListItemId = (skuListItemId as SkuListItem).id || skuListItemId as string\n\t\treturn this.resources.fetch<SkuList>({ type: 'sku_lists' }, `sku_list_items/${_skuListItemId}/sku_list`, params, options) as unknown as SkuList\n\t}\n\n\tasync sku(skuListItemId: string | SkuListItem, params?: QueryParamsRetrieve<Sku>, options?: ResourcesConfig): Promise<Sku> {\n\t\tconst _skuListItemId = (skuListItemId as SkuListItem).id || skuListItemId as string\n\t\treturn this.resources.fetch<Sku>({ type: 'skus' }, `sku_list_items/${_skuListItemId}/sku`, params, options) as unknown as Sku\n\t}\n\n\tasync event_stores(skuListItemId: string | SkuListItem, params?: QueryParamsList<EventStore>, options?: ResourcesConfig): Promise<ListResponse<EventStore>> {\n\t\tconst _skuListItemId = (skuListItemId as SkuListItem).id || skuListItemId as string\n\t\treturn this.resources.fetch<EventStore>({ type: 'event_stores' }, `sku_list_items/${_skuListItemId}/event_stores`, params, options) as unknown as ListResponse<EventStore>\n\t}\n\n\n\tisSkuListItem(resource: any): resource is SkuListItem {\n\t\treturn resource.type && (resource.type === SkuListItems.TYPE)\n\t}\n\n\n\trelationship(id: string | ResourceId | null): SkuListItemRel {\n\t\treturn super.relationshipOneToOne<SkuListItemRel>(id)\n\t}\n\n\trelationshipToMany(...ids: string[]): SkuListItemRel[] {\n\t\treturn super.relationshipOneToMany<SkuListItemRel>(...ids)\n\t}\n\n\n\ttype(): SkuListItemType {\n\t\treturn SkuListItems.TYPE\n\t}\n\n}\n\n\nconst instance = new SkuListItems()\nexport default instance\n\nexport type { SkuListItem, SkuListItemCreate, SkuListItems, SkuListItemType, SkuListItemUpdate }\n"]}
|
package/lib/chunk-FDLALORX.cjs
DELETED
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
var chunkY56DKJ4Z_cjs = require('./chunk-Y56DKJ4Z.cjs');
|
|
4
|
-
|
|
5
|
-
// src/resources/inventory_stock_locations.ts
|
|
6
|
-
var InventoryStockLocations = class _InventoryStockLocations extends chunkY56DKJ4Z_cjs.ApiResource {
|
|
7
|
-
static TYPE = "inventory_stock_locations";
|
|
8
|
-
async create(resource, params, options) {
|
|
9
|
-
return this.resources.create({ ...resource, type: _InventoryStockLocations.TYPE }, params, options);
|
|
10
|
-
}
|
|
11
|
-
async update(resource, params, options) {
|
|
12
|
-
return this.resources.update({ ...resource, type: _InventoryStockLocations.TYPE }, params, options);
|
|
13
|
-
}
|
|
14
|
-
async delete(id, options) {
|
|
15
|
-
await this.resources.delete(typeof id === "string" ? { id, type: _InventoryStockLocations.TYPE } : id, options);
|
|
16
|
-
}
|
|
17
|
-
async stock_location(inventoryStockLocationId, params, options) {
|
|
18
|
-
const _inventoryStockLocationId = inventoryStockLocationId.id || inventoryStockLocationId;
|
|
19
|
-
return this.resources.fetch({ type: "stock_locations" }, `inventory_stock_locations/${_inventoryStockLocationId}/stock_location`, params, options);
|
|
20
|
-
}
|
|
21
|
-
async inventory_model(inventoryStockLocationId, params, options) {
|
|
22
|
-
const _inventoryStockLocationId = inventoryStockLocationId.id || inventoryStockLocationId;
|
|
23
|
-
return this.resources.fetch({ type: "inventory_models" }, `inventory_stock_locations/${_inventoryStockLocationId}/inventory_model`, params, options);
|
|
24
|
-
}
|
|
25
|
-
async event_stores(inventoryStockLocationId, params, options) {
|
|
26
|
-
const _inventoryStockLocationId = inventoryStockLocationId.id || inventoryStockLocationId;
|
|
27
|
-
return this.resources.fetch({ type: "event_stores" }, `inventory_stock_locations/${_inventoryStockLocationId}/event_stores`, params, options);
|
|
28
|
-
}
|
|
29
|
-
isInventoryStockLocation(resource) {
|
|
30
|
-
return resource.type && resource.type === _InventoryStockLocations.TYPE;
|
|
31
|
-
}
|
|
32
|
-
relationship(id) {
|
|
33
|
-
return super.relationshipOneToOne(id);
|
|
34
|
-
}
|
|
35
|
-
relationshipToMany(...ids) {
|
|
36
|
-
return super.relationshipOneToMany(...ids);
|
|
37
|
-
}
|
|
38
|
-
type() {
|
|
39
|
-
return _InventoryStockLocations.TYPE;
|
|
40
|
-
}
|
|
41
|
-
};
|
|
42
|
-
var instance = new InventoryStockLocations();
|
|
43
|
-
var inventory_stock_locations_default = instance;
|
|
44
|
-
|
|
45
|
-
exports.inventory_stock_locations_default = inventory_stock_locations_default;
|
|
46
|
-
//# sourceMappingURL=chunk-FDLALORX.cjs.map
|
|
47
|
-
//# sourceMappingURL=chunk-FDLALORX.cjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/resources/inventory_stock_locations.ts"],"names":["ApiResource"],"mappings":";;;;;AA2EA,IAAM,uBAAA,GAAN,MAAM,wBAAA,SAAgCA,6BAAA,CAAoC;AAAA,EAEzE,OAAgB,IAAA,GAAmC,2BAAA;AAAA,EAEnD,MAAM,MAAA,CAAO,QAAA,EAAwC,MAAA,EAAsD,OAAA,EAA4D;AACtK,IAAA,OAAO,IAAA,CAAK,SAAA,CAAU,MAAA,CAA6D,EAAE,GAAG,QAAA,EAAU,IAAA,EAAM,wBAAA,CAAwB,IAAA,EAAK,EAAG,MAAA,EAAQ,OAAO,CAAA;AAAA,EACxJ;AAAA,EAEA,MAAM,MAAA,CAAO,QAAA,EAAwC,MAAA,EAAsD,OAAA,EAA4D;AACtK,IAAA,OAAO,IAAA,CAAK,SAAA,CAAU,MAAA,CAA6D,EAAE,GAAG,QAAA,EAAU,IAAA,EAAM,wBAAA,CAAwB,IAAA,EAAK,EAAG,MAAA,EAAQ,OAAO,CAAA;AAAA,EACxJ;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,wBAAA,CAAwB,IAAA,EAAK,GAAI,IAAI,OAAO,CAAA;AAAA,EAC/G;AAAA,EAEA,M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,qBAAA,CAAiD,GAAG,GAAG,CAAA;AAAA,EACrE;AAAA,EAGA,IAAA,GAAmC;AAClC,IAAA,OAAO,wBAAA,CAAwB,IAAA;AAAA,EAChC;AAED,CAAA;AAGA,IAAM,QAAA,GAAW,IAAI,uBAAA,EAAwB;AAC7C,IAAO,iCAAA,GAAQ","file":"chunk-FDLALORX.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 { InventoryModel, InventoryModelType } from './inventory_models'\nimport type { StockLocation, StockLocationType } from './stock_locations'\n\n\ntype InventoryStockLocationType = 'inventory_stock_locations'\ntype InventoryStockLocationRel = ResourceRel & { type: InventoryStockLocationType }\ntype StockLocationRel = ResourceRel & { type: StockLocationType }\ntype InventoryModelRel = ResourceRel & { type: InventoryModelType }\n\n\nexport type InventoryStockLocationSort = Pick<InventoryStockLocation, 'id' | 'priority' | 'on_hold'> & ResourceSort\n// export type InventoryStockLocationFilter = Pick<InventoryStockLocation, 'id' | 'priority' | 'on_hold'> & ResourceFilter\n\n\ninterface InventoryStockLocation extends Resource {\n\t\n\treadonly type: InventoryStockLocationType\n\n\t/** \n\t * The stock location priority within the associated invetory model.\n\t * @example ```1```\n\t */\n\tpriority: number\n\t/** \n\t * Indicates if the shipment should be put on hold if fulfilled from the associated stock location. This is useful to manage use cases like back-orders, pre-orders or personalized orders that need to be customized before being fulfilled.\n\t */\n\ton_hold?: boolean | null\n\n\tstock_location?: StockLocation | null\n\tinventory_model?: InventoryModel | null\n\tevent_stores?: EventStore[] | null\n\n}\n\n\ninterface InventoryStockLocationCreate extends ResourceCreate {\n\t\n\t/** \n\t * The stock location priority within the associated invetory model.\n\t * @example ```1```\n\t */\n\tpriority: number\n\t/** \n\t * Indicates if the shipment should be put on hold if fulfilled from the associated stock location. This is useful to manage use cases like back-orders, pre-orders or personalized orders that need to be customized before being fulfilled.\n\t */\n\ton_hold?: boolean | null\n\n\tstock_location: StockLocationRel\n\tinventory_model: InventoryModelRel\n\n}\n\n\ninterface InventoryStockLocationUpdate extends ResourceUpdate {\n\t\n\t/** \n\t * The stock location priority within the associated invetory model.\n\t * @example ```1```\n\t */\n\tpriority?: number | null\n\t/** \n\t * Indicates if the shipment should be put on hold if fulfilled from the associated stock location. This is useful to manage use cases like back-orders, pre-orders or personalized orders that need to be customized before being fulfilled.\n\t */\n\ton_hold?: boolean | null\n\n\tstock_location?: StockLocationRel | null\n\tinventory_model?: InventoryModelRel | null\n\n}\n\n\nclass InventoryStockLocations extends ApiResource<InventoryStockLocation> {\n\n\tstatic readonly TYPE: InventoryStockLocationType = 'inventory_stock_locations' as const\n\n\tasync create(resource: InventoryStockLocationCreate, params?: QueryParamsRetrieve<InventoryStockLocation>, options?: ResourcesConfig): Promise<InventoryStockLocation> {\n\t\treturn this.resources.create<InventoryStockLocationCreate, InventoryStockLocation>({ ...resource, type: InventoryStockLocations.TYPE }, params, options)\n\t}\n\n\tasync update(resource: InventoryStockLocationUpdate, params?: QueryParamsRetrieve<InventoryStockLocation>, options?: ResourcesConfig): Promise<InventoryStockLocation> {\n\t\treturn this.resources.update<InventoryStockLocationUpdate, InventoryStockLocation>({ ...resource, type: InventoryStockLocations.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: InventoryStockLocations.TYPE } : id, options)\n\t}\n\n\tasync stock_location(inventoryStockLocationId: string | InventoryStockLocation, params?: QueryParamsRetrieve<StockLocation>, options?: ResourcesConfig): Promise<StockLocation> {\n\t\tconst _inventoryStockLocationId = (inventoryStockLocationId as InventoryStockLocation).id || inventoryStockLocationId as string\n\t\treturn this.resources.fetch<StockLocation>({ type: 'stock_locations' }, `inventory_stock_locations/${_inventoryStockLocationId}/stock_location`, params, options) as unknown as StockLocation\n\t}\n\n\tasync inventory_model(inventoryStockLocationId: string | InventoryStockLocation, params?: QueryParamsRetrieve<InventoryModel>, options?: ResourcesConfig): Promise<InventoryModel> {\n\t\tconst _inventoryStockLocationId = (inventoryStockLocationId as InventoryStockLocation).id || inventoryStockLocationId as string\n\t\treturn this.resources.fetch<InventoryModel>({ type: 'inventory_models' }, `inventory_stock_locations/${_inventoryStockLocationId}/inventory_model`, params, options) as unknown as InventoryModel\n\t}\n\n\tasync event_stores(inventoryStockLocationId: string | InventoryStockLocation, params?: QueryParamsList<EventStore>, options?: ResourcesConfig): Promise<ListResponse<EventStore>> {\n\t\tconst _inventoryStockLocationId = (inventoryStockLocationId as InventoryStockLocation).id || inventoryStockLocationId as string\n\t\treturn this.resources.fetch<EventStore>({ type: 'event_stores' }, `inventory_stock_locations/${_inventoryStockLocationId}/event_stores`, params, options) as unknown as ListResponse<EventStore>\n\t}\n\n\n\tisInventoryStockLocation(resource: any): resource is InventoryStockLocation {\n\t\treturn resource.type && (resource.type === InventoryStockLocations.TYPE)\n\t}\n\n\n\trelationship(id: string | ResourceId | null): InventoryStockLocationRel {\n\t\treturn super.relationshipOneToOne<InventoryStockLocationRel>(id)\n\t}\n\n\trelationshipToMany(...ids: string[]): InventoryStockLocationRel[] {\n\t\treturn super.relationshipOneToMany<InventoryStockLocationRel>(...ids)\n\t}\n\n\n\ttype(): InventoryStockLocationType {\n\t\treturn InventoryStockLocations.TYPE\n\t}\n\n}\n\n\nconst instance = new InventoryStockLocations()\nexport default instance\n\nexport type { InventoryStockLocation, InventoryStockLocationCreate, InventoryStockLocations, InventoryStockLocationType, InventoryStockLocationUpdate }\n"]}
|
package/lib/chunk-FDTEUCMP.cjs
DELETED
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
var chunkY56DKJ4Z_cjs = require('./chunk-Y56DKJ4Z.cjs');
|
|
4
|
-
|
|
5
|
-
// src/resources/event_stores.ts
|
|
6
|
-
var EventStores = class _EventStores extends chunkY56DKJ4Z_cjs.ApiResource {
|
|
7
|
-
static TYPE = "event_stores";
|
|
8
|
-
isEventStore(resource) {
|
|
9
|
-
return resource.type && resource.type === _EventStores.TYPE;
|
|
10
|
-
}
|
|
11
|
-
relationship(id) {
|
|
12
|
-
return super.relationshipOneToOne(id);
|
|
13
|
-
}
|
|
14
|
-
relationshipToMany(...ids) {
|
|
15
|
-
return super.relationshipOneToMany(...ids);
|
|
16
|
-
}
|
|
17
|
-
type() {
|
|
18
|
-
return _EventStores.TYPE;
|
|
19
|
-
}
|
|
20
|
-
};
|
|
21
|
-
var instance = new EventStores();
|
|
22
|
-
var event_stores_default = instance;
|
|
23
|
-
|
|
24
|
-
exports.event_stores_default = event_stores_default;
|
|
25
|
-
//# sourceMappingURL=chunk-FDTEUCMP.cjs.map
|
|
26
|
-
//# sourceMappingURL=chunk-FDTEUCMP.cjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/resources/event_stores.ts"],"names":["ApiResource"],"mappings":";;;;;AA+CA,IAAM,WAAA,GAAN,MAAM,YAAA,SAAoBA,6BAAA,CAAwB;AAAA,EAEjD,OAAgB,IAAA,GAAuB,cAAA;AAAA,EAKvC,aAAa,QAAA,EAAuC;AACnD,IAAA,OAAO,QAAA,CAAS,IAAA,IAAS,QAAA,CAAS,IAAA,KAAS,YAAA,CAAY,IAAA;AAAA,EACxD;AAAA,EAGA,aAAa,EAAA,EAA+C;AAC3D,IAAA,OAAO,KAAA,CAAM,qBAAoC,EAAE,CAAA;AAAA,EACpD;AAAA,EAEA,sBAAsB,GAAA,EAAgC;AACrD,IAAA,OAAO,KAAA,CAAM,qBAAA,CAAqC,GAAG,GAAG,CAAA;AAAA,EACzD;AAAA,EAGA,IAAA,GAAuB;AACtB,IAAA,OAAO,YAAA,CAAY,IAAA;AAAA,EACpB;AAED,CAAA;AAGA,IAAM,QAAA,GAAW,IAAI,WAAA,EAAY;AACjC,IAAO,oBAAA,GAAQ","file":"chunk-FDTEUCMP.cjs","sourcesContent":["import type { Resource, ResourceId, ResourceRel, ResourceSort, /* ResourceFilter */ } from '../resource'\nimport { ApiResource } from '../resource'\n\n\n\n\ntype EventStoreType = 'event_stores'\ntype EventStoreRel = ResourceRel & { type: EventStoreType }\n\n\nexport type EventStoreSort = Pick<EventStore, 'id'> & ResourceSort\n// export type EventStoreFilter = Pick<EventStore, 'id'> & ResourceFilter\n\n\ninterface EventStore extends Resource {\n\t\n\treadonly type: EventStoreType\n\n\t/** \n\t * The type of the affected resource. One of 'applications', 'event_stores', 'organizations', 'addresses', 'geocoders', 'events', 'tags', 'adjustments', 'price_lists', 'payment_gateways', 'payment_methods', 'markets', 'customer_groups', 'line_items', 'discount_engine_items', 'promotions', 'adyen_payments', 'orders', 'transactions', 'order_factories', 'attachments', 'tax_calculators', 'tax_categories', 'skus', 'shipping_categories', 'axerve_payments', 'order_validation_rules', 'braintree_payments', 'bundles', 'sku_lists', 'sku_list_items', 'stock_items', 'stock_locations', 'promotion_rules', 'coupons', 'returns', 'carrier_accounts', 'checkout_com_payments', 'customers', 'customer_addresses', 'customer_payment_sources', 'customer_subscriptions', 'order_subscriptions', 'customer_password_resets', 'delivery_lead_times', 'shipping_methods', 'shipments', 'discount_engines', 'pickups', 'parcels', 'webhooks', 'event_callbacks', 'external_payments', 'gift_cards', 'in_stock_subscriptions', 'inventory_models', 'inventory_stock_locations', 'inventory_return_locations', 'klarna_payments', 'line_item_options', 'return_line_items', 'stock_line_items', 'stock_reservations', 'stock_transfers', 'notifications', 'sku_options', 'links', 'tax_rules', 'merchants', 'subscription_models', 'stores', 'price_list_schedulers', 'order_subscription_items', 'payment_options', 'resource_errors', 'paypal_payments', 'packages', 'parcel_line_items', 'prices', 'price_tiers', 'reserved_stocks', 'satispay_payments', 'shipping_method_tiers', 'shipping_zones', 'stripe_payments', or 'wire_transfers'.\n\t * @example ```\"orders\"```\n\t */\n\tresource_type?: 'applications' | 'event_stores' | 'organizations' | 'addresses' | 'geocoders' | 'events' | 'tags' | 'adjustments' | 'price_lists' | 'payment_gateways' | 'payment_methods' | 'markets' | 'customer_groups' | 'line_items' | 'discount_engine_items' | 'promotions' | 'adyen_payments' | 'orders' | 'transactions' | 'order_factories' | 'attachments' | 'tax_calculators' | 'tax_categories' | 'skus' | 'shipping_categories' | 'axerve_payments' | 'order_validation_rules' | 'braintree_payments' | 'bundles' | 'sku_lists' | 'sku_list_items' | 'stock_items' | 'stock_locations' | 'promotion_rules' | 'coupons' | 'returns' | 'carrier_accounts' | 'checkout_com_payments' | 'customers' | 'customer_addresses' | 'customer_payment_sources' | 'customer_subscriptions' | 'order_subscriptions' | 'customer_password_resets' | 'delivery_lead_times' | 'shipping_methods' | 'shipments' | 'discount_engines' | 'pickups' | 'parcels' | 'webhooks' | 'event_callbacks' | 'external_payments' | 'gift_cards' | 'in_stock_subscriptions' | 'inventory_models' | 'inventory_stock_locations' | 'inventory_return_locations' | 'klarna_payments' | 'line_item_options' | 'return_line_items' | 'stock_line_items' | 'stock_reservations' | 'stock_transfers' | 'notifications' | 'sku_options' | 'links' | 'tax_rules' | 'merchants' | 'subscription_models' | 'stores' | 'price_list_schedulers' | 'order_subscription_items' | 'payment_options' | 'resource_errors' | 'paypal_payments' | 'packages' | 'parcel_line_items' | 'prices' | 'price_tiers' | 'reserved_stocks' | 'satispay_payments' | 'shipping_method_tiers' | 'shipping_zones' | 'stripe_payments' | 'wire_transfers' | null\n\t/** \n\t * The ID of the affected resource.\n\t * @example ```\"PzdJhdLdYV\"```\n\t */\n\tresource_id?: string | null\n\t/** \n\t * The type of change (one of create or update).\n\t * @example ```\"update\"```\n\t */\n\tevent?: string | null\n\t/** \n\t * The object changes payload.\n\t * @example ```{\"status\":[\"draft\",\"placed\"]}```\n\t */\n\tpayload?: Record<string, any> | null\n\t/** \n\t * Information about who triggered the change.\n\t * @example ```{\"application\":{\"id\":\"DNOPYiZYpn\",\"kind\":\"sales_channel\",\"public\":true},\"owner\":{\"id\":\"yQQrBhLBmQ\",\"type\":\"Customer\"}}```\n\t */\n\twho?: Record<string, any> | null\n\t\n}\n\n\nclass EventStores extends ApiResource<EventStore> {\n\n\tstatic readonly TYPE: EventStoreType = 'event_stores' as const\n\n\t\n\n\n\tisEventStore(resource: any): resource is EventStore {\n\t\treturn resource.type && (resource.type === EventStores.TYPE)\n\t}\n\n\n\trelationship(id: string | ResourceId | null): EventStoreRel {\n\t\treturn super.relationshipOneToOne<EventStoreRel>(id)\n\t}\n\n\trelationshipToMany(...ids: string[]): EventStoreRel[] {\n\t\treturn super.relationshipOneToMany<EventStoreRel>(...ids)\n\t}\n\n\n\ttype(): EventStoreType {\n\t\treturn EventStores.TYPE\n\t}\n\n}\n\n\nconst instance = new EventStores()\nexport default instance\n\nexport type { EventStore, EventStores, EventStoreType }\n"]}
|
package/lib/chunk-FIRCMJCB.js
DELETED
|
@@ -1,93 +0,0 @@
|
|
|
1
|
-
import { ApiResource } from './chunk-USIBTSYD.js';
|
|
2
|
-
|
|
3
|
-
// src/resources/percentage_discount_promotions.ts
|
|
4
|
-
var PercentageDiscountPromotions = class _PercentageDiscountPromotions extends ApiResource {
|
|
5
|
-
static TYPE = "percentage_discount_promotions";
|
|
6
|
-
async create(resource, params, options) {
|
|
7
|
-
return this.resources.create({ ...resource, type: _PercentageDiscountPromotions.TYPE }, params, options);
|
|
8
|
-
}
|
|
9
|
-
async update(resource, params, options) {
|
|
10
|
-
return this.resources.update({ ...resource, type: _PercentageDiscountPromotions.TYPE }, params, options);
|
|
11
|
-
}
|
|
12
|
-
async delete(id, options) {
|
|
13
|
-
await this.resources.delete(typeof id === "string" ? { id, type: _PercentageDiscountPromotions.TYPE } : id, options);
|
|
14
|
-
}
|
|
15
|
-
async market(percentageDiscountPromotionId, params, options) {
|
|
16
|
-
const _percentageDiscountPromotionId = percentageDiscountPromotionId.id || percentageDiscountPromotionId;
|
|
17
|
-
return this.resources.fetch({ type: "markets" }, `percentage_discount_promotions/${_percentageDiscountPromotionId}/market`, params, options);
|
|
18
|
-
}
|
|
19
|
-
async order_amount_promotion_rule(percentageDiscountPromotionId, params, options) {
|
|
20
|
-
const _percentageDiscountPromotionId = percentageDiscountPromotionId.id || percentageDiscountPromotionId;
|
|
21
|
-
return this.resources.fetch({ type: "order_amount_promotion_rules" }, `percentage_discount_promotions/${_percentageDiscountPromotionId}/order_amount_promotion_rule`, params, options);
|
|
22
|
-
}
|
|
23
|
-
async sku_list_promotion_rule(percentageDiscountPromotionId, params, options) {
|
|
24
|
-
const _percentageDiscountPromotionId = percentageDiscountPromotionId.id || percentageDiscountPromotionId;
|
|
25
|
-
return this.resources.fetch({ type: "sku_list_promotion_rules" }, `percentage_discount_promotions/${_percentageDiscountPromotionId}/sku_list_promotion_rule`, params, options);
|
|
26
|
-
}
|
|
27
|
-
async coupon_codes_promotion_rule(percentageDiscountPromotionId, params, options) {
|
|
28
|
-
const _percentageDiscountPromotionId = percentageDiscountPromotionId.id || percentageDiscountPromotionId;
|
|
29
|
-
return this.resources.fetch({ type: "coupon_codes_promotion_rules" }, `percentage_discount_promotions/${_percentageDiscountPromotionId}/coupon_codes_promotion_rule`, params, options);
|
|
30
|
-
}
|
|
31
|
-
async custom_promotion_rule(percentageDiscountPromotionId, params, options) {
|
|
32
|
-
const _percentageDiscountPromotionId = percentageDiscountPromotionId.id || percentageDiscountPromotionId;
|
|
33
|
-
return this.resources.fetch({ type: "custom_promotion_rules" }, `percentage_discount_promotions/${_percentageDiscountPromotionId}/custom_promotion_rule`, params, options);
|
|
34
|
-
}
|
|
35
|
-
async sku_list(percentageDiscountPromotionId, params, options) {
|
|
36
|
-
const _percentageDiscountPromotionId = percentageDiscountPromotionId.id || percentageDiscountPromotionId;
|
|
37
|
-
return this.resources.fetch({ type: "sku_lists" }, `percentage_discount_promotions/${_percentageDiscountPromotionId}/sku_list`, params, options);
|
|
38
|
-
}
|
|
39
|
-
async coupons(percentageDiscountPromotionId, params, options) {
|
|
40
|
-
const _percentageDiscountPromotionId = percentageDiscountPromotionId.id || percentageDiscountPromotionId;
|
|
41
|
-
return this.resources.fetch({ type: "coupons" }, `percentage_discount_promotions/${_percentageDiscountPromotionId}/coupons`, params, options);
|
|
42
|
-
}
|
|
43
|
-
async attachments(percentageDiscountPromotionId, params, options) {
|
|
44
|
-
const _percentageDiscountPromotionId = percentageDiscountPromotionId.id || percentageDiscountPromotionId;
|
|
45
|
-
return this.resources.fetch({ type: "attachments" }, `percentage_discount_promotions/${_percentageDiscountPromotionId}/attachments`, params, options);
|
|
46
|
-
}
|
|
47
|
-
async events(percentageDiscountPromotionId, params, options) {
|
|
48
|
-
const _percentageDiscountPromotionId = percentageDiscountPromotionId.id || percentageDiscountPromotionId;
|
|
49
|
-
return this.resources.fetch({ type: "events" }, `percentage_discount_promotions/${_percentageDiscountPromotionId}/events`, params, options);
|
|
50
|
-
}
|
|
51
|
-
async tags(percentageDiscountPromotionId, params, options) {
|
|
52
|
-
const _percentageDiscountPromotionId = percentageDiscountPromotionId.id || percentageDiscountPromotionId;
|
|
53
|
-
return this.resources.fetch({ type: "tags" }, `percentage_discount_promotions/${_percentageDiscountPromotionId}/tags`, params, options);
|
|
54
|
-
}
|
|
55
|
-
async event_stores(percentageDiscountPromotionId, params, options) {
|
|
56
|
-
const _percentageDiscountPromotionId = percentageDiscountPromotionId.id || percentageDiscountPromotionId;
|
|
57
|
-
return this.resources.fetch({ type: "event_stores" }, `percentage_discount_promotions/${_percentageDiscountPromotionId}/event_stores`, params, options);
|
|
58
|
-
}
|
|
59
|
-
async skus(percentageDiscountPromotionId, params, options) {
|
|
60
|
-
const _percentageDiscountPromotionId = percentageDiscountPromotionId.id || percentageDiscountPromotionId;
|
|
61
|
-
return this.resources.fetch({ type: "skus" }, `percentage_discount_promotions/${_percentageDiscountPromotionId}/skus`, params, options);
|
|
62
|
-
}
|
|
63
|
-
async _disable(id, params, options) {
|
|
64
|
-
return this.resources.update({ id: typeof id === "string" ? id : id.id, type: _PercentageDiscountPromotions.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: _PercentageDiscountPromotions.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: _PercentageDiscountPromotions.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: _PercentageDiscountPromotions.TYPE, _remove_tags: triggerValue }, params, options);
|
|
74
|
-
}
|
|
75
|
-
isPercentageDiscountPromotion(resource) {
|
|
76
|
-
return resource.type && resource.type === _PercentageDiscountPromotions.TYPE;
|
|
77
|
-
}
|
|
78
|
-
relationship(id) {
|
|
79
|
-
return super.relationshipOneToOne(id);
|
|
80
|
-
}
|
|
81
|
-
relationshipToMany(...ids) {
|
|
82
|
-
return super.relationshipOneToMany(...ids);
|
|
83
|
-
}
|
|
84
|
-
type() {
|
|
85
|
-
return _PercentageDiscountPromotions.TYPE;
|
|
86
|
-
}
|
|
87
|
-
};
|
|
88
|
-
var instance = new PercentageDiscountPromotions();
|
|
89
|
-
var percentage_discount_promotions_default = instance;
|
|
90
|
-
|
|
91
|
-
export { percentage_discount_promotions_default };
|
|
92
|
-
//# sourceMappingURL=chunk-FIRCMJCB.js.map
|
|
93
|
-
//# sourceMappingURL=chunk-FIRCMJCB.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/resources/percentage_discount_promotions.ts"],"names":[],"mappings":";;;AAyQA,IAAM,4BAAA,GAAN,MAAM,6BAAA,SAAqC,WAAA,CAAyC;AAAA,EAEnF,OAAgB,IAAA,GAAwC,gCAAA;AAAA,EAExD,MAAM,MAAA,CAAO,QAAA,EAA6C,MAAA,EAA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amsRetrieve } 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 PercentageDiscountPromotionType = 'percentage_discount_promotions'\ntype PercentageDiscountPromotionRel = ResourceRel & { type: PercentageDiscountPromotionType }\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 PercentageDiscountPromotionSort = Pick<PercentageDiscountPromotion, '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 PercentageDiscountPromotionFilter = Pick<PercentageDiscountPromotion, '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 PercentageDiscountPromotion extends Resource {\n\t\n\treadonly type: PercentageDiscountPromotionType\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 percentage to be applied.\n\t * @example ```10```\n\t */\n\tpercentage: number\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 PercentageDiscountPromotionCreate 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 percentage to be applied.\n\t * @example ```10```\n\t */\n\tpercentage: 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 PercentageDiscountPromotionUpdate 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 percentage to be applied.\n\t * @example ```10```\n\t */\n\tpercentage?: 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 PercentageDiscountPromotions extends ApiResource<PercentageDiscountPromotion> {\n\n\tstatic readonly TYPE: PercentageDiscountPromotionType = 'percentage_discount_promotions' as const\n\n\tasync create(resource: PercentageDiscountPromotionCreate, params?: QueryParamsRetrieve<PercentageDiscountPromotion>, options?: ResourcesConfig): Promise<PercentageDiscountPromotion> {\n\t\treturn this.resources.create<PercentageDiscountPromotionCreate, PercentageDiscountPromotion>({ ...resource, type: PercentageDiscountPromotions.TYPE }, params, options)\n\t}\n\n\tasync update(resource: PercentageDiscountPromotionUpdate, params?: QueryParamsRetrieve<PercentageDiscountPromotion>, options?: ResourcesConfig): Promise<PercentageDiscountPromotion> {\n\t\treturn this.resources.update<PercentageDiscountPromotionUpdate, PercentageDiscountPromotion>({ ...resource, type: PercentageDiscountPromotions.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: PercentageDiscountPromotions.TYPE } : id, options)\n\t}\n\n\tasync market(percentageDiscountPromotionId: string | PercentageDiscountPromotion, params?: QueryParamsRetrieve<Market>, options?: ResourcesConfig): Promise<Market> {\n\t\tconst _percentageDiscountPromotionId = (percentageDiscountPromotionId as PercentageDiscountPromotion).id || percentageDiscountPromotionId as string\n\t\treturn this.resources.fetch<Market>({ type: 'markets' }, `percentage_discount_promotions/${_percentageDiscountPromotionId}/market`, params, options) as unknown as Market\n\t}\n\n\tasync order_amount_promotion_rule(percentageDiscountPromotionId: string | PercentageDiscountPromotion, params?: QueryParamsRetrieve<OrderAmountPromotionRule>, options?: ResourcesConfig): Promise<OrderAmountPromotionRule> {\n\t\tconst _percentageDiscountPromotionId = (percentageDiscountPromotionId as PercentageDiscountPromotion).id || percentageDiscountPromotionId as string\n\t\treturn this.resources.fetch<OrderAmountPromotionRule>({ type: 'order_amount_promotion_rules' }, `percentage_discount_promotions/${_percentageDiscountPromotionId}/order_amount_promotion_rule`, params, options) as unknown as OrderAmountPromotionRule\n\t}\n\n\tasync sku_list_promotion_rule(percentageDiscountPromotionId: string | PercentageDiscountPromotion, params?: QueryParamsRetrieve<SkuListPromotionRule>, options?: ResourcesConfig): Promise<SkuListPromotionRule> {\n\t\tconst _percentageDiscountPromotionId = (percentageDiscountPromotionId as PercentageDiscountPromotion).id || percentageDiscountPromotionId as string\n\t\treturn this.resources.fetch<SkuListPromotionRule>({ type: 'sku_list_promotion_rules' }, `percentage_discount_promotions/${_percentageDiscountPromotionId}/sku_list_promotion_rule`, params, options) as unknown as SkuListPromotionRule\n\t}\n\n\tasync coupon_codes_promotion_rule(percentageDiscountPromotionId: string | PercentageDiscountPromotion, params?: QueryParamsRetrieve<CouponCodesPromotionRule>, options?: ResourcesConfig): Promise<CouponCodesPromotionRule> {\n\t\tconst _percentageDiscountPromotionId = (percentageDiscountPromotionId as PercentageDiscountPromotion).id || percentageDiscountPromotionId as string\n\t\treturn this.resources.fetch<CouponCodesPromotionRule>({ type: 'coupon_codes_promotion_rules' }, `percentage_discount_promotions/${_percentageDiscountPromotionId}/coupon_codes_promotion_rule`, params, options) as unknown as CouponCodesPromotionRule\n\t}\n\n\tasync custom_promotion_rule(percentageDiscountPromotionId: string | PercentageDiscountPromotion, params?: QueryParamsRetrieve<CustomPromotionRule>, options?: ResourcesConfig): Promise<CustomPromotionRule> {\n\t\tconst _percentageDiscountPromotionId = (percentageDiscountPromotionId as PercentageDiscountPromotion).id || percentageDiscountPromotionId as string\n\t\treturn this.resources.fetch<CustomPromotionRule>({ type: 'custom_promotion_rules' }, `percentage_discount_promotions/${_percentageDiscountPromotionId}/custom_promotion_rule`, params, options) as unknown as CustomPromotionRule\n\t}\n\n\tasync sku_list(percentageDiscountPromotionId: string | PercentageDiscountPromotion, params?: QueryParamsRetrieve<SkuList>, options?: ResourcesConfig): Promise<SkuList> {\n\t\tconst _percentageDiscountPromotionId = (percentageDiscountPromotionId as PercentageDiscountPromotion).id || percentageDiscountPromotionId as string\n\t\treturn this.resources.fetch<SkuList>({ type: 'sku_lists' }, `percentage_discount_promotions/${_percentageDiscountPromotionId}/sku_list`, params, options) as unknown as SkuList\n\t}\n\n\tasync coupons(percentageDiscountPromotionId: string | PercentageDiscountPromotion, params?: QueryParamsList<Coupon>, options?: ResourcesConfig): Promise<ListResponse<Coupon>> {\n\t\tconst _percentageDiscountPromotionId = (percentageDiscountPromotionId as PercentageDiscountPromotion).id || percentageDiscountPromotionId as string\n\t\treturn this.resources.fetch<Coupon>({ type: 'coupons' }, `percentage_discount_promotions/${_percentageDiscountPromotionId}/coupons`, params, options) as unknown as ListResponse<Coupon>\n\t}\n\n\tasync attachments(percentageDiscountPromotionId: string | PercentageDiscountPromotion, params?: QueryParamsList<Attachment>, options?: ResourcesConfig): Promise<ListResponse<Attachment>> {\n\t\tconst _percentageDiscountPromotionId = (percentageDiscountPromotionId as PercentageDiscountPromotion).id || percentageDiscountPromotionId as string\n\t\treturn this.resources.fetch<Attachment>({ type: 'attachments' }, `percentage_discount_promotions/${_percentageDiscountPromotionId}/attachments`, params, options) as unknown as ListResponse<Attachment>\n\t}\n\n\tasync events(percentageDiscountPromotionId: string | PercentageDiscountPromotion, params?: QueryParamsList<Event>, options?: ResourcesConfig): Promise<ListResponse<Event>> {\n\t\tconst _percentageDiscountPromotionId = (percentageDiscountPromotionId as PercentageDiscountPromotion).id || percentageDiscountPromotionId as string\n\t\treturn this.resources.fetch<Event>({ type: 'events' }, `percentage_discount_promotions/${_percentageDiscountPromotionId}/events`, params, options) as unknown as ListResponse<Event>\n\t}\n\n\tasync tags(percentageDiscountPromotionId: string | PercentageDiscountPromotion, params?: QueryParamsList<Tag>, options?: ResourcesConfig): Promise<ListResponse<Tag>> {\n\t\tconst _percentageDiscountPromotionId = (percentageDiscountPromotionId as PercentageDiscountPromotion).id || percentageDiscountPromotionId as string\n\t\treturn this.resources.fetch<Tag>({ type: 'tags' }, `percentage_discount_promotions/${_percentageDiscountPromotionId}/tags`, params, options) as unknown as ListResponse<Tag>\n\t}\n\n\tasync event_stores(percentageDiscountPromotionId: string | PercentageDiscountPromotion, params?: QueryParamsList<EventStore>, options?: ResourcesConfig): Promise<ListResponse<EventStore>> {\n\t\tconst _percentageDiscountPromotionId = (percentageDiscountPromotionId as PercentageDiscountPromotion).id || percentageDiscountPromotionId as string\n\t\treturn this.resources.fetch<EventStore>({ type: 'event_stores' }, `percentage_discount_promotions/${_percentageDiscountPromotionId}/event_stores`, params, options) as unknown as ListResponse<EventStore>\n\t}\n\n\tasync skus(percentageDiscountPromotionId: string | PercentageDiscountPromotion, params?: QueryParamsList<Sku>, options?: ResourcesConfig): Promise<ListResponse<Sku>> {\n\t\tconst _percentageDiscountPromotionId = (percentageDiscountPromotionId as PercentageDiscountPromotion).id || percentageDiscountPromotionId as string\n\t\treturn this.resources.fetch<Sku>({ type: 'skus' }, `percentage_discount_promotions/${_percentageDiscountPromotionId}/skus`, params, options) as unknown as ListResponse<Sku>\n\t}\n\n\tasync _disable(id: string | PercentageDiscountPromotion, params?: QueryParamsRetrieve<PercentageDiscountPromotion>, options?: ResourcesConfig): Promise<PercentageDiscountPromotion> {\n\t\treturn this.resources.update<PercentageDiscountPromotionUpdate, PercentageDiscountPromotion>({ id: (typeof id === 'string')? id: id.id, type: PercentageDiscountPromotions.TYPE, _disable: true }, params, options)\n\t}\n\n\tasync _enable(id: string | PercentageDiscountPromotion, params?: QueryParamsRetrieve<PercentageDiscountPromotion>, options?: ResourcesConfig): Promise<PercentageDiscountPromotion> {\n\t\treturn this.resources.update<PercentageDiscountPromotionUpdate, PercentageDiscountPromotion>({ id: (typeof id === 'string')? id: id.id, type: PercentageDiscountPromotions.TYPE, _enable: true }, params, options)\n\t}\n\n\tasync _add_tags(id: string | PercentageDiscountPromotion, triggerValue: string, params?: QueryParamsRetrieve<PercentageDiscountPromotion>, options?: ResourcesConfig): Promise<PercentageDiscountPromotion> {\n\t\treturn this.resources.update<PercentageDiscountPromotionUpdate, PercentageDiscountPromotion>({ id: (typeof id === 'string')? id: id.id, type: PercentageDiscountPromotions.TYPE, _add_tags: triggerValue }, params, options)\n\t}\n\n\tasync _remove_tags(id: string | PercentageDiscountPromotion, triggerValue: string, params?: QueryParamsRetrieve<PercentageDiscountPromotion>, options?: ResourcesConfig): Promise<PercentageDiscountPromotion> {\n\t\treturn this.resources.update<PercentageDiscountPromotionUpdate, PercentageDiscountPromotion>({ id: (typeof id === 'string')? id: id.id, type: PercentageDiscountPromotions.TYPE, _remove_tags: triggerValue }, params, options)\n\t}\n\n\n\tisPercentageDiscountPromotion(resource: any): resource is PercentageDiscountPromotion {\n\t\treturn resource.type && (resource.type === PercentageDiscountPromotions.TYPE)\n\t}\n\n\n\trelationship(id: string | ResourceId | null): PercentageDiscountPromotionRel {\n\t\treturn super.relationshipOneToOne<PercentageDiscountPromotionRel>(id)\n\t}\n\n\trelationshipToMany(...ids: string[]): PercentageDiscountPromotionRel[] {\n\t\treturn super.relationshipOneToMany<PercentageDiscountPromotionRel>(...ids)\n\t}\n\n\n\ttype(): PercentageDiscountPromotionType {\n\t\treturn PercentageDiscountPromotions.TYPE\n\t}\n\n}\n\n\nconst instance = new PercentageDiscountPromotions()\nexport default instance\n\nexport type { PercentageDiscountPromotion, PercentageDiscountPromotionCreate, PercentageDiscountPromotions, PercentageDiscountPromotionType, PercentageDiscountPromotionUpdate }\n"]}
|
package/lib/chunk-FK3XYZ3Q.js
DELETED
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
import { ApiResource } from './chunk-USIBTSYD.js';
|
|
2
|
-
|
|
3
|
-
// src/resources/customer_payment_sources.ts
|
|
4
|
-
var CustomerPaymentSources = class _CustomerPaymentSources extends ApiResource {
|
|
5
|
-
static TYPE = "customer_payment_sources";
|
|
6
|
-
async create(resource, params, options) {
|
|
7
|
-
return this.resources.create({ ...resource, type: _CustomerPaymentSources.TYPE }, params, options);
|
|
8
|
-
}
|
|
9
|
-
async update(resource, params, options) {
|
|
10
|
-
return this.resources.update({ ...resource, type: _CustomerPaymentSources.TYPE }, params, options);
|
|
11
|
-
}
|
|
12
|
-
async delete(id, options) {
|
|
13
|
-
await this.resources.delete(typeof id === "string" ? { id, type: _CustomerPaymentSources.TYPE } : id, options);
|
|
14
|
-
}
|
|
15
|
-
async customer(customerPaymentSourceId, params, options) {
|
|
16
|
-
const _customerPaymentSourceId = customerPaymentSourceId.id || customerPaymentSourceId;
|
|
17
|
-
return this.resources.fetch({ type: "customers" }, `customer_payment_sources/${_customerPaymentSourceId}/customer`, params, options);
|
|
18
|
-
}
|
|
19
|
-
async payment_method(customerPaymentSourceId, params, options) {
|
|
20
|
-
const _customerPaymentSourceId = customerPaymentSourceId.id || customerPaymentSourceId;
|
|
21
|
-
return this.resources.fetch({ type: "payment_methods" }, `customer_payment_sources/${_customerPaymentSourceId}/payment_method`, params, options);
|
|
22
|
-
}
|
|
23
|
-
async event_stores(customerPaymentSourceId, params, options) {
|
|
24
|
-
const _customerPaymentSourceId = customerPaymentSourceId.id || customerPaymentSourceId;
|
|
25
|
-
return this.resources.fetch({ type: "event_stores" }, `customer_payment_sources/${_customerPaymentSourceId}/event_stores`, params, options);
|
|
26
|
-
}
|
|
27
|
-
isCustomerPaymentSource(resource) {
|
|
28
|
-
return resource.type && resource.type === _CustomerPaymentSources.TYPE;
|
|
29
|
-
}
|
|
30
|
-
relationship(id) {
|
|
31
|
-
return super.relationshipOneToOne(id);
|
|
32
|
-
}
|
|
33
|
-
relationshipToMany(...ids) {
|
|
34
|
-
return super.relationshipOneToMany(...ids);
|
|
35
|
-
}
|
|
36
|
-
type() {
|
|
37
|
-
return _CustomerPaymentSources.TYPE;
|
|
38
|
-
}
|
|
39
|
-
};
|
|
40
|
-
var instance = new CustomerPaymentSources();
|
|
41
|
-
var customer_payment_sources_default = instance;
|
|
42
|
-
|
|
43
|
-
export { customer_payment_sources_default };
|
|
44
|
-
//# sourceMappingURL=chunk-FK3XYZ3Q.js.map
|
|
45
|
-
//# sourceMappingURL=chunk-FK3XYZ3Q.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/resources/customer_payment_sources.ts"],"names":[],"mappings":";;;AA0GA,IAAM,sBAAA,GAAN,MAAM,uBAAA,SAA+B,WAAA,CAAmC;AAAA,EAEvE,OAAgB,IAAA,GAAkC,0BAAA;AAAA,EAElD,MAAM,MAAA,CAAO,QAAA,EAAuC,MAAA,EAAqD,OAAA,EAA2D;AACnK,IAAA,OAAO,IAAA,CAAK,SAAA,CAAU,MAAA,CAA2D,EAAE,GAAG,QAAA,EAAU,IAAA,EAAM,uBAAA,CAAuB,IAAA,EAAK,EAAG,MAAA,EAAQ,OAAO,CAAA;AAAA,EACrJ;AAAA,EAEA,MAAM,MAAA,CAAO,QAAA,EAAuC,MAAA,EAAqD,OAAA,EAA2D;AACnK,IAAA,OAAO,IAAA,CAAK,SAAA,CAAU,MAAA,CAA2D,EAAE,GAAG,QAAA,EAAU,IAAA,EAAM,uBAAA,CAAuB,IAAA,EAAK,EAAG,MAAA,EAAQ,OAAO,CAAA;AAAA,EACrJ;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,uBAAA,CAAuB,IAAA,EAAK,GAAI,IAAI,OAAO,CAAA;AAAA,EAC9G;AAAA,EAEA,MAAM,QAAA,CAAS,uBAAA,EAAyD,MAAA,EAAwC,OAAA,EAA8C;AAC7J,IAAA,MAAM,wBAAA,GA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,uBAAA,CAAuB,IAAA;AAAA,EAC/B;AAED,CAAA;AAGA,IAAM,QAAA,GAAW,IAAI,sBAAA,EAAuB;AAC5C,IAAO,gCAAA,GAAQ","file":"chunk-FK3XYZ3Q.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 { AdyenPayment, AdyenPaymentType } from './adyen_payments'\nimport type { AxervePayment, AxervePaymentType } from './axerve_payments'\nimport type { BraintreePayment, BraintreePaymentType } from './braintree_payments'\nimport type { CheckoutComPayment, CheckoutComPaymentType } from './checkout_com_payments'\nimport type { Customer, CustomerType } from './customers'\nimport type { EventStore } from './event_stores'\nimport type { ExternalPayment, ExternalPaymentType } from './external_payments'\nimport type { KlarnaPayment, KlarnaPaymentType } from './klarna_payments'\nimport type { PaymentMethod, PaymentMethodType } from './payment_methods'\nimport type { PaypalPayment, PaypalPaymentType } from './paypal_payments'\nimport type { SatispayPayment, SatispayPaymentType } from './satispay_payments'\nimport type { StripePayment, StripePaymentType } from './stripe_payments'\nimport type { WireTransfer, WireTransferType } from './wire_transfers'\n\n\ntype CustomerPaymentSourceType = 'customer_payment_sources'\ntype CustomerPaymentSourceRel = ResourceRel & { type: CustomerPaymentSourceType }\ntype CustomerRel = ResourceRel & { type: CustomerType }\ntype PaymentMethodRel = ResourceRel & { type: PaymentMethodType }\ntype AdyenPaymentRel = ResourceRel & { type: AdyenPaymentType }\ntype AxervePaymentRel = ResourceRel & { type: AxervePaymentType }\ntype BraintreePaymentRel = ResourceRel & { type: BraintreePaymentType }\ntype CheckoutComPaymentRel = ResourceRel & { type: CheckoutComPaymentType }\ntype ExternalPaymentRel = ResourceRel & { type: ExternalPaymentType }\ntype KlarnaPaymentRel = ResourceRel & { type: KlarnaPaymentType }\ntype PaypalPaymentRel = ResourceRel & { type: PaypalPaymentType }\ntype SatispayPaymentRel = ResourceRel & { type: SatispayPaymentType }\ntype StripePaymentRel = ResourceRel & { type: StripePaymentType }\ntype WireTransferRel = ResourceRel & { type: WireTransferType }\n\n\nexport type CustomerPaymentSourceSort = Pick<CustomerPaymentSource, 'id'> & ResourceSort\n// export type CustomerPaymentSourceFilter = Pick<CustomerPaymentSource, 'id' | 'name' | 'payment_source_token'> & ResourceFilter\n\n\ninterface CustomerPaymentSource extends Resource {\n\t\n\treadonly type: CustomerPaymentSourceType\n\n\t/** \n\t * Returns the associated payment source's name.\n\t * @example ```\"XXXX-XXXX-XXXX-1111\"```\n\t */\n\tname?: string | null\n\t/** \n\t * Returns the customer gateway token stored in the gateway.\n\t * @example ```\"cus_xxxyyyzzz\"```\n\t */\n\tcustomer_token?: string | null\n\t/** \n\t * Returns the payment source token stored in the gateway.\n\t * @example ```\"pm_xxxyyyzzz\"```\n\t */\n\tpayment_source_token?: string | null\n\n\tcustomer?: Customer | null\n\tpayment_method?: PaymentMethod | null\n\tpayment_source?: AdyenPayment | AxervePayment | BraintreePayment | CheckoutComPayment | ExternalPayment | KlarnaPayment | PaypalPayment | SatispayPayment | StripePayment | WireTransfer | null\n\tevent_stores?: EventStore[] | null\n\n}\n\n\ninterface CustomerPaymentSourceCreate extends ResourceCreate {\n\t\n\t/** \n\t * Returns the customer gateway token stored in the gateway.\n\t * @example ```\"cus_xxxyyyzzz\"```\n\t */\n\tcustomer_token?: string | null\n\t/** \n\t * Returns the payment source token stored in the gateway.\n\t * @example ```\"pm_xxxyyyzzz\"```\n\t */\n\tpayment_source_token?: string | null\n\n\tcustomer: CustomerRel\n\tpayment_method?: PaymentMethodRel | null\n\tpayment_source?: AdyenPaymentRel | AxervePaymentRel | BraintreePaymentRel | CheckoutComPaymentRel | ExternalPaymentRel | KlarnaPaymentRel | PaypalPaymentRel | SatispayPaymentRel | StripePaymentRel | WireTransferRel | null\n\n}\n\n\ninterface CustomerPaymentSourceUpdate extends ResourceUpdate {\n\t\n\t/** \n\t * Returns the customer gateway token stored in the gateway.\n\t * @example ```\"cus_xxxyyyzzz\"```\n\t */\n\tcustomer_token?: string | null\n\t/** \n\t * Returns the payment source token stored in the gateway.\n\t * @example ```\"pm_xxxyyyzzz\"```\n\t */\n\tpayment_source_token?: string | null\n\n\tcustomer?: CustomerRel | null\n\tpayment_method?: PaymentMethodRel | null\n\tpayment_source?: AdyenPaymentRel | AxervePaymentRel | BraintreePaymentRel | CheckoutComPaymentRel | ExternalPaymentRel | KlarnaPaymentRel | PaypalPaymentRel | SatispayPaymentRel | StripePaymentRel | WireTransferRel | null\n\n}\n\n\nclass CustomerPaymentSources extends ApiResource<CustomerPaymentSource> {\n\n\tstatic readonly TYPE: CustomerPaymentSourceType = 'customer_payment_sources' as const\n\n\tasync create(resource: CustomerPaymentSourceCreate, params?: QueryParamsRetrieve<CustomerPaymentSource>, options?: ResourcesConfig): Promise<CustomerPaymentSource> {\n\t\treturn this.resources.create<CustomerPaymentSourceCreate, CustomerPaymentSource>({ ...resource, type: CustomerPaymentSources.TYPE }, params, options)\n\t}\n\n\tasync update(resource: CustomerPaymentSourceUpdate, params?: QueryParamsRetrieve<CustomerPaymentSource>, options?: ResourcesConfig): Promise<CustomerPaymentSource> {\n\t\treturn this.resources.update<CustomerPaymentSourceUpdate, CustomerPaymentSource>({ ...resource, type: CustomerPaymentSources.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: CustomerPaymentSources.TYPE } : id, options)\n\t}\n\n\tasync customer(customerPaymentSourceId: string | CustomerPaymentSource, params?: QueryParamsRetrieve<Customer>, options?: ResourcesConfig): Promise<Customer> {\n\t\tconst _customerPaymentSourceId = (customerPaymentSourceId as CustomerPaymentSource).id || customerPaymentSourceId as string\n\t\treturn this.resources.fetch<Customer>({ type: 'customers' }, `customer_payment_sources/${_customerPaymentSourceId}/customer`, params, options) as unknown as Customer\n\t}\n\n\tasync payment_method(customerPaymentSourceId: string | CustomerPaymentSource, params?: QueryParamsRetrieve<PaymentMethod>, options?: ResourcesConfig): Promise<PaymentMethod> {\n\t\tconst _customerPaymentSourceId = (customerPaymentSourceId as CustomerPaymentSource).id || customerPaymentSourceId as string\n\t\treturn this.resources.fetch<PaymentMethod>({ type: 'payment_methods' }, `customer_payment_sources/${_customerPaymentSourceId}/payment_method`, params, options) as unknown as PaymentMethod\n\t}\n\n\tasync event_stores(customerPaymentSourceId: string | CustomerPaymentSource, params?: QueryParamsList<EventStore>, options?: ResourcesConfig): Promise<ListResponse<EventStore>> {\n\t\tconst _customerPaymentSourceId = (customerPaymentSourceId as CustomerPaymentSource).id || customerPaymentSourceId as string\n\t\treturn this.resources.fetch<EventStore>({ type: 'event_stores' }, `customer_payment_sources/${_customerPaymentSourceId}/event_stores`, params, options) as unknown as ListResponse<EventStore>\n\t}\n\n\n\tisCustomerPaymentSource(resource: any): resource is CustomerPaymentSource {\n\t\treturn resource.type && (resource.type === CustomerPaymentSources.TYPE)\n\t}\n\n\n\trelationship(id: string | ResourceId | null): CustomerPaymentSourceRel {\n\t\treturn super.relationshipOneToOne<CustomerPaymentSourceRel>(id)\n\t}\n\n\trelationshipToMany(...ids: string[]): CustomerPaymentSourceRel[] {\n\t\treturn super.relationshipOneToMany<CustomerPaymentSourceRel>(...ids)\n\t}\n\n\n\ttype(): CustomerPaymentSourceType {\n\t\treturn CustomerPaymentSources.TYPE\n\t}\n\n}\n\n\nconst instance = new CustomerPaymentSources()\nexport default instance\n\nexport type { CustomerPaymentSource, CustomerPaymentSourceCreate, CustomerPaymentSources, CustomerPaymentSourceType, CustomerPaymentSourceUpdate }\n"]}
|