All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.commercetools.payment.model.impl.PaymentTransactionCreationResultImpl Maven / Gradle / Ivy

Go to download

The commercetools java payment project intend is to make payment integration easy

The newest version!
package com.commercetools.payment.model.impl;

import com.commercetools.payment.actions.HandlingTask;
import com.commercetools.payment.actions.OperationResult;
import com.commercetools.payment.model.PaymentTransactionCreationResult;
import io.sphere.sdk.payments.Payment;

/**
 * Created by mgatz on 7/28/16.
 */
public class PaymentTransactionCreationResultImpl extends AbstractPaymentOperationResult implements PaymentTransactionCreationResult {

    private HandlingTask handlingTask;

    public PaymentTransactionCreationResultImpl(
            OperationResult operationResult,
            Payment payment,
            HandlingTask handlingTask) {
        super(operationResult, payment);
        this.handlingTask = handlingTask;
    }

    public PaymentTransactionCreationResultImpl(
            OperationResult operationResult,
            Payment payment,
            HandlingTask handlingTask,
            String message,
            Throwable exception) {
        super(operationResult, payment, message, exception);
        this.handlingTask = handlingTask;
    }

    @Override
    public HandlingTask getHandlingTask() {

        return this.handlingTask;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy