Call different actions for standard and automated newsletters on Send step

- converted save and setStatus method of Newsletters endpoint
- updated pause/resume mixin for notification & welcome listings
- use 'newsletter_id' instead of 'id' in SendingQueue endpoint (less confusing)
- added NOT_FOUND constant to APIError
- fixed unit test for Newsletters endpoint save and added test for setStatus
This commit is contained in:
Jonathan Labreuille
2016-08-10 13:07:06 +02:00
parent f690e1a095
commit 0369a23fe8
9 changed files with 255 additions and 183 deletions

View File

@@ -8,6 +8,7 @@ final class Error {
const BAD_REQUEST = 'bad_request';
const UNAUTHORIZED = 'unauthorized';
const FORBIDDEN = 'forbidden';
const NOT_FOUND = 'not_found';
private function __construct() {