Phương thức ListBookings

Yêu cầu

ListBookingsRequest

Giá trị trả về

ListBookingsResponse

Bạn chỉ cần trả về các lượt đặt chỗ trong tương lai của một người dùng, chứ không phải các lượt đặt chỗ từ trước đến nay.

Mã lỗi gRPC chuẩn

  • NOT_FOUND (nếu đối tác không biết mã nhận dạng người dùng được yêu cầu)
// 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;
}