/* Options: Date: 2024-11-24 14:05:27 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: PackageEligibilityRequest.* //ExcludeTypes: //InitializeCollections: True //TreatTypesAsStrings: //DefaultImports: java.math.*,java.util.*,net.servicestack.client.* */ import java.math.* import java.util.* import net.servicestack.client.* @Route(Path="/sales/members/{MemberId}/package-eligibility", Verbs="GET") open class PackageEligibilityRequest : PackageEligibilityRequestDto(), 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 /** * Store ID # member belongs to */ @ApiMember(DataType="integer", Description="Store ID # member belongs to", IsRequired=true, Name="StoreId", ParameterType="query") var StoreId:Int? = null /** * ID of the member to lookup */ @ApiMember(DataType="integer", Description="ID of the member to lookup", IsRequired=true, Name="MemberId", ParameterType="path") var MemberId:Int? = null /** * ID of the package to check */ @ApiMember(DataType="integer", Description="ID of the package to check", IsRequired=true, Name="PackageId", ParameterType="query") var PackageId:Int? = null var RestrictedId:Int? = null var RestrictedResourceType:RestrictedResourceType? = null companion object { private val responseType = PackageEligibilityResponse::class.java } override fun getResponseType(): Any? = PackageEligibilityRequest.responseType } open class PackageEligibilityResponse : PackageEligibilityResponseDto() { var EligibilityInfo:PackageEligibility? = null } 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 PackageEligibilityRequestDto : ApiDtoBase() { var PackageId:Int? = null var MemberId:Int? = null } open class PackageEligibility { var IsEligible:Boolean? = null var Eligibility:ArrayList = ArrayList() } open class PackageEligibilityResponseDto : ApiResponseBase() { var EligibilityInfo:PackageEligibility? = null } open class ApiResponseBase { var Success:Boolean? = null var Message:String? = null } open class PackageEligibilityItem { var Name:String? = null var Value:String? = null var IsEligible:Boolean? = null var Message:String? = null }