package com.braintree.helpers;

import de.hybris.platform.payment.dto.TransactionStatusDetails;
import de.hybris.platform.payment.enums.PaymentTransactionType;
import de.hybris.platform.payment.model.PaymentTransactionEntryModel;

public class OrderVoidHelper {

    public boolean isSuccessfulCaptureTransaction(PaymentTransactionEntryModel entry) {
        return (PaymentTransactionType.CAPTURE.equals(entry.getType()) || PaymentTransactionType.PARTIAL_CAPTURE.equals(entry.getType()))
                && TransactionStatusDetails.SUCCESFULL.name().equals(entry.getTransactionStatusDetails());
    }

}
