{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/flowtly-fr/json-schema/flowtly-fr-contract-jsonld-contract-read-schema.json",
  "title": "Contract.jsonld-contract.read",
  "x-generated": "2026-11-27",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/flowtly-fr-openapi.yml#/components/schemas/Contract.jsonld-contract.read",
  "type": "object",
  "deprecated": false,
  "properties": {
    "@context": {
      "readOnly": true,
      "oneOf": [
        {
          "type": "string"
        },
        {
          "type": "object",
          "properties": {
            "@vocab": {
              "type": "string"
            },
            "hydra": {
              "type": "string",
              "enum": [
                "http://www.w3.org/ns/hydra/core#"
              ]
            }
          },
          "required": [
            "@vocab",
            "hydra"
          ],
          "additionalProperties": true
        }
      ]
    },
    "@id": {
      "readOnly": true,
      "type": "string"
    },
    "@type": {
      "readOnly": true,
      "type": "string"
    },
    "id": {
      "readOnly": true,
      "type": "string"
    },
    "name": {
      "maxLength": 255,
      "type": "string"
    },
    "direction": {
      "enum": [
        "out",
        "in",
        "unknown"
      ],
      "description": "Which way the money flows. A closed set of three: `out`, `in`, and `unknown`\nfor a contract whose direction has not been established — `directionUnverifiedReason`\nsays why.",
      "type": "string"
    },
    "directionUnverifiedReason": {
      "readOnly": true,
      "description": "Why `$direction` is a guess rather than a confirmed value, or null when it\nis confirmed (#3294).",
      "type": [
        "string",
        "null"
      ]
    },
    "counterparty": {
      "anyOf": [
        {
          "$ref": "#/$defs/Counterparty.jsonld-contract.read"
        },
        {
          "type": "null"
        }
      ]
    },
    "project": {
      "type": [
        "string",
        "null"
      ],
      "format": "iri-reference"
    },
    "currency": {
      "type": "string",
      "format": "iri-reference"
    },
    "totalAmount": {
      "pattern": "^(.*\\A\\d+\\z.*)$",
      "description": "Whole number of 1/10000 units — 11 000,00 is \"110000000\", NOT \"11000.00\".",
      "type": "string"
    },
    "currentTotalAmount": {
      "readOnly": true,
      "description": "Whole number of 1/10000 units - 11 000,00 is \"110000000\", NOT \"11000.00\". Read-only: the amended total, projected from ContractAmendment.",
      "type": "string"
    },
    "area": {
      "description": "The area in m2 as AGREED, i.e. before any amendment (#3726).",
      "type": [
        "string",
        "null"
      ]
    },
    "currentArea": {
      "readOnly": true,
      "description": "Projection of the area in force today, written the same way and by the\nsame single writer as `$currentTotalAmount` (#3726, mirroring #3804).",
      "type": [
        "string",
        "null"
      ]
    },
    "dateFrom": {
      "type": [
        "string",
        "null"
      ],
      "format": "date-time"
    },
    "dateTo": {
      "type": [
        "string",
        "null"
      ],
      "format": "date-time"
    },
    "cyclic": {
      "description": "Marks the contract as a recurring/ongoing relationship rather than a\none-shot deal — e.g. a monthly retainer, ongoing security service, or\nindefinite tenancy. When true, dateTo is conventionally left null\n(open-ended) until the contract is actually terminated.",
      "type": "boolean"
    },
    "billingInterval": {
      "description": "How often a cyclic contract bills. Null means the cadence has not been stated — it does NOT mean monthly.",
      "type": "string",
      "enum": [
        "monthly",
        "quarterly",
        "annual"
      ]
    },
    "billingAnchorDay": {
      "minimum": 1,
      "maximum": 31,
      "description": "Day of month the billing period starts, 1-31. Clamped to the last day in shorter months.",
      "type": "integer"
    },
    "billingAnchorMonth": {
      "minimum": 1,
      "maximum": 12,
      "description": "Anniversary month for quarterly/annual billing, 1-12. Unused for monthly.",
      "type": "integer"
    },
    "amountPerInterval": {
      "maxLength": 15,
      "pattern": "^(.*\\A\\d+\\z.*)$",
      "description": "Cost of ONE billing period, as a whole number of 1/10000 units. Distinct from totalAmount, which is the whole contract.",
      "type": "string"
    },
    "activeMonths": {
      "minItems": 1,
      "description": "Calendar months (1-12) this contract bills in. Null means every month. A period whose START month is not listed produces no schedule line.",
      "type": "array",
      "items": {
        "type": "integer"
      }
    },
    "scheduleStartEvent": {
      "description": "Milestone the schedule starts at instead of `dateFrom` (#6386); see {@see ContractScheduleStart}. RESTRICT rather than SET NULL, because deleting the milestone would otherwise re-point this lease at `dateFrom` and silently bill the fit-out months — {@see \\App\\Api\\State\\Budget\\ContractEventDeleteProcessor}.",
      "anyOf": [
        {
          "$ref": "#/$defs/ContractEvent.jsonld-contract.read"
        },
        {
          "type": "null"
        }
      ]
    },
    "turnoverRatePercent": {
      "description": "Turnover rent as a percent of the tenant's sales. Used read-only by GET /tenant-turnovers/rent-due against the sales a tenant reported; never billed or stored from.",
      "type": "string"
    },
    "turnoverMinimumAmount": {
      "maxLength": 15,
      "pattern": "^(.*\\A\\d+\\z.*)$",
      "description": "Minimum per billing period on a turnover lease, as a whole number of 1/10000 units. Booked by the schedule when amountPerInterval is not stated.",
      "type": "string"
    },
    "serviceChargeCapAmount": {
      "pattern": "^(.*\\A\\d+\\z.*)$",
      "description": "Service-charge ceiling the lease states, as a whole number of 1/10000 units, per m² per month in the service-charge line's currency. Read by the service-charge statements, for the period month only.",
      "type": "string"
    },
    "serviceChargeCapPeriod": {
      "description": "The period {@see $serviceChargeCapAmount} applies over, as the lease states it.",
      "type": [
        "string",
        "null"
      ],
      "enum": [
        "month",
        "quarter",
        "year",
        "one_off",
        null
      ]
    },
    "noDocumentExpected": {
      "description": "\"This contract legitimately has no document\" (#3854).",
      "type": "boolean"
    },
    "noProjectExpected": {
      "description": "\"This contract is not attributable to a project\" (#3854).",
      "type": "boolean"
    },
    "noPaymentScheduleExpected": {
      "description": "\"No payment schedule will ever be entered for this contract\" (#3854).",
      "type": "boolean"
    },
    "notes": {
      "type": [
        "string",
        "null"
      ]
    },
    "description": {
      "type": [
        "string",
        "null"
      ]
    },
    "signatureEnvelopeId": {
      "type": [
        "string",
        "null"
      ]
    },
    "signatureStatus": {
      "type": [
        "string",
        "null"
      ]
    },
    "signatureSentAt": {
      "type": [
        "string",
        "null"
      ],
      "format": "date-time"
    },
    "signatureCompletedAt": {
      "type": [
        "string",
        "null"
      ],
      "format": "date-time"
    },
    "paymentScheduleLines": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/PaymentScheduleLine.jsonld-contract.read"
      }
    },
    "attachments": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/ContractAttachment.jsonld-contract.read"
      }
    },
    "contractEvents": {
      "description": "Milestones this contract's tranches hang off. Usually undated at import —\nsee ContractEvent for why that is the normal state, not a gap.",
      "type": "array",
      "items": {
        "$ref": "#/$defs/ContractEvent.jsonld-contract.read"
      }
    },
    "assets": {
      "description": "The asset units this contract leases (#6747).",
      "type": "array",
      "items": {
        "type": "string",
        "format": "iri-reference"
      }
    },
    "contractTranches": {
      "description": "Instalments as the contract words them, which is not always convertible\ninto a dated PaymentScheduleLine. See ContractTranche.",
      "type": "array",
      "items": {
        "$ref": "#/$defs/ContractTranche.jsonld-contract.read"
      }
    },
    "moneyLines": {
      "description": "The prices the contract states, one per charge, each with its OWN\ncurrency (#3534).",
      "type": "array",
      "items": {
        "$ref": "#/$defs/ContractMoneyLine.jsonld-contract.read"
      }
    },
    "clauses": {
      "description": "The clauses that decide how to INVOICE this contract (#5328).",
      "type": "array",
      "items": {
        "$ref": "#/$defs/ContractClause.jsonld-contract.read"
      }
    },
    "paymentDeadlineDays": {
      "description": "When payment falls due (#3535). Read from prose such as \"w terminie 14\ndni od dnia doręczenia faktury VAT, z góry\" — three separate facts that\npreviously had nowhere to live, so every extracted contract arrived with\nits terms blank and someone retyped them.",
      "type": [
        "integer",
        "null"
      ]
    },
    "paymentCountedFrom": {
      "enum": [
        "invoice_delivery",
        "invoice_issue",
        "period_start",
        "event"
      ],
      "description": "When the payment deadline starts counting. Invoice DELIVERY and invoice ISSUE are\ndeliberately distinct: they are different dates, and the leases in hand bind the\nformer. Null when the contract is silent.",
      "type": [
        "string",
        "null"
      ]
    },
    "paymentInAdvance": {
      "description": "True for \"z góry\", false for arrears, null when the contract is silent.",
      "type": [
        "boolean",
        "null"
      ]
    },
    "paymentDayRule": {
      "enum": [
        "last_day_of_month",
        "day_of_next_month"
      ],
      "description": "A calendar payment rule (#11235): `last_day_of_month`, or `day_of_next_month` with\n{@see self::$paymentDayOfMonth}. Null when the contract states a plain day count or is\nsilent. The cyclic billing schedule moves each generated line onto this date\n({@see \\App\\Service\\Budget\\ContractBillingSchedule}); explicit lines are never moved.",
      "type": [
        "string",
        "null"
      ]
    },
    "paymentDayOfMonth": {
      "minimum": 1,
      "maximum": 31,
      "description": "The N of `day_of_next_month`; null for every other rule.",
      "type": [
        "integer",
        "null"
      ]
    },
    "transactionAttachments": {
      "readOnly": true,
      "description": "Cost-side invoices (AP) linked to this contract — typically populated\nonly on contracts where direction='out'. The UI filters by direction\nso a revenue contract never accidentally surfaces a TransactionAttachment.",
      "type": "array",
      "items": {
        "$ref": "#/$defs/TransactionAttachment.jsonld-contract.read"
      }
    },
    "invoices": {
      "readOnly": true,
      "description": "Revenue-side invoices (AR) linked to this contract — typically\npopulated only on contracts where direction='in' (issued invoices to\ntenants/clients). Same direction-match invariant as\ntransactionAttachments.",
      "type": "array",
      "items": {
        "$ref": "#/$defs/Invoice.jsonld-contract.read"
      }
    },
    "amountBasis": {
      "default": "fixed",
      "type": "string",
      "enum": [
        "fixed",
        "trailing_average"
      ],
      "description": "Where the monthly plan amount comes from. `fixed`: the payment schedule. `trailing_average` (cost contracts only): the live average of the counterparty's incoming invoices over the months before each month; a stored schedule line or a generated cyclic line still wins its month."
    },
    "averageWindowMonths": {
      "minimum": 1,
      "maximum": 12,
      "default": 3,
      "type": "integer",
      "description": "How many invoice months the average reads, 1-12. Months with no invoice are skipped, not counted as zero."
    },
    "averageFloor": {
      "pattern": "^(.*\\A\\d+\\z.*)$",
      "description": "The lowest monthly estimate, as a count of 1/10000 units in the contract currency (2 000,00 is \"20000000\"). Null is no floor.",
      "type": [
        "string",
        "null"
      ]
    },
    "averageProject": {
      "description": "Optional: only invoices allocated to this project feed the average.",
      "type": [
        "string",
        "null"
      ],
      "format": "iri-reference"
    },
    "averageTagDefinition": {
      "description": "Optional: only invoices carrying this tag (on the document header) feed the average.",
      "type": [
        "string",
        "null"
      ],
      "format": "iri-reference"
    },
    "version": {
      "readOnly": true,
      "type": [
        "integer",
        "null"
      ]
    }
  },
  "required": [
    "direction"
  ],
  "$defs": {
    "ContractAttachment.jsonld-contract.read": {
      "type": "object",
      "description": "",
      "deprecated": false,
      "properties": {
        "@context": {
          "readOnly": true,
          "oneOf": [
            {
              "type": "string"
            },
            {
              "type": "object",
              "properties": {
                "@vocab": {
                  "type": "string"
                },
                "hydra": {
                  "type": "string",
                  "enum": [
                    "http://www.w3.org/ns/hydra/core#"
                  ]
                }
              },
              "required": [
                "@vocab",
                "hydra"
              ],
              "additionalProperties": true
            }
          ]
        },
        "@id": {
          "readOnly": true,
          "type": "string"
        },
        "@type": {
          "readOnly": true,
          "type": "string"
        },
        "id": {
          "readOnly": true,
          "type": "string"
        },
        "filename": {
          "readOnly": true,
          "type": "string"
        },
        "status": {
          "readOnly": true,
          "default": "pending",
          "type": "string",
          "enum": [
            "pending",
            "analyzing",
            "analyzed",
            "failed",
            "stored"
          ]
        },
        "kind": {
          "default": "contract",
          "type": "string",
          "enum": [
            "contract",
            "annex"
          ]
        },
        "failureReason": {
          "readOnly": true,
          "description": "Why the analysis failed, when it did (#3832).",
          "type": [
            "string",
            "null"
          ],
          "enum": [
            "document_unreadable",
            "document_empty",
            "analysis_incomplete",
            "service_unavailable",
            "not_configured",
            "internal_error",
            null
          ]
        },
        "analysisSummary": {
          "readOnly": true,
          "type": [
            "array",
            "null"
          ],
          "items": {
            "type": "string"
          }
        },
        "reviewedAt": {
          "readOnly": true,
          "type": [
            "string",
            "null"
          ],
          "format": "date-time"
        },
        "failureRetryable": {
          "readOnly": true,
          "description": "Whether re-running the analysis on the same document could succeed.",
          "type": [
            "boolean",
            "null"
          ]
        }
      }
    },
    "ContractClause.jsonld-contract.read": {
      "type": "object",
      "description": "",
      "deprecated": false,
      "properties": {
        "@context": {
          "readOnly": true,
          "oneOf": [
            {
              "type": "string"
            },
            {
              "type": "object",
              "properties": {
                "@vocab": {
                  "type": "string"
                },
                "hydra": {
                  "type": "string",
                  "enum": [
                    "http://www.w3.org/ns/hydra/core#"
                  ]
                }
              },
              "required": [
                "@vocab",
                "hydra"
              ],
              "additionalProperties": true
            }
          ]
        },
        "@id": {
          "readOnly": true,
          "type": "string"
        },
        "@type": {
          "readOnly": true,
          "type": "string"
        },
        "id": {
          "readOnly": true,
          "type": "string"
        },
        "type": {
          "description": "The stable key the front renders a translated heading from. Never null:\na clause whose kind is unknown is `Other`, which is a kind.",
          "default": "other",
          "type": "string",
          "enum": [
            "fx_conversion",
            "indexation",
            "service_charge_settlement",
            "other"
          ]
        },
        "text": {
          "description": "The clause verbatim, in the contract's own language. Never translated or paraphrased.",
          "type": "string"
        },
        "sourceReference": {
          "description": "Where in the document it says so — \"pkt G\", \"§ 4 ust. 2\".",
          "type": [
            "string",
            "null"
          ]
        },
        "source": {
          "description": "Read-only over the API, exactly as {@see ContractTranche::$source} is.",
          "default": "user",
          "type": "string",
          "enum": [
            "user",
            "extracted"
          ]
        }
      },
      "required": [
        "text"
      ]
    },
    "ContractEvent.jsonld-contract.read": {
      "type": "object",
      "description": "",
      "deprecated": false,
      "properties": {
        "@context": {
          "readOnly": true,
          "oneOf": [
            {
              "type": "string"
            },
            {
              "type": "object",
              "properties": {
                "@vocab": {
                  "type": "string"
                },
                "hydra": {
                  "type": "string",
                  "enum": [
                    "http://www.w3.org/ns/hydra/core#"
                  ]
                }
              },
              "required": [
                "@vocab",
                "hydra"
              ],
              "additionalProperties": true
            }
          ]
        },
        "@id": {
          "readOnly": true,
          "type": "string"
        },
        "@type": {
          "readOnly": true,
          "type": "string"
        },
        "id": {
          "readOnly": true,
          "type": "string"
        },
        "label": {
          "description": "The contract's own wording, e.g. \"wydanie Lokalu\".",
          "type": "string"
        },
        "description": {
          "type": [
            "string",
            "null"
          ]
        },
        "occurredOn": {
          "type": [
            "string",
            "null"
          ],
          "format": "date-time"
        },
        "plannedOn": {
          "description": "The TARGET date the contract states for this milestone (#6369, PR\n#6519 review) — \"najpóźniej 15.05.2026\", \"nie później niż 30.11.2026\" —\nas distinct from `occurredOn`, which means the milestone has ACTUALLY\nhappened and is set by a person, never by extraction.",
          "type": [
            "string",
            "null"
          ],
          "format": "date-time"
        },
        "kind": {
          "description": "Which tenancy-schedule milestone this is, if any (#6692): handover, rent\nstart or service-charge start. Null for every other milestone. The rent\nstart is the one billing reads; see {@see ContractEventKind}.",
          "type": [
            "string",
            "null"
          ],
          "enum": [
            "handover",
            "rent_start",
            "service_charge_start",
            null
          ]
        }
      }
    },
    "ContractMoneyLine.jsonld-contract.read": {
      "type": "object",
      "description": "",
      "deprecated": false,
      "properties": {
        "@context": {
          "readOnly": true,
          "oneOf": [
            {
              "type": "string"
            },
            {
              "type": "object",
              "properties": {
                "@vocab": {
                  "type": "string"
                },
                "hydra": {
                  "type": "string",
                  "enum": [
                    "http://www.w3.org/ns/hydra/core#"
                  ]
                }
              },
              "required": [
                "@vocab",
                "hydra"
              ],
              "additionalProperties": true
            }
          ]
        },
        "@id": {
          "readOnly": true,
          "type": "string"
        },
        "@type": {
          "readOnly": true,
          "type": "string"
        },
        "id": {
          "readOnly": true,
          "type": "string"
        },
        "kind": {
          "default": "other",
          "type": "string",
          "enum": [
            "rent",
            "service_charge",
            "marketing",
            "utilities",
            "other"
          ]
        },
        "subject": {
          "description": "What the line is charged for: parking rent is `kind` rent with `subject` parking. Null when the contract does not say. Present, and writable, only when the organisation has property management enabled.",
          "type": [
            "string",
            "null"
          ],
          "enum": [
            "office",
            "retail",
            "warehouse",
            "parking",
            "storage",
            "common_area",
            "other"
          ]
        },
        "rateAmount": {
          "pattern": "^(.*\\A-?\\d+\\z.*)$",
          "description": "The rate, not a period total, as a whole number of 1/10000 units: 12,50 EUR per m2 per month is \"125000\", NOT \"12.50\" and not \"1250\". Non-negative, except on an `other` line, where a negative rate is a discount the lease invoice bills as a negative row.",
          "type": "string"
        },
        "currency": {
          "description": "Per line, not per contract — the whole point. Non-nullable: a price\nwithout a currency is not a price, and the extractor is expected to fall\nback to the contract's currency rather than store an ambiguous figure.",
          "type": "string",
          "format": "iri-reference"
        },
        "unit": {
          "maxLength": 64,
          "description": "The contract's own wording, verbatim: \"m2/m-c\", \"EURO/m2/miesiac\".",
          "type": [
            "string",
            "null"
          ]
        },
        "period": {
          "type": [
            "string",
            "null"
          ],
          "enum": [
            "month",
            "quarter",
            "year",
            "one_off"
          ]
        },
        "quantity": {
          "pattern": "^(.*\\A\\d{1,10}(\\.\\d{1,4})?\\z.*)$",
          "description": "The INVOICED area in m2 (up to 4 decimals, non-negative), which is authoritative over the contract area for rent. Null means not measured yet.",
          "type": [
            "string",
            "null"
          ]
        },
        "quantityFromContractArea": {
          "description": "When true, this line's quantity for a period is the contract's area in force at that period, not the stored `quantity`. Opt-in per line; the stored quantity is kept as the as-signed figure.",
          "type": "boolean"
        },
        "isNet": {
          "description": "True for a net figure (\"+ VAT\", \"netto\"), false for gross, null when the\ncontract does not say. Nullable on purpose: defaulting to net would be an\nassumption about tax treatment that the document did not make.",
          "type": [
            "boolean",
            "null"
          ]
        },
        "source": {
          "default": "user",
          "type": "string",
          "enum": [
            "user",
            "extracted"
          ]
        },
        "note": {
          "maxLength": 255,
          "type": [
            "string",
            "null"
          ]
        },
        "isRequiredPart": {
          "description": "True when a matched ContractExtractionInstruction's requireAmountFrom\nnames this line as THE required part (#6369, PR #6519 review) — e.g.",
          "type": "boolean"
        },
        "effectiveQuantityNow": {
          "readOnly": true,
          "description": "The effective quantity TODAY, serialised so the front does not re-derive it.",
          "type": [
            "string",
            "null"
          ]
        }
      },
      "required": [
        "rateAmount",
        "currency"
      ]
    },
    "ContractTranche.jsonld-contract.read": {
      "type": "object",
      "description": "",
      "deprecated": false,
      "properties": {
        "@context": {
          "readOnly": true,
          "oneOf": [
            {
              "type": "string"
            },
            {
              "type": "object",
              "properties": {
                "@vocab": {
                  "type": "string"
                },
                "hydra": {
                  "type": "string",
                  "enum": [
                    "http://www.w3.org/ns/hydra/core#"
                  ]
                }
              },
              "required": [
                "@vocab",
                "hydra"
              ],
              "additionalProperties": true
            }
          ]
        },
        "@id": {
          "readOnly": true,
          "type": "string"
        },
        "@type": {
          "readOnly": true,
          "type": "string"
        },
        "id": {
          "readOnly": true,
          "type": "string"
        },
        "sharePercent": {
          "description": "Percentage of the contract total, 0-100, when the contract states a share\nrather than a figure. Mutually exclusive with $amount in practice, though\nthe database does not enforce it: a contract that states both is stating\na redundancy, not an error.",
          "type": [
            "string",
            "null"
          ]
        },
        "amount": {
          "pattern": "^(.*\\A\\d+\\z.*)$",
          "description": "Whole number of 1/10000 units - 11 000,00 is \"110000000\", NOT \"11000.00\".",
          "type": "string"
        },
        "triggerDate": {
          "type": [
            "string",
            "null"
          ],
          "format": "date-time"
        },
        "triggerEvent": {
          "anyOf": [
            {
              "$ref": "#/$defs/ContractEvent.jsonld-contract.read"
            },
            {
              "type": "null"
            }
          ]
        },
        "offsetDays": {
          "type": "integer"
        },
        "note": {
          "type": [
            "string",
            "null"
          ]
        },
        "triggerDateBasis": {
          "description": "Audit trail for `triggerDate`: one short sentence citing where it came\nfrom — \"Data Przekazania (najpóźniej 15.05.2026) + 7 dni\" — so a human\ncan check the model's arithmetic instead of trusting a bare date\n(#6369, PR #6522 review). Null whenever `triggerDate` is null.",
          "type": [
            "string",
            "null"
          ]
        },
        "source": {
          "default": "user",
          "type": "string",
          "enum": [
            "user",
            "extracted"
          ]
        },
        "position": {
          "type": "integer"
        }
      }
    },
    "Counterparty.jsonld-contract.read": {
      "type": "object",
      "description": "",
      "deprecated": false,
      "properties": {
        "@context": {
          "readOnly": true,
          "oneOf": [
            {
              "type": "string"
            },
            {
              "type": "object",
              "properties": {
                "@vocab": {
                  "type": "string"
                },
                "hydra": {
                  "type": "string",
                  "enum": [
                    "http://www.w3.org/ns/hydra/core#"
                  ]
                }
              },
              "required": [
                "@vocab",
                "hydra"
              ],
              "additionalProperties": true
            }
          ]
        },
        "@id": {
          "readOnly": true,
          "type": "string"
        },
        "@type": {
          "readOnly": true,
          "type": "string"
        },
        "id": {
          "readOnly": true,
          "type": "integer"
        },
        "displayName": {
          "readOnly": true,
          "type": "string"
        }
      }
    },
    "Invoice.jsonld-contract.read": {
      "type": "object",
      "description": "",
      "deprecated": false,
      "properties": {
        "@context": {
          "readOnly": true,
          "oneOf": [
            {
              "type": "string"
            },
            {
              "type": "object",
              "properties": {
                "@vocab": {
                  "type": "string"
                },
                "hydra": {
                  "type": "string",
                  "enum": [
                    "http://www.w3.org/ns/hydra/core#"
                  ]
                }
              },
              "required": [
                "@vocab",
                "hydra"
              ],
              "additionalProperties": true
            }
          ]
        },
        "@id": {
          "readOnly": true,
          "type": "string"
        },
        "@type": {
          "readOnly": true,
          "type": "string"
        },
        "id": {
          "readOnly": true,
          "type": "integer"
        },
        "name": {
          "maxLength": 32,
          "type": "string"
        },
        "amount": {
          "type": "number"
        },
        "saleDate": {
          "type": "string",
          "format": "date-time"
        },
        "status": {
          "readOnly": true,
          "type": "string"
        }
      },
      "required": [
        "name",
        "amount",
        "saleDate"
      ]
    },
    "PaymentScheduleLine.jsonld-contract.read": {
      "type": "object",
      "description": "",
      "deprecated": false,
      "properties": {
        "@context": {
          "readOnly": true,
          "oneOf": [
            {
              "type": "string"
            },
            {
              "type": "object",
              "properties": {
                "@vocab": {
                  "type": "string"
                },
                "hydra": {
                  "type": "string",
                  "enum": [
                    "http://www.w3.org/ns/hydra/core#"
                  ]
                }
              },
              "required": [
                "@vocab",
                "hydra"
              ],
              "additionalProperties": true
            }
          ]
        },
        "@id": {
          "readOnly": true,
          "type": "string"
        },
        "@type": {
          "readOnly": true,
          "type": "string"
        },
        "id": {
          "readOnly": true,
          "type": "string"
        },
        "date": {
          "type": "string",
          "format": "date-time"
        },
        "amount": {
          "pattern": "^(.*\\A-?\\d+\\z.*)$",
          "description": "Whole number of 1/10000 units — 5 000,00 is \"50000000\". NOT a decimal: \"5000.00\" is rejected.",
          "type": "string"
        },
        "currency": {
          "description": "Currency IRI of this line's amount, or null for the contract's currency.",
          "type": [
            "string",
            "null"
          ],
          "format": "iri-reference"
        },
        "note": {
          "maxLength": 255,
          "description": "Free text against the line — \"due after signature, not yet invoiced\".",
          "type": [
            "string",
            "null"
          ]
        },
        "source": {
          "default": "user",
          "type": "string",
          "enum": [
            "user",
            "extracted"
          ]
        },
        "invoice": {
          "description": "Inverse side of Invoice.paymentScheduleLine. Read-only — set when the\n\"Create invoice\" button issues an Invoice from this line; the unique\nindex on the owning side guarantees at most one Invoice per line.",
          "anyOf": [
            {
              "$ref": "#/$defs/Invoice.jsonld-contract.read"
            },
            {
              "type": "null"
            }
          ]
        }
      },
      "required": [
        "amount"
      ]
    },
    "TransactionAttachment.jsonld-contract.read": {
      "type": "object",
      "description": "",
      "deprecated": false,
      "properties": {
        "@context": {
          "readOnly": true,
          "oneOf": [
            {
              "type": "string"
            },
            {
              "type": "object",
              "properties": {
                "@vocab": {
                  "type": "string"
                },
                "hydra": {
                  "type": "string",
                  "enum": [
                    "http://www.w3.org/ns/hydra/core#"
                  ]
                }
              },
              "required": [
                "@vocab",
                "hydra"
              ],
              "additionalProperties": true
            }
          ]
        },
        "@id": {
          "readOnly": true,
          "type": "string"
        },
        "@type": {
          "readOnly": true,
          "type": "string"
        },
        "id": {
          "readOnly": true,
          "type": "integer"
        },
        "amount": {
          "type": [
            "integer",
            "null"
          ]
        },
        "name": {
          "description": "The DISPLAY name — the filename the user uploaded (#3381).",
          "type": "string"
        },
        "invoiceNumber": {
          "description": "The purchase document number, when one is known (#3381).",
          "type": [
            "string",
            "null"
          ]
        },
        "receivedAt": {
          "type": "string",
          "format": "date-time"
        },
        "status": {
          "readOnly": true,
          "type": "string"
        }
      }
    }
  }
}