updated code

This commit is contained in:
Mohd-Arham
2025-12-11 16:48:00 +05:30
12 changed files with 58 additions and 112 deletions
@@ -14,7 +14,7 @@ import lombok.Setter;
@Setter
@Entity
@Table(name = "bbps_bill_customer_params")
public class BillCustomerParams {
public class BillCustomerParams extends Auditable {
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
@@ -14,52 +14,55 @@ import lombok.Setter;
import lombok.ToString;
@Entity
@Table(name="bbps_inbound_log_trace")
@Getter @Setter @NoArgsConstructor @ToString
@Getter
@Setter
@NoArgsConstructor
@ToString
@Table(name = "bbps_inbound_trace_log")
public class InboundTraceLog {
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
private Long id;
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
private Long id;
// 🔹 Identifiers
@Column(length = 50, unique = true)
private String requestId; // external requestId (from client)
@Column(length = 35)
private String txnId; // internally generated transaction id
// 🔹 Identifiers
@Column(length = 50, unique = true)
private String requestId; // external requestId (from client)
@Column(length = 35)
private String txnId; // internally generated transaction id
// 🔹 Source & API info
private String orgId; // tumhara org code (like ORG001)
private String mid; // merchant id from request
private String apiName; // e.g. getBillerByBillerId
private String httpMethod; // GET / POST
// 🔹 Source & API info
private String orgId; // tumhara org code (like ORG001)
private String mid; // merchant id from request
private String apiName; // e.g. getBillerByBillerId
private String httpMethod; // GET / POST
// 🔹 Request/Response data
@Column(columnDefinition = "TEXT")
private String requestPayload; // jo external ne bheja
@Column(columnDefinition = "TEXT")
private String responsePayload; // jo tumne wapas bheja
// 🔹 Request/Response data
@Column(columnDefinition = "TEXT")
private String requestPayload; // jo external ne bheja
@Column(columnDefinition = "TEXT")
private String responsePayload; // jo tumne wapas bheja
// 🔹 Status & timing
private String status; // SUCCESS / FAILED
private String responseCode; // like 200, 400 etc.
private LocalDateTime requestTime; // jab request aayi
private LocalDateTime responseTime; // jab response gaya
private LocalDateTime createdAt = LocalDateTime.now();
// 🔹 Status & timing
private String status; // SUCCESS / FAILED
private String responseCode; // like 200, 400 etc.
private LocalDateTime requestTime; // jab request aayi
private LocalDateTime responseTime; // jab response gaya
private LocalDateTime createdAt = LocalDateTime.now();
@Column(length = 255)
private String remark; // error ya note
public InboundTraceLog(String requestId, String txnId, String apiName, String mid,
String orgId, String httpMethod, String requestPayload) {
this.requestId = requestId;
this.txnId = txnId;
this.apiName = apiName;
this.mid = mid;
this.orgId = orgId;
this.httpMethod = httpMethod;
this.requestPayload = requestPayload;
this.requestTime = LocalDateTime.now();
this.createdAt = LocalDateTime.now();
}
@Column(length = 255)
private String remark; // error ya note
public InboundTraceLog(String requestId, String txnId, String apiName, String mid, String orgId, String httpMethod,
String requestPayload) {
this.requestId = requestId;
this.txnId = txnId;
this.apiName = apiName;
this.mid = mid;
this.orgId = orgId;
this.httpMethod = httpMethod;
this.requestPayload = requestPayload;
this.requestTime = LocalDateTime.now();
this.createdAt = LocalDateTime.now();
}
}
@@ -14,11 +14,11 @@ import lombok.Setter;
import lombok.ToString;
@Entity
@Table(name = "bbps_outbound_log_trace")
@ToString
@Getter
@Setter
@NoArgsConstructor
@ToString
@Table(name = "bbps_outbound_trace_log")
public class OutboundTraceLog {
@Id
@@ -1,38 +0,0 @@
package com.billpaymentservice.bbps.entites;
import jakarta.persistence.Column;
import jakarta.persistence.Entity;
import jakarta.persistence.GeneratedValue;
import jakarta.persistence.GenerationType;
import jakarta.persistence.Id;
import jakarta.persistence.Table;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
@Data
@NoArgsConstructor
@AllArgsConstructor
@Entity
@Table(name = "bbps_user_details")
public class UsersDetails extends Auditable {
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
@Column(name = "id")
private Long id;
@Column(name = "user_email_id")
private String userEmailId;
@Column(name = "user_mob_no")
private String userMobNo;
@Column(name = "user_name")
private String userName;
@Column(name = "user_age")
private String userAge;
}