<definitions name="ReturnManagementService" targetNamespace="http://www.ebay.com/marketplace/returns/v1/services" xmlns="http://schemas.xmlsoap.org/wsdl/" xmlns:http="http://schemas.xmlsoap.org/wsdl/http/" xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/" xmlns:tns="http://www.ebay.com/marketplace/returns/v1/services" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:xs="http://www.w3.org/2001/XMLSchema">

	<types>
		<xs:schema attributeFormDefault="unqualified" elementFormDefault="qualified" targetNamespace="http://www.ebay.com/marketplace/returns/v1/services">


<xs:simpleType name="AckValue">
	<xs:annotation>
		<xs:documentation>
			A token representing the application-level acknowledgement code that
			indicates the response status.
		</xs:documentation>
		<xs:appinfo>
			<typeLibrarySource library="MarketPlaceServiceCommonTypeLibrary" namespace="http://www.ebay.com/marketplace/services"/>
			<callInfo>
			  <AllCalls/>
			  <returned>Always</returned>
			</callInfo>
		</xs:appinfo>
	</xs:annotation>
	<xs:restriction base="xs:string">
		<xs:enumeration value="Success">
			<xs:annotation>
				<xs:documentation>
					eBay successfully processed the request and the business data is returned in
					the response. Note that it is possible for a response to return Success, but
					still not contain the expected data in the result.
				</xs:documentation>
			</xs:annotation>
		</xs:enumeration>
		<xs:enumeration value="Failure">
			<xs:annotation>
				<xs:documentation>
					eBay encountered a fatal error during the processing of the request, causing
					the request to fail. When a serious application-level error occurs, the error
					is returned instead of the business data.
				</xs:documentation>
			</xs:annotation>
		</xs:enumeration>
		<xs:enumeration value="Warning">
			<xs:annotation>
				<xs:documentation>
					The request that triggered the error was processed successfully but with
					one or more warnings.
				</xs:documentation>
			</xs:annotation>
		</xs:enumeration>
		<xs:enumeration value="PartialFailure">
			<xs:annotation>
				<xs:documentation>
					eBay successfully processed the request, but one or more non-fatal errors
					occurred during the processing. Inspect the message details and resolve any
					problems before resubmitting the request.
				</xs:documentation>
			</xs:annotation>
		</xs:enumeration>
	</xs:restriction>
</xs:simpleType>


<xs:complexType abstract="true" name="BaseRequest">
	<xs:annotation>
		<xs:documentation>
			This is the base class for the request container for all service operations.
		</xs:documentation>
		<xs:appinfo>
			<typeLibrarySource library="MarketPlaceServiceCommonTypeLibrary" namespace="http://www.ebay.com/marketplace/services"/>
		</xs:appinfo>
	</xs:annotation>
	<xs:sequence>
		<xs:element maxOccurs="unbounded" minOccurs="0" name="extension" type="tns:ExtensionType">
			<xs:annotation>
				<xs:documentation/>
				<xs:appinfo>
					<CallInfo>
						<noCalls/>
					</CallInfo>
				</xs:appinfo>
			</xs:annotation>
		</xs:element>
	</xs:sequence>
</xs:complexType>


<xs:complexType abstract="true" name="BaseResponse">
	<xs:annotation>
		<xs:documentation>
			This is the base class for the response container for all service operations.
			Returns error information associated with the request.
		</xs:documentation>
		<xs:appinfo>
			<typeLibrarySource library="MarketPlaceServiceCommonTypeLibrary" namespace="http://www.ebay.com/marketplace/services"/>
		</xs:appinfo>
	</xs:annotation>
	<xs:sequence>
		<xs:element name="ack" type="tns:AckValue">
			<xs:annotation>
				<xs:documentation/>
				<xs:appinfo>
					<CallInfo>
						<AllCalls/>
						<Returned>Always</Returned>
					</CallInfo>
				</xs:appinfo>
			</xs:annotation>
		</xs:element>
		<xs:element minOccurs="0" name="errorMessage" type="tns:ErrorMessage">
			<xs:annotation>
				<xs:documentation>
					Information for an error or warning that occurred when eBay processed the
					request. This field is not returned if the &lt;b&gt;ack&lt;/b&gt; value is &lt;b&gt;Success&lt;/b&gt;.
				</xs:documentation>
				<xs:appinfo>
					<CallInfo>
						<AllCalls/>
						<Returned>Conditionally</Returned>
					</CallInfo>
				</xs:appinfo>
			</xs:annotation>
		</xs:element>
		<xs:element minOccurs="0" name="version" type="xs:string">
			<xs:annotation>
				<xs:documentation>
					The version of the response payload schema. Indicates the version of the schema that eBay used to process the request.
				</xs:documentation>
				<xs:appinfo>
					<CallInfo>
						<AllCalls/>
						<Returned>Always</Returned>
					</CallInfo>
				</xs:appinfo>
			</xs:annotation>
		</xs:element>
		<xs:element minOccurs="0" name="timestamp" type="xs:dateTime">
			<xs:annotation>
				<xs:documentation>
					This value represents the date and time when eBay processed the request. The time zone of this value is GMT and the format is the ISO 8601 date and time format (YYYY-MM-DDTHH:MM:SS.SSSZ). See Time Values in the eBay Web Services guide for information about this time format and converting to and from the GMT time zone. 
				</xs:documentation>
				<xs:appinfo>
					<CallInfo>
						<AllCalls/>
						<Returned>Always</Returned>
					</CallInfo>
				</xs:appinfo>
			</xs:annotation>
		</xs:element>
		<xs:element maxOccurs="unbounded" minOccurs="0" name="extension" type="tns:ExtensionType">
			<xs:annotation>
				<xs:documentation>
					Reserved for future use.				
				</xs:documentation>
				<xs:appinfo>
					<CallInfo>
						<noCalls/>
					</CallInfo>
				</xs:appinfo>
			</xs:annotation>
		</xs:element>
	</xs:sequence>
</xs:complexType>


<xs:simpleType name="ErrorCategory">
	<xs:annotation>
		<xs:documentation>
			Returned errors are categorized as either Application, Request, or System errors.
			Request and application errors are often caused by passing invalid data in the
			call request. System errors are primarily caused by application failures and
			cannot be corrected by changing request values.
		</xs:documentation>
		<xs:appinfo>
			<typeLibrarySource library="SOACommonTypeLibrary" namespace="http://www.ebay.com/marketplace/services"/>
		</xs:appinfo>
	</xs:annotation>
	<xs:restriction base="xs:token">
		<xs:enumeration value="System">
			<xs:annotation>
				<xs:documentation>
					Indicates that an error has occurred on the eBay system side. For example, a
					database or server could be down. Inspect the error message to find the cause
					of the problem. If the problem is on the eBay side, an application can retry
					the request a reasonable number of times (eBay recommends twice). If the
					error persists, contact Developer Technical Support. Once the problem has been
					resolved, the request may be resent in its original form.
				</xs:documentation>
			</xs:annotation>
		</xs:enumeration>
		<xs:enumeration value="Application">
			<xs:annotation>
				<xs:documentation>
					An error occurred due to a problem with the request, with the most likely
					source being the application sending the request. For example, the request is
					missing a required data element or it contains an invalid field. The problem
					must be corrected before the request can be resent. Inspect the error message
					to find the cause of the problem. If the problem is due to an application
					error, modify the application and resend the request. If the error is due to
					invalid data, the source of the data must be corrected before you resend the
					resend request to eBay.
					</xs:documentation>
			</xs:annotation>
		</xs:enumeration>
		<xs:enumeration value="Request">
			<xs:annotation>
				<xs:documentation>
					An error occurred due to a problem with the request, with the most likely
					source being missing or invalid data in the request. The problem must be
					corrected before the request can be retried. Inspect the error message to
					find the cause of the problem. If the problem is a result of end-user data,
					alert the end-user to the problem and provide the means for them to correct
					the problem. Once the problem is resolved, resend the request to eBay.
				</xs:documentation>
			</xs:annotation>
		</xs:enumeration>
	</xs:restriction>
</xs:simpleType>


<xs:complexType name="ErrorData">
	<xs:annotation>
		<xs:documentation>
			A container for error details.
		</xs:documentation>
		<xs:appinfo>
			<typeLibrarySource library="SOACommonTypeLibrary" namespace="http://www.ebay.com/marketplace/services"/>
		</xs:appinfo>
	</xs:annotation>
	<xs:sequence>
		<xs:element name="errorId" type="xs:long">
			<xs:annotation>
				<xs:documentation>
					A unique code that identifies the particular error condition that occurred. Your application can use error codes as identifiers in your customized error-handling algorithms.  
				</xs:documentation>
				<xs:appinfo>
					<CallInfo>
						<AllCalls/>
						<Returned>Conditionally</Returned>
					</CallInfo>
				</xs:appinfo>
			</xs:annotation>
		</xs:element>
		<xs:element name="domain" type="xs:string">
			<xs:annotation>
				<xs:documentation>
					Name of the domain in which the error occurred.   
				</xs:documentation>
				<xs:appinfo>
					<CallInfo>
						<AllCalls/>
						<Returned>Conditionally</Returned>
					</CallInfo>
				</xs:appinfo>
			</xs:annotation>
		</xs:element>
		<xs:element minOccurs="0" name="subdomain" type="xs:string">
			<xs:annotation>
				<xs:documentation>
					Name of the subdomain in which the error occurred.  
				</xs:documentation>
				<xs:appinfo>
					<CallInfo>
						<AllCalls/>
						<Returned>Conditionally</Returned>
					</CallInfo>
				</xs:appinfo>
			</xs:annotation>
		</xs:element>
		<xs:element name="severity" type="tns:ErrorSeverity">
			<xs:annotation>
				<xs:documentation>
					Indicates whether the reported problem is fatal (an error) or is less- severe (a warning). Review the error message details for information on the cause. 
					&lt;br&gt;
					&lt;br&gt;
					If the request fails and the application is the source of the error (for example, a required element is missing), update the application before you retry the request. If the problem is due to incorrect user data, alert the end-user to the problem and provide the means for them to correct the data. Once the problem in the application or data is resolved, re-send the request to eBay. 
					&lt;br&gt;
					&lt;br&gt;
					If the source of the problem is on eBay's side, you can retry the request a reasonable number of times (eBay recommends you try the request twice). If the error persists, contact Developer Technical Support. Once the problem has been resolved, you can resend the request in its original form. 
					&lt;br&gt;
					&lt;br&gt;
					If a warning occurs, warning information is returned in addition to the business data. Normally, you do not need to resend the request (as the original request was successful). However, depending on the cause of the warning, you might need to contact the end user, or eBay, to effect a long term solution to the problem.  
				</xs:documentation>
				<xs:appinfo>
					<CallInfo>
						<AllCalls/>
						<Returned>Conditionally</Returned>
					</CallInfo>
				</xs:appinfo>
			</xs:annotation>
		</xs:element>
		<xs:element name="category" type="tns:ErrorCategory">
			<xs:annotation>
				<xs:documentation>
					There are three categories of errors: request errors, application errors, and system errors. 
				</xs:documentation>
				<xs:appinfo>
					<CallInfo>
						<AllCalls/>
						<Returned>Conditionally</Returned>
					</CallInfo>
				</xs:appinfo>
			</xs:annotation>
		</xs:element>
		<xs:element name="message" type="xs:string">
			<xs:annotation>
				<xs:documentation>
					A detailed description of the condition that caused the error.  
				</xs:documentation>
				<xs:appinfo>
					<CallInfo>
						<AllCalls/>
						<Returned>Conditionally</Returned>
					</CallInfo>
				</xs:appinfo>
			</xs:annotation>
		</xs:element>
		<xs:element minOccurs="0" name="exceptionId" type="xs:token">
			<xs:annotation>
				<xs:documentation>
					Unique identifier for an exception associated with an error.   
				</xs:documentation>
				<xs:appinfo>
					<CallInfo>
						<AllCalls/>
						<Returned>Conditionally</Returned>
					</CallInfo>
				</xs:appinfo>
			</xs:annotation>
		</xs:element>
		<xs:element maxOccurs="unbounded" minOccurs="0" name="parameter" type="tns:ErrorParameter">
			<xs:annotation>
				<xs:documentation>
					Various warning and error messages return one or more variables that contain contextual information about the error. This is often the field or value that triggered the error.   
				</xs:documentation>
				<xs:appinfo>
					<CallInfo>
						<AllCalls/>
						<Returned>Conditionally</Returned>
					</CallInfo>
				</xs:appinfo>
			</xs:annotation>
		</xs:element>
	</xs:sequence>
</xs:complexType>


<xs:complexType name="ErrorMessage">
	<xs:annotation>
		<xs:documentation>
			Information regarding an error or warning that occurred when eBay processed the request. Not returned when the &lt;b&gt;ack&lt;/b&gt; value is &lt;b&gt;Success&lt;/b&gt;.  
		</xs:documentation>
		<xs:appinfo>
			<typeLibrarySource library="SOACommonTypeLibrary" namespace="http://www.ebay.com/marketplace/services"/>
		</xs:appinfo>
	</xs:annotation>
	<!--
		<xs:sequence> <xs:any maxOccurs="unbounded" minOccurs="0"
		processContents="lax" /> </xs:sequence>
	-->
	<xs:sequence>
		<xs:element maxOccurs="unbounded" minOccurs="0" name="error" type="tns:ErrorData">
			<xs:annotation>
				<xs:documentation>
					Details about a single error. 				
				</xs:documentation>
				<xs:appinfo>
					<CallInfo>
						<AllCalls/>
						<Returned>Conditionally</Returned>
					</CallInfo>
				</xs:appinfo>
			</xs:annotation>
		</xs:element>
	</xs:sequence>
</xs:complexType>


<xs:complexType name="ErrorParameter">
	<xs:annotation>
		<xs:documentation>
			Contextual data associated with an error. 
		</xs:documentation>
		<xs:appinfo>
			<typeLibrarySource library="SOACommonTypeLibrary" namespace="http://www.ebay.com/marketplace/services"/>
		</xs:appinfo>
	</xs:annotation>
	<xs:simpleContent>
		<xs:extension base="xs:string">
			<xs:attribute name="name" type="xs:string" use="optional">
				<xs:annotation>
					<xs:documentation>
						The name of the input parameter returned with the error. Inspecting the parameter (or its input value) will often aid in understanding the cause of the error. Not all error messages contain this value.  				
					</xs:documentation>
					<xs:appinfo>
						<CallInfo>
							<AllCalls/>
							<Returned>Conditionally</Returned>
						</CallInfo>
					</xs:appinfo>
				</xs:annotation>
			</xs:attribute>
		</xs:extension>
	</xs:simpleContent>
</xs:complexType>


<xs:simpleType name="ErrorSeverity">
	<xs:annotation>
		<xs:documentation>
			Indicates whether the error is a fatal error (causing the request to fail) or a less severe error (a warning) that should be communicated to the user. 
		</xs:documentation>
		<xs:appinfo>
			<typeLibrarySource library="SOACommonTypeLibrary" namespace="http://www.ebay.com/marketplace/services"/>
		</xs:appinfo>
	</xs:annotation>
	<xs:restriction base="xs:token">
		<xs:enumeration value="Error">
			<xs:annotation>
				<xs:documentation>
					eBay encountered a fatal error during the processing of the request, causing the request to fail. When eBay encounters an error, it returns error data instead of the requested business data. Inspect the error details and resolve the problem before resubmitting the request.				
				</xs:documentation>
			</xs:annotation>
		</xs:enumeration>
		<xs:enumeration value="Warning">
			<xs:annotation>
				<xs:documentation>
					The request was successfully processed, but eBay encountered a non-fatal error during the processing that could affect the data returned. For example, eBay might have changed the value of an input field. In this Return, eBay returns a successful response, but it also returns a warning. For best results, requests should return without warnings. Inspect the warning details and resolve the problem before resubmitting the request.				
				</xs:documentation>
			</xs:annotation>
		</xs:enumeration>
	</xs:restriction>
</xs:simpleType>


<xs:complexType name="ExtensionType">
	<xs:annotation>
		<xs:documentation>
			Reserved for future use.
		</xs:documentation>
		<xs:appinfo>
			<typeLibrarySource library="MarketPlaceServiceCommonTypeLibrary" namespace="http://www.ebay.com/marketplace/services"/>
		</xs:appinfo>
	</xs:annotation>
	<xs:sequence>
		<xs:element name="id" type="xs:positiveInteger">
			<xs:annotation>
				<xs:documentation>
					Reserved for future use.
				</xs:documentation>
				<xs:appinfo>
					<CallInfo>
						<noCalls/>
					</CallInfo>
				</xs:appinfo>
			</xs:annotation>
		</xs:element>
		<xs:element name="version" type="xs:string">
			<xs:annotation>
				<xs:documentation>
					Reserved for future use.
				</xs:documentation>
				<xs:appinfo>
					<CallInfo>
						<noCalls/>
					</CallInfo>
				</xs:appinfo>
			</xs:annotation>
		</xs:element>
		<xs:element name="contentType" type="xs:string">
			<xs:annotation>
				<xs:documentation>
					Reserved for future use.
				</xs:documentation>
				<xs:appinfo>
					<CallInfo>
						<noCalls/>
					</CallInfo>
				</xs:appinfo>
			</xs:annotation>
		</xs:element>
		<xs:element name="value" type="xs:string">
			<xs:annotation>
				<xs:documentation>
					Reserved for future use.
				</xs:documentation>
				<xs:appinfo>
					<CallInfo>
						<noCalls/>
					</CallInfo>
				</xs:appinfo>
			</xs:annotation>
		</xs:element>
		<xs:any maxOccurs="unbounded" minOccurs="0" processContents="lax"/>
	</xs:sequence>
</xs:complexType>

<!-- 	GETVERSION 		-->
<xs:element name="getVersionRequest" type="tns:GetVersionRequest"/>

<xs:complexType name="GetVersionRequest">
	<xs:annotation>
		<xs:documentation>
			This call is used to return the current version of Return Management Service. This call can
			be used to monitor the service for availability. This call has no input parameters and the
			response contains only the standard output fields.
		</xs:documentation>
		<xs:appinfo>
			<Summary>
				Returns the current version of Return Management Service.
			</Summary>
		</xs:appinfo>
	</xs:annotation>
	<xs:complexContent>
		<xs:extension base="tns:BaseRequest">
			<xs:sequence/>
		</xs:extension>
	</xs:complexContent>
</xs:complexType>

<xs:element name="getVersionResponse" type="tns:GetVersionResponse"/>

<xs:complexType name="GetVersionResponse">
	<xs:annotation>
		<xs:documentation>
			Response container for the &lt;b&gt;getVersion&lt;/b&gt; API call.
		</xs:documentation>
	</xs:annotation>
	<xs:complexContent>
		<xs:extension base="tns:BaseResponse">
		</xs:extension>
	</xs:complexContent>
</xs:complexType>

<!-- 	getUserReturns 		-->
<xs:element name="getUserReturnsRequest" type="tns:getUserReturnsRequest"/>
<xs:complexType name="getUserReturnsRequest">
	<xs:annotation>
		<xs:documentation>
			Type defining the &lt;b&gt;getUserReturns&lt;/b&gt; request. This call is used by a seller or 
			buyer to retrieve returns in which the eBay member is involved. This call can retrieve all
			returns, or filtering criteria can be used.
		</xs:documentation>
		<xs:appinfo>
			<Summary>
				This call can be used by a seller or buyer to retrieve returns in which the eBay member
				is involved. This call can retrieve all returns created within the last 30 days, or
				filtering criteria can be used.
			</Summary>
			<relatedCalls>getReturnDetail</relatedCalls>
			<relatedCallsOther>
				<apiNickname>ResoCase</apiNickname>
				<apiCallRefBaseURL>http://developer.ebay.com/Devzone/resolution-case-management/CallRef</apiCallRefBaseURL>
				<relatedCall>
					<name>getUserCases</name>
					<summary>Retrieves all eBay Buyer Protection cases and older disputes filed against the eBay member.</summary>
				</relatedCall>
			</relatedCallsOther>
		</xs:appinfo>
	</xs:annotation>
	<xs:complexContent>
		<xs:extension base="tns:BaseRequest">
			<xs:sequence>			      
				<xs:element minOccurs="0" name="itemFilter" type="tns:ItemFilterType">
					<xs:annotation>
						<xs:documentation>
							Container used to retrieve all returns related to a specific eBay listing, or to
							retrieve a return related to a specific order line item. Boolean OR logic is used if an
							eBay item ID and transaction ID are both specified. 
							&lt;br&gt;&lt;br&gt;
							If more than one filter type is used in one call, boolean AND logic is applied to the
							result set.
						</xs:documentation>
						<xs:appinfo>
							<callInfo>
								<callName>getUserReturns</callName>
								<requiredInput>No</requiredInput>
							</callInfo>
						</xs:appinfo>
					</xs:annotation>
				</xs:element>
				<xs:element minOccurs="0" name="orderId" type="xs:string">
					<xs:annotation>
						<xs:documentation>
							A unique identifier of an eBay order. This field will accept an eBay-generated
							&lt;b&gt;OrderID&lt;/b&gt; value or an &lt;b&gt;OrderLineItemID&lt;/b&gt; value,
							which is a concatenation of &lt;b&gt;ItemID&lt;/b&gt; and &lt;b&gt;TransactionID&lt;/b&gt; 
							with a hyphen separating these two IDs. 
							&lt;br&gt;&lt;br&gt;
							If an &lt;b&gt;orderId&lt;/b&gt; value is specified, any return filed against
							this order is retrieved. It is possible that multiple returns can be retrieved 
							if the order has multiple line items, and the buyer filed a return against more 
							than one of these order line items.
						</xs:documentation>
						<xs:appinfo>
							<callInfo>
								<callName>getUserReturns</callName>
								<requiredInput>No</requiredInput>
							</callInfo>
						</xs:appinfo>
					</xs:annotation>
				</xs:element>
				<xs:element minOccurs="0" name="creationDateRangeFilter" type="tns:DateRangeFilterType">
					<xs:annotation>
						<xs:documentation>
							Container used to restrict results to returns created within a specified date
							range. The specified date range is inclusive. The maximum date range that can be
							specified with this filter is 90 days. Returns with creation dates dating back
							more than 18 months cannot be retrieved. To retrieve returns for a period longer
							than 90 days, multiple &lt;b&gt;getUserReturns&lt;/b&gt; calls must be made using
							this filter and specifying different date ranges in each subsequent call. 
							&lt;br&gt;&lt;br&gt;
							If more than one filter type is used in one call, boolean AND logic is applied to the
							result set.
						</xs:documentation>
						<xs:appinfo>
							<callInfo>
								<callName>getUserReturns</callName>
								<requiredInput>No</requiredInput>
							</callInfo>
						</xs:appinfo>
					</xs:annotation>
				</xs:element>
				<xs:element minOccurs="0" name="ReturnStatusFilter" type="tns:ReturnStatusFilterType">
					<xs:annotation>
						<xs:documentation>
							Container consisting of one or more &lt;b&gt;ReturnStatus&lt;/b&gt; filters. If one
							or more &lt;b&gt;ReturnStatus&lt;/b&gt; filters are used, results are restricted to
							returns in the specified states. If return status filtering is not used, returns 
							in all states are retrieved. The &lt;b&gt;ReturnStatusFilter&lt;/b&gt; 
							container uses Boolean OR logic, which means that all returns matching the 
							specified states are retrieved.
							&lt;br&gt;&lt;br&gt;
							If more than one filter type is used in one call, boolean AND logic is applied to the
							result set.
						</xs:documentation>
						<xs:appinfo>
							<callInfo>
								<callName>getUserReturns</callName>
								<requiredInput>No</requiredInput>
							</callInfo>
						</xs:appinfo>
					</xs:annotation>
				</xs:element>
					<xs:element minOccurs="0" name="otherUserFilter" type="tns:UserFilterType">
					<xs:annotation>
						<xs:documentation>
							Container used to retrieve all returns related to a specific eBay member, who is 
							identified by role and either by user ID or login name or both. This other user 
							must be on the other side of one or more returns from the calling user.
							&lt;br&gt;&lt;br&gt;
							If more than one filter type is used in one call, boolean AND logic is applied to the
							result set.
						</xs:documentation>
						<xs:appinfo>
							<callInfo>
								<callName>getUserReturns</callName>
								<requiredInput>Yes</requiredInput>
							</callInfo>
						</xs:appinfo>
					</xs:annotation>
				</xs:element>
				<xs:element minOccurs="0" name="paginationInput" type="tns:PaginationInput">
					<xs:annotation>
						<xs:documentation>
							Container used to control the pagination of the result set, including the number of
							returns to return per page and the page number you want to return in the output.
							Pagination is typically used when the result set is expected to be large. The caller
							can then use subsequent &lt;b&gt;getUserReturns&lt;/b&gt; calls to retrieve results
							page by page by incrementing the &lt;b&gt;pageNumber&lt;/b&gt; value in the request
							each time. The caller will know the total number of pages that need to be retrieved
							by looking at the &lt;b&gt;paginationOutput.totalPages&lt;/b&gt; value in the
							response.
							&lt;br&gt;&lt;br&gt;
							If the &lt;b&gt;paginationInput&lt;/b&gt; container is not used, all returns 
							matching the filter criteria are retrieved and displayed on one "page" of the 
							response.
						</xs:documentation>
						<xs:appinfo>
							<callInfo>
								<callName>getUserReturns</callName>
								<requiredInput>No</requiredInput>
							</callInfo>
						</xs:appinfo>
					</xs:annotation>
				</xs:element>
				<xs:element minOccurs="0" name="sortType" type="tns:ReturnSortType">
					<xs:annotation>
						<xs:documentation>
							This field is used to sort returns in the response based on either return filing
							date, estimated refund amount, refund due date, or buyer login name. If this field is 
							not used, returns are sorted by filing date.
						</xs:documentation>
						<xs:appinfo>
							<default>FilingDate</default>
							<callInfo>
								<callName>getUserReturns</callName>
								<requiredInput>No</requiredInput>
							</callInfo>
						</xs:appinfo>
					</xs:annotation>
				</xs:element>
				<xs:element minOccurs="0" name="sortOrderType" type="tns:ReturnSortOrderType">
					<xs:annotation>
						<xs:documentation>
							This field is used to sort returns in the response in descending or ascending
							order. So, if &lt;b&gt;FilingDate&lt;/b&gt; is the &lt;b&gt;sortType&lt;/b&gt; being
							used, and &lt;b&gt;sortOrderType&lt;/b&gt; is set to &lt;b&gt;Descending&lt;/b&gt;, 
							returns are sorted in the response from the most recent filing date to the 
							oldest filing date. &lt;b&gt;Descending&lt;/b&gt; is the default value, so here is 
							how the results will appear for each &lt;b&gt;sortType&lt;/b&gt;:
							&lt;ul&gt;
							&lt;li&gt;&lt;b&gt;BuyerLoginName&lt;/b&gt;: Results are sorted based on name from Z to A&lt;/li&gt;
							&lt;li&gt;&lt;b&gt;EstimatedAmount&lt;/b&gt;: Results are sorted based on dollar amount from highest to lowest value&lt;/li&gt;
							&lt;li&gt;&lt;b&gt;FilingDate&lt;/b&gt;: Results are sorted based on filing date from most recent to oldest&lt;/li&gt;
							&lt;li&gt;&lt;b&gt;RefundDueDate&lt;/b&gt;: Results are sorted based on the date a refund is due to the seller from a date further in the future to a date less further in the future&lt;/li&gt;
							&lt;/ul&gt;
						</xs:documentation>
						<xs:appinfo>
							<default>Descending</default>
							<callInfo>
								<callName>getUserReturns</callName>
								<requiredInput>No</requiredInput>
							</callInfo>
						</xs:appinfo>
					</xs:annotation>
				</xs:element>
			</xs:sequence>
		</xs:extension>
	</xs:complexContent>
</xs:complexType>

<xs:element name="getUserReturnsResponse" type="tns:getUserReturnsResponse"/>
<xs:complexType name="getUserReturnsResponse">
	<xs:annotation>
		<xs:documentation>
			Type defining the response container for the &lt;b&gt;getUserReturns&lt;/b&gt; call. High-level 
			information is shown for each return that is retrieved. 
		</xs:documentation>
	</xs:annotation>
	<xs:complexContent>
		<xs:extension base="tns:BaseResponse">
			<xs:sequence>
				<xs:element maxOccurs="unbounded" minOccurs="0" name="returns" type="tns:ReturnSummaryType">
					<xs:annotation>
						<xs:documentation>
							Container consisting of high-level information for each return matching the
							input criteria. This information includes the creation and modification dates for the
							return, the reason for the return, item information, response date, and the
							current status of the return.
						</xs:documentation>
						<xs:appinfo>
							<callInfo>
								<callName>getUserReturns</callName>
								<returned>Always</returned>
							</callInfo>
						</xs:appinfo>
					</xs:annotation>
				</xs:element>
				<xs:element name="paginationOutput" type="tns:PaginationOutput">
					<xs:annotation>
						<xs:documentation>
							Pagination container consisting of fields that indicate the total number
							of pages and returns that match the input criteria, the number of returns per
							page, and the current page number being viewed. The &lt;b&gt;paginationOutput&lt;/b&gt; 
							container is always returned even if pagination values are not specified in the 
							request.
						</xs:documentation>
						<xs:appinfo>
							<callInfo>
								<callName>getUserReturns</callName>
								<returned>Always</returned>
							</callInfo>
						</xs:appinfo>
					</xs:annotation>
				</xs:element>
			</xs:sequence>
		</xs:extension>
	</xs:complexContent>
</xs:complexType>



<xs:complexType name="UserFilterType">
  <xs:annotation>
    <xs:documentation>
      Type defining the &lt;b&gt;otherUserFilter&lt;/b&gt; container, which is a filter used in 
      &lt;b&gt;getUserReturns&lt;/b&gt; to restrict results to returns involving a specific 
      buyer or seller.
    </xs:documentation>
    <xs:appinfo>
      <callInfo>
        <callName>getUserReturns</callName>
        <requiredInput>No</requiredInput>
      </callInfo>
    </xs:appinfo>
  </xs:annotation>
  <xs:sequence>
    <xs:element minOccurs="0" name="userId" type="xs:string">
      <xs:annotation>
        <xs:documentation>
          The eBay user ID for the other party involved in the return. Either a &lt;b&gt;userId&lt;/b&gt; 
          or a &lt;b&gt;userLoginName&lt;/b&gt; value must be specified in the &lt;b&gt;otherUserFilter&lt;/b&gt; 
          container.
        </xs:documentation>
        <xs:appinfo>
          <callInfo>
            <callName>getUserReturns</callName>
            <requiredInput>Conditionally</requiredInput>
          </callInfo>
        </xs:appinfo>
      </xs:annotation>
    </xs:element>
    <xs:element minOccurs="0" name="userLoginName" type="xs:string">
      <xs:annotation>
        <xs:documentation>
          The eBay user login name for the other party involved in the return. Either a &lt;b&gt;userId&lt;/b&gt; 
					or a &lt;b&gt;userLoginName&lt;/b&gt; value must be specified in the &lt;b&gt;otherUserFilter&lt;/b&gt; 
          container.
        </xs:documentation>
        <xs:appinfo>
          <callInfo>
            <callName>getUserReturns</callName>
            <requiredInput>Conditionally</requiredInput>
          </callInfo>
        </xs:appinfo>
      </xs:annotation>
    </xs:element>
    <xs:element minOccurs="0" name="role" type="tns:UserFilterRoleType">
      <xs:annotation>
        <xs:documentation>
          The role (such as buyer or seller) of the other party involved in the return. This
					field is required if the &lt;b&gt;otherUserFilter&lt;/b&gt; container is used.
        </xs:documentation>
        <xs:appinfo>
          <callInfo>
            <callName>getUserReturns</callName>
            <requiredInput>Conditionally</requiredInput>
          </callInfo>
        </xs:appinfo>
      </xs:annotation>
    </xs:element>          
  </xs:sequence>
</xs:complexType>

<xs:simpleType name="UserFilterRoleType">
     <xs:annotation>
       <xs:documentation>
         Enumerated type that contains the valid values to use in the
				 &lt;b&gt;otherUserFilter.role&lt;/b&gt; field if a user filter is used in a 
				 &lt;b&gt;getUserReturns&lt;/b&gt; request.
       </xs:documentation>
     </xs:annotation>
     <xs:restriction base="xs:string">
       <xs:enumeration value="BUYER">
         <xs:annotation>
           <xs:documentation>
             This value is specified in the &lt;b&gt;otherUserFilter.role&lt;/b&gt; field to 
             retrieve returns where the other user's role is buyer.
           </xs:documentation>
         </xs:annotation>
       </xs:enumeration>
       <xs:enumeration value="SELLER">
         <xs:annotation>
           <xs:documentation>
             This value is specified in the &lt;b&gt;otherUserFilter.role&lt;/b&gt; field to 
             retrieve returns where the other user's role is seller.
           </xs:documentation>
         </xs:annotation>
       </xs:enumeration>
       <xs:enumeration value="BUYERORSELLER">
         <xs:annotation>
           <xs:documentation>
             This value is specified in the &lt;b&gt;otherUserFilter.role&lt;/b&gt; field to 
             retrieve returns where the other user's role is buyer or seller.
           </xs:documentation>
         </xs:annotation>
       </xs:enumeration>
     </xs:restriction>
</xs:simpleType>      
<xs:complexType name="ReturnIdType">
	<xs:annotation>
		<xs:documentation>
			Type defining the unique identifier for a return.
		</xs:documentation>
	</xs:annotation>
	<xs:sequence>
		<xs:element name="id" type="xs:string">
			<xs:annotation>
				<xs:documentation>
					This string value is the unique identifier for a return, and is returned in the 
					responses of &lt;b&gt;getUserReturns&lt;/b&gt; and &lt;b&gt;getReturnDetail&lt;/b&gt;. 
					For &lt;b&gt;getReturnDetail&lt;/b&gt;, &lt;b&gt;getActivityOptions&lt;/b&gt;, 
					&lt;b&gt;issueRefund&lt;/b&gt;, and &lt;b&gt;provideSellerInfo&lt;/b&gt;, a &lt;b&gt;ReturnId&lt;/b&gt;
					is a required input field.
				</xs:documentation>
				<xs:appinfo>
					<maxLength>38</maxLength>
					<callInfo>
						<callName>getReturnDetail</callName>
						<callName>getActivityOptions</callName>
						<callName>issueRefund</callName>
						<callName>provideSellerInfo</callName>
						<requiredInput>Yes</requiredInput>
					</callInfo>
					<callInfo>
						<callName>getReturnDetail</callName>
						<callName>getUserReturns</callName>
						<returned>Always</returned>
					</callInfo>
				</xs:appinfo>
			</xs:annotation>
		</xs:element>
	</xs:sequence>
</xs:complexType>

<xs:simpleType name="ReturnSortType">
	<xs:annotation>
		<xs:documentation>
			Enumerated type that contains the valid values to use in the &lt;b&gt;sortType&lt;/b&gt;
			field. This field is used to sort returns in the response based on either return filing
			date, estimated refund amount, refund due date, or buyer login name. If this field is not
			used, returns are sorted by filing date.
		</xs:documentation>
	</xs:annotation>
	<xs:restriction base="xs:token">
		<xs:enumeration value="FilingDate">
			<xs:annotation>
				<xs:documentation>
					If this value is specified, returns are sorted based on the filing date of the return.
					If &lt;b&gt;sortOrder&lt;/b&gt; is set to &lt;b&gt;Descending&lt;/b&gt;, the most recent 
					returns will appear first in the results set. If &lt;b&gt;sortOrder&lt;/b&gt; is set
					to &lt;b&gt;Ascending&lt;/b&gt;, the oldest returns will appear first in the results
					set. &lt;b&gt;FilingDate&lt;/b&gt; is the default value, so returns will be sorted by 
					filing date if a &lt;b&gt;sortOrder&lt;/b&gt; value is not specified in the
					&lt;b&gt;getUserReturns&lt;/b&gt; request.
				</xs:documentation>
			</xs:annotation>
		</xs:enumeration>
		<xs:enumeration value="EstimatedAmount">
			<xs:annotation>
				<xs:documentation>
					If this value is specified, returns are sorted based on the estimated amount of the 
					return. If &lt;b&gt;sortOrder&lt;/b&gt; is set to &lt;b&gt;Descending&lt;/b&gt;, the 
					highest value returns will appear first in the results set. If &lt;b&gt;sortOrder&lt;/b&gt; 
					is set to &lt;b&gt;Ascending&lt;/b&gt;, the lowest value returns will appear first 
					in the results set. &lt;b&gt;FilingDate&lt;/b&gt; is the default value, so returns
					will be sorted by filing date if a &lt;b&gt;sortOrder&lt;/b&gt; value is not specified
					in the &lt;b&gt;getUserReturns&lt;/b&gt; request.
				</xs:documentation>
			</xs:annotation>
		</xs:enumeration>
		<xs:enumeration value="BuyerLoginName">
			<xs:annotation>
				<xs:documentation>
					If this value is specified, returns are sorted alphabetically based on the buyer's
					eBay login name. If &lt;b&gt;sortOrder&lt;/b&gt; is set to &lt;b&gt;Ascending&lt;/b&gt;,
					returns are sorted in alphabetical order according to eBay login name. If 
					&lt;b&gt;sortOrder&lt;/b&gt; is set to &lt;b&gt;Descending&lt;/b&gt;, returns are 
					sorted in reverse alphabetical order according to eBay login name.
					&lt;b&gt;FilingDate&lt;/b&gt; is the default value, so returns will be sorted by
					filing date if a &lt;b&gt;sortOrder&lt;/b&gt; value is not specified in the &lt;b&gt;
					getUserReturns&lt;/b&gt; request.
				</xs:documentation>
			</xs:annotation>
		</xs:enumeration>
		<xs:enumeration value="RefundDueDate">
			<xs:annotation>
				<xs:documentation>
					If this value is specified, returns are sorted based on the refund due date. If 
					&lt;b&gt;sortOrder&lt;/b&gt; is set to &lt;b&gt;Descending&lt;/b&gt;, returns with
					refund due dates the furthest in the future will appear first in the results set. If 
					&lt;b&gt;sortOrder&lt;/b&gt; is set to &lt;b&gt;Ascending&lt;/b&gt;, returns with
					refund due dates the nearest in the future will appear first in the results set. 
					&lt;b&gt;FilingDate&lt;/b&gt; is the default value, so returns will be sorted by
					filing date if a &lt;b&gt;sortOrder&lt;/b&gt; value is not specified in the 
					&lt;b&gt;getUserReturns&lt;/b&gt; request.
				</xs:documentation>
			</xs:annotation>
		</xs:enumeration>
	</xs:restriction>
</xs:simpleType>
	
<!-- 	getReturnDetail 		-->
<xs:element name="getReturnDetailRequest" type="tns:getReturnDetailRequest"/>
<xs:complexType name="getReturnDetailRequest">
	<xs:annotation>
		<xs:documentation>
			This type defines the &lt;b&gt;getReturnDetails&lt;/b&gt; request. This call requires the 
			caller to pass in the Authentication Token as described in
			&lt;a href="http://developer.ebay.com/DevZone/XML/docs/WebHelp/AuthAndAuth-.html"&gt;AuthNAuth&lt;/a&gt;.
		</xs:documentation>
		<xs:appinfo>
			<Summary>
			 This call can be used by a seller or buyer to retrieve detailed information about a specific
			 return in which they are involved.
			</Summary>
  	</xs:appinfo>
	</xs:annotation>
	<xs:complexContent>
		<xs:extension base="tns:BaseRequest">
			<xs:sequence>
				<xs:element name="ReturnId" type="tns:ReturnIdType">
					<xs:annotation>
						<xs:documentation>
							Container consisting of the unique identifier for a return. A return ID value is 
							the only input parameter for &lt;b&gt;getReturnDetail&lt;/b&gt;, and is required. 
							Return ID values are returned in the &lt;b&gt;ReturnId.id&lt;/b&gt; field of each
							&lt;b&gt;ReturnSummary&lt;/b&gt; container returned in the
							&lt;b&gt;getUserReturns&lt;/b&gt; response.
						</xs:documentation>
						<xs:appinfo>
							<maxLength>38</maxLength>
							<callInfo>
								<callName>getReturnDetail</callName>
								<requiredInput>Yes</requiredInput>
							</callInfo>
						</xs:appinfo>
					</xs:annotation>
				</xs:element>
			</xs:sequence>
		</xs:extension>
	</xs:complexContent>
</xs:complexType>

