@payabli/sdk-node 0.0.123 → 0.0.126

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (298) hide show
  1. package/dist/cjs/BaseClient.js +2 -2
  2. package/dist/cjs/api/resources/bill/types/BillResponseData.d.ts +2 -1
  3. package/dist/cjs/api/resources/export/client/Client.d.ts +0 -5
  4. package/dist/cjs/api/resources/export/client/Client.js +5 -21
  5. package/dist/cjs/api/resources/import/client/Client.d.ts +0 -5
  6. package/dist/cjs/api/resources/import/client/Client.js +5 -21
  7. package/dist/cjs/api/resources/index.d.ts +3 -0
  8. package/dist/cjs/api/resources/index.js +4 -1
  9. package/dist/cjs/api/resources/lineItem/client/Client.d.ts +0 -5
  10. package/dist/cjs/api/resources/lineItem/client/Client.js +5 -21
  11. package/dist/cjs/api/resources/moneyIn/client/Client.d.ts +247 -2
  12. package/dist/cjs/api/resources/moneyIn/client/Client.js +518 -2
  13. package/dist/cjs/api/resources/moneyIn/client/requests/RequestPaymentAuthorizeV2.d.ts +31 -0
  14. package/dist/cjs/api/resources/moneyIn/client/requests/RequestPaymentV2.d.ts +99 -0
  15. package/dist/cjs/api/resources/moneyIn/client/requests/index.d.ts +2 -0
  16. package/dist/cjs/api/resources/moneyIn/types/AuthResponseResponseData.d.ts +2 -2
  17. package/dist/cjs/api/resources/moneyIn/types/CaptureResponseData.d.ts +2 -2
  18. package/dist/cjs/api/resources/moneyIn/types/GetPaidResponseData.d.ts +3 -3
  19. package/dist/cjs/api/resources/moneyIn/types/ResponseDataRefunds.d.ts +2 -2
  20. package/dist/cjs/api/resources/moneyIn/types/TransactionDetailResponseData.d.ts +7 -3
  21. package/dist/cjs/api/resources/moneyIn/types/ValidateResponseData.d.ts +2 -2
  22. package/dist/cjs/api/resources/moneyIn/types/VoidResponseData.d.ts +2 -2
  23. package/dist/cjs/api/resources/moneyOutTypes/types/AuthCapturePayoutResponse.d.ts +2 -2
  24. package/dist/cjs/api/resources/notification/client/Client.d.ts +0 -5
  25. package/dist/cjs/api/resources/notification/client/Client.js +5 -21
  26. package/dist/cjs/api/resources/notificationlogs/client/Client.d.ts +0 -5
  27. package/dist/cjs/api/resources/notificationlogs/client/Client.js +5 -21
  28. package/dist/cjs/api/resources/ocr/client/Client.d.ts +0 -5
  29. package/dist/cjs/api/resources/ocr/client/Client.js +5 -21
  30. package/dist/cjs/api/resources/organization/client/Client.d.ts +0 -5
  31. package/dist/cjs/api/resources/organization/client/Client.js +5 -21
  32. package/dist/cjs/api/resources/paymentLink/client/Client.d.ts +0 -5
  33. package/dist/cjs/api/resources/paymentLink/client/Client.js +5 -21
  34. package/dist/cjs/api/resources/paymentMethodDomain/client/Client.d.ts +0 -5
  35. package/dist/cjs/api/resources/paymentMethodDomain/client/Client.js +5 -21
  36. package/dist/cjs/api/resources/paypoint/client/Client.d.ts +0 -5
  37. package/dist/cjs/api/resources/paypoint/client/Client.js +5 -21
  38. package/dist/cjs/api/resources/query/client/Client.d.ts +0 -5
  39. package/dist/cjs/api/resources/query/client/Client.js +5 -21
  40. package/dist/cjs/api/resources/queryTypes/types/QueryBatchesDetailResponse.d.ts +158 -0
  41. package/dist/cjs/api/resources/statistic/client/Client.d.ts +0 -5
  42. package/dist/cjs/api/resources/statistic/client/Client.js +5 -21
  43. package/dist/cjs/api/resources/subscription/client/Client.d.ts +0 -5
  44. package/dist/cjs/api/resources/subscription/client/Client.js +5 -21
  45. package/dist/cjs/api/resources/templates/client/Client.d.ts +0 -5
  46. package/dist/cjs/api/resources/templates/client/Client.js +5 -21
  47. package/dist/cjs/api/resources/tokenStorage/client/Client.d.ts +51 -5
  48. package/dist/cjs/api/resources/tokenStorage/client/Client.js +56 -21
  49. package/dist/cjs/api/resources/tokenStorage/client/requests/AddMethodRequest.d.ts +23 -0
  50. package/dist/cjs/api/resources/tokenStorage/client/requests/GetMethodRequest.d.ts +6 -0
  51. package/dist/cjs/api/resources/tokenStorage/client/requests/UpdateMethodRequest.d.ts +22 -0
  52. package/dist/cjs/api/resources/tokenStorage/types/GetMethodResponse.d.ts +100 -0
  53. package/dist/cjs/api/resources/tokenStorage/types/RequestTokenStorage.d.ts +1 -0
  54. package/dist/cjs/api/resources/tokenStorage/types/VendorDataRequest.d.ts +9 -0
  55. package/dist/cjs/api/resources/tokenStorage/types/VendorDataRequest.js +3 -0
  56. package/dist/cjs/api/resources/tokenStorage/types/index.d.ts +1 -0
  57. package/dist/cjs/api/resources/tokenStorage/types/index.js +1 -0
  58. package/dist/cjs/api/resources/user/client/Client.d.ts +0 -5
  59. package/dist/cjs/api/resources/user/client/Client.js +5 -21
  60. package/dist/cjs/api/resources/v2MoneyInTypes/errors/BadRequestAuthResponseErrorV2.d.ts +6 -0
  61. package/dist/cjs/api/resources/v2MoneyInTypes/errors/BadRequestAuthResponseErrorV2.js +54 -0
  62. package/dist/cjs/api/resources/v2MoneyInTypes/errors/BadRequestCaptureResponseErrorV2.d.ts +6 -0
  63. package/dist/cjs/api/resources/v2MoneyInTypes/errors/BadRequestCaptureResponseErrorV2.js +54 -0
  64. package/dist/cjs/api/resources/v2MoneyInTypes/errors/BadRequestRefundResponseErrorV2.d.ts +6 -0
  65. package/dist/cjs/api/resources/v2MoneyInTypes/errors/BadRequestRefundResponseErrorV2.js +54 -0
  66. package/dist/cjs/api/resources/v2MoneyInTypes/errors/BadRequestVoidResponseErrorV2.d.ts +6 -0
  67. package/dist/cjs/api/resources/v2MoneyInTypes/errors/BadRequestVoidResponseErrorV2.js +54 -0
  68. package/dist/cjs/api/resources/v2MoneyInTypes/errors/DeclinedAuthResponseErrorV2.d.ts +6 -0
  69. package/dist/cjs/api/resources/v2MoneyInTypes/errors/DeclinedAuthResponseErrorV2.js +54 -0
  70. package/dist/cjs/api/resources/v2MoneyInTypes/errors/DeclinedCaptureResponseErrorV2.d.ts +6 -0
  71. package/dist/cjs/api/resources/v2MoneyInTypes/errors/DeclinedCaptureResponseErrorV2.js +54 -0
  72. package/dist/cjs/api/resources/v2MoneyInTypes/errors/DeclinedRefundResponseErrorV2.d.ts +6 -0
  73. package/dist/cjs/api/resources/v2MoneyInTypes/errors/DeclinedRefundResponseErrorV2.js +54 -0
  74. package/dist/cjs/api/resources/v2MoneyInTypes/errors/DeclinedVoidResponseErrorV2.d.ts +6 -0
  75. package/dist/cjs/api/resources/v2MoneyInTypes/errors/DeclinedVoidResponseErrorV2.js +54 -0
  76. package/dist/cjs/api/resources/v2MoneyInTypes/errors/InternalServerResponseErrorV2.d.ts +6 -0
  77. package/dist/cjs/api/resources/v2MoneyInTypes/errors/InternalServerResponseErrorV2.js +54 -0
  78. package/dist/cjs/api/resources/v2MoneyInTypes/errors/index.d.ts +9 -0
  79. package/dist/cjs/api/resources/v2MoneyInTypes/errors/index.js +25 -0
  80. package/dist/cjs/api/resources/v2MoneyInTypes/index.d.ts +2 -0
  81. package/dist/cjs/api/resources/v2MoneyInTypes/index.js +18 -0
  82. package/dist/cjs/api/resources/v2MoneyInTypes/types/V2BadRequestError.d.ts +22 -0
  83. package/dist/cjs/api/resources/v2MoneyInTypes/types/V2BadRequestError.js +3 -0
  84. package/dist/cjs/api/resources/v2MoneyInTypes/types/V2BadRequestErrorDetail.d.ts +9 -0
  85. package/dist/cjs/api/resources/v2MoneyInTypes/types/V2BadRequestErrorDetail.js +3 -0
  86. package/dist/cjs/api/resources/v2MoneyInTypes/types/V2DeclinedTransactionResponseWrapper.d.ts +761 -0
  87. package/dist/cjs/api/resources/v2MoneyInTypes/types/V2DeclinedTransactionResponseWrapper.js +3 -0
  88. package/dist/cjs/api/resources/v2MoneyInTypes/types/V2InternalServerError.d.ts +21 -0
  89. package/dist/cjs/api/resources/v2MoneyInTypes/types/V2InternalServerError.js +3 -0
  90. package/dist/cjs/api/resources/v2MoneyInTypes/types/V2ResponseAction.d.ts +4 -0
  91. package/dist/cjs/api/resources/v2MoneyInTypes/types/V2ResponseAction.js +3 -0
  92. package/dist/cjs/api/resources/v2MoneyInTypes/types/V2ResponseCode.d.ts +4 -0
  93. package/dist/cjs/api/resources/v2MoneyInTypes/types/V2ResponseCode.js +3 -0
  94. package/dist/cjs/api/resources/v2MoneyInTypes/types/V2ResponseExplanation.d.ts +4 -0
  95. package/dist/cjs/api/resources/v2MoneyInTypes/types/V2ResponseExplanation.js +3 -0
  96. package/dist/cjs/api/resources/v2MoneyInTypes/types/V2ResponseReason.d.ts +4 -0
  97. package/dist/cjs/api/resources/v2MoneyInTypes/types/V2ResponseReason.js +3 -0
  98. package/dist/cjs/api/resources/v2MoneyInTypes/types/V2TransactionDetailResponseData.d.ts +65 -0
  99. package/dist/cjs/api/resources/v2MoneyInTypes/types/V2TransactionDetailResponseData.js +3 -0
  100. package/dist/cjs/api/resources/v2MoneyInTypes/types/V2TransactionDetails.d.ts +1003 -0
  101. package/dist/cjs/api/resources/v2MoneyInTypes/types/V2TransactionDetails.js +3 -0
  102. package/dist/cjs/api/resources/v2MoneyInTypes/types/V2TransactionResponseWrapper.d.ts +13 -0
  103. package/dist/cjs/api/resources/v2MoneyInTypes/types/V2TransactionResponseWrapper.js +3 -0
  104. package/dist/cjs/api/resources/v2MoneyInTypes/types/index.d.ts +11 -0
  105. package/dist/cjs/api/resources/v2MoneyInTypes/types/index.js +27 -0
  106. package/dist/cjs/api/resources/vendor/client/Client.d.ts +0 -5
  107. package/dist/cjs/api/resources/vendor/client/Client.js +5 -21
  108. package/dist/cjs/api/resources/wallet/client/Client.d.ts +0 -5
  109. package/dist/cjs/api/resources/wallet/client/Client.js +5 -21
  110. package/dist/cjs/api/types/ApplicationData.d.ts +1 -0
  111. package/dist/cjs/api/types/ApplicationDataManaged.d.ts +1 -0
  112. package/dist/cjs/api/types/ApplicationDataOdp.d.ts +1 -0
  113. package/dist/cjs/api/types/ApplicationDataPayIn.d.ts +1 -0
  114. package/dist/cjs/api/types/{Avsresponsetext.d.ts → AvsResponse.d.ts} +1 -1
  115. package/dist/cjs/api/types/AvsResponse.js +3 -0
  116. package/dist/{esm/api/types/Avsresponsetext.d.mts → cjs/api/types/AvsResponseText.d.ts} +1 -1
  117. package/dist/cjs/api/types/AvsResponseText.js +3 -0
  118. package/dist/cjs/api/types/CustomerVaultId.d.ts +1 -0
  119. package/dist/cjs/api/types/CustomerVaultId.js +3 -0
  120. package/dist/cjs/api/types/{Cvvresponsetext.d.ts → CvvResponse.d.ts} +1 -1
  121. package/dist/cjs/api/types/CvvResponse.js +3 -0
  122. package/dist/{esm/api/types/Cvvresponsetext.d.mts → cjs/api/types/CvvResponseText.d.ts} +1 -1
  123. package/dist/cjs/api/types/CvvResponseText.js +3 -0
  124. package/dist/cjs/api/types/EmvAuthResponseData.d.ts +4 -0
  125. package/dist/cjs/api/types/EmvAuthResponseData.js +3 -0
  126. package/dist/cjs/api/types/MaxTicket.d.ts +4 -0
  127. package/dist/cjs/api/types/MaxTicket.js +3 -0
  128. package/dist/cjs/api/types/MinTicket.d.ts +4 -0
  129. package/dist/cjs/api/types/MinTicket.js +3 -0
  130. package/dist/cjs/api/types/OnCreate.d.ts +4 -0
  131. package/dist/cjs/api/types/OnCreate.js +3 -0
  132. package/dist/cjs/api/types/PayabliApiResponse0.d.ts +2 -2
  133. package/dist/cjs/api/types/PayabliApiResponse0000.d.ts +2 -2
  134. package/dist/cjs/api/types/PayabliCredentialsPascal.d.ts +3 -2
  135. package/dist/cjs/api/types/QueryResponseData.d.ts +41 -10
  136. package/dist/cjs/api/types/QueryResponseSettlements.d.ts +134 -0
  137. package/dist/cjs/api/types/QuerySubscriptionResponse.d.ts +1 -1
  138. package/dist/cjs/api/types/QueryTransactionPayorData.d.ts +1 -1
  139. package/dist/cjs/api/types/ResultCodeText.d.ts +4 -0
  140. package/dist/cjs/api/types/ResultCodeText.js +3 -0
  141. package/dist/cjs/api/types/ResultCodev2.d.ts +4 -0
  142. package/dist/cjs/api/types/ResultCodev2.js +3 -0
  143. package/dist/cjs/api/types/index.d.ts +11 -2
  144. package/dist/cjs/api/types/index.js +11 -2
  145. package/dist/cjs/version.d.ts +1 -1
  146. package/dist/cjs/version.js +1 -1
  147. package/dist/esm/BaseClient.mjs +2 -2
  148. package/dist/esm/api/resources/bill/types/BillResponseData.d.mts +2 -1
  149. package/dist/esm/api/resources/export/client/Client.d.mts +0 -5
  150. package/dist/esm/api/resources/export/client/Client.mjs +5 -21
  151. package/dist/esm/api/resources/import/client/Client.d.mts +0 -5
  152. package/dist/esm/api/resources/import/client/Client.mjs +5 -21
  153. package/dist/esm/api/resources/index.d.mts +3 -0
  154. package/dist/esm/api/resources/index.mjs +3 -0
  155. package/dist/esm/api/resources/lineItem/client/Client.d.mts +0 -5
  156. package/dist/esm/api/resources/lineItem/client/Client.mjs +5 -21
  157. package/dist/esm/api/resources/moneyIn/client/Client.d.mts +247 -2
  158. package/dist/esm/api/resources/moneyIn/client/Client.mjs +518 -2
  159. package/dist/esm/api/resources/moneyIn/client/requests/RequestPaymentAuthorizeV2.d.mts +31 -0
  160. package/dist/esm/api/resources/moneyIn/client/requests/RequestPaymentV2.d.mts +99 -0
  161. package/dist/esm/api/resources/moneyIn/client/requests/index.d.mts +2 -0
  162. package/dist/esm/api/resources/moneyIn/types/AuthResponseResponseData.d.mts +2 -2
  163. package/dist/esm/api/resources/moneyIn/types/CaptureResponseData.d.mts +2 -2
  164. package/dist/esm/api/resources/moneyIn/types/GetPaidResponseData.d.mts +3 -3
  165. package/dist/esm/api/resources/moneyIn/types/ResponseDataRefunds.d.mts +2 -2
  166. package/dist/esm/api/resources/moneyIn/types/TransactionDetailResponseData.d.mts +7 -3
  167. package/dist/esm/api/resources/moneyIn/types/ValidateResponseData.d.mts +2 -2
  168. package/dist/esm/api/resources/moneyIn/types/VoidResponseData.d.mts +2 -2
  169. package/dist/esm/api/resources/moneyOutTypes/types/AuthCapturePayoutResponse.d.mts +2 -2
  170. package/dist/esm/api/resources/notification/client/Client.d.mts +0 -5
  171. package/dist/esm/api/resources/notification/client/Client.mjs +5 -21
  172. package/dist/esm/api/resources/notificationlogs/client/Client.d.mts +0 -5
  173. package/dist/esm/api/resources/notificationlogs/client/Client.mjs +5 -21
  174. package/dist/esm/api/resources/ocr/client/Client.d.mts +0 -5
  175. package/dist/esm/api/resources/ocr/client/Client.mjs +5 -21
  176. package/dist/esm/api/resources/organization/client/Client.d.mts +0 -5
  177. package/dist/esm/api/resources/organization/client/Client.mjs +5 -21
  178. package/dist/esm/api/resources/paymentLink/client/Client.d.mts +0 -5
  179. package/dist/esm/api/resources/paymentLink/client/Client.mjs +5 -21
  180. package/dist/esm/api/resources/paymentMethodDomain/client/Client.d.mts +0 -5
  181. package/dist/esm/api/resources/paymentMethodDomain/client/Client.mjs +5 -21
  182. package/dist/esm/api/resources/paypoint/client/Client.d.mts +0 -5
  183. package/dist/esm/api/resources/paypoint/client/Client.mjs +5 -21
  184. package/dist/esm/api/resources/query/client/Client.d.mts +0 -5
  185. package/dist/esm/api/resources/query/client/Client.mjs +5 -21
  186. package/dist/esm/api/resources/queryTypes/types/QueryBatchesDetailResponse.d.mts +158 -0
  187. package/dist/esm/api/resources/statistic/client/Client.d.mts +0 -5
  188. package/dist/esm/api/resources/statistic/client/Client.mjs +5 -21
  189. package/dist/esm/api/resources/subscription/client/Client.d.mts +0 -5
  190. package/dist/esm/api/resources/subscription/client/Client.mjs +5 -21
  191. package/dist/esm/api/resources/templates/client/Client.d.mts +0 -5
  192. package/dist/esm/api/resources/templates/client/Client.mjs +5 -21
  193. package/dist/esm/api/resources/tokenStorage/client/Client.d.mts +51 -5
  194. package/dist/esm/api/resources/tokenStorage/client/Client.mjs +56 -21
  195. package/dist/esm/api/resources/tokenStorage/client/requests/AddMethodRequest.d.mts +23 -0
  196. package/dist/esm/api/resources/tokenStorage/client/requests/GetMethodRequest.d.mts +6 -0
  197. package/dist/esm/api/resources/tokenStorage/client/requests/UpdateMethodRequest.d.mts +22 -0
  198. package/dist/esm/api/resources/tokenStorage/types/GetMethodResponse.d.mts +100 -0
  199. package/dist/esm/api/resources/tokenStorage/types/RequestTokenStorage.d.mts +1 -0
  200. package/dist/esm/api/resources/tokenStorage/types/VendorDataRequest.d.mts +9 -0
  201. package/dist/esm/api/resources/tokenStorage/types/VendorDataRequest.mjs +2 -0
  202. package/dist/esm/api/resources/tokenStorage/types/index.d.mts +1 -0
  203. package/dist/esm/api/resources/tokenStorage/types/index.mjs +1 -0
  204. package/dist/esm/api/resources/user/client/Client.d.mts +0 -5
  205. package/dist/esm/api/resources/user/client/Client.mjs +5 -21
  206. package/dist/esm/api/resources/v2MoneyInTypes/errors/BadRequestAuthResponseErrorV2.d.mts +6 -0
  207. package/dist/esm/api/resources/v2MoneyInTypes/errors/BadRequestAuthResponseErrorV2.mjs +17 -0
  208. package/dist/esm/api/resources/v2MoneyInTypes/errors/BadRequestCaptureResponseErrorV2.d.mts +6 -0
  209. package/dist/esm/api/resources/v2MoneyInTypes/errors/BadRequestCaptureResponseErrorV2.mjs +17 -0
  210. package/dist/esm/api/resources/v2MoneyInTypes/errors/BadRequestRefundResponseErrorV2.d.mts +6 -0
  211. package/dist/esm/api/resources/v2MoneyInTypes/errors/BadRequestRefundResponseErrorV2.mjs +17 -0
  212. package/dist/esm/api/resources/v2MoneyInTypes/errors/BadRequestVoidResponseErrorV2.d.mts +6 -0
  213. package/dist/esm/api/resources/v2MoneyInTypes/errors/BadRequestVoidResponseErrorV2.mjs +17 -0
  214. package/dist/esm/api/resources/v2MoneyInTypes/errors/DeclinedAuthResponseErrorV2.d.mts +6 -0
  215. package/dist/esm/api/resources/v2MoneyInTypes/errors/DeclinedAuthResponseErrorV2.mjs +17 -0
  216. package/dist/esm/api/resources/v2MoneyInTypes/errors/DeclinedCaptureResponseErrorV2.d.mts +6 -0
  217. package/dist/esm/api/resources/v2MoneyInTypes/errors/DeclinedCaptureResponseErrorV2.mjs +17 -0
  218. package/dist/esm/api/resources/v2MoneyInTypes/errors/DeclinedRefundResponseErrorV2.d.mts +6 -0
  219. package/dist/esm/api/resources/v2MoneyInTypes/errors/DeclinedRefundResponseErrorV2.mjs +17 -0
  220. package/dist/esm/api/resources/v2MoneyInTypes/errors/DeclinedVoidResponseErrorV2.d.mts +6 -0
  221. package/dist/esm/api/resources/v2MoneyInTypes/errors/DeclinedVoidResponseErrorV2.mjs +17 -0
  222. package/dist/esm/api/resources/v2MoneyInTypes/errors/InternalServerResponseErrorV2.d.mts +6 -0
  223. package/dist/esm/api/resources/v2MoneyInTypes/errors/InternalServerResponseErrorV2.mjs +17 -0
  224. package/dist/esm/api/resources/v2MoneyInTypes/errors/index.d.mts +9 -0
  225. package/dist/esm/api/resources/v2MoneyInTypes/errors/index.mjs +9 -0
  226. package/dist/esm/api/resources/v2MoneyInTypes/index.d.mts +2 -0
  227. package/dist/esm/api/resources/v2MoneyInTypes/index.mjs +2 -0
  228. package/dist/esm/api/resources/v2MoneyInTypes/types/V2BadRequestError.d.mts +22 -0
  229. package/dist/esm/api/resources/v2MoneyInTypes/types/V2BadRequestError.mjs +2 -0
  230. package/dist/esm/api/resources/v2MoneyInTypes/types/V2BadRequestErrorDetail.d.mts +9 -0
  231. package/dist/esm/api/resources/v2MoneyInTypes/types/V2BadRequestErrorDetail.mjs +2 -0
  232. package/dist/esm/api/resources/v2MoneyInTypes/types/V2DeclinedTransactionResponseWrapper.d.mts +761 -0
  233. package/dist/esm/api/resources/v2MoneyInTypes/types/V2DeclinedTransactionResponseWrapper.mjs +2 -0
  234. package/dist/esm/api/resources/v2MoneyInTypes/types/V2InternalServerError.d.mts +21 -0
  235. package/dist/esm/api/resources/v2MoneyInTypes/types/V2InternalServerError.mjs +2 -0
  236. package/dist/esm/api/resources/v2MoneyInTypes/types/V2ResponseAction.d.mts +4 -0
  237. package/dist/esm/api/resources/v2MoneyInTypes/types/V2ResponseAction.mjs +2 -0
  238. package/dist/esm/api/resources/v2MoneyInTypes/types/V2ResponseCode.d.mts +4 -0
  239. package/dist/esm/api/resources/v2MoneyInTypes/types/V2ResponseCode.mjs +2 -0
  240. package/dist/esm/api/resources/v2MoneyInTypes/types/V2ResponseExplanation.d.mts +4 -0
  241. package/dist/esm/api/resources/v2MoneyInTypes/types/V2ResponseExplanation.mjs +2 -0
  242. package/dist/esm/api/resources/v2MoneyInTypes/types/V2ResponseReason.d.mts +4 -0
  243. package/dist/esm/api/resources/v2MoneyInTypes/types/V2ResponseReason.mjs +2 -0
  244. package/dist/esm/api/resources/v2MoneyInTypes/types/V2TransactionDetailResponseData.d.mts +65 -0
  245. package/dist/esm/api/resources/v2MoneyInTypes/types/V2TransactionDetailResponseData.mjs +2 -0
  246. package/dist/esm/api/resources/v2MoneyInTypes/types/V2TransactionDetails.d.mts +1003 -0
  247. package/dist/esm/api/resources/v2MoneyInTypes/types/V2TransactionDetails.mjs +2 -0
  248. package/dist/esm/api/resources/v2MoneyInTypes/types/V2TransactionResponseWrapper.d.mts +13 -0
  249. package/dist/esm/api/resources/v2MoneyInTypes/types/V2TransactionResponseWrapper.mjs +2 -0
  250. package/dist/esm/api/resources/v2MoneyInTypes/types/index.d.mts +11 -0
  251. package/dist/esm/api/resources/v2MoneyInTypes/types/index.mjs +11 -0
  252. package/dist/esm/api/resources/vendor/client/Client.d.mts +0 -5
  253. package/dist/esm/api/resources/vendor/client/Client.mjs +5 -21
  254. package/dist/esm/api/resources/wallet/client/Client.d.mts +0 -5
  255. package/dist/esm/api/resources/wallet/client/Client.mjs +5 -21
  256. package/dist/esm/api/types/ApplicationData.d.mts +1 -0
  257. package/dist/esm/api/types/ApplicationDataManaged.d.mts +1 -0
  258. package/dist/esm/api/types/ApplicationDataOdp.d.mts +1 -0
  259. package/dist/esm/api/types/ApplicationDataPayIn.d.mts +1 -0
  260. package/dist/esm/api/types/AvsResponse.d.mts +4 -0
  261. package/dist/esm/api/types/AvsResponse.mjs +2 -0
  262. package/dist/esm/api/types/AvsResponseText.d.mts +4 -0
  263. package/dist/esm/api/types/AvsResponseText.mjs +2 -0
  264. package/dist/esm/api/types/CustomerVaultId.d.mts +1 -0
  265. package/dist/esm/api/types/CustomerVaultId.mjs +2 -0
  266. package/dist/esm/api/types/CvvResponse.d.mts +4 -0
  267. package/dist/esm/api/types/CvvResponse.mjs +2 -0
  268. package/dist/esm/api/types/CvvResponseText.d.mts +4 -0
  269. package/dist/esm/api/types/CvvResponseText.mjs +2 -0
  270. package/dist/esm/api/types/EmvAuthResponseData.d.mts +4 -0
  271. package/dist/esm/api/types/EmvAuthResponseData.mjs +2 -0
  272. package/dist/esm/api/types/MaxTicket.d.mts +4 -0
  273. package/dist/esm/api/types/MaxTicket.mjs +2 -0
  274. package/dist/esm/api/types/MinTicket.d.mts +4 -0
  275. package/dist/esm/api/types/MinTicket.mjs +2 -0
  276. package/dist/esm/api/types/OnCreate.d.mts +4 -0
  277. package/dist/esm/api/types/OnCreate.mjs +2 -0
  278. package/dist/esm/api/types/PayabliApiResponse0.d.mts +2 -2
  279. package/dist/esm/api/types/PayabliApiResponse0000.d.mts +2 -2
  280. package/dist/esm/api/types/PayabliCredentialsPascal.d.mts +3 -2
  281. package/dist/esm/api/types/QueryResponseData.d.mts +41 -10
  282. package/dist/esm/api/types/QueryResponseSettlements.d.mts +134 -0
  283. package/dist/esm/api/types/QuerySubscriptionResponse.d.mts +1 -1
  284. package/dist/esm/api/types/QueryTransactionPayorData.d.mts +1 -1
  285. package/dist/esm/api/types/ResultCodeText.d.mts +4 -0
  286. package/dist/esm/api/types/ResultCodeText.mjs +2 -0
  287. package/dist/esm/api/types/ResultCodev2.d.mts +4 -0
  288. package/dist/esm/api/types/ResultCodev2.mjs +2 -0
  289. package/dist/esm/api/types/index.d.mts +11 -2
  290. package/dist/esm/api/types/index.mjs +11 -2
  291. package/dist/esm/version.d.mts +1 -1
  292. package/dist/esm/version.mjs +1 -1
  293. package/package.json +1 -1
  294. package/reference.md +467 -2
  295. /package/dist/cjs/api/{types/Avsresponsetext.js → resources/moneyIn/client/requests/RequestPaymentAuthorizeV2.js} +0 -0
  296. /package/dist/cjs/api/{types/Cvvresponsetext.js → resources/moneyIn/client/requests/RequestPaymentV2.js} +0 -0
  297. /package/dist/esm/api/{types/Avsresponsetext.mjs → resources/moneyIn/client/requests/RequestPaymentAuthorizeV2.mjs} +0 -0
  298. /package/dist/esm/api/{types/Cvvresponsetext.mjs → resources/moneyIn/client/requests/RequestPaymentV2.mjs} +0 -0
