{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/flowtly-fr/json-schema/flowtly-fr-transaction-attachment-jsonld-transaction-attachment-read-storage-read-schema.json",
  "title": "TransactionAttachment.jsonld-transaction_attachment.read_storage.read",
  "x-generated": "2026-11-27",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/flowtly-fr-openapi.yml#/components/schemas/TransactionAttachment.jsonld-transaction_attachment.read_storage.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": "integer"
    },
    "counterparty": {
      "type": [
        "string",
        "null"
      ],
      "format": "iri-reference"
    },
    "contract": {
      "description": "The cost-side contract (Contract.direction='out') this received\ninvoice settles against. Nullable — pre-existing invoices have no\nlink, and unattributed cost invoices stay unlinked. SET NULL on\ncontract delete so we don't cascade-delete invoice history with\nthe contract.",
      "type": [
        "string",
        "null"
      ],
      "format": "iri-reference"
    },
    "currency": {
      "type": [
        "string",
        "null"
      ],
      "format": "iri-reference"
    },
    "relatedMonth": {
      "type": [
        "string",
        "null"
      ],
      "format": "date-time"
    },
    "relatedPeriodStart": {
      "description": "Start of the accrual period this invoice covers. Additive — does not\nreplace `relatedMonth`.",
      "type": [
        "string",
        "null"
      ],
      "format": "date-time"
    },
    "relatedPeriodEnd": {
      "description": "End of the accrual period this invoice covers. See relatedPeriodStart.",
      "type": [
        "string",
        "null"
      ],
      "format": "date-time"
    },
    "externalId": {
      "type": "string"
    },
    "employee": {
      "anyOf": [
        {
          "$ref": "#/$defs/Person.jsonld-transaction_attachment.read_storage.read"
        },
        {
          "type": "null"
        }
      ]
    },
    "amount": {
      "type": [
        "integer",
        "null"
      ]
    },
    "amountNet": {
      "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"
      ]
    },
    "description": {
      "type": "string"
    },
    "note": {
      "maxLength": 255,
      "type": [
        "string",
        "null"
      ]
    },
    "receivedAt": {
      "type": "string",
      "format": "date-time"
    },
    "approvalsCount": {
      "description": "Returns the count of valid (non-stale) approve decisions on the\ncurrent approval content hash. Falls back to the legacy denormalized\ncolumn when no approval workflow is active (approvalContentHash is\nnull) — preserves backward compatibility for old data and the\nTransactionAttachmentStatusFilter DQL queries.",
      "type": "integer"
    },
    "requiresApproval": {
      "description": "--- Invoice approval workflow fields (Wave 3 Gap #6) ---\nAdditive; null/false defaults preserve pre-workflow behavior.",
      "type": "boolean"
    },
    "approvalStatus": {
      "type": [
        "string",
        "null"
      ],
      "enum": [
        "pending",
        "in_review",
        "approved",
        "rejected",
        "withdrawn",
        null
      ]
    },
    "approvalCurrentLevel": {
      "description": "Which approval level this invoice is currently waiting on, 1-based\n(#5929). Advances only when the level below it is satisfied, so it is\nthe answer to Bożena's question — is this with the cost owner, or with\nWojtek?",
      "default": 1,
      "type": "integer"
    },
    "approvalLevelCount": {
      "description": "How many levels THIS invoice's approval has, snapshotted from policy at\nsubmit (#5929).",
      "default": 1,
      "type": "integer"
    },
    "approvalAssignments": {
      "readOnly": true,
      "type": "array",
      "items": {
        "$ref": "#/$defs/InvoiceApprovalAssignment.jsonld-transaction_attachment.read_storage.read"
      }
    },
    "approvalDecisions": {
      "readOnly": true,
      "type": "array",
      "items": {
        "$ref": "#/$defs/InvoiceApprovalDecision.jsonld-transaction_attachment.read_storage.read"
      }
    },
    "suggestionsCount": {
      "type": "integer"
    },
    "supportingDocumentCount": {
      "type": "integer"
    },
    "sourceType": {
      "default": "upload",
      "type": "string"
    },
    "type": {
      "enum": [
        "invoice",
        "supporting_document"
      ],
      "default": "invoice",
      "type": "string"
    },
    "paidAt": {
      "type": [
        "string",
        "null"
      ],
      "format": "date-time"
    },
    "noDocumentExpected": {
      "description": "True when this cost was deliberately entered with no document — a cash\nspend with no invoice to upload (#3442). Set only via\nPOST /transaction-attachments/create-without-document, at create time,\nand never changes after that: there is no\n`transaction_attachment:create`/`:update` group on it, only `:read`, so\nthe only way to reach `true` is through that dedicated processor —\nmirroring how `settledWithoutTransactionAt` (#3015) is reachable only\nthrough its own action.",
      "type": "boolean"
    },
    "dueDate": {
      "type": [
        "string",
        "null"
      ],
      "format": "date-time"
    },
    "plannedPaymentDate": {
      "type": [
        "string",
        "null"
      ],
      "format": "date-time"
    },
    "ksefAcquisitionTimestamp": {
      "type": [
        "string",
        "null"
      ],
      "format": "date-time"
    },
    "ksefHistorySync": {
      "description": "The first delivery's historySync (#10540), written once; the column comment says what it means.",
      "type": [
        "boolean",
        "null"
      ]
    },
    "transaction": {
      "type": [
        "string",
        "null"
      ],
      "format": "iri-reference"
    },
    "invoiceLines": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/TransactionAttachmentInvoiceLine.jsonld-transaction_attachment.read_storage.read"
      }
    },
    "projectAllocations": {
      "description": "THE ORDER IS DECLARED HERE, and it is load-bearing rather than tidy (#4205).",
      "type": "array",
      "items": {
        "$ref": "#/$defs/ProjectTransactionAttachment.jsonld-transaction_attachment.read_storage.read"
      }
    },
    "employeeAllocations": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/EmployeeTransactionAttachment.jsonld-transaction_attachment.read_storage.read"
      }
    },
    "createdAt": {
      "type": "string",
      "format": "date-time"
    },
    "settledWithoutTransactionAt": {
      "description": "\"Closed deliberately, with no payment\" — set only via\nPOST /transaction-attachments/{id}/settle-without-transaction (#3015).",
      "type": [
        "string",
        "null"
      ],
      "format": "date-time"
    },
    "settledWithoutTransactionBy": {
      "anyOf": [
        {
          "$ref": "#/$defs/Person.jsonld-transaction_attachment.read_storage.read"
        },
        {
          "type": "null"
        }
      ]
    },
    "settledWithoutTransactionReason": {
      "type": [
        "string",
        "null"
      ]
    },
    "accountantDocumentNumber": {
      "description": "Accountant's reconciliation: the journal or register reference the accountant booked this document under, e.g. 00023/FS/26.",
      "type": [
        "string",
        "null"
      ]
    },
    "bookedAt": {
      "description": "Accountant's reconciliation: the posting date in the accountant's books.",
      "type": [
        "string",
        "null"
      ],
      "format": "date-time"
    },
    "vatPeriod": {
      "description": "Accountant's reconciliation: the month whose JPK_V7M carries this document, YYYY-MM. Null when the document is outside VAT or not booked yet. Cannot be after the current month. The closed VAT periods run from the earliest to the latest month any document carries.",
      "type": [
        "string",
        "null"
      ]
    },
    "citPeriod": {
      "description": "Accountant's reconciliation: the month (YYYY-MM) or quarter (YYYY-Qn) the revenue or cost was recognised in for CIT.",
      "type": [
        "string",
        "null"
      ]
    },
    "bookedNetPln": {
      "description": "Accountant's reconciliation: the net amount as booked, in PLN, as a decimal string such as \"1234.56\" (not a JSON number).",
      "type": [
        "string",
        "null"
      ]
    },
    "bookedVatPln": {
      "description": "Accountant's reconciliation: the VAT amount as booked, in PLN, as a decimal string such as \"283.95\" (not a JSON number).",
      "type": [
        "string",
        "null"
      ]
    },
    "bookedGrossPln": {
      "description": "Accountant's reconciliation: the gross amount as booked, in PLN, as a decimal string such as \"1518.51\" (not a JSON number).",
      "type": [
        "string",
        "null"
      ]
    },
    "reconciliationStatus": {
      "description": "Accountant's reconciliation: unbooked, booked, mismatch or excluded. A document nobody reconciled reads unbooked. An unbooked document dated in a closed VAT period is reported as the problem_unreconciled entry of detectedProblems.",
      "type": [
        "string",
        "null"
      ]
    },
    "reconciledAt": {
      "description": "Accountant's reconciliation: when the document was last reconciled against the accountant's books.",
      "type": [
        "string",
        "null"
      ],
      "format": "date-time"
    },
    "reconciliationNote": {
      "description": "Accountant's reconciliation: a free-text note, e.g. what a mismatch is.",
      "type": [
        "string",
        "null"
      ]
    },
    "correctsMonth": {
      "description": "First day of the corrected month; null on every document that is not a correction.",
      "type": [
        "string",
        "null"
      ],
      "format": "date-time"
    },
    "settledBy": {
      "description": "On an advance (faktura zaliczkowa): the final invoice (faktura rozliczeniowa) that settles\nit (#2903, owner rulings 2026-09-10 and 2026-10-28). Set by the KSeF import from the final's\n`FakturaZaliczkowa/NrKSeFFaZaliczkowej`, or through the API. SET NULL when the final is\ndeleted, so the advance counts on its own again.",
      "type": [
        "string",
        "null"
      ],
      "format": "iri-reference"
    },
    "statedAmount": {
      "description": "A FINAL'S STORED TOTAL IS THE REMAINDER AFTER ITS ADVANCES, BY CONSTRUCTION (#2903).",
      "type": [
        "integer",
        "null"
      ]
    },
    "statedAmountNet": {
      "description": "The net a full-value final states, minor units. See $statedAmount.",
      "type": [
        "integer",
        "null"
      ]
    },
    "servicePeriodFrom": {
      "readOnly": true,
      "description": "Start of the service period the document itself states (KSeF OkresFa/P_6_Od, #10261). Filled by\nthe incoming-invoice import only and read-only in the API. It is NOT the accrual period:\nrelatedPeriodStart/End stay the user-editable values that drive budget months (#8167).",
      "type": [
        "string",
        "null"
      ],
      "format": "date-time"
    },
    "servicePeriodTo": {
      "readOnly": true,
      "description": "End of the service period the document states (OkresFa/P_6_Do). See servicePeriodFrom.",
      "type": [
        "string",
        "null"
      ],
      "format": "date-time"
    },
    "scheduledBankWireDate": {
      "readOnly": true,
      "type": [
        "string",
        "null"
      ],
      "format": "date-time"
    },
    "scheduledBankWireSetAt": {
      "readOnly": true,
      "type": [
        "string",
        "null"
      ],
      "format": "date-time"
    },
    "scheduledBankWireSetBy": {
      "readOnly": true,
      "description": "SET NULL: deleting the employee neither deletes the document nor clears the marker.",
      "anyOf": [
        {
          "$ref": "#/$defs/Person.jsonld-transaction_attachment.read_storage.read"
        },
        {
          "type": "null"
        }
      ]
    },
    "proForma": {
      "description": "The API's setter: a person sets or clears the mark. Only a real change is recorded, so a\nclient sending the whole document back with the mark unchanged records nothing.",
      "type": "boolean"
    },
    "replacedProFormaNumber": {
      "description": "The number of the pro-forma(s) this invoice replaced (#11055, owner ruling 2026-11-19): the\npro-forma itself is deleted by the replacement, so its number is kept here. Several replaced\npro-formas are listed comma-separated. Written only by `replace-by-invoice`.",
      "type": [
        "string",
        "null"
      ]
    },
    "proFormaSource": {
      "readOnly": true,
      "description": "Who set the mark last (#11121, #11122): `person` through the API, `reading` when the reading of\nthe document proposed it from its title. Kept when the mark is cleared, so a re-read never\nproposes it again over a person's decision. Null until the mark was ever set.",
      "type": [
        "string",
        "null"
      ]
    },
    "replacedBy": {
      "description": "On a pro-forma: the invoice that replaces it. READ-ONLY here: it is written only by\n`POST /transaction-attachments/{id}/link-replacement`, which checks the user may change both\ndocuments and applies the replace gate. SET NULL when the invoice is deleted, so the\npro-forma counts on its own again.",
      "type": [
        "string",
        "null"
      ],
      "format": "iri-reference"
    },
    "counterpartyName": {
      "readOnly": true,
      "type": [
        "string",
        "null"
      ]
    },
    "counterpartyLogoUrl": {
      "readOnly": true,
      "type": [
        "string",
        "null"
      ]
    },
    "recipientBankAccount": {
      "readOnly": true,
      "description": "Bank account the wire should be sent to, normalized for SEPA/PL\nmatching (uppercased, spaces stripped, validated). Null when no usable\naccount is on file — the FE flags those rows and excludes them from the\nexport.",
      "type": [
        "string",
        "null"
      ]
    },
    "approvalStage": {
      "readOnly": true,
      "description": "The approval stage, as one string a list column can render (#5929).",
      "type": "string"
    },
    "linkedTransactions": {
      "readOnly": true,
      "description": "All bank transactions linked to this document: the primary `transaction`\n(if any) followed by the additional ones. Serialized as `linkedTransactions`\nfor the panel's related-transactions list.",
      "type": "array",
      "items": {
        "type": "string",
        "format": "iri-reference"
      }
    },
    "status": {
      "readOnly": true,
      "type": "string"
    },
    "settledWithoutTransaction": {
      "readOnly": true,
      "description": "True when this document was deliberately closed with no payment (#3015).",
      "type": "boolean"
    },
    "paymentStatus": {
      "type": [
        "string",
        "null"
      ],
      "enum": [
        "unpaid",
        "overdue",
        "partial",
        "paid",
        "settled",
        null
      ],
      "readOnly": true,
      "description": "Computed payment status. overdue: unpaid, or paid short, and past the due day (positive gross). partial: paid short beyond the tolerance, not yet past due. settled: closed with no payment. null: a document-less cost, which carries no payment."
    },
    "viewedByMe": {
      "type": "boolean",
      "readOnly": true,
      "description": "Whether the signed-in employee has seen this document (#10102). Always true for a caller without an employee identity. Filter the list with unseenByMe."
    }
  },
  "required": [
    "employee",
    "type"
  ],
  "$defs": {
    "EmployeeTransactionAttachment.jsonld-transaction_attachment.read_storage.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"
        },
        "employee": {
          "$ref": "#/$defs/Person.jsonld-transaction_attachment.read_storage.read"
        },
        "netAmount": {
          "type": [
            "integer",
            "null"
          ]
        }
      },
      "required": [
        "employee"
      ]
    },
    "InvoiceApprovalAssignment.jsonld-transaction_attachment.read_storage.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"
        },
        "approver": {
          "$ref": "#/$defs/Person.jsonld-transaction_attachment.read_storage.read"
        },
        "level": {
          "description": "Which approval level this person sits at, 1-based (#5929).",
          "default": 1,
          "type": "integer"
        },
        "createdAt": {
          "type": "string",
          "format": "date-time"
        },
        "state": {
          "readOnly": true,
          "description": "Where this person stands on the invoice, so a client never re-derives it\nfrom decisions, hashes and levels (#7046). See\n{@see InvoiceApprovalAssignmentState}.",
          "type": "string"
        }
      }
    },
    "InvoiceApprovalDecision.jsonld-transaction_attachment.read_storage.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"
        },
        "decidedBy": {
          "$ref": "#/$defs/Person.jsonld-transaction_attachment.read_storage.read"
        },
        "status": {
          "type": "string",
          "enum": [
            "approved",
            "rejected"
          ]
        },
        "notes": {
          "type": [
            "string",
            "null"
          ]
        },
        "level": {
          "description": "The level this decision was cast at, 1-based (#5929).",
          "default": 1,
          "type": "integer"
        },
        "createdAt": {
          "type": "string",
          "format": "date-time"
        }
      }
    },
    "Person.jsonld-transaction_attachment.read_storage.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"
        },
        "firstname": {
          "minLength": 2,
          "maxLength": 32,
          "type": [
            "string",
            "null"
          ]
        },
        "lastname": {
          "minLength": 2,
          "maxLength": 64,
          "type": [
            "string",
            "null"
          ]
        }
      },
      "required": [
        "firstname",
        "lastname"
      ]
    },
    "ProjectTransactionAttachment.jsonld-transaction_attachment.read_storage.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"
        },
        "project": {
          "type": "string",
          "format": "iri-reference"
        },
        "netAmount": {
          "type": [
            "integer",
            "null"
          ]
        },
        "excluded": {
          "description": "A client the operator DELIBERATELY struck from this split (#3315).",
          "type": [
            "boolean",
            "null"
          ]
        },
        "amountFixed": {
          "description": "The amount of this row was typed by hand and the area split must keep it (#10512). Set by the\nPATCH writer when it changes the amount of an attachment-level row; read by the split by area,\nwhich keeps a flagged row and splits only what the flagged rows leave of the net. An explicit\nreset of the split writes fresh rows, so it clears the flag. NULL and false both mean \"not\ntyped\": the column is nullable so the migration is additive and historic rows stay unflagged.",
          "type": [
            "boolean",
            "null"
          ]
        },
        "areaSplitWorking": {
          "description": "The working of a cost split by area, as the fill worked it out (#9920): `ownValue` and\n`totalValue` (the percentage is their quotient), the `effectiveDate` the figures were read on,\ntheir `source`, and `counted`, the number of projects in the split. Kept so the panel can\nshow it after a reload; it is the figures the split used, never today's. NULL on a row not\nwritten by the area fill, and dropped when the amount is edited by hand.",
          "type": [
            "array",
            "null"
          ],
          "items": {
            "type": "string"
          }
        },
        "quantity": {
          "description": "How much of a stock line this row draws (#3318), a decimal string like the line's own\nquantity. Set only on a draw: a line-scoped row of a line bought to stock. NULL on every\nother row, which is every existing one.",
          "type": [
            "string",
            "null"
          ]
        },
        "relatedMonth": {
          "description": "The date the material was drawn for this project (#3318). A draw is the tenant's cost\nfrom this date, so the related-costs view and the invoice draft place it here rather\nthan in the purchase invoice's month. NULL on every row that is not a draw.",
          "type": [
            "string",
            "null"
          ],
          "format": "date-time"
        }
      },
      "required": [
        "project"
      ]
    },
    "TransactionAttachmentInvoiceLine.jsonld-transaction_attachment.read_storage.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"
        },
        "position": {
          "type": "integer"
        },
        "description": {
          "type": [
            "string",
            "null"
          ]
        },
        "quantity": {
          "type": [
            "string",
            "null"
          ]
        },
        "unitPrice": {
          "type": [
            "string",
            "null"
          ]
        },
        "amount": {
          "type": [
            "string",
            "null"
          ]
        },
        "taxRate": {
          "type": [
            "string",
            "null"
          ]
        },
        "currency": {
          "type": [
            "string",
            "null"
          ]
        },
        "project": {
          "type": [
            "string",
            "null"
          ],
          "format": "iri-reference"
        },
        "toStock": {
          "description": "Bought to stock, not for a tenant yet (#3318, owner ruling 2026-09-24).",
          "type": [
            "boolean",
            "null"
          ]
        },
        "stockDrawnQuantity": {
          "readOnly": true,
          "description": "How much has been drawn, as a decimal string; null on a line not bought to stock.",
          "type": [
            "string",
            "null"
          ]
        },
        "stockRemainingQuantity": {
          "readOnly": true,
          "description": "What is still in stock, as a decimal string; null on a line not bought to stock.",
          "type": [
            "string",
            "null"
          ]
        },
        "stockRemainingNetAmount": {
          "readOnly": true,
          "description": "The net still in stock, in MINOR units (like an allocation's `netAmount`); null on a\nline not bought to stock.",
          "type": [
            "integer",
            "null"
          ]
        }
      }
    }
  }
}