@payabli/sdk-node 0.0.117 → 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 (363) hide show
  1. package/README.md +25 -13
  2. package/dist/cjs/BaseClient.d.ts +7 -7
  3. package/dist/cjs/BaseClient.js +3 -1
  4. package/dist/cjs/Client.d.ts +1 -2
  5. package/dist/cjs/api/errors/BadRequestError.js +5 -1
  6. package/dist/cjs/api/errors/ConflictError.js +5 -1
  7. package/dist/cjs/api/errors/ForbiddenError.js +5 -1
  8. package/dist/cjs/api/errors/InternalServerError.js +5 -1
  9. package/dist/cjs/api/errors/ServiceUnavailableError.js +5 -1
  10. package/dist/cjs/api/errors/UnauthorizedError.js +5 -1
  11. package/dist/cjs/api/resources/bill/client/Client.d.ts +1 -2
  12. package/dist/cjs/api/resources/bill/types/BillResponseData.d.ts +2 -1
  13. package/dist/cjs/api/resources/boarding/client/Client.d.ts +1 -2
  14. package/dist/cjs/api/resources/chargeBacks/client/Client.d.ts +1 -2
  15. package/dist/cjs/api/resources/checkCapture/client/Client.d.ts +1 -2
  16. package/dist/cjs/api/resources/cloud/client/Client.d.ts +1 -2
  17. package/dist/cjs/api/resources/customer/client/Client.d.ts +1 -2
  18. package/dist/cjs/api/resources/export/client/Client.d.ts +1 -7
  19. package/dist/cjs/api/resources/export/client/Client.js +5 -21
  20. package/dist/cjs/api/resources/hostedPaymentPages/client/Client.d.ts +1 -2
  21. package/dist/cjs/api/resources/import/client/Client.d.ts +1 -7
  22. package/dist/cjs/api/resources/import/client/Client.js +5 -21
  23. package/dist/cjs/api/resources/index.d.ts +3 -0
  24. package/dist/cjs/api/resources/index.js +4 -1
  25. package/dist/cjs/api/resources/invoice/client/Client.d.ts +6 -5
  26. package/dist/cjs/api/resources/invoice/client/Client.js +5 -3
  27. package/dist/cjs/api/resources/invoice/client/requests/AddInvoiceRequest.d.ts +5 -3
  28. package/dist/cjs/api/resources/lineItem/client/Client.d.ts +1 -7
  29. package/dist/cjs/api/resources/lineItem/client/Client.js +5 -21
  30. package/dist/cjs/api/resources/moneyIn/client/Client.d.ts +248 -4
  31. package/dist/cjs/api/resources/moneyIn/client/Client.js +518 -2
  32. package/dist/cjs/api/resources/moneyIn/client/requests/RequestPaymentAuthorizeV2.d.ts +31 -0
  33. package/dist/cjs/api/resources/moneyIn/client/requests/RequestPaymentV2.d.ts +99 -0
  34. package/dist/cjs/api/resources/moneyIn/client/requests/index.d.ts +2 -0
  35. package/dist/cjs/api/resources/moneyIn/errors/CaptureError.js +5 -1
  36. package/dist/cjs/api/resources/moneyIn/errors/InvalidTransStatusError.js +5 -1
  37. package/dist/cjs/api/resources/moneyIn/types/AuthResponseResponseData.d.ts +2 -2
  38. package/dist/cjs/api/resources/moneyIn/types/CaptureResponseData.d.ts +2 -2
  39. package/dist/cjs/api/resources/moneyIn/types/GetPaidResponseData.d.ts +3 -3
  40. package/dist/cjs/api/resources/moneyIn/types/ResponseDataRefunds.d.ts +2 -2
  41. package/dist/cjs/api/resources/moneyIn/types/TransactionDetailResponseData.d.ts +7 -3
  42. package/dist/cjs/api/resources/moneyIn/types/ValidateResponseData.d.ts +2 -2
  43. package/dist/cjs/api/resources/moneyIn/types/VoidResponseData.d.ts +2 -2
  44. package/dist/cjs/api/resources/moneyOut/client/Client.d.ts +1 -2
  45. package/dist/cjs/api/resources/moneyOutTypes/types/AuthCapturePayoutResponse.d.ts +2 -2
  46. package/dist/cjs/api/resources/notification/client/Client.d.ts +14 -7
  47. package/dist/cjs/api/resources/notification/client/Client.js +18 -21
  48. package/dist/cjs/api/resources/notificationlogs/client/Client.d.ts +1 -7
  49. package/dist/cjs/api/resources/notificationlogs/client/Client.js +5 -21
  50. package/dist/cjs/api/resources/ocr/client/Client.d.ts +1 -7
  51. package/dist/cjs/api/resources/ocr/client/Client.js +5 -21
  52. package/dist/cjs/api/resources/organization/client/Client.d.ts +1 -7
  53. package/dist/cjs/api/resources/organization/client/Client.js +5 -21
  54. package/dist/cjs/api/resources/paymentLink/client/Client.d.ts +4 -10
  55. package/dist/cjs/api/resources/paymentLink/client/Client.js +8 -24
  56. package/dist/cjs/api/resources/paymentLink/client/requests/PayLinkDataBill.d.ts +1 -1
  57. package/dist/cjs/api/resources/paymentLink/client/requests/PayLinkDataInvoice.d.ts +1 -1
  58. package/dist/cjs/api/resources/paymentLink/client/requests/PayLinkDataOut.d.ts +1 -1
  59. package/dist/cjs/api/resources/paymentLink/types/PaymentPageRequestBody.d.ts +2 -2
  60. package/dist/cjs/api/resources/paymentMethodDomain/client/Client.d.ts +1 -7
  61. package/dist/cjs/api/resources/paymentMethodDomain/client/Client.js +5 -21
  62. package/dist/cjs/api/resources/paypoint/client/Client.d.ts +1 -7
  63. package/dist/cjs/api/resources/paypoint/client/Client.js +5 -21
  64. package/dist/cjs/api/resources/query/client/Client.d.ts +1 -7
  65. package/dist/cjs/api/resources/query/client/Client.js +5 -21
  66. package/dist/cjs/api/resources/queryTypes/types/QueryBatchesDetailResponse.d.ts +158 -0
  67. package/dist/cjs/api/resources/statistic/client/Client.d.ts +1 -7
  68. package/dist/cjs/api/resources/statistic/client/Client.js +5 -21
  69. package/dist/cjs/api/resources/subscription/client/Client.d.ts +1 -7
  70. package/dist/cjs/api/resources/subscription/client/Client.js +5 -21
  71. package/dist/cjs/api/resources/templates/client/Client.d.ts +1 -7
  72. package/dist/cjs/api/resources/templates/client/Client.js +5 -21
  73. package/dist/cjs/api/resources/tokenStorage/client/Client.d.ts +52 -7
  74. package/dist/cjs/api/resources/tokenStorage/client/Client.js +56 -21
  75. package/dist/cjs/api/resources/tokenStorage/client/requests/AddMethodRequest.d.ts +23 -0
  76. package/dist/cjs/api/resources/tokenStorage/client/requests/GetMethodRequest.d.ts +6 -0
  77. package/dist/cjs/api/resources/tokenStorage/client/requests/UpdateMethodRequest.d.ts +22 -0
  78. package/dist/cjs/api/resources/tokenStorage/types/GetMethodResponse.d.ts +101 -1
  79. package/dist/cjs/api/resources/tokenStorage/types/RequestTokenStorage.d.ts +1 -0
  80. package/dist/cjs/api/resources/tokenStorage/types/VendorDataRequest.d.ts +9 -0
  81. package/dist/cjs/api/resources/tokenStorage/types/VendorDataRequest.js +3 -0
  82. package/dist/cjs/api/resources/tokenStorage/types/index.d.ts +1 -0
  83. package/dist/cjs/api/resources/tokenStorage/types/index.js +1 -0
  84. package/dist/cjs/api/resources/user/client/Client.d.ts +1 -7
  85. package/dist/cjs/api/resources/user/client/Client.js +5 -21
  86. package/dist/cjs/api/resources/v2MoneyInTypes/errors/BadRequestAuthResponseErrorV2.d.ts +6 -0
  87. package/dist/cjs/api/resources/v2MoneyInTypes/errors/BadRequestAuthResponseErrorV2.js +54 -0
  88. package/dist/cjs/api/resources/v2MoneyInTypes/errors/BadRequestCaptureResponseErrorV2.d.ts +6 -0
  89. package/dist/cjs/api/resources/v2MoneyInTypes/errors/BadRequestCaptureResponseErrorV2.js +54 -0
  90. package/dist/cjs/api/resources/v2MoneyInTypes/errors/BadRequestRefundResponseErrorV2.d.ts +6 -0
  91. package/dist/cjs/api/resources/v2MoneyInTypes/errors/BadRequestRefundResponseErrorV2.js +54 -0
  92. package/dist/cjs/api/resources/v2MoneyInTypes/errors/BadRequestVoidResponseErrorV2.d.ts +6 -0
  93. package/dist/cjs/api/resources/v2MoneyInTypes/errors/BadRequestVoidResponseErrorV2.js +54 -0
  94. package/dist/cjs/api/resources/v2MoneyInTypes/errors/DeclinedAuthResponseErrorV2.d.ts +6 -0
  95. package/dist/cjs/api/resources/v2MoneyInTypes/errors/DeclinedAuthResponseErrorV2.js +54 -0
  96. package/dist/cjs/api/resources/v2MoneyInTypes/errors/DeclinedCaptureResponseErrorV2.d.ts +6 -0
  97. package/dist/cjs/api/resources/v2MoneyInTypes/errors/DeclinedCaptureResponseErrorV2.js +54 -0
  98. package/dist/cjs/api/resources/v2MoneyInTypes/errors/DeclinedRefundResponseErrorV2.d.ts +6 -0
  99. package/dist/cjs/api/resources/v2MoneyInTypes/errors/DeclinedRefundResponseErrorV2.js +54 -0
  100. package/dist/cjs/api/resources/v2MoneyInTypes/errors/DeclinedVoidResponseErrorV2.d.ts +6 -0
  101. package/dist/cjs/api/resources/v2MoneyInTypes/errors/DeclinedVoidResponseErrorV2.js +54 -0
  102. package/dist/cjs/api/resources/v2MoneyInTypes/errors/InternalServerResponseErrorV2.d.ts +6 -0
  103. package/dist/cjs/api/resources/v2MoneyInTypes/errors/InternalServerResponseErrorV2.js +54 -0
  104. package/dist/cjs/api/resources/v2MoneyInTypes/errors/index.d.ts +9 -0
  105. package/dist/cjs/api/resources/v2MoneyInTypes/errors/index.js +25 -0
  106. package/dist/cjs/api/resources/v2MoneyInTypes/index.d.ts +2 -0
  107. package/dist/cjs/api/resources/v2MoneyInTypes/index.js +18 -0
  108. package/dist/cjs/api/resources/v2MoneyInTypes/types/V2BadRequestError.d.ts +22 -0
  109. package/dist/cjs/api/resources/v2MoneyInTypes/types/V2BadRequestError.js +3 -0
  110. package/dist/cjs/api/resources/v2MoneyInTypes/types/V2BadRequestErrorDetail.d.ts +9 -0
  111. package/dist/cjs/api/resources/v2MoneyInTypes/types/V2BadRequestErrorDetail.js +3 -0
  112. package/dist/cjs/api/resources/v2MoneyInTypes/types/V2DeclinedTransactionResponseWrapper.d.ts +761 -0
  113. package/dist/cjs/api/resources/v2MoneyInTypes/types/V2DeclinedTransactionResponseWrapper.js +3 -0
  114. package/dist/cjs/api/resources/v2MoneyInTypes/types/V2InternalServerError.d.ts +21 -0
  115. package/dist/cjs/api/resources/v2MoneyInTypes/types/V2InternalServerError.js +3 -0
  116. package/dist/cjs/api/resources/v2MoneyInTypes/types/V2ResponseAction.d.ts +4 -0
  117. package/dist/cjs/api/resources/v2MoneyInTypes/types/V2ResponseAction.js +3 -0
  118. package/dist/cjs/api/resources/v2MoneyInTypes/types/V2ResponseCode.d.ts +4 -0
  119. package/dist/cjs/api/resources/v2MoneyInTypes/types/V2ResponseCode.js +3 -0
  120. package/dist/cjs/api/resources/v2MoneyInTypes/types/V2ResponseExplanation.d.ts +4 -0
  121. package/dist/cjs/api/resources/v2MoneyInTypes/types/V2ResponseExplanation.js +3 -0
  122. package/dist/cjs/api/resources/v2MoneyInTypes/types/V2ResponseReason.d.ts +4 -0
  123. package/dist/cjs/api/resources/v2MoneyInTypes/types/V2ResponseReason.js +3 -0
  124. package/dist/cjs/api/resources/v2MoneyInTypes/types/V2TransactionDetailResponseData.d.ts +65 -0
  125. package/dist/cjs/api/resources/v2MoneyInTypes/types/V2TransactionDetailResponseData.js +3 -0
  126. package/dist/cjs/api/resources/v2MoneyInTypes/types/V2TransactionDetails.d.ts +1003 -0
  127. package/dist/cjs/api/resources/v2MoneyInTypes/types/V2TransactionDetails.js +3 -0
  128. package/dist/cjs/api/resources/v2MoneyInTypes/types/V2TransactionResponseWrapper.d.ts +13 -0
  129. package/dist/cjs/api/resources/v2MoneyInTypes/types/V2TransactionResponseWrapper.js +3 -0
  130. package/dist/cjs/api/resources/v2MoneyInTypes/types/index.d.ts +11 -0
  131. package/dist/cjs/api/resources/v2MoneyInTypes/types/index.js +27 -0
  132. package/dist/cjs/api/resources/vendor/client/Client.d.ts +1 -7
  133. package/dist/cjs/api/resources/vendor/client/Client.js +5 -21
  134. package/dist/cjs/api/resources/wallet/client/Client.d.ts +1 -7
  135. package/dist/cjs/api/resources/wallet/client/Client.js +5 -21
  136. package/dist/cjs/api/types/ApplicationData.d.ts +1 -0
  137. package/dist/cjs/api/types/ApplicationDataManaged.d.ts +1 -0
  138. package/dist/cjs/api/types/ApplicationDataOdp.d.ts +1 -0
  139. package/dist/cjs/api/types/ApplicationDataPayIn.d.ts +1 -0
  140. package/dist/cjs/api/types/{Avsresponsetext.d.ts → AvsResponse.d.ts} +1 -1
  141. package/dist/cjs/api/types/AvsResponse.js +3 -0
  142. package/dist/{esm/api/types/Avsresponsetext.d.mts → cjs/api/types/AvsResponseText.d.ts} +1 -1
  143. package/dist/cjs/api/types/AvsResponseText.js +3 -0
  144. package/dist/cjs/api/types/CustomerVaultId.d.ts +1 -0
  145. package/dist/cjs/api/types/CustomerVaultId.js +3 -0
  146. package/dist/cjs/api/types/{Cvvresponsetext.d.ts → CvvResponse.d.ts} +1 -1
  147. package/dist/cjs/api/types/CvvResponse.js +3 -0
  148. package/dist/{esm/api/types/Cvvresponsetext.d.mts → cjs/api/types/CvvResponseText.d.ts} +1 -1
  149. package/dist/cjs/api/types/CvvResponseText.js +3 -0
  150. package/dist/cjs/api/types/EmvAuthResponseData.d.ts +4 -0
  151. package/dist/cjs/api/types/EmvAuthResponseData.js +3 -0
  152. package/dist/cjs/api/types/Frequency.d.ts +1 -1
  153. package/dist/cjs/api/types/Frequency.js +1 -1
  154. package/dist/cjs/api/types/FrequencyList.d.ts +1 -1
  155. package/dist/cjs/api/types/MaxTicket.d.ts +4 -0
  156. package/dist/cjs/api/types/MaxTicket.js +3 -0
  157. package/dist/cjs/api/types/MinTicket.d.ts +4 -0
  158. package/dist/cjs/api/types/MinTicket.js +3 -0
  159. package/dist/cjs/api/types/OnCreate.d.ts +4 -0
  160. package/dist/cjs/api/types/OnCreate.js +3 -0
  161. package/dist/cjs/api/types/PayabliApiResponse0.d.ts +2 -2
  162. package/dist/cjs/api/types/PayabliApiResponse0000.d.ts +2 -2
  163. package/dist/cjs/api/types/PayabliCredentialsPascal.d.ts +3 -2
  164. package/dist/cjs/api/types/PayorDataResponse.d.ts +1 -1
  165. package/dist/cjs/api/types/QueryResponseData.d.ts +41 -10
  166. package/dist/cjs/api/types/QueryResponseSettlements.d.ts +134 -0
  167. package/dist/cjs/api/types/QuerySubscriptionResponse.d.ts +1 -1
  168. package/dist/cjs/api/types/QueryTransactionPayorData.d.ts +1 -1
  169. package/dist/cjs/api/types/ResultCodeText.d.ts +4 -0
  170. package/dist/cjs/api/types/ResultCodeText.js +3 -0
  171. package/dist/cjs/api/types/ResultCodev2.d.ts +4 -0
  172. package/dist/cjs/api/types/ResultCodev2.js +3 -0
  173. package/dist/cjs/api/types/index.d.ts +11 -2
  174. package/dist/cjs/api/types/index.js +11 -2
  175. package/dist/cjs/auth/HeaderAuthProvider.d.ts +4 -2
  176. package/dist/cjs/errors/PayabliError.js +5 -1
  177. package/dist/cjs/errors/PayabliTimeoutError.js +5 -1
  178. package/dist/cjs/version.d.ts +1 -0
  179. package/dist/cjs/version.js +4 -0
  180. package/dist/esm/BaseClient.d.mts +7 -7
  181. package/dist/esm/BaseClient.mjs +3 -1
  182. package/dist/esm/Client.d.mts +1 -2
  183. package/dist/esm/api/errors/BadRequestError.mjs +5 -1
  184. package/dist/esm/api/errors/ConflictError.mjs +5 -1
  185. package/dist/esm/api/errors/ForbiddenError.mjs +5 -1
  186. package/dist/esm/api/errors/InternalServerError.mjs +5 -1
  187. package/dist/esm/api/errors/ServiceUnavailableError.mjs +5 -1
  188. package/dist/esm/api/errors/UnauthorizedError.mjs +5 -1
  189. package/dist/esm/api/resources/bill/client/Client.d.mts +1 -2
  190. package/dist/esm/api/resources/bill/types/BillResponseData.d.mts +2 -1
  191. package/dist/esm/api/resources/boarding/client/Client.d.mts +1 -2
  192. package/dist/esm/api/resources/chargeBacks/client/Client.d.mts +1 -2
  193. package/dist/esm/api/resources/checkCapture/client/Client.d.mts +1 -2
  194. package/dist/esm/api/resources/cloud/client/Client.d.mts +1 -2
  195. package/dist/esm/api/resources/customer/client/Client.d.mts +1 -2
  196. package/dist/esm/api/resources/export/client/Client.d.mts +1 -7
  197. package/dist/esm/api/resources/export/client/Client.mjs +5 -21
  198. package/dist/esm/api/resources/hostedPaymentPages/client/Client.d.mts +1 -2
  199. package/dist/esm/api/resources/import/client/Client.d.mts +1 -7
  200. package/dist/esm/api/resources/import/client/Client.mjs +5 -21
  201. package/dist/esm/api/resources/index.d.mts +3 -0
  202. package/dist/esm/api/resources/index.mjs +3 -0
  203. package/dist/esm/api/resources/invoice/client/Client.d.mts +6 -5
  204. package/dist/esm/api/resources/invoice/client/Client.mjs +5 -3
  205. package/dist/esm/api/resources/invoice/client/requests/AddInvoiceRequest.d.mts +5 -3
  206. package/dist/esm/api/resources/lineItem/client/Client.d.mts +1 -7
  207. package/dist/esm/api/resources/lineItem/client/Client.mjs +5 -21
  208. package/dist/esm/api/resources/moneyIn/client/Client.d.mts +248 -4
  209. package/dist/esm/api/resources/moneyIn/client/Client.mjs +518 -2
  210. package/dist/esm/api/resources/moneyIn/client/requests/RequestPaymentAuthorizeV2.d.mts +31 -0
  211. package/dist/esm/api/resources/moneyIn/client/requests/RequestPaymentV2.d.mts +99 -0
  212. package/dist/esm/api/resources/moneyIn/client/requests/index.d.mts +2 -0
  213. package/dist/esm/api/resources/moneyIn/errors/CaptureError.mjs +5 -1
  214. package/dist/esm/api/resources/moneyIn/errors/InvalidTransStatusError.mjs +5 -1
  215. package/dist/esm/api/resources/moneyIn/types/AuthResponseResponseData.d.mts +2 -2
  216. package/dist/esm/api/resources/moneyIn/types/CaptureResponseData.d.mts +2 -2
  217. package/dist/esm/api/resources/moneyIn/types/GetPaidResponseData.d.mts +3 -3
  218. package/dist/esm/api/resources/moneyIn/types/ResponseDataRefunds.d.mts +2 -2
  219. package/dist/esm/api/resources/moneyIn/types/TransactionDetailResponseData.d.mts +7 -3
  220. package/dist/esm/api/resources/moneyIn/types/ValidateResponseData.d.mts +2 -2
  221. package/dist/esm/api/resources/moneyIn/types/VoidResponseData.d.mts +2 -2
  222. package/dist/esm/api/resources/moneyOut/client/Client.d.mts +1 -2
  223. package/dist/esm/api/resources/moneyOutTypes/types/AuthCapturePayoutResponse.d.mts +2 -2
  224. package/dist/esm/api/resources/notification/client/Client.d.mts +14 -7
  225. package/dist/esm/api/resources/notification/client/Client.mjs +18 -21
  226. package/dist/esm/api/resources/notificationlogs/client/Client.d.mts +1 -7
  227. package/dist/esm/api/resources/notificationlogs/client/Client.mjs +5 -21
  228. package/dist/esm/api/resources/ocr/client/Client.d.mts +1 -7
  229. package/dist/esm/api/resources/ocr/client/Client.mjs +5 -21
  230. package/dist/esm/api/resources/organization/client/Client.d.mts +1 -7
  231. package/dist/esm/api/resources/organization/client/Client.mjs +5 -21
  232. package/dist/esm/api/resources/paymentLink/client/Client.d.mts +4 -10
  233. package/dist/esm/api/resources/paymentLink/client/Client.mjs +8 -24
  234. package/dist/esm/api/resources/paymentLink/client/requests/PayLinkDataBill.d.mts +1 -1
  235. package/dist/esm/api/resources/paymentLink/client/requests/PayLinkDataInvoice.d.mts +1 -1
  236. package/dist/esm/api/resources/paymentLink/client/requests/PayLinkDataOut.d.mts +1 -1
  237. package/dist/esm/api/resources/paymentLink/types/PaymentPageRequestBody.d.mts +2 -2
  238. package/dist/esm/api/resources/paymentMethodDomain/client/Client.d.mts +1 -7
  239. package/dist/esm/api/resources/paymentMethodDomain/client/Client.mjs +5 -21
  240. package/dist/esm/api/resources/paypoint/client/Client.d.mts +1 -7
  241. package/dist/esm/api/resources/paypoint/client/Client.mjs +5 -21
  242. package/dist/esm/api/resources/query/client/Client.d.mts +1 -7
  243. package/dist/esm/api/resources/query/client/Client.mjs +5 -21
  244. package/dist/esm/api/resources/queryTypes/types/QueryBatchesDetailResponse.d.mts +158 -0
  245. package/dist/esm/api/resources/statistic/client/Client.d.mts +1 -7
  246. package/dist/esm/api/resources/statistic/client/Client.mjs +5 -21
  247. package/dist/esm/api/resources/subscription/client/Client.d.mts +1 -7
  248. package/dist/esm/api/resources/subscription/client/Client.mjs +5 -21
  249. package/dist/esm/api/resources/templates/client/Client.d.mts +1 -7
  250. package/dist/esm/api/resources/templates/client/Client.mjs +5 -21
  251. package/dist/esm/api/resources/tokenStorage/client/Client.d.mts +52 -7
  252. package/dist/esm/api/resources/tokenStorage/client/Client.mjs +56 -21
  253. package/dist/esm/api/resources/tokenStorage/client/requests/AddMethodRequest.d.mts +23 -0
  254. package/dist/esm/api/resources/tokenStorage/client/requests/GetMethodRequest.d.mts +6 -0
  255. package/dist/esm/api/resources/tokenStorage/client/requests/UpdateMethodRequest.d.mts +22 -0
  256. package/dist/esm/api/resources/tokenStorage/types/GetMethodResponse.d.mts +101 -1
  257. package/dist/esm/api/resources/tokenStorage/types/RequestTokenStorage.d.mts +1 -0
  258. package/dist/esm/api/resources/tokenStorage/types/VendorDataRequest.d.mts +9 -0
  259. package/dist/esm/api/resources/tokenStorage/types/VendorDataRequest.mjs +2 -0
  260. package/dist/esm/api/resources/tokenStorage/types/index.d.mts +1 -0
  261. package/dist/esm/api/resources/tokenStorage/types/index.mjs +1 -0
  262. package/dist/esm/api/resources/user/client/Client.d.mts +1 -7
  263. package/dist/esm/api/resources/user/client/Client.mjs +5 -21
  264. package/dist/esm/api/resources/v2MoneyInTypes/errors/BadRequestAuthResponseErrorV2.d.mts +6 -0
  265. package/dist/esm/api/resources/v2MoneyInTypes/errors/BadRequestAuthResponseErrorV2.mjs +17 -0
  266. package/dist/esm/api/resources/v2MoneyInTypes/errors/BadRequestCaptureResponseErrorV2.d.mts +6 -0
  267. package/dist/esm/api/resources/v2MoneyInTypes/errors/BadRequestCaptureResponseErrorV2.mjs +17 -0
  268. package/dist/esm/api/resources/v2MoneyInTypes/errors/BadRequestRefundResponseErrorV2.d.mts +6 -0
  269. package/dist/esm/api/resources/v2MoneyInTypes/errors/BadRequestRefundResponseErrorV2.mjs +17 -0
  270. package/dist/esm/api/resources/v2MoneyInTypes/errors/BadRequestVoidResponseErrorV2.d.mts +6 -0
  271. package/dist/esm/api/resources/v2MoneyInTypes/errors/BadRequestVoidResponseErrorV2.mjs +17 -0
  272. package/dist/esm/api/resources/v2MoneyInTypes/errors/DeclinedAuthResponseErrorV2.d.mts +6 -0
  273. package/dist/esm/api/resources/v2MoneyInTypes/errors/DeclinedAuthResponseErrorV2.mjs +17 -0
  274. package/dist/esm/api/resources/v2MoneyInTypes/errors/DeclinedCaptureResponseErrorV2.d.mts +6 -0
  275. package/dist/esm/api/resources/v2MoneyInTypes/errors/DeclinedCaptureResponseErrorV2.mjs +17 -0
  276. package/dist/esm/api/resources/v2MoneyInTypes/errors/DeclinedRefundResponseErrorV2.d.mts +6 -0
  277. package/dist/esm/api/resources/v2MoneyInTypes/errors/DeclinedRefundResponseErrorV2.mjs +17 -0
  278. package/dist/esm/api/resources/v2MoneyInTypes/errors/DeclinedVoidResponseErrorV2.d.mts +6 -0
  279. package/dist/esm/api/resources/v2MoneyInTypes/errors/DeclinedVoidResponseErrorV2.mjs +17 -0
  280. package/dist/esm/api/resources/v2MoneyInTypes/errors/InternalServerResponseErrorV2.d.mts +6 -0
  281. package/dist/esm/api/resources/v2MoneyInTypes/errors/InternalServerResponseErrorV2.mjs +17 -0
  282. package/dist/esm/api/resources/v2MoneyInTypes/errors/index.d.mts +9 -0
  283. package/dist/esm/api/resources/v2MoneyInTypes/errors/index.mjs +9 -0
  284. package/dist/esm/api/resources/v2MoneyInTypes/index.d.mts +2 -0
  285. package/dist/esm/api/resources/v2MoneyInTypes/index.mjs +2 -0
  286. package/dist/esm/api/resources/v2MoneyInTypes/types/V2BadRequestError.d.mts +22 -0
  287. package/dist/esm/api/resources/v2MoneyInTypes/types/V2BadRequestError.mjs +2 -0
  288. package/dist/esm/api/resources/v2MoneyInTypes/types/V2BadRequestErrorDetail.d.mts +9 -0
  289. package/dist/esm/api/resources/v2MoneyInTypes/types/V2BadRequestErrorDetail.mjs +2 -0
  290. package/dist/esm/api/resources/v2MoneyInTypes/types/V2DeclinedTransactionResponseWrapper.d.mts +761 -0
  291. package/dist/esm/api/resources/v2MoneyInTypes/types/V2DeclinedTransactionResponseWrapper.mjs +2 -0
  292. package/dist/esm/api/resources/v2MoneyInTypes/types/V2InternalServerError.d.mts +21 -0
  293. package/dist/esm/api/resources/v2MoneyInTypes/types/V2InternalServerError.mjs +2 -0
  294. package/dist/esm/api/resources/v2MoneyInTypes/types/V2ResponseAction.d.mts +4 -0
  295. package/dist/esm/api/resources/v2MoneyInTypes/types/V2ResponseAction.mjs +2 -0
  296. package/dist/esm/api/resources/v2MoneyInTypes/types/V2ResponseCode.d.mts +4 -0
  297. package/dist/esm/api/resources/v2MoneyInTypes/types/V2ResponseCode.mjs +2 -0
  298. package/dist/esm/api/resources/v2MoneyInTypes/types/V2ResponseExplanation.d.mts +4 -0
  299. package/dist/esm/api/resources/v2MoneyInTypes/types/V2ResponseExplanation.mjs +2 -0
  300. package/dist/esm/api/resources/v2MoneyInTypes/types/V2ResponseReason.d.mts +4 -0
  301. package/dist/esm/api/resources/v2MoneyInTypes/types/V2ResponseReason.mjs +2 -0
  302. package/dist/esm/api/resources/v2MoneyInTypes/types/V2TransactionDetailResponseData.d.mts +65 -0
  303. package/dist/esm/api/resources/v2MoneyInTypes/types/V2TransactionDetailResponseData.mjs +2 -0
  304. package/dist/esm/api/resources/v2MoneyInTypes/types/V2TransactionDetails.d.mts +1003 -0
  305. package/dist/esm/api/resources/v2MoneyInTypes/types/V2TransactionDetails.mjs +2 -0
  306. package/dist/esm/api/resources/v2MoneyInTypes/types/V2TransactionResponseWrapper.d.mts +13 -0
  307. package/dist/esm/api/resources/v2MoneyInTypes/types/V2TransactionResponseWrapper.mjs +2 -0
  308. package/dist/esm/api/resources/v2MoneyInTypes/types/index.d.mts +11 -0
  309. package/dist/esm/api/resources/v2MoneyInTypes/types/index.mjs +11 -0
  310. package/dist/esm/api/resources/vendor/client/Client.d.mts +1 -7
  311. package/dist/esm/api/resources/vendor/client/Client.mjs +5 -21
  312. package/dist/esm/api/resources/wallet/client/Client.d.mts +1 -7
  313. package/dist/esm/api/resources/wallet/client/Client.mjs +5 -21
  314. package/dist/esm/api/types/ApplicationData.d.mts +1 -0
  315. package/dist/esm/api/types/ApplicationDataManaged.d.mts +1 -0
  316. package/dist/esm/api/types/ApplicationDataOdp.d.mts +1 -0
  317. package/dist/esm/api/types/ApplicationDataPayIn.d.mts +1 -0
  318. package/dist/esm/api/types/AvsResponse.d.mts +4 -0
  319. package/dist/esm/api/types/AvsResponse.mjs +2 -0
  320. package/dist/esm/api/types/AvsResponseText.d.mts +4 -0
  321. package/dist/esm/api/types/AvsResponseText.mjs +2 -0
  322. package/dist/esm/api/types/CustomerVaultId.d.mts +1 -0
  323. package/dist/esm/api/types/CustomerVaultId.mjs +2 -0
  324. package/dist/esm/api/types/CvvResponse.d.mts +4 -0
  325. package/dist/esm/api/types/CvvResponse.mjs +2 -0
  326. package/dist/esm/api/types/CvvResponseText.d.mts +4 -0
  327. package/dist/esm/api/types/CvvResponseText.mjs +2 -0
  328. package/dist/esm/api/types/EmvAuthResponseData.d.mts +4 -0
  329. package/dist/esm/api/types/EmvAuthResponseData.mjs +2 -0
  330. package/dist/esm/api/types/Frequency.d.mts +1 -1
  331. package/dist/esm/api/types/Frequency.mjs +1 -1
  332. package/dist/esm/api/types/FrequencyList.d.mts +1 -1
  333. package/dist/esm/api/types/MaxTicket.d.mts +4 -0
  334. package/dist/esm/api/types/MaxTicket.mjs +2 -0
  335. package/dist/esm/api/types/MinTicket.d.mts +4 -0
  336. package/dist/esm/api/types/MinTicket.mjs +2 -0
  337. package/dist/esm/api/types/OnCreate.d.mts +4 -0
  338. package/dist/esm/api/types/OnCreate.mjs +2 -0
  339. package/dist/esm/api/types/PayabliApiResponse0.d.mts +2 -2
  340. package/dist/esm/api/types/PayabliApiResponse0000.d.mts +2 -2
  341. package/dist/esm/api/types/PayabliCredentialsPascal.d.mts +3 -2
  342. package/dist/esm/api/types/PayorDataResponse.d.mts +1 -1
  343. package/dist/esm/api/types/QueryResponseData.d.mts +41 -10
  344. package/dist/esm/api/types/QueryResponseSettlements.d.mts +134 -0
  345. package/dist/esm/api/types/QuerySubscriptionResponse.d.mts +1 -1
  346. package/dist/esm/api/types/QueryTransactionPayorData.d.mts +1 -1
  347. package/dist/esm/api/types/ResultCodeText.d.mts +4 -0
  348. package/dist/esm/api/types/ResultCodeText.mjs +2 -0
  349. package/dist/esm/api/types/ResultCodev2.d.mts +4 -0
  350. package/dist/esm/api/types/ResultCodev2.mjs +2 -0
  351. package/dist/esm/api/types/index.d.mts +11 -2
  352. package/dist/esm/api/types/index.mjs +11 -2
  353. package/dist/esm/auth/HeaderAuthProvider.d.mts +4 -2
  354. package/dist/esm/errors/PayabliError.mjs +5 -1
  355. package/dist/esm/errors/PayabliTimeoutError.mjs +5 -1
  356. package/dist/esm/version.d.mts +1 -0
  357. package/dist/esm/version.mjs +1 -0
  358. package/package.json +7 -4
  359. package/reference.md +475 -8
  360. /package/dist/cjs/api/{types/Avsresponsetext.js → resources/moneyIn/client/requests/RequestPaymentAuthorizeV2.js} +0 -0
  361. /package/dist/cjs/api/{types/Cvvresponsetext.js → resources/moneyIn/client/requests/RequestPaymentV2.js} +0 -0
  362. /package/dist/esm/api/{types/Avsresponsetext.mjs → resources/moneyIn/client/requests/RequestPaymentAuthorizeV2.mjs} +0 -0
  363. /package/dist/esm/api/{types/Cvvresponsetext.mjs → resources/moneyIn/client/requests/RequestPaymentV2.mjs} +0 -0
