package com.eactive.eai.rms.onl.manage.authserver.tokenissuance;

import com.eactive.eai.data.entity.onl.authserver.ClientEntity;
import com.eactive.eai.data.mapper.GenericMapper;
import org.mapstruct.Mapper;
import org.mapstruct.Mapping;
import org.mapstruct.ReportingPolicy;

@Mapper(componentModel = "spring",
        unmappedTargetPolicy = ReportingPolicy.IGNORE)
public interface TokenIssuanceStatusUIMapper extends GenericMapper<TokenIssuanceStatusUI, ClientEntity> {

    @Override
    @Mapping(source = "clientid", target = "clientId")
    @Mapping(source = "clientname", target = "clientName")
    @Mapping(source = "orgname", target = "orgName")
    @Mapping(source = "dailytokenlimit", target = "dailyTokenLimit")
    TokenIssuanceStatusUI toVo(ClientEntity entity);
}