toast

package module
v0.0.0-...-6178593 Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2023 License: MIT Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	BaseURL = url.URL{
		Scheme: "https",
		Host:   "ws-api.toasttab.com",
		Path:   "",
	}
)

Functions

func CheckResponse

func CheckResponse(r *http.Response) error

CheckResponse checks the Client response for errors, and returns them if present. A response is considered an error if it has a status code outside the 200 range. Client error responses are expected to have either no response body, or a json response body that maps to ErrorResponse. Any other response body will be silently ignored.

func CreateFormFile

func CreateFormFile(w *multipart.Writer, data io.Reader, fieldname, filename string) (io.Writer, error)

func GetFileContentType

func GetFileContentType(file io.Reader) (string, error)

Types

type AlternativePaymentType

type AlternativePaymentType struct {
	GUID       string      `json:"guid"`
	EntityType string      `json:"entityType"`
	ExternalID interface{} `json:"externalId"`
	Name       string      `json:"name"`
}

type AlternativePaymentTypes

type AlternativePaymentTypes []AlternativePaymentType

type AlternativePaymentTypesGetRequest

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

func (*AlternativePaymentTypesGetRequest) All

func (*AlternativePaymentTypesGetRequest) Do

func (*AlternativePaymentTypesGetRequest) Method

func (AlternativePaymentTypesGetRequest) NewPathParams

func (AlternativePaymentTypesGetRequest) NewQueryParams

func (AlternativePaymentTypesGetRequest) NewRequestBody

func (*AlternativePaymentTypesGetRequest) NewResponseBody

func (*AlternativePaymentTypesGetRequest) PathParams

func (*AlternativePaymentTypesGetRequest) PathParamsInterface

func (r *AlternativePaymentTypesGetRequest) PathParamsInterface() PathParams

func (*AlternativePaymentTypesGetRequest) QueryParams

func (*AlternativePaymentTypesGetRequest) RequestBody

func (*AlternativePaymentTypesGetRequest) RequestBodyInterface

func (r *AlternativePaymentTypesGetRequest) RequestBodyInterface() interface{}

func (*AlternativePaymentTypesGetRequest) SetMethod

func (r *AlternativePaymentTypesGetRequest) SetMethod(method string)

func (*AlternativePaymentTypesGetRequest) SetRequestBody

func (*AlternativePaymentTypesGetRequest) URL

type AlternativePaymentTypesGetRequestBody

type AlternativePaymentTypesGetRequestBody struct {
}

type AlternativePaymentTypesGetRequestPathParams

type AlternativePaymentTypesGetRequestPathParams struct {
}

func (*AlternativePaymentTypesGetRequestPathParams) Params

type AlternativePaymentTypesGetRequestQueryParams

type AlternativePaymentTypesGetRequestQueryParams struct {
	PageToken string `schema:"pageToken,omitempty"`
}

func (AlternativePaymentTypesGetRequestQueryParams) ToURLValues

type AlternativePaymentTypesGetResponseBody

type AlternativePaymentTypesGetResponseBody AlternativePaymentTypes

type AppliedTax

type AppliedTax struct {
	GUID       string `json:"guid"`
	EntityType string `json:"entityType"`
	TaxRate    struct {
		GUID       string `json:"guid"`
		EntityType string `json:"entityType"`
	} `json:"taxRate"`
	Rate                          float64 `json:"rate"`
	Name                          string  `json:"name"`
	TaxAmount                     float64 `json:"taxAmount"`
	Type                          string  `json:"type"`
	FacilitatorCollectAndRemitTax bool    `json:"facilitatorCollectAndRemitTax"`
}

type AppliedTaxes

type AppliedTaxes []AppliedTax

type BeforeRequestDoCallback

type BeforeRequestDoCallback func(*http.Client, *http.Request, interface{})

type Client

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

Client manages communication with Exact Globe Client

func NewClient

func NewClient(httpClient *http.Client) *Client

NewClient returns a new Exact Globe Client client

func (Client) BaseURL

func (c Client) BaseURL() url.URL

func (Client) Charset

func (c Client) Charset() string

func (Client) ClientID

func (c Client) ClientID() string

func (Client) ClientSecret

func (c Client) ClientSecret() string

func (Client) Debug

func (c Client) Debug() bool

func (*Client) Do

func (c *Client) Do(req *http.Request, body interface{}) (*http.Response, error)

Do sends an Client request and returns the Client response. The Client response is json decoded and stored in the value pointed to by v, or returned as an error if an Client error has occurred. If v implements the io.Writer interface, the raw response will be written to v, without attempting to decode it.

func (*Client) GetEndpointURL

func (c *Client) GetEndpointURL(p string, pathParams PathParams) url.URL

func (*Client) GetNextPage

func (c *Client) GetNextPage(resp *http.Response) (int, error)

func (*Client) GetNextURL

func (c *Client) GetNextURL(resp *http.Response) (string, error)

func (*Client) GetPageToken

func (c *Client) GetPageToken(resp *http.Response) (string, error)

func (*Client) InitToken

func (c *Client) InitToken(req *http.Request) error

func (Client) MediaType

func (c Client) MediaType() string

func (*Client) NewAlternativePaymentTypesGetRequest

func (c *Client) NewAlternativePaymentTypesGetRequest() AlternativePaymentTypesGetRequest

func (*Client) NewDiningOptionsGetRequest

func (c *Client) NewDiningOptionsGetRequest() DiningOptionsGetRequest

func (*Client) NewDiscountsGetRequest

func (c *Client) NewDiscountsGetRequest() DiscountsGetRequest

func (*Client) NewFormRequest

func (c *Client) NewFormRequest(ctx context.Context, method string, URL url.URL, form Form) (*http.Request, error)

func (*Client) NewLoginPostRequest

func (c *Client) NewLoginPostRequest() LoginPostRequest

func (*Client) NewMenuGroupsGetRequest

func (c *Client) NewMenuGroupsGetRequest() MenuGroupsGetRequest

func (*Client) NewMenuItemGetRequest

func (c *Client) NewMenuItemGetRequest() MenuItemGetRequest

func (*Client) NewMenuItemsGetRequest

func (c *Client) NewMenuItemsGetRequest() MenuItemsGetRequest

func (*Client) NewOrdersBulkGetRequest

func (c *Client) NewOrdersBulkGetRequest() OrdersBulkGetRequest

func (*Client) NewRequest

func (c *Client) NewRequest(ctx context.Context, req Request) (*http.Request, error)

func (*Client) NewRestaurantGetRequest

func (c *Client) NewRestaurantGetRequest() RestaurantGetRequest

