diff --git a/CHANGELOG.md b/CHANGELOG.md index 11303fa..ba9ca84 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,48 @@ +## 1.1.0 +* Added EmailRequest with a fluent builder to avoid constructors with lots of same type optional arguments. + You can use it as follows: + ``` + SendEmailResponse response = client.sendEmail(new EmailRequest.Builder() + .withTemplateId("aTemplateId") + .withEmailAddress("some@email.com") + .withPersonalisation(emptyMap()) + .withReference("aReference") + .withBillingCode("aBillingCode") + .withEmailReplyToId("aEmailReplyToId") + .build() + ); + ``` +* Deprecated following NotificationClientApi sendEmail methods: + ``` + @Deprecated + SendEmailResponse sendEmail(String templateId, String emailAddress, Map personalisation, String reference, String billingCode) throws NotificationClientException; + + @Deprecated + SendEmailResponse sendEmail(String templateId, String emailAddress, Map personalisation, String reference, String billingCode, String emailReplyToId) throws NotificationClientException; + ``` +* Added SmsRequest with a fluent builder to avoid constructors with lots of same type optional arguments. + You can use it as follows: + ``` + client.sendSms(new SmsRequest.Builder() + .withTemplateId("aTemplateId") + .withPhoneNumber("aPhoneNumber") + .withPersonalisation(emptyMap()) + .withReference("aReference") + .withBillingCode("aBillingCode") + .withSmsSenderId("aSmsSenderId") + .build() + ); + ``` +* Deprecated following NotificationClientApi sendSms methods: + ``` + @Deprecated + SendSmsResponse sendSms(String templateId, String phoneNumber, Map personalisation, String reference, String billingCode) throws NotificationClientException; + + @Deprecated + SendSmsResponse sendSms(String templateId, String phoneNumber, Map personalisation, String reference, String billingCode, String smsSenderId) throws NotificationClientException; + ``` + + ## 1.0.0 * Forked client for U.S. Department of Veterans Affairs * Renamed project to vanotify-java-client. Updated repositories, links, urls. etc diff --git a/pom.xml b/pom.xml index 1170965..2d40664 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ gov.va.vanotify vanotify-java-client - 1.0.0 + 1.1.0 jar VANotify Java client diff --git a/src/main/resources/application.properties b/src/main/resources/application.properties index 1b506d1..11c299f 100644 --- a/src/main/resources/application.properties +++ b/src/main/resources/application.properties @@ -6,4 +6,4 @@ # - PATCH version when you make backwards-compatible bug fixes. # # -- http://semver.org/ -project.version=1.0.0 +project.version=1.1.0