Golang version to 19 and not required fields #60 (#61)

Co-authored-by: o.tyurin <o.tyurin@corp.mail.ru>
This commit is contained in:
Zloy_Leshiy
2024-01-23 03:14:18 +03:00
committed by GitHub
parent 549a2b9b41
commit a3c9d93adc
3 changed files with 12 additions and 6 deletions

2
go.mod
View File

@@ -1,3 +1,3 @@
module github.com/diphantxm/ozon-api-client module github.com/diphantxm/ozon-api-client
go 1.18 go 1.19

View File

@@ -13,7 +13,7 @@ type Categories struct {
type GetProductTreeParams struct { type GetProductTreeParams struct {
// Response language // Response language
Language Language `json:"language"` Language Language `json:"language,omitempty"`
} }
type GetProductTreeResponse struct { type GetProductTreeResponse struct {

View File

@@ -27,13 +27,13 @@ type GetStocksInfoParams struct {
type GetStocksInfoFilter struct { type GetStocksInfoFilter struct {
// Filter by the offer_id parameter. It is possible to pass a list of values // 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 // 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 // Filter by product visibility
Visibility string `json:"visibility"` Visibility string `json:"visibility,omitempty"`
} }
type GetStocksInfoResponse struct { type GetStocksInfoResponse struct {
@@ -145,6 +145,12 @@ type ProductDetails struct {
// Product SKU // Product SKU
SKU int64 `json:"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 // Document generation task number
Id int64 `json:"id"` Id int64 `json:"id"`
@@ -1940,7 +1946,7 @@ type GetPRoductPriceInfoResultItem struct {
Commissions GetProductPriceInfoResultItemCommission `json:"commissions"` Commissions GetProductPriceInfoResultItemCommission `json:"commissions"`
// Promotions information // Promotions information
MarketingActions []GetProductPriceInfoResultItemMarketingActions `json:"marketing_actions"` MarketingActions *GetProductPriceInfoResultItemMarketingActions `json:"marketing_actions"`
// Seller product identifier // Seller product identifier
OfferId string `json:"offer_id"` OfferId string `json:"offer_id"`