func (*Client) NewRevenueCentersGetRequest

func (c *Client) NewRevenueCentersGetRequest() RevenueCentersGetRequest

func (*Client) NewSalesCategoriesGetRequest

func (c *Client) NewSalesCategoriesGetRequest() SalesCategoriesGetRequest

func (*Client) NewTaxRatesGetRequest

func (c *Client) NewTaxRatesGetRequest() TaxRatesGetRequest

func (*Client) SetBaseURL

func (c *Client) SetBaseURL(baseURL url.URL)

func (*Client) SetBeforeRequestDo

func (c *Client) SetBeforeRequestDo(fun BeforeRequestDoCallback)

func (*Client) SetCharset

func (c *Client) SetCharset(charset string)

func (*Client) SetClientID

func (c *Client) SetClientID(clientID string)

func (*Client) SetClientSecret

func (c *Client) SetClientSecret(clientSecret string)

func (*Client) SetDebug

func (c *Client) SetDebug(debug bool)

func (*Client) SetDisallowUnknownFields

func (c *Client) SetDisallowUnknownFields(disallowUnknownFields bool)

func (*Client) SetHTTPClient

func (c *Client) SetHTTPClient(client *http.Client)

func (*Client) SetMediaType

func (c *Client) SetMediaType(mediaType string)

func (*Client) SetToastRestaurantExternalID

func (c *Client) SetToastRestaurantExternalID(toastRestaurantExternalID string)

func (*Client) SetUserAgent

func (c *Client) SetUserAgent(userAgent string)

func (Client) ToastRestaurantExternalID

func (c Client) ToastRestaurantExternalID() string

func (*Client) Unmarshal

func (c *Client) Unmarshal(r io.Reader, vv ...interface{}) error

func (Client) UserAgent

func (c Client) UserAgent() string

type Date

type Date struct {
	time.Time
}

func (Date) IsEmpty

func (d Date) IsEmpty() bool

func (*Date) MarshalJSON

func (d *Date) MarshalJSON() ([]byte, error)

func (Date) MarshalSchema

func (d Date) MarshalSchema() string

func (*Date) UnmarshalJSON

func (d *Date) UnmarshalJSON(text []byte) (err error)

type DateTime

type DateTime struct {
	time.Time
}

func (*DateTime) MarshalJSON

func (dt *DateTime) MarshalJSON() ([]byte, error)

func (DateTime) MarshalSchema

func (d DateTime) MarshalSchema() string

func (*DateTime) UnmarshalJSON

func (dt *DateTime) UnmarshalJSON(text []byte) (err error)

type DiningOption

type DiningOption struct {
	GUID       string      `json:"guid"`
	EntityType string      `json:"entityType"`
	ExternalID interface{} `json:"externalId"`
	Name       string      `json:"name"`
	Curbside   bool        `json:"curbside"`
	Behavior   string      `json:"behavior"`
}

type DiningOptions

type DiningOptions []DiningOption

type DiningOptionsGetRequest

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

func (*DiningOptionsGetRequest) All

func (*DiningOptionsGetRequest) Do

func (*DiningOptionsGetRequest) Method

func (r *DiningOptionsGetRequest) Method() string

func (DiningOptionsGetRequest) NewPathParams

func (DiningOptionsGetRequest) NewQueryParams

func (DiningOptionsGetRequest) NewRequestBody

func (*DiningOptionsGetRequest) NewResponseBody

func (*DiningOptionsGetRequest) PathParams

func (*DiningOptionsGetRequest) PathParamsInterface

func (r *DiningOptionsGetRequest) PathParamsInterface() PathParams

func (*DiningOptionsGetRequest) QueryParams

func (*DiningOptionsGetRequest) RequestBody

func (*DiningOptionsGetRequest) RequestBodyInterface

func (r *DiningOptionsGetRequest) RequestBodyInterface() interface{}

func (*DiningOptionsGetRequest) SetMethod

func (r *DiningOptionsGetRequest) SetMethod(method string)

func (*DiningOptionsGetRequest) SetRequestBody

func (r *DiningOptionsGetRequest) SetRequestBody(body DiningOptionsGetRequestBody)

func (*DiningOptionsGetRequest) URL

func (r *DiningOptionsGetRequest) URL() *url.URL

type DiningOptionsGetRequestBody

type DiningOptionsGetRequestBody struct {
}

type DiningOptionsGetRequestPathParams

type DiningOptionsGetRequestPathParams struct {
}

func (*DiningOptionsGetRequestPathParams) Params

type DiningOptionsGetRequestQueryParams

type DiningOptionsGetRequestQueryParams struct {
	PageToken string `schema:"pageToken,omitempty"`
}

func (DiningOptionsGetRequestQueryParams) ToURLValues

type DiningOptionsGetResponseBody

type DiningOptionsGetResponseBody DiningOptions

type Discount

type Discount struct {
	GUID                string      `json:"guid"`
	EntityType          string      `json:"entityType"`
	Amount              float64     `json:"amount"`
	SelectionType       string      `json:"selectionType"`
	NonExclusive        bool        `json:"nonExclusive"`
	Percentage          float64     `json:"percentage"`
	Name                string      `json:"name"`
	Active              bool        `json:"active"`
	ItemPickingPriority string      `json:"itemPickingPriority"`
	Type                string      `json:"type"`
	FixedTotal          interface{} `json:"fixedTotal"`
}

type Discounts

type Discounts []Discount

type DiscountsGetRequest

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

func (*DiscountsGetRequest) Do

func (*DiscountsGetRequest) Method

func (r *DiscountsGetRequest) Method() string

func (DiscountsGetRequest) NewPathParams

func (DiscountsGetRequest) NewQueryParams

func (DiscountsGetRequest) NewRequestBody

func (r DiscountsGetRequest) NewRequestBody() DiscountsGetRequestBody

func (*DiscountsGetRequest) NewResponseBody

func (r *DiscountsGetRequest) NewResponseBody() *DiscountsGetResponseBody

func (*DiscountsGetRequest) PathParams

func (*DiscountsGetRequest) PathParamsInterface

func (r *DiscountsGetRequest) PathParamsInterface() PathParams

func (*DiscountsGetRequest) QueryParams

func (*DiscountsGetRequest) RequestBody

func (r *DiscountsGetRequest) RequestBody() *DiscountsGetRequestBody

func (*DiscountsGetRequest) RequestBodyInterface

func (r *DiscountsGetRequest) RequestBodyInterface() interface{}

func (*DiscountsGetRequest) SetMethod

func (r *DiscountsGetRequest) SetMethod(method string)

