From 0968fbe2794f410aba1d4f8c7a3c151377fd0bc0 Mon Sep 17 00:00:00 2001 From: eliad Date: Mon, 6 Dec 2021 14:18:38 +0200 Subject: [PATCH] added resend transaction webhooks --- src/fireblocks-sdk.ts | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/fireblocks-sdk.ts b/src/fireblocks-sdk.ts index fe26ba8d..da5b489c 100644 --- a/src/fireblocks-sdk.ts +++ b/src/fireblocks-sdk.ts @@ -825,6 +825,17 @@ export class FireblocksSDK { return await this.apiClient.issuePostRequest("/v1/webhooks/resend", {}, requestOptions); } + /** + * Resend transaction webhooks + * @param txId The transaction for which the message is sent + * @param resendCreated If true a webhook will be sent for the creation of the transaction + * @param resendStatusUpdated If true a webhook will be sent for the status of the transaction + */ + public async resendTransactionWebhooksById(txId: string, resendCreated?: boolean, resendStatusUpdated?: boolean, requestOptions?: RequestOptions): Promise { + const body = { resendCreated, resendStatusUpdated }; + return await this.apiClient.issuePostRequest(`/v1/webhooks/resend/${txId}`, body, requestOptions); + } + /** * Gets all Users for your tenant */