Skip to main content

CreateDiscountRuleDto

One rule of a discount scheme.

input CreateDiscountRuleDto {
description: String
discountType: DiscountCalculationType!
discountValue: Float!
isActive: Boolean
maxAmount: Float
maxDiscountAmount: Float
maxQuantity: Int
minAmount: Float
minQuantity: Int
name: String!
priority: Int
}

Fields​

CreateDiscountRuleDto.description ● String scalar​

What the rule is for.

CreateDiscountRuleDto.discountType ● DiscountCalculationType! non-null enum​

How the discount is worked out: a percentage or a fixed amount.

CreateDiscountRuleDto.discountValue ● Float! non-null scalar​

The percentage or the fixed amount.

CreateDiscountRuleDto.isActive ● Boolean scalar​

Whether the record is active.

CreateDiscountRuleDto.maxAmount ● Float scalar​

The largest order amount the rule applies to.

CreateDiscountRuleDto.maxDiscountAmount ● Float scalar​

The most discount the rule may give.

CreateDiscountRuleDto.maxQuantity ● Int scalar​

The largest quantity the rule applies to.

CreateDiscountRuleDto.minAmount ● Float scalar​

The smallest order amount the rule applies to.

CreateDiscountRuleDto.minQuantity ● Int scalar​

The smallest quantity the rule applies to.

CreateDiscountRuleDto.name ● String! non-null scalar​

The name of the rule.

CreateDiscountRuleDto.priority ● Int scalar​

Which rule wins when several apply. Higher goes first.

Member Of​

CreateDiscountSchemeDto input ● UpdateDiscountSchemeDto input