Class OrderRemovePaymentActionBuilder
java.lang.Object
com.commercetools.api.models.order.OrderRemovePaymentActionBuilder
- All Implemented Interfaces:
Builder<OrderRemovePaymentAction>
public class OrderRemovePaymentActionBuilder
extends Object
implements Builder<OrderRemovePaymentAction>
OrderRemovePaymentActionBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
OrderRemovePaymentAction orderRemovePaymentAction = OrderRemovePaymentAction.builder()
.payment(paymentBuilder -> paymentBuilder)
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds OrderRemovePaymentAction with checking for non-null required valuesbuilds OrderRemovePaymentAction without checking for non-null required valuesPayment to remove from the PaymentInfo.of()
factory method for an instance of OrderRemovePaymentActionBuilderof
(OrderRemovePaymentAction template) create builder for OrderRemovePaymentAction instancepayment
(PaymentResourceIdentifier payment) Payment to remove from the PaymentInfo.Payment to remove from the PaymentInfo.Payment to remove from the PaymentInfo.
-
Constructor Details
-
OrderRemovePaymentActionBuilder
public OrderRemovePaymentActionBuilder()
-
-
Method Details
-
payment
public OrderRemovePaymentActionBuilder payment(Function<PaymentResourceIdentifierBuilder, PaymentResourceIdentifierBuilder> builder) Payment to remove from the PaymentInfo.
- Parameters:
builder
- function to build the payment value- Returns:
- Builder
-
withPayment
public OrderRemovePaymentActionBuilder withPayment(Function<PaymentResourceIdentifierBuilder, PaymentResourceIdentifier> builder) Payment to remove from the PaymentInfo.
- Parameters:
builder
- function to build the payment value- Returns:
- Builder
-
payment
Payment to remove from the PaymentInfo.
- Parameters:
payment
- value to be set- Returns:
- Builder
-
getPayment
Payment to remove from the PaymentInfo.
- Returns:
- payment
-
build
builds OrderRemovePaymentAction with checking for non-null required values- Specified by:
build
in interfaceBuilder<OrderRemovePaymentAction>
- Returns:
- OrderRemovePaymentAction
-
buildUnchecked
builds OrderRemovePaymentAction without checking for non-null required values- Returns:
- OrderRemovePaymentAction
-
of
factory method for an instance of OrderRemovePaymentActionBuilder- Returns:
- builder
-
of
create builder for OrderRemovePaymentAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-