Skip to content

Latest commit

 

History

History
536 lines (287 loc) · 15.4 KB

Order.md

File metadata and controls

536 lines (287 loc) · 15.4 KB

Order

Properties

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]

Methods

NewOrder

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

NewOrderWithDefaults

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

GetOrderID

func (o *Order) GetOrderID() string

GetOrderID returns the OrderID field if non-nil, zero value otherwise.

GetOrderIDOk

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.

SetOrderID

func (o *Order) SetOrderID(v string)

SetOrderID sets OrderID field to given value.

GetShortOrderNumber

func (o *Order) GetShortOrderNumber() string

GetShortOrderNumber returns the ShortOrderNumber field if non-nil, zero value otherwise.

GetShortOrderNumberOk

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.

SetShortOrderNumber

func (o *Order) SetShortOrderNumber(v string)

SetShortOrderNumber sets ShortOrderNumber field to given value.

GetMerchantID

func (o *Order) GetMerchantID() string

GetMerchantID returns the MerchantID field if non-nil, zero value otherwise.

GetMerchantIDOk

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.

SetMerchantID

func (o *Order) SetMerchantID(v string)

SetMerchantID sets MerchantID field to given value.

GetPartnerMerchantID

func (o *Order) GetPartnerMerchantID() string

GetPartnerMerchantID returns the PartnerMerchantID field if non-nil, zero value otherwise.

GetPartnerMerchantIDOk

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.

SetPartnerMerchantID

func (o *Order) SetPartnerMerchantID(v string)

SetPartnerMerchantID sets PartnerMerchantID field to given value.

HasPartnerMerchantID

func (o *Order) HasPartnerMerchantID() bool

HasPartnerMerchantID returns a boolean if a field has been set.

GetPaymentType

func (o *Order) GetPaymentType() string

GetPaymentType returns the PaymentType field if non-nil, zero value otherwise.

GetPaymentTypeOk

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.

SetPaymentType

func (o *Order) SetPaymentType(v string)

SetPaymentType sets PaymentType field to given value.

GetCutlery

func (o *Order) GetCutlery() bool

GetCutlery returns the Cutlery field if non-nil, zero value otherwise.

GetCutleryOk

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.

SetCutlery

func (o *Order) SetCutlery(v bool)

SetCutlery sets Cutlery field to given value.

GetOrderTime

func (o *Order) GetOrderTime() string

GetOrderTime returns the OrderTime field if non-nil, zero value otherwise.

GetOrderTimeOk

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.

SetOrderTime

func (o *Order) SetOrderTime(v string)

SetOrderTime sets OrderTime field to given value.

GetSubmitTime

func (o *Order) GetSubmitTime() time.Time

GetSubmitTime returns the SubmitTime field if non-nil, zero value otherwise.

GetSubmitTimeOk

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.

SetSubmitTime

func (o *Order) SetSubmitTime(v time.Time)

SetSubmitTime sets SubmitTime field to given value.

HasSubmitTime

func (o *Order) HasSubmitTime() bool

HasSubmitTime returns a boolean if a field has been set.

GetCompleteTime

func (o *Order) GetCompleteTime() time.Time

GetCompleteTime returns the CompleteTime field if non-nil, zero value otherwise.

GetCompleteTimeOk

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.

SetCompleteTime

func (o *Order) SetCompleteTime(v time.Time)

SetCompleteTime sets CompleteTime field to given value.

HasCompleteTime

func (o *Order) HasCompleteTime() bool

HasCompleteTime returns a boolean if a field has been set.

GetScheduledTime

func (o *Order) GetScheduledTime() string

GetScheduledTime returns the ScheduledTime field if non-nil, zero value otherwise.

GetScheduledTimeOk

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.

SetScheduledTime

func (o *Order) SetScheduledTime(v string)

SetScheduledTime sets ScheduledTime field to given value.

HasScheduledTime

func (o *Order) HasScheduledTime() bool

HasScheduledTime returns a boolean if a field has been set.

GetOrderState

func (o *Order) GetOrderState() string

GetOrderState returns the OrderState field if non-nil, zero value otherwise.

GetOrderStateOk

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.

SetOrderState

func (o *Order) SetOrderState(v string)

SetOrderState sets OrderState field to given value.

HasOrderState

