removed and added lombook for the login,verify,payment,transaction
This commit is contained in:
@@ -3,7 +3,11 @@ package com.billpaymentservice.bbps.dto.auth;
|
|||||||
import jakarta.validation.constraints.NotNull;
|
import jakarta.validation.constraints.NotNull;
|
||||||
import jakarta.validation.constraints.Pattern;
|
import jakarta.validation.constraints.Pattern;
|
||||||
import jakarta.validation.constraints.Size;
|
import jakarta.validation.constraints.Size;
|
||||||
|
import lombok.Getter;
|
||||||
|
import lombok.Setter;
|
||||||
|
|
||||||
|
@Getter
|
||||||
|
@Setter
|
||||||
public class LoginRequest {
|
public class LoginRequest {
|
||||||
|
|
||||||
@NotNull(message = "Mobile number cannot be null.")
|
@NotNull(message = "Mobile number cannot be null.")
|
||||||
@@ -11,18 +15,5 @@ public class LoginRequest {
|
|||||||
@Pattern(regexp = "^[0-9]{10}$", message = "Mobile number must contain only digits.")
|
@Pattern(regexp = "^[0-9]{10}$", message = "Mobile number must contain only digits.")
|
||||||
private String mobile;
|
private String mobile;
|
||||||
|
|
||||||
public LoginRequest() {
|
|
||||||
}
|
|
||||||
|
|
||||||
public LoginRequest(String mobile) {
|
|
||||||
this.mobile = mobile;
|
|
||||||
}
|
|
||||||
|
|
||||||
public String getMobile() {
|
|
||||||
return mobile;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setMobile(String mobile) {
|
|
||||||
this.mobile = mobile;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -3,7 +3,15 @@ package com.billpaymentservice.bbps.dto.auth;
|
|||||||
import jakarta.validation.constraints.NotNull;
|
import jakarta.validation.constraints.NotNull;
|
||||||
import jakarta.validation.constraints.Pattern;
|
import jakarta.validation.constraints.Pattern;
|
||||||
import jakarta.validation.constraints.Size;
|
import jakarta.validation.constraints.Size;
|
||||||
|
import lombok.AllArgsConstructor;
|
||||||
|
import lombok.Getter;
|
||||||
|
import lombok.NoArgsConstructor;
|
||||||
|
import lombok.Setter;
|
||||||
|
|
||||||
|
@Getter
|
||||||
|
@Setter
|
||||||
|
@NoArgsConstructor
|
||||||
|
@AllArgsConstructor
|
||||||
public class VerifyOtpRequest {
|
public class VerifyOtpRequest {
|
||||||
|
|
||||||
@NotNull(message = "Mobile number cannot be null.")
|
@NotNull(message = "Mobile number cannot be null.")
|
||||||
@@ -16,27 +24,4 @@ public class VerifyOtpRequest {
|
|||||||
@Pattern(regexp = "^[0-9]{6}$", message = "OTP must contain only 6 digits.")
|
@Pattern(regexp = "^[0-9]{6}$", message = "OTP must contain only 6 digits.")
|
||||||
private String otp;
|
private String otp;
|
||||||
|
|
||||||
public VerifyOtpRequest() {
|
|
||||||
}
|
|
||||||
|
|
||||||
public VerifyOtpRequest(String mobile, String otp) {
|
|
||||||
this.mobile = mobile;
|
|
||||||
this.otp = otp;
|
|
||||||
}
|
|
||||||
|
|
||||||
public String getMobile() {
|
|
||||||
return mobile;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setMobile(String mobile) {
|
|
||||||
this.mobile = mobile;
|
|
||||||
}
|
|
||||||
|
|
||||||
public String getOtp() {
|
|
||||||
return otp;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setOtp(String otp) {
|
|
||||||
this.otp = otp;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -47,7 +47,7 @@ public class PaymentStartRecord extends Auditable {
|
|||||||
@Column(name = "amount", nullable = false)
|
@Column(name = "amount", nullable = false)
|
||||||
private String amount;
|
private String amount;
|
||||||
|
|
||||||
@Column(name = "txn_id")
|
@Column(name = "txn_id",unique = true)
|
||||||
private String txnId;
|
private String txnId;
|
||||||
|
|
||||||
@Column(name = "qr_string", columnDefinition = "TEXT")
|
@Column(name = "qr_string", columnDefinition = "TEXT")
|
||||||
|
|||||||
@@ -39,7 +39,7 @@ public class TransactionMaster extends Auditable {
|
|||||||
@Column(name = "bank_txn_id",unique = true)
|
@Column(name = "bank_txn_id",unique = true)
|
||||||
private String bankTxnId;
|
private String bankTxnId;
|
||||||
|
|
||||||
@Column(name = "txn_id")
|
@Column(name = "txn_id",unique = true)
|
||||||
private String txnId;
|
private String txnId;
|
||||||
|
|
||||||
@Column(name = "initiator_txn_id")
|
@Column(name = "initiator_txn_id")
|
||||||
|
|||||||
@@ -23,9 +23,9 @@ swagger.server.description=Local Development Server
|
|||||||
spring.datasource.url=jdbc:postgresql://localhost:5432/bbps_enhanced
|
spring.datasource.url=jdbc:postgresql://localhost:5432/bbps_enhanced
|
||||||
|
|
||||||
spring.datasource.username=postgres
|
spring.datasource.username=postgres
|
||||||
spring.datasource.password=UAT@DB_2025
|
#spring.datasource.password=UAT@DB_2025
|
||||||
|
|
||||||
#spring.datasource.password=himanshu@123
|
spring.datasource.password=himanshu@123
|
||||||
spring.datasource.driver-class-name=org.postgresql.Driver
|
spring.datasource.driver-class-name=org.postgresql.Driver
|
||||||
spring.datasource.type=com.zaxxer.hikari.HikariDataSource
|
spring.datasource.type=com.zaxxer.hikari.HikariDataSource
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user