swagger: '2.0'
info:
  title: "Tributario"
  version: "20250814200745"
host: localhost:8080
schemes:
  - http
basePath: /TributarioJavaEnvironment/rest
produces:
  - application/json
paths:
  /api_extrato_dam:
    post:
      tags:
        - api_extrato_dam
      operationId: "api_extrato_dam"
      summary: "api_iptu_dam"
      parameters:
        - name: "api_extrato_damInput"
          in: "body"
          required: false
          schema:
            $ref: "#/definitions/api_extrato_damInput"


      responses:
        200:
          description: "Successful operation"
          schema:
            $ref: "#/definitions/api_extrato_damOutput"
        404:
          description: "Not found"
  /api_inserir_certidao:
    post:
      tags:
        - api_inserir_certidao
      operationId: "api_inserir_certidao"
      summary: "api_listar_certidao"
      parameters:
        - name: "api_inserir_certidaoInput"
          in: "body"
          required: false
          schema:
            $ref: "#/definitions/api_inserir_certidaoInput"


      responses:
        200:
          description: "Successful operation"
          schema:
            $ref: "#/definitions/api_inserir_certidaoOutput"
        404:
          description: "Not found"
  /api_iptu_dam:
    post:
      tags:
        - api_iptu_dam
      operationId: "api_iptu_dam"
      summary: "api_iptu_dam"
      parameters:
        - name: "api_iptu_damInput"
          in: "body"
          required: false
          schema:
            $ref: "#/definitions/api_iptu_damInput"


      responses:
        200:
          description: "Successful operation"
          schema:
            $ref: "#/definitions/api_iptu_damOutput"
        404:
          description: "Not found"
  /api_iptu_lancamento:
    post:
      tags:
        - api_iptu_lancamento
      operationId: "api_iptu_lancamento"
      summary: "api_iptu_lancamento"
      parameters:
        - name: "api_iptu_lancamentoInput"
          in: "body"
          required: false
          schema:
            $ref: "#/definitions/api_iptu_lancamentoInput"


      responses:
        200:
          description: "Successful operation"
          schema:
            $ref: "#/definitions/api_iptu_lancamentoOutput"
        404:
          description: "Not found"
  /api_listar_certidao:
    post:
      tags:
        - api_listar_certidao
      operationId: "api_listar_certidao"
      summary: "api_listar_certidao"
      parameters:
        - name: "api_listar_certidaoInput"
          in: "body"
          required: false
          schema:
            $ref: "#/definitions/api_listar_certidaoInput"


      responses:
        200:
          description: "Successful operation"
          schema:
            $ref: "#/definitions/api_listar_certidaoOutput"
        404:
          description: "Not found"
  /api_listar_nfse:
    post:
      tags:
        - api_listar_nfse
      operationId: "api_listar_nfse"
      summary: "api_listar_certidao"
      parameters:
        - name: "api_listar_nfseInput"
          in: "body"
          required: false
          schema:
            $ref: "#/definitions/api_listar_nfseInput"


      responses:
        200:
          description: "Successful operation"
          schema:
            $ref: "#/definitions/api_listar_nfseOutput"
        404:
          description: "Not found"
  /api_tomador:
    post:
      tags:
        - api_tomador
      operationId: "api_tomador"
      summary: "Retornar Tomador"
      parameters:
        - name: "api_tomadorInput"
          in: "body"
          required: false
          schema:
            $ref: "#/definitions/api_tomadorInput"


      responses:
        200:
          description: "Successful operation"
          schema:
            $ref: "#/definitions/api_tomadorOutput"
        404:
          description: "Not found"
  /gxobject:
    post:
      tags:
        - gxobject
      operationId: "gxobject"
      summary: "GeneXus Upload Services"

      responses:
        200:
          description: "Successful operation"
        404:
          description: "Not found"
