""" Options: Date: 2025-07-18 00:02:06 Version: 8.80 Tip: To override a DTO option, remove "#" prefix before updating BaseUrl: https://smsgw.intele.no/pushsms/rest #GlobalNamespace: #AddServiceStackTypes: True #AddResponseStatus: False #AddImplicitVersion: #AddDescriptionAsComments: True IncludeTypes: RestSmsRequest.* #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 RestSmsResponse: # @ApiMember(DataType="boolean", Description="Overall status of processing the request. Each message will have it's own status. This value indicates if any other error occured or not", IsRequired=true, Name="ProcessResult", ParameterType="form") process_result: bool = False """ Overall status of processing the request. Each message will have it's own status. This value indicates if any other error occured or not """ # @ApiMember(DataType="string", Description="Description of any error occured, if ProcessResult equals false", Name="ProcessResultDescription", ParameterType="form") # @StringLength(2048) process_result_description: Optional[str] = None """ Description of any error occured, if ProcessResult equals false """ # @ApiMember(Description="Collection of messages sent or failed", Name="Description", ParameterType="form") messages: List[RestSmsMessageResp] = field(default_factory=list) """ Collection of messages sent or failed """ @dataclass_json(letter_case=LetterCase.CAMEL, undefined=Undefined.EXCLUDE) @dataclass class RestSmsRequest(IReturn[RestSmsResponse]): # @ApiMember(DataType="string", Description="API Username. Usually your customer id", IsRequired=true, Name="Username", ParameterType="form") # @StringLength(128) username: Optional[Object] = None """ API Username. Usually your customer id """ # @ApiMember(DataType="string", Description="API Password", IsRequired=true, Name="Password", ParameterType="form") # @StringLength(128) password: Optional[str] = None """ API Password """ # @ApiMember(Description="Collection of messages to send", IsRequired=true, Name="Messages", ParameterType="form") messages: List[RestSmsMessageReq] = field(default_factory=list) """ Collection of messages to send """