Interface QuoteRequestChangeQuoteRequestStateAction
- All Superinterfaces:
QuoteRequestUpdateAction
,ResourceUpdateAction<QuoteRequestUpdateAction>
Transitions the Quote Request to a different state. A Buyer is only allowed to cancel a Quote Request when it is in Submitted
state.
Example to create an instance using the builder pattern
QuoteRequestChangeQuoteRequestStateAction quoteRequestChangeQuoteRequestStateAction = QuoteRequestChangeQuoteRequestStateAction.builder()
.quoteRequestState(QuoteRequestState.SUBMITTED)
.build()
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
discriminator value for QuoteRequestChangeQuoteRequestStateAction -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
builder factory method for QuoteRequestChangeQuoteRequestStateActioncreate builder for QuoteRequestChangeQuoteRequestStateAction instancefactory method to create a deep copy of QuoteRequestChangeQuoteRequestStateAction@NotNull QuoteRequestState
New state to be set for the Quote Request.of()
factory methodof
(QuoteRequestChangeQuoteRequestStateAction template) factory method to create a shallow copy QuoteRequestChangeQuoteRequestStateActionvoid
setQuoteRequestState
(QuoteRequestState quoteRequestState) New state to be set for the Quote Request.static com.fasterxml.jackson.core.type.TypeReference<QuoteRequestChangeQuoteRequestStateAction>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
withQuoteRequestChangeQuoteRequestStateAction
(Function<QuoteRequestChangeQuoteRequestStateAction, T> helper) accessor map functionMethods inherited from interface com.commercetools.api.models.quote_request.QuoteRequestUpdateAction
getAction, withQuoteRequestUpdateAction
Methods inherited from interface com.commercetools.api.models.ResourceUpdateAction
get
-
Field Details
-
CHANGE_QUOTE_REQUEST_STATE
discriminator value for QuoteRequestChangeQuoteRequestStateAction- See Also:
-
-
Method Details
-
getQuoteRequestState
New state to be set for the Quote Request.
- Returns:
- quoteRequestState
-
setQuoteRequestState
New state to be set for the Quote Request.
- Parameters:
quoteRequestState
- value to be set
-
of
factory method- Returns:
- instance of QuoteRequestChangeQuoteRequestStateAction
-
of
static QuoteRequestChangeQuoteRequestStateAction of(QuoteRequestChangeQuoteRequestStateAction template) factory method to create a shallow copy QuoteRequestChangeQuoteRequestStateAction- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
@Nullable static QuoteRequestChangeQuoteRequestStateAction deepCopy(@Nullable QuoteRequestChangeQuoteRequestStateAction template) factory method to create a deep copy of QuoteRequestChangeQuoteRequestStateAction- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for QuoteRequestChangeQuoteRequestStateAction- Returns:
- builder
-
builder
static QuoteRequestChangeQuoteRequestStateActionBuilder builder(QuoteRequestChangeQuoteRequestStateAction template) create builder for QuoteRequestChangeQuoteRequestStateAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withQuoteRequestChangeQuoteRequestStateAction
default <T> T withQuoteRequestChangeQuoteRequestStateAction(Function<QuoteRequestChangeQuoteRequestStateAction, 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<QuoteRequestChangeQuoteRequestStateAction> typeReference()gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-