-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added Product List to AccommodationSearchParameters (#7)
* added product code list * Implemented product_code message type instead of string in transport and activities * improved single room vs multi room explanation
- Loading branch information
1 parent
86c93bd
commit 82d14dd
Showing
5 changed files
with
48 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
syntax = "proto3"; | ||
|
||
package cmp.types.v1alpha1; | ||
|
||
// Product code and type | ||
// | ||
// This is being used in requests to specify the a list of products to be included in the reponse | ||
// | ||
// ![Diagram](https://storage.googleapis.com/docs-cmp-files/diagrams/proto/cmp/types/v1alpha1/product_code.proto.dot.xs.svg) | ||
// [Open Message Diagram](https://storage.googleapis.com/docs-cmp-files/diagrams/proto/cmp/types/v1alpha1/product_code.proto.dot.svg) | ||
message ProductCode { | ||
string code = 1; | ||
ProductCodeType type = 2; | ||
} | ||
|
||
// Product Code type | ||
enum ProductCodeType { | ||
PRODUCT_CODE_TYPE_UNSPECIFIED = 0; | ||
PRODUCT_CODE_TYPE_PROVIDER = 1; | ||
PRODUCT_CODE_TYPE_GIATA = 2; | ||
PRODUCT_CODE_TYPE_GOAL_ID = 3; | ||
} |