All Release Notes

Introduced Store-based data fencing for Quotes

24 June 2024
Composable Commerce
HTTP API
Enhancement
QuotesOrdersGraphQL

We have introduced in-store endpoints for Quotes, Quote Requests, and Staged Quotes. These endpoints give access only to Quotes associated with specific Stores. In addition, we've added the Create Order in Store from Quote endpoint to the Orders API.

Changes:

  • [API] Added in-store endpoints for Quotes, Quote Requests, and Staged Quotes.
  • [API] Added Create Order in Store from Quote endpoint.
  • [API] Added optional field store to StagedQuote.
  • [GraphQL API] Changed the InStore type:
    • Added the stagedQuote, stagedQuotes, quoteRequest, quoteRequests, quote, and quotes fields to the InStore type.
  • [GraphQL API] Changed the StagedQuote type:
    • Added the storeRef and store fields to the StagedQuote type.
  • [GraphQL API] Changed the Mutation type:
    • Argument storeKey was added to Mutation.createQuote, Mutation.createQuoteRequest, Mutation.createStagedQuote, Mutation.createOrderFromQuote, Mutation.deleteQuote, Mutation.deleteQuoteRequest, Mutation.deleteStagedQuote, Mutation.updateQuote, Mutation.updateQuoteRequest, and Mutation.updateStagedQuote fields.

The following changes were introduced in terms of GraphQL SDL:

extend type InStore {
quote(
"Queries with specified ID"
id: String,
"Queries with specified key"
key: String): Quote
quoteRequest(
"Queries with specified ID"
id: String,
"Queries with specified key"
key: String): QuoteRequest
quoteRequests(where: String, sort: [String!], limit: Int, offset: Int): QuoteRequestQueryResult!
quotes(where: String, sort: [String!], limit: Int, offset: Int): QuoteQueryResult!
stagedQuote(
"Queries with specified ID"
id: String,
"Queries with specified key"
key: String): StagedQuote
stagedQuotes(where: String, sort: [String!], limit: Int, offset: Int): StagedQuoteQueryResult!
}
extend type StagedQuote {
store: Store
storeRef: KeyReference
}