Skip to content

Latest commit

 

History

History
23 lines (16 loc) · 827 Bytes

LimitConfig.md

File metadata and controls

23 lines (16 loc) · 827 Bytes

TalonOne::LimitConfig

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.
period String The period on which the budget limit recurs. [optional]
entities Array<String> The entity that this limit applies to.

Code Sample

require 'TalonOne'

instance = TalonOne::LimitConfig.new(action: createCoupon,
                                 limit: 1000.0,
                                 period: yearly,
                                 entities: [Coupon])