Fix type in GetStocksInfoParams.GetStocksInfoFilter #84 (#85)

This commit is contained in:
Kirill
2024-04-27 13:22:18 +05:00
committed by GitHub
parent 049b02835b
commit b0e1210f34
2 changed files with 2 additions and 2 deletions

View File

@@ -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"`

View File

@@ -26,7 +26,7 @@ func TestGetStocksInfo(t *testing.T) {
Limit: 100,
LastId: "",
Filter: GetStocksInfoFilter{
OfferId: "136834",
OfferId: []string{"136834"},
ProductId: 214887921,
Visibility: "ALL",
},