diff --git a/go.mod b/go.mod index 5c1b00d..ed02203 100644 --- a/go.mod +++ b/go.mod @@ -1,3 +1,3 @@ -module git.fjla.uk/owlboard/go-types +module git.fjla.uk/owlboard/go-types/v1 go 1.19 diff --git a/pkg/upstreamApi/vstp.go b/pkg/upstreamApi/vstp.go index a503614..c6771ff 100644 --- a/pkg/upstreamApi/vstp.go +++ b/pkg/upstreamApi/vstp.go @@ -1,13 +1,15 @@ package upstreamApi type MsgData struct { - Data VstpMsg `json:"VSTPCIFMsgV1,omitempty"` + Data VstpMsg `json:"VSTPCIFMsgV1,omitempty"` + Timestamp int64 `json:"timestamp,omitempty"` } type VstpMsg struct { - CIFMsg Schedule `json:"schedule,omitempty"` + CIFMsg JsonScheduleV1 `json:"schedule,omitempty"` } +// Redundant Types: type Schedule struct { TransactionType string `json:"transaction_type,omitempty"` ScheduleStartDate string `json:"schedule_start_date,omitempty"`