Class PaymentAddTransactionActionBuilder
java.lang.Object
com.commercetools.api.models.payment.PaymentAddTransactionActionBuilder
- All Implemented Interfaces:
Builder<PaymentAddTransactionAction>
public class PaymentAddTransactionActionBuilder
extends Object
implements Builder<PaymentAddTransactionAction>
PaymentAddTransactionActionBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
PaymentAddTransactionAction paymentAddTransactionAction = PaymentAddTransactionAction.builder()
.transaction(transactionBuilder -> transactionBuilder)
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds PaymentAddTransactionAction with checking for non-null required valuesbuilds PaymentAddTransactionAction without checking for non-null required valuesValue to append to thetransactions
array.of()
factory method for an instance of PaymentAddTransactionActionBuilderof
(PaymentAddTransactionAction template) create builder for PaymentAddTransactionAction instancetransaction
(TransactionDraft transaction) Value to append to thetransactions
array.Value to append to thetransactions
array.Value to append to thetransactions
array.
-
Constructor Details
-
PaymentAddTransactionActionBuilder
public PaymentAddTransactionActionBuilder()
-
-
Method Details
-
transaction
public PaymentAddTransactionActionBuilder transaction(Function<TransactionDraftBuilder, TransactionDraftBuilder> builder) Value to append to the
transactions
array.- Parameters:
builder
- function to build the transaction value- Returns:
- Builder
-
withTransaction
public PaymentAddTransactionActionBuilder withTransaction(Function<TransactionDraftBuilder, TransactionDraft> builder) Value to append to the
transactions
array.- Parameters:
builder
- function to build the transaction value- Returns:
- Builder
-
transaction
Value to append to the
transactions
array.- Parameters:
transaction
- value to be set- Returns:
- Builder
-
getTransaction
Value to append to the
transactions
array.- Returns:
- transaction
-
build
builds PaymentAddTransactionAction with checking for non-null required values- Specified by:
build
in interfaceBuilder<PaymentAddTransactionAction>
- Returns:
- PaymentAddTransactionAction
-
buildUnchecked
builds PaymentAddTransactionAction without checking for non-null required values- Returns:
- PaymentAddTransactionAction
-
of
factory method for an instance of PaymentAddTransactionActionBuilder- Returns:
- builder
-
of
create builder for PaymentAddTransactionAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-