<?xml version="1.0" standalone="yes"?>
<xs:schema id="CustomerPaymentDataSet" targetNamespace="http://xml.objacct.com/CustomerPayment.xsd" xmlns:mstns="http://xml.objacct.com/CustomerPayment.xsd" xmlns="http://xml.objacct.com/CustomerPayment.xsd" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata" attributeFormDefault="qualified" elementFormDefault="qualified">
  <xs:element name="CustomerPaymentDataSet" msdata:IsDataSet="true" msdata:UseCurrentLocale="true">
    <xs:complexType>
      <xs:choice minOccurs="0" maxOccurs="unbounded">
        <xs:element name="Header">
          <xs:complexType>
            <xs:sequence>
              <xs:element name="RowID" type="xs:string" />
              <xs:element name="AccountRowID" type="xs:string" minOccurs="0" />
              <xs:element name="AuditNbr" type="xs:int" minOccurs="0" />
              <xs:element name="BaseCurrencyRowID" type="xs:string" minOccurs="0" />
              <xs:element name="BatchNbr" type="xs:string" minOccurs="0" />
              <xs:element name="ClassRowID" type="xs:string" minOccurs="0" />
              <xs:element name="Cleared" type="xs:short" minOccurs="0" />
              <xs:element name="CreditCardRowID" type="xs:string" minOccurs="0" />
              <xs:element name="CreditCardTransactionRefundRowID" type="xs:string" minOccurs="0" />
              <xs:element name="CreditCardTransactionSaleRowID" type="xs:string" minOccurs="0" />
              <xs:element name="CurrencyRowID" type="xs:string" minOccurs="0" />
              <xs:element name="CurrencyRateRowID" type="xs:string" minOccurs="0" />
              <xs:element name="CurrencyRateTypeRowID" type="xs:string" minOccurs="0" />
              <xs:element name="Custom1" type="xs:string" minOccurs="0" />
              <xs:element name="Custom2" type="xs:string" minOccurs="0" />
              <xs:element name="Custom3" type="xs:string" minOccurs="0" />
              <xs:element name="Custom4" type="xs:string" minOccurs="0" />
              <xs:element name="Custom5" type="xs:string" minOccurs="0" />
              <xs:element name="Custom6" type="xs:string" minOccurs="0" />
              <xs:element name="Custom7" type="xs:string" minOccurs="0" />
              <xs:element name="Custom8" type="xs:string" minOccurs="0" />
              <xs:element name="Custom9" type="xs:string" minOccurs="0" />
              <xs:element name="Custom10" type="xs:string" minOccurs="0" />
              <xs:element name="Description" type="xs:string" minOccurs="0" />
              <xs:element name="DocAmount" type="xs:decimal" minOccurs="0" />
              <xs:element name="DocAmountCurrency" type="xs:decimal" minOccurs="0" />
              <xs:element name="DocDate" type="xs:dateTime" minOccurs="0" />
              <xs:element name="DocGroupID" type="xs:string" minOccurs="0" />
              <xs:element name="DocID" type="xs:string" minOccurs="0" />
              <xs:element name="EffectiveDate" type="xs:dateTime" minOccurs="0" />
              <xs:element name="EnteredDate" type="xs:dateTime" minOccurs="0" />
              <xs:element name="IncludeInUndepositedFunds" type="xs:short" minOccurs="0" />
              <xs:element name="JobRowID" type="xs:string" minOccurs="0" />
              <xs:element name="JournalDocTypeRowID" type="xs:string" minOccurs="0" />
              <xs:element name="OriginalJournalTranRowID" type="xs:string" minOccurs="0" />
              <xs:element name="PaymentMethodRowID" type="xs:string" minOccurs="0" />
              <xs:element name="PaymentMethodReference1" type="xs:string" minOccurs="0" />
              <xs:element name="PaymentMethodReference2" type="xs:string" minOccurs="0" />
              <xs:element name="PaymentMethodReference3" type="xs:string" minOccurs="0" />
              <xs:element name="ReferenceNbr" type="xs:string" minOccurs="0" />
              <xs:element name="ReverseDocRowID" type="xs:string" minOccurs="0" />
              <xs:element name="RoleID" type="xs:string" minOccurs="0" />
              <xs:element name="RolePolicyRowID" type="xs:string" minOccurs="0" />
              <xs:element name="CreditsAndUnappliedPayments" type="xs:decimal" minOccurs="0" />
              <xs:element name="CreditsAndUnappliedPaymentsCurrency" type="xs:decimal" minOccurs="0" />
              <xs:element name="RefundChecks" type="xs:decimal" minOccurs="0" />
              <xs:element name="RefundChecksCurrency" type="xs:decimal" minOccurs="0" />
              <xs:element name="TotalApplied" type="xs:decimal" minOccurs="0" />
              <xs:element name="TotalAppliedCurrency" type="xs:decimal" minOccurs="0" />
              <xs:element name="TotalToApply" type="xs:decimal" minOccurs="0" />
              <xs:element name="TotalToApplyCurrency" type="xs:decimal" minOccurs="0" />
              <xs:element name="UnappliedAmount" type="xs:decimal" minOccurs="0" />
              <xs:element name="UnappliedAmountCurrency" type="xs:decimal" minOccurs="0" />
            </xs:sequence>
          </xs:complexType>
        </xs:element>
        <xs:element name="Transaction">
          <xs:complexType>
            <xs:sequence>
              <xs:element name="InvoiceJournalDocRowID" type="xs:string" minOccurs="0" />
              <xs:element name="AmountDue" type="xs:decimal" minOccurs="0" />
              <xs:element name="AmountDueCurrency" type="xs:decimal" minOccurs="0" />
              <xs:element name="AuditNbr" type="xs:int" minOccurs="0" />
              <xs:element name="BaseCurrencyRowID" type="xs:string" minOccurs="0" />
              <xs:element name="ClassRowID" type="xs:string" minOccurs="0" />
              <xs:element name="CurrencyRowID" type="xs:string" minOccurs="0" />
              <xs:element name="CurrencyRateRowID" type="xs:string" minOccurs="0" />
              <xs:element name="CurrencyRateTypeRowID" type="xs:string" minOccurs="0" />
              <xs:element name="Custom1" type="xs:string" minOccurs="0" />
              <xs:element name="Custom2" type="xs:string" minOccurs="0" />
              <xs:element name="Custom3" type="xs:string" minOccurs="0" />
              <xs:element name="Custom4" type="xs:string" minOccurs="0" />
              <xs:element name="Custom5" type="xs:string" minOccurs="0" />
              <xs:element name="Custom6" type="xs:string" minOccurs="0" />
              <xs:element name="Custom7" type="xs:string" minOccurs="0" />
              <xs:element name="Custom8" type="xs:string" minOccurs="0" />
              <xs:element name="Custom9" type="xs:string" minOccurs="0" />
              <xs:element name="Custom10" type="xs:string" minOccurs="0" />
              <xs:element name="Description" type="xs:string" minOccurs="0" />
              <xs:element name="DiscountDate" type="xs:dateTime" minOccurs="0" />
              <xs:element name="DocAmount" type="xs:decimal" minOccurs="0" />
              <xs:element name="DocAmountCurrency" type="xs:decimal" minOccurs="0" />
              <xs:element name="EffectiveDate" type="xs:dateTime" minOccurs="0" />
              <xs:element name="JobRowID" type="xs:string" minOccurs="0" />
              <xs:element name="JournalDocTypeRowID" type="xs:string" minOccurs="0" />
              <xs:element name="PaymentScheduleRowID" type="xs:string" minOccurs="0" />
              <xs:element name="PaidAmount" type="xs:decimal" minOccurs="0" />
              <xs:element name="PaidAmountCurrency" type="xs:decimal" minOccurs="0" />
              <xs:element name="PaymentAmountDue" type="xs:decimal" minOccurs="0" />
              <xs:element name="PaymentAmountDueCurrency" type="xs:decimal" minOccurs="0" />
              <xs:element name="RolePolicyRowID" type="xs:string" minOccurs="0" />
              <xs:element name="Action" type="xs:string" minOccurs="0" />
              <xs:element name="Date" type="xs:dateTime" minOccurs="0" />
              <xs:element name="DiscountTakenAccountRowID" type="xs:string" minOccurs="0" />
              <xs:element name="DiscountTakenAmount" type="xs:decimal" minOccurs="0" />
              <xs:element name="DiscountTakenAmountCurrency" type="xs:decimal" minOccurs="0" />
              <xs:element name="DiscountTakenClassRowID" type="xs:string" minOccurs="0" />
              <xs:element name="Number" type="xs:string" minOccurs="0" />
              <xs:element name="PaymentAmount" type="xs:decimal" minOccurs="0" />
              <xs:element name="PaymentAmountCurrency" type="xs:decimal" minOccurs="0" />
            </xs:sequence>
          </xs:complexType>
        </xs:element>
      </xs:choice>
    </xs:complexType>
    <xs:unique name="Constraint1" msdata:PrimaryKey="true">
      <xs:selector xpath=".//mstns:Header" />
      <xs:field xpath="mstns:RowID" />
    </xs:unique>
  </xs:element>
</xs:schema>
