/* Options: Date: 2024-11-24 13:32:18 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: GetSalesPackagesRequest.* //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/packages", Verbs="GET") open class GetSalesPackagesRequest : GetSalesPackagesRequestDto(), 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 /** * ID # of store to get packages for */ @ApiMember(DataType="string", Description="ID # of store to get packages for", IsRequired=true, Name="StoreId", ParameterType="query") var StoreId:Int? = null /** * ID # of the user to get packages for */ @ApiMember(DataType="integer", Description="ID # of the user to get packages for", Name="UserId", ParameterType="query") var UserId:Int? = null /** * The filter type which will used for packages credit (Class = 1, ClassSchedule = 2, SessionSize = 3) */ @ApiMember(DataType="integer", Description="The filter type which will used for packages credit (Class = 1, ClassSchedule = 2, SessionSize = 3)", Name="CreditFilterType", ParameterType="query") var CreditFilterType:Int? = null /** * ClassId or ClassScheduleId or SessionSizeId packages which drop credits */ @ApiMember(DataType="integer", Description="ClassId or ClassScheduleId or SessionSizeId packages which drop credits", Name="CreditFilterId", ParameterType="query") var CreditFilterId:Int? = null var RestrictedId:Int? = null var RestrictedResourceType:RestrictedResourceType? = null /** * Show packages enabled for In App purchase. True or False */ @ApiMember(DataType="string", Description="Show packages enabled for In App purchase. True or False", Name="InApp", ParameterType="query") var InApp:Boolean? = 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 GetSalesPackagesRequestDto : ApiDtoBase() { }