Versões comparadas

Chave

  • Esta linha foi adicionada.
  • Esta linha foi removida.
  • A formatação mudou.

...

Expandir
Informações
iconfalse
titleGetAll

Máscara de Url: http://{domínio}:{porta}/api/educational/v1/financial/pricetablebranchesandterms/{tabelaDePrecoInternalId};{tabelaDePrecoInternalId};{tabelaDePrecoInternalId};

Obs: Para execução é obrigatório informar pelos menos 1 internalId de tabela de preço e no máximo 20 internalId de tabela de preço. Cada internalId deve ser separado por ';'.

Informações
iconfalse
titleExemplo de Configuração

Domínio: localhost

Porta: 8051

internalId: 1|1|23

internalId: 1|1|24

Url Utilizada: http://localhost:8051/api/educational/v1/financial/pricetablebranchesandterms?1|1|23;1|1|24

Informações
iconfalse
titleExemplo de Resultado
Expandir
titleVer resultado JSON...
Bloco de código
languagejs
firstline1
titleResultado (JSON)
linenumberstrue
{
    
{
   
"hasNext": false,


    "items": [


        {


            "companyCode": 1,


            "branchCode": 1,


            "branchName": "Filial Belo Horizonte - Fantasia",


            "priceTableInternalIds": [


                "1|1|23",


                "1|1|24"


            ],


            "terms": [               


                {


                    "internalId": "1|1|74",


                    "companyCode": 1,


                    "priceTableCode": 0,


                    "termId": 74,


                    "levelEducationCode": 0,


                    "termCode": "2024/2",


                    "branchCode": 1


                },


                {


                    "internalId": "1|1|75",


                    "companyCode": 1,


                    "priceTableCode": 0,


                    "termId": 75,


                    "levelEducationCode": 0,


                    "termCode": "2025/1",


                    "branchCode": 1


                }


            ]


        },


        {


            "companyCode": 1,


            "branchCode": 2,


            "branchName": "Filial Rio de Janeiro",


            "priceTableInternalIds": [


                "1|1|23"


            ],


            "terms": [


                {


                    "internalId": "1|2|78",


                    "companyCode": 1,


                    "priceTableCode": 0,


                    "termId": 78,


                    "levelEducationCode": 0,


                    "termCode": "202522",


                    "branchCode": 2


                }


            ]


        }


    ]


}

4.2 - Simular reajuste de valores

...

Expandir
Informações
iconfalse
titlePOST

A simulação é realizada por matriz aplicada da tabela de preço, seu retorno é como os valores devem ficar após o reajuste.

Máscara de Url: http://{domínio}:{porta}/api/educational/v1/financial/simulation/pricetablereadjustment

Informações
iconfalse
titleExemplo de Configuração

Domínio: localhost

Porta: 8051

Url Utilizada: http://localhost:8051/api/educational/v1/financial/simulation/pricetablereadjustment/

Informações
iconfalse
titleExemplo de Entrada
Expandir
titleVer resultado JSON...
Bloco de código
languagejs
firstline1
titleResultado (JSON)
linenumberstrue
{
    "companyCode": 1,
    "branchCode": 1,
    "levelEducationCode": 1,
    "appliedMatrixCode": 140,
    "priceTableCode": 24,
    "readjustmentPercent": 2
}
Informações
iconfalse
titleExemplo de Resultado com sucesso (201 - Created)
Expandir
titleVer resultado JSON...
Bloco de código
languagejs
firstline1
titleResultado (JSON)
linenumberstrue
{
    "companyCode": 1,
    "priceTableCode": 24,
    "appliedMatrixCode": 140,
    "levelEducationCode": 1,
    "readjustmentPercent": 2.0,
    "disciplines": [
        {
            "readjustmentPercent": 2.0,
            "internalId": "1|24|140|1|A035-1",
            "companyCode": 1,
            "priceTableCode": 24,
            "appliedMatrixCode": 140,
            "levelEducationCode": 1,
            "disciplineCode": "A035-1",
            "creditsValue": 50.00000,
            "creditsValueReadjustment": 51.0000000,
            "periodCode": 1,
            "periodDescription": "1° Periodo",
            "disciplineName": "ECONOMIA BRASILEIRA E INTERNACIONAL",
            "actionState": 0
        },
        {
            "readjustmentPercent": 2.0,
            "internalId": "1|24|140|1|A038-1",
            "companyCode": 1,
            "priceTableCode": 24,
            "appliedMatrixCode": 140,
            "levelEducationCode": 1,
            "disciplineCode": "A038-1",
            "creditsValue": 50.00000,
            "creditsValueReadjustment": 51.0000000,
            "periodCode": 1,
            "periodDescription": "1° Periodo",
            "disciplineName": "ADMINISTRAÇÃO FINANCEIRA",
            "workload": 68.0000,
            "actionState": 0
        },
        {
            "readjustmentPercent": 2.0,
            "internalId": "1|24|140|1|A144-1",
            "companyCode": 1,
            "priceTableCode": 24,
            "appliedMatrixCode": 140,
            "levelEducationCode": 1,
            "disciplineCode": "A144-1",
            "creditsValue": 50.00000,
            "creditsValueReadjustment": 51.0000000,
            "periodCode": 1,
            "periodDescription": "1° Periodo",
            "disciplineName": "INFORMÁTICA",
            "actionState": 0
        },
        {
            "readjustmentPercent": 2.0,
            "internalId": "1|24|140|1|S049-1",
            "companyCode": 1,
            "priceTableCode": 24,
            "appliedMatrixCode": 140,
            "levelEducationCode": 1,
            "disciplineCode": "S049-1",
            "creditsValue": 50.00000,
            "creditsValueReadjustment": 51.0000000,
            "periodCode": 1,
            "periodDescription": "1° Periodo",
            "disciplineName": "ÁLGEBRA LINEAR E GEOMETRIA ANALÍTICA",
            "actionState": 0
        },
        {
            "readjustmentPercent": 2.0,
            "internalId": "1|24|140|1|TPD2",
            "companyCode": 1,
            "priceTableCode": 24,
            "appliedMatrixCode": 140,
            "levelEducationCode": 1,
            "disciplineCode": "TPD2",
            "creditsValue": 50.00000,
            "creditsValueReadjustment": 51.0000000,
            "periodCode": 1,
            "periodDescription": "1° Periodo",
            "disciplineName": "MATEMÁTICA 1",
            "actionState": 0
        }
    ]
}



Informações
iconfalse
titleExemplo de Resultado com falha - (500 Internal server error)
Bloco de código
languagejs
firstline1
titleResultado (JSON)
linenumberstrue
{
    "code": null,
    "message": "Referência de objeto não definida para uma instância de um objeto.",
    "detailedMessage": null,
    "helpUrl": null,
    "details": null
}

...

Expandir
Informações
iconfalse
titlePOST

Efetua o reajuste dos valores da tabela de preço.

Máscara de Url: http://{domínio}:{porta}/api/educational/v1/financial/pricetableadjustment/

Informações
iconfalse
titleExemplo de Configuração

Domínio: localhost

Porta: 8051

Url Utilizada: http://localhost:8051/api/educational/v1/financial/pricetableadjustment/

Informações
iconfalse
titleExemplo de Entrada
Expandir
titleVer resultado JSON...
Bloco de código
languagejs
firstline1
titleResultado (JSON)
linenumberstrue
{
    "companyCode": 1,
    "levelEducationCode": 1,
    "observation": "Teste de reajuste",
    "readjustmentPercent": 50,
    "priceTables": [
        {
            "companyCode": 1,
            "levelEducationCode": 1,
            "id": 23,
            "internalId": "1|1|23",            
            "active": true,
            "statusFillDisciplines": 1,                        
            "terms": [
                {
                    "companyCode": 1,
                    "priceTableCode": 23,
                    "termId": 75,
                    "levelEducationCode": 1,
                    "termCode": "2025/1",
                    "branchCode": 1                    
                },
                {
                    "companyCode": 1,
                    "priceTableCode": 23,
                    "termId": 78,
                    "levelEducationCode": 1,
                    "termCode": "202522",
                    "branchCode": 2
                }
            ]       
        },
        {
            "companyCode": 1,
            "levelEducationCode": 1,
            "id": 24,
            "internalId": "1|1|24",            
            "active": true,
            "statusFillDisciplines": 1,
            "priceTableInUse": false,            
            "terms": [
                {
                    "companyCode": 1,
                    "priceTableCode": 24,
                    "termId": 75,
                    "levelEducationCode": 1,
                    "termCode": "2025/1",
                    "branchCode": 1                    
                }
            ]           
        }
    ]
}
Informações
iconfalse
titleExemplo de Resultado com sucesso (201 - Created)
Expandir
titleVer resultado JSON...
Bloco de código
languagejs
firstline1
titleResultado (JSON)
linenumberstrue
{
    "internalId": "1|1|76",
    "companyCode": 1,
    "levelEducationCode": 1,
    "readjustmentId": 76,
    "priceTables": [
        {
            "companyCode": 1,
            "levelEducationCode": 1,
            "id": 23,
            "code": "ENG SOF 2009",
            "name": "ENGENHARIA DE SOFTWARE",
            "statusFillDisciplines": 0,
            "terms": [
                {
                    "companyCode": 1,
                    "priceTableCode": 23,
                    "termId": 75,
                    "levelEducationCode": 1,
                    "branchCode": 1
                },
                {
                    "companyCode": 1,
                    "priceTableCode": 23,
                    "termId": 78,
                    "levelEducationCode": 1,
                    "branchCode": 2
                }
            ]
        },
        {
            "companyCode": 1,
            "levelEducationCode": 1,
            "id": 24,
            "code": "TSTRjs",
            "name": "Teste reajuste",
            "statusFillDisciplines": 0,
            "terms": [
                {
                    "companyCode": 1,
                    "priceTableCode": 24,
                    "termId": 75,
                    "levelEducationCode": 1,
                    "branchCode": 1
                }
            ]
        }
    ],
    "readjustmentPercent": 50.0,
    "observation": "Teste de reajuste"
}

5 - Processo vínculo Matriz Aplicada e Campus/Polo da Matriz Aplicada

...