Interface BooleanRequirement

An atomic requirement. Requirements can specify the expected value that the response has to contain, or a range of threshold values within which the response has to fit in. The requirement may apply to a certain period of time.

Constructors

constructor

Properties

dataType

: "boolean"

The data type in which the requirement response must be provided.

description Optional

: undefined | string

A free text description for this atomic requirement.

expectedValue Optional

: undefined | false | true

Used to state the requirement when the response must be particular boolean value.

id

: string

The identifier for this requirement. It must be unique and cannot change within the Open Contracting Process it is part of (defined by a single ocid). See the identifier guidance for further details.

period Optional

Used to specify a particular period the requirement applies to, for example the bidder's turnover in a given year.

title Optional

: undefined | string

The title of this atomic requirement.

Methods

isOfType

  • (type: "boolean"): this is BooleanRequirement
  • (type: "string"): this is StringRequirement
  • (type: "number" | "integer" | "numeric"): this is NumericRequirement
  • Used to check if the requirement is of boolean data type.

  • Used to check if the requirement is of string data type.

  • Used to check if the requirement is of numeric data type. numeric is accepted for checking for both number and integer at the same time.

isRanged

  • (requirement: Requirement): this is RangedRequirement
  • Used to check if the requirement has specified numeric value range [minValue, maxValue].

toReference

toResponse

Generated using TypeDoc. Made by uStudio Company with ❤️