### Adding TypeScript Example File Header Source: https://github.com/zebedeeio/zbd-payments-typescript-sdk/blob/main/CONTRIBUTING.md Provides the necessary shebang and initial comment for creating a new executable example file within the 'examples/' directory. ```ts // add an example to examples/.ts #!/usr/bin/env -S npm run tsn -T … ``` -------------------------------- ### Running ZBD Payments TypeScript SDK Examples Source: https://github.com/zebedeeio/zbd-payments-typescript-sdk/blob/main/CONTRIBUTING.md Makes an example file executable and then runs it using 'yarn tsn', typically against a local API or mock server. ```sh $ chmod +x examples/.ts # run the example against your api $ yarn tsn -T examples/.ts ``` -------------------------------- ### Setting up Mock Server for ZBD Payments TypeScript SDK Tests Source: https://github.com/zebedeeio/zbd-payments-typescript-sdk/blob/main/CONTRIBUTING.md Uses npx prism to start a mock server based on the OpenAPI specification file, required for running most SDK tests. ```sh $ npx prism mock path/to/your/openapi.yml ``` -------------------------------- ### Installing ZBD Payments TypeScript SDK via Git Source: https://github.com/zebedeeio/zbd-payments-typescript-sdk/blob/main/CONTRIBUTING.md Installs the SDK directly from the GitHub repository using npm, useful for consuming the latest changes directly from source. ```sh $ npm install git+ssh://git@github.com:zebedeeio/zbd-payments-typescript-sdk.git ``` -------------------------------- ### Setting up ZBD Payments TypeScript SDK Environment Source: https://github.com/zebedeeio/zbd-payments-typescript-sdk/blob/main/CONTRIBUTING.md Installs project dependencies using yarn and builds the project output files into the 'dist/' directory. ```sh $ yarn $ yarn build ``` -------------------------------- ### Oauth2: Create Authorization URL (GET /v1/oauth2/authorize) Source: https://github.com/zebedeeio/zbd-payments-typescript-sdk/blob/main/api.md Generates a URL for initiating the OAuth2 authorization flow. This method corresponds to the GET /v1/oauth2/authorize API endpoint. ```TypeScript client.oauth2.createAuthorizationURL() -> void ``` -------------------------------- ### Running Linting for ZBD Payments TypeScript SDK Source: https://github.com/zebedeeio/zbd-payments-typescript-sdk/blob/main/CONTRIBUTING.md Runs the configured eslint checks to identify code style and potential issues without automatically fixing them. ```sh $ yarn lint ``` -------------------------------- ### Import and Initialize ZBD Payments MCP Server Programmatically (TypeScript/JavaScript) Source: https://github.com/zebedeeio/zbd-payments-typescript-sdk/blob/main/packages/mcp-server/README.md Demonstrates how to import the server, endpoints, and individual tools programmatically in TypeScript/JavaScript, showing examples of initializing the server with default or custom endpoints and connecting a transport. ```typescript // Import the server, generated endpoints, or the init function import { server, endpoints, init } from "@zbddev/payments-sdk-mcp/server"; // import a specific tool import createChargeGamertags from "@zbddev/payments-sdk-mcp/tools/gamertags/create-charge-gamertags"; // initialize the server and all endpoints init({ server, endpoints }); // manually start server const transport = new StdioServerTransport(); await server.connect(transport); // or initialize your own server with specific tools const myServer = new McpServer(...); // define your own endpoint const myCustomEndpoint = { tool: { name: 'my_custom_tool', description: 'My custom tool', inputSchema: zodToJsonSchema(z.object({ a_property: z.string() })), }, handler: async (client: client, args: any) => { return { myResponse: 'Hello world!' }; }) }; // initialize the server with your custom endpoints init({ server: myServer, endpoints: [createChargeGamertags, myCustomEndpoint] }); ``` -------------------------------- ### Running ZBD Payments TypeScript SDK Tests Source: https://github.com/zebedeeio/zbd-payments-typescript-sdk/blob/main/CONTRIBUTING.md Executes the test suite for the SDK, typically requiring a running mock server or live API endpoint. ```sh $ yarn run test ``` -------------------------------- ### Utils: Retrieve BTC/USD Price (GET /v0/btcusd) Source: https://github.com/zebedeeio/zbd-payments-typescript-sdk/blob/main/api.md Retrieves the current BTC to USD exchange rate. This method corresponds to the GET /v0/btcusd API endpoint. ```TypeScript client.utils.retrieveBtcUsd() -> void ``` -------------------------------- ### Utils: List Production IPs (GET /v0/prod-ips) Source: https://github.com/zebedeeio/zbd-payments-typescript-sdk/blob/main/api.md Lists the production IP addresses used by ZBD services. This method corresponds to the GET /v0/prod-ips API endpoint. ```TypeScript client.utils.listProdIPs() -> void ``` -------------------------------- ### Wallet: Retrieve Balance (GET /v0/wallet) Source: https://github.com/zebedeeio/zbd-payments-typescript-sdk/blob/main/api.md Retrieves the balance of the ZBD wallet. This method corresponds to the GET /v0/wallet API endpoint. ```TypeScript client.wallet.retrieveBalance() -> void ``` -------------------------------- ### Configure ZBD Payments MCP Server in MCP Client (JSON) Source: https://github.com/zebedeeio/zbd-payments-typescript-sdk/blob/main/packages/mcp-server/README.md Provides an example JSON configuration snippet for integrating the ZBD Payments MCP Server into an MCP client, specifying the command, arguments, and environment variables. ```json { "mcpServers": { "zbddev_payments_sdk_api": { "command": "npx", "args": ["-y", "@zbddev/payments-sdk-mcp", "--client=claude"], "env": { "ZBD_PAYMENTS_API_KEY": "YOUR_ZBD_API_KEY" } } } } ``` -------------------------------- ### Linking Local ZBD Payments TypeScript SDK Repository Source: https://github.com/zebedeeio/zbd-payments-typescript-sdk/blob/main/CONTRIBUTING.md Clones the repository and sets up local linking using either yarn or pnpm, allowing development against a local copy of the SDK within another project. ```sh # Clone $ git clone https://www.github.com/zebedeeio/zbd-payments-typescript-sdk $ cd zbd-payments-typescript-sdk # With yarn $ yarn link $ cd ../my-package $ yarn link @zbddev/payments-sdk # With pnpm $ pnpm link --global $ cd ../my-package $ pnpm link -—global @zbddev/payments-sdk ``` -------------------------------- ### Running Formatting and Lint Fixes for ZBD Payments TypeScript SDK Source: https://github.com/zebedeeio/zbd-payments-typescript-sdk/blob/main/CONTRIBUTING.md Executes prettier and eslint with auto-fix enabled to automatically format code and resolve linting issues. ```sh $ yarn fix ``` -------------------------------- ### Configuring Proxy with Undici for Node.js in TypeScript Source: https://github.com/zebedeeio/zbd-payments-typescript-sdk/blob/main/README.md Example using `undici.ProxyAgent` to configure proxy settings for the ZBD Payments client when running in a Node.js environment. ```ts import ZbdPayments from '@zbddev/payments-sdk'; import * as undici from 'undici'; const proxyAgent = new undici.ProxyAgent('http://localhost:8888'); const client = new ZbdPayments({ fetchOptions: { dispatcher: proxyAgent, } }); ``` -------------------------------- ### Filter ZBD Payments MCP Server Tools (Bash) Source: https://github.com/zebedeeio/zbd-payments-typescript-sdk/blob/main/packages/mcp-server/README.md Examples demonstrating how to use command-line arguments to filter the tools exposed by the ZBD Payments MCP Server based on resource, operation, exclusion, client type, and capabilities. ```bash --resource=cards --operation=read ``` ```bash --resource=cards --no-tool=create_cards ``` ```bash --client=cursor --capability=tool-name-length=40 ``` ```bash --resource=cards,accounts --operation=read --tag=kyc --no-tool=create_cards ``` -------------------------------- ### Accessing Raw API Response Data with ZBD Payments SDK (TypeScript) Source: https://github.com/zebedeeio/zbd-payments-typescript-sdk/blob/main/README.md Demonstrates how to access the raw `Response` object from API calls using `.asResponse()` to get headers without consuming the body, or `.withResponse()` to get both the raw response and the parsed data after consuming the body. ```TypeScript const client = new ZbdPayments(); const response = await client.lightningAddress .sendPayment({ amount: '500000', comment: 'Instant global payments', lnAddress: 'andreneves@zbd.gg' }) .asResponse(); console.log(response.headers.get('X-My-Header')); console.log(response.statusText); // access the underlying Response object const { data: result, response: raw } = await client.lightningAddress .sendPayment({ amount: '500000', comment: 'Instant global payments', lnAddress: 'andreneves@zbd.gg' }) .withResponse(); console.log(raw.headers.get('X-My-Header')); console.log(result); ``` -------------------------------- ### Oauth2: Retrieve User Data (GET /v1/oauth2/user) Source: https://github.com/zebedeeio/zbd-payments-typescript-sdk/blob/main/api.md Retrieves user data using an OAuth2 access token. This method corresponds to the GET /v1/oauth2/user API endpoint and may require parameters. ```TypeScript client.oauth2.retrieveUserData({ ...params }) -> void ``` -------------------------------- ### Oauth2: Retrieve Wallet Data (GET /v1/oauth2/wallet) Source: https://github.com/zebedeeio/zbd-payments-typescript-sdk/blob/main/api.md Retrieves wallet data using an OAuth2 access token. This method corresponds to the GET /v1/oauth2/wallet API endpoint and may require parameters. ```TypeScript client.oauth2.retrieveWalletData({ ...params }) -> void ``` -------------------------------- ### Gamertags: Retrieve By Gamertag (GET /v0/user-id/gamertag/{gamertag}) Source: https://github.com/zebedeeio/zbd-payments-typescript-sdk/blob/main/api.md Retrieves user information based on a ZBD Gamertag. This method corresponds to the GET /v0/user-id/gamertag/{gamertag} API endpoint and requires the gamertag as input. ```TypeScript client.gamertags.retrieveByGamertag(gamertag) -> void ``` -------------------------------- ### LightningAddress: Validate Address (GET /v0/ln-address/validate/{address}) Source: https://github.com/zebedeeio/zbd-payments-typescript-sdk/blob/main/api.md Validates a Lightning Address. This method corresponds to the GET /v0/ln-address/validate/{address} API endpoint and requires the Lightning Address to be validated. ```TypeScript client.lightningAddress.validate(address) -> void ``` -------------------------------- ### Vouchers: Retrieve Voucher (GET /v0/vouchers/{id}) Source: https://github.com/zebedeeio/zbd-payments-typescript-sdk/blob/main/api.md Retrieves details of a ZBD voucher by its ID. This method corresponds to the GET /v0/vouchers/{id} API endpoint and requires the voucher ID. ```TypeScript client.vouchers.retrieve(id) -> void ``` -------------------------------- ### LightningPayments: Retrieve Payment (GET /v0/payments/{id}) Source: https://github.com/zebedeeio/zbd-payments-typescript-sdk/blob/main/api.md Retrieves details of a Lightning payment by its ID. This method corresponds to the GET /v0/payments/{id} API endpoint and requires the payment ID. ```TypeScript client.lightningPayments.retrieve(id) -> void ``` -------------------------------- ### LightningCharges: Retrieve Charge (GET /v0/charges/{id}) Source: https://github.com/zebedeeio/zbd-payments-typescript-sdk/blob/main/api.md Retrieves details of a standard Lightning charge by its ID. This method corresponds to the GET /v0/charges/{id} API endpoint and requires the charge ID. ```TypeScript client.lightningCharges.retrieve(id) -> void ``` -------------------------------- ### Gamertags: Retrieve By ZBD ID (GET /v0/gamertag/user-id/{id}) Source: https://github.com/zebedeeio/zbd-payments-typescript-sdk/blob/main/api.md Retrieves user information based on a ZBD User ID. This method corresponds to the GET /v0/gamertag/user-id/{id} API endpoint and requires the user ID as input. ```TypeScript client.gamertags.retrieveByZbdID(id) -> void ``` -------------------------------- ### Utils: Check IP Support (GET /v0/is-supported-region/{ip}) Source: https://github.com/zebedeeio/zbd-payments-typescript-sdk/blob/main/api.md Checks if a given IP address is in a supported region for ZBD services. This method corresponds to the GET /v0/is-supported-region/{ip} API endpoint and requires the IP address. ```TypeScript client.utils.checkIPSupport(ip) -> void ``` -------------------------------- ### WithdrawalRequests: Retrieve Withdrawal Request (GET /v0/withdrawal-requests/{id}) Source: https://github.com/zebedeeio/zbd-payments-typescript-sdk/blob/main/api.md Retrieves details of a withdrawal request by its ID. This method corresponds to the GET /v0/withdrawal-requests/{id} API endpoint and requires the withdrawal request ID. ```TypeScript client.withdrawalRequests.retrieve(id) -> void ``` -------------------------------- ### Gamertags: Retrieve Payment (GET /v0/gamertag/transaction/{id}) Source: https://github.com/zebedeeio/zbd-payments-typescript-sdk/blob/main/api.md Retrieves details of a payment associated with a ZBD Gamertag transaction ID. This method corresponds to the GET /v0/gamertag/transaction/{id} API endpoint and requires the transaction ID. ```TypeScript client.gamertags.retrievePayment(id) -> void ``` -------------------------------- ### LightningStaticCharges: Retrieve Static Charge (GET /v0/static-charges/{id}) Source: https://github.com/zebedeeio/zbd-payments-typescript-sdk/blob/main/api.md Retrieves details of a static Lightning charge by its ID. This method corresponds to the GET /v0/static-charges/{id} API endpoint and requires the static charge ID. ```TypeScript client.lightningStaticCharges.retrieve(id) -> void ``` -------------------------------- ### Including Undocumented Request Parameters in ZBD Payments SDK (TypeScript) Source: https://github.com/zebedeeio/zbd-payments-typescript-sdk/blob/main/README.md Shows how to include undocumented parameters in API requests by using `// @ts-expect-error` to bypass TypeScript type checking. The SDK sends these extra values as-is, either in the query (GET) or body (other verbs). ```TypeScript client.foo.create({ foo: 'my_param', bar: 12, // @ts-expect-error baz is not yet public baz: 'undocumented option', }); ``` -------------------------------- ### Configuring Proxy with Deno.createHttpClient in TypeScript Source: https://github.com/zebedeeio/zbd-payments-typescript-sdk/blob/main/README.md Demonstrates using `Deno.createHttpClient` to create a client with proxy settings and passing it via `fetchOptions.client` for the Deno runtime. ```ts import ZbdPayments from 'npm:@zbddev/payments-sdk'; const httpClient = Deno.createHttpClient({ proxy: { url: 'http://localhost:8888' } }); const client = new ZbdPayments({ fetchOptions: { client: httpClient, } }); ``` -------------------------------- ### Run ZBD Payments MCP Server Directly (Shell) Source: https://github.com/zebedeeio/zbd-payments-typescript-sdk/blob/main/packages/mcp-server/README.md Shows how to run the ZBD Payments MCP Server directly from the command line using npx, setting the required API key environment variable. ```sh export ZBD_PAYMENTS_API_KEY="YOUR_ZBD_API_KEY" npx -y @zbddev/payments-sdk-mcp ``` -------------------------------- ### Configuring Proxy for Bun Runtime in TypeScript Source: https://github.com/zebedeeio/zbd-payments-typescript-sdk/blob/main/README.md Shows how to set a proxy for the ZBD Payments client using the `proxy` option within `fetchOptions` specific to the Bun runtime. ```ts import ZbdPayments from '@zbddev/payments-sdk'; const client = new ZbdPayments({ fetchOptions: { proxy: 'http://localhost:8888', } }); ``` -------------------------------- ### Setting Global Fetch Options for ZBD Payments Client in TypeScript Source: https://github.com/zebedeeio/zbd-payments-typescript-sdk/blob/main/README.md Illustrates how to configure default fetch options for all requests made by the ZbdPayments client by providing a `fetchOptions` object during instantiation. ```ts import ZbdPayments from '@zbddev/payments-sdk'; const client = new ZbdPayments({ fetchOptions: { // `RequestInit` options } }); ``` -------------------------------- ### Polyfilling Global Fetch in TypeScript Source: https://github.com/zebedeeio/zbd-payments-typescript-sdk/blob/main/README.md Demonstrates how to replace the default global fetch function with a custom implementation by assigning it to `globalThis.fetch`. ```ts import fetch from 'my-fetch'; globalThis.fetch = fetch; ``` -------------------------------- ### Using a Custom Logger with ZBD Payments SDK (TypeScript) Source: https://github.com/zebedeeio/zbd-payments-typescript-sdk/blob/main/README.md Illustrates how to integrate a custom logging library, such as pino, with the ZBD Payments SDK by providing a logger instance via the `logger` client option. The `logLevel` option still filters messages before sending them to the custom logger. ```TypeScript import ZbdPayments from '@zbddev/payments-sdk'; import pino from 'pino'; const logger = pino(); const client = new ZbdPayments({ logger: logger.child({ name: 'ZbdPayments' }), logLevel: 'debug', // Send all messages to pino, allowing it to filter }); ``` -------------------------------- ### Passing Custom Fetch to ZBD Payments Client in TypeScript Source: https://github.com/zebedeeio/zbd-payments-typescript-sdk/blob/main/README.md Shows how to provide a specific fetch function directly to the ZbdPayments client constructor via the `fetch` option. ```ts import ZbdPayments from '@zbddev/payments-sdk'; import fetch from 'my-fetch'; const client = new ZbdPayments({ fetch }); ``` -------------------------------- ### Making Custom HTTP Requests with ZBD Payments SDK (TypeScript) Source: https://github.com/zebedeeio/zbd-payments-typescript-sdk/blob/main/README.md Explains how to make requests to undocumented or custom endpoints using the client's HTTP verb methods like `client.post`, while still respecting client options such as retries. ```TypeScript await client.post('/some/path', { body: { some_prop: 'foo' }, query: { some_query_arg: 'bar' }, }); ``` -------------------------------- ### Sending Email Payment using ZBD SDK (TypeScript) Source: https://github.com/zebedeeio/zbd-payments-typescript-sdk/blob/main/api.md Demonstrates how to call the 'send' method on the 'emailPayments' resource of the ZBD client to initiate an email payment. This method corresponds to the POST /v0/email/send-payment endpoint and requires specific parameters. ```TypeScript client.emailPayments.send({ ...params }) ``` -------------------------------- ### LightningAddress: Create Charge (POST /v0/ln-address/fetch-charge) Source: https://github.com/zebedeeio/zbd-payments-typescript-sdk/blob/main/api.md Creates a charge for a Lightning Address payment. This method corresponds to the POST /v0/ln-address/fetch-charge API endpoint and requires parameters including the Lightning Address. ```TypeScript client.lightningAddress.createCharge({ ...params }) -> void ``` -------------------------------- ### Vouchers: Create Voucher (POST /v1/create-voucher) Source: https://github.com/zebedeeio/zbd-payments-typescript-sdk/blob/main/api.md Creates a new ZBD voucher. This method corresponds to the POST /v1/create-voucher API endpoint and requires parameters for the voucher details. ```TypeScript client.vouchers.create({ ...params }) -> void ``` -------------------------------- ### LightningCharges: Create Charge (POST /v0/charges) Source: https://github.com/zebedeeio/zbd-payments-typescript-sdk/blob/main/api.md Creates a new standard Lightning charge. This method corresponds to the POST /v0/charges API endpoint and requires parameters for the charge details. ```TypeScript client.lightningCharges.create({ ...params }) -> void ``` -------------------------------- ### Configuring Log Level in ZBD Payments SDK (TypeScript) Source: https://github.com/zebedeeio/zbd-payments-typescript-sdk/blob/main/README.md Shows how to configure the logging verbosity of the ZBD Payments SDK client using the `logLevel` option during initialization. This overrides the `ZBD_PAYMENTS_LOG` environment variable. ```TypeScript import ZbdPayments from '@zbddev/payments-sdk'; const client = new ZbdPayments({ logLevel: 'debug', // Show all log messages }); ``` -------------------------------- ### LightningAddress: Send Payment (POST /v0/ln-address/send-payment) Source: https://github.com/zebedeeio/zbd-payments-typescript-sdk/blob/main/api.md Sends a payment to a Lightning Address. This method corresponds to the POST /v0/ln-address/send-payment API endpoint and requires parameters including the Lightning Address and amount. ```TypeScript client.lightningAddress.sendPayment({ ...params }) -> void ``` -------------------------------- ### InternalTransfer: Initiate Transfer (POST /v0/internal-transfer) Source: https://github.com/zebedeeio/zbd-payments-typescript-sdk/blob/main/api.md Initiates an internal transfer between accounts within the ZBD system. This method corresponds to the POST /v0/internal-transfer API endpoint and requires parameters for the transfer details. ```TypeScript client.internalTransfer.initiate({ ...params }) -> void ``` -------------------------------- ### LightningStaticCharges: Create Static Charge (POST /v0/static-charges) Source: https://github.com/zebedeeio/zbd-payments-typescript-sdk/blob/main/api.md Creates a new static Lightning charge. This method corresponds to the POST /v0/static-charges API endpoint and requires parameters for the static charge details. ```TypeScript client.lightningStaticCharges.create({ ...params }) -> void ``` -------------------------------- ### Gamertags: Create Charge (POST /v0/gamertag/charges) Source: https://github.com/zebedeeio/zbd-payments-typescript-sdk/blob/main/api.md Creates a new charge associated with a ZBD Gamertag. This method corresponds to the POST /v0/gamertag/charges API endpoint and requires parameters for the charge details. ```TypeScript client.gamertags.createCharge({ ...params }) -> void ``` -------------------------------- ### LightningPayments: Send Payment (POST /v0/payments) Source: https://github.com/zebedeeio/zbd-payments-typescript-sdk/blob/main/api.md Sends a Lightning payment. This method corresponds to the POST /v0/payments API endpoint and requires parameters for the payment details, such as invoice or address. ```TypeScript client.lightningPayments.send({ ...params }) -> void ``` -------------------------------- ### Vouchers: Redeem Voucher (POST /v0/redeem-voucher) Source: https://github.com/zebedeeio/zbd-payments-typescript-sdk/blob/main/api.md Redeems a ZBD voucher using its code. This method corresponds to the POST /v0/redeem-voucher API endpoint and requires parameters including the voucher code. ```TypeScript client.vouchers.redeem({ ...params }) -> void ``` -------------------------------- ### KeysendPayments: Send Keysend Payment (POST /v0/keysend-payment) Source: https://github.com/zebedeeio/zbd-payments-typescript-sdk/blob/main/api.md Sends a Keysend payment directly to a node's public key. This method corresponds to the POST /v0/keysend-payment API endpoint and requires parameters for the payment details. ```TypeScript client.keysendPayments.send({ ...params }) -> void ``` -------------------------------- ### WithdrawalRequests: Create Withdrawal Request (POST /v0/withdrawal-requests) Source: https://github.com/zebedeeio/zbd-payments-typescript-sdk/blob/main/api.md Creates a new withdrawal request. This method corresponds to the POST /v0/withdrawal-requests API endpoint and requires parameters for the withdrawal details. ```TypeScript client.withdrawalRequests.create({ ...params }) -> void ``` -------------------------------- ### Gamertags: Send Payment (POST /v0/gamertag/send-payment) Source: https://github.com/zebedeeio/zbd-payments-typescript-sdk/blob/main/api.md Sends a payment to a ZBD Gamertag. This method corresponds to the POST /v0/gamertag/send-payment API endpoint and requires parameters specifying the payment details. ```TypeScript client.gamertags.sendPayment({ ...params }) -> void ``` -------------------------------- ### Utils: Decode Lightning Charge (POST /v0/decode-invoice) Source: https://github.com/zebedeeio/zbd-payments-typescript-sdk/blob/main/api.md Decodes a Lightning invoice string. This method corresponds to the POST /v0/decode-invoice API endpoint and requires the invoice string as a parameter. ```TypeScript client.utils.decodeLightningCharge({ ...params }) -> void ``` -------------------------------- ### LightningStaticCharges: Update Static Charge (PATCH /v0/static-charges/{id}) Source: https://github.com/zebedeeio/zbd-payments-typescript-sdk/blob/main/api.md Updates an existing static Lightning charge by its ID. This method corresponds to the PATCH /v0/static-charges/{id} API endpoint and requires the static charge ID and parameters for the updates. ```TypeScript client.lightningStaticCharges.update(id, { ...params }) -> void ``` -------------------------------- ### Oauth2: Refresh Token (POST /v1/oauth2/token) Source: https://github.com/zebedeeio/zbd-payments-typescript-sdk/blob/main/api.md Refreshes an expired OAuth2 access token using a refresh token. This method corresponds to the POST /v1/oauth2/token API endpoint. ```TypeScript client.oauth2.refreshToken() -> void ``` -------------------------------- ### Vouchers: Revoke Voucher (POST /v0/revoke-voucher) Source: https://github.com/zebedeeio/zbd-payments-typescript-sdk/blob/main/api.md Revokes a ZBD voucher by its ID. This method corresponds to the POST /v0/revoke-voucher API endpoint and requires parameters including the voucher ID. ```TypeScript client.vouchers.revoke({ ...params }) -> void ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.