PaymentOperationResultPaymentCreationResultImpl, PaymentTransactionCreationResultImplpublic 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 PaymentOperationResultpublic java.util.Optional<io.sphere.sdk.payments.Payment> getRelatedPaymentObject()
PaymentOperationResultgetRelatedPaymentObject in interface PaymentOperationResultpublic java.util.Optional<java.lang.Throwable> getException()
PaymentOperationResultgetException in interface PaymentOperationResultpublic java.util.Optional<java.lang.String> getMessage()
PaymentOperationResultgetMessage in interface PaymentOperationResult