// SPDX-FileCopyrightText: Politik im Blick developers
// SPDX-FileCopyrightText: Wolfgang Silbermayr <wolfgang@silbermayr.at>
//
// SPDX-License-Identifier: AGPL-3.0-or-later OR EUPL-1.2

use oparl_types::{BodyClassification, DateTime, EmailAddress, Name, Url};
use pib_service_core_types::BodyId;
use serde::{Deserialize, Serialize};

pub mod get;
pub mod post;

pub mod by_id;

#[derive(Debug, Clone, PartialEq, Eq, Deserialize, Serialize)]
pub struct Body {
    pub id: BodyId,
    pub created: DateTime,
    pub modified: DateTime,
    pub short_name: Option<Name>,
    pub name: Name,
    pub website: Option<Url>,
    pub license: Option<Url>,
    pub license_valid_since: Option<DateTime>,
    pub oparl_since: Option<DateTime>,
    pub ags: Option<String>,
    pub rgs: Option<String>,
    pub contact_email: Option<EmailAddress>,
    pub contact_name: Option<Name>,
    pub classification: Option<BodyClassification>,
    pub is_public: bool,
}
