Class OrderSetReturnPaymentStateActionBuilder
java.lang.Object
com.commercetools.api.models.order.OrderSetReturnPaymentStateActionBuilder
- All Implemented Interfaces:
Builder<OrderSetReturnPaymentStateAction>
public class OrderSetReturnPaymentStateActionBuilder
extends Object
implements Builder<OrderSetReturnPaymentStateAction>
OrderSetReturnPaymentStateActionBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
OrderSetReturnPaymentStateAction orderSetReturnPaymentStateAction = OrderSetReturnPaymentStateAction.builder()
.paymentState(ReturnPaymentState.NON_REFUNDABLE)
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds OrderSetReturnPaymentStateAction with checking for non-null required valuesbuilds OrderSetReturnPaymentStateAction without checking for non-null required valuesNew Payment status of the ReturnItem.id
of the ReturnItem to update.key
of the ReturnItem to update.of()
factory method for an instance of OrderSetReturnPaymentStateActionBuilderof
(OrderSetReturnPaymentStateAction template) create builder for OrderSetReturnPaymentStateAction instancepaymentState
(ReturnPaymentState paymentState) New Payment status of the ReturnItem.returnItemId
(String returnItemId) id
of the ReturnItem to update.returnItemKey
(String returnItemKey) key
of the ReturnItem to update.
-
Constructor Details
-
OrderSetReturnPaymentStateActionBuilder
public OrderSetReturnPaymentStateActionBuilder()
-
-
Method Details
-
returnItemId
id
of the ReturnItem to update. EitherreturnItemId
orreturnItemKey
is required.- Parameters:
returnItemId
- value to be set- Returns:
- Builder
-
returnItemKey
key
of the ReturnItem to update. EitherreturnItemId
orreturnItemKey
is required.- Parameters:
returnItemKey
- value to be set- Returns:
- Builder
-
paymentState
New Payment status of the ReturnItem.
- Parameters:
paymentState
- value to be set- Returns:
- Builder
-
getReturnItemId
id
of the ReturnItem to update. EitherreturnItemId
orreturnItemKey
is required.- Returns:
- returnItemId
-
getReturnItemKey
key
of the ReturnItem to update. EitherreturnItemId
orreturnItemKey
is required.- Returns:
- returnItemKey
-
getPaymentState
New Payment status of the ReturnItem.
- Returns:
- paymentState
-
build
builds OrderSetReturnPaymentStateAction with checking for non-null required values- Specified by:
build
in interfaceBuilder<OrderSetReturnPaymentStateAction>
- Returns:
- OrderSetReturnPaymentStateAction
-
buildUnchecked
builds OrderSetReturnPaymentStateAction without checking for non-null required values- Returns:
- OrderSetReturnPaymentStateAction
-
of
factory method for an instance of OrderSetReturnPaymentStateActionBuilder- Returns:
- builder
-
of
create builder for OrderSetReturnPaymentStateAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-