Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
… 1.2.0. Update changelog.
  • Loading branch information
ffafara-tw committed Sep 30, 2021
1 parent 42473de commit 17679fd
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 2 deletions.
32 changes: 32 additions & 0 deletions CHANGELOG.md
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:
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.1.0</version>
<version>1.2.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.1.0
project.version=1.2.0

0 comments on commit 17679fd

Please sign in to comment.