@@ -2594,11 +2594,6 @@ class QueryClient {
2594
2594
  * @param {Payabli.ListVcardsOrgRequest} request
2595
2595
  * @param {QueryClient.RequestOptions} requestOptions - Request-specific configuration.
2596
2596
  *
2597
- * @throws {@link Payabli.BadRequestError}
2598
- * @throws {@link Payabli.UnauthorizedError}
2599
- * @throws {@link Payabli.InternalServerError}
2600
- * @throws {@link Payabli.ServiceUnavailableError}
2601
- *
2602
2597
  * @example
2603
2598
  * await client.query.listVcardsOrg(123, {
2604
2599
  * fromRecord: 251,
@@ -2646,22 +2641,11 @@ class QueryClient {
2646
2641
  return { data: _response.body, rawResponse: _response.rawResponse };
2647
2642
  }
2648
2643
  if (_response.error.reason === "status-code") {
2649
- switch (_response.error.statusCode) {
2650
- case 400:
2651
- throw new Payabli.BadRequestError(_response.error.body, _response.rawResponse);
2652
- case 401:
2653
- throw new Payabli.UnauthorizedError(_response.error.body, _response.rawResponse);
2654
- case 500:
2655
- throw new Payabli.InternalServerError(_response.error.body, _response.rawResponse);
2656
- case 503:
2657
- throw new Payabli.ServiceUnavailableError(_response.error.body, _response.rawResponse);
2658
- default:
2659
- throw new errors.PayabliError({
2660
- statusCode: _response.error.statusCode,
2661
- body: _response.error.body,
2662
- rawResponse: _response.rawResponse,
2663
- });
2664
- }
2644
+ throw new errors.PayabliError({
2645
+ statusCode: _response.error.statusCode,
2646
+ body: _response.error.body,
2647
+ rawResponse: _response.rawResponse,
2648
+ });
2665
2649
  }
2666
2650
  return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "GET", "/Query/vcards/org/{orgId}");
2667
2651
  });
