package com.eactive.eai.rms.onl.manage.authoutbound;

import com.eactive.eai.data.entity.onl.authoutbound.OutboundOAuthCredential;
import com.eactive.eai.data.entity.onl.message.EAIMessageEntity;
import com.eactive.eai.data.mapper.BaseMapperConfig;
import com.eactive.eai.rms.onl.transaction.apim.ui.ApiInterfaceUI;
import org.mapstruct.InheritConfiguration;
import org.mapstruct.InheritInverseConfiguration;
import org.mapstruct.Mapper;
import org.mapstruct.MappingTarget;

@Mapper(config = BaseMapperConfig.class)
public interface OutboundOAuthCredentialUIMapper {

    public OutboundOAuthCredentialUI toVo(OutboundOAuthCredential outboundOAuthCredential);

    @InheritInverseConfiguration
    public OutboundOAuthCredential toEntity(OutboundOAuthCredentialUI outboundOAuthCredentialUi);

    @InheritConfiguration()
    void updateToEntity(OutboundOAuthCredentialUI vo, @MappingTarget OutboundOAuthCredential entity);
}
