/* Options: Date: 2025-03-14 06:41:33 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: CompanyIncentiveQuery.* //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="/companies/{CompanyId}/incentives", Verbs="GET") @ValidateRequest(Validator="IsAuthenticated") @ApiResponse(Description="You were unauthorized to call this service", StatusCode=401) public static class CompanyIncentiveQuery implements IReturn, ICompany { /** * The company id, if empty will use the company id for the user you are logged in with. */ @ApiMember(Description="The company id, if empty will use the company id for the user you are logged in with.", IsRequired=true, ParameterType="path") public UUID CompanyId = null; public UUID getCompanyId() { return CompanyId; } public CompanyIncentiveQuery setCompanyId(UUID value) { this.CompanyId = value; return this; } private static Object responseType = CompanyIncentivesQueryResponse.class; public Object getResponseType() { return responseType; } } public static class CompanyIncentivesQueryResponse { public IList Incentives = null; public UUID CompanyId = null; public IList getIncentives() { return Incentives; } public CompanyIncentivesQueryResponse setIncentives(IList value) { this.Incentives = value; return this; } public UUID getCompanyId() { return CompanyId; } public CompanyIncentivesQueryResponse setCompanyId(UUID value) { this.CompanyId = value; return this; } } public static interface ICompany { public UUID CompanyId = null; } public static class CompanyIncentiveResponse { public Integer Id = null; public String Heading = null; public String StorageUrl = null; public String SuccessButtonText = null; public Integer ActionId = null; public Integer InitialDelayInSeconds = null; public Integer MaxDisplayCount = null; public Date ValidFrom = null; public Date ValidTo = null; public IncentiveAction Action = null; public String Payload = null; public Integer getId() { return Id; } public CompanyIncentiveResponse setId(Integer value) { this.Id = value; return this; } public String getHeading() { return Heading; } public CompanyIncentiveResponse setHeading(String value) { this.Heading = value; return this; } public String getStorageUrl() { return StorageUrl; } public CompanyIncentiveResponse setStorageUrl(String value) { this.StorageUrl = value; return this; } public String getSuccessButtonText() { return SuccessButtonText; } public CompanyIncentiveResponse setSuccessButtonText(String value) { this.SuccessButtonText = value; return this; } public Integer getActionId() { return ActionId; } public CompanyIncentiveResponse setActionId(Integer value) { this.ActionId = value; return this; } public Integer getInitialDelayInSeconds() { return InitialDelayInSeconds; } public CompanyIncentiveResponse setInitialDelayInSeconds(Integer value) { this.InitialDelayInSeconds = value; return this; } public Integer getMaxDisplayCount() { return MaxDisplayCount; } public CompanyIncentiveResponse setMaxDisplayCount(Integer value) { this.MaxDisplayCount = value; return this; } public Date getValidFrom() { return ValidFrom; } public CompanyIncentiveResponse setValidFrom(Date value) { this.ValidFrom = value; return this; } public Date getValidTo() { return ValidTo; } public CompanyIncentiveResponse setValidTo(Date value) { this.ValidTo = value; return this; } public IncentiveAction getAction() { return Action; } public CompanyIncentiveResponse setAction(IncentiveAction value) { this.Action = value; return this; } public String getPayload() { return Payload; } public CompanyIncentiveResponse setPayload(String value) { this.Payload = value; return this; } } public static class BaseModel { } public static class IncentiveAction extends BaseModel { public Integer Id = null; public IncentiveActionType ActionType = null; public String Page = null; public String Segment = null; public String Element = null; public Integer getId() { return Id; } public IncentiveAction setId(Integer value) { this.Id = value; return this; } public IncentiveActionType getActionType() { return ActionType; } public IncentiveAction setActionType(IncentiveActionType value) { this.ActionType = value; return this; } public String getPage() { return Page; } public IncentiveAction setPage(String value) { this.Page = value; return this; } public String getSegment() { return Segment; } public IncentiveAction setSegment(String value) { this.Segment = value; return this; } public String getElement() { return Element; } public IncentiveAction setElement(String value) { this.Element = value; return this; } } public static enum IncentiveActionType { Upgrade(1), AddOn(2), Information(3); private final int value; IncentiveActionType(final int intValue) { value = intValue; } public int getValue() { return value; } } }