UNPKG

@atharahmed/cryptomus

Version:

Node wrapper for cryptomus api

462 lines (449 loc) 64.5 kB
<!DOCTYPE html><html class="default" lang="en"><head><meta charSet="utf-8"/><meta http-equiv="x-ua-compatible" content="IE=edge"/><title>Cryptomus | @qweme32/cryptomus</title><meta name="description" content="Documentation for @qweme32/cryptomus"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="stylesheet" href="../assets/style.css"/><link rel="stylesheet" href="../assets/highlight.css"/><link rel="stylesheet" href="../assets/my-theme.css"/><script defer src="../assets/main.js"></script><script async src="../assets/search.js" id="search-script"></script><script async src="../assets/navigation.js" id="tsd-nav-script"></script></head><body><script>console.log(`Loaded ${location.href}`)</script><script>document.documentElement.dataset.theme = localStorage.getItem("tsd-theme") || "os"</script><header class="tsd-page-toolbar"> <div class="tsd-toolbar-contents container"> <div class="table-cell" id="tsd-search" data-base=".."> <div class="field"><label for="tsd-search-field" class="tsd-widget tsd-toolbar-icon search no-caption"><svg width="16" height="16" viewBox="0 0 16 16" fill="none"><use href="#icon-search"></use></svg></label><input type="text" id="tsd-search-field" aria-label="Search"/></div> <div class="field"> <div id="tsd-toolbar-links"></div></div> <ul class="results"> <li class="state loading">Preparing search index...</li> <li class="state failure">The search index is not available</li></ul><a href="../index.html" class="title">@qweme32/cryptomus - v</a> <div class="tsd-navigation settings"> <details class="tsd-index-accordion"><summary class="tsd-accordion-summary"> <h3><svg width="20" height="20" viewBox="0 0 24 24" fill="none"><use href="#icon-chevronDown"></use></svg>Settings</h3></summary> <div class="tsd-accordion-details"> <div class="tsd-filter-visibility"> <h4 class="uppercase">Member Visibility</h4><form> <ul id="tsd-filter-options"> <li class="tsd-filter-item"><label class="tsd-filter-input"><input type="checkbox" id="tsd-filter-protected" name="protected"/><svg width="32" height="32" viewBox="0 0 32 32" aria-hidden="true"><use href="#icon-checkbox"></use></svg><span>Protected</span></label></li> <li class="tsd-filter-item"><label class="tsd-filter-input"><input type="checkbox" id="tsd-filter-private" name="private"/><svg width="32" height="32" viewBox="0 0 32 32" aria-hidden="true"><use href="#icon-checkbox"></use></svg><span>Private</span></label></li> <li class="tsd-filter-item"><label class="tsd-filter-input"><input type="checkbox" id="tsd-filter-inherited" name="inherited" checked/><svg width="32" height="32" viewBox="0 0 32 32" aria-hidden="true"><use href="#icon-checkbox"></use></svg><span>Inherited</span></label></li> <li class="tsd-filter-item"><label class="tsd-filter-input"><input type="checkbox" id="tsd-filter-external" name="external"/><svg width="32" height="32" viewBox="0 0 32 32" aria-hidden="true"><use href="#icon-checkbox"></use></svg><span>External</span></label></li></ul></form></div> <div class="tsd-theme-toggle"> <h4 class="uppercase">Theme</h4><select id="tsd-theme"><option value="os">OS</option><option value="light">Light</option><option value="dark">Dark</option></select></div></div></details></div></div> <div class="table-cell" id="tsd-widgets"><a href="src/template/toolbar#" class="tsd-widget tsd-toolbar-icon menu no-caption" data-toggle="menu" aria-label="Menu"><svg width="16" height="16" viewBox="0 0 16 16" fill="none"><use href="#icon-menu"></use></svg></a></div></div></header> <div class="container container-main"> <div class="col-content"> <div class="tsd-page-title"> <ul class="tsd-breadcrumb"> <li><a href="../index.html">@qweme32/cryptomus</a></li> <li><a href="../modules/index.html">index</a></li> <li><a href="index.Cryptomus.html">Cryptomus</a></li></ul> <h1>Class Cryptomus</h1></div> <section class="tsd-panel tsd-hierarchy"> <h4>Hierarchy</h4> <ul class="tsd-hierarchy"> <li><span class="target">Cryptomus</span></li></ul></section> <section class="tsd-panel-group tsd-index-group"> <section class="tsd-panel tsd-index-panel"> <details class="tsd-index-content tsd-index-accordion" open><summary class="tsd-accordion-summary tsd-index-summary"> <h5 class="tsd-index-heading uppercase" role="button" aria-expanded="false" tabIndex=0><svg width="16" height="16" viewBox="0 0 16 16" fill="none"><use href="#icon-chevronSmall"></use></svg> Index</h5></summary> <div class="tsd-accordion-details"> <section class="tsd-index-section"> <h3 class="tsd-index-heading">Constructors</h3> <div class="tsd-index-list"><a href="index.Cryptomus.html#constructor" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-512"></use></svg><span>constructor</span></a> </div></section> <section class="tsd-index-section"> <h3 class="tsd-index-heading">Properties</h3> <div class="tsd-index-list"><a href="index.Cryptomus.html#merchant" class="tsd-index-link tsd-is-private"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-1024"></use></svg><span>merchant</span></a> <a href="index.Cryptomus.html#paymentToken" class="tsd-index-link tsd-is-private"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-1024"></use></svg><span>payment<wbr/>Token</span></a> <a href="index.Cryptomus.html#payoutToken" class="tsd-index-link tsd-is-private"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-1024"></use></svg><span>payout<wbr/>Token</span></a> </div></section> <section class="tsd-index-section"> <h3 class="tsd-index-heading">Methods</h3> <div class="tsd-index-list"><a href="index.Cryptomus.html#blockStaticWallet" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-2048"></use></svg><span>block<wbr/>Static<wbr/>Wallet</span></a> <a href="index.Cryptomus.html#createPayment" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-2048"></use></svg><span>create<wbr/>Payment</span></a> <a href="index.Cryptomus.html#createStaticWallet" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-2048"></use></svg><span>create<wbr/>Static<wbr/>Wallet</span></a> <a href="index.Cryptomus.html#genQr" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-2048"></use></svg><span>gen<wbr/>Qr</span></a> <a href="index.Cryptomus.html#getPayment" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-2048"></use></svg><span>get<wbr/>Payment</span></a> <a href="index.Cryptomus.html#makeSignatue" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-2048"></use></svg><span>make<wbr/>Signatue</span></a> <a href="index.Cryptomus.html#refundFromBlockedWallet" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-2048"></use></svg><span>refund<wbr/>From<wbr/>Blocked<wbr/>Wallet</span></a> <a href="index.Cryptomus.html#refundPayment" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-2048"></use></svg><span>refund<wbr/>Payment</span></a> <a href="index.Cryptomus.html#request" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-2048"></use></svg><span>request</span></a> <a href="index.Cryptomus.html#resendWebhook" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-2048"></use></svg><span>resend<wbr/>Webhook</span></a> <a href="index.Cryptomus.html#testPaymentWebhook" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-2048"></use></svg><span>test<wbr/>Payment<wbr/>Webhook</span></a> <a href="index.Cryptomus.html#testPayoutWebhook" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-2048"></use></svg><span>test<wbr/>Payout<wbr/>Webhook</span></a> <a href="index.Cryptomus.html#verifySignatue" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-2048"></use></svg><span>verify<wbr/>Signatue</span></a> </div></section></div></details></section></section> <section class="tsd-panel-group tsd-member-group"> <h2>Constructors</h2> <section class="tsd-panel tsd-member"><a id="constructor" class="tsd-anchor"></a> <h3 class="tsd-anchor-link"><span>constructor</span><a href="#constructor" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></h3> <ul class="tsd-signatures"> <li class="tsd-signature tsd-anchor-link" id="constructor.new_Cryptomus"><span class="tsd-kind-constructor-signature">new <wbr/>Cryptomus</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">merchant</span>, <span class="tsd-kind-parameter">paymentToken</span>, <span class="tsd-kind-parameter">payoutToken</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><a href="index.Cryptomus.html" class="tsd-signature-type tsd-kind-class">Cryptomus</a><a href="#constructor.new_Cryptomus" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></li> <li class="tsd-description"> <div class="tsd-parameters"> <h4 class="tsd-parameters-title">Parameters</h4> <ul class="tsd-parameter-list"> <li> <h5><span class="tsd-kind-parameter">merchant</span>: <span class="tsd-signature-type">string</span></h5></li> <li> <h5><span class="tsd-kind-parameter">paymentToken</span>: <span class="tsd-signature-type">string</span></h5></li> <li> <h5><span class="tsd-kind-parameter">payoutToken</span>: <span class="tsd-signature-type">string</span></h5></li></ul></div> <h4 class="tsd-returns-title">Returns <a href="index.Cryptomus.html" class="tsd-signature-type tsd-kind-class">Cryptomus</a></h4></li></ul></section></section> <section class="tsd-panel-group tsd-member-group"> <h2>Properties</h2> <section class="tsd-panel tsd-member tsd-is-private"><a id="merchant" class="tsd-anchor"></a> <h3 class="tsd-anchor-link"><code class="tsd-tag ts-flagPrivate">Private</code> <code class="tsd-tag ts-flagReadonly">Readonly</code> <span>merchant</span><a href="#merchant" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></h3> <div class="tsd-signature"><span class="tsd-kind-property">merchant</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span></div></section> <section class="tsd-panel tsd-member tsd-is-private"><a id="paymentToken" class="tsd-anchor"></a> <h3 class="tsd-anchor-link"><code class="tsd-tag ts-flagPrivate">Private</code> <code class="tsd-tag ts-flagReadonly">Readonly</code> <span>payment<wbr/>Token</span><a href="#paymentToken" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></h3> <div class="tsd-signature"><span class="tsd-kind-property">payment<wbr/>Token</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span></div></section> <section class="tsd-panel tsd-member tsd-is-private"><a id="payoutToken" class="tsd-anchor"></a> <h3 class="tsd-anchor-link"><code class="tsd-tag ts-flagPrivate">Private</code> <code class="tsd-tag ts-flagReadonly">Readonly</code> <span>payout<wbr/>Token</span><a href="#payoutToken" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></h3> <div class="tsd-signature"><span class="tsd-kind-property">payout<wbr/>Token</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span></div></section></section> <section class="tsd-panel-group tsd-member-group"> <h2>Methods</h2> <section class="tsd-panel tsd-member"><a id="blockStaticWallet" class="tsd-anchor"></a> <h3 class="tsd-anchor-link"><span>block<wbr/>Static<wbr/>Wallet</span><a href="#blockStaticWallet" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></h3> <ul class="tsd-signatures"> <li class="tsd-signature tsd-anchor-link" id="blockStaticWallet.blockStaticWallet-1"><span class="tsd-kind-call-signature">block<wbr/>Static<wbr/>Wallet</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">options</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type ">Promise</span><span class="tsd-signature-symbol">&lt;</span><a href="../interfaces/types.I_BLOCK_STATIC_WALLET_RESPONSE.html" class="tsd-signature-type tsd-kind-interface">I_BLOCK_STATIC_WALLET_RESPONSE</a><span class="tsd-signature-symbol">&gt;</span><a href="#blockStaticWallet.blockStaticWallet-1" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></li> <li class="tsd-description"> <div class="tsd-comment tsd-typography"><p>Blocks a static wallet.</p> </div> <div class="tsd-parameters"> <h4 class="tsd-parameters-title">Parameters</h4> <ul class="tsd-parameter-list"> <li> <h5><span class="tsd-kind-parameter">options</span>: <a href="../interfaces/types.I_BLOCK_STATIC_WALLET_REQUEST.html" class="tsd-signature-type tsd-kind-interface">I_BLOCK_STATIC_WALLET_REQUEST</a></h5> <div class="tsd-comment tsd-typography"><p>The options for blocking the wallet.</p> </div> <div class="tsd-comment tsd-typography"></div></li></ul></div> <h4 class="tsd-returns-title">Returns <span class="tsd-signature-type ">Promise</span><span class="tsd-signature-symbol">&lt;</span><a href="../interfaces/types.I_BLOCK_STATIC_WALLET_RESPONSE.html" class="tsd-signature-type tsd-kind-interface">I_BLOCK_STATIC_WALLET_RESPONSE</a><span class="tsd-signature-symbol">&gt;</span></h4><ul> <li>A promise that resolves to the response of the blocking operation.</li> </ul> <div class="tsd-comment tsd-typography"></div></li></ul></section> <section class="tsd-panel tsd-member"><a id="createPayment" class="tsd-anchor"></a> <h3 class="tsd-anchor-link"><span>create<wbr/>Payment</span><a href="#createPayment" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></h3> <ul class="tsd-signatures"> <li class="tsd-signature tsd-anchor-link" id="createPayment.createPayment-1"><span class="tsd-kind-call-signature">create<wbr/>Payment</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">options</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type ">Promise</span><span class="tsd-signature-symbol">&lt;</span><a href="../interfaces/types.I_CREATE_PAYMENT_RESPONSE.html" class="tsd-signature-type tsd-kind-interface">I_CREATE_PAYMENT_RESPONSE</a><span class="tsd-signature-symbol">&gt;</span><a href="#createPayment.createPayment-1" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></li> <li class="tsd-description"> <div class="tsd-comment tsd-typography"><p>Creates a payment.</p> </div> <div class="tsd-parameters"> <h4 class="tsd-parameters-title">Parameters</h4> <ul class="tsd-parameter-list"> <li> <h5><span class="tsd-kind-parameter">options</span>: <a href="../interfaces/types.I_CREATE_PAYMENT_REQUEST.html" class="tsd-signature-type tsd-kind-interface">I_CREATE_PAYMENT_REQUEST</a></h5> <div class="tsd-comment tsd-typography"><p>The payment options.</p> </div> <div class="tsd-comment tsd-typography"></div></li></ul></div> <h4 class="tsd-returns-title">Returns <span class="tsd-signature-type ">Promise</span><span class="tsd-signature-symbol">&lt;</span><a href="../interfaces/types.I_CREATE_PAYMENT_RESPONSE.html" class="tsd-signature-type tsd-kind-interface">I_CREATE_PAYMENT_RESPONSE</a><span class="tsd-signature-symbol">&gt;</span></h4><p>The response of creating a payment.</p> <div class="tsd-comment tsd-typography"></div></li></ul></section> <section class="tsd-panel tsd-member"><a id="createStaticWallet" class="tsd-anchor"></a> <h3 class="tsd-anchor-link"><span>create<wbr/>Static<wbr/>Wallet</span><a href="#createStaticWallet" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></h3> <ul class="tsd-signatures"> <li class="tsd-signature tsd-anchor-link" id="createStaticWallet.createStaticWallet-1"><span class="tsd-kind-call-signature">create<wbr/>Static<wbr/>Wallet</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">options</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type ">Promise</span><span class="tsd-signature-symbol">&lt;</span><a href="../interfaces/types.I_CREATE_STATIC_WALLET_RESPONSE.html" class="tsd-signature-type tsd-kind-interface">I_CREATE_STATIC_WALLET_RESPONSE</a><span class="tsd-signature-symbol">&gt;</span><a href="#createStaticWallet.createStaticWallet-1" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></li> <li class="tsd-description"> <div class="tsd-comment tsd-typography"><p>Creates a static wallet.</p> </div> <div class="tsd-parameters"> <h4 class="tsd-parameters-title">Parameters</h4> <ul class="tsd-parameter-list"> <li> <h5><span class="tsd-kind-parameter">options</span>: <a href="../interfaces/types.I_CREATE_STATIC_WALLET_REQUEST.html" class="tsd-signature-type tsd-kind-interface">I_CREATE_STATIC_WALLET_REQUEST</a></h5> <div class="tsd-comment tsd-typography"><p>The options for creating the static wallet.</p> </div> <div class="tsd-comment tsd-typography"></div></li></ul></div> <h4 class="tsd-returns-title">Returns <span class="tsd-signature-type ">Promise</span><span class="tsd-signature-symbol">&lt;</span><a href="../interfaces/types.I_CREATE_STATIC_WALLET_RESPONSE.html" class="tsd-signature-type tsd-kind-interface">I_CREATE_STATIC_WALLET_RESPONSE</a><span class="tsd-signature-symbol">&gt;</span></h4><p>A promise that resolves with the response of creating the static wallet.</p> <div class="tsd-comment tsd-typography"></div></li></ul></section> <section class="tsd-panel tsd-member"><a id="genQr" class="tsd-anchor"></a> <h3 class="tsd-anchor-link"><span>gen<wbr/>Qr</span><a href="#genQr" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></h3> <ul class="tsd-signatures"> <li class="tsd-signature tsd-anchor-link" id="genQr.genQr-1"><span class="tsd-kind-call-signature">gen<wbr/>Qr</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">options</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type ">Promise</span><span class="tsd-signature-symbol">&lt;</span><a href="../interfaces/types.I_GEN_QR_RESPONSE.html" class="tsd-signature-type tsd-kind-interface">I_GEN_QR_RESPONSE</a><span class="tsd-signature-symbol">&gt;</span><a href="#genQr.genQr-1" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></li> <li class="tsd-description"> <div class="tsd-comment tsd-typography"><p>Generates a QR code based on the provided options.</p> </div> <div class="tsd-parameters"> <h4 class="tsd-parameters-title">Parameters</h4> <ul class="tsd-parameter-list"> <li> <h5><span class="tsd-kind-parameter">options</span>: <a href="../interfaces/types.I_GEN_QR_REQUEST.html" class="tsd-signature-type tsd-kind-interface">I_GEN_QR_REQUEST</a></h5> <div class="tsd-comment tsd-typography"><p>The options for generating the QR code.</p> </div> <div class="tsd-comment tsd-typography"></div></li></ul></div> <h4 class="tsd-returns-title">Returns <span class="tsd-signature-type ">Promise</span><span class="tsd-signature-symbol">&lt;</span><a href="../interfaces/types.I_GEN_QR_RESPONSE.html" class="tsd-signature-type tsd-kind-interface">I_GEN_QR_RESPONSE</a><span class="tsd-signature-symbol">&gt;</span></h4><ul> <li>A promise that resolves to the generated QR code response.</li> </ul> <div class="tsd-comment tsd-typography"></div></li></ul></section> <section class="tsd-panel tsd-member"><a id="getPayment" class="tsd-anchor"></a> <h3 class="tsd-anchor-link"><span>get<wbr/>Payment</span><a href="#getPayment" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></h3> <ul class="tsd-signatures"> <li class="tsd-signature tsd-anchor-link" id="getPayment.getPayment-1"><span class="tsd-kind-call-signature">get<wbr/>Payment</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">options</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type ">Promise</span><span class="tsd-signature-symbol">&lt;</span><a href="../interfaces/types.I_PAYMENT_INFO_RESPONSE.html" class="tsd-signature-type tsd-kind-interface">I_PAYMENT_INFO_RESPONSE</a><span class="tsd-signature-symbol">&gt;</span><a href="#getPayment.getPayment-1" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></li> <li class="tsd-description"> <div class="tsd-comment tsd-typography"><p>Retrieves the payment information based on the provided options.</p> </div> <div class="tsd-parameters"> <h4 class="tsd-parameters-title">Parameters</h4> <ul class="tsd-parameter-list"> <li> <h5><span class="tsd-kind-parameter">options</span>: <a href="../interfaces/types.I_PAYMENT_INFO_REQUEST.html" class="tsd-signature-type tsd-kind-interface">I_PAYMENT_INFO_REQUEST</a></h5> <div class="tsd-comment tsd-typography"><p>The payment information request options.</p> </div> <div class="tsd-comment tsd-typography"></div></li></ul></div> <h4 class="tsd-returns-title">Returns <span class="tsd-signature-type ">Promise</span><span class="tsd-signature-symbol">&lt;</span><a href="../interfaces/types.I_PAYMENT_INFO_RESPONSE.html" class="tsd-signature-type tsd-kind-interface">I_PAYMENT_INFO_RESPONSE</a><span class="tsd-signature-symbol">&gt;</span></h4><p>The payment information response.</p> <div class="tsd-comment tsd-typography"></div></li></ul></section> <section class="tsd-panel tsd-member"><a id="makeSignatue" class="tsd-anchor"></a> <h3 class="tsd-anchor-link"><span>make<wbr/>Signatue</span><a href="#makeSignatue" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></h3> <ul class="tsd-signatures"> <li class="tsd-signature tsd-anchor-link" id="makeSignatue.makeSignatue-1"><span class="tsd-kind-call-signature">make<wbr/>Signatue</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">data</span>, <span class="tsd-kind-parameter">key</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span><a href="#makeSignatue.makeSignatue-1" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></li> <li class="tsd-description"> <div class="tsd-comment tsd-typography"><p>Generates a signature for the given data and key.</p> </div> <div class="tsd-parameters"> <h4 class="tsd-parameters-title">Parameters</h4> <ul class="tsd-parameter-list"> <li> <h5><span class="tsd-kind-parameter">data</span>: <span class="tsd-signature-type ">Record</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">, </span><span class="tsd-signature-type">any</span><span class="tsd-signature-symbol">&gt;</span></h5> <div class="tsd-comment tsd-typography"><p>The data to generate the signature for.</p> </div> <div class="tsd-comment tsd-typography"></div></li> <li> <h5><span class="tsd-kind-parameter">key</span>: <span class="tsd-signature-type">string</span></h5> <div class="tsd-comment tsd-typography"><p>The key used in the signature generation.</p> </div> <div class="tsd-comment tsd-typography"></div></li></ul></div> <h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">string</span></h4><p>The generated signature.</p> <div class="tsd-comment tsd-typography"></div></li></ul></section> <section class="tsd-panel tsd-member"><a id="refundFromBlockedWallet" class="tsd-anchor"></a> <h3 class="tsd-anchor-link"><span>refund<wbr/>From<wbr/>Blocked<wbr/>Wallet</span><a href="#refundFromBlockedWallet" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></h3> <ul class="tsd-signatures"> <li class="tsd-signature tsd-anchor-link" id="refundFromBlockedWallet.refundFromBlockedWallet-1"><span class="tsd-kind-call-signature">refund<wbr/>From<wbr/>Blocked<wbr/>Wallet</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">options</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type ">Promise</span><span class="tsd-signature-symbol">&lt;</span><a href="../interfaces/types.I_REFUND_FROM_BLOCK_WALLET_RESPONSE.html" class="tsd-signature-type tsd-kind-interface">I_REFUND_FROM_BLOCK_WALLET_RESPONSE</a><span class="tsd-signature-symbol">&gt;</span><a href="#refundFromBlockedWallet.refundFromBlockedWallet-1" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></li> <li class="tsd-description"> <div class="tsd-comment tsd-typography"><p>Refunds from a blocked wallet.</p> </div> <div class="tsd-parameters"> <h4 class="tsd-parameters-title">Parameters</h4> <ul class="tsd-parameter-list"> <li> <h5><span class="tsd-kind-parameter">options</span>: <a href="../interfaces/types.I_REFUND_FROM_BLOCK_WALLET_REQUEST.html" class="tsd-signature-type tsd-kind-interface">I_REFUND_FROM_BLOCK_WALLET_REQUEST</a></h5> <div class="tsd-comment tsd-typography"><p>The options for the refund request.</p> </div> <div class="tsd-comment tsd-typography"></div></li></ul></div> <h4 class="tsd-returns-title">Returns <span class="tsd-signature-type ">Promise</span><span class="tsd-signature-symbol">&lt;</span><a href="../interfaces/types.I_REFUND_FROM_BLOCK_WALLET_RESPONSE.html" class="tsd-signature-type tsd-kind-interface">I_REFUND_FROM_BLOCK_WALLET_RESPONSE</a><span class="tsd-signature-symbol">&gt;</span></h4><ul> <li>A promise that resolves to the refund response.</li> </ul> <div class="tsd-comment tsd-typography"></div></li></ul></section> <section class="tsd-panel tsd-member"><a id="refundPayment" class="tsd-anchor"></a> <h3 class="tsd-anchor-link"><span>refund<wbr/>Payment</span><a href="#refundPayment" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></h3> <ul class="tsd-signatures"> <li class="tsd-signature tsd-anchor-link" id="refundPayment.refundPayment-1"><span class="tsd-kind-call-signature">refund<wbr/>Payment</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">options</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type ">Promise</span><span class="tsd-signature-symbol">&lt;</span><a href="../interfaces/types.I_PAYMENT_REFUND_RESPONSE.html" class="tsd-signature-type tsd-kind-interface">I_PAYMENT_REFUND_RESPONSE</a><span class="tsd-signature-symbol">&gt;</span><a href="#refundPayment.refundPayment-1" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></li> <li class="tsd-description"> <div class="tsd-comment tsd-typography"><p>Refunds a payment.</p> </div> <div class="tsd-parameters"> <h4 class="tsd-parameters-title">Parameters</h4> <ul class="tsd-parameter-list"> <li> <h5><span class="tsd-kind-parameter">options</span>: <a href="../interfaces/types.I_PAYMENT_REFUND_REQUEST.html" class="tsd-signature-type tsd-kind-interface">I_PAYMENT_REFUND_REQUEST</a></h5> <div class="tsd-comment tsd-typography"><p>The options for refunding the payment.</p> </div> <div class="tsd-comment tsd-typography"></div></li></ul></div> <h4 class="tsd-returns-title">Returns <span class="tsd-signature-type ">Promise</span><span class="tsd-signature-symbol">&lt;</span><a href="../interfaces/types.I_PAYMENT_REFUND_RESPONSE.html" class="tsd-signature-type tsd-kind-interface">I_PAYMENT_REFUND_RESPONSE</a><span class="tsd-signature-symbol">&gt;</span></h4><p>The response containing the refund details.</p> <div class="tsd-comment tsd-typography"></div></li></ul></section> <section class="tsd-panel tsd-member"><a id="request" class="tsd-anchor"></a> <h3 class="tsd-anchor-link"><span>request</span><a href="#request" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></h3> <ul class="tsd-signatures"> <li class="tsd-signature tsd-anchor-link" id="request.request-1"><span class="tsd-kind-call-signature">request</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type tsd-kind-type-parameter">T</span><span class="tsd-signature-symbol">&gt;</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">method</span>, <span class="tsd-kind-parameter">type</span>, <span class="tsd-kind-parameter">route</span>, <span class="tsd-kind-parameter">data</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type ">Promise</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type tsd-kind-type-parameter">T</span><span class="tsd-signature-symbol">&gt;</span><a href="#request.request-1" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></li> <li class="tsd-description"> <div class="tsd-comment tsd-typography"><p>Sends a request to the specified route using the given HTTP method and token type.</p> </div> <section class="tsd-panel"> <h4>Type Parameters</h4> <ul class="tsd-type-parameter-list"> <li> <h4><span class="tsd-kind-type-parameter">T</span></h4></li></ul></section> <div class="tsd-parameters"> <h4 class="tsd-parameters-title">Parameters</h4> <ul class="tsd-parameter-list"> <li> <h5><span class="tsd-kind-parameter">method</span>: <a href="../enums/types.E_HTTP.html" class="tsd-signature-type tsd-kind-enum">E_HTTP</a></h5> <div class="tsd-comment tsd-typography"><p>The HTTP method to use for the request.</p> </div> <div class="tsd-comment tsd-typography"></div></li> <li> <h5><span class="tsd-kind-parameter">type</span>: <a href="../enums/types.E_TOKEN.html" class="tsd-signature-type tsd-kind-enum">E_TOKEN</a></h5> <div class="tsd-comment tsd-typography"><p>The type of token to use for authentication.</p> </div> <div class="tsd-comment tsd-typography"></div></li> <li> <h5><span class="tsd-kind-parameter">route</span>: <span class="tsd-signature-type">string</span></h5> <div class="tsd-comment tsd-typography"><p>The route to send the request to.</p> </div> <div class="tsd-comment tsd-typography"></div></li> <li> <h5><span class="tsd-kind-parameter">data</span>: <span class="tsd-signature-type ">Record</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">, </span><span class="tsd-signature-type">any</span><span class="tsd-signature-symbol">&gt;</span></h5> <div class="tsd-comment tsd-typography"><p>The data to include in the request.</p> </div> <div class="tsd-comment tsd-typography"></div></li></ul></div> <h4 class="tsd-returns-title">Returns <span class="tsd-signature-type ">Promise</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type tsd-kind-type-parameter">T</span><span class="tsd-signature-symbol">&gt;</span></h4><ul> <li>A promise that resolves with the response data.</li> </ul> <div class="tsd-comment tsd-typography"></div></li></ul></section> <section class="tsd-panel tsd-member"><a id="resendWebhook" class="tsd-anchor"></a> <h3 class="tsd-anchor-link"><span>resend<wbr/>Webhook</span><a href="#resendWebhook" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></h3> <ul class="tsd-signatures"> <li class="tsd-signature tsd-anchor-link" id="resendWebhook.resendWebhook-1"><span class="tsd-kind-call-signature">resend<wbr/>Webhook</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">options</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type ">Promise</span><span class="tsd-signature-symbol">&lt;</span><a href="../interfaces/types.I_RESEND_WEBHOOK_RESPONSE.html" class="tsd-signature-type tsd-kind-interface">I_RESEND_WEBHOOK_RESPONSE</a><span class="tsd-signature-symbol">&gt;</span><a href="#resendWebhook.resendWebhook-1" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></li> <li class="tsd-description"> <div class="tsd-comment tsd-typography"><p>Asynchronously resends a webhook.</p> </div> <div class="tsd-parameters"> <h4 class="tsd-parameters-title">Parameters</h4> <ul class="tsd-parameter-list"> <li> <h5><span class="tsd-kind-parameter">options</span>: <a href="../interfaces/types.I_RESEND_WEBHOOK_REQUEST.html" class="tsd-signature-type tsd-kind-interface">I_RESEND_WEBHOOK_REQUEST</a></h5> <div class="tsd-comment tsd-typography"><p>The options for resending the webhook.</p> </div> <div class="tsd-comment tsd-typography"></div></li></ul></div> <h4 class="tsd-returns-title">Returns <span class="tsd-signature-type ">Promise</span><span class="tsd-signature-symbol">&lt;</span><a href="../interfaces/types.I_RESEND_WEBHOOK_RESPONSE.html" class="tsd-signature-type tsd-kind-interface">I_RESEND_WEBHOOK_RESPONSE</a><span class="tsd-signature-symbol">&gt;</span></h4><ul> <li>The response from the resend request.</li> </ul> <div class="tsd-comment tsd-typography"></div></li></ul></section> <section class="tsd-panel tsd-member"><a id="testPaymentWebhook" class="tsd-anchor"></a> <h3 class="tsd-anchor-link"><span>test<wbr/>Payment<wbr/>Webhook</span><a href="#testPaymentWebhook" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></h3> <ul class="tsd-signatures"> <li class="tsd-signature tsd-anchor-link" id="testPaymentWebhook.testPaymentWebhook-1"><span class="tsd-kind-call-signature">test<wbr/>Payment<wbr/>Webhook</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">options</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type ">Promise</span><span class="tsd-signature-symbol">&lt;</span><a href="../interfaces/types.I_TEST_WEBHOOK_RESPONSE.html" class="tsd-signature-type tsd-kind-interface">I_TEST_WEBHOOK_RESPONSE</a><span class="tsd-signature-symbol">&gt;</span><a href="#testPaymentWebhook.testPaymentWebhook-1" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></li> <li class="tsd-description"> <div class="tsd-comment tsd-typography"><p>Sends a test webhook request and returns the response.</p> </div> <div class="tsd-parameters"> <h4 class="tsd-parameters-title">Parameters</h4> <ul class="tsd-parameter-list"> <li> <h5><span class="tsd-kind-parameter">options</span>: <a href="../interfaces/types.I_TEST_WEBHOOK_REQUEST.html" class="tsd-signature-type tsd-kind-interface">I_TEST_WEBHOOK_REQUEST</a></h5> <div class="tsd-comment tsd-typography"><p>The options for the test webhook request.</p> </div> <div class="tsd-comment tsd-typography"></div></li></ul></div> <h4 class="tsd-returns-title">Returns <span class="tsd-signature-type ">Promise</span><span class="tsd-signature-symbol">&lt;</span><a href="../interfaces/types.I_TEST_WEBHOOK_RESPONSE.html" class="tsd-signature-type tsd-kind-interface">I_TEST_WEBHOOK_RESPONSE</a><span class="tsd-signature-symbol">&gt;</span></h4><ul> <li>A promise that resolves to the response of the test webhook request.</li> </ul> <div class="tsd-comment tsd-typography"></div></li></ul></section> <section class="tsd-panel tsd-member"><a id="testPayoutWebhook" class="tsd-anchor"></a> <h3 class="tsd-anchor-link"><span>test<wbr/>Payout<wbr/>Webhook</span><a href="#testPayoutWebhook" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></h3> <ul class="tsd-signatures"> <li class="tsd-signature tsd-anchor-link" id="testPayoutWebhook.testPayoutWebhook-1"><span class="tsd-kind-call-signature">test<wbr/>Payout<wbr/>Webhook</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">options</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type ">Promise</span><span class="tsd-signature-symbol">&lt;</span><a href="../interfaces/types.I_TEST_WEBHOOK_RESPONSE.html" class="tsd-signature-type tsd-kind-interface">I_TEST_WEBHOOK_RESPONSE</a><span class="tsd-signature-symbol">&gt;</span><a href="#testPayoutWebhook.testPayoutWebhook-1" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></li> <li class="tsd-description"> <div class="tsd-comment tsd-typography"><p>Sends a test payout webhook request and returns the response.</p> </div> <div class="tsd-parameters"> <h4 class="tsd-parameters-title">Parameters</h4> <ul class="tsd-parameter-list"> <li> <h5><span class="tsd-kind-parameter">options</span>: <a href="../interfaces/types.I_TEST_WEBHOOK_REQUEST.html" class="tsd-signature-type tsd-kind-interface">I_TEST_WEBHOOK_REQUEST</a></h5> <div class="tsd-comment tsd-typography"><p>The options for the test webhook request.</p> </div> <div class="tsd-comment tsd-typography"></div></li></ul></div> <h4 class="tsd-returns-title">Returns <span class="tsd-signature-type ">Promise</span><span class="tsd-signature-symbol">&lt;</span><a href="../interfaces/types.I_TEST_WEBHOOK_RESPONSE.html" class="tsd-signature-type tsd-kind-interface">I_TEST_WEBHOOK_RESPONSE</a><span class="tsd-signature-symbol">&gt;</span></h4><ul> <li>The response from the test webhook request.</li> </ul> <div class="tsd-comment tsd-typography"></div></li></ul></section> <section class="tsd-panel tsd-member"><a id="verifySignatue" class="tsd-anchor"></a> <h3 class="tsd-anchor-link"><span>verify<wbr/>Signatue</span><a href="#verifySignatue" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></h3> <ul class="tsd-signatures"> <li class="tsd-signature tsd-anchor-link" id="verifySignatue.verifySignatue-1"><span class="tsd-kind-call-signature">verify<wbr/>Signatue</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">data</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">boolean</span><a href="#verifySignatue.verifySignatue-1" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></li> <li class="tsd-description"> <div class="tsd-comment tsd-typography"><p>Verifies the signature of the given data.</p> </div> <div class="tsd-parameters"> <h4 class="tsd-parameters-title">Parameters</h4> <ul class="tsd-parameter-list"> <li> <h5><span class="tsd-kind-parameter">data</span>: <span class="tsd-signature-type ">Record</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">, </span><span class="tsd-signature-type">any</span><span class="tsd-signature-symbol">&gt;</span></h5> <div class="tsd-comment tsd-typography"><p>The data to verify the signature for.</p> </div> <div class="tsd-comment tsd-typography"></div></li></ul></div> <h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">boolean</span></h4><p>Returns true if the signature is valid, false otherwise.</p> <div class="tsd-comment tsd-typography"></div></li></ul></section></section></div> <div class="col-sidebar"> <div class="page-menu"> <details open class="tsd-index-accordion tsd-page-navigation"><summary class="tsd-accordion-summary"> <h3><svg width="20" height="20" viewBox="0 0 24 24" fill="none"><use href="#icon-chevronDown"></use></svg>On This Page</h3></summary> <div class="tsd-accordion-details"> <ul> <li><a href="#constructor" class=""><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-512"></use></svg><span>constructor</span></a></li> <li><a href="#merchant" class="tsd-is-private"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-1024"></use></svg><span>merchant</span></a></li> <li><a href="#paymentToken" class="tsd-is-private"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-1024"></use></svg><span>payment<wbr/>Token</span></a></li> <li><a href="#payoutToken" class="tsd-is-private"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-1024"></use></svg><span>payout<wbr/>Token</span></a></li> <li><a href="#blockStaticWallet" class=""><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-2048"></use></svg><span>block<wbr/>Static<wbr/>Wallet</span></a></li> <li><a href="#createPayment" class=""><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-2048"></use></svg><span>create<wbr/>Payment</span></a></li> <li><a href="#createStaticWallet" class=""><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-2048"></use></svg><span>create<wbr/>Static<wbr/>Wallet</span></a></li> <li><a href="#genQr" class=""><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-2048"></use></svg><span>gen<wbr/>Qr</span></a></li> <li><a href="#getPayment" class=""><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-2048"></use></svg><span>get<wbr/>Payment</span></a></li> <li><a href="#makeSignatue" class=""><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-2048"></use></svg><span>make<wbr/>Signatue</span></a></li> <li><a href="#refundFromBlockedWallet" class=""><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-2048"></use></svg><span>refund<wbr/>From<wbr/>Blocked<wbr/>Wallet</span></a></li> <li><a href="#refundPayment" class=""><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-2048"></use></svg><span>refund<wbr/>Payment</span></a></li> <li><a href="#request" class=""><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-2048"></use></svg><span>request</span></a></li> <li><a href="#resendWebhook" class=""><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-2048"></use></svg><span>resend<wbr/>Webhook</span></a></li> <li><a href="#testPaymentWebhook" class=""><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-2048"></use></svg><span>test<wbr/>Payment<wbr/>Webhook</span></a></li> <li><a href="#testPayoutWebhook" class=""><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-2048"></use></svg><span>test<wbr/>Payout<wbr/>Webhook</span></a></li> <li><a href="#verifySignatue" class=""><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-2048"></use></svg><span>verify<wbr/>Signatue</span></a></li></ul></div></details></div> <div class="site-menu"> <nav class="tsd-navigation"><a href="../index.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-1"></use></svg> <div>@qweme32/cryptomus</div></a> <ul class="tsd-small-nested-navigation"> <li> <details class="tsd-index-accordion" data-key="errors"><summary class="tsd-accordion-summary"><svg width="20" height="20" viewBox="0 0 24 24" fill="none"><use href="#icon-chevronDown"></use></svg><a href="../modules/errors.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-2"></use></svg> <div>errors</div></a></summary> <div class="tsd-accordion-details"> <ul class="tsd-nested-navigation"> <li><a href="errors.CryptomusError.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-128"></use></svg> <div>Cryptomus<wbr/>Error</div></a></li></ul></div></details></li> <li> <details class="tsd-index-accordion" open data-key="index"><summary class="tsd-accordion-summary"><svg width="20" height="20" viewBox="0 0 24 24" fill="none"><use href="#icon-chevronDown"></use></svg><a href="../modules/index.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-2"></use></svg> <div>index</div></a></summary> <div class="tsd-accordion-details"> <ul class="tsd-nested-navigation"> <li><a href="index.Cryptomus.html" class="current"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-128"></use></svg> <div>Cryptomus</div></a></li></ul></div></details></li> <li> <details class="tsd-index-accordion" data-key="types"><summary class="tsd-accordion-summary"><svg width="20" height="20" viewBox="0 0 24 24" fill="none"><use href="#icon-chevronDown"></use></svg><a href="../modules/types.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-2"></use></svg> <div>types</div></a></summary> <div class="tsd-accordion-details"> <ul class="tsd-nested-navigation"> <li><a href="../enums/types.E_COURSE_SOURCE.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-8"></use></svg> <div>E_<wbr/>COURSE_<wbr/>SOURCE</div></a></li> <li><a href="../enums/types.E_HTTP.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-8"></use></svg> <div>E_<wbr/>HTTP</div></a></li> <li><a href="../enums/types.E_PAYMENT_STATUS.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-8"></use></svg> <div>E_<wbr/>PAYMENT_<wbr/>STATUS</div></a></li> <li><a href="../enums/types.E_STATIC_WALLET_STATUS.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-8"></use></svg> <div>E_<wbr/>STATIC_<wbr/>WALLET_<wbr/>STATUS</div></a></li> <li><a href="../enums/types.E_TOKEN.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-8"></use></svg> <div>E_<wbr/>TOKEN</div></a></li> <li><a href="../interfaces/types.I_BLOCK_STATIC_WALLET_REQUEST.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-256"></use></svg> <div>I_<wbr/>BLOCK_<wbr/>STATIC_<wbr/>WALLET_<wbr/>REQUEST</div></a></li> <li><a href="../interfaces/types.I_BLOCK_STATIC_WALLET_RESPONSE.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-256"></use></svg> <div>I_<wbr/>BLOCK_<wbr/>STATIC_<wbr/>WALLET_<wbr/>RESPONSE</div></a></li> <li><a href="../interfaces/types.I_CREATE_PAYMENT_REQUEST.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-256"></use></svg> <div>I_<wbr/>CREATE_<wbr/>PAYMENT_<wbr/>REQUEST</div></a></li> <li><a href="../interfaces/types.I_CREATE_PAYMENT_RESPONSE.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-256"></use></svg> <div>I_<wbr/>CREATE_<wbr/>PAYMENT_<wbr/>RESPONSE</div></a></li> <li><a href="../interfaces/types.I_CREATE_STATIC_WALLET_REQUEST.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-256"></use></svg> <div>I_<wbr/>CREATE_<wbr/>STATIC_<wbr/>WALLET_<wbr/>REQUEST</div></a></li> <li><a href="../interfaces/types.I_CREATE_STATIC_WALLET_RESPONSE.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-256"></use></svg> <div>I_<wbr/>CREATE_<wbr/>STATIC_<wbr/>WALLET_<wbr/>RESPONSE</div></a></li> <li><a href="../interfaces/types.I_CURRENCY.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-256"></use></svg> <div>I_<wbr/>CURRENCY</div></a></li> <li><a href="../interfaces/types.I_GEN_QR_REQUEST.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-256"></use></svg> <div>I_<wbr/>GEN_<wbr/>QR_<wbr/>REQUEST</div></a></li> <li><a href="../interfaces/types.I_GEN_QR_RESPONSE.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-256"></use></svg> <div>I_<wbr/>GEN_<wbr/>QR_<wbr/>RESPONSE</div></a></li> <li><a href="../interfaces/types.I_PAYMENT.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-256"></use></svg> <div>I_<wbr/>PAYMENT</div></a></li> <li><a href="../interfaces/types.I_PAYMENT_INFO_REQUEST.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-256"></use></svg> <div>I_<wbr/>PAYMENT_<wbr/>INFO_<wbr/>REQUEST</div></a></li> <li><a href="../interfaces/types.I_PAYMENT_INFO_RESPONSE.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-256"></use></svg> <div>I_<wbr/>PAYMENT_<wbr/>INFO_<wbr/>RESPONSE</div></a></li> <li><a href="../interfaces/types.I_PAYMENT_REFUND_REQUEST.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-256"></use></svg> <div>I_<wbr/>PAYMENT_<wbr/>REFUND_<wbr/>REQUEST</div></a></li> <li><a href="../interfaces/types.I_PAYMENT_REFUND_RESPONSE.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-256"></use></svg> <div>I_<wbr/>PAYMENT_<wbr/>REFUND_<wbr/>RESPONSE</div></a></li> <li><a href="../interfaces/types.I_REFUND_FROM_BLOCK_WALLET_REQUEST.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-256"></use></svg> <div>I_<wbr/>REFUND_<wbr/>FROM_<wbr/>BLOCK_<wbr/>WALLET_<wbr/>REQUEST</div></a></li> <li><a href="../interfaces/types.I_REFUND_FROM_BLOCK_WALLET_RESPONSE.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-256"></use></svg> <div>I_<wbr/>REFUND_<wbr/>FROM_<wbr/>BLOCK_<wbr/>WALLET_<wbr/>RESPONSE</div></a></li> <li><a href="../interfaces/types.I_RESEND_WEBHOOK_REQUEST.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-256"></use></svg> <div>I_<wbr/>RESEND_<wbr/>WEBHOOK_<wbr/>REQUEST</div></a></li> <li><a href="../interfaces/types.I_RESEND_WEBHOOK_RESPONSE.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-256"></use></svg> <div>I_<wbr/>RESEND_<wbr/>WEBHOOK_<wbr/>RESPONSE</div></a></li> <li><a