Skip to content

Latest commit

 

History

History
403 lines (216 loc) · 12.1 KB

CartItem.md

File metadata and controls

403 lines (216 loc) · 12.1 KB

CartItem

Properties

Name Type Description Notes
Name Pointer to string Name of item. [optional]
Sku Pointer to string Stock keeping unit of item.
Quantity Pointer to int32 Quantity of item. Important: If you enabled cart item flattening, the quantity is always one and the same cart item might receive multiple per-item discounts. Ensure you can process multiple discounts on one cart item correctly.
ReturnedQuantity Pointer to int32 Number of returned items, calculated internally based on returns of this item. [optional]
RemainingQuantity Pointer to int32 Remaining quantity of the item, calculated internally based on returns of this item. [optional]
Price Pointer to float32 Price of the item in the currency defined by your Application. This field is required if this item is not part of a catalog. If it is part of a catalog, setting a price here overrides the price from the catalog. [optional]
Category Pointer to string Type, group or model of the item. [optional]
Weight Pointer to float32 Weight of item in grams. [optional]
Height Pointer to float32 Height of item in mm. [optional]
Width Pointer to float32 Width of item in mm. [optional]
Length Pointer to float32 Length of item in mm. [optional]
Position Pointer to float32 Position of the Cart Item in the Cart (calculated internally). [optional]
Attributes Pointer to map[string]interface{} Use this property to set a value for the attributes of your choice. Attributes represent any information to attach to this cart item. Custom cart item attributes must be created in the Campaign Manager before you set them with this property. [optional]
AdditionalCosts Pointer to map[string]AdditionalCost Use this property to set a value for the additional costs of this item, such as a shipping cost. They must be created in the Campaign Manager before you set them with this property. See Managing additional costs. [optional]
CatalogItemID Pointer to int32 The catalog item ID. [optional]

Methods

GetName

func (o *CartItem) GetName() string

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

GetNameOk

func (o *CartItem) 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.

HasName

func (o *CartItem) HasName() bool

HasName returns a boolean if a field has been set.

SetName

func (o *CartItem) SetName(v string)

SetName gets a reference to the given string and assigns it to the Name field.

GetSku

func (o *CartItem) GetSku() string

GetSku returns the Sku field if non-nil, zero value otherwise.

GetSkuOk

func (o *CartItem) GetSkuOk() (string, bool)

GetSkuOk returns a tuple with the Sku field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

HasSku

func (o *CartItem) HasSku() bool

HasSku returns a boolean if a field has been set.

SetSku

func (o *CartItem) SetSku(v string)

SetSku gets a reference to the given string and assigns it to the Sku field.

GetQuantity

func (o *CartItem) GetQuantity() int32

GetQuantity returns the Quantity field if non-nil, zero value otherwise.

GetQuantityOk

func (o *CartItem) GetQuantityOk() (int32, bool)

GetQuantityOk returns a tuple with the Quantity field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

HasQuantity

func (o *CartItem) HasQuantity() bool

HasQuantity returns a boolean if a field has been set.

SetQuantity

func (o *CartItem) SetQuantity(v int32)

SetQuantity gets a reference to the given int32 and assigns it to the Quantity field.

GetReturnedQuantity

func (o *CartItem) GetReturnedQuantity() int32

GetReturnedQuantity returns the ReturnedQuantity field if non-nil, zero value otherwise.

GetReturnedQuantityOk

func (o *CartItem) GetReturnedQuantityOk() (int32, bool)

GetReturnedQuantityOk returns a tuple with the ReturnedQuantity field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

HasReturnedQuantity

func (o *CartItem) HasReturnedQuantity() bool

HasReturnedQuantity returns a boolean if a field has been set.

SetReturnedQuantity

func (o *CartItem) SetReturnedQuantity(v int32)

SetReturnedQuantity gets a reference to the given int32 and assigns it to the ReturnedQuantity field.

GetRemainingQuantity

func (o *CartItem) GetRemainingQuantity() int32

GetRemainingQuantity returns the RemainingQuantity field if non-nil, zero value otherwise.

GetRemainingQuantityOk

func (o *CartItem) GetRemainingQuantityOk() (int32, bool)

GetRemainingQuantityOk returns a tuple with the RemainingQuantity field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

HasRemainingQuantity

func (o *CartItem) HasRemainingQuantity() bool

HasRemainingQuantity returns a boolean if a field has been set.

SetRemainingQuantity

func (o *CartItem) SetRemainingQuantity(v int32)

SetRemainingQuantity gets a reference to the given int32 and assigns it to the RemainingQuantity field.

GetPrice

func (o *CartItem) GetPrice() float32

GetPrice returns the Price field if non-nil, zero value otherwise.

GetPriceOk

func (o *CartItem) GetPriceOk() (float32, bool)

GetPriceOk returns a tuple with the Price field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

HasPrice

func (o *CartItem) HasPrice() bool

HasPrice returns a boolean if a field has been set.

SetPrice

func (o *CartItem) SetPrice(v float32)

