/** * Magento Community * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * * OpenAPI spec version: 2.2 * * * NOTE: This class is auto generated by the swagger code generator program. * https://github.com/swagger-api/swagger-codegen.git * Do not edit the class manually. */ import { SalesRuleDataConditionInterface } from './salesRuleDataConditionInterface'; import { SalesRuleDataRuleExtensionInterface } from './salesRuleDataRuleExtensionInterface'; import { SalesRuleDataRuleLabelInterface } from './salesRuleDataRuleLabelInterface'; /** * Interface RuleInterface */ export interface SalesRuleDataRuleInterface { /** * Rule id */ ruleId?: number; /** * Rule name */ name?: string; /** * Display label */ storeLabels?: Array; /** * Description */ description?: string; /** * A list of websites the rule applies to */ websiteIds: Array; /** * Ids of customer groups that the rule applies to */ customerGroupIds: Array; /** * The start date when the coupon is active */ fromDate?: string; /** * The end date when the coupon is active */ toDate?: string; /** * Number of uses per customer */ usesPerCustomer: number; /** * The coupon is active */ isActive: boolean; condition?: SalesRuleDataConditionInterface; actionCondition?: SalesRuleDataConditionInterface; /** * To stop rule processing */ stopRulesProcessing: boolean; /** * Is this field needed */ isAdvanced: boolean; /** * Product ids */ productIds?: Array; /** * Sort order */ sortOrder: number; /** * Simple action of the rule */ simpleAction?: string; /** * Discount amount */ discountAmount: number; /** * Maximum qty discount is applied */ discountQty?: number; /** * Discount step */ discountStep: number; /** * The rule applies to shipping */ applyToShipping: boolean; /** * How many times the rule has been used */ timesUsed: number; /** * Whether the rule is in RSS */ isRss: boolean; /** * Coupon type */ couponType: string; /** * To auto generate coupon */ useAutoGeneration: boolean; /** * Limit of uses per coupon */ usesPerCoupon: number; /** * To grant free shipping */ simpleFreeShipping?: string; extensionAttributes?: SalesRuleDataRuleExtensionInterface; }