Update CIF Types to include a VSTP version of JsonScheduleV1

This commit is contained in:
Fred Boniface 2024-04-24 21:37:46 +01:00
parent 1fc6bf03c3
commit f9aaf0f38f
1 changed files with 15 additions and 0 deletions

View File

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