Skip to content

Latest commit

 

History

History
21 lines (14 loc) · 789 Bytes

ReferralConstraints.md

File metadata and controls

21 lines (14 loc) · 789 Bytes

TalonOne::ReferralConstraints

Properties

Name Type Description Notes
start_date DateTime Timestamp at which point the referral code becomes valid. [optional]
expiry_date DateTime Expiration date of the referral code. Referral never expires if this is omitted. [optional]
usage_limit Integer The number of times a referral code can be used. `0` means no limit but any campaign usage limits will still apply. [optional]

Code Sample

require 'TalonOne'

instance = TalonOne::ReferralConstraints.new(start_date: 2020-11-10T23:00Z,
                                 expiry_date: 2021-11-10T23:00Z,
                                 usage_limit: 1)