Add example DELETE message which needs work
All checks were successful
Go Test / test (push) Successful in 45s

This commit is contained in:
Fred Boniface 2024-04-29 11:04:38 +01:00
parent 5b1ab9b12f
commit c5df223509

View File

@ -14,6 +14,9 @@ func convertCifType(in *upstreamApi.VSTPSchedule) (error, *upstreamApi.JsonSched
return errors.New("input is nil"), nil return errors.New("input is nil"), nil
} }
// Delete Message Example - Does not process as is.
// {"VSTPCIFMsgV1":{"schedule":{"transaction_type":"Delete","train_status":" ","schedule_start_date":"2024-04-29","schedule_end_date":"2024-04-29","schedule_days_runs":"1000000","CIF_train_uid":" 68613","CIF_stp_indicator":"N","CIF_bank_holiday_running":" "},"Sender":{"organisation":"Network Rail","application":"TSIA","component":"TSIA","userID":"#QJP0070","sessionID":"CT02000"},"classification":"industry","timestamp":"1714372444000","owner":"Network Rail","originMsgId":"2024-04-29T06:34:04-00:00@vstp.networkrail.co.uk"}}
out := &upstreamApi.JsonScheduleV1{ out := &upstreamApi.JsonScheduleV1{
TransactionType: in.TransactionType, TransactionType: in.TransactionType,
CifBankHolidayRunning: in.CifBankHolidayRunning, CifBankHolidayRunning: in.CifBankHolidayRunning,