syntax = "proto2";

package maps_adv.geosmb.telegraphist.proto.notifications_v1;

import "google/protobuf/timestamp.proto";

message EmailNotification {
    required string recipient = 1; // email-like string

    oneof notification_details {
        PurchasedCertificateNotificationDetails purchased_certificate_details = 11;
    }
}

message PurchasedCertificateNotificationDetails {
    required string org_name = 1;
    required string certificate_code = 2;
    required google.protobuf.Timestamp active_from = 3;
    required google.protobuf.Timestamp active_to = 4;
    required string link_to_org = 5;
}
