Adjust VSTP types

This commit is contained in:
Fred Boniface 2023-07-20 11:09:30 +01:00
parent ad24002a6a
commit 1cbfb1d074

View File

@ -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 {