{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/carboncuretechnologies/json-schema/carboncuretechnologies-credit-sale-row-schema.json",
  "title": "CreditSaleRow",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/carboncuretechnologies-krill-api-openapi.yml#/components/schemas/CreditSaleRow",
  "type": "object",
  "properties": {
    "saleId": {
      "type": "integer",
      "format": "int32"
    },
    "buyer": {
      "type": [
        "string",
        "null"
      ]
    },
    "dateOfSale": {
      "type": [
        "string",
        "null"
      ],
      "format": "date"
    },
    "corporationId": {
      "type": "integer",
      "format": "int32"
    },
    "corporationName": {
      "type": [
        "string",
        "null"
      ]
    },
    "divisionId": {
      "type": [
        "integer",
        "null"
      ],
      "format": "int32"
    },
    "divisionName": {
      "type": [
        "string",
        "null"
      ]
    },
    "numberOfCredits": {
      "type": "integer",
      "format": "int32"
    },
    "pricePerCreditUsd": {
      "type": [
        "number",
        "null"
      ],
      "format": "double"
    },
    "totalSaleValueUsd": {
      "type": [
        "number",
        "null"
      ],
      "format": "double"
    },
    "netValueUsd": {
      "type": [
        "number",
        "null"
      ],
      "format": "double"
    },
    "applicableCostPoolUsd": {
      "type": [
        "number",
        "null"
      ],
      "format": "double"
    },
    "applicableRevenueSharePercent": {
      "type": [
        "number",
        "null"
      ],
      "format": "double"
    },
    "prepaymentsUsd": {
      "type": [
        "number",
        "null"
      ],
      "format": "double"
    },
    "paymentDate": {
      "type": [
        "string",
        "null"
      ],
      "format": "date"
    }
  },
  "additionalProperties": false
}