handler

package
v0.0.0-...-2facd03 Latest Latest
Warning

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

Go to latest
Published: Aug 19, 2020 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddItem

func AddItem(cartid string, itemid string, count int64) []*purchase.CartItem

func Checkout

func Checkout(cartid string) *purchase.OrderTicket

func CloseCart

func CloseCart(cartid string) *purchase.Cart

func CreateCart

func CreateCart(cartid string) *purchase.Cart

func GetCart

func GetCart(cartid string) *purchase.Cart

func GetCartContents

func GetCartContents(cartid string) []*purchase.CartItem

func GetOrderTicket

func GetOrderTicket(orderid string) *purchase.OrderTicket

Types

type Purchase

type Purchase struct{}

func (*Purchase) AddItem

func (*Purchase) Checkout

func (*Purchase) CloseCart

func (*Purchase) CreateCart

func (*Purchase) GetCart

func (*Purchase) GetCartContents

func (*Purchase) GetOrderTicket

Jump to

Keyboard shortcuts

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