Skip to content
This repository was archived by the owner on Nov 19, 2024. It is now read-only.

Commit 0edbf2e

Browse files
sathiyaaaBarny Shergold
andauthored
giftcard errors coverage (#8413)
* giftcard errors coverage * Apply suggestions from code review Co-authored-by: Barny Shergold <barny.shergold@vaimo.com> Co-authored-by: Barny Shergold <barny.shergold@vaimo.com>
1 parent 413025a commit 0edbf2e

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
lines changed

src/guides/v2.3/graphql/mutations/remove-giftcard.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,3 +77,10 @@ Attribute | Data Type | Description
7777
{% include graphql/cart-object.md %}
7878

7979
[Cart query output]({{page.baseurl}}/graphql/queries/cart.html#cart-output) provides more information about the `Cart` object.
80+
81+
## Errors
82+
83+
Error | Description
84+
--- | ---
85+
`Could not find a cart with ID \"xxxxx\"` | The ID provided in the `cart_id` field is invalid or the cart does not exist for the customer.
86+
`The gift card couldn't be deleted from the quote.` | The value provided in the `gift_card_code` field is invalid or the gift card with that specific ID does not exist in the cart.

src/guides/v2.4/graphql/mutations/remove-giftcard.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,3 +69,10 @@ Attribute | Data Type | Description
6969
{% include graphql/cart-object-24.md %}
7070

7171
[Cart query output]({{page.baseurl}}/graphql/queries/cart.html#cart-output) provides more information about the `Cart` object.
72+
73+
## Errors
74+
75+
Error | Description
76+
--- | ---
77+
`Could not find a cart with ID \"xxxxx\"` | The ID provided in the `cart_id` field is invalid or the cart does not exist for the customer.
78+
`The gift card couldn't be deleted from the quote.` | The value provided in the `gift_card_code` field is invalid or the gift card with that specific ID does not exist in the cart.

0 commit comments

Comments
 (0)