Subversion Repositories SmartDukaan

Rev

Rev 37027 | Details | Compare with Previous | 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;
37029 aman 19
    private String state;
36957 aman 20
    private String outletName;
21
    private String remark;
22
    private String status;
37027 aman 23
    private String recordingUrl;
36957 aman 24
 
25
    public String getFirstName() {
26
        return firstName;
27
    }
28
 
29
    public void setFirstName(String firstName) {
30
        this.firstName = firstName;
31
    }
32
 
33
    public String getLastName() {
34
        return lastName;
35
    }
36
 
37
    public void setLastName(String lastName) {
38
        this.lastName = lastName;
39
    }
40
 
41
    public String getMobile() {
42
        return mobile;
43
    }
44
 
45
    public void setMobile(String mobile) {
46
        this.mobile = mobile;
47
    }
48
 
49
    public String getCity() {
50
        return city;
51
    }
52
 
53
    public void setCity(String city) {
54
        this.city = city;
55
    }
56
 
37029 aman 57
    public String getState() {
58
        return state;
59
    }
60
 
61
    public void setState(String state) {
62
        this.state = state;
63
    }
64
 
36957 aman 65
    public String getOutletName() {
66
        return outletName;
67
    }
68
 
69
    public void setOutletName(String outletName) {
70
        this.outletName = outletName;
71
    }
72
 
73
    public String getRemark() {
74
        return remark;
75
    }
76
 
77
    public void setRemark(String remark) {
78
        this.remark = remark;
79
    }
80
 
81
    public String getStatus() {
82
        return status;
83
    }
84
 
85
    public void setStatus(String status) {
86
        this.status = status;
87
    }
88
 
37027 aman 89
    public String getRecordingUrl() {
90
        return recordingUrl;
91
    }
92
 
93
    public void setRecordingUrl(String recordingUrl) {
94
        this.recordingUrl = recordingUrl;
95
    }
96
 
36957 aman 97
    @Override
98
    public String toString() {
99
        return "AiLeadRequest{" +
100
                "firstName='" + firstName + '\'' +
101
                ", lastName='" + lastName + '\'' +
102
                ", mobile='" + mobile + '\'' +
103
                ", city='" + city + '\'' +
37029 aman 104
                ", state='" + state + '\'' +
36957 aman 105
                ", outletName='" + outletName + '\'' +
106
                ", remark='" + remark + '\'' +
107
                ", status='" + status + '\'' +
37027 aman 108
                ", recordingUrl='" + recordingUrl + '\'' +
36957 aman 109
                '}';
110
    }
111
}