from datetime import datetime

def generate_transaction_number(insurance_type: str) -> str:
    """Generate transaction number based on insurance type"""
    
    type_codes = {
        "annuity": "ANU",
        "life": "LIF", 
        "renters": "REN",
        "commercial_auto": "CAI",
        "group_health": "GHE",
        "group_life": "GLI",
        "ocean_marine": "OMA",
        "commercial_property": "CPR",
        "workers_compensation": "WCO",
        "business_owner_policy": "BOP",
        "agriculture": "AGR",
        "umbrella": "UMB",
        "health": "HEA",
        "home_insurance": "HOME",
        "professional_liability": "PROF",
        "business": "BUS"
    }
    
    code = type_codes.get(insurance_type.lower(), "INS")
    timestamp = datetime.now().strftime('%Y%m%d-%H%M%S')
    
    return f"{code}-{timestamp}-A01"