soat-fiap / FIAP.TechChallenge.ByteMeBurger

Repository for FIAP SOAT post degree Tech Challenge
BSD 3-Clause "New" or "Revised" License
0 stars 1 forks source link

Require Cpf in all constructors of Customer class #43

Open coderabbitai[bot] opened 1 month ago

coderabbitai[bot] commented 1 month ago

As discussed in PR https://github.com/soat-fiap/FIAP.TechChallenge.ByteMeBurger/pull/42 and the specific comment https://github.com/soat-fiap/FIAP.TechChallenge.ByteMeBurger/pull/42#discussion_r1589776399, it is necessary to make the Cpf property a required field in all constructors of the Customer class to ensure that each customer has a Cpf assigned upon creation. This change aligns with the domain requirements where Cpf functions similarly to a SIN number and should not have a default value. Requested by @italopessoa.