pos

package
v1.27.6 Latest Latest
Warning

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

Go to latest
Published: Oct 14, 2025 License: MIT Imports: 4 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) GetClockIns added in v1.15.0

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

GetClockIns will list clocking of employees according to the specified filters.

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 Clocking added in v1.15.0

type Clocking struct {
	InUnixTime        int64 `json:"InUnixTime"`
	OutUnixTime       int64 `json:"OutUnixTime"`
	EmployeeID        int64 `json:"employeeID"`
	TimeClockRecordID int64 `json:"timeclockRecordID"`
	WarehouseID       int64 `json:"warehouseID"`
}

type GetClockInsResponse added in v1.15.0

type GetClockInsResponse struct {
	Status   common2.Status `json:"status"`
	ClockIns []Clocking     `json:"records"`
}

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)
	GetClockIns(ctx context.Context, filters map[string]string) ([]Clocking, 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