""" Options: Date: 2024-12-29 03:26:03 Version: 8.22 Tip: To override a DTO option, remove "#" prefix before updating BaseUrl: https://data.regent-college.edu #GlobalNamespace: #AddServiceStackTypes: True #AddResponseStatus: False #AddImplicitVersion: #AddDescriptionAsComments: True IncludeTypes: GradeByStudentRequest.* #ExcludeTypes: #DefaultImports: datetime,decimal,marshmallow.fields:*,servicestack:*,typing:*,dataclasses:dataclass/field,dataclasses_json:dataclass_json/LetterCase/Undefined/config,enum:Enum/IntEnum #DataClass: #DataClassJson: """ import datetime import decimal from marshmallow.fields import * from servicestack import * from typing import * from dataclasses import dataclass, field from dataclasses_json import dataclass_json, LetterCase, Undefined, config from enum import Enum, IntEnum @dataclass_json(letter_case=LetterCase.CAMEL, undefined=Undefined.EXCLUDE) @dataclass class InstructorResponse: response_status: Optional[ResponseStatus] = None regent_id: int = 0 regent_login: Optional[str] = None preferred_name: Optional[str] = None first_name: Optional[str] = None last_name: Optional[str] = None full_name: Optional[str] = None email: Optional[str] = None image_base64: Optional[str] = None @dataclass_json(letter_case=LetterCase.CAMEL, undefined=Undefined.EXCLUDE) @dataclass class StudentAcademicCredentialExtensionResponse: uuid: Optional[str] = None stac_uuid: Optional[str] = None regent_id: int = 0 first_name: Optional[str] = None last_name: Optional[str] = None course_name: Optional[str] = None section_code: Optional[str] = None location_code: Optional[str] = None title: Optional[str] = None term: Optional[str] = None reporting_term: Optional[str] = None is_audit: bool = False is_active: bool = False amount: Decimal = decimal.Decimal(0) instructors: Optional[List[InstructorResponse]] = None due_date: Optional[datetime.datetime] = None received_date: Optional[datetime.datetime] = None grade_penalty: Optional[str] = None assignments: Optional[str] = None comments: Optional[str] = None added_date: Optional[datetime.datetime] = None added_by: Optional[str] = None changed_date: Optional[datetime.datetime] = None changed_by: Optional[str] = None @dataclass_json(letter_case=LetterCase.CAMEL, undefined=Undefined.EXCLUDE) @dataclass class GradeResponse: response_status: Optional[ResponseStatus] = None id: int = 0 grade_code: Optional[str] = None grade_name: Optional[str] = None grade_points: Decimal = decimal.Decimal(0) gpa_credit: bool = False completed_credit: bool = False @dataclass_json(letter_case=LetterCase.CAMEL, undefined=Undefined.EXCLUDE) @dataclass class StudentAcademicCredentialResponse: response_status: Optional[ResponseStatus] = None uuid: Optional[str] = None stac_uuid: Optional[str] = None section_id: Optional[int] = None course_name: Optional[str] = None section_code: Optional[str] = None subject: Optional[str] = None course_level: Optional[int] = None title: Optional[str] = None pretty_title: Optional[str] = None location: Optional[str] = None is_audio: bool = False is_oncampus: bool = False credit_value: Optional[Decimal] = None audit_value: Optional[Decimal] = None is_audit: bool = False is_pass_fail: bool = False grade: Optional[str] = None is_grade_final: bool = False gpa_credits: Optional[Decimal] = None grade_points: Optional[Decimal] = None academic_level: Optional[str] = None printed_comments: Optional[str] = None term: Optional[str] = None reporting_term: Optional[str] = None reporting_year: Optional[int] = None current_status: Optional[str] = None added_by: Optional[str] = None added_date: Optional[datetime.datetime] = None changed_by: Optional[str] = None changed_date: Optional[datetime.datetime] = None @dataclass_json(letter_case=LetterCase.CAMEL, undefined=Undefined.EXCLUDE) @dataclass class GradeByStudentResponse: response_status: Optional[ResponseStatus] = None regent_id: int = 0 uuid: Optional[str] = None student_academic_credentials: Optional[List[StudentAcademicCredentialResponse]] = None student_academic_credential_retakes: Optional[List[StudentAcademicCredentialResponse]] = None student_academic_credential_extensions: Optional[List[StudentAcademicCredentialExtensionResponse]] = None valid_grades: Optional[List[GradeResponse]] = None # @Route("/Academic/Student/{uuid}/Grade", "POST") @dataclass_json(letter_case=LetterCase.CAMEL, undefined=Undefined.EXCLUDE) @dataclass class GradeByStudentRequest(IReturn[GradeByStudentResponse]): uuid: Optional[str] = None