diff --git a/spec/components/commons/fields.yaml b/spec/components/commons/fields.yaml index fd86dd6..e9316d6 100644 --- a/spec/components/commons/fields.yaml +++ b/spec/components/commons/fields.yaml @@ -206,6 +206,21 @@ components: description: Unit of the duration field enum: [day, hour, minute] example: hour + Validity: + type: number + format: float + description: Validity period of the booking (to be used in combination with validity unit). Represents how long the ticket/voucher remains valid after booking or activation. + example: 30.0 + ValidityUnit: + type: string + description: Unit of the validity field + enum: [day, hour, minute, month, year] + example: day + ValidityFrom: + type: string + description: When the validity period starts counting from. + enum: [time_booked, time_selected, time_activated] + example: time_booked Email: description: Correspondence email. example: address@example.com diff --git a/spec/components/schema/option.yaml b/spec/components/schema/option.yaml index 2b13bae..86e5143 100644 --- a/spec/components/schema/option.yaml +++ b/spec/components/schema/option.yaml @@ -35,6 +35,12 @@ components: $ref: "../commons/fields.yaml#/components/schemas/Duration" duration_unit: $ref: "../commons/fields.yaml#/components/schemas/DurationUnit" + validity: + $ref: "../commons/fields.yaml#/components/schemas/Validity" + validity_unit: + $ref: "../commons/fields.yaml#/components/schemas/ValidityUnit" + validity_from: + $ref: "../commons/fields.yaml#/components/schemas/ValidityFrom" cond_language: type: object properties: