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

Commit 964edbf

Browse files
authored
applied_coupon field is deprecated (#6804)
* applied_coupon field is deprecated * Major changes
1 parent 7330670 commit 964edbf

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

src/guides/v2.3/graphql/mutations/apply-coupon.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ mutation {
3232
}
3333
quantity
3434
}
35-
applied_coupon {
35+
applied_coupons {
3636
code
3737
}
3838
prices {
@@ -73,7 +73,7 @@ mutation {
7373
"quantity": 1
7474
}
7575
],
76-
"applied_coupon": {
76+
"applied_coupons": {
7777
"code": "H20"
7878
},
7979
"prices": {

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ mutation {
3030
}
3131
quantity
3232
}
33-
applied_coupon {
33+
applied_coupons {
3434
code
3535
}
3636
prices {
@@ -65,7 +65,7 @@ mutation {
6565
"quantity": 1
6666
}
6767
],
68-
"applied_coupon": null,
68+
"applied_coupons": null,
6969
"prices": {
7070
"grand_total": {
7171
"value": 39,

src/guides/v2.3/graphql/tutorials/checkout/checkout-coupon.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ mutation {
3434
}
3535
) {
3636
cart {
37-
applied_coupon {
37+
applied_coupons {
3838
code
3939
}
4040
}
@@ -49,7 +49,7 @@ mutation {
4949
"data": {
5050
"applyCouponToCart": {
5151
"cart": {
52-
"applied_coupon": {
52+
"applied_coupons": {
5353
"code": "{ COUPON_CODE }"
5454
}
5555
}
@@ -69,7 +69,7 @@ For logged-in customers, send the customer's authorization token in the `Authori
6969
mutation {
7070
removeCouponFromCart(input: { cart_id: "{ CART_ID }" }) {
7171
cart {
72-
applied_coupon {
72+
applied_coupons {
7373
code
7474
}
7575
}
@@ -84,7 +84,7 @@ mutation {
8484
"data": {
8585
"removeCouponFromCart": {
8686
"cart": {
87-
"applied_coupon": {
87+
"applied_coupons": {
8888
"applied_coupon": null
8989
}
9090
}

0 commit comments

Comments
 (0)