package com.braintree.customersupportbackoffice.services.impl;

import com.braintree.command.request.BrainTreeCustomerRequest;
import com.braintree.command.result.BrainTreeFindCustomersResult;
import com.braintree.customersupportbackoffice.services.BrainTreeCustomerSearchService;
import com.braintree.method.BrainTreePaymentService;
import de.hybris.platform.payment.AdapterException;


public class BraintreeCustomerSearchServiceImpl implements BrainTreeCustomerSearchService {

    private BrainTreePaymentService brainTreePaymentService;

    @Override
    public BrainTreeFindCustomersResult findCustomers(BrainTreeCustomerRequest findCustomerRequest)
        throws AdapterException {
        return brainTreePaymentService.findCustomers(findCustomerRequest);
    }

    public BrainTreePaymentService getBrainTreePaymentService() {
        return brainTreePaymentService;
    }

    public void setBrainTreePaymentService(BrainTreePaymentService brainTreePaymentService) {
        this.brainTreePaymentService = brainTreePaymentService;
    }
}
