From 8ea2c1d9d4b44a83a7d4fa180f6c2379d79938fe Mon Sep 17 00:00:00 2001 From: Sam Jaarsma Date: Thu, 14 Dec 2023 11:31:54 +0100 Subject: [PATCH] fixed enum, corrected field --- .../activity/v1alpha1/search_result_types.proto | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/proto/cmp/services/activity/v1alpha1/search_result_types.proto b/proto/cmp/services/activity/v1alpha1/search_result_types.proto index c5b02276..3529de0a 100644 --- a/proto/cmp/services/activity/v1alpha1/search_result_types.proto +++ b/proto/cmp/services/activity/v1alpha1/search_result_types.proto @@ -28,7 +28,7 @@ message ActivitySearchResult { ActivityLocation location = 4; // Pickup Dropoff - repeated PickupDropffEvent pickup_dropoff_events = 5; + repeated PickupDropoffEvent pickup_dropoff_events = 5; // Min participants int32 min_participants = 6; @@ -40,9 +40,8 @@ message ActivitySearchResult { cmp.types.v1alpha1.Price price = 8; // Pricing type - // Ex: "PerPerson" - // FIXME: Enum?? - string pricing_type = 9; + // Ex: "PerPerson", "PerGroup" + PricingType pricing_type = 9; } // ### Activity Info @@ -102,7 +101,7 @@ message ActivityLocation { } // ### PickupDropoffEvent -message PickupDropffEvent { +message PickupDropoffEvent { // Ex: "AESPMI43NU", string location_name = 1; @@ -116,3 +115,9 @@ message PickupDropffEvent { // Ex: "2023-07-15T09:05:00" google.protobuf.Timestamp date_time = 4; } + +enum PricingType { + PRICING_TYPE_UNSPECIFIED = 0; + PRICING_TYPE_PERPERSON = 1; + PRICING_TYPE_PERGROUP = 2; +} \ No newline at end of file