diff --git a/.changeset/few-balloons-lie.md b/.changeset/few-balloons-lie.md new file mode 100644 index 0000000000..efbc3fe62d --- /dev/null +++ b/.changeset/few-balloons-lie.md @@ -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. diff --git a/packages/magento-graphql/schema-247/Mutation-placeOrder.graphqls b/packages/magento-graphql/schema-247/Mutation-placeOrder.graphqls index 6a91189b95..7a9d3d621e 100644 --- a/packages/magento-graphql/schema-247/Mutation-placeOrder.graphqls +++ b/packages/magento-graphql/schema-247/Mutation-placeOrder.graphqls @@ -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.