/* Options: Date: 2025-09-03 19:51:23 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: UpdatePasswordRequest.* //ExcludeTypes: //ExcludeGenericBaseTypes: False //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True //InitializeCollections: True //TreatTypesAsStrings: //DefaultImports: Foundation,ServiceStack */ import Foundation import ServiceStack // @Route("/users/passwords/update", "POST") public class UpdatePasswordRequest : PostOperationUnTenanted, IReturn { public typealias Return = UpdatePasswordResponse public var currentPassword:String? public var newPassword:String? required public init(){ super.init() } private enum CodingKeys : String, CodingKey { case currentPassword case newPassword } required public init(from decoder: Decoder) throws { try super.init(from: decoder) let container = try decoder.container(keyedBy: CodingKeys.self) currentPassword = try container.decodeIfPresent(String.self, forKey: .currentPassword) newPassword = try container.decodeIfPresent(String.self, forKey: .newPassword) } public override func encode(to encoder: Encoder) throws { try super.encode(to: encoder) var container = encoder.container(keyedBy: CodingKeys.self) if currentPassword != nil { try container.encode(currentPassword, forKey: .currentPassword) } if newPassword != nil { try container.encode(newPassword, forKey: .newPassword) } } } public class UpdatePasswordResponse : Codable { public var responseStatus:ResponseStatus? required public init(){} } public class PostOperationUnTenanted : IPost, Codable { required public init(){} }