import { number , object , optional , Schema , string } from '../schema' ; /** Describes a `PublishInvoice` request. */ export interface PublishInvoiceRequest { /**
     * The version of the [invoice]($m/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/working-with-apis/idempotency).
     */ idempotencyKey ? : string ; } export const publishInvoiceRequestSchema = object ( { version : [ 'version' , number ( ) ] , idempotencyKey : [ 'idempotency_key' , optional ( string ( ) ) ] , } ) ;