mirror of
https://github.com/GSA/notifications-api.git
synced 2025-12-20 15:31:15 -05:00
Remove letters-related code (#175)
This deletes a big ol' chunk of code related to letters. It's not everything—there are still a few things that might be tied to sms/email—but it's the the heart of letters function. SMS and email function should be untouched by this. Areas affected: - Things obviously about letters - PDF tasks, used for precompiling letters - Virus scanning, used for those PDFs - FTP, used to send letters to the printer - Postage stuff
This commit is contained in:
@@ -36,7 +36,6 @@ get_template_by_id_response = {
|
||||
"body": {"type": "string"},
|
||||
"subject": {"type": ["string", "null"]},
|
||||
"name": {"type": "string"},
|
||||
"postage": {"type": "string", "format": "postage"}
|
||||
},
|
||||
"required": ["id", "type", "created_at", "updated_at", "version", "created_by", "body", "name"],
|
||||
}
|
||||
@@ -64,7 +63,6 @@ post_template_preview_response = {
|
||||
"version": {"type": "integer"},
|
||||
"body": {"type": "string"},
|
||||
"subject": {"type": ["string", "null"]},
|
||||
"postage": {"type": "string", "format": "postage"},
|
||||
"html": {"type": ["string", "null"]},
|
||||
},
|
||||
"required": ["id", "type", "version", "body"],
|
||||
@@ -80,5 +78,4 @@ def create_post_template_preview_response(template, template_object):
|
||||
"body": template_object.content_with_placeholders_filled_in,
|
||||
"html": getattr(template_object, 'html_body', None),
|
||||
"subject": getattr(template_object, 'subject', None),
|
||||
"postage": template.postage
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user