Alokai
You are reading the documentation for v7.x and earlier, which is no longer the latest version. Switch to v8.x

Promotion

Representation of a Promotion Promotion

export interface Promotion {
	'code'?: string;
	'couldFireMessages'?: Array<string>;
	'description'?: string;
	'enabled'?: boolean;
	'endDate'?: string;
	'firedMessages'?: Array<string>;
	'priority'?: number;
	'productBanner'?: Image;
	'promotionGroup'?: string;
	'promotionType'?: string;
	'restrictions'?: Array<PromotionRestriction>;
	'startDate'?: string;
	'title'?: string;
}

Properties

NameRequiredTypeDescription
codeOptionalstringCode of the promotion {string} Promotion
couldFireMessagesOptionalArray<string>Message about promotion which is displayed when planning potential promotion. This field has higher priority over promotion description {Array<string>} Promotion
descriptionOptionalstringDescription of the promotion {string} Promotion
enabledOptionalbooleanBoolean flag if promotion is enabled {boolean} Promotion
endDateOptionalstringLast date of validity of the promotion {string} Promotion
firedMessagesOptionalArray<string>Message fired while the promotion is active. This is info how much you will get when applying the promotion {Array<string>} Promotion
priorityOptionalnumberPriority index as numeric value of the promotion. Higher number means higher priority {number} Promotion
productBannerOptionalImage{Image} Promotion
promotionGroupOptionalstringGroup of the promotion {string} Promotion
promotionTypeOptionalstringType of the promotion {string} Promotion
restrictionsOptionalArray<PromotionRestriction>List of promotion restrictions {Array<PromotionRestriction>} Promotion
startDateOptionalstringThe initial date of the promotion {string} Promotion
titleOptionalstringPromotion title {string} Promotion

Referenced Types

On this page