Name | Type | Description | Notes |
---|---|---|---|
ItemID | string | The item's ID in Grab system that can be obtained from the Submit Order Webhook request payload parameters under `items[].grabItemID`, or `items[].outOfStockInstruction.replacementGrabItemID` for item replacement. External item ID from Partner system is only supported when `ADDED` status and `isExternalItemID: true`. | |
Status | string | The item's edited status. Leave empty string if there is no change to the item. | |
Quantity | Pointer to int64 | The item's quantity. If the item is not being updated or deleted, use the original quantity. | [optional] |
IsExternalItemID | Pointer to bool | Only applicable for `ADDED`status. Indicate if the `itemID` is an external item ID. Grab checks for the items that are mapped to the provided item ID, considering their availability. If multiple Grab items are found to be mapped to the provided external item ID, the last updated item will be chosen. If no suitable record is found, an 400 error will be returned to the partner, indicating that the submitted external item ID cannot be edited. | [optional] |
func NewEditOrderItem(itemID string, status string, ) *EditOrderItem
NewEditOrderItem instantiates a new EditOrderItem 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 NewEditOrderItemWithDefaults() *EditOrderItem
NewEditOrderItemWithDefaults instantiates a new EditOrderItem 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 *EditOrderItem) GetItemID() string
GetItemID returns the ItemID field if non-nil, zero value otherwise.
func (o *EditOrderItem) GetItemIDOk() (*string, bool)
GetItemIDOk returns a tuple with the ItemID field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *EditOrderItem) SetItemID(v string)
SetItemID sets ItemID field to given value.
func (o *EditOrderItem) GetStatus() string
GetStatus returns the Status field if non-nil, zero value otherwise.
func (o *EditOrderItem) GetStatusOk() (*string, bool)
GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *EditOrderItem) SetStatus(v string)
SetStatus sets Status field to given value.
func (o *EditOrderItem) GetQuantity() int64
GetQuantity returns the Quantity field if non-nil, zero value otherwise.
func (o *EditOrderItem) GetQuantityOk() (*int64, 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 *EditOrderItem) SetQuantity(v int64)
SetQuantity sets Quantity field to given value.
func (o *EditOrderItem) HasQuantity() bool
HasQuantity returns a boolean if a field has been set.
func (o *EditOrderItem) GetIsExternalItemID() bool
GetIsExternalItemID returns the IsExternalItemID field if non-nil, zero value otherwise.
func (o *EditOrderItem) GetIsExternalItemIDOk() (*bool, bool)
GetIsExternalItemIDOk returns a tuple with the IsExternalItemID field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *EditOrderItem) SetIsExternalItemID(v bool)
SetIsExternalItemID sets IsExternalItemID field to given value.
func (o *EditOrderItem) HasIsExternalItemID() bool
HasIsExternalItemID returns a boolean if a field has been set.