@@ -0,0 +1,4 @@
1
+ /**
2
+ * Description of the result code. See [Pay In unified response codes](/developers/references/pay-in-unified-response-codes) for more information.
3
+ */
4
+ export type ResultCodeText = string;
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,4 @@
1
+ /**
2
+ * Unified result code for the transaction. See [Pay In unified response codes](/developers/references/pay-in-unified-response-codes) for more information.
3
+ */
4
+ export type ResultCodev2 = string;
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -56,7 +56,8 @@ export * from "./Authcode.js";
56
56
  export * from "./AutoElement.js";
57
57
  export * from "./Avgmonthly.js";
58
58
  export * from "./Avgticketamt.js";
59
- export * from "./Avsresponsetext.js";
59
+ export * from "./AvsResponse.js";
60
+ export * from "./AvsResponseText.js";
60
61
  export * from "./BAddress.js";
61
62
  export * from "./Baddress1.js";
62
63
  export * from "./Baddress2.js";
@@ -169,7 +170,9 @@ export * from "./CustomerNumberNullable.js";
169
170
  export * from "./CustomerQueryRecords.js";
170
171
  export * from "./CustomerStatus.js";
171
172
  export * from "./CustomerSummaryRecord.js";
172
- export * from "./Cvvresponsetext.js";
173
+ export * from "./CustomerVaultId.js";
174
+ export * from "./CvvResponse.js";
175
+ export * from "./CvvResponseText.js";
173
176
  export * from "./Datenullable.js";
