{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/fis/main/json-schema/fis-push-deposit-v2-dto-schema.json",
  "title": "PushDepositV2Dto",
  "x-generated": "2026-10-12",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/fis-depositcontrollerv2-api-openapi.yml#/components/schemas/PushDepositV2Dto",
  "type": "object",
  "properties": {
    "connectionUuid": {
      "type": "string",
      "description": "Unique connection identifier."
    },
    "data": {
      "$ref": "#/$defs/PushDepositV2"
    }
  },
  "required": [
    "connectionUuid",
    "data"
  ],
  "$defs": {
    "AccountRefDto": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string"
        }
      },
      "required": [
        "id"
      ]
    },
    "BankAccountRefDto": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string"
        }
      },
      "required": [
        "id"
      ]
    },
    "CustomerRefDto": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string"
        }
      },
      "required": [
        "id"
      ]
    },
    "LinksV2": {
      "type": "object",
      "properties": {
        "type": {
          "type": "string",
          "enum": [
            "billPayment",
            "transfer",
            "journalEntry",
            "paymentOnAccount",
            "other"
          ]
        },
        "id": {
          "type": "string"
        }
      },
      "required": [
        "id"
      ]
    },
    "PushDepositEntityRefV2": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string"
        },
        "type": {
          "type": "string",
          "enum": [
            "customer",
            "employee",
            "unknown"
          ]
        }
      },
      "required": [
        "id"
      ]
    },
    "PushDepositLineV2": {
      "type": "object",
      "properties": {
        "description": {
          "type": "string",
          "maxLength": 4000
        },
        "quantity": {
          "type": "number",
          "format": "float"
        },
        "unitAmount": {
          "type": "number",
          "format": "float"
        },
        "id": {
          "type": "string"
        },
        "accountRef": {
          "$ref": "#/$defs/AccountRefDto"
        },
        "taxRateRef": {
          "$ref": "#/$defs/TaxRateRefDto"
        },
        "entityRef": {
          "$ref": "#/$defs/PushDepositEntityRefV2"
        },
        "links": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/LinksV2"
          }
        },
        "trackingCategoryRefs": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/TrackingCategoryRefPushDto"
          }
        }
      },
      "required": [
        "quantity",
        "unitAmount",
        "accountRef"
      ]
    },
    "PushDepositV2": {
      "type": "object",
      "properties": {
        "currencyRate": {
          "type": "number"
        },
        "memo": {
          "type": "string",
          "maxLength": 4000
        },
        "currency": {
          "type": "string"
        },
        "customerRef": {
          "$ref": "#/$defs/CustomerRefDto"
        },
        "postedDate": {
          "type": "string",
          "format": "date"
        },
        "bankAccountRef": {
          "$ref": "#/$defs/BankAccountRefDto"
        },
        "lines": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/PushDepositLineV2"
          }
        },
        "passThrough": {
          "type": "object",
          "additionalProperties": true
        }
      },
      "required": [
        "bankAccountRef",
        "lines"
      ]
    },
    "TaxRateRefDto": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string"
        }
      },
      "required": [
        "id"
      ]
    },
    "TrackingCategoryRefPushDto": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string"
        },
        "type": {
          "type": "string",
          "enum": [
            "class",
            "department",
            "location",
            "unknown"
          ]
        }
      },
      "required": [
        "id"
      ]
    }
  }
}