"""Schema validation for statement period.""" from abacus_common_logic.marshalling.custom_fields import ma class StatementPeriodDetailSchema(ma.Schema): """Statement period detail response.""" statement_period_id = ma.IntegerId() statement_period_name = ma.NonemptyString(required=True) statement_period_status = ma.NonemptyString(required=True) statement_month = ma.IntegerId() statement_year = ma.IntegerId() closed_date = ma.FormattedDate(required=False) exchange_rates_delivered = ma.Boolean()