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

This commit is contained in:
Arnaud Delcasse
2025-10-08 16:25:25 +02:00
parent 5dbb3e23d4
commit 4392f22783

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,
}
}