feat: apply coupon code for order

:%s
This commit is contained in:
lytrankieio123
2021-10-19 18:48:10 +07:00
parent 9603f0dc6c
commit 693935a480
14 changed files with 229 additions and 23 deletions

View File

@@ -0,0 +1,21 @@
export const applyCouponCodeMutation = /* GraphQL */ `
mutation applyCouponCode($couponCode: String!) {
applyCouponCode(couponCode: $couponCode) {
__typename
... on Order {
id
createdAt
updatedAt
discounts {
type
amount
amountWithTax
}
}
... on ErrorResult {
errorCode
message
}
}
}
`