<?xml version="1.0" encoding="UTF-8"?>
<definitions name="ComunideskSoap_Pago"
  targetNamespace="https://gateway.comunidesk.com/soap"
  xmlns="http://schemas.xmlsoap.org/wsdl/"
  xmlns:tns="https://gateway.comunidesk.com/soap"
  xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
  xmlns:xsd="http://www.w3.org/2001/XMLSchema">

  <types>
    <xsd:schema targetNamespace="https://gateway.comunidesk.com/soap" elementFormDefault="qualified">
      <xsd:complexType name="Pago"><xsd:sequence><xsd:element name="_id" type="xsd:string" minOccurs="0"/><xsd:element name="type" type="xsd:string" minOccurs="0"/><xsd:element name="gastoId" type="xsd:string" minOccurs="1"/><xsd:element name="departamentoId" type="xsd:string" minOccurs="1"/><xsd:element name="edificioId" type="xsd:string" minOccurs="1"/><xsd:element name="periodo" type="xsd:string" minOccurs="1"/><xsd:element name="monto" type="xsd:double" minOccurs="1"/><xsd:element name="metodoPago" type="xsd:string" minOccurs="1"/><xsd:element name="fechaPago" type="xsd:string" minOccurs="1"/><xsd:element name="comprobante" type="xsd:string" minOccurs="0"/><xsd:element name="observaciones" type="xsd:string" minOccurs="0"/></xsd:sequence></xsd:complexType>
    </xsd:schema>
  </types>

  
  <message name="ListPagoRequest"><part name="edificioId" type="xsd:string"/></message>
  <message name="ListPagoResponse"><part name="items" type="xsd:string"/></message>
  <message name="GetPagoRequest"><part name="id" type="xsd:string"/><part name="edificioId" type="xsd:string"/></message>
  <message name="GetPagoResponse"><part name="item" type="tns:Pago"/></message>
  <message name="CreatePagoRequest"><part name="body" type="tns:Pago"/></message>
  <message name="CreatePagoResponse"><part name="item" type="tns:Pago"/></message>
  <message name="UpdatePagoRequest"><part name="id" type="xsd:string"/><part name="body" type="tns:Pago"/></message>
  <message name="UpdatePagoResponse"><part name="item" type="tns:Pago"/></message>
  <message name="DeletePagoRequest"><part name="id" type="xsd:string"/><part name="edificioId" type="xsd:string"/></message>
  <message name="DeletePagoResponse"><part name="ok" type="xsd:boolean"/></message>

  <portType name="ComunideskSoap_PagoPortType">
    
    <operation name="ListPago">
      <documentation>Pagos (gasto común) — List</documentation>
      <input message="tns:ListPagoRequest"/>
      <output message="tns:ListPagoResponse"/>
    </operation>
    <operation name="GetPago">
      <documentation>Pagos (gasto común) — Get</documentation>
      <input message="tns:GetPagoRequest"/>
      <output message="tns:GetPagoResponse"/>
    </operation>
    <operation name="CreatePago">
      <documentation>Pagos (gasto común) — Create</documentation>
      <input message="tns:CreatePagoRequest"/>
      <output message="tns:CreatePagoResponse"/>
    </operation>
    <operation name="UpdatePago">
      <documentation>Pagos (gasto común) — Update</documentation>
      <input message="tns:UpdatePagoRequest"/>
      <output message="tns:UpdatePagoResponse"/>
    </operation>
    <operation name="DeletePago">
      <documentation>Pagos (gasto común) — Delete</documentation>
      <input message="tns:DeletePagoRequest"/>
      <output message="tns:DeletePagoResponse"/>
    </operation>
  </portType>

  <binding name="ComunideskSoap_PagoBinding" type="tns:ComunideskSoap_PagoPortType">
    <soap:binding transport="http://schemas.xmlsoap.org/soap/http" style="document"/>
    
    <operation name="ListPago">
      <soap:operation soapAction="https://gateway.comunidesk.com/soap/ListPago"/>
      <input><soap:body use="literal"/></input>
      <output><soap:body use="literal"/></output>
    </operation>
    <operation name="GetPago">
      <soap:operation soapAction="https://gateway.comunidesk.com/soap/GetPago"/>
      <input><soap:body use="literal"/></input>
      <output><soap:body use="literal"/></output>
    </operation>
    <operation name="CreatePago">
      <soap:operation soapAction="https://gateway.comunidesk.com/soap/CreatePago"/>
      <input><soap:body use="literal"/></input>
      <output><soap:body use="literal"/></output>
    </operation>
    <operation name="UpdatePago">
      <soap:operation soapAction="https://gateway.comunidesk.com/soap/UpdatePago"/>
      <input><soap:body use="literal"/></input>
      <output><soap:body use="literal"/></output>
    </operation>
    <operation name="DeletePago">
      <soap:operation soapAction="https://gateway.comunidesk.com/soap/DeletePago"/>
      <input><soap:body use="literal"/></input>
      <output><soap:body use="literal"/></output>
    </operation>
  </binding>

  <service name="ComunideskSoap_PagoService">
    <documentation>Pagos de gasto común por departamento.</documentation>
    <port name="ComunideskSoap_PagoPort" binding="tns:ComunideskSoap_PagoBinding">
      <soap:address location="https://gateway.comunidesk.com/v1/soap"/>
    </port>
  </service>
</definitions>
