@commercelayer/sdk 7.0.0-rc.11 → 7.0.0-rc.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/{api-Hgzs8bs4.d.ts → api-C7ddKOtt.d.ts} +119 -47
- package/lib/{api-DNeGwzrs.d.cts → api-DuTbl3z_.d.cts} +119 -47
- package/lib/api.cjs +42 -42
- package/lib/api.d.cts +1 -1
- package/lib/api.d.ts +1 -1
- package/lib/api.js +21 -21
- package/lib/bundle.cjs +44 -44
- package/lib/bundle.cjs.map +1 -1
- package/lib/bundle.d.cts +1 -1
- package/lib/bundle.d.ts +1 -1
- package/lib/bundle.js +22 -22
- package/lib/bundle.js.map +1 -1
- package/lib/chunk-2AFNQJXP.cjs.map +1 -1
- package/lib/chunk-2AMKJ6V7.cjs.map +1 -1
- package/lib/chunk-2HLQW5MF.cjs.map +1 -1
- package/lib/chunk-2HPO4UZA.cjs.map +1 -1
- package/lib/chunk-2JOYLKTP.cjs.map +1 -1
- package/lib/chunk-2KKHO6QF.js.map +1 -1
- package/lib/chunk-2L2ZM3VD.js.map +1 -1
- package/lib/chunk-2P6AFRJL.js.map +1 -1
- package/lib/chunk-2PYM3QGA.js.map +1 -1
- package/lib/chunk-2THU5NEW.cjs.map +1 -1
- package/lib/{chunk-JRYILJJY.cjs → chunk-2VPJZZIF.cjs} +3 -3
- package/lib/chunk-2VPJZZIF.cjs.map +1 -0
- package/lib/chunk-2XGMKMF5.cjs.map +1 -1
- package/lib/chunk-34H2NFDA.js.map +1 -1
- package/lib/chunk-35OHXDG3.cjs.map +1 -1
- package/lib/chunk-3ADITMLN.cjs.map +1 -1
- package/lib/chunk-3ANXNJ6U.cjs.map +1 -1
- package/lib/chunk-3AOPII3W.js.map +1 -1
- package/lib/chunk-3DFZ5QLR.js.map +1 -1
- package/lib/chunk-3I5BJF3J.js.map +1 -1
- package/lib/chunk-3N2MNKA3.js.map +1 -1
- package/lib/chunk-3NWQH32A.js.map +1 -1
- package/lib/chunk-3OBFBFUV.js.map +1 -1
- package/lib/chunk-3PVKJIA3.js.map +1 -1
- package/lib/chunk-3RR27O3T.js.map +1 -1
- package/lib/chunk-3TGZNMLP.cjs.map +1 -1
- package/lib/chunk-3URHH3S6.js.map +1 -1
- package/lib/chunk-3WKN5OCU.cjs.map +1 -1
- package/lib/chunk-3XWE56FL.cjs.map +1 -1
- package/lib/chunk-42DT6ZET.cjs.map +1 -1
- package/lib/chunk-432EXURP.js.map +1 -1
- package/lib/chunk-4IH4EHXT.cjs.map +1 -1
- package/lib/chunk-4KFJUIFD.js.map +1 -1
- package/lib/chunk-4KO5LZ7F.js.map +1 -1
- package/lib/chunk-4L4MGCUZ.js.map +1 -1
- package/lib/chunk-4L73LJKG.js.map +1 -1
- package/lib/{chunk-RWPFE3LF.cjs → chunk-4NI5SICY.cjs} +2 -2
- package/lib/chunk-4NI5SICY.cjs.map +1 -0
- package/lib/chunk-4SCFKFIM.cjs.map +1 -1
- package/lib/chunk-57XXD3GQ.cjs.map +1 -1
- package/lib/chunk-5EXCGVF2.cjs.map +1 -1
- package/lib/chunk-5FZNBGAF.cjs.map +1 -1
- package/lib/{chunk-NMVACSMG.js → chunk-5NMDIVXH.js} +2 -2
- package/lib/chunk-5NMDIVXH.js.map +1 -0
- package/lib/chunk-5OQQBNVB.js.map +1 -1
- package/lib/chunk-5P5Z7NXC.js.map +1 -1
- package/lib/chunk-5R76TU4I.cjs.map +1 -1
- package/lib/chunk-627I2FYX.cjs.map +1 -1
- package/lib/chunk-66JDSPFD.cjs.map +1 -1
- package/lib/{chunk-5U5QLF2Z.js → chunk-67KNILG6.js} +3 -3
- package/lib/chunk-67KNILG6.js.map +1 -0
- package/lib/chunk-67QVA2J3.cjs.map +1 -1
- package/lib/chunk-6AJSOS56.cjs.map +1 -1
- package/lib/chunk-6B66AQKB.cjs.map +1 -1
- package/lib/chunk-6OHA2TO3.cjs.map +1 -1
- package/lib/chunk-6SCAIB4K.cjs.map +1 -1
- package/lib/chunk-6SOWFGBP.cjs.map +1 -1
- package/lib/{chunk-EQD223JW.cjs → chunk-73PUROZG.cjs} +2 -2
- package/lib/chunk-73PUROZG.cjs.map +1 -0
- package/lib/chunk-7CQTUOR4.cjs.map +1 -1
- package/lib/chunk-7JLRB7QH.js.map +1 -1
- package/lib/{chunk-ANCLAYJV.cjs → chunk-7KY7C5RC.cjs} +2 -2
- package/lib/chunk-7KY7C5RC.cjs.map +1 -0
- package/lib/chunk-7SG4WU7W.js.map +1 -1
- package/lib/chunk-7SZY5BWE.js.map +1 -1
- package/lib/chunk-7VSYXEXL.js.map +1 -1
- package/lib/chunk-7Z2U4MHU.cjs.map +1 -1
- package/lib/chunk-A6BT5FSV.cjs.map +1 -1
- package/lib/chunk-A7BEMDVP.cjs.map +1 -1
- package/lib/chunk-AD73LDFJ.cjs.map +1 -1
- package/lib/{chunk-P3NADEGE.cjs → chunk-AGNIOGQC.cjs} +2 -2
- package/lib/chunk-AGNIOGQC.cjs.map +1 -0
- package/lib/chunk-AIGQRBCY.cjs.map +1 -1
- package/lib/chunk-AQFAND5D.cjs.map +1 -1
- package/lib/chunk-ARIBIRKF.cjs.map +1 -1
- package/lib/chunk-AW3TRBZ7.js.map +1 -1
- package/lib/{chunk-BF7OPORP.js → chunk-AWP3PHRS.js} +2 -2
- package/lib/chunk-AWP3PHRS.js.map +1 -0
- package/lib/chunk-AYTBSAHY.js.map +1 -1
- package/lib/chunk-B72FREUL.cjs.map +1 -1
- package/lib/{chunk-JN4JL4WT.cjs → chunk-BJYOKKGX.cjs} +2 -2
- package/lib/chunk-BJYOKKGX.cjs.map +1 -0
- package/lib/chunk-BN6XJAZH.cjs.map +1 -1
- package/lib/chunk-BTAKU6V5.cjs.map +1 -1
- package/lib/chunk-CG2ACHGS.js.map +1 -1
- package/lib/chunk-CHYP5F26.js.map +1 -1
- package/lib/chunk-CK6RZLVM.cjs.map +1 -1
- package/lib/chunk-CNCZCBI3.js.map +1 -1
- package/lib/chunk-CRRYP7ZN.js.map +1 -1
- package/lib/chunk-CTXBUDGO.cjs.map +1 -1
- package/lib/chunk-CUNOMS5N.js.map +1 -1
- package/lib/chunk-D26KDUDM.cjs.map +1 -1
- package/lib/chunk-D5E4OGXU.js.map +1 -1
- package/lib/chunk-D7KNSKNJ.js.map +1 -1
- package/lib/chunk-DAXKXBA3.js.map +1 -1
- package/lib/{chunk-465K3KVE.js → chunk-DGW3ZSW6.js} +2 -2
- package/lib/chunk-DGW3ZSW6.js.map +1 -0
- package/lib/chunk-DJ572MZB.cjs.map +1 -1
- package/lib/chunk-DOFPDQMJ.cjs.map +1 -1
- package/lib/chunk-DOGEZ6XX.cjs.map +1 -1
- package/lib/chunk-DSKZRVXS.js.map +1 -1
- package/lib/chunk-DYZGWPZ6.js.map +1 -1
- package/lib/{chunk-7ISS2FDY.js → chunk-DZLNYX4L.js} +2 -2
- package/lib/chunk-DZLNYX4L.js.map +1 -0
- package/lib/chunk-E3FDHGI7.js.map +1 -1
- package/lib/chunk-E4DYW6HB.cjs.map +1 -1
- package/lib/{chunk-ZFG533LP.js → chunk-E65GENXB.js} +2 -2
- package/lib/chunk-E65GENXB.js.map +1 -0
- package/lib/chunk-E6TBQVLK.cjs.map +1 -1
- package/lib/chunk-EADFDBOR.cjs.map +1 -1
- package/lib/chunk-ECMCBU3N.js.map +1 -1
- package/lib/chunk-EEFOL62K.js.map +1 -1
- package/lib/chunk-ELBOXOTA.js.map +1 -1
- package/lib/chunk-EP22KKHR.js.map +1 -1
- package/lib/chunk-EP7MAEQH.cjs.map +1 -1
- package/lib/{chunk-LCLXLB2R.cjs → chunk-ESMKOP42.cjs} +5 -2
- package/lib/chunk-ESMKOP42.cjs.map +1 -0
- package/lib/chunk-F6MSHDB7.cjs.map +1 -1
- package/lib/chunk-FAU5EILL.js.map +1 -1
- package/lib/{chunk-HLCGKY7R.js → chunk-FO7WBEPF.js} +2 -2
- package/lib/chunk-FO7WBEPF.js.map +1 -0
- package/lib/{chunk-HAAE23MQ.js → chunk-FRZBCW3D.js} +2 -2
- package/lib/chunk-FRZBCW3D.js.map +1 -0
- package/lib/chunk-FSFXOZ35.cjs.map +1 -1
- package/lib/chunk-FTAZDUH6.js.map +1 -1
- package/lib/chunk-FVJDRHG7.js.map +1 -1
- package/lib/{chunk-HSILJQCD.js → chunk-FWFGGAKV.js} +2 -2
- package/lib/chunk-FWFGGAKV.js.map +1 -0
- package/lib/chunk-FXE62CPP.cjs.map +1 -1
- package/lib/chunk-FYKIHWAM.cjs.map +1 -1
- package/lib/chunk-G74OZ4M6.js.map +1 -1
- package/lib/chunk-GD4WRDF2.js.map +1 -1
- package/lib/chunk-GE6OHQR6.cjs.map +1 -1
- package/lib/chunk-GHLCA7BX.js.map +1 -1
- package/lib/chunk-GLSPCG3M.cjs.map +1 -1
- package/lib/chunk-H2USYPU6.js.map +1 -1
- package/lib/chunk-H4PUXGNI.cjs.map +1 -1
- package/lib/chunk-H4SVEI6E.js.map +1 -1
- package/lib/chunk-HBUDZOK7.cjs.map +1 -1
- package/lib/chunk-HCBXRHD7.js.map +1 -1
- package/lib/chunk-HDYENVKD.js.map +1 -1
- package/lib/{chunk-LEWK7QET.cjs → chunk-HERQULAV.cjs} +2 -2
- package/lib/chunk-HERQULAV.cjs.map +1 -0
- package/lib/chunk-HNHF6T2I.cjs.map +1 -1
- package/lib/{chunk-HQ35KQFG.cjs → chunk-HNONYIDO.cjs} +2 -2
- package/lib/chunk-HNONYIDO.cjs.map +1 -0
- package/lib/chunk-HQ5STEMD.js.map +1 -1
- package/lib/chunk-HQ6TJSB7.cjs.map +1 -1
- package/lib/chunk-I3SKGXTB.cjs.map +1 -1
- package/lib/{chunk-BBEMCANC.cjs → chunk-I5KTGLTE.cjs} +2 -2
- package/lib/chunk-I5KTGLTE.cjs.map +1 -0
- package/lib/chunk-IITNQS6D.js.map +1 -1
- package/lib/chunk-IKENWSRH.cjs.map +1 -1
- package/lib/chunk-IKHD5UQP.cjs.map +1 -1
- package/lib/chunk-INJ7FRDA.cjs.map +1 -1
- package/lib/chunk-J4CTOHX6.cjs.map +1 -1
- package/lib/chunk-J6NBJHWL.cjs.map +1 -1
- package/lib/chunk-J6PTNG3D.js.map +1 -1
- package/lib/{chunk-ROPOLXIV.js → chunk-J6Z6ZR33.js} +2 -2
- package/lib/chunk-J6Z6ZR33.js.map +1 -0
- package/lib/chunk-J7ZSBB35.js.map +1 -1
- package/lib/chunk-JAQECLCE.js.map +1 -1
- package/lib/chunk-JECYKPCC.cjs.map +1 -1
- package/lib/chunk-JPUF5YXX.js.map +1 -1
- package/lib/chunk-JRTJ6LWK.js.map +1 -1
- package/lib/chunk-JT7HVLLW.cjs.map +1 -1
- package/lib/chunk-JVF5KY2J.cjs.map +1 -1
- package/lib/chunk-JWC2GSYH.cjs.map +1 -1
- package/lib/chunk-JYOFP6BM.js.map +1 -1
- package/lib/chunk-JYXAF775.js.map +1 -1
- package/lib/chunk-K2CU5HIV.js.map +1 -1
- package/lib/chunk-K6WSCQKS.cjs.map +1 -1
- package/lib/chunk-KH5OQRQL.js.map +1 -1
- package/lib/{chunk-7X36B7N6.js → chunk-KITKWF6F.js} +2 -2
- package/lib/chunk-KITKWF6F.js.map +1 -0
- package/lib/{chunk-KBN3FFXD.cjs → chunk-KPRWSW6P.cjs} +2 -2
- package/lib/chunk-KPRWSW6P.cjs.map +1 -0
- package/lib/{chunk-7GVHCOUC.js → chunk-KU5U6DTU.js} +2 -2
- package/lib/chunk-KU5U6DTU.js.map +1 -0
- package/lib/chunk-KWRDUU7K.js.map +1 -1
- package/lib/{chunk-DTGODPCN.js → chunk-KYZ4CKIR.js} +2 -2
- package/lib/chunk-KYZ4CKIR.js.map +1 -0
- package/lib/{chunk-EHWAGYNX.js → chunk-KZ75CT2Q.js} +2 -2
- package/lib/chunk-KZ75CT2Q.js.map +1 -0
- package/lib/chunk-L4LPS3DV.cjs.map +1 -1
- package/lib/chunk-L4TDKOAC.js.map +1 -1
- package/lib/{chunk-INZD34YD.cjs → chunk-L5FMOT44.cjs} +2 -2
- package/lib/chunk-L5FMOT44.cjs.map +1 -0
- package/lib/chunk-L5NEDGXK.js.map +1 -1
- package/lib/chunk-L6IGO47T.js.map +1 -1
- package/lib/chunk-LCNT6GY3.js.map +1 -1
- package/lib/chunk-LIT4FEIU.cjs.map +1 -1
- package/lib/chunk-LJ2EP6AL.cjs.map +1 -1
- package/lib/{chunk-WBPEFNL7.cjs → chunk-LJFBPFPR.cjs} +2 -2
- package/lib/chunk-LJFBPFPR.cjs.map +1 -0
- package/lib/chunk-LNMY5BDT.js.map +1 -1
- package/lib/chunk-LTLMRGB7.js.map +1 -1
- package/lib/chunk-MADGMICB.js.map +1 -1
- package/lib/{chunk-VDZUWCIN.cjs → chunk-MCGX2ZDC.cjs} +2 -2
- package/lib/chunk-MCGX2ZDC.cjs.map +1 -0
- package/lib/chunk-MJRMRWP3.js.map +1 -1
- package/lib/chunk-MQZSDICO.cjs.map +1 -1
- package/lib/chunk-MUPRLXGP.js.map +1 -1
- package/lib/chunk-MWYBER5I.cjs.map +1 -1
- package/lib/chunk-MZNHRIXE.js.map +1 -1
- package/lib/chunk-N4P7A3RY.js.map +1 -1
- package/lib/chunk-N753UD4K.cjs.map +1 -1
- package/lib/chunk-NAWKHFBZ.js.map +1 -1
- package/lib/chunk-NBYV35R4.cjs.map +1 -1
- package/lib/chunk-NDPDO54G.js.map +1 -1
- package/lib/chunk-NEC22ZSI.cjs.map +1 -1
- package/lib/{chunk-OPQJPXLM.cjs → chunk-NIHOABAW.cjs} +2 -2
- package/lib/chunk-NIHOABAW.cjs.map +1 -0
- package/lib/chunk-NJYMO7FP.cjs.map +1 -1
- package/lib/chunk-NODKE6P4.js.map +1 -1
- package/lib/{chunk-6PWK52UZ.cjs → chunk-NYS7N44P.cjs} +2 -2
- package/lib/chunk-NYS7N44P.cjs.map +1 -0
- package/lib/chunk-OGLS27LJ.js.map +1 -1
- package/lib/chunk-OYFNK2SE.cjs.map +1 -1
- package/lib/chunk-PEU5GGGE.js.map +1 -1
- package/lib/{chunk-M2ZERG2X.cjs → chunk-PGZTQAOR.cjs} +2 -2
- package/lib/chunk-PGZTQAOR.cjs.map +1 -0
- package/lib/chunk-PNSVP3KP.cjs.map +1 -1
- package/lib/chunk-PQS6KXZ2.cjs.map +1 -1
- package/lib/chunk-PV7MUP5Z.js.map +1 -1
- package/lib/chunk-PZZLLHJP.js.map +1 -1
- package/lib/chunk-Q2ZSQM7I.js.map +1 -1
- package/lib/chunk-Q66HILUF.js.map +1 -1
- package/lib/chunk-Q66JEOCJ.cjs.map +1 -1
- package/lib/chunk-Q7YHSPJL.js.map +1 -1
- package/lib/chunk-QGE4ELJO.cjs.map +1 -1
- package/lib/chunk-QK5MFD4L.js.map +1 -1
- package/lib/chunk-QK7D6L3W.js.map +1 -1
- package/lib/chunk-QYDOENWU.cjs.map +1 -1
- package/lib/chunk-QZTNLPOD.cjs.map +1 -1
- package/lib/chunk-QZWQNPKC.js.map +1 -1
- package/lib/chunk-R2LRLUUY.js.map +1 -1
- package/lib/chunk-R755X3AG.cjs.map +1 -1
- package/lib/chunk-RHARO4TQ.cjs.map +1 -1
- package/lib/{chunk-QHRQCFDB.js → chunk-RL7Y22OT.js} +2 -2
- package/lib/chunk-RL7Y22OT.js.map +1 -0
- package/lib/chunk-RT7XLEV6.js.map +1 -1
- package/lib/chunk-RTDD2NRL.cjs.map +1 -1
- package/lib/chunk-RTGW34KX.cjs.map +1 -1
- package/lib/{chunk-M55NSZVW.js → chunk-S4GBVQLI.js} +3 -3
- package/lib/chunk-S4GBVQLI.js.map +1 -0
- package/lib/{chunk-MPSHBMZS.js → chunk-SDRMBCHM.js} +2 -2
- package/lib/chunk-SDRMBCHM.js.map +1 -0
- package/lib/chunk-SGOUEVJ3.cjs.map +1 -1
- package/lib/chunk-SGWRNEJB.cjs.map +1 -1
- package/lib/chunk-SKFA2ZIK.js.map +1 -1
- package/lib/chunk-SOXJJRL2.js.map +1 -1
- package/lib/chunk-SPLHKBWG.cjs.map +1 -1
- package/lib/chunk-SRW7OWVS.cjs.map +1 -1
- package/lib/chunk-SUJCEUOZ.cjs.map +1 -1
- package/lib/chunk-SWWPX4V4.cjs.map +1 -1
- package/lib/chunk-THO6KQJZ.js.map +1 -1
- package/lib/chunk-THVPSJTK.cjs.map +1 -1
- package/lib/chunk-TIJIXGNJ.cjs.map +1 -1
- package/lib/chunk-TM5OCFYV.cjs.map +1 -1
- package/lib/{chunk-FKDKRSPO.js → chunk-TOV6ECTA.js} +2 -2
- package/lib/chunk-TOV6ECTA.js.map +1 -0
- package/lib/chunk-TQFODT4D.cjs.map +1 -1
- package/lib/chunk-TSD2PK6H.js.map +1 -1
- package/lib/chunk-TSLXKI72.js.map +1 -1
- package/lib/chunk-U5FTZYJJ.js.map +1 -1
- package/lib/chunk-U6PW4AZV.js.map +1 -1
- package/lib/chunk-UB6JC3W7.js.map +1 -1
- package/lib/chunk-UBXNH6J3.js.map +1 -1
- package/lib/chunk-UP7FR6HD.cjs.map +1 -1
- package/lib/{chunk-NJQDJCFB.cjs → chunk-UROMLQDG.cjs} +2 -2
- package/lib/chunk-UROMLQDG.cjs.map +1 -0
- package/lib/chunk-VNWOCO65.cjs.map +1 -1
- package/lib/chunk-VPXMI42G.cjs.map +1 -1
- package/lib/chunk-VRFSITD3.js.map +1 -1
- package/lib/chunk-VUCYIRSC.cjs.map +1 -1
- package/lib/{chunk-EKGR3EB3.js → chunk-W6YJDUYD.js} +2 -2
- package/lib/chunk-W6YJDUYD.js.map +1 -0
- package/lib/chunk-WAL76UPE.cjs.map +1 -1
- package/lib/{chunk-KJAD45RP.cjs → chunk-WC4Z7ENS.cjs} +2 -2
- package/lib/chunk-WC4Z7ENS.cjs.map +1 -0
- package/lib/{chunk-BOPK7T5K.js → chunk-WI5IVLYL.js} +2 -2
- package/lib/chunk-WI5IVLYL.js.map +1 -0
- package/lib/chunk-WKN5RLNR.js.map +1 -1
- package/lib/chunk-WP3L72CW.js.map +1 -1
- package/lib/chunk-WTHX574O.js.map +1 -1
- package/lib/{chunk-JENLN6VJ.js → chunk-WVKEXOIY.js} +5 -2
- package/lib/chunk-WVKEXOIY.js.map +1 -0
- package/lib/chunk-WXD4O4UY.js.map +1 -1
- package/lib/chunk-X2D47UM7.cjs.map +1 -1
- package/lib/chunk-X6PHZA6P.cjs.map +1 -1
- package/lib/chunk-XD7GS4QW.js.map +1 -1
- package/lib/chunk-XMDDYWH5.js.map +1 -1
- package/lib/{chunk-3LTCO2OB.cjs → chunk-XOYVZN2R.cjs} +4 -4
- package/lib/chunk-XOYVZN2R.cjs.map +1 -0
- package/lib/chunk-XPF5Z2WY.js.map +1 -1
- package/lib/chunk-XR3KEV7U.js.map +1 -1
- package/lib/chunk-XUC3BYL2.cjs.map +1 -1
- package/lib/{chunk-YUGZUUAU.js → chunk-XXKXNBD5.js} +2 -2
- package/lib/chunk-XXKXNBD5.js.map +1 -0
- package/lib/{chunk-N6MHUHGE.cjs → chunk-Y27X5PYA.cjs} +2 -2
- package/lib/chunk-Y27X5PYA.cjs.map +1 -0
- package/lib/chunk-Y2IGLW5N.js.map +1 -1
- package/lib/chunk-Y3BFYVWA.js.map +1 -1
- package/lib/{chunk-VMJUXZ67.cjs → chunk-Y5BP4C42.cjs} +2 -2
- package/lib/chunk-Y5BP4C42.cjs.map +1 -0
- package/lib/chunk-YAKNUPNE.cjs.map +1 -1
- package/lib/chunk-YAVHAWTZ.js.map +1 -1
- package/lib/chunk-YBXRC6MC.js.map +1 -1
- package/lib/chunk-YHYBOXVX.cjs.map +1 -1
- package/lib/chunk-YIDX7HVR.cjs.map +1 -1
- package/lib/chunk-YN4M5CNJ.js.map +1 -1
- package/lib/chunk-YOHBJHTH.cjs.map +1 -1
- package/lib/chunk-YY5ENJSH.cjs.map +1 -1
- package/lib/{chunk-SN6BP777.js → chunk-YZ57ATOP.js} +2 -2
- package/lib/chunk-YZ57ATOP.js.map +1 -0
- package/lib/chunk-Z2QVXW6T.cjs.map +1 -1
- package/lib/chunk-Z667GAZJ.js.map +1 -1
- package/lib/chunk-Z7DKPFKZ.js.map +1 -1
- package/lib/chunk-ZAISVVBE.cjs.map +1 -1
- package/lib/chunk-ZASD6IUL.js.map +1 -1
- package/lib/chunk-ZEEB5YAU.js.map +1 -1
- package/lib/{chunk-IDAOX5RB.cjs → chunk-ZLDJ7WAY.cjs} +2 -2
- package/lib/chunk-ZLDJ7WAY.cjs.map +1 -0
- package/lib/chunk-ZQSCFH5J.cjs.map +1 -1
- package/lib/chunk-ZTVQSWSD.cjs.map +1 -1
- package/lib/chunk-ZU7GFVQ6.js.map +1 -1
- package/lib/chunk-ZZF34M2E.cjs.map +1 -1
- package/lib/client.d.cts +3 -1
- package/lib/commercelayer.cjs +5 -5
- package/lib/commercelayer.d.cts +6 -4
- package/lib/commercelayer.d.ts +3 -3
- package/lib/commercelayer.js +1 -1
- package/lib/enum.d.cts +1 -1
- package/lib/enum.d.ts +1 -1
- package/lib/index.cjs +47 -47
- package/lib/index.d.cts +5 -2
- package/lib/index.d.ts +1 -1
- package/lib/index.js +23 -23
- package/lib/jsonapi.d.cts +1 -1
- package/lib/jsonapi.d.ts +1 -1
- package/lib/model.d.cts +1 -1
- package/lib/model.d.ts +1 -1
- package/lib/query.d.cts +1 -1
- package/lib/query.d.ts +1 -1
- package/lib/resource.d.cts +1 -1
- package/lib/resource.d.ts +1 -1
- package/lib/resources/addresses.d.cts +4 -1
- package/lib/resources/addresses.d.ts +1 -1
- package/lib/resources/adjustments.d.cts +4 -1
- package/lib/resources/adjustments.d.ts +1 -1
- package/lib/resources/adyen_gateways.d.cts +4 -1
- package/lib/resources/adyen_gateways.d.ts +1 -1
- package/lib/resources/adyen_payments.cjs +2 -2
- package/lib/resources/adyen_payments.d.cts +4 -1
- package/lib/resources/adyen_payments.d.ts +1 -1
- package/lib/resources/adyen_payments.js +1 -1
- package/lib/resources/applications.cjs +2 -2
- package/lib/resources/applications.d.cts +4 -1
- package/lib/resources/applications.d.ts +1 -1
- package/lib/resources/applications.js +1 -1
- package/lib/resources/attachments.d.cts +4 -1
- package/lib/resources/attachments.d.ts +1 -1
- package/lib/resources/authorizations.d.cts +4 -1
- package/lib/resources/authorizations.d.ts +1 -1
- package/lib/resources/avalara_accounts.d.cts +4 -1
- package/lib/resources/avalara_accounts.d.ts +1 -1
- package/lib/resources/axerve_gateways.d.cts +4 -1
- package/lib/resources/axerve_gateways.d.ts +1 -1
- package/lib/resources/axerve_payments.d.cts +4 -1
- package/lib/resources/axerve_payments.d.ts +1 -1
- package/lib/resources/bing_geocoders.d.cts +4 -1
- package/lib/resources/bing_geocoders.d.ts +1 -1
- package/lib/resources/braintree_gateways.d.cts +4 -1
- package/lib/resources/braintree_gateways.d.ts +1 -1
- package/lib/resources/braintree_payments.d.cts +4 -1
- package/lib/resources/braintree_payments.d.ts +1 -1
- package/lib/resources/bundles.d.cts +4 -1
- package/lib/resources/bundles.d.ts +1 -1
- package/lib/resources/buy_x_pay_y_promotions.cjs +2 -2
- package/lib/resources/buy_x_pay_y_promotions.d.cts +4 -1
- package/lib/resources/buy_x_pay_y_promotions.d.ts +1 -1
- package/lib/resources/buy_x_pay_y_promotions.js +1 -1
- package/lib/resources/captures.d.cts +4 -1
- package/lib/resources/captures.d.ts +1 -1
- package/lib/resources/carrier_accounts.d.cts +4 -1
- package/lib/resources/carrier_accounts.d.ts +1 -1
- package/lib/resources/checkout_com_gateways.d.cts +4 -1
- package/lib/resources/checkout_com_gateways.d.ts +1 -1
- package/lib/resources/checkout_com_payments.cjs +2 -2
- package/lib/resources/checkout_com_payments.d.cts +4 -1
- package/lib/resources/checkout_com_payments.d.ts +1 -1
- package/lib/resources/checkout_com_payments.js +1 -1
- package/lib/resources/cleanups.d.cts +4 -1
- package/lib/resources/cleanups.d.ts +1 -1
- package/lib/resources/coupon_codes_promotion_rules.d.cts +4 -1
- package/lib/resources/coupon_codes_promotion_rules.d.ts +1 -1
- package/lib/resources/coupon_recipients.d.cts +4 -1
- package/lib/resources/coupon_recipients.d.ts +1 -1
- package/lib/resources/coupons.d.cts +4 -1
- package/lib/resources/coupons.d.ts +1 -1
- package/lib/resources/custom_promotion_rules.d.cts +4 -1
- package/lib/resources/custom_promotion_rules.d.ts +1 -1
- package/lib/resources/customer_addresses.d.cts +4 -1
- package/lib/resources/customer_addresses.d.ts +1 -1
- package/lib/resources/customer_groups.d.cts +4 -1
- package/lib/resources/customer_groups.d.ts +1 -1
- package/lib/resources/customer_password_resets.d.cts +4 -1
- package/lib/resources/customer_password_resets.d.ts +1 -1
- package/lib/resources/customer_payment_sources.d.cts +4 -1
- package/lib/resources/customer_payment_sources.d.ts +1 -1
- package/lib/resources/customer_subscriptions.d.cts +4 -1
- package/lib/resources/customer_subscriptions.d.ts +1 -1
- package/lib/resources/customers.cjs +2 -2
- package/lib/resources/customers.d.cts +4 -1
- package/lib/resources/customers.d.ts +1 -1
- package/lib/resources/customers.js +1 -1
- package/lib/resources/delivery_lead_times.d.cts +4 -1
- package/lib/resources/delivery_lead_times.d.ts +1 -1
- package/lib/resources/discount_engine_items.d.cts +4 -1
- package/lib/resources/discount_engine_items.d.ts +1 -1
- package/lib/resources/discount_engines.d.cts +4 -1
- package/lib/resources/discount_engines.d.ts +1 -1
- package/lib/resources/easypost_pickups.d.cts +4 -1
- package/lib/resources/easypost_pickups.d.ts +1 -1
- package/lib/resources/event_callbacks.d.cts +4 -1
- package/lib/resources/event_callbacks.d.ts +1 -1
- package/lib/resources/events.d.cts +4 -1
- package/lib/resources/events.d.ts +1 -1
- package/lib/resources/exports.d.cts +4 -1
- package/lib/resources/exports.d.ts +1 -1
- package/lib/resources/external_gateways.d.cts +4 -1
- package/lib/resources/external_gateways.d.ts +1 -1
- package/lib/resources/external_payments.d.cts +4 -1
- package/lib/resources/external_payments.d.ts +1 -1
- package/lib/resources/external_promotions.cjs +2 -2
- package/lib/resources/external_promotions.d.cts +4 -1
- package/lib/resources/external_promotions.d.ts +1 -1
- package/lib/resources/external_promotions.js +1 -1
- package/lib/resources/external_tax_calculators.d.cts +4 -1
- package/lib/resources/external_tax_calculators.d.ts +1 -1
- package/lib/resources/fixed_amount_promotions.cjs +2 -2
- package/lib/resources/fixed_amount_promotions.d.cts +4 -1
- package/lib/resources/fixed_amount_promotions.d.ts +1 -1
- package/lib/resources/fixed_amount_promotions.js +1 -1
- package/lib/resources/fixed_price_promotions.cjs +2 -2
- package/lib/resources/fixed_price_promotions.d.cts +4 -1
- package/lib/resources/fixed_price_promotions.d.ts +1 -1
- package/lib/resources/fixed_price_promotions.js +1 -1
- package/lib/resources/flex_promotions.cjs +2 -2
- package/lib/resources/flex_promotions.d.cts +4 -1
- package/lib/resources/flex_promotions.d.ts +1 -1
- package/lib/resources/flex_promotions.js +1 -1
- package/lib/resources/free_gift_promotions.cjs +2 -2
- package/lib/resources/free_gift_promotions.d.cts +4 -1
- package/lib/resources/free_gift_promotions.d.ts +1 -1
- package/lib/resources/free_gift_promotions.js +1 -1
- package/lib/resources/free_shipping_promotions.cjs +2 -2
- package/lib/resources/free_shipping_promotions.d.cts +4 -1
- package/lib/resources/free_shipping_promotions.d.ts +1 -1
- package/lib/resources/free_shipping_promotions.js +1 -1
- package/lib/resources/geocoders.d.cts +4 -1
- package/lib/resources/geocoders.d.ts +1 -1
- package/lib/resources/gift_card_recipients.d.cts +4 -1
- package/lib/resources/gift_card_recipients.d.ts +1 -1
- package/lib/resources/gift_cards.d.cts +4 -1
- package/lib/resources/gift_cards.d.ts +1 -1
- package/lib/resources/google_geocoders.d.cts +4 -1
- package/lib/resources/google_geocoders.d.ts +1 -1
- package/lib/resources/imports.d.cts +4 -1
- package/lib/resources/imports.d.ts +1 -1
- package/lib/resources/in_stock_subscriptions.d.cts +4 -1
- package/lib/resources/in_stock_subscriptions.d.ts +1 -1
- package/lib/resources/inventory_models.d.cts +4 -1
- package/lib/resources/inventory_models.d.ts +1 -1
- package/lib/resources/inventory_return_locations.d.cts +4 -1
- package/lib/resources/inventory_return_locations.d.ts +1 -1
- package/lib/resources/inventory_stock_locations.d.cts +4 -1
- package/lib/resources/inventory_stock_locations.d.ts +1 -1
- package/lib/resources/klarna_gateways.d.cts +4 -1
- package/lib/resources/klarna_gateways.d.ts +1 -1
- package/lib/resources/klarna_payments.d.cts +4 -1
- package/lib/resources/klarna_payments.d.ts +1 -1
- package/lib/resources/line_item_options.d.cts +4 -1
- package/lib/resources/line_item_options.d.ts +1 -1
- package/lib/resources/line_items.cjs +2 -2
- package/lib/resources/line_items.d.cts +4 -1
- package/lib/resources/line_items.d.ts +1 -1
- package/lib/resources/line_items.js +1 -1
- package/lib/resources/links.d.cts +4 -1
- package/lib/resources/links.d.ts +1 -1
- package/lib/resources/manual_gateways.d.cts +4 -1
- package/lib/resources/manual_gateways.d.ts +1 -1
- package/lib/resources/manual_tax_calculators.d.cts +4 -1
- package/lib/resources/manual_tax_calculators.d.ts +1 -1
- package/lib/resources/markets.d.cts +4 -1
- package/lib/resources/markets.d.ts +1 -1
- package/lib/resources/merchants.d.cts +4 -1
- package/lib/resources/merchants.d.ts +1 -1
- package/lib/resources/notifications.d.cts +4 -1
- package/lib/resources/notifications.d.ts +1 -1
- package/lib/resources/order_amount_promotion_rules.d.cts +4 -1
- package/lib/resources/order_amount_promotion_rules.d.ts +1 -1
- package/lib/resources/order_copies.d.cts +4 -1
- package/lib/resources/order_copies.d.ts +1 -1
- package/lib/resources/order_factories.d.cts +4 -1
- package/lib/resources/order_factories.d.ts +1 -1
- package/lib/resources/order_subscription_items.d.cts +4 -1
- package/lib/resources/order_subscription_items.d.ts +1 -1
- package/lib/resources/order_subscriptions.d.cts +4 -1
- package/lib/resources/order_subscriptions.d.ts +1 -1
- package/lib/resources/orders.d.cts +4 -1
- package/lib/resources/orders.d.ts +1 -1
- package/lib/resources/organizations.cjs +2 -2
- package/lib/resources/organizations.d.cts +4 -1
- package/lib/resources/organizations.d.ts +1 -1
- package/lib/resources/organizations.js +1 -1
- package/lib/resources/packages.d.cts +4 -1
- package/lib/resources/packages.d.ts +1 -1
- package/lib/resources/parcel_line_items.d.cts +4 -1
- package/lib/resources/parcel_line_items.d.ts +1 -1
- package/lib/resources/parcels.d.cts +4 -1
- package/lib/resources/parcels.d.ts +1 -1
- package/lib/resources/payment_gateways.d.cts +4 -1
- package/lib/resources/payment_gateways.d.ts +1 -1
- package/lib/resources/payment_methods.cjs +2 -2
- package/lib/resources/payment_methods.d.cts +4 -1
- package/lib/resources/payment_methods.d.ts +1 -1
- package/lib/resources/payment_methods.js +1 -1
- package/lib/resources/payment_options.cjs +2 -2
- package/lib/resources/payment_options.d.cts +4 -1
- package/lib/resources/payment_options.d.ts +1 -1
- package/lib/resources/payment_options.js +1 -1
- package/lib/resources/paypal_gateways.d.cts +4 -1
- package/lib/resources/paypal_gateways.d.ts +1 -1
- package/lib/resources/paypal_payments.d.cts +4 -1
- package/lib/resources/paypal_payments.d.ts +1 -1
- package/lib/resources/percentage_discount_promotions.cjs +2 -2
- package/lib/resources/percentage_discount_promotions.d.cts +4 -1
- package/lib/resources/percentage_discount_promotions.d.ts +1 -1
- package/lib/resources/percentage_discount_promotions.js +1 -1
- package/lib/resources/pickups.d.cts +4 -1
- package/lib/resources/pickups.d.ts +1 -1
- package/lib/resources/price_frequency_tiers.d.cts +4 -1
- package/lib/resources/price_frequency_tiers.d.ts +1 -1
- package/lib/resources/price_list_schedulers.d.cts +4 -1
- package/lib/resources/price_list_schedulers.d.ts +1 -1
- package/lib/resources/price_lists.cjs +2 -2
- package/lib/resources/price_lists.d.cts +4 -1
- package/lib/resources/price_lists.d.ts +1 -1
- package/lib/resources/price_lists.js +1 -1
- package/lib/resources/price_tiers.d.cts +4 -1
- package/lib/resources/price_tiers.d.ts +1 -1
- package/lib/resources/price_volume_tiers.d.cts +4 -1
- package/lib/resources/price_volume_tiers.d.ts +1 -1
- package/lib/resources/prices.cjs +2 -2
- package/lib/resources/prices.d.cts +4 -1
- package/lib/resources/prices.d.ts +1 -1
- package/lib/resources/prices.js +1 -1
- package/lib/resources/promotion_rules.d.cts +4 -1
- package/lib/resources/promotion_rules.d.ts +1 -1
- package/lib/resources/promotions.cjs +2 -2
- package/lib/resources/promotions.d.cts +4 -1
- package/lib/resources/promotions.d.ts +1 -1
- package/lib/resources/promotions.js +1 -1
- package/lib/resources/recurring_order_copies.d.cts +4 -1
- package/lib/resources/recurring_order_copies.d.ts +1 -1
- package/lib/resources/refunds.d.cts +4 -1
- package/lib/resources/refunds.d.ts +1 -1
- package/lib/resources/reserved_stocks.d.cts +4 -1
- package/lib/resources/reserved_stocks.d.ts +1 -1
- package/lib/resources/resource_errors.d.cts +4 -1
- package/lib/resources/resource_errors.d.ts +1 -1
- package/lib/resources/return_line_items.d.cts +4 -1
- package/lib/resources/return_line_items.d.ts +1 -1
- package/lib/resources/returns.d.cts +4 -1
- package/lib/resources/returns.d.ts +1 -1
- package/lib/resources/satispay_gateways.d.cts +4 -1
- package/lib/resources/satispay_gateways.d.ts +1 -1
- package/lib/resources/satispay_payments.d.cts +4 -1
- package/lib/resources/satispay_payments.d.ts +1 -1
- package/lib/resources/shipments.d.cts +4 -1
- package/lib/resources/shipments.d.ts +1 -1
- package/lib/resources/shipping_categories.d.cts +4 -1
- package/lib/resources/shipping_categories.d.ts +1 -1
- package/lib/resources/shipping_method_tiers.d.cts +4 -1
- package/lib/resources/shipping_method_tiers.d.ts +1 -1
- package/lib/resources/shipping_methods.cjs +2 -2
- package/lib/resources/shipping_methods.d.cts +4 -1
- package/lib/resources/shipping_methods.d.ts +1 -1
- package/lib/resources/shipping_methods.js +1 -1
- package/lib/resources/shipping_weight_tiers.d.cts +4 -1
- package/lib/resources/shipping_weight_tiers.d.ts +1 -1
- package/lib/resources/shipping_zones.d.cts +4 -1
- package/lib/resources/shipping_zones.d.ts +1 -1
- package/lib/resources/sku_list_items.d.cts +4 -1
- package/lib/resources/sku_list_items.d.ts +1 -1
- package/lib/resources/sku_list_promotion_rules.d.cts +4 -1
- package/lib/resources/sku_list_promotion_rules.d.ts +1 -1
- package/lib/resources/sku_lists.d.cts +4 -1
- package/lib/resources/sku_lists.d.ts +1 -1
- package/lib/resources/sku_options.d.cts +4 -1
- package/lib/resources/sku_options.d.ts +1 -1
- package/lib/resources/skus.d.cts +4 -1
- package/lib/resources/skus.d.ts +1 -1
- package/lib/resources/stock_items.d.cts +4 -1
- package/lib/resources/stock_items.d.ts +1 -1
- package/lib/resources/stock_line_items.d.cts +4 -1
- package/lib/resources/stock_line_items.d.ts +1 -1
- package/lib/resources/stock_locations.d.cts +4 -1
- package/lib/resources/stock_locations.d.ts +1 -1
- package/lib/resources/stock_reservations.d.cts +4 -1
- package/lib/resources/stock_reservations.d.ts +1 -1
- package/lib/resources/stock_transfers.d.cts +4 -1
- package/lib/resources/stock_transfers.d.ts +1 -1
- package/lib/resources/stores.d.cts +4 -1
- package/lib/resources/stores.d.ts +1 -1
- package/lib/resources/stripe_gateways.d.cts +4 -1
- package/lib/resources/stripe_gateways.d.ts +1 -1
- package/lib/resources/stripe_payments.d.cts +4 -1
- package/lib/resources/stripe_payments.d.ts +1 -1
- package/lib/resources/stripe_tax_accounts.d.cts +4 -1
- package/lib/resources/stripe_tax_accounts.d.ts +1 -1
- package/lib/resources/subscription_models.d.cts +4 -1
- package/lib/resources/subscription_models.d.ts +1 -1
- package/lib/resources/tags.d.cts +4 -1
- package/lib/resources/tags.d.ts +1 -1
- package/lib/resources/talon_one_accounts.cjs +2 -2
- package/lib/resources/talon_one_accounts.d.cts +4 -1
- package/lib/resources/talon_one_accounts.d.ts +1 -1
- package/lib/resources/talon_one_accounts.js +1 -1
- package/lib/resources/tax_calculators.d.cts +4 -1
- package/lib/resources/tax_calculators.d.ts +1 -1
- package/lib/resources/tax_categories.d.cts +4 -1
- package/lib/resources/tax_categories.d.ts +1 -1
- package/lib/resources/tax_rules.d.cts +4 -1
- package/lib/resources/tax_rules.d.ts +1 -1
- package/lib/resources/taxjar_accounts.d.cts +4 -1
- package/lib/resources/taxjar_accounts.d.ts +1 -1
- package/lib/resources/transactions.d.cts +4 -1
- package/lib/resources/transactions.d.ts +1 -1
- package/lib/resources/versions.d.cts +4 -1
- package/lib/resources/versions.d.ts +1 -1
- package/lib/resources/vertex_accounts.d.cts +4 -1
- package/lib/resources/vertex_accounts.d.ts +1 -1
- package/lib/resources/voids.d.cts +4 -1
- package/lib/resources/voids.d.ts +1 -1
- package/lib/resources/webhooks.d.cts +4 -1
- package/lib/resources/webhooks.d.ts +1 -1
- package/lib/resources/wire_transfers.d.cts +4 -1
- package/lib/resources/wire_transfers.d.ts +1 -1
- package/lib/static.cjs +3 -3
- package/lib/static.d.cts +1 -1
- package/lib/static.d.ts +1 -1
- package/lib/static.js +2 -2
- package/package.json +9 -9
- package/lib/chunk-3LTCO2OB.cjs.map +0 -1
- package/lib/chunk-465K3KVE.js.map +0 -1
- package/lib/chunk-5U5QLF2Z.js.map +0 -1
- package/lib/chunk-6PWK52UZ.cjs.map +0 -1
- package/lib/chunk-7GVHCOUC.js.map +0 -1
- package/lib/chunk-7ISS2FDY.js.map +0 -1
- package/lib/chunk-7X36B7N6.js.map +0 -1
- package/lib/chunk-ANCLAYJV.cjs.map +0 -1
- package/lib/chunk-BBEMCANC.cjs.map +0 -1
- package/lib/chunk-BF7OPORP.js.map +0 -1
- package/lib/chunk-BOPK7T5K.js.map +0 -1
- package/lib/chunk-DTGODPCN.js.map +0 -1
- package/lib/chunk-EHWAGYNX.js.map +0 -1
- package/lib/chunk-EKGR3EB3.js.map +0 -1
- package/lib/chunk-EQD223JW.cjs.map +0 -1
- package/lib/chunk-FKDKRSPO.js.map +0 -1
- package/lib/chunk-HAAE23MQ.js.map +0 -1
- package/lib/chunk-HLCGKY7R.js.map +0 -1
- package/lib/chunk-HQ35KQFG.cjs.map +0 -1
- package/lib/chunk-HSILJQCD.js.map +0 -1
- package/lib/chunk-IDAOX5RB.cjs.map +0 -1
- package/lib/chunk-INZD34YD.cjs.map +0 -1
- package/lib/chunk-JENLN6VJ.js.map +0 -1
- package/lib/chunk-JN4JL4WT.cjs.map +0 -1
- package/lib/chunk-JRYILJJY.cjs.map +0 -1
- package/lib/chunk-KBN3FFXD.cjs.map +0 -1
- package/lib/chunk-KJAD45RP.cjs.map +0 -1
- package/lib/chunk-LCLXLB2R.cjs.map +0 -1
- package/lib/chunk-LEWK7QET.cjs.map +0 -1
- package/lib/chunk-M2ZERG2X.cjs.map +0 -1
- package/lib/chunk-M55NSZVW.js.map +0 -1
- package/lib/chunk-MPSHBMZS.js.map +0 -1
- package/lib/chunk-N6MHUHGE.cjs.map +0 -1
- package/lib/chunk-NJQDJCFB.cjs.map +0 -1
- package/lib/chunk-NMVACSMG.js.map +0 -1
- package/lib/chunk-OPQJPXLM.cjs.map +0 -1
- package/lib/chunk-P3NADEGE.cjs.map +0 -1
- package/lib/chunk-QHRQCFDB.js.map +0 -1
- package/lib/chunk-ROPOLXIV.js.map +0 -1
- package/lib/chunk-RWPFE3LF.cjs.map +0 -1
- package/lib/chunk-SN6BP777.js.map +0 -1
- package/lib/chunk-VDZUWCIN.cjs.map +0 -1
- package/lib/chunk-VMJUXZ67.cjs.map +0 -1
- package/lib/chunk-WBPEFNL7.cjs.map +0 -1
- package/lib/chunk-YUGZUUAU.js.map +0 -1
- package/lib/chunk-ZFG533LP.js.map +0 -1
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"sources":["../src/resources/price_list_schedulers.ts"],"names":[],"mappings":";;;AAmIA,IAAM,mBAAA,GAAN,MAAM,oBAAA,SAA4B,WAAgC,CAAA;AAAA,EAEjE,OAAgB,IAA+B,GAAA,uBAAA;AAAA,EAE/C,MAAM,MAAA,CAAO,QAAoC,EAAA,MAAA,EAAkD,OAAwD,EAAA;AAC1J,IAAO,OAAA,IAAA,CAAK,SAAU,CAAA,MAAA,CAAqD,EAAE,GAAG,QAAU,EAAA,IAAA,EAAM,oBAAoB,CAAA,IAAA,EAAQ,EAAA,MAAA,EAAQ,OAAO,CAAA;AAAA;AAC5I,EAEA,MAAM,MAAA,CAAO,QAAoC,EAAA,MAAA,EAAkD,OAAwD,EAAA;AAC1J,IAAO,OAAA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GAAG,CAAA;AAAA;AACjE,EAGA,IAA+B,GAAA;AAC9B,IAAA,OAAO,oBAAoB,CAAA,IAAA;AAAA;AAG7B,CAAA;AAGA,IAAM,QAAA,GAAW,IAAI,mBAAoB,EAAA;AACzC,IAAO,6BAAQ,GAAA","file":"chunk-WP3L72CW.js","sourcesContent":["import { ApiResource } from '../resource'\nimport type { Resource, ResourceCreate, ResourceUpdate, ResourceId, ResourcesConfig, ResourceRel, ListResponse, ResourceSort, /* ResourceFilter */ } from '../resource'\nimport type { QueryParamsRetrieve, QueryParamsList } from '../query'\n\nimport type { Market, MarketType } from './markets'\nimport type { PriceList, PriceListType } from './price_lists'\nimport type { Event } from './events'\nimport type { Version } from './versions'\n\n\ntype PriceListSchedulerType = 'price_list_schedulers'\ntype PriceListSchedulerRel = ResourceRel & { type: PriceListSchedulerType }\ntype MarketRel = ResourceRel & { type: MarketType }\ntype PriceListRel = ResourceRel & { type: PriceListType }\n\n\nexport type PriceListSchedulerSort = Pick<PriceListScheduler, 'id' | 'name' | 'starts_at' | 'expires_at' | 'disabled_at'> & ResourceSort\n// export type PriceListSchedulerFilter = Pick<PriceListScheduler, 'id' | 'name' | 'starts_at' | 'expires_at' | 'disabled_at'> & ResourceFilter\n\n\ninterface PriceListScheduler extends Resource {\n\t\n\treadonly type: PriceListSchedulerType\n\n\t/** \n\t * The price list scheduler's internal name.\n\t * @example ```\"FW SALE 2023\"```\n\t */\n\tname: string\n\t/** \n\t * The activation date/time of this price list scheduler.\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 price list scheduler (must be after starts_at).\n\t * @example ```\"2018-01-02T12:00:00.000Z\"```\n\t */\n\texpires_at: string\n\t/** \n\t * Indicates if the price list scheduler is active (enabled and not expired).\n\t * @example ```true```\n\t */\n\tactive?: boolean | null\n\t/** \n\t * The price list scheduler status. One of 'disabled', 'expired', 'pending', or 'active'.\n\t * @example ```\"pending\"```\n\t */\n\tstatus?: 'disabled' | 'expired' | 'pending' | 'active' | null\n\t/** \n\t * Time at which this resource was disabled.\n\t * @example ```\"2018-01-01T12:00:00.000Z\"```\n\t */\n\tdisabled_at?: string | null\n\n\tmarket?: Market | null\n\tprice_list?: PriceList | null\n\tevents?: Event[] | null\n\tversions?: Version[] | null\n\n}\n\n\ninterface PriceListSchedulerCreate extends ResourceCreate {\n\t\n\t/** \n\t * The price list scheduler's internal name.\n\t * @example ```\"FW SALE 2023\"```\n\t */\n\tname: string\n\t/** \n\t * The activation date/time of this price list scheduler.\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 price list scheduler (must be after starts_at).\n\t * @example ```\"2018-01-02T12:00:00.000Z\"```\n\t */\n\texpires_at: string\n\t/** \n\t * Send this attribute if you want to mark this resource as disabled.\n\t * @example ```true```\n\t */\n\t_disable?: boolean | null\n\t/** \n\t * Send this attribute if you want to mark this resource as enabled.\n\t * @example ```true```\n\t */\n\t_enable?: boolean | null\n\n\tmarket: MarketRel\n\tprice_list: PriceListRel\n\n}\n\n\ninterface PriceListSchedulerUpdate extends ResourceUpdate {\n\t\n\t/** \n\t * The price list scheduler's internal name.\n\t * @example ```\"FW SALE 2023\"```\n\t */\n\tname?: string | null\n\t/** \n\t * The activation date/time of this price list scheduler.\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 price list scheduler (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 * Send this attribute if you want to mark this resource as disabled.\n\t * @example ```true```\n\t */\n\t_disable?: boolean | null\n\t/** \n\t * Send this attribute if you want to mark this resource as enabled.\n\t * @example ```true```\n\t */\n\t_enable?: boolean | null\n\n\tmarket?: MarketRel | null\n\tprice_list?: PriceListRel | null\n\n}\n\n\nclass PriceListSchedulers extends ApiResource<PriceListScheduler> {\n\n\tstatic readonly TYPE: PriceListSchedulerType = 'price_list_schedulers' as const\n\n\tasync create(resource: PriceListSchedulerCreate, params?: QueryParamsRetrieve<PriceListScheduler>, options?: ResourcesConfig): Promise<PriceListScheduler> {\n\t\treturn this.resources.create<PriceListSchedulerCreate, PriceListScheduler>({ ...resource, type: PriceListSchedulers.TYPE }, params, options)\n\t}\n\n\tasync update(resource: PriceListSchedulerUpdate, params?: QueryParamsRetrieve<PriceListScheduler>, options?: ResourcesConfig): Promise<PriceListScheduler> {\n\t\treturn this.resources.update<PriceListSchedulerUpdate, PriceListScheduler>({ ...resource, type: PriceListSchedulers.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: PriceListSchedulers.TYPE } : id, options)\n\t}\n\n\tasync market(priceListSchedulerId: string | PriceListScheduler, params?: QueryParamsRetrieve<Market>, options?: ResourcesConfig): Promise<Market> {\n\t\tconst _priceListSchedulerId = (priceListSchedulerId as PriceListScheduler).id || priceListSchedulerId as string\n\t\treturn this.resources.fetch<Market>({ type: 'markets' }, `price_list_schedulers/${_priceListSchedulerId}/market`, params, options) as unknown as Market\n\t}\n\n\tasync price_list(priceListSchedulerId: string | PriceListScheduler, params?: QueryParamsRetrieve<PriceList>, options?: ResourcesConfig): Promise<PriceList> {\n\t\tconst _priceListSchedulerId = (priceListSchedulerId as PriceListScheduler).id || priceListSchedulerId as string\n\t\treturn this.resources.fetch<PriceList>({ type: 'price_lists' }, `price_list_schedulers/${_priceListSchedulerId}/price_list`, params, options) as unknown as PriceList\n\t}\n\n\tasync events(priceListSchedulerId: string | PriceListScheduler, params?: QueryParamsList<Event>, options?: ResourcesConfig): Promise<ListResponse<Event>> {\n\t\tconst _priceListSchedulerId = (priceListSchedulerId as PriceListScheduler).id || priceListSchedulerId as string\n\t\treturn this.resources.fetch<Event>({ type: 'events' }, `price_list_schedulers/${_priceListSchedulerId}/events`, params, options) as unknown as ListResponse<Event>\n\t}\n\n\tasync versions(priceListSchedulerId: string | PriceListScheduler, params?: QueryParamsList<Version>, options?: ResourcesConfig): Promise<ListResponse<Version>> {\n\t\tconst _priceListSchedulerId = (priceListSchedulerId as PriceListScheduler).id || priceListSchedulerId as string\n\t\treturn this.resources.fetch<Version>({ type: 'versions' }, `price_list_schedulers/${_priceListSchedulerId}/versions`, params, options) as unknown as ListResponse<Version>\n\t}\n\n\tasync _disable(id: string | PriceListScheduler, params?: QueryParamsRetrieve<PriceListScheduler>, options?: ResourcesConfig): Promise<PriceListScheduler> {\n\t\treturn this.resources.update<PriceListSchedulerUpdate, PriceListScheduler>({ id: (typeof id === 'string')? id: id.id, type: PriceListSchedulers.TYPE, _disable: true }, params, options)\n\t}\n\n\tasync _enable(id: string | PriceListScheduler, params?: QueryParamsRetrieve<PriceListScheduler>, options?: ResourcesConfig): Promise<PriceListScheduler> {\n\t\treturn this.resources.update<PriceListSchedulerUpdate, PriceListScheduler>({ id: (typeof id === 'string')? id: id.id, type: PriceListSchedulers.TYPE, _enable: true }, params, options)\n\t}\n\n\n\tisPriceListScheduler(resource: any): resource is PriceListScheduler {\n\t\treturn resource.type && (resource.type === PriceListSchedulers.TYPE)\n\t}\n\n\n\trelationship(id: string | ResourceId | null): PriceListSchedulerRel {\n\t\treturn super.relationshipOneToOne<PriceListSchedulerRel>(id)\n\t}\n\n\trelationshipToMany(...ids: string[]): PriceListSchedulerRel[] {\n\t\treturn super.relationshipOneToMany<PriceListSchedulerRel>(...ids)\n\t}\n\n\n\ttype(): PriceListSchedulerType {\n\t\treturn PriceListSchedulers.TYPE\n\t}\n\n}\n\n\nconst instance = new PriceListSchedulers()\nexport default instance\n\nexport type { PriceListSchedulers, PriceListScheduler, PriceListSchedulerCreate, PriceListSchedulerUpdate, PriceListSchedulerType }\n"]}
|
1
|
+
{"version":3,"sources":["../src/resources/price_list_schedulers.ts"],"names":[],"mappings":";;;AAmIA,IAAM,mBAAA,GAAN,MAAM,oBAA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A,GAAW,EAAA,GAAI,EAAA,CAAG,EAAA,EAAI,MAAM,oBAAA,CAAoB,IAAA,EAAM,SAAS,IAAA,EAAK,EAAG,QAAQ,OAAO,CAAA;AAAA,EACvL;AAAA,EAGA,qBAAqB,QAAA,EAA+C;AACnE,IAAA,OAAO,QAAA,CAAS,IAAA,IAAS,QAAA,CAAS,IAAA,KAAS,oBAAA,CAAoB,IAAA;AAAA,EAChE;AAAA,EAGA,aAAa,EAAA,EAAuD;AACnE,IAAA,OAAO,KAAA,CAAM,qBAA4C,EAAE,CAAA;AAAA,EAC5D;AAAA,EAEA,sBAAsB,GAAA,EAAwC;AAC7D,IAAA,OAAO,KAAA,CAAM,qBAAA,CAA6C,GAAG,GAAG,CAAA;AAAA,EACjE;AAAA,EAGA,IAAA,GAA+B;AAC9B,IAAA,OAAO,oBAAA,CAAoB,IAAA;AAAA,EAC5B;AAED,CAAA;AAGA,IAAM,QAAA,GAAW,IAAI,mBAAA,EAAoB;AACzC,IAAO,6BAAA,GAAQ","file":"chunk-WP3L72CW.js","sourcesContent":["import { ApiResource } from '../resource'\nimport type { Resource, ResourceCreate, ResourceUpdate, ResourceId, ResourcesConfig, ResourceRel, ListResponse, ResourceSort, /* ResourceFilter */ } from '../resource'\nimport type { QueryParamsRetrieve, QueryParamsList } from '../query'\n\nimport type { Market, MarketType } from './markets'\nimport type { PriceList, PriceListType } from './price_lists'\nimport type { Event } from './events'\nimport type { Version } from './versions'\n\n\ntype PriceListSchedulerType = 'price_list_schedulers'\ntype PriceListSchedulerRel = ResourceRel & { type: PriceListSchedulerType }\ntype MarketRel = ResourceRel & { type: MarketType }\ntype PriceListRel = ResourceRel & { type: PriceListType }\n\n\nexport type PriceListSchedulerSort = Pick<PriceListScheduler, 'id' | 'name' | 'starts_at' | 'expires_at' | 'disabled_at'> & ResourceSort\n// export type PriceListSchedulerFilter = Pick<PriceListScheduler, 'id' | 'name' | 'starts_at' | 'expires_at' | 'disabled_at'> & ResourceFilter\n\n\ninterface PriceListScheduler extends Resource {\n\t\n\treadonly type: PriceListSchedulerType\n\n\t/** \n\t * The price list scheduler's internal name.\n\t * @example ```\"FW SALE 2023\"```\n\t */\n\tname: string\n\t/** \n\t * The activation date/time of this price list scheduler.\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 price list scheduler (must be after starts_at).\n\t * @example ```\"2018-01-02T12:00:00.000Z\"```\n\t */\n\texpires_at: string\n\t/** \n\t * Indicates if the price list scheduler is active (enabled and not expired).\n\t * @example ```true```\n\t */\n\tactive?: boolean | null\n\t/** \n\t * The price list scheduler status. One of 'disabled', 'expired', 'pending', or 'active'.\n\t * @example ```\"pending\"```\n\t */\n\tstatus?: 'disabled' | 'expired' | 'pending' | 'active' | null\n\t/** \n\t * Time at which this resource was disabled.\n\t * @example ```\"2018-01-01T12:00:00.000Z\"```\n\t */\n\tdisabled_at?: string | null\n\n\tmarket?: Market | null\n\tprice_list?: PriceList | null\n\tevents?: Event[] | null\n\tversions?: Version[] | null\n\n}\n\n\ninterface PriceListSchedulerCreate extends ResourceCreate {\n\t\n\t/** \n\t * The price list scheduler's internal name.\n\t * @example ```\"FW SALE 2023\"```\n\t */\n\tname: string\n\t/** \n\t * The activation date/time of this price list scheduler.\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 price list scheduler (must be after starts_at).\n\t * @example ```\"2018-01-02T12:00:00.000Z\"```\n\t */\n\texpires_at: string\n\t/** \n\t * Send this attribute if you want to mark this resource as disabled.\n\t * @example ```true```\n\t */\n\t_disable?: boolean | null\n\t/** \n\t * Send this attribute if you want to mark this resource as enabled.\n\t * @example ```true```\n\t */\n\t_enable?: boolean | null\n\n\tmarket: MarketRel\n\tprice_list: PriceListRel\n\n}\n\n\ninterface PriceListSchedulerUpdate extends ResourceUpdate {\n\t\n\t/** \n\t * The price list scheduler's internal name.\n\t * @example ```\"FW SALE 2023\"```\n\t */\n\tname?: string | null\n\t/** \n\t * The activation date/time of this price list scheduler.\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 price list scheduler (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 * Send this attribute if you want to mark this resource as disabled.\n\t * @example ```true```\n\t */\n\t_disable?: boolean | null\n\t/** \n\t * Send this attribute if you want to mark this resource as enabled.\n\t * @example ```true```\n\t */\n\t_enable?: boolean | null\n\n\tmarket?: MarketRel | null\n\tprice_list?: PriceListRel | null\n\n}\n\n\nclass PriceListSchedulers extends ApiResource<PriceListScheduler> {\n\n\tstatic readonly TYPE: PriceListSchedulerType = 'price_list_schedulers' as const\n\n\tasync create(resource: PriceListSchedulerCreate, params?: QueryParamsRetrieve<PriceListScheduler>, options?: ResourcesConfig): Promise<PriceListScheduler> {\n\t\treturn this.resources.create<PriceListSchedulerCreate, PriceListScheduler>({ ...resource, type: PriceListSchedulers.TYPE }, params, options)\n\t}\n\n\tasync update(resource: PriceListSchedulerUpdate, params?: QueryParamsRetrieve<PriceListScheduler>, options?: ResourcesConfig): Promise<PriceListScheduler> {\n\t\treturn this.resources.update<PriceListSchedulerUpdate, PriceListScheduler>({ ...resource, type: PriceListSchedulers.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: PriceListSchedulers.TYPE } : id, options)\n\t}\n\n\tasync market(priceListSchedulerId: string | PriceListScheduler, params?: QueryParamsRetrieve<Market>, options?: ResourcesConfig): Promise<Market> {\n\t\tconst _priceListSchedulerId = (priceListSchedulerId as PriceListScheduler).id || priceListSchedulerId as string\n\t\treturn this.resources.fetch<Market>({ type: 'markets' }, `price_list_schedulers/${_priceListSchedulerId}/market`, params, options) as unknown as Market\n\t}\n\n\tasync price_list(priceListSchedulerId: string | PriceListScheduler, params?: QueryParamsRetrieve<PriceList>, options?: ResourcesConfig): Promise<PriceList> {\n\t\tconst _priceListSchedulerId = (priceListSchedulerId as PriceListScheduler).id || priceListSchedulerId as string\n\t\treturn this.resources.fetch<PriceList>({ type: 'price_lists' }, `price_list_schedulers/${_priceListSchedulerId}/price_list`, params, options) as unknown as PriceList\n\t}\n\n\tasync events(priceListSchedulerId: string | PriceListScheduler, params?: QueryParamsList<Event>, options?: ResourcesConfig): Promise<ListResponse<Event>> {\n\t\tconst _priceListSchedulerId = (priceListSchedulerId as PriceListScheduler).id || priceListSchedulerId as string\n\t\treturn this.resources.fetch<Event>({ type: 'events' }, `price_list_schedulers/${_priceListSchedulerId}/events`, params, options) as unknown as ListResponse<Event>\n\t}\n\n\tasync versions(priceListSchedulerId: string | PriceListScheduler, params?: QueryParamsList<Version>, options?: ResourcesConfig): Promise<ListResponse<Version>> {\n\t\tconst _priceListSchedulerId = (priceListSchedulerId as PriceListScheduler).id || priceListSchedulerId as string\n\t\treturn this.resources.fetch<Version>({ type: 'versions' }, `price_list_schedulers/${_priceListSchedulerId}/versions`, params, options) as unknown as ListResponse<Version>\n\t}\n\n\tasync _disable(id: string | PriceListScheduler, params?: QueryParamsRetrieve<PriceListScheduler>, options?: ResourcesConfig): Promise<PriceListScheduler> {\n\t\treturn this.resources.update<PriceListSchedulerUpdate, PriceListScheduler>({ id: (typeof id === 'string')? id: id.id, type: PriceListSchedulers.TYPE, _disable: true }, params, options)\n\t}\n\n\tasync _enable(id: string | PriceListScheduler, params?: QueryParamsRetrieve<PriceListScheduler>, options?: ResourcesConfig): Promise<PriceListScheduler> {\n\t\treturn this.resources.update<PriceListSchedulerUpdate, PriceListScheduler>({ id: (typeof id === 'string')? id: id.id, type: PriceListSchedulers.TYPE, _enable: true }, params, options)\n\t}\n\n\n\tisPriceListScheduler(resource: any): resource is PriceListScheduler {\n\t\treturn resource.type && (resource.type === PriceListSchedulers.TYPE)\n\t}\n\n\n\trelationship(id: string | ResourceId | null): PriceListSchedulerRel {\n\t\treturn super.relationshipOneToOne<PriceListSchedulerRel>(id)\n\t}\n\n\trelationshipToMany(...ids: string[]): PriceListSchedulerRel[] {\n\t\treturn super.relationshipOneToMany<PriceListSchedulerRel>(...ids)\n\t}\n\n\n\ttype(): PriceListSchedulerType {\n\t\treturn PriceListSchedulers.TYPE\n\t}\n\n}\n\n\nconst instance = new PriceListSchedulers()\nexport default instance\n\nexport type { PriceListSchedulers, PriceListScheduler, PriceListSchedulerCreate, PriceListSchedulerUpdate, PriceListSchedulerType }\n"]}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"sources":["../src/resources/authorizations.ts"],"names":[],"mappings":";;;AA6MA,IAAM,cAAA,GAAN,MAAM,eAAA,SAAuB,WAA2B,CAAA;AAAA,EAEvD,OAAgB,IAA0B,GAAA,gBAAA;AAAA,EAE1C,MAAM,MAAA,CAAO,QAA+B,EAAA,MAAA,EAA6C,OAAmD,EAAA;AAC3I,IAAO,OAAA,IAAA,CAAK,SAAU,CAAA,MAAA,CAA2C,EAAE,GAAG,QAAU,EAAA,IAAA,EAAM,eAAe,CAAA,IAAA,EAAQ,EAAA,MAAA,EAAQ,OAAO,CAAA;AAAA;AAC7H,EAEA,MAAM,KAAA,CAAM,eAAyC,EAAA,MAAA,EAAqC,OAA2C,EAAA;AACpI,IAAM,MAAA,gBAAA,GAAoB,gBAAkC,EAAM,IAAA,eAAA;AAClE,IAAO,OAAA,IAAA,CAAK,SAAU,CAAA,KAAA,CAAa,EAAE,IAAA,EAAM,QAAS,EAAA,EAAG,CAAkB,eAAA,EAAA,gBAAgB,CAAU,MAAA,CAAA,EAAA,MAAA,EAAQ,OAAO,CAAA;AAAA;AACnH,EAEA,MAAM,WAAA,CAAY,eAAyC,EAAA,MAAA,EAAsC,OAA8D,EAAA;AAC9J,IAAM,MAAA,gBAAA,GAAoB,gBAAkC,EAAM,IAAA,eAAA;AAClE,IAAO,OAAA,IAAA,CAAK,SAAU,CAAA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AAA;AAAA;AACtK,EAEA,MAAM,OAAA,CAAQ,EAA4B,EAAA,MAAA,EAA6C,OAAmD,EAAA;AACzI,IAAA,OAAO,KAAK,SAAU,CAAA,MAAA,CAA2C,EAAE,EAAK,EAAA,OAAO,OAAO,QAAW,GAAA,EAAA,GAAI,EAAG,CAAA,EAAA,EAAI,MAAM,eAAe,CAAA,IAAA,EAAM,SAAS,IAAK,EAAA,EAAG,QAAQ,OAAO,CAAA;AAAA;AACxK,EAGA,gBAAgB,QAA0C,EAAA;AACzD,IAAA,OAAO,QAAS,CAAA,IAAA,IAAS,QAAS,CAAA,IAAA,KAAS,eAAe,CAAA,IAAA;AAAA;AAC3D,EAGA,aAAa,EAAkD,EAAA;AAC9D,IAAO,OAAA,KAAA,CAAM,qBAAuC,EAAE,CAAA;AAAA;AACvD,EAEA,sBAAsB,GAAmC,EAAA;AACxD,IAAO,OAAA,KAAA,CAAM,qBAAwC,CAAA,GAAG,GAAG,CAAA;AAAA;AAC5D,EAGA,IAA0B,GAAA;AACzB,IAAA,OAAO,eAAe,CAAA,IAAA;AAAA;AAGxB,CAAA;AAGA,IAAM,QAAA,GAAW,IAAI,cAAe,EAAA;AACpC,IAAO,sBAAQ,GAAA","file":"chunk-WTHX574O.js","sourcesContent":["import { ApiResource } from '../resource'\nimport type { Resource, ResourceUpdate, ResourceId, ResourcesConfig, ResourceRel, ListResponse, ResourceSort, /* ResourceFilter */ } from '../resource'\nimport type { QueryParamsRetrieve, QueryParamsList } from '../query'\n\nimport type { Order } from './orders'\nimport type { Attachment } from './attachments'\nimport type { Event } from './events'\nimport type { Version } from './versions'\nimport type { Capture } from './captures'\nimport type { Void } from './voids'\nimport type { AdyenPayment } from './adyen_payments'\nimport type { AxervePayment } from './axerve_payments'\nimport type { BraintreePayment } from './braintree_payments'\nimport type { CheckoutComPayment } from './checkout_com_payments'\nimport type { ExternalPayment } from './external_payments'\nimport type { KlarnaPayment } from './klarna_payments'\nimport type { PaypalPayment } from './paypal_payments'\nimport type { SatispayPayment } from './satispay_payments'\nimport type { StripePayment } from './stripe_payments'\nimport type { WireTransfer } from './wire_transfers'\n\n\ntype AuthorizationType = 'authorizations'\ntype AuthorizationRel = ResourceRel & { type: AuthorizationType }\n\n\nexport type AuthorizationSort = Pick<Authorization, 'id' | 'number' | 'amount_cents'> & ResourceSort\n// export type AuthorizationFilter = Pick<Authorization, 'id' | 'number' | 'currency_code' | 'amount_cents' | 'succeeded' | 'message' | 'error_code' | 'error_detail' | 'token' | 'gateway_transaction_id'> & ResourceFilter\n\n\ninterface Authorization extends Resource {\n\t\n\treadonly type: AuthorizationType\n\n\t/** \n\t * The transaction number, auto generated.\n\t * @example ```\"42/T/001\"```\n\t */\n\tnumber: string\n\t/** \n\t * The international 3-letter currency code as defined by the ISO 4217 standard, inherited from the associated order.\n\t * @example ```\"EUR\"```\n\t */\n\tcurrency_code: string\n\t/** \n\t * The transaction amount, in cents.\n\t * @example ```1500```\n\t */\n\tamount_cents: number\n\t/** \n\t * The transaction amount, float.\n\t * @example ```15```\n\t */\n\tamount_float: number\n\t/** \n\t * The transaction amount, formatted.\n\t * @example ```\"€15,00\"```\n\t */\n\tformatted_amount: string\n\t/** \n\t * Indicates if the transaction is successful.\n\t */\n\tsucceeded: boolean\n\t/** \n\t * The message returned by the payment gateway.\n\t * @example ```\"Accepted\"```\n\t */\n\tmessage?: string | null\n\t/** \n\t * The error code, if any, returned by the payment gateway.\n\t * @example ```\"00001\"```\n\t */\n\terror_code?: string | null\n\t/** \n\t * The error detail, if any, returned by the payment gateway.\n\t * @example ```\"Already settled\"```\n\t */\n\terror_detail?: string | null\n\t/** \n\t * The token identifying the transaction, returned by the payment gateway.\n\t * @example ```\"xxxx-yyyy-zzzz\"```\n\t */\n\ttoken?: string | null\n\t/** \n\t * The ID identifying the transaction, returned by the payment gateway.\n\t * @example ```\"xxxx-yyyy-zzzz\"```\n\t */\n\tgateway_transaction_id?: string | null\n\t/** \n\t * The CVV code returned by the payment gateway.\n\t * @example ```\"000\"```\n\t */\n\tcvv_code?: string | null\n\t/** \n\t * The CVV message returned by the payment gateway.\n\t * @example ```\"validated\"```\n\t */\n\tcvv_message?: string | null\n\t/** \n\t * The AVS code returned by the payment gateway.\n\t * @example ```\"000\"```\n\t */\n\tavs_code?: string | null\n\t/** \n\t * The AVS message returned by the payment gateway.\n\t * @example ```\"validated\"```\n\t */\n\tavs_message?: string | null\n\t/** \n\t * The fraud review message, if any, returned by the payment gateway.\n\t * @example ```\"passed\"```\n\t */\n\tfraud_review?: string | null\n\t/** \n\t * The amount to be captured, in cents.\n\t * @example ```500```\n\t */\n\tcapture_amount_cents?: number | null\n\t/** \n\t * The amount to be captured, float.\n\t * @example ```5```\n\t */\n\tcapture_amount_float?: number | null\n\t/** \n\t * The amount to be captured, formatted.\n\t * @example ```\"€5,00\"```\n\t */\n\tformatted_capture_amount?: string | null\n\t/** \n\t * The balance to be captured, in cents.\n\t * @example ```1000```\n\t */\n\tcapture_balance_cents?: number | null\n\t/** \n\t * The balance to be captured, float.\n\t * @example ```10```\n\t */\n\tcapture_balance_float?: number | null\n\t/** \n\t * The balance to be captured, formatted.\n\t * @example ```\"€10,00\"```\n\t */\n\tformatted_capture_balance?: string | null\n\t/** \n\t * The balance to be voided, in cents.\n\t * @example ```1500```\n\t */\n\tvoid_balance_cents?: number | null\n\t/** \n\t * The balance to be voided, float.\n\t * @example ```15```\n\t */\n\tvoid_balance_float?: number | null\n\t/** \n\t * The balance to be voided, formatted.\n\t * @example ```\"€15,00\"```\n\t */\n\tformatted_void_balance?: string | null\n\n\torder?: Order | null\n\tpayment_source?: AdyenPayment | AxervePayment | BraintreePayment | CheckoutComPayment | ExternalPayment | KlarnaPayment | PaypalPayment | SatispayPayment | StripePayment | WireTransfer | null\n\tattachments?: Attachment[] | null\n\tevents?: Event[] | null\n\tversions?: Version[] | null\n\tcaptures?: Capture[] | null\n\tvoids?: Void[] | null\n\n}\n\n\ninterface AuthorizationUpdate extends ResourceUpdate {\n\t\n\t/** \n\t * Indicates if the transaction is successful.\n\t */\n\tsucceeded?: boolean | null\n\t/** \n\t * Send this attribute if you want to forward a stuck transaction to succeeded and update associated order states accordingly.\n\t * @example ```true```\n\t */\n\t_forward?: boolean | null\n\t/** \n\t * Send this attribute if you want to create a capture for this authorization.\n\t * @example ```true```\n\t */\n\t_capture?: boolean | null\n\t/** \n\t * Send this attribute as a value in cents if you want to overwrite the amount to be captured.\n\t * @example ```500```\n\t */\n\t_capture_amount_cents?: number | null\n\t/** \n\t * Send this attribute if you want to create a void for this authorization.\n\t * @example ```true```\n\t */\n\t_void?: boolean | null\n\t/** \n\t * Send this attribute if you want to void a succeeded authorization of a pending order (which is left unpaid).\n\t * @example ```true```\n\t */\n\t_cancel?: boolean | null\n\t\n}\n\n\nclass Authorizations extends ApiResource<Authorization> {\n\n\tstatic readonly TYPE: AuthorizationType = 'authorizations' as const\n\n\tasync update(resource: AuthorizationUpdate, params?: QueryParamsRetrieve<Authorization>, options?: ResourcesConfig): Promise<Authorization> {\n\t\treturn this.resources.update<AuthorizationUpdate, Authorization>({ ...resource, type: Authorizations.TYPE }, params, options)\n\t}\n\n\tasync order(authorizationId: string | Authorization, params?: QueryParamsRetrieve<Order>, options?: ResourcesConfig): Promise<Order> {\n\t\tconst _authorizationId = (authorizationId as Authorization).id || authorizationId as string\n\t\treturn this.resources.fetch<Order>({ type: 'orders' }, `authorizations/${_authorizationId}/order`, params, options) as unknown as Order\n\t}\n\n\tasync attachments(authorizationId: string | Authorization, params?: QueryParamsList<Attachment>, options?: ResourcesConfig): Promise<ListResponse<Attachment>> {\n\t\tconst _authorizationId = (authorizationId as Authorization).id || authorizationId as string\n\t\treturn this.resources.fetch<Attachment>({ type: 'attachments' }, `authorizations/${_authorizationId}/attachments`, params, options) as unknown as ListResponse<Attachment>\n\t}\n\n\tasync events(authorizationId: string | Authorization, params?: QueryParamsList<Event>, options?: ResourcesConfig): Promise<ListResponse<Event>> {\n\t\tconst _authorizationId = (authorizationId as Authorization).id || authorizationId as string\n\t\treturn this.resources.fetch<Event>({ type: 'events' }, `authorizations/${_authorizationId}/events`, params, options) as unknown as ListResponse<Event>\n\t}\n\n\tasync versions(authorizationId: string | Authorization, params?: QueryParamsList<Version>, options?: ResourcesConfig): Promise<ListResponse<Version>> {\n\t\tconst _authorizationId = (authorizationId as Authorization).id || authorizationId as string\n\t\treturn this.resources.fetch<Version>({ type: 'versions' }, `authorizations/${_authorizationId}/versions`, params, options) as unknown as ListResponse<Version>\n\t}\n\n\tasync captures(authorizationId: string | Authorization, params?: QueryParamsList<Capture>, options?: ResourcesConfig): Promise<ListResponse<Capture>> {\n\t\tconst _authorizationId = (authorizationId as Authorization).id || authorizationId as string\n\t\treturn this.resources.fetch<Capture>({ type: 'captures' }, `authorizations/${_authorizationId}/captures`, params, options) as unknown as ListResponse<Capture>\n\t}\n\n\tasync voids(authorizationId: string | Authorization, params?: QueryParamsList<Void>, options?: ResourcesConfig): Promise<ListResponse<Void>> {\n\t\tconst _authorizationId = (authorizationId as Authorization).id || authorizationId as string\n\t\treturn this.resources.fetch<Void>({ type: 'voids' }, `authorizations/${_authorizationId}/voids`, params, options) as unknown as ListResponse<Void>\n\t}\n\n\tasync _forward(id: string | Authorization, params?: QueryParamsRetrieve<Authorization>, options?: ResourcesConfig): Promise<Authorization> {\n\t\treturn this.resources.update<AuthorizationUpdate, Authorization>({ id: (typeof id === 'string')? id: id.id, type: Authorizations.TYPE, _forward: true }, params, options)\n\t}\n\n\tasync _capture(id: string | Authorization, params?: QueryParamsRetrieve<Authorization>, options?: ResourcesConfig): Promise<Authorization> {\n\t\treturn this.resources.update<AuthorizationUpdate, Authorization>({ id: (typeof id === 'string')? id: id.id, type: Authorizations.TYPE, _capture: true }, params, options)\n\t}\n\n\tasync _capture_amount_cents(id: string | Authorization, triggerValue: number, params?: QueryParamsRetrieve<Authorization>, options?: ResourcesConfig): Promise<Authorization> {\n\t\treturn this.resources.update<AuthorizationUpdate, Authorization>({ id: (typeof id === 'string')? id: id.id, type: Authorizations.TYPE, _capture_amount_cents: triggerValue }, params, options)\n\t}\n\n\tasync _void(id: string | Authorization, params?: QueryParamsRetrieve<Authorization>, options?: ResourcesConfig): Promise<Authorization> {\n\t\treturn this.resources.update<AuthorizationUpdate, Authorization>({ id: (typeof id === 'string')? id: id.id, type: Authorizations.TYPE, _void: true }, params, options)\n\t}\n\n\tasync _cancel(id: string | Authorization, params?: QueryParamsRetrieve<Authorization>, options?: ResourcesConfig): Promise<Authorization> {\n\t\treturn this.resources.update<AuthorizationUpdate, Authorization>({ id: (typeof id === 'string')? id: id.id, type: Authorizations.TYPE, _cancel: true }, params, options)\n\t}\n\n\n\tisAuthorization(resource: any): resource is Authorization {\n\t\treturn resource.type && (resource.type === Authorizations.TYPE)\n\t}\n\n\n\trelationship(id: string | ResourceId | null): AuthorizationRel {\n\t\treturn super.relationshipOneToOne<AuthorizationRel>(id)\n\t}\n\n\trelationshipToMany(...ids: string[]): AuthorizationRel[] {\n\t\treturn super.relationshipOneToMany<AuthorizationRel>(...ids)\n\t}\n\n\n\ttype(): AuthorizationType {\n\t\treturn Authorizations.TYPE\n\t}\n\n}\n\n\nconst instance = new Authorizations()\nexport default instance\n\nexport type { Authorizations, Authorization, AuthorizationUpdate, AuthorizationType }\n"]}
|
1
|
+
{"version":3,"sources":["../src/resources/authorizations.ts"],"names":[],"mappings":";;;AA6MA,IAAM,cAAA,GAAN,MAAM,eAAA,SAAuB,WAAA,CAA2B;AAAA,EAEvD,OAAgB,IAAA,GAA0B,gBAAA;AAAA,EAE1C,MAAM,MAAA,CAAO,QAAA,EAA+B,MAAA,EAA6C,OAAA,EAAmD;AAC3I,IAAA,OAAO,IAAA,CAAK,SAAA,CAAU,MAAA,CAA2C,EAAE,GAAG,QAAA,EAAU,IAAA,EAAM,eAAA,CAAe,IAAA,EAAK,EAAG,MAAA,EAAQ,OAAO,CAAA;AAAA,EAC7H;AAAA,EAEA,MAAM,KAAA,CAAM,eAAA,EAAyC,MAAA,EAAqC,OAAA,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,IAAO,sBAAA,GAAQ","file":"chunk-WTHX574O.js","sourcesContent":["import { ApiResource } from '../resource'\nimport type { Resource, ResourceUpdate, ResourceId, ResourcesConfig, ResourceRel, ListResponse, ResourceSort, /* ResourceFilter */ } from '../resource'\nimport type { QueryParamsRetrieve, QueryParamsList } from '../query'\n\nimport type { Order } from './orders'\nimport type { Attachment } from './attachments'\nimport type { Event } from './events'\nimport type { Version } from './versions'\nimport type { Capture } from './captures'\nimport type { Void } from './voids'\nimport type { AdyenPayment } from './adyen_payments'\nimport type { AxervePayment } from './axerve_payments'\nimport type { BraintreePayment } from './braintree_payments'\nimport type { CheckoutComPayment } from './checkout_com_payments'\nimport type { ExternalPayment } from './external_payments'\nimport type { KlarnaPayment } from './klarna_payments'\nimport type { PaypalPayment } from './paypal_payments'\nimport type { SatispayPayment } from './satispay_payments'\nimport type { StripePayment } from './stripe_payments'\nimport type { WireTransfer } from './wire_transfers'\n\n\ntype AuthorizationType = 'authorizations'\ntype AuthorizationRel = ResourceRel & { type: AuthorizationType }\n\n\nexport type AuthorizationSort = Pick<Authorization, 'id' | 'number' | 'amount_cents'> & ResourceSort\n// export type AuthorizationFilter = Pick<Authorization, 'id' | 'number' | 'currency_code' | 'amount_cents' | 'succeeded' | 'message' | 'error_code' | 'error_detail' | 'token' | 'gateway_transaction_id'> & ResourceFilter\n\n\ninterface Authorization extends Resource {\n\t\n\treadonly type: AuthorizationType\n\n\t/** \n\t * The transaction number, auto generated.\n\t * @example ```\"42/T/001\"```\n\t */\n\tnumber: string\n\t/** \n\t * The international 3-letter currency code as defined by the ISO 4217 standard, inherited from the associated order.\n\t * @example ```\"EUR\"```\n\t */\n\tcurrency_code: string\n\t/** \n\t * The transaction amount, in cents.\n\t * @example ```1500```\n\t */\n\tamount_cents: number\n\t/** \n\t * The transaction amount, float.\n\t * @example ```15```\n\t */\n\tamount_float: number\n\t/** \n\t * The transaction amount, formatted.\n\t * @example ```\"€15,00\"```\n\t */\n\tformatted_amount: string\n\t/** \n\t * Indicates if the transaction is successful.\n\t */\n\tsucceeded: boolean\n\t/** \n\t * The message returned by the payment gateway.\n\t * @example ```\"Accepted\"```\n\t */\n\tmessage?: string | null\n\t/** \n\t * The error code, if any, returned by the payment gateway.\n\t * @example ```\"00001\"```\n\t */\n\terror_code?: string | null\n\t/** \n\t * The error detail, if any, returned by the payment gateway.\n\t * @example ```\"Already settled\"```\n\t */\n\terror_detail?: string | null\n\t/** \n\t * The token identifying the transaction, returned by the payment gateway.\n\t * @example ```\"xxxx-yyyy-zzzz\"```\n\t */\n\ttoken?: string | null\n\t/** \n\t * The ID identifying the transaction, returned by the payment gateway.\n\t * @example ```\"xxxx-yyyy-zzzz\"```\n\t */\n\tgateway_transaction_id?: string | null\n\t/** \n\t * The CVV code returned by the payment gateway.\n\t * @example ```\"000\"```\n\t */\n\tcvv_code?: string | null\n\t/** \n\t * The CVV message returned by the payment gateway.\n\t * @example ```\"validated\"```\n\t */\n\tcvv_message?: string | null\n\t/** \n\t * The AVS code returned by the payment gateway.\n\t * @example ```\"000\"```\n\t */\n\tavs_code?: string | null\n\t/** \n\t * The AVS message returned by the payment gateway.\n\t * @example ```\"validated\"```\n\t */\n\tavs_message?: string | null\n\t/** \n\t * The fraud review message, if any, returned by the payment gateway.\n\t * @example ```\"passed\"```\n\t */\n\tfraud_review?: string | null\n\t/** \n\t * The amount to be captured, in cents.\n\t * @example ```500```\n\t */\n\tcapture_amount_cents?: number | null\n\t/** \n\t * The amount to be captured, float.\n\t * @example ```5```\n\t */\n\tcapture_amount_float?: number | null\n\t/** \n\t * The amount to be captured, formatted.\n\t * @example ```\"€5,00\"```\n\t */\n\tformatted_capture_amount?: string | null\n\t/** \n\t * The balance to be captured, in cents.\n\t * @example ```1000```\n\t */\n\tcapture_balance_cents?: number | null\n\t/** \n\t * The balance to be captured, float.\n\t * @example ```10```\n\t */\n\tcapture_balance_float?: number | null\n\t/** \n\t * The balance to be captured, formatted.\n\t * @example ```\"€10,00\"```\n\t */\n\tformatted_capture_balance?: string | null\n\t/** \n\t * The balance to be voided, in cents.\n\t * @example ```1500```\n\t */\n\tvoid_balance_cents?: number | null\n\t/** \n\t * The balance to be voided, float.\n\t * @example ```15```\n\t */\n\tvoid_balance_float?: number | null\n\t/** \n\t * The balance to be voided, formatted.\n\t * @example ```\"€15,00\"```\n\t */\n\tformatted_void_balance?: string | null\n\n\torder?: Order | null\n\tpayment_source?: AdyenPayment | AxervePayment | BraintreePayment | CheckoutComPayment | ExternalPayment | KlarnaPayment | PaypalPayment | SatispayPayment | StripePayment | WireTransfer | null\n\tattachments?: Attachment[] | null\n\tevents?: Event[] | null\n\tversions?: Version[] | null\n\tcaptures?: Capture[] | null\n\tvoids?: Void[] | null\n\n}\n\n\ninterface AuthorizationUpdate extends ResourceUpdate {\n\t\n\t/** \n\t * Indicates if the transaction is successful.\n\t */\n\tsucceeded?: boolean | null\n\t/** \n\t * Send this attribute if you want to forward a stuck transaction to succeeded and update associated order states accordingly.\n\t * @example ```true```\n\t */\n\t_forward?: boolean | null\n\t/** \n\t * Send this attribute if you want to create a capture for this authorization.\n\t * @example ```true```\n\t */\n\t_capture?: boolean | null\n\t/** \n\t * Send this attribute as a value in cents if you want to overwrite the amount to be captured.\n\t * @example ```500```\n\t */\n\t_capture_amount_cents?: number | null\n\t/** \n\t * Send this attribute if you want to create a void for this authorization.\n\t * @example ```true```\n\t */\n\t_void?: boolean | null\n\t/** \n\t * Send this attribute if you want to void a succeeded authorization of a pending order (which is left unpaid).\n\t * @example ```true```\n\t */\n\t_cancel?: boolean | null\n\t\n}\n\n\nclass Authorizations extends ApiResource<Authorization> {\n\n\tstatic readonly TYPE: AuthorizationType = 'authorizations' as const\n\n\tasync update(resource: AuthorizationUpdate, params?: QueryParamsRetrieve<Authorization>, options?: ResourcesConfig): Promise<Authorization> {\n\t\treturn this.resources.update<AuthorizationUpdate, Authorization>({ ...resource, type: Authorizations.TYPE }, params, options)\n\t}\n\n\tasync order(authorizationId: string | Authorization, params?: QueryParamsRetrieve<Order>, options?: ResourcesConfig): Promise<Order> {\n\t\tconst _authorizationId = (authorizationId as Authorization).id || authorizationId as string\n\t\treturn this.resources.fetch<Order>({ type: 'orders' }, `authorizations/${_authorizationId}/order`, params, options) as unknown as Order\n\t}\n\n\tasync attachments(authorizationId: string | Authorization, params?: QueryParamsList<Attachment>, options?: ResourcesConfig): Promise<ListResponse<Attachment>> {\n\t\tconst _authorizationId = (authorizationId as Authorization).id || authorizationId as string\n\t\treturn this.resources.fetch<Attachment>({ type: 'attachments' }, `authorizations/${_authorizationId}/attachments`, params, options) as unknown as ListResponse<Attachment>\n\t}\n\n\tasync events(authorizationId: string | Authorization, params?: QueryParamsList<Event>, options?: ResourcesConfig): Promise<ListResponse<Event>> {\n\t\tconst _authorizationId = (authorizationId as Authorization).id || authorizationId as string\n\t\treturn this.resources.fetch<Event>({ type: 'events' }, `authorizations/${_authorizationId}/events`, params, options) as unknown as ListResponse<Event>\n\t}\n\n\tasync versions(authorizationId: string | Authorization, params?: QueryParamsList<Version>, options?: ResourcesConfig): Promise<ListResponse<Version>> {\n\t\tconst _authorizationId = (authorizationId as Authorization).id || authorizationId as string\n\t\treturn this.resources.fetch<Version>({ type: 'versions' }, `authorizations/${_authorizationId}/versions`, params, options) as unknown as ListResponse<Version>\n\t}\n\n\tasync captures(authorizationId: string | Authorization, params?: QueryParamsList<Capture>, options?: ResourcesConfig): Promise<ListResponse<Capture>> {\n\t\tconst _authorizationId = (authorizationId as Authorization).id || authorizationId as string\n\t\treturn this.resources.fetch<Capture>({ type: 'captures' }, `authorizations/${_authorizationId}/captures`, params, options) as unknown as ListResponse<Capture>\n\t}\n\n\tasync voids(authorizationId: string | Authorization, params?: QueryParamsList<Void>, options?: ResourcesConfig): Promise<ListResponse<Void>> {\n\t\tconst _authorizationId = (authorizationId as Authorization).id || authorizationId as string\n\t\treturn this.resources.fetch<Void>({ type: 'voids' }, `authorizations/${_authorizationId}/voids`, params, options) as unknown as ListResponse<Void>\n\t}\n\n\tasync _forward(id: string | Authorization, params?: QueryParamsRetrieve<Authorization>, options?: ResourcesConfig): Promise<Authorization> {\n\t\treturn this.resources.update<AuthorizationUpdate, Authorization>({ id: (typeof id === 'string')? id: id.id, type: Authorizations.TYPE, _forward: true }, params, options)\n\t}\n\n\tasync _capture(id: string | Authorization, params?: QueryParamsRetrieve<Authorization>, options?: ResourcesConfig): Promise<Authorization> {\n\t\treturn this.resources.update<AuthorizationUpdate, Authorization>({ id: (typeof id === 'string')? id: id.id, type: Authorizations.TYPE, _capture: true }, params, options)\n\t}\n\n\tasync _capture_amount_cents(id: string | Authorization, triggerValue: number, params?: QueryParamsRetrieve<Authorization>, options?: ResourcesConfig): Promise<Authorization> {\n\t\treturn this.resources.update<AuthorizationUpdate, Authorization>({ id: (typeof id === 'string')? id: id.id, type: Authorizations.TYPE, _capture_amount_cents: triggerValue }, params, options)\n\t}\n\n\tasync _void(id: string | Authorization, params?: QueryParamsRetrieve<Authorization>, options?: ResourcesConfig): Promise<Authorization> {\n\t\treturn this.resources.update<AuthorizationUpdate, Authorization>({ id: (typeof id === 'string')? id: id.id, type: Authorizations.TYPE, _void: true }, params, options)\n\t}\n\n\tasync _cancel(id: string | Authorization, params?: QueryParamsRetrieve<Authorization>, options?: ResourcesConfig): Promise<Authorization> {\n\t\treturn this.resources.update<AuthorizationUpdate, Authorization>({ id: (typeof id === 'string')? id: id.id, type: Authorizations.TYPE, _cancel: true }, params, options)\n\t}\n\n\n\tisAuthorization(resource: any): resource is Authorization {\n\t\treturn resource.type && (resource.type === Authorizations.TYPE)\n\t}\n\n\n\trelationship(id: string | ResourceId | null): AuthorizationRel {\n\t\treturn super.relationshipOneToOne<AuthorizationRel>(id)\n\t}\n\n\trelationshipToMany(...ids: string[]): AuthorizationRel[] {\n\t\treturn super.relationshipOneToMany<AuthorizationRel>(...ids)\n\t}\n\n\n\ttype(): AuthorizationType {\n\t\treturn Authorizations.TYPE\n\t}\n\n}\n\n\nconst instance = new Authorizations()\nexport default instance\n\nexport type { Authorizations, Authorization, AuthorizationUpdate, AuthorizationType }\n"]}
|
@@ -30,6 +30,9 @@ var AdyenPayments = class _AdyenPayments extends ApiResource {
|
|
30
30
|
async _details(id, params, options) {
|
31
31
|
return this.resources.update({ id: typeof id === "string" ? id : id.id, type: _AdyenPayments.TYPE, _details: true }, params, options);
|
32
32
|
}
|
33
|
+
async _balance(id, params, options) {
|
34
|
+
return this.resources.update({ id: typeof id === "string" ? id : id.id, type: _AdyenPayments.TYPE, _balance: true }, params, options);
|
35
|
+
}
|
33
36
|
isAdyenPayment(resource) {
|
34
37
|
return resource.type && resource.type === _AdyenPayments.TYPE;
|
35
38
|
}
|
@@ -47,5 +50,5 @@ var instance = new AdyenPayments();
|
|
47
50
|
var adyen_payments_default = instance;
|
48
51
|
|
49
52
|
export { adyen_payments_default };
|
50
|
-
//# sourceMappingURL=chunk-
|
51
|
-
//# sourceMappingURL=chunk-
|
53
|
+
//# sourceMappingURL=chunk-WVKEXOIY.js.map
|
54
|
+
//# sourceMappingURL=chunk-WVKEXOIY.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"sources":["../src/resources/adyen_payments.ts"],"names":[],"mappings":";;;AA6GA,IAAM,aAAA,GAAN,MAAM,cAAA,SAAsB,WAAA,CAA0B;AAAA,EAErD,OAAgB,IAAA,GAAyB,gBAAA;AAAA,EAEzC,MAAM,MAAA,CAAO,QAAA,EAA8B,MAAA,EAA4C,OAAA,EAAkD;AACxI,IAAA,OAAO,IAAA,CAAK,SAAA,CAAU,MAAA,CAAyC,EAAE,GAAG,QAAA,EAAU,IAAA,EAAM,cAAA,CAAc,IAAA,EAAK,EAAG,MAAA,EAAQ,OAAO,CAAA;AAAA,EAC1H;AAAA,EAEA,MAAM,MAAA,CAAO,QAAA,EAA8B,MAAA,EAA4C,OAAA,EAAkD;AACxI,IAAA,OAAO,IAAA,CAAK,SAAA,CAAU,MAAA,CAAyC,EAAE,GAAG,QAAA,EAAU,IAAA,EAAM,cAAA,CA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A,EACtB;AAED,CAAA;AAGA,IAAM,QAAA,GAAW,IAAI,aAAA,EAAc;AACnC,IAAO,sBAAA,GAAQ","file":"chunk-WVKEXOIY.js","sourcesContent":["import { ApiResource } from '../resource'\nimport type { Resource, ResourceCreate, ResourceUpdate, ResourceId, ResourcesConfig, ResourceRel, ListResponse, ResourceSort, /* ResourceFilter */ } from '../resource'\nimport type { QueryParamsRetrieve, QueryParamsList } from '../query'\n\nimport type { Order, OrderType } from './orders'\nimport type { PaymentGateway } from './payment_gateways'\nimport type { Version } from './versions'\n\n\ntype AdyenPaymentType = 'adyen_payments'\ntype AdyenPaymentRel = ResourceRel & { type: AdyenPaymentType }\ntype OrderRel = ResourceRel & { type: OrderType }\n\n\nexport type AdyenPaymentSort = Pick<AdyenPayment, 'id'> & ResourceSort\n// export type AdyenPaymentFilter = Pick<AdyenPayment, 'id'> & ResourceFilter\n\n\ninterface AdyenPayment extends Resource {\n\t\n\treadonly type: AdyenPaymentType\n\n\t/** \n\t * The public key linked to your API credential.\n\t * @example ```\"xxxx-yyyy-zzzz\"```\n\t */\n\tpublic_key?: string | null\n\t/** \n\t * The merchant available payment methods for the assoiated order (i.e. country and amount). Required by the Adyen JS SDK.\n\t * @example ```{\"foo\":\"bar\"}```\n\t */\n\tpayment_methods: Record<string, any>\n\t/** \n\t * The Adyen payment request data, collected by client.\n\t * @example ```{\"foo\":\"bar\"}```\n\t */\n\tpayment_request_data?: Record<string, any> | null\n\t/** \n\t * The Adyen additional details request data, collected by client.\n\t * @example ```{\"foo\":\"bar\"}```\n\t */\n\tpayment_request_details?: Record<string, any> | null\n\t/** \n\t * The Adyen payment response, used by client (includes 'resultCode' and 'action').\n\t * @example ```{\"foo\":\"bar\"}```\n\t */\n\tpayment_response?: Record<string, any> | null\n\t/** \n\t * Indicates if the order current amount differs form the one of the associated authorization.\n\t */\n\tmismatched_amounts?: boolean | null\n\t/** \n\t * The balance remaining on a shopper's gift card, must be computed by using its related trigger attribute.\n\t * @example ```1000```\n\t */\n\tbalance?: number | null\n\t/** \n\t * Information about the payment instrument used in the transaction.\n\t * @example ```{\"issuer\":\"cl bank\",\"card_type\":\"visa\"}```\n\t */\n\tpayment_instrument?: Record<string, any> | null\n\n\torder?: Order | null\n\tpayment_gateway?: PaymentGateway | null\n\tversions?: Version[] | null\n\n}\n\n\ninterface AdyenPaymentCreate extends ResourceCreate {\n\t\n\torder: OrderRel\n\n}\n\n\ninterface AdyenPaymentUpdate extends ResourceUpdate {\n\t\n\t/** \n\t * The Adyen payment request data, collected by client.\n\t * @example ```{\"foo\":\"bar\"}```\n\t */\n\tpayment_request_data?: Record<string, any> | null\n\t/** \n\t * The Adyen additional details request data, collected by client.\n\t * @example ```{\"foo\":\"bar\"}```\n\t */\n\tpayment_request_details?: Record<string, any> | null\n\t/** \n\t * Send this attribute if you want to authorize the payment.\n\t * @example ```true```\n\t */\n\t_authorize?: boolean | null\n\t/** \n\t * Send this attribute if you want to send additional details the payment request.\n\t * @example ```true```\n\t */\n\t_details?: boolean | null\n\t/** \n\t * Send this attribute if you want retrieve the balance remaining on a shopper's gift card.\n\t * @example ```true```\n\t */\n\t_balance?: boolean | null\n\n\torder?: OrderRel | null\n\n}\n\n\nclass AdyenPayments extends ApiResource<AdyenPayment> {\n\n\tstatic readonly TYPE: AdyenPaymentType = 'adyen_payments' as const\n\n\tasync create(resource: AdyenPaymentCreate, params?: QueryParamsRetrieve<AdyenPayment>, options?: ResourcesConfig): Promise<AdyenPayment> {\n\t\treturn this.resources.create<AdyenPaymentCreate, AdyenPayment>({ ...resource, type: AdyenPayments.TYPE }, params, options)\n\t}\n\n\tasync update(resource: AdyenPaymentUpdate, params?: QueryParamsRetrieve<AdyenPayment>, options?: ResourcesConfig): Promise<AdyenPayment> {\n\t\treturn this.resources.update<AdyenPaymentUpdate, AdyenPayment>({ ...resource, type: AdyenPayments.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: AdyenPayments.TYPE } : id, options)\n\t}\n\n\tasync order(adyenPaymentId: string | AdyenPayment, params?: QueryParamsRetrieve<Order>, options?: ResourcesConfig): Promise<Order> {\n\t\tconst _adyenPaymentId = (adyenPaymentId as AdyenPayment).id || adyenPaymentId as string\n\t\treturn this.resources.fetch<Order>({ type: 'orders' }, `adyen_payments/${_adyenPaymentId}/order`, params, options) as unknown as Order\n\t}\n\n\tasync payment_gateway(adyenPaymentId: string | AdyenPayment, params?: QueryParamsRetrieve<PaymentGateway>, options?: ResourcesConfig): Promise<PaymentGateway> {\n\t\tconst _adyenPaymentId = (adyenPaymentId as AdyenPayment).id || adyenPaymentId as string\n\t\treturn this.resources.fetch<PaymentGateway>({ type: 'payment_gateways' }, `adyen_payments/${_adyenPaymentId}/payment_gateway`, params, options) as unknown as PaymentGateway\n\t}\n\n\tasync versions(adyenPaymentId: string | AdyenPayment, params?: QueryParamsList<Version>, options?: ResourcesConfig): Promise<ListResponse<Version>> {\n\t\tconst _adyenPaymentId = (adyenPaymentId as AdyenPayment).id || adyenPaymentId as string\n\t\treturn this.resources.fetch<Version>({ type: 'versions' }, `adyen_payments/${_adyenPaymentId}/versions`, params, options) as unknown as ListResponse<Version>\n\t}\n\n\tasync _authorize(id: string | AdyenPayment, params?: QueryParamsRetrieve<AdyenPayment>, options?: ResourcesConfig): Promise<AdyenPayment> {\n\t\treturn this.resources.update<AdyenPaymentUpdate, AdyenPayment>({ id: (typeof id === 'string')? id: id.id, type: AdyenPayments.TYPE, _authorize: true }, params, options)\n\t}\n\n\tasync _details(id: string | AdyenPayment, params?: QueryParamsRetrieve<AdyenPayment>, options?: ResourcesConfig): Promise<AdyenPayment> {\n\t\treturn this.resources.update<AdyenPaymentUpdate, AdyenPayment>({ id: (typeof id === 'string')? id: id.id, type: AdyenPayments.TYPE, _details: true }, params, options)\n\t}\n\n\tasync _balance(id: string | AdyenPayment, params?: QueryParamsRetrieve<AdyenPayment>, options?: ResourcesConfig): Promise<AdyenPayment> {\n\t\treturn this.resources.update<AdyenPaymentUpdate, AdyenPayment>({ id: (typeof id === 'string')? id: id.id, type: AdyenPayments.TYPE, _balance: true }, params, options)\n\t}\n\n\n\tisAdyenPayment(resource: any): resource is AdyenPayment {\n\t\treturn resource.type && (resource.type === AdyenPayments.TYPE)\n\t}\n\n\n\trelationship(id: string | ResourceId | null): AdyenPaymentRel {\n\t\treturn super.relationshipOneToOne<AdyenPaymentRel>(id)\n\t}\n\n\trelationshipToMany(...ids: string[]): AdyenPaymentRel[] {\n\t\treturn super.relationshipOneToMany<AdyenPaymentRel>(...ids)\n\t}\n\n\n\ttype(): AdyenPaymentType {\n\t\treturn AdyenPayments.TYPE\n\t}\n\n}\n\n\nconst instance = new AdyenPayments()\nexport default instance\n\nexport type { AdyenPayments, AdyenPayment, AdyenPaymentCreate, AdyenPaymentUpdate, AdyenPaymentType }\n"]}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"sources":["../src/resources/geocoders.ts"],"names":[],"mappings":";;;AAkCA,IAAM,SAAA,GAAN,MAAM,UAAA,SAAkB,
|
1
|
+
{"version":3,"sources":["../src/resources/geocoders.ts"],"names":[],"mappings":";;;AAkCA,IAAM,SAAA,GAAN,MAAM,UAAA,SAAkB,WAAA,CAAsB;AAAA,EAE7C,OAAgB,IAAA,GAAqB,WAAA;AAAA,EAErC,MAAM,OAAA,CAAQ,UAAA,EAA+B,MAAA,EAAkC,OAAA,EAA0D;AACxI,IAAA,MAAM,WAAA,GAAe,WAAwB,EAAA,IAAM,UAAA;AACnD,IAAA,OAAO,IAAA,CAAK,SAAA,CAAU,KAAA,CAAc,EAAE,IAAA,EAAM,SAAA,EAAU,EAAG,CAAA,UAAA,EAAa,WAAW,CAAA,QAAA,CAAA,EAAY,MAAA,EAAQ,OAAO,CAAA;AAAA,EAC7G;AAAA,EAEA,MAAM,SAAA,CAAU,UAAA,EAA+B,MAAA,EAAmC,OAAA,EAA2D;AAC5I,IAAA,MAAM,WAAA,GAAe,WAAwB,EAAA,IAAM,UAAA;AACnD,IAAA,OAAO,IAAA,CAAK,SAAA,CAAU,KAAA,CAAe,EAAE,IAAA,EAAM,WAAA,EAAY,EAAG,CAAA,UAAA,EAAa,WAAW,CAAA,UAAA,CAAA,EAAc,MAAA,EAAQ,OAAO,CAAA;AAAA,EAClH;AAAA,EAEA,MAAM,WAAA,CAAY,UAAA,EAA+B,MAAA,EAAsC,OAAA,EAA8D;AACpJ,IAAA,MAAM,WAAA,GAAe,WAAwB,EAAA,IAAM,UAAA;AACnD,IAAA,OAAO,IAAA,CAAK,SAAA,CAAU,KAAA,CAAkB,EAAE,IAAA,EAAM,aAAA,EAAc,EAAG,CAAA,UAAA,EAAa,WAAW,CAAA,YAAA,CAAA,EAAgB,MAAA,EAAQ,OAAO,CAAA;AAAA,EACzH;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,iBAAA,GAAQ","file":"chunk-WXD4O4UY.js","sourcesContent":["import { ApiResource } from '../resource'\nimport type { Resource, ResourceId, ResourcesConfig, ResourceRel, ListResponse, ResourceSort, /* ResourceFilter */ } from '../resource'\nimport type { QueryParamsList } from '../query'\n\nimport type { Market } from './markets'\nimport type { Address } from './addresses'\nimport type { Attachment } from './attachments'\n\n\ntype GeocoderType = 'geocoders'\ntype GeocoderRel = ResourceRel & { type: GeocoderType }\n\n\nexport type GeocoderSort = Pick<Geocoder, 'id' | 'name'> & ResourceSort\n// export type GeocoderFilter = Pick<Geocoder, 'id' | 'name'> & ResourceFilter\n\n\ninterface Geocoder extends Resource {\n\t\n\treadonly type: GeocoderType\n\n\t/** \n\t * The geocoder's internal name.\n\t * @example ```\"Default geocoder\"```\n\t */\n\tname: string\n\n\tmarkets?: Market[] | null\n\taddresses?: Address[] | null\n\tattachments?: Attachment[] | null\n\n}\n\n\nclass Geocoders extends ApiResource<Geocoder> {\n\n\tstatic readonly TYPE: GeocoderType = 'geocoders' as const\n\n\tasync markets(geocoderId: string | Geocoder, params?: QueryParamsList<Market>, options?: ResourcesConfig): Promise<ListResponse<Market>> {\n\t\tconst _geocoderId = (geocoderId as Geocoder).id || geocoderId as string\n\t\treturn this.resources.fetch<Market>({ type: 'markets' }, `geocoders/${_geocoderId}/markets`, params, options) as unknown as ListResponse<Market>\n\t}\n\n\tasync addresses(geocoderId: string | Geocoder, params?: QueryParamsList<Address>, options?: ResourcesConfig): Promise<ListResponse<Address>> {\n\t\tconst _geocoderId = (geocoderId as Geocoder).id || geocoderId as string\n\t\treturn this.resources.fetch<Address>({ type: 'addresses' }, `geocoders/${_geocoderId}/addresses`, params, options) as unknown as ListResponse<Address>\n\t}\n\n\tasync attachments(geocoderId: string | Geocoder, params?: QueryParamsList<Attachment>, options?: ResourcesConfig): Promise<ListResponse<Attachment>> {\n\t\tconst _geocoderId = (geocoderId as Geocoder).id || geocoderId as string\n\t\treturn this.resources.fetch<Attachment>({ type: 'attachments' }, `geocoders/${_geocoderId}/attachments`, params, options) as unknown as ListResponse<Attachment>\n\t}\n\n\n\tisGeocoder(resource: any): resource is Geocoder {\n\t\treturn resource.type && (resource.type === Geocoders.TYPE)\n\t}\n\n\n\trelationship(id: string | ResourceId | null): GeocoderRel {\n\t\treturn super.relationshipOneToOne<GeocoderRel>(id)\n\t}\n\n\trelationshipToMany(...ids: string[]): GeocoderRel[] {\n\t\treturn super.relationshipOneToMany<GeocoderRel>(...ids)\n\t}\n\n\n\ttype(): GeocoderType {\n\t\treturn Geocoders.TYPE\n\t}\n\n}\n\n\nconst instance = new Geocoders()\nexport default instance\n\nexport type { Geocoders, Geocoder, GeocoderType }\n"]}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"sources":["../src/resources/sku_lists.ts"],"names":["ApiResource"],"mappings":";;;;;AAmIA,IAAM,QAAA,GAAN,MAAM,SAAA,SAAiBA,6BAAqB,CAAA;AAAA,EAE3C,OAAgB,IAAoB,GAAA,WAAA;AAAA,EAEpC,MAAM,MAAA,CAAO,QAAyB,EAAA,MAAA,EAAuC,OAA6C,EAAA;AACzH,IAAO,OAAA,IAAA,CAAK,SAAU,CAAA,MAAA,CAA+B,EAAE,GAAG,QAAU,EAAA,IAAA,EAAM,SAAS,CAAA,IAAA,EAAQ,EAAA,MAAA,EAAQ,OAAO,CAAA;AAAA;AAC3G,EAEA,MAAM,MAAA,CAAO,QAAyB,EAAA,MAAA,EAAuC,OAA6C,EAAA;AACzH,IAAO,OAAA,IAAA,CAAK,SAAU,CAAA,MAAA,CAA+B,EAAE,GAAG,QAAU,EAAA,IAAA,EAAM,SAAS,CAAA,IAAA,EAAQ,EAAA,MAAA,EAAQ,OAAO,CAAA;AAAA;AAC3G,EAEA,MAAM,MAAO,CAAA,EAAA,EAAyB,OAA0C,EAAA;AAC/E,IAAA,MAAM,IAAK,CAAA,SAAA,CAAU,MAAQ,CAAA,OAAO,EAAO,KAAA,QAAA,GAAW,EAAE,EAAA,EAAI,IAAM,EAAA,SAAA,CAAS,IAAK,EAAA,GAAI,IAAI,OAAO,CAAA;AAAA;AAChG,EAEA,MAAM,QAAA,CAAS,SAA6B,EAAA,MAAA,EAAwC,OAA8C,EAAA;AACjI,IAAM,MAAA,UAAA,GAAc,UAAsB,EAAM,IAAA,SAAA;AAChD,IAAO,OAAA,IAAA,CAAK,SAAU,CAAA,KAAA,CAAgB,EAAE,I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,EAAA,UAAU,CAAgB,YAAA,CAAA,EAAA,MAAA,EAAQ,OAAO,CAAA;AAAA;AACxH,EAEA,MAAM,KAAA,CAAM,SAA6B,EAAA,MAAA,EAAgC,OAAwD,EAAA;AAChI,IAAM,MAAA,UAAA,GAAc,UAAsB,EAAM,IAAA,SAAA;AAChD,IAAO,OAAA,IAAA,CAAK,SAAU,CAAA,KAAA,CAAY,EAAE,IAAA,EAAM,OAAQ,EAAA,EAAG,CAAa,UAAA,EAAA,UAAU,CAAU,MAAA,CAAA,EAAA,MAAA,EAAQ,OAAO,CAAA;AAAA;AACtG,EAEA,MAAM,QAAA,CAAS,SAA6B,EAAA,MAAA,EAAmC,OAA2D,EAAA;AACzI,IAAM,MAAA,UAAA,GAAc,UAAsB,EAAM,IAAA,SAAA;AAChD,IAAO,OAAA,IAAA,CAAK,SAAU,CAAA,KAAA,CAAe,EAAE,IAAA,EAAM,UAAW,EAAA,EAAG,CAAa,UAAA,EAAA,UAAU,CAAa,SAAA,CAAA,EAAA,MAAA,EAAQ,OAAO,CAAA;AAAA;AAC/G,EAGA,UAAU,QAAoC,EAAA;AAC7C,IAAA,OAAO,QAAS,CAAA,IAAA,IAAS,QAAS,CAAA,IAAA,KAAS,SAAS,CAAA,IAAA;AAAA;AACrD,EAGA,aAAa,EAA4C,EAAA;AACxD,IAAO,OAAA,KAAA,CAAM,qBAAiC,EAAE,CAAA;AAAA;AACjD,EAEA,sBAAsB,GAA6B,EAAA;AAClD,IAAO,OAAA,KAAA,CAAM,qBAAkC,CAAA,GAAG,GAAG,CAAA;AAAA;AACtD,EAGA,IAAoB,GAAA;AACnB,IAAA,OAAO,SAAS,CAAA,IAAA;AAAA;AAGlB,CAAA;AAGA,IAAM,QAAA,GAAW,IAAI,QAAS,EAAA;AAC9B,IAAO,iBAAQ,GAAA","file":"chunk-X2D47UM7.cjs","sourcesContent":["import { ApiResource } from '../resource'\nimport type { Resource, ResourceCreate, ResourceUpdate, ResourceId, ResourcesConfig, ResourceRel, ListResponse, ResourceSort, /* ResourceFilter */ } from '../resource'\nimport type { QueryParamsRetrieve, QueryParamsList } from '../query'\n\nimport type { Customer, CustomerType } from './customers'\nimport type { Sku } from './skus'\nimport type { SkuListItem } from './sku_list_items'\nimport type { Bundle } from './bundles'\nimport type { Attachment } from './attachments'\nimport type { Link } from './links'\nimport type { Version } from './versions'\n\n\ntype SkuListType = 'sku_lists'\ntype SkuListRel = ResourceRel & { type: SkuListType }\ntype CustomerRel = ResourceRel & { type: CustomerType }\n\n\nexport type SkuListSort = Pick<SkuList, 'id' | 'name' | 'slug' | 'manual'> & ResourceSort\n// export type SkuListFilter = Pick<SkuList, 'id' | 'name' | 'slug' | 'description' | 'image_url' | 'manual'> & ResourceFilter\n\n\ninterface SkuList extends Resource {\n\t\n\treadonly type: SkuListType\n\n\t/** \n\t * The SKU list's internal name.\n\t * @example ```\"Personal list\"```\n\t */\n\tname: string\n\t/** \n\t * The SKU list's internal slug.\n\t * @example ```\"personal-list-1\"```\n\t */\n\tslug: string\n\t/** \n\t * An internal description of the SKU list.\n\t * @example ```\"Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.\"```\n\t */\n\tdescription?: string | null\n\t/** \n\t * The URL of an image that represents the SKU list.\n\t * @example ```\"https://img.yourdomain.com/skus/xYZkjABcde.png\"```\n\t */\n\timage_url?: string | null\n\t/** \n\t * Indicates if the SKU list is populated manually.\n\t */\n\tmanual?: boolean | null\n\t/** \n\t * The regex that will be evaluated to match the SKU codes, max size is 5000.\n\t * @example ```\"^(A|B).*$\"```\n\t */\n\tsku_code_regex?: string | null\n\n\tcustomer?: Customer | null\n\tskus?: Sku[] | null\n\tsku_list_items?: SkuListItem[] | null\n\tbundles?: Bundle[] | null\n\tattachments?: Attachment[] | null\n\tlinks?: Link[] | null\n\tversions?: Version[] | null\n\n}\n\n\ninterface SkuListCreate extends ResourceCreate {\n\t\n\t/** \n\t * The SKU list's internal name.\n\t * @example ```\"Personal list\"```\n\t */\n\tname: string\n\t/** \n\t * An internal description of the SKU list.\n\t * @example ```\"Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.\"```\n\t */\n\tdescription?: string | null\n\t/** \n\t * The URL of an image that represents the SKU list.\n\t * @example ```\"https://img.yourdomain.com/skus/xYZkjABcde.png\"```\n\t */\n\timage_url?: string | null\n\t/** \n\t * Indicates if the SKU list is populated manually.\n\t */\n\tmanual?: boolean | null\n\t/** \n\t * The regex that will be evaluated to match the SKU codes, max size is 5000.\n\t * @example ```\"^(A|B).*$\"```\n\t */\n\tsku_code_regex?: string | null\n\n\tcustomer?: CustomerRel | null\n\n}\n\n\ninterface SkuListUpdate extends ResourceUpdate {\n\t\n\t/** \n\t * The SKU list's internal name.\n\t * @example ```\"Personal list\"```\n\t */\n\tname?: string | null\n\t/** \n\t * An internal description of the SKU list.\n\t * @example ```\"Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.\"```\n\t */\n\tdescription?: string | null\n\t/** \n\t * The URL of an image that represents the SKU list.\n\t * @example ```\"https://img.yourdomain.com/skus/xYZkjABcde.png\"```\n\t */\n\timage_url?: string | null\n\t/** \n\t * Indicates if the SKU list is populated manually.\n\t */\n\tmanual?: boolean | null\n\t/** \n\t * The regex that will be evaluated to match the SKU codes, max size is 5000.\n\t * @example ```\"^(A|B).*$\"```\n\t */\n\tsku_code_regex?: string | null\n\n\tcustomer?: CustomerRel | null\n\n}\n\n\nclass SkuLists extends ApiResource<SkuList> {\n\n\tstatic readonly TYPE: SkuListType = 'sku_lists' as const\n\n\tasync create(resource: SkuListCreate, params?: QueryParamsRetrieve<SkuList>, options?: ResourcesConfig): Promise<SkuList> {\n\t\treturn this.resources.create<SkuListCreate, SkuList>({ ...resource, type: SkuLists.TYPE }, params, options)\n\t}\n\n\tasync update(resource: SkuListUpdate, params?: QueryParamsRetrieve<SkuList>, options?: ResourcesConfig): Promise<SkuList> {\n\t\treturn this.resources.update<SkuListUpdate, SkuList>({ ...resource, type: SkuLists.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: SkuLists.TYPE } : id, options)\n\t}\n\n\tasync customer(skuListId: string | SkuList, params?: QueryParamsRetrieve<Customer>, options?: ResourcesConfig): Promise<Customer> {\n\t\tconst _skuListId = (skuListId as SkuList).id || skuListId as string\n\t\treturn this.resources.fetch<Customer>({ type: 'customers' }, `sku_lists/${_skuListId}/customer`, params, options) as unknown as Customer\n\t}\n\n\tasync skus(skuListId: string | SkuList, params?: QueryParamsList<Sku>, options?: ResourcesConfig): Promise<ListResponse<Sku>> {\n\t\tconst _skuListId = (skuListId as SkuList).id || skuListId as string\n\t\treturn this.resources.fetch<Sku>({ type: 'skus' }, `sku_lists/${_skuListId}/skus`, params, options) as unknown as ListResponse<Sku>\n\t}\n\n\tasync sku_list_items(skuListId: string | SkuList, params?: QueryParamsList<SkuListItem>, options?: ResourcesConfig): Promise<ListResponse<SkuListItem>> {\n\t\tconst _skuListId = (skuListId as SkuList).id || skuListId as string\n\t\treturn this.resources.fetch<SkuListItem>({ type: 'sku_list_items' }, `sku_lists/${_skuListId}/sku_list_items`, params, options) as unknown as ListResponse<SkuListItem>\n\t}\n\n\tasync bundles(skuListId: string | SkuList, params?: QueryParamsList<Bundle>, options?: ResourcesConfig): Promise<ListResponse<Bundle>> {\n\t\tconst _skuListId = (skuListId as SkuList).id || skuListId as string\n\t\treturn this.resources.fetch<Bundle>({ type: 'bundles' }, `sku_lists/${_skuListId}/bundles`, params, options) as unknown as ListResponse<Bundle>\n\t}\n\n\tasync attachments(skuListId: string | SkuList, params?: QueryParamsList<Attachment>, options?: ResourcesConfig): Promise<ListResponse<Attachment>> {\n\t\tconst _skuListId = (skuListId as SkuList).id || skuListId as string\n\t\treturn this.resources.fetch<Attachment>({ type: 'attachments' }, `sku_lists/${_skuListId}/attachments`, params, options) as unknown as ListResponse<Attachment>\n\t}\n\n\tasync links(skuListId: string | SkuList, params?: QueryParamsList<Link>, options?: ResourcesConfig): Promise<ListResponse<Link>> {\n\t\tconst _skuListId = (skuListId as SkuList).id || skuListId as string\n\t\treturn this.resources.fetch<Link>({ type: 'links' }, `sku_lists/${_skuListId}/links`, params, options) as unknown as ListResponse<Link>\n\t}\n\n\tasync versions(skuListId: string | SkuList, params?: QueryParamsList<Version>, options?: ResourcesConfig): Promise<ListResponse<Version>> {\n\t\tconst _skuListId = (skuListId as SkuList).id || skuListId as string\n\t\treturn this.resources.fetch<Version>({ type: 'versions' }, `sku_lists/${_skuListId}/versions`, params, options) as unknown as ListResponse<Version>\n\t}\n\n\n\tisSkuList(resource: any): resource is SkuList {\n\t\treturn resource.type && (resource.type === SkuLists.TYPE)\n\t}\n\n\n\trelationship(id: string | ResourceId | null): SkuListRel {\n\t\treturn super.relationshipOneToOne<SkuListRel>(id)\n\t}\n\n\trelationshipToMany(...ids: string[]): SkuListRel[] {\n\t\treturn super.relationshipOneToMany<SkuListRel>(...ids)\n\t}\n\n\n\ttype(): SkuListType {\n\t\treturn SkuLists.TYPE\n\t}\n\n}\n\n\nconst instance = new SkuLists()\nexport default instance\n\nexport type { SkuLists, SkuList, SkuListCreate, SkuListUpdate, SkuListType }\n"]}
|
1
|
+
{"version":3,"sources":["../src/resources/sku_lists.ts"],"names":["ApiResource"],"mappings":";;;;;AAmIA,IAAM,QAAA,GAAN,MAAM,SAAA,SAAiBA,6BAAA,CAAqB;AAAA,EAE3C,OAAgB,IAAA,GAAoB,WAAA;AAAA,EAEpC,MAAM,MAAA,CAAO,QAAA,EAAyB,MAAA,EAAuC,OAAA,EAA6C;AACzH,IAAA,OAAO,IAAA,CAAK,SAAA,CAAU,MAAA,CAA+B,EAAE,GAAG,QAAA,EAAU,IAAA,EAAM,SAAA,CAAS,IAAA,EAAK,EAAG,MAAA,EAAQ,OAAO,CAAA;AA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AAA,CAAe,EAAE,IAAA,EAAM,UAAA,EAAW,EAAG,CAAA,UAAA,EAAa,UAAU,CAAA,SAAA,CAAA,EAAa,MAAA,EAAQ,OAAO,CAAA;AAAA,EAC/G;AAAA,EAGA,UAAU,QAAA,EAAoC;AAC7C,IAAA,OAAO,QAAA,CAAS,IAAA,IAAS,QAAA,CAAS,IAAA,KAAS,SAAA,CAAS,IAAA;AAAA,EACrD;AAAA,EAGA,aAAa,EAAA,EAA4C;AACxD,IAAA,OAAO,KAAA,CAAM,qBAAiC,EAAE,CAAA;AAAA,EACjD;AAAA,EAEA,sBAAsB,GAAA,EAA6B;AAClD,IAAA,OAAO,KAAA,CAAM,qBAAA,CAAkC,GAAG,GAAG,CAAA;AAAA,EACtD;AAAA,EAGA,IAAA,GAAoB;AACnB,IAAA,OAAO,SAAA,CAAS,IAAA;AAAA,EACjB;AAED,CAAA;AAGA,IAAM,QAAA,GAAW,IAAI,QAAA,EAAS;AAC9B,IAAO,iBAAA,GAAQ","file":"chunk-X2D47UM7.cjs","sourcesContent":["import { ApiResource } from '../resource'\nimport type { Resource, ResourceCreate, ResourceUpdate, ResourceId, ResourcesConfig, ResourceRel, ListResponse, ResourceSort, /* ResourceFilter */ } from '../resource'\nimport type { QueryParamsRetrieve, QueryParamsList } from '../query'\n\nimport type { Customer, CustomerType } from './customers'\nimport type { Sku } from './skus'\nimport type { SkuListItem } from './sku_list_items'\nimport type { Bundle } from './bundles'\nimport type { Attachment } from './attachments'\nimport type { Link } from './links'\nimport type { Version } from './versions'\n\n\ntype SkuListType = 'sku_lists'\ntype SkuListRel = ResourceRel & { type: SkuListType }\ntype CustomerRel = ResourceRel & { type: CustomerType }\n\n\nexport type SkuListSort = Pick<SkuList, 'id' | 'name' | 'slug' | 'manual'> & ResourceSort\n// export type SkuListFilter = Pick<SkuList, 'id' | 'name' | 'slug' | 'description' | 'image_url' | 'manual'> & ResourceFilter\n\n\ninterface SkuList extends Resource {\n\t\n\treadonly type: SkuListType\n\n\t/** \n\t * The SKU list's internal name.\n\t * @example ```\"Personal list\"```\n\t */\n\tname: string\n\t/** \n\t * The SKU list's internal slug.\n\t * @example ```\"personal-list-1\"```\n\t */\n\tslug: string\n\t/** \n\t * An internal description of the SKU list.\n\t * @example ```\"Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.\"```\n\t */\n\tdescription?: string | null\n\t/** \n\t * The URL of an image that represents the SKU list.\n\t * @example ```\"https://img.yourdomain.com/skus/xYZkjABcde.png\"```\n\t */\n\timage_url?: string | null\n\t/** \n\t * Indicates if the SKU list is populated manually.\n\t */\n\tmanual?: boolean | null\n\t/** \n\t * The regex that will be evaluated to match the SKU codes, max size is 5000.\n\t * @example ```\"^(A|B).*$\"```\n\t */\n\tsku_code_regex?: string | null\n\n\tcustomer?: Customer | null\n\tskus?: Sku[] | null\n\tsku_list_items?: SkuListItem[] | null\n\tbundles?: Bundle[] | null\n\tattachments?: Attachment[] | null\n\tlinks?: Link[] | null\n\tversions?: Version[] | null\n\n}\n\n\ninterface SkuListCreate extends ResourceCreate {\n\t\n\t/** \n\t * The SKU list's internal name.\n\t * @example ```\"Personal list\"```\n\t */\n\tname: string\n\t/** \n\t * An internal description of the SKU list.\n\t * @example ```\"Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.\"```\n\t */\n\tdescription?: string | null\n\t/** \n\t * The URL of an image that represents the SKU list.\n\t * @example ```\"https://img.yourdomain.com/skus/xYZkjABcde.png\"```\n\t */\n\timage_url?: string | null\n\t/** \n\t * Indicates if the SKU list is populated manually.\n\t */\n\tmanual?: boolean | null\n\t/** \n\t * The regex that will be evaluated to match the SKU codes, max size is 5000.\n\t * @example ```\"^(A|B).*$\"```\n\t */\n\tsku_code_regex?: string | null\n\n\tcustomer?: CustomerRel | null\n\n}\n\n\ninterface SkuListUpdate extends ResourceUpdate {\n\t\n\t/** \n\t * The SKU list's internal name.\n\t * @example ```\"Personal list\"```\n\t */\n\tname?: string | null\n\t/** \n\t * An internal description of the SKU list.\n\t * @example ```\"Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.\"```\n\t */\n\tdescription?: string | null\n\t/** \n\t * The URL of an image that represents the SKU list.\n\t * @example ```\"https://img.yourdomain.com/skus/xYZkjABcde.png\"```\n\t */\n\timage_url?: string | null\n\t/** \n\t * Indicates if the SKU list is populated manually.\n\t */\n\tmanual?: boolean | null\n\t/** \n\t * The regex that will be evaluated to match the SKU codes, max size is 5000.\n\t * @example ```\"^(A|B).*$\"```\n\t */\n\tsku_code_regex?: string | null\n\n\tcustomer?: CustomerRel | null\n\n}\n\n\nclass SkuLists extends ApiResource<SkuList> {\n\n\tstatic readonly TYPE: SkuListType = 'sku_lists' as const\n\n\tasync create(resource: SkuListCreate, params?: QueryParamsRetrieve<SkuList>, options?: ResourcesConfig): Promise<SkuList> {\n\t\treturn this.resources.create<SkuListCreate, SkuList>({ ...resource, type: SkuLists.TYPE }, params, options)\n\t}\n\n\tasync update(resource: SkuListUpdate, params?: QueryParamsRetrieve<SkuList>, options?: ResourcesConfig): Promise<SkuList> {\n\t\treturn this.resources.update<SkuListUpdate, SkuList>({ ...resource, type: SkuLists.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: SkuLists.TYPE } : id, options)\n\t}\n\n\tasync customer(skuListId: string | SkuList, params?: QueryParamsRetrieve<Customer>, options?: ResourcesConfig): Promise<Customer> {\n\t\tconst _skuListId = (skuListId as SkuList).id || skuListId as string\n\t\treturn this.resources.fetch<Customer>({ type: 'customers' }, `sku_lists/${_skuListId}/customer`, params, options) as unknown as Customer\n\t}\n\n\tasync skus(skuListId: string | SkuList, params?: QueryParamsList<Sku>, options?: ResourcesConfig): Promise<ListResponse<Sku>> {\n\t\tconst _skuListId = (skuListId as SkuList).id || skuListId as string\n\t\treturn this.resources.fetch<Sku>({ type: 'skus' }, `sku_lists/${_skuListId}/skus`, params, options) as unknown as ListResponse<Sku>\n\t}\n\n\tasync sku_list_items(skuListId: string | SkuList, params?: QueryParamsList<SkuListItem>, options?: ResourcesConfig): Promise<ListResponse<SkuListItem>> {\n\t\tconst _skuListId = (skuListId as SkuList).id || skuListId as string\n\t\treturn this.resources.fetch<SkuListItem>({ type: 'sku_list_items' }, `sku_lists/${_skuListId}/sku_list_items`, params, options) as unknown as ListResponse<SkuListItem>\n\t}\n\n\tasync bundles(skuListId: string | SkuList, params?: QueryParamsList<Bundle>, options?: ResourcesConfig): Promise<ListResponse<Bundle>> {\n\t\tconst _skuListId = (skuListId as SkuList).id || skuListId as string\n\t\treturn this.resources.fetch<Bundle>({ type: 'bundles' }, `sku_lists/${_skuListId}/bundles`, params, options) as unknown as ListResponse<Bundle>\n\t}\n\n\tasync attachments(skuListId: string | SkuList, params?: QueryParamsList<Attachment>, options?: ResourcesConfig): Promise<ListResponse<Attachment>> {\n\t\tconst _skuListId = (skuListId as SkuList).id || skuListId as string\n\t\treturn this.resources.fetch<Attachment>({ type: 'attachments' }, `sku_lists/${_skuListId}/attachments`, params, options) as unknown as ListResponse<Attachment>\n\t}\n\n\tasync links(skuListId: string | SkuList, params?: QueryParamsList<Link>, options?: ResourcesConfig): Promise<ListResponse<Link>> {\n\t\tconst _skuListId = (skuListId as SkuList).id || skuListId as string\n\t\treturn this.resources.fetch<Link>({ type: 'links' }, `sku_lists/${_skuListId}/links`, params, options) as unknown as ListResponse<Link>\n\t}\n\n\tasync versions(skuListId: string | SkuList, params?: QueryParamsList<Version>, options?: ResourcesConfig): Promise<ListResponse<Version>> {\n\t\tconst _skuListId = (skuListId as SkuList).id || skuListId as string\n\t\treturn this.resources.fetch<Version>({ type: 'versions' }, `sku_lists/${_skuListId}/versions`, params, options) as unknown as ListResponse<Version>\n\t}\n\n\n\tisSkuList(resource: any): resource is SkuList {\n\t\treturn resource.type && (resource.type === SkuLists.TYPE)\n\t}\n\n\n\trelationship(id: string | ResourceId | null): SkuListRel {\n\t\treturn super.relationshipOneToOne<SkuListRel>(id)\n\t}\n\n\trelationshipToMany(...ids: string[]): SkuListRel[] {\n\t\treturn super.relationshipOneToMany<SkuListRel>(...ids)\n\t}\n\n\n\ttype(): SkuListType {\n\t\treturn SkuLists.TYPE\n\t}\n\n}\n\n\nconst instance = new SkuLists()\nexport default instance\n\nexport type { SkuLists, SkuList, SkuListCreate, SkuListUpdate, SkuListType }\n"]}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"sources":["../src/enum.ts"],"names":[],"mappings":";;;AAOA,IAAM,YAAe,GAAA;AAAA;AAAA,EAEpB,WAAA;AAAA,EACA,aAAA;AAAA,EACA,gBAAA;AAAA,EACA,gBAAA;AAAA,EACA,cAAA;AAAA,EACA,aAAA;AAAA,EACA,gBAAA;AAAA,EACA,kBAAA;AAAA,EACA,iBAAA;AAAA,EACA,iBAAA;AAAA,EACA,gBAAA;AAAA,EACA,oBAAA;AAAA,EACA,oBAAA;AAAA,EACA,SAAA;AAAA,EACA,wBAAA;AAAA,EACA,UAAA;AAAA,EACA,kBAAA;AAAA,EACA,uBAAA;AAAA,EACA,uBAAA;AAAA,EACA,UAAA;AAAA,EACA,8BAAA;AAAA,EACA,mBAAA;AAAA,EACA,SAAA;AAAA,EACA,wBAAA;AAAA,EACA,oBAAA;AAAA,EACA,iBAAA;AAAA,EACA,0BAAA;AAAA,EACA,0BAAA;AAAA,EACA,wBAAA;AAAA,EACA,WAAA;AAAA,EACA,qBAAA;AAAA,EACA,uBAAA;AAAA,EACA,kBAAA;AAAA,EACA,kBAAA;AAAA,EACA,iBAAA;AAAA,EACA,QAAA;AAAA,EACA,SAAA;AAAA,EACA,mBAAA;AAAA,EACA,mBAAA;AAAA,EACA,qBAAA;AAAA,EACA,0BAAA;AAAA,EACA,yBAAA;AAAA,EACA,wBAAA;AAAA,EACA,iBAAA;AAAA,EACA,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AA;AACzE,EAAA,OAAO,OAAM,CAAE,GAAG,YAAa,CAAA,CAAE,MAAS,GAAA,YAAA;AAC3C;AAEO,SAAS,cAAc,IAAmC,EAAA;AAChE,EAAA,OAAO,OAAM,CAAE,GAAG,aAAc,CAAA,CAAE,MAAS,GAAA,aAAA;AAC5C;AAEO,SAAS,YAAY,QAAqC,EAAA;AAChE,EAAO,OAAA,aAAA,CAAc,SAAS,QAAe,CAAA;AAC9C;AAEO,SAAS,YAAY,QAAqC,EAAA;AAChE,EAAO,OAAA,kBAAA,CAAmB,SAAS,QAAe,CAAA;AACnD;AAEO,SAAS,YAAY,QAAqC,EAAA;AAChE,EAAO,OAAA,kBAAA,CAAmB,SAAS,QAAe,CAAA;AACnD;AAEO,SAAS,YAAY,QAAqC,EAAA;AAChE,EAAO,OAAA,kBAAA,CAAmB,SAAS,QAAe,CAAA;AACnD;AAEO,SAAS,WAAW,QAAqC,EAAA;AAC/D,EAAO,OAAA,iBAAA,CAAkB,SAAS,QAAe,CAAA;AAClD;AAEO,SAAS,cAAc,QAAqC,EAAA;AAClE,EAAO,OAAA,oBAAA,CAAqB,SAAS,QAAe,CAAA;AACrD","file":"chunk-X6PHZA6P.cjs","sourcesContent":["import type { Resource, ResourceRel } from './resource'\nimport type { TagType } from './resources/tags'\nimport type { VersionType } from './resources/versions'\nimport type * as models from './model'\n\n\n\nconst apiResources = [\n\t// ##__API_RESOURCE_LIST_START__##\n\t'addresses',\n\t'adjustments',\n\t'adyen_gateways',\n\t'adyen_payments',\n\t'applications',\n\t'attachments',\n\t'authorizations',\n\t'avalara_accounts',\n\t'axerve_gateways',\n\t'axerve_payments',\n\t'bing_geocoders',\n\t'braintree_gateways',\n\t'braintree_payments',\n\t'bundles',\n\t'buy_x_pay_y_promotions',\n\t'captures',\n\t'carrier_accounts',\n\t'checkout_com_gateways',\n\t'checkout_com_payments',\n\t'cleanups',\n\t'coupon_codes_promotion_rules',\n\t'coupon_recipients',\n\t'coupons',\n\t'custom_promotion_rules',\n\t'customer_addresses',\n\t'customer_groups',\n\t'customer_password_resets',\n\t'customer_payment_sources',\n\t'customer_subscriptions',\n\t'customers',\n\t'delivery_lead_times',\n\t'discount_engine_items',\n\t'discount_engines',\n\t'easypost_pickups',\n\t'event_callbacks',\n\t'events',\n\t'exports',\n\t'external_gateways',\n\t'external_payments',\n\t'external_promotions',\n\t'external_tax_calculators',\n\t'fixed_amount_promotions',\n\t'fixed_price_promotions',\n\t'flex_promotions',\n\t'free_gift_promotions',\n\t'free_shipping_promotions',\n\t'geocoders',\n\t'gift_card_recipients',\n\t'gift_cards',\n\t'google_geocoders',\n\t'imports',\n\t'in_stock_subscriptions',\n\t'inventory_models',\n\t'inventory_return_locations',\n\t'inventory_stock_locations',\n\t'klarna_gateways',\n\t'klarna_payments',\n\t'line_item_options',\n\t'line_items',\n\t'links',\n\t'manual_gateways',\n\t'manual_tax_calculators',\n\t'markets',\n\t'merchants',\n\t'notifications',\n\t'order_amount_promotion_rules',\n\t'order_copies',\n\t'order_factories',\n\t'order_subscription_items',\n\t'order_subscriptions',\n\t'orders',\n\t'organizations',\n\t'packages',\n\t'parcel_line_items',\n\t'parcels',\n\t'payment_gateways',\n\t'payment_methods',\n\t'payment_options',\n\t'paypal_gateways',\n\t'paypal_payments',\n\t'percentage_discount_promotions',\n\t'pickups',\n\t'price_frequency_tiers',\n\t'price_list_schedulers',\n\t'price_lists',\n\t'price_tiers',\n\t'price_volume_tiers',\n\t'prices',\n\t'promotion_rules',\n\t'promotions',\n\t'recurring_order_copies',\n\t'refunds',\n\t'reserved_stocks',\n\t'resource_errors',\n\t'return_line_items',\n\t'returns',\n\t'satispay_gateways',\n\t'satispay_payments',\n\t'shipments',\n\t'shipping_categories',\n\t'shipping_method_tiers',\n\t'shipping_methods',\n\t'shipping_weight_tiers',\n\t'shipping_zones',\n\t'sku_list_items',\n\t'sku_list_promotion_rules',\n\t'sku_lists',\n\t'sku_options',\n\t'skus',\n\t'stock_items',\n\t'stock_line_items',\n\t'stock_locations',\n\t'stock_reservations',\n\t'stock_transfers',\n\t'stores',\n\t'stripe_gateways',\n\t'stripe_payments',\n\t'stripe_tax_accounts',\n\t'subscription_models',\n\t'tags',\n\t'talon_one_accounts',\n\t'tax_calculators',\n\t'tax_categories',\n\t'tax_rules',\n\t'taxjar_accounts',\n\t'transactions',\n\t'versions',\n\t'vertex_accounts',\n\t'voids',\n\t'webhooks',\n\t'wire_transfers'\n\t// ##__API_RESOURCE_LIST_STOP__##\n] as const\n\nexport type ResourceTypeLock = typeof apiResources[number]\nexport const resourceList: Readonly<ResourceTypeLock[]> = apiResources\n\n\n// Singleton resources\nexport const singletonList = [\n\t// ##__API_RESOURCE_SINGLETON_START__##\n\t'applications',\n\t'organizations'\n\t// ##__API_RESOURCE_SINGLETON_STOP__##\n] as const\n\n\n// Retrievable resources\nexport type RetrievableResourceType = ResourceTypeLock\n\nexport type RetrievableResource = Resource & {\n\ttype: RetrievableResourceType\n}\n\n\n// Listable resources\nexport type ListableResourceType = Exclude<ResourceTypeLock,\n\t// ##__API_RESOURCE_NOT_LISTABLE_START__##\n\t'applications'\n|\t'organizations'\n// ##__API_RESOURCE_NOT_LISTABLE_STOP__##\n>\n\nexport type ListableResource = Resource & {\n\ttype: ListableResourceType\n}\n\n\n// Creatable resources\nexport const creatableResources = [\n\t// ##__API_RESOURCE_CREATABLE_START__##\n\t'addresses',\n\t'adjustments',\n\t'adyen_gateways',\n\t'adyen_payments',\n\t'attachments',\n\t'avalara_accounts',\n\t'axerve_gateways',\n\t'axerve_payments',\n\t'bing_geocoders',\n\t'braintree_gateways',\n\t'braintree_payments',\n\t'bundles',\n\t'buy_x_pay_y_promotions',\n\t'carrier_accounts',\n\t'checkout_com_gateways',\n\t'checkout_com_payments',\n\t'cleanups',\n\t'coupon_codes_promotion_rules',\n\t'coupon_recipients',\n\t'coupons',\n\t'custom_promotion_rules',\n\t'customer_addresses',\n\t'customer_groups',\n\t'customer_password_resets',\n\t'customer_payment_sources',\n\t'customer_subscriptions',\n\t'customers',\n\t'delivery_lead_times',\n\t'easypost_pickups',\n\t'exports',\n\t'external_gateways',\n\t'external_payments',\n\t'external_promotions',\n\t'external_tax_calculators',\n\t'fixed_amount_promotions',\n\t'fixed_price_promotions',\n\t'flex_promotions',\n\t'free_gift_promotions',\n\t'free_shipping_promotions',\n\t'gift_card_recipients',\n\t'gift_cards',\n\t'google_geocoders',\n\t'imports',\n\t'in_stock_subscriptions',\n\t'inventory_models',\n\t'inventory_return_locations',\n\t'inventory_stock_locations',\n\t'klarna_gateways',\n\t'klarna_payments',\n\t'line_item_options',\n\t'line_items',\n\t'links',\n\t'manual_gateways',\n\t'manual_tax_calculators',\n\t'markets',\n\t'merchants',\n\t'notifications',\n\t'order_amount_promotion_rules',\n\t'order_copies',\n\t'order_subscription_items',\n\t'order_subscriptions',\n\t'orders',\n\t'packages',\n\t'parcel_line_items',\n\t'parcels',\n\t'payment_methods',\n\t'payment_options',\n\t'paypal_gateways',\n\t'paypal_payments',\n\t'percentage_discount_promotions',\n\t'price_frequency_tiers',\n\t'price_list_schedulers',\n\t'price_lists',\n\t'price_volume_tiers',\n\t'prices',\n\t'recurring_order_copies',\n\t'return_line_items',\n\t'returns',\n\t'satispay_gateways',\n\t'satispay_payments',\n\t'shipments',\n\t'shipping_categories',\n\t'shipping_methods',\n\t'shipping_weight_tiers',\n\t'shipping_zones',\n\t'sku_list_items',\n\t'sku_list_promotion_rules',\n\t'sku_lists',\n\t'sku_options',\n\t'skus',\n\t'stock_items',\n\t'stock_line_items',\n\t'stock_locations',\n\t'stock_reservations',\n\t'stock_transfers',\n\t'stores',\n\t'stripe_gateways',\n\t'stripe_payments',\n\t'stripe_tax_accounts',\n\t'subscription_models',\n\t'tags',\n\t'talon_one_accounts',\n\t'tax_categories',\n\t'tax_rules',\n\t'taxjar_accounts',\n\t'vertex_accounts',\n\t'webhooks',\n\t'wire_transfers'\n\t// ##__API_RESOURCE_CREATABLE_STOP__##\n] as const\n\nexport type CreatableResourceType = typeof creatableResources[number]\nexport type CreatableResource = Resource & {\n\ttype: CreatableResourceType\n}\n\n\n// Updatable resources\nexport const updatableResources = [\n\t// ##__API_RESOURCE_UPDATABLE_START__##\n\t'addresses',\n\t'adjustments',\n\t'adyen_gateways',\n\t'adyen_payments',\n\t'attachments',\n\t'authorizations',\n\t'avalara_accounts',\n\t'axerve_gateways',\n\t'axerve_payments',\n\t'bing_geocoders',\n\t'braintree_gateways',\n\t'braintree_payments',\n\t'bundles',\n\t'buy_x_pay_y_promotions',\n\t'captures',\n\t'carrier_accounts',\n\t'checkout_com_gateways',\n\t'checkout_com_payments',\n\t'cleanups',\n\t'coupon_codes_promotion_rules',\n\t'coupon_recipients',\n\t'coupons',\n\t'custom_promotion_rules',\n\t'customer_addresses',\n\t'customer_groups',\n\t'customer_password_resets',\n\t'customer_payment_sources',\n\t'customer_subscriptions',\n\t'customers',\n\t'delivery_lead_times',\n\t'easypost_pickups',\n\t'events',\n\t'exports',\n\t'external_gateways',\n\t'external_payments',\n\t'external_promotions',\n\t'external_tax_calculators',\n\t'fixed_amount_promotions',\n\t'fixed_price_promotions',\n\t'flex_promotions',\n\t'free_gift_promotions',\n\t'free_shipping_promotions',\n\t'gift_card_recipients',\n\t'gift_cards',\n\t'google_geocoders',\n\t'imports',\n\t'in_stock_subscriptions',\n\t'inventory_models',\n\t'inventory_return_locations',\n\t'inventory_stock_locations',\n\t'klarna_gateways',\n\t'klarna_payments',\n\t'line_item_options',\n\t'line_items',\n\t'links',\n\t'manual_gateways',\n\t'manual_tax_calculators',\n\t'markets',\n\t'merchants',\n\t'notifications',\n\t'order_amount_promotion_rules',\n\t'order_copies',\n\t'order_subscription_items',\n\t'order_subscriptions',\n\t'orders',\n\t'packages',\n\t'parcel_line_items',\n\t'parcels',\n\t'payment_methods',\n\t'payment_options',\n\t'paypal_gateways',\n\t'paypal_payments',\n\t'percentage_discount_promotions',\n\t'price_frequency_tiers',\n\t'price_list_schedulers',\n\t'price_lists',\n\t'price_volume_tiers',\n\t'prices',\n\t'recurring_order_copies',\n\t'refunds',\n\t'return_line_items',\n\t'returns',\n\t'satispay_gateways',\n\t'satispay_payments',\n\t'shipments',\n\t'shipping_categories',\n\t'shipping_methods',\n\t'shipping_weight_tiers',\n\t'shipping_zones',\n\t'sku_list_items',\n\t'sku_list_promotion_rules',\n\t'sku_lists',\n\t'sku_options',\n\t'skus',\n\t'stock_items',\n\t'stock_line_items',\n\t'stock_locations',\n\t'stock_reservations',\n\t'stock_transfers',\n\t'stores',\n\t'stripe_gateways',\n\t'stripe_payments',\n\t'stripe_tax_accounts',\n\t'subscription_models',\n\t'tags',\n\t'talon_one_accounts',\n\t'tax_categories',\n\t'tax_rules',\n\t'taxjar_accounts',\n\t'vertex_accounts',\n\t'voids',\n\t'webhooks',\n\t'wire_transfers'\n\t// ##__API_RESOURCE_UPDATABLE_STOP__##\n] as const\n\nexport type UpdatableResourceType = typeof updatableResources[number]\nexport type UpdatableResource = Resource & {\n\ttype: UpdatableResourceType\n}\n\n\n// Deletable resources\nexport const deletableResources = [\n\t// ##__API_RESOURCE_DELETABLE_START__##\n\t'addresses',\n\t'adjustments',\n\t'adyen_gateways',\n\t'adyen_payments',\n\t'attachments',\n\t'avalara_accounts',\n\t'axerve_gateways',\n\t'axerve_payments',\n\t'bing_geocoders',\n\t'braintree_gateways',\n\t'braintree_payments',\n\t'bundles',\n\t'buy_x_pay_y_promotions',\n\t'carrier_accounts',\n\t'checkout_com_gateways',\n\t'checkout_com_payments',\n\t'cleanups',\n\t'coupon_codes_promotion_rules',\n\t'coupon_recipients',\n\t'coupons',\n\t'custom_promotion_rules',\n\t'customer_addresses',\n\t'customer_groups',\n\t'customer_password_resets',\n\t'customer_payment_sources',\n\t'customer_subscriptions',\n\t'customers',\n\t'delivery_lead_times',\n\t'easypost_pickups',\n\t'exports',\n\t'external_gateways',\n\t'external_payments',\n\t'external_promotions',\n\t'external_tax_calculators',\n\t'fixed_amount_promotions',\n\t'fixed_price_promotions',\n\t'flex_promotions',\n\t'free_gift_promotions',\n\t'free_shipping_promotions',\n\t'gift_card_recipients',\n\t'gift_cards',\n\t'google_geocoders',\n\t'imports',\n\t'in_stock_subscriptions',\n\t'inventory_models',\n\t'inventory_return_locations',\n\t'inventory_stock_locations',\n\t'klarna_gateways',\n\t'klarna_payments',\n\t'line_item_options',\n\t'line_items',\n\t'links',\n\t'manual_gateways',\n\t'manual_tax_calculators',\n\t'markets',\n\t'merchants',\n\t'notifications',\n\t'order_amount_promotion_rules',\n\t'order_copies',\n\t'order_subscription_items',\n\t'order_subscriptions',\n\t'orders',\n\t'packages',\n\t'parcel_line_items',\n\t'parcels',\n\t'payment_methods',\n\t'payment_options',\n\t'paypal_gateways',\n\t'paypal_payments',\n\t'percentage_discount_promotions',\n\t'price_frequency_tiers',\n\t'price_list_schedulers',\n\t'price_lists',\n\t'price_volume_tiers',\n\t'prices',\n\t'recurring_order_copies',\n\t'return_line_items',\n\t'returns',\n\t'satispay_gateways',\n\t'satispay_payments',\n\t'shipments',\n\t'shipping_categories',\n\t'shipping_methods',\n\t'shipping_weight_tiers',\n\t'shipping_zones',\n\t'sku_list_items',\n\t'sku_list_promotion_rules',\n\t'sku_lists',\n\t'sku_options',\n\t'skus',\n\t'stock_items',\n\t'stock_line_items',\n\t'stock_locations',\n\t'stock_reservations',\n\t'stock_transfers',\n\t'stores',\n\t'stripe_gateways',\n\t'stripe_payments',\n\t'stripe_tax_accounts',\n\t'subscription_models',\n\t'tags',\n\t'talon_one_accounts',\n\t'tax_categories',\n\t'tax_rules',\n\t'taxjar_accounts',\n\t'vertex_accounts',\n\t'webhooks',\n\t'wire_transfers'\n\t// ##__API_RESOURCE_DELETABLE_STOP__##\n] as const\n\nexport type DeletableResourceType = typeof deletableResources[number]\nexport type DeletableResource = Resource & {\n\ttype: DeletableResourceType\n}\n\n\n// Taggable resources\nexport const taggableResources = [\n\t// ##__API_RESOURCE_TAGGABLE_START__##\n\t'addresses',\n\t'bundles',\n\t'buy_x_pay_y_promotions',\n\t'coupons',\n\t'customers',\n\t'external_promotions',\n\t'fixed_amount_promotions',\n\t'fixed_price_promotions',\n\t'flex_promotions',\n\t'free_gift_promotions',\n\t'free_shipping_promotions',\n\t'gift_cards',\n\t'line_item_options',\n\t'line_items',\n\t'order_subscriptions',\n\t'orders',\n\t'percentage_discount_promotions',\n\t'promotions',\n\t'returns',\n\t'shipments',\n\t'sku_options',\n\t'skus'\n\t// ##__API_RESOURCE_TAGGABLE_STOP__##\n] as const\n\nexport type TaggableResourceType = typeof taggableResources[number]\nexport type TaggableResource = Resource & {\n\ttype: TaggableResourceType,\n\ttags?: Array<ResourceRel & { type: TagType }> | null\n}\n\n\n// Versionable resources\nexport const versionableResources = [\n\t// ##__API_RESOURCE_VERSIONABLE_START__##\n\t'addresses',\n\t'adjustments',\n\t'adyen_gateways',\n\t'adyen_payments',\n\t'authorizations',\n\t'avalara_accounts',\n\t'axerve_gateways',\n\t'axerve_payments',\n\t'braintree_gateways',\n\t'braintree_payments',\n\t'bundles',\n\t'buy_x_pay_y_promotions',\n\t'captures',\n\t'carrier_accounts',\n\t'checkout_com_gateways',\n\t'checkout_com_payments',\n\t'cleanups',\n\t'coupon_codes_promotion_rules',\n\t'coupon_recipients',\n\t'coupons',\n\t'custom_promotion_rules',\n\t'customer_addresses',\n\t'customer_groups',\n\t'customer_payment_sources',\n\t'customer_subscriptions',\n\t'delivery_lead_times',\n\t'discount_engines',\n\t'exports',\n\t'external_gateways',\n\t'external_payments',\n\t'external_promotions',\n\t'external_tax_calculators',\n\t'fixed_amount_promotions',\n\t'fixed_price_promotions',\n\t'flex_promotions',\n\t'free_gift_promotions',\n\t'free_shipping_promotions',\n\t'gift_card_recipients',\n\t'gift_cards',\n\t'in_stock_subscriptions',\n\t'inventory_models',\n\t'inventory_return_locations',\n\t'inventory_stock_locations',\n\t'klarna_gateways',\n\t'klarna_payments',\n\t'manual_gateways',\n\t'manual_tax_calculators',\n\t'markets',\n\t'merchants',\n\t'order_amount_promotion_rules',\n\t'order_subscriptions',\n\t'orders',\n\t'packages',\n\t'parcel_line_items',\n\t'parcels',\n\t'payment_gateways',\n\t'payment_methods',\n\t'paypal_gateways',\n\t'paypal_payments',\n\t'percentage_discount_promotions',\n\t'price_frequency_tiers',\n\t'price_list_schedulers',\n\t'price_lists',\n\t'price_tiers',\n\t'price_volume_tiers',\n\t'prices',\n\t'promotion_rules',\n\t'promotions',\n\t'refunds',\n\t'reserved_stocks',\n\t'returns',\n\t'satispay_gateways',\n\t'satispay_payments',\n\t'shipments',\n\t'shipping_categories',\n\t'shipping_method_tiers',\n\t'shipping_methods',\n\t'shipping_weight_tiers',\n\t'shipping_zones',\n\t'sku_list_items',\n\t'sku_list_promotion_rules',\n\t'sku_lists',\n\t'sku_options',\n\t'skus',\n\t'stock_items',\n\t'stock_line_items',\n\t'stock_locations',\n\t'stock_transfers',\n\t'stores',\n\t'stripe_gateways',\n\t'stripe_payments',\n\t'stripe_tax_accounts',\n\t'talon_one_accounts',\n\t'tax_calculators',\n\t'tax_categories',\n\t'tax_rules',\n\t'taxjar_accounts',\n\t'transactions',\n\t'vertex_accounts',\n\t'voids',\n\t'webhooks',\n\t'wire_transfers'\n\t// ##__API_RESOURCE_VERSIONABLE_STOP__##\n] as const\n\nexport type VersionableResourceType = typeof versionableResources[number]\nexport type VersionableResource = Resource & {\n\ttype: VersionableResourceType,\n\tversions?: Array<ResourceRel & { type: VersionType }> | null\n}\n\n\n\n// Utility functions\nexport function getResources(sort?: boolean): readonly ResourceTypeLock[] {\n\treturn sort? [ ...resourceList ].sort() : resourceList\n}\n\nexport function getSingletons(sort?: boolean): readonly string[] {\n\treturn sort? [ ...singletonList ].sort() : singletonList\n}\n\nexport function isSingleton(resource: ResourceTypeLock): boolean {\n\treturn singletonList.includes(resource as any)\n}\n\nexport function isCreatable(resource: ResourceTypeLock): boolean {\n\treturn creatableResources.includes(resource as any)\n}\n\nexport function isUpdatable(resource: ResourceTypeLock): boolean {\n\treturn updatableResources.includes(resource as any)\n}\n\nexport function isDeletable(resource: ResourceTypeLock): boolean {\n\treturn deletableResources.includes(resource as any)\n}\n\nexport function isTaggable(resource: ResourceTypeLock): boolean {\n\treturn taggableResources.includes(resource as any)\n}\n\nexport function isVersionable(resource: ResourceTypeLock): boolean {\n\treturn versionableResources.includes(resource as any)\n}\n\n\n\n// Helper types\nexport type ResourceFields = {\n\t// ##__API_RESOURCE_FIELDS_START__##\n\taddresses: models.Address,\n\tadjustments: models.Adjustment,\n\tadyen_gateways: models.AdyenGateway,\n\tadyen_payments: models.AdyenPayment,\n\tapplications: models.Application,\n\tattachments: models.Attachment,\n\tauthorizations: models.Authorization,\n\tavalara_accounts: models.AvalaraAccount,\n\taxerve_gateways: models.AxerveGateway,\n\taxerve_payments: models.AxervePayment,\n\tbing_geocoders: models.BingGeocoder,\n\tbraintree_gateways: models.BraintreeGateway,\n\tbraintree_payments: models.BraintreePayment,\n\tbundles: models.Bundle,\n\tbuy_x_pay_y_promotions: models.BuyXPayYPromotion,\n\tcaptures: models.Capture,\n\tcarrier_accounts: models.CarrierAccount,\n\tcheckout_com_gateways: models.CheckoutComGateway,\n\tcheckout_com_payments: models.CheckoutComPayment,\n\tcleanups: models.Cleanup,\n\tcoupon_codes_promotion_rules: models.CouponCodesPromotionRule,\n\tcoupon_recipients: models.CouponRecipient,\n\tcoupons: models.Coupon,\n\tcustom_promotion_rules: models.CustomPromotionRule,\n\tcustomer_addresses: models.CustomerAddress,\n\tcustomer_groups: models.CustomerGroup,\n\tcustomer_password_resets: models.CustomerPasswordReset,\n\tcustomer_payment_sources: models.CustomerPaymentSource,\n\tcustomer_subscriptions: models.CustomerSubscription,\n\tcustomers: models.Customer,\n\tdelivery_lead_times: models.DeliveryLeadTime,\n\tdiscount_engine_items: models.DiscountEngineItem,\n\tdiscount_engines: models.DiscountEngine,\n\teasypost_pickups: models.EasypostPickup,\n\tevent_callbacks: models.EventCallback,\n\tevents: models.Event,\n\texports: models.Export,\n\texternal_gateways: models.ExternalGateway,\n\texternal_payments: models.ExternalPayment,\n\texternal_promotions: models.ExternalPromotion,\n\texternal_tax_calculators: models.ExternalTaxCalculator,\n\tfixed_amount_promotions: models.FixedAmountPromotion,\n\tfixed_price_promotions: models.FixedPricePromotion,\n\tflex_promotions: models.FlexPromotion,\n\tfree_gift_promotions: models.FreeGiftPromotion,\n\tfree_shipping_promotions: models.FreeShippingPromotion,\n\tgeocoders: models.Geocoder,\n\tgift_card_recipients: models.GiftCardRecipient,\n\tgift_cards: models.GiftCard,\n\tgoogle_geocoders: models.GoogleGeocoder,\n\timports: models.Import,\n\tin_stock_subscriptions: models.InStockSubscription,\n\tinventory_models: models.InventoryModel,\n\tinventory_return_locations: models.InventoryReturnLocation,\n\tinventory_stock_locations: models.InventoryStockLocation,\n\tklarna_gateways: models.KlarnaGateway,\n\tklarna_payments: models.KlarnaPayment,\n\tline_item_options: models.LineItemOption,\n\tline_items: models.LineItem,\n\tlinks: models.Link,\n\tmanual_gateways: models.ManualGateway,\n\tmanual_tax_calculators: models.ManualTaxCalculator,\n\tmarkets: models.Market,\n\tmerchants: models.Merchant,\n\tnotifications: models.Notification,\n\torder_amount_promotion_rules: models.OrderAmountPromotionRule,\n\torder_copies: models.OrderCopy,\n\torder_factories: models.OrderFactory,\n\torder_subscription_items: models.OrderSubscriptionItem,\n\torder_subscriptions: models.OrderSubscription,\n\torders: models.Order,\n\torganizations: models.Organization,\n\tpackages: models.Package,\n\tparcel_line_items: models.ParcelLineItem,\n\tparcels: models.Parcel,\n\tpayment_gateways: models.PaymentGateway,\n\tpayment_methods: models.PaymentMethod,\n\tpayment_options: models.PaymentOption,\n\tpaypal_gateways: models.PaypalGateway,\n\tpaypal_payments: models.PaypalPayment,\n\tpercentage_discount_promotions: models.PercentageDiscountPromotion,\n\tpickups: models.Pickup,\n\tprice_frequency_tiers: models.PriceFrequencyTier,\n\tprice_list_schedulers: models.PriceListScheduler,\n\tprice_lists: models.PriceList,\n\tprice_tiers: models.PriceTier,\n\tprice_volume_tiers: models.PriceVolumeTier,\n\tprices: models.Price,\n\tpromotion_rules: models.PromotionRule,\n\tpromotions: models.Promotion,\n\trecurring_order_copies: models.RecurringOrderCopy,\n\trefunds: models.Refund,\n\treserved_stocks: models.ReservedStock,\n\tresource_errors: models.ResourceError,\n\treturn_line_items: models.ReturnLineItem,\n\treturns: models.Return,\n\tsatispay_gateways: models.SatispayGateway,\n\tsatispay_payments: models.SatispayPayment,\n\tshipments: models.Shipment,\n\tshipping_categories: models.ShippingCategory,\n\tshipping_method_tiers: models.ShippingMethodTier,\n\tshipping_methods: models.ShippingMethod,\n\tshipping_weight_tiers: models.ShippingWeightTier,\n\tshipping_zones: models.ShippingZone,\n\tsku_list_items: models.SkuListItem,\n\tsku_list_promotion_rules: models.SkuListPromotionRule,\n\tsku_lists: models.SkuList,\n\tsku_options: models.SkuOption,\n\tskus: models.Sku,\n\tstock_items: models.StockItem,\n\tstock_line_items: models.StockLineItem,\n\tstock_locations: models.StockLocation,\n\tstock_reservations: models.StockReservation,\n\tstock_transfers: models.StockTransfer,\n\tstores: models.Store,\n\tstripe_gateways: models.StripeGateway,\n\tstripe_payments: models.StripePayment,\n\tstripe_tax_accounts: models.StripeTaxAccount,\n\tsubscription_models: models.SubscriptionModel,\n\ttags: models.Tag,\n\ttalon_one_accounts: models.TalonOneAccount,\n\ttax_calculators: models.TaxCalculator,\n\ttax_categories: models.TaxCategory,\n\ttax_rules: models.TaxRule,\n\ttaxjar_accounts: models.TaxjarAccount,\n\ttransactions: models.Transaction,\n\tversions: models.Version,\n\tvertex_accounts: models.VertexAccount,\n\tvoids: models.Void,\n\twebhooks: models.Webhook,\n\twire_transfers: models.WireTransfer\n\t// ##__API_RESOURCE_FIELDS_STOP__##\n}\n\n\nexport type ResourceSortFields = {\n\t// ##__API_RESOURCE_SORTABLE_FIELDS_START__##\n\taddresses: models.AddressSort,\n\tadjustments: models.AdjustmentSort,\n\tadyen_gateways: models.AdyenGatewaySort,\n\tadyen_payments: models.AdyenPaymentSort,\n\tapplications: models.ApplicationSort,\n\tattachments: models.AttachmentSort,\n\tauthorizations: models.AuthorizationSort,\n\tavalara_accounts: models.AvalaraAccountSort,\n\taxerve_gateways: models.AxerveGatewaySort,\n\taxerve_payments: models.AxervePaymentSort,\n\tbing_geocoders: models.BingGeocoderSort,\n\tbraintree_gateways: models.BraintreeGatewaySort,\n\tbraintree_payments: models.BraintreePaymentSort,\n\tbundles: models.BundleSort,\n\tbuy_x_pay_y_promotions: models.BuyXPayYPromotionSort,\n\tcaptures: models.CaptureSort,\n\tcarrier_accounts: models.CarrierAccountSort,\n\tcheckout_com_gateways: models.CheckoutComGatewaySort,\n\tcheckout_com_payments: models.CheckoutComPaymentSort,\n\tcleanups: models.CleanupSort,\n\tcoupon_codes_promotion_rules: models.CouponCodesPromotionRuleSort,\n\tcoupon_recipients: models.CouponRecipientSort,\n\tcoupons: models.CouponSort,\n\tcustom_promotion_rules: models.CustomPromotionRuleSort,\n\tcustomer_addresses: models.CustomerAddressSort,\n\tcustomer_groups: models.CustomerGroupSort,\n\tcustomer_password_resets: models.CustomerPasswordResetSort,\n\tcustomer_payment_sources: models.CustomerPaymentSourceSort,\n\tcustomer_subscriptions: models.CustomerSubscriptionSort,\n\tcustomers: models.CustomerSort,\n\tdelivery_lead_times: models.DeliveryLeadTimeSort,\n\tdiscount_engine_items: models.DiscountEngineItemSort,\n\tdiscount_engines: models.DiscountEngineSort,\n\teasypost_pickups: models.EasypostPickupSort,\n\tevent_callbacks: models.EventCallbackSort,\n\tevents: models.EventSort,\n\texports: models.ExportSort,\n\texternal_gateways: models.ExternalGatewaySort,\n\texternal_payments: models.ExternalPaymentSort,\n\texternal_promotions: models.ExternalPromotionSort,\n\texternal_tax_calculators: models.ExternalTaxCalculatorSort,\n\tfixed_amount_promotions: models.FixedAmountPromotionSort,\n\tfixed_price_promotions: models.FixedPricePromotionSort,\n\tflex_promotions: models.FlexPromotionSort,\n\tfree_gift_promotions: models.FreeGiftPromotionSort,\n\tfree_shipping_promotions: models.FreeShippingPromotionSort,\n\tgeocoders: models.GeocoderSort,\n\tgift_card_recipients: models.GiftCardRecipientSort,\n\tgift_cards: models.GiftCardSort,\n\tgoogle_geocoders: models.GoogleGeocoderSort,\n\timports: models.ImportSort,\n\tin_stock_subscriptions: models.InStockSubscriptionSort,\n\tinventory_models: models.InventoryModelSort,\n\tinventory_return_locations: models.InventoryReturnLocationSort,\n\tinventory_stock_locations: models.InventoryStockLocationSort,\n\tklarna_gateways: models.KlarnaGatewaySort,\n\tklarna_payments: models.KlarnaPaymentSort,\n\tline_item_options: models.LineItemOptionSort,\n\tline_items: models.LineItemSort,\n\tlinks: models.LinkSort,\n\tmanual_gateways: models.ManualGatewaySort,\n\tmanual_tax_calculators: models.ManualTaxCalculatorSort,\n\tmarkets: models.MarketSort,\n\tmerchants: models.MerchantSort,\n\tnotifications: models.NotificationSort,\n\torder_amount_promotion_rules: models.OrderAmountPromotionRuleSort,\n\torder_copies: models.OrderCopySort,\n\torder_factories: models.OrderFactorySort,\n\torder_subscription_items: models.OrderSubscriptionItemSort,\n\torder_subscriptions: models.OrderSubscriptionSort,\n\torders: models.OrderSort,\n\torganizations: models.OrganizationSort,\n\tpackages: models.PackageSort,\n\tparcel_line_items: models.ParcelLineItemSort,\n\tparcels: models.ParcelSort,\n\tpayment_gateways: models.PaymentGatewaySort,\n\tpayment_methods: models.PaymentMethodSort,\n\tpayment_options: models.PaymentOptionSort,\n\tpaypal_gateways: models.PaypalGatewaySort,\n\tpaypal_payments: models.PaypalPaymentSort,\n\tpercentage_discount_promotions: models.PercentageDiscountPromotionSort,\n\tpickups: models.PickupSort,\n\tprice_frequency_tiers: models.PriceFrequencyTierSort,\n\tprice_list_schedulers: models.PriceListSchedulerSort,\n\tprice_lists: models.PriceListSort,\n\tprice_tiers: models.PriceTierSort,\n\tprice_volume_tiers: models.PriceVolumeTierSort,\n\tprices: models.PriceSort,\n\tpromotion_rules: models.PromotionRuleSort,\n\tpromotions: models.PromotionSort,\n\trecurring_order_copies: models.RecurringOrderCopySort,\n\trefunds: models.RefundSort,\n\treserved_stocks: models.ReservedStockSort,\n\tresource_errors: models.ResourceErrorSort,\n\treturn_line_items: models.ReturnLineItemSort,\n\treturns: models.ReturnSort,\n\tsatispay_gateways: models.SatispayGatewaySort,\n\tsatispay_payments: models.SatispayPaymentSort,\n\tshipments: models.ShipmentSort,\n\tshipping_categories: models.ShippingCategorySort,\n\tshipping_method_tiers: models.ShippingMethodTierSort,\n\tshipping_methods: models.ShippingMethodSort,\n\tshipping_weight_tiers: models.ShippingWeightTierSort,\n\tshipping_zones: models.ShippingZoneSort,\n\tsku_list_items: models.SkuListItemSort,\n\tsku_list_promotion_rules: models.SkuListPromotionRuleSort,\n\tsku_lists: models.SkuListSort,\n\tsku_options: models.SkuOptionSort,\n\tskus: models.SkuSort,\n\tstock_items: models.StockItemSort,\n\tstock_line_items: models.StockLineItemSort,\n\tstock_locations: models.StockLocationSort,\n\tstock_reservations: models.StockReservationSort,\n\tstock_transfers: models.StockTransferSort,\n\tstores: models.StoreSort,\n\tstripe_gateways: models.StripeGatewaySort,\n\tstripe_payments: models.StripePaymentSort,\n\tstripe_tax_accounts: models.StripeTaxAccountSort,\n\tsubscription_models: models.SubscriptionModelSort,\n\ttags: models.TagSort,\n\ttalon_one_accounts: models.TalonOneAccountSort,\n\ttax_calculators: models.TaxCalculatorSort,\n\ttax_categories: models.TaxCategorySort,\n\ttax_rules: models.TaxRuleSort,\n\ttaxjar_accounts: models.TaxjarAccountSort,\n\ttransactions: models.TransactionSort,\n\tversions: models.VersionSort,\n\tvertex_accounts: models.VertexAccountSort,\n\tvoids: models.VoidSort,\n\twebhooks: models.WebhookSort,\n\twire_transfers: models.WireTransferSort\n\t// ##__API_RESOURCE_SORTABLE_FIELDS_STOP__##\n}\n"]}
|
1
|
+
{"version":3,"sources":["../src/enum.ts"],"names":[],"mappings":";;;AAOA,IAAM,YAAA,GAAe;AAAA;AAAA,EAEpB,WAAA;AAAA,EACA,aAAA;AAAA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,EAAqC;AAChE,EAAA,OAAO,kBAAA,CAAmB,SAAS,QAAe,CAAA;AACnD;AAEO,SAAS,WAAW,QAAA,EAAqC;AAC/D,EAAA,OAAO,iBAAA,CAAkB,SAAS,QAAe,CAAA;AAClD;AAEO,SAAS,cAAc,QAAA,EAAqC;AAClE,EAAA,OAAO,oBAAA,CAAqB,SAAS,QAAe,CAAA;AACrD","file":"chunk-X6PHZA6P.cjs","sourcesContent":["import type { Resource, ResourceRel } from './resource'\nimport type { TagType } from './resources/tags'\nimport type { VersionType } from './resources/versions'\nimport type * as models from './model'\n\n\n\nconst apiResources = [\n\t// ##__API_RESOURCE_LIST_START__##\n\t'addresses',\n\t'adjustments',\n\t'adyen_gateways',\n\t'adyen_payments',\n\t'applications',\n\t'attachments',\n\t'authorizations',\n\t'avalara_accounts',\n\t'axerve_gateways',\n\t'axerve_payments',\n\t'bing_geocoders',\n\t'braintree_gateways',\n\t'braintree_payments',\n\t'bundles',\n\t'buy_x_pay_y_promotions',\n\t'captures',\n\t'carrier_accounts',\n\t'checkout_com_gateways',\n\t'checkout_com_payments',\n\t'cleanups',\n\t'coupon_codes_promotion_rules',\n\t'coupon_recipients',\n\t'coupons',\n\t'custom_promotion_rules',\n\t'customer_addresses',\n\t'customer_groups',\n\t'customer_password_resets',\n\t'customer_payment_sources',\n\t'customer_subscriptions',\n\t'customers',\n\t'delivery_lead_times',\n\t'discount_engine_items',\n\t'discount_engines',\n\t'easypost_pickups',\n\t'event_callbacks',\n\t'events',\n\t'exports',\n\t'external_gateways',\n\t'external_payments',\n\t'external_promotions',\n\t'external_tax_calculators',\n\t'fixed_amount_promotions',\n\t'fixed_price_promotions',\n\t'flex_promotions',\n\t'free_gift_promotions',\n\t'free_shipping_promotions',\n\t'geocoders',\n\t'gift_card_recipients',\n\t'gift_cards',\n\t'google_geocoders',\n\t'imports',\n\t'in_stock_subscriptions',\n\t'inventory_models',\n\t'inventory_return_locations',\n\t'inventory_stock_locations',\n\t'klarna_gateways',\n\t'klarna_payments',\n\t'line_item_options',\n\t'line_items',\n\t'links',\n\t'manual_gateways',\n\t'manual_tax_calculators',\n\t'markets',\n\t'merchants',\n\t'notifications',\n\t'order_amount_promotion_rules',\n\t'order_copies',\n\t'order_factories',\n\t'order_subscription_items',\n\t'order_subscriptions',\n\t'orders',\n\t'organizations',\n\t'packages',\n\t'parcel_line_items',\n\t'parcels',\n\t'payment_gateways',\n\t'payment_methods',\n\t'payment_options',\n\t'paypal_gateways',\n\t'paypal_payments',\n\t'percentage_discount_promotions',\n\t'pickups',\n\t'price_frequency_tiers',\n\t'price_list_schedulers',\n\t'price_lists',\n\t'price_tiers',\n\t'price_volume_tiers',\n\t'prices',\n\t'promotion_rules',\n\t'promotions',\n\t'recurring_order_copies',\n\t'refunds',\n\t'reserved_stocks',\n\t'resource_errors',\n\t'return_line_items',\n\t'returns',\n\t'satispay_gateways',\n\t'satispay_payments',\n\t'shipments',\n\t'shipping_categories',\n\t'shipping_method_tiers',\n\t'shipping_methods',\n\t'shipping_weight_tiers',\n\t'shipping_zones',\n\t'sku_list_items',\n\t'sku_list_promotion_rules',\n\t'sku_lists',\n\t'sku_options',\n\t'skus',\n\t'stock_items',\n\t'stock_line_items',\n\t'stock_locations',\n\t'stock_reservations',\n\t'stock_transfers',\n\t'stores',\n\t'stripe_gateways',\n\t'stripe_payments',\n\t'stripe_tax_accounts',\n\t'subscription_models',\n\t'tags',\n\t'talon_one_accounts',\n\t'tax_calculators',\n\t'tax_categories',\n\t'tax_rules',\n\t'taxjar_accounts',\n\t'transactions',\n\t'versions',\n\t'vertex_accounts',\n\t'voids',\n\t'webhooks',\n\t'wire_transfers'\n\t// ##__API_RESOURCE_LIST_STOP__##\n] as const\n\nexport type ResourceTypeLock = typeof apiResources[number]\nexport const resourceList: Readonly<ResourceTypeLock[]> = apiResources\n\n\n// Singleton resources\nexport const singletonList = [\n\t// ##__API_RESOURCE_SINGLETON_START__##\n\t'applications',\n\t'organizations'\n\t// ##__API_RESOURCE_SINGLETON_STOP__##\n] as const\n\n\n// Retrievable resources\nexport type RetrievableResourceType = ResourceTypeLock\n\nexport type RetrievableResource = Resource & {\n\ttype: RetrievableResourceType\n}\n\n\n// Listable resources\nexport type ListableResourceType = Exclude<ResourceTypeLock,\n\t// ##__API_RESOURCE_NOT_LISTABLE_START__##\n\t'applications'\n|\t'organizations'\n// ##__API_RESOURCE_NOT_LISTABLE_STOP__##\n>\n\nexport type ListableResource = Resource & {\n\ttype: ListableResourceType\n}\n\n\n// Creatable resources\nexport const creatableResources = [\n\t// ##__API_RESOURCE_CREATABLE_START__##\n\t'addresses',\n\t'adjustments',\n\t'adyen_gateways',\n\t'adyen_payments',\n\t'attachments',\n\t'avalara_accounts',\n\t'axerve_gateways',\n\t'axerve_payments',\n\t'bing_geocoders',\n\t'braintree_gateways',\n\t'braintree_payments',\n\t'bundles',\n\t'buy_x_pay_y_promotions',\n\t'carrier_accounts',\n\t'checkout_com_gateways',\n\t'checkout_com_payments',\n\t'cleanups',\n\t'coupon_codes_promotion_rules',\n\t'coupon_recipients',\n\t'coupons',\n\t'custom_promotion_rules',\n\t'customer_addresses',\n\t'customer_groups',\n\t'customer_password_resets',\n\t'customer_payment_sources',\n\t'customer_subscriptions',\n\t'customers',\n\t'delivery_lead_times',\n\t'easypost_pickups',\n\t'exports',\n\t'external_gateways',\n\t'external_payments',\n\t'external_promotions',\n\t'external_tax_calculators',\n\t'fixed_amount_promotions',\n\t'fixed_price_promotions',\n\t'flex_promotions',\n\t'free_gift_promotions',\n\t'free_shipping_promotions',\n\t'gift_card_recipients',\n\t'gift_cards',\n\t'google_geocoders',\n\t'imports',\n\t'in_stock_subscriptions',\n\t'inventory_models',\n\t'inventory_return_locations',\n\t'inventory_stock_locations',\n\t'klarna_gateways',\n\t'klarna_payments',\n\t'line_item_options',\n\t'line_items',\n\t'links',\n\t'manual_gateways',\n\t'manual_tax_calculators',\n\t'markets',\n\t'merchants',\n\t'notifications',\n\t'order_amount_promotion_rules',\n\t'order_copies',\n\t'order_subscription_items',\n\t'order_subscriptions',\n\t'orders',\n\t'packages',\n\t'parcel_line_items',\n\t'parcels',\n\t'payment_methods',\n\t'payment_options',\n\t'paypal_gateways',\n\t'paypal_payments',\n\t'percentage_discount_promotions',\n\t'price_frequency_tiers',\n\t'price_list_schedulers',\n\t'price_lists',\n\t'price_volume_tiers',\n\t'prices',\n\t'recurring_order_copies',\n\t'return_line_items',\n\t'returns',\n\t'satispay_gateways',\n\t'satispay_payments',\n\t'shipments',\n\t'shipping_categories',\n\t'shipping_methods',\n\t'shipping_weight_tiers',\n\t'shipping_zones',\n\t'sku_list_items',\n\t'sku_list_promotion_rules',\n\t'sku_lists',\n\t'sku_options',\n\t'skus',\n\t'stock_items',\n\t'stock_line_items',\n\t'stock_locations',\n\t'stock_reservations',\n\t'stock_transfers',\n\t'stores',\n\t'stripe_gateways',\n\t'stripe_payments',\n\t'stripe_tax_accounts',\n\t'subscription_models',\n\t'tags',\n\t'talon_one_accounts',\n\t'tax_categories',\n\t'tax_rules',\n\t'taxjar_accounts',\n\t'vertex_accounts',\n\t'webhooks',\n\t'wire_transfers'\n\t// ##__API_RESOURCE_CREATABLE_STOP__##\n] as const\n\nexport type CreatableResourceType = typeof creatableResources[number]\nexport type CreatableResource = Resource & {\n\ttype: CreatableResourceType\n}\n\n\n// Updatable resources\nexport const updatableResources = [\n\t// ##__API_RESOURCE_UPDATABLE_START__##\n\t'addresses',\n\t'adjustments',\n\t'adyen_gateways',\n\t'adyen_payments',\n\t'attachments',\n\t'authorizations',\n\t'avalara_accounts',\n\t'axerve_gateways',\n\t'axerve_payments',\n\t'bing_geocoders',\n\t'braintree_gateways',\n\t'braintree_payments',\n\t'bundles',\n\t'buy_x_pay_y_promotions',\n\t'captures',\n\t'carrier_accounts',\n\t'checkout_com_gateways',\n\t'checkout_com_payments',\n\t'cleanups',\n\t'coupon_codes_promotion_rules',\n\t'coupon_recipients',\n\t'coupons',\n\t'custom_promotion_rules',\n\t'customer_addresses',\n\t'customer_groups',\n\t'customer_password_resets',\n\t'customer_payment_sources',\n\t'customer_subscriptions',\n\t'customers',\n\t'delivery_lead_times',\n\t'easypost_pickups',\n\t'events',\n\t'exports',\n\t'external_gateways',\n\t'external_payments',\n\t'external_promotions',\n\t'external_tax_calculators',\n\t'fixed_amount_promotions',\n\t'fixed_price_promotions',\n\t'flex_promotions',\n\t'free_gift_promotions',\n\t'free_shipping_promotions',\n\t'gift_card_recipients',\n\t'gift_cards',\n\t'google_geocoders',\n\t'imports',\n\t'in_stock_subscriptions',\n\t'inventory_models',\n\t'inventory_return_locations',\n\t'inventory_stock_locations',\n\t'klarna_gateways',\n\t'klarna_payments',\n\t'line_item_options',\n\t'line_items',\n\t'links',\n\t'manual_gateways',\n\t'manual_tax_calculators',\n\t'markets',\n\t'merchants',\n\t'notifications',\n\t'order_amount_promotion_rules',\n\t'order_copies',\n\t'order_subscription_items',\n\t'order_subscriptions',\n\t'orders',\n\t'packages',\n\t'parcel_line_items',\n\t'parcels',\n\t'payment_methods',\n\t'payment_options',\n\t'paypal_gateways',\n\t'paypal_payments',\n\t'percentage_discount_promotions',\n\t'price_frequency_tiers',\n\t'price_list_schedulers',\n\t'price_lists',\n\t'price_volume_tiers',\n\t'prices',\n\t'recurring_order_copies',\n\t'refunds',\n\t'return_line_items',\n\t'returns',\n\t'satispay_gateways',\n\t'satispay_payments',\n\t'shipments',\n\t'shipping_categories',\n\t'shipping_methods',\n\t'shipping_weight_tiers',\n\t'shipping_zones',\n\t'sku_list_items',\n\t'sku_list_promotion_rules',\n\t'sku_lists',\n\t'sku_options',\n\t'skus',\n\t'stock_items',\n\t'stock_line_items',\n\t'stock_locations',\n\t'stock_reservations',\n\t'stock_transfers',\n\t'stores',\n\t'stripe_gateways',\n\t'stripe_payments',\n\t'stripe_tax_accounts',\n\t'subscription_models',\n\t'tags',\n\t'talon_one_accounts',\n\t'tax_categories',\n\t'tax_rules',\n\t'taxjar_accounts',\n\t'vertex_accounts',\n\t'voids',\n\t'webhooks',\n\t'wire_transfers'\n\t// ##__API_RESOURCE_UPDATABLE_STOP__##\n] as const\n\nexport type UpdatableResourceType = typeof updatableResources[number]\nexport type UpdatableResource = Resource & {\n\ttype: UpdatableResourceType\n}\n\n\n// Deletable resources\nexport const deletableResources = [\n\t// ##__API_RESOURCE_DELETABLE_START__##\n\t'addresses',\n\t'adjustments',\n\t'adyen_gateways',\n\t'adyen_payments',\n\t'attachments',\n\t'avalara_accounts',\n\t'axerve_gateways',\n\t'axerve_payments',\n\t'bing_geocoders',\n\t'braintree_gateways',\n\t'braintree_payments',\n\t'bundles',\n\t'buy_x_pay_y_promotions',\n\t'carrier_accounts',\n\t'checkout_com_gateways',\n\t'checkout_com_payments',\n\t'cleanups',\n\t'coupon_codes_promotion_rules',\n\t'coupon_recipients',\n\t'coupons',\n\t'custom_promotion_rules',\n\t'customer_addresses',\n\t'customer_groups',\n\t'customer_password_resets',\n\t'customer_payment_sources',\n\t'customer_subscriptions',\n\t'customers',\n\t'delivery_lead_times',\n\t'easypost_pickups',\n\t'exports',\n\t'external_gateways',\n\t'external_payments',\n\t'external_promotions',\n\t'external_tax_calculators',\n\t'fixed_amount_promotions',\n\t'fixed_price_promotions',\n\t'flex_promotions',\n\t'free_gift_promotions',\n\t'free_shipping_promotions',\n\t'gift_card_recipients',\n\t'gift_cards',\n\t'google_geocoders',\n\t'imports',\n\t'in_stock_subscriptions',\n\t'inventory_models',\n\t'inventory_return_locations',\n\t'inventory_stock_locations',\n\t'klarna_gateways',\n\t'klarna_payments',\n\t'line_item_options',\n\t'line_items',\n\t'links',\n\t'manual_gateways',\n\t'manual_tax_calculators',\n\t'markets',\n\t'merchants',\n\t'notifications',\n\t'order_amount_promotion_rules',\n\t'order_copies',\n\t'order_subscription_items',\n\t'order_subscriptions',\n\t'orders',\n\t'packages',\n\t'parcel_line_items',\n\t'parcels',\n\t'payment_methods',\n\t'payment_options',\n\t'paypal_gateways',\n\t'paypal_payments',\n\t'percentage_discount_promotions',\n\t'price_frequency_tiers',\n\t'price_list_schedulers',\n\t'price_lists',\n\t'price_volume_tiers',\n\t'prices',\n\t'recurring_order_copies',\n\t'return_line_items',\n\t'returns',\n\t'satispay_gateways',\n\t'satispay_payments',\n\t'shipments',\n\t'shipping_categories',\n\t'shipping_methods',\n\t'shipping_weight_tiers',\n\t'shipping_zones',\n\t'sku_list_items',\n\t'sku_list_promotion_rules',\n\t'sku_lists',\n\t'sku_options',\n\t'skus',\n\t'stock_items',\n\t'stock_line_items',\n\t'stock_locations',\n\t'stock_reservations',\n\t'stock_transfers',\n\t'stores',\n\t'stripe_gateways',\n\t'stripe_payments',\n\t'stripe_tax_accounts',\n\t'subscription_models',\n\t'tags',\n\t'talon_one_accounts',\n\t'tax_categories',\n\t'tax_rules',\n\t'taxjar_accounts',\n\t'vertex_accounts',\n\t'webhooks',\n\t'wire_transfers'\n\t// ##__API_RESOURCE_DELETABLE_STOP__##\n] as const\n\nexport type DeletableResourceType = typeof deletableResources[number]\nexport type DeletableResource = Resource & {\n\ttype: DeletableResourceType\n}\n\n\n// Taggable resources\nexport const taggableResources = [\n\t// ##__API_RESOURCE_TAGGABLE_START__##\n\t'addresses',\n\t'bundles',\n\t'buy_x_pay_y_promotions',\n\t'coupons',\n\t'customers',\n\t'external_promotions',\n\t'fixed_amount_promotions',\n\t'fixed_price_promotions',\n\t'flex_promotions',\n\t'free_gift_promotions',\n\t'free_shipping_promotions',\n\t'gift_cards',\n\t'line_item_options',\n\t'line_items',\n\t'order_subscriptions',\n\t'orders',\n\t'percentage_discount_promotions',\n\t'promotions',\n\t'returns',\n\t'shipments',\n\t'sku_options',\n\t'skus'\n\t// ##__API_RESOURCE_TAGGABLE_STOP__##\n] as const\n\nexport type TaggableResourceType = typeof taggableResources[number]\nexport type TaggableResource = Resource & {\n\ttype: TaggableResourceType,\n\ttags?: Array<ResourceRel & { type: TagType }> | null\n}\n\n\n// Versionable resources\nexport const versionableResources = [\n\t// ##__API_RESOURCE_VERSIONABLE_START__##\n\t'addresses',\n\t'adjustments',\n\t'adyen_gateways',\n\t'adyen_payments',\n\t'authorizations',\n\t'avalara_accounts',\n\t'axerve_gateways',\n\t'axerve_payments',\n\t'braintree_gateways',\n\t'braintree_payments',\n\t'bundles',\n\t'buy_x_pay_y_promotions',\n\t'captures',\n\t'carrier_accounts',\n\t'checkout_com_gateways',\n\t'checkout_com_payments',\n\t'cleanups',\n\t'coupon_codes_promotion_rules',\n\t'coupon_recipients',\n\t'coupons',\n\t'custom_promotion_rules',\n\t'customer_addresses',\n\t'customer_groups',\n\t'customer_payment_sources',\n\t'customer_subscriptions',\n\t'delivery_lead_times',\n\t'discount_engines',\n\t'exports',\n\t'external_gateways',\n\t'external_payments',\n\t'external_promotions',\n\t'external_tax_calculators',\n\t'fixed_amount_promotions',\n\t'fixed_price_promotions',\n\t'flex_promotions',\n\t'free_gift_promotions',\n\t'free_shipping_promotions',\n\t'gift_card_recipients',\n\t'gift_cards',\n\t'in_stock_subscriptions',\n\t'inventory_models',\n\t'inventory_return_locations',\n\t'inventory_stock_locations',\n\t'klarna_gateways',\n\t'klarna_payments',\n\t'manual_gateways',\n\t'manual_tax_calculators',\n\t'markets',\n\t'merchants',\n\t'order_amount_promotion_rules',\n\t'order_subscriptions',\n\t'orders',\n\t'packages',\n\t'parcel_line_items',\n\t'parcels',\n\t'payment_gateways',\n\t'payment_methods',\n\t'paypal_gateways',\n\t'paypal_payments',\n\t'percentage_discount_promotions',\n\t'price_frequency_tiers',\n\t'price_list_schedulers',\n\t'price_lists',\n\t'price_tiers',\n\t'price_volume_tiers',\n\t'prices',\n\t'promotion_rules',\n\t'promotions',\n\t'refunds',\n\t'reserved_stocks',\n\t'returns',\n\t'satispay_gateways',\n\t'satispay_payments',\n\t'shipments',\n\t'shipping_categories',\n\t'shipping_method_tiers',\n\t'shipping_methods',\n\t'shipping_weight_tiers',\n\t'shipping_zones',\n\t'sku_list_items',\n\t'sku_list_promotion_rules',\n\t'sku_lists',\n\t'sku_options',\n\t'skus',\n\t'stock_items',\n\t'stock_line_items',\n\t'stock_locations',\n\t'stock_transfers',\n\t'stores',\n\t'stripe_gateways',\n\t'stripe_payments',\n\t'stripe_tax_accounts',\n\t'talon_one_accounts',\n\t'tax_calculators',\n\t'tax_categories',\n\t'tax_rules',\n\t'taxjar_accounts',\n\t'transactions',\n\t'vertex_accounts',\n\t'voids',\n\t'webhooks',\n\t'wire_transfers'\n\t// ##__API_RESOURCE_VERSIONABLE_STOP__##\n] as const\n\nexport type VersionableResourceType = typeof versionableResources[number]\nexport type VersionableResource = Resource & {\n\ttype: VersionableResourceType,\n\tversions?: Array<ResourceRel & { type: VersionType }> | null\n}\n\n\n\n// Utility functions\nexport function getResources(sort?: boolean): readonly ResourceTypeLock[] {\n\treturn sort? [ ...resourceList ].sort() : resourceList\n}\n\nexport function getSingletons(sort?: boolean): readonly string[] {\n\treturn sort? [ ...singletonList ].sort() : singletonList\n}\n\nexport function isSingleton(resource: ResourceTypeLock): boolean {\n\treturn singletonList.includes(resource as any)\n}\n\nexport function isCreatable(resource: ResourceTypeLock): boolean {\n\treturn creatableResources.includes(resource as any)\n}\n\nexport function isUpdatable(resource: ResourceTypeLock): boolean {\n\treturn updatableResources.includes(resource as any)\n}\n\nexport function isDeletable(resource: ResourceTypeLock): boolean {\n\treturn deletableResources.includes(resource as any)\n}\n\nexport function isTaggable(resource: ResourceTypeLock): boolean {\n\treturn taggableResources.includes(resource as any)\n}\n\nexport function isVersionable(resource: ResourceTypeLock): boolean {\n\treturn versionableResources.includes(resource as any)\n}\n\n\n\n// Helper types\nexport type ResourceFields = {\n\t// ##__API_RESOURCE_FIELDS_START__##\n\taddresses: models.Address,\n\tadjustments: models.Adjustment,\n\tadyen_gateways: models.AdyenGateway,\n\tadyen_payments: models.AdyenPayment,\n\tapplications: models.Application,\n\tattachments: models.Attachment,\n\tauthorizations: models.Authorization,\n\tavalara_accounts: models.AvalaraAccount,\n\taxerve_gateways: models.AxerveGateway,\n\taxerve_payments: models.AxervePayment,\n\tbing_geocoders: models.BingGeocoder,\n\tbraintree_gateways: models.BraintreeGateway,\n\tbraintree_payments: models.BraintreePayment,\n\tbundles: models.Bundle,\n\tbuy_x_pay_y_promotions: models.BuyXPayYPromotion,\n\tcaptures: models.Capture,\n\tcarrier_accounts: models.CarrierAccount,\n\tcheckout_com_gateways: models.CheckoutComGateway,\n\tcheckout_com_payments: models.CheckoutComPayment,\n\tcleanups: models.Cleanup,\n\tcoupon_codes_promotion_rules: models.CouponCodesPromotionRule,\n\tcoupon_recipients: models.CouponRecipient,\n\tcoupons: models.Coupon,\n\tcustom_promotion_rules: models.CustomPromotionRule,\n\tcustomer_addresses: models.CustomerAddress,\n\tcustomer_groups: models.CustomerGroup,\n\tcustomer_password_resets: models.CustomerPasswordReset,\n\tcustomer_payment_sources: models.CustomerPaymentSource,\n\tcustomer_subscriptions: models.CustomerSubscription,\n\tcustomers: models.Customer,\n\tdelivery_lead_times: models.DeliveryLeadTime,\n\tdiscount_engine_items: models.DiscountEngineItem,\n\tdiscount_engines: models.DiscountEngine,\n\teasypost_pickups: models.EasypostPickup,\n\tevent_callbacks: models.EventCallback,\n\tevents: models.Event,\n\texports: models.Export,\n\texternal_gateways: models.ExternalGateway,\n\texternal_payments: models.ExternalPayment,\n\texternal_promotions: models.ExternalPromotion,\n\texternal_tax_calculators: models.ExternalTaxCalculator,\n\tfixed_amount_promotions: models.FixedAmountPromotion,\n\tfixed_price_promotions: models.FixedPricePromotion,\n\tflex_promotions: models.FlexPromotion,\n\tfree_gift_promotions: models.FreeGiftPromotion,\n\tfree_shipping_promotions: models.FreeShippingPromotion,\n\tgeocoders: models.Geocoder,\n\tgift_card_recipients: models.GiftCardRecipient,\n\tgift_cards: models.GiftCard,\n\tgoogle_geocoders: models.GoogleGeocoder,\n\timports: models.Import,\n\tin_stock_subscriptions: models.InStockSubscription,\n\tinventory_models: models.InventoryModel,\n\tinventory_return_locations: models.InventoryReturnLocation,\n\tinventory_stock_locations: models.InventoryStockLocation,\n\tklarna_gateways: models.KlarnaGateway,\n\tklarna_payments: models.KlarnaPayment,\n\tline_item_options: models.LineItemOption,\n\tline_items: models.LineItem,\n\tlinks: models.Link,\n\tmanual_gateways: models.ManualGateway,\n\tmanual_tax_calculators: models.ManualTaxCalculator,\n\tmarkets: models.Market,\n\tmerchants: models.Merchant,\n\tnotifications: models.Notification,\n\torder_amount_promotion_rules: models.OrderAmountPromotionRule,\n\torder_copies: models.OrderCopy,\n\torder_factories: models.OrderFactory,\n\torder_subscription_items: models.OrderSubscriptionItem,\n\torder_subscriptions: models.OrderSubscription,\n\torders: models.Order,\n\torganizations: models.Organization,\n\tpackages: models.Package,\n\tparcel_line_items: models.ParcelLineItem,\n\tparcels: models.Parcel,\n\tpayment_gateways: models.PaymentGateway,\n\tpayment_methods: models.PaymentMethod,\n\tpayment_options: models.PaymentOption,\n\tpaypal_gateways: models.PaypalGateway,\n\tpaypal_payments: models.PaypalPayment,\n\tpercentage_discount_promotions: models.PercentageDiscountPromotion,\n\tpickups: models.Pickup,\n\tprice_frequency_tiers: models.PriceFrequencyTier,\n\tprice_list_schedulers: models.PriceListScheduler,\n\tprice_lists: models.PriceList,\n\tprice_tiers: models.PriceTier,\n\tprice_volume_tiers: models.PriceVolumeTier,\n\tprices: models.Price,\n\tpromotion_rules: models.PromotionRule,\n\tpromotions: models.Promotion,\n\trecurring_order_copies: models.RecurringOrderCopy,\n\trefunds: models.Refund,\n\treserved_stocks: models.ReservedStock,\n\tresource_errors: models.ResourceError,\n\treturn_line_items: models.ReturnLineItem,\n\treturns: models.Return,\n\tsatispay_gateways: models.SatispayGateway,\n\tsatispay_payments: models.SatispayPayment,\n\tshipments: models.Shipment,\n\tshipping_categories: models.ShippingCategory,\n\tshipping_method_tiers: models.ShippingMethodTier,\n\tshipping_methods: models.ShippingMethod,\n\tshipping_weight_tiers: models.ShippingWeightTier,\n\tshipping_zones: models.ShippingZone,\n\tsku_list_items: models.SkuListItem,\n\tsku_list_promotion_rules: models.SkuListPromotionRule,\n\tsku_lists: models.SkuList,\n\tsku_options: models.SkuOption,\n\tskus: models.Sku,\n\tstock_items: models.StockItem,\n\tstock_line_items: models.StockLineItem,\n\tstock_locations: models.StockLocation,\n\tstock_reservations: models.StockReservation,\n\tstock_transfers: models.StockTransfer,\n\tstores: models.Store,\n\tstripe_gateways: models.StripeGateway,\n\tstripe_payments: models.StripePayment,\n\tstripe_tax_accounts: models.StripeTaxAccount,\n\tsubscription_models: models.SubscriptionModel,\n\ttags: models.Tag,\n\ttalon_one_accounts: models.TalonOneAccount,\n\ttax_calculators: models.TaxCalculator,\n\ttax_categories: models.TaxCategory,\n\ttax_rules: models.TaxRule,\n\ttaxjar_accounts: models.TaxjarAccount,\n\ttransactions: models.Transaction,\n\tversions: models.Version,\n\tvertex_accounts: models.VertexAccount,\n\tvoids: models.Void,\n\twebhooks: models.Webhook,\n\twire_transfers: models.WireTransfer\n\t// ##__API_RESOURCE_FIELDS_STOP__##\n}\n\n\nexport type ResourceSortFields = {\n\t// ##__API_RESOURCE_SORTABLE_FIELDS_START__##\n\taddresses: models.AddressSort,\n\tadjustments: models.AdjustmentSort,\n\tadyen_gateways: models.AdyenGatewaySort,\n\tadyen_payments: models.AdyenPaymentSort,\n\tapplications: models.ApplicationSort,\n\tattachments: models.AttachmentSort,\n\tauthorizations: models.AuthorizationSort,\n\tavalara_accounts: models.AvalaraAccountSort,\n\taxerve_gateways: models.AxerveGatewaySort,\n\taxerve_payments: models.AxervePaymentSort,\n\tbing_geocoders: models.BingGeocoderSort,\n\tbraintree_gateways: models.BraintreeGatewaySort,\n\tbraintree_payments: models.BraintreePaymentSort,\n\tbundles: models.BundleSort,\n\tbuy_x_pay_y_promotions: models.BuyXPayYPromotionSort,\n\tcaptures: models.CaptureSort,\n\tcarrier_accounts: models.CarrierAccountSort,\n\tcheckout_com_gateways: models.CheckoutComGatewaySort,\n\tcheckout_com_payments: models.CheckoutComPaymentSort,\n\tcleanups: models.CleanupSort,\n\tcoupon_codes_promotion_rules: models.CouponCodesPromotionRuleSort,\n\tcoupon_recipients: models.CouponRecipientSort,\n\tcoupons: models.CouponSort,\n\tcustom_promotion_rules: models.CustomPromotionRuleSort,\n\tcustomer_addresses: models.CustomerAddressSort,\n\tcustomer_groups: models.CustomerGroupSort,\n\tcustomer_password_resets: models.CustomerPasswordResetSort,\n\tcustomer_payment_sources: models.CustomerPaymentSourceSort,\n\tcustomer_subscriptions: models.CustomerSubscriptionSort,\n\tcustomers: models.CustomerSort,\n\tdelivery_lead_times: models.DeliveryLeadTimeSort,\n\tdiscount_engine_items: models.DiscountEngineItemSort,\n\tdiscount_engines: models.DiscountEngineSort,\n\teasypost_pickups: models.EasypostPickupSort,\n\tevent_callbacks: models.EventCallbackSort,\n\tevents: models.EventSort,\n\texports: models.ExportSort,\n\texternal_gateways: models.ExternalGatewaySort,\n\texternal_payments: models.ExternalPaymentSort,\n\texternal_promotions: models.ExternalPromotionSort,\n\texternal_tax_calculators: models.ExternalTaxCalculatorSort,\n\tfixed_amount_promotions: models.FixedAmountPromotionSort,\n\tfixed_price_promotions: models.FixedPricePromotionSort,\n\tflex_promotions: models.FlexPromotionSort,\n\tfree_gift_promotions: models.FreeGiftPromotionSort,\n\tfree_shipping_promotions: models.FreeShippingPromotionSort,\n\tgeocoders: models.GeocoderSort,\n\tgift_card_recipients: models.GiftCardRecipientSort,\n\tgift_cards: models.GiftCardSort,\n\tgoogle_geocoders: models.GoogleGeocoderSort,\n\timports: models.ImportSort,\n\tin_stock_subscriptions: models.InStockSubscriptionSort,\n\tinventory_models: models.InventoryModelSort,\n\tinventory_return_locations: models.InventoryReturnLocationSort,\n\tinventory_stock_locations: models.InventoryStockLocationSort,\n\tklarna_gateways: models.KlarnaGatewaySort,\n\tklarna_payments: models.KlarnaPaymentSort,\n\tline_item_options: models.LineItemOptionSort,\n\tline_items: models.LineItemSort,\n\tlinks: models.LinkSort,\n\tmanual_gateways: models.ManualGatewaySort,\n\tmanual_tax_calculators: models.ManualTaxCalculatorSort,\n\tmarkets: models.MarketSort,\n\tmerchants: models.MerchantSort,\n\tnotifications: models.NotificationSort,\n\torder_amount_promotion_rules: models.OrderAmountPromotionRuleSort,\n\torder_copies: models.OrderCopySort,\n\torder_factories: models.OrderFactorySort,\n\torder_subscription_items: models.OrderSubscriptionItemSort,\n\torder_subscriptions: models.OrderSubscriptionSort,\n\torders: models.OrderSort,\n\torganizations: models.OrganizationSort,\n\tpackages: models.PackageSort,\n\tparcel_line_items: models.ParcelLineItemSort,\n\tparcels: models.ParcelSort,\n\tpayment_gateways: models.PaymentGatewaySort,\n\tpayment_methods: models.PaymentMethodSort,\n\tpayment_options: models.PaymentOptionSort,\n\tpaypal_gateways: models.PaypalGatewaySort,\n\tpaypal_payments: models.PaypalPaymentSort,\n\tpercentage_discount_promotions: models.PercentageDiscountPromotionSort,\n\tpickups: models.PickupSort,\n\tprice_frequency_tiers: models.PriceFrequencyTierSort,\n\tprice_list_schedulers: models.PriceListSchedulerSort,\n\tprice_lists: models.PriceListSort,\n\tprice_tiers: models.PriceTierSort,\n\tprice_volume_tiers: models.PriceVolumeTierSort,\n\tprices: models.PriceSort,\n\tpromotion_rules: models.PromotionRuleSort,\n\tpromotions: models.PromotionSort,\n\trecurring_order_copies: models.RecurringOrderCopySort,\n\trefunds: models.RefundSort,\n\treserved_stocks: models.ReservedStockSort,\n\tresource_errors: models.ResourceErrorSort,\n\treturn_line_items: models.ReturnLineItemSort,\n\treturns: models.ReturnSort,\n\tsatispay_gateways: models.SatispayGatewaySort,\n\tsatispay_payments: models.SatispayPaymentSort,\n\tshipments: models.ShipmentSort,\n\tshipping_categories: models.ShippingCategorySort,\n\tshipping_method_tiers: models.ShippingMethodTierSort,\n\tshipping_methods: models.ShippingMethodSort,\n\tshipping_weight_tiers: models.ShippingWeightTierSort,\n\tshipping_zones: models.ShippingZoneSort,\n\tsku_list_items: models.SkuListItemSort,\n\tsku_list_promotion_rules: models.SkuListPromotionRuleSort,\n\tsku_lists: models.SkuListSort,\n\tsku_options: models.SkuOptionSort,\n\tskus: models.SkuSort,\n\tstock_items: models.StockItemSort,\n\tstock_line_items: models.StockLineItemSort,\n\tstock_locations: models.StockLocationSort,\n\tstock_reservations: models.StockReservationSort,\n\tstock_transfers: models.StockTransferSort,\n\tstores: models.StoreSort,\n\tstripe_gateways: models.StripeGatewaySort,\n\tstripe_payments: models.StripePaymentSort,\n\tstripe_tax_accounts: models.StripeTaxAccountSort,\n\tsubscription_models: models.SubscriptionModelSort,\n\ttags: models.TagSort,\n\ttalon_one_accounts: models.TalonOneAccountSort,\n\ttax_calculators: models.TaxCalculatorSort,\n\ttax_categories: models.TaxCategorySort,\n\ttax_rules: models.TaxRuleSort,\n\ttaxjar_accounts: models.TaxjarAccountSort,\n\ttransactions: models.TransactionSort,\n\tversions: models.VersionSort,\n\tvertex_accounts: models.VertexAccountSort,\n\tvoids: models.VoidSort,\n\twebhooks: models.WebhookSort,\n\twire_transfers: models.WireTransferSort\n\t// ##__API_RESOURCE_SORTABLE_FIELDS_STOP__##\n}\n"]}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"sources":["../src/debug.ts"],"names":[],"mappings":";;;AAOA,IAAM,gBAAA,GAAmB,CAAC,QAAA,EAAA,GAAqB,KAAuB
|
1
|
+
{"version":3,"sources":["../src/debug.ts"],"names":[],"mappings":";;;AAOA,IAAM,gBAAA,GAAmB,CAAC,QAAA,EAAA,GAAqB,KAAA,KAAuB;AAEtE,CAAA;AAEA,IAAI,eAAA,GAAmC,CAAC,UAAA,KAAiC,gBAAA;AAIzE,IAAI;AACH,EAAA,MAAM,WAAA,GAAc,UAAQ,OAAO,CAAA;AACnC,EAAA,IAAI,WAAA,IAAgB,OAAO,WAAA,KAAgB,UAAA,EAAa,eAAA,GAAkB,WAAA;AAC3E,CAAA,CAAA,OAAS,KAAA,EAAO;AAEhB;AAGA,IAAM,WAAA,GAAc,OAAA;AAsBpB,IAAM,KAAA,GAAQ,CAAC,SAAA,KAAgC;AAC9C,EAAA,OAAO,eAAA,CAAgB,CAAA,EAAG,WAAW,CAAA,CAAA,EAAI,SAAS,CAAA,CAAE,CAAA;AACrD,CAAA;AAGA,IAAO,aAAA,GAAQ","file":"chunk-XD7GS4QW.js","sourcesContent":["\ntype Debugger = (pattern: string, ...args: any[]) => void\n\ntype DebuggerFactory = (namespace: string) => Debugger\n\n\n/* Nope debugger */\nconst debuggerFunction = (_pattern: string, ..._args: any[]): void => {\n\t// console.log(_pattern)\n}\n\nlet debuggerFactory: DebuggerFactory = (_namespace: string): Debugger => debuggerFunction\n\n\n/* Try loading 'debug' module */\ntry {\n\tconst debugModule = require('debug')\n\tif (debugModule && (typeof debugModule === 'function')) debuggerFactory = debugModule\n} catch (error) {\n\t//\n}\n\n\nconst debugPrefix = 'clsdk'\n\n\n/* Retrieve the name of the caller 'module' */\n/*\nconst caller = (): string => {\n\n\tconst err = new Error()\n\n\tError.prepareStackTrace = (_, stack) => stack\n\tconst stack = err.stack as unknown as NodeJS.CallSite[]\n\tError.prepareStackTrace = undefined\n\n\tconst fileName = stack[2].getFileName() || '/'\n\n\treturn fileName.replace(/^.*[\\\\/]/, '').replace('.ts', '')\n\n}\n*/\n\n\n/* Return a debugger for the defined namespace */\nconst debug = (namespace: string): Debugger => {\n\treturn debuggerFactory(`${debugPrefix}:${namespace}`)\n}\n\n\nexport default debug\n"]}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"sources":["../src/resources/axerve_payments.ts"],"names":[],"mappings":";;;AAmHA,IAAM,cAAA,GAAN,MAAM,eAAA,SAAuB,
|
1
|
+
{"version":3,"sources":["../src/resources/axerve_payments.ts"],"names":[],"mappings":";;;AAmHA,IAAM,cAAA,GAAN,MAAM,eAAA,SAAuB,WAAA,CAA2B;AAAA,EAEvD,OAAgB,IAAA,GAA0B,iBAAA;AAAA,EAE1C,MAAM,MAAA,CAAO,QAAA,EAA+B,MAAA,EAA6C,OAAA,EAAmD;AAC3I,IAAA,OAAO,IAAA,CAAK,SAAA,CAAU,MAAA,CAA2C,E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AAyC,MAAA,EAAmC,OAAA,EAA2D;AACrJ,IAAA,MAAM,gBAAA,GAAoB,gBAAkC,EAAA,IAAM,eAAA;AAClE,IAAA,OAAO,IAAA,CAAK,SAAA,CAAU,KAAA,CAAe,EAAE,IAAA,EAAM,UAAA,EAAW,EAAG,CAAA,gBAAA,EAAmB,gBAAgB,CAAA,SAAA,CAAA,EAAa,MAAA,EAAQ,OAAO,CAAA;AAAA,EAC3H;AAAA,EAEA,MAAM,OAAA,CAAQ,EAAA,EAA4B,MAAA,EAA6C,OAAA,EAAmD;AACzI,IAAA,OAAO,KAAK,SAAA,CAAU,MAAA,CAA2C,EAAE,EAAA,EAAK,OAAO,OAAO,QAAA,GAAW,EAAA,GAAI,EAAA,CAAG,EAAA,EAAI,MAAM,eAAA,CAAe,IAAA,EAAM,SAAS,IAAA,EAAK,EAAG,QAAQ,OAAO,CAAA;AAAA,EACxK;AAAA,EAGA,gBAAgB,QAAA,EAA0C;AACzD,IAAA,OAAO,QAAA,CAAS,IAAA,IAAS,QAAA,CAAS,IAAA,KAAS,eAAA,CAAe,IAAA;AAAA,EAC3D;AAAA,EAGA,aAAa,EAAA,EAAkD;AAC9D,IAAA,OAAO,KAAA,CAAM,qBAAuC,EAAE,CAAA;AAAA,EACvD;AAAA,EAEA,sBAAsB,GAAA,EAAmC;AACxD,IAAA,OAAO,KAAA,CAAM,qBAAA,CAAwC,GAAG,GAAG,CAAA;AAAA,EAC5D;AAAA,EAGA,IAAA,GAA0B;AACzB,IAAA,OAAO,eAAA,CAAe,IAAA;AAAA,EACvB;AAED,CAAA;AAGA,IAAM,QAAA,GAAW,IAAI,cAAA,EAAe;AACpC,IAAO,uBAAA,GAAQ","file":"chunk-XMDDYWH5.js","sourcesContent":["import { ApiResource } from '../resource'\nimport type { Resource, ResourceCreate, ResourceUpdate, ResourceId, ResourcesConfig, ResourceRel, ListResponse, ResourceSort, /* ResourceFilter */ } from '../resource'\nimport type { QueryParamsRetrieve, QueryParamsList } from '../query'\n\nimport type { Order, OrderType } from './orders'\nimport type { PaymentGateway } from './payment_gateways'\nimport type { Version } from './versions'\n\n\ntype AxervePaymentType = 'axerve_payments'\ntype AxervePaymentRel = ResourceRel & { type: AxervePaymentType }\ntype OrderRel = ResourceRel & { type: OrderType }\n\n\nexport type AxervePaymentSort = Pick<AxervePayment, 'id'> & ResourceSort\n// export type AxervePaymentFilter = Pick<AxervePayment, 'id'> & ResourceFilter\n\n\ninterface AxervePayment extends Resource {\n\t\n\treadonly type: AxervePaymentType\n\n\t/** \n\t * The merchant login code.\n\t * @example ```\"xxxx-yyyy-zzzz\"```\n\t */\n\tlogin: string\n\t/** \n\t * The URL where the payer is redirected after they approve the payment.\n\t * @example ```\"https://yourdomain.com/thankyou\"```\n\t */\n\treturn_url: string\n\t/** \n\t * The Axerve payment request data, collected by client.\n\t * @example ```{\"foo\":\"bar\"}```\n\t */\n\tpayment_request_data?: Record<string, any> | null\n\t/** \n\t * The IP adress of the client creating the payment.\n\t * @example ```\"213.45.120.5\"```\n\t */\n\tclient_ip?: string | null\n\t/** \n\t * The details of the buyer creating the payment.\n\t * @example ```{\"cardHolder\":{\"email\":\"george.harrison@gmail.com\"},\"shippingAddress\":{\"firstName\":\"George\"}}```\n\t */\n\tbuyer_details?: Record<string, any> | null\n\t/** \n\t * Requires the creation of a token to represent this payment, mandatory to use customer's wallet and order subscriptions.\n\t * @example ```true```\n\t */\n\trequest_token?: boolean | null\n\t/** \n\t * Indicates if the order current amount differs form the one of the associated authorization.\n\t */\n\tmismatched_amounts?: boolean | null\n\t/** \n\t * Information about the payment instrument used in the transaction.\n\t * @example ```{\"issuer\":\"cl bank\",\"card_type\":\"visa\"}```\n\t */\n\tpayment_instrument?: Record<string, any> | null\n\n\torder?: Order | null\n\tpayment_gateway?: PaymentGateway | null\n\tversions?: Version[] | null\n\n}\n\n\ninterface AxervePaymentCreate extends ResourceCreate {\n\t\n\t/** \n\t * The URL where the payer is redirected after they approve the payment.\n\t * @example ```\"https://yourdomain.com/thankyou\"```\n\t */\n\treturn_url: string\n\t/** \n\t * The IP adress of the client creating the payment.\n\t * @example ```\"213.45.120.5\"```\n\t */\n\tclient_ip?: string | null\n\t/** \n\t * The details of the buyer creating the payment.\n\t * @example ```{\"cardHolder\":{\"email\":\"george.harrison@gmail.com\"},\"shippingAddress\":{\"firstName\":\"George\"}}```\n\t */\n\tbuyer_details?: Record<string, any> | null\n\t/** \n\t * Requires the creation of a token to represent this payment, mandatory to use customer's wallet and order subscriptions.\n\t * @example ```true```\n\t */\n\trequest_token?: boolean | null\n\n\torder: OrderRel\n\n}\n\n\ninterface AxervePaymentUpdate extends ResourceUpdate {\n\t\n\t/** \n\t * The Axerve payment request data, collected by client.\n\t * @example ```{\"foo\":\"bar\"}```\n\t */\n\tpayment_request_data?: Record<string, any> | null\n\t/** \n\t * Send this attribute if you want to update the payment with fresh order data.\n\t * @example ```true```\n\t */\n\t_update?: boolean | null\n\n\torder?: OrderRel | null\n\n}\n\n\nclass AxervePayments extends ApiResource<AxervePayment> {\n\n\tstatic readonly TYPE: AxervePaymentType = 'axerve_payments' as const\n\n\tasync create(resource: AxervePaymentCreate, params?: QueryParamsRetrieve<AxervePayment>, options?: ResourcesConfig): Promise<AxervePayment> {\n\t\treturn this.resources.create<AxervePaymentCreate, AxervePayment>({ ...resource, type: AxervePayments.TYPE }, params, options)\n\t}\n\n\tasync update(resource: AxervePaymentUpdate, params?: QueryParamsRetrieve<AxervePayment>, options?: ResourcesConfig): Promise<AxervePayment> {\n\t\treturn this.resources.update<AxervePaymentUpdate, AxervePayment>({ ...resource, type: AxervePayments.TYPE }, params, options)\n\t}\n\n\tasync delete(id: string | ResourceId, options?: ResourcesConfig): Promise<void> {\n\t\tawait this.resources.delete((typeof id === 'string')? { id, type: AxervePayments.TYPE } : id, options)\n\t}\n\n\tasync order(axervePaymentId: string | AxervePayment, params?: QueryParamsRetrieve<Order>, options?: ResourcesConfig): Promise<Order> {\n\t\tconst _axervePaymentId = (axervePaymentId as AxervePayment).id || axervePaymentId as string\n\t\treturn this.resources.fetch<Order>({ type: 'orders' }, `axerve_payments/${_axervePaymentId}/order`, params, options) as unknown as Order\n\t}\n\n\tasync payment_gateway(axervePaymentId: string | AxervePayment, params?: QueryParamsRetrieve<PaymentGateway>, options?: ResourcesConfig): Promise<PaymentGateway> {\n\t\tconst _axervePaymentId = (axervePaymentId as AxervePayment).id || axervePaymentId as string\n\t\treturn this.resources.fetch<PaymentGateway>({ type: 'payment_gateways' }, `axerve_payments/${_axervePaymentId}/payment_gateway`, params, options) as unknown as PaymentGateway\n\t}\n\n\tasync versions(axervePaymentId: string | AxervePayment, params?: QueryParamsList<Version>, options?: ResourcesConfig): Promise<ListResponse<Version>> {\n\t\tconst _axervePaymentId = (axervePaymentId as AxervePayment).id || axervePaymentId as string\n\t\treturn this.resources.fetch<Version>({ type: 'versions' }, `axerve_payments/${_axervePaymentId}/versions`, params, options) as unknown as ListResponse<Version>\n\t}\n\n\tasync _update(id: string | AxervePayment, params?: QueryParamsRetrieve<AxervePayment>, options?: ResourcesConfig): Promise<AxervePayment> {\n\t\treturn this.resources.update<AxervePaymentUpdate, AxervePayment>({ id: (typeof id === 'string')? id: id.id, type: AxervePayments.TYPE, _update: true }, params, options)\n\t}\n\n\n\tisAxervePayment(resource: any): resource is AxervePayment {\n\t\treturn resource.type && (resource.type === AxervePayments.TYPE)\n\t}\n\n\n\trelationship(id: string | ResourceId | null): AxervePaymentRel {\n\t\treturn super.relationshipOneToOne<AxervePaymentRel>(id)\n\t}\n\n\trelationshipToMany(...ids: string[]): AxervePaymentRel[] {\n\t\treturn super.relationshipOneToMany<AxervePaymentRel>(...ids)\n\t}\n\n\n\ttype(): AxervePaymentType {\n\t\treturn AxervePayments.TYPE\n\t}\n\n}\n\n\nconst instance = new AxervePayments()\nexport default instance\n\nexport type { AxervePayments, AxervePayment, AxervePaymentCreate, AxervePaymentUpdate, AxervePaymentType }\n"]}
|
@@ -1,6 +1,6 @@
|
|
1
1
|
'use strict';
|
2
2
|
|
3
|
-
var
|
3
|
+
var chunk2VPJZZIF_cjs = require('./chunk-2VPJZZIF.cjs');
|
4
4
|
var chunkSRW7OWVS_cjs = require('./chunk-SRW7OWVS.cjs');
|
5
5
|
var chunkX6PHZA6P_cjs = require('./chunk-X6PHZA6P.cjs');
|
6
6
|
var chunkIKHD5UQP_cjs = require('./chunk-IKHD5UQP.cjs');
|
@@ -41,10 +41,10 @@ var CommerceLayerStatic = {
|
|
41
41
|
return chunkSRW7OWVS_cjs.isTokenExpired(token);
|
42
42
|
},
|
43
43
|
get schemaVersion() {
|
44
|
-
return
|
44
|
+
return chunk2VPJZZIF_cjs.OPEN_API_SCHEMA_VERSION;
|
45
45
|
}
|
46
46
|
};
|
47
47
|
|
48
48
|
exports.CommerceLayerStatic = CommerceLayerStatic;
|
49
|
-
//# sourceMappingURL=chunk-
|
50
|
-
//# sourceMappingURL=chunk-
|
49
|
+
//# sourceMappingURL=chunk-XOYVZN2R.cjs.map
|
50
|
+
//# sourceMappingURL=chunk-XOYVZN2R.cjs.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"sources":["../src/static.ts"],"names":["getResources","getSingletons","isSingleton","isCreatable","isUpdatable","isDeletable","isTaggable","isVersionable","isSdkError","isApiError","isTokenExpired","OPEN_API_SCHEMA_VERSION"],"mappings":";;;;;;;;AASO,IAAM,mBAAA,GAAsB;AAAA,EAElC,SAAA,EAAW,CAAC,IAAA,KAAsC;AACjD,IAAA,OAAOA,+BAAa,IAAI,CAAA;AAAA,EACzB,CAAA;AAAA,EAEA,UAAA,EAAY,CAAC,IAAA,KAAsC;AAClD,IAAA,OAAOC,gCAAc,IAAI,CAAA;AAAA,EAC1B,CAAA;AAAA,EAEA,WAAA,EAAa,CAAC,QAAA,KAAwC;AACrD,IAAA,OAAOC,8BAAY,QAAQ,CAAA;AAAA,EAC5B,CAAA;AAAA,EAEA,WAAA,EAAa,CAAC,QAAA,KAAwC;AACrD,IAAA,OAAOC,8BAAY,QAAQ,CAAA;AAAA,EAC5B,CAAA;AAAA,EAEA,WAAA,EAAa,CAAC,QAAA,KAAwC;AACrD,IAAA,OAAOC,8BAAY,QAAQ,CAAA;AAAA,EAC5B,CAAA;AAAA,EAEA,WAAA,EAAa,CAAC,QAAA,KAAwC;AACrD,IAAA,OAAOC,8BAAY,QAAQ,CAAA;AAAA,EAC5B,CAAA;AAAA,EAEA,UAAA,EAAY,CAAC,QAAA,KAAwC;AACpD,IAAA,OAAOC,6BAAW,QAAQ,CAAA;AAAA,EAC3B,CAAA;AAAA,EAEA,aAAA,EAAe,CAAC,QAAA,KAAwC;AACvD,IAAA,OAAOC,gCAAc,QAAQ,CAAA;AAAA,EAC9B,CAAA;AAAA,EAEA,UAAA,EAAY,CAAC,KAAA,KAAsC;AAClD,IAAA,OAAOC,6BAAW,KAAK,CAAA;AAAA,EACxB,CAAA;AAAA,EAEA,UAAA,EAAY,CAAC,KAAA,KAAsC;AAClD,IAAA,OAAOC,6BAAW,KAAK,CAAA;AAAA,EACxB,CAAA;AAAA,EAEA,cAAA,EAAgB,CAAC,KAAA,KAA2B;AAC3C,IAAA,OAAOC,iCAAe,KAAK,CAAA;AAAA,EAC5B,CAAA;AAAA,EAEA,IAAI,aAAA,GAAwB;AAAE,IAAA,OAAOC,yCAAA;AAAA,EAAwB;AAE9D","file":"chunk-XOYVZN2R.cjs","sourcesContent":["\nimport type { ResourceTypeLock } from './enum'\nimport { getResources, getSingletons, isCreatable, isDeletable, isSingleton, isTaggable, isUpdatable, isVersionable } from './enum'\nimport { OPEN_API_SCHEMA_VERSION } from './commercelayer'\nimport { SdkError, ApiError, isSdkError, isApiError} from './error'\nimport { isTokenExpired } from './util'\n\n\n/* Static functions */\nexport const CommerceLayerStatic = {\n\n\tresources: (sort?: boolean): readonly string[] => {\n\t\treturn getResources(sort)\n\t},\n\n\tsingletons: (sort?: boolean): readonly string[] => {\n\t\treturn getSingletons(sort)\n\t},\n\n\tisSingleton: (resource: ResourceTypeLock): boolean => {\n\t\treturn isSingleton(resource)\n\t},\n\n\tisCreatable: (resource: ResourceTypeLock): boolean => {\n\t\treturn isCreatable(resource)\n\t},\n\n\tisUpdatable: (resource: ResourceTypeLock): boolean => {\n\t\treturn isUpdatable(resource)\n\t},\n\n\tisDeletable: (resource: ResourceTypeLock): boolean => {\n\t\treturn isDeletable(resource)\n\t},\n\n\tisTaggable: (resource: ResourceTypeLock): boolean => {\n\t\treturn isTaggable(resource)\n\t},\n\n\tisVersionable: (resource: ResourceTypeLock): boolean => {\n\t\treturn isVersionable(resource)\n\t},\n\n\tisSdkError: (error: unknown): error is SdkError => {\n\t\treturn isSdkError(error)\n\t},\n\n\tisApiError: (error: unknown): error is ApiError => {\n\t\treturn isApiError(error)\n\t},\n\n\tisTokenExpired: (token: string): boolean => {\n\t\treturn isTokenExpired(token)\n\t},\n\n\tget schemaVersion(): string { return OPEN_API_SCHEMA_VERSION }\n\n}\n"]}
|