<?xml version="1.0"?>
<xs:schema xmlns:ser="http://schemas.microsoft.com/2003/10/Serialization/" xmlns:tns="http://schemas.datacontract.org/2004/07/Eros.Saguna.Common.Library" elementFormDefault="qualified" targetNamespace="http://schemas.datacontract.org/2004/07/Eros.Saguna.Common.Library" xmlns:xs="http://www.w3.org/2001/XMLSchema">
  <xs:import namespace="http://schemas.microsoft.com/2003/10/Serialization/" />
  <xs:import namespace="http://schemas.datacontract.org/2004/07/Eros.Saguna.Common.Library.Queuing" />
  <xs:complexType name="GatewayTask">
    <xs:complexContent mixed="false">
      <xs:extension xmlns:q1="http://schemas.datacontract.org/2004/07/Eros.Saguna.Common.Library.Queuing" base="q1:BaseQueueMessage">
        <xs:sequence>
          <xs:element minOccurs="0" name="ContentStoredExternally" type="xs:boolean" />
          <xs:element minOccurs="0" name="IsBeingProcessed" type="xs:boolean" />
          <xs:element minOccurs="0" name="JobTypeId" type="ser:guid" />
          <xs:element minOccurs="0" name="Payload" nillable="true" type="xs:string" />
          <xs:element minOccurs="0" name="ReferenceId" type="ser:guid" />
          <xs:element minOccurs="0" name="ResendRequest" type="xs:boolean" />
        </xs:sequence>
      </xs:extension>
    </xs:complexContent>
  </xs:complexType>
  <xs:element name="GatewayTask" nillable="true" type="tns:GatewayTask" />
  <xs:complexType name="GatewayTaskResponse">
    <xs:sequence>
      <xs:element minOccurs="0" name="GatewayTaskResponseStatus" type="tns:GatewayResponseStatus" />
      <xs:element minOccurs="0" name="Payload" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="ReferenceId" type="ser:guid" />
    </xs:sequence>
  </xs:complexType>
  <xs:element name="GatewayTaskResponse" nillable="true" type="tns:GatewayTaskResponse" />
  <xs:simpleType name="GatewayResponseStatus">
    <xs:restriction base="xs:string">
      <xs:enumeration value="Initiated" />
      <xs:enumeration value="Successful" />
      <xs:enumeration value="JobError" />
    </xs:restriction>
  </xs:simpleType>
  <xs:element name="GatewayResponseStatus" nillable="true" type="tns:GatewayResponseStatus" />
</xs:schema>