<xs:element name="getReturnDetailResponse" type="tns:getReturnDetailResponse"/>
<xs:complexType name="getReturnDetailResponse">
	<xs:annotation>
		<xs:documentation>
			Type defining the &lt;b&gt;getReturnDetail&lt;/b&gt; response. 
		</xs:documentation>
	</xs:annotation>
	<xs:complexContent>
		<xs:extension base="tns:BaseResponse">
			<xs:sequence>
				<xs:element minOccurs="0" name="ReturnSummary" type="tns:ReturnSummaryType">
					<xs:annotation>
						<xs:documentation>
							Container consisting of high-level information for the return matching the
							return ID specified in the request. This information includes the creation and
							modification dates for the return, the estimated refund amount, the reason for
							the return, item information, response date, and the current status of the return.
						</xs:documentation>
						<xs:appinfo>
							<CallInfo>
								<CallName>getReturnDetail</CallName>
								<Returned>Always</Returned>
							</CallInfo>
						</xs:appinfo>
					</xs:annotation>
				</xs:element>
				<xs:element minOccurs="0" name="ReturnDetail" type="tns:ReturnDetailType">
					<xs:annotation>
						<xs:documentation>
							Container consisting of detailed, dynamic information for the return matching
							the return ID specified in the request. This information includes 
							the return status, return activity log, returned item status, return
							shipping information (including an RMA if applicable), refund details, and eBay Buyer
							Protection case information (if applicable).
						</xs:documentation>
						<xs:appinfo>
							<CallInfo>
								<CallName>getReturnDetail</CallName>
								<Returned>Always</Returned>
							</CallInfo>
						</xs:appinfo>
					</xs:annotation>
				</xs:element>
			</xs:sequence>
		</xs:extension>
	</xs:complexContent>
</xs:complexType>

<!-- 	GETACTIVITYOPTIONS 		-->
	<xs:element name="getActivityOptionsRequest" type="tns:GetActivityOptionsRequest"/>
	<xs:complexType name="GetActivityOptionsRequest">
		<xs:annotation>
  		<xs:documentation>
		  	Type defining the &lt;b&gt;getActivityOptions&lt;/b&gt; request. This call is used by a
				seller to retrieve one or more actions that can be performed based on the status of the
				return.
  		</xs:documentation>
  		<xs:appinfo>
				<Summary>
					This call is used by a seller to retrieve one or more actions that can be performed based
					on the status of the return.
				</Summary>
  		</xs:appinfo>
		</xs:annotation>
		<xs:complexContent>
  			<xs:extension base="tns:BaseRequest">
  				<xs:sequence>
					<xs:element name="ReturnId" type="tns:ReturnIdType">
					<xs:annotation>
						<xs:documentation>
							Container consisting of the unique identifier for a return. A return ID value is 
							the only input parameter for &lt;b&gt;getActivityOptions&lt;/b&gt;, and is required. 
							Return ID values are returned in the &lt;b&gt;ReturnId.id&lt;/b&gt; field of each
							&lt;b&gt;ReturnSummary&lt;/b&gt; container returned in the
							&lt;b&gt;getUserReturns&lt;/b&gt; response.						
						</xs:documentation>
						<xs:appinfo>
							<maxLength>38</maxLength>
							<callInfo>
								<callName>getActivityOptions</callName>
								<requiredInput>Yes</requiredInput>
							</callInfo>
						</xs:appinfo>
					</xs:annotation>
					</xs:element>
				</xs:sequence>
  			</xs:extension>
		</xs:complexContent>
	</xs:complexType>

	<xs:element name="getActivityOptionsResponse" type="tns:GetActivityOptionsResponse"/>
	<xs:complexType name="GetActivityOptionsResponse">
		<xs:annotation>
  		<xs:documentation>
  			Type defining the &lt;b&gt;getActivityOptions&lt;/b&gt; response. The seller's possible 
  			next step(s) is returned in &lt;b&gt;activityOptions&lt;/b&gt; field. Consumers of this 
  			service can map the activity to the corresponding Return Management API call.
  		</xs:documentation>
		</xs:annotation>
		<xs:complexContent>
  			<xs:extension base="tns:BaseResponse">
	  		<xs:sequence>
	  			<xs:element maxOccurs="unbounded" minOccurs="0" name="activityOptions" type="tns:ActivityOptionType">
	  					<xs:annotation>
  						<xs:documentation>
  							The returned value indicates the next possible action that a seller can take to
								resolve a return. If &lt;b&gt;ISSUE_REFUND&lt;/b&gt; is returned, the
								next logical step would be to call &lt;b&gt;issueRefund&lt;/b&gt;. If 
								&lt;b&gt;PROVIDE_SELLER_INFO&lt;/b&gt; is returned, the next logical step would be 
								to call &lt;b&gt;provideSellerInfo&lt;/b&gt;. The value that is returned is dependent on 
								the status of the return.
  						</xs:documentation>
  						<xs:appinfo>
								<callInfo>
									<callName>getActivityOptions</callName>
									<returned>Always</returned>
								</callInfo>
						</xs:appinfo>
						</xs:annotation>
	  			</xs:element>
	  		</xs:sequence>
  			</xs:extension>
		</xs:complexContent>
	</xs:complexType>

	<!-- 	ISSUE REFUND	 -->
	<xs:element name="issueRefundRequest" type="tns:IssueRefundRequest"/>
	<xs:complexType name="IssueRefundRequest">
	<xs:annotation>
  		<xs:documentation>
		  	Type defining the &lt;b&gt;issueRefund&lt;/b&gt; request. This call is used by a seller
				to issue a refund (PayPal only) to the buyer to resolve a return. The refund operation
				may involve one or more of the following: purchase price refund, original shipping
				refund, and/or a restocking fee refund.
  		</xs:documentation>
  		<xs:appinfo>
				<Summary>
					This call is used by a seller to issue a refund (PayPal only) to the buyer.
				</Summary>
  		</xs:appinfo>
		</xs:annotation>
		<xs:complexContent>
  			<xs:extension base="tns:BaseRequest">
  				<xs:sequence>
					<xs:element name="ReturnId" type="tns:ReturnIdType">
					<xs:annotation>
						<xs:documentation>
							Container consisting of the unique identifier for a return. A return ID value is 
							required and the seller should take all precautions to make sure this value is 
							correct before making the call. Return ID values are returned in the &lt;b&gt;ReturnId.id&lt;/b&gt; 
							field of each &lt;b&gt;ReturnSummary&lt;/b&gt; container returned in the 
							&lt;b&gt;getUserReturns&lt;/b&gt; response.
						</xs:documentation>
						<xs:appinfo>
							<maxLength>38</maxLength>
							<callInfo>
								<callName>issueRefund</callName>
								<requiredInput>Yes</requiredInput>
							</callInfo>
						</xs:appinfo>
					</xs:annotation>
					</xs:element>
					<xs:element minOccurs="0" name="refundDetail" type="tns:RefundDetailType">
							<xs:annotation>
								<xs:documentation>
									Container consisting of details related to the type and amount of the refund to 
									the buyer.
								</xs:documentation>
								<xs:appinfo>
									<callInfo>
										<callName>issueRefund</callName>
										<requiredInput>Yes</requiredInput>
									</callInfo>
								</xs:appinfo>
							</xs:annotation>
					</xs:element>
					<xs:element  minOccurs="0" name="comments" type="xs:string">
						 <xs:annotation>
						 <xs:documentation>
							In this optional field, the seller can include a message to the buyer concerning the
							refund.
						 </xs:documentation>
						 <xs:appinfo>					
							<callInfo>
								<callName>issueRefund</callName>
								<requiredInput>No</requiredInput>
							</callInfo>
						 </xs:appinfo>
						</xs:annotation>
					</xs:element>
				</xs:sequence>
  			</xs:extension>
		</xs:complexContent>
	</xs:complexType>

	<xs:element name="issueRefundResponse" type="tns:IssueRefundResponse"/>
	<xs:complexType name="IssueRefundResponse">
		<xs:annotation>
  		<xs:documentation>
	  		Type defining the &lt;b&gt;issueRefund&lt;/b&gt; response. The only call-specific output 
	  		field of &lt;b&gt;issueRefund&lt;/b&gt; is &lt;b&gt;RefundStatus&lt;/b&gt;.
  		</xs:documentation>
		</xs:annotation>
		<xs:complexContent>
  			<xs:extension base="tns:BaseResponse">
  			<xs:sequence>
	  			<xs:element minOccurs="0" name="RefundStatus" type="tns:RefundStatusType">
	  					<xs:annotation>
  						<xs:documentation>
  							The returned value indicates the result of the attempted refund. The three possible 
  							values are &lt;b&gt;SUCCESS&lt;/b&gt;, &lt;b&gt;FAILED&lt;/b&gt;, or &lt;b&gt;PENDING&lt;/b&gt;.
  						</xs:documentation>
  						<xs:appinfo>					
								<callInfo>
									<callName>issueRefund</callName>
									<returned>Always</returned>
								</callInfo>
						 </xs:appinfo>
						</xs:annotation>
	  			</xs:element>	  		
	  		</xs:sequence>	  		
  			</xs:extension>
		</xs:complexContent>
	</xs:complexType>
	
	
<!-- 	PROVIDERETURNINFO		 -->
	<xs:element name="provideSellerInfoRequest" type="tns:ProvideSellerInfoRequest"/>
	<xs:complexType name="ProvideSellerInfoRequest">
		<xs:annotation>
  		<xs:documentation>
		  	Type defining the &lt;b&gt;provideSellerInfo&lt;/b&gt; request. This call is used by a seller to
				provide a Return Merchandise Authorization number and/or a return shipping address to the 
				buyer.
  		</xs:documentation>
  		<xs:appinfo>
	  	<Summary>
				This call is used by a seller to provide a Return Merchandise Authorization number and/or
				an alternative return shipping address.
			</Summary>
  		</xs:appinfo>
		</xs:annotation>
		<xs:complexContent>
  			<xs:extension base="tns:BaseRequest">
	  		<xs:sequence>
	  			<xs:element name="ReturnId" type="tns:ReturnIdType">
					<xs:annotation>
						<xs:documentation>
							Container consisting of the unique identifier for a return. A return ID value is
							required and the seller should take all precautions to make sure this value and the 
							Return Merchandise Authorization number match before making the call. Return ID values
							are returned in the &lt;b&gt;ReturnId.id&lt;/b&gt; field of each &lt;b&gt;ReturnSummary&lt;/b&gt; 
							container returned in the &lt;b&gt;getUserReturns&lt;/b&gt; response.
						</xs:documentation>
						<xs:appinfo>
							<maxLength>38</maxLength>
							<callInfo>
								<callName>provideSellerInfo</callName>
								<requiredInput>Yes</requiredInput>
							</callInfo>
						</xs:appinfo>
					</xs:annotation>
				</xs:element>	  			
	  			<xs:element minOccurs="0" name="returnMerchandiseAuthorization" type="xs:string">
					   <xs:annotation>
							 <xs:documentation>
								The Return Merchandise Authorization number associated with the item to be returned.
								An RMA number is a unique identifier that is provided by a manufacturer and
								authorizes the return of an item.
							 </xs:documentation>
					     <xs:appinfo>					
								<callInfo>
									<MaxLength>15</MaxLength>
									<callName>provideSellerInfo</callName>
									<requiredInput>Conditionally</requiredInput>
								</callInfo>
						 	 </xs:appinfo>
						</xs:annotation>
				</xs:element>
				<xs:element minOccurs="0" name="returnAddress" type="tns:Address">
						 	<xs:annotation>
								<xs:documentation>
									This optional container allows the seller to provide an alternative return shipping address to
									the buyer. If not provided, the seller's primary return address on record is used as
									the return address.
								</xs:documentation>
					 			<xs:appinfo>                                        
									<callInfo>
							 			<callName>provideSellerInfo</callName>
							 			<requiredInput>No</requiredInput>
									</callInfo>
								</xs:appinfo>
							</xs:annotation>
				</xs:element>				
	  		</xs:sequence>	  
  			</xs:extension>
		</xs:complexContent>
	</xs:complexType>

	<xs:element name="provideSellerInfoResponse" type="tns:ProvideSellerInfoResponse"/>
	<xs:complexType name="ProvideSellerInfoResponse">
		<xs:annotation>
  		<xs:documentation>
				Type defining the &lt;b&gt;provideSellerInfo&lt;/b&gt; response. There are no call-specific fields 
				in the &lt;b&gt;provideSellerInfo&lt;/b&gt; response. The caller should look for an
				&lt;b&gt;ack&lt;/b&gt; value of success to determine the success of the call.
	  	</xs:documentation>
		</xs:annotation>
		<xs:complexContent>
			<xs:extension base="tns:BaseResponse">
			</xs:extension>
		</xs:complexContent>
	</xs:complexType>
	
	
	<!-- 	GETRETURNMETADATA		 -->
	<xs:element name="getReturnMetadataRequest" type="tns:GetReturnMetadataRequest"/>
	<xs:complexType name="GetReturnMetadataRequest">
		<xs:annotation>
  		<xs:documentation>
		  	Type defining the &lt;b&gt;getReturnMetadata&lt;/b&gt; request. This call is used by a
				seller to get a list of possible return reasons, the refund due date, the RMA due date, 
				or all three.
  		</xs:documentation>
  		<xs:appinfo>
	  	<Summary>
        This call is used by a seller to get a list of possible return reasons, the refund due
				date, the RMA due date, or all three.
      </Summary>
  		</xs:appinfo>
		</xs:annotation>
		<xs:complexContent>
  			<xs:extension base="tns:BaseRequest">
	  		<xs:sequence>	  				  			
	  			<xs:element minOccurs="0" maxOccurs="unbounded" name="metadataEntryCode" type="tns:MetadataCodeType">
					   <xs:annotation>
							 <xs:documentation>
								This optional, repeatable filter allows the seller to control which return metadata
								is retrieved in the response. If no filter is used, all return metadata is retrieved in the 
								response.
							 </xs:documentation>
					     <xs:appinfo>					
								<callInfo>
									<callName>getReturnMetadata</callName>
									<requiredInput>No</requiredInput>
								</callInfo>
						 	 </xs:appinfo>
						</xs:annotation>
				</xs:element>				
	  		</xs:sequence>	  
  			</xs:extension>
		</xs:complexContent>
	</xs:complexType>

	<xs:element name="getReturnMetadataResponse" type="tns:GetReturnMetadataResponse"/>
	<xs:complexType name="GetReturnMetadataResponse">
		<xs:annotation>
  		<xs:documentation>
	  		Type defining the &lt;b&gt;getReturnMetadata&lt;/b&gt; response. 
  		</xs:documentation>
		</xs:annotation>
		<xs:complexContent>
			<xs:extension base="tns:BaseResponse">
				<xs:sequence>		  			
		  			<xs:element minOccurs="0" maxOccurs="unbounded" name="metadataCodeValues" type="tns:MetaDataCodeResultType">
	  					<xs:annotation>
								<xs:documentation>
									Container consisting of a return metadata type and value. The return metadata that
									is retrieved is dependent on the &lt;b&gt;metadataEntryCode&lt;/b&gt; value(s) 
									that are passed in the request. If no &lt;b&gt;metadataEntryCode&lt;/b&gt; value(s) 
									are passed in the request, all return metadata is retrieved.
								</xs:documentation>
								<xs:appinfo>                                        
									<callInfo>
										<callName>getReturnMetadata</callName>
										<returned>Always</returned>
									</callInfo>
								</xs:appinfo>
							</xs:annotation>
	  			 </xs:element>  		
	  		</xs:sequence>	 		
			</xs:extension>
		</xs:complexContent>
	</xs:complexType>
	
<xs:complexType name="ItemFilterType">
	<xs:annotation>
		<xs:documentation>
			Type defining the &lt;b&gt;itemFilter&lt;/b&gt; container in the &lt;b&gt;getUserReturns&lt;/b&gt; 
			request. This container is used to retrieve all returns related to a specific eBay
			listing or to a specific order line item.
		</xs:documentation>
	</xs:annotation>
	<xs:sequence>
		<xs:element name="itemId" type="xs:string">
			<xs:annotation>
				<xs:documentation>
					The unique identifier for an eBay item listing. If specified, all returns filed
					against any of this item listing's order line items are retrieved.
					&lt;br&gt;&lt;br&gt;
					An &lt;b&gt;itemId&lt;/b&gt; value is required if the &lt;b&gt;itemFilter&lt;/b&gt;
					container is used. If a &lt;b&gt;transactionId&lt;/b&gt; value is used to identify a 
					specific eBay order line item, that &lt;b&gt;transactionId&lt;/b&gt; value must be 
					associated with the &lt;b&gt;itemId&lt;/b&gt; value or an error occurs.
				</xs:documentation>
				<xs:appinfo>
					<maxLength>19</maxLength>
					<callInfo>
						<callName>getUserReturns</callName>
						<requiredInput>Conditionally</requiredInput>
					</callInfo>
				</xs:appinfo>
			</xs:annotation>
		</xs:element>
		<xs:element minOccurs="0" name="transactionId" type="xs:string">
			<xs:annotation>
				<xs:documentation>
					The unique identifier for an eBay order line item. If a &lt;b&gt;transactionId&lt;/b&gt;
					value is specified, any return filed against this order line item is retrieved. The
					&lt;b&gt;transactionId&lt;/b&gt; value must be associated with the
					&lt;b&gt;itemId&lt;/b&gt; value or an error occurs.
				</xs:documentation>
				<xs:appinfo>
					<maxLength>19</maxLength>
					<callInfo>
						<callName>getUserReturns</callName>
						<requiredInput>No</requiredInput>
					</callInfo>
				</xs:appinfo>
			</xs:annotation>
		</xs:element>
	</xs:sequence>
</xs:complexType>


<xs:complexType name="DateRangeFilterType">
	<xs:annotation>
		<xs:documentation>
			Type defining the &lt;b&gt;dateRangeFilter&lt;/b&gt; container in the &lt;b&gt;getUserReturns&lt;/b&gt; 
			request. This container is used to restrict results to returns created within a specified
			date range.
		</xs:documentation>
	</xs:annotation>
	<xs:sequence>
		<xs:element name="fromDate" type="xs:dateTime">
			<xs:annotation>
				<xs:documentation>
					The starting date for the date range. The &lt;b&gt;fromDate&lt;/b&gt; must be older than
					the &lt;b&gt;toDate&lt;/b&gt;, and it cannot be set back more than 18 months in the past. 
					This field is required if the &lt;b&gt;dateRangeFilter&lt;/b&gt; container is used.
					&lt;br&gt;&lt;br&gt;
					If more than one filter type is used in one call, boolean AND logic is applied to the
					result set.
				</xs:documentation>
				<xs:appinfo>
					<callInfo>
						<callName>getUserReturns</callName>
						<requiredInput>Conditionally</requiredInput>
					</callInfo>
				</xs:appinfo>
			</xs:annotation>
		</xs:element>
		<xs:element minOccurs="0" name="toDate" type="xs:dateTime">
			<xs:annotation>
				<xs:documentation>
					The ending date for the date range. The &lt;b&gt;toDate&lt;/b&gt; must be
					more recent than the &lt;b&gt;fromDate&lt;/b&gt;. This field is optional. If
					it is omitted, all returns created from the &lt;b&gt;fromDate&lt;/b&gt; up to
					the present (system date) are returned, unless the range specified by the
					&lt;b&gt;fromDate&lt;/b&gt; and the present date is greater than 90 days, in
					which case the &lt;b&gt;toDate&lt;/b&gt; defaults to 90 days forward from the
					&lt;b&gt;fromDate&lt;/b&gt;.
				</xs:documentation>
					<xs:appinfo>
						<callInfo>
							<callName>getUserReturns</callName>
							<requiredInput>No</requiredInput>
						</callInfo>
					</xs:appinfo>
			</xs:annotation>
		</xs:element>
	</xs:sequence>
</xs:complexType>


<xs:complexType name="ReturnStatusFilterType">
	<xs:annotation>
		<xs:documentation>
			Type defining the &lt;b&gt;ReturnStatusFilter&lt;/b&gt; container. This container is used to
			retrieve returns in specific states.
			If one or more &lt;b&gt;ReturnStatus&lt;/b&gt; filters are used, results are restricted to
			returns in the specified states. If return status filtering is not used, returns 
			in all states are retrieved. The &lt;b&gt;ReturnStatusFilter&lt;/b&gt; 
			container uses Boolean OR logic, which means that all returns matching the 
			specified states are retrieved.
		</xs:documentation>
	</xs:annotation>
	<xs:sequence>
		<xs:element maxOccurs="unbounded" minOccurs="1" name="ReturnStatus" type="tns:ReturnStatusInputType">
			<xs:annotation>
				<xs:documentation>
					To retrieve returns in a specific state (such as open, closed, item shipped, etc.),
					pass in a &lt;b&gt;ReturnStatusInputType&lt;/b&gt; value. At least one &lt;b&gt;ReturnStatus&lt;/b&gt; 
					field is required if the &lt;b&gt;ReturnStatusFilter&lt;/b&gt; container is used, and
					multiple &lt;b&gt;ReturnStatus&lt;/b&gt; values are allowed.
				</xs:documentation>
				<xs:appinfo>
					<callInfo>
						<callName>getUserReturns</callName>
						<requiredInput>Conditionally</requiredInput>
					</callInfo>
				</xs:appinfo>
			</xs:annotation>
		</xs:element>		
	</xs:sequence>
