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

import com.fasterxml.jackson.dataformat.xml.annotation.JacksonXmlCData;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

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

@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, List<Component>> componentDetails = new HashMap<>();

}
