saved initate payment and checktxn status

This commit is contained in:
Lincpay Tech
2025-11-07 18:38:09 +05:30
parent 58db98cc06
commit af7cdaf5d7
15 changed files with 518 additions and 113 deletions
@@ -62,5 +62,29 @@ public class EntityRelationshipUtil {
}
}
}
public static void linkTransactionMasterRelationships(TransactionMaster entity) {
if (entity == null) return;
// ✅ DeviceBlockTag relationship link karna
if (entity.getDeviceBlockTags() != null) {
entity.getDeviceBlockTags().forEach(tag -> {
if (tag != null) {
tag.setTransactionMaster(entity);
}
});
}
// ✅ CustomerParamTransaction relationship link karna
if (entity.getCustomerParams() != null) {
entity.getCustomerParams().forEach(param -> {
if (param != null) {
param.setTransactionMaster(entity);
}
});
}
}
}