Skip to content

Commit

Permalink
Updates April 8, 2024 and April 9, 2024 (#77)
Browse files Browse the repository at this point in the history
  • Loading branch information
diPhantxm authored Apr 10, 2024
1 parent 61a78b1 commit 25051ee
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 2 deletions.
14 changes: 14 additions & 0 deletions ozon/common.go
Original file line number Diff line number Diff line change
Expand Up @@ -684,3 +684,17 @@ const (
// Check is failed
MandatoryMarkStatusFailed MandatoryMarkStatus = "failed"
)

type GetCarriageStatus string

const (
// acceptance in progress
GetCarriageStatusReceived GetCarriageStatus = "received"

// closed after acceptance
GetCarriageStatusClosed GetCarriageStatus = "closed"

GetCarriageStatusSended GetCarriageStatus = "sended"

GetCarriageStatusCancelled GetCarriageStatus = "cancelled"
)
2 changes: 1 addition & 1 deletion ozon/fbs.go
Original file line number Diff line number Diff line change
Expand Up @@ -2962,7 +2962,7 @@ type GetCarriageResponse struct {
RetryCount int32 `json:"retry_count"`

// Freight status
Status string `json:"status"`
Status GetCarriageStatus `json:"status"`

// Delivery method identifier
TPLProviderId int64 `json:"tpl_provider_id"`
Expand Down
2 changes: 1 addition & 1 deletion ozon/products.go
Original file line number Diff line number Diff line change
Expand Up @@ -1235,7 +1235,7 @@ type ProductInfoResultPicture struct {
//
// If you called the `/v1/product/pictures/info` method, one of the statuses will appear:
// - uploaded — image uploaded;
// - failed — image was not uploaded
// - pending — image was not uploaded
State string `json:"state"`

// The link to the image in the public cloud storage. The image format is JPG or PNG
Expand Down

0 comments on commit 25051ee

Please sign in to comment.