mirror of
https://github.com/vercel/commerce.git
synced 2025-07-23 04:36:49 +00:00
22 lines
375 B
TypeScript
22 lines
375 B
TypeScript
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
|
|
}
|
|
}
|
|
}
|
|
`
|