24 October 2022
QuotesOrdersGraphQL
You can now enable automatic state transitions between various pre-defined states for Quote Requests, Staged Quotes, and Quotes. In particular:
- When creating a Staged Quote you can transition the referenced Quote Request to the 
Acceptedstate using thequoteRequestStateToAcceptedfield on StagedQuoteDraft. - When creating a Quote you can transition the referenced Staged Quote to the 
Sentstate using thestagedQuoteStateToSentfield on QuoteDraft. - When creating an Order you can transition the referenced Quote to the 
Acceptedstate using thequoteStateToAcceptedfield on OrderFromQuoteDraft. The same functionality is available on the My Order endpoint using MyOrderFromQuoteDraft. 
This simplifies the management of Quote states by eliminating the need for an additional API call to transition the state.
Changes:
- [API] Added optional field 
stagedQuoteStateToSentto QuoteDraft - [API] Added optional field 
quoteRequestStateToAcceptedto StagedQuoteDraft - [API] Added optional field 
quoteStateToAcceptedto OrderFromQuoteDraft - [API] Added optional field 
quoteStateToAcceptedto MyOrderFromQuoteDraft - [GraphQL API] Changed the 
QuoteDrafttype:- Input field 
stagedQuoteStateToSentwas added toQuoteDrafttype 
 - Input field 
 - [GraphQL API] Changed the 
StagedQuoteDrafttype:- Input field 
quoteRequestStateToAcceptedwas added toStagedQuoteDrafttype 
 - Input field 
 - [GraphQL API] Changed the 
OrderQuoteCommandtype:- Input field 
quoteStateToAcceptedwas added toOrderQuoteCommandtype 
 - Input field 
 - [GraphQL API] Changed the 
OrderMyQuoteCommandtype:- Input field 
quoteStateToAcceptedwas added toOrderMyQuoteCommandtype 
 - Input field 
 
The following changes were introduced in terms of GraphQL SDL:
extend input QuoteDraft {
  stagedQuoteStateToSent: Boolean = false
}
extend input StagedQuoteDraft {
  quoteRequestStateToAccepted: Boolean = false
}
extend input OrderQuoteCommand {
  quoteStateToAccepted: Boolean = false
}
extend input OrderMyQuoteCommand {
  quoteStateToAccepted: Boolean = false
}