package at.procon.dip.search.dto;

import at.procon.dip.domain.document.DocumentAttributeValueType;
import java.math.BigDecimal;
import java.time.LocalDate;
import java.time.OffsetDateTime;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class DocumentAttributeFilterRequest {
    private String name;
    private String context;
    private DocumentAttributeValueType type;
    @Builder.Default
    private DocumentAttributeFilterOperator operator = DocumentAttributeFilterOperator.EQ;
    private String stringValue;
    private Long integerValue;
    private BigDecimal numberValue;
    private LocalDate dateValue;
    private OffsetDateTime datetimeValue;
    private Boolean booleanValue;
}