func (*DiscountsGetRequest) SetRequestBody

func (r *DiscountsGetRequest) SetRequestBody(body DiscountsGetRequestBody)

func (*DiscountsGetRequest) URL

func (r *DiscountsGetRequest) URL() *url.URL

type DiscountsGetRequestBody

type DiscountsGetRequestBody struct {
}

type DiscountsGetRequestPathParams

type DiscountsGetRequestPathParams struct {
}

func (*DiscountsGetRequestPathParams) Params

type DiscountsGetRequestQueryParams

type DiscountsGetRequestQueryParams struct {
	StartDate    DateTime `schema:"startDate,omitempty"`
	EndDate      DateTime `schema:"endDate,omitempty"`
	PageSize     int      `schema:"pageSize,omitempty"`
	Page         int      `schema:"page,omitempty"`
	BusinessDate Date     `schema:"businessDate,omitempty"`
}

func (DiscountsGetRequestQueryParams) ToURLValues

func (p DiscountsGetRequestQueryParams) ToURLValues() (url.Values, error)

type DiscountsGetResponseBody

type DiscountsGetResponseBody Discounts

type ErrorResponse

type ErrorResponse struct {
	// HTTP response that caused this error
	Response *http.Response

	Status           int         `json:"status"`
	Code             int         `json:"code"`
	Message          string      `json:"message"`
	MessageKey       string      `json:"messageKey"`
	FieldName        string      `json:"fieldName"`
	Link             string      `json:"link"`
	RequestID        string      `json:"requestId"`
	DeveloperMessage string      `json:"developerMessage"`
	Errors           []string    `json:"errors"`
	CanRetry         interface{} `json:"canRetry"`
}

func (*ErrorResponse) Error

func (r *ErrorResponse) Error() string

type Form

type Form interface {
	Values() url.Values
	Files() map[string]FormFile
}

type FormFile

type FormFile struct {
	Filename string
	Content  io.Reader
}

type LoginPostRequest

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

func (*LoginPostRequest) Do

func (*LoginPostRequest) Method

func (r *LoginPostRequest) Method() string

func (LoginPostRequest) NewPathParams

func (r LoginPostRequest) NewPathParams() *LoginPostRequestPathParams

func (LoginPostRequest) NewQueryParams

func (r LoginPostRequest) NewQueryParams() *LoginPostRequestQueryParams

func (LoginPostRequest) NewRequestBody

func (r LoginPostRequest) NewRequestBody() LoginPostRequestBody

func (*LoginPostRequest) NewResponseBody

func (r *LoginPostRequest) NewResponseBody() *LoginPostResponseBody

func (*LoginPostRequest) PathParams

func (*LoginPostRequest) PathParamsInterface

func (r *LoginPostRequest) PathParamsInterface() PathParams

func (*LoginPostRequest) QueryParams

func (*LoginPostRequest) RequestBody

func (r *LoginPostRequest) RequestBody() *LoginPostRequestBody

func (*LoginPostRequest) RequestBodyInterface

func (r *LoginPostRequest) RequestBodyInterface() interface{}

func (*LoginPostRequest) SetMethod

func (r *LoginPostRequest) SetMethod(method string)

func (*LoginPostRequest) SetRequestBody

func (r *LoginPostRequest) SetRequestBody(body LoginPostRequestBody)

func (*LoginPostRequest) URL

func (r *LoginPostRequest) URL() *url.URL

type LoginPostRequestBody

type LoginPostRequestBody struct {
	ClientID       string `json:"clientId"`
	ClientSecret   string `json:"clientSecret"`
	UserAccessType string `json:"userAccessType"`
}

type LoginPostRequestPathParams

type LoginPostRequestPathParams struct {
}

func (*LoginPostRequestPathParams) Params

func (p *LoginPostRequestPathParams) Params() map[string]string

type LoginPostRequestQueryParams

type LoginPostRequestQueryParams struct {
}

func (LoginPostRequestQueryParams) ToURLValues

func (p LoginPostRequestQueryParams) ToURLValues() (url.Values, error)

type LoginPostResponseBody

