blob: bb7d138fbedad19f3cf056ca95b5f59aa62666a6 [file] [log] [blame]
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you 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 org.apache.fineract.cn.cheque.api.v1.domain;
import javax.validation.Valid;
import javax.validation.constraints.NotEmpty;
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;
private State state;
private String journalEntryIdentifier;
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;
}
public String getState() {
return this.state != null ? this.state.name() : null;
}
public void setState(final String state) {
this.state = State.valueOf(state);
}
public String getJournalEntryIdentifier() {
return this.journalEntryIdentifier;
}
public void setJournalEntryIdentifier(final String journalEntryIdentifier) {
this.journalEntryIdentifier = journalEntryIdentifier;
}
}