package sizebay.catalog.client.model;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.HashMap;
import java.util.Map;

@Data
@Accessors(chain = true)
@NoArgsConstructor
@JsonIgnoreProperties(ignoreUnknown = true)
public class UserProfileIdentification implements Serializable {

     long id;
     String userId;
     String name;
     String gender;
     int age;
     int weight;
     int height;
     int bodyShapeChest;
     int bodyShapeWaist;
     int bodyShapeHip;
     int footShape;

     UserProfileMeasures measures;
     UserProfileProduct product;

     public static UserProfileIdentification empty() {

          UserProfileIdentification profile = new UserProfileIdentification();
          UserProfileMeasures measures = UserProfileMeasures.empty();
          UserProfileProduct product = UserProfileProduct.empty();

          profile.setName("Você");
          profile.setAge(0);
          profile.setWeight(0);
          profile.setHeight(0);
          profile.setBodyShapeChest(-99);
          profile.setBodyShapeWaist(-99);
          profile.setBodyShapeHip(-99);
          profile.setFootShape(-99);

          profile.setMeasures(measures);
          profile.setProduct(product);

          return profile;
     }

}

@@ -231,42 +231,146 @@
 ava.
-util.HashMap;%0Aimport java.util.Map
+math.BigDecimal;%0Aimport java.time.ZoneId;%0Aimport java.time.ZonedDateTime;%0Aimport java.util.Date;%0Aimport static java.time.LocalDateTime.now
 ;%0A%0A@
@@ -524,24 +524,104 @@
 alizable %7B%0A%0A
+     private static final BigDecimal DAYS_OF_YEAR = new BigDecimal(365.2425D);%0A%0A
      long id
@@ -1569,10 +1569,278 @@
      %7D%0A%0A
+     public Date getBirth(int age) %7B%0A          final int days = new BigDecimal(age).multiply(DAYS_OF_YEAR).intValue();%0A          final ZonedDateTime then = now().minusDays(days).atZone(ZoneId.systemDefault());%0A%0A          return ( Date.from(then.toInstant()));%0A     %7D%0A%0A
 %7D%0A

Add method that returns Birth based on age