Skip to content
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
- add quote interface for common fields
  • Loading branch information
cpartica committed Mar 18, 2021
commit 9644b6129a75495820fbb655fc803dff2adc39be
Original file line number Diff line number Diff line change
Expand Up @@ -165,15 +165,12 @@ enum NegotiableQuoteCommentCreatorType {
SELLER
}

type NegotiableQuote {
uid: ID!
type NegotiableQuote implements QuoteInterface {
name: String!
items: [CartItemInterface!]
# Attachment Support is dependent on headless File Upload design
# attachments: [AttachmentContent]
comments: [NegotiableQuoteComment!]
history: [NegotiableQuoteHistoryEntry!]
prices: CartPrices
buyer: NegotiableQuoteUser!
created_at: String @doc(description: "Timestamp indicating when the negotiable quote was created.")
updated_at: String @doc(description: "Timestamp indicating when the negotiable quote was updated.")
Expand Down
12 changes: 11 additions & 1 deletion design-documents/graph-ql/coverage/quote.graphqls
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,17 @@ type PlaceOrderOutput {
order: Order!
}

type Cart {
interface QuoteInterface {
uid: ID!
items: [CartItemInterface]
prices: CartPrices
}

interface QuoteItemInterface {
uid: ID!
}

type Cart implements QuoteInterface{
id: ID! @resolver(class: "\\Magento\\QuoteGraphQl\\Model\\Resolver\\MaskedCartId") @doc(description: "The ID of the cart.")
items: [CartItemInterface] @resolver(class: "\\Magento\\QuoteGraphQl\\Model\\Resolver\\CartItems")
applied_coupon: AppliedCoupon @resolver(class: "\\Magento\\QuoteGraphQl\\Model\\Resolver\\AppliedCoupon") @doc(description:"An array of coupons that have been applied to the cart") @deprecated(reason: "Use applied_coupons instead ")
Expand Down