]> git.mxchange.org Git - jfinancials-core.git/commitdiff
Continued:
authorRoland Häder <roland@mxchange.org>
Thu, 15 Sep 2022 03:50:06 +0000 (05:50 +0200)
committerRoland Häder <roland@mxchange.org>
Thu, 15 Sep 2022 03:50:06 +0000 (05:50 +0200)
- added optional propery "recipientRqCode"

Signed-off-by: Roland Häder <roland@mxchange.org>
src/org/mxchange/jfinancials/model/receipt/BillableReceipt.java
src/org/mxchange/jfinancials/model/receipt/FinancialReceipt.java

index 2fdb30850e44d59420cc47ec657682a973e3b362..4065ff8451367fb0e6553765ee3929e86a3c6f57 100644 (file)
@@ -213,6 +213,20 @@ public interface BillableReceipt extends Comparable<BillableReceipt>, Serializab
         */
        void setReceiptPaymentType (final PaymentType receiptPaymentType);
 
+       /**
+        * Getter for receipt QR code
+        * <p>
+        * @return Receipt QR code
+        */
+       String getReceiptQrCode ();
+
+       /**
+        * Setter for receipt QR code
+        * <p>
+        * @param receiptQrCode Receipt QR code
+        */
+       void setReceiptQrCode (final String receiptQrCode);
+
        /**
         * Getter for receipt sequence number
         * <p>
index 735d4749eff6895d86e8bf37d3bc7cd109258484..56bcba2b53530b50550d8d8b7f5d1ce901039842 100644 (file)
@@ -29,6 +29,7 @@ import javax.persistence.GeneratedValue;
 import javax.persistence.GenerationType;
 import javax.persistence.Id;
 import javax.persistence.JoinColumn;
+import javax.persistence.Lob;
 import javax.persistence.NamedQueries;
 import javax.persistence.NamedQuery;
 import javax.persistence.OneToOne;
@@ -179,6 +180,13 @@ public class FinancialReceipt implements BillableReceipt {
        @OneToOne (targetEntity = LoginUser.class, cascade = CascadeType.REFRESH)
        private User receiptUser;
 
+       /**
+        * Recipient QR code
+        */
+       @Lob ()
+       @Column (name = "receipt_qr_code")
+       private String receiptQrCode;
+
        /**
         * Default constructor
         */
@@ -435,6 +443,16 @@ public class FinancialReceipt implements BillableReceipt {
                this.receiptPaymentType = receiptPaymentType;
        }
 
+       @Override
+       public String getReceiptQrCode () {
+               return this.receiptQrCode;
+       }
+
+       @Override
+       public void setReceiptQrCode (final String receiptQrCode) {
+               this.receiptQrCode = receiptQrCode;
+       }
+
        @Override
        public Long getReceiptRegisterNumber () {
                return this.receiptRegisterNumber;
@@ -506,6 +524,7 @@ public class FinancialReceipt implements BillableReceipt {
                hash = 89 * hash + Objects.hashCode(this.getReceiptIssued());
                hash = 89 * hash + Objects.hashCode(this.getReceiptNumber());
                hash = 89 * hash + Objects.hashCode(this.getReceiptPaymentType());
+               hash = 89 * hash + Objects.hashCode(this.getReceiptQrCode());
                hash = 89 * hash + Objects.hashCode(this.getReceiptRegisterNumber());
                hash = 89 * hash + Objects.hashCode(this.getReceiptSellerEmployee());
                hash = 89 * hash + Objects.hashCode(this.getReceiptSequenceNumber());