{
	"$schema": "http://json-schema.org/draft-04/schema#",
	"description": "Pay for booking response JSON schema",
	"type": "object",
	"additionalProperties": false,
	"definitions": {
		"payForBookingResponse": {
			"additionalProperties": false,
			"description": "Request the latest status of bookings made on request",
			"properties": {
				"versionNumber": {
					"$ref": "commonTypes.json#/definitions/schemaVersion"
				},
				"errors": {
					"$ref": "commonTypes.json#/definitions/errors",
					"description": "Collection of errors happen during the reservation of items."
				},
				"items": {
					"additionalProperties": false,
					"description": "This element is present only when the payment is successful",
					"items": {
						"additionalProperties": false,
						"properties": {
							"allowModifications": {
								"$ref": "commonTypes.json#/definitions/xs:nonNegativeInteger"
							},
							"bookingReference": {
								"$ref": "commonTypes.json#/definitions/xs:string"
							},
							"clientReference": {
								"$ref": "commonTypes.json#/definitions/xs:string"
							},
							"currencyCode": {
								"$ref": "commonTypes.json#/definitions/currencyCodeType"
							},
							"paymentStatus": {
								"$ref": "bookingCommonTypes.json#/definitions/paymentStatusType"
							},
							"status": {
								"$ref": "bookingCommonTypes.json#/definitions/bookingStatusType"
							},
							"tourReference": {
								"$ref": "bookingCommonTypes.json#/definitions/tourReferenceType"
							},
							"giataCode": {
								"additionalProperties": false,
								"$ref": "commonTypes.json#/definitions/xs:string"
							},
							"itemTotalPrice": {
								"$ref": "bookingCommonTypes.json#/definitions/priceWithTaxes"
							},
							"productCode": {
								"$ref": "commonTypes.json#/definitions/productCodeType"
							},
							"productType": {
								"additionalProperties": false,
								"$ref": "commonTypes.json#/definitions/responseProductType"
							},
							"serviceDate": {
								"additionalProperties": false,
								"$ref": "commonTypes.json#/definitions/serviceDate"
							}
						},
						"required": [
							"itemTotalPrice",
							"productCode",
							"productType",
							"serviceDate",
							"currencyCode",
							"tourReference",
							"clientReference",
							"status",
							"allowModifications",
							"bookingReference",
							"paymentStatus"
						],
						"type": "object",
						"javaType": "uk.co.miki.eBiz.msi.service.json70.schema.PayForBookingResponseItem"
					},
					"minItems": 1,
					"type": "array"
				},
				"paymentInfo": {
					"$ref": "bookingCommonTypes.json#/definitions/paymentResponseType",
					"description": "Total amount paid for all the booking item in the response. "
				},
				"responseAuditInfo": {
					"$ref": "commonTypes.json#/definitions/responseAuditInfo"
				},
				"warnings": {
					"$ref": "commonTypes.json#/definitions/warnings",
					"description": "Indicates the collections of business level warning messages for requested products."
				}
			},
			"required": [
				"responseAuditInfo",
				"versionNumber"
			],
			"type": "object"
		}
	},
	"$ref": "#/definitions/payForBookingResponse"
}