Skip to content

Latest commit

 

History

History
21 lines (14 loc) · 720 Bytes

CampaignBudget.md

File metadata and controls

21 lines (14 loc) · 720 Bytes

TalonOne::CampaignBudget

Properties

Name Type Description Notes
action String The limitable action to which this limit applies. For example: - `setDiscount` - `setDiscountEffect` - `redeemCoupon` - `createCoupon`
limit Float The value to set for the limit.
counter Float The number of occurrences of the limited action in the context of the campaign.

Code Sample

require 'TalonOne'

instance = TalonOne::CampaignBudget.new(action: createCoupon,
                                 limit: 1000.0,
                                 counter: 42.0)