From 47acf3eaedec4734e6ae68152796aa1804936ade Mon Sep 17 00:00:00 2001
From: BEAUVAIS ANTOINE <antoine.beauvais@etu.unistra.fr>
Date: Wed, 22 Sep 2021 21:25:36 +0200
Subject: [PATCH] Added registry entry object.

---
 .../sil/erp/back/api/model/RegistryEntry.java | 72 +++++++++++++++++++
 1 file changed, 72 insertions(+)
 create mode 100644 src/main/java/fr/unistra/sil/erp/back/api/model/RegistryEntry.java

diff --git a/src/main/java/fr/unistra/sil/erp/back/api/model/RegistryEntry.java b/src/main/java/fr/unistra/sil/erp/back/api/model/RegistryEntry.java
new file mode 100644
index 0000000..90d7ab7
--- /dev/null
+++ b/src/main/java/fr/unistra/sil/erp/back/api/model/RegistryEntry.java
@@ -0,0 +1,72 @@
+/*
+ * CONTRAT DE LICENCE DE LOGICIEL LIBRE CeCILL-B
+ * https://cecill.info/licences/Licence_CeCILL-B_V1-fr.html
+ */
+package fr.unistra.sil.erp.back.api.model;
+
+import java.math.BigDecimal;
+import java.time.LocalDateTime;
+
+/**
+ * Transaction object.
+ * @author BEAUVAIS ANTOINE
+ */
+public class RegistryEntry {
+    
+    private final int id;
+    private final int transactionId;
+    private final LocalDateTime dt;
+    private final String description;
+    private final BigDecimal debit;
+    private final BigDecimal credit;
+    private final String remarks;
+    
+    public RegistryEntry(int id, int transactionId, LocalDateTime dt,
+            String description, BigDecimal debit, BigDecimal credit,
+            String remarks)
+    {
+        this.id = id;
+        this.transactionId = transactionId;
+        this.dt = dt;
+        this.description = description;
+        this.debit = debit;
+        this.credit = credit;
+        this.remarks = remarks;
+    }
+    
+    public int getId()
+    {
+        return this.id;
+    }
+    
+    public int getTransactionId()
+    {
+        return this.transactionId;
+    }
+    
+    public LocalDateTime getDatetime()
+    {
+        return this.dt;
+    }
+    
+    public String getDescription()
+    {
+        return this.description;
+    }
+    
+    public BigDecimal getDebit()
+    {
+        return this.debit;
+    }
+    
+    public BigDecimal getCredit()
+    {
+        return this.credit;
+    }
+    
+    public String getRemarks()
+    {
+        return this.remarks;
+    }
+    
+}
-- 
GitLab