Skip to content

Latest commit

 

History

History
35 lines (28 loc) · 2.42 KB

UpdateAchievement.md

File metadata and controls

35 lines (28 loc) · 2.42 KB

TalonOne::UpdateAchievement

Properties

Name Type Description Notes
name String The internal name of the achievement used in API requests. [optional]
title String The display name for the achievement in the Campaign Manager. [optional]
description String A description of the achievement. [optional]
target Float The required number of actions or the transactional milestone to complete the achievement. [optional]
period String The relative duration after which the achievement ends and resets for a particular customer profile. [optional]
period_end_override TimePoint [optional]
recurrence_policy String The policy that determines if and how the achievement recurs. - `no_recurrence`: The achievement can be completed only once. - `on_expiration`: The achievement resets after it expires and becomes available again. [optional]
activation_policy String The policy that determines how the achievement starts, ends, or resets. - `user_action`: The achievement ends or resets relative to when the customer started the achievement. - `fixed_schedule`: The achievement starts, ends, or resets for all customers following a fixed schedule. [optional]
fixed_start_date DateTime The achievement's start date when `activationPolicy` is set to `fixed_schedule`. Note: It must be an RFC3339 timestamp string. [optional]
end_date DateTime The achievement's end date. If defined, customers cannot participate in the achievement after this date. Note: It must be an RFC3339 timestamp string. [optional]

Code Sample

require 'TalonOne'

instance = TalonOne::UpdateAchievement.new(name: Order50Discount,
                                 title: 50% off on 50th purchase.,
                                 description: 50% off for every 50th purchase in a year.,
                                 target: 50.0,
                                 period: 1Y,
                                 period_end_override: null,
                                 recurrence_policy: no_recurrence,
                                 activation_policy: fixed_schedule,
                                 fixed_start_date: null,
                                 end_date: null)