Name | Type | Description | Notes |
---|---|---|---|
Points | Pointer to float32 | Amount of loyalty points. | |
Name | Pointer to string | Name / reason for the point addition. | [optional] |
ValidityDuration | Pointer to string | The time format is either: - `immediate` or, - an integer followed by one letter indicating the time unit. Examples: `immediate`, `30s`, `40m`, `1h`, `5D`, `7W`, `10M`, `15Y`. Available units: - `s`: seconds - `m`: minutes - `h`: hours - `D`: days - `W`: weeks - `M`: months - `Y`: years You can round certain units up or down: - `_D` for rounding down days only. Signifies the start of the day. - `_U` for rounding up days, weeks, months and years. Signifies the end of the day, week, month or year. If passed, `validUntil` should be omitted. | [optional] |
ValidUntil | Pointer to time.Time | Date and time when points should expire. The value should be provided in RFC 3339 format. If passed, `validityDuration` should be omitted. | [optional] |
PendingDuration | Pointer to string | The amount of time before the points are considered valid. The time format is either: - `immediate` or, - an integer followed by one letter indicating the time unit. Examples: `immediate`, `30s`, `40m`, `1h`, `5D`, `7W`, `10M`, `15Y`. Available units: - `s`: seconds - `m`: minutes - `h`: hours - `D`: days - `W`: weeks - `M`: months - `Y`: years You can round certain units up or down: - `_D` for rounding down days only. Signifies the start of the day. - `_U` for rounding up days, weeks, months and years. Signifies the end of the day, week, month or year. | [optional] |
PendingUntil | Pointer to time.Time | Date and time after the points are considered valid. The value should be provided in RFC 3339 format. If passed, `pendingDuration` should be omitted. | [optional] |
SubledgerId | Pointer to string | ID of the subledger the points are added to. If there is no existing subledger with this ID, the subledger is created automatically. | [optional] |
ApplicationId | Pointer to int32 | ID of the Application that is connected to the loyalty program. It is displayed in your Talon.One deployment URL. | [optional] |
func (o *AddLoyaltyPoints) GetPoints() float32
GetPoints returns the Points field if non-nil, zero value otherwise.
func (o *AddLoyaltyPoints) GetPointsOk() (float32, bool)
GetPointsOk returns a tuple with the Points field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *AddLoyaltyPoints) HasPoints() bool
HasPoints returns a boolean if a field has been set.
func (o *AddLoyaltyPoints) SetPoints(v float32)
SetPoints gets a reference to the given float32 and assigns it to the Points field.
func (o *AddLoyaltyPoints) GetName() string
GetName returns the Name field if non-nil, zero value otherwise.
func (o *AddLoyaltyPoints) 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 *AddLoyaltyPoints) HasName() bool
HasName returns a boolean if a field has been set.
func (o *AddLoyaltyPoints) SetName(v string)
SetName gets a reference to the given string and assigns it to the Name field.
func (o *AddLoyaltyPoints) GetValidityDuration() string
GetValidityDuration returns the ValidityDuration field if non-nil, zero value otherwise.
func (o *AddLoyaltyPoints) GetValidityDurationOk() (string, bool)
GetValidityDurationOk returns a tuple with the ValidityDuration field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *AddLoyaltyPoints) HasValidityDuration() bool
HasValidityDuration returns a boolean if a field has been set.
func (o *AddLoyaltyPoints) SetValidityDuration(v string)
SetValidityDuration gets a reference to the given string and assigns it to the ValidityDuration field.
func (o *AddLoyaltyPoints) GetValidUntil() time.Time
GetValidUntil returns the ValidUntil field if non-nil, zero value otherwise.
func (o *AddLoyaltyPoints) GetValidUntilOk() (time.Time, bool)
GetValidUntilOk returns a tuple with the ValidUntil field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *AddLoyaltyPoints) HasValidUntil() bool
HasValidUntil returns a boolean if a field has been set.
func (o *AddLoyaltyPoints) SetValidUntil(v time.Time)
SetValidUntil gets a reference to the given time.Time and assigns it to the ValidUntil field.
func (o *AddLoyaltyPoints) GetPendingDuration() string
GetPendingDuration returns the PendingDuration field if non-nil, zero value otherwise.
func (o *AddLoyaltyPoints) GetPendingDurationOk() (string, bool)
GetPendingDurationOk returns a tuple with the PendingDuration field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *AddLoyaltyPoints) HasPendingDuration() bool
HasPendingDuration returns a boolean if a field has been set.
func (o *AddLoyaltyPoints) SetPendingDuration(v string)
SetPendingDuration gets a reference to the given string and assigns it to the PendingDuration field.
func (o *AddLoyaltyPoints) GetPendingUntil() time.Time
GetPendingUntil returns the PendingUntil field if non-nil, zero value otherwise.
func (o *AddLoyaltyPoints) GetPendingUntilOk() (time.Time, bool)
GetPendingUntilOk returns a tuple with the PendingUntil field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *AddLoyaltyPoints) HasPendingUntil() bool
HasPendingUntil returns a boolean if a field has been set.
func (o *AddLoyaltyPoints) SetPendingUntil(v time.Time)
SetPendingUntil gets a reference to the given time.Time and assigns it to the PendingUntil field.
func (o *AddLoyaltyPoints) GetSubledgerId() string
GetSubledgerId returns the SubledgerId field if non-nil, zero value otherwise.
func (o *AddLoyaltyPoints) GetSubledgerIdOk() (string, bool)
GetSubledgerIdOk returns a tuple with the SubledgerId field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *AddLoyaltyPoints) HasSubledgerId() bool
HasSubledgerId returns a boolean if a field has been set.
func (o *AddLoyaltyPoints) SetSubledgerId(v string)
SetSubledgerId gets a reference to the given string and assigns it to the SubledgerId field.
func (o *AddLoyaltyPoints) GetApplicationId() int32
GetApplicationId returns the ApplicationId field if non-nil, zero value otherwise.
func (o *AddLoyaltyPoints) GetApplicationIdOk() (int32, bool)
GetApplicationIdOk returns a tuple with the ApplicationId field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *AddLoyaltyPoints) HasApplicationId() bool
HasApplicationId returns a boolean if a field has been set.
func (o *AddLoyaltyPoints) SetApplicationId(v int32)
SetApplicationId gets a reference to the given int32 and assigns it to the ApplicationId field.