Skip to content

Commit

Permalink
update april 10, 2024
Browse files Browse the repository at this point in the history
  • Loading branch information
diPhantxm committed Apr 10, 2024
1 parent cbb0394 commit e085271
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
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

0 comments on commit e085271

Please sign in to comment.