public abstract class CreatePaymentTransactionMethodBase extends java.lang.Object implements CreatePaymentTransactionMethod
Constructor and Description |
---|
CreatePaymentTransactionMethodBase() |
Modifier and Type | Method and Description |
---|---|
protected java.util.List<io.sphere.sdk.commands.UpdateAction<io.sphere.sdk.payments.Payment>> |
addPaymentUpdateActions(CreatePaymentTransactionData data)
Methods allows adding payment object update actions, that will be executed before adding the new transaction.
|
protected java.util.concurrent.CompletionStage<io.sphere.sdk.payments.Payment> |
createPaymentTransaction(CreatePaymentTransactionData data,
io.sphere.sdk.payments.TransactionType defaultType)
Create a new payment transaction using the passed creation data.
|
protected io.sphere.sdk.payments.TransactionDraftBuilder |
createTransactionDraftBuilder(CreatePaymentTransactionData data,
io.sphere.sdk.payments.TransactionType defaultType)
Default implementation of the payment transaction draft builder usage.
|
protected static java.lang.String |
getCustomFieldStringIfExists(io.sphere.sdk.types.Custom custom,
java.lang.String fieldName) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
create
protected java.util.concurrent.CompletionStage<io.sphere.sdk.payments.Payment> createPaymentTransaction(CreatePaymentTransactionData data, io.sphere.sdk.payments.TransactionType defaultType)
data
- the data wrapper objectdefaultType
- the default TransactionType
that will be used if the data wrapper does not provide a special valueprotected java.util.List<io.sphere.sdk.commands.UpdateAction<io.sphere.sdk.payments.Payment>> addPaymentUpdateActions(CreatePaymentTransactionData data)
data
- the data wrapper objectprotected io.sphere.sdk.payments.TransactionDraftBuilder createTransactionDraftBuilder(CreatePaymentTransactionData data, io.sphere.sdk.payments.TransactionType defaultType)
data
- the data wrapper objectdefaultType
- the default TransactionType
that will be used if the data wrapper does not provide a special valueTransactionDraft
initialized with data
and defaultType
@Nullable protected static java.lang.String getCustomFieldStringIfExists(@Nullable io.sphere.sdk.types.Custom custom, @Nullable java.lang.String fieldName)