<!--
		SIF Implementation Specification (Australia) 3.4.3


		(April 5, 2018)
		
		Infrastructure Version: v3
	-->
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns="http://www.sifassociation.org/datamodel/au/3.4" targetNamespace="http://www.sifassociation.org/datamodel/au/3.4" elementFormDefault="qualified" version="3.4.3">
  <xs:complexType name="PaymentReceiptType">
    <xs:sequence>
      <xs:element name="TransactionType" minOccurs="0">
        <xs:simpleType>
          <xs:restriction base="xs:token">
            <xs:enumeration value="GL receipt" />
            <xs:enumeration value="GL payment" />
            <xs:enumeration value="Creditor receipt" />
            <xs:enumeration value="Creditor payment" />
            <xs:enumeration value="Debtor receipt" />
            <xs:enumeration value="Debtor payment" />
          </xs:restriction>
        </xs:simpleType>
      </xs:element>
      <xs:element name="InvoiceRefId" minOccurs="0" nillable="true" type="IdRefType" />
      <xs:element name="VendorInfoRefId" minOccurs="0" nillable="true" type="IdRefType" />
      <xs:element name="DebtorRefId" minOccurs="0" nillable="true" type="IdRefType" />
      <xs:element name="ChargedLocationInfoRefId" minOccurs="0" nillable="true" type="IdRefType" />
      <xs:element name="TransactionDate" minOccurs="0" type="xs:date" />
      <xs:element name="TransactionAmount" minOccurs="0" type="DebitOrCreditAmountType" />
      <xs:element name="ReceivedTransactionId" minOccurs="0" type="xs:normalizedString" />
      <xs:element name="FinancialAccountRefIdList" minOccurs="0" nillable="true" type="FinancialAccountRefIdListType" />
      <xs:element name="TransactionDescription" minOccurs="0" nillable="true" type="xs:normalizedString" />
      <xs:element name="TaxRate" minOccurs="0" nillable="true" type="xs:decimal" />
      <xs:element name="TaxAmount" minOccurs="0" nillable="true" type="MonetaryAmountType" />
      <xs:element name="TransactionMethod" minOccurs="0" nillable="true" type="xs:normalizedString" />
      <xs:element name="ChequeNumber" minOccurs="0" nillable="true" type="xs:normalizedString" />
      <xs:element name="TransactionNote" minOccurs="0" nillable="true" type="xs:normalizedString" />
      <xs:element name="AccountingPeriod" minOccurs="0" nillable="true" type="LocalIdType" />
      <xs:element name="SIF_Metadata" minOccurs="0" nillable="true" type="SIF_MetadataType" />
      <xs:element name="SIF_ExtendedElements" minOccurs="0" nillable="true" type="SIF_ExtendedElementsType" />
    </xs:sequence>
    <xs:attribute name="RefId" use="required" type="RefIdType" />
  </xs:complexType>

  <xs:element name="PaymentReceipt" type="PaymentReceiptType">
    <xs:unique name="PaymentReceiptKey1">
      <xs:selector xpath="./PaymentReceipt" />
      <xs:field xpath="@RefId" />
    </xs:unique>
  </xs:element>

  <xs:complexType name="PaymentReceiptCollectionType">
    <xs:sequence>
      <xs:element name="PaymentReceipt" type="PaymentReceiptType" minOccurs="0" maxOccurs="unbounded" />
    </xs:sequence>
  </xs:complexType>
  <xs:element name="PaymentReceipts" type="PaymentReceiptCollectionType" />

</xs:schema>