Name | Type | Description | Notes |
---|---|---|---|
MerchantID | string | The merchant's ID that is in GrabFood's database. | |
OrderID | string | The order's ID that is returned from GrabFood. Refer to FAQs for more details about orderID and shortOrderNumber. | |
State | string | The current order state. For takeaway orders, only `DELIVERED` and `CANCELLED` states are pushed. | |
DriverETA | Pointer to NullableInt32 | The driver's estimated of arrival (ETA) in seconds when the state is `DRIVER_ALLOCATED`. | [optional] |
Code | Pointer to string | The current order's sub-state. This is in free text so you should only use for reference. Grab may use this for troubleshooting. If you want some analysis, kindly use `state` instead. | [optional] |
Message | Pointer to string | Additional information to explain the current order state. May be system status or human entered message. | [optional] |
func NewOrderStateRequest(merchantID string, orderID string, state string, ) *OrderStateRequest
NewOrderStateRequest instantiates a new OrderStateRequest 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 NewOrderStateRequestWithDefaults() *OrderStateRequest
NewOrderStateRequestWithDefaults instantiates a new OrderStateRequest 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 *OrderStateRequest) GetMerchantID() string
GetMerchantID returns the MerchantID field if non-nil, zero value otherwise.
func (o *OrderStateRequest) GetMerchantIDOk() (*string, bool)
GetMerchantIDOk returns a tuple with the MerchantID field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *OrderStateRequest) SetMerchantID(v string)
SetMerchantID sets MerchantID field to given value.
func (o *OrderStateRequest) GetOrderID() string
GetOrderID returns the OrderID field if non-nil, zero value otherwise.
func (o *OrderStateRequest) GetOrderIDOk() (*string, bool)
GetOrderIDOk returns a tuple with the OrderID field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *OrderStateRequest) SetOrderID(v string)
SetOrderID sets OrderID field to given value.
func (o *OrderStateRequest) GetState() string
GetState returns the State field if non-nil, zero value otherwise.
func (o *OrderStateRequest) GetStateOk() (*string, bool)
GetStateOk returns a tuple with the State field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *OrderStateRequest) SetState(v string)
SetState sets State field to given value.
func (o *OrderStateRequest) GetDriverETA() int32
GetDriverETA returns the DriverETA field if non-nil, zero value otherwise.
func (o *OrderStateRequest) GetDriverETAOk() (*int32, bool)
GetDriverETAOk returns a tuple with the DriverETA field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *OrderStateRequest) SetDriverETA(v int32)
SetDriverETA sets DriverETA field to given value.
func (o *OrderStateRequest) HasDriverETA() bool
HasDriverETA returns a boolean if a field has been set.
func (o *OrderStateRequest) SetDriverETANil(b bool)
SetDriverETANil sets the value for DriverETA to be an explicit nil
func (o *OrderStateRequest) UnsetDriverETA()
UnsetDriverETA ensures that no value is present for DriverETA, not even an explicit nil
func (o *OrderStateRequest) GetCode() string
GetCode returns the Code field if non-nil, zero value otherwise.
func (o *OrderStateRequest) GetCodeOk() (*string, bool)
GetCodeOk returns a tuple with the Code field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *OrderStateRequest) SetCode(v string)
SetCode sets Code field to given value.
func (o *OrderStateRequest) HasCode() bool
HasCode returns a boolean if a field has been set.
func (o *OrderStateRequest) GetMessage() string
GetMessage returns the Message field if non-nil, zero value otherwise.
func (o *OrderStateRequest) GetMessageOk() (*string, bool)
GetMessageOk returns a tuple with the Message field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *OrderStateRequest) SetMessage(v string)
SetMessage sets Message field to given value.
func (o *OrderStateRequest) HasMessage() bool
HasMessage returns a boolean if a field has been set.