type LoginPostResponseBody struct {
	Class  string `json:"@class"`
	Token  Token  `json:"token"`
	Status string `json:"status"`
}
type MenuGroup struct {
	GUID          string        `json:"guid"`
	EntityType    string        `json:"entityType"`
	ExternalID    interface{}   `json:"externalId"`
	Parent        interface{}   `json:"parent"`
	Images        []interface{} `json:"images"`
	Visibility    string        `json:"visibility"`
	UnitOfMeasure string        `json:"unitOfMeasure"`
	OptionGroups  []struct {
		GUID       string      `json:"guid"`
		EntityType string      `json:"entityType"`
		ExternalID interface{} `json:"externalId"`
	} `json:"optionGroups"`
	Menu struct {
		GUID       string      `json:"guid"`
		EntityType string      `json:"entityType"`
		ExternalID interface{} `json:"externalId"`
	} `json:"menu"`
	InheritUnitOfMeasure bool          `json:"inheritUnitOfMeasure"`
	Subgroups            []interface{} `json:"subgroups"`
	InheritOptionGroups  bool          `json:"inheritOptionGroups"`
	OrderableOnline      string        `json:"orderableOnline"`
	Name                 string        `json:"name"`
	Items                []struct {
		GUID       string      `json:"guid"`
		EntityType string      `json:"entityType"`
		ExternalID interface{} `json:"externalId"`
	} `json:"items"`
}
type MenuGroups []MenuGroup
type MenuGroupsGetRequest struct {
	// contains filtered or unexported fields
}
func (r *MenuGroupsGetRequest) Method() string
func (r *MenuGroupsGetRequest) NewResponseBody() *MenuGroupsGetResponseBody
func (r *MenuGroupsGetRequest) PathParamsInterface() PathParams
func (r *MenuGroupsGetRequest) RequestBodyInterface() interface{}
func (r *MenuGroupsGetRequest) SetMethod(method string)
func (r *MenuGroupsGetRequest) SetRequestBody(body MenuGroupsGetRequestBody)
func (r *MenuGroupsGetRequest) URL() *url.URL
type MenuGroupsGetRequestBody struct {
}
type MenuGroupsGetRequestPathParams struct {
}
type MenuGroupsGetRequestQueryParams struct {
	StartDate    DateTime `schema:"startDate,omitempty"`
	EndDate      DateTime `schema:"endDate,omitempty"`
	PageSize     int      `schema:"pageSize,omitempty"`
	Page         int      `schema:"page,omitempty"`
	BusinessDate Date     `schema:"businessDate,omitempty"`
}
func (p MenuGroupsGetRequestQueryParams) ToURLValues() (url.Values, error)
type MenuGroupsGetResponseBody MenuGroups
type MenuItem struct {
	GUID                 string        `json:"guid"`
	EntityType           string        `json:"entityType"`
	ExternalID           interface{}   `json:"externalId"`
	Images               []interface{} `json:"images"`
	Visibility           string        `json:"visibility"`
	UnitOfMeasure        string        `json:"unitOfMeasure"`
	OptionGroups         []interface{} `json:"optionGroups"`
	Calories             interface{}   `json:"calories"`
	Type                 interface{}   `json:"type"`
	InheritUnitOfMeasure bool          `json:"inheritUnitOfMeasure"`
	InheritOptionGroups  bool          `json:"inheritOptionGroups"`
	OrderableOnline      string        `json:"orderableOnline"`
	Name                 string        `json:"name"`
	Plu                  string        `json:"plu"`
	Sku                  string        `json:"sku"`
}
type MenuItemGetRequest struct {
	// contains filtered or unexported fields
}
func (r *MenuItemGetRequest) Method() string
func (r MenuItemGetRequest) NewRequestBody() MenuItemGetRequestBody
func (r *MenuItemGetRequest) NewResponseBody() *MenuItemGetResponseBody
func (r *MenuItemGetRequest) PathParamsInterface() PathParams
func (r *MenuItemGetRequest) RequestBody() *MenuItemGetRequestBody
func (r *MenuItemGetRequest) RequestBodyInterface() interface{}
func (r *MenuItemGetRequest) SetMethod(method string)
func (r *MenuItemGetRequest) SetRequestBody(body MenuItemGetRequestBody)
func (r *MenuItemGetRequest) URL() *url.URL
type MenuItemGetRequestBody struct {
}
type MenuItemGetRequestPathParams struct {
	GUID string `schema:"guid"`
}
func (p *MenuItemGetRequestPathParams) Params() map[string]string
type MenuItemGetRequestQueryParams struct{}
func (p MenuItemGetRequestQueryParams) ToURLValues() (url.Values, error)
type MenuItemGetResponseBody MenuItem
type MenuItems []MenuItem
type MenuItemsGetRequest struct {
	// contains filtered or unexported fields
}
func (r *MenuItemsGetRequest) Method() string
func (r MenuItemsGetRequest) NewRequestBody() MenuItemsGetRequestBody
func (r *MenuItemsGetRequest) NewResponseBody() *MenuItemsGetResponseBody
func (r *MenuItemsGetRequest) PathParamsInterface() PathParams
func (r *MenuItemsGetRequest) RequestBody() *MenuItemsGetRequestBody
func (r *MenuItemsGetRequest) RequestBodyInterface() interface{}
func (r *MenuItemsGetRequest) SetMethod(method string)
func (r *MenuItemsGetRequest) SetRequestBody(body MenuItemsGetRequestBody)
func (r *MenuItemsGetRequest) URL() *url.URL
type MenuItemsGetRequestBody struct {
}
type MenuItemsGetRequestPathParams struct {
}
type MenuItemsGetRequestQueryParams struct {
	PageToken string `schema:"pageToken,omitempty"`
}
func (p MenuItemsGetRequestQueryParams) ToURLValues() (url.Values, error)
type MenuItemsGetResponseBody MenuItems

type Modifier

type Modifier struct {
	AppliedDiscounts  []interface{} `json:"appliedDiscounts"`
	AppliedTaxes      AppliedTaxes  `json:"appliedTaxes"`
	CreatedDate       string        `json:"createdDate"`
	Deferred          bool          `json:"deferred"`
	DiningOption      interface{}   `json:"diningOption"`
	DisplayName       string        `json:"displayName"`
	EntityType        string        `json:"entityType"`
	ExternalID        interface{}   `json:"externalId"`
	FulfillmentStatus string        `json:"fulfillmentStatus"`
	GUID              string        `json:"guid"`
	Item              interface{}   `json:"item"`
	ItemGroup         interface{}   `json:"itemGroup"`
	ModifiedDate      string        `json:"modifiedDate"`
	// Modifiers                Modifiers     `json:"modifiers"`
	OptionGroup              interface{} `json:"optionGroup"`
	OptionGroupPricingMode   interface{} `json:"optionGroupPricingMode"`
	PreDiscountPrice         float64     `json:"preDiscountPrice"`
	PreModifier              interface{} `json:"preModifier"`
	Price                    float64     `json:"price"`
	Quantity                 float64     `json:"quantity"`
	ReceiptLinePrice         float64     `json:"receiptLinePrice"`
	RefundDetails            interface{} `json:"refundDetails"`
	SalesCategory            interface{} `json:"salesCategory"`
	SeatNumber               int         `json:"seatNumber"`
	SelectionType            string      `json:"selectionType"`
	StoredValueTransactionID interface{} `json:"storedValueTransactionId"`
	Tax                      float64     `json:"tax"`
	TaxInclusion             string      `json:"taxInclusion"`
	ToastGiftCard            interface{} `json:"toastGiftCard"`
	UnitOfMeasure            string      `json:"unitOfMeasure"`
	VoidBusinessDate         Date        `json:"voidBusinessDate"`
	VoidDate                 DateTime    `json:"voidDate"`
	VoidReason               interface{} `json:"voidReason"`
	Voided                   bool        `json:"voided"`
}

type Modifiers

type Modifiers []Modifier

type Number

type Number float64

func (Number) MarshalJSON

func (i Number) MarshalJSON() ([]byte, error)

func (*Number) UnmarshalJSON

func (i *Number) UnmarshalJSON(data []byte) error

type Order

