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#553] Bump version to…
… 1.2.0. Update changelog.
- Loading branch information
1 parent
42473de
commit 17679fd
Showing
3 changed files
with
34 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,35 @@ | ||
## 1.2.0 | ||
* Added support for sending notification requests with recipient identifiers supported by Master Person Index. | ||
Identifiers will be used to lookup contact information (email, phone number) as well as contact preferences in VA Profile. | ||
|
||
Currently supported identifiers include: | ||
- `ICN` | ||
- `VA Profile Id` | ||
- `Participant Id` | ||
- `Birls Id (FileNumber)` | ||
- `EDIPI` | ||
|
||
You can send requests that contain only recipient identifier, for example: | ||
```java | ||
SendEmailResponse response = client.sendEmail(new EmailRequest.Builder() | ||
.withTemplateId("aTemplateId") | ||
.withRecipientIdentifier(new Identifier(IdentifierType.VAPROFILEID, "some-id"); | ||
.build() | ||
); | ||
``` | ||
|
||
Or you can specify both email / phone number and identifier. In that case identifier will be only used to lookup preferences. | ||
```java | ||
SendEmailResponse response = client.sendEmail(new EmailRequest.Builder() | ||
.withTemplateId("aTemplateId") | ||
.withEmailAddress("[email protected]") | ||
.withRecipientIdentifier(new Identifier(IdentifierType.VAPROFILEID, "some-id"); | ||
.build() | ||
); | ||
``` | ||
|
||
* Moved all tests to Junit5. | ||
|
||
## 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: | ||
|
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