(* Options:
Date: 2025-04-11 19:31:29
Version: 8.23
Tip: To override a DTO option, remove "//" prefix before updating
BaseUrl: https://api.bokamera.se

//GlobalNamespace: 
//MakeDataContractsExtensible: False
//AddReturnMarker: True
//AddDescriptionAsComments: True
//AddDataContractAttributes: False
//AddIndexesToDataMembers: False
//AddGeneratedCodeAttributes: False
//AddResponseStatus: False
//AddImplicitVersion: 
//ExportValueTypes: False
IncludeTypes: CreateUser.*
//ExcludeTypes: 
//InitializeCollections: True
//AddNamespaces: 
*)

namespace BokaMera.API.ServiceModel.Dtos

open System
open System.Collections
open System.Collections.Generic
open System.Runtime.Serialization
open ServiceStack
open ServiceStack.DataAnnotations
open System.Globalization
open ServiceStack.Data
open System.IO
open System.Net
open System.Net.Http.Headers

    [<AllowNullLiteral>]
    type CreateUserResponse() = 
        member val ResponseStatus:Object = null with get,set
        member val Id:Nullable<Guid> = new Nullable<Guid>() with get,set
        member val UserId:Nullable<Guid> = new Nullable<Guid>() with get,set
        member val Email:String = null with get,set
        member val Firstname:String = null with get,set
        member val Lastname:String = null with get,set
        member val Phone:String = null with get,set
        member val CreatedDate:Nullable<DateTime> = new Nullable<DateTime>() with get,set

    [<Route("/users", "POST")>]
    [<ApiResponse(Description="Returned if there is a validation error on the input parameters", StatusCode=400)>]
    [<ApiResponse(Description="Returned if the current user is not allowed to perform the action", StatusCode=401)>]
    [<AllowNullLiteral>]
    type CreateUser() = 
        interface IReturn<CreateUserResponse>
        [<ApiMember(IsRequired=true)>]
        member val Firstname:String = null with get,set

        [<ApiMember(IsRequired=true)>]
        member val Lastname:String = null with get,set

        [<ApiMember>]
        member val Phone:String = null with get,set

        [<ApiMember(IsRequired=true)>]
        member val Email:String = null with get,set