<?xml version="1.0" encoding="utf-8"?>
<edmx:Edmx Version="4.0" xmlns:edmx="http://docs.oasis-open.org/odata/ns/edmx">
  <edmx:Reference Uri="https://sap.github.io/odata-vocabularies/vocabularies/Common.xml">
    <edmx:Include Alias="Common" Namespace="com.sap.vocabularies.Common.v1"/>
  </edmx:Reference>
  <edmx:Reference Uri="https://oasis-tcs.github.io/odata-vocabularies/vocabularies/Org.OData.Core.V1.xml">
    <edmx:Include Alias="Core" Namespace="Org.OData.Core.V1"/>
  </edmx:Reference>
  <edmx:DataServices>
    <Schema Namespace="EmailService" xmlns="http://docs.oasis-open.org/odata/ns/edm">
      <Annotation Term="Core.Links">
        <Collection>
          <Record>
            <PropertyValue Property="rel" String="author"/>
            <PropertyValue Property="href" String="https://cap.cloud.sap"/>
          </Record>
        </Collection>
      </Annotation>
      <EntityContainer Name="EntityContainer">
        <EntitySet Name="ContactInquiries" EntityType="EmailService.ContactInquiries"/>
        <ActionImport Name="sendContactInquiry" Action="EmailService.sendContactInquiry"/>
        <FunctionImport Name="getAllInquiries" Function="EmailService.getAllInquiries"/>
        <ActionImport Name="deleteInquiry" Action="EmailService.deleteInquiry"/>
      </EntityContainer>
      <EntityType Name="ContactInquiries">
        <Key>
          <PropertyRef Name="ID"/>
        </Key>
        <Property Name="ID" Type="Edm.Guid" Nullable="false"/>
        <Property Name="title" Type="Edm.String" MaxLength="10"/>
        <Property Name="firstName" Type="Edm.String" MaxLength="100"/>
        <Property Name="lastName" Type="Edm.String" MaxLength="100"/>
        <Property Name="company" Type="Edm.String" MaxLength="200"/>
        <Property Name="email" Type="Edm.String" MaxLength="200"/>
        <Property Name="phone" Type="Edm.String" MaxLength="50"/>
        <Property Name="interestedProducts" Type="Edm.String"/>
        <Property Name="message" Type="Edm.String"/>
        <Property Name="status" Type="Edm.String" MaxLength="20"/>
        <Property Name="sentAt" Type="Edm.DateTimeOffset" Precision="7"/>
        <Property Name="createdAt" Type="Edm.DateTimeOffset" Precision="7"/>
        <Property Name="countryCode" Type="Edm.String" MaxLength="10"/>
      </EntityType>
      <ComplexType Name="return_EmailService_sendContactInquiry">
        <Property Name="success" Type="Edm.Boolean"/>
        <Property Name="message" Type="Edm.String"/>
        <Property Name="inquiryId" Type="Edm.Guid"/>
      </ComplexType>
      <ComplexType Name="return_EmailService_getAllInquiries">
        <Property Name="inquiries" Type="Collection(EmailService.return_EmailService_getAllInquiries_inquiries)" Nullable="true"/>
        <Property Name="count" Type="Edm.Int32"/>
      </ComplexType>
      <ComplexType Name="return_EmailService_getAllInquiries_inquiries">
        <Property Name="ID" Type="Edm.Guid"/>
        <Property Name="title" Type="Edm.String"/>
        <Property Name="firstName" Type="Edm.String"/>
        <Property Name="lastName" Type="Edm.String"/>
        <Property Name="company" Type="Edm.String"/>
        <Property Name="email" Type="Edm.String"/>
        <Property Name="countryCode" Type="Edm.String"/>
        <Property Name="phone" Type="Edm.String"/>
        <Property Name="interestedProducts" Type="Edm.String"/>
        <Property Name="message" Type="Edm.String"/>
        <Property Name="status" Type="Edm.String"/>
        <Property Name="sentAt" Type="Edm.DateTimeOffset" Precision="7"/>
        <Property Name="createdAt" Type="Edm.DateTimeOffset" Precision="7"/>
      </ComplexType>
      <ComplexType Name="return_EmailService_deleteInquiry">
        <Property Name="success" Type="Edm.Boolean"/>
        <Property Name="message" Type="Edm.String"/>
        <Property Name="deletedInquiryId" Type="Edm.Guid"/>
      </ComplexType>
      <Action Name="sendContactInquiry" IsBound="false">
        <Parameter Name="title" Type="Edm.String"/>
        <Parameter Name="firstName" Type="Edm.String"/>
        <Parameter Name="lastName" Type="Edm.String"/>
        <Parameter Name="company" Type="Edm.String"/>
        <Parameter Name="email" Type="Edm.String"/>
        <Parameter Name="countryCode" Type="Edm.String"/>
        <Parameter Name="phone" Type="Edm.String"/>
        <Parameter Name="interestedProducts" Type="Edm.String"/>
        <Parameter Name="message" Type="Edm.String"/>
        <ReturnType Type="EmailService.return_EmailService_sendContactInquiry"/>
      </Action>
      <Function Name="getAllInquiries" IsBound="false" IsComposable="false">
        <ReturnType Type="EmailService.return_EmailService_getAllInquiries"/>
      </Function>
      <Action Name="deleteInquiry" IsBound="false">
        <Parameter Name="inquiryId" Type="Edm.Guid"/>
        <ReturnType Type="EmailService.return_EmailService_deleteInquiry"/>
      </Action>
      <Annotations Target="EmailService.ContactInquiries/ID">
        <Annotation Term="Core.ComputedDefaultValue" Bool="true"/>
      </Annotations>
    </Schema>
  </edmx:DataServices>
</edmx:Edmx>