Skip to content

Latest commit

 

History

History
233 lines (126 loc) · 8.53 KB

File metadata and controls

233 lines (126 loc) · 8.53 KB

AddLoyaltyPoints

Properties

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: - `unlimited` or, - an integer followed by one letter indicating the time unit. Examples: `unlimited`, `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, - `on_action` or, - an integer followed by one letter indicating the time unit. Examples: `immediate`, `30s`, `40m`, `1h`, `5D`, `7W`, `10M`, `15Y`, `on_action`. 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 int64 ID of the Application that is connected to the loyalty program. It is displayed in your Talon.One deployment URL. [optional]

Methods

NewAddLoyaltyPoints

func NewAddLoyaltyPoints(points float32, ) *AddLoyaltyPoints

NewAddLoyaltyPoints instantiates a new AddLoyaltyPoints object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

NewAddLoyaltyPointsWithDefaults

func NewAddLoyaltyPointsWithDefaults() *AddLoyaltyPoints

NewAddLoyaltyPointsWithDefaults instantiates a new AddLoyaltyPoints object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

GetPoints

func (o *AddLoyaltyPoints) GetPoints() float32

GetPoints returns the Points field if non-nil, zero value otherwise.

GetPointsOk

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.

SetPoints

func (o *AddLoyaltyPoints) SetPoints(v float32)

SetPoints sets Points field to given value.

GetName

func (o *AddLoyaltyPoints) GetName() string

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

GetNameOk

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.

SetName

func (o *AddLoyaltyPoints) SetName(v string)

SetName sets Name field to given value.

HasName

func (o *AddLoyaltyPoints) HasName() bool

HasName returns a boolean if a field has been set.

GetValidityDuration

func (o *AddLoyaltyPoints) GetValidityDuration() string

GetValidityDuration returns the ValidityDuration field if non-nil, zero value otherwise.

GetValidityDurationOk

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.

SetValidityDuration

func (o *AddLoyaltyPoints) SetValidityDuration(v string)

SetValidityDuration sets ValidityDuration field to given value.

HasValidityDuration

func (o *AddLoyaltyPoints) HasValidityDuration() bool

HasValidityDuration returns a boolean if a field has been set.

GetValidUntil

func (o *AddLoyaltyPoints) GetValidUntil() time.Time

GetValidUntil returns the ValidUntil field if non-nil, zero value otherwise.

GetValidUntilOk

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.

SetValidUntil

func (o *AddLoyaltyPoints) SetValidUntil(v time.Time)

SetValidUntil sets ValidUntil field to given value.

HasValidUntil

func (o *AddLoyaltyPoints) HasValidUntil() bool

HasValidUntil returns a boolean if a field has been set.

GetPendingDuration

func (o *AddLoyaltyPoints) GetPendingDuration() string

GetPendingDuration returns the PendingDuration field if non-nil, zero value otherwise.

GetPendingDurationOk

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.

SetPendingDuration

func (o *AddLoyaltyPoints) SetPendingDuration(v string)

SetPendingDuration sets PendingDuration field to given value.

HasPendingDuration

func (o *AddLoyaltyPoints) HasPendingDuration() bool

HasPendingDuration returns a boolean if a field has been set.

GetPendingUntil

func (o *AddLoyaltyPoints) GetPendingUntil() time.Time

GetPendingUntil returns the PendingUntil field if non-nil, zero value otherwise.

GetPendingUntilOk

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.

SetPendingUntil

func (o *AddLoyaltyPoints) SetPendingUntil(v time.Time)

SetPendingUntil sets PendingUntil field to given value.

HasPendingUntil

func (o *AddLoyaltyPoints) HasPendingUntil() bool

HasPendingUntil returns a boolean if a field has been set.

GetSubledgerId

func (o *AddLoyaltyPoints) GetSubledgerId() string

GetSubledgerId returns the SubledgerId field if non-nil, zero value otherwise.

GetSubledgerIdOk

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.

SetSubledgerId

func (o *AddLoyaltyPoints) SetSubledgerId(v string)

SetSubledgerId sets SubledgerId field to given value.

HasSubledgerId

func (o *AddLoyaltyPoints) HasSubledgerId() bool

HasSubledgerId returns a boolean if a field has been set.

GetApplicationId

func (o *AddLoyaltyPoints) GetApplicationId() int64

GetApplicationId returns the ApplicationId field if non-nil, zero value otherwise.

GetApplicationIdOk

func (o *AddLoyaltyPoints) GetApplicationIdOk() (*int64, 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.

SetApplicationId

func (o *AddLoyaltyPoints) SetApplicationId(v int64)

SetApplicationId sets ApplicationId field to given value.

HasApplicationId

func (o *AddLoyaltyPoints) HasApplicationId() bool

HasApplicationId returns a boolean if a field has been set.

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