/* Options: Date: 2025-04-10 19:19:39 Version: 8.23 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://testapi.bokamera.se //Package: //GlobalNamespace: dtos //AddPropertyAccessors: True //SettersReturnThis: True //AddServiceStackTypes: True //AddResponseStatus: False //AddDescriptionAsComments: True //AddImplicitVersion: IncludeTypes: GetVossProducts.* //ExcludeTypes: //TreatTypesAsStrings: //DefaultImports: java.math.*,java.util.*,net.servicestack.client.*,com.google.gson.annotations.*,com.google.gson.reflect.* */ import java.math.*; import java.util.*; import net.servicestack.client.*; import com.google.gson.annotations.*; import com.google.gson.reflect.*; public class dtos { @Route(Path="/voss/products", Verbs="GET") @ApiResponse(Description="You were unauthorized to call this service", StatusCode=401) public static class GetVossProducts implements IReturn, ICompany { /** * 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.") public UUID CompanyId = null; public UUID getCompanyId() { return CompanyId; } public GetVossProducts setCompanyId(UUID value) { this.CompanyId = value; return this; } private static Object responseType = SearchProductsResult.class; public Object getResponseType() { return responseType; } } @DataContract(Name="SearchProductsResult") public static class SearchProductsResult { @DataMember(Name="items", EmitDefaultValue=false) @SerializedName("items") public ArrayList Items = null; @DataMember(Name="totalCount", EmitDefaultValue=false) @SerializedName("totalCount") public Integer TotalCount = null; @DataMember(Name="pageIndex", EmitDefaultValue=false) @SerializedName("pageIndex") public Integer PageIndex = null; @DataMember(Name="pageSize", EmitDefaultValue=false) @SerializedName("pageSize") public Integer PageSize = null; @DataMember(Name="totalPages", EmitDefaultValue=false) @SerializedName("totalPages") public Integer TotalPages = null; public ArrayList getItems() { return Items; } public SearchProductsResult setItems(ArrayList value) { this.Items = value; return this; } public Integer getTotalCount() { return TotalCount; } public SearchProductsResult setTotalCount(Integer value) { this.TotalCount = value; return this; } public Integer getPageIndex() { return PageIndex; } public SearchProductsResult setPageIndex(Integer value) { this.PageIndex = value; return this; } public Integer getPageSize() { return PageSize; } public SearchProductsResult setPageSize(Integer value) { this.PageSize = value; return this; } public Integer getTotalPages() { return TotalPages; } public SearchProductsResult setTotalPages(Integer value) { this.TotalPages = value; return this; } } public static interface ICompany { public UUID CompanyId = null; } public static enum StatusEnum { Active(1), Terminated(2); private final int value; StatusEnum(final int intValue) { value = intValue; } public int getValue() { return value; } } @DataContract(Name="ProductResult") public static class ProductResult { @DataMember(Name="type", IsRequired=true) @SerializedName("type") public TypeEnum Type = null; @DataMember(Name="status", IsRequired=true) @SerializedName("status") public StatusEnum Status = null; @DataMember(Name="id", IsRequired=true) @SerializedName("id") public UUID Id = null; @DataMember(Name="name", IsRequired=true) @SerializedName("name") public String Name = null; @DataMember(Name="externalId") @SerializedName("externalId") public String ExternalId = null; @DataMember(Name="articleNumber", IsRequired=true) @SerializedName("articleNumber") public String ArticleNumber = null; @DataMember(Name="productFamily", IsRequired=true) @SerializedName("productFamily") public ProductResultProductFamilyDto ProductFamily = null; public TypeEnum getType() { return Type; } public ProductResult setType(TypeEnum value) { this.Type = value; return this; } public StatusEnum getStatus() { return Status; } public ProductResult setStatus(StatusEnum value) { this.Status = value; return this; } public UUID getId() { return Id; } public ProductResult setId(UUID value) { this.Id = value; return this; } public String getName() { return Name; } public ProductResult setName(String value) { this.Name = value; return this; } public String getExternalId() { return ExternalId; } public ProductResult setExternalId(String value) { this.ExternalId = value; return this; } public String getArticleNumber() { return ArticleNumber; } public ProductResult setArticleNumber(String value) { this.ArticleNumber = value; return this; } public ProductResultProductFamilyDto getProductFamily() { return ProductFamily; } public ProductResult setProductFamily(ProductResultProductFamilyDto value) { this.ProductFamily = value; return this; } } public static enum TypeEnum { AtSubscriptionBillingPeriodEnd(1), AtBindingPeriodEnd(2), Immediately(3); private final int value; TypeEnum(final int intValue) { value = intValue; } public int getValue() { return value; } } @DataContract(Name="ProductResultProductFamilyDto") public static class ProductResultProductFamilyDto { @DataMember(Name="id", IsRequired=true) @SerializedName("id") public UUID Id = null; @DataMember(Name="externalId") @SerializedName("externalId") public String ExternalId = null; public UUID getId() { return Id; } public ProductResultProductFamilyDto setId(UUID value) { this.Id = value; return this; } public String getExternalId() { return ExternalId; } public ProductResultProductFamilyDto setExternalId(String value) { this.ExternalId = value; return this; } } }