@payabli/sdk-node 0.0.123 → 0.0.126

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 (298) hide show
  1. package/dist/cjs/BaseClient.js +2 -2
  2. package/dist/cjs/api/resources/bill/types/BillResponseData.d.ts +2 -1
  3. package/dist/cjs/api/resources/export/client/Client.d.ts +0 -5
  4. package/dist/cjs/api/resources/export/client/Client.js +5 -21
  5. package/dist/cjs/api/resources/import/client/Client.d.ts +0 -5
  6. package/dist/cjs/api/resources/import/client/Client.js +5 -21
  7. package/dist/cjs/api/resources/index.d.ts +3 -0
  8. package/dist/cjs/api/resources/index.js +4 -1
  9. package/dist/cjs/api/resources/lineItem/client/Client.d.ts +0 -5
  10. package/dist/cjs/api/resources/lineItem/client/Client.js +5 -21
  11. package/dist/cjs/api/resources/moneyIn/client/Client.d.ts +247 -2
  12. package/dist/cjs/api/resources/moneyIn/client/Client.js +518 -2
  13. package/dist/cjs/api/resources/moneyIn/client/requests/RequestPaymentAuthorizeV2.d.ts +31 -0
  14. package/dist/cjs/api/resources/moneyIn/client/requests/RequestPaymentV2.d.ts +99 -0
  15. package/dist/cjs/api/resources/moneyIn/client/requests/index.d.ts +2 -0
  16. package/dist/cjs/api/resources/moneyIn/types/AuthResponseResponseData.d.ts +2 -2
  17. package/dist/cjs/api/resources/moneyIn/types/CaptureResponseData.d.ts +2 -2
  18. package/dist/cjs/api/resources/moneyIn/types/GetPaidResponseData.d.ts +3 -3
  19. package/dist/cjs/api/resources/moneyIn/types/ResponseDataRefunds.d.ts +2 -2
  20. package/dist/cjs/api/resources/moneyIn/types/TransactionDetailResponseData.d.ts +7 -3
  21. package/dist/cjs/api/resources/moneyIn/types/ValidateResponseData.d.ts +2 -2
  22. package/dist/cjs/api/resources/moneyIn/types/VoidResponseData.d.ts +2 -2
  23. package/dist/cjs/api/resources/moneyOutTypes/types/AuthCapturePayoutResponse.d.ts +2 -2
  24. package/dist/cjs/api/resources/notification/client/Client.d.ts +0 -5
  25. package/dist/cjs/api/resources/notification/client/Client.js +5 -21
  26. package/dist/cjs/api/resources/notificationlogs/client/Client.d.ts +0 -5
  27. package/dist/cjs/api/resources/notificationlogs/client/Client.js +5 -21
  28. package/dist/cjs/api/resources/ocr/client/Client.d.ts +0 -5
  29. package/dist/cjs/api/resources/ocr/client/Client.js +5 -21
  30. package/dist/cjs/api/resources/organization/client/Client.d.ts +0 -5
  31. package/dist/cjs/api/resources/organization/client/Client.js +5 -21
  32. package/dist/cjs/api/resources/paymentLink/client/Client.d.ts +0 -5
  33. package/dist/cjs/api/resources/paymentLink/client/Client.js +5 -21
  34. package/dist/cjs/api/resources/paymentMethodDomain/client/Client.d.ts +0 -5
  35. package/dist/cjs/api/resources/paymentMethodDomain/client/Client.js +5 -21
  36. package/dist/cjs/api/resources/paypoint/client/Client.d.ts +0 -5
  37. package/dist/cjs/api/resources/paypoint/client/Client.js +5 -21
  38. package/dist/cjs/api/resources/query/client/Client.d.ts +0 -5
  39. package/dist/cjs/api/resources/query/client/Client.js +5 -21
  40. package/dist/cjs/api/resources/queryTypes/types/QueryBatchesDetailResponse.d.ts +158 -0
  41. package/dist/cjs/api/resources/statistic/client/Client.d.ts +0 -5
  42. package/dist/cjs/api/resources/statistic/client/Client.js +5 -21
  43. package/dist/cjs/api/resources/subscription/client/Client.d.ts +0 -5
  44. package/dist/cjs/api/resources/subscription/client/Client.js +5 -21
  45. package/dist/cjs/api/resources/templates/client/Client.d.ts +0 -5
  46. package/dist/cjs/api/resources/templates/client/Client.js +5 -21
  47. package/dist/cjs/api/resources/tokenStorage/client/Client.d.ts +51 -5
  48. package/dist/cjs/api/resources/tokenStorage/client/Client.js +56 -21
  49. package/dist/cjs/api/resources/tokenStorage/client/requests/AddMethodRequest.d.ts +23 -0
  50. package/dist/cjs/api/resources/tokenStorage/client/requests/GetMethodRequest.d.ts +6 -0
  51. package/dist/cjs/api/resources/tokenStorage/client/requests/UpdateMethodRequest.d.ts +22 -0
  52. package/dist/cjs/api/resources/tokenStorage/types/GetMethodResponse.d.ts +100 -0
  53. package/dist/cjs/api/resources/tokenStorage/types/RequestTokenStorage.d.ts +1 -0
  54. package/dist/cjs/api/resources/tokenStorage/types/VendorDataRequest.d.ts +9 -0
  55. package/dist/cjs/api/resources/tokenStorage/types/VendorDataRequest.js +3 -0
  56. package/dist/cjs/api/resources/tokenStorage/types/index.d.ts +1 -0
  57. package/dist/cjs/api/resources/tokenStorage/types/index.js +1 -0
  58. package/dist/cjs/api/resources/user/client/Client.d.ts +0 -5
  59. package/dist/cjs/api/resources/user/client/Client.js +5 -21
  60. package/dist/cjs/api/resources/v2MoneyInTypes/errors/BadRequestAuthResponseErrorV2.d.ts +6 -0
  61. package/dist/cjs/api/resources/v2MoneyInTypes/errors/BadRequestAuthResponseErrorV2.js +54 -0
  62. package/dist/cjs/api/resources/v2MoneyInTypes/errors/BadRequestCaptureResponseErrorV2.d.ts +6 -0
  63. package/dist/cjs/api/resources/v2MoneyInTypes/errors/BadRequestCaptureResponseErrorV2.js +54 -0
  64. package/dist/cjs/api/resources/v2MoneyInTypes/errors/BadRequestRefundResponseErrorV2.d.ts +6 -0
  65. package/dist/cjs/api/resources/v2MoneyInTypes/errors/BadRequestRefundResponseErrorV2.js +54 -0
  66. package/dist/cjs/api/resources/v2MoneyInTypes/errors/BadRequestVoidResponseErrorV2.d.ts +6 -0
  67. package/dist/cjs/api/resources/v2MoneyInTypes/errors/BadRequestVoidResponseErrorV2.js +54 -0
  68. package/dist/cjs/api/resources/v2MoneyInTypes/errors/DeclinedAuthResponseErrorV2.d.ts +6 -0
  69. package/dist/cjs/api/resources/v2MoneyInTypes/errors/DeclinedAuthResponseErrorV2.js +54 -0
  70. package/dist/cjs/api/resources/v2MoneyInTypes/errors/DeclinedCaptureResponseErrorV2.d.ts +6 -0
  71. package/dist/cjs/api/resources/v2MoneyInTypes/errors/DeclinedCaptureResponseErrorV2.js +54 -0
  72. package/dist/cjs/api/resources/v2MoneyInTypes/errors/DeclinedRefundResponseErrorV2.d.ts +6 -0
  73. package/dist/cjs/api/resources/v2MoneyInTypes/errors/DeclinedRefundResponseErrorV2.js +54 -0
  74. package/dist/cjs/api/resources/v2MoneyInTypes/errors/DeclinedVoidResponseErrorV2.d.ts +6 -0
  75. package/dist/cjs/api/resources/v2MoneyInTypes/errors/DeclinedVoidResponseErrorV2.js +54 -0
  76. package/dist/cjs/api/resources/v2MoneyInTypes/errors/InternalServerResponseErrorV2.d.ts +6 -0
  77. package/dist/cjs/api/resources/v2MoneyInTypes/errors/InternalServerResponseErrorV2.js +54 -0
  78. package/dist/cjs/api/resources/v2MoneyInTypes/errors/index.d.ts +9 -0
  79. package/dist/cjs/api/resources/v2MoneyInTypes/errors/index.js +25 -0
  80. package/dist/cjs/api/resources/v2MoneyInTypes/index.d.ts +2 -0
  81. package/dist/cjs/api/resources/v2MoneyInTypes/index.js +18 -0
  82. package/dist/cjs/api/resources/v2MoneyInTypes/types/V2BadRequestError.d.ts +22 -0
  83. package/dist/cjs/api/resources/v2MoneyInTypes/types/V2BadRequestError.js +3 -0
  84. package/dist/cjs/api/resources/v2MoneyInTypes/types/V2BadRequestErrorDetail.d.ts +9 -0
  85. package/dist/cjs/api/resources/v2MoneyInTypes/types/V2BadRequestErrorDetail.js +3 -0
  86. package/dist/cjs/api/resources/v2MoneyInTypes/types/V2DeclinedTransactionResponseWrapper.d.ts +761 -0
  87. package/dist/cjs/api/resources/v2MoneyInTypes/types/V2DeclinedTransactionResponseWrapper.js +3 -0
  88. package/dist/cjs/api/resources/v2MoneyInTypes/types/V2InternalServerError.d.ts +21 -0
  89. package/dist/cjs/api/resources/v2MoneyInTypes/types/V2InternalServerError.js +3 -0
  90. package/dist/cjs/api/resources/v2MoneyInTypes/types/V2ResponseAction.d.ts +4 -0
  91. package/dist/cjs/api/resources/v2MoneyInTypes/types/V2ResponseAction.js +3 -0
  92. package/dist/cjs/api/resources/v2MoneyInTypes/types/V2ResponseCode.d.ts +4 -0
  93. package/dist/cjs/api/resources/v2MoneyInTypes/types/V2ResponseCode.js +3 -0
  94. package/dist/cjs/api/resources/v2MoneyInTypes/types/V2ResponseExplanation.d.ts +4 -0
  95. package/dist/cjs/api/resources/v2MoneyInTypes/types/V2ResponseExplanation.js +3 -0
  96. package/dist/cjs/api/resources/v2MoneyInTypes/types/V2ResponseReason.d.ts +4 -0
  97. package/dist/cjs/api/resources/v2MoneyInTypes/types/V2ResponseReason.js +3 -0
  98. package/dist/cjs/api/resources/v2MoneyInTypes/types/V2TransactionDetailResponseData.d.ts +65 -0
  99. package/dist/cjs/api/resources/v2MoneyInTypes/types/V2TransactionDetailResponseData.js +3 -0
  100. package/dist/cjs/api/resources/v2MoneyInTypes/types/V2TransactionDetails.d.ts +1003 -0
  101. package/dist/cjs/api/resources/v2MoneyInTypes/types/V2TransactionDetails.js +3 -0
  102. package/dist/cjs/api/resources/v2MoneyInTypes/types/V2TransactionResponseWrapper.d.ts +13 -0
  103. package/dist/cjs/api/resources/v2MoneyInTypes/types/V2TransactionResponseWrapper.js +3 -0
  104. package/dist/cjs/api/resources/v2MoneyInTypes/types/index.d.ts +11 -0
  105. package/dist/cjs/api/resources/v2MoneyInTypes/types/index.js +27 -0
  106. package/dist/cjs/api/resources/vendor/client/Client.d.ts +0 -5
  107. package/dist/cjs/api/resources/vendor/client/Client.js +5 -21
  108. package/dist/cjs/api/resources/wallet/client/Client.d.ts +0 -5
  109. package/dist/cjs/api/resources/wallet/client/Client.js +5 -21
  110. package/dist/cjs/api/types/ApplicationData.d.ts +1 -0
  111. package/dist/cjs/api/types/ApplicationDataManaged.d.ts +1 -0
  112. package/dist/cjs/api/types/ApplicationDataOdp.d.ts +1 -0
  113. package/dist/cjs/api/types/ApplicationDataPayIn.d.ts +1 -0
  114. package/dist/cjs/api/types/{Avsresponsetext.d.ts → AvsResponse.d.ts} +1 -1
  115. package/dist/cjs/api/types/AvsResponse.js +3 -0
  116. package/dist/{esm/api/types/Avsresponsetext.d.mts → cjs/api/types/AvsResponseText.d.ts} +1 -1
  117. package/dist/cjs/api/types/AvsResponseText.js +3 -0
  118. package/dist/cjs/api/types/CustomerVaultId.d.ts +1 -0
  119. package/dist/cjs/api/types/CustomerVaultId.js +3 -0
  120. package/dist/cjs/api/types/{Cvvresponsetext.d.ts → CvvResponse.d.ts} +1 -1
  121. package/dist/cjs/api/types/CvvResponse.js +3 -0
  122. package/dist/{esm/api/types/Cvvresponsetext.d.mts → cjs/api/types/CvvResponseText.d.ts} +1 -1
  123. package/dist/cjs/api/types/CvvResponseText.js +3 -0
  124. package/dist/cjs/api/types/EmvAuthResponseData.d.ts +4 -0
  125. package/dist/cjs/api/types/EmvAuthResponseData.js +3 -0
  126. package/dist/cjs/api/types/MaxTicket.d.ts +4 -0
  127. package/dist/cjs/api/types/MaxTicket.js +3 -0
  128. package/dist/cjs/api/types/MinTicket.d.ts +4 -0
  129. package/dist/cjs/api/types/MinTicket.js +3 -0
  130. package/dist/cjs/api/types/OnCreate.d.ts +4 -0
  131. package/dist/cjs/api/types/OnCreate.js +3 -0
  132. package/dist/cjs/api/types/PayabliApiResponse0.d.ts +2 -2
  133. package/dist/cjs/api/types/PayabliApiResponse0000.d.ts +2 -2
  134. package/dist/cjs/api/types/PayabliCredentialsPascal.d.ts +3 -2
  135. package/dist/cjs/api/types/QueryResponseData.d.ts +41 -10
  136. package/dist/cjs/api/types/QueryResponseSettlements.d.ts +134 -0
  137. package/dist/cjs/api/types/QuerySubscriptionResponse.d.ts +1 -1
  138. package/dist/cjs/api/types/QueryTransactionPayorData.d.ts +1 -1
  139. package/dist/cjs/api/types/ResultCodeText.d.ts +4 -0
  140. package/dist/cjs/api/types/ResultCodeText.js +3 -0
  141. package/dist/cjs/api/types/ResultCodev2.d.ts +4 -0
  142. package/dist/cjs/api/types/ResultCodev2.js +3 -0
  143. package/dist/cjs/api/types/index.d.ts +11 -2
  144. package/dist/cjs/api/types/index.js +11 -2
  145. package/dist/cjs/version.d.ts +1 -1
  146. package/dist/cjs/version.js +1 -1
  147. package/dist/esm/BaseClient.mjs +2 -2
  148. package/dist/esm/api/resources/bill/types/BillResponseData.d.mts +2 -1
  149. package/dist/esm/api/resources/export/client/Client.d.mts +0 -5
  150. package/dist/esm/api/resources/export/client/Client.mjs +5 -21
  151. package/dist/esm/api/resources/import/client/Client.d.mts +0 -5
  152. package/dist/esm/api/resources/import/client/Client.mjs +5 -21
  153. package/dist/esm/api/resources/index.d.mts +3 -0
  154. package/dist/esm/api/resources/index.mjs +3 -0
  155. package/dist/esm/api/resources/lineItem/client/Client.d.mts +0 -5
  156. package/dist/esm/api/resources/lineItem/client/Client.mjs +5 -21
  157. package/dist/esm/api/resources/moneyIn/client/Client.d.mts +247 -2
  158. package/dist/esm/api/resources/moneyIn/client/Client.mjs +518 -2
  159. package/dist/esm/api/resources/moneyIn/client/requests/RequestPaymentAuthorizeV2.d.mts +31 -0
  160. package/dist/esm/api/resources/moneyIn/client/requests/RequestPaymentV2.d.mts +99 -0
  161. package/dist/esm/api/resources/moneyIn/client/requests/index.d.mts +2 -0
  162. package/dist/esm/api/resources/moneyIn/types/AuthResponseResponseData.d.mts +2 -2
  163. package/dist/esm/api/resources/moneyIn/types/CaptureResponseData.d.mts +2 -2
  164. package/dist/esm/api/resources/moneyIn/types/GetPaidResponseData.d.mts +3 -3
  165. package/dist/esm/api/resources/moneyIn/types/ResponseDataRefunds.d.mts +2 -2
  166. package/dist/esm/api/resources/moneyIn/types/TransactionDetailResponseData.d.mts +7 -3
  167. package/dist/esm/api/resources/moneyIn/types/ValidateResponseData.d.mts +2 -2
  168. package/dist/esm/api/resources/moneyIn/types/VoidResponseData.d.mts +2 -2
  169. package/dist/esm/api/resources/moneyOutTypes/types/AuthCapturePayoutResponse.d.mts +2 -2
  170. package/dist/esm/api/resources/notification/client/Client.d.mts +0 -5
  171. package/dist/esm/api/resources/notification/client/Client.mjs +5 -21
  172. package/dist/esm/api/resources/notificationlogs/client/Client.d.mts +0 -5
  173. package/dist/esm/api/resources/notificationlogs/client/Client.mjs +5 -21
  174. package/dist/esm/api/resources/ocr/client/Client.d.mts +0 -5
  175. package/dist/esm/api/resources/ocr/client/Client.mjs +5 -21
  176. package/dist/esm/api/resources/organization/client/Client.d.mts +0 -5
  177. package/dist/esm/api/resources/organization/client/Client.mjs +5 -21
  178. package/dist/esm/api/resources/paymentLink/client/Client.d.mts +0 -5
  179. package/dist/esm/api/resources/paymentLink/client/Client.mjs +5 -21
  180. package/dist/esm/api/resources/paymentMethodDomain/client/Client.d.mts +0 -5
  181. package/dist/esm/api/resources/paymentMethodDomain/client/Client.mjs +5 -21
  182. package/dist/esm/api/resources/paypoint/client/Client.d.mts +0 -5
  183. package/dist/esm/api/resources/paypoint/client/Client.mjs +5 -21
  184. package/dist/esm/api/resources/query/client/Client.d.mts +0 -5
  185. package/dist/esm/api/resources/query/client/Client.mjs +5 -21
  186. package/dist/esm/api/resources/queryTypes/types/QueryBatchesDetailResponse.d.mts +158 -0
  187. package/dist/esm/api/resources/statistic/client/Client.d.mts +0 -5
  188. package/dist/esm/api/resources/statistic/client/Client.mjs +5 -21
  189. package/dist/esm/api/resources/subscription/client/Client.d.mts +0 -5
  190. package/dist/esm/api/resources/subscription/client/Client.mjs +5 -21
  191. package/dist/esm/api/resources/templates/client/Client.d.mts +0 -5
  192. package/dist/esm/api/resources/templates/client/Client.mjs +5 -21
  193. package/dist/esm/api/resources/tokenStorage/client/Client.d.mts +51 -5
  194. package/dist/esm/api/resources/tokenStorage/client/Client.mjs +56 -21
  195. package/dist/esm/api/resources/tokenStorage/client/requests/AddMethodRequest.d.mts +23 -0
  196. package/dist/esm/api/resources/tokenStorage/client/requests/GetMethodRequest.d.mts +6 -0
  197. package/dist/esm/api/resources/tokenStorage/client/requests/UpdateMethodRequest.d.mts +22 -0
  198. package/dist/esm/api/resources/tokenStorage/types/GetMethodResponse.d.mts +100 -0
  199. package/dist/esm/api/resources/tokenStorage/types/RequestTokenStorage.d.mts +1 -0
  200. package/dist/esm/api/resources/tokenStorage/types/VendorDataRequest.d.mts +9 -0
  201. package/dist/esm/api/resources/tokenStorage/types/VendorDataRequest.mjs +2 -0
  202. package/dist/esm/api/resources/tokenStorage/types/index.d.mts +1 -0
  203. package/dist/esm/api/resources/tokenStorage/types/index.mjs +1 -0
  204. package/dist/esm/api/resources/user/client/Client.d.mts +0 -5
  205. package/dist/esm/api/resources/user/client/Client.mjs +5 -21
  206. package/dist/esm/api/resources/v2MoneyInTypes/errors/BadRequestAuthResponseErrorV2.d.mts +6 -0
  207. package/dist/esm/api/resources/v2MoneyInTypes/errors/BadRequestAuthResponseErrorV2.mjs +17 -0
  208. package/dist/esm/api/resources/v2MoneyInTypes/errors/BadRequestCaptureResponseErrorV2.d.mts +6 -0
  209. package/dist/esm/api/resources/v2MoneyInTypes/errors/BadRequestCaptureResponseErrorV2.mjs +17 -0
  210. package/dist/esm/api/resources/v2MoneyInTypes/errors/BadRequestRefundResponseErrorV2.d.mts +6 -0
  211. package/dist/esm/api/resources/v2MoneyInTypes/errors/BadRequestRefundResponseErrorV2.mjs +17 -0
  212. package/dist/esm/api/resources/v2MoneyInTypes/errors/BadRequestVoidResponseErrorV2.d.mts +6 -0
  213. package/dist/esm/api/resources/v2MoneyInTypes/errors/BadRequestVoidResponseErrorV2.mjs +17 -0
  214. package/dist/esm/api/resources/v2MoneyInTypes/errors/DeclinedAuthResponseErrorV2.d.mts +6 -0
  215. package/dist/esm/api/resources/v2MoneyInTypes/errors/DeclinedAuthResponseErrorV2.mjs +17 -0
  216. package/dist/esm/api/resources/v2MoneyInTypes/errors/DeclinedCaptureResponseErrorV2.d.mts +6 -0
  217. package/dist/esm/api/resources/v2MoneyInTypes/errors/DeclinedCaptureResponseErrorV2.mjs +17 -0
  218. package/dist/esm/api/resources/v2MoneyInTypes/errors/DeclinedRefundResponseErrorV2.d.mts +6 -0
  219. package/dist/esm/api/resources/v2MoneyInTypes/errors/DeclinedRefundResponseErrorV2.mjs +17 -0
  220. package/dist/esm/api/resources/v2MoneyInTypes/errors/DeclinedVoidResponseErrorV2.d.mts +6 -0
  221. package/dist/esm/api/resources/v2MoneyInTypes/errors/DeclinedVoidResponseErrorV2.mjs +17 -0
  222. package/dist/esm/api/resources/v2MoneyInTypes/errors/InternalServerResponseErrorV2.d.mts +6 -0
  223. package/dist/esm/api/resources/v2MoneyInTypes/errors/InternalServerResponseErrorV2.mjs +17 -0
  224. package/dist/esm/api/resources/v2MoneyInTypes/errors/index.d.mts +9 -0
  225. package/dist/esm/api/resources/v2MoneyInTypes/errors/index.mjs +9 -0
  226. package/dist/esm/api/resources/v2MoneyInTypes/index.d.mts +2 -0
  227. package/dist/esm/api/resources/v2MoneyInTypes/index.mjs +2 -0
  228. package/dist/esm/api/resources/v2MoneyInTypes/types/V2BadRequestError.d.mts +22 -0
  229. package/dist/esm/api/resources/v2MoneyInTypes/types/V2BadRequestError.mjs +2 -0
  230. package/dist/esm/api/resources/v2MoneyInTypes/types/V2BadRequestErrorDetail.d.mts +9 -0
  231. package/dist/esm/api/resources/v2MoneyInTypes/types/V2BadRequestErrorDetail.mjs +2 -0
  232. package/dist/esm/api/resources/v2MoneyInTypes/types/V2DeclinedTransactionResponseWrapper.d.mts +761 -0
  233. package/dist/esm/api/resources/v2MoneyInTypes/types/V2DeclinedTransactionResponseWrapper.mjs +2 -0
  234. package/dist/esm/api/resources/v2MoneyInTypes/types/V2InternalServerError.d.mts +21 -0
  235. package/dist/esm/api/resources/v2MoneyInTypes/types/V2InternalServerError.mjs +2 -0
  236. package/dist/esm/api/resources/v2MoneyInTypes/types/V2ResponseAction.d.mts +4 -0
  237. package/dist/esm/api/resources/v2MoneyInTypes/types/V2ResponseAction.mjs +2 -0
  238. package/dist/esm/api/resources/v2MoneyInTypes/types/V2ResponseCode.d.mts +4 -0
  239. package/dist/esm/api/resources/v2MoneyInTypes/types/V2ResponseCode.mjs +2 -0
  240. package/dist/esm/api/resources/v2MoneyInTypes/types/V2ResponseExplanation.d.mts +4 -0
  241. package/dist/esm/api/resources/v2MoneyInTypes/types/V2ResponseExplanation.mjs +2 -0
  242. package/dist/esm/api/resources/v2MoneyInTypes/types/V2ResponseReason.d.mts +4 -0
  243. package/dist/esm/api/resources/v2MoneyInTypes/types/V2ResponseReason.mjs +2 -0
  244. package/dist/esm/api/resources/v2MoneyInTypes/types/V2TransactionDetailResponseData.d.mts +65 -0
  245. package/dist/esm/api/resources/v2MoneyInTypes/types/V2TransactionDetailResponseData.mjs +2 -0
  246. package/dist/esm/api/resources/v2MoneyInTypes/types/V2TransactionDetails.d.mts +1003 -0
  247. package/dist/esm/api/resources/v2MoneyInTypes/types/V2TransactionDetails.mjs +2 -0
  248. package/dist/esm/api/resources/v2MoneyInTypes/types/V2TransactionResponseWrapper.d.mts +13 -0
  249. package/dist/esm/api/resources/v2MoneyInTypes/types/V2TransactionResponseWrapper.mjs +2 -0
  250. package/dist/esm/api/resources/v2MoneyInTypes/types/index.d.mts +11 -0
  251. package/dist/esm/api/resources/v2MoneyInTypes/types/index.mjs +11 -0
  252. package/dist/esm/api/resources/vendor/client/Client.d.mts +0 -5
  253. package/dist/esm/api/resources/vendor/client/Client.mjs +5 -21
  254. package/dist/esm/api/resources/wallet/client/Client.d.mts +0 -5
  255. package/dist/esm/api/resources/wallet/client/Client.mjs +5 -21
  256. package/dist/esm/api/types/ApplicationData.d.mts +1 -0
  257. package/dist/esm/api/types/ApplicationDataManaged.d.mts +1 -0
  258. package/dist/esm/api/types/ApplicationDataOdp.d.mts +1 -0
  259. package/dist/esm/api/types/ApplicationDataPayIn.d.mts +1 -0
  260. package/dist/esm/api/types/AvsResponse.d.mts +4 -0
  261. package/dist/esm/api/types/AvsResponse.mjs +2 -0
  262. package/dist/esm/api/types/AvsResponseText.d.mts +4 -0
  263. package/dist/esm/api/types/AvsResponseText.mjs +2 -0
  264. package/dist/esm/api/types/CustomerVaultId.d.mts +1 -0
  265. package/dist/esm/api/types/CustomerVaultId.mjs +2 -0
  266. package/dist/esm/api/types/CvvResponse.d.mts +4 -0
  267. package/dist/esm/api/types/CvvResponse.mjs +2 -0
  268. package/dist/esm/api/types/CvvResponseText.d.mts +4 -0
  269. package/dist/esm/api/types/CvvResponseText.mjs +2 -0
  270. package/dist/esm/api/types/EmvAuthResponseData.d.mts +4 -0
  271. package/dist/esm/api/types/EmvAuthResponseData.mjs +2 -0
  272. package/dist/esm/api/types/MaxTicket.d.mts +4 -0
  273. package/dist/esm/api/types/MaxTicket.mjs +2 -0
  274. package/dist/esm/api/types/MinTicket.d.mts +4 -0
  275. package/dist/esm/api/types/MinTicket.mjs +2 -0
  276. package/dist/esm/api/types/OnCreate.d.mts +4 -0
  277. package/dist/esm/api/types/OnCreate.mjs +2 -0
  278. package/dist/esm/api/types/PayabliApiResponse0.d.mts +2 -2
  279. package/dist/esm/api/types/PayabliApiResponse0000.d.mts +2 -2
  280. package/dist/esm/api/types/PayabliCredentialsPascal.d.mts +3 -2
  281. package/dist/esm/api/types/QueryResponseData.d.mts +41 -10
  282. package/dist/esm/api/types/QueryResponseSettlements.d.mts +134 -0
  283. package/dist/esm/api/types/QuerySubscriptionResponse.d.mts +1 -1
  284. package/dist/esm/api/types/QueryTransactionPayorData.d.mts +1 -1
  285. package/dist/esm/api/types/ResultCodeText.d.mts +4 -0
  286. package/dist/esm/api/types/ResultCodeText.mjs +2 -0
  287. package/dist/esm/api/types/ResultCodev2.d.mts +4 -0
  288. package/dist/esm/api/types/ResultCodev2.mjs +2 -0
  289. package/dist/esm/api/types/index.d.mts +11 -2
  290. package/dist/esm/api/types/index.mjs +11 -2
  291. package/dist/esm/version.d.mts +1 -1
  292. package/dist/esm/version.mjs +1 -1
  293. package/package.json +1 -1
  294. package/reference.md +467 -2
  295. /package/dist/cjs/api/{types/Avsresponsetext.js → resources/moneyIn/client/requests/RequestPaymentAuthorizeV2.js} +0 -0
  296. /package/dist/cjs/api/{types/Cvvresponsetext.js → resources/moneyIn/client/requests/RequestPaymentV2.js} +0 -0
  297. /package/dist/esm/api/{types/Avsresponsetext.mjs → resources/moneyIn/client/requests/RequestPaymentAuthorizeV2.mjs} +0 -0
  298. /package/dist/esm/api/{types/Cvvresponsetext.mjs → resources/moneyIn/client/requests/RequestPaymentV2.mjs} +0 -0
