import { array , lazy , object , optional , Schema } from '../schema' ; import { Error , errorSchema } from './error' ; import { Invoice , invoiceSchema } from './invoice' ; /** Describes a `GetInvoice` response. */ export interface GetInvoiceResponse { /**
     * Stores information about an invoice. You use the Invoices API to create and manage
     * invoices. For more information, see [Manage Invoices Using the Invoices API](https://developer.squareup.com/docs/invoices-api/overview).
     */ invoice ? : Invoice ; /** Information about errors encountered during the request. */ errors ? : Error [ ] ; } export const getInvoiceResponseSchema = object ( { invoice : [ 'invoice' , optional ( lazy ( ( ) => invoiceSchema ) ) ] , errors : [ 'errors' , optional ( array ( lazy ( ( ) => errorSchema ) ) ) ] , } ) ;