174
177
  export * from "./DatetimeNullable.js";
175
178
  export * from "./Dbaname.js";
@@ -187,6 +190,7 @@ export * from "./DutyAmount.js";
187
190
  export * from "./Ein.js";
188
191
  export * from "./Element.js";
189
192
  export * from "./Email.js";
193
+ export * from "./EmvAuthResponseData.js";
190
194
  export * from "./Enabled.js";
191
195
  export * from "./EnrollmentStatus.js";
192
196
  export * from "./EntityId.js";
@@ -260,6 +264,7 @@ export * from "./LocationCode.js";
260
264
  export * from "./Maddress.js";
261
265
  export * from "./Maddress1.js";
262
266
  export * from "./Maskedaccount.js";
267
+ export * from "./MaxTicket.js";
263
268
  export * from "./Mcc.js";
264
269
  export * from "./Mcity.js";
265
270
  export * from "./Mcountry.js";
@@ -273,6 +278,7 @@ export * from "./Mfa.js";
273
278
  export * from "./MfaData.js";
274
279
  export * from "./MfaMode.js";
275
280
  export * from "./MfaValidationCode.js";
281
+ export * from "./MinTicket.js";
276
282
  export * from "./Mstate.js";
277
283
  export * from "./Mzip.js";
278
284
  export * from "./NameUser.js";
