{
	"$schema": "https://json-schema.org/draft/2020-12/schema",
	"$id": "https://schema.twindev.org/unece/UneceLineTradeSettlement",
	"title": "UneceLineTradeSettlement",
	"description": "The information, at a line level, that enables the reconciliation of a financial transaction with the item(s) that the\nfinancial transaction is intended to settle, for example a commercial invoice.",
	"type": "object",
	"properties": {
		"@context": {
			"$ref": "https://schema.twindev.org/unece/UneceContextType",
			"description": "JSON-LD Context."
		},
		"type": {
			"const": "LineTradeSettlement",
			"description": "JSON-LD Type."
		},
		"additionalDocument": {
			"type": "array",
			"items": {
				"$ref": "https://schema.twindev.org/unece/UneceDocument"
			},
			"description": "An additional document referenced in this line trade settlement."
		},
		"amountDirectionCode": {
			"type": "string",
			"description": "The code, specifying the direction, either an addition or subtraction, for the amount of this line trade settlement."
		},
		"applicableTax": {
			"type": "array",
			"items": {
				"$ref": "https://schema.twindev.org/unece/UneceTradeTax"
			},
			"description": "A tax applicable to this line trade settlement."
		},
		"associatedDocument": {
			"type": "array",
			"items": {
				"$ref": "https://schema.twindev.org/unece/UneceDocument"
			},
			"description": "A document associated with this line trade settlement."
		},
		"associatedDocumentLineDocument": {
			"type": "array",
			"items": {
				"$ref": "https://schema.twindev.org/unece/UneceDocumentLineDocument"
			},
			"description": "A document line associated with this line trade settlement."
		},
		"billingPeriod": {
			"type": "array",
			"items": {
				"$ref": "https://schema.twindev.org/unece/UneceSpecifiedPeriod"
			},
			"description": "A billing period specified for this line trade settlement."
		},
		"creditorReferenceTypeCode": {
			"type": "string",
			"description": "A code specifying a type of creditor reference for this line trade settlement."
		},
		"discountIndicator": {
			"type": "boolean",
			"description": "The indication of whether or not a discount applies to the item in this line trade settlement."
		},
		"invoiceDateTime": {
			"type": "string",
			"description": "The date, time, date time or other date time value of the invoice in this line trade settlement.",
			"format": "date-time"
		},
		"invoiceDocument": {
			"type": "array",
			"items": {
				"$ref": "https://schema.twindev.org/unece/UneceDocument"
			},
			"description": "An invoice document referenced in this line trade settlement."
		},
		"invoiceIssuerReference": {
			"type": "string",
			"description": "The invoice issuer reference, expressed as text, for this line settlement."
		},
		"invoiceeParty": {
			"$ref": "https://schema.twindev.org/unece/UneceTradeParty",
			"description": "The party to whom an invoice is issued for this line trade settlement."
		},
		"payableSpecifiedAccountingAccount": {
			"type": "array",
			"items": {
				"$ref": "https://schema.twindev.org/unece/UneceAccountingAccount"
			},
			"description": "A payable accounting account specified for this line trade settlement."
		},
		"payerParty": {
			"$ref": "https://schema.twindev.org/unece/UneceTradeParty",
			"description": "The payer party for this line trade settlement."
		},
		"payerReference": {
			"type": "string",
			"description": "The payer reference, expressed as text, for this line trade settlement."
		},
		"paymentAmount": {
			"type": "array",
			"items": {
				"$ref": "https://schema.twindev.org/unece/UneceAmountType"
			},
			"description": "A monetary value of a payment for this line trade settlement."
		},
		"paymentReference": {
			"type": "string",
			"description": "A payment reference, expressed as text, for this line trade settlement."
		},
		"priceCurrencyCode": {
			"$ref": "https://schema.twindev.org/unece/UneceCurrencyCodeList",
			"description": "The code specifying the price currency for this line trade settlement."
		},
		"purchaseSpecifiedAccountingAccount": {
			"type": "array",
			"items": {
				"$ref": "https://schema.twindev.org/unece/UneceAccountingAccount"
			},
			"description": "A purchase accounting account specified for this line trade settlement."
		},
		"receivableSpecifiedAccountingAccount": {
			"type": "array",
			"items": {
				"$ref": "https://schema.twindev.org/unece/UneceAccountingAccount"
			},
			"description": "A receivable accounting account specified for this line trade settlement."
		},
		"salesSpecifiedAccountingAccount": {
			"type": "array",
			"items": {
				"$ref": "https://schema.twindev.org/unece/UneceAccountingAccount"
			},
			"description": "A sales accounting account specified for this line trade settlement."
		},
		"specifiedAccountingAccount": {
			"type": "array",
			"items": {
				"$ref": "https://schema.twindev.org/unece/UneceAccountingAccount"
			},
			"description": "An accounting account specified for this line trade settlement."
		},
		"specifiedAllowanceCharge": {
			"type": "array",
			"items": {
				"$ref": "https://schema.twindev.org/unece/UneceTradeAllowanceCharge"
			},
			"description": "An allowance or charge specified for this line trade settlement."
		},
		"specifiedFinancialAdjustment": {
			"type": "array",
			"items": {
				"$ref": "https://schema.twindev.org/unece/UneceFinancialAdjustment"
			},
			"description": "A financial adjustment specified for this line trade settlement."
		},
		"specifiedFinancialCard": {
			"type": "array",
			"items": {
				"$ref": "https://schema.twindev.org/unece/UneceFinancialCard"
			},
			"description": "A financial card specified in this line trade settlement."
		},
		"specifiedPaymentTerms": {
			"type": "array",
			"items": {
				"$ref": "https://schema.twindev.org/unece/UnecePaymentTerms"
			},
			"description": "Payment terms specified for this line trade settlement."
		},
		"specifiedServiceCharge": {
			"type": "array",
			"items": {
				"$ref": "https://schema.twindev.org/unece/UneceServiceCharge"
			},
			"description": "A logistics service charge specified for this line trade settlement."
		},
		"specifiedTradeSettlementLineMonetarySummation": {
			"$ref": "https://schema.twindev.org/unece/UneceTradeSettlementLineMonetarySummation",
			"description": "The monetary summation totals specified for this line trade settlement."
		},
		"statusCode": {
			"type": "string",
			"description": "The code specifying the status of this line trade settlement."
		},
		"subtotalCalculatedTax": {
			"type": "array",
			"items": {
				"$ref": "https://schema.twindev.org/unece/UneceTradeTax"
			},
			"description": "A tax subtotal calculated for this line trade settlement."
		},
		"totalAdjustmentAmount": {
			"$ref": "https://schema.twindev.org/unece/UneceAmountType",
			"description": "The monetary value of the total adjustment for this line trade settlement."
		},
		"tradeTransaction": {
			"type": "array",
			"items": {
				"$ref": "https://schema.twindev.org/unece/UneceLineTradeTransaction"
			},
			"description": "A trade transaction referenced in this line trade settlement."
		}
	},
	"required": ["type"]
}
