{
    "$schema": "https://json-schema.org/draft/2020-12/schema",
    "$id": "agent.schema.json",
    "title": "Agent",
    "description": "Компания, выступающая платёжным агентом между клиентом и третьим лицом",
    "type": "object",

    "allOf": [{
            "title": "Company",
            "$ref": "company.schema.json"
    }],
    "properties": {
        "status": {
            "enum": ["ACTIVE", "INACTIVE"],
            "description": "Статус \n\n - `ACTIVE`: действующий агент\n - `INACTIVE`: заблокированный агент"
        },
        "representative" : {
            "$ref" : "common/_common.schema.json#/representative"
        },
        "email_for_bank_statement" : {
            "$ref" : "common/_common.schema.json#/email",
            "description": "Адрес электронной почты для банковской выписки"
        },
        "email_bank_statement_sender" : {
            "$ref" : "common/_common.schema.json#/email",
            "description": "Адрес электронной почты отправителя банковской выписки"
        }
    },
    "additionalProperties": false,
    "required": [
        "status"
    ]
}