Permalink
Show file tree
Hide file tree
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Merge pull request #2 from markusgeiss/develop
added cheque transaction
- Loading branch information
Showing
19 changed files
with
674 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@@ -0,0 +1,96 @@ | ||
/* | ||
* Copyright 2017 The Mifos Initiative. | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
package io.mifos.teller.api.v1.domain; | ||
|
||
import org.hibernate.validator.constraints.NotEmpty; | ||
|
||
import javax.validation.Valid; | ||
|
||
public class Cheque { | ||
@Valid | ||
private MICR micr; | ||
@NotEmpty | ||
private String drawee; | ||
@NotEmpty | ||
private String drawer; | ||
@NotEmpty | ||
private String payee; | ||
@NotEmpty | ||
private String amount; | ||
@NotEmpty | ||
private String dateIssued; | ||
private Boolean openCheque; | ||
|
||
public Cheque() { | ||
super(); | ||
} | ||
|
||
public MICR getMicr() { | ||
return this.micr; | ||
} | ||
|
||
public void setMicr(final MICR micr) { | ||
this.micr = micr; | ||
} | ||
|
||
public String getDrawee() { | ||
return this.drawee; | ||
} | ||
|
||
public void setDrawee(final String drawee) { | ||
this.drawee = drawee; | ||
} | ||
|
||
public String getDrawer() { | ||
return this.drawer; | ||
} | ||
|
||
public void setDrawer(final String drawer) { | ||
this.drawer = drawer; | ||
} | ||
|
||
public String getPayee() { | ||
return this.payee; | ||
} | ||
|
||
public void setPayee(final String payee) { | ||
this.payee = payee; | ||
} | ||
|
||
public String getAmount() { | ||
return this.amount; | ||
} | ||
|
||
public void setAmount(final String amount) { | ||
this.amount = amount; | ||
} | ||
|
||
public String getDateIssued() { | ||
return this.dateIssued; | ||
} | ||
|
||
public void setDateIssued(final String dateIssued) { | ||
this.dateIssued = dateIssued; | ||
} | ||
|
||
public Boolean isOpenCheque() { | ||
return this.openCheque; | ||
} | ||
|
||
public void setOpenCheque(final Boolean openCheque) { | ||
this.openCheque = openCheque; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@@ -0,0 +1,55 @@ | ||
/* | ||
* Copyright 2017 The Mifos Initiative. | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
package io.mifos.teller.api.v1.domain; | ||
|
||
import io.mifos.core.lang.validation.constraints.ValidIdentifier; | ||
|
||
public class MICR { | ||
@ValidIdentifier(maxLength = 8) | ||
private String chequeNumber; | ||
@ValidIdentifier(maxLength = 11) | ||
private String branchSortCode; | ||
@ValidIdentifier(maxLength = 34) | ||
private String accountNumber; | ||
|
||
public MICR() { | ||
super(); | ||
} | ||
|
||
public String getChequeNumber() { | ||
return this.chequeNumber; | ||
} | ||
|
||
public void setChequeNumber(final String chequeNumber) { | ||
this.chequeNumber = chequeNumber; | ||
} | ||
|
||
public String getBranchSortCode() { | ||
return this.branchSortCode; | ||
} | ||
|
||
public void setBranchSortCode(final String branchSortCode) { | ||
this.branchSortCode = branchSortCode; | ||
} | ||
|
||
public String getAccountNumber() { | ||
return this.accountNumber; | ||
} | ||
|
||
public void setAccountNumber(final String accountNumber) { | ||
this.accountNumber = accountNumber; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@@ -26,7 +26,7 @@ | ||
<logger name="com" level="OFF"/> | ||
<logger name="ch" level="OFF"/> | ||
|
||
<root level="INFO"> | ||
<root level="DEBUG"> | ||
<appender-ref ref="STDOUT"/> | ||
</root> | ||
</configuration> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.