syntax = "proto3"; option go_package = "git.coopgo.io/coopgo-platform/solidarity-service/servers/grpc/proto"; import "google/protobuf/timestamp.proto"; import "solidarity-api-types.proto"; service SolidarityService { rpc SetDriverRegularAvailabilities(DriverRegularAvailabilities) returns (DriverAvailabilitiesResponse) {} rpc SetDriverPunctualAvailabilities(DriverPunctualAvailabilities) returns (DriverAvailabilitiesResponse) {} rpc CreateBookingSilvermobi(CreateBookingSilvermobiRequest) returns (CreateBookingSilvermobiResponse) {} rpc UpdateBookingSilvermobi(UpdateBookingSilvermobiRequest) returns (UpdateBookingSilvermobiResponse) {} rpc GetBookingSilvermobi(GetBookingSilvermobiRequest) returns (GetBookingSilvermobiResponse) {} rpc GetBookingsByStatus(GetBookingsByStatusRequest) returns (GetBookingsByStatusResponse) {} rpc DriverJourneys(DriverJourneysRequest) returns (DriverJourneysResponse) {} rpc SetPassengerTrip(PassengerTripRequest) returns (PassengerTripResponse) {} } message PassengerTripRequest{ User passenger = 1; Preferences preferences = 2; } message DriverRegularAvailabilities{ DriverRequest driver_request = 1; repeated RegularAvailabilitySlot driver_availabilities = 2; } message DriverPunctualAvailabilities{ DriverRequest driver_request = 1; repeated PunctualAvailabilitySlot driver_availabilities = 2; } message PassengerTripResponse { bool success = 1; string message = 2; } message DriverAvailabilitiesResponse { bool success = 1; string message = 2; } message CreateBookingSilvermobiRequest { BookingSilvermobiRequest booking = 1; } message CreateBookingSilvermobiResponse { BookingSilvermobi booking = 1; } message UpdateBookingSilvermobiRequest { string booking_id = 1; BookingSilvermobiStatus status = 2; string message = 3; } message UpdateBookingSilvermobiResponse { bool success = 1; string message = 2; } message GetBookingSilvermobiRequest { string booking_id = 1; } message GetBookingSilvermobiResponse { BookingSilvermobi booking = 1; } message GetBookingsByStatusRequest{ BookingSilvermobiStatus status = 1; UserType type = 2; string user_id = 3; } message DriverJourneysRequest { Feature departure = 1; google.protobuf.Timestamp departure_date = 2; } message DriverJourneysResponse { repeated DriverJourney driver_journeys = 1; } message GetBookingsByStatusResponse{ repeated BookingSilvermobi booking = 1; }