prices

package
v1.7.1 Latest Latest
Warning

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

Go to latest
Published: Jun 25, 2020 License: MIT Imports: 7 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 ChangeProductToSupplierPriceListResponse

type ChangeProductToSupplierPriceListResponse struct {
	Status                                 sharedCommon.Status                      `json:"status"`
	ChangeProductToSupplierPriceListResult []ChangeProductToSupplierPriceListResult `json:"records"`
}

type ChangeProductToSupplierPriceListResponseBulk

type ChangeProductToSupplierPriceListResponseBulk struct {
	Status    sharedCommon.Status                              `json:"status"`
	BulkItems []ChangeProductToSupplierPriceListResultBulkItem `json:"requests"`
}

type ChangeProductToSupplierPriceListResult

type ChangeProductToSupplierPriceListResult struct {
	SupplierPriceListProductID int `json:"supplierPriceListProductID"`
}

type ChangeProductToSupplierPriceListResultBulkItem

type ChangeProductToSupplierPriceListResultBulkItem struct {
	Status  sharedCommon.StatusBulk                  `json:"status"`
	Records []ChangeProductToSupplierPriceListResult `json:"records"`
}

type Client

type Client struct {
	*common.Client
}

func NewClient

func NewClient(client *common.Client) *Client

func (*Client) AddProductToSupplierPriceList

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

func (*Client) ChangeProductToSupplierPriceListBulk

func (cli *Client) ChangeProductToSupplierPriceListBulk(ctx context.Context, bulkRequest []map[string]interface{}, baseFilters map[string]string) (ChangeProductToSupplierPriceListResponseBulk, error)

ChangeProductToSupplierPriceListBulk wraps both additions and edits as addProductToSupplierPriceList or editProductInSupplierPriceList

func (*Client) DeleteProductsFromSupplierPriceList

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

func (*Client) DeleteProductsFromSupplierPriceListBulk

func (cli *Client) DeleteProductsFromSupplierPriceListBulk(ctx context.Context, bulkRequest []map[string]interface{}, baseFilters map[string]string) (DeleteProductsFromSupplierPriceListResponseBulk, error)

func (*Client) EditProductToSupplierPriceList

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

func (*Client) GetProductsInPriceList added in v1.6.0

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

func (*Client) GetProductsInPriceListBulk added in v1.6.0

func (cli *Client) GetProductsInPriceListBulk(ctx context.Context, bulkFilters []map[string]interface{}, baseFilters map[string]string) (GetProductsInPriceListResponseBulk, error)

func (*Client) GetProductsInSupplierPriceList added in v1.6.0

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

func (*Client) GetProductsInSupplierPriceListBulk added in v1.6.0

func (cli *Client) GetProductsInSupplierPriceListBulk(ctx context.Context, bulkFilters []map[string]interface{}, baseFilters map[string]string) (ProductsInSupplierPriceListResponseBulk, error)

func (*Client) GetSupplierPriceLists

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

func (*Client) GetSupplierPriceListsBulk

func (cli *Client) GetSupplierPriceListsBulk(ctx context.Context, bulkFilters []map[string]interface{}, baseFilters map[string]string) (GetPriceListsResponseBulk, error)

func (*Client) SaveSupplierPriceList

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

func (*Client) SaveSupplierPriceListBulk

func (cli *Client) SaveSupplierPriceListBulk(ctx context.Context, bulkRequest []map[string]interface{}, baseFilters map[string]string) (SaveSupplierPriceListResponseBulk, error)

type DeleteProductsFromSupplierPriceListBulkItem

type DeleteProductsFromSupplierPriceListBulkItem struct {
	Status  sharedCommon.StatusBulk                     `json:"status"`
	Records []DeleteProductsFromSupplierPriceListResult `json:"records"`
}

type DeleteProductsFromSupplierPriceListResponse

type DeleteProductsFromSupplierPriceListResponse struct {
	Status                                    sharedCommon.Status                         `json:"status"`
	DeleteProductsFromSupplierPriceListResult []DeleteProductsFromSupplierPriceListResult `json:"records"`
}