type Order struct {
	GUID          string        `json:"guid"`
	EntityType    string        `json:"entityType"`
	ExternalID    interface{}   `json:"externalId"`
	RevenueCenter RevenueCenter `json:"revenueCenter"`
	Server        struct {
		GUID       string      `json:"guid"`
		EntityType string      `json:"entityType"`
		ExternalID interface{} `json:"externalId"`
	} `json:"server"`
	LastModifiedDevice struct {
		ID string `json:"id"`
	} `json:"lastModifiedDevice"`
	Source            string   `json:"source"`
	VoidDate          DateTime `json:"voidDate"`
	Duration          int      `json:"duration"`
	BusinessDate      Date     `json:"businessDate"`
	PaidDate          DateTime `json:"paidDate"`
	RestaurantService struct {
		GUID       string      `json:"guid"`
		EntityType string      `json:"entityType"`
		ExternalID interface{} `json:"externalId"`
	} `json:"restaurantService"`
	Voided                   bool         `json:"voided"`
	EstimatedFulfillmentDate DateTime     `json:"estimatedFulfillmentDate"`
	Table                    interface{}  `json:"table"`
	RequiredPrepTime         string       `json:"requiredPrepTime"`
	ApprovalStatus           string       `json:"approvalStatus"`
	DeliveryInfo             interface{}  `json:"deliveryInfo"`
	ServiceArea              interface{}  `json:"serviceArea"`
	CurbsidePickupInfo       interface{}  `json:"curbsidePickupInfo"`
	NumberOfGuests           int          `json:"numberOfGuests"`
	DiningOption             DiningOption `json:"diningOption"`
	OpenedDate               DateTime     `json:"openedDate"`
	VoidBusinessDate         Date         `json:"voidBusinessDate"`
	Checks                   []struct {
		GUID          string      `json:"guid"`
		EntityType    string      `json:"entityType"`
		ExternalID    interface{} `json:"externalId"`
		DisplayNumber string      `json:"displayNumber"`
		Payments      []struct {
			GUID                  string      `json:"guid"`
			EntityType            string      `json:"entityType"`
			ExternalID            interface{} `json:"externalId"`
			OriginalProcessingFee float64     `json:"originalProcessingFee"`
			Server                struct {
				GUID       string      `json:"guid"`
				EntityType string      `json:"entityType"`
				ExternalID interface{} `json:"externalId"`
			} `json:"server"`
			CashDrawer         interface{} `json:"cashDrawer"`
			LastModifiedDevice struct {
				ID string `json:"id"`
			} `json:"lastModifiedDevice"`
			RefundStatus       string      `json:"refundStatus"`
			IsProcessedOffline interface{} `json:"isProcessedOffline"`
			Type               string      `json:"type"`
			VoidInfo           interface{} `json:"voidInfo"`
			CheckGUID          string      `json:"checkGuid"`
			OtherPayment       struct {
				GUID       string      `json:"guid"`
				EntityType string      `json:"entityType"`
				ExternalID interface{} `json:"externalId"`
			} `json:"otherPayment"`
			PaidDate           DateTime    `json:"paidDate"`
			OrderGUID          string      `json:"orderGuid"`
			CardEntryMode      interface{} `json:"cardEntryMode"`
			PaymentStatus      string      `json:"paymentStatus"`
			Amount             float64     `json:"amount"`
			TipAmount          float64     `json:"tipAmount"`
			AmountTendered     float64     `json:"amountTendered"`
			CardType           interface{} `json:"cardType"`
			HouseAccount       interface{} `json:"houseAccount"`
			McaRepaymentAmount interface{} `json:"mcaRepaymentAmount"`
			CreatedDevice      struct {
				ID string `json:"id"`
			} `json:"createdDevice"`
			PaidBusinessDate Date        `json:"paidBusinessDate"`
			Last4Digits      interface{} `json:"last4Digits"`
			Refund           interface{} `json:"refund"`
		} `json:"payments"`
		AppliedDiscounts []struct {
			AppliedPromoCode interface{} `json:"appliedPromoCode"`
			Approver         struct {
				EntityType string      `json:"entityType"`
				ExternalID interface{} `json:"externalId"`
				GUID       string      `json:"guid"`
			} `json:"approver"`
			ComboItems []interface{} `json:"comboItems"`
			Discount   struct {
				EntityType string `json:"entityType"`
				GUID       string `json:"guid"`
			} `json:"discount"`
			DiscountAmount       float64     `json:"discountAmount"`
			DiscountPercent      float64     `json:"discountPercent"`
			DiscountType         string      `json:"discountType"`
			EntityType           string      `json:"entityType"`
			ExternalID           interface{} `json:"externalId"`
			GUID                 string      `json:"guid"`
			LoyaltyDetails       interface{} `json:"loyaltyDetails"`
			Name                 string      `json:"name"`
			NonTaxDiscountAmount float64     `json:"nonTaxDiscountAmount"`
			ProcessingState      interface{} `json:"processingState"`
			Triggers             []struct {
				Quantity  float64 `json:"quantity"`
				Selection struct {
					EntityType string      `json:"entityType"`
					ExternalID interface{} `json:"externalId"`
					GUID       string      `json:"guid"`
				} `json:"selection"`
			} `json:"triggers"`
		} `json:"AppliedDiscounts"`

		LastModifiedDevice struct {
			ID string `json:"id"`
		} `json:"lastModifiedDevice"`
		VoidDate           DateTime    `json:"voidDate"`
		PaidDate           DateTime    `json:"paidDate"`
		AppliedLoyaltyInfo interface{} `json:"appliedLoyaltyInfo"`
		Voided             bool        `json:"voided"`
		PaymentStatus      string      `json:"paymentStatus"`
		Amount             float64     `json:"amount"`
		TabName            string      `json:"tabName"`
		TaxExempt          bool        `json:"taxExempt"`
		OpenedDate         DateTime    `json:"openedDate"`
		TotalAmount        float64     `json:"totalAmount"`
		Selections         []struct {
			GUID             string      `json:"guid"`
			EntityType       string      `json:"entityType"`
			ExternalID       interface{} `json:"externalId"`
			Deferred         bool        `json:"deferred"`
			PreDiscountPrice float64     `json:"preDiscountPrice"`
			VoidReason       interface{} `json:"voidReason"`
			OptionGroup      interface{} `json:"optionGroup"`
			DisplayName      string      `json:"displayName"`
			AppliedDiscounts []struct {
				AppliedPromoCode interface{} `json:"appliedPromoCode"`
				Approver         struct {
					EntityType string      `json:"entityType"`
					ExternalID interface{} `json:"externalId"`
					GUID       string      `json:"guid"`
				} `json:"approver"`
				ComboItems []interface{} `json:"comboItems"`
				Discount   struct {
					EntityType string `json:"entityType"`
					GUID       string `json:"guid"`
				} `json:"discount"`
				DiscountAmount       float64     `json:"discountAmount"`
				DiscountPercent      float64     `json:"discountPercent"`
				DiscountType         string      `json:"discountType"`
				EntityType           string      `json:"entityType"`
				ExternalID           interface{} `json:"externalId"`
				GUID                 string      `json:"guid"`
				LoyaltyDetails       interface{} `json:"loyaltyDetails"`
				Name                 string      `json:"name"`
				NonTaxDiscountAmount float64     `json:"nonTaxDiscountAmount"`
				ProcessingState      interface{} `json:"processingState"`
				Triggers             []struct {
					Quantity  float64 `json:"quantity"`
					Selection struct {
						EntityType string      `json:"entityType"`
						ExternalID interface{} `json:"externalId"`
						GUID       string      `json:"guid"`
					} `json:"selection"`
				} `json:"triggers"`
			} `json:"AppliedDiscounts"`
			Modifiers                Modifiers     `json:"modifiers"`
			SeatNumber               int           `json:"seatNumber"`
			VoidDate                 DateTime      `json:"voidDate"`
			FulfillmentStatus        string        `json:"fulfillmentStatus"`
			OptionGroupPricingMode   interface{}   `json:"optionGroupPricingMode"`
			SalesCategory            SalesCategory `json:"salesCategory"`
			SelectionType            string        `json:"selectionType"`
			Price                    float64       `json:"price"`
			Voided                   bool          `json:"voided"`
			AppliedTaxes             AppliedTaxes  `json:"appliedTaxes"`
			StoredValueTransactionID interface{}   `json:"storedValueTransactionId"`
			ItemGroup                struct {
				GUID            string      `json:"guid"`
				EntityType      string      `json:"entityType"`
				ExternalID      interface{} `json:"externalId"`
				MultiLocationID string      `json:"multiLocationId"`
			} `json:"itemGroup"`
			Item struct {
				GUID            string      `json:"guid"`
				EntityType      string      `json:"entityType"`
				ExternalID      interface{} `json:"externalId"`
				MultiLocationID string      `json:"multiLocationId"`
			} `json:"item"`
			TaxInclusion     string      `json:"taxInclusion"`
			Quantity         float64     `json:"quantity"`
			ReceiptLinePrice float64     `json:"receiptLinePrice"`
			UnitOfMeasure    string      `json:"unitOfMeasure"`
			RefundDetails    interface{} `json:"refundDetails"`
			ToastGiftCard    interface{} `json:"toastGiftCard"`
			Tax              float64     `json:"tax"`
			DiningOption     interface{} `json:"diningOption"`
			VoidBusinessDate Date        `json:"voidBusinessDate"`
			CreatedDate      DateTime    `json:"createdDate"`
			PreModifier      interface{} `json:"preModifier"`
			ModifiedDate     DateTime    `json:"modifiedDate"`
		} `json:"selections"`
		VoidBusinessDate Date     `json:"voidBusinessDate"`
		CreatedDate      DateTime `json:"createdDate"`
		Deleted          bool     `json:"deleted"`
		CreatedDevice    struct {
			ID string `json:"id"`
		} `json:"createdDevice"`
		ClosedDate            DateTime      `json:"closedDate"`
		DeletedDate           DateTime      `json:"deletedDate"`
		ModifiedDate          DateTime      `json:"modifiedDate"`
		TaxAmount             float64       `json:"taxAmount"`
		AppliedServiceCharges []interface{} `json:"appliedServiceCharges"`
		Customer              interface{}   `json:"customer"`
	} `json:"checks"`
	Deleted       bool `json:"deleted"`
	CreatedDevice struct {
		ID string `json:"id"`
	} `json:"createdDevice"`
	CreatedDate     DateTime    `json:"createdDate"`
	ClosedDate      DateTime    `json:"closedDate"`
	DeletedDate     DateTime    `json:"deletedDate"`
	ModifiedDate    DateTime    `json:"modifiedDate"`
	PromisedDate    DateTime    `json:"promisedDate"`
	ChannelGUID     interface{} `json:"channelGuid"`
	PricingFeatures []string    `json:"pricingFeatures"`
}

