Add driver compensation to ToOCSS and FromOCSS transformations
Some checks failed
Build and Push Docker Image / build_and_push (push) Has been cancelled
Some checks failed
Build and Push Docker Image / build_and_push (push) Has been cancelled
This commit is contained in:
@@ -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,
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user