{
  "title": "New Dimona",
  "definitions": {
    "UsingData": {
      "type": [
        "object",
        "null"
      ],
      "properties": {
        "UsingJointCommissionNbr": {
          "type": "string",
          "minLength": 3,
          "maxLength": 3,
          "pattern": "^[0-9,.]*$"
        },
        "UsingEmployerName": {
          "type": "string",
          "minLength": 0,
          "maxLength": 40
        },
        "UsingEmployerCompanyID": {
          "type": "number",
          "minimum": 0.0,
          "maximum": 9999999999.0
        },
        "UsingStreet": {
          "type": "string",
          "minLength": 0,
          "maxLength": 100
        },
        "UsingHouseNumber": {
          "type": "string",
          "minLength": 0,
          "maxLength": 10
        },
        "UsingPostBox": {
          "type": "string",
          "minLength": 0,
          "maxLength": 5
        },
        "UsingZIPCode": {
          "type": "string",
          "minLength": 0,
          "maxLength": 12
        },
        "UsingCity": {
          "type": "string",
          "minLength": 0,
          "maxLength": 30
        },
        "UsingCountry": {
          "type": "string",
          "default": "00150",
          "minLength": 5,
          "maxLength": 5,
          "pattern": "^[0-9]*$"
        }
      }
    }
  },
  "type": "object",
  "properties": {
    "NatureDeclaration": {
      "type": "string",
      "enum": [
        "DimonaIn",
        "DimonaOut",
        "DimonaModification",
        "DimonaCancel"
      ]
    },
    "ContractType": {
      "type": "string",
      "enum": [
        "Normal",
        "Extra",
        "Apprentice",
        "IBO",
        "TRI",
        "DWD",
        "A17",
        "Flex",
        "STG",
		"S17",
		"O17"  
      ]
    },
    "Email": {
      "type": "string",
      "minLength": 0,
      "maxLength": 100
    },
    "Name": {
      "type": "string",
      "minLength": 0,
      "maxLength": 40
    },
    "Firstname": {
      "type": "string",
      "minLength": 0,
      "maxLength": 25
    },
    "Initial": {
      "type": "string",
      "minLength": 1,
      "maxLength": 1
    },
    "INSS": {
      "type": "number",
      "minimum": 0.0,
      "maximum": 99999999999.0
    },
    "Sex": {
      "type": "string",
      "enum": [
        "M",
        "F"
      ]
    },
    "Birthdate": {
      "type": "string",
      "minLength": 8,
      "maxLength": 8,
      "pattern": "^[0-9]*$"
    },
    "Birthplace": {
      "type": "string",
      "minLength": 0,
      "maxLength": 30
    },
    "BirthplaceCountry": {
      "type": "string",
      "default": "00150",
      "minLength": 5,
      "maxLength": 5,
      "pattern": "^[0-9]*$"
    },
    "Nationality": {
      "type": "string",
      "default": "00150",
      "minLength": 5,
      "maxLength": 5,
      "pattern": "^[0-9]*$"
    },
    "Street": {
      "type": "string",
      "minLength": 0,
      "maxLength": 100
    },
    "HouseNumber": {
      "type": "string",
      "minLength": 0,
      "maxLength": 10
    },
    "PostBox": {
      "type": "string",
      "minLength": 0,
      "maxLength": 5
    },
    "ZIPCode": {
      "type": "string",
      "minLength": 0,
      "maxLength": 12
    },
    "City": {
      "type": "string",
      "minLength": 0,
      "maxLength": 30
    },
    "Country": {
      "type": "string",
      "default": "00150",
      "minLength": 5,
      "maxLength": 5,
      "pattern": "^[0-9]*$"
    },
    "CatRSZ": {
      "type": "string",
      "minLength": 3,
      "maxLength": 3,
      "pattern": "^[0-9]*$"
    },
    "Student": {
      "type": "string",
      "enum": [
        "N",
        "Y"
      ]
    },
    "ActivityWithRisk": {
      "type": "integer"
    },
    "WorkerStatus": {
      "type": "string",
      "enum": [
        "F1",
        "F2"
      ]
    },
    "EmploymentNature": {
      "type": "string",
      "enum": [
        "Employee",
        "Worker"
      ]
    },
    "DimonaPeriodId": {
      "type": "number",
      "minimum": 0.0,
      "maximum": 999999999999.0
    },
    "StartingDate": {
      "type": "string",
      "minLength": 8,
      "maxLength": 8,
      "pattern": "^[0-9]*$"
    },
    "EndingDate": {
      "type": "string",
      "minLength": 8,
      "maxLength": 8,
      "pattern": "^[0-9]*$"
    },
    "StartingHour": {
      "type": "string",
      "minLength": 12,
      "maxLength": 12,
      "pattern": "^[0-9]*$"
    },
    "EndingHour": {
      "type": "string",
      "minLength": 12,
      "maxLength": 12,
      "pattern": "^[0-9]*$"
    },
	"StartingHour2": {
      "type": "string",
      "minLength": 12,
      "maxLength": 12,
      "pattern": "^[0-9]*$"
    },
    "EndingHour2": {
      "type": "string",
      "minLength": 12,
      "maxLength": 12,
      "pattern": "^[0-9]*$"
    },
    "FirstMonthC32ANbr": {
      "type": "number",
      "minimum": 0.0,
      "maximum": 999999999999.0
    },
    "NextMonthC32ANbr": {
      "type": "number",
      "minimum": 0.0,
      "maximum": 999999999999.0
    },
    "PlannedHoursNbr": {
      "type": "integer",
      "minimum": 0.0,
      "maximum": 999.0
    },
    "UsingData": {
      "$ref": "#/definitions/UsingData"
    },
    "Receipt": {
      "type": "number",
      "minimum": 0.0,
      "maximum": 999999999999.0
    },
    "JointCommissionNbr": {
      "type": "string",
      "minLength": 3,
      "maxLength": 6,
      "pattern": "^[0-9,.]*$"
    },
    "WorkerType": {
      "type": "string",
      "minLength": 3,
      "maxLength": 3
    },
    "LastAction": {
      "type": "string",
      "minLength": 1,
      "maxLength": 1
    },
    "ExceedingHoursNbr": {
      "type": "integer",
      "minimum": 0.0,
      "maximum": 999.0
    },
    "QuotaExceeded": {
      "type": "string",
      "enum": [
        "N",
        "Y"
      ]
    },
    "Belated": {
      "type": "string",
      "enum": [
        "N",
        "Y"
      ]
    },
    "Status": {
      "type": "string",
      "enum": [
        "Blocked",
        "InProgress",
        "OK",
        "Error"
      ]
    },
    "Error": {
      "type": "string"
    }
  },
  "required": [
    "NatureDeclaration",
    "Email",
    "StartingDate"
  ]
}