class CardAccountModelMapper {

    public abstract CardAccountDetails mapToCardAccountDetails(Xs2aCardAccountDetails accountDetails)@Mapping(target = "_links", ignore = true)
    @Mapping(target = "links", expression = "java(hrefLinkMapper.mapToLinksMap(accountDetails.getLinks()))")
    @Mapping(target = "status", source = "accountStatus")
    @Mapping(target = "usage", source = "usageType")
    @Mapping(target = "currency", expression = "java(mapToAccountDetailsCurrency(accountDetails.getCurrency()))")
    public abstract CardAccountDetails mapToCardAccountDetails(Xs2aCardAccountDetails accountDetails);

}