<?xml version="1.0" encoding="UTF-8"?>
<wsdl:definitions targetNamespace="http://www.ebay.com/marketplace/services" xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:ns0="http://www.ebay.com/marketplace/services" xmlns:http="http://schemas.xmlsoap.org/wsdl/http/" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/" xmlns="http://schemas.xmlsoap.org/wsdl/">

	<wsdl:types>
		<xs:schema attributeFormDefault="unqualified" elementFormDefault="qualified" targetNamespace="http://www.ebay.com/marketplace/services" xmlns:tns="http://www.ebay.com/marketplace/services" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:Q1="http://www.ebay.com/marketplace/services" xmlns:Q2="http://www.ebay.com/marketplace/services">


<xs:element name="addUsageRequest" nillable="true" type="tns:OpeneBayAddUsageRequestType"/>
<xs:element name="addUsageResponse" nillable="true" type="tns:OpeneBayAddUsageResponseType"/>
<xs:element name="getBillingStatementsRequest" nillable="true" type="tns:OpeneBayGetBillingStatementsRequestType"/>
<xs:element name="getBillingStatementsResponse" nillable="true" type="tns:OpeneBayGetBillingStatementsResponseType"/>
<xs:element name="getBillingRecordsRequest" nillable="true" type="tns:OpeneBayGetBillingRecordsRequestType"/>
<xs:element name="getBillingRecordsResponse" nillable="true" type="tns:OpeneBayGetBillingRecordsResponseType"/>
<xs:element name="addCreditRequest" nillable="true" type="tns:OpeneBayAddCreditRequestType"/>
<xs:element name="addCreditResponse" nillable="true" type="tns:OpeneBayAddCreditResponseType"/>
<xs:element name="getCreditsRequest" nillable="true" type="tns:OpeneBayGetCreditsRequestType"/>
<xs:element name="getCreditsResponse" nillable="true" type="tns:OpeneBayGetCreditsResponseType"/>
<xs:element name="setBillingStartDateRequest" nillable="true" type="tns:OpeneBaySetBillingStartDateRequestType"/>
<xs:element name="setBillingStartDateResponse" nillable="true" type="tns:OpeneBaySetBillingStartDateResponseType"/>

<!-- Common types start -->

<!-- Base request types -->
<xs:complexType name="Amount">
	<xs:annotation>
		<xs:documentation>
			Basic type for specifying monetary amounts. A double value (e.g.,
			1.00 or 1.0) is meaningful as a monetary amount when accompanied by a
			specification of the currency, in which case the value specifies
			the amount in that currency. An Amount expresses both the value
			(a double) and the currency. Details such as prices, fees, costs,
			and payments are specified as amount types.
		</xs:documentation>
	</xs:annotation>
  <xs:simpleContent>
		<xs:extension base="xs:double">
			<xs:attribute name="currencyId" type="xs:string" use="required">
				<xs:annotation>
					<xs:documentation>
						Currency in which the monetary amount is specified. A three-letter ID, such as
						USD, CAD, DEM. Currently, USD is the only available value.
					</xs:documentation>
					<xs:appinfo>
						<CallInfo>
							<CallName>addUsage</CallName>
							<RequiredInput>Yes</RequiredInput>
						</CallInfo>
					</xs:appinfo>
				</xs:annotation>
			</xs:attribute>
		</xs:extension>
	</xs:simpleContent>
</xs:complexType>

<xs:complexType name="TimeRange">
	<xs:annotation>
		<xs:documentation>
			Container for time ranges.
		</xs:documentation>
	</xs:annotation>
	<xs:sequence>
		<xs:element name="timeFrom" type="xs:dateTime" minOccurs="0">
		<xs:annotation>
			<xs:documentation>
				Specifies the earliest (oldest) date to be used in a date range.
			</xs:documentation>
			<xs:appinfo>
				<CallInfo>
					<CallName>getBillingRecords</CallName>
					<CallName>addUsage</CallName>
					<RequiredInput>Yes</RequiredInput>
				</CallInfo>
				<CallInfo>
					<CallName>getCredits</CallName>
					<RequiredInput>No</RequiredInput>
				</CallInfo>
			</xs:appinfo>
		</xs:annotation>
		</xs:element>
		<xs:element name="timeTo" type="xs:dateTime" minOccurs="0">
		<xs:annotation>
			<xs:documentation>
				Specifies the latest (most recent) date to be used in a date range.
			</xs:documentation>
			<xs:appinfo>
				<CallInfo>
					<CallName>getBillingRecords</CallName>
					<CallName>addUsage</CallName>
					<RequiredInput>Yes</RequiredInput>
				</CallInfo>
				<CallInfo>
					<CallName>getCredits</CallName>
					<RequiredInput>No</RequiredInput>
				</CallInfo>
			</xs:appinfo>
		</xs:annotation>
		</xs:element>
		<xs:any maxOccurs="unbounded" minOccurs="0" processContents="lax"/>
	</xs:sequence>
</xs:complexType>

<xs:complexType abstract="true" name="BaseServiceRequest">
	<xs:annotation>
		<xs:documentation>
			Base response container for all service operations.
		</xs:documentation>
	</xs:annotation>
	<xs:sequence>
		<xs:any/>
	</xs:sequence>
</xs:complexType>


<!-- Base response types -->
<xs:complexType name="BaseServiceResponse" abstract="true">
	<xs:annotation>
		<xs:documentation>
	 		Base response container for all service operations. Contains error
			information associated with the request.
		</xs:documentation>
	</xs:annotation>
	<xs:sequence>
		<xs:element name="ack" type="tns:AckValue">
			<xs:annotation>
				<xs:documentation>
					Indicates whether there are any errors or warnings associated with the
					processing of the request.
				</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.
				</xs:documentation>
				<xs:appinfo>
					<CallInfo>
						<AllCalls/>
						<Returned>Conditionally</Returned>
					</CallInfo>
				</xs:appinfo>
			</xs:annotation>
		</xs:element>
		<xs:element name="version" type="xs:string">
			<xs:annotation>
				<xs:documentation>
					Open eBay version.
				</xs:documentation>
				<xs:appinfo>
					<CallInfo>
						<AllCalls/>
						<Returned>Always</Returned>
					</CallInfo>
				</xs:appinfo>
			</xs:annotation>
		</xs:element>
		<xs:element name="timestamp" type="xs:dateTime">
			<xs:annotation>
				<xs:documentation>
					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:any/>
	</xs:sequence>
</xs:complexType>


<xs:simpleType name="AckValue">
	<xs:annotation>
		<xs:documentation>
			Indicates whether the error is a severe error (causing the request to fail)
			or an informational error (a warning) that should be communicated to the
			user.
		</xs:documentation>
	</xs:annotation>
	<xs:restriction base="xs:string">
		<xs:enumeration value="Success">
			<xs:annotation>
				<xs:documentation>
					The request was processed successfully, but something occurred that may
					affect your application or the user.
				</xs:documentation>
			</xs:annotation>
		</xs:enumeration>
		<xs:enumeration value="Failure">
			<xs:annotation>
				<xs:documentation>
					The request that triggered the error was not processed successfully.
					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 some warnings.
				</xs:documentation>
			</xs:annotation>
		</xs:enumeration>
		<xs:enumeration value="PartialFailure">
			<xs:annotation>
				<xs:documentation>
					The request that triggered the error was processed successfully but with some warnings.
				</xs:documentation>
			</xs:annotation>
		</xs:enumeration>
	</xs:restriction>
</xs:simpleType>


<xs:complexType name="ErrorMessage">
	<xs:annotation>
		<xs:documentation>
			ErrorMessage to indicate any Error/Warning occured as part of service call.
			Any run time error will not be reported here, but will be reported aspart of
			soap fault.
		</xs:documentation>
	</xs:annotation>
	<xs:sequence>
		<xs:element name="error" type="tns:ErrorData" nillable="true" minOccurs="0" maxOccurs="unbounded">
			<xs:annotation>
				<xs:documentation>
					ActivityProfile 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="ErrorData">
	<xs:annotation>
		<xs:documentation>
			This represents error details.
		</xs:documentation>
	</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 upon which the error occurred.
					&lt;dl&gt;
					&lt;lh&gt;Domains include:&lt;/lh&gt;
					&lt;dt&gt;
						Marketplace
					&lt;/dt&gt;
					&lt;dd&gt;
						A business or validation error occurred for the UserProfile Service.
					&lt;/dd&gt;
					&lt;dt&gt;
						SOA
					&lt;/dt&gt;
					&lt;dd&gt;
						An exception occurred in the Service Oriented Architecture (SOA) framework.
					&lt;/dd&gt;
					&lt;/dl&gt;
				</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 error caused the request to fail (Error) or not
					(Warning).
					&lt;br&gt;&lt;br&gt;
					If the request fails and the source of the problem is within the application
					(such as a missing required element), please change the application before you
					retry the request. If the problem is due to end-user input data, please 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, you can attempt to 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 as-is
					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.
					&lt;br&gt;&lt;br&gt;
					When a warning occurs, the error is returned in addition to the business data.
					In this case, you do not need to retry the request (as the original request was
					successful). However, depending on the cause or nature of the warning, you
					might need to contact either the end user or eBay to effect a long term
					solution to the problem to prevent it from reoccurring in the future.
				</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 resulted in the error.
				</xs:documentation>
				<xs:appinfo>
					<CallInfo>
						<AllCalls/>
						<Returned>Conditionally</Returned>
					</CallInfo>
				</xs:appinfo>
			</xs:annotation>
		</xs:element>
		<xs:element name="subdomain" type="xs:string" minOccurs="0">
			<xs:annotation>
				<xs:documentation>
					Name of the subdomain upon which the error occurred. Subdomains include the
					following: UserProfile (in which the error is specific to the UserProfile
					service) and MarketplaceCommon (in which the error is common to all
					Marketplace
					services).
				</xs:documentation>
				<xs:appinfo>
					<CallInfo>
						<AllCalls/>
						<Returned>Conditionally</Returned>
					</CallInfo>
				</xs:appinfo>
			</xs:annotation>
		</xs:element>
		<xs:element name="exceptionId" type="xs:token" minOccurs="0">
			<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 name="parameter" type="tns:ErrorParameter" nillable="true" minOccurs="0" maxOccurs="unbounded">
			<xs:annotation>
				<xs:documentation>
					Some 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="ErrorParameter">
	<xs:annotation>
		<xs:documentation>
			Contextual information associated with an error.
		</xs:documentation>
	</xs:annotation>
	<xs:simpleContent>
		<xs:extension base="xs:string">
			<xs:attribute name="name" type="xs:string">
				<xs:annotation>
					<xs:documentation>
						The name of the parameter in the list of parameter types returned
						within the error type.
					</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 severe error (causing the request to fail)
			or an informational error (a warning) that should be communicated to the
			user.
		</xs:documentation>
	</xs:annotation>
	<xs:restriction base="xs:string">
		<xs:enumeration value="Error">
			<xs:annotation>
				<xs:documentation>
					The request that triggered the error was not processed successfully.
					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 was processed successfully, but something occurred that may
					affect your application or the user. For example, eBay may have changed a
					value the user sent in. In this case, eBay returns a normal, successful
					response and also returns the warning.
				</xs:documentation>
			</xs:annotation>
		</xs:enumeration>
	</xs:restriction>
</xs:simpleType>


<xs:simpleType name="ErrorCategory">
	<xs:annotation>
		<xs:documentation>
			There are three categories of error: request errors, application errors,
			and system errors. Request and application errors are caused primarily by
			invalid data passed in the request. System errors are caused primarily by
			application failures and cannot be corrected by changing request values.
		</xs:documentation>
	</xs:annotation>
	<xs:restriction base="xs:string">
		<xs:enumeration value="System">
			<xs:annotation>
				<xs:documentation>
					Indicates that an error has occurred on the eBay system side, such as a
					database or server down. An application can retry the request as-is 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, such as missing or
					invalid fields. The problem must be corrected before the request can be
					made again. If the problem is due to something in the application (such
					as a missing required field), the application must be changed. Once the
					problem in the appilcation or data is resolved, resend the corrected
					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, such as invalid or
					missing data. The problem must be corrected before the request can be
					made again. If the problem is a result of end-user data, the application
					must alert the end-user to the problem and provide the means for the
					end-user to correct the data. Once the problem in the data is resolved,
					resend the request to eBay with the corrected data.
				</xs:documentation>
			</xs:annotation>
		</xs:enumeration>
	</xs:restriction>
</xs:simpleType>
<!-- Common types end -->

	<xs:simpleType name="OpeneBaySubscriptionChargeType">
		<xs:annotation>
			<xs:documentation>
				Container for available types of charges that your application's subscribers can incur.
			</xs:documentation>
		</xs:annotation>
		<xs:restriction base="xs:token">
			<xs:enumeration value="FreeTrial">
   			<xs:annotation>
	 				<xs:documentation>
	 					The subscription is on a free trial basis.
	 				</xs:documentation>
	 			</xs:annotation>
			</xs:enumeration>
			<xs:enumeration value="NRC">
   			<xs:annotation>
	 				<xs:documentation>
	 					Non-recurring charge.
	 				</xs:documentation>
	 			</xs:annotation>
			</xs:enumeration>
			<xs:enumeration value="NRCSetup">
   			<xs:annotation>
	 				<xs:documentation>
	 					Non-recurring setup charge.
	 				</xs:documentation>
	 			</xs:annotation>
			</xs:enumeration>
			<xs:enumeration value="Recurring">
   			<xs:annotation>
	 				<xs:documentation>
	 					Recurring charge for a plan when the plan charges are not to be pro-rated at the
						end of subscription. Not applicable for usage.
	 				</xs:documentation>
	 			</xs:annotation>
			</xs:enumeration>
			<xs:enumeration value="RecurringProRateEnd">
   			<xs:annotation>
	 				<xs:documentation>
	 					Recurring charge for a plan when the plan charges are to be pro-rated at the
						end of subscription. Not applicable for usage.
	 				</xs:documentation>
	 			</xs:annotation>
			</xs:enumeration>
			<xs:enumeration value="Usage">
   			<xs:annotation>
	 				<xs:documentation>
	 					Indicates a plan for which the subscriber will pay usage charges.
	 				</xs:documentation>
	 			</xs:annotation>
			</xs:enumeration>
			<xs:enumeration value="Free">
   			<xs:annotation>
	 				<xs:documentation>
	 					A free plan that will not have usage or other charges.
	 				</xs:documentation>
	 			</xs:annotation>
			</xs:enumeration>
			<xs:enumeration value="NonPlanUsage">
   			<xs:annotation>
	 				<xs:documentation>
	 					Billable charge that is not included in the plan and is not subject to
						eBay service fee. For example, shipping charges.
	 				</xs:documentation>
	 			</xs:annotation>
			</xs:enumeration>
		</xs:restriction>
	</xs:simpleType>

			<xs:simpleType name="OpeneBayBillingRecordTypeType">
				<xs:annotation>
					<xs:documentation>
						Container for details about the type of billing record.
					</xs:documentation>
				</xs:annotation>
				<xs:restriction base="xs:token">
					<xs:enumeration value="SubscriptionCharge">
		   			<xs:annotation>
			 				<xs:documentation>
								Indicates that the current billing record represents a charge for a subscription.
			 				</xs:documentation>
			 			</xs:annotation>
					</xs:enumeration>
					<xs:enumeration value="OneTimeCharge">
		   			<xs:annotation>
			 				<xs:documentation>
								Indicates that the current billing record represents a one-time charge.
			 				</xs:documentation>
			 			</xs:annotation>
					</xs:enumeration>
					<xs:enumeration value="UsageCharge">
		   			<xs:annotation>
			 				<xs:documentation>
								Indicates that the current billing record represents a usage charge.
			 				</xs:documentation>
			 			</xs:annotation>
					</xs:enumeration>
					<xs:enumeration value="Statement">
		   			<xs:annotation>
			 				<xs:documentation>
								Indicates that the current billing record represents a statement.
			 				</xs:documentation>
			 			</xs:annotation>
					</xs:enumeration>
				</xs:restriction>
			</xs:simpleType>

			<xs:simpleType name="OpeneBayCreditLifeCycleStateType">
				<xs:annotation>
					<xs:documentation>
						Container for the state of the credit.
					</xs:documentation>
				</xs:annotation>
				<xs:restriction base="xs:token">
					<xs:enumeration value="Submitted">
		   			<xs:annotation>
			 				<xs:documentation>
								Indicates that the credit has been submitted.
			 				</xs:documentation>
			 			</xs:annotation>
					</xs:enumeration>
					<xs:enumeration value="Pending">
		   			<xs:annotation>
			 				<xs:documentation>
								Indicates that the credit transaction is pending.
			 				</xs:documentation>
			 			</xs:annotation>
					</xs:enumeration>
					<xs:enumeration value="Processed">
		   			<xs:annotation>
			 				<xs:documentation>
								Indicates that the credit transaction has been processed.
			 				</xs:documentation>
			 			</xs:annotation>
					</xs:enumeration>
					<xs:enumeration value="Failed">
		   			<xs:annotation>
			 				<xs:documentation>
								Indicates that the credit transaction has failed to be processed.
			 				</xs:documentation>
			 			</xs:annotation>
					</xs:enumeration>
				</xs:restriction>
			</xs:simpleType>

			<xs:simpleType name="OpeneBayCreditReasonType">
				<xs:annotation>
					<xs:documentation>
						Container for explanation of the credit.
					</xs:documentation>
				</xs:annotation>
				<xs:restriction base="xs:token">
					<xs:enumeration value="StatementCredit">
		   			<xs:annotation>
			 				<xs:documentation>
								Explains why the credit has been applied to the subscriber's account.
			 				</xs:documentation>
			 			</xs:annotation>
					</xs:enumeration>
				</xs:restriction>
			</xs:simpleType>

<xs:complexType name="OpeneBayBillingStatementType">
	<xs:annotation>
		<xs:documentation>
			Container for details about a billing statement.
		</xs:documentation>
	</xs:annotation>
	<xs:sequence>
		<xs:element name="statementId" type="xs:string">
			<xs:annotation>
				<xs:documentation>
					Unique identifier for a billing statement, created by eBay at statement time.
				</xs:documentation>
				<xs:appinfo>
					<MaxLength>256</MaxLength>
					<CallInfo>
						<CallName>getBillingStatements</CallName>
						<Returned>Always</Returned>
					</CallInfo>
				</xs:appinfo>
			</xs:annotation>
		</xs:element>
		<xs:element name="statementTime" type="xs:dateTime">
			<xs:annotation>
				<xs:documentation>
					Time a statement was generated. Subscribers will see the date only.
				</xs:documentation>
				<xs:appinfo>
					<CallInfo>
						<CallName>getBillingStatements</CallName>
						<Returned>Always</Returned>
					</CallInfo>
				</xs:appinfo>
			</xs:annotation>
		</xs:element>
		<xs:element name="closedTime" type="xs:dateTime" minOccurs="0">
			<xs:annotation>
				<xs:documentation>
					Time at which full payment was made.
				</xs:documentation>
				<xs:appinfo>
					<CallInfo>
						<CallName>getBillingStatements</CallName>
						<Returned>Always</Returned>
					</CallInfo>
				</xs:appinfo>
			</xs:annotation>
		</xs:element>
		<xs:element name="statementTotal" type="tns:Amount">
			<xs:annotation>
				<xs:documentation>
					Previous statement balance, plus new charges (RC, NRC, Usage, Prebill Usage
					Adjustments, Discounts, Unit Credits and Taxes) and payments.
				</xs:documentation>
				<xs:appinfo>
					<CallInfo>
						<CallName>getBillingStatements</CallName>
						<Returned>Always</Returned>
					</CallInfo>
				</xs:appinfo>
			</xs:annotation>
		</xs:element>
		<xs:element name="adjustmentTotal" type="tns:Amount">
			<xs:annotation>
				<xs:documentation>
					Net adjustments applied to this statement. These are post-bill adjustments only. A
					negative value denotes a credit and a positive value denotes a debit. Changes such as
					payments or adjustments are made against statements.
				</xs:documentation>
				<xs:appinfo>
					<CallInfo>
						<CallName>getBillingStatements</CallName>
						<Returned>Always</Returned>
					</CallInfo>
				</xs:appinfo>
			</xs:annotation>
		</xs:element>
		<xs:element name="paymentTotal" type="tns:Amount">
			<xs:annotation>
				<xs:documentation>
					Total payments already applied to the statement.
				</xs:documentation>
				<xs:appinfo>
					<CallInfo>
						<CallName>getBillingStatements</CallName>
						<Returned>Always</Returned>
					</CallInfo>
				</xs:appinfo>
			</xs:annotation>
		</xs:element>
		<xs:element name="newChargeTotal" type="tns:Amount">
			<xs:annotation>
				<xs:documentation>
					Total new charges (combination of postitive and negative charges). newChargeTotal
					minus adjustmentTotal lets you know the available balance to credit for the
					statement.
				</xs:documentation>
				<xs:appinfo>
					<CallInfo>
						<CallName>getBillingStatements</CallName>
						<Returned>Always</Returned>
					</CallInfo>
				</xs:appinfo>
			</xs:annotation>
		</xs:element>
		<xs:element name="newCreditTotal" type="tns:Amount">
			<xs:annotation>
				<xs:documentation>
					Total new negative charges for statement. Includes pre-billed adjustments. Not
					changed after statement creation.
				</xs:documentation>
				<xs:appinfo>
					<CallInfo>
						<CallName>getBillingStatements</CallName>
						<Returned>Always</Returned>
					</CallInfo>
				</xs:appinfo>
			</xs:annotation>
		</xs:element>
		<xs:element name="balanceDue" type="tns:Amount">
			<xs:annotation>
				<xs:documentation>
					Sum of of new charges plus adjustments plus payments.
				</xs:documentation>
				<xs:appinfo>
					<CallInfo>
						<CallName>getBillingStatements</CallName>
						<Returned>Always</Returned>
					</CallInfo>
				</xs:appinfo>
			</xs:annotation>
		</xs:element>
	</xs:sequence>
</xs:complexType>

<xs:complexType name="OpeneBayBillingRecordType">
	<xs:annotation>
		<xs:documentation>
			Container for details about a billing record. For future use: amounts can be in the
			biller's currency, that is, in the currency in which your third-party application
			will be paid, or it can be in the user's currency, if different. Currently the only
			currency available is the U.S. dollar.
		</xs:documentation>
	</xs:annotation>
	<xs:sequence>
		<xs:element name="billingAccountId" type="xs:string">
			<xs:annotation>
				<xs:documentation>
					Identifies a combination of application and subscriber. Also known as EID.
				</xs:documentation>
				<xs:appinfo>
					<MaxLength>32</MaxLength>
					<CallInfo>
						<CallName>getBillingRecords</CallName>
						<Returned>Always</Returned>
					</CallInfo>
				</xs:appinfo>
			</xs:annotation>
		</xs:element>
		<xs:element name="recordType" type="tns:OpeneBayBillingRecordTypeType">
			<xs:annotation>
				<xs:documentation>
					Specifies whether the record is a one-time charge, a statement, a subscription
					charge, or a usage charge. For these four different kinds of records, the values
					transmitted for other elements, such as taxAmount and recordTime, represent elements
					appropriate for the record type. For example, for recordTime, if the recordType is
					Usage then recordTime represents the transaction date; but if recordType is Statement,
					recordTime represents the time of the statement's creation. See the specific values
					in each element.
				</xs:documentation>
				<xs:appinfo>
					<CallInfo>
						<CallName>getBillingRecords</CallName>
						<Returned>Always</Returned>
					</CallInfo>
				</xs:appinfo>
			</xs:annotation>
		</xs:element>
		<xs:element name="recordId" type="xs:string">
			<xs:annotation>
				<xs:documentation>
					Unique identifier for the record, assigned by eBay. Contains state and location
					information about the record. An example of a recordId: 1111:222:333:444:x.
					Retrieve a recordID using getBillingRecords.
				</xs:documentation>
				<xs:appinfo>
					<MaxLength>256</MaxLength>
					<CallInfo>
						<CallName>getBillingRecords</CallName>
						<Returned>Always</Returned>
					</CallInfo>
				</xs:appinfo>
			</xs:annotation>
		</xs:element>
		<xs:element name="billed" type="xs:boolean">
			<xs:annotation>
				<xs:documentation>
					Specifies whether or not a statement has been presented to the subscriber for the
					record.
				</xs:documentation>
				<xs:appinfo>
					<CallInfo>
						<CallName>getBillingRecords</CallName>
						<Returned>Always</Returned>
					</CallInfo>
				</xs:appinfo>
			</xs:annotation>
		</xs:element>
		<xs:element name="statementId" type="xs:string">
			<xs:annotation>
				<xs:documentation>
					Unique identifier for a billing statement, created by eBay at statement time.
				</xs:documentation>
				<xs:appinfo>
					<MaxLength>256</MaxLength>
					<CallInfo>
						<CallName>getBillingRecords</CallName>
						<Returned>Always</Returned>
					</CallInfo>
				</xs:appinfo>
			</xs:annotation>
		</xs:element>
		<xs:element name="recordTime" type="xs:dateTime">
			<xs:annotation>
				<xs:documentation>
					The recordType determines what this value signifies.
					&lt;br&gt;&lt;br&gt;
					If recordType is Subscription, recordTime represents the transaction date,
					equivalent to the statement date.
					&lt;br&gt;&lt;br&gt;
					If recordType is OneTimeCharge, recordTime represents the time of the transaction,
					equivalent to the statement date.
					&lt;br&gt;&lt;br&gt;
					If recordType is Usage, recordTime represents the time of the transaction,
					equivalent to the statement date.
					&lt;br&gt;&lt;br&gt;
					If recordType is Statement, recordTime represents the statement date.
				</xs:documentation>
				<xs:appinfo>
					<CallInfo>
						<CallName>getBillingRecords</CallName>
						<Returned>Always</Returned>
					</CallInfo>
				</xs:appinfo>
			</xs:annotation>
		</xs:element>
		<xs:element name="recordTime2" type="xs:dateTime" minOccurs="0">
			<xs:annotation>
				<xs:documentation>
					The recordType determines what this value signifies.
					&lt;br&gt;&lt;br&gt;
					If recordType is Subscription, recordTime2 represents the beginning of the time range
					for which the subscriber is being charged.
					&lt;br&gt;&lt;br&gt;
					If recordType is OneTimeCharge, recordTime2 represents the effective date of the charge.
					&lt;br&gt;&lt;br&gt;
					If recordType is Usage, recordTime2 represents the date the charge was calculated
					by your application.
					&lt;br&gt;&lt;br&gt;
					If recordType is Statement, recordTime2 represents the statement preparation date.
				</xs:documentation>
				<xs:appinfo>
					<CallInfo>
						<CallName>getBillingRecords</CallName>
						<Returned>Always</Returned>
					</CallInfo>
				</xs:appinfo>
			</xs:annotation>
		</xs:element>
		<xs:element name="amount" type="tns:Amount">
			<xs:annotation>
				<xs:documentation>
					The recordType determines what this value signifies.
					&lt;br&gt;&lt;br&gt;
					If recordType is Subscription, amount represents the total amount due for the
					subscription to two or fewer digits after the decimal point in the subscriber's currency.
					&lt;br&gt;&lt;br&gt;
					If recordType is OneTimeCharge, amount represents the amount of the charge to two or fewer digits after the decimal
					point in the subscriber's currency.
					&lt;br&gt;&lt;br&gt;
					If recordType is Usage, amount represents the total of the usage charge to two or fewer digits after the decimal
					point in the subscriber's currency.
					&lt;br&gt;&lt;br&gt;
					If recordType is Statement, amount represents the amount available to credit at
					the time of the statement, to two or fewer digits after the decimal
					point, in the subscriber's currency.
				</xs:documentation>
				<xs:appinfo>
					<CallInfo>
						<CallName>getBillingRecords</CallName>
						<Returned>Always</Returned>
					</CallInfo>
				</xs:appinfo>
			</xs:annotation>
		</xs:element>
		<xs:element name="amount2" type="tns:Amount">
			<xs:annotation>
				<xs:documentation>
					The recordType determines what this value signifies.
					&lt;br&gt;&lt;br&gt;
					If recordType is Subscription, amount2 represents the amount for the subscription
					in the biller's currency.
					&lt;br&gt;&lt;br&gt;
					If recordType is OneTimeCharge, amount2 represents the amount of the charge in
					the biller's currency.
					&lt;br&gt;&lt;br&gt;
					If recordType is Usage, amount2 represents the amount charged for the usage in
					the biller's currency.
					&lt;br&gt;&lt;br&gt;
					If recordType is Statement, amount2 represents the statement total, in the biller's currency.
				</xs:documentation>
				<xs:appinfo>
					<CallInfo>
						<CallName>getBillingRecords</CallName>
						<Returned>Always</Returned>
					</CallInfo>
				</xs:appinfo>
			</xs:annotation>
		</xs:element>
		<xs:element name="discountAmount" type="tns:Amount">
			<xs:annotation>
				<xs:documentation>
					The recordType determines what this value signifies.
					&lt;br&gt;&lt;br&gt;
					If recordType is Subscription, discountAmount is the amount of a discount applied
					to the charges in the billing record, to two or fewer digits after the decimal
					point, in the billing currency.
					&lt;br&gt;&lt;br&gt;
					If recordType is OneTimeCharge, discountAmount is the amount of the discount
					applied to the charges in the billing record, to two or fewer digits after the decimal
					point, in the billing currency.
					&lt;br&gt;&lt;br&gt;
					If recordType is Usage, discountAmount is the amount of the discount applied
					to the charges in the billing record, to two or fewer digits after the decimal
					point, in the billing currency.
					&lt;br&gt;&lt;br&gt;
					If recordType is Statement, discountAmount is not returned because no further
					adjustments can be made once the statement has been created.
				</xs:documentation>
				<xs:appinfo>
					<CallInfo>
						<CallName>getBillingRecords</CallName>
						<Returned>Conditionally</Returned>
					</CallInfo>
				</xs:appinfo>
			</xs:annotation>
		</xs:element>
		<xs:element name="taxAmount" type="tns:Amount">
			<xs:annotation>
				<xs:documentation>
					The recordType determines what this value signifies.
					&lt;br&gt;&lt;br&gt;
					If recordType is Subscription, taxAmount is the amount of the tax to two or fewer
					digits after the decimal point, in the billing currency.
					&lt;br&gt;&lt;br&gt;
					If recordType is OneTimeCharge, taxAmount is the amount of the tax to two or fewer digits after the decimal
					point, in the billing currency.
					&lt;br&gt;&lt;br&gt;
					If recordType is Usage, taxAmount is the amount of the tax to two or fewer digits after the decimal
					point, in the billing currency.
					&lt;br&gt;&lt;br&gt;
					If recordType is Statement, taxAmount is the total amount of any tax included in
					the statement.
				</xs:documentation>
				<xs:appinfo>
					<CallInfo>
						<CallName>getBillingRecords</CallName>
						<Returned>Conditionally</Returned>
					</CallInfo>
				</xs:appinfo>
			</xs:annotation>
		</xs:element>
		<xs:element name="taxRate" type="xs:double">
			<xs:annotation>
				<xs:documentation>
					Returns zero if no tax rate, or the tax rate. For euros, Luxembourg rate of 15%
					will be assumed. This field is for future use.
				</xs:documentation>
				<xs:appinfo>
					<CallInfo>
						<CallName>getBillingRecords</CallName>
						<Returned>Always</Returned>
					</CallInfo>
				</xs:appinfo>
			</xs:annotation>
		</xs:element>
		<xs:element name="recordDescription" type="xs:string" minOccurs="0">
			<xs:annotation>
				<xs:documentation>
					The recordType determines what this value signifies.
					&lt;br&gt;&lt;br&gt;
					If recordType is Subscription, recordDescription contains a text description of the subscription.
					&lt;br&gt;&lt;br&gt;
					If recordType is OneTimeCharge, recordDescription contains a text description of the charge.
					&lt;br&gt;&lt;br&gt;
					If recordType is Usage, recordDescription contains a text description of the usage.
					&lt;br&gt;&lt;br&gt;
					If recordType is Statement, recordDescription contains a text description of the statement.
				</xs:documentation>
				<xs:appinfo>
					<MaxLength>1024</MaxLength>
					<CallInfo>
						<CallName>getCredits</CallName>
						<CallName>getBillingRecords</CallName>
						<Returned>Conditionally</Returned>
					</CallInfo>
					<CallInfo>
						<CallName>addCredit</CallName>
						<RequiredInput>No</RequiredInput>
					</CallInfo>
				</xs:appinfo>
			</xs:annotation>
		</xs:element>
		<xs:element name="adjustable" type="xs:boolean">
			<xs:annotation>
				<xs:documentation>
					Returns true if adjustments such as discounts, credits, and usage can be applied
					to the record.
				</xs:documentation>
				<xs:appinfo>
					<CallInfo>
						<CallName>getBillingRecords</CallName>
						<Returned>Conditionally</Returned>
					</CallInfo>
				</xs:appinfo>
			</xs:annotation>
		</xs:element>
	</xs:sequence>
</xs:complexType>

<xs:complexType name="OpeneBayCreditType">
	<xs:annotation>
		<xs:documentation>
			Container for details about a credit given to a subscriber.
		</xs:documentation>
	</xs:annotation>
	<xs:sequence>
		<xs:element name="creditId" type="xs:long">
			<xs:annotation>
				<xs:documentation>
					Unique identifier assigned to the credit request by eBay.
				</xs:documentation>
				<xs:appinfo>
					<CallInfo>
						<CallName>getCredits</CallName>
						<Returned>Conditionally</Returned>
					</CallInfo>
				</xs:appinfo>
			</xs:annotation>
		</xs:element>
		<xs:element name="userName" type="xs:string">
			<xs:annotation>
				<xs:documentation>
					The eBay user ID of the subscriber.
				</xs:documentation>
				<xs:appinfo>
					<CallInfo>
						<CallName>getCredits</CallName>
						<Returned>Conditionally</Returned>
					</CallInfo>
				</xs:appinfo>
			</xs:annotation>
		</xs:element>
		<xs:element name="creditAmount" type="tns:Amount">
			<xs:annotation>
				<xs:documentation>
					Total amount of the credit applied to the subscriber's account.
				</xs:documentation>
				<xs:appinfo>
					<CallInfo>
						<CallName>getCredits</CallName>
						<Returned>Conditionally</Returned>
					</CallInfo>
				</xs:appinfo>
			</xs:annotation>
		</xs:element>
		<xs:element name="creditTime" type="xs:dateTime">
			<xs:annotation>
				<xs:documentation>
					The date assigned to the credit request by the application.
				</xs:documentation>
				<xs:appinfo>
					<CallInfo>
						<CallName>getCredits</CallName>
						<Returned>Conditionally</Returned>
					</CallInfo>
				</xs:appinfo>
			</xs:annotation>
		</xs:element>
		<xs:element name="externalCreditId" type="xs:string">
			<xs:annotation>
				<xs:documentation>
					A unique identifier for a credit.
				</xs:documentation>
				<xs:appinfo>
					<CallInfo>
						<CallName>getCredits</CallName>
						<Returned>Conditionally</Returned>
					</CallInfo>
				</xs:appinfo>
			</xs:annotation>
		</xs:element>
		<xs:element name="creditReason" type="tns:OpeneBayCreditReasonType">
			<xs:annotation>
				<xs:documentation>
					Explains why the credit has been applied to the subscriber's account.
				</xs:documentation>
				<xs:appinfo>
					<CallInfo>
						<CallName>getCredits</CallName>
						<Returned>Conditionally</Returned>
					</CallInfo>
				</xs:appinfo>
			</xs:annotation>
		</xs:element>
		<xs:element name="creditDescription" type="xs:string">
			<xs:annotation>
				<xs:documentation>
					Describes the credit applied to the subscriber's account.
				</xs:documentation>
				<xs:appinfo>
					<MaxLength>1024</MaxLength>
					<CallInfo>
						<CallName>getCredits</CallName>
						<Returned>Conditionally</Returned>
					</CallInfo>
				</xs:appinfo>
			</xs:annotation>
		</xs:element>
		<xs:element name="billingAccountId" type="xs:string">
			<xs:annotation>
				<xs:documentation>
					A unique identifier for each combination of an application and a subscriber.
				</xs:documentation>
				<xs:appinfo>
					<MaxLength>32</MaxLength>
					<CallInfo>
						<CallName>getCredits</CallName>
						<Returned>Conditionally</Returned>
					</CallInfo>
				</xs:appinfo>
			</xs:annotation>
		</xs:element>
		<xs:element name="statementId" type="xs:string">
			<xs:annotation>
				<xs:documentation>
					Unique identifier for the billing statement in which the credit was applied to the
					subscriber's account, created by eBay at statement time.
				</xs:documentation>
				<xs:appinfo>
					<MaxLength>256</MaxLength>
					<CallInfo>
						<CallName>getCredits</CallName>
						<Returned>Conditionally</Returned>
					</CallInfo>
				</xs:appinfo>
			</xs:annotation>
		</xs:element>
		<xs:element name="recordType" type="tns:OpeneBayBillingRecordTypeType">
			<xs:annotation>
				<xs:documentation>
					Specifies whether the record is a one-time charge, a statement, a subscription
					charge, or a usage charge. For these four different kinds of records, the values
					transmitted for other elements, such as taxAmount and recordTime, represent elements
					appropriate for the record type. For example, for recordTime, if the recordType is
					Usage then recordTime represents the transaction date; but if recordType is Statement,
					recordTime represents the time of the statement's creation. See the specific values
					in each element.
				</xs:documentation>
				<xs:appinfo>
					<CallInfo>
						<CallName>getCredits</CallName>
						<Returned>Conditionally</Returned>
					</CallInfo>
				</xs:appinfo>
			</xs:annotation>
		</xs:element>
		<xs:element name="recordId" type="xs:string">
			<xs:annotation>
				<xs:documentation>
					Unique identifier for the record, assigned by eBay. Contains state and location
					information about the record. An example of a recordId: 1111:222:333:444:x.
				</xs:documentation>
				<xs:appinfo>
					<MaxLength>256</MaxLength>
					<CallInfo>
						<CallName>getCredits</CallName>
						<Returned>Conditionally</Returned>
					</CallInfo>
				</xs:appinfo>
			</xs:annotation>
		</xs:element>
		<xs:element name="recordTime" type="xs:dateTime">
			<xs:annotation>
				<xs:documentation>
					The recordType determines what this value signifies.
					&lt;br&gt;&lt;br&gt;
					If recordType is Subscription, recordTime represents the statement date.
					&lt;br&gt;&lt;br&gt;
					If recordType is OneTimeCharge, recordTime represents the time of the transaction.
					&lt;br&gt;&lt;br&gt;
					If recordType is Usage, recordTime represents the time of the transaction.
					&lt;br&gt;&lt;br&gt;
					If recordType is Statement, recordTime represents the statement time.
				</xs:documentation>
				<xs:appinfo>
					<CallInfo>
						<CallName>getCredits</CallName>
						<Returned>Conditionally</Returned>
					</CallInfo>
				</xs:appinfo>
			</xs:annotation>
		</xs:element>
		<xs:element name="amount2" type="tns:Amount">
			<xs:annotation>
				<xs:documentation>
					The recordType determines what this value signifies.
					&lt;br&gt;&lt;br&gt;
					If recordType is Subscription, amount2 represents the credit amount in the
					billing currency.
					&lt;br&gt;&lt;br&gt;
					If recordType is OneTimeCharge, amount2 represents the the credit amount in the
					billing currency.
					&lt;br&gt;&lt;br&gt;
					If recordType is Usage, amount2 represents the credit amount in the billing
					currency.
					&lt;br&gt;&lt;br&gt;
					If recordType is Statement, amount2 represents the statement total.
				</xs:documentation>
				<xs:appinfo>
					<CallInfo>
						<CallName>getCredits</CallName>
						<Returned>Conditionally</Returned>
					</CallInfo>
				</xs:appinfo>
			</xs:annotation>
		</xs:element>
		<xs:element name="recordDescription" type="xs:string"  minOccurs="0">
			<xs:annotation>
				<xs:documentation>
					The recordType determines what this value signifies.
					&lt;br&gt;&lt;br&gt;
					If recordType is Subscription, recordDescription contains a text description of the subscription.
					&lt;br&gt;&lt;br&gt;
					If recordType is OneTimeCharge, recordDescription contains a text description of the charge.
					&lt;br&gt;&lt;br&gt;
					If recordType is Usage, recordDescription contains a text description of the usage.
					&lt;br&gt;&lt;br&gt;
					If recordType is Statement, recordDescription contains a text description of the statement.
				</xs:documentation>
				<xs:appinfo>
					<CallInfo>
						<CallName>getCredits</CallName>
						<Returned>Conditionally</Returned>
					</CallInfo>
				</xs:appinfo>
			</xs:annotation>
		</xs:element>
		<xs:element name="lastProcessedTime" type="xs:dateTime">
			<xs:annotation>
				<xs:documentation>
					Time the credit was processed by eBay.
				</xs:documentation>
				<xs:appinfo>
					<CallInfo>
						<CallName>getCredits</CallName>
						<Returned>Conditionally</Returned>
					</CallInfo>
				</xs:appinfo>
			</xs:annotation>
		</xs:element>
		<xs:element name="state" type="tns:OpeneBayCreditLifeCycleStateType">
			<xs:annotation>
				<xs:documentation>
					The lifecycle state of the credit can be submitted, pending, processed, or failed.
				</xs:documentation>
				<xs:appinfo>
					<CallInfo>
						<CallName>getCredits</CallName>
						<Returned>Conditionally</Returned>
					</CallInfo>
				</xs:appinfo>
			</xs:annotation>
		</xs:element>
		<xs:element name="processingNote" type="xs:string">
			<xs:annotation>
				<xs:documentation>
					When a credit is manually processed, may include a note from eBay to the
					application such as, "Your credit request was processed successfully."
				</xs:documentation>
				<xs:appinfo>
					<CallInfo>
						<CallName>getCredits</CallName>
						<Returned>Conditionally</Returned>
					</CallInfo>
				</xs:appinfo>
			</xs:annotation>
		</xs:element>
	</xs:sequence>
</xs:complexType>

<xs:complexType name="OpeneBayAddUsageRequestType">
	<xs:annotation>
		<xs:documentation>
			Use the Open eBay Subscription service instead.
			For more information, see the Release Notes for the Open eBay Subscription Service.
			In both services, this call reports usage
			for which the subscriber is to be billed. The application
			identity and token are sent in the HTTPS header.
		</xs:documentation>
		<xs:appinfo>
			<Summary>
				Use the Open eBay Subscription service instead. Reports a charge.
			</Summary>
		</xs:appinfo>
	</xs:annotation>
	<xs:complexContent>
		<xs:extension base="tns:BaseServiceRequest">
			<xs:sequence>
				<xs:element name="planId" type="xs:long" minOccurs="1" nillable="true">
					<xs:annotation>
						<xs:documentation>
							A planId is assigned by eBay to each subscription plan.
							Your application often uses this value in calls
							to the Open eBay Application Integration Service.
							Note that the planId is diffrent from the externalPlanId.
							In contrast to the planId, the externalPlanId is the
							value that you provide,
							as a "Developer Plan ID," when you create a subscription plan.
						</xs:documentation>
						<xs:appinfo>
							<CallInfo>
								<CallName>addUsage</CallName>
								<RequiredInput>Yes</RequiredInput>
							</CallInfo>
						</xs:appinfo>
					</xs:annotation>
				</xs:element>
				<xs:element name="subscriptionId" type="xs:long" minOccurs="1" nillable="true">
					<xs:annotation>
						<xs:documentation>
							For a particular application, the subscriptionId
							uniquely identifies a user's subscription.
						</xs:documentation>
						<xs:appinfo>
							<CallInfo>
								<CallName>addUsage</CallName>
								<RequiredInput>Yes</RequiredInput>
							</CallInfo>
						</xs:appinfo>
					</xs:annotation>
				</xs:element>
				<xs:element name="userName" type="xs:string">
					<xs:annotation>
						<xs:documentation>
							The eBay user ID of the subscriber.
						</xs:documentation>
						<xs:appinfo>
							<CallInfo>
								<CallName>addUsage</CallName>
								<RequiredInput>Yes</RequiredInput>
							</CallInfo>
						</xs:appinfo>
					</xs:annotation>
				</xs:element>
				<xs:element name="transactionTime" type="xs:dateTime">
					<xs:annotation>
						<xs:documentation>
							The transaction date assigned to the transaction by the application.
						</xs:documentation>
						<xs:appinfo>
							<CallInfo>
								<CallName>addUsage</CallName>
								<RequiredInput>Yes</RequiredInput>
							</CallInfo>
						</xs:appinfo>
					</xs:annotation>
				</xs:element>
				<xs:element name="externalTransactionId" type="xs:string">
					<xs:annotation>
						<xs:documentation>
							The transaction reference number assigned by the application.
						</xs:documentation>
						<xs:appinfo>
							<MaxLength>10</MaxLength>
							<CallInfo>
								<CallName>addUsage</CallName>
								<RequiredInput>Yes</RequiredInput>
							</CallInfo>
						</xs:appinfo>
					</xs:annotation>
				</xs:element>
				<xs:element name="memo" type="xs:string">
					<xs:annotation>
						<xs:documentation>
							Memo that will be visible on the subscriber statement.
						</xs:documentation>
						<xs:appinfo>
							<MaxLength>60</MaxLength>
							<CallInfo>
								<CallName>addUsage</CallName>
								<RequiredInput>Yes</RequiredInput>
							</CallInfo>
						</xs:appinfo>
					</xs:annotation>
				</xs:element>
				<xs:element name="chargeAmount" type="tns:Amount">
					<xs:annotation>
						<xs:documentation>
							Charge amount that eBay will display to the subscriber on behalf of your
							application. Charge amount must have two or fewer digits after the decimal
							point and 12 or fewer digits before the decimal point.
						</xs:documentation>
						<xs:appinfo>
							<CallInfo>
								<CallName>addUsage</CallName>
								<RequiredInput>Yes</RequiredInput>
							</CallInfo>
						</xs:appinfo>
					</xs:annotation>
				</xs:element>
				<xs:element name="chargeType" type="tns:OpeneBaySubscriptionChargeType">
					<xs:annotation>
						<xs:documentation>
							Identifier of the usage charge. This is an action code set up in your application's billing plan.
						</xs:documentation>
						<xs:appinfo>
							<CallInfo>
								<CallName>addUsage</CallName>
								<RequiredInput>Yes</RequiredInput>
							</CallInfo>
						</xs:appinfo>
					</xs:annotation>
				</xs:element>
				<xs:element name="immediatePayment" type="xs:boolean"  default="false" minOccurs="0">
					<xs:annotation>
						<xs:documentation>
							Set to true when you require immediate payment for usage that is not included in plan.
						</xs:documentation>
						<xs:appinfo>
							<CallInfo>
								<CallName>addUsage</CallName>
								<RequiredInput>No</RequiredInput>
								<Default>false</Default>
							</CallInfo>
						</xs:appinfo>
					</xs:annotation>
				</xs:element>
			</xs:sequence>
		</xs:extension>
	</xs:complexContent>
</xs:complexType>


<xs:complexType name="OpeneBayAddUsageResponseType">
	<xs:annotation>
		<xs:documentation>
			Response container for the addUsage operation.
		</xs:documentation>
	</xs:annotation>
	<xs:complexContent>
		<xs:extension base="tns:BaseServiceResponse">
			<xs:sequence>
				<xs:element name="transactionId" type="xs:long"  minOccurs="0">
					<xs:annotation>
						<xs:documentation>
							eBay assigns this ID to the transaction and returns it to you.
						</xs:documentation>
						<xs:appinfo>
							<CallInfo>
								<CallName>addUsage</CallName>
								<Returned>Always</Returned>
							</CallInfo>
						</xs:appinfo>
					</xs:annotation>
				</xs:element>
			</xs:sequence>
		</xs:extension>
	</xs:complexContent>
</xs:complexType>



<xs:complexType name="OpeneBayGetBillingStatementsRequestType">
	<xs:annotation>
		<xs:documentation>
			Use the Open eBay Subscription service instead.
			For more information, see the Release Notes for the Open eBay Subscription Service.
			In both services, this call
			retrieves all available billing statements for a subscriber. The application identity and
			token are sent in HTTPS header.
		</xs:documentation>
		<xs:appinfo>
			<Summary>
				Use the Open eBay Subscription service instead. Retrieves billing statements.
			</Summary>
		</xs:appinfo>
	</xs:annotation>
	<xs:complexContent>
		<xs:extension base="tns:BaseServiceRequest">
			<xs:sequence>
				<xs:element name="planId" type="xs:long" minOccurs="1" nillable="true">
					<xs:annotation>
						<xs:documentation>
							A planId is assigned by eBay to each subscription plan.
							Your application often uses this value in calls
							to the Open eBay Application Integration Service.
							Note that the planId is diffrent from the externalPlanId.
							In contrast to the planId, the externalPlanId is the
							value that you provide,
							as a "Developer Plan ID," when you create a subscription plan.
						</xs:documentation>
						<xs:appinfo>
							<CallInfo>
								<CallName>getBillingStatements</CallName>
								<RequiredInput>Yes</RequiredInput>
							</CallInfo>
						</xs:appinfo>
					</xs:annotation>
				</xs:element>
				<xs:element name="subscriptionId" type="xs:long" minOccurs="1" nillable="true">
					<xs:annotation>
						<xs:documentation>
							For a particular application, the subscriptionId
							uniquely identifies a user's subscription.
						</xs:documentation>
						<xs:appinfo>
							<CallInfo>
								<CallName>getBillingStatements</CallName>
								<RequiredInput>Yes</RequiredInput>
							</CallInfo>
						</xs:appinfo>
					</xs:annotation>
				</xs:element>
				<xs:element name="userName" type="xs:string">
					<xs:annotation>
						<xs:documentation>
							The eBay user ID of the subscriber.
						</xs:documentation>
						<xs:appinfo>
							<CallInfo>
								<CallName>getBillingStatements</CallName>
								<RequiredInput>Yes</RequiredInput>
							</CallInfo>
						</xs:appinfo>
					</xs:annotation>
				</xs:element>
			</xs:sequence>
		</xs:extension>
	</xs:complexContent>
</xs:complexType>

<xs:complexType name="OpeneBayGetBillingStatementsResponseType">
	<xs:annotation>
		<xs:documentation>
			Response container for the getBillingStatements operation.
		</xs:documentation>
	</xs:annotation>
	<xs:complexContent>
		<xs:extension base="tns:BaseServiceResponse">
			<xs:sequence>
				<xs:element name="statement" type="tns:OpeneBayBillingStatementType"  minOccurs="0" maxOccurs="unbounded">
					<xs:annotation>
						<xs:documentation>
							Billing statement details.
						</xs:documentation>
						<xs:appinfo>
							<CallInfo>
								<CallName>getBillingStatements</CallName>
								<Returned>Conditionally</Returned>
							</CallInfo>
						</xs:appinfo>
					</xs:annotation>
				</xs:element>
			</xs:sequence>
		</xs:extension>
	</xs:complexContent>
</xs:complexType>


<xs:complexType name="OpeneBayGetBillingRecordsRequestType">
	<xs:annotation>
		<xs:documentation>
			Use the Open eBay Subscription service instead.
			For more information, see the Release Notes for the Open eBay Subscription Service.
			In both services, this call retrieves detailed billing records
			associated with a subscriber's account. The application identity
			and token are sent in HTTPS header. Used with the getBillingStatements
			request, which returns summary billing information.
		</xs:documentation>
		<xs:appinfo>
			<Summary>
				Use the Open eBay Subscription service instead.
				Retrieves detailed billing records.
				Used with the getBillingStatements
				request.
			</Summary>
		</xs:appinfo>
	</xs:annotation>
	<xs:complexContent>
		<xs:extension base="tns:BaseServiceRequest">
			<xs:sequence>
				<xs:element name="planId" type="xs:long" minOccurs="1" nillable="true">
					<xs:annotation>
						<xs:documentation>
							A planId is assigned by eBay to each subscription plan.
							Your application often uses this value in calls
							to the Open eBay Application Integration Service.
							Note that the planId is diffrent from the externalPlanId.
							In contrast to the planId, the externalPlanId is the
							value that you provide,
							as a "Developer Plan ID," when you create a subscription plan.
						</xs:documentation>
						<xs:appinfo>
							<CallInfo>
								<CallName>getBillingRecords</CallName>
								<RequiredInput>Yes</RequiredInput>
							</CallInfo>
						</xs:appinfo>
					</xs:annotation>
				</xs:element>
				<xs:element name="subscriptionId" type="xs:long" minOccurs="1" nillable="true">
					<xs:annotation>
						<xs:documentation>
							For a particular application, the subscriptionId
							uniquely identifies a user's subscription.
						</xs:documentation>
						<xs:appinfo>
							<CallInfo>
								<CallName>getBillingRecords</CallName>
								<RequiredInput>Yes</RequiredInput>
							</CallInfo>
						</xs:appinfo>
					</xs:annotation>
				</xs:element>
				<xs:element name="userName" type="xs:string">
					<xs:annotation>
						<xs:documentation>
							The eBay user ID of the subscriber.
						</xs:documentation>
						<xs:appinfo>
							<CallInfo>
								<CallName>getBillingRecords</CallName>
								<RequiredInput>Yes</RequiredInput>
							</CallInfo>
						</xs:appinfo>
					</xs:annotation>
				</xs:element>
				<xs:element name="recordType" type="tns:OpeneBayBillingRecordTypeType">
					<xs:annotation>
						<xs:documentation>
							Specifies whether the record is a one-time charge, a statement, a
							subscription charge, or a usage charge.
						</xs:documentation>
						<xs:appinfo>
							<CallInfo>
								<CallName>getBillingRecords</CallName>
								<RequiredInput>No</RequiredInput>
							</CallInfo>
						</xs:appinfo>
					</xs:annotation>
				</xs:element>
				<xs:element name="statementId" type="xs:string" minOccurs="0">
					<xs:annotation>
						<xs:documentation>
							Unique identifier for a billing statement, created by eBay at statement time. Obtain this value from
							the response to the getBillingStatements request.
						</xs:documentation>
						<xs:appinfo>
							<MaxLength>256</MaxLength>
							<CallInfo>
								<CallName>getBillingRecords</CallName>
								<RequiredInput>No</RequiredInput>
							</CallInfo>
						</xs:appinfo>
					</xs:annotation>
				</xs:element>
				<xs:element name="recordTimeRange" type="tns:TimeRange" minOccurs="0">
					<xs:annotation>
						<xs:documentation>
							Requested time range for records.
						</xs:documentation>
						<xs:appinfo>
							<CallInfo>
								<CallName>getBillingRecords</CallName>
								<RequiredInput>No</RequiredInput>
							</CallInfo>
						</xs:appinfo>
					</xs:annotation>
				</xs:element>
			</xs:sequence>
		</xs:extension>
	</xs:complexContent>
</xs:complexType>

<xs:complexType name="OpeneBayGetBillingRecordsResponseType">
	<xs:annotation>
		<xs:documentation>
			Response container for the getBillingRecords operation.
		</xs:documentation>
	</xs:annotation>
	<xs:complexContent>
		<xs:extension base="tns:BaseServiceResponse">
			<xs:sequence>
				<xs:element name="record" type="tns:OpeneBayBillingRecordType"  minOccurs="0" maxOccurs="unbounded">
					<xs:annotation>
						<xs:documentation>
							Billing account transaction record.
						</xs:documentation>
						<xs:appinfo>
							<CallInfo>
								<CallName>getBillingRecords</CallName>
								<Returned>Conditionally</Returned>
							</CallInfo>
						</xs:appinfo>
					</xs:annotation>
				</xs:element>
			</xs:sequence>
		</xs:extension>
	</xs:complexContent>
</xs:complexType>

<xs:complexType name="OpeneBayAddCreditRequestType">
	<xs:annotation>
		<xs:documentation>
			This call is reserved for future use.
		</xs:documentation>
		<xs:appinfo>
			<Summary>
				This call is reserved for future use.
			</Summary>
		</xs:appinfo>
	</xs:annotation>
	<xs:complexContent>
		<xs:extension base="tns:BaseServiceRequest">
			<xs:sequence>
				<xs:element name="planId" type="xs:long" minOccurs="1" nillable="true">
					<xs:annotation>
						<xs:documentation>
							A planId is assigned by eBay to each subscription plan.
							Your application often uses this value in calls
							to the Open eBay Application Integration Service.
							Note that the planId is diffrent from the externalPlanId.
							In contrast to the planId, the externalPlanId is the
							value that you provide,
							as a "Developer Plan ID," when you create a subscription plan.
						</xs:documentation>
						<xs:appinfo>
							<CallInfo>
								<CallName>addCredit</CallName>
								<RequiredInput>Yes</RequiredInput>
							</CallInfo>
						</xs:appinfo>
					</xs:annotation>
				</xs:element>
				<xs:element name="subscriptionId" type="xs:long" minOccurs="1" nillable="true">
					<xs:annotation>
						<xs:documentation>
							For a particular application, the subscriptionId
							uniquely identifies a user's subscription.
						</xs:documentation>
						<xs:appinfo>
							<CallInfo>
								<CallName>addCredit</CallName>
								<RequiredInput>Yes</RequiredInput>
							</CallInfo>
						</xs:appinfo>
					</xs:annotation>
				</xs:element>
				<xs:element name="userName" type="xs:string">
					<xs:annotation>
						<xs:documentation>
							The eBay user ID of the subscriber.
						</xs:documentation>
						<xs:appinfo>
							<CallInfo>
								<CallName>addCredit</CallName>
								<RequiredInput>Yes</RequiredInput>
							</CallInfo>
						</xs:appinfo>
					</xs:annotation>
				</xs:element>
				<xs:element name="creditAmount" type="tns:Amount">
					<xs:annotation>
						<xs:documentation>
							Amount to be credited to the subscriber.
							The amount is in the billing currency (the currency specified in the
							original charge).
						</xs:documentation>
						<xs:appinfo>
							<CallInfo>
								<CallName>addCredit</CallName>
								<RequiredInput>Yes</RequiredInput>
							</CallInfo>
						</xs:appinfo>
					</xs:annotation>
				</xs:element>
				<xs:element name="creditTime" type="xs:dateTime">
					<xs:annotation>
						<xs:documentation>
							The date assigned to the credit request by the application.
						</xs:documentation>
						<xs:appinfo>
							<CallInfo>
								<CallName>addCredit</CallName>
								<RequiredInput>Yes</RequiredInput>
							</CallInfo>
						</xs:appinfo>
					</xs:annotation>
				</xs:element>
				<xs:element name="externalCreditId" type="xs:string">
					<xs:annotation>
						<xs:documentation>
							A transaction reference number that you can assign to the credit. This number
							will be returned in the getCredit response.
						</xs:documentation>
						<xs:appinfo>
							<CallInfo>
								<CallName>addCredit</CallName>
								<RequiredInput>Yes</RequiredInput>
							</CallInfo>
						</xs:appinfo>
					</xs:annotation>
				</xs:element>
				<xs:element name="creditReason" type="tns:OpeneBayCreditReasonType">
					<xs:annotation>
						<xs:documentation>
							Explains why the credit has been applied to the subscriber's account.
						</xs:documentation>
						<xs:appinfo>
							<CallInfo>
								<CallName>addCredit</CallName>
								<RequiredInput>Yes</RequiredInput>
							</CallInfo>
						</xs:appinfo>
					</xs:annotation>
				</xs:element>
				<xs:element name="creditDescription" type="xs:string">
					<xs:annotation>
						<xs:documentation>
							Describes the credit applied to the subscriber's account.
						</xs:documentation>
						<xs:appinfo>
							<MaxLength>1024</MaxLength>
							<CallInfo>
								<CallName>addCredit</CallName>
								<RequiredInput>Yes</RequiredInput>
							</CallInfo>
						</xs:appinfo>
					</xs:annotation>
				</xs:element>
				<xs:element name="billingAccountId" type="xs:string">
					<xs:annotation>
						<xs:documentation>
							A unique identifier for each combination of an application and a subscriber.
						</xs:documentation>
						<xs:appinfo>
							<MaxLength>32</MaxLength>
							<CallInfo>
								<CallName>addCredit</CallName>
								<RequiredInput>Yes</RequiredInput>
							</CallInfo>
						</xs:appinfo>
					</xs:annotation>
				</xs:element>
				<xs:element name="statementId" type="xs:string">
					<xs:annotation>
						<xs:documentation>
							Unique identifier for a billing statement, created by eBay at statement time.	Returned in the
							getBillingRecords response.
						</xs:documentation>
						<xs:appinfo>
							<MaxLength>256</MaxLength>
							<CallInfo>
								<CallName>addCredit</CallName>
								<RequiredInput>Yes</RequiredInput>
							</CallInfo>
						</xs:appinfo>
					</xs:annotation>
				</xs:element>
				<xs:element name="recordType" type="tns:OpeneBayBillingRecordTypeType">
					<xs:annotation>
						<xs:documentation>
							Specifies whether the record is a one-time charge, a statement, a subscription
							charge, or a usage charge. For these four different kinds of records, the values
							transmitted for other elements, such as taxAmount and recordTime, represent elements
							appropriate for the record type. For example, for recordTime, if the recordType is
							Usage then recordTime represents the transaction date; but if recordType is Statement,
							recordTime represents the time of the statement's creation. See the specific values
							in each element. Returned in the getBillingRecords response.
						</xs:documentation>
						<xs:appinfo>
							<CallInfo>
								<CallName>addCredit</CallName>
								<RequiredInput>Yes</RequiredInput>
							</CallInfo>
						</xs:appinfo>
					</xs:annotation>
				</xs:element>
				<xs:element name="recordId" type="xs:string">
					<xs:annotation>
						<xs:documentation>
							Unique identifier for the record, assigned by eBay. Contains state and location
							information about the record. An example of a recordId: 1111:222:333:444:x.
							Returned in the getBillingRecords response.
						</xs:documentation>
						<xs:appinfo>
							<MaxLength>256</MaxLength>
							<CallInfo>
								<CallName>addCredit</CallName>
								<RequiredInput>Yes</RequiredInput>
							</CallInfo>
						</xs:appinfo>
					</xs:annotation>
				</xs:element>
				<xs:element name="recordTime" type="xs:dateTime">
					<xs:annotation>
						<xs:documentation>
							The recordType determines what this value signifies. Returned in the getBillingRecords response.
						&lt;br&gt;&lt;br&gt;
							If recordType is Subscription, recordTime represents the beginning of the time range, the time
							from, that ends at the time to given in recordTime2.
							&lt;br&gt;&lt;br&gt;
							If recordType is OneTimeCharge, recordTime represents the time of the transaction.
							&lt;br&gt;&lt;br&gt;
							If recordType is Usage, recordTime represents the time of the transaction.
							&lt;br&gt;&lt;br&gt;
							If recordType is Statement, recordTime represents the statement time.
						</xs:documentation>
						<xs:appinfo>
							<CallInfo>
								<CallName>addCredit</CallName>
								<RequiredInput>Yes</RequiredInput>
							</CallInfo>
						</xs:appinfo>
					</xs:annotation>
				</xs:element>
				<xs:element name="amount2" type="tns:Amount">
					<xs:annotation>
						<xs:documentation>
							The recordType determines what this value signifies. Returned in the getBillingRecords response.
							eBay uses this value to ensure that the credit is matched to the correct original charge.
							&lt;br&gt;&lt;br&gt;
							If recordType is Subscription, amount2 represents the subscription amount, in the billing currency,
							against which the credit is to be applied.
							&lt;br&gt;&lt;br&gt;
							If recordType is OneTimeCharge, amount2 represents the charge amount, in the billing currency,
							against which the credit is to be applied.
							&lt;br&gt;&lt;br&gt;
							If recordType is Usage, amount2 represents the amount of the usage charge, in the billing currency,
							against which the credit is to be applied.
							&lt;br&gt;&lt;br&gt;
							If recordType is Statement, amount2 represents the statement total, in the billing currency,
							against which the credit is to be applied.
						</xs:documentation>
						<xs:appinfo>
							<CallInfo>
								<CallName>addCredit</CallName>
								<RequiredInput>Yes</RequiredInput>
							</CallInfo>
						</xs:appinfo>
					</xs:annotation>
				</xs:element>
				<xs:element name="recordDescription" type="xs:string"  minOccurs="0">
					<xs:annotation>
						<xs:documentation>
							The recordType determines what this value signifies. Returned in the getBillingRecords response.
							&lt;br&gt;&lt;br&gt;
							If recordType is Subscription, recordDescription contains a text description of the subscription.
							&lt;br&gt;&lt;br&gt;
							If recordType is OneTimeCharge, recordDescription contains a text description of the charge.
							&lt;br&gt;&lt;br&gt;
							If recordType is Usage, recordDescription contains a text description of the usage.
							&lt;br&gt;&lt;br&gt;
							If recordType is Statement, recordDescription contains a text description of the statement.
						</xs:documentation>
						<xs:appinfo>
							<CallInfo>
								<CallName>addCredit</CallName>
								<RequiredInput>No</RequiredInput>
							</CallInfo>
						</xs:appinfo>
					</xs:annotation>
				</xs:element>
			</xs:sequence>
		</xs:extension>
	</xs:complexContent>
</xs:complexType>

<xs:complexType name="OpeneBayAddCreditResponseType">
	<xs:annotation>
		<xs:documentation>
			Reserved for future use.
		</xs:documentation>
	</xs:annotation>
	<xs:complexContent>
		<xs:extension base="tns:BaseServiceResponse">
			<xs:sequence>
				<xs:element name="creditId" type="xs:long"  minOccurs="0">
					<xs:annotation>
						<xs:documentation>
							Unique identifier assigned to the credit request by eBay.
						</xs:documentation>
						<xs:appinfo>
							<CallInfo>
								<CallName>addCredit</CallName>
								<Returned>Conditionally</Returned>
							</CallInfo>
						</xs:appinfo>
					</xs:annotation>
				</xs:element>
			</xs:sequence>
		</xs:extension>
	</xs:complexContent>
</xs:complexType>

<xs:complexType name="OpeneBayGetCreditsRequestType">
	<xs:annotation>
		<xs:documentation>
			This call is reserved for future use.
		</xs:documentation>
		<xs:appinfo>
			<Summary>
				This call is reserved for future use.
			</Summary>
		</xs:appinfo>
	</xs:annotation>
	<xs:complexContent>
		<xs:extension base="tns:BaseServiceRequest">
			<xs:sequence>
				<xs:element name="userName" type="xs:string"  minOccurs="0">
					<xs:annotation>
						<xs:documentation>
							The eBay user ID of the subscriber.
						</xs:documentation>
						<xs:appinfo>
							<CallInfo>
								<CallName>getCredits</CallName>
								<RequiredInput>No</RequiredInput>
							</CallInfo>
						</xs:appinfo>
					</xs:annotation>
				</xs:element>
				<xs:element name="creditId" type="xs:long"  minOccurs="0">
					<xs:annotation>
						<xs:documentation>
							Unique identifier assigned to the credit request by eBay.
						</xs:documentation>
						<xs:appinfo>
							<CallInfo>
								<CallName>getCredits</CallName>
								<RequiredInput>Yes</RequiredInput>
							</CallInfo>
						</xs:appinfo>
					</xs:annotation>
				</xs:element>
				<xs:element name="state" type="tns:OpeneBayCreditLifeCycleStateType"  minOccurs="0">
					<xs:annotation>
						<xs:documentation>
							The lifecycle state of the credit can be submitted, pending, processed, or failed.
						</xs:documentation>
						<xs:appinfo>
							<CallInfo>
								<CallName>getCredits</CallName>
								<RequiredInput>No</RequiredInput>
							</CallInfo>
						</xs:appinfo>
					</xs:annotation>
				</xs:element>
				<xs:element name="creditTimeRange" type="tns:TimeRange" minOccurs="0">
					<xs:annotation>
						<xs:documentation>
							Time range filter for the requested credits.
						</xs:documentation>
						<xs:appinfo>
							<CallInfo>
								<CallName>getCredits</CallName>
								<RequiredInput>No</RequiredInput>
							</CallInfo>
						</xs:appinfo>
					</xs:annotation>
				</xs:element>
			</xs:sequence>
		</xs:extension>
	</xs:complexContent>
</xs:complexType>

<xs:complexType name="OpeneBayGetCreditsResponseType">
	<xs:annotation>
		<xs:documentation>
			Reserved for future use.
		</xs:documentation>
	</xs:annotation>
	<xs:complexContent>
		<xs:extension base="tns:BaseServiceResponse">
			<xs:sequence>
				<xs:element name="credit" type="tns:OpeneBayCreditType"  minOccurs="0" maxOccurs="unbounded">
					<xs:annotation>
						<xs:documentation>
							Details about the requested credits.
						</xs:documentation>
						<xs:appinfo>
							<CallInfo>
								<CallName>getCredits</CallName>
								<Returned>Conditionally</Returned>
							</CallInfo>
						</xs:appinfo>
					</xs:annotation>
				</xs:element>
			</xs:sequence>
		</xs:extension>
	</xs:complexContent>
</xs:complexType>


<xs:complexType name="OpeneBaySetBillingStartDateRequestType">
	<xs:annotation>
		<xs:documentation>
			Use the Open eBay Subscription service instead.
			For more information, see the Release Notes for the Open eBay Subscription Service.
			In both services, this call advances the billing start date for a subscription. The call is used when
			a subscriber wants to upgrade to a full subscription before
			the end of the free trial period.
			Use this request during the free trial period, between the subscription start date
			and the billing start date. Set, for example, seven days after the start of the free trial period. The application
			identity and token are sent in HTTPS header.
		</xs:documentation>
		<xs:appinfo>
			<Summary>
				Use the Open eBay Subscription service instead.
				Advances the billing start date for a subscription.
			</Summary>
		</xs:appinfo>
	</xs:annotation>
	<xs:complexContent>
		<xs:extension base="tns:BaseServiceRequest">
			<xs:sequence>
				<xs:element name="planId" type="xs:long" minOccurs="1" nillable="true">
					<xs:annotation>
						<xs:documentation>
							A planId is assigned by eBay to each subscription plan.
							Your application often uses this value in calls
							to the Open eBay Application Integration Service.
							Note that the planId is diffrent from the externalPlanId.
							In contrast to the planId, the externalPlanId is the
							value that you provide,
							as a "Developer Plan ID," when you create a subscription plan.
						</xs:documentation>
						<xs:appinfo>
							<CallInfo>
								<CallName>setBillingStartDate</CallName>
								<RequiredInput>Yes</RequiredInput>
							</CallInfo>
						</xs:appinfo>
					</xs:annotation>
				</xs:element>
				<xs:element name="subscriptionId" type="xs:long"  minOccurs="1" nillable="true">
					<xs:annotation>
						<xs:documentation>
							For a particular application, the subscriptionId
							uniquely identifies a user's subscription.
						</xs:documentation>
						<xs:appinfo>
							<CallInfo>
								<CallName>setBillingStartDate</CallName>
								<RequiredInput>Yes</RequiredInput>
							</CallInfo>
						</xs:appinfo>
					</xs:annotation>
				</xs:element>
				<xs:element name="userName" type="xs:string">
					<xs:annotation>
						<xs:documentation>
							The eBay user ID of the subscriber.
						</xs:documentation>
						<xs:appinfo>
							<CallInfo>
								<CallName>setBillingStartDate</CallName>
								<RequiredInput>Yes</RequiredInput>
							</CallInfo>
						</xs:appinfo>
					</xs:annotation>
				</xs:element>
				<xs:element name="billingStartDate" type="xs:dateTime" minOccurs="1" nillable="true">
					<xs:annotation>
						<xs:documentation>
							Date from which a subscription begins to incur subscription charges.
						</xs:documentation>
						<xs:appinfo>
							<CallInfo>
								<CallName>setBillingStartDate</CallName>
								<RequiredInput>Yes</RequiredInput>
							</CallInfo>
						</xs:appinfo>
					</xs:annotation>
				</xs:element>
			</xs:sequence>
		</xs:extension>
	</xs:complexContent>
</xs:complexType>

<xs:complexType name="OpeneBaySetBillingStartDateResponseType">
	<xs:annotation>
		<xs:documentation>
			Response container.
		</xs:documentation>
	</xs:annotation>
	<xs:complexContent>
		<xs:extension base="tns:BaseServiceResponse">
			<xs:sequence>
			</xs:sequence>
		</xs:extension>
	</xs:complexContent>
</xs:complexType>

		</xs:schema>
	</wsdl:types>

	<wsdl:message name="addUsageRequest">
		<wsdl:part name="addUsageRequest" element="ns0:addUsageRequest"/>
	</wsdl:message>
	<wsdl:message name="addUsageResponse">
		<wsdl:part name="addUsageResponse" element="ns0:addUsageResponse"/>
	</wsdl:message>
	<wsdl:message name="getBillingStatementsRequest">
		<wsdl:part name="getBillingStatementsRequest" element="ns0:getBillingStatementsRequest"/>
	</wsdl:message>
	<wsdl:message name="getBillingStatementsResponse">
		<wsdl:part name="getBillingStatementsResponse" element="ns0:getBillingStatementsResponse"/>
	</wsdl:message>
	<wsdl:message name="getBillingRecordsRequest">
		<wsdl:part name="getBillingRecordsRequest" element="ns0:getBillingRecordsRequest"/>
	</wsdl:message>
	<wsdl:message name="getBillingRecordsResponse">
		<wsdl:part name="getBillingRecordsResponse" element="ns0:getBillingRecordsResponse"/>
	</wsdl:message>
	<wsdl:message name="addCreditRequest">
		<wsdl:part name="addCreditRequest" element="ns0:addCreditRequest"/>
	</wsdl:message>
	<wsdl:message name="addCreditResponse">
		<wsdl:part name="addCreditResponse" element="ns0:addCreditResponse"/>
	</wsdl:message>
	<wsdl:message name="getCreditsRequest">
		<wsdl:part name="getCreditsRequest" element="ns0:getCreditsRequest"/>
	</wsdl:message>
	<wsdl:message name="getCreditsResponse">
		<wsdl:part name="getCreditsResponse" element="ns0:getCreditsResponse"/>
	</wsdl:message>
	<wsdl:message name="setBillingStartDateRequest">
		<wsdl:part name="setBillingStartDateRequest" element="ns0:setBillingStartDateRequest"/>
	</wsdl:message>
	<wsdl:message name="setBillingStartDateResponse">
		<wsdl:part name="setBillingStartDateResponse" element="ns0:setBillingStartDateResponse"/>
	</wsdl:message>

	<wsdl:portType name="OpeneBayApplicationIntegrationServicePort">
		<wsdl:operation name="addUsage">
			<wsdl:input message="ns0:addUsageRequest"/>
			<wsdl:output message="ns0:addUsageResponse"/>
		</wsdl:operation>
		<wsdl:operation name="getBillingStatements">
			<wsdl:input message="ns0:getBillingStatementsRequest"/>
			<wsdl:output message="ns0:getBillingStatementsResponse"/>
		</wsdl:operation>
		<wsdl:operation name="getBillingRecords">
			<wsdl:input message="ns0:getBillingRecordsRequest"/>
			<wsdl:output message="ns0:getBillingRecordsResponse"/>
		</wsdl:operation>
		<wsdl:operation name="addCredit">
			<wsdl:input message="ns0:addCreditRequest"/>
			<wsdl:output message="ns0:addCreditResponse"/>
		</wsdl:operation>
		<wsdl:operation name="getCredits">
			<wsdl:input message="ns0:getCreditsRequest"/>
			<wsdl:output message="ns0:getCreditsResponse"/>
		</wsdl:operation>
		<wsdl:operation name="setBillingStartDate">
			<wsdl:input message="ns0:setBillingStartDateRequest"/>
			<wsdl:output message="ns0:setBillingStartDateResponse"/>
		</wsdl:operation>
	</wsdl:portType>

	<wsdl:binding name="OpeneBayApplicationIntegrationServiceHttpBinding" type="ns0:OpeneBayApplicationIntegrationServicePort">
		<http:binding verb="POST"/>
		<wsdl:operation name="addUsage">
			<http:operation location="OpeneBayApplicationIntegrationService/addUsage"/>
			<wsdl:input>
				<mime:content part="addUsageRequest" type="text/xml"/>
			</wsdl:input>
			<wsdl:output>
				<mime:content part="addUsageResponse" type="text/xml"/>
			</wsdl:output>
		</wsdl:operation>
		<wsdl:operation name="getBillingStatements">
			<http:operation location="OpeneBayApplicationIntegrationService/getBillingStatements"/>
			<wsdl:input>
				<mime:content part="getBillingStatementsRequest" type="text/xml"/>
			</wsdl:input>
			<wsdl:output>
				<mime:content part="getBillingStatementsResponse" type="text/xml"/>
			</wsdl:output>
		</wsdl:operation>
		<wsdl:operation name="getBillingRecords">
			<http:operation location="OpeneBayApplicationIntegrationService/getBillingRecords"/>
			<wsdl:input>
				<mime:content part="getBillingRecordsRequest" type="text/xml"/>
			</wsdl:input>
			<wsdl:output>
				<mime:content part="getBillingRecordsResponse" type="text/xml"/>
			</wsdl:output>
		</wsdl:operation>
		<wsdl:operation name="addCredit">
			<http:operation location="OpeneBayApplicationIntegrationService/addCredit"/>
			<wsdl:input>
				<mime:content part="addCreditRequest" type="text/xml"/>
			</wsdl:input>
			<wsdl:output>
				<mime:content part="addCreditResponse" type="text/xml"/>
			</wsdl:output>
		</wsdl:operation>
		<wsdl:operation name="getCredits">
			<http:operation location="OpeneBayApplicationIntegrationService/getCredits"/>
			<wsdl:input>
				<mime:content part="getCreditsRequest" type="text/xml"/>
			</wsdl:input>
			<wsdl:output>
				<mime:content part="getCreditsResponse" type="text/xml"/>
			</wsdl:output>
		</wsdl:operation>
		<wsdl:operation name="setBillingStartDate">
			<http:operation location="OpeneBayApplicationIntegrationService/setBillingStartDate"/>
			<wsdl:input>
				<mime:content part="setBillingStartDateRequest" type="text/xml"/>
			</wsdl:input>
			<wsdl:output>
				<mime:content part="setBillingStartDateResponse" type="text/xml"/>
			</wsdl:output>
		</wsdl:operation>
	</wsdl:binding>

	<wsdl:binding name="OpeneBayApplicationIntegrationServiceSOAPBinding" type="ns0:OpeneBayApplicationIntegrationServicePort">
		<soap12:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/>
		<wsdl:operation name="addUsage">
			<soap12:operation soapAction="urn:addUsage" style="document"/>
			<wsdl:input>
				<soap12:body use="literal"/>
			</wsdl:input>
			<wsdl:output>
				<soap12:body use="literal"/>
			</wsdl:output>
		</wsdl:operation>
		<wsdl:operation name="getBillingStatements">
			<soap12:operation soapAction="urn:getBillingStatements" style="document"/>
			<wsdl:input>
				<soap12:body use="literal"/>
			</wsdl:input>
			<wsdl:output>
				<soap12:body use="literal"/>
			</wsdl:output>
		</wsdl:operation>
		<wsdl:operation name="getBillingRecords">
			<soap12:operation soapAction="urn:getBillingRecords" style="document"/>
			<wsdl:input>
				<soap12:body use="literal"/>
			</wsdl:input>
			<wsdl:output>
				<soap12:body use="literal"/>
			</wsdl:output>
		</wsdl:operation>
		<wsdl:operation name="addCredit">
			<soap12:operation soapAction="urn:addCredit" style="document"/>
			<wsdl:input>
				<soap12:body use="literal"/>
			</wsdl:input>
			<wsdl:output>
				<soap12:body use="literal"/>
			</wsdl:output>
		</wsdl:operation>
		<wsdl:operation name="getCredits">
			<soap12:operation soapAction="urn:getCredits" style="document"/>
			<wsdl:input>
				<soap12:body use="literal"/>
			</wsdl:input>
			<wsdl:output>
				<soap12:body use="literal"/>
			</wsdl:output>
		</wsdl:operation>
		<wsdl:operation name="setBillingStartDate">
			<soap12:operation soapAction="urn:setBillingStartDate" style="document"/>
			<wsdl:input>
				<soap12:body use="literal"/>
			</wsdl:input>
			<wsdl:output>
				<soap12:body use="literal"/>
			</wsdl:output>
		</wsdl:operation>
	</wsdl:binding>

	<wsdl:service name="OpeneBayApplicationIntegrationService">
		<wsdl:documentation>
			<Version>1.2.0</Version>
		</wsdl:documentation>
		<wsdl:port name="OpeneBayApplicationIntegrationServiceSOAP" binding="ns0:OpeneBayApplicationIntegrationServiceSOAPBinding">
			<soap12:address location="http://svcs.ebay.com/OpeneBayApplicationIntegrationService"/>
		</wsdl:port>
		<wsdl:port name="OpeneBayApplicationIntegrationServiceHttp" binding="ns0:OpeneBayApplicationIntegrationServiceHttpBinding">
			<http:address location="http://svcs.ebay.com/OpeneBayApplicationIntegrationService"/>
		</wsdl:port>
	</wsdl:service>
</wsdl:definitions>