ListBookings का तरीका

अनुरोध

ListBookingsRequest

रिटर्न वैल्यू

ListBookingsResponse

इसमें, किसी उपयोगकर्ता की सिर्फ़ आने वाली बुकिंग दिखनी चाहिए, न कि सभी बुकिंग.

कैननिकल gRPC गड़बड़ी कोड

  • NOT_FOUND (अगर पार्टनर को अनुरोध किए गए उपयोगकर्ता आईडी की जानकारी नहीं है)
// Request to list all upcoming bookings for a user
message ListBookingsRequest {
  // ID of the user (required)
  string user_id = 1;
}

// Response for the [ext.maps.booking.partner.v2.ListBookings] RPC with all
// upcoming bookings for the requested user
message ListBookingsResponse {
  // All bookings of the user (required)
  repeated Booking bookings = 1;
}