prices

package
v1.5.0 Latest Latest
Warning

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

Go to latest
Published: Jun 1, 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) GetProductPriceLists

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

func (*Client) GetProductPriceListsBulk

func (cli *Client) GetProductPriceListsBulk(ctx context.Context, bulkFilters []map[string]interface{}, baseFilters map[string]string) (GetProductPriceListResponseBulk, 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 GetProductPriceListResponse

type GetProductPriceListResponse struct {
	Status            sharedCommon.Status `json:"status"`
	ProductPriceLists []ProductPriceList  `json:"records"`
}

type GetProductPriceListResponseBulk

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

type GetProductPriceListResponseBulkItem

type GetProductPriceListResponseBulkItem struct {
	Status           sharedCommon.StatusBulk `json:"status"`
	ProductPriceList []ProductPriceList      `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)
	GetProductPriceLists(ctx context.Context, filters map[string]string) ([]ProductPriceList, error)
	GetProductPriceListsBulk(ctx context.Context, bulkFilters []map[string]interface{}, baseFilters map[string]string) (GetProductPriceListResponseBulk, 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 ProductPriceList

type ProductPriceList struct {
	PriceID              int     `json:"supplierPriceListProductID"`
	ProductID            int     `json:"productID"`
	Price                float32 `json:"price,string"`
	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 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