Time format fixes and optional fields (#91)

This commit is contained in:
Kirill
2024-05-24 15:42:48 +03:00
committed by GitHub
parent 7ffcf3f235
commit 2e284d9667
11 changed files with 29 additions and 29 deletions

View File

@@ -14,7 +14,7 @@ type FBO struct {
type GetFBOShipmentsListParams struct {
// Sorting direction
Direction string `json:"dir,omitempty"`
Direction Order `json:"dir,omitempty"`
// Shipment search filter
Filter GetFBOShipmentsListFilter `json:"filter"`
@@ -35,13 +35,13 @@ type GetFBOShipmentsListParams struct {
// Shipment search filter
type GetFBOShipmentsListFilter struct {
// Period start in YYYY-MM-DD format
Since time.Time `json:"since"`
Since *core.TimeFormat `json:"since,omitempty"`
// Shipment status
Status string `json:"status"`
Status string `json:"status,omitempty"`
// Period end in YYYY-MM-DD format
To time.Time `json:"to"`
To *core.TimeFormat `json:"to,omitempty"`
}
// Additional fields to add to the response