/* Options: Date: 2024-12-23 11:53:28 SwiftVersion: 5.0 Version: 8.0 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://consumer-api.brovs.com //BaseClass: //AddModelExtensions: True //AddServiceStackTypes: True IncludeTypes: UserCreateRequest.* //ExcludeTypes: //ExcludeGenericBaseTypes: False //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True //InitializeCollections: True //TreatTypesAsStrings: //DefaultImports: Foundation,ServiceStack */ import Foundation import ServiceStack // @Route("/signup/create_user", "POST") public class UserCreateRequest : IReturn, IPost, Codable { public typealias Return = UserCreateResponse public var token:String public var firstName:String public var lastName:String public var sex:Sex public var dateOfBirth:DateOfBirth public var email:String public var password:String public var passwordConfirmation:String public var home:HomeLocation public var acceptTermsOfService:Bool public var referFriendToken:String required public init(){} } public class UserCreateResponse : Codable { public var sentVerificationEmailWithRequestId:String public var passwordScore:Int? public var userGuid:String? public var referFriendAwarded:Bool required public init(){} } public class DateOfBirth : Codable { public var year:Int public var month:Int public var dayOfMonth:Int required public init(){} } public enum Sex : String, Codable { case Male case Female } public class HomeLocation : Codable { public var address:UserAddress public var latitude:Float public var longitude:Float required public init(){} } public class UserAddress : Codable { public var streetName:String public var streetNumber:String public var postalCode:String public var region:String public var countryCode:String required public init(){} }