Name | Type | Description | Notes |
---|---|---|---|
OrderID | string | The order's ID that is returned from GrabFood. Refer to FAQs for more details about orderID and shortOrderNumber. | |
ShortOrderNumber | string | The GrabFood short order number. This is unique for each merchant per day. Refer to FAQs for more details about orderID and shortOrderNumber. | |
MerchantID | string | The merchant's ID that is in GrabFood's database. | |
PartnerMerchantID | Pointer to string | The merchant's ID that is on the partner's database. | [optional] |
PaymentType | string | The payment method used. Refer to FAQs for more details about paymentType. | |
Cutlery | bool | The boolean value to indicate whether cutlery are needed or not. Refer to FAQs for more details about cutlery. | |
OrderTime | string | The UTC time that a consumer places the order, based on ISO_8601/RFC3339. | |
SubmitTime | Pointer to time.Time | The order submit time, based on ISO_8601/RFC3339. Only present in the List Orders response. | [optional] |
CompleteTime | Pointer to time.Time | The order complete time, based on ISO_8601/RFC3339. Only present in the List Orders response. | [optional] |
ScheduledTime | Pointer to string | The order scheduled time, based on ISO_8601/RFC3339. Empty for non-scheduled orders. | [optional] |
OrderState | Pointer to string | The state of the order. Only present in the List Orders response. Refer to Order States. | [optional] |
Currency | Currency | ||
FeatureFlags | OrderFeatureFlags | ||
Items | []OrderItem | The items in an array of JSON Object. Refer to Items for more information. | |
Campaigns | Pointer to []OrderCampaign | The campaigns that are applicable for the order.`null` when there is no campaign applied. | [optional] |
Promos | Pointer to []OrderPromo | An array of promotion objects. Only promotions that are funded by merchants will be sent. | [optional] |
Price | OrderPrice | ||
DineIn | Pointer to DineIn | [optional] | |
Receiver | Pointer to Receiver | [optional] | |
OrderReadyEstimation | Pointer to OrderReadyEstimation | [optional] | |
MembershipID | Pointer to string | Membership ID for loyalty project. Only present for loyalty program partners. | [optional] |
func NewOrder(orderID string, shortOrderNumber string, merchantID string, paymentType string, cutlery bool, orderTime string, currency Currency, featureFlags OrderFeatureFlags, items []OrderItem, price OrderPrice, ) *Order
NewOrder instantiates a new Order 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 NewOrderWithDefaults() *Order
NewOrderWithDefaults instantiates a new Order 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 *Order) GetOrderID() string
GetOrderID returns the OrderID field if non-nil, zero value otherwise.
func (o *Order) 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 *Order) SetOrderID(v string)
SetOrderID sets OrderID field to given value.
func (o *Order) GetShortOrderNumber() string
GetShortOrderNumber returns the ShortOrderNumber field if non-nil, zero value otherwise.
func (o *Order) GetShortOrderNumberOk() (*string, bool)
GetShortOrderNumberOk returns a tuple with the ShortOrderNumber field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *Order) SetShortOrderNumber(v string)
SetShortOrderNumber sets ShortOrderNumber field to given value.
func (o *Order) GetMerchantID() string
GetMerchantID returns the MerchantID field if non-nil, zero value otherwise.
func (o *Order) 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 *Order) SetMerchantID(v string)
SetMerchantID sets MerchantID field to given value.
func (o *Order) GetPartnerMerchantID() string
GetPartnerMerchantID returns the PartnerMerchantID field if non-nil, zero value otherwise.
func (o *Order) GetPartnerMerchantIDOk() (*string, bool)
GetPartnerMerchantIDOk returns a tuple with the PartnerMerchantID field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *Order) SetPartnerMerchantID(v string)
SetPartnerMerchantID sets PartnerMerchantID field to given value.
func (o *Order) HasPartnerMerchantID() bool
HasPartnerMerchantID returns a boolean if a field has been set.
func (o *Order) GetPaymentType() string
GetPaymentType returns the PaymentType field if non-nil, zero value otherwise.
func (o *Order) GetPaymentTypeOk() (*string, bool)
GetPaymentTypeOk returns a tuple with the PaymentType field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *Order) SetPaymentType(v string)
SetPaymentType sets PaymentType field to given value.
func (o *Order) GetCutlery() bool
GetCutlery returns the Cutlery field if non-nil, zero value otherwise.
func (o *Order) GetCutleryOk() (*bool, bool)
GetCutleryOk returns a tuple with the Cutlery field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *Order) SetCutlery(v bool)
SetCutlery sets Cutlery field to given value.
func (o *Order) GetOrderTime() string
GetOrderTime returns the OrderTime field if non-nil, zero value otherwise.
func (o *Order) GetOrderTimeOk() (*string, bool)
GetOrderTimeOk returns a tuple with the OrderTime field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *Order) SetOrderTime(v string)
SetOrderTime sets OrderTime field to given value.
func (o *Order) GetSubmitTime() time.Time
GetSubmitTime returns the SubmitTime field if non-nil, zero value otherwise.
func (o *Order) GetSubmitTimeOk() (*time.Time, bool)
GetSubmitTimeOk returns a tuple with the SubmitTime field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *Order) SetSubmitTime(v time.Time)
SetSubmitTime sets SubmitTime field to given value.
func (o *Order) HasSubmitTime() bool
HasSubmitTime returns a boolean if a field has been set.
func (o *Order) GetCompleteTime() time.Time
GetCompleteTime returns the CompleteTime field if non-nil, zero value otherwise.
func (o *Order) GetCompleteTimeOk() (*time.Time, bool)
GetCompleteTimeOk returns a tuple with the CompleteTime field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *Order) SetCompleteTime(v time.Time)
SetCompleteTime sets CompleteTime field to given value.
func (o *Order) HasCompleteTime() bool
HasCompleteTime returns a boolean if a field has been set.
func (o *Order) GetScheduledTime() string
GetScheduledTime returns the ScheduledTime field if non-nil, zero value otherwise.
func (o *Order) GetScheduledTimeOk() (*string, bool)
GetScheduledTimeOk returns a tuple with the ScheduledTime field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *Order) SetScheduledTime(v string)
SetScheduledTime sets ScheduledTime field to given value.
func (o *Order) HasScheduledTime() bool
HasScheduledTime returns a boolean if a field has been set.
func (o *Order) GetOrderState() string
GetOrderState returns the OrderState field if non-nil, zero value otherwise.
func (o *Order) GetOrderStateOk() (*string, bool)
GetOrderStateOk returns a tuple with the OrderState field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *Order) SetOrderState(v string)
SetOrderState sets OrderState field to given value.
func (o *Order) HasOrderState() bool
HasOrderState returns a boolean if a field has been set.
func (o *Order) GetCurrency() Currency
GetCurrency returns the Currency field if non-nil, zero value otherwise.
func (o *Order) GetCurrencyOk() (*Currency, bool)
GetCurrencyOk returns a tuple with the Currency field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *Order) SetCurrency(v Currency)
SetCurrency sets Currency field to given value.
func (o *Order) GetFeatureFlags() OrderFeatureFlags
GetFeatureFlags returns the FeatureFlags field if non-nil, zero value otherwise.
func (o *Order) GetFeatureFlagsOk() (*OrderFeatureFlags, bool)
GetFeatureFlagsOk returns a tuple with the FeatureFlags field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *Order) SetFeatureFlags(v OrderFeatureFlags)
SetFeatureFlags sets FeatureFlags field to given value.
func (o *Order) GetItems() []OrderItem
GetItems returns the Items field if non-nil, zero value otherwise.
func (o *Order) GetItemsOk() (*[]OrderItem, bool)
GetItemsOk returns a tuple with the Items field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *Order) SetItems(v []OrderItem)
SetItems sets Items field to given value.
func (o *Order) GetCampaigns() []OrderCampaign
GetCampaigns returns the Campaigns field if non-nil, zero value otherwise.
func (o *Order) GetCampaignsOk() (*[]OrderCampaign, bool)
GetCampaignsOk returns a tuple with the Campaigns field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *Order) SetCampaigns(v []OrderCampaign)
SetCampaigns sets Campaigns field to given value.
func (o *Order) HasCampaigns() bool
HasCampaigns returns a boolean if a field has been set.
func (o *Order) SetCampaignsNil(b bool)
SetCampaignsNil sets the value for Campaigns to be an explicit nil
func (o *Order) UnsetCampaigns()
UnsetCampaigns ensures that no value is present for Campaigns, not even an explicit nil
func (o *Order) GetPromos() []OrderPromo
GetPromos returns the Promos field if non-nil, zero value otherwise.
func (o *Order) GetPromosOk() (*[]OrderPromo, bool)
GetPromosOk returns a tuple with the Promos field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *Order) SetPromos(v []OrderPromo)
SetPromos sets Promos field to given value.
func (o *Order) HasPromos() bool
HasPromos returns a boolean if a field has been set.
func (o *Order) GetPrice() OrderPrice
GetPrice returns the Price field if non-nil, zero value otherwise.
func (o *Order) GetPriceOk() (*OrderPrice, 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.
func (o *Order) SetPrice(v OrderPrice)
SetPrice sets Price field to given value.
func (o *Order) GetDineIn() DineIn
GetDineIn returns the DineIn field if non-nil, zero value otherwise.
func (o *Order) GetDineInOk() (*DineIn, bool)
GetDineInOk returns a tuple with the DineIn field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *Order) SetDineIn(v DineIn)
SetDineIn sets DineIn field to given value.
func (o *Order) HasDineIn() bool
HasDineIn returns a boolean if a field has been set.
func (o *Order) GetReceiver() Receiver
GetReceiver returns the Receiver field if non-nil, zero value otherwise.
func (o *Order) GetReceiverOk() (*Receiver, bool)
GetReceiverOk returns a tuple with the Receiver field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *Order) SetReceiver(v Receiver)
SetReceiver sets Receiver field to given value.
func (o *Order) HasReceiver() bool
HasReceiver returns a boolean if a field has been set.
func (o *Order) GetOrderReadyEstimation() OrderReadyEstimation
GetOrderReadyEstimation returns the OrderReadyEstimation field if non-nil, zero value otherwise.
func (o *Order) GetOrderReadyEstimationOk() (*OrderReadyEstimation, bool)
GetOrderReadyEstimationOk returns a tuple with the OrderReadyEstimation field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *Order) SetOrderReadyEstimation(v OrderReadyEstimation)
SetOrderReadyEstimation sets OrderReadyEstimation field to given value.
func (o *Order) HasOrderReadyEstimation() bool
HasOrderReadyEstimation returns a boolean if a field has been set.
func (o *Order) GetMembershipID() string
GetMembershipID returns the MembershipID field if non-nil, zero value otherwise.
func (o *Order) GetMembershipIDOk() (*string, bool)
GetMembershipIDOk returns a tuple with the MembershipID field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *Order) SetMembershipID(v string)
SetMembershipID sets MembershipID field to given value.
func (o *Order) HasMembershipID() bool
HasMembershipID returns a boolean if a field has been set.