Skip to content

1.1.0

Compare
Choose a tag to compare
@ffafara-tw ffafara-tw released this 20 Sep 20:52

Changes in 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<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;
    

Download binary from GH Package Maven Repository

https://github.com/department-of-veterans-affairs/notifications-java-client/packages/990487?version=1.1.0