use crate::codec::Code;
use crate::codec::{An, Cur, Dat, DataElementGroup, Dig, Id, Jn, Num, Tim, Wrt};
#[derive(Debug, Clone, PartialEq, Eq, DataElementGroup)]
pub struct Kik1 {
#[de(len = 3)]
pub country: Dig,
#[de(max = 30)]
pub bank_code: Option<An>,
}
#[derive(Debug, Clone, PartialEq, Eq, DataElementGroup)]
pub struct Kti1 {
#[de(max = 34)]
pub iban: Option<An>,
#[de(max = 11)]
pub bic: Option<An>,
pub account_number: Option<Id>,
pub subaccount: Option<Id>,
pub bank: Option<Kik1>,
}
#[derive(Debug, Clone, PartialEq, Eq, DataElementGroup)]
pub struct ReferenceMessage {
pub dialog_id: Id,
#[de(max = 4)]
pub message_number: Num,
}
#[derive(Debug, Clone, PartialEq, Eq, DataElementGroup)]
pub struct Ktv3 {
pub account_number: Id,
pub subaccount: Option<Id>,
pub bank: Kik1,
}
#[derive(Debug, Clone, PartialEq, Eq, DataElementGroup)]
pub struct Ktz1 {
pub sepa_usable: Jn,
#[de(max = 34)]
pub iban: Option<An>,
#[de(max = 11)]
pub bic: Option<An>,
pub account_number: Id,
pub subaccount: Option<Id>,
pub bank: Kik1,
}
#[derive(Debug, Clone, PartialEq, Eq, DataElementGroup)]
pub struct Tsp1 {
pub date: Dat,
pub time: Option<Tim>,
}
#[derive(Debug, Clone, PartialEq, Eq, DataElementGroup)]
pub struct SdoBtg {
pub value: Wrt,
pub currency: Option<Cur>,
}
#[derive(Debug, Clone, PartialEq, Eq, DataElementGroup)]
pub struct Sdo2 {
#[de(len = 1)]
pub debit_credit: Code,
pub amount: SdoBtg,
pub date: Option<Dat>,
pub time: Option<Tim>,
}