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] |
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
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
func (o *AddProductToOrder) GetExternalLineId() int32
GetExternalLineId returns the ExternalLineId field if non-nil, zero value otherwise.
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.
func (o *AddProductToOrder) SetExternalLineId(v int32)
SetExternalLineId sets ExternalLineId field to given value.
func (o *AddProductToOrder) HasExternalLineId() bool
HasExternalLineId returns a boolean if a field has been set.
func (o *AddProductToOrder) SetExternalLineIdNil(b bool)
SetExternalLineIdNil sets the value for ExternalLineId to be an explicit nil
func (o *AddProductToOrder) UnsetExternalLineId()
UnsetExternalLineId ensures that no value is present for ExternalLineId, not even an explicit nil
func (o *AddProductToOrder) GetId() int32
GetId returns the Id field if non-nil, zero value otherwise.
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.
func (o *AddProductToOrder) SetId(v int32)
SetId sets Id field to given value.
func (o *AddProductToOrder) GetQuantity() int32
GetQuantity returns the Quantity field if non-nil, zero value otherwise.
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.
func (o *AddProductToOrder) SetQuantity(v int32)
SetQuantity sets Quantity field to given value.
func (o *AddProductToOrder) GetQuantityUnitOfMeasureCode() string
GetQuantityUnitOfMeasureCode returns the QuantityUnitOfMeasureCode field if non-nil, zero value otherwise.
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.
func (o *AddProductToOrder) SetQuantityUnitOfMeasureCode(v string)
SetQuantityUnitOfMeasureCode sets QuantityUnitOfMeasureCode field to given value.
func (o *AddProductToOrder) HasQuantityUnitOfMeasureCode() bool
HasQuantityUnitOfMeasureCode returns a boolean if a field has been set.
func (o *AddProductToOrder) GetGtin() string
GetGtin returns the Gtin field if non-nil, zero value otherwise.
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.
func (o *AddProductToOrder) SetGtin(v string)
SetGtin sets Gtin field to given value.
func (o *AddProductToOrder) HasGtin() bool
HasGtin returns a boolean if a field has been set.
func (o *AddProductToOrder) GetName() string
GetName returns the Name field if non-nil, zero value otherwise.
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.
func (o *AddProductToOrder) SetName(v string)
SetName sets Name field to given value.
func (o *AddProductToOrder) HasName() bool
HasName returns a boolean if a field has been set.
func (o *AddProductToOrder) GetReferenceId() string
GetReferenceId returns the ReferenceId field if non-nil, zero value otherwise.
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.
func (o *AddProductToOrder) SetReferenceId(v string)
SetReferenceId sets ReferenceId field to given value.
func (o *AddProductToOrder) GetSku() string
GetSku returns the Sku field if non-nil, zero value otherwise.
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.
func (o *AddProductToOrder) SetSku(v string)
SetSku sets Sku field to given value.
func (o *AddProductToOrder) HasSku() bool
HasSku returns a boolean if a field has been set.
func (o *AddProductToOrder) GetUnitPrice() float64
GetUnitPrice returns the UnitPrice field if non-nil, zero value otherwise.
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.
func (o *AddProductToOrder) SetUnitPrice(v float64)
SetUnitPrice sets UnitPrice field to given value.
func (o *AddProductToOrder) HasUnitPrice() bool
HasUnitPrice returns a boolean if a field has been set.
func (o *AddProductToOrder) SetUnitPriceNil(b bool)
SetUnitPriceNil sets the value for UnitPrice to be an explicit nil
func (o *AddProductToOrder) UnsetUnitPrice()
UnsetUnitPrice ensures that no value is present for UnitPrice, not even an explicit nil
func (o *AddProductToOrder) GetUpc() string
GetUpc returns the Upc field if non-nil, zero value otherwise.
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.
func (o *AddProductToOrder) SetUpc(v string)
SetUpc sets Upc field to given value.
func (o *AddProductToOrder) HasUpc() bool
HasUpc returns a boolean if a field has been set.