Skip to content

Commit

Permalink
Merge pull request #66 from fireblocks/resend-webhook-by-tx-id
Browse files Browse the repository at this point in the history
Added resend transaction webhooks
  • Loading branch information
yarinvak authored Jan 3, 2022
2 parents 2d972ca + 0968fbe commit 95497a3
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/fireblocks-sdk.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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<ResendWebhooksResponse> {
const body = { resendCreated, resendStatusUpdated };
return await this.apiClient.issuePostRequest(`/v1/webhooks/resend/${txId}`, body, requestOptions);
}

/**
* Gets all Users for your tenant
*/
Expand Down

0 comments on commit 95497a3

Please sign in to comment.