{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/asaas/json-schema/asaas-payment-document-update-request-dto-schema.json",
  "title": "PaymentDocumentUpdateRequestDTO",
  "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/PaymentDocumentUpdateRequestDTO",
  "required": [
    "availableAfterPayment",
    "type"
  ],
  "type": "object",
  "properties": {
    "availableAfterPayment": {
      "type": "boolean",
      "description": "true para disponibilizar o documento apenas após o pagamento",
      "deprecated": false
    },
    "type": {
      "$ref": "#/$defs/PaymentDocumentUpdateRequestPaymentDocumentType"
    }
  },
  "$defs": {
    "PaymentDocumentUpdateRequestPaymentDocumentType": {
      "type": "string",
      "description": "Tipo de documento",
      "deprecated": false,
      "enum": [
        "INVOICE",
        "CONTRACT",
        "MEDIA",
        "DOCUMENT",
        "SPREADSHEET",
        "PROGRAM",
        "OTHER"
      ]
    }
  }
}