CancelAppointmentRequest

Represents a request for canceling an appointment within the health space

Represents a request for canceling an appointment within the health space. This class extends the ValidationRequest to provide validation for input data related to canceling an appointment.

Usage: const req = new CancelAppointmentRequest(input); const validation = req.validate();

Constructors

Constructor

new CancelAppointmentRequest(data): CancelAppointmentRequest

Parameters

data

CancelAppointmentRequestInput

Returns

CancelAppointmentRequest

Inherited from

ValidationRequest<CancelAppointmentRequestInput>.constructor

Methods

data()

data(): CancelAppointmentRequestInput

Returns data encapsulated by the Request

Returns

CancelAppointmentRequestInput

Inherited from

ValidationRequest.data


toJSON()

toJSON(): CancelAppointmentRequestInput

Method to allow JSON serializers to only serialize the wrapped request data without serializing any of the Request object data

Returns

CancelAppointmentRequestInput

See

https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/JSON/stringify#description

Inherited from

ValidationRequest.toJSON


validate()

validate(): BWellTransactionResult<null, ValidationError>

Validate the request.

Returns

BWellTransactionResult<null, ValidationError>

a BWellTransactionResult describing any validation errors found

Inherited from

ValidationRequest.validate