Skip to content

Latest commit

 

History

History
273 lines (146 loc) · 8.76 KB

UpdateAchievement.md

File metadata and controls

273 lines (146 loc) · 8.76 KB

UpdateAchievement

Properties

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]

Methods

GetName

func (o *UpdateAchievement) GetName() string

GetName returns the Name field if non-nil, zero value otherwise.

GetNameOk

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.

HasName

func (o *UpdateAchievement) HasName() bool

HasName returns a boolean if a field has been set.

SetName

func (o *UpdateAchievement) SetName(v string)

SetName gets a reference to the given string and assigns it to the Name field.

GetTitle

func (o *UpdateAchievement) GetTitle() string

GetTitle returns the Title field if non-nil, zero value otherwise.

GetTitleOk

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.

HasTitle

func (o *UpdateAchievement) HasTitle() bool

HasTitle returns a boolean if a field has been set.

SetTitle

func (o *UpdateAchievement) SetTitle(v string)

SetTitle gets a reference to the given string and assigns it to the Title field.

GetDescription

func (o *UpdateAchievement) GetDescription() string

GetDescription returns the Description field if non-nil, zero value otherwise.

GetDescriptionOk

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.

HasDescription

func (o *UpdateAchievement) HasDescription() bool

HasDescription returns a boolean if a field has been set.

SetDescription

func (o *UpdateAchievement) SetDescription(v string)

SetDescription gets a reference to the given string and assigns it to the Description field.

GetTarget

func (o *UpdateAchievement) GetTarget() float32

GetTarget returns the Target field if non-nil, zero value otherwise.

GetTargetOk

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.

HasTarget

func (o *UpdateAchievement) HasTarget() bool

HasTarget returns a boolean if a field has been set.

SetTarget

func (o *UpdateAchievement) SetTarget(v float32)

SetTarget gets a reference to the given float32 and assigns it to the Target field.

GetPeriod

func (o *UpdateAchievement) GetPeriod() string

GetPeriod returns the Period field if non-nil, zero value otherwise.

GetPeriodOk

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.

HasPeriod

func (o *UpdateAchievement) HasPeriod() bool

HasPeriod returns a boolean if a field has been set.

SetPeriod

func (o *UpdateAchievement) SetPeriod(v string)

SetPeriod gets a reference to the given string and assigns it to the Period field.

GetPeriodEndOverride

func (o *UpdateAchievement) GetPeriodEndOverride() TimePoint

GetPeriodEndOverride returns the PeriodEndOverride field if non-nil, zero value otherwise.

GetPeriodEndOverrideOk

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.

HasPeriodEndOverride

func (o *UpdateAchievement) HasPeriodEndOverride() bool

HasPeriodEndOverride returns a boolean if a field has been set.

SetPeriodEndOverride

func (o *UpdateAchievement) SetPeriodEndOverride(v TimePoint)

SetPeriodEndOverride gets a reference to the given TimePoint and assigns it to the PeriodEndOverride field.

GetRecurrencePolicy

func (o *UpdateAchievement) GetRecurrencePolicy() string

GetRecurrencePolicy returns the RecurrencePolicy field if non-nil, zero value otherwise.

GetRecurrencePolicyOk

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.

HasRecurrencePolicy

func (o *UpdateAchievement) HasRecurrencePolicy() bool

HasRecurrencePolicy returns a boolean if a field has been set.

SetRecurrencePolicy

func (o *UpdateAchievement) SetRecurrencePolicy(v string)

SetRecurrencePolicy gets a reference to the given string and assigns it to the RecurrencePolicy field.

GetActivationPolicy

func (o *UpdateAchievement) GetActivationPolicy() string

GetActivationPolicy returns the ActivationPolicy field if non-nil, zero value otherwise.

GetActivationPolicyOk

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.

HasActivationPolicy

func (o *UpdateAchievement) HasActivationPolicy() bool

HasActivationPolicy returns a boolean if a field has been set.

SetActivationPolicy

func (o *UpdateAchievement) SetActivationPolicy(v string)

SetActivationPolicy gets a reference to the given string and assigns it to the ActivationPolicy field.

GetFixedStartDate

func (o *UpdateAchievement) GetFixedStartDate() time.Time

GetFixedStartDate returns the FixedStartDate field if non-nil, zero value otherwise.

GetFixedStartDateOk

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.

HasFixedStartDate

func (o *UpdateAchievement) HasFixedStartDate() bool

HasFixedStartDate returns a boolean if a field has been set.

SetFixedStartDate

func (o *UpdateAchievement) SetFixedStartDate(v time.Time)

SetFixedStartDate gets a reference to the given time.Time and assigns it to the FixedStartDate field.

GetEndDate

func (o *UpdateAchievement) GetEndDate() time.Time

GetEndDate returns the EndDate field if non-nil, zero value otherwise.

GetEndDateOk

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.

HasEndDate

func (o *UpdateAchievement) HasEndDate() bool

HasEndDate returns a boolean if a field has been set.

SetEndDate

func (o *UpdateAchievement) SetEndDate(v time.Time)

SetEndDate gets a reference to the given time.Time and assigns it to the EndDate field.

[Back to Model list] [Back to API list] [Back to README]