@@ -9,6 +9,164 @@ export interface QueryBatchesDetailResponse {
9
9
  export declare namespace QueryBatchesDetailResponse {
10
10
  type Records = Records.Item[];
11
11
  namespace Records {
12
+ /**
13
+ * @example
14
+ * {
15
+ * Id: 25048,
16
+ * Method: "ach",
17
+ * WalletType: null,
18
+ * SettledAmount: 0.5,
19
+ * Type: "credit",
20
+ * BatchNumber: "batch-100-20-2024",
21
+ * BatchAmount: 32,
22
+ * PaymentTransId: "245-9e4072eef77e45979ea0e49f680000X",
23
+ * PaymentTransStatus: 1,
24
+ * ScheduleReference: 0,
25
+ * GatewayTransId: "TRN_XXXXX",
26
+ * OrderId: "",
27
+ * TransMethod: "ach",
28
+ * PaymentData: {
29
+ * AccountType: "Checking",
30
+ * HolderName: "Lydia Marshall",
31
+ * MaskedAccount: "1XXXXXX5678",
32
+ * paymentDetails: {
33
+ * categories: [{
34
+ * amount: 1000,
35
+ * label: "Deposit"
36
+ * }],
37
+ * currency: "USD",
38
+ * serviceFee: 0,
39
+ * splitFunding: [{}],
40
+ * totalAmount: 2
41
+ * }
42
+ * },
43
+ * NetAmount: 2,
44
+ * Operation: "Sale",
45
+ * Category: "auth",
46
+ * Source: "api",
47
+ * Status: 1,
48
+ * TransactionTime: "2024-11-19T15:58:01Z",
49
+ * Customer: {
50
+ * BillingAddress1: "100 Golden Ridge Drive",
51
+ * BillingAddress2: "STE 100",
52
+ * BillingCity: "Mendota",
53
+ * BillingCountry: "US",
54
+ * BillingEmail: "lydia@example.com",
55
+ * BillingPhone: "+12345678",
56
+ * BillingState: "VA",
57
+ * BillingZip: "20147",
58
+ * customerId: 2707,
59
+ * CustomerNumber: "901102",
60
+ * customerStatus: 1,
61
+ * FirstName: "Lydia",
62
+ * LastName: "Marshall"
63
+ * },
64
+ * SettlementDate: "2024-11-20T00:00:00Z",
65
+ * PaymentSettlementStatus: 1,
66
+ * BatchStatus: 1,
67
+ * DepositDate: "2024-11-22T00:00:00Z",
68
+ * ExpectedDepositDate: "2024-11-22T00:00:00Z",
69
+ * MaskedAccount: "1XXXXXX5678",
70
+ * CreatedAt: "2024-11-19T15:58:01Z",
71
+ * PaypointLegalname: "Gruzya Adventure Outfitters, LLC",
72
+ * ResponseData: {
73
+ * authcode: " ",
74
+ * avsresponse: " ",
75
+ * avsresponse_text: "",
76
+ * cvvresponse: " ",
77
+ * cvvresponse_text: " ",
78
+ * emv_auth_response_data: " ",
79
+ * response: "Success",
80
+ * response_code: "100",
81
+ * response_code_text: "Transaction was approved.",
82
+ * responsetext: "CAPTURED",
83
+ * resultCode: "A0000",
84
+ * resultCodeText: "Approved",
85
+ * transactionid: "TRN_xwCAjQorWAYX1nAhAoHZVfN8iYHbI0"
86
+ * },
87
+ * PaypointDbaname: "Gruzya Adventure Outfitters, LLC",
88
+ * ParentOrgName: "Pilgrim Planner",
89
+ * ParentOrgId: 123,
90
+ * PaypointEntryname: "7f1a3816XX",
91
+ * DeviceId: "",
92
+ * RetrievalId: 0,
93
+ * ChargebackId: 0,
94
+ * AchHolderType: Payabli.AchHolderType.Personal,
95
+ * AchSecCode: "PPD",
96
+ * ConnectorName: "DefaultConnector",
97
+ * EntrypageId: 0,
98
+ * FeeAmount: 0,
99
+ * OrgId: 123,
100
+ * PayorId: 2707,
101
+ * PaypointId: 123,
102
+ * PendingFeeAmount: 0,
103
+ * RefundId: 0,
104
+ * ReturnedId: 0,
105
+ * splitFundingInstructions: [],
106
+ * TotalAmount: 2,
107
+ * CfeeTransactions: [],
108
+ * invoiceData: null,
109
+ * TransactionEvents: [{
110
+ * EventTime: "2024-11-19T15:57:40Z",
111
+ * TransEvent: "Created"
112
+ * }, {
113
+ * EventData: {
114
+ * "account_id": "TRA_XXXXX",
115
+ * "account_name": "123456",
116
+ * "action": {
117
+ * "app_id": "XXXXX",
118
+ * "app_name": "PayAbli",
119
+ * "id": "ACT_XXXXX",
120
+ * "result_code": "SUCCESS",
121
+ * "time_created": "2024-11-19T20:58:01.583Z",
122
+ * "type": "AUTHORIZE"
123
+ * },
124
+ * "amount": "200",
125
+ * "batch_id": "",
126
+ * "capture_mode": "AUTO",
127
+ * "channel": "CNP",
128
+ * "country": "US",
129
+ * "currency": "USD",
130
+ * "fees": {
131
+ * "amount": "0",
132
+ * "rate": "0.00",
133
+ * "total_amount": "0"
134
+ * },
135
+ * "id": "TRN_XXXXX",
136
+ * "merchant_amount": "200",
137
+ * "merchant_id": "MER_XXXXX",
138
+ * "merchant_name": "Henriette97",
139
+ * "order": {
140
+ * "reference": ""
141
+ * },
142
+ * "payment_method": {
143
+ * "bank_transfer": {
144
+ * "account_type": "CHECKING",
145
+ * "bank": {
146
+ * "name": ""
147
+ * },
148
+ * "masked_account_number_last4": "XXXX5678"
149
+ * },
150
+ * "entry_mode": "ECOM",
151
+ * "message": "Success",
152
+ * "narrative": "Lydia Marshall",
153
+ * "result": "00"
154
+ * },
155
+ * "reference": "245-XXXXX",
156
+ * "status": "CAPTURED",
157
+ * "time_created": "2024-11-19T20:58:01.583Z",
158
+ * "type": "SALE"
159
+ * },
160
+ * EventTime: "2024-11-19T20:58:01Z",
161
+ * TransEvent: "Approved"
162
+ * }, {
163
+ * EventTime: "2024-11-20T03:05:10Z",
164
+ * TransEvent: "ClosedBatch"
165
+ * }],
166
+ * externalPaypointID: "ext-paypoint-123",
167
+ * isHold: 0
168
+ * }
169
+ */
12
170
  interface Item {
13
171
  Id: number;
14
172
  Method: string;
@@ -149,11 +149,6 @@ export declare class StatisticClient {
149
149
  * @param {Payabli.VendorBasicStatsRequest} request
150
150
  * @param {StatisticClient.RequestOptions} requestOptions - Request-specific configuration.
151
151
  *
152
- * @throws {@link Payabli.BadRequestError}
153
- * @throws {@link Payabli.UnauthorizedError}
154
- * @throws {@link Payabli.InternalServerError}
155
- * @throws {@link Payabli.ServiceUnavailableError}
156
- *
157
152
  * @example
158
153
  * await client.statistic.vendorBasicStats("ytd", "m", 1)
159
154
  */
@@ -345,11 +345,6 @@ class StatisticClient {
345
345
  * @param {Payabli.VendorBasicStatsRequest} request
346
346
  * @param {StatisticClient.RequestOptions} requestOptions - Request-specific configuration.
347
347
  *
348
- * @throws {@link Payabli.BadRequestError}
349
- * @throws {@link Payabli.UnauthorizedError}
350
- * @throws {@link Payabli.InternalServerError}
351
- * @throws {@link Payabli.ServiceUnavailableError}
352
- *
353
348
  * @example
354
349
  * await client.statistic.vendorBasicStats("ytd", "m", 1)
355
350
  */
@@ -384,22 +379,11 @@ class StatisticClient {
384
379
  };
385
380
  }
386
381
  if (_response.error.reason === "status-code") {
387
- switch (_response.error.statusCode) {
388
- case 400:
389
- throw new Payabli.BadRequestError(_response.error.body, _response.rawResponse);
390
- case 401:
391
- throw new Payabli.UnauthorizedError(_response.error.body, _response.rawResponse);
392
- case 500:
393
- throw new Payabli.InternalServerError(_response.error.body, _response.rawResponse);
394
- case 503:
395
- throw new Payabli.ServiceUnavailableError(_response.error.body, _response.rawResponse);
396
- default:
397
- throw new errors.PayabliError({
398
- statusCode: _response.error.statusCode,
399
- body: _response.error.body,
400
- rawResponse: _response.rawResponse,
401
- });
402
- }
382
+ throw new errors.PayabliError({
383
+ statusCode: _response.error.statusCode,
384
+ body: _response.error.body,
385
+ rawResponse: _response.rawResponse,
386
+ });
403
387
  }
404
388
  return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "GET", "/Statistic/vendorbasic/{mode}/{freq}/{idVendor}");
405
389
  });
@@ -145,11 +145,6 @@ export declare class SubscriptionClient {
145
145
  * @param {Payabli.RequestUpdateSchedule} request
146
146
  * @param {SubscriptionClient.RequestOptions} requestOptions - Request-specific configuration.
147
147
  *
148
- * @throws {@link Payabli.BadRequestError}
149
- * @throws {@link Payabli.UnauthorizedError}
150
- * @throws {@link Payabli.InternalServerError}
151
- * @throws {@link Payabli.ServiceUnavailableError}
152
- *
153
148
  * @example
154
149
  * await client.subscription.updateSubscription(231, {
155
150
  * setPause: true
@@ -321,11 +321,6 @@ class SubscriptionClient {
321
321
  * @param {Payabli.RequestUpdateSchedule} request
322
322
  * @param {SubscriptionClient.RequestOptions} requestOptions - Request-specific configuration.
323
323
  *
324
- * @throws {@link Payabli.BadRequestError}
325
- * @throws {@link Payabli.UnauthorizedError}
326
- * @throws {@link Payabli.InternalServerError}
327
- * @throws {@link Payabli.ServiceUnavailableError}
328
- *
329
324
  * @example
330
325
  * await client.subscription.updateSubscription(231, {
331
326
  * setPause: true
@@ -376,22 +371,11 @@ class SubscriptionClient {
376
371
  return { data: _response.body, rawResponse: _response.rawResponse };
377
372
  }
378
373
  if (_response.error.reason === "status-code") {
379
- switch (_response.error.statusCode) {
380
- case 400:
381
- throw new Payabli.BadRequestError(_response.error.body, _response.rawResponse);
382
- case 401:
383
- throw new Payabli.UnauthorizedError(_response.error.body, _response.rawResponse);
384
- case 500:
385
- throw new Payabli.InternalServerError(_response.error.body, _response.rawResponse);
386
- case 503:
387
- throw new Payabli.ServiceUnavailableError(_response.error.body, _response.rawResponse);
388
- default:
389
- throw new errors.PayabliError({
390
- statusCode: _response.error.statusCode,
391
- body: _response.error.body,
392
- rawResponse: _response.rawResponse,
393
- });
394
- }
374
+ throw new errors.PayabliError({
375
+ statusCode: _response.error.statusCode,
376
+ body: _response.error.body,
377
+ rawResponse: _response.rawResponse,
378
+ });
395
379
  }
396
380
  return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "PUT", "/Subscription/{subId}");
397
381
  });
@@ -66,11 +66,6 @@ export declare class TemplatesClient {
66
66
  * @param {Payabli.ListTemplatesRequest} request
67
67
  * @param {TemplatesClient.RequestOptions} requestOptions - Request-specific configuration.
68
68
  *
69
- * @throws {@link Payabli.BadRequestError}
70
- * @throws {@link Payabli.UnauthorizedError}
71
- * @throws {@link Payabli.InternalServerError}
72
- * @throws {@link Payabli.ServiceUnavailableError}
73
- *
74
69
  * @example
75
70
  * await client.templates.listTemplates(123, {
76
71
  * fromRecord: 251,
@@ -235,11 +235,6 @@ class TemplatesClient {
235
235
  * @param {Payabli.ListTemplatesRequest} request
236
236
  * @param {TemplatesClient.RequestOptions} requestOptions - Request-specific configuration.
237
237
  *
238
- * @throws {@link Payabli.BadRequestError}
239
- * @throws {@link Payabli.UnauthorizedError}
240
- * @throws {@link Payabli.InternalServerError}
241
- * @throws {@link Payabli.ServiceUnavailableError}
242
- *
243
238
  * @example
244
239
  * await client.templates.listTemplates(123, {
245
240
  * fromRecord: 251,
@@ -284,22 +279,11 @@ class TemplatesClient {
284
279
  return { data: _response.body, rawResponse: _response.rawResponse };
285
280
  }
286
281
  if (_response.error.reason === "status-code") {
287
- switch (_response.error.statusCode) {
288
- case 400:
289
- throw new Payabli.BadRequestError(_response.error.body, _response.rawResponse);
290
- case 401:
291
- throw new Payabli.UnauthorizedError(_response.error.body, _response.rawResponse);
292
- case 500:
293
- throw new Payabli.InternalServerError(_response.error.body, _response.rawResponse);
294
- case 503:
295
- throw new Payabli.ServiceUnavailableError(_response.error.body, _response.rawResponse);
296
- default:
297
- throw new errors.PayabliError({
298
- statusCode: _response.error.statusCode,
299
- body: _response.error.body,
300
- rawResponse: _response.rawResponse,
301
- });
302
- }
282
+ throw new errors.PayabliError({
283
+ statusCode: _response.error.statusCode,
284
+ body: _response.error.body,
285
+ rawResponse: _response.rawResponse,
286
+ });
303
287
  }
304
288
  return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "GET", "/Query/templates/{orgId}");
305
289
  });
@@ -92,6 +92,29 @@ export declare class TokenStorageClient {
92
92
  * }
93
93
  * }
94
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
+ * })
95
118
  */
96
119
  addMethod(request: Payabli.AddMethodRequest, requestOptions?: TokenStorageClient.RequestOptions): core.HttpResponsePromise<Payabli.AddMethodResponse>;
97
120
  private __addMethod;
@@ -112,6 +135,12 @@ export declare class TokenStorageClient {
112
135
  * cardExpirationFormat: 1,
113
136
  * includeTemporary: false
114
137
  * })
138
+ *
139
+ * @example
140
+ * await client.tokenStorage.getMethod("749e236c-59a3-49c7-ab47-73e06f9e94aa-199689", {
141
+ * cardExpirationFormat: 1,
142
+ * includeTemporary: false
143
+ * })
115
144
  */
116
145
  getMethod(methodId: string, request?: Payabli.GetMethodRequest, requestOptions?: TokenStorageClient.RequestOptions): core.HttpResponsePromise<Payabli.GetMethodResponse>;
117
146
  private __getMethod;
@@ -138,11 +167,6 @@ export declare class TokenStorageClient {
138
167
  * @param {Payabli.UpdateMethodRequest} request
139
168
  * @param {TokenStorageClient.RequestOptions} requestOptions - Request-specific configuration.
140
169
  *
141
- * @throws {@link Payabli.BadRequestError}
142
- * @throws {@link Payabli.UnauthorizedError}
143
- * @throws {@link Payabli.InternalServerError}
144
- * @throws {@link Payabli.ServiceUnavailableError}
145
- *
146
170
  * @example
147
171
  * await client.tokenStorage.updateMethod("32-8877drt00045632-678", {
148
172
  * body: {
@@ -180,6 +204,28 @@ export declare class TokenStorageClient {
180
204
  * }
181
205
  * }
182
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
+ * })
183
229
  */
184
230
  updateMethod(methodId: string, request: Payabli.UpdateMethodRequest, requestOptions?: TokenStorageClient.RequestOptions): core.HttpResponsePromise<Payabli.PayabliApiResponsePaymethodDelete>;
185
231
  private __updateMethod;
@@ -137,6 +137,29 @@ class TokenStorageClient {
137
137
  * }
138
138
  * }
139
139
  * })
140
+ *
141
+ * @example
142
+ * await client.tokenStorage.addMethod({
143
+ * achValidation: true,
144
+ * body: {
145
+ * customerData: {
146
+ * customerId: 4440
147
+ * },
148
+ * entryPoint: "f743aed24a",
149
+ * paymentMethod: {
150
+ * achAccount: "1111111111111",
151
+ * achAccountType: "Checking",
152
+ * achCode: "WEB",
153
+ * achHolder: "John Doe",
154
+ * achHolderType: "personal",
155
+ * achRouting: "123456780",
156
+ * method: "ach"
157
+ * },
158
+ * vendorData: {
159
+ * vendorId: 7890
160
+ * }
161
+ * }
162
+ * })
140
163
  */
141
164
  addMethod(request, requestOptions) {
142
165
  return core.HttpResponsePromise.fromPromise(this.__addMethod(request, requestOptions));
@@ -215,6 +238,12 @@ class TokenStorageClient {
215
238
  * cardExpirationFormat: 1,
216
239
  * includeTemporary: false
217
240
  * })
241
+ *
242
+ * @example
243
+ * await client.tokenStorage.getMethod("749e236c-59a3-49c7-ab47-73e06f9e94aa-199689", {
244
+ * cardExpirationFormat: 1,
245
+ * includeTemporary: false
246
+ * })
218
247
  */
219
248
  getMethod(methodId, request = {}, requestOptions) {
220
249
  return core.HttpResponsePromise.fromPromise(this.__getMethod(methodId, request, requestOptions));
@@ -334,11 +363,6 @@ class TokenStorageClient {
334
363
  * @param {Payabli.UpdateMethodRequest} request
335
364
  * @param {TokenStorageClient.RequestOptions} requestOptions - Request-specific configuration.
336
365
  *
337
- * @throws {@link Payabli.BadRequestError}
338
- * @throws {@link Payabli.UnauthorizedError}
339
- * @throws {@link Payabli.InternalServerError}
340
- * @throws {@link Payabli.ServiceUnavailableError}
341
- *
342
366
  * @example
343
367
  * await client.tokenStorage.updateMethod("32-8877drt00045632-678", {
344
368
  * body: {
@@ -376,6 +400,28 @@ class TokenStorageClient {
376
400
  * }
377
401
  * }
378
402
  * })
403
+ *
404
+ * @example
405
+ * await client.tokenStorage.updateMethod("32-8877drt00045632-678", {
406
+ * body: {
407
+ * customerData: {
408
+ * customerId: 4440
409
+ * },
410
+ * entryPoint: "f743aed24a",
411
+ * paymentMethod: {
412
+ * achAccount: "1111111111111",
413
+ * achAccountType: "Checking",
414
+ * achCode: "WEB",
415
+ * achHolder: "John Doe",
416
+ * achHolderType: "personal",
417
+ * achRouting: "123456780",
418
+ * method: "ach"
419
+ * },
420
+ * vendorData: {
421
+ * vendorId: 7890
422
+ * }
423
+ * }
424
+ * })
379
425
  */
380
426
  updateMethod(methodId, request, requestOptions) {
381
427
  return core.HttpResponsePromise.fromPromise(this.__updateMethod(methodId, request, requestOptions));
@@ -411,22 +457,11 @@ class TokenStorageClient {
411
457
  };
412
458
  }
413
459
  if (_response.error.reason === "status-code") {
414
- switch (_response.error.statusCode) {
415
- case 400:
416
- throw new Payabli.BadRequestError(_response.error.body, _response.rawResponse);
417
- case 401:
418
- throw new Payabli.UnauthorizedError(_response.error.body, _response.rawResponse);
419
- case 500:
420
- throw new Payabli.InternalServerError(_response.error.body, _response.rawResponse);
421
- case 503:
422
- throw new Payabli.ServiceUnavailableError(_response.error.body, _response.rawResponse);
423
- default:
424
- throw new errors.PayabliError({
425
- statusCode: _response.error.statusCode,
426
- body: _response.error.body,
427
- rawResponse: _response.rawResponse,
428
- });
429
- }
460
+ throw new errors.PayabliError({
461
+ statusCode: _response.error.statusCode,
462
+ body: _response.error.body,
463
+ rawResponse: _response.rawResponse,
464
+ });
430
465
  }
431
466
  return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "PUT", "/TokenStorage/{methodId}");
432
467
  });
@@ -71,6 +71,29 @@ import type * as Payabli from "../../../../index.js";
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.js";
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;