Adjust VSTP message types to use CIF schedule types. Bump version
This commit is contained in:
parent
4719be9c13
commit
0a8ec0b509
2
go.mod
2
go.mod
@ -1,3 +1,3 @@
|
||||
module git.fjla.uk/owlboard/go-types
|
||||
module git.fjla.uk/owlboard/go-types/v1
|
||||
|
||||
go 1.19
|
||||
|
@ -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"`
|
||||
|
Loading…
Reference in New Issue
Block a user