cart

package
v0.0.0-...-7c5fa43 Latest Latest
Warning

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

Go to latest
Published: Dec 1, 2022 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AddProductToCartRequest

type AddProductToCartRequest struct {
	ProductID *uint64 `json:"productID"`
	Quantity  *uint64 `json:"quantity"`
}

Add product to cart

func (*AddProductToCartRequest) Validate

func (req *AddProductToCartRequest) Validate() error

type Cart

type Cart struct {
	UUID        string  `json:"uuid"`
	Status      *string `json:"status"` // ORDER_PROCESSING, ORDER_CREATED
	OrderNumber *string `json:"orderNumber"`
}

cart

type CartProduct

type CartProduct struct {
	CartUUID  string `json:"-"`
	ProductID uint64 `json:"productID"`
	Quantity  uint64 `json:"quantity"`
}

cart products

type CreateCartResponse

type CreateCartResponse struct {
	CartUUID string `json:"cartUUID"`
}

Create cart

type ListProductInCartFilter

type ListProductInCartFilter struct {
	CartUUID string
}

List products in cart

type UpdateCartFilter

type UpdateCartFilter struct {
	CartUUID string
}

Update cart

type UpdateCartFromBrokerRequest

type UpdateCartFromBrokerRequest struct {
	Update UpdateCartRequest `json:"update"`
	Filter UpdateCartFilter  `json:"filter"`
}

type UpdateCartRequest

type UpdateCartRequest struct {
	Status      string  `json:"status"`
	OrderNumber *string `json:"orderNumber"`
}

Update cart

func (*UpdateCartRequest) Validate

func (req *UpdateCartRequest) Validate() error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