File tree Expand file tree Collapse file tree 6 files changed +133
-0
lines changed
src/main/java/com/epam/izh/rd/online/service Expand file tree Collapse file tree 6 files changed +133
-0
lines changed Original file line number Diff line number Diff line change 1+ package com .epam .izh .rd .online .service ;
2+
3+ public class Applicant {
4+ }
Original file line number Diff line number Diff line change 1+ package com .epam .izh .rd .online .service ;
2+
3+ import java .math .BigDecimal ;
4+ import java .util .List ;
5+
6+ /**
7+ * Ипотечный займ (упрощенный вариант)
8+ */
9+ public class Mortgage {
10+
11+ /**
12+ * Продукт (например Семейная ипотека)
13+ */
14+ private Product product ;
15+
16+ /**
17+ * Размер заемных средств
18+ */
19+ private BigDecimal amount ;
20+
21+ /**
22+ * Размер ипотечной ставки
23+ */
24+ private BigDecimal interestRate ;
25+
26+ /**
27+ * Срок кредитования
28+ */
29+ private Integer period ;
30+
31+ /**
32+ * Список продавцов
33+ */
34+ private List <Seller > sellers ;
35+
36+
37+ /**
38+ * Список заявителей
39+ */
40+ private List <Applicant > applicants ;
41+
42+ /**
43+ * Объект недвижимости
44+ */
45+ private Realty realty ;
46+
47+ public Product getProduct () {
48+ return product ;
49+ }
50+
51+ public void setProduct (Product product ) {
52+ this .product = product ;
53+ }
54+
55+ public BigDecimal getAmount () {
56+ return amount ;
57+ }
58+
59+ //.... геттеры и сеттеры для полей
60+
61+ public Realty getRealty () {
62+ return realty ;
63+ }
64+
65+ public void setRealty (Realty realty ) {
66+ this .realty = realty ;
67+ }
68+ }
Original file line number Diff line number Diff line change 1+ package com .epam .izh .rd .online .service ;
2+
3+ import java .math .BigDecimal ;
4+ import java .util .List ;
5+
6+ /**
7+ * Запрос для расчета графика платежей
8+ */
9+ public class PaymentScheduleRequest {
10+
11+ /**
12+ * Размер заемных средств
13+ */
14+ private BigDecimal amount ;
15+
16+ /**
17+ * Размер ипотечной ставки
18+ */
19+ private BigDecimal interestRate ;
20+
21+ /**
22+ * Срок кредитования
23+ */
24+ private Integer period ;
25+
26+ public BigDecimal getAmount () {
27+ return amount ;
28+ }
29+
30+ public void setAmount (BigDecimal amount ) {
31+ this .amount = amount ;
32+ }
33+
34+ public BigDecimal getInterestRate () {
35+ return interestRate ;
36+ }
37+
38+ public void setInterestRate (BigDecimal interestRate ) {
39+ this .interestRate = interestRate ;
40+ }
41+
42+ public Integer getPeriod () {
43+ return period ;
44+ }
45+
46+ public void setPeriod (Integer period ) {
47+ this .period = period ;
48+ }
49+ }
Original file line number Diff line number Diff line change 1+ package com .epam .izh .rd .online .service ;
2+
3+ public class Product {
4+ }
Original file line number Diff line number Diff line change 1+ package com .epam .izh .rd .online .service ;
2+
3+ public class Realty {
4+ }
Original file line number Diff line number Diff line change 1+ package com .epam .izh .rd .online .service ;
2+
3+ public class Seller {
4+ }
You can’t perform that action at this time.
0 commit comments