Name | Type | Description | Notes |
---|---|---|---|
Id | Pointer to int32 | The internal ID of the tier. | |
Name | Pointer to string | The name of the tier. | |
StartDate | Pointer to time.Time | Date and time when the customer moved to this tier. This value uses the loyalty program's time zone setting. | [optional] |
ExpiryDate | Pointer to time.Time | Date when tier level expires in the RFC3339 format (in the Loyalty Program's timezone). | [optional] |
DowngradePolicy | Pointer to string | The policy that defines how customer tiers are downgraded in the loyalty program after tier reevaluation. - `one_down`: If the customer doesn't have enough points to stay in the current tier, they are downgraded by one tier. - `balance_based`: The customer's tier is reevaluated based on the amount of active points they have at the moment. | [optional] |
func (o *Tier) GetId() int32
GetId returns the Id field if non-nil, zero value otherwise.
func (o *Tier) GetIdOk() (int32, bool)
GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *Tier) HasId() bool
HasId returns a boolean if a field has been set.
func (o *Tier) SetId(v int32)
SetId gets a reference to the given int32 and assigns it to the Id field.
func (o *Tier) GetName() string
GetName returns the Name field if non-nil, zero value otherwise.
func (o *Tier) 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 *Tier) HasName() bool
HasName returns a boolean if a field has been set.
func (o *Tier) SetName(v string)
SetName gets a reference to the given string and assigns it to the Name field.
func (o *Tier) GetStartDate() time.Time
GetStartDate returns the StartDate field if non-nil, zero value otherwise.
func (o *Tier) GetStartDateOk() (time.Time, bool)
GetStartDateOk returns a tuple with the StartDate field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *Tier) HasStartDate() bool
HasStartDate returns a boolean if a field has been set.
func (o *Tier) SetStartDate(v time.Time)
SetStartDate gets a reference to the given time.Time and assigns it to the StartDate field.
func (o *Tier) GetExpiryDate() time.Time
GetExpiryDate returns the ExpiryDate field if non-nil, zero value otherwise.
func (o *Tier) GetExpiryDateOk() (time.Time, bool)
GetExpiryDateOk returns a tuple with the ExpiryDate field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *Tier) HasExpiryDate() bool
HasExpiryDate returns a boolean if a field has been set.
func (o *Tier) SetExpiryDate(v time.Time)
SetExpiryDate gets a reference to the given time.Time and assigns it to the ExpiryDate field.
func (o *Tier) GetDowngradePolicy() string
GetDowngradePolicy returns the DowngradePolicy field if non-nil, zero value otherwise.
func (o *Tier) GetDowngradePolicyOk() (string, bool)
GetDowngradePolicyOk returns a tuple with the DowngradePolicy field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *Tier) HasDowngradePolicy() bool
HasDowngradePolicy returns a boolean if a field has been set.
func (o *Tier) SetDowngradePolicy(v string)
SetDowngradePolicy gets a reference to the given string and assigns it to the DowngradePolicy field.