- Added fields related to cost data in response:
is_cost_data_ready
: This field is true if cost data is ready, and false if it isn't (Boolean).cost_in_pounds
: Cost of the notification in pounds. The cost does not take free allowance into account (Float).cost_details.billable_sms_fragments
: Number of billable SMS fragments in your text message (SMS only) (Integer).cost_details.international_rate_multiplier
: For international SMS rate is multiplied by this value (SMS only) (Integer).cost_details.sms_rate
: Cost of 1 SMS fragment (SMS only) (Float).cost_details.billable_sheets_of_paper
: Number of sheets of paper in the letter you sent, that you will be charged for (letter only) (Integer).cost_details.postage
: Postage class of the notification sent (letter only) (String).
- Adds
oneClickUnsubscribeURL
parameter toSendEmailNotification
- Removes the
isCsv
parameter fromPrepareUpload
- Adds a
filename
parameter toPrepareUpload
; see documentation for more details.
- Add support for new security features when sending a file by email:
confirmEmailBeforeDownload
can be set totrue
to require the user to enter their email address before accessing the file.retentionPeriod
can be set to<1-78> weeks
to set how long the file should be made available.
- Increase target .NET Core version to 6 as previous versions are End Of Life.
- Increase minimum .NET Core version to 3.1
- Fixed a build warning that version 7.0 of the JWT package does not exist
- Bump System.Net.Http packagefrom 4.3.3 to 4.3.4
- Fixed an issue when importing the JWT dependency by pinning the version to 7.x. It is not possible to support both version 6.x and 7.x of JWT because version 7.0 introduced a breaking change.
- Upgrade the JWT dependency. Version 6.x or 7.x of the JWT dependency is now required.
- Add support for a
letter_contact_block
attribute in theTemplateResponse
schema. This will allow our users to check contact blocks for their letter templates.
- Add support for an optional
isCsv
parameter in thePrepareUpload()
function. This fixes a bug when sending a CSV file by email. This ensures that the file is downloaded as a CSV rather than a TXT file.
- change error message to refer to file rather than document
- Added
NotificationClient.getPdfForLetter
function- accepts
string notificationId
- returns a
byte[]
containing the final printable PDF for a precompiled or templated letter
- accepts
** Add an optional includeSpreadsheetUploads
argument to GetNotifications
.
- Applied fix for issue with synchronous version of NotificationClient API
- Update JWT version to the latest
- Implement asynchronous versions of the NotificationClient methods
- Add an optional
postage
argument toSendPrecompiledLetter
. - Add
postage
attribute toLetterNotificationResponse
model. - Add
postage
attribute toNotification
model.
- Implement the
INotificationClient
interface to make mocking easier (see #57)
- Add
NotificationClient.SendPrecompiledLetter
method. - Add support for document uploads using
NotificationClient.PrepareUpload
- Fixed
NotificationResponse.Equals
andLetterNotificationResponse.Equals
for instances with.template
and.content
attributes set tonull
in order to support pre-compiled letter responses.
- The Notification class has a new
createdByName
property.- If the notification was sent manually this will be the name of the sender. If the notification was sent through the API this will be
null
.
- If the notification was sent manually this will be the name of the sender. If the notification was sent through the API this will be
- Add
pending-virus-check
andvirus-scan-failed
to statuses
- Migrate to .Net core 2.0.0 and .Net framework 4.6.2
- Update to
NotificationsClient.SendSms
- added
smsSenderId
: an optional smsSenderId specified when adding a text message sender under service settings, if this is not provided it will default to the service name.
- added
- Added
GetReceivedTexts
- retrieves all received text messages, links provided with page size of 250 - Added
Makefile
in order to run build, tests and nuget package from the terminal.
- Pin dependencies for JWT and Newtonsoft.json
- Pinned to no higher than JWT 2.4.2 and Newtonsoft.json 10.
- Update to
NotificationsClient.send_email_notification
- added
emailReplyToId
: an optional emailReplyToId specified when adding Email reply to addresses under service settings, if this is not provided the reply to email will be the service default reply to email.email_reply_to_id
can be omitted.
- added
- Make personalisation non-null in SendLetter
- Add new method for sending letters:
SendLetter
- send a letter
- Add template name to
TemplateResponse
model
- Update integration tests to support letter templates:
-
Added new methods for managing templates:
GetTemplateById
- retrieve a single templateGetTemplateByIdAndVersion
- retrieve a specific version for a desired templateGetAllTemplates
- retrieve all templates (can filter by type)GenerateTemplatePreview
- preview a template with personalisation applied
-
Refactored MSTest tests to NUnit tests.
- This allows for wider compatibility with a variety of IDEs.
- Update to
Client.GetNotifications()
- Notifications can now be filtered by
reference
andolderThanId
, see the README for details. - Updated method signature:
- Notifications can now be filtered by
client.GetNotifications(String templateType = "", String status = "", String reference = "", String olderThanId = "")
* Each one of these parameters can be `null`
Changelog not recorded - please see pull requests on github.