| 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 int64 | 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 NewSetDiscountPerItemEffectProps(name string, value float32, position float32, ) *SetDiscountPerItemEffectProps
NewSetDiscountPerItemEffectProps instantiates a new SetDiscountPerItemEffectProps 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
func NewSetDiscountPerItemEffectPropsWithDefaults() *SetDiscountPerItemEffectProps
NewSetDiscountPerItemEffectPropsWithDefaults instantiates a new SetDiscountPerItemEffectProps 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
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) SetName(v string)
SetName sets Name field to given value.
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) SetValue(v float32)
SetValue sets Value field to given value.
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) SetPosition(v float32)
SetPosition sets Position field to given value.
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) SetSubPosition(v float32)
SetSubPosition sets SubPosition field to given value.
func (o *SetDiscountPerItemEffectProps) HasSubPosition() bool
HasSubPosition returns a boolean if a field has been set.
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) SetDesiredValue(v float32)
SetDesiredValue sets DesiredValue field to given value.
func (o *SetDiscountPerItemEffectProps) HasDesiredValue() bool
HasDesiredValue returns a boolean if a field has been set.
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) SetScope(v string)
SetScope sets Scope field to given value.
func (o *SetDiscountPerItemEffectProps) HasScope() bool
HasScope returns a boolean if a field has been set.
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) SetTotalDiscount(v float32)
SetTotalDiscount sets TotalDiscount field to given value.
func (o *SetDiscountPerItemEffectProps) HasTotalDiscount() bool
HasTotalDiscount returns a boolean if a field has been set.
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) SetDesiredTotalDiscount(v float32)
SetDesiredTotalDiscount sets DesiredTotalDiscount field to given value.
func (o *SetDiscountPerItemEffectProps) HasDesiredTotalDiscount() bool
HasDesiredTotalDiscount returns a boolean if a field has been set.
func (o *SetDiscountPerItemEffectProps) GetBundleIndex() int64
GetBundleIndex returns the BundleIndex field if non-nil, zero value otherwise.
func (o *SetDiscountPerItemEffectProps) GetBundleIndexOk() (*int64, 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) SetBundleIndex(v int64)
SetBundleIndex sets BundleIndex field to given value.
func (o *SetDiscountPerItemEffectProps) HasBundleIndex() bool
HasBundleIndex returns a boolean if a field has been set.
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) SetBundleName(v string)
SetBundleName sets BundleName field to given value.
func (o *SetDiscountPerItemEffectProps) HasBundleName() bool
HasBundleName returns a boolean if a field has been set.
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) SetTargetedItemPosition(v float32)
SetTargetedItemPosition sets TargetedItemPosition field to given value.
func (o *SetDiscountPerItemEffectProps) HasTargetedItemPosition() bool
HasTargetedItemPosition returns a boolean if a field has been set.
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) SetTargetedItemSubPosition(v float32)
SetTargetedItemSubPosition sets TargetedItemSubPosition field to given value.
func (o *SetDiscountPerItemEffectProps) HasTargetedItemSubPosition() bool
HasTargetedItemSubPosition returns a boolean if a field has been set.