Commit Graph

9 Commits

Author SHA1 Message Date
Rostislav Wolny
469b9bf85f Remove unnecessary premium key refresh when volume limit error happens
The limit is stored in and read from MSS key state and now we preserve
state data even when the key becomes underprivileged.
We don't need to refresh anything and also the checking underprivileged key
would return 403 and no data about limits.
[MAILPOET-5191]
2023-05-10 13:05:37 +02:00
Rostislav Wolny
db467d8616 Add handling of subscriber limit error to MailPoet error mapper
When the shop blocked access for an API key due subscriber limit it used
to set the error as "Insufficient privileges," and that was in the plugin
interpreted same as "Subscribers limit reached".
The SHOP-1228 changes the error message will be set to "Subscribers limit reached".
This commit updates the error mapper to be able to process the new error message.
It also keeps the old approach for previously blocked keys.
[MAILPOET-5191]
2023-05-10 13:05:37 +02:00
Jan Lysý
2e97cb6924 Fix tests after last changes
[MAILPOET-4639]
2023-01-16 13:46:07 +01:00
Jan Jakes
82aeb89854 Use strict types in tests
[MAILPOET-2688]
2022-11-29 15:04:09 +01:00
David Remer
7db40b27b5 Fix errors automatically with phpcbf
[MAILPOET-4850]
2022-11-28 22:54:13 +03:00
Jan Lysý
32c27b91c1 Add handling for more 5xx errors from the bridge
[MAILPOET-4209]
2022-05-11 09:13:09 +02:00
Sam Najian
9a34c16ea5 Add separate message for pending approval error message
[MAILPOET-3992]
2022-04-11 15:30:29 +02:00
Jan Lysý
eced7d27cd Update dependencies in tests
[MAILPOET-4047]
2022-03-01 10:58:31 +01:00
Jan Jakes
9f790efbf0 Move plugin files to a subfolder
[MAILPOET-3988]
2022-01-18 15:30:22 +01:00