Skip to main content

UpdateCourseDiscountCodeInput

Defines the input for updating a course discount code.

input UpdateCourseDiscountCodeInput {
applicability: CourseDiscountCodeApplicabilityInput!
availableFrom: DateTime
availableTo: DateTime
code: String!
discountAmounts: [MoneyInput!]
discountCodeId: ID!
discountPercentage: NonNegativeFloat
discountType: DiscountType!
eventId: ID!
inventory: DiscountCodeInventoryInput
name: String!
onlineDescription: String
unavailableMessage: String
}

Fields

UpdateCourseDiscountCodeInput.applicability ● CourseDiscountCodeApplicabilityInput! non-null input

Defines which course fee types this discount code can be applied to.

UpdateCourseDiscountCodeInput.availableFrom ● DateTime scalar

The date and time from when the discount code can be used. Optional.

UpdateCourseDiscountCodeInput.availableTo ● DateTime scalar

The date and time until when the discount code can be used. Optional.

UpdateCourseDiscountCodeInput.code ● String! non-null scalar

The code that attendees can specify during course registration to obtain a discount.

Codes must be unique within an event.

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

UpdateCourseDiscountCodeInput.discountCodeId ● ID! non-null scalar

The identifier of the course discount code to update.

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

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

UpdateCourseDiscountCodeInput.eventId ● ID! non-null scalar

The identifier of the event the course discount code belongs to.

UpdateCourseDiscountCodeInput.inventory ● DiscountCodeInventoryInput input

The inventory for this discount code. Optional.

UpdateCourseDiscountCodeInput.name ● String! non-null scalar

The name of the discount code.

Discount code names must be unique within an event.

UpdateCourseDiscountCodeInput.onlineDescription ● String scalar

A description of the discount code displayed online. Optional.

UpdateCourseDiscountCodeInput.unavailableMessage ● String scalar

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

Member Of

updateCourseDiscountCode mutation