@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
@@ -199,11 +199,6 @@ export class TemplatesClient {
199
199
  * @param {Payabli.ListTemplatesRequest} request
200
200
  * @param {TemplatesClient.RequestOptions} requestOptions - Request-specific configuration.
201
201
  *
202
- * @throws {@link Payabli.BadRequestError}
203
- * @throws {@link Payabli.UnauthorizedError}
204
- * @throws {@link Payabli.InternalServerError}
205
- * @throws {@link Payabli.ServiceUnavailableError}
206
- *
207
202
  * @example
208
203
  * await client.templates.listTemplates(123, {
209
204
  * fromRecord: 251,
@@ -248,22 +243,11 @@ export class TemplatesClient {
248
243
  return { data: _response.body, rawResponse: _response.rawResponse };
249
244
  }
250
245
  if (_response.error.reason === "status-code") {
251
- switch (_response.error.statusCode) {
252
- case 400:
253
- throw new Payabli.BadRequestError(_response.error.body, _response.rawResponse);
254
- case 401:
255
- throw new Payabli.UnauthorizedError(_response.error.body, _response.rawResponse);
256
- case 500:
257
- throw new Payabli.InternalServerError(_response.error.body, _response.rawResponse);
258
- case 503:
259
- throw new Payabli.ServiceUnavailableError(_response.error.body, _response.rawResponse);
260
- default:
261
- throw new errors.PayabliError({
262
- statusCode: _response.error.statusCode,
263
- body: _response.error.body,
264
- rawResponse: _response.rawResponse,
265
- });
266
- }
246
+ throw new errors.PayabliError({
247
+ statusCode: _response.error.statusCode,
248
+ body: _response.error.body,
249
+ rawResponse: _response.rawResponse,
250
+ });
267
251
  }
268
252
  return handleNonStatusCodeError(_response.error, _response.rawResponse, "GET", "/Query/templates/{orgId}");
269
253
  });
@@ -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 TokenStorageClient {
6
- interface Options extends BaseClientOptions {
7
- }
6
+ type Options = BaseClientOptions;
8
7
  interface RequestOptions extends BaseRequestOptions {
9
8
  }
10
9
  }
@@ -93,6 +92,29 @@ export declare class TokenStorageClient {
93
92
  * }
94
93
  * }
95
94
  * })
95
+ *
96
+ * @example
97
+ * await client.tokenStorage.addMethod({
98
+ * achValidation: true,
99
+ * body: {
100
+ * customerData: {
101
+ * customerId: 4440
102
+ * },
103
+ * entryPoint: "f743aed24a",
104
+ * paymentMethod: {
105
+ * achAccount: "1111111111111",
106
+ * achAccountType: "Checking",
107
+ * achCode: "WEB",
108
+ * achHolder: "John Doe",
109
+ * achHolderType: "personal",
110
+ * achRouting: "123456780",
111
+ * method: "ach"
112
+ * },
113
+ * vendorData: {
114
+ * vendorId: 7890
115
+ * }
116
+ * }
117
+ * })
96
118
  */
97
119
  addMethod(request: Payabli.AddMethodRequest, requestOptions?: TokenStorageClient.RequestOptions): core.HttpResponsePromise<Payabli.AddMethodResponse>;
98
120
  private __addMethod;
@@ -113,6 +135,12 @@ export declare class TokenStorageClient {
113
135
  * cardExpirationFormat: 1,
114
136
  * includeTemporary: false
115
137
  * })
138
+ *
139
+ * @example
140
+ * await client.tokenStorage.getMethod("749e236c-59a3-49c7-ab47-73e06f9e94aa-199689", {
141
+ * cardExpirationFormat: 1,
142
+ * includeTemporary: false
143
+ * })
116
144
  */
117
145
  getMethod(methodId: string, request?: Payabli.GetMethodRequest, requestOptions?: TokenStorageClient.RequestOptions): core.HttpResponsePromise<Payabli.GetMethodResponse>;
118
146
  private __getMethod;
