package com.banesco.module.msg_request_header.domain.model;

import com.banesco.common.domain.model.Device;
import com.fasterxml.jackson.annotation.JsonIgnore;
import io.quarkus.runtime.annotations.RegisterForReflection;
import lombok.*;

@Getter
@ToString
@Builder
@NoArgsConstructor
@AllArgsConstructor
@RegisterForReflection
public class ApplicantData {
    private String enterpriseCode;
    private String privateChannelId;
    private String ipAddress;
    private String hostName;
    private String stadisticId;
    private String application;
    private String nationality;
    private String idDocument;
    private String rolType;
    private String planCode;
    private String channel;

    @JsonIgnore
    public ApplicantData withOptions(Device device) {
        this.ipAddress = device.getDeviceIp();
        return this;
    }
}
