{
  "$schema": "https://json-structure.org/meta/core/v0/#",
  "$id": "https://raw.githubusercontent.com/api-evangelist/flipdish/refs/heads/main/json-structure/marketing-set-voucher-validity-periods-simplified-request-structure.json",
  "name": "SetVoucherValidityPeriodsSimplifiedRequest",
  "description": "Set the validity periods of a voucher.",
  "type": "object",
  "properties": {
    "DaysOfWeek": {
      "description": "Days of week when the voucher is valid",
      "type": "array",
      "items": {
        "enum": [
          "Sunday",
          "Monday",
          "Tuesday",
          "Wednesday",
          "Thursday",
          "Friday",
          "Saturday"
        ],
        "type": "string"
      },
      "example": [
        "Sunday"
      ]
    },
    "StartTime": {
      "description": "Start time of the day when the voucher is valid",
      "type": "string",
      "example": "2026-06-02T12:00:00Z"
    },
    "EndTime": {
      "description": "End time of the day when the voucher is valid.\r\nIf the end time is before the start time, the end time is assumed to be the next day.",
      "type": "string",
      "example": "2026-06-02T12:00:00Z"
    }
  }
}