Skip to content

Commit

Permalink
remove trip info and carrier code and use supplier code
Browse files Browse the repository at this point in the history
  • Loading branch information
havan committed Oct 16, 2024
1 parent ad84a0d commit 60f3160
Showing 1 changed file with 5 additions and 13 deletions.
18 changes: 5 additions & 13 deletions proto/cmp/services/transport/v3/trip_types.proto
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ import "google/protobuf/timestamp.proto";
//
// [Open Message Diagram](https://storage.googleapis.com/docs-cmp-files/diagrams/proto/cmp/services/transport/v3/trip_types.proto.dot.svg)
message TripExtended {
// Schedule for the whole trip
cmp.services.transport.v3.TripInfo info = 1;
// Trip supplier code
cmp.types.v2.SupplierProductCode supplier_code = 1;

// Luggage
//
Expand All @@ -30,7 +30,7 @@ message TripExtended {
// Ex: `Price(net=240, currency=Currency.CURRENCY_EUR)
cmp.types.v2.Price price = 3;

// Trip segments are the legs offered
// Trip segments are the legs offered. Here we use extended segments type.
//
// Departure and Arrival dates and times can be derived from the first and last segments
repeated cmp.services.transport.v3.SegmentExtended segments = 4;
Expand All @@ -40,23 +40,15 @@ message TripExtended {
//
// Intended to be used in list service.
message TripBasic {
// Trip Info like carrier code, carrier type, period
cmp.services.transport.v3.TripInfo info = 1;
// Trip supplier code
cmp.types.v2.SupplierProductCode supplier_code = 1;

// Trip segments are the legs offered
//
// Departure and Arrival dates and times can be derived from the first and last segments
repeated cmp.services.transport.v3.Segment segments = 2;
}

message TripInfo {
// Carrier Code
string carrier_code = 1;

// Carrier Type. Ex: airline, transfer company, train company, .. etc
string carrier_type = 2;
}

// A segment of a trip
message SegmentExtended {
// Segment Info
Expand Down

0 comments on commit 60f3160

Please sign in to comment.