Skip to content

Latest commit

 

History

History
143 lines (76 loc) · 4.32 KB

AddItemCatalogAction.md

File metadata and controls

143 lines (76 loc) · 4.32 KB

AddItemCatalogAction

Properties

Name Type Description Notes
Sku Pointer to string The unique SKU of the item to add.
Price Pointer to float32 Price of the item. [optional]
Attributes Pointer to map[string]interface{} The attributes of the item to add. [optional]
Product Pointer to Product [optional]
ReplaceIfExists Pointer to bool Indicates whether to replace the attributes of the item if the same SKU exists. Note: When set to `true`: - If you do not provide a new `price` value, the existing `price` value is retained. - If you do not provide a new `product` value, the `product` value is set to `null`. [optional] [default to false]

Methods

GetSku

func (o *AddItemCatalogAction) GetSku() string

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

GetSkuOk

func (o *AddItemCatalogAction) 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 *AddItemCatalogAction) HasSku() bool

HasSku returns a boolean if a field has been set.

SetSku

func (o *AddItemCatalogAction) SetSku(v string)

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

GetPrice

func (o *AddItemCatalogAction) GetPrice() float32

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

GetPriceOk

func (o *AddItemCatalogAction) 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 *AddItemCatalogAction) HasPrice() bool

HasPrice returns a boolean if a field has been set.

SetPrice

func (o *AddItemCatalogAction) SetPrice(v float32)

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

GetAttributes

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

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

GetAttributesOk

func (o *AddItemCatalogAction) 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 *AddItemCatalogAction) HasAttributes() bool

HasAttributes returns a boolean if a field has been set.

SetAttributes

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

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

GetProduct

func (o *AddItemCatalogAction) GetProduct() Product

GetProduct returns the Product field if non-nil, zero value otherwise.

GetProductOk

func (o *AddItemCatalogAction) GetProductOk() (Product, bool)

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

HasProduct

func (o *AddItemCatalogAction) HasProduct() bool

HasProduct returns a boolean if a field has been set.

SetProduct

func (o *AddItemCatalogAction) SetProduct(v Product)

SetProduct gets a reference to the given Product and assigns it to the Product field.

GetReplaceIfExists

func (o *AddItemCatalogAction) GetReplaceIfExists() bool

GetReplaceIfExists returns the ReplaceIfExists field if non-nil, zero value otherwise.

GetReplaceIfExistsOk

func (o *AddItemCatalogAction) GetReplaceIfExistsOk() (bool, bool)

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

HasReplaceIfExists

func (o *AddItemCatalogAction) HasReplaceIfExists() bool

HasReplaceIfExists returns a boolean if a field has been set.

SetReplaceIfExists

func (o *AddItemCatalogAction) SetReplaceIfExists(v bool)

SetReplaceIfExists gets a reference to the given bool and assigns it to the ReplaceIfExists field.

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