package com.clx.performance.struct.loan;

import com.clx.performance.model.loan.OwnerPayment;
import com.clx.performance.vo.pc.loan.carrier.CarrierOwnerPaymentVO;
import com.clx.performance.vo.pc.loan.carrier.OwnerPaymentVO;
import com.msl.common.utils.DateStructUtil;
import org.mapstruct.Mapper;

import java.util.List;
import java.util.Objects;

@Mapper(componentModel = "spring", uses = DateStructUtil.class, imports = {Objects.class})
public interface OwnerPaymentStruct {

    List<OwnerPaymentVO> convertList(List<OwnerPayment> list);

    CarrierOwnerPaymentVO convert(OwnerPayment ownerPayment);
}
