Skip to content

Commit

Permalink
Update March 29, 2024 (#74)
Browse files Browse the repository at this point in the history
  • Loading branch information
diPhantxm authored Mar 31, 2024
1 parent f02e71d commit 97a9d2a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 15 deletions.
13 changes: 2 additions & 11 deletions ozon/products.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"`

Expand Down Expand Up @@ -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"`

Expand Down Expand Up @@ -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.
//
Expand All @@ -1938,7 +1932,7 @@ type GetProductPriceInfoResult struct {
Total int32 `json:"total"`
}

type GetPRoductPriceInfoResultItem struct {
type GetProductPriceInfoResultItem struct {
// Maximum acquiring fee
Acquiring int32 `json:"acquiring"`

Expand Down Expand Up @@ -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"`

Expand Down
4 changes: 0 additions & 4 deletions ozon/products_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,6 @@ func TestGetProductDetails(t *testing.T) {
"old_price": "",
"premium_price": "",
"price": "590.0000",
"recommended_price": "",
"sources": [
{
"is_enabled": true,
Expand Down Expand Up @@ -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,
Expand Down Expand Up @@ -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,
Expand Down Expand Up @@ -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": "",
Expand Down

0 comments on commit 97a9d2a

Please sign in to comment.