/* Options: Date: 2024-11-24 13:54:39 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: CreditDetailRequest.* //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/{UserId}/credit-detail", Verbs="GET") public static class CreditDetailRequest extends ApiDtoBase 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; /** * Chain ID */ @ApiMember(DataType="integer", Description="Chain ID", Name="ChainId", ParameterType="query") public Integer ChainId = null; /** * Store ID */ @ApiMember(DataType="integer", Description="Store ID", Name="StoreId", ParameterType="query") public Integer StoreId = null; /** * ClubReady User ID */ @ApiMember(DataType="integer", Description="ClubReady User ID", IsRequired=true, Name="UserId", ParameterType="path") public Integer UserId = null; /** * Determines if the list of the user's credits are broken out by store ID. */ @ApiMember(DataType="Boolean", Description="Determines if the list of the user's credits are broken out by store ID.", Name="FullDetail", ParameterType="query") public Boolean FullDetail = null; public Integer RestrictedId = null; public RestrictedResourceType RestrictedResourceType = null; public String getApiKey() { return ApiKey; } public CreditDetailRequest setApiKey(String value) { this.ApiKey = value; return this; } public Integer getChainId() { return ChainId; } public CreditDetailRequest setChainId(Integer value) { this.ChainId = value; return this; } public Integer getStoreId() { return StoreId; } public CreditDetailRequest setStoreId(Integer value) { this.StoreId = value; return this; } public Integer getUserId() { return UserId; } public CreditDetailRequest setUserId(Integer value) { this.UserId = value; return this; } public Boolean isFullDetail() { return FullDetail; } public CreditDetailRequest setFullDetail(Boolean value) { this.FullDetail = value; return this; } public Integer getRestrictedId() { return RestrictedId; } public CreditDetailRequest setRestrictedId(Integer value) { this.RestrictedId = value; return this; } public RestrictedResourceType getRestrictedResourceType() { return RestrictedResourceType; } public CreditDetailRequest setRestrictedResourceType(RestrictedResourceType value) { this.RestrictedResourceType = value; return this; } private static Object responseType = CreditDetailResponse.class; public Object getResponseType() { return responseType; } } public static class CreditDetailResponse extends CreditDetailResponseDto { public Boolean Success = null; public String Message = null; public Integer TotalPurchased = null; public Integer TotalAvailable = null; public ArrayList Credits = null; public Boolean isSuccess() { return Success; } public CreditDetailResponse setSuccess(Boolean value) { this.Success = value; return this; } public String getMessage() { return Message; } public CreditDetailResponse setMessage(String value) { this.Message = value; return this; } public Integer getTotalPurchased() { return TotalPurchased; } public CreditDetailResponse setTotalPurchased(Integer value) { this.TotalPurchased = value; return this; } public Integer getTotalAvailable() { return TotalAvailable; } public CreditDetailResponse setTotalAvailable(Integer value) { this.TotalAvailable = value; return this; } public ArrayList getCredits() { return Credits; } public CreditDetailResponse setCredits(ArrayList value) { this.Credits = 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 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 SessionCreditDetail { public Integer ServiceId = null; public Integer SessionSizeId = null; public Integer ClassId = null; public String Name = null; public Integer Total = null; public Integer Available = null; public Integer StoreId = null; public Integer getServiceId() { return ServiceId; } public SessionCreditDetail setServiceId(Integer value) { this.ServiceId = value; return this; } public Integer getSessionSizeId() { return SessionSizeId; } public SessionCreditDetail setSessionSizeId(Integer value) { this.SessionSizeId = value; return this; } public Integer getClassId() { return ClassId; } public SessionCreditDetail setClassId(Integer value) { this.ClassId = value; return this; } public String getName() { return Name; } public SessionCreditDetail setName(String value) { this.Name = value; return this; } public Integer getTotal() { return Total; } public SessionCreditDetail setTotal(Integer value) { this.Total = value; return this; } public Integer getAvailable() { return Available; } public SessionCreditDetail setAvailable(Integer value) { this.Available = value; return this; } public Integer getStoreId() { return StoreId; } public SessionCreditDetail setStoreId(Integer value) { this.StoreId = value; return this; } } public static class CreditDetailResponseDto extends ApiResponseBase { public Integer TotalPurchased = null; public Integer TotalAvailable = null; public ArrayList Credits = null; public Integer getTotalPurchased() { return TotalPurchased; } public CreditDetailResponseDto setTotalPurchased(Integer value) { this.TotalPurchased = value; return this; } public Integer getTotalAvailable() { return TotalAvailable; } public CreditDetailResponseDto setTotalAvailable(Integer value) { this.TotalAvailable = value; return this; } public ArrayList getCredits() { return Credits; } public CreditDetailResponseDto setCredits(ArrayList value) { this.Credits = value; return this; } } public static class ApiResponseBase { public Boolean Success = null; public String Message = null; public Boolean isSuccess() { return Success; } public ApiResponseBase setSuccess(Boolean value) { this.Success = value; return this; } public String getMessage() { return Message; } public ApiResponseBase setMessage(String value) { this.Message = value; return this; } } }