Skip to content

Commit

Permalink
fixed enum, corrected field
Browse files Browse the repository at this point in the history
  • Loading branch information
SamJaarsma committed Dec 14, 2023
1 parent c365cd5 commit 8ea2c1d
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 additions & 5 deletions proto/cmp/services/activity/v1alpha1/search_result_types.proto
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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
Expand Down Expand Up @@ -102,7 +101,7 @@ message ActivityLocation {
}

// ### PickupDropoffEvent
message PickupDropffEvent {
message PickupDropoffEvent {
// Ex: "AESPMI43NU",
string location_name = 1;

Expand All @@ -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;
}

0 comments on commit 8ea2c1d

Please sign in to comment.