"""Contract Lifecycle Schedule Detail marshmallow schema.""" from abacus_common_logic.marshalling.custom_fields import ma from abacus_contract.constants.constants import \ CONTRACT_LIFECYCLE_SCHEDULE_DETAIL_PERIOD_TYPES class ContractLifecycleScheduleDetailSchema(ma.Schema): """Schema for contract lifecycle schedule detail.""" contract_lifecycle_schedule_detail_id = ma.IntegerId(required=True) period_interval = ma.Integer(required=True) period_type = ma.Enum( options=CONTRACT_LIFECYCLE_SCHEDULE_DETAIL_PERIOD_TYPES, required=True )