{"id":15015817,"url":"https://github.com/creditas/challenge","last_synced_at":"2025-10-19T11:41:33.333Z","repository":{"id":8741534,"uuid":"53354611","full_name":"Creditas/challenge","owner":"Creditas","description":"Team recruiting challenges","archived":false,"fork":false,"pushed_at":"2025-03-24T14:38:06.000Z","size":38951,"stargazers_count":261,"open_issues_count":181,"forks_count":296,"subscribers_count":186,"default_branch":"master","last_synced_at":"2025-04-11T20:00:02.031Z","etag":null,"topics":["challenges","ember","hiring","java","javascript","ruby"],"latest_commit_sha":null,"homepage":"https://www.creditas.com.br/","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Creditas.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2016-03-07T19:56:27.000Z","updated_at":"2025-03-24T18:51:55.000Z","dependencies_parsed_at":"2023-02-17T10:00:48.708Z","dependency_job_id":"d89275dd-27fa-4eee-99ba-1a46114d2d6e","html_url":"https://github.com/Creditas/challenge","commit_stats":{"total_commits":224,"total_committers":58,"mean_commits":"3.8620689655172415","dds":0.9196428571428571,"last_synced_commit":"62c7570a25ecb450a75a4b1ebc963391536b34ca"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Creditas%2Fchallenge","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Creditas%2Fchallenge/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Creditas%2Fchallenge/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Creditas%2Fchallenge/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Creditas","download_url":"https://codeload.github.com/Creditas/challenge/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254328384,"owners_count":22052632,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["challenges","ember","hiring","java","javascript","ruby"],"created_at":"2024-09-24T19:47:59.647Z","updated_at":"2025-10-19T11:41:33.259Z","avatar_url":"https://github.com/Creditas.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Code Challenge\n\nThe assessment proposal which we'll develop together is provide a person with the loan types suitable for her, given some variables:\n\nWe must provide the following loan types:\n\n- Personal Loan. Interest Rate: 4%\n- Collateralized Loan. Interest Rate: 3%\n- Payroll Loan. Interest Rate: 2%\n\nListed below are the business rules for conceding a loan based on the person's profile:\n\n|                          | Personal Loan | Collateralized Loan | Payroll |\n| ------------------------ | ------------- | :-----------------: | ------- |\n| Income \u003c= 3000           | Yes           |       Yes\\*\\*\\*     | No      |\n| Income \u003e 3000 \u0026 \u003c 5000   | Yes           |        Yes\\*\\*      | No      |\n| Income =\u003e 5000           | Yes           |         Yes\\*       | Yes     |\n\n- \\* Clients under 30 y.o.\n- \\*\\* Clients residing in SP (São Paulo state code in Brazil)\n- \\*\\*\\* Clients under 30 y.o. residing in SP\n\n### App usage:\n\nThe application must receive the following data as input:\n\n##### input\n\n```json\n{\n  \"customer\": {\n    \"name\": \"Erikaya\",\n    \"cpf\": \"123.456.789-10\",\n    \"age\": 29,\n    \"location\": \"SP\",\n    \"income\": 3000\n  }\n}\n```\n\n_For the sake of simplicity, consider we'll always receive the correct data (types and formats)_\n\nAnd must respond the following data:\n\n##### output\n\n```json\n{\n  \"customer\": \"Erikaya\",\n  \"loans\": [\n    {\n      \"type\": \"personal\",\n      \"taxes\": 1\n    }\n  ]\n}\n```\n\n## Before the interview\n- Since this will be a pair programming interview, make sure that you'll be able to share your screen on Google Meet\n- Set up the project on your language of choice. The instructions are inside the respective folders. This will save precious minutes during the interview.\n- Take your time and become familiar with the challenge, files and project structure\n\n## During the interview\n- This challenge will be tackled alongside our crew, in a pair programming dynamic\n- This pair programming dynamic tries to simulate the crew's day-to-day practices, so feel free to raise any question, ask for suggestions, etc. There is no right or wrong, we're only interested in understanding how you approach problems!\n\n## After the interview\n- The code written during this interview is confidential, and MUST NOT be shared with anyone other than our crew. \n\n\n# Setup\n\n- Install dependencies\n\n# Run the tests\n\nYou may execute the following command via CLI:\n\n```bash\n$ ./gradlew test\n```\n\nIf tests are failing, then you succeeded. Fear nothing!\n\nNow it's all about coding.\n\nGood luck!\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcreditas%2Fchallenge","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcreditas%2Fchallenge","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcreditas%2Fchallenge/lists"}