@@ -286,6 +292,7 @@ export * from "./NotificationReportRequest.js";
286
292
  export * from "./NotificationStandardRequest.js";
287
293
  export * from "./OdpSetup.js";
288
294
  export * from "./OList.js";
295
+ export * from "./OnCreate.js";
289
296
  export * from "./Operation.js";
290
297
  export * from "./OptinStatus.js";
291
298
  export * from "./Order.js";
@@ -442,6 +449,8 @@ export * from "./Responsedata.js";
442
449
  export * from "./Responsedatanonobject.js";
443
450
  export * from "./ResponseText.js";
444
451
  export * from "./ResultCode.js";
452
+ export * from "./ResultCodeText.js";
453
+ export * from "./ResultCodev2.js";
445
454
  export * from "./Resulttext.js";
446
455
  export * from "./Resumable.js";
447
456
  export * from "./RetrievalId.js";
@@ -72,7 +72,8 @@ __exportStar(require("./Authcode.js"), exports);
72
72
  __exportStar(require("./AutoElement.js"), exports);
73
73
  __exportStar(require("./Avgmonthly.js"), exports);
74
74
  __exportStar(require("./Avgticketamt.js"), exports);
75
- __exportStar(require("./Avsresponsetext.js"), exports);
75
+ __exportStar(require("./AvsResponse.js"), exports);
76
+ __exportStar(require("./AvsResponseText.js"), exports);
76
77
  __exportStar(require("./BAddress.js"), exports);
