1 | public class MonetoryAmount implements Serializable {↵ | | 1 | public class CustomerId implements Serializable {↵
|
| | | 2 | ↵
|
2 | private BigDecimal amount;↵ | | 3 | private ↵
|
3 | private Currency currency↵ | | 4 | String orgName;↵
|
| | | 5 | private String customerName;↵
|
|
| | | 6 | public CustomerId() {↵
|
4 | ;↵ | | 7 | super();↵
|
5 | ↵ | | 8 | }↵
|
|
6 | public MonetoryAmount(BigDecimal amount, Currency currency) {↵ | | 9 | public ↵
|
7 | this.amount = amount;↵ | | |
|
8 | this.currency = currency↵ | | 10 | CustomerId(String orgName, String custName) {↵
|
| | | 11 | this.orgName = orgName;↵
|
9 | ;↵ | | 12 | this.customerName = custName;↵
|
10 | }↵ | | 13 | }↵
|
11 | ↵ | | |
|
12 | public BigDecimal getAmount() {↵ | | 14 | public String getCustomerName() {↵
|
13 | return amount;↵ | | 15 | return customerName;↵
|
14 | }↵ | | 16 | }↵
|
15 | ↵ | | |
|
16 | public void setAmount(BigDecimal amount) {↵ | | 17 | public void set↵
|
17 | this.amount = amount↵ | | 18 | CustomerName(String customerName) {↵
|
18 | ;↵ | | 19 | this.customerName = customerName;↵
|
19 | }↵ | | 20 | }↵
|
|
20 | public Currency getCurrency() {↵ | | 21 | public String getOrgName() {↵
|
21 | return currency;↵ | | 22 | return orgName;↵
|
22 | }↵ | | 23 | }↵
|
|
23 | public void setCurrency(Currency currency) {↵ | | 24 | public void setOrgName(String orgName) {↵
|
24 | this.currency = currency | | 25 | this.orgName = orgName
|