@@ -0,0 +1,99 @@
1
+ import type * as Payabli from "../../../../index.mjs";
2
+ /**
3
+ * @example
4
+ * {
5
+ * body: {
6
+ * customerData: {
7
+ * customerId: 4440
8
+ * },
9
+ * entryPoint: "f743aed24a",
10
+ * ipaddress: "255.255.255.255",
11
+ * paymentDetails: {
12
+ * serviceFee: 0,
13
+ * totalAmount: 100
14
+ * },
15
+ * paymentMethod: {
16
+ * cardcvv: "999",
17
+ * cardexp: "02/27",
18
+ * cardHolder: "John Cassian",
19
+ * cardnumber: "4111111111111111",
20
+ * cardzip: "12345",
21
+ * initiator: "payor",
22
+ * method: "card"
23
+ * }
24
+ * }
25
+ * }
26
+ *
27
+ * @example
28
+ * {
29
+ * body: {
30
+ * customerData: {
31
+ * customerId: 4440
32
+ * },
33
+ * entryPoint: "f743aed24a",
34
+ * ipaddress: "255.255.255.255",
35
+ * paymentDetails: {
36
+ * serviceFee: 0,
37
+ * totalAmount: 100
38
+ * },
39
+ * paymentMethod: {
40
+ * initiator: "payor",
41
+ * method: "card",
42
+ * storedMethodId: "1ec55af9-7b5a-4ff0-81ed-c12d2f95e135-4440",
43
+ * storedMethodUsageType: "unscheduled"
44
+ * }
45
+ * }
46
+ * }
47
+ *
48
+ * @example
49
+ * {
50
+ * body: {
51
+ * customerData: {
52
+ * customerId: 4440
53
+ * },
54
+ * entryPoint: "f743aed24a",
55
+ * ipaddress: "255.255.255.255",
56
+ * paymentDetails: {
57
+ * serviceFee: 0,
58
+ * totalAmount: 100
59
+ * },
60
+ * paymentMethod: {
61
+ * achAccount: "123123123",
62
+ * achAccountType: "Checking",
63
+ * achCode: "WEB",
64
+ * achHolder: "John Cassian",
65
+ * achHolderType: "personal",
66
+ * achRouting: "123123123",
67
+ * method: "ach"
68
+ * }
69
+ * }
70
+ * }
71
+ *
72
+ * @example
73
+ * {
74
+ * body: {
75
+ * customerData: {
76
+ * customerId: 4440
77
+ * },
78
+ * entryPoint: "f743aed24a",
79
+ * ipaddress: "255.255.255.255",
80
+ * paymentDetails: {
81
+ * serviceFee: 0,
82
+ * totalAmount: 100
83
+ * },
84
+ * paymentMethod: {
85
+ * device: "6c361c7d-674c-44cc-b790-382b75d1xxx",
86
+ * method: "cloud",
87
+ * saveIfSuccess: true
88
+ * }
89
+ * }
90
+ * }
91
+ */
92
+ export interface RequestPaymentV2 {
93
+ achValidation?: Payabli.AchValidation | undefined;
94
+ forceCustomerCreation?: Payabli.ForceCustomerCreation | undefined;
95
+ idempotencyKey?: Payabli.IdempotencyKey;
96
+ /** Value obtained from user when an API generated CAPTCHA is used in payment page */
97
+ validationCode?: string;
98
+ body: Payabli.TransRequestBody;
99
+ }
@@ -1,6 +1,8 @@
1
1
  export type { RequestCredit } from "./RequestCredit.mjs";
