Skip to content
Permalink
Browse files
update
  • Loading branch information
ebenezergraham committed Jun 14, 2018
1 parent 75d298a commit a62f69fb15d5b4d1e181e22b0fbb1f04f83b6c10
Showing 5 changed files with 18 additions and 89 deletions.

This file was deleted.

@@ -28,8 +28,4 @@ public interface NotificationEventConstants {
String SELECTOR_INITIALIZE = SELECTOR_NAME + " = '" + INITIALIZE + "'";
String SELECTOR_POST_SAMPLE = SELECTOR_NAME + " = '" + POST_SAMPLE + "'";

//Customer constants;
String CUSTOMER_DESTINATION = "customer-v1";
String SELECTOR_POST_CUSTOMER = SELECTOR_NAME + " = 'post-customer'";

}
@@ -79,6 +79,8 @@ public void configurePathMatch(final PathMatchConfigurer configurer) {
configurer.setUseSuffixPatternMatch(Boolean.FALSE);
}



@Bean
@Qualifier("gmail")
public JavaMailSender getJavaMailSender() {
@@ -23,23 +23,27 @@
import com.twilio.rest.api.v2010.account.Message;
import com.twilio.type.PhoneNumber;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;
import com.twilio.rest.api.v2010.account.MessageCreator;
import org.springframework.stereotype.Service;

@Service
@ConfigurationProperties(prefix ="smssender")
public class SMSSender {

@Value(value = "${smssender.accountSID}")
public static String ACCOUNT_SID;
//@Value(value = "${smssender.accountSID}")
public String ACCOUNT_SID = "AC1fde2c6f26f367b93231c5fdb944c908";

@Value("${smssender.authToken}")
public static String AUTH_TOKEN;
//@Value("${smssender.authToken}")
public String AUTH_TOKEN = "bc9a53e41745b8471e0ecafc859d86aa";

@Value("${mfi.senderNumber}")
public static String sender;
//@Value("${smssender.senderNumber}")
public String sender = "+1 510-944-1898";

@Value("${fineract.customer.accountcreated}")
public String template;
//@Value("${fineract.customer.accountcreated}")

public String template = "Test from the demo-server";

public void sendSMS(String receiver, String template) {

@@ -75,4 +75,7 @@ fineract:
accountclosed:
message: Dear Valued Customer, Your account has been successfully closed.


smssender:
accountSID: AC1fde2c6f26f367b93231c5fdb944c908
authtoken: bc9a53e41745b8471e0ecafc859d86aa
senderNumber: +1 510-944-1898

0 comments on commit a62f69f

Please sign in to comment.