Skip to content

Commit

Permalink
Update November 8, 2023 (#48)
Browse files Browse the repository at this point in the history
  • Loading branch information
diPhantxm authored Nov 11, 2023
1 parent b496767 commit 52b1825
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 5 deletions.
15 changes: 11 additions & 4 deletions ozon/fbs_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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,
},
},
`{
Expand All @@ -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 Логистика самостоятельно, Красногорск",
Expand Down
4 changes: 3 additions & 1 deletion ozon/products.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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) {
Expand Down

0 comments on commit 52b1825

Please sign in to comment.