</xs:complexType>

<xs:complexType name="MetaDataCodeResultType">
	<xs:annotation>
		<xs:documentation>
			Type defining the &lt;b&gt;metadataCodeValues&lt;/b&gt; container that is returned in the 
			&lt;b&gt;getReturnMetadata&lt;/b&gt; response. The &lt;b&gt;metadataCodeValues&lt;/b&gt; 
			container consists of either a &lt;b&gt;REFUND_DUE_UPON_ITEM_ARRIVAL&lt;/b&gt;, a 
			&lt;b&gt;RMA_DUE_UPON_RETURN_START&lt;/b&gt;, or a &lt;b&gt;RETURN_REASONS&lt;/b&gt; value.
			The metadata that is returned is dependent on the &lt;b&gt;metadataEntryCode&lt;/b&gt;
			value(s) that are passed in the request.
		</xs:documentation>
	</xs:annotation>
	<xs:sequence>
		<xs:element minOccurs="1" name="codeName" type="tns:MetadataCodeType">
			<xs:annotation>
				<xs:documentation>
					Either &lt;b&gt;RETURN_REASONS&lt;/b&gt;, &lt;b&gt;REFUND_DUE_UPON_ITEM_ARRIVAL&lt;/b&gt;,  
					or &lt;b&gt;RMA_DUE_UPON_RETURN_START&lt;/b&gt; is returned in this field, based on the 
					use (or omittance) of the &lt;b&gt;metadataEntryCode&lt;/b&gt; field of the
					&lt;b&gt;getReturnMetadata&lt;/b&gt; request. 
				</xs:documentation>
				<xs:appinfo>
					<callInfo>
						<callName>getReturnMetadata</callName>
						<returned>Always</returned>
					</callInfo>
				</xs:appinfo>
			</xs:annotation>
		</xs:element>	
		<xs:element minOccurs="1" maxOccurs="unbounded" name="value" type="xs:string">
			<xs:annotation>
				<xs:documentation>
					The string (token) value that appears here is associated with the &lt;b&gt;codeName&lt;/b&gt; 
					value. 
					&lt;br/&gt;&lt;br/&gt;
					For &lt;b&gt;RETURN_REASONS&lt;/b&gt;, values include &lt;b&gt;CHANGED_MY_MIND&lt;/b&gt;, 
					&lt;b&gt;ARRIVED_DAMAGED&lt;/b&gt;, and &lt;b&gt;NOT_AS_DESCRIBED&lt;/b&gt;. These 
					values are dependent on the return reason the buyer selects when the return is opened.  
					&lt;br/&gt;&lt;br/&gt;
					For &lt;b&gt;REFUND_DUE_UPON_ITEM_ARRIVAL&lt;/b&gt;, the value indicates the maximum number
					of business days a seller has to issue a refund to the buyer after the seller receives the returned item.
					&lt;br/&gt;&lt;br/&gt;
					For &lt;b&gt;RMA_DUE_UPON_RETURN_START&lt;/b&gt;, the value indicates the maximum number of
					business days a seller has to provide a Return Merchandise Authorization number (if an RMA is
					requested) to the buyer once a return is opened.
				</xs:documentation>
				<xs:appinfo>
					<callInfo>
						<callName>getReturnMetadata</callName>
						<returned>Always</returned>
					</callInfo>
				</xs:appinfo>
			</xs:annotation>
		</xs:element>		
	</xs:sequence>
</xs:complexType>


<xs:simpleType name="MetadataEntryType">
	<xs:annotation>
		<xs:documentation>
			Enumerated type that defines the possible values that can be passed into the
			&lt;b&gt;metadataEntryType&lt;/b&gt; field of the &lt;b&gt;getReturnMetadata&lt;/b&gt; 
			request. 
		</xs:documentation>
	</xs:annotation>
	<xs:restriction base="xs:token">
		<xs:enumeration value="META_DATA_CODE">
			<xs:annotation>
				<xs:documentation>
					If this value is passed in, only information related to specific metadata is returned in 
					the &lt;b&gt;getReturnMetadata&lt;/b&gt; response.
				</xs:documentation>
			</xs:annotation>
		</xs:enumeration>	
		<xs:enumeration value="ALL">
			<xs:annotation>
				<xs:documentation>
					If this value is passed in, all metadata information is returned in the 
					&lt;b&gt;getReturnMetadata&lt;/b&gt; response. &lt;b&gt;ALL&lt;/b&gt; is the default 
					value if the &lt;b&gt;metadataEntryType&lt;/b&gt; field is not used in the &lt;b&gt;getReturnMetadata&lt;/b&gt; 
					request. 
				</xs:documentation>
			</xs:annotation>
		</xs:enumeration>
	</xs:restriction>
</xs:simpleType>

<xs:simpleType name="MetadataCodeType">
	<xs:annotation>
		<xs:documentation>
			Enumerated type that defines the metadata values used by the
			&lt;b&gt;getReturnMetadata&lt;/b&gt; call. In the &lt;b&gt;getReturnMetadata&lt;/b&gt; 
			request, these values are passed into the &lt;b&gt;metadataEntryCode&lt;/b&gt; field, and in 
			the &lt;b&gt;getReturnMetadata&lt;/b&gt; response, these values are returned in the 
			&lt;b&gt;metadataCodeValues.codeName&lt;/b&gt; field.
		</xs:documentation>
	</xs:annotation>
	<xs:restriction base="xs:token">
		<xs:enumeration value="REFUND_DUE_UPON_ITEM_ARRIVAL">
			<xs:annotation>
				<xs:documentation>
					This value is passed into the &lt;b&gt;metadataEntryCode&lt;/b&gt; field of the &lt;b&gt;getReturnMetadata&lt;/b&gt; 
					request to retrieve the maximum number of business days a seller has to issue a refund to the buyer upon 
					receiving the returned item. The number of days can be found in the 
					&lt;b&gt;metadataCodeValues.value&lt;/b&gt; field of the &lt;b&gt;getReturnMetadata&lt;/b&gt; 
					response. A refund can be issued to the buyer through the &lt;b&gt;issueRefund&lt;/b&gt; 
					call.
				</xs:documentation>
			</xs:annotation>
		</xs:enumeration>
		<xs:enumeration value="RMA_DUE_UPON_RETURN_START">
			<xs:annotation>
				<xs:documentation>
					This value is passed into the &lt;b&gt;metadataEntryCode&lt;/b&gt; field of the &lt;b&gt;getReturnMetadata&lt;/b&gt; 
					request to retrieve the maximum number of business days after the return filing date that a seller
					has to provide an Return Merchandise Authorization number (if requested) to the buyer. 
					The number of days can be found in the &lt;b&gt;metadataCodeValues.value&lt;/b&gt; field
					of the &lt;b&gt;getReturnMetadata&lt;/b&gt; response. An RMA can be provided to the buyer
					through the &lt;b&gt;provideSellerInfo&lt;/b&gt; call.
				</xs:documentation>
			</xs:annotation>
		</xs:enumeration>
		<xs:enumeration value="RETURN_REASONS">
			<xs:annotation>
				<xs:documentation>
					This value is passed into the &lt;b&gt;metadataEntryCode&lt;/b&gt; field of the &lt;b&gt;getReturnMetadata&lt;/b&gt; 
					request to retrieve the reason the buyer is returning the item. The return reasons 
					are found in the &lt;b&gt;metadataCodeValues.value&lt;/b&gt;
					field of the &lt;b&gt;getReturnMetadata&lt;/b&gt; response. 
				</xs:documentation>
			</xs:annotation>
		</xs:enumeration>			
	</xs:restriction>
</xs:simpleType>

<xs:simpleType name="ReturnStatusInputType">
	<xs:annotation>
		<xs:documentation>
			Enumerated type that defines the return status values that can be passed into the 
			&lt;b&gt;ReturnStatusFilter&lt;/b&gt; container and used as filters for the
			&lt;b&gt;getUserReturns&lt;/b&gt; call. 
		</xs:documentation>
		<xs:appinfo>
			<onlyTheseValues>CLOSED, ITEM_SHIPPED, MY_RESPONSE_DUE, OTHER_PARTY_RESPONSE_DUE, RETURN_STARTED</onlyTheseValues>
		</xs:appinfo>
	</xs:annotation>
	<xs:restriction base="xs:token">
		<xs:enumeration value="RETURN_STARTED">
			<xs:annotation>
				<xs:documentation>
					This value is passed into the &lt;b&gt;ReturnStatusFilter.ReturnStatus&lt;/b&gt; field of
					the &lt;b&gt;getUserReturns&lt;/b&gt; request to retrieve all open returns. If  
					&lt;b&gt;RETURN_STARTED&lt;/b&gt; is used as a filter, returns in the following 
					states (these values are indicated in the &lt;b&gt;Returns.ReturnSummary.status&lt;/b&gt; 
					field) are returned:
					&lt;ul&gt;
					&lt;li&gt;MY_PAYMENT_DUE&lt;/li&gt;
					&lt;li&gt;MY_RESPONSE_DUE&lt;/li&gt;
					&lt;li&gt;OTHER_PARTY_CONTACTED_CS_AWAITING_RESPONSE&lt;/li&gt;
					&lt;li&gt;OTHER_PARTY_RESPONSE_DUE&lt;/li&gt;
					&lt;li&gt;PAID&lt;/li&gt;
					&lt;li&gt;WAITING_DELIVERY&lt;/li&gt;
					&lt;li&gt;YOU_CONTACTED_CS_AWAITING_RESPONSE&lt;/li&gt;
					&lt;/ul&gt;
				</xs:documentation>
			</xs:annotation>
		</xs:enumeration>
		<xs:enumeration value="CLOSED">
			<xs:annotation>
				<xs:documentation>
					This value is passed into the &lt;b&gt;ReturnStatusFilter.ReturnStatus&lt;/b&gt; field of
					the &lt;b&gt;getUserReturns&lt;/b&gt; request to retrieve all closed returns. If  
					&lt;b&gt;CLOSED&lt;/b&gt; is used as a filter, returns in the following 
					states (these values are indicated in the &lt;b&gt;Returns.ReturnSummary.status&lt;/b&gt; 
					field) are returned:
					&lt;ul&gt;
					&lt;li&gt;CLOSED&lt;/li&gt;
					&lt;li&gt;CS_CLOSED&lt;/li&gt;
					&lt;li&gt;EXPIRED&lt;/li&gt;
					&lt;li&gt;YOU_CONTACTED_CS_ABOUT_CLOSED_Return&lt;/li&gt;
					&lt;/ul&gt;
				</xs:documentation>
			</xs:annotation>
		</xs:enumeration>
    <xs:enumeration value="ITEM_SHIPPED">
      <xs:annotation>
        <xs:documentation>
          This value is passed into the &lt;b&gt;ReturnStatusFilter.ReturnStatus&lt;/b&gt; field of
					the &lt;b&gt;getUserReturns&lt;/b&gt; request to retrieve all returns with the 
					status of WAITING_DELIVERY. Return status values are indicated in the 
					&lt;b&gt;Returns.ReturnSummary.status&lt;/b&gt; field.
        </xs:documentation>
      </xs:annotation>
    </xs:enumeration>
		<xs:enumeration value="MY_RESPONSE_DUE">
			<xs:annotation>
				<xs:documentation>
					This value is passed into the &lt;b&gt;ReturnStatusFilter.ReturnStatus&lt;/b&gt; field of
					the &lt;b&gt;getUserReturns&lt;/b&gt; request to retrieve all returns in which the 
					seller's response is due. The two applicable return status values returned in the 
					&lt;b&gt;Returns.ReturnSummary.status&lt;/b&gt; field are MY_PAYMENT_DUE and 
					MY_RESPONSE_DUE. The MY_PAYMENT_DUE value indicates that the seller is expected to issue 
					a refund to the buyer. The MY_RESPONSE_DUE value can indicate that the seller must 
					provide an RMA number to the buyer, or the seller must contact eBay customer support.
				</xs:documentation>
			</xs:annotation>
		</xs:enumeration>
		<xs:enumeration value="OTHER_PARTY_RESPONSE_DUE">
			<xs:annotation>
				<xs:documentation>
					This value is passed into the &lt;b&gt;ReturnStatusFilter.ReturnStatus&lt;/b&gt; field of
					the &lt;b&gt;getUserReturns&lt;/b&gt; request to retrieve all returns in which the 
					other party's response is due. The only applicable return status value returned in 
					&lt;b&gt;Returns.ReturnSummary.status&lt;/b&gt; field is OTHER_PARTY_RESPONSE_DUE.
				</xs:documentation>
			</xs:annotation>
		</xs:enumeration>
	</xs:restriction>
</xs:simpleType>


<xs:simpleType name="ReturnSortOrderType">
	<xs:annotation>
		<xs:documentation>
			Enumerated type that determines whether returns in the &lt;b&gt;getUserReturns&lt;/b&gt; 
			response are displayed in ascending or descending order. 		
		</xs:documentation>
	</xs:annotation>
	<xs:restriction base="xs:token">
		<xs:enumeration value="Ascending">
			<xs:annotation>
				<xs:documentation>
					This value is passed into the &lt;b&gt;sortOrderType&lt;/b&gt; field of the 
					&lt;b&gt;getUserReturns&lt;/b&gt; call to display all retrieved returns in ascending
					order. See the &lt;b&gt;ReturnSortType&lt;/b&gt; documentation to get an idea about how 
					&lt;b&gt;Ascending&lt;/b&gt; affects the four different sort types.
				</xs:documentation>
			</xs:annotation>
		</xs:enumeration>
		<xs:enumeration value="Descending">
			<xs:annotation>
				<xs:documentation>
					This value is passed into the &lt;b&gt;sortOrderType&lt;/b&gt; field of the 
					&lt;b&gt;getUserReturns&lt;/b&gt; call to display all retrieved returns in descending
					order. See the &lt;b&gt;ReturnSortType&lt;/b&gt; documentation to get an idea about how 
					&lt;b&gt;Descending&lt;/b&gt; affects the four different sort types. &lt;b&gt;Descending&lt;/b&gt; 
					is the default value and will be used if the &lt;b&gt;sortOrderType&lt;/b&gt; field is not 
					included in the &lt;b&gt;getUserReturns&lt;/b&gt; request.
				</xs:documentation>
			</xs:annotation>
		</xs:enumeration>
	</xs:restriction>
</xs:simpleType>


<xs:complexType name="ReturnArrayType">
	<xs:annotation>
		<xs:documentation>
			Type defining the &lt;b&gt;Returns&lt;/b&gt; container in the &lt;b&gt;getUserReturns&lt;/b&gt; 
			response. The &lt;b&gt;Returns&lt;/b&gt; container is a root container that consists of one 
			or more returns. A &lt;b&gt;ReturnsSummary&lt;/b&gt; node is returned for each return 
			that is retrieved.
		</xs:documentation>
	</xs:annotation>
	<xs:sequence>
		<xs:element maxOccurs="unbounded" minOccurs="0" name="ReturnSummary" type="tns:ReturnSummaryType">
			<xs:annotation>
				<xs:documentation>
					Container consisting of high-level information for a return. A &lt;b&gt;ReturnSummary&lt;/b&gt;
					container is returned in the &lt;b&gt;getUserReturns&lt;/b&gt; request for each return 
					matching the input criteria. This information includes the creation and modification
					dates for the return, the estimated refund amount, the reason for the return, item
					information, response date, and the current status of the return.
				</xs:documentation>
				<xs:appinfo>
					<callInfo>
						<callName>getUserReturns</callName>
						<returned>Always</returned>
					</callInfo>
				</xs:appinfo>
			</xs:annotation>
		</xs:element>
	</xs:sequence>
</xs:complexType>

<xs:complexType name="ReturnResponseDueType">
	<xs:annotation>
		<xs:documentation>
			Type defining the &lt;b&gt;responseDue&lt;/b&gt; container returned in the requests of 
			the &lt;b&gt;getUserReturns&lt;/b&gt; and &lt;b&gt;getReturnDetail&lt;/b&gt; calls. The 
			&lt;b&gt;responseDue&lt;/b&gt; container is only returned if a response is due from 
			the seller or other party involved in the return.
		</xs:documentation>
	</xs:annotation>
	<xs:sequence>
		<xs:element minOccurs="0" name="party" type="tns:ReturnUserType">
			<xs:annotation>
				<xs:documentation>
					Container that identifies the party whose response is due. The party is identified by 
					eBay user ID and role (BUYER or SELLER). 
				</xs:documentation>
				<xs:appinfo>
					<callInfo>
						<callName>getUserReturns</callName>
						<callName>getReturnDetail</callName>
						<returned>Conditionally</returned>
					</callInfo>
				</xs:appinfo>
			</xs:annotation>
		</xs:element>
		<xs:element minOccurs="0" name="respondByDate" type="xs:dateTime">
			<xs:annotation>
				<xs:documentation>
					This date indicates the due date of the party's response.
				</xs:documentation>
				<xs:appinfo>
					<callInfo>
						<callName>getUserReturns</callName>
						<callName>getReturnDetail</callName>
						<returned>Conditionally</returned>
					</callInfo>
				</xs:appinfo>
			</xs:annotation>
		</xs:element>		
	</xs:sequence>
</xs:complexType>

<xs:complexType name="ReturnSummaryType">
	<xs:annotation>
		<xs:documentation>
			Type defining the &lt;b&gt;ReturnSummary&lt;/b&gt; container. A &lt;b&gt;ReturnSummary&lt;/b&gt;
			container is returned in the requests for the &lt;b&gt;getUserReturns&lt;/b&gt; and &lt;b&gt;getReturnDetail&lt;/b&gt; 
			calls for each return matching the input criteria. 
		</xs:documentation>
	</xs:annotation>
	<xs:sequence>
		<xs:element name="ReturnId" type="tns:ReturnIdType">
			<xs:annotation>
				<xs:documentation>
					Container consisting of the unique identifier for a return. Return ID values
					are returned in the &lt;b&gt;ReturnId.id&lt;/b&gt; field of each &lt;b&gt;ReturnSummary&lt;/b&gt; 
					container returned in the &lt;b&gt;getUserReturns&lt;/b&gt; and &lt;b&gt;getReturnDetail&lt;/b&gt; 
					calls.
				</xs:documentation>
				<xs:appinfo>
					<callInfo>
						<callName>getUserReturns</callName>
						<callName>getReturnDetail</callName>
						<returned>Always</returned>
					</callInfo>
				</xs:appinfo>
			</xs:annotation>
		</xs:element>		
		<xs:element name="otherParty" type="tns:ReturnUserType">
			<xs:annotation>
				<xs:documentation>
					Container that identifies the other party involved in the return. The party is
					identified by eBay user ID and role (BUYER or SELLER).
				</xs:documentation>
				<xs:appinfo>
					<callInfo>
						<callName>getUserReturns</callName>
						<callName>getReturnDetail</callName>
						<returned>Always</returned>
					</callInfo>
				</xs:appinfo>
			</xs:annotation>
		</xs:element>
		<xs:element name="returnRequest" type="tns:ReturnRequestType">
	      <xs:annotation>
	        <xs:documentation>
	          Container consisting of details on the item being returned and the return reason.
	        </xs:documentation>
	        <xs:appinfo>
	          <callInfo>
	            <callName>getUserReturns</callName>
							<callName>getReturnDetail</callName>
							<returned>Always</returned>
	          </callInfo>
	        </xs:appinfo>
	      </xs:annotation>
	    </xs:element>
		<xs:element name="status" type="tns:ReturnStatusType">
			<xs:annotation>
				<xs:documentation>
					This field indicates the current status of the return. This value will often give 
					the seller a good idea about the next step to take in the return.
				</xs:documentation>
				<xs:appinfo>
					<callInfo>
						<callName>getUserReturns</callName>
						<callName>getReturnDetail</callName>
						<returned>Always</returned>
					</callInfo>
				</xs:appinfo>
			</xs:annotation>
		</xs:element>
		<xs:element minOccurs="0" name="responseDue" type="tns:ReturnResponseDueType">
			<xs:annotation>
				<xs:documentation>
					This container consists of the party whose response is due and the due date of that response. 
					This container is only returned in the requests of the &lt;b&gt;getUserReturns&lt;/b&gt;
					and &lt;b&gt;getReturnDetail&lt;/b&gt; calls if a response is due from the seller or
					other party involved in the return. 
				</xs:documentation>
				<xs:appinfo>
					<callInfo>
						<callName>getUserReturns</callName>
						<callName>getReturnDetail</callName>
						<returned>Conditionally</returned>
					</callInfo>
				</xs:appinfo>
			</xs:annotation>
		</xs:element>
		<!-- <xs:element minOccurs="0" name="refundDueDate" type="tns:ReturnResponseDueType">
			<xs:annotation>
				<xs:documentation>
					The date by which refund is expected from seller.
				</xs:documentation>
				<xs:appinfo>
					<callInfo>
						<callName>getUserReturns</callName>
						<callName>getReturnDetail</callName>
						<returned>Conditionally</returned>
					</callInfo>
				</xs:appinfo>
			</xs:annotation>
		</xs:element> -->
		<xs:element name="creationDate" type="xs:dateTime">
			<xs:annotation>
				<xs:documentation>
					This date indicates the date on which the return was created. 
				</xs:documentation>
				<xs:appinfo>
					<callInfo>
						<callName>getUserReturns</callName>
						<callName>getReturnDetail</callName>
						<returned>Always</returned>
					</callInfo>
				</xs:appinfo>
			</xs:annotation>
		</xs:element>
		<xs:element name="lastModifiedDate" type="xs:dateTime">
			<xs:annotation>
				<xs:documentation>
					This date indicates the date on which the return was last modified.
				</xs:documentation>
				<xs:appinfo>
					<callInfo>
						<callName>getUserReturns</callName>
						<callName>getReturnDetail</callName>
						<returned>Always</returned>
					</callInfo>
				</xs:appinfo>
			</xs:annotation>
		</xs:element>
	</xs:sequence>
</xs:complexType>
  

<xs:complexType name="ReturnUserType">
	<xs:annotation>
		<xs:documentation>
			Type used by the &lt;b&gt;ReturnSummary.user&lt;/b&gt; and &lt;b&gt;ReturnSummary.otherParty&lt;/b&gt; 
			containers in the &lt;b&gt;getUserReturns&lt;/b&gt; and &lt;b&gt;getReturnDetail&lt;/b&gt; 
			calls to identify a user involved in a return.
		</xs:documentation>
		<xs:appinfo>
			<callInfo>
				<callName>getUserReturns</callName>
				<callName>getReturnDetail</callName>
				<returned>Always</returned>
			</callInfo>
		</xs:appinfo>
	</xs:annotation>
	<xs:sequence>
		<xs:element minOccurs="0" name="userId" type="xs:string">
			<xs:annotation>
				<xs:documentation>
					The eBay user ID for the party involved in the return. 
				</xs:documentation>
				<xs:appinfo>
					<callInfo>
						<callName>getUserReturns</callName>
						<callName>getReturnDetail</callName>
						<returned>Always</returned>
					</callInfo>
				</xs:appinfo>
			</xs:annotation>
		</xs:element>		
		<xs:element minOccurs="0" name="role" type="tns:ReturnUserRoleType">
			<xs:annotation>
				<xs:documentation>
					The role (such as buyer or seller) of the party involved in the return.
				</xs:documentation>
				<xs:appinfo>
					<callInfo>
						<callName>getUserReturns</callName>
						<callName>getReturnDetail</callName>
						<returned>Always</returned>
					</callInfo>
				</xs:appinfo>
			</xs:annotation>
		</xs:element>		
	</xs:sequence>
</xs:complexType>
      
<xs:simpleType name="ReturnUserRoleType">
	<xs:annotation>
		<xs:documentation>
			Enumerated type that defines the user roles in a return.
		</xs:documentation>
	</xs:annotation>
	<xs:restriction base="xs:string">
		<xs:enumeration value="BUYER">
			<xs:annotation>
				<xs:documentation>
					This value indicates that the user's role in the return is buyer.
				</xs:documentation>
			</xs:annotation>
		</xs:enumeration>
		<xs:enumeration value="SELLER">
			<xs:annotation>
				<xs:documentation>
					This value indicates that the user's role in the return is seller.
				</xs:documentation>
			</xs:annotation>
		</xs:enumeration>
		<xs:enumeration value="EBAY">
			<xs:annotation>
				<xs:documentation>
					This value indicates that the user's role in the return is eBay.
				</xs:documentation>
			</xs:annotation>
		</xs:enumeration>
		<xs:enumeration value="SYSTEM">
			<xs:annotation>
				<xs:documentation>
					This value indicates that the user's role in the return is system.
				</xs:documentation>
			</xs:annotation>
		</xs:enumeration>
		<xs:enumeration value="OTHER">
			<xs:annotation>
				<xs:documentation>
					This value is reserved for future use.
				</xs:documentation>
			</xs:annotation>
		</xs:enumeration>
	</xs:restriction>
</xs:simpleType>
      
<xs:simpleType name="ShipmentStatusType">
	<xs:annotation>
		<xs:documentation>
			Enumerated type that defines all possible shipment states relating to the buyer returning an 
			item to the seller. The status of a buyer's return shipment is shown in the &lt;b&gt;ReturnDetail.buyerReturnShipment.shipmentStatus&lt;/b&gt; 
			field of the &lt;b&gt;getReturnDetail&lt;/b&gt; response.
		</xs:documentation>
	</xs:annotation>
	<xs:restriction base="xs:token">
		<xs:enumeration value="WAITING_FOR_SELLER_INFO">
			<xs:annotation>
				<xs:documentation>
					This value indicates that the buyer is waiting for an Return Merchandise Authorization 
					(RMA) number and/or an alternative return shipping address before returning the item to the seller. A seller can provide a buyer with this 
					information by using the &lt;b&gt;provideSellerInfo&lt;/b&gt; call.
				</xs:documentation>
			</xs:annotation>
		</xs:enumeration>
		<xs:enumeration value="READY_FOR_SHIPPING">
			<xs:annotation>
				<xs:documentation>
					This value indicates that the item is ready to be return shipped by the buyer.
				</xs:documentation>
			</xs:annotation>
		</xs:enumeration>
		<xs:enumeration value="ITEM_SHIPPED">
			<xs:annotation>
				<xs:documentation>
					This value indicates that the item has been shipped by the buyer.
				</xs:documentation>
			</xs:annotation>
		</xs:enumeration>
		<xs:enumeration value="ITEM_DELIVERED">
			<xs:annotation>
				<xs:documentation>
					This value indicates that the returned item has been received by the seller.
				</xs:documentation>
			</xs:annotation>
		</xs:enumeration>	
		<xs:enumeration value="OTHER">
			<xs:annotation>
				<xs:documentation>
					This value is reserved for future use.
				</xs:documentation>
			</xs:annotation>
		</xs:enumeration>
	</xs:restriction>
</xs:simpleType>

<!--  Simple Types for Phase 2 Start -->
<xs:simpleType name="StatusType">
	<xs:annotation>
		<xs:documentation>
			Enumerated type that indicates whether or not a seller's refund to a buyer using the
			&lt;b&gt;issueRefund&lt;/b&gt; call was successful. This type is used by the &lt;b&gt;RefundStatus&lt;/b&gt;
			field of the &lt;b&gt;issueRefund&lt;/b&gt; request.
		</xs:documentation>
	</xs:annotation>
	<xs:restriction base="xs:token">
		<xs:enumeration value="SUCCESS">
			<xs:annotation>
				<xs:documentation>
					This value indicates that the seller's refund to the buyer was successful.
				</xs:documentation>
			</xs:annotation>
		</xs:enumeration>		
		<xs:enumeration value="FAILED">
			<xs:annotation>
				<xs:documentation>
					This value indicates that the seller's refund to the buyer failed.
				</xs:documentation>
			</xs:annotation>
		</xs:enumeration>
			</xs:restriction>
</xs:simpleType>

<xs:simpleType name="RefundStatusType">
	<xs:annotation>
		<xs:documentation>
			Enumerated type that indicates the current status of a seller's refund to a buyer. 
		</xs:documentation>
	</xs:annotation>
	<xs:restriction base="xs:token">
		<xs:enumeration value="SUCCESS">
			<xs:annotation>
				<xs:documentation>
					This value indicates that the seller's refund to the buyer was successful.
				</xs:documentation>
			</xs:annotation>
		</xs:enumeration>
		<xs:enumeration value="PENDING">
			<xs:annotation>
				<xs:documentation>
					This value indicates that the seller's refund to the buyer is pending. This value is 
					commonly returned if the payment method was eCheck.
				</xs:documentation>
			</xs:annotation>
		</xs:enumeration>		
		<xs:enumeration value="FAILED">
			<xs:annotation>
				<xs:documentation>
					This value indicates that the seller's refund to the buyer failed.
				</xs:documentation>
			</xs:annotation>
		</xs:enumeration>
			</xs:restriction>
</xs:simpleType>

<xs:complexType name="ReturnReasonType">
		<xs:annotation>
			<xs:documentation>
				This type defines the the buyer's reason for returning an item, and is used by the
				&lt;b&gt;ReturnSummary.returnRequest.returnReason&lt;/b&gt; field in the response of the
				&lt;b&gt;getUserReturns&lt;/b&gt; and &lt;b&gt;getReturnDetail&lt;/b&gt; calls. The &lt;b&gt;returnReason&lt;/b&gt; 
				is always returned.
			</xs:documentation>
		</xs:annotation>
	<xs:complexContent>
 			<xs:extension base="tns:EnumerationDetailType">	  		
 			</xs:extension>
	</xs:complexContent>
</xs:complexType>

  <xs:simpleType name="CloseReturnReasonType">
    <xs:annotation>
      <xs:documentation>
        Enumerated type that defines the reasons why a return is closed. These values are 
        returned in &lt;b&gt;getReturnDetail&lt;/b&gt; for closed returns.
      </xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:token">
      <xs:enumeration value="CLOSED_UPON_REFUND">
        <xs:annotation>
          <xs:documentation>
            This value indicates that the seller has refunded the buyer and the return has
						been closed.
          </xs:documentation>
        </xs:annotation>
      </xs:enumeration>
       <xs:enumeration value="EXPIRED">
        <xs:annotation>
          <xs:documentation>
            This value indicates that the return expiration date has been reached, so the return
						has been closed.
          </xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="CS_CLOSED">
        <xs:annotation>
          <xs:documentation>
            This value indicates that customer service has closed the return.
          </xs:documentation>
        </xs:annotation>
      </xs:enumeration>
       <xs:enumeration value="CLOSED_UPON_ESCALATION">
        <xs:annotation>
          <xs:documentation>
            This value indicates that the return has been closed due to the buyer opening up 
            an eBay Buyer Protection case against the item. 
          </xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="OTHER">
        <xs:annotation>
          <xs:documentation>
            This value is reserved for future use.
          </xs:documentation>
        </xs:annotation>
      </xs:enumeration>
    </xs:restriction>
  </xs:simpleType>
  


      <xs:complexType name="ReturnItemType">
        <xs:annotation>
          <xs:documentation>
            Type defining the &lt;b&gt;returnItem&lt;/b&gt; container that is returned in the
						&lt;b&gt;getUserReturns&lt;/b&gt; and &lt;b&gt;getReturnDetail&lt;/b&gt; calls. The 
						&lt;b&gt;returnItem&lt;/b&gt; container consists of the eBay item ID, the transaction
						ID, and quantity of the item being returned to the seller.
          </xs:documentation>
        </xs:annotation>
        <xs:sequence>
          <xs:element name="itemId" type="xs:string">
            <xs:annotation>
              <xs:documentation>
                The unique identifier for an eBay item listing.
              </xs:documentation>
              <xs:appinfo>
                <maxLength>19</maxLength>
                <callInfo>
                  <callName>getUserReturns</callName>
                  <callName>getReturnDetail</callName>
                  <returned>Always</returned>
                </callInfo>
              </xs:appinfo>
            </xs:annotation>
          </xs:element> 
          <xs:element name="transactionId" type="xs:string">
            <xs:annotation>
              <xs:documentation>
                The unique identifier for an eBay order line item.
              </xs:documentation>
              <xs:appinfo>
                <callInfo>
                  <callName>getUserReturns</callName>
                  <callName>getReturnDetail</callName>
                  <returned>Always</returned>
                </callInfo>
              </xs:appinfo>
            </xs:annotation>
          </xs:element>
          <xs:element name="returnQuantity" type="xs:int">
            <xs:annotation>
              <xs:documentation>
              	This value indicates the quantity of items to be returned. This value is usually 
              	'1' unless multiple identical items were purchased by the buyer. 
              </xs:documentation>
              <xs:appinfo>
                <min>1</min>
                <callInfo>
									<callName>getUserReturns</callName>
									<callName>getReturnDetail</callName>
									<returned>Always</returned>
                </callInfo>
              </xs:appinfo>
            </xs:annotation>
          </xs:element>      
        </xs:sequence>
      </xs:complexType>
      
    
      


<xs:complexType name="Amount">
	<xs:annotation>
		<xs:documentation>
			Monetary amount. This type is used in several locations in the &lt;b&gt;getUserReturns&lt;/b&gt;, 
			&lt;b&gt;getReturnDetails&lt;/b&gt;, and &lt;b&gt;issueRefund&lt;/b&gt; responses.
		</xs:documentation>
		<xs:appinfo>
			<typeLibrarySource library="MarketPlaceServiceCommonTypeLibrary" namespace="http://www.ebay.com/marketplace/services"/>
		</xs:appinfo>
	</xs:annotation>
	<xs:simpleContent>
		<xs:extension base="xs:double">
			<xs:attribute name="currencyId" type="xs:string" use="required">
				<xs:annotation>
					<xs:documentation>
						This attribute identifies the currency in which the monetary amount is
						specified.
					</xs:documentation>
				</xs:annotation>
			</xs:attribute>
		</xs:extension>
	</xs:simpleContent>
</xs:complexType>

<xs:complexType name="TotalRefundAmountType">
	<xs:annotation>
		<xs:documentation>
			Type defining the &lt;b&gt;totalRefundAmount&lt;/b&gt; container. This container contains the 
			estimated and actual refund amounts.
		</xs:documentation>
	</xs:annotation>
	<xs:sequence>
		<xs:element name="estimatedRefundAmount" type="tns:Amount">
			<xs:annotation>
				<xs:documentation>
					This field contains the estimated refund amount for the return. The estimated refund 
					amount is based on the subtotal value of the order line item.
				</xs:documentation>
				<xs:appinfo>
					<callInfo>
						<callName>getUserReturns</callName>
						<callName>getReturnDetail</callName>
						<returned>Always</returned>
					</callInfo>
				</xs:appinfo>
			</xs:annotation>
		</xs:element>
		<xs:element name="actualRefundAmount" type="tns:Amount">
			<xs:annotation>
				<xs:documentation>
					This field contains the actual refund amount for the return. This value reads 0.0 
					until a refund is actually issued by the seller to the buyer.
				</xs:documentation>
				<xs:appinfo>
					<callInfo>
						<callName>getUserReturns</callName>
						<callName>getReturnDetail</callName>
						<returned>Always</returned>
					</callInfo>
				</xs:appinfo>
			</xs:annotation>
		</xs:element>
	</xs:sequence>
</xs:complexType>

  <xs:complexType name="ReturnRequestType">
        <xs:annotation>
          <xs:documentation>
            Type defining the &lt;b&gt;returnRequest&lt;/b&gt; container that is returned in the 
            &lt;b&gt;getUserReturns&lt;/b&gt; and &lt;b&gt;getReturnDetail&lt;/b&gt; calls. The 
            &lt;b&gt;returnRequest&lt;/b&gt; container consists of the return reason, the eBay 
            item and transaction IDs, and the item quantity.
          </xs:documentation>
        </xs:annotation>
      <xs:sequence>
        <xs:element minOccurs="0" maxOccurs="unbounded" name="returnItem" type="tns:ReturnItemType">
          <xs:annotation>
            <xs:documentation>
              Container consisting of the eBay item ID, the transaction ID, and quantity of the
							item being returned to the seller. The &lt;b&gt;returnItem&lt;/b&gt; container is 
							returned in the &lt;b&gt;getUserReturns&lt;/b&gt; and &lt;b&gt;getReturnDetail&lt;/b&gt; 
							calls.
            </xs:documentation>
            <xs:appinfo>
              <callInfo>
                <callName>getUserReturns</callName>
								<callName>getReturnDetail</callName>
								<returned>Always</returned>
              </callInfo>
            </xs:appinfo>
          </xs:annotation>
        </xs:element>
        <xs:element name="returnReason" type="tns:ReturnReasonType">
          <xs:annotation>
            <xs:documentation>
              This value indicates the buyer's reason for returning an item. Possible values include 
              I_DONT_WANT_IT (buyer remorse) and SNAD (item Significantly Not As Described).
            </xs:documentation>
            <xs:appinfo>
              <callInfo>
                <callName>getUserReturns</callName>
								<callName>getReturnDetail</callName>
								<returned>Always</returned>
              </callInfo>
            </xs:appinfo>
          </xs:annotation>
        </xs:element>        
		 <xs:element minOccurs="0" name="comments" type="xs:string">
            <xs:annotation>
              <xs:documentation>
                This field contains any comments posted by the buyer upon opening the return. 
                For a SNAD case, the buyer might state the discrepancies between the actual item received 
                and the item described in the listing.
              </xs:documentation>
              <xs:appinfo>
                <callInfo>
                  <callName>getUserReturns</callName>
				  				<callName>getReturnDetail</callName>
				  				<returned>Conditionally</returned>
                </callInfo>
              </xs:appinfo>
            </xs:annotation>
          </xs:element>
      </xs:sequence>
  </xs:complexType>      


<xs:complexType name="ReturnDetailType">
	<xs:annotation>
		<xs:documentation>
			Type defining the &lt;b&gt;ReturnDetail&lt;/b&gt; container returned in &lt;b&gt;getReturnDetail&lt;/b&gt;. 
			All information for a single return is returned under the &lt;b&gt;ReturnDetail&lt;/b&gt; 
			container.
		</xs:documentation>
	</xs:annotation>
	<xs:sequence>  
		
		<xs:element name="globalId" type="xs:token">
			<xs:annotation>
				<xs:documentation>
					Unique identifier of the eBay site (such as EBAY-US) where the order occurred.
				</xs:documentation>
				<xs:appinfo>
					<callInfo>
						<callName>getReturnDetail</callName>
						<returned>Always</returned>
					</callInfo>
				</xs:appinfo>
			</xs:annotation>
		</xs:element>		
		<xs:element maxOccurs="unbounded" minOccurs="0" name="returnHistory" type="tns:ReturnResponseHistoryType">
			<xs:annotation>
				<xs:documentation>
					Repeatable container consisting of details related to each activity in a return. 
					A &lt;b&gt;returnHistory&lt;/b&gt; node is returned for each activity that has occurred
					with the return, and each node contains the type of activity, the timestamp for the
					activity, the initiator of the activity, and any notes related to the return. Additionally,
					if the activity is related to a money movement transaction, a &lt;b&gt;ReturnDetail.returnHistory.attributes&lt;/b&gt; 
					container is returned providing more information on the transaction.
				</xs:documentation>
				<xs:appinfo>
					<callInfo>
						<callName>getReturnDetail</callName>
						<returned>Always</returned>
					</callInfo>
				</xs:appinfo>
			</xs:annotation>
		</xs:element>		
		<xs:element minOccurs="0"  name="refundInfo" type="tns:RefundInfoType">
			<xs:annotation>
				<xs:documentation>
					Container consisting of details and values related to estimated, actual, and itemized 
					refunds to the buyer. 
				</xs:documentation>
				<xs:appinfo>
					<callInfo>
						<callName>getReturnDetail</callName>
						<returned>Always</returned>
					</callInfo>
				</xs:appinfo>
			</xs:annotation>
		</xs:element>
		<xs:element minOccurs="0"  name="returnPolicy" type="tns:ReturnPolicyInfoType">
			<xs:annotation>
				<xs:documentation>
					Container consisting of flags which indicate whether the seller is willing to
					provide the buyer a Return Merchandise Authorization number (if requested), and if the 
					seller accepts returns to more than one address. These return policy preferences are set 
					by the seller in the Returns Center. This container will only be returned if at least one
					of the flags is turned on.
				</xs:documentation>
				<xs:appinfo>
					<callInfo>
						<callName>getReturnDetail</callName>
						<returned>Conditionally</returned>
					</callInfo>
				</xs:appinfo>
			</xs:annotation>
		</xs:element>
		<xs:element minOccurs="0" name="buyerReturnShipment" type="tns:ShipmentType">
			<xs:annotation>
				<xs:documentation>
					Container consisting of details related to the buyer's return shipment to the seller. 
					Information in the &lt;b&gt;buyerReturnShipment&lt;/b&gt; container include the seller's 
					primary return address on record, the expected delivery date, the shipping carrier and tracking 
					number, the delivery status, and the return shipping costs.
				</xs:documentation>
				<xs:appinfo>
					<callInfo>
						<callName>getReturnDetail</callName>
						<returned>Always</returned>
					</callInfo>
				</xs:appinfo>
			</xs:annotation>
		</xs:element>		
		<xs:element minOccurs="0" name="caseId" type="tns:CaseIdType">
			<xs:annotation>
				<xs:documentation>
					Container consisting of the eBay Buyer Protection case ID and case type. This container 
					is only returned if a return is escalated to the eBay Buyer Protection system and 
					accepted as an eBP case.
				</xs:documentation>
				<xs:appinfo>
					<callInfo>
						<callName>getReturnDetail</callName>
						<returned>Conditionally</returned>
					</callInfo>
				</xs:appinfo>
			</xs:annotation>
		</xs:element>	
	</xs:sequence>
