From 52b18252b173e788d970f1f5c919226a19544a68 Mon Sep 17 00:00:00 2001 From: Kirill Date: Sat, 11 Nov 2023 15:37:26 +0300 Subject: [PATCH] Update November 8, 2023 (#48) --- ozon/fbs_test.go | 15 +++++++++++---- ozon/products.go | 4 +++- 2 files changed, 14 insertions(+), 5 deletions(-) diff --git a/ozon/fbs_test.go b/ozon/fbs_test.go index 2abf0de..df8cb68 100644 --- a/ozon/fbs_test.go +++ b/ozon/fbs_test.go @@ -196,16 +196,22 @@ func TestGetFBSShipmentsList(t *testing.T) { &GetFBSShipmentsListParams{ Direction: "ASC", Filter: GetFBSShipmentsListFilter{ - Since: core.TimeFromString(t, "2006-01-02T15:04:05Z", "2021-11-01T00:00:00.000Z"), - To: core.TimeFromString(t, "2006-01-02T15:04:05Z", "2021-12-01T23:59:59.000Z"), - Status: "awaiting_packaging", + Since: core.TimeFromString(t, "2006-01-02T15:04:05Z", "2021-11-01T00:00:00.000Z"), + To: core.TimeFromString(t, "2006-01-02T15:04:05Z", "2021-12-01T23:59:59.000Z"), + Status: "awaiting_packaging", + WarehouseId: []int64{123}, + ProviderId: []int64{223}, + FBPFilter: FBPFilterAll, + DeliveryMethodId: []int64{456}, + OrderId: 0, }, - Limit: 100, + Limit: 0, Offset: 0, With: GetFBSShipmentsListWith{ AnalyticsData: true, FinancialData: true, Translit: true, + Barcodes: true, }, }, `{ @@ -216,6 +222,7 @@ func TestGetFBSShipmentsList(t *testing.T) { "order_id": 680420041, "order_number": "05708065-0029", "status": "awaiting_deliver", + "substatus": "posting_awaiting_passport_data", "delivery_method": { "id": 21321684811000, "name": "Ozon Логистика самостоятельно, Красногорск", diff --git a/ozon/products.go b/ozon/products.go index dea6a10..fc76c85 100644 --- a/ozon/products.go +++ b/ozon/products.go @@ -374,6 +374,8 @@ type ProductDetailStock struct { type ProductDetailVisibilityDetails struct { // If the product is active, the value is true + // + // Deprecated: Use `visible` parameter of `ProductDetails` ActiveProduct bool `json:"active_product"` // If the price is set, the value is true @@ -559,7 +561,7 @@ type UpdateQuantityStockProductsResultError struct { // // You can update the stock of one product in one warehouse only once in 2 minutes, otherwise there will be the TOO_MANY_REQUESTS error in the response. // -// Availability can only be set after the product status has been changed to processed. +// You can set the availability of an item only after the product status is changed to price_sent // // Bulky products stock can only be updated in the warehouses for bulky products. func (c Products) UpdateQuantityStockProducts(ctx context.Context, params *UpdateQuantityStockProductsParams) (*UpdateQuantityStockProductsResponse, error) {