Class PaymentTransactionAddedMessagePayloadBuilder
java.lang.Object
com.commercetools.api.models.message.PaymentTransactionAddedMessagePayloadBuilder
- All Implemented Interfaces:
Builder<PaymentTransactionAddedMessagePayload>
public class PaymentTransactionAddedMessagePayloadBuilder
extends Object
implements Builder<PaymentTransactionAddedMessagePayload>
PaymentTransactionAddedMessagePayloadBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
PaymentTransactionAddedMessagePayload paymentTransactionAddedMessagePayload = PaymentTransactionAddedMessagePayload.builder()
.transaction(transactionBuilder -> transactionBuilder)
.build()
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()builds PaymentTransactionAddedMessagePayload with checking for non-null required valuesbuilds PaymentTransactionAddedMessagePayload without checking for non-null required valuesTransaction that was added to the Payment.of()factory method for an instance of PaymentTransactionAddedMessagePayloadBuilderof(PaymentTransactionAddedMessagePayload template) create builder for PaymentTransactionAddedMessagePayload instancetransaction(Transaction transaction) Transaction that was added to the Payment.Transaction that was added to the Payment.withTransaction(Function<TransactionBuilder, Transaction> builder) Transaction that was added to the Payment.
-
Constructor Details
-
PaymentTransactionAddedMessagePayloadBuilder
public PaymentTransactionAddedMessagePayloadBuilder()
-
-
Method Details
-
transaction
public PaymentTransactionAddedMessagePayloadBuilder transaction(Function<TransactionBuilder, TransactionBuilder> builder) Transaction that was added to the Payment.
- Parameters:
builder- function to build the transaction value- Returns:
- Builder
-
withTransaction
public PaymentTransactionAddedMessagePayloadBuilder withTransaction(Function<TransactionBuilder, Transaction> builder) Transaction that was added to the Payment.
- Parameters:
builder- function to build the transaction value- Returns:
- Builder
-
transaction
Transaction that was added to the Payment.
- Parameters:
transaction- value to be set- Returns:
- Builder
-
getTransaction
Transaction that was added to the Payment.
- Returns:
- transaction
-
build
builds PaymentTransactionAddedMessagePayload with checking for non-null required values- Specified by:
buildin interfaceBuilder<PaymentTransactionAddedMessagePayload>- Returns:
- PaymentTransactionAddedMessagePayload
-
buildUnchecked
builds PaymentTransactionAddedMessagePayload without checking for non-null required values- Returns:
- PaymentTransactionAddedMessagePayload
-
of
factory method for an instance of PaymentTransactionAddedMessagePayloadBuilder- Returns:
- builder
-
of
public static PaymentTransactionAddedMessagePayloadBuilder of(PaymentTransactionAddedMessagePayload template) create builder for PaymentTransactionAddedMessagePayload instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-