@ripwords/myinvois-client 0.3.7 → 0.4.0

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.
Files changed (395) hide show
  1. package/README.md +27 -0
  2. package/dist/{apiQueue-DgKWaQDS.cjs → apiQueue-C45w-ymm.cjs} +1 -1
  3. package/dist/{apiQueue-DgKWaQDS.cjs.map → apiQueue-C45w-ymm.cjs.map} +1 -1
  4. package/dist/{certificate-CWmfCPdt.cjs → certificate-Dw46fkYv.cjs} +5 -31
  5. package/dist/certificate-Dw46fkYv.cjs.map +1 -0
  6. package/dist/{document-B6ab06s1.cjs → document-B11B5lqd.cjs} +75 -21
  7. package/dist/document-B11B5lqd.cjs.map +1 -0
  8. package/dist/{documentManagement-BviJDtf2.cjs → documentManagement-qJnd0l1z.cjs} +3 -2
  9. package/dist/documentManagement-qJnd0l1z.cjs.map +1 -0
  10. package/dist/{documentSubmission-C-v4_4-x.cjs → documentSubmission-BaPECvYU.cjs} +5 -5
  11. package/dist/{documentSubmission-C-v4_4-x.cjs.map → documentSubmission-BaPECvYU.cjs.map} +1 -1
  12. package/dist/{documentTypeManagement-D_-LiQVg.cjs → documentTypeManagement-DXRLfTsW.cjs} +1 -1
  13. package/dist/{documentTypeManagement-D_-LiQVg.cjs.map → documentTypeManagement-DXRLfTsW.cjs.map} +1 -1
  14. package/dist/{getBaseUrl-D0G4GZmp.cjs → getBaseUrl-D2iJdUGL.cjs} +1 -1
  15. package/dist/{getBaseUrl-D0G4GZmp.cjs.map → getBaseUrl-D2iJdUGL.cjs.map} +1 -1
  16. package/dist/index.cjs +14 -12
  17. package/dist/index.cjs.map +1 -1
  18. package/dist/index10.cjs +4 -2
  19. package/dist/index11.cjs +1 -1
  20. package/dist/index13.cjs +1 -1
  21. package/dist/index14.cjs +2 -329
  22. package/dist/index15.cjs +308 -172
  23. package/dist/index15.cjs.map +1 -1
  24. package/dist/index16.cjs +187 -56
  25. package/dist/index16.cjs.map +1 -1
  26. package/dist/index17.cjs +53 -523
  27. package/dist/index17.cjs.map +1 -1
  28. package/dist/index18.cjs +523 -187
  29. package/dist/index18.cjs.map +1 -1
  30. package/dist/index19.cjs +196 -0
  31. package/dist/index19.cjs.map +1 -0
  32. package/dist/index2.cjs +1 -1
  33. package/dist/index20.cjs +0 -25
  34. package/dist/index21.cjs +25 -0
  35. package/dist/{index20.cjs.map → index21.cjs.map} +1 -1
  36. package/dist/index23.cjs +0 -29
  37. package/dist/index24.cjs +24 -20
  38. package/dist/index24.cjs.map +1 -1
  39. package/dist/index25.cjs +25 -0
  40. package/dist/index25.cjs.map +1 -0
  41. package/dist/index26.cjs +0 -34
  42. package/dist/index27.cjs +25 -15
  43. package/dist/index27.cjs.map +1 -1
  44. package/dist/index28.cjs +24 -0
  45. package/dist/index28.cjs.map +1 -0
  46. package/dist/index3.cjs +2 -2
  47. package/dist/index31.cjs +0 -208
  48. package/dist/index32.cjs +203 -104
  49. package/dist/index32.cjs.map +1 -1
  50. package/dist/index33.cjs +104 -132
  51. package/dist/index33.cjs.map +1 -1
  52. package/dist/index34.cjs +132 -59
  53. package/dist/index34.cjs.map +1 -1
  54. package/dist/index35.cjs +59 -262
  55. package/dist/index35.cjs.map +1 -1
  56. package/dist/index36.cjs +262 -74
  57. package/dist/index36.cjs.map +1 -1
  58. package/dist/index37.cjs +74 -102
  59. package/dist/index37.cjs.map +1 -1
  60. package/dist/index38.cjs +102 -68
  61. package/dist/index38.cjs.map +1 -1
  62. package/dist/index39.cjs +68 -107
  63. package/dist/index39.cjs.map +1 -1
  64. package/dist/index4.cjs +1 -1
  65. package/dist/index40.cjs +107 -95
  66. package/dist/index40.cjs.map +1 -1
  67. package/dist/index41.cjs +95 -13
  68. package/dist/index41.cjs.map +1 -1
  69. package/dist/index42.cjs +11 -31
  70. package/dist/index42.cjs.map +1 -1
  71. package/dist/index43.cjs +31 -12
  72. package/dist/index43.cjs.map +1 -1
  73. package/dist/index44.cjs +12 -22
  74. package/dist/index44.cjs.map +1 -1
  75. package/dist/index45.cjs +22 -13
  76. package/dist/index45.cjs.map +1 -1
  77. package/dist/index46.cjs +13 -7
  78. package/dist/index46.cjs.map +1 -1
  79. package/dist/index47.cjs +7 -7
  80. package/dist/index47.cjs.map +1 -1
  81. package/dist/index48.cjs +7 -10
  82. package/dist/index48.cjs.map +1 -1
  83. package/dist/index49.cjs +10 -6
  84. package/dist/index49.cjs.map +1 -1
  85. package/dist/index5.cjs +1 -1
  86. package/dist/index50.cjs +6 -101
  87. package/dist/index50.cjs.map +1 -1
  88. package/dist/index51.cjs +101 -106
  89. package/dist/index51.cjs.map +1 -1
  90. package/dist/index52.cjs +106 -119
  91. package/dist/index52.cjs.map +1 -1
  92. package/dist/index53.cjs +119 -106
  93. package/dist/index53.cjs.map +1 -1
  94. package/dist/index54.cjs +106 -98
  95. package/dist/index54.cjs.map +1 -1
  96. package/dist/index55.cjs +98 -118
  97. package/dist/index55.cjs.map +1 -1
  98. package/dist/index56.cjs +118 -127
  99. package/dist/index56.cjs.map +1 -1
  100. package/dist/index57.cjs +127 -117
  101. package/dist/index57.cjs.map +1 -1
  102. package/dist/index58.cjs +117 -14
  103. package/dist/index58.cjs.map +1 -1
  104. package/dist/index59.cjs +14 -95
  105. package/dist/index59.cjs.map +1 -1
  106. package/dist/index6.cjs +1 -1
  107. package/dist/index60.cjs +95 -142
  108. package/dist/index60.cjs.map +1 -1
  109. package/dist/index61.cjs +142 -114
  110. package/dist/index61.cjs.map +1 -1
  111. package/dist/index62.cjs +114 -144
  112. package/dist/index62.cjs.map +1 -1
  113. package/dist/index63.cjs +144 -113
  114. package/dist/index63.cjs.map +1 -1
  115. package/dist/index64.cjs +113 -17
  116. package/dist/index64.cjs.map +1 -1
  117. package/dist/index65.cjs +17 -112
  118. package/dist/index65.cjs.map +1 -1
  119. package/dist/index66.cjs +112 -47
  120. package/dist/index66.cjs.map +1 -1
  121. package/dist/index67.cjs +47 -14
  122. package/dist/index67.cjs.map +1 -1
  123. package/dist/index68.cjs +14 -28
  124. package/dist/index68.cjs.map +1 -1
  125. package/dist/index69.cjs +28 -22
  126. package/dist/index69.cjs.map +1 -1
  127. package/dist/index7.cjs +1 -1
  128. package/dist/index70.cjs +22 -9
  129. package/dist/index70.cjs.map +1 -1
  130. package/dist/index71.cjs +9 -8
  131. package/dist/index71.cjs.map +1 -1
  132. package/dist/index72.cjs +8 -17
  133. package/dist/index72.cjs.map +1 -1
  134. package/dist/index73.cjs +17 -412
  135. package/dist/index73.cjs.map +1 -1
  136. package/dist/index74.cjs +412 -8
  137. package/dist/index74.cjs.map +1 -1
  138. package/dist/index75.cjs +8 -9
  139. package/dist/index75.cjs.map +1 -1
  140. package/dist/index76.cjs +16 -0
  141. package/dist/index76.cjs.map +1 -0
  142. package/dist/index8.cjs +1 -1
  143. package/dist/lineItems-C8iT0OL1.cjs +64 -0
  144. package/dist/lineItems-C8iT0OL1.cjs.map +1 -0
  145. package/dist/{notificationManagement-DLBDn77E.cjs → notificationManagement-C_qrFwWL.cjs} +1 -1
  146. package/dist/{notificationManagement-DLBDn77E.cjs.map → notificationManagement-C_qrFwWL.cjs.map} +1 -1
  147. package/dist/{platformLogin-Ch6hFKoU.cjs → platformLogin-DC4s6Qpv.cjs} +1 -1
  148. package/dist/{platformLogin-Ch6hFKoU.cjs.map → platformLogin-DC4s6Qpv.cjs.map} +1 -1
  149. package/dist/{taxpayerValidation-j8s6YGED.cjs → taxpayerValidation-DzCJROgP.cjs} +1 -1
  150. package/dist/{taxpayerValidation-j8s6YGED.cjs.map → taxpayerValidation-DzCJROgP.cjs.map} +1 -1
  151. package/package.json +1 -1
  152. package/dist/0X-Cr3M7hci.d.cts +0 -211
  153. package/dist/0X-qj3c_vAo.d.ts +0 -210
  154. package/dist/1X-B-lyAVC4.d.ts +0 -111
  155. package/dist/1X-C72Wa4pk.d.ts +0 -19
  156. package/dist/1X-CWwmfCzo.d.cts +0 -112
  157. package/dist/1X-DYw2tURz.d.cts +0 -20
  158. package/dist/2X-BfCK614i.d.ts +0 -139
  159. package/dist/2X-CH89y3Af.d.ts +0 -39
  160. package/dist/2X-CXtqiwRg.d.cts +0 -40
  161. package/dist/2X-DNtkJ0tj.d.cts +0 -140
  162. package/dist/3X-BOxfatu3.d.cts +0 -62
  163. package/dist/3X-Bk_fUIAk.d.cts +0 -21
  164. package/dist/3X-DryrwYRf.d.ts +0 -20
  165. package/dist/3X-Du10Ix_V.d.ts +0 -61
  166. package/dist/4X-BPMLRoDv.d.ts +0 -30
  167. package/dist/4X-C7fzDWJ_.d.cts +0 -265
  168. package/dist/4X-CK9rj5qd.d.cts +0 -31
  169. package/dist/4X-x3cRFuSM.d.ts +0 -264
  170. package/dist/5X-B52AKeTz.d.ts +0 -76
  171. package/dist/5X-Bv7M6KyG.d.ts +0 -21
  172. package/dist/5X-CNAFsDm2.d.cts +0 -77
  173. package/dist/5X-CpAvNxvd.d.cts +0 -22
  174. package/dist/6X-DBwpWPQ6.d.ts +0 -104
  175. package/dist/6X-ZeZ8OB57.d.ts +0 -15
  176. package/dist/6X-bXWr_7xY.d.cts +0 -16
  177. package/dist/6X-uObUP4VG.d.cts +0 -105
  178. package/dist/7X-BJBOlWhV.d.cts +0 -16
  179. package/dist/7X-BifJnY24.d.cts +0 -71
  180. package/dist/7X-C_XGDSpE.d.ts +0 -70
  181. package/dist/7X-Dvw2Z2VN.d.ts +0 -15
  182. package/dist/8X-BkgoX8dg.d.ts +0 -18
  183. package/dist/8X-Di_0wuRX.d.ts +0 -109
  184. package/dist/8X-DioBXCJ0.d.cts +0 -110
  185. package/dist/8X-dshwiOxU.d.cts +0 -19
  186. package/dist/9X-8ZnvvViY.d.ts +0 -97
  187. package/dist/9X-9j2Djy4W.d.cts +0 -15
  188. package/dist/9X-BjffnXuq.d.cts +0 -98
  189. package/dist/9X-Du0e44cq.d.ts +0 -14
  190. package/dist/AX-BSPLpkVT.d.ts +0 -110
  191. package/dist/AX-CWCopjCC.d.cts +0 -111
  192. package/dist/BX-Cq7WdhD3.d.cts +0 -115
  193. package/dist/BX-u4yMaIkz.d.ts +0 -114
  194. package/dist/CX-BKZG0pVE.d.ts +0 -127
  195. package/dist/CX-DlcVZfxx.d.cts +0 -128
  196. package/dist/DX-CwA9WJAf.d.ts +0 -114
  197. package/dist/DX-DLdv-Nxj.d.cts +0 -115
  198. package/dist/EX-BRNu1Ooi.d.ts +0 -106
  199. package/dist/EX-CIJv8-Lw.d.cts +0 -107
  200. package/dist/FX-DBxjq6xY.d.ts +0 -126
  201. package/dist/FX-DlDM_Zea.d.cts +0 -127
  202. package/dist/GX-B3CvWNrP.d.ts +0 -135
  203. package/dist/GX-BFGNX6Jy.d.cts +0 -136
  204. package/dist/HX-D7FABgTv.d.ts +0 -125
  205. package/dist/HX-D7Y9qRSm.d.cts +0 -126
  206. package/dist/IX-D3ZknsAB.d.ts +0 -22
  207. package/dist/IX-DPTrbhgX.d.cts +0 -23
  208. package/dist/JX-BRaZM3Gc.d.ts +0 -103
  209. package/dist/JX-D8JmtNpo.d.cts +0 -104
  210. package/dist/KX-B1K0OWoi.d.ts +0 -150
  211. package/dist/KX-B46KJZrH.d.cts +0 -151
  212. package/dist/LX-CKRefinL.d.ts +0 -122
  213. package/dist/LX-CfTKy8Sx.d.cts +0 -123
  214. package/dist/MX-BKJ4gNvV.d.cts +0 -153
  215. package/dist/MX-DKmaeO9r.d.ts +0 -152
  216. package/dist/NX-CJL2Gn1U.d.ts +0 -121
  217. package/dist/NX-CSdLIFqU.d.cts +0 -122
  218. package/dist/OX-BwqOsulT.d.cts +0 -26
  219. package/dist/OX-Do2ap5v_.d.ts +0 -25
  220. package/dist/PX-BTx0TXsJ.d.cts +0 -121
  221. package/dist/PX-_DOr_rm9.d.ts +0 -120
  222. package/dist/QX-BUXR8RJL.d.cts +0 -59
  223. package/dist/QX-HlXLkIki.d.ts +0 -58
  224. package/dist/RX-CZ8HiH37.d.cts +0 -23
  225. package/dist/RX-DVPGOVES.d.ts +0 -22
  226. package/dist/SX-CLxsqiQk.d.cts +0 -40
  227. package/dist/SX-OGT3qwlS.d.ts +0 -39
  228. package/dist/TX-DKc8hLc4.d.cts +0 -31
  229. package/dist/TX-cPDINmZ5.d.ts +0 -30
  230. package/dist/UX-Be3sqvPV.d.ts +0 -17
  231. package/dist/UX-bc7xDnZI.d.cts +0 -18
  232. package/dist/VX-CIHTFyoC.d.cts +0 -17
  233. package/dist/VX-CoEuBNDK.d.ts +0 -16
  234. package/dist/WX-BHvlq7Jx.d.cts +0 -26
  235. package/dist/WX-DMvw__jH.d.ts +0 -25
  236. package/dist/XX-DOA-10JW.d.ts +0 -827
  237. package/dist/XX-DztQxYHJ.d.cts +0 -828
  238. package/dist/YX-CkxLeFb4.d.cts +0 -20
  239. package/dist/YX-F34sJ7Ik.d.ts +0 -19
  240. package/dist/ZX-CDQOfsHh.d.ts +0 -21
  241. package/dist/ZX-DVb_buNI.d.cts +0 -22
  242. package/dist/api/documentManagement.d.ts +0 -89
  243. package/dist/api/documentManagement.js +0 -3
  244. package/dist/api/documentSubmission.d.ts +0 -92
  245. package/dist/api/documentSubmission.js +0 -5
  246. package/dist/api/documentTypeManagement.d.ts +0 -70
  247. package/dist/api/documentTypeManagement.js +0 -3
  248. package/dist/api/notificationManagement.d.ts +0 -68
  249. package/dist/api/notificationManagement.js +0 -3
  250. package/dist/api/platformLogin.d.ts +0 -68
  251. package/dist/api/platformLogin.js +0 -3
  252. package/dist/api/taxpayerValidation.d.ts +0 -71
  253. package/dist/api/taxpayerValidation.js +0 -4
  254. package/dist/apiQueue-B6Q644Bz.js +0 -201
  255. package/dist/certificate-COwqszxD.js +0 -71
  256. package/dist/certificate-CWmfCPdt.cjs.map +0 -1
  257. package/dist/chunk-CUT6urMc.cjs +0 -30
  258. package/dist/classification-codes-B15PbWxz.d.cts +0 -118
  259. package/dist/classification-codes-C2X4xW5-.d.ts +0 -117
  260. package/dist/country-code-DPeNFMMi.d.cts +0 -543
  261. package/dist/country-code-DsI8Mbzx.d.ts +0 -542
  262. package/dist/currencies-DKuDflOO.d.ts +0 -207
  263. package/dist/currencies-S5g1gzBU.d.cts +0 -208
  264. package/dist/document-B6ab06s1.cjs.map +0 -1
  265. package/dist/document-Bb5WkhRe.js +0 -626
  266. package/dist/documentManagement-BviJDtf2.cjs.map +0 -1
  267. package/dist/documentManagement-lPm8Gziu.js +0 -49
  268. package/dist/documentSubmission-igf605QK.js +0 -135
  269. package/dist/documentTypeManagement-cBtVCOY3.js +0 -22
  270. package/dist/documents-BYV12TVt.d.ts +0 -1196
  271. package/dist/documents-D_V38Q_U.d.cts +0 -1197
  272. package/dist/e-invoice-BuwtFnlI.d.cts +0 -44
  273. package/dist/e-invoice-C2TxhyrK.d.ts +0 -43
  274. package/dist/formatIdValue-qTxJqj9o.js +0 -7
  275. package/dist/getBaseUrl-D7nUmoYb.js +0 -7
  276. package/dist/index-CygwSf0x.d.ts +0 -15
  277. package/dist/index-Yr1QAbIF.d.cts +0 -16
  278. package/dist/index.d.ts +0 -614
  279. package/dist/index.js +0 -627
  280. package/dist/index14.cjs.map +0 -1
  281. package/dist/index23.cjs.map +0 -1
  282. package/dist/index26.cjs.map +0 -1
  283. package/dist/index31.cjs.map +0 -1
  284. package/dist/index61.cts.map +0 -1
  285. package/dist/index62.cts.map +0 -1
  286. package/dist/index63.cts.map +0 -1
  287. package/dist/index64.cts.map +0 -1
  288. package/dist/index65.cts.map +0 -1
  289. package/dist/index66.cts.map +0 -1
  290. package/dist/index67.cts.map +0 -1
  291. package/dist/index68.cts.map +0 -1
  292. package/dist/index69.cts.map +0 -1
  293. package/dist/index70.cts.map +0 -1
  294. package/dist/index71.cts.map +0 -1
  295. package/dist/index72.cts.map +0 -1
  296. package/dist/index73.cts.map +0 -1
  297. package/dist/index74.cts.map +0 -1
  298. package/dist/index75.cts.map +0 -1
  299. package/dist/msic-codes-CIKdPqag.d.cts +0 -26
  300. package/dist/msic-codes-CjrrJmzb.d.ts +0 -25
  301. package/dist/notificationManagement-n4Z5e-My.js +0 -19
  302. package/dist/notifications-DdlEkprb.d.cts +0 -63
  303. package/dist/notifications-sFhgh3rJ.d.ts +0 -62
  304. package/dist/payment-modes-7c1lWlIr.d.cts +0 -44
  305. package/dist/payment-modes-g3DzLmWb.d.ts +0 -43
  306. package/dist/platformLogin-CqI9OLYP.js +0 -39
  307. package/dist/signatures-CerHUrj3.d.ts +0 -172
  308. package/dist/signatures-CyDSZr_e.d.cts +0 -173
  309. package/dist/state-codes-Ow4oehYT.d.ts +0 -61
  310. package/dist/state-codes-u3ppueWo.d.cts +0 -62
  311. package/dist/tax-types-ClyLgydM.d.ts +0 -41
  312. package/dist/tax-types-fu5Q6dic.d.cts +0 -42
  313. package/dist/taxpayer-BAoT73gg.d.ts +0 -35
  314. package/dist/taxpayer-DwGzY1IL.d.cts +0 -36
  315. package/dist/taxpayerValidation-Xd_EHDvk.js +0 -47
  316. package/dist/types/classification-codes.d.ts +0 -2
  317. package/dist/types/country-code.d.ts +0 -2
  318. package/dist/types/currencies.d.ts +0 -2
  319. package/dist/types/documents.d.ts +0 -55
  320. package/dist/types/e-invoice.d.ts +0 -2
  321. package/dist/types/index.d.ts +0 -61
  322. package/dist/types/msic/0X.d.ts +0 -2
  323. package/dist/types/msic/1X.d.ts +0 -2
  324. package/dist/types/msic/2X.d.ts +0 -2
  325. package/dist/types/msic/3X.d.ts +0 -2
  326. package/dist/types/msic/4X.d.ts +0 -2
  327. package/dist/types/msic/5X.d.ts +0 -2
  328. package/dist/types/msic/6X.d.ts +0 -2
  329. package/dist/types/msic/7X.d.ts +0 -2
  330. package/dist/types/msic/8X.d.ts +0 -2
  331. package/dist/types/msic/9X.d.ts +0 -2
  332. package/dist/types/msic-codes.d.ts +0 -12
  333. package/dist/types/notifications.d.ts +0 -2
  334. package/dist/types/payment-modes.d.ts +0 -2
  335. package/dist/types/signatures.d.ts +0 -2
  336. package/dist/types/state-codes.d.ts +0 -2
  337. package/dist/types/tax-types.d.ts +0 -2
  338. package/dist/types/taxpayer.d.ts +0 -56
  339. package/dist/types/unit/1X.d.ts +0 -2
  340. package/dist/types/unit/2X.d.ts +0 -2
  341. package/dist/types/unit/3X.d.ts +0 -2
  342. package/dist/types/unit/4X.d.ts +0 -2
  343. package/dist/types/unit/5X.d.ts +0 -2
  344. package/dist/types/unit/6X.d.ts +0 -2
  345. package/dist/types/unit/7X.d.ts +0 -2
  346. package/dist/types/unit/8X.d.ts +0 -2
  347. package/dist/types/unit/9X.d.ts +0 -2
  348. package/dist/types/unit/AX.d.ts +0 -2
  349. package/dist/types/unit/BX.d.ts +0 -2
  350. package/dist/types/unit/CX.d.ts +0 -2
  351. package/dist/types/unit/DX.d.ts +0 -2
  352. package/dist/types/unit/EX.d.ts +0 -2
  353. package/dist/types/unit/FX.d.ts +0 -2
  354. package/dist/types/unit/GX.d.ts +0 -2
  355. package/dist/types/unit/HX.d.ts +0 -2
  356. package/dist/types/unit/IX.d.ts +0 -2
  357. package/dist/types/unit/JX.d.ts +0 -2
  358. package/dist/types/unit/KX.d.ts +0 -2
  359. package/dist/types/unit/LX.d.ts +0 -2
  360. package/dist/types/unit/MX.d.ts +0 -2
  361. package/dist/types/unit/NX.d.ts +0 -2
  362. package/dist/types/unit/OX.d.ts +0 -2
  363. package/dist/types/unit/PX.d.ts +0 -2
  364. package/dist/types/unit/QX.d.ts +0 -2
  365. package/dist/types/unit/RX.d.ts +0 -2
  366. package/dist/types/unit/SX.d.ts +0 -2
  367. package/dist/types/unit/TX.d.ts +0 -2
  368. package/dist/types/unit/UX.d.ts +0 -2
  369. package/dist/types/unit/VX.d.ts +0 -2
  370. package/dist/types/unit/WX.d.ts +0 -2
  371. package/dist/types/unit/XX.d.ts +0 -2
  372. package/dist/types/unit/YX.d.ts +0 -2
  373. package/dist/types/unit/ZX.d.ts +0 -2
  374. package/dist/types/unit-types.d.ts +0 -37
  375. package/dist/types/utils.d.ts +0 -2
  376. package/dist/unit-types-BXdufGWm.d.cts +0 -56
  377. package/dist/unit-types-VgYXIwTT.d.ts +0 -55
  378. package/dist/utils/apiQueue.d.ts +0 -45
  379. package/dist/utils/apiQueue.js +0 -3
  380. package/dist/utils/base64.d.ts +0 -5
  381. package/dist/utils/base64.js +0 -10
  382. package/dist/utils/certificate.d.ts +0 -26
  383. package/dist/utils/certificate.js +0 -3
  384. package/dist/utils/document.d.ts +0 -211
  385. package/dist/utils/document.js +0 -4
  386. package/dist/utils/formatIdValue.d.ts +0 -4
  387. package/dist/utils/formatIdValue.js +0 -3
  388. package/dist/utils/getBaseUrl.d.ts +0 -4
  389. package/dist/utils/getBaseUrl.js +0 -3
  390. package/dist/utils/signature-diagnostics.d.ts +0 -96
  391. package/dist/utils/signature-diagnostics.js +0 -327
  392. package/dist/utils/validation.d.ts +0 -108
  393. package/dist/utils/validation.js +0 -186
  394. package/dist/utils-C4FoVKLq.d.ts +0 -4
  395. package/dist/utils-Cdqbbzca.d.cts +0 -5
