Specify enum values for status in GetFBOReturns method
This commit is contained in:
@@ -464,3 +464,18 @@ const (
|
||||
CancelledWithCompensation GetFBSReturnsFilterStatus = "cancelled_with_compensation"
|
||||
ReadyForShipment GetFBSReturnsFilterStatus = "ready_for_shipment"
|
||||
)
|
||||
|
||||
type GetFBOReturnsFilterStatus string
|
||||
|
||||
const (
|
||||
GetFBOReturnsFilterStatusReturnedToOzon GetFBOReturnsFilterStatus = "ReturnedToOzon"
|
||||
GetFBOReturnsFilterStatusCancelled GetFBOReturnsFilterStatus = "Cancelled"
|
||||
)
|
||||
|
||||
type GetFBOReturnsReturnStatus string
|
||||
|
||||
const (
|
||||
GetFBOReturnsReturnStatusCancelled GetFBOReturnsReturnStatus = "Возврат отменен"
|
||||
GetFBOReturnsReturnStatusAcceptedFromCustomer GetFBOReturnsReturnStatus = "Принят от покупателя"
|
||||
GetFBOReturnsReturnStatusReceivedAtOzon GetFBOReturnsReturnStatus = "Получен в Ozon"
|
||||
)
|
||||
|
||||
@@ -28,7 +28,8 @@ type GetFBOReturnsFilter struct {
|
||||
// Shipment number
|
||||
PostingNumber string `json:"posting_number"`
|
||||
|
||||
Status []string `json:"status"`
|
||||
// Return status
|
||||
Status []GetFBOReturnsFilterStatus `json:"status"`
|
||||
}
|
||||
|
||||
type GetFBOReturnsResponse struct {
|
||||
@@ -73,7 +74,7 @@ type GetFBOReturnsReturn struct {
|
||||
SKU int64 `json:"sku"`
|
||||
|
||||
// Return status
|
||||
Status string `json:"status_name"`
|
||||
Status GetFBOReturnsReturnStatus `json:"status_name"`
|
||||
}
|
||||
|
||||
// Method for getting information on returned products that are sold from the Ozon warehouse
|
||||
|
||||
Reference in New Issue
Block a user