/* Options: Date: 2024-11-21 14:28:19 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: CancelLicense.* //ExcludeTypes: //TreatTypesAsStrings: //DefaultImports: java.math.*,java.util.*,net.servicestack.client.* */ import java.math.*; import java.util.*; import net.servicestack.client.*; public class dtos { @Route(Path="/licenses/company/{Id}", Verbs="DELETE") @ApiResponse(Description="You were unauthorized to call this service", StatusCode=401) @ValidateRequest(Validator="IsAuthenticated") public static class CancelLicense 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; /** * Id of the license */ @ApiMember(Description="Id of the license", IsRequired=true, ParameterType="path") public Integer Id = null; public UUID getCompanyId() { return CompanyId; } public CancelLicense setCompanyId(UUID value) { this.CompanyId = value; return this; } public Integer getId() { return Id; } public CancelLicense setId(Integer value) { this.Id = value; return this; } private static Object responseType = CompanyLicenseQueryResponse.class; public Object getResponseType() { return responseType; } } public static class CompanyLicenseQueryResponse { public Integer Id = null; public Integer TypeId = null; public LicenseTypeQueryResponse Type = null; public Date ValidFrom = null; public Date ValidTo = null; public String MetaData = null; public Boolean Active = null; public Boolean Canceled = null; public Date Updated = null; public Date Created = null; public Integer getId() { return Id; } public CompanyLicenseQueryResponse setId(Integer value) { this.Id = value; return this; } public Integer getTypeId() { return TypeId; } public CompanyLicenseQueryResponse setTypeId(Integer value) { this.TypeId = value; return this; } public LicenseTypeQueryResponse getType() { return Type; } public CompanyLicenseQueryResponse setType(LicenseTypeQueryResponse value) { this.Type = value; return this; } public Date getValidFrom() { return ValidFrom; } public CompanyLicenseQueryResponse setValidFrom(Date value) { this.ValidFrom = value; return this; } public Date getValidTo() { return ValidTo; } public CompanyLicenseQueryResponse setValidTo(Date value) { this.ValidTo = value; return this; } public String getMetaData() { return MetaData; } public CompanyLicenseQueryResponse setMetaData(String value) { this.MetaData = value; return this; } public Boolean isActive() { return Active; } public CompanyLicenseQueryResponse setActive(Boolean value) { this.Active = value; return this; } public Boolean isCanceled() { return Canceled; } public CompanyLicenseQueryResponse setCanceled(Boolean value) { this.Canceled = value; return this; } public Date getUpdated() { return Updated; } public CompanyLicenseQueryResponse setUpdated(Date value) { this.Updated = value; return this; } public Date getCreated() { return Created; } public CompanyLicenseQueryResponse setCreated(Date value) { this.Created = value; return this; } } public static interface ICompany { public UUID CompanyId = null; } public static class Country extends BaseModel { @References(Currency.class) public String CurrencyId = null; public Currency CurrencyInfo = null; @Required() public String Name = null; public String Culture = null; public String TimeZone = null; public Date ModifiedDate = null; @Required() public String Id = null; public String getCurrencyId() { return CurrencyId; } public Country setCurrencyId(String value) { this.CurrencyId = value; return this; } public Currency getCurrencyInfo() { return CurrencyInfo; } public Country setCurrencyInfo(Currency value) { this.CurrencyInfo = value; return this; } public String getName() { return Name; } public Country setName(String value) { this.Name = value; return this; } public String getCulture() { return Culture; } public Country setCulture(String value) { this.Culture = value; return this; } public String getTimeZone() { return TimeZone; } public Country setTimeZone(String value) { this.TimeZone = value; return this; } public Date getModifiedDate() { return ModifiedDate; } public Country setModifiedDate(Date value) { this.ModifiedDate = value; return this; } public String getId() { return Id; } public Country setId(String value) { this.Id = value; return this; } } public static class Currency extends BaseModel { @Required() public String Name = null; @Required() public String CurrencySign = null; @Required() public Boolean Active = null; public Date ModifiedDate = null; @Required() public String Id = null; public String getName() { return Name; } public Currency setName(String value) { this.Name = value; return this; } public String getCurrencySign() { return CurrencySign; } public Currency setCurrencySign(String value) { this.CurrencySign = value; return this; } public Boolean isActive() { return Active; } public Currency setActive(Boolean value) { this.Active = value; return this; } public Date getModifiedDate() { return ModifiedDate; } public Currency setModifiedDate(Date value) { this.ModifiedDate = value; return this; } public String getId() { return Id; } public Currency setId(String value) { this.Id = value; return this; } } public static class LicenseTypeQueryResponse { /** * The license type id */ @ApiMember(Description="The license type id") public Integer Id = null; /** * The license type name */ @ApiMember(Description="The license type name") public String Name = null; /** * The license type description */ @ApiMember(Description="The license type description") public String Description = null; /** * If the license type is not a standard license but instead an extra license option. An example would be sending new letter license. */ @ApiMember(Description="If the license type is not a standard license but instead an extra license option. An example would be sending new letter license.") public Boolean IsExtraLicenseOption = null; /** * The period of notice for the license in days. */ @ApiMember(Description="The period of notice for the license in days.") public Integer PeriodOfNoticeDays = null; /** * The license items for the license type */ @ApiMember(Description="The license items for the license type") public ArrayList Items = null; /** * The license prices in each country for the license type */ @ApiMember(Description="The license prices in each country for the license type") public ArrayList Prices = null; public Integer getId() { return Id; } public LicenseTypeQueryResponse setId(Integer value) { this.Id = value; return this; } public String getName() { return Name; } public LicenseTypeQueryResponse setName(String value) { this.Name = value; return this; } public String getDescription() { return Description; } public LicenseTypeQueryResponse setDescription(String value) { this.Description = value; return this; } public Boolean getIsExtraLicenseOption() { return IsExtraLicenseOption; } public LicenseTypeQueryResponse setIsExtraLicenseOption(Boolean value) { this.IsExtraLicenseOption = value; return this; } public Integer getPeriodOfNoticeDays() { return PeriodOfNoticeDays; } public LicenseTypeQueryResponse setPeriodOfNoticeDays(Integer value) { this.PeriodOfNoticeDays = value; return this; } public ArrayList getItems() { return Items; } public LicenseTypeQueryResponse setItems(ArrayList value) { this.Items = value; return this; } public ArrayList getPrices() { return Prices; } public LicenseTypeQueryResponse setPrices(ArrayList value) { this.Prices = value; return this; } } public static class BaseModel { } public static class LicensePrice extends BaseModel { @Ignore() public Country Country = null; @Ignore() public Boolean MonthlyPayment = null; @Required() public Integer LicenseTypeId = null; @Required() public String CountryId = null; @Required() public Integer Price = null; public Date ModifiedDate = null; public Country getCountry() { return Country; } public LicensePrice setCountry(Country value) { this.Country = value; return this; } public Boolean isMonthlyPayment() { return MonthlyPayment; } public LicensePrice setMonthlyPayment(Boolean value) { this.MonthlyPayment = value; return this; } public Integer getLicenseTypeId() { return LicenseTypeId; } public LicensePrice setLicenseTypeId(Integer value) { this.LicenseTypeId = value; return this; } public String getCountryId() { return CountryId; } public LicensePrice setCountryId(String value) { this.CountryId = value; return this; } public Integer getPrice() { return Price; } public LicensePrice setPrice(Integer value) { this.Price = value; return this; } public Date getModifiedDate() { return ModifiedDate; } public LicensePrice setModifiedDate(Date value) { this.ModifiedDate = value; return this; } } public static class LicenseItemsResponse { public Integer Id = null; public String Name = null; public Integer AllowedItems = null; public Integer getId() { return Id; } public LicenseItemsResponse setId(Integer value) { this.Id = value; return this; } public String getName() { return Name; } public LicenseItemsResponse setName(String value) { this.Name = value; return this; } public Integer getAllowedItems() { return AllowedItems; } public LicenseItemsResponse setAllowedItems(Integer value) { this.AllowedItems = value; return this; } } public static enum Currency { Sek(1), Eur(2); private final int value; Currency(final int intValue) { value = intValue; } public int getValue() { return value; } } }