Package com.commercetools.api.models.me
Interface MyQuoteChangeMyQuoteStateAction
- All Superinterfaces:
MyQuoteUpdateAction,ResourceUpdateAction<MyQuoteUpdateAction>
When accepting, declining, or renegotiating B2B Quotes, the Customer must have the AcceptMyQuotes, DeclineMyQuotes, or RenegotiateMyQuotes Permission, respectively. If the required Permission is missing, an AssociateMissingPermission error is returned.
Example to create an instance using the builder pattern
MyQuoteChangeMyQuoteStateAction myQuoteChangeMyQuoteStateAction = MyQuoteChangeMyQuoteStateAction.builder()
.quoteState(MyQuoteState.DECLINED)
.build()
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringdiscriminator value for MyQuoteChangeMyQuoteStateAction -
Method Summary
Modifier and TypeMethodDescriptionbuilder()builder factory method for MyQuoteChangeMyQuoteStateActionbuilder(MyQuoteChangeMyQuoteStateAction template) create builder for MyQuoteChangeMyQuoteStateAction instancecopyDeep()deepCopy(MyQuoteChangeMyQuoteStateAction template) factory method to create a deep copy of MyQuoteChangeMyQuoteStateAction@NotNull MyQuoteStateNew state to be set for the Quote.of()factory methodof(MyQuoteChangeMyQuoteStateAction template) factory method to create a shallow copy MyQuoteChangeMyQuoteStateActionvoidsetQuoteState(MyQuoteState quoteState) New state to be set for the Quote.static com.fasterxml.jackson.core.type.TypeReference<MyQuoteChangeMyQuoteStateAction>gives a TypeReference for usage with Jackson DataBinddefault <T> Taccessor map functionMethods inherited from interface com.commercetools.api.models.me.MyQuoteUpdateAction
getAction, withMyQuoteUpdateActionMethods inherited from interface com.commercetools.api.models.ResourceUpdateAction
get
-
Field Details
-
CHANGE_MY_QUOTE_STATE
discriminator value for MyQuoteChangeMyQuoteStateAction- See Also:
-
-
Method Details
-
getQuoteState
New state to be set for the Quote.
- Returns:
- quoteState
-
setQuoteState
New state to be set for the Quote.
- Parameters:
quoteState- value to be set
-
of
factory method- Returns:
- instance of MyQuoteChangeMyQuoteStateAction
-
of
factory method to create a shallow copy MyQuoteChangeMyQuoteStateAction- Parameters:
template- instance to be copied- Returns:
- copy instance
-
copyDeep
MyQuoteChangeMyQuoteStateAction copyDeep()- Specified by:
copyDeepin interfaceMyQuoteUpdateAction
-
deepCopy
@Nullable static MyQuoteChangeMyQuoteStateAction deepCopy(@Nullable MyQuoteChangeMyQuoteStateAction template) factory method to create a deep copy of MyQuoteChangeMyQuoteStateAction- Parameters:
template- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for MyQuoteChangeMyQuoteStateAction- Returns:
- builder
-
builder
create builder for MyQuoteChangeMyQuoteStateAction instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-
withMyQuoteChangeMyQuoteStateAction
default <T> T withMyQuoteChangeMyQuoteStateAction(Function<MyQuoteChangeMyQuoteStateAction, 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<MyQuoteChangeMyQuoteStateAction> typeReference()gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-