77
78
  __exportStar(require("./Baddress1.js"), exports);
78
79
  __exportStar(require("./Baddress2.js"), exports);
@@ -185,7 +186,9 @@ __exportStar(require("./CustomerNumberNullable.js"), exports);
185
186
  __exportStar(require("./CustomerQueryRecords.js"), exports);
186
187
  __exportStar(require("./CustomerStatus.js"), exports);
187
188
  __exportStar(require("./CustomerSummaryRecord.js"), exports);
188
- __exportStar(require("./Cvvresponsetext.js"), exports);
189
+ __exportStar(require("./CustomerVaultId.js"), exports);
190
+ __exportStar(require("./CvvResponse.js"), exports);
191
+ __exportStar(require("./CvvResponseText.js"), exports);
189
192
  __exportStar(require("./Datenullable.js"), exports);
190
193
  __exportStar(require("./DatetimeNullable.js"), exports);
191
194
  __exportStar(require("./Dbaname.js"), exports);
@@ -203,6 +206,7 @@ __exportStar(require("./DutyAmount.js"), exports);
203
206
  __exportStar(require("./Ein.js"), exports);
204
207
  __exportStar(require("./Element.js"), exports);
205
208
  __exportStar(require("./Email.js"), exports);
209
+ __exportStar(require("./EmvAuthResponseData.js"), exports);
206
210
  __exportStar(require("./Enabled.js"), exports);
207
211
  __exportStar(require("./EnrollmentStatus.js"), exports);
208
212
  __exportStar(require("./EntityId.js"), exports);
@@ -276,6 +280,7 @@ __exportStar(require("./LocationCode.js"), exports);
276
280
  __exportStar(require("./Maddress.js"), exports);
277
281
  __exportStar(require("./Maddress1.js"), exports);
278
282
  __exportStar(require("./Maskedaccount.js"), exports);
