package com.braintree.converters.populators;

import de.hybris.platform.converters.Populator;
import de.hybris.platform.ordermanagementfacades.payment.data.PaymentTransactionEntryData;
import de.hybris.platform.payment.model.PaymentTransactionEntryModel;

public class BrainTreePaymentTransactionEntryPopulator implements
    Populator<PaymentTransactionEntryModel, PaymentTransactionEntryData> {

    @Override
    public void populate(final PaymentTransactionEntryModel source, final PaymentTransactionEntryData target) {
        if (source != null && target != null) {
            target.setErrorMessage(source.getErrorMessage());
        }
    }

}
