package com.platform2easy.genesis.domain.model.cerc;

import jakarta.persistence.Entity;
import jakarta.persistence.GeneratedValue;
import jakarta.persistence.GenerationType;
import jakarta.persistence.Id;
import lombok.EqualsAndHashCode;
import lombok.Getter;
import lombok.Setter;

import java.math.BigDecimal;
import java.time.LocalDate;
import java.time.LocalDateTime;

@Entity
@Getter
@Setter
@EqualsAndHashCode(onlyExplicitlyIncluded = true)
public class ContratoValorCpr {
    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    @EqualsAndHashCode.Include
    private Long id;

    private Boolean autorizoRegistroEDeclaroQueFoiDadoBaixaNoRegistroEmQuaisquerOutrasIf;
    private String codigoContratoOperacaoCredito;
    private String codigoContratoScr;
    private String codigoMoeda;

    private LocalDateTime dataBaixaOutraIf;
    private LocalDateTime dataContratoSistemaIF;
    private LocalDateTime dataRegistroOriginal;
    private LocalDate dataTransacao;

    private String identificacaoPadronizadaOperacaoCredito;
    private String indexacao;
    private String naturezaOperacao;
    private BigDecimal percentualIndexador;
    private Integer quantidadeParcelaContratada;
    private String referenciaExterna;
    private BigDecimal taxaJurosOperacao;
    private String tipoAtivo;
    private BigDecimal valorFinanciadoContrato;
    private BigDecimal valorLiquidoCredito;
    private BigDecimal valorTotalCredito;
}