Skip to content

Commit 1c0c203

Browse files
authored
Update February 14, 2025 (#144)
1 parent b08f17f commit 1c0c203

File tree

3 files changed

+52
-3
lines changed

3 files changed

+52
-3
lines changed

ozon/fbo.go

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -338,6 +338,9 @@ type GetSupplyRequestInfoResponse struct {
338338
}
339339

340340
type SupplyOrder struct {
341+
// true if the supply request can be canceled
342+
CanCancel bool `json:"can_cancel"`
343+
341344
// Date of supply request creation
342345
CreationDate string `json:"creation_date"`
343346

@@ -350,6 +353,18 @@ type SupplyOrder struct {
350353
// Supply warehouse identifier
351354
DropoffWarehouseId int64 `json:"dropoff_warehouse_id"`
352355

356+
// true if the supply request contains Super Economy products
357+
IsEconom bool `json:"is_econom"`
358+
359+
// true if the seller has Super supplies enabled
360+
IsSuperFBO bool `json:"is_super_fbo"`
361+
362+
// true if the supply request is virtual
363+
IsVirtual bool `json:"is_virtual"`
364+
365+
// true if the supply request contains Super products
366+
ProductSuperFBO bool `json:"product_super_fbo"`
367+
353368
// Filter by supply status
354369
State string `json:"state"`
355370

@@ -373,13 +388,33 @@ type Supply struct {
373388
// Supply contents identifier. Used in the /v1/supply-order/bundle method
374389
BundleId string `json:"bundle_id"`
375390

391+
// Filter by supply status
392+
SupplyState string `json:"supply_state"`
393+
376394
// Storage warehouse identifier
377395
StorageWarehouseId int64 `json:"storage_warehouse_id"`
378396

397+
// Product tags in the supply request
398+
SupplyTags []SupplyTag `json:"supply_tags"`
399+
379400
// Supply identifier
380401
Id int64 `json:"supply_id"`
381402
}
382403

404+
type SupplyTag struct {
405+
// true if the supply request contains products certified in the Mercury system
406+
IsEVSDRequired bool `json:"is_evsd_required"`
407+
408+
// true if the supply request contains jewelry
409+
IsJewelry bool `json:"is_jewelry"`
410+
411+
// true if the supply request contains products for which labeling is possible
412+
IsMarkingPossible bool `json:"is_marking_possible"`
413+
414+
// true if the supply request contains products for which labeling is mandatory
415+
IsMarkingRequired bool `json:"is_marking_required"`
416+
}
417+
383418
type SupplyTimeslot struct {
384419
// Reason why you can't select the supply time slot
385420
Reasons []string `json:"can_not_set_reasons"`

ozon/fbo_test.go

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -361,16 +361,30 @@ func TestGetSupplyRequestInfo(t *testing.T) {
361361
`{
362362
"orders": [
363363
{
364+
"can_cancel": true,
364365
"creation_date": "string",
365366
"creation_flow": "string",
366367
"data_filling_deadline_utc": "2019-08-24T14:15:22Z",
367368
"dropoff_warehouse_id": 0,
369+
"is_econom": true,
370+
"is_super_fbo": true,
371+
"is_virtual": true,
372+
"product_super_fbo": true,
368373
"state": "ORDER_STATE_UNSPECIFIED",
369374
"supplies": [
370375
{
371376
"bundle_id": "string",
372377
"storage_warehouse_id": 0,
373-
"supply_id": 0
378+
"supply_id": 0,
379+
"supply_state": "SUPPLY_STATE_UNSPECIFIED",
380+
"supply_tags": [
381+
{
382+
"is_evsd_required": true,
383+
"is_jewelry": true,
384+
"is_marking_possible": true,
385+
"is_marking_required": true
386+
}
387+
]
374388
}
375389
],
376390
"supply_order_id": 0,

ozon/products.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1387,9 +1387,9 @@ type ProductInfoResultPicture struct {
13871387
// Image uploading status.
13881388
//
13891389
// If the `/v1/product/pictures/import` method was called, the response will always be imported—image not processed.
1390-
// To see the final status, call the `/v1/product/pictures/info` method after about 10 seconds.
1390+
// To see the final status, call the `/v2/product/pictures/info` method after about 10 seconds.
13911391
//
1392-
// If you called the `/v1/product/pictures/info` method, one of the statuses will appear:
1392+
// If you called the `/v2/product/pictures/info` method, one of the statuses will appear:
13931393
// - uploaded — image uploaded;
13941394
// - pending — image was not uploaded
13951395
State string `json:"state"`

0 commit comments

Comments
 (0)