/* Options: Date: 2024-06-17 04:17:01 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: UpdateRebateCode.* //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="/rebatecodes/{Id}", Verbs="PUT") @ApiResponse(Description="You were unauthorized to call this service", StatusCode=401) @ValidateRequest(Validator="IsAuthenticated") public static class UpdateRebateCode implements IReturn, ICompany { /** * Id of the rebate code */ @ApiMember(Description="Id of the rebate code", IsRequired=true, ParameterType="path") public Integer Id = null; public UUID CompanyId = null; /** * The default value is 9999 */ @ApiMember(Description="The default value is 9999") public Integer MaxNumberOfUses = null; /** * The default value is 1 */ @ApiMember(Description="The default value is 1") public Integer MaxNumberOfUsesPerCustomer = null; /** * AutoGenerateRebateCodeSign=true - random generate code */ @ApiMember(Description="AutoGenerateRebateCodeSign=true - random generate code") public Boolean AutoGenerateRebateCodeSign = null; /** * 1 - Percent, 2 - Сurrency */ @ApiMember(Description="1 - Percent, 2 - Сurrency") public Integer RebateCodeTypeId = null; /** * */ @ApiMember(Description="") public Date ValidFrom = null; /** * */ @ApiMember(Description="") 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 Integer RebateCodeValue = null; /** * Is empty - random generate code, is not empty - more than four letters, unique among active codes */ @ApiMember(Description="Is empty - random generate code, is not empty - more than four letters, unique among active codes") public String RebateCodeSign = null; /** * */ @ApiMember(Description="") public String PersonalNote = null; /** * */ @ApiMember(Description="") public ArrayList DaysOfWeek = null; /** * */ @ApiMember(Description="") public ArrayList Services = null; /** * */ @ApiMember(Description="") public ArrayList Customers = null; public Integer getId() { return Id; } public UpdateRebateCode setId(Integer value) { this.Id = value; return this; } public UUID getCompanyId() { return CompanyId; } public UpdateRebateCode setCompanyId(UUID value) { this.CompanyId = value; return this; } public Integer getMaxNumberOfUses() { return MaxNumberOfUses; } public UpdateRebateCode setMaxNumberOfUses(Integer value) { this.MaxNumberOfUses = value; return this; } public Integer getMaxNumberOfUsesPerCustomer() { return MaxNumberOfUsesPerCustomer; } public UpdateRebateCode setMaxNumberOfUsesPerCustomer(Integer value) { this.MaxNumberOfUsesPerCustomer = value; return this; } public Boolean isAutoGenerateRebateCodeSign() { return AutoGenerateRebateCodeSign; } public UpdateRebateCode setAutoGenerateRebateCodeSign(Boolean value) { this.AutoGenerateRebateCodeSign = value; return this; } public Integer getRebateCodeTypeId() { return RebateCodeTypeId; } public UpdateRebateCode setRebateCodeTypeId(Integer value) { this.RebateCodeTypeId = value; return this; } public Date getValidFrom() { return ValidFrom; } public UpdateRebateCode setValidFrom(Date value) { this.ValidFrom = value; return this; } public Date getValidTo() { return ValidTo; } public UpdateRebateCode setValidTo(Date value) { this.ValidTo = value; return this; } public TimeSpan getFromTime() { return FromTime; } public UpdateRebateCode setFromTime(TimeSpan value) { this.FromTime = value; return this; } public TimeSpan getToTime() { return ToTime; } public UpdateRebateCode setToTime(TimeSpan value) { this.ToTime = value; return this; } public Integer getRebateCodeValue() { return RebateCodeValue; } public UpdateRebateCode setRebateCodeValue(Integer value) { this.RebateCodeValue = value; return this; } public String getRebateCodeSign() { return RebateCodeSign; } public UpdateRebateCode setRebateCodeSign(String value) { this.RebateCodeSign = value; return this; } public String getPersonalNote() { return PersonalNote; } public UpdateRebateCode setPersonalNote(String value) { this.PersonalNote = value; return this; } public ArrayList getDaysOfWeek() { return DaysOfWeek; } public UpdateRebateCode setDaysOfWeek(ArrayList value) { this.DaysOfWeek = value; return this; } public ArrayList getServices() { return Services; } public UpdateRebateCode setServices(ArrayList value) { this.Services = value; return this; } public ArrayList getCustomers() { return Customers; } public UpdateRebateCode setCustomers(ArrayList value) { this.Customers = value; return this; } private static Object responseType = RebateCodeResponse.class; public Object getResponseType() { return responseType; } } 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 interface ICompany { public UUID CompanyId = null; } 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; } } 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; } } }