Value object which represent an service date interval from a starting date
until an end date. Both start and end is inclusive.
The start must be equals or before the end to form a valid
period.
null is used to represent an unbounded interval. One or both the of the start and
end can be null (unbounded).
| name | data type | constraints | description |
|---|---|---|---|
| unbounded | boolean | required | |
| start | ServiceDate | required | Return the interval start, inclusive. If the period start is unbounded the MIN_DATE is returned. |
| end | ServiceDate | required | Return the interval end, inclusive. If the period start is unbounded the MAX_DATE is returned. |
Example
{
"unbounded" : true,
"start" : {
"year" : 12345,
"month" : 12345,
"day" : 12345,
"minMax" : true
},
"end" : {
"year" : 12345,
"month" : 12345,
"day" : 12345,
"minMax" : true
}
}