type Orders

type Orders []Order

type OrdersBulkGetRequest

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

func (*OrdersBulkGetRequest) All

func (*OrdersBulkGetRequest) Do

func (*OrdersBulkGetRequest) Method

func (r *OrdersBulkGetRequest) Method() string

func (OrdersBulkGetRequest) NewPathParams

func (OrdersBulkGetRequest) NewQueryParams

func (OrdersBulkGetRequest) NewRequestBody

func (*OrdersBulkGetRequest) NewResponseBody

func (r *OrdersBulkGetRequest) NewResponseBody() *OrdersBulkGetResponseBody

func (*OrdersBulkGetRequest) PathParams

func (*OrdersBulkGetRequest) PathParamsInterface

func (r *OrdersBulkGetRequest) PathParamsInterface() PathParams

func (*OrdersBulkGetRequest) QueryParams

func (*OrdersBulkGetRequest) RequestBody

func (*OrdersBulkGetRequest) RequestBodyInterface

func (r *OrdersBulkGetRequest) RequestBodyInterface() interface{}

func (*OrdersBulkGetRequest) SetMethod

func (r *OrdersBulkGetRequest) SetMethod(method string)

func (*OrdersBulkGetRequest) SetRequestBody

func (r *OrdersBulkGetRequest) SetRequestBody(body OrdersBulkGetRequestBody)

func (*OrdersBulkGetRequest) URL

func (r *OrdersBulkGetRequest) URL() *url.URL

type OrdersBulkGetRequestBody

type OrdersBulkGetRequestBody struct {
}

type OrdersBulkGetRequestPathParams

type OrdersBulkGetRequestPathParams struct {
}

func (*OrdersBulkGetRequestPathParams) Params

type OrdersBulkGetRequestQueryParams

type OrdersBulkGetRequestQueryParams struct {
	StartDate    DateTime `schema:"startDate,omitempty"`
	EndDate      DateTime `schema:"endDate,omitempty"`
	PageSize     int      `schema:"pageSize,omitempty"`
	Page         int      `schema:"page,omitempty"`
	BusinessDate Date     `schema:"businessDate,omitempty"`
}

func (OrdersBulkGetRequestQueryParams) ToURLValues

func (p OrdersBulkGetRequestQueryParams) ToURLValues() (url.Values, error)

type OrdersBulkGetResponseBody

type OrdersBulkGetResponseBody Orders

type PathParams

type PathParams interface {
	Params() map[string]string
}

type QueryParams

type QueryParams interface {
	ToURLValues() (url.Values, error)
}

type Request

type Request interface {
	Method() string
	// QueryParams() QueryParams
	PathParamsInterface() PathParams
	RequestBodyInterface() interface{}
	URL() *url.URL
}

type RequestCompletionCallback

type RequestCompletionCallback func(*http.Request, *http.Response)

RequestCompletionCallback defines the type of the request callback function

type Restaurant

