/* Options: Date: 2025-12-06 07:53:20 SwiftVersion: 6.0 Version: 8.80 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://api.dev.dynamics.trendsic.com //BaseClass: //AddModelExtensions: True //AddServiceStackTypes: True //MakePropertiesOptional: True IncludeTypes: UserVerifyCellPhoneRequest.* //ExcludeTypes: //ExcludeGenericBaseTypes: False //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True //InitializeCollections: True //TreatTypesAsStrings: //DefaultImports: Foundation,ServiceStack */ import Foundation import ServiceStack // @Route("/v1/userverifycellphone", "GET,PUT,POST,OPTIONS") public class UserVerifyCellPhoneRequest : IReturn, Codable { public typealias Return = AwsAuthResponse public var userId:String? public var cellPhone:String? public var verificationCode:String? required public init(){} } public class AwsAuthResponse : Codable { public var responseStatus:ResponseStatus? public var initiateAuthResponse:InitiateAuthResponse? public var success:Bool? required public init(){} } public class InitiateAuthResponse : AmazonWebServiceResponse { public var authenticationResult:AuthenticationResultType? public var challengeName:ChallengeNameType? public var challengeParameters:[String:String] = [:] public var session:String? required public init(){ super.init() } private enum CodingKeys : String, CodingKey { case authenticationResult case challengeName case challengeParameters case session } required public init(from decoder: Decoder) throws { try super.init(from: decoder) let container = try decoder.container(keyedBy: CodingKeys.self) authenticationResult = try container.decodeIfPresent(AuthenticationResultType.self, forKey: .authenticationResult) challengeName = try container.decodeIfPresent(ChallengeNameType.self, forKey: .challengeName) challengeParameters = try container.decodeIfPresent([String:String].self, forKey: .challengeParameters) ?? [:] session = try container.decodeIfPresent(String.self, forKey: .session) } public override func encode(to encoder: Encoder) throws { try super.encode(to: encoder) var container = encoder.container(keyedBy: CodingKeys.self) if authenticationResult != nil { try container.encode(authenticationResult, forKey: .authenticationResult) } if challengeName != nil { try container.encode(challengeName, forKey: .challengeName) } if challengeParameters.count > 0 { try container.encode(challengeParameters, forKey: .challengeParameters) } if session != nil { try container.encode(session, forKey: .session) } } } public class AuthenticationResultType : Codable { public var accessToken:String? public var expiresIn:Int? public var idToken:String? public var newDeviceMetadata:NewDeviceMetadataType? public var refreshToken:String? public var tokenType:String? required public init(){} } public class ChallengeNameType : ConstantClass { required public init(){ super.init() } required public init(from decoder: Decoder) throws { try super.init(from: decoder) } public override func encode(to encoder: Encoder) throws { try super.encode(to: encoder) } } public class ResponseMetadata : Codable { public var requestId:String? public var metadata:[String:String]? public var checksumAlgorithm:CoreChecksumAlgorithm? public var checksumValidationStatus:ChecksumValidationStatus? required public init(){} } public class AmazonWebServiceResponse : Codable { public var responseMetadata:ResponseMetadata? public var contentLength:Int? public var httpStatusCode:HttpStatusCode? required public init(){} } public class NewDeviceMetadataType : Codable { public var deviceGroupKey:String? public var deviceKey:String? required public init(){} } public class ConstantClass : Codable { public var value:String? required public init(){} } public enum CoreChecksumAlgorithm : String, Codable { case NONE case CRC32C case CRC32 case SHA256 case SHA1 } public enum ChecksumValidationStatus : String, Codable { case NOT_VALIDATED case PENDING_RESPONSE_READ case SUCCESSFUL case INVALID }