Campaign


Describes a campaign.

codes

Coupon only. Returns the associated coupon codes for this campaign. For other campaign types this method returns false.

discount_amount

Get the discount amount. See is_percent/is_value methods to decide if the discount is in percents.

is_percent

Tells whether the discount is given in percent.

is_value

Tells whether the discount is given as an amount.

min_amount

Get the minimum purchase amount when this campaign is valid.

name

The name of the campaign.