Coupon
A coupon
type Coupon implements Node {
code: String!
discount: Discount!
id: UUID!
maxUsages: Int
usages: Int!
users(
first: Int
orderBy: CommonOrderInput
skip: Int
): UserConnection!
validFrom: DateTime!
validUntil: DateTime!
}
Fields
Coupon.code
● String!
non-null scalar
The code of the coupon.
Coupon.discount
● Discount!
non-null object
The discount granted by this coupon.
Coupon.id
● UUID!
non-null scalar
The ID of the node.
Coupon.maxUsages
● Int
scalar
The maximum number of times the coupon can be used.
Coupon.usages
● Int!
non-null scalar
The number of times the coupon has been used.
Coupon.users
● UserConnection!
non-null object
Get all users who claimed this coupon.
Coupon.users.first
●Int
scalarNumber of items to return
Coupon.users.orderBy
● CommonOrderInput
input
Ordering
Coupon.users.skip
● Int
scalar
Number of items to skip
Coupon.validFrom
● DateTime!
non-null scalar
The date and time from which the coupon is valid.
Coupon.validUntil
● DateTime!
non-null scalar
The date and time until which the coupon is valid.
Interfaces
Node
interface
An object with an ID.
Returned By
coupon
query ● createCoupon
mutation ● registerCoupon
mutation ● updateCoupon
mutation
Member Of
CouponConnection
object