Skip to content

Commit

Permalink
Golang version to 19 and not required fields #60 (#61)
Browse files Browse the repository at this point in the history
Co-authored-by: o.tyurin <[email protected]>
  • Loading branch information
zloyleshiy and o.tyurin authored Jan 23, 2024
1 parent 549a2b9 commit a3c9d93
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 6 deletions.
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
module github.com/diphantxm/ozon-api-client

go 1.18
go 1.19
2 changes: 1 addition & 1 deletion ozon/categories.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ type Categories struct {

type GetProductTreeParams struct {
// Response language
Language Language `json:"language"`
Language Language `json:"language,omitempty"`
}

type GetProductTreeResponse struct {
Expand Down
14 changes: 10 additions & 4 deletions ozon/products.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,13 +27,13 @@ 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"`
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"`
ProductId int64 `json:"product_id,omitempty"`

// Filter by product visibility
Visibility string `json:"visibility"`
Visibility string `json:"visibility,omitempty"`
}

type GetStocksInfoResponse struct {
Expand Down Expand Up @@ -145,6 +145,12 @@ type ProductDetails struct {
// Product SKU
SKU int64 `json:"sku"`

// SKU of the product that is sold from the Ozon warehouse (FBO)
FBOSKU int64 `json:"fbo_sku,omitempty"`

// SKU of the product that is sold from the seller's warehouse (FBS and rFBS)
FBSSKU int64 `json:"fbs_sku,omitempty"`

// Document generation task number
Id int64 `json:"id"`

Expand Down Expand Up @@ -1940,7 +1946,7 @@ type GetPRoductPriceInfoResultItem struct {
Commissions GetProductPriceInfoResultItemCommission `json:"commissions"`

// Promotions information
MarketingActions []GetProductPriceInfoResultItemMarketingActions `json:"marketing_actions"`
MarketingActions *GetProductPriceInfoResultItemMarketingActions `json:"marketing_actions"`

// Seller product identifier
OfferId string `json:"offer_id"`
Expand Down

0 comments on commit a3c9d93

Please sign in to comment.