Skip to main content

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!
inventory: DiscountCodeInventoryInput
name: String!
onlineDescription: String
onlineGroupRegistrationRules: OnlineGroupRegistrationRulesInput
unavailableMessage: 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.

UpdateRegistrationDiscountCodeInput.discountCodeId ● ID! non-null scalar​

The identifier of the discount code to update.

UpdateRegistrationDiscountCodeInput.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_OFF_FEE.

UpdateRegistrationDiscountCodeInput.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.

UpdateRegistrationDiscountCodeInput.eventId ● ID! non-null scalar​

The identifier of the event to update the registration discount code in.

UpdateRegistrationDiscountCodeInput.inventory ● DiscountCodeInventoryInput input​

The inventory for this discount code. Optional.

UpdateRegistrationDiscountCodeInput.name ● String! non-null scalar​

The name of the discount code.

Discount code names must be unique with an event.

UpdateRegistrationDiscountCodeInput.onlineDescription ● String scalar​

A description of the discount code displayed online. Optional.

UpdateRegistrationDiscountCodeInput.onlineGroupRegistrationRules ● OnlineGroupRegistrationRulesInput input​

Defines how this discount code applies to online group registrations. Optional.

Rules:

  • If omitted, the existing online group registration rules of the discount code will not be changed.
  • When a value is specified, the discount code's online group registration rules will be updated.
  • When set to null, the discount code will be reset to DO_NOT_APPLY_TO_GROUPS with no group size restriction.

UpdateRegistrationDiscountCodeInput.unavailableMessage ● String scalar​

A message displayed when the discount code is unavailable. Optional.

Member Of​

updateRegistrationDiscountCode mutation