improvements
Some checks failed
Build and Push Docker Image / build_and_push (push) Failing after 3m6s
Some checks failed
Build and Push Docker Image / build_and_push (push) Failing after 3m6s
This commit is contained in:
@@ -608,16 +608,18 @@ func (x *GetDriverJourneyResponse) GetDriverJourney() *SolidarityTransportDriver
|
||||
}
|
||||
|
||||
type BookDriverJourneyRequest struct {
|
||||
state protoimpl.MessageState `protogen:"open.v1"`
|
||||
PassengerId string `protobuf:"bytes,1,opt,name=passenger_id,json=passengerId,proto3" json:"passenger_id,omitempty"`
|
||||
DriverId string `protobuf:"bytes,2,opt,name=driver_id,json=driverId,proto3" json:"driver_id,omitempty"`
|
||||
DriverJourneyId string `protobuf:"bytes,3,opt,name=driver_journey_id,json=driverJourneyId,proto3" json:"driver_journey_id,omitempty"`
|
||||
ReturnWaitingDuration int64 `protobuf:"varint,4,opt,name=return_waiting_duration,json=returnWaitingDuration,proto3" json:"return_waiting_duration,omitempty"`
|
||||
PriceAmount float64 `protobuf:"fixed64,5,opt,name=price_amount,json=priceAmount,proto3" json:"price_amount,omitempty"`
|
||||
PriceCurrency string `protobuf:"bytes,6,opt,name=price_currency,json=priceCurrency,proto3" json:"price_currency,omitempty"`
|
||||
Data *structpb.Struct `protobuf:"bytes,7,opt,name=data,proto3" json:"data,omitempty"`
|
||||
unknownFields protoimpl.UnknownFields
|
||||
sizeCache protoimpl.SizeCache
|
||||
state protoimpl.MessageState `protogen:"open.v1"`
|
||||
PassengerId string `protobuf:"bytes,1,opt,name=passenger_id,json=passengerId,proto3" json:"passenger_id,omitempty"`
|
||||
DriverId string `protobuf:"bytes,2,opt,name=driver_id,json=driverId,proto3" json:"driver_id,omitempty"`
|
||||
DriverJourneyId string `protobuf:"bytes,3,opt,name=driver_journey_id,json=driverJourneyId,proto3" json:"driver_journey_id,omitempty"`
|
||||
ReturnWaitingDuration int64 `protobuf:"varint,4,opt,name=return_waiting_duration,json=returnWaitingDuration,proto3" json:"return_waiting_duration,omitempty"`
|
||||
PriceAmount float64 `protobuf:"fixed64,5,opt,name=price_amount,json=priceAmount,proto3" json:"price_amount,omitempty"`
|
||||
PriceCurrency string `protobuf:"bytes,6,opt,name=price_currency,json=priceCurrency,proto3" json:"price_currency,omitempty"`
|
||||
Data *structpb.Struct `protobuf:"bytes,7,opt,name=data,proto3" json:"data,omitempty"`
|
||||
DriverCompensationAmount float64 `protobuf:"fixed64,8,opt,name=driver_compensation_amount,json=driverCompensationAmount,proto3" json:"driver_compensation_amount,omitempty"`
|
||||
DriverCompensationCurrency string `protobuf:"bytes,9,opt,name=driver_compensation_currency,json=driverCompensationCurrency,proto3" json:"driver_compensation_currency,omitempty"`
|
||||
unknownFields protoimpl.UnknownFields
|
||||
sizeCache protoimpl.SizeCache
|
||||
}
|
||||
|
||||
func (x *BookDriverJourneyRequest) Reset() {
|
||||
@@ -699,6 +701,20 @@ func (x *BookDriverJourneyRequest) GetData() *structpb.Struct {
|
||||
return nil
|
||||
}
|
||||
|
||||
func (x *BookDriverJourneyRequest) GetDriverCompensationAmount() float64 {
|
||||
if x != nil {
|
||||
return x.DriverCompensationAmount
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
func (x *BookDriverJourneyRequest) GetDriverCompensationCurrency() string {
|
||||
if x != nil {
|
||||
return x.DriverCompensationCurrency
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
type BookDriverJourneyResponse struct {
|
||||
state protoimpl.MessageState `protogen:"open.v1"`
|
||||
Booking *SolidarityTransportBooking `protobuf:"bytes,1,opt,name=booking,proto3" json:"booking,omitempty"`
|
||||
@@ -1246,7 +1262,7 @@ const file_solidarity_transport_proto_rawDesc = "" +
|
||||
"\n" +
|
||||
"journey_id\x18\x02 \x01(\tR\tjourneyId\"d\n" +
|
||||
"\x18GetDriverJourneyResponse\x12H\n" +
|
||||
"\x0edriver_journey\x18\x01 \x01(\v2!.SolidarityTransportDriverJourneyR\rdriverJourney\"\xb5\x02\n" +
|
||||
"\x0edriver_journey\x18\x01 \x01(\v2!.SolidarityTransportDriverJourneyR\rdriverJourney\"\xb5\x03\n" +
|
||||
"\x18BookDriverJourneyRequest\x12!\n" +
|
||||
"\fpassenger_id\x18\x01 \x01(\tR\vpassengerId\x12\x1b\n" +
|
||||
"\tdriver_id\x18\x02 \x01(\tR\bdriverId\x12*\n" +
|
||||
@@ -1254,7 +1270,9 @@ const file_solidarity_transport_proto_rawDesc = "" +
|
||||
"\x17return_waiting_duration\x18\x04 \x01(\x03R\x15returnWaitingDuration\x12!\n" +
|
||||
"\fprice_amount\x18\x05 \x01(\x01R\vpriceAmount\x12%\n" +
|
||||
"\x0eprice_currency\x18\x06 \x01(\tR\rpriceCurrency\x12+\n" +
|
||||
"\x04data\x18\a \x01(\v2\x17.google.protobuf.StructR\x04data\"R\n" +
|
||||
"\x04data\x18\a \x01(\v2\x17.google.protobuf.StructR\x04data\x12<\n" +
|
||||
"\x1adriver_compensation_amount\x18\b \x01(\x01R\x18driverCompensationAmount\x12@\n" +
|
||||
"\x1cdriver_compensation_currency\x18\t \x01(\tR\x1adriverCompensationCurrency\"R\n" +
|
||||
"\x19BookDriverJourneyResponse\x125\n" +
|
||||
"\abooking\x18\x01 \x01(\v2\x1b.SolidarityTransportBookingR\abooking\"\xef\x01\n" +
|
||||
"%GetSolidarityTransportBookingsRequest\x129\n" +
|
||||
|
||||
Reference in New Issue
Block a user