""" Options: Date: 2026-04-04 02:55:36 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: GetContactNotifications.* #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 InputSwitch: id: Optional[str] = None name: Optional[str] = None is_disabled: bool = False is_checked: bool = False @dataclass_json(letter_case=LetterCase.CAMEL, undefined=Undefined.EXCLUDE) @dataclass class NotificationDetails: notification_id: Optional[str] = None notification_group_name: Optional[str] = None notification_value_id: Optional[str] = None name: Optional[str] = None description: Optional[str] = None is_mandatory: bool = False is_cardinality: bool = False is_system: bool = False is_visible_to_recipients: bool = False index: int = 0 email: Optional[InputSwitch] = None sms: Optional[InputSwitch] = None update_notification: Optional[InputSwitch] = None push: Optional[InputSwitch] = None phone: Optional[InputSwitch] = None @dataclass_json(letter_case=LetterCase.CAMEL, undefined=Undefined.EXCLUDE) @dataclass class NotificationGroup: group_name: Optional[str] = None notifications: Optional[List[NotificationDetails]] = None # @ApiResponse(Description="List of contact notifications") @dataclass_json(letter_case=LetterCase.CAMEL, undefined=Undefined.EXCLUDE) @dataclass class GetContactNotificationsResponse: notifications: Optional[List[NotificationGroup]] = None response_status: Optional[ResponseStatus] = None # @Route("/contact/{ContactId}/notifications") # @Api(Description="Get notifications for the specified contact") @dataclass_json(letter_case=LetterCase.CAMEL, undefined=Undefined.EXCLUDE) @dataclass class GetContactNotifications(IReturn[GetContactNotificationsResponse]): """ Get notifications for the specified contact """ # @ApiMember(Description="Id of contact to get notifications for", IsRequired=true, Name="ContactId") contact_id: Optional[str] = None """ Id of contact to get notifications for """ # @ApiMember(Description="Id of licensee to get notifications for", IsRequired=true, Name="LicenseeId") licensee_id: Optional[str] = None """ Id of licensee to get notifications for """ # @ApiMember(Description="Id of suite to get notifications for", IsRequired=true, Name="Suite") suite_id: Optional[str] = None """ Id of suite to get notifications for """