{
	"id": "LoanOrCredit.json",
	"title": "Loan or Credit",
	"description": "A financial product for the loaning of an amount of money under agreed terms and charges.",
	"media": {"type": "application/json;profile=http://schema.org/LoanOrCredit"},
	"allOf": [{"$ref": "Thing.json"}, {"$ref": "Intangible.json"}, {"$ref": "Service.json"}, {"$ref": "FinancialProduct.json"}],
	"type": "object",
	"properties": {
		"amount": {"$ref": "#/definitions/amount"},
		"currency": {"$ref": "#/definitions/currency"},
		"gracePeriod": {"$ref": "Duration.json#/definitions/possibleRef"},
		"loanRepaymentForm": {"$ref": "RepaymentSpecification.json#/definitions/possibleRefArray"},
		"loanTerm": {"$ref": "QuantitativeValue.json#/definitions/possibleRef"},
		"loanType": {"$ref": "#/definitions/loanType"},
		"recourseLoan": {"$ref": "#/definitions/recourseLoan"},
		"renegotiableLoan": {
			"oneOf": [
				{"$ref": "#/definitions/renegotiableLoan"},
				{
					"type": "array",
					"items": {"$ref": "#/definitions/renegotiableLoan"}
				}
			]
		},
		"requiredCollateral": {
			"oneOf": [
				{"$ref": "#/definitions/requiredCollateral"},
				{
					"type": "array",
					"items": {"$ref": "#/definitions/requiredCollateral"}
				}
			]
		}
	},
	"definitions": {
		"array": {
			"type": "array",
			"items": {"$ref": "#"}
		},
		"possibleRef": {
			"oneOf": [
				{"$ref": "#"},
				{
					"type": "string",
					"format": "uri",
					"links": [{
						"rel": "full",
						"href": "{+$}"
					}]
				}
			]
		},
		"possibleRefArray": {
			"oneOf": [
				{
					"type": "array",
					"items": {"$ref": "#/definitions/possibleRef"}
				},
				{
					"type": "string",
					"format": "uri",
					"links": [{
						"rel": "full",
						"href": "{+$}"
					}]
				}
			]
		},
		"amount": {
			"title": "Amount",
			"description": "The amount of money.",
			"anyOf": [{"type": "number"}, {"$ref": "MonetaryAmount.json#/definitions/possibleRef"}]
		},
		"currency": {
			"title": "Currency",
			"description": "The currency in which the monetary amount is expressed.\n\nUse standard formats: ISO 4217 currency format e.g. \"USD\"; Ticker symbol for cryptocurrencies e.g. \"BTC\"; well known names for Local Exchange Tradings Systems (LETS) and other currency types e.g. \"Ithaca HOUR\".",
			"type": "string"
		},
		"loanType": {
			"title": "Loan Type",
			"description": "The type of a loan or credit.",
			"anyOf": [
				{"type": "string"},
				{
					"type": "string",
					"format": "uri"
				}
			]
		},
		"recourseLoan": {
			"title": "Recourse Loan",
			"description": "The only way you get the money back in the event of default is the security. Recourse is where you still have the opportunity to go back to the borrower for the rest of the money.",
			"type": "boolean"
		},
		"renegotiableLoan": {
			"title": "Renegotiable Loan",
			"description": "Whether the terms for payment of interest can be renegotiated during the life of the loan.",
			"type": "boolean"
		},
		"requiredCollateral": {
			"title": "Required Collateral",
			"description": "Assets required to secure loan or credit repayments. It may take form of third party pledge, goods, financial instruments (cash, securities, etc.)",
			"anyOf": [{"type": "string"}, {"$ref": "Thing.json#/definitions/possibleRef"}]
		}
	}
}