Revert "Letter preview use api not template preview"

This commit is contained in:
Rebecca Law
2018-03-06 13:47:43 +00:00
committed by GitHub
parent 92b4cee033
commit bc731ec54d
4 changed files with 22 additions and 66 deletions

View File

@@ -73,14 +73,3 @@ class NotificationApiClient(NotifyAdminAPIClient):
if notification['notification_type'] == 'letter' and notification['status'] in ('created', 'sending'):
notification['status'] = 'accepted'
return notifications
def get_notification_letter_preview(self, service_id, notification_id, file_type, page=None):
get_url = '/service/{}/template/preview/{}/{}{}'.format(
service_id,
notification_id,
file_type,
'?page={}'.format(page) if page else ''
)
return self.get(url=get_url)