oleksii-novikov-onix commented on code in PR #5858:
URL: https://github.com/apache/fineract/pull/5858#discussion_r3272362943


##########
fineract-cob/src/main/java/org/apache/fineract/cob/api/LockRequest.java:
##########
@@ -18,10 +18,13 @@
  */
 package org.apache.fineract.cob.api;
 
+import java.time.LocalDate;
 import lombok.Data;
 
 @Data
 public class LockRequest {
 
     private String error;
+    private LocalDate cobBusinessDate;
+    private Boolean nullCobBusinessDate;

Review Comment:
   JSON does not allow distinguishing three states:
   1. {} - field is not provided, so COB date should be taken from ThreadLocal 
as default
   2. {"cobBusinessDate": "2026-05-20"} - an explicit date is provided
   3. {"cobBusinessDate": null} - explicitly store NULL in the database



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to