""" Options: Date: 2026-04-04 02:56:12 Version: 8.52 Tip: To override a DTO option, remove "#" prefix before updating BaseUrl: https://pfapi.pstpf.com.au/api #GlobalNamespace: #AddServiceStackTypes: True #AddResponseStatus: False #AddImplicitVersion: #AddDescriptionAsComments: True IncludeTypes: SaveDynamicContent.* #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 ObjectDynamicContentModel: # @ApiMember(Description="The dynamic content Id (PKID)", ParameterType="query") object_dynamic_content_id: Optional[str] = None """ The dynamic content Id (PKID) """ # @ApiMember(Description="The object Id this dynamic content record is for.", ParameterType="query") object_id: Optional[str] = None """ The object Id this dynamic content record is for. """ # @ApiMember(Description="The dynamic content definition id that indicates what this dynamic content contains", ParameterType="query") dynamic_content_definition_id: Optional[str] = None """ The dynamic content definition id that indicates what this dynamic content contains """ # @ApiMember(Description="Name of the dynamic content definition", ParameterType="query") definition_name: Optional[str] = None """ Name of the dynamic content definition """ # @ApiMember(Description="The format Id the dynamic content is saved as", ParameterType="query") content_format_id: Optional[str] = None """ The format Id the dynamic content is saved as """ # @ApiMember(Description="Name of the content format", ParameterType="query") content_format: Optional[str] = None """ Name of the content format """ # @ApiMember(Description="The content string regardless of the format.", ParameterType="query") content: Optional[str] = None """ The content string regardless of the format. """ # @ApiMember(Description="XML content if the format is XML", ParameterType="query") xml_content: Optional[str] = None """ XML content if the format is XML """ # @ApiMember(Description="The contact id of the licensee who owns this record", ParameterType="query") owner_contact_id: Optional[str] = None """ The contact id of the licensee who owns this record """ # @ApiMember(Description="Record Status of the dynamic content", ParameterType="query") record_status: Optional[str] = None """ Record Status of the dynamic content """ # @ApiResponse(Description="Dynamic Content Value") @dataclass_json(letter_case=LetterCase.CAMEL, undefined=Undefined.EXCLUDE) @dataclass class GetDynamicContentResponse: # @ApiMember(Description="Dynamic Content Value.") dynamic_content: Optional[ObjectDynamicContentModel] = None """ Dynamic Content Value. """ response_status: Optional[ResponseStatus] = None # @Route("/dynamiccontent/", "POST") # @Route("/dynamiccontent/{ObjectDynamicContentId}", "PUT") # @Api(Description="Add or update dynamic content.") @dataclass_json(letter_case=LetterCase.CAMEL, undefined=Undefined.EXCLUDE) @dataclass class SaveDynamicContent(IReturn[GetDynamicContentResponse]): """ Add or update dynamic content. """ # @ApiMember(Description="Dynamic Content details.") dynamic_content: Optional[ObjectDynamicContentModel] = None """ Dynamic Content details. """ # @ApiMember(Description="Id of the Dynamic Content record.", ParameterType="path") object_dynamic_content_id: Optional[str] = None """ Id of the Dynamic Content record. """