วิธีการ 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;
}