283
+ __exportStar(require("./MaxTicket.js"), exports);
279
284
  __exportStar(require("./Mcc.js"), exports);
280
285
  __exportStar(require("./Mcity.js"), exports);
281
286
  __exportStar(require("./Mcountry.js"), exports);
@@ -289,6 +294,7 @@ __exportStar(require("./Mfa.js"), exports);
289
294
  __exportStar(require("./MfaData.js"), exports);
290
295
  __exportStar(require("./MfaMode.js"), exports);
291
296
  __exportStar(require("./MfaValidationCode.js"), exports);
297
+ __exportStar(require("./MinTicket.js"), exports);
292
298
  __exportStar(require("./Mstate.js"), exports);
293
299
  __exportStar(require("./Mzip.js"), exports);
294
300
  __exportStar(require("./NameUser.js"), exports);
@@ -302,6 +308,7 @@ __exportStar(require("./NotificationReportRequest.js"), exports);
302
308
  __exportStar(require("./NotificationStandardRequest.js"), exports);
303
309
  __exportStar(require("./OdpSetup.js"), exports);
304
310
  __exportStar(require("./OList.js"), exports);
311
+ __exportStar(require("./OnCreate.js"), exports);
305
312
  __exportStar(require("./Operation.js"), exports);
306
313
  __exportStar(require("./OptinStatus.js"), exports);
307
314
  __exportStar(require("./Order.js"), exports);
@@ -458,6 +465,8 @@ __exportStar(require("./Responsedata.js"), exports);
458
465
  __exportStar(require("./Responsedatanonobject.js"), exports);
459
466
  __exportStar(require("./ResponseText.js"), exports);
460
467
  __exportStar(require("./ResultCode.js"), exports);
468
+ __exportStar(require("./ResultCodeText.js"), exports);
469
+ __exportStar(require("./ResultCodev2.js"), exports);
461
470
  __exportStar(require("./Resulttext.js"), exports);
462
471
  __exportStar(require("./Resumable.js"), exports);
463
472
  __exportStar(require("./RetrievalId.js"), exports);
@@ -1,7 +1,9 @@
1
1
  import * as core from "../core/index.js";
2
2
  export declare namespace HeaderAuthProvider {
3
- interface Options {
4
- apiKey?: core.Supplier<string | undefined>;
3
+ interface AuthOptions {
4
+ apiKey?: core.Supplier<string>;
5
+ }
6
+ interface Options extends AuthOptions {
5
7
  }
6
8
  }
7
9
  export declare class HeaderAuthProvider implements core.AuthProvider {
@@ -6,7 +6,11 @@ const json_js_1 = require("../core/json.js");
6
6
  class PayabliError extends Error {
7
7
  constructor({ message, statusCode, body, rawResponse, }) {
8
8
  super(buildMessage({ message, statusCode, body }));
9
- Object.setPrototypeOf(this, PayabliError.prototype);
9
+ Object.setPrototypeOf(this, new.target.prototype);
10
+ if (Error.captureStackTrace) {
11
+ Error.captureStackTrace(this, this.constructor);
12
+ }
13
+ this.name = this.constructor.name;
10
14
  this.statusCode = statusCode;
11
15
  this.body = body;
12
16
  this.rawResponse = rawResponse;
@@ -5,7 +5,11 @@ exports.PayabliTimeoutError = void 0;
5
5
  class PayabliTimeoutError extends Error {
6
6
  constructor(message) {
7
7
  super(message);
8
- Object.setPrototypeOf(this, PayabliTimeoutError.prototype);
8
+ Object.setPrototypeOf(this, new.target.prototype);
9
+ if (Error.captureStackTrace) {
10
+ Error.captureStackTrace(this, this.constructor);
11
+ }
12
+ this.name = this.constructor.name;
9
13
  }
10
14
  }
11
15
  exports.PayabliTimeoutError = PayabliTimeoutError;
@@ -0,0 +1 @@
1
+ export declare const SDK_VERSION = "0.0.126";
@@ -0,0 +1,4 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.SDK_VERSION = void 0;
4
+ exports.SDK_VERSION = "0.0.126";
@@ -1,10 +1,10 @@
1
+ import { HeaderAuthProvider } from "./auth/HeaderAuthProvider.mjs";
1
2
  import * as core from "./core/index.mjs";
2
3
  import type * as environments from "./environments.mjs";
3
- export interface BaseClientOptions {
4
+ export type BaseClientOptions = {
4
5
  environment?: core.Supplier<environments.PayabliEnvironment | string>;
5
6
  /** Specify a custom URL to connect the client to. */
6
7
  baseUrl?: core.Supplier<string>;
7
- apiKey?: core.Supplier<string | undefined>;
8
8
  /** Additional headers to include in requests. */
9
9
  headers?: Record<string, string | core.Supplier<string | null | undefined> | null | undefined>;
10
10
  /** The default maximum time to wait for a response in seconds. */
@@ -15,7 +15,7 @@ export interface BaseClientOptions {
15
15
  fetch?: typeof fetch;
16
16
  /** Configure logging for the client. */
17
17
  logging?: core.logging.LogConfig | core.logging.Logger;
18
- }
18
+ } & HeaderAuthProvider.AuthOptions;
19
19
  export interface BaseRequestOptions {
20
20
  /** The maximum time to wait for a response in seconds. */
21
21
  timeoutInSeconds?: number;
@@ -28,12 +28,12 @@ export interface BaseRequestOptions {
28
28
  /** Additional headers to include in the request. */
29
29
  headers?: Record<string, string | core.Supplier<string | null | undefined> | null | undefined>;
30
30
  }
31
- export type NormalizedClientOptions<T extends BaseClientOptions> = T & {
31
+ export type NormalizedClientOptions<T extends BaseClientOptions = BaseClientOptions> = T & {
32
32
  logging: core.logging.Logger;
33
33
  authProvider?: core.AuthProvider;
34
34
  };
35
- export type NormalizedClientOptionsWithAuth<T extends BaseClientOptions> = NormalizedClientOptions<T> & {
35
+ export type NormalizedClientOptionsWithAuth<T extends BaseClientOptions = BaseClientOptions> = NormalizedClientOptions<T> & {
36
36
  authProvider: core.AuthProvider;
37
37
  };
38
- export declare function normalizeClientOptions<T extends BaseClientOptions>(options: T): NormalizedClientOptions<T>;
39
- export declare function normalizeClientOptionsWithAuth<T extends BaseClientOptions>(options: T): NormalizedClientOptionsWithAuth<T>;
38
+ export declare function normalizeClientOptions<T extends BaseClientOptions = BaseClientOptions>(options: T): NormalizedClientOptions<T>;
39
+ export declare function normalizeClientOptionsWithAuth<T extends BaseClientOptions = BaseClientOptions>(options: T): NormalizedClientOptionsWithAuth<T>;
@@ -5,7 +5,9 @@ import * as core from "./core/index.mjs";
5
5
  export function normalizeClientOptions(options) {
6
6
  const headers = mergeHeaders({
7
7
  "X-Fern-Language": "JavaScript",
8
- "User-Agent": "@payabli/sdk-node/0.0.120",
8
+ "X-Fern-SDK-Name": "@payabli/sdk-node",
9
+ "X-Fern-SDK-Version": "0.0.126",
10
+ "User-Agent": "@payabli/sdk-node/0.0.126",
9
11
  "X-Fern-Runtime": core.RUNTIME.type,
10
12
  "X-Fern-Runtime-Version": core.RUNTIME.version,
11
13
  }, options === null || options === void 0 ? void 0 : options.headers);
@@ -29,8 +29,7 @@ import { WalletClient } from "./api/resources/wallet/client/Client.mjs";
29
29
  import type { BaseClientOptions, BaseRequestOptions } from "./BaseClient.mjs";
30
30
  import { type NormalizedClientOptionsWithAuth } from "./BaseClient.mjs";
31
31
  export declare namespace PayabliClient {
32
- interface Options extends BaseClientOptions {
33
- }
32
+ type Options = BaseClientOptions;
34
33
  interface RequestOptions extends BaseRequestOptions {
35
34
  }
36
35
  }
@@ -8,6 +8,10 @@ export class BadRequestError extends errors.PayabliError {
8
8
  body: body,
9
9
  rawResponse: rawResponse,
10
10
  });
11
- Object.setPrototypeOf(this, BadRequestError.prototype);
11
+ Object.setPrototypeOf(this, new.target.prototype);
12
+ if (Error.captureStackTrace) {
13
+ Error.captureStackTrace(this, this.constructor);
14
+ }
15
+ this.name = this.constructor.name;
12
16
  }
13
17
  }
@@ -8,6 +8,10 @@ export class ConflictError extends errors.PayabliError {
8
8
  body: body,
9
9
  rawResponse: rawResponse,
10
10
  });
11
- Object.setPrototypeOf(this, ConflictError.prototype);
11
+ Object.setPrototypeOf(this, new.target.prototype);
12
+ if (Error.captureStackTrace) {
13
+ Error.captureStackTrace(this, this.constructor);
14
+ }
15
+ this.name = this.constructor.name;
12
16
  }
13
17
  }
@@ -8,6 +8,10 @@ export class ForbiddenError extends errors.PayabliError {
8
8
  body: body,
9
9
  rawResponse: rawResponse,
10
10
  });
11
- Object.setPrototypeOf(this, ForbiddenError.prototype);
11
+ Object.setPrototypeOf(this, new.target.prototype);
12
+ if (Error.captureStackTrace) {
13
+ Error.captureStackTrace(this, this.constructor);
14
+ }
15
+ this.name = this.constructor.name;
12
16
  }
13
17
  }
