hybris

package
v0.0.0-...-24e79c0 Latest Latest
Warning

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

Go to latest
Published: May 18, 2016 License: Unlicense Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddToCart

func AddToCart()

AddToCart adds predefined item to cart

func FindCart

func FindCart(token string) (string, error)

FindCart list carts and find most recent one:

Types

type ByCode

type ByCode []Cart

ByCode - ecommerce carts sorted

func (ByCode) Len

func (c ByCode) Len() int

func (ByCode) Less

func (c ByCode) Less(i, j int) bool

func (ByCode) Swap

func (c ByCode) Swap(i, j int)

type Cart

type Cart struct {
	Type string `json:"type"`
	Code string `json:"code"`
	GUID string `json:"guid"`
}

Cart - ecommerce cart

type Carts

type Carts struct {
	Carts []Cart `json:"carts"`
}

Carts - ecommerce carts

type Token

type Token struct {
	AccessToken  string `json:"access_token"`
	RefreshToken string `json:"refresh_token"`
	Scope        string `json:"scope"`
}

Token - oauth2 token

Jump to

Keyboard shortcuts

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