| 34907 |
aman |
1 |
package com.spice.profitmandi.dao.entity.affiliate;
|
|
|
2 |
import com.spice.profitmandi.common.model.ProfitMandiConstants;
|
|
|
3 |
import javax.persistence.*;
|
|
|
4 |
import java.time.LocalDateTime;
|
|
|
5 |
|
|
|
6 |
@Entity
|
|
|
7 |
@Table(name = "web.affiliate_kyc")
|
|
|
8 |
public class AffiliateKyc {
|
|
|
9 |
|
|
|
10 |
@Id
|
|
|
11 |
@GeneratedValue(strategy = GenerationType.IDENTITY)
|
|
|
12 |
@Column(name = "id")
|
|
|
13 |
private int id;
|
|
|
14 |
|
|
|
15 |
@Column(name = "customer_id")
|
|
|
16 |
private int customerId;
|
|
|
17 |
|
|
|
18 |
@Enumerated(EnumType.STRING)
|
|
|
19 |
@Column(name = "document_type")
|
|
|
20 |
private ProfitMandiConstants.DocumentType documentType;
|
|
|
21 |
|
|
|
22 |
@Column(name = "document_id")
|
|
|
23 |
private String documentId;
|
|
|
24 |
|
|
|
25 |
@Enumerated(EnumType.STRING)
|
|
|
26 |
@Column(name = "status")
|
|
|
27 |
private ProfitMandiConstants.Status status = ProfitMandiConstants.Status.PENDING;
|
|
|
28 |
|
|
|
29 |
@Column(name = "created_at")
|
|
|
30 |
private LocalDateTime createdAt;
|
|
|
31 |
|
|
|
32 |
|
|
|
33 |
|
|
|
34 |
public AffiliateKyc(int id, int customerId, ProfitMandiConstants.DocumentType documentType, String documentId, ProfitMandiConstants.Status status, LocalDateTime createdAt) {
|
|
|
35 |
this.id = id;
|
|
|
36 |
this.customerId = customerId;
|
|
|
37 |
this.documentType = documentType;
|
|
|
38 |
this.documentId = documentId;
|
|
|
39 |
this.status = status;
|
|
|
40 |
this.createdAt = createdAt;
|
|
|
41 |
}
|
|
|
42 |
|
|
|
43 |
public AffiliateKyc() {
|
|
|
44 |
|
|
|
45 |
}
|
|
|
46 |
|
|
|
47 |
|
|
|
48 |
public int getId() {
|
|
|
49 |
return id;
|
|
|
50 |
}
|
|
|
51 |
|
|
|
52 |
public void setId(int id) {
|
|
|
53 |
this.id = id;
|
|
|
54 |
}
|
|
|
55 |
|
|
|
56 |
public int getCustomerId() {
|
|
|
57 |
return customerId;
|
|
|
58 |
}
|
|
|
59 |
|
|
|
60 |
public void setCustomerId(int customerId) {
|
|
|
61 |
this.customerId = customerId;
|
|
|
62 |
}
|
|
|
63 |
|
|
|
64 |
public ProfitMandiConstants.DocumentType getDocumentType() {
|
|
|
65 |
return documentType;
|
|
|
66 |
}
|
|
|
67 |
|
|
|
68 |
public void setDocumentType(ProfitMandiConstants.DocumentType documentType) {
|
|
|
69 |
this.documentType = documentType;
|
|
|
70 |
}
|
|
|
71 |
|
|
|
72 |
public String getDocumentId() {
|
|
|
73 |
return documentId;
|
|
|
74 |
}
|
|
|
75 |
|
|
|
76 |
public void setDocumentId(String documentId) {
|
|
|
77 |
this.documentId = documentId;
|
|
|
78 |
}
|
|
|
79 |
|
|
|
80 |
public ProfitMandiConstants.Status getStatus() {
|
|
|
81 |
return status;
|
|
|
82 |
}
|
|
|
83 |
|
|
|
84 |
public void setStatus(ProfitMandiConstants.Status status) {
|
|
|
85 |
this.status = status;
|
|
|
86 |
}
|
|
|
87 |
|
|
|
88 |
public LocalDateTime getCreatedAt() {
|
|
|
89 |
return createdAt;
|
|
|
90 |
}
|
|
|
91 |
|
|
|
92 |
public void setCreatedAt(LocalDateTime createdAt) {
|
|
|
93 |
this.createdAt = createdAt;
|
|
|
94 |
}
|
|
|
95 |
|
|
|
96 |
@Override
|
|
|
97 |
public String toString() {
|
|
|
98 |
return "AffiliateKyc{" +
|
|
|
99 |
"id=" + id +
|
|
|
100 |
", customerId=" + customerId +
|
|
|
101 |
", documentType=" + documentType +
|
|
|
102 |
", documentId='" + documentId + '\'' +
|
|
|
103 |
", status=" + status +
|
|
|
104 |
", createdAt=" + createdAt +
|
|
|
105 |
'}';
|
|
|
106 |
}
|
|
|
107 |
}
|