Update November 8, 2023 (#48)

This commit is contained in:
Kirill
2023-11-11 15:37:26 +03:00
committed by GitHub
parent b496767c5b
commit 52b18252b1
2 changed files with 14 additions and 5 deletions

View File

@@ -199,13 +199,19 @@ func TestGetFBSShipmentsList(t *testing.T) {
Since: core.TimeFromString(t, "2006-01-02T15:04:05Z", "2021-11-01T00:00:00.000Z"), 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"), To: core.TimeFromString(t, "2006-01-02T15:04:05Z", "2021-12-01T23:59:59.000Z"),
Status: "awaiting_packaging", Status: "awaiting_packaging",
WarehouseId: []int64{123},
ProviderId: []int64{223},
FBPFilter: FBPFilterAll,
DeliveryMethodId: []int64{456},
OrderId: 0,
}, },
Limit: 100, Limit: 0,
Offset: 0, Offset: 0,
With: GetFBSShipmentsListWith{ With: GetFBSShipmentsListWith{
AnalyticsData: true, AnalyticsData: true,
FinancialData: true, FinancialData: true,
Translit: true, Translit: true,
Barcodes: true,
}, },
}, },
`{ `{
@@ -216,6 +222,7 @@ func TestGetFBSShipmentsList(t *testing.T) {
"order_id": 680420041, "order_id": 680420041,
"order_number": "05708065-0029", "order_number": "05708065-0029",
"status": "awaiting_deliver", "status": "awaiting_deliver",
"substatus": "posting_awaiting_passport_data",
"delivery_method": { "delivery_method": {
"id": 21321684811000, "id": 21321684811000,
"name": "Ozon Логистика самостоятельно, Красногорск", "name": "Ozon Логистика самостоятельно, Красногорск",

View File

@@ -374,6 +374,8 @@ type ProductDetailStock struct {
type ProductDetailVisibilityDetails struct { type ProductDetailVisibilityDetails struct {
// If the product is active, the value is true // If the product is active, the value is true
//
// Deprecated: Use `visible` parameter of `ProductDetails`
ActiveProduct bool `json:"active_product"` ActiveProduct bool `json:"active_product"`
// If the price is set, the value is true // 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. // 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. // Bulky products stock can only be updated in the warehouses for bulky products.
func (c Products) UpdateQuantityStockProducts(ctx context.Context, params *UpdateQuantityStockProductsParams) (*UpdateQuantityStockProductsResponse, error) { func (c Products) UpdateQuantityStockProducts(ctx context.Context, params *UpdateQuantityStockProductsParams) (*UpdateQuantityStockProductsResponse, error) {