Skip to content

Commit a1c92ae

Browse files
committed
change price index to multiple indexes in product/info/prices
1 parent 08180d9 commit a1c92ae

File tree

1 file changed

+45
-1
lines changed

1 file changed

+45
-1
lines changed

ozon/products.go

Lines changed: 45 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1911,9 +1911,53 @@ type GetProductPriceInfoResponse struct {
19111911
VAT string `json:"vat"`
19121912
} `json:"price"`
19131913

1914-
// Price index
1914+
// Deprected: price index
1915+
//
1916+
// Use PriceIndexes instead
19151917
PriceIndex string `json:"price_index"`
19161918

1919+
// Product price indexes
1920+
PriceIndexes struct {
1921+
// Competitors' product price on other marketplaces
1922+
ExternalIndexData struct {
1923+
// Minimum competitors' product price on other marketplaces
1924+
MinimalPrice string `json:"minimal_price"`
1925+
1926+
// Price currency
1927+
MinimalPriceCurrency string `json:"minimal_price_currency"`
1928+
1929+
// Price index value
1930+
PriceIndexValue float64 `json:"price_index_value"`
1931+
} `json:"external_index_data"`
1932+
1933+
// Competitors' product price on Ozon
1934+
OzonIndexData struct {
1935+
// Minimum competitors' product price on Ozon
1936+
MinimalPrice string `json:"minimal_price"`
1937+
1938+
// Price currency
1939+
MinimalPriceCurrency string `json:"minimal_price_currency"`
1940+
1941+
// Price index value
1942+
PriceIndexValue float64 `json:"price_index_value"`
1943+
} `json:"ozon_index_data"`
1944+
1945+
// Resulting price index of the product
1946+
PriceIndex string `json:"price_index"`
1947+
1948+
// Price of your product on other marketplaces
1949+
SelfMarketplaceIndexData struct {
1950+
// Minimum price of your product on other marketplaces
1951+
MinimalPrice string `json:"minimal_price"`
1952+
1953+
// Price currency
1954+
MinimalPriceCurrency string `json:"minimal_price_currency"`
1955+
1956+
// Price index value
1957+
PriceIndexValue float64 `json:"price_index_value"`
1958+
} `json:"self_marketplace_index_data"`
1959+
} `json:"prices_indexes"`
1960+
19171961
// Product identifier
19181962
ProductId int64 `json:"product_id"`
19191963

0 commit comments

Comments
 (0)