/* Options: Date: 2024-11-24 13:32:28 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: PackageEligibilityRequest.* //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="/sales/members/{MemberId}/package-eligibility", Verbs="GET") public static class PackageEligibilityRequest extends PackageEligibilityRequestDto 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; /** * Store ID # member belongs to */ @ApiMember(DataType="integer", Description="Store ID # member belongs to", IsRequired=true, Name="StoreId", ParameterType="query") public Integer StoreId = null; /** * ID of the member to lookup */ @ApiMember(DataType="integer", Description="ID of the member to lookup", IsRequired=true, Name="MemberId", ParameterType="path") public Integer MemberId = null; /** * ID of the package to check */ @ApiMember(DataType="integer", Description="ID of the package to check", IsRequired=true, Name="PackageId", ParameterType="query") public Integer PackageId = null; public Integer RestrictedId = null; public RestrictedResourceType RestrictedResourceType = null; public String getApiKey() { return ApiKey; } public PackageEligibilityRequest setApiKey(String value) { this.ApiKey = value; return this; } public Integer getStoreId() { return StoreId; } public PackageEligibilityRequest setStoreId(Integer value) { this.StoreId = value; return this; } public Integer getMemberId() { return MemberId; } public PackageEligibilityRequest setMemberId(Integer value) { this.MemberId = value; return this; } public Integer getPackageId() { return PackageId; } public PackageEligibilityRequest setPackageId(Integer value) { this.PackageId = value; return this; } public Integer getRestrictedId() { return RestrictedId; } public PackageEligibilityRequest setRestrictedId(Integer value) { this.RestrictedId = value; return this; } public RestrictedResourceType getRestrictedResourceType() { return RestrictedResourceType; } public PackageEligibilityRequest setRestrictedResourceType(RestrictedResourceType value) { this.RestrictedResourceType = value; return this; } private static Object responseType = PackageEligibilityResponse.class; public Object getResponseType() { return responseType; } } public static class PackageEligibilityResponse extends PackageEligibilityResponseDto { public PackageEligibility EligibilityInfo = null; public PackageEligibility getEligibilityInfo() { return EligibilityInfo; } public PackageEligibilityResponse setEligibilityInfo(PackageEligibility value) { this.EligibilityInfo = 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 PackageEligibilityRequestDto extends ApiDtoBase { public Integer PackageId = null; public Integer MemberId = null; public Integer getPackageId() { return PackageId; } public PackageEligibilityRequestDto setPackageId(Integer value) { this.PackageId = value; return this; } public Integer getMemberId() { return MemberId; } public PackageEligibilityRequestDto setMemberId(Integer value) { this.MemberId = value; return this; } } public static class PackageEligibility { public Boolean IsEligible = null; public ArrayList Eligibility = null; public Boolean getIsEligible() { return IsEligible; } public PackageEligibility setIsEligible(Boolean value) { this.IsEligible = value; return this; } public ArrayList getEligibility() { return Eligibility; } public PackageEligibility setEligibility(ArrayList value) { this.Eligibility = value; return this; } } public static class PackageEligibilityResponseDto extends ApiResponseBase { public PackageEligibility EligibilityInfo = null; public PackageEligibility getEligibilityInfo() { return EligibilityInfo; } public PackageEligibilityResponseDto setEligibilityInfo(PackageEligibility value) { this.EligibilityInfo = 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; } } public static class PackageEligibilityItem { public String Name = null; public String Value = null; public Boolean IsEligible = null; public String Message = null; public String getName() { return Name; } public PackageEligibilityItem setName(String value) { this.Name = value; return this; } public String getValue() { return Value; } public PackageEligibilityItem setValue(String value) { this.Value = value; return this; } public Boolean getIsEligible() { return IsEligible; } public PackageEligibilityItem setIsEligible(Boolean value) { this.IsEligible = value; return this; } public String getMessage() { return Message; } public PackageEligibilityItem setMessage(String value) { this.Message = value; return this; } } }