Skip to content

Commit

Permalink
add accommodation info rq/rs and service
Browse files Browse the repository at this point in the history
  • Loading branch information
havan committed Jan 15, 2024
1 parent 422372c commit d5f9091
Show file tree
Hide file tree
Showing 2 changed files with 42 additions and 0 deletions.
39 changes: 39 additions & 0 deletions proto/cmp/services/accommodation/v1alpha1/info.proto
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
syntax = "proto3";

package cmp.services.accommodation.v1alpha1;

import "cmp/services/accommodation/v1alpha1/property_types.proto";
import "cmp/types/v1alpha1/common.proto";
import "cmp/types/v1alpha1/language.proto";
import "google/protobuf/timestamp.proto";

message AccommodationProductInfoRequest {
// Message header
cmp.types.v1alpha1.Header header = 1;

// Only respond with the products that are modified after this timestamp
google.protobuf.Timestamp modified_after = 2;

// Languages
repeated cmp.types.v1alpha1.Language languages = 3;

// Property codes
repeated string propert_codes = 4;
}

message AccommodationProductInfoResponse {
// Message header
cmp.types.v1alpha1.Header header = 1;

// Product list: Properties
repeated PropertyExtendedInfo properties = 2;
}

// Accommodation product info service definition
//
// ![Diagram](https://storage.googleapis.com/docs-cmp-files/diagrams/proto/cmp/services/accommodation/v1alpha1/info.proto.dot.xs.svg)
// [Open Message Diagram](https://storage.googleapis.com/docs-cmp-files/diagrams/proto/cmp/services/accommodation/v1alpha1/info.proto.dot.svg)
service AccommodationProductInfoService {
// Returns product list for accommodation (properties)
rpc AccommodationProductInfo(AccommodationProductInfoRequest) returns (AccommodationProductInfoResponse);
}
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,9 @@ message PropertyExtendedInfo {

// Status
PropertyStatus status = 8;

// Rooms
repeated Room rooms = 9;
}

enum PropertyStatus {
Expand Down

0 comments on commit d5f9091

Please sign in to comment.