Package com.commercetools.api.models.me
Class MyPaymentAddTransactionActionBuilder
java.lang.Object
com.commercetools.api.models.me.MyPaymentAddTransactionActionBuilder
- All Implemented Interfaces:
Builder<MyPaymentAddTransactionAction>
public class MyPaymentAddTransactionActionBuilder
extends Object
implements Builder<MyPaymentAddTransactionAction>
MyPaymentAddTransactionActionBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
MyPaymentAddTransactionAction myPaymentAddTransactionAction = MyPaymentAddTransactionAction.builder()
.transaction(transactionBuilder -> transactionBuilder)
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds MyPaymentAddTransactionAction with checking for non-null required valuesbuilds MyPaymentAddTransactionAction without checking for non-null required valuesTransaction to add to the Payment.of()
factory method for an instance of MyPaymentAddTransactionActionBuilderof
(MyPaymentAddTransactionAction template) create builder for MyPaymentAddTransactionAction instancetransaction
(TransactionDraft transaction) Transaction to add to the Payment.Transaction to add to the Payment.Transaction to add to the Payment.
-
Constructor Details
-
MyPaymentAddTransactionActionBuilder
public MyPaymentAddTransactionActionBuilder()
-
-
Method Details
-
transaction
public MyPaymentAddTransactionActionBuilder transaction(Function<TransactionDraftBuilder, TransactionDraftBuilder> builder) Transaction to add to the Payment.
- Parameters:
builder
- function to build the transaction value- Returns:
- Builder
-
withTransaction
public MyPaymentAddTransactionActionBuilder withTransaction(Function<TransactionDraftBuilder, TransactionDraft> builder) Transaction to add to the Payment.
- Parameters:
builder
- function to build the transaction value- Returns:
- Builder
-
transaction
Transaction to add to the Payment.
- Parameters:
transaction
- value to be set- Returns:
- Builder
-
getTransaction
Transaction to add to the Payment.
- Returns:
- transaction
-
build
builds MyPaymentAddTransactionAction with checking for non-null required values- Specified by:
build
in interfaceBuilder<MyPaymentAddTransactionAction>
- Returns:
- MyPaymentAddTransactionAction
-
buildUnchecked
builds MyPaymentAddTransactionAction without checking for non-null required values- Returns:
- MyPaymentAddTransactionAction
-
of
factory method for an instance of MyPaymentAddTransactionActionBuilder- Returns:
- builder
-
of
create builder for MyPaymentAddTransactionAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-