Versions in this module Expand all Collapse all v0 v0.1.1 Nov 20, 2026 Changes in this version + type Account struct + CampusID int + ID int + type Acknowledgement struct + Accepted bool + type Campus struct + City string + ID int + Name string + Timezone string + type Cart struct + CheckoutChoices []int + Comment string + Date *string + Fulfillment Fulfillment + Items []CartItem + LocationID int + PaymentMethod *int + PickupSpotID int + SecondaryTenderID int + TenderID int + Time *string + func ReadCart(r io.Reader) (Cart, error) + type CartItem struct + ItemID int + MealExchange bool + Options []CartOption + SectionID int + type CartOption struct + ID int + Values []CartValue + type CartSelection struct + Cart Cart + Choices []string + ItemIDs []int + type CartValue struct + ComboItemID int + ComboItems []CartItem + ID int + type CheckoutOptions struct + CommentInstructions string + CommentRequired bool + Dates json.RawMessage + Instructions string + LocationID int + PickupSpots json.RawMessage + Questions json.RawMessage + Status string + Tenders json.RawMessage + Times json.RawMessage + type Client struct + func New() *Client + func Open(ctx context.Context, options auth.Options) (*Client, error) + func (c *Client) Account(ctx context.Context) (*Account, error) + func (c *Client) BuildCart(ctx context.Context, s CartSelection) (*Cart, error) + func (c *Client) Campuses(ctx context.Context) ([]Campus, error) + func (c *Client) CancelOrder(ctx context.Context, id int) (*Acknowledgement, error) + func (c *Client) CheckInOrder(ctx context.Context, id int, barcode string) (*Acknowledgement, error) + func (c *Client) CheckoutOptions(ctx context.Context, o MenuOptions) (*CheckoutOptions, error) + func (c *Client) ContinueOrder(ctx context.Context, id int) (*OrderProgress, error) + func (c *Client) Item(ctx context.Context, o MenuOptions, id int) (*Item, error) + func (c *Client) Locations(ctx context.Context) ([]Location, error) + func (c *Client) Menu(ctx context.Context, o MenuOptions) (*Menu, error) + func (c *Client) Orders(ctx context.Context, pending bool) ([]Order, error) + func (c *Client) PaymentMethods(ctx context.Context) ([]PaymentMethod, error) + func (c *Client) PlaceOrder(ctx context.Context, cart Cart, expectedTotal int) (*OrderProgress, error) + func (c *Client) Quote(ctx context.Context, cart Cart) (*Quote, error) + func (c *Client) USC(ctx context.Context) (*Campus, error) + type FlatMenu struct + Items []FlatMenuItem + LocationID int + Status string + type FlatMenuItem struct + Section string + SectionAvailable bool + SectionID int + type Fulfillment string + const Address + const Delivery + const Pickup + type Item struct + Description string + Options []ItemOption + SectionID int + type ItemOption struct + AllowQuantity bool + ID int + Maximum int + Minimum int + Name string + Values []ItemValue + type ItemValue struct + Available bool + ComboItemID int + ID int + Name string + Price int + type Location struct + ID int + Name string + PickupStatus string + type Menu struct + LocationID int + Sections []MenuSection + Status string + func (m Menu) Flatten() FlatMenu + type MenuItem struct + Available bool + ID int + Name string + Price int + type MenuOptions struct + Date string + Fulfillment Fulfillment + LocationID int + PaymentMethod int + TenderID int + Time string + type MenuSection struct + Available bool + ID int + Items []MenuItem + Name string + type Order struct + Barcode string + Complete bool + ID int + Items json.RawMessage + LocationID int + Placed string + Refunded bool + Total int + type OrderProgress struct + ID int + Message string + Stage string + type OutcomeUnknown struct + ID int + func (e *OutcomeUnknown) Error() string + func (e *OutcomeUnknown) ErrorCode() string + type PaymentMethod struct + ID int + Name string + type Quote struct + Cart json.RawMessage + Date string + Time string + Total int