From 1cbfb1d074d297fcdf6a86d0a59079cb06584f9c Mon Sep 17 00:00:00 2001 From: Fred Boniface Date: Thu, 20 Jul 2023 11:09:30 +0100 Subject: [PATCH] Adjust VSTP types --- pkg/upstreamApi/vstp.go | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/pkg/upstreamApi/vstp.go b/pkg/upstreamApi/vstp.go index 4d502bc..22618b7 100644 --- a/pkg/upstreamApi/vstp.go +++ b/pkg/upstreamApi/vstp.go @@ -1,21 +1,21 @@ package upstreamApi type VstpMsg struct { - CIFMsg Schedule `json:"VSTPCIFMsgV1"` + CIFMsg *Schedule `json:"VSTPCIFMsgV1"` } type Schedule struct { - ScheduleID string `json:"schedule_id"` - TransactionType string `json:"transaction_type"` - ScheduleStartDate string `json:"schedule_start_date"` - ScheduleEndDate string `json:"schedule_end_date"` - ScheduleDaysRun string `json:"schedule_days_runs"` - ApplicableTimetable string `json:"applicable_timetable"` - CIFBankHolidayRun string `json:"CIF_bank_holiday_running"` - CIFTrainUID string `json:"CIF_train_uid"` - TrainStatus string `json:"train_status"` - CIFSTPIndicator string `json:"CIF_stp_indicator"` - ScheduleSegment ScheduleSegment `json:"schedule_segment"` + ScheduleID string `json:"schedule_id"` + TransactionType string `json:"transaction_type"` + ScheduleStartDate string `json:"schedule_start_date"` + ScheduleEndDate string `json:"schedule_end_date"` + ScheduleDaysRun string `json:"schedule_days_runs"` + ApplicableTimetable string `json:"applicable_timetable"` + CIFBankHolidayRun string `json:"CIF_bank_holiday_running"` + CIFTrainUID string `json:"CIF_train_uid"` + TrainStatus string `json:"train_status"` + CIFSTPIndicator string `json:"CIF_stp_indicator"` + ScheduleSegment []ScheduleSegment `json:"schedule_segment"` } type ScheduleSegment struct {