/* Options: Date: 2024-11-24 13:24:44 Version: 6.50 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://clubready.com/api/current //Package: //AddServiceStackTypes: True //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True IncludeTypes: CreateGuestPassRequest.* //ExcludeTypes: //InitializeCollections: True //TreatTypesAsStrings: //DefaultImports: java.math.*,java.util.*,net.servicestack.client.* */ import java.math.* import java.util.* import net.servicestack.client.* @Route(Path="/club/guest-pass/create", Verbs="POST") open class CreateGuestPassRequest : CreateGuestPassRequestDto(), IReturn, IRestrictedApiRequest { /** * Api Key - grants access to resources */ @ApiMember(DataType="string", Description="Api Key - grants access to resources", IsRequired=true, Name="ApiKey", ParameterType="query") var ApiKey:String? = null /** * User ID */ @ApiMember(DataType="string", Description="User ID", IsRequired=true, Name="UserId", ParameterType="query") var UserId:Int? = null /** * Store ID */ @ApiMember(DataType="integer", Description="Store ID", IsRequired=true, Name="StoreId", ParameterType="query") var StoreId:Int? = null /** * Guest pass type to create. */ @ApiMember(DataType="integer", Description="Guest pass type to create.", IsRequired=true, Name="GuestPassTypeId", ParameterType="query") var GuestPassTypeId:Int? = null /** * Activate this Guest Pass immediately? (True or False) */ @ApiMember(DataType="bool", Description="Activate this Guest Pass immediately? (True or False)", IsRequired=true, Name="Activated", ParameterType="query") var Activated:Boolean? = null /** * When will this pass expire? (leave blank for never) */ @ApiMember(DataType="datetime", Description="When will this pass expire? (leave blank for never)", Name="Expires", ParameterType="query") var Expires:Date? = null var RestrictedId:Int? = null var RestrictedResourceType:RestrictedResourceType? = null companion object { private val responseType = CreateGuestPassResponse::class.java } override fun getResponseType(): Any? = CreateGuestPassRequest.responseType } open class CreateGuestPassResponse : CreateGuestPassResponseDto() { var Success:Boolean? = null var GuestPassId:Int? = null var Message:String? = null } enum class RestrictedResourceType { Store, Chain, User, Undefined, } open interface IRestrictedApiRequest : IApiKeyEndpoint { var RestrictedId:Int? var RestrictedResourceType:RestrictedResourceType? } open interface IApiKeyEndpoint { var ApiKey:String? } open class ApiDtoBase { var ApiKey:String? = null var StoreId:Int? = null var ChainId:Int? = null } open class CreateGuestPassRequestDto : ApiDtoBase() { var UserId:Int? = null var GuestPassTypeId:Int? = null var Activated:Boolean? = null var Expires:Date? = null } open class CreateGuestPassResponseDto : ApiResponseBase() { var GuestPassId:Int? = null } open class ApiResponseBase { var Success:Boolean? = null var Message:String? = null }