@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
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
import type * as Payabli from "../../../../index.js";
|
|
2
|
+
/**
|
|
3
|
+
* @example
|
|
4
|
+
* {
|
|
5
|
+
* body: {
|
|
6
|
+
* customerData: {
|
|
7
|
+
* customerId: 4440
|
|
8
|
+
* },
|
|
9
|
+
* entryPoint: "f743aed24a",
|
|
10
|
+
* ipaddress: "255.255.255.255",
|
|
11
|
+
* paymentDetails: {
|
|
12
|
+
* serviceFee: 0,
|
|
13
|
+
* totalAmount: 100
|
|
14
|
+
* },
|
|
15
|
+
* paymentMethod: {
|
|
16
|
+
* cardcvv: "999",
|
|
17
|
+
* cardexp: "02/27",
|
|
18
|
+
* cardHolder: "John Cassian",
|
|
19
|
+
* cardnumber: "4111111111111111",
|
|
20
|
+
* cardzip: "12345",
|
|
21
|
+
* initiator: "payor",
|
|
22
|
+
* method: "card"
|
|
23
|
+
* }
|
|
24
|
+
* }
|
|
25
|
+
* }
|
|
26
|
+
*
|
|
27
|
+
* @example
|
|
28
|
+
* {
|
|
29
|
+
* body: {
|
|
30
|
+
* customerData: {
|
|
31
|
+
* customerId: 4440
|
|
32
|
+
* },
|
|
33
|
+
* entryPoint: "f743aed24a",
|
|
34
|
+
* ipaddress: "255.255.255.255",
|
|
35
|
+
* paymentDetails: {
|
|
36
|
+
* serviceFee: 0,
|
|
37
|
+
* totalAmount: 100
|
|
38
|
+
* },
|
|
39
|
+
* paymentMethod: {
|
|
40
|
+
* initiator: "payor",
|
|
41
|
+
* method: "card",
|
|
42
|
+
* storedMethodId: "1ec55af9-7b5a-4ff0-81ed-c12d2f95e135-4440",
|
|
43
|
+
* storedMethodUsageType: "unscheduled"
|
|
44
|
+
* }
|
|
45
|
+
* }
|
|
46
|
+
* }
|
|
47
|
+
*
|
|
48
|
+
* @example
|
|
49
|
+
* {
|
|
50
|
+
* body: {
|
|
51
|
+
* customerData: {
|
|
52
|
+
* customerId: 4440
|
|
53
|
+
* },
|
|
54
|
+
* entryPoint: "f743aed24a",
|
|
55
|
+
* ipaddress: "255.255.255.255",
|
|
56
|
+
* paymentDetails: {
|
|
57
|
+
* serviceFee: 0,
|
|
58
|
+
* totalAmount: 100
|
|
59
|
+
* },
|
|
60
|
+
* paymentMethod: {
|
|
61
|
+
* achAccount: "123123123",
|
|
62
|
+
* achAccountType: "Checking",
|
|
63
|
+
* achCode: "WEB",
|
|
64
|
+
* achHolder: "John Cassian",
|
|
65
|
+
* achHolderType: "personal",
|
|
66
|
+
* achRouting: "123123123",
|
|
67
|
+
* method: "ach"
|
|
68
|
+
* }
|
|
69
|
+
* }
|
|
70
|
+
* }
|
|
71
|
+
*
|
|
72
|
+
* @example
|
|
73
|
+
* {
|
|
74
|
+
* body: {
|
|
75
|
+
* customerData: {
|
|
76
|
+
* customerId: 4440
|
|
77
|
+
* },
|
|
78
|
+
* entryPoint: "f743aed24a",
|
|
79
|
+
* ipaddress: "255.255.255.255",
|
|
80
|
+
* paymentDetails: {
|
|
81
|
+
* serviceFee: 0,
|
|
82
|
+
* totalAmount: 100
|
|
83
|
+
* },
|
|
84
|
+
* paymentMethod: {
|
|
85
|
+
* device: "6c361c7d-674c-44cc-b790-382b75d1xxx",
|
|
86
|
+
* method: "cloud",
|
|
87
|
+
* saveIfSuccess: true
|
|
88
|
+
* }
|
|
89
|
+
* }
|
|
90
|
+
* }
|
|
91
|
+
*/
|
|
92
|
+
export interface RequestPaymentV2 {
|
|
93
|
+
achValidation?: Payabli.AchValidation | undefined;
|
|
94
|
+
forceCustomerCreation?: Payabli.ForceCustomerCreation | undefined;
|
|
95
|
+
idempotencyKey?: Payabli.IdempotencyKey;
|
|
96
|
+
/** Value obtained from user when an API generated CAPTCHA is used in payment page */
|
|
97
|
+
validationCode?: string;
|
|
98
|
+
body: Payabli.TransRequestBody;
|
|
99
|
+
}
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
export type { RequestCredit } from "./RequestCredit.js";
|
|
2
2
|
export type { RequestPayment } from "./RequestPayment.js";
|
|
3
3
|
export type { RequestPaymentAuthorize } from "./RequestPaymentAuthorize.js";
|
|
4
|
+
export type { RequestPaymentAuthorizeV2 } from "./RequestPaymentAuthorizeV2.js";
|
|
5
|
+
export type { RequestPaymentV2 } from "./RequestPaymentV2.js";
|
|
4
6
|
export type { RequestPaymentValidate } from "./RequestPaymentValidate.js";
|
|
5
7
|
export type { RequestRefund } from "./RequestRefund.js";
|
|
6
8
|
export type { SendReceipt2TransRequest } from "./SendReceipt2TransRequest.js";
|
|
@@ -44,7 +44,11 @@ class CaptureError extends errors.PayabliError {
|
|
|
44
44
|
body: body,
|
|
45
45
|
rawResponse: rawResponse,
|
|
46
46
|
});
|
|
47
|
-
Object.setPrototypeOf(this,
|
|
47
|
+
Object.setPrototypeOf(this, new.target.prototype);
|
|
48
|
+
if (Error.captureStackTrace) {
|
|
49
|
+
Error.captureStackTrace(this, this.constructor);
|
|
50
|
+
}
|
|
51
|
+
this.name = this.constructor.name;
|
|
48
52
|
}
|
|
49
53
|
}
|
|
50
54
|
exports.CaptureError = CaptureError;
|
|
@@ -44,7 +44,11 @@ class InvalidTransStatusError extends errors.PayabliError {
|
|
|
44
44
|
body: body,
|
|
45
45
|
rawResponse: rawResponse,
|
|
46
46
|
});
|
|
47
|
-
Object.setPrototypeOf(this,
|
|
47
|
+
Object.setPrototypeOf(this, new.target.prototype);
|
|
48
|
+
if (Error.captureStackTrace) {
|
|
49
|
+
Error.captureStackTrace(this, this.constructor);
|
|
50
|
+
}
|
|
51
|
+
this.name = this.constructor.name;
|
|
48
52
|
}
|
|
49
53
|
}
|
|
50
54
|
exports.InvalidTransStatusError = InvalidTransStatusError;
|
|
@@ -4,8 +4,8 @@ export interface AuthResponseResponseData {
|
|
|
4
4
|
referenceId: Payabli.Referenceidtrans;
|
|
5
5
|
resultCode: Payabli.ResultCode;
|
|
6
6
|
resultText: Payabli.Resulttext;
|
|
7
|
-
avsResponseText: Payabli.
|
|
8
|
-
cvvResponseText: Payabli.
|
|
7
|
+
avsResponseText: Payabli.AvsResponseText;
|
|
8
|
+
cvvResponseText: Payabli.CvvResponseText;
|
|
9
9
|
customerId: Payabli.Customeridtrans;
|
|
10
10
|
methodReferenceId?: Payabli.MethodReferenceId;
|
|
11
11
|
}
|
|
@@ -7,8 +7,8 @@ export interface CaptureResponseData {
|
|
|
7
7
|
referenceId: Payabli.Referenceidtrans;
|
|
8
8
|
resultCode: Payabli.ResultCode;
|
|
9
9
|
resultText: Payabli.Resulttext;
|
|
10
|
-
avsResponseText: Payabli.
|
|
11
|
-
cvvResponseText: Payabli.
|
|
10
|
+
avsResponseText: Payabli.AvsResponseText | null;
|
|
11
|
+
cvvResponseText: Payabli.CvvResponseText | null;
|
|
12
12
|
customerId: Payabli.Customeridtrans | null;
|
|
13
13
|
methodReferenceId: Payabli.MethodReferenceId | null;
|
|
14
14
|
}
|
|
@@ -3,14 +3,14 @@ import type * as Payabli from "../../../index.js";
|
|
|
3
3
|
* Response data for GetPaid transactions
|
|
4
4
|
*/
|
|
5
5
|
export interface GetPaidResponseData {
|
|
6
|
+
authCode: Payabli.Authcode | null;
|
|
6
7
|
/** Details of the transaction. Present only if `includeDetails` query parameter is set to `true` in the request. */
|
|
7
8
|
transactionDetails?: Payabli.TransactionDetailRecord;
|
|
8
|
-
authCode?: Payabli.Authcode;
|
|
9
9
|
referenceId: Payabli.Referenceidtrans;
|
|
10
10
|
resultCode: Payabli.ResultCode;
|
|
11
11
|
resultText: Payabli.Resulttext;
|
|
12
|
-
avsResponseText: Payabli.
|
|
13
|
-
cvvResponseText: Payabli.
|
|
12
|
+
avsResponseText: Payabli.AvsResponseText;
|
|
13
|
+
cvvResponseText: Payabli.CvvResponseText;
|
|
14
14
|
customerId: Payabli.Customeridtrans;
|
|
15
15
|
methodReferenceId?: Payabli.MethodReferenceId;
|
|
16
16
|
}
|
|
@@ -3,10 +3,10 @@ export interface ResponseDataRefunds {
|
|
|
3
3
|
authCode: Payabli.Authcode;
|
|
4
4
|
expectedProcessingDateTime: (Payabli.ExpectedProcessingDateTime | undefined) | null;
|
|
5
5
|
/** This field isn't applicable to refund operations. */
|
|
6
|
-
avsResponseText?: Payabli.
|
|
6
|
+
avsResponseText?: Payabli.AvsResponseText;
|
|
7
7
|
customerId: Payabli.CustomerId | null;
|
|
8
8
|
/** This field isn't applicable to refund operations. */
|
|
9
|
-
cvvResponseText: Payabli.
|
|
9
|
+
cvvResponseText: Payabli.CvvResponseText | null;
|
|
10
10
|
/** This field isn't applicable to refund operations. */
|
|
11
11
|
methodReferenceId: Payabli.MethodReferenceId | null;
|
|
12
12
|
referenceId: Payabli.Referenceidtrans;
|
|
@@ -3,18 +3,22 @@ import type * as Payabli from "../../../index.js";
|
|
|
3
3
|
* Response data from payment processor
|
|
4
4
|
*/
|
|
5
5
|
export interface TransactionDetailResponseData {
|
|
6
|
+
/** Unified result code for the transaction. See [Pay In unified response codes](/developers/references/pay-in-unified-response-codes) for more information. */
|
|
7
|
+
resultCode?: string;
|
|
8
|
+
/** Description of the result code. See [Pay In unified response codes](/developers/references/pay-in-unified-response-codes) for more information. */
|
|
9
|
+
resultCodeText?: string;
|
|
6
10
|
response: string | null;
|
|
7
11
|
responsetext: Payabli.Resulttext;
|
|
8
12
|
authcode: Payabli.Authcode | null;
|
|
9
13
|
transactionid: string;
|
|
10
14
|
avsresponse: string | null;
|
|
11
|
-
avsresponse_text: Payabli.
|
|
15
|
+
avsresponse_text: Payabli.AvsResponseText | null;
|
|
12
16
|
cvvresponse: string | null;
|
|
13
|
-
cvvresponse_text: Payabli.
|
|
17
|
+
cvvresponse_text: Payabli.CvvResponseText | null;
|
|
14
18
|
orderid: Payabli.OrderId | null;
|
|
15
19
|
type: string | null;
|
|
16
20
|
response_code: string;
|
|
17
21
|
response_code_text: string;
|
|
18
22
|
customer_vault_id: string | null;
|
|
19
|
-
emv_auth_response_data:
|
|
23
|
+
emv_auth_response_data: Payabli.EmvAuthResponseData | null;
|
|
20
24
|
}
|
|
@@ -7,8 +7,8 @@ export interface ValidateResponseData {
|
|
|
7
7
|
referenceId: Payabli.Referenceidtrans;
|
|
8
8
|
resultCode: Payabli.ResultCode;
|
|
9
9
|
resultText: Payabli.Resulttext;
|
|
10
|
-
avsResponseText: Payabli.
|
|
11
|
-
cvvResponseText: Payabli.
|
|
10
|
+
avsResponseText: Payabli.AvsResponseText;
|
|
11
|
+
cvvResponseText: Payabli.CvvResponseText;
|
|
12
12
|
customerId: Payabli.Customeridtrans;
|
|
13
13
|
methodReferenceId?: Payabli.MethodReferenceId;
|
|
14
14
|
}
|
|
@@ -7,8 +7,8 @@ export interface VoidResponseData {
|
|
|
7
7
|
referenceId: Payabli.Referenceidtrans;
|
|
8
8
|
resultCode: Payabli.ResultCode;
|
|
9
9
|
resultText: Payabli.Resulttext;
|
|
10
|
-
avsResponseText?: Payabli.
|
|
11
|
-
cvvResponseText?: Payabli.
|
|
10
|
+
avsResponseText?: Payabli.AvsResponseText;
|
|
11
|
+
cvvResponseText?: Payabli.CvvResponseText;
|
|
12
12
|
customerId?: Payabli.Customeridtrans;
|
|
13
13
|
methodReferenceId?: Payabli.MethodReferenceId;
|
|
14
14
|
}
|
|
@@ -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 MoneyOutClient {
|
|
6
|
-
|
|
7
|
-
}
|
|
6
|
+
type Options = BaseClientOptions;
|
|
8
7
|
interface RequestOptions extends BaseRequestOptions {
|
|
9
8
|
}
|
|
10
9
|
}
|
|
@@ -52,8 +52,8 @@ export declare namespace AuthCapturePayoutResponse {
|
|
|
52
52
|
referenceId: Payabli.Referenceidtrans;
|
|
53
53
|
resultCode: Payabli.ResultCode;
|
|
54
54
|
resultText: Payabli.Resulttext;
|
|
55
|
-
avsResponseText: Payabli.
|
|
56
|
-
cvvResponseText: Payabli.
|
|
55
|
+
avsResponseText: Payabli.AvsResponseText | null;
|
|
56
|
+
cvvResponseText: Payabli.CvvResponseText | null;
|
|
57
57
|
customerId: Payabli.Customeridtrans;
|
|
58
58
|
methodReferenceId: Payabli.MethodReferenceId | null;
|
|
59
59
|
}
|
|
@@ -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 NotificationClient {
|
|
6
|
-
|
|
7
|
-
}
|
|
6
|
+
type Options = BaseClientOptions;
|
|
8
7
|
interface RequestOptions extends BaseRequestOptions {
|
|
9
8
|
}
|
|
10
9
|
}
|
|
@@ -38,6 +37,19 @@ export declare class NotificationClient {
|
|
|
38
37
|
* @example
|
|
39
38
|
* await client.notification.addNotification({
|
|
40
39
|
* content: {
|
|
40
|
+
* eventType: "ApprovedPayment"
|
|
41
|
+
* },
|
|
42
|
+
* frequency: "untilcancelled",
|
|
43
|
+
* method: "web",
|
|
44
|
+
* ownerId: "236",
|
|
45
|
+
* ownerType: 0,
|
|
46
|
+
* status: 1,
|
|
47
|
+
* target: "https://cfe9dc390ce2.ngrok-free.app/webhook"
|
|
48
|
+
* })
|
|
49
|
+
*
|
|
50
|
+
* @example
|
|
51
|
+
* await client.notification.addNotification({
|
|
52
|
+
* content: {
|
|
41
53
|
* eventType: "Report",
|
|
42
54
|
* fileFormat: "json",
|
|
43
55
|
* reportName: "Transaction",
|
|
@@ -119,11 +131,6 @@ export declare class NotificationClient {
|
|
|
119
131
|
* @param {number} Id - Report ID
|
|
120
132
|
* @param {NotificationClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
121
133
|
*
|
|
122
|
-
* @throws {@link Payabli.BadRequestError}
|
|
123
|
-
* @throws {@link Payabli.UnauthorizedError}
|
|
124
|
-
* @throws {@link Payabli.InternalServerError}
|
|
125
|
-
* @throws {@link Payabli.ServiceUnavailableError}
|
|
126
|
-
*
|
|
127
134
|
* @example
|
|
128
135
|
* await client.notification.getReportFile(1000000)
|
|
129
136
|
*/
|
|
@@ -82,6 +82,19 @@ class NotificationClient {
|
|
|
82
82
|
* @example
|
|
83
83
|
* await client.notification.addNotification({
|
|
84
84
|
* content: {
|
|
85
|
+
* eventType: "ApprovedPayment"
|
|
86
|
+
* },
|
|
87
|
+
* frequency: "untilcancelled",
|
|
88
|
+
* method: "web",
|
|
89
|
+
* ownerId: "236",
|
|
90
|
+
* ownerType: 0,
|
|
91
|
+
* status: 1,
|
|
92
|
+
* target: "https://cfe9dc390ce2.ngrok-free.app/webhook"
|
|
93
|
+
* })
|
|
94
|
+
*
|
|
95
|
+
* @example
|
|
96
|
+
* await client.notification.addNotification({
|
|
97
|
+
* content: {
|
|
85
98
|
* eventType: "Report",
|
|
86
99
|
* fileFormat: "json",
|
|
87
100
|
* reportName: "Transaction",
|
|
@@ -342,11 +355,6 @@ class NotificationClient {
|
|
|
342
355
|
* @param {number} Id - Report ID
|
|
343
356
|
* @param {NotificationClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
344
357
|
*
|
|
345
|
-
* @throws {@link Payabli.BadRequestError}
|
|
346
|
-
* @throws {@link Payabli.UnauthorizedError}
|
|
347
|
-
* @throws {@link Payabli.InternalServerError}
|
|
348
|
-
* @throws {@link Payabli.ServiceUnavailableError}
|
|
349
|
-
*
|
|
350
358
|
* @example
|
|
351
359
|
* await client.notification.getReportFile(1000000)
|
|
352
360
|
*/
|
|
@@ -373,22 +381,11 @@ class NotificationClient {
|
|
|
373
381
|
return { data: _response.body, rawResponse: _response.rawResponse };
|
|
374
382
|
}
|
|
375
383
|
if (_response.error.reason === "status-code") {
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
case 500:
|
|
382
|
-
throw new Payabli.InternalServerError(_response.error.body, _response.rawResponse);
|
|
383
|
-
case 503:
|
|
384
|
-
throw new Payabli.ServiceUnavailableError(_response.error.body, _response.rawResponse);
|
|
385
|
-
default:
|
|
386
|
-
throw new errors.PayabliError({
|
|
387
|
-
statusCode: _response.error.statusCode,
|
|
388
|
-
body: _response.error.body,
|
|
389
|
-
rawResponse: _response.rawResponse,
|
|
390
|
-
});
|
|
391
|
-
}
|
|
384
|
+
throw new errors.PayabliError({
|
|
385
|
+
statusCode: _response.error.statusCode,
|
|
386
|
+
body: _response.error.body,
|
|
387
|
+
rawResponse: _response.rawResponse,
|
|
388
|
+
});
|
|
392
389
|
}
|
|
393
390
|
return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "GET", "/Export/notificationReport/{Id}");
|
|
394
391
|
});
|
|
@@ -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 NotificationlogsClient {
|
|
6
|
-
|
|
7
|
-
}
|
|
6
|
+
type Options = BaseClientOptions;
|
|
8
7
|
interface RequestOptions extends BaseRequestOptions {
|
|
9
8
|
}
|
|
10
9
|
}
|
|
@@ -84,11 +83,6 @@ export declare class NotificationlogsClient {
|
|
|
84
83
|
* @param {Payabli.BulkRetryRequest} request
|
|
85
84
|
* @param {NotificationlogsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
86
85
|
*
|
|
87
|
-
* @throws {@link Payabli.BadRequestError}
|
|
88
|
-
* @throws {@link Payabli.UnauthorizedError}
|
|
89
|
-
* @throws {@link Payabli.InternalServerError}
|
|
90
|
-
* @throws {@link Payabli.ServiceUnavailableError}
|
|
91
|
-
*
|
|
92
86
|
* @example
|
|
93
87
|
* await client.notificationlogs.bulkRetryNotificationLogs(["550e8400-e29b-41d4-a716-446655440000", "550e8400-e29b-41d4-a716-446655440001", "550e8400-e29b-41d4-a716-446655440002"])
|
|
94
88
|
*/
|
|
@@ -262,11 +262,6 @@ class NotificationlogsClient {
|
|
|
262
262
|
* @param {Payabli.BulkRetryRequest} request
|
|
263
263
|
* @param {NotificationlogsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
264
264
|
*
|
|
265
|
-
* @throws {@link Payabli.BadRequestError}
|
|
266
|
-
* @throws {@link Payabli.UnauthorizedError}
|
|
267
|
-
* @throws {@link Payabli.InternalServerError}
|
|
268
|
-
* @throws {@link Payabli.ServiceUnavailableError}
|
|
269
|
-
*
|
|
270
265
|
* @example
|
|
271
266
|
* await client.notificationlogs.bulkRetryNotificationLogs(["550e8400-e29b-41d4-a716-446655440000", "550e8400-e29b-41d4-a716-446655440001", "550e8400-e29b-41d4-a716-446655440002"])
|
|
272
267
|
*/
|
|
@@ -296,22 +291,11 @@ class NotificationlogsClient {
|
|
|
296
291
|
return { data: undefined, rawResponse: _response.rawResponse };
|
|
297
292
|
}
|
|
298
293
|
if (_response.error.reason === "status-code") {
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
case 500:
|
|
305
|
-
throw new Payabli.InternalServerError(_response.error.body, _response.rawResponse);
|
|
306
|
-
case 503:
|
|
307
|
-
throw new Payabli.ServiceUnavailableError(_response.error.body, _response.rawResponse);
|
|
308
|
-
default:
|
|
309
|
-
throw new errors.PayabliError({
|
|
310
|
-
statusCode: _response.error.statusCode,
|
|
311
|
-
body: _response.error.body,
|
|
312
|
-
rawResponse: _response.rawResponse,
|
|
313
|
-
});
|
|
314
|
-
}
|
|
294
|
+
throw new errors.PayabliError({
|
|
295
|
+
statusCode: _response.error.statusCode,
|
|
296
|
+
body: _response.error.body,
|
|
297
|
+
rawResponse: _response.rawResponse,
|
|
298
|
+
});
|
|
315
299
|
}
|
|
316
300
|
return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "POST", "/v2/notificationlogs/retry");
|
|
317
301
|
});
|
|
@@ -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 OcrClient {
|
|
6
|
-
|
|
7
|
-
}
|
|
6
|
+
type Options = BaseClientOptions;
|
|
8
7
|
interface RequestOptions extends BaseRequestOptions {
|
|
9
8
|
}
|
|
10
9
|
}
|
|
@@ -35,11 +34,6 @@ export declare class OcrClient {
|
|
|
35
34
|
* @param {Payabli.FileContentImageOnly} request
|
|
36
35
|
* @param {OcrClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
37
36
|
*
|
|
38
|
-
* @throws {@link Payabli.BadRequestError}
|
|
39
|
-
* @throws {@link Payabli.UnauthorizedError}
|
|
40
|
-
* @throws {@link Payabli.InternalServerError}
|
|
41
|
-
* @throws {@link Payabli.ServiceUnavailableError}
|
|
42
|
-
*
|
|
43
37
|
* @example
|
|
44
38
|
* await client.ocr.ocrDocumentJson("typeResult", {})
|
|
45
39
|
*/
|
|
@@ -123,11 +123,6 @@ class OcrClient {
|
|
|
123
123
|
* @param {Payabli.FileContentImageOnly} request
|
|
124
124
|
* @param {OcrClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
125
125
|
*
|
|
126
|
-
* @throws {@link Payabli.BadRequestError}
|
|
127
|
-
* @throws {@link Payabli.UnauthorizedError}
|
|
128
|
-
* @throws {@link Payabli.InternalServerError}
|
|
129
|
-
* @throws {@link Payabli.ServiceUnavailableError}
|
|
130
|
-
*
|
|
131
126
|
* @example
|
|
132
127
|
* await client.ocr.ocrDocumentJson("typeResult", {})
|
|
133
128
|
*/
|
|
@@ -157,22 +152,11 @@ class OcrClient {
|
|
|
157
152
|
return { data: _response.body, rawResponse: _response.rawResponse };
|
|
158
153
|
}
|
|
159
154
|
if (_response.error.reason === "status-code") {
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
case 500:
|
|
166
|
-
throw new Payabli.InternalServerError(_response.error.body, _response.rawResponse);
|
|
167
|
-
case 503:
|
|
168
|
-
throw new Payabli.ServiceUnavailableError(_response.error.body, _response.rawResponse);
|
|
169
|
-
default:
|
|
170
|
-
throw new errors.PayabliError({
|
|
171
|
-
statusCode: _response.error.statusCode,
|
|
172
|
-
body: _response.error.body,
|
|
173
|
-
rawResponse: _response.rawResponse,
|
|
174
|
-
});
|
|
175
|
-
}
|
|
155
|
+
throw new errors.PayabliError({
|
|
156
|
+
statusCode: _response.error.statusCode,
|
|
157
|
+
body: _response.error.body,
|
|
158
|
+
rawResponse: _response.rawResponse,
|
|
159
|
+
});
|
|
176
160
|
}
|
|
177
161
|
return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "POST", "/Import/ocrDocumentJson/{typeResult}");
|
|
178
162
|
});
|
|
@@ -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 OrganizationClient {
|
|
6
|
-
|
|
7
|
-
}
|
|
6
|
+
type Options = BaseClientOptions;
|
|
8
7
|
interface RequestOptions extends BaseRequestOptions {
|
|
9
8
|
}
|
|
10
9
|
}
|
|
@@ -170,11 +169,6 @@ export declare class OrganizationClient {
|
|
|
170
169
|
* @param {number} orgId - The numeric identifier for organization, assigned by Payabli.
|
|
171
170
|
* @param {OrganizationClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
172
171
|
*
|
|
173
|
-
* @throws {@link Payabli.BadRequestError}
|
|
174
|
-
* @throws {@link Payabli.UnauthorizedError}
|
|
175
|
-
* @throws {@link Payabli.InternalServerError}
|
|
176
|
-
* @throws {@link Payabli.ServiceUnavailableError}
|
|
177
|
-
*
|
|
178
172
|
* @example
|
|
179
173
|
* await client.organization.getSettingsOrganization(123)
|
|
180
174
|
*/
|
|
@@ -478,11 +478,6 @@ class OrganizationClient {
|
|
|
478
478
|
* @param {number} orgId - The numeric identifier for organization, assigned by Payabli.
|
|
479
479
|
* @param {OrganizationClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
480
480
|
*
|
|
481
|
-
* @throws {@link Payabli.BadRequestError}
|
|
482
|
-
* @throws {@link Payabli.UnauthorizedError}
|
|
483
|
-
* @throws {@link Payabli.InternalServerError}
|
|
484
|
-
* @throws {@link Payabli.ServiceUnavailableError}
|
|
485
|
-
*
|
|
486
481
|
* @example
|
|
487
482
|
* await client.organization.getSettingsOrganization(123)
|
|
488
483
|
*/
|
|
@@ -509,22 +504,11 @@ class OrganizationClient {
|
|
|
509
504
|
return { data: _response.body, rawResponse: _response.rawResponse };
|
|
510
505
|
}
|
|
511
506
|
if (_response.error.reason === "status-code") {
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
case 500:
|
|
518
|
-
throw new Payabli.InternalServerError(_response.error.body, _response.rawResponse);
|
|
519
|
-
case 503:
|
|
520
|
-
throw new Payabli.ServiceUnavailableError(_response.error.body, _response.rawResponse);
|
|
521
|
-
default:
|
|
522
|
-
throw new errors.PayabliError({
|
|
523
|
-
statusCode: _response.error.statusCode,
|
|
524
|
-
body: _response.error.body,
|
|
525
|
-
rawResponse: _response.rawResponse,
|
|
526
|
-
});
|
|
527
|
-
}
|
|
507
|
+
throw new errors.PayabliError({
|
|
508
|
+
statusCode: _response.error.statusCode,
|
|
509
|
+
body: _response.error.body,
|
|
510
|
+
rawResponse: _response.rawResponse,
|
|
511
|
+
});
|
|
528
512
|
}
|
|
529
513
|
return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "GET", "/Organization/settings/{orgId}");
|
|
530
514
|
});
|
|
@@ -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 PaymentLinkClient {
|
|
6
|
-
|
|
7
|
-
}
|
|
6
|
+
type Options = BaseClientOptions;
|
|
8
7
|
interface RequestOptions extends BaseRequestOptions {
|
|
9
8
|
}
|
|
10
9
|
}
|
|
@@ -107,7 +106,7 @@ export declare class PaymentLinkClient {
|
|
|
107
106
|
* name: "fullName",
|
|
108
107
|
* order: 0,
|
|
109
108
|
* required: true,
|
|
110
|
-
* validation: "
|
|
109
|
+
* validation: "alpha",
|
|
111
110
|
* value: "",
|
|
112
111
|
* width: 0
|
|
113
112
|
* }],
|
|
@@ -212,7 +211,7 @@ export declare class PaymentLinkClient {
|
|
|
212
211
|
* name: "fullName",
|
|
213
212
|
* order: 0,
|
|
214
213
|
* required: true,
|
|
215
|
-
* validation: "
|
|
214
|
+
* validation: "alpha",
|
|
216
215
|
* value: "",
|
|
217
216
|
* width: 0
|
|
218
217
|
* }],
|
|
@@ -364,11 +363,6 @@ export declare class PaymentLinkClient {
|
|
|
364
363
|
* @param {Payabli.PayLinkDataOut} request
|
|
365
364
|
* @param {PaymentLinkClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
366
365
|
*
|
|
367
|
-
* @throws {@link Payabli.BadRequestError}
|
|
368
|
-
* @throws {@link Payabli.UnauthorizedError}
|
|
369
|
-
* @throws {@link Payabli.InternalServerError}
|
|
370
|
-
* @throws {@link Payabli.ServiceUnavailableError}
|
|
371
|
-
*
|
|
372
366
|
* @example
|
|
373
367
|
* await client.paymentLink.addPayLinkFromBillLotNumber("LOT-2024-001", {
|
|
374
368
|
* entryPoint: "billing",
|
|
@@ -435,7 +429,7 @@ export declare class PaymentLinkClient {
|
|
|
435
429
|
* name: "fullName",
|
|
436
430
|
* order: 0,
|
|
437
431
|
* required: true,
|
|
438
|
-
* validation: "
|
|
432
|
+
* validation: "alpha",
|
|
439
433
|
* value: "",
|
|
440
434
|
* width: 0
|
|
441
435
|
* }],
|