AccommodationDiscountCode
Discount codes can be defined by event organizers and communicated to attendees who can use them during accommodation booking to get a discount on the standard fee.
type AccommodationDiscountCode {
availableFrom: DateTime
availableTo: DateTime
code: String!
createdAt: DateTime!
createdBy: String
discount: Discount!
discountType: AccommodationDiscountType!
id: ID!
inventory: Inventory!
lastModifiedAt: DateTime!
lastModifiedBy: String
name: String!
onlineDescription: String
unavailableMessage: String
}
Fields
AccommodationDiscountCode.availableFrom ● DateTime scalar
The date and time from when the discount code can be used. Optional.
AccommodationDiscountCode.availableTo ● DateTime scalar
The date and time until when the discount code can be used. Optional.
AccommodationDiscountCode.code ● String! non-null scalar
The code that attendees can specify during accommodation booking to obtain a discount.
Codes must be unique within an event.
AccommodationDiscountCode.createdAt ● DateTime! non-null scalar
The date and time the record was created.
AccommodationDiscountCode.createdBy ● String scalar
UTF-8 string value that represents the username of the user who created the record. Optional.
AccommodationDiscountCode.discount ● Discount! non-null union
The details of the discount the discount code gives access to.
Value of discountType | Type of discount |
|---|---|
SET_AMOUNT_OFF_FEE | SetAmountOffFeeDiscount |
SET_AMOUNT_OFF_PER_ROOM | SetAmountOffFeeDiscount |
SET_AMOUNT_OFF_PER_NIGHT | SetAmountOffFeeDiscount |
PERCENTAGE_OFF_FEE | PercentageOffFeeDiscount |
AccommodationDiscountCode.discountType ● AccommodationDiscountType! non-null enum
The type of discount the discount code gives access to.
AccommodationDiscountCode.id ● ID! non-null scalar
The unique identifier of the discount code.
AccommodationDiscountCode.inventory ● Inventory! non-null object
The inventory for this discount code.
AccommodationDiscountCode.lastModifiedAt ● DateTime! non-null scalar
The date and time the record was last modified.
AccommodationDiscountCode.lastModifiedBy ● String scalar
UTF-8 string value that represents the username of the user who last modified the record. Optional.
AccommodationDiscountCode.name ● String! non-null scalar
The name of the discount code.
Discount code names must be unique within an event.
AccommodationDiscountCode.onlineDescription ● String scalar
A description of the discount code displayed online. Optional.
AccommodationDiscountCode.unavailableMessage ● String scalar
A message displayed when the discount code is unavailable. Optional.
Member Of
AccommodationSetup object ● CreateAccommodationDiscountCodePayload object ● UpdateAccommodationDiscountCodePayload object