UpdateRegistrationDiscountCodeInput
Defines the input for updating a registration discount code.
input UpdateRegistrationDiscountCodeInput {
applicability: RegistrationDiscountCodeApplicabilityInput!
availableFrom: DateTime
availableTo: DateTime
code: String!
discountAmounts: [MoneyInput!]
discountCodeId: ID!
discountPercentage: NonNegativeFloat
discountType: DiscountType!
eventId: ID!
name: String!
}
Fields
UpdateRegistrationDiscountCodeInput.applicability
● RegistrationDiscountCodeApplicabilityInput!
non-null input
Defines which registration types this discount code can be applied to.
UpdateRegistrationDiscountCodeInput.availableFrom
● DateTime
scalar
The date and time from when the discount code can be used. Optional.
UpdateRegistrationDiscountCodeInput.availableTo
● DateTime
scalar
The date and time until when the discount code can be used. Optional.
UpdateRegistrationDiscountCodeInput.code
● String!
non-null scalar
The code that attendees can specify during registration to obtain a discount.
Codes must be unique within an event.
UpdateRegistrationDiscountCodeInput.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.