@@ -139,11 +167,6 @@ export declare class TokenStorageClient {
139
167
  * @param {Payabli.UpdateMethodRequest} request
140
168
  * @param {TokenStorageClient.RequestOptions} requestOptions - Request-specific configuration.
141
169
  *
142
- * @throws {@link Payabli.BadRequestError}
143
- * @throws {@link Payabli.UnauthorizedError}
144
- * @throws {@link Payabli.InternalServerError}
145
- * @throws {@link Payabli.ServiceUnavailableError}
146
- *
147
170
  * @example
148
171
  * await client.tokenStorage.updateMethod("32-8877drt00045632-678", {
149
172
  * body: {
@@ -181,6 +204,28 @@ export declare class TokenStorageClient {
181
204
  * }
182
205
  * }
183
206
  * })
207
+ *
208
+ * @example
209
+ * await client.tokenStorage.updateMethod("32-8877drt00045632-678", {
210
+ * body: {
211
+ * customerData: {
212
+ * customerId: 4440
213
+ * },
214
+ * entryPoint: "f743aed24a",
215
+ * paymentMethod: {
216
+ * achAccount: "1111111111111",
217
+ * achAccountType: "Checking",
218
+ * achCode: "WEB",
219
+ * achHolder: "John Doe",
220
+ * achHolderType: "personal",
221
+ * achRouting: "123456780",
222
+ * method: "ach"
223
+ * },
224
+ * vendorData: {
225
+ * vendorId: 7890
226
+ * }
227
+ * }
228
+ * })
184
229
  */
185
230
  updateMethod(methodId: string, request: Payabli.UpdateMethodRequest, requestOptions?: TokenStorageClient.RequestOptions): core.HttpResponsePromise<Payabli.PayabliApiResponsePaymethodDelete>;
186
231
  private __updateMethod;
@@ -101,6 +101,29 @@ export class TokenStorageClient {
101
101
  * }
102
102
  * }
103
103
  * })
104
+ *
105
+ * @example
106
+ * await client.tokenStorage.addMethod({
107
+ * achValidation: true,
108
+ * body: {
109
+ * customerData: {
110
+ * customerId: 4440
111
+ * },
112
+ * entryPoint: "f743aed24a",
113
+ * paymentMethod: {
114
+ * achAccount: "1111111111111",
115
+ * achAccountType: "Checking",
116
+ * achCode: "WEB",
117
+ * achHolder: "John Doe",
118
+ * achHolderType: "personal",
119
+ * achRouting: "123456780",
120
+ * method: "ach"
121
+ * },
122
+ * vendorData: {
123
+ * vendorId: 7890
124
+ * }
125
+ * }
126
+ * })
104
127
  */
105
128
  addMethod(request, requestOptions) {
106
129
  return core.HttpResponsePromise.fromPromise(this.__addMethod(request, requestOptions));
@@ -179,6 +202,12 @@ export class TokenStorageClient {
179
202
  * cardExpirationFormat: 1,
180
203
  * includeTemporary: false
181
204
  * })
205
+ *
206
+ * @example
207
+ * await client.tokenStorage.getMethod("749e236c-59a3-49c7-ab47-73e06f9e94aa-199689", {
208
+ * cardExpirationFormat: 1,
209
+ * includeTemporary: false
210
+ * })
182
211
  */
