השיטה ListBookings

בקשה

ListBookingsRequest

הערך המוחזר

ListBookingsResponse

הפונקציה צריכה להחזיר רק הזמנות עתידיות של משתמש, ולא הזמנות מכל התקופה.

קודי שגיאה קנוניים של gRPC

  • NOT_FOUND (אם מזהה המשתמש המבוקש לא ידוע לשותף)
// Request to list all upcoming bookings for a user
message ListBookingsRequest {
  option features.(pb.java).nest_in_file_class = YES;

  // 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 {
  option features.(pb.java).nest_in_file_class = YES;

  // All bookings of the user (required)
  repeated Booking bookings = 1;
}