package com.jwipc.supplier.convert;

import com.jwipc.supplier.dto.SupplierChangeVersionBaseDTO;
import com.jwipc.supplier.dto.SupplierContactsDTO;
import com.jwipc.supplier.entity.SupplierChangeVersion;
import com.jwipc.supplier.entity.SupplierContactsVersion;
import com.jwipc.supplier.entity.SupplierContactsVersionWhole;
import org.mapstruct.Mapper;

import java.util.List;


@Mapper(componentModel = "spring")
public interface SupplierChangeVersionConvert {
    List<SupplierChangeVersionBaseDTO> entities2Dtos(List<SupplierChangeVersion> list);

    List<SupplierContactsVersion> dtos2Entities(List<SupplierContactsDTO> contactsList);

    List<SupplierContactsVersionWhole> dtos2WholeEntities(List<SupplierContactsDTO> contactsList);

    SupplierChangeVersionBaseDTO entity2Dtos(SupplierChangeVersion changeVersion);
}
