Class PaymentTransactionStateChangedMessagePayloadBuilder
java.lang.Object
com.commercetools.api.models.message.PaymentTransactionStateChangedMessagePayloadBuilder
- All Implemented Interfaces:
Builder<PaymentTransactionStateChangedMessagePayload>
public class PaymentTransactionStateChangedMessagePayloadBuilder
extends Object
implements Builder<PaymentTransactionStateChangedMessagePayload>
PaymentTransactionStateChangedMessagePayloadBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
PaymentTransactionStateChangedMessagePayload paymentTransactionStateChangedMessagePayload = PaymentTransactionStateChangedMessagePayload.builder()
.transactionId("{transactionId}")
.state(TransactionState.INITIAL)
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds PaymentTransactionStateChangedMessagePayload with checking for non-null required valuesbuilds PaymentTransactionStateChangedMessagePayload without checking for non-null required valuesgetState()
Transaction State after the Change Transaction State update action.Unique identifier for the Transaction for which the Transaction State changed.of()
factory method for an instance of PaymentTransactionStateChangedMessagePayloadBuildercreate builder for PaymentTransactionStateChangedMessagePayload instancestate
(TransactionState state) Transaction State after the Change Transaction State update action.transactionId
(String transactionId) Unique identifier for the Transaction for which the Transaction State changed.
-
Constructor Details
-
PaymentTransactionStateChangedMessagePayloadBuilder
public PaymentTransactionStateChangedMessagePayloadBuilder()
-
-
Method Details
-
transactionId
Unique identifier for the Transaction for which the Transaction State changed.
- Parameters:
transactionId
- value to be set- Returns:
- Builder
-
state
Transaction State after the Change Transaction State update action.
- Parameters:
state
- value to be set- Returns:
- Builder
-
getTransactionId
Unique identifier for the Transaction for which the Transaction State changed.
- Returns:
- transactionId
-
getState
Transaction State after the Change Transaction State update action.
- Returns:
- state
-
build
builds PaymentTransactionStateChangedMessagePayload with checking for non-null required values- Specified by:
build
in interfaceBuilder<PaymentTransactionStateChangedMessagePayload>
- Returns:
- PaymentTransactionStateChangedMessagePayload
-
buildUnchecked
builds PaymentTransactionStateChangedMessagePayload without checking for non-null required values- Returns:
- PaymentTransactionStateChangedMessagePayload
-
of
factory method for an instance of PaymentTransactionStateChangedMessagePayloadBuilder- Returns:
- builder
-
of
public static PaymentTransactionStateChangedMessagePayloadBuilder of(PaymentTransactionStateChangedMessagePayload template) create builder for PaymentTransactionStateChangedMessagePayload instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-