/** * @example * { * invoiceId: "invoice_id", * version: 1, * idempotencyKey: "32da42d0-1997-41b0-826b-f09464fc2c2e" * } */ export interface PublishInvoiceRequest { /** The ID of the invoice to publish. */ invoiceId: string; /** * The version of the [invoice](entity:Invoice) to publish. * This must match the current version of the invoice; otherwise, the request is rejected. */ version: number; /** * A unique string that identifies the `PublishInvoice` request. If you do not * provide `idempotency_key` (or provide an empty string as the value), the endpoint * treats each request as independent. * * For more information, see [Idempotency](https://developer.squareup.com/docs/build-basics/common-api-patterns/idempotency). */ idempotencyKey?: string | null; }