pos

package
v1.5.2 Latest Latest
Warning

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

Go to latest
Published: Jun 8, 2020 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	*common.Client
}

func NewClient

func NewClient(client *common.Client) *Client

func (*Client) GetPointsOfSale

func (cli *Client) GetPointsOfSale(ctx context.Context, filters map[string]string) ([]PointOfSale, error)

GetPointsOfSale will list points of sale according to specified filters.

type GetPointsOfSaleResponse

type GetPointsOfSaleResponse struct {
	Status       common2.Status `json:"status"`
	PointsOfSale []PointOfSale  `json:"records"`
}

type Manager

type Manager interface {
	GetPointsOfSale(ctx context.Context, filters map[string]string) ([]PointOfSale, error)
}

type PointOfSale

type PointOfSale struct {
	PointOfSaleID uint   `json:"pointOfSaleID"`
	Name          string `json:"name"`
	WarehouseID   int    `json:"warehouseID"`
	WarehouseName string `json:"warehouseName"`
	Added         uint64 `json:"added"`
	LastModified  uint64 `json:"lastModified"`
}

Jump to

Keyboard shortcuts

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