/* Options: Date: 2024-06-26 19:11: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: GetRebateCode.* //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="/rebatecodes", Verbs="GET") @ApiResponse(Description="You were unauthorized to call this service", StatusCode=401) @ValidateRequest(Validator="IsAuthenticated") public static class GetRebateCode extends QueryDb implements IReturn>, ICompany { /** * Enter the company and id you want to see the information for a rebate code, if blank company id and you are an admin, your company id will be used. If blank id, all rebate codes will be shown */ @ApiMember(Description="Enter the company and id you want to see the information for a rebate code, if blank company id and you are an admin, your company id will be used. If blank id, all rebate codes will be shown ", ParameterType="query") public UUID CompanyId = null; /** * RebateCodeId */ @ApiMember(Description="RebateCodeId") public Integer Id = null; /** * */ @ApiMember(Description="") public Boolean Active = null; /** * */ @ApiMember(Description="") public Boolean IncludeCodeTypeOptions = null; /** * */ @ApiMember(Description="") public Boolean IncludeStatusOptions = null; /** * */ @ApiMember(Description="") public Boolean IncludeConnectedServices = null; /** * */ @ApiMember(Description="") public Boolean IncludeConnectedDaysOfWeek = null; /** * */ @ApiMember(Description="") public Boolean IncludeConnectedCustomers = null; public UUID getCompanyId() { return CompanyId; } public GetRebateCode setCompanyId(UUID value) { this.CompanyId = value; return this; } public Integer getId() { return Id; } public GetRebateCode setId(Integer value) { this.Id = value; return this; } public Boolean isActive() { return Active; } public GetRebateCode setActive(Boolean value) { this.Active = value; return this; } public Boolean isIncludeCodeTypeOptions() { return IncludeCodeTypeOptions; } public GetRebateCode setIncludeCodeTypeOptions(Boolean value) { this.IncludeCodeTypeOptions = value; return this; } public Boolean isIncludeStatusOptions() { return IncludeStatusOptions; } public GetRebateCode setIncludeStatusOptions(Boolean value) { this.IncludeStatusOptions = value; return this; } public Boolean isIncludeConnectedServices() { return IncludeConnectedServices; } public GetRebateCode setIncludeConnectedServices(Boolean value) { this.IncludeConnectedServices = value; return this; } public Boolean isIncludeConnectedDaysOfWeek() { return IncludeConnectedDaysOfWeek; } public GetRebateCode setIncludeConnectedDaysOfWeek(Boolean value) { this.IncludeConnectedDaysOfWeek = value; return this; } public Boolean isIncludeConnectedCustomers() { return IncludeConnectedCustomers; } public GetRebateCode setIncludeConnectedCustomers(Boolean value) { this.IncludeConnectedCustomers = 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 ICompany { public UUID CompanyId = null; } 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 DaysOfWeekResponse { public Integer Id = null; public String DayOfWeek = null; public String DayOfWeekTranslation = null; public Boolean DayOfWeekActive = null; public Short DayOfWeekSortOrder = null; public Integer getId() { return Id; } public DaysOfWeekResponse setId(Integer value) { this.Id = value; return this; } public String getDayOfWeek() { return DayOfWeek; } public DaysOfWeekResponse setDayOfWeek(String value) { this.DayOfWeek = value; return this; } public String getDayOfWeekTranslation() { return DayOfWeekTranslation; } public DaysOfWeekResponse setDayOfWeekTranslation(String value) { this.DayOfWeekTranslation = value; return this; } public Boolean isDayOfWeekActive() { return DayOfWeekActive; } public DaysOfWeekResponse setDayOfWeekActive(Boolean value) { this.DayOfWeekActive = value; return this; } public Short getDayOfWeekSortOrder() { return DayOfWeekSortOrder; } public DaysOfWeekResponse setDayOfWeekSortOrder(Short value) { this.DayOfWeekSortOrder = value; return this; } } public static class RebateCodeServiceResponse { public Integer Id = null; public String Name = null; public String Description = null; public Boolean Active = null; public Integer getId() { return Id; } public RebateCodeServiceResponse setId(Integer value) { this.Id = value; return this; } public String getName() { return Name; } public RebateCodeServiceResponse setName(String value) { this.Name = value; return this; } public String getDescription() { return Description; } public RebateCodeServiceResponse setDescription(String value) { this.Description = value; return this; } public Boolean isActive() { return Active; } public RebateCodeServiceResponse setActive(Boolean value) { this.Active = value; return this; } } public static class RebateCodeCustomerResponse { public UUID Id = null; public String Firstname = null; public String Lastname = null; public String Email = null; public String Phone = null; public String ImageUrl = null; public UUID getId() { return Id; } public RebateCodeCustomerResponse setId(UUID value) { this.Id = value; return this; } public String getFirstname() { return Firstname; } public RebateCodeCustomerResponse setFirstname(String value) { this.Firstname = value; return this; } public String getLastname() { return Lastname; } public RebateCodeCustomerResponse setLastname(String value) { this.Lastname = value; return this; } public String getEmail() { return Email; } public RebateCodeCustomerResponse setEmail(String value) { this.Email = value; return this; } public String getPhone() { return Phone; } public RebateCodeCustomerResponse setPhone(String value) { this.Phone = value; return this; } public String getImageUrl() { return ImageUrl; } public RebateCodeCustomerResponse setImageUrl(String value) { this.ImageUrl = 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 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 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 class RebateCodeResponse { public Integer Id = null; public UUID CompanyId = null; public Date ValidFrom = null; public Date ValidTo = 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 String CreatedBy = null; public Date Created = null; public String UpdatedBy = null; public Date Updated = null; public String PersonalNote = null; public String RebateCodeSign = null; public Integer RebateCodeValue = null; public Integer RebateCodeTypeId = null; public String Name = null; public Integer RebateCodeStatusId = null; public String StatusName = null; public Integer MaxNumberOfUses = null; public Integer MaxNumberOfUsesPerCustomer = null; public Integer NumberOfUsesUsed = null; public Integer NumberOfUsesPerCustomerUsed = null; public ArrayList DaysOfWeek = null; public ArrayList Services = null; public ArrayList Customers = null; public ArrayList RebateCodeTypesOptions = null; public ArrayList RebateCodeStatusOptions = null; public ResponseStatus ResponseStatus = null; public Integer getId() { return Id; } public RebateCodeResponse setId(Integer value) { this.Id = value; return this; } public UUID getCompanyId() { return CompanyId; } public RebateCodeResponse setCompanyId(UUID value) { this.CompanyId = value; return this; } public Date getValidFrom() { return ValidFrom; } public RebateCodeResponse setValidFrom(Date value) { this.ValidFrom = value; return this; } public Date getValidTo() { return ValidTo; } public RebateCodeResponse setValidTo(Date value) { this.ValidTo = value; return this; } public TimeSpan getFromTime() { return FromTime; } public RebateCodeResponse setFromTime(TimeSpan value) { this.FromTime = value; return this; } public TimeSpan getToTime() { return ToTime; } public RebateCodeResponse setToTime(TimeSpan value) { this.ToTime = value; return this; } public String getCreatedBy() { return CreatedBy; } public RebateCodeResponse setCreatedBy(String value) { this.CreatedBy = value; return this; } public Date getCreated() { return Created; } public RebateCodeResponse setCreated(Date value) { this.Created = value; return this; } public String getUpdatedBy() { return UpdatedBy; } public RebateCodeResponse setUpdatedBy(String value) { this.UpdatedBy = value; return this; } public Date getUpdated() { return Updated; } public RebateCodeResponse setUpdated(Date value) { this.Updated = value; return this; } public String getPersonalNote() { return PersonalNote; } public RebateCodeResponse setPersonalNote(String value) { this.PersonalNote = value; return this; } public String getRebateCodeSign() { return RebateCodeSign; } public RebateCodeResponse setRebateCodeSign(String value) { this.RebateCodeSign = value; return this; } public Integer getRebateCodeValue() { return RebateCodeValue; } public RebateCodeResponse setRebateCodeValue(Integer value) { this.RebateCodeValue = value; return this; } public Integer getRebateCodeTypeId() { return RebateCodeTypeId; } public RebateCodeResponse setRebateCodeTypeId(Integer value) { this.RebateCodeTypeId = value; return this; } public String getName() { return Name; } public RebateCodeResponse setName(String value) { this.Name = value; return this; } public Integer getRebateCodeStatusId() { return RebateCodeStatusId; } public RebateCodeResponse setRebateCodeStatusId(Integer value) { this.RebateCodeStatusId = value; return this; } public String getStatusName() { return StatusName; } public RebateCodeResponse setStatusName(String value) { this.StatusName = value; return this; } public Integer getMaxNumberOfUses() { return MaxNumberOfUses; } public RebateCodeResponse setMaxNumberOfUses(Integer value) { this.MaxNumberOfUses = value; return this; } public Integer getMaxNumberOfUsesPerCustomer() { return MaxNumberOfUsesPerCustomer; } public RebateCodeResponse setMaxNumberOfUsesPerCustomer(Integer value) { this.MaxNumberOfUsesPerCustomer = value; return this; } public Integer getNumberOfUsesUsed() { return NumberOfUsesUsed; } public RebateCodeResponse setNumberOfUsesUsed(Integer value) { this.NumberOfUsesUsed = value; return this; } public Integer getNumberOfUsesPerCustomerUsed() { return NumberOfUsesPerCustomerUsed; } public RebateCodeResponse setNumberOfUsesPerCustomerUsed(Integer value) { this.NumberOfUsesPerCustomerUsed = value; return this; } public ArrayList getDaysOfWeek() { return DaysOfWeek; } public RebateCodeResponse setDaysOfWeek(ArrayList value) { this.DaysOfWeek = value; return this; } public ArrayList getServices() { return Services; } public RebateCodeResponse setServices(ArrayList value) { this.Services = value; return this; } public ArrayList getCustomers() { return Customers; } public RebateCodeResponse setCustomers(ArrayList value) { this.Customers = value; return this; } public ArrayList getRebateCodeTypesOptions() { return RebateCodeTypesOptions; } public RebateCodeResponse setRebateCodeTypesOptions(ArrayList value) { this.RebateCodeTypesOptions = value; return this; } public ArrayList getRebateCodeStatusOptions() { return RebateCodeStatusOptions; } public RebateCodeResponse setRebateCodeStatusOptions(ArrayList value) { this.RebateCodeStatusOptions = value; return this; } public ResponseStatus getResponseStatus() { return ResponseStatus; } public RebateCodeResponse setResponseStatus(ResponseStatus value) { this.ResponseStatus = value; return this; } } public static class RebateCodeTypeResponse { public ResponseStatus ResponseStatus = null; public ArrayList RebateCodeTypeItems = null; public ResponseStatus getResponseStatus() { return ResponseStatus; } public RebateCodeTypeResponse setResponseStatus(ResponseStatus value) { this.ResponseStatus = value; return this; } public ArrayList getRebateCodeTypeItems() { return RebateCodeTypeItems; } public RebateCodeTypeResponse setRebateCodeTypeItems(ArrayList value) { this.RebateCodeTypeItems = value; return this; } } public static class RebateCodeStatusResponse { public ResponseStatus ResponseStatus = null; public ArrayList RebateCodeStatusItems = null; public ResponseStatus getResponseStatus() { return ResponseStatus; } public RebateCodeStatusResponse setResponseStatus(ResponseStatus value) { this.ResponseStatus = value; return this; } public ArrayList getRebateCodeStatusItems() { return RebateCodeStatusItems; } public RebateCodeStatusResponse setRebateCodeStatusItems(ArrayList value) { this.RebateCodeStatusItems = value; return this; } } }