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