syntax = "proto3";

option go_package = "github.com/tech/sendico/pkg/generated/gmessaging";

message SiteRequestEvent {
    enum RequestType {
        REQUEST_TYPE_UNSPECIFIED = 0;
        REQUEST_TYPE_DEMO = 1;
        REQUEST_TYPE_CONTACT = 2;
        REQUEST_TYPE_CALL = 3;
    }

    RequestType type = 1;

    oneof payload {
        SiteDemoRequest demo = 2;
        SiteContactRequest contact = 3;
        SiteCallRequest call = 4;
    }
}

message SiteDemoRequest {
    string name = 1;
    string organization_name = 2;
    string phone = 3;
    string work_email = 4;
    string payout_volume = 5;
    string comment = 6;
}

message SiteContactRequest {
    string name = 1;
    string email = 2;
    string phone = 3;
    string company = 4;
    string topic = 5;
    string message = 6;
}

message SiteCallRequest {
    string name = 1;
    string phone = 2;
    string email = 3;
    string company = 4;
    string preferred_time = 5;
    string message = 6;
}
