/* Options: Date: 2024-11-21 12:15:58 Version: 8.23 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://api.bokamera.se //Package: //GlobalNamespace: dtos //AddPropertyAccessors: True //SettersReturnThis: True //AddServiceStackTypes: True //AddResponseStatus: False //AddDescriptionAsComments: True //AddImplicitVersion: IncludeTypes: AddCompanyTrial.* //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="/trials/company/", Verbs="POST") @ApiResponse(Description="You were unauthorized to call this service", StatusCode=401) @ValidateRequest(Validator="IsAuthenticated") public static class AddCompanyTrial 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 trial type */ @ApiMember(Description="Id of the trial type", IsRequired=true) public Integer TrialTypeId = null; public UUID getCompanyId() { return CompanyId; } public AddCompanyTrial setCompanyId(UUID value) { this.CompanyId = value; return this; } public Integer getTrialTypeId() { return TrialTypeId; } public AddCompanyTrial setTrialTypeId(Integer value) { this.TrialTypeId = value; return this; } private static Object responseType = CompanyTrialQueryResponse.class; public Object getResponseType() { return responseType; } } public static class CompanyTrialQueryResponse { public Integer TrialTypeId = null; public TrialQueryResponse TrialType = null; public Date Started = null; public Date Created = null; public Date ValidTo = null; public Boolean Active = null; public Integer getTrialTypeId() { return TrialTypeId; } public CompanyTrialQueryResponse setTrialTypeId(Integer value) { this.TrialTypeId = value; return this; } public TrialQueryResponse getTrialType() { return TrialType; } public CompanyTrialQueryResponse setTrialType(TrialQueryResponse value) { this.TrialType = value; return this; } public Date getStarted() { return Started; } public CompanyTrialQueryResponse setStarted(Date value) { this.Started = value; return this; } public Date getCreated() { return Created; } public CompanyTrialQueryResponse setCreated(Date value) { this.Created = value; return this; } public Date getValidTo() { return ValidTo; } public CompanyTrialQueryResponse setValidTo(Date value) { this.ValidTo = value; return this; } public Boolean isActive() { return Active; } public CompanyTrialQueryResponse setActive(Boolean value) { this.Active = value; return this; } } public static interface ICompany { public UUID CompanyId = null; } public static class TrialQueryResponse { public Integer Id = null; public String Name = null; public Integer TrialDays = null; public Integer getId() { return Id; } public TrialQueryResponse setId(Integer value) { this.Id = value; return this; } public String getName() { return Name; } public TrialQueryResponse setName(String value) { this.Name = value; return this; } public Integer getTrialDays() { return TrialDays; } public TrialQueryResponse setTrialDays(Integer value) { this.TrialDays = value; return this; } } }