183
212
  getMethod(methodId, request = {}, requestOptions) {
184
213
  return core.HttpResponsePromise.fromPromise(this.__getMethod(methodId, request, requestOptions));
@@ -298,11 +327,6 @@ export class TokenStorageClient {
298
327
  * @param {Payabli.UpdateMethodRequest} request
299
328
  * @param {TokenStorageClient.RequestOptions} requestOptions - Request-specific configuration.
300
329
  *
301
- * @throws {@link Payabli.BadRequestError}
302
- * @throws {@link Payabli.UnauthorizedError}
303
- * @throws {@link Payabli.InternalServerError}
304
- * @throws {@link Payabli.ServiceUnavailableError}
305
- *
306
330
  * @example
307
331
  * await client.tokenStorage.updateMethod("32-8877drt00045632-678", {
308
332
  * body: {
@@ -340,6 +364,28 @@ export class TokenStorageClient {
340
364
  * }
341
365
  * }
342
366
  * })
367
+ *
368
+ * @example
369
+ * await client.tokenStorage.updateMethod("32-8877drt00045632-678", {
370
+ * body: {
371
+ * customerData: {
372
+ * customerId: 4440
373
+ * },
374
+ * entryPoint: "f743aed24a",
375
+ * paymentMethod: {
376
+ * achAccount: "1111111111111",
377
+ * achAccountType: "Checking",
378
+ * achCode: "WEB",
379
+ * achHolder: "John Doe",
380
+ * achHolderType: "personal",
381
+ * achRouting: "123456780",
382
+ * method: "ach"
383
+ * },
384
+ * vendorData: {
385
+ * vendorId: 7890
386
+ * }
387
+ * }
388
+ * })
343
389
  */
344
390
  updateMethod(methodId, request, requestOptions) {
345
391
  return core.HttpResponsePromise.fromPromise(this.__updateMethod(methodId, request, requestOptions));
@@ -375,22 +421,11 @@ export class TokenStorageClient {
375
421
  };
376
422
  }
377
423
  if (_response.error.reason === "status-code") {
378
- switch (_response.error.statusCode) {
379
- case 400:
380
- throw new Payabli.BadRequestError(_response.error.body, _response.rawResponse);
381
- case 401:
382
- throw new Payabli.UnauthorizedError(_response.error.body, _response.rawResponse);
383
- case 500:
384
- throw new Payabli.InternalServerError(_response.error.body, _response.rawResponse);
385
- case 503:
386
- throw new Payabli.ServiceUnavailableError(_response.error.body, _response.rawResponse);
387
- default:
388
- throw new errors.PayabliError({
389
- statusCode: _response.error.statusCode,
390
- body: _response.error.body,
391
- rawResponse: _response.rawResponse,
392
- });
393
- }
424
+ throw new errors.PayabliError({
425
+ statusCode: _response.error.statusCode,
426
+ body: _response.error.body,
427
+ rawResponse: _response.rawResponse,
428
+ });
394
429
  }
395
430
  return handleNonStatusCodeError(_response.error, _response.rawResponse, "PUT", "/TokenStorage/{methodId}");
396
431
  });
@@ -71,6 +71,29 @@ import type * as Payabli from "../../../../index.mjs";
71
71
  * }
72
72
  * }
73
73
  * }
74
+ *
75
+ * @example
76
+ * {
77
+ * achValidation: true,
78
+ * body: {
79
+ * customerData: {
80
+ * customerId: 4440
81
+ * },
82
+ * entryPoint: "f743aed24a",
83
+ * paymentMethod: {
84
+ * achAccount: "1111111111111",
85
+ * achAccountType: "Checking",
86
+ * achCode: "WEB",
87
+ * achHolder: "John Doe",
88
+ * achHolderType: "personal",
89
+ * achRouting: "123456780",
90
+ * method: "ach"
91
+ * },
92
+ * vendorData: {
93
+ * vendorId: 7890
94
+ * }
95
+ * }
96
+ * }
74
97
  */
75
98
  export interface AddMethodRequest {
76
99
  achValidation?: Payabli.AchValidation | undefined;
@@ -10,6 +10,12 @@
10
10
  * cardExpirationFormat: 1,
11
11
  * includeTemporary: false
12
12
  * }
13
+ *
14
+ * @example
15
+ * {
16
+ * cardExpirationFormat: 1,
17
+ * includeTemporary: false
18
+ * }
13
19
  */
