From 97a9d2aba521c69e00018c79abae13790cb5924c Mon Sep 17 00:00:00 2001 From: Kirill Date: Sun, 31 Mar 2024 16:51:47 +0300 Subject: [PATCH] Update March 29, 2024 (#74) --- ozon/products.go | 13 ++----------- ozon/products_test.go | 4 ---- 2 files changed, 2 insertions(+), 15 deletions(-) diff --git a/ozon/products.go b/ozon/products.go index c9fc373..44b9aaa 100644 --- a/ozon/products.go +++ b/ozon/products.go @@ -226,9 +226,6 @@ type ProductDetails struct { // Use PriceIndexes instead PriceIndex string `json:"price_index"` - // Product price suggested by the system based on similar offers - RecommendedPrice string `json:"recommended_price"` - // Product state description Status ProductDetailStatus `json:"status"` @@ -258,9 +255,6 @@ type ProductDetailCommission struct { // Delivery cost DeliveryAmount float64 `json:"deliveryAmount"` - // Minimum commission fee - MinValue float64 `json:"minValue"` - // Commission percentage Percent float64 `json:"percent"` @@ -1927,7 +1921,7 @@ type GetProductPriceInfoResponse struct { type GetProductPriceInfoResult struct { // Products list - Items []GetPRoductPriceInfoResultItem `json:"items"` + Items []GetProductPriceInfoResultItem `json:"items"` // Identifier of the last value on page. Leave this field blank in the first request. // @@ -1938,7 +1932,7 @@ type GetProductPriceInfoResult struct { Total int32 `json:"total"` } -type GetPRoductPriceInfoResultItem struct { +type GetProductPriceInfoResultItem struct { // Maximum acquiring fee Acquiring int32 `json:"acquiring"` @@ -2081,9 +2075,6 @@ type GetProductPriceInfoResultItemPrice struct { // Product price including discounts. This value is shown on the product description page Price string `json:"price"` - // Product price suggested by the system based on similar offers - RecommendedPrice string `json:"recommended_price"` - // Retailer price RetailPrice string `json:"retail_price"` diff --git a/ozon/products_test.go b/ozon/products_test.go index 45ab025..f49aa8c 100644 --- a/ozon/products_test.go +++ b/ozon/products_test.go @@ -147,7 +147,6 @@ func TestGetProductDetails(t *testing.T) { "old_price": "", "premium_price": "", "price": "590.0000", - "recommended_price": "", "sources": [ { "is_enabled": true, @@ -1395,7 +1394,6 @@ func TestListProductsByIDs(t *testing.T) { "old_price": "1000.0000", "premium_price": "590.0000", "price": "690.0000", - "recommended_price": "", "sources": [ { "is_enabled": true, @@ -1472,7 +1470,6 @@ func TestListProductsByIDs(t *testing.T) { "old_price": "12200.0000", "premium_price": "5490.0000", "price": "6100.0000", - "recommended_price": "", "sources": [ { "is_enabled": true, @@ -2357,7 +2354,6 @@ func TestGetProductPriceInfo(t *testing.T) { "price": "499.0000", "old_price": "579.0000", "premium_price": "", - "recommended_price": "", "retail_price": "", "vat": "0.200000", "min_ozon_price": "",