| Line 40... |
Line 40... |
| 40 |
public static final String LOI_ACCEPTANCE_OTP_TEMPLATE_ID = "1707171687739961361";
|
40 |
public static final String LOI_ACCEPTANCE_OTP_TEMPLATE_ID = "1707171687739961361";
|
| 41 |
public static final String DLT_PRINCIPLE_ENTITY_ID = "1501589330000013091";
|
41 |
public static final String DLT_PRINCIPLE_ENTITY_ID = "1501589330000013091";
|
| 42 |
public static final String LOI_ACCEPTANCE_OTP_TEMPLATE = "Dear %s,\nThank you for showing your interest in the SmartDukaan franchise.\n%s is the OTP for your LOI acceptance.\nPlease read the LOI and provide your consent by sharing OTP with the SmartDukaan team.\nBest Regards,\nSmartDukaan Team.";
|
42 |
public static final String LOI_ACCEPTANCE_OTP_TEMPLATE = "Dear %s,\nThank you for showing your interest in the SmartDukaan franchise.\n%s is the OTP for your LOI acceptance.\nPlease read the LOI and provide your consent by sharing OTP with the SmartDukaan team.\nBest Regards,\nSmartDukaan Team.";
|
| 43 |
private static final String USER = "smartdukaanOTP";
|
43 |
private static final String USER = "smartdukaanOTP";
|
| 44 |
private static final String PASS = "Amit@Smart123";
|
44 |
private static final String PASS = "Amit@Smart123";
|
| - |
|
45 |
private static final String SPECTRA_TELEMARKETER = "1502472910000014692";
|
| 45 |
private static String NEXG_API_ENDPOINT = "https://api2.nexgplatforms.com/sms/1/text/query";
|
46 |
private static String NEXG_API_ENDPOINT = "https://api2.nexgplatforms.com/sms/1/text/query";
|
| 46 |
|
47 |
|
| 47 |
@Autowired
|
48 |
@Autowired
|
| 48 |
OtpRepository otpRepository;
|
49 |
OtpRepository otpRepository;
|
| 49 |
|
50 |
|
| Line 186... |
Line 187... |
| 186 |
public String sendSms(String dltTemplateId, String message, String mobileNumber) throws Exception {
|
187 |
public String sendSms(String dltTemplateId, String message, String mobileNumber) throws Exception {
|
| 187 |
Map<String, String> queryParams = new HashMap<>();
|
188 |
Map<String, String> queryParams = new HashMap<>();
|
| 188 |
queryParams.put("from", SENDER);
|
189 |
queryParams.put("from", SENDER);
|
| 189 |
queryParams.put("indiaDltContentTemplateId", dltTemplateId);
|
190 |
queryParams.put("indiaDltContentTemplateId", dltTemplateId);
|
| 190 |
queryParams.put("indiaDltPrincipalEntityId", DLT_PRINCIPLE_ENTITY_ID);
|
191 |
queryParams.put("indiaDltPrincipalEntityId", DLT_PRINCIPLE_ENTITY_ID);
|
| - |
|
192 |
queryParams.put("telemarketerId", SPECTRA_TELEMARKETER);
|
| 191 |
queryParams.put("to", "91" + mobileNumber);
|
193 |
queryParams.put("to", "91" + mobileNumber);
|
| 192 |
queryParams.put("text", message);
|
194 |
queryParams.put("text", message);
|
| 193 |
queryParams.put("password", PASS);
|
195 |
queryParams.put("password", PASS);
|
| 194 |
queryParams.put("username", USER);
|
196 |
queryParams.put("username", USER);
|
| 195 |
//OTP Message Template
|
197 |
//OTP Message Template
|