@@ -8,6 +8,10 @@ export class InternalServerError extends errors.PayabliError {
8
8
  body: body,
9
9
  rawResponse: rawResponse,
10
10
  });
11
- Object.setPrototypeOf(this, InternalServerError.prototype);
11
+ Object.setPrototypeOf(this, new.target.prototype);
12
+ if (Error.captureStackTrace) {
13
+ Error.captureStackTrace(this, this.constructor);
14
+ }
15
+ this.name = this.constructor.name;
12
16
  }
13
17
  }
@@ -8,6 +8,10 @@ export class ServiceUnavailableError extends errors.PayabliError {
8
8
  body: body,
9
9
  rawResponse: rawResponse,
10
10
  });
11
- Object.setPrototypeOf(this, ServiceUnavailableError.prototype);
11
+ Object.setPrototypeOf(this, new.target.prototype);
12
+ if (Error.captureStackTrace) {
13
+ Error.captureStackTrace(this, this.constructor);
14
+ }
15
+ this.name = this.constructor.name;
12
16
  }
13
17
  }
@@ -8,6 +8,10 @@ export class UnauthorizedError extends errors.PayabliError {
8
8
  body: body,
9
9
  rawResponse: rawResponse,
10
10
  });
11
- Object.setPrototypeOf(this, UnauthorizedError.prototype);
11
+ Object.setPrototypeOf(this, new.target.prototype);
12
+ if (Error.captureStackTrace) {
13
+ Error.captureStackTrace(this, this.constructor);
14
+ }
15
+ this.name = this.constructor.name;
12
16
  }
13
17
  }
@@ -3,8 +3,7 @@ import { type NormalizedClientOptionsWithAuth } from "../../../../BaseClient.mjs
3
3
  import * as core from "../../../../core/index.mjs";
4
4
  import * as Payabli from "../../../index.mjs";
5
5
  export declare namespace BillClient {
6
- interface Options extends BaseClientOptions {
7
- }
6
+ type Options = BaseClientOptions;
8
7
  interface RequestOptions extends BaseRequestOptions {
9
8
  }
10
9
  }
