---
type: object
properties:
  agreement_period_id:
    type: integer
    description: internally assigned identifier
    readOnly: true
  agreement_id:
    type: integer
    description: Internal agreement identifier
  started_on:
    type: string
    format: date
    description: Start of the agreement period
  ended_on:
    type:
      - string
      - "null"
    format: date
    description: End of the agreemnent period
  cancellation_deadline:
    type:
      - string
      - "null"
    format: date
    description: Deadline for the cancellation
  notes:
    type:
      - string
      - "null"
  extended_attributes:
    description: Related additional field values
    type:
      - array
    items:
      $ref: extended_attribute_value.yaml
  _strings:
    type:
      - object
      - "null"
additionalProperties: false
required:
  - started_on
