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

@@ -437,8 +437,8 @@ func TestGetShipmentReport(t *testing.T) {
&GetShipmentReportParams{
Filter: &GetShipmentReportFilter{
DeliverySchema: []string{"fbs", "fbo", "crossborder"},
ProcessedAtFrom: core.TimeFromString(t, "2006-01-02T15:04:05Z", "2021-09-02T17:10:54.861Z"),
ProcessedAtTo: core.TimeFromString(t, "2006-01-02T15:04:05Z", "2021-11-02T17:10:54.861Z"),
ProcessedAtFrom: core.NewTimeFormat(core.TimeFromString(t, "2006-01-02T15:04:05Z", "2021-09-02T17:10:54.861Z"), "2006-01-02T15:04:05Z"),
ProcessedAtTo: core.NewTimeFormat(core.TimeFromString(t, "2006-01-02T15:04:05Z", "2021-11-02T17:10:54.861Z"), "2006-01-02T15:04:05Z"),
},
},
`{