/* Options:
Date: 2024-11-24 14:03:06
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: GetSalesPackageRequest.*
//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/package/{PackageId}", Verbs="GET")
open class GetSalesPackageRequest : GetSalesPackageRequestDto(), 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 package details for.
Either StoreId or ChainId is required
*/
@ApiMember(DataType="string", Description="ID # of store to get package details for.
Either StoreId or ChainId is required", Name="StoreId", ParameterType="query")
var StoreId:Int? = null
/**
* ID # of chain to get package details for.
Either StoreId or ChainId is required
*/
@ApiMember(DataType="string", Description="ID # of chain to get package details for.
Either StoreId or ChainId is required", Name="ChainId", ParameterType="query")
var ChainId:Int? = null
/**
* ID # of package to get details for
*/
@ApiMember(DataType="string", Description="ID # of package to get details for", IsRequired=true, Name="PackageId", ParameterType="path")
var PackageId:Int? = null
var RestrictedId:Int? = null
var RestrictedResourceType:RestrictedResourceType? = 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 GetSalesPackageRequestDto : ApiDtoBase()
{
var PackageId:Int? = null
}