Exibe os dados das parcelas em aberto do contrato.
Essa rotina, exibe os dados das parcelas em aberto do contrato, com os seguintes passos:
1- Ler o contrato, a quantidade de prestações selecionadas e a data de referência informados como parâmetro.
2 - Ler o parâmetro TIPOEXEC do tipo string e traduzir de acordo com a tabela:
Entrada (String) Tradução (integer)
-------------------------------------
atraso 2
devida 10
emAberto 3
3- Consultar as prestações do contrato.
4- Calcular os valores totais com base nos parâmetros de entrada.
Método: GET
Entrada: - CO_CONTRATO - string
- NU_PRESTACOES_SELECIONADAS - integer
- dataref - Tdata
- TIPOEXEC - string
- CHAVE - string
Caso de sucesso
- Se encontrar o contrato:
dados{
dataRef - Tdata
NumPrest - integer
VA_TOTAL_A_PAGAR - float
VA_TOTAL_CORR - float
VA_TOTAL_CORR_MORA - float
VA_TOTAL_DESC - float
VA_TOTAL_ENCARGO - float
VA_TOTAL_IOFCOMPLEM - float
VA_TOTAL_JUROS_MORATORIOS - float
VA_TOTAL_JUROS_REMUNERATORIOS - float
VA_TOTAL_MORA - float
VA_TOTAL_MULTA - float
VA_TOTAL_OUTROS - float
VA_TOTAL_PRESTACOES - float
VA_TOTAL_TAXAS - float
evolucao: [{
DT_VENCIMENTO - Tdata
PrstPrz - string
IN_SERIE - string
VA_PAGAR - float
VA_CORR - float
VA_CORR_MORA - float
VA_DESC - float
VA_ENCARGO - float
VA_IOFCOMPLEM - float
VA_JUROS_MORATORIOS - float
VA_JUROS_REMUNERATORIOS - float
VA_MORA - float
VA_MULTA - float
VA_OUTROS - float
VA_PRESTACOES - float
VA_TAXAS - float
}, ...
]
},
success: true
Caso de falha
- Se não encontrar o contrato:
success: false
message: 'Contrato não encontrado'
Url: rest//w/wsccireact/PrestacoesDisponiveisWeb
Parâmetros
1. CO_CONTRATO: 000585
NU_PRESTACOES_SELECIONADAS: 0
dataref: 17%2FJan%2F2019
TIPOEXEC: atraso
CHAVE: a
Caso de sucesso
{
"dados": {
"evolucao": [{
"DT_VENCIMENTO": "30\/Abr\/2009",
"PrstPrz": "146",
"IN_SERIE": "Financiamento Dinâmico",
"VA_A_PAGAR": "3418.53",
"VA_CORR": "116.04",
"VA_CORR_MORA": "1987.11",
"VA_DESC": "0",
"VA_ENCARGO": "1431.42",
"VA_IOFCOMPLEM": "0",
"VA_JUROS_MORATORIOS": "1804.04",
"VA_JUROS_REMUNERATORIOS": "0",
"VA_MORA": "1804.04",
"VA_MULTA": "67.03",
"VA_OUTROS": "4.54747350886464E-13",
"VA_PRESTACOES": "3418.53",
"DtIsen": "__\/___\/____",
"EmitMa": "Abr\/2009",
"EmitCodSerie": "0",
"IN_CONSIDERA": true
},
{
"DT_VENCIMENTO": "30\/Mai\/2009",
"PrstPrz": "147",
"IN_SERIE": "Financiamento Dinâmico",
"VA_A_PAGAR": "761.59",
"VA_CORR": "25.72",
"VA_CORR_MORA": "440.96",
"VA_DESC": "0",
"VA_ENCARGO": "320.63",
"VA_IOFCOMPLEM": "0",
"VA_JUROS_MORATORIOS": "400.31",
"VA_JUROS_REMUNERATORIOS": "0",
"VA_MORA": "400.31",
"VA_MULTA": "14.93",
"VA_OUTROS": "1.13686837721616E-13",
"VA_PRESTACOES": "4180.12",
"DtIsen": "__\/___\/____",
"EmitMa": "Mai\/2009",
"EmitCodSerie": "0",
"IN_CONSIDERA": true
}],
"CO_CONTRATO": "000585",
"NU_PRESTACOES_SELECIONADAS": "2",
"dataref": "17\/Jan\/2019",
"TIPOEXEC": "atraso",
"CHAVE": "a",
"userName": "usuarioweb:",
"contexto": "CORP_WEB",
"ambienteOperacional": "\/home\/cccpmm\/dados",
"sessionKey": "21541KMKLNCNOMHNIMAMKMJPFPKOGOC",
"HTTP_AUTHORIZATION": "",
"HTTP_X_ITAU_CORRELATIONID": "",
"REMOTE_ADDR": "10.3.98.183",
"VA_TOTAL_A_PAGAR": "4180.12",
"VA_TOTAL_CORR": "141.76",
"VA_TOTAL_CORR_MORA": "2428.07",
"VA_TOTAL_DESC": "0",
"VA_TOTAL_ENCARGO": "1752.05",
"VA_TOTAL_IOFCOMPLEM": "0",
"VA_TOTAL_JUROS_MORATORIOS": "2204.35",
"VA_TOTAL_JUROS_REMUNERATORIOS": "0",
"VA_TOTAL_MORA": "2204.35",
"VA_TOTAL_MULTA": "81.96",
"VA_TOTAL_OUTROS": "5.6843418860808E-13",
"VA_TOTAL_PRESTACOES": "4180.12",
"VA_TOTAL_TAXAS": "0",
"DT_CALCULO": "17\/Jan\/2019",
"NumPrest": "2"
},
"success": true
}
Caso de falha
{
"success": false,
"message": "Contrato não encontrado."
}