package com.iqser.red.service.persistence.service.v2.api.external.model;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

import com.fasterxml.jackson.dataformat.xml.annotation.JacksonXmlCData;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class FileComponents {

    private String dossierTemplateId;
    private String dossierId;
    private String fileId;
    @JacksonXmlCData
    private String filename;

    @Builder.Default
    @JacksonXmlCData
    private Map<String, List<String>> components = new HashMap<>();

    @Builder.Default
    @JacksonXmlCData
    private Map<String, Component> componentDetails = new HashMap<>();

}
