{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/asaas/json-schema/asaas-payment-document-get-response-dto-schema.json",
  "title": "PaymentDocumentGetResponseDTO",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/asaas-documentos-de-cobran-as-api-openapi.yml#/components/schemas/PaymentDocumentGetResponseDTO",
  "type": "object",
  "properties": {
    "object": {
      "type": "string",
      "description": "Tipo do objeto",
      "deprecated": false
    },
    "id": {
      "type": "string",
      "description": "Identificador único do documento",
      "deprecated": false
    },
    "name": {
      "type": "string",
      "description": "Nome do documento",
      "deprecated": false
    },
    "type": {
      "$ref": "#/$defs/PaymentDocumentGetResponsePaymentDocumentType"
    },
    "availableAfterPayment": {
      "type": "boolean",
      "description": "Disponível somente após o pagamento",
      "deprecated": false
    },
    "file": {
      "$ref": "#/$defs/PaymentDocumentFileResponseDTO"
    },
    "deleted": {
      "type": "boolean",
      "description": "Indica se o arquivo foi removido",
      "deprecated": false
    }
  },
  "$defs": {
    "PaymentDocumentFileResponseDTO": {
      "type": "object",
      "properties": {
        "publicId": {
          "type": "string",
          "description": "Identificador único do documento",
          "deprecated": false
        },
        "originalName": {
          "type": "string",
          "description": "Nome original do documento",
          "deprecated": false
        },
        "size": {
          "type": "integer",
          "description": "Tamanho do arquivo",
          "format": "int32",
          "deprecated": false
        },
        "extension": {
          "type": "string",
          "description": "Extensão do arquivo",
          "deprecated": false
        },
        "previewUrl": {
          "type": "string",
          "description": "Link para download do preview do arquivo",
          "deprecated": false
        },
        "downloadUrl": {
          "type": "string",
          "description": "Link para download do arquivo",
          "deprecated": false
        }
      },
      "description": "Objeto do Arquivo",
      "deprecated": false
    },
    "PaymentDocumentGetResponsePaymentDocumentType": {
      "type": "string",
      "description": "Tipo de documento",
      "deprecated": false,
      "enum": [
        "INVOICE",
        "CONTRACT",
        "MEDIA",
        "DOCUMENT",
        "SPREADSHEET",
        "PROGRAM",
        "OTHER"
      ]
    }
  }
}