Documentation
¶
Index ¶
- type ChangeProductToSupplierPriceListResponse
- type ChangeProductToSupplierPriceListResponseBulk
- type ChangeProductToSupplierPriceListResult
- type ChangeProductToSupplierPriceListResultBulkItem
- type Client
- func (cli *Client) AddProductToSupplierPriceList(ctx context.Context, filters map[string]string) (*ChangeProductToSupplierPriceListResult, error)
- func (cli *Client) ChangeProductToSupplierPriceListBulk(ctx context.Context, bulkRequest []map[string]interface{}, ...) (ChangeProductToSupplierPriceListResponseBulk, error)
- func (cli *Client) DeleteProductsFromSupplierPriceList(ctx context.Context, filters map[string]string) (*DeleteProductsFromSupplierPriceListResult, error)
- func (cli *Client) DeleteProductsFromSupplierPriceListBulk(ctx context.Context, bulkRequest []map[string]interface{}, ...) (DeleteProductsFromSupplierPriceListResponseBulk, error)
- func (cli *Client) EditProductToSupplierPriceList(ctx context.Context, filters map[string]string) (*ChangeProductToSupplierPriceListResult, error)
- func (cli *Client) GetProductPriceLists(ctx context.Context, filters map[string]string) ([]ProductPriceList, error)
- func (cli *Client) GetProductPriceListsBulk(ctx context.Context, bulkFilters []map[string]interface{}, ...) (GetProductPriceListResponseBulk, error)
- func (cli *Client) GetSupplierPriceLists(ctx context.Context, filters map[string]string) ([]PriceList, error)
- func (cli *Client) GetSupplierPriceListsBulk(ctx context.Context, bulkFilters []map[string]interface{}, ...) (GetPriceListsResponseBulk, error)
- func (cli *Client) SaveSupplierPriceList(ctx context.Context, filters map[string]string) (*SaveSupplierPriceListResult, error)
- func (cli *Client) SaveSupplierPriceListBulk(ctx context.Context, bulkRequest []map[string]interface{}, ...) (SaveSupplierPriceListResponseBulk, error)
- type DeleteProductsFromSupplierPriceListBulkItem
- type DeleteProductsFromSupplierPriceListResponse
- type DeleteProductsFromSupplierPriceListResponseBulk
- type DeleteProductsFromSupplierPriceListResult
- type GetPriceListsResponse
- type GetPriceListsResponseBulk
- type GetPriceListsResponseBulkItem
- type GetProductPriceListResponse
- type GetProductPriceListResponseBulk
- type GetProductPriceListResponseBulkItem
- type Manager
- type PriceList
- type PriceListRule
- type ProductPriceList
- type SaveSupplierPriceListBulkItem
- type SaveSupplierPriceListResponseBulk
- type SaveSupplierPriceListResult
- type SaveSupplierPriceListResultResponse
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 ¶
func (*Client) AddProductToSupplierPriceList ¶
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 (*Client) DeleteProductsFromSupplierPriceListBulk ¶
func (*Client) EditProductToSupplierPriceList ¶
func (*Client) GetProductPriceLists ¶
func (*Client) GetProductPriceListsBulk ¶
func (*Client) GetSupplierPriceLists ¶
func (*Client) GetSupplierPriceListsBulk ¶
func (*Client) SaveSupplierPriceList ¶
func (*Client) SaveSupplierPriceListBulk ¶
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 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 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"`
}
Click to show internal directories.
Click to hide internal directories.