Skip to content

Latest commit

 

History

History
327 lines (176 loc) · 11 KB

File metadata and controls

327 lines (176 loc) · 11 KB

SetDiscountPerItemEffectProps

Properties

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]

Methods

NewSetDiscountPerItemEffectProps

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

NewSetDiscountPerItemEffectPropsWithDefaults

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

GetName

func (o *SetDiscountPerItemEffectProps) GetName() string

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

GetNameOk

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.

SetName

func (o *SetDiscountPerItemEffectProps) SetName(v string)

SetName sets Name field to given value.

GetValue

func (o *SetDiscountPerItemEffectProps) GetValue() float32

GetValue returns the Value field if non-nil, zero value otherwise.

GetValueOk

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.

SetValue

func (o *SetDiscountPerItemEffectProps) SetValue(v float32)

SetValue sets Value field to given value.

GetPosition

func (o *SetDiscountPerItemEffectProps) GetPosition() float32

GetPosition returns the Position field if non-nil, zero value otherwise.

GetPositionOk

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.

SetPosition

func (o *SetDiscountPerItemEffectProps) SetPosition(v float32)

SetPosition sets Position field to given value.

GetSubPosition

func (o *SetDiscountPerItemEffectProps) GetSubPosition() float32

GetSubPosition returns the SubPosition field if non-nil, zero value otherwise.

GetSubPositionOk

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.

SetSubPosition

func (o *SetDiscountPerItemEffectProps) SetSubPosition(v float32)

SetSubPosition sets SubPosition field to given value.

HasSubPosition

func (o *SetDiscountPerItemEffectProps) HasSubPosition() bool

HasSubPosition returns a boolean if a field has been set.

GetDesiredValue

func (o *SetDiscountPerItemEffectProps) GetDesiredValue() float32

GetDesiredValue returns the DesiredValue field if non-nil, zero value otherwise.

GetDesiredValueOk

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.

SetDesiredValue

func (o *SetDiscountPerItemEffectProps) SetDesiredValue(v float32)

SetDesiredValue sets DesiredValue field to given value.

HasDesiredValue

func (o *SetDiscountPerItemEffectProps) HasDesiredValue() bool

HasDesiredValue returns a boolean if a field has been set.

GetScope

func (o *SetDiscountPerItemEffectProps) GetScope() string

GetScope returns the Scope field if non-nil, zero value otherwise.

GetScopeOk

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.

SetScope

func (o *SetDiscountPerItemEffectProps) SetScope(v string)

SetScope sets Scope field to given value.

HasScope

func (o *SetDiscountPerItemEffectProps) HasScope() bool

HasScope returns a boolean if a field has been set.

GetTotalDiscount

func (o *SetDiscountPerItemEffectProps) GetTotalDiscount() float32

GetTotalDiscount returns the TotalDiscount field if non-nil, zero value otherwise.

GetTotalDiscountOk

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.

SetTotalDiscount

func (o *SetDiscountPerItemEffectProps) SetTotalDiscount(v float32)

SetTotalDiscount sets TotalDiscount field to given value.

HasTotalDiscount

func (o *SetDiscountPerItemEffectProps) HasTotalDiscount() bool

HasTotalDiscount returns a boolean if a field has been set.

GetDesiredTotalDiscount

func (o *SetDiscountPerItemEffectProps) GetDesiredTotalDiscount() float32

GetDesiredTotalDiscount returns the DesiredTotalDiscount field if non-nil, zero value otherwise.

GetDesiredTotalDiscountOk

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.

SetDesiredTotalDiscount

func (o *SetDiscountPerItemEffectProps) SetDesiredTotalDiscount(v float32)

SetDesiredTotalDiscount sets DesiredTotalDiscount field to given value.

HasDesiredTotalDiscount

func (o *SetDiscountPerItemEffectProps) HasDesiredTotalDiscount() bool

HasDesiredTotalDiscount returns a boolean if a field has been set.

GetBundleIndex

func (o *SetDiscountPerItemEffectProps) GetBundleIndex() int64

GetBundleIndex returns the BundleIndex field if non-nil, zero value otherwise.

GetBundleIndexOk

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.

SetBundleIndex

func (o *SetDiscountPerItemEffectProps) SetBundleIndex(v int64)

SetBundleIndex sets BundleIndex field to given value.

HasBundleIndex

func (o *SetDiscountPerItemEffectProps) HasBundleIndex() bool

HasBundleIndex returns a boolean if a field has been set.

GetBundleName

func (o *SetDiscountPerItemEffectProps) GetBundleName() string

GetBundleName returns the BundleName field if non-nil, zero value otherwise.

GetBundleNameOk

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.

SetBundleName

func (o *SetDiscountPerItemEffectProps) SetBundleName(v string)

SetBundleName sets BundleName field to given value.

HasBundleName

func (o *SetDiscountPerItemEffectProps) HasBundleName() bool

HasBundleName returns a boolean if a field has been set.

GetTargetedItemPosition

func (o *SetDiscountPerItemEffectProps) GetTargetedItemPosition() float32

GetTargetedItemPosition returns the TargetedItemPosition field if non-nil, zero value otherwise.

GetTargetedItemPositionOk

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.

SetTargetedItemPosition

func (o *SetDiscountPerItemEffectProps) SetTargetedItemPosition(v float32)

SetTargetedItemPosition sets TargetedItemPosition field to given value.

HasTargetedItemPosition

func (o *SetDiscountPerItemEffectProps) HasTargetedItemPosition() bool

HasTargetedItemPosition returns a boolean if a field has been set.

GetTargetedItemSubPosition

func (o *SetDiscountPerItemEffectProps) GetTargetedItemSubPosition() float32

GetTargetedItemSubPosition returns the TargetedItemSubPosition field if non-nil, zero value otherwise.

GetTargetedItemSubPositionOk

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.

SetTargetedItemSubPosition

func (o *SetDiscountPerItemEffectProps) SetTargetedItemSubPosition(v float32)

SetTargetedItemSubPosition sets TargetedItemSubPosition field to given value.

HasTargetedItemSubPosition

func (o *SetDiscountPerItemEffectProps) HasTargetedItemSubPosition() bool

HasTargetedItemSubPosition returns a boolean if a field has been set.

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