package dev.lions.unionflow.server.api.dto.comptabilite.response;

import dev.lions.unionflow.server.api.dto.base.BaseResponse;
import java.math.BigDecimal;
import java.time.LocalDate;
import java.util.List;
import java.util.UUID;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.EqualsAndHashCode;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

/**
 * Réponse détaillée d'une écriture comptable.
 *
 * @author UnionFlow Team
 * @version 1.0
 */
@Getter
@Setter
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class EcritureComptableResponse extends BaseResponse {

    private String numeroPiece;
    private LocalDate dateEcriture;
    private String libelle;
    private String reference;
    private String lettrage;
    private Boolean pointe;
    private BigDecimal montantDebit;
    private BigDecimal montantCredit;
    private String commentaire;
    private UUID journalId;
    private UUID organisationId;
    private UUID paiementId;
    private List<LigneEcritureResponse> lignes;
}
