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