{
	"id": "RepaymentSpecification.json",
	"title": "Repayment Specification",
	"description": "A structured value representing repayment.",
	"media": {"type": "application/json;profile=http://schema.org/RepaymentSpecification"},
	"allOf": [{"$ref": "Thing.json"}, {"$ref": "Intangible.json"}, {"$ref": "StructuredValue.json"}],
	"type": "object",
	"properties": {
		"downPayment": {
			"oneOf": [
				{"$ref": "#/definitions/downPayment"},
				{
					"type": "array",
					"items": {"$ref": "#/definitions/downPayment"}
				}
			]
		},
		"earlyPrepaymentPenalty": {"$ref": "MonetaryAmount.json#/definitions/possibleRef"},
		"loanPaymentAmount": {"$ref": "MonetaryAmount.json#/definitions/possibleRef"},
		"loanPaymentFrequency": {
			"oneOf": [
				{"$ref": "#/definitions/loanPaymentFrequency"},
				{
					"type": "array",
					"items": {"$ref": "#/definitions/loanPaymentFrequency"}
				}
			]
		},
		"numberOfLoanPayments": {"$ref": "#/definitions/numberOfLoanPayments"}
	},
	"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": "{+$}"
					}]
				}
			]
		},
		"downPayment": {
			"title": "Down Payment",
			"description": "a type of payment made in cash during the onset of the purchase of an expensive good/service. The payment typically represents only a percentage of the full purchase price.",
			"anyOf": [{"$ref": "MonetaryAmount.json#/definitions/possibleRef"}, {"type": "number"}]
		},
		"loanPaymentFrequency": {
			"title": "Loan Payment Frequency",
			"description": "Frequency of payments due, i.e. number of months between payments. This is defined as a frequency, i.e. the reciprocal of a period of time.",
			"type": "number"
		},
		"numberOfLoanPayments": {
			"title": "Number of Loan Payments",
			"description": "The number of payments contractually required at origination to repay the loan. For monthly paying loans this is the number of months from the contractual first payment date to the maturity date.",
			"type": "number"
		}
	}
}