package com.jwipc.order.convert;

import com.jwipc.order.clent.dto.DeliveryOrderDTO;
import com.jwipc.order.dto.DeliveryOrderBaseDTO;
import com.jwipc.order.dto.DeliveryOrderListDTO;
import com.jwipc.order.dto.DeliveryOrderLookupDTO;
import com.jwipc.order.dto.DeliveryOrderSaveDTO;
import com.jwipc.order.entity.DeliveryOrder;
import org.mapstruct.Mapper;

import java.util.List;


@Mapper(componentModel = "spring")
public interface DeliveryOrderConvert {

    DeliveryOrder dto2Entity(DeliveryOrderSaveDTO deliveryOrderSaveDTO);

    List<DeliveryOrderBaseDTO> entities2Dtos(List<DeliveryOrder> list);

    DeliveryOrderLookupDTO entity2Dto1(DeliveryOrder byId);

    List<DeliveryOrderListDTO> entities2Dtos1(List<DeliveryOrder> list);

    DeliveryOrder entityCopy(DeliveryOrder deliveryOrder);

    List<DeliveryOrderDTO> entitie2Dtos(List<DeliveryOrder> list);

}
