/* Options: Date: 2024-06-16 23:52:15 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: ServicePricesQuery.* //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="/services/prices", Verbs="GET") @ValidateRequest(Validator="IsAuthenticated") public static class ServicePricesQuery extends QueryDb implements IReturn> { /** * Company to show services for */ @ApiMember(Description="Company to show services for", ParameterType="query") public UUID CompanyId = null; /** * Service id */ @ApiMember(Description="Service id", ParameterType="query") public Integer ServiceId = null; /** * Only get prices for active services */ @ApiMember(Description="Only get prices for active services", ParameterType="query") public Boolean Active = null; /** * The max limit of records you want to retrieve, default is 100 */ @ApiMember(DataType="int", Description="The max limit of records you want to retrieve, default is 100", ParameterType="query") public Integer MaxLimit = null; /** * If you want to include the service information for the booking */ @ApiMember(DataType="boolean", Description="If you want to include the service information for the booking", ParameterType="query") public Boolean IncludeServiceInformation = null; public UUID getCompanyId() { return CompanyId; } public ServicePricesQuery setCompanyId(UUID value) { this.CompanyId = value; return this; } public Integer getServiceId() { return ServiceId; } public ServicePricesQuery setServiceId(Integer value) { this.ServiceId = value; return this; } public Boolean isActive() { return Active; } public ServicePricesQuery setActive(Boolean value) { this.Active = value; return this; } public Integer getMaxLimit() { return MaxLimit; } public ServicePricesQuery setMaxLimit(Integer value) { this.MaxLimit = value; return this; } public Boolean isIncludeServiceInformation() { return IncludeServiceInformation; } public ServicePricesQuery setIncludeServiceInformation(Boolean value) { this.IncludeServiceInformation = value; return this; } private static Object responseType = new TypeToken>(){}.getType(); public Object getResponseType() { return responseType; } } @DataContract public static class QueryResponse { @DataMember(Order=1) public Integer Offset = null; @DataMember(Order=2) public Integer Total = null; @DataMember(Order=3) public ArrayList Results = null; @DataMember(Order=4) public HashMap Meta = null; @DataMember(Order=5) public ResponseStatus ResponseStatus = null; public Integer getOffset() { return Offset; } public QueryResponse setOffset(Integer value) { this.Offset = value; return this; } public Integer getTotal() { return Total; } public QueryResponse setTotal(Integer value) { this.Total = value; return this; } public ArrayList getResults() { return Results; } public QueryResponse setResults(ArrayList value) { this.Results = value; return this; } public HashMap getMeta() { return Meta; } public QueryResponse setMeta(HashMap value) { this.Meta = value; return this; } public ResponseStatus getResponseStatus() { return ResponseStatus; } public QueryResponse setResponseStatus(ResponseStatus value) { this.ResponseStatus = value; return this; } } public static class QueryDb extends QueryBase { } public static interface IInterval { public Date From = null; public Date To = null; } 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 Customer extends BaseModel implements IUser, ICustomFieldTable { public Integer IdentityId = null; public UUID Id = null; @Ignore() public UUID CustomerId = null; @Ignore() public IList AccessKeys = null; public String Email = null; @Ignore() public IList ExternalReferences = null; @Ignore() public IList CustomFieldsConfig = null; @Ignore() public IList CustomFieldsData = null; @Ignore() public IList Comments = null; public String Firstname = null; @Ignore() public String ImageUrl = null; @Required() public Boolean Active = null; public String FacebookUsername = null; @Required() public Date Updated = null; @Required() public Date Created = null; public String IpAddress = null; public Date ModifiedDate = null; public String TextField1 = null; public String TextField2 = null; public String TextField3 = null; public String TextField4 = null; public String TextField5 = null; public String TextField6 = null; public String TextField7 = null; public String TextField8 = null; public String TextField9 = null; public String TextField10 = null; public String TextField11 = null; public String TextField12 = null; public String TextField13 = null; public String TextField14 = null; public String TextField15 = null; public String TextField16 = null; public String TextField17 = null; public String TextField18 = null; public String TextField19 = null; public String TextField20 = null; public UUID UserId = null; public String Lastname = null; public String Phone = null; public String CorporateIdentityNumber = null; public String InvoiceAddress1 = null; public String InvoiceAddress2 = null; public String InvoiceCity = null; public String InvoicePostalCode = null; public String InvoiceCountryCode = null; @Required() public UUID CompanyId = null; public Boolean SubscribedToNewsletter = null; public Integer getIdentityId() { return IdentityId; } public Customer setIdentityId(Integer value) { this.IdentityId = value; return this; } public UUID getId() { return Id; } public Customer setId(UUID value) { this.Id = value; return this; } public UUID getCustomerId() { return CustomerId; } public Customer setCustomerId(UUID value) { this.CustomerId = value; return this; } public IList getAccessKeys() { return AccessKeys; } public Customer setAccessKeys(IList value) { this.AccessKeys = value; return this; } public String getEmail() { return Email; } public Customer setEmail(String value) { this.Email = value; return this; } public IList getExternalReferences() { return ExternalReferences; } public Customer setExternalReferences(IList value) { this.ExternalReferences = value; return this; } public IList getCustomFieldsConfig() { return CustomFieldsConfig; } public Customer setCustomFieldsConfig(IList value) { this.CustomFieldsConfig = value; return this; } public IList getCustomFieldsData() { return CustomFieldsData; } public Customer setCustomFieldsData(IList value) { this.CustomFieldsData = value; return this; } public IList getComments() { return Comments; } public Customer setComments(IList value) { this.Comments = value; return this; } public String getFirstname() { return Firstname; } public Customer setFirstname(String value) { this.Firstname = value; return this; } public String getImageUrl() { return ImageUrl; } public Customer setImageUrl(String value) { this.ImageUrl = value; return this; } public Boolean isActive() { return Active; } public Customer setActive(Boolean value) { this.Active = value; return this; } public String getFacebookUsername() { return FacebookUsername; } public Customer setFacebookUsername(String value) { this.FacebookUsername = value; return this; } public Date getUpdated() { return Updated; } public Customer setUpdated(Date value) { this.Updated = value; return this; } public Date getCreated() { return Created; } public Customer setCreated(Date value) { this.Created = value; return this; } public String getIpAddress() { return IpAddress; } public Customer setIpAddress(String value) { this.IpAddress = value; return this; } public Date getModifiedDate() { return ModifiedDate; } public Customer setModifiedDate(Date value) { this.ModifiedDate = value; return this; } public String getTextField1() { return TextField1; } public Customer setTextField1(String value) { this.TextField1 = value; return this; } public String getTextField2() { return TextField2; } public Customer setTextField2(String value) { this.TextField2 = value; return this; } public String getTextField3() { return TextField3; } public Customer setTextField3(String value) { this.TextField3 = value; return this; } public String getTextField4() { return TextField4; } public Customer setTextField4(String value) { this.TextField4 = value; return this; } public String getTextField5() { return TextField5; } public Customer setTextField5(String value) { this.TextField5 = value; return this; } public String getTextField6() { return TextField6; } public Customer setTextField6(String value) { this.TextField6 = value; return this; } public String getTextField7() { return TextField7; } public Customer setTextField7(String value) { this.TextField7 = value; return this; } public String getTextField8() { return TextField8; } public Customer setTextField8(String value) { this.TextField8 = value; return this; } public String getTextField9() { return TextField9; } public Customer setTextField9(String value) { this.TextField9 = value; return this; } public String getTextField10() { return TextField10; } public Customer setTextField10(String value) { this.TextField10 = value; return this; } public String getTextField11() { return TextField11; } public Customer setTextField11(String value) { this.TextField11 = value; return this; } public String getTextField12() { return TextField12; } public Customer setTextField12(String value) { this.TextField12 = value; return this; } public String getTextField13() { return TextField13; } public Customer setTextField13(String value) { this.TextField13 = value; return this; } public String getTextField14() { return TextField14; } public Customer setTextField14(String value) { this.TextField14 = value; return this; } public String getTextField15() { return TextField15; } public Customer setTextField15(String value) { this.TextField15 = value; return this; } public String getTextField16() { return TextField16; } public Customer setTextField16(String value) { this.TextField16 = value; return this; } public String getTextField17() { return TextField17; } public Customer setTextField17(String value) { this.TextField17 = value; return this; } public String getTextField18() { return TextField18; } public Customer setTextField18(String value) { this.TextField18 = value; return this; } public String getTextField19() { return TextField19; } public Customer setTextField19(String value) { this.TextField19 = value; return this; } public String getTextField20() { return TextField20; } public Customer setTextField20(String value) { this.TextField20 = value; return this; } public UUID getUserId() { return UserId; } public Customer setUserId(UUID value) { this.UserId = value; return this; } public String getLastname() { return Lastname; } public Customer setLastname(String value) { this.Lastname = value; return this; } public String getPhone() { return Phone; } public Customer setPhone(String value) { this.Phone = value; return this; } public String getCorporateIdentityNumber() { return CorporateIdentityNumber; } public Customer setCorporateIdentityNumber(String value) { this.CorporateIdentityNumber = value; return this; } public String getInvoiceAddress1() { return InvoiceAddress1; } public Customer setInvoiceAddress1(String value) { this.InvoiceAddress1 = value; return this; } public String getInvoiceAddress2() { return InvoiceAddress2; } public Customer setInvoiceAddress2(String value) { this.InvoiceAddress2 = value; return this; } public String getInvoiceCity() { return InvoiceCity; } public Customer setInvoiceCity(String value) { this.InvoiceCity = value; return this; } public String getInvoicePostalCode() { return InvoicePostalCode; } public Customer setInvoicePostalCode(String value) { this.InvoicePostalCode = value; return this; } public String getInvoiceCountryCode() { return InvoiceCountryCode; } public Customer setInvoiceCountryCode(String value) { this.InvoiceCountryCode = value; return this; } public UUID getCompanyId() { return CompanyId; } public Customer setCompanyId(UUID value) { this.CompanyId = value; return this; } public Boolean isSubscribedToNewsletter() { return SubscribedToNewsletter; } public Customer setSubscribedToNewsletter(Boolean value) { this.SubscribedToNewsletter = value; return this; } } public static class RebateCode extends BaseModel { @References(RebateCodeType.class) public Integer RebateCodeTypeId = null; public RebateCodeType RebateCodeTypeInfo = null; @References(RebateCodeStatus.class) public Integer RebateCodeStatusId = null; public RebateCodeType RebateCodeStatusInfo = null; @Ignore() public ArrayList Services = null; public ArrayList RebateCodeDayOfWeekRelation = null; public ArrayList RebateCodeServiceRelation = null; public ArrayList RebateCodeBookingPriceRelation = null; public ArrayList RebateCodeCustomerRelation = null; @Ignore() public ArrayList DaysOfWeek = null; @Ignore() public ArrayList Customers = null; @Ignore() public RebateCodeStatus RebateCodeStatus = null; @Ignore() public RebateCodeType RebateCodeType = null; @Ignore() public Integer CurrentNumberOfUsesPerCustomer = null; @Ignore() public Boolean IsSpecificByDayOfWeek = null; @Ignore() public Boolean Active = null; public UUID CompanyId = null; @Required() public Date ValidFrom = null; @Required() public Date ValidTo = null; @Required() public String RebateCodeSign = null; @Required() public Integer RebateCodeValue = null; @Required() public Integer MaxNumberOfUses = null; @Required() public Integer MaxNumberOfUsesPerCustomer = null; @Required() public Integer NumberOfUsesUsed = null; public String PersonalNote = null; @Required() public String CreatedBy = null; @Required() public Date Created = null; @Required() public String UpdatedBy = null; @Required() public Date Updated = null; @Required() public TimeSpan FromTime = null; @Required() public TimeSpan ToTime = null; public Date ModifiedDate = null; public Integer Id = null; public Integer getRebateCodeTypeId() { return RebateCodeTypeId; } public RebateCode setRebateCodeTypeId(Integer value) { this.RebateCodeTypeId = value; return this; } public RebateCodeType getRebateCodeTypeInfo() { return RebateCodeTypeInfo; } public RebateCode setRebateCodeTypeInfo(RebateCodeType value) { this.RebateCodeTypeInfo = value; return this; } public Integer getRebateCodeStatusId() { return RebateCodeStatusId; } public RebateCode setRebateCodeStatusId(Integer value) { this.RebateCodeStatusId = value; return this; } public RebateCodeType getRebateCodeStatusInfo() { return RebateCodeStatusInfo; } public RebateCode setRebateCodeStatusInfo(RebateCodeType value) { this.RebateCodeStatusInfo = value; return this; } public ArrayList getServices() { return Services; } public RebateCode setServices(ArrayList value) { this.Services = value; return this; } public ArrayList getRebateCodeDayOfWeekRelation() { return RebateCodeDayOfWeekRelation; } public RebateCode setRebateCodeDayOfWeekRelation(ArrayList value) { this.RebateCodeDayOfWeekRelation = value; return this; } public ArrayList getRebateCodeServiceRelation() { return RebateCodeServiceRelation; } public RebateCode setRebateCodeServiceRelation(ArrayList value) { this.RebateCodeServiceRelation = value; return this; } public ArrayList getRebateCodeBookingPriceRelation() { return RebateCodeBookingPriceRelation; } public RebateCode setRebateCodeBookingPriceRelation(ArrayList value) { this.RebateCodeBookingPriceRelation = value; return this; } public ArrayList getRebateCodeCustomerRelation() { return RebateCodeCustomerRelation; } public RebateCode setRebateCodeCustomerRelation(ArrayList value) { this.RebateCodeCustomerRelation = value; return this; } public ArrayList getDaysOfWeek() { return DaysOfWeek; } public RebateCode setDaysOfWeek(ArrayList value) { this.DaysOfWeek = value; return this; } public ArrayList getCustomers() { return Customers; } public RebateCode setCustomers(ArrayList value) { this.Customers = value; return this; } public RebateCodeStatus getRebateCodeStatus() { return RebateCodeStatus; } public RebateCode setRebateCodeStatus(RebateCodeStatus value) { this.RebateCodeStatus = value; return this; } public RebateCodeType getRebateCodeType() { return RebateCodeType; } public RebateCode setRebateCodeType(RebateCodeType value) { this.RebateCodeType = value; return this; } public Integer getCurrentNumberOfUsesPerCustomer() { return CurrentNumberOfUsesPerCustomer; } public RebateCode setCurrentNumberOfUsesPerCustomer(Integer value) { this.CurrentNumberOfUsesPerCustomer = value; return this; } public Boolean getIsSpecificByDayOfWeek() { return IsSpecificByDayOfWeek; } public RebateCode setIsSpecificByDayOfWeek(Boolean value) { this.IsSpecificByDayOfWeek = value; return this; } public Boolean isActive() { return Active; } public RebateCode setActive(Boolean value) { this.Active = value; return this; } public UUID getCompanyId() { return CompanyId; } public RebateCode setCompanyId(UUID value) { this.CompanyId = value; return this; } public Date getValidFrom() { return ValidFrom; } public RebateCode setValidFrom(Date value) { this.ValidFrom = value; return this; } public Date getValidTo() { return ValidTo; } public RebateCode setValidTo(Date value) { this.ValidTo = value; return this; } public String getRebateCodeSign() { return RebateCodeSign; } public RebateCode setRebateCodeSign(String value) { this.RebateCodeSign = value; return this; } public Integer getRebateCodeValue() { return RebateCodeValue; } public RebateCode setRebateCodeValue(Integer value) { this.RebateCodeValue = value; return this; } public Integer getMaxNumberOfUses() { return MaxNumberOfUses; } public RebateCode setMaxNumberOfUses(Integer value) { this.MaxNumberOfUses = value; return this; } public Integer getMaxNumberOfUsesPerCustomer() { return MaxNumberOfUsesPerCustomer; } public RebateCode setMaxNumberOfUsesPerCustomer(Integer value) { this.MaxNumberOfUsesPerCustomer = value; return this; } public Integer getNumberOfUsesUsed() { return NumberOfUsesUsed; } public RebateCode setNumberOfUsesUsed(Integer value) { this.NumberOfUsesUsed = value; return this; } public String getPersonalNote() { return PersonalNote; } public RebateCode setPersonalNote(String value) { this.PersonalNote = value; return this; } public String getCreatedBy() { return CreatedBy; } public RebateCode setCreatedBy(String value) { this.CreatedBy = value; return this; } public Date getCreated() { return Created; } public RebateCode setCreated(Date value) { this.Created = value; return this; } public String getUpdatedBy() { return UpdatedBy; } public RebateCode setUpdatedBy(String value) { this.UpdatedBy = value; return this; } public Date getUpdated() { return Updated; } public RebateCode setUpdated(Date value) { this.Updated = value; return this; } public TimeSpan getFromTime() { return FromTime; } public RebateCode setFromTime(TimeSpan value) { this.FromTime = value; return this; } public TimeSpan getToTime() { return ToTime; } public RebateCode setToTime(TimeSpan value) { this.ToTime = value; return this; } public Date getModifiedDate() { return ModifiedDate; } public RebateCode setModifiedDate(Date value) { this.ModifiedDate = value; return this; } public Integer getId() { return Id; } public RebateCode setId(Integer value) { this.Id = value; return this; } } public static class ServicePrice extends BaseModel implements IInterval { @References(Currency.class) public String CurrencyId = null; public Currency CurrencyInfo = null; @Ignore() public Service Service = null; @Ignore() public ArrayList PriceMappings = null; @Ignore() public Boolean isTimeSpecific = null; @Ignore() public Boolean isDaysOfWeekSpecific = null; public ArrayList DayOfWeeks = null; @Ignore() public Double PriceBeforeRebate = null; @Ignore() public ArrayList RebateCodesApplied = null; @Ignore() public String PriceText = null; @Ignore() public Boolean IsWeighted = null; @Ignore() public ArrayList OverlappingPrices = null; @Required() public UUID CompanyId = null; public Integer Id = null; @Required() public Integer ServiceId = null; public Double Price = null; @Required() public Date Updated = null; @Required() public Date Created = null; @Required() public TimeSpan FromTime = null; @Required() public TimeSpan ToTime = null; @Required() public BigDecimal VAT = null; public String Category = null; public Date ModifiedDate = null; @Required() public Date From = null; @Required() public Date To = null; @Required() public Integer CalculationTypeId = null; public String getCurrencyId() { return CurrencyId; } public ServicePrice setCurrencyId(String value) { this.CurrencyId = value; return this; } public Currency getCurrencyInfo() { return CurrencyInfo; } public ServicePrice setCurrencyInfo(Currency value) { this.CurrencyInfo = value; return this; } public Service getService() { return Service; } public ServicePrice setService(Service value) { this.Service = value; return this; } public ArrayList getPriceMappings() { return PriceMappings; } public ServicePrice setPriceMappings(ArrayList value) { this.PriceMappings = value; return this; } public Boolean getIsTimeSpecific() { return isTimeSpecific; } public ServicePrice setIsTimeSpecific(Boolean value) { this.isTimeSpecific = value; return this; } public Boolean getIsDaysOfWeekSpecific() { return isDaysOfWeekSpecific; } public ServicePrice setIsDaysOfWeekSpecific(Boolean value) { this.isDaysOfWeekSpecific = value; return this; } public ArrayList getDayOfWeeks() { return DayOfWeeks; } public ServicePrice setDayOfWeeks(ArrayList value) { this.DayOfWeeks = value; return this; } public Double getPriceBeforeRebate() { return PriceBeforeRebate; } public ServicePrice setPriceBeforeRebate(Double value) { this.PriceBeforeRebate = value; return this; } public ArrayList getRebateCodesApplied() { return RebateCodesApplied; } public ServicePrice setRebateCodesApplied(ArrayList value) { this.RebateCodesApplied = value; return this; } public String getPriceText() { return PriceText; } public ServicePrice setPriceText(String value) { this.PriceText = value; return this; } public Boolean getIsWeighted() { return IsWeighted; } public ServicePrice setIsWeighted(Boolean value) { this.IsWeighted = value; return this; } public ArrayList getOverlappingPrices() { return OverlappingPrices; } public ServicePrice setOverlappingPrices(ArrayList value) { this.OverlappingPrices = value; return this; } public UUID getCompanyId() { return CompanyId; } public ServicePrice setCompanyId(UUID value) { this.CompanyId = value; return this; } public Integer getId() { return Id; } public ServicePrice setId(Integer value) { this.Id = value; return this; } public Integer getServiceId() { return ServiceId; } public ServicePrice setServiceId(Integer value) { this.ServiceId = value; return this; } public Double getPrice() { return Price; } public ServicePrice setPrice(Double value) { this.Price = value; return this; } public Date getUpdated() { return Updated; } public ServicePrice setUpdated(Date value) { this.Updated = value; return this; } public Date getCreated() { return Created; } public ServicePrice setCreated(Date value) { this.Created = value; return this; } public TimeSpan getFromTime() { return FromTime; } public ServicePrice setFromTime(TimeSpan value) { this.FromTime = value; return this; } public TimeSpan getToTime() { return ToTime; } public ServicePrice setToTime(TimeSpan value) { this.ToTime = value; return this; } public BigDecimal getVat() { return VAT; } public ServicePrice setVat(BigDecimal value) { this.VAT = value; return this; } public String getCategory() { return Category; } public ServicePrice setCategory(String value) { this.Category = value; return this; } public Date getModifiedDate() { return ModifiedDate; } public ServicePrice setModifiedDate(Date value) { this.ModifiedDate = value; return this; } public Date getFrom() { return From; } public ServicePrice setFrom(Date value) { this.From = value; return this; } public Date getTo() { return To; } public ServicePrice setTo(Date value) { this.To = value; return this; } public Integer getCalculationTypeId() { return CalculationTypeId; } public ServicePrice setCalculationTypeId(Integer value) { this.CalculationTypeId = value; return this; } } public static class GroupBookingSettings { public Boolean Active = null; public Integer Min = null; public Integer Max = null; public Boolean isActive() { return Active; } public GroupBookingSettings setActive(Boolean value) { this.Active = value; return this; } public Integer getMin() { return Min; } public GroupBookingSettings setMin(Integer value) { this.Min = value; return this; } public Integer getMax() { return Max; } public GroupBookingSettings setMax(Integer value) { this.Max = value; return this; } } public static class MultipleResourceSettings { public Boolean Active = null; public Integer Min = null; public Integer Max = null; public Boolean isActive() { return Active; } public MultipleResourceSettings setActive(Boolean value) { this.Active = value; return this; } public Integer getMin() { return Min; } public MultipleResourceSettings setMin(Integer value) { this.Min = value; return this; } public Integer getMax() { return Max; } public MultipleResourceSettings setMax(Integer value) { this.Max = value; return this; } } public static class ServiceInfoResponse { public Integer Id = null; public String Name = null; public String Description = null; public Uri ImageUrl = null; public Integer LengthInMinutes = null; public Integer MaxNumberOfSpotsPerBooking = null; public GroupBookingSettings GroupBooking = null; public MultipleResourceSettings MultipleResource = null; public Boolean IsGroupBooking = null; public Boolean IsPaymentEnabled = null; public Integer getId() { return Id; } public ServiceInfoResponse setId(Integer value) { this.Id = value; return this; } public String getName() { return Name; } public ServiceInfoResponse setName(String value) { this.Name = value; return this; } public String getDescription() { return Description; } public ServiceInfoResponse setDescription(String value) { this.Description = value; return this; } public Uri getImageUrl() { return ImageUrl; } public ServiceInfoResponse setImageUrl(Uri value) { this.ImageUrl = value; return this; } public Integer getLengthInMinutes() { return LengthInMinutes; } public ServiceInfoResponse setLengthInMinutes(Integer value) { this.LengthInMinutes = value; return this; } public Integer getMaxNumberOfSpotsPerBooking() { return MaxNumberOfSpotsPerBooking; } public ServiceInfoResponse setMaxNumberOfSpotsPerBooking(Integer value) { this.MaxNumberOfSpotsPerBooking = value; return this; } public GroupBookingSettings getGroupBooking() { return GroupBooking; } public ServiceInfoResponse setGroupBooking(GroupBookingSettings value) { this.GroupBooking = value; return this; } public MultipleResourceSettings getMultipleResource() { return MultipleResource; } public ServiceInfoResponse setMultipleResource(MultipleResourceSettings value) { this.MultipleResource = value; return this; } public Boolean getIsGroupBooking() { return IsGroupBooking; } public ServiceInfoResponse setIsGroupBooking(Boolean value) { this.IsGroupBooking = value; return this; } public Boolean getIsPaymentEnabled() { return IsPaymentEnabled; } public ServiceInfoResponse setIsPaymentEnabled(Boolean value) { this.IsPaymentEnabled = value; return this; } } public static class DayOfWeekDto { public Integer DayOfWeekId = null; public Integer DotNetDayOfWeekId = null; public String DayOfWeek = null; public Integer getDayOfWeekId() { return DayOfWeekId; } public DayOfWeekDto setDayOfWeekId(Integer value) { this.DayOfWeekId = value; return this; } public Integer getDotNetDayOfWeekId() { return DotNetDayOfWeekId; } public DayOfWeekDto setDotNetDayOfWeekId(Integer value) { this.DotNetDayOfWeekId = value; return this; } public String getDayOfWeek() { return DayOfWeek; } public DayOfWeekDto setDayOfWeek(String value) { this.DayOfWeek = value; return this; } } @DataContract public static class QueryBase { /** * Skip over a given number of elements in a sequence and then return the remainder. Use this when you need paging.

Example:
?skip=10&orderBy=Id */ @DataMember(Order=1) public Integer Skip = null; /** * Return a given number of elements in a sequence and then skip over the remainder. Use this when you need paging.

Example:
?take=20 */ @DataMember(Order=2) public Integer Take = null; /** * Comma separated list of fields to order by. Prefix the field name with a minus if you wan't to invert the sort for that field.

Example:
?orderBy=Id,-Age,FirstName */ @DataMember(Order=3) public String OrderBy = null; /** * Comma separated list of fields to order by in descending order. Prefix the field name with a minus if you wan't to invert the sort for that field.

Example:
?orderByDesc=Id,-Age,FirstName */ @DataMember(Order=4) public String OrderByDesc = null; /** * Include any of the aggregates AVG, COUNT, FIRST, LAST, MAX, MIN, SUM in your result set. The results will be returned in the meta field.

Example:
?include=COUNT(*) as Total

or multiple fields with
?include=Count(*) Total, Min(Age), AVG(Age) AverageAge

or unique with
?include=COUNT(DISTINCT LivingStatus) as UniqueStatus */ @DataMember(Order=5) public String Include = null; @DataMember(Order=6) public String Fields = null; @DataMember(Order=7) public HashMap Meta = null; public Integer getSkip() { return Skip; } public QueryBase setSkip(Integer value) { this.Skip = value; return this; } public Integer getTake() { return Take; } public QueryBase setTake(Integer value) { this.Take = value; return this; } public String getOrderBy() { return OrderBy; } public QueryBase setOrderBy(String value) { this.OrderBy = value; return this; } public String getOrderByDesc() { return OrderByDesc; } public QueryBase setOrderByDesc(String value) { this.OrderByDesc = value; return this; } public String getInclude() { return Include; } public QueryBase setInclude(String value) { this.Include = value; return this; } public String getFields() { return Fields; } public QueryBase setFields(String value) { this.Fields = value; return this; } public HashMap getMeta() { return Meta; } public QueryBase setMeta(HashMap value) { this.Meta = value; return this; } } public static class BaseModel { } public static class PriceMapping extends BaseModel { @Required() public UUID CompanyId = null; @Required() public UUID Id = null; @Required() public Integer PriceId = null; public String ReferenceType = null; public String ExternalReference = null; @Required() public Date UpdatedDate = null; @Required() public Date CreatedDate = null; public Date ModifiedDate = null; public UUID getCompanyId() { return CompanyId; } public PriceMapping setCompanyId(UUID value) { this.CompanyId = value; return this; } public UUID getId() { return Id; } public PriceMapping setId(UUID value) { this.Id = value; return this; } public Integer getPriceId() { return PriceId; } public PriceMapping setPriceId(Integer value) { this.PriceId = value; return this; } public String getReferenceType() { return ReferenceType; } public PriceMapping setReferenceType(String value) { this.ReferenceType = value; return this; } public String getExternalReference() { return ExternalReference; } public PriceMapping setExternalReference(String value) { this.ExternalReference = value; return this; } public Date getUpdatedDate() { return UpdatedDate; } public PriceMapping setUpdatedDate(Date value) { this.UpdatedDate = value; return this; } public Date getCreatedDate() { return CreatedDate; } public PriceMapping setCreatedDate(Date value) { this.CreatedDate = value; return this; } public Date getModifiedDate() { return ModifiedDate; } public PriceMapping setModifiedDate(Date value) { this.ModifiedDate = value; return this; } } public static class RebateCodeType extends BaseModel { @Required() public String Name = null; public String Description = null; public Date ModifiedDate = null; public Integer Id = null; public String getName() { return Name; } public RebateCodeType setName(String value) { this.Name = value; return this; } public String getDescription() { return Description; } public RebateCodeType setDescription(String value) { this.Description = value; return this; } public Date getModifiedDate() { return ModifiedDate; } public RebateCodeType setModifiedDate(Date value) { this.ModifiedDate = value; return this; } public Integer getId() { return Id; } public RebateCodeType setId(Integer value) { this.Id = value; return this; } } public static class RebateCodeDayOfWeekRelation extends BaseModel { @Ignore() public BokaMeraDayOfWeek DayOfWeek = null; @Required() public Integer DayOfWeekId = null; @Required() public Integer RebateCodeId = null; @Required() public UUID CompanyId = null; public Integer Id = null; public Date ModifiedDate = null; public BokaMeraDayOfWeek getDayOfWeek() { return DayOfWeek; } public RebateCodeDayOfWeekRelation setDayOfWeek(BokaMeraDayOfWeek value) { this.DayOfWeek = value; return this; } public Integer getDayOfWeekId() { return DayOfWeekId; } public RebateCodeDayOfWeekRelation setDayOfWeekId(Integer value) { this.DayOfWeekId = value; return this; } public Integer getRebateCodeId() { return RebateCodeId; } public RebateCodeDayOfWeekRelation setRebateCodeId(Integer value) { this.RebateCodeId = value; return this; } public UUID getCompanyId() { return CompanyId; } public RebateCodeDayOfWeekRelation setCompanyId(UUID value) { this.CompanyId = value; return this; } public Integer getId() { return Id; } public RebateCodeDayOfWeekRelation setId(Integer value) { this.Id = value; return this; } public Date getModifiedDate() { return ModifiedDate; } public RebateCodeDayOfWeekRelation setModifiedDate(Date value) { this.ModifiedDate = value; return this; } } public static class RebateCodeServiceRelation extends BaseModel { @Required() public UUID CompanyId = null; @Required() public Integer ServiceId = null; @Required() public Integer RebateCodeId = null; public Integer Id = null; public Date ModifiedDate = null; public UUID getCompanyId() { return CompanyId; } public RebateCodeServiceRelation setCompanyId(UUID value) { this.CompanyId = value; return this; } public Integer getServiceId() { return ServiceId; } public RebateCodeServiceRelation setServiceId(Integer value) { this.ServiceId = value; return this; } public Integer getRebateCodeId() { return RebateCodeId; } public RebateCodeServiceRelation setRebateCodeId(Integer value) { this.RebateCodeId = value; return this; } public Integer getId() { return Id; } public RebateCodeServiceRelation setId(Integer value) { this.Id = value; return this; } public Date getModifiedDate() { return ModifiedDate; } public RebateCodeServiceRelation setModifiedDate(Date value) { this.ModifiedDate = value; return this; } } public static class RebateCodeBookingPriceRelation extends BaseModel { @Required() public UUID CompanyId = null; @Required() public Integer PriceId = null; @Required() public Integer RebateCodeId = null; public Integer Id = null; public Date ModifiedDate = null; public UUID getCompanyId() { return CompanyId; } public RebateCodeBookingPriceRelation setCompanyId(UUID value) { this.CompanyId = value; return this; } public Integer getPriceId() { return PriceId; } public RebateCodeBookingPriceRelation setPriceId(Integer value) { this.PriceId = value; return this; } public Integer getRebateCodeId() { return RebateCodeId; } public RebateCodeBookingPriceRelation setRebateCodeId(Integer value) { this.RebateCodeId = value; return this; } public Integer getId() { return Id; } public RebateCodeBookingPriceRelation setId(Integer value) { this.Id = value; return this; } public Date getModifiedDate() { return ModifiedDate; } public RebateCodeBookingPriceRelation setModifiedDate(Date value) { this.ModifiedDate = value; return this; } } public static class RebateCodeCustomerRelation extends BaseModel { @Required() public UUID CompanyId = null; @Required() public UUID CustomerId = null; @Required() public Integer RebateCodeId = null; public Integer Id = null; public Date ModifiedDate = null; public UUID getCompanyId() { return CompanyId; } public RebateCodeCustomerRelation setCompanyId(UUID value) { this.CompanyId = value; return this; } public UUID getCustomerId() { return CustomerId; } public RebateCodeCustomerRelation setCustomerId(UUID value) { this.CustomerId = value; return this; } public Integer getRebateCodeId() { return RebateCodeId; } public RebateCodeCustomerRelation setRebateCodeId(Integer value) { this.RebateCodeId = value; return this; } public Integer getId() { return Id; } public RebateCodeCustomerRelation setId(Integer value) { this.Id = value; return this; } public Date getModifiedDate() { return ModifiedDate; } public RebateCodeCustomerRelation setModifiedDate(Date value) { this.ModifiedDate = value; return this; } } public static class DaysOfWeek extends BaseModel { @Required() public String DayOfWeek = null; @Required() public String DayOfWeekTranslation = null; public Boolean DayOfWeekActive = null; public Short DayOfWeekSortOrder = null; public Date ModifiedDate = null; public Integer Id = null; public String getDayOfWeek() { return DayOfWeek; } public DaysOfWeek setDayOfWeek(String value) { this.DayOfWeek = value; return this; } public String getDayOfWeekTranslation() { return DayOfWeekTranslation; } public DaysOfWeek setDayOfWeekTranslation(String value) { this.DayOfWeekTranslation = value; return this; } public Boolean isDayOfWeekActive() { return DayOfWeekActive; } public DaysOfWeek setDayOfWeekActive(Boolean value) { this.DayOfWeekActive = value; return this; } public Short getDayOfWeekSortOrder() { return DayOfWeekSortOrder; } public DaysOfWeek setDayOfWeekSortOrder(Short value) { this.DayOfWeekSortOrder = value; return this; } public Date getModifiedDate() { return ModifiedDate; } public DaysOfWeek setModifiedDate(Date value) { this.ModifiedDate = value; return this; } public Integer getId() { return Id; } public DaysOfWeek setId(Integer value) { this.Id = value; return this; } } public static class RebateCodeStatus extends BaseModel { @Required() public String Name = null; public String Description = null; public Date ModifiedDate = null; public Integer Id = null; public String getName() { return Name; } public RebateCodeStatus setName(String value) { this.Name = value; return this; } public String getDescription() { return Description; } public RebateCodeStatus setDescription(String value) { this.Description = value; return this; } public Date getModifiedDate() { return ModifiedDate; } public RebateCodeStatus setModifiedDate(Date value) { this.ModifiedDate = value; return this; } public Integer getId() { return Id; } public RebateCodeStatus setId(Integer value) { this.Id = value; return this; } } public static class ServicePriceDayOfWeekRelation extends BaseModel { @Ignore() public BokaMeraDayOfWeek DayOfWeek = null; @Required() public UUID CompanyId = null; @Required() public Integer ServicePriceId = null; @Required() public Integer DayOfWeekId = null; public Date ModifiedDate = null; public Integer Id = null; public BokaMeraDayOfWeek getDayOfWeek() { return DayOfWeek; } public ServicePriceDayOfWeekRelation setDayOfWeek(BokaMeraDayOfWeek value) { this.DayOfWeek = value; return this; } public UUID getCompanyId() { return CompanyId; } public ServicePriceDayOfWeekRelation setCompanyId(UUID value) { this.CompanyId = value; return this; } public Integer getServicePriceId() { return ServicePriceId; } public ServicePriceDayOfWeekRelation setServicePriceId(Integer value) { this.ServicePriceId = value; return this; } public Integer getDayOfWeekId() { return DayOfWeekId; } public ServicePriceDayOfWeekRelation setDayOfWeekId(Integer value) { this.DayOfWeekId = value; return this; } public Date getModifiedDate() { return ModifiedDate; } public ServicePriceDayOfWeekRelation setModifiedDate(Date value) { this.ModifiedDate = value; return this; } public Integer getId() { return Id; } public ServicePriceDayOfWeekRelation setId(Integer value) { this.Id = value; return this; } } public static enum BokaMeraDayOfWeek { Monday(1), Tuesday(2), Wednesday(3), Thursday(4), Friday(5), Saturday(6), Sunday(7); private final int value; BokaMeraDayOfWeek(final int intValue) { value = intValue; } public int getValue() { return value; } } public static class Customer { public String City = null; public String CountryCode = null; public String IdentityNumber = null; public String Email = null; public String FirstName = null; public String LastName = null; public String Phone = null; public String PostalCode = null; public String Street = null; public String Reference = null; public CustomerType Type = null; public String getCity() { return City; } public Customer setCity(String value) { this.City = value; return this; } public String getCountryCode() { return CountryCode; } public Customer setCountryCode(String value) { this.CountryCode = value; return this; } public String getIdentityNumber() { return IdentityNumber; } public Customer setIdentityNumber(String value) { this.IdentityNumber = value; return this; } public String getEmail() { return Email; } public Customer setEmail(String value) { this.Email = value; return this; } public String getFirstName() { return FirstName; } public Customer setFirstName(String value) { this.FirstName = value; return this; } public String getLastName() { return LastName; } public Customer setLastName(String value) { this.LastName = value; return this; } public String getPhone() { return Phone; } public Customer setPhone(String value) { this.Phone = value; return this; } public String getPostalCode() { return PostalCode; } public Customer setPostalCode(String value) { this.PostalCode = value; return this; } public String getStreet() { return Street; } public Customer setStreet(String value) { this.Street = value; return this; } public String getReference() { return Reference; } public Customer setReference(String value) { this.Reference = value; return this; } public CustomerType getType() { return Type; } public Customer setType(CustomerType value) { this.Type = 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; } } public static class ServicePriceResponse { /** * The company id */ @ApiMember(Description="The company id") public UUID CompanyId = null; /** * The price id */ @ApiMember(Description="The price id") public Integer Id = null; /** * The service id */ @ApiMember(Description="The service id") public Integer ServiceId = null; /** * The price */ @ApiMember(Description="The price") public Double Price = null; /** * The price calculation type id, 1 = Normal, price is for the service total duration, 2 = Price is per minute, 3 = Price is per hour, 4= Price is per day */ @ApiMember(Description="The price calculation type id, 1 = Normal, price is for the service total duration, 2 = Price is per minute, 3 = Price is per hour, 4= Price is per day") public Integer CalculationTypeId = null; /** * The price currency */ @ApiMember(Description="The price currency") public String CurrencyId = null; /** * The price sign */ @ApiMember(Description="The price sign") public String PriceSign = null; /** * The price VAT in percent */ @ApiMember(Description="The price VAT in percent") public BigDecimal VAT = null; /** * The price category if price has a category */ @ApiMember(Description="The price category if price has a category") public String Category = null; /** * The price text to display */ @ApiMember(Description="The price text to display") public String PriceText = null; /** * The valid from date for the price. */ @ApiMember(Description="The valid from date for the price.") public Date From = null; /** * The valid to date for the price. */ @ApiMember(Description="The valid to date for the price.") public Date To = null; /** * If the price is only valid for specific days in week add a comma separated list of which days this day price belongs to, 1 = Monday .. 7 = Sunday. All old days connected will be removed on update. */ @ApiMember(Description="If the price is only valid for specific days in week add a comma separated list of which days this day price belongs to, 1 = Monday .. 7 = Sunday. All old days connected will be removed on update.") public ArrayList DaysOfWeek = null; /** * If the price is only valid for specific days in week add a comma separated list of which days this day price belongs to, 1 = Monday .. 7 = Sunday. All old days connected will be removed on update. */ @ApiMember(Description="If the price is only valid for specific days in week add a comma separated list of which days this day price belongs to, 1 = Monday .. 7 = Sunday. All old days connected will be removed on update.") public TimeSpan FromTime = null; /** * If the price is only valid for a specific time span during a time of day enter the FromTime and ToTime parameters. */ @ApiMember(Description="If the price is only valid for a specific time span during a time of day enter the FromTime and ToTime parameters.") public TimeSpan ToTime = null; public ServiceInfoResponse Service = null; /** * If the price is only valid for a specific time span */ @ApiMember(Description="If the price is only valid for a specific time span") public Boolean IsTimeSpecific = null; /** * If the price is only valid for specific days of week */ @ApiMember(Description="If the price is only valid for specific days of week") public Boolean IsDaysOfWeekSpecific = null; /** * If the price is Weighted */ @ApiMember(Description="If the price is Weighted") public Boolean IsWeighted = null; public UUID getCompanyId() { return CompanyId; } public ServicePriceResponse setCompanyId(UUID value) { this.CompanyId = value; return this; } public Integer getId() { return Id; } public ServicePriceResponse setId(Integer value) { this.Id = value; return this; } public Integer getServiceId() { return ServiceId; } public ServicePriceResponse setServiceId(Integer value) { this.ServiceId = value; return this; } public Double getPrice() { return Price; } public ServicePriceResponse setPrice(Double value) { this.Price = value; return this; } public Integer getCalculationTypeId() { return CalculationTypeId; } public ServicePriceResponse setCalculationTypeId(Integer value) { this.CalculationTypeId = value; return this; } public String getCurrencyId() { return CurrencyId; } public ServicePriceResponse setCurrencyId(String value) { this.CurrencyId = value; return this; } public String getPriceSign() { return PriceSign; } public ServicePriceResponse setPriceSign(String value) { this.PriceSign = value; return this; } public BigDecimal getVat() { return VAT; } public ServicePriceResponse setVat(BigDecimal value) { this.VAT = value; return this; } public String getCategory() { return Category; } public ServicePriceResponse setCategory(String value) { this.Category = value; return this; } public String getPriceText() { return PriceText; } public ServicePriceResponse setPriceText(String value) { this.PriceText = value; return this; } public Date getFrom() { return From; } public ServicePriceResponse setFrom(Date value) { this.From = value; return this; } public Date getTo() { return To; } public ServicePriceResponse setTo(Date value) { this.To = value; return this; } public ArrayList getDaysOfWeek() { return DaysOfWeek; } public ServicePriceResponse setDaysOfWeek(ArrayList value) { this.DaysOfWeek = value; return this; } public TimeSpan getFromTime() { return FromTime; } public ServicePriceResponse setFromTime(TimeSpan value) { this.FromTime = value; return this; } public TimeSpan getToTime() { return ToTime; } public ServicePriceResponse setToTime(TimeSpan value) { this.ToTime = value; return this; } public ServiceInfoResponse getService() { return Service; } public ServicePriceResponse setService(ServiceInfoResponse value) { this.Service = value; return this; } public Boolean getIsTimeSpecific() { return IsTimeSpecific; } public ServicePriceResponse setIsTimeSpecific(Boolean value) { this.IsTimeSpecific = value; return this; } public Boolean getIsDaysOfWeekSpecific() { return IsDaysOfWeekSpecific; } public ServicePriceResponse setIsDaysOfWeekSpecific(Boolean value) { this.IsDaysOfWeekSpecific = value; return this; } public Boolean getIsWeighted() { return IsWeighted; } public ServicePriceResponse setIsWeighted(Boolean value) { this.IsWeighted = value; return this; } } }