{"$schema":"https://json-schema.org/draft/2020-12/schema","$id":"be.reports.dna_reconciliation","type":"object","additionalProperties":false,"required":["letter","entity","period","expense_rows","totals"],"properties":{"letter":{"type":"object","additionalProperties":false,"required":["date","reference"],"properties":{"date":{"type":"string","format":"date"},"reference":{"type":"string","minLength":1}}},"entity":{"type":"object","additionalProperties":false,"required":["name","bce","vat"],"properties":{"name":{"type":"string","minLength":1},"bce":{"type":"string","pattern":"^0[0-9]{3}\\.[0-9]{3}\\.[0-9]{3}$"},"vat":{"type":"string","pattern":"^BE0[0-9]{9}$"},"address":{"type":"string"},"city":{"type":"string"}}},"period":{"type":"object","additionalProperties":false,"required":["fiscal_year","start","end"],"properties":{"fiscal_year":{"type":"string","pattern":"^[0-9]{4}$"},"start":{"type":"string","format":"date"},"end":{"type":"string","format":"date"}}},"expense_rows":{"type":"array","minItems":1,"items":{"type":"object","additionalProperties":false,"required":["expense_category","pcmn_account","total_amount","disallowed_pct","disallowed_amount","deductible_amount"],"properties":{"expense_category":{"type":"string","minLength":1},"pcmn_account":{"type":"string","pattern":"^[0-9]{3,7}$"},"total_amount":{"type":"number","minimum":0},"disallowed_pct":{"type":"number","minimum":0,"maximum":100},"disallowed_amount":{"type":"number","minimum":0},"deductible_amount":{"type":"number","minimum":0},"cir92_article":{"type":"string"},"note":{"type":"string"}}}},"totals":{"type":"object","additionalProperties":false,"required":["total_expenses","total_disallowed","total_deductible"],"properties":{"total_expenses":{"type":"number","minimum":0},"total_disallowed":{"type":"number","minimum":0},"total_deductible":{"type":"number","minimum":0}}},"biztax_section":{"type":"string"},"notes":{"type":"string"}}}