- updated swagger description
- added /customers/{id}/toaccounts endpoint
This commit is contained in:
@@ -8,13 +8,15 @@ import java.math.BigDecimal;
|
||||
public class AccountOpenedEvent implements Event {
|
||||
|
||||
private String customerId;
|
||||
private String title;
|
||||
private BigDecimal initialBalance;
|
||||
|
||||
private AccountOpenedEvent() {
|
||||
}
|
||||
|
||||
public AccountOpenedEvent(String customerId, BigDecimal initialBalance) {
|
||||
public AccountOpenedEvent(String customerId, String title, BigDecimal initialBalance) {
|
||||
this.customerId = customerId;
|
||||
this.title = title;
|
||||
this.initialBalance = initialBalance;
|
||||
}
|
||||
|
||||
@@ -22,6 +24,10 @@ public class AccountOpenedEvent implements Event {
|
||||
return customerId;
|
||||
}
|
||||
|
||||
public String getTitle() {
|
||||
return title;
|
||||
}
|
||||
|
||||
public BigDecimal getInitialBalance() {
|
||||
return initialBalance;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,46 @@
|
||||
package net.chrisrichardson.eventstore.javaexamples.banking.backend.common.customers;
|
||||
|
||||
import net.chrisrichardson.eventstore.Event;
|
||||
|
||||
/**
|
||||
* Created by Main on 08.02.2016.
|
||||
*/
|
||||
public class CustomerAddedToAccount implements Event {
|
||||
|
||||
private String accountId;
|
||||
private String accountOwner;
|
||||
private String title;
|
||||
|
||||
public CustomerAddedToAccount() {
|
||||
}
|
||||
|
||||
public CustomerAddedToAccount(String accountId, String accountOwner, String title) {
|
||||
this.accountId = accountId;
|
||||
this.accountOwner = accountOwner;
|
||||
this.title = title;
|
||||
}
|
||||
|
||||
public String getAccountId() {
|
||||
return accountId;
|
||||
}
|
||||
|
||||
public void setAccountId(String accountId) {
|
||||
this.accountId = accountId;
|
||||
}
|
||||
|
||||
public String getAccountOwner() {
|
||||
return accountOwner;
|
||||
}
|
||||
|
||||
public void setAccountOwner(String accountOwner) {
|
||||
this.accountOwner = accountOwner;
|
||||
}
|
||||
|
||||
public String getTitle() {
|
||||
return title;
|
||||
}
|
||||
|
||||
public void setTitle(String title) {
|
||||
this.title = title;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user