Skip to content

Latest commit

 

History

History
295 lines (160 loc) · 8.37 KB

AddProductToOrder.md

File metadata and controls

295 lines (160 loc) · 8.37 KB

AddProductToOrder

Properties

Name Type Description Notes
ExternalLineId Pointer to NullableInt32 Numeric assignment per item. Used as a reference number for multiple purposes such as split orders, split containers, etc. [optional]
Id int32 Unique id of the product
Quantity int32 The quantity of this product ordered
QuantityUnitOfMeasureCode Pointer to string Defined standard for measure for an item (each, inner pack, case, pallet). Values: EA, INP, CS and PL [optional]
Gtin Pointer to string Global Trade Item Number - unique and internationally recognized identifier assigned to item by company GS1 [optional]
Name Pointer to string Name of the product. Required if there is not an existing ShipBob product with a matching reference_id value. [optional]
ReferenceId string Unique reference id of the product
Sku Pointer to string Product SKU [optional]
UnitPrice Pointer to NullableFloat64 Price for one item [optional]
Upc Pointer to string Universal Product Code - Unique external identifier [optional]

Methods

NewAddProductToOrder

func NewAddProductToOrder(id int32, quantity int32, referenceId string, ) *AddProductToOrder

NewAddProductToOrder instantiates a new AddProductToOrder 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

NewAddProductToOrderWithDefaults

func NewAddProductToOrderWithDefaults() *AddProductToOrder

NewAddProductToOrderWithDefaults instantiates a new AddProductToOrder 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

GetExternalLineId

func (o *AddProductToOrder) GetExternalLineId() int32

GetExternalLineId returns the ExternalLineId field if non-nil, zero value otherwise.

GetExternalLineIdOk

func (o *AddProductToOrder) GetExternalLineIdOk() (*int32, bool)

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

SetExternalLineId

func (o *AddProductToOrder) SetExternalLineId(v int32)

SetExternalLineId sets ExternalLineId field to given value.

HasExternalLineId

func (o *AddProductToOrder) HasExternalLineId() bool

HasExternalLineId returns a boolean if a field has been set.

SetExternalLineIdNil

func (o *AddProductToOrder) SetExternalLineIdNil(b bool)

SetExternalLineIdNil sets the value for ExternalLineId to be an explicit nil

UnsetExternalLineId

func (o *AddProductToOrder) UnsetExternalLineId()

UnsetExternalLineId ensures that no value is present for ExternalLineId, not even an explicit nil

GetId

func (o *AddProductToOrder) GetId() int32

GetId returns the Id field if non-nil, zero value otherwise.

GetIdOk

func (o *AddProductToOrder) GetIdOk() (*int32, bool)

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

SetId

func (o *AddProductToOrder) SetId(v int32)

SetId sets Id field to given value.

GetQuantity

func (o *AddProductToOrder) GetQuantity() int32

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

GetQuantityOk

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

SetQuantity

func (o *AddProductToOrder) SetQuantity(v int32)

SetQuantity sets Quantity field to given value.

GetQuantityUnitOfMeasureCode

func (o *AddProductToOrder) GetQuantityUnitOfMeasureCode() string

GetQuantityUnitOfMeasureCode returns the QuantityUnitOfMeasureCode field if non-nil, zero value otherwise.

GetQuantityUnitOfMeasureCodeOk

func (o *AddProductToOrder) GetQuantityUnitOfMeasureCodeOk() (*string, bool)

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

SetQuantityUnitOfMeasureCode

func (o *AddProductToOrder) SetQuantityUnitOfMeasureCode(v string)

SetQuantityUnitOfMeasureCode sets QuantityUnitOfMeasureCode field to given value.

HasQuantityUnitOfMeasureCode

func (o *AddProductToOrder) HasQuantityUnitOfMeasureCode() bool

HasQuantityUnitOfMeasureCode returns a boolean if a field has been set.

GetGtin

func (o *AddProductToOrder) GetGtin() string

GetGtin returns the Gtin field if non-nil, zero value otherwise.

GetGtinOk

func (o *AddProductToOrder) GetGtinOk() (*string, bool)

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

SetGtin

func (o *AddProductToOrder) SetGtin(v string)

SetGtin sets Gtin field to given value.

HasGtin

func (o *AddProductToOrder) HasGtin() bool

HasGtin returns a boolean if a field has been set.

GetName

func (o *AddProductToOrder) GetName() string

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

GetNameOk

func (o *AddProductToOrder) 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 *AddProductToOrder) SetName(v string)

SetName sets Name field to given value.

HasName

func (o *AddProductToOrder) HasName() bool

HasName returns a boolean if a field has been set.

GetReferenceId

func (o *AddProductToOrder) GetReferenceId() string

GetReferenceId returns the ReferenceId field if non-nil, zero value otherwise.

GetReferenceIdOk

func (o *AddProductToOrder) GetReferenceIdOk() (*string, bool)

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

SetReferenceId

func (o *AddProductToOrder) SetReferenceId(v string)

SetReferenceId sets ReferenceId field to given value.

GetSku

func (o *AddProductToOrder) GetSku() string

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

GetSkuOk

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

SetSku

func (o *AddProductToOrder) SetSku(v string)

SetSku sets Sku field to given value.

HasSku

func (o *AddProductToOrder) HasSku() bool

HasSku returns a boolean if a field has been set.

GetUnitPrice

func (o *AddProductToOrder) GetUnitPrice() float64

GetUnitPrice returns the UnitPrice field if non-nil, zero value otherwise.

GetUnitPriceOk

func (o *AddProductToOrder) GetUnitPriceOk() (*float64, bool)

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

SetUnitPrice

func (o *AddProductToOrder) SetUnitPrice(v float64)

SetUnitPrice sets UnitPrice field to given value.

HasUnitPrice

func (o *AddProductToOrder) HasUnitPrice() bool

HasUnitPrice returns a boolean if a field has been set.

SetUnitPriceNil

func (o *AddProductToOrder) SetUnitPriceNil(b bool)

SetUnitPriceNil sets the value for UnitPrice to be an explicit nil

UnsetUnitPrice

func (o *AddProductToOrder) UnsetUnitPrice()

UnsetUnitPrice ensures that no value is present for UnitPrice, not even an explicit nil

GetUpc

func (o *AddProductToOrder) GetUpc() string

GetUpc returns the Upc field if non-nil, zero value otherwise.

GetUpcOk

func (o *AddProductToOrder) GetUpcOk() (*string, bool)

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

SetUpc

func (o *AddProductToOrder) SetUpc(v string)

SetUpc sets Upc field to given value.

HasUpc

func (o *AddProductToOrder) HasUpc() bool

HasUpc returns a boolean if a field has been set.

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