From f9aaf0f38f42b9452d283797e3967ce8ef9abe0c Mon Sep 17 00:00:00 2001 From: Fred Boniface Date: Wed, 24 Apr 2024 21:37:46 +0100 Subject: [PATCH] Update CIF Types to include a VSTP version of JsonScheduleV1 --- pkg/upstreamApi/cif.go | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/pkg/upstreamApi/cif.go b/pkg/upstreamApi/cif.go index bc3c723..389809c 100644 --- a/pkg/upstreamApi/cif.go +++ b/pkg/upstreamApi/cif.go @@ -55,6 +55,21 @@ type JsonScheduleV1 struct { ScheduleSegment CifScheduleSegment `json:"schedule_segment"` } +// VSTP Version of the JsonScheduleV1 type +type JsonScheduleV1vstp struct { + TransactionType string `json:"transaction_type"` + CifBankHolidayRunning string `json:"CIF_bank_holiday_running"` + CifStpIndicator string `json:"CIF_stp_indicator"` + CifTrainUid string `json:"CIF_train_uid"` + ApplicableTimetable string `json:"applicable_timetable"` + AtocCode string `json:"atoc_code"` + NewScheduleSegment ScheduleNewScheduleSegment `json:"new_schedule_segment"` + ScheduleDaysRun string `json:"schedule_days_runs"` + ScheduleStartDate string `json:"schedule_start_date"` + ScheduleEndDate string `json:"schedule_end_date"` + ScheduleSegment []CifScheduleSegment `json:"schedule_segment"` +} + // Part of the JsonScheduleV1 type type ScheduleNewScheduleSegment struct { TractionClass string `json:"traction_class"`