GET | /voss/tiers/{TierId} | gets voss tiers |
---|
import java.math.*
import java.util.*
import net.servicestack.client.*
import com.google.gson.annotations.*
import com.google.gson.reflect.*
@ApiResponse(Description="You were unauthorized to call this service", StatusCode=401)
open class GetVossTier
{
/**
* The company id, if empty will use the company id for the user you are logged in with.
*/
@ApiMember(Description="The company id, if empty will use the company id for the user you are logged in with.")
var TierId:UUID? = null
var PackageId:UUID? = null
}
@DataContract(Name="TierResult")
open class TierResult
{
@DataMember(Name="id", IsRequired=true)
@SerializedName("id")
var Id:UUID? = null
@DataMember(Name="versionId", IsRequired=true)
@SerializedName("versionId")
var VersionId:UUID? = null
@DataMember(Name="name", IsRequired=true)
@SerializedName("name")
var Name:String? = null
@DataMember(Name="externalId")
@SerializedName("externalId")
var ExternalId:String? = null
@DataMember(Name="rank")
@SerializedName("rank")
var Rank:Int? = null
@DataMember(Name="productGroups", EmitDefaultValue=false)
@SerializedName("productGroups")
var ProductGroups:ArrayList<TierProductGroupDto> = ArrayList<TierProductGroupDto>()
}
@DataContract(Name="TierProductGroupDto")
open class TierProductGroupDto
{
@DataMember(Name="productGroupType", IsRequired=true)
@SerializedName("productGroupType")
var ProductGroupType:ProductGroupTypeEnum? = null
@DataMember(Name="id", IsRequired=true)
@SerializedName("id")
var Id:UUID? = null
@DataMember(Name="name", IsRequired=true)
@SerializedName("name")
var Name:String? = null
@DataMember(Name="externalId")
@SerializedName("externalId")
var ExternalId:String? = null
@DataMember(Name="tags", EmitDefaultValue=false)
@SerializedName("tags")
var Tags:ArrayList<ProductGroupTagDto> = ArrayList<ProductGroupTagDto>()
@DataMember(Name="products", EmitDefaultValue=false)
@SerializedName("products")
var Products:ArrayList<TierProductDto> = ArrayList<TierProductDto>()
}
enum class ProductGroupTypeEnum
{
Optional,
Included,
}
@DataContract(Name="ProductGroupTagDto")
open class ProductGroupTagDto
{
@DataMember(Name="type", IsRequired=true)
@SerializedName("type")
var Type:TypeEnum? = null
@DataMember(Name="tag", IsRequired=true)
@SerializedName("tag")
var Tag:String? = null
}
enum class TypeEnum
{
AtSubscriptionBillingPeriodEnd,
AtBindingPeriodEnd,
Immediately,
}
@DataContract(Name="TierProductDto")
open class TierProductDto
{
@DataMember(Name="type", IsRequired=true)
@SerializedName("type")
var ProductType:ProductTypeEnum? = null
@DataMember(Name="status", IsRequired=true)
@SerializedName("status")
var Status:StatusEnum? = null
@DataMember(Name="id", IsRequired=true)
@SerializedName("id")
var Id:UUID? = null
@DataMember(Name="name", IsRequired=true)
@SerializedName("name")
var Name:String? = null
@DataMember(Name="externalId")
@SerializedName("externalId")
var ExternalId:String? = null
@DataMember(Name="articleNumber", IsRequired=true)
@SerializedName("articleNumber")
var ArticleNumber:String? = null
}
enum class ProductTypeEnum
{
Main,
Addon,
License,
Usage,
}
enum class StatusEnum
{
Active,
Terminated,
}
To override the Content-type in your clients, use the HTTP Accept Header, append the .other suffix or ?format=other
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
GET /voss/tiers/{TierId} HTTP/1.1 Host: testapi.bokamera.se Accept: text/jsonl
HTTP/1.1 200 OK Content-Type: text/jsonl Content-Length: length {Unable to show example output for type 'TierResult' using the custom 'other' filter}No parameterless constructor defined for type 'VossIntegration.ApiTools.Model.TierResult'.