@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
|
@@ -0,0 +1,370 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
4
|
+
*/
|
|
5
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
10
|
+
}
|
|
11
|
+
Object.defineProperty(o, k2, desc);
|
|
12
|
+
}) : (function(o, m, k, k2) {
|
|
13
|
+
if (k2 === undefined) k2 = k;
|
|
14
|
+
o[k2] = m[k];
|
|
15
|
+
}));
|
|
16
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
17
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
18
|
+
}) : function(o, v) {
|
|
19
|
+
o["default"] = v;
|
|
20
|
+
});
|
|
21
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
22
|
+
var ownKeys = function(o) {
|
|
23
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
24
|
+
var ar = [];
|
|
25
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
26
|
+
return ar;
|
|
27
|
+
};
|
|
28
|
+
return ownKeys(o);
|
|
29
|
+
};
|
|
30
|
+
return function (mod) {
|
|
31
|
+
if (mod && mod.__esModule) return mod;
|
|
32
|
+
var result = {};
|
|
33
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
34
|
+
__setModuleDefault(result, mod);
|
|
35
|
+
return result;
|
|
36
|
+
};
|
|
37
|
+
})();
|
|
38
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
39
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
40
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
41
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
42
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
43
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
44
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
45
|
+
});
|
|
46
|
+
};
|
|
47
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
48
|
+
exports.Notificationlogs = void 0;
|
|
49
|
+
const environments = __importStar(require("../../../../environments.js"));
|
|
50
|
+
const core = __importStar(require("../../../../core/index.js"));
|
|
51
|
+
const Payabli = __importStar(require("../../../index.js"));
|
|
52
|
+
const headers_js_1 = require("../../../../core/headers.js");
|
|
53
|
+
const errors = __importStar(require("../../../../errors/index.js"));
|
|
54
|
+
class Notificationlogs {
|
|
55
|
+
constructor(_options = {}) {
|
|
56
|
+
this._options = _options;
|
|
57
|
+
}
|
|
58
|
+
/**
|
|
59
|
+
* Search notification logs with filtering and pagination.
|
|
60
|
+
* - Start date and end date cannot be more than 30 days apart
|
|
61
|
+
* - Either `orgId` or `paypointId` must be provided
|
|
62
|
+
*
|
|
63
|
+
* This endpoint requires the `notifications_create` OR `notifications_read` permission.
|
|
64
|
+
*
|
|
65
|
+
* @param {Payabli.SearchNotificationLogsRequest} request
|
|
66
|
+
* @param {Notificationlogs.RequestOptions} requestOptions - Request-specific configuration.
|
|
67
|
+
*
|
|
68
|
+
* @throws {@link Payabli.BadRequestError}
|
|
69
|
+
* @throws {@link Payabli.UnauthorizedError}
|
|
70
|
+
* @throws {@link Payabli.InternalServerError}
|
|
71
|
+
* @throws {@link Payabli.ServiceUnavailableError}
|
|
72
|
+
*
|
|
73
|
+
* @example
|
|
74
|
+
* await client.notificationlogs.searchNotificationLogs({
|
|
75
|
+
* PageSize: 20,
|
|
76
|
+
* body: {
|
|
77
|
+
* startDate: "2024-01-01T00:00:00Z",
|
|
78
|
+
* endDate: "2024-01-31T23:59:59Z",
|
|
79
|
+
* orgId: 12345,
|
|
80
|
+
* notificationEvent: "ActivatedMerchant",
|
|
81
|
+
* succeeded: true
|
|
82
|
+
* }
|
|
83
|
+
* })
|
|
84
|
+
*/
|
|
85
|
+
searchNotificationLogs(request, requestOptions) {
|
|
86
|
+
return core.HttpResponsePromise.fromPromise(this.__searchNotificationLogs(request, requestOptions));
|
|
87
|
+
}
|
|
88
|
+
__searchNotificationLogs(request, requestOptions) {
|
|
89
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
90
|
+
var _a, _b, _c;
|
|
91
|
+
const { PageSize: pageSize, Skip: skip, body: _body } = request;
|
|
92
|
+
const _queryParams = {};
|
|
93
|
+
if (pageSize != null) {
|
|
94
|
+
_queryParams["PageSize"] = pageSize.toString();
|
|
95
|
+
}
|
|
96
|
+
if (skip != null) {
|
|
97
|
+
_queryParams["Skip"] = skip.toString();
|
|
98
|
+
}
|
|
99
|
+
let _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)(Object.assign({}, (yield this._getCustomAuthorizationHeaders()))), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
100
|
+
const _response = yield core.fetcher({
|
|
101
|
+
url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.PayabliEnvironment.Sandbox, "/v2/notificationlogs"),
|
|
102
|
+
method: "POST",
|
|
103
|
+
headers: _headers,
|
|
104
|
+
contentType: "application/json",
|
|
105
|
+
queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
|
|
106
|
+
requestType: "json",
|
|
107
|
+
body: _body,
|
|
108
|
+
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
109
|
+
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
110
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
111
|
+
});
|
|
112
|
+
if (_response.ok) {
|
|
113
|
+
return { data: _response.body, rawResponse: _response.rawResponse };
|
|
114
|
+
}
|
|
115
|
+
if (_response.error.reason === "status-code") {
|
|
116
|
+
switch (_response.error.statusCode) {
|
|
117
|
+
case 400:
|
|
118
|
+
throw new Payabli.BadRequestError(_response.error.body, _response.rawResponse);
|
|
119
|
+
case 401:
|
|
120
|
+
throw new Payabli.UnauthorizedError(_response.error.body, _response.rawResponse);
|
|
121
|
+
case 500:
|
|
122
|
+
throw new Payabli.InternalServerError(_response.error.body, _response.rawResponse);
|
|
123
|
+
case 503:
|
|
124
|
+
throw new Payabli.ServiceUnavailableError(_response.error.body, _response.rawResponse);
|
|
125
|
+
default:
|
|
126
|
+
throw new errors.PayabliError({
|
|
127
|
+
statusCode: _response.error.statusCode,
|
|
128
|
+
body: _response.error.body,
|
|
129
|
+
rawResponse: _response.rawResponse,
|
|
130
|
+
});
|
|
131
|
+
}
|
|
132
|
+
}
|
|
133
|
+
switch (_response.error.reason) {
|
|
134
|
+
case "non-json":
|
|
135
|
+
throw new errors.PayabliError({
|
|
136
|
+
statusCode: _response.error.statusCode,
|
|
137
|
+
body: _response.error.rawBody,
|
|
138
|
+
rawResponse: _response.rawResponse,
|
|
139
|
+
});
|
|
140
|
+
case "timeout":
|
|
141
|
+
throw new errors.PayabliTimeoutError("Timeout exceeded when calling POST /v2/notificationlogs.");
|
|
142
|
+
case "unknown":
|
|
143
|
+
throw new errors.PayabliError({
|
|
144
|
+
message: _response.error.errorMessage,
|
|
145
|
+
rawResponse: _response.rawResponse,
|
|
146
|
+
});
|
|
147
|
+
}
|
|
148
|
+
});
|
|
149
|
+
}
|
|
150
|
+
/**
|
|
151
|
+
* Get detailed information for a specific notification log entry.
|
|
152
|
+
* This endpoint requires the `notifications_create` OR `notifications_read` permission.
|
|
153
|
+
*
|
|
154
|
+
* @param {string} uuid - The notification log entry.
|
|
155
|
+
* @param {Notificationlogs.RequestOptions} requestOptions - Request-specific configuration.
|
|
156
|
+
*
|
|
157
|
+
* @throws {@link Payabli.BadRequestError}
|
|
158
|
+
* @throws {@link Payabli.UnauthorizedError}
|
|
159
|
+
* @throws {@link Payabli.InternalServerError}
|
|
160
|
+
* @throws {@link Payabli.ServiceUnavailableError}
|
|
161
|
+
*
|
|
162
|
+
* @example
|
|
163
|
+
* await client.notificationlogs.getNotificationLog("550e8400-e29b-41d4-a716-446655440000")
|
|
164
|
+
*/
|
|
165
|
+
getNotificationLog(uuid, requestOptions) {
|
|
166
|
+
return core.HttpResponsePromise.fromPromise(this.__getNotificationLog(uuid, requestOptions));
|
|
167
|
+
}
|
|
168
|
+
__getNotificationLog(uuid, requestOptions) {
|
|
169
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
170
|
+
var _a, _b, _c;
|
|
171
|
+
let _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)(Object.assign({}, (yield this._getCustomAuthorizationHeaders()))), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
172
|
+
const _response = yield core.fetcher({
|
|
173
|
+
url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.PayabliEnvironment.Sandbox, `/v2/notificationlogs/${encodeURIComponent(uuid)}`),
|
|
174
|
+
method: "GET",
|
|
175
|
+
headers: _headers,
|
|
176
|
+
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
177
|
+
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
178
|
+
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
179
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
180
|
+
});
|
|
181
|
+
if (_response.ok) {
|
|
182
|
+
return { data: _response.body, rawResponse: _response.rawResponse };
|
|
183
|
+
}
|
|
184
|
+
if (_response.error.reason === "status-code") {
|
|
185
|
+
switch (_response.error.statusCode) {
|
|
186
|
+
case 400:
|
|
187
|
+
throw new Payabli.BadRequestError(_response.error.body, _response.rawResponse);
|
|
188
|
+
case 401:
|
|
189
|
+
throw new Payabli.UnauthorizedError(_response.error.body, _response.rawResponse);
|
|
190
|
+
case 500:
|
|
191
|
+
throw new Payabli.InternalServerError(_response.error.body, _response.rawResponse);
|
|
192
|
+
case 503:
|
|
193
|
+
throw new Payabli.ServiceUnavailableError(_response.error.body, _response.rawResponse);
|
|
194
|
+
default:
|
|
195
|
+
throw new errors.PayabliError({
|
|
196
|
+
statusCode: _response.error.statusCode,
|
|
197
|
+
body: _response.error.body,
|
|
198
|
+
rawResponse: _response.rawResponse,
|
|
199
|
+
});
|
|
200
|
+
}
|
|
201
|
+
}
|
|
202
|
+
switch (_response.error.reason) {
|
|
203
|
+
case "non-json":
|
|
204
|
+
throw new errors.PayabliError({
|
|
205
|
+
statusCode: _response.error.statusCode,
|
|
206
|
+
body: _response.error.rawBody,
|
|
207
|
+
rawResponse: _response.rawResponse,
|
|
208
|
+
});
|
|
209
|
+
case "timeout":
|
|
210
|
+
throw new errors.PayabliTimeoutError("Timeout exceeded when calling GET /v2/notificationlogs/{uuid}.");
|
|
211
|
+
case "unknown":
|
|
212
|
+
throw new errors.PayabliError({
|
|
213
|
+
message: _response.error.errorMessage,
|
|
214
|
+
rawResponse: _response.rawResponse,
|
|
215
|
+
});
|
|
216
|
+
}
|
|
217
|
+
});
|
|
218
|
+
}
|
|
219
|
+
/**
|
|
220
|
+
* Retry sending a specific notification.
|
|
221
|
+
*
|
|
222
|
+
* **Permissions:** notifications_create
|
|
223
|
+
*
|
|
224
|
+
* @param {string} uuid - Unique id
|
|
225
|
+
* @param {Notificationlogs.RequestOptions} requestOptions - Request-specific configuration.
|
|
226
|
+
*
|
|
227
|
+
* @throws {@link Payabli.BadRequestError}
|
|
228
|
+
* @throws {@link Payabli.UnauthorizedError}
|
|
229
|
+
* @throws {@link Payabli.InternalServerError}
|
|
230
|
+
* @throws {@link Payabli.ServiceUnavailableError}
|
|
231
|
+
*
|
|
232
|
+
* @example
|
|
233
|
+
* await client.notificationlogs.retryNotificationLog("550e8400-e29b-41d4-a716-446655440000")
|
|
234
|
+
*/
|
|
235
|
+
retryNotificationLog(uuid, requestOptions) {
|
|
236
|
+
return core.HttpResponsePromise.fromPromise(this.__retryNotificationLog(uuid, requestOptions));
|
|
237
|
+
}
|
|
238
|
+
__retryNotificationLog(uuid, requestOptions) {
|
|
239
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
240
|
+
var _a, _b, _c;
|
|
241
|
+
let _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)(Object.assign({}, (yield this._getCustomAuthorizationHeaders()))), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
242
|
+
const _response = yield core.fetcher({
|
|
243
|
+
url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.PayabliEnvironment.Sandbox, `/v2/notificationlogs/${encodeURIComponent(uuid)}/retry`),
|
|
244
|
+
method: "GET",
|
|
245
|
+
headers: _headers,
|
|
246
|
+
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
247
|
+
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
248
|
+
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
249
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
250
|
+
});
|
|
251
|
+
if (_response.ok) {
|
|
252
|
+
return { data: _response.body, rawResponse: _response.rawResponse };
|
|
253
|
+
}
|
|
254
|
+
if (_response.error.reason === "status-code") {
|
|
255
|
+
switch (_response.error.statusCode) {
|
|
256
|
+
case 400:
|
|
257
|
+
throw new Payabli.BadRequestError(_response.error.body, _response.rawResponse);
|
|
258
|
+
case 401:
|
|
259
|
+
throw new Payabli.UnauthorizedError(_response.error.body, _response.rawResponse);
|
|
260
|
+
case 500:
|
|
261
|
+
throw new Payabli.InternalServerError(_response.error.body, _response.rawResponse);
|
|
262
|
+
case 503:
|
|
263
|
+
throw new Payabli.ServiceUnavailableError(_response.error.body, _response.rawResponse);
|
|
264
|
+
default:
|
|
265
|
+
throw new errors.PayabliError({
|
|
266
|
+
statusCode: _response.error.statusCode,
|
|
267
|
+
body: _response.error.body,
|
|
268
|
+
rawResponse: _response.rawResponse,
|
|
269
|
+
});
|
|
270
|
+
}
|
|
271
|
+
}
|
|
272
|
+
switch (_response.error.reason) {
|
|
273
|
+
case "non-json":
|
|
274
|
+
throw new errors.PayabliError({
|
|
275
|
+
statusCode: _response.error.statusCode,
|
|
276
|
+
body: _response.error.rawBody,
|
|
277
|
+
rawResponse: _response.rawResponse,
|
|
278
|
+
});
|
|
279
|
+
case "timeout":
|
|
280
|
+
throw new errors.PayabliTimeoutError("Timeout exceeded when calling GET /v2/notificationlogs/{uuid}/retry.");
|
|
281
|
+
case "unknown":
|
|
282
|
+
throw new errors.PayabliError({
|
|
283
|
+
message: _response.error.errorMessage,
|
|
284
|
+
rawResponse: _response.rawResponse,
|
|
285
|
+
});
|
|
286
|
+
}
|
|
287
|
+
});
|
|
288
|
+
}
|
|
289
|
+
/**
|
|
290
|
+
* Retry sending multiple notifications (maximum 50 IDs).
|
|
291
|
+
* This is an async process, so use the search endpoint again to check the notification status.
|
|
292
|
+
*
|
|
293
|
+
* This endpoint requires the `notifications_create` permission.
|
|
294
|
+
*
|
|
295
|
+
* @param {Payabli.BulkRetryRequest} request
|
|
296
|
+
* @param {Notificationlogs.RequestOptions} requestOptions - Request-specific configuration.
|
|
297
|
+
*
|
|
298
|
+
* @throws {@link Payabli.BadRequestError}
|
|
299
|
+
* @throws {@link Payabli.UnauthorizedError}
|
|
300
|
+
* @throws {@link Payabli.InternalServerError}
|
|
301
|
+
* @throws {@link Payabli.ServiceUnavailableError}
|
|
302
|
+
*
|
|
303
|
+
* @example
|
|
304
|
+
* await client.notificationlogs.bulkRetryNotificationLogs(["550e8400-e29b-41d4-a716-446655440000", "550e8400-e29b-41d4-a716-446655440001", "550e8400-e29b-41d4-a716-446655440002"])
|
|
305
|
+
*/
|
|
306
|
+
bulkRetryNotificationLogs(request, requestOptions) {
|
|
307
|
+
return core.HttpResponsePromise.fromPromise(this.__bulkRetryNotificationLogs(request, requestOptions));
|
|
308
|
+
}
|
|
309
|
+
__bulkRetryNotificationLogs(request, requestOptions) {
|
|
310
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
311
|
+
var _a, _b, _c;
|
|
312
|
+
let _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)(Object.assign({}, (yield this._getCustomAuthorizationHeaders()))), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
313
|
+
const _response = yield core.fetcher({
|
|
314
|
+
url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.PayabliEnvironment.Sandbox, "/v2/notificationlogs/retry"),
|
|
315
|
+
method: "POST",
|
|
316
|
+
headers: _headers,
|
|
317
|
+
contentType: "application/json",
|
|
318
|
+
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
319
|
+
requestType: "json",
|
|
320
|
+
body: request,
|
|
321
|
+
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
322
|
+
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
323
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
324
|
+
});
|
|
325
|
+
if (_response.ok) {
|
|
326
|
+
return { data: undefined, rawResponse: _response.rawResponse };
|
|
327
|
+
}
|
|
328
|
+
if (_response.error.reason === "status-code") {
|
|
329
|
+
switch (_response.error.statusCode) {
|
|
330
|
+
case 400:
|
|
331
|
+
throw new Payabli.BadRequestError(_response.error.body, _response.rawResponse);
|
|
332
|
+
case 401:
|
|
333
|
+
throw new Payabli.UnauthorizedError(_response.error.body, _response.rawResponse);
|
|
334
|
+
case 500:
|
|
335
|
+
throw new Payabli.InternalServerError(_response.error.body, _response.rawResponse);
|
|
336
|
+
case 503:
|
|
337
|
+
throw new Payabli.ServiceUnavailableError(_response.error.body, _response.rawResponse);
|
|
338
|
+
default:
|
|
339
|
+
throw new errors.PayabliError({
|
|
340
|
+
statusCode: _response.error.statusCode,
|
|
341
|
+
body: _response.error.body,
|
|
342
|
+
rawResponse: _response.rawResponse,
|
|
343
|
+
});
|
|
344
|
+
}
|
|
345
|
+
}
|
|
346
|
+
switch (_response.error.reason) {
|
|
347
|
+
case "non-json":
|
|
348
|
+
throw new errors.PayabliError({
|
|
349
|
+
statusCode: _response.error.statusCode,
|
|
350
|
+
body: _response.error.rawBody,
|
|
351
|
+
rawResponse: _response.rawResponse,
|
|
352
|
+
});
|
|
353
|
+
case "timeout":
|
|
354
|
+
throw new errors.PayabliTimeoutError("Timeout exceeded when calling POST /v2/notificationlogs/retry.");
|
|
355
|
+
case "unknown":
|
|
356
|
+
throw new errors.PayabliError({
|
|
357
|
+
message: _response.error.errorMessage,
|
|
358
|
+
rawResponse: _response.rawResponse,
|
|
359
|
+
});
|
|
360
|
+
}
|
|
361
|
+
});
|
|
362
|
+
}
|
|
363
|
+
_getCustomAuthorizationHeaders() {
|
|
364
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
365
|
+
const apiKeyValue = yield core.Supplier.get(this._options.apiKey);
|
|
366
|
+
return { requestToken: apiKeyValue };
|
|
367
|
+
});
|
|
368
|
+
}
|
|
369
|
+
}
|
|
370
|
+
exports.Notificationlogs = Notificationlogs;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./requests/index.js"), exports);
|
package/dist/cjs/api/resources/notificationlogs/client/requests/SearchNotificationLogsRequest.d.ts
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as Payabli from "../../../../index.js";
|
|
5
|
+
/**
|
|
6
|
+
* @example
|
|
7
|
+
* {
|
|
8
|
+
* PageSize: 20,
|
|
9
|
+
* body: {
|
|
10
|
+
* startDate: "2024-01-01T00:00:00Z",
|
|
11
|
+
* endDate: "2024-01-31T23:59:59Z",
|
|
12
|
+
* orgId: 12345,
|
|
13
|
+
* notificationEvent: "ActivatedMerchant",
|
|
14
|
+
* succeeded: true
|
|
15
|
+
* }
|
|
16
|
+
* }
|
|
17
|
+
*/
|
|
18
|
+
export interface SearchNotificationLogsRequest {
|
|
19
|
+
PageSize?: Payabli.Pagesize;
|
|
20
|
+
/** The number of records to skip before starting to collect the result set. */
|
|
21
|
+
Skip?: number;
|
|
22
|
+
body: Payabli.NotificationLogSearchRequest;
|
|
23
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { type SearchNotificationLogsRequest } from "./SearchNotificationLogsRequest.js";
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./types/index.js"), exports);
|
|
18
|
+
__exportStar(require("./client/index.js"), exports);
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
export interface NotificationLog {
|
|
5
|
+
/** The unique identifier for the notification. */
|
|
6
|
+
id: string;
|
|
7
|
+
/** The ID of the organization that the notification belongs to. */
|
|
8
|
+
orgId: number | null;
|
|
9
|
+
/** The ID of the paypoint that the notification is related to. */
|
|
10
|
+
paypointId: number | null;
|
|
11
|
+
/** The event that triggered the notification. */
|
|
12
|
+
notificationEvent: string | null;
|
|
13
|
+
/** The target URL for the notification. */
|
|
14
|
+
target: string | null;
|
|
15
|
+
/** The HTTP response status of the notification. */
|
|
16
|
+
responseStatus: string | null;
|
|
17
|
+
/** Indicates whether the notification was successful. */
|
|
18
|
+
success: boolean;
|
|
19
|
+
/** Contains the body of the notification. */
|
|
20
|
+
jobData: string | null;
|
|
21
|
+
/** The date and time when the notification was created. */
|
|
22
|
+
createdDate: string;
|
|
23
|
+
/** The date and time when the notification was successfully delivered. */
|
|
24
|
+
successDate: string | null;
|
|
25
|
+
/** The date and time when the notification last failed. */
|
|
26
|
+
lastFailedDate: string | null;
|
|
27
|
+
/** Indicates whether the notification is currently in progress. */
|
|
28
|
+
isInProgress: boolean;
|
|
29
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as Payabli from "../../../index.js";
|
|
5
|
+
export interface NotificationLogDetail extends Payabli.NotificationLog {
|
|
6
|
+
webHeaders?: Payabli.StringStringKeyValuePair[];
|
|
7
|
+
responseHeaders?: Payabli.KeyValueArray[];
|
|
8
|
+
responseContent?: string;
|
|
9
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
export interface NotificationLogSearchRequest {
|
|
5
|
+
/** The start date for the search. */
|
|
6
|
+
startDate: string;
|
|
7
|
+
/** The end date for the search. */
|
|
8
|
+
endDate: string;
|
|
9
|
+
/** The type of notification event to filter by. */
|
|
10
|
+
notificationEvent?: string;
|
|
11
|
+
/** Indicates whether the notification was successful. */
|
|
12
|
+
succeeded?: boolean;
|
|
13
|
+
/** The ID of the organization to filter by. */
|
|
14
|
+
orgId?: number;
|
|
15
|
+
/** The ID of the paypoint to filter by. */
|
|
16
|
+
paypointId?: number;
|
|
17
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./NotificationLog.js"), exports);
|
|
18
|
+
__exportStar(require("./NotificationLogDetail.js"), exports);
|
|
19
|
+
__exportStar(require("./StringStringKeyValuePair.js"), exports);
|
|
20
|
+
__exportStar(require("./KeyValueArray.js"), exports);
|
|
21
|
+
__exportStar(require("./NotificationLogSearchRequest.js"), exports);
|
|
22
|
+
__exportStar(require("./BulkRetryRequest.js"), exports);
|
|
@@ -11,7 +11,7 @@ export declare namespace Ocr {
|
|
|
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 Ocr {
|
|
|
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 Ocr {
|
|
@@ -3,9 +3,9 @@
|
|
|
3
3
|
*/
|
|
4
4
|
import * as Payabli from "../../../index.js";
|
|
5
5
|
export interface PayabliApiResponseOcr {
|
|
6
|
-
isSuccess
|
|
7
|
-
responseText
|
|
8
|
-
responseCode
|
|
6
|
+
isSuccess: Payabli.IsSuccess;
|
|
7
|
+
responseText: Payabli.ResponseText;
|
|
8
|
+
responseCode: Payabli.Responsecode;
|
|
9
9
|
/** Details of the OCR processing result */
|
|
10
10
|
responseData?: Payabli.OcrResponseData;
|
|
11
11
|
}
|