""" Options: Date: 2024-12-29 02:40:00 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: CRMTaxReceiptsRequest.* #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 CRMTaxReceiptResponse: regent_id: int = 0 donor_first_name: Optional[str] = None donor_last_name: Optional[str] = None guid: Optional[str] = None title: Optional[str] = None total_paid_amount: Decimal = decimal.Decimal(0) total_receipt_amount: Decimal = decimal.Decimal(0) is_annual: bool = False year: Optional[int] = None has_document: bool = False tax_receipt_send_method: Optional[str] = None status: Optional[str] = None tax_receipt_template_guid: Optional[str] = None tax_receipt_template_name: Optional[str] = None tax_receipt_email: Optional[str] = None email_sent_date: Optional[datetime.datetime] = None email_sent_to: Optional[str] = None gift_date: Optional[datetime.datetime] = None sent_date: Optional[datetime.datetime] = None @dataclass_json(letter_case=LetterCase.CAMEL, undefined=Undefined.EXCLUDE) @dataclass class CRMTaxReceiptsResponse: response_status: Optional[ResponseStatus] = None tax_receipts: Optional[List[CRMTaxReceiptResponse]] = None from_date: Optional[datetime.datetime] = None to_date: Optional[datetime.datetime] = None # @Route("/DynamicsCRM/TaxReceipts", "POST") # @Route("/DynamicsCRM/TaxReceipts/{regent_id}", "POST") @dataclass_json(letter_case=LetterCase.CAMEL, undefined=Undefined.EXCLUDE) @dataclass class CRMTaxReceiptsRequest(IReturn[CRMTaxReceiptsResponse]): regent_id: Optional[int] = None from_date: Optional[datetime.datetime] = None to_date: Optional[datetime.datetime] = None has_document: bool = False year: Optional[int] = None