CreateRegistrationDiscountCodeInput
Defines the input for creating a registration discount code.
input CreateRegistrationDiscountCodeInput {
applicability: RegistrationDiscountCodeApplicabilityInput!
availableFrom: DateTime
availableTo: DateTime
code: String!
discountAmounts: [MoneyInput!]
discountPercentage: NonNegativeFloat
discountType: DiscountType!
eventId: ID!
name: String!
}
Fields
CreateRegistrationDiscountCodeInput.applicability ● RegistrationDiscountCodeApplicabilityInput! non-null input
Defines which registration types this discount code can be applied to.
CreateRegistrationDiscountCodeInput.availableFrom ● DateTime scalar
The date and time from when the discount code can be used. Optional.
CreateRegistrationDiscountCodeInput.availableTo ● DateTime scalar
The date and time until when the discount code can be used. Optional.
CreateRegistrationDiscountCodeInput.code ● String! non-null scalar
The code that attendees can specify during registration to obtain a discount.
Codes must be unique within an event.
CreateRegistrationDiscountCodeInput.discountAmounts ● [MoneyInput!] list input
The amounts the discount code gives access to, expressed in different currencies. Optional.
This must be set if discountType is set to SET_AMOUNT_OFF_FEE.
The list must contain at least one item that uses the event's default currency.
CreateRegistrationDiscountCodeInput.discountPercentage ● NonNegativeFloat scalar
The percentage, expressed between 0 and 100, that the discount code gives access to. Optional.
This must be set if discountType is set to PERCENTAGE_AMOUNT_OFF_FEE.
CreateRegistrationDiscountCodeInput.discountType ● DiscountType! non-null enum
The type of discount the discount code gives access to.
If this is set to SET_AMOUNT_OFF_FEE, then the discountAmounts input value must be set.
If this is set to PERCENTAGE_OFF_FEE, then the discountPercentage input value must be set.
CreateRegistrationDiscountCodeInput.eventId ● ID! non-null scalar
The identifier of the event to create the registration discount code in.
CreateRegistrationDiscountCodeInput.name ● String! non-null scalar
The name of the discount code.
Discount code names must be unique with an event.
Member Of
createRegistrationDiscountCode mutation