added initatePayment and checkTxnStatus
This commit is contained in:
@@ -0,0 +1,54 @@
|
||||
package com.billpaymentservice.bbps.entites;
|
||||
|
||||
import java.time.LocalDateTime;
|
||||
|
||||
import org.hibernate.annotations.CreationTimestamp;
|
||||
import org.hibernate.annotations.UpdateTimestamp;
|
||||
|
||||
import com.billpaymentservice.bbps.audit.Auditable;
|
||||
|
||||
import jakarta.persistence.Column;
|
||||
import jakarta.persistence.Entity;
|
||||
import jakarta.persistence.Id;
|
||||
import jakarta.persistence.Table;
|
||||
import jakarta.validation.constraints.NotBlank;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Getter;
|
||||
import lombok.NoArgsConstructor;
|
||||
import lombok.Setter;
|
||||
|
||||
@Getter
|
||||
@Setter
|
||||
@AllArgsConstructor
|
||||
@NoArgsConstructor
|
||||
@Entity
|
||||
@Table(name = "Bharat_connect_master")
|
||||
public class BharatConnectMaster extends Auditable<String> {
|
||||
|
||||
@Id
|
||||
@Column(name = "org_id", nullable = false, unique = true, length = 50)
|
||||
@NotBlank(message = "Organization ID cannot be blank")
|
||||
private String orgId;
|
||||
|
||||
@Column(name = "x_digiledge_key", nullable = false, length = 255)
|
||||
@NotBlank(message = "x-digiledge-key cannot be blank")
|
||||
private String xDigiledgeKey;
|
||||
|
||||
@Column(name = "tenant_id", nullable = false, length = 50)
|
||||
@NotBlank(message = "Tenant ID cannot be blank")
|
||||
private String tenantId;
|
||||
|
||||
@Column(name = "agent_id", nullable = false, length = 100)
|
||||
@NotBlank(message = "Agent ID cannot be blank")
|
||||
private String agentId;
|
||||
|
||||
// Optional metadata fields
|
||||
@Column(name = "organization_name", length = 100)
|
||||
private String organizationName;
|
||||
|
||||
@Column(name = "api_base_url", length = 500)
|
||||
private String apiBaseUrl;
|
||||
|
||||
@Column(name = "is_active")
|
||||
private boolean isActive=false;
|
||||
}
|
||||
Reference in New Issue
Block a user