{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "#/components/schemas/PlanThinRequest",
  "title": "PlanRequest",
  "description": "Information about the plan.",
  "required": [
    "frequency",
    "id",
    "purchaseDay"
  ],
  "type": "object",
  "properties": {
    "id": {
      "type": "string",
      "nullable": true,
      "description": "ID of the plan.",
      "example": "store.subscription"
    },
    "frequency": {
      "$ref": "#/components/schemas/FrequencyRequest"
    },
    "validity": {
      "$ref": "#/components/schemas/ValidityRequest"
    },
    "purchaseDay": {
      "type": "string",
      "description": "Day in which recurrent orders will be created.",
      "nullable": true,
      "example": "15"
    }
  },
  "additionalProperties": false
}