import { array , lazy , object , optional , Schema , string } from '../schema' ; import { CashDrawerShiftEvent , cashDrawerShiftEventSchema , } from './cashDrawerShiftEvent' ; import { Error , errorSchema } from './error' ; export interface ListCashDrawerShiftEventsResponse { /**
     * All of the events (payments, refunds, etc.) for a cash drawer during
     * the shift.
     */ events ? : CashDrawerShiftEvent [ ] ; /**
     * Opaque cursor for fetching the next page. Cursor is not present in
     * the last page of results.
     */ cursor ? : string ; /** Any errors that occurred during the request. */ errors ? : Error [ ] ; } export const listCashDrawerShiftEventsResponseSchema = object ( { events : [ 'events' , optional ( array ( lazy ( ( ) => cashDrawerShiftEventSchema ) ) ) ] , cursor : [ 'cursor' , optional ( string ( ) ) ] , errors : [ 'errors' , optional ( array ( lazy ( ( ) => errorSchema ) ) ) ] , } ) ;