Skip to content

Commit

Permalink
move changes in email.proto to v2alpha
Browse files Browse the repository at this point in the history
  • Loading branch information
SamJaarsma committed Sep 18, 2024
1 parent d724c11 commit 6c4b86c
Show file tree
Hide file tree
Showing 2 changed files with 48 additions and 10 deletions.
23 changes: 13 additions & 10 deletions proto/cmp/types/v1/email.proto
Original file line number Diff line number Diff line change
Expand Up @@ -15,21 +15,24 @@ message Email {
}

// 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 services that require a reception like hotels, hostels, car rental.
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_CONFIRMATION = 7; // Confirmation email for on-request bookings.
EMAIL_TYPE_FEEDBACK_REQUEST = 8; // Requests for customer feedback.
EMAIL_TYPE_BILLING = 9; // Billing and payment related emails.
EMAIL_TYPE_CANCELLATION = 10; // Cancellation notices.
EMAIL_TYPE_REMINDER = 11; // Reminders for reservations or activities.
EMAIL_TYPE_PROMOTIONAL = 12; // Promotional emails, offers, discounts.
EMAIL_TYPE_UPDATES = 13; // Updates about services or policy changes.
EMAIL_TYPE_ALERTS = 14; // Alerts or important notices.
EMAIL_TYPE_NEWSLETTER = 15; // Regular newsletters.
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.
}
35 changes: 35 additions & 0 deletions proto/cmp/types/v2alpha/email.proto
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
syntax = "proto3";

package cmp.types.v2alpha;

// Email type for general use.
//
// ![Diagram](https://storage.googleapis.com/docs-cmp-files/diagrams/proto/cmp/types/v1/email.proto.dot.xs.svg)
// [Open Message Diagram](https://storage.googleapis.com/docs-cmp-files/diagrams/proto/cmp/types/v1/email.proto.dot.svg)
message Email {
string address = 1;

EmailType type = 2;

string description = 3;
}

// 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 services that require a reception like hotels, hostels, car rental.
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_CONFIRMATION = 7; // Confirmation email for on-request bookings.
EMAIL_TYPE_FEEDBACK_REQUEST = 8; // Requests for customer feedback.
EMAIL_TYPE_BILLING = 9; // Billing and payment related emails.
EMAIL_TYPE_CANCELLATION = 10; // Cancellation notices.
EMAIL_TYPE_REMINDER = 11; // Reminders for reservations or activities.
EMAIL_TYPE_PROMOTIONAL = 12; // Promotional emails, offers, discounts.
EMAIL_TYPE_UPDATES = 13; // Updates about services or policy changes.
EMAIL_TYPE_ALERTS = 14; // Alerts or important notices.
EMAIL_TYPE_NEWSLETTER = 15; // Regular newsletters.
}

0 comments on commit 6c4b86c

Please sign in to comment.