{
	"$schema": "http://json-schema.org/draft-04/schema#",
	"type": "object",
	"required": [
		"eventType",
		"payloadVersion",
		"correlationId",
		"timestamp",
		"case"
	],
	"properties": {
		"eventType": {
			"type": "string"
		},
		"payloadVersion": {
			"type": "string"
		},
		"correlationId": {
			"type": "string"
		},
		"timestamp": {
			"type": "string"
		},
		"case": {
			"type": "object",
			"properties": {
				"number": {
					"type": "string"
				},
				"token": {
					"type": "string"
				},
				"uuid": {
					"type": "string"
				},
              	"sourceSystem": {
                  	"type": "string"
                }
			}
		},
		"report": {
			"type": "object",
			"properties": {
				"id": {
					"type": "string"
				},
				"reportType": {
					"type": "string",
                    "enum": [
                      "Inspection",
                      "PhoneInspection",
                      "RejectClaim",
                      "None",
                      "RepairOffer",
                      "AssessmentEstimate",
                      "DamageService",
                      "TreatmentPlan",
                      "ForsiApproved",
                      "ForsiPreliminary",
					  "ForsiUnknown",
					  "MatchService"
                    ]
				},
				"reportStatus": {
					"type": "string",
                    "enum": [
                      "Active",
                      "Approved",
                      "Rejected",
                      "Proposed",
                      "RequiresInspection",
                      "Draft",
                      "None"
                    ]
				},
				"createdOn": {
					"type": "string"
				},
				"submittedBy": {
					"type": "object",
					"properties": {
						"id": {
							"type": "string"
						},
						"name": {
							"type": "string"
						},
						"primaryContactName": {
							"type": "string"
						},
						"commercialTaxId": {
							"type": "string"
						},
						"personalTaxId": {
							"type": "string"
						},
						"phone": {
							"type": "string"
						},
						"smsPhone": {
							"type": "string"
						},
						"fax": {
							"type": "string"
						},
						"email": {
							"type": "string"
						},                      
        				"userType": {
        				  "type": "string"
        				}
					}
				},
                "coverage": {
					"type": "object",
					"properties": {
						"coverage": {
							"type": "string",
                            "enum": [
                              "Undefined",
                              "Covered",
                              "NotCovered",
                              "PartiallyCovered",
                              "Undertermined",
                              "BelowDeductible"
                            ]
						},
						"reason": {
							"type": "string"
						}
					}
                },
                "regress": {
					"type": "object",
					"properties": {
						"regress": {
							"type": "string",
                            "enum": [
                              "None",
                              "Yes",
                              "No",
                              "Unknown"
                            ]
						},
						"details": {
							"type": "string"
						}
					}
                },
				"damageDescription": {
					"type": "string"
				},
				"total": {
					"type": "number"
				},
				"subTotal": {
					"type": "number"
				},
				"vat": {
					"type": "number"
				},
				"source": {
					"type": "string",
                    "enum": [
                      "None",
                      "Embedded",
                      "Sigma",
                      "Meps",
                      "Meps2",
                      "Integrated"
                    ]
				},
				"comment": {
					"type": "string"
				},
				"deductible": {
					"type": "number"
				},
				"depreciation": {
					"type": "number"
				}
			}
		}
	}
}
