Interface OrderSetReturnPaymentStateAction
- All Superinterfaces:
OrderUpdateAction
,ResourceUpdateAction<OrderUpdateAction>
To set a ReturnPaymentState, the Order returnInfo
must have at least one ReturnItem.
Example to create an instance using the builder pattern
OrderSetReturnPaymentStateAction orderSetReturnPaymentStateAction = OrderSetReturnPaymentStateAction.builder()
.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
New Payment status of the ReturnItem.id
of the ReturnItem to update.key
of the ReturnItem to update.of()
factory methodof
(OrderSetReturnPaymentStateAction template) factory method to create a shallow copy OrderSetReturnPaymentStateActionvoid
setPaymentState
(ReturnPaymentState paymentState) New Payment status of the ReturnItem.void
setReturnItemId
(String returnItemId) id
of the ReturnItem to update.void
setReturnItemKey
(String returnItemKey) key
of the ReturnItem to update.static 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
String getReturnItemId()id
of the ReturnItem to update. EitherreturnItemId
orreturnItemKey
is required.- Returns:
- returnItemId
-
getReturnItemKey
String getReturnItemKey()key
of the ReturnItem to update. EitherreturnItemId
orreturnItemKey
is required.- Returns:
- returnItemKey
-
getPaymentState
New Payment status of the ReturnItem.
- Returns:
- paymentState
-
setReturnItemId
id
of the ReturnItem to update. EitherreturnItemId
orreturnItemKey
is required.- Parameters:
returnItemId
- value to be set
-
setReturnItemKey
key
of the ReturnItem to update. EitherreturnItemId
orreturnItemKey
is required.- Parameters:
returnItemKey
- value to be set
-
setPaymentState
New Payment status of the ReturnItem.
- 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
-