package ru.soune.nocopy.dto.user;

import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;
import ru.soune.nocopy.entity.user.SubscriptionType;

import java.time.LocalDate;

@Data
public class UserAdditionalInfoBody {

    @JsonProperty("action")
    private String action;

    @JsonProperty("user_id")
    private Long userId;

    @JsonProperty("ip_address")
    private String ipAddress;

    @JsonProperty("user_agent")
    private String userAgent;

    @JsonProperty("page")
    private int page = 0;

    @JsonProperty("size")
    private int size = 5;

    @JsonProperty("sort_by")
    private String sortBy;

    @JsonProperty("sort_direction")
    private String sortDirection = "desc";

    @JsonProperty("full_name")
    private String fullName;

    @JsonProperty("email")
    private String email;

    @JsonProperty("is_active")
    private Boolean isActive;

    @JsonProperty("email_verified")
    private Boolean emailVerified;

    @JsonProperty("sub_type")
    private SubscriptionType subscriptionType;

    @JsonProperty("date_from")
    private LocalDate dateFrom;

    @JsonProperty("date_to")
    private LocalDate dateTo;
}
