ListBookings 方法

请求

ListBookingsRequest

返回值

ListBookingsResponse

该方法只需返回用户的未来预订,而非所有时间的预订。

规范的 gRPC 错误代码

  • NOT_FOUND(如果合作伙伴找不到请求中的用户 ID)
// 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;
}