import { array , lazy , object , optional , Schema } from '../schema' ; import { Booking , bookingSchema } from './booking' ; import { Error , errorSchema } from './error' ; export interface CancelBookingResponse { /**
     * Represents a booking as a time-bound service contract for a seller's staff member to provide a specified service
     * at a given location to a requesting customer in one or more appointment segments.
     */ booking ? : Booking ; /** Any errors that occurred during the request. */ errors ? : Error [ ] ; } export const cancelBookingResponseSchema = object ( { booking : [ 'booking' , optional ( lazy ( ( ) => bookingSchema ) ) ] , errors : [ 'errors' , optional ( array ( lazy ( ( ) => errorSchema ) ) ) ] , } ) ;