@payabli/sdk-node 0.0.123 → 0.0.126
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/BaseClient.js +2 -2
- package/dist/cjs/api/resources/bill/types/BillResponseData.d.ts +2 -1
- package/dist/cjs/api/resources/export/client/Client.d.ts +0 -5
- package/dist/cjs/api/resources/export/client/Client.js +5 -21
- package/dist/cjs/api/resources/import/client/Client.d.ts +0 -5
- 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/lineItem/client/Client.d.ts +0 -5
- package/dist/cjs/api/resources/lineItem/client/Client.js +5 -21
- package/dist/cjs/api/resources/moneyIn/client/Client.d.ts +247 -2
- 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/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/moneyOutTypes/types/AuthCapturePayoutResponse.d.ts +2 -2
- package/dist/cjs/api/resources/notification/client/Client.d.ts +0 -5
- package/dist/cjs/api/resources/notification/client/Client.js +5 -21
- package/dist/cjs/api/resources/notificationlogs/client/Client.d.ts +0 -5
- package/dist/cjs/api/resources/notificationlogs/client/Client.js +5 -21
- package/dist/cjs/api/resources/ocr/client/Client.d.ts +0 -5
- package/dist/cjs/api/resources/ocr/client/Client.js +5 -21
- package/dist/cjs/api/resources/organization/client/Client.d.ts +0 -5
- package/dist/cjs/api/resources/organization/client/Client.js +5 -21
- package/dist/cjs/api/resources/paymentLink/client/Client.d.ts +0 -5
- package/dist/cjs/api/resources/paymentLink/client/Client.js +5 -21
- package/dist/cjs/api/resources/paymentMethodDomain/client/Client.d.ts +0 -5
- package/dist/cjs/api/resources/paymentMethodDomain/client/Client.js +5 -21
- package/dist/cjs/api/resources/paypoint/client/Client.d.ts +0 -5
- package/dist/cjs/api/resources/paypoint/client/Client.js +5 -21
- package/dist/cjs/api/resources/query/client/Client.d.ts +0 -5
- 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 +0 -5
- package/dist/cjs/api/resources/statistic/client/Client.js +5 -21
- package/dist/cjs/api/resources/subscription/client/Client.d.ts +0 -5
- package/dist/cjs/api/resources/subscription/client/Client.js +5 -21
- package/dist/cjs/api/resources/templates/client/Client.d.ts +0 -5
- package/dist/cjs/api/resources/templates/client/Client.js +5 -21
- package/dist/cjs/api/resources/tokenStorage/client/Client.d.ts +51 -5
- 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 +100 -0
- 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 +0 -5
- 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 +0 -5
- package/dist/cjs/api/resources/vendor/client/Client.js +5 -21
- package/dist/cjs/api/resources/wallet/client/Client.d.ts +0 -5
- 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/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/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/version.d.ts +1 -1
- package/dist/cjs/version.js +1 -1
- package/dist/esm/BaseClient.mjs +2 -2
- package/dist/esm/api/resources/bill/types/BillResponseData.d.mts +2 -1
- package/dist/esm/api/resources/export/client/Client.d.mts +0 -5
- package/dist/esm/api/resources/export/client/Client.mjs +5 -21
- package/dist/esm/api/resources/import/client/Client.d.mts +0 -5
- 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/lineItem/client/Client.d.mts +0 -5
- package/dist/esm/api/resources/lineItem/client/Client.mjs +5 -21
- package/dist/esm/api/resources/moneyIn/client/Client.d.mts +247 -2
- 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/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/moneyOutTypes/types/AuthCapturePayoutResponse.d.mts +2 -2
- package/dist/esm/api/resources/notification/client/Client.d.mts +0 -5
- package/dist/esm/api/resources/notification/client/Client.mjs +5 -21
- package/dist/esm/api/resources/notificationlogs/client/Client.d.mts +0 -5
- package/dist/esm/api/resources/notificationlogs/client/Client.mjs +5 -21
- package/dist/esm/api/resources/ocr/client/Client.d.mts +0 -5
- package/dist/esm/api/resources/ocr/client/Client.mjs +5 -21
- package/dist/esm/api/resources/organization/client/Client.d.mts +0 -5
- package/dist/esm/api/resources/organization/client/Client.mjs +5 -21
- package/dist/esm/api/resources/paymentLink/client/Client.d.mts +0 -5
- package/dist/esm/api/resources/paymentLink/client/Client.mjs +5 -21
- package/dist/esm/api/resources/paymentMethodDomain/client/Client.d.mts +0 -5
- package/dist/esm/api/resources/paymentMethodDomain/client/Client.mjs +5 -21
- package/dist/esm/api/resources/paypoint/client/Client.d.mts +0 -5
- package/dist/esm/api/resources/paypoint/client/Client.mjs +5 -21
- package/dist/esm/api/resources/query/client/Client.d.mts +0 -5
- 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 +0 -5
- package/dist/esm/api/resources/statistic/client/Client.mjs +5 -21
- package/dist/esm/api/resources/subscription/client/Client.d.mts +0 -5
- package/dist/esm/api/resources/subscription/client/Client.mjs +5 -21
- package/dist/esm/api/resources/templates/client/Client.d.mts +0 -5
- package/dist/esm/api/resources/templates/client/Client.mjs +5 -21
- package/dist/esm/api/resources/tokenStorage/client/Client.d.mts +51 -5
- 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 +100 -0
- 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 +0 -5
- 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 +0 -5
- package/dist/esm/api/resources/vendor/client/Client.mjs +5 -21
- package/dist/esm/api/resources/wallet/client/Client.d.mts +0 -5
- 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/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/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/version.d.mts +1 -1
- package/dist/esm/version.mjs +1 -1
- package/package.json +1 -1
- package/reference.md +467 -2
- /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
|
@@ -56,7 +56,8 @@ export * from "./Authcode.js";
|
|
|
56
56
|
export * from "./AutoElement.js";
|
|
57
57
|
export * from "./Avgmonthly.js";
|
|
58
58
|
export * from "./Avgticketamt.js";
|
|
59
|
-
export * from "./
|
|
59
|
+
export * from "./AvsResponse.js";
|
|
60
|
+
export * from "./AvsResponseText.js";
|
|
60
61
|
export * from "./BAddress.js";
|
|
61
62
|
export * from "./Baddress1.js";
|
|
62
63
|
export * from "./Baddress2.js";
|
|
@@ -169,7 +170,9 @@ export * from "./CustomerNumberNullable.js";
|
|
|
169
170
|
export * from "./CustomerQueryRecords.js";
|
|
170
171
|
export * from "./CustomerStatus.js";
|
|
171
172
|
export * from "./CustomerSummaryRecord.js";
|
|
172
|
-
export * from "./
|
|
173
|
+
export * from "./CustomerVaultId.js";
|
|
174
|
+
export * from "./CvvResponse.js";
|
|
175
|
+
export * from "./CvvResponseText.js";
|
|
173
176
|
export * from "./Datenullable.js";
|
|
174
177
|
export * from "./DatetimeNullable.js";
|
|
175
178
|
export * from "./Dbaname.js";
|
|
@@ -187,6 +190,7 @@ export * from "./DutyAmount.js";
|
|
|
187
190
|
export * from "./Ein.js";
|
|
188
191
|
export * from "./Element.js";
|
|
189
192
|
export * from "./Email.js";
|
|
193
|
+
export * from "./EmvAuthResponseData.js";
|
|
190
194
|
export * from "./Enabled.js";
|
|
191
195
|
export * from "./EnrollmentStatus.js";
|
|
192
196
|
export * from "./EntityId.js";
|
|
@@ -260,6 +264,7 @@ export * from "./LocationCode.js";
|
|
|
260
264
|
export * from "./Maddress.js";
|
|
261
265
|
export * from "./Maddress1.js";
|
|
262
266
|
export * from "./Maskedaccount.js";
|
|
267
|
+
export * from "./MaxTicket.js";
|
|
263
268
|
export * from "./Mcc.js";
|
|
264
269
|
export * from "./Mcity.js";
|
|
265
270
|
export * from "./Mcountry.js";
|
|
@@ -273,6 +278,7 @@ export * from "./Mfa.js";
|
|
|
273
278
|
export * from "./MfaData.js";
|
|
274
279
|
export * from "./MfaMode.js";
|
|
275
280
|
export * from "./MfaValidationCode.js";
|
|
281
|
+
export * from "./MinTicket.js";
|
|
276
282
|
export * from "./Mstate.js";
|
|
277
283
|
export * from "./Mzip.js";
|
|
278
284
|
export * from "./NameUser.js";
|
|
@@ -286,6 +292,7 @@ export * from "./NotificationReportRequest.js";
|
|
|
286
292
|
export * from "./NotificationStandardRequest.js";
|
|
287
293
|
export * from "./OdpSetup.js";
|
|
288
294
|
export * from "./OList.js";
|
|
295
|
+
export * from "./OnCreate.js";
|
|
289
296
|
export * from "./Operation.js";
|
|
290
297
|
export * from "./OptinStatus.js";
|
|
291
298
|
export * from "./Order.js";
|
|
@@ -442,6 +449,8 @@ export * from "./Responsedata.js";
|
|
|
442
449
|
export * from "./Responsedatanonobject.js";
|
|
443
450
|
export * from "./ResponseText.js";
|
|
444
451
|
export * from "./ResultCode.js";
|
|
452
|
+
export * from "./ResultCodeText.js";
|
|
453
|
+
export * from "./ResultCodev2.js";
|
|
445
454
|
export * from "./Resulttext.js";
|
|
446
455
|
export * from "./Resumable.js";
|
|
447
456
|
export * from "./RetrievalId.js";
|
|
@@ -72,7 +72,8 @@ __exportStar(require("./Authcode.js"), exports);
|
|
|
72
72
|
__exportStar(require("./AutoElement.js"), exports);
|
|
73
73
|
__exportStar(require("./Avgmonthly.js"), exports);
|
|
74
74
|
__exportStar(require("./Avgticketamt.js"), exports);
|
|
75
|
-
__exportStar(require("./
|
|
75
|
+
__exportStar(require("./AvsResponse.js"), exports);
|
|
76
|
+
__exportStar(require("./AvsResponseText.js"), exports);
|
|
76
77
|
__exportStar(require("./BAddress.js"), exports);
|
|
77
78
|
__exportStar(require("./Baddress1.js"), exports);
|
|
78
79
|
__exportStar(require("./Baddress2.js"), exports);
|
|
@@ -185,7 +186,9 @@ __exportStar(require("./CustomerNumberNullable.js"), exports);
|
|
|
185
186
|
__exportStar(require("./CustomerQueryRecords.js"), exports);
|
|
186
187
|
__exportStar(require("./CustomerStatus.js"), exports);
|
|
187
188
|
__exportStar(require("./CustomerSummaryRecord.js"), exports);
|
|
188
|
-
__exportStar(require("./
|
|
189
|
+
__exportStar(require("./CustomerVaultId.js"), exports);
|
|
190
|
+
__exportStar(require("./CvvResponse.js"), exports);
|
|
191
|
+
__exportStar(require("./CvvResponseText.js"), exports);
|
|
189
192
|
__exportStar(require("./Datenullable.js"), exports);
|
|
190
193
|
__exportStar(require("./DatetimeNullable.js"), exports);
|
|
191
194
|
__exportStar(require("./Dbaname.js"), exports);
|
|
@@ -203,6 +206,7 @@ __exportStar(require("./DutyAmount.js"), exports);
|
|
|
203
206
|
__exportStar(require("./Ein.js"), exports);
|
|
204
207
|
__exportStar(require("./Element.js"), exports);
|
|
205
208
|
__exportStar(require("./Email.js"), exports);
|
|
209
|
+
__exportStar(require("./EmvAuthResponseData.js"), exports);
|
|
206
210
|
__exportStar(require("./Enabled.js"), exports);
|
|
207
211
|
__exportStar(require("./EnrollmentStatus.js"), exports);
|
|
208
212
|
__exportStar(require("./EntityId.js"), exports);
|
|
@@ -276,6 +280,7 @@ __exportStar(require("./LocationCode.js"), exports);
|
|
|
276
280
|
__exportStar(require("./Maddress.js"), exports);
|
|
277
281
|
__exportStar(require("./Maddress1.js"), exports);
|
|
278
282
|
__exportStar(require("./Maskedaccount.js"), exports);
|
|
283
|
+
__exportStar(require("./MaxTicket.js"), exports);
|
|
279
284
|
__exportStar(require("./Mcc.js"), exports);
|
|
280
285
|
__exportStar(require("./Mcity.js"), exports);
|
|
281
286
|
__exportStar(require("./Mcountry.js"), exports);
|
|
@@ -289,6 +294,7 @@ __exportStar(require("./Mfa.js"), exports);
|
|
|
289
294
|
__exportStar(require("./MfaData.js"), exports);
|
|
290
295
|
__exportStar(require("./MfaMode.js"), exports);
|
|
291
296
|
__exportStar(require("./MfaValidationCode.js"), exports);
|
|
297
|
+
__exportStar(require("./MinTicket.js"), exports);
|
|
292
298
|
__exportStar(require("./Mstate.js"), exports);
|
|
293
299
|
__exportStar(require("./Mzip.js"), exports);
|
|
294
300
|
__exportStar(require("./NameUser.js"), exports);
|
|
@@ -302,6 +308,7 @@ __exportStar(require("./NotificationReportRequest.js"), exports);
|
|
|
302
308
|
__exportStar(require("./NotificationStandardRequest.js"), exports);
|
|
303
309
|
__exportStar(require("./OdpSetup.js"), exports);
|
|
304
310
|
__exportStar(require("./OList.js"), exports);
|
|
311
|
+
__exportStar(require("./OnCreate.js"), exports);
|
|
305
312
|
__exportStar(require("./Operation.js"), exports);
|
|
306
313
|
__exportStar(require("./OptinStatus.js"), exports);
|
|
307
314
|
__exportStar(require("./Order.js"), exports);
|
|
@@ -458,6 +465,8 @@ __exportStar(require("./Responsedata.js"), exports);
|
|
|
458
465
|
__exportStar(require("./Responsedatanonobject.js"), exports);
|
|
459
466
|
__exportStar(require("./ResponseText.js"), exports);
|
|
460
467
|
__exportStar(require("./ResultCode.js"), exports);
|
|
468
|
+
__exportStar(require("./ResultCodeText.js"), exports);
|
|
469
|
+
__exportStar(require("./ResultCodev2.js"), exports);
|
|
461
470
|
__exportStar(require("./Resulttext.js"), exports);
|
|
462
471
|
__exportStar(require("./Resumable.js"), exports);
|
|
463
472
|
__exportStar(require("./RetrievalId.js"), exports);
|
package/dist/cjs/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "0.0.
|
|
1
|
+
export declare const SDK_VERSION = "0.0.126";
|
package/dist/cjs/version.js
CHANGED
package/dist/esm/BaseClient.mjs
CHANGED
|
@@ -6,8 +6,8 @@ export function normalizeClientOptions(options) {
|
|
|
6
6
|
const headers = mergeHeaders({
|
|
7
7
|
"X-Fern-Language": "JavaScript",
|
|
8
8
|
"X-Fern-SDK-Name": "@payabli/sdk-node",
|
|
9
|
-
"X-Fern-SDK-Version": "0.0.
|
|
10
|
-
"User-Agent": "@payabli/sdk-node/0.0.
|
|
9
|
+
"X-Fern-SDK-Version": "0.0.126",
|
|
10
|
+
"User-Agent": "@payabli/sdk-node/0.0.126",
|
|
11
11
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
12
12
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
13
13
|
}, options === null || options === void 0 ? void 0 : options.headers);
|
|
@@ -13,7 +13,8 @@ export interface BillResponseData {
|
|
|
13
13
|
BillDate?: Payabli.Datenullable | undefined;
|
|
14
14
|
/** Due Date of bill. Accepted formats: YYYY-MM-DD, MM/DD/YYYY */
|
|
15
15
|
DueDate?: Payabli.Datenullable | undefined;
|
|
16
|
-
Comments
|
|
16
|
+
/** Comments associated with the bill. For managed payables, the character limit is 200. For on demand payouts, the characters limit is 250. */
|
|
17
|
+
Comments?: string;
|
|
17
18
|
/** The batch number that the bill belongs to. */
|
|
18
19
|
BatchNumber?: string;
|
|
19
20
|
/** Array of `LineItems` contained in bill. */
|
|
@@ -636,11 +636,6 @@ export declare class ExportClient {
|
|
|
636
636
|
* @param {Payabli.ExportVendorsOrgRequest} request
|
|
637
637
|
* @param {ExportClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
638
638
|
*
|
|
639
|
-
* @throws {@link Payabli.BadRequestError}
|
|
640
|
-
* @throws {@link Payabli.UnauthorizedError}
|
|
641
|
-
* @throws {@link Payabli.InternalServerError}
|
|
642
|
-
* @throws {@link Payabli.ServiceUnavailableError}
|
|
643
|
-
*
|
|
644
639
|
* @example
|
|
645
640
|
* await client.export.exportVendorsOrg("csv", 123, {
|
|
646
641
|
* columnsExport: "BatchDate:Batch_Date,PaypointName:Legal_name",
|
|
@@ -2192,11 +2192,6 @@ export class ExportClient {
|
|
|
2192
2192
|
* @param {Payabli.ExportVendorsOrgRequest} request
|
|
2193
2193
|
* @param {ExportClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
2194
2194
|
*
|
|
2195
|
-
* @throws {@link Payabli.BadRequestError}
|
|
2196
|
-
* @throws {@link Payabli.UnauthorizedError}
|
|
2197
|
-
* @throws {@link Payabli.InternalServerError}
|
|
2198
|
-
* @throws {@link Payabli.ServiceUnavailableError}
|
|
2199
|
-
*
|
|
2200
2195
|
* @example
|
|
2201
2196
|
* await client.export.exportVendorsOrg("csv", 123, {
|
|
2202
2197
|
* columnsExport: "BatchDate:Batch_Date,PaypointName:Legal_name",
|
|
@@ -2241,22 +2236,11 @@ export class ExportClient {
|
|
|
2241
2236
|
return { data: _response.body, rawResponse: _response.rawResponse };
|
|
2242
2237
|
}
|
|
2243
2238
|
if (_response.error.reason === "status-code") {
|
|
2244
|
-
|
|
2245
|
-
|
|
2246
|
-
|
|
2247
|
-
|
|
2248
|
-
|
|
2249
|
-
case 500:
|
|
2250
|
-
throw new Payabli.InternalServerError(_response.error.body, _response.rawResponse);
|
|
2251
|
-
case 503:
|
|
2252
|
-
throw new Payabli.ServiceUnavailableError(_response.error.body, _response.rawResponse);
|
|
2253
|
-
default:
|
|
2254
|
-
throw new errors.PayabliError({
|
|
2255
|
-
statusCode: _response.error.statusCode,
|
|
2256
|
-
body: _response.error.body,
|
|
2257
|
-
rawResponse: _response.rawResponse,
|
|
2258
|
-
});
|
|
2259
|
-
}
|
|
2239
|
+
throw new errors.PayabliError({
|
|
2240
|
+
statusCode: _response.error.statusCode,
|
|
2241
|
+
body: _response.error.body,
|
|
2242
|
+
rawResponse: _response.rawResponse,
|
|
2243
|
+
});
|
|
2260
2244
|
}
|
|
2261
2245
|
return handleNonStatusCodeError(_response.error, _response.rawResponse, "GET", "/Export/vendors/{format}/org/{orgId}");
|
|
2262
2246
|
});
|
|
@@ -57,11 +57,6 @@ export declare class ImportClient {
|
|
|
57
57
|
* @param {Payabli.ImportVendorRequest} request
|
|
58
58
|
* @param {ImportClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
59
59
|
*
|
|
60
|
-
* @throws {@link Payabli.BadRequestError}
|
|
61
|
-
* @throws {@link Payabli.UnauthorizedError}
|
|
62
|
-
* @throws {@link Payabli.InternalServerError}
|
|
63
|
-
* @throws {@link Payabli.ServiceUnavailableError}
|
|
64
|
-
*
|
|
65
60
|
* @example
|
|
66
61
|
* import { createReadStream } from "fs";
|
|
67
62
|
* await client.import.importVendor("8cfec329267", {
|
|
@@ -164,11 +164,6 @@ export class ImportClient {
|
|
|
164
164
|
* @param {Payabli.ImportVendorRequest} request
|
|
165
165
|
* @param {ImportClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
166
166
|
*
|
|
167
|
-
* @throws {@link Payabli.BadRequestError}
|
|
168
|
-
* @throws {@link Payabli.UnauthorizedError}
|
|
169
|
-
* @throws {@link Payabli.InternalServerError}
|
|
170
|
-
* @throws {@link Payabli.ServiceUnavailableError}
|
|
171
|
-
*
|
|
172
167
|
* @example
|
|
173
168
|
* import { createReadStream } from "fs";
|
|
174
169
|
* await client.import.importVendor("8cfec329267", {
|
|
@@ -204,22 +199,11 @@ export class ImportClient {
|
|
|
204
199
|
return { data: _response.body, rawResponse: _response.rawResponse };
|
|
205
200
|
}
|
|
206
201
|
if (_response.error.reason === "status-code") {
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
case 500:
|
|
213
|
-
throw new Payabli.InternalServerError(_response.error.body, _response.rawResponse);
|
|
214
|
-
case 503:
|
|
215
|
-
throw new Payabli.ServiceUnavailableError(_response.error.body, _response.rawResponse);
|
|
216
|
-
default:
|
|
217
|
-
throw new errors.PayabliError({
|
|
218
|
-
statusCode: _response.error.statusCode,
|
|
219
|
-
body: _response.error.body,
|
|
220
|
-
rawResponse: _response.rawResponse,
|
|
221
|
-
});
|
|
222
|
-
}
|
|
202
|
+
throw new errors.PayabliError({
|
|
203
|
+
statusCode: _response.error.statusCode,
|
|
204
|
+
body: _response.error.body,
|
|
205
|
+
rawResponse: _response.rawResponse,
|
|
206
|
+
});
|
|
223
207
|
}
|
|
224
208
|
return handleNonStatusCodeError(_response.error, _response.rawResponse, "POST", "/Import/vendorsForm/{entry}");
|
|
225
209
|
});
|
|
@@ -73,6 +73,9 @@ export * from "./tokenStorage/types/index.mjs";
|
|
|
73
73
|
export * from "./user/client/requests/index.mjs";
|
|
74
74
|
export * as user from "./user/index.mjs";
|
|
75
75
|
export * from "./user/types/index.mjs";
|
|
76
|
+
export * from "./v2MoneyInTypes/errors/index.mjs";
|
|
77
|
+
export * as v2MoneyInTypes from "./v2MoneyInTypes/index.mjs";
|
|
78
|
+
export * from "./v2MoneyInTypes/types/index.mjs";
|
|
76
79
|
export * as vendor from "./vendor/index.mjs";
|
|
77
80
|
export * from "./wallet/client/requests/index.mjs";
|
|
78
81
|
export * as wallet from "./wallet/index.mjs";
|
|
@@ -73,6 +73,9 @@ export * from "./tokenStorage/types/index.mjs";
|
|
|
73
73
|
export * from "./user/client/requests/index.mjs";
|
|
74
74
|
export * as user from "./user/index.mjs";
|
|
75
75
|
export * from "./user/types/index.mjs";
|
|
76
|
+
export * from "./v2MoneyInTypes/errors/index.mjs";
|
|
77
|
+
export * as v2MoneyInTypes from "./v2MoneyInTypes/index.mjs";
|
|
78
|
+
export * from "./v2MoneyInTypes/types/index.mjs";
|
|
76
79
|
export * as vendor from "./vendor/index.mjs";
|
|
77
80
|
export * from "./wallet/client/requests/index.mjs";
|
|
78
81
|
export * as wallet from "./wallet/index.mjs";
|
|
@@ -98,11 +98,6 @@ export declare class LineItemClient {
|
|
|
98
98
|
* @param {Payabli.LineItem} request
|
|
99
99
|
* @param {LineItemClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
100
100
|
*
|
|
101
|
-
* @throws {@link Payabli.BadRequestError}
|
|
102
|
-
* @throws {@link Payabli.UnauthorizedError}
|
|
103
|
-
* @throws {@link Payabli.InternalServerError}
|
|
104
|
-
* @throws {@link Payabli.ServiceUnavailableError}
|
|
105
|
-
*
|
|
106
101
|
* @example
|
|
107
102
|
* await client.lineItem.updateItem(700, {
|
|
108
103
|
* itemCost: 12.45,
|
|
@@ -290,11 +290,6 @@ export class LineItemClient {
|
|
|
290
290
|
* @param {Payabli.LineItem} request
|
|
291
291
|
* @param {LineItemClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
292
292
|
*
|
|
293
|
-
* @throws {@link Payabli.BadRequestError}
|
|
294
|
-
* @throws {@link Payabli.UnauthorizedError}
|
|
295
|
-
* @throws {@link Payabli.InternalServerError}
|
|
296
|
-
* @throws {@link Payabli.ServiceUnavailableError}
|
|
297
|
-
*
|
|
298
293
|
* @example
|
|
299
294
|
* await client.lineItem.updateItem(700, {
|
|
300
295
|
* itemCost: 12.45,
|
|
@@ -327,22 +322,11 @@ export class LineItemClient {
|
|
|
327
322
|
return { data: _response.body, rawResponse: _response.rawResponse };
|
|
328
323
|
}
|
|
329
324
|
if (_response.error.reason === "status-code") {
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
case 500:
|
|
336
|
-
throw new Payabli.InternalServerError(_response.error.body, _response.rawResponse);
|
|
337
|
-
case 503:
|
|
338
|
-
throw new Payabli.ServiceUnavailableError(_response.error.body, _response.rawResponse);
|
|
339
|
-
default:
|
|
340
|
-
throw new errors.PayabliError({
|
|
341
|
-
statusCode: _response.error.statusCode,
|
|
342
|
-
body: _response.error.body,
|
|
343
|
-
rawResponse: _response.rawResponse,
|
|
344
|
-
});
|
|
345
|
-
}
|
|
325
|
+
throw new errors.PayabliError({
|
|
326
|
+
statusCode: _response.error.statusCode,
|
|
327
|
+
body: _response.error.body,
|
|
328
|
+
rawResponse: _response.rawResponse,
|
|
329
|
+
});
|
|
346
330
|
}
|
|
347
331
|
return handleNonStatusCodeError(_response.error, _response.rawResponse, "PUT", "/LineItem/{lineItemId}");
|
|
348
332
|
});
|
|
@@ -12,8 +12,10 @@ export declare class MoneyInClient {
|
|
|
12
12
|
constructor(options?: MoneyInClient.Options);
|
|
13
13
|
/**
|
|
14
14
|
* Authorize a card transaction. This returns an authorization code and reserves funds for the merchant. Authorized transactions aren't flagged for settlement until [captured](/api-reference/moneyin/capture-an-authorized-transaction).
|
|
15
|
-
*
|
|
16
|
-
*
|
|
15
|
+
* Only card transactions can be authorized. This endpoint can't be used for ACH transactions.
|
|
16
|
+
* <Tip>
|
|
17
|
+
* Consider migrating to the [v2 Authorize endpoint](/developers/api-reference/moneyinV2/authorize-a-transaction) to take advantage of unified response codes and improved response consistency.
|
|
18
|
+
* </Tip>
|
|
17
19
|
*
|
|
18
20
|
* @param {Payabli.RequestPaymentAuthorize} request
|
|
19
21
|
* @param {MoneyInClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -76,6 +78,10 @@ export declare class MoneyInClient {
|
|
|
76
78
|
*
|
|
77
79
|
* You can use this endpoint to capture both full and partial amounts of the original authorized transaction. See [Capture an authorized transaction](/developers/developer-guides/pay-in-auth-and-capture) for more information about this endpoint.
|
|
78
80
|
*
|
|
81
|
+
* <Tip>
|
|
82
|
+
* Consider migrating to the [v2 Capture endpoint](/developers/api-reference/moneyinV2/capture-an-authorized-transaction) to take advantage of unified response codes and improved response consistency.
|
|
83
|
+
* </Tip>
|
|
84
|
+
*
|
|
79
85
|
* @param {string} transId - ReferenceId for the transaction (PaymentId).
|
|
80
86
|
* @param {Payabli.CaptureRequest} request
|
|
81
87
|
* @param {MoneyInClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -191,6 +197,10 @@ export declare class MoneyInClient {
|
|
|
191
197
|
/**
|
|
192
198
|
* Make a single transaction. This method authorizes and captures a payment in one step.
|
|
193
199
|
*
|
|
200
|
+
* <Tip>
|
|
201
|
+
* Consider migrating to the [v2 Make a transaction endpoint](/developers/api-reference/moneyinV2/make-a-transaction) to take advantage of unified response codes and improved response consistency.
|
|
202
|
+
* </Tip>
|
|
203
|
+
*
|
|
194
204
|
* @param {Payabli.RequestPayment} request
|
|
195
205
|
* @param {MoneyInClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
196
206
|
*
|
|
@@ -380,6 +390,10 @@ export declare class MoneyInClient {
|
|
|
380
390
|
/**
|
|
381
391
|
* Refund a transaction that has settled and send money back to the account holder. If a transaction hasn't been settled, void it instead.
|
|
382
392
|
*
|
|
393
|
+
* <Tip>
|
|
394
|
+
* Consider migrating to the [v2 Refund endpoint](/developers/api-reference/moneyinV2/refund-a-settled-transaction) to take advantage of unified response codes and improved response consistency.
|
|
395
|
+
* </Tip>
|
|
396
|
+
*
|
|
383
397
|
* @param {string} transId - ReferenceId for the transaction (PaymentId).
|
|
384
398
|
* @param {number} amount -
|
|
385
399
|
* Amount to refund from original transaction, minus any service fees charged on the original transaction.
|
|
@@ -522,6 +536,10 @@ export declare class MoneyInClient {
|
|
|
522
536
|
/**
|
|
523
537
|
* Cancel a transaction that hasn't been settled yet. Voiding non-captured authorizations prevents future captures. If a transaction has been settled, refund it instead.
|
|
524
538
|
*
|
|
539
|
+
* <Tip>
|
|
540
|
+
* Consider migrating to the [v2 Void endpoint](/developers/api-reference/moneyinV2/void-a-transaction) to take advantage of unified response codes and improved response consistency.
|
|
541
|
+
* </Tip>
|
|
542
|
+
*
|
|
525
543
|
* @param {string} transId - ReferenceId for the transaction (PaymentId).
|
|
526
544
|
* @param {MoneyInClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
527
545
|
*
|
|
@@ -535,4 +553,231 @@ export declare class MoneyInClient {
|
|
|
535
553
|
*/
|
|
536
554
|
void(transId: string, requestOptions?: MoneyInClient.RequestOptions): core.HttpResponsePromise<Payabli.VoidResponse>;
|
|
537
555
|
private __void;
|
|
556
|
+
/**
|
|
557
|
+
* Make a single transaction. This method authorizes and captures a payment in one step. This is the v2 version of the `api/MoneyIn/getpaid` endpoint, and returns the unified response format. See [Pay In unified response codes reference](/developers/references/pay-in-unified-response-codes) for more information.
|
|
558
|
+
*
|
|
559
|
+
* @param {Payabli.RequestPaymentV2} request
|
|
560
|
+
* @param {MoneyInClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
561
|
+
*
|
|
562
|
+
* @throws {@link Payabli.BadRequestAuthResponseErrorV2}
|
|
563
|
+
* @throws {@link Payabli.UnauthorizedError}
|
|
564
|
+
* @throws {@link Payabli.DeclinedAuthResponseErrorV2}
|
|
565
|
+
* @throws {@link Payabli.InternalServerResponseErrorV2}
|
|
566
|
+
*
|
|
567
|
+
* @example
|
|
568
|
+
* await client.moneyIn.getpaidv2({
|
|
569
|
+
* body: {
|
|
570
|
+
* customerData: {
|
|
571
|
+
* customerId: 4440
|
|
572
|
+
* },
|
|
573
|
+
* entryPoint: "f743aed24a",
|
|
574
|
+
* ipaddress: "255.255.255.255",
|
|
575
|
+
* paymentDetails: {
|
|
576
|
+
* serviceFee: 0,
|
|
577
|
+
* totalAmount: 100
|
|
578
|
+
* },
|
|
579
|
+
* paymentMethod: {
|
|
580
|
+
* cardcvv: "999",
|
|
581
|
+
* cardexp: "02/27",
|
|
582
|
+
* cardHolder: "John Cassian",
|
|
583
|
+
* cardnumber: "4111111111111111",
|
|
584
|
+
* cardzip: "12345",
|
|
585
|
+
* initiator: "payor",
|
|
586
|
+
* method: "card"
|
|
587
|
+
* }
|
|
588
|
+
* }
|
|
589
|
+
* })
|
|
590
|
+
*
|
|
591
|
+
* @example
|
|
592
|
+
* await client.moneyIn.getpaidv2({
|
|
593
|
+
* body: {
|
|
594
|
+
* customerData: {
|
|
595
|
+
* customerId: 4440
|
|
596
|
+
* },
|
|
597
|
+
* entryPoint: "f743aed24a",
|
|
598
|
+
* ipaddress: "255.255.255.255",
|
|
599
|
+
* paymentDetails: {
|
|
600
|
+
* serviceFee: 0,
|
|
601
|
+
* totalAmount: 100
|
|
602
|
+
* },
|
|
603
|
+
* paymentMethod: {
|
|
604
|
+
* initiator: "payor",
|
|
605
|
+
* method: "card",
|
|
606
|
+
* storedMethodId: "1ec55af9-7b5a-4ff0-81ed-c12d2f95e135-4440",
|
|
607
|
+
* storedMethodUsageType: "unscheduled"
|
|
608
|
+
* }
|
|
609
|
+
* }
|
|
610
|
+
* })
|
|
611
|
+
*
|
|
612
|
+
* @example
|
|
613
|
+
* await client.moneyIn.getpaidv2({
|
|
614
|
+
* body: {
|
|
615
|
+
* customerData: {
|
|
616
|
+
* customerId: 4440
|
|
617
|
+
* },
|
|
618
|
+
* entryPoint: "f743aed24a",
|
|
619
|
+
* ipaddress: "255.255.255.255",
|
|
620
|
+
* paymentDetails: {
|
|
621
|
+
* serviceFee: 0,
|
|
622
|
+
* totalAmount: 100
|
|
623
|
+
* },
|
|
624
|
+
* paymentMethod: {
|
|
625
|
+
* achAccount: "123123123",
|
|
626
|
+
* achAccountType: "Checking",
|
|
627
|
+
* achCode: "WEB",
|
|
628
|
+
* achHolder: "John Cassian",
|
|
629
|
+
* achHolderType: "personal",
|
|
630
|
+
* achRouting: "123123123",
|
|
631
|
+
* method: "ach"
|
|
632
|
+
* }
|
|
633
|
+
* }
|
|
634
|
+
* })
|
|
635
|
+
*
|
|
636
|
+
* @example
|
|
637
|
+
* await client.moneyIn.getpaidv2({
|
|
638
|
+
* body: {
|
|
639
|
+
* customerData: {
|
|
640
|
+
* customerId: 4440
|
|
641
|
+
* },
|
|
642
|
+
* entryPoint: "f743aed24a",
|
|
643
|
+
* ipaddress: "255.255.255.255",
|
|
644
|
+
* paymentDetails: {
|
|
645
|
+
* serviceFee: 0,
|
|
646
|
+
* totalAmount: 100
|
|
647
|
+
* },
|
|
648
|
+
* paymentMethod: {
|
|
649
|
+
* device: "6c361c7d-674c-44cc-b790-382b75d1xxx",
|
|
650
|
+
* method: "cloud",
|
|
651
|
+
* saveIfSuccess: true
|
|
652
|
+
* }
|
|
653
|
+
* }
|
|
654
|
+
* })
|
|
655
|
+
*/
|
|
656
|
+
getpaidv2(request: Payabli.RequestPaymentV2, requestOptions?: MoneyInClient.RequestOptions): core.HttpResponsePromise<Payabli.V2TransactionResponseWrapper>;
|
|
657
|
+
private __getpaidv2;
|
|
658
|
+
/**
|
|
659
|
+
* Authorize a card transaction. This returns an authorization code and reserves funds for the merchant. Authorized transactions aren't flagged for settlement until captured. This is the v2 version of the `api/MoneyIn/authorize` endpoint, and returns the unified response format. See [Pay In unified response codes reference](/developers/references/pay-in-unified-response-codes) for more information.
|
|
660
|
+
*
|
|
661
|
+
* **Note**: Only card transactions can be authorized. This endpoint can't be used for ACH transactions.
|
|
662
|
+
*
|
|
663
|
+
* @param {Payabli.RequestPaymentAuthorizeV2} request
|
|
664
|
+
* @param {MoneyInClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
665
|
+
*
|
|
666
|
+
* @throws {@link Payabli.BadRequestAuthResponseErrorV2}
|
|
667
|
+
* @throws {@link Payabli.UnauthorizedError}
|
|
668
|
+
* @throws {@link Payabli.DeclinedAuthResponseErrorV2}
|
|
669
|
+
* @throws {@link Payabli.InternalServerResponseErrorV2}
|
|
670
|
+
*
|
|
671
|
+
* @example
|
|
672
|
+
* await client.moneyIn.authorizev2({
|
|
673
|
+
* body: {
|
|
674
|
+
* customerData: {
|
|
675
|
+
* customerId: 4440
|
|
676
|
+
* },
|
|
677
|
+
* entryPoint: "f743aed24a",
|
|
678
|
+
* ipaddress: "255.255.255.255",
|
|
679
|
+
* paymentDetails: {
|
|
680
|
+
* serviceFee: 0,
|
|
681
|
+
* totalAmount: 100
|
|
682
|
+
* },
|
|
683
|
+
* paymentMethod: {
|
|
684
|
+
* cardcvv: "999",
|
|
685
|
+
* cardexp: "02/27",
|
|
686
|
+
* cardHolder: "John Cassian",
|
|
687
|
+
* cardnumber: "4111111111111111",
|
|
688
|
+
* cardzip: "12345",
|
|
689
|
+
* initiator: "payor",
|
|
690
|
+
* method: "card"
|
|
691
|
+
* }
|
|
692
|
+
* }
|
|
693
|
+
* })
|
|
694
|
+
*/
|
|
695
|
+
authorizev2(request: Payabli.RequestPaymentAuthorizeV2, requestOptions?: MoneyInClient.RequestOptions): core.HttpResponsePromise<Payabli.V2TransactionResponseWrapper>;
|
|
696
|
+
private __authorizev2;
|
|
697
|
+
/**
|
|
698
|
+
* Capture an authorized transaction to complete the transaction and move funds from the customer to merchant account. This is the v2 version of the `api/MoneyIn/capture/{transId}` endpoint, and returns the unified response format. See [Pay In unified response codes reference](/developers/references/pay-in-unified-response-codes) for more information.
|
|
699
|
+
*
|
|
700
|
+
* @param {string} transId - ReferenceId for the transaction (PaymentId).
|
|
701
|
+
* @param {Payabli.CaptureRequest} request
|
|
702
|
+
* @param {MoneyInClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
703
|
+
*
|
|
704
|
+
* @throws {@link Payabli.BadRequestCaptureResponseErrorV2}
|
|
705
|
+
* @throws {@link Payabli.UnauthorizedError}
|
|
706
|
+
* @throws {@link Payabli.DeclinedCaptureResponseErrorV2}
|
|
707
|
+
* @throws {@link Payabli.InternalServerResponseErrorV2}
|
|
708
|
+
*
|
|
709
|
+
* @example
|
|
710
|
+
* await client.moneyIn.capturev2("10-7d9cd67d-2d5d-4cd7-a1b7-72b8b201ec13", {
|
|
711
|
+
* paymentDetails: {
|
|
712
|
+
* totalAmount: 105,
|
|
713
|
+
* serviceFee: 5
|
|
714
|
+
* }
|
|
715
|
+
* })
|
|
716
|
+
*
|
|
717
|
+
* @example
|
|
718
|
+
* await client.moneyIn.capturev2("10-7d9cd67d-2d5d-4cd7-a1b7-72b8b201ec13", {
|
|
719
|
+
* paymentDetails: {
|
|
720
|
+
* totalAmount: 89,
|
|
721
|
+
* serviceFee: 4
|
|
722
|
+
* }
|
|
723
|
+
* })
|
|
724
|
+
*/
|
|
725
|
+
capturev2(transId: string, request: Payabli.CaptureRequest, requestOptions?: MoneyInClient.RequestOptions): core.HttpResponsePromise<Payabli.V2TransactionResponseWrapper>;
|
|
726
|
+
private __capturev2;
|
|
727
|
+
/**
|
|
728
|
+
* Give a full refund for a transaction that has settled and send money back to the account holder. To perform a partial refund, see [Partially refund a transaction](developers/api-reference/moneyinV2/partial-refund-a-settled-transaction).
|
|
729
|
+
*
|
|
730
|
+
* This is the v2 version of the refund endpoint, and returns the unified response format. See [Pay In unified response codes reference](/developers/references/pay-in-unified-response-codes) for more information.
|
|
731
|
+
*
|
|
732
|
+
* @param {string} transId - ReferenceId for the transaction (PaymentId).
|
|
733
|
+
* @param {MoneyInClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
734
|
+
*
|
|
735
|
+
* @throws {@link Payabli.BadRequestRefundResponseErrorV2}
|
|
736
|
+
* @throws {@link Payabli.UnauthorizedError}
|
|
737
|
+
* @throws {@link Payabli.DeclinedRefundResponseErrorV2}
|
|
738
|
+
* @throws {@link Payabli.InternalServerResponseErrorV2}
|
|
739
|
+
*
|
|
740
|
+
* @example
|
|
741
|
+
* await client.moneyIn.refundv2("10-3ffa27df-b171-44e0-b251-e95fbfc7a723")
|
|
742
|
+
*/
|
|
743
|
+
refundv2(transId: string, requestOptions?: MoneyInClient.RequestOptions): core.HttpResponsePromise<Payabli.V2TransactionResponseWrapper>;
|
|
744
|
+
private __refundv2;
|
|
745
|
+
/**
|
|
746
|
+
* Refund a transaction that has settled and send money back to the account holder. If `amount` is omitted or set to 0, performs a full refund. When a non-zero `amount` is provided, this endpoint performs a partial refund.
|
|
747
|
+
*
|
|
748
|
+
* This is the v2 version of the refund endpoint, and returns the unified response format. See [Pay In unified response codes reference](/developers/references/pay-in-unified-response-codes) for more information.
|
|
749
|
+
*
|
|
750
|
+
* @param {string} transId - ReferenceId for the transaction (PaymentId).
|
|
751
|
+
* @param {number} amount - Amount to refund from original transaction, minus any service fees charged on the original transaction. If omitted or set to 0, performs a full refund.
|
|
752
|
+
* @param {MoneyInClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
753
|
+
*
|
|
754
|
+
* @throws {@link Payabli.BadRequestRefundResponseErrorV2}
|
|
755
|
+
* @throws {@link Payabli.UnauthorizedError}
|
|
756
|
+
* @throws {@link Payabli.DeclinedRefundResponseErrorV2}
|
|
757
|
+
* @throws {@link Payabli.InternalServerResponseErrorV2}
|
|
758
|
+
*
|
|
759
|
+
* @example
|
|
760
|
+
* await client.moneyIn.refundv2Amount("10-3ffa27df-b171-44e0-b251-e95fbfc7a723", 0)
|
|
761
|
+
*
|
|
762
|
+
* @example
|
|
763
|
+
* await client.moneyIn.refundv2Amount("10-3ffa27df-b171-44e0-b251-e95fbfc7a723", 100.99)
|
|
764
|
+
*/
|
|
765
|
+
refundv2Amount(transId: string, amount: number, requestOptions?: MoneyInClient.RequestOptions): core.HttpResponsePromise<Payabli.V2TransactionResponseWrapper>;
|
|
766
|
+
private __refundv2Amount;
|
|
767
|
+
/**
|
|
768
|
+
* Cancel a transaction that hasn't been settled yet. Voiding non-captured authorizations prevents future captures. This is the v2 version of the `api/MoneyIn/void/{transId}` endpoint, and returns the unified response format. See [Pay In unified response codes reference](/developers/references/pay-in-unified-response-codes) for more information.
|
|
769
|
+
*
|
|
770
|
+
* @param {string} transId - ReferenceId for the transaction (PaymentId).
|
|
771
|
+
* @param {MoneyInClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
772
|
+
*
|
|
773
|
+
* @throws {@link Payabli.BadRequestVoidResponseErrorV2}
|
|
774
|
+
* @throws {@link Payabli.UnauthorizedError}
|
|
775
|
+
* @throws {@link Payabli.DeclinedVoidResponseErrorV2}
|
|
776
|
+
* @throws {@link Payabli.InternalServerResponseErrorV2}
|
|
777
|
+
*
|
|
778
|
+
* @example
|
|
779
|
+
* await client.moneyIn.voidv2("10-3ffa27df-b171-44e0-b251-e95fbfc7a723")
|
|
780
|
+
*/
|
|
781
|
+
voidv2(transId: string, requestOptions?: MoneyInClient.RequestOptions): core.HttpResponsePromise<Payabli.V2TransactionResponseWrapper>;
|
|
782
|
+
private __voidv2;
|
|
538
783
|
}
|