type DeleteProductsFromSupplierPriceListResponseBulk

type DeleteProductsFromSupplierPriceListResponseBulk struct {
	Status    sharedCommon.Status                           `json:"status"`
	BulkItems []DeleteProductsFromSupplierPriceListBulkItem `json:"requests"`
}

type DeleteProductsFromSupplierPriceListResult

type DeleteProductsFromSupplierPriceListResult struct {
	DeletedIDs     string `json:"deletedIDs"`
	NonExistingIDs string `json:"nonExistingIDs"`
}

type GetPriceListsResponse

type GetPriceListsResponse struct {
	Status     sharedCommon.Status `json:"status"`
	PriceLists []PriceList         `json:"records"`
}

type GetPriceListsResponseBulk

type GetPriceListsResponseBulk struct {
	Status    sharedCommon.Status             `json:"status"`
	BulkItems []GetPriceListsResponseBulkItem `json:"requests"`
}

type GetPriceListsResponseBulkItem

type GetPriceListsResponseBulkItem struct {
	Status     sharedCommon.StatusBulk `json:"status"`
	PriceLists []PriceList             `json:"records"`
}

type GetProductsInPriceListResponse added in v1.6.0

type GetProductsInPriceListResponse struct {
	Status     sharedCommon.Status   `json:"status"`
	PriceLists []ProductsInPriceList `json:"records"`
}

type GetProductsInPriceListResponseBulk added in v1.6.0

type GetProductsInPriceListResponseBulk struct {
	Status    sharedCommon.Status                      `json:"status"`
	BulkItems []GetProductsInPriceListResponseBulkItem `json:"requests"`
}

type GetProductsInPriceListResponseBulkItem added in v1.6.0

type GetProductsInPriceListResponseBulkItem struct {
	Status     sharedCommon.StatusBulk `json:"status"`
	PriceLists []ProductsInPriceList   `json:"records"`
}

type Manager

type Manager interface {
	GetSupplierPriceLists(ctx context.Context, filters map[string]string) ([]PriceList, error)
	AddProductToSupplierPriceList(ctx context.Context, filters map[string]string) (*ChangeProductToSupplierPriceListResult, error)
	EditProductToSupplierPriceList(ctx context.Context, filters map[string]string) (*ChangeProductToSupplierPriceListResult, error)
	ChangeProductToSupplierPriceListBulk(ctx context.Context, bulkRequest []map[string]interface{}, baseFilters map[string]string) (ChangeProductToSupplierPriceListResponseBulk, error)
	GetSupplierPriceListsBulk(ctx context.Context, bulkFilters []map[string]interface{}, baseFilters map[string]string) (GetPriceListsResponseBulk, error)
	GetProductsInPriceList(ctx context.Context, filters map[string]string) ([]ProductsInPriceList, error)
	GetProductsInPriceListBulk(ctx context.Context, bulkFilters []map[string]interface{}, baseFilters map[string]string) (GetProductsInPriceListResponseBulk, error)
	GetProductsInSupplierPriceList(ctx context.Context, filters map[string]string) ([]ProductsInSupplierPriceList, error)
	GetProductsInSupplierPriceListBulk(ctx context.Context, bulkFilters []map[string]interface{}, baseFilters map[string]string) (ProductsInSupplierPriceListResponseBulk, error)
	DeleteProductsFromSupplierPriceList(ctx context.Context, filters map[string]string) (*DeleteProductsFromSupplierPriceListResult, error)
	DeleteProductsFromSupplierPriceListBulk(ctx context.Context, bulkFilters []map[string]interface{}, baseFilters map[string]string) (DeleteProductsFromSupplierPriceListResponseBulk, error)
	SaveSupplierPriceList(ctx context.Context, filters map[string]string) (*SaveSupplierPriceListResult, error)
	SaveSupplierPriceListBulk(ctx context.Context, bulkRequest []map[string]interface{}, baseFilters map[string]string) (SaveSupplierPriceListResponseBulk, error)
}

