Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var AllCurrency = []Currency{ CurrencyUsd, CurrencyEur, CurrencyGbp, }
View Source
var AllRole = []Role{ RoleAdmin, RoleUser, }
Functions ¶
This section is empty.
Types ¶
type AuthResponse ¶ added in v0.0.6
type Coffee ¶
type Coffee struct { ID string `json:"id"` Name *string `json:"name"` Image *string `json:"image"` Collection *string `json:"collection"` Origin *string `json:"origin"` Color *string `json:"color"` Description *string `json:"description"` Price *float64 `json:"price"` Ingredients []*Ingredient `json:"ingredients"` }
func CoffeeFromProductsAPI ¶
CoffeeFromProductsAPI is an adaptor function which converts the products api model into the local model
type CoffeeInput ¶ added in v0.0.6
type CoffeeInput struct {
ID string `json:"id"`
}
type Ingredient ¶
type Ingredient struct { ID string `json:"id"` Name *string `json:"name"` Quantity *int `json:"quantity"` Unit *string `json:"unit"` }
func IngredientsFromProductAPI ¶ added in v0.0.6
func IngredientsFromProductAPI(pIngs []hashicups.Ingredient) ([]*Ingredient, error)
IngredientsFromProductAPI is an adaptor function which converts the Ingredients API model into the local model
type Order ¶ added in v0.0.6
func OrderFromProductsAPI ¶ added in v0.0.6
OrderFromProductsAPI is an adaptor function which converts the Order API model into the local model
func OrdersFromProductsAPI ¶ added in v0.0.6
OrdersFromProductsAPI is an adaptor function which converts the Orders API model into the local model
type OrderItemInput ¶ added in v0.0.6
type OrderItemInput struct { Coffee *CoffeeInput `json:"coffee"` Quantity int `json:"quantity"` }
type PaymentDetails ¶ added in v0.0.2
type PaymentResponse ¶ added in v0.0.2
Click to show internal directories.
Click to hide internal directories.