{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/fis/main/json-schema/fis-push-attachment-v2-dto-schema.json",
  "title": "PushAttachmentV2Dto",
  "x-generated": "2026-10-12",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/fis-attachmentcontrollerv2-api-openapi.yml#/components/schemas/PushAttachmentV2Dto",
  "type": "object",
  "properties": {
    "connectionUuid": {
      "type": "string",
      "description": "Unique connection identifier."
    },
    "file": {
      "type": "string",
      "format": "binary"
    },
    "data": {
      "$ref": "#/$defs/PushAttachmentV2"
    }
  },
  "required": [
    "connectionUuid",
    "file"
  ],
  "$defs": {
    "PushAttachmentLink": {
      "type": "object",
      "properties": {
        "type": {
          "type": "string",
          "enum": [
            "bill",
            "invoice",
            "customer",
            "vendor",
            "deposit",
            "journalEntry",
            "billPayment",
            "invoicePayment",
            "expense",
            "inventory",
            "purchaseOrder",
            "invoiceCreditNote",
            "billCreditNote",
            "bankTransaction",
            "bankTransfer",
            "account"
          ]
        },
        "id": {
          "type": "string"
        }
      },
      "required": [
        "type",
        "id"
      ]
    },
    "PushAttachmentV2": {
      "type": "object",
      "properties": {
        "passThrough": {
          "type": "object",
          "additionalProperties": true
        },
        "links": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/PushAttachmentLink"
          }
        }
      }
    }
  }
}