CreateConsentRequest

Request object for creating a consent

Request object for creating a consent.

Constructors

Constructor

new CreateConsentRequest(data): CreateConsentRequest

Parameters

data

CreateConsentRequestInput

Returns

CreateConsentRequest

Inherited from

ValidationRequest<CreateConsentRequestInput>.constructor

Methods

data()

data(): CreateConsentRequestInput

Returns data encapsulated by the Request

Returns

CreateConsentRequestInput

Inherited from

ValidationRequest.data


toJSON()

toJSON(): CreateConsentRequestInput

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

Returns

CreateConsentRequestInput

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