Name | Type | Description | Notes |
---|---|---|---|
Name | Pointer to string | The name / description of this discount | |
Value | Pointer to float32 | The total monetary value of the discount. | |
Scope | Pointer to string | The scope which the discount was applied on, can be one of (cartItems,additionalCosts,sessionTotal). | [optional] |
DesiredValue | Pointer to float32 | The original value of the discount. | [optional] |
func (o *SetDiscountEffectProps) GetName() string
GetName returns the Name field if non-nil, zero value otherwise.
func (o *SetDiscountEffectProps) 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 *SetDiscountEffectProps) HasName() bool
HasName returns a boolean if a field has been set.
func (o *SetDiscountEffectProps) SetName(v string)
SetName gets a reference to the given string and assigns it to the Name field.
func (o *SetDiscountEffectProps) GetValue() float32
GetValue returns the Value field if non-nil, zero value otherwise.
func (o *SetDiscountEffectProps) GetValueOk() (float32, bool)
GetValueOk returns a tuple with the Value field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *SetDiscountEffectProps) HasValue() bool
HasValue returns a boolean if a field has been set.
func (o *SetDiscountEffectProps) SetValue(v float32)
SetValue gets a reference to the given float32 and assigns it to the Value field.
func (o *SetDiscountEffectProps) GetScope() string
GetScope returns the Scope field if non-nil, zero value otherwise.
func (o *SetDiscountEffectProps) GetScopeOk() (string, bool)
GetScopeOk returns a tuple with the Scope field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *SetDiscountEffectProps) HasScope() bool
HasScope returns a boolean if a field has been set.
func (o *SetDiscountEffectProps) SetScope(v string)
SetScope gets a reference to the given string and assigns it to the Scope field.
func (o *SetDiscountEffectProps) GetDesiredValue() float32
GetDesiredValue returns the DesiredValue field if non-nil, zero value otherwise.
func (o *SetDiscountEffectProps) GetDesiredValueOk() (float32, bool)
GetDesiredValueOk returns a tuple with the DesiredValue field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *SetDiscountEffectProps) HasDesiredValue() bool
HasDesiredValue returns a boolean if a field has been set.
func (o *SetDiscountEffectProps) SetDesiredValue(v float32)
SetDesiredValue gets a reference to the given float32 and assigns it to the DesiredValue field.