2
2
  export type { RequestPayment } from "./RequestPayment.mjs";
3
3
  export type { RequestPaymentAuthorize } from "./RequestPaymentAuthorize.mjs";
4
+ export type { RequestPaymentAuthorizeV2 } from "./RequestPaymentAuthorizeV2.mjs";
5
+ export type { RequestPaymentV2 } from "./RequestPaymentV2.mjs";
4
6
  export type { RequestPaymentValidate } from "./RequestPaymentValidate.mjs";
5
7
  export type { RequestRefund } from "./RequestRefund.mjs";
6
8
  export type { SendReceipt2TransRequest } from "./SendReceipt2TransRequest.mjs";
@@ -4,8 +4,8 @@ export interface AuthResponseResponseData {
4
4
  referenceId: Payabli.Referenceidtrans;
5
5
  resultCode: Payabli.ResultCode;
6
6
  resultText: Payabli.Resulttext;
7
- avsResponseText: Payabli.Avsresponsetext;
8
- cvvResponseText: Payabli.Cvvresponsetext;
7
+ avsResponseText: Payabli.AvsResponseText;
8
+ cvvResponseText: Payabli.CvvResponseText;
9
9
  customerId: Payabli.Customeridtrans;
10
10
  methodReferenceId?: Payabli.MethodReferenceId;
11
11
  }
