/* Options: Date: 2024-11-24 13:23:17 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: ClubVisitHistoryRequest.* //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/visit-history", Verbs="GET") open class ClubVisitHistoryRequest : ClubVisitHistoryRequestDto(), 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 /** * Either StoreId or ChainId is required */ @ApiMember(DataType="integer", Description="Either StoreId or ChainId is required", Name="StoreId", ParameterType="query") var StoreId:Int? = null /** * Either StoreId or ChainId is required */ @ApiMember(DataType="integer", Description="Either StoreId or ChainId is required", Name="ChainId", ParameterType="query") var ChainId:Int? = null /** * UTC Format */ @ApiMember(DataType="date", Description="UTC Format", IsRequired=true, Name="FromDate", ParameterType="query") var FromDate:Date? = null /** * Max 24 Hours (UTC Format) */ @ApiMember(DataType="date", Description="Max 24 Hours (UTC Format)", IsRequired=true, Name="ToDate", ParameterType="query") var ToDate:Date? = null var RestrictedId:Int? = null var RestrictedResourceType:RestrictedResourceType? = null companion object { private val responseType = ClubVisitHistoryResponse::class.java } override fun getResponseType(): Any? = ClubVisitHistoryRequest.responseType } open class ClubVisitHistoryResponse : ClubVisitHistoryResponseDto() { var Success:Boolean? = null var Message:String? = null var TotalVisits:Int? = null var Visits:ArrayList = ArrayList() } 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 ClubVisitHistoryRequestDto : ApiDtoBase() { var FromDate:Date? = null var ToDate:Date? = null } open class ClubVisitHistoryItem { var CheckinLogId:Int? = null var UserId:Int? = null var FirstName:String? = null var LastName:String? = null var CheckinStoreId:Int? = null var CheckinLocationName:String? = null var HomeStoreId:Int? = null var HomeStoreLocationName:String? = null var UtcTime:Date? = null } open class ClubVisitHistoryResponseDto : ApiResponseBase() { var TotalVisits:Int? = null var Visits:ArrayList = ArrayList() } open class ApiResponseBase { var Success:Boolean? = null var Message:String? = null }