Subversion Repositories SmartDukaan

Rev

Rev 37027 | Go to most recent revision | Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
36957 aman 1
package com.spice.profitmandi.dao.model;
2
 
3
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
4
 
5
/**
6
 * Payload posted by the AI assistant (chat + voice) lead-capture flows.
7
 * <p>
8
 * Deliberately kept as plain strings (unlike {@link CreateRefferalRequest}) because the AI side
9
 * sends {@code status:"NEW"}, which is not a valid {@code LeadStatus} enum value, and only ever
10
 * collects a small, fixed set of fields. Unknown / future fields are ignored rather than rejected.
11
 */
12
@JsonIgnoreProperties(ignoreUnknown = true)
13
public class AiLeadRequest {
14
 
15
    private String firstName;
16
    private String lastName;
17
    private String mobile;
18
    private String city;
19
    private String outletName;
20
    private String remark;
21
    private String status;
22
 
23
    public String getFirstName() {
24
        return firstName;
25
    }
26
 
27
    public void setFirstName(String firstName) {
28
        this.firstName = firstName;
29
    }
30
 
31
    public String getLastName() {
32
        return lastName;
33
    }
34
 
35
    public void setLastName(String lastName) {
36
        this.lastName = lastName;
37
    }
38
 
39
    public String getMobile() {
40
        return mobile;
41
    }
42
 
43
    public void setMobile(String mobile) {
44
        this.mobile = mobile;
45
    }
46
 
47
    public String getCity() {
48
        return city;
49
    }
50
 
51
    public void setCity(String city) {
52
        this.city = city;
53
    }
54
 
55
    public String getOutletName() {
56
        return outletName;
57
    }
58
 
59
    public void setOutletName(String outletName) {
60
        this.outletName = outletName;
61
    }
62
 
63
    public String getRemark() {
64
        return remark;
65
    }
66
 
67
    public void setRemark(String remark) {
68
        this.remark = remark;
69
    }
70
 
71
    public String getStatus() {
72
        return status;
73
    }
74
 
75
    public void setStatus(String status) {
76
        this.status = status;
77
    }
78
 
79
    @Override
80
    public String toString() {
81
        return "AiLeadRequest{" +
82
                "firstName='" + firstName + '\'' +
83
                ", lastName='" + lastName + '\'' +
84
                ", mobile='" + mobile + '\'' +
85
                ", city='" + city + '\'' +
86
                ", outletName='" + outletName + '\'' +
87
                ", remark='" + remark + '\'' +
88
                ", status='" + status + '\'' +
89
                '}';
90
    }
91
}