/* Options: Date: 2026-05-29 18:53:51 Version: 10.05 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://api.bokamera.se //Package: //GlobalNamespace: dtos //AddPropertyAccessors: True //SettersReturnThis: True //AddServiceStackTypes: True //AddResponseStatus: False //AddDescriptionAsComments: True //AddImplicitVersion: IncludeTypes: SetCompanyFeatureFlag.* //ExcludeTypes: //TreatTypesAsStrings: //DefaultImports: java.math.*,java.util.*,java.io.InputStream,net.servicestack.client.* */ import java.math.*; import java.util.*; import java.io.InputStream; import net.servicestack.client.*; public class dtos { @Route(Path="/feature/{CompanyId}/{Id}", Verbs="PUT") @ApiResponse(Description="Returned if the flag is not toggleable for this caller", StatusCode=400) // @ApiResponse(Description="Returned if the feature flag or company was not found", StatusCode=404) // @ApiResponse(Description="Returned if the current user is not allowed to perform the action", StatusCode=401) @ValidateRequest(Validator="IsAuthenticated") public static class SetCompanyFeatureFlag implements IReturn, ICompany { /** * The company id. */ @ApiMember(Description="The company id.", IsRequired=true, ParameterType="path") public UUID CompanyId = null; /** * The feature flag id. */ @ApiMember(Description="The feature flag id.", IsRequired=true, ParameterType="path") public Integer Id = null; /** * Whether the feature is enabled for this company. */ @ApiMember(Description="Whether the feature is enabled for this company.", IsRequired=true) public Boolean IsEnabled = null; public UUID getCompanyId() { return CompanyId; } public SetCompanyFeatureFlag setCompanyId(UUID value) { this.CompanyId = value; return this; } public Integer getId() { return Id; } public SetCompanyFeatureFlag setId(Integer value) { this.Id = value; return this; } public Boolean getIsEnabled() { return IsEnabled; } public SetCompanyFeatureFlag setIsEnabled(Boolean value) { this.IsEnabled = value; return this; } private static Object responseType = CompanyFeatureFlagResponse.class; public Object getResponseType() { return responseType; } } public static class CompanyFeatureFlagResponse { public Integer Id = null; public String Name = null; public Boolean IsEnabled = null; public Boolean IsPublic = null; public Boolean CompanyAdminCanToggle = null; public ResponseStatus ResponseStatus = null; public Integer getId() { return Id; } public CompanyFeatureFlagResponse setId(Integer value) { this.Id = value; return this; } public String getName() { return Name; } public CompanyFeatureFlagResponse setName(String value) { this.Name = value; return this; } public Boolean getIsEnabled() { return IsEnabled; } public CompanyFeatureFlagResponse setIsEnabled(Boolean value) { this.IsEnabled = value; return this; } public Boolean getIsPublic() { return IsPublic; } public CompanyFeatureFlagResponse setIsPublic(Boolean value) { this.IsPublic = value; return this; } public Boolean isCompanyAdminCanToggle() { return CompanyAdminCanToggle; } public CompanyFeatureFlagResponse setCompanyAdminCanToggle(Boolean value) { this.CompanyAdminCanToggle = value; return this; } public ResponseStatus getResponseStatus() { return ResponseStatus; } public CompanyFeatureFlagResponse setResponseStatus(ResponseStatus value) { this.ResponseStatus = value; return this; } } public static interface ICompany { public UUID CompanyId = null; } }