Name | Type | Description | Notes |
---|---|---|---|
Name | Pointer to string | The internal name of the achievement used in API requests. | [optional] |
Title | Pointer to string | The display name for the achievement in the Campaign Manager. | [optional] |
Description | Pointer to string | A description of the achievement. | [optional] |
Target | Pointer to float32 | The required number of actions or the transactional milestone to complete the achievement. | [optional] |
Period | Pointer to string | The relative duration after which the achievement ends and resets for a particular customer profile. | [optional] |
PeriodEndOverride | Pointer to TimePoint | [optional] | |
RecurrencePolicy | Pointer to 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] |
ActivationPolicy | Pointer to 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] |
FixedStartDate | Pointer to time.Time | The achievement's start date when `activationPolicy` is set to `fixed_schedule`. Note: It must be an RFC3339 timestamp string. | [optional] |
EndDate | Pointer to time.Time | 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] |
func (o *UpdateAchievement) GetName() string
GetName returns the Name field if non-nil, zero value otherwise.
func (o *UpdateAchievement) GetNameOk() (string, bool)
GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *UpdateAchievement) HasName() bool
HasName returns a boolean if a field has been set.
func (o *UpdateAchievement) SetName(v string)
SetName gets a reference to the given string and assigns it to the Name field.
func (o *UpdateAchievement) GetTitle() string
GetTitle returns the Title field if non-nil, zero value otherwise.
func (o *UpdateAchievement) GetTitleOk() (string, bool)
GetTitleOk returns a tuple with the Title field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *UpdateAchievement) HasTitle() bool
HasTitle returns a boolean if a field has been set.
func (o *UpdateAchievement) SetTitle(v string)
SetTitle gets a reference to the given string and assigns it to the Title field.
func (o *UpdateAchievement) GetDescription() string
GetDescription returns the Description field if non-nil, zero value otherwise.
func (o *UpdateAchievement) GetDescriptionOk() (string, bool)
GetDescriptionOk returns a tuple with the Description field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *UpdateAchievement) HasDescription() bool
HasDescription returns a boolean if a field has been set.
func (o *UpdateAchievement) SetDescription(v string)
SetDescription gets a reference to the given string and assigns it to the Description field.
func (o *UpdateAchievement) GetTarget() float32
GetTarget returns the Target field if non-nil, zero value otherwise.
func (o *UpdateAchievement) GetTargetOk() (float32, bool)
GetTargetOk returns a tuple with the Target field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *UpdateAchievement) HasTarget() bool
HasTarget returns a boolean if a field has been set.
func (o *UpdateAchievement) SetTarget(v float32)
SetTarget gets a reference to the given float32 and assigns it to the Target field.
func (o *UpdateAchievement) GetPeriod() string
GetPeriod returns the Period field if non-nil, zero value otherwise.
func (o *UpdateAchievement) GetPeriodOk() (string, bool)
GetPeriodOk returns a tuple with the Period field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *UpdateAchievement) HasPeriod() bool
HasPeriod returns a boolean if a field has been set.
func (o *UpdateAchievement) SetPeriod(v string)
SetPeriod gets a reference to the given string and assigns it to the Period field.
func (o *UpdateAchievement) GetPeriodEndOverride() TimePoint
GetPeriodEndOverride returns the PeriodEndOverride field if non-nil, zero value otherwise.
func (o *UpdateAchievement) GetPeriodEndOverrideOk() (TimePoint, bool)
GetPeriodEndOverrideOk returns a tuple with the PeriodEndOverride field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *UpdateAchievement) HasPeriodEndOverride() bool
HasPeriodEndOverride returns a boolean if a field has been set.
func (o *UpdateAchievement) SetPeriodEndOverride(v TimePoint)
SetPeriodEndOverride gets a reference to the given TimePoint and assigns it to the PeriodEndOverride field.
func (o *UpdateAchievement) GetRecurrencePolicy() string
GetRecurrencePolicy returns the RecurrencePolicy field if non-nil, zero value otherwise.
func (o *UpdateAchievement) GetRecurrencePolicyOk() (string, bool)
GetRecurrencePolicyOk returns a tuple with the RecurrencePolicy field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *UpdateAchievement) HasRecurrencePolicy() bool
HasRecurrencePolicy returns a boolean if a field has been set.
func (o *UpdateAchievement) SetRecurrencePolicy(v string)
SetRecurrencePolicy gets a reference to the given string and assigns it to the RecurrencePolicy field.
func (o *UpdateAchievement) GetActivationPolicy() string
GetActivationPolicy returns the ActivationPolicy field if non-nil, zero value otherwise.
func (o *UpdateAchievement) GetActivationPolicyOk() (string, bool)
GetActivationPolicyOk returns a tuple with the ActivationPolicy field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *UpdateAchievement) HasActivationPolicy() bool
HasActivationPolicy returns a boolean if a field has been set.
func (o *UpdateAchievement) SetActivationPolicy(v string)
SetActivationPolicy gets a reference to the given string and assigns it to the ActivationPolicy field.
func (o *UpdateAchievement) GetFixedStartDate() time.Time
GetFixedStartDate returns the FixedStartDate field if non-nil, zero value otherwise.
func (o *UpdateAchievement) GetFixedStartDateOk() (time.Time, bool)
GetFixedStartDateOk returns a tuple with the FixedStartDate field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *UpdateAchievement) HasFixedStartDate() bool
HasFixedStartDate returns a boolean if a field has been set.
func (o *UpdateAchievement) SetFixedStartDate(v time.Time)
SetFixedStartDate gets a reference to the given time.Time and assigns it to the FixedStartDate field.
func (o *UpdateAchievement) GetEndDate() time.Time
GetEndDate returns the EndDate field if non-nil, zero value otherwise.
func (o *UpdateAchievement) GetEndDateOk() (time.Time, bool)
GetEndDateOk returns a tuple with the EndDate field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *UpdateAchievement) HasEndDate() bool
HasEndDate returns a boolean if a field has been set.
func (o *UpdateAchievement) SetEndDate(v time.Time)
SetEndDate gets a reference to the given time.Time and assigns it to the EndDate field.