14
20
  export interface GetMethodRequest {
15
21
  /**
@@ -37,6 +37,28 @@ import type * as Payabli from "../../../../index.mjs";
37
37
  * }
38
38
  * }
39
39
  * }
40
+ *
41
+ * @example
42
+ * {
43
+ * body: {
44
+ * customerData: {
45
+ * customerId: 4440
46
+ * },
47
+ * entryPoint: "f743aed24a",
48
+ * paymentMethod: {
49
+ * achAccount: "1111111111111",
50
+ * achAccountType: "Checking",
51
+ * achCode: "WEB",
52
+ * achHolder: "John Doe",
53
+ * achHolderType: "personal",
54
+ * achRouting: "123456780",
55
+ * method: "ach"
56
+ * },
57
+ * vendorData: {
58
+ * vendorId: 7890
59
+ * }
60
+ * }
61
+ * }
40
62
  */
41
63
  export interface UpdateMethodRequest {
42
64
  achValidation?: Payabli.AchValidation | undefined;
@@ -13,6 +13,8 @@ export declare namespace GetMethodResponse {
13
13
  /** The bank identification number (BIN) */
14
14
  bin?: string;
15
15
  binData?: Payabli.BinData;
16
+ /** Timestamp for when card was last updated */
17
+ cardUpdatedOn?: string;
16
18
  customers?: ResponseData.Customers.Item[];
17
19
  descriptor?: Payabli.Descriptor;
18
20
  /** Expiration date for card in stored method in format MM/YY */
@@ -21,8 +23,10 @@ export declare namespace GetMethodResponse {
21
23
  holderName?: Payabli.Holdername;
22
24
  /** The stored payment method's identifier in Payabli */
23
25
  idPmethod?: string;
26
+ /** Whether the ACH account has been validated */
27
+ isValidatedACH?: boolean;
24
28
  /** Timestamp for last update of stored method, in UTC */
25
- lastUpdated?: Payabli.LastModified | undefined;
29
+ lastUpdated?: string;
26
30
  maskedAccount?: Payabli.Maskedaccount;
27
31
  /** The saved method's type: `card` or `ach`. */
28
32
  method?: string;
@@ -30,6 +34,7 @@ export declare namespace GetMethodResponse {
30
34
  methodType?: string;
31
35
  /** The payment method postal code */
32
36
  postalCode?: string;
37
+ vendors?: ResponseData.Vendors.Item[];
33
38
  }
34
39
  namespace ResponseData {
35
40
  type Customers = Customers.Item[];
@@ -75,5 +80,100 @@ export declare namespace GetMethodResponse {
75
80
  timeZone?: number;
76
81
  }
77
82
  }
83
+ type Vendors = Vendors.Item[];
84
+ namespace Vendors {
85
+ interface Item {
86
+ /** Additional data for vendor */
87
+ additionalData?: Payabli.AdditionalDataMap;
88
+ /** Vendor's address */
89
+ address1?: string;
90
+ /** Additional line for vendor's address */
91
+ address2?: string;
92
+ /** Object containing vendor's bank information */
93
+ billingData?: Payabli.VendorResponseBillingData;
94
+ /** Vendor's city */
95
+ city?: string;
96
+ /** Array of objects describing the vendor's contacts */
97
+ contacts?: Payabli.Contacts[];
98
+ /** Vendor's country */
99
+ country?: string;
100
+ /** Date when vendor was created */
101
+ createdDate?: string;
102
+ /** Custom field 1 for vendor */
103
+ customField1?: string;
104
+ /** Custom field 2 for vendor */
105
+ customField2?: string;
106
+ /** Account number of paypoint in the vendor's side */
107
+ customerVendorAccount?: string;
108
+ /** EIN/Tax ID for vendor. In responses, this field is masked. */
109
+ ein?: string;
110
+ /** Vendor's email address */
111
+ email?: Payabli.Email;
112
+ /** Vendor enrollment status */
113
+ enrollmentStatus?: string;
114
+ /** External paypoint identifier */
115
+ externalPaypointID?: string;
116
+ /** Internal reference ID for vendor */
117
+ internalReferenceId?: Payabli.InternalReferenceId;
118
+ /** Date when vendor was last updated */
119
+ lastUpdated?: string;
120
+ /** Location code for vendor */
121
+ locationCode?: Payabli.LocationCode;
122
+ /** Merchant category code */
123
+ mcc?: Payabli.Mcc;
124
+ /** Primary name for vendor */
125
+ name1?: string;
126
+ /** Secondary name for vendor */
127
+ name2?: string;
128
+ /** ID of the parent organization */
129
+ parentOrgId?: number;
130
+ /** Name of the parent organization */
131
+ parentOrgName?: string;
132
+ /** Primary payee name */
133
+ payeeName1?: Payabli.PayeeName;
134
+ /** Secondary payee name */
135
+ payeeName2?: Payabli.PayeeName;
136
+ /** Preferred payment method for vendor */
137
+ paymentMethod?: string;
138
+ /** DBA name of the paypoint */
139
+ paypointDbaname?: string;
140
+ /** Entry name of the paypoint */
141
+ paypointEntryname?: string;
142
+ /** Paypoint ID */
143
+ paypointId?: string;
144
+ /** Legal name of the paypoint */
145
+ paypointLegalname?: string;
146
+ /** Vendor's phone number */
147
+ phone?: string;
148
+ /** Remittance address line 1 */
149
+ remitAddress1?: Payabli.Remitaddress1;
150
+ /** Remittance address line 2 */
151
+ remitAddress2?: Payabli.Remitaddress2;
152
+ /** Remittance city */
153
+ remitCity?: Payabli.Remitcity;
154
+ /** Remittance country */
155
+ remitCountry?: Payabli.Remitcountry;
156
+ /** Email address for remittance */
157
+ remitEmail?: string;
158
+ /** Remittance state */
159
+ remitState?: Payabli.Remitstate;
160
+ /** Remittance ZIP code */
161
+ remitZip?: Payabli.Remitzip;
162
+ /** Vendor's state */
163
+ state?: string;
164
+ /** Array of stored payment methods for vendor */
165
+ storedMethods?: Payabli.VendorResponseStoredMethod[];
166
+ /** Vendor bill summary statistics */
167
+ summary?: Payabli.VendorResponseSummary;
168
+ /** The unique numeric ID assigned to the vendor in Payabli */
169
+ vendorId?: Payabli.Vendorid;
170
+ /** Custom vendor number assigned by the business */
171
+ vendorNumber?: Payabli.VendorNumber;
172
+ /** Status code for the vendor */
173
+ vendorStatus?: Payabli.Vendorstatus;
174
+ /** Vendor's ZIP code */
175
+ zip?: string;
176
+ }
177
+ }
78
178
  }
79
179
  }
@@ -12,6 +12,7 @@ export interface RequestTokenStorage {
12
12
  methodDescription?: string;
13
13
  /** Information about the payment method for the transaction. */
14
14
  paymentMethod?: Payabli.RequestTokenStoragePaymentMethod;
15
+ vendorData?: Payabli.VendorDataRequest;
15
16
  /** Custom identifier to indicate the source for the request */
16
17
  source?: Payabli.Source;
17
18
  subdomain?: Payabli.Subdomain;
@@ -0,0 +1,9 @@
1
+ /**
2
+ * Object describing the vendor owner of payment method. Required when saving an ACH payment method on behalf of a vendor (for Pay Out transactions).
3
+ */
4
+ export interface VendorDataRequest {
5
+ /** The unique numeric ID assigned to the vendor in Payabli. Either `vendorId` or `vendorNumber` is required. */
6
+ vendorId?: number;
7
+ /** Custom vendor number assigned by the business. Either `vendorId` or `vendorNumber` is required. */
8
+ vendorNumber?: string;
9
+ }
@@ -0,0 +1,2 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ export {};
@@ -7,3 +7,4 @@ export * from "./RequestTokenStoragePaymentMethod.mjs";
7
7
  export * from "./Temporary.mjs";
8
8
  export * from "./TokenizeAch.mjs";
9
9
  export * from "./TokenizeCard.mjs";
10
+ export * from "./VendorDataRequest.mjs";
@@ -7,3 +7,4 @@ export * from "./RequestTokenStoragePaymentMethod.mjs";
7
7
  export * from "./Temporary.mjs";
8
8
  export * from "./TokenizeAch.mjs";
9
9
  export * from "./TokenizeCard.mjs";
10
+ export * from "./VendorDataRequest.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 UserClient {
6
- interface Options extends BaseClientOptions {
7
- }
6
+ type Options = BaseClientOptions;
8
7
  interface RequestOptions extends BaseRequestOptions {
9
8
  }
10
9
  }
@@ -199,11 +198,6 @@ export declare class UserClient {
199
198
  * @param {Payabli.MfaValidationData} request
200
199
  * @param {UserClient.RequestOptions} requestOptions - Request-specific configuration.
201
200
  *
202
- * @throws {@link Payabli.BadRequestError}
203
- * @throws {@link Payabli.UnauthorizedError}
204
- * @throws {@link Payabli.InternalServerError}
205
- * @throws {@link Payabli.ServiceUnavailableError}
206
- *
207
201
  * @example
208
202
  * await client.user.validateMfaUser()
209
203
  */
@@ -684,11 +684,6 @@ export class UserClient {
684
684
  * @param {Payabli.MfaValidationData} request
685
685
  * @param {UserClient.RequestOptions} requestOptions - Request-specific configuration.
686
686
  *
687
- * @throws {@link Payabli.BadRequestError}
688
- * @throws {@link Payabli.UnauthorizedError}
689
- * @throws {@link Payabli.InternalServerError}
690
- * @throws {@link Payabli.ServiceUnavailableError}
691
- *
692
687
  * @example
693
688
  * await client.user.validateMfaUser()
694
689
  */
@@ -718,22 +713,11 @@ export class UserClient {
718
713
  return { data: _response.body, rawResponse: _response.rawResponse };
719
714
  }
720
715
  if (_response.error.reason === "status-code") {
721
- switch (_response.error.statusCode) {
722
- case 400:
723
- throw new Payabli.BadRequestError(_response.error.body, _response.rawResponse);
724
- case 401:
725
- throw new Payabli.UnauthorizedError(_response.error.body, _response.rawResponse);
726
- case 500:
727
- throw new Payabli.InternalServerError(_response.error.body, _response.rawResponse);
728
- case 503:
729
- throw new Payabli.ServiceUnavailableError(_response.error.body, _response.rawResponse);
730
- default:
731
- throw new errors.PayabliError({
732
- statusCode: _response.error.statusCode,
733
- body: _response.error.body,
734
- rawResponse: _response.rawResponse,
735
- });
736
- }
716
+ throw new errors.PayabliError({
717
+ statusCode: _response.error.statusCode,
718
+ body: _response.error.body,
719
+ rawResponse: _response.rawResponse,
720
+ });
737
721
  }
738
722
  return handleNonStatusCodeError(_response.error, _response.rawResponse, "POST", "/User/mfa");
739
723
  });
@@ -0,0 +1,6 @@
1
+ import type * as core from "../../../../core/index.mjs";
2
+ import * as errors from "../../../../errors/index.mjs";
3
+ import type * as Payabli from "../../../index.mjs";
4
+ export declare class BadRequestAuthResponseErrorV2 extends errors.PayabliError {
5
+ constructor(body: Payabli.V2BadRequestError, rawResponse?: core.RawResponse);
6
+ }
@@ -0,0 +1,17 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ import * as errors from "../../../../errors/index.mjs";
3
+ export class BadRequestAuthResponseErrorV2 extends errors.PayabliError {
4
+ constructor(body, rawResponse) {
5
+ super({
6
+ message: "BadRequestAuthResponseErrorV2",
7
+ statusCode: 400,
8
+ body: body,
9
+ rawResponse: rawResponse,
10
+ });
11
+ Object.setPrototypeOf(this, new.target.prototype);
12
+ if (Error.captureStackTrace) {
13
+ Error.captureStackTrace(this, this.constructor);
14
+ }
15
+ this.name = this.constructor.name;
16
+ }
17
+ }
@@ -0,0 +1,6 @@
1
+ import type * as core from "../../../../core/index.mjs";
2
+ import * as errors from "../../../../errors/index.mjs";
3
+ import type * as Payabli from "../../../index.mjs";
4
+ export declare class BadRequestCaptureResponseErrorV2 extends errors.PayabliError {
5
+ constructor(body: Payabli.V2BadRequestError, rawResponse?: core.RawResponse);
6
+ }
@@ -0,0 +1,17 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ import * as errors from "../../../../errors/index.mjs";
3
+ export class BadRequestCaptureResponseErrorV2 extends errors.PayabliError {
4
+ constructor(body, rawResponse) {
5
+ super({
6
+ message: "BadRequestCaptureResponseErrorV2",
7
+ statusCode: 400,
8
+ body: body,
9
+ rawResponse: rawResponse,
10
+ });
11
+ Object.setPrototypeOf(this, new.target.prototype);
12
+ if (Error.captureStackTrace) {
13
+ Error.captureStackTrace(this, this.constructor);
14
+ }
15
+ this.name = this.constructor.name;
16
+ }
17
+ }
@@ -0,0 +1,6 @@
1
+ import type * as core from "../../../../core/index.mjs";
2
+ import * as errors from "../../../../errors/index.mjs";
3
+ import type * as Payabli from "../../../index.mjs";
4
+ export declare class BadRequestRefundResponseErrorV2 extends errors.PayabliError {
5
+ constructor(body: Payabli.V2BadRequestError, rawResponse?: core.RawResponse);
6
+ }
@@ -0,0 +1,17 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ import * as errors from "../../../../errors/index.mjs";
3
+ export class BadRequestRefundResponseErrorV2 extends errors.PayabliError {
4
+ constructor(body, rawResponse) {
5
+ super({
6
+ message: "BadRequestRefundResponseErrorV2",
7
+ statusCode: 400,
8
+ body: body,
9
+ rawResponse: rawResponse,
10
+ });
11
+ Object.setPrototypeOf(this, new.target.prototype);
12
+ if (Error.captureStackTrace) {
13
+ Error.captureStackTrace(this, this.constructor);
14
+ }
15
+ this.name = this.constructor.name;
16
+ }
17
+ }
@@ -0,0 +1,6 @@
1
+ import type * as core from "../../../../core/index.mjs";
2
+ import * as errors from "../../../../errors/index.mjs";
3
+ import type * as Payabli from "../../../index.mjs";
4
+ export declare class BadRequestVoidResponseErrorV2 extends errors.PayabliError {
5
+ constructor(body: Payabli.V2BadRequestError, rawResponse?: core.RawResponse);
6
+ }
@@ -0,0 +1,17 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ import * as errors from "../../../../errors/index.mjs";
3
+ export class BadRequestVoidResponseErrorV2 extends errors.PayabliError {
4
+ constructor(body, rawResponse) {
5
+ super({
6
+ message: "BadRequestVoidResponseErrorV2",
7
+ statusCode: 400,
8
+ body: body,
9
+ rawResponse: rawResponse,
10
+ });
11
+ Object.setPrototypeOf(this, new.target.prototype);
12
+ if (Error.captureStackTrace) {
13
+ Error.captureStackTrace(this, this.constructor);
14
+ }
15
+ this.name = this.constructor.name;
16
+ }
17
+ }
@@ -0,0 +1,6 @@
1
+ import type * as core from "../../../../core/index.mjs";
2
+ import * as errors from "../../../../errors/index.mjs";
3
+ import type * as Payabli from "../../../index.mjs";
4
+ export declare class DeclinedAuthResponseErrorV2 extends errors.PayabliError {
5
+ constructor(body: Payabli.V2DeclinedTransactionResponseWrapper, rawResponse?: core.RawResponse);
6
+ }