<?xml version="1.0" encoding="utf-8"?>
<wsdl:definitions
    xmlns:tm="http://microsoft.com/wsdl/mime/textMatching/"
    xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"
    xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/"
    xmlns:tns="omnivore"
    xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
    xmlns:s="http://www.w3.org/2001/XMLSchema"
    xmlns:http="http://schemas.xmlsoap.org/wsdl/http/"
    xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
    targetNamespace="omnivore"
>
    <wsdl:types>
        <s:schema elementFormDefault="qualified" targetNamespace="omnivore">
            <s:element name="order-detail-request-Body">
                <s:complexType>
                    <s:sequence>
                        <s:element name="order-detail-request">
                            <s:complexType>
                                <s:sequence>
                                    <s:element name="trans-services-header">
                                        <s:complexType>
                                            <s:sequence>
                                                <s:element name="client-id" type="s:string"/>
                                                <s:element name="authentication-code" type="s:string"/>
                                                <s:element name="session-id" type="s:string"/>
                                            </s:sequence>
                                        </s:complexType>
                                    </s:element>
                                    <s:element name="employee-id" type="s:string" minOccurs="0" />
                                    <s:element name="order-number" type="s:string"/>
                                    <s:element name="profitcenter-id" type="s:string" minOccurs="0" />
                                </s:sequence>
                            </s:complexType>
                        </s:element>
                    </s:sequence>
                </s:complexType>
            </s:element>
            <s:element name="order-detail-response-Body">
                <s:complexType>
                    <s:sequence>
                        <s:element name="order-detail-response">
                            <s:complexType>
                                <s:sequence>
                                    <s:element name="trans-services-header">
                                        <s:complexType>
                                            <s:sequence>
                                                <s:element name="client-id" type="s:string"/>
                                                <s:element name="authentication-code" type="s:string"/>
                                                <s:element name="session-id" type="s:string"/>
                                            </s:sequence>
                                        </s:complexType>
                                    </s:element>
                                    <s:element name="service-completion-status" type="s:string"/>
                                    <s:element name="service-error" minOccurs="0">
                                        <s:complexType>
                                            <s:sequence>
                                                <s:element name="service-error-id" type="s:string" />
                                                <s:element name="service-error-display-message" type="s:string" />
                                            </s:sequence>
                                        </s:complexType>
                                    </s:element>
                                    <s:element name="order-detail-data">
                                        <s:complexType>
                                            <s:sequence>
                                                <s:element name="summary-data">
                                                    <s:complexType>
                                                        <s:sequence>
                                                            <s:element name="order-number" type="s:string"/>
                                                            <s:element name="order-guid" type="s:string"/>
                                                            <s:element name="table" type="s:string"/>
                                                            <s:element name="check-label" type="s:string"/>
                                                            <s:element name="profit-center-id" type="s:string"/>
                                                            <s:element name="meal-period-id" type="s:string"/>
                                                            <s:element name="check-type-id" type="s:string"/>
                                                            <s:element name="employee-id" type="s:string"/>
                                                            <s:element name="open-time" type="s:string"/>
                                                            <s:element name="guest-count" type="s:string"/>
                                                            <s:element name="gross-sales-amount" type="s:string"/>
                                                            <s:element name="discount-amount" type="s:string"/>
                                                            <s:element name="service-amount" type="s:int"/>
                                                            <s:element name="gratuity-amount" type="s:int"/>
                                                            <s:element name="tax-amount" type="s:string"/>
                                                            <s:element name="round-amount" type="s:string"/>
                                                            <s:element name="tip-amount" type="s:string"/>
                                                            <s:element name="total-amount" type="s:string"/>
                                                            <s:element name="payment-amount" type="s:string"/>
                                                            <s:element name="balance-due-amount" type="s:string"/>
                                                        </s:sequence>
                                                    </s:complexType>
                                                </s:element>
                                                <s:element name="order-data">
                                                    <s:complexType>
                                                        <s:sequence>
                                                            <s:element name="item" maxOccurs="unbounded">
                                                                <s:attribute type="s:string" name="id"/>
                                                                <s:attribute type="s:string" name="qty"/>
                                                                <s:attribute type="s:string" name="amount"/>
                                                                <s:attribute type="s:string" name="seat"/>
                                                                <s:attribute type="s:string" name="course"/>
                                                                <s:attribute type="s:string" name="fired"/>
                                                                <s:attribute type="s:string" name="check-sequence" />
                                                                <s:complexType>
                                                                    <s:sequence>
                                                                        <s:element name="special-instruction" minOccurs="0" maxOccurs="unbounded">
                                                                            <s:attribute type="s:string" name="item-sequence" />
                                                                        </s:element>
                                                                        <s:element name="modifier" maxOccurs="unbounded">
                                                                            <s:attribute type="s:string" name="id"/>
                                                                            <s:attribute type="s:string" name="qty"/>
                                                                            <s:attribute type="s:string" name="amount"/>
                                                                            <s:attribute type="s:string" name="item-sequence" />
                                                                        </s:element>
                                                                    </s:sequence>
                                                                </s:complexType>
                                                            </s:element>
                                                            <s:element name="discount" minOccurs="0" maxOccurs="unbounded">
                                                                <s:attribute type="s:string" name="id" />
                                                                <s:attribute type="s:string" name="amount" />
                                                                <s:attribute type="s:string" name="check-sequence" />
                                                            </s:element>
                                                        </s:sequence>
                                                    </s:complexType>
                                                </s:element>
                                                <s:element name="payment-data">
                                                    <s:complexType>
                                                        <s:sequence>
                                                            <s:element name="payment" maxOccurs="unbounded">
                                                                <s:attribute type="s:string" name="id"/>
                                                                <s:attribute type="s:string" name="amount"/>
                                                                <s:attribute type="s:string" name="tip"/>
                                                                <s:attribute type="s:string" name="reference-key"/>
                                                                <s:attribute type="s:string" name="payment-guid"/>
                                                                <s:attribute type="s:string" name="check-sequence" />
                                                                <s:complexType>
                                                                    <s:sequence>
                                                                        <s:element type="s:string" name="extra-payment-data" maxOccurs="unbounded"/>
                                                                    </s:sequence>
                                                                </s:complexType>
                                                            </s:element>
                                                        </s:sequence>
                                                    </s:complexType>
                                                </s:element>
                                            </s:sequence>
                                        </s:complexType>
                                    </s:element>
                                </s:sequence>
                            </s:complexType>
                        </s:element>
                    </s:sequence>
                </s:complexType>
            </s:element>
        </s:schema>
    </wsdl:types>
    <wsdl:message name="TicketDetailSoapIn">
        <wsdl:part name="parameters" element="tns:order-detail-request-Body"/>
    </wsdl:message>
    <wsdl:message name="TicketDetailSoapOut">
        <wsdl:part name="parameters" element="tns:order-detail-response-Body"/>
    </wsdl:message>
    <wsdl:portType name="TicketDetailSoap">
        <wsdl:operation name="TicketDetail">
            <wsdl:documentation xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">
                Get Choice Groups from POS
            </wsdl:documentation>
            <wsdl:input message="tns:TicketDetailSoapIn"/>
            <wsdl:output message="tns:TicketDetailSoapOut"/>
        </wsdl:operation>
    </wsdl:portType>
    <wsdl:binding name="TicketDetailSoap" type="tns:TicketDetailSoap">
        <soap:binding transport="http://schemas.xmlsoap.org/soap/http"/>
        <wsdl:operation name="TicketDetail">
            <soap:operation soapAction="{{ soap_url }}" style="document"/>
            <wsdl:input>
                <soap:body use="literal"/>
            </wsdl:input>
            <wsdl:output>
                <soap:body use="literal"/>
            </wsdl:output>
        </wsdl:operation>
    </wsdl:binding>
    <wsdl:service name="TicketDetailService">
        <wsdl:port name="TicketDetailSoap" binding="tns:TicketDetailSoap">
            <soap:address location="{{ soap_url }}"/>
        </wsdl:port>
    </wsdl:service>
</wsdl:definitions>