forked from FITER1/fineract-template
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Feature/FBR-45: Implement Job Batch Payments (#291)
Co-authored-by: Julius Peter Oketayot <[email protected]>
- Loading branch information
1 parent
c1d30ad
commit 89f5514
Showing
16 changed files
with
717 additions
and
33 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
56 changes: 56 additions & 0 deletions
56
...src/main/java/org/apache/fineract/portfolio/loanaccount/data/LoanRepaymentImportData.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
/** | ||
* Licensed to the Apache Software Foundation (ASF) under one | ||
* or more contributor license agreements. See the NOTICE file | ||
* distributed with this work for additional information | ||
* regarding copyright ownership. The ASF licenses this file | ||
* to you under the Apache License, Version 2.0 (the | ||
* "License"); you may not use this file except in compliance | ||
* with the License. You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, | ||
* software distributed under the License is distributed on an | ||
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY | ||
* KIND, either express or implied. See the License for the | ||
* specific language governing permissions and limitations | ||
* under the License. | ||
*/ | ||
package org.apache.fineract.portfolio.loanaccount.data; | ||
|
||
import java.math.BigDecimal; | ||
import java.time.LocalDate; | ||
import java.time.LocalDateTime; | ||
import java.time.LocalTime; | ||
import lombok.Builder; | ||
import lombok.Data; | ||
|
||
@Builder | ||
@Data | ||
public class LoanRepaymentImportData { | ||
|
||
private Long id; | ||
private String bankingAgency; | ||
private Long customerCode; | ||
private String agency; | ||
private String loanCode; | ||
private String productCode; | ||
private BigDecimal amount; | ||
private String receiptNumber; | ||
private Long status; | ||
private LocalDateTime uploadDate; | ||
private LocalTime uploadTime; | ||
private LocalDateTime mifosProcessingDate; | ||
private LocalTime mifosProcessingTime; | ||
private String mifosFileName; | ||
private String bankName; | ||
private Long groupNumber; | ||
private Long mifosProductCode; | ||
private LocalDate paymentDate; | ||
private String operationResult; | ||
private BigDecimal scheduledPaymentAmount; | ||
private Long paymentNumber; | ||
private String lastPayment; | ||
private String tolerance; | ||
private Long errorId; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
223 changes: 223 additions & 0 deletions
223
...r/src/main/java/org/apache/fineract/portfolio/loanaccount/domain/LoanRepaymentImport.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,223 @@ | ||
/** | ||
* Licensed to the Apache Software Foundation (ASF) under one | ||
* or more contributor license agreements. See the NOTICE file | ||
* distributed with this work for additional information | ||
* regarding copyright ownership. The ASF licenses this file | ||
* to you under the Apache License, Version 2.0 (the | ||
* "License"); you may not use this file except in compliance | ||
* with the License. You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, | ||
* software distributed under the License is distributed on an | ||
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY | ||
* KIND, either express or implied. See the License for the | ||
* specific language governing permissions and limitations | ||
* under the License. | ||
*/ | ||
package org.apache.fineract.portfolio.loanaccount.domain; | ||
|
||
import java.math.BigDecimal; | ||
import java.time.LocalDate; | ||
import java.time.LocalDateTime; | ||
import java.time.LocalTime; | ||
import javax.persistence.Column; | ||
import javax.persistence.Entity; | ||
import javax.persistence.GeneratedValue; | ||
import javax.persistence.GenerationType; | ||
import javax.persistence.Id; | ||
import javax.persistence.Table; | ||
import lombok.Getter; | ||
|
||
@Getter | ||
@Entity | ||
@Table(name = "PDA_Pagos") | ||
public class LoanRepaymentImport { | ||
|
||
/* | ||
* Uploaded by ETL | ||
*/ | ||
@Id | ||
@GeneratedValue(strategy = GenerationType.IDENTITY) | ||
@Column(name = "Id_pagos") | ||
private Long id; | ||
|
||
/* | ||
* Uploaded by ETL | ||
*/ | ||
@Column(name = "Agencia_bancaria") | ||
private String bankingAgency; | ||
|
||
/* | ||
* Uploaded by ETL | ||
*/ | ||
@Column(name = "Codigo_cliente") | ||
private Long customerCode; | ||
|
||
/* | ||
* Uploaded by ETL | ||
*/ | ||
@Column(name = "Agencia") | ||
private String agency; | ||
|
||
/* | ||
* Uploaded by ETL | ||
*/ | ||
@Column(name = "Codigo_prestamo", nullable = false) | ||
private String loanCode; | ||
|
||
/* | ||
* Uploaded by ETL | ||
*/ | ||
@Column(name = "Codigo_producto") | ||
private String productCode; | ||
|
||
/* | ||
* Uploaded by ETL | ||
*/ | ||
@Column(name = "Monto") | ||
private BigDecimal amount; | ||
|
||
/* | ||
* Uploaded by ETL | ||
*/ | ||
@Column(name = "Boleta") | ||
private String receiptNumber; | ||
|
||
/* | ||
* Uploaded by ETL & update by Mifos | ||
*/ | ||
@Column(name = "Estado") | ||
private Long status; | ||
|
||
/* | ||
* Uploaded by ETL | ||
*/ | ||
@Column(name = "Fecha_carga") | ||
private LocalDateTime uploadDate; | ||
|
||
/* | ||
* Uploaded by ETL | ||
*/ | ||
@Column(name = "Hora_carga") | ||
private LocalTime uploadTime; | ||
|
||
/* | ||
* Generated by Mifos | ||
*/ | ||
@Column(name = "Feha_procesamiento_mifos") | ||
private LocalDateTime mifosProcessingDate; | ||
|
||
/* | ||
* Generated by Mifos | ||
*/ | ||
@Column(name = "Hora_procesamiento_mifos") | ||
private LocalTime mifosProcessingTime; | ||
|
||
/* | ||
* Generated by Mifos | ||
*/ | ||
@Column(name = "Nombre_archivo") | ||
private String mifosFileName; | ||
|
||
/* | ||
* Uploaded by ETL | ||
*/ | ||
@Column(name = "Banco") | ||
private String bankName; | ||
|
||
/* | ||
* Uploaded by ETL | ||
*/ | ||
@Column(name = "Grupo") | ||
private Long groupNumber; | ||
|
||
/* | ||
* Uploaded by ETL | ||
*/ | ||
@Column(name = "Codigo_producto_mifos") | ||
private Long mifosProductCode; | ||
|
||
/* | ||
* Uploaded by ETL | ||
*/ | ||
@Column(name = "Fecha_pago") | ||
private LocalDate paymentDate; | ||
|
||
/* | ||
* Generated by Mifos | ||
*/ | ||
@Column(name = "Resultado_operacion") | ||
private String operationResult; | ||
|
||
/* | ||
* Generated by Mifos | ||
*/ | ||
@Column(name = "Monto_pago_programado") | ||
private BigDecimal scheduledPaymentAmount; | ||
|
||
/* | ||
* Generated by Mifos | ||
*/ | ||
@Column(name = "Numero_de_pago") | ||
private Long paymentNumber; | ||
|
||
/* | ||
* Generated by Mifos | ||
*/ | ||
@Column(name = "Ultimo_pago") | ||
private String lastPayment; | ||
|
||
/* | ||
* Generated by Mifos | ||
*/ | ||
@Column(name = "Tolerancia") | ||
private String tolerance; | ||
|
||
/* | ||
* Generated by Mifos | ||
*/ | ||
@Column(name = "Id_error") | ||
private Long errorId; | ||
|
||
public void setStatus(Long status) { | ||
this.status = status; | ||
} | ||
|
||
public void setMifosProcessingDate(LocalDateTime mifosProcessingDate) { | ||
this.mifosProcessingDate = mifosProcessingDate; | ||
} | ||
|
||
public void setMifosProcessingTime(LocalTime mifosProcessingTime) { | ||
this.mifosProcessingTime = mifosProcessingTime; | ||
} | ||
|
||
public void setMifosFileName(String mifosFileName) { | ||
this.mifosFileName = mifosFileName; | ||
} | ||
|
||
public void setOperationResult(String operationResult) { | ||
this.operationResult = operationResult; | ||
} | ||
|
||
public void setScheduledPaymentAmount(BigDecimal schedulePaymentAmount) { | ||
this.scheduledPaymentAmount = schedulePaymentAmount; | ||
} | ||
|
||
public void setPaymentNumber(Long paymentNumber) { | ||
this.paymentNumber = paymentNumber; | ||
} | ||
|
||
public void setLastPayment(String lastPayment) { | ||
this.lastPayment = lastPayment; | ||
} | ||
|
||
public void setTolerance(String tolerance) { | ||
this.tolerance = tolerance; | ||
} | ||
|
||
public void setErrorId(Long errorId) { | ||
this.errorId = errorId; | ||
} | ||
} |
Oops, something went wrong.