Skip to content

Commit

Permalink
Merge pull request #2469 from graphcommerce-org/fix/magento-245
Browse files Browse the repository at this point in the history
Magento 2.4.6-p7 and lower: Solve a schema incompatibility for PlaceOrderError type on the PlaceOrderOutput.
  • Loading branch information
paales authored Dec 30, 2024
2 parents 12db194 + 3e5ee65 commit 4e6beb1
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/few-balloons-lie.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@graphcommerce/magento-graphql': patch
---

Magento 2.4.6-p7 and lower: Solve a schema incompatibility for PlaceOrderError type on the PlaceOrderOutput.
22 changes: 22 additions & 0 deletions packages/magento-graphql/schema-247/Mutation-placeOrder.graphqls
Original file line number Diff line number Diff line change
@@ -1,3 +1,25 @@
"""
An error encountered while placing an order.
"""
type PlaceOrderError {
"""
An error code that is specific to place order.
"""
code: PlaceOrderErrorCodes!
"""
A localized error message.
"""
message: String!
}

enum PlaceOrderErrorCodes {
CART_NOT_FOUND
CART_NOT_ACTIVE
GUEST_EMAIL_MISSING
UNABLE_TO_PLACE_ORDER
UNDEFINED
}

type PlaceOrderOutput {
"""
The ID of the order.
Expand Down

0 comments on commit 4e6beb1

Please sign in to comment.