Commit 5235a2e7 authored by Siiri Tann's avatar Siiri Tann
Browse files

TEIS-3082: updated UpdateDriversInfringementStatusDto

parent 6f2af4f4
......@@ -19,7 +19,7 @@ Office API Gateway library.
## Requirements
* [OpenJDK 11](https://openjdk.java.net/projects/jdk/11/)
* [OpenJDK 17](https://openjdk.org/projects/jdk/17/)
* [Rabbit MQ](https://www.rabbitmq.com/)
See [how to run required dependencies](../../docs/blob/master/run-requirements.md).
......
package ee.sm.ti.teis.officegateway.driversinspections.driversinfringement.dto;
import ee.sm.ti.teis.commongateway.classifier.ClassifierItemLightDto;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import ee.sm.ti.teis.types.sensitive.SensitiveType;
import lombok.*;
import javax.validation.constraints.NotNull;
import java.util.List;
import java.util.UUID;
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class UpdateDriversInfringementStatusDto {
public class UpdateDriversInfringementStatusDto implements SensitiveType {
@NotNull
private UUID id;
@NotNull
private ClassifierItemLightDto status;
private String driverName;
private String driverCardNumber;
private boolean excludeUnimportant;
@ToString.Include
private String driverName() {
return obscureFieldValue(driverName);
}
@Override
public List<String> sensitiveObjectIds() {
return List.of(id.toString());
}
}
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment