/* Options: Date: 2025-09-03 19:55:44 SwiftVersion: 5.0 Version: 6.10 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://foundrystage-api-app.azurewebsites.net //BaseClass: //AddModelExtensions: True //AddServiceStackTypes: True IncludeTypes: ResetTwoFactorAuthenticationRequest.* //ExcludeTypes: //ExcludeGenericBaseTypes: False //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True //InitializeCollections: True //TreatTypesAsStrings: //DefaultImports: Foundation,ServiceStack */ import Foundation import ServiceStack // @Route("/users/2fa/reset", "PUT") public class ResetTwoFactorAuthenticationRequest : PutOperationTenanted, IReturn { public typealias Return = ResetTwoFactorAuthenticationResponse public var targetUserId:String? public var callerCode:String? required public init(){ super.init() } private enum CodingKeys : String, CodingKey { case targetUserId case callerCode } required public init(from decoder: Decoder) throws { try super.init(from: decoder) let container = try decoder.container(keyedBy: CodingKeys.self) targetUserId = try container.decodeIfPresent(String.self, forKey: .targetUserId) callerCode = try container.decodeIfPresent(String.self, forKey: .callerCode) } public override func encode(to encoder: Encoder) throws { try super.encode(to: encoder) var container = encoder.container(keyedBy: CodingKeys.self) if targetUserId != nil { try container.encode(targetUserId, forKey: .targetUserId) } if callerCode != nil { try container.encode(callerCode, forKey: .callerCode) } } } public class ResetTwoFactorAuthenticationResponse : Codable { public var responseStatus:ResponseStatus? required public init(){} } public class PutOperationTenanted : PutOperationUnTenanted, ITenantedRequest { public var organisationId:String? required public init(){ super.init() } private enum CodingKeys : String, CodingKey { case organisationId } required public init(from decoder: Decoder) throws { try super.init(from: decoder) let container = try decoder.container(keyedBy: CodingKeys.self) organisationId = try container.decodeIfPresent(String.self, forKey: .organisationId) } public override func encode(to encoder: Encoder) throws { try super.encode(to: encoder) var container = encoder.container(keyedBy: CodingKeys.self) if organisationId != nil { try container.encode(organisationId, forKey: .organisationId) } } } public protocol ITenantedRequest { var organisationId:String? { get set } } public class PutOperationUnTenanted : IPut, Codable { required public init(){} }