From 0389e6617e12045e3e60fadfaef42edc281a9331 Mon Sep 17 00:00:00 2001 From: diphantxm Date: Sat, 27 Apr 2024 13:19:28 +0500 Subject: [PATCH] fix --- ozon/products.go | 2 +- ozon/products_test.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/ozon/products.go b/ozon/products.go index b78a09e..500d4a0 100644 --- a/ozon/products.go +++ b/ozon/products.go @@ -27,7 +27,7 @@ type GetStocksInfoParams struct { type GetStocksInfoFilter struct { // Filter by the offer_id parameter. It is possible to pass a list of values - OfferId string `json:"offer_id,omitempty"` + OfferId []string `json:"offer_id,omitempty"` // Filter by the product_id parameter. It is possible to pass a list of values ProductId int64 `json:"product_id,omitempty"` diff --git a/ozon/products_test.go b/ozon/products_test.go index f49aa8c..6b95ecb 100644 --- a/ozon/products_test.go +++ b/ozon/products_test.go @@ -26,7 +26,7 @@ func TestGetStocksInfo(t *testing.T) { Limit: 100, LastId: "", Filter: GetStocksInfoFilter{ - OfferId: "136834", + OfferId: []string{"136834"}, ProductId: 214887921, Visibility: "ALL", },