<?xml version="1.0" encoding="UTF-8"?>
<xsd:schema xmlns="http://www.irs.gov/efile" xmlns:xsd="http://www.w3.org/2001/XMLSchema" targetNamespace="http://www.irs.gov/efile" elementFormDefault="qualified" attributeFormDefault="unqualified" version="1.0">

	<xsd:annotation>
		<xsd:documentation>
			<Description>IRS e-file Corporate Income Tax Schema - Advance Payments for Goods and Long Term Contracts Schedule</Description>
			<TaxYear>2018</TaxYear>
			<MaturityLevel>Final Release</MaturityLevel>
			<ReleaseDate>October 17, 2018</ReleaseDate>
		</xsd:documentation>
	</xsd:annotation>

	<xsd:include schemaLocation="../../../Common/efileTypes.xsd"/>


	<!-- ===================================================================== -->
	<!-- ==== Advance Payments for Goods and Long Term Contracts Schedule ==== -->
	<!-- ===================================================================== -->


	<xsd:element name="AdvncPymtGdsLongTermCntrctSch">
		<xsd:annotation>
			<xsd:documentation>Advance payments for goods and long term contracts schedule</xsd:documentation>
		</xsd:annotation>
		<xsd:complexType>
			<xsd:complexContent>
				<xsd:extension base="AdvncPymtGdsLongTermCntrctSchType">
					<xsd:attributeGroup ref="DocumentAttributes">
						<xsd:annotation>
							<xsd:documentation>Common return document attributes</xsd:documentation>
						</xsd:annotation>
					</xsd:attributeGroup>
					<xsd:attribute name="documentName" type="xsd:string" fixed="AdvancePaymentsForGoodsAndLongTermContractsSchedule">
						<xsd:annotation>
							<xsd:documentation>IRS internal use only. To avoid error in the return, do not include the attribute name or value.</xsd:documentation>
						</xsd:annotation>
					</xsd:attribute>
				</xsd:extension>
			</xsd:complexContent>
		</xsd:complexType>
	</xsd:element>	
	
	<xsd:complexType name="AdvncPymtGdsLongTermCntrctSchType">
		<xsd:annotation>
			<xsd:documentation>Content model for Advance payments for goods and long term contracts schedule</xsd:documentation>
		</xsd:annotation>
		<xsd:sequence>		
				
			<!-- Advance Payments for Goods and Long Term Contracts Schedule -->
			<xsd:element name="AdvancePaymentContractSch" type="AdvancePaymentContractSchType" minOccurs="0" maxOccurs="unbounded">	
				<xsd:annotation>
					<xsd:documentation>
						<Description>Advance payments for goods and long term contracts schedule</Description>
					</xsd:documentation>
				</xsd:annotation>
			</xsd:element>
			
		</xsd:sequence>
	</xsd:complexType>		

	<!-- Type for Repeating Group - Advance Payments for Goods and Long Term Contracts Schedule -->
	<xsd:complexType name="AdvancePaymentContractSchType">
		<xsd:sequence>		

			<!-- Corporation Name -->
			<xsd:element name="CorporationName" type="BusinessNameType" minOccurs="0">
				<xsd:annotation>
					<xsd:documentation>
						<Description>Corporation Name</Description>
					</xsd:documentation>
				</xsd:annotation>
			</xsd:element>			
			
			<!-- Corporation EIN -->
			<xsd:element name="CorporationEIN" type="EINType" minOccurs="0">
				<xsd:annotation>
					<xsd:documentation>
						<Description>Corporation EIN</Description>
					</xsd:documentation>
				</xsd:annotation>
			</xsd:element>			

			<!-- Total Advance Payments Received in TY -->
			<xsd:element name="TotalAdvancePaymentsRcvdTYAmt" type="USAmountType" minOccurs="0">
				<xsd:annotation>
					<xsd:documentation>
						<Description>Total advance payments received in TY</Description>
					</xsd:documentation>
				</xsd:annotation>
			</xsd:element>

			<!-- Total Amount of Advance Payments Received in Prior TY not Included in Gross Income Before the Current TY -->
			<xsd:element name="PymtRcvdPrTYNotIncldGroIncmAmt" type="USAmountType" minOccurs="0">
				<xsd:annotation>
					<xsd:documentation>
						<Description>Total amount of advance payments received in prior TY not included in gross income before the current TY</Description>
					</xsd:documentation>
				</xsd:annotation>
			</xsd:element>
			
			<!-- Total Amount of Advance Payments Received in Prior TY Included in Gross Income for the Current TY -->
			<xsd:element name="PymtRcvdPriorTYIncldGroIncmAmt" type="USAmountType" minOccurs="0">
				<xsd:annotation>
					<xsd:documentation>
						<Description>Total amount of advance payments received in prior TY included in gross income for the current TY</Description>
					</xsd:documentation>
				</xsd:annotation>
			</xsd:element>

		</xsd:sequence>
	</xsd:complexType>	
	
</xsd:schema>
