import { APIResource } from "../core/resource.js"; import { APIPromise } from "../core/api-promise.js"; import { RequestOptions } from "../internal/request-options.js"; export declare class Vouchers extends APIResource { /** * Create Voucher * * @example * ```ts * await client.vouchers.create({ * amount: 'string', * description: 'string', * }); * ``` */ create(body?: VoucherCreateParams | null | undefined, options?: RequestOptions): APIPromise; /** * Get Voucher * * @example * ```ts * await client.vouchers.retrieve('id'); * ``` */ retrieve(id: string, options?: RequestOptions): APIPromise; /** * Redeem Voucher * * @example * ```ts * await client.vouchers.redeem({ code: 'string' }); * ``` */ redeem(body?: VoucherRedeemParams | null | undefined, options?: RequestOptions): APIPromise; /** * Revoke Voucher * * @example * ```ts * await client.vouchers.revoke({ code: 'string' }); * ``` */ revoke(body?: VoucherRevokeParams | null | undefined, options?: RequestOptions): APIPromise; } export interface VoucherCreateParams { /** * The amount for the Charge -> in millisatoshis */ amount?: string; /** * Note or comment for this Charge (visible to payer) */ description?: string; } export interface VoucherRedeemParams { /** * Valid 8-digit ZBD Voucher Code */ code?: string; } export interface VoucherRevokeParams { /** * Valid 8-digit ZBD Voucher Code */ code?: string; } export declare namespace Vouchers { export { type VoucherCreateParams as VoucherCreateParams, type VoucherRedeemParams as VoucherRedeemParams, type VoucherRevokeParams as VoucherRevokeParams, }; } //# sourceMappingURL=vouchers.d.ts.map