type PriceList

type PriceList struct {
	ID                     int                         `json:"supplierPriceListID"`
	SupplierID             int                         `json:"supplierID"`
	SupplierName           string                      `json:"supplierName"`
	Name                   string                      `json:"name"`
	ValidFrom              string                      `json:"startDate"`
	ValidTo                string                      `json:"endDate"`
	Active                 string                      `json:"active"`
	AddedTimestamp         int                         `json:"added"`
	LastModifiedTimestamp  int                         `json:"lastModified"`
	AddedByUserName        string                      `json:"addedByUserName"`
	LastModifiedByUserName string                      `json:"lastModifiedByUserName"`
	Rules                  []PriceListRule             `json:"pricelistRules"`
	Attributes             []sharedCommon.ObjAttribute `json:"attributes"`
}

type PriceListRule

type PriceListRule struct {
	ProductID int     `json:"productID"`
	Price     float32 `json:"price,string"`
	Amount    int     `json:"amount"`
}

type ProductsInPriceList added in v1.6.0

type ProductsInPriceList struct {
	PriceListProductID int     `json:"priceListProductID"`
	ProductID          int     `json:"productID"`
	Price              float32 `json:"price"`
	Amount             int     `json:"amount"`
	Subsidy            float32 `json:"subsidy"`
	SubsidyTypeID      int     `json:"subsidyTypeID"`
	Page               int     `json:"page"`
	ForecastUnits      int     `json:"forecastUnits"`
}

type ProductsInSupplierPriceList added in v1.6.0

type ProductsInSupplierPriceList struct {
	SupplierPriceListProductID int     `json:"supplierPriceListProductID"`
	ProductID                  int     `json:"productID"`
	Price                      float32 `json:"price"`
	Amount                     int     `json:"amount"`
	CountryID                  int     `json:"countryID"`
	ProductSupplierCode        string  `json:"supplierCode"`
	ImportCode                 string  `json:"importCode"`
	MasterPackQuantity         int     `json:"masterPackQuantity"`
	MinimumOrderQuantity       int     `json:"minimumOrderQuantity"`
}

type ProductsInSupplierPriceListResponse added in v1.6.0

type ProductsInSupplierPriceListResponse struct {
	Status                      sharedCommon.Status           `json:"status"`
	ProductsInSupplierPriceList []ProductsInSupplierPriceList `json:"records"`
}

type ProductsInSupplierPriceListResponseBulk added in v1.6.0

type ProductsInSupplierPriceListResponseBulk struct {
	Status    sharedCommon.Status                           `json:"status"`
	BulkItems []ProductsInSupplierPriceListResponseBulkItem `json:"requests"`
}

type ProductsInSupplierPriceListResponseBulkItem added in v1.6.0

type ProductsInSupplierPriceListResponseBulkItem struct {
	Status                      sharedCommon.StatusBulk       `json:"status"`
	ProductsInSupplierPriceList []ProductsInSupplierPriceList `json:"records"`
}

type SaveSupplierPriceListBulkItem

type SaveSupplierPriceListBulkItem struct {
	Status  sharedCommon.StatusBulk       `json:"status"`
	Records []SaveSupplierPriceListResult `json:"records"`
}

type SaveSupplierPriceListResponseBulk

type SaveSupplierPriceListResponseBulk struct {
	Status    sharedCommon.Status             `json:"status"`
	BulkItems []SaveSupplierPriceListBulkItem `json:"requests"`
}

type SaveSupplierPriceListResult

type SaveSupplierPriceListResult struct {
	SupplierPriceListID int `json:"supplierPriceListID"`
}

type SaveSupplierPriceListResultResponse

type SaveSupplierPriceListResultResponse struct {
	Status                      sharedCommon.Status           `json:"status"`
	SaveSupplierPriceListResult []SaveSupplierPriceListResult `json:"records"`
}

Jump to

Keyboard shortcuts

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