Documentation
¶
Index ¶
- type ChangeProductToPriceListResponse
- type ChangeProductToPriceListResponseBulk
- type ChangeProductToPriceListResult
- type ChangeProductToPriceListResultBulkItem
- type ChangeProductToSupplierPriceListResponse
- type ChangeProductToSupplierPriceListResponseBulk
- type ChangeProductToSupplierPriceListResult
- type ChangeProductToSupplierPriceListResultBulkItem
- type Client
- func (cli *Client) AddProductToPriceList(ctx context.Context, filters map[string]string) (*ChangeProductToPriceListResult, error)
- func (cli *Client) AddProductToSupplierPriceList(ctx context.Context, filters map[string]string) (*ChangeProductToSupplierPriceListResult, error)
- func (cli *Client) ChangeProductToPriceListBulk(ctx context.Context, bulkRequest []map[string]interface{}, ...) (ChangeProductToPriceListResponseBulk, error)
- func (cli *Client) ChangeProductToSupplierPriceListBulk(ctx context.Context, bulkRequest []map[string]interface{}, ...) (ChangeProductToSupplierPriceListResponseBulk, error)
- func (cli *Client) DeleteProductsFromPriceList(ctx context.Context, filters map[string]string) (*DeleteProductsFromPriceListResult, error)
- func (cli *Client) DeleteProductsFromPriceListBulk(ctx context.Context, bulkRequest []map[string]interface{}, ...) (DeleteProductsFromPriceListResponseBulk, 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) EditProductToPriceList(ctx context.Context, filters map[string]string) (*ChangeProductToPriceListResult, error)
- func (cli *Client) EditProductToSupplierPriceList(ctx context.Context, filters map[string]string) (*ChangeProductToSupplierPriceListResult, error)
- func (cli *Client) GetPriceLists(ctx context.Context, filters map[string]string) (*GetRegularPriceListResult, error)
- func (cli *Client) GetProductsInPriceList(ctx context.Context, filters map[string]string) ([]ProductsInPriceList, error)
- func (cli *Client) GetProductsInPriceListBulk(ctx context.Context, bulkFilters []map[string]interface{}, ...) (GetProductsInPriceListResponseBulk, error)
- func (cli *Client) GetProductsInPriceListWithStatus(ctx context.Context, filters map[string]string) (GetProductsInPriceListResponse, error)
- func (cli *Client) GetProductsInSupplierPriceList(ctx context.Context, filters map[string]string) ([]ProductsInSupplierPriceList, error)
- func (cli *Client) GetProductsInSupplierPriceListBulk(ctx context.Context, bulkFilters []map[string]interface{}, ...) (ProductsInSupplierPriceListResponseBulk, 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) SavePriceList(ctx context.Context, filters map[string]string) (*SavePriceListResult, error)
- func (cli *Client) SavePriceListBulk(ctx context.Context, bulkRequest []map[string]interface{}, ...) (SavePriceListResponseBulk, 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 DeleteProductsFromPriceListBulkItem
- type DeleteProductsFromPriceListResponse
- type DeleteProductsFromPriceListResponseBulk
- type DeleteProductsFromPriceListResult
- type DeleteProductsFromSupplierPriceListBulkItem
- type DeleteProductsFromSupplierPriceListResponse
- type DeleteProductsFromSupplierPriceListResponseBulk
- type DeleteProductsFromSupplierPriceListResult
- type GetPriceListsResponse
- type GetPriceListsResponseBulk
- type GetPriceListsResponseBulkItem
- type GetProductsInPriceListResponse
- type GetProductsInPriceListResponseBulk
- type GetProductsInPriceListResponseBulkItem
- type GetRegularPriceListResult
- type Manager
- type NotAddedPriceItem
- type PriceList
- type PriceListRule
- type ProductsInPriceList
- type ProductsInSupplierPriceList
- type ProductsInSupplierPriceListResponse
- type ProductsInSupplierPriceListResponseBulk
- type ProductsInSupplierPriceListResponseBulkItem
- type RegularPriceList
- type SavePriceListBulkItem
- type SavePriceListResponseBulk
- type SavePriceListResult
- type SavePriceListResultResponse
- 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 ChangeProductToPriceListResponse ¶ added in v1.14.0
type ChangeProductToPriceListResponse struct {
Status sharedCommon.Status `json:"status"`
ChangeProductToPriceListResults []ChangeProductToPriceListResult `json:"records"`
}
type ChangeProductToPriceListResponseBulk ¶ added in v1.14.0
type ChangeProductToPriceListResponseBulk struct {
Status sharedCommon.Status `json:"status"`
BulkItems []ChangeProductToPriceListResultBulkItem `json:"requests"`
}
type ChangeProductToPriceListResult ¶ added in v1.14.0
type ChangeProductToPriceListResult struct {
PriceListProductID int `json:"priceListProductID"`
}
type ChangeProductToPriceListResultBulkItem ¶ added in v1.14.0
type ChangeProductToPriceListResultBulkItem struct {
Status sharedCommon.StatusBulk `json:"status"`
Records []ChangeProductToPriceListResult `json:"records"`
}
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) AddProductToPriceList ¶ added in v1.14.0
func (*Client) AddProductToSupplierPriceList ¶
func (*Client) ChangeProductToPriceListBulk ¶ added in v1.14.0
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) DeleteProductsFromPriceList ¶ added in v1.14.0
func (*Client) DeleteProductsFromPriceListBulk ¶ added in v1.14.0
func (*Client) DeleteProductsFromSupplierPriceList ¶
func (*Client) DeleteProductsFromSupplierPriceListBulk ¶
func (*Client) EditProductToPriceList ¶ added in v1.14.0
func (*Client) EditProductToSupplierPriceList ¶
func (*Client) GetPriceLists ¶ added in v1.21.0
func (*Client) GetProductsInPriceList ¶ added in v1.6.0
func (*Client) GetProductsInPriceListBulk ¶ added in v1.6.0
func (*Client) GetProductsInPriceListWithStatus ¶ added in v1.15.0
func (*Client) GetProductsInSupplierPriceList ¶ added in v1.6.0
func (*Client) GetProductsInSupplierPriceListBulk ¶ added in v1.6.0
func (*Client) GetSupplierPriceLists ¶
func (*Client) GetSupplierPriceListsBulk ¶
func (*Client) SavePriceList ¶ added in v1.14.0
func (*Client) SavePriceListBulk ¶ added in v1.14.0
func (*Client) SaveSupplierPriceList ¶
func (*Client) SaveSupplierPriceListBulk ¶
type DeleteProductsFromPriceListBulkItem ¶ added in v1.14.0
type DeleteProductsFromPriceListBulkItem struct {
Status sharedCommon.StatusBulk `json:"status"`
Records []DeleteProductsFromPriceListResult `json:"records"`
}
type DeleteProductsFromPriceListResponse ¶ added in v1.14.0
type DeleteProductsFromPriceListResponse struct {
Status sharedCommon.Status `json:"status"`
DeleteProductsFromPriceListResults []DeleteProductsFromPriceListResult `json:"records"`
}
type DeleteProductsFromPriceListResponseBulk ¶ added in v1.14.0
type DeleteProductsFromPriceListResponseBulk struct {
Status sharedCommon.Status `json:"status"`
BulkItems []DeleteProductsFromPriceListBulkItem `json:"requests"`
}
type DeleteProductsFromPriceListResult ¶ added in v1.14.0
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 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 GetRegularPriceListResult ¶ added in v1.21.0
type GetRegularPriceListResult struct {
Status sharedCommon.Status `json:"status"`
PriceLists []RegularPriceList `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)
GetProductsInPriceListWithStatus(ctx context.Context, filters map[string]string) (GetProductsInPriceListResponse, 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)
GetPriceLists(ctx context.Context, filters map[string]string) (*GetRegularPriceListResult, error)
SavePriceList(ctx context.Context, filters map[string]string) (*SavePriceListResult, error)
SavePriceListBulk(ctx context.Context, bulkRequest []map[string]interface{}, baseFilters map[string]string) (SavePriceListResponseBulk, error)
AddProductToPriceList(ctx context.Context, filters map[string]string) (*ChangeProductToPriceListResult, error)
EditProductToPriceList(ctx context.Context, filters map[string]string) (*ChangeProductToPriceListResult, error)
ChangeProductToPriceListBulk(ctx context.Context, bulkRequest []map[string]interface{}, baseFilters map[string]string) (ChangeProductToPriceListResponseBulk, error)
DeleteProductsFromPriceList(ctx context.Context, filters map[string]string) (*DeleteProductsFromPriceListResult, error)
DeleteProductsFromPriceListBulk(ctx context.Context, bulkFilters []map[string]interface{}, baseFilters map[string]string) (DeleteProductsFromPriceListResponseBulk, error)
}
type NotAddedPriceItem ¶ added in v1.14.0
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 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 RegularPriceList ¶ added in v1.21.0
type RegularPriceList struct {
PricelistID int `json:"pricelistID"`
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 SavePriceListBulkItem ¶ added in v1.14.0
type SavePriceListBulkItem struct {
Status sharedCommon.StatusBulk `json:"status"`
Records []SavePriceListResult `json:"records"`
}
type SavePriceListResponseBulk ¶ added in v1.14.0
type SavePriceListResponseBulk struct {
Status sharedCommon.Status `json:"status"`
BulkItems []SavePriceListBulkItem `json:"requests"`
}
type SavePriceListResult ¶ added in v1.14.0
type SavePriceListResult struct {
PriceListID int `json:"pricelistID"`
ItemsNotAddedToPriceList []NotAddedPriceItem `json:"itemsNotAddedToPriceList"`
}
type SavePriceListResultResponse ¶ added in v1.14.0
type SavePriceListResultResponse struct {
Status sharedCommon.Status `json:"status"`
SavePriceListResults []SavePriceListResult `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"`
}
Click to show internal directories.
Click to hide internal directories.