WashCode

WashCode

A free wash code that can be redeemed for a wash package

Kind: Object

Fields

Field Type Description
code String! The code string
createdAt DateTime! Timestamp when the wash code was created
expiresAt DateTime When this code expires (null if it never expires)
id ID! Unique identifier for the wash code
isActive Boolean! Whether this code can currently be redeemed (not expired and under its redemption limit)
maxRedemptions Int Maximum number of times this code can be redeemed (null if unlimited)
redemptionsCount Int! Total count of redemptions for this wash code
redemptionsRemaining Int Number of redemptions remaining (null if unlimited)
updatedAt DateTime! Timestamp when the wash code was last updated
washCodeGroup WashCodeGroup! The wash code group this code belongs to
washCodeGroupId ID! The wash code group this code belongs to
washPackage WashPackage! The wash package this code is redeemable for
washPackageId ID! The wash package this code is redeemable for

Definition

"""A free wash code that can be redeemed for a wash package"""
type WashCode {
  """The code string"""
  code: String!
  """Timestamp when the wash code was created"""
  createdAt: DateTime!
  """When this code expires (null if it never expires)"""
  expiresAt: DateTime
  """Unique identifier for the wash code"""
  id: ID!
  """
  Whether this code can currently be redeemed (not expired and under its redemption limit)
  """
  isActive: Boolean!
  """Maximum number of times this code can be redeemed (null if unlimited)"""
  maxRedemptions: Int
  """Total count of redemptions for this wash code"""
  redemptionsCount: Int!
  """Number of redemptions remaining (null if unlimited)"""
  redemptionsRemaining: Int
  """Timestamp when the wash code was last updated"""
  updatedAt: DateTime!
  """The wash code group this code belongs to"""
  washCodeGroup: WashCodeGroup!
  """The wash code group this code belongs to"""
  washCodeGroupId: ID!
  """The wash package this code is redeemable for"""
  washPackage: WashPackage!
  """The wash package this code is redeemable for"""
  washPackageId: ID!
}