""" Options: Date: 2024-12-29 02:57:40 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: TermStatementRequest.* #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 TermStatementRegistrationResponse: course_name: Optional[str] = None title: Optional[str] = None section_code: Optional[str] = None amount: Decimal = decimal.Decimal(0) is_audit: bool = False meeting_days: Optional[str] = None times: Optional[str] = None room: Optional[str] = None instructor: Optional[str] = None status: Optional[str] = None cost: Decimal = decimal.Decimal(0) start_date: Optional[datetime.datetime] = None end_date: Optional[datetime.datetime] = None @dataclass_json(letter_case=LetterCase.CAMEL, undefined=Undefined.EXCLUDE) @dataclass class TermStatementChargesResponse: date: datetime.datetime = datetime.datetime(1, 1, 1) code: Optional[str] = None description: Optional[str] = None is_financial_aid: bool = False charge: Decimal = decimal.Decimal(0) @dataclass_json(letter_case=LetterCase.CAMEL, undefined=Undefined.EXCLUDE) @dataclass class TermStatementResponse: response_status: Optional[ResponseStatus] = None regent_id: int = 0 uuid: Optional[str] = None name: Optional[str] = None addr1: Optional[str] = None addr2: Optional[str] = None city: Optional[str] = None state: Optional[str] = None country: Optional[str] = None code: Optional[str] = None reporting_term: Optional[str] = None reporting_term_start_date: datetime.datetime = datetime.datetime(1, 1, 1) reporting_term_end_date: datetime.datetime = datetime.datetime(1, 1, 1) academic_program: Optional[str] = None total_term_payments: Decimal = decimal.Decimal(0) total_term_charges: Decimal = decimal.Decimal(0) total_term_taxes: Decimal = decimal.Decimal(0) registrations: Optional[List[TermStatementRegistrationResponse]] = None charges: Optional[List[TermStatementChargesResponse]] = None # @Route("/TermStatements/{uuid}/{reporting_term}", "POST") @dataclass_json(letter_case=LetterCase.CAMEL, undefined=Undefined.EXCLUDE) @dataclass class TermStatementRequest(IReturn[TermStatementResponse]): uuid: Optional[str] = None reporting_term: Optional[str] = None authorizing_uuid: Optional[str] = None