{
	"$schema": "https://json-schema.org/draft/2020-12/schema",
	"$id": "https://schema.twindev.org/unece/UneceAdvancePayment",
	"title": "UneceAdvancePayment",
	"description": "A prepaid discharge of obligations in respect of funds or securities transferred between two or more parties.",
	"type": "object",
	"properties": {
		"@context": {
			"$ref": "https://schema.twindev.org/unece/UneceContextType",
			"description": "JSON-LD Context."
		},
		"type": {
			"const": "AdvancePayment",
			"description": "JSON-LD Type."
		},
		"identifiedPaymentTerms": {
			"$ref": "https://schema.twindev.org/unece/UnecePaymentTerms",
			"description": "The payment terms identified for this advance payment."
		},
		"identifier": {
			"anyOf": [
				{
					"type": "string"
				},
				{
					"$ref": "https://schema.twindev.org/json-ld/JsonLdValueObject"
				}
			],
			"description": "The identifier for this advance payment."
		},
		"includedTax": {
			"type": "array",
			"items": {
				"$ref": "https://schema.twindev.org/unece/UneceTradeTax"
			},
			"description": "A tax included in this advance payment."
		},
		"invoiceSpecifiedDocument": {
			"type": "array",
			"items": {
				"$ref": "https://schema.twindev.org/unece/UneceDocument"
			},
			"description": "An invoice document referenced by this advance payment."
		},
		"paidAmount": {
			"$ref": "https://schema.twindev.org/unece/UneceAmountType",
			"description": "The monetary value of the funds or securities paid in this advance payment."
		},
		"receivedDateTime": {
			"type": "string",
			"description": "The formatted date or date time value when an advance payment has been received.",
			"format": "date-time"
		}
	},
	"required": ["type", "paidAmount"]
}
