<?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="creditcard-authorization-request-Body">
                <s:complexType>
                    <s:sequence>
                        <s:element name="creditcard-authorization-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="creditcard-authorization-request-data">
                                        <s:complexType>
                                            <s:sequence>
                                                <s:element name="order-number" type="s:string"/>
                                                <s:element name="employee-id" type="s:string"/>
                                                <s:element name="input-type" type="s:string"/>
                                                <s:element name="tender-id" type="s:string"/>
                                                <s:element name="authorization-account-number" type="s:string" minOccurs="0" />
                                                <s:element name="authorization-account-name" type="s:string" minOccurs="0" />
                                                <s:element name="expiration-date" minOccurs="0">
                                                    <s:attribute type="s:string" name="format" />
                                                    <s:attribute type="s:string" name="date" />
                                                </s:element>
                                                <s:element name="track-information" maxOccurs="unbounded" minOccurs="0">
                                                    <s:attribute type="s:string" name="location"/>
                                                    <s:attribute type="s:string" name="length"/>
                                                    <s:attribute type="s:string" name="data"/>
                                                </s:element>
                                                <s:element name="auth-amount">
                                                    <s:attribute type="s:string" name="tender-amount"/>
                                                    <s:attribute type="s:string" name="tip-amount"/>
                                                </s:element>
                                            </s:sequence>
                                        </s:complexType>
                                    </s:element>
                                </s:sequence>
                            </s:complexType>
                        </s:element>
                    </s:sequence>
                </s:complexType>
            </s:element>
            <s:element name="creditcard-authorization-response-Body">
                <s:complexType>
                    <s:sequence>
                        <s:element name="creditcard-authorization-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="creditcard-authorization-response-data" minOccurs="0">
                                        <s:complexType>
                                            <s:sequence>
                                                <s:element name="reference-key" type="s:string"/>
                                                <s:element name="payment-guid" type="s:string" minOccurs="0" />
                                                <s:element name="draft-text" type="s:string"/>
                                            </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="CreditCardPaymentSoapIn">
        <wsdl:part name="parameters" element="tns:creditcard-authorization-request-Body"/>
    </wsdl:message>
    <wsdl:message name="CreditCardPaymentSoapOut">
        <wsdl:part name="parameters" element="tns:creditcard-authorization-response-Body"/>
    </wsdl:message>
    <wsdl:portType name="CreditCardPaymentSoap">
        <wsdl:operation name="CreditCardPayment">
            <wsdl:documentation xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">
                Get Choice Groups from POS
            </wsdl:documentation>
            <wsdl:input message="tns:CreditCardPaymentSoapIn"/>
            <wsdl:output message="tns:CreditCardPaymentSoapOut"/>
        </wsdl:operation>
    </wsdl:portType>
    <wsdl:binding name="CreditCardPaymentSoap" type="tns:CreditCardPaymentSoap">
        <soap:binding transport="http://schemas.xmlsoap.org/soap/http"/>
        <wsdl:operation name="CreditCardPayment">
            <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="CreditCardPaymentService">
        <wsdl:port name="CreditCardPaymentSoap" binding="tns:CreditCardPaymentSoap">
            <soap:address location="{{ soap_url }}"/>
        </wsdl:port>
    </wsdl:service>
</wsdl:definitions>