Skip to content

Commit

Permalink
we need a query id in the result
Browse files Browse the repository at this point in the history
  • Loading branch information
havan committed Jan 15, 2024
1 parent 1e2fa9a commit 9f834e5
Showing 1 changed file with 14 additions and 11 deletions.
25 changes: 14 additions & 11 deletions proto/cmp/services/transport/v1alpha1/search_result_types.proto
Original file line number Diff line number Diff line change
Expand Up @@ -19,43 +19,46 @@ message TransportSearchResult {
// Unique result ID
int32 result_id = 1;

// Query ID is the id of the query this result is generated for
int32 query_id = 2;

// Offer ID.
//
// Option to carry through an offer identifier for other stateful provider systems
// like NDC AirShopping RS
string offer_id = 2;
string offer_id = 3;

// Travellers
repeated cmp.types.v1alpha1.Traveller travellers = 3;
repeated cmp.types.v1alpha1.Traveller travellers = 4;

// Travelling trip. See `search.proto` documentation
Trip travelling_trip = 4;
Trip travelling_trip = 5;

// Returning trip. See `search.proto` documentation
Trip returning_trip = 5;
Trip returning_trip = 6;

// Total Price
cmp.types.v1alpha1.PriceDetail total_price = 6;
cmp.types.v1alpha1.PriceDetail total_price = 7;

// Services
repeated cmp.types.v1alpha1.ServiceFact services = 7;
repeated cmp.types.v1alpha1.ServiceFact services = 8;

// Rate Rules
repeated cmp.types.v1alpha1.RateRule rate_rules = 8;
repeated cmp.types.v1alpha1.RateRule rate_rules = 9;

// Fulfillment
repeated cmp.types.v1alpha1.Fulfillment fulfillments = 9; //FIXME: Can linktype be an ENUM?
repeated cmp.types.v1alpha1.Fulfillment fulfillments = 10; //FIXME: Can linktype be an ENUM?

// Validity of the search option.
//
// `DateTimeRange` type with `start_date` and `end_date` in which the option can
// be booked. If the start_date is omitted, the offer can be booked until the
// end-date.
cmp.types.v1alpha1.DateTimeRange validity = 10;
cmp.types.v1alpha1.DateTimeRange validity = 11;

// Cancel Policy
cmp.types.v1alpha1.CancelPolicy cancel_policy = 11;
cmp.types.v1alpha1.CancelPolicy cancel_policy = 12;

// Observations
string observations = 12;
string observations = 13;
}

0 comments on commit 9f834e5

Please sign in to comment.