Subversion Repositories SmartDukaan

Rev

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