mirror of
https://github.com/vercel/commerce.git
synced 2025-07-26 19:51:23 +00:00
✨ feat: apply coupon code for order
:%s
This commit is contained in:
@@ -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
|
||||
}
|
||||
}
|
||||
}
|
||||
`
|
Reference in New Issue
Block a user