@@ -7,8 +7,8 @@ export interface CaptureResponseData {
7
7
  referenceId: Payabli.Referenceidtrans;
8
8
  resultCode: Payabli.ResultCode;
9
9
  resultText: Payabli.Resulttext;
10
- avsResponseText: Payabli.Avsresponsetext | null;
11
- cvvResponseText: Payabli.Cvvresponsetext | null;
10
+ avsResponseText: Payabli.AvsResponseText | null;
11
+ cvvResponseText: Payabli.CvvResponseText | null;
12
12
  customerId: Payabli.Customeridtrans | null;
13
13
  methodReferenceId: Payabli.MethodReferenceId | null;
14
14
  }
@@ -3,14 +3,14 @@ import type * as Payabli from "../../../index.mjs";
3
3
  * Response data for GetPaid transactions
4
4
  */
5
5
  export interface GetPaidResponseData {
6
+ authCode: Payabli.Authcode | null;
6
7
  /** Details of the transaction. Present only if `includeDetails` query parameter is set to `true` in the request. */
7
8
  transactionDetails?: Payabli.TransactionDetailRecord;
8
- authCode?: Payabli.Authcode;
9
9
  referenceId: Payabli.Referenceidtrans;
10
10
  resultCode: Payabli.ResultCode;
11
11
  resultText: Payabli.Resulttext;
12
- avsResponseText: Payabli.Avsresponsetext;
13
- cvvResponseText: Payabli.Cvvresponsetext;
12
+ avsResponseText: Payabli.AvsResponseText;
13
+ cvvResponseText: Payabli.CvvResponseText;
14
14
  customerId: Payabli.Customeridtrans;
15
15
  methodReferenceId?: Payabli.MethodReferenceId;
16
16
  }
