UpdateDiscountInput
Input for the updateDiscount mutation.
input UpdateDiscountInput {
addedDiscountAppliesToCategoryIds: [UUID!]
addedDiscountAppliesToProductIds: [UUID!]
addedDiscountAppliesToProductVariantIds: [UUID!]
id: UUID!
maxUsagesPerUser: Int
minOrderAmount: Int
removedDiscountAppliesToCategoryIds: [UUID!]
removedDiscountAppliesToProductIds: [UUID!]
removedDiscountAppliesToProductVariantIds: [UUID!]
validFrom: DateTime
validUntil: DateTime
}
Fields
UpdateDiscountInput.addedDiscountAppliesToCategoryIds ● [UUID!] list scalar
Added category ids to which the discount applies.
UpdateDiscountInput.addedDiscountAppliesToProductIds ● [UUID!] list scalar
Added product ids to which the discount applies.
UpdateDiscountInput.addedDiscountAppliesToProductVariantIds ● [UUID!] list scalar
Added product variant ids to which the discount applies.
UpdateDiscountInput.id ● UUID! non-null scalar
The id of the discount to update.
UpdateDiscountInput.maxUsagesPerUser ● Int scalar
The discount applied to the order item.
UpdateDiscountInput.minOrderAmount ● Int scalar
The minimum order amount required to use this discount.
UpdateDiscountInput.removedDiscountAppliesToCategoryIds ● [UUID!] list scalar
Removed category ids to which the discount applies.
UpdateDiscountInput.removedDiscountAppliesToProductIds ● [UUID!] list scalar
Removed product ids to which the discount applies.
UpdateDiscountInput.removedDiscountAppliesToProductVariantIds ● [UUID!] list scalar
Removed product variant ids to which the discount applies.
UpdateDiscountInput.validFrom ● DateTime scalar
The date and time from which the discount is valid.
UpdateDiscountInput.validUntil ● DateTime scalar
The date and time until which the discount is valid.
Member Of
updateDiscount mutation