type Restaurant struct {
	GUID    string `json:"guid"`
	General struct {
		Name                string      `json:"name"`
		LocationName        string      `json:"locationName"`
		LocationCode        interface{} `json:"locationCode"`
		Description         string      `json:"description"`
		TimeZone            string      `json:"timeZone"`
		CloseoutHour        int         `json:"closeoutHour"`
		ManagementGroupGUID string      `json:"managementGroupGuid"`
	} `json:"general"`
	Urls struct {
		Website          interface{} `json:"website"`
		Facebook         interface{} `json:"facebook"`
		Twitter          string      `json:"twitter"`
		OrderOnline      string      `json:"orderOnline"`
		PurchaseGiftCard string      `json:"purchaseGiftCard"`
		CheckGiftCard    string      `json:"checkGiftCard"`
	} `json:"urls"`
	Location struct {
		Address1  string  `json:"address1"`
		Address2  string  `json:"address2"`
		City      string  `json:"city"`
		StateCode string  `json:"stateCode"`
		ZipCode   string  `json:"zipCode"`
		Country   string  `json:"country"`
		Phone     string  `json:"phone"`
		Latitude  float64 `json:"latitude"`
		Longitude float64 `json:"longitude"`
	} `json:"location"`
	Schedules struct {
		DaySchedules struct {
			Num600000000314630485 struct {
				ScheduleName string `json:"scheduleName"`
				Services     []struct {
					Name  string `json:"name"`
					Hours struct {
						StartTime string `json:"startTime"`
						EndTime   string `json:"endTime"`
					} `json:"hours"`
					Overnight bool `json:"overnight"`
				} `json:"services"`
				OpenTime  string `json:"openTime"`
				CloseTime string `json:"closeTime"`
			} `json:"600000000314630485"`
		} `json:"daySchedules"`
		WeekSchedule struct {
			Monday    string `json:"monday"`
			Tuesday   string `json:"tuesday"`
			Wednesday string `json:"wednesday"`
			Thursday  string `json:"thursday"`
			Friday    string `json:"friday"`
			Saturday  string `json:"saturday"`
			Sunday    string `json:"sunday"`
		} `json:"weekSchedule"`
	} `json:"schedules"`
	Delivery struct {
		Enabled bool        `json:"enabled"`
		Minimum interface{} `json:"minimum"`
		Area    interface{} `json:"area"`
	} `json:"delivery"`
	OnlineOrdering struct {
		Enabled                bool   `json:"enabled"`
		Scheduling             bool   `json:"scheduling"`
		SpecialRequests        bool   `json:"specialRequests"`
		SpecialRequestsMessage string `json:"specialRequestsMessage"`
		PaymentOptions         struct {
			Delivery struct {
				Cash      bool `json:"cash"`
				CcSameDay bool `json:"ccSameDay"`
				CcFuture  bool `json:"ccFuture"`
			} `json:"delivery"`
			Takeout struct {
				Cash      bool `json:"cash"`
				CcSameDay bool `json:"ccSameDay"`
				CcFuture  bool `json:"ccFuture"`
				CcInStore bool `json:"ccInStore"`
			} `json:"takeout"`
			CcTip bool `json:"ccTip"`
		} `json:"paymentOptions"`
	} `json:"onlineOrdering"`
	PrepTimes struct {
		DeliveryPrepTime        int `json:"deliveryPrepTime"`
		DeliveryTimeAfterOpen   int `json:"deliveryTimeAfterOpen"`
		DeliveryTimeBeforeClose int `json:"deliveryTimeBeforeClose"`
		TakeoutPrepTime         int `json:"takeoutPrepTime"`
		TakeoutTimeAfterOpen    int `json:"takeoutTimeAfterOpen"`
		TakeoutTimeBeforeClose  int `json:"takeoutTimeBeforeClose"`
		TakeoutThrottlingTime   int `json:"takeoutThrottlingTime"`
		DeliveryThrottlingTime  int `json:"deliveryThrottlingTime"`
	} `json:"prepTimes"`
}

type RestaurantGetRequest

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

func (*RestaurantGetRequest) Do

func (*RestaurantGetRequest) Method

func (r *RestaurantGetRequest) Method() string

func (RestaurantGetRequest) NewPathParams

func (RestaurantGetRequest) NewQueryParams

func (RestaurantGetRequest) NewRequestBody

func (*RestaurantGetRequest) NewResponseBody

func (r *RestaurantGetRequest) NewResponseBody() *RestaurantGetResponseBody

func (*RestaurantGetRequest) PathParams

func (*RestaurantGetRequest) PathParamsInterface

func (r *RestaurantGetRequest) PathParamsInterface() PathParams

func (*RestaurantGetRequest) QueryParams

func (*RestaurantGetRequest) RequestBody

func (*RestaurantGetRequest) RequestBodyInterface

func (r *RestaurantGetRequest) RequestBodyInterface() interface{}

func (*RestaurantGetRequest) SetMethod

func (r *RestaurantGetRequest) SetMethod(method string)

func (*RestaurantGetRequest) SetRequestBody

func (r *RestaurantGetRequest) SetRequestBody(body RestaurantGetRequestBody)

func (*RestaurantGetRequest) URL

func (r *RestaurantGetRequest) URL() *url.URL

type RestaurantGetRequestBody

type RestaurantGetRequestBody struct {
}

type RestaurantGetRequestPathParams

type RestaurantGetRequestPathParams struct {
	GUID string `schema:"GUID"`
}

func (*RestaurantGetRequestPathParams) Params

type RestaurantGetRequestQueryParams

type RestaurantGetRequestQueryParams struct {
	StartDate    DateTime `schema:"startDate,omitempty"`
	EndDate      DateTime `schema:"endDate,omitempty"`
	PageSize     int      `schema:"pageSize,omitempty"`
	Page         int      `schema:"page,omitempty"`
	BusinessDate Date     `schema:"businessDate,omitempty"`
}

func (RestaurantGetRequestQueryParams) ToURLValues

func (p RestaurantGetRequestQueryParams) ToURLValues() (url.Values, error)

type RestaurantGetResponseBody

type RestaurantGetResponseBody Restaurant

type RevenueCenter

type RevenueCenter struct {
	GUID        string `json:"guid"`
	EntityType  string `json:"entityType"`
	Name        string `json:"name"`
	Description string `json:"description"`
}

type RevenueCenters

type RevenueCenters []RevenueCenter

type RevenueCentersGetRequest

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

func (*RevenueCentersGetRequest) All

func (*RevenueCentersGetRequest) Do

func (*RevenueCentersGetRequest) Method

func (r *RevenueCentersGetRequest) Method() string

func (RevenueCentersGetRequest) NewPathParams

func (RevenueCentersGetRequest) NewQueryParams

func (RevenueCentersGetRequest) NewRequestBody

func (*RevenueCentersGetRequest) NewResponseBody