@@ -1,172 +0,0 @@
1
- //#region src/types/signatures.d.ts
2
- /**
3
- * Represents the Digest Method structure used within the signature.
4
- */
5
- interface DigestMethod {
6
- /** Algorithm used for digest. Should be http://www.w3.org/2001/04/xmlenc#sha256 */
7
- Algorithm: string;
8
- }
9
-
10
- /**
11
- * Represents the Cert Digest structure.
12
- */
13
- interface CertDigest {
14
- /** Digest method details. */
15
- "ds:DigestMethod": DigestMethod;
16
- /** Base64 encoded HEX-SHA256 certificate information (CertDigest). */
17
- "ds:DigestValue": string; // base64binary
18
- }
19
-
20
- /**
21
- * Represents the Issuer Serial structure within the Signing Certificate.
22
- */
23
- interface IssuerSerial {
24
- /** CN of the certificate issuer (Organization name). */
25
- "ds:X509IssuerName": string;
26
- /** Digital certificate serial number. */
27
- "ds:X509SerialNumber": string; // xsd:normalizedString -> string
28
- }
29
-
30
- /**
31
- * Represents the Certificate structure within Signing Certificate.
32
- */
33
- interface Cert {
34
- /** Certificate digest details. */
35
- "xades:CertDigest": CertDigest;
36
- /** Issuer details. */
37
- "xades:IssuerSerial": IssuerSerial;
38
- }
39
-
40
- /**
41
- * Represents the Signing Certificate structure.
42
- */
43
- interface SigningCertificate {
44
- /** Certificate details. */
45
- "xades:Cert": Cert;
46
- }
47
-
48
- /**
49
- * Represents the Signed Signature Properties.
50
- */
51
- interface SignedSignatureProperties {
52
- /** UTC timestamp of signing (YYYY-MM-DDTHH:mm:ssZ). */
53
- "xades:SigningTime": string; // dateTime
54
- /** Signing certificate details. */
55
- "xades:SigningCertificate": SigningCertificate;
56
- // Note: Other optional properties like SignaturePolicyIdentifier might exist
57
- }
58
-
59
- /**
60
- * Represents the Signed Properties structure.
61
- */
62
- interface SignedProperties {
63
- /** Target attribute, should be 'signature'. */
64
- Target: string;
65
- /** ID attribute, should be 'id-xades-signed-props'. */
66
- Id: string;
67
- /** Signed signature properties. */
68
- "xades:SignedSignatureProperties": SignedSignatureProperties;
69
- }
70
-
71
- /**
72
- * Represents the Qualifying Properties structure (Object element).
73
- */
74
- interface QualifyingProperties {
75
- /** Target attribute, should be 'signature'. */
76
- Target: string;
77
- /** Signed properties details. */
78
- "xades:SignedProperties": SignedProperties;
79
- // Note: UnsignedProperties might exist but are not detailed in the mandatory part
80
- }
81
-
82
- /**
83
- * Represents the X509 Data structure within KeyInfo.
84
- */
85
- interface X509Data {
86
- /** Base64 encoded X509 certificate. */
87
- "ds:X509Certificate": string; // base64binary
88
- }
89
-
90
- /**
91
- * Represents the Key Information structure.
92
- */
93
- interface KeyInfo {
94
- /** X509 certificate data. */
95
- "ds:X509Data": X509Data;
96
- }
97
-
98
- /**
99
- * Represents the Transform structure within Reference.
100
- */
101
- interface Transform {
102
- /** Algorithm attribute for the transform. */
103
- Algorithm: string;
104
- }
105
-
106
- /**
107
- * Represents a Reference within SignedInfo.
108
- */
109
- interface Reference {
110
- /** ID attribute for the reference (e.g., 'id-doc-signed-data', 'id-xades-signed-props'). */
111
- Id?: string;
112
- /** URI attribute for the reference (e.g., '', '#id-xades-signed-props'). */
113
- URI: string;
114
- /** Optional Transforms applied. */
115
- "ds:Transforms"?: {
116
- "ds:Transform": Transform | Transform[]; // Can be single or multiple transforms
117
- };
118
- /** Digest method details. */
119
- "ds:DigestMethod": DigestMethod;
120
- /** Base64 encoded digest value (DocDigest or PropsDigest). */
121
- "ds:DigestValue": string; // base64binary
122
- }
123
-
124
- /**
125
- * Represents the Canonicalization Method structure.
126
- */
127
- interface CanonicalizationMethod {
128
- /** Algorithm used for canonicalization. Should be http://www.w3.org/2006/12/xml-c14n11 */
129
- Algorithm: string;
130
- }
131
-
132
- /**
133
- * Represents the Signature Method structure.
134
- */
135
- interface SignatureMethod {
136
- /** Algorithm used for signing. Should be http://www.w3.org/2001/04/xmldsig-more#rsa-sha256 */
137
- Algorithm: string;
138
- }
139
-
140
- /**
141
- * Represents the Signed Information structure.
142
- */
143
- interface SignedInfo {
144
- /** Canonicalization method details. */
145
- "ds:CanonicalizationMethod": CanonicalizationMethod;
146
- /** Signature method details. */
147
- "ds:SignatureMethod": SignatureMethod;
148
- /** References to signed data and properties. Should contain two references. */
149
- "ds:Reference": [Reference, Reference]; // Expecting two: one for document, one for signed properties
150
- }
151
-
152
- /**
153
- * Represents the root Signature element (IssuerDigitalSignature).
154
- * Based on the documentation: https://sdk.myinvois.hasil.gov.my/signature/
155
- * Conforms to XAdES enveloped signature requirements for UBL.
156
- */
157
- interface IssuerDigitalSignature {
158
- /** ID attribute, should be 'DocSig'. */
159
- Id: string;
160
- /** Signed information details. */
161
- "ds:SignedInfo": SignedInfo;
162
- /** Base64 encoded signature value (Sig). */
163
- "ds:SignatureValue": string; // base64binary
164
- /** Public key information (certificate). */
165
- "ds:KeyInfo": KeyInfo;
166
- /** Object containing signed properties. */
167
- "ds:Object": {
168
- "xades:QualifyingProperties": QualifyingProperties;
169
- };
170
- }
171
- //#endregion
172
- export { CanonicalizationMethod, Cert, CertDigest, DigestMethod, IssuerDigitalSignature, IssuerSerial, KeyInfo, QualifyingProperties, Reference, SignatureMethod, SignedInfo, SignedProperties, SignedSignatureProperties, SigningCertificate, Transform, X509Data };
@@ -1,173 +0,0 @@
1
- //#region src/types/signatures.d.ts
2
- /**
3
- * Represents the Digest Method structure used within the signature.
4
- */
5
- interface DigestMethod {
6
- /** Algorithm used for digest. Should be http://www.w3.org/2001/04/xmlenc#sha256 */
7
- Algorithm: string;
8
- }
9
-
10
- /**
11
- * Represents the Cert Digest structure.
12
- */
13
- interface CertDigest {
14
- /** Digest method details. */
15
- "ds:DigestMethod": DigestMethod;
16
- /** Base64 encoded HEX-SHA256 certificate information (CertDigest). */
17
- "ds:DigestValue": string; // base64binary
18
- }
19
-
20
- /**
21
- * Represents the Issuer Serial structure within the Signing Certificate.
22
- */
23
- interface IssuerSerial {
24
- /** CN of the certificate issuer (Organization name). */
25
- "ds:X509IssuerName": string;
26
- /** Digital certificate serial number. */
27
- "ds:X509SerialNumber": string; // xsd:normalizedString -> string
28
- }
29
-
30
- /**
31
- * Represents the Certificate structure within Signing Certificate.
32
- */
33
- interface Cert {
34
- /** Certificate digest details. */
35
- "xades:CertDigest": CertDigest;
36
- /** Issuer details. */
37
- "xades:IssuerSerial": IssuerSerial;
38
- }
39
-
40
- /**
41
- * Represents the Signing Certificate structure.
42
- */
43
- interface SigningCertificate {
44
- /** Certificate details. */
45
- "xades:Cert": Cert;
46
- }
47
-
48
- /**
49
- * Represents the Signed Signature Properties.
50
- */
51
- interface SignedSignatureProperties {
52
- /** UTC timestamp of signing (YYYY-MM-DDTHH:mm:ssZ). */
53
- "xades:SigningTime": string; // dateTime
54
- /** Signing certificate details. */
55
- "xades:SigningCertificate": SigningCertificate;
56
- // Note: Other optional properties like SignaturePolicyIdentifier might exist
57
- }
58
-
59
- /**
60
- * Represents the Signed Properties structure.
61
- */
62
- interface SignedProperties {
63
- /** Target attribute, should be 'signature'. */
64
- Target: string;
65
- /** ID attribute, should be 'id-xades-signed-props'. */
66
- Id: string;
67
- /** Signed signature properties. */
68
- "xades:SignedSignatureProperties": SignedSignatureProperties;
69
- }
70
-
71
- /**
72
- * Represents the Qualifying Properties structure (Object element).
73
- */
74
- interface QualifyingProperties {
75
- /** Target attribute, should be 'signature'. */
76
- Target: string;
77
- /** Signed properties details. */
78
- "xades:SignedProperties": SignedProperties;
79
- // Note: UnsignedProperties might exist but are not detailed in the mandatory part
80
- }
81
-
82
- /**
83
- * Represents the X509 Data structure within KeyInfo.
84
- */
85
- interface X509Data {
86
- /** Base64 encoded X509 certificate. */
87
- "ds:X509Certificate": string; // base64binary
88
- }
89
-
90
- /**
91
- * Represents the Key Information structure.
92
- */
93
- interface KeyInfo {
94
- /** X509 certificate data. */
95
- "ds:X509Data": X509Data;
96
- }
97
-
98
- /**
99
- * Represents the Transform structure within Reference.
100
- */
101
- interface Transform {
102
- /** Algorithm attribute for the transform. */
103
- Algorithm: string;
104
- }
105
-
106
- /**
107
- * Represents a Reference within SignedInfo.
108
- */
109
- interface Reference {
110
- /** ID attribute for the reference (e.g., 'id-doc-signed-data', 'id-xades-signed-props'). */
111
- Id?: string;
112
- /** URI attribute for the reference (e.g., '', '#id-xades-signed-props'). */
113
- URI: string;
114
- /** Optional Transforms applied. */
115
- "ds:Transforms"?: {
116
- "ds:Transform": Transform | Transform[]; // Can be single or multiple transforms
117
- };
118
- /** Digest method details. */
119
- "ds:DigestMethod": DigestMethod;
120
- /** Base64 encoded digest value (DocDigest or PropsDigest). */
121
- "ds:DigestValue": string; // base64binary
122
- }
123
-
124
- /**
125
- * Represents the Canonicalization Method structure.
126
- */
127
- interface CanonicalizationMethod {
128
- /** Algorithm used for canonicalization. Should be http://www.w3.org/2006/12/xml-c14n11 */
129
- Algorithm: string;
130
- }
131
-
132
- /**
133
- * Represents the Signature Method structure.
134
- */
135
- interface SignatureMethod {
136
- /** Algorithm used for signing. Should be http://www.w3.org/2001/04/xmldsig-more#rsa-sha256 */
137
- Algorithm: string;
138
- }
139
-
140
- /**
141
- * Represents the Signed Information structure.
142
- */
143
- interface SignedInfo {
144
- /** Canonicalization method details. */
145
- "ds:CanonicalizationMethod": CanonicalizationMethod;
146
- /** Signature method details. */
147
- "ds:SignatureMethod": SignatureMethod;
148
- /** References to signed data and properties. Should contain two references. */
149
- "ds:Reference": [Reference, Reference]; // Expecting two: one for document, one for signed properties
150
- }
151
-
152
- /**
153
- * Represents the root Signature element (IssuerDigitalSignature).
154
- * Based on the documentation: https://sdk.myinvois.hasil.gov.my/signature/
155
- * Conforms to XAdES enveloped signature requirements for UBL.
156
- */
157
- interface IssuerDigitalSignature {
158
- /** ID attribute, should be 'DocSig'. */
159
- Id: string;
160
- /** Signed information details. */
161
- "ds:SignedInfo": SignedInfo;
162
- /** Base64 encoded signature value (Sig). */
163
- "ds:SignatureValue": string; // base64binary
164
- /** Public key information (certificate). */
165
- "ds:KeyInfo": KeyInfo;
166
- /** Object containing signed properties. */
167
- "ds:Object": {
168
- "xades:QualifyingProperties": QualifyingProperties;
169
- };
170
- }
171
- //#endregion
172
- export { CanonicalizationMethod, Cert, CertDigest, DigestMethod, IssuerDigitalSignature, IssuerSerial, KeyInfo, QualifyingProperties, Reference, SignatureMethod, SignedInfo, SignedProperties, SignedSignatureProperties, SigningCertificate, Transform, X509Data };
173
- //# sourceMappingURL=signatures-CyDSZr_e.d.cts.map
@@ -1,61 +0,0 @@
1
- //#region src/types/state-codes.d.ts
2
- /**
3
- * Represents the allowed codes for Malaysian states and federal territories.
4
- * Based on the documentation: https://sdk.myinvois.hasil.gov.my/codes/state-codes/
5
- */
6
- type StateCode = '01' // Johor
7
- | '02' // Kedah
8
- | '03' // Kelantan
9
- | '04' // Melaka
10
- | '05' // Negeri Sembilan
11
- | '06' // Pahang
12
- | '07' // Pulau Pinang
13
- | '08' // Perak
14
- | '09' // Perlis
15
- | '10' // Selangor
16
- | '11' // Terengganu
17
- | '12' // Sabah
18
- | '13' // Sarawak
19
- | '14' // Wilayah Persekutuan Kuala Lumpur
20
- | '15' // Wilayah Persekutuan Labuan
21
- | '16' // Wilayah Persekutuan Putrajaya
22
- | '17'; // Not Applicable
23
-
24
- /**
25
- * Enum representing the allowed state codes with descriptive names.
26
- * Provides a more readable way to reference states.
27
- *
28
- * @example
29
- * const code = StateCodeEnum.Selangor;
30
- * console.log(code); // Output: "10"
31
- */
32
- declare enum StateCodeEnum {
33
- Johor = '01',
34
- Kedah = '02',
35
- Kelantan = '03',
36
- Melaka = '04',
37
- NegeriSembilan = '05',
38
- Pahang = '06',
39
- PulauPinang = '07',
40
- Perak = '08',
41
- Perlis = '09',
42
- Selangor = '10',
43
- Terengganu = '11',
44
- Sabah = '12',
45
- Sarawak = '13',
46
- WPKualaLumpur = '14',
47
- WPLabuan = '15',
48
- WPPutrajaya = '16',
49
- NotApplicable = '17',
50
- }
51
-
52
- /**
53
- * Interface representing a state code entry.
54
- * Contains the code and its corresponding name.
55
- */
56
- interface State {
57
- code: StateCode;
58
- name: string;
59
- }
60
- //#endregion
61
- export { State, StateCode, StateCodeEnum };
@@ -1,62 +0,0 @@
1
- //#region src/types/state-codes.d.ts
2
- /**
3
- * Represents the allowed codes for Malaysian states and federal territories.
4
- * Based on the documentation: https://sdk.myinvois.hasil.gov.my/codes/state-codes/
5
- */
6
- type StateCode = '01' // Johor
7
- | '02' // Kedah
8
- | '03' // Kelantan
9
- | '04' // Melaka
10
- | '05' // Negeri Sembilan
11
- | '06' // Pahang
12
- | '07' // Pulau Pinang
13
- | '08' // Perak
14
- | '09' // Perlis
15
- | '10' // Selangor
16
- | '11' // Terengganu
17
- | '12' // Sabah
18
- | '13' // Sarawak
19
- | '14' // Wilayah Persekutuan Kuala Lumpur
20
- | '15' // Wilayah Persekutuan Labuan
21
- | '16' // Wilayah Persekutuan Putrajaya
22
- | '17'; // Not Applicable
23
-
24
- /**
25
- * Enum representing the allowed state codes with descriptive names.
26
- * Provides a more readable way to reference states.
27
- *
28
- * @example
29
- * const code = StateCodeEnum.Selangor;
30
- * console.log(code); // Output: "10"
31
- */
32
- declare enum StateCodeEnum {
33
- Johor = '01',
34
- Kedah = '02',
35
- Kelantan = '03',
36
- Melaka = '04',
37
- NegeriSembilan = '05',
38
- Pahang = '06',
39
- PulauPinang = '07',
40
- Perak = '08',
41
- Perlis = '09',
42
- Selangor = '10',
43
- Terengganu = '11',
44
- Sabah = '12',
45
- Sarawak = '13',
46
- WPKualaLumpur = '14',
47
- WPLabuan = '15',
48
- WPPutrajaya = '16',
49
- NotApplicable = '17',
50
- }
51
-
52
- /**
53
- * Interface representing a state code entry.
54
- * Contains the code and its corresponding name.
55
- */
56
- interface State {
57
- code: StateCode;
58
- name: string;
59
- }
60
- //#endregion
61
- export { State, StateCode, StateCodeEnum };
62
- //# sourceMappingURL=state-codes-u3ppueWo.d.cts.map
@@ -1,41 +0,0 @@
1
- //#region src/types/tax-types.d.ts
2
- /**
3
- * Represents the allowed codes for tax types.
4
- * Based on the documentation: https://sdk.myinvois.hasil.gov.my/codes/tax-types/
5
- */
6
- type TaxTypeCode = '01' // Sales Tax
7
- | '02' // Service Tax
8
- | '03' // Tourism Tax
9
- | '04' // High-Value Goods Tax
10
- | '05' // Sales Tax on Low Value Goods
11
- | '06' // Not Applicable
12
- | 'E'; // Tax exemption (where applicable)
13
-
14
- /**
15
- * Enum representing the allowed tax type codes with descriptive names.
16
- * Provides a more readable way to reference tax types.
17
- *
18
- * @example
19
- * const code = TaxTypeCodeEnum.SalesTax;
20
- * console.log(code); // Output: "01"
21
- */
22
- declare enum TaxTypeCodeEnum {
23
- SalesTax = '01',
24
- ServiceTax = '02',
25
- TourismTax = '03',
26
- HighValueGoodsTax = '04',
27
- SalesTaxLowValueGoods = '05',
28
- NotApplicable = '06',
29
- TaxExemption = 'E',
30
- }
31
-
32
- /**
33
- * Interface representing a tax type entry.
34
- * Contains the code and its corresponding description.
35
- */
36
- interface TaxType {
37
- code: TaxTypeCode;
38
- description: string;
39
- }
40
- //#endregion
41
- export { TaxType, TaxTypeCode, TaxTypeCodeEnum };
@@ -1,42 +0,0 @@
1
- //#region src/types/tax-types.d.ts
2
- /**
3
- * Represents the allowed codes for tax types.
4
- * Based on the documentation: https://sdk.myinvois.hasil.gov.my/codes/tax-types/
5
- */
6
- type TaxTypeCode = '01' // Sales Tax
7
- | '02' // Service Tax
8
- | '03' // Tourism Tax
9
- | '04' // High-Value Goods Tax
10
- | '05' // Sales Tax on Low Value Goods
11
- | '06' // Not Applicable
12
- | 'E'; // Tax exemption (where applicable)
13
-
14
- /**
15
- * Enum representing the allowed tax type codes with descriptive names.
16
- * Provides a more readable way to reference tax types.
17
- *
18
- * @example
19
- * const code = TaxTypeCodeEnum.SalesTax;
20
- * console.log(code); // Output: "01"
21
- */
22
- declare enum TaxTypeCodeEnum {
23
- SalesTax = '01',
24
- ServiceTax = '02',
25
- TourismTax = '03',
26
- HighValueGoodsTax = '04',
27
- SalesTaxLowValueGoods = '05',
28
- NotApplicable = '06',
29
- TaxExemption = 'E',
30
- }
31
-
32
- /**
33
- * Interface representing a tax type entry.
34
- * Contains the code and its corresponding description.
35
- */
36
- interface TaxType {
37
- code: TaxTypeCode;
38
- description: string;
39
- }
40
- //#endregion
41
- export { TaxType, TaxTypeCode, TaxTypeCodeEnum };
42
- //# sourceMappingURL=tax-types-fu5Q6dic.d.cts.map
@@ -1,35 +0,0 @@
1
- import { MSICCode } from "./msic-codes-CjrrJmzb.js";
2
- import { RegistrationType } from "./documents-BYV12TVt.js";
3
-
4
- //#region src/types/taxpayer.d.ts
5
- interface TaxpayerQRCodeResponse {
6
- tin: string;
7
- name: string;
8
- idType: RegistrationType;
9
- idNumber: string;
10
- sst: string;
11
- email: string;
12
- contactNumber: string;
13
- ttx: string;
14
- businessActivityDescriptionBM: string;
15
- businessActivityDescriptionEN: string;
16
- msic: MSICCode['code'];
17
- addressLine1: string;
18
- addressLine2: string;
19
- postalZone: string;
20
- city: string;
21
- state: string;
22
- country: string;
23
- generatedTimestamp: string;
24
- }
25
- interface TinSearchParams {
26
- taxpayerName?: string;
27
- idType?: RegistrationType;
28
- idValue?: string;
29
- fileType?: '1' | '2';
30
- }
31
- interface TinSearchResponse {
32
- tin: string;
33
- }
34
- //#endregion
35
- export { TaxpayerQRCodeResponse, TinSearchParams, TinSearchResponse };
@@ -1,36 +0,0 @@
1
- import { MSICCode } from "./msic-codes-CIKdPqag.cjs";
2
- import { RegistrationType } from "./documents-D_V38Q_U.cjs";
3
-
4
- //#region src/types/taxpayer.d.ts
5
- interface TaxpayerQRCodeResponse {
6
- tin: string;
7
- name: string;
8
- idType: RegistrationType;
9
- idNumber: string;
10
- sst: string;
11
- email: string;
12
- contactNumber: string;
13
- ttx: string;
14
- businessActivityDescriptionBM: string;
15
- businessActivityDescriptionEN: string;
16
- msic: MSICCode['code'];
17
- addressLine1: string;
18
- addressLine2: string;
19
- postalZone: string;
20
- city: string;
21
- state: string;
22
- country: string;
23
- generatedTimestamp: string;
24
- }
25
- interface TinSearchParams {
26
- taxpayerName?: string;
27
- idType?: RegistrationType;
28
- idValue?: string;
29
- fileType?: '1' | '2';
30
- }
31
- interface TinSearchResponse {
32
- tin: string;
33
- }
34
- //#endregion
35
- export { TaxpayerQRCodeResponse, TinSearchParams, TinSearchResponse };
36
- //# sourceMappingURL=taxpayer-DwGzY1IL.d.cts.map
@@ -1,47 +0,0 @@
1
- import { formatIdValue } from "./formatIdValue-qTxJqj9o.js";
2
-
3
- //#region src/api/taxpayerValidation.ts
4
- async function tinSearch(context, params) {
5
- const { fetch, debug } = context;
6
- const { taxpayerName, idType, idValue, fileType } = params;
7
- if (idType && !idValue || !idType && idValue) throw new Error("idType and idValue must be provided together");
8
- if (fileType && (!idType || !idValue)) throw new Error("fileType can only be provided together with idType and idValue");
9
- if (!taxpayerName && (!idType || !idValue)) throw new Error("Either taxpayerName must be provided, or both idType and idValue must be provided");
10
- const queryParams = new URLSearchParams();
11
- if (idType && idValue) {
12
- queryParams.append("idType", idType);
13
- queryParams.append("idValue", formatIdValue(idValue));
14
- }
15
- if (fileType) queryParams.append("fileType", fileType);
16
- if (taxpayerName) queryParams.append("idName", taxpayerName);
17
- const queryString = queryParams.toString();
18
- try {
19
- const response = await fetch(`/api/v1.0/taxpayer/search/tin?${queryString}`, { method: "GET" });
20
- if (!response.ok) throw new Error(`Failed to search TIN: ${await response.text()}`);
21
- return await response.json();
22
- } catch (error) {
23
- if (debug) console.error("TIN search error:", error);
24
- throw error;
25
- }
26
- }
27
- async function verifyTin(context, tin, idType, idValue) {
28
- const { fetch, debug } = context;
29
- try {
30
- const response = await fetch(`/api/v1.0/taxpayer/validate/${tin}?idType=${idType}&idValue=${formatIdValue(idValue)}`, { method: "GET" });
31
- if (!response) return false;
32
- if (response.ok || response.status === 200) return true;
33
- return false;
34
- } catch (error) {
35
- if (debug) console.error(error);
36
- return false;
37
- }
38
- }
39
- async function taxpayerQRCode(context, qrCodeText) {
40
- const { fetch } = context;
41
- const base64EncodedQRCodeText = Buffer.from(qrCodeText).toString("base64");
42
- const response = await fetch(`/api/v1.0/taxpayer/qrcodeinfo/${base64EncodedQRCodeText}`);
43
- return response.json();
44
- }
45
-
46
- //#endregion
47
- export { taxpayerQRCode, tinSearch, verifyTin };
@@ -1,2 +0,0 @@
1
- import { Classification, ClassificationCode, ClassificationCodeEnum } from "../classification-codes-C2X4xW5-.js";
2
- export { Classification, ClassificationCode, ClassificationCodeEnum };
@@ -1,2 +0,0 @@
1
- import { Country, CountryCode, CountryCodeEnum, CountryNameEnum } from "../country-code-DsI8Mbzx.js";
2
- export { Country, CountryCode, CountryCodeEnum, CountryNameEnum };
@@ -1,2 +0,0 @@
1
- import { Currency, CurrencyCode, CurrencyCodeEnum } from "../currencies-DKuDflOO.js";
2
- export { Currency, CurrencyCode, CurrencyCodeEnum };