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

com.commercetools.payment.model.PaymentOperationResult 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;

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

import java.util.Optional;

/**
 * Created by mgatz on 8/8/16.
 */
public interface PaymentOperationResult {
    /**
     * @return the basic operation result
     */
    OperationResult getOperationResult();

    /**
     * If the operation succeeded then this is the payment object that has been created.
     * @return the created payment object
     */
    Optional getRelatedPaymentObject();

    /**
     * If the operation failed because of an exception, then it is stored here.
     * @return the exception
     */
    Optional getException();

    /**
     * Can provide a message that describes the cause of the operation result.
     * @return the message
     */
    Optional getMessage();
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy