data) {
+ this.data = data;
+ }
+
+}
\ No newline at end of file
diff --git a/bank-web/src/main/java/com/angkorteam/fintech/client/dto/EntityToEntityRequest.java b/bank-web/src/main/java/com/angkorteam/fintech/client/dto/EntityToEntityRequest.java
new file mode 100644
index 00000000..c6f47c66
--- /dev/null
+++ b/bank-web/src/main/java/com/angkorteam/fintech/client/dto/EntityToEntityRequest.java
@@ -0,0 +1,47 @@
+package com.angkorteam.fintech.client.dto;
+
+import java.util.Date;
+
+public class EntityToEntityRequest {
+
+ private long fromId;
+
+ private long toId;
+
+ private Date startDate;
+
+ private Date endDate;
+
+ public long getFromId() {
+ return fromId;
+ }
+
+ public void setFromId(long fromId) {
+ this.fromId = fromId;
+ }
+
+ public long getToId() {
+ return toId;
+ }
+
+ public void setToId(long toId) {
+ this.toId = toId;
+ }
+
+ public Date getStartDate() {
+ return startDate;
+ }
+
+ public void setStartDate(Date startDate) {
+ this.startDate = startDate;
+ }
+
+ public Date getEndDate() {
+ return endDate;
+ }
+
+ public void setEndDate(Date endDate) {
+ this.endDate = endDate;
+ }
+
+}
diff --git a/bank-web/src/main/java/com/angkorteam/fintech/client/dto/EnumOptionData.java b/bank-web/src/main/java/com/angkorteam/fintech/client/dto/EnumOptionData.java
new file mode 100644
index 00000000..456fbf8d
--- /dev/null
+++ b/bank-web/src/main/java/com/angkorteam/fintech/client/dto/EnumOptionData.java
@@ -0,0 +1,54 @@
+/**
+ * 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 com.angkorteam.fintech.client.dto;
+
+import java.io.Serializable;
+import java.util.Objects;
+
+public class EnumOptionData implements Serializable {
+
+ private Long id;
+ private String code;
+ private String value;
+
+ public Long getId() {
+ return id;
+ }
+
+ public void setId(Long id) {
+ this.id = id;
+ }
+
+ public String getCode() {
+ return code;
+ }
+
+ public void setCode(String code) {
+ this.code = code;
+ }
+
+ public String getValue() {
+ return value;
+ }
+
+ public void setValue(String value) {
+ this.value = value;
+ }
+
+}
diff --git a/bank-web/src/main/java/com/angkorteam/fintech/client/dto/ErrorItem.java b/bank-web/src/main/java/com/angkorteam/fintech/client/dto/ErrorItem.java
new file mode 100644
index 00000000..e815452a
--- /dev/null
+++ b/bank-web/src/main/java/com/angkorteam/fintech/client/dto/ErrorItem.java
@@ -0,0 +1,67 @@
+package com.angkorteam.fintech.client.dto;
+
+import java.util.List;
+
+public class ErrorItem {
+
+ private String developerMessage;
+
+ private String defaultUserMessage;
+
+ private String userMessageGlobalisationCode;
+
+ private String parameterName;
+
+ private String value;
+
+ private List args;
+
+ public String getDeveloperMessage() {
+ return developerMessage;
+ }
+
+ public void setDeveloperMessage(String developerMessage) {
+ this.developerMessage = developerMessage;
+ }
+
+ public String getDefaultUserMessage() {
+ return defaultUserMessage;
+ }
+
+ public void setDefaultUserMessage(String defaultUserMessage) {
+ this.defaultUserMessage = defaultUserMessage;
+ }
+
+ public String getUserMessageGlobalisationCode() {
+ return userMessageGlobalisationCode;
+ }
+
+ public void setUserMessageGlobalisationCode(String userMessageGlobalisationCode) {
+ this.userMessageGlobalisationCode = userMessageGlobalisationCode;
+ }
+
+ public String getParameterName() {
+ return parameterName;
+ }
+
+ public void setParameterName(String parameterName) {
+ this.parameterName = parameterName;
+ }
+
+ public String getValue() {
+ return value;
+ }
+
+ public void setValue(String value) {
+ this.value = value;
+ }
+
+ public List getArgs() {
+ return args;
+ }
+
+ public void setArgs(List args) {
+ this.args = args;
+ }
+
+}
diff --git a/bank-web/src/main/java/com/angkorteam/fintech/client/dto/ErrorValue.java b/bank-web/src/main/java/com/angkorteam/fintech/client/dto/ErrorValue.java
new file mode 100644
index 00000000..45283138
--- /dev/null
+++ b/bank-web/src/main/java/com/angkorteam/fintech/client/dto/ErrorValue.java
@@ -0,0 +1,14 @@
+package com.angkorteam.fintech.client.dto;
+
+public class ErrorValue {
+
+ private String value;
+
+ public String getValue() {
+ return value;
+ }
+
+ public void setValue(String value) {
+ this.value = value;
+ }
+}
diff --git a/bank-web/src/main/java/com/angkorteam/fintech/client/dto/FineractResponse.java b/bank-web/src/main/java/com/angkorteam/fintech/client/dto/FineractResponse.java
new file mode 100644
index 00000000..962cf538
--- /dev/null
+++ b/bank-web/src/main/java/com/angkorteam/fintech/client/dto/FineractResponse.java
@@ -0,0 +1,143 @@
+package com.angkorteam.fintech.client.dto;
+
+import java.util.Map;
+
+public class FineractResponse {
+
+ private Long commandId;
+ private Long officeId;
+ private Long groupId;
+ private Long clientId;
+ private Long loanId;
+ private Long savingsId;
+ private Long resourceId;
+ private Long subResourceId;
+ private String transactionId;
+ private Map changes;
+ private String resourceIdentifier;
+ private Long productId;
+ private Long gsimId;
+ private Long glimId;
+ private Boolean rollbackTransaction;
+
+ public Long getCommandId() {
+ return commandId;
+ }
+
+ public void setCommandId(Long commandId) {
+ this.commandId = commandId;
+ }
+
+ public Long getOfficeId() {
+ return officeId;
+ }
+
+ public void setOfficeId(Long officeId) {
+ this.officeId = officeId;
+ }
+
+ public Long getGroupId() {
+ return groupId;
+ }
+
+ public void setGroupId(Long groupId) {
+ this.groupId = groupId;
+ }
+
+ public Long getClientId() {
+ return clientId;
+ }
+
+ public void setClientId(Long clientId) {
+ this.clientId = clientId;
+ }
+
+ public Long getLoanId() {
+ return loanId;
+ }
+
+ public void setLoanId(Long loanId) {
+ this.loanId = loanId;
+ }
+
+ public Long getSavingsId() {
+ return savingsId;
+ }
+
+ public void setSavingsId(Long savingsId) {
+ this.savingsId = savingsId;
+ }
+
+ public Long getResourceId() {
+ return resourceId;
+ }
+
+ public void setResourceId(Long resourceId) {
+ this.resourceId = resourceId;
+ }
+
+ public Long getSubResourceId() {
+ return subResourceId;
+ }
+
+ public void setSubResourceId(Long subResourceId) {
+ this.subResourceId = subResourceId;
+ }
+
+ public String getTransactionId() {
+ return transactionId;
+ }
+
+ public void setTransactionId(String transactionId) {
+ this.transactionId = transactionId;
+ }
+
+ public Map getChanges() {
+ return changes;
+ }
+
+ public void setChanges(Map changes) {
+ this.changes = changes;
+ }
+
+ public String getResourceIdentifier() {
+ return resourceIdentifier;
+ }
+
+ public void setResourceIdentifier(String resourceIdentifier) {
+ this.resourceIdentifier = resourceIdentifier;
+ }
+
+ public Long getProductId() {
+ return productId;
+ }
+
+ public void setProductId(Long productId) {
+ this.productId = productId;
+ }
+
+ public Long getGsimId() {
+ return gsimId;
+ }
+
+ public void setGsimId(Long gsimId) {
+ this.gsimId = gsimId;
+ }
+
+ public Long getGlimId() {
+ return glimId;
+ }
+
+ public void setGlimId(Long glimId) {
+ this.glimId = glimId;
+ }
+
+ public Boolean getRollbackTransaction() {
+ return rollbackTransaction;
+ }
+
+ public void setRollbackTransaction(Boolean rollbackTransaction) {
+ this.rollbackTransaction = rollbackTransaction;
+ }
+
+}
diff --git a/bank-web/src/main/java/com/angkorteam/fintech/client/dto/PostAccountNumberFormatsRequest.java b/bank-web/src/main/java/com/angkorteam/fintech/client/dto/PostAccountNumberFormatsRequest.java
new file mode 100644
index 00000000..c30938dc
--- /dev/null
+++ b/bank-web/src/main/java/com/angkorteam/fintech/client/dto/PostAccountNumberFormatsRequest.java
@@ -0,0 +1,28 @@
+package com.angkorteam.fintech.client.dto;
+
+import com.angkorteam.fintech.client.renums.AccountNumberPrefixType;
+import com.angkorteam.fintech.client.renums.EntityAccountType;
+
+public class PostAccountNumberFormatsRequest {
+
+ private EntityAccountType accountType;
+
+ private AccountNumberPrefixType prefixType;
+
+ public EntityAccountType getAccountType() {
+ return accountType;
+ }
+
+ public void setAccountType(EntityAccountType accountType) {
+ this.accountType = accountType;
+ }
+
+ public AccountNumberPrefixType getPrefixType() {
+ return prefixType;
+ }
+
+ public void setPrefixType(AccountNumberPrefixType prefixType) {
+ this.prefixType = prefixType;
+ }
+
+}
diff --git a/bank-web/src/main/java/com/angkorteam/fintech/client/dto/PostAccountingRulesRequest.java b/bank-web/src/main/java/com/angkorteam/fintech/client/dto/PostAccountingRulesRequest.java
new file mode 100644
index 00000000..fa9b6d24
--- /dev/null
+++ b/bank-web/src/main/java/com/angkorteam/fintech/client/dto/PostAccountingRulesRequest.java
@@ -0,0 +1,98 @@
+package com.angkorteam.fintech.client.dto;
+
+import java.util.ArrayList;
+import java.util.List;
+
+public class PostAccountingRulesRequest {
+
+ private String name;
+
+ private long officeId;
+
+ private long accountToDebit;
+
+ private long accountToCredit;
+
+ private String description;
+
+ private List debitTags = new ArrayList<>();
+
+ private List creditTags = new ArrayList<>();
+
+ private boolean allowMultipleDebitEntries;
+
+ private boolean allowMultipleCreditEntries;
+
+ public String getName() {
+ return name;
+ }
+
+ public void setName(String name) {
+ this.name = name;
+ }
+
+ public long getOfficeId() {
+ return officeId;
+ }
+
+ public void setOfficeId(long officeId) {
+ this.officeId = officeId;
+ }
+
+ public long getAccountToDebit() {
+ return accountToDebit;
+ }
+
+ public void setAccountToDebit(long accountToDebit) {
+ this.accountToDebit = accountToDebit;
+ }
+
+ public long getAccountToCredit() {
+ return accountToCredit;
+ }
+
+ public void setAccountToCredit(long accountToCredit) {
+ this.accountToCredit = accountToCredit;
+ }
+
+ public String getDescription() {
+ return description;
+ }
+
+ public void setDescription(String description) {
+ this.description = description;
+ }
+
+ public List getDebitTags() {
+ return debitTags;
+ }
+
+ public void setDebitTags(List debitTags) {
+ this.debitTags = debitTags;
+ }
+
+ public List getCreditTags() {
+ return creditTags;
+ }
+
+ public void setCreditTags(List creditTags) {
+ this.creditTags = creditTags;
+ }
+
+ public boolean isAllowMultipleDebitEntries() {
+ return allowMultipleDebitEntries;
+ }
+
+ public void setAllowMultipleDebitEntries(boolean allowMultipleDebitEntries) {
+ this.allowMultipleDebitEntries = allowMultipleDebitEntries;
+ }
+
+ public boolean isAllowMultipleCreditEntries() {
+ return allowMultipleCreditEntries;
+ }
+
+ public void setAllowMultipleCreditEntries(boolean allowMultipleCreditEntries) {
+ this.allowMultipleCreditEntries = allowMultipleCreditEntries;
+ }
+
+}
diff --git a/bank-web/src/main/java/com/angkorteam/fintech/client/dto/PostAdhocRequest.java b/bank-web/src/main/java/com/angkorteam/fintech/client/dto/PostAdhocRequest.java
new file mode 100644
index 00000000..9fb3d607
--- /dev/null
+++ b/bank-web/src/main/java/com/angkorteam/fintech/client/dto/PostAdhocRequest.java
@@ -0,0 +1,87 @@
+package com.angkorteam.fintech.client.dto;
+
+import com.google.gson.annotations.SerializedName;
+
+public class PostAdhocRequest {
+
+ private String name;
+
+ private String query;
+
+ private String tableName;
+
+ private String tableFields;
+
+ private String email;
+
+ private int reportRunFrequency;
+
+ private int reportRunEvery;
+
+ @SerializedName("isActive")
+ private boolean active;
+
+ public String getName() {
+ return name;
+ }
+
+ public void setName(String name) {
+ this.name = name;
+ }
+
+ public String getQuery() {
+ return query;
+ }
+
+ public void setQuery(String query) {
+ this.query = query;
+ }
+
+ public String getTableName() {
+ return tableName;
+ }
+
+ public void setTableName(String tableName) {
+ this.tableName = tableName;
+ }
+
+ public String getTableFields() {
+ return tableFields;
+ }
+
+ public void setTableFields(String tableFields) {
+ this.tableFields = tableFields;
+ }
+
+ public String getEmail() {
+ return email;
+ }
+
+ public void setEmail(String email) {
+ this.email = email;
+ }
+
+ public int getReportRunFrequency() {
+ return reportRunFrequency;
+ }
+
+ public void setReportRunFrequency(int reportRunFrequency) {
+ this.reportRunFrequency = reportRunFrequency;
+ }
+
+ public int getReportRunEvery() {
+ return reportRunEvery;
+ }
+
+ public void setReportRunEvery(int reportRunEvery) {
+ this.reportRunEvery = reportRunEvery;
+ }
+
+ public boolean isActive() {
+ return active;
+ }
+
+ public void setActive(boolean active) {
+ this.active = active;
+ }
+}
diff --git a/bank-web/src/main/java/com/angkorteam/fintech/client/dto/PostAuthenticationResponse.java b/bank-web/src/main/java/com/angkorteam/fintech/client/dto/PostAuthenticationResponse.java
new file mode 100644
index 00000000..8bb4c0e5
--- /dev/null
+++ b/bank-web/src/main/java/com/angkorteam/fintech/client/dto/PostAuthenticationResponse.java
@@ -0,0 +1,117 @@
+package com.angkorteam.fintech.client.dto;
+
+import java.util.List;
+
+public class PostAuthenticationResponse {
+
+ private String username;
+
+ private Long userId;
+
+ private String base64EncodedAuthenticationKey;
+
+ private boolean authenticated;
+
+ private Long officeId;
+
+ private String officeName;
+
+ private Long staffId;
+
+ private String staffDisplayName;
+
+ private EnumOptionData organisationalRole;
+
+ private List roles;
+
+ private List permissions;
+
+ public String getUsername() {
+ return username;
+ }
+
+ public void setUsername(String username) {
+ this.username = username;
+ }
+
+ public Long getUserId() {
+ return userId;
+ }
+
+ public void setUserId(Long userId) {
+ this.userId = userId;
+ }
+
+ public String getBase64EncodedAuthenticationKey() {
+ return base64EncodedAuthenticationKey;
+ }
+
+ public void setBase64EncodedAuthenticationKey(String base64EncodedAuthenticationKey) {
+ this.base64EncodedAuthenticationKey = base64EncodedAuthenticationKey;
+ }
+
+ public boolean isAuthenticated() {
+ return authenticated;
+ }
+
+ public void setAuthenticated(boolean authenticated) {
+ this.authenticated = authenticated;
+ }
+
+ public Long getOfficeId() {
+ return officeId;
+ }
+
+ public void setOfficeId(Long officeId) {
+ this.officeId = officeId;
+ }
+
+ public String getOfficeName() {
+ return officeName;
+ }
+
+ public void setOfficeName(String officeName) {
+ this.officeName = officeName;
+ }
+
+ public Long getStaffId() {
+ return staffId;
+ }
+
+ public void setStaffId(Long staffId) {
+ this.staffId = staffId;
+ }
+
+ public String getStaffDisplayName() {
+ return staffDisplayName;
+ }
+
+ public void setStaffDisplayName(String staffDisplayName) {
+ this.staffDisplayName = staffDisplayName;
+ }
+
+ public EnumOptionData getOrganisationalRole() {
+ return organisationalRole;
+ }
+
+ public void setOrganisationalRole(EnumOptionData organisationalRole) {
+ this.organisationalRole = organisationalRole;
+ }
+
+ public List getRoles() {
+ return roles;
+ }
+
+ public void setRoles(List roles) {
+ this.roles = roles;
+ }
+
+ public List getPermissions() {
+ return permissions;
+ }
+
+ public void setPermissions(List permissions) {
+ this.permissions = permissions;
+ }
+
+}
\ No newline at end of file
diff --git a/bank-web/src/main/java/com/angkorteam/fintech/client/dto/PostBatchesRequest.java b/bank-web/src/main/java/com/angkorteam/fintech/client/dto/PostBatchesRequest.java
new file mode 100644
index 00000000..e290ec6e
--- /dev/null
+++ b/bank-web/src/main/java/com/angkorteam/fintech/client/dto/PostBatchesRequest.java
@@ -0,0 +1,92 @@
+package com.angkorteam.fintech.client.dto;
+
+import java.util.ArrayList;
+import java.util.List;
+
+public class PostBatchesRequest {
+
+ private long requestId;
+
+ private String relativeUrl;
+
+ private String method;
+
+ private List headers = new ArrayList<>();
+
+ private long reference;
+
+ private String body;
+
+ public long getRequestId() {
+ return requestId;
+ }
+
+ public void setRequestId(long requestId) {
+ this.requestId = requestId;
+ }
+
+ public String getRelativeUrl() {
+ return relativeUrl;
+ }
+
+ public void setRelativeUrl(String relativeUrl) {
+ this.relativeUrl = relativeUrl;
+ }
+
+ public String getMethod() {
+ return method;
+ }
+
+ public void setMethod(String method) {
+ this.method = method;
+ }
+
+ public List getHeaders() {
+ return headers;
+ }
+
+ public void setHeaders(List headers) {
+ this.headers = headers;
+ }
+
+ public long getReference() {
+ return reference;
+ }
+
+ public void setReference(long reference) {
+ this.reference = reference;
+ }
+
+ public String getBody() {
+ return body;
+ }
+
+ public void setBody(String body) {
+ this.body = body;
+ }
+
+ public static class Header {
+
+ private String name;
+
+ private String value;
+
+ public String getName() {
+ return name;
+ }
+
+ public void setName(String name) {
+ this.name = name;
+ }
+
+ public String getValue() {
+ return value;
+ }
+
+ public void setValue(String value) {
+ this.value = value;
+ }
+
+ }
+
+}
diff --git a/bank-web/src/main/java/com/angkorteam/fintech/client/dto/PostCenterRequest.java b/bank-web/src/main/java/com/angkorteam/fintech/client/dto/PostCenterRequest.java
new file mode 100644
index 00000000..7c2770b5
--- /dev/null
+++ b/bank-web/src/main/java/com/angkorteam/fintech/client/dto/PostCenterRequest.java
@@ -0,0 +1,122 @@
+package com.angkorteam.fintech.client.dto;
+
+import java.util.ArrayList;
+import java.util.Date;
+import java.util.List;
+
+public class PostCenterRequest {
+
+
+ // id - no used
+ private long id;
+
+ /**
+ * officeId - mandatory
+ */
+ private long officeId;
+
+ /**
+ * name - mandatory
+ */
+ private String name;
+
+ /**
+ * active
+ */
+ private boolean active;
+
+ /**
+ * externalId
+ */
+ private String externalId;
+
+ /**
+ * activationDate - mandatory
+ */
+ private Date activationDate;
+
+ /**
+ * staffId
+ */
+ private long staffId;
+
+ /**
+ * submittedOnDate
+ */
+ private Date submittedOnDate;
+
+ /**
+ * groupMembers
+ */
+ private List groupMembers = new ArrayList<>();
+
+ /**
+ * datatables - no used
+ */
+ private List dataTables = new ArrayList<>();
+
+ public long getOfficeId() {
+ return officeId;
+ }
+
+ public void setOfficeId(long officeId) {
+ this.officeId = officeId;
+ }
+
+ public String getName() {
+ return name;
+ }
+
+ public void setName(String name) {
+ this.name = name;
+ }
+
+ public boolean isActive() {
+ return active;
+ }
+
+ public void setActive(boolean active) {
+ this.active = active;
+ }
+
+ public String getExternalId() {
+ return externalId;
+ }
+
+ public void setExternalId(String externalId) {
+ this.externalId = externalId;
+ }
+
+ public Date getActivationDate() {
+ return activationDate;
+ }
+
+ public void setActivationDate(Date activationDate) {
+ this.activationDate = activationDate;
+ }
+
+ public long getStaffId() {
+ return staffId;
+ }
+
+ public void setStaffId(long staffId) {
+ this.staffId = staffId;
+ }
+
+ public Date getSubmittedOnDate() {
+ return submittedOnDate;
+ }
+
+ public void setSubmittedOnDate(Date submittedOnDate) {
+ this.submittedOnDate = submittedOnDate;
+ }
+
+ public List getGroupMembers() {
+ return groupMembers;
+ }
+
+ public void setGroupMembers(List groupMembers) {
+ this.groupMembers = groupMembers;
+ }
+
+}
diff --git a/bank-web/src/main/java/com/angkorteam/fintech/client/dto/PostChargesRequest.java b/bank-web/src/main/java/com/angkorteam/fintech/client/dto/PostChargesRequest.java
new file mode 100644
index 00000000..c437fd01
--- /dev/null
+++ b/bank-web/src/main/java/com/angkorteam/fintech/client/dto/PostChargesRequest.java
@@ -0,0 +1,168 @@
+package com.angkorteam.fintech.client.dto;
+
+import com.angkorteam.fintech.client.enums.*;
+
+import java.util.Date;
+
+public class PostChargesRequest {
+
+ private long incomeAccountId;
+
+ private long taxGroupId;
+
+ private String name;
+
+ private double amount;
+
+ private String currencyCode;
+
+ private ChargeAppliesTo chargeAppliesTo;
+
+ private ChargeTimeType chargeTimeType;
+
+ private ChargeCalculationType chargeCalculationType;
+
+ private ChargePaymentMode chargePaymentMode;
+
+ private boolean penalty;
+
+ private boolean active;
+
+ private Date feeOnMonthDay;
+
+ private int feeInterval;
+
+ private double minCap;
+
+ private double maxCap;
+
+ private ChargeFrequency feeFrequency;
+
+ public long getIncomeAccountId() {
+ return incomeAccountId;
+ }
+
+ public void setIncomeAccountId(long incomeAccountId) {
+ this.incomeAccountId = incomeAccountId;
+ }
+
+ public long getTaxGroupId() {
+ return taxGroupId;
+ }
+
+ public void setTaxGroupId(long taxGroupId) {
+ this.taxGroupId = taxGroupId;
+ }
+
+ public String getName() {
+ return name;
+ }
+
+ public void setName(String name) {
+ this.name = name;
+ }
+
+ public double getAmount() {
+ return amount;
+ }
+
+ public void setAmount(double amount) {
+ this.amount = amount;
+ }
+
+ public String getCurrencyCode() {
+ return currencyCode;
+ }
+
+ public void setCurrencyCode(String currencyCode) {
+ this.currencyCode = currencyCode;
+ }
+
+ public ChargeAppliesTo getChargeAppliesTo() {
+ return chargeAppliesTo;
+ }
+
+ public void setChargeAppliesTo(ChargeAppliesTo chargeAppliesTo) {
+ this.chargeAppliesTo = chargeAppliesTo;
+ }
+
+ public ChargeTimeType getChargeTimeType() {
+ return chargeTimeType;
+ }
+
+ public void setChargeTimeType(ChargeTimeType chargeTimeType) {
+ this.chargeTimeType = chargeTimeType;
+ }
+
+ public ChargeCalculationType getChargeCalculationType() {
+ return chargeCalculationType;
+ }
+
+ public void setChargeCalculationType(ChargeCalculationType chargeCalculationType) {
+ this.chargeCalculationType = chargeCalculationType;
+ }
+
+ public ChargePaymentMode getChargePaymentMode() {
+ return chargePaymentMode;
+ }
+
+ public void setChargePaymentMode(ChargePaymentMode chargePaymentMode) {
+ this.chargePaymentMode = chargePaymentMode;
+ }
+
+ public boolean isPenalty() {
+ return penalty;
+ }
+
+ public void setPenalty(boolean penalty) {
+ this.penalty = penalty;
+ }
+
+ public boolean isActive() {
+ return active;
+ }
+
+ public void setActive(boolean active) {
+ this.active = active;
+ }
+
+ public Date getFeeOnMonthDay() {
+ return feeOnMonthDay;
+ }
+
+ public void setFeeOnMonthDay(Date feeOnMonthDay) {
+ this.feeOnMonthDay = feeOnMonthDay;
+ }
+
+ public int getFeeInterval() {
+ return feeInterval;
+ }
+
+ public void setFeeInterval(int feeInterval) {
+ this.feeInterval = feeInterval;
+ }
+
+ public double getMinCap() {
+ return minCap;
+ }
+
+ public void setMinCap(double minCap) {
+ this.minCap = minCap;
+ }
+
+ public double getMaxCap() {
+ return maxCap;
+ }
+
+ public void setMaxCap(double maxCap) {
+ this.maxCap = maxCap;
+ }
+
+ public ChargeFrequency getFeeFrequency() {
+ return feeFrequency;
+ }
+
+ public void setFeeFrequency(ChargeFrequency feeFrequency) {
+ this.feeFrequency = feeFrequency;
+ }
+}
diff --git a/bank-web/src/main/java/com/angkorteam/fintech/client/dto/PostClientRequest.java b/bank-web/src/main/java/com/angkorteam/fintech/client/dto/PostClientRequest.java
new file mode 100644
index 00000000..64a3da4c
--- /dev/null
+++ b/bank-web/src/main/java/com/angkorteam/fintech/client/dto/PostClientRequest.java
@@ -0,0 +1,655 @@
+package com.angkorteam.fintech.client.dto;
+
+import com.angkorteam.fintech.client.enums.LegalForm;
+import com.google.gson.annotations.SerializedName;
+
+import java.util.ArrayList;
+import java.util.Date;
+import java.util.List;
+import java.util.Map;
+
+public class PostClientRequest {
+
+ @SerializedName("isStaff")
+ private boolean staff;
+
+ private long officeId;
+
+ private long groupId;
+
+ private long staffId;
+
+ private long genderId;
+
+ private long clientTypeId;
+
+ private long clientClassificationId;
+
+ @SerializedName("savingsProductId")
+ private long savingProductId;
+
+ @SerializedName("legalFormId")
+ private LegalForm legalForm;
+
+ private String accountNo;
+
+ private String externalId;
+
+ private String mobileNo;
+
+ private String emailAddress;
+
+ @SerializedName("firstname")
+ private String firstName;
+
+ @SerializedName("middlename")
+ private String middleName;
+
+ @SerializedName("lastname")
+ private String lastName;
+
+ @SerializedName("fullname")
+ private String fullName;
+
+ private Date dateOfBirth;
+
+ private boolean active;
+
+ private Date activationDate;
+
+ private Date submittedOnDate;
+
+ @SerializedName("clientNonPersonDetails")
+ private ClientNonPersonDetail clientNonPersonDetail;
+
+ @SerializedName("address")
+ private List address = new ArrayList<>();
+
+ private List familyMembers = new ArrayList<>();
+
+ private List datatables = new ArrayList<>();
+
+ public List getFamilyMembers() {
+ return familyMembers;
+ }
+
+ public void setFamilyMembers(List familyMembers) {
+ this.familyMembers = familyMembers;
+ }
+
+ public List getDatatables() {
+ return datatables;
+ }
+
+ public void setDatatables(List datatables) {
+ this.datatables = datatables;
+ }
+
+ public String getAccountNo() {
+ return accountNo;
+ }
+
+ public void setAccountNo(String accountNo) {
+ this.accountNo = accountNo;
+ }
+
+ public String getExternalId() {
+ return externalId;
+ }
+
+ public void setExternalId(String externalId) {
+ this.externalId = externalId;
+ }
+
+ public String getMobileNo() {
+ return mobileNo;
+ }
+
+ public void setMobileNo(String mobileNo) {
+ this.mobileNo = mobileNo;
+ }
+
+ public String getEmailAddress() {
+ return emailAddress;
+ }
+
+ public void setEmailAddress(String emailAddress) {
+ this.emailAddress = emailAddress;
+ }
+
+ public String getFirstName() {
+ return firstName;
+ }
+
+ public void setFirstName(String firstName) {
+ this.firstName = firstName;
+ }
+
+ public String getMiddleName() {
+ return middleName;
+ }
+
+ public void setMiddleName(String middleName) {
+ this.middleName = middleName;
+ }
+
+ public String getLastName() {
+ return lastName;
+ }
+
+ public void setLastName(String lastName) {
+ this.lastName = lastName;
+ }
+
+ public Date getDateOfBirth() {
+ return dateOfBirth;
+ }
+
+ public void setDateOfBirth(Date dateOfBirth) {
+ this.dateOfBirth = dateOfBirth;
+ }
+
+ public Date getSubmittedOnDate() {
+ return submittedOnDate;
+ }
+
+ public void setSubmittedOnDate(Date submittedOnDate) {
+ this.submittedOnDate = submittedOnDate;
+ }
+
+ public long getOfficeId() {
+ return officeId;
+ }
+
+ public void setOfficeId(long officeId) {
+ this.officeId = officeId;
+ }
+
+ public String getFullName() {
+ return fullName;
+ }
+
+ public void setFullName(String fullName) {
+ this.fullName = fullName;
+ }
+
+ public long getGroupId() {
+ return groupId;
+ }
+
+ public void setGroupId(long groupId) {
+ this.groupId = groupId;
+ }
+
+ public boolean isActive() {
+ return active;
+ }
+
+ public void setActive(boolean active) {
+ this.active = active;
+ }
+
+ public Date getActivationDate() {
+ return activationDate;
+ }
+
+ public void setActivationDate(Date activationDate) {
+ this.activationDate = activationDate;
+ }
+
+ public boolean isStaff() {
+ return staff;
+ }
+
+ public void setStaff(boolean staff) {
+ this.staff = staff;
+ }
+
+ public long getStaffId() {
+ return staffId;
+ }
+
+ public void setStaffId(long staffId) {
+ this.staffId = staffId;
+ }
+
+ public long getGenderId() {
+ return genderId;
+ }
+
+ public void setGenderId(long genderId) {
+ this.genderId = genderId;
+ }
+
+ public long getClientTypeId() {
+ return clientTypeId;
+ }
+
+ public void setClientTypeId(long clientTypeId) {
+ this.clientTypeId = clientTypeId;
+ }
+
+ public long getClientClassificationId() {
+ return clientClassificationId;
+ }
+
+ public void setClientClassificationId(long clientClassificationId) {
+ this.clientClassificationId = clientClassificationId;
+ }
+
+ public long getSavingProductId() {
+ return savingProductId;
+ }
+
+ public void setSavingProductId(long savingProductId) {
+ this.savingProductId = savingProductId;
+ }
+
+ public LegalForm getLegalForm() {
+ return legalForm;
+ }
+
+ public void setLegalForm(LegalForm legalForm) {
+ this.legalForm = legalForm;
+ }
+
+ public ClientNonPersonDetail getClientNonPersonDetail() {
+ return clientNonPersonDetail;
+ }
+
+ public void setClientNonPersonDetail(ClientNonPersonDetail clientNonPersonDetail) {
+ this.clientNonPersonDetail = clientNonPersonDetail;
+ }
+
+ public List getAddress() {
+ return address;
+ }
+
+ public void setAddress(List address) {
+ this.address = address;
+ }
+
+ public static class ClientNonPersonDetail {
+
+ private String incorpNumber;
+
+ @SerializedName("remarks")
+ private String remarks;
+
+ private Date incorpValidityTillDate;
+
+ private long constitutionId;
+
+ private long mainBusinessLineId;
+
+ public ClientNonPersonDetail() {
+ }
+
+ public ClientNonPersonDetail(String incorpNumber, String remarks, Date incorpValidityTillDate, long constitutionId, long mainBusinessLineId) {
+ this.incorpNumber = incorpNumber;
+ this.remarks = remarks;
+ this.incorpValidityTillDate = incorpValidityTillDate;
+ this.constitutionId = constitutionId;
+ this.mainBusinessLineId = mainBusinessLineId;
+ }
+
+ public String getIncorpNumber() {
+ return incorpNumber;
+ }
+
+ public void setIncorpNumber(String incorpNumber) {
+ this.incorpNumber = incorpNumber;
+ }
+
+ public String getRemarks() {
+ return remarks;
+ }
+
+ public void setRemarks(String remarks) {
+ this.remarks = remarks;
+ }
+
+ public Date getIncorpValidityTillDate() {
+ return incorpValidityTillDate;
+ }
+
+ public void setIncorpValidityTillDate(Date incorpValidityTillDate) {
+ this.incorpValidityTillDate = incorpValidityTillDate;
+ }
+
+ public long getConstitutionId() {
+ return constitutionId;
+ }
+
+ public void setConstitutionId(long constitutionId) {
+ this.constitutionId = constitutionId;
+ }
+
+ public long getMainBusinessLineId() {
+ return mainBusinessLineId;
+ }
+
+ public void setMainBusinessLineId(long mainBusinessLineId) {
+ this.mainBusinessLineId = mainBusinessLineId;
+ }
+
+ }
+
+ public static class Address {
+
+ private long stateProvinceId;
+
+ private long countryId;
+
+ private long addressTypeId;
+
+ @SerializedName("isActive")
+ private boolean active;
+
+ private String street;
+
+ private String addressLine1;
+
+ private String addressLine2;
+
+ private String addressLine3;
+
+ private String townVillage;
+
+ private String city;
+
+ private String countyDistrict;
+
+ private String postalCode;
+
+ private double latitude;
+
+ private double longitude;
+
+ private String createdBy;
+
+ /**
+ * yyyy-MM-dd
+ */
+ private Date createdOn;
+
+ private String updatedBy;
+
+ /**
+ * yyyy-MM-dd
+ */
+ private Date updatedOn;
+
+ public long getStateProvinceId() {
+ return stateProvinceId;
+ }
+
+ public void setStateProvinceId(long stateProvinceId) {
+ this.stateProvinceId = stateProvinceId;
+ }
+
+ public long getCountryId() {
+ return countryId;
+ }
+
+ public void setCountryId(long countryId) {
+ this.countryId = countryId;
+ }
+
+ public long getAddressTypeId() {
+ return addressTypeId;
+ }
+
+ public void setAddressTypeId(long addressTypeId) {
+ this.addressTypeId = addressTypeId;
+ }
+
+ public boolean isActive() {
+ return active;
+ }
+
+ public void setActive(boolean active) {
+ this.active = active;
+ }
+
+ public String getStreet() {
+ return street;
+ }
+
+ public void setStreet(String street) {
+ this.street = street;
+ }
+
+ public String getAddressLine1() {
+ return addressLine1;
+ }
+
+ public void setAddressLine1(String addressLine1) {
+ this.addressLine1 = addressLine1;
+ }
+
+ public String getAddressLine2() {
+ return addressLine2;
+ }
+
+ public void setAddressLine2(String addressLine2) {
+ this.addressLine2 = addressLine2;
+ }
+
+ public String getAddressLine3() {
+ return addressLine3;
+ }
+
+ public void setAddressLine3(String addressLine3) {
+ this.addressLine3 = addressLine3;
+ }
+
+ public String getTownVillage() {
+ return townVillage;
+ }
+
+ public void setTownVillage(String townVillage) {
+ this.townVillage = townVillage;
+ }
+
+ public String getCity() {
+ return city;
+ }
+
+ public void setCity(String city) {
+ this.city = city;
+ }
+
+ public String getCountyDistrict() {
+ return countyDistrict;
+ }
+
+ public void setCountyDistrict(String countyDistrict) {
+ this.countyDistrict = countyDistrict;
+ }
+
+ public String getPostalCode() {
+ return postalCode;
+ }
+
+ public void setPostalCode(String postalCode) {
+ this.postalCode = postalCode;
+ }
+
+ public double getLatitude() {
+ return latitude;
+ }
+
+ public void setLatitude(double latitude) {
+ this.latitude = latitude;
+ }
+
+ public double getLongitude() {
+ return longitude;
+ }
+
+ public void setLongitude(double longitude) {
+ this.longitude = longitude;
+ }
+
+ public String getCreatedBy() {
+ return createdBy;
+ }
+
+ public void setCreatedBy(String createdBy) {
+ this.createdBy = createdBy;
+ }
+
+ public Date getCreatedOn() {
+ return createdOn;
+ }
+
+ public void setCreatedOn(Date createdOn) {
+ this.createdOn = createdOn;
+ }
+
+ public String getUpdatedBy() {
+ return updatedBy;
+ }
+
+ public void setUpdatedBy(String updatedBy) {
+ this.updatedBy = updatedBy;
+ }
+
+ public Date getUpdatedOn() {
+ return updatedOn;
+ }
+
+ public void setUpdatedOn(Date updatedOn) {
+ this.updatedOn = updatedOn;
+ }
+
+ }
+
+ public static class FamilyMember {
+
+ private String firstName;
+
+ private String middleName;
+
+ private String lastName;
+
+ private String qualification;
+
+ private String mobileNumber;
+
+ private long age;
+
+ private boolean dependent;
+
+ private long relationshipId;
+
+ private long maritalStatusId;
+
+ private long genderId;
+
+ private long professionId;
+
+ private Date dateOfBirth;
+
+ public String getFirstName() {
+ return firstName;
+ }
+
+ public void setFirstName(String firstName) {
+ this.firstName = firstName;
+ }
+
+ public String getMiddleName() {
+ return middleName;
+ }
+
+ public void setMiddleName(String middleName) {
+ this.middleName = middleName;
+ }
+
+ public String getLastName() {
+ return lastName;
+ }
+
+ public void setLastName(String lastName) {
+ this.lastName = lastName;
+ }
+
+ public String getQualification() {
+ return qualification;
+ }
+
+ public void setQualification(String qualification) {
+ this.qualification = qualification;
+ }
+
+ public String getMobileNumber() {
+ return mobileNumber;
+ }
+
+ public void setMobileNumber(String mobileNumber) {
+ this.mobileNumber = mobileNumber;
+ }
+
+ public long getAge() {
+ return age;
+ }
+
+ public void setAge(long age) {
+ this.age = age;
+ }
+
+ public boolean isDependent() {
+ return dependent;
+ }
+
+ public void setDependent(boolean dependent) {
+ this.dependent = dependent;
+ }
+
+ public long getRelationshipId() {
+ return relationshipId;
+ }
+
+ public void setRelationshipId(long relationshipId) {
+ this.relationshipId = relationshipId;
+ }
+
+ public long getMaritalStatusId() {
+ return maritalStatusId;
+ }
+
+ public void setMaritalStatusId(long maritalStatusId) {
+ this.maritalStatusId = maritalStatusId;
+ }
+
+ public long getGenderId() {
+ return genderId;
+ }
+
+ public void setGenderId(long genderId) {
+ this.genderId = genderId;
+ }
+
+ public long getProfessionId() {
+ return professionId;
+ }
+
+ public void setProfessionId(long professionId) {
+ this.professionId = professionId;
+ }
+
+ public Date getDateOfBirth() {
+ return dateOfBirth;
+ }
+
+ public void setDateOfBirth(Date dateOfBirth) {
+ this.dateOfBirth = dateOfBirth;
+ }
+
+ }
+
+
+
+}
diff --git a/bank-web/src/main/java/com/angkorteam/fintech/client/dto/PostCodeValueRequest.java b/bank-web/src/main/java/com/angkorteam/fintech/client/dto/PostCodeValueRequest.java
new file mode 100644
index 00000000..9d2a4a44
--- /dev/null
+++ b/bank-web/src/main/java/com/angkorteam/fintech/client/dto/PostCodeValueRequest.java
@@ -0,0 +1,59 @@
+package com.angkorteam.fintech.client.dto;
+
+import com.google.gson.annotations.SerializedName;
+
+public class PostCodeValueRequest {
+
+ private String name;
+
+ private long position;
+
+ private String description;
+
+ @SerializedName("isActive")
+ private boolean active;
+
+ @SerializedName("isMandatory")
+ private boolean mandatory;
+
+ public String getName() {
+ return name;
+ }
+
+ public void setName(String name) {
+ this.name = name;
+ }
+
+ public long getPosition() {
+ return position;
+ }
+
+ public void setPosition(long position) {
+ this.position = position;
+ }
+
+ public String getDescription() {
+ return description;
+ }
+
+ public void setDescription(String description) {
+ this.description = description;
+ }
+
+ public boolean isActive() {
+ return active;
+ }
+
+ public void setActive(boolean active) {
+ this.active = active;
+ }
+
+ public boolean isMandatory() {
+ return mandatory;
+ }
+
+ public void setMandatory(boolean mandatory) {
+ this.mandatory = mandatory;
+ }
+
+}
diff --git a/bank-web/src/main/java/com/angkorteam/fintech/client/dto/PostDataTableRegisterRequest.java b/bank-web/src/main/java/com/angkorteam/fintech/client/dto/PostDataTableRegisterRequest.java
new file mode 100644
index 00000000..faac1549
--- /dev/null
+++ b/bank-web/src/main/java/com/angkorteam/fintech/client/dto/PostDataTableRegisterRequest.java
@@ -0,0 +1,17 @@
+package com.angkorteam.fintech.client.dto;
+
+import com.angkorteam.fintech.client.renums.DataTableCategoryEnum;
+
+public class PostDataTableRegisterRequest {
+
+ private DataTableCategoryEnum category;
+
+ public DataTableCategoryEnum getCategory() {
+ return category;
+ }
+
+ public void setCategory(DataTableCategoryEnum category) {
+ this.category = category;
+ }
+
+}
diff --git a/bank-web/src/main/java/com/angkorteam/fintech/client/dto/PostDataTableRequest.java b/bank-web/src/main/java/com/angkorteam/fintech/client/dto/PostDataTableRequest.java
new file mode 100644
index 00000000..63a38285
--- /dev/null
+++ b/bank-web/src/main/java/com/angkorteam/fintech/client/dto/PostDataTableRequest.java
@@ -0,0 +1,151 @@
+package com.angkorteam.fintech.client.dto;
+
+import com.angkorteam.fintech.client.enums.TableTypeEnum;
+
+import java.util.ArrayList;
+import java.util.List;
+
+public class PostDataTableRequest {
+
+ private String datatableName;
+
+ private TableTypeEnum apptableName;
+
+ private boolean multiRow;
+
+ private List columns = new ArrayList<>();
+
+ public String getDatatableName() {
+ return datatableName;
+ }
+
+ public void setDatatableName(String datatableName) {
+ this.datatableName = datatableName;
+ }
+
+ public TableTypeEnum getApptableName() {
+ return apptableName;
+ }
+
+ public void setApptableName(TableTypeEnum apptableName) {
+ this.apptableName = apptableName;
+ }
+
+ public boolean isMultiRow() {
+ return multiRow;
+ }
+
+ public void setMultiRow(boolean multiRow) {
+ this.multiRow = multiRow;
+ }
+
+ public List getColumns() {
+ return columns;
+ }
+
+ public void setColumns(List columns) {
+ this.columns = columns;
+ }
+
+ public static class Column {
+
+ private String type;
+
+ private String name;
+
+ private int length;
+
+ private String code;
+
+ private boolean mandatory;
+
+ private Column() {
+ }
+
+ public static Column string(String name, boolean mandatory, int length) {
+ Column column = new Column();
+ column.type = "String";
+ column.name = name;
+ column.mandatory = mandatory;
+ column.length = length;
+ return column;
+ }
+
+ public static Column number(String name, boolean mandatory) {
+ Column column = new Column();
+ column.type = "Number";
+ column.name = name;
+ column.mandatory = mandatory;
+ return column;
+ }
+
+ public static Column yesno(String name, boolean mandatory) {
+ Column column = new Column();
+ column.type = "Boolean";
+ column.name = name;
+ column.mandatory = mandatory;
+ return column;
+ }
+
+ public static Column decimal(String name, boolean mandatory) {
+ Column column = new Column();
+ column.type = "Decimal";
+ column.name = name;
+ column.mandatory = mandatory;
+ return column;
+ }
+
+ public static Column date(String name, boolean mandatory) {
+ Column column = new Column();
+ column.type = "Date";
+ column.name = name;
+ column.mandatory = mandatory;
+ return column;
+ }
+
+ public static Column datetime(String name, boolean mandatory) {
+ Column column = new Column();
+ column.type = "DateTime";
+ column.name = name;
+ column.mandatory = mandatory;
+ return column;
+ }
+
+ public static Column text(String name, boolean mandatory) {
+ Column column = new Column();
+ column.type = "Text";
+ column.name = name;
+ column.mandatory = mandatory;
+ return column;
+ }
+
+ public static Column dropdown(String name, boolean mandatory, String code) {
+ Column column = new Column();
+ column.type = "DropDown";
+ column.name = name;
+ column.mandatory = mandatory;
+ column.code = code;
+ return column;
+ }
+
+ public String getType() {
+ return type;
+ }
+
+ public String getName() {
+ return name;
+ }
+
+ public int getLength() {
+ return length;
+ }
+
+ public String getCode() {
+ return code;
+ }
+
+ public boolean isMandatory() {
+ return mandatory;
+ }
+ }
+}
diff --git a/bank-web/src/main/java/com/angkorteam/fintech/client/dto/PostDatatableEntityCheckRequest.java b/bank-web/src/main/java/com/angkorteam/fintech/client/dto/PostDatatableEntityCheckRequest.java
new file mode 100644
index 00000000..ae236104
--- /dev/null
+++ b/bank-web/src/main/java/com/angkorteam/fintech/client/dto/PostDatatableEntityCheckRequest.java
@@ -0,0 +1,58 @@
+package com.angkorteam.fintech.client.dto;
+
+import com.angkorteam.fintech.client.enums.EntityStatusEnum;
+import com.angkorteam.fintech.client.enums.EntityTypeEnum;
+
+public class PostDatatableEntityCheckRequest {
+
+ private String datatableName;
+
+ private EntityTypeEnum entity;
+
+ private long productId;
+
+ private EntityStatusEnum status;
+
+ private boolean systemDefined;
+
+ public String getDatatableName() {
+ return datatableName;
+ }
+
+ public void setDatatableName(String datatableName) {
+ this.datatableName = datatableName;
+ }
+
+ public EntityTypeEnum getEntity() {
+ return entity;
+ }
+
+ public void setEntity(EntityTypeEnum entity) {
+ this.entity = entity;
+ }
+
+ public long getProductId() {
+ return productId;
+ }
+
+ public void setProductId(long productId) {
+ this.productId = productId;
+ }
+
+ public EntityStatusEnum getStatus() {
+ return status;
+ }
+
+ public void setStatus(EntityStatusEnum status) {
+ this.status = status;
+ }
+
+ public boolean isSystemDefined() {
+ return systemDefined;
+ }
+
+ public void setSystemDefined(boolean systemDefined) {
+ this.systemDefined = systemDefined;
+ }
+
+}
diff --git a/bank-web/src/main/java/com/angkorteam/fintech/client/dto/PostEmailCampaignActivationRequest.java b/bank-web/src/main/java/com/angkorteam/fintech/client/dto/PostEmailCampaignActivationRequest.java
new file mode 100644
index 00000000..03c09f2f
--- /dev/null
+++ b/bank-web/src/main/java/com/angkorteam/fintech/client/dto/PostEmailCampaignActivationRequest.java
@@ -0,0 +1,17 @@
+package com.angkorteam.fintech.client.dto;
+
+import java.util.Date;
+
+public class PostEmailCampaignActivationRequest {
+
+ private Date activationDate;
+
+ public Date getActivationDate() {
+ return activationDate;
+ }
+
+ public void setActivationDate(Date activationDate) {
+ this.activationDate = activationDate;
+ }
+
+}
diff --git a/bank-web/src/main/java/com/angkorteam/fintech/client/dto/PostEmailCampaignCloseRequest.java b/bank-web/src/main/java/com/angkorteam/fintech/client/dto/PostEmailCampaignCloseRequest.java
new file mode 100644
index 00000000..cc3c5a82
--- /dev/null
+++ b/bank-web/src/main/java/com/angkorteam/fintech/client/dto/PostEmailCampaignCloseRequest.java
@@ -0,0 +1,17 @@
+package com.angkorteam.fintech.client.dto;
+
+import java.util.Date;
+
+public class PostEmailCampaignCloseRequest {
+
+ private Date closureDate;
+
+ public Date getClosureDate() {
+ return closureDate;
+ }
+
+ public void setClosureDate(Date closureDate) {
+ this.closureDate = closureDate;
+ }
+
+}
diff --git a/bank-web/src/main/java/com/angkorteam/fintech/client/dto/PostEmailCampaignRequest.java b/bank-web/src/main/java/com/angkorteam/fintech/client/dto/PostEmailCampaignRequest.java
new file mode 100644
index 00000000..2276aedc
--- /dev/null
+++ b/bank-web/src/main/java/com/angkorteam/fintech/client/dto/PostEmailCampaignRequest.java
@@ -0,0 +1,127 @@
+package com.angkorteam.fintech.client.dto;
+
+import java.util.Date;
+
+public class PostEmailCampaignRequest {
+
+ private long businessRuleId;
+
+ private long stretchyReportId;
+
+ private String campaignName;
+
+ private long campaignType;
+
+ private String paramValue;
+
+ private String emailSubject;
+
+ private String emailMessage;
+
+ private String stretchyReportParamMap;
+
+ private int emailAttachmentFileFormatId;
+
+ private Date submittedOnDate;
+
+ private String recurrence;
+
+ private Date recurrenceStartDate;
+
+ public long getBusinessRuleId() {
+ return businessRuleId;
+ }
+
+ public void setBusinessRuleId(long businessRuleId) {
+ this.businessRuleId = businessRuleId;
+ }
+
+ public long getStretchyReportId() {
+ return stretchyReportId;
+ }
+
+ public void setStretchyReportId(long stretchyReportId) {
+ this.stretchyReportId = stretchyReportId;
+ }
+
+ public String getCampaignName() {
+ return campaignName;
+ }
+
+ public void setCampaignName(String campaignName) {
+ this.campaignName = campaignName;
+ }
+
+ public long getCampaignType() {
+ return campaignType;
+ }
+
+ public void setCampaignType(long campaignType) {
+ this.campaignType = campaignType;
+ }
+
+ public String getParamValue() {
+ return paramValue;
+ }
+
+ public void setParamValue(String paramValue) {
+ this.paramValue = paramValue;
+ }
+
+ public String getEmailSubject() {
+ return emailSubject;
+ }
+
+ public void setEmailSubject(String emailSubject) {
+ this.emailSubject = emailSubject;
+ }
+
+ public String getEmailMessage() {
+ return emailMessage;
+ }
+
+ public void setEmailMessage(String emailMessage) {
+ this.emailMessage = emailMessage;
+ }
+
+ public String getStretchyReportParamMap() {
+ return stretchyReportParamMap;
+ }
+
+ public void setStretchyReportParamMap(String stretchyReportParamMap) {
+ this.stretchyReportParamMap = stretchyReportParamMap;
+ }
+
+ public int getEmailAttachmentFileFormatId() {
+ return emailAttachmentFileFormatId;
+ }
+
+ public void setEmailAttachmentFileFormatId(int emailAttachmentFileFormatId) {
+ this.emailAttachmentFileFormatId = emailAttachmentFileFormatId;
+ }
+
+ public Date getSubmittedOnDate() {
+ return submittedOnDate;
+ }
+
+ public void setSubmittedOnDate(Date submittedOnDate) {
+ this.submittedOnDate = submittedOnDate;
+ }
+
+ public String getRecurrence() {
+ return recurrence;
+ }
+
+ public void setRecurrence(String recurrence) {
+ this.recurrence = recurrence;
+ }
+
+ public Date getRecurrenceStartDate() {
+ return recurrenceStartDate;
+ }
+
+ public void setRecurrenceStartDate(Date recurrenceStartDate) {
+ this.recurrenceStartDate = recurrenceStartDate;
+ }
+
+}
diff --git a/bank-web/src/main/java/com/angkorteam/fintech/client/dto/PostEmailRequest.java b/bank-web/src/main/java/com/angkorteam/fintech/client/dto/PostEmailRequest.java
new file mode 100644
index 00000000..f4b2f92e
--- /dev/null
+++ b/bank-web/src/main/java/com/angkorteam/fintech/client/dto/PostEmailRequest.java
@@ -0,0 +1,107 @@
+package com.angkorteam.fintech.client.dto;
+
+import java.util.Date;
+
+public class PostEmailRequest {
+
+ private String name;
+
+ private long groupId;
+
+ private long clientId;
+
+ private long staffId;
+
+ private String emailMessage;
+
+ private String emailSubject;
+
+ private Date startDateTime;
+
+ private long emailAttachmentFileFormatId;
+
+ private String emailRecipients;
+
+ private long stretchyReportId;
+
+ public long getStretchyReportId() {
+ return stretchyReportId;
+ }
+
+ public void setStretchyReportId(long stretchyReportId) {
+ this.stretchyReportId = stretchyReportId;
+ }
+
+ public String getEmailRecipients() {
+ return emailRecipients;
+ }
+
+ public void setEmailRecipients(String emailRecipients) {
+ this.emailRecipients = emailRecipients;
+ }
+
+ public long getEmailAttachmentFileFormatId() {
+ return emailAttachmentFileFormatId;
+ }
+
+ public void setEmailAttachmentFileFormatId(long emailAttachmentFileFormatId) {
+ this.emailAttachmentFileFormatId = emailAttachmentFileFormatId;
+ }
+
+ public Date getStartDateTime() {
+ return startDateTime;
+ }
+
+ public void setStartDateTime(Date startDateTime) {
+ this.startDateTime = startDateTime;
+ }
+
+ public String getName() {
+ return name;
+ }
+
+ public void setName(String name) {
+ this.name = name;
+ }
+
+ public String getEmailSubject() {
+ return emailSubject;
+ }
+
+ public void setEmailSubject(String emailSubject) {
+ this.emailSubject = emailSubject;
+ }
+
+ public long getGroupId() {
+ return groupId;
+ }
+
+ public void setGroupId(long groupId) {
+ this.groupId = groupId;
+ }
+
+ public long getClientId() {
+ return clientId;
+ }
+
+ public void setClientId(long clientId) {
+ this.clientId = clientId;
+ }
+
+ public long getStaffId() {
+ return staffId;
+ }
+
+ public void setStaffId(long staffId) {
+ this.staffId = staffId;
+ }
+
+ public String getEmailMessage() {
+ return emailMessage;
+ }
+
+ public void setEmailMessage(String emailMessage) {
+ this.emailMessage = emailMessage;
+ }
+
+}
diff --git a/bank-web/src/main/java/com/angkorteam/fintech/client/dto/PostFinancialActivityAccountsRequest.java b/bank-web/src/main/java/com/angkorteam/fintech/client/dto/PostFinancialActivityAccountsRequest.java
new file mode 100644
index 00000000..12ee45ea
--- /dev/null
+++ b/bank-web/src/main/java/com/angkorteam/fintech/client/dto/PostFinancialActivityAccountsRequest.java
@@ -0,0 +1,29 @@
+package com.angkorteam.fintech.client.dto;
+
+import com.angkorteam.fintech.client.renums.FinancialActivity;
+import com.google.gson.annotations.SerializedName;
+
+public class PostFinancialActivityAccountsRequest {
+
+ @SerializedName("financialActivityId")
+ private FinancialActivity financialActivity;
+
+ private long glAccountId;
+
+ public FinancialActivity getFinancialActivity() {
+ return financialActivity;
+ }
+
+ public void setFinancialActivity(FinancialActivity financialActivity) {
+ this.financialActivity = financialActivity;
+ }
+
+ public long getGlAccountId() {
+ return glAccountId;
+ }
+
+ public void setGlAccountId(long glAccountId) {
+ this.glAccountId = glAccountId;
+ }
+
+}
diff --git a/bank-web/src/main/java/com/angkorteam/fintech/client/dto/PostFloatingRatesRequest.java b/bank-web/src/main/java/com/angkorteam/fintech/client/dto/PostFloatingRatesRequest.java
new file mode 100644
index 00000000..0bb72310
--- /dev/null
+++ b/bank-web/src/main/java/com/angkorteam/fintech/client/dto/PostFloatingRatesRequest.java
@@ -0,0 +1,97 @@
+package com.angkorteam.fintech.client.dto;
+
+import com.google.gson.annotations.SerializedName;
+
+import java.util.ArrayList;
+import java.util.Date;
+import java.util.List;
+
+public class PostFloatingRatesRequest {
+
+ private String name;
+
+ @SerializedName("isBaseLendingRate")
+ private boolean baseLendingRate;
+
+ @SerializedName("isActive")
+ private boolean active;
+
+ private List ratePeriods = new ArrayList<>();
+
+ public String getName() {
+ return name;
+ }
+
+ public void setName(String name) {
+ this.name = name;
+ }
+
+ public boolean isBaseLendingRate() {
+ return baseLendingRate;
+ }
+
+ public void setBaseLendingRate(boolean baseLendingRate) {
+ this.baseLendingRate = baseLendingRate;
+ }
+
+ public boolean isActive() {
+ return active;
+ }
+
+ public void setActive(boolean active) {
+ this.active = active;
+ }
+
+ public List getRatePeriods() {
+ return ratePeriods;
+ }
+
+ public void setRatePeriods(List ratePeriods) {
+ this.ratePeriods = ratePeriods;
+ }
+
+ public static class RatePeriod {
+
+ private Date fromDate;
+
+ private double interestRate;
+
+ @SerializedName("isDifferentialToBaseLendingRate")
+ private boolean differentialToBaseLendingRate;
+
+ public RatePeriod() {
+ }
+
+ public RatePeriod(Date fromDate, double interestRate, boolean differentialToBaseLendingRate) {
+ this.fromDate = fromDate;
+ this.interestRate = interestRate;
+ this.differentialToBaseLendingRate = differentialToBaseLendingRate;
+ }
+
+ public Date getFromDate() {
+ return fromDate;
+ }
+
+ public void setFromDate(Date fromDate) {
+ this.fromDate = fromDate;
+ }
+
+ public double getInterestRate() {
+ return interestRate;
+ }
+
+ public void setInterestRate(double interestRate) {
+ this.interestRate = interestRate;
+ }
+
+ public boolean isDifferentialToBaseLendingRate() {
+ return differentialToBaseLendingRate;
+ }
+
+ public void setDifferentialToBaseLendingRate(boolean differentialToBaseLendingRate) {
+ this.differentialToBaseLendingRate = differentialToBaseLendingRate;
+ }
+
+ }
+
+}
diff --git a/bank-web/src/main/java/com/angkorteam/fintech/client/dto/PostFundsRequest.java b/bank-web/src/main/java/com/angkorteam/fintech/client/dto/PostFundsRequest.java
new file mode 100644
index 00000000..09ad1d4c
--- /dev/null
+++ b/bank-web/src/main/java/com/angkorteam/fintech/client/dto/PostFundsRequest.java
@@ -0,0 +1,25 @@
+package com.angkorteam.fintech.client.dto;
+
+public class PostFundsRequest {
+
+ private String name;
+
+ private String externalId;
+
+ public String getName() {
+ return name;
+ }
+
+ public void setName(String name) {
+ this.name = name;
+ }
+
+ public String getExternalId() {
+ return externalId;
+ }
+
+ public void setExternalId(String externalId) {
+ this.externalId = externalId;
+ }
+
+}
diff --git a/bank-web/src/main/java/com/angkorteam/fintech/client/dto/PostGLAccountsRequest.java b/bank-web/src/main/java/com/angkorteam/fintech/client/dto/PostGLAccountsRequest.java
new file mode 100644
index 00000000..129d762f
--- /dev/null
+++ b/bank-web/src/main/java/com/angkorteam/fintech/client/dto/PostGLAccountsRequest.java
@@ -0,0 +1,97 @@
+package com.angkorteam.fintech.client.dto;
+
+import com.angkorteam.fintech.client.enums.AccountUsage;
+import com.angkorteam.fintech.client.renums.GLAccountType;
+
+public class PostGLAccountsRequest {
+
+ private String name;
+
+ private String glCode;
+
+ private boolean manualEntriesAllowed;
+
+ private GLAccountType type;
+
+ private int tagId;
+
+ private long parentId;
+
+ private AccountUsage usage;
+
+ private String description;
+
+ private boolean disabled;
+
+ public String getName() {
+ return name;
+ }
+
+ public void setName(String name) {
+ this.name = name;
+ }
+
+ public String getGlCode() {
+ return glCode;
+ }
+
+ public void setGlCode(String glCode) {
+ this.glCode = glCode;
+ }
+
+ public boolean isManualEntriesAllowed() {
+ return manualEntriesAllowed;
+ }
+
+ public void setManualEntriesAllowed(boolean manualEntriesAllowed) {
+ this.manualEntriesAllowed = manualEntriesAllowed;
+ }
+
+ public GLAccountType getType() {
+ return type;
+ }
+
+ public void setType(GLAccountType type) {
+ this.type = type;
+ }
+
+ public int getTagId() {
+ return tagId;
+ }
+
+ public void setTagId(int tagId) {
+ this.tagId = tagId;
+ }
+
+ public long getParentId() {
+ return parentId;
+ }
+
+ public void setParentId(long parentId) {
+ this.parentId = parentId;
+ }
+
+ public AccountUsage getUsage() {
+ return usage;
+ }
+
+ public void setUsage(AccountUsage usage) {
+ this.usage = usage;
+ }
+
+ public String getDescription() {
+ return description;
+ }
+
+ public void setDescription(String description) {
+ this.description = description;
+ }
+
+ public boolean isDisabled() {
+ return disabled;
+ }
+
+ public void setDisabled(boolean disabled) {
+ this.disabled = disabled;
+ }
+}
diff --git a/bank-web/src/main/java/com/angkorteam/fintech/client/dto/PostGLClosureRequest.java b/bank-web/src/main/java/com/angkorteam/fintech/client/dto/PostGLClosureRequest.java
new file mode 100644
index 00000000..1395f4e0
--- /dev/null
+++ b/bank-web/src/main/java/com/angkorteam/fintech/client/dto/PostGLClosureRequest.java
@@ -0,0 +1,40 @@
+package com.angkorteam.fintech.client.dto;
+
+import java.util.Date;
+
+public class PostGLClosureRequest {
+
+ private long officeId;
+
+ private Date closingDate;
+
+ /**
+ * limit to 500
+ */
+ private String comments;
+
+ public long getOfficeId() {
+ return officeId;
+ }
+
+ public void setOfficeId(long officeId) {
+ this.officeId = officeId;
+ }
+
+ public Date getClosingDate() {
+ return closingDate;
+ }
+
+ public void setClosingDate(Date closingDate) {
+ this.closingDate = closingDate;
+ }
+
+ public String getComments() {
+ return comments;
+ }
+
+ public void setComments(String comments) {
+ this.comments = comments;
+ }
+
+}
diff --git a/bank-web/src/main/java/com/angkorteam/fintech/client/dto/PostGroupRequest.java b/bank-web/src/main/java/com/angkorteam/fintech/client/dto/PostGroupRequest.java
new file mode 100644
index 00000000..3cd4014e
--- /dev/null
+++ b/bank-web/src/main/java/com/angkorteam/fintech/client/dto/PostGroupRequest.java
@@ -0,0 +1,149 @@
+package com.angkorteam.fintech.client.dto;
+
+import java.util.ArrayList;
+import java.util.Date;
+import java.util.List;
+
+public class PostGroupRequest {
+
+ /**
+ * id - no used
+ */
+ private long id;
+
+ /**
+ * name - mandatory
+ */
+ private String name;
+
+ /**
+ * externalId
+ */
+ private String externalId;
+
+ /**
+ * centerId
+ */
+ private long centerId;
+
+ /**
+ * officeId - mandatory
+ */
+ private long officeId;
+
+ /**
+ * staffId
+ */
+ private long staffId;
+
+ /**
+ * active
+ */
+ private boolean active;
+
+ /**
+ * activationDate - mandatory
+ */
+ private Date activationDate;
+
+ /**
+ * clientMembers
+ */
+ private List clientMembers = new ArrayList<>();
+
+ /**
+ * collectionMeetingCalendar - no used
+ */
+ private String collectionMeetingCalendar;
+
+ /**
+ * submittedOnDate
+ */
+ private Date submittedOnDate;
+
+ /**
+ * dataTables
+ */
+ private List dataTables = new ArrayList<>();
+
+ public long getOfficeId() {
+ return officeId;
+ }
+
+ public void setOfficeId(long officeId) {
+ this.officeId = officeId;
+ }
+
+ public String getName() {
+ return name;
+ }
+
+ public void setName(String name) {
+ this.name = name;
+ }
+
+ public boolean isActive() {
+ return active;
+ }
+
+ public void setActive(boolean active) {
+ this.active = active;
+ }
+
+ public String getExternalId() {
+ return externalId;
+ }
+
+ public void setExternalId(String externalId) {
+ this.externalId = externalId;
+ }
+
+ public Date getActivationDate() {
+ return activationDate;
+ }
+
+ public void setActivationDate(Date activationDate) {
+ this.activationDate = activationDate;
+ }
+
+ public long getStaffId() {
+ return staffId;
+ }
+
+ public void setStaffId(long staffId) {
+ this.staffId = staffId;
+ }
+
+ public Date getSubmittedOnDate() {
+ return submittedOnDate;
+ }
+
+ public void setSubmittedOnDate(Date submittedOnDate) {
+ this.submittedOnDate = submittedOnDate;
+ }
+
+ public List getClientMembers() {
+ return clientMembers;
+ }
+
+ public void setClientMembers(List clientMembers) {
+ this.clientMembers = clientMembers;
+ }
+
+ public List getDataTables() {
+ return dataTables;
+ }
+
+ public void setDataTables(List dataTables) {
+ this.dataTables = dataTables;
+ }
+
+ public long getCenterId() {
+ return centerId;
+ }
+
+ public void setCenterId(long centerId) {
+ this.centerId = centerId;
+ }
+
+}
diff --git a/bank-web/src/main/java/com/angkorteam/fintech/client/dto/PostHolidaysRequest.java b/bank-web/src/main/java/com/angkorteam/fintech/client/dto/PostHolidaysRequest.java
new file mode 100644
index 00000000..24dab3a4
--- /dev/null
+++ b/bank-web/src/main/java/com/angkorteam/fintech/client/dto/PostHolidaysRequest.java
@@ -0,0 +1,95 @@
+package com.angkorteam.fintech.client.dto;
+
+import com.angkorteam.fintech.client.enums.ReschedulingType;
+
+import java.util.ArrayList;
+import java.util.Date;
+import java.util.List;
+
+public class PostHolidaysRequest {
+
+ private String name;
+
+ private Date fromDate;
+
+ private Date toDate;
+
+ private ReschedulingType reschedulingType;
+
+ private String description;
+
+ private Date repaymentsRescheduledTo;
+
+ private List offices = new ArrayList<>();
+
+ public List getOffices() {
+ return offices;
+ }
+
+ public void setOffices(List offices) {
+ this.offices = offices;
+ }
+
+ public Date getRepaymentsRescheduledTo() {
+ return repaymentsRescheduledTo;
+ }
+
+ public void setRepaymentsRescheduledTo(Date repaymentsRescheduledTo) {
+ this.repaymentsRescheduledTo = repaymentsRescheduledTo;
+ }
+
+ public String getName() {
+ return name;
+ }
+
+ public void setName(String name) {
+ this.name = name;
+ }
+
+ public Date getFromDate() {
+ return fromDate;
+ }
+
+ public void setFromDate(Date fromDate) {
+ this.fromDate = fromDate;
+ }
+
+ public Date getToDate() {
+ return toDate;
+ }
+
+ public void setToDate(Date toDate) {
+ this.toDate = toDate;
+ }
+
+ public ReschedulingType getReschedulingType() {
+ return reschedulingType;
+ }
+
+ public void setReschedulingType(ReschedulingType reschedulingType) {
+ this.reschedulingType = reschedulingType;
+ }
+
+ public String getDescription() {
+ return description;
+ }
+
+ public void setDescription(String description) {
+ this.description = description;
+ }
+
+ public static class Office {
+
+ private final long officeId;
+
+ public Office(long officeId) {
+ this.officeId = officeId;
+ }
+
+ public long getOfficeId() {
+ return officeId;
+ }
+
+ }
+
+}
diff --git a/bank-web/src/main/java/com/angkorteam/fintech/client/dto/PostHookRequest.java b/bank-web/src/main/java/com/angkorteam/fintech/client/dto/PostHookRequest.java
new file mode 100644
index 00000000..f52b5f88
--- /dev/null
+++ b/bank-web/src/main/java/com/angkorteam/fintech/client/dto/PostHookRequest.java
@@ -0,0 +1,101 @@
+package com.angkorteam.fintech.client.dto;
+
+import java.util.ArrayList;
+import java.util.HashMap;
+import java.util.List;
+import java.util.Map;
+
+public class PostHookRequest {
+
+ private String name;
+
+ private Map config = new HashMap<>();
+
+ private long templateId;
+
+ private String displayName;
+
+ private boolean active;
+
+ private List events = new ArrayList<>();
+
+ public String getName() {
+ return name;
+ }
+
+ public void setName(String name) {
+ this.name = name;
+ }
+
+ public Map getConfig() {
+ return config;
+ }
+
+ public void setConfig(Map config) {
+ this.config = config;
+ }
+
+ public long getTemplateId() {
+ return templateId;
+ }
+
+ public void setTemplateId(long templateId) {
+ this.templateId = templateId;
+ }
+
+ public String getDisplayName() {
+ return displayName;
+ }
+
+ public void setDisplayName(String displayName) {
+ this.displayName = displayName;
+ }
+
+ public boolean isActive() {
+ return active;
+ }
+
+ public void setActive(boolean active) {
+ this.active = active;
+ }
+
+ public List getEvents() {
+ return events;
+ }
+
+ public void setEvents(List events) {
+ this.events = events;
+ }
+
+ public static class Event {
+
+ private String entityName;
+
+ private String actionName;
+
+ public Event() {
+ }
+
+ public Event(String entityName, String actionName) {
+ this.entityName = entityName;
+ this.actionName = actionName;
+ }
+
+ public String getEntityName() {
+ return entityName;
+ }
+
+ public void setEntityName(String entityName) {
+ this.entityName = entityName;
+ }
+
+ public String getActionName() {
+ return actionName;
+ }
+
+ public void setActionName(String actionName) {
+ this.actionName = actionName;
+ }
+ }
+
+}
diff --git a/bank-web/src/main/java/com/angkorteam/fintech/client/dto/PostJournalEntriesRequest.java b/bank-web/src/main/java/com/angkorteam/fintech/client/dto/PostJournalEntriesRequest.java
new file mode 100644
index 00000000..d0ab2799
--- /dev/null
+++ b/bank-web/src/main/java/com/angkorteam/fintech/client/dto/PostJournalEntriesRequest.java
@@ -0,0 +1,206 @@
+package com.angkorteam.fintech.client.dto;
+
+import com.google.gson.annotations.SerializedName;
+
+import java.util.ArrayList;
+import java.util.Date;
+import java.util.List;
+
+public class PostJournalEntriesRequest {
+
+ private long officeId;
+
+ private long accountingRule;
+
+ private String currencyCode;
+
+ private long paymentTypeId;
+
+ private String accountNumber;
+
+ private String checkNumber;
+
+ private String routingCode;
+
+ private String receiptNumber;
+
+ private String bankNumber;
+
+ private String referenceNumber;
+
+ private Date transactionDate;
+
+ private double amount;
+
+ private List debits = new ArrayList<>();
+
+ private List credits = new ArrayList<>();
+
+ @SerializedName("comments")
+ private String comment;
+
+ public double getAmount() {
+ return amount;
+ }
+
+ public void setAmount(double amount) {
+ this.amount = amount;
+ }
+
+ public List getDebits() {
+ return debits;
+ }
+
+ public void setDebits(List debits) {
+ this.debits = debits;
+ }
+
+ public List getCredits() {
+ return credits;
+ }
+
+ public void setCredits(List credits) {
+ this.credits = credits;
+ }
+
+ public String getComment() {
+ return comment;
+ }
+
+ public void setComment(String comment) {
+ this.comment = comment;
+ }
+
+ public long getOfficeId() {
+ return officeId;
+ }
+
+ public void setOfficeId(long officeId) {
+ this.officeId = officeId;
+ }
+
+ public long getAccountingRule() {
+ return accountingRule;
+ }
+
+ public void setAccountingRule(long accountingRule) {
+ this.accountingRule = accountingRule;
+ }
+
+ public String getCurrencyCode() {
+ return currencyCode;
+ }
+
+ public void setCurrencyCode(String currencyCode) {
+ this.currencyCode = currencyCode;
+ }
+
+ public long getPaymentTypeId() {
+ return paymentTypeId;
+ }
+
+ public void setPaymentTypeId(long paymentTypeId) {
+ this.paymentTypeId = paymentTypeId;
+ }
+
+ public String getAccountNumber() {
+ return accountNumber;
+ }
+
+ public void setAccountNumber(String accountNumber) {
+ this.accountNumber = accountNumber;
+ }
+
+ public String getCheckNumber() {
+ return checkNumber;
+ }
+
+ public void setCheckNumber(String checkNumber) {
+ this.checkNumber = checkNumber;
+ }
+
+ public String getRoutingCode() {
+ return routingCode;
+ }
+
+ public void setRoutingCode(String routingCode) {
+ this.routingCode = routingCode;
+ }
+
+ public String getReceiptNumber() {
+ return receiptNumber;
+ }
+
+ public void setReceiptNumber(String receiptNumber) {
+ this.receiptNumber = receiptNumber;
+ }
+
+ public String getBankNumber() {
+ return bankNumber;
+ }
+
+ public void setBankNumber(String bankNumber) {
+ this.bankNumber = bankNumber;
+ }
+
+ public String getReferenceNumber() {
+ return referenceNumber;
+ }
+
+ public void setReferenceNumber(String referenceNumber) {
+ this.referenceNumber = referenceNumber;
+ }
+
+ public Date getTransactionDate() {
+ return transactionDate;
+ }
+
+ public void setTransactionDate(Date transactionDate) {
+ this.transactionDate = transactionDate;
+ }
+
+ public static class TransactionEntry {
+
+ private long glAccountId;
+
+ private double amount;
+
+ @SerializedName("comments")
+ private String comment;
+
+ public TransactionEntry() {
+ }
+
+ public TransactionEntry(long glAccountId, double amount, String comment) {
+ this.glAccountId = glAccountId;
+ this.amount = amount;
+ this.comment = comment;
+ }
+
+ public long getGlAccountId() {
+ return glAccountId;
+ }
+
+ public void setGlAccountId(long glAccountId) {
+ this.glAccountId = glAccountId;
+ }
+
+ public double getAmount() {
+ return amount;
+ }
+
+ public void setAmount(double amount) {
+ this.amount = amount;
+ }
+
+ public String getComment() {
+ return comment;
+ }
+
+ public void setComment(String comment) {
+ this.comment = comment;
+ }
+
+ }
+
+}
diff --git a/bank-web/src/main/java/com/angkorteam/fintech/client/dto/PostJournalEntryDefineRequest.java b/bank-web/src/main/java/com/angkorteam/fintech/client/dto/PostJournalEntryDefineRequest.java
new file mode 100644
index 00000000..937bc92e
--- /dev/null
+++ b/bank-web/src/main/java/com/angkorteam/fintech/client/dto/PostJournalEntryDefineRequest.java
@@ -0,0 +1,32 @@
+package com.angkorteam.fintech.client.dto;
+
+import com.google.gson.annotations.SerializedName;
+
+import java.util.Date;
+
+public class PostJournalEntryDefineRequest {
+
+ private Date transactionDate;
+
+ private long officeId;
+
+ private String currencyCode;
+
+ @SerializedName("comments")
+ private String comment;
+
+ private String referenceNumber;
+
+ private int accountingRule;
+
+ private long paymentTypeId;
+
+ private double credits;
+
+ private double debits;
+
+ private double amount;
+
+
+
+}
diff --git a/bank-web/src/main/java/com/angkorteam/fintech/client/dto/PostJournalEntryReverseRequest.java b/bank-web/src/main/java/com/angkorteam/fintech/client/dto/PostJournalEntryReverseRequest.java
new file mode 100644
index 00000000..bbf56532
--- /dev/null
+++ b/bank-web/src/main/java/com/angkorteam/fintech/client/dto/PostJournalEntryReverseRequest.java
@@ -0,0 +1,15 @@
+package com.angkorteam.fintech.client.dto;
+
+public class PostJournalEntryReverseRequest {
+
+ private String comments;
+
+ public String getComments() {
+ return comments;
+ }
+
+ public void setComments(String comments) {
+ this.comments = comments;
+ }
+
+}
diff --git a/bank-web/src/main/java/com/angkorteam/fintech/client/dto/PostJournalEntryUpdateRequest.java b/bank-web/src/main/java/com/angkorteam/fintech/client/dto/PostJournalEntryUpdateRequest.java
new file mode 100644
index 00000000..ed3e37df
--- /dev/null
+++ b/bank-web/src/main/java/com/angkorteam/fintech/client/dto/PostJournalEntryUpdateRequest.java
@@ -0,0 +1,15 @@
+package com.angkorteam.fintech.client.dto;
+
+public class PostJournalEntryUpdateRequest {
+
+ private long officeId;
+
+ public long getOfficeId() {
+ return officeId;
+ }
+
+ public void setOfficeId(long officeId) {
+ this.officeId = officeId;
+ }
+
+}
diff --git a/bank-web/src/main/java/com/angkorteam/fintech/client/dto/PostLookupTableRequest.java b/bank-web/src/main/java/com/angkorteam/fintech/client/dto/PostLookupTableRequest.java
new file mode 100644
index 00000000..930155b7
--- /dev/null
+++ b/bank-web/src/main/java/com/angkorteam/fintech/client/dto/PostLookupTableRequest.java
@@ -0,0 +1,89 @@
+package com.angkorteam.fintech.client.dto;
+
+import java.util.ArrayList;
+import java.util.List;
+
+public class PostLookupTableRequest {
+
+ private String key;
+
+ private long description;
+
+ private List entries = new ArrayList<>();
+
+ public PostLookupTableRequest() {
+ }
+
+ public PostLookupTableRequest(final String key, final long description, final List entries) {
+ this.key = key;
+ this.description = description;
+ this.entries = entries;
+ }
+
+ public String getKey() {
+ return key;
+ }
+
+ public void setKey(String key) {
+ this.key = key;
+ }
+
+ public long getDescription() {
+ return description;
+ }
+
+ public void setDescription(long description) {
+ this.description = description;
+ }
+
+ public List getEntries() {
+ return entries;
+ }
+
+ public void setEntries(List entries) {
+ this.entries = entries;
+ }
+
+ public static class LookupTableEntry {
+
+ private int valueFrom;
+
+ private int valueTo;
+
+ private double score;
+
+ public LookupTableEntry() {
+ }
+
+ public LookupTableEntry(final int valueFrom, final int valueTo, final double score) {
+ this.valueFrom = valueFrom;
+ this.valueTo = valueTo;
+ this.score = score;
+ }
+
+ public int getValueFrom() {
+ return valueFrom;
+ }
+
+ public void setValueFrom(int valueFrom) {
+ this.valueFrom = valueFrom;
+ }
+
+ public int getValueTo() {
+ return valueTo;
+ }
+
+ public void setValueTo(int valueTo) {
+ this.valueTo = valueTo;
+ }
+
+ public double getScore() {
+ return score;
+ }
+
+ public void setScore(double score) {
+ this.score = score;
+ }
+ }
+
+}
diff --git a/bank-web/src/main/java/com/angkorteam/fintech/client/dto/PostOfficeRequest.java b/bank-web/src/main/java/com/angkorteam/fintech/client/dto/PostOfficeRequest.java
new file mode 100644
index 00000000..d79701ec
--- /dev/null
+++ b/bank-web/src/main/java/com/angkorteam/fintech/client/dto/PostOfficeRequest.java
@@ -0,0 +1,53 @@
+package com.angkorteam.fintech.client.dto;
+
+import java.util.Date;
+
+public class PostOfficeRequest {
+
+ /**
+ * limit to 100
+ */
+ private String name;
+
+ private Date openingDate;
+
+ private long parentId;
+
+ /**
+ * limit to 100
+ */
+ private String externalId;
+
+ public String getName() {
+ return name;
+ }
+
+ public void setName(String name) {
+ this.name = name;
+ }
+
+ public Date getOpeningDate() {
+ return openingDate;
+ }
+
+ public void setOpeningDate(Date openingDate) {
+ this.openingDate = openingDate;
+ }
+
+ public long getParentId() {
+ return parentId;
+ }
+
+ public void setParentId(long parentId) {
+ this.parentId = parentId;
+ }
+
+ public String getExternalId() {
+ return externalId;
+ }
+
+ public void setExternalId(String externalId) {
+ this.externalId = externalId;
+ }
+
+}
diff --git a/bank-web/src/main/java/com/angkorteam/fintech/client/dto/PostOfficeTransactionRequest.java b/bank-web/src/main/java/com/angkorteam/fintech/client/dto/PostOfficeTransactionRequest.java
new file mode 100644
index 00000000..235785e3
--- /dev/null
+++ b/bank-web/src/main/java/com/angkorteam/fintech/client/dto/PostOfficeTransactionRequest.java
@@ -0,0 +1,76 @@
+package com.angkorteam.fintech.client.dto;
+
+import java.util.Date;
+
+public class PostOfficeTransactionRequest {
+
+ private Long fromOfficeId;
+
+ private Long toOfficeId;
+
+ private Date transactionDate;
+
+ /**
+ * limit to 3
+ */
+ private String currencyCode;
+
+ /**
+ * greater than 0
+ */
+ private double transactionAmount;
+
+ /**
+ * limit to 100
+ */
+ private String description;
+
+ public Long getFromOfficeId() {
+ return fromOfficeId;
+ }
+
+ public void setFromOfficeId(Long fromOfficeId) {
+ this.fromOfficeId = fromOfficeId;
+ }
+
+ public Long getToOfficeId() {
+ return toOfficeId;
+ }
+
+ public void setToOfficeId(Long toOfficeId) {
+ this.toOfficeId = toOfficeId;
+ }
+
+ public Date getTransactionDate() {
+ return transactionDate;
+ }
+
+ public void setTransactionDate(Date transactionDate) {
+ this.transactionDate = transactionDate;
+ }
+
+ public String getCurrencyCode() {
+ return currencyCode;
+ }
+
+ public void setCurrencyCode(String currencyCode) {
+ this.currencyCode = currencyCode;
+ }
+
+ public double getTransactionAmount() {
+ return transactionAmount;
+ }
+
+ public void setTransactionAmount(double transactionAmount) {
+ this.transactionAmount = transactionAmount;
+ }
+
+ public String getDescription() {
+ return description;
+ }
+
+ public void setDescription(String description) {
+ this.description = description;
+ }
+
+}
diff --git a/bank-web/src/main/java/com/angkorteam/fintech/client/dto/PostPaymentTypesRequest.java b/bank-web/src/main/java/com/angkorteam/fintech/client/dto/PostPaymentTypesRequest.java
new file mode 100644
index 00000000..e129f14c
--- /dev/null
+++ b/bank-web/src/main/java/com/angkorteam/fintech/client/dto/PostPaymentTypesRequest.java
@@ -0,0 +1,48 @@
+package com.angkorteam.fintech.client.dto;
+
+import com.google.gson.annotations.SerializedName;
+
+public class PostPaymentTypesRequest {
+
+ private String name;
+
+ private String description;
+
+ @SerializedName("isCashPayment")
+ private boolean cashPayment;
+
+ private int position;
+
+ public String getName() {
+ return name;
+ }
+
+ public void setName(String name) {
+ this.name = name;
+ }
+
+ public String getDescription() {
+ return description;
+ }
+
+ public void setDescription(String description) {
+ this.description = description;
+ }
+
+ public boolean isCashPayment() {
+ return cashPayment;
+ }
+
+ public void setCashPayment(boolean cashPayment) {
+ this.cashPayment = cashPayment;
+ }
+
+ public int getPosition() {
+ return position;
+ }
+
+ public void setPosition(int position) {
+ this.position = position;
+ }
+
+}
diff --git a/bank-web/src/main/java/com/angkorteam/fintech/client/dto/PostProvisioningEntriesRequest.java b/bank-web/src/main/java/com/angkorteam/fintech/client/dto/PostProvisioningEntriesRequest.java
new file mode 100644
index 00000000..71b029c4
--- /dev/null
+++ b/bank-web/src/main/java/com/angkorteam/fintech/client/dto/PostProvisioningEntriesRequest.java
@@ -0,0 +1,30 @@
+package com.angkorteam.fintech.client.dto;
+
+import com.google.gson.annotations.SerializedName;
+
+import java.util.Date;
+
+public class PostProvisioningEntriesRequest {
+
+ private Date date;
+
+ @SerializedName("createjournalentries")
+ private boolean createJournalEntry;
+
+ public Date getDate() {
+ return date;
+ }
+
+ public void setDate(Date date) {
+ this.date = date;
+ }
+
+ public boolean isCreateJournalEntry() {
+ return createJournalEntry;
+ }
+
+ public void setCreateJournalEntry(boolean createJournalEntry) {
+ this.createJournalEntry = createJournalEntry;
+ }
+
+}
diff --git a/bank-web/src/main/java/com/angkorteam/fintech/client/dto/PostRunAccrualRequest.java b/bank-web/src/main/java/com/angkorteam/fintech/client/dto/PostRunAccrualRequest.java
new file mode 100644
index 00000000..433c73ff
--- /dev/null
+++ b/bank-web/src/main/java/com/angkorteam/fintech/client/dto/PostRunAccrualRequest.java
@@ -0,0 +1,20 @@
+package com.angkorteam.fintech.client.dto;
+
+import java.util.Date;
+
+public class PostRunAccrualRequest {
+
+ /**
+ * required
+ */
+ private Date tillDate;
+
+ public Date getTillDate() {
+ return tillDate;
+ }
+
+ public void setTillDate(Date tillDate) {
+ this.tillDate = tillDate;
+ }
+
+}
diff --git a/bank-web/src/main/java/com/angkorteam/fintech/client/dto/PostScoreRequest.java b/bank-web/src/main/java/com/angkorteam/fintech/client/dto/PostScoreRequest.java
new file mode 100644
index 00000000..163fdd4b
--- /dev/null
+++ b/bank-web/src/main/java/com/angkorteam/fintech/client/dto/PostScoreRequest.java
@@ -0,0 +1,160 @@
+package com.angkorteam.fintech.client.dto;
+
+import java.util.ArrayList;
+import java.util.Date;
+import java.util.List;
+
+public class PostScoreRequest {
+
+ private long id;
+
+ private long userId;
+
+ private String username;
+
+ private long clientId;
+
+ private long surveyId;
+
+ private String surveyName;
+
+ private List scorecardValues = new ArrayList<>();
+
+ public PostScoreRequest() {
+ }
+
+ private PostScoreRequest(final long id, final long userId, final String username, final long surveyId, final String surveyName,
+ final long clientId) {
+ this.id = id;
+ this.userId = userId;
+ this.clientId = clientId;
+ this.scorecardValues = new ArrayList<>();
+ this.surveyId = surveyId;
+ this.surveyName = surveyName;
+ this.username = username;
+ }
+
+ public static PostScoreRequest instance(final long id, final long userId, final String username, final long surveyId,
+ final String surveyName, final long clientId) {
+ return new PostScoreRequest(id, userId, username, surveyId, surveyName, clientId);
+ }
+
+ public long getUserId() {
+ return userId;
+ }
+
+ public long getClientId() {
+ return clientId;
+ }
+
+ public List getScorecardValues() {
+ return scorecardValues;
+ }
+
+ public void setScorecardValues(List scorecardValues) {
+ if (this.scorecardValues == null) {
+ this.scorecardValues = new ArrayList<>();
+ }
+ this.scorecardValues.addAll(scorecardValues);
+ }
+
+ public String getUsername() {
+ return this.username;
+ }
+
+ public long getSurveyId() {
+ return this.surveyId;
+ }
+
+ public String getSurveyName() {
+ return this.surveyName;
+ }
+
+ public long getId() {
+ return this.id;
+ }
+
+ public void setId(long id) {
+ this.id = id;
+ }
+
+ public void setUserId(long userId) {
+ this.userId = userId;
+ }
+
+ public void setUsername(String username) {
+ this.username = username;
+ }
+
+ public void setClientId(long clientId) {
+ this.clientId = clientId;
+ }
+
+ public void setSurveyId(long surveyId) {
+ this.surveyId = surveyId;
+ }
+
+ public void setSurveyName(String surveyName) {
+ this.surveyName = surveyName;
+ }
+
+ public static class ScorecardValue {
+
+ private long questionId;
+
+ private long responseId;
+
+ private int value;
+
+ private Date createdOn;
+
+ public ScorecardValue() {
+ }
+
+ private ScorecardValue(final long questionId, final long responseId, final int value, final Date createdOn) {
+ this.questionId = questionId;
+ this.responseId = responseId;
+ this.value = value;
+ this.createdOn = createdOn;
+ }
+
+ public static ScorecardValue instance(final long questionId, final long responseId, final int value, final Date createdOn) {
+ return new ScorecardValue(questionId, responseId, value, createdOn);
+ }
+
+ public long getQuestionId() {
+ return questionId;
+ }
+
+ public void setQuestionId(long questionId) {
+ this.questionId = questionId;
+ }
+
+ public long getResponseId() {
+ return responseId;
+ }
+
+ public void setResponseId(long responseId) {
+ this.responseId = responseId;
+ }
+
+ public int getValue() {
+ return value;
+ }
+
+ public void setValue(int value) {
+ this.value = value;
+ }
+
+ public Date getCreatedOn() {
+ return this.createdOn;
+ }
+
+ public void setCreatedOn(Date createdOn) {
+ this.createdOn = createdOn;
+ }
+
+ }
+
+
+}
diff --git a/bank-web/src/main/java/com/angkorteam/fintech/client/dto/PostStaffRequest.java b/bank-web/src/main/java/com/angkorteam/fintech/client/dto/PostStaffRequest.java
new file mode 100644
index 00000000..0cfa9703
--- /dev/null
+++ b/bank-web/src/main/java/com/angkorteam/fintech/client/dto/PostStaffRequest.java
@@ -0,0 +1,93 @@
+package com.angkorteam.fintech.client.dto;
+
+import com.google.gson.annotations.SerializedName;
+
+import java.util.Date;
+
+public class PostStaffRequest {
+
+ private long officeId;
+
+ @SerializedName("firstname")
+ private String firstName;
+
+ @SerializedName("lastname")
+ private String lastName;
+
+ private String externalId;
+
+ private String mobileNo;
+
+ @SerializedName("isLoanOfficer")
+ private boolean loanOfficer;
+
+ @SerializedName("isActive")
+ private boolean active;
+
+ private Date joiningDate;
+
+ public long getOfficeId() {
+ return officeId;
+ }
+
+ public void setOfficeId(long officeId) {
+ this.officeId = officeId;
+ }
+
+ public String getFirstName() {
+ return firstName;
+ }
+
+ public void setFirstName(String firstName) {
+ this.firstName = firstName;
+ }
+
+ public String getLastName() {
+ return lastName;
+ }
+
+ public void setLastName(String lastName) {
+ this.lastName = lastName;
+ }
+
+ public String getExternalId() {
+ return externalId;
+ }
+
+ public void setExternalId(String externalId) {
+ this.externalId = externalId;
+ }
+
+ public String getMobileNo() {
+ return mobileNo;
+ }
+
+ public void setMobileNo(String mobileNo) {
+ this.mobileNo = mobileNo;
+ }
+
+ public boolean isLoanOfficer() {
+ return loanOfficer;
+ }
+
+ public void setLoanOfficer(boolean loanOfficer) {
+ this.loanOfficer = loanOfficer;
+ }
+
+ public boolean isActive() {
+ return active;
+ }
+
+ public void setActive(boolean active) {
+ this.active = active;
+ }
+
+ public Date getJoiningDate() {
+ return joiningDate;
+ }
+
+ public void setJoiningDate(Date joiningDate) {
+ this.joiningDate = joiningDate;
+ }
+
+}
diff --git a/bank-web/src/main/java/com/angkorteam/fintech/client/dto/PostTaxesComponentsRequest.java b/bank-web/src/main/java/com/angkorteam/fintech/client/dto/PostTaxesComponentsRequest.java
new file mode 100644
index 00000000..ff708336
--- /dev/null
+++ b/bank-web/src/main/java/com/angkorteam/fintech/client/dto/PostTaxesComponentsRequest.java
@@ -0,0 +1,79 @@
+package com.angkorteam.fintech.client.dto;
+
+import com.angkorteam.fintech.client.renums.GLAccountType;
+
+import java.util.Date;
+
+public class PostTaxesComponentsRequest {
+
+ private String name;
+
+ private double percentage;
+
+ private GLAccountType creditAccountType;
+
+ private long creditAccountId;
+
+ private GLAccountType debitAccountType;
+
+ private long debitAccountId;
+
+ private Date startDate;
+
+ public String getName() {
+ return name;
+ }
+
+ public void setName(String name) {
+ this.name = name;
+ }
+
+ public double getPercentage() {
+ return percentage;
+ }
+
+ public void setPercentage(double percentage) {
+ this.percentage = percentage;
+ }
+
+ public GLAccountType getCreditAccountType() {
+ return creditAccountType;
+ }
+
+ public void setCreditAccountType(GLAccountType creditAccountType) {
+ this.creditAccountType = creditAccountType;
+ }
+
+ public long getCreditAccountId() {
+ return creditAccountId;
+ }
+
+ public void setCreditAccountId(long creditAccountId) {
+ this.creditAccountId = creditAccountId;
+ }
+
+ public GLAccountType getDebitAccountType() {
+ return debitAccountType;
+ }
+
+ public void setDebitAccountType(GLAccountType debitAccountType) {
+ this.debitAccountType = debitAccountType;
+ }
+
+ public long getDebitAccountId() {
+ return debitAccountId;
+ }
+
+ public void setDebitAccountId(long debitAccountId) {
+ this.debitAccountId = debitAccountId;
+ }
+
+ public Date getStartDate() {
+ return startDate;
+ }
+
+ public void setStartDate(Date startDate) {
+ this.startDate = startDate;
+ }
+
+}
diff --git a/bank-web/src/main/java/com/angkorteam/fintech/client/dto/PostTaxesGroupRequest.java b/bank-web/src/main/java/com/angkorteam/fintech/client/dto/PostTaxesGroupRequest.java
new file mode 100644
index 00000000..39e55cf7
--- /dev/null
+++ b/bank-web/src/main/java/com/angkorteam/fintech/client/dto/PostTaxesGroupRequest.java
@@ -0,0 +1,83 @@
+package com.angkorteam.fintech.client.dto;
+
+import java.util.ArrayList;
+import java.util.Date;
+import java.util.List;
+
+public class PostTaxesGroupRequest {
+
+ private String name;
+
+ private List taxComponents = new ArrayList<>();
+
+ public String getName() {
+ return name;
+ }
+
+ public void setName(String name) {
+ this.name = name;
+ }
+
+ public List getTaxComponents() {
+ return taxComponents;
+ }
+
+ public void setTaxComponents(List taxComponents) {
+ this.taxComponents = taxComponents;
+ }
+
+ public static class TaxComponent {
+
+ private long id;
+
+ private long taxComponentId;
+
+ private Date startDate;
+
+ private Date endDate;
+
+ public TaxComponent() {
+ }
+
+ public TaxComponent(long id, long taxComponentId, Date startDate, Date endDate) {
+ this.id = id;
+ this.taxComponentId = taxComponentId;
+ this.startDate = startDate;
+ this.endDate = endDate;
+ }
+
+ public long getId() {
+ return id;
+ }
+
+ public void setId(long id) {
+ this.id = id;
+ }
+
+ public long getTaxComponentId() {
+ return taxComponentId;
+ }
+
+ public void setTaxComponentId(long taxComponentId) {
+ this.taxComponentId = taxComponentId;
+ }
+
+ public Date getStartDate() {
+ return startDate;
+ }
+
+ public void setStartDate(Date startDate) {
+ this.startDate = startDate;
+ }
+
+ public Date getEndDate() {
+ return endDate;
+ }
+
+ public void setEndDate(Date endDate) {
+ this.endDate = endDate;
+ }
+
+ }
+
+}
diff --git a/bank-web/src/main/java/com/angkorteam/fintech/client/dto/PostTellersRequest.java b/bank-web/src/main/java/com/angkorteam/fintech/client/dto/PostTellersRequest.java
new file mode 100644
index 00000000..268e7079
--- /dev/null
+++ b/bank-web/src/main/java/com/angkorteam/fintech/client/dto/PostTellersRequest.java
@@ -0,0 +1,69 @@
+package com.angkorteam.fintech.client.dto;
+
+import com.angkorteam.fintech.client.renums.TellerStatus;
+
+import java.util.Date;
+
+public class PostTellersRequest {
+
+ private long officeId;
+
+ private String name;
+
+ private String description;
+
+ private Date startDate;
+
+ private Date endDate;
+
+ private TellerStatus status;
+
+ public long getOfficeId() {
+ return officeId;
+ }
+
+ public void setOfficeId(long officeId) {
+ this.officeId = officeId;
+ }
+
+ public String getName() {
+ return name;
+ }
+
+ public void setName(String name) {
+ this.name = name;
+ }
+
+ public String getDescription() {
+ return description;
+ }
+
+ public void setDescription(String description) {
+ this.description = description;
+ }
+
+ public Date getStartDate() {
+ return startDate;
+ }
+
+ public void setStartDate(Date startDate) {
+ this.startDate = startDate;
+ }
+
+ public Date getEndDate() {
+ return endDate;
+ }
+
+ public void setEndDate(Date endDate) {
+ this.endDate = endDate;
+ }
+
+ public TellerStatus getStatus() {
+ return status;
+ }
+
+ public void setStatus(TellerStatus status) {
+ this.status = status;
+ }
+
+}
diff --git a/bank-web/src/main/java/com/angkorteam/fintech/client/dto/PostUserRequest.java b/bank-web/src/main/java/com/angkorteam/fintech/client/dto/PostUserRequest.java
new file mode 100644
index 00000000..96282a58
--- /dev/null
+++ b/bank-web/src/main/java/com/angkorteam/fintech/client/dto/PostUserRequest.java
@@ -0,0 +1,127 @@
+package com.angkorteam.fintech.client.dto;
+
+import java.util.ArrayList;
+import java.util.List;
+
+public class PostUserRequest {
+
+ private long officeId;
+
+ private List roles = new ArrayList<>();
+
+ private long staffId;
+
+ private boolean selfServiceUser;
+
+ private List clients = new ArrayList<>();
+
+ private boolean sendPasswordToEmail;
+
+ private String username;
+
+ private String password;
+
+ private boolean passwordNeverExpires;
+
+ private String email;
+
+ private String firstName;
+
+ private String lastName;
+
+ public long getOfficeId() {
+ return officeId;
+ }
+
+ public void setOfficeId(long officeId) {
+ this.officeId = officeId;
+ }
+
+ public List getRoles() {
+ return roles;
+ }
+
+ public void setRoles(List roles) {
+ this.roles = roles;
+ }
+
+ public long getStaffId() {
+ return staffId;
+ }
+
+ public void setStaffId(long staffId) {
+ this.staffId = staffId;
+ }
+
+ public boolean isSelfServiceUser() {
+ return selfServiceUser;
+ }
+
+ public void setSelfServiceUser(boolean selfServiceUser) {
+ this.selfServiceUser = selfServiceUser;
+ }
+
+ public List getClients() {
+ return clients;
+ }
+
+ public void setClients(List clients) {
+ this.clients = clients;
+ }
+
+ public boolean isSendPasswordToEmail() {
+ return sendPasswordToEmail;
+ }
+
+ public void setSendPasswordToEmail(boolean sendPasswordToEmail) {
+ this.sendPasswordToEmail = sendPasswordToEmail;
+ }
+
+ public String getUsername() {
+ return username;
+ }
+
+ public void setUsername(String username) {
+ this.username = username;
+ }
+
+ public String getPassword() {
+ return password;
+ }
+
+ public void setPassword(String password) {
+ this.password = password;
+ }
+
+ public boolean isPasswordNeverExpires() {
+ return passwordNeverExpires;
+ }
+
+ public void setPasswordNeverExpires(boolean passwordNeverExpires) {
+ this.passwordNeverExpires = passwordNeverExpires;
+ }
+
+ public String getEmail() {
+ return email;
+ }
+
+ public void setEmail(String email) {
+ this.email = email;
+ }
+
+ public String getFirstName() {
+ return firstName;
+ }
+
+ public void setFirstName(String firstName) {
+ this.firstName = firstName;
+ }
+
+ public String getLastName() {
+ return lastName;
+ }
+
+ public void setLastName(String lastName) {
+ this.lastName = lastName;
+ }
+}
diff --git a/bank-web/src/main/java/com/angkorteam/fintech/client/dto/PutAccountNumberFormatsRequest.java b/bank-web/src/main/java/com/angkorteam/fintech/client/dto/PutAccountNumberFormatsRequest.java
new file mode 100644
index 00000000..773c4026
--- /dev/null
+++ b/bank-web/src/main/java/com/angkorteam/fintech/client/dto/PutAccountNumberFormatsRequest.java
@@ -0,0 +1,17 @@
+package com.angkorteam.fintech.client.dto;
+
+import com.angkorteam.fintech.client.renums.AccountNumberPrefixType;
+
+public class PutAccountNumberFormatsRequest {
+
+ private AccountNumberPrefixType prefixType;
+
+ public AccountNumberPrefixType getPrefixType() {
+ return prefixType;
+ }
+
+ public void setPrefixType(AccountNumberPrefixType prefixType) {
+ this.prefixType = prefixType;
+ }
+
+}
diff --git a/bank-web/src/main/java/com/angkorteam/fintech/client/dto/PutAccountingRulesRequest.java b/bank-web/src/main/java/com/angkorteam/fintech/client/dto/PutAccountingRulesRequest.java
new file mode 100644
index 00000000..2483d269
--- /dev/null
+++ b/bank-web/src/main/java/com/angkorteam/fintech/client/dto/PutAccountingRulesRequest.java
@@ -0,0 +1,78 @@
+package com.angkorteam.fintech.client.dto;
+
+import java.util.ArrayList;
+import java.util.List;
+
+public class PutAccountingRulesRequest {
+
+ private long officeId;
+
+ private long accountToDebit;
+
+ private long accountToCredit;
+
+ private List debitTags = new ArrayList<>();
+
+ private List creditTags = new ArrayList<>();
+
+ private boolean allowMultipleCreditEntries;
+
+ private boolean allowMultipleDebitEntries;
+
+ public long getOfficeId() {
+ return officeId;
+ }
+
+ public void setOfficeId(long officeId) {
+ this.officeId = officeId;
+ }
+
+ public long getAccountToDebit() {
+ return accountToDebit;
+ }
+
+ public void setAccountToDebit(long accountToDebit) {
+ this.accountToDebit = accountToDebit;
+ }
+
+ public long getAccountToCredit() {
+ return accountToCredit;
+ }
+
+ public void setAccountToCredit(long accountToCredit) {
+ this.accountToCredit = accountToCredit;
+ }
+
+ public List getDebitTags() {
+ return debitTags;
+ }
+
+ public void setDebitTags(List debitTags) {
+ this.debitTags = debitTags;
+ }
+
+ public List getCreditTags() {
+ return creditTags;
+ }
+
+ public void setCreditTags(List creditTags) {
+ this.creditTags = creditTags;
+ }
+
+ public boolean isAllowMultipleCreditEntries() {
+ return allowMultipleCreditEntries;
+ }
+
+ public void setAllowMultipleCreditEntries(boolean allowMultipleCreditEntries) {
+ this.allowMultipleCreditEntries = allowMultipleCreditEntries;
+ }
+
+ public boolean isAllowMultipleDebitEntries() {
+ return allowMultipleDebitEntries;
+ }
+
+ public void setAllowMultipleDebitEntries(boolean allowMultipleDebitEntries) {
+ this.allowMultipleDebitEntries = allowMultipleDebitEntries;
+ }
+
+}
diff --git a/bank-web/src/main/java/com/angkorteam/fintech/client/dto/PutAdhocRequest.java b/bank-web/src/main/java/com/angkorteam/fintech/client/dto/PutAdhocRequest.java
new file mode 100644
index 00000000..3593f8ed
--- /dev/null
+++ b/bank-web/src/main/java/com/angkorteam/fintech/client/dto/PutAdhocRequest.java
@@ -0,0 +1,88 @@
+package com.angkorteam.fintech.client.dto;
+
+import com.google.gson.annotations.SerializedName;
+
+public class PutAdhocRequest {
+
+ private String name;
+
+ private String query;
+
+ private String tableName;
+
+ private String tableFields;
+
+ private String email;
+
+ private int reportRunFrequency;
+
+ private int reportRunEvery;
+
+ @SerializedName("isActive")
+ private boolean active;
+
+ public String getName() {
+ return name;
+ }
+
+ public void setName(String name) {
+ this.name = name;
+ }
+
+ public String getQuery() {
+ return query;
+ }
+
+ public void setQuery(String query) {
+ this.query = query;
+ }
+
+ public String getTableName() {
+ return tableName;
+ }
+
+ public void setTableName(String tableName) {
+ this.tableName = tableName;
+ }
+
+ public String getTableFields() {
+ return tableFields;
+ }
+
+ public void setTableFields(String tableFields) {
+ this.tableFields = tableFields;
+ }
+
+ public String getEmail() {
+ return email;
+ }
+
+ public void setEmail(String email) {
+ this.email = email;
+ }
+
+ public int getReportRunFrequency() {
+ return reportRunFrequency;
+ }
+
+ public void setReportRunFrequency(int reportRunFrequency) {
+ this.reportRunFrequency = reportRunFrequency;
+ }
+
+ public int getReportRunEvery() {
+ return reportRunEvery;
+ }
+
+ public void setReportRunEvery(int reportRunEvery) {
+ this.reportRunEvery = reportRunEvery;
+ }
+
+ public boolean isActive() {
+ return active;
+ }
+
+ public void setActive(boolean active) {
+ this.active = active;
+ }
+
+}
diff --git a/bank-web/src/main/java/com/angkorteam/fintech/client/dto/PutCachesRequest.java b/bank-web/src/main/java/com/angkorteam/fintech/client/dto/PutCachesRequest.java
new file mode 100644
index 00000000..3eb5895c
--- /dev/null
+++ b/bank-web/src/main/java/com/angkorteam/fintech/client/dto/PutCachesRequest.java
@@ -0,0 +1,17 @@
+package com.angkorteam.fintech.client.dto;
+
+import com.angkorteam.fintech.client.enums.CacheType;
+
+public class PutCachesRequest {
+
+ private CacheType cacheType;
+
+ public CacheType getCacheType() {
+ return cacheType;
+ }
+
+ public void setCacheType(CacheType cacheType) {
+ this.cacheType = cacheType;
+ }
+
+}
diff --git a/bank-web/src/main/java/com/angkorteam/fintech/client/dto/PutCodeValueRequest.java b/bank-web/src/main/java/com/angkorteam/fintech/client/dto/PutCodeValueRequest.java
new file mode 100644
index 00000000..287f75e8
--- /dev/null
+++ b/bank-web/src/main/java/com/angkorteam/fintech/client/dto/PutCodeValueRequest.java
@@ -0,0 +1,48 @@
+package com.angkorteam.fintech.client.dto;
+
+import com.google.gson.annotations.SerializedName;
+
+public class PutCodeValueRequest {
+
+ private String name;
+
+ private long position;
+
+ private String description;
+
+ @SerializedName("isActive")
+ private boolean active;
+
+ public String getName() {
+ return name;
+ }
+
+ public void setName(String name) {
+ this.name = name;
+ }
+
+ public long getPosition() {
+ return position;
+ }
+
+ public void setPosition(long position) {
+ this.position = position;
+ }
+
+ public String getDescription() {
+ return description;
+ }
+
+ public void setDescription(String description) {
+ this.description = description;
+ }
+
+ public boolean isActive() {
+ return active;
+ }
+
+ public void setActive(boolean active) {
+ this.active = active;
+ }
+
+}
diff --git a/bank-web/src/main/java/com/angkorteam/fintech/client/dto/PutCurrenciesRequest.java b/bank-web/src/main/java/com/angkorteam/fintech/client/dto/PutCurrenciesRequest.java
new file mode 100644
index 00000000..ef3b0388
--- /dev/null
+++ b/bank-web/src/main/java/com/angkorteam/fintech/client/dto/PutCurrenciesRequest.java
@@ -0,0 +1,18 @@
+package com.angkorteam.fintech.client.dto;
+
+import java.util.ArrayList;
+import java.util.List;
+
+public class PutCurrenciesRequest {
+
+ private List currencies = new ArrayList<>();
+
+ public List getCurrencies() {
+ return currencies;
+ }
+
+ public void setCurrencies(List currencies) {
+ this.currencies = currencies;
+ }
+
+}
diff --git a/bank-web/src/main/java/com/angkorteam/fintech/client/dto/PutDataTableRequest.java b/bank-web/src/main/java/com/angkorteam/fintech/client/dto/PutDataTableRequest.java
new file mode 100644
index 00000000..62ae49a3
--- /dev/null
+++ b/bank-web/src/main/java/com/angkorteam/fintech/client/dto/PutDataTableRequest.java
@@ -0,0 +1,230 @@
+package com.angkorteam.fintech.client.dto;
+
+import com.angkorteam.fintech.client.enums.TableTypeEnum;
+
+import java.util.ArrayList;
+import java.util.List;
+
+public class PutDataTableRequest {
+
+ private TableTypeEnum apptableName;
+
+ private List addColumns = new ArrayList<>();
+
+ private List dropColumns = new ArrayList<>();
+
+ private List changeColumns = new ArrayList<>();
+
+ public TableTypeEnum getApptableName() {
+ return apptableName;
+ }
+
+ public void setApptableName(TableTypeEnum apptableName) {
+ this.apptableName = apptableName;
+ }
+
+ public List getAddColumns() {
+ return addColumns;
+ }
+
+ public void setAddColumns(List addColumns) {
+ this.addColumns = addColumns;
+ }
+
+ public List getDropColumns() {
+ return dropColumns;
+ }
+
+ public void setDropColumns(List dropColumns) {
+ this.dropColumns = dropColumns;
+ }
+
+ public List getChangeColumns() {
+ return changeColumns;
+ }
+
+ public void setChangeColumns(List changeColumns) {
+ this.changeColumns = changeColumns;
+ }
+
+ public static class DropColumn {
+
+ private String name;
+
+ public DropColumn() {
+ }
+
+ public DropColumn(String name) {
+ this.name = name;
+ }
+
+ public String getName() {
+ return name;
+ }
+
+ public void setName(String name) {
+ this.name = name;
+ }
+ }
+
+ public static class ChangeColumn {
+
+ private String type;
+
+ private String name;
+
+ private String newName;
+
+ private String code;
+
+ private String newCode;
+
+ private int length;
+
+ private boolean mandatory;
+
+ public ChangeColumn() {
+ }
+
+ public ChangeColumn(String type, String name, String newName, String code, String newCode, int length, boolean mandatory) {
+ this.type = type;
+ this.name = name;
+ this.newName = newName;
+ this.code = code;
+ this.newCode = newCode;
+ this.length = length;
+ this.mandatory = mandatory;
+ }
+
+ public String getType() {
+ return type;
+ }
+
+ public String getName() {
+ return name;
+ }
+
+ public int getLength() {
+ return length;
+ }
+
+ public String getCode() {
+ return code;
+ }
+
+ public boolean isMandatory() {
+ return mandatory;
+ }
+
+ public String getNewName() {
+ return newName;
+ }
+
+ public String getNewCode() {
+ return newCode;
+ }
+ }
+
+ public static class AddColumn {
+
+ private String type;
+
+ private String name;
+
+ private int length;
+
+ private String code;
+
+ private boolean mandatory;
+
+ private AddColumn() {
+ }
+
+ public static AddColumn string(String name, boolean mandatory, int length) {
+ AddColumn column = new AddColumn();
+ column.type = "String";
+ column.name = name;
+ column.mandatory = mandatory;
+ column.length = length;
+ return column;
+ }
+
+ public static AddColumn number(String name, boolean mandatory) {
+ AddColumn column = new AddColumn();
+ column.type = "Number";
+ column.name = name;
+ column.mandatory = mandatory;
+ return column;
+ }
+
+ public static AddColumn yesno(String name, boolean mandatory) {
+ AddColumn column = new AddColumn();
+ column.type = "Boolean";
+ column.name = name;
+ column.mandatory = mandatory;
+ return column;
+ }
+
+ public static AddColumn decimal(String name, boolean mandatory) {
+ AddColumn column = new AddColumn();
+ column.type = "Decimal";
+ column.name = name;
+ column.mandatory = mandatory;
+ return column;
+ }
+
+ public static AddColumn date(String name, boolean mandatory) {
+ AddColumn column = new AddColumn();
+ column.type = "Date";
+ column.name = name;
+ column.mandatory = mandatory;
+ return column;
+ }
+
+ public static AddColumn datetime(String name, boolean mandatory) {
+ AddColumn column = new AddColumn();
+ column.type = "DateTime";
+ column.name = name;
+ column.mandatory = mandatory;
+ return column;
+ }
+
+ public static AddColumn text(String name, boolean mandatory) {
+ AddColumn column = new AddColumn();
+ column.type = "Text";
+ column.name = name;
+ column.mandatory = mandatory;
+ return column;
+ }
+
+ public static AddColumn dropdown(String name, boolean mandatory, String code) {
+ AddColumn column = new AddColumn();
+ column.type = "DropDown";
+ column.name = name;
+ column.mandatory = mandatory;
+ column.code = code;
+ return column;
+ }
+
+ public String getType() {
+ return type;
+ }
+
+ public String getName() {
+ return name;
+ }
+
+ public int getLength() {
+ return length;
+ }
+
+ public String getCode() {
+ return code;
+ }
+
+ public boolean isMandatory() {
+ return mandatory;
+ }
+
+ }
+}
diff --git a/bank-web/src/main/java/com/angkorteam/fintech/client/dto/PutEmailCampaignRequest.java b/bank-web/src/main/java/com/angkorteam/fintech/client/dto/PutEmailCampaignRequest.java
new file mode 100644
index 00000000..b4806e12
--- /dev/null
+++ b/bank-web/src/main/java/com/angkorteam/fintech/client/dto/PutEmailCampaignRequest.java
@@ -0,0 +1,77 @@
+package com.angkorteam.fintech.client.dto;
+
+import java.util.Date;
+
+public class PutEmailCampaignRequest {
+
+ private long businessRuleId;
+
+ private String campaignName;
+
+ private String emailMessage;
+
+ private String paramValue;
+
+ private int campaignType;
+
+ private String recurrence;
+
+ private Date recurrenceStartDate;
+
+ public long getBusinessRuleId() {
+ return businessRuleId;
+ }
+
+ public void setBusinessRuleId(long businessRuleId) {
+ this.businessRuleId = businessRuleId;
+ }
+
+ public String getCampaignName() {
+ return campaignName;
+ }
+
+ public void setCampaignName(String campaignName) {
+ this.campaignName = campaignName;
+ }
+
+ public String getEmailMessage() {
+ return emailMessage;
+ }
+
+ public void setEmailMessage(String emailMessage) {
+ this.emailMessage = emailMessage;
+ }
+
+ public String getParamValue() {
+ return paramValue;
+ }
+
+ public void setParamValue(String paramValue) {
+ this.paramValue = paramValue;
+ }
+
+ public int getCampaignType() {
+ return campaignType;
+ }
+
+ public void setCampaignType(int campaignType) {
+ this.campaignType = campaignType;
+ }
+
+ public String getRecurrence() {
+ return recurrence;
+ }
+
+ public void setRecurrence(String recurrence) {
+ this.recurrence = recurrence;
+ }
+
+ public Date getRecurrenceStartDate() {
+ return recurrenceStartDate;
+ }
+
+ public void setRecurrenceStartDate(Date recurrenceStartDate) {
+ this.recurrenceStartDate = recurrenceStartDate;
+ }
+
+}
diff --git a/bank-web/src/main/java/com/angkorteam/fintech/client/dto/PutEmailConfigurationRequest.java b/bank-web/src/main/java/com/angkorteam/fintech/client/dto/PutEmailConfigurationRequest.java
new file mode 100644
index 00000000..6e87d95a
--- /dev/null
+++ b/bank-web/src/main/java/com/angkorteam/fintech/client/dto/PutEmailConfigurationRequest.java
@@ -0,0 +1,51 @@
+package com.angkorteam.fintech.client.dto;
+
+import com.google.gson.annotations.SerializedName;
+
+public class PutEmailConfigurationRequest {
+
+ @SerializedName("SMTP_USERNAME")
+ private String smtpUsername;
+
+ @SerializedName("SMTP_SERVER")
+ private String smtpServer;
+
+ @SerializedName("SMTP_PORT")
+ private int smtpPort;
+
+ @SerializedName("SMTP_PASSWORD")
+ private String smtpPassword;
+
+ public String getSmtpUsername() {
+ return smtpUsername;
+ }
+
+ public void setSmtpUsername(String smtpUsername) {
+ this.smtpUsername = smtpUsername;
+ }
+
+ public String getSmtpServer() {
+ return smtpServer;
+ }
+
+ public void setSmtpServer(String smtpServer) {
+ this.smtpServer = smtpServer;
+ }
+
+ public int getSmtpPort() {
+ return smtpPort;
+ }
+
+ public void setSmtpPort(int smtpPort) {
+ this.smtpPort = smtpPort;
+ }
+
+ public String getSmtpPassword() {
+ return smtpPassword;
+ }
+
+ public void setSmtpPassword(String smtpPassword) {
+ this.smtpPassword = smtpPassword;
+ }
+
+}
diff --git a/bank-web/src/main/java/com/angkorteam/fintech/client/dto/PutEmailRequest.java b/bank-web/src/main/java/com/angkorteam/fintech/client/dto/PutEmailRequest.java
new file mode 100644
index 00000000..641b0205
--- /dev/null
+++ b/bank-web/src/main/java/com/angkorteam/fintech/client/dto/PutEmailRequest.java
@@ -0,0 +1,15 @@
+package com.angkorteam.fintech.client.dto;
+
+public class PutEmailRequest {
+
+ private String emailMessage;
+
+ public String getEmailMessage() {
+ return emailMessage;
+ }
+
+ public void setEmailMessage(String emailMessage) {
+ this.emailMessage = emailMessage;
+ }
+
+}
diff --git a/bank-web/src/main/java/com/angkorteam/fintech/client/dto/PutFinancialActivityAccountsRequest.java b/bank-web/src/main/java/com/angkorteam/fintech/client/dto/PutFinancialActivityAccountsRequest.java
new file mode 100644
index 00000000..27396830
--- /dev/null
+++ b/bank-web/src/main/java/com/angkorteam/fintech/client/dto/PutFinancialActivityAccountsRequest.java
@@ -0,0 +1,29 @@
+package com.angkorteam.fintech.client.dto;
+
+import com.angkorteam.fintech.client.renums.FinancialActivity;
+import com.google.gson.annotations.SerializedName;
+
+public class PutFinancialActivityAccountsRequest {
+
+ @SerializedName("financialActivityId")
+ private FinancialActivity financialActivity;
+
+ private long glAccountId;
+
+ public FinancialActivity getFinancialActivity() {
+ return financialActivity;
+ }
+
+ public void setFinancialActivity(FinancialActivity financialActivity) {
+ this.financialActivity = financialActivity;
+ }
+
+ public long getGlAccountId() {
+ return glAccountId;
+ }
+
+ public void setGlAccountId(long glAccountId) {
+ this.glAccountId = glAccountId;
+ }
+
+}
diff --git a/bank-web/src/main/java/com/angkorteam/fintech/client/dto/PutFundsFundIdRequest.java b/bank-web/src/main/java/com/angkorteam/fintech/client/dto/PutFundsFundIdRequest.java
new file mode 100644
index 00000000..7a2ddc84
--- /dev/null
+++ b/bank-web/src/main/java/com/angkorteam/fintech/client/dto/PutFundsFundIdRequest.java
@@ -0,0 +1,25 @@
+package com.angkorteam.fintech.client.dto;
+
+public class PutFundsFundIdRequest {
+
+ private String name;
+
+ private String externalId;
+
+ public String getName() {
+ return name;
+ }
+
+ public void setName(String name) {
+ this.name = name;
+ }
+
+ public String getExternalId() {
+ return externalId;
+ }
+
+ public void setExternalId(String externalId) {
+ this.externalId = externalId;
+ }
+
+}
diff --git a/bank-web/src/main/java/com/angkorteam/fintech/client/dto/PutGLAccountsRequest.java b/bank-web/src/main/java/com/angkorteam/fintech/client/dto/PutGLAccountsRequest.java
new file mode 100644
index 00000000..e3fe7d5d
--- /dev/null
+++ b/bank-web/src/main/java/com/angkorteam/fintech/client/dto/PutGLAccountsRequest.java
@@ -0,0 +1,97 @@
+package com.angkorteam.fintech.client.dto;
+
+import com.angkorteam.fintech.client.enums.AccountUsage;
+import com.angkorteam.fintech.client.renums.GLAccountType;
+
+public class PutGLAccountsRequest {
+
+ private String name;
+
+ private boolean disabled;
+
+ private long parentId;
+
+ private long tagId;
+
+ private AccountUsage usage;
+
+ private GLAccountType type;
+
+ private boolean manualEntriesAllowed;
+
+ private String glCode;
+
+ private String description;
+
+ public String getName() {
+ return name;
+ }
+
+ public void setName(String name) {
+ this.name = name;
+ }
+
+ public boolean isDisabled() {
+ return disabled;
+ }
+
+ public void setDisabled(boolean disabled) {
+ this.disabled = disabled;
+ }
+
+ public long getParentId() {
+ return parentId;
+ }
+
+ public void setParentId(long parentId) {
+ this.parentId = parentId;
+ }
+
+ public long getTagId() {
+ return tagId;
+ }
+
+ public void setTagId(long tagId) {
+ this.tagId = tagId;
+ }
+
+ public AccountUsage getUsage() {
+ return usage;
+ }
+
+ public void setUsage(AccountUsage usage) {
+ this.usage = usage;
+ }
+
+ public GLAccountType getType() {
+ return type;
+ }
+
+ public void setType(GLAccountType type) {
+ this.type = type;
+ }
+
+ public boolean isManualEntriesAllowed() {
+ return manualEntriesAllowed;
+ }
+
+ public void setManualEntriesAllowed(boolean manualEntriesAllowed) {
+ this.manualEntriesAllowed = manualEntriesAllowed;
+ }
+
+ public String getGlCode() {
+ return glCode;
+ }
+
+ public void setGlCode(String glCode) {
+ this.glCode = glCode;
+ }
+
+ public String getDescription() {
+ return description;
+ }
+
+ public void setDescription(String description) {
+ this.description = description;
+ }
+}
diff --git a/bank-web/src/main/java/com/angkorteam/fintech/client/dto/PutGLClosureRequest.java b/bank-web/src/main/java/com/angkorteam/fintech/client/dto/PutGLClosureRequest.java
new file mode 100644
index 00000000..4f1c3017
--- /dev/null
+++ b/bank-web/src/main/java/com/angkorteam/fintech/client/dto/PutGLClosureRequest.java
@@ -0,0 +1,18 @@
+package com.angkorteam.fintech.client.dto;
+
+public class PutGLClosureRequest {
+
+ /**
+ * limit to 500
+ */
+ private String comments;
+
+ public String getComments() {
+ return comments;
+ }
+
+ public void setComments(String comments) {
+ this.comments = comments;
+ }
+
+}
diff --git a/bank-web/src/main/java/com/angkorteam/fintech/client/dto/PutHookRequest.java b/bank-web/src/main/java/com/angkorteam/fintech/client/dto/PutHookRequest.java
new file mode 100644
index 00000000..284bdf01
--- /dev/null
+++ b/bank-web/src/main/java/com/angkorteam/fintech/client/dto/PutHookRequest.java
@@ -0,0 +1,101 @@
+package com.angkorteam.fintech.client.dto;
+
+import java.util.ArrayList;
+import java.util.HashMap;
+import java.util.List;
+import java.util.Map;
+
+public class PutHookRequest {
+
+ private String name;
+
+ private Map config = new HashMap<>();
+
+ private long templateId;
+
+ private String displayName;
+
+ private boolean active;
+
+ private List events = new ArrayList<>();
+
+ public String getName() {
+ return name;
+ }
+
+ public void setName(String name) {
+ this.name = name;
+ }
+
+ public Map getConfig() {
+ return config;
+ }
+
+ public void setConfig(Map config) {
+ this.config = config;
+ }
+
+ public long getTemplateId() {
+ return templateId;
+ }
+
+ public void setTemplateId(long templateId) {
+ this.templateId = templateId;
+ }
+
+ public String getDisplayName() {
+ return displayName;
+ }
+
+ public void setDisplayName(String displayName) {
+ this.displayName = displayName;
+ }
+
+ public boolean isActive() {
+ return active;
+ }
+
+ public void setActive(boolean active) {
+ this.active = active;
+ }
+
+ public List getEvents() {
+ return events;
+ }
+
+ public void setEvents(List events) {
+ this.events = events;
+ }
+
+ public static class Event {
+
+ private String entityName;
+
+ private String actionName;
+
+ public Event() {
+ }
+
+ public Event(String entityName, String actionName) {
+ this.entityName = entityName;
+ this.actionName = actionName;
+ }
+
+ public String getEntityName() {
+ return entityName;
+ }
+
+ public void setEntityName(String entityName) {
+ this.entityName = entityName;
+ }
+
+ public String getActionName() {
+ return actionName;
+ }
+
+ public void setActionName(String actionName) {
+ this.actionName = actionName;
+ }
+ }
+
+}
diff --git a/bank-web/src/main/java/com/angkorteam/fintech/client/dto/PutOfficeRequest.java b/bank-web/src/main/java/com/angkorteam/fintech/client/dto/PutOfficeRequest.java
new file mode 100644
index 00000000..734b9053
--- /dev/null
+++ b/bank-web/src/main/java/com/angkorteam/fintech/client/dto/PutOfficeRequest.java
@@ -0,0 +1,53 @@
+package com.angkorteam.fintech.client.dto;
+
+import java.util.Date;
+
+public class PutOfficeRequest {
+
+ /**
+ * limit to 100
+ */
+ private String name;
+
+ private Date openingDate;
+
+ private long parentId;
+
+ /**
+ * limit to 100
+ */
+ private String externalId;
+
+ public String getName() {
+ return name;
+ }
+
+ public void setName(String name) {
+ this.name = name;
+ }
+
+ public Date getOpeningDate() {
+ return openingDate;
+ }
+
+ public void setOpeningDate(Date openingDate) {
+ this.openingDate = openingDate;
+ }
+
+ public long getParentId() {
+ return parentId;
+ }
+
+ public void setParentId(long parentId) {
+ this.parentId = parentId;
+ }
+
+ public String getExternalId() {
+ return externalId;
+ }
+
+ public void setExternalId(String externalId) {
+ this.externalId = externalId;
+ }
+
+}
diff --git a/bank-web/src/main/java/com/angkorteam/fintech/client/dto/PutPasswordPreferencesTemplateRequest.java b/bank-web/src/main/java/com/angkorteam/fintech/client/dto/PutPasswordPreferencesTemplateRequest.java
new file mode 100644
index 00000000..cd22151a
--- /dev/null
+++ b/bank-web/src/main/java/com/angkorteam/fintech/client/dto/PutPasswordPreferencesTemplateRequest.java
@@ -0,0 +1,17 @@
+package com.angkorteam.fintech.client.dto;
+
+import com.angkorteam.fintech.client.enums.ValidationPolicy;
+
+public class PutPasswordPreferencesTemplateRequest {
+
+ private ValidationPolicy validationPolicy;
+
+ public ValidationPolicy getValidationPolicy() {
+ return validationPolicy;
+ }
+
+ public void setValidationPolicy(ValidationPolicy validationPolicy) {
+ this.validationPolicy = validationPolicy;
+ }
+
+}
diff --git a/bank-web/src/main/java/com/angkorteam/fintech/client/dto/PutPaymentTypesPaymentTypeIdRequest.java b/bank-web/src/main/java/com/angkorteam/fintech/client/dto/PutPaymentTypesPaymentTypeIdRequest.java
new file mode 100644
index 00000000..e47c3377
--- /dev/null
+++ b/bank-web/src/main/java/com/angkorteam/fintech/client/dto/PutPaymentTypesPaymentTypeIdRequest.java
@@ -0,0 +1,48 @@
+package com.angkorteam.fintech.client.dto;
+
+import com.google.gson.annotations.SerializedName;
+
+public class PutPaymentTypesPaymentTypeIdRequest {
+
+ private String name;
+
+ private String description;
+
+ @SerializedName("isCashPayment")
+ private boolean cashPayment;
+
+ private int position;
+
+ public String getName() {
+ return name;
+ }
+
+ public void setName(String name) {
+ this.name = name;
+ }
+
+ public String getDescription() {
+ return description;
+ }
+
+ public void setDescription(String description) {
+ this.description = description;
+ }
+
+ public boolean isCashPayment() {
+ return cashPayment;
+ }
+
+ public void setCashPayment(boolean cashPayment) {
+ this.cashPayment = cashPayment;
+ }
+
+ public int getPosition() {
+ return position;
+ }
+
+ public void setPosition(int position) {
+ this.position = position;
+ }
+
+}
diff --git a/bank-web/src/main/java/com/angkorteam/fintech/client/dto/PutStaffRequest.java b/bank-web/src/main/java/com/angkorteam/fintech/client/dto/PutStaffRequest.java
new file mode 100644
index 00000000..9ace828a
--- /dev/null
+++ b/bank-web/src/main/java/com/angkorteam/fintech/client/dto/PutStaffRequest.java
@@ -0,0 +1,93 @@
+package com.angkorteam.fintech.client.dto;
+
+import com.google.gson.annotations.SerializedName;
+
+import java.util.Date;
+
+public class PutStaffRequest {
+
+ private long officeId;
+
+ @SerializedName("firstname")
+ private String firstName;
+
+ @SerializedName("lastname")
+ private String lastName;
+
+ private String externalId;
+
+ private String mobileNo;
+
+ @SerializedName("isLoanOfficer")
+ private boolean loanOfficer;
+
+ @SerializedName("isActive")
+ private boolean active;
+
+ private Date joiningDate;
+
+ public long getOfficeId() {
+ return officeId;
+ }
+
+ public void setOfficeId(long officeId) {
+ this.officeId = officeId;
+ }
+
+ public String getFirstName() {
+ return firstName;
+ }
+
+ public void setFirstName(String firstName) {
+ this.firstName = firstName;
+ }
+
+ public String getLastName() {
+ return lastName;
+ }
+
+ public void setLastName(String lastName) {
+ this.lastName = lastName;
+ }
+
+ public String getExternalId() {
+ return externalId;
+ }
+
+ public void setExternalId(String externalId) {
+ this.externalId = externalId;
+ }
+
+ public String getMobileNo() {
+ return mobileNo;
+ }
+
+ public void setMobileNo(String mobileNo) {
+ this.mobileNo = mobileNo;
+ }
+
+ public boolean isLoanOfficer() {
+ return loanOfficer;
+ }
+
+ public void setLoanOfficer(boolean loanOfficer) {
+ this.loanOfficer = loanOfficer;
+ }
+
+ public boolean isActive() {
+ return active;
+ }
+
+ public void setActive(boolean active) {
+ this.active = active;
+ }
+
+ public Date getJoiningDate() {
+ return joiningDate;
+ }
+
+ public void setJoiningDate(Date joiningDate) {
+ this.joiningDate = joiningDate;
+ }
+
+}
diff --git a/bank-web/src/main/java/com/angkorteam/fintech/client/dto/PutWorkingDaysRequest.java b/bank-web/src/main/java/com/angkorteam/fintech/client/dto/PutWorkingDaysRequest.java
new file mode 100644
index 00000000..e9099df3
--- /dev/null
+++ b/bank-web/src/main/java/com/angkorteam/fintech/client/dto/PutWorkingDaysRequest.java
@@ -0,0 +1,49 @@
+package com.angkorteam.fintech.client.dto;
+
+import com.angkorteam.fintech.client.enums.RepaymentOption;
+
+public class PutWorkingDaysRequest {
+
+ /**
+ * FREQ=WEEKLY;INTERVAL=1;BYDAY=MO,TU,WE,TH,FR
+ */
+ private String recurrence;
+
+ private RepaymentOption repaymentRescheduleType;
+
+ private boolean extendTermForDailyRepayments;
+
+ private boolean extendTermForRepaymentsOnHolidays;
+
+ public String getRecurrence() {
+ return recurrence;
+ }
+
+ public void setRecurrence(String recurrence) {
+ this.recurrence = recurrence;
+ }
+
+ public RepaymentOption getRepaymentRescheduleType() {
+ return repaymentRescheduleType;
+ }
+
+ public void setRepaymentRescheduleType(RepaymentOption repaymentRescheduleType) {
+ this.repaymentRescheduleType = repaymentRescheduleType;
+ }
+
+ public boolean isExtendTermForDailyRepayments() {
+ return extendTermForDailyRepayments;
+ }
+
+ public void setExtendTermForDailyRepayments(boolean extendTermForDailyRepayments) {
+ this.extendTermForDailyRepayments = extendTermForDailyRepayments;
+ }
+
+ public boolean isExtendTermForRepaymentsOnHolidays() {
+ return extendTermForRepaymentsOnHolidays;
+ }
+
+ public void setExtendTermForRepaymentsOnHolidays(boolean extendTermForRepaymentsOnHolidays) {
+ this.extendTermForRepaymentsOnHolidays = extendTermForRepaymentsOnHolidays;
+ }
+}
diff --git a/bank-web/src/main/java/com/angkorteam/fintech/client/dto/RoleData.java b/bank-web/src/main/java/com/angkorteam/fintech/client/dto/RoleData.java
new file mode 100644
index 00000000..6ec4cd10
--- /dev/null
+++ b/bank-web/src/main/java/com/angkorteam/fintech/client/dto/RoleData.java
@@ -0,0 +1,62 @@
+/**
+ * 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 com.angkorteam.fintech.client.dto;
+
+import java.io.Serializable;
+
+public class RoleData implements Serializable {
+
+ private Long id;
+ private String name;
+ private String description;
+ private Boolean disabled;
+
+ public Long getId() {
+ return id;
+ }
+
+ public void setId(Long id) {
+ this.id = id;
+ }
+
+ public String getName() {
+ return name;
+ }
+
+ public void setName(String name) {
+ this.name = name;
+ }
+
+ public String getDescription() {
+ return description;
+ }
+
+ public void setDescription(String description) {
+ this.description = description;
+ }
+
+ public Boolean getDisabled() {
+ return disabled;
+ }
+
+ public void setDisabled(Boolean disabled) {
+ this.disabled = disabled;
+ }
+
+}
diff --git a/bank-web/src/main/java/com/angkorteam/fintech/client/dto/RoleRequest.java b/bank-web/src/main/java/com/angkorteam/fintech/client/dto/RoleRequest.java
new file mode 100644
index 00000000..59d67af0
--- /dev/null
+++ b/bank-web/src/main/java/com/angkorteam/fintech/client/dto/RoleRequest.java
@@ -0,0 +1,25 @@
+package com.angkorteam.fintech.client.dto;
+
+public class RoleRequest {
+
+ private String name;
+
+ private String description;
+
+ public String getName() {
+ return name;
+ }
+
+ public void setName(String name) {
+ this.name = name;
+ }
+
+ public String getDescription() {
+ return description;
+ }
+
+ public void setDescription(String description) {
+ this.description = description;
+ }
+
+}
diff --git a/bank-web/src/main/java/com/angkorteam/fintech/client/dto/SurveyRequest.java b/bank-web/src/main/java/com/angkorteam/fintech/client/dto/SurveyRequest.java
new file mode 100644
index 00000000..129da61d
--- /dev/null
+++ b/bank-web/src/main/java/com/angkorteam/fintech/client/dto/SurveyRequest.java
@@ -0,0 +1,291 @@
+package com.angkorteam.fintech.client.dto;
+
+import java.util.ArrayList;
+import java.util.Date;
+import java.util.List;
+
+public class SurveyRequest {
+
+ private long id;
+
+ private List componentDatas = new ArrayList<>();
+
+ private List questionDatas = new ArrayList<>();
+
+ private String key;
+
+ private String name;
+
+ private String description;
+
+ private String countryCode;
+
+ private Date validFrom;
+
+ private Date validTo;
+
+ public long getId() {
+ return id;
+ }
+
+ public void setId(long id) {
+ this.id = id;
+ }
+
+ public List getComponentDatas() {
+ return componentDatas;
+ }
+
+ public void setComponentDatas(List componentDatas) {
+ this.componentDatas = componentDatas;
+ }
+
+ public List getQuestionDatas() {
+ return questionDatas;
+ }
+
+ public void setQuestionDatas(List questionDatas) {
+ this.questionDatas = questionDatas;
+ }
+
+ public String getKey() {
+ return key;
+ }
+
+ public void setKey(String key) {
+ this.key = key;
+ }
+
+ public String getName() {
+ return name;
+ }
+
+ public void setName(String name) {
+ this.name = name;
+ }
+
+ public String getDescription() {
+ return description;
+ }
+
+ public void setDescription(String description) {
+ this.description = description;
+ }
+
+ public String getCountryCode() {
+ return countryCode;
+ }
+
+ public void setCountryCode(String countryCode) {
+ this.countryCode = countryCode;
+ }
+
+ public Date getValidFrom() {
+ return validFrom;
+ }
+
+ public void setValidFrom(Date validFrom) {
+ this.validFrom = validFrom;
+ }
+
+ public Date getValidTo() {
+ return validTo;
+ }
+
+ public void setValidTo(Date validTo) {
+ this.validTo = validTo;
+ }
+
+ public static class ComponentData {
+
+ private long id;
+
+ private String key;
+
+ private String text;
+
+ private String description;
+
+ private int sequenceNo;
+
+ public ComponentData() {
+ }
+
+ public ComponentData(final long id, final String key, final String text, final String description, final int sequenceNo) {
+ this.id = id;
+ this.key = key;
+ this.text = text;
+ this.description = description;
+ this.sequenceNo = sequenceNo;
+ }
+
+ public long getId() {
+ return id;
+ }
+
+ public String getKey() {
+ return key;
+ }
+
+ public void setKey(String key) {
+ this.key = key;
+ }
+
+ public String getText() {
+ return text;
+ }
+
+ public void setText(String title) {
+ this.text = title;
+ }
+
+ public String getDescription() {
+ return description;
+ }
+
+ public void setDescription(String description) {
+ this.description = description;
+ }
+
+ public int getSequenceNo() {
+ return sequenceNo;
+ }
+
+ public void setSequenceNo(int sequenceNo) {
+ this.sequenceNo = sequenceNo;
+ }
+ }
+
+ public static class QuestionData {
+
+ private long id;
+
+ private List responseDatas = new ArrayList<>();
+
+ private String componentKey;
+
+ private String key;
+
+ private String text;
+
+ private String description;
+
+ private int sequenceNo;
+
+ public QuestionData() {
+ }
+
+ public QuestionData(final long id, final List responseDatas, final String componentKey, final String key,
+ final String text, final String description, final int sequenceNo) {
+ this.id = id;
+ this.responseDatas = responseDatas;
+ this.componentKey = componentKey;
+ this.key = key;
+ this.text = text;
+ this.description = description;
+ this.sequenceNo = sequenceNo;
+ }
+
+ public long getId() {
+ return id;
+ }
+
+ public List getResponseDatas() {
+ return responseDatas;
+ }
+
+ public void setResponseDatas(List