OKRS OBJETICOS E RESULTADOS
Por: Gustavo Vieira • 11/2/2023 • Artigo • 739 Palavras (3 Páginas) • 86 Visualizações
UC2 -Create a new endpoint – Validate user eligibility
Scenario:
Me, as Next App, I need to know if the logged user is eligible to credit installment
Basic Info:
EndPoint name: GET/INSTALLMENTCREDITELEGIBILITY()
Steps:
1 – The APP call the CREDIT SERVICE – the existing token in the header should be used as a parameter.
2- The CREDIT SERVICE should call the CORE NEXT in order to receive from CORE BANKING BRADESCO the branch and account numbers – The existing endpoint (GET/accounts) should be used for this.
3- The CREDIT SERVICE calls the CORE BANKING BRADESCO in order to identify if the user is eligible or not – the endpoint GET/creditoParceladoEgibilidade should be used for this, the following parameters should be used:
BRANCH, ACCOUNT NUMBER, MIDIA, CODIGOPERIFERICO and RAZAOCONTA
4- The CORE BANKING BRADESCO should return to CREDIT SERVICE the following parameters:
STATUS ELEGIBILITY (Y/N), AVALIABLE CREDIT AMOUNT, MINIMIM CREDIT VALUE, MINUMUM QUANTITY OF INSTALLMENTS, MAXIMUM QUANTITY OF INSTALLMENTS, MINIMUM VALUE OF INSTALMENTS, MAXIMUM VALUE OF INSTALMENTS, INSURANCE ELIGIBLE, FIRST INSTALLMENT DUE DATE, DUE DATE VALIDITY PERIOD
5- If “eligible” is equal TRUE, then the parameters described in step 4 should be returned to the app layer, if “eligible” equal FALSE, then, a message error should be returned to the app Layer (Client is not eligible to installment credit).
UC3 – Create a new endpoint – Get installment credit list
Scenario:
Me, as Next app, I need to return to customer a list of all installment credit hired.
Basic info:
Endpointname:Get/installmentCreditList()
Steps:
1 – The APP call the CREDIT SERVICE – the existing token in the header should be used as a parameter.
2- The CREDIT SERVICE should call the CORE NEXT in order to receive from CORE BANKING BRADESCO the branch and account numbers – The existing endpoint (GET/accounts) should be used for this.
3- The CREDIT SERVICE calls the CORE BANKING BRADESCO in order to receive all the credit hired by the logged user – the following parameters should be considered:
BRANCH, ACCOUNT NUMER, MIDIA, CODIGOPERIFERICO, RAZAOCONTA
Edpoint:GET/CreditoParceladoLista()
4- The COREBANKING BRADESCO should return to CREDIT SERVICE a credit list containing:
CREDIT CORE ID, CREDIT STATUS, CREDIT STATUS DATE, AMOUNT PAID, PENDING AMOUNT
5- The CREDIT SERVICE should read the received list, if there is at least one CREDIT CORE ID, then, for each one, the following SQL statement should be executed in CREDIT SERVICE DATABASE and return the CREDIT_DESCRIPTION and the credit list to CREDIT service:
SELECT CREDIT_DESCRIPTION
FROM INSTALLMENT_CREDIT
WHERE CREDIT_UID AND CUSTOMER_UID
6- The CREDIT SERVICE should check the CREDIT STATUS and the CURRENT DATE – the following validation should be executed:
If CURRENT DATE is bigger than the Credit Status Date, then, SET ANTECIPATE_CONTRACT = TRUE, ELSE, SET FALSE.
7- The CREDIT SERVICE should return to APP the following data:
CREDIT ID, CREDIT STATUS, CREDIT STATUS DATE, AMOUNT PAID, PENDING AMOUNT, CREDIT DESCRIPTION, ANTECIPATE_CONTRACT
CREATE THE FOLLOWING NEW DATA BASE TABLES:
CUSTOMER_CREDIT
CREDIT_INSTALLMENTS
CREDIT_LINE_DESCRIPTION
Note: See the ERD attached.
UC4 – Create a new endpoint – Get Installment credit details
Scenario:
Me, as Next app, I need to return to customer the hired credit details
...