cloudflare
Version:
The official TypeScript library for the Cloudflare API
34 lines • 1.16 kB
TypeScript
import { APIResource } from "../../core/resource.js";
import { APIPromise } from "../../core/api-promise.js";
import { RequestOptions } from "../../internal/request-options.js";
export declare class BaseInvoices extends APIResource {
static readonly _key: readonly ['accounts', 'invoices'];
/**
* Toggles PDF invoice generation for an account.
*
* @example
* ```ts
* const response = await client.accounts.invoices.edit({
* account_id: '023e105f4ecef8ad9ca31a8372d0c353',
* });
* ```
*/
edit(params: InvoiceEditParams, options?: RequestOptions): APIPromise<InvoiceEditResponse>;
}
export declare class Invoices extends BaseInvoices {
}
export type InvoiceEditResponse = unknown | string | null;
export interface InvoiceEditParams {
/**
* Path param: Identifier
*/
account_id: string;
/**
* Body param: Whether to enable or disable PDF invoice generation.
*/
toggle?: boolean;
}
export declare namespace Invoices {
export { type InvoiceEditResponse as InvoiceEditResponse, type InvoiceEditParams as InvoiceEditParams };
}
//# sourceMappingURL=invoices.d.ts.map