@@ -13,7 +13,8 @@ export interface BillResponseData {
13
13
  BillDate?: Payabli.Datenullable | undefined;
14
14
  /** Due Date of bill. Accepted formats: YYYY-MM-DD, MM/DD/YYYY */
15
15
  DueDate?: Payabli.Datenullable | undefined;
16
- Comments?: Payabli.Comments;
16
+ /** Comments associated with the bill. For managed payables, the character limit is 200. For on demand payouts, the characters limit is 250. */
17
+ Comments?: string;
17
18
  /** The batch number that the bill belongs to. */
18
19
  BatchNumber?: string;
19
20
  /** Array of `LineItems` contained in bill. */
@@ -3,8 +3,7 @@ import { type NormalizedClientOptionsWithAuth } from "../../../../BaseClient.mjs
3
3
  import * as core from "../../../../core/index.mjs";
4
4
  import * as Payabli from "../../../index.mjs";
5
5
  export declare namespace BoardingClient {
6
- interface Options extends BaseClientOptions {
7
- }
6
+ type Options = BaseClientOptions;
8
7
  interface RequestOptions extends BaseRequestOptions {
9
8
  }
10
9
  }
@@ -3,8 +3,7 @@ import { type NormalizedClientOptionsWithAuth } from "../../../../BaseClient.mjs
3
3
  import * as core from "../../../../core/index.mjs";
4
4
  import * as Payabli from "../../../index.mjs";
5
5
  export declare namespace ChargeBacksClient {
6
- interface Options extends BaseClientOptions {
7
- }
6
+ type Options = BaseClientOptions;
8
7
  interface RequestOptions extends BaseRequestOptions {
9
8
  }
10
9
  }
@@ -3,8 +3,7 @@ import { type NormalizedClientOptionsWithAuth } from "../../../../BaseClient.mjs
3
3
  import * as core from "../../../../core/index.mjs";
4
4
  import * as Payabli from "../../../index.mjs";
5
5
  export declare namespace CheckCaptureClient {
6
- interface Options extends BaseClientOptions {
7
- }
6
+ type Options = BaseClientOptions;
8
7
  interface RequestOptions extends BaseRequestOptions {
9
8
  }
10
9
  }
@@ -3,8 +3,7 @@ import { type NormalizedClientOptionsWithAuth } from "../../../../BaseClient.mjs
3
3
  import * as core from "../../../../core/index.mjs";
4
4
  import * as Payabli from "../../../index.mjs";
5
5
  export declare namespace CloudClient {
6
- interface Options extends BaseClientOptions {
7
- }
6
+ type Options = BaseClientOptions;
8
7
  interface RequestOptions extends BaseRequestOptions {
9
8
  }
10
9
  }
@@ -3,8 +3,7 @@ import { type NormalizedClientOptionsWithAuth } from "../../../../BaseClient.mjs
3
3
  import * as core from "../../../../core/index.mjs";
4
4
  import * as Payabli from "../../../index.mjs";
5
5
  export declare namespace CustomerClient {
6
- interface Options extends BaseClientOptions {
7
- }
6
+ type Options = BaseClientOptions;
8
7
  interface RequestOptions extends BaseRequestOptions {
9
8
  }
10
9
  }
@@ -3,8 +3,7 @@ import { type NormalizedClientOptionsWithAuth } from "../../../../BaseClient.mjs
3
3
  import * as core from "../../../../core/index.mjs";
4
4
  import * as Payabli from "../../../index.mjs";
5
5
  export declare namespace ExportClient {
6
- interface Options extends BaseClientOptions {
7
- }
6
+ type Options = BaseClientOptions;
8
7
  interface RequestOptions extends BaseRequestOptions {
9
8
  }
10
9
  }
@@ -637,11 +636,6 @@ export declare class ExportClient {
637
636
  * @param {Payabli.ExportVendorsOrgRequest} request
638
637
  * @param {ExportClient.RequestOptions} requestOptions - Request-specific configuration.
639
638
  *
640
- * @throws {@link Payabli.BadRequestError}
641
- * @throws {@link Payabli.UnauthorizedError}
642
- * @throws {@link Payabli.InternalServerError}
643
- * @throws {@link Payabli.ServiceUnavailableError}
644
- *
645
639
  * @example
646
640
  * await client.export.exportVendorsOrg("csv", 123, {
647
641
  * columnsExport: "BatchDate:Batch_Date,PaypointName:Legal_name",
@@ -2192,11 +2192,6 @@ export class ExportClient {
2192
2192
  * @param {Payabli.ExportVendorsOrgRequest} request
2193
2193
  * @param {ExportClient.RequestOptions} requestOptions - Request-specific configuration.
2194
2194
  *
2195
- * @throws {@link Payabli.BadRequestError}
2196
- * @throws {@link Payabli.UnauthorizedError}
2197
- * @throws {@link Payabli.InternalServerError}
2198
- * @throws {@link Payabli.ServiceUnavailableError}
2199
- *
2200
2195
  * @example
2201
2196
  * await client.export.exportVendorsOrg("csv", 123, {
2202
2197
  * columnsExport: "BatchDate:Batch_Date,PaypointName:Legal_name",
@@ -2241,22 +2236,11 @@ export class ExportClient {
2241
2236
  return { data: _response.body, rawResponse: _response.rawResponse };
2242
2237
  }
2243
2238
  if (_response.error.reason === "status-code") {
2244
- switch (_response.error.statusCode) {
2245
- case 400:
2246
- throw new Payabli.BadRequestError(_response.error.body, _response.rawResponse);
2247
- case 401:
2248
- throw new Payabli.UnauthorizedError(_response.error.body, _response.rawResponse);
2249
- case 500:
2250
- throw new Payabli.InternalServerError(_response.error.body, _response.rawResponse);
2251
- case 503:
2252
- throw new Payabli.ServiceUnavailableError(_response.error.body, _response.rawResponse);
2253
- default:
2254
- throw new errors.PayabliError({
2255
- statusCode: _response.error.statusCode,
2256
- body: _response.error.body,
2257
- rawResponse: _response.rawResponse,
2258
- });
2259
- }
2239
+ throw new errors.PayabliError({
2240
+ statusCode: _response.error.statusCode,
2241
+ body: _response.error.body,
2242
+ rawResponse: _response.rawResponse,
2243
+ });
2260
2244
  }
2261
2245
  return handleNonStatusCodeError(_response.error, _response.rawResponse, "GET", "/Export/vendors/{format}/org/{orgId}");
2262
2246
  });
@@ -3,8 +3,7 @@ import { type NormalizedClientOptionsWithAuth } from "../../../../BaseClient.mjs
3
3
  import * as core from "../../../../core/index.mjs";
4
4
  import * as Payabli from "../../../index.mjs";
5
5
  export declare namespace HostedPaymentPagesClient {
6
- interface Options extends BaseClientOptions {
7
- }
6
+ type Options = BaseClientOptions;
8
7
  interface RequestOptions extends BaseRequestOptions {
9
8
  }
10
9
  }
@@ -3,8 +3,7 @@ import { type NormalizedClientOptionsWithAuth } from "../../../../BaseClient.mjs
3
3
  import * as core from "../../../../core/index.mjs";
4
4
  import * as Payabli from "../../../index.mjs";
5
5
  export declare namespace ImportClient {
6
- interface Options extends BaseClientOptions {
7
- }
6
+ type Options = BaseClientOptions;
8
7
  interface RequestOptions extends BaseRequestOptions {
9
8
  }
10
9
  }
@@ -58,11 +57,6 @@ export declare class ImportClient {
58
57
  * @param {Payabli.ImportVendorRequest} request
59
58
  * @param {ImportClient.RequestOptions} requestOptions - Request-specific configuration.
60
59
  *
61
- * @throws {@link Payabli.BadRequestError}
62
- * @throws {@link Payabli.UnauthorizedError}
63
- * @throws {@link Payabli.InternalServerError}
64
- * @throws {@link Payabli.ServiceUnavailableError}
65
- *
66
60
  * @example
67
61
  * import { createReadStream } from "fs";
68
62
  * await client.import.importVendor("8cfec329267", {
@@ -164,11 +164,6 @@ export class ImportClient {
164
164
  * @param {Payabli.ImportVendorRequest} request
165
165
  * @param {ImportClient.RequestOptions} requestOptions - Request-specific configuration.
166
166
  *
167
- * @throws {@link Payabli.BadRequestError}
168
- * @throws {@link Payabli.UnauthorizedError}
169
- * @throws {@link Payabli.InternalServerError}
170
- * @throws {@link Payabli.ServiceUnavailableError}
171
- *
172
167
  * @example
173
168
  * import { createReadStream } from "fs";
174
169
  * await client.import.importVendor("8cfec329267", {
@@ -204,22 +199,11 @@ export class ImportClient {
204
199
  return { data: _response.body, rawResponse: _response.rawResponse };
205
200
  }
206
201
  if (_response.error.reason === "status-code") {
207
- switch (_response.error.statusCode) {
208
- case 400:
209
- throw new Payabli.BadRequestError(_response.error.body, _response.rawResponse);
210
- case 401:
211
- throw new Payabli.UnauthorizedError(_response.error.body, _response.rawResponse);
212
- case 500:
213
- throw new Payabli.InternalServerError(_response.error.body, _response.rawResponse);
214
- case 503:
215
- throw new Payabli.ServiceUnavailableError(_response.error.body, _response.rawResponse);
216
- default:
217
- throw new errors.PayabliError({
218
- statusCode: _response.error.statusCode,
219
- body: _response.error.body,
220
- rawResponse: _response.rawResponse,
221
- });
222
- }
202
+ throw new errors.PayabliError({
203
+ statusCode: _response.error.statusCode,
204
+ body: _response.error.body,
205
+ rawResponse: _response.rawResponse,
206
+ });
223
207
  }
224
208
  return handleNonStatusCodeError(_response.error, _response.rawResponse, "POST", "/Import/vendorsForm/{entry}");
225
209
  });
@@ -73,6 +73,9 @@ export * from "./tokenStorage/types/index.mjs";
73
73
  export * from "./user/client/requests/index.mjs";
74
74
  export * as user from "./user/index.mjs";
75
75
  export * from "./user/types/index.mjs";
76
+ export * from "./v2MoneyInTypes/errors/index.mjs";
77
+ export * as v2MoneyInTypes from "./v2MoneyInTypes/index.mjs";
78
+ export * from "./v2MoneyInTypes/types/index.mjs";
76
79
  export * as vendor from "./vendor/index.mjs";
77
80
  export * from "./wallet/client/requests/index.mjs";
78
81
  export * as wallet from "./wallet/index.mjs";
@@ -73,6 +73,9 @@ export * from "./tokenStorage/types/index.mjs";
73
73
  export * from "./user/client/requests/index.mjs";
74
74
  export * as user from "./user/index.mjs";
75
75
  export * from "./user/types/index.mjs";
76
+ export * from "./v2MoneyInTypes/errors/index.mjs";
77
+ export * as v2MoneyInTypes from "./v2MoneyInTypes/index.mjs";
78
+ export * from "./v2MoneyInTypes/types/index.mjs";
76
79
  export * as vendor from "./vendor/index.mjs";
77
80
  export * from "./wallet/client/requests/index.mjs";
78
81
  export * as wallet from "./wallet/index.mjs";
@@ -3,8 +3,7 @@ import { type NormalizedClientOptionsWithAuth } from "../../../../BaseClient.mjs
3
3
  import * as core from "../../../../core/index.mjs";
4
4
  import * as Payabli from "../../../index.mjs";
5
5
  export declare namespace InvoiceClient {
6
- interface Options extends BaseClientOptions {
7
- }
6
+ type Options = BaseClientOptions;
8
7
  interface RequestOptions extends BaseRequestOptions {
9
8
  }
10
9
  }
@@ -37,17 +36,19 @@ export declare class InvoiceClient {
37
36
  * itemDescription: "Consultation for Georgian tours",
38
37
  * itemCost: 100,
39
38
  * itemQty: 1,
40
- * itemMode: 1
39
+ * itemMode: 1,
40
+ * itemTotalAmount: 1
41
41
  * }, {
42
42
  * itemProductName: "Deposit ",
43
43
  * itemDescription: "Deposit for trip planning",
44
44
  * itemCost: 882.37,
45
- * itemQty: 1
45
+ * itemQty: 1,
46
+ * itemTotalAmount: 1
46
47
  * }],
47
48
  * invoiceDate: "2025-10-19",
48
49
  * invoiceType: 0,
49
50
  * invoiceStatus: 1,
50
- * frequency: "one-time",
51
+ * frequency: "onetime",
51
52
  * invoiceAmount: 982.37,
52
53
  * discount: 10,
53
54
  * invoiceNumber: "INV-3"
@@ -46,17 +46,19 @@ export class InvoiceClient {
46
46
  * itemDescription: "Consultation for Georgian tours",
47
47
  * itemCost: 100,
48
48
  * itemQty: 1,
49
- * itemMode: 1
49
+ * itemMode: 1,
50
+ * itemTotalAmount: 1
50
51
  * }, {
51
52
  * itemProductName: "Deposit ",
52
53
  * itemDescription: "Deposit for trip planning",
53
54
  * itemCost: 882.37,
54
- * itemQty: 1
55
+ * itemQty: 1,
56
+ * itemTotalAmount: 1
55
57
  * }],
56
58
  * invoiceDate: "2025-10-19",
57
59
  * invoiceType: 0,
58
60
  * invoiceStatus: 1,
59
- * frequency: "one-time",
61
+ * frequency: "onetime",
60
62
  * invoiceAmount: 982.37,
61
63
  * discount: 10,
62
64
  * invoiceNumber: "INV-3"