<?xml version="1.0" encoding="UTF-8"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns="https://schema.caleaccess.com/cwo2importservice/LiveDataImport/1/" targetNamespace="https://schema.caleaccess.com/cwo2importservice/LiveDataImport/1/" elementFormDefault="qualified" attributeFormDefault="unqualified">
<xs:element name="SubmitPurchaseRequest">
<xs:complexType>
<xs:attribute name="TransactionReference" type="stringLen50" use="required"/>
<xs:attribute name="BankAuthorizationReference" type="stringLen50" use="required"/>
<xs:attribute name="PurchaseAmount" type="xs:decimal" use="required"/>
<xs:attribute name="PurchaseDateUtc" type="xs:dateTime" use="required"/>
<xs:attribute name="StartDateUtc" type="xs:dateTime" use="required"/>
<xs:attribute name="EndDateUtc" type="xs:dateTime" use="required"/>
<xs:attribute name="SettlementDateUtc" type="xs:dateTime" use="optional"/>
<xs:attribute name="TariffPackageId" type="xs:int" use="required"/>
<xs:attribute name="ArticleId" type="xs:int" use="required"/>
<xs:attribute name="TerminalId" type="stringLen50" use="optional"/>
<xs:attribute name="TopUpId" type="stringLen20" use="optional" />
<xs:attribute name="LicencePlateId" type="stringLen20" use="optional" />
<xs:attribute name="ParkingSpaceId" type="stringLen50" use="optional" />
<xs:attribute name="MaskedPAN" type="stringLen20" use="optional" />
<xs:attribute name="Description" type="xs:string" use="optional" />
<xs:attribute name="CardIssuer" type="stringLen50" use="optional" />
<xs:attribute name="CardFeeAmount" type="xs:decimal" use="optional" />
<xs:attribute name="PurchaseGuid" type="xs:string" use="optional" />
<xs:attribute name="PayUnitId" type="xs:int" use="optional" />
<xs:attribute name="TicketNumber" type="xs:int" use="optional" />
<xs:attribute name="IsUpdate" type="xs:boolean" use="optional"/>
</xs:complexType>
</xs:element>
<xs:element name="SubmitPurchaseResponse">
<xs:complexType>
<xs:attribute name="ReturnCode" type="xs:string" use="required"/>
<xs:attribute name="ReferenceId" type="xs:string" use="optional"/>
<xs:attribute name="ErrorDescription" type="xs:string" use="optional"/>
</xs:complexType>
</xs:element>
<xs:simpleType name="stringLen50">
<xs:restriction base="xs:string">
<xs:maxLength value="50" />
</xs:restriction>
</xs:simpleType>
<xs:simpleType name="stringLen20">
<xs:restriction base="xs:string">
<xs:maxLength value="20" />
</xs:restriction>
</xs:simpleType>
</xs:schema>