Skip to main content

UpdateCeContactStoreFunctionDiscountCodeInput

Defines the input for updating a continuing education function discount code.

input UpdateCeContactStoreFunctionDiscountCodeInput {
applicability: FunctionDiscountCodeApplicabilityInput!
availableFrom: DateTime
availableTo: DateTime
ceContactStoreId: ID!
code: String!
discountAmounts: [MoneyInput!]
discountCodeId: ID!
discountPercentage: NonNegativeFloat
discountType: DiscountType!
name: String!
}

Fields

UpdateCeContactStoreFunctionDiscountCodeInput.applicability ● FunctionDiscountCodeApplicabilityInput! non-null input

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

UpdateCeContactStoreFunctionDiscountCodeInput.availableFrom ● DateTime scalar

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

UpdateCeContactStoreFunctionDiscountCodeInput.availableTo ● DateTime scalar

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

UpdateCeContactStoreFunctionDiscountCodeInput.ceContactStoreId ● ID! non-null scalar

The identifier of the continuing education contact store to update the function discount code in.

UpdateCeContactStoreFunctionDiscountCodeInput.code ● String! non-null scalar

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

Codes must be unique within a continuing education contact store.

UpdateCeContactStoreFunctionDiscountCodeInput.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 continuing education contact store's default currency.

UpdateCeContactStoreFunctionDiscountCodeInput.discountCodeId ● ID! non-null scalar

The identifier of the discount code to update.

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

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

UpdateCeContactStoreFunctionDiscountCodeInput.name ● String! non-null scalar

The name of the discount code.

Discount code names must be unique with a continuing education contact store.

Member Of

updateCeContactStoreFunctionDiscountCode mutation