Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
…G and bump version to 1.1.0
  • Loading branch information
ffafara-tw committed Sep 20, 2021
1 parent b390a5b commit c70fefd
Show file tree
Hide file tree
Showing 3 changed files with 47 additions and 2 deletions.
45 changes: 45 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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("[email protected]")
.withPersonalisation(emptyMap())
.withReference("aReference")
.withBillingCode("aBillingCode")
.withEmailReplyToId("aEmailReplyToId")
.build()
);
```
* Deprecated following NotificationClientApi sendEmail methods:
```
@Deprecated
SendEmailResponse sendEmail(String templateId, String emailAddress, Map<String, ?> personalisation, String reference, String billingCode) throws NotificationClientException;
@Deprecated
SendEmailResponse sendEmail(String templateId, String emailAddress, Map<String, ?> 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<String, ?> personalisation, String reference, String billingCode) throws NotificationClientException;
@Deprecated
SendSmsResponse sendSms(String templateId, String phoneNumber, Map<String, ?> 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
Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

<groupId>gov.va.vanotify</groupId>
<artifactId>vanotify-java-client</artifactId>
<version>1.0.0</version>
<version>1.1.0</version>
<packaging>jar</packaging>

<name>VANotify Java client</name>
Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/application.properties
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit c70fefd

Please sign in to comment.