-
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.
[LIST] add product list for accommodation
- Loading branch information
Showing
9 changed files
with
214 additions
and
33 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
syntax = "proto3"; | ||
|
||
package cmp.services.accommodation.v1alpha1; | ||
|
||
import "cmp/services/accommodation/v1alpha1/property_types.proto"; | ||
import "cmp/types/v1alpha1/common.proto"; | ||
import "google/protobuf/timestamp.proto"; | ||
|
||
message AccommodationProductListRequest { | ||
// Message header | ||
cmp.types.v1alpha1.Header header = 1; | ||
|
||
// Only respond with the products that are modified after this timestamp | ||
google.protobuf.Timestamp modified_after = 2; | ||
} | ||
|
||
message AccommodationProductListResponse { | ||
// Message header | ||
cmp.types.v1alpha1.Header header = 1; | ||
|
||
// Product list: Properties | ||
repeated Property properties = 2; | ||
} | ||
|
||
// ### Accommodation Product List Service | ||
// | ||
// ![Diagram](https://storage.googleapis.com/docs-cmp-files/diagrams/proto/cmp/types/v1alpha1/list.proto.dot.xs.svg) | ||
// [Open Message Diagram](https://storage.googleapis.com/docs-cmp-files/diagrams/proto/cmp/types/v1alpha1/list.proto.dot.svg) | ||
service AccommodationProductListService { | ||
// Returns product list for accommodation (properties) | ||
rpc AccommodationProductList(AccommodationProductListRequest) returns (AccommodationProductListResponse); | ||
} |
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
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,19 @@ | ||
syntax = "proto3"; | ||
|
||
package cmp.types.v1alpha1; | ||
|
||
import "cmp/types/v1alpha1/location.proto"; | ||
|
||
// Address | ||
// | ||
// This type represents an address for a home or hotel etc. | ||
// | ||
// ![Diagram](https://storage.googleapis.com/docs-cmp-files/diagrams/proto/cmp/types/v1alpha1/address.proto.dot.xs.svg) | ||
// [Open Message Diagram](https://storage.googleapis.com/docs-cmp-files/diagrams/proto/cmp/types/v1alpha1/address.proto.dot.svg) | ||
message Address { | ||
string line_1 = 1; | ||
string line_2 = 2; | ||
string district = 3; | ||
int32 zip_code = 5; | ||
GeoTree geo_tree = 6; | ||
} |
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,38 @@ | ||
syntax = "proto3"; | ||
|
||
package cmp.types.v1alpha1; | ||
|
||
// | ||
// Email type for hotels, holiday homes etc | ||
// | ||
// ![Diagram](https://storage.googleapis.com/docs-cmp-files/diagrams/proto/cmp/types/v1alpha1/email.proto.dot.xs.svg) | ||
// [Open Message Diagram](https://storage.googleapis.com/docs-cmp-files/diagrams/proto/cmp/types/v1alpha1/email.proto.dot.svg) | ||
message Email { | ||
string email = 1; | ||
EmailType email_type = 2; | ||
string email_type_other = 3; | ||
} | ||
|
||
// Email Types | ||
// | ||
// FIXME: Check email types | ||
enum EmailType { | ||
EMAIL_TYPE_UNSPECIFIED = 0; | ||
EMAIL_TYPE_OTHER = 1; // For emails that don't fit into other categories. | ||
EMAIL_TYPE_RECEPTION = 2; // For accommodation properties like hotels. | ||
EMAIL_TYPE_BOOKING = 3; // For booking confirmations. | ||
EMAIL_TYPE_SUPPORT = 4; // General customer support. | ||
EMAIL_TYPE_INQUIRY_RESPONSE = 5; // Responses to customer inquiries. | ||
EMAIL_TYPE_TRANSPORT_INFO = 6; // Information regarding transport services. | ||
EMAIL_TYPE_RENTAL_CONFIRMATION = 7; // Confirmation for car rentals. | ||
EMAIL_TYPE_ACTIVITY_DETAILS = 8; // Details about booked activities or events. | ||
EMAIL_TYPE_FEEDBACK_REQUEST = 9; // Requests for customer feedback. | ||
EMAIL_TYPE_BILLING = 10; // Billing and payment related emails. | ||
EMAIL_TYPE_CANCELLATION = 11; // Cancellation notices. | ||
EMAIL_TYPE_REMINDER = 12; // Reminders for reservations or activities. | ||
EMAIL_TYPE_PROMOTIONAL = 13; // Promotional emails, offers, discounts. | ||
EMAIL_TYPE_UPDATES = 14; // Updates about services or policy changes. | ||
EMAIL_TYPE_ALERTS = 15; // Alerts or important notices. | ||
EMAIL_TYPE_NEWSLETTER = 16; // Regular newsletters. | ||
} |
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,35 @@ | ||
syntax = "proto3"; | ||
|
||
package cmp.types.v1alpha1; | ||
|
||
// Phone | ||
// | ||
// Phone type for hotels, holiday homes etc | ||
// | ||
// ![Diagram](https://storage.googleapis.com/docs-cmp-files/diagrams/proto/cmp/types/v1alpha1/phone.proto.dot.xs.svg) | ||
// [Open Message Diagram](https://storage.googleapis.com/docs-cmp-files/diagrams/proto/cmp/types/v1alpha1/phone.proto.dot.svg) | ||
message Phone { | ||
string phone = 1; | ||
PhoneType phone_type = 2; | ||
string phone_type_other = 3; | ||
} | ||
|
||
enum PhoneType { | ||
PHONE_TYPE_UNSPECIFIED = 0; | ||
PHONE_TYPE_OTHER = 1; // For phone numbers that don't fit into other categories. | ||
PHONE_TYPE_RECEPTION = 2; // For accommodation properties like hotels. | ||
PHONE_TYPE_BOOKING = 3; // Booking-related inquiries. | ||
PHONE_TYPE_SUPPORT = 4; // Customer support and service. | ||
PHONE_TYPE_INQUIRIES = 5; // General inquiries. | ||
PHONE_TYPE_TRANSPORT_SERVICE = 6; // Transport services, like taxi or shuttle services. | ||
PHONE_TYPE_RENTAL_SERVICE = 7; // Car rental service numbers. | ||
PHONE_TYPE_ACTIVITY_COORDINATOR = 8; // Coordinators for activities or events. | ||
PHONE_TYPE_BILLING = 9; // Billing and payment inquiries. | ||
PHONE_TYPE_EMERGENCY = 10; // Emergency contact numbers. | ||
PHONE_TYPE_FAX = 11; // Fax numbers. | ||
PHONE_TYPE_MOBILE = 12; // Mobile phone numbers. | ||
PHONE_TYPE_HOME = 13; // Home phone numbers. | ||
PHONE_TYPE_BUSINESS = 14; // Business or office phone numbers. | ||
PHONE_TYPE_TOLL_FREE = 15; // Toll-free numbers. | ||
PHONE_TYPE_HOTLINE = 16; // Hotlines, for specialized support or services. | ||
} |