definitions:
  api_extrato_damOutput:
    properties:
      erro:
        type: "boolean"
      mensagens:
        description: Messages
        type: array
        items:
          $ref: "#/definitions/Messages_Message"
      dam:
        description: sdt_api_extrato_dam_retorno
        $ref: "#/definitions/sdt_api_extrato_dam_retorno"


  api_inserir_certidaoOutput:
    properties:
      erro:
        type: "boolean"
      mensagens:
        description: Messages
        type: array
        items:
          $ref: "#/definitions/Messages_Message"
      certidoes:
        description: sdt_api_certidao_retorno
        $ref: "#/definitions/sdt_api_certidao_retorno"


  api_iptu_damOutput:
    properties:
      erro:
        type: "boolean"
      mensagens:
        description: Messages
        type: array
        items:
          $ref: "#/definitions/Messages_Message"
      dam:
        description: sdt_api_iptu_dam_retorno
        $ref: "#/definitions/sdt_api_iptu_dam_retorno"


  api_iptu_lancamentoOutput:
    properties:
      erro:
        type: "boolean"
      mensagens:
        description: Messages
        type: array
        items:
          $ref: "#/definitions/Messages_Message"
      lancamentos:
        description: sdt_api_iptu_lancamento_retorno
        $ref: "#/definitions/sdt_api_iptu_lancamento_retorno"


  api_listar_certidaoOutput:
    properties:
      erro:
        type: "boolean"
      mensagens:
        description: Messages
        type: array
        items:
          $ref: "#/definitions/Messages_Message"
      certidoes:
        description: sdt_api_certidao_retorno
        $ref: "#/definitions/sdt_api_certidao_retorno"


  api_listar_nfseOutput:
    properties:
      erro:
        type: "boolean"
      mensagens:
        description: Messages
        type: array
        items:
          $ref: "#/definitions/Messages_Message"
      notas:
        description: sdt_api_nfse_retorno
        $ref: "#/definitions/sdt_api_nfse_retorno"


  api_tomadorOutput:
    properties:
      erro:
        type: "boolean"
      mensagens:
        description: Messages
        type: array
        items:
          $ref: "#/definitions/Messages_Message"
      tomador:
        description: sdt_dados_tomador
        $ref: "#/definitions/sdt_dados_tomador"



  api_extrato_damInput:
    properties:
      dam_id:
        type: "integer"
        format: "int64"
      page_number:
        type: "integer"
        format: "int64"
      page_amount:
        type: "integer"
        format: "int64"
      dam_tipo:
        type: "integer"
        format: "int32"
      tributo_classificacao:
        type: "integer"
        format: "int32"


  api_inserir_certidaoInput:
    properties:
      certidao_finalidade:
        type: "integer"
        format: "int32"
      certidao_tipo:
        type: "integer"
        format: "int32"
      imovel_matricula:
        type: "integer"
        format: "int64"


  api_iptu_damInput:
    properties:
      lancamento_id:
        type: "integer"
        format: "int64"
      dam_id:
        type: "integer"
        format: "int64"


  api_iptu_lancamentoInput:
    properties:
      page_number:
        type: "integer"
        format: "int64"
      page_amount:
        type: "integer"
        format: "int64"
      imovel_matricula:
        type: "integer"
        format: "int64"


  api_listar_certidaoInput:
    properties:
      page_number:
        type: "integer"
        format: "int64"
      page_amount:
        type: "integer"
        format: "int64"
      imovel_matricula:
        type: "integer"
        format: "int64"
      certidao_id:
        type: "integer"
        format: "int64"


  api_listar_nfseInput:
    properties:
      page_number:
        type: "integer"
        format: "int64"
      page_amount:
        type: "integer"
        format: "int64"
      competencia_mes:
        type: "integer"
        format: "int32"
      competencia_ano:
        type: "integer"
        format: "int32"
      nfse_numero_ini:
        type: "integer"
        format: "int64"
      nfse_numero_fim:
        type: "integer"
        format: "int64"
      nfse_prestador_cpf_cnpj:
        type: "string"
      nfse_tomador_cpf_cnpj:
        type: "string"
      nfse_id:
        type: "integer"
        format: "int64"


  api_tomadorInput:
    properties:
      pessoa_cpf_cnpj:
        type: "string"



  Messages_Message:
    properties:
      Id:
        description: Id
        type: "string"

      Type:
        description: Type
        type: "integer"
        format: "int32"

      Description:
        description: Description
        type: "string"


  sdt_api_certidao:
    properties:
      certidao_id:
        description: Id da Certidao
        type: "integer"
        format: "int64"

      certidao_ano:
        description: Ano da Certidao
        type: "integer"
        format: "int32"

      certidao_numero:
        description: Numero da Certidao
        type: "integer"
        format: "int64"

      certidao_codido_autenticidade:
        description: Código de Autenticidade
        type: "string"

      certidao_data_emissao:
        description: Data da Emissao da Certidao
        type: "string"
        format: "date"

      certidao_data_validade:
        description: Data de Validade da Certidao
        type: "string"
        format: "date"

      certidao_tipo:
        description: Tipo da Certidao
        type: "integer"
        format: "int32"

      certidao_situacao:
        description: Situação da Certidão
        type: "integer"
        format: "int32"

      certidao_imovel_matricula:
        description: certidao_imovel_matricula
        type: "integer"
        format: "int64"

      certidao_imovel_inscricao_masc:
        description: certidao_imovel_inscricao_masc
        type: "string"

      certidao_link:
        description: certidao_link
        type: "string"




  sdt_api_certidao_retorno:
    properties:
      total_registro:
        description: Total de Registros
        type: "integer"
        format: "int64"

      imovel:
        description: Lista de Imoveis
        type: "string"

      sdt_api_certidao:
        description: sdt_api_certidao
        type: array
        items:
          $ref: "#/definitions/sdt_api_certidao"




  sdt_api_extrato_dam:
    properties:
      lancamento_id:
        description: Id de Lançamento
        type: "integer"
        format: "int64"

      lancamento_numero:
        description: Número de Lançamento
        type: "integer"
        format: "int64"

      lancamento_ano:
        description: Ano de Competência do Lançamento
        type: "integer"
        format: "int32"

      lancamento_dam_valor_total:
        description: Valor Base do ISS
        type: "number"
        format: "double"

      dam_reparc_codigo:
        description: dam_reparc_codigo
        type: "integer"
        format: "int64"

      dam_reparc_ano:
        description: dam_reparc_ano
        type: "integer"
        format: "int32"

      dam_data_vencimento:
        description: Data de Vencimento
        type: "string"
        format: "date"

      tributo_classificcao_desc:
        description: tributo_classificcao_desc
        type: "string"

      dam_num_parc:
        description: Número da Parcela
        type: "integer"
        format: "int32"

      dam_total_parc:
        description: Total de Parcelas
        type: "integer"
        format: "int32"

      dam_valor_total_r:
        description: Valor Total Redundante
        type: "number"
        format: "double"

      dam_cod_barras:
        description: Código de Barras
        type: "string"

      dam_linha_digitavel:
        description: Linha Digitável
        type: "string"

      dam_pix_qrcode:
        description: dam_pix_qrcode
        type: "string"

      dam_boleto_pdf_link:
        description: dam_boleto_pdf_link
        type: "string"

      dam_id:
        description: DAM
        type: "integer"
        format: "int64"

      dam_tipo_desc:
        description: dam_tipo_desc
        type: "string"

      dam_tipo:
        description: dam_tipo
        type: "integer"
        format: "int32"

      imovel_matricula:
        description: Matrícula / Código do Imóvel
        type: "integer"
        format: "int64"




  sdt_api_extrato_dam_retorno:
    properties:
      total_dams:
        description: Total de Registros
        type: "integer"
        format: "int32"

      sdt_api_extrato_dam:
        description: sdt_api_extrato_dam
        type: array
        items:
          $ref: "#/definitions/sdt_api_iptu_dam"




  sdt_api_iptu_dam:
    properties:
      lancamento_id:
        description: Id de Lançamento
        type: "integer"
        format: "int64"

      lancamento_numero:
        description: Número de Lançamento
        type: "integer"
        format: "int64"

      lancamento_ano:
        description: Ano de Competência do Lançamento
        type: "integer"
        format: "int32"

      lancamento_dam_valor_total:
        description: Valor Base do ISS
        type: "number"
        format: "double"

      dam_data_vencimento:
        description: Data de Vencimento
        type: "string"
        format: "date"

      dam_num_parc:
        description: Número da Parcela
        type: "integer"
        format: "int32"

      dam_valor_total_r:
        description: Valor Total Redundante
        type: "number"
        format: "double"

      dam_cod_barras:
        description: Código de Barras
        type: "string"

      dam_linha_digitavel:
        description: Linha Digitável
        type: "string"

      dam_pix_qrcode:
        description: dam_pix_qrcode
        type: "string"

      dam_boleto_pdf_link:
        description: dam_boleto_pdf_link
        type: "string"




  sdt_api_iptu_dam_retorno:
    properties:
      sdt_api_iptu_dam:
        description: sdt_api_iptu_dam
        type: array
        items:
          $ref: "#/definitions/sdt_api_iptu_dam"

      parcelas:
        description: sdt_api_parcelas_iptu_retorno
        type: array
        items:
          $ref: "#/definitions/sdt_api_parcelas_iptu_retorno_item"




  sdt_api_iptu_lancamento:
    properties:
      lancamento_id:
        description: Id de Lançamento
        type: "integer"
        format: "int64"

      lancamento_numero:
        description: Número de Lançamento
        type: "integer"
        format: "int64"

      lancamento_ano:
        description: Ano de Competência do Lançamento
        type: "integer"
        format: "int32"

      lancamento_imovel_matricula:
        description: Matricula do imovel
        type: "integer"
        format: "int64"

      lancamento_imovel_bairro_nome:
        description: lancamento_imovel_bairro_nome
        type: "string"

      lancamento_imovel_quadra:
        description: Imóvel Quadra
        type: "string"

      lancamento_imovel_lote:
        description: Imóvel Lote
        type: "string"

      lancamento_dam_valor_total:
        description: Valor Base do ISS
        type: "number"
        format: "double"




  sdt_api_iptu_lancamento_retorno:
    properties:
      total_registro:
        description: Total de Registros
        type: "integer"
        format: "int64"

      imovel:
        description: Lista de Imoveis
        type: "string"

      sdt_api_iptu_lancamento:
        description: sdt_api_iptu_lancamento
        type: array
        items:
          $ref: "#/definitions/sdt_api_iptu_lancamento"




  sdt_api_nfse:
    properties:
      nfse_link:
        description: nfse_link
        type: "string"

      nfse_id:
        description: Id da NFS-e
        type: "integer"
        format: "int64"

      nfse_numero:
        description: Número da NFS-e
        type: "integer"
        format: "int64"

      nfse_prestador_cpf_cnpj_masc:
        description: nfse_prestador_cpf_cnpj_masc
        type: "string"

      nfse_prestador_razao_soc:
        description: Razão Social do prestador do serviço
        type: "string"

      nfse_tomador_cpf_cnpj_masc:
        description: Mascara do CPF
        type: "string"

      nfse_tomador_razao_soc:
        description: Razao Social do Tomador de Serviço
        type: "string"

      nfse_ips_valor_iss:
        description: Valor do ISS devido em R$ 
        type: "number"
        format: "double"

      nfse_ips_valor_servicos:
        description: Valor dos serviços em R$ 
        type: "number"
        format: "double"

      nfse_data_emissao:
        description: Data da emissão da NFS-e 
        type: "string"
        format: "date"

      nfse_status:
        description: Status da NFSE
        type: "integer"
        format: "int32"

      nfse_status_desc:
        description: nfse_status_desc
        type: "string"




  sdt_api_nfse_retorno:
    properties:
      total_registro:
        description: Total de Registros
        type: "integer"
        format: "int64"

      sdt_api_nfse:
        description: sdt_api_nfse
        type: array
        items:
          $ref: "#/definitions/sdt_api_nfse"




  sdt_api_parcelas_iptu_item:
    properties:
      dam_id:
        description: DAM
        type: "integer"
        format: "int64"

      dam_num_parc:
        description: Número da Parcela
        type: "integer"
        format: "int32"

      dam_total_parc:
        description: Total de Parcelas
        type: "integer"
        format: "int32"

      dam_valor_total_r:
        description: Valor Total Redundante
        type: "number"
        format: "double"

      dam_opcao_parc_id:
        description: Opção de Parcelamento
        type: "integer"
        format: "int64"





  sdt_api_parcelas_iptu_retorno_item:
    properties:
      sdt_api_parcelas_iptu:
        description: sdt_api_parcelas_iptu
        type: array
        items:
          $ref: "#/definitions/sdt_api_parcelas_iptu_item"





  sdt_dados_tomador:
    properties:
      pessoa_cpf_cnpj:
        description: CPF / CNPJ
        type: "string"

      pessoa_razao_social:
        description: Razão Social
        type: "string"

      pessoa_nome_fantasia:
        description: Nome Fantasia
        type: "string"

      pessoa_inscricao_municipal:
        description: Inscrição Municipal
        type: array
        items:
          type: "string"

      pessoa_inscricao_estadual:
        description: Inscrição Estadual
        type: array
        items:
          type: "string"

      pessoa_logradouro_end:
        description: Endereço
        type: "string"

      pessoa_logradouro_bairro_nome:
        description: Bairro Nome
        type: "string"

      pessoa_numero_logradouro:
        description: Número
        type: "string"

      pessoa_logradouro_cidade_nome:
        description: Cidade Nome
        type: "string"

      pessoa_logradouro_estado_sigla:
        description: Estado Sigla
        type: "string"

      pessoa_email:
        description: E-mail
        type: "string"

      pessoa_telefone:
        description: Telefone
        type: "string"





