Skip to content

Commit

Permalink
Implemented product_code message type instead of string in transport …
Browse files Browse the repository at this point in the history
…and activities
  • Loading branch information
SamJaarsma committed Jan 11, 2024
1 parent e22b765 commit a44248f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ package cmp.services.activity.v1alpha1;
import "cmp/types/v1alpha1/language.proto";
import "cmp/types/v1alpha1/time.proto";
import "cmp/types/v1alpha1/price.proto";
import "cmp/types/v1alpha1/product_code.proto";

// ### Activity Search Parameters
//
Expand All @@ -21,7 +22,7 @@ message ActivitySearchParameters {
// Specify one or more product codes to be included in the search response
//
// Ex: "TC000000"
repeated string product_code = 2;
repeated cmp.types.v1alpha1.ProductCode product_codes = 2;

// Specify one or more activity IDs to be included in the search response
//
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ package cmp.services.transport.v1alpha1;

import "cmp/types/v1alpha1/time.proto";
import "cmp/types/v1alpha1/price.proto";
import "cmp/types/v1alpha1/product_code.proto";

// ### Transport Search Parameters
//
Expand All @@ -12,7 +13,7 @@ import "cmp/types/v1alpha1/price.proto";
message TransportSearchParameters {
// Specify one or more type codes to be included in the search response
// Ex: "SF"
repeated string product_code = 1;
repeated cmp.types.v1alpha1.ProductCode product_codes = 1;

// Duration
// Specify the minimal and maximum duration of an activity to be included in the search response
Expand Down

0 comments on commit a44248f

Please sign in to comment.