package com.braintree.facade.backoffice.impl;

import com.braintree.facade.backoffice.BraintreeBackofficeRefreshPaymentStatusFacade;
import com.braintree.transaction.service.BrainTreeTransactionService;
import com.braintree.transaction.service.impl.DefaultBrainTreeTransactionService;
import de.hybris.platform.payment.model.PaymentTransactionModel;

import java.util.List;

public class DefaultBraintreeBackofficeRefreshPaymentStatusFacade implements BraintreeBackofficeRefreshPaymentStatusFacade {

    private BrainTreeTransactionService brainTreeTransactionService;

    @Override
    public void updateBraintreePaymentTransactionStatuses(List<PaymentTransactionModel> paymentTransactions) {
        brainTreeTransactionService.updateBraintreePaymentTransactionStatuses(paymentTransactions);
    }

    public void setBrainTreeTransactionService(DefaultBrainTreeTransactionService brainTreeTransactionService) {
        this.brainTreeTransactionService = brainTreeTransactionService;
    }
}
