package com.braintree.customersupportbackoffice.services.impl;

import com.braintree.command.request.BrainTreeFindTransactionRequest;
import com.braintree.command.result.BrainTreeFindTransactionResult;
import com.braintree.customersupportbackoffice.services.BrainTreeTransactionSearchService;
import com.braintree.method.BrainTreePaymentService;
import de.hybris.platform.payment.AdapterException;

public class BraintreeTransactionSearchServiceImpl implements BrainTreeTransactionSearchService {

    private BrainTreePaymentService brainTreePaymentService;

    @Override
    public BrainTreeFindTransactionResult findTransactions(
        BrainTreeFindTransactionRequest findTransactionRequest) throws AdapterException {
        return brainTreePaymentService.findTransactions(findTransactionRequest);
    }

    public BrainTreePaymentService getBrainTreePaymentService() {
        return brainTreePaymentService;
    }

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