diff --git a/proto/cmp/services/accommodation/v1alpha1/info.proto b/proto/cmp/services/accommodation/v1alpha1/info.proto index 277217e8..7b6734fa 100644 --- a/proto/cmp/services/accommodation/v1alpha1/info.proto +++ b/proto/cmp/services/accommodation/v1alpha1/info.proto @@ -18,7 +18,7 @@ message AccommodationProductInfoRequest { repeated cmp.types.v1alpha1.Language languages = 3; // Property codes - repeated string propert_codes = 4; + repeated string property_codes = 4; } message AccommodationProductInfoResponse { diff --git a/proto/cmp/services/accommodation/v1alpha1/property_types.proto b/proto/cmp/services/accommodation/v1alpha1/property_types.proto index d5521a81..5dc7ad85 100644 --- a/proto/cmp/services/accommodation/v1alpha1/property_types.proto +++ b/proto/cmp/services/accommodation/v1alpha1/property_types.proto @@ -3,6 +3,7 @@ syntax = "proto3"; package cmp.services.accommodation.v1alpha1; import "cmp/types/v1alpha1/address.proto"; +import "cmp/types/v1alpha1/amenity.proto"; import "cmp/types/v1alpha1/bed.proto"; import "cmp/types/v1alpha1/description.proto"; import "cmp/types/v1alpha1/email.proto"; @@ -148,8 +149,6 @@ message Room { // Meal plan (Board code) repeated cmp.types.v1alpha1.MealPlan meal_plan = 6; - // FIXME: Need board description & amenities here - // Beds repeated cmp.types.v1alpha1.Bed beds = 7; @@ -158,6 +157,9 @@ message Room { // Services repeated cmp.types.v1alpha1.ServiceFact services = 9; + + // Amenities + repeated cmp.types.v1alpha1.Amenity amenities = 10; } message Occupancy { diff --git a/proto/cmp/types/v1alpha1/amenity.proto b/proto/cmp/types/v1alpha1/amenity.proto new file mode 100644 index 00000000..14120bd6 --- /dev/null +++ b/proto/cmp/types/v1alpha1/amenity.proto @@ -0,0 +1,26 @@ +syntax = "proto3"; + +package cmp.types.v1alpha1; + +// Amenity message type +// +// ![Diagram](https://storage.googleapis.com/docs-cmp-files/diagrams/proto/cmp/types/v1alpha1/amenity.proto.dot.xs.svg) +// [Open Message Diagram](https://storage.googleapis.com/docs-cmp-files/diagrams/proto/cmp/types/v1alpha1/amenity.proto.dot.svg) +message Amenity { + // Amenity type like INTERNET, POOL, FOOD_BEVERAGE + AmenityType type = 1; + + // Attributes of the amenity + map attributes = 2; +} + +enum AmenityType { + AMENITY_TYPE_UNSPECIFIED = 0; + AMENITY_TYPE_FOOD_AND_DRINK = 1; + AMENITY_TYPE_POOL = 2; + AMENITY_TYPE_BEACH = 3; + AMENITY_TYPE_ATTRACTIONS = 4; + AMENITY_TYPE_THEMES = 5; + AMENITY_TYPE_INTERNET = 6; + AMENITY_TYPE_OTHER = 99; +}