Skip to content

Instantly share code, notes, and snippets.

@thinkmicroservices
thinkmicroservices / OutboundSmsService:TwilioConfigurationProperties.java
Created March 11, 2020 22:48
OutboundSmsService:TwilioConfigurationProperties.java
package com.thinkmicroservices.ri.spring.sms.outbound.service.twilio;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.PropertySource;
import org.springframework.stereotype.Component;
/**
*
@thinkmicroservices
thinkmicroservices / OutboundSmsService: OutboundSmsService.java
Created March 11, 2020 22:44
OutboundSmsService: OutboundSmsService.java
package com.thinkmicroservices.ri.spring.sms.outbound.service;
import java.util.List;
/**
*
* @author cwoodward
*/
public interface OutboundSmsService {
@thinkmicroservices
thinkmicroservices / OutboundSmsService: MmsRequest.java
Created March 11, 2020 22:41
OutboundSmsService: MmsRequest.java
package com.thinkmicroservices.ri.spring.sms.outbound.model;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.util.List;
import javax.validation.constraints.NotBlank;
import lombok.Data;
/**
@thinkmicroservices
thinkmicroservices / OutboundSmsService:SmsRequest.java
Last active March 18, 2020 23:18
OutboundSmsService: SmsRequest.java
package com.thinkmicroservices.ri.spring.sms.outbound.model;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Size;
import lombok.Data;
@Data
@ApiModel(description = "All details for a SMS request. ")
## Twilio outbound sms/mms configuration
---
authID: xxxxxx
accountSID: yyyyy
@thinkmicroservices
thinkmicroservices / OutboundSmsService: application.yml
Created March 11, 2020 21:34
OutboundSmsService: application.yml
server:
port: 8080
info:
app:
name: SMS Outbound Service
description: Provides an integration point to an outbound SMS provider
version: 1.0.0
spring:
application:
name: SMS-OUTBOUND-SERVICE
cloud:
config:
fail-fast: true
retry:
max-attempts: 10
initial-interval: 1500
@thinkmicroservices
thinkmicroservices / OutboundSmsService: pom.xml
Last active March 11, 2020 21:09
OutboundSmsService: pom.xml
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>2.1.8.RELEASE</version>
<relativePath/> <!-- lookup parent from repository -->
</parent>
@thinkmicroservices
thinkmicroservices / OutboundEmailService: dc-05-outbound-email.yml
Last active March 11, 2020 01:19
OutboundEmailService: dc-05-outbound-email.yml
## docker-compose -f ./dc-05-outbound-email.yml up -d
version: "3.7"
services:
##############################################################
# INFRASTRUCTURE SERVICES
################
@thinkmicroservices
thinkmicroservices / OutboundEmailService:messages_de.properties
Last active March 10, 2020 19:03
OutboundEmailService:messages_de.properties
# message_de.properties - German outbound email messages
error.outbound.email.authentication=Authentifizierung beim Remote-Mail-Dienst nicht möglich
error.outbound.email.send=E-Mail-Nachricht kann nicht gesendet werden
error.outbound.email.generic=Mail-System-Ausnahme
error.unsupported.attachment.protocol=Nicht unterstütztes Anhangsprotokoll
error.unable.to.add.attachment=Anhang kann nicht hinzugefügt werden
error.unable.to.send.mime.message=MIME-Nachricht kann nicht gesendet werden