Documentation ¶
Index ¶
- func AddItem(cartid string, itemid string, count int64) []*purchase.CartItem
- func Checkout(cartid string) *purchase.OrderTicket
- func CloseCart(cartid string) *purchase.Cart
- func CreateCart(cartid string) *purchase.Cart
- func GetCart(cartid string) *purchase.Cart
- func GetCartContents(cartid string) []*purchase.CartItem
- func GetOrderTicket(orderid string) *purchase.OrderTicket
- type Purchase
- func (e *Purchase) AddItem(ctx context.Context, req *purchase.AddItemRequest, ...) error
- func (e *Purchase) Checkout(ctx context.Context, req *purchase.CheckoutRequest, ...) error
- func (e *Purchase) CloseCart(ctx context.Context, req *purchase.CloseCartRequest, ...) error
- func (e *Purchase) CreateCart(ctx context.Context, req *purchase.CreateCartRequest, ...) error
- func (e *Purchase) GetCart(ctx context.Context, req *purchase.GetCartRequest, ...) error
- func (e *Purchase) GetCartContents(ctx context.Context, req *purchase.GetCartContentsRequest, ...) error
- func (e *Purchase) GetOrderTicket(ctx context.Context, req *purchase.GetOrderTicketRequest, ...) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Checkout ¶
func Checkout(cartid string) *purchase.OrderTicket
func CreateCart ¶
func GetCartContents ¶
func GetOrderTicket ¶
func GetOrderTicket(orderid string) *purchase.OrderTicket
Types ¶
type Purchase ¶
type Purchase struct{}
func (*Purchase) AddItem ¶
func (e *Purchase) AddItem(ctx context.Context, req *purchase.AddItemRequest, rsp *purchase.AddItemResponse) error
func (*Purchase) Checkout ¶
func (e *Purchase) Checkout(ctx context.Context, req *purchase.CheckoutRequest, rsp *purchase.CheckoutResponse) error
func (*Purchase) CloseCart ¶
func (e *Purchase) CloseCart(ctx context.Context, req *purchase.CloseCartRequest, rsp *purchase.CloseCartResponse) error
func (*Purchase) CreateCart ¶
func (e *Purchase) CreateCart(ctx context.Context, req *purchase.CreateCartRequest, rsp *purchase.CreateCartResponse) error
func (*Purchase) GetCart ¶
func (e *Purchase) GetCart(ctx context.Context, req *purchase.GetCartRequest, rsp *purchase.GetCartResponse) error
func (*Purchase) GetCartContents ¶
func (e *Purchase) GetCartContents(ctx context.Context, req *purchase.GetCartContentsRequest, rsp *purchase.GetCartContentsResponse) error
func (*Purchase) GetOrderTicket ¶
func (e *Purchase) GetOrderTicket(ctx context.Context, req *purchase.GetOrderTicketRequest, rsp *purchase.GetOrderTicketResponse) error
Click to show internal directories.
Click to hide internal directories.