forked from alphagov/notifications-java-client
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[department-of-veterans-affairs/notification-api#549] Update CHANGELO…
…G and bump version to 1.1.0
- Loading branch information
1 parent
b390a5b
commit c70fefd
Showing
3 changed files
with
47 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters