<?xml version="1.0" encoding="UTF-8"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified" attributeFormDefault="unqualified">
	<xs:include schemaLocation="bookingCommonTypes.xsd"/>
	<xs:element name="modifyRequest">
		<xs:annotation>
			<xs:documentation>Service to modify the confirmed reservation item. Only one unique reservation item can be modifiable per request.</xs:documentation>
		</xs:annotation>
		<xs:complexType>
			<xs:sequence>
				<xs:element name="requestAuditInfo" type="requestAuditInfo"/>
				<xs:element name="tourReference" type="tourReferenceType">
					<xs:annotation>
						<xs:documentation>Specify the unique reservation item number to be modified.</xs:documentation>
					</xs:annotation>
				</xs:element>
				<xs:element name="immediateConfirmationRequired" type="xs:boolean">
					<xs:annotation>
						<xs:documentation>0=Booking can be made on request, 1=Booking must be confirmed immediately</xs:documentation>
					</xs:annotation>
				</xs:element>
				<xs:element name="modifyItem" type="modifyItemType">
					<xs:annotation>
						<xs:documentation>Specify the item which need modification with details of the modification.</xs:documentation>
					</xs:annotation>
				</xs:element>
				<xs:element name="agentMarkup" minOccurs="0">
					<xs:annotation>
						<xs:documentation>Agent markup. Only for Miki internal use</xs:documentation>
					</xs:annotation>
					<xs:complexType>
						<xs:sequence>
							<xs:choice>
								<xs:element name="amount" type="priceType">
									<xs:annotation>
										<xs:documentation>Agent commission in numbers</xs:documentation>
									</xs:annotation>
								</xs:element>
								<xs:element name="percentage" type="xs:decimal">
									<xs:annotation>
										<xs:documentation>Agent commission in percentage</xs:documentation>
									</xs:annotation>
								</xs:element>
							</xs:choice>
						</xs:sequence>
					</xs:complexType>
				</xs:element>
				<xs:element name="payNow" type="payNowType" minOccurs="0">
					<xs:annotation>
						<xs:documentation>Set the value as '1' for paying now, '0' for not paying for this booking item</xs:documentation>
					</xs:annotation>
				</xs:element>
				<xs:element name="paymentCard" type="paymentRequestType" minOccurs="0">
					<xs:annotation>
						<xs:documentation>Details of the Creditcard/Debit card</xs:documentation>
					</xs:annotation>
				</xs:element>
			</xs:sequence>
			<xs:attribute name="requestType" type="xs:string" use="required" fixed="modifyRequest">
				<xs:annotation>
					<xs:documentation>Used to ID the record to the receiving software</xs:documentation>
				</xs:annotation>
			</xs:attribute>
			<xs:attribute name="versionNumber" use="optional" fixed="7.0">
				<xs:annotation>
					<xs:documentation>Indicates the version of the request that is being used. </xs:documentation>
				</xs:annotation>
			</xs:attribute>
		</xs:complexType>
	</xs:element>
</xs:schema>
