Class OrderPaymentAddedMessagePayloadBuilder
java.lang.Object
com.commercetools.api.models.message.OrderPaymentAddedMessagePayloadBuilder
- All Implemented Interfaces:
Builder<OrderPaymentAddedMessagePayload>
public class OrderPaymentAddedMessagePayloadBuilder
extends Object
implements Builder<OrderPaymentAddedMessagePayload>
OrderPaymentAddedMessagePayloadBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
OrderPaymentAddedMessagePayload orderPaymentAddedMessagePayload = OrderPaymentAddedMessagePayload.builder()
.payment(paymentBuilder -> paymentBuilder)
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds OrderPaymentAddedMessagePayload with checking for non-null required valuesbuilds OrderPaymentAddedMessagePayload without checking for non-null required valuesPayment that was added to the Order.of()
factory method for an instance of OrderPaymentAddedMessagePayloadBuilderof
(OrderPaymentAddedMessagePayload template) create builder for OrderPaymentAddedMessagePayload instancepayment
(PaymentReference payment) Payment that was added to the Order.Payment that was added to the Order.Payment that was added to the Order.
-
Constructor Details
-
OrderPaymentAddedMessagePayloadBuilder
public OrderPaymentAddedMessagePayloadBuilder()
-
-
Method Details
-
payment
public OrderPaymentAddedMessagePayloadBuilder payment(Function<PaymentReferenceBuilder, PaymentReferenceBuilder> builder) Payment that was added to the Order.
- Parameters:
builder
- function to build the payment value- Returns:
- Builder
-
withPayment
public OrderPaymentAddedMessagePayloadBuilder withPayment(Function<PaymentReferenceBuilder, PaymentReference> builder) Payment that was added to the Order.
- Parameters:
builder
- function to build the payment value- Returns:
- Builder
-
payment
Payment that was added to the Order.
- Parameters:
payment
- value to be set- Returns:
- Builder
-
getPayment
Payment that was added to the Order.
- Returns:
- payment
-
build
builds OrderPaymentAddedMessagePayload with checking for non-null required values- Specified by:
build
in interfaceBuilder<OrderPaymentAddedMessagePayload>
- Returns:
- OrderPaymentAddedMessagePayload
-
buildUnchecked
builds OrderPaymentAddedMessagePayload without checking for non-null required values- Returns:
- OrderPaymentAddedMessagePayload
-
of
factory method for an instance of OrderPaymentAddedMessagePayloadBuilder- Returns:
- builder
-
of
create builder for OrderPaymentAddedMessagePayload instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-