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