Adjust VSTP message types to use CIF schedule types. Bump version

This commit is contained in:
Fred Boniface 2024-04-14 22:30:11 +01:00
parent 4719be9c13
commit 0a8ec0b509
2 changed files with 5 additions and 3 deletions

2
go.mod
View File

@ -1,3 +1,3 @@
module git.fjla.uk/owlboard/go-types
module git.fjla.uk/owlboard/go-types/v1
go 1.19

View File

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