</xs:complexType>


<xs:complexType name="CaseIdType">
	<xs:annotation>
		<xs:documentation>
			Type defining the &lt;b&gt;caseId&lt;/b&gt; container, which consists of a case ID and
			case type that uniquely identifies an eBay Buyer Protection case.
		</xs:documentation>
	</xs:annotation>
	<xs:sequence>
		<xs:element name="id" type="xs:string">
			<xs:annotation>
				<xs:documentation>
					Unique identifier of an eBay Buyer Protection case. 
				</xs:documentation>
				<xs:appinfo>
					<maxLength>38</maxLength>					
					<callInfo>
						<callName>getReturnDetail</callName>
						<returned>Conditionally</returned>
					</callInfo>					
				</xs:appinfo>
			</xs:annotation>
		</xs:element>
		<xs:element minOccurs="0" name="type" type="tns:CaseType">
			<xs:annotation>
				<xs:documentation>
					This value indicates the type of eBay Buyer Protection case. For an escalated return 
					case, the value will most likely be EBP_SNAD (item Significantly Not As Described).
				</xs:documentation>
				<xs:appinfo>					
					<callInfo>
						<callName>getReturnDetail</callName>
						<returned>Conditionally</returned>
					</callInfo>
				</xs:appinfo>
			</xs:annotation>
		</xs:element>
	</xs:sequence>
</xs:complexType>


<xs:simpleType name="CaseType">
	<xs:annotation>
		<xs:documentation>
			Enumerated type that defines the eBay Buyer Protection case types.
		</xs:documentation>
	</xs:annotation>
	<xs:restriction base="xs:token">
		<xs:enumeration value="EBP_SNAD">
			<xs:annotation>
				<xs:documentation>
					This value indicates that the eBay Buyer Protection case involves a "significantly not as 
					described" item.
				</xs:documentation>
			</xs:annotation>
		</xs:enumeration>		
		<xs:enumeration value="OTHER">
			<xs:annotation>
				<xs:documentation>
					This value is reserved for future use.
				</xs:documentation>
			</xs:annotation>
		</xs:enumeration>		
	</xs:restriction>
</xs:simpleType>

<xs:simpleType name="RefundFeeType">
	<xs:annotation>
		<xs:documentation>
			Enumerated type that defines the types of itemized refunds.
		</xs:documentation>
	</xs:annotation>
	<xs:restriction base="xs:token">
		<xs:enumeration value="PURCHASE_PRICE">
			<xs:annotation>
				<xs:documentation>
					This value indicates that the refund to the buyer is for the purchase price of the item,
					or items (for multiple quantity purchases).
				</xs:documentation>
			</xs:annotation>
		</xs:enumeration>		
		<xs:enumeration value="ORIGINAL_SHIPPING">
			<xs:annotation>
				<xs:documentation>
					This value indicates that the refund to the buyer is for the original shipping costs of 
					the item, or items (for multiple quantity purchases).
				</xs:documentation>
			</xs:annotation>
		</xs:enumeration>
		<xs:enumeration value="RESTOCKING_FEE">
			<xs:annotation>
				<xs:documentation>
					This value indicates that the refund to the buyer is for the restocking fee that was 
					charged to the buyer to restock the item, or items (for multiple quantity purchases).
				</xs:documentation>
			</xs:annotation>
		</xs:enumeration>
		<xs:enumeration value="RETURN_SHIPPING">
			<xs:annotation>
				<xs:documentation>
					This value is for internal or future use.
				</xs:documentation>
			</xs:annotation>
		</xs:enumeration>
		<xs:enumeration value="OTHER">
			<xs:annotation>
				<xs:documentation>
					This value is reserved for future use.
				</xs:documentation>
			</xs:annotation>
		</xs:enumeration>
	</xs:restriction>
</xs:simpleType>

<xs:complexType name="RefundInfoType">
	<xs:annotation>
		<xs:documentation>
			Type defining the &lt;b&gt;refundInfo&lt;/b&gt; container, which consists of details and
			values related to estimated, actual, and itemized refunds to the buyer. 
		</xs:documentation>
	</xs:annotation>
	<xs:sequence>		       
        <xs:element minOccurs="0" name="refundDue" type="xs:dateTime">
					<xs:annotation>
						<xs:documentation>
						 This field indicates the refund due date, and will only appear if a refund to the 
						 buyer has not been issued by the seller.
						</xs:documentation>
						<xs:appinfo>
							<callInfo>                  
								<callName>getReturnDetail</callName>
								<returned>Conditionally</returned>
							</callInfo>
						</xs:appinfo>
					</xs:annotation>
        </xs:element> 
        
        <xs:element name="estimatedRefundDetail" type="tns:EstimatedRefundDetailType">
            <xs:annotation>
              <xs:documentation>
                Container consisting of the estimated amount of a seller's refund to the buyer. The 
                &lt;b&gt;estimatedRefundDetail&lt;/b&gt; container will contain one &lt;b&gt;itemizedRefund&lt;/b&gt;
                container for each refund fee type due to the buyer (such as purchase price or 
                original shipping). Similarly, if the seller elects to issue additional refund(s) 
                beyond what is required, one &lt;b&gt;itemizedOptionalRefund&lt;/b&gt;
                container will be present for each optional refund issued to the buyer (such as
								return shipping charge or restocking fee).
              </xs:documentation>
              <xs:appinfo>
                <callInfo>                  
                  <callName>getReturnDetail</callName>
                  <returned>Always</returned>
                </callInfo>
              </xs:appinfo>
            </xs:annotation>
        </xs:element> 
        <xs:element minOccurs="0" name="actualRefundDetail" type="tns:ActualRefundDetailType">
            <xs:annotation>
              <xs:documentation>
                Container consisting of the actual amount of a seller's refund to the buyer. The 
								&lt;b&gt;actualRefundDetail&lt;/b&gt; container will contain one &lt;b&gt;itemizedRefund&lt;/b&gt;
								container for each refund fee type issued to the buyer (such as purchase price or 
								original shipping). Similarly, one &lt;b&gt;itemizedOptionalRefund&lt;/b&gt;
								container will be present for each optional refund fee type that a seller can issue 
								to a buyer (such as return shipping charge or restocking fee).
              </xs:documentation>
              <xs:appinfo>
                <callInfo>                  
                  <callName>getReturnDetail</callName>
                  <returned>Conditionally</returned>
                </callInfo>
              </xs:appinfo>
            </xs:annotation>
        </xs:element> 	
	</xs:sequence>
</xs:complexType>

<xs:complexType name="ReturnPolicyInfoType">
	<xs:annotation>
		<xs:documentation>
			Type defining the &lt;b&gt;returnPolicy&lt;/b&gt; container, which consists of a flag to
			indicate whether the seller is willing to provide the buyer a Return Merchandise
			Authorization number (if requested), and a flag to indicate if the seller accepts returns to
			more than one address. 
		</xs:documentation>
	</xs:annotation>
	<xs:sequence>		       
        <xs:element minOccurs="0" name="optedForRMA" type="xs:boolean">
				<xs:annotation>
					<xs:documentation>
					 This field indicates that the seller has agreed to provide a Return Merchandise
					 Authorization (RMA) number to buyers upon request. A seller can provide an RMA to the 
					 buyer by using the &lt;b&gt;returnMerchandiseAuthorization&lt;/b&gt; field of the 
					 &lt;b&gt;provideSellerInfo&lt;/b&gt; call. A seller will use the 
					 &lt;b&gt;provideSellerInfo&lt;/b&gt; call to provide an RMA to the buyer when the 
					 status of the return is 'WAITING_FOR_SELLER_INFO'. This field is only returned if
					 'true'.
					</xs:documentation>
					<xs:appinfo>
						<callInfo>                  
							<callName>getReturnDetail</callName>
							<returned>Conditionally</returned>
						</callInfo>
					</xs:appinfo>
				</xs:annotation>
        </xs:element> 
        <xs:element minOccurs="0" name="optedForMultipleReturnAddress" type="xs:boolean">
				<xs:annotation>
					<xs:documentation>
					 This field indicates that the seller has agreed to accept returns at multiple return
					 addresses. A seller can provide an alternative return address to the buyer by using the
					 &lt;b&gt;returnAddress&lt;/b&gt; container of the &lt;b&gt;provideSellerInfo&lt;/b&gt;
					 call. A seller will use the &lt;b&gt;provideSellerInfo&lt;/b&gt; call to provide an 
					 alternative return address to the buyer when the status of the return is
					 'WAITING_FOR_SELLER_INFO'. This field is only returned if 'true'. If the seller has 
					 not agreed to accept returns at multiple return addresses, the seller's primary return 
					 address in My eBay is used.
					</xs:documentation>
					<xs:appinfo>
						<callInfo>                  
							<callName>getReturnDetail</callName>
							<returned>Conditionally</returned>
						</callInfo>
					</xs:appinfo>
				</xs:annotation>
        </xs:element>
	</xs:sequence>
</xs:complexType>

<xs:complexType name="RefundDetailType">
	<xs:annotation>
		<xs:documentation>
			Type defining the &lt;b&gt;refundDetail&lt;/b&gt; container, which is the root container of 
			all details related to actual and estimated refunds.
		</xs:documentation>
	</xs:annotation>
	<xs:sequence>
		<xs:element minOccurs="0" name="totalAmount" type="tns:Amount">
			<xs:annotation>
				<xs:documentation>
					This dollar value indicates the total amount of actual refunds issued by the seller to 
					the buyer. This is a dynamic value while the return is open. The &lt;b&gt;refundDetail.totalAmount&lt;/b&gt; 
					value is required in the &lt;b&gt;issueRefund&lt;/b&gt; call and it should match the 
					&lt;b&gt;refundDetail.itemizedRefundAmount&lt;/b&gt; value (if only one refund type is 
					being issued by the seller) or the composite value of multiple &lt;b&gt;refundDetail.itemizedRefundAmount&lt;/b&gt; 
					values (if multiple refund types are being issued by the seller).
				</xs:documentation>
				<xs:appinfo>
					<callInfo>
						<callName>getReturnDetail</callName>
						<returned>Conditionally</returned>
					</callInfo>
					<callInfo>
						<callName>issueRefund</callName>
						<requiredInput>Yes</requiredInput>
					</callInfo>
				</xs:appinfo>
			</xs:annotation>
		</xs:element>
		<xs:element minOccurs="0" maxOccurs="unbounded" name="itemizedRefund" type="tns:ItemizedRefundDetailType">
			<xs:annotation>
				<xs:documentation>
					Container used to track estimated and actual individual refund amounts by fee type (such as
					purchase price, original shipping, or restocking fee). At least one 
					&lt;b&gt;itemizedRefund&lt;/b&gt; container is required when the seller is issuing a 
					refund to the buyer through the &lt;b&gt;issueRefund&lt;/b&gt; call.
				</xs:documentation>
				<xs:appinfo>
					<callInfo>
						<callName>getReturnDetail</callName>
						<returned>Always</returned>
					</callInfo>
					<callInfo>
						<callName>issueRefund</callName>
						<requiredInput>Yes</requiredInput>
					</callInfo>
				</xs:appinfo>
			</xs:annotation>
		</xs:element>
     </xs:sequence>
</xs:complexType>



<xs:complexType name="ActualRefundDetailType">
	<xs:annotation>
		<xs:documentation>
			Type defining the &lt;b&gt;actualRefundDetail&lt;/b&gt; container, which consists of details
			related to an actual seller refund, including the total refund amount, the date of the refund, 
			the status of the refund, and an itemized list of one or more refund fee types (such as 
			purchase price or original shipping). 
		</xs:documentation>
	</xs:annotation>
	<xs:sequence>
		<xs:element minOccurs="0" name="actualRefund" type="tns:RefundDetailType">
			<xs:annotation>
				<xs:documentation>
					Container consisting of the total refund amount awarded to the buyer and one or more 
					&lt;b&gt;itemizedRefund&lt;/b&gt; containers. One &lt;b&gt;itemizedRefund&lt;/b&gt; container
					will be present for each refund fee type (such as purchase price or original shipping). 
					This container is only returned if a refund has been issued by the seller.
				</xs:documentation>
				<xs:appinfo>
					<callInfo>
						<callName>getReturnDetail</callName>
						<returned>Conditionally</returned>
					</callInfo>
				</xs:appinfo>
			</xs:annotation>
		</xs:element>
		 <xs:element minOccurs="0" name="refundStatus" type="tns:RefundStatusType">
            <xs:annotation>
              <xs:documentation>
               This value indicates the result of the seller's refund attempt. The two valid
							 values are &lt;b&gt;SUCCESS&lt;/b&gt; or &lt;b&gt;FAILED&lt;/b&gt;. &lt;b&gt;PENDING&lt;/b&gt; 
							 is for future use. 
              </xs:documentation>
              <xs:appinfo>
                <callInfo>                  
                  <callName>getReturnDetail</callName>
                  <returned>Conditionally</returned>
                </callInfo>
              </xs:appinfo>
            </xs:annotation>
        </xs:element>
        <xs:element minOccurs="0" name="refundDate" type="xs:dateTime">
            <xs:annotation>
              <xs:documentation>
              	This date indicates the date of the seller's refund to the buyer. This field is 
              	only returned if a refund has been issued by the seller.
              </xs:documentation>
              <xs:appinfo>
                <callInfo>                  
                  <callName>getReturnDetail</callName>
                  <returned>Conditionally</returned>
                </callInfo>
              </xs:appinfo>
            </xs:annotation>
        </xs:element>		
     </xs:sequence>
</xs:complexType>

<xs:complexType name="EstimatedRefundDetailType">
	<xs:annotation>
		<xs:documentation>
			Type defining the &lt;b&gt;estimatedRefundDetail&lt;/b&gt; container, which consists of
			details related to an estimated seller refund, including the total refund amount, an itemized
			list of one or more anticipated refund fee types (such as purchase price or original shipping), 
			and an itemized list of one or more optional refund fee types.
		</xs:documentation>
	</xs:annotation>
	<xs:sequence>
		<xs:element minOccurs="0" name="estimatedRefund" type="tns:RefundDetailType">
			<xs:annotation>
				<xs:documentation>
					Container consisting of the total estimated refund amount due to the buyer and one or more 
					&lt;b&gt;itemizedRefund&lt;/b&gt; containers. One &lt;b&gt;itemizedRefund&lt;/b&gt; 
					container will be present for each refund fee type (such as purchase price or original
					shipping).
				</xs:documentation>
				<xs:appinfo>
					<callInfo>
						<callName>getReturnDetail</callName>
						<returned>Always</returned>
					</callInfo>
				</xs:appinfo>
			</xs:annotation>
		</xs:element>
		<xs:element minOccurs="0" maxOccurs="unbounded" name="itemizedOptionalRefund" type="tns:ItemizedRefundDetailType">
		<xs:annotation>
			<xs:documentation>
				One &lt;b&gt;itemizedOptionalRefund&lt;/b&gt; container will be present for each optional
				refund fee type that a seller can issue to a buyer (such as return shipping charge or restocking
				fee).
			</xs:documentation>
			<xs:appinfo>
				<callInfo>
					<callName>getReturnDetail</callName>
					<returned>Conditionally</returned>
				</callInfo>
			</xs:appinfo>
		</xs:annotation>
	</xs:element>      	
 </xs:sequence>
</xs:complexType>


<xs:complexType name="ItemizedRefundDetailType">
	<xs:annotation>
		<xs:documentation>
			Type defining the &lt;b&gt;itemizedRefund&lt;/b&gt; container. One &lt;b&gt;itemizedRefund&lt;/b&gt; 
			container appears under an &lt;b&gt;estimatedRefundDetail&lt;/b&gt; or an &lt;b&gt;actualRefundDetail&lt;/b&gt; 
			container per refund fee type. The idea behind the &lt;b&gt;itemizedRefund&lt;/b&gt;
			container is to track estimated and actual individual refund amounts by fee type (such as 
			purchase price, original shipping, or restocking fee).
		</xs:documentation>
	</xs:annotation>
	<xs:sequence>
		<xs:element name="refundFeeType" type="tns:RefundFeeType">
				<xs:annotation>
					<xs:documentation>
					 This value indicates the type of refund fee, such as purchase price or original 
					 shipping. 
					</xs:documentation>
					<xs:appinfo>
						<callInfo>                  
							<callName>getReturnDetail</callName>
							<returned>Conditionally</returned>
						</callInfo>
						<callInfo>                  
							<callName>issueRefund</callName>
							<requiredInput>Yes</requiredInput>
						</callInfo>
					</xs:appinfo>
				</xs:annotation>
		</xs:element>
        <xs:element name="amount" type="tns:Amount">
			<xs:annotation>
				<xs:documentation>
					This dollar amount indicates the amount of the corresponding refund fee type.
				</xs:documentation>
				<xs:appinfo>
					<callInfo>
						<callName>getReturnDetail</callName>
						<returned>Conditionally</returned>
					</callInfo>
					<callInfo>                  
						<callName>issueRefund</callName>
						<requiredInput>Yes</requiredInput>
					</callInfo>
				</xs:appinfo>
			</xs:annotation>
		</xs:element>			
     </xs:sequence>
</xs:complexType>

<xs:complexType name="ReturnResponseHistoryType">
	<xs:annotation>
		<xs:documentation>
			Type defining the &lt;b&gt;returnHistory&lt;/b&gt; container, which consists of details
			related to each activity in a return. A &lt;b&gt;returnHistory&lt;/b&gt; node is
			returned for each activity that has occurred with the return.
		</xs:documentation>
	</xs:annotation>
	<xs:sequence>
		<xs:element minOccurs="0" name="note" type="xs:string">
			<xs:annotation>
				<xs:documentation>
					This field is returned if the party initiating the action included a note. The text 
					in this field will mirror any text input into the text box in the Return Management 
					Center.
				</xs:documentation>
				<xs:appinfo>
					<callInfo>
						<callName>getReturnDetail</callName>
						<returned>Conditionally</returned>
					</callInfo>
				</xs:appinfo>
			</xs:annotation>
		</xs:element>
		<xs:element name="author" type="tns:ReturnUserType">
			<xs:annotation>
				<xs:documentation>
					Container that identifies the initiator of the action by eBay user ID and role in the 
					return.
				</xs:documentation>
				<xs:appinfo>
					<callInfo>
						<callName>getReturnDetail</callName>
						<returned>Always</returned>
					</callInfo>
				</xs:appinfo>
			</xs:annotation>
		</xs:element>
		
		<xs:element name="activityDetail" type="tns:ActivityDetailType">
			<xs:annotation>
				<xs:documentation>
					This container consists of the enumeration ID value and description of the return
					activity. Note that the &lt;b&gt;content&lt;/b&gt; element of this container is reserved 
					for future use.
				</xs:documentation>
				<xs:appinfo>
					<callInfo>
						<callName>getReturnDetail</callName>
						<returned>Conditionally</returned>
					</callInfo>
				</xs:appinfo>
			</xs:annotation>
		</xs:element>		
		<xs:element name="creationDate" type="xs:dateTime">
			<xs:annotation>
				<xs:documentation>
					The timestamp of the return activity.
				</xs:documentation>
				<xs:appinfo>
					<callInfo>
						<callName>getReturnDetail</callName>
						<returned>Always</returned>
					</callInfo>
				</xs:appinfo>
			</xs:annotation>
		</xs:element>
		<xs:any maxOccurs="unbounded" minOccurs="0" processContents="lax"/>
	</xs:sequence>
</xs:complexType>