func (o *Order) HasOrderState() bool

HasOrderState returns a boolean if a field has been set.

GetCurrency

func (o *Order) GetCurrency() Currency

GetCurrency returns the Currency field if non-nil, zero value otherwise.

GetCurrencyOk

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.

SetCurrency

func (o *Order) SetCurrency(v Currency)

SetCurrency sets Currency field to given value.

GetFeatureFlags

func (o *Order) GetFeatureFlags() OrderFeatureFlags

GetFeatureFlags returns the FeatureFlags field if non-nil, zero value otherwise.

GetFeatureFlagsOk

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.

SetFeatureFlags

func (o *Order) SetFeatureFlags(v OrderFeatureFlags)

SetFeatureFlags sets FeatureFlags field to given value.

GetItems

func (o *Order) GetItems() []OrderItem

GetItems returns the Items field if non-nil, zero value otherwise.

GetItemsOk

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.

SetItems

func (o *Order) SetItems(v []OrderItem)

SetItems sets Items field to given value.

GetCampaigns

func (o *Order) GetCampaigns() []OrderCampaign

GetCampaigns returns the Campaigns field if non-nil, zero value otherwise.

GetCampaignsOk

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.

SetCampaigns

func (o *Order) SetCampaigns(v []OrderCampaign)

SetCampaigns sets Campaigns field to given value.

HasCampaigns

func (o *Order) HasCampaigns() bool

HasCampaigns returns a boolean if a field has been set.

SetCampaignsNil

func (o *Order) SetCampaignsNil(b bool)

SetCampaignsNil sets the value for Campaigns to be an explicit nil

UnsetCampaigns

func (o *Order) UnsetCampaigns()

UnsetCampaigns ensures that no value is present for Campaigns, not even an explicit nil

GetPromos

func (o *Order) GetPromos() []OrderPromo

GetPromos returns the Promos field if non-nil, zero value otherwise.

GetPromosOk

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.

SetPromos

func (o *Order) SetPromos(v []OrderPromo)

SetPromos sets Promos field to given value.

HasPromos

func (o *Order) HasPromos() bool

HasPromos returns a boolean if a field has been set.

GetPrice

func (o *Order) GetPrice() OrderPrice

GetPrice returns the Price field if non-nil, zero value otherwise.

GetPriceOk

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.

SetPrice

func (o *Order) SetPrice(v OrderPrice)

SetPrice sets Price field to given value.

GetDineIn

func (o *Order) GetDineIn() DineIn

GetDineIn returns the DineIn field if non-nil, zero value otherwise.

GetDineInOk

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.

SetDineIn

func (o *Order) SetDineIn(v DineIn)

SetDineIn sets DineIn field to given value.

HasDineIn

func (o *Order) HasDineIn() bool

HasDineIn returns a boolean if a field has been set.

GetReceiver

func (o *Order) GetReceiver() Receiver

GetReceiver returns the Receiver field if non-nil, zero value otherwise.

GetReceiverOk

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.

SetReceiver

func (o *Order) SetReceiver(v Receiver)

SetReceiver sets Receiver field to given value.

HasReceiver

func (o *Order) HasReceiver() bool

HasReceiver returns a boolean if a field has been set.

GetOrderReadyEstimation

func (o *Order) GetOrderReadyEstimation() OrderReadyEstimation

GetOrderReadyEstimation returns the OrderReadyEstimation field if non-nil, zero value otherwise.

GetOrderReadyEstimationOk

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.

SetOrderReadyEstimation

func (o *Order) SetOrderReadyEstimation(v OrderReadyEstimation)

SetOrderReadyEstimation sets OrderReadyEstimation field to given value.

HasOrderReadyEstimation

func (o *Order) HasOrderReadyEstimation() bool

HasOrderReadyEstimation returns a boolean if a field has been set.

GetMembershipID

func (o *Order) GetMembershipID() string

GetMembershipID returns the MembershipID field if non-nil, zero value otherwise.

GetMembershipIDOk

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.

SetMembershipID

func (o *Order) SetMembershipID(v string)

SetMembershipID sets MembershipID field to given value.

HasMembershipID

func (o *Order) HasMembershipID() bool

HasMembershipID returns a boolean if a field has been set.

[Back to Model list] [Back to API list] [Back to README]