package cn.pluss.platform.converter;

import cn.pluss.platform.dto.BankInfoDTO;
import cn.pluss.platform.entity.BankCard;
import javax.annotation.Generated;

@Generated(
    value = "org.mapstruct.ap.MappingProcessor",
    date = "2023-01-29T10:16:06+0800",
    comments = "version: 1.4.2.Final, compiler: javac, environment: Java 1.8.0_362 (Amazon.com Inc.)"
)
public class BankCardConverterImpl implements BankCardConverter {

    @Override
    public BankCard dto2Domain(BankInfoDTO bankInfoDTO) {
        if ( bankInfoDTO == null ) {
            return null;
        }

        BankCard bankCard = new BankCard();

        bankCard.setUserId( bankInfoDTO.getUserId() );
        bankCard.setBankCardNo( bankInfoDTO.getBankCardNo() );
        bankCard.setBankName( bankInfoDTO.getBankName() );
        bankCard.setBranchName( bankInfoDTO.getBranchName() );
        bankCard.setAccountType( bankInfoDTO.getAccountType() );
        bankCard.setContactLine( bankInfoDTO.getContactLine() );
        bankCard.setBranchProvince( bankInfoDTO.getBranchProvince() );
        bankCard.setBranchCity( bankInfoDTO.getBranchCity() );
        bankCard.setBranchArea( bankInfoDTO.getBranchArea() );
        bankCard.setBankAddressNo( bankInfoDTO.getBankAddressNo() );
        bankCard.setPhone( bankInfoDTO.getPhone() );
        bankCard.setImgUrl( bankInfoDTO.getImgUrl() );

        return bankCard;
    }
}
