""" Options: Date: 2025-04-05 01:42:29 Version: 8.23 Tip: To override a DTO option, remove "#" prefix before updating BaseUrl: https://testapi.bokamera.se #GlobalNamespace: #AddServiceStackTypes: True #AddResponseStatus: False #AddImplicitVersion: #AddDescriptionAsComments: True IncludeTypes: DeleteCompanyCommentSuperAdminUser.* #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 class ICompany: company_id: Optional[str] = None class CommentsType(IntEnum): NORMAL_COMMENT = 1 CALL_BACK_PHONE_COMMENT = 2 CALL_BACK_EMAIL_COMMENT = 3 CALL_BACK_MEETING_BOOKED_COMMENT = 4 CALL_BACK_NOT_INTERESTED_COMMENT = 5 @dataclass_json(letter_case=LetterCase.CAMEL, undefined=Undefined.EXCLUDE) @dataclass class CommentsType(BaseModel): id: int = 0 name: Optional[str] = None description: Optional[str] = None modified_date: Optional[datetime.datetime] = None @dataclass_json(letter_case=LetterCase.CAMEL, undefined=Undefined.EXCLUDE) @dataclass class CommentsTypeResponse: id: int = 0 name: Optional[str] = None description: Optional[str] = None @dataclass_json(letter_case=LetterCase.CAMEL, undefined=Undefined.EXCLUDE) @dataclass class CompanyCommentsResponse: # @ApiMember() company_id: Optional[str] = None # @ApiMember() id: int = 0 # @ApiMember(IsRequired=true) comment: Optional[str] = None # @ApiMember(IsRequired=true) comment_type_id: Optional[CommentsType] = None # @ApiMember(IsRequired=true) comment_type: Optional[CommentsTypeResponse] = None # @ApiMember(Description="The updated date") updated: datetime.datetime = datetime.datetime(1, 1, 1) """ The updated date """ # @ApiMember(Description="The created date") created: datetime.datetime = datetime.datetime(1, 1, 1) """ The created date """ # @ApiMember(Description="The created by") created_by: Optional[str] = None """ The created by """ # @Route("/superadmin/company/{CompanyId}/comments/{Id}", "DELETE") # @ApiResponse(Description="", StatusCode=400) # @ApiResponse(Description="Returned if the current user is not allowed to perform the action", StatusCode=401) @dataclass_json(letter_case=LetterCase.CAMEL, undefined=Undefined.EXCLUDE) @dataclass class DeleteCompanyCommentSuperAdminUser(IReturn[CompanyCommentsResponse], ICompany): # @ApiMember(Description="Enter the companyId for the customer", IsRequired=true, ParameterType="query") company_id: Optional[str] = None """ Enter the companyId for the customer """ # @ApiMember(IsRequired=true, ParameterType="query") id: int = 0