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 NewSubmitOrderRequest(orderID string, shortOrderNumber string, merchantID string, paymentType string, cutlery bool, orderTime string, currency Currency, featureFlags OrderFeatureFlags, items []OrderItem, price OrderPrice, ) *SubmitOrderRequest
NewSubmitOrderRequest instantiates a new SubmitOrderRequest 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 NewSubmitOrderRequestWithDefaults() *SubmitOrderRequest
NewSubmitOrderRequestWithDefaults instantiates a new SubmitOrderRequest 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 *SubmitOrderRequest) GetOrderID() string
GetOrderID returns the OrderID field if non-nil, zero value otherwise.
func (o *SubmitOrderRequest) 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 *SubmitOrderRequest) SetOrderID(v string)
SetOrderID sets OrderID field to given value.
func (o *SubmitOrderRequest) GetShortOrderNumber() string
GetShortOrderNumber returns the ShortOrderNumber field if non-nil, zero value otherwise.
func (o *SubmitOrderRequest) 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 *SubmitOrderRequest) SetShortOrderNumber(v string)
SetShortOrderNumber sets ShortOrderNumber field to given value.
func (o *SubmitOrderRequest) GetMerchantID() string
GetMerchantID returns the MerchantID field if non-nil, zero value otherwise.
func (o *SubmitOrderRequest) 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 *SubmitOrderRequest) SetMerchantID(v string)
SetMerchantID sets MerchantID field to given value.
func (o *SubmitOrderRequest) GetPartnerMerchantID() string
GetPartnerMerchantID returns the PartnerMerchantID field if non-nil, zero value otherwise.
func (o *SubmitOrderRequest) 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 *SubmitOrderRequest) SetPartnerMerchantID(v string)
SetPartnerMerchantID sets PartnerMerchantID field to given value.
func (o *SubmitOrderRequest) HasPartnerMerchantID() bool
HasPartnerMerchantID returns a boolean if a field has been set.
func (o *SubmitOrderRequest) GetPaymentType() string
GetPaymentType returns the PaymentType field if non-nil, zero value otherwise.
func (o *SubmitOrderRequest) 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 *SubmitOrderRequest) SetPaymentType(v string)
SetPaymentType sets PaymentType field to given value.
func (o *SubmitOrderRequest) GetCutlery() bool
GetCutlery returns the Cutlery field if non-nil, zero value otherwise.
func (o *SubmitOrderRequest) 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 *SubmitOrderRequest) SetCutlery(v bool)
SetCutlery sets Cutlery field to given value.
func (o *SubmitOrderRequest) GetOrderTime() string
GetOrderTime returns the OrderTime field if non-nil, zero value otherwise.
func (o *SubmitOrderRequest) 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 *SubmitOrderRequest) SetOrderTime(v string)
SetOrderTime sets OrderTime field to given value.
func (o *SubmitOrderRequest) GetSubmitTime() time.Time
GetSubmitTime returns the SubmitTime field if non-nil, zero value otherwise.
func (o *SubmitOrderRequest) 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 *SubmitOrderRequest) SetSubmitTime(v time.Time)
SetSubmitTime sets SubmitTime field to given value.
func (o *SubmitOrderRequest) HasSubmitTime() bool
HasSubmitTime returns a boolean if a field has been set.
func (o *SubmitOrderRequest) GetCompleteTime() time.Time
GetCompleteTime returns the CompleteTime field if non-nil, zero value otherwise.
func (o *SubmitOrderRequest) 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 *SubmitOrderRequest) SetCompleteTime(v time.Time)
SetCompleteTime sets CompleteTime field to given value.
func (o *SubmitOrderRequest) HasCompleteTime() bool
HasCompleteTime returns a boolean if a field has been set.
func (o *SubmitOrderRequest) GetScheduledTime() string
GetScheduledTime returns the ScheduledTime field if non-nil, zero value otherwise.
func (o *SubmitOrderRequest) 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 *SubmitOrderRequest) SetScheduledTime(v string)
SetScheduledTime sets ScheduledTime field to given value.
func (o *SubmitOrderRequest) HasScheduledTime() bool
HasScheduledTime returns a boolean if a field has been set.
func (o *SubmitOrderRequest) GetOrderState() string
GetOrderState returns the OrderState field if non-nil, zero value otherwise.
func (o *SubmitOrderRequest) 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 *SubmitOrderRequest) SetOrderState(v string)
SetOrderState sets OrderState field to given value.
func (o *SubmitOrderRequest) HasOrderState() bool
HasOrderState returns a boolean if a field has been set.
func (o *SubmitOrderRequest) GetCurrency() Currency
GetCurrency returns the Currency field if non-nil, zero value otherwise.
func (o *SubmitOrderRequest) 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 *SubmitOrderRequest) SetCurrency(v Currency)
SetCurrency sets Currency field to given value.
func (o *SubmitOrderRequest) GetFeatureFlags() OrderFeatureFlags
GetFeatureFlags returns the FeatureFlags field if non-nil, zero value otherwise.
func (o *SubmitOrderRequest) 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 *SubmitOrderRequest) SetFeatureFlags(v OrderFeatureFlags)
SetFeatureFlags sets FeatureFlags field to given value.
func (o *SubmitOrderRequest) GetItems() []OrderItem
GetItems returns the Items field if non-nil, zero value otherwise.
func (o *SubmitOrderRequest) 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 *SubmitOrderRequest) SetItems(v []OrderItem)
SetItems sets Items field to given value.
func (o *SubmitOrderRequest) GetCampaigns() []OrderCampaign
GetCampaigns returns the Campaigns field if non-nil, zero value otherwise.
func (o *SubmitOrderRequest) 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 *SubmitOrderRequest) SetCampaigns(v []OrderCampaign)
SetCampaigns sets Campaigns field to given value.
func (o *SubmitOrderRequest) HasCampaigns() bool
HasCampaigns returns a boolean if a field has been set.
func (o *SubmitOrderRequest) SetCampaignsNil(b bool)
SetCampaignsNil sets the value for Campaigns to be an explicit nil
func (o *SubmitOrderRequest) UnsetCampaigns()
UnsetCampaigns ensures that no value is present for Campaigns, not even an explicit nil
func (o *SubmitOrderRequest) GetPromos() []OrderPromo
GetPromos returns the Promos field if non-nil, zero value otherwise.
func (o *SubmitOrderRequest) 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 *SubmitOrderRequest) SetPromos(v []OrderPromo)
SetPromos sets Promos field to given value.
func (o *SubmitOrderRequest) HasPromos() bool
HasPromos returns a boolean if a field has been set.
func (o *SubmitOrderRequest) GetPrice() OrderPrice
GetPrice returns the Price field if non-nil, zero value otherwise.
func (o *SubmitOrderRequest) 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 *SubmitOrderRequest) SetPrice(v OrderPrice)
SetPrice sets Price field to given value.
func (o *SubmitOrderRequest) GetDineIn() DineIn
GetDineIn returns the DineIn field if non-nil, zero value otherwise.
func (o *SubmitOrderRequest) 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 *SubmitOrderRequest) SetDineIn(v DineIn)
SetDineIn sets DineIn field to given value.
func (o *SubmitOrderRequest) HasDineIn() bool
HasDineIn returns a boolean if a field has been set.
func (o *SubmitOrderRequest) GetReceiver() Receiver
GetReceiver returns the Receiver field if non-nil, zero value otherwise.
func (o *SubmitOrderRequest) 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 *SubmitOrderRequest) SetReceiver(v Receiver)
SetReceiver sets Receiver field to given value.
func (o *SubmitOrderRequest) HasReceiver() bool
HasReceiver returns a boolean if a field has been set.
func (o *SubmitOrderRequest) GetOrderReadyEstimation() OrderReadyEstimation
GetOrderReadyEstimation returns the OrderReadyEstimation field if non-nil, zero value otherwise.
func (o *SubmitOrderRequest) 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 *SubmitOrderRequest) SetOrderReadyEstimation(v OrderReadyEstimation)
SetOrderReadyEstimation sets OrderReadyEstimation field to given value.
func (o *SubmitOrderRequest) HasOrderReadyEstimation() bool
HasOrderReadyEstimation returns a boolean if a field has been set.
func (o *SubmitOrderRequest) GetMembershipID() string
GetMembershipID returns the MembershipID field if non-nil, zero value otherwise.
func (o *SubmitOrderRequest) 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 *SubmitOrderRequest) SetMembershipID(v string)
SetMembershipID sets MembershipID field to given value.
func (o *SubmitOrderRequest) HasMembershipID() bool
HasMembershipID returns a boolean if a field has been set.