func (*RevenueCentersGetRequest) PathParams

func (*RevenueCentersGetRequest) PathParamsInterface

func (r *RevenueCentersGetRequest) PathParamsInterface() PathParams

func (*RevenueCentersGetRequest) QueryParams

func (*RevenueCentersGetRequest) RequestBody

func (*RevenueCentersGetRequest) RequestBodyInterface

func (r *RevenueCentersGetRequest) RequestBodyInterface() interface{}

func (*RevenueCentersGetRequest) SetMethod

func (r *RevenueCentersGetRequest) SetMethod(method string)

func (*RevenueCentersGetRequest) SetRequestBody

func (*RevenueCentersGetRequest) URL

func (r *RevenueCentersGetRequest) URL() *url.URL

type RevenueCentersGetRequestBody

type RevenueCentersGetRequestBody struct {
}

type RevenueCentersGetRequestPathParams

type RevenueCentersGetRequestPathParams struct {
}

func (*RevenueCentersGetRequestPathParams) Params

type RevenueCentersGetRequestQueryParams

type RevenueCentersGetRequestQueryParams struct {
	PageToken string `schema:"pageToken,omitempty"`
}

func (RevenueCentersGetRequestQueryParams) ToURLValues

type RevenueCentersGetResponseBody

type RevenueCentersGetResponseBody RevenueCenters

type SalesCategories

type SalesCategories []SalesCategory

type SalesCategoriesGetRequest

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

func (*SalesCategoriesGetRequest) All

func (*SalesCategoriesGetRequest) Do

func (*SalesCategoriesGetRequest) Method

func (r *SalesCategoriesGetRequest) Method() string

func (SalesCategoriesGetRequest) NewPathParams

func (SalesCategoriesGetRequest) NewQueryParams

func (SalesCategoriesGetRequest) NewRequestBody

func (*SalesCategoriesGetRequest) NewResponseBody

func (*SalesCategoriesGetRequest) PathParams

func (*SalesCategoriesGetRequest) PathParamsInterface

func (r *SalesCategoriesGetRequest) PathParamsInterface() PathParams

func (*SalesCategoriesGetRequest) QueryParams

func (*SalesCategoriesGetRequest) RequestBody

func (*SalesCategoriesGetRequest) RequestBodyInterface

func (r *SalesCategoriesGetRequest) RequestBodyInterface() interface{}

func (*SalesCategoriesGetRequest) SetMethod

func (r *SalesCategoriesGetRequest) SetMethod(method string)

func (*SalesCategoriesGetRequest) SetRequestBody

func (*SalesCategoriesGetRequest) URL

func (r *SalesCategoriesGetRequest) URL() *url.URL

type SalesCategoriesGetRequestBody

type SalesCategoriesGetRequestBody struct {
}

type SalesCategoriesGetRequestPathParams

type SalesCategoriesGetRequestPathParams struct {
}

func (*SalesCategoriesGetRequestPathParams) Params

type SalesCategoriesGetRequestQueryParams

type SalesCategoriesGetRequestQueryParams struct {
	PageToken string `schema:"pageToken,omitempty"`
}

func (SalesCategoriesGetRequestQueryParams) ToURLValues

type SalesCategoriesGetResponseBody

type SalesCategoriesGetResponseBody SalesCategories

type SalesCategory

type SalesCategory struct {
	GUID       string `json:"guid"`
	EntityType string `json:"entityType"`
	Name       string `json:"name"`
}

type TaxRate

type TaxRate struct {
	GUID                string        `json:"guid"`
	EntityType          string        `json:"entityType"`
	IsDefault           bool          `json:"isDefault"`
	ConditionalTaxRates []interface{} `json:"conditionalTaxRates"`
	TaxTable            []interface{} `json:"taxTable"`
	Rate                float64       `json:"rate"`
	RoundingType        string        `json:"roundingType"`
	Name                string        `json:"name"`
	Type                string        `json:"type"`
}

type TaxRates

type TaxRates []TaxRate

type TaxRatesGetRequest

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

func (*TaxRatesGetRequest) All

func (*TaxRatesGetRequest) Do

func (*TaxRatesGetRequest) Method

func (r *TaxRatesGetRequest) Method() string

func (TaxRatesGetRequest) NewPathParams

func (TaxRatesGetRequest) NewQueryParams

func (TaxRatesGetRequest) NewRequestBody

func (r TaxRatesGetRequest) NewRequestBody() TaxRatesGetRequestBody

func (*TaxRatesGetRequest) NewResponseBody

func (r *TaxRatesGetRequest) NewResponseBody() *TaxRatesGetResponseBody

func (*TaxRatesGetRequest) PathParams

func (*TaxRatesGetRequest) PathParamsInterface

func (r *TaxRatesGetRequest) PathParamsInterface() PathParams

func (*TaxRatesGetRequest) QueryParams

func (*TaxRatesGetRequest) RequestBody

func (r *TaxRatesGetRequest) RequestBody() *TaxRatesGetRequestBody

func (*TaxRatesGetRequest) RequestBodyInterface

func (r *TaxRatesGetRequest) RequestBodyInterface() interface{}

func (*TaxRatesGetRequest) SetMethod

func (r *TaxRatesGetRequest) SetMethod(method string)

func (*TaxRatesGetRequest) SetRequestBody

func (r *TaxRatesGetRequest) SetRequestBody(body TaxRatesGetRequestBody)

func (*TaxRatesGetRequest) URL

func (r *TaxRatesGetRequest) URL() *url.URL

type TaxRatesGetRequestBody

type TaxRatesGetRequestBody struct {
}

type TaxRatesGetRequestPathParams

type TaxRatesGetRequestPathParams struct {
}

func (*TaxRatesGetRequestPathParams) Params

func (p *TaxRatesGetRequestPathParams) Params() map[string]string

type TaxRatesGetRequestQueryParams

type TaxRatesGetRequestQueryParams struct {
	PageToken string `schema:"pageToken,omitempty"`
}

func (TaxRatesGetRequestQueryParams) ToURLValues

func (p TaxRatesGetRequestQueryParams) ToURLValues() (url.Values, error)

type TaxRatesGetResponseBody

type TaxRatesGetResponseBody TaxRates

type Token

type Token struct {
	TokenType    string `json:"tokenType"`
	Scope        string `json:"scope"`
	ExpiresIn    int    `json:"expiresIn"`
	AccessToken  string `json:"accessToken"`
	IDToken      string `json:"idToken"`
	RefreshToken string `json:"refreshToken"`
	// contains filtered or unexported fields
}

func (Token) IsExpired

func (t Token) IsExpired() bool

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL