@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.
- package/README.md +25 -13
- package/dist/cjs/BaseClient.d.ts +7 -7
- package/dist/cjs/BaseClient.js +3 -1
- package/dist/cjs/Client.d.ts +1 -2
- package/dist/cjs/api/errors/BadRequestError.js +5 -1
- package/dist/cjs/api/errors/ConflictError.js +5 -1
- package/dist/cjs/api/errors/ForbiddenError.js +5 -1
- package/dist/cjs/api/errors/InternalServerError.js +5 -1
- package/dist/cjs/api/errors/ServiceUnavailableError.js +5 -1
- package/dist/cjs/api/errors/UnauthorizedError.js +5 -1
- package/dist/cjs/api/resources/bill/client/Client.d.ts +1 -2
- package/dist/cjs/api/resources/bill/types/BillResponseData.d.ts +2 -1
- package/dist/cjs/api/resources/boarding/client/Client.d.ts +1 -2
- package/dist/cjs/api/resources/chargeBacks/client/Client.d.ts +1 -2
- package/dist/cjs/api/resources/checkCapture/client/Client.d.ts +1 -2
- package/dist/cjs/api/resources/cloud/client/Client.d.ts +1 -2
- package/dist/cjs/api/resources/customer/client/Client.d.ts +1 -2
- package/dist/cjs/api/resources/export/client/Client.d.ts +1 -7
- package/dist/cjs/api/resources/export/client/Client.js +5 -21
- package/dist/cjs/api/resources/hostedPaymentPages/client/Client.d.ts +1 -2
- package/dist/cjs/api/resources/import/client/Client.d.ts +1 -7
- package/dist/cjs/api/resources/import/client/Client.js +5 -21
- package/dist/cjs/api/resources/index.d.ts +3 -0
- package/dist/cjs/api/resources/index.js +4 -1
- package/dist/cjs/api/resources/invoice/client/Client.d.ts +6 -5
- package/dist/cjs/api/resources/invoice/client/Client.js +5 -3
- package/dist/cjs/api/resources/invoice/client/requests/AddInvoiceRequest.d.ts +5 -3
- package/dist/cjs/api/resources/lineItem/client/Client.d.ts +1 -7
- package/dist/cjs/api/resources/lineItem/client/Client.js +5 -21
- package/dist/cjs/api/resources/moneyIn/client/Client.d.ts +248 -4
- package/dist/cjs/api/resources/moneyIn/client/Client.js +518 -2
- package/dist/cjs/api/resources/moneyIn/client/requests/RequestPaymentAuthorizeV2.d.ts +31 -0
- package/dist/cjs/api/resources/moneyIn/client/requests/RequestPaymentV2.d.ts +99 -0
- package/dist/cjs/api/resources/moneyIn/client/requests/index.d.ts +2 -0
- package/dist/cjs/api/resources/moneyIn/errors/CaptureError.js +5 -1
- package/dist/cjs/api/resources/moneyIn/errors/InvalidTransStatusError.js +5 -1
- package/dist/cjs/api/resources/moneyIn/types/AuthResponseResponseData.d.ts +2 -2
- package/dist/cjs/api/resources/moneyIn/types/CaptureResponseData.d.ts +2 -2
- package/dist/cjs/api/resources/moneyIn/types/GetPaidResponseData.d.ts +3 -3
- package/dist/cjs/api/resources/moneyIn/types/ResponseDataRefunds.d.ts +2 -2
- package/dist/cjs/api/resources/moneyIn/types/TransactionDetailResponseData.d.ts +7 -3
- package/dist/cjs/api/resources/moneyIn/types/ValidateResponseData.d.ts +2 -2
- package/dist/cjs/api/resources/moneyIn/types/VoidResponseData.d.ts +2 -2
- package/dist/cjs/api/resources/moneyOut/client/Client.d.ts +1 -2
- package/dist/cjs/api/resources/moneyOutTypes/types/AuthCapturePayoutResponse.d.ts +2 -2
- package/dist/cjs/api/resources/notification/client/Client.d.ts +14 -7
- package/dist/cjs/api/resources/notification/client/Client.js +18 -21
- package/dist/cjs/api/resources/notificationlogs/client/Client.d.ts +1 -7
- package/dist/cjs/api/resources/notificationlogs/client/Client.js +5 -21
- package/dist/cjs/api/resources/ocr/client/Client.d.ts +1 -7
- package/dist/cjs/api/resources/ocr/client/Client.js +5 -21
- package/dist/cjs/api/resources/organization/client/Client.d.ts +1 -7
- package/dist/cjs/api/resources/organization/client/Client.js +5 -21
- package/dist/cjs/api/resources/paymentLink/client/Client.d.ts +4 -10
- package/dist/cjs/api/resources/paymentLink/client/Client.js +8 -24
- package/dist/cjs/api/resources/paymentLink/client/requests/PayLinkDataBill.d.ts +1 -1
- package/dist/cjs/api/resources/paymentLink/client/requests/PayLinkDataInvoice.d.ts +1 -1
- package/dist/cjs/api/resources/paymentLink/client/requests/PayLinkDataOut.d.ts +1 -1
- package/dist/cjs/api/resources/paymentLink/types/PaymentPageRequestBody.d.ts +2 -2
- package/dist/cjs/api/resources/paymentMethodDomain/client/Client.d.ts +1 -7
- package/dist/cjs/api/resources/paymentMethodDomain/client/Client.js +5 -21
- package/dist/cjs/api/resources/paypoint/client/Client.d.ts +1 -7
- package/dist/cjs/api/resources/paypoint/client/Client.js +5 -21
- package/dist/cjs/api/resources/query/client/Client.d.ts +1 -7
- package/dist/cjs/api/resources/query/client/Client.js +5 -21
- package/dist/cjs/api/resources/queryTypes/types/QueryBatchesDetailResponse.d.ts +158 -0
- package/dist/cjs/api/resources/statistic/client/Client.d.ts +1 -7
- package/dist/cjs/api/resources/statistic/client/Client.js +5 -21
- package/dist/cjs/api/resources/subscription/client/Client.d.ts +1 -7
- package/dist/cjs/api/resources/subscription/client/Client.js +5 -21
- package/dist/cjs/api/resources/templates/client/Client.d.ts +1 -7
- package/dist/cjs/api/resources/templates/client/Client.js +5 -21
- package/dist/cjs/api/resources/tokenStorage/client/Client.d.ts +52 -7
- package/dist/cjs/api/resources/tokenStorage/client/Client.js +56 -21
- package/dist/cjs/api/resources/tokenStorage/client/requests/AddMethodRequest.d.ts +23 -0
- package/dist/cjs/api/resources/tokenStorage/client/requests/GetMethodRequest.d.ts +6 -0
- package/dist/cjs/api/resources/tokenStorage/client/requests/UpdateMethodRequest.d.ts +22 -0
- package/dist/cjs/api/resources/tokenStorage/types/GetMethodResponse.d.ts +101 -1
- package/dist/cjs/api/resources/tokenStorage/types/RequestTokenStorage.d.ts +1 -0
- package/dist/cjs/api/resources/tokenStorage/types/VendorDataRequest.d.ts +9 -0
- package/dist/cjs/api/resources/tokenStorage/types/VendorDataRequest.js +3 -0
- package/dist/cjs/api/resources/tokenStorage/types/index.d.ts +1 -0
- package/dist/cjs/api/resources/tokenStorage/types/index.js +1 -0
- package/dist/cjs/api/resources/user/client/Client.d.ts +1 -7
- package/dist/cjs/api/resources/user/client/Client.js +5 -21
- package/dist/cjs/api/resources/v2MoneyInTypes/errors/BadRequestAuthResponseErrorV2.d.ts +6 -0
- package/dist/cjs/api/resources/v2MoneyInTypes/errors/BadRequestAuthResponseErrorV2.js +54 -0
- package/dist/cjs/api/resources/v2MoneyInTypes/errors/BadRequestCaptureResponseErrorV2.d.ts +6 -0
- package/dist/cjs/api/resources/v2MoneyInTypes/errors/BadRequestCaptureResponseErrorV2.js +54 -0
- package/dist/cjs/api/resources/v2MoneyInTypes/errors/BadRequestRefundResponseErrorV2.d.ts +6 -0
- package/dist/cjs/api/resources/v2MoneyInTypes/errors/BadRequestRefundResponseErrorV2.js +54 -0
- package/dist/cjs/api/resources/v2MoneyInTypes/errors/BadRequestVoidResponseErrorV2.d.ts +6 -0
- package/dist/cjs/api/resources/v2MoneyInTypes/errors/BadRequestVoidResponseErrorV2.js +54 -0
- package/dist/cjs/api/resources/v2MoneyInTypes/errors/DeclinedAuthResponseErrorV2.d.ts +6 -0
- package/dist/cjs/api/resources/v2MoneyInTypes/errors/DeclinedAuthResponseErrorV2.js +54 -0
- package/dist/cjs/api/resources/v2MoneyInTypes/errors/DeclinedCaptureResponseErrorV2.d.ts +6 -0
- package/dist/cjs/api/resources/v2MoneyInTypes/errors/DeclinedCaptureResponseErrorV2.js +54 -0
- package/dist/cjs/api/resources/v2MoneyInTypes/errors/DeclinedRefundResponseErrorV2.d.ts +6 -0
- package/dist/cjs/api/resources/v2MoneyInTypes/errors/DeclinedRefundResponseErrorV2.js +54 -0
- package/dist/cjs/api/resources/v2MoneyInTypes/errors/DeclinedVoidResponseErrorV2.d.ts +6 -0
- package/dist/cjs/api/resources/v2MoneyInTypes/errors/DeclinedVoidResponseErrorV2.js +54 -0
- package/dist/cjs/api/resources/v2MoneyInTypes/errors/InternalServerResponseErrorV2.d.ts +6 -0
- package/dist/cjs/api/resources/v2MoneyInTypes/errors/InternalServerResponseErrorV2.js +54 -0
- package/dist/cjs/api/resources/v2MoneyInTypes/errors/index.d.ts +9 -0
- package/dist/cjs/api/resources/v2MoneyInTypes/errors/index.js +25 -0
- package/dist/cjs/api/resources/v2MoneyInTypes/index.d.ts +2 -0
- package/dist/cjs/api/resources/v2MoneyInTypes/index.js +18 -0
- package/dist/cjs/api/resources/v2MoneyInTypes/types/V2BadRequestError.d.ts +22 -0
- package/dist/cjs/api/resources/v2MoneyInTypes/types/V2BadRequestError.js +3 -0
- package/dist/cjs/api/resources/v2MoneyInTypes/types/V2BadRequestErrorDetail.d.ts +9 -0
- package/dist/cjs/api/resources/v2MoneyInTypes/types/V2BadRequestErrorDetail.js +3 -0
- package/dist/cjs/api/resources/v2MoneyInTypes/types/V2DeclinedTransactionResponseWrapper.d.ts +761 -0
- package/dist/cjs/api/resources/v2MoneyInTypes/types/V2DeclinedTransactionResponseWrapper.js +3 -0
- package/dist/cjs/api/resources/v2MoneyInTypes/types/V2InternalServerError.d.ts +21 -0
- package/dist/cjs/api/resources/v2MoneyInTypes/types/V2InternalServerError.js +3 -0
- package/dist/cjs/api/resources/v2MoneyInTypes/types/V2ResponseAction.d.ts +4 -0
- package/dist/cjs/api/resources/v2MoneyInTypes/types/V2ResponseAction.js +3 -0
- package/dist/cjs/api/resources/v2MoneyInTypes/types/V2ResponseCode.d.ts +4 -0
- package/dist/cjs/api/resources/v2MoneyInTypes/types/V2ResponseCode.js +3 -0
- package/dist/cjs/api/resources/v2MoneyInTypes/types/V2ResponseExplanation.d.ts +4 -0
- package/dist/cjs/api/resources/v2MoneyInTypes/types/V2ResponseExplanation.js +3 -0
- package/dist/cjs/api/resources/v2MoneyInTypes/types/V2ResponseReason.d.ts +4 -0
- package/dist/cjs/api/resources/v2MoneyInTypes/types/V2ResponseReason.js +3 -0
- package/dist/cjs/api/resources/v2MoneyInTypes/types/V2TransactionDetailResponseData.d.ts +65 -0
- package/dist/cjs/api/resources/v2MoneyInTypes/types/V2TransactionDetailResponseData.js +3 -0
- package/dist/cjs/api/resources/v2MoneyInTypes/types/V2TransactionDetails.d.ts +1003 -0
- package/dist/cjs/api/resources/v2MoneyInTypes/types/V2TransactionDetails.js +3 -0
- package/dist/cjs/api/resources/v2MoneyInTypes/types/V2TransactionResponseWrapper.d.ts +13 -0
- package/dist/cjs/api/resources/v2MoneyInTypes/types/V2TransactionResponseWrapper.js +3 -0
- package/dist/cjs/api/resources/v2MoneyInTypes/types/index.d.ts +11 -0
- package/dist/cjs/api/resources/v2MoneyInTypes/types/index.js +27 -0
- package/dist/cjs/api/resources/vendor/client/Client.d.ts +1 -7
- package/dist/cjs/api/resources/vendor/client/Client.js +5 -21
- package/dist/cjs/api/resources/wallet/client/Client.d.ts +1 -7
- package/dist/cjs/api/resources/wallet/client/Client.js +5 -21
- package/dist/cjs/api/types/ApplicationData.d.ts +1 -0
- package/dist/cjs/api/types/ApplicationDataManaged.d.ts +1 -0
- package/dist/cjs/api/types/ApplicationDataOdp.d.ts +1 -0
- package/dist/cjs/api/types/ApplicationDataPayIn.d.ts +1 -0
- package/dist/cjs/api/types/{Avsresponsetext.d.ts → AvsResponse.d.ts} +1 -1
- package/dist/cjs/api/types/AvsResponse.js +3 -0
- package/dist/{esm/api/types/Avsresponsetext.d.mts → cjs/api/types/AvsResponseText.d.ts} +1 -1
- package/dist/cjs/api/types/AvsResponseText.js +3 -0
- package/dist/cjs/api/types/CustomerVaultId.d.ts +1 -0
- package/dist/cjs/api/types/CustomerVaultId.js +3 -0
- package/dist/cjs/api/types/{Cvvresponsetext.d.ts → CvvResponse.d.ts} +1 -1
- package/dist/cjs/api/types/CvvResponse.js +3 -0
- package/dist/{esm/api/types/Cvvresponsetext.d.mts → cjs/api/types/CvvResponseText.d.ts} +1 -1
- package/dist/cjs/api/types/CvvResponseText.js +3 -0
- package/dist/cjs/api/types/EmvAuthResponseData.d.ts +4 -0
- package/dist/cjs/api/types/EmvAuthResponseData.js +3 -0
- package/dist/cjs/api/types/Frequency.d.ts +1 -1
- package/dist/cjs/api/types/Frequency.js +1 -1
- package/dist/cjs/api/types/FrequencyList.d.ts +1 -1
- package/dist/cjs/api/types/MaxTicket.d.ts +4 -0
- package/dist/cjs/api/types/MaxTicket.js +3 -0
- package/dist/cjs/api/types/MinTicket.d.ts +4 -0
- package/dist/cjs/api/types/MinTicket.js +3 -0
- package/dist/cjs/api/types/OnCreate.d.ts +4 -0
- package/dist/cjs/api/types/OnCreate.js +3 -0
- package/dist/cjs/api/types/PayabliApiResponse0.d.ts +2 -2
- package/dist/cjs/api/types/PayabliApiResponse0000.d.ts +2 -2
- package/dist/cjs/api/types/PayabliCredentialsPascal.d.ts +3 -2
- package/dist/cjs/api/types/PayorDataResponse.d.ts +1 -1
- package/dist/cjs/api/types/QueryResponseData.d.ts +41 -10
- package/dist/cjs/api/types/QueryResponseSettlements.d.ts +134 -0
- package/dist/cjs/api/types/QuerySubscriptionResponse.d.ts +1 -1
- package/dist/cjs/api/types/QueryTransactionPayorData.d.ts +1 -1
- package/dist/cjs/api/types/ResultCodeText.d.ts +4 -0
- package/dist/cjs/api/types/ResultCodeText.js +3 -0
- package/dist/cjs/api/types/ResultCodev2.d.ts +4 -0
- package/dist/cjs/api/types/ResultCodev2.js +3 -0
- package/dist/cjs/api/types/index.d.ts +11 -2
- package/dist/cjs/api/types/index.js +11 -2
- package/dist/cjs/auth/HeaderAuthProvider.d.ts +4 -2
- package/dist/cjs/errors/PayabliError.js +5 -1
- package/dist/cjs/errors/PayabliTimeoutError.js +5 -1
- package/dist/cjs/version.d.ts +1 -0
- package/dist/cjs/version.js +4 -0
- package/dist/esm/BaseClient.d.mts +7 -7
- package/dist/esm/BaseClient.mjs +3 -1
- package/dist/esm/Client.d.mts +1 -2
- package/dist/esm/api/errors/BadRequestError.mjs +5 -1
- package/dist/esm/api/errors/ConflictError.mjs +5 -1
- package/dist/esm/api/errors/ForbiddenError.mjs +5 -1
- package/dist/esm/api/errors/InternalServerError.mjs +5 -1
- package/dist/esm/api/errors/ServiceUnavailableError.mjs +5 -1
- package/dist/esm/api/errors/UnauthorizedError.mjs +5 -1
- package/dist/esm/api/resources/bill/client/Client.d.mts +1 -2
- package/dist/esm/api/resources/bill/types/BillResponseData.d.mts +2 -1
- package/dist/esm/api/resources/boarding/client/Client.d.mts +1 -2
- package/dist/esm/api/resources/chargeBacks/client/Client.d.mts +1 -2
- package/dist/esm/api/resources/checkCapture/client/Client.d.mts +1 -2
- package/dist/esm/api/resources/cloud/client/Client.d.mts +1 -2
- package/dist/esm/api/resources/customer/client/Client.d.mts +1 -2
- package/dist/esm/api/resources/export/client/Client.d.mts +1 -7
- package/dist/esm/api/resources/export/client/Client.mjs +5 -21
- package/dist/esm/api/resources/hostedPaymentPages/client/Client.d.mts +1 -2
- package/dist/esm/api/resources/import/client/Client.d.mts +1 -7
- package/dist/esm/api/resources/import/client/Client.mjs +5 -21
- package/dist/esm/api/resources/index.d.mts +3 -0
- package/dist/esm/api/resources/index.mjs +3 -0
- package/dist/esm/api/resources/invoice/client/Client.d.mts +6 -5
- package/dist/esm/api/resources/invoice/client/Client.mjs +5 -3
- package/dist/esm/api/resources/invoice/client/requests/AddInvoiceRequest.d.mts +5 -3
- package/dist/esm/api/resources/lineItem/client/Client.d.mts +1 -7
- package/dist/esm/api/resources/lineItem/client/Client.mjs +5 -21
- package/dist/esm/api/resources/moneyIn/client/Client.d.mts +248 -4
- package/dist/esm/api/resources/moneyIn/client/Client.mjs +518 -2
- package/dist/esm/api/resources/moneyIn/client/requests/RequestPaymentAuthorizeV2.d.mts +31 -0
- package/dist/esm/api/resources/moneyIn/client/requests/RequestPaymentV2.d.mts +99 -0
- package/dist/esm/api/resources/moneyIn/client/requests/index.d.mts +2 -0
- package/dist/esm/api/resources/moneyIn/errors/CaptureError.mjs +5 -1
- package/dist/esm/api/resources/moneyIn/errors/InvalidTransStatusError.mjs +5 -1
- package/dist/esm/api/resources/moneyIn/types/AuthResponseResponseData.d.mts +2 -2
- package/dist/esm/api/resources/moneyIn/types/CaptureResponseData.d.mts +2 -2
- package/dist/esm/api/resources/moneyIn/types/GetPaidResponseData.d.mts +3 -3
- package/dist/esm/api/resources/moneyIn/types/ResponseDataRefunds.d.mts +2 -2
- package/dist/esm/api/resources/moneyIn/types/TransactionDetailResponseData.d.mts +7 -3
- package/dist/esm/api/resources/moneyIn/types/ValidateResponseData.d.mts +2 -2
- package/dist/esm/api/resources/moneyIn/types/VoidResponseData.d.mts +2 -2
- package/dist/esm/api/resources/moneyOut/client/Client.d.mts +1 -2
- package/dist/esm/api/resources/moneyOutTypes/types/AuthCapturePayoutResponse.d.mts +2 -2
- package/dist/esm/api/resources/notification/client/Client.d.mts +14 -7
- package/dist/esm/api/resources/notification/client/Client.mjs +18 -21
- package/dist/esm/api/resources/notificationlogs/client/Client.d.mts +1 -7
- package/dist/esm/api/resources/notificationlogs/client/Client.mjs +5 -21
- package/dist/esm/api/resources/ocr/client/Client.d.mts +1 -7
- package/dist/esm/api/resources/ocr/client/Client.mjs +5 -21
- package/dist/esm/api/resources/organization/client/Client.d.mts +1 -7
- package/dist/esm/api/resources/organization/client/Client.mjs +5 -21
- package/dist/esm/api/resources/paymentLink/client/Client.d.mts +4 -10
- package/dist/esm/api/resources/paymentLink/client/Client.mjs +8 -24
- package/dist/esm/api/resources/paymentLink/client/requests/PayLinkDataBill.d.mts +1 -1
- package/dist/esm/api/resources/paymentLink/client/requests/PayLinkDataInvoice.d.mts +1 -1
- package/dist/esm/api/resources/paymentLink/client/requests/PayLinkDataOut.d.mts +1 -1
- package/dist/esm/api/resources/paymentLink/types/PaymentPageRequestBody.d.mts +2 -2
- package/dist/esm/api/resources/paymentMethodDomain/client/Client.d.mts +1 -7
- package/dist/esm/api/resources/paymentMethodDomain/client/Client.mjs +5 -21
- package/dist/esm/api/resources/paypoint/client/Client.d.mts +1 -7
- package/dist/esm/api/resources/paypoint/client/Client.mjs +5 -21
- package/dist/esm/api/resources/query/client/Client.d.mts +1 -7
- package/dist/esm/api/resources/query/client/Client.mjs +5 -21
- package/dist/esm/api/resources/queryTypes/types/QueryBatchesDetailResponse.d.mts +158 -0
- package/dist/esm/api/resources/statistic/client/Client.d.mts +1 -7
- package/dist/esm/api/resources/statistic/client/Client.mjs +5 -21
- package/dist/esm/api/resources/subscription/client/Client.d.mts +1 -7
- package/dist/esm/api/resources/subscription/client/Client.mjs +5 -21
- package/dist/esm/api/resources/templates/client/Client.d.mts +1 -7
- package/dist/esm/api/resources/templates/client/Client.mjs +5 -21
- package/dist/esm/api/resources/tokenStorage/client/Client.d.mts +52 -7
- package/dist/esm/api/resources/tokenStorage/client/Client.mjs +56 -21
- package/dist/esm/api/resources/tokenStorage/client/requests/AddMethodRequest.d.mts +23 -0
- package/dist/esm/api/resources/tokenStorage/client/requests/GetMethodRequest.d.mts +6 -0
- package/dist/esm/api/resources/tokenStorage/client/requests/UpdateMethodRequest.d.mts +22 -0
- package/dist/esm/api/resources/tokenStorage/types/GetMethodResponse.d.mts +101 -1
- package/dist/esm/api/resources/tokenStorage/types/RequestTokenStorage.d.mts +1 -0
- package/dist/esm/api/resources/tokenStorage/types/VendorDataRequest.d.mts +9 -0
- package/dist/esm/api/resources/tokenStorage/types/VendorDataRequest.mjs +2 -0
- package/dist/esm/api/resources/tokenStorage/types/index.d.mts +1 -0
- package/dist/esm/api/resources/tokenStorage/types/index.mjs +1 -0
- package/dist/esm/api/resources/user/client/Client.d.mts +1 -7
- package/dist/esm/api/resources/user/client/Client.mjs +5 -21
- package/dist/esm/api/resources/v2MoneyInTypes/errors/BadRequestAuthResponseErrorV2.d.mts +6 -0
- package/dist/esm/api/resources/v2MoneyInTypes/errors/BadRequestAuthResponseErrorV2.mjs +17 -0
- package/dist/esm/api/resources/v2MoneyInTypes/errors/BadRequestCaptureResponseErrorV2.d.mts +6 -0
- package/dist/esm/api/resources/v2MoneyInTypes/errors/BadRequestCaptureResponseErrorV2.mjs +17 -0
- package/dist/esm/api/resources/v2MoneyInTypes/errors/BadRequestRefundResponseErrorV2.d.mts +6 -0
- package/dist/esm/api/resources/v2MoneyInTypes/errors/BadRequestRefundResponseErrorV2.mjs +17 -0
- package/dist/esm/api/resources/v2MoneyInTypes/errors/BadRequestVoidResponseErrorV2.d.mts +6 -0
- package/dist/esm/api/resources/v2MoneyInTypes/errors/BadRequestVoidResponseErrorV2.mjs +17 -0
- package/dist/esm/api/resources/v2MoneyInTypes/errors/DeclinedAuthResponseErrorV2.d.mts +6 -0
- package/dist/esm/api/resources/v2MoneyInTypes/errors/DeclinedAuthResponseErrorV2.mjs +17 -0
- package/dist/esm/api/resources/v2MoneyInTypes/errors/DeclinedCaptureResponseErrorV2.d.mts +6 -0
- package/dist/esm/api/resources/v2MoneyInTypes/errors/DeclinedCaptureResponseErrorV2.mjs +17 -0
- package/dist/esm/api/resources/v2MoneyInTypes/errors/DeclinedRefundResponseErrorV2.d.mts +6 -0
- package/dist/esm/api/resources/v2MoneyInTypes/errors/DeclinedRefundResponseErrorV2.mjs +17 -0
- package/dist/esm/api/resources/v2MoneyInTypes/errors/DeclinedVoidResponseErrorV2.d.mts +6 -0
- package/dist/esm/api/resources/v2MoneyInTypes/errors/DeclinedVoidResponseErrorV2.mjs +17 -0
- package/dist/esm/api/resources/v2MoneyInTypes/errors/InternalServerResponseErrorV2.d.mts +6 -0
- package/dist/esm/api/resources/v2MoneyInTypes/errors/InternalServerResponseErrorV2.mjs +17 -0
- package/dist/esm/api/resources/v2MoneyInTypes/errors/index.d.mts +9 -0
- package/dist/esm/api/resources/v2MoneyInTypes/errors/index.mjs +9 -0
- package/dist/esm/api/resources/v2MoneyInTypes/index.d.mts +2 -0
- package/dist/esm/api/resources/v2MoneyInTypes/index.mjs +2 -0
- package/dist/esm/api/resources/v2MoneyInTypes/types/V2BadRequestError.d.mts +22 -0
- package/dist/esm/api/resources/v2MoneyInTypes/types/V2BadRequestError.mjs +2 -0
- package/dist/esm/api/resources/v2MoneyInTypes/types/V2BadRequestErrorDetail.d.mts +9 -0
- package/dist/esm/api/resources/v2MoneyInTypes/types/V2BadRequestErrorDetail.mjs +2 -0
- package/dist/esm/api/resources/v2MoneyInTypes/types/V2DeclinedTransactionResponseWrapper.d.mts +761 -0
- package/dist/esm/api/resources/v2MoneyInTypes/types/V2DeclinedTransactionResponseWrapper.mjs +2 -0
- package/dist/esm/api/resources/v2MoneyInTypes/types/V2InternalServerError.d.mts +21 -0
- package/dist/esm/api/resources/v2MoneyInTypes/types/V2InternalServerError.mjs +2 -0
- package/dist/esm/api/resources/v2MoneyInTypes/types/V2ResponseAction.d.mts +4 -0
- package/dist/esm/api/resources/v2MoneyInTypes/types/V2ResponseAction.mjs +2 -0
- package/dist/esm/api/resources/v2MoneyInTypes/types/V2ResponseCode.d.mts +4 -0
- package/dist/esm/api/resources/v2MoneyInTypes/types/V2ResponseCode.mjs +2 -0
- package/dist/esm/api/resources/v2MoneyInTypes/types/V2ResponseExplanation.d.mts +4 -0
- package/dist/esm/api/resources/v2MoneyInTypes/types/V2ResponseExplanation.mjs +2 -0
- package/dist/esm/api/resources/v2MoneyInTypes/types/V2ResponseReason.d.mts +4 -0
- package/dist/esm/api/resources/v2MoneyInTypes/types/V2ResponseReason.mjs +2 -0
- package/dist/esm/api/resources/v2MoneyInTypes/types/V2TransactionDetailResponseData.d.mts +65 -0
- package/dist/esm/api/resources/v2MoneyInTypes/types/V2TransactionDetailResponseData.mjs +2 -0
- package/dist/esm/api/resources/v2MoneyInTypes/types/V2TransactionDetails.d.mts +1003 -0
- package/dist/esm/api/resources/v2MoneyInTypes/types/V2TransactionDetails.mjs +2 -0
- package/dist/esm/api/resources/v2MoneyInTypes/types/V2TransactionResponseWrapper.d.mts +13 -0
- package/dist/esm/api/resources/v2MoneyInTypes/types/V2TransactionResponseWrapper.mjs +2 -0
- package/dist/esm/api/resources/v2MoneyInTypes/types/index.d.mts +11 -0
- package/dist/esm/api/resources/v2MoneyInTypes/types/index.mjs +11 -0
- package/dist/esm/api/resources/vendor/client/Client.d.mts +1 -7
- package/dist/esm/api/resources/vendor/client/Client.mjs +5 -21
- package/dist/esm/api/resources/wallet/client/Client.d.mts +1 -7
- package/dist/esm/api/resources/wallet/client/Client.mjs +5 -21
- package/dist/esm/api/types/ApplicationData.d.mts +1 -0
- package/dist/esm/api/types/ApplicationDataManaged.d.mts +1 -0
- package/dist/esm/api/types/ApplicationDataOdp.d.mts +1 -0
- package/dist/esm/api/types/ApplicationDataPayIn.d.mts +1 -0
- package/dist/esm/api/types/AvsResponse.d.mts +4 -0
- package/dist/esm/api/types/AvsResponse.mjs +2 -0
- package/dist/esm/api/types/AvsResponseText.d.mts +4 -0
- package/dist/esm/api/types/AvsResponseText.mjs +2 -0
- package/dist/esm/api/types/CustomerVaultId.d.mts +1 -0
- package/dist/esm/api/types/CustomerVaultId.mjs +2 -0
- package/dist/esm/api/types/CvvResponse.d.mts +4 -0
- package/dist/esm/api/types/CvvResponse.mjs +2 -0
- package/dist/esm/api/types/CvvResponseText.d.mts +4 -0
- package/dist/esm/api/types/CvvResponseText.mjs +2 -0
- package/dist/esm/api/types/EmvAuthResponseData.d.mts +4 -0
- package/dist/esm/api/types/EmvAuthResponseData.mjs +2 -0
- package/dist/esm/api/types/Frequency.d.mts +1 -1
- package/dist/esm/api/types/Frequency.mjs +1 -1
- package/dist/esm/api/types/FrequencyList.d.mts +1 -1
- package/dist/esm/api/types/MaxTicket.d.mts +4 -0
- package/dist/esm/api/types/MaxTicket.mjs +2 -0
- package/dist/esm/api/types/MinTicket.d.mts +4 -0
- package/dist/esm/api/types/MinTicket.mjs +2 -0
- package/dist/esm/api/types/OnCreate.d.mts +4 -0
- package/dist/esm/api/types/OnCreate.mjs +2 -0
- package/dist/esm/api/types/PayabliApiResponse0.d.mts +2 -2
- package/dist/esm/api/types/PayabliApiResponse0000.d.mts +2 -2
- package/dist/esm/api/types/PayabliCredentialsPascal.d.mts +3 -2
- package/dist/esm/api/types/PayorDataResponse.d.mts +1 -1
- package/dist/esm/api/types/QueryResponseData.d.mts +41 -10
- package/dist/esm/api/types/QueryResponseSettlements.d.mts +134 -0
- package/dist/esm/api/types/QuerySubscriptionResponse.d.mts +1 -1
- package/dist/esm/api/types/QueryTransactionPayorData.d.mts +1 -1
- package/dist/esm/api/types/ResultCodeText.d.mts +4 -0
- package/dist/esm/api/types/ResultCodeText.mjs +2 -0
- package/dist/esm/api/types/ResultCodev2.d.mts +4 -0
- package/dist/esm/api/types/ResultCodev2.mjs +2 -0
- package/dist/esm/api/types/index.d.mts +11 -2
- package/dist/esm/api/types/index.mjs +11 -2
- package/dist/esm/auth/HeaderAuthProvider.d.mts +4 -2
- package/dist/esm/errors/PayabliError.mjs +5 -1
- package/dist/esm/errors/PayabliTimeoutError.mjs +5 -1
- package/dist/esm/version.d.mts +1 -0
- package/dist/esm/version.mjs +1 -0
- package/package.json +7 -4
- package/reference.md +475 -8
- /package/dist/cjs/api/{types/Avsresponsetext.js → resources/moneyIn/client/requests/RequestPaymentAuthorizeV2.js} +0 -0
- /package/dist/cjs/api/{types/Cvvresponsetext.js → resources/moneyIn/client/requests/RequestPaymentV2.js} +0 -0
- /package/dist/esm/api/{types/Avsresponsetext.mjs → resources/moneyIn/client/requests/RequestPaymentAuthorizeV2.mjs} +0 -0
- /package/dist/esm/api/{types/Cvvresponsetext.mjs → resources/moneyIn/client/requests/RequestPaymentV2.mjs} +0 -0
|
@@ -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
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
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
|
});
|
|
@@ -3,8 +3,7 @@ import { type NormalizedClientOptionsWithAuth } from "../../../../BaseClient.js"
|
|
|
3
3
|
import * as core from "../../../../core/index.js";
|
|
4
4
|
import * as Payabli from "../../../index.js";
|
|
5
5
|
export declare namespace TokenStorageClient {
|
|
6
|
-
|
|
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;
|
|
@@ -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
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
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;
|
|
@@ -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;
|
|
@@ -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?:
|
|
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
|
+
}
|
|
@@ -23,3 +23,4 @@ __exportStar(require("./RequestTokenStoragePaymentMethod.js"), exports);
|
|
|
23
23
|
__exportStar(require("./Temporary.js"), exports);
|
|
24
24
|
__exportStar(require("./TokenizeAch.js"), exports);
|
|
25
25
|
__exportStar(require("./TokenizeCard.js"), exports);
|
|
26
|
+
__exportStar(require("./VendorDataRequest.js"), exports);
|
|
@@ -3,8 +3,7 @@ import { type NormalizedClientOptionsWithAuth } from "../../../../BaseClient.js"
|
|
|
3
3
|
import * as core from "../../../../core/index.js";
|
|
4
4
|
import * as Payabli from "../../../index.js";
|
|
5
5
|
export declare namespace UserClient {
|
|
6
|
-
|
|
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
|
*/
|
|
@@ -720,11 +720,6 @@ class UserClient {
|
|
|
720
720
|
* @param {Payabli.MfaValidationData} request
|
|
721
721
|
* @param {UserClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
722
722
|
*
|
|
723
|
-
* @throws {@link Payabli.BadRequestError}
|
|
724
|
-
* @throws {@link Payabli.UnauthorizedError}
|
|
725
|
-
* @throws {@link Payabli.InternalServerError}
|
|
726
|
-
* @throws {@link Payabli.ServiceUnavailableError}
|
|
727
|
-
*
|
|
728
723
|
* @example
|
|
729
724
|
* await client.user.validateMfaUser()
|
|
730
725
|
*/
|
|
@@ -754,22 +749,11 @@ class UserClient {
|
|
|
754
749
|
return { data: _response.body, rawResponse: _response.rawResponse };
|
|
755
750
|
}
|
|
756
751
|
if (_response.error.reason === "status-code") {
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
case 500:
|
|
763
|
-
throw new Payabli.InternalServerError(_response.error.body, _response.rawResponse);
|
|
764
|
-
case 503:
|
|
765
|
-
throw new Payabli.ServiceUnavailableError(_response.error.body, _response.rawResponse);
|
|
766
|
-
default:
|
|
767
|
-
throw new errors.PayabliError({
|
|
768
|
-
statusCode: _response.error.statusCode,
|
|
769
|
-
body: _response.error.body,
|
|
770
|
-
rawResponse: _response.rawResponse,
|
|
771
|
-
});
|
|
772
|
-
}
|
|
752
|
+
throw new errors.PayabliError({
|
|
753
|
+
statusCode: _response.error.statusCode,
|
|
754
|
+
body: _response.error.body,
|
|
755
|
+
rawResponse: _response.rawResponse,
|
|
756
|
+
});
|
|
773
757
|
}
|
|
774
758
|
return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "POST", "/User/mfa");
|
|
775
759
|
});
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type * as core from "../../../../core/index.js";
|
|
2
|
+
import * as errors from "../../../../errors/index.js";
|
|
3
|
+
import type * as Payabli from "../../../index.js";
|
|
4
|
+
export declare class BadRequestAuthResponseErrorV2 extends errors.PayabliError {
|
|
5
|
+
constructor(body: Payabli.V2BadRequestError, rawResponse?: core.RawResponse);
|
|
6
|
+
}
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
4
|
+
if (k2 === undefined) k2 = k;
|
|
5
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
6
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
7
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
8
|
+
}
|
|
9
|
+
Object.defineProperty(o, k2, desc);
|
|
10
|
+
}) : (function(o, m, k, k2) {
|
|
11
|
+
if (k2 === undefined) k2 = k;
|
|
12
|
+
o[k2] = m[k];
|
|
13
|
+
}));
|
|
14
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
15
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
16
|
+
}) : function(o, v) {
|
|
17
|
+
o["default"] = v;
|
|
18
|
+
});
|
|
19
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
20
|
+
var ownKeys = function(o) {
|
|
21
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
22
|
+
var ar = [];
|
|
23
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
24
|
+
return ar;
|
|
25
|
+
};
|
|
26
|
+
return ownKeys(o);
|
|
27
|
+
};
|
|
28
|
+
return function (mod) {
|
|
29
|
+
if (mod && mod.__esModule) return mod;
|
|
30
|
+
var result = {};
|
|
31
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
32
|
+
__setModuleDefault(result, mod);
|
|
33
|
+
return result;
|
|
34
|
+
};
|
|
35
|
+
})();
|
|
36
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
37
|
+
exports.BadRequestAuthResponseErrorV2 = void 0;
|
|
38
|
+
const errors = __importStar(require("../../../../errors/index.js"));
|
|
39
|
+
class BadRequestAuthResponseErrorV2 extends errors.PayabliError {
|
|
40
|
+
constructor(body, rawResponse) {
|
|
41
|
+
super({
|
|
42
|
+
message: "BadRequestAuthResponseErrorV2",
|
|
43
|
+
statusCode: 400,
|
|
44
|
+
body: body,
|
|
45
|
+
rawResponse: rawResponse,
|
|
46
|
+
});
|
|
47
|
+
Object.setPrototypeOf(this, new.target.prototype);
|
|
48
|
+
if (Error.captureStackTrace) {
|
|
49
|
+
Error.captureStackTrace(this, this.constructor);
|
|
50
|
+
}
|
|
51
|
+
this.name = this.constructor.name;
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
exports.BadRequestAuthResponseErrorV2 = BadRequestAuthResponseErrorV2;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type * as core from "../../../../core/index.js";
|
|
2
|
+
import * as errors from "../../../../errors/index.js";
|
|
3
|
+
import type * as Payabli from "../../../index.js";
|
|
4
|
+
export declare class BadRequestCaptureResponseErrorV2 extends errors.PayabliError {
|
|
5
|
+
constructor(body: Payabli.V2BadRequestError, rawResponse?: core.RawResponse);
|
|
6
|
+
}
|