Add driver compensation to ToOCSS and FromOCSS transformations
Build and Push Docker Image / build_and_push (push) Has been cancelled Details

This commit is contained in:
Arnaud Delcasse 2025-10-08 16:25:25 +02:00
parent 5dbb3e23d4
commit 4392f22783
1 changed files with 32 additions and 28 deletions

View File

@ -267,6 +267,8 @@ func (b *CarpoolServiceBooking) ToOCSS() ocss.Booking {
Status: status,
DriverJourneyID: b.DriverJourneyId,
PassengerJourneyID: b.PassengerJourneyId,
DriverCompensationAmount: b.DriverCompensationAmount,
DriverCompensationCurrency: b.DriverCompensationCurrency,
}
}
@ -350,6 +352,8 @@ func BookingFromOCSS(b ocss.Booking) *CarpoolServiceBooking {
Price: &price,
DriverJourneyId: b.DriverJourneyID,
PassengerJourneyId: b.PassengerJourneyID,
DriverCompensationAmount: b.DriverCompensationAmount,
DriverCompensationCurrency: b.DriverCompensationCurrency,
}
}