GET | /club/guest-pass/types | Guest passes available at location. |
---|
import java.math.*
import java.util.*
import net.servicestack.client.*
open class GetGuestPassTypesRequest : GetGuestPassTypesRequestDto(), 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
var RestrictedId:Int? = null
var RestrictedResourceType:RestrictedResourceType? = null
}
open class GetGuestPassTypesRequestDto : ApiDtoBase()
{
}
open class ApiDtoBase
{
var ApiKey:String? = null
var StoreId:Int? = null
var ChainId:Int? = null
}
enum class RestrictedResourceType
{
Store,
Chain,
User,
Undefined,
}
open class GetGuestPassTypesResponse : GetGuestPassTypesResponseDto()
{
var GuestPassTypes:ArrayList<GuestPassTypeDto> = ArrayList<GuestPassTypeDto>()
}
open class GetGuestPassTypesResponseDto : ApiResponseBase()
{
var GuestPassTypes:ArrayList<GuestPassTypeDto> = ArrayList<GuestPassTypeDto>()
}
open class ApiResponseBase
{
var Success:Boolean? = null
var Message:String? = null
}
open class GuestPassTypeDto
{
var GuestPassTypeId:Int? = null
var ChainId:Int? = null
var StoreId:Int? = null
var PassName:String? = null
var DurationDays:Int? = null
var ExpirationEditable:Boolean? = null
var MaxDurationDays:Int? = null
var AutoActivateWhenIssued:Boolean? = null
var IssueBarcodeWhenActivated:Boolean? = null
var TagWhenActivated:String? = null
var MaxIssuedCount:Int? = null
var IsDeleted:Boolean? = null
var InactiveCount:Int? = null
var ActiveCount:Int? = null
var ExpiredCount:Int? = null
var TotalCount:Int? = null
}
Kotlin GetGuestPassTypesRequest DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .csv suffix or ?format=csv
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
GET /club/guest-pass/types HTTP/1.1 Host: clubready.com Accept: text/csv
HTTP/1.1 200 OK Content-Type: text/csv Content-Length: length {"GuestPassTypes":[{"GuestPassTypeId":0,"ChainId":0,"StoreId":0,"PassName":"String","DurationDays":0,"ExpirationEditable":false,"MaxDurationDays":0,"AutoActivateWhenIssued":false,"IssueBarcodeWhenActivated":false,"TagWhenActivated":"String","MaxIssuedCount":0,"IsDeleted":false,"InactiveCount":0,"ActiveCount":0,"ExpiredCount":0,"TotalCount":0}],"Success":false,"Message":"String"}