package com.braintree.converters.populators.configuration;

import com.braintree.hybris.data.BraintreeLocalPaymentsConfigurationData;
import de.hybris.platform.converters.Populator;
import de.hybris.platform.core.model.BraintreeLocalPaymentsConfigurationModel;
import de.hybris.platform.servicelayer.dto.converter.ConversionException;

public class BraintreeLocalPaymentsConfigurationPopulator implements Populator<BraintreeLocalPaymentsConfigurationModel, BraintreeLocalPaymentsConfigurationData> {

    @Override
    public void populate(BraintreeLocalPaymentsConfigurationModel source, BraintreeLocalPaymentsConfigurationData target) throws ConversionException {
        target.setEnabled(source.isEnabled());
    }
}
