Interface OrderSetReturnPaymentStateAction
- All Superinterfaces:
OrderUpdateAction
,ResourceUpdateAction<OrderUpdateAction>
- All Known Implementing Classes:
OrderSetReturnPaymentStateActionImpl
OrderSetReturnPaymentStateAction
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
OrderSetReturnPaymentStateAction orderSetReturnPaymentStateAction = OrderSetReturnPaymentStateAction.builder()
.returnItemId("{returnItemId}")
.paymentState(ReturnPaymentState.NON_REFUNDABLE)
.build()
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
discriminator value for OrderSetReturnPaymentStateAction -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
builder factory method for OrderSetReturnPaymentStateActionbuilder
(OrderSetReturnPaymentStateAction template) create builder for OrderSetReturnPaymentStateAction instancedeepCopy
(OrderSetReturnPaymentStateAction template) factory method to create a deep copy of OrderSetReturnPaymentStateAction@NotNull ReturnPaymentState
@NotNull String
of()
factory methodof
(OrderSetReturnPaymentStateAction template) factory method to create a shallow copy OrderSetReturnPaymentStateActionvoid
setPaymentState
(ReturnPaymentState paymentState) set paymentStatevoid
setReturnItemId
(String returnItemId) set returnItemIdstatic com.fasterxml.jackson.core.type.TypeReference<OrderSetReturnPaymentStateAction>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
accessor map functionMethods inherited from interface com.commercetools.api.models.order.OrderUpdateAction
getAction, withOrderUpdateAction
Methods inherited from interface com.commercetools.api.models.ResourceUpdateAction
get
-
Field Details
-
SET_RETURN_PAYMENT_STATE
discriminator value for OrderSetReturnPaymentStateAction- See Also:
-
-
Method Details
-
getReturnItemId
- Returns:
- returnItemId
-
getPaymentState
- Returns:
- paymentState
-
setReturnItemId
set returnItemId- Parameters:
returnItemId
- value to be set
-
setPaymentState
set paymentState- Parameters:
paymentState
- value to be set
-
of
factory method- Returns:
- instance of OrderSetReturnPaymentStateAction
-
of
factory method to create a shallow copy OrderSetReturnPaymentStateAction- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
@Nullable static OrderSetReturnPaymentStateAction deepCopy(@Nullable OrderSetReturnPaymentStateAction template) factory method to create a deep copy of OrderSetReturnPaymentStateAction- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for OrderSetReturnPaymentStateAction- Returns:
- builder
-
builder
create builder for OrderSetReturnPaymentStateAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withOrderSetReturnPaymentStateAction
default <T> T withOrderSetReturnPaymentStateAction(Function<OrderSetReturnPaymentStateAction, T> helper) accessor map function- Type Parameters:
T
- mapped type- Parameters:
helper
- function to map the object- Returns:
- mapped value
-
typeReference
static com.fasterxml.jackson.core.type.TypeReference<OrderSetReturnPaymentStateAction> typeReference()gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-