PaymentOperationResult
PaymentCreationResultImpl
, PaymentTransactionCreationResultImpl
public abstract class AbstractPaymentOperationResult extends java.lang.Object implements PaymentOperationResult
Modifier | Constructor | Description |
---|---|---|
protected |
AbstractPaymentOperationResult(OperationResult operationResult,
io.sphere.sdk.payments.Payment payment) |
|
protected |
AbstractPaymentOperationResult(OperationResult operationResult,
io.sphere.sdk.payments.Payment payment,
java.lang.String message,
java.lang.Throwable exception) |
Modifier and Type | Method | Description |
---|---|---|
java.util.Optional<java.lang.Throwable> |
getException() |
If the operation failed because of an exception, then it is stored here.
|
java.util.Optional<java.lang.String> |
getMessage() |
Can provide a message that describes the cause of the operation result.
|
OperationResult |
getOperationResult() |
|
java.util.Optional<io.sphere.sdk.payments.Payment> |
getRelatedPaymentObject() |
If the operation succeeded then this is the payment object that has been created.
|
protected AbstractPaymentOperationResult(OperationResult operationResult, io.sphere.sdk.payments.Payment payment)
protected AbstractPaymentOperationResult(OperationResult operationResult, io.sphere.sdk.payments.Payment payment, java.lang.String message, java.lang.Throwable exception)
public OperationResult getOperationResult()
getOperationResult
in interface PaymentOperationResult
public java.util.Optional<io.sphere.sdk.payments.Payment> getRelatedPaymentObject()
PaymentOperationResult
getRelatedPaymentObject
in interface PaymentOperationResult
public java.util.Optional<java.lang.Throwable> getException()
PaymentOperationResult
getException
in interface PaymentOperationResult
public java.util.Optional<java.lang.String> getMessage()
PaymentOperationResult
getMessage
in interface PaymentOperationResult