added database for bill intitate and bill payment and removed the polling logic
This commit is contained in:
@@ -0,0 +1,60 @@
|
||||
package com.billpaymentservice.bbps.entites;
|
||||
|
||||
import java.time.LocalDate;
|
||||
|
||||
import jakarta.persistence.Column;
|
||||
import jakarta.persistence.Entity;
|
||||
import jakarta.persistence.GeneratedValue;
|
||||
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 = "biller_response")
|
||||
@Getter
|
||||
@Setter
|
||||
public class BillerResponse {
|
||||
|
||||
@Id
|
||||
@GeneratedValue
|
||||
private Long id;
|
||||
|
||||
@Column(name = "amount")
|
||||
private String amount;
|
||||
|
||||
@Column(name = "bill_date")
|
||||
private String billDate;
|
||||
|
||||
@Column(name = "bill_id")
|
||||
private String billId;
|
||||
|
||||
@Column(name = "bill_number")
|
||||
private String billNumber;
|
||||
|
||||
@Column(name = "bill_period")
|
||||
private String billPeriod;
|
||||
|
||||
@Column(name = "cust_conv_fee")
|
||||
private String custConvFee;
|
||||
|
||||
@Column(name = "cou_cust_conv_fee")
|
||||
private String couCustConvFee;
|
||||
|
||||
@Column(name = "due_date")
|
||||
private String dueDate;
|
||||
|
||||
@Column(name = "customer_name")
|
||||
private String customerName;
|
||||
|
||||
@Column(name = "amount_option")
|
||||
private Boolean amountOption;
|
||||
|
||||
@ManyToOne
|
||||
@JoinColumn(name = "bill_master_id")
|
||||
private BillMaster billMaster;
|
||||
|
||||
// getters and setters
|
||||
}
|
||||
Reference in New Issue
Block a user