public class PaymentTransactionCreationResultBuilder
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
PaymentTransactionCreationResult |
build() |
PaymentTransactionCreationResultBuilder |
exception(java.lang.Throwable exception) |
PaymentTransactionCreationResultBuilder |
handlingTask(HandlingTask task)
Add information of the
HandlingTask the shop will recieve. |
static PaymentTransactionCreationResultBuilder |
of(OperationResult operationResult)
Create the builder instance.
|
static PaymentTransactionCreationResult |
ofError(java.lang.String message) |
static PaymentTransactionCreationResult |
ofError(java.lang.String message,
java.lang.Throwable exception) |
PaymentTransactionCreationResultBuilder |
payment(io.sphere.sdk.payments.Payment payment)
Add a payment object to the result.
|
public static PaymentTransactionCreationResultBuilder of(OperationResult operationResult)
operationResult - public static PaymentTransactionCreationResult ofError(java.lang.String message)
public static PaymentTransactionCreationResult ofError(java.lang.String message, java.lang.Throwable exception)
public PaymentTransactionCreationResultBuilder payment(io.sphere.sdk.payments.Payment payment)
payment - the CTP Payment objectpublic PaymentTransactionCreationResultBuilder handlingTask(HandlingTask task)
HandlingTask the shop will recieve.task - the handling task describing the next action to be takenpublic PaymentTransactionCreationResultBuilder exception(java.lang.Throwable exception)
public PaymentTransactionCreationResult build()
PaymentCreationResult object.