class Xs2aToSpiAccountReferenceMapper {

    public SpiAccountReference mapToSpiAccountReference(AccountReference account) {
        return new SpiAccountReference(
            account.getAspspAccountId(),
            account.getResourceId(),
            account.getIban(),
            account.getBban(),
            account.getPan(),
            account.getMaskedPan(),
            account.getMsisdn(),
            account.getCurrency());
    }

}