<?xml version="1.0" encoding="UTF-8"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:doc="AT-Documentation" elementFormDefault="qualified">
	<xs:annotation>
		<xs:documentation>
			<doc:text>
***********************
This schema cannot be valid by itself, as it restricts data types not defined at this location. It is designed to be included in other schemas and will restrict data types defined there.
THIS WILL DELIVER REAL SUBSETS
Any message using this data types will be 100% ISO 20022 compatible.

VERSIONING
If necessary this schema is amended with additional data types to serve additional message types and/or additions or changes of documentation nodes.
Any amendment will increase version date.
Version number is only increased, when changes other than documentation occur. Version number in schema name and schema correlate.

INCLUSION
Inclusion in varios message types is done by following node:
<!--  ********************** start replace include node with copy of type definitions of schema to get standalone schema  -->
<xs:include schemaLocation="camt.05_2_3_codelists.xsd"/>
<!--  ********************** stop replace include node with copy of type definitions of schema to get standalone schema  -->
If your processing environment does not allow inclusions and/or perform better with standalone schema, a 100% equivalent can be retrieved by
replacing the include node by a copy of data types defined below. Replace the include node with a copy of type definitions between the snip marks.

***********************
			</doc:text>
			<doc:source>
				<doc:line>PSA Payment Services Austria</doc:line>
				<doc:line>Edited by Hendrik Muus</doc:line>
			</doc:source>
			<doc:useCase>
				<doc:line xml:lang="de">Definitionen zur Inkludierung in camt.05_2_3</doc:line>
				<doc:line xml:lang="en">Definitions for inclusion in camt.05_2_3</doc:line>
			</doc:useCase>
			<doc:changeLog>
				<doc:date on="2023-02-01">
					<doc:line>update codes from ExternalCodeSets_3Q2022_v2.xlsx</doc:line>
					<doc:line>not respect retired codes or codes with don't use remark</doc:line>
					<doc:line>reduce documentation to name and definition</doc:line>
					<doc:line>insert changelog at top of schema</doc:line>
				</doc:date>
			</doc:changeLog>
		</xs:documentation>
	</xs:annotation>

	<xs:attribute name="camt.05_2_3_codelists.xsd_version" fixed="3Q2022 adpt 2023-02-01">
		<xs:annotation>
			<xs:documentation xml:lang="de">Versions Nummer dieses Schemas</xs:documentation>
			<xs:documentation xml:lang="en">Schema version number</xs:documentation>
		</xs:annotation>
	</xs:attribute>
	<xs:attribute name="report_statement_codelists_source" fixed="ExternalCodeSets_3Q2022_v2.xlsx">
		<xs:annotation>
			<xs:documentation xml:lang="de">Quelle der externen Restriktionen</xs:documentation>
			<xs:documentation xml:lang="en">Source of external restrictions</xs:documentation>
		</xs:annotation>
	</xs:attribute>
	<!-- restricted data types -->
	<!--  ********************** start snip here for copy/paste into other schema to get standalone schema  -->
	<!-- start restrictions for camt.052/3 taken from ExternalCodeSets_3Q2022_v2.xlsx -->
	<xs:simpleType name="ISO_ExternalBalanceSubType1Code">
		<xs:restriction base="ExternalBalanceSubType1Code">
			<xs:annotation>
				<xs:documentation source="Name" xml:lang="en">ExternalBalanceSubType1Code</xs:documentation>
				<xs:documentation source="Definition" xml:lang="en">Specifies the balance sub-type, as published in an external balance sub-type code list. External code sets can be downloaded from www.iso20022.org.</xs:documentation>
			</xs:annotation>
			<xs:enumeration value="ADJT">
				<xs:annotation>
					<xs:documentation source="Name" xml:lang="en">Adjustment</xs:documentation>
					<xs:documentation source="Definition" xml:lang="en">Balance to be held in the settlement account in order to comply with the average reserve due, in the event that the bank's balance is equal to the reserve due during the remaining days of the maintenance period.</xs:documentation>
				</xs:annotation>
			</xs:enumeration>
			<xs:enumeration value="BCUR">
				<xs:annotation>
					<xs:documentation source="Name" xml:lang="en">BaseCurrency</xs:documentation>
					<xs:documentation source="Definition" xml:lang="en">Balance representing the amount in the domestic or base accounting currency.</xs:documentation>
				</xs:annotation>
			</xs:enumeration>
			<xs:enumeration value="BLCK">
				<xs:annotation>
					<xs:documentation source="Name" xml:lang="en">Blocked</xs:documentation>
					<xs:documentation source="Definition" xml:lang="en">Balance representing the regulatory reserve that a financial institution must have with the account servicing institution, eg, the minimum credit balance a financial institution is to keep with its Central Bank for mandatory reserve purposes. In some countries, a blocked balance is known as a 'reserve' balance.</xs:documentation>
				</xs:annotation>
			</xs:enumeration>
			<xs:enumeration value="BLKD">
				<xs:annotation>
					<xs:documentation source="Name" xml:lang="en">BlockedFunds</xs:documentation>
					<xs:documentation source="Definition" xml:lang="en">Balance representing funds that cannot be touched by the account owner.</xs:documentation>
				</xs:annotation>
			</xs:enumeration>
			<xs:enumeration value="DLOD">
				<xs:annotation>
					<xs:documentation source="Name" xml:lang="en">DaylightOverdraft</xs:documentation>
					<xs:documentation source="Definition" xml:lang="en">Balance representing the intra day overdraft granted by the Central Bank to financial institutions participating in a RTGS system. This balance may vary over time and shall be offset at the end of the day.</xs:documentation>
				</xs:annotation>
			</xs:enumeration>
			<xs:enumeration value="EAST">
				<xs:annotation>
					<xs:documentation source="Name" xml:lang="en">EligibleAssets</xs:documentation>
					<xs:documentation source="Definition" xml:lang="en">Balance representing the potential loan a Central Bank would make in cash if the collateral is pledged, eg, securities available and eligible as collateral with the Central Bank.</xs:documentation>
				</xs:annotation>
			</xs:enumeration>
			<xs:enumeration value="FCOL">
				<xs:annotation>
					<xs:documentation source="Name" xml:lang="en">FirmCollateralization</xs:documentation>
					<xs:documentation source="Definition" xml:lang="en">Balance representing the forecast of the cash-equivalent resulting from evaluation of existing holdings at CSD that are qualified to serve as collateral.</xs:documentation>
				</xs:annotation>
			</xs:enumeration>
			<xs:enumeration value="FCOU">
				<xs:annotation>
					<xs:documentation source="Name" xml:lang="en">AmountsThatHaveBeenUsedToServeAsFirmCollateral</xs:documentation>
					<xs:documentation source="Definition" xml:lang="en">Balance representing the cash equivalent resulting from evaluation of existing holdings at CSD that are qualified to serve as collateral and have been used as collateral.</xs:documentation>
				</xs:annotation>
			</xs:enumeration>
			<xs:enumeration value="FORC">
				<xs:annotation>
					<xs:documentation source="Name" xml:lang="en">SecuritiesForecast</xs:documentation>
					<xs:documentation source="Definition" xml:lang="en">Balance representing the total of all balance types representing the forecast of transactions to settle, blocked items, custody transactions and corporate actions cash disbursements.</xs:documentation>
				</xs:annotation>
			</xs:enumeration>
			<xs:enumeration value="FUND">
				<xs:annotation>
					<xs:documentation source="Name" xml:lang="en">NetFunding</xs:documentation>
					<xs:documentation source="Definition" xml:lang="en">Balance representing the net amount to be funded resulting from the difference between the total of all transactions with a cash impact and the existing cash coverage.</xs:documentation>
				</xs:annotation>
			</xs:enumeration>
			<xs:enumeration value="INTM">
				<xs:annotation>
					<xs:documentation source="Name" xml:lang="en">Intermediate</xs:documentation>
					<xs:documentation source="Definition" xml:lang="en">Balance representing an intermediate amount such as the opening or closing balance incrementally carried forward from one page to the next in a multi-page statement or report.</xs:documentation>
				</xs:annotation>
			</xs:enumeration>
			<xs:enumeration value="LCUR">
				<xs:annotation>
					<xs:documentation source="Name" xml:lang="en">LocalCurrency</xs:documentation>
					<xs:documentation source="Definition" xml:lang="en">Balance representing the amount in the local market currency for which the asset is held.</xs:documentation>
				</xs:annotation>
			</xs:enumeration>
			<xs:enumeration value="LRLD">
				<xs:annotation>
					<xs:documentation source="Name" xml:lang="en">LimitRelated</xs:documentation>
					<xs:documentation source="Definition" xml:lang="en">Balance of a specific limit value, eg, a bilateral balance is calculated in relation to a given bilateral limit.</xs:documentation>
				</xs:annotation>
			</xs:enumeration>
			<xs:enumeration value="NOTE">
				<xs:annotation>
					<xs:documentation source="Name" xml:lang="en">ReservedLiquidity</xs:documentation>
					<xs:documentation source="Definition" xml:lang="en">Balance representing the amount that a financial institution has set aside for a specific reason and which is therefore not available. In the context of CSDs, reservation of liquidity made to meet settlement obligations.</xs:documentation>
				</xs:annotation>
			</xs:enumeration>
			<xs:enumeration value="PDNG">
				<xs:annotation>
					<xs:documentation source="Name" xml:lang="en">SecuritiesPending</xs:documentation>
					<xs:documentation source="Definition" xml:lang="en">Balance of securities pending delivery, such as orders to sell securities have been executed but settlement of the open transactions has not been confirmed.</xs:documentation>
				</xs:annotation>
			</xs:enumeration>
			<xs:enumeration value="PIPO">
				<xs:annotation>
					<xs:documentation source="Name" xml:lang="en">PayInPayOut</xs:documentation>
					<xs:documentation source="Definition" xml:lang="en">Balance representing the fictive amount of automated direct debits or payment based on standing arrangements between the CSD and the user. Usage: Pay-Ins and Pay-Outs can be different based on individual payment instructions or available funds.</xs:documentation>
				</xs:annotation>
			</xs:enumeration>
			<xs:enumeration value="PRAV">
				<xs:annotation>
					<xs:documentation source="Name" xml:lang="en">ProgressiveAverage</xs:documentation>
					<xs:documentation source="Definition" xml:lang="en">Average of the daily balances on the account used to fulfil the reserve requirements calculated from the beginning of the maintenance period.</xs:documentation>
				</xs:annotation>
			</xs:enumeration>
			<xs:enumeration value="RESV">
				<xs:annotation>
					<xs:documentation source="Name" xml:lang="en">Reserve</xs:documentation>
					<xs:documentation source="Definition" xml:lang="en">Balance representing the regulatory reserve that a financial institution must have with the account servicing institution, eg, the minimum credit balance a financial institution is to keep with its Central Bank for mandatory reserve purposes.</xs:documentation>
				</xs:annotation>
			</xs:enumeration>
			<xs:enumeration value="SCOL">
				<xs:annotation>
					<xs:documentation source="Name" xml:lang="en">SelfCollateralization</xs:documentation>
					<xs:documentation source="Definition" xml:lang="en">Balance representing the forecast of the cash-equivalent resulting from evaluation of the net incoming balance of securities qualified to serve as collateral for which settlement instructions are held at.</xs:documentation>
				</xs:annotation>
			</xs:enumeration>
			<xs:enumeration value="SCOU">
				<xs:annotation>
					<xs:documentation source="Name" xml:lang="en">AmountsThatHaveBeenUsedToServeAsSelfCollateral</xs:documentation>
					<xs:documentation source="Definition" xml:lang="en">Balance representing the cash-equivalent resulting from evaluation of incoming securities, qualified to serve as collateral and actually used as collateral, which have been settled during the settlement process.</xs:documentation>
				</xs:annotation>
			</xs:enumeration>
			<xs:enumeration value="THRE">
				<xs:annotation>
					<xs:documentation source="Name" xml:lang="en">Threshold</xs:documentation>
					<xs:documentation source="Definition" xml:lang="en">Balance representing the amount that will be destined for investment. Difference between available balance and threshold for investment limit.</xs:documentation>
				</xs:annotation>
			</xs:enumeration>
		</xs:restriction>
	</xs:simpleType>
	<xs:simpleType name="ISO_ExternalBalanceType1Code">
		<xs:restriction base="ExternalBalanceType1Code">
			<xs:annotation>
				<xs:documentation source="Name" xml:lang="en">ExternalBalanceType1Code</xs:documentation>
				<xs:documentation source="Definition" xml:lang="en">Specifies the balance type, as published in an external balance type code set. External code sets can be downloaded from www.iso20022.org.</xs:documentation>
			</xs:annotation>
			<xs:enumeration value="CLAV">
				<xs:annotation>
					<xs:documentation source="Name" xml:lang="en">ClosingAvailable</xs:documentation>
					<xs:documentation source="Definition" xml:lang="en">Closing balance of amount of money that is at the disposal of the account owner on the date specified.</xs:documentation>
				</xs:annotation>
			</xs:enumeration>
			<xs:enumeration value="CLBD">
				<xs:annotation>
					<xs:documentation source="Name" xml:lang="en">ClosingBooked</xs:documentation>
					<xs:documentation source="Definition" xml:lang="en">Balance of the account at the end of the pre-agreed account reporting period. It is the sum of the opening booked balance at the beginning of the period and all entries booked to the account during the pre-agreed account reporting period.</xs:documentation>
				</xs:annotation>
			</xs:enumeration>
			<xs:enumeration value="FWAV">
				<xs:annotation>
					<xs:documentation source="Name" xml:lang="en">ForwardAvailable</xs:documentation>
					<xs:documentation source="Definition" xml:lang="en">Forward available balance of money that is at the disposal of the account owner on the date specified.</xs:documentation>
				</xs:annotation>
			</xs:enumeration>
			<xs:enumeration value="INFO">
				<xs:annotation>
					<xs:documentation source="Name" xml:lang="en">Information</xs:documentation>
					<xs:documentation source="Definition" xml:lang="en">Balance for informational purposes.</xs:documentation>
				</xs:annotation>
			</xs:enumeration>
			<xs:enumeration value="ITAV">
				<xs:annotation>
					<xs:documentation source="Name" xml:lang="en">InterimAvailable</xs:documentation>
					<xs:documentation source="Definition" xml:lang="en">Available balance calculated in the course of the account servicer's business day, at the time specified, and subject to further changes during the business day. The interim balance is calculated on the basis of booked credit and debit items during the calculation time/period specified.</xs:documentation>
				</xs:annotation>
			</xs:enumeration>
			<xs:enumeration value="ITBD">
				<xs:annotation>
					<xs:documentation source="Name" xml:lang="en">InterimBooked</xs:documentation>
					<xs:documentation source="Definition" xml:lang="en">Balance calculated in the course of the account servicer's business day, at the time specified, and subject to further changes during the business day. The interim balance is calculated on the basis of booked credit and debit items during the calculation time/period specified.</xs:documentation>
				</xs:annotation>
			</xs:enumeration>
			<xs:enumeration value="OPAV">
				<xs:annotation>
					<xs:documentation source="Name" xml:lang="en">OpeningAvailable</xs:documentation>
					<xs:documentation source="Definition" xml:lang="en">Opening balance of amount of money that is at the disposal of the account owner on the date specified.</xs:documentation>
				</xs:annotation>
			</xs:enumeration>
			<xs:enumeration value="OPBD">
				<xs:annotation>
					<xs:documentation source="Name" xml:lang="en">OpeningBooked</xs:documentation>
					<xs:documentation source="Definition" xml:lang="en">Book balance of the account at the beginning of the account reporting period. It always equals the closing book balance from the previous report.</xs:documentation>
				</xs:annotation>
			</xs:enumeration>
			<xs:enumeration value="PRCD">
				<xs:annotation>
					<xs:documentation source="Name" xml:lang="en">PreviouslyClosedBooked</xs:documentation>
					<xs:documentation source="Definition" xml:lang="en">Balance of the account at the previously closed account reporting period. The opening booked balance for the new period has to be equal to this balance. Usage: the previously booked closing balance should equal (inclusive date) the booked closing balance of the date it references and equal the actual booked opening balance of the current date.</xs:documentation>
				</xs:annotation>
			</xs:enumeration>
			<xs:enumeration value="XPCD">
				<xs:annotation>
					<xs:documentation source="Name" xml:lang="en">Expected</xs:documentation>
					<xs:documentation source="Definition" xml:lang="en">Balance, composed of booked entries and pending items known at the time of calculation, which projects the end of day balance if everything is booked on the account and no other entry is posted.</xs:documentation>
				</xs:annotation>
			</xs:enumeration>
		</xs:restriction>
	</xs:simpleType>
	<!-- end restrictions for camt.052/3 taken from ExternalCodeSets_3Q2022_v2.xlsx -->
	<!-- start restrictions for camt.052/053 -->
	<xs:simpleType name="AT_ExternalBalanceSubType1Propietary">
		<xs:annotation>
			<xs:documentation source="Name" xml:lang="en">Austrian External Balance Sub Type Propietary Code</xs:documentation>
			<xs:documentation source="Definition" xml:lang="en">Specifies the balance sub-type expressing the kind of balance population</xs:documentation>
		</xs:annotation>
		<xs:restriction base="Max35Text">
			<xs:enumeration value="INKR">
				<xs:annotation>
					<xs:documentation source="Name" xml:lang="en">Incremental</xs:documentation>
					<xs:documentation source="Definition" xml:lang="en">Balances announced are incremental, entries have not occured in prior messages.</xs:documentation>
				</xs:annotation>
			</xs:enumeration>
			<xs:enumeration value="KUML">
				<xs:annotation>
					<xs:documentation source="Name" xml:lang="en">Cumulated</xs:documentation>
					<xs:documentation source="Definition" xml:lang="en">Balances announced are cumulated, entries may have occured in prior messages.</xs:documentation>
				</xs:annotation>
			</xs:enumeration>
		</xs:restriction>
	</xs:simpleType>
	<!-- end restrictions for camt.052/053 -->
	<!--  ********************** stop snip here for copy/paste into other schema to get standalone schema  -->
</xs:schema>
