@payabli/sdk-node 0.0.109 → 0.0.114
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 +4 -0
- package/dist/cjs/Client.d.ts +5 -2
- package/dist/cjs/Client.js +33 -28
- package/dist/cjs/api/resources/bill/client/Client.d.ts +2 -2
- package/dist/cjs/api/resources/bill/types/BillResponse.d.ts +1 -1
- package/dist/cjs/api/resources/bill/types/EditBillResponse.d.ts +1 -1
- package/dist/cjs/api/resources/bill/types/GetBillResponse.d.ts +1 -1
- package/dist/cjs/api/resources/boarding/client/Client.d.ts +2 -2
- package/dist/cjs/api/resources/chargeBacks/client/Client.d.ts +2 -2
- package/dist/cjs/api/resources/chargeBacks/client/requests/ResponseChargeBack.d.ts +1 -2
- package/dist/cjs/api/{types → resources/chargeBacks/types}/ChargeBackResponse.d.ts +1 -1
- package/dist/cjs/api/resources/chargeBacks/types/ChargebackMessage.d.ts +21 -0
- package/dist/cjs/api/resources/chargeBacks/types/ChargebackQueryRecords.d.ts +69 -0
- package/dist/cjs/api/resources/chargeBacks/types/ChargebackQueryRecords.js +5 -0
- package/dist/cjs/api/resources/chargeBacks/types/index.d.ts +3 -0
- package/dist/cjs/api/resources/chargeBacks/types/index.js +3 -0
- package/dist/cjs/api/resources/checkCapture/client/Client.d.ts +2 -2
- package/dist/cjs/api/resources/cloud/client/Client.d.ts +2 -2
- package/dist/cjs/api/resources/customer/client/Client.d.ts +2 -2
- package/dist/cjs/api/resources/export/client/Client.d.ts +2 -2
- package/dist/cjs/api/resources/hostedPaymentPages/client/Client.d.ts +2 -2
- package/dist/cjs/api/resources/import/client/Client.d.ts +2 -2
- 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 +2 -2
- package/dist/cjs/api/resources/lineItem/client/Client.d.ts +2 -2
- package/dist/cjs/api/resources/lineItem/types/DeleteItemResponse.d.ts +2 -2
- package/dist/cjs/api/resources/moneyIn/client/Client.d.ts +2 -2
- package/dist/cjs/api/resources/moneyIn/errors/CaptureError.js +1 -1
- package/dist/cjs/api/resources/moneyIn/types/ReceiptResponse.d.ts +1 -1
- package/dist/cjs/api/resources/moneyOut/client/Client.d.ts +8 -10
- package/dist/cjs/api/resources/moneyOut/client/Client.js +6 -8
- package/dist/cjs/api/resources/moneyOut/client/requests/MoneyOutTypesRequestOutAuthorize.d.ts +6 -8
- package/dist/cjs/api/resources/moneyOutTypes/types/AuthorizePaymentMethod.d.ts +30 -0
- package/dist/cjs/api/resources/moneyOutTypes/types/AuthorizePaymentMethod.js +5 -0
- package/dist/cjs/api/resources/moneyOutTypes/types/AuthorizePayoutBody.d.ts +3 -10
- package/dist/cjs/api/resources/moneyOutTypes/types/CaptureAllOutResponse.d.ts +1 -1
- package/dist/cjs/api/resources/moneyOutTypes/types/VCardGetResponse.d.ts +2 -0
- package/dist/cjs/api/resources/moneyOutTypes/types/index.d.ts +1 -0
- package/dist/cjs/api/resources/moneyOutTypes/types/index.js +1 -0
- package/dist/cjs/api/resources/notification/client/Client.d.ts +2 -2
- package/dist/cjs/api/resources/notificationlogs/client/Client.d.ts +118 -0
- package/dist/cjs/api/resources/notificationlogs/client/Client.js +370 -0
- package/dist/cjs/api/resources/notificationlogs/client/index.d.ts +2 -0
- package/dist/cjs/api/resources/notificationlogs/client/index.js +17 -0
- package/dist/cjs/api/resources/notificationlogs/client/requests/SearchNotificationLogsRequest.d.ts +23 -0
- package/dist/cjs/api/resources/notificationlogs/client/requests/SearchNotificationLogsRequest.js +5 -0
- package/dist/cjs/api/resources/notificationlogs/client/requests/index.d.ts +1 -0
- package/dist/cjs/api/resources/notificationlogs/client/requests/index.js +2 -0
- package/dist/cjs/api/resources/notificationlogs/index.d.ts +2 -0
- package/dist/cjs/api/resources/notificationlogs/index.js +18 -0
- package/dist/cjs/api/resources/notificationlogs/types/BulkRetryRequest.d.ts +7 -0
- package/dist/cjs/api/resources/notificationlogs/types/BulkRetryRequest.js +5 -0
- package/dist/cjs/api/resources/notificationlogs/types/KeyValueArray.d.ts +7 -0
- package/dist/cjs/api/resources/notificationlogs/types/KeyValueArray.js +5 -0
- package/dist/cjs/api/resources/notificationlogs/types/NotificationLog.d.ts +29 -0
- package/dist/cjs/api/resources/notificationlogs/types/NotificationLog.js +5 -0
- package/dist/cjs/api/resources/notificationlogs/types/NotificationLogDetail.d.ts +9 -0
- package/dist/cjs/api/resources/notificationlogs/types/NotificationLogDetail.js +5 -0
- package/dist/cjs/api/resources/notificationlogs/types/NotificationLogSearchRequest.d.ts +17 -0
- package/dist/cjs/api/resources/notificationlogs/types/NotificationLogSearchRequest.js +5 -0
- package/dist/cjs/api/resources/notificationlogs/types/StringStringKeyValuePair.d.ts +7 -0
- package/dist/cjs/api/resources/notificationlogs/types/StringStringKeyValuePair.js +5 -0
- package/dist/cjs/api/resources/notificationlogs/types/index.d.ts +6 -0
- package/dist/cjs/api/resources/notificationlogs/types/index.js +22 -0
- package/dist/cjs/api/resources/ocr/client/Client.d.ts +2 -2
- package/dist/cjs/api/resources/ocr/types/PayabliApiResponseOcr.d.ts +3 -3
- package/dist/cjs/api/resources/organization/client/Client.d.ts +2 -2
- package/dist/cjs/api/resources/organization/client/requests/AddOrganizationRequest.d.ts +1 -2
- package/dist/cjs/api/resources/organization/types/AddOrganizationResponse.d.ts +1 -1
- package/dist/cjs/api/resources/organization/types/DeleteOrganizationResponse.d.ts +1 -1
- package/dist/cjs/api/resources/organization/types/EditOrganizationResponse.d.ts +2 -2
- package/dist/cjs/api/resources/paymentLink/client/Client.d.ts +2 -2
- package/dist/cjs/api/resources/paymentLink/types/PayabliApiResponsePaymentLinks.d.ts +2 -2
- package/dist/cjs/api/resources/paymentMethodDomain/client/Client.d.ts +2 -2
- package/dist/cjs/api/resources/paypoint/client/Client.d.ts +2 -2
- package/dist/cjs/api/resources/paypoint/types/GetBasicEntryByIdResponse.d.ts +2 -2
- package/dist/cjs/api/resources/paypoint/types/GetBasicEntryResponse.d.ts +2 -2
- package/dist/cjs/api/resources/paypoint/types/GetEntryConfigResponse.d.ts +2 -2
- package/dist/cjs/api/resources/paypoint/types/MigratePaypointResponse.d.ts +2 -2
- package/dist/cjs/api/resources/query/client/Client.d.ts +2 -2
- package/dist/cjs/api/resources/query/client/requests/ListTransfersRequest.d.ts +3 -0
- package/dist/cjs/api/resources/query/client/requests/ListVcardsOrgRequest.d.ts +0 -2
- package/dist/cjs/api/resources/query/client/requests/ListVcardsRequest.d.ts +0 -2
- package/dist/cjs/api/resources/queryTypes/types/ListOrganizationsResponse.d.ts +2 -2
- package/dist/cjs/api/resources/queryTypes/types/QueryBatchesDetailResponse.d.ts +7 -7
- package/dist/cjs/api/resources/queryTypes/types/QueryBatchesResponse.d.ts +10 -10
- package/dist/cjs/api/resources/queryTypes/types/QueryTransferDetailResponse.d.ts +72 -72
- package/dist/cjs/api/resources/queryTypes/types/QueryTransferResponse.d.ts +2 -2
- package/dist/cjs/api/resources/queryTypes/types/QueryTransferSummary.d.ts +23 -18
- package/dist/cjs/api/resources/statistic/client/Client.d.ts +2 -2
- package/dist/cjs/api/resources/subscription/client/Client.d.ts +2 -2
- package/dist/cjs/api/resources/subscription/types/AddSubscriptionResponse.d.ts +1 -1
- package/dist/cjs/api/resources/subscription/types/RemoveSubscriptionResponse.d.ts +1 -1
- package/dist/cjs/api/resources/subscription/types/UpdateSubscriptionResponse.d.ts +1 -1
- package/dist/cjs/api/resources/templates/client/Client.d.ts +2 -2
- package/dist/cjs/api/resources/tokenStorage/client/Client.d.ts +2 -2
- package/dist/cjs/api/resources/tokenStorage/types/AddMethodResponse.d.ts +5 -5
- package/dist/cjs/api/resources/tokenStorage/types/GetMethodResponse.d.ts +1 -1
- package/dist/cjs/api/resources/user/client/Client.d.ts +2 -2
- package/dist/cjs/api/resources/user/types/AddUserResponse.d.ts +1 -1
- package/dist/cjs/api/resources/user/types/AuthResetUserResponse.d.ts +1 -1
- package/dist/cjs/api/resources/user/types/ChangePswUserResponse.d.ts +1 -1
- package/dist/cjs/api/resources/user/types/DeleteUserResponse.d.ts +1 -1
- package/dist/cjs/api/resources/user/types/EditMfaUserResponse.d.ts +1 -1
- package/dist/cjs/api/resources/user/types/LogoutUserResponse.d.ts +1 -1
- package/dist/cjs/api/resources/vendor/client/Client.d.ts +2 -2
- package/dist/cjs/api/resources/wallet/client/Client.d.ts +2 -2
- package/dist/cjs/api/types/AdditionalData.d.ts +1 -1
- package/dist/cjs/api/types/BoardingLinkApiResponse.d.ts +1 -1
- package/dist/cjs/api/types/CloudQueryApiResponse.d.ts +1 -1
- package/dist/cjs/api/types/ConfigureApplePayOrganizationApiResponse.d.ts +1 -1
- package/dist/cjs/api/types/ConfigureApplePaypointApiResponse.d.ts +1 -1
- package/dist/cjs/api/types/IdempotencyKey.d.ts +1 -1
- package/dist/cjs/api/types/NotificationStandardRequest.d.ts +75 -1
- package/dist/cjs/api/types/NotificationStandardRequest.js +74 -0
- package/dist/cjs/api/types/PayabliApiResponse.d.ts +1 -1
- package/dist/cjs/api/types/PayabliApiResponse0.d.ts +1 -1
- package/dist/cjs/api/types/PayabliApiResponse00.d.ts +1 -1
- package/dist/cjs/api/types/PayabliApiResponse0000.d.ts +1 -1
- package/dist/cjs/api/types/PayabliApiResponse00Responsedatanonobject.d.ts +1 -1
- package/dist/cjs/api/types/PayabliApiResponse6.d.ts +1 -1
- package/dist/cjs/api/types/PayabliApiResponseCustomerQuery.d.ts +1 -1
- package/dist/cjs/api/types/PayabliApiResponseGeneric2Part.d.ts +1 -1
- package/dist/cjs/api/types/PayabliApiResponseImport.d.ts +1 -1
- package/dist/cjs/api/types/PayabliApiResponseMfaBasic.d.ts +1 -1
- package/dist/cjs/api/types/PayabliApiResponseNotifications.d.ts +1 -1
- package/dist/cjs/api/types/PayabliApiResponsePaymethodDelete.d.ts +1 -1
- package/dist/cjs/api/types/PayabliApiResponseTemplateId.d.ts +1 -1
- package/dist/cjs/api/types/PayabliApiResponseUserMfa.d.ts +1 -1
- package/dist/cjs/api/types/PayabliApiResponseVendors.d.ts +1 -1
- package/dist/cjs/api/types/PaymentMethodDomainGeneralResponse.d.ts +1 -1
- package/dist/cjs/api/types/Transfer.d.ts +31 -16
- package/dist/cjs/api/types/TransferMessage.d.ts +8 -8
- package/dist/cjs/api/types/TransferMessageProperties.d.ts +2 -2
- package/dist/cjs/api/types/TransferQueryResponse.d.ts +11 -6
- package/dist/cjs/api/types/VCardRecord.d.ts +43 -0
- package/dist/cjs/api/types/index.d.ts +3 -5
- package/dist/cjs/api/types/index.js +3 -5
- package/dist/cjs/core/fetcher/Fetcher.d.ts +1 -1
- package/dist/cjs/core/fetcher/requestWithRetries.js +34 -2
- package/dist/cjs/core/headers.d.ts +2 -2
- package/dist/cjs/version.d.ts +1 -1
- package/dist/cjs/version.js +1 -1
- package/dist/esm/Client.d.mts +5 -2
- package/dist/esm/Client.mjs +7 -2
- package/dist/esm/api/resources/bill/client/Client.d.mts +2 -2
- package/dist/esm/api/resources/bill/types/BillResponse.d.mts +1 -1
- package/dist/esm/api/resources/bill/types/EditBillResponse.d.mts +1 -1
- package/dist/esm/api/resources/bill/types/GetBillResponse.d.mts +1 -1
- package/dist/esm/api/resources/boarding/client/Client.d.mts +2 -2
- package/dist/esm/api/resources/chargeBacks/client/Client.d.mts +2 -2
- package/dist/esm/api/resources/chargeBacks/client/requests/ResponseChargeBack.d.mts +1 -2
- package/dist/esm/api/{types → resources/chargeBacks/types}/ChargeBackResponse.d.mts +1 -1
- package/dist/esm/api/resources/chargeBacks/types/ChargebackMessage.d.mts +21 -0
- package/dist/esm/api/resources/chargeBacks/types/ChargebackQueryRecords.d.mts +69 -0
- package/dist/esm/api/resources/chargeBacks/types/ChargebackQueryRecords.mjs +4 -0
- package/dist/esm/api/resources/chargeBacks/types/index.d.mts +3 -0
- package/dist/esm/api/resources/chargeBacks/types/index.mjs +3 -0
- package/dist/esm/api/resources/checkCapture/client/Client.d.mts +2 -2
- package/dist/esm/api/resources/cloud/client/Client.d.mts +2 -2
- package/dist/esm/api/resources/customer/client/Client.d.mts +2 -2
- package/dist/esm/api/resources/export/client/Client.d.mts +2 -2
- package/dist/esm/api/resources/hostedPaymentPages/client/Client.d.mts +2 -2
- package/dist/esm/api/resources/import/client/Client.d.mts +2 -2
- 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 +2 -2
- package/dist/esm/api/resources/lineItem/client/Client.d.mts +2 -2
- package/dist/esm/api/resources/lineItem/types/DeleteItemResponse.d.mts +2 -2
- package/dist/esm/api/resources/moneyIn/client/Client.d.mts +2 -2
- package/dist/esm/api/resources/moneyIn/errors/CaptureError.mjs +1 -1
- package/dist/esm/api/resources/moneyIn/types/ReceiptResponse.d.mts +1 -1
- package/dist/esm/api/resources/moneyOut/client/Client.d.mts +8 -10
- package/dist/esm/api/resources/moneyOut/client/Client.mjs +6 -8
- package/dist/esm/api/resources/moneyOut/client/requests/MoneyOutTypesRequestOutAuthorize.d.mts +6 -8
- package/dist/esm/api/resources/moneyOutTypes/types/AuthorizePaymentMethod.d.mts +30 -0
- package/dist/esm/api/resources/moneyOutTypes/types/AuthorizePaymentMethod.mjs +4 -0
- package/dist/esm/api/resources/moneyOutTypes/types/AuthorizePayoutBody.d.mts +3 -10
- package/dist/esm/api/resources/moneyOutTypes/types/CaptureAllOutResponse.d.mts +1 -1
- package/dist/esm/api/resources/moneyOutTypes/types/VCardGetResponse.d.mts +2 -0
- package/dist/esm/api/resources/moneyOutTypes/types/index.d.mts +1 -0
- package/dist/esm/api/resources/moneyOutTypes/types/index.mjs +1 -0
- package/dist/esm/api/resources/notification/client/Client.d.mts +2 -2
- package/dist/esm/api/resources/notificationlogs/client/Client.d.mts +118 -0
- package/dist/esm/api/resources/notificationlogs/client/Client.mjs +333 -0
- package/dist/esm/api/resources/notificationlogs/client/index.d.mts +2 -0
- package/dist/esm/api/resources/notificationlogs/client/index.mjs +1 -0
- package/dist/esm/api/resources/notificationlogs/client/requests/SearchNotificationLogsRequest.d.mts +23 -0
- package/dist/esm/api/resources/notificationlogs/client/requests/SearchNotificationLogsRequest.mjs +4 -0
- package/dist/esm/api/resources/notificationlogs/client/requests/index.d.mts +1 -0
- package/dist/esm/api/resources/notificationlogs/client/requests/index.mjs +1 -0
- package/dist/esm/api/resources/notificationlogs/index.d.mts +2 -0
- package/dist/esm/api/resources/notificationlogs/index.mjs +2 -0
- package/dist/esm/api/resources/notificationlogs/types/BulkRetryRequest.d.mts +7 -0
- package/dist/esm/api/resources/notificationlogs/types/BulkRetryRequest.mjs +4 -0
- package/dist/esm/api/resources/notificationlogs/types/KeyValueArray.d.mts +7 -0
- package/dist/esm/api/resources/notificationlogs/types/KeyValueArray.mjs +4 -0
- package/dist/esm/api/resources/notificationlogs/types/NotificationLog.d.mts +29 -0
- package/dist/esm/api/resources/notificationlogs/types/NotificationLog.mjs +4 -0
- package/dist/esm/api/resources/notificationlogs/types/NotificationLogDetail.d.mts +9 -0
- package/dist/esm/api/resources/notificationlogs/types/NotificationLogDetail.mjs +4 -0
- package/dist/esm/api/resources/notificationlogs/types/NotificationLogSearchRequest.d.mts +17 -0
- package/dist/esm/api/resources/notificationlogs/types/NotificationLogSearchRequest.mjs +4 -0
- package/dist/esm/api/resources/notificationlogs/types/StringStringKeyValuePair.d.mts +7 -0
- package/dist/esm/api/resources/notificationlogs/types/StringStringKeyValuePair.mjs +4 -0
- package/dist/esm/api/resources/notificationlogs/types/index.d.mts +6 -0
- package/dist/esm/api/resources/notificationlogs/types/index.mjs +6 -0
- package/dist/esm/api/resources/ocr/client/Client.d.mts +2 -2
- package/dist/esm/api/resources/ocr/types/PayabliApiResponseOcr.d.mts +3 -3
- package/dist/esm/api/resources/organization/client/Client.d.mts +2 -2
- package/dist/esm/api/resources/organization/client/requests/AddOrganizationRequest.d.mts +1 -2
- package/dist/esm/api/resources/organization/types/AddOrganizationResponse.d.mts +1 -1
- package/dist/esm/api/resources/organization/types/DeleteOrganizationResponse.d.mts +1 -1
- package/dist/esm/api/resources/organization/types/EditOrganizationResponse.d.mts +2 -2
- package/dist/esm/api/resources/paymentLink/client/Client.d.mts +2 -2
- package/dist/esm/api/resources/paymentLink/types/PayabliApiResponsePaymentLinks.d.mts +2 -2
- package/dist/esm/api/resources/paymentMethodDomain/client/Client.d.mts +2 -2
- package/dist/esm/api/resources/paypoint/client/Client.d.mts +2 -2
- package/dist/esm/api/resources/paypoint/types/GetBasicEntryByIdResponse.d.mts +2 -2
- package/dist/esm/api/resources/paypoint/types/GetBasicEntryResponse.d.mts +2 -2
- package/dist/esm/api/resources/paypoint/types/GetEntryConfigResponse.d.mts +2 -2
- package/dist/esm/api/resources/paypoint/types/MigratePaypointResponse.d.mts +2 -2
- package/dist/esm/api/resources/query/client/Client.d.mts +2 -2
- package/dist/esm/api/resources/query/client/requests/ListTransfersRequest.d.mts +3 -0
- package/dist/esm/api/resources/query/client/requests/ListVcardsOrgRequest.d.mts +0 -2
- package/dist/esm/api/resources/query/client/requests/ListVcardsRequest.d.mts +0 -2
- package/dist/esm/api/resources/queryTypes/types/ListOrganizationsResponse.d.mts +2 -2
- package/dist/esm/api/resources/queryTypes/types/QueryBatchesDetailResponse.d.mts +7 -7
- package/dist/esm/api/resources/queryTypes/types/QueryBatchesResponse.d.mts +10 -10
- package/dist/esm/api/resources/queryTypes/types/QueryTransferDetailResponse.d.mts +72 -72
- package/dist/esm/api/resources/queryTypes/types/QueryTransferResponse.d.mts +2 -2
- package/dist/esm/api/resources/queryTypes/types/QueryTransferSummary.d.mts +23 -18
- package/dist/esm/api/resources/statistic/client/Client.d.mts +2 -2
- package/dist/esm/api/resources/subscription/client/Client.d.mts +2 -2
- package/dist/esm/api/resources/subscription/types/AddSubscriptionResponse.d.mts +1 -1
- package/dist/esm/api/resources/subscription/types/RemoveSubscriptionResponse.d.mts +1 -1
- package/dist/esm/api/resources/subscription/types/UpdateSubscriptionResponse.d.mts +1 -1
- package/dist/esm/api/resources/templates/client/Client.d.mts +2 -2
- package/dist/esm/api/resources/tokenStorage/client/Client.d.mts +2 -2
- package/dist/esm/api/resources/tokenStorage/types/AddMethodResponse.d.mts +5 -5
- package/dist/esm/api/resources/tokenStorage/types/GetMethodResponse.d.mts +1 -1
- package/dist/esm/api/resources/user/client/Client.d.mts +2 -2
- package/dist/esm/api/resources/user/types/AddUserResponse.d.mts +1 -1
- package/dist/esm/api/resources/user/types/AuthResetUserResponse.d.mts +1 -1
- package/dist/esm/api/resources/user/types/ChangePswUserResponse.d.mts +1 -1
- package/dist/esm/api/resources/user/types/DeleteUserResponse.d.mts +1 -1
- package/dist/esm/api/resources/user/types/EditMfaUserResponse.d.mts +1 -1
- package/dist/esm/api/resources/user/types/LogoutUserResponse.d.mts +1 -1
- package/dist/esm/api/resources/vendor/client/Client.d.mts +2 -2
- package/dist/esm/api/resources/wallet/client/Client.d.mts +2 -2
- package/dist/esm/api/types/AdditionalData.d.mts +1 -1
- package/dist/esm/api/types/BoardingLinkApiResponse.d.mts +1 -1
- package/dist/esm/api/types/CloudQueryApiResponse.d.mts +1 -1
- package/dist/esm/api/types/ConfigureApplePayOrganizationApiResponse.d.mts +1 -1
- package/dist/esm/api/types/ConfigureApplePaypointApiResponse.d.mts +1 -1
- package/dist/esm/api/types/IdempotencyKey.d.mts +1 -1
- package/dist/esm/api/types/NotificationStandardRequest.d.mts +75 -1
- package/dist/esm/api/types/NotificationStandardRequest.mjs +74 -0
- package/dist/esm/api/types/PayabliApiResponse.d.mts +1 -1
- package/dist/esm/api/types/PayabliApiResponse0.d.mts +1 -1
- package/dist/esm/api/types/PayabliApiResponse00.d.mts +1 -1
- package/dist/esm/api/types/PayabliApiResponse0000.d.mts +1 -1
- package/dist/esm/api/types/PayabliApiResponse00Responsedatanonobject.d.mts +1 -1
- package/dist/esm/api/types/PayabliApiResponse6.d.mts +1 -1
- package/dist/esm/api/types/PayabliApiResponseCustomerQuery.d.mts +1 -1
- package/dist/esm/api/types/PayabliApiResponseGeneric2Part.d.mts +1 -1
- package/dist/esm/api/types/PayabliApiResponseImport.d.mts +1 -1
- package/dist/esm/api/types/PayabliApiResponseMfaBasic.d.mts +1 -1
- package/dist/esm/api/types/PayabliApiResponseNotifications.d.mts +1 -1
- package/dist/esm/api/types/PayabliApiResponsePaymethodDelete.d.mts +1 -1
- package/dist/esm/api/types/PayabliApiResponseTemplateId.d.mts +1 -1
- package/dist/esm/api/types/PayabliApiResponseUserMfa.d.mts +1 -1
- package/dist/esm/api/types/PayabliApiResponseVendors.d.mts +1 -1
- package/dist/esm/api/types/PaymentMethodDomainGeneralResponse.d.mts +1 -1
- package/dist/esm/api/types/Transfer.d.mts +31 -16
- package/dist/esm/api/types/TransferMessage.d.mts +8 -8
- package/dist/esm/api/types/TransferMessageProperties.d.mts +2 -2
- package/dist/esm/api/types/TransferQueryResponse.d.mts +11 -6
- package/dist/esm/api/types/VCardRecord.d.mts +43 -0
- package/dist/esm/api/types/index.d.mts +3 -5
- package/dist/esm/api/types/index.mjs +3 -5
- package/dist/esm/core/fetcher/Fetcher.d.mts +1 -1
- package/dist/esm/core/fetcher/requestWithRetries.mjs +34 -2
- package/dist/esm/core/headers.d.mts +2 -2
- package/dist/esm/version.d.mts +1 -1
- package/dist/esm/version.mjs +1 -1
- package/package.json +1 -1
- package/reference.md +278 -0
- package/dist/cjs/api/types/ChargebackQueryRecords.d.ts +0 -54
- package/dist/esm/api/types/ChargebackQueryRecords.d.mts +0 -54
- /package/dist/cjs/api/{types → resources/chargeBacks/types}/ChargeBackResponse.js +0 -0
- /package/dist/cjs/api/{types/ChargebackQueryRecords.js → resources/chargeBacks/types/ChargebackMessage.js} +0 -0
- /package/dist/esm/api/{types → resources/chargeBacks/types}/ChargeBackResponse.mjs +0 -0
- /package/dist/esm/api/{types/ChargebackQueryRecords.mjs → resources/chargeBacks/types/ChargebackMessage.mjs} +0 -0
|
@@ -12,10 +12,15 @@ import * as Payabli from "../index.js";
|
|
|
12
12
|
* batchRecords: 1,
|
|
13
13
|
* transferIdentifier: "bbcbfed7-e535-45fe-8d62-000000",
|
|
14
14
|
* batchId: 111430,
|
|
15
|
-
* paypointEntryName: "
|
|
16
|
-
* paypointLegalName: "
|
|
17
|
-
* paypointDbaName: "
|
|
15
|
+
* paypointEntryName: "47ae3de37",
|
|
16
|
+
* paypointLegalName: "Gruzya Outdoor Outfitters LLC",
|
|
17
|
+
* paypointDbaName: "Gruzya Outdoor Outfitters",
|
|
18
18
|
* paypointLogo: "https://example.com/logo.png",
|
|
19
|
+
* parentOrgName: "Pilgrim Planner",
|
|
20
|
+
* parentOrgId: 12345,
|
|
21
|
+
* parentOrgEntryName: "43aebc000",
|
|
22
|
+
* parentOrgLogo: "https://example.com/parent-logo.png",
|
|
23
|
+
* externalPaypointID: "ext-12345",
|
|
19
24
|
* bankAccount: {
|
|
20
25
|
* accountNumber: "****1234",
|
|
21
26
|
* routingNumber: "123456789"
|
|
@@ -23,15 +28,15 @@ import * as Payabli from "../index.js";
|
|
|
23
28
|
* transferDate: "2024-11-17T08:20:07.288+00:00",
|
|
24
29
|
* processor: "gp",
|
|
25
30
|
* transferStatus: 2,
|
|
26
|
-
* grossAmount:
|
|
27
|
-
* chargeBackAmount:
|
|
31
|
+
* grossAmount: 1029,
|
|
32
|
+
* chargeBackAmount: 25,
|
|
28
33
|
* returnedAmount: 0,
|
|
29
34
|
* holdAmount: 0,
|
|
30
35
|
* releasedAmount: 0,
|
|
31
36
|
* billingFeesAmount: 0,
|
|
32
37
|
* thirdPartyPaidAmount: 0,
|
|
33
38
|
* adjustmentsAmount: 0,
|
|
34
|
-
* netTransferAmount:
|
|
39
|
+
* netTransferAmount: 1004,
|
|
35
40
|
* eventsData: [{
|
|
36
41
|
* description: "Transfer Created",
|
|
37
42
|
* eventTime: "2024-11-16T08:15:33.4364067Z",
|
|
@@ -48,22 +53,32 @@ export interface Transfer {
|
|
|
48
53
|
paypointId: Payabli.PaypointId;
|
|
49
54
|
batchNumber: Payabli.BatchNumber;
|
|
50
55
|
/** The currency of the batch, either USD or CAD. */
|
|
51
|
-
batchCurrency
|
|
56
|
+
batchCurrency: string | null;
|
|
52
57
|
/** Number of records in the batch. */
|
|
53
|
-
batchRecords
|
|
58
|
+
batchRecords: number | null;
|
|
54
59
|
transferIdentifier: Payabli.TransferIdentifier;
|
|
55
60
|
/** The ID of the batch the transfer belongs to. */
|
|
56
61
|
batchId: number;
|
|
57
|
-
/** The paypoint
|
|
58
|
-
paypointEntryName
|
|
62
|
+
/** The paypoint entryname. */
|
|
63
|
+
paypointEntryName: string | null;
|
|
59
64
|
/** The paypoint legal name. */
|
|
60
|
-
paypointLegalName
|
|
65
|
+
paypointLegalName: Payabli.Legalname | null;
|
|
61
66
|
/** The paypoint DBA name. */
|
|
62
|
-
paypointDbaName
|
|
67
|
+
paypointDbaName: Payabli.Dbaname | null;
|
|
63
68
|
/** The paypoint logo URL. */
|
|
64
|
-
paypointLogo
|
|
69
|
+
paypointLogo: string | null;
|
|
70
|
+
/** The parent organization name. */
|
|
71
|
+
parentOrgName: string | null;
|
|
72
|
+
/** The parent organization ID. */
|
|
73
|
+
parentOrgId: number | null;
|
|
74
|
+
/** The parent organization entryname. */
|
|
75
|
+
parentOrgEntryName: string | null;
|
|
76
|
+
/** The parent organization logo URL. */
|
|
77
|
+
parentOrgLogo: string | null;
|
|
78
|
+
/** The external paypoint ID. */
|
|
79
|
+
externalPaypointID: string | null;
|
|
65
80
|
/** Bank account information for the transfer. */
|
|
66
|
-
bankAccount
|
|
81
|
+
bankAccount: Payabli.TransferBankAccount | null;
|
|
67
82
|
/** Date when the transfer occurred. */
|
|
68
83
|
transferDate: string;
|
|
69
84
|
/** The payment processor used for the transfer. */
|
|
@@ -89,7 +104,7 @@ export interface Transfer {
|
|
|
89
104
|
/** The net transfer amount after all deductions and additions. */
|
|
90
105
|
netTransferAmount: number;
|
|
91
106
|
/** List of events associated with the transfer. */
|
|
92
|
-
eventsData
|
|
107
|
+
eventsData: Payabli.GeneralEvents[] | null;
|
|
93
108
|
/** List of messages related to the transfer. */
|
|
94
|
-
messages
|
|
109
|
+
messages: Payabli.TransferMessage[] | null;
|
|
95
110
|
}
|
|
@@ -3,12 +3,12 @@
|
|
|
3
3
|
*/
|
|
4
4
|
import * as Payabli from "../index.js";
|
|
5
5
|
export interface TransferMessage {
|
|
6
|
-
Id
|
|
7
|
-
RoomId
|
|
8
|
-
UserId
|
|
9
|
-
UserName
|
|
10
|
-
Content
|
|
11
|
-
CreatedAt
|
|
12
|
-
MessageType
|
|
13
|
-
MessageProperties
|
|
6
|
+
Id: number | null;
|
|
7
|
+
RoomId: number | null;
|
|
8
|
+
UserId: number | null;
|
|
9
|
+
UserName: string | null;
|
|
10
|
+
Content: string | null;
|
|
11
|
+
CreatedAt: string | null;
|
|
12
|
+
MessageType: number | null;
|
|
13
|
+
MessageProperties: Payabli.TransferMessageProperties | null;
|
|
14
14
|
}
|
|
@@ -2,6 +2,6 @@
|
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
4
|
export interface TransferMessageProperties {
|
|
5
|
-
originalTransferStatus
|
|
6
|
-
currentTransferStatus
|
|
5
|
+
originalTransferStatus: string | null;
|
|
6
|
+
currentTransferStatus: string | null;
|
|
7
7
|
}
|
|
@@ -13,10 +13,15 @@ import * as Payabli from "../index.js";
|
|
|
13
13
|
* batchRecords: 1,
|
|
14
14
|
* transferIdentifier: "bbcbfed7-e535-45fe-8d62-000000",
|
|
15
15
|
* batchId: 111430,
|
|
16
|
-
* paypointEntryName: "
|
|
17
|
-
* paypointLegalName: "
|
|
18
|
-
* paypointDbaName: "
|
|
16
|
+
* paypointEntryName: "47ae3de37",
|
|
17
|
+
* paypointLegalName: "Gruzya Outdoor Outfitters LLC",
|
|
18
|
+
* paypointDbaName: "Gruzya Outdoor Outfitters",
|
|
19
19
|
* paypointLogo: "https://example.com/logo.png",
|
|
20
|
+
* parentOrgName: "Pilgrim Planner",
|
|
21
|
+
* parentOrgId: 12345,
|
|
22
|
+
* parentOrgEntryName: "43aebc000",
|
|
23
|
+
* parentOrgLogo: "https://example.com/parent-logo.png",
|
|
24
|
+
* externalPaypointID: "ext-12345",
|
|
20
25
|
* bankAccount: {
|
|
21
26
|
* accountNumber: "****1234",
|
|
22
27
|
* routingNumber: "123456789"
|
|
@@ -24,15 +29,15 @@ import * as Payabli from "../index.js";
|
|
|
24
29
|
* transferDate: "2024-11-17T08:20:07.288+00:00",
|
|
25
30
|
* processor: "gp",
|
|
26
31
|
* transferStatus: 2,
|
|
27
|
-
* grossAmount:
|
|
28
|
-
* chargeBackAmount:
|
|
32
|
+
* grossAmount: 1029,
|
|
33
|
+
* chargeBackAmount: 25,
|
|
29
34
|
* returnedAmount: 0,
|
|
30
35
|
* holdAmount: 0,
|
|
31
36
|
* releasedAmount: 0,
|
|
32
37
|
* billingFeesAmount: 0,
|
|
33
38
|
* thirdPartyPaidAmount: 0,
|
|
34
39
|
* adjustmentsAmount: 0,
|
|
35
|
-
* netTransferAmount:
|
|
40
|
+
* netTransferAmount: 1004,
|
|
36
41
|
* eventsData: [{
|
|
37
42
|
* description: "Transfer Created",
|
|
38
43
|
* eventTime: "2024-11-16T08:15:33.4364067Z",
|
|
@@ -2,6 +2,47 @@
|
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
4
|
import * as Payabli from "../index.js";
|
|
5
|
+
/**
|
|
6
|
+
* @example
|
|
7
|
+
* {
|
|
8
|
+
* vcardSent: true,
|
|
9
|
+
* cardToken: "vcrd_5Ty8NrBzXjKuqHm9DwElfP",
|
|
10
|
+
* cardNumber: "44XX XXXX XXXX 1234",
|
|
11
|
+
* cvc: "XXX",
|
|
12
|
+
* expirationDate: "2025-12",
|
|
13
|
+
* status: "Active",
|
|
14
|
+
* amount: 500,
|
|
15
|
+
* currentBalance: 375.25,
|
|
16
|
+
* expenseLimit: 100,
|
|
17
|
+
* expenseLimitPeriod: "monthly",
|
|
18
|
+
* maxNumberOfUses: 10,
|
|
19
|
+
* currentNumberOfUses: 3,
|
|
20
|
+
* exactAmount: false,
|
|
21
|
+
* mcc: "5812",
|
|
22
|
+
* tcc: "T01",
|
|
23
|
+
* misc1: "Invoice #12345",
|
|
24
|
+
* misc2: "Project: Office Supplies",
|
|
25
|
+
* dateCreated: "2023-01-15T09:30:00Z",
|
|
26
|
+
* dateModified: "2023-02-20T14:15:22Z",
|
|
27
|
+
* associatedVendor: {
|
|
28
|
+
* VendorNumber: "V-12345",
|
|
29
|
+
* Name1: "Office Supply Co.",
|
|
30
|
+
* EIN: "XXXXX6789",
|
|
31
|
+
* Email: "billing@officesupply.example.com",
|
|
32
|
+
* VendorId: 1542
|
|
33
|
+
* },
|
|
34
|
+
* associatedCustomer: {
|
|
35
|
+
* firstname: "Acme",
|
|
36
|
+
* lastname: "Corporation"
|
|
37
|
+
* },
|
|
38
|
+
* PaypointDbaname: "Global Factory LLC",
|
|
39
|
+
* PaypointLegalname: "Global Factory LLC",
|
|
40
|
+
* PaypointEntryname: "4872acb376a",
|
|
41
|
+
* externalPaypointID: "pay-10",
|
|
42
|
+
* ParentOrgName: "SupplyPro",
|
|
43
|
+
* paypointId: 236
|
|
44
|
+
* }
|
|
45
|
+
*/
|
|
5
46
|
export interface VCardRecord {
|
|
6
47
|
/** When `true`, the vCard has been sent. */
|
|
7
48
|
vcardSent?: boolean;
|
|
@@ -42,4 +83,6 @@ export interface VCardRecord {
|
|
|
42
83
|
/** The paypoint's entry name (entrypoint). */
|
|
43
84
|
PaypointEntryname?: Payabli.Entrypointfield;
|
|
44
85
|
externalPaypointID?: Payabli.ExternalPaypointId;
|
|
86
|
+
/** The paypoint's unique identifier. */
|
|
87
|
+
paypointId?: number;
|
|
45
88
|
}
|
|
@@ -151,8 +151,6 @@ export * from "./CascadeJobDetails.js";
|
|
|
151
151
|
export * from "./Cash.js";
|
|
152
152
|
export * from "./Category.js";
|
|
153
153
|
export * from "./ChargebackId.js";
|
|
154
|
-
export * from "./ChargebackQueryRecords.js";
|
|
155
|
-
export * from "./ChargeBackResponse.js";
|
|
156
154
|
export * from "./Check.js";
|
|
157
155
|
export * from "./CityNullable.js";
|
|
158
156
|
export * from "./CList.js";
|
|
@@ -532,11 +530,11 @@ export * from "./TransactionQueryRecords.js";
|
|
|
532
530
|
export * from "./TransactionTime.js";
|
|
533
531
|
export * from "./TransferIdentifier.js";
|
|
534
532
|
export * from "./Transfer.js";
|
|
535
|
-
export * from "./TransferSummary.js";
|
|
536
|
-
export * from "./TransferQueryResponse.js";
|
|
537
533
|
export * from "./TransferBankAccount.js";
|
|
538
|
-
export * from "./TransferMessageProperties.js";
|
|
539
534
|
export * from "./TransferMessage.js";
|
|
535
|
+
export * from "./TransferMessageProperties.js";
|
|
536
|
+
export * from "./TransferSummary.js";
|
|
537
|
+
export * from "./TransferQueryResponse.js";
|
|
540
538
|
export * from "./TransStatus.js";
|
|
541
539
|
export * from "./PaymentTransStatusDescription.js";
|
|
542
540
|
export * from "./TypeAccount.js";
|
|
@@ -167,8 +167,6 @@ __exportStar(require("./CascadeJobDetails.js"), exports);
|
|
|
167
167
|
__exportStar(require("./Cash.js"), exports);
|
|
168
168
|
__exportStar(require("./Category.js"), exports);
|
|
169
169
|
__exportStar(require("./ChargebackId.js"), exports);
|
|
170
|
-
__exportStar(require("./ChargebackQueryRecords.js"), exports);
|
|
171
|
-
__exportStar(require("./ChargeBackResponse.js"), exports);
|
|
172
170
|
__exportStar(require("./Check.js"), exports);
|
|
173
171
|
__exportStar(require("./CityNullable.js"), exports);
|
|
174
172
|
__exportStar(require("./CList.js"), exports);
|
|
@@ -548,11 +546,11 @@ __exportStar(require("./TransactionQueryRecords.js"), exports);
|
|
|
548
546
|
__exportStar(require("./TransactionTime.js"), exports);
|
|
549
547
|
__exportStar(require("./TransferIdentifier.js"), exports);
|
|
550
548
|
__exportStar(require("./Transfer.js"), exports);
|
|
551
|
-
__exportStar(require("./TransferSummary.js"), exports);
|
|
552
|
-
__exportStar(require("./TransferQueryResponse.js"), exports);
|
|
553
549
|
__exportStar(require("./TransferBankAccount.js"), exports);
|
|
554
|
-
__exportStar(require("./TransferMessageProperties.js"), exports);
|
|
555
550
|
__exportStar(require("./TransferMessage.js"), exports);
|
|
551
|
+
__exportStar(require("./TransferMessageProperties.js"), exports);
|
|
552
|
+
__exportStar(require("./TransferSummary.js"), exports);
|
|
553
|
+
__exportStar(require("./TransferQueryResponse.js"), exports);
|
|
556
554
|
__exportStar(require("./TransStatus.js"), exports);
|
|
557
555
|
__exportStar(require("./PaymentTransStatusDescription.js"), exports);
|
|
558
556
|
__exportStar(require("./TypeAccount.js"), exports);
|
|
@@ -6,7 +6,7 @@ export declare namespace Fetcher {
|
|
|
6
6
|
url: string;
|
|
7
7
|
method: string;
|
|
8
8
|
contentType?: string;
|
|
9
|
-
headers?: Record<string, string | Supplier<string | undefined> | undefined>;
|
|
9
|
+
headers?: Record<string, string | Supplier<string | null | undefined> | null | undefined>;
|
|
10
10
|
queryParameters?: Record<string, unknown>;
|
|
11
11
|
body?: unknown;
|
|
12
12
|
timeoutMs?: number;
|
|
@@ -19,13 +19,45 @@ function addJitter(delay) {
|
|
|
19
19
|
const jitterMultiplier = 1 + (Math.random() * 2 - 1) * JITTER_FACTOR;
|
|
20
20
|
return delay * jitterMultiplier;
|
|
21
21
|
}
|
|
22
|
+
function getRetryDelayFromHeaders(response, retryAttempt) {
|
|
23
|
+
// Check for Retry-After header first (RFC 7231)
|
|
24
|
+
const retryAfter = response.headers.get("Retry-After");
|
|
25
|
+
if (retryAfter) {
|
|
26
|
+
// Parse as number of seconds...
|
|
27
|
+
const retryAfterSeconds = parseInt(retryAfter, 10);
|
|
28
|
+
if (!isNaN(retryAfterSeconds)) {
|
|
29
|
+
// Convert seconds to milliseconds and cap at MAX_RETRY_DELAY
|
|
30
|
+
return Math.min(retryAfterSeconds * 1000, MAX_RETRY_DELAY);
|
|
31
|
+
}
|
|
32
|
+
// ...or as an HTTP date; both are valid
|
|
33
|
+
const retryAfterDate = new Date(retryAfter);
|
|
34
|
+
if (!isNaN(retryAfterDate.getTime())) {
|
|
35
|
+
const delay = retryAfterDate.getTime() - Date.now();
|
|
36
|
+
return Math.min(Math.max(delay, 0), MAX_RETRY_DELAY);
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
// Then check for industry-standard X-RateLimit-Reset header
|
|
40
|
+
const rateLimitReset = response.headers.get("X-RateLimit-Reset");
|
|
41
|
+
if (rateLimitReset) {
|
|
42
|
+
const resetTime = parseInt(rateLimitReset, 10);
|
|
43
|
+
if (!isNaN(resetTime)) {
|
|
44
|
+
// Assume Unix timestamp in epoch seconds
|
|
45
|
+
const delay = resetTime * 1000 - Date.now();
|
|
46
|
+
if (delay > 0) {
|
|
47
|
+
return Math.min(delay, MAX_RETRY_DELAY);
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
// Fall back to exponential backoff
|
|
52
|
+
return Math.min(INITIAL_RETRY_DELAY * Math.pow(2, retryAttempt), MAX_RETRY_DELAY);
|
|
53
|
+
}
|
|
22
54
|
function requestWithRetries(requestFn_1) {
|
|
23
55
|
return __awaiter(this, arguments, void 0, function* (requestFn, maxRetries = DEFAULT_MAX_RETRIES) {
|
|
24
56
|
let response = yield requestFn();
|
|
25
57
|
for (let i = 0; i < maxRetries; ++i) {
|
|
26
58
|
if ([408, 429].includes(response.status) || response.status >= 500) {
|
|
27
|
-
//
|
|
28
|
-
const baseDelay =
|
|
59
|
+
// Get delay from headers or fall back to exponential backoff
|
|
60
|
+
const baseDelay = getRetryDelayFromHeaders(response, i);
|
|
29
61
|
// Add jitter to the delay
|
|
30
62
|
const delayWithJitter = addJitter(baseDelay);
|
|
31
63
|
yield new Promise((resolve) => setTimeout(resolve, delayWithJitter));
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import * as core from "./index.js";
|
|
2
|
-
export declare function mergeHeaders(...headersArray: (Record<string, string | core.Supplier<string | undefined> | undefined> | undefined)[]): Record<string, string | core.Supplier<string | undefined>>;
|
|
3
|
-
export declare function mergeOnlyDefinedHeaders(...headersArray: (Record<string, string | core.Supplier<string | undefined> | undefined> | undefined)[]): Record<string, string | core.Supplier<string | undefined>>;
|
|
2
|
+
export declare function mergeHeaders(...headersArray: (Record<string, string | core.Supplier<string | null | undefined> | null | undefined> | null | undefined)[]): Record<string, string | core.Supplier<string | null | undefined>>;
|
|
3
|
+
export declare function mergeOnlyDefinedHeaders(...headersArray: (Record<string, string | core.Supplier<string | null | undefined> | null | undefined> | null | undefined)[]): Record<string, string | core.Supplier<string | null | undefined>>;
|
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.114";
|
package/dist/cjs/version.js
CHANGED
package/dist/esm/Client.d.mts
CHANGED
|
@@ -17,6 +17,7 @@ import { LineItem } from "./api/resources/lineItem/client/Client.mjs";
|
|
|
17
17
|
import { MoneyIn } from "./api/resources/moneyIn/client/Client.mjs";
|
|
18
18
|
import { MoneyOut } from "./api/resources/moneyOut/client/Client.mjs";
|
|
19
19
|
import { Notification } from "./api/resources/notification/client/Client.mjs";
|
|
20
|
+
import { Notificationlogs } from "./api/resources/notificationlogs/client/Client.mjs";
|
|
20
21
|
import { Ocr } from "./api/resources/ocr/client/Client.mjs";
|
|
21
22
|
import { Organization } from "./api/resources/organization/client/Client.mjs";
|
|
22
23
|
import { PaymentLink } from "./api/resources/paymentLink/client/Client.mjs";
|
|
@@ -37,7 +38,7 @@ export declare namespace PayabliClient {
|
|
|
37
38
|
baseUrl?: core.Supplier<string>;
|
|
38
39
|
apiKey?: core.Supplier<string | undefined>;
|
|
39
40
|
/** Additional headers to include in requests. */
|
|
40
|
-
headers?: Record<string, string | core.Supplier<string | undefined> | undefined>;
|
|
41
|
+
headers?: Record<string, string | core.Supplier<string | null | undefined> | null | undefined>;
|
|
41
42
|
}
|
|
42
43
|
interface RequestOptions {
|
|
43
44
|
/** The maximum time to wait for a response in seconds. */
|
|
@@ -49,7 +50,7 @@ export declare namespace PayabliClient {
|
|
|
49
50
|
/** Additional query string parameters to include in the request. */
|
|
50
51
|
queryParams?: Record<string, unknown>;
|
|
51
52
|
/** Additional headers to include in the request. */
|
|
52
|
-
headers?: Record<string, string | core.Supplier<string | undefined> | undefined>;
|
|
53
|
+
headers?: Record<string, string | core.Supplier<string | null | undefined> | null | undefined>;
|
|
53
54
|
}
|
|
54
55
|
}
|
|
55
56
|
export declare class PayabliClient {
|
|
@@ -68,6 +69,7 @@ export declare class PayabliClient {
|
|
|
68
69
|
protected _moneyIn: MoneyIn | undefined;
|
|
69
70
|
protected _moneyOut: MoneyOut | undefined;
|
|
70
71
|
protected _notification: Notification | undefined;
|
|
72
|
+
protected _notificationlogs: Notificationlogs | undefined;
|
|
71
73
|
protected _ocr: Ocr | undefined;
|
|
72
74
|
protected _organization: Organization | undefined;
|
|
73
75
|
protected _paymentLink: PaymentLink | undefined;
|
|
@@ -96,6 +98,7 @@ export declare class PayabliClient {
|
|
|
96
98
|
get moneyIn(): MoneyIn;
|
|
97
99
|
get moneyOut(): MoneyOut;
|
|
98
100
|
get notification(): Notification;
|
|
101
|
+
get notificationlogs(): Notificationlogs;
|
|
99
102
|
get ocr(): Ocr;
|
|
100
103
|
get organization(): Organization;
|
|
101
104
|
get paymentLink(): PaymentLink;
|
package/dist/esm/Client.mjs
CHANGED
|
@@ -17,6 +17,7 @@ import { LineItem } from "./api/resources/lineItem/client/Client.mjs";
|
|
|
17
17
|
import { MoneyIn } from "./api/resources/moneyIn/client/Client.mjs";
|
|
18
18
|
import { MoneyOut } from "./api/resources/moneyOut/client/Client.mjs";
|
|
19
19
|
import { Notification } from "./api/resources/notification/client/Client.mjs";
|
|
20
|
+
import { Notificationlogs } from "./api/resources/notificationlogs/client/Client.mjs";
|
|
20
21
|
import { Ocr } from "./api/resources/ocr/client/Client.mjs";
|
|
21
22
|
import { Organization } from "./api/resources/organization/client/Client.mjs";
|
|
22
23
|
import { PaymentLink } from "./api/resources/paymentLink/client/Client.mjs";
|
|
@@ -35,8 +36,8 @@ export class PayabliClient {
|
|
|
35
36
|
this._options = Object.assign(Object.assign({}, _options), { headers: mergeHeaders({
|
|
36
37
|
"X-Fern-Language": "JavaScript",
|
|
37
38
|
"X-Fern-SDK-Name": "@payabli/sdk-node",
|
|
38
|
-
"X-Fern-SDK-Version": "0.0.
|
|
39
|
-
"User-Agent": "@payabli/sdk-node/0.0.
|
|
39
|
+
"X-Fern-SDK-Version": "0.0.114",
|
|
40
|
+
"User-Agent": "@payabli/sdk-node/0.0.114",
|
|
40
41
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
41
42
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
42
43
|
}, _options === null || _options === void 0 ? void 0 : _options.headers) });
|
|
@@ -97,6 +98,10 @@ export class PayabliClient {
|
|
|
97
98
|
var _a;
|
|
98
99
|
return ((_a = this._notification) !== null && _a !== void 0 ? _a : (this._notification = new Notification(this._options)));
|
|
99
100
|
}
|
|
101
|
+
get notificationlogs() {
|
|
102
|
+
var _a;
|
|
103
|
+
return ((_a = this._notificationlogs) !== null && _a !== void 0 ? _a : (this._notificationlogs = new Notificationlogs(this._options)));
|
|
104
|
+
}
|
|
100
105
|
get ocr() {
|
|
101
106
|
var _a;
|
|
102
107
|
return ((_a = this._ocr) !== null && _a !== void 0 ? _a : (this._ocr = new Ocr(this._options)));
|
|
@@ -11,7 +11,7 @@ export declare namespace Bill {
|
|
|
11
11
|
baseUrl?: core.Supplier<string>;
|
|
12
12
|
apiKey?: core.Supplier<string | undefined>;
|
|
13
13
|
/** Additional headers to include in requests. */
|
|
14
|
-
headers?: Record<string, string | core.Supplier<string | undefined> | undefined>;
|
|
14
|
+
headers?: Record<string, string | core.Supplier<string | null | undefined> | null | undefined>;
|
|
15
15
|
}
|
|
16
16
|
interface RequestOptions {
|
|
17
17
|
/** The maximum time to wait for a response in seconds. */
|
|
@@ -23,7 +23,7 @@ export declare namespace Bill {
|
|
|
23
23
|
/** Additional query string parameters to include in the request. */
|
|
24
24
|
queryParams?: Record<string, unknown>;
|
|
25
25
|
/** Additional headers to include in the request. */
|
|
26
|
-
headers?: Record<string, string | core.Supplier<string | undefined> | undefined>;
|
|
26
|
+
headers?: Record<string, string | core.Supplier<string | null | undefined> | null | undefined>;
|
|
27
27
|
}
|
|
28
28
|
}
|
|
29
29
|
export declare class Bill {
|
|
@@ -7,7 +7,7 @@ export interface BillResponse {
|
|
|
7
7
|
pageIdentifier?: Payabli.PageIdentifier;
|
|
8
8
|
roomId?: Payabli.RoomIdNotInUse;
|
|
9
9
|
isSuccess?: Payabli.IsSuccess;
|
|
10
|
-
responseText
|
|
10
|
+
responseText: Payabli.ResponseText;
|
|
11
11
|
/** If `isSuccess` = true, this contains the bill identifier. If `isSuccess` = false, this contains the reason for the error. */
|
|
12
12
|
responseData?: Payabli.Responsedatanonobject;
|
|
13
13
|
}
|
|
@@ -7,7 +7,7 @@ export interface EditBillResponse {
|
|
|
7
7
|
pageIdentifier?: Payabli.PageIdentifier;
|
|
8
8
|
roomId?: Payabli.RoomIdNotInUse;
|
|
9
9
|
isSuccess?: Payabli.IsSuccess;
|
|
10
|
-
responseText
|
|
10
|
+
responseText: Payabli.ResponseText;
|
|
11
11
|
/** If `isSuccess` = true, this contains the bill identifier. If `isSuccess` = false, this contains the reason for the error. */
|
|
12
12
|
responseData?: number;
|
|
13
13
|
}
|
|
@@ -10,6 +10,6 @@ export interface GetBillResponse {
|
|
|
10
10
|
pageIdentifier?: Payabli.PageIdentifier;
|
|
11
11
|
roomId?: Payabli.RoomIdNotInUse;
|
|
12
12
|
isSuccess?: Payabli.IsSuccess;
|
|
13
|
-
responseText
|
|
13
|
+
responseText: Payabli.ResponseText;
|
|
14
14
|
responseData?: Payabli.BillResponseData;
|
|
15
15
|
}
|
|
@@ -11,7 +11,7 @@ export declare namespace Boarding {
|
|
|
11
11
|
baseUrl?: core.Supplier<string>;
|
|
12
12
|
apiKey?: core.Supplier<string | undefined>;
|
|
13
13
|
/** Additional headers to include in requests. */
|
|
14
|
-
headers?: Record<string, string | core.Supplier<string | undefined> | undefined>;
|
|
14
|
+
headers?: Record<string, string | core.Supplier<string | null | undefined> | null | undefined>;
|
|
15
15
|
}
|
|
16
16
|
interface RequestOptions {
|
|
17
17
|
/** The maximum time to wait for a response in seconds. */
|
|
@@ -23,7 +23,7 @@ export declare namespace Boarding {
|
|
|
23
23
|
/** Additional query string parameters to include in the request. */
|
|
24
24
|
queryParams?: Record<string, unknown>;
|
|
25
25
|
/** Additional headers to include in the request. */
|
|
26
|
-
headers?: Record<string, string | core.Supplier<string | undefined> | undefined>;
|
|
26
|
+
headers?: Record<string, string | core.Supplier<string | null | undefined> | null | undefined>;
|
|
27
27
|
}
|
|
28
28
|
}
|
|
29
29
|
export declare class Boarding {
|
|
@@ -11,7 +11,7 @@ export declare namespace ChargeBacks {
|
|
|
11
11
|
baseUrl?: core.Supplier<string>;
|
|
12
12
|
apiKey?: core.Supplier<string | undefined>;
|
|
13
13
|
/** Additional headers to include in requests. */
|
|
14
|
-
headers?: Record<string, string | core.Supplier<string | undefined> | undefined>;
|
|
14
|
+
headers?: Record<string, string | core.Supplier<string | null | undefined> | null | undefined>;
|
|
15
15
|
}
|
|
16
16
|
interface RequestOptions {
|
|
17
17
|
/** The maximum time to wait for a response in seconds. */
|
|
@@ -23,7 +23,7 @@ export declare namespace ChargeBacks {
|
|
|
23
23
|
/** Additional query string parameters to include in the request. */
|
|
24
24
|
queryParams?: Record<string, unknown>;
|
|
25
25
|
/** Additional headers to include in the request. */
|
|
26
|
-
headers?: Record<string, string | core.Supplier<string | undefined> | undefined>;
|
|
26
|
+
headers?: Record<string, string | core.Supplier<string | null | undefined> | null | undefined>;
|
|
27
27
|
}
|
|
28
28
|
}
|
|
29
29
|
export declare class ChargeBacks {
|
|
@@ -9,8 +9,7 @@ import * as Payabli from "../../../../index.mjs";
|
|
|
9
9
|
* }
|
|
10
10
|
*/
|
|
11
11
|
export interface ResponseChargeBack {
|
|
12
|
-
|
|
13
|
-
idempotencyKey?: string;
|
|
12
|
+
idempotencyKey?: Payabli.IdempotencyKey;
|
|
14
13
|
/** Array of attached files to response. */
|
|
15
14
|
attachments?: Payabli.Attachments | undefined;
|
|
16
15
|
/** Email of response submitter. */
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
|
-
import * as Payabli from "
|
|
4
|
+
import * as Payabli from "../../../index.mjs";
|
|
5
5
|
export interface ChargeBackResponse {
|
|
6
6
|
/** Object with attached files to response */
|
|
7
7
|
attachments?: Payabli.BoardingApplicationAttachments;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
export interface ChargebackMessage {
|
|
5
|
+
/** Message identifier. */
|
|
6
|
+
Id: number;
|
|
7
|
+
/** Room identifier for the message. */
|
|
8
|
+
RoomId: number;
|
|
9
|
+
/** User identifier who sent the message. */
|
|
10
|
+
UserId: number;
|
|
11
|
+
/** Name of the user who sent the message. */
|
|
12
|
+
UserName: string;
|
|
13
|
+
/** Content of the message. */
|
|
14
|
+
Content: string;
|
|
15
|
+
/** Timestamp when the message was created. */
|
|
16
|
+
CreatedAt: string;
|
|
17
|
+
/** Type of message. */
|
|
18
|
+
MessageType: number;
|
|
19
|
+
/** Additional properties of the message. */
|
|
20
|
+
MessageProperties?: Record<string, string>;
|
|
21
|
+
}
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as Payabli from "../../../index.mjs";
|
|
5
|
+
export interface ChargebackQueryRecords {
|
|
6
|
+
/** Identifier of chargeback or return. */
|
|
7
|
+
Id: number;
|
|
8
|
+
/** Date of chargeback in format YYYY-MM-DD or MM/DD/YYYY. */
|
|
9
|
+
ChargebackDate: string;
|
|
10
|
+
/** Number of case assigned to the chargeback. */
|
|
11
|
+
CaseNumber: string;
|
|
12
|
+
/** R code for returned ACH or custom code identifying the reason. */
|
|
13
|
+
ReasonCode: string;
|
|
14
|
+
/** Text describing the chargeback or ACH return reason. */
|
|
15
|
+
Reason: string;
|
|
16
|
+
/** Processor reference number to the chargeback. */
|
|
17
|
+
ReferenceNumber: string;
|
|
18
|
+
/** Last 4 digits of card or bank account involved in chargeback or return. */
|
|
19
|
+
LastFour: string;
|
|
20
|
+
AccountType: Payabli.Accounttype;
|
|
21
|
+
/**
|
|
22
|
+
* Status for chargeback or ACH return
|
|
23
|
+
*
|
|
24
|
+
* - 0: Open (chargebacks only)
|
|
25
|
+
* - 1: Pending (chargebacks only)
|
|
26
|
+
* - 2: Closed-Won (chargebacks only)
|
|
27
|
+
* - 3: Closed-Lost (chargebacks only)
|
|
28
|
+
* - 4: ACH Return (ACH only)
|
|
29
|
+
* - 5: ACH Dispute, Not Authorized (ACH only)
|
|
30
|
+
*/
|
|
31
|
+
Status: number;
|
|
32
|
+
/** Type of payment vehicle: **ach** or **card**. */
|
|
33
|
+
Method: string;
|
|
34
|
+
/** Timestamp when the register was created, in UTC. */
|
|
35
|
+
CreatedAt: Payabli.CreatedAt;
|
|
36
|
+
ReplyBy: Payabli.Replyby;
|
|
37
|
+
/** ReferenceId of the transaction in Payabli. */
|
|
38
|
+
PaymentTransId: string;
|
|
39
|
+
/** Reference to the subscription originating the transaction. */
|
|
40
|
+
ScheduleReference?: number;
|
|
41
|
+
OrderId: Payabli.OrderId;
|
|
42
|
+
/** Net amount in chargeback or ACH return. */
|
|
43
|
+
NetAmount?: Payabli.Netamountnullable;
|
|
44
|
+
TransactionTime: Payabli.TransactionTime;
|
|
45
|
+
Customer: Payabli.QueryTransactionPayorData;
|
|
46
|
+
PaymentData: Payabli.QueryPaymentData;
|
|
47
|
+
/** The paypoint's legal name. */
|
|
48
|
+
PaypointLegalname: Payabli.Legalname;
|
|
49
|
+
/** The paypoint's DBA name. */
|
|
50
|
+
PaypointDbaname: Payabli.Dbaname;
|
|
51
|
+
ParentOrgName: Payabli.OrgParentName;
|
|
52
|
+
/** The ID of the parent organization. */
|
|
53
|
+
ParentOrgId: number;
|
|
54
|
+
/** The paypoint's entryname. */
|
|
55
|
+
PaypointEntryname: Payabli.Entrypointfield;
|
|
56
|
+
/** Chargeback response records. */
|
|
57
|
+
Responses: Payabli.ChargeBackResponse[];
|
|
58
|
+
Transaction: Payabli.TransactionQueryRecords;
|
|
59
|
+
externalPaypointID?: Payabli.ExternalPaypointId;
|
|
60
|
+
pageidentifier?: Payabli.PageIdentifier;
|
|
61
|
+
/** Messages related to the chargeback. */
|
|
62
|
+
messages: Payabli.ChargebackMessage[];
|
|
63
|
+
/** Service group classification. */
|
|
64
|
+
ServiceGroup: string;
|
|
65
|
+
/** Type of dispute classification. */
|
|
66
|
+
DisputeType: string;
|
|
67
|
+
/** Name of the payment processor. */
|
|
68
|
+
ProcessorName: string;
|
|
69
|
+
}
|