SetPrice gets a reference to the given float32 and assigns it to the Price field.

GetCategory

func (o *CartItem) GetCategory() string

GetCategory returns the Category field if non-nil, zero value otherwise.

GetCategoryOk

func (o *CartItem) GetCategoryOk() (string, bool)

GetCategoryOk returns a tuple with the Category field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

HasCategory

func (o *CartItem) HasCategory() bool

HasCategory returns a boolean if a field has been set.

SetCategory

func (o *CartItem) SetCategory(v string)

SetCategory gets a reference to the given string and assigns it to the Category field.

GetWeight

func (o *CartItem) GetWeight() float32

GetWeight returns the Weight field if non-nil, zero value otherwise.

GetWeightOk

func (o *CartItem) GetWeightOk() (float32, bool)

GetWeightOk returns a tuple with the Weight field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

HasWeight

func (o *CartItem) HasWeight() bool

HasWeight returns a boolean if a field has been set.

SetWeight

func (o *CartItem) SetWeight(v float32)

SetWeight gets a reference to the given float32 and assigns it to the Weight field.

GetHeight

func (o *CartItem) GetHeight() float32

GetHeight returns the Height field if non-nil, zero value otherwise.

GetHeightOk

func (o *CartItem) GetHeightOk() (float32, bool)

GetHeightOk returns a tuple with the Height field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

HasHeight

func (o *CartItem) HasHeight() bool

HasHeight returns a boolean if a field has been set.

SetHeight

func (o *CartItem) SetHeight(v float32)

SetHeight gets a reference to the given float32 and assigns it to the Height field.

GetWidth

func (o *CartItem) GetWidth() float32

GetWidth returns the Width field if non-nil, zero value otherwise.

GetWidthOk

func (o *CartItem) GetWidthOk() (float32, bool)

GetWidthOk returns a tuple with the Width field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

HasWidth

func (o *CartItem) HasWidth() bool

HasWidth returns a boolean if a field has been set.

SetWidth

func (o *CartItem) SetWidth(v float32)

SetWidth gets a reference to the given float32 and assigns it to the Width field.

GetLength

func (o *CartItem) GetLength() float32

GetLength returns the Length field if non-nil, zero value otherwise.

GetLengthOk

func (o *CartItem) GetLengthOk() (float32, bool)

GetLengthOk returns a tuple with the Length field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

HasLength

func (o *CartItem) HasLength() bool

HasLength returns a boolean if a field has been set.

SetLength

func (o *CartItem) SetLength(v float32)

SetLength gets a reference to the given float32 and assigns it to the Length field.

GetPosition

func (o *CartItem) GetPosition() float32

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

GetPositionOk

func (o *CartItem) 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.

HasPosition

func (o *CartItem) HasPosition() bool

HasPosition returns a boolean if a field has been set.

SetPosition

func (o *CartItem) SetPosition(v float32)

SetPosition gets a reference to the given float32 and assigns it to the Position field.

GetAttributes

func (o *CartItem) GetAttributes() map[string]interface{}

GetAttributes returns the Attributes field if non-nil, zero value otherwise.

GetAttributesOk

func (o *CartItem) GetAttributesOk() (map[string]interface{}, bool)

GetAttributesOk returns a tuple with the Attributes field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

HasAttributes

func (o *CartItem) HasAttributes() bool

HasAttributes returns a boolean if a field has been set.

SetAttributes

func (o *CartItem) SetAttributes(v map[string]interface{})

SetAttributes gets a reference to the given map[string]interface{} and assigns it to the Attributes field.

GetAdditionalCosts

func (o *CartItem) GetAdditionalCosts() map[string]AdditionalCost

GetAdditionalCosts returns the AdditionalCosts field if non-nil, zero value otherwise.

GetAdditionalCostsOk

func (o *CartItem) GetAdditionalCostsOk() (map[string]AdditionalCost, bool)

GetAdditionalCostsOk returns a tuple with the AdditionalCosts field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

HasAdditionalCosts

func (o *CartItem) HasAdditionalCosts() bool

HasAdditionalCosts returns a boolean if a field has been set.

SetAdditionalCosts

func (o *CartItem) SetAdditionalCosts(v map[string]AdditionalCost)

SetAdditionalCosts gets a reference to the given map[string]AdditionalCost and assigns it to the AdditionalCosts field.

GetCatalogItemID

func (o *CartItem) GetCatalogItemID() int32

GetCatalogItemID returns the CatalogItemID field if non-nil, zero value otherwise.

GetCatalogItemIDOk

func (o *CartItem) GetCatalogItemIDOk() (int32, bool)

GetCatalogItemIDOk returns a tuple with the CatalogItemID field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

HasCatalogItemID

func (o *CartItem) HasCatalogItemID() bool

HasCatalogItemID returns a boolean if a field has been set.

SetCatalogItemID

func (o *CartItem) SetCatalogItemID(v int32)

SetCatalogItemID gets a reference to the given int32 and assigns it to the CatalogItemID field.

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