warehouse

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: May 12, 2020 License: MIT Imports: 5 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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) GetWarehouses

func (cli *Client) GetWarehouses(ctx context.Context) (Warehouses, error)

GetWarehouses ...

type GetWarehousesResponse

type GetWarehousesResponse struct {
	Status     common.Status `json:"status"`
	Warehouses Warehouses    `json:"records"`
}

type Manager

type Manager interface {
	GetWarehouses(ctx context.Context) (Warehouses, error)
}

type Warehouse

type Warehouse struct {
	WarehouseID            string `json:"warehouseID"`
	PricelistID            string `json:"pricelistID"`
	PricelistID2           string `json:"pricelistID2"`
	PricelistID3           string `json:"pricelistID3"`
	PricelistID4           string `json:"pricelistID4"`
	PricelistID5           string `json:"pricelistID5"`
	Name                   string `json:"name"`
	Code                   string `json:"code"`
	AddressID              int    `json:"addressID"`
	Address                string `json:"address"`
	Street                 string `json:"street"`
	Address2               string `json:"address2"`
	City                   string `json:"city"`
	State                  string `json:"state"`
	Country                string `json:"country"`
	ZIPcode                string `json:"ZIPcode"`
	StoreGroups            string `json:"storeGroups"`
	CompanyName            string `json:"companyName"`
	CompanyCode            string `json:"companyCode"`
	CompanyVatNumber       string `json:"companyVatNumber"`
	Phone                  string `json:"phone"`
	Fax                    string `json:"fax"`
	Email                  string `json:"email"`
	Website                string `json:"website"`
	BankName               string `json:"bankName"`
	BankAccountNumber      string `json:"bankAccountNumber"`
	Iban                   string `json:"iban"`
	Swift                  string `json:"swift"`
	UsesLocalQuickButtons  int    `json:"usesLocalQuickButtons"`
	DefaultCustomerGroupID int    `json:"defaultCustomerGroupID"`
	IsOfflineInventory     int    `json:"isOfflineInventory"`
	TimeZone               string `json:"timeZone"`
	Attributes             []struct {
		AttributeName  string `json:"attributeName"`
		AttributeType  string `json:"attributeType"`
		AttributeValue string `json:"attributeValue"`
	} `json:"attributes"`
}

type Warehouses

type Warehouses []Warehouse

Jump to

Keyboard shortcuts

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