From 0a8ec0b509995a941905a007e58976972913e158 Mon Sep 17 00:00:00 2001 From: Fred Boniface Date: Sun, 14 Apr 2024 22:30:11 +0100 Subject: [PATCH] Adjust VSTP message types to use CIF schedule types. Bump version --- go.mod | 2 +- pkg/upstreamApi/vstp.go | 6 ++++-- 2 files changed, 5 insertions(+), 3 deletions(-) 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"`