Merge pull request 'feature3-userId-added' (#29) from feature3-userId-added into develop
Reviewed-on: https://git.zeptic.in/himanshu/bbps/pulls/29
This commit is contained in:
@@ -1,10 +1,13 @@
|
||||
package com.billpaymentservice.bbps.dto.request;
|
||||
|
||||
import jakarta.validation.constraints.NotBlank;
|
||||
import lombok.Getter;
|
||||
import lombok.Setter;
|
||||
|
||||
@Getter
|
||||
@Setter
|
||||
public class PollBackRequest extends BaseClass{
|
||||
private String orderId;
|
||||
public class PollBackRequest extends BaseClass {
|
||||
|
||||
@NotBlank(message = "order Id not be null")
|
||||
private String orderId;
|
||||
}
|
||||
|
||||
@@ -18,7 +18,7 @@ import lombok.ToString;
|
||||
@Setter
|
||||
@Entity
|
||||
@ToString
|
||||
@Table(name = "additional_info")
|
||||
@Table(name = "bbps_additional_info")
|
||||
public class AdditionalInfo {
|
||||
|
||||
@Id
|
||||
|
||||
@@ -12,7 +12,7 @@ import lombok.Setter;
|
||||
|
||||
|
||||
@Entity
|
||||
@Table(name = "additional_info_bill")
|
||||
@Table(name = "bbps_additional_info_bill")
|
||||
@Getter
|
||||
@Setter
|
||||
public class AdditionalInfoBill {
|
||||
|
||||
@@ -11,7 +11,7 @@ import lombok.Getter;
|
||||
import lombok.Setter;
|
||||
|
||||
@Entity
|
||||
@Table(name = "additional_info_bill_validate")
|
||||
@Table(name = "bbps_additional_info_bill_validate")
|
||||
@Getter
|
||||
@Setter
|
||||
public class AdditionalInfoBillValidate {
|
||||
|
||||
@@ -16,7 +16,7 @@ import lombok.Getter;
|
||||
import lombok.Setter;
|
||||
|
||||
@Entity
|
||||
@Table(name = "plan_additional_info")
|
||||
@Table(name = "bbps_plan_additional_info")
|
||||
@Getter
|
||||
@Setter
|
||||
public class AdditionalInfoPlans {
|
||||
|
||||
@@ -10,7 +10,7 @@ import lombok.NoArgsConstructor;
|
||||
import lombok.Setter;
|
||||
|
||||
@Entity
|
||||
@Table(name = "agent_fund_transfer_Txn_Status")
|
||||
@Table(name = "bbps_agent_fund_transfer_Txn_Status")
|
||||
@NoArgsConstructor
|
||||
@Getter
|
||||
@Setter
|
||||
|
||||
@@ -13,7 +13,7 @@ import lombok.Setter;
|
||||
@Entity
|
||||
@Getter
|
||||
@Setter
|
||||
@Table(name = "agent_fund_transfer")
|
||||
@Table(name = "bbps_agent_fund_transfer")
|
||||
public class AgentFundTransferEntity {
|
||||
|
||||
@Id
|
||||
|
||||
@@ -16,7 +16,7 @@ import lombok.Getter;
|
||||
import lombok.Setter;
|
||||
|
||||
@Entity
|
||||
@Table(name = "amount_option")
|
||||
@Table(name = "bbps_amount_option")
|
||||
@Getter
|
||||
@Setter
|
||||
public class AmountOption {
|
||||
|
||||
@@ -19,7 +19,7 @@ import lombok.Setter;
|
||||
@Getter
|
||||
@Setter
|
||||
@Entity
|
||||
@Table(name = "amount_option_biller_id")
|
||||
@Table(name = "bbps_amount_option_biller_id")
|
||||
public class AmountOptionByBillerId extends Auditable<String> {
|
||||
|
||||
@Id
|
||||
|
||||
@@ -12,7 +12,7 @@ import lombok.Setter;
|
||||
@Getter
|
||||
@Setter
|
||||
@Entity
|
||||
@Table(name = "amount_option_details")
|
||||
@Table(name = "bbps_amount_option_details")
|
||||
public class AmountOptionDetails {
|
||||
|
||||
@Id
|
||||
|
||||
@@ -17,7 +17,7 @@ import lombok.Setter;
|
||||
@AllArgsConstructor
|
||||
@NoArgsConstructor
|
||||
@Entity
|
||||
@Table(name = "Bharat_connect_master")
|
||||
@Table(name = "bbps_bharat_connect_master")
|
||||
public class BharatConnectMaster extends Auditable<String> {
|
||||
|
||||
@Id
|
||||
|
||||
@@ -13,7 +13,7 @@ import lombok.Setter;
|
||||
@Getter
|
||||
@Setter
|
||||
@Entity
|
||||
@Table(name = "bill_additional_info")
|
||||
@Table(name = "bbps_bill_additional_info")
|
||||
public class BillAdditionalInfo {
|
||||
|
||||
@Id
|
||||
|
||||
@@ -13,7 +13,7 @@ import lombok.Setter;
|
||||
@Getter
|
||||
@Setter
|
||||
@Entity
|
||||
@Table(name = "bill_customer_params")
|
||||
@Table(name = "bbps_bill_customer_params")
|
||||
public class BillCustomerParams {
|
||||
|
||||
@Id
|
||||
|
||||
@@ -12,7 +12,7 @@ import lombok.NoArgsConstructor;
|
||||
@AllArgsConstructor
|
||||
@NoArgsConstructor
|
||||
@Entity
|
||||
@Table(name = "bill_initiate")
|
||||
@Table(name = "bbps_bill_initiate")
|
||||
public class BillInitiate {
|
||||
@Id
|
||||
@Column(name = "req_id")
|
||||
|
||||
@@ -17,7 +17,7 @@ import lombok.NoArgsConstructor;
|
||||
import lombok.Setter;
|
||||
|
||||
@Entity
|
||||
@Table(name = "bill_master")
|
||||
@Table(name = "bbps_bill_master")
|
||||
@Builder
|
||||
@Getter
|
||||
@Setter
|
||||
|
||||
@@ -16,7 +16,7 @@ import lombok.Setter;
|
||||
@Getter
|
||||
@Setter
|
||||
@Entity
|
||||
@Table(name = "bill_payment")
|
||||
@Table(name = "bbps_bill_payment")
|
||||
public class BillPayment {
|
||||
|
||||
@Id
|
||||
|
||||
@@ -13,7 +13,7 @@ import lombok.Setter;
|
||||
@Getter
|
||||
@Setter
|
||||
@Entity
|
||||
@Table(name = "bill_tag_list")
|
||||
@Table(name = "bbps_bill_tag_list")
|
||||
public class BillTag {
|
||||
|
||||
@Id
|
||||
|
||||
@@ -8,7 +8,7 @@ import lombok.Data;
|
||||
import lombok.NoArgsConstructor;
|
||||
|
||||
@Entity
|
||||
@Table(name = "bill_validation")
|
||||
@Table(name = "bbps_bill_validation")
|
||||
@Data
|
||||
@AllArgsConstructor
|
||||
@NoArgsConstructor
|
||||
|
||||
@@ -13,7 +13,7 @@ import lombok.Getter;
|
||||
import lombok.Setter;
|
||||
@Getter
|
||||
@Setter
|
||||
@Table(name = "biller_additional_info_payment")
|
||||
@Table(name = "bbps_biller_additional_info_payment")
|
||||
@Entity
|
||||
public class BillerAdditionalInfoPayment {
|
||||
@Id
|
||||
|
||||
@@ -18,7 +18,7 @@ import lombok.NoArgsConstructor;
|
||||
import lombok.Setter;
|
||||
|
||||
@Entity
|
||||
@Table(name = "biller_category_icon")
|
||||
@Table(name = "bbps_biller_category_icon")
|
||||
@Getter
|
||||
@Setter
|
||||
@NoArgsConstructor
|
||||
|
||||
@@ -15,7 +15,7 @@ import lombok.NoArgsConstructor;
|
||||
import lombok.Setter;
|
||||
|
||||
@Entity
|
||||
@Table(name = "biller_category_wise")
|
||||
@Table(name = "bbps_biller_category_wise")
|
||||
@Getter
|
||||
@Setter
|
||||
@NoArgsConstructor
|
||||
|
||||
@@ -34,7 +34,7 @@ import lombok.ToString;
|
||||
"billerAdditionalInfoPayments"
|
||||
})
|
||||
|
||||
@Table(name = "biller_details")
|
||||
@Table(name = "bbps_biller_details")
|
||||
@JsonIgnoreProperties(ignoreUnknown = true)
|
||||
public class BillerDetails{
|
||||
|
||||
|
||||
@@ -17,7 +17,7 @@ import lombok.ToString;
|
||||
@Setter
|
||||
@Entity
|
||||
@ToString
|
||||
@Table(name = "biller_plan_response_params")
|
||||
@Table(name = "bbps_biller_plan_response_params")
|
||||
public class BillerPlanResponseParams {
|
||||
@Id
|
||||
@GeneratedValue(strategy = GenerationType.IDENTITY)
|
||||
|
||||
@@ -11,7 +11,7 @@ import lombok.Getter;
|
||||
import lombok.Setter;
|
||||
|
||||
@Entity
|
||||
@Table(name = "biller_response")
|
||||
@Table(name = "bbps_biller_response")
|
||||
@Getter
|
||||
@Setter
|
||||
public class BillerResponse {
|
||||
|
||||
@@ -20,7 +20,7 @@ import lombok.Setter;
|
||||
@Getter
|
||||
@Setter
|
||||
@Entity
|
||||
@Table(name = "biller_response_params")
|
||||
@Table(name = "bbps_biller_response_params")
|
||||
public class BillerResponseParams {
|
||||
|
||||
@Id
|
||||
|
||||
@@ -12,7 +12,7 @@ import lombok.Getter;
|
||||
import lombok.Setter;
|
||||
|
||||
@Entity
|
||||
@Table(name = "category_response_list")
|
||||
@Table(name = "bbps_category_response_list")
|
||||
@Getter
|
||||
@Setter
|
||||
public class CategoryResponseList extends Auditable<String> {
|
||||
|
||||
@@ -16,7 +16,7 @@ import lombok.Getter;
|
||||
import lombok.Setter;
|
||||
|
||||
@Entity
|
||||
@Table(name = "check_client_biller_data")
|
||||
@Table(name = "bbps_check_client_biller_data")
|
||||
@Getter
|
||||
@Setter
|
||||
public class CheckClientBillerData {
|
||||
|
||||
@@ -10,7 +10,7 @@ import lombok.Getter;
|
||||
import lombok.Setter;
|
||||
|
||||
@Entity
|
||||
@Table(name = "check_client_status_req_id")
|
||||
@Table(name = "bbps_check_client_status_req_id")
|
||||
@Getter
|
||||
@Setter
|
||||
public class CheckClientStatusReqId {
|
||||
|
||||
@@ -13,7 +13,7 @@ import lombok.Data;
|
||||
import lombok.NoArgsConstructor;
|
||||
|
||||
@Entity
|
||||
@Table(name = "complaints")
|
||||
@Table(name = "bbps_complaints")
|
||||
@Data
|
||||
@AllArgsConstructor
|
||||
@NoArgsConstructor
|
||||
|
||||
@@ -7,12 +7,14 @@ import jakarta.persistence.Entity;
|
||||
import jakarta.persistence.GeneratedValue;
|
||||
import jakarta.persistence.GenerationType;
|
||||
import jakarta.persistence.Id;
|
||||
import jakarta.persistence.JoinColumn;
|
||||
import jakarta.persistence.ManyToOne;
|
||||
import jakarta.persistence.Table;
|
||||
import lombok.Getter;
|
||||
import lombok.Setter;
|
||||
|
||||
@Entity
|
||||
@Table(name = "complaint_status")
|
||||
@Table(name = "bbps_complaint_status")
|
||||
@Getter
|
||||
@Setter
|
||||
public class ComplainStatus extends Auditable<String> {
|
||||
@@ -71,4 +73,8 @@ public class ComplainStatus extends Auditable<String> {
|
||||
|
||||
@Column(name = "user_id")
|
||||
private String userId;
|
||||
|
||||
@ManyToOne
|
||||
@JoinColumn(name = "complaint_response_id")
|
||||
private ComplaintResponseEntity complaintResponse;
|
||||
}
|
||||
|
||||
@@ -5,7 +5,7 @@ import lombok.Setter;
|
||||
import lombok.ToString;
|
||||
|
||||
@Entity
|
||||
@Table(name = "complaint_details")
|
||||
@Table(name = "bbps_complaint_details")
|
||||
@Getter
|
||||
@Setter
|
||||
@ToString
|
||||
|
||||
@@ -7,6 +7,8 @@ import jakarta.persistence.Entity;
|
||||
import jakarta.persistence.GeneratedValue;
|
||||
import jakarta.persistence.GenerationType;
|
||||
import jakarta.persistence.Id;
|
||||
import jakarta.persistence.JoinColumn;
|
||||
import jakarta.persistence.ManyToOne;
|
||||
import jakarta.persistence.Table;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Getter;
|
||||
@@ -14,7 +16,7 @@ import lombok.NoArgsConstructor;
|
||||
import lombok.Setter;
|
||||
|
||||
@Entity
|
||||
@Table(name = "complaints_history")
|
||||
@Table(name = "bbps_complaints_history")
|
||||
@Getter
|
||||
@Setter
|
||||
@NoArgsConstructor
|
||||
@@ -46,4 +48,8 @@ public class ComplaintHistory extends Auditable<String> {
|
||||
@Column(name = "user_id")
|
||||
private String userId;
|
||||
|
||||
@ManyToOne
|
||||
@JoinColumn(name = "complaint_response_id")
|
||||
private ComplaintResponseEntity complaintResponse;
|
||||
|
||||
}
|
||||
|
||||
@@ -1,12 +1,16 @@
|
||||
package com.billpaymentservice.bbps.entites;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import com.billpaymentservice.bbps.audit.Auditable;
|
||||
|
||||
import jakarta.persistence.CascadeType;
|
||||
import jakarta.persistence.Column;
|
||||
import jakarta.persistence.Entity;
|
||||
import jakarta.persistence.GeneratedValue;
|
||||
import jakarta.persistence.GenerationType;
|
||||
import jakarta.persistence.Id;
|
||||
import jakarta.persistence.OneToMany;
|
||||
import jakarta.persistence.Table;
|
||||
import lombok.Getter;
|
||||
import lombok.Setter;
|
||||
@@ -16,7 +20,7 @@ import lombok.ToString;
|
||||
@Getter
|
||||
@Setter
|
||||
@ToString
|
||||
@Table(name = "complaint_responses")
|
||||
@Table(name = "bbps_complaint_responses")
|
||||
public class ComplaintResponseEntity extends Auditable<String> {
|
||||
|
||||
@Id
|
||||
@@ -68,4 +72,16 @@ public class ComplaintResponseEntity extends Auditable<String> {
|
||||
@Column(name = "user_id")
|
||||
private String userId;
|
||||
|
||||
@OneToMany(mappedBy = "complaintResponse", cascade = CascadeType.ALL, orphanRemoval = false)
|
||||
private List<ComplainStatus> complaintStatusList;
|
||||
|
||||
@OneToMany(mappedBy = "complaintResponse", cascade = CascadeType.ALL, orphanRemoval = false)
|
||||
private List<ComplaintHistory> historyList;
|
||||
|
||||
@OneToMany(mappedBy = "complaintResponse", cascade = CascadeType.ALL, orphanRemoval = false)
|
||||
private List<ComplaintStatusDetails> statusDetailsList;
|
||||
|
||||
@OneToMany(mappedBy = "complaintResponse", cascade = CascadeType.ALL, orphanRemoval = false)
|
||||
private List<ViewAllComplaintTicketStatusDetails> viewAllList;
|
||||
|
||||
}
|
||||
|
||||
@@ -7,6 +7,8 @@ import jakarta.persistence.Entity;
|
||||
import jakarta.persistence.GeneratedValue;
|
||||
import jakarta.persistence.GenerationType;
|
||||
import jakarta.persistence.Id;
|
||||
import jakarta.persistence.JoinColumn;
|
||||
import jakarta.persistence.ManyToOne;
|
||||
import jakarta.persistence.Table;
|
||||
import lombok.Getter;
|
||||
import lombok.Setter;
|
||||
@@ -14,7 +16,7 @@ import lombok.Setter;
|
||||
@Entity
|
||||
@Getter
|
||||
@Setter
|
||||
@Table(name = "view_ticket_status")
|
||||
@Table(name = "bbps_view_ticket_status")
|
||||
public class ComplaintStatusDetails extends Auditable<String> {
|
||||
|
||||
@Id
|
||||
@@ -87,4 +89,8 @@ public class ComplaintStatusDetails extends Auditable<String> {
|
||||
@Column(name = "biller_name")
|
||||
private String billerName;
|
||||
|
||||
@ManyToOne
|
||||
@JoinColumn(name = "complaint_response_id")
|
||||
private ComplaintResponseEntity complaintResponse;
|
||||
|
||||
}
|
||||
|
||||
@@ -11,7 +11,7 @@ import lombok.Setter;
|
||||
import lombok.ToString;
|
||||
|
||||
@Entity
|
||||
@Table(name = "complaint_options_status_master")
|
||||
@Table(name = "bbps_complaint_options_status_master")
|
||||
@Getter
|
||||
@Setter
|
||||
@ToString
|
||||
|
||||
@@ -14,7 +14,7 @@ import lombok.NoArgsConstructor;
|
||||
import lombok.Setter;
|
||||
|
||||
@Entity
|
||||
@Table(name = "contact_master_data")
|
||||
@Table(name = "bbps_contact_master_data")
|
||||
@Getter
|
||||
@Setter
|
||||
@NoArgsConstructor
|
||||
|
||||
@@ -16,7 +16,7 @@ import lombok.ToString;
|
||||
@Setter
|
||||
@Entity
|
||||
@ToString
|
||||
@Table(name = "custom_param")
|
||||
@Table(name = "bbps_custom_param")
|
||||
public class CustomParam extends Auditable<String> {
|
||||
|
||||
@Id
|
||||
|
||||
@@ -22,7 +22,7 @@ import lombok.ToString;
|
||||
@Getter
|
||||
@Setter
|
||||
@Entity
|
||||
@Table(name = "customer_param")
|
||||
@Table(name = "bbps_customer_param")
|
||||
@ToString
|
||||
public class CustomerParam {
|
||||
|
||||
|
||||
@@ -12,7 +12,7 @@ import lombok.Setter;
|
||||
@Entity
|
||||
@Getter
|
||||
@Setter
|
||||
@Table(name = "customer_param_bill")
|
||||
@Table(name = "bbps_customer_param_bill")
|
||||
public class CustomerParamBill {
|
||||
|
||||
@Id
|
||||
|
||||
@@ -6,7 +6,7 @@ import lombok.Data;
|
||||
import lombok.NoArgsConstructor;
|
||||
|
||||
@Entity
|
||||
@Table(name = "customer_params_bill_validate")
|
||||
@Table(name = "bbps_customer_params_bill_validate")
|
||||
@Data
|
||||
@AllArgsConstructor
|
||||
@NoArgsConstructor
|
||||
|
||||
@@ -12,7 +12,7 @@ import lombok.Setter;
|
||||
@Entity
|
||||
@Getter
|
||||
@Setter
|
||||
@Table(name = "customer_params")
|
||||
@Table(name = "bbps_customer_params")
|
||||
public class CustomerParamDAO {
|
||||
|
||||
@Id
|
||||
|
||||
@@ -20,7 +20,7 @@ import lombok.Setter;
|
||||
@Getter
|
||||
@Setter
|
||||
@Entity
|
||||
@Table(name = "customer_param_group_by_biller_id")
|
||||
@Table(name = "bbps_customer_param_group_by_biller_id")
|
||||
public class CustomerParamGroupById extends Auditable<String> {
|
||||
|
||||
@Id
|
||||
|
||||
@@ -21,7 +21,7 @@ import lombok.ToString;
|
||||
@Setter
|
||||
@Entity
|
||||
@ToString
|
||||
@Table(name = "customer_param_groups")
|
||||
@Table(name = "bbps_customer_param_groups")
|
||||
public class CustomerParamGroups {
|
||||
|
||||
@Id
|
||||
|
||||
@@ -14,7 +14,7 @@ import lombok.Setter;
|
||||
@Entity
|
||||
@Getter
|
||||
@Setter
|
||||
@Table(name = "customer_params_transaction")
|
||||
@Table(name = "bbps_customer_params_transaction")
|
||||
public class CustomerParamTransaction {
|
||||
|
||||
@Id
|
||||
|
||||
@@ -15,7 +15,7 @@ import lombok.Setter;
|
||||
@Entity
|
||||
@Getter
|
||||
@Setter
|
||||
@Table(name = "device_block_tag")
|
||||
@Table(name = "bbps_device_block_tag")
|
||||
public class DeviceBlockTag {
|
||||
|
||||
@Id
|
||||
|
||||
@@ -11,7 +11,7 @@ import lombok.ToString;
|
||||
@Getter
|
||||
@Setter
|
||||
@Entity
|
||||
@Table(name = "disposition_details")
|
||||
@Table(name = "bbps_disposition_details")
|
||||
@ToString
|
||||
public class DispositionDetails {
|
||||
|
||||
|
||||
@@ -18,7 +18,7 @@ import lombok.Setter;
|
||||
@AllArgsConstructor
|
||||
@NoArgsConstructor
|
||||
@Entity
|
||||
@Table(name = "fetch_bill_validate_response")
|
||||
@Table(name = "bbps_fetch_bill_validate_response")
|
||||
public class FetchBillValidate extends Auditable<String> {
|
||||
|
||||
@Id
|
||||
|
||||
@@ -25,7 +25,7 @@ import lombok.Setter;
|
||||
@Getter
|
||||
@Setter
|
||||
@Entity
|
||||
@Table(name = "biller_groups")
|
||||
@Table(name = "bbps_biller_groups")
|
||||
public class Group {
|
||||
|
||||
@Id
|
||||
|
||||
@@ -14,7 +14,7 @@ import lombok.Setter;
|
||||
@Getter
|
||||
@Setter
|
||||
@Entity
|
||||
@Table(name = "group_params")
|
||||
@Table(name = "bbps_group_params")
|
||||
public class GroupParam {
|
||||
|
||||
@Id
|
||||
|
||||
@@ -21,7 +21,7 @@ import lombok.ToString;
|
||||
@Setter
|
||||
@Entity
|
||||
@ToString
|
||||
@Table(name = "interchange_fee")
|
||||
@Table(name = "bbps_interchange_fee")
|
||||
public class InterchangeFee {
|
||||
|
||||
@Id
|
||||
|
||||
@@ -19,7 +19,7 @@ import lombok.Setter;
|
||||
@Getter
|
||||
@Setter
|
||||
@Entity
|
||||
@Table(name = "interchange_fee_conf")
|
||||
@Table(name = "bbps_interchange_fee_conf")
|
||||
public class InterchangeFeeConf {
|
||||
|
||||
@Id
|
||||
|
||||
@@ -12,7 +12,7 @@ import lombok.Getter;
|
||||
import lombok.Setter;
|
||||
|
||||
@Entity
|
||||
@Table(name = "interchange_fee_detail")
|
||||
@Table(name = "bbps_interchange_fee_detail")
|
||||
@Getter
|
||||
@Setter
|
||||
public class InterchangeFeeDetail {
|
||||
|
||||
@@ -17,7 +17,7 @@ import lombok.ToString;
|
||||
@Setter
|
||||
@Entity
|
||||
@ToString
|
||||
@Table(name = "payment_channel")
|
||||
@Table(name = "bbps_payment_channel")
|
||||
public class PaymentChannel {
|
||||
|
||||
@Id
|
||||
|
||||
@@ -12,7 +12,7 @@ import lombok.NoArgsConstructor;
|
||||
@AllArgsConstructor
|
||||
@NoArgsConstructor
|
||||
@Entity
|
||||
@Table(name = "payment_initiate")
|
||||
@Table(name = "bbps_payment_initiate")
|
||||
public class PaymentInitiate {
|
||||
|
||||
@Id
|
||||
|
||||
@@ -19,7 +19,7 @@ import lombok.ToString;
|
||||
@Getter
|
||||
@Setter
|
||||
@Entity
|
||||
@Table(name = "biller_payment_modes")
|
||||
@Table(name = "bbps_biller_payment_modes")
|
||||
@ToString
|
||||
public class PaymentMode {
|
||||
|
||||
|
||||
@@ -17,7 +17,7 @@ import lombok.NoArgsConstructor;
|
||||
@AllArgsConstructor
|
||||
@NoArgsConstructor
|
||||
@Entity
|
||||
@Table(name = "payment_start_record")
|
||||
@Table(name = "bbps_payment_start_record")
|
||||
public class PaymentStartRecord {
|
||||
|
||||
@Id
|
||||
|
||||
@@ -18,7 +18,7 @@ import lombok.Getter;
|
||||
import lombok.Setter;
|
||||
|
||||
@Entity
|
||||
@Table(name = "plan")
|
||||
@Table(name = "bbps_plan")
|
||||
@Getter
|
||||
@Setter
|
||||
public class Plan {
|
||||
|
||||
@@ -12,7 +12,7 @@ import lombok.Getter;
|
||||
import lombok.Setter;
|
||||
|
||||
@Entity
|
||||
@Table(name = "plan_category_sub_type")
|
||||
@Table(name = "bbps_plan_category_sub_type")
|
||||
@Getter
|
||||
@Setter
|
||||
public class PlanCategorySubType {
|
||||
|
||||
@@ -16,7 +16,7 @@ import lombok.Getter;
|
||||
import lombok.Setter;
|
||||
|
||||
@Entity
|
||||
@Table(name = "plan_response")
|
||||
@Table(name = "bbps_plan_response")
|
||||
@Getter
|
||||
@Setter
|
||||
public class PlanResponses extends Auditable<String> {
|
||||
|
||||
@@ -5,7 +5,7 @@ import lombok.Getter;
|
||||
import lombok.Setter;
|
||||
|
||||
@Entity
|
||||
@Table(name = "plan_tag")
|
||||
@Table(name = "bbps_plan_tag")
|
||||
@Getter
|
||||
@Setter
|
||||
public class PlanTag {
|
||||
|
||||
@@ -14,7 +14,7 @@ import lombok.Getter;
|
||||
import lombok.Setter;
|
||||
|
||||
@Entity
|
||||
@Table(name = "plans_list")
|
||||
@Table(name = "bbps_plans_list")
|
||||
@Getter
|
||||
@Setter
|
||||
public class PlansList {
|
||||
|
||||
@@ -12,7 +12,7 @@ import lombok.Getter;
|
||||
import lombok.Setter;
|
||||
|
||||
@Entity
|
||||
@Table(name = "reopen_complaint")
|
||||
@Table(name = "bbps_reopen_complaint")
|
||||
@Getter
|
||||
@Setter
|
||||
public class ReOpenComplain extends Auditable<String> {
|
||||
|
||||
@@ -15,7 +15,7 @@ import lombok.Setter;
|
||||
@Getter
|
||||
@Setter
|
||||
@Entity
|
||||
@Table(name = "remitter_identity")
|
||||
@Table(name = "bbps_remitter_identity")
|
||||
public class RemitterIdentity {
|
||||
|
||||
@Id
|
||||
|
||||
@@ -15,7 +15,7 @@ import lombok.ToString;
|
||||
@Getter
|
||||
@Setter
|
||||
@Entity
|
||||
@Table(name = "ticket_disposition_details")
|
||||
@Table(name = "bbps_ticket_disposition_details")
|
||||
@ToString
|
||||
public class TicketDispositionDetails extends Auditable<String> {
|
||||
|
||||
|
||||
@@ -20,7 +20,7 @@ import lombok.ToString;
|
||||
@Getter
|
||||
@Setter
|
||||
@Entity
|
||||
@Table(name = "transaction_master")
|
||||
@Table(name = "bbps_transaction_master")
|
||||
@ToString
|
||||
@NoArgsConstructor
|
||||
@AllArgsConstructor
|
||||
|
||||
@@ -14,7 +14,7 @@ import lombok.NoArgsConstructor;
|
||||
import lombok.Setter;
|
||||
|
||||
@Entity
|
||||
@Table(name = "users")
|
||||
@Table(name = "bbps_users")
|
||||
@Getter
|
||||
@Setter
|
||||
@AllArgsConstructor
|
||||
|
||||
@@ -15,7 +15,7 @@ import lombok.NoArgsConstructor;
|
||||
@NoArgsConstructor
|
||||
@AllArgsConstructor
|
||||
@Entity
|
||||
@Table(name = "user_details")
|
||||
@Table(name = "bbps_user_details")
|
||||
public class UsersDetails extends Auditable<String> {
|
||||
|
||||
@Id
|
||||
|
||||
+7
-1
@@ -7,6 +7,8 @@ import jakarta.persistence.Entity;
|
||||
import jakarta.persistence.GeneratedValue;
|
||||
import jakarta.persistence.GenerationType;
|
||||
import jakarta.persistence.Id;
|
||||
import jakarta.persistence.JoinColumn;
|
||||
import jakarta.persistence.ManyToOne;
|
||||
import jakarta.persistence.Table;
|
||||
import lombok.Getter;
|
||||
import lombok.Setter;
|
||||
@@ -14,7 +16,7 @@ import lombok.Setter;
|
||||
@Entity
|
||||
@Getter
|
||||
@Setter
|
||||
@Table(name = "view_all_complaint_ticket_status")
|
||||
@Table(name = "bbps_view_all_complaint_ticket_status")
|
||||
public class ViewAllComplaintTicketStatusDetails extends Auditable<String> {
|
||||
|
||||
@Id
|
||||
@@ -86,4 +88,8 @@ public class ViewAllComplaintTicketStatusDetails extends Auditable<String> {
|
||||
|
||||
@Column(name = "biller_name")
|
||||
private String billerName;
|
||||
|
||||
@ManyToOne
|
||||
@JoinColumn(name = "complaint_response_id")
|
||||
private ComplaintResponseEntity complaintResponse;
|
||||
}
|
||||
|
||||
@@ -9,6 +9,11 @@ import com.billpaymentservice.bbps.entites.BBPSMastersData;
|
||||
@Repository
|
||||
public interface BBPSMasterDataRepo extends JpaRepository<BBPSMastersData, Long> {
|
||||
|
||||
@Query("from BBPSMastersData where mid = ?1 and isDeleted = false")
|
||||
public BBPSMastersData findByMid(String mid);
|
||||
// @Query("from BBPSMastersData where mid = ?1 and isDeleted = false")
|
||||
// public BBPSMastersData findByMid(String mid);
|
||||
|
||||
@Query(value = "SELECT * FROM bbps_master_data WHERE mid = ?1 AND is_deleted = false",
|
||||
nativeQuery = true)
|
||||
BBPSMastersData findByMid(String mid);
|
||||
|
||||
}
|
||||
|
||||
+9
-4
@@ -1,12 +1,17 @@
|
||||
package com.billpaymentservice.bbps.repository;
|
||||
|
||||
import org.springframework.data.jpa.repository.JpaRepository;
|
||||
import org.springframework.data.jpa.repository.Query;
|
||||
import org.springframework.data.repository.query.Param;
|
||||
import org.springframework.stereotype.Repository;
|
||||
|
||||
import com.billpaymentservice.bbps.entites.BharatConnectMaster;
|
||||
|
||||
@Repository
|
||||
public interface BharatConnectMasterRepository extends JpaRepository<BharatConnectMaster,String>
|
||||
{
|
||||
public BharatConnectMaster findByOrgId(String orgId);
|
||||
|
||||
public interface BharatConnectMasterRepository extends JpaRepository<BharatConnectMaster, String> {
|
||||
// public BharatConnectMaster findByOrgId(String orgId);
|
||||
|
||||
@Query(value = "SELECT * FROM bbps_bharat_connect_master WHERE org_id = :orgId", nativeQuery = true)
|
||||
BharatConnectMaster findByOrgId(@Param("orgId") String orgId);
|
||||
|
||||
}
|
||||
|
||||
@@ -3,6 +3,8 @@ package com.billpaymentservice.bbps.repository;
|
||||
import java.util.Optional;
|
||||
|
||||
import org.springframework.data.jpa.repository.JpaRepository;
|
||||
import org.springframework.data.jpa.repository.Query;
|
||||
import org.springframework.data.repository.query.Param;
|
||||
import org.springframework.stereotype.Repository;
|
||||
|
||||
import com.billpaymentservice.bbps.entites.BillInitiate;
|
||||
@@ -10,8 +12,14 @@ import com.billpaymentservice.bbps.entites.BillInitiate;
|
||||
@Repository
|
||||
public interface BillInitateRepository extends JpaRepository<BillInitiate, String> {
|
||||
|
||||
Optional<BillInitiate> findByTxnId(String clientReqId);
|
||||
@Query(value = "SELECT * FROM bbps_bill_initiate WHERE txn_id = :txnId", nativeQuery = true)
|
||||
Optional<BillInitiate> findByTxnId(@Param("txnId") String txnId);
|
||||
|
||||
Optional<BillInitiate> findByReqId(String clientReqId);
|
||||
// Optional<BillInitiate> findByTxnId(String clientReqId);
|
||||
|
||||
@Query(value = "SELECT * FROM bbps_bill_initiate WHERE req_id = :reqId", nativeQuery = true)
|
||||
Optional<BillInitiate> findByReqId(@Param("reqId") String reqId);
|
||||
|
||||
// Optional<BillInitiate> findByReqId(String clientReqId);
|
||||
|
||||
}
|
||||
|
||||
@@ -1,14 +1,20 @@
|
||||
package com.billpaymentservice.bbps.repository;
|
||||
|
||||
|
||||
import java.util.Optional;
|
||||
|
||||
import org.springframework.data.jpa.repository.JpaRepository;
|
||||
import org.springframework.data.jpa.repository.Query;
|
||||
import org.springframework.data.repository.query.Param;
|
||||
import org.springframework.stereotype.Repository;
|
||||
|
||||
import com.billpaymentservice.bbps.entites.BillerDetails;
|
||||
|
||||
@Repository
|
||||
public interface BillerDataRepository extends JpaRepository<BillerDetails, String> {
|
||||
|
||||
Optional<BillerDetails> findByBillerId(String billerId);
|
||||
// Optional<BillerDetails> findByBillerId(String billerId);
|
||||
|
||||
@Query(value = "SELECT * FROM bbps_biller_details WHERE biller_id = :billerId", nativeQuery = true)
|
||||
Optional<BillerDetails> findByBillerId(@Param("billerId") String billerId);
|
||||
|
||||
}
|
||||
|
||||
+5
-1
@@ -11,6 +11,10 @@ import com.billpaymentservice.bbps.entites.ComplaintStatusOptionsMaster;
|
||||
@Repository
|
||||
public interface ComplaintOptionsStatusMasterRepository extends JpaRepository<ComplaintStatusOptionsMaster, Integer> {
|
||||
|
||||
@Query("SELECT c FROM ComplaintStatusOptionsMaster c WHERE c.isDeleted = false")
|
||||
// @Query("SELECT c FROM ComplaintStatusOptionsMaster c WHERE c.isDeleted = false")
|
||||
// List<ComplaintStatusOptionsMaster> findAllActiveStatuses();
|
||||
|
||||
@Query(value = "SELECT * FROM bbps_complaint_options_status_master WHERE is_deleted = false", nativeQuery = true)
|
||||
List<ComplaintStatusOptionsMaster> findAllActiveStatuses();
|
||||
|
||||
}
|
||||
|
||||
@@ -17,4 +17,8 @@ public interface ComplaintResponseRepository extends JpaRepository<ComplaintResp
|
||||
|
||||
@Query("SELECT c FROM ComplaintResponseEntity c WHERE c.userId = :userId")
|
||||
Page<ComplaintResponseEntity> findByUserIdCustom(@Param("userId") String userId, Pageable pageable);
|
||||
|
||||
@Query(value = "SELECT * FROM bbps_complaint_responses WHERE user_id = :userId", nativeQuery = true)
|
||||
Page<ComplaintResponseEntity> findByUserIdNative(@Param("userId") String userId, Pageable pageable);
|
||||
|
||||
}
|
||||
|
||||
@@ -2,6 +2,7 @@ package com.billpaymentservice.bbps.repository;
|
||||
|
||||
import org.springframework.data.jpa.repository.JpaRepository;
|
||||
import org.springframework.data.jpa.repository.Query;
|
||||
import org.springframework.data.repository.query.Param;
|
||||
import org.springframework.stereotype.Repository;
|
||||
|
||||
import com.billpaymentservice.bbps.entites.BBPSMerchantValidation;
|
||||
@@ -9,6 +10,10 @@ import com.billpaymentservice.bbps.entites.BBPSMerchantValidation;
|
||||
@Repository
|
||||
public interface MerchantRepository extends JpaRepository<BBPSMerchantValidation, Long> {
|
||||
|
||||
@Query("from BBPSMerchantValidation where mid = ?1 and is_deleted = false")
|
||||
public BBPSMerchantValidation findByMid(String mid);
|
||||
// @Query("from BBPSMerchantValidation where mid = ?1 and is_deleted = false")
|
||||
// public BBPSMerchantValidation findByMid(String mid);
|
||||
|
||||
@Query(value = "SELECT * FROM bbps_merchant_validation WHERE mid = :mid AND is_deleted = false", nativeQuery = true)
|
||||
BBPSMerchantValidation findByMidNative(@Param("mid") String mid);
|
||||
|
||||
}
|
||||
|
||||
@@ -3,11 +3,15 @@ package com.billpaymentservice.bbps.repository;
|
||||
import java.util.Optional;
|
||||
|
||||
import org.springframework.data.jpa.repository.JpaRepository;
|
||||
import org.springframework.data.jpa.repository.Query;
|
||||
|
||||
import com.billpaymentservice.bbps.entites.PaymentInitiate;
|
||||
|
||||
public interface PaymentIntiateRepository extends JpaRepository<PaymentInitiate, String> {
|
||||
|
||||
// Optional<PaymentInitiate> findByReqId(String clientReqId);
|
||||
|
||||
@Query(value = "SELECT * FROM bbps_payment_initiate WHERE req_id = :clientReqId", nativeQuery = true)
|
||||
Optional<PaymentInitiate> findByReqId(String clientReqId);
|
||||
|
||||
}
|
||||
|
||||
@@ -5,6 +5,7 @@ import java.time.LocalDateTime;
|
||||
import java.util.Date;
|
||||
import java.util.Random;
|
||||
|
||||
import org.apache.commons.lang3.StringUtils;
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
import org.springframework.http.HttpHeaders;
|
||||
@@ -71,19 +72,20 @@ public class Helper {
|
||||
BBPSMastersData merchantValidation = bbpsMasterDataRepo.findByMid(mid);
|
||||
|
||||
if (merchantValidation == null) {
|
||||
LOGGER.warn("Merchant not found for MID: {}", mid);
|
||||
throw new CustomException("Merchant not found by id", "FAILED", BBPSConstant.BADREQUEST, null);
|
||||
LOGGER.warn("Merchant not found for MID: {}", mid);
|
||||
throw new CustomException("Merchant not found by id", "FAILED", BBPSConstant.BADREQUEST, null);
|
||||
}
|
||||
|
||||
if (merchantValidation.getApiKey() == null && merchantValidation.getSecreteKey() == null) {
|
||||
LOGGER.warn("Merchant BBPS service is not active MID: {}", mid);
|
||||
throw new CustomException("Merchant BBPS Service is not active by mid", "FAILED", BBPSConstant.BADREQUEST,
|
||||
null);
|
||||
}
|
||||
if (StringUtils.isBlank(merchantValidation.getApiKey())
|
||||
&& StringUtils.isBlank(merchantValidation.getSecreteKey())) {
|
||||
|
||||
LOGGER.warn("Merchant BBPS service is not active MID: {}", mid);
|
||||
throw new CustomException("Merchant BBPS Service is not active by mid",
|
||||
"FAILED", BBPSConstant.BADREQUEST, null);
|
||||
}
|
||||
if (!Boolean.TRUE.equals(merchantValidation.getIsActive())) {
|
||||
LOGGER.warn("Merchant inactive for MID: {}", mid);
|
||||
throw new CustomException("Merchant is inactive", "FAILED", BBPSConstant.BADREQUEST, null);
|
||||
LOGGER.warn("Merchant inactive for MID: {}", mid);
|
||||
throw new CustomException("Merchant is inactive", "FAILED", BBPSConstant.BADREQUEST, null);
|
||||
}
|
||||
|
||||
LOGGER.info("Merchant is valid and active for MID: {}", mid);
|
||||
|
||||
@@ -18,11 +18,11 @@ swagger.server.description=Local Development Server
|
||||
|
||||
|
||||
# DataSource
|
||||
spring.datasource.url=jdbc:postgresql://localhost:5432/BBPS
|
||||
spring.datasource.url=jdbc:postgresql://localhost:5432/devdbuat
|
||||
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.type=com.zaxxer.hikari.HikariDataSource
|
||||
|
||||
|
||||
@@ -17,7 +17,7 @@ swagger.server.description=Production Server
|
||||
|
||||
|
||||
# DataSource
|
||||
spring.datasource.url=jdbc:postgresql://localhost:5432/bbps
|
||||
spring.datasource.url=jdbc:postgresql://localhost:5432/devdbuat
|
||||
spring.datasource.username=postgres
|
||||
spring.datasource.password=LincPay098)(*
|
||||
spring.datasource.driver-class-name=org.postgresql.Driver
|
||||
|
||||
Reference in New Issue
Block a user