package com.qsoft.rs.sincoar.dominio.mapper;

import com.qsoft.rs.sincoar.dto.TcustbalanceaccountPKDTO;
import com.qsoft.rs.sincoar.model.TcustbalanceaccountPK;
import javax.annotation.processing.Generated;

@Generated(
    value = "org.mapstruct.ap.MappingProcessor",
    date = "2022-09-02T16:14:46-0500",
    comments = "version: 1.5.2.Final, compiler: javac, environment: Java 17.0.4 (Private Build)"
)
public class TcustbalanceaccountPKMapperImpl implements TcustbalanceaccountPKMapper {

    @Override
    public TcustbalanceaccountPK getEntidad(TcustbalanceaccountPKDTO tcustbalanceaccountPK) {
        if ( tcustbalanceaccountPK == null ) {
            return null;
        }

        TcustbalanceaccountPK tcustbalanceaccountPK1 = new TcustbalanceaccountPK();

        tcustbalanceaccountPK1.setAccountcode( tcustbalanceaccountPK.getAccountcode() );
        tcustbalanceaccountPK1.setBalancecatalog( tcustbalanceaccountPK.getBalancecatalog() );
        tcustbalanceaccountPK1.setBalancecatalogcode( tcustbalanceaccountPK.getBalancecatalogcode() );

        return tcustbalanceaccountPK1;
    }

    @Override
    public TcustbalanceaccountPKDTO getDto(TcustbalanceaccountPK tcustbalanceaccountPK) {
        if ( tcustbalanceaccountPK == null ) {
            return null;
        }

        TcustbalanceaccountPKDTO tcustbalanceaccountPKDTO = new TcustbalanceaccountPKDTO();

        tcustbalanceaccountPKDTO.setAccountcode( tcustbalanceaccountPK.getAccountcode() );
        tcustbalanceaccountPKDTO.setBalancecatalog( tcustbalanceaccountPK.getBalancecatalog() );
        tcustbalanceaccountPKDTO.setBalancecatalogcode( tcustbalanceaccountPK.getBalancecatalogcode() );

        return tcustbalanceaccountPKDTO;
    }
}
