Skip to content

Commit

Permalink
move seat map service and add availability service
Browse files Browse the repository at this point in the history
  • Loading branch information
havan committed May 8, 2024
1 parent 26b433e commit bd40212
Show file tree
Hide file tree
Showing 2 changed files with 49 additions and 3 deletions.
46 changes: 46 additions & 0 deletions proto/cmp/services/seat_map/v1alpha/availability.proto
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
syntax = "proto3";

package cmp.services.seat_map.v1alpha;

import "cmp/types/v1alpha/common.proto";
import "cmp/types/v1alpha/seat_map.proto";

// Request for seat map availability data
//
// Requests the seat map availability data for a given map ID
message SeatMapAvailabilityRequest {
// Message header
//
// Header contains information about the request
cmp.types.v1alpha.RequestHeader header = 1;

// Required. Unique identifier for the seat map.
// This is the map ID that is received in the search result.
string map_id = 2;
}

// Response for seat map availability request
//
// Contains the seat map availability data for a given map ID
message SeatMapAvailabilityResponse {
// Message header
//
// Header contains information about the response
cmp.types.v1alpha.ResponseHeader header = 1;

// Required. Seat map availability data.
cmp.types.v1alpha.SeatMapAvailability seat_map = 2;
}

// Service for requesting seat map availability data
//
// Service is used to request the seat map availability data for a given map ID
//
// ![Diagram](https://storage.googleapis.com/docs-cmp-files/diagrams/proto/cmp/services/seat_map/v1alpha/availability.proto.dot.xs.svg)
// [Open Message Diagram](https://storage.googleapis.com/docs-cmp-files/diagrams/proto/cmp/services/seat_map/v1alpha/availability.proto.dot.svg)
service SeatMapAvailabilityService {
// Get seat map availability data
//
// Requests the seat map availability data for a given map ID
rpc SeatMapAvailability(SeatMapAvailabilityRequest) returns (SeatMapAvailabilityResponse);
}
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
syntax = "proto3";

package cmp.services.transport.v1alpha;
package cmp.services.seat_map.v1alpha;

import "cmp/types/v1alpha/common.proto";
import "cmp/types/v1alpha/seat_map.proto";
Expand Down Expand Up @@ -39,8 +39,8 @@ message SeatMapResponse {
//
// Service is used to request the seat map data for a given map ID
//
// ![Diagram](https://storage.googleapis.com/docs-cmp-files/diagrams/proto/cmp/services/transport/v1alpha/seat_map.proto.dot.xs.svg)
// [Open Message Diagram](https://storage.googleapis.com/docs-cmp-files/diagrams/proto/cmp/services/transport/v1alpha/seat_map.proto.dot.svg)
// ![Diagram](https://storage.googleapis.com/docs-cmp-files/diagrams/proto/cmp/services/seat_map/v1alpha/seat_map.proto.dot.xs.svg)
// [Open Message Diagram](https://storage.googleapis.com/docs-cmp-files/diagrams/proto/cmp/services/seat_map/v1alpha/seat_map.proto.dot.svg)
service SeatMapService {
// Get seat map data
//
Expand Down

0 comments on commit bd40212

Please sign in to comment.