<?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://oasis-tcs.github.io/odata-vocabularies/vocabularies/Org.OData.Capabilities.V1.xml">
    <edmx:Include Alias="Capabilities" Namespace="Org.OData.Capabilities.V1"/>
  </edmx:Reference>
  <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:Reference Uri="https://sap.github.io/odata-vocabularies/vocabularies/UI.xml">
    <edmx:Include Alias="UI" Namespace="com.sap.vocabularies.UI.v1"/>
  </edmx:Reference>
  <edmx:DataServices>
    <Schema Namespace="NewIqamaIssuanceService" 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="Cases" EntityType="NewIqamaIssuanceService.Cases"/>
        <EntitySet Name="Activities" EntityType="NewIqamaIssuanceService.Activities">
          <NavigationPropertyBinding Path="newIqamaIssuanceCase" Target="Cases"/>
        </EntitySet>
        <EntitySet Name="Queue" EntityType="NewIqamaIssuanceService.Queue"/>
        <ActionImport Name="submitStep" Action="NewIqamaIssuanceService.submitStep"/>
      </EntityContainer>
      <EntityType Name="Cases">
        <Key>
          <PropertyRef Name="ID"/>
        </Key>
        <Property Name="ID" Type="Edm.Guid" Nullable="false"/>
        <Property Name="createdAt" Type="Edm.DateTimeOffset" Precision="7"/>
        <Property Name="createdBy" Type="Edm.String" MaxLength="255"/>
        <Property Name="modifiedAt" Type="Edm.DateTimeOffset" Precision="7"/>
        <Property Name="modifiedBy" Type="Edm.String" MaxLength="255"/>
        <Property Name="caseNo" Type="Edm.String" MaxLength="50"/>
        <Property Name="applicationId" Type="Edm.String" MaxLength="50"/>
        <Property Name="employeeId" Type="Edm.String" MaxLength="50"/>
        <Property Name="employeeName" Type="Edm.String" MaxLength="255"/>
        <Property Name="email" Type="Edm.String" MaxLength="200"/>
        <Property Name="mobile" Type="Edm.String" MaxLength="50"/>
        <Property Name="nationality" Type="Edm.String" MaxLength="100"/>
        <Property Name="companyCode" Type="Edm.String" MaxLength="50"/>
        <Property Name="graded" Type="Edm.String" MaxLength="50"/>
        <Property Name="departmentClient" Type="Edm.String" MaxLength="255"/>
        <Property Name="candidateType" Type="Edm.String" MaxLength="100"/>
        <Property Name="professionName" Type="Edm.String" MaxLength="255"/>
        <Property Name="professionCode" Type="Edm.String" MaxLength="100"/>
        <Property Name="currentStage" Type="Edm.String" MaxLength="150"/>
        <Property Name="currentOwner" Type="Edm.String" MaxLength="150"/>
        <Property Name="status" Type="Edm.String" MaxLength="50"/>
        <Property Name="currentStep" Type="Edm.Int32"/>
        <Property Name="createdOn" Type="Edm.Date"/>
        <Property Name="borderEntryNumber" Type="Edm.String" MaxLength="100"/>
        <Property Name="borderEntryDate" Type="Edm.Date"/>
        <Property Name="portOfEntry" Type="Edm.String" MaxLength="150"/>
        <Property Name="medicalExamDate" Type="Edm.Date"/>
        <Property Name="medicalResult" Type="Edm.String" MaxLength="30"/>
        <Property Name="legalProfessionValid" Type="Edm.Boolean"/>
        <Property Name="sceRegistrationRequired" Type="Edm.Boolean"/>
        <Property Name="sceRegistrationCompleted" Type="Edm.Boolean"/>
        <Property Name="sceRegistrationNumber" Type="Edm.String" MaxLength="100"/>
        <Property Name="sceIssueDate" Type="Edm.Date"/>
        <Property Name="sceExpiryDate" Type="Edm.Date"/>
        <Property Name="secondSadadCompleted" Type="Edm.Boolean"/>
        <Property Name="sadadPaymentCompleted" Type="Edm.Boolean"/>
        <Property Name="medicalInsuranceCompleted" Type="Edm.Boolean"/>
        <Property Name="medicalInsuranceClass" Type="Edm.String" MaxLength="100"/>
        <Property Name="workPermitSadadNumber" Type="Edm.String" MaxLength="100"/>
        <Property Name="workPermitPaymentAmount" Type="Edm.Decimal" Precision="15" Scale="2"/>
        <Property Name="workPermitComments" Type="Edm.String"/>
        <Property Name="iqamaSadadNumber" Type="Edm.String" MaxLength="100"/>
        <Property Name="iqamaPaymentAmount" Type="Edm.Decimal" Precision="15" Scale="2"/>
        <Property Name="iqamaSadadComments" Type="Edm.String"/>
        <Property Name="totalAmount" Type="Edm.Decimal" Precision="15" Scale="2"/>
        <Property Name="paymentReferenceNumber" Type="Edm.String" MaxLength="100"/>
        <Property Name="paymentStatus" Type="Edm.String" MaxLength="30"/>
        <Property Name="transactionDate" Type="Edm.Date"/>
        <Property Name="paymentComments" Type="Edm.String"/>
        <Property Name="driverCardNumber" Type="Edm.String" MaxLength="100"/>
        <Property Name="driverCardIssueDate" Type="Edm.Date"/>
        <Property Name="driverCardExpiryDate" Type="Edm.Date"/>
        <Property Name="logistiComments" Type="Edm.String"/>
        <Property Name="iqamaNumber" Type="Edm.String" MaxLength="10"/>
        <Property Name="iqamaIssueDate" Type="Edm.Date"/>
        <Property Name="iqamaExpiryDate" Type="Edm.Date"/>
        <Property Name="placeOfIssue" Type="Edm.String" MaxLength="150"/>
        <Property Name="contractEndDate" Type="Edm.Date"/>
        <Property Name="iqamaCopyFile" Type="Edm.String" MaxLength="500"/>
        <Property Name="issueIqamaComments" Type="Edm.String"/>
        <Property Name="hrVerificationStatus" Type="Edm.String" MaxLength="30"/>
        <Property Name="hrComments" Type="Edm.String"/>
      </EntityType>
      <EntityType Name="Activities">
        <Key>
          <PropertyRef Name="ID"/>
        </Key>
        <Property Name="ID" Type="Edm.Guid" Nullable="false"/>
        <Property Name="createdAt" Type="Edm.DateTimeOffset" Precision="7"/>
        <Property Name="createdBy" Type="Edm.String" MaxLength="255"/>
        <Property Name="modifiedAt" Type="Edm.DateTimeOffset" Precision="7"/>
        <Property Name="modifiedBy" Type="Edm.String" MaxLength="255"/>
        <NavigationProperty Name="newIqamaIssuanceCase" Type="NewIqamaIssuanceService.Cases">
          <ReferentialConstraint Property="newIqamaIssuanceCase_ID" ReferencedProperty="ID"/>
        </NavigationProperty>
        <Property Name="newIqamaIssuanceCase_ID" Type="Edm.Guid"/>
        <Property Name="description" Type="Edm.String" MaxLength="255"/>
        <Property Name="performedBy" Type="Edm.String" MaxLength="100"/>
        <Property Name="performedAt" Type="Edm.DateTimeOffset" Precision="7"/>
      </EntityType>
      <EntityType Name="Queue">
        <Key>
          <PropertyRef Name="ID"/>
        </Key>
        <Property Name="ID" Type="Edm.Guid" Nullable="false"/>
        <Property Name="caseNo" Type="Edm.String" MaxLength="50"/>
        <Property Name="employeeId" Type="Edm.String" MaxLength="50"/>
        <Property Name="employeeName" Type="Edm.String" MaxLength="255"/>
        <Property Name="email" Type="Edm.String" MaxLength="200"/>
        <Property Name="nationality" Type="Edm.String" MaxLength="100"/>
        <Property Name="companyCode" Type="Edm.String" MaxLength="50"/>
        <Property Name="departmentClient" Type="Edm.String" MaxLength="255"/>
        <Property Name="candidateType" Type="Edm.String" MaxLength="100"/>
        <Property Name="professionName" Type="Edm.String" MaxLength="255"/>
        <Property Name="professionCode" Type="Edm.String" MaxLength="100"/>
        <Property Name="iqamaNumber" Type="Edm.String" MaxLength="10"/>
        <Property Name="iqamaExpiryDate" Type="Edm.Date"/>
        <Property Name="borderEntryNumber" Type="Edm.String" MaxLength="100"/>
        <Property Name="borderEntryDate" Type="Edm.Date"/>
        <Property Name="medicalResult" Type="Edm.String" MaxLength="30"/>
        <Property Name="currentStage" Type="Edm.String" MaxLength="150"/>
        <Property Name="currentOwner" Type="Edm.String" MaxLength="150"/>
        <Property Name="currentStep" Type="Edm.Int32"/>
        <Property Name="status" Type="Edm.String" MaxLength="50"/>
        <Property Name="createdOn" Type="Edm.Date"/>
      </EntityType>
      <ComplexType Name="NewIqamaIssuanceResult">
        <Property Name="success" Type="Edm.Boolean"/>
        <Property Name="caseId" Type="Edm.Guid"/>
        <Property Name="message" Type="Edm.String"/>
        <Property Name="nextStep" Type="Edm.Int32"/>
      </ComplexType>
      <Action Name="submitStep" IsBound="false">
        <Parameter Name="caseId" Type="Edm.Guid"/>
        <Parameter Name="step" Type="Edm.Int32"/>
        <Parameter Name="outcome" Type="Edm.String"/>
        <Parameter Name="payload" Type="Edm.String"/>
        <Parameter Name="performedBy" Type="Edm.String"/>
        <ReturnType Type="NewIqamaIssuanceService.NewIqamaIssuanceResult"/>
      </Action>
      <Annotations Target="NewIqamaIssuanceService.Cases/ID">
        <Annotation Term="Core.ComputedDefaultValue" Bool="true"/>
      </Annotations>
      <Annotations Target="NewIqamaIssuanceService.Cases/createdAt">
        <Annotation Term="UI.HiddenFilter" Bool="true"/>
        <Annotation Term="UI.ExcludeFromNavigationContext" Bool="true"/>
        <Annotation Term="Core.Immutable" Bool="true"/>
        <Annotation Term="Core.Computed" Bool="true"/>
        <Annotation Term="Common.Label" String="Created On"/>
      </Annotations>
      <Annotations Target="NewIqamaIssuanceService.Cases/createdBy">
        <Annotation Term="UI.HiddenFilter" Bool="true"/>
        <Annotation Term="UI.ExcludeFromNavigationContext" Bool="true"/>
        <Annotation Term="Core.Immutable" Bool="true"/>
        <Annotation Term="Core.Computed" Bool="true"/>
        <Annotation Term="Core.Description" String="User's unique ID"/>
        <Annotation Term="Common.Label" String="Created By"/>
      </Annotations>
      <Annotations Target="NewIqamaIssuanceService.Cases/modifiedAt">
        <Annotation Term="UI.HiddenFilter" Bool="true"/>
        <Annotation Term="UI.ExcludeFromNavigationContext" Bool="true"/>
        <Annotation Term="Core.Computed" Bool="true"/>
        <Annotation Term="Common.Label" String="Changed On"/>
      </Annotations>
      <Annotations Target="NewIqamaIssuanceService.Cases/modifiedBy">
        <Annotation Term="UI.HiddenFilter" Bool="true"/>
        <Annotation Term="UI.ExcludeFromNavigationContext" Bool="true"/>
        <Annotation Term="Core.Computed" Bool="true"/>
        <Annotation Term="Core.Description" String="User's unique ID"/>
        <Annotation Term="Common.Label" String="Changed By"/>
      </Annotations>
      <Annotations Target="NewIqamaIssuanceService.Activities/ID">
        <Annotation Term="Core.ComputedDefaultValue" Bool="true"/>
      </Annotations>
      <Annotations Target="NewIqamaIssuanceService.Activities/createdAt">
        <Annotation Term="UI.HiddenFilter" Bool="true"/>
        <Annotation Term="UI.ExcludeFromNavigationContext" Bool="true"/>
        <Annotation Term="Core.Immutable" Bool="true"/>
        <Annotation Term="Core.Computed" Bool="true"/>
        <Annotation Term="Common.Label" String="Created On"/>
      </Annotations>
      <Annotations Target="NewIqamaIssuanceService.Activities/createdBy">
        <Annotation Term="UI.HiddenFilter" Bool="true"/>
        <Annotation Term="UI.ExcludeFromNavigationContext" Bool="true"/>
        <Annotation Term="Core.Immutable" Bool="true"/>
        <Annotation Term="Core.Computed" Bool="true"/>
        <Annotation Term="Core.Description" String="User's unique ID"/>
        <Annotation Term="Common.Label" String="Created By"/>
      </Annotations>
      <Annotations Target="NewIqamaIssuanceService.Activities/modifiedAt">
        <Annotation Term="UI.HiddenFilter" Bool="true"/>
        <Annotation Term="UI.ExcludeFromNavigationContext" Bool="true"/>
        <Annotation Term="Core.Computed" Bool="true"/>
        <Annotation Term="Common.Label" String="Changed On"/>
      </Annotations>
      <Annotations Target="NewIqamaIssuanceService.Activities/modifiedBy">
        <Annotation Term="UI.HiddenFilter" Bool="true"/>
        <Annotation Term="UI.ExcludeFromNavigationContext" Bool="true"/>
        <Annotation Term="Core.Computed" Bool="true"/>
        <Annotation Term="Core.Description" String="User's unique ID"/>
        <Annotation Term="Common.Label" String="Changed By"/>
      </Annotations>
      <Annotations Target="NewIqamaIssuanceService.EntityContainer/Queue">
        <Annotation Term="Capabilities.DeleteRestrictions">
          <Record Type="Capabilities.DeleteRestrictionsType">
            <PropertyValue Property="Deletable" Bool="false"/>
          </Record>
        </Annotation>
        <Annotation Term="Capabilities.InsertRestrictions">
          <Record Type="Capabilities.InsertRestrictionsType">
            <PropertyValue Property="Insertable" Bool="false"/>
          </Record>
        </Annotation>
        <Annotation Term="Capabilities.UpdateRestrictions">
          <Record Type="Capabilities.UpdateRestrictionsType">
            <PropertyValue Property="Updatable" Bool="false"/>
          </Record>
        </Annotation>
      </Annotations>
      <Annotations Target="NewIqamaIssuanceService.Queue/ID">
        <Annotation Term="Core.ComputedDefaultValue" Bool="true"/>
      </Annotations>
    </Schema>
  </edmx:DataServices>
</edmx:Edmx>