Name | Type | Description | Notes |
---|---|---|---|
Name | Pointer to string | The name of the discount. Contains a hashtag character indicating the index of the position of the item the discount applies to. It is identical to the value of the `position` property. | |
Value | Pointer to float32 | The total monetary value of the discount. | |
Position | Pointer to float32 | The index of the item in the cart items list on which this discount should be applied. | |
SubPosition | Pointer to float32 | For cart items with `quantity` > 1, the sub position indicates which item the discount applies to. | [optional] |
DesiredValue | Pointer to float32 | The original value of the discount. | [optional] |
Scope | Pointer to string | The scope of the discount: - `additionalCosts`: The discount applies to all the additional costs of the item. - `itemTotal`: The discount applies to the price of the item + the additional costs of the item. - `price`: The discount applies to the price of the item. | [optional] |
TotalDiscount | Pointer to float32 | The total discount given if this effect is a result of a prorated discount. | [optional] |
DesiredTotalDiscount | Pointer to float32 | The original total discount to give if this effect is a result of a prorated discount. | [optional] |
BundleIndex | Pointer to int32 | The position of the bundle in a list of item bundles created from the same bundle definition. | [optional] |
BundleName | Pointer to string | The name of the bundle definition. | [optional] |
TargetedItemPosition | Pointer to float32 | The index of the targeted bundle item on which the applied discount is based. | [optional] |
TargetedItemSubPosition | Pointer to float32 | The sub-position of the targeted bundle item on which the applied discount is based. | [optional] |
func (o *SetDiscountPerItemEffectProps) GetName() string
GetName returns the Name field if non-nil, zero value otherwise.
func (o *SetDiscountPerItemEffectProps) 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 *SetDiscountPerItemEffectProps) HasName() bool
HasName returns a boolean if a field has been set.
func (o *SetDiscountPerItemEffectProps) SetName(v string)
SetName gets a reference to the given string and assigns it to the Name field.
func (o *SetDiscountPerItemEffectProps) GetValue() float32
GetValue returns the Value field if non-nil, zero value otherwise.
func (o *SetDiscountPerItemEffectProps) 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 *SetDiscountPerItemEffectProps) HasValue() bool
HasValue returns a boolean if a field has been set.
func (o *SetDiscountPerItemEffectProps) SetValue(v float32)
SetValue gets a reference to the given float32 and assigns it to the Value field.
func (o *SetDiscountPerItemEffectProps) GetPosition() float32
GetPosition returns the Position field if non-nil, zero value otherwise.
func (o *SetDiscountPerItemEffectProps) GetPositionOk() (float32, bool)
GetPositionOk returns a tuple with the Position field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *SetDiscountPerItemEffectProps) HasPosition() bool
HasPosition returns a boolean if a field has been set.
func (o *SetDiscountPerItemEffectProps) SetPosition(v float32)
SetPosition gets a reference to the given float32 and assigns it to the Position field.
func (o *SetDiscountPerItemEffectProps) GetSubPosition() float32
GetSubPosition returns the SubPosition field if non-nil, zero value otherwise.
func (o *SetDiscountPerItemEffectProps) GetSubPositionOk() (float32, bool)
GetSubPositionOk returns a tuple with the SubPosition field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *SetDiscountPerItemEffectProps) HasSubPosition() bool
HasSubPosition returns a boolean if a field has been set.
func (o *SetDiscountPerItemEffectProps) SetSubPosition(v float32)
SetSubPosition gets a reference to the given float32 and assigns it to the SubPosition field.
func (o *SetDiscountPerItemEffectProps) GetDesiredValue() float32
GetDesiredValue returns the DesiredValue field if non-nil, zero value otherwise.
func (o *SetDiscountPerItemEffectProps) 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 *SetDiscountPerItemEffectProps) HasDesiredValue() bool
HasDesiredValue returns a boolean if a field has been set.
func (o *SetDiscountPerItemEffectProps) SetDesiredValue(v float32)
SetDesiredValue gets a reference to the given float32 and assigns it to the DesiredValue field.
func (o *SetDiscountPerItemEffectProps) GetScope() string
GetScope returns the Scope field if non-nil, zero value otherwise.
func (o *SetDiscountPerItemEffectProps) 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 *SetDiscountPerItemEffectProps) HasScope() bool
HasScope returns a boolean if a field has been set.
func (o *SetDiscountPerItemEffectProps) SetScope(v string)
SetScope gets a reference to the given string and assigns it to the Scope field.
func (o *SetDiscountPerItemEffectProps) GetTotalDiscount() float32
GetTotalDiscount returns the TotalDiscount field if non-nil, zero value otherwise.
func (o *SetDiscountPerItemEffectProps) GetTotalDiscountOk() (float32, bool)
GetTotalDiscountOk returns a tuple with the TotalDiscount field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *SetDiscountPerItemEffectProps) HasTotalDiscount() bool
HasTotalDiscount returns a boolean if a field has been set.
func (o *SetDiscountPerItemEffectProps) SetTotalDiscount(v float32)
SetTotalDiscount gets a reference to the given float32 and assigns it to the TotalDiscount field.
func (o *SetDiscountPerItemEffectProps) GetDesiredTotalDiscount() float32
GetDesiredTotalDiscount returns the DesiredTotalDiscount field if non-nil, zero value otherwise.
func (o *SetDiscountPerItemEffectProps) GetDesiredTotalDiscountOk() (float32, bool)
GetDesiredTotalDiscountOk returns a tuple with the DesiredTotalDiscount field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *SetDiscountPerItemEffectProps) HasDesiredTotalDiscount() bool
HasDesiredTotalDiscount returns a boolean if a field has been set.
func (o *SetDiscountPerItemEffectProps) SetDesiredTotalDiscount(v float32)
SetDesiredTotalDiscount gets a reference to the given float32 and assigns it to the DesiredTotalDiscount field.
func (o *SetDiscountPerItemEffectProps) GetBundleIndex() int32
GetBundleIndex returns the BundleIndex field if non-nil, zero value otherwise.
func (o *SetDiscountPerItemEffectProps) GetBundleIndexOk() (int32, bool)
GetBundleIndexOk returns a tuple with the BundleIndex field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *SetDiscountPerItemEffectProps) HasBundleIndex() bool
HasBundleIndex returns a boolean if a field has been set.
func (o *SetDiscountPerItemEffectProps) SetBundleIndex(v int32)
SetBundleIndex gets a reference to the given int32 and assigns it to the BundleIndex field.
func (o *SetDiscountPerItemEffectProps) GetBundleName() string
GetBundleName returns the BundleName field if non-nil, zero value otherwise.
func (o *SetDiscountPerItemEffectProps) GetBundleNameOk() (string, bool)
GetBundleNameOk returns a tuple with the BundleName field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *SetDiscountPerItemEffectProps) HasBundleName() bool
HasBundleName returns a boolean if a field has been set.
func (o *SetDiscountPerItemEffectProps) SetBundleName(v string)
SetBundleName gets a reference to the given string and assigns it to the BundleName field.
func (o *SetDiscountPerItemEffectProps) GetTargetedItemPosition() float32
GetTargetedItemPosition returns the TargetedItemPosition field if non-nil, zero value otherwise.
func (o *SetDiscountPerItemEffectProps) GetTargetedItemPositionOk() (float32, bool)
GetTargetedItemPositionOk returns a tuple with the TargetedItemPosition field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *SetDiscountPerItemEffectProps) HasTargetedItemPosition() bool
HasTargetedItemPosition returns a boolean if a field has been set.
func (o *SetDiscountPerItemEffectProps) SetTargetedItemPosition(v float32)
SetTargetedItemPosition gets a reference to the given float32 and assigns it to the TargetedItemPosition field.
func (o *SetDiscountPerItemEffectProps) GetTargetedItemSubPosition() float32
GetTargetedItemSubPosition returns the TargetedItemSubPosition field if non-nil, zero value otherwise.
func (o *SetDiscountPerItemEffectProps) GetTargetedItemSubPositionOk() (float32, bool)
GetTargetedItemSubPositionOk returns a tuple with the TargetedItemSubPosition field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *SetDiscountPerItemEffectProps) HasTargetedItemSubPosition() bool
HasTargetedItemSubPosition returns a boolean if a field has been set.
func (o *SetDiscountPerItemEffectProps) SetTargetedItemSubPosition(v float32)
SetTargetedItemSubPosition gets a reference to the given float32 and assigns it to the TargetedItemSubPosition field.