@@ -3,10 +3,10 @@ export interface ResponseDataRefunds {
3
3
  authCode: Payabli.Authcode;
4
4
  expectedProcessingDateTime: (Payabli.ExpectedProcessingDateTime | undefined) | null;
5
5
  /** This field isn't applicable to refund operations. */
6
- avsResponseText?: Payabli.Avsresponsetext;
6
+ avsResponseText?: Payabli.AvsResponseText;
7
7
  customerId: Payabli.CustomerId | null;
8
8
  /** This field isn't applicable to refund operations. */
9
- cvvResponseText: Payabli.Cvvresponsetext | null;
9
+ cvvResponseText: Payabli.CvvResponseText | null;
10
10
  /** This field isn't applicable to refund operations. */
11
11
  methodReferenceId: Payabli.MethodReferenceId | null;
12
12
  referenceId: Payabli.Referenceidtrans;
@@ -3,18 +3,22 @@ import type * as Payabli from "../../../index.mjs";
3
3
  * Response data from payment processor
4
4
  */
5
5
  export interface TransactionDetailResponseData {
6
+ /** Unified result code for the transaction. See [Pay In unified response codes](/developers/references/pay-in-unified-response-codes) for more information. */
7
+ resultCode?: string;
8
+ /** Description of the result code. See [Pay In unified response codes](/developers/references/pay-in-unified-response-codes) for more information. */
9
+ resultCodeText?: string;
6
10
  response: string | null;
7
11
  responsetext: Payabli.Resulttext;
8
12
  authcode: Payabli.Authcode | null;
9
13
  transactionid: string;
10
14
  avsresponse: string | null;
11
- avsresponse_text: Payabli.Avsresponsetext | null;
15
+ avsresponse_text: Payabli.AvsResponseText | null;
12
16
  cvvresponse: string | null;
13
- cvvresponse_text: Payabli.Cvvresponsetext | null;
17
+ cvvresponse_text: Payabli.CvvResponseText | null;
14
18
  orderid: Payabli.OrderId | null;
15
19
  type: string | null;
16
20
  response_code: string;
17
21
  response_code_text: string;
18
22
  customer_vault_id: string | null;
19
- emv_auth_response_data: string | null;
23
+ emv_auth_response_data: Payabli.EmvAuthResponseData | null;
20
24
  }
@@ -7,8 +7,8 @@ export interface ValidateResponseData {
7
7
  referenceId: Payabli.Referenceidtrans;
8
8
  resultCode: Payabli.ResultCode;
9
9
  resultText: Payabli.Resulttext;
10
- avsResponseText: Payabli.Avsresponsetext;
11
- cvvResponseText: Payabli.Cvvresponsetext;
10
+ avsResponseText: Payabli.AvsResponseText;
11
+ cvvResponseText: Payabli.CvvResponseText;
12
12
  customerId: Payabli.Customeridtrans;
13
13
  methodReferenceId?: Payabli.MethodReferenceId;
14
14
  }
@@ -7,8 +7,8 @@ export interface VoidResponseData {
7
7
  referenceId: Payabli.Referenceidtrans;
8
8
  resultCode: Payabli.ResultCode;
9
9
  resultText: Payabli.Resulttext;
10
- avsResponseText?: Payabli.Avsresponsetext;
11
- cvvResponseText?: Payabli.Cvvresponsetext;
10
+ avsResponseText?: Payabli.AvsResponseText;
11
+ cvvResponseText?: Payabli.CvvResponseText;
12
12
  customerId?: Payabli.Customeridtrans;
13
13
  methodReferenceId?: Payabli.MethodReferenceId;
14
14
  }
@@ -52,8 +52,8 @@ export declare namespace AuthCapturePayoutResponse {
52
52
  referenceId: Payabli.Referenceidtrans;
53
53
  resultCode: Payabli.ResultCode;
54
54
  resultText: Payabli.Resulttext;
55
- avsResponseText: Payabli.Avsresponsetext | null;
56
- cvvResponseText: Payabli.Cvvresponsetext | null;
55
+ avsResponseText: Payabli.AvsResponseText | null;
56
+ cvvResponseText: Payabli.CvvResponseText | null;
57
57
  customerId: Payabli.Customeridtrans;
58
58
  methodReferenceId: Payabli.MethodReferenceId | null;
59
59
  }
@@ -131,11 +131,6 @@ export declare class NotificationClient {
131
131
  * @param {number} Id - Report ID
132
132
  * @param {NotificationClient.RequestOptions} requestOptions - Request-specific configuration.
133
133
  *
134
- * @throws {@link Payabli.BadRequestError}
135
- * @throws {@link Payabli.UnauthorizedError}
136
- * @throws {@link Payabli.InternalServerError}
137
- * @throws {@link Payabli.ServiceUnavailableError}
138
- *
139
134
  * @example
140
135
  * await client.notification.getReportFile(1000000)
141
136
  */
@@ -319,11 +319,6 @@ export class NotificationClient {
319
319
  * @param {number} Id - Report ID
320
320
  * @param {NotificationClient.RequestOptions} requestOptions - Request-specific configuration.
321
321
  *
322
- * @throws {@link Payabli.BadRequestError}
323
- * @throws {@link Payabli.UnauthorizedError}
324
- * @throws {@link Payabli.InternalServerError}
325
- * @throws {@link Payabli.ServiceUnavailableError}
326
- *
327
322
  * @example
328
323
  * await client.notification.getReportFile(1000000)
329
324
  */
@@ -350,22 +345,11 @@ export class NotificationClient {
350
345
  return { data: _response.body, rawResponse: _response.rawResponse };
351
346
  }
352
347
  if (_response.error.reason === "status-code") {
353
- switch (_response.error.statusCode) {
354
- case 400:
355
- throw new Payabli.BadRequestError(_response.error.body, _response.rawResponse);
356
- case 401:
357
- throw new Payabli.UnauthorizedError(_response.error.body, _response.rawResponse);
358
- case 500:
359
- throw new Payabli.InternalServerError(_response.error.body, _response.rawResponse);
360
- case 503:
361
- throw new Payabli.ServiceUnavailableError(_response.error.body, _response.rawResponse);
362
- default:
363
- throw new errors.PayabliError({
364
- statusCode: _response.error.statusCode,
365
- body: _response.error.body,
366
- rawResponse: _response.rawResponse,
367
- });
368
- }
348
+ throw new errors.PayabliError({
349
+ statusCode: _response.error.statusCode,
350
+ body: _response.error.body,
351
+ rawResponse: _response.rawResponse,
352
+ });
369
353
  }
370
354
  return handleNonStatusCodeError(_response.error, _response.rawResponse, "GET", "/Export/notificationReport/{Id}");
371
355
  });
@@ -83,11 +83,6 @@ export declare class NotificationlogsClient {
83
83
  * @param {Payabli.BulkRetryRequest} request
84
84
  * @param {NotificationlogsClient.RequestOptions} requestOptions - Request-specific configuration.
85
85
  *
86
- * @throws {@link Payabli.BadRequestError}
87
- * @throws {@link Payabli.UnauthorizedError}
88
- * @throws {@link Payabli.InternalServerError}
89
- * @throws {@link Payabli.ServiceUnavailableError}
90
- *
91
86
  * @example
92
87
  * await client.notificationlogs.bulkRetryNotificationLogs(["550e8400-e29b-41d4-a716-446655440000", "550e8400-e29b-41d4-a716-446655440001", "550e8400-e29b-41d4-a716-446655440002"])
93
88
  */
@@ -226,11 +226,6 @@ export class NotificationlogsClient {
226
226
  * @param {Payabli.BulkRetryRequest} request
227
227
  * @param {NotificationlogsClient.RequestOptions} requestOptions - Request-specific configuration.
228
228
  *
229
- * @throws {@link Payabli.BadRequestError}
230
- * @throws {@link Payabli.UnauthorizedError}
231
- * @throws {@link Payabli.InternalServerError}
232
- * @throws {@link Payabli.ServiceUnavailableError}
233
- *
234
229
  * @example
235
230
  * await client.notificationlogs.bulkRetryNotificationLogs(["550e8400-e29b-41d4-a716-446655440000", "550e8400-e29b-41d4-a716-446655440001", "550e8400-e29b-41d4-a716-446655440002"])
236
231
  */
@@ -260,22 +255,11 @@ export class NotificationlogsClient {
260
255
  return { data: undefined, rawResponse: _response.rawResponse };
261
256
  }
262
257
  if (_response.error.reason === "status-code") {
263
- switch (_response.error.statusCode) {
264
- case 400:
265
- throw new Payabli.BadRequestError(_response.error.body, _response.rawResponse);
266
- case 401:
267
- throw new Payabli.UnauthorizedError(_response.error.body, _response.rawResponse);
268
- case 500:
269
- throw new Payabli.InternalServerError(_response.error.body, _response.rawResponse);
270
- case 503:
271
- throw new Payabli.ServiceUnavailableError(_response.error.body, _response.rawResponse);
272
- default:
273
- throw new errors.PayabliError({
274
- statusCode: _response.error.statusCode,
275
- body: _response.error.body,
276
- rawResponse: _response.rawResponse,
277
- });
278
- }
258
+ throw new errors.PayabliError({
259
+ statusCode: _response.error.statusCode,
260
+ body: _response.error.body,
261
+ rawResponse: _response.rawResponse,
262
+ });
279
263
  }
280
264
  return handleNonStatusCodeError(_response.error, _response.rawResponse, "POST", "/v2/notificationlogs/retry");
281
265
  });
@@ -34,11 +34,6 @@ export declare class OcrClient {
34
34
  * @param {Payabli.FileContentImageOnly} request
35
35
  * @param {OcrClient.RequestOptions} requestOptions - Request-specific configuration.
36
36
  *
37
- * @throws {@link Payabli.BadRequestError}
38
- * @throws {@link Payabli.UnauthorizedError}
39
- * @throws {@link Payabli.InternalServerError}
40
- * @throws {@link Payabli.ServiceUnavailableError}
41
- *
42
37
  * @example
43
38
  * await client.ocr.ocrDocumentJson("typeResult", {})
44
39
  */
@@ -87,11 +87,6 @@ export class OcrClient {
87
87
  * @param {Payabli.FileContentImageOnly} request
88
88
  * @param {OcrClient.RequestOptions} requestOptions - Request-specific configuration.
89
89
  *
90
- * @throws {@link Payabli.BadRequestError}
91
- * @throws {@link Payabli.UnauthorizedError}
92
- * @throws {@link Payabli.InternalServerError}
93
- * @throws {@link Payabli.ServiceUnavailableError}
94
- *
95
90
  * @example
96
91
  * await client.ocr.ocrDocumentJson("typeResult", {})
97
92
  */
@@ -121,22 +116,11 @@ export class OcrClient {
121
116
  return { data: _response.body, rawResponse: _response.rawResponse };
122
117
  }
123
118
  if (_response.error.reason === "status-code") {
124
- switch (_response.error.statusCode) {
125
- case 400:
126
- throw new Payabli.BadRequestError(_response.error.body, _response.rawResponse);
127
- case 401:
128
- throw new Payabli.UnauthorizedError(_response.error.body, _response.rawResponse);
129
- case 500:
130
- throw new Payabli.InternalServerError(_response.error.body, _response.rawResponse);
131
- case 503:
132
- throw new Payabli.ServiceUnavailableError(_response.error.body, _response.rawResponse);
133
- default:
134
- throw new errors.PayabliError({
135
- statusCode: _response.error.statusCode,
136
- body: _response.error.body,
137
- rawResponse: _response.rawResponse,
138
- });
139
- }
119
+ throw new errors.PayabliError({
120
+ statusCode: _response.error.statusCode,
121
+ body: _response.error.body,
122
+ rawResponse: _response.rawResponse,
123
+ });
140
124
  }
141
125
  return handleNonStatusCodeError(_response.error, _response.rawResponse, "POST", "/Import/ocrDocumentJson/{typeResult}");
142
126
  });
@@ -169,11 +169,6 @@ export declare class OrganizationClient {
169
169
  * @param {number} orgId - The numeric identifier for organization, assigned by Payabli.
170
170
  * @param {OrganizationClient.RequestOptions} requestOptions - Request-specific configuration.
171
171
  *
172
- * @throws {@link Payabli.BadRequestError}
173
- * @throws {@link Payabli.UnauthorizedError}
174
- * @throws {@link Payabli.InternalServerError}
175
- * @throws {@link Payabli.ServiceUnavailableError}
176
- *
177
172
  * @example
178
173
  * await client.organization.getSettingsOrganization(123)
179
174
  */
@@ -442,11 +442,6 @@ export class OrganizationClient {
442
442
  * @param {number} orgId - The numeric identifier for organization, assigned by Payabli.
443
443
  * @param {OrganizationClient.RequestOptions} requestOptions - Request-specific configuration.
444
444
  *
445
- * @throws {@link Payabli.BadRequestError}
446
- * @throws {@link Payabli.UnauthorizedError}
447
- * @throws {@link Payabli.InternalServerError}
448
- * @throws {@link Payabli.ServiceUnavailableError}
449
- *
450
445
  * @example
451
446
  * await client.organization.getSettingsOrganization(123)
452
447
  */
@@ -473,22 +468,11 @@ export class OrganizationClient {
473
468
  return { data: _response.body, rawResponse: _response.rawResponse };
474
469
  }
475
470
  if (_response.error.reason === "status-code") {
476
- switch (_response.error.statusCode) {
477
- case 400:
478
- throw new Payabli.BadRequestError(_response.error.body, _response.rawResponse);
479
- case 401:
480
- throw new Payabli.UnauthorizedError(_response.error.body, _response.rawResponse);
481
- case 500:
482
- throw new Payabli.InternalServerError(_response.error.body, _response.rawResponse);
483
- case 503:
484
- throw new Payabli.ServiceUnavailableError(_response.error.body, _response.rawResponse);
485
- default:
486
- throw new errors.PayabliError({
487
- statusCode: _response.error.statusCode,
488
- body: _response.error.body,
489
- rawResponse: _response.rawResponse,
490
- });
491
- }
471
+ throw new errors.PayabliError({
472
+ statusCode: _response.error.statusCode,
473
+ body: _response.error.body,
474
+ rawResponse: _response.rawResponse,
475
+ });
492
476
  }
493
477
  return handleNonStatusCodeError(_response.error, _response.rawResponse, "GET", "/Organization/settings/{orgId}");
494
478
  });
@@ -363,11 +363,6 @@ export declare class PaymentLinkClient {
363
363
  * @param {Payabli.PayLinkDataOut} request
364
364
  * @param {PaymentLinkClient.RequestOptions} requestOptions - Request-specific configuration.
365
365
  *
366
- * @throws {@link Payabli.BadRequestError}
367
- * @throws {@link Payabli.UnauthorizedError}
368
- * @throws {@link Payabli.InternalServerError}
369
- * @throws {@link Payabli.ServiceUnavailableError}
370
- *
371
366
  * @example
372
367
  * await client.paymentLink.addPayLinkFromBillLotNumber("LOT-2024-001", {
373
368
  * entryPoint: "billing",
@@ -762,11 +762,6 @@ export class PaymentLinkClient {
762
762
  * @param {Payabli.PayLinkDataOut} request
763
763
  * @param {PaymentLinkClient.RequestOptions} requestOptions - Request-specific configuration.
764
764
  *
765
- * @throws {@link Payabli.BadRequestError}
766
- * @throws {@link Payabli.UnauthorizedError}
767
- * @throws {@link Payabli.InternalServerError}
768
- * @throws {@link Payabli.ServiceUnavailableError}
769
- *
770
765
  * @example
771
766
  * await client.paymentLink.addPayLinkFromBillLotNumber("LOT-2024-001", {
772
767
  * entryPoint: "billing",
@@ -891,22 +886,11 @@ export class PaymentLinkClient {
891
886
  };
892
887
  }
893
888
  if (_response.error.reason === "status-code") {
894
- switch (_response.error.statusCode) {
895
- case 400:
896
- throw new Payabli.BadRequestError(_response.error.body, _response.rawResponse);
897
- case 401:
898
- throw new Payabli.UnauthorizedError(_response.error.body, _response.rawResponse);
899
- case 500:
900
- throw new Payabli.InternalServerError(_response.error.body, _response.rawResponse);
901
- case 503:
902
- throw new Payabli.ServiceUnavailableError(_response.error.body, _response.rawResponse);
903
- default:
904
- throw new errors.PayabliError({
905
- statusCode: _response.error.statusCode,
906
- body: _response.error.body,
907
- rawResponse: _response.rawResponse,
908
- });
909
- }
889
+ throw new errors.PayabliError({
890
+ statusCode: _response.error.statusCode,
891
+ body: _response.error.body,
892
+ rawResponse: _response.rawResponse,
893
+ });
910
894
  }
911
895
  return handleNonStatusCodeError(_response.error, _response.rawResponse, "POST", "/PaymentLink/bill/lotNumber/{lotNumber}");
912
896
  });
@@ -139,11 +139,6 @@ export declare class PaymentMethodDomainClient {
139
139
  * @param {string} domainId - The payment method domain's ID in Payabli.
140
140
  * @param {PaymentMethodDomainClient.RequestOptions} requestOptions - Request-specific configuration.
141
141
  *
142
- * @throws {@link Payabli.BadRequestError}
143
- * @throws {@link Payabli.UnauthorizedError}
144
- * @throws {@link Payabli.InternalServerError}
145
- * @throws {@link Payabli.ServiceUnavailableError}
146
- *
147
142
  * @example
148
143
  * await client.paymentMethodDomain.verifyPaymentMethodDomain("pmd_b8237fa45c964d8a9ef27160cd42b8c5")
149
144
  */
@@ -432,11 +432,6 @@ export class PaymentMethodDomainClient {
432
432
  * @param {string} domainId - The payment method domain's ID in Payabli.
433
433
  * @param {PaymentMethodDomainClient.RequestOptions} requestOptions - Request-specific configuration.
434
434
  *
435
- * @throws {@link Payabli.BadRequestError}
436
- * @throws {@link Payabli.UnauthorizedError}
437
- * @throws {@link Payabli.InternalServerError}
438
- * @throws {@link Payabli.ServiceUnavailableError}
439
- *
440
435
  * @example
441
436
  * await client.paymentMethodDomain.verifyPaymentMethodDomain("pmd_b8237fa45c964d8a9ef27160cd42b8c5")
442
437
  */
@@ -466,22 +461,11 @@ export class PaymentMethodDomainClient {
466
461
  };
467
462
  }
468
463
  if (_response.error.reason === "status-code") {
469
- switch (_response.error.statusCode) {
470
- case 400:
471
- throw new Payabli.BadRequestError(_response.error.body, _response.rawResponse);
472
- case 401:
473
- throw new Payabli.UnauthorizedError(_response.error.body, _response.rawResponse);
474
- case 500:
475
- throw new Payabli.InternalServerError(_response.error.body, _response.rawResponse);
476
- case 503:
477
- throw new Payabli.ServiceUnavailableError(_response.error.body, _response.rawResponse);
478
- default:
479
- throw new errors.PayabliError({
480
- statusCode: _response.error.statusCode,
481
- body: _response.error.body,
482
- rawResponse: _response.rawResponse,
483
- });
484
- }
464
+ throw new errors.PayabliError({
465
+ statusCode: _response.error.statusCode,
466
+ body: _response.error.body,
467
+ rawResponse: _response.rawResponse,
468
+ });
485
469
  }
486
470
  return handleNonStatusCodeError(_response.error, _response.rawResponse, "POST", "/PaymentMethodDomain/{domainId}/verify");
487
471
  });
@@ -132,11 +132,6 @@ export declare class PaypointClient {
132
132
  * @param {Payabli.PaypointMoveRequest} request
133
133
  * @param {PaypointClient.RequestOptions} requestOptions - Request-specific configuration.
134
134
  *
135
- * @throws {@link Payabli.BadRequestError}
136
- * @throws {@link Payabli.UnauthorizedError}
137
- * @throws {@link Payabli.InternalServerError}
138
- * @throws {@link Payabli.ServiceUnavailableError}
139
- *
140
135
  * @example
141
136
  * await client.paypoint.migrate({
142
137
  * entryPoint: "473abc123def",
@@ -442,11 +442,6 @@ export class PaypointClient {
442
442
  * @param {Payabli.PaypointMoveRequest} request
443
443
  * @param {PaypointClient.RequestOptions} requestOptions - Request-specific configuration.
444
444
  *
445
- * @throws {@link Payabli.BadRequestError}
446
- * @throws {@link Payabli.UnauthorizedError}
447
- * @throws {@link Payabli.InternalServerError}
448
- * @throws {@link Payabli.ServiceUnavailableError}
449
- *
450
445
  * @example
451
446
  * await client.paypoint.migrate({
452
447
  * entryPoint: "473abc123def",
@@ -486,22 +481,11 @@ export class PaypointClient {
486
481
  return { data: _response.body, rawResponse: _response.rawResponse };
487
482
  }
488
483
  if (_response.error.reason === "status-code") {
489
- switch (_response.error.statusCode) {
490
- case 400:
491
- throw new Payabli.BadRequestError(_response.error.body, _response.rawResponse);
492
- case 401:
493
- throw new Payabli.UnauthorizedError(_response.error.body, _response.rawResponse);
494
- case 500:
495
- throw new Payabli.InternalServerError(_response.error.body, _response.rawResponse);
496
- case 503:
497
- throw new Payabli.ServiceUnavailableError(_response.error.body, _response.rawResponse);
498
- default:
499
- throw new errors.PayabliError({
500
- statusCode: _response.error.statusCode,
501
- body: _response.error.body,
502
- rawResponse: _response.rawResponse,
503
- });
504
- }
484
+ throw new errors.PayabliError({
485
+ statusCode: _response.error.statusCode,
486
+ body: _response.error.body,
487
+ rawResponse: _response.rawResponse,
488
+ });
505
489
  }
506
490
  return handleNonStatusCodeError(_response.error, _response.rawResponse, "POST", "/Paypoint/migrate");
507
491
  });
@@ -706,11 +706,6 @@ export declare class QueryClient {
706
706
  * @param {Payabli.ListVcardsOrgRequest} request
707
707
  * @param {QueryClient.RequestOptions} requestOptions - Request-specific configuration.
708
708
  *
709
- * @throws {@link Payabli.BadRequestError}
710
- * @throws {@link Payabli.UnauthorizedError}
711
- * @throws {@link Payabli.InternalServerError}
712
- * @throws {@link Payabli.ServiceUnavailableError}
713
- *
714
709
  * @example
715
710
  * await client.query.listVcardsOrg(123, {
716
711
  * fromRecord: 251,