grabfood

package module
v1.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 14, 2025 License: MIT Imports: 21 Imported by: 0

README

Go API client for GrabFood

Overview

This API client was generated by the OpenAPI Generator project. By using the OpenAPI-spec from a remote server, you can easily generate an API client.

  • API version: 1.1.3
  • Package version: 1.0.1
  • Generator version: 7.8.0
  • Build package: org.openapitools.codegen.languages.GoClientCodegen

For more information, please visit https://developer.grab.com

Installation

go get github.com/grab/grabfood-api-sdk-go

Put the package under your project folder and add the following in import:

import grabfood "github.com/grab/grabfood-api-sdk-go"

Usage Example

In the example below, we start by acquiring an OAuth2 access token. In your applications, it's important to handle OAuth2 tokens efficiently. This means:

  • Store the received access token once it's obtained.
  • Use this stored access token for as long as it's valid.
  • Only request a new access token when the current one has expired.

By following these practices, you minimize the number of requests to the server, making your application more efficient and responsive.

You can usually determine the validity of a token by the expires_in attribute in the OAuth2 token response.

config := grabfood.NewConfiguration()
apiClient := grabfood.NewAPIClient(config)
ctx := context.WithValue(context.Background(), grabfood.ContextServerIndex, grabfood.StgEnv)

grabOauthRequest := *grabfood.NewGrabOauthRequest("client_id", "client_secret", "client_credentials", "food.partner_api")

authResp, _, _ := apiClient.GetOauthGrabAPI.GetOauthGrab(ctx).GrabOauthRequest(grabOauthRequest).Execute()

// Request a new token only when the previous one has expired.
// Can utilize the `expires_in` from *authResp.ExpiresIn to determine the validity of the token.
ACCESS_TOKEN := *authResp.AccessToken

authorization := "Bearer " + ACCESS_TOKEN
merchantID := "1-CYNGRUNGSBCCC"
resp, _, _ := apiClient.GetStoreHourAPI.GetStoreHour(ctx, merchantID).Authorization(authorization).Execute()

fmt.Printf("Response from `GetStoreHourAPI.GetStoreHour`: %+v\n", resp)

For handling webhook requests, we provide dedicated models for both requests and responses. Please refer to the list of available models provided below for more details.

Documentation for API Endpoints

The base URL for OAuth2 URIs is https://api.grab.com

For other GrabFood partner API endpoints, URIs are relative to https://partner-api.grab.com/grabfood

Class Method HTTP request Description
AcceptRejectOrderAPI AcceptRejectOrder Post /partner/v1/order/prepare Manually accept/reject orders
CancelOrderAPI CancelOrder Put /partner/v1/order/cancel Cancel an order
CheckOrderCancelableAPI CheckOrderCancelable Get /partner/v1/order/cancelable Check order cancelable
CreateCampaignAPI CreateCampaign Post /partner/v1/campaigns Create campaign
CreateSelfServeJourneyAPI CreateSelfServeJourney Post /partner/v1/self-serve/activation Create self serve journey
DeleteCampaignAPI DeleteCampaign Delete /partner/v1/campaigns/{campaign_id} Delete campaigns
EditOrderAPI EditOrder Put /partner/v1/orders/{orderID} Edit Order
GetDineinVoucherAPI GetDineinVoucher Get /partner/v1/dinein/voucher Get Dine In Voucher
GetOauthGrabAPI GetOauthGrab Post /grabid/v1/oauth2/token Get Oauth access token
GetStoreHourAPI GetStoreHour Get /partner/v2/merchants/{merchantID}/store/hours Get Store Hours
GetStoreStatusAPI GetStoreStatus Get /partner/v1/merchants/{merchantID}/store/status Get Store Status
ListCampaignAPI ListCampaign Get /partner/v1/campaigns List campaigns
ListOrdersAPI ListOrders Get /partner/v1/orders List orders
MarkOrderReadyAPI MarkOrderReady Post /partner/v1/orders/mark Mark order as ready
NotifyMembershipWebviewAPI NotifyMembershipWebview Post /partner/v1/membership/notify Notify Membership
PauseStoreAPI PauseStore Put /partner/v1/merchant/pause Pause store
RedeemDineinVoucherAPI RedeemDineinVoucher Post /partner/v1/dinein/voucher/redeem Redeem Dine In Voucher
TraceMenuSyncAPI TraceMenuSync Get /partner/v1/merchant/menu/trace Trace menu sync
UpdateCampaignAPI UpdateCampaign Put /partner/v1/campaigns/{campaign_id} Update campaign
UpdateDeliveryStateAPI UpdateDeliveryState Post /partner/v1/order/delivery Update delivery state
UpdateMenuNotificationAPI UpdateMenuNotification Post /partner/v1/merchant/menu/notification Notify Grab of updated menu
UpdateMenuRecordAPI BatchUpdateMenu Put /partner/v1/batch/menu Batch Update Menu
UpdateMenuRecordAPI UpdateMenu Put /partner/v1/menu Update menu record
UpdateOrderReadyTimeAPI UpdateOrderReadyTime Put /partner/v1/order/readytime Update new order ready time
UpdateStoreDeliveryHourAPI UpdateStoreDeliveryHour Put /partner/v1/merchants/{merchantID}/store/opening-hours Update Store Delivery Hours
UpdateStoreDineInHourAPI UpdateStoreDineInHour Put /partner/v1/merchants/{merchantID}/store/dine-in-hours Update Store Dine-in Hours
UpdateStoreSpecialHourAPI UpdateStoreSpecialHour Put /partner/v2/merchants/{merchantID}/store/special-opening-hour Update Store Special Hours

Documentation For Models

Documentation for Utility Methods

Due to the fact that model structure members are all pointers, this package contains a number of utility functions to easily obtain pointers to values of basic types. Each of these functions takes a value of the given basic type and returns a pointer to it:

  • PtrBool
  • PtrInt
  • PtrInt32
  • PtrInt64
  • PtrFloat
  • PtrFloat32
  • PtrFloat64
  • PtrString
  • PtrTime

Documentation

Index

Constants

View Source
const (
	StgEnv int = 0 // staging environment for self serve onboarding partner
	PrdEnv int = 1 // production environment
)

custom const

Variables

View Source
var (
	JsonCheck = regexp.MustCompile(`(?i:(?:application|text)/(?:[^;]+\+)?json)`)
	XmlCheck  = regexp.MustCompile(`(?i:(?:application|text)/(?:[^;]+\+)?xml)`)
)
View Source
var (
	// ContextServerIndex uses a server configuration from the index.
	ContextServerIndex = contextKey("serverIndex")

	// ContextOperationServerIndices uses a server configuration from the index mapping.
	ContextOperationServerIndices = contextKey("serverOperationIndices")

	// ContextServerVariables overrides a server configuration variables.
	ContextServerVariables = contextKey("serverVariables")

	// ContextOperationServerVariables overrides a server configuration variables using operation specific values.
	ContextOperationServerVariables = contextKey("serverOperationVariables")
)
View Source
var AllowedCancelCodeEnumValues = []CancelCode{
	1001,
	1002,
	1003,
	1004,
}

All allowed values of CancelCode enum

View Source
var AllowedCancelOrderLimitTypeEnumValues = []CancelOrderLimitType{
	"not approaching limit",
	"approaching the daily limit",
	"approaching the weekly limit",
	"approaching the monthly limit",
	"",
}

All allowed values of CancelOrderLimitType enum

Functions

func CacheExpires

func CacheExpires(r *http.Response) time.Time

CacheExpires helper function to determine remaining time before repeating a request.

func IsNil

func IsNil(i interface{}) bool

IsNil checks if an input is nil

func PtrBool

func PtrBool(v bool) *bool

PtrBool is a helper routine that returns a pointer to given boolean value.

func PtrFloat32

func PtrFloat32(v float32) *float32

PtrFloat32 is a helper routine that returns a pointer to given float value.

func PtrFloat64

func PtrFloat64(v float64) *float64

PtrFloat64 is a helper routine that returns a pointer to given float value.

func PtrInt

func PtrInt(v int) *int

PtrInt is a helper routine that returns a pointer to given integer value.

func PtrInt32

func PtrInt32(v int32) *int32

PtrInt32 is a helper routine that returns a pointer to given integer value.

func PtrInt64

func PtrInt64(v int64) *int64

PtrInt64 is a helper routine that returns a pointer to given integer value.

func PtrString

func PtrString(v string) *string

PtrString is a helper routine that returns a pointer to given string value.

func PtrTime

func PtrTime(v time.Time) *time.Time

PtrTime is helper routine that returns a pointer to given Time value.

Types

type APIClient

type APIClient struct {
	AcceptRejectOrderAPI *AcceptRejectOrderAPIService

	CancelOrderAPI *CancelOrderAPIService

	CheckOrderCancelableAPI *CheckOrderCancelableAPIService

	CreateCampaignAPI *CreateCampaignAPIService

	CreateSelfServeJourneyAPI *CreateSelfServeJourneyAPIService

	DeleteCampaignAPI *DeleteCampaignAPIService

	EditOrderAPI *EditOrderAPIService

	GetDineinVoucherAPI *GetDineinVoucherAPIService

	GetOauthGrabAPI *GetOauthGrabAPIService

	GetStoreHourAPI *GetStoreHourAPIService

	GetStoreStatusAPI *GetStoreStatusAPIService

	ListCampaignAPI *ListCampaignAPIService

	ListOrdersAPI *ListOrdersAPIService

	MarkOrderReadyAPI *MarkOrderReadyAPIService

	NotifyMembershipWebviewAPI *NotifyMembershipWebviewAPIService

	PauseStoreAPI *PauseStoreAPIService

	RedeemDineinVoucherAPI *RedeemDineinVoucherAPIService

	TraceMenuSyncAPI *TraceMenuSyncAPIService

	UpdateCampaignAPI *UpdateCampaignAPIService

	UpdateDeliveryStateAPI *UpdateDeliveryStateAPIService

	UpdateMenuNotificationAPI *UpdateMenuNotificationAPIService

	UpdateMenuRecordAPI *UpdateMenuRecordAPIService

	UpdateOrderReadyTimeAPI *UpdateOrderReadyTimeAPIService

	UpdateStoreDeliveryHourAPI *UpdateStoreDeliveryHourAPIService

	UpdateStoreDineInHourAPI *UpdateStoreDineInHourAPIService

	UpdateStoreSpecialHourAPI *UpdateStoreSpecialHourAPIService
	// contains filtered or unexported fields
}

APIClient manages communication with the GrabFood API v1.1.3 In most cases there should be only one, shared, APIClient.

func NewAPIClient

func NewAPIClient(cfg *Configuration) *APIClient

NewAPIClient creates a new API client. Requires a userAgent string describing your application. optionally a custom http.Client to allow for advanced features such as caching.

func (*APIClient) GetConfig

func (c *APIClient) GetConfig() *Configuration

Allow modification of underlying config for alternate implementations and testing Caution: modifying the configuration while live can cause data races and potentially unwanted behavior

type APIKey

type APIKey struct {
	Key    string
	Prefix string
}

APIKey provides API key based authentication to a request passed via context using ContextAPIKey

type APIResponse

type APIResponse struct {
	*http.Response `json:"-"`
	Message        string `json:"message,omitempty"`
	// Operation is the name of the OpenAPI operation.
	Operation string `json:"operation,omitempty"`
	// RequestURL is the request URL. This value is always available, even if the
	// embedded *http.Response is nil.
	RequestURL string `json:"url,omitempty"`
	// Method is the HTTP method used for the request.  This value is always
	// available, even if the embedded *http.Response is nil.
	Method string `json:"method,omitempty"`
	// Payload holds the contents of the response body (which may be nil or empty).
	// This is provided here as the raw response.Body() reader will have already
	// been drained.
	Payload []byte `json:"-"`
}

APIResponse stores the API response returned by the server.

func NewAPIResponse

func NewAPIResponse(r *http.Response) *APIResponse

NewAPIResponse returns a new APIResponse object.

func NewAPIResponseWithError

func NewAPIResponseWithError(errorMessage string) *APIResponse

NewAPIResponseWithError returns a new APIResponse object with the provided error message.

type AcceptOrderRequest

type AcceptOrderRequest struct {
	// The order's ID that is returned from GrabFood. Refer to FAQs for more details about [orderID and shortOrderNumber](#section/Order/What's-the-difference-between-orderID-and-shortOrderNumber).
	OrderID string `json:"orderID"`
	// The order's updated state.
	ToState              string `json:"toState"`
	AdditionalProperties map[string]interface{}
}

AcceptOrderRequest The manual acceptance or rejection of an order on GrabFood.

func NewAcceptOrderRequest

func NewAcceptOrderRequest(orderID string, toState string) *AcceptOrderRequest

NewAcceptOrderRequest instantiates a new AcceptOrderRequest 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 NewAcceptOrderRequestWithDefaults

func NewAcceptOrderRequestWithDefaults() *AcceptOrderRequest

NewAcceptOrderRequestWithDefaults instantiates a new AcceptOrderRequest 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 (*AcceptOrderRequest) GetOrderID

func (o *AcceptOrderRequest) GetOrderID() string

GetOrderID returns the OrderID field value

func (*AcceptOrderRequest) GetOrderIDOk

func (o *AcceptOrderRequest) GetOrderIDOk() (*string, bool)

GetOrderIDOk returns a tuple with the OrderID field value and a boolean to check if the value has been set.

func (*AcceptOrderRequest) GetToState

func (o *AcceptOrderRequest) GetToState() string

GetToState returns the ToState field value

func (*AcceptOrderRequest) GetToStateOk

func (o *AcceptOrderRequest) GetToStateOk() (*string, bool)

GetToStateOk returns a tuple with the ToState field value and a boolean to check if the value has been set.

func (AcceptOrderRequest) MarshalJSON

func (o AcceptOrderRequest) MarshalJSON() ([]byte, error)

func (*AcceptOrderRequest) SetOrderID

func (o *AcceptOrderRequest) SetOrderID(v string)

SetOrderID sets field value

func (*AcceptOrderRequest) SetToState

func (o *AcceptOrderRequest) SetToState(v string)

SetToState sets field value

func (AcceptOrderRequest) ToMap

func (o AcceptOrderRequest) ToMap() (map[string]interface{}, error)

func (*AcceptOrderRequest) UnmarshalJSON

func (o *AcceptOrderRequest) UnmarshalJSON(data []byte) (err error)

type AcceptRejectOrderAPIService

type AcceptRejectOrderAPIService service

AcceptRejectOrderAPIService AcceptRejectOrderAPI service

func (*AcceptRejectOrderAPIService) AcceptRejectOrder

AcceptRejectOrder Manually accept/reject orders

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return ApiAcceptRejectOrderRequest

func (*AcceptRejectOrderAPIService) AcceptRejectOrderExecute

func (a *AcceptRejectOrderAPIService) AcceptRejectOrderExecute(r ApiAcceptRejectOrderRequest) (*http.Response, error)

Execute executes the request

type Address

type Address struct {
	// The delivery address' unit number.
	UnitNumber *string `json:"unitNumber,omitempty"`
	// Instructions for the delivery.
	DeliveryInstruction *string `json:"deliveryInstruction,omitempty"`
	// POI source
	PoiSource *string `json:"poiSource,omitempty"`
	// POI ID, empty when poiSource is GRAB.
	PoiID *string `json:"poiID,omitempty"`
	// The delivery address containing street name, city, postal code, and country. Has value only when poiSource is `GRAB`.
	Address *string `json:"address,omitempty"`
	// The postcode of the delivery address. Has value only when poiSource is `GRAB`.
	Postcode             *string      `json:"postcode,omitempty"`
	Coordinates          *Coordinates `json:"coordinates,omitempty"`
	AdditionalProperties map[string]interface{}
}

Address A JSON object containing the receiver’s location information.

func NewAddress

func NewAddress() *Address

NewAddress instantiates a new Address 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 NewAddressWithDefaults

func NewAddressWithDefaults() *Address

NewAddressWithDefaults instantiates a new Address 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 (*Address) GetAddress

func (o *Address) GetAddress() string

GetAddress returns the Address field value if set, zero value otherwise.

func (*Address) GetAddressOk

func (o *Address) GetAddressOk() (*string, bool)

GetAddressOk returns a tuple with the Address field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Address) GetCoordinates

func (o *Address) GetCoordinates() Coordinates

GetCoordinates returns the Coordinates field value if set, zero value otherwise.

func (*Address) GetCoordinatesOk

func (o *Address) GetCoordinatesOk() (*Coordinates, bool)

GetCoordinatesOk returns a tuple with the Coordinates field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Address) GetDeliveryInstruction

func (o *Address) GetDeliveryInstruction() string

GetDeliveryInstruction returns the DeliveryInstruction field value if set, zero value otherwise.

func (*Address) GetDeliveryInstructionOk

func (o *Address) GetDeliveryInstructionOk() (*string, bool)

GetDeliveryInstructionOk returns a tuple with the DeliveryInstruction field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Address) GetPoiID

func (o *Address) GetPoiID() string

GetPoiID returns the PoiID field value if set, zero value otherwise.

func (*Address) GetPoiIDOk

func (o *Address) GetPoiIDOk() (*string, bool)

GetPoiIDOk returns a tuple with the PoiID field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Address) GetPoiSource

func (o *Address) GetPoiSource() string

GetPoiSource returns the PoiSource field value if set, zero value otherwise.

func (*Address) GetPoiSourceOk

func (o *Address) GetPoiSourceOk() (*string, bool)

GetPoiSourceOk returns a tuple with the PoiSource field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Address) GetPostcode

func (o *Address) GetPostcode() string

GetPostcode returns the Postcode field value if set, zero value otherwise.

func (*Address) GetPostcodeOk

func (o *Address) GetPostcodeOk() (*string, bool)

GetPostcodeOk returns a tuple with the Postcode field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Address) GetUnitNumber

func (o *Address) GetUnitNumber() string

GetUnitNumber returns the UnitNumber field value if set, zero value otherwise.

func (*Address) GetUnitNumberOk

func (o *Address) GetUnitNumberOk() (*string, bool)

GetUnitNumberOk returns a tuple with the UnitNumber field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Address) HasAddress

func (o *Address) HasAddress() bool

HasAddress returns a boolean if a field has been set.

func (*Address) HasCoordinates

func (o *Address) HasCoordinates() bool

HasCoordinates returns a boolean if a field has been set.

func (*Address) HasDeliveryInstruction

func (o *Address) HasDeliveryInstruction() bool

HasDeliveryInstruction returns a boolean if a field has been set.

func (*Address) HasPoiID

func (o *Address) HasPoiID() bool

HasPoiID returns a boolean if a field has been set.

func (*Address) HasPoiSource

func (o *Address) HasPoiSource() bool

HasPoiSource returns a boolean if a field has been set.

func (*Address) HasPostcode

func (o *Address) HasPostcode() bool

HasPostcode returns a boolean if a field has been set.

func (*Address) HasUnitNumber

func (o *Address) HasUnitNumber() bool

HasUnitNumber returns a boolean if a field has been set.

func (Address) MarshalJSON

func (o Address) MarshalJSON() ([]byte, error)

func (*Address) SetAddress

func (o *Address) SetAddress(v string)

SetAddress gets a reference to the given string and assigns it to the Address field.

func (*Address) SetCoordinates

func (o *Address) SetCoordinates(v Coordinates)

SetCoordinates gets a reference to the given Coordinates and assigns it to the Coordinates field.

func (*Address) SetDeliveryInstruction

func (o *Address) SetDeliveryInstruction(v string)

SetDeliveryInstruction gets a reference to the given string and assigns it to the DeliveryInstruction field.

func (*Address) SetPoiID

func (o *Address) SetPoiID(v string)

SetPoiID gets a reference to the given string and assigns it to the PoiID field.

func (*Address) SetPoiSource

func (o *Address) SetPoiSource(v string)

SetPoiSource gets a reference to the given string and assigns it to the PoiSource field.

func (*Address) SetPostcode

func (o *Address) SetPostcode(v string)

SetPostcode gets a reference to the given string and assigns it to the Postcode field.

func (*Address) SetUnitNumber

func (o *Address) SetUnitNumber(v string)

SetUnitNumber gets a reference to the given string and assigns it to the UnitNumber field.

func (Address) ToMap

func (o Address) ToMap() (map[string]interface{}, error)

func (*Address) UnmarshalJSON

func (o *Address) UnmarshalJSON(data []byte) (err error)

type AdvancedPricing

type AdvancedPricing struct {
	// Service type: `Delivery`, Order type: `Instant`, Channel: `Grab App`
	DeliveryOnDemandGrabApp *int64 `json:"Delivery_OnDemand_GrabApp,omitempty"`
	// Service type: `Delivery`, Order type: `Scheduled`, Channel: `Grab App`
	DeliveryScheduledGrabApp *int64 `json:"Delivery_Scheduled_GrabApp,omitempty"`
	// Service type: `Self Pick Up`, Order type: `Instant`, Channel: `Grab App`
	SelfPickUpOnDemandGrabApp *int64 `json:"SelfPickUp_OnDemand_GrabApp,omitempty"`
	// Service type: `Dine In`, Order type: `Instant`, Channel: `Grab App`
	DineInOnDemandGrabApp *int64 `json:"DineIn_OnDemand_GrabApp,omitempty"`
	// Service type: `Delivery`, Order type: `Instant`, Channel: `Store Front`
	DeliveryOnDemandStoreFront *int64 `json:"Delivery_OnDemand_StoreFront,omitempty"`
	// Service type: `Delivery`, Order type: `Scheduled`, Channel: `Store Front`
	DeliveryScheduledStoreFront *int64 `json:"Delivery_Scheduled_StoreFront,omitempty"`
	// Service type: `Self Pick Up`, Order type: `Instant`, Channel: `Store Front`
	SelfPickUpOnDemandStoreFront *int64 `json:"SelfPickUp_OnDemand_StoreFront,omitempty"`
	AdditionalProperties         map[string]interface{}
}

AdvancedPricing Price configuration (in minor unit) for different service, order type and channel combination. If a service type does not have a specified price, it will utilize the default price of the item. Refer [Service Based Menu](#section/Service-Based-Menu).

func NewAdvancedPricing

func NewAdvancedPricing() *AdvancedPricing

NewAdvancedPricing instantiates a new AdvancedPricing 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 NewAdvancedPricingWithDefaults

func NewAdvancedPricingWithDefaults() *AdvancedPricing

NewAdvancedPricingWithDefaults instantiates a new AdvancedPricing 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 (*AdvancedPricing) GetDeliveryOnDemandGrabApp

func (o *AdvancedPricing) GetDeliveryOnDemandGrabApp() int64

GetDeliveryOnDemandGrabApp returns the DeliveryOnDemandGrabApp field value if set, zero value otherwise.

func (*AdvancedPricing) GetDeliveryOnDemandGrabAppOk

func (o *AdvancedPricing) GetDeliveryOnDemandGrabAppOk() (*int64, bool)

GetDeliveryOnDemandGrabAppOk returns a tuple with the DeliveryOnDemandGrabApp field value if set, nil otherwise and a boolean to check if the value has been set.

func (*AdvancedPricing) GetDeliveryOnDemandStoreFront

func (o *AdvancedPricing) GetDeliveryOnDemandStoreFront() int64

GetDeliveryOnDemandStoreFront returns the DeliveryOnDemandStoreFront field value if set, zero value otherwise.

func (*AdvancedPricing) GetDeliveryOnDemandStoreFrontOk

func (o *AdvancedPricing) GetDeliveryOnDemandStoreFrontOk() (*int64, bool)

GetDeliveryOnDemandStoreFrontOk returns a tuple with the DeliveryOnDemandStoreFront field value if set, nil otherwise and a boolean to check if the value has been set.

func (*AdvancedPricing) GetDeliveryScheduledGrabApp

func (o *AdvancedPricing) GetDeliveryScheduledGrabApp() int64

GetDeliveryScheduledGrabApp returns the DeliveryScheduledGrabApp field value if set, zero value otherwise.

func (*AdvancedPricing) GetDeliveryScheduledGrabAppOk

func (o *AdvancedPricing) GetDeliveryScheduledGrabAppOk() (*int64, bool)

GetDeliveryScheduledGrabAppOk returns a tuple with the DeliveryScheduledGrabApp field value if set, nil otherwise and a boolean to check if the value has been set.

func (*AdvancedPricing) GetDeliveryScheduledStoreFront

func (o *AdvancedPricing) GetDeliveryScheduledStoreFront() int64

GetDeliveryScheduledStoreFront returns the DeliveryScheduledStoreFront field value if set, zero value otherwise.

func (*AdvancedPricing) GetDeliveryScheduledStoreFrontOk

func (o *AdvancedPricing) GetDeliveryScheduledStoreFrontOk() (*int64, bool)

GetDeliveryScheduledStoreFrontOk returns a tuple with the DeliveryScheduledStoreFront field value if set, nil otherwise and a boolean to check if the value has been set.

func (*AdvancedPricing) GetDineInOnDemandGrabApp

func (o *AdvancedPricing) GetDineInOnDemandGrabApp() int64

GetDineInOnDemandGrabApp returns the DineInOnDemandGrabApp field value if set, zero value otherwise.

func (*AdvancedPricing) GetDineInOnDemandGrabAppOk

func (o *AdvancedPricing) GetDineInOnDemandGrabAppOk() (*int64, bool)

GetDineInOnDemandGrabAppOk returns a tuple with the DineInOnDemandGrabApp field value if set, nil otherwise and a boolean to check if the value has been set.

func (*AdvancedPricing) GetSelfPickUpOnDemandGrabApp

func (o *AdvancedPricing) GetSelfPickUpOnDemandGrabApp() int64

GetSelfPickUpOnDemandGrabApp returns the SelfPickUpOnDemandGrabApp field value if set, zero value otherwise.

func (*AdvancedPricing) GetSelfPickUpOnDemandGrabAppOk

func (o *AdvancedPricing) GetSelfPickUpOnDemandGrabAppOk() (*int64, bool)

GetSelfPickUpOnDemandGrabAppOk returns a tuple with the SelfPickUpOnDemandGrabApp field value if set, nil otherwise and a boolean to check if the value has been set.

func (*AdvancedPricing) GetSelfPickUpOnDemandStoreFront

func (o *AdvancedPricing) GetSelfPickUpOnDemandStoreFront() int64

GetSelfPickUpOnDemandStoreFront returns the SelfPickUpOnDemandStoreFront field value if set, zero value otherwise.

func (*AdvancedPricing) GetSelfPickUpOnDemandStoreFrontOk

func (o *AdvancedPricing) GetSelfPickUpOnDemandStoreFrontOk() (*int64, bool)

GetSelfPickUpOnDemandStoreFrontOk returns a tuple with the SelfPickUpOnDemandStoreFront field value if set, nil otherwise and a boolean to check if the value has been set.

func (*AdvancedPricing) HasDeliveryOnDemandGrabApp

func (o *AdvancedPricing) HasDeliveryOnDemandGrabApp() bool

HasDeliveryOnDemandGrabApp returns a boolean if a field has been set.

func (*AdvancedPricing) HasDeliveryOnDemandStoreFront

func (o *AdvancedPricing) HasDeliveryOnDemandStoreFront() bool

HasDeliveryOnDemandStoreFront returns a boolean if a field has been set.

func (*AdvancedPricing) HasDeliveryScheduledGrabApp

func (o *AdvancedPricing) HasDeliveryScheduledGrabApp() bool

HasDeliveryScheduledGrabApp returns a boolean if a field has been set.

func (*AdvancedPricing) HasDeliveryScheduledStoreFront

func (o *AdvancedPricing) HasDeliveryScheduledStoreFront() bool

HasDeliveryScheduledStoreFront returns a boolean if a field has been set.

func (*AdvancedPricing) HasDineInOnDemandGrabApp

func (o *AdvancedPricing) HasDineInOnDemandGrabApp() bool

HasDineInOnDemandGrabApp returns a boolean if a field has been set.

func (*AdvancedPricing) HasSelfPickUpOnDemandGrabApp

func (o *AdvancedPricing) HasSelfPickUpOnDemandGrabApp() bool

HasSelfPickUpOnDemandGrabApp returns a boolean if a field has been set.

func (*AdvancedPricing) HasSelfPickUpOnDemandStoreFront

func (o *AdvancedPricing) HasSelfPickUpOnDemandStoreFront() bool

HasSelfPickUpOnDemandStoreFront returns a boolean if a field has been set.

func (AdvancedPricing) MarshalJSON

func (o AdvancedPricing) MarshalJSON() ([]byte, error)

func (*AdvancedPricing) SetDeliveryOnDemandGrabApp

func (o *AdvancedPricing) SetDeliveryOnDemandGrabApp(v int64)

SetDeliveryOnDemandGrabApp gets a reference to the given int64 and assigns it to the DeliveryOnDemandGrabApp field.

func (*AdvancedPricing) SetDeliveryOnDemandStoreFront

func (o *AdvancedPricing) SetDeliveryOnDemandStoreFront(v int64)

SetDeliveryOnDemandStoreFront gets a reference to the given int64 and assigns it to the DeliveryOnDemandStoreFront field.

func (*AdvancedPricing) SetDeliveryScheduledGrabApp

func (o *AdvancedPricing) SetDeliveryScheduledGrabApp(v int64)

SetDeliveryScheduledGrabApp gets a reference to the given int64 and assigns it to the DeliveryScheduledGrabApp field.

func (*AdvancedPricing) SetDeliveryScheduledStoreFront

func (o *AdvancedPricing) SetDeliveryScheduledStoreFront(v int64)

SetDeliveryScheduledStoreFront gets a reference to the given int64 and assigns it to the DeliveryScheduledStoreFront field.

func (*AdvancedPricing) SetDineInOnDemandGrabApp

func (o *AdvancedPricing) SetDineInOnDemandGrabApp(v int64)

SetDineInOnDemandGrabApp gets a reference to the given int64 and assigns it to the DineInOnDemandGrabApp field.

func (*AdvancedPricing) SetSelfPickUpOnDemandGrabApp

func (o *AdvancedPricing) SetSelfPickUpOnDemandGrabApp(v int64)

SetSelfPickUpOnDemandGrabApp gets a reference to the given int64 and assigns it to the SelfPickUpOnDemandGrabApp field.

func (*AdvancedPricing) SetSelfPickUpOnDemandStoreFront

func (o *AdvancedPricing) SetSelfPickUpOnDemandStoreFront(v int64)

SetSelfPickUpOnDemandStoreFront gets a reference to the given int64 and assigns it to the SelfPickUpOnDemandStoreFront field.

func (AdvancedPricing) ToMap

func (o AdvancedPricing) ToMap() (map[string]interface{}, error)

func (*AdvancedPricing) UnmarshalJSON

func (o *AdvancedPricing) UnmarshalJSON(data []byte) (err error)

type ApiAcceptRejectOrderRequest

type ApiAcceptRejectOrderRequest struct {
	ApiService *AcceptRejectOrderAPIService
	// contains filtered or unexported fields
}

func (ApiAcceptRejectOrderRequest) AcceptOrderRequest

func (r ApiAcceptRejectOrderRequest) AcceptOrderRequest(acceptOrderRequest AcceptOrderRequest) ApiAcceptRejectOrderRequest

func (ApiAcceptRejectOrderRequest) Authorization

func (r ApiAcceptRejectOrderRequest) Authorization(authorization string) ApiAcceptRejectOrderRequest

Specify the generated authorization token of the bearer type.

func (ApiAcceptRejectOrderRequest) ContentType

The content type of the request body. You must use `application/json` for this header as GrabFood API currently does not support other formats.

func (ApiAcceptRejectOrderRequest) Execute

type ApiBatchUpdateMenuRequest

type ApiBatchUpdateMenuRequest struct {
	ApiService *UpdateMenuRecordAPIService
	// contains filtered or unexported fields
}

func (ApiBatchUpdateMenuRequest) Authorization

func (r ApiBatchUpdateMenuRequest) Authorization(authorization string) ApiBatchUpdateMenuRequest

Specify the generated authorization token of the bearer type.

func (ApiBatchUpdateMenuRequest) BatchUpdateMenuItem

func (r ApiBatchUpdateMenuRequest) BatchUpdateMenuItem(batchUpdateMenuItem BatchUpdateMenuItem) ApiBatchUpdateMenuRequest

func (ApiBatchUpdateMenuRequest) ContentType

func (r ApiBatchUpdateMenuRequest) ContentType(contentType string) ApiBatchUpdateMenuRequest

The content type of the request body. You must use `application/json` for this header as GrabFood API currently does not support other formats.

func (ApiBatchUpdateMenuRequest) Execute

type ApiCancelOrderRequest

type ApiCancelOrderRequest struct {
	ApiService *CancelOrderAPIService
	// contains filtered or unexported fields
}

func (ApiCancelOrderRequest) Authorization

func (r ApiCancelOrderRequest) Authorization(authorization string) ApiCancelOrderRequest

Specify the generated authorization token of the bearer type.

func (ApiCancelOrderRequest) CancelOrderRequest

func (r ApiCancelOrderRequest) CancelOrderRequest(cancelOrderRequest CancelOrderRequest) ApiCancelOrderRequest

func (ApiCancelOrderRequest) ContentType

func (r ApiCancelOrderRequest) ContentType(contentType string) ApiCancelOrderRequest

The content type of the request body. You must use `application/json` for this header as GrabFood API currently does not support other formats.

func (ApiCancelOrderRequest) Execute

type ApiCheckOrderCancelableRequest

type ApiCheckOrderCancelableRequest struct {
	ApiService *CheckOrderCancelableAPIService
	// contains filtered or unexported fields
}

func (ApiCheckOrderCancelableRequest) Authorization

Specify the generated authorization token of the bearer type.

func (ApiCheckOrderCancelableRequest) Execute

func (ApiCheckOrderCancelableRequest) MerchantID

The merchant's ID that is in GrabFood's database.

func (ApiCheckOrderCancelableRequest) OrderID

type ApiCreateCampaignRequest

type ApiCreateCampaignRequest struct {
	ApiService *CreateCampaignAPIService
	// contains filtered or unexported fields
}

func (ApiCreateCampaignRequest) Authorization

func (r ApiCreateCampaignRequest) Authorization(authorization string) ApiCreateCampaignRequest

Specify the generated authorization token of the bearer type.

func (ApiCreateCampaignRequest) ContentType

func (r ApiCreateCampaignRequest) ContentType(contentType string) ApiCreateCampaignRequest

The content type of the request body. You must use `application/json` for this header as GrabFood API currently does not support other formats.

func (ApiCreateCampaignRequest) CreateCampaignRequest

func (r ApiCreateCampaignRequest) CreateCampaignRequest(createCampaignRequest CreateCampaignRequest) ApiCreateCampaignRequest

func (ApiCreateCampaignRequest) Execute

type ApiCreateSelfServeJourneyRequest added in v1.0.1

type ApiCreateSelfServeJourneyRequest struct {
	ApiService *CreateSelfServeJourneyAPIService
	// contains filtered or unexported fields
}

func (ApiCreateSelfServeJourneyRequest) Authorization added in v1.0.1

Specify the generated authorization token of the bearer type.

func (ApiCreateSelfServeJourneyRequest) ContentType added in v1.0.1

The content type of the request body. You must use `application/json` for this header as GrabFood API currently does not support other formats.

func (ApiCreateSelfServeJourneyRequest) CreateSelfServeJourneyRequest added in v1.0.1

func (r ApiCreateSelfServeJourneyRequest) CreateSelfServeJourneyRequest(createSelfServeJourneyRequest CreateSelfServeJourneyRequest) ApiCreateSelfServeJourneyRequest

func (ApiCreateSelfServeJourneyRequest) Execute added in v1.0.1

type ApiDeleteCampaignRequest

type ApiDeleteCampaignRequest struct {
	ApiService *DeleteCampaignAPIService
	// contains filtered or unexported fields
}

func (ApiDeleteCampaignRequest) Authorization

func (r ApiDeleteCampaignRequest) Authorization(authorization string) ApiDeleteCampaignRequest

Specify the generated authorization token of the bearer type.

func (ApiDeleteCampaignRequest) Execute

func (r ApiDeleteCampaignRequest) Execute() (*http.Response, error)

type ApiEditOrderRequest

type ApiEditOrderRequest struct {
	ApiService *EditOrderAPIService
	// contains filtered or unexported fields
}

func (ApiEditOrderRequest) Authorization

func (r ApiEditOrderRequest) Authorization(authorization string) ApiEditOrderRequest

Specify the generated authorization token of the bearer type.

func (ApiEditOrderRequest) ContentType

func (r ApiEditOrderRequest) ContentType(contentType string) ApiEditOrderRequest

The content type of the request body. You must use `application/json` for this header as GrabFood API currently does not support other formats.

func (ApiEditOrderRequest) EditOrderRequest

func (r ApiEditOrderRequest) EditOrderRequest(editOrderRequest EditOrderRequest) ApiEditOrderRequest

func (ApiEditOrderRequest) Execute

func (r ApiEditOrderRequest) Execute() (*http.Response, error)

type ApiGetDineinVoucherRequest

type ApiGetDineinVoucherRequest struct {
	ApiService *GetDineinVoucherAPIService
	// contains filtered or unexported fields
}

func (ApiGetDineinVoucherRequest) Authorization

func (r ApiGetDineinVoucherRequest) Authorization(authorization string) ApiGetDineinVoucherRequest

Specify the generated authorization token of the bearer type.

func (ApiGetDineinVoucherRequest) CertificateID

func (r ApiGetDineinVoucherRequest) CertificateID(certificateID string) ApiGetDineinVoucherRequest

This certificateID is decoded from scanning the QR code, and 1:1 mapping with voucherCode. Required if `voucherCode` is not specified.

func (ApiGetDineinVoucherRequest) Execute

func (ApiGetDineinVoucherRequest) MerchantID

func (ApiGetDineinVoucherRequest) VoucherCode

A short code for the dine-in voucher purchased by the user. Required if `certificateID` is not specified.

type ApiGetOauthGrabRequest

type ApiGetOauthGrabRequest struct {
	ApiService *GetOauthGrabAPIService
	// contains filtered or unexported fields
}

func (ApiGetOauthGrabRequest) ContentType

func (r ApiGetOauthGrabRequest) ContentType(contentType string) ApiGetOauthGrabRequest

The content type of the request body. You must use `application/json` for this header as GrabFood API currently does not support other formats.

func (ApiGetOauthGrabRequest) Execute

func (ApiGetOauthGrabRequest) GrabOauthRequest

func (r ApiGetOauthGrabRequest) GrabOauthRequest(grabOauthRequest GrabOauthRequest) ApiGetOauthGrabRequest

type ApiGetStoreHourRequest

type ApiGetStoreHourRequest struct {
	ApiService *GetStoreHourAPIService
	// contains filtered or unexported fields
}

func (ApiGetStoreHourRequest) Authorization

func (r ApiGetStoreHourRequest) Authorization(authorization string) ApiGetStoreHourRequest

Specify the generated authorization token of the bearer type.

func (ApiGetStoreHourRequest) Execute

type ApiGetStoreStatusRequest

type ApiGetStoreStatusRequest struct {
	ApiService *GetStoreStatusAPIService
	// contains filtered or unexported fields
}

func (ApiGetStoreStatusRequest) Authorization

func (r ApiGetStoreStatusRequest) Authorization(authorization string) ApiGetStoreStatusRequest

Specify the generated authorization token of the bearer type.

func (ApiGetStoreStatusRequest) Execute

type ApiListCampaignRequest

type ApiListCampaignRequest struct {
	ApiService *ListCampaignAPIService
	// contains filtered or unexported fields
}

func (ApiListCampaignRequest) Authorization

func (r ApiListCampaignRequest) Authorization(authorization string) ApiListCampaignRequest

Specify the generated authorization token of the bearer type.

func (ApiListCampaignRequest) Execute

func (ApiListCampaignRequest) MerchantID

func (r ApiListCampaignRequest) MerchantID(merchantID string) ApiListCampaignRequest

The merchant's ID that is in GrabFood's database.

type ApiListOrdersRequest

type ApiListOrdersRequest struct {
	ApiService *ListOrdersAPIService
	// contains filtered or unexported fields
}

func (ApiListOrdersRequest) Authorization

func (r ApiListOrdersRequest) Authorization(authorization string) ApiListOrdersRequest

Specify the generated authorization token of the bearer type.

func (ApiListOrdersRequest) Date

func (ApiListOrdersRequest) Execute

func (ApiListOrdersRequest) MerchantID

func (r ApiListOrdersRequest) MerchantID(merchantID string) ApiListOrdersRequest

The merchant's ID that is in GrabFood's database.

func (ApiListOrdersRequest) Page

Specify the page number for the report.

type ApiMarkOrderReadyRequest

type ApiMarkOrderReadyRequest struct {
	ApiService *MarkOrderReadyAPIService
	// contains filtered or unexported fields
}

func (ApiMarkOrderReadyRequest) Authorization

func (r ApiMarkOrderReadyRequest) Authorization(authorization string) ApiMarkOrderReadyRequest

Specify the generated authorization token of the bearer type.

func (ApiMarkOrderReadyRequest) ContentType

func (r ApiMarkOrderReadyRequest) ContentType(contentType string) ApiMarkOrderReadyRequest

The content type of the request body. You must use `application/json` for this header as GrabFood API currently does not support other formats.

func (ApiMarkOrderReadyRequest) Execute

func (r ApiMarkOrderReadyRequest) Execute() (*http.Response, error)

func (ApiMarkOrderReadyRequest) MarkOrderRequest

func (r ApiMarkOrderReadyRequest) MarkOrderRequest(markOrderRequest MarkOrderRequest) ApiMarkOrderReadyRequest

type ApiNotifyMembershipWebviewRequest

type ApiNotifyMembershipWebviewRequest struct {
	ApiService *NotifyMembershipWebviewAPIService
	// contains filtered or unexported fields
}

func (ApiNotifyMembershipWebviewRequest) Authorization

Specify the generated authorization token of the bearer type.

func (ApiNotifyMembershipWebviewRequest) ContentType

The content type of the request body. You must use `application/json` for this header as GrabFood API currently does not support other formats.

func (ApiNotifyMembershipWebviewRequest) Execute

func (ApiNotifyMembershipWebviewRequest) NotifyMembershipWebviewRequest

func (r ApiNotifyMembershipWebviewRequest) NotifyMembershipWebviewRequest(notifyMembershipWebviewRequest NotifyMembershipWebviewRequest) ApiNotifyMembershipWebviewRequest

type ApiPauseStoreRequest

type ApiPauseStoreRequest struct {
	ApiService *PauseStoreAPIService
	// contains filtered or unexported fields
}

func (ApiPauseStoreRequest) Authorization

func (r ApiPauseStoreRequest) Authorization(authorization string) ApiPauseStoreRequest

Specify the generated authorization token of the bearer type.

func (ApiPauseStoreRequest) ContentType

func (r ApiPauseStoreRequest) ContentType(contentType string) ApiPauseStoreRequest

The content type of the request body. You must use `application/json` for this header as GrabFood API currently does not support other formats.

func (ApiPauseStoreRequest) Execute

func (r ApiPauseStoreRequest) Execute() (*http.Response, error)

func (ApiPauseStoreRequest) PauseStoreRequest

func (r ApiPauseStoreRequest) PauseStoreRequest(pauseStoreRequest PauseStoreRequest) ApiPauseStoreRequest

type ApiRedeemDineinVoucherRequest

type ApiRedeemDineinVoucherRequest struct {
	ApiService *RedeemDineinVoucherAPIService
	// contains filtered or unexported fields
}

func (ApiRedeemDineinVoucherRequest) Authorization

Specify the generated authorization token of the bearer type.

func (ApiRedeemDineinVoucherRequest) ContentType

The content type of the request body. You must use `application/json` for this header as GrabFood API currently does not support other formats.

func (ApiRedeemDineinVoucherRequest) Execute

func (ApiRedeemDineinVoucherRequest) RedeemDineInVoucherRequest

func (r ApiRedeemDineinVoucherRequest) RedeemDineInVoucherRequest(redeemDineInVoucherRequest RedeemDineInVoucherRequest) ApiRedeemDineinVoucherRequest

type ApiTraceMenuSyncRequest

type ApiTraceMenuSyncRequest struct {
	ApiService *TraceMenuSyncAPIService
	// contains filtered or unexported fields
}

func (ApiTraceMenuSyncRequest) Authorization

func (r ApiTraceMenuSyncRequest) Authorization(authorization string) ApiTraceMenuSyncRequest

Specify the generated authorization token of the bearer type.

func (ApiTraceMenuSyncRequest) Execute

func (ApiTraceMenuSyncRequest) MerchantID

func (r ApiTraceMenuSyncRequest) MerchantID(merchantID string) ApiTraceMenuSyncRequest

The merchant's ID that is in GrabFood's database.

type ApiUpdateCampaignRequest

type ApiUpdateCampaignRequest struct {
	ApiService *UpdateCampaignAPIService
	// contains filtered or unexported fields
}

func (ApiUpdateCampaignRequest) Authorization

func (r ApiUpdateCampaignRequest) Authorization(authorization string) ApiUpdateCampaignRequest

Specify the generated authorization token of the bearer type.

func (ApiUpdateCampaignRequest) ContentType

func (r ApiUpdateCampaignRequest) ContentType(contentType string) ApiUpdateCampaignRequest

The content type of the request body. You must use `application/json` for this header as GrabFood API currently does not support other formats.

func (ApiUpdateCampaignRequest) Execute

func (r ApiUpdateCampaignRequest) Execute() (*http.Response, error)

func (ApiUpdateCampaignRequest) UpdateCampaignRequest

func (r ApiUpdateCampaignRequest) UpdateCampaignRequest(updateCampaignRequest UpdateCampaignRequest) ApiUpdateCampaignRequest

type ApiUpdateDeliveryStateRequest

type ApiUpdateDeliveryStateRequest struct {
	ApiService *UpdateDeliveryStateAPIService
	// contains filtered or unexported fields
}

func (ApiUpdateDeliveryStateRequest) Authorization

Specify the generated authorization token of the bearer type.

func (ApiUpdateDeliveryStateRequest) ContentType

The content type of the request body. You must use `application/json` for this header as GrabFood API currently does not support other formats.

func (ApiUpdateDeliveryStateRequest) Execute

func (ApiUpdateDeliveryStateRequest) OrderDeliveryRequest

func (r ApiUpdateDeliveryStateRequest) OrderDeliveryRequest(orderDeliveryRequest OrderDeliveryRequest) ApiUpdateDeliveryStateRequest

type ApiUpdateMenuNotificationRequest

type ApiUpdateMenuNotificationRequest struct {
	ApiService *UpdateMenuNotificationAPIService
	// contains filtered or unexported fields
}

func (ApiUpdateMenuNotificationRequest) Authorization

Specify the generated authorization token of the bearer type.

func (ApiUpdateMenuNotificationRequest) ContentType

The content type of the request body. You must use `application/json` for this header as GrabFood API currently does not support other formats.

func (ApiUpdateMenuNotificationRequest) Execute

func (ApiUpdateMenuNotificationRequest) UpdateMenuNotifRequest

func (r ApiUpdateMenuNotificationRequest) UpdateMenuNotifRequest(updateMenuNotifRequest UpdateMenuNotifRequest) ApiUpdateMenuNotificationRequest

type ApiUpdateMenuRequest

type ApiUpdateMenuRequest struct {
	ApiService *UpdateMenuRecordAPIService
	// contains filtered or unexported fields
}

func (ApiUpdateMenuRequest) Authorization

func (r ApiUpdateMenuRequest) Authorization(authorization string) ApiUpdateMenuRequest

Specify the generated authorization token of the bearer type.

func (ApiUpdateMenuRequest) ContentType

func (r ApiUpdateMenuRequest) ContentType(contentType string) ApiUpdateMenuRequest

The content type of the request body. You must use `application/json` for this header as GrabFood API currently does not support other formats.

func (ApiUpdateMenuRequest) Execute

func (r ApiUpdateMenuRequest) Execute() (*http.Response, error)

func (ApiUpdateMenuRequest) UpdateMenuRequest

func (r ApiUpdateMenuRequest) UpdateMenuRequest(updateMenuRequest UpdateMenuRequest) ApiUpdateMenuRequest

type ApiUpdateOrderReadyTimeRequest

type ApiUpdateOrderReadyTimeRequest struct {
	ApiService *UpdateOrderReadyTimeAPIService
	// contains filtered or unexported fields
}

func (ApiUpdateOrderReadyTimeRequest) Authorization

Specify the generated authorization token of the bearer type.

func (ApiUpdateOrderReadyTimeRequest) ContentType

The content type of the request body. You must use `application/json` for this header as GrabFood API currently does not support other formats.

func (ApiUpdateOrderReadyTimeRequest) Execute

func (ApiUpdateOrderReadyTimeRequest) NewOrderTimeRequest

func (r ApiUpdateOrderReadyTimeRequest) NewOrderTimeRequest(newOrderTimeRequest NewOrderTimeRequest) ApiUpdateOrderReadyTimeRequest

type ApiUpdateStoreDeliveryHourRequest

type ApiUpdateStoreDeliveryHourRequest struct {
	ApiService *UpdateStoreDeliveryHourAPIService
	// contains filtered or unexported fields
}

func (ApiUpdateStoreDeliveryHourRequest) Authorization

Specify the generated authorization token of the bearer type.

func (ApiUpdateStoreDeliveryHourRequest) ContentType

The content type of the request body. You must use `application/json` for this header as GrabFood API currently does not support other formats.

func (ApiUpdateStoreDeliveryHourRequest) Execute

func (ApiUpdateStoreDeliveryHourRequest) UpdateDeliveryHourRequest

func (r ApiUpdateStoreDeliveryHourRequest) UpdateDeliveryHourRequest(updateDeliveryHourRequest UpdateDeliveryHourRequest) ApiUpdateStoreDeliveryHourRequest

type ApiUpdateStoreDineInHourRequest

type ApiUpdateStoreDineInHourRequest struct {
	ApiService *UpdateStoreDineInHourAPIService
	// contains filtered or unexported fields
}

func (ApiUpdateStoreDineInHourRequest) Authorization

Specify the generated authorization token of the bearer type.

func (ApiUpdateStoreDineInHourRequest) ContentType

The content type of the request body. You must use `application/json` for this header as GrabFood API currently does not support other formats.

func (ApiUpdateStoreDineInHourRequest) Execute

func (ApiUpdateStoreDineInHourRequest) UpdateDineInHourRequest

func (r ApiUpdateStoreDineInHourRequest) UpdateDineInHourRequest(updateDineInHourRequest UpdateDineInHourRequest) ApiUpdateStoreDineInHourRequest

type ApiUpdateStoreSpecialHourRequest

type ApiUpdateStoreSpecialHourRequest struct {
	ApiService *UpdateStoreSpecialHourAPIService
	// contains filtered or unexported fields
}

func (ApiUpdateStoreSpecialHourRequest) Authorization

Specify the generated authorization token of the bearer type.

func (ApiUpdateStoreSpecialHourRequest) ContentType

The content type of the request body. You must use `application/json` for this header as GrabFood API currently does not support other formats.

func (ApiUpdateStoreSpecialHourRequest) Execute

func (ApiUpdateStoreSpecialHourRequest) UpdateSpecialHourRequest

func (r ApiUpdateStoreSpecialHourRequest) UpdateSpecialHourRequest(updateSpecialHourRequest UpdateSpecialHourRequest) ApiUpdateStoreSpecialHourRequest

type BasicAuth

type BasicAuth struct {
	UserName string `json:"userName,omitempty"`
	Password string `json:"password,omitempty"`
}

BasicAuth provides basic http authentication to a request passed via context using ContextBasicAuth

type BatchUpdateMenuItem

type BatchUpdateMenuItem struct {
	// The merchant's ID that is in GrabFood's database.
	MerchantID string `json:"merchantID"`
	// The record type that you want to update.
	Field string `json:"field"`
	// The items in an array of JSON Object.
	MenuEntities         []MenuEntity `json:"menuEntities,omitempty"`
	AdditionalProperties map[string]interface{}
}

BatchUpdateMenuItem Information about the GrabFood client updating their food menu.

func NewBatchUpdateMenuItem

func NewBatchUpdateMenuItem(merchantID string, field string) *BatchUpdateMenuItem

NewBatchUpdateMenuItem instantiates a new BatchUpdateMenuItem 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 NewBatchUpdateMenuItemWithDefaults

func NewBatchUpdateMenuItemWithDefaults() *BatchUpdateMenuItem

NewBatchUpdateMenuItemWithDefaults instantiates a new BatchUpdateMenuItem 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 (*BatchUpdateMenuItem) GetField

func (o *BatchUpdateMenuItem) GetField() string

GetField returns the Field field value

func (*BatchUpdateMenuItem) GetFieldOk

func (o *BatchUpdateMenuItem) GetFieldOk() (*string, bool)

GetFieldOk returns a tuple with the Field field value and a boolean to check if the value has been set.

func (*BatchUpdateMenuItem) GetMenuEntities

func (o *BatchUpdateMenuItem) GetMenuEntities() []MenuEntity

GetMenuEntities returns the MenuEntities field value if set, zero value otherwise.

func (*BatchUpdateMenuItem) GetMenuEntitiesOk

func (o *BatchUpdateMenuItem) GetMenuEntitiesOk() ([]MenuEntity, bool)

GetMenuEntitiesOk returns a tuple with the MenuEntities field value if set, nil otherwise and a boolean to check if the value has been set.

func (*BatchUpdateMenuItem) GetMerchantID

func (o *BatchUpdateMenuItem) GetMerchantID() string

GetMerchantID returns the MerchantID field value

func (*BatchUpdateMenuItem) GetMerchantIDOk

func (o *BatchUpdateMenuItem) GetMerchantIDOk() (*string, bool)

GetMerchantIDOk returns a tuple with the MerchantID field value and a boolean to check if the value has been set.

func (*BatchUpdateMenuItem) HasMenuEntities

func (o *BatchUpdateMenuItem) HasMenuEntities() bool

HasMenuEntities returns a boolean if a field has been set.

func (BatchUpdateMenuItem) MarshalJSON

func (o BatchUpdateMenuItem) MarshalJSON() ([]byte, error)

func (*BatchUpdateMenuItem) SetField

func (o *BatchUpdateMenuItem) SetField(v string)

SetField sets field value

func (*BatchUpdateMenuItem) SetMenuEntities

func (o *BatchUpdateMenuItem) SetMenuEntities(v []MenuEntity)

SetMenuEntities gets a reference to the given []MenuEntity and assigns it to the MenuEntities field.

func (*BatchUpdateMenuItem) SetMerchantID

func (o *BatchUpdateMenuItem) SetMerchantID(v string)

SetMerchantID sets field value

func (BatchUpdateMenuItem) ToMap

func (o BatchUpdateMenuItem) ToMap() (map[string]interface{}, error)

func (*BatchUpdateMenuItem) UnmarshalJSON

func (o *BatchUpdateMenuItem) UnmarshalJSON(data []byte) (err error)

type BatchUpdateMenuResponse

type BatchUpdateMenuResponse struct {
	// The merchant's ID that is in GrabFood's database.
	MerchantID *string `json:"merchantID,omitempty"`
	// The status of this request.
	Status *string `json:"status,omitempty"`
	// The error messages when batch update menu record was partial success/fail. `null` when the request was success.
	Errors               []MenuEntityError `json:"errors,omitempty"`
	AdditionalProperties map[string]interface{}
}

BatchUpdateMenuResponse struct for BatchUpdateMenuResponse

func NewBatchUpdateMenuResponse

func NewBatchUpdateMenuResponse() *BatchUpdateMenuResponse

NewBatchUpdateMenuResponse instantiates a new BatchUpdateMenuResponse 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 NewBatchUpdateMenuResponseWithDefaults

func NewBatchUpdateMenuResponseWithDefaults() *BatchUpdateMenuResponse

NewBatchUpdateMenuResponseWithDefaults instantiates a new BatchUpdateMenuResponse 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 (*BatchUpdateMenuResponse) GetErrors

func (o *BatchUpdateMenuResponse) GetErrors() []MenuEntityError

GetErrors returns the Errors field value if set, zero value otherwise (both if not set or set to explicit null).

func (*BatchUpdateMenuResponse) GetErrorsOk

func (o *BatchUpdateMenuResponse) GetErrorsOk() ([]MenuEntityError, bool)

GetErrorsOk returns a tuple with the Errors field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*BatchUpdateMenuResponse) GetMerchantID

func (o *BatchUpdateMenuResponse) GetMerchantID() string

GetMerchantID returns the MerchantID field value if set, zero value otherwise.

func (*BatchUpdateMenuResponse) GetMerchantIDOk

func (o *BatchUpdateMenuResponse) GetMerchantIDOk() (*string, bool)

GetMerchantIDOk returns a tuple with the MerchantID field value if set, nil otherwise and a boolean to check if the value has been set.

func (*BatchUpdateMenuResponse) GetStatus

func (o *BatchUpdateMenuResponse) GetStatus() string

GetStatus returns the Status field value if set, zero value otherwise.

func (*BatchUpdateMenuResponse) GetStatusOk

func (o *BatchUpdateMenuResponse) GetStatusOk() (*string, bool)

GetStatusOk returns a tuple with the Status field value if set, nil otherwise and a boolean to check if the value has been set.

func (*BatchUpdateMenuResponse) HasErrors

func (o *BatchUpdateMenuResponse) HasErrors() bool

HasErrors returns a boolean if a field has been set.

func (*BatchUpdateMenuResponse) HasMerchantID

func (o *BatchUpdateMenuResponse) HasMerchantID() bool

HasMerchantID returns a boolean if a field has been set.

func (*BatchUpdateMenuResponse) HasStatus

func (o *BatchUpdateMenuResponse) HasStatus() bool

HasStatus returns a boolean if a field has been set.

func (BatchUpdateMenuResponse) MarshalJSON

func (o BatchUpdateMenuResponse) MarshalJSON() ([]byte, error)

func (*BatchUpdateMenuResponse) SetErrors

func (o *BatchUpdateMenuResponse) SetErrors(v []MenuEntityError)

SetErrors gets a reference to the given []MenuEntityError and assigns it to the Errors field.

func (*BatchUpdateMenuResponse) SetMerchantID

func (o *BatchUpdateMenuResponse) SetMerchantID(v string)

SetMerchantID gets a reference to the given string and assigns it to the MerchantID field.

func (*BatchUpdateMenuResponse) SetStatus

func (o *BatchUpdateMenuResponse) SetStatus(v string)

SetStatus gets a reference to the given string and assigns it to the Status field.

func (BatchUpdateMenuResponse) ToMap

func (o BatchUpdateMenuResponse) ToMap() (map[string]interface{}, error)

func (*BatchUpdateMenuResponse) UnmarshalJSON

func (o *BatchUpdateMenuResponse) UnmarshalJSON(data []byte) (err error)

type BindMembershipNativeRequest

type BindMembershipNativeRequest struct {
	// The id used to identify an unique grab user.
	GrabID string `json:"grabID"`
	// Grab user phone number used to login.
	PhoneNumber          *string `json:"phoneNumber,omitempty"`
	AdditionalProperties map[string]interface{}
}

BindMembershipNativeRequest This request submits membership binding request to partner.

func NewBindMembershipNativeRequest

func NewBindMembershipNativeRequest(grabID string) *BindMembershipNativeRequest

NewBindMembershipNativeRequest instantiates a new BindMembershipNativeRequest 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 NewBindMembershipNativeRequestWithDefaults

func NewBindMembershipNativeRequestWithDefaults() *BindMembershipNativeRequest

NewBindMembershipNativeRequestWithDefaults instantiates a new BindMembershipNativeRequest 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 (*BindMembershipNativeRequest) GetGrabID

func (o *BindMembershipNativeRequest) GetGrabID() string

GetGrabID returns the GrabID field value

func (*BindMembershipNativeRequest) GetGrabIDOk

func (o *BindMembershipNativeRequest) GetGrabIDOk() (*string, bool)

GetGrabIDOk returns a tuple with the GrabID field value and a boolean to check if the value has been set.

func (*BindMembershipNativeRequest) GetPhoneNumber

func (o *BindMembershipNativeRequest) GetPhoneNumber() string

GetPhoneNumber returns the PhoneNumber field value if set, zero value otherwise.

func (*BindMembershipNativeRequest) GetPhoneNumberOk

func (o *BindMembershipNativeRequest) GetPhoneNumberOk() (*string, bool)

GetPhoneNumberOk returns a tuple with the PhoneNumber field value if set, nil otherwise and a boolean to check if the value has been set.

func (*BindMembershipNativeRequest) HasPhoneNumber

func (o *BindMembershipNativeRequest) HasPhoneNumber() bool

HasPhoneNumber returns a boolean if a field has been set.

func (BindMembershipNativeRequest) MarshalJSON

func (o BindMembershipNativeRequest) MarshalJSON() ([]byte, error)

func (*BindMembershipNativeRequest) SetGrabID

func (o *BindMembershipNativeRequest) SetGrabID(v string)

SetGrabID sets field value

func (*BindMembershipNativeRequest) SetPhoneNumber

func (o *BindMembershipNativeRequest) SetPhoneNumber(v string)

SetPhoneNumber gets a reference to the given string and assigns it to the PhoneNumber field.

func (BindMembershipNativeRequest) ToMap

func (o BindMembershipNativeRequest) ToMap() (map[string]interface{}, error)

func (*BindMembershipNativeRequest) UnmarshalJSON

func (o *BindMembershipNativeRequest) UnmarshalJSON(data []byte) (err error)

type BindMembershipNativeResponse

type BindMembershipNativeResponse struct {
	// The unique member ID on the partner's database.
	MemberID             string `json:"memberID"`
	AdditionalProperties map[string]interface{}
}

BindMembershipNativeResponse This response returns membershipID after membership binding is successful.

func NewBindMembershipNativeResponse

func NewBindMembershipNativeResponse(memberID string) *BindMembershipNativeResponse

NewBindMembershipNativeResponse instantiates a new BindMembershipNativeResponse 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 NewBindMembershipNativeResponseWithDefaults

func NewBindMembershipNativeResponseWithDefaults() *BindMembershipNativeResponse

NewBindMembershipNativeResponseWithDefaults instantiates a new BindMembershipNativeResponse 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 (*BindMembershipNativeResponse) GetMemberID

func (o *BindMembershipNativeResponse) GetMemberID() string

GetMemberID returns the MemberID field value

func (*BindMembershipNativeResponse) GetMemberIDOk

func (o *BindMembershipNativeResponse) GetMemberIDOk() (*string, bool)

GetMemberIDOk returns a tuple with the MemberID field value and a boolean to check if the value has been set.

func (BindMembershipNativeResponse) MarshalJSON

func (o BindMembershipNativeResponse) MarshalJSON() ([]byte, error)

func (*BindMembershipNativeResponse) SetMemberID

func (o *BindMembershipNativeResponse) SetMemberID(v string)

SetMemberID sets field value

func (BindMembershipNativeResponse) ToMap

func (o BindMembershipNativeResponse) ToMap() (map[string]interface{}, error)

func (*BindMembershipNativeResponse) UnmarshalJSON

func (o *BindMembershipNativeResponse) UnmarshalJSON(data []byte) (err error)

type Campaign

type Campaign struct {
	// The campaign's ID.
	Id string `json:"id"`
	// The party who created the campaign. Can be created by partners via API, merchants via the merchant app or Grab.
	CreatedBy string `json:"createdBy"`
	// The merchant's ID that is in GrabFood's database.
	MerchantID string `json:"merchantID"`
	// The campaign's name.
	Name       string              `json:"name"`
	Quotas     *CampaignQuotas     `json:"quotas,omitempty"`
	Conditions *CampaignConditions `json:"conditions,omitempty"`
	Discount   *CampaignDiscount   `json:"discount,omitempty"`
	// Specify the tag for custom bundle offer campaign. Only whitelisted partner is supported as of now.
	CustomTag            *string `json:"customTag,omitempty"`
	AdditionalProperties map[string]interface{}
}

Campaign A JSON object containing the campaign details for a merchant. Only campaigns that are funded by merchants will be sent.

func NewCampaign

func NewCampaign(id string, createdBy string, merchantID string, name string) *Campaign

NewCampaign instantiates a new Campaign 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 NewCampaignWithDefaults

func NewCampaignWithDefaults() *Campaign

NewCampaignWithDefaults instantiates a new Campaign 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 (*Campaign) GetConditions

func (o *Campaign) GetConditions() CampaignConditions

GetConditions returns the Conditions field value if set, zero value otherwise.

func (*Campaign) GetConditionsOk

func (o *Campaign) GetConditionsOk() (*CampaignConditions, bool)

GetConditionsOk returns a tuple with the Conditions field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Campaign) GetCreatedBy

func (o *Campaign) GetCreatedBy() string

GetCreatedBy returns the CreatedBy field value

func (*Campaign) GetCreatedByOk

func (o *Campaign) GetCreatedByOk() (*string, bool)

GetCreatedByOk returns a tuple with the CreatedBy field value and a boolean to check if the value has been set.

func (*Campaign) GetCustomTag

func (o *Campaign) GetCustomTag() string

GetCustomTag returns the CustomTag field value if set, zero value otherwise.

func (*Campaign) GetCustomTagOk

func (o *Campaign) GetCustomTagOk() (*string, bool)

GetCustomTagOk returns a tuple with the CustomTag field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Campaign) GetDiscount

func (o *Campaign) GetDiscount() CampaignDiscount

GetDiscount returns the Discount field value if set, zero value otherwise.

func (*Campaign) GetDiscountOk

func (o *Campaign) GetDiscountOk() (*CampaignDiscount, bool)

GetDiscountOk returns a tuple with the Discount field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Campaign) GetId

func (o *Campaign) GetId() string

GetId returns the Id field value

func (*Campaign) GetIdOk

func (o *Campaign) GetIdOk() (*string, bool)

GetIdOk returns a tuple with the Id field value and a boolean to check if the value has been set.

func (*Campaign) GetMerchantID

func (o *Campaign) GetMerchantID() string

GetMerchantID returns the MerchantID field value

func (*Campaign) GetMerchantIDOk

func (o *Campaign) GetMerchantIDOk() (*string, bool)

GetMerchantIDOk returns a tuple with the MerchantID field value and a boolean to check if the value has been set.

func (*Campaign) GetName

func (o *Campaign) GetName() string

GetName returns the Name field value

func (*Campaign) GetNameOk

func (o *Campaign) GetNameOk() (*string, bool)

GetNameOk returns a tuple with the Name field value and a boolean to check if the value has been set.

func (*Campaign) GetQuotas

func (o *Campaign) GetQuotas() CampaignQuotas

GetQuotas returns the Quotas field value if set, zero value otherwise.

func (*Campaign) GetQuotasOk

func (o *Campaign) GetQuotasOk() (*CampaignQuotas, bool)

GetQuotasOk returns a tuple with the Quotas field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Campaign) HasConditions

func (o *Campaign) HasConditions() bool

HasConditions returns a boolean if a field has been set.

func (*Campaign) HasCustomTag

func (o *Campaign) HasCustomTag() bool

HasCustomTag returns a boolean if a field has been set.

func (*Campaign) HasDiscount

func (o *Campaign) HasDiscount() bool

HasDiscount returns a boolean if a field has been set.

func (*Campaign) HasQuotas

func (o *Campaign) HasQuotas() bool

HasQuotas returns a boolean if a field has been set.

func (Campaign) MarshalJSON

func (o Campaign) MarshalJSON() ([]byte, error)

func (*Campaign) SetConditions

func (o *Campaign) SetConditions(v CampaignConditions)

SetConditions gets a reference to the given CampaignConditions and assigns it to the Conditions field.

func (*Campaign) SetCreatedBy

func (o *Campaign) SetCreatedBy(v string)

SetCreatedBy sets field value

func (*Campaign) SetCustomTag

func (o *Campaign) SetCustomTag(v string)

SetCustomTag gets a reference to the given string and assigns it to the CustomTag field.

func (*Campaign) SetDiscount

func (o *Campaign) SetDiscount(v CampaignDiscount)

SetDiscount gets a reference to the given CampaignDiscount and assigns it to the Discount field.

func (*Campaign) SetId

func (o *Campaign) SetId(v string)

SetId sets field value

func (*Campaign) SetMerchantID

func (o *Campaign) SetMerchantID(v string)

SetMerchantID sets field value

func (*Campaign) SetName

func (o *Campaign) SetName(v string)

SetName sets field value

func (*Campaign) SetQuotas

func (o *Campaign) SetQuotas(v CampaignQuotas)

SetQuotas gets a reference to the given CampaignQuotas and assigns it to the Quotas field.

func (Campaign) ToMap

func (o Campaign) ToMap() (map[string]interface{}, error)

func (*Campaign) UnmarshalJSON

func (o *Campaign) UnmarshalJSON(data []byte) (err error)

type CampaignConditions

type CampaignConditions struct {
	// The campaign's start time in UTC format. For example, 2021-09-23T03:30:00Z means 2021-09-23 11:30:00 (UTC +08:00).
	StartTime time.Time `json:"startTime"`
	// The campaign's end time in UTC format.
	EndTime time.Time `json:"endTime"`
	// The type of eater eligible for the campaign.  * `all` - campaign will be applied to everyone. No limitation on campaign type. * `new` - campaign will be applied to consumers who have not ordered from this store in the last three months. Only applicable to **order-level** campaign.
	EaterType string `json:"eaterType"`
	// The minimum basket amount to be eligible for the campaign. Only applicable to **order-level** campaign but not to item-level discount campaign.
	MinBasketAmount *float64 `json:"minBasketAmount,omitempty"`
	// Specify the bundle quantity for bundle offer campaign.
	BundleQuantity       *int32       `json:"bundleQuantity,omitempty"`
	WorkingHour          *WorkingHour `json:"workingHour,omitempty"`
	AdditionalProperties map[string]interface{}
}

CampaignConditions The conditions to apply to a campaign.

func NewCampaignConditions

func NewCampaignConditions(startTime time.Time, endTime time.Time, eaterType string) *CampaignConditions

NewCampaignConditions instantiates a new CampaignConditions 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 NewCampaignConditionsWithDefaults

func NewCampaignConditionsWithDefaults() *CampaignConditions

NewCampaignConditionsWithDefaults instantiates a new CampaignConditions 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 (*CampaignConditions) GetBundleQuantity

func (o *CampaignConditions) GetBundleQuantity() int32

GetBundleQuantity returns the BundleQuantity field value if set, zero value otherwise.

func (*CampaignConditions) GetBundleQuantityOk

func (o *CampaignConditions) GetBundleQuantityOk() (*int32, bool)

GetBundleQuantityOk returns a tuple with the BundleQuantity field value if set, nil otherwise and a boolean to check if the value has been set.

func (*CampaignConditions) GetEaterType

func (o *CampaignConditions) GetEaterType() string

GetEaterType returns the EaterType field value

func (*CampaignConditions) GetEaterTypeOk

func (o *CampaignConditions) GetEaterTypeOk() (*string, bool)

GetEaterTypeOk returns a tuple with the EaterType field value and a boolean to check if the value has been set.

func (*CampaignConditions) GetEndTime

func (o *CampaignConditions) GetEndTime() time.Time

GetEndTime returns the EndTime field value

func (*CampaignConditions) GetEndTimeOk

func (o *CampaignConditions) GetEndTimeOk() (*time.Time, bool)

GetEndTimeOk returns a tuple with the EndTime field value and a boolean to check if the value has been set.

func (*CampaignConditions) GetMinBasketAmount

func (o *CampaignConditions) GetMinBasketAmount() float64

GetMinBasketAmount returns the MinBasketAmount field value if set, zero value otherwise.

func (*CampaignConditions) GetMinBasketAmountOk

func (o *CampaignConditions) GetMinBasketAmountOk() (*float64, bool)

GetMinBasketAmountOk returns a tuple with the MinBasketAmount field value if set, nil otherwise and a boolean to check if the value has been set.

func (*CampaignConditions) GetStartTime

func (o *CampaignConditions) GetStartTime() time.Time

GetStartTime returns the StartTime field value

func (*CampaignConditions) GetStartTimeOk

func (o *CampaignConditions) GetStartTimeOk() (*time.Time, bool)

GetStartTimeOk returns a tuple with the StartTime field value and a boolean to check if the value has been set.

func (*CampaignConditions) GetWorkingHour

func (o *CampaignConditions) GetWorkingHour() WorkingHour

GetWorkingHour returns the WorkingHour field value if set, zero value otherwise.

func (*CampaignConditions) GetWorkingHourOk

func (o *CampaignConditions) GetWorkingHourOk() (*WorkingHour, bool)

GetWorkingHourOk returns a tuple with the WorkingHour field value if set, nil otherwise and a boolean to check if the value has been set.

func (*CampaignConditions) HasBundleQuantity

func (o *CampaignConditions) HasBundleQuantity() bool

HasBundleQuantity returns a boolean if a field has been set.

func (*CampaignConditions) HasMinBasketAmount

func (o *CampaignConditions) HasMinBasketAmount() bool

HasMinBasketAmount returns a boolean if a field has been set.

func (*CampaignConditions) HasWorkingHour

func (o *CampaignConditions) HasWorkingHour() bool

HasWorkingHour returns a boolean if a field has been set.

func (CampaignConditions) MarshalJSON

func (o CampaignConditions) MarshalJSON() ([]byte, error)

func (*CampaignConditions) SetBundleQuantity

func (o *CampaignConditions) SetBundleQuantity(v int32)

SetBundleQuantity gets a reference to the given int32 and assigns it to the BundleQuantity field.

func (*CampaignConditions) SetEaterType

func (o *CampaignConditions) SetEaterType(v string)

SetEaterType sets field value

func (*CampaignConditions) SetEndTime

func (o *CampaignConditions) SetEndTime(v time.Time)

SetEndTime sets field value

func (*CampaignConditions) SetMinBasketAmount

func (o *CampaignConditions) SetMinBasketAmount(v float64)

SetMinBasketAmount gets a reference to the given float64 and assigns it to the MinBasketAmount field.

func (*CampaignConditions) SetStartTime

func (o *CampaignConditions) SetStartTime(v time.Time)

SetStartTime sets field value

func (*CampaignConditions) SetWorkingHour

func (o *CampaignConditions) SetWorkingHour(v WorkingHour)

SetWorkingHour gets a reference to the given WorkingHour and assigns it to the WorkingHour field.

func (CampaignConditions) ToMap

func (o CampaignConditions) ToMap() (map[string]interface{}, error)

func (*CampaignConditions) UnmarshalJSON

func (o *CampaignConditions) UnmarshalJSON(data []byte) (err error)

type CampaignDiscount

type CampaignDiscount struct {
	// The type of discount
	Type string `json:"type"`
	// The maximum discount dollar amount. It is **not required** and will be ignored when the `discount.type` is: - `net` - `delivery` - `freeItem` - `bundleSameNet` - `bundleSamePercentage` - `bundleSameFixPrice` - `bundleDiffNet` - `bundleDiffPercentage` - `bundleDiffFixPrice`
	Cap *float64 `json:"cap,omitempty"`
	// Specify the discount amount. Decimal number is not supported For VN, ID and TH. For example, `10.5` is not allowed and it should be `10.0`. * Dollar amount value when `discount.type` is `net`, `delivery`, `bundleSameNet`, `bundleSameFixPrice`, `bundleDiffNet`, `bundleDiffFixPrice`. * Percentage value (0-100) when `discount.type` is `percentage`, `bundleSamePercentage`, `bundleDiffPercentage`. * **Not required** when `discount.type` is `freeItem`.
	Value                *float64      `json:"value,omitempty"`
	Scope                CampaignScope `json:"scope"`
	AdditionalProperties map[string]interface{}
}

CampaignDiscount The discount detail for a particular campaign when conditions are satisfied.

func NewCampaignDiscount

func NewCampaignDiscount(type_ string, scope CampaignScope) *CampaignDiscount

NewCampaignDiscount instantiates a new CampaignDiscount 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 NewCampaignDiscountWithDefaults

func NewCampaignDiscountWithDefaults() *CampaignDiscount

NewCampaignDiscountWithDefaults instantiates a new CampaignDiscount 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 (*CampaignDiscount) GetCap

func (o *CampaignDiscount) GetCap() float64

GetCap returns the Cap field value if set, zero value otherwise.

func (*CampaignDiscount) GetCapOk

func (o *CampaignDiscount) GetCapOk() (*float64, bool)

GetCapOk returns a tuple with the Cap field value if set, nil otherwise and a boolean to check if the value has been set.

func (*CampaignDiscount) GetScope

func (o *CampaignDiscount) GetScope() CampaignScope

GetScope returns the Scope field value

func (*CampaignDiscount) GetScopeOk

func (o *CampaignDiscount) GetScopeOk() (*CampaignScope, bool)

GetScopeOk returns a tuple with the Scope field value and a boolean to check if the value has been set.

func (*CampaignDiscount) GetType

func (o *CampaignDiscount) GetType() string

GetType returns the Type field value

func (*CampaignDiscount) GetTypeOk

func (o *CampaignDiscount) GetTypeOk() (*string, bool)

GetTypeOk returns a tuple with the Type field value and a boolean to check if the value has been set.

func (*CampaignDiscount) GetValue

func (o *CampaignDiscount) GetValue() float64

GetValue returns the Value field value if set, zero value otherwise.

func (*CampaignDiscount) GetValueOk

func (o *CampaignDiscount) GetValueOk() (*float64, bool)

GetValueOk returns a tuple with the Value field value if set, nil otherwise and a boolean to check if the value has been set.

func (*CampaignDiscount) HasCap

func (o *CampaignDiscount) HasCap() bool

HasCap returns a boolean if a field has been set.

func (*CampaignDiscount) HasValue

func (o *CampaignDiscount) HasValue() bool

HasValue returns a boolean if a field has been set.

func (CampaignDiscount) MarshalJSON

func (o CampaignDiscount) MarshalJSON() ([]byte, error)

func (*CampaignDiscount) SetCap

func (o *CampaignDiscount) SetCap(v float64)

SetCap gets a reference to the given float64 and assigns it to the Cap field.

func (*CampaignDiscount) SetScope

func (o *CampaignDiscount) SetScope(v CampaignScope)

SetScope sets field value

func (*CampaignDiscount) SetType

func (o *CampaignDiscount) SetType(v string)

SetType sets field value

func (*CampaignDiscount) SetValue

func (o *CampaignDiscount) SetValue(v float64)

SetValue gets a reference to the given float64 and assigns it to the Value field.

func (CampaignDiscount) ToMap

func (o CampaignDiscount) ToMap() (map[string]interface{}, error)

func (*CampaignDiscount) UnmarshalJSON

func (o *CampaignDiscount) UnmarshalJSON(data []byte) (err error)

type CampaignQuotas

type CampaignQuotas struct {
	// The maximum number of redemptions. Default is unlimited if unspecified.
	TotalCount *int64 `json:"totalCount,omitempty"`
	// The maximum number of redemptions per user. Default is unlimited if unspecified.
	TotalCountPerUser    *int64 `json:"totalCountPerUser,omitempty"`
	AdditionalProperties map[string]interface{}
}

CampaignQuotas The quotas/limits for a particular campaign.

func NewCampaignQuotas

func NewCampaignQuotas() *CampaignQuotas

NewCampaignQuotas instantiates a new CampaignQuotas 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 NewCampaignQuotasWithDefaults

func NewCampaignQuotasWithDefaults() *CampaignQuotas

NewCampaignQuotasWithDefaults instantiates a new CampaignQuotas 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 (*CampaignQuotas) GetTotalCount

func (o *CampaignQuotas) GetTotalCount() int64

GetTotalCount returns the TotalCount field value if set, zero value otherwise.

func (*CampaignQuotas) GetTotalCountOk

func (o *CampaignQuotas) GetTotalCountOk() (*int64, bool)

GetTotalCountOk returns a tuple with the TotalCount field value if set, nil otherwise and a boolean to check if the value has been set.

func (*CampaignQuotas) GetTotalCountPerUser

func (o *CampaignQuotas) GetTotalCountPerUser() int64

GetTotalCountPerUser returns the TotalCountPerUser field value if set, zero value otherwise.

func (*CampaignQuotas) GetTotalCountPerUserOk

func (o *CampaignQuotas) GetTotalCountPerUserOk() (*int64, bool)

GetTotalCountPerUserOk returns a tuple with the TotalCountPerUser field value if set, nil otherwise and a boolean to check if the value has been set.

func (*CampaignQuotas) HasTotalCount

func (o *CampaignQuotas) HasTotalCount() bool

HasTotalCount returns a boolean if a field has been set.

func (*CampaignQuotas) HasTotalCountPerUser

func (o *CampaignQuotas) HasTotalCountPerUser() bool

HasTotalCountPerUser returns a boolean if a field has been set.

func (CampaignQuotas) MarshalJSON

func (o CampaignQuotas) MarshalJSON() ([]byte, error)

func (*CampaignQuotas) SetTotalCount

func (o *CampaignQuotas) SetTotalCount(v int64)

SetTotalCount gets a reference to the given int64 and assigns it to the TotalCount field.

func (*CampaignQuotas) SetTotalCountPerUser

func (o *CampaignQuotas) SetTotalCountPerUser(v int64)

SetTotalCountPerUser gets a reference to the given int64 and assigns it to the TotalCountPerUser field.

func (CampaignQuotas) ToMap

func (o CampaignQuotas) ToMap() (map[string]interface{}, error)

func (*CampaignQuotas) UnmarshalJSON

func (o *CampaignQuotas) UnmarshalJSON(data []byte) (err error)

type CampaignScope

type CampaignScope struct {
	// The scope type for this campaign.  * `order` - order level campaign. * `items` - item level campaign or bundle offer.  * `category` - category level campaign where all items within applies the same discount.
	Type string `json:"type"`
	// The list of item IDs in the partner's database applicable for discount when `discount.scope.type` is `items` (or category IDs for `category`).  One and only 1 item supported when `discount.type` is: - `freeItem` - `bundleSameNet` - `bundleSamePercentage` - `bundleSameFixPrice`  Minimum 2 - Maximum 20 items supported when `discount.type` is: - `bundleDiffNet` - `bundleDiffPercentage` - `bundleDiffFixPrice`
	ObjectIDs            []string `json:"objectIDs,omitempty"`
	AdditionalProperties map[string]interface{}
}

CampaignScope The scope level for a particular campaign.

func NewCampaignScope

func NewCampaignScope(type_ string) *CampaignScope

NewCampaignScope instantiates a new CampaignScope 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 NewCampaignScopeWithDefaults

func NewCampaignScopeWithDefaults() *CampaignScope

NewCampaignScopeWithDefaults instantiates a new CampaignScope 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 (*CampaignScope) GetObjectIDs

func (o *CampaignScope) GetObjectIDs() []string

GetObjectIDs returns the ObjectIDs field value if set, zero value otherwise.

func (*CampaignScope) GetObjectIDsOk

func (o *CampaignScope) GetObjectIDsOk() ([]string, bool)

GetObjectIDsOk returns a tuple with the ObjectIDs field value if set, nil otherwise and a boolean to check if the value has been set.

func (*CampaignScope) GetType

func (o *CampaignScope) GetType() string

GetType returns the Type field value

func (*CampaignScope) GetTypeOk

func (o *CampaignScope) GetTypeOk() (*string, bool)

GetTypeOk returns a tuple with the Type field value and a boolean to check if the value has been set.

func (*CampaignScope) HasObjectIDs

func (o *CampaignScope) HasObjectIDs() bool

HasObjectIDs returns a boolean if a field has been set.

func (CampaignScope) MarshalJSON

func (o CampaignScope) MarshalJSON() ([]byte, error)

func (*CampaignScope) SetObjectIDs

func (o *CampaignScope) SetObjectIDs(v []string)

SetObjectIDs gets a reference to the given []string and assigns it to the ObjectIDs field.

func (*CampaignScope) SetType

func (o *CampaignScope) SetType(v string)

SetType sets field value

func (CampaignScope) ToMap

func (o CampaignScope) ToMap() (map[string]interface{}, error)

func (*CampaignScope) UnmarshalJSON

func (o *CampaignScope) UnmarshalJSON(data []byte) (err error)

type CancelCode

type CancelCode int32

CancelCode The cancel code for a specific cancel reason.

func NewCancelCodeFromValue

func NewCancelCodeFromValue(v int32) (*CancelCode, error)

NewCancelCodeFromValue returns a pointer to a valid CancelCode for the value passed as argument, or an error if the value passed is not allowed by the enum

func (CancelCode) IsValid

func (v CancelCode) IsValid() bool

IsValid return true if the value is valid for the enum, false otherwise

func (CancelCode) Ptr

func (v CancelCode) Ptr() *CancelCode

Ptr returns reference to cancelCode value

func (*CancelCode) UnmarshalJSON

func (v *CancelCode) UnmarshalJSON(src []byte) error

type CancelOrderAPIService

type CancelOrderAPIService service

CancelOrderAPIService CancelOrderAPI service

func (*CancelOrderAPIService) CancelOrder

CancelOrder Cancel an order

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return ApiCancelOrderRequest

func (*CancelOrderAPIService) CancelOrderExecute

Execute executes the request

@return CancelOrderResponse

type CancelOrderLimitType

type CancelOrderLimitType string

CancelOrderLimitType The type of the order cancellation limit.

const (
	NOT_APPROACHING_LIMIT         CancelOrderLimitType = "not approaching limit"
	APPROACHING_THE_DAILY_LIMIT   CancelOrderLimitType = "approaching the daily limit"
	APPROACHING_THE_WEEKLY_LIMIT  CancelOrderLimitType = "approaching the weekly limit"
	APPROACHING_THE_MONTHLY_LIMIT CancelOrderLimitType = "approaching the monthly limit"
	EMPTY                         CancelOrderLimitType = ""
)

List of cancelOrderLimitType

func NewCancelOrderLimitTypeFromValue

func NewCancelOrderLimitTypeFromValue(v string) (*CancelOrderLimitType, error)

NewCancelOrderLimitTypeFromValue returns a pointer to a valid CancelOrderLimitType for the value passed as argument, or an error if the value passed is not allowed by the enum

func (CancelOrderLimitType) IsValid

func (v CancelOrderLimitType) IsValid() bool

IsValid return true if the value is valid for the enum, false otherwise

func (CancelOrderLimitType) Ptr

Ptr returns reference to cancelOrderLimitType value

func (*CancelOrderLimitType) UnmarshalJSON

func (v *CancelOrderLimitType) UnmarshalJSON(src []byte) error

type CancelOrderRequest

type CancelOrderRequest struct {
	// The order's ID that is returned from GrabFood. Refer to FAQs for more details about [orderID and shortOrderNumber](#section/Order/What's-the-difference-between-orderID-and-shortOrderNumber).
	OrderID string `json:"orderID"`
	// The merchant's ID that is in GrabFood's database.
	MerchantID           string     `json:"merchantID"`
	CancelCode           CancelCode `json:"cancelCode"`
	AdditionalProperties map[string]interface{}
}

CancelOrderRequest This request cancels an order on GrabFood.

func NewCancelOrderRequest

func NewCancelOrderRequest(orderID string, merchantID string, cancelCode CancelCode) *CancelOrderRequest

NewCancelOrderRequest instantiates a new CancelOrderRequest 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 NewCancelOrderRequestWithDefaults

func NewCancelOrderRequestWithDefaults() *CancelOrderRequest

NewCancelOrderRequestWithDefaults instantiates a new CancelOrderRequest 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 (*CancelOrderRequest) GetCancelCode

func (o *CancelOrderRequest) GetCancelCode() CancelCode

GetCancelCode returns the CancelCode field value

func (*CancelOrderRequest) GetCancelCodeOk

func (o *CancelOrderRequest) GetCancelCodeOk() (*CancelCode, bool)

GetCancelCodeOk returns a tuple with the CancelCode field value and a boolean to check if the value has been set.

func (*CancelOrderRequest) GetMerchantID

func (o *CancelOrderRequest) GetMerchantID() string

GetMerchantID returns the MerchantID field value

func (*CancelOrderRequest) GetMerchantIDOk

func (o *CancelOrderRequest) GetMerchantIDOk() (*string, bool)

GetMerchantIDOk returns a tuple with the MerchantID field value and a boolean to check if the value has been set.

func (*CancelOrderRequest) GetOrderID

func (o *CancelOrderRequest) GetOrderID() string

GetOrderID returns the OrderID field value

func (*CancelOrderRequest) GetOrderIDOk

func (o *CancelOrderRequest) GetOrderIDOk() (*string, bool)

GetOrderIDOk returns a tuple with the OrderID field value and a boolean to check if the value has been set.

func (CancelOrderRequest) MarshalJSON

func (o CancelOrderRequest) MarshalJSON() ([]byte, error)

func (*CancelOrderRequest) SetCancelCode

func (o *CancelOrderRequest) SetCancelCode(v CancelCode)

SetCancelCode sets field value

func (*CancelOrderRequest) SetMerchantID

func (o *CancelOrderRequest) SetMerchantID(v string)

SetMerchantID sets field value

func (*CancelOrderRequest) SetOrderID

func (o *CancelOrderRequest) SetOrderID(v string)

SetOrderID sets field value

func (CancelOrderRequest) ToMap

func (o CancelOrderRequest) ToMap() (map[string]interface{}, error)

func (*CancelOrderRequest) UnmarshalJSON

func (o *CancelOrderRequest) UnmarshalJSON(data []byte) (err error)

type CancelOrderResponse

type CancelOrderResponse struct {
	LimitType *CancelOrderLimitType `json:"limitType,omitempty"`
	// The remaining cancellation quota for the merchant. A value is only returned when the nearest remaining cancellation limit is approaching, else it returns 0.
	LimitTimes           *int64 `json:"limitTimes,omitempty"`
	AdditionalProperties map[string]interface{}
}

CancelOrderResponse

func NewCancelOrderResponse

func NewCancelOrderResponse() *CancelOrderResponse

NewCancelOrderResponse instantiates a new CancelOrderResponse 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 NewCancelOrderResponseWithDefaults

func NewCancelOrderResponseWithDefaults() *CancelOrderResponse

NewCancelOrderResponseWithDefaults instantiates a new CancelOrderResponse 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 (*CancelOrderResponse) GetLimitTimes

func (o *CancelOrderResponse) GetLimitTimes() int64

GetLimitTimes returns the LimitTimes field value if set, zero value otherwise.

func (*CancelOrderResponse) GetLimitTimesOk

func (o *CancelOrderResponse) GetLimitTimesOk() (*int64, bool)

GetLimitTimesOk returns a tuple with the LimitTimes field value if set, nil otherwise and a boolean to check if the value has been set.

func (*CancelOrderResponse) GetLimitType

func (o *CancelOrderResponse) GetLimitType() CancelOrderLimitType

GetLimitType returns the LimitType field value if set, zero value otherwise.

func (*CancelOrderResponse) GetLimitTypeOk

func (o *CancelOrderResponse) GetLimitTypeOk() (*CancelOrderLimitType, bool)

GetLimitTypeOk returns a tuple with the LimitType field value if set, nil otherwise and a boolean to check if the value has been set.

func (*CancelOrderResponse) HasLimitTimes

func (o *CancelOrderResponse) HasLimitTimes() bool

HasLimitTimes returns a boolean if a field has been set.

func (*CancelOrderResponse) HasLimitType

func (o *CancelOrderResponse) HasLimitType() bool

HasLimitType returns a boolean if a field has been set.

func (CancelOrderResponse) MarshalJSON

func (o CancelOrderResponse) MarshalJSON() ([]byte, error)

func (*CancelOrderResponse) SetLimitTimes

func (o *CancelOrderResponse) SetLimitTimes(v int64)

SetLimitTimes gets a reference to the given int64 and assigns it to the LimitTimes field.

func (*CancelOrderResponse) SetLimitType

func (o *CancelOrderResponse) SetLimitType(v CancelOrderLimitType)

SetLimitType gets a reference to the given CancelOrderLimitType and assigns it to the LimitType field.

func (CancelOrderResponse) ToMap

func (o CancelOrderResponse) ToMap() (map[string]interface{}, error)

func (*CancelOrderResponse) UnmarshalJSON

func (o *CancelOrderResponse) UnmarshalJSON(data []byte) (err error)

type CancelReason

type CancelReason struct {
	Code *CancelCode `json:"code,omitempty"`
	// The detailed cancel reason for the specific cancel code. - Items are unavailable <code 1001> - I have too many orders now <code 1002> - My shop is closed <code 1003> - My shop is closing soon <code 1004>
	Reason               *string `json:"reason,omitempty"`
	AdditionalProperties map[string]interface{}
}

CancelReason struct for CancelReason

func NewCancelReason

func NewCancelReason() *CancelReason

NewCancelReason instantiates a new CancelReason 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 NewCancelReasonWithDefaults

func NewCancelReasonWithDefaults() *CancelReason

NewCancelReasonWithDefaults instantiates a new CancelReason 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 (*CancelReason) GetCode

func (o *CancelReason) GetCode() CancelCode

GetCode returns the Code field value if set, zero value otherwise.

func (*CancelReason) GetCodeOk

func (o *CancelReason) GetCodeOk() (*CancelCode, bool)

GetCodeOk returns a tuple with the Code field value if set, nil otherwise and a boolean to check if the value has been set.

func (*CancelReason) GetReason

func (o *CancelReason) GetReason() string

GetReason returns the Reason field value if set, zero value otherwise.

func (*CancelReason) GetReasonOk

func (o *CancelReason) GetReasonOk() (*string, bool)

GetReasonOk returns a tuple with the Reason field value if set, nil otherwise and a boolean to check if the value has been set.

func (*CancelReason) HasCode

func (o *CancelReason) HasCode() bool

HasCode returns a boolean if a field has been set.

func (*CancelReason) HasReason

func (o *CancelReason) HasReason() bool

HasReason returns a boolean if a field has been set.

func (CancelReason) MarshalJSON

func (o CancelReason) MarshalJSON() ([]byte, error)

func (*CancelReason) SetCode

func (o *CancelReason) SetCode(v CancelCode)

SetCode gets a reference to the given CancelCode and assigns it to the Code field.

func (*CancelReason) SetReason

func (o *CancelReason) SetReason(v string)

SetReason gets a reference to the given string and assigns it to the Reason field.

func (CancelReason) ToMap

func (o CancelReason) ToMap() (map[string]interface{}, error)

func (*CancelReason) UnmarshalJSON

func (o *CancelReason) UnmarshalJSON(data []byte) (err error)

type CheckOrderCancelableAPIService

type CheckOrderCancelableAPIService service

CheckOrderCancelableAPIService CheckOrderCancelableAPI service

func (*CheckOrderCancelableAPIService) CheckOrderCancelable

CheckOrderCancelable Check order cancelable

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return ApiCheckOrderCancelableRequest

func (*CheckOrderCancelableAPIService) CheckOrderCancelableExecute

Execute executes the request

@return CheckOrderCancelableResponse

type CheckOrderCancelableResponse

type CheckOrderCancelableResponse struct {
	// The boolean value to indicate whether an order can be cancelled.
	CancelAble *bool `json:"cancelAble,omitempty"`
	// The reason for the order to be non-cancelable.
	NonCancellationReason *string               `json:"nonCancellationReason,omitempty"`
	LimitType             *CancelOrderLimitType `json:"limitType,omitempty"`
	// The remaining cancellation quota for the merchant. A value is only returned when the nearest remaining cancellation limit is approaching, else it returns 0.
	LimitTimes *int64 `json:"limitTimes,omitempty"`
	// An array of cancel order reasons JSON objects.
	CancelReasons        []CancelReason `json:"cancelReasons,omitempty"`
	AdditionalProperties map[string]interface{}
}

CheckOrderCancelableResponse

func NewCheckOrderCancelableResponse

func NewCheckOrderCancelableResponse() *CheckOrderCancelableResponse

NewCheckOrderCancelableResponse instantiates a new CheckOrderCancelableResponse 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 NewCheckOrderCancelableResponseWithDefaults

func NewCheckOrderCancelableResponseWithDefaults() *CheckOrderCancelableResponse

NewCheckOrderCancelableResponseWithDefaults instantiates a new CheckOrderCancelableResponse 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 (*CheckOrderCancelableResponse) GetCancelAble

func (o *CheckOrderCancelableResponse) GetCancelAble() bool

GetCancelAble returns the CancelAble field value if set, zero value otherwise.

func (*CheckOrderCancelableResponse) GetCancelAbleOk

func (o *CheckOrderCancelableResponse) GetCancelAbleOk() (*bool, bool)

GetCancelAbleOk returns a tuple with the CancelAble field value if set, nil otherwise and a boolean to check if the value has been set.

func (*CheckOrderCancelableResponse) GetCancelReasons

func (o *CheckOrderCancelableResponse) GetCancelReasons() []CancelReason

GetCancelReasons returns the CancelReasons field value if set, zero value otherwise.

func (*CheckOrderCancelableResponse) GetCancelReasonsOk

func (o *CheckOrderCancelableResponse) GetCancelReasonsOk() ([]CancelReason, bool)

GetCancelReasonsOk returns a tuple with the CancelReasons field value if set, nil otherwise and a boolean to check if the value has been set.

func (*CheckOrderCancelableResponse) GetLimitTimes

func (o *CheckOrderCancelableResponse) GetLimitTimes() int64

GetLimitTimes returns the LimitTimes field value if set, zero value otherwise.

func (*CheckOrderCancelableResponse) GetLimitTimesOk

func (o *CheckOrderCancelableResponse) GetLimitTimesOk() (*int64, bool)

GetLimitTimesOk returns a tuple with the LimitTimes field value if set, nil otherwise and a boolean to check if the value has been set.

func (*CheckOrderCancelableResponse) GetLimitType

GetLimitType returns the LimitType field value if set, zero value otherwise.

func (*CheckOrderCancelableResponse) GetLimitTypeOk

func (o *CheckOrderCancelableResponse) GetLimitTypeOk() (*CancelOrderLimitType, bool)

GetLimitTypeOk returns a tuple with the LimitType field value if set, nil otherwise and a boolean to check if the value has been set.

func (*CheckOrderCancelableResponse) GetNonCancellationReason

func (o *CheckOrderCancelableResponse) GetNonCancellationReason() string

GetNonCancellationReason returns the NonCancellationReason field value if set, zero value otherwise.

func (*CheckOrderCancelableResponse) GetNonCancellationReasonOk

func (o *CheckOrderCancelableResponse) GetNonCancellationReasonOk() (*string, bool)

GetNonCancellationReasonOk returns a tuple with the NonCancellationReason field value if set, nil otherwise and a boolean to check if the value has been set.

func (*CheckOrderCancelableResponse) HasCancelAble

func (o *CheckOrderCancelableResponse) HasCancelAble() bool

HasCancelAble returns a boolean if a field has been set.

func (*CheckOrderCancelableResponse) HasCancelReasons

func (o *CheckOrderCancelableResponse) HasCancelReasons() bool

HasCancelReasons returns a boolean if a field has been set.

func (*CheckOrderCancelableResponse) HasLimitTimes

func (o *CheckOrderCancelableResponse) HasLimitTimes() bool

HasLimitTimes returns a boolean if a field has been set.

func (*CheckOrderCancelableResponse) HasLimitType

func (o *CheckOrderCancelableResponse) HasLimitType() bool

HasLimitType returns a boolean if a field has been set.

func (*CheckOrderCancelableResponse) HasNonCancellationReason

func (o *CheckOrderCancelableResponse) HasNonCancellationReason() bool

HasNonCancellationReason returns a boolean if a field has been set.

func (CheckOrderCancelableResponse) MarshalJSON

func (o CheckOrderCancelableResponse) MarshalJSON() ([]byte, error)

func (*CheckOrderCancelableResponse) SetCancelAble

func (o *CheckOrderCancelableResponse) SetCancelAble(v bool)

SetCancelAble gets a reference to the given bool and assigns it to the CancelAble field.

func (*CheckOrderCancelableResponse) SetCancelReasons

func (o *CheckOrderCancelableResponse) SetCancelReasons(v []CancelReason)

SetCancelReasons gets a reference to the given []CancelReason and assigns it to the CancelReasons field.

func (*CheckOrderCancelableResponse) SetLimitTimes

func (o *CheckOrderCancelableResponse) SetLimitTimes(v int64)

SetLimitTimes gets a reference to the given int64 and assigns it to the LimitTimes field.

func (*CheckOrderCancelableResponse) SetLimitType

SetLimitType gets a reference to the given CancelOrderLimitType and assigns it to the LimitType field.

func (*CheckOrderCancelableResponse) SetNonCancellationReason

func (o *CheckOrderCancelableResponse) SetNonCancellationReason(v string)

SetNonCancellationReason gets a reference to the given string and assigns it to the NonCancellationReason field.

func (CheckOrderCancelableResponse) ToMap

func (o CheckOrderCancelableResponse) ToMap() (map[string]interface{}, error)

func (*CheckOrderCancelableResponse) UnmarshalJSON

func (o *CheckOrderCancelableResponse) UnmarshalJSON(data []byte) (err error)

type Configuration

type Configuration struct {
	Host             string            `json:"host,omitempty"`
	Scheme           string            `json:"scheme,omitempty"`
	DefaultHeader    map[string]string `json:"defaultHeader,omitempty"`
	UserAgent        string            `json:"userAgent,omitempty"`
	Debug            bool              `json:"debug,omitempty"`
	Servers          ServerConfigurations
	OperationServers map[string]ServerConfigurations
	HTTPClient       *http.Client
}

Configuration stores the configuration of the API client

func NewConfiguration

func NewConfiguration() *Configuration

NewConfiguration returns a new Configuration object

func (*Configuration) AddDefaultHeader

func (c *Configuration) AddDefaultHeader(key string, value string)

AddDefaultHeader adds a new HTTP header to the default header in the request

func (*Configuration) ServerURL

func (c *Configuration) ServerURL(index int, variables map[string]string) (string, error)

ServerURL returns URL based on server settings

func (*Configuration) ServerURLWithContext

func (c *Configuration) ServerURLWithContext(ctx context.Context, endpoint string) (string, error)

ServerURLWithContext returns a new server URL given an endpoint

type Coordinates

type Coordinates struct {
	// The latitude coordinates of the delivery address.
	Latitude *float64 `json:"latitude,omitempty"`
	// The longitude coordinates of the delivery address.
	Longitude            *float64 `json:"longitude,omitempty"`
	AdditionalProperties map[string]interface{}
}

Coordinates A JSON object containing the coordinates of the delivery address. Only has value when poiSource is `GRAB`.

func NewCoordinates

func NewCoordinates() *Coordinates

NewCoordinates instantiates a new Coordinates 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 NewCoordinatesWithDefaults

func NewCoordinatesWithDefaults() *Coordinates

NewCoordinatesWithDefaults instantiates a new Coordinates 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 (*Coordinates) GetLatitude

func (o *Coordinates) GetLatitude() float64

GetLatitude returns the Latitude field value if set, zero value otherwise.

func (*Coordinates) GetLatitudeOk

func (o *Coordinates) GetLatitudeOk() (*float64, bool)

GetLatitudeOk returns a tuple with the Latitude field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Coordinates) GetLongitude

func (o *Coordinates) GetLongitude() float64

GetLongitude returns the Longitude field value if set, zero value otherwise.

func (*Coordinates) GetLongitudeOk

func (o *Coordinates) GetLongitudeOk() (*float64, bool)

GetLongitudeOk returns a tuple with the Longitude field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Coordinates) HasLatitude

func (o *Coordinates) HasLatitude() bool

HasLatitude returns a boolean if a field has been set.

func (*Coordinates) HasLongitude

func (o *Coordinates) HasLongitude() bool

HasLongitude returns a boolean if a field has been set.

func (Coordinates) MarshalJSON

func (o Coordinates) MarshalJSON() ([]byte, error)

func (*Coordinates) SetLatitude

func (o *Coordinates) SetLatitude(v float64)

SetLatitude gets a reference to the given float64 and assigns it to the Latitude field.

func (*Coordinates) SetLongitude

func (o *Coordinates) SetLongitude(v float64)

SetLongitude gets a reference to the given float64 and assigns it to the Longitude field.

func (Coordinates) ToMap

func (o Coordinates) ToMap() (map[string]interface{}, error)

func (*Coordinates) UnmarshalJSON

func (o *Coordinates) UnmarshalJSON(data []byte) (err error)

type CreateCampaignAPIService

type CreateCampaignAPIService service

CreateCampaignAPIService CreateCampaignAPI service

func (*CreateCampaignAPIService) CreateCampaign

CreateCampaign Create campaign

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return ApiCreateCampaignRequest

func (*CreateCampaignAPIService) CreateCampaignExecute

Execute executes the request

@return CreateCampaignResponse

type CreateCampaignRequest

type CreateCampaignRequest struct {
	// The merchant's ID that is in GrabFood's database.
	MerchantID string `json:"merchantID"`
	// The campaign's name.
	Name       string             `json:"name"`
	Quotas     *CampaignQuotas    `json:"quotas,omitempty"`
	Conditions CampaignConditions `json:"conditions"`
	Discount   CampaignDiscount   `json:"discount"`
	// Specify the tag for custom bundle offer campaign. Only whitelisted partner is supported as of now.
	CustomTag            *string `json:"customTag,omitempty"`
	AdditionalProperties map[string]interface{}
}

CreateCampaignRequest This request creates a campaign for your GrabFood store.

func NewCreateCampaignRequest

func NewCreateCampaignRequest(merchantID string, name string, conditions CampaignConditions, discount CampaignDiscount) *CreateCampaignRequest

NewCreateCampaignRequest instantiates a new CreateCampaignRequest 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 NewCreateCampaignRequestWithDefaults

func NewCreateCampaignRequestWithDefaults() *CreateCampaignRequest

NewCreateCampaignRequestWithDefaults instantiates a new CreateCampaignRequest 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 (*CreateCampaignRequest) GetConditions

func (o *CreateCampaignRequest) GetConditions() CampaignConditions

GetConditions returns the Conditions field value

func (*CreateCampaignRequest) GetConditionsOk

func (o *CreateCampaignRequest) GetConditionsOk() (*CampaignConditions, bool)

GetConditionsOk returns a tuple with the Conditions field value and a boolean to check if the value has been set.

func (*CreateCampaignRequest) GetCustomTag

func (o *CreateCampaignRequest) GetCustomTag() string

GetCustomTag returns the CustomTag field value if set, zero value otherwise.

func (*CreateCampaignRequest) GetCustomTagOk

func (o *CreateCampaignRequest) GetCustomTagOk() (*string, bool)

GetCustomTagOk returns a tuple with the CustomTag field value if set, nil otherwise and a boolean to check if the value has been set.

func (*CreateCampaignRequest) GetDiscount

func (o *CreateCampaignRequest) GetDiscount() CampaignDiscount

GetDiscount returns the Discount field value

func (*CreateCampaignRequest) GetDiscountOk

func (o *CreateCampaignRequest) GetDiscountOk() (*CampaignDiscount, bool)

GetDiscountOk returns a tuple with the Discount field value and a boolean to check if the value has been set.

func (*CreateCampaignRequest) GetMerchantID

func (o *CreateCampaignRequest) GetMerchantID() string

GetMerchantID returns the MerchantID field value

func (*CreateCampaignRequest) GetMerchantIDOk

func (o *CreateCampaignRequest) GetMerchantIDOk() (*string, bool)

GetMerchantIDOk returns a tuple with the MerchantID field value and a boolean to check if the value has been set.

func (*CreateCampaignRequest) GetName

func (o *CreateCampaignRequest) GetName() string

GetName returns the Name field value

func (*CreateCampaignRequest) GetNameOk

func (o *CreateCampaignRequest) GetNameOk() (*string, bool)

GetNameOk returns a tuple with the Name field value and a boolean to check if the value has been set.

func (*CreateCampaignRequest) GetQuotas

func (o *CreateCampaignRequest) GetQuotas() CampaignQuotas

GetQuotas returns the Quotas field value if set, zero value otherwise.

func (*CreateCampaignRequest) GetQuotasOk

func (o *CreateCampaignRequest) GetQuotasOk() (*CampaignQuotas, bool)

GetQuotasOk returns a tuple with the Quotas field value if set, nil otherwise and a boolean to check if the value has been set.

func (*CreateCampaignRequest) HasCustomTag

func (o *CreateCampaignRequest) HasCustomTag() bool

HasCustomTag returns a boolean if a field has been set.

func (*CreateCampaignRequest) HasQuotas

func (o *CreateCampaignRequest) HasQuotas() bool

HasQuotas returns a boolean if a field has been set.

func (CreateCampaignRequest) MarshalJSON

func (o CreateCampaignRequest) MarshalJSON() ([]byte, error)

func (*CreateCampaignRequest) SetConditions

func (o *CreateCampaignRequest) SetConditions(v CampaignConditions)

SetConditions sets field value

func (*CreateCampaignRequest) SetCustomTag

func (o *CreateCampaignRequest) SetCustomTag(v string)

SetCustomTag gets a reference to the given string and assigns it to the CustomTag field.

func (*CreateCampaignRequest) SetDiscount

func (o *CreateCampaignRequest) SetDiscount(v CampaignDiscount)

SetDiscount sets field value

func (*CreateCampaignRequest) SetMerchantID

func (o *CreateCampaignRequest) SetMerchantID(v string)

SetMerchantID sets field value

func (*CreateCampaignRequest) SetName

func (o *CreateCampaignRequest) SetName(v string)

SetName sets field value

func (*CreateCampaignRequest) SetQuotas

func (o *CreateCampaignRequest) SetQuotas(v CampaignQuotas)

SetQuotas gets a reference to the given CampaignQuotas and assigns it to the Quotas field.

func (CreateCampaignRequest) ToMap

func (o CreateCampaignRequest) ToMap() (map[string]interface{}, error)

func (*CreateCampaignRequest) UnmarshalJSON

func (o *CreateCampaignRequest) UnmarshalJSON(data []byte) (err error)

type CreateCampaignResponse

type CreateCampaignResponse struct {
	// The campaign's ID.
	Id                   *string `json:"id,omitempty"`
	AdditionalProperties map[string]interface{}
}

CreateCampaignResponse

func NewCreateCampaignResponse

func NewCreateCampaignResponse() *CreateCampaignResponse

NewCreateCampaignResponse instantiates a new CreateCampaignResponse 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 NewCreateCampaignResponseWithDefaults

func NewCreateCampaignResponseWithDefaults() *CreateCampaignResponse

NewCreateCampaignResponseWithDefaults instantiates a new CreateCampaignResponse 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 (*CreateCampaignResponse) GetId

func (o *CreateCampaignResponse) GetId() string

GetId returns the Id field value if set, zero value otherwise.

func (*CreateCampaignResponse) GetIdOk

func (o *CreateCampaignResponse) GetIdOk() (*string, bool)

GetIdOk returns a tuple with the Id field value if set, nil otherwise and a boolean to check if the value has been set.

func (*CreateCampaignResponse) HasId

func (o *CreateCampaignResponse) HasId() bool

HasId returns a boolean if a field has been set.

func (CreateCampaignResponse) MarshalJSON

func (o CreateCampaignResponse) MarshalJSON() ([]byte, error)

func (*CreateCampaignResponse) SetId

func (o *CreateCampaignResponse) SetId(v string)

SetId gets a reference to the given string and assigns it to the Id field.

func (CreateCampaignResponse) ToMap

func (o CreateCampaignResponse) ToMap() (map[string]interface{}, error)

func (*CreateCampaignResponse) UnmarshalJSON

func (o *CreateCampaignResponse) UnmarshalJSON(data []byte) (err error)

type CreateSelfServeJourneyAPIService added in v1.0.1

type CreateSelfServeJourneyAPIService service

CreateSelfServeJourneyAPIService CreateSelfServeJourneyAPI service

func (*CreateSelfServeJourneyAPIService) CreateSelfServeJourney added in v1.0.1

CreateSelfServeJourney Create self serve journey

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return ApiCreateSelfServeJourneyRequest

func (*CreateSelfServeJourneyAPIService) CreateSelfServeJourneyExecute added in v1.0.1

Execute executes the request

@return CreateSelfServeJourneyResponse

type CreateSelfServeJourneyRequest added in v1.0.1

type CreateSelfServeJourneyRequest struct {
	Partner              CreateSelfServeJourneyRequestPartner `json:"partner"`
	AdditionalProperties map[string]interface{}
}

CreateSelfServeJourneyRequest

func NewCreateSelfServeJourneyRequest added in v1.0.1

func NewCreateSelfServeJourneyRequest(partner CreateSelfServeJourneyRequestPartner) *CreateSelfServeJourneyRequest

NewCreateSelfServeJourneyRequest instantiates a new CreateSelfServeJourneyRequest 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 NewCreateSelfServeJourneyRequestWithDefaults added in v1.0.1

func NewCreateSelfServeJourneyRequestWithDefaults() *CreateSelfServeJourneyRequest

NewCreateSelfServeJourneyRequestWithDefaults instantiates a new CreateSelfServeJourneyRequest 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 (*CreateSelfServeJourneyRequest) GetPartner added in v1.0.1

GetPartner returns the Partner field value

func (*CreateSelfServeJourneyRequest) GetPartnerOk added in v1.0.1

GetPartnerOk returns a tuple with the Partner field value and a boolean to check if the value has been set.

func (CreateSelfServeJourneyRequest) MarshalJSON added in v1.0.1

func (o CreateSelfServeJourneyRequest) MarshalJSON() ([]byte, error)

func (*CreateSelfServeJourneyRequest) SetPartner added in v1.0.1

SetPartner sets field value

func (CreateSelfServeJourneyRequest) ToMap added in v1.0.1

func (o CreateSelfServeJourneyRequest) ToMap() (map[string]interface{}, error)

func (*CreateSelfServeJourneyRequest) UnmarshalJSON added in v1.0.1

func (o *CreateSelfServeJourneyRequest) UnmarshalJSON(data []byte) (err error)

type CreateSelfServeJourneyRequestPartner added in v1.0.1

type CreateSelfServeJourneyRequestPartner struct {
	// The merchant's ID that is on the partner's database.
	MerchantID           string `json:"merchantID"`
	AdditionalProperties map[string]interface{}
}

CreateSelfServeJourneyRequestPartner A JSON object containing store information

func NewCreateSelfServeJourneyRequestPartner added in v1.0.1

func NewCreateSelfServeJourneyRequestPartner(merchantID string) *CreateSelfServeJourneyRequestPartner

NewCreateSelfServeJourneyRequestPartner instantiates a new CreateSelfServeJourneyRequestPartner 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 NewCreateSelfServeJourneyRequestPartnerWithDefaults added in v1.0.1

func NewCreateSelfServeJourneyRequestPartnerWithDefaults() *CreateSelfServeJourneyRequestPartner

NewCreateSelfServeJourneyRequestPartnerWithDefaults instantiates a new CreateSelfServeJourneyRequestPartner 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 (*CreateSelfServeJourneyRequestPartner) GetMerchantID added in v1.0.1

func (o *CreateSelfServeJourneyRequestPartner) GetMerchantID() string

GetMerchantID returns the MerchantID field value

func (*CreateSelfServeJourneyRequestPartner) GetMerchantIDOk added in v1.0.1

func (o *CreateSelfServeJourneyRequestPartner) GetMerchantIDOk() (*string, bool)

GetMerchantIDOk returns a tuple with the MerchantID field value and a boolean to check if the value has been set.

func (CreateSelfServeJourneyRequestPartner) MarshalJSON added in v1.0.1

func (o CreateSelfServeJourneyRequestPartner) MarshalJSON() ([]byte, error)

func (*CreateSelfServeJourneyRequestPartner) SetMerchantID added in v1.0.1

func (o *CreateSelfServeJourneyRequestPartner) SetMerchantID(v string)

SetMerchantID sets field value

func (CreateSelfServeJourneyRequestPartner) ToMap added in v1.0.1

func (o CreateSelfServeJourneyRequestPartner) ToMap() (map[string]interface{}, error)

func (*CreateSelfServeJourneyRequestPartner) UnmarshalJSON added in v1.0.1

func (o *CreateSelfServeJourneyRequestPartner) UnmarshalJSON(data []byte) (err error)

type CreateSelfServeJourneyResponse added in v1.0.1

type CreateSelfServeJourneyResponse struct {
	// A JSON object containing store information
	ActivationUrl        string `json:"activationUrl"`
	AdditionalProperties map[string]interface{}
}

CreateSelfServeJourneyResponse

func NewCreateSelfServeJourneyResponse added in v1.0.1

func NewCreateSelfServeJourneyResponse(activationUrl string) *CreateSelfServeJourneyResponse

NewCreateSelfServeJourneyResponse instantiates a new CreateSelfServeJourneyResponse 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 NewCreateSelfServeJourneyResponseWithDefaults added in v1.0.1

func NewCreateSelfServeJourneyResponseWithDefaults() *CreateSelfServeJourneyResponse

NewCreateSelfServeJourneyResponseWithDefaults instantiates a new CreateSelfServeJourneyResponse 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 (*CreateSelfServeJourneyResponse) GetActivationUrl added in v1.0.1

func (o *CreateSelfServeJourneyResponse) GetActivationUrl() string

GetActivationUrl returns the ActivationUrl field value

func (*CreateSelfServeJourneyResponse) GetActivationUrlOk added in v1.0.1

func (o *CreateSelfServeJourneyResponse) GetActivationUrlOk() (*string, bool)

GetActivationUrlOk returns a tuple with the ActivationUrl field value and a boolean to check if the value has been set.

func (CreateSelfServeJourneyResponse) MarshalJSON added in v1.0.1

func (o CreateSelfServeJourneyResponse) MarshalJSON() ([]byte, error)

func (*CreateSelfServeJourneyResponse) SetActivationUrl added in v1.0.1

func (o *CreateSelfServeJourneyResponse) SetActivationUrl(v string)

SetActivationUrl sets field value

func (CreateSelfServeJourneyResponse) ToMap added in v1.0.1

func (o CreateSelfServeJourneyResponse) ToMap() (map[string]interface{}, error)

func (*CreateSelfServeJourneyResponse) UnmarshalJSON added in v1.0.1

func (o *CreateSelfServeJourneyResponse) UnmarshalJSON(data []byte) (err error)

type Currency

type Currency struct {
	// The three-letter ISO currency code. This is the currency that is associated with the payment amount.
	Code string `json:"code"`
	// The currency symbol.
	Symbol string `json:"symbol"`
	// The log base 10 of the number of times we have to multiply the major unit to get the minor unit. Should be 0 for VN and 2 for other countries (SG/MY/ID/TH/PH/KH).
	Exponent             int32 `json:"exponent"`
	AdditionalProperties map[string]interface{}
}

Currency A JSON object containing code, symbol, and exponent for a given currency. Refer to [Country and Currency](#section/Getting-started/Country-and-currency).

func NewCurrency

func NewCurrency(code string, symbol string, exponent int32) *Currency

NewCurrency instantiates a new Currency 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 NewCurrencyWithDefaults

func NewCurrencyWithDefaults() *Currency

NewCurrencyWithDefaults instantiates a new Currency 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 (*Currency) GetCode

func (o *Currency) GetCode() string

GetCode returns the Code field value

func (*Currency) GetCodeOk

func (o *Currency) GetCodeOk() (*string, bool)

GetCodeOk returns a tuple with the Code field value and a boolean to check if the value has been set.

func (*Currency) GetExponent

func (o *Currency) GetExponent() int32

GetExponent returns the Exponent field value

func (*Currency) GetExponentOk

func (o *Currency) GetExponentOk() (*int32, bool)

GetExponentOk returns a tuple with the Exponent field value and a boolean to check if the value has been set.

func (*Currency) GetSymbol

func (o *Currency) GetSymbol() string

GetSymbol returns the Symbol field value

func (*Currency) GetSymbolOk

func (o *Currency) GetSymbolOk() (*string, bool)

GetSymbolOk returns a tuple with the Symbol field value and a boolean to check if the value has been set.

func (Currency) MarshalJSON

func (o Currency) MarshalJSON() ([]byte, error)

func (*Currency) SetCode

func (o *Currency) SetCode(v string)

SetCode sets field value

func (*Currency) SetExponent

func (o *Currency) SetExponent(v int32)

SetExponent sets field value

func (*Currency) SetSymbol

func (o *Currency) SetSymbol(v string)

SetSymbol sets field value

func (Currency) ToMap

func (o Currency) ToMap() (map[string]interface{}, error)

func (*Currency) UnmarshalJSON

func (o *Currency) UnmarshalJSON(data []byte) (err error)

type DeleteCampaignAPIService

type DeleteCampaignAPIService service

DeleteCampaignAPIService DeleteCampaignAPI service

func (*DeleteCampaignAPIService) DeleteCampaign

func (a *DeleteCampaignAPIService) DeleteCampaign(ctx context.Context, campaignId string) ApiDeleteCampaignRequest

DeleteCampaign Delete campaigns

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param campaignId
@return ApiDeleteCampaignRequest

func (*DeleteCampaignAPIService) DeleteCampaignExecute

func (a *DeleteCampaignAPIService) DeleteCampaignExecute(r ApiDeleteCampaignRequest) (*http.Response, error)

Execute executes the request

type DineIn

type DineIn struct {
	// Table number.
	TableID *string `json:"tableID,omitempty"`
	// The number of eaters.
	EaterCount           *int64 `json:"eaterCount,omitempty"`
	AdditionalProperties map[string]interface{}
}

DineIn A JSON object containing order at table information. Only applicable for dine-in order. `null` if not applicable. Not present in [ListOrder](#tag/list-order/operation/list-orders) response.

func NewDineIn

func NewDineIn() *DineIn

NewDineIn instantiates a new DineIn 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 NewDineInWithDefaults

func NewDineInWithDefaults() *DineIn

NewDineInWithDefaults instantiates a new DineIn 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 (*DineIn) GetEaterCount

func (o *DineIn) GetEaterCount() int64

GetEaterCount returns the EaterCount field value if set, zero value otherwise.

func (*DineIn) GetEaterCountOk

func (o *DineIn) GetEaterCountOk() (*int64, bool)

GetEaterCountOk returns a tuple with the EaterCount field value if set, nil otherwise and a boolean to check if the value has been set.

func (*DineIn) GetTableID

func (o *DineIn) GetTableID() string

GetTableID returns the TableID field value if set, zero value otherwise.

func (*DineIn) GetTableIDOk

func (o *DineIn) GetTableIDOk() (*string, bool)

GetTableIDOk returns a tuple with the TableID field value if set, nil otherwise and a boolean to check if the value has been set.

func (*DineIn) HasEaterCount

func (o *DineIn) HasEaterCount() bool

HasEaterCount returns a boolean if a field has been set.

func (*DineIn) HasTableID

func (o *DineIn) HasTableID() bool

HasTableID returns a boolean if a field has been set.

func (DineIn) MarshalJSON

func (o DineIn) MarshalJSON() ([]byte, error)

func (*DineIn) SetEaterCount

func (o *DineIn) SetEaterCount(v int64)

SetEaterCount gets a reference to the given int64 and assigns it to the EaterCount field.

func (*DineIn) SetTableID

func (o *DineIn) SetTableID(v string)

SetTableID gets a reference to the given string and assigns it to the TableID field.

func (DineIn) ToMap

func (o DineIn) ToMap() (map[string]interface{}, error)

func (*DineIn) UnmarshalJSON

func (o *DineIn) UnmarshalJSON(data []byte) (err error)

type EditOrderAPIService

type EditOrderAPIService service

EditOrderAPIService EditOrderAPI service

func (*EditOrderAPIService) EditOrder

func (a *EditOrderAPIService) EditOrder(ctx context.Context, orderID string) ApiEditOrderRequest

EditOrder Edit Order

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param orderID
@return ApiEditOrderRequest

func (*EditOrderAPIService) EditOrderExecute

func (a *EditOrderAPIService) EditOrderExecute(r ApiEditOrderRequest) (*http.Response, error)

Execute executes the request

type EditOrderItem

type EditOrderItem struct {
	// The item's ID in Grab system that can be obtained from the [Submit Order Webhook](#tag/submit-order-webhook/operation/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`.
	ItemID string `json:"itemID"`
	// The item's edited status. Leave empty string if there is no change to the item.
	Status string `json:"status"`
	// The item's quantity. If the item is not being updated or deleted, use the original quantity.
	Quantity *int64 `json:"quantity,omitempty"`
	// 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.
	IsExternalItemID     *bool `json:"isExternalItemID,omitempty"`
	AdditionalProperties map[string]interface{}
}

EditOrderItem struct for EditOrderItem

func NewEditOrderItem

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

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 (*EditOrderItem) GetIsExternalItemID

func (o *EditOrderItem) GetIsExternalItemID() bool

GetIsExternalItemID returns the IsExternalItemID field value if set, zero value otherwise.

func (*EditOrderItem) GetIsExternalItemIDOk

func (o *EditOrderItem) GetIsExternalItemIDOk() (*bool, bool)

GetIsExternalItemIDOk returns a tuple with the IsExternalItemID field value if set, nil otherwise and a boolean to check if the value has been set.

func (*EditOrderItem) GetItemID

func (o *EditOrderItem) GetItemID() string

GetItemID returns the ItemID field value

func (*EditOrderItem) GetItemIDOk

func (o *EditOrderItem) GetItemIDOk() (*string, bool)

GetItemIDOk returns a tuple with the ItemID field value and a boolean to check if the value has been set.

func (*EditOrderItem) GetQuantity

func (o *EditOrderItem) GetQuantity() int64

GetQuantity returns the Quantity field value if set, zero value otherwise.

func (*EditOrderItem) GetQuantityOk

func (o *EditOrderItem) GetQuantityOk() (*int64, bool)

GetQuantityOk returns a tuple with the Quantity field value if set, nil otherwise and a boolean to check if the value has been set.

func (*EditOrderItem) GetStatus

func (o *EditOrderItem) GetStatus() string

GetStatus returns the Status field value

func (*EditOrderItem) GetStatusOk

func (o *EditOrderItem) GetStatusOk() (*string, bool)

GetStatusOk returns a tuple with the Status field value and a boolean to check if the value has been set.

func (*EditOrderItem) HasIsExternalItemID

func (o *EditOrderItem) HasIsExternalItemID() bool

HasIsExternalItemID returns a boolean if a field has been set.

func (*EditOrderItem) HasQuantity

func (o *EditOrderItem) HasQuantity() bool

HasQuantity returns a boolean if a field has been set.

func (EditOrderItem) MarshalJSON

func (o EditOrderItem) MarshalJSON() ([]byte, error)

func (*EditOrderItem) SetIsExternalItemID

func (o *EditOrderItem) SetIsExternalItemID(v bool)

SetIsExternalItemID gets a reference to the given bool and assigns it to the IsExternalItemID field.

func (*EditOrderItem) SetItemID

func (o *EditOrderItem) SetItemID(v string)

SetItemID sets field value

func (*EditOrderItem) SetQuantity

func (o *EditOrderItem) SetQuantity(v int64)

SetQuantity gets a reference to the given int64 and assigns it to the Quantity field.

func (*EditOrderItem) SetStatus

func (o *EditOrderItem) SetStatus(v string)

SetStatus sets field value

func (EditOrderItem) ToMap

func (o EditOrderItem) ToMap() (map[string]interface{}, error)

func (*EditOrderItem) UnmarshalJSON

func (o *EditOrderItem) UnmarshalJSON(data []byte) (err error)

type EditOrderRequest

type EditOrderRequest struct {
	// The order's ID that is returned from GrabFood. Refer to FAQs for more details about [orderID and shortOrderNumber](#section/Order/What's-the-difference-between-orderID-and-shortOrderNumber).
	OrderID string `json:"orderID"`
	// Specify the array of all items in the order, including deleted, added, updated and unchanged items.
	Items []EditOrderItem `json:"items"`
	// This parameter specifies whether to recalculate the edited order without submitting it. It is intended for testing purposes only. This parameter is set to false by default, which means the edited order will be recalculated and re-submitted to partners.
	OnlyRecalculate      *bool `json:"onlyRecalculate,omitempty"`
	AdditionalProperties map[string]interface{}
}

EditOrderRequest Information about editing an existing order on GrabFood.

func NewEditOrderRequest

func NewEditOrderRequest(orderID string, items []EditOrderItem) *EditOrderRequest

NewEditOrderRequest instantiates a new EditOrderRequest 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 NewEditOrderRequestWithDefaults

func NewEditOrderRequestWithDefaults() *EditOrderRequest

NewEditOrderRequestWithDefaults instantiates a new EditOrderRequest 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 (*EditOrderRequest) GetItems

func (o *EditOrderRequest) GetItems() []EditOrderItem

GetItems returns the Items field value

func (*EditOrderRequest) GetItemsOk

func (o *EditOrderRequest) GetItemsOk() ([]EditOrderItem, bool)

GetItemsOk returns a tuple with the Items field value and a boolean to check if the value has been set.

func (*EditOrderRequest) GetOnlyRecalculate

func (o *EditOrderRequest) GetOnlyRecalculate() bool

GetOnlyRecalculate returns the OnlyRecalculate field value if set, zero value otherwise.

func (*EditOrderRequest) GetOnlyRecalculateOk

func (o *EditOrderRequest) GetOnlyRecalculateOk() (*bool, bool)

GetOnlyRecalculateOk returns a tuple with the OnlyRecalculate field value if set, nil otherwise and a boolean to check if the value has been set.

func (*EditOrderRequest) GetOrderID

func (o *EditOrderRequest) GetOrderID() string

GetOrderID returns the OrderID field value

func (*EditOrderRequest) GetOrderIDOk

func (o *EditOrderRequest) GetOrderIDOk() (*string, bool)

GetOrderIDOk returns a tuple with the OrderID field value and a boolean to check if the value has been set.

func (*EditOrderRequest) HasOnlyRecalculate

func (o *EditOrderRequest) HasOnlyRecalculate() bool

HasOnlyRecalculate returns a boolean if a field has been set.

func (EditOrderRequest) MarshalJSON

func (o EditOrderRequest) MarshalJSON() ([]byte, error)

func (*EditOrderRequest) SetItems

func (o *EditOrderRequest) SetItems(v []EditOrderItem)

SetItems sets field value

func (*EditOrderRequest) SetOnlyRecalculate

func (o *EditOrderRequest) SetOnlyRecalculate(v bool)

SetOnlyRecalculate gets a reference to the given bool and assigns it to the OnlyRecalculate field.

func (*EditOrderRequest) SetOrderID

func (o *EditOrderRequest) SetOrderID(v string)

SetOrderID sets field value

func (EditOrderRequest) ToMap

func (o EditOrderRequest) ToMap() (map[string]interface{}, error)

func (*EditOrderRequest) UnmarshalJSON

func (o *EditOrderRequest) UnmarshalJSON(data []byte) (err error)

type Error

type Error struct {
	// Target of error
	Target *string `json:"target,omitempty"`
	// The type of error.
	Reason *string `json:"reason,omitempty"`
	// The details of the error.
	Message              *string `json:"message,omitempty"`
	AdditionalProperties map[string]interface{}
}

Error struct for Error

func NewError

func NewError() *Error

NewError instantiates a new Error 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 NewErrorWithDefaults

func NewErrorWithDefaults() *Error

NewErrorWithDefaults instantiates a new Error 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 (*Error) GetMessage

func (o *Error) GetMessage() string

GetMessage returns the Message field value if set, zero value otherwise.

func (*Error) GetMessageOk

func (o *Error) GetMessageOk() (*string, bool)

GetMessageOk returns a tuple with the Message field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Error) GetReason

func (o *Error) GetReason() string

GetReason returns the Reason field value if set, zero value otherwise.

func (*Error) GetReasonOk

func (o *Error) GetReasonOk() (*string, bool)

GetReasonOk returns a tuple with the Reason field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Error) GetTarget

func (o *Error) GetTarget() string

GetTarget returns the Target field value if set, zero value otherwise.

func (*Error) GetTargetOk

func (o *Error) GetTargetOk() (*string, bool)

GetTargetOk returns a tuple with the Target field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Error) HasMessage

func (o *Error) HasMessage() bool

HasMessage returns a boolean if a field has been set.

func (*Error) HasReason

func (o *Error) HasReason() bool

HasReason returns a boolean if a field has been set.

func (*Error) HasTarget

func (o *Error) HasTarget() bool

HasTarget returns a boolean if a field has been set.

func (Error) MarshalJSON

func (o Error) MarshalJSON() ([]byte, error)

func (*Error) SetMessage

func (o *Error) SetMessage(v string)

SetMessage gets a reference to the given string and assigns it to the Message field.

func (*Error) SetReason

func (o *Error) SetReason(v string)

SetReason gets a reference to the given string and assigns it to the Reason field.

func (*Error) SetTarget

func (o *Error) SetTarget(v string)

SetTarget gets a reference to the given string and assigns it to the Target field.

func (Error) ToMap

func (o Error) ToMap() (map[string]interface{}, error)

func (*Error) UnmarshalJSON

func (o *Error) UnmarshalJSON(data []byte) (err error)

type GenericOpenAPIError

type GenericOpenAPIError struct {
	// contains filtered or unexported fields
}

GenericOpenAPIError Provides access to the body, error and model on returned errors.

func (GenericOpenAPIError) Body

func (e GenericOpenAPIError) Body() []byte

Body returns the raw bytes of the response

func (GenericOpenAPIError) Error

func (e GenericOpenAPIError) Error() string

Error returns non-empty string if there was an error.

func (GenericOpenAPIError) Model

func (e GenericOpenAPIError) Model() interface{}

Model returns the unpacked model of the error

type GetDineInVoucherResponse

type GetDineInVoucherResponse struct {
	// This certificateID is decoded from scanning the QR code, and 1:1 mapping with `voucherCode`.
	CertificateID *string `json:"certificateID,omitempty"`
	// A short code for the dine-in voucher purchased by the user.
	VoucherCode *string  `json:"voucherCode,omitempty"`
	Voucher     *Voucher `json:"voucher,omitempty"`
	// The status of the dine-in voucher purchased. Only active voucher is eligible for redemption.
	VoucherStatus *string `json:"voucherStatus,omitempty"`
	// The merchant's ID that is in GrabFood's database.
	MerchantID *string `json:"merchantID,omitempty"`
	// The dine-in voucher campaign's ID in GrabFood's database.
	CampaignID           *string `json:"campaignID,omitempty"`
	AdditionalProperties map[string]interface{}
}

GetDineInVoucherResponse

func NewGetDineInVoucherResponse

func NewGetDineInVoucherResponse() *GetDineInVoucherResponse

NewGetDineInVoucherResponse instantiates a new GetDineInVoucherResponse 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 NewGetDineInVoucherResponseWithDefaults

func NewGetDineInVoucherResponseWithDefaults() *GetDineInVoucherResponse

NewGetDineInVoucherResponseWithDefaults instantiates a new GetDineInVoucherResponse 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 (*GetDineInVoucherResponse) GetCampaignID

func (o *GetDineInVoucherResponse) GetCampaignID() string

GetCampaignID returns the CampaignID field value if set, zero value otherwise.

func (*GetDineInVoucherResponse) GetCampaignIDOk

func (o *GetDineInVoucherResponse) GetCampaignIDOk() (*string, bool)

GetCampaignIDOk returns a tuple with the CampaignID field value if set, nil otherwise and a boolean to check if the value has been set.

func (*GetDineInVoucherResponse) GetCertificateID

func (o *GetDineInVoucherResponse) GetCertificateID() string

GetCertificateID returns the CertificateID field value if set, zero value otherwise.

func (*GetDineInVoucherResponse) GetCertificateIDOk

func (o *GetDineInVoucherResponse) GetCertificateIDOk() (*string, bool)

GetCertificateIDOk returns a tuple with the CertificateID field value if set, nil otherwise and a boolean to check if the value has been set.

func (*GetDineInVoucherResponse) GetMerchantID

func (o *GetDineInVoucherResponse) GetMerchantID() string

GetMerchantID returns the MerchantID field value if set, zero value otherwise.

func (*GetDineInVoucherResponse) GetMerchantIDOk

func (o *GetDineInVoucherResponse) GetMerchantIDOk() (*string, bool)

GetMerchantIDOk returns a tuple with the MerchantID field value if set, nil otherwise and a boolean to check if the value has been set.

func (*GetDineInVoucherResponse) GetVoucher

func (o *GetDineInVoucherResponse) GetVoucher() Voucher

GetVoucher returns the Voucher field value if set, zero value otherwise.

func (*GetDineInVoucherResponse) GetVoucherCode

func (o *GetDineInVoucherResponse) GetVoucherCode() string

GetVoucherCode returns the VoucherCode field value if set, zero value otherwise.

func (*GetDineInVoucherResponse) GetVoucherCodeOk

func (o *GetDineInVoucherResponse) GetVoucherCodeOk() (*string, bool)

GetVoucherCodeOk returns a tuple with the VoucherCode field value if set, nil otherwise and a boolean to check if the value has been set.

func (*GetDineInVoucherResponse) GetVoucherOk

func (o *GetDineInVoucherResponse) GetVoucherOk() (*Voucher, bool)

GetVoucherOk returns a tuple with the Voucher field value if set, nil otherwise and a boolean to check if the value has been set.

func (*GetDineInVoucherResponse) GetVoucherStatus

func (o *GetDineInVoucherResponse) GetVoucherStatus() string

GetVoucherStatus returns the VoucherStatus field value if set, zero value otherwise.

func (*GetDineInVoucherResponse) GetVoucherStatusOk

func (o *GetDineInVoucherResponse) GetVoucherStatusOk() (*string, bool)

GetVoucherStatusOk returns a tuple with the VoucherStatus field value if set, nil otherwise and a boolean to check if the value has been set.

func (*GetDineInVoucherResponse) HasCampaignID

func (o *GetDineInVoucherResponse) HasCampaignID() bool

HasCampaignID returns a boolean if a field has been set.

func (*GetDineInVoucherResponse) HasCertificateID

func (o *GetDineInVoucherResponse) HasCertificateID() bool

HasCertificateID returns a boolean if a field has been set.

func (*GetDineInVoucherResponse) HasMerchantID

func (o *GetDineInVoucherResponse) HasMerchantID() bool

HasMerchantID returns a boolean if a field has been set.

func (*GetDineInVoucherResponse) HasVoucher

func (o *GetDineInVoucherResponse) HasVoucher() bool

HasVoucher returns a boolean if a field has been set.

func (*GetDineInVoucherResponse) HasVoucherCode

func (o *GetDineInVoucherResponse) HasVoucherCode() bool

HasVoucherCode returns a boolean if a field has been set.

func (*GetDineInVoucherResponse) HasVoucherStatus

func (o *GetDineInVoucherResponse) HasVoucherStatus() bool

HasVoucherStatus returns a boolean if a field has been set.

func (GetDineInVoucherResponse) MarshalJSON

func (o GetDineInVoucherResponse) MarshalJSON() ([]byte, error)

func (*GetDineInVoucherResponse) SetCampaignID

func (o *GetDineInVoucherResponse) SetCampaignID(v string)

SetCampaignID gets a reference to the given string and assigns it to the CampaignID field.

func (*GetDineInVoucherResponse) SetCertificateID

func (o *GetDineInVoucherResponse) SetCertificateID(v string)

SetCertificateID gets a reference to the given string and assigns it to the CertificateID field.

func (*GetDineInVoucherResponse) SetMerchantID

func (o *GetDineInVoucherResponse) SetMerchantID(v string)

SetMerchantID gets a reference to the given string and assigns it to the MerchantID field.

func (*GetDineInVoucherResponse) SetVoucher

func (o *GetDineInVoucherResponse) SetVoucher(v Voucher)

SetVoucher gets a reference to the given Voucher and assigns it to the Voucher field.

func (*GetDineInVoucherResponse) SetVoucherCode

func (o *GetDineInVoucherResponse) SetVoucherCode(v string)

SetVoucherCode gets a reference to the given string and assigns it to the VoucherCode field.

func (*GetDineInVoucherResponse) SetVoucherStatus

func (o *GetDineInVoucherResponse) SetVoucherStatus(v string)

SetVoucherStatus gets a reference to the given string and assigns it to the VoucherStatus field.

func (GetDineInVoucherResponse) ToMap

func (o GetDineInVoucherResponse) ToMap() (map[string]interface{}, error)

func (*GetDineInVoucherResponse) UnmarshalJSON

func (o *GetDineInVoucherResponse) UnmarshalJSON(data []byte) (err error)

type GetDineinVoucherAPIService

type GetDineinVoucherAPIService service

GetDineinVoucherAPIService GetDineinVoucherAPI service

func (*GetDineinVoucherAPIService) GetDineinVoucher

GetDineinVoucher Get Dine In Voucher

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return ApiGetDineinVoucherRequest

func (*GetDineinVoucherAPIService) GetDineinVoucherExecute

Execute executes the request

@return GetDineInVoucherResponse

type GetMembershipNativeResponse

type GetMembershipNativeResponse struct {
	// Status of the memberID.
	MembershipStatus *string                               `json:"membershipStatus,omitempty"`
	PointInfo        *GetMembershipNativeResponsePointInfo `json:"pointInfo,omitempty"`
	// Earliest points expiry date. In `yyyy-mm-dd` format
	PointsExpireDate     *string `json:"pointsExpireDate,omitempty"`
	AdditionalProperties map[string]interface{}
}

GetMembershipNativeResponse This response returns membership detail.

func NewGetMembershipNativeResponse

func NewGetMembershipNativeResponse() *GetMembershipNativeResponse

NewGetMembershipNativeResponse instantiates a new GetMembershipNativeResponse 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 NewGetMembershipNativeResponseWithDefaults

func NewGetMembershipNativeResponseWithDefaults() *GetMembershipNativeResponse

NewGetMembershipNativeResponseWithDefaults instantiates a new GetMembershipNativeResponse 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 (*GetMembershipNativeResponse) GetMembershipStatus

func (o *GetMembershipNativeResponse) GetMembershipStatus() string

GetMembershipStatus returns the MembershipStatus field value if set, zero value otherwise.

func (*GetMembershipNativeResponse) GetMembershipStatusOk

func (o *GetMembershipNativeResponse) GetMembershipStatusOk() (*string, bool)

GetMembershipStatusOk returns a tuple with the MembershipStatus field value if set, nil otherwise and a boolean to check if the value has been set.

func (*GetMembershipNativeResponse) GetPointInfo

GetPointInfo returns the PointInfo field value if set, zero value otherwise.

func (*GetMembershipNativeResponse) GetPointInfoOk

GetPointInfoOk returns a tuple with the PointInfo field value if set, nil otherwise and a boolean to check if the value has been set.

func (*GetMembershipNativeResponse) GetPointsExpireDate

func (o *GetMembershipNativeResponse) GetPointsExpireDate() string

GetPointsExpireDate returns the PointsExpireDate field value if set, zero value otherwise.

func (*GetMembershipNativeResponse) GetPointsExpireDateOk

func (o *GetMembershipNativeResponse) GetPointsExpireDateOk() (*string, bool)

GetPointsExpireDateOk returns a tuple with the PointsExpireDate field value if set, nil otherwise and a boolean to check if the value has been set.

func (*GetMembershipNativeResponse) HasMembershipStatus

func (o *GetMembershipNativeResponse) HasMembershipStatus() bool

HasMembershipStatus returns a boolean if a field has been set.

func (*GetMembershipNativeResponse) HasPointInfo

func (o *GetMembershipNativeResponse) HasPointInfo() bool

HasPointInfo returns a boolean if a field has been set.

func (*GetMembershipNativeResponse) HasPointsExpireDate

func (o *GetMembershipNativeResponse) HasPointsExpireDate() bool

HasPointsExpireDate returns a boolean if a field has been set.

func (GetMembershipNativeResponse) MarshalJSON

func (o GetMembershipNativeResponse) MarshalJSON() ([]byte, error)

func (*GetMembershipNativeResponse) SetMembershipStatus

func (o *GetMembershipNativeResponse) SetMembershipStatus(v string)

SetMembershipStatus gets a reference to the given string and assigns it to the MembershipStatus field.

func (*GetMembershipNativeResponse) SetPointInfo

SetPointInfo gets a reference to the given GetMembershipNativeResponsePointInfo and assigns it to the PointInfo field.

func (*GetMembershipNativeResponse) SetPointsExpireDate

func (o *GetMembershipNativeResponse) SetPointsExpireDate(v string)

SetPointsExpireDate gets a reference to the given string and assigns it to the PointsExpireDate field.

func (GetMembershipNativeResponse) ToMap

func (o GetMembershipNativeResponse) ToMap() (map[string]interface{}, error)

func (*GetMembershipNativeResponse) UnmarshalJSON

func (o *GetMembershipNativeResponse) UnmarshalJSON(data []byte) (err error)

type GetMembershipNativeResponsePointInfo

type GetMembershipNativeResponsePointInfo struct {
	// Point that user currently obtained.
	CurrentPoints *int64 `json:"currentPoints,omitempty"`
	// Maximum point that user can obtain.
	MaxPoints *int64 `json:"maxPoints,omitempty"`
	// Points that would get expired in future.
	ExpirePoints         *int64 `json:"expirePoints,omitempty"`
	AdditionalProperties map[string]interface{}
}

GetMembershipNativeResponsePointInfo Obtain contains user's point details.

func NewGetMembershipNativeResponsePointInfo

func NewGetMembershipNativeResponsePointInfo() *GetMembershipNativeResponsePointInfo

NewGetMembershipNativeResponsePointInfo instantiates a new GetMembershipNativeResponsePointInfo 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 NewGetMembershipNativeResponsePointInfoWithDefaults

func NewGetMembershipNativeResponsePointInfoWithDefaults() *GetMembershipNativeResponsePointInfo

NewGetMembershipNativeResponsePointInfoWithDefaults instantiates a new GetMembershipNativeResponsePointInfo 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 (*GetMembershipNativeResponsePointInfo) GetCurrentPoints

func (o *GetMembershipNativeResponsePointInfo) GetCurrentPoints() int64

GetCurrentPoints returns the CurrentPoints field value if set, zero value otherwise.

func (*GetMembershipNativeResponsePointInfo) GetCurrentPointsOk

func (o *GetMembershipNativeResponsePointInfo) GetCurrentPointsOk() (*int64, bool)

GetCurrentPointsOk returns a tuple with the CurrentPoints field value if set, nil otherwise and a boolean to check if the value has been set.

func (*GetMembershipNativeResponsePointInfo) GetExpirePoints

func (o *GetMembershipNativeResponsePointInfo) GetExpirePoints() int64

GetExpirePoints returns the ExpirePoints field value if set, zero value otherwise.

func (*GetMembershipNativeResponsePointInfo) GetExpirePointsOk

func (o *GetMembershipNativeResponsePointInfo) GetExpirePointsOk() (*int64, bool)

GetExpirePointsOk returns a tuple with the ExpirePoints field value if set, nil otherwise and a boolean to check if the value has been set.

func (*GetMembershipNativeResponsePointInfo) GetMaxPoints

func (o *GetMembershipNativeResponsePointInfo) GetMaxPoints() int64

GetMaxPoints returns the MaxPoints field value if set, zero value otherwise.

func (*GetMembershipNativeResponsePointInfo) GetMaxPointsOk

func (o *GetMembershipNativeResponsePointInfo) GetMaxPointsOk() (*int64, bool)

GetMaxPointsOk returns a tuple with the MaxPoints field value if set, nil otherwise and a boolean to check if the value has been set.

func (*GetMembershipNativeResponsePointInfo) HasCurrentPoints

func (o *GetMembershipNativeResponsePointInfo) HasCurrentPoints() bool

HasCurrentPoints returns a boolean if a field has been set.

func (*GetMembershipNativeResponsePointInfo) HasExpirePoints

func (o *GetMembershipNativeResponsePointInfo) HasExpirePoints() bool

HasExpirePoints returns a boolean if a field has been set.

func (*GetMembershipNativeResponsePointInfo) HasMaxPoints

func (o *GetMembershipNativeResponsePointInfo) HasMaxPoints() bool

HasMaxPoints returns a boolean if a field has been set.

func (GetMembershipNativeResponsePointInfo) MarshalJSON

func (o GetMembershipNativeResponsePointInfo) MarshalJSON() ([]byte, error)

func (*GetMembershipNativeResponsePointInfo) SetCurrentPoints

func (o *GetMembershipNativeResponsePointInfo) SetCurrentPoints(v int64)

SetCurrentPoints gets a reference to the given int64 and assigns it to the CurrentPoints field.

func (*GetMembershipNativeResponsePointInfo) SetExpirePoints

func (o *GetMembershipNativeResponsePointInfo) SetExpirePoints(v int64)

SetExpirePoints gets a reference to the given int64 and assigns it to the ExpirePoints field.

func (*GetMembershipNativeResponsePointInfo) SetMaxPoints

func (o *GetMembershipNativeResponsePointInfo) SetMaxPoints(v int64)

SetMaxPoints gets a reference to the given int64 and assigns it to the MaxPoints field.

func (GetMembershipNativeResponsePointInfo) ToMap

func (o GetMembershipNativeResponsePointInfo) ToMap() (map[string]interface{}, error)

func (*GetMembershipNativeResponsePointInfo) UnmarshalJSON

func (o *GetMembershipNativeResponsePointInfo) UnmarshalJSON(data []byte) (err error)

type GetMembershipRequest

type GetMembershipRequest struct {
	// The unique member ID on the partner's database.
	MemberID             string `json:"memberID"`
	AdditionalProperties map[string]interface{}
}

GetMembershipRequest This request submits membership unbind request to partner.

func NewGetMembershipRequest

func NewGetMembershipRequest(memberID string) *GetMembershipRequest

NewGetMembershipRequest instantiates a new GetMembershipRequest 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 NewGetMembershipRequestWithDefaults

func NewGetMembershipRequestWithDefaults() *GetMembershipRequest

NewGetMembershipRequestWithDefaults instantiates a new GetMembershipRequest 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 (*GetMembershipRequest) GetMemberID

func (o *GetMembershipRequest) GetMemberID() string

GetMemberID returns the MemberID field value

func (*GetMembershipRequest) GetMemberIDOk

func (o *GetMembershipRequest) GetMemberIDOk() (*string, bool)

GetMemberIDOk returns a tuple with the MemberID field value and a boolean to check if the value has been set.

func (GetMembershipRequest) MarshalJSON

func (o GetMembershipRequest) MarshalJSON() ([]byte, error)

func (*GetMembershipRequest) SetMemberID

func (o *GetMembershipRequest) SetMemberID(v string)

SetMemberID sets field value

func (GetMembershipRequest) ToMap

func (o GetMembershipRequest) ToMap() (map[string]interface{}, error)

func (*GetMembershipRequest) UnmarshalJSON

func (o *GetMembershipRequest) UnmarshalJSON(data []byte) (err error)

type GetMembershipWebviewResponse

type GetMembershipWebviewResponse struct {
	// Status of the memberID.
	MembershipStatus     *string `json:"membershipStatus,omitempty"`
	AdditionalProperties map[string]interface{}
}

GetMembershipWebviewResponse This response returns membership detail.

func NewGetMembershipWebviewResponse

func NewGetMembershipWebviewResponse() *GetMembershipWebviewResponse

NewGetMembershipWebviewResponse instantiates a new GetMembershipWebviewResponse 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 NewGetMembershipWebviewResponseWithDefaults

func NewGetMembershipWebviewResponseWithDefaults() *GetMembershipWebviewResponse

NewGetMembershipWebviewResponseWithDefaults instantiates a new GetMembershipWebviewResponse 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 (*GetMembershipWebviewResponse) GetMembershipStatus

func (o *GetMembershipWebviewResponse) GetMembershipStatus() string

GetMembershipStatus returns the MembershipStatus field value if set, zero value otherwise.

func (*GetMembershipWebviewResponse) GetMembershipStatusOk

func (o *GetMembershipWebviewResponse) GetMembershipStatusOk() (*string, bool)

GetMembershipStatusOk returns a tuple with the MembershipStatus field value if set, nil otherwise and a boolean to check if the value has been set.

func (*GetMembershipWebviewResponse) HasMembershipStatus

func (o *GetMembershipWebviewResponse) HasMembershipStatus() bool

HasMembershipStatus returns a boolean if a field has been set.

func (GetMembershipWebviewResponse) MarshalJSON

func (o GetMembershipWebviewResponse) MarshalJSON() ([]byte, error)

func (*GetMembershipWebviewResponse) SetMembershipStatus

func (o *GetMembershipWebviewResponse) SetMembershipStatus(v string)

SetMembershipStatus gets a reference to the given string and assigns it to the MembershipStatus field.

func (GetMembershipWebviewResponse) ToMap

func (o GetMembershipWebviewResponse) ToMap() (map[string]interface{}, error)

func (*GetMembershipWebviewResponse) UnmarshalJSON

func (o *GetMembershipWebviewResponse) UnmarshalJSON(data []byte) (err error)

type GetMenuNewResponse

type GetMenuNewResponse struct {
	// The merchant's ID that is in GrabFood's database.
	MerchantID *string `json:"merchantID,omitempty"`
	// The merchant's ID that is on the partner's database.
	PartnerMerchantID *string  `json:"partnerMerchantID,omitempty"`
	Currency          Currency `json:"currency"`
	// An array of sellingTimes JSON objects. Max 20 allowed. Refer to [Selling Times](#selling-times) for more information.
	SellingTimes []SellingTime `json:"sellingTimes"`
	// An array of category JSON objects. Max 100 allowed. Refer to [Categories](#categories) for more information.
	Categories           []MenuCategory `json:"categories"`
	AdditionalProperties map[string]interface{}
}

GetMenuNewResponse

func NewGetMenuNewResponse

func NewGetMenuNewResponse(currency Currency, sellingTimes []SellingTime, categories []MenuCategory) *GetMenuNewResponse

NewGetMenuNewResponse instantiates a new GetMenuNewResponse 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 NewGetMenuNewResponseWithDefaults

func NewGetMenuNewResponseWithDefaults() *GetMenuNewResponse

NewGetMenuNewResponseWithDefaults instantiates a new GetMenuNewResponse 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 (*GetMenuNewResponse) GetCategories

func (o *GetMenuNewResponse) GetCategories() []MenuCategory

GetCategories returns the Categories field value

func (*GetMenuNewResponse) GetCategoriesOk

func (o *GetMenuNewResponse) GetCategoriesOk() ([]MenuCategory, bool)

GetCategoriesOk returns a tuple with the Categories field value and a boolean to check if the value has been set.

func (*GetMenuNewResponse) GetCurrency

func (o *GetMenuNewResponse) GetCurrency() Currency

GetCurrency returns the Currency field value

func (*GetMenuNewResponse) GetCurrencyOk

func (o *GetMenuNewResponse) GetCurrencyOk() (*Currency, bool)

GetCurrencyOk returns a tuple with the Currency field value and a boolean to check if the value has been set.

func (*GetMenuNewResponse) GetMerchantID

func (o *GetMenuNewResponse) GetMerchantID() string

GetMerchantID returns the MerchantID field value if set, zero value otherwise.

func (*GetMenuNewResponse) GetMerchantIDOk

func (o *GetMenuNewResponse) GetMerchantIDOk() (*string, bool)

GetMerchantIDOk returns a tuple with the MerchantID field value if set, nil otherwise and a boolean to check if the value has been set.

func (*GetMenuNewResponse) GetPartnerMerchantID

func (o *GetMenuNewResponse) GetPartnerMerchantID() string

GetPartnerMerchantID returns the PartnerMerchantID field value if set, zero value otherwise.

func (*GetMenuNewResponse) GetPartnerMerchantIDOk

func (o *GetMenuNewResponse) GetPartnerMerchantIDOk() (*string, bool)

GetPartnerMerchantIDOk returns a tuple with the PartnerMerchantID field value if set, nil otherwise and a boolean to check if the value has been set.

func (*GetMenuNewResponse) GetSellingTimes

func (o *GetMenuNewResponse) GetSellingTimes() []SellingTime

GetSellingTimes returns the SellingTimes field value

func (*GetMenuNewResponse) GetSellingTimesOk

func (o *GetMenuNewResponse) GetSellingTimesOk() ([]SellingTime, bool)

GetSellingTimesOk returns a tuple with the SellingTimes field value and a boolean to check if the value has been set.

func (*GetMenuNewResponse) HasMerchantID

func (o *GetMenuNewResponse) HasMerchantID() bool

HasMerchantID returns a boolean if a field has been set.

func (*GetMenuNewResponse) HasPartnerMerchantID

func (o *GetMenuNewResponse) HasPartnerMerchantID() bool

HasPartnerMerchantID returns a boolean if a field has been set.

func (GetMenuNewResponse) MarshalJSON

func (o GetMenuNewResponse) MarshalJSON() ([]byte, error)

func (*GetMenuNewResponse) SetCategories

func (o *GetMenuNewResponse) SetCategories(v []MenuCategory)

SetCategories sets field value

func (*GetMenuNewResponse) SetCurrency

func (o *GetMenuNewResponse) SetCurrency(v Currency)

SetCurrency sets field value

func (*GetMenuNewResponse) SetMerchantID

func (o *GetMenuNewResponse) SetMerchantID(v string)

SetMerchantID gets a reference to the given string and assigns it to the MerchantID field.

func (*GetMenuNewResponse) SetPartnerMerchantID

func (o *GetMenuNewResponse) SetPartnerMerchantID(v string)

SetPartnerMerchantID gets a reference to the given string and assigns it to the PartnerMerchantID field.

func (*GetMenuNewResponse) SetSellingTimes

func (o *GetMenuNewResponse) SetSellingTimes(v []SellingTime)

SetSellingTimes sets field value

func (GetMenuNewResponse) ToMap

func (o GetMenuNewResponse) ToMap() (map[string]interface{}, error)

func (*GetMenuNewResponse) UnmarshalJSON

func (o *GetMenuNewResponse) UnmarshalJSON(data []byte) (err error)

type GetMenuOldResponse

type GetMenuOldResponse struct {
	// The merchant's ID that is in GrabFood's database.
	MerchantID *string `json:"merchantID,omitempty"`
	// The merchant's ID that is on the partner's database.
	PartnerMerchantID *string  `json:"partnerMerchantID,omitempty"`
	Currency          Currency `json:"currency"`
	// An array of section JSON objects. Max 7 allowed. Refer to [Sections](#sections) for more information.
	Sections             []MenuSection `json:"sections"`
	AdditionalProperties map[string]interface{}
}

GetMenuOldResponse

func NewGetMenuOldResponse

func NewGetMenuOldResponse(currency Currency, sections []MenuSection) *GetMenuOldResponse

NewGetMenuOldResponse instantiates a new GetMenuOldResponse 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 NewGetMenuOldResponseWithDefaults

func NewGetMenuOldResponseWithDefaults() *GetMenuOldResponse

NewGetMenuOldResponseWithDefaults instantiates a new GetMenuOldResponse 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 (*GetMenuOldResponse) GetCurrency

func (o *GetMenuOldResponse) GetCurrency() Currency

GetCurrency returns the Currency field value

func (*GetMenuOldResponse) GetCurrencyOk

func (o *GetMenuOldResponse) GetCurrencyOk() (*Currency, bool)

GetCurrencyOk returns a tuple with the Currency field value and a boolean to check if the value has been set.

func (*GetMenuOldResponse) GetMerchantID

func (o *GetMenuOldResponse) GetMerchantID() string

GetMerchantID returns the MerchantID field value if set, zero value otherwise.

func (*GetMenuOldResponse) GetMerchantIDOk

func (o *GetMenuOldResponse) GetMerchantIDOk() (*string, bool)

GetMerchantIDOk returns a tuple with the MerchantID field value if set, nil otherwise and a boolean to check if the value has been set.

func (*GetMenuOldResponse) GetPartnerMerchantID

func (o *GetMenuOldResponse) GetPartnerMerchantID() string

GetPartnerMerchantID returns the PartnerMerchantID field value if set, zero value otherwise.

func (*GetMenuOldResponse) GetPartnerMerchantIDOk

func (o *GetMenuOldResponse) GetPartnerMerchantIDOk() (*string, bool)

GetPartnerMerchantIDOk returns a tuple with the PartnerMerchantID field value if set, nil otherwise and a boolean to check if the value has been set.

func (*GetMenuOldResponse) GetSections

func (o *GetMenuOldResponse) GetSections() []MenuSection

GetSections returns the Sections field value

func (*GetMenuOldResponse) GetSectionsOk

func (o *GetMenuOldResponse) GetSectionsOk() ([]MenuSection, bool)

GetSectionsOk returns a tuple with the Sections field value and a boolean to check if the value has been set.

func (*GetMenuOldResponse) HasMerchantID

func (o *GetMenuOldResponse) HasMerchantID() bool

HasMerchantID returns a boolean if a field has been set.

func (*GetMenuOldResponse) HasPartnerMerchantID

func (o *GetMenuOldResponse) HasPartnerMerchantID() bool

HasPartnerMerchantID returns a boolean if a field has been set.

func (GetMenuOldResponse) MarshalJSON

func (o GetMenuOldResponse) MarshalJSON() ([]byte, error)

func (*GetMenuOldResponse) SetCurrency

func (o *GetMenuOldResponse) SetCurrency(v Currency)

SetCurrency sets field value

func (*GetMenuOldResponse) SetMerchantID

func (o *GetMenuOldResponse) SetMerchantID(v string)

SetMerchantID gets a reference to the given string and assigns it to the MerchantID field.

func (*GetMenuOldResponse) SetPartnerMerchantID

func (o *GetMenuOldResponse) SetPartnerMerchantID(v string)

SetPartnerMerchantID gets a reference to the given string and assigns it to the PartnerMerchantID field.

func (*GetMenuOldResponse) SetSections

func (o *GetMenuOldResponse) SetSections(v []MenuSection)

SetSections sets field value

func (GetMenuOldResponse) ToMap

func (o GetMenuOldResponse) ToMap() (map[string]interface{}, error)

func (*GetMenuOldResponse) UnmarshalJSON

func (o *GetMenuOldResponse) UnmarshalJSON(data []byte) (err error)

type GetOauthGrabAPIService

type GetOauthGrabAPIService service

GetOauthGrabAPIService GetOauthGrabAPI service

func (*GetOauthGrabAPIService) GetOauthGrab

GetOauthGrab Get Oauth access token

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return ApiGetOauthGrabRequest

func (*GetOauthGrabAPIService) GetOauthGrabExecute

Execute executes the request

@return GrabOauthResponse

type GetRewardNativeRequest

type GetRewardNativeRequest struct {
	// The unique member ID on the partner's database.
	MemberID *string `json:"memberID,omitempty"`
	// Grab merchant's ID.
	MerchantID *string      `json:"merchantID,omitempty"`
	Items      []RewardItem `json:"items,omitempty"`
	// The post-discount order value.
	OrderValue           *int64 `json:"orderValue,omitempty"`
	AdditionalProperties map[string]interface{}
}

GetRewardNativeRequest This request submits membership detail and order value to get reward calculation.

func NewGetRewardNativeRequest

func NewGetRewardNativeRequest() *GetRewardNativeRequest

NewGetRewardNativeRequest instantiates a new GetRewardNativeRequest 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 NewGetRewardNativeRequestWithDefaults

func NewGetRewardNativeRequestWithDefaults() *GetRewardNativeRequest

NewGetRewardNativeRequestWithDefaults instantiates a new GetRewardNativeRequest 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 (*GetRewardNativeRequest) GetItems

func (o *GetRewardNativeRequest) GetItems() []RewardItem

GetItems returns the Items field value if set, zero value otherwise.

func (*GetRewardNativeRequest) GetItemsOk

func (o *GetRewardNativeRequest) GetItemsOk() ([]RewardItem, bool)

GetItemsOk returns a tuple with the Items field value if set, nil otherwise and a boolean to check if the value has been set.

func (*GetRewardNativeRequest) GetMemberID

func (o *GetRewardNativeRequest) GetMemberID() string

GetMemberID returns the MemberID field value if set, zero value otherwise.

func (*GetRewardNativeRequest) GetMemberIDOk

func (o *GetRewardNativeRequest) GetMemberIDOk() (*string, bool)

GetMemberIDOk returns a tuple with the MemberID field value if set, nil otherwise and a boolean to check if the value has been set.

func (*GetRewardNativeRequest) GetMerchantID

func (o *GetRewardNativeRequest) GetMerchantID() string

GetMerchantID returns the MerchantID field value if set, zero value otherwise.

func (*GetRewardNativeRequest) GetMerchantIDOk

func (o *GetRewardNativeRequest) GetMerchantIDOk() (*string, bool)

GetMerchantIDOk returns a tuple with the MerchantID field value if set, nil otherwise and a boolean to check if the value has been set.

func (*GetRewardNativeRequest) GetOrderValue

func (o *GetRewardNativeRequest) GetOrderValue() int64

GetOrderValue returns the OrderValue field value if set, zero value otherwise.

func (*GetRewardNativeRequest) GetOrderValueOk

func (o *GetRewardNativeRequest) GetOrderValueOk() (*int64, bool)

GetOrderValueOk returns a tuple with the OrderValue field value if set, nil otherwise and a boolean to check if the value has been set.

func (*GetRewardNativeRequest) HasItems

func (o *GetRewardNativeRequest) HasItems() bool

HasItems returns a boolean if a field has been set.

func (*GetRewardNativeRequest) HasMemberID

func (o *GetRewardNativeRequest) HasMemberID() bool

HasMemberID returns a boolean if a field has been set.

func (*GetRewardNativeRequest) HasMerchantID

func (o *GetRewardNativeRequest) HasMerchantID() bool

HasMerchantID returns a boolean if a field has been set.

func (*GetRewardNativeRequest) HasOrderValue

func (o *GetRewardNativeRequest) HasOrderValue() bool

HasOrderValue returns a boolean if a field has been set.

func (GetRewardNativeRequest) MarshalJSON

func (o GetRewardNativeRequest) MarshalJSON() ([]byte, error)

func (*GetRewardNativeRequest) SetItems

func (o *GetRewardNativeRequest) SetItems(v []RewardItem)

SetItems gets a reference to the given []RewardItem and assigns it to the Items field.

func (*GetRewardNativeRequest) SetMemberID

func (o *GetRewardNativeRequest) SetMemberID(v string)

SetMemberID gets a reference to the given string and assigns it to the MemberID field.

func (*GetRewardNativeRequest) SetMerchantID

func (o *GetRewardNativeRequest) SetMerchantID(v string)

SetMerchantID gets a reference to the given string and assigns it to the MerchantID field.

func (*GetRewardNativeRequest) SetOrderValue

func (o *GetRewardNativeRequest) SetOrderValue(v int64)

SetOrderValue gets a reference to the given int64 and assigns it to the OrderValue field.

func (GetRewardNativeRequest) ToMap

func (o GetRewardNativeRequest) ToMap() (map[string]interface{}, error)

func (*GetRewardNativeRequest) UnmarshalJSON

func (o *GetRewardNativeRequest) UnmarshalJSON(data []byte) (err error)

type GetRewardNativeResponse

type GetRewardNativeResponse struct {
	// The reward points earned in this purchase.
	Points               int64 `json:"points"`
	AdditionalProperties map[string]interface{}
}

GetRewardNativeResponse This response returns reward points earn for this order.

func NewGetRewardNativeResponse

func NewGetRewardNativeResponse(points int64) *GetRewardNativeResponse

NewGetRewardNativeResponse instantiates a new GetRewardNativeResponse 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 NewGetRewardNativeResponseWithDefaults

func NewGetRewardNativeResponseWithDefaults() *GetRewardNativeResponse

NewGetRewardNativeResponseWithDefaults instantiates a new GetRewardNativeResponse 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 (*GetRewardNativeResponse) GetPoints

func (o *GetRewardNativeResponse) GetPoints() int64

GetPoints returns the Points field value

func (*GetRewardNativeResponse) GetPointsOk

func (o *GetRewardNativeResponse) GetPointsOk() (*int64, bool)

GetPointsOk returns a tuple with the Points field value and a boolean to check if the value has been set.

func (GetRewardNativeResponse) MarshalJSON

func (o GetRewardNativeResponse) MarshalJSON() ([]byte, error)

func (*GetRewardNativeResponse) SetPoints

func (o *GetRewardNativeResponse) SetPoints(v int64)

SetPoints sets field value

func (GetRewardNativeResponse) ToMap

func (o GetRewardNativeResponse) ToMap() (map[string]interface{}, error)

func (*GetRewardNativeResponse) UnmarshalJSON

func (o *GetRewardNativeResponse) UnmarshalJSON(data []byte) (err error)

type GetStoreHourAPIService

type GetStoreHourAPIService service

GetStoreHourAPIService GetStoreHourAPI service

func (*GetStoreHourAPIService) GetStoreHour

func (a *GetStoreHourAPIService) GetStoreHour(ctx context.Context, merchantID string) ApiGetStoreHourRequest

GetStoreHour Get Store Hours

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param merchantID The merchant's ID that is in GrabFood's database.
@return ApiGetStoreHourRequest

func (*GetStoreHourAPIService) GetStoreHourExecute

Execute executes the request

@return StoreHourResponse

type GetStoreStatusAPIService

type GetStoreStatusAPIService service

GetStoreStatusAPIService GetStoreStatusAPI service

func (*GetStoreStatusAPIService) GetStoreStatus

func (a *GetStoreStatusAPIService) GetStoreStatus(ctx context.Context, merchantID string) ApiGetStoreStatusRequest

GetStoreStatus Get Store Status

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param merchantID The merchant's ID that is in GrabFood's database.
@return ApiGetStoreStatusRequest

func (*GetStoreStatusAPIService) GetStoreStatusExecute

Execute executes the request

@return StoreStatusResponse

type GrabOauthRequest

type GrabOauthRequest struct {
	// The client identifier issued to the client to obtain the OAuth 2.0 access_token.
	ClientId string `json:"client_id"`
	// The client secret issued to the client to obtain the OAuth 2.0 access_token.
	ClientSecret string `json:"client_secret"`
	// The grant type for the client to obtain the OAuth 2.0 access_token.
	GrantType string `json:"grant_type"`
	// The scope for the client to obtain the OAuth 2.0 access_token.
	Scope                string `json:"scope"`
	AdditionalProperties map[string]interface{}
}

GrabOauthRequest Information about the GrabFood client getting an OAuth 2.0 access token from partners.

func NewGrabOauthRequest

func NewGrabOauthRequest(clientId string, clientSecret string, grantType string, scope string) *GrabOauthRequest

NewGrabOauthRequest instantiates a new GrabOauthRequest 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 NewGrabOauthRequestWithDefaults

func NewGrabOauthRequestWithDefaults() *GrabOauthRequest

NewGrabOauthRequestWithDefaults instantiates a new GrabOauthRequest 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 (*GrabOauthRequest) GetClientId

func (o *GrabOauthRequest) GetClientId() string

GetClientId returns the ClientId field value

func (*GrabOauthRequest) GetClientIdOk

func (o *GrabOauthRequest) GetClientIdOk() (*string, bool)

GetClientIdOk returns a tuple with the ClientId field value and a boolean to check if the value has been set.

func (*GrabOauthRequest) GetClientSecret

func (o *GrabOauthRequest) GetClientSecret() string

GetClientSecret returns the ClientSecret field value

func (*GrabOauthRequest) GetClientSecretOk

func (o *GrabOauthRequest) GetClientSecretOk() (*string, bool)

GetClientSecretOk returns a tuple with the ClientSecret field value and a boolean to check if the value has been set.

func (*GrabOauthRequest) GetGrantType

func (o *GrabOauthRequest) GetGrantType() string

GetGrantType returns the GrantType field value

func (*GrabOauthRequest) GetGrantTypeOk

func (o *GrabOauthRequest) GetGrantTypeOk() (*string, bool)

GetGrantTypeOk returns a tuple with the GrantType field value and a boolean to check if the value has been set.

func (*GrabOauthRequest) GetScope

func (o *GrabOauthRequest) GetScope() string

GetScope returns the Scope field value

func (*GrabOauthRequest) GetScopeOk

func (o *GrabOauthRequest) GetScopeOk() (*string, bool)

GetScopeOk returns a tuple with the Scope field value and a boolean to check if the value has been set.

func (GrabOauthRequest) MarshalJSON

func (o GrabOauthRequest) MarshalJSON() ([]byte, error)

func (*GrabOauthRequest) SetClientId

func (o *GrabOauthRequest) SetClientId(v string)

SetClientId sets field value

func (*GrabOauthRequest) SetClientSecret

func (o *GrabOauthRequest) SetClientSecret(v string)

SetClientSecret sets field value

func (*GrabOauthRequest) SetGrantType

func (o *GrabOauthRequest) SetGrantType(v string)

SetGrantType sets field value

func (*GrabOauthRequest) SetScope

func (o *GrabOauthRequest) SetScope(v string)

SetScope sets field value

func (GrabOauthRequest) ToMap

func (o GrabOauthRequest) ToMap() (map[string]interface{}, error)

func (*GrabOauthRequest) UnmarshalJSON

func (o *GrabOauthRequest) UnmarshalJSON(data []byte) (err error)

type GrabOauthResponse

type GrabOauthResponse struct {
	// The OAuth 2.0 access token issued by the partner.
	AccessToken *string `json:"access_token,omitempty"`
	// The type of token issued which is case insensitive.
	TokenType *string `json:"token_type,omitempty"`
	// The access token lifespan in seconds. The token is reused till it expires - default is 604799 (7 days).
	ExpiresIn            *int32 `json:"expires_in,omitempty"`
	AdditionalProperties map[string]interface{}
}

GrabOauthResponse struct for GrabOauthResponse

func NewGrabOauthResponse

func NewGrabOauthResponse() *GrabOauthResponse

NewGrabOauthResponse instantiates a new GrabOauthResponse 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 NewGrabOauthResponseWithDefaults

func NewGrabOauthResponseWithDefaults() *GrabOauthResponse

NewGrabOauthResponseWithDefaults instantiates a new GrabOauthResponse 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 (*GrabOauthResponse) GetAccessToken

func (o *GrabOauthResponse) GetAccessToken() string

GetAccessToken returns the AccessToken field value if set, zero value otherwise.

func (*GrabOauthResponse) GetAccessTokenOk

func (o *GrabOauthResponse) GetAccessTokenOk() (*string, bool)

GetAccessTokenOk returns a tuple with the AccessToken field value if set, nil otherwise and a boolean to check if the value has been set.

func (*GrabOauthResponse) GetExpiresIn

func (o *GrabOauthResponse) GetExpiresIn() int32

GetExpiresIn returns the ExpiresIn field value if set, zero value otherwise.

func (*GrabOauthResponse) GetExpiresInOk

func (o *GrabOauthResponse) GetExpiresInOk() (*int32, bool)

GetExpiresInOk returns a tuple with the ExpiresIn field value if set, nil otherwise and a boolean to check if the value has been set.

func (*GrabOauthResponse) GetTokenType

func (o *GrabOauthResponse) GetTokenType() string

GetTokenType returns the TokenType field value if set, zero value otherwise.

func (*GrabOauthResponse) GetTokenTypeOk

func (o *GrabOauthResponse) GetTokenTypeOk() (*string, bool)

GetTokenTypeOk returns a tuple with the TokenType field value if set, nil otherwise and a boolean to check if the value has been set.

func (*GrabOauthResponse) HasAccessToken

func (o *GrabOauthResponse) HasAccessToken() bool

HasAccessToken returns a boolean if a field has been set.

func (*GrabOauthResponse) HasExpiresIn

func (o *GrabOauthResponse) HasExpiresIn() bool

HasExpiresIn returns a boolean if a field has been set.

func (*GrabOauthResponse) HasTokenType

func (o *GrabOauthResponse) HasTokenType() bool

HasTokenType returns a boolean if a field has been set.

func (GrabOauthResponse) MarshalJSON

func (o GrabOauthResponse) MarshalJSON() ([]byte, error)

func (*GrabOauthResponse) SetAccessToken

func (o *GrabOauthResponse) SetAccessToken(v string)

SetAccessToken gets a reference to the given string and assigns it to the AccessToken field.

func (*GrabOauthResponse) SetExpiresIn

func (o *GrabOauthResponse) SetExpiresIn(v int32)

SetExpiresIn gets a reference to the given int32 and assigns it to the ExpiresIn field.

func (*GrabOauthResponse) SetTokenType

func (o *GrabOauthResponse) SetTokenType(v string)

SetTokenType gets a reference to the given string and assigns it to the TokenType field.

func (GrabOauthResponse) ToMap

func (o GrabOauthResponse) ToMap() (map[string]interface{}, error)

func (*GrabOauthResponse) UnmarshalJSON

func (o *GrabOauthResponse) UnmarshalJSON(data []byte) (err error)

type ListCampaignAPIService

type ListCampaignAPIService service

ListCampaignAPIService ListCampaignAPI service

func (*ListCampaignAPIService) ListCampaign

ListCampaign List campaigns

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return ApiListCampaignRequest

func (*ListCampaignAPIService) ListCampaignExecute

Execute executes the request

@return ListCampaignResponse

type ListCampaignResponse

type ListCampaignResponse struct {
	Ongoing              []Campaign `json:"ongoing,omitempty"`
	Upcoming             []Campaign `json:"upcoming,omitempty"`
	AdditionalProperties map[string]interface{}
}

ListCampaignResponse

func NewListCampaignResponse

func NewListCampaignResponse() *ListCampaignResponse

NewListCampaignResponse instantiates a new ListCampaignResponse 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 NewListCampaignResponseWithDefaults

func NewListCampaignResponseWithDefaults() *ListCampaignResponse

NewListCampaignResponseWithDefaults instantiates a new ListCampaignResponse 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 (*ListCampaignResponse) GetOngoing

func (o *ListCampaignResponse) GetOngoing() []Campaign

GetOngoing returns the Ongoing field value if set, zero value otherwise.

func (*ListCampaignResponse) GetOngoingOk

func (o *ListCampaignResponse) GetOngoingOk() ([]Campaign, bool)

GetOngoingOk returns a tuple with the Ongoing field value if set, nil otherwise and a boolean to check if the value has been set.

func (*ListCampaignResponse) GetUpcoming

func (o *ListCampaignResponse) GetUpcoming() []Campaign

GetUpcoming returns the Upcoming field value if set, zero value otherwise.

func (*ListCampaignResponse) GetUpcomingOk

func (o *ListCampaignResponse) GetUpcomingOk() ([]Campaign, bool)

GetUpcomingOk returns a tuple with the Upcoming field value if set, nil otherwise and a boolean to check if the value has been set.

func (*ListCampaignResponse) HasOngoing

func (o *ListCampaignResponse) HasOngoing() bool

HasOngoing returns a boolean if a field has been set.

func (*ListCampaignResponse) HasUpcoming

func (o *ListCampaignResponse) HasUpcoming() bool

HasUpcoming returns a boolean if a field has been set.

func (ListCampaignResponse) MarshalJSON

func (o ListCampaignResponse) MarshalJSON() ([]byte, error)

func (*ListCampaignResponse) SetOngoing

func (o *ListCampaignResponse) SetOngoing(v []Campaign)

SetOngoing gets a reference to the given []Campaign and assigns it to the Ongoing field.

func (*ListCampaignResponse) SetUpcoming

func (o *ListCampaignResponse) SetUpcoming(v []Campaign)

SetUpcoming gets a reference to the given []Campaign and assigns it to the Upcoming field.

func (ListCampaignResponse) ToMap

func (o ListCampaignResponse) ToMap() (map[string]interface{}, error)

func (*ListCampaignResponse) UnmarshalJSON

func (o *ListCampaignResponse) UnmarshalJSON(data []byte) (err error)

type ListOrdersAPIService

type ListOrdersAPIService service

ListOrdersAPIService ListOrdersAPI service

func (*ListOrdersAPIService) ListOrders

ListOrders List orders

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return ApiListOrdersRequest

func (*ListOrdersAPIService) ListOrdersExecute

Execute executes the request

@return ListOrdersResponse

type ListOrdersResponse

type ListOrdersResponse struct {
	// The boolean value to indicate if there is more order data. If `true`, you can continue requesting with page+1.
	More                 *bool   `json:"more,omitempty"`
	Orders               []Order `json:"orders,omitempty"`
	AdditionalProperties map[string]interface{}
}

ListOrdersResponse

func NewListOrdersResponse

func NewListOrdersResponse() *ListOrdersResponse

NewListOrdersResponse instantiates a new ListOrdersResponse 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 NewListOrdersResponseWithDefaults

func NewListOrdersResponseWithDefaults() *ListOrdersResponse

NewListOrdersResponseWithDefaults instantiates a new ListOrdersResponse 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 (*ListOrdersResponse) GetMore

func (o *ListOrdersResponse) GetMore() bool

GetMore returns the More field value if set, zero value otherwise.

func (*ListOrdersResponse) GetMoreOk

func (o *ListOrdersResponse) GetMoreOk() (*bool, bool)

GetMoreOk returns a tuple with the More field value if set, nil otherwise and a boolean to check if the value has been set.

func (*ListOrdersResponse) GetOrders

func (o *ListOrdersResponse) GetOrders() []Order

GetOrders returns the Orders field value if set, zero value otherwise.

func (*ListOrdersResponse) GetOrdersOk

func (o *ListOrdersResponse) GetOrdersOk() ([]Order, bool)

GetOrdersOk returns a tuple with the Orders field value if set, nil otherwise and a boolean to check if the value has been set.

func (*ListOrdersResponse) HasMore

func (o *ListOrdersResponse) HasMore() bool

HasMore returns a boolean if a field has been set.

func (*ListOrdersResponse) HasOrders

func (o *ListOrdersResponse) HasOrders() bool

HasOrders returns a boolean if a field has been set.

func (ListOrdersResponse) MarshalJSON

func (o ListOrdersResponse) MarshalJSON() ([]byte, error)

func (*ListOrdersResponse) SetMore

func (o *ListOrdersResponse) SetMore(v bool)

SetMore gets a reference to the given bool and assigns it to the More field.

func (*ListOrdersResponse) SetOrders

func (o *ListOrdersResponse) SetOrders(v []Order)

SetOrders gets a reference to the given []Order and assigns it to the Orders field.

func (ListOrdersResponse) ToMap

func (o ListOrdersResponse) ToMap() (map[string]interface{}, error)

func (*ListOrdersResponse) UnmarshalJSON

func (o *ListOrdersResponse) UnmarshalJSON(data []byte) (err error)

type MappedNullable

type MappedNullable interface {
	ToMap() (map[string]interface{}, error)
}

type MarkOrderReadyAPIService

type MarkOrderReadyAPIService service

MarkOrderReadyAPIService MarkOrderReadyAPI service

func (*MarkOrderReadyAPIService) MarkOrderReady

MarkOrderReady Mark order as ready

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return ApiMarkOrderReadyRequest

func (*MarkOrderReadyAPIService) MarkOrderReadyExecute

func (a *MarkOrderReadyAPIService) MarkOrderReadyExecute(r ApiMarkOrderReadyRequest) (*http.Response, error)

Execute executes the request

type MarkOrderRequest

type MarkOrderRequest struct {
	// The order's ID that is returned from GrabFood. Refer to FAQs for more details about [orderID and shortOrderNumber](#section/Order/What's-the-difference-between-orderID-and-shortOrderNumber).
	OrderID string `json:"orderID"`
	// The status to be marked accordingly.  * `1` - mark order as ready  * `2` - mark order as completed and only applicable to **dine-in** orders
	MarkStatus           int32 `json:"markStatus"`
	AdditionalProperties map[string]interface{}
}

MarkOrderRequest This request marks an order as ready for delivery or completed on GrabFood.

func NewMarkOrderRequest

func NewMarkOrderRequest(orderID string, markStatus int32) *MarkOrderRequest

NewMarkOrderRequest instantiates a new MarkOrderRequest 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 NewMarkOrderRequestWithDefaults

func NewMarkOrderRequestWithDefaults() *MarkOrderRequest

NewMarkOrderRequestWithDefaults instantiates a new MarkOrderRequest 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 (*MarkOrderRequest) GetMarkStatus

func (o *MarkOrderRequest) GetMarkStatus() int32

GetMarkStatus returns the MarkStatus field value

func (*MarkOrderRequest) GetMarkStatusOk

func (o *MarkOrderRequest) GetMarkStatusOk() (*int32, bool)

GetMarkStatusOk returns a tuple with the MarkStatus field value and a boolean to check if the value has been set.

func (*MarkOrderRequest) GetOrderID

func (o *MarkOrderRequest) GetOrderID() string

GetOrderID returns the OrderID field value

func (*MarkOrderRequest) GetOrderIDOk

func (o *MarkOrderRequest) GetOrderIDOk() (*string, bool)

GetOrderIDOk returns a tuple with the OrderID field value and a boolean to check if the value has been set.

func (MarkOrderRequest) MarshalJSON

func (o MarkOrderRequest) MarshalJSON() ([]byte, error)

func (*MarkOrderRequest) SetMarkStatus

func (o *MarkOrderRequest) SetMarkStatus(v int32)

SetMarkStatus sets field value

func (*MarkOrderRequest) SetOrderID

func (o *MarkOrderRequest) SetOrderID(v string)

SetOrderID sets field value

func (MarkOrderRequest) ToMap

func (o MarkOrderRequest) ToMap() (map[string]interface{}, error)

func (*MarkOrderRequest) UnmarshalJSON

func (o *MarkOrderRequest) UnmarshalJSON(data []byte) (err error)
type MenuCategory struct {
	// The category's ID that is on the partner system. This ID should be unique.
	Id string `json:"id"`
	// The name of the category.
	Name string `json:"name"`
	// Translation of the category name. Only support up to 1 translated language. Refer [Menu Translation](#section/Menu-Translation).
	NameTranslation *map[string]string `json:"nameTranslation,omitempty"`
	// The status for the category. Refer to FAQs for more details about [availableStatus](#section/Menu/What-is-availableStatus).
	AvailableStatus string `json:"availableStatus"`
	// The selling time's ID for the category. All items within the category will apply the same selling time unless there is another selling time specified for the item.
	SellingTimeID string `json:"sellingTimeID"`
	// The sort or display order of the category within the menu.
	Sequence *int32 `json:"sequence,omitempty"`
	// An array of item JSON objects. Max 300 allowed per category. Refer to [Items](#items) for more information.
	Items                []MenuItem `json:"items"`
	AdditionalProperties map[string]interface{}
}

MenuCategory struct for MenuCategory

func NewMenuCategory

func NewMenuCategory(id string, name string, availableStatus string, sellingTimeID string, items []MenuItem) *MenuCategory

NewMenuCategory instantiates a new MenuCategory 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 NewMenuCategoryWithDefaults

func NewMenuCategoryWithDefaults() *MenuCategory

NewMenuCategoryWithDefaults instantiates a new MenuCategory 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 *MenuCategory) GetAvailableStatus() string

GetAvailableStatus returns the AvailableStatus field value

func (o *MenuCategory) GetAvailableStatusOk() (*string, bool)

GetAvailableStatusOk returns a tuple with the AvailableStatus field value and a boolean to check if the value has been set.

func (o *MenuCategory) GetId() string

GetId returns the Id field value

func (o *MenuCategory) GetIdOk() (*string, bool)

GetIdOk returns a tuple with the Id field value and a boolean to check if the value has been set.

func (o *MenuCategory) GetItems() []MenuItem

GetItems returns the Items field value

func (o *MenuCategory) GetItemsOk() ([]MenuItem, bool)

GetItemsOk returns a tuple with the Items field value and a boolean to check if the value has been set.

func (o *MenuCategory) GetName() string

GetName returns the Name field value

func (o *MenuCategory) GetNameOk() (*string, bool)

GetNameOk returns a tuple with the Name field value and a boolean to check if the value has been set.

func (o *MenuCategory) GetNameTranslation() map[string]string

GetNameTranslation returns the NameTranslation field value if set, zero value otherwise.

func (o *MenuCategory) GetNameTranslationOk() (*map[string]string, bool)

GetNameTranslationOk returns a tuple with the NameTranslation field value if set, nil otherwise and a boolean to check if the value has been set.

func (o *MenuCategory) GetSellingTimeID() string

GetSellingTimeID returns the SellingTimeID field value

func (o *MenuCategory) GetSellingTimeIDOk() (*string, bool)

GetSellingTimeIDOk returns a tuple with the SellingTimeID field value and a boolean to check if the value has been set.

func (o *MenuCategory) GetSequence() int32

GetSequence returns the Sequence field value if set, zero value otherwise.

func (o *MenuCategory) GetSequenceOk() (*int32, bool)

GetSequenceOk returns a tuple with the Sequence field value if set, nil otherwise and a boolean to check if the value has been set.

func (o *MenuCategory) HasNameTranslation() bool

HasNameTranslation returns a boolean if a field has been set.

func (o *MenuCategory) HasSequence() bool

HasSequence returns a boolean if a field has been set.

func (o MenuCategory) MarshalJSON() ([]byte, error)
func (o *MenuCategory) SetAvailableStatus(v string)

SetAvailableStatus sets field value

func (o *MenuCategory) SetId(v string)

SetId sets field value

func (o *MenuCategory) SetItems(v []MenuItem)

SetItems sets field value

func (o *MenuCategory) SetName(v string)

SetName sets field value

func (o *MenuCategory) SetNameTranslation(v map[string]string)

SetNameTranslation gets a reference to the given map[string]string and assigns it to the NameTranslation field.

func (o *MenuCategory) SetSellingTimeID(v string)

SetSellingTimeID sets field value

func (o *MenuCategory) SetSequence(v int32)

SetSequence gets a reference to the given int32 and assigns it to the Sequence field.

func (o MenuCategory) ToMap() (map[string]interface{}, error)
func (o *MenuCategory) UnmarshalJSON(data []byte) (err error)
type MenuEntity struct {
	// The record's ID on the partner system. For example, the item id in case type is ITEM, modifier id is MODIFIER.
	Id *string `json:"id,omitempty"`
	// The record's price in minor unit format.
	Price *int64 `json:"price,omitempty"`
	// The record's availableStatus.  Note: In order to set an item as \"UNAVAILABLE\", it is required to update both the `availableStatus` and `maxStock` fields, whereby the `maxStock` value should be set to 0.
	AvailableStatus *string `json:"availableStatus,omitempty"`
	// Available stocks under inventory for this item. Auto reduce when there is order placed for this item.  Note: It is necessary to set `maxStock` to 0 if the `availableStatus` of the item is \"UNAVAILABLE\". Item will be set to \"AVAILABLE\" if `maxStock` > 0.
	MaxStock *int64 `json:"maxStock,omitempty"`
	// Price configuration (in minor unit) for different service, order type and channel combination. If a service type does not have a specified price, it will utilize the default price of the item.
	AdvancedPricings []UpdateAdvancedPricing `json:"advancedPricings,omitempty"`
	// Purchasability is set to true by default for all service type, unless it is explicitly set to false. Modifier will reuse it’s item’s purchasability.
	Purchasabilities     []UpdatePurchasability `json:"purchasabilities,omitempty"`
	AdditionalProperties map[string]interface{}
}

MenuEntity struct for MenuEntity

func NewMenuEntity

func NewMenuEntity() *MenuEntity

NewMenuEntity instantiates a new MenuEntity 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 NewMenuEntityWithDefaults

func NewMenuEntityWithDefaults() *MenuEntity

NewMenuEntityWithDefaults instantiates a new MenuEntity 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 *MenuEntity) GetAdvancedPricings() []UpdateAdvancedPricing

GetAdvancedPricings returns the AdvancedPricings field value if set, zero value otherwise.

func (o *MenuEntity) GetAdvancedPricingsOk() ([]UpdateAdvancedPricing, bool)

GetAdvancedPricingsOk returns a tuple with the AdvancedPricings field value if set, nil otherwise and a boolean to check if the value has been set.

func (o *MenuEntity) GetAvailableStatus() string

GetAvailableStatus returns the AvailableStatus field value if set, zero value otherwise.

func (o *MenuEntity) GetAvailableStatusOk() (*string, bool)

GetAvailableStatusOk returns a tuple with the AvailableStatus field value if set, nil otherwise and a boolean to check if the value has been set.

func (o *MenuEntity) GetId() string

GetId returns the Id field value if set, zero value otherwise.

func (o *MenuEntity) GetIdOk() (*string, bool)

GetIdOk returns a tuple with the Id field value if set, nil otherwise and a boolean to check if the value has been set.

func (o *MenuEntity) GetMaxStock() int64

GetMaxStock returns the MaxStock field value if set, zero value otherwise.

func (o *MenuEntity) GetMaxStockOk() (*int64, bool)

GetMaxStockOk returns a tuple with the MaxStock field value if set, nil otherwise and a boolean to check if the value has been set.

func (o *MenuEntity) GetPrice() int64

GetPrice returns the Price field value if set, zero value otherwise.

func (o *MenuEntity) GetPriceOk() (*int64, bool)

GetPriceOk returns a tuple with the Price field value if set, nil otherwise and a boolean to check if the value has been set.

func (o *MenuEntity) GetPurchasabilities() []UpdatePurchasability

GetPurchasabilities returns the Purchasabilities field value if set, zero value otherwise.

func (o *MenuEntity) GetPurchasabilitiesOk() ([]UpdatePurchasability, bool)

GetPurchasabilitiesOk returns a tuple with the Purchasabilities field value if set, nil otherwise and a boolean to check if the value has been set.

func (o *MenuEntity) HasAdvancedPricings() bool

HasAdvancedPricings returns a boolean if a field has been set.

func (o *MenuEntity) HasAvailableStatus() bool

HasAvailableStatus returns a boolean if a field has been set.

func (o *MenuEntity) HasId() bool

HasId returns a boolean if a field has been set.

func (o *MenuEntity) HasMaxStock() bool

HasMaxStock returns a boolean if a field has been set.

func (o *MenuEntity) HasPrice() bool

HasPrice returns a boolean if a field has been set.

func (o *MenuEntity) HasPurchasabilities() bool

HasPurchasabilities returns a boolean if a field has been set.

func (o MenuEntity) MarshalJSON() ([]byte, error)
func (o *MenuEntity) SetAdvancedPricings(v []UpdateAdvancedPricing)

SetAdvancedPricings gets a reference to the given []UpdateAdvancedPricing and assigns it to the AdvancedPricings field.

func (o *MenuEntity) SetAvailableStatus(v string)

SetAvailableStatus gets a reference to the given string and assigns it to the AvailableStatus field.

func (o *MenuEntity) SetId(v string)

SetId gets a reference to the given string and assigns it to the Id field.

func (o *MenuEntity) SetMaxStock(v int64)

SetMaxStock gets a reference to the given int64 and assigns it to the MaxStock field.

func (o *MenuEntity) SetPrice(v int64)

SetPrice gets a reference to the given int64 and assigns it to the Price field.

func (o *MenuEntity) SetPurchasabilities(v []UpdatePurchasability)

SetPurchasabilities gets a reference to the given []UpdatePurchasability and assigns it to the Purchasabilities field.

func (o MenuEntity) ToMap() (map[string]interface{}, error)
func (o *MenuEntity) UnmarshalJSON(data []byte) (err error)
type MenuEntityError struct {
	// The itemID.
	EntityID *string `json:"entityID,omitempty"`
	// The error message.
	ErrMsg               *string `json:"errMsg,omitempty"`
	AdditionalProperties map[string]interface{}
}

MenuEntityError struct for MenuEntityError

func NewMenuEntityError

func NewMenuEntityError() *MenuEntityError

NewMenuEntityError instantiates a new MenuEntityError 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 NewMenuEntityErrorWithDefaults

func NewMenuEntityErrorWithDefaults() *MenuEntityError

NewMenuEntityErrorWithDefaults instantiates a new MenuEntityError 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 *MenuEntityError) GetEntityID() string

GetEntityID returns the EntityID field value if set, zero value otherwise.

func (o *MenuEntityError) GetEntityIDOk() (*string, bool)

GetEntityIDOk returns a tuple with the EntityID field value if set, nil otherwise and a boolean to check if the value has been set.

func (o *MenuEntityError) GetErrMsg() string

GetErrMsg returns the ErrMsg field value if set, zero value otherwise.

func (o *MenuEntityError) GetErrMsgOk() (*string, bool)

GetErrMsgOk returns a tuple with the ErrMsg field value if set, nil otherwise and a boolean to check if the value has been set.

func (o *MenuEntityError) HasEntityID() bool

HasEntityID returns a boolean if a field has been set.

func (o *MenuEntityError) HasErrMsg() bool

HasErrMsg returns a boolean if a field has been set.

func (o MenuEntityError) MarshalJSON() ([]byte, error)
func (o *MenuEntityError) SetEntityID(v string)

SetEntityID gets a reference to the given string and assigns it to the EntityID field.

func (o *MenuEntityError) SetErrMsg(v string)

SetErrMsg gets a reference to the given string and assigns it to the ErrMsg field.

func (o MenuEntityError) ToMap() (map[string]interface{}, error)
func (o *MenuEntityError) UnmarshalJSON(data []byte) (err error)
type MenuItem struct {
	// The item's ID in the partner system. This ID should be unique.
	Id string `json:"id"`
	// The name of the item.
	Name string `json:"name"`
	// Translation of the item name. Only support up to 1 translated language. Refer [Menu Translation](#section/Menu-Translation).
	NameTranslation *map[string]string `json:"nameTranslation,omitempty"`
	// The status for the item. Refer to FAQs for more details about [availableStatus](#section/Menu/What-is-availableStatus).  > Note: In order to set an item as `\"UNAVAILABLE\"`, it is required to update both the `availableStatus` and `maxStock` fields, whereby the `maxStock` should be set to 0.
	AvailableStatus string `json:"availableStatus"`
	// The description of the item. There is a custom length limit of 2000 for `VN`.
	Description *string `json:"description,omitempty"`
	// Translation of the item description. Only support up to 1 translated language. Refer [Menu Translation](#section/Menu-Translation).
	DescriptionTranslation *map[string]string `json:"descriptionTranslation,omitempty"`
	// The item's price in minor format. For example: 1900 means $19 with `currency.exponent` as 2. Refer to [FAQ](#section/Menu/Is-the-menu-price-with-or-without-tax) to determine whether the pricing should be tax-inclusive or tax-exclusive.
	Price int64 `json:"price"`
	// An array string for the item’s image URL link. Only 1 image is supported. Refer to FAQs for more details about [images formats](#section/Menu/What-are-the-recommended-formats-for-an-item-image).
	Photos []string `json:"photos,omitempty"`
	// The item's special Tag. Refer to FAQs for more details about [specialType](#section/Menu/What's-specialType).
	SpecialType *string `json:"specialType,omitempty"`
	// **For Indonesia only.** This field allows the configuration for an item to be marked as tax applicable, and marked item would then be included in a commercial invoice to consumers as per the government's regulations.
	Taxable *bool `json:"taxable,omitempty"`
	// The barcode Number (GTIN). Max 64 allowed. GTIN must be 8, 12, 13, 14 numeric digits.
	Barcode *string `json:"barcode,omitempty"`
	// The selling time's ID for the item. This value overrides the category's selling time if it is different. Empty value implies the category's selling time will be applied.
	SellingTimeID *string `json:"sellingTimeID,omitempty"`
	// Available stocks under inventory for this item. Auto reduce when there is order placed for this item. Empty value implies no limit.  > Note: It is necessary to set `maxStock` to 0 if the `availableStatus` of the item is `\"UNAVAILABLE\"`. Item will be set to `\"AVAILABLE\"` if `maxStock` > 0.
	MaxStock *int64 `json:"maxStock,omitempty"`
	// The sort or display order of the item within the menu.
	Sequence        *int32           `json:"sequence,omitempty"`
	AdvancedPricing *AdvancedPricing `json:"advancedPricing,omitempty"`
	Purchasability  *Purchasability  `json:"purchasability,omitempty"`
	// An array of the modifierGroup JSON objects. Max 30 allowed per item. Refer to [Modifier groups](#modifier-groups) for more information.
	ModifierGroups       []ModifierGroup `json:"modifierGroups,omitempty"`
	AdditionalProperties map[string]interface{}
}

MenuItem struct for MenuItem

func NewMenuItem

func NewMenuItem(id string, name string, availableStatus string, price int64) *MenuItem

NewMenuItem instantiates a new MenuItem 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 NewMenuItemWithDefaults

func NewMenuItemWithDefaults() *MenuItem

NewMenuItemWithDefaults instantiates a new MenuItem 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 *MenuItem) GetAdvancedPricing() AdvancedPricing

GetAdvancedPricing returns the AdvancedPricing field value if set, zero value otherwise.

func (o *MenuItem) GetAdvancedPricingOk() (*AdvancedPricing, bool)

GetAdvancedPricingOk returns a tuple with the AdvancedPricing field value if set, nil otherwise and a boolean to check if the value has been set.

func (o *MenuItem) GetAvailableStatus() string

GetAvailableStatus returns the AvailableStatus field value

func (o *MenuItem) GetAvailableStatusOk() (*string, bool)

GetAvailableStatusOk returns a tuple with the AvailableStatus field value and a boolean to check if the value has been set.

func (o *MenuItem) GetBarcode() string

GetBarcode returns the Barcode field value if set, zero value otherwise.

func (o *MenuItem) GetBarcodeOk() (*string, bool)

GetBarcodeOk returns a tuple with the Barcode field value if set, nil otherwise and a boolean to check if the value has been set.

func (o *MenuItem) GetDescription() string

GetDescription returns the Description field value if set, zero value otherwise.

func (o *MenuItem) GetDescriptionOk() (*string, bool)

GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise and a boolean to check if the value has been set.

func (o *MenuItem) GetDescriptionTranslation() map[string]string

GetDescriptionTranslation returns the DescriptionTranslation field value if set, zero value otherwise.

func (o *MenuItem) GetDescriptionTranslationOk() (*map[string]string, bool)

GetDescriptionTranslationOk returns a tuple with the DescriptionTranslation field value if set, nil otherwise and a boolean to check if the value has been set.

func (o *MenuItem) GetId() string

GetId returns the Id field value

func (o *MenuItem) GetIdOk() (*string, bool)

GetIdOk returns a tuple with the Id field value and a boolean to check if the value has been set.

func (o *MenuItem) GetMaxStock() int64

GetMaxStock returns the MaxStock field value if set, zero value otherwise.

func (o *MenuItem) GetMaxStockOk() (*int64, bool)

GetMaxStockOk returns a tuple with the MaxStock field value if set, nil otherwise and a boolean to check if the value has been set.

func (o *MenuItem) GetModifierGroups() []ModifierGroup

GetModifierGroups returns the ModifierGroups field value if set, zero value otherwise.

func (o *MenuItem) GetModifierGroupsOk() ([]ModifierGroup, bool)

GetModifierGroupsOk returns a tuple with the ModifierGroups field value if set, nil otherwise and a boolean to check if the value has been set.

func (o *MenuItem) GetName() string

GetName returns the Name field value

func (o *MenuItem) GetNameOk() (*string, bool)

GetNameOk returns a tuple with the Name field value and a boolean to check if the value has been set.

func (o *MenuItem) GetNameTranslation() map[string]string

GetNameTranslation returns the NameTranslation field value if set, zero value otherwise.

func (o *MenuItem) GetNameTranslationOk() (*map[string]string, bool)

GetNameTranslationOk returns a tuple with the NameTranslation field value if set, nil otherwise and a boolean to check if the value has been set.

func (o *MenuItem) GetPhotos() []string

GetPhotos returns the Photos field value if set, zero value otherwise.

func (o *MenuItem) GetPhotosOk() ([]string, bool)

GetPhotosOk returns a tuple with the Photos field value if set, nil otherwise and a boolean to check if the value has been set.

func (o *MenuItem) GetPrice() int64

GetPrice returns the Price field value

func (o *MenuItem) GetPriceOk() (*int64, bool)

GetPriceOk returns a tuple with the Price field value and a boolean to check if the value has been set.

func (o *MenuItem) GetPurchasability() Purchasability

GetPurchasability returns the Purchasability field value if set, zero value otherwise.

func (o *MenuItem) GetPurchasabilityOk() (*Purchasability, bool)

GetPurchasabilityOk returns a tuple with the Purchasability field value if set, nil otherwise and a boolean to check if the value has been set.

func (o *MenuItem) GetSellingTimeID() string

GetSellingTimeID returns the SellingTimeID field value if set, zero value otherwise.

func (o *MenuItem) GetSellingTimeIDOk() (*string, bool)

GetSellingTimeIDOk returns a tuple with the SellingTimeID field value if set, nil otherwise and a boolean to check if the value has been set.

func (o *MenuItem) GetSequence() int32

GetSequence returns the Sequence field value if set, zero value otherwise.

func (o *MenuItem) GetSequenceOk() (*int32, bool)

GetSequenceOk returns a tuple with the Sequence field value if set, nil otherwise and a boolean to check if the value has been set.

func (o *MenuItem) GetSpecialType() string

GetSpecialType returns the SpecialType field value if set, zero value otherwise.

func (o *MenuItem) GetSpecialTypeOk() (*string, bool)

GetSpecialTypeOk returns a tuple with the SpecialType field value if set, nil otherwise and a boolean to check if the value has been set.

func (o *MenuItem) GetTaxable() bool

GetTaxable returns the Taxable field value if set, zero value otherwise.

func (o *MenuItem) GetTaxableOk() (*bool, bool)

GetTaxableOk returns a tuple with the Taxable field value if set, nil otherwise and a boolean to check if the value has been set.

func (o *MenuItem) HasAdvancedPricing() bool

HasAdvancedPricing returns a boolean if a field has been set.

func (o *MenuItem) HasBarcode() bool

HasBarcode returns a boolean if a field has been set.

func (o *MenuItem) HasDescription() bool

HasDescription returns a boolean if a field has been set.

func (o *MenuItem) HasDescriptionTranslation() bool

HasDescriptionTranslation returns a boolean if a field has been set.

func (o *MenuItem) HasMaxStock() bool

HasMaxStock returns a boolean if a field has been set.

func (o *MenuItem) HasModifierGroups() bool

HasModifierGroups returns a boolean if a field has been set.

func (o *MenuItem) HasNameTranslation() bool

HasNameTranslation returns a boolean if a field has been set.

func (o *MenuItem) HasPhotos() bool

HasPhotos returns a boolean if a field has been set.

func (o *MenuItem) HasPurchasability() bool

HasPurchasability returns a boolean if a field has been set.

func (o *MenuItem) HasSellingTimeID() bool

HasSellingTimeID returns a boolean if a field has been set.

func (o *MenuItem) HasSequence() bool

HasSequence returns a boolean if a field has been set.

func (o *MenuItem) HasSpecialType() bool

HasSpecialType returns a boolean if a field has been set.

func (o *MenuItem) HasTaxable() bool

HasTaxable returns a boolean if a field has been set.

func (o MenuItem) MarshalJSON() ([]byte, error)
func (o *MenuItem) SetAdvancedPricing(v AdvancedPricing)

SetAdvancedPricing gets a reference to the given AdvancedPricing and assigns it to the AdvancedPricing field.

func (o *MenuItem) SetAvailableStatus(v string)

SetAvailableStatus sets field value

func (o *MenuItem) SetBarcode(v string)

SetBarcode gets a reference to the given string and assigns it to the Barcode field.

func (o *MenuItem) SetDescription(v string)

SetDescription gets a reference to the given string and assigns it to the Description field.

func (o *MenuItem) SetDescriptionTranslation(v map[string]string)

SetDescriptionTranslation gets a reference to the given map[string]string and assigns it to the DescriptionTranslation field.

func (o *MenuItem) SetId(v string)

SetId sets field value

func (o *MenuItem) SetMaxStock(v int64)

SetMaxStock gets a reference to the given int64 and assigns it to the MaxStock field.

func (o *MenuItem) SetModifierGroups(v []ModifierGroup)

SetModifierGroups gets a reference to the given []ModifierGroup and assigns it to the ModifierGroups field.

func (o *MenuItem) SetName(v string)

SetName sets field value

func (o *MenuItem) SetNameTranslation(v map[string]string)

SetNameTranslation gets a reference to the given map[string]string and assigns it to the NameTranslation field.

func (o *MenuItem) SetPhotos(v []string)

SetPhotos gets a reference to the given []string and assigns it to the Photos field.

func (o *MenuItem) SetPrice(v int64)

SetPrice sets field value

func (o *MenuItem) SetPurchasability(v Purchasability)

SetPurchasability gets a reference to the given Purchasability and assigns it to the Purchasability field.

func (o *MenuItem) SetSellingTimeID(v string)

SetSellingTimeID gets a reference to the given string and assigns it to the SellingTimeID field.

func (o *MenuItem) SetSequence(v int32)

SetSequence gets a reference to the given int32 and assigns it to the Sequence field.

func (o *MenuItem) SetSpecialType(v string)

SetSpecialType gets a reference to the given string and assigns it to the SpecialType field.

func (o *MenuItem) SetTaxable(v bool)

SetTaxable gets a reference to the given bool and assigns it to the Taxable field.

func (o MenuItem) ToMap() (map[string]interface{}, error)
func (o *MenuItem) UnmarshalJSON(data []byte) (err error)
type MenuModifier struct {
	// The modifier's ID that is on the partner's system. This ID should be unique.
	Id string `json:"id"`
	// The name of the modifier.
	Name string `json:"name"`
	// Translation of the modifier name. Only support up to 1 translated language. Refer [Menu Translation](#section/Menu-Translation).
	NameTranslation *map[string]string `json:"nameTranslation,omitempty"`
	// The status for the modifier. Refer to FAQs for more details about [availableStatus](#section/Menu/What-is-availableStatus).
	AvailableStatus string `json:"availableStatus"`
	// The modifier's price in minor format. Refer to FAQs for more details about [tax](#section/Menu/Is-the-menu-price-with-or-without-tax).
	Price *int64 `json:"price,omitempty"`
	// The barcode Number (GTIN). GTIN must be 8, 12, 13, 14 numeric digits.
	Barcode *string `json:"barcode,omitempty"`
	// The sort or display order of the modifier within the menu.
	Sequence             *int32           `json:"sequence,omitempty"`
	AdvancedPricing      *AdvancedPricing `json:"advancedPricing,omitempty"`
	AdditionalProperties map[string]interface{}
}

MenuModifier struct for MenuModifier

func NewMenuModifier

func NewMenuModifier(id string, name string, availableStatus string) *MenuModifier

NewMenuModifier instantiates a new MenuModifier 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 NewMenuModifierWithDefaults

func NewMenuModifierWithDefaults() *MenuModifier

NewMenuModifierWithDefaults instantiates a new MenuModifier 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 *MenuModifier) GetAdvancedPricing() AdvancedPricing

GetAdvancedPricing returns the AdvancedPricing field value if set, zero value otherwise.

func (o *MenuModifier) GetAdvancedPricingOk() (*AdvancedPricing, bool)

GetAdvancedPricingOk returns a tuple with the AdvancedPricing field value if set, nil otherwise and a boolean to check if the value has been set.

func (o *MenuModifier) GetAvailableStatus() string

GetAvailableStatus returns the AvailableStatus field value

func (o *MenuModifier) GetAvailableStatusOk() (*string, bool)

GetAvailableStatusOk returns a tuple with the AvailableStatus field value and a boolean to check if the value has been set.

func (o *MenuModifier) GetBarcode() string

GetBarcode returns the Barcode field value if set, zero value otherwise.

func (o *MenuModifier) GetBarcodeOk() (*string, bool)

GetBarcodeOk returns a tuple with the Barcode field value if set, nil otherwise and a boolean to check if the value has been set.

func (o *MenuModifier) GetId() string

GetId returns the Id field value

func (o *MenuModifier) GetIdOk() (*string, bool)

GetIdOk returns a tuple with the Id field value and a boolean to check if the value has been set.

func (o *MenuModifier) GetName() string

GetName returns the Name field value

func (o *MenuModifier) GetNameOk() (*string, bool)

GetNameOk returns a tuple with the Name field value and a boolean to check if the value has been set.

func (o *MenuModifier) GetNameTranslation() map[string]string

GetNameTranslation returns the NameTranslation field value if set, zero value otherwise.

func (o *MenuModifier) GetNameTranslationOk() (*map[string]string, bool)

GetNameTranslationOk returns a tuple with the NameTranslation field value if set, nil otherwise and a boolean to check if the value has been set.

func (o *MenuModifier) GetPrice() int64

GetPrice returns the Price field value if set, zero value otherwise.

func (o *MenuModifier) GetPriceOk() (*int64, bool)

GetPriceOk returns a tuple with the Price field value if set, nil otherwise and a boolean to check if the value has been set.

func (o *MenuModifier) GetSequence() int32

GetSequence returns the Sequence field value if set, zero value otherwise.

func (o *MenuModifier) GetSequenceOk() (*int32, bool)

GetSequenceOk returns a tuple with the Sequence field value if set, nil otherwise and a boolean to check if the value has been set.

func (o *MenuModifier) HasAdvancedPricing() bool

HasAdvancedPricing returns a boolean if a field has been set.

func (o *MenuModifier) HasBarcode() bool

HasBarcode returns a boolean if a field has been set.

func (o *MenuModifier) HasNameTranslation() bool

HasNameTranslation returns a boolean if a field has been set.

func (o *MenuModifier) HasPrice() bool

HasPrice returns a boolean if a field has been set.

func (o *MenuModifier) HasSequence() bool

HasSequence returns a boolean if a field has been set.

func (o MenuModifier) MarshalJSON() ([]byte, error)
func (o *MenuModifier) SetAdvancedPricing(v AdvancedPricing)

SetAdvancedPricing gets a reference to the given AdvancedPricing and assigns it to the AdvancedPricing field.

func (o *MenuModifier) SetAvailableStatus(v string)

SetAvailableStatus sets field value

func (o *MenuModifier) SetBarcode(v string)

SetBarcode gets a reference to the given string and assigns it to the Barcode field.

func (o *MenuModifier) SetId(v string)

SetId sets field value

func (o *MenuModifier) SetName(v string)

SetName sets field value

func (o *MenuModifier) SetNameTranslation(v map[string]string)

SetNameTranslation gets a reference to the given map[string]string and assigns it to the NameTranslation field.

func (o *MenuModifier) SetPrice(v int64)

SetPrice gets a reference to the given int64 and assigns it to the Price field.

func (o *MenuModifier) SetSequence(v int32)

SetSequence gets a reference to the given int32 and assigns it to the Sequence field.

func (o MenuModifier) ToMap() (map[string]interface{}, error)
func (o *MenuModifier) UnmarshalJSON(data []byte) (err error)
type MenuSection struct {
	// The section's ID in the partner system.
	Id string `json:"id"`
	// The name of the section.
	Name         string       `json:"name"`
	ServiceHours ServiceHours `json:"serviceHours"`
	// An array of category JSON objects. Max 100 allowed per section. Refer to [Categories](#categories) for more information.
	Categories           []MenuSectionCategory `json:"categories"`
	AdditionalProperties map[string]interface{}
}

MenuSection struct for MenuSection

func NewMenuSection

func NewMenuSection(id string, name string, serviceHours ServiceHours, categories []MenuSectionCategory) *MenuSection

NewMenuSection instantiates a new MenuSection 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 NewMenuSectionWithDefaults

func NewMenuSectionWithDefaults() *MenuSection

NewMenuSectionWithDefaults instantiates a new MenuSection 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 *MenuSection) GetCategories() []MenuSectionCategory

GetCategories returns the Categories field value

func (o *MenuSection) GetCategoriesOk() ([]MenuSectionCategory, bool)

GetCategoriesOk returns a tuple with the Categories field value and a boolean to check if the value has been set.

func (o *MenuSection) GetId() string

GetId returns the Id field value

func (o *MenuSection) GetIdOk() (*string, bool)

GetIdOk returns a tuple with the Id field value and a boolean to check if the value has been set.

func (o *MenuSection) GetName() string

GetName returns the Name field value

func (o *MenuSection) GetNameOk() (*string, bool)

GetNameOk returns a tuple with the Name field value and a boolean to check if the value has been set.

func (o *MenuSection) GetServiceHours() ServiceHours

GetServiceHours returns the ServiceHours field value

func (o *MenuSection) GetServiceHoursOk() (*ServiceHours, bool)

GetServiceHoursOk returns a tuple with the ServiceHours field value and a boolean to check if the value has been set.

func (o MenuSection) MarshalJSON() ([]byte, error)
func (o *MenuSection) SetCategories(v []MenuSectionCategory)

SetCategories sets field value

func (o *MenuSection) SetId(v string)

SetId sets field value

func (o *MenuSection) SetName(v string)

SetName sets field value

func (o *MenuSection) SetServiceHours(v ServiceHours)

SetServiceHours sets field value

func (o MenuSection) ToMap() (map[string]interface{}, error)
func (o *MenuSection) UnmarshalJSON(data []byte) (err error)
type MenuSectionCategory struct {
	// The category's ID that is on the partner system. This ID should be unique with a min length of 1 and max of 64.
	Id string `json:"id"`
	// The name of the category.
	Name string `json:"name"`
	// Translation of the category name. Only support up to 1 translated language. Refer [Menu Translation](#section/Menu-Translation).
	NameTranslation *map[string]string `json:"nameTranslation,omitempty"`
	// The status for the category. Refer to FAQs for more details about [availableStatus](#section/Menu/What-is-availableStatus).
	AvailableStatus string `json:"availableStatus"`
	// An array of item JSON objects. Max 300 allowed per category. Refer to [Items](#items) for more information.
	Items                []MenuSectionCategoryItem `json:"items"`
	AdditionalProperties map[string]interface{}
}

MenuSectionCategory struct for MenuSectionCategory

func NewMenuSectionCategory

func NewMenuSectionCategory(id string, name string, availableStatus string, items []MenuSectionCategoryItem) *MenuSectionCategory

NewMenuSectionCategory instantiates a new MenuSectionCategory 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 NewMenuSectionCategoryWithDefaults

func NewMenuSectionCategoryWithDefaults() *MenuSectionCategory

NewMenuSectionCategoryWithDefaults instantiates a new MenuSectionCategory 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 *MenuSectionCategory) GetAvailableStatus() string

GetAvailableStatus returns the AvailableStatus field value

func (o *MenuSectionCategory) GetAvailableStatusOk() (*string, bool)

GetAvailableStatusOk returns a tuple with the AvailableStatus field value and a boolean to check if the value has been set.

func (o *MenuSectionCategory) GetId() string

GetId returns the Id field value

func (o *MenuSectionCategory) GetIdOk() (*string, bool)

GetIdOk returns a tuple with the Id field value and a boolean to check if the value has been set.

GetItems returns the Items field value

func (o *MenuSectionCategory) GetItemsOk() ([]MenuSectionCategoryItem, bool)

GetItemsOk returns a tuple with the Items field value and a boolean to check if the value has been set.

func (o *MenuSectionCategory) GetName() string

GetName returns the Name field value

func (o *MenuSectionCategory) GetNameOk() (*string, bool)

GetNameOk returns a tuple with the Name field value and a boolean to check if the value has been set.

func (o *MenuSectionCategory) GetNameTranslation() map[string]string

GetNameTranslation returns the NameTranslation field value if set, zero value otherwise.

func (o *MenuSectionCategory) GetNameTranslationOk() (*map[string]string, bool)

GetNameTranslationOk returns a tuple with the NameTranslation field value if set, nil otherwise and a boolean to check if the value has been set.

func (o *MenuSectionCategory) HasNameTranslation() bool

HasNameTranslation returns a boolean if a field has been set.

func (o MenuSectionCategory) MarshalJSON() ([]byte, error)
func (o *MenuSectionCategory) SetAvailableStatus(v string)

SetAvailableStatus sets field value

func (o *MenuSectionCategory) SetId(v string)

SetId sets field value

SetItems sets field value

func (o *MenuSectionCategory) SetName(v string)

SetName sets field value

func (o *MenuSectionCategory) SetNameTranslation(v map[string]string)

SetNameTranslation gets a reference to the given map[string]string and assigns it to the NameTranslation field.

func (o MenuSectionCategory) ToMap() (map[string]interface{}, error)
func (o *MenuSectionCategory) UnmarshalJSON(data []byte) (err error)
type MenuSectionCategoryItem struct {
	// The item's ID in the partner system.
	Id string `json:"id"`
	// The name of the item.
	Name string `json:"name"`
	// Translation of the item name. Only support up to 1 translated language. Refer [Menu Translation](#section/Menu-Translation).
	NameTranslation *map[string]string `json:"nameTranslation,omitempty"`
	// The status for the item that is in the category. Refer to FAQs for more details about [availableStatus](#section/Menu/What-is-availableStatus).  Note: In order to set an item as \"UNAVAILABLE\", it is required to update both the `availableStatus` and `maxStock` fields, whereby the `maxStock` value should be set to 0.
	AvailableStatus string `json:"availableStatus"`
	// The description of the item. There is a custom length limit of 2000 for `VN`.
	Description *string `json:"description,omitempty"`
	// Translation of the item description. Only support up to 1 translated language. Refer [Menu Translation](#section/Menu-Translation).
	DescriptionTranslation *map[string]string `json:"descriptionTranslation,omitempty"`
	// The item's price (excluding tax) in minor format. For example: 1900 means $19 with `currency.exponent` as 2. Refer to [FAQ](#section/Menu/Is-the-item-price-with-or-without-tax) for more details.
	Price int32 `json:"price"`
	// An array string for the item’s image URL links. Refer to FAQs for more details about [images](#section/Menu/What-are-the-recommended-formats-for-an-item-image).
	Photos []string `json:"photos,omitempty"`
	// The item's special Tag. Refer to FAQs for more details about [specialType](#section/Menu/What's-specialType).
	SpecialType *string `json:"specialType,omitempty"`
	// **For Indonesia only.** This field allows the configuration for an item to be marked as tax applicable, and marked item would then be included in a commercial invoice to consumers as per the government's regulations.
	Taxable *bool `json:"taxable,omitempty"`
	// The barcode Number (GTIN). Max 64 allowed. GTIN must be 8, 12, 13, 14 numeric digits.
	Barcode *string `json:"barcode,omitempty"`
	// Available stocks under inventory for this item. Auto reduce when there is order placed for this item. Empty value implies no limit.  Note: It is necessary to set `maxStock` to 0 if the `availableStatus` of the item is \"UNAVAILABLE\". Item will be set to \"AVAILABLE\" if `maxStock` > 0.
	MaxStock        *int32           `json:"maxStock,omitempty"`
	AdvancedPricing *AdvancedPricing `json:"advancedPricing,omitempty"`
	Purchasability  *Purchasability  `json:"purchasability,omitempty"`
	// An array of the modifierGroup JSON objects. Max 30 allowed per item. Refer to [Modifier groups](#modifier-groups) for more information.
	ModifierGroups       []ModifierGroup `json:"modifierGroups,omitempty"`
	AdditionalProperties map[string]interface{}
}

MenuSectionCategoryItem struct for MenuSectionCategoryItem

func NewMenuSectionCategoryItem

func NewMenuSectionCategoryItem(id string, name string, availableStatus string, price int32) *MenuSectionCategoryItem

NewMenuSectionCategoryItem instantiates a new MenuSectionCategoryItem 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 NewMenuSectionCategoryItemWithDefaults

func NewMenuSectionCategoryItemWithDefaults() *MenuSectionCategoryItem

NewMenuSectionCategoryItemWithDefaults instantiates a new MenuSectionCategoryItem 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 *MenuSectionCategoryItem) GetAdvancedPricing() AdvancedPricing

GetAdvancedPricing returns the AdvancedPricing field value if set, zero value otherwise.

func (o *MenuSectionCategoryItem) GetAdvancedPricingOk() (*AdvancedPricing, bool)

GetAdvancedPricingOk returns a tuple with the AdvancedPricing field value if set, nil otherwise and a boolean to check if the value has been set.

func (o *MenuSectionCategoryItem) GetAvailableStatus() string

GetAvailableStatus returns the AvailableStatus field value

func (o *MenuSectionCategoryItem) GetAvailableStatusOk() (*string, bool)

GetAvailableStatusOk returns a tuple with the AvailableStatus field value and a boolean to check if the value has been set.

func (o *MenuSectionCategoryItem) GetBarcode() string

GetBarcode returns the Barcode field value if set, zero value otherwise.

func (o *MenuSectionCategoryItem) GetBarcodeOk() (*string, bool)

GetBarcodeOk returns a tuple with the Barcode field value if set, nil otherwise and a boolean to check if the value has been set.

func (o *MenuSectionCategoryItem) GetDescription() string

GetDescription returns the Description field value if set, zero value otherwise.

func (o *MenuSectionCategoryItem) GetDescriptionOk() (*string, bool)

GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise and a boolean to check if the value has been set.

func (o *MenuSectionCategoryItem) GetDescriptionTranslation() map[string]string

GetDescriptionTranslation returns the DescriptionTranslation field value if set, zero value otherwise.

func (o *MenuSectionCategoryItem) GetDescriptionTranslationOk() (*map[string]string, bool)

GetDescriptionTranslationOk returns a tuple with the DescriptionTranslation field value if set, nil otherwise and a boolean to check if the value has been set.

func (o *MenuSectionCategoryItem) GetId() string

GetId returns the Id field value

func (o *MenuSectionCategoryItem) GetIdOk() (*string, bool)

GetIdOk returns a tuple with the Id field value and a boolean to check if the value has been set.

func (o *MenuSectionCategoryItem) GetMaxStock() int32

GetMaxStock returns the MaxStock field value if set, zero value otherwise.

func (o *MenuSectionCategoryItem) GetMaxStockOk() (*int32, bool)

GetMaxStockOk returns a tuple with the MaxStock field value if set, nil otherwise and a boolean to check if the value has been set.

func (o *MenuSectionCategoryItem) GetModifierGroups() []ModifierGroup

GetModifierGroups returns the ModifierGroups field value if set, zero value otherwise.

func (o *MenuSectionCategoryItem) GetModifierGroupsOk() ([]ModifierGroup, bool)

GetModifierGroupsOk returns a tuple with the ModifierGroups field value if set, nil otherwise and a boolean to check if the value has been set.

func (o *MenuSectionCategoryItem) GetName() string

GetName returns the Name field value

func (o *MenuSectionCategoryItem) GetNameOk() (*string, bool)

GetNameOk returns a tuple with the Name field value and a boolean to check if the value has been set.

func (o *MenuSectionCategoryItem) GetNameTranslation() map[string]string

GetNameTranslation returns the NameTranslation field value if set, zero value otherwise.

func (o *MenuSectionCategoryItem) GetNameTranslationOk() (*map[string]string, bool)

GetNameTranslationOk returns a tuple with the NameTranslation field value if set, nil otherwise and a boolean to check if the value has been set.

func (o *MenuSectionCategoryItem) GetPhotos() []string

GetPhotos returns the Photos field value if set, zero value otherwise.

func (o *MenuSectionCategoryItem) GetPhotosOk() ([]string, bool)

GetPhotosOk returns a tuple with the Photos field value if set, nil otherwise and a boolean to check if the value has been set.

func (o *MenuSectionCategoryItem) GetPrice() int32

GetPrice returns the Price field value

func (o *MenuSectionCategoryItem) GetPriceOk() (*int32, bool)

GetPriceOk returns a tuple with the Price field value and a boolean to check if the value has been set.

func (o *MenuSectionCategoryItem) GetPurchasability() Purchasability

GetPurchasability returns the Purchasability field value if set, zero value otherwise.

func (o *MenuSectionCategoryItem) GetPurchasabilityOk() (*Purchasability, bool)

GetPurchasabilityOk returns a tuple with the Purchasability field value if set, nil otherwise and a boolean to check if the value has been set.

func (o *MenuSectionCategoryItem) GetSpecialType() string

GetSpecialType returns the SpecialType field value if set, zero value otherwise.

func (o *MenuSectionCategoryItem) GetSpecialTypeOk() (*string, bool)

GetSpecialTypeOk returns a tuple with the SpecialType field value if set, nil otherwise and a boolean to check if the value has been set.

func (o *MenuSectionCategoryItem) GetTaxable() bool

GetTaxable returns the Taxable field value if set, zero value otherwise.

func (o *MenuSectionCategoryItem) GetTaxableOk() (*bool, bool)

GetTaxableOk returns a tuple with the Taxable field value if set, nil otherwise and a boolean to check if the value has been set.

func (o *MenuSectionCategoryItem) HasAdvancedPricing() bool

HasAdvancedPricing returns a boolean if a field has been set.

func (o *MenuSectionCategoryItem) HasBarcode() bool

HasBarcode returns a boolean if a field has been set.

func (o *MenuSectionCategoryItem) HasDescription() bool

HasDescription returns a boolean if a field has been set.

func (o *MenuSectionCategoryItem) HasDescriptionTranslation() bool

HasDescriptionTranslation returns a boolean if a field has been set.

func (o *MenuSectionCategoryItem) HasMaxStock() bool

HasMaxStock returns a boolean if a field has been set.

func (o *MenuSectionCategoryItem) HasModifierGroups() bool

HasModifierGroups returns a boolean if a field has been set.

func (o *MenuSectionCategoryItem) HasNameTranslation() bool

HasNameTranslation returns a boolean if a field has been set.

func (o *MenuSectionCategoryItem) HasPhotos() bool

HasPhotos returns a boolean if a field has been set.

func (o *MenuSectionCategoryItem) HasPurchasability() bool

HasPurchasability returns a boolean if a field has been set.

func (o *MenuSectionCategoryItem) HasSpecialType() bool

HasSpecialType returns a boolean if a field has been set.

func (o *MenuSectionCategoryItem) HasTaxable() bool

HasTaxable returns a boolean if a field has been set.

func (o MenuSectionCategoryItem) MarshalJSON() ([]byte, error)
func (o *MenuSectionCategoryItem) SetAdvancedPricing(v AdvancedPricing)

SetAdvancedPricing gets a reference to the given AdvancedPricing and assigns it to the AdvancedPricing field.

func (o *MenuSectionCategoryItem) SetAvailableStatus(v string)

SetAvailableStatus sets field value

func (o *MenuSectionCategoryItem) SetBarcode(v string)

SetBarcode gets a reference to the given string and assigns it to the Barcode field.

func (o *MenuSectionCategoryItem) SetDescription(v string)

SetDescription gets a reference to the given string and assigns it to the Description field.

func (o *MenuSectionCategoryItem) SetDescriptionTranslation(v map[string]string)

SetDescriptionTranslation gets a reference to the given map[string]string and assigns it to the DescriptionTranslation field.

func (o *MenuSectionCategoryItem) SetId(v string)

SetId sets field value

func (o *MenuSectionCategoryItem) SetMaxStock(v int32)

SetMaxStock gets a reference to the given int32 and assigns it to the MaxStock field.

func (o *MenuSectionCategoryItem) SetModifierGroups(v []ModifierGroup)

SetModifierGroups gets a reference to the given []ModifierGroup and assigns it to the ModifierGroups field.

func (o *MenuSectionCategoryItem) SetName(v string)

SetName sets field value

func (o *MenuSectionCategoryItem) SetNameTranslation(v map[string]string)

SetNameTranslation gets a reference to the given map[string]string and assigns it to the NameTranslation field.

func (o *MenuSectionCategoryItem) SetPhotos(v []string)

SetPhotos gets a reference to the given []string and assigns it to the Photos field.

func (o *MenuSectionCategoryItem) SetPrice(v int32)

SetPrice sets field value

func (o *MenuSectionCategoryItem) SetPurchasability(v Purchasability)

SetPurchasability gets a reference to the given Purchasability and assigns it to the Purchasability field.

func (o *MenuSectionCategoryItem) SetSpecialType(v string)

SetSpecialType gets a reference to the given string and assigns it to the SpecialType field.

func (o *MenuSectionCategoryItem) SetTaxable(v bool)

SetTaxable gets a reference to the given bool and assigns it to the Taxable field.

func (o MenuSectionCategoryItem) ToMap() (map[string]interface{}, error)
func (o *MenuSectionCategoryItem) UnmarshalJSON(data []byte) (err error)
type MenuSyncFail struct {
	Id *string `json:"id,omitempty"`
	// An array of strings of error message.
	Errors               []string                  `json:"errors,omitempty"`
	ServiceHours         *MenuSyncFailServiceHours `json:"serviceHours,omitempty"`
	Categories           []MenuSyncFailCategory    `json:"categories,omitempty"`
	AdditionalProperties map[string]interface{}
}

MenuSyncFail struct for MenuSyncFail

func NewMenuSyncFail

func NewMenuSyncFail() *MenuSyncFail

NewMenuSyncFail instantiates a new MenuSyncFail 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 NewMenuSyncFailWithDefaults

func NewMenuSyncFailWithDefaults() *MenuSyncFail

NewMenuSyncFailWithDefaults instantiates a new MenuSyncFail 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 *MenuSyncFail) GetCategories() []MenuSyncFailCategory

GetCategories returns the Categories field value if set, zero value otherwise.

func (o *MenuSyncFail) GetCategoriesOk() ([]MenuSyncFailCategory, bool)

GetCategoriesOk returns a tuple with the Categories field value if set, nil otherwise and a boolean to check if the value has been set.

func (o *MenuSyncFail) GetErrors() []string

GetErrors returns the Errors field value if set, zero value otherwise.

func (o *MenuSyncFail) GetErrorsOk() ([]string, bool)

GetErrorsOk returns a tuple with the Errors field value if set, nil otherwise and a boolean to check if the value has been set.

func (o *MenuSyncFail) GetId() string

GetId returns the Id field value if set, zero value otherwise.

func (o *MenuSyncFail) GetIdOk() (*string, bool)

GetIdOk returns a tuple with the Id field value if set, nil otherwise and a boolean to check if the value has been set.

func (o *MenuSyncFail) GetServiceHours() MenuSyncFailServiceHours

GetServiceHours returns the ServiceHours field value if set, zero value otherwise.

func (o *MenuSyncFail) GetServiceHoursOk() (*MenuSyncFailServiceHours, bool)

GetServiceHoursOk returns a tuple with the ServiceHours field value if set, nil otherwise and a boolean to check if the value has been set.

func (o *MenuSyncFail) HasCategories() bool

HasCategories returns a boolean if a field has been set.

func (o *MenuSyncFail) HasErrors() bool

HasErrors returns a boolean if a field has been set.

func (o *MenuSyncFail) HasId() bool

HasId returns a boolean if a field has been set.

func (o *MenuSyncFail) HasServiceHours() bool

HasServiceHours returns a boolean if a field has been set.

func (o MenuSyncFail) MarshalJSON() ([]byte, error)
func (o *MenuSyncFail) SetCategories(v []MenuSyncFailCategory)

SetCategories gets a reference to the given []MenuSyncFailCategory and assigns it to the Categories field.

func (o *MenuSyncFail) SetErrors(v []string)

SetErrors gets a reference to the given []string and assigns it to the Errors field.

func (o *MenuSyncFail) SetId(v string)

SetId gets a reference to the given string and assigns it to the Id field.

func (o *MenuSyncFail) SetServiceHours(v MenuSyncFailServiceHours)

SetServiceHours gets a reference to the given MenuSyncFailServiceHours and assigns it to the ServiceHours field.

func (o MenuSyncFail) ToMap() (map[string]interface{}, error)
func (o *MenuSyncFail) UnmarshalJSON(data []byte) (err error)
type MenuSyncFailCategory struct {
	// The category's ID that is on the partner system. This ID should be unique with a min length of 1 and max of 64.
	Id *string `json:"id,omitempty"`
	// An array of strings of error message.
	Errors []string `json:"errors,omitempty"`
	// An array of item JSON objects. Max 300 allowed per category. Refer to [Items](#items) for more information.
	Items                []MenuSyncFailItem `json:"items,omitempty"`
	AdditionalProperties map[string]interface{}
}

MenuSyncFailCategory struct for MenuSyncFailCategory

func NewMenuSyncFailCategory

func NewMenuSyncFailCategory() *MenuSyncFailCategory

NewMenuSyncFailCategory instantiates a new MenuSyncFailCategory 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 NewMenuSyncFailCategoryWithDefaults

func NewMenuSyncFailCategoryWithDefaults() *MenuSyncFailCategory

NewMenuSyncFailCategoryWithDefaults instantiates a new MenuSyncFailCategory 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 *MenuSyncFailCategory) GetErrors() []string

GetErrors returns the Errors field value if set, zero value otherwise.

func (o *MenuSyncFailCategory) GetErrorsOk() ([]string, bool)

GetErrorsOk returns a tuple with the Errors field value if set, nil otherwise and a boolean to check if the value has been set.

func (o *MenuSyncFailCategory) GetId() string

GetId returns the Id field value if set, zero value otherwise.

func (o *MenuSyncFailCategory) GetIdOk() (*string, bool)

GetIdOk returns a tuple with the Id field value if set, nil otherwise and a boolean to check if the value has been set.

func (o *MenuSyncFailCategory) GetItems() []MenuSyncFailItem

GetItems returns the Items field value if set, zero value otherwise.

func (o *MenuSyncFailCategory) GetItemsOk() ([]MenuSyncFailItem, bool)

GetItemsOk returns a tuple with the Items field value if set, nil otherwise and a boolean to check if the value has been set.

func (o *MenuSyncFailCategory) HasErrors() bool

HasErrors returns a boolean if a field has been set.

func (o *MenuSyncFailCategory) HasId() bool

HasId returns a boolean if a field has been set.

func (o *MenuSyncFailCategory) HasItems() bool

HasItems returns a boolean if a field has been set.

func (o MenuSyncFailCategory) MarshalJSON() ([]byte, error)
func (o *MenuSyncFailCategory) SetErrors(v []string)

SetErrors gets a reference to the given []string and assigns it to the Errors field.

func (o *MenuSyncFailCategory) SetId(v string)

SetId gets a reference to the given string and assigns it to the Id field.

func (o *MenuSyncFailCategory) SetItems(v []MenuSyncFailItem)

SetItems gets a reference to the given []MenuSyncFailItem and assigns it to the Items field.

func (o MenuSyncFailCategory) ToMap() (map[string]interface{}, error)
func (o *MenuSyncFailCategory) UnmarshalJSON(data []byte) (err error)
type MenuSyncFailItem struct {
	// The item's ID in the partner system.
	Id *string `json:"id,omitempty"`
	// An array of strings of error message.
	Errors               []string                    `json:"errors,omitempty"`
	ModifierGroups       []MenuSyncFailModifierGroup `json:"modifierGroups,omitempty"`
	AdditionalProperties map[string]interface{}
}

MenuSyncFailItem struct for MenuSyncFailItem

func NewMenuSyncFailItem

func NewMenuSyncFailItem() *MenuSyncFailItem

NewMenuSyncFailItem instantiates a new MenuSyncFailItem 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 NewMenuSyncFailItemWithDefaults

func NewMenuSyncFailItemWithDefaults() *MenuSyncFailItem

NewMenuSyncFailItemWithDefaults instantiates a new MenuSyncFailItem 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 *MenuSyncFailItem) GetErrors() []string

GetErrors returns the Errors field value if set, zero value otherwise.

func (o *MenuSyncFailItem) GetErrorsOk() ([]string, bool)

GetErrorsOk returns a tuple with the Errors field value if set, nil otherwise and a boolean to check if the value has been set.

func (o *MenuSyncFailItem) GetId() string

GetId returns the Id field value if set, zero value otherwise.

func (o *MenuSyncFailItem) GetIdOk() (*string, bool)

GetIdOk returns a tuple with the Id field value if set, nil otherwise and a boolean to check if the value has been set.

func (o *MenuSyncFailItem) GetModifierGroups() []MenuSyncFailModifierGroup

GetModifierGroups returns the ModifierGroups field value if set, zero value otherwise.

func (o *MenuSyncFailItem) GetModifierGroupsOk() ([]MenuSyncFailModifierGroup, bool)

GetModifierGroupsOk returns a tuple with the ModifierGroups field value if set, nil otherwise and a boolean to check if the value has been set.

func (o *MenuSyncFailItem) HasErrors() bool

HasErrors returns a boolean if a field has been set.

func (o *MenuSyncFailItem) HasId() bool

HasId returns a boolean if a field has been set.

func (o *MenuSyncFailItem) HasModifierGroups() bool

HasModifierGroups returns a boolean if a field has been set.

func (o MenuSyncFailItem) MarshalJSON() ([]byte, error)
func (o *MenuSyncFailItem) SetErrors(v []string)

SetErrors gets a reference to the given []string and assigns it to the Errors field.

func (o *MenuSyncFailItem) SetId(v string)

SetId gets a reference to the given string and assigns it to the Id field.

func (o *MenuSyncFailItem) SetModifierGroups(v []MenuSyncFailModifierGroup)

SetModifierGroups gets a reference to the given []MenuSyncFailModifierGroup and assigns it to the ModifierGroups field.

func (o MenuSyncFailItem) ToMap() (map[string]interface{}, error)
func (o *MenuSyncFailItem) UnmarshalJSON(data []byte) (err error)
type MenuSyncFailModifier struct {
	Id *string `json:"id,omitempty"`
	// An array of strings of error message.
	Errors               []string `json:"errors,omitempty"`
	AdditionalProperties map[string]interface{}
}

MenuSyncFailModifier struct for MenuSyncFailModifier

func NewMenuSyncFailModifier

func NewMenuSyncFailModifier() *MenuSyncFailModifier

NewMenuSyncFailModifier instantiates a new MenuSyncFailModifier 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 NewMenuSyncFailModifierWithDefaults

func NewMenuSyncFailModifierWithDefaults() *MenuSyncFailModifier

NewMenuSyncFailModifierWithDefaults instantiates a new MenuSyncFailModifier 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 *MenuSyncFailModifier) GetErrors() []string

GetErrors returns the Errors field value if set, zero value otherwise.

func (o *MenuSyncFailModifier) GetErrorsOk() ([]string, bool)

GetErrorsOk returns a tuple with the Errors field value if set, nil otherwise and a boolean to check if the value has been set.

func (o *MenuSyncFailModifier) GetId() string

GetId returns the Id field value if set, zero value otherwise.

func (o *MenuSyncFailModifier) GetIdOk() (*string, bool)

GetIdOk returns a tuple with the Id field value if set, nil otherwise and a boolean to check if the value has been set.

func (o *MenuSyncFailModifier) HasErrors() bool

HasErrors returns a boolean if a field has been set.

func (o *MenuSyncFailModifier) HasId() bool

HasId returns a boolean if a field has been set.

func (o MenuSyncFailModifier) MarshalJSON() ([]byte, error)
func (o *MenuSyncFailModifier) SetErrors(v []string)

SetErrors gets a reference to the given []string and assigns it to the Errors field.

func (o *MenuSyncFailModifier) SetId(v string)

SetId gets a reference to the given string and assigns it to the Id field.

func (o MenuSyncFailModifier) ToMap() (map[string]interface{}, error)
func (o *MenuSyncFailModifier) UnmarshalJSON(data []byte) (err error)
type MenuSyncFailModifierGroup struct {
	Id *string `json:"id,omitempty"`
	// An array of strings of error message.
	Errors               []string               `json:"errors,omitempty"`
	Modifiers            []MenuSyncFailModifier `json:"modifiers,omitempty"`
	AdditionalProperties map[string]interface{}
}

MenuSyncFailModifierGroup struct for MenuSyncFailModifierGroup

func NewMenuSyncFailModifierGroup

func NewMenuSyncFailModifierGroup() *MenuSyncFailModifierGroup

NewMenuSyncFailModifierGroup instantiates a new MenuSyncFailModifierGroup 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 NewMenuSyncFailModifierGroupWithDefaults

func NewMenuSyncFailModifierGroupWithDefaults() *MenuSyncFailModifierGroup

NewMenuSyncFailModifierGroupWithDefaults instantiates a new MenuSyncFailModifierGroup 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 *MenuSyncFailModifierGroup) GetErrors() []string

GetErrors returns the Errors field value if set, zero value otherwise.

func (o *MenuSyncFailModifierGroup) GetErrorsOk() ([]string, bool)

GetErrorsOk returns a tuple with the Errors field value if set, nil otherwise and a boolean to check if the value has been set.

func (o *MenuSyncFailModifierGroup) GetId() string

GetId returns the Id field value if set, zero value otherwise.

func (o *MenuSyncFailModifierGroup) GetIdOk() (*string, bool)

GetIdOk returns a tuple with the Id field value if set, nil otherwise and a boolean to check if the value has been set.

func (o *MenuSyncFailModifierGroup) GetModifiers() []MenuSyncFailModifier

GetModifiers returns the Modifiers field value if set, zero value otherwise.

func (o *MenuSyncFailModifierGroup) GetModifiersOk() ([]MenuSyncFailModifier, bool)

GetModifiersOk returns a tuple with the Modifiers field value if set, nil otherwise and a boolean to check if the value has been set.

func (o *MenuSyncFailModifierGroup) HasErrors() bool

HasErrors returns a boolean if a field has been set.

func (o *MenuSyncFailModifierGroup) HasId() bool

HasId returns a boolean if a field has been set.

func (o *MenuSyncFailModifierGroup) HasModifiers() bool

HasModifiers returns a boolean if a field has been set.

func (o MenuSyncFailModifierGroup) MarshalJSON() ([]byte, error)
func (o *MenuSyncFailModifierGroup) SetErrors(v []string)

SetErrors gets a reference to the given []string and assigns it to the Errors field.

func (o *MenuSyncFailModifierGroup) SetId(v string)

SetId gets a reference to the given string and assigns it to the Id field.

func (o *MenuSyncFailModifierGroup) SetModifiers(v []MenuSyncFailModifier)

SetModifiers gets a reference to the given []MenuSyncFailModifier and assigns it to the Modifiers field.

func (o MenuSyncFailModifierGroup) ToMap() (map[string]interface{}, error)
func (o *MenuSyncFailModifierGroup) UnmarshalJSON(data []byte) (err error)
type MenuSyncFailServiceHours struct {
	// An array of strings of error message.
	Errors               []string `json:"errors,omitempty"`
	AdditionalProperties map[string]interface{}
}

MenuSyncFailServiceHours struct for MenuSyncFailServiceHours

func NewMenuSyncFailServiceHours

func NewMenuSyncFailServiceHours() *MenuSyncFailServiceHours

NewMenuSyncFailServiceHours instantiates a new MenuSyncFailServiceHours 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 NewMenuSyncFailServiceHoursWithDefaults

func NewMenuSyncFailServiceHoursWithDefaults() *MenuSyncFailServiceHours

NewMenuSyncFailServiceHoursWithDefaults instantiates a new MenuSyncFailServiceHours 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 *MenuSyncFailServiceHours) GetErrors() []string

GetErrors returns the Errors field value if set, zero value otherwise.

func (o *MenuSyncFailServiceHours) GetErrorsOk() ([]string, bool)

GetErrorsOk returns a tuple with the Errors field value if set, nil otherwise and a boolean to check if the value has been set.

func (o *MenuSyncFailServiceHours) HasErrors() bool

HasErrors returns a boolean if a field has been set.

func (o MenuSyncFailServiceHours) MarshalJSON() ([]byte, error)
func (o *MenuSyncFailServiceHours) SetErrors(v []string)

SetErrors gets a reference to the given []string and assigns it to the Errors field.

func (o MenuSyncFailServiceHours) ToMap() (map[string]interface{}, error)
func (o *MenuSyncFailServiceHours) UnmarshalJSON(data []byte) (err error)
type MenuSyncResponse struct {
	// The Unix time the specified menu was created in GrabFood's database.
	CreatedTime time.Time `json:"createdTime"`
	// The Unix time the specified menu was created in GrabFood's database.
	UpdatedTime time.Time `json:"updatedTime"`
	// The status code for this request. See [Menu sync response statuses](#section/Menu-sync-response-statuses) for more information.
	Code string `json:"code"`
	// An array of strings of error message.
	Errors               []string       `json:"errors,omitempty"`
	Sections             []MenuSyncFail `json:"sections,omitempty"`
	AdditionalProperties map[string]interface{}
}

MenuSyncResponse

func NewMenuSyncResponse

func NewMenuSyncResponse(createdTime time.Time, updatedTime time.Time, code string) *MenuSyncResponse

NewMenuSyncResponse instantiates a new MenuSyncResponse 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 NewMenuSyncResponseWithDefaults

func NewMenuSyncResponseWithDefaults() *MenuSyncResponse

NewMenuSyncResponseWithDefaults instantiates a new MenuSyncResponse 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 *MenuSyncResponse) GetCode() string

GetCode returns the Code field value

func (o *MenuSyncResponse) GetCodeOk() (*string, bool)

GetCodeOk returns a tuple with the Code field value and a boolean to check if the value has been set.

func (o *MenuSyncResponse) GetCreatedTime() time.Time

GetCreatedTime returns the CreatedTime field value

func (o *MenuSyncResponse) GetCreatedTimeOk() (*time.Time, bool)

GetCreatedTimeOk returns a tuple with the CreatedTime field value and a boolean to check if the value has been set.

func (o *MenuSyncResponse) GetErrors() []string

GetErrors returns the Errors field value if set, zero value otherwise (both if not set or set to explicit null).

func (o *MenuSyncResponse) GetErrorsOk() ([]string, bool)

GetErrorsOk returns a tuple with the Errors field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (o *MenuSyncResponse) GetSections() []MenuSyncFail

GetSections returns the Sections field value if set, zero value otherwise (both if not set or set to explicit null).

func (o *MenuSyncResponse) GetSectionsOk() ([]MenuSyncFail, bool)

GetSectionsOk returns a tuple with the Sections field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (o *MenuSyncResponse) GetUpdatedTime() time.Time

GetUpdatedTime returns the UpdatedTime field value

func (o *MenuSyncResponse) GetUpdatedTimeOk() (*time.Time, bool)

GetUpdatedTimeOk returns a tuple with the UpdatedTime field value and a boolean to check if the value has been set.

func (o *MenuSyncResponse) HasErrors() bool

HasErrors returns a boolean if a field has been set.

func (o *MenuSyncResponse) HasSections() bool

HasSections returns a boolean if a field has been set.

func (o MenuSyncResponse) MarshalJSON() ([]byte, error)
func (o *MenuSyncResponse) SetCode(v string)

SetCode sets field value

func (o *MenuSyncResponse) SetCreatedTime(v time.Time)

SetCreatedTime sets field value

func (o *MenuSyncResponse) SetErrors(v []string)

SetErrors gets a reference to the given []string and assigns it to the Errors field.

func (o *MenuSyncResponse) SetSections(v []MenuSyncFail)

SetSections gets a reference to the given []MenuSyncFail and assigns it to the Sections field.

func (o *MenuSyncResponse) SetUpdatedTime(v time.Time)

SetUpdatedTime sets field value

func (o MenuSyncResponse) ToMap() (map[string]interface{}, error)
func (o *MenuSyncResponse) UnmarshalJSON(data []byte) (err error)
type MenuSyncWebhookRequest struct {
	// An universally unique identifier (UUID) string. Used to uniquely identify a webhook request. Partners should use this value to distinguish between different webhook requests. If two requests contain the same requestID, only the first request should be considered and later requests **must** be ignored or discarded.
	RequestID *string `json:"requestID,omitempty"`
	// The merchant's ID that is in GrabFood's database.
	MerchantID *string `json:"merchantID,omitempty"`
	// The merchant's ID that is on the partner's database.
	PartnerMerchantID *string `json:"partnerMerchantID,omitempty"`
	// An UUID string. Uniquely identifies a menu sync job. This can be found from the [Menu Update Notification](#tag/update-menu-noti) API response header.
	JobID *string `json:"jobID,omitempty"`
	// Indicates the time of menu sync status change. This is based on ISO_8601/RFC3339. For example: `2022-07-29T15:55:59Z`.
	UpdatedAt *string `json:"updatedAt,omitempty"`
	// Indicates the state of the menu sync job.
	Status *string `json:"status,omitempty"`
	// A string array of errors that occurred during processing. This array is empty if the status is not `FAILED`.
	Errors               []string `json:"errors,omitempty"`
	AdditionalProperties map[string]interface{}
}

MenuSyncWebhookRequest This request pushes the state of a menu sync operation.

func NewMenuSyncWebhookRequest

func NewMenuSyncWebhookRequest() *MenuSyncWebhookRequest

NewMenuSyncWebhookRequest instantiates a new MenuSyncWebhookRequest 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 NewMenuSyncWebhookRequestWithDefaults

func NewMenuSyncWebhookRequestWithDefaults() *MenuSyncWebhookRequest

NewMenuSyncWebhookRequestWithDefaults instantiates a new MenuSyncWebhookRequest 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 *MenuSyncWebhookRequest) GetErrors() []string

GetErrors returns the Errors field value if set, zero value otherwise.

func (o *MenuSyncWebhookRequest) GetErrorsOk() ([]string, bool)

GetErrorsOk returns a tuple with the Errors field value if set, nil otherwise and a boolean to check if the value has been set.

func (o *MenuSyncWebhookRequest) GetJobID() string

GetJobID returns the JobID field value if set, zero value otherwise.

func (o *MenuSyncWebhookRequest) GetJobIDOk() (*string, bool)

GetJobIDOk returns a tuple with the JobID field value if set, nil otherwise and a boolean to check if the value has been set.

func (o *MenuSyncWebhookRequest) GetMerchantID() string

GetMerchantID returns the MerchantID field value if set, zero value otherwise.

func (o *MenuSyncWebhookRequest) GetMerchantIDOk() (*string, bool)

GetMerchantIDOk returns a tuple with the MerchantID field value if set, nil otherwise and a boolean to check if the value has been set.

func (o *MenuSyncWebhookRequest) GetPartnerMerchantID() string

GetPartnerMerchantID returns the PartnerMerchantID field value if set, zero value otherwise.

func (o *MenuSyncWebhookRequest) GetPartnerMerchantIDOk() (*string, bool)

GetPartnerMerchantIDOk returns a tuple with the PartnerMerchantID field value if set, nil otherwise and a boolean to check if the value has been set.

func (o *MenuSyncWebhookRequest) GetRequestID() string

GetRequestID returns the RequestID field value if set, zero value otherwise.

func (o *MenuSyncWebhookRequest) GetRequestIDOk() (*string, bool)

GetRequestIDOk returns a tuple with the RequestID field value if set, nil otherwise and a boolean to check if the value has been set.

func (o *MenuSyncWebhookRequest) GetStatus() string

GetStatus returns the Status field value if set, zero value otherwise.

func (o *MenuSyncWebhookRequest) GetStatusOk() (*string, bool)

GetStatusOk returns a tuple with the Status field value if set, nil otherwise and a boolean to check if the value has been set.

func (o *MenuSyncWebhookRequest) GetUpdatedAt() string

GetUpdatedAt returns the UpdatedAt field value if set, zero value otherwise.

func (o *MenuSyncWebhookRequest) GetUpdatedAtOk() (*string, bool)

GetUpdatedAtOk returns a tuple with the UpdatedAt field value if set, nil otherwise and a boolean to check if the value has been set.

func (o *MenuSyncWebhookRequest) HasErrors() bool

HasErrors returns a boolean if a field has been set.

func (o *MenuSyncWebhookRequest) HasJobID() bool

HasJobID returns a boolean if a field has been set.

func (o *MenuSyncWebhookRequest) HasMerchantID() bool

HasMerchantID returns a boolean if a field has been set.

func (o *MenuSyncWebhookRequest) HasPartnerMerchantID() bool

HasPartnerMerchantID returns a boolean if a field has been set.

func (o *MenuSyncWebhookRequest) HasRequestID() bool

HasRequestID returns a boolean if a field has been set.

func (o *MenuSyncWebhookRequest) HasStatus() bool

HasStatus returns a boolean if a field has been set.

func (o *MenuSyncWebhookRequest) HasUpdatedAt() bool

HasUpdatedAt returns a boolean if a field has been set.

func (o MenuSyncWebhookRequest) MarshalJSON() ([]byte, error)
func (o *MenuSyncWebhookRequest) SetErrors(v []string)

SetErrors gets a reference to the given []string and assigns it to the Errors field.

func (o *MenuSyncWebhookRequest) SetJobID(v string)

SetJobID gets a reference to the given string and assigns it to the JobID field.

func (o *MenuSyncWebhookRequest) SetMerchantID(v string)

SetMerchantID gets a reference to the given string and assigns it to the MerchantID field.

func (o *MenuSyncWebhookRequest) SetPartnerMerchantID(v string)

SetPartnerMerchantID gets a reference to the given string and assigns it to the PartnerMerchantID field.

func (o *MenuSyncWebhookRequest) SetRequestID(v string)

SetRequestID gets a reference to the given string and assigns it to the RequestID field.

func (o *MenuSyncWebhookRequest) SetStatus(v string)

SetStatus gets a reference to the given string and assigns it to the Status field.

func (o *MenuSyncWebhookRequest) SetUpdatedAt(v string)

SetUpdatedAt gets a reference to the given string and assigns it to the UpdatedAt field.

func (o MenuSyncWebhookRequest) ToMap() (map[string]interface{}, error)
func (o *MenuSyncWebhookRequest) UnmarshalJSON(data []byte) (err error)

type ModifierGroup

type ModifierGroup struct {
	// The modifier group's ID that is on the partner system. This ID should be unique.
	Id string `json:"id"`
	// The name of the modifier group.
	Name string `json:"name"`
	// Translation of the modifier group name. Only support up to 1 translated language. Refer [Menu Translation](#section/Menu-Translation).
	NameTranslation *map[string]string `json:"nameTranslation,omitempty"`
	// The status for the modifier group.   > The item may be marked as `\"UNAVAILABLE\"` if no available modifier to be selected within the required modifier group where `\"selectionRangeMin\": 1`.
	AvailableStatus string `json:"availableStatus"`
	// The minimum quantity of the modifiers to be selected. Refer to FAQs for more details about [selection range](#section/Menu/What-does-the-selection-range-do).
	SelectionRangeMin *int32 `json:"selectionRangeMin,omitempty"`
	// The maximum quantity of the modifiers to be selected. Refer to FAQs for more details about [selection range](#section/Menu/What-does-the-selection-range-do).
	SelectionRangeMax int32 `json:"selectionRangeMax"`
	// The sort or display order of the modifier group within the menu.
	Sequence *int32 `json:"sequence,omitempty"`
	// An array of modifier JSON objects. Max 100 per modifierGroup. Refer to [Modifiers](#modifiers) for more information.
	Modifiers            []MenuModifier `json:"modifiers,omitempty"`
	AdditionalProperties map[string]interface{}
}

ModifierGroup struct for ModifierGroup

func NewModifierGroup

func NewModifierGroup(id string, name string, availableStatus string, selectionRangeMax int32) *ModifierGroup

NewModifierGroup instantiates a new ModifierGroup 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 NewModifierGroupWithDefaults

func NewModifierGroupWithDefaults() *ModifierGroup

NewModifierGroupWithDefaults instantiates a new ModifierGroup 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 (*ModifierGroup) GetAvailableStatus

func (o *ModifierGroup) GetAvailableStatus() string

GetAvailableStatus returns the AvailableStatus field value

func (*ModifierGroup) GetAvailableStatusOk

func (o *ModifierGroup) GetAvailableStatusOk() (*string, bool)

GetAvailableStatusOk returns a tuple with the AvailableStatus field value and a boolean to check if the value has been set.

func (*ModifierGroup) GetId

func (o *ModifierGroup) GetId() string

GetId returns the Id field value

func (*ModifierGroup) GetIdOk

func (o *ModifierGroup) GetIdOk() (*string, bool)

GetIdOk returns a tuple with the Id field value and a boolean to check if the value has been set.

func (*ModifierGroup) GetModifiers

func (o *ModifierGroup) GetModifiers() []MenuModifier

GetModifiers returns the Modifiers field value if set, zero value otherwise.

func (*ModifierGroup) GetModifiersOk

func (o *ModifierGroup) GetModifiersOk() ([]MenuModifier, bool)

GetModifiersOk returns a tuple with the Modifiers field value if set, nil otherwise and a boolean to check if the value has been set.

func (*ModifierGroup) GetName

func (o *ModifierGroup) GetName() string

GetName returns the Name field value

func (*ModifierGroup) GetNameOk

func (o *ModifierGroup) GetNameOk() (*string, bool)

GetNameOk returns a tuple with the Name field value and a boolean to check if the value has been set.

func (*ModifierGroup) GetNameTranslation

func (o *ModifierGroup) GetNameTranslation() map[string]string

GetNameTranslation returns the NameTranslation field value if set, zero value otherwise.

func (*ModifierGroup) GetNameTranslationOk

func (o *ModifierGroup) GetNameTranslationOk() (*map[string]string, bool)

GetNameTranslationOk returns a tuple with the NameTranslation field value if set, nil otherwise and a boolean to check if the value has been set.

func (*ModifierGroup) GetSelectionRangeMax

func (o *ModifierGroup) GetSelectionRangeMax() int32

GetSelectionRangeMax returns the SelectionRangeMax field value

func (*ModifierGroup) GetSelectionRangeMaxOk

func (o *ModifierGroup) GetSelectionRangeMaxOk() (*int32, bool)

GetSelectionRangeMaxOk returns a tuple with the SelectionRangeMax field value and a boolean to check if the value has been set.

func (*ModifierGroup) GetSelectionRangeMin

func (o *ModifierGroup) GetSelectionRangeMin() int32

GetSelectionRangeMin returns the SelectionRangeMin field value if set, zero value otherwise.

func (*ModifierGroup) GetSelectionRangeMinOk

func (o *ModifierGroup) GetSelectionRangeMinOk() (*int32, bool)

GetSelectionRangeMinOk returns a tuple with the SelectionRangeMin field value if set, nil otherwise and a boolean to check if the value has been set.

func (*ModifierGroup) GetSequence added in v1.0.1

func (o *ModifierGroup) GetSequence() int32

GetSequence returns the Sequence field value if set, zero value otherwise.

func (*ModifierGroup) GetSequenceOk added in v1.0.1

func (o *ModifierGroup) GetSequenceOk() (*int32, bool)

GetSequenceOk returns a tuple with the Sequence field value if set, nil otherwise and a boolean to check if the value has been set.

func (*ModifierGroup) HasModifiers

func (o *ModifierGroup) HasModifiers() bool

HasModifiers returns a boolean if a field has been set.

func (*ModifierGroup) HasNameTranslation

func (o *ModifierGroup) HasNameTranslation() bool

HasNameTranslation returns a boolean if a field has been set.

func (*ModifierGroup) HasSelectionRangeMin

func (o *ModifierGroup) HasSelectionRangeMin() bool

HasSelectionRangeMin returns a boolean if a field has been set.

func (*ModifierGroup) HasSequence added in v1.0.1

func (o *ModifierGroup) HasSequence() bool

HasSequence returns a boolean if a field has been set.

func (ModifierGroup) MarshalJSON

func (o ModifierGroup) MarshalJSON() ([]byte, error)

func (*ModifierGroup) SetAvailableStatus

func (o *ModifierGroup) SetAvailableStatus(v string)

SetAvailableStatus sets field value

func (*ModifierGroup) SetId

func (o *ModifierGroup) SetId(v string)

SetId sets field value

func (*ModifierGroup) SetModifiers

func (o *ModifierGroup) SetModifiers(v []MenuModifier)

SetModifiers gets a reference to the given []MenuModifier and assigns it to the Modifiers field.

func (*ModifierGroup) SetName

func (o *ModifierGroup) SetName(v string)

SetName sets field value

func (*ModifierGroup) SetNameTranslation

func (o *ModifierGroup) SetNameTranslation(v map[string]string)

SetNameTranslation gets a reference to the given map[string]string and assigns it to the NameTranslation field.

func (*ModifierGroup) SetSelectionRangeMax

func (o *ModifierGroup) SetSelectionRangeMax(v int32)

SetSelectionRangeMax sets field value

func (*ModifierGroup) SetSelectionRangeMin

func (o *ModifierGroup) SetSelectionRangeMin(v int32)

SetSelectionRangeMin gets a reference to the given int32 and assigns it to the SelectionRangeMin field.

func (*ModifierGroup) SetSequence added in v1.0.1

func (o *ModifierGroup) SetSequence(v int32)

SetSequence gets a reference to the given int32 and assigns it to the Sequence field.

func (ModifierGroup) ToMap

func (o ModifierGroup) ToMap() (map[string]interface{}, error)

func (*ModifierGroup) UnmarshalJSON

func (o *ModifierGroup) UnmarshalJSON(data []byte) (err error)

type NewOrderTimeRequest

type NewOrderTimeRequest struct {
	// The order's ID that is returned from GrabFood. Refer to FAQs for more details about [orderID and shortOrderNumber](#section/Order/What's-the-difference-between-orderID-and-shortOrderNumber).
	OrderID string `json:"orderID"`
	// The new order ready time for this order, based on ISO_8601/RFC3339.
	NewOrderReadyTime    time.Time `json:"newOrderReadyTime"`
	AdditionalProperties map[string]interface{}
}

NewOrderTimeRequest This request updates an order with a new ready time on GrabFood.

func NewNewOrderTimeRequest

func NewNewOrderTimeRequest(orderID string, newOrderReadyTime time.Time) *NewOrderTimeRequest

NewNewOrderTimeRequest instantiates a new NewOrderTimeRequest 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 NewNewOrderTimeRequestWithDefaults

func NewNewOrderTimeRequestWithDefaults() *NewOrderTimeRequest

NewNewOrderTimeRequestWithDefaults instantiates a new NewOrderTimeRequest 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 (*NewOrderTimeRequest) GetNewOrderReadyTime

func (o *NewOrderTimeRequest) GetNewOrderReadyTime() time.Time

GetNewOrderReadyTime returns the NewOrderReadyTime field value

func (*NewOrderTimeRequest) GetNewOrderReadyTimeOk

func (o *NewOrderTimeRequest) GetNewOrderReadyTimeOk() (*time.Time, bool)

GetNewOrderReadyTimeOk returns a tuple with the NewOrderReadyTime field value and a boolean to check if the value has been set.

func (*NewOrderTimeRequest) GetOrderID

func (o *NewOrderTimeRequest) GetOrderID() string

GetOrderID returns the OrderID field value

func (*NewOrderTimeRequest) GetOrderIDOk

func (o *NewOrderTimeRequest) GetOrderIDOk() (*string, bool)

GetOrderIDOk returns a tuple with the OrderID field value and a boolean to check if the value has been set.

func (NewOrderTimeRequest) MarshalJSON

func (o NewOrderTimeRequest) MarshalJSON() ([]byte, error)

func (*NewOrderTimeRequest) SetNewOrderReadyTime

func (o *NewOrderTimeRequest) SetNewOrderReadyTime(v time.Time)

SetNewOrderReadyTime sets field value

func (*NewOrderTimeRequest) SetOrderID

func (o *NewOrderTimeRequest) SetOrderID(v string)

SetOrderID sets field value

func (NewOrderTimeRequest) ToMap

func (o NewOrderTimeRequest) ToMap() (map[string]interface{}, error)

func (*NewOrderTimeRequest) UnmarshalJSON

func (o *NewOrderTimeRequest) UnmarshalJSON(data []byte) (err error)

type NotifyMembershipWebviewAPIService

type NotifyMembershipWebviewAPIService service

NotifyMembershipWebviewAPIService NotifyMembershipWebviewAPI service

func (*NotifyMembershipWebviewAPIService) NotifyMembershipWebview

NotifyMembershipWebview Notify Membership

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return ApiNotifyMembershipWebviewRequest

func (*NotifyMembershipWebviewAPIService) NotifyMembershipWebviewExecute

Execute executes the request

type NotifyMembershipWebviewRequest

type NotifyMembershipWebviewRequest struct {
	// The unique member ID on the partner's database.
	MemberID *string `json:"memberID,omitempty"`
	// The id used to identify an unique grab user.
	GrabID *string `json:"grabID,omitempty"`
	// The merchant's ID that is in GrabFood's database.
	MerchantID *string `json:"merchantID,omitempty"`
	// Action completed in partner's webview.
	Action               *string `json:"action,omitempty"`
	AdditionalProperties map[string]interface{}
}

NotifyMembershipWebviewRequest This request submits membership registration request to partner.

func NewNotifyMembershipWebviewRequest

func NewNotifyMembershipWebviewRequest() *NotifyMembershipWebviewRequest

NewNotifyMembershipWebviewRequest instantiates a new NotifyMembershipWebviewRequest 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 NewNotifyMembershipWebviewRequestWithDefaults

func NewNotifyMembershipWebviewRequestWithDefaults() *NotifyMembershipWebviewRequest

NewNotifyMembershipWebviewRequestWithDefaults instantiates a new NotifyMembershipWebviewRequest 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 (*NotifyMembershipWebviewRequest) GetAction

func (o *NotifyMembershipWebviewRequest) GetAction() string

GetAction returns the Action field value if set, zero value otherwise.

func (*NotifyMembershipWebviewRequest) GetActionOk

func (o *NotifyMembershipWebviewRequest) GetActionOk() (*string, bool)

GetActionOk returns a tuple with the Action field value if set, nil otherwise and a boolean to check if the value has been set.

func (*NotifyMembershipWebviewRequest) GetGrabID

func (o *NotifyMembershipWebviewRequest) GetGrabID() string

GetGrabID returns the GrabID field value if set, zero value otherwise.

func (*NotifyMembershipWebviewRequest) GetGrabIDOk

func (o *NotifyMembershipWebviewRequest) GetGrabIDOk() (*string, bool)

GetGrabIDOk returns a tuple with the GrabID field value if set, nil otherwise and a boolean to check if the value has been set.

func (*NotifyMembershipWebviewRequest) GetMemberID

func (o *NotifyMembershipWebviewRequest) GetMemberID() string

GetMemberID returns the MemberID field value if set, zero value otherwise.

func (*NotifyMembershipWebviewRequest) GetMemberIDOk

func (o *NotifyMembershipWebviewRequest) GetMemberIDOk() (*string, bool)

GetMemberIDOk returns a tuple with the MemberID field value if set, nil otherwise and a boolean to check if the value has been set.

func (*NotifyMembershipWebviewRequest) GetMerchantID

func (o *NotifyMembershipWebviewRequest) GetMerchantID() string

GetMerchantID returns the MerchantID field value if set, zero value otherwise.

func (*NotifyMembershipWebviewRequest) GetMerchantIDOk

func (o *NotifyMembershipWebviewRequest) GetMerchantIDOk() (*string, bool)

GetMerchantIDOk returns a tuple with the MerchantID field value if set, nil otherwise and a boolean to check if the value has been set.

func (*NotifyMembershipWebviewRequest) HasAction

func (o *NotifyMembershipWebviewRequest) HasAction() bool

HasAction returns a boolean if a field has been set.

func (*NotifyMembershipWebviewRequest) HasGrabID

func (o *NotifyMembershipWebviewRequest) HasGrabID() bool

HasGrabID returns a boolean if a field has been set.

func (*NotifyMembershipWebviewRequest) HasMemberID

func (o *NotifyMembershipWebviewRequest) HasMemberID() bool

HasMemberID returns a boolean if a field has been set.

func (*NotifyMembershipWebviewRequest) HasMerchantID

func (o *NotifyMembershipWebviewRequest) HasMerchantID() bool

HasMerchantID returns a boolean if a field has been set.

func (NotifyMembershipWebviewRequest) MarshalJSON

func (o NotifyMembershipWebviewRequest) MarshalJSON() ([]byte, error)

func (*NotifyMembershipWebviewRequest) SetAction

func (o *NotifyMembershipWebviewRequest) SetAction(v string)

SetAction gets a reference to the given string and assigns it to the Action field.

func (*NotifyMembershipWebviewRequest) SetGrabID

func (o *NotifyMembershipWebviewRequest) SetGrabID(v string)

SetGrabID gets a reference to the given string and assigns it to the GrabID field.

func (*NotifyMembershipWebviewRequest) SetMemberID

func (o *NotifyMembershipWebviewRequest) SetMemberID(v string)

SetMemberID gets a reference to the given string and assigns it to the MemberID field.

func (*NotifyMembershipWebviewRequest) SetMerchantID

func (o *NotifyMembershipWebviewRequest) SetMerchantID(v string)

SetMerchantID gets a reference to the given string and assigns it to the MerchantID field.

func (NotifyMembershipWebviewRequest) ToMap

func (o NotifyMembershipWebviewRequest) ToMap() (map[string]interface{}, error)

func (*NotifyMembershipWebviewRequest) UnmarshalJSON

func (o *NotifyMembershipWebviewRequest) UnmarshalJSON(data []byte) (err error)

type NullableAcceptOrderRequest

type NullableAcceptOrderRequest struct {
	// contains filtered or unexported fields
}

func NewNullableAcceptOrderRequest

func NewNullableAcceptOrderRequest(val *AcceptOrderRequest) *NullableAcceptOrderRequest

func (NullableAcceptOrderRequest) Get

func (NullableAcceptOrderRequest) IsSet

func (v NullableAcceptOrderRequest) IsSet() bool

func (NullableAcceptOrderRequest) MarshalJSON

func (v NullableAcceptOrderRequest) MarshalJSON() ([]byte, error)

func (*NullableAcceptOrderRequest) Set

func (*NullableAcceptOrderRequest) UnmarshalJSON

func (v *NullableAcceptOrderRequest) UnmarshalJSON(src []byte) error

func (*NullableAcceptOrderRequest) Unset

func (v *NullableAcceptOrderRequest) Unset()

type NullableAddress

type NullableAddress struct {
	// contains filtered or unexported fields
}

func NewNullableAddress

func NewNullableAddress(val *Address) *NullableAddress

func (NullableAddress) Get

func (v NullableAddress) Get() *Address

func (NullableAddress) IsSet

func (v NullableAddress) IsSet() bool

func (NullableAddress) MarshalJSON

func (v NullableAddress) MarshalJSON() ([]byte, error)

func (*NullableAddress) Set

func (v *NullableAddress) Set(val *Address)

func (*NullableAddress) UnmarshalJSON

func (v *NullableAddress) UnmarshalJSON(src []byte) error

func (*NullableAddress) Unset

func (v *NullableAddress) Unset()

type NullableAdvancedPricing

type NullableAdvancedPricing struct {
	// contains filtered or unexported fields
}

func NewNullableAdvancedPricing

func NewNullableAdvancedPricing(val *AdvancedPricing) *NullableAdvancedPricing

func (NullableAdvancedPricing) Get

func (NullableAdvancedPricing) IsSet

func (v NullableAdvancedPricing) IsSet() bool

func (NullableAdvancedPricing) MarshalJSON

func (v NullableAdvancedPricing) MarshalJSON() ([]byte, error)

func (*NullableAdvancedPricing) Set

func (*NullableAdvancedPricing) UnmarshalJSON

func (v *NullableAdvancedPricing) UnmarshalJSON(src []byte) error

func (*NullableAdvancedPricing) Unset

func (v *NullableAdvancedPricing) Unset()

type NullableBatchUpdateMenuItem

type NullableBatchUpdateMenuItem struct {
	// contains filtered or unexported fields
}

func NewNullableBatchUpdateMenuItem

func NewNullableBatchUpdateMenuItem(val *BatchUpdateMenuItem) *NullableBatchUpdateMenuItem

func (NullableBatchUpdateMenuItem) Get

func (NullableBatchUpdateMenuItem) IsSet

func (NullableBatchUpdateMenuItem) MarshalJSON

func (v NullableBatchUpdateMenuItem) MarshalJSON() ([]byte, error)

func (*NullableBatchUpdateMenuItem) Set

func (*NullableBatchUpdateMenuItem) UnmarshalJSON

func (v *NullableBatchUpdateMenuItem) UnmarshalJSON(src []byte) error

func (*NullableBatchUpdateMenuItem) Unset

func (v *NullableBatchUpdateMenuItem) Unset()

type NullableBatchUpdateMenuResponse

type NullableBatchUpdateMenuResponse struct {
	// contains filtered or unexported fields
}

func (NullableBatchUpdateMenuResponse) Get

func (NullableBatchUpdateMenuResponse) IsSet

func (NullableBatchUpdateMenuResponse) MarshalJSON

func (v NullableBatchUpdateMenuResponse) MarshalJSON() ([]byte, error)

func (*NullableBatchUpdateMenuResponse) Set

func (*NullableBatchUpdateMenuResponse) UnmarshalJSON

func (v *NullableBatchUpdateMenuResponse) UnmarshalJSON(src []byte) error

func (*NullableBatchUpdateMenuResponse) Unset

type NullableBindMembershipNativeRequest

type NullableBindMembershipNativeRequest struct {
	// contains filtered or unexported fields
}

func (NullableBindMembershipNativeRequest) Get

func (NullableBindMembershipNativeRequest) IsSet

func (NullableBindMembershipNativeRequest) MarshalJSON

func (v NullableBindMembershipNativeRequest) MarshalJSON() ([]byte, error)

func (*NullableBindMembershipNativeRequest) Set

func (*NullableBindMembershipNativeRequest) UnmarshalJSON

func (v *NullableBindMembershipNativeRequest) UnmarshalJSON(src []byte) error

func (*NullableBindMembershipNativeRequest) Unset

type NullableBindMembershipNativeResponse

type NullableBindMembershipNativeResponse struct {
	// contains filtered or unexported fields
}

func (NullableBindMembershipNativeResponse) Get

func (NullableBindMembershipNativeResponse) IsSet

func (NullableBindMembershipNativeResponse) MarshalJSON

func (v NullableBindMembershipNativeResponse) MarshalJSON() ([]byte, error)

func (*NullableBindMembershipNativeResponse) Set

func (*NullableBindMembershipNativeResponse) UnmarshalJSON

func (v *NullableBindMembershipNativeResponse) UnmarshalJSON(src []byte) error

func (*NullableBindMembershipNativeResponse) Unset

type NullableBool

type NullableBool struct {
	// contains filtered or unexported fields
}

func NewNullableBool

func NewNullableBool(val *bool) *NullableBool

func (NullableBool) Get

func (v NullableBool) Get() *bool

func (NullableBool) IsSet

func (v NullableBool) IsSet() bool

func (NullableBool) MarshalJSON

func (v NullableBool) MarshalJSON() ([]byte, error)

func (*NullableBool) Set

func (v *NullableBool) Set(val *bool)

func (*NullableBool) UnmarshalJSON

func (v *NullableBool) UnmarshalJSON(src []byte) error

func (*NullableBool) Unset

func (v *NullableBool) Unset()

type NullableCampaign

type NullableCampaign struct {
	// contains filtered or unexported fields
}

func NewNullableCampaign

func NewNullableCampaign(val *Campaign) *NullableCampaign

func (NullableCampaign) Get

func (v NullableCampaign) Get() *Campaign

func (NullableCampaign) IsSet

func (v NullableCampaign) IsSet() bool

func (NullableCampaign) MarshalJSON

func (v NullableCampaign) MarshalJSON() ([]byte, error)

func (*NullableCampaign) Set

func (v *NullableCampaign) Set(val *Campaign)

func (*NullableCampaign) UnmarshalJSON

func (v *NullableCampaign) UnmarshalJSON(src []byte) error

func (*NullableCampaign) Unset

func (v *NullableCampaign) Unset()

type NullableCampaignConditions

type NullableCampaignConditions struct {
	// contains filtered or unexported fields
}

func NewNullableCampaignConditions

func NewNullableCampaignConditions(val *CampaignConditions) *NullableCampaignConditions

func (NullableCampaignConditions) Get

func (NullableCampaignConditions) IsSet

func (v NullableCampaignConditions) IsSet() bool

func (NullableCampaignConditions) MarshalJSON

func (v NullableCampaignConditions) MarshalJSON() ([]byte, error)

func (*NullableCampaignConditions) Set

func (*NullableCampaignConditions) UnmarshalJSON

func (v *NullableCampaignConditions) UnmarshalJSON(src []byte) error

func (*NullableCampaignConditions) Unset

func (v *NullableCampaignConditions) Unset()

type NullableCampaignDiscount

type NullableCampaignDiscount struct {
	// contains filtered or unexported fields
}

func NewNullableCampaignDiscount

func NewNullableCampaignDiscount(val *CampaignDiscount) *NullableCampaignDiscount

func (NullableCampaignDiscount) Get

func (NullableCampaignDiscount) IsSet

func (v NullableCampaignDiscount) IsSet() bool

func (NullableCampaignDiscount) MarshalJSON

func (v NullableCampaignDiscount) MarshalJSON() ([]byte, error)

func (*NullableCampaignDiscount) Set

func (*NullableCampaignDiscount) UnmarshalJSON

func (v *NullableCampaignDiscount) UnmarshalJSON(src []byte) error

func (*NullableCampaignDiscount) Unset

func (v *NullableCampaignDiscount) Unset()

type NullableCampaignQuotas

type NullableCampaignQuotas struct {
	// contains filtered or unexported fields
}

func NewNullableCampaignQuotas

func NewNullableCampaignQuotas(val *CampaignQuotas) *NullableCampaignQuotas

func (NullableCampaignQuotas) Get

func (NullableCampaignQuotas) IsSet

func (v NullableCampaignQuotas) IsSet() bool

func (NullableCampaignQuotas) MarshalJSON

func (v NullableCampaignQuotas) MarshalJSON() ([]byte, error)

func (*NullableCampaignQuotas) Set

func (*NullableCampaignQuotas) UnmarshalJSON

func (v *NullableCampaignQuotas) UnmarshalJSON(src []byte) error

func (*NullableCampaignQuotas) Unset

func (v *NullableCampaignQuotas) Unset()

type NullableCampaignScope

type NullableCampaignScope struct {
	// contains filtered or unexported fields
}

func NewNullableCampaignScope

func NewNullableCampaignScope(val *CampaignScope) *NullableCampaignScope

func (NullableCampaignScope) Get

func (NullableCampaignScope) IsSet

func (v NullableCampaignScope) IsSet() bool

func (NullableCampaignScope) MarshalJSON

func (v NullableCampaignScope) MarshalJSON() ([]byte, error)

func (*NullableCampaignScope) Set

func (v *NullableCampaignScope) Set(val *CampaignScope)

func (*NullableCampaignScope) UnmarshalJSON

func (v *NullableCampaignScope) UnmarshalJSON(src []byte) error

func (*NullableCampaignScope) Unset

func (v *NullableCampaignScope) Unset()

type NullableCancelCode

type NullableCancelCode struct {
	// contains filtered or unexported fields
}

func NewNullableCancelCode

func NewNullableCancelCode(val *CancelCode) *NullableCancelCode

func (NullableCancelCode) Get

func (v NullableCancelCode) Get() *CancelCode

func (NullableCancelCode) IsSet

func (v NullableCancelCode) IsSet() bool

func (NullableCancelCode) MarshalJSON

func (v NullableCancelCode) MarshalJSON() ([]byte, error)

func (*NullableCancelCode) Set

func (v *NullableCancelCode) Set(val *CancelCode)

func (*NullableCancelCode) UnmarshalJSON

func (v *NullableCancelCode) UnmarshalJSON(src []byte) error

func (*NullableCancelCode) Unset

func (v *NullableCancelCode) Unset()

type NullableCancelOrderLimitType

type NullableCancelOrderLimitType struct {
	// contains filtered or unexported fields
}

func NewNullableCancelOrderLimitType

func NewNullableCancelOrderLimitType(val *CancelOrderLimitType) *NullableCancelOrderLimitType

func (NullableCancelOrderLimitType) Get

func (NullableCancelOrderLimitType) IsSet

func (NullableCancelOrderLimitType) MarshalJSON

func (v NullableCancelOrderLimitType) MarshalJSON() ([]byte, error)

func (*NullableCancelOrderLimitType) Set

func (*NullableCancelOrderLimitType) UnmarshalJSON

func (v *NullableCancelOrderLimitType) UnmarshalJSON(src []byte) error

func (*NullableCancelOrderLimitType) Unset

func (v *NullableCancelOrderLimitType) Unset()

type NullableCancelOrderRequest

type NullableCancelOrderRequest struct {
	// contains filtered or unexported fields
}

func NewNullableCancelOrderRequest

func NewNullableCancelOrderRequest(val *CancelOrderRequest) *NullableCancelOrderRequest

func (NullableCancelOrderRequest) Get

func (NullableCancelOrderRequest) IsSet

func (v NullableCancelOrderRequest) IsSet() bool

func (NullableCancelOrderRequest) MarshalJSON

func (v NullableCancelOrderRequest) MarshalJSON() ([]byte, error)

func (*NullableCancelOrderRequest) Set

func (*NullableCancelOrderRequest) UnmarshalJSON

func (v *NullableCancelOrderRequest) UnmarshalJSON(src []byte) error

func (*NullableCancelOrderRequest) Unset

func (v *NullableCancelOrderRequest) Unset()

type NullableCancelOrderResponse

type NullableCancelOrderResponse struct {
	// contains filtered or unexported fields
}

func NewNullableCancelOrderResponse

func NewNullableCancelOrderResponse(val *CancelOrderResponse) *NullableCancelOrderResponse

func (NullableCancelOrderResponse) Get

func (NullableCancelOrderResponse) IsSet

func (NullableCancelOrderResponse) MarshalJSON

func (v NullableCancelOrderResponse) MarshalJSON() ([]byte, error)

func (*NullableCancelOrderResponse) Set

func (*NullableCancelOrderResponse) UnmarshalJSON

func (v *NullableCancelOrderResponse) UnmarshalJSON(src []byte) error

func (*NullableCancelOrderResponse) Unset

func (v *NullableCancelOrderResponse) Unset()

type NullableCancelReason

type NullableCancelReason struct {
	// contains filtered or unexported fields
}

func NewNullableCancelReason

func NewNullableCancelReason(val *CancelReason) *NullableCancelReason

func (NullableCancelReason) Get

func (NullableCancelReason) IsSet

func (v NullableCancelReason) IsSet() bool

func (NullableCancelReason) MarshalJSON

func (v NullableCancelReason) MarshalJSON() ([]byte, error)

func (*NullableCancelReason) Set

func (v *NullableCancelReason) Set(val *CancelReason)

func (*NullableCancelReason) UnmarshalJSON

func (v *NullableCancelReason) UnmarshalJSON(src []byte) error

func (*NullableCancelReason) Unset

func (v *NullableCancelReason) Unset()

type NullableCheckOrderCancelableResponse

type NullableCheckOrderCancelableResponse struct {
	// contains filtered or unexported fields
}

func (NullableCheckOrderCancelableResponse) Get

func (NullableCheckOrderCancelableResponse) IsSet

func (NullableCheckOrderCancelableResponse) MarshalJSON

func (v NullableCheckOrderCancelableResponse) MarshalJSON() ([]byte, error)

func (*NullableCheckOrderCancelableResponse) Set

func (*NullableCheckOrderCancelableResponse) UnmarshalJSON

func (v *NullableCheckOrderCancelableResponse) UnmarshalJSON(src []byte) error

func (*NullableCheckOrderCancelableResponse) Unset

type NullableCoordinates

type NullableCoordinates struct {
	// contains filtered or unexported fields
}

func NewNullableCoordinates

func NewNullableCoordinates(val *Coordinates) *NullableCoordinates

func (NullableCoordinates) Get

func (NullableCoordinates) IsSet

func (v NullableCoordinates) IsSet() bool

func (NullableCoordinates) MarshalJSON

func (v NullableCoordinates) MarshalJSON() ([]byte, error)

func (*NullableCoordinates) Set

func (v *NullableCoordinates) Set(val *Coordinates)

func (*NullableCoordinates) UnmarshalJSON

func (v *NullableCoordinates) UnmarshalJSON(src []byte) error

func (*NullableCoordinates) Unset

func (v *NullableCoordinates) Unset()

type NullableCreateCampaignRequest

type NullableCreateCampaignRequest struct {
	// contains filtered or unexported fields
}

func (NullableCreateCampaignRequest) Get

func (NullableCreateCampaignRequest) IsSet

func (NullableCreateCampaignRequest) MarshalJSON

func (v NullableCreateCampaignRequest) MarshalJSON() ([]byte, error)

func (*NullableCreateCampaignRequest) Set

func (*NullableCreateCampaignRequest) UnmarshalJSON

func (v *NullableCreateCampaignRequest) UnmarshalJSON(src []byte) error

func (*NullableCreateCampaignRequest) Unset

func (v *NullableCreateCampaignRequest) Unset()

type NullableCreateCampaignResponse

type NullableCreateCampaignResponse struct {
	// contains filtered or unexported fields
}

func (NullableCreateCampaignResponse) Get

func (NullableCreateCampaignResponse) IsSet

func (NullableCreateCampaignResponse) MarshalJSON

func (v NullableCreateCampaignResponse) MarshalJSON() ([]byte, error)

func (*NullableCreateCampaignResponse) Set

func (*NullableCreateCampaignResponse) UnmarshalJSON

func (v *NullableCreateCampaignResponse) UnmarshalJSON(src []byte) error

func (*NullableCreateCampaignResponse) Unset

func (v *NullableCreateCampaignResponse) Unset()

type NullableCreateSelfServeJourneyRequest added in v1.0.1

type NullableCreateSelfServeJourneyRequest struct {
	// contains filtered or unexported fields
}

func NewNullableCreateSelfServeJourneyRequest added in v1.0.1

func NewNullableCreateSelfServeJourneyRequest(val *CreateSelfServeJourneyRequest) *NullableCreateSelfServeJourneyRequest

func (NullableCreateSelfServeJourneyRequest) Get added in v1.0.1

func (NullableCreateSelfServeJourneyRequest) IsSet added in v1.0.1

func (NullableCreateSelfServeJourneyRequest) MarshalJSON added in v1.0.1

func (v NullableCreateSelfServeJourneyRequest) MarshalJSON() ([]byte, error)

func (*NullableCreateSelfServeJourneyRequest) Set added in v1.0.1

func (*NullableCreateSelfServeJourneyRequest) UnmarshalJSON added in v1.0.1

func (v *NullableCreateSelfServeJourneyRequest) UnmarshalJSON(src []byte) error

func (*NullableCreateSelfServeJourneyRequest) Unset added in v1.0.1

type NullableCreateSelfServeJourneyRequestPartner added in v1.0.1

type NullableCreateSelfServeJourneyRequestPartner struct {
	// contains filtered or unexported fields
}

func NewNullableCreateSelfServeJourneyRequestPartner added in v1.0.1

func NewNullableCreateSelfServeJourneyRequestPartner(val *CreateSelfServeJourneyRequestPartner) *NullableCreateSelfServeJourneyRequestPartner

func (NullableCreateSelfServeJourneyRequestPartner) Get added in v1.0.1

func (NullableCreateSelfServeJourneyRequestPartner) IsSet added in v1.0.1

func (NullableCreateSelfServeJourneyRequestPartner) MarshalJSON added in v1.0.1

func (*NullableCreateSelfServeJourneyRequestPartner) Set added in v1.0.1

func (*NullableCreateSelfServeJourneyRequestPartner) UnmarshalJSON added in v1.0.1

func (*NullableCreateSelfServeJourneyRequestPartner) Unset added in v1.0.1

type NullableCreateSelfServeJourneyResponse added in v1.0.1

type NullableCreateSelfServeJourneyResponse struct {
	// contains filtered or unexported fields
}

func NewNullableCreateSelfServeJourneyResponse added in v1.0.1

func NewNullableCreateSelfServeJourneyResponse(val *CreateSelfServeJourneyResponse) *NullableCreateSelfServeJourneyResponse

func (NullableCreateSelfServeJourneyResponse) Get added in v1.0.1

func (NullableCreateSelfServeJourneyResponse) IsSet added in v1.0.1

func (NullableCreateSelfServeJourneyResponse) MarshalJSON added in v1.0.1

func (v NullableCreateSelfServeJourneyResponse) MarshalJSON() ([]byte, error)

func (*NullableCreateSelfServeJourneyResponse) Set added in v1.0.1

func (*NullableCreateSelfServeJourneyResponse) UnmarshalJSON added in v1.0.1

func (v *NullableCreateSelfServeJourneyResponse) UnmarshalJSON(src []byte) error

func (*NullableCreateSelfServeJourneyResponse) Unset added in v1.0.1

type NullableCurrency

type NullableCurrency struct {
	// contains filtered or unexported fields
}

func NewNullableCurrency

func NewNullableCurrency(val *Currency) *NullableCurrency

func (NullableCurrency) Get

func (v NullableCurrency) Get() *Currency

func (NullableCurrency) IsSet

func (v NullableCurrency) IsSet() bool

func (NullableCurrency) MarshalJSON

func (v NullableCurrency) MarshalJSON() ([]byte, error)

func (*NullableCurrency) Set

func (v *NullableCurrency) Set(val *Currency)

func (*NullableCurrency) UnmarshalJSON

func (v *NullableCurrency) UnmarshalJSON(src []byte) error

func (*NullableCurrency) Unset

func (v *NullableCurrency) Unset()

type NullableDineIn

type NullableDineIn struct {
	// contains filtered or unexported fields
}

func NewNullableDineIn

func NewNullableDineIn(val *DineIn) *NullableDineIn

func (NullableDineIn) Get

func (v NullableDineIn) Get() *DineIn

func (NullableDineIn) IsSet

func (v NullableDineIn) IsSet() bool

func (NullableDineIn) MarshalJSON

func (v NullableDineIn) MarshalJSON() ([]byte, error)

func (*NullableDineIn) Set

func (v *NullableDineIn) Set(val *DineIn)

func (*NullableDineIn) UnmarshalJSON

func (v *NullableDineIn) UnmarshalJSON(src []byte) error

func (*NullableDineIn) Unset

func (v *NullableDineIn) Unset()

type NullableEditOrderItem

type NullableEditOrderItem struct {
	// contains filtered or unexported fields
}

func NewNullableEditOrderItem

func NewNullableEditOrderItem(val *EditOrderItem) *NullableEditOrderItem

func (NullableEditOrderItem) Get

func (NullableEditOrderItem) IsSet

func (v NullableEditOrderItem) IsSet() bool

func (NullableEditOrderItem) MarshalJSON

func (v NullableEditOrderItem) MarshalJSON() ([]byte, error)

func (*NullableEditOrderItem) Set

func (v *NullableEditOrderItem) Set(val *EditOrderItem)

func (*NullableEditOrderItem) UnmarshalJSON

func (v *NullableEditOrderItem) UnmarshalJSON(src []byte) error

func (*NullableEditOrderItem) Unset

func (v *NullableEditOrderItem) Unset()

type NullableEditOrderRequest

type NullableEditOrderRequest struct {
	// contains filtered or unexported fields
}

func NewNullableEditOrderRequest

func NewNullableEditOrderRequest(val *EditOrderRequest) *NullableEditOrderRequest

func (NullableEditOrderRequest) Get

func (NullableEditOrderRequest) IsSet

func (v NullableEditOrderRequest) IsSet() bool

func (NullableEditOrderRequest) MarshalJSON

func (v NullableEditOrderRequest) MarshalJSON() ([]byte, error)

func (*NullableEditOrderRequest) Set

func (*NullableEditOrderRequest) UnmarshalJSON

func (v *NullableEditOrderRequest) UnmarshalJSON(src []byte) error

func (*NullableEditOrderRequest) Unset

func (v *NullableEditOrderRequest) Unset()

type NullableError

type NullableError struct {
	// contains filtered or unexported fields
}

func NewNullableError

func NewNullableError(val *Error) *NullableError

func (NullableError) Get

func (v NullableError) Get() *Error

func (NullableError) IsSet

func (v NullableError) IsSet() bool

func (NullableError) MarshalJSON

func (v NullableError) MarshalJSON() ([]byte, error)

func (*NullableError) Set

func (v *NullableError) Set(val *Error)

func (*NullableError) UnmarshalJSON

func (v *NullableError) UnmarshalJSON(src []byte) error

func (*NullableError) Unset

func (v *NullableError) Unset()

type NullableFloat32

type NullableFloat32 struct {
	// contains filtered or unexported fields
}

func NewNullableFloat32

func NewNullableFloat32(val *float32) *NullableFloat32

func (NullableFloat32) Get

func (v NullableFloat32) Get() *float32

func (NullableFloat32) IsSet

func (v NullableFloat32) IsSet() bool

func (NullableFloat32) MarshalJSON

func (v NullableFloat32) MarshalJSON() ([]byte, error)

func (*NullableFloat32) Set

func (v *NullableFloat32) Set(val *float32)

func (*NullableFloat32) UnmarshalJSON

func (v *NullableFloat32) UnmarshalJSON(src []byte) error

func (*NullableFloat32) Unset

func (v *NullableFloat32) Unset()

type NullableFloat64

type NullableFloat64 struct {
	// contains filtered or unexported fields
}

func NewNullableFloat64

func NewNullableFloat64(val *float64) *NullableFloat64

func (NullableFloat64) Get

func (v NullableFloat64) Get() *float64

func (NullableFloat64) IsSet

func (v NullableFloat64) IsSet() bool

func (NullableFloat64) MarshalJSON

func (v NullableFloat64) MarshalJSON() ([]byte, error)

func (*NullableFloat64) Set

func (v *NullableFloat64) Set(val *float64)

func (*NullableFloat64) UnmarshalJSON

func (v *NullableFloat64) UnmarshalJSON(src []byte) error

func (*NullableFloat64) Unset

func (v *NullableFloat64) Unset()

type NullableGetDineInVoucherResponse

type NullableGetDineInVoucherResponse struct {
	// contains filtered or unexported fields
}

func (NullableGetDineInVoucherResponse) Get

func (NullableGetDineInVoucherResponse) IsSet

func (NullableGetDineInVoucherResponse) MarshalJSON

func (v NullableGetDineInVoucherResponse) MarshalJSON() ([]byte, error)

func (*NullableGetDineInVoucherResponse) Set

func (*NullableGetDineInVoucherResponse) UnmarshalJSON

func (v *NullableGetDineInVoucherResponse) UnmarshalJSON(src []byte) error

func (*NullableGetDineInVoucherResponse) Unset

type NullableGetMembershipNativeResponse

type NullableGetMembershipNativeResponse struct {
	// contains filtered or unexported fields
}

func (NullableGetMembershipNativeResponse) Get

func (NullableGetMembershipNativeResponse) IsSet

func (NullableGetMembershipNativeResponse) MarshalJSON

func (v NullableGetMembershipNativeResponse) MarshalJSON() ([]byte, error)

func (*NullableGetMembershipNativeResponse) Set

func (*NullableGetMembershipNativeResponse) UnmarshalJSON

func (v *NullableGetMembershipNativeResponse) UnmarshalJSON(src []byte) error

func (*NullableGetMembershipNativeResponse) Unset

type NullableGetMembershipNativeResponsePointInfo

type NullableGetMembershipNativeResponsePointInfo struct {
	// contains filtered or unexported fields
}

func (NullableGetMembershipNativeResponsePointInfo) Get

func (NullableGetMembershipNativeResponsePointInfo) IsSet

func (NullableGetMembershipNativeResponsePointInfo) MarshalJSON

func (*NullableGetMembershipNativeResponsePointInfo) Set

func (*NullableGetMembershipNativeResponsePointInfo) UnmarshalJSON

func (*NullableGetMembershipNativeResponsePointInfo) Unset

type NullableGetMembershipRequest

type NullableGetMembershipRequest struct {
	// contains filtered or unexported fields
}

func NewNullableGetMembershipRequest

func NewNullableGetMembershipRequest(val *GetMembershipRequest) *NullableGetMembershipRequest

func (NullableGetMembershipRequest) Get

func (NullableGetMembershipRequest) IsSet

func (NullableGetMembershipRequest) MarshalJSON

func (v NullableGetMembershipRequest) MarshalJSON() ([]byte, error)

func (*NullableGetMembershipRequest) Set

func (*NullableGetMembershipRequest) UnmarshalJSON

func (v *NullableGetMembershipRequest) UnmarshalJSON(src []byte) error

func (*NullableGetMembershipRequest) Unset

func (v *NullableGetMembershipRequest) Unset()

type NullableGetMembershipWebviewResponse

type NullableGetMembershipWebviewResponse struct {
	// contains filtered or unexported fields
}

func (NullableGetMembershipWebviewResponse) Get

func (NullableGetMembershipWebviewResponse) IsSet

func (NullableGetMembershipWebviewResponse) MarshalJSON

func (v NullableGetMembershipWebviewResponse) MarshalJSON() ([]byte, error)

func (*NullableGetMembershipWebviewResponse) Set

func (*NullableGetMembershipWebviewResponse) UnmarshalJSON

func (v *NullableGetMembershipWebviewResponse) UnmarshalJSON(src []byte) error

func (*NullableGetMembershipWebviewResponse) Unset

type NullableGetMenuNewResponse

type NullableGetMenuNewResponse struct {
	// contains filtered or unexported fields
}

func NewNullableGetMenuNewResponse

func NewNullableGetMenuNewResponse(val *GetMenuNewResponse) *NullableGetMenuNewResponse

func (NullableGetMenuNewResponse) Get

func (NullableGetMenuNewResponse) IsSet

func (v NullableGetMenuNewResponse) IsSet() bool

func (NullableGetMenuNewResponse) MarshalJSON

func (v NullableGetMenuNewResponse) MarshalJSON() ([]byte, error)

func (*NullableGetMenuNewResponse) Set

func (*NullableGetMenuNewResponse) UnmarshalJSON

func (v *NullableGetMenuNewResponse) UnmarshalJSON(src []byte) error

func (*NullableGetMenuNewResponse) Unset

func (v *NullableGetMenuNewResponse) Unset()

type NullableGetMenuOldResponse

type NullableGetMenuOldResponse struct {
	// contains filtered or unexported fields
}

func NewNullableGetMenuOldResponse

func NewNullableGetMenuOldResponse(val *GetMenuOldResponse) *NullableGetMenuOldResponse

func (NullableGetMenuOldResponse) Get

func (NullableGetMenuOldResponse) IsSet

func (v NullableGetMenuOldResponse) IsSet() bool

func (NullableGetMenuOldResponse) MarshalJSON

func (v NullableGetMenuOldResponse) MarshalJSON() ([]byte, error)

func (*NullableGetMenuOldResponse) Set

func (*NullableGetMenuOldResponse) UnmarshalJSON

func (v *NullableGetMenuOldResponse) UnmarshalJSON(src []byte) error

func (*NullableGetMenuOldResponse) Unset

func (v *NullableGetMenuOldResponse) Unset()

type NullableGetRewardNativeRequest

type NullableGetRewardNativeRequest struct {
	// contains filtered or unexported fields
}

func (NullableGetRewardNativeRequest) Get

func (NullableGetRewardNativeRequest) IsSet

func (NullableGetRewardNativeRequest) MarshalJSON

func (v NullableGetRewardNativeRequest) MarshalJSON() ([]byte, error)

func (*NullableGetRewardNativeRequest) Set

func (*NullableGetRewardNativeRequest) UnmarshalJSON

func (v *NullableGetRewardNativeRequest) UnmarshalJSON(src []byte) error

func (*NullableGetRewardNativeRequest) Unset

func (v *NullableGetRewardNativeRequest) Unset()

type NullableGetRewardNativeResponse

type NullableGetRewardNativeResponse struct {
	// contains filtered or unexported fields
}

func (NullableGetRewardNativeResponse) Get

func (NullableGetRewardNativeResponse) IsSet

func (NullableGetRewardNativeResponse) MarshalJSON

func (v NullableGetRewardNativeResponse) MarshalJSON() ([]byte, error)

func (*NullableGetRewardNativeResponse) Set

func (*NullableGetRewardNativeResponse) UnmarshalJSON

func (v *NullableGetRewardNativeResponse) UnmarshalJSON(src []byte) error

func (*NullableGetRewardNativeResponse) Unset

type NullableGrabOauthRequest

type NullableGrabOauthRequest struct {
	// contains filtered or unexported fields
}

func NewNullableGrabOauthRequest

func NewNullableGrabOauthRequest(val *GrabOauthRequest) *NullableGrabOauthRequest

func (NullableGrabOauthRequest) Get

func (NullableGrabOauthRequest) IsSet

func (v NullableGrabOauthRequest) IsSet() bool

func (NullableGrabOauthRequest) MarshalJSON

func (v NullableGrabOauthRequest) MarshalJSON() ([]byte, error)

func (*NullableGrabOauthRequest) Set

func (*NullableGrabOauthRequest) UnmarshalJSON

func (v *NullableGrabOauthRequest) UnmarshalJSON(src []byte) error

func (*NullableGrabOauthRequest) Unset

func (v *NullableGrabOauthRequest) Unset()

type NullableGrabOauthResponse

type NullableGrabOauthResponse struct {
	// contains filtered or unexported fields
}

func NewNullableGrabOauthResponse

func NewNullableGrabOauthResponse(val *GrabOauthResponse) *NullableGrabOauthResponse

func (NullableGrabOauthResponse) Get

func (NullableGrabOauthResponse) IsSet

func (v NullableGrabOauthResponse) IsSet() bool

func (NullableGrabOauthResponse) MarshalJSON

func (v NullableGrabOauthResponse) MarshalJSON() ([]byte, error)

func (*NullableGrabOauthResponse) Set

func (*NullableGrabOauthResponse) UnmarshalJSON

func (v *NullableGrabOauthResponse) UnmarshalJSON(src []byte) error

func (*NullableGrabOauthResponse) Unset

func (v *NullableGrabOauthResponse) Unset()

type NullableInt

type NullableInt struct {
	// contains filtered or unexported fields
}

func NewNullableInt

func NewNullableInt(val *int) *NullableInt

func (NullableInt) Get

func (v NullableInt) Get() *int

func (NullableInt) IsSet

func (v NullableInt) IsSet() bool

func (NullableInt) MarshalJSON

func (v NullableInt) MarshalJSON() ([]byte, error)

func (*NullableInt) Set

func (v *NullableInt) Set(val *int)

func (*NullableInt) UnmarshalJSON

func (v *NullableInt) UnmarshalJSON(src []byte) error

func (*NullableInt) Unset

func (v *NullableInt) Unset()

type NullableInt32

type NullableInt32 struct {
	// contains filtered or unexported fields
}

func NewNullableInt32

func NewNullableInt32(val *int32) *NullableInt32

func (NullableInt32) Get

func (v NullableInt32) Get() *int32

func (NullableInt32) IsSet

func (v NullableInt32) IsSet() bool

func (NullableInt32) MarshalJSON

func (v NullableInt32) MarshalJSON() ([]byte, error)

func (*NullableInt32) Set

func (v *NullableInt32) Set(val *int32)

func (*NullableInt32) UnmarshalJSON

func (v *NullableInt32) UnmarshalJSON(src []byte) error

func (*NullableInt32) Unset

func (v *NullableInt32) Unset()

type NullableInt64

type NullableInt64 struct {
	// contains filtered or unexported fields
}

func NewNullableInt64

func NewNullableInt64(val *int64) *NullableInt64

func (NullableInt64) Get

func (v NullableInt64) Get() *int64

func (NullableInt64) IsSet

func (v NullableInt64) IsSet() bool

func (NullableInt64) MarshalJSON

func (v NullableInt64) MarshalJSON() ([]byte, error)

func (*NullableInt64) Set

func (v *NullableInt64) Set(val *int64)

func (*NullableInt64) UnmarshalJSON

func (v *NullableInt64) UnmarshalJSON(src []byte) error

func (*NullableInt64) Unset

func (v *NullableInt64) Unset()

type NullableListCampaignResponse

type NullableListCampaignResponse struct {
	// contains filtered or unexported fields
}

func NewNullableListCampaignResponse

func NewNullableListCampaignResponse(val *ListCampaignResponse) *NullableListCampaignResponse

func (NullableListCampaignResponse) Get

func (NullableListCampaignResponse) IsSet

func (NullableListCampaignResponse) MarshalJSON

func (v NullableListCampaignResponse) MarshalJSON() ([]byte, error)

func (*NullableListCampaignResponse) Set

func (*NullableListCampaignResponse) UnmarshalJSON

func (v *NullableListCampaignResponse) UnmarshalJSON(src []byte) error

func (*NullableListCampaignResponse) Unset

func (v *NullableListCampaignResponse) Unset()

type NullableListOrdersResponse

type NullableListOrdersResponse struct {
	// contains filtered or unexported fields
}

func NewNullableListOrdersResponse

func NewNullableListOrdersResponse(val *ListOrdersResponse) *NullableListOrdersResponse

func (NullableListOrdersResponse) Get

func (NullableListOrdersResponse) IsSet

func (v NullableListOrdersResponse) IsSet() bool

func (NullableListOrdersResponse) MarshalJSON

func (v NullableListOrdersResponse) MarshalJSON() ([]byte, error)

func (*NullableListOrdersResponse) Set

func (*NullableListOrdersResponse) UnmarshalJSON

func (v *NullableListOrdersResponse) UnmarshalJSON(src []byte) error

func (*NullableListOrdersResponse) Unset

func (v *NullableListOrdersResponse) Unset()

type NullableMarkOrderRequest

type NullableMarkOrderRequest struct {
	// contains filtered or unexported fields
}

func NewNullableMarkOrderRequest

func NewNullableMarkOrderRequest(val *MarkOrderRequest) *NullableMarkOrderRequest

func (NullableMarkOrderRequest) Get

func (NullableMarkOrderRequest) IsSet

func (v NullableMarkOrderRequest) IsSet() bool

func (NullableMarkOrderRequest) MarshalJSON

func (v NullableMarkOrderRequest) MarshalJSON() ([]byte, error)

func (*NullableMarkOrderRequest) Set

func (*NullableMarkOrderRequest) UnmarshalJSON

func (v *NullableMarkOrderRequest) UnmarshalJSON(src []byte) error

func (*NullableMarkOrderRequest) Unset

func (v *NullableMarkOrderRequest) Unset()

type NullableMenuCategory

type NullableMenuCategory struct {
	// contains filtered or unexported fields
}

func NewNullableMenuCategory

func NewNullableMenuCategory(val *MenuCategory) *NullableMenuCategory

func (NullableMenuCategory) Get

func (NullableMenuCategory) IsSet

func (v NullableMenuCategory) IsSet() bool

func (NullableMenuCategory) MarshalJSON

func (v NullableMenuCategory) MarshalJSON() ([]byte, error)

func (*NullableMenuCategory) Set

func (v *NullableMenuCategory) Set(val *MenuCategory)

func (*NullableMenuCategory) UnmarshalJSON

func (v *NullableMenuCategory) UnmarshalJSON(src []byte) error

func (*NullableMenuCategory) Unset

func (v *NullableMenuCategory) Unset()

type NullableMenuEntity

type NullableMenuEntity struct {
	// contains filtered or unexported fields
}

func NewNullableMenuEntity

func NewNullableMenuEntity(val *MenuEntity) *NullableMenuEntity

func (NullableMenuEntity) Get

func (v NullableMenuEntity) Get() *MenuEntity

func (NullableMenuEntity) IsSet

func (v NullableMenuEntity) IsSet() bool

func (NullableMenuEntity) MarshalJSON

func (v NullableMenuEntity) MarshalJSON() ([]byte, error)

func (*NullableMenuEntity) Set

func (v *NullableMenuEntity) Set(val *MenuEntity)

func (*NullableMenuEntity) UnmarshalJSON

func (v *NullableMenuEntity) UnmarshalJSON(src []byte) error

func (*NullableMenuEntity) Unset

func (v *NullableMenuEntity) Unset()

type NullableMenuEntityError

type NullableMenuEntityError struct {
	// contains filtered or unexported fields
}

func NewNullableMenuEntityError

func NewNullableMenuEntityError(val *MenuEntityError) *NullableMenuEntityError

func (NullableMenuEntityError) Get

func (NullableMenuEntityError) IsSet

func (v NullableMenuEntityError) IsSet() bool

func (NullableMenuEntityError) MarshalJSON

func (v NullableMenuEntityError) MarshalJSON() ([]byte, error)

func (*NullableMenuEntityError) Set

func (*NullableMenuEntityError) UnmarshalJSON

func (v *NullableMenuEntityError) UnmarshalJSON(src []byte) error

func (*NullableMenuEntityError) Unset

func (v *NullableMenuEntityError) Unset()

type NullableMenuItem

type NullableMenuItem struct {
	// contains filtered or unexported fields
}

func NewNullableMenuItem

func NewNullableMenuItem(val *MenuItem) *NullableMenuItem

func (NullableMenuItem) Get

func (v NullableMenuItem) Get() *MenuItem

func (NullableMenuItem) IsSet

func (v NullableMenuItem) IsSet() bool

func (NullableMenuItem) MarshalJSON

func (v NullableMenuItem) MarshalJSON() ([]byte, error)

func (*NullableMenuItem) Set

func (v *NullableMenuItem) Set(val *MenuItem)

func (*NullableMenuItem) UnmarshalJSON

func (v *NullableMenuItem) UnmarshalJSON(src []byte) error

func (*NullableMenuItem) Unset

func (v *NullableMenuItem) Unset()

type NullableMenuModifier

type NullableMenuModifier struct {
	// contains filtered or unexported fields
}

func NewNullableMenuModifier

func NewNullableMenuModifier(val *MenuModifier) *NullableMenuModifier

func (NullableMenuModifier) Get

func (NullableMenuModifier) IsSet

func (v NullableMenuModifier) IsSet() bool

func (NullableMenuModifier) MarshalJSON

func (v NullableMenuModifier) MarshalJSON() ([]byte, error)

func (*NullableMenuModifier) Set

func (v *NullableMenuModifier) Set(val *MenuModifier)

func (*NullableMenuModifier) UnmarshalJSON

func (v *NullableMenuModifier) UnmarshalJSON(src []byte) error

func (*NullableMenuModifier) Unset

func (v *NullableMenuModifier) Unset()

type NullableMenuSection

type NullableMenuSection struct {
	// contains filtered or unexported fields
}

func NewNullableMenuSection

func NewNullableMenuSection(val *MenuSection) *NullableMenuSection

func (NullableMenuSection) Get

func (NullableMenuSection) IsSet

func (v NullableMenuSection) IsSet() bool

func (NullableMenuSection) MarshalJSON

func (v NullableMenuSection) MarshalJSON() ([]byte, error)

func (*NullableMenuSection) Set

func (v *NullableMenuSection) Set(val *MenuSection)

func (*NullableMenuSection) UnmarshalJSON

func (v *NullableMenuSection) UnmarshalJSON(src []byte) error

func (*NullableMenuSection) Unset

func (v *NullableMenuSection) Unset()

type NullableMenuSectionCategory

type NullableMenuSectionCategory struct {
	// contains filtered or unexported fields
}

func NewNullableMenuSectionCategory

func NewNullableMenuSectionCategory(val *MenuSectionCategory) *NullableMenuSectionCategory

func (NullableMenuSectionCategory) Get

func (NullableMenuSectionCategory) IsSet

func (NullableMenuSectionCategory) MarshalJSON

func (v NullableMenuSectionCategory) MarshalJSON() ([]byte, error)

func (*NullableMenuSectionCategory) Set

func (*NullableMenuSectionCategory) UnmarshalJSON

func (v *NullableMenuSectionCategory) UnmarshalJSON(src []byte) error

func (*NullableMenuSectionCategory) Unset

func (v *NullableMenuSectionCategory) Unset()

type NullableMenuSectionCategoryItem

type NullableMenuSectionCategoryItem struct {
	// contains filtered or unexported fields
}

func (NullableMenuSectionCategoryItem) Get

func (NullableMenuSectionCategoryItem) IsSet

func (NullableMenuSectionCategoryItem) MarshalJSON

func (v NullableMenuSectionCategoryItem) MarshalJSON() ([]byte, error)

func (*NullableMenuSectionCategoryItem) Set

func (*NullableMenuSectionCategoryItem) UnmarshalJSON

func (v *NullableMenuSectionCategoryItem) UnmarshalJSON(src []byte) error

func (*NullableMenuSectionCategoryItem) Unset

type NullableMenuSyncFail

type NullableMenuSyncFail struct {
	// contains filtered or unexported fields
}

func NewNullableMenuSyncFail

func NewNullableMenuSyncFail(val *MenuSyncFail) *NullableMenuSyncFail

func (NullableMenuSyncFail) Get

func (NullableMenuSyncFail) IsSet

func (v NullableMenuSyncFail) IsSet() bool

func (NullableMenuSyncFail) MarshalJSON

func (v NullableMenuSyncFail) MarshalJSON() ([]byte, error)

func (*NullableMenuSyncFail) Set

func (v *NullableMenuSyncFail) Set(val *MenuSyncFail)

func (*NullableMenuSyncFail) UnmarshalJSON

func (v *NullableMenuSyncFail) UnmarshalJSON(src []byte) error

func (*NullableMenuSyncFail) Unset

func (v *NullableMenuSyncFail) Unset()

type NullableMenuSyncFailCategory

type NullableMenuSyncFailCategory struct {
	// contains filtered or unexported fields
}

func NewNullableMenuSyncFailCategory

func NewNullableMenuSyncFailCategory(val *MenuSyncFailCategory) *NullableMenuSyncFailCategory

func (NullableMenuSyncFailCategory) Get

func (NullableMenuSyncFailCategory) IsSet

func (NullableMenuSyncFailCategory) MarshalJSON

func (v NullableMenuSyncFailCategory) MarshalJSON() ([]byte, error)

func (*NullableMenuSyncFailCategory) Set

func (*NullableMenuSyncFailCategory) UnmarshalJSON

func (v *NullableMenuSyncFailCategory) UnmarshalJSON(src []byte) error

func (*NullableMenuSyncFailCategory) Unset

func (v *NullableMenuSyncFailCategory) Unset()

type NullableMenuSyncFailItem

type NullableMenuSyncFailItem struct {
	// contains filtered or unexported fields
}

func NewNullableMenuSyncFailItem

func NewNullableMenuSyncFailItem(val *MenuSyncFailItem) *NullableMenuSyncFailItem

func (NullableMenuSyncFailItem) Get

func (NullableMenuSyncFailItem) IsSet

func (v NullableMenuSyncFailItem) IsSet() bool

func (NullableMenuSyncFailItem) MarshalJSON

func (v NullableMenuSyncFailItem) MarshalJSON() ([]byte, error)

func (*NullableMenuSyncFailItem) Set

func (*NullableMenuSyncFailItem) UnmarshalJSON

func (v *NullableMenuSyncFailItem) UnmarshalJSON(src []byte) error

func (*NullableMenuSyncFailItem) Unset

func (v *NullableMenuSyncFailItem) Unset()

type NullableMenuSyncFailModifier

type NullableMenuSyncFailModifier struct {
	// contains filtered or unexported fields
}

func NewNullableMenuSyncFailModifier

func NewNullableMenuSyncFailModifier(val *MenuSyncFailModifier) *NullableMenuSyncFailModifier

func (NullableMenuSyncFailModifier) Get

func (NullableMenuSyncFailModifier) IsSet

func (NullableMenuSyncFailModifier) MarshalJSON

func (v NullableMenuSyncFailModifier) MarshalJSON() ([]byte, error)

func (*NullableMenuSyncFailModifier) Set

func (*NullableMenuSyncFailModifier) UnmarshalJSON

func (v *NullableMenuSyncFailModifier) UnmarshalJSON(src []byte) error

func (*NullableMenuSyncFailModifier) Unset

func (v *NullableMenuSyncFailModifier) Unset()

type NullableMenuSyncFailModifierGroup

type NullableMenuSyncFailModifierGroup struct {
	// contains filtered or unexported fields
}

func (NullableMenuSyncFailModifierGroup) Get

func (NullableMenuSyncFailModifierGroup) IsSet

func (NullableMenuSyncFailModifierGroup) MarshalJSON

func (v NullableMenuSyncFailModifierGroup) MarshalJSON() ([]byte, error)

func (*NullableMenuSyncFailModifierGroup) Set

func (*NullableMenuSyncFailModifierGroup) UnmarshalJSON

func (v *NullableMenuSyncFailModifierGroup) UnmarshalJSON(src []byte) error

func (*NullableMenuSyncFailModifierGroup) Unset

type NullableMenuSyncFailServiceHours

type NullableMenuSyncFailServiceHours struct {
	// contains filtered or unexported fields
}

func (NullableMenuSyncFailServiceHours) Get

func (NullableMenuSyncFailServiceHours) IsSet

func (NullableMenuSyncFailServiceHours) MarshalJSON

func (v NullableMenuSyncFailServiceHours) MarshalJSON() ([]byte, error)

func (*NullableMenuSyncFailServiceHours) Set

func (*NullableMenuSyncFailServiceHours) UnmarshalJSON

func (v *NullableMenuSyncFailServiceHours) UnmarshalJSON(src []byte) error

func (*NullableMenuSyncFailServiceHours) Unset

type NullableMenuSyncResponse

type NullableMenuSyncResponse struct {
	// contains filtered or unexported fields
}

func NewNullableMenuSyncResponse

func NewNullableMenuSyncResponse(val *MenuSyncResponse) *NullableMenuSyncResponse

func (NullableMenuSyncResponse) Get

func (NullableMenuSyncResponse) IsSet

func (v NullableMenuSyncResponse) IsSet() bool

func (NullableMenuSyncResponse) MarshalJSON

func (v NullableMenuSyncResponse) MarshalJSON() ([]byte, error)

func (*NullableMenuSyncResponse) Set

func (*NullableMenuSyncResponse) UnmarshalJSON

func (v *NullableMenuSyncResponse) UnmarshalJSON(src []byte) error

func (*NullableMenuSyncResponse) Unset

func (v *NullableMenuSyncResponse) Unset()

type NullableMenuSyncWebhookRequest

type NullableMenuSyncWebhookRequest struct {
	// contains filtered or unexported fields
}

func (NullableMenuSyncWebhookRequest) Get

func (NullableMenuSyncWebhookRequest) IsSet

func (NullableMenuSyncWebhookRequest) MarshalJSON

func (v NullableMenuSyncWebhookRequest) MarshalJSON() ([]byte, error)

func (*NullableMenuSyncWebhookRequest) Set

func (*NullableMenuSyncWebhookRequest) UnmarshalJSON

func (v *NullableMenuSyncWebhookRequest) UnmarshalJSON(src []byte) error

func (*NullableMenuSyncWebhookRequest) Unset

func (v *NullableMenuSyncWebhookRequest) Unset()

type NullableModifierGroup

type NullableModifierGroup struct {
	// contains filtered or unexported fields
}

func NewNullableModifierGroup

func NewNullableModifierGroup(val *ModifierGroup) *NullableModifierGroup

func (NullableModifierGroup) Get

func (NullableModifierGroup) IsSet

func (v NullableModifierGroup) IsSet() bool

func (NullableModifierGroup) MarshalJSON

func (v NullableModifierGroup) MarshalJSON() ([]byte, error)

func (*NullableModifierGroup) Set

func (v *NullableModifierGroup) Set(val *ModifierGroup)

func (*NullableModifierGroup) UnmarshalJSON

func (v *NullableModifierGroup) UnmarshalJSON(src []byte) error

func (*NullableModifierGroup) Unset

func (v *NullableModifierGroup) Unset()

type NullableNewOrderTimeRequest

type NullableNewOrderTimeRequest struct {
	// contains filtered or unexported fields
}

func NewNullableNewOrderTimeRequest

func NewNullableNewOrderTimeRequest(val *NewOrderTimeRequest) *NullableNewOrderTimeRequest

func (NullableNewOrderTimeRequest) Get

func (NullableNewOrderTimeRequest) IsSet

func (NullableNewOrderTimeRequest) MarshalJSON

func (v NullableNewOrderTimeRequest) MarshalJSON() ([]byte, error)

func (*NullableNewOrderTimeRequest) Set

func (*NullableNewOrderTimeRequest) UnmarshalJSON

func (v *NullableNewOrderTimeRequest) UnmarshalJSON(src []byte) error

func (*NullableNewOrderTimeRequest) Unset

func (v *NullableNewOrderTimeRequest) Unset()

type NullableNotifyMembershipWebviewRequest

type NullableNotifyMembershipWebviewRequest struct {
	// contains filtered or unexported fields
}

func (NullableNotifyMembershipWebviewRequest) Get

func (NullableNotifyMembershipWebviewRequest) IsSet

func (NullableNotifyMembershipWebviewRequest) MarshalJSON

func (v NullableNotifyMembershipWebviewRequest) MarshalJSON() ([]byte, error)

func (*NullableNotifyMembershipWebviewRequest) Set

func (*NullableNotifyMembershipWebviewRequest) UnmarshalJSON

func (v *NullableNotifyMembershipWebviewRequest) UnmarshalJSON(src []byte) error

func (*NullableNotifyMembershipWebviewRequest) Unset

type NullableOpenPeriod

type NullableOpenPeriod struct {
	// contains filtered or unexported fields
}

func NewNullableOpenPeriod

func NewNullableOpenPeriod(val *OpenPeriod) *NullableOpenPeriod

func (NullableOpenPeriod) Get

func (v NullableOpenPeriod) Get() *OpenPeriod

func (NullableOpenPeriod) IsSet

func (v NullableOpenPeriod) IsSet() bool

func (NullableOpenPeriod) MarshalJSON

func (v NullableOpenPeriod) MarshalJSON() ([]byte, error)

func (*NullableOpenPeriod) Set

func (v *NullableOpenPeriod) Set(val *OpenPeriod)

func (*NullableOpenPeriod) UnmarshalJSON

func (v *NullableOpenPeriod) UnmarshalJSON(src []byte) error

func (*NullableOpenPeriod) Unset

func (v *NullableOpenPeriod) Unset()

type NullableOrder

type NullableOrder struct {
	// contains filtered or unexported fields
}

func NewNullableOrder

func NewNullableOrder(val *Order) *NullableOrder

func (NullableOrder) Get

func (v NullableOrder) Get() *Order

func (NullableOrder) IsSet

func (v NullableOrder) IsSet() bool

func (NullableOrder) MarshalJSON

func (v NullableOrder) MarshalJSON() ([]byte, error)

func (*NullableOrder) Set

func (v *NullableOrder) Set(val *Order)

func (*NullableOrder) UnmarshalJSON

func (v *NullableOrder) UnmarshalJSON(src []byte) error

func (*NullableOrder) Unset

func (v *NullableOrder) Unset()

type NullableOrderCampaign

type NullableOrderCampaign struct {
	// contains filtered or unexported fields
}

func NewNullableOrderCampaign

func NewNullableOrderCampaign(val *OrderCampaign) *NullableOrderCampaign

func (NullableOrderCampaign) Get

func (NullableOrderCampaign) IsSet

func (v NullableOrderCampaign) IsSet() bool

func (NullableOrderCampaign) MarshalJSON

func (v NullableOrderCampaign) MarshalJSON() ([]byte, error)

func (*NullableOrderCampaign) Set

func (v *NullableOrderCampaign) Set(val *OrderCampaign)

func (*NullableOrderCampaign) UnmarshalJSON

func (v *NullableOrderCampaign) UnmarshalJSON(src []byte) error

func (*NullableOrderCampaign) Unset

func (v *NullableOrderCampaign) Unset()

type NullableOrderDeliveryRequest

type NullableOrderDeliveryRequest struct {
	// contains filtered or unexported fields
}

func NewNullableOrderDeliveryRequest

func NewNullableOrderDeliveryRequest(val *OrderDeliveryRequest) *NullableOrderDeliveryRequest

func (NullableOrderDeliveryRequest) Get

func (NullableOrderDeliveryRequest) IsSet

func (NullableOrderDeliveryRequest) MarshalJSON

func (v NullableOrderDeliveryRequest) MarshalJSON() ([]byte, error)

func (*NullableOrderDeliveryRequest) Set

func (*NullableOrderDeliveryRequest) UnmarshalJSON

func (v *NullableOrderDeliveryRequest) UnmarshalJSON(src []byte) error

func (*NullableOrderDeliveryRequest) Unset

func (v *NullableOrderDeliveryRequest) Unset()

type NullableOrderFeatureFlags

type NullableOrderFeatureFlags struct {
	// contains filtered or unexported fields
}

func NewNullableOrderFeatureFlags

func NewNullableOrderFeatureFlags(val *OrderFeatureFlags) *NullableOrderFeatureFlags

func (NullableOrderFeatureFlags) Get

func (NullableOrderFeatureFlags) IsSet

func (v NullableOrderFeatureFlags) IsSet() bool

func (NullableOrderFeatureFlags) MarshalJSON

func (v NullableOrderFeatureFlags) MarshalJSON() ([]byte, error)

func (*NullableOrderFeatureFlags) Set

func (*NullableOrderFeatureFlags) UnmarshalJSON

func (v *NullableOrderFeatureFlags) UnmarshalJSON(src []byte) error

func (*NullableOrderFeatureFlags) Unset

func (v *NullableOrderFeatureFlags) Unset()

type NullableOrderFreeItem

type NullableOrderFreeItem struct {
	// contains filtered or unexported fields
}

func NewNullableOrderFreeItem

func NewNullableOrderFreeItem(val *OrderFreeItem) *NullableOrderFreeItem

func (NullableOrderFreeItem) Get

func (NullableOrderFreeItem) IsSet

func (v NullableOrderFreeItem) IsSet() bool

func (NullableOrderFreeItem) MarshalJSON

func (v NullableOrderFreeItem) MarshalJSON() ([]byte, error)

func (*NullableOrderFreeItem) Set

func (v *NullableOrderFreeItem) Set(val *OrderFreeItem)

func (*NullableOrderFreeItem) UnmarshalJSON

func (v *NullableOrderFreeItem) UnmarshalJSON(src []byte) error

func (*NullableOrderFreeItem) Unset

func (v *NullableOrderFreeItem) Unset()

type NullableOrderItem

type NullableOrderItem struct {
	// contains filtered or unexported fields
}

func NewNullableOrderItem

func NewNullableOrderItem(val *OrderItem) *NullableOrderItem

func (NullableOrderItem) Get

func (v NullableOrderItem) Get() *OrderItem

func (NullableOrderItem) IsSet

func (v NullableOrderItem) IsSet() bool

func (NullableOrderItem) MarshalJSON

func (v NullableOrderItem) MarshalJSON() ([]byte, error)

func (*NullableOrderItem) Set

func (v *NullableOrderItem) Set(val *OrderItem)

func (*NullableOrderItem) UnmarshalJSON

func (v *NullableOrderItem) UnmarshalJSON(src []byte) error

func (*NullableOrderItem) Unset

func (v *NullableOrderItem) Unset()

type NullableOrderItemModifier

type NullableOrderItemModifier struct {
	// contains filtered or unexported fields
}

func NewNullableOrderItemModifier

func NewNullableOrderItemModifier(val *OrderItemModifier) *NullableOrderItemModifier

func (NullableOrderItemModifier) Get

func (NullableOrderItemModifier) IsSet

func (v NullableOrderItemModifier) IsSet() bool

func (NullableOrderItemModifier) MarshalJSON

func (v NullableOrderItemModifier) MarshalJSON() ([]byte, error)

func (*NullableOrderItemModifier) Set

func (*NullableOrderItemModifier) UnmarshalJSON

func (v *NullableOrderItemModifier) UnmarshalJSON(src []byte) error

func (*NullableOrderItemModifier) Unset

func (v *NullableOrderItemModifier) Unset()

type NullableOrderPrice

type NullableOrderPrice struct {
	// contains filtered or unexported fields
}

func NewNullableOrderPrice

func NewNullableOrderPrice(val *OrderPrice) *NullableOrderPrice

func (NullableOrderPrice) Get

func (v NullableOrderPrice) Get() *OrderPrice

func (NullableOrderPrice) IsSet

func (v NullableOrderPrice) IsSet() bool

func (NullableOrderPrice) MarshalJSON

func (v NullableOrderPrice) MarshalJSON() ([]byte, error)

func (*NullableOrderPrice) Set

func (v *NullableOrderPrice) Set(val *OrderPrice)

func (*NullableOrderPrice) UnmarshalJSON

func (v *NullableOrderPrice) UnmarshalJSON(src []byte) error

func (*NullableOrderPrice) Unset

func (v *NullableOrderPrice) Unset()

type NullableOrderPromo

type NullableOrderPromo struct {
	// contains filtered or unexported fields
}

func NewNullableOrderPromo

func NewNullableOrderPromo(val *OrderPromo) *NullableOrderPromo

func (NullableOrderPromo) Get

func (v NullableOrderPromo) Get() *OrderPromo

func (NullableOrderPromo) IsSet

func (v NullableOrderPromo) IsSet() bool

func (NullableOrderPromo) MarshalJSON

func (v NullableOrderPromo) MarshalJSON() ([]byte, error)

func (*NullableOrderPromo) Set

func (v *NullableOrderPromo) Set(val *OrderPromo)

func (*NullableOrderPromo) UnmarshalJSON

func (v *NullableOrderPromo) UnmarshalJSON(src []byte) error

func (*NullableOrderPromo) Unset

func (v *NullableOrderPromo) Unset()

type NullableOrderReadyEstimation

type NullableOrderReadyEstimation struct {
	// contains filtered or unexported fields
}

func NewNullableOrderReadyEstimation

func NewNullableOrderReadyEstimation(val *OrderReadyEstimation) *NullableOrderReadyEstimation

func (NullableOrderReadyEstimation) Get

func (NullableOrderReadyEstimation) IsSet

func (NullableOrderReadyEstimation) MarshalJSON

func (v NullableOrderReadyEstimation) MarshalJSON() ([]byte, error)

func (*NullableOrderReadyEstimation) Set

func (*NullableOrderReadyEstimation) UnmarshalJSON

func (v *NullableOrderReadyEstimation) UnmarshalJSON(src []byte) error

func (*NullableOrderReadyEstimation) Unset

func (v *NullableOrderReadyEstimation) Unset()

type NullableOrderStateRequest

type NullableOrderStateRequest struct {
	// contains filtered or unexported fields
}

func NewNullableOrderStateRequest

func NewNullableOrderStateRequest(val *OrderStateRequest) *NullableOrderStateRequest

func (NullableOrderStateRequest) Get

func (NullableOrderStateRequest) IsSet

func (v NullableOrderStateRequest) IsSet() bool

func (NullableOrderStateRequest) MarshalJSON

func (v NullableOrderStateRequest) MarshalJSON() ([]byte, error)

func (*NullableOrderStateRequest) Set

func (*NullableOrderStateRequest) UnmarshalJSON

func (v *NullableOrderStateRequest) UnmarshalJSON(src []byte) error

func (*NullableOrderStateRequest) Unset

func (v *NullableOrderStateRequest) Unset()

type NullableOutOfStockInstruction

type NullableOutOfStockInstruction struct {
	// contains filtered or unexported fields
}

func (NullableOutOfStockInstruction) Get

func (NullableOutOfStockInstruction) IsSet

func (NullableOutOfStockInstruction) MarshalJSON

func (v NullableOutOfStockInstruction) MarshalJSON() ([]byte, error)

func (*NullableOutOfStockInstruction) Set

func (*NullableOutOfStockInstruction) UnmarshalJSON

func (v *NullableOutOfStockInstruction) UnmarshalJSON(src []byte) error

func (*NullableOutOfStockInstruction) Unset

func (v *NullableOutOfStockInstruction) Unset()

type NullablePartnerOauthRequest

type NullablePartnerOauthRequest struct {
	// contains filtered or unexported fields
}

func NewNullablePartnerOauthRequest

func NewNullablePartnerOauthRequest(val *PartnerOauthRequest) *NullablePartnerOauthRequest

func (NullablePartnerOauthRequest) Get

func (NullablePartnerOauthRequest) IsSet

func (NullablePartnerOauthRequest) MarshalJSON

func (v NullablePartnerOauthRequest) MarshalJSON() ([]byte, error)

func (*NullablePartnerOauthRequest) Set

func (*NullablePartnerOauthRequest) UnmarshalJSON

func (v *NullablePartnerOauthRequest) UnmarshalJSON(src []byte) error

func (*NullablePartnerOauthRequest) Unset

func (v *NullablePartnerOauthRequest) Unset()

type NullablePartnerOauthResponse

type NullablePartnerOauthResponse struct {
	// contains filtered or unexported fields
}

func NewNullablePartnerOauthResponse

func NewNullablePartnerOauthResponse(val *PartnerOauthResponse) *NullablePartnerOauthResponse

func (NullablePartnerOauthResponse) Get

func (NullablePartnerOauthResponse) IsSet

func (NullablePartnerOauthResponse) MarshalJSON

func (v NullablePartnerOauthResponse) MarshalJSON() ([]byte, error)

func (*NullablePartnerOauthResponse) Set

func (*NullablePartnerOauthResponse) UnmarshalJSON

func (v *NullablePartnerOauthResponse) UnmarshalJSON(src []byte) error

func (*NullablePartnerOauthResponse) Unset

func (v *NullablePartnerOauthResponse) Unset()

type NullablePauseStoreRequest

type NullablePauseStoreRequest struct {
	// contains filtered or unexported fields
}

func NewNullablePauseStoreRequest

func NewNullablePauseStoreRequest(val *PauseStoreRequest) *NullablePauseStoreRequest

func (NullablePauseStoreRequest) Get

func (NullablePauseStoreRequest) IsSet

func (v NullablePauseStoreRequest) IsSet() bool

func (NullablePauseStoreRequest) MarshalJSON

func (v NullablePauseStoreRequest) MarshalJSON() ([]byte, error)

func (*NullablePauseStoreRequest) Set

func (*NullablePauseStoreRequest) UnmarshalJSON

func (v *NullablePauseStoreRequest) UnmarshalJSON(src []byte) error

func (*NullablePauseStoreRequest) Unset

func (v *NullablePauseStoreRequest) Unset()

type NullablePurchasability

type NullablePurchasability struct {
	// contains filtered or unexported fields
}

func NewNullablePurchasability

func NewNullablePurchasability(val *Purchasability) *NullablePurchasability

func (NullablePurchasability) Get

func (NullablePurchasability) IsSet

func (v NullablePurchasability) IsSet() bool

func (NullablePurchasability) MarshalJSON

func (v NullablePurchasability) MarshalJSON() ([]byte, error)

func (*NullablePurchasability) Set

func (*NullablePurchasability) UnmarshalJSON

func (v *NullablePurchasability) UnmarshalJSON(src []byte) error

func (*NullablePurchasability) Unset

func (v *NullablePurchasability) Unset()

type NullablePushIntegrationStatusWebhookRequest added in v1.0.1

type NullablePushIntegrationStatusWebhookRequest struct {
	// contains filtered or unexported fields
}

func NewNullablePushIntegrationStatusWebhookRequest added in v1.0.1

func NewNullablePushIntegrationStatusWebhookRequest(val *PushIntegrationStatusWebhookRequest) *NullablePushIntegrationStatusWebhookRequest

func (NullablePushIntegrationStatusWebhookRequest) Get added in v1.0.1

func (NullablePushIntegrationStatusWebhookRequest) IsSet added in v1.0.1

func (NullablePushIntegrationStatusWebhookRequest) MarshalJSON added in v1.0.1

func (*NullablePushIntegrationStatusWebhookRequest) Set added in v1.0.1

func (*NullablePushIntegrationStatusWebhookRequest) UnmarshalJSON added in v1.0.1

func (v *NullablePushIntegrationStatusWebhookRequest) UnmarshalJSON(src []byte) error

func (*NullablePushIntegrationStatusWebhookRequest) Unset added in v1.0.1

type NullableReceiver

type NullableReceiver struct {
	// contains filtered or unexported fields
}

func NewNullableReceiver

func NewNullableReceiver(val *Receiver) *NullableReceiver

func (NullableReceiver) Get

func (v NullableReceiver) Get() *Receiver

func (NullableReceiver) IsSet

func (v NullableReceiver) IsSet() bool

func (NullableReceiver) MarshalJSON

func (v NullableReceiver) MarshalJSON() ([]byte, error)

func (*NullableReceiver) Set

func (v *NullableReceiver) Set(val *Receiver)

func (*NullableReceiver) UnmarshalJSON

func (v *NullableReceiver) UnmarshalJSON(src []byte) error

func (*NullableReceiver) Unset

func (v *NullableReceiver) Unset()

type NullableRedeemDineInVoucherRequest

type NullableRedeemDineInVoucherRequest struct {
	// contains filtered or unexported fields
}

func (NullableRedeemDineInVoucherRequest) Get

func (NullableRedeemDineInVoucherRequest) IsSet

func (NullableRedeemDineInVoucherRequest) MarshalJSON

func (v NullableRedeemDineInVoucherRequest) MarshalJSON() ([]byte, error)

func (*NullableRedeemDineInVoucherRequest) Set

func (*NullableRedeemDineInVoucherRequest) UnmarshalJSON

func (v *NullableRedeemDineInVoucherRequest) UnmarshalJSON(src []byte) error

func (*NullableRedeemDineInVoucherRequest) Unset

type NullableRedeemDineInVoucherResponse

type NullableRedeemDineInVoucherResponse struct {
	// contains filtered or unexported fields
}

func (NullableRedeemDineInVoucherResponse) Get

func (NullableRedeemDineInVoucherResponse) IsSet

func (NullableRedeemDineInVoucherResponse) MarshalJSON

func (v NullableRedeemDineInVoucherResponse) MarshalJSON() ([]byte, error)

func (*NullableRedeemDineInVoucherResponse) Set

func (*NullableRedeemDineInVoucherResponse) UnmarshalJSON

func (v *NullableRedeemDineInVoucherResponse) UnmarshalJSON(src []byte) error

func (*NullableRedeemDineInVoucherResponse) Unset

type NullableRedeemResult

type NullableRedeemResult struct {
	// contains filtered or unexported fields
}

func NewNullableRedeemResult

func NewNullableRedeemResult(val *RedeemResult) *NullableRedeemResult

func (NullableRedeemResult) Get

func (NullableRedeemResult) IsSet

func (v NullableRedeemResult) IsSet() bool

func (NullableRedeemResult) MarshalJSON

func (v NullableRedeemResult) MarshalJSON() ([]byte, error)

func (*NullableRedeemResult) Set

func (v *NullableRedeemResult) Set(val *RedeemResult)

func (*NullableRedeemResult) UnmarshalJSON

func (v *NullableRedeemResult) UnmarshalJSON(src []byte) error

func (*NullableRedeemResult) Unset

func (v *NullableRedeemResult) Unset()

type NullableRegisterMembershipNativeRequest

type NullableRegisterMembershipNativeRequest struct {
	// contains filtered or unexported fields
}

func (NullableRegisterMembershipNativeRequest) Get

func (NullableRegisterMembershipNativeRequest) IsSet

func (NullableRegisterMembershipNativeRequest) MarshalJSON

func (v NullableRegisterMembershipNativeRequest) MarshalJSON() ([]byte, error)

func (*NullableRegisterMembershipNativeRequest) Set

func (*NullableRegisterMembershipNativeRequest) UnmarshalJSON

func (v *NullableRegisterMembershipNativeRequest) UnmarshalJSON(src []byte) error

func (*NullableRegisterMembershipNativeRequest) Unset

type NullableRegisterMembershipNativeResponse

type NullableRegisterMembershipNativeResponse struct {
	// contains filtered or unexported fields
}

func (NullableRegisterMembershipNativeResponse) Get

func (NullableRegisterMembershipNativeResponse) IsSet

func (NullableRegisterMembershipNativeResponse) MarshalJSON

func (*NullableRegisterMembershipNativeResponse) Set

func (*NullableRegisterMembershipNativeResponse) UnmarshalJSON

func (v *NullableRegisterMembershipNativeResponse) UnmarshalJSON(src []byte) error

func (*NullableRegisterMembershipNativeResponse) Unset

type NullableRewardItem

type NullableRewardItem struct {
	// contains filtered or unexported fields
}

func NewNullableRewardItem

func NewNullableRewardItem(val *RewardItem) *NullableRewardItem

func (NullableRewardItem) Get

func (v NullableRewardItem) Get() *RewardItem

func (NullableRewardItem) IsSet

func (v NullableRewardItem) IsSet() bool

func (NullableRewardItem) MarshalJSON

func (v NullableRewardItem) MarshalJSON() ([]byte, error)

func (*NullableRewardItem) Set

func (v *NullableRewardItem) Set(val *RewardItem)

func (*NullableRewardItem) UnmarshalJSON

func (v *NullableRewardItem) UnmarshalJSON(src []byte) error

func (*NullableRewardItem) Unset

func (v *NullableRewardItem) Unset()

type NullableSellingTime

type NullableSellingTime struct {
	// contains filtered or unexported fields
}

func NewNullableSellingTime

func NewNullableSellingTime(val *SellingTime) *NullableSellingTime

func (NullableSellingTime) Get

func (NullableSellingTime) IsSet

func (v NullableSellingTime) IsSet() bool

func (NullableSellingTime) MarshalJSON

func (v NullableSellingTime) MarshalJSON() ([]byte, error)

func (*NullableSellingTime) Set

func (v *NullableSellingTime) Set(val *SellingTime)

func (*NullableSellingTime) UnmarshalJSON

func (v *NullableSellingTime) UnmarshalJSON(src []byte) error

func (*NullableSellingTime) Unset

func (v *NullableSellingTime) Unset()

type NullableServiceHour

type NullableServiceHour struct {
	// contains filtered or unexported fields
}

func NewNullableServiceHour

func NewNullableServiceHour(val *ServiceHour) *NullableServiceHour

func (NullableServiceHour) Get

func (NullableServiceHour) IsSet

func (v NullableServiceHour) IsSet() bool

func (NullableServiceHour) MarshalJSON

func (v NullableServiceHour) MarshalJSON() ([]byte, error)

func (*NullableServiceHour) Set

func (v *NullableServiceHour) Set(val *ServiceHour)

func (*NullableServiceHour) UnmarshalJSON

func (v *NullableServiceHour) UnmarshalJSON(src []byte) error

func (*NullableServiceHour) Unset

func (v *NullableServiceHour) Unset()

type NullableServiceHours

type NullableServiceHours struct {
	// contains filtered or unexported fields
}

func NewNullableServiceHours

func NewNullableServiceHours(val *ServiceHours) *NullableServiceHours

func (NullableServiceHours) Get

func (NullableServiceHours) IsSet

func (v NullableServiceHours) IsSet() bool

func (NullableServiceHours) MarshalJSON

func (v NullableServiceHours) MarshalJSON() ([]byte, error)

func (*NullableServiceHours) Set

func (v *NullableServiceHours) Set(val *ServiceHours)

func (*NullableServiceHours) UnmarshalJSON

func (v *NullableServiceHours) UnmarshalJSON(src []byte) error

func (*NullableServiceHours) Unset

func (v *NullableServiceHours) Unset()

type NullableSpecialOpeningHour

type NullableSpecialOpeningHour struct {
	// contains filtered or unexported fields
}

func NewNullableSpecialOpeningHour

func NewNullableSpecialOpeningHour(val *SpecialOpeningHour) *NullableSpecialOpeningHour

func (NullableSpecialOpeningHour) Get

func (NullableSpecialOpeningHour) IsSet

func (v NullableSpecialOpeningHour) IsSet() bool

func (NullableSpecialOpeningHour) MarshalJSON

func (v NullableSpecialOpeningHour) MarshalJSON() ([]byte, error)

func (*NullableSpecialOpeningHour) Set

func (*NullableSpecialOpeningHour) UnmarshalJSON

func (v *NullableSpecialOpeningHour) UnmarshalJSON(src []byte) error

func (*NullableSpecialOpeningHour) Unset

func (v *NullableSpecialOpeningHour) Unset()

type NullableSpecialOpeningHourMetadata

type NullableSpecialOpeningHourMetadata struct {
	// contains filtered or unexported fields
}

func (NullableSpecialOpeningHourMetadata) Get

func (NullableSpecialOpeningHourMetadata) IsSet

func (NullableSpecialOpeningHourMetadata) MarshalJSON

func (v NullableSpecialOpeningHourMetadata) MarshalJSON() ([]byte, error)

func (*NullableSpecialOpeningHourMetadata) Set

func (*NullableSpecialOpeningHourMetadata) UnmarshalJSON

func (v *NullableSpecialOpeningHourMetadata) UnmarshalJSON(src []byte) error

func (*NullableSpecialOpeningHourMetadata) Unset

type NullableSpecialOpeningHourOpeningHours

type NullableSpecialOpeningHourOpeningHours struct {
	// contains filtered or unexported fields
}

func (NullableSpecialOpeningHourOpeningHours) Get

func (NullableSpecialOpeningHourOpeningHours) IsSet

func (NullableSpecialOpeningHourOpeningHours) MarshalJSON

func (v NullableSpecialOpeningHourOpeningHours) MarshalJSON() ([]byte, error)

func (*NullableSpecialOpeningHourOpeningHours) Set

func (*NullableSpecialOpeningHourOpeningHours) UnmarshalJSON

func (v *NullableSpecialOpeningHourOpeningHours) UnmarshalJSON(src []byte) error

func (*NullableSpecialOpeningHourOpeningHours) Unset

type NullableStoreHour

type NullableStoreHour struct {
	// contains filtered or unexported fields
}

func NewNullableStoreHour

func NewNullableStoreHour(val *StoreHour) *NullableStoreHour

func (NullableStoreHour) Get

func (v NullableStoreHour) Get() *StoreHour

func (NullableStoreHour) IsSet

func (v NullableStoreHour) IsSet() bool

func (NullableStoreHour) MarshalJSON

func (v NullableStoreHour) MarshalJSON() ([]byte, error)

func (*NullableStoreHour) Set

func (v *NullableStoreHour) Set(val *StoreHour)

func (*NullableStoreHour) UnmarshalJSON

func (v *NullableStoreHour) UnmarshalJSON(src []byte) error

func (*NullableStoreHour) Unset

func (v *NullableStoreHour) Unset()

type NullableStoreHourResponse

type NullableStoreHourResponse struct {
	// contains filtered or unexported fields
}

func NewNullableStoreHourResponse

func NewNullableStoreHourResponse(val *StoreHourResponse) *NullableStoreHourResponse

func (NullableStoreHourResponse) Get

func (NullableStoreHourResponse) IsSet

func (v NullableStoreHourResponse) IsSet() bool

func (NullableStoreHourResponse) MarshalJSON

func (v NullableStoreHourResponse) MarshalJSON() ([]byte, error)

func (*NullableStoreHourResponse) Set

func (*NullableStoreHourResponse) UnmarshalJSON

func (v *NullableStoreHourResponse) UnmarshalJSON(src []byte) error

func (*NullableStoreHourResponse) Unset

func (v *NullableStoreHourResponse) Unset()

type NullableStoreStatusResponse

type NullableStoreStatusResponse struct {
	// contains filtered or unexported fields
}

func NewNullableStoreStatusResponse

func NewNullableStoreStatusResponse(val *StoreStatusResponse) *NullableStoreStatusResponse

func (NullableStoreStatusResponse) Get

func (NullableStoreStatusResponse) IsSet

func (NullableStoreStatusResponse) MarshalJSON

func (v NullableStoreStatusResponse) MarshalJSON() ([]byte, error)

func (*NullableStoreStatusResponse) Set

func (*NullableStoreStatusResponse) UnmarshalJSON

func (v *NullableStoreStatusResponse) UnmarshalJSON(src []byte) error

func (*NullableStoreStatusResponse) Unset

func (v *NullableStoreStatusResponse) Unset()

type NullableString

type NullableString struct {
	// contains filtered or unexported fields
}

func NewNullableString

func NewNullableString(val *string) *NullableString

func (NullableString) Get

func (v NullableString) Get() *string

func (NullableString) IsSet

func (v NullableString) IsSet() bool

func (NullableString) MarshalJSON

func (v NullableString) MarshalJSON() ([]byte, error)

func (*NullableString) Set

func (v *NullableString) Set(val *string)

func (*NullableString) UnmarshalJSON

func (v *NullableString) UnmarshalJSON(src []byte) error

func (*NullableString) Unset

func (v *NullableString) Unset()

type NullableSubmitOrderRequest

type NullableSubmitOrderRequest struct {
	// contains filtered or unexported fields
}

func NewNullableSubmitOrderRequest

func NewNullableSubmitOrderRequest(val *SubmitOrderRequest) *NullableSubmitOrderRequest

func (NullableSubmitOrderRequest) Get

func (NullableSubmitOrderRequest) IsSet

func (v NullableSubmitOrderRequest) IsSet() bool

func (NullableSubmitOrderRequest) MarshalJSON

func (v NullableSubmitOrderRequest) MarshalJSON() ([]byte, error)

func (*NullableSubmitOrderRequest) Set

func (*NullableSubmitOrderRequest) UnmarshalJSON

func (v *NullableSubmitOrderRequest) UnmarshalJSON(src []byte) error

func (*NullableSubmitOrderRequest) Unset

func (v *NullableSubmitOrderRequest) Unset()

type NullableTime

type NullableTime struct {
	// contains filtered or unexported fields
}

func NewNullableTime

func NewNullableTime(val *time.Time) *NullableTime

func (NullableTime) Get

func (v NullableTime) Get() *time.Time

func (NullableTime) IsSet

func (v NullableTime) IsSet() bool

func (NullableTime) MarshalJSON

func (v NullableTime) MarshalJSON() ([]byte, error)

func (*NullableTime) Set

func (v *NullableTime) Set(val *time.Time)

func (*NullableTime) UnmarshalJSON

func (v *NullableTime) UnmarshalJSON(src []byte) error

func (*NullableTime) Unset

func (v *NullableTime) Unset()

type NullableUnbindMembershipNativeRequest

type NullableUnbindMembershipNativeRequest struct {
	// contains filtered or unexported fields
}

func (NullableUnbindMembershipNativeRequest) Get

func (NullableUnbindMembershipNativeRequest) IsSet

func (NullableUnbindMembershipNativeRequest) MarshalJSON

func (v NullableUnbindMembershipNativeRequest) MarshalJSON() ([]byte, error)

func (*NullableUnbindMembershipNativeRequest) Set

func (*NullableUnbindMembershipNativeRequest) UnmarshalJSON

func (v *NullableUnbindMembershipNativeRequest) UnmarshalJSON(src []byte) error

func (*NullableUnbindMembershipNativeRequest) Unset

type NullableUnlinkMembershipWebviewRequest

type NullableUnlinkMembershipWebviewRequest struct {
	// contains filtered or unexported fields
}

func (NullableUnlinkMembershipWebviewRequest) Get

func (NullableUnlinkMembershipWebviewRequest) IsSet

func (NullableUnlinkMembershipWebviewRequest) MarshalJSON

func (v NullableUnlinkMembershipWebviewRequest) MarshalJSON() ([]byte, error)

func (*NullableUnlinkMembershipWebviewRequest) Set

func (*NullableUnlinkMembershipWebviewRequest) UnmarshalJSON

func (v *NullableUnlinkMembershipWebviewRequest) UnmarshalJSON(src []byte) error

func (*NullableUnlinkMembershipWebviewRequest) Unset

type NullableUpdateAdvancedPricing

type NullableUpdateAdvancedPricing struct {
	// contains filtered or unexported fields
}

func (NullableUpdateAdvancedPricing) Get

func (NullableUpdateAdvancedPricing) IsSet

func (NullableUpdateAdvancedPricing) MarshalJSON

func (v NullableUpdateAdvancedPricing) MarshalJSON() ([]byte, error)

func (*NullableUpdateAdvancedPricing) Set

func (*NullableUpdateAdvancedPricing) UnmarshalJSON

func (v *NullableUpdateAdvancedPricing) UnmarshalJSON(src []byte) error

func (*NullableUpdateAdvancedPricing) Unset

func (v *NullableUpdateAdvancedPricing) Unset()

type NullableUpdateCampaignRequest

type NullableUpdateCampaignRequest struct {
	// contains filtered or unexported fields
}

func (NullableUpdateCampaignRequest) Get

func (NullableUpdateCampaignRequest) IsSet

func (NullableUpdateCampaignRequest) MarshalJSON

func (v NullableUpdateCampaignRequest) MarshalJSON() ([]byte, error)

func (*NullableUpdateCampaignRequest) Set

func (*NullableUpdateCampaignRequest) UnmarshalJSON

func (v *NullableUpdateCampaignRequest) UnmarshalJSON(src []byte) error

func (*NullableUpdateCampaignRequest) Unset

func (v *NullableUpdateCampaignRequest) Unset()

type NullableUpdateDeliveryHourRequest

type NullableUpdateDeliveryHourRequest struct {
	// contains filtered or unexported fields
}

func (NullableUpdateDeliveryHourRequest) Get

func (NullableUpdateDeliveryHourRequest) IsSet

func (NullableUpdateDeliveryHourRequest) MarshalJSON

func (v NullableUpdateDeliveryHourRequest) MarshalJSON() ([]byte, error)

func (*NullableUpdateDeliveryHourRequest) Set

func (*NullableUpdateDeliveryHourRequest) UnmarshalJSON

func (v *NullableUpdateDeliveryHourRequest) UnmarshalJSON(src []byte) error

func (*NullableUpdateDeliveryHourRequest) Unset

type NullableUpdateDeliveryHourResponse

type NullableUpdateDeliveryHourResponse struct {
	// contains filtered or unexported fields
}

func (NullableUpdateDeliveryHourResponse) Get

func (NullableUpdateDeliveryHourResponse) IsSet

func (NullableUpdateDeliveryHourResponse) MarshalJSON

func (v NullableUpdateDeliveryHourResponse) MarshalJSON() ([]byte, error)

func (*NullableUpdateDeliveryHourResponse) Set

func (*NullableUpdateDeliveryHourResponse) UnmarshalJSON

func (v *NullableUpdateDeliveryHourResponse) UnmarshalJSON(src []byte) error

func (*NullableUpdateDeliveryHourResponse) Unset

type NullableUpdateDineInHourRequest

type NullableUpdateDineInHourRequest struct {
	// contains filtered or unexported fields
}

func (NullableUpdateDineInHourRequest) Get

func (NullableUpdateDineInHourRequest) IsSet

func (NullableUpdateDineInHourRequest) MarshalJSON

func (v NullableUpdateDineInHourRequest) MarshalJSON() ([]byte, error)

func (*NullableUpdateDineInHourRequest) Set

func (*NullableUpdateDineInHourRequest) UnmarshalJSON

func (v *NullableUpdateDineInHourRequest) UnmarshalJSON(src []byte) error

func (*NullableUpdateDineInHourRequest) Unset

type NullableUpdateDineInHourResponse

type NullableUpdateDineInHourResponse struct {
	// contains filtered or unexported fields
}

func (NullableUpdateDineInHourResponse) Get

func (NullableUpdateDineInHourResponse) IsSet

func (NullableUpdateDineInHourResponse) MarshalJSON

func (v NullableUpdateDineInHourResponse) MarshalJSON() ([]byte, error)

func (*NullableUpdateDineInHourResponse) Set

func (*NullableUpdateDineInHourResponse) UnmarshalJSON

func (v *NullableUpdateDineInHourResponse) UnmarshalJSON(src []byte) error

func (*NullableUpdateDineInHourResponse) Unset

type NullableUpdateMenuItem

type NullableUpdateMenuItem struct {
	// contains filtered or unexported fields
}

func NewNullableUpdateMenuItem

func NewNullableUpdateMenuItem(val *UpdateMenuItem) *NullableUpdateMenuItem

func (NullableUpdateMenuItem) Get

func (NullableUpdateMenuItem) IsSet

func (v NullableUpdateMenuItem) IsSet() bool

func (NullableUpdateMenuItem) MarshalJSON

func (v NullableUpdateMenuItem) MarshalJSON() ([]byte, error)

func (*NullableUpdateMenuItem) Set

func (*NullableUpdateMenuItem) UnmarshalJSON

func (v *NullableUpdateMenuItem) UnmarshalJSON(src []byte) error

func (*NullableUpdateMenuItem) Unset

func (v *NullableUpdateMenuItem) Unset()

type NullableUpdateMenuModifier

type NullableUpdateMenuModifier struct {
	// contains filtered or unexported fields
}

func NewNullableUpdateMenuModifier

func NewNullableUpdateMenuModifier(val *UpdateMenuModifier) *NullableUpdateMenuModifier

func (NullableUpdateMenuModifier) Get

func (NullableUpdateMenuModifier) IsSet

func (v NullableUpdateMenuModifier) IsSet() bool

func (NullableUpdateMenuModifier) MarshalJSON

func (v NullableUpdateMenuModifier) MarshalJSON() ([]byte, error)

func (*NullableUpdateMenuModifier) Set

func (*NullableUpdateMenuModifier) UnmarshalJSON

func (v *NullableUpdateMenuModifier) UnmarshalJSON(src []byte) error

func (*NullableUpdateMenuModifier) Unset

func (v *NullableUpdateMenuModifier) Unset()

type NullableUpdateMenuNotifRequest

type NullableUpdateMenuNotifRequest struct {
	// contains filtered or unexported fields
}

func (NullableUpdateMenuNotifRequest) Get

func (NullableUpdateMenuNotifRequest) IsSet

func (NullableUpdateMenuNotifRequest) MarshalJSON

func (v NullableUpdateMenuNotifRequest) MarshalJSON() ([]byte, error)

func (*NullableUpdateMenuNotifRequest) Set

func (*NullableUpdateMenuNotifRequest) UnmarshalJSON

func (v *NullableUpdateMenuNotifRequest) UnmarshalJSON(src []byte) error

func (*NullableUpdateMenuNotifRequest) Unset

func (v *NullableUpdateMenuNotifRequest) Unset()

type NullableUpdateMenuRequest

type NullableUpdateMenuRequest struct {
	// contains filtered or unexported fields
}

func NewNullableUpdateMenuRequest

func NewNullableUpdateMenuRequest(val *UpdateMenuRequest) *NullableUpdateMenuRequest

func (NullableUpdateMenuRequest) Get

func (NullableUpdateMenuRequest) IsSet

func (v NullableUpdateMenuRequest) IsSet() bool

func (NullableUpdateMenuRequest) MarshalJSON

func (v NullableUpdateMenuRequest) MarshalJSON() ([]byte, error)

func (*NullableUpdateMenuRequest) Set

func (*NullableUpdateMenuRequest) UnmarshalJSON

func (v *NullableUpdateMenuRequest) UnmarshalJSON(src []byte) error

func (*NullableUpdateMenuRequest) Unset

func (v *NullableUpdateMenuRequest) Unset()

type NullableUpdatePurchasability

type NullableUpdatePurchasability struct {
	// contains filtered or unexported fields
}

func NewNullableUpdatePurchasability

func NewNullableUpdatePurchasability(val *UpdatePurchasability) *NullableUpdatePurchasability

func (NullableUpdatePurchasability) Get

func (NullableUpdatePurchasability) IsSet

func (NullableUpdatePurchasability) MarshalJSON

func (v NullableUpdatePurchasability) MarshalJSON() ([]byte, error)

func (*NullableUpdatePurchasability) Set

func (*NullableUpdatePurchasability) UnmarshalJSON

func (v *NullableUpdatePurchasability) UnmarshalJSON(src []byte) error

func (*NullableUpdatePurchasability) Unset

func (v *NullableUpdatePurchasability) Unset()

type NullableUpdateSpecialHourRequest

type NullableUpdateSpecialHourRequest struct {
	// contains filtered or unexported fields
}

func (NullableUpdateSpecialHourRequest) Get

func (NullableUpdateSpecialHourRequest) IsSet

func (NullableUpdateSpecialHourRequest) MarshalJSON

func (v NullableUpdateSpecialHourRequest) MarshalJSON() ([]byte, error)

func (*NullableUpdateSpecialHourRequest) Set

func (*NullableUpdateSpecialHourRequest) UnmarshalJSON

func (v *NullableUpdateSpecialHourRequest) UnmarshalJSON(src []byte) error

func (*NullableUpdateSpecialHourRequest) Unset

type NullableUpdateSpecialHourResponse

type NullableUpdateSpecialHourResponse struct {
	// contains filtered or unexported fields
}

func (NullableUpdateSpecialHourResponse) Get

func (NullableUpdateSpecialHourResponse) IsSet

func (NullableUpdateSpecialHourResponse) MarshalJSON

func (v NullableUpdateSpecialHourResponse) MarshalJSON() ([]byte, error)

func (*NullableUpdateSpecialHourResponse) Set

func (*NullableUpdateSpecialHourResponse) UnmarshalJSON

func (v *NullableUpdateSpecialHourResponse) UnmarshalJSON(src []byte) error

func (*NullableUpdateSpecialHourResponse) Unset

type NullableVoucher

type NullableVoucher struct {
	// contains filtered or unexported fields
}

func NewNullableVoucher

func NewNullableVoucher(val *Voucher) *NullableVoucher

func (NullableVoucher) Get

func (v NullableVoucher) Get() *Voucher

func (NullableVoucher) IsSet

func (v NullableVoucher) IsSet() bool

func (NullableVoucher) MarshalJSON

func (v NullableVoucher) MarshalJSON() ([]byte, error)

func (*NullableVoucher) Set

func (v *NullableVoucher) Set(val *Voucher)

func (*NullableVoucher) UnmarshalJSON

func (v *NullableVoucher) UnmarshalJSON(src []byte) error

func (*NullableVoucher) Unset

func (v *NullableVoucher) Unset()

type NullableVoucherDescriptionInfo

type NullableVoucherDescriptionInfo struct {
	// contains filtered or unexported fields
}

func (NullableVoucherDescriptionInfo) Get

func (NullableVoucherDescriptionInfo) IsSet

func (NullableVoucherDescriptionInfo) MarshalJSON

func (v NullableVoucherDescriptionInfo) MarshalJSON() ([]byte, error)

func (*NullableVoucherDescriptionInfo) Set

func (*NullableVoucherDescriptionInfo) UnmarshalJSON

func (v *NullableVoucherDescriptionInfo) UnmarshalJSON(src []byte) error

func (*NullableVoucherDescriptionInfo) Unset

func (v *NullableVoucherDescriptionInfo) Unset()

type NullableWorkingHour

type NullableWorkingHour struct {
	// contains filtered or unexported fields
}

func NewNullableWorkingHour

func NewNullableWorkingHour(val *WorkingHour) *NullableWorkingHour

func (NullableWorkingHour) Get

func (NullableWorkingHour) IsSet

func (v NullableWorkingHour) IsSet() bool

func (NullableWorkingHour) MarshalJSON

func (v NullableWorkingHour) MarshalJSON() ([]byte, error)

func (*NullableWorkingHour) Set

func (v *NullableWorkingHour) Set(val *WorkingHour)

func (*NullableWorkingHour) UnmarshalJSON

func (v *NullableWorkingHour) UnmarshalJSON(src []byte) error

func (*NullableWorkingHour) Unset

func (v *NullableWorkingHour) Unset()

type NullableWorkingHourDay

type NullableWorkingHourDay struct {
	// contains filtered or unexported fields
}

func NewNullableWorkingHourDay

func NewNullableWorkingHourDay(val *WorkingHourDay) *NullableWorkingHourDay

func (NullableWorkingHourDay) Get

func (NullableWorkingHourDay) IsSet

func (v NullableWorkingHourDay) IsSet() bool

func (NullableWorkingHourDay) MarshalJSON

func (v NullableWorkingHourDay) MarshalJSON() ([]byte, error)

func (*NullableWorkingHourDay) Set

func (*NullableWorkingHourDay) UnmarshalJSON

func (v *NullableWorkingHourDay) UnmarshalJSON(src []byte) error

func (*NullableWorkingHourDay) Unset

func (v *NullableWorkingHourDay) Unset()

type OpenPeriod

type OpenPeriod struct {
	// The open start time in 24h format. Local time format is expected.
	StartTime string `json:"startTime"`
	// The open end time in 24h format. Local time format is expected.
	EndTime              string `json:"endTime"`
	AdditionalProperties map[string]interface{}
}

OpenPeriod struct for OpenPeriod

func NewOpenPeriod

func NewOpenPeriod(startTime string, endTime string) *OpenPeriod

NewOpenPeriod instantiates a new OpenPeriod 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 NewOpenPeriodWithDefaults

func NewOpenPeriodWithDefaults() *OpenPeriod

NewOpenPeriodWithDefaults instantiates a new OpenPeriod 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 (*OpenPeriod) GetEndTime

func (o *OpenPeriod) GetEndTime() string

GetEndTime returns the EndTime field value

func (*OpenPeriod) GetEndTimeOk

func (o *OpenPeriod) GetEndTimeOk() (*string, bool)

GetEndTimeOk returns a tuple with the EndTime field value and a boolean to check if the value has been set.

func (*OpenPeriod) GetStartTime

func (o *OpenPeriod) GetStartTime() string

GetStartTime returns the StartTime field value

func (*OpenPeriod) GetStartTimeOk

func (o *OpenPeriod) GetStartTimeOk() (*string, bool)

GetStartTimeOk returns a tuple with the StartTime field value and a boolean to check if the value has been set.

func (OpenPeriod) MarshalJSON

func (o OpenPeriod) MarshalJSON() ([]byte, error)

func (*OpenPeriod) SetEndTime

func (o *OpenPeriod) SetEndTime(v string)

SetEndTime sets field value

func (*OpenPeriod) SetStartTime

func (o *OpenPeriod) SetStartTime(v string)

SetStartTime sets field value

func (OpenPeriod) ToMap

func (o OpenPeriod) ToMap() (map[string]interface{}, error)

func (*OpenPeriod) UnmarshalJSON

func (o *OpenPeriod) UnmarshalJSON(data []byte) (err error)

type Order

type Order struct {
	// The order's ID that is returned from GrabFood. Refer to FAQs for more details about [orderID and shortOrderNumber](#section/Order/What's-the-difference-between-orderID-and-shortOrderNumber).
	OrderID string `json:"orderID"`
	// The GrabFood short order number. This is unique for each merchant per day. Refer to FAQs for more details about [orderID and shortOrderNumber](#section/Order/What's-the-difference-between-orderID-and-shortOrderNumber).
	ShortOrderNumber string `json:"shortOrderNumber"`
	// The merchant's ID that is in GrabFood's database.
	MerchantID string `json:"merchantID"`
	// The merchant's ID that is on the partner's database.
	PartnerMerchantID *string `json:"partnerMerchantID,omitempty"`
	// The payment method used. Refer to FAQs for more details about [paymentType](#section/Order/Does-the-paymentType-affect-partners).
	PaymentType string `json:"paymentType"`
	// The boolean value to indicate whether cutlery are needed or not. Refer to FAQs for more details about [cutlery](#section/Order/What-do-the-true-or-false-values-mean-for-cutlery).
	Cutlery bool `json:"cutlery"`
	// The UTC time that a consumer places the order, based on ISO_8601/RFC3339.
	OrderTime string `json:"orderTime"`
	// The order submit time, based on ISO_8601/RFC3339. `null` in Submit Order payload. Only present in the [List Orders](#tag/list-order) response.
	SubmitTime *time.Time `json:"submitTime,omitempty"`
	// The order complete time, based on ISO_8601/RFC3339. `null` in Submit Order payload. Only present in the [List Orders](#tag/list-order) response.
	CompleteTime *time.Time `json:"completeTime,omitempty"`
	// The order scheduled time, based on ISO_8601/RFC3339. Empty for non-scheduled orders.
	ScheduledTime *string `json:"scheduledTime,omitempty"`
	// The state of the order. Empty in Submit Order payload. Only present in the [List Orders](#tag/list-order) response. Refer to [Order States](#section/Order-states).
	OrderState   *string           `json:"orderState,omitempty"`
	Currency     Currency          `json:"currency"`
	FeatureFlags OrderFeatureFlags `json:"featureFlags"`
	// The ordered items in an array of JSON Object.
	Items []OrderItem `json:"items"`
	// The campaigns that are applicable for the order. `null` when there is no campaign applied. Only campaigns that are funded by merchants will be sent.
	Campaigns []OrderCampaign `json:"campaigns,omitempty"`
	// An array of promotion objects. `null` when there is no promo code applied. Only promotions that are funded by merchants will be sent.
	Promos               []OrderPromo          `json:"promos,omitempty"`
	Price                OrderPrice            `json:"price"`
	DineIn               NullableDineIn        `json:"dineIn,omitempty"`
	Receiver             NullableReceiver      `json:"receiver,omitempty"`
	OrderReadyEstimation *OrderReadyEstimation `json:"orderReadyEstimation,omitempty"`
	// Membership ID for loyalty project. Only present for loyalty program partners. Empty if not applicable.
	MembershipID         *string `json:"membershipID,omitempty"`
	AdditionalProperties map[string]interface{}
}

Order A JSON object containing the order information.

func 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

func 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

func (*Order) GetCampaigns

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

GetCampaigns returns the Campaigns field value if set, zero value otherwise (both if not set or set to explicit null).

func (*Order) GetCampaignsOk

func (o *Order) GetCampaignsOk() ([]OrderCampaign, bool)

GetCampaignsOk returns a tuple with the Campaigns field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*Order) GetCompleteTime

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

GetCompleteTime returns the CompleteTime field value if set, zero value otherwise.

func (*Order) GetCompleteTimeOk

func (o *Order) GetCompleteTimeOk() (*time.Time, bool)

GetCompleteTimeOk returns a tuple with the CompleteTime field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Order) GetCurrency

func (o *Order) GetCurrency() Currency

GetCurrency returns the Currency field value

func (*Order) GetCurrencyOk

func (o *Order) GetCurrencyOk() (*Currency, bool)

GetCurrencyOk returns a tuple with the Currency field value and a boolean to check if the value has been set.

func (*Order) GetCutlery

func (o *Order) GetCutlery() bool

GetCutlery returns the Cutlery field value

func (*Order) GetCutleryOk

func (o *Order) GetCutleryOk() (*bool, bool)

GetCutleryOk returns a tuple with the Cutlery field value and a boolean to check if the value has been set.

func (*Order) GetDineIn

func (o *Order) GetDineIn() DineIn

GetDineIn returns the DineIn field value if set, zero value otherwise (both if not set or set to explicit null).

func (*Order) GetDineInOk

func (o *Order) GetDineInOk() (*DineIn, bool)

GetDineInOk returns a tuple with the DineIn field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*Order) GetFeatureFlags

func (o *Order) GetFeatureFlags() OrderFeatureFlags

GetFeatureFlags returns the FeatureFlags field value

func (*Order) GetFeatureFlagsOk

func (o *Order) GetFeatureFlagsOk() (*OrderFeatureFlags, bool)

GetFeatureFlagsOk returns a tuple with the FeatureFlags field value and a boolean to check if the value has been set.

func (*Order) GetItems

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

GetItems returns the Items field value

func (*Order) GetItemsOk

func (o *Order) GetItemsOk() ([]OrderItem, bool)

GetItemsOk returns a tuple with the Items field value and a boolean to check if the value has been set.

func (*Order) GetMembershipID

func (o *Order) GetMembershipID() string

GetMembershipID returns the MembershipID field value if set, zero value otherwise.

func (*Order) GetMembershipIDOk

func (o *Order) GetMembershipIDOk() (*string, bool)

GetMembershipIDOk returns a tuple with the MembershipID field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Order) GetMerchantID

func (o *Order) GetMerchantID() string

GetMerchantID returns the MerchantID field value

func (*Order) GetMerchantIDOk

func (o *Order) GetMerchantIDOk() (*string, bool)

GetMerchantIDOk returns a tuple with the MerchantID field value and a boolean to check if the value has been set.

func (*Order) GetOrderID

func (o *Order) GetOrderID() string

GetOrderID returns the OrderID field value

func (*Order) GetOrderIDOk

func (o *Order) GetOrderIDOk() (*string, bool)

GetOrderIDOk returns a tuple with the OrderID field value and a boolean to check if the value has been set.

func (*Order) GetOrderReadyEstimation

func (o *Order) GetOrderReadyEstimation() OrderReadyEstimation

GetOrderReadyEstimation returns the OrderReadyEstimation field value if set, zero value otherwise.

func (*Order) GetOrderReadyEstimationOk

func (o *Order) GetOrderReadyEstimationOk() (*OrderReadyEstimation, bool)

GetOrderReadyEstimationOk returns a tuple with the OrderReadyEstimation field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Order) GetOrderState

func (o *Order) GetOrderState() string

GetOrderState returns the OrderState field value if set, zero value otherwise.

func (*Order) GetOrderStateOk

func (o *Order) GetOrderStateOk() (*string, bool)

GetOrderStateOk returns a tuple with the OrderState field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Order) GetOrderTime

func (o *Order) GetOrderTime() string

GetOrderTime returns the OrderTime field value

func (*Order) GetOrderTimeOk

func (o *Order) GetOrderTimeOk() (*string, bool)

GetOrderTimeOk returns a tuple with the OrderTime field value and a boolean to check if the value has been set.

func (*Order) GetPartnerMerchantID

func (o *Order) GetPartnerMerchantID() string

GetPartnerMerchantID returns the PartnerMerchantID field value if set, zero value otherwise.

func (*Order) GetPartnerMerchantIDOk

func (o *Order) GetPartnerMerchantIDOk() (*string, bool)

GetPartnerMerchantIDOk returns a tuple with the PartnerMerchantID field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Order) GetPaymentType

func (o *Order) GetPaymentType() string

GetPaymentType returns the PaymentType field value

func (*Order) GetPaymentTypeOk

func (o *Order) GetPaymentTypeOk() (*string, bool)

GetPaymentTypeOk returns a tuple with the PaymentType field value and a boolean to check if the value has been set.

func (*Order) GetPrice

func (o *Order) GetPrice() OrderPrice

GetPrice returns the Price field value

func (*Order) GetPriceOk

func (o *Order) GetPriceOk() (*OrderPrice, bool)

GetPriceOk returns a tuple with the Price field value and a boolean to check if the value has been set.

func (*Order) GetPromos

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

GetPromos returns the Promos field value if set, zero value otherwise (both if not set or set to explicit null).

func (*Order) GetPromosOk

func (o *Order) GetPromosOk() ([]OrderPromo, bool)

GetPromosOk returns a tuple with the Promos field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*Order) GetReceiver

func (o *Order) GetReceiver() Receiver

GetReceiver returns the Receiver field value if set, zero value otherwise (both if not set or set to explicit null).

func (*Order) GetReceiverOk

func (o *Order) GetReceiverOk() (*Receiver, bool)

GetReceiverOk returns a tuple with the Receiver field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*Order) GetScheduledTime

func (o *Order) GetScheduledTime() string

GetScheduledTime returns the ScheduledTime field value if set, zero value otherwise.

func (*Order) GetScheduledTimeOk

func (o *Order) GetScheduledTimeOk() (*string, bool)

GetScheduledTimeOk returns a tuple with the ScheduledTime field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Order) GetShortOrderNumber

func (o *Order) GetShortOrderNumber() string

GetShortOrderNumber returns the ShortOrderNumber field value

func (*Order) GetShortOrderNumberOk

func (o *Order) GetShortOrderNumberOk() (*string, bool)

GetShortOrderNumberOk returns a tuple with the ShortOrderNumber field value and a boolean to check if the value has been set.

func (*Order) GetSubmitTime

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

GetSubmitTime returns the SubmitTime field value if set, zero value otherwise.

func (*Order) GetSubmitTimeOk

func (o *Order) GetSubmitTimeOk() (*time.Time, bool)

GetSubmitTimeOk returns a tuple with the SubmitTime field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Order) HasCampaigns

func (o *Order) HasCampaigns() bool

HasCampaigns returns a boolean if a field has been set.

func (*Order) HasCompleteTime

func (o *Order) HasCompleteTime() bool

HasCompleteTime returns a boolean if a field has been set.

func (*Order) HasDineIn

func (o *Order) HasDineIn() bool

HasDineIn returns a boolean if a field has been set.

func (*Order) HasMembershipID

func (o *Order) HasMembershipID() bool

HasMembershipID returns a boolean if a field has been set.

func (*Order) HasOrderReadyEstimation

func (o *Order) HasOrderReadyEstimation() bool

HasOrderReadyEstimation returns a boolean if a field has been set.

func (*Order) HasOrderState

func (o *Order) HasOrderState() bool

HasOrderState returns a boolean if a field has been set.

func (*Order) HasPartnerMerchantID

func (o *Order) HasPartnerMerchantID() bool

HasPartnerMerchantID returns a boolean if a field has been set.

func (*Order) HasPromos

func (o *Order) HasPromos() bool

HasPromos returns a boolean if a field has been set.

func (*Order) HasReceiver

func (o *Order) HasReceiver() bool

HasReceiver returns a boolean if a field has been set.

func (*Order) HasScheduledTime

func (o *Order) HasScheduledTime() bool

HasScheduledTime returns a boolean if a field has been set.

func (*Order) HasSubmitTime

func (o *Order) HasSubmitTime() bool

HasSubmitTime returns a boolean if a field has been set.

func (Order) MarshalJSON

func (o Order) MarshalJSON() ([]byte, error)

func (*Order) SetCampaigns

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

SetCampaigns gets a reference to the given []OrderCampaign and assigns it to the Campaigns field.

func (*Order) SetCompleteTime

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

SetCompleteTime gets a reference to the given time.Time and assigns it to the CompleteTime field.

func (*Order) SetCurrency

func (o *Order) SetCurrency(v Currency)

SetCurrency sets field value

func (*Order) SetCutlery

func (o *Order) SetCutlery(v bool)

SetCutlery sets field value

func (*Order) SetDineIn

func (o *Order) SetDineIn(v DineIn)

SetDineIn gets a reference to the given NullableDineIn and assigns it to the DineIn field.

func (*Order) SetDineInNil added in v1.0.1

func (o *Order) SetDineInNil()

SetDineInNil sets the value for DineIn to be an explicit nil

func (*Order) SetFeatureFlags

func (o *Order) SetFeatureFlags(v OrderFeatureFlags)

SetFeatureFlags sets field value

func (*Order) SetItems

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

SetItems sets field value

func (*Order) SetMembershipID

func (o *Order) SetMembershipID(v string)

SetMembershipID gets a reference to the given string and assigns it to the MembershipID field.

func (*Order) SetMerchantID

func (o *Order) SetMerchantID(v string)

SetMerchantID sets field value

func (*Order) SetOrderID

func (o *Order) SetOrderID(v string)

SetOrderID sets field value

func (*Order) SetOrderReadyEstimation

func (o *Order) SetOrderReadyEstimation(v OrderReadyEstimation)

SetOrderReadyEstimation gets a reference to the given OrderReadyEstimation and assigns it to the OrderReadyEstimation field.

func (*Order) SetOrderState

func (o *Order) SetOrderState(v string)

SetOrderState gets a reference to the given string and assigns it to the OrderState field.

func (*Order) SetOrderTime

func (o *Order) SetOrderTime(v string)

SetOrderTime sets field value

func (*Order) SetPartnerMerchantID

func (o *Order) SetPartnerMerchantID(v string)

SetPartnerMerchantID gets a reference to the given string and assigns it to the PartnerMerchantID field.

func (*Order) SetPaymentType

func (o *Order) SetPaymentType(v string)

SetPaymentType sets field value

func (*Order) SetPrice

func (o *Order) SetPrice(v OrderPrice)

SetPrice sets field value

func (*Order) SetPromos

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

SetPromos gets a reference to the given []OrderPromo and assigns it to the Promos field.

func (*Order) SetReceiver

func (o *Order) SetReceiver(v Receiver)

SetReceiver gets a reference to the given NullableReceiver and assigns it to the Receiver field.

func (*Order) SetReceiverNil added in v1.0.1

func (o *Order) SetReceiverNil()

SetReceiverNil sets the value for Receiver to be an explicit nil

func (*Order) SetScheduledTime

func (o *Order) SetScheduledTime(v string)

SetScheduledTime gets a reference to the given string and assigns it to the ScheduledTime field.

func (*Order) SetShortOrderNumber

func (o *Order) SetShortOrderNumber(v string)

SetShortOrderNumber sets field value

func (*Order) SetSubmitTime

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

SetSubmitTime gets a reference to the given time.Time and assigns it to the SubmitTime field.

func (Order) ToMap

func (o Order) ToMap() (map[string]interface{}, error)

func (*Order) UnmarshalJSON

func (o *Order) UnmarshalJSON(data []byte) (err error)

func (*Order) UnsetDineIn added in v1.0.1

func (o *Order) UnsetDineIn()

UnsetDineIn ensures that no value is present for DineIn, not even an explicit nil

func (*Order) UnsetReceiver added in v1.0.1

func (o *Order) UnsetReceiver()

UnsetReceiver ensures that no value is present for Receiver, not even an explicit nil

type OrderCampaign

type OrderCampaign struct {
	// The campaign's ID returned by GrabFood upon campaign creation.
	Id *string `json:"id,omitempty"`
	// The name of the campaign. This campaign name has been automatically generated by Grab for display in the customer app.
	Name *string `json:"name,omitempty"`
	// The campaign name provided by the merchant in [Create Campaign](#tag/create-campaign). Whitelist required, reach out to your integration manager.
	CampaignNameForMex *string `json:"campaignNameForMex,omitempty"`
	// The campaign level.
	Level *string `json:"level,omitempty"`
	// The type of campaign.
	Type *string `json:"type,omitempty"`
	// The redemption count of same campaign in this order.
	UsageCount *int64 `json:"usageCount,omitempty"`
	// The ratio funded by the merchant in percentage.
	MexFundedRatio *int32 `json:"mexFundedRatio,omitempty"`
	// The total discount amount in minor unit format applied to the order based on the campaign's usage count. The amount is rounded to the nearest value for `VND`, `IDR`, and `THB`, as decimals are not supported.  “` deductedAmount = Item price(tax inclusive) * 20% discount | 2375*0.2=475
	DeductedAmount *int64 `json:"deductedAmount,omitempty"`
	// The part that the campaign is applied.
	DeductedPart *string `json:"deductedPart,omitempty"`
	// An array of item IDs that get discount under this campaign. `null` if no item applied in this campaign.
	AppliedItemIDs       []string       `json:"appliedItemIDs,omitempty"`
	FreeItem             *OrderFreeItem `json:"freeItem,omitempty"`
	AdditionalProperties map[string]interface{}
}

OrderCampaign struct for OrderCampaign

func NewOrderCampaign

func NewOrderCampaign() *OrderCampaign

NewOrderCampaign instantiates a new OrderCampaign 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 NewOrderCampaignWithDefaults

func NewOrderCampaignWithDefaults() *OrderCampaign

NewOrderCampaignWithDefaults instantiates a new OrderCampaign 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 (*OrderCampaign) GetAppliedItemIDs

func (o *OrderCampaign) GetAppliedItemIDs() []string

GetAppliedItemIDs returns the AppliedItemIDs field value if set, zero value otherwise (both if not set or set to explicit null).

func (*OrderCampaign) GetAppliedItemIDsOk

func (o *OrderCampaign) GetAppliedItemIDsOk() ([]string, bool)

GetAppliedItemIDsOk returns a tuple with the AppliedItemIDs field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*OrderCampaign) GetCampaignNameForMex

func (o *OrderCampaign) GetCampaignNameForMex() string

GetCampaignNameForMex returns the CampaignNameForMex field value if set, zero value otherwise.

func (*OrderCampaign) GetCampaignNameForMexOk

func (o *OrderCampaign) GetCampaignNameForMexOk() (*string, bool)

GetCampaignNameForMexOk returns a tuple with the CampaignNameForMex field value if set, nil otherwise and a boolean to check if the value has been set.

func (*OrderCampaign) GetDeductedAmount

func (o *OrderCampaign) GetDeductedAmount() int64

GetDeductedAmount returns the DeductedAmount field value if set, zero value otherwise.

func (*OrderCampaign) GetDeductedAmountOk

func (o *OrderCampaign) GetDeductedAmountOk() (*int64, bool)

GetDeductedAmountOk returns a tuple with the DeductedAmount field value if set, nil otherwise and a boolean to check if the value has been set.

func (*OrderCampaign) GetDeductedPart

func (o *OrderCampaign) GetDeductedPart() string

GetDeductedPart returns the DeductedPart field value if set, zero value otherwise.

func (*OrderCampaign) GetDeductedPartOk

func (o *OrderCampaign) GetDeductedPartOk() (*string, bool)

GetDeductedPartOk returns a tuple with the DeductedPart field value if set, nil otherwise and a boolean to check if the value has been set.

func (*OrderCampaign) GetFreeItem

func (o *OrderCampaign) GetFreeItem() OrderFreeItem

GetFreeItem returns the FreeItem field value if set, zero value otherwise.

func (*OrderCampaign) GetFreeItemOk

func (o *OrderCampaign) GetFreeItemOk() (*OrderFreeItem, bool)

GetFreeItemOk returns a tuple with the FreeItem field value if set, nil otherwise and a boolean to check if the value has been set.

func (*OrderCampaign) GetId

func (o *OrderCampaign) GetId() string

GetId returns the Id field value if set, zero value otherwise.

func (*OrderCampaign) GetIdOk

func (o *OrderCampaign) GetIdOk() (*string, bool)

GetIdOk returns a tuple with the Id field value if set, nil otherwise and a boolean to check if the value has been set.

func (*OrderCampaign) GetLevel

func (o *OrderCampaign) GetLevel() string

GetLevel returns the Level field value if set, zero value otherwise.

func (*OrderCampaign) GetLevelOk

func (o *OrderCampaign) GetLevelOk() (*string, bool)

GetLevelOk returns a tuple with the Level field value if set, nil otherwise and a boolean to check if the value has been set.

func (*OrderCampaign) GetMexFundedRatio

func (o *OrderCampaign) GetMexFundedRatio() int32

GetMexFundedRatio returns the MexFundedRatio field value if set, zero value otherwise.

func (*OrderCampaign) GetMexFundedRatioOk

func (o *OrderCampaign) GetMexFundedRatioOk() (*int32, bool)

GetMexFundedRatioOk returns a tuple with the MexFundedRatio field value if set, nil otherwise and a boolean to check if the value has been set.

func (*OrderCampaign) GetName

func (o *OrderCampaign) GetName() string

GetName returns the Name field value if set, zero value otherwise.

func (*OrderCampaign) GetNameOk

func (o *OrderCampaign) GetNameOk() (*string, bool)

GetNameOk returns a tuple with the Name field value if set, nil otherwise and a boolean to check if the value has been set.

func (*OrderCampaign) GetType

func (o *OrderCampaign) GetType() string

GetType returns the Type field value if set, zero value otherwise.

func (*OrderCampaign) GetTypeOk

func (o *OrderCampaign) GetTypeOk() (*string, bool)

GetTypeOk returns a tuple with the Type field value if set, nil otherwise and a boolean to check if the value has been set.

func (*OrderCampaign) GetUsageCount

func (o *OrderCampaign) GetUsageCount() int64

GetUsageCount returns the UsageCount field value if set, zero value otherwise.

func (*OrderCampaign) GetUsageCountOk

func (o *OrderCampaign) GetUsageCountOk() (*int64, bool)

GetUsageCountOk returns a tuple with the UsageCount field value if set, nil otherwise and a boolean to check if the value has been set.

func (*OrderCampaign) HasAppliedItemIDs

func (o *OrderCampaign) HasAppliedItemIDs() bool

HasAppliedItemIDs returns a boolean if a field has been set.

func (*OrderCampaign) HasCampaignNameForMex

func (o *OrderCampaign) HasCampaignNameForMex() bool

HasCampaignNameForMex returns a boolean if a field has been set.

func (*OrderCampaign) HasDeductedAmount

func (o *OrderCampaign) HasDeductedAmount() bool

HasDeductedAmount returns a boolean if a field has been set.

func (*OrderCampaign) HasDeductedPart

func (o *OrderCampaign) HasDeductedPart() bool

HasDeductedPart returns a boolean if a field has been set.

func (*OrderCampaign) HasFreeItem

func (o *OrderCampaign) HasFreeItem() bool

HasFreeItem returns a boolean if a field has been set.

func (*OrderCampaign) HasId

func (o *OrderCampaign) HasId() bool

HasId returns a boolean if a field has been set.

func (*OrderCampaign) HasLevel

func (o *OrderCampaign) HasLevel() bool

HasLevel returns a boolean if a field has been set.

func (*OrderCampaign) HasMexFundedRatio

func (o *OrderCampaign) HasMexFundedRatio() bool

HasMexFundedRatio returns a boolean if a field has been set.

func (*OrderCampaign) HasName

func (o *OrderCampaign) HasName() bool

HasName returns a boolean if a field has been set.

func (*OrderCampaign) HasType

func (o *OrderCampaign) HasType() bool

HasType returns a boolean if a field has been set.

func (*OrderCampaign) HasUsageCount

func (o *OrderCampaign) HasUsageCount() bool

HasUsageCount returns a boolean if a field has been set.

func (OrderCampaign) MarshalJSON

func (o OrderCampaign) MarshalJSON() ([]byte, error)

func (*OrderCampaign) SetAppliedItemIDs

func (o *OrderCampaign) SetAppliedItemIDs(v []string)

SetAppliedItemIDs gets a reference to the given []string and assigns it to the AppliedItemIDs field.

func (*OrderCampaign) SetCampaignNameForMex

func (o *OrderCampaign) SetCampaignNameForMex(v string)

SetCampaignNameForMex gets a reference to the given string and assigns it to the CampaignNameForMex field.

func (*OrderCampaign) SetDeductedAmount

func (o *OrderCampaign) SetDeductedAmount(v int64)

SetDeductedAmount gets a reference to the given int64 and assigns it to the DeductedAmount field.

func (*OrderCampaign) SetDeductedPart

func (o *OrderCampaign) SetDeductedPart(v string)

SetDeductedPart gets a reference to the given string and assigns it to the DeductedPart field.

func (*OrderCampaign) SetFreeItem

func (o *OrderCampaign) SetFreeItem(v OrderFreeItem)

SetFreeItem gets a reference to the given OrderFreeItem and assigns it to the FreeItem field.

func (*OrderCampaign) SetId

func (o *OrderCampaign) SetId(v string)

SetId gets a reference to the given string and assigns it to the Id field.

func (*OrderCampaign) SetLevel

func (o *OrderCampaign) SetLevel(v string)

SetLevel gets a reference to the given string and assigns it to the Level field.

func (*OrderCampaign) SetMexFundedRatio

func (o *OrderCampaign) SetMexFundedRatio(v int32)

SetMexFundedRatio gets a reference to the given int32 and assigns it to the MexFundedRatio field.

func (*OrderCampaign) SetName

func (o *OrderCampaign) SetName(v string)

SetName gets a reference to the given string and assigns it to the Name field.

func (*OrderCampaign) SetType

func (o *OrderCampaign) SetType(v string)

SetType gets a reference to the given string and assigns it to the Type field.

func (*OrderCampaign) SetUsageCount

func (o *OrderCampaign) SetUsageCount(v int64)

SetUsageCount gets a reference to the given int64 and assigns it to the UsageCount field.

func (OrderCampaign) ToMap

func (o OrderCampaign) ToMap() (map[string]interface{}, error)

func (*OrderCampaign) UnmarshalJSON

func (o *OrderCampaign) UnmarshalJSON(data []byte) (err error)

type OrderDeliveryRequest

type OrderDeliveryRequest struct {
	// The order's ID that is returned from GrabFood. Refer to FAQs for more details about [orderID and shortOrderNumber](#section/Order/What's-the-difference-between-orderID-and-shortOrderNumber).
	OrderID string `json:"orderID"`
	// Specify the order's initial state.
	FromState string `json:"fromState"`
	// Specify the order's new state.
	ToState              string `json:"toState"`
	AdditionalProperties map[string]interface{}
}

OrderDeliveryRequest This request marks an order as delivered on GrabFood.

func NewOrderDeliveryRequest

func NewOrderDeliveryRequest(orderID string, fromState string, toState string) *OrderDeliveryRequest

NewOrderDeliveryRequest instantiates a new OrderDeliveryRequest 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 NewOrderDeliveryRequestWithDefaults

func NewOrderDeliveryRequestWithDefaults() *OrderDeliveryRequest

NewOrderDeliveryRequestWithDefaults instantiates a new OrderDeliveryRequest 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 (*OrderDeliveryRequest) GetFromState

func (o *OrderDeliveryRequest) GetFromState() string

GetFromState returns the FromState field value

func (*OrderDeliveryRequest) GetFromStateOk

func (o *OrderDeliveryRequest) GetFromStateOk() (*string, bool)

GetFromStateOk returns a tuple with the FromState field value and a boolean to check if the value has been set.

func (*OrderDeliveryRequest) GetOrderID

func (o *OrderDeliveryRequest) GetOrderID() string

GetOrderID returns the OrderID field value

func (*OrderDeliveryRequest) GetOrderIDOk

func (o *OrderDeliveryRequest) GetOrderIDOk() (*string, bool)

GetOrderIDOk returns a tuple with the OrderID field value and a boolean to check if the value has been set.

func (*OrderDeliveryRequest) GetToState

func (o *OrderDeliveryRequest) GetToState() string

GetToState returns the ToState field value

func (*OrderDeliveryRequest) GetToStateOk

func (o *OrderDeliveryRequest) GetToStateOk() (*string, bool)

GetToStateOk returns a tuple with the ToState field value and a boolean to check if the value has been set.

func (OrderDeliveryRequest) MarshalJSON

func (o OrderDeliveryRequest) MarshalJSON() ([]byte, error)

func (*OrderDeliveryRequest) SetFromState

func (o *OrderDeliveryRequest) SetFromState(v string)

SetFromState sets field value

func (*OrderDeliveryRequest) SetOrderID

func (o *OrderDeliveryRequest) SetOrderID(v string)

SetOrderID sets field value

func (*OrderDeliveryRequest) SetToState

func (o *OrderDeliveryRequest) SetToState(v string)

SetToState sets field value

func (OrderDeliveryRequest) ToMap

func (o OrderDeliveryRequest) ToMap() (map[string]interface{}, error)

func (*OrderDeliveryRequest) UnmarshalJSON

func (o *OrderDeliveryRequest) UnmarshalJSON(data []byte) (err error)

type OrderFeatureFlags

type OrderFeatureFlags struct {
	// The acceptance type for the order. Refer to FAQs for more details about [orderAcceptedType](#section/Order/How-do-I-identify-if-a-particular-order-is-auto-or-manual-acceptance).
	OrderAcceptedType string `json:"orderAcceptedType"`
	// The type of order.
	OrderType string `json:"orderType"`
	// A boolean value that indicates if the order is edited.
	IsMexEditOrder       *bool `json:"isMexEditOrder,omitempty"`
	AdditionalProperties map[string]interface{}
}

OrderFeatureFlags The featureFlag JSON object containing an order's feature related information.

func NewOrderFeatureFlags

func NewOrderFeatureFlags(orderAcceptedType string, orderType string) *OrderFeatureFlags

NewOrderFeatureFlags instantiates a new OrderFeatureFlags 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 NewOrderFeatureFlagsWithDefaults

func NewOrderFeatureFlagsWithDefaults() *OrderFeatureFlags

NewOrderFeatureFlagsWithDefaults instantiates a new OrderFeatureFlags 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 (*OrderFeatureFlags) GetIsMexEditOrder

func (o *OrderFeatureFlags) GetIsMexEditOrder() bool

GetIsMexEditOrder returns the IsMexEditOrder field value if set, zero value otherwise.

func (*OrderFeatureFlags) GetIsMexEditOrderOk

func (o *OrderFeatureFlags) GetIsMexEditOrderOk() (*bool, bool)

GetIsMexEditOrderOk returns a tuple with the IsMexEditOrder field value if set, nil otherwise and a boolean to check if the value has been set.

func (*OrderFeatureFlags) GetOrderAcceptedType

func (o *OrderFeatureFlags) GetOrderAcceptedType() string

GetOrderAcceptedType returns the OrderAcceptedType field value

func (*OrderFeatureFlags) GetOrderAcceptedTypeOk

func (o *OrderFeatureFlags) GetOrderAcceptedTypeOk() (*string, bool)

GetOrderAcceptedTypeOk returns a tuple with the OrderAcceptedType field value and a boolean to check if the value has been set.

func (*OrderFeatureFlags) GetOrderType

func (o *OrderFeatureFlags) GetOrderType() string

GetOrderType returns the OrderType field value

func (*OrderFeatureFlags) GetOrderTypeOk

func (o *OrderFeatureFlags) GetOrderTypeOk() (*string, bool)

GetOrderTypeOk returns a tuple with the OrderType field value and a boolean to check if the value has been set.

func (*OrderFeatureFlags) HasIsMexEditOrder

func (o *OrderFeatureFlags) HasIsMexEditOrder() bool

HasIsMexEditOrder returns a boolean if a field has been set.

func (OrderFeatureFlags) MarshalJSON

func (o OrderFeatureFlags) MarshalJSON() ([]byte, error)

func (*OrderFeatureFlags) SetIsMexEditOrder

func (o *OrderFeatureFlags) SetIsMexEditOrder(v bool)

SetIsMexEditOrder gets a reference to the given bool and assigns it to the IsMexEditOrder field.

func (*OrderFeatureFlags) SetOrderAcceptedType

func (o *OrderFeatureFlags) SetOrderAcceptedType(v string)

SetOrderAcceptedType sets field value

func (*OrderFeatureFlags) SetOrderType

func (o *OrderFeatureFlags) SetOrderType(v string)

SetOrderType sets field value

func (OrderFeatureFlags) ToMap

func (o OrderFeatureFlags) ToMap() (map[string]interface{}, error)

func (*OrderFeatureFlags) UnmarshalJSON

func (o *OrderFeatureFlags) UnmarshalJSON(data []byte) (err error)

type OrderFreeItem

type OrderFreeItem struct {
	// The free item's externalID in the partner system. Empty if not applicable.
	Id *string `json:"id,omitempty"`
	// The name of the free item. Empty if not applicable.
	Name *string `json:"name,omitempty"`
	// The item's quantity. Maximum is **1**.
	Quantity *int32 `json:"quantity,omitempty"`
	// The item's price in minor unit format.
	Price                *int64 `json:"price,omitempty"`
	AdditionalProperties map[string]interface{}
}

OrderFreeItem Free item information for `freeItem` campaign.

func NewOrderFreeItem

func NewOrderFreeItem() *OrderFreeItem

NewOrderFreeItem instantiates a new OrderFreeItem 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 NewOrderFreeItemWithDefaults

func NewOrderFreeItemWithDefaults() *OrderFreeItem

NewOrderFreeItemWithDefaults instantiates a new OrderFreeItem 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 (*OrderFreeItem) GetId

func (o *OrderFreeItem) GetId() string

GetId returns the Id field value if set, zero value otherwise.

func (*OrderFreeItem) GetIdOk

func (o *OrderFreeItem) GetIdOk() (*string, bool)

GetIdOk returns a tuple with the Id field value if set, nil otherwise and a boolean to check if the value has been set.

func (*OrderFreeItem) GetName

func (o *OrderFreeItem) GetName() string

GetName returns the Name field value if set, zero value otherwise.

func (*OrderFreeItem) GetNameOk

func (o *OrderFreeItem) GetNameOk() (*string, bool)

GetNameOk returns a tuple with the Name field value if set, nil otherwise and a boolean to check if the value has been set.

func (*OrderFreeItem) GetPrice

func (o *OrderFreeItem) GetPrice() int64

GetPrice returns the Price field value if set, zero value otherwise.

func (*OrderFreeItem) GetPriceOk

func (o *OrderFreeItem) GetPriceOk() (*int64, bool)

GetPriceOk returns a tuple with the Price field value if set, nil otherwise and a boolean to check if the value has been set.

func (*OrderFreeItem) GetQuantity

func (o *OrderFreeItem) GetQuantity() int32

GetQuantity returns the Quantity field value if set, zero value otherwise.

func (*OrderFreeItem) GetQuantityOk

func (o *OrderFreeItem) GetQuantityOk() (*int32, bool)

GetQuantityOk returns a tuple with the Quantity field value if set, nil otherwise and a boolean to check if the value has been set.

func (*OrderFreeItem) HasId

func (o *OrderFreeItem) HasId() bool

HasId returns a boolean if a field has been set.

func (*OrderFreeItem) HasName

func (o *OrderFreeItem) HasName() bool

HasName returns a boolean if a field has been set.

func (*OrderFreeItem) HasPrice

func (o *OrderFreeItem) HasPrice() bool

HasPrice returns a boolean if a field has been set.

func (*OrderFreeItem) HasQuantity

func (o *OrderFreeItem) HasQuantity() bool

HasQuantity returns a boolean if a field has been set.

func (OrderFreeItem) MarshalJSON

func (o OrderFreeItem) MarshalJSON() ([]byte, error)

func (*OrderFreeItem) SetId

func (o *OrderFreeItem) SetId(v string)

SetId gets a reference to the given string and assigns it to the Id field.

func (*OrderFreeItem) SetName

func (o *OrderFreeItem) SetName(v string)

SetName gets a reference to the given string and assigns it to the Name field.

func (*OrderFreeItem) SetPrice

func (o *OrderFreeItem) SetPrice(v int64)

SetPrice gets a reference to the given int64 and assigns it to the Price field.

func (*OrderFreeItem) SetQuantity

func (o *OrderFreeItem) SetQuantity(v int32)

SetQuantity gets a reference to the given int32 and assigns it to the Quantity field.

func (OrderFreeItem) ToMap

func (o OrderFreeItem) ToMap() (map[string]interface{}, error)

func (*OrderFreeItem) UnmarshalJSON

func (o *OrderFreeItem) UnmarshalJSON(data []byte) (err error)

type OrderItem

type OrderItem struct {
	// The item's externalID in the partner system.
	Id string `json:"id"`
	// The item's ID in Grab system. Partner can use this field in the `EditOrder` endpoint.
	GrabItemID string `json:"grabItemID"`
	// The number of the item ordered.
	Quantity int32 `json:"quantity"`
	// The price for a single item along with its associated modifiers in minor unit and tax-inclusive.  “` price = Item price(tax inclusive) + Modifier price(tax inclusive) | (2241*1.06)+(165*1.06)=2550
	Price int64 `json:"price"`
	// Tax in minor format for a single item along with its associated modifiers. `0` if tax configuration is absent. Refer to FAQs for more details about [tax](#section/Order/How-is-tax-calculated). “` tax = Item tax + Modifier tax | (2241*0.06)+(165*0.06)=144
	Tax *int64 `json:"tax,omitempty"`
	// An extra note for the merchant. Empty if no note from consumer.
	Specifications        *string                       `json:"specifications,omitempty"`
	OutOfStockInstruction NullableOutOfStockInstruction `json:"outOfStockInstruction,omitempty"`
	// An array of JSON objects modifiers.
	Modifiers            []OrderItemModifier `json:"modifiers,omitempty"`
	AdditionalProperties map[string]interface{}
}

OrderItem struct for OrderItem

func NewOrderItem

func NewOrderItem(id string, grabItemID string, quantity int32, price int64) *OrderItem

NewOrderItem instantiates a new OrderItem 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 NewOrderItemWithDefaults

func NewOrderItemWithDefaults() *OrderItem

NewOrderItemWithDefaults instantiates a new OrderItem 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 (*OrderItem) GetGrabItemID

func (o *OrderItem) GetGrabItemID() string

GetGrabItemID returns the GrabItemID field value

func (*OrderItem) GetGrabItemIDOk

func (o *OrderItem) GetGrabItemIDOk() (*string, bool)

GetGrabItemIDOk returns a tuple with the GrabItemID field value and a boolean to check if the value has been set.

func (*OrderItem) GetId

func (o *OrderItem) GetId() string

GetId returns the Id field value

func (*OrderItem) GetIdOk

func (o *OrderItem) GetIdOk() (*string, bool)

GetIdOk returns a tuple with the Id field value and a boolean to check if the value has been set.

func (*OrderItem) GetModifiers

func (o *OrderItem) GetModifiers() []OrderItemModifier

GetModifiers returns the Modifiers field value if set, zero value otherwise.

func (*OrderItem) GetModifiersOk

func (o *OrderItem) GetModifiersOk() ([]OrderItemModifier, bool)

GetModifiersOk returns a tuple with the Modifiers field value if set, nil otherwise and a boolean to check if the value has been set.

func (*OrderItem) GetOutOfStockInstruction

func (o *OrderItem) GetOutOfStockInstruction() OutOfStockInstruction

GetOutOfStockInstruction returns the OutOfStockInstruction field value if set, zero value otherwise (both if not set or set to explicit null).

func (*OrderItem) GetOutOfStockInstructionOk

func (o *OrderItem) GetOutOfStockInstructionOk() (*OutOfStockInstruction, bool)

GetOutOfStockInstructionOk returns a tuple with the OutOfStockInstruction field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*OrderItem) GetPrice

func (o *OrderItem) GetPrice() int64

GetPrice returns the Price field value

func (*OrderItem) GetPriceOk

func (o *OrderItem) GetPriceOk() (*int64, bool)

GetPriceOk returns a tuple with the Price field value and a boolean to check if the value has been set.

func (*OrderItem) GetQuantity

func (o *OrderItem) GetQuantity() int32

GetQuantity returns the Quantity field value

func (*OrderItem) GetQuantityOk

func (o *OrderItem) GetQuantityOk() (*int32, bool)

GetQuantityOk returns a tuple with the Quantity field value and a boolean to check if the value has been set.

func (*OrderItem) GetSpecifications

func (o *OrderItem) GetSpecifications() string

GetSpecifications returns the Specifications field value if set, zero value otherwise.

func (*OrderItem) GetSpecificationsOk

func (o *OrderItem) GetSpecificationsOk() (*string, bool)

GetSpecificationsOk returns a tuple with the Specifications field value if set, nil otherwise and a boolean to check if the value has been set.

func (*OrderItem) GetTax

func (o *OrderItem) GetTax() int64

GetTax returns the Tax field value if set, zero value otherwise.

func (*OrderItem) GetTaxOk

func (o *OrderItem) GetTaxOk() (*int64, bool)

GetTaxOk returns a tuple with the Tax field value if set, nil otherwise and a boolean to check if the value has been set.

func (*OrderItem) HasModifiers

func (o *OrderItem) HasModifiers() bool

HasModifiers returns a boolean if a field has been set.

func (*OrderItem) HasOutOfStockInstruction

func (o *OrderItem) HasOutOfStockInstruction() bool

HasOutOfStockInstruction returns a boolean if a field has been set.

func (*OrderItem) HasSpecifications

func (o *OrderItem) HasSpecifications() bool

HasSpecifications returns a boolean if a field has been set.

func (*OrderItem) HasTax

func (o *OrderItem) HasTax() bool

HasTax returns a boolean if a field has been set.

func (OrderItem) MarshalJSON

func (o OrderItem) MarshalJSON() ([]byte, error)

func (*OrderItem) SetGrabItemID

func (o *OrderItem) SetGrabItemID(v string)

SetGrabItemID sets field value

func (*OrderItem) SetId

func (o *OrderItem) SetId(v string)

SetId sets field value

func (*OrderItem) SetModifiers

func (o *OrderItem) SetModifiers(v []OrderItemModifier)

SetModifiers gets a reference to the given []OrderItemModifier and assigns it to the Modifiers field.

func (*OrderItem) SetOutOfStockInstruction

func (o *OrderItem) SetOutOfStockInstruction(v OutOfStockInstruction)

SetOutOfStockInstruction gets a reference to the given NullableOutOfStockInstruction and assigns it to the OutOfStockInstruction field.

func (*OrderItem) SetOutOfStockInstructionNil

func (o *OrderItem) SetOutOfStockInstructionNil()

SetOutOfStockInstructionNil sets the value for OutOfStockInstruction to be an explicit nil

func (*OrderItem) SetPrice

func (o *OrderItem) SetPrice(v int64)

SetPrice sets field value

func (*OrderItem) SetQuantity

func (o *OrderItem) SetQuantity(v int32)

SetQuantity sets field value

func (*OrderItem) SetSpecifications

func (o *OrderItem) SetSpecifications(v string)

SetSpecifications gets a reference to the given string and assigns it to the Specifications field.

func (*OrderItem) SetTax

func (o *OrderItem) SetTax(v int64)

SetTax gets a reference to the given int64 and assigns it to the Tax field.

func (OrderItem) ToMap

func (o OrderItem) ToMap() (map[string]interface{}, error)

func (*OrderItem) UnmarshalJSON

func (o *OrderItem) UnmarshalJSON(data []byte) (err error)

func (*OrderItem) UnsetOutOfStockInstruction

func (o *OrderItem) UnsetOutOfStockInstruction()

UnsetOutOfStockInstruction ensures that no value is present for OutOfStockInstruction, not even an explicit nil

type OrderItemModifier

type OrderItemModifier struct {
	// The modifier's ID that is on the partner's system.
	Id *string `json:"id,omitempty"`
	// The modifier's price (tax-inclusive) in minor format.  “` price = round(165 * (1 + 0.06)) = 175
	Price *int64 `json:"price,omitempty"`
	// Tax in minor format for 1 modifier. Refer to FAQs for more details about [tax](#section/Order/How-is-tax-calculated). “` tax = 165*0.06=10
	Tax *int64 `json:"tax,omitempty"`
	// The number of modifiers present. The value is always 1.
	Quantity             *int32 `json:"quantity,omitempty"`
	AdditionalProperties map[string]interface{}
}

OrderItemModifier struct for OrderItemModifier

func NewOrderItemModifier

func NewOrderItemModifier() *OrderItemModifier

NewOrderItemModifier instantiates a new OrderItemModifier 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 NewOrderItemModifierWithDefaults

func NewOrderItemModifierWithDefaults() *OrderItemModifier

NewOrderItemModifierWithDefaults instantiates a new OrderItemModifier 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 (*OrderItemModifier) GetId

func (o *OrderItemModifier) GetId() string

GetId returns the Id field value if set, zero value otherwise.

func (*OrderItemModifier) GetIdOk

func (o *OrderItemModifier) GetIdOk() (*string, bool)

GetIdOk returns a tuple with the Id field value if set, nil otherwise and a boolean to check if the value has been set.

func (*OrderItemModifier) GetPrice

func (o *OrderItemModifier) GetPrice() int64

GetPrice returns the Price field value if set, zero value otherwise.

func (*OrderItemModifier) GetPriceOk

func (o *OrderItemModifier) GetPriceOk() (*int64, bool)

GetPriceOk returns a tuple with the Price field value if set, nil otherwise and a boolean to check if the value has been set.

func (*OrderItemModifier) GetQuantity

func (o *OrderItemModifier) GetQuantity() int32

GetQuantity returns the Quantity field value if set, zero value otherwise.

func (*OrderItemModifier) GetQuantityOk

func (o *OrderItemModifier) GetQuantityOk() (*int32, bool)

GetQuantityOk returns a tuple with the Quantity field value if set, nil otherwise and a boolean to check if the value has been set.

func (*OrderItemModifier) GetTax

func (o *OrderItemModifier) GetTax() int64

GetTax returns the Tax field value if set, zero value otherwise.

func (*OrderItemModifier) GetTaxOk

func (o *OrderItemModifier) GetTaxOk() (*int64, bool)

GetTaxOk returns a tuple with the Tax field value if set, nil otherwise and a boolean to check if the value has been set.

func (*OrderItemModifier) HasId

func (o *OrderItemModifier) HasId() bool

HasId returns a boolean if a field has been set.

func (*OrderItemModifier) HasPrice

func (o *OrderItemModifier) HasPrice() bool

HasPrice returns a boolean if a field has been set.

func (*OrderItemModifier) HasQuantity

func (o *OrderItemModifier) HasQuantity() bool

HasQuantity returns a boolean if a field has been set.

func (*OrderItemModifier) HasTax

func (o *OrderItemModifier) HasTax() bool

HasTax returns a boolean if a field has been set.

func (OrderItemModifier) MarshalJSON

func (o OrderItemModifier) MarshalJSON() ([]byte, error)

func (*OrderItemModifier) SetId

func (o *OrderItemModifier) SetId(v string)

SetId gets a reference to the given string and assigns it to the Id field.

func (*OrderItemModifier) SetPrice

func (o *OrderItemModifier) SetPrice(v int64)

SetPrice gets a reference to the given int64 and assigns it to the Price field.

func (*OrderItemModifier) SetQuantity

func (o *OrderItemModifier) SetQuantity(v int32)

SetQuantity gets a reference to the given int32 and assigns it to the Quantity field.

func (*OrderItemModifier) SetTax

func (o *OrderItemModifier) SetTax(v int64)

SetTax gets a reference to the given int64 and assigns it to the Tax field.

func (OrderItemModifier) ToMap

func (o OrderItemModifier) ToMap() (map[string]interface{}, error)

func (*OrderItemModifier) UnmarshalJSON

func (o *OrderItemModifier) UnmarshalJSON(data []byte) (err error)

type OrderPrice

type OrderPrice struct {
	// Total item and modifier price (tax-inclusive) in the minor unit. “` subtotal = Sum of all (item price * quantity) | 2550*1=2550
	Subtotal int64 `json:"subtotal"`
	// GrabFood's tax in the minor unit. Refer to FAQs for more details about [tax](#section/Order/How-is-tax-calculated). “` tax = (subtotal + merchantChargeFee - merchantFundPromo) * Tax / (1+Tax) | (2550-475)*0.06/1.06=117
	Tax *int64 `json:"tax,omitempty"`
	// Any additional fee charged by merchant (tax-inclusive), which is 100% paid out to the merchant. Eg. Takeaway, packaging costs, dine-in charge.
	MerchantChargeFee *int64 `json:"merchantChargeFee,omitempty"`
	// GrabFood's promo fund in the minor unit. Calculated based on funded ratio. Only present when `paymentType:CASH` or `orderType:DeliveredByRestaurant`. Otherwise, it will be set to `0`.
	GrabFundPromo *int64 `json:"grabFundPromo,omitempty"`
	// The merchant's promo fund in the minor unit. Calculated based on funded ratio.
	MerchantFundPromo *int64 `json:"merchantFundPromo,omitempty"`
	// The total amount promo applied to the basket items only (item level/order level) in the minor unit, excluding delivery fee. Only present when `paymentType: CASH` or `orderType: DeliveredByRestaurant`. Otherwise, it will be set to `0`.  “` basketPromo = (grabFundPromo + merchantFundPromo) | 300 + 475 = 775
	BasketPromo *int64 `json:"basketPromo,omitempty"`
	// The delivery fee in the minor unit. Only present when `paymentType:CASH` or `orderType:DeliveredByRestaurant`. Otherwise, it will be set to `0`.
	DeliveryFee *int64 `json:"deliveryFee,omitempty"`
	// The fee charged by GrabFood for order that does not meet a certain minimum order value. Only present when `paymentType:CASH` and `orderType:DeliveredByRestaurant`.
	SmallOrderFee *int64 `json:"smallOrderFee,omitempty"`
	// The total amount paid by the consumer in the minor unit, excluding some additional fees charged by GrabFood. Only present when `paymentType:CASH` or `orderType:DeliveredByRestaurant`. Otherwise, it will be set to `0`.  “` eaterPayment = (subtotal + merchantChargeFee + deliveryFee) - (sum of all promo) | (2550+400)-775=2175
	EaterPayment         *int64 `json:"eaterPayment,omitempty"`
	AdditionalProperties map[string]interface{}
}

OrderPrice A JSON object containing order's price in the minor unit format.

func NewOrderPrice

func NewOrderPrice(subtotal int64) *OrderPrice

NewOrderPrice instantiates a new OrderPrice 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 NewOrderPriceWithDefaults

func NewOrderPriceWithDefaults() *OrderPrice

NewOrderPriceWithDefaults instantiates a new OrderPrice 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 (*OrderPrice) GetBasketPromo

func (o *OrderPrice) GetBasketPromo() int64

GetBasketPromo returns the BasketPromo field value if set, zero value otherwise.

func (*OrderPrice) GetBasketPromoOk

func (o *OrderPrice) GetBasketPromoOk() (*int64, bool)

GetBasketPromoOk returns a tuple with the BasketPromo field value if set, nil otherwise and a boolean to check if the value has been set.

func (*OrderPrice) GetDeliveryFee

func (o *OrderPrice) GetDeliveryFee() int64

GetDeliveryFee returns the DeliveryFee field value if set, zero value otherwise.

func (*OrderPrice) GetDeliveryFeeOk

func (o *OrderPrice) GetDeliveryFeeOk() (*int64, bool)

GetDeliveryFeeOk returns a tuple with the DeliveryFee field value if set, nil otherwise and a boolean to check if the value has been set.

func (*OrderPrice) GetEaterPayment

func (o *OrderPrice) GetEaterPayment() int64

GetEaterPayment returns the EaterPayment field value if set, zero value otherwise.

func (*OrderPrice) GetEaterPaymentOk

func (o *OrderPrice) GetEaterPaymentOk() (*int64, bool)

GetEaterPaymentOk returns a tuple with the EaterPayment field value if set, nil otherwise and a boolean to check if the value has been set.

func (*OrderPrice) GetGrabFundPromo

func (o *OrderPrice) GetGrabFundPromo() int64

GetGrabFundPromo returns the GrabFundPromo field value if set, zero value otherwise.

func (*OrderPrice) GetGrabFundPromoOk

func (o *OrderPrice) GetGrabFundPromoOk() (*int64, bool)

GetGrabFundPromoOk returns a tuple with the GrabFundPromo field value if set, nil otherwise and a boolean to check if the value has been set.

func (*OrderPrice) GetMerchantChargeFee

func (o *OrderPrice) GetMerchantChargeFee() int64

GetMerchantChargeFee returns the MerchantChargeFee field value if set, zero value otherwise.

func (*OrderPrice) GetMerchantChargeFeeOk

func (o *OrderPrice) GetMerchantChargeFeeOk() (*int64, bool)

GetMerchantChargeFeeOk returns a tuple with the MerchantChargeFee field value if set, nil otherwise and a boolean to check if the value has been set.

func (*OrderPrice) GetMerchantFundPromo

func (o *OrderPrice) GetMerchantFundPromo() int64

GetMerchantFundPromo returns the MerchantFundPromo field value if set, zero value otherwise.

func (*OrderPrice) GetMerchantFundPromoOk

func (o *OrderPrice) GetMerchantFundPromoOk() (*int64, bool)

GetMerchantFundPromoOk returns a tuple with the MerchantFundPromo field value if set, nil otherwise and a boolean to check if the value has been set.

func (*OrderPrice) GetSmallOrderFee added in v1.0.1

func (o *OrderPrice) GetSmallOrderFee() int64

GetSmallOrderFee returns the SmallOrderFee field value if set, zero value otherwise.

func (*OrderPrice) GetSmallOrderFeeOk added in v1.0.1

func (o *OrderPrice) GetSmallOrderFeeOk() (*int64, bool)

GetSmallOrderFeeOk returns a tuple with the SmallOrderFee field value if set, nil otherwise and a boolean to check if the value has been set.

func (*OrderPrice) GetSubtotal

func (o *OrderPrice) GetSubtotal() int64

GetSubtotal returns the Subtotal field value

func (*OrderPrice) GetSubtotalOk

func (o *OrderPrice) GetSubtotalOk() (*int64, bool)

GetSubtotalOk returns a tuple with the Subtotal field value and a boolean to check if the value has been set.

func (*OrderPrice) GetTax

func (o *OrderPrice) GetTax() int64

GetTax returns the Tax field value if set, zero value otherwise.

func (*OrderPrice) GetTaxOk

func (o *OrderPrice) GetTaxOk() (*int64, bool)

GetTaxOk returns a tuple with the Tax field value if set, nil otherwise and a boolean to check if the value has been set.

func (*OrderPrice) HasBasketPromo

func (o *OrderPrice) HasBasketPromo() bool

HasBasketPromo returns a boolean if a field has been set.

func (*OrderPrice) HasDeliveryFee

func (o *OrderPrice) HasDeliveryFee() bool

HasDeliveryFee returns a boolean if a field has been set.

func (*OrderPrice) HasEaterPayment added in v1.0.1

func (o *OrderPrice) HasEaterPayment() bool

HasEaterPayment returns a boolean if a field has been set.

func (*OrderPrice) HasGrabFundPromo

func (o *OrderPrice) HasGrabFundPromo() bool

HasGrabFundPromo returns a boolean if a field has been set.

func (*OrderPrice) HasMerchantChargeFee

func (o *OrderPrice) HasMerchantChargeFee() bool

HasMerchantChargeFee returns a boolean if a field has been set.

func (*OrderPrice) HasMerchantFundPromo

func (o *OrderPrice) HasMerchantFundPromo() bool

HasMerchantFundPromo returns a boolean if a field has been set.

func (*OrderPrice) HasSmallOrderFee added in v1.0.1

func (o *OrderPrice) HasSmallOrderFee() bool

HasSmallOrderFee returns a boolean if a field has been set.

func (*OrderPrice) HasTax

func (o *OrderPrice) HasTax() bool

HasTax returns a boolean if a field has been set.

func (OrderPrice) MarshalJSON

func (o OrderPrice) MarshalJSON() ([]byte, error)

func (*OrderPrice) SetBasketPromo

func (o *OrderPrice) SetBasketPromo(v int64)

SetBasketPromo gets a reference to the given int64 and assigns it to the BasketPromo field.

func (*OrderPrice) SetDeliveryFee

func (o *OrderPrice) SetDeliveryFee(v int64)

SetDeliveryFee gets a reference to the given int64 and assigns it to the DeliveryFee field.

func (*OrderPrice) SetEaterPayment

func (o *OrderPrice) SetEaterPayment(v int64)

SetEaterPayment gets a reference to the given int64 and assigns it to the EaterPayment field.

func (*OrderPrice) SetGrabFundPromo

func (o *OrderPrice) SetGrabFundPromo(v int64)

SetGrabFundPromo gets a reference to the given int64 and assigns it to the GrabFundPromo field.

func (*OrderPrice) SetMerchantChargeFee

func (o *OrderPrice) SetMerchantChargeFee(v int64)

SetMerchantChargeFee gets a reference to the given int64 and assigns it to the MerchantChargeFee field.

func (*OrderPrice) SetMerchantFundPromo

func (o *OrderPrice) SetMerchantFundPromo(v int64)

SetMerchantFundPromo gets a reference to the given int64 and assigns it to the MerchantFundPromo field.

func (*OrderPrice) SetSmallOrderFee added in v1.0.1

func (o *OrderPrice) SetSmallOrderFee(v int64)

SetSmallOrderFee gets a reference to the given int64 and assigns it to the SmallOrderFee field.

func (*OrderPrice) SetSubtotal

func (o *OrderPrice) SetSubtotal(v int64)

SetSubtotal sets field value

func (*OrderPrice) SetTax

func (o *OrderPrice) SetTax(v int64)

SetTax gets a reference to the given int64 and assigns it to the Tax field.

func (OrderPrice) ToMap

func (o OrderPrice) ToMap() (map[string]interface{}, error)

func (*OrderPrice) UnmarshalJSON

func (o *OrderPrice) UnmarshalJSON(data []byte) (err error)

type OrderPromo

type OrderPromo struct {
	// Promo code applied in the order.
	Code *string `json:"code,omitempty"`
	// Promo description.
	Description *string `json:"description,omitempty"`
	// Name of the promotion.
	Name *string `json:"name,omitempty"`
	// Promo amount applied in the order, in local currency. This amount is rounded into whole number.
	PromoAmount *int64 `json:"promoAmount,omitempty"`
	// The merchant's funded ratio of the promo in percentage.
	MexFundedRatio *int32 `json:"mexFundedRatio,omitempty"`
	// The merchant's promo fund in the minor unit. Calculated based on merchant funded ratio.
	MexFundedAmount *int64 `json:"mexFundedAmount,omitempty"`
	// The subtotal of the order basket in minor unit.
	TargetedPrice *int64 `json:"targetedPrice,omitempty"`
	// Promo amount applied in the order in minor unit.
	PromoAmountInMin     *int64 `json:"promoAmountInMin,omitempty"`
	AdditionalProperties map[string]interface{}
}

OrderPromo struct for OrderPromo

func NewOrderPromo

func NewOrderPromo() *OrderPromo

NewOrderPromo instantiates a new OrderPromo 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 NewOrderPromoWithDefaults

func NewOrderPromoWithDefaults() *OrderPromo

NewOrderPromoWithDefaults instantiates a new OrderPromo 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 (*OrderPromo) GetCode

func (o *OrderPromo) GetCode() string

GetCode returns the Code field value if set, zero value otherwise.

func (*OrderPromo) GetCodeOk

func (o *OrderPromo) GetCodeOk() (*string, bool)

GetCodeOk returns a tuple with the Code field value if set, nil otherwise and a boolean to check if the value has been set.

func (*OrderPromo) GetDescription

func (o *OrderPromo) GetDescription() string

GetDescription returns the Description field value if set, zero value otherwise.

func (*OrderPromo) GetDescriptionOk

func (o *OrderPromo) GetDescriptionOk() (*string, bool)

GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise and a boolean to check if the value has been set.

func (*OrderPromo) GetMexFundedAmount

func (o *OrderPromo) GetMexFundedAmount() int64

GetMexFundedAmount returns the MexFundedAmount field value if set, zero value otherwise.

func (*OrderPromo) GetMexFundedAmountOk

func (o *OrderPromo) GetMexFundedAmountOk() (*int64, bool)

GetMexFundedAmountOk returns a tuple with the MexFundedAmount field value if set, nil otherwise and a boolean to check if the value has been set.

func (*OrderPromo) GetMexFundedRatio

func (o *OrderPromo) GetMexFundedRatio() int32

GetMexFundedRatio returns the MexFundedRatio field value if set, zero value otherwise.

func (*OrderPromo) GetMexFundedRatioOk

func (o *OrderPromo) GetMexFundedRatioOk() (*int32, bool)

GetMexFundedRatioOk returns a tuple with the MexFundedRatio field value if set, nil otherwise and a boolean to check if the value has been set.

func (*OrderPromo) GetName

func (o *OrderPromo) GetName() string

GetName returns the Name field value if set, zero value otherwise.

func (*OrderPromo) GetNameOk

func (o *OrderPromo) GetNameOk() (*string, bool)

GetNameOk returns a tuple with the Name field value if set, nil otherwise and a boolean to check if the value has been set.

func (*OrderPromo) GetPromoAmount

func (o *OrderPromo) GetPromoAmount() int64

GetPromoAmount returns the PromoAmount field value if set, zero value otherwise.

func (*OrderPromo) GetPromoAmountInMin

func (o *OrderPromo) GetPromoAmountInMin() int64

GetPromoAmountInMin returns the PromoAmountInMin field value if set, zero value otherwise.

func (*OrderPromo) GetPromoAmountInMinOk

func (o *OrderPromo) GetPromoAmountInMinOk() (*int64, bool)

GetPromoAmountInMinOk returns a tuple with the PromoAmountInMin field value if set, nil otherwise and a boolean to check if the value has been set.

func (*OrderPromo) GetPromoAmountOk

func (o *OrderPromo) GetPromoAmountOk() (*int64, bool)

GetPromoAmountOk returns a tuple with the PromoAmount field value if set, nil otherwise and a boolean to check if the value has been set.

func (*OrderPromo) GetTargetedPrice

func (o *OrderPromo) GetTargetedPrice() int64

GetTargetedPrice returns the TargetedPrice field value if set, zero value otherwise.

func (*OrderPromo) GetTargetedPriceOk

func (o *OrderPromo) GetTargetedPriceOk() (*int64, bool)

GetTargetedPriceOk returns a tuple with the TargetedPrice field value if set, nil otherwise and a boolean to check if the value has been set.

func (*OrderPromo) HasCode

func (o *OrderPromo) HasCode() bool

HasCode returns a boolean if a field has been set.

func (*OrderPromo) HasDescription

func (o *OrderPromo) HasDescription() bool

HasDescription returns a boolean if a field has been set.

func (*OrderPromo) HasMexFundedAmount

func (o *OrderPromo) HasMexFundedAmount() bool

HasMexFundedAmount returns a boolean if a field has been set.

func (*OrderPromo) HasMexFundedRatio

func (o *OrderPromo) HasMexFundedRatio() bool

HasMexFundedRatio returns a boolean if a field has been set.

func (*OrderPromo) HasName

func (o *OrderPromo) HasName() bool

HasName returns a boolean if a field has been set.

func (*OrderPromo) HasPromoAmount

func (o *OrderPromo) HasPromoAmount() bool

HasPromoAmount returns a boolean if a field has been set.

func (*OrderPromo) HasPromoAmountInMin

func (o *OrderPromo) HasPromoAmountInMin() bool

HasPromoAmountInMin returns a boolean if a field has been set.

func (*OrderPromo) HasTargetedPrice

func (o *OrderPromo) HasTargetedPrice() bool

HasTargetedPrice returns a boolean if a field has been set.

func (OrderPromo) MarshalJSON

func (o OrderPromo) MarshalJSON() ([]byte, error)

func (*OrderPromo) SetCode

func (o *OrderPromo) SetCode(v string)

SetCode gets a reference to the given string and assigns it to the Code field.

func (*OrderPromo) SetDescription

func (o *OrderPromo) SetDescription(v string)

SetDescription gets a reference to the given string and assigns it to the Description field.

func (*OrderPromo) SetMexFundedAmount

func (o *OrderPromo) SetMexFundedAmount(v int64)

SetMexFundedAmount gets a reference to the given int64 and assigns it to the MexFundedAmount field.

func (*OrderPromo) SetMexFundedRatio

func (o *OrderPromo) SetMexFundedRatio(v int32)

SetMexFundedRatio gets a reference to the given int32 and assigns it to the MexFundedRatio field.

func (*OrderPromo) SetName

func (o *OrderPromo) SetName(v string)

SetName gets a reference to the given string and assigns it to the Name field.

func (*OrderPromo) SetPromoAmount

func (o *OrderPromo) SetPromoAmount(v int64)

SetPromoAmount gets a reference to the given int64 and assigns it to the PromoAmount field.

func (*OrderPromo) SetPromoAmountInMin

func (o *OrderPromo) SetPromoAmountInMin(v int64)

SetPromoAmountInMin gets a reference to the given int64 and assigns it to the PromoAmountInMin field.

func (*OrderPromo) SetTargetedPrice

func (o *OrderPromo) SetTargetedPrice(v int64)

SetTargetedPrice gets a reference to the given int64 and assigns it to the TargetedPrice field.

func (OrderPromo) ToMap

func (o OrderPromo) ToMap() (map[string]interface{}, error)

func (*OrderPromo) UnmarshalJSON

func (o *OrderPromo) UnmarshalJSON(data []byte) (err error)

type OrderReadyEstimation

type OrderReadyEstimation struct {
	// A boolean value indicating if the order ready time can be changed.
	AllowChange bool `json:"allowChange"`
	// The order ready time for this order estimated by GrabFood, based on ISO_8601/RFC3339.
	EstimatedOrderReadyTime time.Time `json:"estimatedOrderReadyTime"`
	// The max allowed order ready time for this order, based on ISO_8601/RFC3339.
	MaxOrderReadyTime time.Time `json:"maxOrderReadyTime"`
	// The new order ready time for this order. Only present after a new order ready time is set (default will be null), based on ISO_8601/RFC3339.
	NewOrderReadyTime    NullableTime `json:"newOrderReadyTime,omitempty"`
	AdditionalProperties map[string]interface{}
}

OrderReadyEstimation Information related to the order ready time estimation.

func NewOrderReadyEstimation

func NewOrderReadyEstimation(allowChange bool, estimatedOrderReadyTime time.Time, maxOrderReadyTime time.Time) *OrderReadyEstimation

NewOrderReadyEstimation instantiates a new OrderReadyEstimation 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 NewOrderReadyEstimationWithDefaults

func NewOrderReadyEstimationWithDefaults() *OrderReadyEstimation

NewOrderReadyEstimationWithDefaults instantiates a new OrderReadyEstimation 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 (*OrderReadyEstimation) GetAllowChange

func (o *OrderReadyEstimation) GetAllowChange() bool

GetAllowChange returns the AllowChange field value

func (*OrderReadyEstimation) GetAllowChangeOk

func (o *OrderReadyEstimation) GetAllowChangeOk() (*bool, bool)

GetAllowChangeOk returns a tuple with the AllowChange field value and a boolean to check if the value has been set.

func (*OrderReadyEstimation) GetEstimatedOrderReadyTime

func (o *OrderReadyEstimation) GetEstimatedOrderReadyTime() time.Time

GetEstimatedOrderReadyTime returns the EstimatedOrderReadyTime field value

func (*OrderReadyEstimation) GetEstimatedOrderReadyTimeOk

func (o *OrderReadyEstimation) GetEstimatedOrderReadyTimeOk() (*time.Time, bool)

GetEstimatedOrderReadyTimeOk returns a tuple with the EstimatedOrderReadyTime field value and a boolean to check if the value has been set.

func (*OrderReadyEstimation) GetMaxOrderReadyTime

func (o *OrderReadyEstimation) GetMaxOrderReadyTime() time.Time

GetMaxOrderReadyTime returns the MaxOrderReadyTime field value

func (*OrderReadyEstimation) GetMaxOrderReadyTimeOk

func (o *OrderReadyEstimation) GetMaxOrderReadyTimeOk() (*time.Time, bool)

GetMaxOrderReadyTimeOk returns a tuple with the MaxOrderReadyTime field value and a boolean to check if the value has been set.

func (*OrderReadyEstimation) GetNewOrderReadyTime

func (o *OrderReadyEstimation) GetNewOrderReadyTime() time.Time

GetNewOrderReadyTime returns the NewOrderReadyTime field value if set, zero value otherwise (both if not set or set to explicit null).

func (*OrderReadyEstimation) GetNewOrderReadyTimeOk

func (o *OrderReadyEstimation) GetNewOrderReadyTimeOk() (*time.Time, bool)

GetNewOrderReadyTimeOk returns a tuple with the NewOrderReadyTime field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*OrderReadyEstimation) HasNewOrderReadyTime

func (o *OrderReadyEstimation) HasNewOrderReadyTime() bool

HasNewOrderReadyTime returns a boolean if a field has been set.

func (OrderReadyEstimation) MarshalJSON

func (o OrderReadyEstimation) MarshalJSON() ([]byte, error)

func (*OrderReadyEstimation) SetAllowChange

func (o *OrderReadyEstimation) SetAllowChange(v bool)

SetAllowChange sets field value

func (*OrderReadyEstimation) SetEstimatedOrderReadyTime

func (o *OrderReadyEstimation) SetEstimatedOrderReadyTime(v time.Time)

SetEstimatedOrderReadyTime sets field value

func (*OrderReadyEstimation) SetMaxOrderReadyTime

func (o *OrderReadyEstimation) SetMaxOrderReadyTime(v time.Time)

SetMaxOrderReadyTime sets field value

func (*OrderReadyEstimation) SetNewOrderReadyTime

func (o *OrderReadyEstimation) SetNewOrderReadyTime(v time.Time)

SetNewOrderReadyTime gets a reference to the given NullableTime and assigns it to the NewOrderReadyTime field.

func (*OrderReadyEstimation) SetNewOrderReadyTimeNil

func (o *OrderReadyEstimation) SetNewOrderReadyTimeNil()

SetNewOrderReadyTimeNil sets the value for NewOrderReadyTime to be an explicit nil

func (OrderReadyEstimation) ToMap

func (o OrderReadyEstimation) ToMap() (map[string]interface{}, error)

func (*OrderReadyEstimation) UnmarshalJSON

func (o *OrderReadyEstimation) UnmarshalJSON(data []byte) (err error)

func (*OrderReadyEstimation) UnsetNewOrderReadyTime

func (o *OrderReadyEstimation) UnsetNewOrderReadyTime()

UnsetNewOrderReadyTime ensures that no value is present for NewOrderReadyTime, not even an explicit nil

type OrderStateRequest

type OrderStateRequest struct {
	// The merchant's ID that is in GrabFood's database.
	MerchantID string `json:"merchantID"`
	// The merchant's ID that is on the partner's database.
	PartnerMerchantID *string `json:"partnerMerchantID,omitempty"`
	// The order's ID that is returned from GrabFood. Refer to FAQs for more details about [orderID and shortOrderNumber](#section/Order/What's-the-difference-between-orderID-and-shortOrderNumber).
	OrderID string `json:"orderID"`
	// The current order state. For takeaway orders, only `DELIVERED` and `CANCELLED` states are pushed.
	State string `json:"state"`
	// The driver's estimated of arrival (ETA) in seconds when the state is `DRIVER_ALLOCATED`.
	DriverETA NullableInt32 `json:"driverETA,omitempty"`
	// 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.
	Code *string `json:"code,omitempty"`
	// Additional information to explain the current order state. May be system status or human entered message.
	Message              *string `json:"message,omitempty"`
	AdditionalProperties map[string]interface{}
}

OrderStateRequest This request pushes the state of an order on GrabFood.

func NewOrderStateRequest

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

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 (*OrderStateRequest) GetCode

func (o *OrderStateRequest) GetCode() string

GetCode returns the Code field value if set, zero value otherwise.

func (*OrderStateRequest) GetCodeOk

func (o *OrderStateRequest) GetCodeOk() (*string, bool)

GetCodeOk returns a tuple with the Code field value if set, nil otherwise and a boolean to check if the value has been set.

func (*OrderStateRequest) GetDriverETA

func (o *OrderStateRequest) GetDriverETA() int32

GetDriverETA returns the DriverETA field value if set, zero value otherwise (both if not set or set to explicit null).

func (*OrderStateRequest) GetDriverETAOk

func (o *OrderStateRequest) GetDriverETAOk() (*int32, bool)

GetDriverETAOk returns a tuple with the DriverETA field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*OrderStateRequest) GetMerchantID

func (o *OrderStateRequest) GetMerchantID() string

GetMerchantID returns the MerchantID field value

func (*OrderStateRequest) GetMerchantIDOk

func (o *OrderStateRequest) GetMerchantIDOk() (*string, bool)

GetMerchantIDOk returns a tuple with the MerchantID field value and a boolean to check if the value has been set.

func (*OrderStateRequest) GetMessage

func (o *OrderStateRequest) GetMessage() string

GetMessage returns the Message field value if set, zero value otherwise.

func (*OrderStateRequest) GetMessageOk

func (o *OrderStateRequest) GetMessageOk() (*string, bool)

GetMessageOk returns a tuple with the Message field value if set, nil otherwise and a boolean to check if the value has been set.

func (*OrderStateRequest) GetOrderID

func (o *OrderStateRequest) GetOrderID() string

GetOrderID returns the OrderID field value

func (*OrderStateRequest) GetOrderIDOk

func (o *OrderStateRequest) GetOrderIDOk() (*string, bool)

GetOrderIDOk returns a tuple with the OrderID field value and a boolean to check if the value has been set.

func (*OrderStateRequest) GetPartnerMerchantID added in v1.0.1

func (o *OrderStateRequest) GetPartnerMerchantID() string

GetPartnerMerchantID returns the PartnerMerchantID field value if set, zero value otherwise.

func (*OrderStateRequest) GetPartnerMerchantIDOk added in v1.0.1

func (o *OrderStateRequest) GetPartnerMerchantIDOk() (*string, bool)

GetPartnerMerchantIDOk returns a tuple with the PartnerMerchantID field value if set, nil otherwise and a boolean to check if the value has been set.

func (*OrderStateRequest) GetState

func (o *OrderStateRequest) GetState() string

GetState returns the State field value

func (*OrderStateRequest) GetStateOk

func (o *OrderStateRequest) GetStateOk() (*string, bool)

GetStateOk returns a tuple with the State field value and a boolean to check if the value has been set.

func (*OrderStateRequest) HasCode

func (o *OrderStateRequest) HasCode() bool

HasCode returns a boolean if a field has been set.

func (*OrderStateRequest) HasDriverETA

func (o *OrderStateRequest) HasDriverETA() bool

HasDriverETA returns a boolean if a field has been set.

func (*OrderStateRequest) HasMessage

func (o *OrderStateRequest) HasMessage() bool

HasMessage returns a boolean if a field has been set.

func (*OrderStateRequest) HasPartnerMerchantID added in v1.0.1

func (o *OrderStateRequest) HasPartnerMerchantID() bool

HasPartnerMerchantID returns a boolean if a field has been set.

func (OrderStateRequest) MarshalJSON

func (o OrderStateRequest) MarshalJSON() ([]byte, error)

func (*OrderStateRequest) SetCode

func (o *OrderStateRequest) SetCode(v string)

SetCode gets a reference to the given string and assigns it to the Code field.

func (*OrderStateRequest) SetDriverETA

func (o *OrderStateRequest) SetDriverETA(v int32)

SetDriverETA gets a reference to the given NullableInt32 and assigns it to the DriverETA field.

func (*OrderStateRequest) SetDriverETANil

func (o *OrderStateRequest) SetDriverETANil()

SetDriverETANil sets the value for DriverETA to be an explicit nil

func (*OrderStateRequest) SetMerchantID

func (o *OrderStateRequest) SetMerchantID(v string)

SetMerchantID sets field value

func (*OrderStateRequest) SetMessage

func (o *OrderStateRequest) SetMessage(v string)

SetMessage gets a reference to the given string and assigns it to the Message field.

func (*OrderStateRequest) SetOrderID

func (o *OrderStateRequest) SetOrderID(v string)

SetOrderID sets field value

func (*OrderStateRequest) SetPartnerMerchantID added in v1.0.1

func (o *OrderStateRequest) SetPartnerMerchantID(v string)

SetPartnerMerchantID gets a reference to the given string and assigns it to the PartnerMerchantID field.

func (*OrderStateRequest) SetState

func (o *OrderStateRequest) SetState(v string)

SetState sets field value

func (OrderStateRequest) ToMap

func (o OrderStateRequest) ToMap() (map[string]interface{}, error)

func (*OrderStateRequest) UnmarshalJSON

func (o *OrderStateRequest) UnmarshalJSON(data []byte) (err error)

func (*OrderStateRequest) UnsetDriverETA

func (o *OrderStateRequest) UnsetDriverETA()

UnsetDriverETA ensures that no value is present for DriverETA, not even an explicit nil

type OutOfStockInstruction

type OutOfStockInstruction struct {
	// The short instruction message.
	Title *string `json:"title,omitempty"`
	// Type of out-of-stock instruction chosen by customer. `CONTACT` is disabled by default, kindly reach out to your integration manager if you wish to receive this instruction.
	InstructionType *string `json:"instructionType,omitempty"`
	// The preferred item's ID in the partner system. Only applicable when the instructionType is `SPECIFIC_ITEM`.
	ReplacementItemID *string `json:"replacementItemID,omitempty"`
	// The preferred item's ID in the Grab system. Only applicable when the instructionType is `SPECIFIC_ITEM`.
	ReplacementGrabItemID *string `json:"replacementGrabItemID,omitempty"`
	AdditionalProperties  map[string]interface{}
}

OutOfStockInstruction An JSON object that indicates the instructions to be taken by the merchant when the item is out of stock.

func NewOutOfStockInstruction

func NewOutOfStockInstruction() *OutOfStockInstruction

NewOutOfStockInstruction instantiates a new OutOfStockInstruction 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 NewOutOfStockInstructionWithDefaults

func NewOutOfStockInstructionWithDefaults() *OutOfStockInstruction

NewOutOfStockInstructionWithDefaults instantiates a new OutOfStockInstruction 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 (*OutOfStockInstruction) GetInstructionType

func (o *OutOfStockInstruction) GetInstructionType() string

GetInstructionType returns the InstructionType field value if set, zero value otherwise.

func (*OutOfStockInstruction) GetInstructionTypeOk

func (o *OutOfStockInstruction) GetInstructionTypeOk() (*string, bool)

GetInstructionTypeOk returns a tuple with the InstructionType field value if set, nil otherwise and a boolean to check if the value has been set.

func (*OutOfStockInstruction) GetReplacementGrabItemID

func (o *OutOfStockInstruction) GetReplacementGrabItemID() string

GetReplacementGrabItemID returns the ReplacementGrabItemID field value if set, zero value otherwise.

func (*OutOfStockInstruction) GetReplacementGrabItemIDOk

func (o *OutOfStockInstruction) GetReplacementGrabItemIDOk() (*string, bool)

GetReplacementGrabItemIDOk returns a tuple with the ReplacementGrabItemID field value if set, nil otherwise and a boolean to check if the value has been set.

func (*OutOfStockInstruction) GetReplacementItemID

func (o *OutOfStockInstruction) GetReplacementItemID() string

GetReplacementItemID returns the ReplacementItemID field value if set, zero value otherwise.

func (*OutOfStockInstruction) GetReplacementItemIDOk

func (o *OutOfStockInstruction) GetReplacementItemIDOk() (*string, bool)

GetReplacementItemIDOk returns a tuple with the ReplacementItemID field value if set, nil otherwise and a boolean to check if the value has been set.

func (*OutOfStockInstruction) GetTitle

func (o *OutOfStockInstruction) GetTitle() string

GetTitle returns the Title field value if set, zero value otherwise.

func (*OutOfStockInstruction) GetTitleOk

func (o *OutOfStockInstruction) GetTitleOk() (*string, bool)

GetTitleOk returns a tuple with the Title field value if set, nil otherwise and a boolean to check if the value has been set.

func (*OutOfStockInstruction) HasInstructionType

func (o *OutOfStockInstruction) HasInstructionType() bool

HasInstructionType returns a boolean if a field has been set.

func (*OutOfStockInstruction) HasReplacementGrabItemID

func (o *OutOfStockInstruction) HasReplacementGrabItemID() bool

HasReplacementGrabItemID returns a boolean if a field has been set.

func (*OutOfStockInstruction) HasReplacementItemID

func (o *OutOfStockInstruction) HasReplacementItemID() bool

HasReplacementItemID returns a boolean if a field has been set.

func (*OutOfStockInstruction) HasTitle

func (o *OutOfStockInstruction) HasTitle() bool

HasTitle returns a boolean if a field has been set.

func (OutOfStockInstruction) MarshalJSON

func (o OutOfStockInstruction) MarshalJSON() ([]byte, error)

func (*OutOfStockInstruction) SetInstructionType

func (o *OutOfStockInstruction) SetInstructionType(v string)

SetInstructionType gets a reference to the given string and assigns it to the InstructionType field.

func (*OutOfStockInstruction) SetReplacementGrabItemID

func (o *OutOfStockInstruction) SetReplacementGrabItemID(v string)

SetReplacementGrabItemID gets a reference to the given string and assigns it to the ReplacementGrabItemID field.

func (*OutOfStockInstruction) SetReplacementItemID

func (o *OutOfStockInstruction) SetReplacementItemID(v string)

SetReplacementItemID gets a reference to the given string and assigns it to the ReplacementItemID field.

func (*OutOfStockInstruction) SetTitle

func (o *OutOfStockInstruction) SetTitle(v string)

SetTitle gets a reference to the given string and assigns it to the Title field.

func (OutOfStockInstruction) ToMap

func (o OutOfStockInstruction) ToMap() (map[string]interface{}, error)

func (*OutOfStockInstruction) UnmarshalJSON

func (o *OutOfStockInstruction) UnmarshalJSON(data []byte) (err error)

type PartnerOauthRequest

type PartnerOauthRequest struct {
	// The client identifier issued to obtain the OAuth access token.
	ClientId string `json:"client_id"`
	// The client secret issued to obtain the OAuth access token.
	ClientSecret string `json:"client_secret"`
	// Refers to the way an application gets OAuth access token.
	GrantType string `json:"grant_type"`
	// A space delimited list of partner scopes.
	Scope                *string `json:"scope,omitempty"`
	AdditionalProperties map[string]interface{}
}

PartnerOauthRequest Information about GrabFood getting an OAuth access token from partners.

func NewPartnerOauthRequest

func NewPartnerOauthRequest(clientId string, clientSecret string, grantType string) *PartnerOauthRequest

NewPartnerOauthRequest instantiates a new PartnerOauthRequest 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 NewPartnerOauthRequestWithDefaults

func NewPartnerOauthRequestWithDefaults() *PartnerOauthRequest

NewPartnerOauthRequestWithDefaults instantiates a new PartnerOauthRequest 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 (*PartnerOauthRequest) GetClientId

func (o *PartnerOauthRequest) GetClientId() string

GetClientId returns the ClientId field value

func (*PartnerOauthRequest) GetClientIdOk

func (o *PartnerOauthRequest) GetClientIdOk() (*string, bool)

GetClientIdOk returns a tuple with the ClientId field value and a boolean to check if the value has been set.

func (*PartnerOauthRequest) GetClientSecret

func (o *PartnerOauthRequest) GetClientSecret() string

GetClientSecret returns the ClientSecret field value

func (*PartnerOauthRequest) GetClientSecretOk

func (o *PartnerOauthRequest) GetClientSecretOk() (*string, bool)

GetClientSecretOk returns a tuple with the ClientSecret field value and a boolean to check if the value has been set.

func (*PartnerOauthRequest) GetGrantType

func (o *PartnerOauthRequest) GetGrantType() string

GetGrantType returns the GrantType field value

func (*PartnerOauthRequest) GetGrantTypeOk

func (o *PartnerOauthRequest) GetGrantTypeOk() (*string, bool)

GetGrantTypeOk returns a tuple with the GrantType field value and a boolean to check if the value has been set.

func (*PartnerOauthRequest) GetScope

func (o *PartnerOauthRequest) GetScope() string

GetScope returns the Scope field value if set, zero value otherwise.

func (*PartnerOauthRequest) GetScopeOk

func (o *PartnerOauthRequest) GetScopeOk() (*string, bool)

GetScopeOk returns a tuple with the Scope field value if set, nil otherwise and a boolean to check if the value has been set.

func (*PartnerOauthRequest) HasScope

func (o *PartnerOauthRequest) HasScope() bool

HasScope returns a boolean if a field has been set.

func (PartnerOauthRequest) MarshalJSON

func (o PartnerOauthRequest) MarshalJSON() ([]byte, error)

func (*PartnerOauthRequest) SetClientId

func (o *PartnerOauthRequest) SetClientId(v string)

SetClientId sets field value

func (*PartnerOauthRequest) SetClientSecret

func (o *PartnerOauthRequest) SetClientSecret(v string)

SetClientSecret sets field value

func (*PartnerOauthRequest) SetGrantType

func (o *PartnerOauthRequest) SetGrantType(v string)

SetGrantType sets field value

func (*PartnerOauthRequest) SetScope

func (o *PartnerOauthRequest) SetScope(v string)

SetScope gets a reference to the given string and assigns it to the Scope field.

func (PartnerOauthRequest) ToMap

func (o PartnerOauthRequest) ToMap() (map[string]interface{}, error)

func (*PartnerOauthRequest) UnmarshalJSON

func (o *PartnerOauthRequest) UnmarshalJSON(data []byte) (err error)

type PartnerOauthResponse

type PartnerOauthResponse struct {
	// The OAuth 2.0 access token issued by the partner.
	AccessToken *string `json:"access_token,omitempty"`
	// The type of token issued which is case insensitive.
	TokenType *string `json:"token_type,omitempty"`
	// The access token lifespan in seconds.
	ExpiresIn            *int32 `json:"expires_in,omitempty"`
	AdditionalProperties map[string]interface{}
}

PartnerOauthResponse struct for PartnerOauthResponse

func NewPartnerOauthResponse

func NewPartnerOauthResponse() *PartnerOauthResponse

NewPartnerOauthResponse instantiates a new PartnerOauthResponse 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 NewPartnerOauthResponseWithDefaults

func NewPartnerOauthResponseWithDefaults() *PartnerOauthResponse

NewPartnerOauthResponseWithDefaults instantiates a new PartnerOauthResponse 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 (*PartnerOauthResponse) GetAccessToken

func (o *PartnerOauthResponse) GetAccessToken() string

GetAccessToken returns the AccessToken field value if set, zero value otherwise.

func (*PartnerOauthResponse) GetAccessTokenOk

func (o *PartnerOauthResponse) GetAccessTokenOk() (*string, bool)

GetAccessTokenOk returns a tuple with the AccessToken field value if set, nil otherwise and a boolean to check if the value has been set.

func (*PartnerOauthResponse) GetExpiresIn

func (o *PartnerOauthResponse) GetExpiresIn() int32

GetExpiresIn returns the ExpiresIn field value if set, zero value otherwise.

func (*PartnerOauthResponse) GetExpiresInOk

func (o *PartnerOauthResponse) GetExpiresInOk() (*int32, bool)

GetExpiresInOk returns a tuple with the ExpiresIn field value if set, nil otherwise and a boolean to check if the value has been set.

func (*PartnerOauthResponse) GetTokenType

func (o *PartnerOauthResponse) GetTokenType() string

GetTokenType returns the TokenType field value if set, zero value otherwise.

func (*PartnerOauthResponse) GetTokenTypeOk

func (o *PartnerOauthResponse) GetTokenTypeOk() (*string, bool)

GetTokenTypeOk returns a tuple with the TokenType field value if set, nil otherwise and a boolean to check if the value has been set.

func (*PartnerOauthResponse) HasAccessToken

func (o *PartnerOauthResponse) HasAccessToken() bool

HasAccessToken returns a boolean if a field has been set.

func (*PartnerOauthResponse) HasExpiresIn

func (o *PartnerOauthResponse) HasExpiresIn() bool

HasExpiresIn returns a boolean if a field has been set.

func (*PartnerOauthResponse) HasTokenType

func (o *PartnerOauthResponse) HasTokenType() bool

HasTokenType returns a boolean if a field has been set.

func (PartnerOauthResponse) MarshalJSON

func (o PartnerOauthResponse) MarshalJSON() ([]byte, error)

func (*PartnerOauthResponse) SetAccessToken

func (o *PartnerOauthResponse) SetAccessToken(v string)

SetAccessToken gets a reference to the given string and assigns it to the AccessToken field.

func (*PartnerOauthResponse) SetExpiresIn

func (o *PartnerOauthResponse) SetExpiresIn(v int32)

SetExpiresIn gets a reference to the given int32 and assigns it to the ExpiresIn field.

func (*PartnerOauthResponse) SetTokenType

func (o *PartnerOauthResponse) SetTokenType(v string)

SetTokenType gets a reference to the given string and assigns it to the TokenType field.

func (PartnerOauthResponse) ToMap

func (o PartnerOauthResponse) ToMap() (map[string]interface{}, error)

func (*PartnerOauthResponse) UnmarshalJSON

func (o *PartnerOauthResponse) UnmarshalJSON(data []byte) (err error)

type PauseStoreAPIService

type PauseStoreAPIService service

PauseStoreAPIService PauseStoreAPI service

func (*PauseStoreAPIService) PauseStore

PauseStore Pause store

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return ApiPauseStoreRequest

func (*PauseStoreAPIService) PauseStoreExecute

func (a *PauseStoreAPIService) PauseStoreExecute(r ApiPauseStoreRequest) (*http.Response, error)

Execute executes the request

type PauseStoreRequest

type PauseStoreRequest struct {
	// The merchant's ID that is in GrabFood's database.
	MerchantID string `json:"merchantID"`
	// Boolean value to pause or unpause store.
	IsPause bool `json:"isPause"`
	// The duration to pause the store. Only required when `isPause=true`.
	Duration             *string `json:"duration,omitempty"`
	AdditionalProperties map[string]interface{}
}

PauseStoreRequest This request pauses a store temporarily for (30 minutes/1 hour/24 hours) or unpauses a store on GrabFood.

func NewPauseStoreRequest

func NewPauseStoreRequest(merchantID string, isPause bool) *PauseStoreRequest

NewPauseStoreRequest instantiates a new PauseStoreRequest 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 NewPauseStoreRequestWithDefaults

func NewPauseStoreRequestWithDefaults() *PauseStoreRequest

NewPauseStoreRequestWithDefaults instantiates a new PauseStoreRequest 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 (*PauseStoreRequest) GetDuration

func (o *PauseStoreRequest) GetDuration() string

GetDuration returns the Duration field value if set, zero value otherwise.

func (*PauseStoreRequest) GetDurationOk

func (o *PauseStoreRequest) GetDurationOk() (*string, bool)

GetDurationOk returns a tuple with the Duration field value if set, nil otherwise and a boolean to check if the value has been set.

func (*PauseStoreRequest) GetIsPause

func (o *PauseStoreRequest) GetIsPause() bool

GetIsPause returns the IsPause field value

func (*PauseStoreRequest) GetIsPauseOk

func (o *PauseStoreRequest) GetIsPauseOk() (*bool, bool)

GetIsPauseOk returns a tuple with the IsPause field value and a boolean to check if the value has been set.

func (*PauseStoreRequest) GetMerchantID

func (o *PauseStoreRequest) GetMerchantID() string

GetMerchantID returns the MerchantID field value

func (*PauseStoreRequest) GetMerchantIDOk

func (o *PauseStoreRequest) GetMerchantIDOk() (*string, bool)

GetMerchantIDOk returns a tuple with the MerchantID field value and a boolean to check if the value has been set.

func (*PauseStoreRequest) HasDuration

func (o *PauseStoreRequest) HasDuration() bool

HasDuration returns a boolean if a field has been set.

func (PauseStoreRequest) MarshalJSON

func (o PauseStoreRequest) MarshalJSON() ([]byte, error)

func (*PauseStoreRequest) SetDuration

func (o *PauseStoreRequest) SetDuration(v string)

SetDuration gets a reference to the given string and assigns it to the Duration field.

func (*PauseStoreRequest) SetIsPause

func (o *PauseStoreRequest) SetIsPause(v bool)

SetIsPause sets field value

func (*PauseStoreRequest) SetMerchantID

func (o *PauseStoreRequest) SetMerchantID(v string)

SetMerchantID sets field value

func (PauseStoreRequest) ToMap

func (o PauseStoreRequest) ToMap() (map[string]interface{}, error)

func (*PauseStoreRequest) UnmarshalJSON

func (o *PauseStoreRequest) UnmarshalJSON(data []byte) (err error)

type Purchasability

type Purchasability struct {
	DeliveryOnDemandGrabApp      *bool `json:"Delivery_OnDemand_GrabApp,omitempty"`
	DeliveryScheduledGrabApp     *bool `json:"Delivery_Scheduled_GrabApp,omitempty"`
	SelfPickUpOnDemandGrabApp    *bool `json:"SelfPickUp_OnDemand_GrabApp,omitempty"`
	DineInOnDemandGrabApp        *bool `json:"DineIn_OnDemand_GrabApp,omitempty"`
	DeliveryOnDemandStoreFront   *bool `json:"Delivery_OnDemand_StoreFront,omitempty"`
	DeliveryScheduledStoreFront  *bool `json:"Delivery_Scheduled_StoreFront,omitempty"`
	SelfPickUpOnDemandStoreFront *bool `json:"SelfPickUp_OnDemand_StoreFront,omitempty"`
	AdditionalProperties         map[string]interface{}
}

Purchasability Purchasability is set to true by default for all service type, unless it is explicitly set to false. Modifier will reuse it’s item’s purchasability. Refer [Service Based Menu](#section/Service-Based-Menu).

func NewPurchasability

func NewPurchasability() *Purchasability

NewPurchasability instantiates a new Purchasability 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 NewPurchasabilityWithDefaults

func NewPurchasabilityWithDefaults() *Purchasability

NewPurchasabilityWithDefaults instantiates a new Purchasability 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 (*Purchasability) GetDeliveryOnDemandGrabApp

func (o *Purchasability) GetDeliveryOnDemandGrabApp() bool

GetDeliveryOnDemandGrabApp returns the DeliveryOnDemandGrabApp field value if set, zero value otherwise.

func (*Purchasability) GetDeliveryOnDemandGrabAppOk

func (o *Purchasability) GetDeliveryOnDemandGrabAppOk() (*bool, bool)

GetDeliveryOnDemandGrabAppOk returns a tuple with the DeliveryOnDemandGrabApp field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Purchasability) GetDeliveryOnDemandStoreFront

func (o *Purchasability) GetDeliveryOnDemandStoreFront() bool

GetDeliveryOnDemandStoreFront returns the DeliveryOnDemandStoreFront field value if set, zero value otherwise.

func (*Purchasability) GetDeliveryOnDemandStoreFrontOk

func (o *Purchasability) GetDeliveryOnDemandStoreFrontOk() (*bool, bool)

GetDeliveryOnDemandStoreFrontOk returns a tuple with the DeliveryOnDemandStoreFront field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Purchasability) GetDeliveryScheduledGrabApp

func (o *Purchasability) GetDeliveryScheduledGrabApp() bool

GetDeliveryScheduledGrabApp returns the DeliveryScheduledGrabApp field value if set, zero value otherwise.

func (*Purchasability) GetDeliveryScheduledGrabAppOk

func (o *Purchasability) GetDeliveryScheduledGrabAppOk() (*bool, bool)

GetDeliveryScheduledGrabAppOk returns a tuple with the DeliveryScheduledGrabApp field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Purchasability) GetDeliveryScheduledStoreFront

func (o *Purchasability) GetDeliveryScheduledStoreFront() bool

GetDeliveryScheduledStoreFront returns the DeliveryScheduledStoreFront field value if set, zero value otherwise.

func (*Purchasability) GetDeliveryScheduledStoreFrontOk

func (o *Purchasability) GetDeliveryScheduledStoreFrontOk() (*bool, bool)

GetDeliveryScheduledStoreFrontOk returns a tuple with the DeliveryScheduledStoreFront field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Purchasability) GetDineInOnDemandGrabApp

func (o *Purchasability) GetDineInOnDemandGrabApp() bool

GetDineInOnDemandGrabApp returns the DineInOnDemandGrabApp field value if set, zero value otherwise.

func (*Purchasability) GetDineInOnDemandGrabAppOk

func (o *Purchasability) GetDineInOnDemandGrabAppOk() (*bool, bool)

GetDineInOnDemandGrabAppOk returns a tuple with the DineInOnDemandGrabApp field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Purchasability) GetSelfPickUpOnDemandGrabApp

func (o *Purchasability) GetSelfPickUpOnDemandGrabApp() bool

GetSelfPickUpOnDemandGrabApp returns the SelfPickUpOnDemandGrabApp field value if set, zero value otherwise.

func (*Purchasability) GetSelfPickUpOnDemandGrabAppOk

func (o *Purchasability) GetSelfPickUpOnDemandGrabAppOk() (*bool, bool)

GetSelfPickUpOnDemandGrabAppOk returns a tuple with the SelfPickUpOnDemandGrabApp field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Purchasability) GetSelfPickUpOnDemandStoreFront

func (o *Purchasability) GetSelfPickUpOnDemandStoreFront() bool

GetSelfPickUpOnDemandStoreFront returns the SelfPickUpOnDemandStoreFront field value if set, zero value otherwise.

func (*Purchasability) GetSelfPickUpOnDemandStoreFrontOk

func (o *Purchasability) GetSelfPickUpOnDemandStoreFrontOk() (*bool, bool)

GetSelfPickUpOnDemandStoreFrontOk returns a tuple with the SelfPickUpOnDemandStoreFront field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Purchasability) HasDeliveryOnDemandGrabApp

func (o *Purchasability) HasDeliveryOnDemandGrabApp() bool

HasDeliveryOnDemandGrabApp returns a boolean if a field has been set.

func (*Purchasability) HasDeliveryOnDemandStoreFront

func (o *Purchasability) HasDeliveryOnDemandStoreFront() bool

HasDeliveryOnDemandStoreFront returns a boolean if a field has been set.

func (*Purchasability) HasDeliveryScheduledGrabApp

func (o *Purchasability) HasDeliveryScheduledGrabApp() bool

HasDeliveryScheduledGrabApp returns a boolean if a field has been set.

func (*Purchasability) HasDeliveryScheduledStoreFront

func (o *Purchasability) HasDeliveryScheduledStoreFront() bool

HasDeliveryScheduledStoreFront returns a boolean if a field has been set.

func (*Purchasability) HasDineInOnDemandGrabApp

func (o *Purchasability) HasDineInOnDemandGrabApp() bool

HasDineInOnDemandGrabApp returns a boolean if a field has been set.

func (*Purchasability) HasSelfPickUpOnDemandGrabApp

func (o *Purchasability) HasSelfPickUpOnDemandGrabApp() bool

HasSelfPickUpOnDemandGrabApp returns a boolean if a field has been set.

func (*Purchasability) HasSelfPickUpOnDemandStoreFront

func (o *Purchasability) HasSelfPickUpOnDemandStoreFront() bool

HasSelfPickUpOnDemandStoreFront returns a boolean if a field has been set.

func (Purchasability) MarshalJSON

func (o Purchasability) MarshalJSON() ([]byte, error)

func (*Purchasability) SetDeliveryOnDemandGrabApp

func (o *Purchasability) SetDeliveryOnDemandGrabApp(v bool)

SetDeliveryOnDemandGrabApp gets a reference to the given bool and assigns it to the DeliveryOnDemandGrabApp field.

func (*Purchasability) SetDeliveryOnDemandStoreFront

func (o *Purchasability) SetDeliveryOnDemandStoreFront(v bool)

SetDeliveryOnDemandStoreFront gets a reference to the given bool and assigns it to the DeliveryOnDemandStoreFront field.

func (*Purchasability) SetDeliveryScheduledGrabApp

func (o *Purchasability) SetDeliveryScheduledGrabApp(v bool)

SetDeliveryScheduledGrabApp gets a reference to the given bool and assigns it to the DeliveryScheduledGrabApp field.

func (*Purchasability) SetDeliveryScheduledStoreFront

func (o *Purchasability) SetDeliveryScheduledStoreFront(v bool)

SetDeliveryScheduledStoreFront gets a reference to the given bool and assigns it to the DeliveryScheduledStoreFront field.

func (*Purchasability) SetDineInOnDemandGrabApp

func (o *Purchasability) SetDineInOnDemandGrabApp(v bool)

SetDineInOnDemandGrabApp gets a reference to the given bool and assigns it to the DineInOnDemandGrabApp field.

func (*Purchasability) SetSelfPickUpOnDemandGrabApp

func (o *Purchasability) SetSelfPickUpOnDemandGrabApp(v bool)

SetSelfPickUpOnDemandGrabApp gets a reference to the given bool and assigns it to the SelfPickUpOnDemandGrabApp field.

func (*Purchasability) SetSelfPickUpOnDemandStoreFront

func (o *Purchasability) SetSelfPickUpOnDemandStoreFront(v bool)

SetSelfPickUpOnDemandStoreFront gets a reference to the given bool and assigns it to the SelfPickUpOnDemandStoreFront field.

func (Purchasability) ToMap

func (o Purchasability) ToMap() (map[string]interface{}, error)

func (*Purchasability) UnmarshalJSON

func (o *Purchasability) UnmarshalJSON(data []byte) (err error)

type PushIntegrationStatusWebhookRequest added in v1.0.1

type PushIntegrationStatusWebhookRequest struct {
	// The merchant's ID that is on the partner's database.
	PartnerMerchantID string `json:"partnerMerchantID"`
	// The merchant's ID that is in GrabFood's database.
	GrabMerchantID string `json:"grabMerchantID"`
	// The store integration status. - `INACTIVE`: Merchant integration deactivated - `ACTIVE`: Merchant integration activated - `SYNCING`: Merchant integration is syncing - `FAILED`: Merchant integration has failed
	IntegrationStatus    string `json:"integrationStatus"`
	AdditionalProperties map[string]interface{}
}

PushIntegrationStatusWebhookRequest

func NewPushIntegrationStatusWebhookRequest added in v1.0.1

func NewPushIntegrationStatusWebhookRequest(partnerMerchantID string, grabMerchantID string, integrationStatus string) *PushIntegrationStatusWebhookRequest

NewPushIntegrationStatusWebhookRequest instantiates a new PushIntegrationStatusWebhookRequest 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 NewPushIntegrationStatusWebhookRequestWithDefaults added in v1.0.1

func NewPushIntegrationStatusWebhookRequestWithDefaults() *PushIntegrationStatusWebhookRequest

NewPushIntegrationStatusWebhookRequestWithDefaults instantiates a new PushIntegrationStatusWebhookRequest 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 (*PushIntegrationStatusWebhookRequest) GetGrabMerchantID added in v1.0.1

func (o *PushIntegrationStatusWebhookRequest) GetGrabMerchantID() string

GetGrabMerchantID returns the GrabMerchantID field value

func (*PushIntegrationStatusWebhookRequest) GetGrabMerchantIDOk added in v1.0.1

func (o *PushIntegrationStatusWebhookRequest) GetGrabMerchantIDOk() (*string, bool)

GetGrabMerchantIDOk returns a tuple with the GrabMerchantID field value and a boolean to check if the value has been set.

func (*PushIntegrationStatusWebhookRequest) GetIntegrationStatus added in v1.0.1

func (o *PushIntegrationStatusWebhookRequest) GetIntegrationStatus() string

GetIntegrationStatus returns the IntegrationStatus field value

func (*PushIntegrationStatusWebhookRequest) GetIntegrationStatusOk added in v1.0.1

func (o *PushIntegrationStatusWebhookRequest) GetIntegrationStatusOk() (*string, bool)

GetIntegrationStatusOk returns a tuple with the IntegrationStatus field value and a boolean to check if the value has been set.

func (*PushIntegrationStatusWebhookRequest) GetPartnerMerchantID added in v1.0.1

func (o *PushIntegrationStatusWebhookRequest) GetPartnerMerchantID() string

GetPartnerMerchantID returns the PartnerMerchantID field value

func (*PushIntegrationStatusWebhookRequest) GetPartnerMerchantIDOk added in v1.0.1

func (o *PushIntegrationStatusWebhookRequest) GetPartnerMerchantIDOk() (*string, bool)

GetPartnerMerchantIDOk returns a tuple with the PartnerMerchantID field value and a boolean to check if the value has been set.

func (PushIntegrationStatusWebhookRequest) MarshalJSON added in v1.0.1

func (o PushIntegrationStatusWebhookRequest) MarshalJSON() ([]byte, error)

func (*PushIntegrationStatusWebhookRequest) SetGrabMerchantID added in v1.0.1

func (o *PushIntegrationStatusWebhookRequest) SetGrabMerchantID(v string)

SetGrabMerchantID sets field value

func (*PushIntegrationStatusWebhookRequest) SetIntegrationStatus added in v1.0.1

func (o *PushIntegrationStatusWebhookRequest) SetIntegrationStatus(v string)

SetIntegrationStatus sets field value

func (*PushIntegrationStatusWebhookRequest) SetPartnerMerchantID added in v1.0.1

func (o *PushIntegrationStatusWebhookRequest) SetPartnerMerchantID(v string)

SetPartnerMerchantID sets field value

func (PushIntegrationStatusWebhookRequest) ToMap added in v1.0.1

func (o PushIntegrationStatusWebhookRequest) ToMap() (map[string]interface{}, error)

func (*PushIntegrationStatusWebhookRequest) UnmarshalJSON added in v1.0.1

func (o *PushIntegrationStatusWebhookRequest) UnmarshalJSON(data []byte) (err error)

type Receiver

type Receiver struct {
	// The name of the receiver.
	Name *string `json:"name,omitempty"`
	// The receiver's phone number.
	Phones               *string  `json:"phones,omitempty"`
	Address              *Address `json:"address,omitempty"`
	AdditionalProperties map[string]interface{}
}

Receiver A JSON object containing the receiver information. Only applicable for orders that are delivered by the restaurant. `null` if not applicable.

func NewReceiver

func NewReceiver() *Receiver

NewReceiver instantiates a new Receiver 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 NewReceiverWithDefaults

func NewReceiverWithDefaults() *Receiver

NewReceiverWithDefaults instantiates a new Receiver 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 (*Receiver) GetAddress

func (o *Receiver) GetAddress() Address

GetAddress returns the Address field value if set, zero value otherwise.

func (*Receiver) GetAddressOk

func (o *Receiver) GetAddressOk() (*Address, bool)

GetAddressOk returns a tuple with the Address field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Receiver) GetName

func (o *Receiver) GetName() string

GetName returns the Name field value if set, zero value otherwise.

func (*Receiver) GetNameOk

func (o *Receiver) GetNameOk() (*string, bool)

GetNameOk returns a tuple with the Name field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Receiver) GetPhones

func (o *Receiver) GetPhones() string

GetPhones returns the Phones field value if set, zero value otherwise.

func (*Receiver) GetPhonesOk

func (o *Receiver) GetPhonesOk() (*string, bool)

GetPhonesOk returns a tuple with the Phones field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Receiver) HasAddress

func (o *Receiver) HasAddress() bool

HasAddress returns a boolean if a field has been set.

func (*Receiver) HasName

func (o *Receiver) HasName() bool

HasName returns a boolean if a field has been set.

func (*Receiver) HasPhones

func (o *Receiver) HasPhones() bool

HasPhones returns a boolean if a field has been set.

func (Receiver) MarshalJSON

func (o Receiver) MarshalJSON() ([]byte, error)

func (*Receiver) SetAddress

func (o *Receiver) SetAddress(v Address)

SetAddress gets a reference to the given Address and assigns it to the Address field.

func (*Receiver) SetName

func (o *Receiver) SetName(v string)

SetName gets a reference to the given string and assigns it to the Name field.

func (*Receiver) SetPhones

func (o *Receiver) SetPhones(v string)

SetPhones gets a reference to the given string and assigns it to the Phones field.

func (Receiver) ToMap

func (o Receiver) ToMap() (map[string]interface{}, error)

func (*Receiver) UnmarshalJSON

func (o *Receiver) UnmarshalJSON(data []byte) (err error)

type RedeemDineInVoucherRequest

type RedeemDineInVoucherRequest struct {
	// This certificateID is decoded from scanning the QR code, and 1:1 mapping with `voucherCode`.
	CertificateID string `json:"certificateID"`
	// The merchant's ID that is in GrabFood's database.
	MerchantID           string `json:"merchantID"`
	AdditionalProperties map[string]interface{}
}

RedeemDineInVoucherRequest Dine in voucher redemption

func NewRedeemDineInVoucherRequest

func NewRedeemDineInVoucherRequest(certificateID string, merchantID string) *RedeemDineInVoucherRequest

NewRedeemDineInVoucherRequest instantiates a new RedeemDineInVoucherRequest 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 NewRedeemDineInVoucherRequestWithDefaults

func NewRedeemDineInVoucherRequestWithDefaults() *RedeemDineInVoucherRequest

NewRedeemDineInVoucherRequestWithDefaults instantiates a new RedeemDineInVoucherRequest 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 (*RedeemDineInVoucherRequest) GetCertificateID

func (o *RedeemDineInVoucherRequest) GetCertificateID() string

GetCertificateID returns the CertificateID field value

func (*RedeemDineInVoucherRequest) GetCertificateIDOk

func (o *RedeemDineInVoucherRequest) GetCertificateIDOk() (*string, bool)

GetCertificateIDOk returns a tuple with the CertificateID field value and a boolean to check if the value has been set.

func (*RedeemDineInVoucherRequest) GetMerchantID

func (o *RedeemDineInVoucherRequest) GetMerchantID() string

GetMerchantID returns the MerchantID field value

func (*RedeemDineInVoucherRequest) GetMerchantIDOk

func (o *RedeemDineInVoucherRequest) GetMerchantIDOk() (*string, bool)

GetMerchantIDOk returns a tuple with the MerchantID field value and a boolean to check if the value has been set.

func (RedeemDineInVoucherRequest) MarshalJSON

func (o RedeemDineInVoucherRequest) MarshalJSON() ([]byte, error)

func (*RedeemDineInVoucherRequest) SetCertificateID

func (o *RedeemDineInVoucherRequest) SetCertificateID(v string)

SetCertificateID sets field value

func (*RedeemDineInVoucherRequest) SetMerchantID

func (o *RedeemDineInVoucherRequest) SetMerchantID(v string)

SetMerchantID sets field value

func (RedeemDineInVoucherRequest) ToMap

func (o RedeemDineInVoucherRequest) ToMap() (map[string]interface{}, error)

func (*RedeemDineInVoucherRequest) UnmarshalJSON

func (o *RedeemDineInVoucherRequest) UnmarshalJSON(data []byte) (err error)

type RedeemDineInVoucherResponse

type RedeemDineInVoucherResponse struct {
	// This certificateID is decoded from scanning the QR code, and 1:1 mapping with `voucherCode`.
	CertificateID *string `json:"certificateID,omitempty"`
	// A short code for the dine-in voucher purchased by the user.
	VoucherCode  *string       `json:"voucherCode,omitempty"`
	Voucher      *Voucher      `json:"voucher,omitempty"`
	RedeemResult *RedeemResult `json:"redeemResult,omitempty"`
	// The merchant's ID that is in GrabFood's database.
	MerchantID *string `json:"merchantID,omitempty"`
	// The dine-in voucher campaign's ID in GrabFood's database.
	CampaignID           *string `json:"campaignID,omitempty"`
	AdditionalProperties map[string]interface{}
}

RedeemDineInVoucherResponse

func NewRedeemDineInVoucherResponse

func NewRedeemDineInVoucherResponse() *RedeemDineInVoucherResponse

NewRedeemDineInVoucherResponse instantiates a new RedeemDineInVoucherResponse 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 NewRedeemDineInVoucherResponseWithDefaults

func NewRedeemDineInVoucherResponseWithDefaults() *RedeemDineInVoucherResponse

NewRedeemDineInVoucherResponseWithDefaults instantiates a new RedeemDineInVoucherResponse 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 (*RedeemDineInVoucherResponse) GetCampaignID

func (o *RedeemDineInVoucherResponse) GetCampaignID() string

GetCampaignID returns the CampaignID field value if set, zero value otherwise.

func (*RedeemDineInVoucherResponse) GetCampaignIDOk

func (o *RedeemDineInVoucherResponse) GetCampaignIDOk() (*string, bool)

GetCampaignIDOk returns a tuple with the CampaignID field value if set, nil otherwise and a boolean to check if the value has been set.

func (*RedeemDineInVoucherResponse) GetCertificateID

func (o *RedeemDineInVoucherResponse) GetCertificateID() string

GetCertificateID returns the CertificateID field value if set, zero value otherwise.

func (*RedeemDineInVoucherResponse) GetCertificateIDOk

func (o *RedeemDineInVoucherResponse) GetCertificateIDOk() (*string, bool)

GetCertificateIDOk returns a tuple with the CertificateID field value if set, nil otherwise and a boolean to check if the value has been set.

func (*RedeemDineInVoucherResponse) GetMerchantID

func (o *RedeemDineInVoucherResponse) GetMerchantID() string

GetMerchantID returns the MerchantID field value if set, zero value otherwise.

func (*RedeemDineInVoucherResponse) GetMerchantIDOk

func (o *RedeemDineInVoucherResponse) GetMerchantIDOk() (*string, bool)

GetMerchantIDOk returns a tuple with the MerchantID field value if set, nil otherwise and a boolean to check if the value has been set.

func (*RedeemDineInVoucherResponse) GetRedeemResult

func (o *RedeemDineInVoucherResponse) GetRedeemResult() RedeemResult

GetRedeemResult returns the RedeemResult field value if set, zero value otherwise.

func (*RedeemDineInVoucherResponse) GetRedeemResultOk

func (o *RedeemDineInVoucherResponse) GetRedeemResultOk() (*RedeemResult, bool)

GetRedeemResultOk returns a tuple with the RedeemResult field value if set, nil otherwise and a boolean to check if the value has been set.

func (*RedeemDineInVoucherResponse) GetVoucher

func (o *RedeemDineInVoucherResponse) GetVoucher() Voucher

GetVoucher returns the Voucher field value if set, zero value otherwise.

func (*RedeemDineInVoucherResponse) GetVoucherCode

func (o *RedeemDineInVoucherResponse) GetVoucherCode() string

GetVoucherCode returns the VoucherCode field value if set, zero value otherwise.

func (*RedeemDineInVoucherResponse) GetVoucherCodeOk

func (o *RedeemDineInVoucherResponse) GetVoucherCodeOk() (*string, bool)

GetVoucherCodeOk returns a tuple with the VoucherCode field value if set, nil otherwise and a boolean to check if the value has been set.

func (*RedeemDineInVoucherResponse) GetVoucherOk

func (o *RedeemDineInVoucherResponse) GetVoucherOk() (*Voucher, bool)

GetVoucherOk returns a tuple with the Voucher field value if set, nil otherwise and a boolean to check if the value has been set.

func (*RedeemDineInVoucherResponse) HasCampaignID

func (o *RedeemDineInVoucherResponse) HasCampaignID() bool

HasCampaignID returns a boolean if a field has been set.

func (*RedeemDineInVoucherResponse) HasCertificateID

func (o *RedeemDineInVoucherResponse) HasCertificateID() bool

HasCertificateID returns a boolean if a field has been set.

func (*RedeemDineInVoucherResponse) HasMerchantID

func (o *RedeemDineInVoucherResponse) HasMerchantID() bool

HasMerchantID returns a boolean if a field has been set.

func (*RedeemDineInVoucherResponse) HasRedeemResult

func (o *RedeemDineInVoucherResponse) HasRedeemResult() bool

HasRedeemResult returns a boolean if a field has been set.

func (*RedeemDineInVoucherResponse) HasVoucher

func (o *RedeemDineInVoucherResponse) HasVoucher() bool

HasVoucher returns a boolean if a field has been set.

func (*RedeemDineInVoucherResponse) HasVoucherCode

func (o *RedeemDineInVoucherResponse) HasVoucherCode() bool

HasVoucherCode returns a boolean if a field has been set.

func (RedeemDineInVoucherResponse) MarshalJSON

func (o RedeemDineInVoucherResponse) MarshalJSON() ([]byte, error)

func (*RedeemDineInVoucherResponse) SetCampaignID

func (o *RedeemDineInVoucherResponse) SetCampaignID(v string)

SetCampaignID gets a reference to the given string and assigns it to the CampaignID field.

func (*RedeemDineInVoucherResponse) SetCertificateID

func (o *RedeemDineInVoucherResponse) SetCertificateID(v string)

SetCertificateID gets a reference to the given string and assigns it to the CertificateID field.

func (*RedeemDineInVoucherResponse) SetMerchantID

func (o *RedeemDineInVoucherResponse) SetMerchantID(v string)

SetMerchantID gets a reference to the given string and assigns it to the MerchantID field.

func (*RedeemDineInVoucherResponse) SetRedeemResult

func (o *RedeemDineInVoucherResponse) SetRedeemResult(v RedeemResult)

SetRedeemResult gets a reference to the given RedeemResult and assigns it to the RedeemResult field.

func (*RedeemDineInVoucherResponse) SetVoucher

func (o *RedeemDineInVoucherResponse) SetVoucher(v Voucher)

SetVoucher gets a reference to the given Voucher and assigns it to the Voucher field.

func (*RedeemDineInVoucherResponse) SetVoucherCode

func (o *RedeemDineInVoucherResponse) SetVoucherCode(v string)

SetVoucherCode gets a reference to the given string and assigns it to the VoucherCode field.

func (RedeemDineInVoucherResponse) ToMap

func (o RedeemDineInVoucherResponse) ToMap() (map[string]interface{}, error)

func (*RedeemDineInVoucherResponse) UnmarshalJSON

func (o *RedeemDineInVoucherResponse) UnmarshalJSON(data []byte) (err error)

type RedeemDineinVoucherAPIService

type RedeemDineinVoucherAPIService service

RedeemDineinVoucherAPIService RedeemDineinVoucherAPI service

func (*RedeemDineinVoucherAPIService) RedeemDineinVoucher

RedeemDineinVoucher Redeem Dine In Voucher

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return ApiRedeemDineinVoucherRequest

func (*RedeemDineinVoucherAPIService) RedeemDineinVoucherExecute

Execute executes the request

@return RedeemDineInVoucherResponse

type RedeemResult

type RedeemResult struct {
	// To indicate whether the dine-in voucher redemption succeeded.
	Success *bool `json:"success,omitempty"`
	// The code for the reason of failed redemption. Empty if the `success` is true.  * `VOUCHER_REDEEMED` - The voucher has already been redeemed. * `INVALID_STATE` - The current status of voucher is EXPIRED or REFUNDED. * `REDEEM_FAILED` - Internal service error. * `INVALID_MERCHANT` - Voucher not applicable for this merchant. * `INVALID_ID` - Invalid certificateID.
	Code                 *string `json:"code,omitempty"`
	AdditionalProperties map[string]interface{}
}

RedeemResult A JSON object containing dine-in voucher details.

func NewRedeemResult

func NewRedeemResult() *RedeemResult

NewRedeemResult instantiates a new RedeemResult 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 NewRedeemResultWithDefaults

func NewRedeemResultWithDefaults() *RedeemResult

NewRedeemResultWithDefaults instantiates a new RedeemResult 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 (*RedeemResult) GetCode

func (o *RedeemResult) GetCode() string

GetCode returns the Code field value if set, zero value otherwise.

func (*RedeemResult) GetCodeOk

func (o *RedeemResult) GetCodeOk() (*string, bool)

GetCodeOk returns a tuple with the Code field value if set, nil otherwise and a boolean to check if the value has been set.

func (*RedeemResult) GetSuccess

func (o *RedeemResult) GetSuccess() bool

GetSuccess returns the Success field value if set, zero value otherwise.

func (*RedeemResult) GetSuccessOk

func (o *RedeemResult) GetSuccessOk() (*bool, bool)

GetSuccessOk returns a tuple with the Success field value if set, nil otherwise and a boolean to check if the value has been set.

func (*RedeemResult) HasCode

func (o *RedeemResult) HasCode() bool

HasCode returns a boolean if a field has been set.

func (*RedeemResult) HasSuccess

func (o *RedeemResult) HasSuccess() bool

HasSuccess returns a boolean if a field has been set.

func (RedeemResult) MarshalJSON

func (o RedeemResult) MarshalJSON() ([]byte, error)

func (*RedeemResult) SetCode

func (o *RedeemResult) SetCode(v string)

SetCode gets a reference to the given string and assigns it to the Code field.

func (*RedeemResult) SetSuccess

func (o *RedeemResult) SetSuccess(v bool)

SetSuccess gets a reference to the given bool and assigns it to the Success field.

func (RedeemResult) ToMap

func (o RedeemResult) ToMap() (map[string]interface{}, error)

func (*RedeemResult) UnmarshalJSON

func (o *RedeemResult) UnmarshalJSON(data []byte) (err error)

type RegisterMembershipNativeRequest

type RegisterMembershipNativeRequest struct {
	// The id used to identify an unique grab user.
	GrabID string `json:"grabID"`
	// Grab user's phone number for registration.
	PhoneNumber *string `json:"phoneNumber,omitempty"`
	// Grab user's name for registration.
	Name *string `json:"name,omitempty"`
	// Grab user's email address for registration.
	Email                *string `json:"email,omitempty"`
	AdditionalProperties map[string]interface{}
}

RegisterMembershipNativeRequest This request submits membership registration request to partner.

func NewRegisterMembershipNativeRequest

func NewRegisterMembershipNativeRequest(grabID string) *RegisterMembershipNativeRequest

NewRegisterMembershipNativeRequest instantiates a new RegisterMembershipNativeRequest 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 NewRegisterMembershipNativeRequestWithDefaults

func NewRegisterMembershipNativeRequestWithDefaults() *RegisterMembershipNativeRequest

NewRegisterMembershipNativeRequestWithDefaults instantiates a new RegisterMembershipNativeRequest 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 (*RegisterMembershipNativeRequest) GetEmail

GetEmail returns the Email field value if set, zero value otherwise.

func (*RegisterMembershipNativeRequest) GetEmailOk

func (o *RegisterMembershipNativeRequest) GetEmailOk() (*string, bool)

GetEmailOk returns a tuple with the Email field value if set, nil otherwise and a boolean to check if the value has been set.

func (*RegisterMembershipNativeRequest) GetGrabID

func (o *RegisterMembershipNativeRequest) GetGrabID() string

GetGrabID returns the GrabID field value

func (*RegisterMembershipNativeRequest) GetGrabIDOk

func (o *RegisterMembershipNativeRequest) GetGrabIDOk() (*string, bool)

GetGrabIDOk returns a tuple with the GrabID field value and a boolean to check if the value has been set.

func (*RegisterMembershipNativeRequest) GetName

GetName returns the Name field value if set, zero value otherwise.

func (*RegisterMembershipNativeRequest) GetNameOk

func (o *RegisterMembershipNativeRequest) GetNameOk() (*string, bool)

GetNameOk returns a tuple with the Name field value if set, nil otherwise and a boolean to check if the value has been set.

func (*RegisterMembershipNativeRequest) GetPhoneNumber

func (o *RegisterMembershipNativeRequest) GetPhoneNumber() string

GetPhoneNumber returns the PhoneNumber field value if set, zero value otherwise.

func (*RegisterMembershipNativeRequest) GetPhoneNumberOk

func (o *RegisterMembershipNativeRequest) GetPhoneNumberOk() (*string, bool)

GetPhoneNumberOk returns a tuple with the PhoneNumber field value if set, nil otherwise and a boolean to check if the value has been set.

func (*RegisterMembershipNativeRequest) HasEmail

func (o *RegisterMembershipNativeRequest) HasEmail() bool

HasEmail returns a boolean if a field has been set.

func (*RegisterMembershipNativeRequest) HasName

HasName returns a boolean if a field has been set.

func (*RegisterMembershipNativeRequest) HasPhoneNumber

func (o *RegisterMembershipNativeRequest) HasPhoneNumber() bool

HasPhoneNumber returns a boolean if a field has been set.

func (RegisterMembershipNativeRequest) MarshalJSON

func (o RegisterMembershipNativeRequest) MarshalJSON() ([]byte, error)

func (*RegisterMembershipNativeRequest) SetEmail

func (o *RegisterMembershipNativeRequest) SetEmail(v string)

SetEmail gets a reference to the given string and assigns it to the Email field.

func (*RegisterMembershipNativeRequest) SetGrabID

func (o *RegisterMembershipNativeRequest) SetGrabID(v string)

SetGrabID sets field value

func (*RegisterMembershipNativeRequest) SetName

SetName gets a reference to the given string and assigns it to the Name field.

func (*RegisterMembershipNativeRequest) SetPhoneNumber

func (o *RegisterMembershipNativeRequest) SetPhoneNumber(v string)

SetPhoneNumber gets a reference to the given string and assigns it to the PhoneNumber field.

func (RegisterMembershipNativeRequest) ToMap

func (o RegisterMembershipNativeRequest) ToMap() (map[string]interface{}, error)

func (*RegisterMembershipNativeRequest) UnmarshalJSON

func (o *RegisterMembershipNativeRequest) UnmarshalJSON(data []byte) (err error)

type RegisterMembershipNativeResponse

type RegisterMembershipNativeResponse struct {
	// The unique member ID on the partner's database.
	MemberID             string `json:"memberID"`
	AdditionalProperties map[string]interface{}
}

RegisterMembershipNativeResponse This response returns membershipID after membership binding is successful.

func NewRegisterMembershipNativeResponse

func NewRegisterMembershipNativeResponse(memberID string) *RegisterMembershipNativeResponse

NewRegisterMembershipNativeResponse instantiates a new RegisterMembershipNativeResponse 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 NewRegisterMembershipNativeResponseWithDefaults

func NewRegisterMembershipNativeResponseWithDefaults() *RegisterMembershipNativeResponse

NewRegisterMembershipNativeResponseWithDefaults instantiates a new RegisterMembershipNativeResponse 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 (*RegisterMembershipNativeResponse) GetMemberID

func (o *RegisterMembershipNativeResponse) GetMemberID() string

GetMemberID returns the MemberID field value

func (*RegisterMembershipNativeResponse) GetMemberIDOk

func (o *RegisterMembershipNativeResponse) GetMemberIDOk() (*string, bool)

GetMemberIDOk returns a tuple with the MemberID field value and a boolean to check if the value has been set.

func (RegisterMembershipNativeResponse) MarshalJSON

func (o RegisterMembershipNativeResponse) MarshalJSON() ([]byte, error)

func (*RegisterMembershipNativeResponse) SetMemberID

func (o *RegisterMembershipNativeResponse) SetMemberID(v string)

SetMemberID sets field value

func (RegisterMembershipNativeResponse) ToMap

func (o RegisterMembershipNativeResponse) ToMap() (map[string]interface{}, error)

func (*RegisterMembershipNativeResponse) UnmarshalJSON

func (o *RegisterMembershipNativeResponse) UnmarshalJSON(data []byte) (err error)

type RewardItem

type RewardItem struct {
	// The item's ID in partner system.
	ItemID *string `json:"itemID,omitempty"`
	// The item's quantity.
	Quantity             *int32 `json:"quantity,omitempty"`
	AdditionalProperties map[string]interface{}
}

RewardItem struct for RewardItem

func NewRewardItem

func NewRewardItem() *RewardItem

NewRewardItem instantiates a new RewardItem 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 NewRewardItemWithDefaults

func NewRewardItemWithDefaults() *RewardItem

NewRewardItemWithDefaults instantiates a new RewardItem 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 (*RewardItem) GetItemID

func (o *RewardItem) GetItemID() string

GetItemID returns the ItemID field value if set, zero value otherwise.

func (*RewardItem) GetItemIDOk

func (o *RewardItem) GetItemIDOk() (*string, bool)

GetItemIDOk returns a tuple with the ItemID field value if set, nil otherwise and a boolean to check if the value has been set.

func (*RewardItem) GetQuantity

func (o *RewardItem) GetQuantity() int32

GetQuantity returns the Quantity field value if set, zero value otherwise.

func (*RewardItem) GetQuantityOk

func (o *RewardItem) GetQuantityOk() (*int32, bool)

GetQuantityOk returns a tuple with the Quantity field value if set, nil otherwise and a boolean to check if the value has been set.

func (*RewardItem) HasItemID

func (o *RewardItem) HasItemID() bool

HasItemID returns a boolean if a field has been set.

func (*RewardItem) HasQuantity

func (o *RewardItem) HasQuantity() bool

HasQuantity returns a boolean if a field has been set.

func (RewardItem) MarshalJSON

func (o RewardItem) MarshalJSON() ([]byte, error)

func (*RewardItem) SetItemID

func (o *RewardItem) SetItemID(v string)

SetItemID gets a reference to the given string and assigns it to the ItemID field.

func (*RewardItem) SetQuantity

func (o *RewardItem) SetQuantity(v int32)

SetQuantity gets a reference to the given int32 and assigns it to the Quantity field.

func (RewardItem) ToMap

func (o RewardItem) ToMap() (map[string]interface{}, error)

func (*RewardItem) UnmarshalJSON

func (o *RewardItem) UnmarshalJSON(data []byte) (err error)

type SellingTime

type SellingTime struct {
	// The selling time group start time in date & time format. UTC format is expected.
	StartTime *string `json:"startTime,omitempty"`
	// The selling time group end time in date & time format. UTC format is expected.
	EndTime *string `json:"endTime,omitempty"`
	// The selling time's ID on the partner system. This ID should be unique with length min 1 and max 64.
	Id *string `json:"id,omitempty"`
	// The name of the selling time.
	Name                 *string       `json:"name,omitempty"`
	ServiceHours         *ServiceHours `json:"serviceHours,omitempty"`
	AdditionalProperties map[string]interface{}
}

SellingTime struct for SellingTime

func NewSellingTime

func NewSellingTime() *SellingTime

NewSellingTime instantiates a new SellingTime 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 NewSellingTimeWithDefaults

func NewSellingTimeWithDefaults() *SellingTime

NewSellingTimeWithDefaults instantiates a new SellingTime 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 (*SellingTime) GetEndTime

func (o *SellingTime) GetEndTime() string

GetEndTime returns the EndTime field value if set, zero value otherwise.

func (*SellingTime) GetEndTimeOk

func (o *SellingTime) GetEndTimeOk() (*string, bool)

GetEndTimeOk returns a tuple with the EndTime field value if set, nil otherwise and a boolean to check if the value has been set.

func (*SellingTime) GetId

func (o *SellingTime) GetId() string

GetId returns the Id field value if set, zero value otherwise.

func (*SellingTime) GetIdOk

func (o *SellingTime) GetIdOk() (*string, bool)

GetIdOk returns a tuple with the Id field value if set, nil otherwise and a boolean to check if the value has been set.

func (*SellingTime) GetName

func (o *SellingTime) GetName() string

GetName returns the Name field value if set, zero value otherwise.

func (*SellingTime) GetNameOk

func (o *SellingTime) GetNameOk() (*string, bool)

GetNameOk returns a tuple with the Name field value if set, nil otherwise and a boolean to check if the value has been set.

func (*SellingTime) GetServiceHours

func (o *SellingTime) GetServiceHours() ServiceHours

GetServiceHours returns the ServiceHours field value if set, zero value otherwise.

func (*SellingTime) GetServiceHoursOk

func (o *SellingTime) GetServiceHoursOk() (*ServiceHours, bool)

GetServiceHoursOk returns a tuple with the ServiceHours field value if set, nil otherwise and a boolean to check if the value has been set.

func (*SellingTime) GetStartTime

func (o *SellingTime) GetStartTime() string

GetStartTime returns the StartTime field value if set, zero value otherwise.

func (*SellingTime) GetStartTimeOk

func (o *SellingTime) GetStartTimeOk() (*string, bool)

GetStartTimeOk returns a tuple with the StartTime field value if set, nil otherwise and a boolean to check if the value has been set.

func (*SellingTime) HasEndTime

func (o *SellingTime) HasEndTime() bool

HasEndTime returns a boolean if a field has been set.

func (*SellingTime) HasId

func (o *SellingTime) HasId() bool

HasId returns a boolean if a field has been set.

func (*SellingTime) HasName

func (o *SellingTime) HasName() bool

HasName returns a boolean if a field has been set.

func (*SellingTime) HasServiceHours

func (o *SellingTime) HasServiceHours() bool

HasServiceHours returns a boolean if a field has been set.

func (*SellingTime) HasStartTime

func (o *SellingTime) HasStartTime() bool

HasStartTime returns a boolean if a field has been set.

func (SellingTime) MarshalJSON

func (o SellingTime) MarshalJSON() ([]byte, error)

func (*SellingTime) SetEndTime

func (o *SellingTime) SetEndTime(v string)

SetEndTime gets a reference to the given string and assigns it to the EndTime field.

func (*SellingTime) SetId

func (o *SellingTime) SetId(v string)

SetId gets a reference to the given string and assigns it to the Id field.

func (*SellingTime) SetName

func (o *SellingTime) SetName(v string)

SetName gets a reference to the given string and assigns it to the Name field.

func (*SellingTime) SetServiceHours

func (o *SellingTime) SetServiceHours(v ServiceHours)

SetServiceHours gets a reference to the given ServiceHours and assigns it to the ServiceHours field.

func (*SellingTime) SetStartTime

func (o *SellingTime) SetStartTime(v string)

SetStartTime gets a reference to the given string and assigns it to the StartTime field.

func (SellingTime) ToMap

func (o SellingTime) ToMap() (map[string]interface{}, error)

func (*SellingTime) UnmarshalJSON

func (o *SellingTime) UnmarshalJSON(data []byte) (err error)

type ServerConfiguration

type ServerConfiguration struct {
	URL         string
	Description string
	Variables   map[string]ServerVariable
}

ServerConfiguration stores the information about a server

type ServerConfigurations

type ServerConfigurations []ServerConfiguration

ServerConfigurations stores multiple ServerConfiguration items

func (ServerConfigurations) URL

func (sc ServerConfigurations) URL(index int, variables map[string]string) (string, error)

URL formats template on a index using given variables

type ServerVariable

type ServerVariable struct {
	Description  string
	DefaultValue string
	EnumValues   []string
}

ServerVariable stores the information about a server variable

type ServiceHour

type ServiceHour struct {
	// Defines the specific time period during which the menu is available  - OpenPeriod = open only in given periods - OpenAllDay = open 24 hours - CloseAllDay = closed 24 hours
	OpenPeriodType string `json:"openPeriodType"`
	// An array of open periods. Only required when `openPeriodType` is **OpenPeriod**
	Periods              []OpenPeriod `json:"periods,omitempty"`
	AdditionalProperties map[string]interface{}
}

ServiceHour A JSON object serviceHour for each day. An empty JSON object indicates the menu item is not available on the day.

func NewServiceHour

func NewServiceHour(openPeriodType string) *ServiceHour

NewServiceHour instantiates a new ServiceHour 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 NewServiceHourWithDefaults

func NewServiceHourWithDefaults() *ServiceHour

NewServiceHourWithDefaults instantiates a new ServiceHour 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 (*ServiceHour) GetOpenPeriodType

func (o *ServiceHour) GetOpenPeriodType() string

GetOpenPeriodType returns the OpenPeriodType field value

func (*ServiceHour) GetOpenPeriodTypeOk

func (o *ServiceHour) GetOpenPeriodTypeOk() (*string, bool)

GetOpenPeriodTypeOk returns a tuple with the OpenPeriodType field value and a boolean to check if the value has been set.

func (*ServiceHour) GetPeriods

func (o *ServiceHour) GetPeriods() []OpenPeriod

GetPeriods returns the Periods field value if set, zero value otherwise.

func (*ServiceHour) GetPeriodsOk

func (o *ServiceHour) GetPeriodsOk() ([]OpenPeriod, bool)

GetPeriodsOk returns a tuple with the Periods field value if set, nil otherwise and a boolean to check if the value has been set.

func (*ServiceHour) HasPeriods

func (o *ServiceHour) HasPeriods() bool

HasPeriods returns a boolean if a field has been set.

func (ServiceHour) MarshalJSON

func (o ServiceHour) MarshalJSON() ([]byte, error)

func (*ServiceHour) SetOpenPeriodType

func (o *ServiceHour) SetOpenPeriodType(v string)

SetOpenPeriodType sets field value

func (*ServiceHour) SetPeriods

func (o *ServiceHour) SetPeriods(v []OpenPeriod)

SetPeriods gets a reference to the given []OpenPeriod and assigns it to the Periods field.

func (ServiceHour) ToMap

func (o ServiceHour) ToMap() (map[string]interface{}, error)

func (*ServiceHour) UnmarshalJSON

func (o *ServiceHour) UnmarshalJSON(data []byte) (err error)

type ServiceHours

type ServiceHours struct {
	Mon                  ServiceHour `json:"mon"`
	Tue                  ServiceHour `json:"tue"`
	Wed                  ServiceHour `json:"wed"`
	Thu                  ServiceHour `json:"thu"`
	Fri                  ServiceHour `json:"fri"`
	Sat                  ServiceHour `json:"sat"`
	Sun                  ServiceHour `json:"sun"`
	AdditionalProperties map[string]interface{}
}

ServiceHours A JSON object with serviceHours for each day of the week.

func NewServiceHours

func NewServiceHours(mon ServiceHour, tue ServiceHour, wed ServiceHour, thu ServiceHour, fri ServiceHour, sat ServiceHour, sun ServiceHour) *ServiceHours

NewServiceHours instantiates a new ServiceHours 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 NewServiceHoursWithDefaults

func NewServiceHoursWithDefaults() *ServiceHours

NewServiceHoursWithDefaults instantiates a new ServiceHours 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 (*ServiceHours) GetFri

func (o *ServiceHours) GetFri() ServiceHour

GetFri returns the Fri field value

func (*ServiceHours) GetFriOk

func (o *ServiceHours) GetFriOk() (*ServiceHour, bool)

GetFriOk returns a tuple with the Fri field value and a boolean to check if the value has been set.

func (*ServiceHours) GetMon

func (o *ServiceHours) GetMon() ServiceHour

GetMon returns the Mon field value

func (*ServiceHours) GetMonOk

func (o *ServiceHours) GetMonOk() (*ServiceHour, bool)

GetMonOk returns a tuple with the Mon field value and a boolean to check if the value has been set.

func (*ServiceHours) GetSat

func (o *ServiceHours) GetSat() ServiceHour

GetSat returns the Sat field value

func (*ServiceHours) GetSatOk

func (o *ServiceHours) GetSatOk() (*ServiceHour, bool)

GetSatOk returns a tuple with the Sat field value and a boolean to check if the value has been set.

func (*ServiceHours) GetSun

func (o *ServiceHours) GetSun() ServiceHour

GetSun returns the Sun field value

func (*ServiceHours) GetSunOk

func (o *ServiceHours) GetSunOk() (*ServiceHour, bool)

GetSunOk returns a tuple with the Sun field value and a boolean to check if the value has been set.

func (*ServiceHours) GetThu

func (o *ServiceHours) GetThu() ServiceHour

GetThu returns the Thu field value

func (*ServiceHours) GetThuOk

func (o *ServiceHours) GetThuOk() (*ServiceHour, bool)

GetThuOk returns a tuple with the Thu field value and a boolean to check if the value has been set.

func (*ServiceHours) GetTue

func (o *ServiceHours) GetTue() ServiceHour

GetTue returns the Tue field value

func (*ServiceHours) GetTueOk

func (o *ServiceHours) GetTueOk() (*ServiceHour, bool)

GetTueOk returns a tuple with the Tue field value and a boolean to check if the value has been set.

func (*ServiceHours) GetWed

func (o *ServiceHours) GetWed() ServiceHour

GetWed returns the Wed field value

func (*ServiceHours) GetWedOk

func (o *ServiceHours) GetWedOk() (*ServiceHour, bool)

GetWedOk returns a tuple with the Wed field value and a boolean to check if the value has been set.

func (ServiceHours) MarshalJSON

func (o ServiceHours) MarshalJSON() ([]byte, error)

func (*ServiceHours) SetFri

func (o *ServiceHours) SetFri(v ServiceHour)

SetFri sets field value

func (*ServiceHours) SetMon

func (o *ServiceHours) SetMon(v ServiceHour)

SetMon sets field value

func (*ServiceHours) SetSat

func (o *ServiceHours) SetSat(v ServiceHour)

SetSat sets field value

func (*ServiceHours) SetSun

func (o *ServiceHours) SetSun(v ServiceHour)

SetSun sets field value

func (*ServiceHours) SetThu

func (o *ServiceHours) SetThu(v ServiceHour)

SetThu sets field value

func (*ServiceHours) SetTue

func (o *ServiceHours) SetTue(v ServiceHour)

SetTue sets field value

func (*ServiceHours) SetWed

func (o *ServiceHours) SetWed(v ServiceHour)

SetWed sets field value

func (ServiceHours) ToMap

func (o ServiceHours) ToMap() (map[string]interface{}, error)

func (*ServiceHours) UnmarshalJSON

func (o *ServiceHours) UnmarshalJSON(data []byte) (err error)

type SpecialOpeningHour

type SpecialOpeningHour struct {
	// The start date of store special opening hours.
	StartDate *string `json:"startDate,omitempty"`
	// The end date of store special opening hours.
	EndDate              *string                         `json:"endDate,omitempty"`
	Metadata             *SpecialOpeningHourMetadata     `json:"metadata,omitempty"`
	OpeningHours         *SpecialOpeningHourOpeningHours `json:"openingHours,omitempty"`
	AdditionalProperties map[string]interface{}
}

SpecialOpeningHour struct for SpecialOpeningHour

func NewSpecialOpeningHour

func NewSpecialOpeningHour() *SpecialOpeningHour

NewSpecialOpeningHour instantiates a new SpecialOpeningHour 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 NewSpecialOpeningHourWithDefaults

func NewSpecialOpeningHourWithDefaults() *SpecialOpeningHour

NewSpecialOpeningHourWithDefaults instantiates a new SpecialOpeningHour 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 (*SpecialOpeningHour) GetEndDate

func (o *SpecialOpeningHour) GetEndDate() string

GetEndDate returns the EndDate field value if set, zero value otherwise.

func (*SpecialOpeningHour) GetEndDateOk

func (o *SpecialOpeningHour) GetEndDateOk() (*string, bool)

GetEndDateOk returns a tuple with the EndDate field value if set, nil otherwise and a boolean to check if the value has been set.

func (*SpecialOpeningHour) GetMetadata

GetMetadata returns the Metadata field value if set, zero value otherwise.

func (*SpecialOpeningHour) GetMetadataOk

func (o *SpecialOpeningHour) GetMetadataOk() (*SpecialOpeningHourMetadata, bool)

GetMetadataOk returns a tuple with the Metadata field value if set, nil otherwise and a boolean to check if the value has been set.

func (*SpecialOpeningHour) GetOpeningHours

GetOpeningHours returns the OpeningHours field value if set, zero value otherwise.

func (*SpecialOpeningHour) GetOpeningHoursOk

func (o *SpecialOpeningHour) GetOpeningHoursOk() (*SpecialOpeningHourOpeningHours, bool)

GetOpeningHoursOk returns a tuple with the OpeningHours field value if set, nil otherwise and a boolean to check if the value has been set.

func (*SpecialOpeningHour) GetStartDate

func (o *SpecialOpeningHour) GetStartDate() string

GetStartDate returns the StartDate field value if set, zero value otherwise.

func (*SpecialOpeningHour) GetStartDateOk

func (o *SpecialOpeningHour) GetStartDateOk() (*string, bool)

GetStartDateOk returns a tuple with the StartDate field value if set, nil otherwise and a boolean to check if the value has been set.

func (*SpecialOpeningHour) HasEndDate

func (o *SpecialOpeningHour) HasEndDate() bool

HasEndDate returns a boolean if a field has been set.

func (*SpecialOpeningHour) HasMetadata

func (o *SpecialOpeningHour) HasMetadata() bool

HasMetadata returns a boolean if a field has been set.

func (*SpecialOpeningHour) HasOpeningHours

func (o *SpecialOpeningHour) HasOpeningHours() bool

HasOpeningHours returns a boolean if a field has been set.

func (*SpecialOpeningHour) HasStartDate

func (o *SpecialOpeningHour) HasStartDate() bool

HasStartDate returns a boolean if a field has been set.

func (SpecialOpeningHour) MarshalJSON

func (o SpecialOpeningHour) MarshalJSON() ([]byte, error)

func (*SpecialOpeningHour) SetEndDate

func (o *SpecialOpeningHour) SetEndDate(v string)

SetEndDate gets a reference to the given string and assigns it to the EndDate field.

func (*SpecialOpeningHour) SetMetadata

SetMetadata gets a reference to the given SpecialOpeningHourMetadata and assigns it to the Metadata field.

func (*SpecialOpeningHour) SetOpeningHours

func (o *SpecialOpeningHour) SetOpeningHours(v SpecialOpeningHourOpeningHours)

SetOpeningHours gets a reference to the given SpecialOpeningHourOpeningHours and assigns it to the OpeningHours field.

func (*SpecialOpeningHour) SetStartDate

func (o *SpecialOpeningHour) SetStartDate(v string)

SetStartDate gets a reference to the given string and assigns it to the StartDate field.

func (SpecialOpeningHour) ToMap

func (o SpecialOpeningHour) ToMap() (map[string]interface{}, error)

func (*SpecialOpeningHour) UnmarshalJSON

func (o *SpecialOpeningHour) UnmarshalJSON(data []byte) (err error)

type SpecialOpeningHourMetadata

type SpecialOpeningHourMetadata struct {
	// Description of the special opening hour.
	Description          *string `json:"description,omitempty"`
	AdditionalProperties map[string]interface{}
}

SpecialOpeningHourMetadata Contains special opening hour info.

func NewSpecialOpeningHourMetadata

func NewSpecialOpeningHourMetadata() *SpecialOpeningHourMetadata

NewSpecialOpeningHourMetadata instantiates a new SpecialOpeningHourMetadata 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 NewSpecialOpeningHourMetadataWithDefaults

func NewSpecialOpeningHourMetadataWithDefaults() *SpecialOpeningHourMetadata

NewSpecialOpeningHourMetadataWithDefaults instantiates a new SpecialOpeningHourMetadata 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 (*SpecialOpeningHourMetadata) GetDescription

func (o *SpecialOpeningHourMetadata) GetDescription() string

GetDescription returns the Description field value if set, zero value otherwise.

func (*SpecialOpeningHourMetadata) GetDescriptionOk

func (o *SpecialOpeningHourMetadata) GetDescriptionOk() (*string, bool)

GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise and a boolean to check if the value has been set.

func (*SpecialOpeningHourMetadata) HasDescription

func (o *SpecialOpeningHourMetadata) HasDescription() bool

HasDescription returns a boolean if a field has been set.

func (SpecialOpeningHourMetadata) MarshalJSON

func (o SpecialOpeningHourMetadata) MarshalJSON() ([]byte, error)

func (*SpecialOpeningHourMetadata) SetDescription

func (o *SpecialOpeningHourMetadata) SetDescription(v string)

SetDescription gets a reference to the given string and assigns it to the Description field.

func (SpecialOpeningHourMetadata) ToMap

func (o SpecialOpeningHourMetadata) ToMap() (map[string]interface{}, error)

func (*SpecialOpeningHourMetadata) UnmarshalJSON

func (o *SpecialOpeningHourMetadata) UnmarshalJSON(data []byte) (err error)

type SpecialOpeningHourOpeningHours

type SpecialOpeningHourOpeningHours struct {
	// The period type for when the outlet is open.
	OpenPeriodType *string `json:"openPeriodType,omitempty"`
	// An array of open periods. Maximum of 3 periods.
	Periods              []OpenPeriod `json:"periods,omitempty"`
	AdditionalProperties map[string]interface{}
}

SpecialOpeningHourOpeningHours Store special opening hour period.

func NewSpecialOpeningHourOpeningHours

func NewSpecialOpeningHourOpeningHours() *SpecialOpeningHourOpeningHours

NewSpecialOpeningHourOpeningHours instantiates a new SpecialOpeningHourOpeningHours 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 NewSpecialOpeningHourOpeningHoursWithDefaults

func NewSpecialOpeningHourOpeningHoursWithDefaults() *SpecialOpeningHourOpeningHours

NewSpecialOpeningHourOpeningHoursWithDefaults instantiates a new SpecialOpeningHourOpeningHours 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 (*SpecialOpeningHourOpeningHours) GetOpenPeriodType

func (o *SpecialOpeningHourOpeningHours) GetOpenPeriodType() string

GetOpenPeriodType returns the OpenPeriodType field value if set, zero value otherwise.

func (*SpecialOpeningHourOpeningHours) GetOpenPeriodTypeOk

func (o *SpecialOpeningHourOpeningHours) GetOpenPeriodTypeOk() (*string, bool)

GetOpenPeriodTypeOk returns a tuple with the OpenPeriodType field value if set, nil otherwise and a boolean to check if the value has been set.

func (*SpecialOpeningHourOpeningHours) GetPeriods

func (o *SpecialOpeningHourOpeningHours) GetPeriods() []OpenPeriod

GetPeriods returns the Periods field value if set, zero value otherwise.

func (*SpecialOpeningHourOpeningHours) GetPeriodsOk

func (o *SpecialOpeningHourOpeningHours) GetPeriodsOk() ([]OpenPeriod, bool)

GetPeriodsOk returns a tuple with the Periods field value if set, nil otherwise and a boolean to check if the value has been set.

func (*SpecialOpeningHourOpeningHours) HasOpenPeriodType

func (o *SpecialOpeningHourOpeningHours) HasOpenPeriodType() bool

HasOpenPeriodType returns a boolean if a field has been set.

func (*SpecialOpeningHourOpeningHours) HasPeriods

func (o *SpecialOpeningHourOpeningHours) HasPeriods() bool

HasPeriods returns a boolean if a field has been set.

func (SpecialOpeningHourOpeningHours) MarshalJSON

func (o SpecialOpeningHourOpeningHours) MarshalJSON() ([]byte, error)

func (*SpecialOpeningHourOpeningHours) SetOpenPeriodType

func (o *SpecialOpeningHourOpeningHours) SetOpenPeriodType(v string)

SetOpenPeriodType gets a reference to the given string and assigns it to the OpenPeriodType field.

func (*SpecialOpeningHourOpeningHours) SetPeriods

func (o *SpecialOpeningHourOpeningHours) SetPeriods(v []OpenPeriod)

SetPeriods gets a reference to the given []OpenPeriod and assigns it to the Periods field.

func (SpecialOpeningHourOpeningHours) ToMap

func (o SpecialOpeningHourOpeningHours) ToMap() (map[string]interface{}, error)

func (*SpecialOpeningHourOpeningHours) UnmarshalJSON

func (o *SpecialOpeningHourOpeningHours) UnmarshalJSON(data []byte) (err error)

type StoreHour

type StoreHour struct {
	// An array of open periods. Maximum of 3 periods. Blank indicates store close.
	Mon []OpenPeriod `json:"mon"`
	// An array of open periods. Maximum of 3 periods. Blank indicates store close.
	Tue []OpenPeriod `json:"tue"`
	// An array of open periods. Maximum of 3 periods. Blank indicates store close.
	Wed []OpenPeriod `json:"wed"`
	// An array of open periods. Maximum of 3 periods. Blank indicates store close.
	Thu []OpenPeriod `json:"thu"`
	// An array of open periods. Maximum of 3 periods. Blank indicates store close.
	Fri []OpenPeriod `json:"fri"`
	// An array of open periods. Maximum of 3 periods. Blank indicates store close.
	Sat []OpenPeriod `json:"sat"`
	// An array of open periods. Maximum of 3 periods. Blank indicates store close.
	Sun                  []OpenPeriod `json:"sun"`
	AdditionalProperties map[string]interface{}
}

StoreHour A JSON object that describes the store hour for each day.

func NewStoreHour

func NewStoreHour(mon []OpenPeriod, tue []OpenPeriod, wed []OpenPeriod, thu []OpenPeriod, fri []OpenPeriod, sat []OpenPeriod, sun []OpenPeriod) *StoreHour

NewStoreHour instantiates a new StoreHour 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 NewStoreHourWithDefaults

func NewStoreHourWithDefaults() *StoreHour

NewStoreHourWithDefaults instantiates a new StoreHour 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 (*StoreHour) GetFri

func (o *StoreHour) GetFri() []OpenPeriod

GetFri returns the Fri field value

func (*StoreHour) GetFriOk

func (o *StoreHour) GetFriOk() ([]OpenPeriod, bool)

GetFriOk returns a tuple with the Fri field value and a boolean to check if the value has been set.

func (*StoreHour) GetMon

func (o *StoreHour) GetMon() []OpenPeriod

GetMon returns the Mon field value

func (*StoreHour) GetMonOk

func (o *StoreHour) GetMonOk() ([]OpenPeriod, bool)

GetMonOk returns a tuple with the Mon field value and a boolean to check if the value has been set.

func (*StoreHour) GetSat

func (o *StoreHour) GetSat() []OpenPeriod

GetSat returns the Sat field value

func (*StoreHour) GetSatOk

func (o *StoreHour) GetSatOk() ([]OpenPeriod, bool)

GetSatOk returns a tuple with the Sat field value and a boolean to check if the value has been set.

func (*StoreHour) GetSun

func (o *StoreHour) GetSun() []OpenPeriod

GetSun returns the Sun field value

func (*StoreHour) GetSunOk

func (o *StoreHour) GetSunOk() ([]OpenPeriod, bool)

GetSunOk returns a tuple with the Sun field value and a boolean to check if the value has been set.

func (*StoreHour) GetThu

func (o *StoreHour) GetThu() []OpenPeriod

GetThu returns the Thu field value

func (*StoreHour) GetThuOk

func (o *StoreHour) GetThuOk() ([]OpenPeriod, bool)

GetThuOk returns a tuple with the Thu field value and a boolean to check if the value has been set.

func (*StoreHour) GetTue

func (o *StoreHour) GetTue() []OpenPeriod

GetTue returns the Tue field value

func (*StoreHour) GetTueOk

func (o *StoreHour) GetTueOk() ([]OpenPeriod, bool)

GetTueOk returns a tuple with the Tue field value and a boolean to check if the value has been set.

func (*StoreHour) GetWed

func (o *StoreHour) GetWed() []OpenPeriod

GetWed returns the Wed field value

func (*StoreHour) GetWedOk

func (o *StoreHour) GetWedOk() ([]OpenPeriod, bool)

GetWedOk returns a tuple with the Wed field value and a boolean to check if the value has been set.

func (StoreHour) MarshalJSON

func (o StoreHour) MarshalJSON() ([]byte, error)

func (*StoreHour) SetFri

func (o *StoreHour) SetFri(v []OpenPeriod)

SetFri sets field value

func (*StoreHour) SetMon

func (o *StoreHour) SetMon(v []OpenPeriod)

SetMon sets field value

func (*StoreHour) SetSat

func (o *StoreHour) SetSat(v []OpenPeriod)

SetSat sets field value

func (*StoreHour) SetSun

func (o *StoreHour) SetSun(v []OpenPeriod)

SetSun sets field value

func (*StoreHour) SetThu

func (o *StoreHour) SetThu(v []OpenPeriod)

SetThu sets field value

func (*StoreHour) SetTue

func (o *StoreHour) SetTue(v []OpenPeriod)

SetTue sets field value

func (*StoreHour) SetWed

func (o *StoreHour) SetWed(v []OpenPeriod)

SetWed sets field value

func (StoreHour) ToMap

func (o StoreHour) ToMap() (map[string]interface{}, error)

func (*StoreHour) UnmarshalJSON

func (o *StoreHour) UnmarshalJSON(data []byte) (err error)

type StoreHourResponse

type StoreHourResponse struct {
	DineInHour  *StoreHour `json:"dineInHour,omitempty"`
	OpeningHour *StoreHour `json:"openingHour,omitempty"`
	// The store's special opening hours.
	SpecialOpeningHours  []SpecialOpeningHour `json:"specialOpeningHours,omitempty"`
	AdditionalProperties map[string]interface{}
}

StoreHourResponse Object contain store hour info

func NewStoreHourResponse

func NewStoreHourResponse() *StoreHourResponse

NewStoreHourResponse instantiates a new StoreHourResponse 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 NewStoreHourResponseWithDefaults

func NewStoreHourResponseWithDefaults() *StoreHourResponse

NewStoreHourResponseWithDefaults instantiates a new StoreHourResponse 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 (*StoreHourResponse) GetDineInHour

func (o *StoreHourResponse) GetDineInHour() StoreHour

GetDineInHour returns the DineInHour field value if set, zero value otherwise.

func (*StoreHourResponse) GetDineInHourOk

func (o *StoreHourResponse) GetDineInHourOk() (*StoreHour, bool)

GetDineInHourOk returns a tuple with the DineInHour field value if set, nil otherwise and a boolean to check if the value has been set.

func (*StoreHourResponse) GetOpeningHour

func (o *StoreHourResponse) GetOpeningHour() StoreHour

GetOpeningHour returns the OpeningHour field value if set, zero value otherwise.

func (*StoreHourResponse) GetOpeningHourOk

func (o *StoreHourResponse) GetOpeningHourOk() (*StoreHour, bool)

GetOpeningHourOk returns a tuple with the OpeningHour field value if set, nil otherwise and a boolean to check if the value has been set.

func (*StoreHourResponse) GetSpecialOpeningHours

func (o *StoreHourResponse) GetSpecialOpeningHours() []SpecialOpeningHour

GetSpecialOpeningHours returns the SpecialOpeningHours field value if set, zero value otherwise.

func (*StoreHourResponse) GetSpecialOpeningHoursOk

func (o *StoreHourResponse) GetSpecialOpeningHoursOk() ([]SpecialOpeningHour, bool)

GetSpecialOpeningHoursOk returns a tuple with the SpecialOpeningHours field value if set, nil otherwise and a boolean to check if the value has been set.

func (*StoreHourResponse) HasDineInHour

func (o *StoreHourResponse) HasDineInHour() bool

HasDineInHour returns a boolean if a field has been set.

func (*StoreHourResponse) HasOpeningHour

func (o *StoreHourResponse) HasOpeningHour() bool

HasOpeningHour returns a boolean if a field has been set.

func (*StoreHourResponse) HasSpecialOpeningHours

func (o *StoreHourResponse) HasSpecialOpeningHours() bool

HasSpecialOpeningHours returns a boolean if a field has been set.

func (StoreHourResponse) MarshalJSON

func (o StoreHourResponse) MarshalJSON() ([]byte, error)

func (*StoreHourResponse) SetDineInHour

func (o *StoreHourResponse) SetDineInHour(v StoreHour)

SetDineInHour gets a reference to the given StoreHour and assigns it to the DineInHour field.

func (*StoreHourResponse) SetOpeningHour

func (o *StoreHourResponse) SetOpeningHour(v StoreHour)

SetOpeningHour gets a reference to the given StoreHour and assigns it to the OpeningHour field.

func (*StoreHourResponse) SetSpecialOpeningHours

func (o *StoreHourResponse) SetSpecialOpeningHours(v []SpecialOpeningHour)

SetSpecialOpeningHours gets a reference to the given []SpecialOpeningHour and assigns it to the SpecialOpeningHours field.

func (StoreHourResponse) ToMap

func (o StoreHourResponse) ToMap() (map[string]interface{}, error)

func (*StoreHourResponse) UnmarshalJSON

func (o *StoreHourResponse) UnmarshalJSON(data []byte) (err error)

type StoreStatusResponse

type StoreStatusResponse struct {
	// The code of store close reason. Blank indicates store is currently open.
	CloseReason string `json:"closeReason"`
	// Indicate whether the store is in special opening hour range.
	IsInSpecialOpeningHourRange bool `json:"isInSpecialOpeningHourRange"`
	// Indicate whether the store is open.
	IsOpen               bool `json:"isOpen"`
	AdditionalProperties map[string]interface{}
}

StoreStatusResponse Object contains store status info

func NewStoreStatusResponse

func NewStoreStatusResponse(closeReason string, isInSpecialOpeningHourRange bool, isOpen bool) *StoreStatusResponse

NewStoreStatusResponse instantiates a new StoreStatusResponse 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 NewStoreStatusResponseWithDefaults

func NewStoreStatusResponseWithDefaults() *StoreStatusResponse

NewStoreStatusResponseWithDefaults instantiates a new StoreStatusResponse 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 (*StoreStatusResponse) GetCloseReason

func (o *StoreStatusResponse) GetCloseReason() string

GetCloseReason returns the CloseReason field value

func (*StoreStatusResponse) GetCloseReasonOk

func (o *StoreStatusResponse) GetCloseReasonOk() (*string, bool)

GetCloseReasonOk returns a tuple with the CloseReason field value and a boolean to check if the value has been set.

func (*StoreStatusResponse) GetIsInSpecialOpeningHourRange

func (o *StoreStatusResponse) GetIsInSpecialOpeningHourRange() bool

GetIsInSpecialOpeningHourRange returns the IsInSpecialOpeningHourRange field value

func (*StoreStatusResponse) GetIsInSpecialOpeningHourRangeOk

func (o *StoreStatusResponse) GetIsInSpecialOpeningHourRangeOk() (*bool, bool)

GetIsInSpecialOpeningHourRangeOk returns a tuple with the IsInSpecialOpeningHourRange field value and a boolean to check if the value has been set.

func (*StoreStatusResponse) GetIsOpen

func (o *StoreStatusResponse) GetIsOpen() bool

GetIsOpen returns the IsOpen field value

func (*StoreStatusResponse) GetIsOpenOk

func (o *StoreStatusResponse) GetIsOpenOk() (*bool, bool)

GetIsOpenOk returns a tuple with the IsOpen field value and a boolean to check if the value has been set.

func (StoreStatusResponse) MarshalJSON

func (o StoreStatusResponse) MarshalJSON() ([]byte, error)

func (*StoreStatusResponse) SetCloseReason

func (o *StoreStatusResponse) SetCloseReason(v string)

SetCloseReason sets field value

func (*StoreStatusResponse) SetIsInSpecialOpeningHourRange

func (o *StoreStatusResponse) SetIsInSpecialOpeningHourRange(v bool)

SetIsInSpecialOpeningHourRange sets field value

func (*StoreStatusResponse) SetIsOpen

func (o *StoreStatusResponse) SetIsOpen(v bool)

SetIsOpen sets field value

func (StoreStatusResponse) ToMap

func (o StoreStatusResponse) ToMap() (map[string]interface{}, error)

func (*StoreStatusResponse) UnmarshalJSON

func (o *StoreStatusResponse) UnmarshalJSON(data []byte) (err error)

type SubmitOrderRequest

type SubmitOrderRequest struct {
	// The order's ID that is returned from GrabFood. Refer to FAQs for more details about [orderID and shortOrderNumber](#section/Order/What's-the-difference-between-orderID-and-shortOrderNumber).
	OrderID string `json:"orderID"`
	// The GrabFood short order number. This is unique for each merchant per day. Refer to FAQs for more details about [orderID and shortOrderNumber](#section/Order/What's-the-difference-between-orderID-and-shortOrderNumber).
	ShortOrderNumber string `json:"shortOrderNumber"`
	// The merchant's ID that is in GrabFood's database.
	MerchantID string `json:"merchantID"`
	// The merchant's ID that is on the partner's database.
	PartnerMerchantID *string `json:"partnerMerchantID,omitempty"`
	// The payment method used. Refer to FAQs for more details about [paymentType](#section/Order/Does-the-paymentType-affect-partners).
	PaymentType string `json:"paymentType"`
	// The boolean value to indicate whether cutlery are needed or not. Refer to FAQs for more details about [cutlery](#section/Order/What-do-the-true-or-false-values-mean-for-cutlery).
	Cutlery bool `json:"cutlery"`
	// The UTC time that a consumer places the order, based on ISO_8601/RFC3339.
	OrderTime string `json:"orderTime"`
	// The order submit time, based on ISO_8601/RFC3339. `null` in Submit Order payload. Only present in the [List Orders](#tag/list-order) response.
	SubmitTime *time.Time `json:"submitTime,omitempty"`
	// The order complete time, based on ISO_8601/RFC3339. `null` in Submit Order payload. Only present in the [List Orders](#tag/list-order) response.
	CompleteTime *time.Time `json:"completeTime,omitempty"`
	// The order scheduled time, based on ISO_8601/RFC3339. Empty for non-scheduled orders.
	ScheduledTime *string `json:"scheduledTime,omitempty"`
	// The state of the order. Empty in Submit Order payload. Only present in the [List Orders](#tag/list-order) response. Refer to [Order States](#section/Order-states).
	OrderState   *string           `json:"orderState,omitempty"`
	Currency     Currency          `json:"currency"`
	FeatureFlags OrderFeatureFlags `json:"featureFlags"`
	// The ordered items in an array of JSON Object.
	Items []OrderItem `json:"items"`
	// The campaigns that are applicable for the order. `null` when there is no campaign applied. Only campaigns that are funded by merchants will be sent.
	Campaigns []OrderCampaign `json:"campaigns,omitempty"`
	// An array of promotion objects. `null` when there is no promo code applied. Only promotions that are funded by merchants will be sent.
	Promos               []OrderPromo          `json:"promos,omitempty"`
	Price                OrderPrice            `json:"price"`
	DineIn               NullableDineIn        `json:"dineIn,omitempty"`
	Receiver             NullableReceiver      `json:"receiver,omitempty"`
	OrderReadyEstimation *OrderReadyEstimation `json:"orderReadyEstimation,omitempty"`
	// Membership ID for loyalty project. Only present for loyalty program partners. Empty if not applicable.
	MembershipID         *string `json:"membershipID,omitempty"`
	AdditionalProperties map[string]interface{}
}

SubmitOrderRequest A JSON object containing the order information.

func NewSubmitOrderRequest

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

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 (*SubmitOrderRequest) GetCampaigns

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

GetCampaigns returns the Campaigns field value if set, zero value otherwise (both if not set or set to explicit null).

func (*SubmitOrderRequest) GetCampaignsOk

func (o *SubmitOrderRequest) GetCampaignsOk() ([]OrderCampaign, bool)

GetCampaignsOk returns a tuple with the Campaigns field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*SubmitOrderRequest) GetCompleteTime

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

GetCompleteTime returns the CompleteTime field value if set, zero value otherwise.

func (*SubmitOrderRequest) GetCompleteTimeOk

func (o *SubmitOrderRequest) GetCompleteTimeOk() (*time.Time, bool)

GetCompleteTimeOk returns a tuple with the CompleteTime field value if set, nil otherwise and a boolean to check if the value has been set.

func (*SubmitOrderRequest) GetCurrency

func (o *SubmitOrderRequest) GetCurrency() Currency

GetCurrency returns the Currency field value

func (*SubmitOrderRequest) GetCurrencyOk

func (o *SubmitOrderRequest) GetCurrencyOk() (*Currency, bool)

GetCurrencyOk returns a tuple with the Currency field value and a boolean to check if the value has been set.

func (*SubmitOrderRequest) GetCutlery

func (o *SubmitOrderRequest) GetCutlery() bool

GetCutlery returns the Cutlery field value

func (*SubmitOrderRequest) GetCutleryOk

func (o *SubmitOrderRequest) GetCutleryOk() (*bool, bool)

GetCutleryOk returns a tuple with the Cutlery field value and a boolean to check if the value has been set.

func (*SubmitOrderRequest) GetDineIn

func (o *SubmitOrderRequest) GetDineIn() DineIn

GetDineIn returns the DineIn field value if set, zero value otherwise (both if not set or set to explicit null).

func (*SubmitOrderRequest) GetDineInOk

func (o *SubmitOrderRequest) GetDineInOk() (*DineIn, bool)

GetDineInOk returns a tuple with the DineIn field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*SubmitOrderRequest) GetFeatureFlags

func (o *SubmitOrderRequest) GetFeatureFlags() OrderFeatureFlags

GetFeatureFlags returns the FeatureFlags field value

func (*SubmitOrderRequest) GetFeatureFlagsOk

func (o *SubmitOrderRequest) GetFeatureFlagsOk() (*OrderFeatureFlags, bool)

GetFeatureFlagsOk returns a tuple with the FeatureFlags field value and a boolean to check if the value has been set.

func (*SubmitOrderRequest) GetItems

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

GetItems returns the Items field value

func (*SubmitOrderRequest) GetItemsOk

func (o *SubmitOrderRequest) GetItemsOk() ([]OrderItem, bool)

GetItemsOk returns a tuple with the Items field value and a boolean to check if the value has been set.

func (*SubmitOrderRequest) GetMembershipID

func (o *SubmitOrderRequest) GetMembershipID() string

GetMembershipID returns the MembershipID field value if set, zero value otherwise.

func (*SubmitOrderRequest) GetMembershipIDOk

func (o *SubmitOrderRequest) GetMembershipIDOk() (*string, bool)

GetMembershipIDOk returns a tuple with the MembershipID field value if set, nil otherwise and a boolean to check if the value has been set.

func (*SubmitOrderRequest) GetMerchantID

func (o *SubmitOrderRequest) GetMerchantID() string

GetMerchantID returns the MerchantID field value

func (*SubmitOrderRequest) GetMerchantIDOk

func (o *SubmitOrderRequest) GetMerchantIDOk() (*string, bool)

GetMerchantIDOk returns a tuple with the MerchantID field value and a boolean to check if the value has been set.

func (*SubmitOrderRequest) GetOrderID

func (o *SubmitOrderRequest) GetOrderID() string

GetOrderID returns the OrderID field value

func (*SubmitOrderRequest) GetOrderIDOk

func (o *SubmitOrderRequest) GetOrderIDOk() (*string, bool)

GetOrderIDOk returns a tuple with the OrderID field value and a boolean to check if the value has been set.

func (*SubmitOrderRequest) GetOrderReadyEstimation

func (o *SubmitOrderRequest) GetOrderReadyEstimation() OrderReadyEstimation

GetOrderReadyEstimation returns the OrderReadyEstimation field value if set, zero value otherwise.

func (*SubmitOrderRequest) GetOrderReadyEstimationOk

func (o *SubmitOrderRequest) GetOrderReadyEstimationOk() (*OrderReadyEstimation, bool)

GetOrderReadyEstimationOk returns a tuple with the OrderReadyEstimation field value if set, nil otherwise and a boolean to check if the value has been set.

func (*SubmitOrderRequest) GetOrderState

func (o *SubmitOrderRequest) GetOrderState() string

GetOrderState returns the OrderState field value if set, zero value otherwise.

func (*SubmitOrderRequest) GetOrderStateOk

func (o *SubmitOrderRequest) GetOrderStateOk() (*string, bool)

GetOrderStateOk returns a tuple with the OrderState field value if set, nil otherwise and a boolean to check if the value has been set.

func (*SubmitOrderRequest) GetOrderTime

func (o *SubmitOrderRequest) GetOrderTime() string

GetOrderTime returns the OrderTime field value

func (*SubmitOrderRequest) GetOrderTimeOk

func (o *SubmitOrderRequest) GetOrderTimeOk() (*string, bool)

GetOrderTimeOk returns a tuple with the OrderTime field value and a boolean to check if the value has been set.

func (*SubmitOrderRequest) GetPartnerMerchantID

func (o *SubmitOrderRequest) GetPartnerMerchantID() string

GetPartnerMerchantID returns the PartnerMerchantID field value if set, zero value otherwise.

func (*SubmitOrderRequest) GetPartnerMerchantIDOk

func (o *SubmitOrderRequest) GetPartnerMerchantIDOk() (*string, bool)

GetPartnerMerchantIDOk returns a tuple with the PartnerMerchantID field value if set, nil otherwise and a boolean to check if the value has been set.

func (*SubmitOrderRequest) GetPaymentType

func (o *SubmitOrderRequest) GetPaymentType() string

GetPaymentType returns the PaymentType field value

func (*SubmitOrderRequest) GetPaymentTypeOk

func (o *SubmitOrderRequest) GetPaymentTypeOk() (*string, bool)

GetPaymentTypeOk returns a tuple with the PaymentType field value and a boolean to check if the value has been set.

func (*SubmitOrderRequest) GetPrice

func (o *SubmitOrderRequest) GetPrice() OrderPrice

GetPrice returns the Price field value

func (*SubmitOrderRequest) GetPriceOk

func (o *SubmitOrderRequest) GetPriceOk() (*OrderPrice, bool)

GetPriceOk returns a tuple with the Price field value and a boolean to check if the value has been set.

func (*SubmitOrderRequest) GetPromos

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

GetPromos returns the Promos field value if set, zero value otherwise (both if not set or set to explicit null).

func (*SubmitOrderRequest) GetPromosOk

func (o *SubmitOrderRequest) GetPromosOk() ([]OrderPromo, bool)

GetPromosOk returns a tuple with the Promos field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*SubmitOrderRequest) GetReceiver

func (o *SubmitOrderRequest) GetReceiver() Receiver

GetReceiver returns the Receiver field value if set, zero value otherwise (both if not set or set to explicit null).

func (*SubmitOrderRequest) GetReceiverOk

func (o *SubmitOrderRequest) GetReceiverOk() (*Receiver, bool)

GetReceiverOk returns a tuple with the Receiver field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*SubmitOrderRequest) GetScheduledTime

func (o *SubmitOrderRequest) GetScheduledTime() string

GetScheduledTime returns the ScheduledTime field value if set, zero value otherwise.

func (*SubmitOrderRequest) GetScheduledTimeOk

func (o *SubmitOrderRequest) GetScheduledTimeOk() (*string, bool)

GetScheduledTimeOk returns a tuple with the ScheduledTime field value if set, nil otherwise and a boolean to check if the value has been set.

func (*SubmitOrderRequest) GetShortOrderNumber

func (o *SubmitOrderRequest) GetShortOrderNumber() string

GetShortOrderNumber returns the ShortOrderNumber field value

func (*SubmitOrderRequest) GetShortOrderNumberOk

func (o *SubmitOrderRequest) GetShortOrderNumberOk() (*string, bool)

GetShortOrderNumberOk returns a tuple with the ShortOrderNumber field value and a boolean to check if the value has been set.

func (*SubmitOrderRequest) GetSubmitTime

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

GetSubmitTime returns the SubmitTime field value if set, zero value otherwise.

func (*SubmitOrderRequest) GetSubmitTimeOk

func (o *SubmitOrderRequest) GetSubmitTimeOk() (*time.Time, bool)

GetSubmitTimeOk returns a tuple with the SubmitTime field value if set, nil otherwise and a boolean to check if the value has been set.

func (*SubmitOrderRequest) HasCampaigns

func (o *SubmitOrderRequest) HasCampaigns() bool

HasCampaigns returns a boolean if a field has been set.

func (*SubmitOrderRequest) HasCompleteTime

func (o *SubmitOrderRequest) HasCompleteTime() bool

HasCompleteTime returns a boolean if a field has been set.

func (*SubmitOrderRequest) HasDineIn

func (o *SubmitOrderRequest) HasDineIn() bool

HasDineIn returns a boolean if a field has been set.

func (*SubmitOrderRequest) HasMembershipID

func (o *SubmitOrderRequest) HasMembershipID() bool

HasMembershipID returns a boolean if a field has been set.

func (*SubmitOrderRequest) HasOrderReadyEstimation

func (o *SubmitOrderRequest) HasOrderReadyEstimation() bool

HasOrderReadyEstimation returns a boolean if a field has been set.

func (*SubmitOrderRequest) HasOrderState

func (o *SubmitOrderRequest) HasOrderState() bool

HasOrderState returns a boolean if a field has been set.

func (*SubmitOrderRequest) HasPartnerMerchantID

func (o *SubmitOrderRequest) HasPartnerMerchantID() bool

HasPartnerMerchantID returns a boolean if a field has been set.

func (*SubmitOrderRequest) HasPromos

func (o *SubmitOrderRequest) HasPromos() bool

HasPromos returns a boolean if a field has been set.

func (*SubmitOrderRequest) HasReceiver

func (o *SubmitOrderRequest) HasReceiver() bool

HasReceiver returns a boolean if a field has been set.

func (*SubmitOrderRequest) HasScheduledTime

func (o *SubmitOrderRequest) HasScheduledTime() bool

HasScheduledTime returns a boolean if a field has been set.

func (*SubmitOrderRequest) HasSubmitTime

func (o *SubmitOrderRequest) HasSubmitTime() bool

HasSubmitTime returns a boolean if a field has been set.

func (SubmitOrderRequest) MarshalJSON

func (o SubmitOrderRequest) MarshalJSON() ([]byte, error)

func (*SubmitOrderRequest) SetCampaigns

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

SetCampaigns gets a reference to the given []OrderCampaign and assigns it to the Campaigns field.

func (*SubmitOrderRequest) SetCompleteTime

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

SetCompleteTime gets a reference to the given time.Time and assigns it to the CompleteTime field.

func (*SubmitOrderRequest) SetCurrency

func (o *SubmitOrderRequest) SetCurrency(v Currency)

SetCurrency sets field value

func (*SubmitOrderRequest) SetCutlery

func (o *SubmitOrderRequest) SetCutlery(v bool)

SetCutlery sets field value

func (*SubmitOrderRequest) SetDineIn

func (o *SubmitOrderRequest) SetDineIn(v DineIn)

SetDineIn gets a reference to the given NullableDineIn and assigns it to the DineIn field.

func (*SubmitOrderRequest) SetDineInNil added in v1.0.1

func (o *SubmitOrderRequest) SetDineInNil()

SetDineInNil sets the value for DineIn to be an explicit nil

func (*SubmitOrderRequest) SetFeatureFlags

func (o *SubmitOrderRequest) SetFeatureFlags(v OrderFeatureFlags)

SetFeatureFlags sets field value

func (*SubmitOrderRequest) SetItems

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

SetItems sets field value

func (*SubmitOrderRequest) SetMembershipID

func (o *SubmitOrderRequest) SetMembershipID(v string)

SetMembershipID gets a reference to the given string and assigns it to the MembershipID field.

func (*SubmitOrderRequest) SetMerchantID

func (o *SubmitOrderRequest) SetMerchantID(v string)

SetMerchantID sets field value

func (*SubmitOrderRequest) SetOrderID

func (o *SubmitOrderRequest) SetOrderID(v string)

SetOrderID sets field value

func (*SubmitOrderRequest) SetOrderReadyEstimation

func (o *SubmitOrderRequest) SetOrderReadyEstimation(v OrderReadyEstimation)

SetOrderReadyEstimation gets a reference to the given OrderReadyEstimation and assigns it to the OrderReadyEstimation field.

func (*SubmitOrderRequest) SetOrderState

func (o *SubmitOrderRequest) SetOrderState(v string)

SetOrderState gets a reference to the given string and assigns it to the OrderState field.

func (*SubmitOrderRequest) SetOrderTime

func (o *SubmitOrderRequest) SetOrderTime(v string)

SetOrderTime sets field value

func (*SubmitOrderRequest) SetPartnerMerchantID

func (o *SubmitOrderRequest) SetPartnerMerchantID(v string)

SetPartnerMerchantID gets a reference to the given string and assigns it to the PartnerMerchantID field.

func (*SubmitOrderRequest) SetPaymentType

func (o *SubmitOrderRequest) SetPaymentType(v string)

SetPaymentType sets field value

func (*SubmitOrderRequest) SetPrice

func (o *SubmitOrderRequest) SetPrice(v OrderPrice)

SetPrice sets field value

func (*SubmitOrderRequest) SetPromos

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

SetPromos gets a reference to the given []OrderPromo and assigns it to the Promos field.

func (*SubmitOrderRequest) SetReceiver

func (o *SubmitOrderRequest) SetReceiver(v Receiver)

SetReceiver gets a reference to the given NullableReceiver and assigns it to the Receiver field.

func (*SubmitOrderRequest) SetReceiverNil added in v1.0.1

func (o *SubmitOrderRequest) SetReceiverNil()

SetReceiverNil sets the value for Receiver to be an explicit nil

func (*SubmitOrderRequest) SetScheduledTime

func (o *SubmitOrderRequest) SetScheduledTime(v string)

SetScheduledTime gets a reference to the given string and assigns it to the ScheduledTime field.

func (*SubmitOrderRequest) SetShortOrderNumber

func (o *SubmitOrderRequest) SetShortOrderNumber(v string)

SetShortOrderNumber sets field value

func (*SubmitOrderRequest) SetSubmitTime

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

SetSubmitTime gets a reference to the given time.Time and assigns it to the SubmitTime field.

func (SubmitOrderRequest) ToMap

func (o SubmitOrderRequest) ToMap() (map[string]interface{}, error)

func (*SubmitOrderRequest) UnmarshalJSON

func (o *SubmitOrderRequest) UnmarshalJSON(data []byte) (err error)

func (*SubmitOrderRequest) UnsetDineIn added in v1.0.1

func (o *SubmitOrderRequest) UnsetDineIn()

UnsetDineIn ensures that no value is present for DineIn, not even an explicit nil

func (*SubmitOrderRequest) UnsetReceiver added in v1.0.1

func (o *SubmitOrderRequest) UnsetReceiver()

UnsetReceiver ensures that no value is present for Receiver, not even an explicit nil

type TraceMenuSyncAPIService

type TraceMenuSyncAPIService service

TraceMenuSyncAPIService TraceMenuSyncAPI service

func (*TraceMenuSyncAPIService) TraceMenuSync

TraceMenuSync Trace menu sync

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return ApiTraceMenuSyncRequest

func (*TraceMenuSyncAPIService) TraceMenuSyncExecute

Execute executes the request

@return MenuSyncResponse

type UnbindMembershipNativeRequest

type UnbindMembershipNativeRequest struct {
	// The unique member ID on the partner's database.
	MemberID             string `json:"memberID"`
	AdditionalProperties map[string]interface{}
}

UnbindMembershipNativeRequest This request submits membership unbind request to partner.

func NewUnbindMembershipNativeRequest

func NewUnbindMembershipNativeRequest(memberID string) *UnbindMembershipNativeRequest

NewUnbindMembershipNativeRequest instantiates a new UnbindMembershipNativeRequest 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 NewUnbindMembershipNativeRequestWithDefaults

func NewUnbindMembershipNativeRequestWithDefaults() *UnbindMembershipNativeRequest

NewUnbindMembershipNativeRequestWithDefaults instantiates a new UnbindMembershipNativeRequest 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 (*UnbindMembershipNativeRequest) GetMemberID

func (o *UnbindMembershipNativeRequest) GetMemberID() string

GetMemberID returns the MemberID field value

func (*UnbindMembershipNativeRequest) GetMemberIDOk

func (o *UnbindMembershipNativeRequest) GetMemberIDOk() (*string, bool)

GetMemberIDOk returns a tuple with the MemberID field value and a boolean to check if the value has been set.

func (UnbindMembershipNativeRequest) MarshalJSON

func (o UnbindMembershipNativeRequest) MarshalJSON() ([]byte, error)

func (*UnbindMembershipNativeRequest) SetMemberID

func (o *UnbindMembershipNativeRequest) SetMemberID(v string)

SetMemberID sets field value

func (UnbindMembershipNativeRequest) ToMap

func (o UnbindMembershipNativeRequest) ToMap() (map[string]interface{}, error)

func (*UnbindMembershipNativeRequest) UnmarshalJSON

func (o *UnbindMembershipNativeRequest) UnmarshalJSON(data []byte) (err error)

type UnlinkMembershipWebviewRequest

type UnlinkMembershipWebviewRequest struct {
	// The unique member ID on the partner's database.
	MemberID             string `json:"memberID"`
	AdditionalProperties map[string]interface{}
}

UnlinkMembershipWebviewRequest This request submits membership unbind request to partner.

func NewUnlinkMembershipWebviewRequest

func NewUnlinkMembershipWebviewRequest(memberID string) *UnlinkMembershipWebviewRequest

NewUnlinkMembershipWebviewRequest instantiates a new UnlinkMembershipWebviewRequest 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 NewUnlinkMembershipWebviewRequestWithDefaults

func NewUnlinkMembershipWebviewRequestWithDefaults() *UnlinkMembershipWebviewRequest

NewUnlinkMembershipWebviewRequestWithDefaults instantiates a new UnlinkMembershipWebviewRequest 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 (*UnlinkMembershipWebviewRequest) GetMemberID

func (o *UnlinkMembershipWebviewRequest) GetMemberID() string

GetMemberID returns the MemberID field value

func (*UnlinkMembershipWebviewRequest) GetMemberIDOk

func (o *UnlinkMembershipWebviewRequest) GetMemberIDOk() (*string, bool)

GetMemberIDOk returns a tuple with the MemberID field value and a boolean to check if the value has been set.

func (UnlinkMembershipWebviewRequest) MarshalJSON

func (o UnlinkMembershipWebviewRequest) MarshalJSON() ([]byte, error)

func (*UnlinkMembershipWebviewRequest) SetMemberID

func (o *UnlinkMembershipWebviewRequest) SetMemberID(v string)

SetMemberID sets field value

func (UnlinkMembershipWebviewRequest) ToMap

func (o UnlinkMembershipWebviewRequest) ToMap() (map[string]interface{}, error)

func (*UnlinkMembershipWebviewRequest) UnmarshalJSON

func (o *UnlinkMembershipWebviewRequest) UnmarshalJSON(data []byte) (err error)

type UpdateAdvancedPricing

type UpdateAdvancedPricing struct {
	// Available service type.
	Key *string `json:"key,omitempty"`
	// Price in minor unit.
	Price                *int64 `json:"price,omitempty"`
	AdditionalProperties map[string]interface{}
}

UpdateAdvancedPricing struct for UpdateAdvancedPricing

func NewUpdateAdvancedPricing

func NewUpdateAdvancedPricing() *UpdateAdvancedPricing

NewUpdateAdvancedPricing instantiates a new UpdateAdvancedPricing 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 NewUpdateAdvancedPricingWithDefaults

func NewUpdateAdvancedPricingWithDefaults() *UpdateAdvancedPricing

NewUpdateAdvancedPricingWithDefaults instantiates a new UpdateAdvancedPricing 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 (*UpdateAdvancedPricing) GetKey

func (o *UpdateAdvancedPricing) GetKey() string

GetKey returns the Key field value if set, zero value otherwise.

func (*UpdateAdvancedPricing) GetKeyOk

func (o *UpdateAdvancedPricing) GetKeyOk() (*string, bool)

GetKeyOk returns a tuple with the Key field value if set, nil otherwise and a boolean to check if the value has been set.

func (*UpdateAdvancedPricing) GetPrice

func (o *UpdateAdvancedPricing) GetPrice() int64

GetPrice returns the Price field value if set, zero value otherwise.

func (*UpdateAdvancedPricing) GetPriceOk

func (o *UpdateAdvancedPricing) GetPriceOk() (*int64, bool)

GetPriceOk returns a tuple with the Price field value if set, nil otherwise and a boolean to check if the value has been set.

func (*UpdateAdvancedPricing) HasKey

func (o *UpdateAdvancedPricing) HasKey() bool

HasKey returns a boolean if a field has been set.

func (*UpdateAdvancedPricing) HasPrice

func (o *UpdateAdvancedPricing) HasPrice() bool

HasPrice returns a boolean if a field has been set.

func (UpdateAdvancedPricing) MarshalJSON

func (o UpdateAdvancedPricing) MarshalJSON() ([]byte, error)

func (*UpdateAdvancedPricing) SetKey

func (o *UpdateAdvancedPricing) SetKey(v string)

SetKey gets a reference to the given string and assigns it to the Key field.

func (*UpdateAdvancedPricing) SetPrice

func (o *UpdateAdvancedPricing) SetPrice(v int64)

SetPrice gets a reference to the given int64 and assigns it to the Price field.

func (UpdateAdvancedPricing) ToMap

func (o UpdateAdvancedPricing) ToMap() (map[string]interface{}, error)

func (*UpdateAdvancedPricing) UnmarshalJSON

func (o *UpdateAdvancedPricing) UnmarshalJSON(data []byte) (err error)

type UpdateCampaignAPIService

type UpdateCampaignAPIService service

UpdateCampaignAPIService UpdateCampaignAPI service

func (*UpdateCampaignAPIService) UpdateCampaign

func (a *UpdateCampaignAPIService) UpdateCampaign(ctx context.Context, campaignId string) ApiUpdateCampaignRequest

UpdateCampaign Update campaign

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param campaignId
@return ApiUpdateCampaignRequest

func (*UpdateCampaignAPIService) UpdateCampaignExecute

func (a *UpdateCampaignAPIService) UpdateCampaignExecute(r ApiUpdateCampaignRequest) (*http.Response, error)

Execute executes the request

type UpdateCampaignRequest

type UpdateCampaignRequest struct {
	// The merchant's ID that is in GrabFood's database.
	MerchantID *string `json:"merchantID,omitempty"`
	// The campaign's name.
	Name       *string             `json:"name,omitempty"`
	Quotas     *CampaignQuotas     `json:"quotas,omitempty"`
	Conditions *CampaignConditions `json:"conditions,omitempty"`
	Discount   *CampaignDiscount   `json:"discount,omitempty"`
	// Specify the tag for custom bundle offer campaign. Only whitelisted partner is supported as of now.
	CustomTag            *string `json:"customTag,omitempty"`
	AdditionalProperties map[string]interface{}
}

UpdateCampaignRequest This request updates a campaign for your GrabFood store.

func NewUpdateCampaignRequest

func NewUpdateCampaignRequest() *UpdateCampaignRequest

NewUpdateCampaignRequest instantiates a new UpdateCampaignRequest 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 NewUpdateCampaignRequestWithDefaults

func NewUpdateCampaignRequestWithDefaults() *UpdateCampaignRequest

NewUpdateCampaignRequestWithDefaults instantiates a new UpdateCampaignRequest 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 (*UpdateCampaignRequest) GetConditions

func (o *UpdateCampaignRequest) GetConditions() CampaignConditions

GetConditions returns the Conditions field value if set, zero value otherwise.

func (*UpdateCampaignRequest) GetConditionsOk

func (o *UpdateCampaignRequest) GetConditionsOk() (*CampaignConditions, bool)

GetConditionsOk returns a tuple with the Conditions field value if set, nil otherwise and a boolean to check if the value has been set.

func (*UpdateCampaignRequest) GetCustomTag

func (o *UpdateCampaignRequest) GetCustomTag() string

GetCustomTag returns the CustomTag field value if set, zero value otherwise.

func (*UpdateCampaignRequest) GetCustomTagOk

func (o *UpdateCampaignRequest) GetCustomTagOk() (*string, bool)

GetCustomTagOk returns a tuple with the CustomTag field value if set, nil otherwise and a boolean to check if the value has been set.

func (*UpdateCampaignRequest) GetDiscount

func (o *UpdateCampaignRequest) GetDiscount() CampaignDiscount

GetDiscount returns the Discount field value if set, zero value otherwise.

func (*UpdateCampaignRequest) GetDiscountOk

func (o *UpdateCampaignRequest) GetDiscountOk() (*CampaignDiscount, bool)

GetDiscountOk returns a tuple with the Discount field value if set, nil otherwise and a boolean to check if the value has been set.

func (*UpdateCampaignRequest) GetMerchantID

func (o *UpdateCampaignRequest) GetMerchantID() string

GetMerchantID returns the MerchantID field value if set, zero value otherwise.

func (*UpdateCampaignRequest) GetMerchantIDOk

func (o *UpdateCampaignRequest) GetMerchantIDOk() (*string, bool)

GetMerchantIDOk returns a tuple with the MerchantID field value if set, nil otherwise and a boolean to check if the value has been set.

func (*UpdateCampaignRequest) GetName

func (o *UpdateCampaignRequest) GetName() string

GetName returns the Name field value if set, zero value otherwise.

func (*UpdateCampaignRequest) GetNameOk

func (o *UpdateCampaignRequest) GetNameOk() (*string, bool)

GetNameOk returns a tuple with the Name field value if set, nil otherwise and a boolean to check if the value has been set.

func (*UpdateCampaignRequest) GetQuotas

func (o *UpdateCampaignRequest) GetQuotas() CampaignQuotas

GetQuotas returns the Quotas field value if set, zero value otherwise.

func (*UpdateCampaignRequest) GetQuotasOk

func (o *UpdateCampaignRequest) GetQuotasOk() (*CampaignQuotas, bool)

GetQuotasOk returns a tuple with the Quotas field value if set, nil otherwise and a boolean to check if the value has been set.

func (*UpdateCampaignRequest) HasConditions

func (o *UpdateCampaignRequest) HasConditions() bool

HasConditions returns a boolean if a field has been set.

func (*UpdateCampaignRequest) HasCustomTag

func (o *UpdateCampaignRequest) HasCustomTag() bool

HasCustomTag returns a boolean if a field has been set.

func (*UpdateCampaignRequest) HasDiscount

func (o *UpdateCampaignRequest) HasDiscount() bool

HasDiscount returns a boolean if a field has been set.

func (*UpdateCampaignRequest) HasMerchantID

func (o *UpdateCampaignRequest) HasMerchantID() bool

HasMerchantID returns a boolean if a field has been set.

func (*UpdateCampaignRequest) HasName

func (o *UpdateCampaignRequest) HasName() bool

HasName returns a boolean if a field has been set.

func (*UpdateCampaignRequest) HasQuotas

func (o *UpdateCampaignRequest) HasQuotas() bool

HasQuotas returns a boolean if a field has been set.

func (UpdateCampaignRequest) MarshalJSON

func (o UpdateCampaignRequest) MarshalJSON() ([]byte, error)

func (*UpdateCampaignRequest) SetConditions

func (o *UpdateCampaignRequest) SetConditions(v CampaignConditions)

SetConditions gets a reference to the given CampaignConditions and assigns it to the Conditions field.

func (*UpdateCampaignRequest) SetCustomTag

func (o *UpdateCampaignRequest) SetCustomTag(v string)

SetCustomTag gets a reference to the given string and assigns it to the CustomTag field.

func (*UpdateCampaignRequest) SetDiscount

func (o *UpdateCampaignRequest) SetDiscount(v CampaignDiscount)

SetDiscount gets a reference to the given CampaignDiscount and assigns it to the Discount field.

func (*UpdateCampaignRequest) SetMerchantID

func (o *UpdateCampaignRequest) SetMerchantID(v string)

SetMerchantID gets a reference to the given string and assigns it to the MerchantID field.

func (*UpdateCampaignRequest) SetName

func (o *UpdateCampaignRequest) SetName(v string)

SetName gets a reference to the given string and assigns it to the Name field.

func (*UpdateCampaignRequest) SetQuotas

func (o *UpdateCampaignRequest) SetQuotas(v CampaignQuotas)

SetQuotas gets a reference to the given CampaignQuotas and assigns it to the Quotas field.

func (UpdateCampaignRequest) ToMap

func (o UpdateCampaignRequest) ToMap() (map[string]interface{}, error)

func (*UpdateCampaignRequest) UnmarshalJSON

func (o *UpdateCampaignRequest) UnmarshalJSON(data []byte) (err error)

type UpdateDeliveryHourRequest

type UpdateDeliveryHourRequest struct {
	OpeningHour StoreHour `json:"openingHour"`
	// To enable force update store delivery hours. Error will be returned if set to false while there is ongoing order.
	Force                bool `json:"force"`
	AdditionalProperties map[string]interface{}
}

UpdateDeliveryHourRequest Object contains store delivery hours.

func NewUpdateDeliveryHourRequest

func NewUpdateDeliveryHourRequest(openingHour StoreHour, force bool) *UpdateDeliveryHourRequest

NewUpdateDeliveryHourRequest instantiates a new UpdateDeliveryHourRequest 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 NewUpdateDeliveryHourRequestWithDefaults

func NewUpdateDeliveryHourRequestWithDefaults() *UpdateDeliveryHourRequest

NewUpdateDeliveryHourRequestWithDefaults instantiates a new UpdateDeliveryHourRequest 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 (*UpdateDeliveryHourRequest) GetForce

func (o *UpdateDeliveryHourRequest) GetForce() bool

GetForce returns the Force field value

func (*UpdateDeliveryHourRequest) GetForceOk

func (o *UpdateDeliveryHourRequest) GetForceOk() (*bool, bool)

GetForceOk returns a tuple with the Force field value and a boolean to check if the value has been set.

func (*UpdateDeliveryHourRequest) GetOpeningHour

func (o *UpdateDeliveryHourRequest) GetOpeningHour() StoreHour

GetOpeningHour returns the OpeningHour field value

func (*UpdateDeliveryHourRequest) GetOpeningHourOk

func (o *UpdateDeliveryHourRequest) GetOpeningHourOk() (*StoreHour, bool)

GetOpeningHourOk returns a tuple with the OpeningHour field value and a boolean to check if the value has been set.

func (UpdateDeliveryHourRequest) MarshalJSON

func (o UpdateDeliveryHourRequest) MarshalJSON() ([]byte, error)

func (*UpdateDeliveryHourRequest) SetForce

func (o *UpdateDeliveryHourRequest) SetForce(v bool)

SetForce sets field value

func (*UpdateDeliveryHourRequest) SetOpeningHour

func (o *UpdateDeliveryHourRequest) SetOpeningHour(v StoreHour)

SetOpeningHour sets field value

func (UpdateDeliveryHourRequest) ToMap

func (o UpdateDeliveryHourRequest) ToMap() (map[string]interface{}, error)

func (*UpdateDeliveryHourRequest) UnmarshalJSON

func (o *UpdateDeliveryHourRequest) UnmarshalJSON(data []byte) (err error)

type UpdateDeliveryHourResponse

type UpdateDeliveryHourResponse struct {
	// Error message when updating store delivery hour. `null` indicates no error.
	ErrorReasons []string `json:"errorReasons,omitempty"`
	// Total active order for the day.
	OrderCount int64 `json:"orderCount"`
	// Total scheduled order during store close period.
	ScheduledOrderCount int64 `json:"scheduledOrderCount"`
	// Indicate the store status after updating delivery hours.
	CloseImmediately     bool `json:"closeImmediately"`
	AdditionalProperties map[string]interface{}
}

UpdateDeliveryHourResponse Object contain update store delivery hour response

func NewUpdateDeliveryHourResponse

func NewUpdateDeliveryHourResponse(orderCount int64, scheduledOrderCount int64, closeImmediately bool) *UpdateDeliveryHourResponse

NewUpdateDeliveryHourResponse instantiates a new UpdateDeliveryHourResponse 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 NewUpdateDeliveryHourResponseWithDefaults

func NewUpdateDeliveryHourResponseWithDefaults() *UpdateDeliveryHourResponse

NewUpdateDeliveryHourResponseWithDefaults instantiates a new UpdateDeliveryHourResponse 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 (*UpdateDeliveryHourResponse) GetCloseImmediately

func (o *UpdateDeliveryHourResponse) GetCloseImmediately() bool

GetCloseImmediately returns the CloseImmediately field value

func (*UpdateDeliveryHourResponse) GetCloseImmediatelyOk

func (o *UpdateDeliveryHourResponse) GetCloseImmediatelyOk() (*bool, bool)

GetCloseImmediatelyOk returns a tuple with the CloseImmediately field value and a boolean to check if the value has been set.

func (*UpdateDeliveryHourResponse) GetErrorReasons

func (o *UpdateDeliveryHourResponse) GetErrorReasons() []string

GetErrorReasons returns the ErrorReasons field value if set, zero value otherwise (both if not set or set to explicit null).

func (*UpdateDeliveryHourResponse) GetErrorReasonsOk

func (o *UpdateDeliveryHourResponse) GetErrorReasonsOk() ([]string, bool)

GetErrorReasonsOk returns a tuple with the ErrorReasons field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*UpdateDeliveryHourResponse) GetOrderCount

func (o *UpdateDeliveryHourResponse) GetOrderCount() int64

GetOrderCount returns the OrderCount field value

func (*UpdateDeliveryHourResponse) GetOrderCountOk

func (o *UpdateDeliveryHourResponse) GetOrderCountOk() (*int64, bool)

GetOrderCountOk returns a tuple with the OrderCount field value and a boolean to check if the value has been set.

func (*UpdateDeliveryHourResponse) GetScheduledOrderCount

func (o *UpdateDeliveryHourResponse) GetScheduledOrderCount() int64

GetScheduledOrderCount returns the ScheduledOrderCount field value

func (*UpdateDeliveryHourResponse) GetScheduledOrderCountOk

func (o *UpdateDeliveryHourResponse) GetScheduledOrderCountOk() (*int64, bool)

GetScheduledOrderCountOk returns a tuple with the ScheduledOrderCount field value and a boolean to check if the value has been set.

func (*UpdateDeliveryHourResponse) HasErrorReasons

func (o *UpdateDeliveryHourResponse) HasErrorReasons() bool

HasErrorReasons returns a boolean if a field has been set.

func (UpdateDeliveryHourResponse) MarshalJSON

func (o UpdateDeliveryHourResponse) MarshalJSON() ([]byte, error)

func (*UpdateDeliveryHourResponse) SetCloseImmediately

func (o *UpdateDeliveryHourResponse) SetCloseImmediately(v bool)

SetCloseImmediately sets field value

func (*UpdateDeliveryHourResponse) SetErrorReasons

func (o *UpdateDeliveryHourResponse) SetErrorReasons(v []string)

SetErrorReasons gets a reference to the given []string and assigns it to the ErrorReasons field.

func (*UpdateDeliveryHourResponse) SetOrderCount

func (o *UpdateDeliveryHourResponse) SetOrderCount(v int64)

SetOrderCount sets field value

func (*UpdateDeliveryHourResponse) SetScheduledOrderCount

func (o *UpdateDeliveryHourResponse) SetScheduledOrderCount(v int64)

SetScheduledOrderCount sets field value

func (UpdateDeliveryHourResponse) ToMap

func (o UpdateDeliveryHourResponse) ToMap() (map[string]interface{}, error)

func (*UpdateDeliveryHourResponse) UnmarshalJSON

func (o *UpdateDeliveryHourResponse) UnmarshalJSON(data []byte) (err error)

type UpdateDeliveryStateAPIService

type UpdateDeliveryStateAPIService service

UpdateDeliveryStateAPIService UpdateDeliveryStateAPI service

func (*UpdateDeliveryStateAPIService) UpdateDeliveryState

UpdateDeliveryState Update delivery state

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return ApiUpdateDeliveryStateRequest

func (*UpdateDeliveryStateAPIService) UpdateDeliveryStateExecute

func (a *UpdateDeliveryStateAPIService) UpdateDeliveryStateExecute(r ApiUpdateDeliveryStateRequest) (*http.Response, error)

Execute executes the request

type UpdateDineInHourRequest

type UpdateDineInHourRequest struct {
	DineInHour           StoreHour `json:"dineInHour"`
	AdditionalProperties map[string]interface{}
}

UpdateDineInHourRequest Object contains store dine-in hours.

func NewUpdateDineInHourRequest

func NewUpdateDineInHourRequest(dineInHour StoreHour) *UpdateDineInHourRequest

NewUpdateDineInHourRequest instantiates a new UpdateDineInHourRequest 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 NewUpdateDineInHourRequestWithDefaults

func NewUpdateDineInHourRequestWithDefaults() *UpdateDineInHourRequest

NewUpdateDineInHourRequestWithDefaults instantiates a new UpdateDineInHourRequest 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 (*UpdateDineInHourRequest) GetDineInHour

func (o *UpdateDineInHourRequest) GetDineInHour() StoreHour

GetDineInHour returns the DineInHour field value

func (*UpdateDineInHourRequest) GetDineInHourOk

func (o *UpdateDineInHourRequest) GetDineInHourOk() (*StoreHour, bool)

GetDineInHourOk returns a tuple with the DineInHour field value and a boolean to check if the value has been set.

func (UpdateDineInHourRequest) MarshalJSON

func (o UpdateDineInHourRequest) MarshalJSON() ([]byte, error)

func (*UpdateDineInHourRequest) SetDineInHour

func (o *UpdateDineInHourRequest) SetDineInHour(v StoreHour)

SetDineInHour sets field value

func (UpdateDineInHourRequest) ToMap

func (o UpdateDineInHourRequest) ToMap() (map[string]interface{}, error)

func (*UpdateDineInHourRequest) UnmarshalJSON

func (o *UpdateDineInHourRequest) UnmarshalJSON(data []byte) (err error)

type UpdateDineInHourResponse

type UpdateDineInHourResponse struct {
	// Error message when updating store dine-in hour. `null` indicates no error.
	ErrorReasons         []string `json:"errorReasons,omitempty"`
	AdditionalProperties map[string]interface{}
}

UpdateDineInHourResponse Object contain update store dine-in hour response

func NewUpdateDineInHourResponse

func NewUpdateDineInHourResponse() *UpdateDineInHourResponse

NewUpdateDineInHourResponse instantiates a new UpdateDineInHourResponse 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 NewUpdateDineInHourResponseWithDefaults

func NewUpdateDineInHourResponseWithDefaults() *UpdateDineInHourResponse

NewUpdateDineInHourResponseWithDefaults instantiates a new UpdateDineInHourResponse 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 (*UpdateDineInHourResponse) GetErrorReasons

func (o *UpdateDineInHourResponse) GetErrorReasons() []string

GetErrorReasons returns the ErrorReasons field value if set, zero value otherwise (both if not set or set to explicit null).

func (*UpdateDineInHourResponse) GetErrorReasonsOk

func (o *UpdateDineInHourResponse) GetErrorReasonsOk() ([]string, bool)

GetErrorReasonsOk returns a tuple with the ErrorReasons field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*UpdateDineInHourResponse) HasErrorReasons

func (o *UpdateDineInHourResponse) HasErrorReasons() bool

HasErrorReasons returns a boolean if a field has been set.

func (UpdateDineInHourResponse) MarshalJSON

func (o UpdateDineInHourResponse) MarshalJSON() ([]byte, error)

func (*UpdateDineInHourResponse) SetErrorReasons

func (o *UpdateDineInHourResponse) SetErrorReasons(v []string)

SetErrorReasons gets a reference to the given []string and assigns it to the ErrorReasons field.

func (UpdateDineInHourResponse) ToMap

func (o UpdateDineInHourResponse) ToMap() (map[string]interface{}, error)

func (*UpdateDineInHourResponse) UnmarshalJSON

func (o *UpdateDineInHourResponse) UnmarshalJSON(data []byte) (err error)

type UpdateMenuItem

type UpdateMenuItem struct {
	// The merchant's ID that is in GrabFood's database.
	MerchantID string `json:"merchantID"`
	// The record type that you want to update.
	Field string `json:"field"`
	// The record's ID on the partner system. For example, the item id in case type is ITEM.
	Id string `json:"id"`
	// The record's price in minor unit format.
	Price *int64 `json:"price,omitempty"`
	// The record's availableStatus.   Note: In order to set an item as \"UNAVAILABLE\", it is required to update both the `availableStatus` and `maxStock` fields, whereby the `maxStock` value should be set to 0.
	AvailableStatus *string `json:"availableStatus,omitempty"`
	// Available stocks under inventory for this item. Auto reduce when there is order placed for this item.  Note: It is necessary to set `maxStock` to 0 if the `availableStatus` of the item is \"UNAVAILABLE\". Item will be set to \"AVAILABLE\" if `maxStock` > 0.
	MaxStock *int64 `json:"maxStock,omitempty"`
	// Price configuration (in minor unit) for different service, order type and channel combination. If a service type does not have a specified price, it will utilize the default price of the item.
	AdvancedPricings []UpdateAdvancedPricing `json:"advancedPricings,omitempty"`
	// Purchasability is set to true by default for all service type, unless it is explicitly set to false. Modifier will reuse it’s item’s purchasability.
	Purchasabilities     []UpdatePurchasability `json:"purchasabilities,omitempty"`
	AdditionalProperties map[string]interface{}
}

UpdateMenuItem Information about the GrabFood client updating their food menu.

func NewUpdateMenuItem

func NewUpdateMenuItem(merchantID string, field string, id string) *UpdateMenuItem

NewUpdateMenuItem instantiates a new UpdateMenuItem 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 NewUpdateMenuItemWithDefaults

func NewUpdateMenuItemWithDefaults() *UpdateMenuItem

NewUpdateMenuItemWithDefaults instantiates a new UpdateMenuItem 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 (*UpdateMenuItem) GetAdvancedPricings

func (o *UpdateMenuItem) GetAdvancedPricings() []UpdateAdvancedPricing

GetAdvancedPricings returns the AdvancedPricings field value if set, zero value otherwise.

func (*UpdateMenuItem) GetAdvancedPricingsOk

func (o *UpdateMenuItem) GetAdvancedPricingsOk() ([]UpdateAdvancedPricing, bool)

GetAdvancedPricingsOk returns a tuple with the AdvancedPricings field value if set, nil otherwise and a boolean to check if the value has been set.

func (*UpdateMenuItem) GetAvailableStatus

func (o *UpdateMenuItem) GetAvailableStatus() string

GetAvailableStatus returns the AvailableStatus field value if set, zero value otherwise.

func (*UpdateMenuItem) GetAvailableStatusOk

func (o *UpdateMenuItem) GetAvailableStatusOk() (*string, bool)

GetAvailableStatusOk returns a tuple with the AvailableStatus field value if set, nil otherwise and a boolean to check if the value has been set.

func (*UpdateMenuItem) GetField

func (o *UpdateMenuItem) GetField() string

GetField returns the Field field value

func (*UpdateMenuItem) GetFieldOk

func (o *UpdateMenuItem) GetFieldOk() (*string, bool)

GetFieldOk returns a tuple with the Field field value and a boolean to check if the value has been set.

func (*UpdateMenuItem) GetId

func (o *UpdateMenuItem) GetId() string

GetId returns the Id field value

func (*UpdateMenuItem) GetIdOk

func (o *UpdateMenuItem) GetIdOk() (*string, bool)

GetIdOk returns a tuple with the Id field value and a boolean to check if the value has been set.

func (*UpdateMenuItem) GetMaxStock

func (o *UpdateMenuItem) GetMaxStock() int64

GetMaxStock returns the MaxStock field value if set, zero value otherwise.

func (*UpdateMenuItem) GetMaxStockOk

func (o *UpdateMenuItem) GetMaxStockOk() (*int64, bool)

GetMaxStockOk returns a tuple with the MaxStock field value if set, nil otherwise and a boolean to check if the value has been set.

func (*UpdateMenuItem) GetMerchantID

func (o *UpdateMenuItem) GetMerchantID() string

GetMerchantID returns the MerchantID field value

func (*UpdateMenuItem) GetMerchantIDOk

func (o *UpdateMenuItem) GetMerchantIDOk() (*string, bool)

GetMerchantIDOk returns a tuple with the MerchantID field value and a boolean to check if the value has been set.

func (*UpdateMenuItem) GetPrice

func (o *UpdateMenuItem) GetPrice() int64

GetPrice returns the Price field value if set, zero value otherwise.

func (*UpdateMenuItem) GetPriceOk

func (o *UpdateMenuItem) GetPriceOk() (*int64, bool)

GetPriceOk returns a tuple with the Price field value if set, nil otherwise and a boolean to check if the value has been set.

func (*UpdateMenuItem) GetPurchasabilities

func (o *UpdateMenuItem) GetPurchasabilities() []UpdatePurchasability

GetPurchasabilities returns the Purchasabilities field value if set, zero value otherwise.

func (*UpdateMenuItem) GetPurchasabilitiesOk

func (o *UpdateMenuItem) GetPurchasabilitiesOk() ([]UpdatePurchasability, bool)

GetPurchasabilitiesOk returns a tuple with the Purchasabilities field value if set, nil otherwise and a boolean to check if the value has been set.

func (*UpdateMenuItem) HasAdvancedPricings

func (o *UpdateMenuItem) HasAdvancedPricings() bool

HasAdvancedPricings returns a boolean if a field has been set.

func (*UpdateMenuItem) HasAvailableStatus

func (o *UpdateMenuItem) HasAvailableStatus() bool

HasAvailableStatus returns a boolean if a field has been set.

func (*UpdateMenuItem) HasMaxStock

func (o *UpdateMenuItem) HasMaxStock() bool

HasMaxStock returns a boolean if a field has been set.

func (*UpdateMenuItem) HasPrice

func (o *UpdateMenuItem) HasPrice() bool

HasPrice returns a boolean if a field has been set.

func (*UpdateMenuItem) HasPurchasabilities

func (o *UpdateMenuItem) HasPurchasabilities() bool

HasPurchasabilities returns a boolean if a field has been set.

func (UpdateMenuItem) MarshalJSON

func (o UpdateMenuItem) MarshalJSON() ([]byte, error)

func (*UpdateMenuItem) SetAdvancedPricings

func (o *UpdateMenuItem) SetAdvancedPricings(v []UpdateAdvancedPricing)

SetAdvancedPricings gets a reference to the given []UpdateAdvancedPricing and assigns it to the AdvancedPricings field.

func (*UpdateMenuItem) SetAvailableStatus

func (o *UpdateMenuItem) SetAvailableStatus(v string)

SetAvailableStatus gets a reference to the given string and assigns it to the AvailableStatus field.

func (*UpdateMenuItem) SetField

func (o *UpdateMenuItem) SetField(v string)

SetField sets field value

func (*UpdateMenuItem) SetId

func (o *UpdateMenuItem) SetId(v string)

SetId sets field value

func (*UpdateMenuItem) SetMaxStock

func (o *UpdateMenuItem) SetMaxStock(v int64)

SetMaxStock gets a reference to the given int64 and assigns it to the MaxStock field.

func (*UpdateMenuItem) SetMerchantID

func (o *UpdateMenuItem) SetMerchantID(v string)

SetMerchantID sets field value

func (*UpdateMenuItem) SetPrice

func (o *UpdateMenuItem) SetPrice(v int64)

SetPrice gets a reference to the given int64 and assigns it to the Price field.

func (*UpdateMenuItem) SetPurchasabilities

func (o *UpdateMenuItem) SetPurchasabilities(v []UpdatePurchasability)

SetPurchasabilities gets a reference to the given []UpdatePurchasability and assigns it to the Purchasabilities field.

func (UpdateMenuItem) ToMap

func (o UpdateMenuItem) ToMap() (map[string]interface{}, error)

func (*UpdateMenuItem) UnmarshalJSON

func (o *UpdateMenuItem) UnmarshalJSON(data []byte) (err error)

type UpdateMenuModifier

type UpdateMenuModifier struct {
	// The merchant's ID that is in GrabFood's database.
	MerchantID string `json:"merchantID"`
	// The record type that you want to update.
	Field string `json:"field"`
	// The record's ID on the partner system. For example, the modifier id in case type is MODIFIER.
	Id string `json:"id"`
	// The record's price in minor unit format.
	Price *int64 `json:"price,omitempty"`
	// **Only required when updating modifiers.** The record's name. Used as identifier to locate the correct record.
	Name string `json:"name"`
	// The record's availableStatus.
	AvailableStatus *string `json:"availableStatus,omitempty"`
	// Allows the modifier's price to be explicitly set as zero. Possible values are as follows:   * `isFree` && `price == 0` sets the modifier's price to zero.   * `isFree` && `price > 0` returns an error message that \"price cannot be set to > 0, if modifier is free”.   * `!isFree` && `price > 0` sets the modifier's price to the defined price.   * `!isFree` && `price == 0` does not update the modifier's price and reuses the existing price.
	IsFree *bool `json:"isFree,omitempty"`
	// Price configuration (in minor unit) for different service, order type and channel combination. If a service type does not have a specified price, it will utilize the default price of the item.
	AdvancedPricings     []UpdateAdvancedPricing `json:"advancedPricings,omitempty"`
	AdditionalProperties map[string]interface{}
}

UpdateMenuModifier Information about the GrabFood client updating their food menu.

func NewUpdateMenuModifier

func NewUpdateMenuModifier(merchantID string, field string, id string, name string) *UpdateMenuModifier

NewUpdateMenuModifier instantiates a new UpdateMenuModifier 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 NewUpdateMenuModifierWithDefaults

func NewUpdateMenuModifierWithDefaults() *UpdateMenuModifier

NewUpdateMenuModifierWithDefaults instantiates a new UpdateMenuModifier 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 (*UpdateMenuModifier) GetAdvancedPricings

func (o *UpdateMenuModifier) GetAdvancedPricings() []UpdateAdvancedPricing

GetAdvancedPricings returns the AdvancedPricings field value if set, zero value otherwise.

func (*UpdateMenuModifier) GetAdvancedPricingsOk

func (o *UpdateMenuModifier) GetAdvancedPricingsOk() ([]UpdateAdvancedPricing, bool)

GetAdvancedPricingsOk returns a tuple with the AdvancedPricings field value if set, nil otherwise and a boolean to check if the value has been set.

func (*UpdateMenuModifier) GetAvailableStatus

func (o *UpdateMenuModifier) GetAvailableStatus() string

GetAvailableStatus returns the AvailableStatus field value if set, zero value otherwise.

func (*UpdateMenuModifier) GetAvailableStatusOk

func (o *UpdateMenuModifier) GetAvailableStatusOk() (*string, bool)

GetAvailableStatusOk returns a tuple with the AvailableStatus field value if set, nil otherwise and a boolean to check if the value has been set.

func (*UpdateMenuModifier) GetField

func (o *UpdateMenuModifier) GetField() string

GetField returns the Field field value

func (*UpdateMenuModifier) GetFieldOk

func (o *UpdateMenuModifier) GetFieldOk() (*string, bool)

GetFieldOk returns a tuple with the Field field value and a boolean to check if the value has been set.

func (*UpdateMenuModifier) GetId

func (o *UpdateMenuModifier) GetId() string

GetId returns the Id field value

func (*UpdateMenuModifier) GetIdOk

func (o *UpdateMenuModifier) GetIdOk() (*string, bool)

GetIdOk returns a tuple with the Id field value and a boolean to check if the value has been set.

func (*UpdateMenuModifier) GetIsFree

func (o *UpdateMenuModifier) GetIsFree() bool

GetIsFree returns the IsFree field value if set, zero value otherwise.

func (*UpdateMenuModifier) GetIsFreeOk

func (o *UpdateMenuModifier) GetIsFreeOk() (*bool, bool)

GetIsFreeOk returns a tuple with the IsFree field value if set, nil otherwise and a boolean to check if the value has been set.

func (*UpdateMenuModifier) GetMerchantID

func (o *UpdateMenuModifier) GetMerchantID() string

GetMerchantID returns the MerchantID field value

func (*UpdateMenuModifier) GetMerchantIDOk

func (o *UpdateMenuModifier) GetMerchantIDOk() (*string, bool)

GetMerchantIDOk returns a tuple with the MerchantID field value and a boolean to check if the value has been set.

func (*UpdateMenuModifier) GetName

func (o *UpdateMenuModifier) GetName() string

GetName returns the Name field value

func (*UpdateMenuModifier) GetNameOk

func (o *UpdateMenuModifier) GetNameOk() (*string, bool)

GetNameOk returns a tuple with the Name field value and a boolean to check if the value has been set.

func (*UpdateMenuModifier) GetPrice

func (o *UpdateMenuModifier) GetPrice() int64

GetPrice returns the Price field value if set, zero value otherwise.

func (*UpdateMenuModifier) GetPriceOk

func (o *UpdateMenuModifier) GetPriceOk() (*int64, bool)

GetPriceOk returns a tuple with the Price field value if set, nil otherwise and a boolean to check if the value has been set.

func (*UpdateMenuModifier) HasAdvancedPricings

func (o *UpdateMenuModifier) HasAdvancedPricings() bool

HasAdvancedPricings returns a boolean if a field has been set.

func (*UpdateMenuModifier) HasAvailableStatus

func (o *UpdateMenuModifier) HasAvailableStatus() bool

HasAvailableStatus returns a boolean if a field has been set.

func (*UpdateMenuModifier) HasIsFree

func (o *UpdateMenuModifier) HasIsFree() bool

HasIsFree returns a boolean if a field has been set.

func (*UpdateMenuModifier) HasPrice

func (o *UpdateMenuModifier) HasPrice() bool

HasPrice returns a boolean if a field has been set.

func (UpdateMenuModifier) MarshalJSON

func (o UpdateMenuModifier) MarshalJSON() ([]byte, error)

func (*UpdateMenuModifier) SetAdvancedPricings

func (o *UpdateMenuModifier) SetAdvancedPricings(v []UpdateAdvancedPricing)

SetAdvancedPricings gets a reference to the given []UpdateAdvancedPricing and assigns it to the AdvancedPricings field.

func (*UpdateMenuModifier) SetAvailableStatus

func (o *UpdateMenuModifier) SetAvailableStatus(v string)

SetAvailableStatus gets a reference to the given string and assigns it to the AvailableStatus field.

func (*UpdateMenuModifier) SetField

func (o *UpdateMenuModifier) SetField(v string)

SetField sets field value

func (*UpdateMenuModifier) SetId

func (o *UpdateMenuModifier) SetId(v string)

SetId sets field value

func (*UpdateMenuModifier) SetIsFree

func (o *UpdateMenuModifier) SetIsFree(v bool)

SetIsFree gets a reference to the given bool and assigns it to the IsFree field.

func (*UpdateMenuModifier) SetMerchantID

func (o *UpdateMenuModifier) SetMerchantID(v string)

SetMerchantID sets field value

func (*UpdateMenuModifier) SetName

func (o *UpdateMenuModifier) SetName(v string)

SetName sets field value

func (*UpdateMenuModifier) SetPrice

func (o *UpdateMenuModifier) SetPrice(v int64)

SetPrice gets a reference to the given int64 and assigns it to the Price field.

func (UpdateMenuModifier) ToMap

func (o UpdateMenuModifier) ToMap() (map[string]interface{}, error)

func (*UpdateMenuModifier) UnmarshalJSON

func (o *UpdateMenuModifier) UnmarshalJSON(data []byte) (err error)

type UpdateMenuNotifRequest

type UpdateMenuNotifRequest struct {
	// The merchant's ID that is in GrabFood's database.
	MerchantID           string `json:"merchantID"`
	AdditionalProperties map[string]interface{}
}

UpdateMenuNotifRequest This request notifies GrabFood about the partner's updated food menu.

func NewUpdateMenuNotifRequest

func NewUpdateMenuNotifRequest(merchantID string) *UpdateMenuNotifRequest

NewUpdateMenuNotifRequest instantiates a new UpdateMenuNotifRequest 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 NewUpdateMenuNotifRequestWithDefaults

func NewUpdateMenuNotifRequestWithDefaults() *UpdateMenuNotifRequest

NewUpdateMenuNotifRequestWithDefaults instantiates a new UpdateMenuNotifRequest 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 (*UpdateMenuNotifRequest) GetMerchantID

func (o *UpdateMenuNotifRequest) GetMerchantID() string

GetMerchantID returns the MerchantID field value

func (*UpdateMenuNotifRequest) GetMerchantIDOk

func (o *UpdateMenuNotifRequest) GetMerchantIDOk() (*string, bool)

GetMerchantIDOk returns a tuple with the MerchantID field value and a boolean to check if the value has been set.

func (UpdateMenuNotifRequest) MarshalJSON

func (o UpdateMenuNotifRequest) MarshalJSON() ([]byte, error)

func (*UpdateMenuNotifRequest) SetMerchantID

func (o *UpdateMenuNotifRequest) SetMerchantID(v string)

SetMerchantID sets field value

func (UpdateMenuNotifRequest) ToMap

func (o UpdateMenuNotifRequest) ToMap() (map[string]interface{}, error)

func (*UpdateMenuNotifRequest) UnmarshalJSON

func (o *UpdateMenuNotifRequest) UnmarshalJSON(data []byte) (err error)

type UpdateMenuNotificationAPIService

type UpdateMenuNotificationAPIService service

UpdateMenuNotificationAPIService UpdateMenuNotificationAPI service

func (*UpdateMenuNotificationAPIService) UpdateMenuNotification

UpdateMenuNotification Notify Grab of updated menu

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return ApiUpdateMenuNotificationRequest

func (*UpdateMenuNotificationAPIService) UpdateMenuNotificationExecute

Execute executes the request

type UpdateMenuRecordAPIService

type UpdateMenuRecordAPIService service

UpdateMenuRecordAPIService UpdateMenuRecordAPI service

func (*UpdateMenuRecordAPIService) BatchUpdateMenu

BatchUpdateMenu Batch Update Menu

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return ApiBatchUpdateMenuRequest

func (*UpdateMenuRecordAPIService) BatchUpdateMenuExecute

Execute executes the request

@return BatchUpdateMenuResponse

func (*UpdateMenuRecordAPIService) UpdateMenu

UpdateMenu Update menu record

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return ApiUpdateMenuRequest

func (*UpdateMenuRecordAPIService) UpdateMenuExecute

Execute executes the request

type UpdateMenuRequest

type UpdateMenuRequest struct {
	UpdateMenuItem     *UpdateMenuItem
	UpdateMenuModifier *UpdateMenuModifier
}

UpdateMenuRequest - struct for UpdateMenuRequest

func UpdateMenuItemAsUpdateMenuRequest

func UpdateMenuItemAsUpdateMenuRequest(v *UpdateMenuItem) UpdateMenuRequest

UpdateMenuItemAsUpdateMenuRequest is a convenience function that returns UpdateMenuItem wrapped in UpdateMenuRequest

func UpdateMenuModifierAsUpdateMenuRequest

func UpdateMenuModifierAsUpdateMenuRequest(v *UpdateMenuModifier) UpdateMenuRequest

UpdateMenuModifierAsUpdateMenuRequest is a convenience function that returns UpdateMenuModifier wrapped in UpdateMenuRequest

func (*UpdateMenuRequest) GetActualInstance

func (obj *UpdateMenuRequest) GetActualInstance() interface{}

Get the actual instance

func (UpdateMenuRequest) MarshalJSON

func (src UpdateMenuRequest) MarshalJSON() ([]byte, error)

Marshal data from the first non-nil pointers in the struct to JSON

func (*UpdateMenuRequest) UnmarshalJSON

func (dst *UpdateMenuRequest) UnmarshalJSON(data []byte) error

Unmarshal JSON data into one of the pointers in the struct

type UpdateOrderReadyTimeAPIService

type UpdateOrderReadyTimeAPIService service

UpdateOrderReadyTimeAPIService UpdateOrderReadyTimeAPI service

func (*UpdateOrderReadyTimeAPIService) UpdateOrderReadyTime

UpdateOrderReadyTime Update new order ready time

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return ApiUpdateOrderReadyTimeRequest

func (*UpdateOrderReadyTimeAPIService) UpdateOrderReadyTimeExecute

Execute executes the request

type UpdatePurchasability

type UpdatePurchasability struct {
	// Available service type.
	Key                  *string `json:"key,omitempty"`
	Purchasable          *bool   `json:"purchasable,omitempty"`
	AdditionalProperties map[string]interface{}
}

UpdatePurchasability struct for UpdatePurchasability

func NewUpdatePurchasability

func NewUpdatePurchasability() *UpdatePurchasability

NewUpdatePurchasability instantiates a new UpdatePurchasability 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 NewUpdatePurchasabilityWithDefaults

func NewUpdatePurchasabilityWithDefaults() *UpdatePurchasability

NewUpdatePurchasabilityWithDefaults instantiates a new UpdatePurchasability 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 (*UpdatePurchasability) GetKey

func (o *UpdatePurchasability) GetKey() string

GetKey returns the Key field value if set, zero value otherwise.

func (*UpdatePurchasability) GetKeyOk

func (o *UpdatePurchasability) GetKeyOk() (*string, bool)

GetKeyOk returns a tuple with the Key field value if set, nil otherwise and a boolean to check if the value has been set.

func (*UpdatePurchasability) GetPurchasable

func (o *UpdatePurchasability) GetPurchasable() bool

GetPurchasable returns the Purchasable field value if set, zero value otherwise.

func (*UpdatePurchasability) GetPurchasableOk

func (o *UpdatePurchasability) GetPurchasableOk() (*bool, bool)

GetPurchasableOk returns a tuple with the Purchasable field value if set, nil otherwise and a boolean to check if the value has been set.

func (*UpdatePurchasability) HasKey

func (o *UpdatePurchasability) HasKey() bool

HasKey returns a boolean if a field has been set.

func (*UpdatePurchasability) HasPurchasable

func (o *UpdatePurchasability) HasPurchasable() bool

HasPurchasable returns a boolean if a field has been set.

func (UpdatePurchasability) MarshalJSON

func (o UpdatePurchasability) MarshalJSON() ([]byte, error)

func (*UpdatePurchasability) SetKey

func (o *UpdatePurchasability) SetKey(v string)

SetKey gets a reference to the given string and assigns it to the Key field.

func (*UpdatePurchasability) SetPurchasable

func (o *UpdatePurchasability) SetPurchasable(v bool)

SetPurchasable gets a reference to the given bool and assigns it to the Purchasable field.

func (UpdatePurchasability) ToMap

func (o UpdatePurchasability) ToMap() (map[string]interface{}, error)

func (*UpdatePurchasability) UnmarshalJSON

func (o *UpdatePurchasability) UnmarshalJSON(data []byte) (err error)

type UpdateSpecialHourRequest

type UpdateSpecialHourRequest struct {
	// An array of objects contain store special hours. Max. 3 array elements.
	SpecialOpeningHours  []SpecialOpeningHour `json:"specialOpeningHours"`
	AdditionalProperties map[string]interface{}
}

UpdateSpecialHourRequest Object contains store special hours.

func NewUpdateSpecialHourRequest

func NewUpdateSpecialHourRequest(specialOpeningHours []SpecialOpeningHour) *UpdateSpecialHourRequest

NewUpdateSpecialHourRequest instantiates a new UpdateSpecialHourRequest 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 NewUpdateSpecialHourRequestWithDefaults

func NewUpdateSpecialHourRequestWithDefaults() *UpdateSpecialHourRequest

NewUpdateSpecialHourRequestWithDefaults instantiates a new UpdateSpecialHourRequest 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 (*UpdateSpecialHourRequest) GetSpecialOpeningHours

func (o *UpdateSpecialHourRequest) GetSpecialOpeningHours() []SpecialOpeningHour

GetSpecialOpeningHours returns the SpecialOpeningHours field value

func (*UpdateSpecialHourRequest) GetSpecialOpeningHoursOk

func (o *UpdateSpecialHourRequest) GetSpecialOpeningHoursOk() ([]SpecialOpeningHour, bool)

GetSpecialOpeningHoursOk returns a tuple with the SpecialOpeningHours field value and a boolean to check if the value has been set.

func (UpdateSpecialHourRequest) MarshalJSON

func (o UpdateSpecialHourRequest) MarshalJSON() ([]byte, error)

func (*UpdateSpecialHourRequest) SetSpecialOpeningHours

func (o *UpdateSpecialHourRequest) SetSpecialOpeningHours(v []SpecialOpeningHour)

SetSpecialOpeningHours sets field value

func (UpdateSpecialHourRequest) ToMap

func (o UpdateSpecialHourRequest) ToMap() (map[string]interface{}, error)

func (*UpdateSpecialHourRequest) UnmarshalJSON

func (o *UpdateSpecialHourRequest) UnmarshalJSON(data []byte) (err error)

type UpdateSpecialHourResponse

type UpdateSpecialHourResponse struct {
	// Error message when updating store delivery hour. `null` indicates no error.
	ErrorReasons []string `json:"errorReasons,omitempty"`
	// Total active order for the day.
	OrderCount int64 `json:"orderCount"`
	// Total scheduled order during store close period.
	ScheduledOrderCount int64 `json:"scheduledOrderCount"`
	// Indicate the store status after updating special hours.
	CloseImmediately     bool `json:"closeImmediately"`
	AdditionalProperties map[string]interface{}
}

UpdateSpecialHourResponse Object contain update store special hour response

func NewUpdateSpecialHourResponse

func NewUpdateSpecialHourResponse(orderCount int64, scheduledOrderCount int64, closeImmediately bool) *UpdateSpecialHourResponse

NewUpdateSpecialHourResponse instantiates a new UpdateSpecialHourResponse 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 NewUpdateSpecialHourResponseWithDefaults

func NewUpdateSpecialHourResponseWithDefaults() *UpdateSpecialHourResponse

NewUpdateSpecialHourResponseWithDefaults instantiates a new UpdateSpecialHourResponse 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 (*UpdateSpecialHourResponse) GetCloseImmediately

func (o *UpdateSpecialHourResponse) GetCloseImmediately() bool

GetCloseImmediately returns the CloseImmediately field value

func (*UpdateSpecialHourResponse) GetCloseImmediatelyOk

func (o *UpdateSpecialHourResponse) GetCloseImmediatelyOk() (*bool, bool)

GetCloseImmediatelyOk returns a tuple with the CloseImmediately field value and a boolean to check if the value has been set.

func (*UpdateSpecialHourResponse) GetErrorReasons

func (o *UpdateSpecialHourResponse) GetErrorReasons() []string

GetErrorReasons returns the ErrorReasons field value if set, zero value otherwise (both if not set or set to explicit null).

func (*UpdateSpecialHourResponse) GetErrorReasonsOk

func (o *UpdateSpecialHourResponse) GetErrorReasonsOk() ([]string, bool)

GetErrorReasonsOk returns a tuple with the ErrorReasons field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*UpdateSpecialHourResponse) GetOrderCount

func (o *UpdateSpecialHourResponse) GetOrderCount() int64

GetOrderCount returns the OrderCount field value

func (*UpdateSpecialHourResponse) GetOrderCountOk

func (o *UpdateSpecialHourResponse) GetOrderCountOk() (*int64, bool)

GetOrderCountOk returns a tuple with the OrderCount field value and a boolean to check if the value has been set.

func (*UpdateSpecialHourResponse) GetScheduledOrderCount

func (o *UpdateSpecialHourResponse) GetScheduledOrderCount() int64

GetScheduledOrderCount returns the ScheduledOrderCount field value

func (*UpdateSpecialHourResponse) GetScheduledOrderCountOk

func (o *UpdateSpecialHourResponse) GetScheduledOrderCountOk() (*int64, bool)

GetScheduledOrderCountOk returns a tuple with the ScheduledOrderCount field value and a boolean to check if the value has been set.

func (*UpdateSpecialHourResponse) HasErrorReasons

func (o *UpdateSpecialHourResponse) HasErrorReasons() bool

HasErrorReasons returns a boolean if a field has been set.

func (UpdateSpecialHourResponse) MarshalJSON

func (o UpdateSpecialHourResponse) MarshalJSON() ([]byte, error)

func (*UpdateSpecialHourResponse) SetCloseImmediately

func (o *UpdateSpecialHourResponse) SetCloseImmediately(v bool)

SetCloseImmediately sets field value

func (*UpdateSpecialHourResponse) SetErrorReasons

func (o *UpdateSpecialHourResponse) SetErrorReasons(v []string)

SetErrorReasons gets a reference to the given []string and assigns it to the ErrorReasons field.

func (*UpdateSpecialHourResponse) SetOrderCount

func (o *UpdateSpecialHourResponse) SetOrderCount(v int64)

SetOrderCount sets field value

func (*UpdateSpecialHourResponse) SetScheduledOrderCount

func (o *UpdateSpecialHourResponse) SetScheduledOrderCount(v int64)

SetScheduledOrderCount sets field value

func (UpdateSpecialHourResponse) ToMap

func (o UpdateSpecialHourResponse) ToMap() (map[string]interface{}, error)

func (*UpdateSpecialHourResponse) UnmarshalJSON

func (o *UpdateSpecialHourResponse) UnmarshalJSON(data []byte) (err error)

type UpdateStoreDeliveryHourAPIService

type UpdateStoreDeliveryHourAPIService service

UpdateStoreDeliveryHourAPIService UpdateStoreDeliveryHourAPI service

func (*UpdateStoreDeliveryHourAPIService) UpdateStoreDeliveryHour

UpdateStoreDeliveryHour Update Store Delivery Hours

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param merchantID The merchant's ID that is in GrabFood's database.
@return ApiUpdateStoreDeliveryHourRequest

func (*UpdateStoreDeliveryHourAPIService) UpdateStoreDeliveryHourExecute

Execute executes the request

@return UpdateDeliveryHourResponse

type UpdateStoreDineInHourAPIService

type UpdateStoreDineInHourAPIService service

UpdateStoreDineInHourAPIService UpdateStoreDineInHourAPI service

func (*UpdateStoreDineInHourAPIService) UpdateStoreDineInHour

func (a *UpdateStoreDineInHourAPIService) UpdateStoreDineInHour(ctx context.Context, merchantID string) ApiUpdateStoreDineInHourRequest

UpdateStoreDineInHour Update Store Dine-in Hours

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param merchantID The merchant's ID that is in GrabFood's database.
@return ApiUpdateStoreDineInHourRequest

func (*UpdateStoreDineInHourAPIService) UpdateStoreDineInHourExecute

Execute executes the request

@return UpdateDineInHourResponse

type UpdateStoreSpecialHourAPIService

type UpdateStoreSpecialHourAPIService service

UpdateStoreSpecialHourAPIService UpdateStoreSpecialHourAPI service

func (*UpdateStoreSpecialHourAPIService) UpdateStoreSpecialHour

func (a *UpdateStoreSpecialHourAPIService) UpdateStoreSpecialHour(ctx context.Context, merchantID string) ApiUpdateStoreSpecialHourRequest

UpdateStoreSpecialHour Update Store Special Hours

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param merchantID The merchant's ID that is in GrabFood's database.
@return ApiUpdateStoreSpecialHourRequest

func (*UpdateStoreSpecialHourAPIService) UpdateStoreSpecialHourExecute

Execute executes the request

@return UpdateSpecialHourResponse

type Voucher

type Voucher struct {
	// The title of the voucher.
	Title *string `json:"title,omitempty"`
	// The amount paid after discount is applied in local currency.
	DiscountedPrice *string `json:"discountedPrice,omitempty"`
	// The original amount before discount is applied in local currency.
	OriginalPrice   *string                 `json:"originalPrice,omitempty"`
	DescriptionInfo *VoucherDescriptionInfo `json:"descriptionInfo,omitempty"`
	// The type of the dine-in voucher.
	VoucherType          *string `json:"voucherType,omitempty"`
	AdditionalProperties map[string]interface{}
}

Voucher A JSON object containing dine-in voucher details.

func NewVoucher

func NewVoucher() *Voucher

NewVoucher instantiates a new Voucher 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 NewVoucherWithDefaults

func NewVoucherWithDefaults() *Voucher

NewVoucherWithDefaults instantiates a new Voucher 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 (*Voucher) GetDescriptionInfo

func (o *Voucher) GetDescriptionInfo() VoucherDescriptionInfo

GetDescriptionInfo returns the DescriptionInfo field value if set, zero value otherwise.

func (*Voucher) GetDescriptionInfoOk

func (o *Voucher) GetDescriptionInfoOk() (*VoucherDescriptionInfo, bool)

GetDescriptionInfoOk returns a tuple with the DescriptionInfo field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Voucher) GetDiscountedPrice

func (o *Voucher) GetDiscountedPrice() string

GetDiscountedPrice returns the DiscountedPrice field value if set, zero value otherwise.

func (*Voucher) GetDiscountedPriceOk

func (o *Voucher) GetDiscountedPriceOk() (*string, bool)

GetDiscountedPriceOk returns a tuple with the DiscountedPrice field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Voucher) GetOriginalPrice

func (o *Voucher) GetOriginalPrice() string

GetOriginalPrice returns the OriginalPrice field value if set, zero value otherwise.

func (*Voucher) GetOriginalPriceOk

func (o *Voucher) GetOriginalPriceOk() (*string, bool)

GetOriginalPriceOk returns a tuple with the OriginalPrice field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Voucher) GetTitle

func (o *Voucher) GetTitle() string

GetTitle returns the Title field value if set, zero value otherwise.

func (*Voucher) GetTitleOk

func (o *Voucher) GetTitleOk() (*string, bool)

GetTitleOk returns a tuple with the Title field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Voucher) GetVoucherType

func (o *Voucher) GetVoucherType() string

GetVoucherType returns the VoucherType field value if set, zero value otherwise.

func (*Voucher) GetVoucherTypeOk

func (o *Voucher) GetVoucherTypeOk() (*string, bool)

GetVoucherTypeOk returns a tuple with the VoucherType field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Voucher) HasDescriptionInfo

func (o *Voucher) HasDescriptionInfo() bool

HasDescriptionInfo returns a boolean if a field has been set.

func (*Voucher) HasDiscountedPrice

func (o *Voucher) HasDiscountedPrice() bool

HasDiscountedPrice returns a boolean if a field has been set.

func (*Voucher) HasOriginalPrice

func (o *Voucher) HasOriginalPrice() bool

HasOriginalPrice returns a boolean if a field has been set.

func (*Voucher) HasTitle

func (o *Voucher) HasTitle() bool

HasTitle returns a boolean if a field has been set.

func (*Voucher) HasVoucherType

func (o *Voucher) HasVoucherType() bool

HasVoucherType returns a boolean if a field has been set.

func (Voucher) MarshalJSON

func (o Voucher) MarshalJSON() ([]byte, error)

func (*Voucher) SetDescriptionInfo

func (o *Voucher) SetDescriptionInfo(v VoucherDescriptionInfo)

SetDescriptionInfo gets a reference to the given VoucherDescriptionInfo and assigns it to the DescriptionInfo field.

func (*Voucher) SetDiscountedPrice

func (o *Voucher) SetDiscountedPrice(v string)

SetDiscountedPrice gets a reference to the given string and assigns it to the DiscountedPrice field.

func (*Voucher) SetOriginalPrice

func (o *Voucher) SetOriginalPrice(v string)

SetOriginalPrice gets a reference to the given string and assigns it to the OriginalPrice field.

func (*Voucher) SetTitle

func (o *Voucher) SetTitle(v string)

SetTitle gets a reference to the given string and assigns it to the Title field.

func (*Voucher) SetVoucherType

func (o *Voucher) SetVoucherType(v string)

SetVoucherType gets a reference to the given string and assigns it to the VoucherType field.

func (Voucher) ToMap

func (o Voucher) ToMap() (map[string]interface{}, error)

func (*Voucher) UnmarshalJSON

func (o *Voucher) UnmarshalJSON(data []byte) (err error)

type VoucherDescriptionInfo

type VoucherDescriptionInfo struct {
	// The description of the dine-in voucher.
	Text                 *string `json:"text,omitempty"`
	AdditionalProperties map[string]interface{}
}

VoucherDescriptionInfo A JSON object containing dine-in voucher's description information.

func NewVoucherDescriptionInfo

func NewVoucherDescriptionInfo() *VoucherDescriptionInfo

NewVoucherDescriptionInfo instantiates a new VoucherDescriptionInfo 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 NewVoucherDescriptionInfoWithDefaults

func NewVoucherDescriptionInfoWithDefaults() *VoucherDescriptionInfo

NewVoucherDescriptionInfoWithDefaults instantiates a new VoucherDescriptionInfo 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 (*VoucherDescriptionInfo) GetText

func (o *VoucherDescriptionInfo) GetText() string

GetText returns the Text field value if set, zero value otherwise.

func (*VoucherDescriptionInfo) GetTextOk

func (o *VoucherDescriptionInfo) GetTextOk() (*string, bool)

GetTextOk returns a tuple with the Text field value if set, nil otherwise and a boolean to check if the value has been set.

func (*VoucherDescriptionInfo) HasText

func (o *VoucherDescriptionInfo) HasText() bool

HasText returns a boolean if a field has been set.

func (VoucherDescriptionInfo) MarshalJSON

func (o VoucherDescriptionInfo) MarshalJSON() ([]byte, error)

func (*VoucherDescriptionInfo) SetText

func (o *VoucherDescriptionInfo) SetText(v string)

SetText gets a reference to the given string and assigns it to the Text field.

func (VoucherDescriptionInfo) ToMap

func (o VoucherDescriptionInfo) ToMap() (map[string]interface{}, error)

func (*VoucherDescriptionInfo) UnmarshalJSON

func (o *VoucherDescriptionInfo) UnmarshalJSON(data []byte) (err error)

type WorkingHour

type WorkingHour struct {
	Sun                  *WorkingHourDay `json:"sun,omitempty"`
	Mon                  *WorkingHourDay `json:"mon,omitempty"`
	Tue                  *WorkingHourDay `json:"tue,omitempty"`
	Wed                  *WorkingHourDay `json:"wed,omitempty"`
	Thu                  *WorkingHourDay `json:"thu,omitempty"`
	Fri                  *WorkingHourDay `json:"fri,omitempty"`
	Sat                  *WorkingHourDay `json:"sat,omitempty"`
	AdditionalProperties map[string]interface{}
}

WorkingHour A JSON object that describes the workingHour for each day.

func NewWorkingHour

func NewWorkingHour() *WorkingHour

NewWorkingHour instantiates a new WorkingHour 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 NewWorkingHourWithDefaults

func NewWorkingHourWithDefaults() *WorkingHour

NewWorkingHourWithDefaults instantiates a new WorkingHour 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 (*WorkingHour) GetFri

func (o *WorkingHour) GetFri() WorkingHourDay

GetFri returns the Fri field value if set, zero value otherwise.

func (*WorkingHour) GetFriOk

func (o *WorkingHour) GetFriOk() (*WorkingHourDay, bool)

GetFriOk returns a tuple with the Fri field value if set, nil otherwise and a boolean to check if the value has been set.

func (*WorkingHour) GetMon

func (o *WorkingHour) GetMon() WorkingHourDay

GetMon returns the Mon field value if set, zero value otherwise.

func (*WorkingHour) GetMonOk

func (o *WorkingHour) GetMonOk() (*WorkingHourDay, bool)

GetMonOk returns a tuple with the Mon field value if set, nil otherwise and a boolean to check if the value has been set.

func (*WorkingHour) GetSat

func (o *WorkingHour) GetSat() WorkingHourDay

GetSat returns the Sat field value if set, zero value otherwise.

func (*WorkingHour) GetSatOk

func (o *WorkingHour) GetSatOk() (*WorkingHourDay, bool)

GetSatOk returns a tuple with the Sat field value if set, nil otherwise and a boolean to check if the value has been set.

func (*WorkingHour) GetSun

func (o *WorkingHour) GetSun() WorkingHourDay

GetSun returns the Sun field value if set, zero value otherwise.

func (*WorkingHour) GetSunOk

func (o *WorkingHour) GetSunOk() (*WorkingHourDay, bool)

GetSunOk returns a tuple with the Sun field value if set, nil otherwise and a boolean to check if the value has been set.

func (*WorkingHour) GetThu

func (o *WorkingHour) GetThu() WorkingHourDay

GetThu returns the Thu field value if set, zero value otherwise.

func (*WorkingHour) GetThuOk

func (o *WorkingHour) GetThuOk() (*WorkingHourDay, bool)

GetThuOk returns a tuple with the Thu field value if set, nil otherwise and a boolean to check if the value has been set.

func (*WorkingHour) GetTue

func (o *WorkingHour) GetTue() WorkingHourDay

GetTue returns the Tue field value if set, zero value otherwise.

func (*WorkingHour) GetTueOk

func (o *WorkingHour) GetTueOk() (*WorkingHourDay, bool)

GetTueOk returns a tuple with the Tue field value if set, nil otherwise and a boolean to check if the value has been set.

func (*WorkingHour) GetWed

func (o *WorkingHour) GetWed() WorkingHourDay

GetWed returns the Wed field value if set, zero value otherwise.

func (*WorkingHour) GetWedOk

func (o *WorkingHour) GetWedOk() (*WorkingHourDay, bool)

GetWedOk returns a tuple with the Wed field value if set, nil otherwise and a boolean to check if the value has been set.

func (*WorkingHour) HasFri

func (o *WorkingHour) HasFri() bool

HasFri returns a boolean if a field has been set.

func (*WorkingHour) HasMon

func (o *WorkingHour) HasMon() bool

HasMon returns a boolean if a field has been set.

func (*WorkingHour) HasSat

func (o *WorkingHour) HasSat() bool

HasSat returns a boolean if a field has been set.

func (*WorkingHour) HasSun

func (o *WorkingHour) HasSun() bool

HasSun returns a boolean if a field has been set.

func (*WorkingHour) HasThu

func (o *WorkingHour) HasThu() bool

HasThu returns a boolean if a field has been set.

func (*WorkingHour) HasTue

func (o *WorkingHour) HasTue() bool

HasTue returns a boolean if a field has been set.

func (*WorkingHour) HasWed

func (o *WorkingHour) HasWed() bool

HasWed returns a boolean if a field has been set.

func (WorkingHour) MarshalJSON

func (o WorkingHour) MarshalJSON() ([]byte, error)

func (*WorkingHour) SetFri

func (o *WorkingHour) SetFri(v WorkingHourDay)

SetFri gets a reference to the given WorkingHourDay and assigns it to the Fri field.

func (*WorkingHour) SetMon

func (o *WorkingHour) SetMon(v WorkingHourDay)

SetMon gets a reference to the given WorkingHourDay and assigns it to the Mon field.

func (*WorkingHour) SetSat

func (o *WorkingHour) SetSat(v WorkingHourDay)

SetSat gets a reference to the given WorkingHourDay and assigns it to the Sat field.

func (*WorkingHour) SetSun

func (o *WorkingHour) SetSun(v WorkingHourDay)

SetSun gets a reference to the given WorkingHourDay and assigns it to the Sun field.

func (*WorkingHour) SetThu

func (o *WorkingHour) SetThu(v WorkingHourDay)

SetThu gets a reference to the given WorkingHourDay and assigns it to the Thu field.

func (*WorkingHour) SetTue

func (o *WorkingHour) SetTue(v WorkingHourDay)

SetTue gets a reference to the given WorkingHourDay and assigns it to the Tue field.

func (*WorkingHour) SetWed

func (o *WorkingHour) SetWed(v WorkingHourDay)

SetWed gets a reference to the given WorkingHourDay and assigns it to the Wed field.

func (WorkingHour) ToMap

func (o WorkingHour) ToMap() (map[string]interface{}, error)

func (*WorkingHour) UnmarshalJSON

func (o *WorkingHour) UnmarshalJSON(data []byte) (err error)

type WorkingHourDay

type WorkingHourDay struct {
	// An array of open periods. `null` if the campaign period is closed all day.
	Periods              []OpenPeriod `json:"periods,omitempty"`
	AdditionalProperties map[string]interface{}
}

WorkingHourDay A JSON object for workingHour for a day.

func NewWorkingHourDay

func NewWorkingHourDay() *WorkingHourDay

NewWorkingHourDay instantiates a new WorkingHourDay 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 NewWorkingHourDayWithDefaults

func NewWorkingHourDayWithDefaults() *WorkingHourDay

NewWorkingHourDayWithDefaults instantiates a new WorkingHourDay 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 (*WorkingHourDay) GetPeriods

func (o *WorkingHourDay) GetPeriods() []OpenPeriod

GetPeriods returns the Periods field value if set, zero value otherwise (both if not set or set to explicit null).

func (*WorkingHourDay) GetPeriodsOk

func (o *WorkingHourDay) GetPeriodsOk() ([]OpenPeriod, bool)

GetPeriodsOk returns a tuple with the Periods field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*WorkingHourDay) HasPeriods

func (o *WorkingHourDay) HasPeriods() bool

HasPeriods returns a boolean if a field has been set.

func (WorkingHourDay) MarshalJSON

func (o WorkingHourDay) MarshalJSON() ([]byte, error)

func (*WorkingHourDay) SetPeriods

func (o *WorkingHourDay) SetPeriods(v []OpenPeriod)

SetPeriods gets a reference to the given []OpenPeriod and assigns it to the Periods field.

func (WorkingHourDay) ToMap

func (o WorkingHourDay) ToMap() (map[string]interface{}, error)

func (*WorkingHourDay) UnmarshalJSON

func (o *WorkingHourDay) UnmarshalJSON(data []byte) (err error)

Source Files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL