Skip to main content

CampaignType

Possible campaign types

enum CampaignType {
DIRECT
PRICE
PERCENT
CATEGORY
BRAND
SUPPLIER
TOTAL
}

Values​

DIRECT​

A discounted price is applied directly. This price adjustment is unique as it's not connected to any campaign; the discounted price is stored/set on the resource itself.

PRICE​

A specific discounted price is applied to the resource. Similar to 'DIRECT' type but tied to a campaign.

PERCENT​

A percentage discount is applied to the resource.

CATEGORY​

A percentage discount valid for all products in one or more given categories.

BRAND​

A percentage discount valid for all products in one or more given brands.

SUPPLIER​

A percentage discount valid for all products from one or more given suppliers.

TOTAL​

Discount applied to all items in cart. Can be in the form of a percentage or a specific monetary value.