Updates April 8, 2024 and April 9, 2024 (#77)

This commit is contained in:
Kirill
2024-04-10 17:53:31 +03:00
committed by GitHub
parent 61a78b1c4c
commit 25051ee802
3 changed files with 16 additions and 2 deletions

View File

@@ -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"
)

View File

@@ -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"`

View File

@@ -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