UpdateDiscountSchemeDto
Changes to a discount scheme. Omitted fields stay as they are.
input UpdateDiscountSchemeDto {
applicableCustomerTypes: String
applicableRegions: String
buyQuantity: Float
currencyId: String
description: String
discountRules: [CreateDiscountRuleDto!]
fixedAmountValue: Float
isActive: Boolean
isStackable: Boolean
maxUsageCount: Int
maxUsagePerCustomer: Int
minOrderAmount: Float
name: String
percentageValue: Float
priority: Int
scope: DiscountScope
validFrom: String
validUntil: String
}
Fields
UpdateDiscountSchemeDto.applicableCustomerTypes ● String scalar
The customer types the scheme applies to.
UpdateDiscountSchemeDto.applicableRegions ● String scalar
The regions the scheme applies to.
UpdateDiscountSchemeDto.buyQuantity ● Float scalar
For a buy-and-get scheme, how many to buy.
UpdateDiscountSchemeDto.currencyId ● String scalar
The ID of the currency the scheme is for. Empty means the base currency.
UpdateDiscountSchemeDto.description ● String scalar
What the scheme is for.
UpdateDiscountSchemeDto.discountRules ● [CreateDiscountRuleDto!] list input
The rules that set the discount.
UpdateDiscountSchemeDto.fixedAmountValue ● Float scalar
The fixed discount amount.
UpdateDiscountSchemeDto.isActive ● Boolean scalar
Whether the record is active.
UpdateDiscountSchemeDto.isStackable ● Boolean scalar
True when the scheme can combine with other discounts.
UpdateDiscountSchemeDto.maxUsageCount ● Int scalar
The most times the scheme may be used in all.
UpdateDiscountSchemeDto.maxUsagePerCustomer ● Int scalar
The most times one customer may use the scheme.
UpdateDiscountSchemeDto.minOrderAmount ● Float scalar
The smallest order amount the scheme applies to.
UpdateDiscountSchemeDto.name ● String scalar
The name of the scheme.
UpdateDiscountSchemeDto.percentageValue ● Float scalar
The discount in percent.
UpdateDiscountSchemeDto.priority ● Int scalar
Which scheme wins when several apply. Higher goes first.
UpdateDiscountSchemeDto.scope ● DiscountScope enum
What the scheme applies to.
UpdateDiscountSchemeDto.validFrom ● String scalar
When the scheme starts.
UpdateDiscountSchemeDto.validUntil ● String scalar
When the scheme ends.
Member Of
BulkUpdateItemDto input ● updateDiscountScheme mutation