<xs:complexType name="ShipmentType">
	<xs:annotation>
		<xs:documentation>
			Type defining the &lt;b&gt;buyerReturnShipment&lt;/b&gt; container, which consists of
			details related to the buyer's return shipment to the seller. Information in the
			&lt;b&gt;buyerReturnShipment&lt;/b&gt; container include the seller's primary return address on
			record, the expected delivery date, the shipping carrier and tracking number, the
			delivery status, and the shipping costs.
		</xs:documentation>
	</xs:annotation>
	<xs:sequence>
		<xs:element minOccurs="0" name="shipmentStatus" type="tns:ShipmentStatusType">
			<xs:annotation>
				<xs:documentation>
					This value indicates the current shipping status of the item.
				</xs:documentation>
				<xs:appinfo>
					<callInfo>
						<callName>getReturnDetail</callName>
						<returned>Conditionally</returned>
					</callInfo>
				</xs:appinfo>
			</xs:annotation>
		</xs:element>
		<xs:element minOccurs="0" name="trackingNumber" type="xs:string">
			<xs:annotation>
				<xs:documentation>
					This value is the tracking number used by the shipping carrier.
				</xs:documentation>
				<xs:appinfo>
					<callInfo>
						<callName>getReturnDetail</callName>
						<returned>Conditionally</returned>
					</callInfo>
				</xs:appinfo>
			</xs:annotation>
		</xs:element>
		<xs:element minOccurs="0" name="carrierUsed" type="xs:string">
			<xs:annotation>
				<xs:documentation>
					This value is the name of the shipping carrier.
				</xs:documentation>
				<xs:appinfo>
					<callInfo>
						<callName>getReturnDetail</callName>
						<returned>Conditionally</returned>
					</callInfo>
				</xs:appinfo>
			</xs:annotation>
		</xs:element>		
		<xs:element minOccurs="0" name="deliveryDate" type="xs:dateTime">
			<xs:annotation>
				<xs:documentation>
					This value indicates the actual date of delivery for the returned item. This field is 
					only returned after the seller has received the returned item from the buyer.
				</xs:documentation>
				<xs:appinfo>
					<callInfo>
						<callName>getReturnDetail</callName>
						<returned>Conditionally</returned>
					</callInfo>
				</xs:appinfo>
			</xs:annotation>
		</xs:element>
		<xs:element minOccurs="0" name="shippingCost" type="tns:Amount">
			<xs:annotation>
				<xs:documentation>
					This dollar value indicates the total shipping costs incurred by the buyer to ship the
					returned item.
				</xs:documentation>
				<xs:appinfo>
					<callInfo>
						<callName>getReturnDetail</callName>
						<returned>Conditionally</returned>
					</callInfo>
				</xs:appinfo>
			</xs:annotation>
		</xs:element>
		<xs:element name="shippingAddress" type="tns:Address">
			<xs:annotation>
				<xs:documentation>
					This container consists of the seller's primary return address in My eBay, or the return 
					address provided by the seller through the &lt;b&gt;provideSellerInfo&lt;/b&gt; call. 
				</xs:documentation>
				<xs:appinfo>
					<callInfo>
						<callName>getReturnDetail</callName>
						<returned>Conditionally</returned>
					</callInfo>
				</xs:appinfo>
			</xs:annotation>
		</xs:element>
		<xs:element minOccurs="0" name="returnMerchandiseAuthorization" type="xs:string">
			<xs:annotation>
				<xs:documentation>
					This value is the Return Merchandize Authorization (RMA) number associated with the item. 
					The RMA number for an item is expected to be provided by the seller to the buyer upon 
					request. This field is only returned if the buyer requests an RMA number and it is 
					provided by the seller.
				</xs:documentation>
				<xs:appinfo>
					<callInfo>
						<callName>getReturnDetail</callName>
						<returned>Conditionally</returned>
					</callInfo>
				</xs:appinfo>
			</xs:annotation>
		</xs:element>	
		<xs:element name="minEstDeliveryDate" type="xs:dateTime">
			<xs:annotation>
				<xs:documentation>
					This date is the earliest date that the seller can expect to receive a returned item from 
					the buyer.
				</xs:documentation>
				<xs:appinfo>
					<callInfo>
						<callName>getReturnDetail</callName>
						<returned>Conditionally</returned>
					</callInfo>
				</xs:appinfo>
			</xs:annotation>
		</xs:element>
		<xs:element name="maxEstDeliveryDate" type="xs:dateTime">
			<xs:annotation>
				<xs:documentation>
					This date is the latest date that the seller can expect to receive a returned item from 
					the buyer.
				</xs:documentation>
				<xs:appinfo>
					<callInfo>
						<callName>getReturnDetail</callName>
						<returned>Conditionally</returned>
					</callInfo>
				</xs:appinfo>
			</xs:annotation>
		</xs:element>		
	</xs:sequence>
</xs:complexType>


<xs:complexType name="Address">
	<xs:annotation>
		<xs:documentation>
			This type defines the return shipping address of the seller, and it is used by the &lt;b&gt;returnAddress&lt;/b&gt; 
			container of the &lt;b&gt;provideSellerInfo&lt;/b&gt; request and by the &lt;b&gt;shippingAddress&lt;/b&gt; 
			container of the &lt;b&gt;getReturnDetail&lt;/b&gt; response.
		</xs:documentation>
		<xs:appinfo>
			<typeLibrarySource library="MarketPlaceServiceCommonTypeLibrary" namespace="http://www.ebay.com/marketplace/services"/>
		</xs:appinfo>
	</xs:annotation>
	<xs:sequence>
		<xs:element minOccurs="0" name="name" type="xs:string">
			<xs:annotation>
				<xs:documentation>
					The name on record for the seller's shipping address.
				</xs:documentation>
				<xs:appinfo>
					<callInfo>
						<callName>getReturnDetail</callName>
						<returned>Conditionally</returned>
					</callInfo>
					<callInfo>
						<callName>provideSellerInfo</callName>
						<requiredInput>No</requiredInput>
					</callInfo>
				</xs:appinfo>
			</xs:annotation>
		</xs:element>
		<xs:element minOccurs="0" name="street1" type="xs:string">
			<xs:annotation>
				<xs:documentation>
					The street address on record for the seller's shipping address. If a seller is updating a 
					shipping address using the &lt;b&gt;provideSellerInfo&lt;/b&gt; call, this field is required.
				</xs:documentation>
				<xs:appinfo>
					<callInfo>
						<callName>getReturnDetail</callName>
						<returned>Conditionally</returned>
					</callInfo>
					<callInfo>
						<callName>provideSellerInfo</callName>
						<requiredInput>No</requiredInput>
					</callInfo>
				</xs:appinfo>
			</xs:annotation>
		</xs:element>
		<xs:element minOccurs="0" name="street2" type="xs:string">
			<xs:annotation>
				<xs:documentation>
					The second line of the street address on record for the seller's shipping address. 
					This field is not always used, but it should be provided (if applicable) if a seller is 
					updating a shipping address using the &lt;b&gt;provideSellerInfo&lt;/b&gt; call.
				</xs:documentation>
				<xs:appinfo>
					<callInfo>
						<callName>getReturnDetail</callName>
						<returned>Conditionally</returned>
					</callInfo>
					<callInfo>
						<callName>provideSellerInfo</callName>
						<requiredInput>No</requiredInput>
					</callInfo>
				</xs:appinfo>
			</xs:annotation>
		</xs:element>
		<xs:element minOccurs="0" name="city" type="xs:string">
			<xs:annotation>
				<xs:documentation>
					The city on record for the seller's shipping address. If a seller is updating a 
					shipping address using the &lt;b&gt;provideSellerInfo&lt;/b&gt; call, this field is required.
				</xs:documentation>
				<xs:appinfo>
					<callInfo>
						<callName>getReturnDetail</callName>
						<returned>Conditionally</returned>
					</callInfo>
					<callInfo>
						<callName>provideSellerInfo</callName>
						<requiredInput>No</requiredInput>
					</callInfo>
				</xs:appinfo>
			</xs:annotation>
		</xs:element>
		<xs:element minOccurs="0" name="county" type="xs:string">
			<xs:annotation>
				<xs:documentation>
					The county on record for the seller's shipping address. This field is not always used,
					but it should be provided (if applicable) if a seller is updating a shipping address
					using the &lt;b&gt;provideSellerInfo&lt;/b&gt; call.
				</xs:documentation>
				<xs:appinfo>
					<callInfo>
						<callName>getReturnDetail</callName>
						<returned>Conditionally</returned>
					</callInfo>
					<callInfo>
						<callName>provideSellerInfo</callName>
						<requiredInput>No</requiredInput>
					</callInfo>
				</xs:appinfo>
			</xs:annotation>
		</xs:element>
		<xs:element minOccurs="0" name="stateOrProvince" type="xs:string">
			<xs:annotation>
				<xs:documentation>
					The state or province on record for the seller's shipping address. If a seller is
					updating a shipping address using the &lt;b&gt;provideSellerInfo&lt;/b&gt; call, this field is
					required.
				</xs:documentation>
				<xs:appinfo>
					<callInfo>
						<callName>getReturnDetail</callName>
						<returned>Conditionally</returned>
					</callInfo>
					<callInfo>
						<callName>provideSellerInfo</callName>
						<requiredInput>No</requiredInput>
					</callInfo>
				</xs:appinfo>
			</xs:annotation>
		</xs:element>
		<xs:element minOccurs="0" name="country" type="xs:string">
			<xs:annotation>
				<xs:documentation>
					The country on record for the seller's shipping address. If a seller is updating a
					shipping address using the &lt;b&gt;provideSellerInfo&lt;/b&gt; call, this field is required.
				</xs:documentation>
				<xs:appinfo>
					<callInfo>
						<callName>getReturnDetail</callName>
						<returned>Conditionally</returned>
					</callInfo>
					<callInfo>
						<callName>provideSellerInfo</callName>
						<requiredInput>No</requiredInput>
					</callInfo>
				</xs:appinfo>
			</xs:annotation>
		</xs:element>
		<xs:element minOccurs="0" name="postalCode" type="xs:string">
			<xs:annotation>
				<xs:documentation>
					The postal code on record for the seller's shipping address. If a seller is updating a
					shipping address using the &lt;b&gt;provideSellerInfo&lt;/b&gt; call, this field is required.
				</xs:documentation>
				<xs:appinfo>
					<callInfo>
						<callName>getReturnDetail</callName>
						<returned>Conditionally</returned>
					</callInfo>
					<callInfo>
						<callName>provideSellerInfo</callName>
						<requiredInput>No</requiredInput>
					</callInfo>
				</xs:appinfo>
			</xs:annotation>
		</xs:element>
		
	</xs:sequence>
</xs:complexType>


<xs:complexType name="PaginationInput">
	<xs:annotation>
		<xs:documentation>
			Type defining the &lt;b&gt;paginationInput&lt;/b&gt; container, which is used to control the
			pagination of the result set, including the number of returns to return
			per page and the page number you want to return in the output. 
		</xs:documentation>
		<xs:appinfo>
			<typeLibrarySource library="MarketPlaceServiceCommonTypeLibrary" namespace="http://www.ebay.com/marketplace/services"/>
		</xs:appinfo>
	</xs:annotation>
	<xs:sequence>
		<xs:element minOccurs="0" name="pageNumber" type="xs:int">
			<xs:annotation>
				<xs:documentation>
					This integer value is used to specify the "page" of data to return in the call response.
					The total number of result pages is determined by the total number of returns
					(returned in &lt;b&gt;paginationOutput.totalEntries&lt;/b&gt;) matching the request
					criteria divided by the number of returns to display per page of data (specified in 
					&lt;b&gt;entriesPerPage&lt;/b&gt;). This value defaults to '1' if not specified. If there 
					are multiple pages of returns (see &lt;b&gt;paginationOutput.totalPages&lt;/b&gt;) 
					to view, multiple &lt;b&gt;getUserReturns&lt;/b&gt; calls can be made to view all returns, 
					and the &lt;b&gt;pageNumber&lt;/b&gt; value can be incremented by 1 in each
					subsequent call.
				</xs:documentation>
				<xs:appinfo>
					<min>1</min>
					<max>100</max>
					<default>1</default>
					<callInfo>
						<callName>getUserReturns</callName>
						<requiredInput>No</requiredInput>
					</callInfo>
				</xs:appinfo>
			</xs:annotation>
		</xs:element>
		<xs:element minOccurs="0" name="entriesPerPage" type="xs:int">
			<xs:annotation>
				<xs:documentation>
					This integer value is used to specify the maximum number of returns to display in a
					single "page" of data. This value, along with the number of returns that match the 
					input criteria, will determine the total pages (see &lt;b&gt;paginationOutput.totalPages&lt;/b&gt;) 
					in the result set. This value defaults to '200' (the maximum allowed value) if not
					specified.
				</xs:documentation>
				<xs:appinfo>
					<min>1</min>
					<max>200</max>
					<default>200</default>
					<callInfo>
						<callName>getUserReturns</callName>
						<requiredInput>No</requiredInput>
					</callInfo>
				</xs:appinfo>
			</xs:annotation>
		</xs:element>
		
	</xs:sequence>
</xs:complexType>


<xs:complexType name="PaginationOutput">
	<xs:annotation>
		<xs:documentation>
			Type defining the &lt;b&gt;paginationOutput&lt;/b&gt; container, which consists of fields
			that indicate the total number of pages and returns that
			match the input criteria, the number of returns per page, and the current page
			number being viewed. 
		</xs:documentation>
		<xs:appinfo>
			<typeLibrarySource library="MarketPlaceServiceCommonTypeLibrary" namespace="http://www.ebay.com/marketplace/services"/>
		</xs:appinfo>
	</xs:annotation>
	<xs:sequence>
		<xs:element minOccurs="0" name="pageNumber" type="xs:int">
			<xs:annotation>
				<xs:documentation>
					This integer value indicate the "page" number of the results set. The total number of
					result pages is determined by the total number of returns (returned in &lt;b&gt;paginationOutput.totalEntries&lt;/b&gt;) 
					matching the request criteria divided by the number of returns to display per page
					of data (indicated in &lt;b&gt;paginationOutput.entriesPerPage&lt;/b&gt;). If there are
					multiple pages of returns (see &lt;b&gt;paginationOutput.totalPages&lt;/b&gt;) to
					view, multiple &lt;b&gt;getUserReturns&lt;/b&gt; calls can be made to view all returns, 
					and the &lt;b&gt;paginationInput.pageNumber&lt;/b&gt; value can be incremented by
					1 in each subsequent call.
				</xs:documentation>
				<xs:appinfo>
					<min>1</min>
					<max>200</max>
					<default>1</default>
					<callInfo>
						<callName>getUserReturns</callName>
						<returned>Always</returned>
					</callInfo>
				</xs:appinfo>
			</xs:annotation>
		</xs:element>
		<xs:element minOccurs="0" name="entriesPerPage" type="xs:int">
			<xs:annotation>
				<xs:documentation>
					This integer value indicates the maximum number of returns to return in a single
					"page" of data. This value, along with the number of returns that match the input
					criteria, determines the total pages (see &lt;b&gt;paginationOutput.totalPages&lt;/b&gt;)
					in the result set. 
				</xs:documentation>
				<xs:appinfo>
					<min>1</min>
					<max>100</max>
					<default>1</default>
					<callInfo>
						<callName>getUserReturns</callName>
						<returned>Always</returned>
					</callInfo>
				</xs:appinfo>
			</xs:annotation>
		</xs:element>
		<xs:element minOccurs="0" name="totalPages" type="xs:int">
			<xs:annotation>
				<xs:documentation>
					This value indicates the total number of result pages that exist based on the current
					input criteria, including the &lt;b&gt;paginationInput&lt;/b&gt; fields. If 
					&lt;b&gt;totalPages&lt;/b&gt; is more than 1, multiple &lt;b&gt;getUserReturns&lt;/b&gt;
					calls must be made to view all result pages, with the &lt;b&gt;paginationInput.pageNumber&lt;/b&gt; 
					value being incremented by 1 in each subsequent call.
				</xs:documentation>
				<xs:appinfo>
					<callInfo>
						<callName>getUserReturns</callName>
						<returned>Always</returned>
					</callInfo>
				</xs:appinfo>
			</xs:annotation>
		</xs:element>
		<xs:element minOccurs="0" name="totalEntries" type="xs:int">
			<xs:annotation>
				<xs:documentation>
					This value indicates the total number of returns that exist based on the current
					input criteria. Once this value is known, the caller may want to considering tweaking the
					&lt;b&gt;paginationInput&lt;/b&gt; fields in the &lt;b&gt;getUserReturns&lt;/b&gt;
					request and making another call.
				</xs:documentation>
				<xs:appinfo>
					<callInfo>
						<callName>getUserReturns</callName>
						<returned>Always</returned>
					</callInfo>
				</xs:appinfo>
			</xs:annotation>
		</xs:element>
		
	</xs:sequence>
</xs:complexType>
	
			


	
<xs:complexType abstract="true" name="EnumerationDetailType">
	<xs:annotation>
		<xs:documentation>
			Parent type of the &lt;b&gt;ActivityDetailType&lt;/b&gt; and &lt;b&gt;ReturnReasonType&lt;/b&gt; 
			enumeration types. 
		</xs:documentation>
	</xs:annotation>
	<xs:sequence>
		<xs:element name="code" type="xs:token">
			<xs:annotation>
				<xs:documentation>
					Unique identifier of the enumeration value.
				</xs:documentation>
				<xs:appinfo>					
					<callInfo>
						<callName>getReturnDetail</callName>
						<callName>getUserReturns</callName>
						<returned>Always</returned>
					</callInfo>
				</xs:appinfo>
			</xs:annotation>
		</xs:element>		
		<xs:element name="description" type="xs:token">
			<xs:annotation>
				<xs:documentation>
					A description of the enumeration value.
				</xs:documentation>
				<xs:appinfo>					
					<callInfo>
						<callName>getReturnDetail</callName>
						<returned>Always</returned>
					</callInfo>
				</xs:appinfo>
			</xs:annotation>
		</xs:element>
		<xs:element minOccurs="0" name="content" type="xs:token">
			<xs:annotation>
				<xs:documentation>
					Reserved for future use. 
				</xs:documentation>
				<xs:appinfo>					
					<callInfo>
						<callName>getReturnDetail</callName>
						<returned>Always</returned>
					</callInfo>
				</xs:appinfo>
			</xs:annotation>
		</xs:element>
	</xs:sequence>
</xs:complexType>


<xs:complexType abstract="true" name="BaseActivityOptionType">
	<xs:annotation>
		<xs:documentation>
			Parent type for the &lt;b&gt;ProvideSellerInfoOptionType&lt;/b&gt; and &lt;b&gt;IssueRefundOptionType&lt;/b&gt; 
			types returned in the &lt;b&gt;getActivityOptions&lt;/b&gt; response.
		</xs:documentation>
	</xs:annotation>
	<xs:sequence>
		<xs:element maxOccurs="1" minOccurs="0" name="buyerPreference" type="xs:boolean">
			<xs:annotation>
				<xs:documentation>
					This field indicates the action that the buyer is seeking from the seller. This field is 
					only returned for the activity option if it is 'true'. 
					&lt;br/&gt;&lt;br/&gt;
					Only one activity option returned to a seller in the &lt;b&gt;getActivityOptions&lt;/b&gt; 
					response can be the buyer's preference. In other words, the &lt;b&gt;buyerPreference&lt;/b&gt; 
					field can only be 'true' for one activity option returned to the seller in the response.
					Typically, the &lt;b&gt;buyerPreference&lt;/b&gt; field is returned 'true' for the
					&lt;b&gt;IssueRefundOptionType&lt;/b&gt; field, but if the buyer is requesting an RMA
					number, the &lt;b&gt;buyerPreference&lt;/b&gt; field is returned 'true' for the 
					&lt;b&gt;ProvideSellerInfoOptionType&lt;/b&gt; field instead.
				</xs:documentation>
				<xs:appinfo>
					<callInfo>
						<callName>getActivityOptions</callName>
						<returned>Conditionally</returned>
					</callInfo>
				</xs:appinfo>
			</xs:annotation>
		</xs:element>		
	</xs:sequence>
	
</xs:complexType>


<xs:complexType name="IssueRefundOptionType">
		<xs:annotation>
  		<xs:documentation>
	  		Type defining the &lt;b&gt;ISSUE_REFUND&lt;/b&gt; activity option. If the &lt;b&gt;ISSUE_REFUND&lt;/b&gt; 
	  		activity option is returned in the &lt;b&gt;getActivityOptions&lt;/b&gt; response, the
				seller can use the &lt;b&gt;issueRefund&lt;/b&gt; call to issue a refund to the buyer.  
				container.
  		</xs:documentation>
  		<xs:appinfo>					
			<callInfo>
				<callName>getActivityOptions</callName>
				<returned>Conditionally</returned>
			</callInfo>
		</xs:appinfo>
		</xs:annotation>
		<xs:complexContent>
  			<xs:extension base="tns:BaseActivityOptionType">
  			<xs:sequence>				
				<xs:element minOccurs="0" name="daysToRefundBuyer" type="xs:integer">
					<xs:annotation>
						<xs:documentation>
							This integer value indicates the maximum number of business days that a seller has
							to issue a refund to the buyer once the seller has received the returned item. 
						</xs:documentation>
						<xs:appinfo>
							<callInfo>
								<callName>getActivityOptions</callName>
								<returned>Conditionally</returned>
							</callInfo>
						</xs:appinfo>
					</xs:annotation>					
				</xs:element>				
			  </xs:sequence>		  		
  			</xs:extension>
		</xs:complexContent>
