Call precompiled letter preview with overlay

This commit is contained in:
Pea Tyczynska
2019-04-04 12:05:17 +01:00
parent 7436a568dd
commit e0b61e3d70
2 changed files with 29 additions and 9 deletions

View File

@@ -94,6 +94,17 @@ class NotificationApiClient(NotifyAdminAPIClient):
return self.get(url=get_url)
def get_notification_letter_preview_with_overlay(self, service_id, notification_id, file_type, page=None):
get_url = '/service/{}/template/preview/{}/{}{}{}'.format(
service_id,
notification_id,
file_type,
'?overlay=1',
'&page={}'.format(page) if page else '',
)
return self.get(url=get_url)
def update_notification_to_cancelled(self, service_id, notification_id):
return self.post(
url='/service/{}/notifications/{}/cancel'.format(service_id, notification_id),