/* Options: Date: 2024-11-24 14:24:21 Version: 6.50 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://clubready.com/api/current //Package: //GlobalNamespace: dtos //AddPropertyAccessors: True //SettersReturnThis: True //AddServiceStackTypes: True //AddResponseStatus: False //AddDescriptionAsComments: True //AddImplicitVersion: IncludeTypes: CreateClassBookingRequest.* //ExcludeTypes: //TreatTypesAsStrings: //DefaultImports: java.math.*,java.util.*,net.servicestack.client.* */ import java.math.*; import java.util.*; import net.servicestack.client.*; public class dtos { @Route(Path="/scheduling/class-booking", Verbs="POST") // @Route(Path="/v2/{ApiKey}/club/{StoreId}/booking", Verbs="POST") // @Route(Path="/v2/{ApiKey}/club/{StoreId}/class-booking", Verbs="POST") public static class CreateClassBookingRequest extends CreateClassBookingRequestDto implements IReturn, IRestrictedApiRequest { /** * Api Key - grants access to resources */ @ApiMember(DataType="string", Description="Api Key - grants access to resources", IsRequired=true, Name="ApiKey", ParameterType="query") public String ApiKey = null; /** * UserID */ @ApiMember(DataType="string", Description="UserID", IsRequired=true, Name="UserId", ParameterType="query") public Integer UserId = null; /** * Store ID */ @ApiMember(DataType="integer", Description="Store ID", IsRequired=true, Name="StoreId", ParameterType="query") public Integer StoreId = null; /** * Class Schedule ID */ @ApiMember(DataType="integer", Description="Class Schedule ID", IsRequired=true, Name="ScheduleId", ParameterType="query") public Integer ScheduleId = null; /** * Put user in wait list when possible */ @ApiMember(DataType="bool", Description="Put user in wait list when possible", Name="AllowWaitList", ParameterType="query") public Boolean AllowWaitList = null; public Integer RestrictedId = null; public RestrictedResourceType RestrictedResourceType = null; public String getApiKey() { return ApiKey; } public CreateClassBookingRequest setApiKey(String value) { this.ApiKey = value; return this; } public Integer getUserId() { return UserId; } public CreateClassBookingRequest setUserId(Integer value) { this.UserId = value; return this; } public Integer getStoreId() { return StoreId; } public CreateClassBookingRequest setStoreId(Integer value) { this.StoreId = value; return this; } public Integer getScheduleId() { return ScheduleId; } public CreateClassBookingRequest setScheduleId(Integer value) { this.ScheduleId = value; return this; } public Boolean isAllowWaitList() { return AllowWaitList; } public CreateClassBookingRequest setAllowWaitList(Boolean value) { this.AllowWaitList = value; return this; } public Integer getRestrictedId() { return RestrictedId; } public CreateClassBookingRequest setRestrictedId(Integer value) { this.RestrictedId = value; return this; } public RestrictedResourceType getRestrictedResourceType() { return RestrictedResourceType; } public CreateClassBookingRequest setRestrictedResourceType(RestrictedResourceType value) { this.RestrictedResourceType = value; return this; } private static Object responseType = CreateClassBookingResponse.class; public Object getResponseType() { return responseType; } } public static class CreateClassBookingResponse extends CreateClassBookingResponseDto { public Integer BookingId = null; public String Message = null; public Integer getBookingId() { return BookingId; } public CreateClassBookingResponse setBookingId(Integer value) { this.BookingId = value; return this; } public String getMessage() { return Message; } public CreateClassBookingResponse setMessage(String value) { this.Message = value; return this; } } public static enum RestrictedResourceType { Store, Chain, User, Undefined; } public static interface IRestrictedApiRequest implements IApiKeyEndpoint { public Integer RestrictedId = null; public RestrictedResourceType RestrictedResourceType = null; } public static interface IApiKeyEndpoint { public String ApiKey = null; } public static class CreateClassBookingRequestDto extends ApiDtoBase { public Integer UserId = null; public Integer ScheduleId = null; public Boolean AllowWaitList = null; public Integer getUserId() { return UserId; } public CreateClassBookingRequestDto setUserId(Integer value) { this.UserId = value; return this; } public Integer getScheduleId() { return ScheduleId; } public CreateClassBookingRequestDto setScheduleId(Integer value) { this.ScheduleId = value; return this; } public Boolean isAllowWaitList() { return AllowWaitList; } public CreateClassBookingRequestDto setAllowWaitList(Boolean value) { this.AllowWaitList = value; return this; } } public static class ApiDtoBase { public String ApiKey = null; public Integer StoreId = null; public Integer ChainId = null; public String getApiKey() { return ApiKey; } public ApiDtoBase setApiKey(String value) { this.ApiKey = value; return this; } public Integer getStoreId() { return StoreId; } public ApiDtoBase setStoreId(Integer value) { this.StoreId = value; return this; } public Integer getChainId() { return ChainId; } public ApiDtoBase setChainId(Integer value) { this.ChainId = value; return this; } } public static class CreateClassBookingResponseDto { public Integer BookingId = null; public String Message = null; public Integer getBookingId() { return BookingId; } public CreateClassBookingResponseDto setBookingId(Integer value) { this.BookingId = value; return this; } public String getMessage() { return Message; } public CreateClassBookingResponseDto setMessage(String value) { this.Message = value; return this; } } }