</xs:complexType>


<xs:complexType name="ProvideSellerInfoOptionType">
		<xs:annotation>
  		<xs:documentation>
	  		Type defining the &lt;b&gt;provideSellerInfo&lt;/b&gt; activity option. If the &lt;b&gt;provideSellerInfo&lt;/b&gt; 
				activity option is returned in the &lt;b&gt;getActivityOptions&lt;/b&gt; response, the
				seller can use the &lt;b&gt;provideSellerInfo&lt;/b&gt; call to provide an RMA (Return
				Merchandise Authorization) number to the buyer. The &lt;b&gt;buyerPreference&lt;/b&gt;
				child field will indicate whether an RMA number is the buyer's preference. 
  		</xs:documentation>
  		<xs:appinfo>					
			<callInfo>
				<callName>getActivityOptions</callName>
				<returned>Conditionally</returned>
			</callInfo>
		</xs:appinfo>
		</xs:annotation>
		<xs:complexContent>
  			<xs:extension base="tns:BaseActivityOptionType">	  		
  			</xs:extension>
		</xs:complexContent>
</xs:complexType>

<xs:simpleType name="ActivityOptionType">
	<xs:annotation>
		<xs:documentation>
			Enumerated type that defines a seller's next possible actions to take in a return.
		</xs:documentation>
	</xs:annotation>
	<xs:restriction base="xs:string">		
		<xs:enumeration value="ISSUE_REFUND">
			<xs:annotation>
				<xs:documentation>
					This value indicates that the seller's next action is to issue a refund to the buyer.
				</xs:documentation>
			</xs:annotation>
		</xs:enumeration>
		<xs:enumeration value="PROVIDE_SELLER_INFO">
			<xs:annotation>
				<xs:documentation>
					This value indicates that the seller's next action is to provide an RMA (Return 
					Merchandise Authorization) number to the buyer.
				</xs:documentation>
			</xs:annotation>
		</xs:enumeration>
		<xs:enumeration value="OTHER">
			<xs:annotation>
				<xs:documentation>
				 This value is reserved for future use.
				</xs:documentation>
			</xs:annotation>
		</xs:enumeration>
	</xs:restriction>
 </xs:simpleType>



 <xs:complexType name="ActivityOptionListType">
	<xs:annotation>
		<xs:documentation>
			Type that defines the &lt;b&gt;activityOptions&lt;/b&gt; field, which contains an enumeration
			value that indicates the next possible action that a seller can take to resolve a return. 
		</xs:documentation>
	</xs:annotation>
	<xs:choice maxOccurs="unbounded" minOccurs="0">	
		<xs:element name="issueRefund" type="tns:IssueRefundOptionType">
			<xs:annotation>
				<xs:documentation>
					This value is returned in the &lt;b&gt;activityOptions&lt;/b&gt; field if the seller's
					next action is to issue a refund to the buyer. A selller can issue a refund to a buyer by
					using the &lt;b&gt;issueRefund&lt;/b&gt; call.
				</xs:documentation>
				<xs:appinfo>
					<callInfo>
						<callName>getActivityOptions</callName>
						<returned>Conditionally</returned>
					</callInfo>
				</xs:appinfo>
			</xs:annotation>
		</xs:element>			
		<xs:element name="provideSellerInfo" type="tns:ProvideSellerInfoOptionType">
			<xs:annotation>
				<xs:documentation>
					This value is returned in the &lt;b&gt;activityOptions&lt;/b&gt; field if the seller's 
					next action is to provide an RMA to the buyer. A selller can provide an RMA (Return 
					Merchandise Authorization) number to a buyer by using the &lt;b&gt;provideSellerInfo&lt;/b&gt; 
					call.
				</xs:documentation>
				<xs:appinfo>
					<callInfo>
						<callName>getActivityOptions</callName>
						<returned>Conditionally</returned>
					</callInfo>
				</xs:appinfo>
			</xs:annotation>
		</xs:element>
    </xs:choice>
</xs:complexType>


<xs:complexType name="ActivityDetailType">
	<xs:annotation>
 		<xs:documentation>
  		This type defines the &lt;b&gt;returnDetail.returnHistory.activityDetail&lt;/b&gt; container
			returned in the &lt;b&gt;getReturnDetail&lt;/b&gt; response. This container is always
			returned. The &lt;b&gt;description&lt;/b&gt; child field describes the return activity.
 		</xs:documentation>
	</xs:annotation>
	<xs:complexContent>
 			<xs:extension base="tns:EnumerationDetailType">	  		
 			</xs:extension>
	</xs:complexContent>
</xs:complexType>

<xs:simpleType name="ReturnStatusType">
	<xs:annotation>
		<xs:documentation>
			Enumerated type containing the possible states for a return.
		</xs:documentation>
	</xs:annotation>
	<xs:restriction base="xs:token">
		<xs:enumeration value="WAITING_FOR_SELLER_INFO">
			<xs:annotation>
				<xs:documentation>
					This value indicates that the the buyer is expecting to receive an RMA (Return
					Merchandise Authorization) number and/or an alternative return shipping address from
					the seller before the item is shipped back to the seller.
				</xs:documentation>
			</xs:annotation>
		</xs:enumeration>
		<xs:enumeration value="READY_FOR_SHIPPING">
			<xs:annotation>
				<xs:documentation>
					This value indicates that the buyer is cleared to ship the item back to the seller.
				</xs:documentation>
			</xs:annotation>
		</xs:enumeration>
		<xs:enumeration value="ITEM_SHIPPED">
			<xs:annotation>
				<xs:documentation>
					This value indicates that the buyer has shipped the item back to the seller.
				</xs:documentation>
			</xs:annotation>
		</xs:enumeration>
		<xs:enumeration value="ITEM_DELIVERED">
			<xs:annotation>
				<xs:documentation>
					This value indicates that the returned item has been received by the seller.
				</xs:documentation>
			</xs:annotation>
		</xs:enumeration>
		<xs:enumeration value="CLOSED">
			<xs:annotation>
				<xs:documentation>
					This value indicates that the return has been closed.
				</xs:documentation>
			</xs:annotation>
		</xs:enumeration>
		<xs:enumeration value="ESCALATED">
			<xs:annotation>
				<xs:documentation>
					This value indicates that the buyer has escalated the  
					return to an eBay Buyer Protection case. When a return is escalated to an eBay 
					Buyer Protection case, the return is closed.
				</xs:documentation>
			</xs:annotation>
		</xs:enumeration>
		
		<xs:enumeration value="UNKNOWN">
			<xs:annotation>
				<xs:documentation>
					This value indicates that the status of the return is unknown.
				</xs:documentation>
			</xs:annotation>
		</xs:enumeration>
	</xs:restriction>
</xs:simpleType>

	<xs:element name="NotificationEvent" type="tns:NotificationEventType">
            <xs:annotation>
            	<xs:documentation>
              	The Platform Notification event sent to a third party.
              </xs:documentation>
            </xs:annotation>
      </xs:element>
      <xs:complexType name="NotificationEventType">
            <xs:annotation>
              <xs:documentation>
              	Type defining the &lt;b&gt;NotificationEvent&lt;/b&gt; element.
            	</xs:documentation>
            </xs:annotation>
            <xs:sequence>
                  <xs:element name="NotificationEventName" type="tns:NotificationEventNameType">
                        <xs:annotation>
                        	<xs:documentation>
                        		One of the eight possible Platform Notification events for the Return
														Management API. See also http://developer.ebay.com/devzone/xml/docs/reference/ebay/SetNotificationPreferences.html#Request.EventProperty.EventType
                        	</xs:documentation>
                        </xs:annotation>
                  </xs:element>
                  <xs:element name="RecipientUserID" type="xs:string">
                        <xs:annotation>
                        	<xs:documentation>
                          	The user ID of the eBay user subscribed to Platform Notifications.
                        	</xs:documentation>
                        </xs:annotation>
                  </xs:element>
                  <xs:element name="ExternalUserData" type="xs:string">
                        <xs:annotation>
                          <xs:documentation>
                          	Echo back of user data. See also http://developer.ebay.com/devzone/xml/docs/reference/ebay/SetNotificationPreferences.html#Request.UserData.ExternalUserData
                          </xs:documentation>
                        </xs:annotation>
                  </xs:element>
                  <xs:element name="ReturnId" type="xs:string">
                        <xs:annotation>
                          <xs:documentation>
                          	The unique identifier of an eBay Return.  
                         	</xs:documentation>
                        </xs:annotation>
                  </xs:element>                      
                  <xs:element name="CreationDate" type="xs:dateTime">
                        <xs:annotation>
                          <xs:documentation>
                          	Timestamp for the creation of the Platform Notification (in UTC).
                          </xs:documentation>
                        </xs:annotation>
                  </xs:element>
                  <xs:element name="OtherPartyId" type="xs:string">
                        <xs:annotation>
                          <xs:documentation>
                          	The eBay user ID of the other party involved in the return.
                          </xs:documentation>
                        </xs:annotation>
                  </xs:element>
                  <xs:element name="OtherPartyRole" type="tns:ReturnUserRoleType">
                        <xs:annotation>
                           <xs:documentation>
                           	The other party's role in the return.
                           </xs:documentation>
                        </xs:annotation>
                  </xs:element>
                  <xs:element name="ReturnStatus" type="xs:string">
                        <xs:annotation>
                           <xs:documentation>
                           	The current return status of the item in the return.  
                           </xs:documentation>
                        </xs:annotation>
                  </xs:element>
                  <xs:element name="ReturnGlobalId" type="xs:token">
                        <xs:annotation>
                           <xs:documentation>
                           	Global ID (such as EBAY-US) of the eBay site where the order occurred. 
                           </xs:documentation>
                        </xs:annotation>
                  </xs:element>
            </xs:sequence>
      </xs:complexType>	
	
		<xs:simpleType name="NotificationEventNameType">
		<xs:annotation>
			<xs:documentation>
				Enumerated type containing the Platform Notification events associated with eBay Returns
				and the Return Management API.
			</xs:documentation>
		</xs:annotation>
		<xs:restriction base="xs:token">
			<xs:enumeration value="ReturnCreated">
				<xs:annotation>
					<xs:documentation>
						This notification type is sent to the subscribed user or application when a return 
						is created by the buyer.
					</xs:documentation>
				</xs:annotation>
			</xs:enumeration>
			<xs:enumeration value="ReturnWaitingForSellerInfo">
				<xs:annotation>
					<xs:documentation>
						This notification type is sent to the subscribed user or application when a return
						is waiting for the seller to provide an RMA number to the buyer.
					</xs:documentation>
				</xs:annotation>
			</xs:enumeration>
			<xs:enumeration value="ReturnSellerInfoOverdue">
				<xs:annotation>
					<xs:documentation>
						This notification type is sent to the subscribed user or application when the due date 
						for an RMA is overdue.
					</xs:documentation>
				</xs:annotation>
			</xs:enumeration>
			<xs:enumeration value="ReturnShipped">
				<xs:annotation>
					<xs:documentation>
						This notification type is sent to the subscribed user or application when the item
						associated with a return is shipped back to the seller.
					</xs:documentation>
				</xs:annotation>
			</xs:enumeration>
			<xs:enumeration value="ReturnDelivered">
				<xs:annotation>
					<xs:documentation>
						This notification type is sent to the subscribed user or application when the item
						associated with a return has been delivered to the seller.
					</xs:documentation>
				</xs:annotation>
			</xs:enumeration>
			<xs:enumeration value="ReturnRefundOverdue">
				<xs:annotation>
					<xs:documentation>
						This notification type is sent to the subscribed user or application when the refund to 
						the buyer is overdue.					
					</xs:documentation>
				</xs:annotation>
			</xs:enumeration>
			<xs:enumeration value="ReturnClosed">
				<xs:annotation>
					<xs:documentation>
						This notification type is sent to the subscribed user or application when a return 
						is closed by the system.
					</xs:documentation>
				</xs:annotation>
			</xs:enumeration>
			<xs:enumeration value="ReturnEscalated">
				<xs:annotation>
					<xs:documentation>
						This notification type is sent to the subscribed user or application when a (SNAD) 
						return is escalated to the eBay Buyer Protection system.
					</xs:documentation>
				</xs:annotation>
			</xs:enumeration>			
		</xs:restriction>
	</xs:simpleType>
		</xs:schema>
	</types>

	<message name="getVersionRequest">
		<part element="tns:getVersionRequest" name="params"/>
	</message>
	<message name="getVersionResponse">
		<part element="tns:getVersionResponse" name="params"/>
	</message>
	<message name="getUserReturnsRequest">
		<part element="tns:getUserReturnsRequest" name="params"/>
	</message>
	<message name="getUserReturnsResponse">
		<part element="tns:getUserReturnsResponse" name="params"/>
	</message>
	<message name="getReturnDetailRequest">
		<part element="tns:getReturnDetailRequest" name="params"/>
	</message>
	<message name="getReturnDetailResponse">
		<part element="tns:getReturnDetailResponse" name="params"/>
	</message>
	<message name="getActivityOptionsRequest">
		<part element="tns:getActivityOptionsRequest" name="params"/>
	</message>
	<message name="getActivityOptionsResponse">
		<part element="tns:getActivityOptionsResponse" name="params"/>
	</message>
	<message name="issueRefundRequest">
		<part element="tns:issueRefundRequest" name="params"/>
	</message>
	<message name="issueRefundResponse">
		<part element="tns:issueRefundResponse" name="params"/>
	</message>	
	<message name="provideSellerInfoRequest">
		<part element="tns:provideSellerInfoRequest" name="params"/>
	</message>
	<message name="provideSellerInfoResponse">
		<part element="tns:provideSellerInfoResponse" name="params"/>
	</message>	
	<message name="getReturnMetadataRequest">
		<part element="tns:getReturnMetadataRequest" name="params"/>
	</message>
	<message name="getReturnMetadataResponse">
		<part element="tns:getReturnMetadataResponse" name="params"/>
	</message>	

	<portType name="ReturnManagementServicePort">
		<operation name="getVersion">
			<wsdl:documentation>
				Get current service version.
			</wsdl:documentation>
			<input message="tns:getVersionRequest"/>
			<output message="tns:getVersionResponse"/>
		</operation>
		<operation name="getUserReturns">
			<wsdl:documentation>
				Get list of Returns for an eBay member. 
			</wsdl:documentation>
			<input message="tns:getUserReturnsRequest"/>
			<output message="tns:getUserReturnsResponse"/>
		</operation>
		<operation name="getReturnDetail">
			<wsdl:documentation>
				Gets details on a specific Return.
			</wsdl:documentation>
			<input message="tns:getReturnDetailRequest"/>
			<output message="tns:getReturnDetailResponse"/>
		</operation>
		<operation name="getActivityOptions">
			<wsdl:documentation>
				Get activity options for the current state of the Return.
			</wsdl:documentation>
			<input message="tns:getActivityOptionsRequest"/>
			<output message="tns:getActivityOptionsResponse"/>
		</operation>
		<operation name="issueRefund">
			<wsdl:documentation>
				Issues full refund.
			</wsdl:documentation>
			<input message="tns:issueRefundRequest"/>
			<output message="tns:issueRefundResponse"/>
		</operation>		
		<operation name="provideSellerInfo">
			<wsdl:documentation>
				Allow seller to provide the RMA and return address information.
			</wsdl:documentation>
			<input message="tns:provideSellerInfoRequest"/>
			<output message="tns:provideSellerInfoResponse"/>
		</operation>	
		<operation name="getReturnMetadata">
			<wsdl:documentation>
				Allows third party developers to get the details of return management system.
			</wsdl:documentation>
			<input message="tns:getReturnMetadataRequest"/>
			<output message="tns:getReturnMetadataResponse"/>
		</operation>	
	</portType>

	<binding name="ReturnManagementServiceSOAPBinding" type="tns:ReturnManagementServicePort">
		<soap12:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/>
		<operation name="getVersion">
			<soap12:operation soapAction="http://www.ebay.com/marketplace/returns/v1/services/getVersion"/>
			<input>
				<soap12:body use="literal"/>
			</input>
			<output>
				<soap12:body use="literal"/>
			</output>
		</operation>
		<operation name="getUserReturns">
			<soap12:operation soapAction="http://www.ebay.com/marketplace/returns/v1/services/getUserReturns"/>
			<input>
				<soap12:body use="literal"/>
			</input>
			<output>
				<soap12:body use="literal"/>
			</output>
		</operation>
		<operation name="getReturnDetail">
			<soap12:operation soapAction="http://www.ebay.com/marketplace/returns/v1/services/getReturnDetail"/>
			<input>
				<soap12:body use="literal"/>
			</input>
			<output>
				<soap12:body use="literal"/>
			</output>
		</operation>
		<operation name="getActivityOptions">
			<soap12:operation soapAction="http://www.ebay.com/marketplace/returns/v1/services/getActivityOptions"/>
			<input>
				<soap12:body use="literal"/>
			</input>
			<output>
				<soap12:body use="literal"/>
			</output>
		</operation>
		<operation name="issueRefund">
			<soap12:operation soapAction="http://www.ebay.com/marketplace/returns/v1/services/refundBuyer"/>
			<input>
				<soap12:body use="literal"/>
			</input>
			<output>
				<soap12:body use="literal"/>
			</output>
		</operation>		
		<operation name="provideSellerInfo">
			<soap12:operation soapAction="http://www.ebay.com/marketplace/returns/v1/services/provideSellerInfo"/>
			<input>
				<soap12:body use="literal"/>
			</input>
			<output>
				<soap12:body use="literal"/>
			</output>
		</operation>
		<operation name="getReturnMetadata">
			<soap12:operation soapAction="http://www.ebay.com/marketplace/returns/v1/services/getReturnMetadata"/>
			<input>
				<soap12:body use="literal"/>
			</input>
			<output>
				<soap12:body use="literal"/>
			</output>
		</operation>			
	</binding>

	<binding name="ReturnManagementServiceHttpBinding" type="tns:ReturnManagementServicePort">
		<http:binding verb="POST"/>
		<operation name="getVersion">		
			<http:operation location="/getVersion"/>
			<input>
				<mime:content part="params" type="application/x-www-form-urlencoded"/>
			</input>
			<output>
				<mime:content part="params" type="text/xml"/>
			</output>
		</operation>
		<operation name="getUserReturns">	
			<http:operation location="/getUserReturns"/>
			<input>
				<mime:content part="params" type="application/x-www-form-urlencoded"/>
			</input>
			<output>
				<mime:content part="params" type="text/xml"/>
			</output>
		</operation>
		<operation name="getReturnDetail">	
			<http:operation location="/getReturnDetail"/>
			<input>
				<mime:content part="params" type="application/x-www-form-urlencoded"/>
			</input>
			<output>
				<mime:content part="params" type="text/xml"/>
			</output>
		</operation>
		<operation name="getActivityOptions">	
			<http:operation location="/getActivityOptions"/>
			<input>
				<mime:content part="params" type="application/x-www-form-urlencoded"/>
			</input>
			<output>
				<mime:content part="params" type="text/xml"/>
			</output>
		</operation>
		<operation name="issueRefund">	
			<http:operation location="/issueRefund"/>
			<input>
				<mime:content part="params" type="application/x-www-form-urlencoded"/>
			</input>
			<output>
				<mime:content part="params" type="text/xml"/>
			</output>
		</operation>	
		<operation name="provideSellerInfo">	
			<http:operation location="/provideSellerInfo"/>
			<input>
				<mime:content part="params" type="application/x-www-form-urlencoded"/>
			</input>
			<output>
				<mime:content part="params" type="text/xml"/>
			</output>
		</operation>
		<operation name="getReturnMetadata">	
			<http:operation location="/getReturnMetadata"/>
			<input>
				<mime:content part="params" type="application/x-www-form-urlencoded"/>
			</input>
			<output>
				<mime:content part="params" type="text/xml"/>
			</output>
		</operation>
			
	</binding>

	<service name="ReturnManagementService">
		<wsdl:documentation>
			<version>1.0.0</version>
			Service allows consumers to get Resolution Return information, and its
			details.
		</wsdl:documentation>
		<port binding="tns:ReturnManagementServiceHttpBinding" name="ReturnManagementServiceHttpPort">
			<http:address location="https://svcs.ebay.com/services/returns/v1/ReturnManagementService"/>
		</port>
		<port binding="tns:ReturnManagementServiceSOAPBinding" name="ReturnManagementServiceSOAPPort">
			<soap12:address location="https://svcs.ebay.com/services/returns/v1/ReturnManagementService"/>
		</port>
	</service>
</definitions>