Update December 25, 2023 (#57)

This commit is contained in:
Kirill
2023-12-27 00:04:03 +03:00
committed by GitHub
parent ebafb17c9d
commit c36446bb59
4 changed files with 48 additions and 18 deletions

View File

@@ -25,7 +25,7 @@ type GetProductTreeResponse struct {
type GetProductTreeResult struct {
// Category identifier
CategoryId int64 `json:"category_id"`
DescriptionCategoryId int64 `json:"description_category_id"`
// Category name
CategoryName string `json:"category_name"`
@@ -64,7 +64,7 @@ func (c *Categories) Tree(ctx context.Context, params *GetProductTreeParams) (*G
type GetCategoryAttributesParams struct {
// Category identifier
CategoryId int64 `json:"category_id"`
DescriptionCategoryId int64 `json:"description_category_id"`
// Response language
Language Language `json:"language"`
@@ -123,6 +123,12 @@ type GetCategoryAttributesResult struct {
// Characteristic type
Type string `json:"type"`
// Complex attribute identifier
AttributeComplexId int64 `json:"attribute_complex_id"`
// Maximum number of values for attribute
MaxValueCount int64 `json:"max_value_count"`
}
// Getting characteristics for specified product category and type.
@@ -149,7 +155,7 @@ type GetAttributeDictionaryParams struct {
AttributeId int64 `json:"attribute_id"`
// Category identifier
CategoryId int64 `json:"category_id"`
DescriptionCategoryId int64 `json:"description_category_id"`
// Response language
Language Language `json:"language"`
@@ -200,7 +206,7 @@ type GetAttributeDictionaryResult struct {
// To check if an attribute has a nested directory,
// use the `/v1/description-category/attribute` method.
func (c *Categories) AttributesDictionary(ctx context.Context, params *GetAttributeDictionaryParams) (*GetAttributeDictionaryResponse, error) {
url := "/v1/description-category/attribute"
url := "/v1/description-category/attribute/values"
resp := &GetAttributeDictionaryResponse{}