added seprate forwardrequest code and added find things by clientReqId

This commit is contained in:
Lincpay Tech
2025-11-20 18:58:58 +05:30
parent 23050efbdc
commit 3322645ab1
23 changed files with 558 additions and 48 deletions
@@ -20,49 +20,35 @@ import lombok.ToString;
public abstract class BaseClass {
@JsonProperty(access = JsonProperty.Access.WRITE_ONLY)
@NotBlank(message = "MID cannot be null or blank")
private String mid;
@JsonProperty(access = JsonProperty.Access.WRITE_ONLY)
@NotBlank(message = "Secret key cannot be null or blank")
private String secretKey;
@JsonProperty(access = JsonProperty.Access.WRITE_ONLY)
@NotBlank(message = "Request ID cannot be null or blank")
private String reqId;
@JsonProperty(access = JsonProperty.Access.WRITE_ONLY)
private DeviceDetail deviceDetial;
// ✅ 10 User Defined Fields (UDF1–UDF10)
@JsonProperty(access = JsonProperty.Access.WRITE_ONLY)
private String udf1;
@JsonProperty(access = JsonProperty.Access.WRITE_ONLY)
private String udf2;
@JsonProperty(access = JsonProperty.Access.WRITE_ONLY)
private String udf3;
@JsonProperty(access = JsonProperty.Access.WRITE_ONLY)
private String udf4;
@JsonProperty(access = JsonProperty.Access.WRITE_ONLY)
private String udf5;
@JsonProperty(access = JsonProperty.Access.WRITE_ONLY)
private String udf6;
@JsonProperty(access = JsonProperty.Access.WRITE_ONLY)
private String udf7;
@JsonProperty(access = JsonProperty.Access.WRITE_ONLY)
private String udf8;
@JsonProperty(access = JsonProperty.Access.WRITE_ONLY)
private String udf9;
@JsonProperty(access = JsonProperty.Access.WRITE_ONLY)
private String udf10;
}
@@ -0,0 +1,12 @@
package com.billpaymentservice.bbps.dto.request;
import lombok.Getter;
import lombok.Setter;
@Getter
@Setter
public class BillFetchByClientIdRequest extends BaseClass{
private String clientReqId;
}
@@ -21,6 +21,7 @@ public class BillPaymentRequest extends BaseClass {
private String customerMobNo;
private Integer txnAmount;
private String paymentRefId;
private String clientReqId;
private String paymentChannel;
private List<DeviceBlockTagRequest> deviceBlockTags;
@@ -0,0 +1,12 @@
package com.billpaymentservice.bbps.dto.request;
import lombok.Getter;
import lombok.Setter;
@Getter
@Setter
public class BillValidateByClientIdRequest extends BaseClass{
private String clientReqId;
}
@@ -22,6 +22,7 @@ public class FetchBillValidatestRequest extends BaseClass {
private String billerCategory; // String, CategoryResponseList of the biller
@NotNull
private String customerMobNo; // String, Mobile of the Customer
private String clientReqId;
// Optional Fields
private String macAddress; // Alphanumeric MAC Address of the Agent Server
@@ -0,0 +1,11 @@
package com.billpaymentservice.bbps.dto.request;
import lombok.Getter;
import lombok.Setter;
@Getter
@Setter
public class TrasactionStatusByClientReqIdRequest extends BaseClass{
private String clientReqId;
}
@@ -0,0 +1,41 @@
package com.billpaymentservice.bbps.dto.sentRequest;
import java.util.List;
import com.billpaymentservice.bbps.dto.request.AmountBreakRequest;
import com.billpaymentservice.bbps.dto.request.CustomerParamTagRequest;
import com.billpaymentservice.bbps.dto.request.DeviceBlockTagRequest;
import com.billpaymentservice.bbps.dto.request.RemitterIdentityRequest;
import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
@Getter
@Setter
@AllArgsConstructor
@NoArgsConstructor
public class BillPaymentForwardRequest {
private String tenantId;
private String refId;
private String billId;
private boolean amountOptions;
private String paymentMode;
private String paymentInformation;
private String billerId;
private String billerName;
private String billerCategory;
private String macAdress;
private String customerMobNo;
private Integer txnAmount;
private String paymentRefId;
private String clientReqId;
private String paymentChannel;
private List<DeviceBlockTagRequest> deviceBlockTags;
private List<CustomerParamTagRequest> customerParamsRequest;
private List<RemitterIdentityRequest> remitterIdentity;
private List<AmountBreakRequest> amountBreakSet;
}
@@ -0,0 +1,24 @@
package com.billpaymentservice.bbps.dto.sentRequest;
import java.util.List;
import com.billpaymentservice.bbps.dto.CustomerParamsRequest;
import com.billpaymentservice.bbps.dto.RemitterIdentity;
import com.billpaymentservice.bbps.dto.Tag;
import lombok.Getter;
import lombok.Setter;
@Getter
@Setter
public class FetchBillForwardRequest {
private String billerId;
private String billerName;
private String billerCategory;
private String clientReqId;
private String macAdress;
private String customerMobNo;
private String remitterName;
private String paymentChannel;
private List<Tag> deviceBlockTags;
private CustomerParamsRequest customerParamsRequest;
private List<RemitterIdentity> remitterIdentity;
}
@@ -0,0 +1,24 @@
package com.billpaymentservice.bbps.dto.sentRequest;
import com.billpaymentservice.bbps.dto.CustomerParamsRequest;
import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
@Getter
@Setter
@AllArgsConstructor
@NoArgsConstructor
public class FetchBillValidatestForwardRequest {
private String billerId;
private String billerName;
private String billerCategory;
private String customerMobNo;
private String clientReqId;
private String macAddress;
private CustomerParamsRequest customerParamsRequest;
}