{
	"$schema": "http://json-schema.org/draft-04/schema#",
	"description": "Pay for booking request JSON schema",
	"type": "object",
	"additionalProperties": false,
	"definitions": {
		"payForBookingRequest": {
			"additionalProperties": false,
			"description": "Request the latest status of bookings made on request",
			"properties": {
				"versionNumber": {
					"$ref": "commonTypes.json#/definitions/schemaVersion"
				},
				"booking": {
					"$ref": "#/definitions/payForBookingRequestType",
					"description": "Service to make a payments for the collection of reservations. The Payment will be taken for total booking amount and only for confirmed tours."
				},
				"requestAuditInfo": {
					"$ref": "commonTypes.json#/definitions/requestAuditInfo"
				}
			},
			"required": [
				"booking",
				"requestAuditInfo",
				"versionNumber"
			],
			"type": "object"
		},
		"payForBookingRequestType": {
			"additionalProperties": false,
			"description": "Collection of booking which need to be paid.",
			"properties": {
				"paymentCard": {
					"$ref": "bookingCommonTypes.json#/definitions/paymentRequestType",
					"description": "Details of the Creditcard/Debit card"
				},
				"references": {
					"additionalProperties": false,
					"description": "The details of the booking to be paid.",
					"properties": {
						"bookingReference": {
							"additionalProperties": false,
							"description": "The Unique booking Reference.",
							"$ref": "commonTypes.json#/definitions/xs:string"
						},
						"tourReferences": {
							"additionalProperties": false,
							"description": "Collection of the tour References which need to be paid. The collection must be with in the same booking reference",
							"properties": {
								"tourReference": {
									"items": {
										"additionalProperties": false,
										"description": "The Unique tour Reference.",
										"$ref": "bookingCommonTypes.json#/definitions/tourReferenceType"
									},
									"minItems": 1,
									"type": "array"
								}
							},
							"required": [
								"tourReference"
							],
							"type": "object"
						}
					},
					"oneOf": [
						{
							"required": [
								"bookingReference"
							]
						},
						{
							"required": [
								"tourReferences"
							]
						}
					],
					"type": "object"
				}
			},
			"required": [
				"paymentCard",
				"references"
			],
			"type": "object",
			"javaType": "uk.co.miki.eBiz.msi.service.json70.schema.PayForBookingRequestBooking"
		}
	},
	"$ref": "#/definitions/payForBookingRequest"
}