Subversion Repositories SmartDukaan

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
37125 vikas 1
package com.spice.profitmandi.dao.model;
2
 
3
import com.spice.profitmandi.dao.enumuration.dtr.LeadDisposition;
4
 
5
import java.time.LocalDateTime;
6
 
7
/**
8
 * Payload for POST /lms/disposition — the outcome captured when a C2C call is dispositioned
9
 * (SOP §12). Carries the disposition + its contextual sub-fields; the endpoint decides the
10
 * resulting stage transition, SLA stamping, and trail entry.
11
 */
12
public class LmsDispositionRequest {
13
 
14
    private int leadId;
15
    private LeadDisposition disposition;
16
 
17
    /** NOT_INTERESTED sub-reason: Price / Terms / Already partnered / Category mismatch / Other. */
18
    private String subReason;
19
 
20
    /** Confirmed monthly business value (INTERESTED → QUALIFIED). Maps to Lead.potential. */
21
    private Double value;
22
 
23
    /** CALLBACK date/time. */
24
    private LocalDateTime callbackAt;
25
 
26
    /** FOLLOW_UP date/time. */
27
    private LocalDateTime followUpAt;
28
 
29
    /** FOLLOW_UP type: CALL or MEETING (a MEETING creates a visit request). */
30
    private String followUpType;
31
 
32
    /** NOT_REACHABLE retry hint (e.g. "24h" / "4h" / "tomorrow"); informational, retained in the trail. */
33
    private String retrySchedule;
34
 
35
    /** WRONG_NUMBER corrected number (optional); if valid, replaces the lead mobile. */
36
    private String correctedNumber;
37
 
38
    /** Free-text note appended to the trail. */
39
    private String note;
40
 
41
    /** Optional recording URL captured for this call. */
42
    private String recordingUrl;
43
 
44
    public int getLeadId() {
45
        return leadId;
46
    }
47
 
48
    public void setLeadId(int leadId) {
49
        this.leadId = leadId;
50
    }
51
 
52
    public LeadDisposition getDisposition() {
53
        return disposition;
54
    }
55
 
56
    public void setDisposition(LeadDisposition disposition) {
57
        this.disposition = disposition;
58
    }
59
 
60
    public String getSubReason() {
61
        return subReason;
62
    }
63
 
64
    public void setSubReason(String subReason) {
65
        this.subReason = subReason;
66
    }
67
 
68
    public Double getValue() {
69
        return value;
70
    }
71
 
72
    public void setValue(Double value) {
73
        this.value = value;
74
    }
75
 
76
    public LocalDateTime getCallbackAt() {
77
        return callbackAt;
78
    }
79
 
80
    public void setCallbackAt(LocalDateTime callbackAt) {
81
        this.callbackAt = callbackAt;
82
    }
83
 
84
    public LocalDateTime getFollowUpAt() {
85
        return followUpAt;
86
    }
87
 
88
    public void setFollowUpAt(LocalDateTime followUpAt) {
89
        this.followUpAt = followUpAt;
90
    }
91
 
92
    public String getFollowUpType() {
93
        return followUpType;
94
    }
95
 
96
    public void setFollowUpType(String followUpType) {
97
        this.followUpType = followUpType;
98
    }
99
 
100
    public String getRetrySchedule() {
101
        return retrySchedule;
102
    }
103
 
104
    public void setRetrySchedule(String retrySchedule) {
105
        this.retrySchedule = retrySchedule;
106
    }
107
 
108
    public String getCorrectedNumber() {
109
        return correctedNumber;
110
    }
111
 
112
    public void setCorrectedNumber(String correctedNumber) {
113
        this.correctedNumber = correctedNumber;
114
    }
115
 
116
    public String getNote() {
117
        return note;
118
    }
119
 
120
    public void setNote(String note) {
121
        this.note = note;
122
    }
123
 
124
    public String getRecordingUrl() {
125
        return recordingUrl;
126
    }
127
 
128
    public void setRecordingUrl(String recordingUrl) {
129
        this.recordingUrl = recordingUrl;
130
    }
131
 
132
    @Override
133
    public String toString() {
134
        return "LmsDispositionRequest{leadId=" + leadId + ", disposition=" + disposition
135
                + ", subReason='" + subReason + "', value=" + value + ", callbackAt=" + callbackAt
136
                + ", followUpAt=" + followUpAt + ", followUpType='" + followUpType + "', retrySchedule='"
137
                + retrySchedule + "', correctedNumber='" + correctedNumber + "', note='" + note + "'}";
138
    }
139
}