Brezo Cordero
b4b49166f2
Store the subscription type when updating the key
...
[MAILPOET-5223]
2023-05-22 11:52:23 +02:00
Rostislav Wolny
eb06b6d01e
Preserve key state data when checking key and get invalid result
...
The state data contain info about plan limits etc. we don't want
to lose the info when key becomes underprivileged so that we can
show the limits in notifications.
[MAILPOET-5191]
2023-05-10 13:05:37 +02:00
Rostislav Wolny
cd5a023b35
Move onSettingsChange from Bridge service to SettingsChangeHandler
...
Bridge is a low level service that processes requests and responses to/from Bridge API.
This change is needed so that we can remove dependency on MailPoet\Util\License\Features\Subscribers
service from the Bridge. The dependecy is a higher level service and may easily cause a circular dependency issue.
The SettingsChangeHandler is service for handling side effects
when saving settings. This feels as a better place to put the functionality.
[MAILPOET-5191]
2023-05-10 13:05:37 +02:00
Rostislav Wolny
d9bec53efa
Introduce new service for reporting subscriber stats
...
Bridge is a low level service that processes requests and responses to/from Bridge API.
This change is needed so that we can remove dependency on MailPoet\Util\License\Features\Subscribers
service from the Bridge. The dependecy is a higher level service and may easily cause a circular dependency issue.
[MAILPOET-5191]
2023-05-10 13:05:37 +02:00
Rostislav Wolny
4995ed93f0
Refactor invalidation of MSS key to non static method
...
This is the olny staically called method from the service. In this commit I refactored it to non-static so that it works properly with injected services.
[MAILPOET-5191]
2023-05-10 13:05:37 +02:00
Rostislav Wolny
638c7005d9
Refactor storing MSS and Premium key and state to use common private method
...
[MAILPOET-5191]
2023-05-10 13:05:37 +02:00
Rostislav Wolny
380e6d0f0a
Use Bridge API error constants instead of strings for error mapping
...
[MAILPOET-5103]
2023-04-26 10:57:40 +02:00
Rostislav Wolny
37d6d612c4
Detect and save api key access restriction reason during key check
...
[MAILPOET-5103]
2023-04-26 10:57:40 +02:00
Rostislav Wolny
b47fc02ca4
Use underprivileged key for stats reporting also when saving settings
...
[MAILPOET-5165]
2023-04-04 18:45:41 +02:00
Jan Lysý
07954dd968
Extract domain verification error messages from bridge to strings
...
As a part of those changes I tried to unify the array key with error messages.
[MAILPOET-4639]
2023-01-16 13:46:07 +01:00
Jan Lysý
2ace6da75b
Extract email authorization error messages from bridge to strings
...
As a part of those changes I tried to unify the array key with error messages.
[MAILPOET-4639]
2023-01-16 13:46:07 +01:00
Jan Jakes
926620e8f8
Ignore strict types rule in all existing files that don't have it
...
[MAILPOET-2688]
2022-11-29 15:04:09 +01:00
David Remer
2557171953
Fix assert() in lib
...
[MAILPOET-4258]
2022-11-25 14:32:34 +01:00
Sam Najian
db94ec52e6
Acknowledge error code 403 with a different message
...
When recieving error code 403 from the Bridge, it's treated
as success but with with different message
[MAILPOET-4464]
2022-10-17 12:15:07 +02:00
Rostislav Wolny
f4346c8957
Add links to sender domains API docs
...
[MAILPOET-4302]
2022-08-11 12:36:23 +02:00
Rostislav Wolny
543465d9de
Fix indentation in Bridge
...
[MAILPOET-4302]
2022-08-11 12:36:23 +02:00
Oluwaseun Olorunsola
370de8050a
Add mailpoet_verified_sender_domains to newsletters and settings page
...
Update tests
MAILPOET-4302
2022-08-11 12:36:23 +02:00
Oluwaseun Olorunsola
417c0897e8
Add API methods for fetching, creating and verifying
...
sender domain
MAILPOET-4302
2022-08-11 12:36:23 +02:00
Oluwaseun Olorunsola
0a461bb846
Skip API request if Modal is not opened and remove unnecessary check from method
...
MAILPOET-4300
2022-07-18 12:53:49 +02:00
Oluwaseun Olorunsola
5d8b721a52
Annotate return type and use consistent return data
...
MAILPOET-4300
2022-07-18 12:53:49 +02:00
Oluwaseun Olorunsola
cb68688f18
Refactor: update validateAuthorizedEmail to convert authorizedEmails to lowercase
...
MAILPOET-4300
2022-07-18 12:53:49 +02:00
Oluwaseun Olorunsola
ad171576f3
Fix: Show error message and better error handling.
...
MAILPOET-4300
2022-07-18 12:53:49 +02:00
Oluwaseun Olorunsola
1fda60bfea
Implement API endpoints
...
MAILPOET-4300
2022-07-18 12:53:49 +02:00
David Remer
1b5f3db655
Use new endpoint to fetch authorized emails
...
[MAILPOET-4253]
2022-06-20 10:34:41 +02:00
Jan Jakes
9f790efbf0
Move plugin files to a subfolder
...
[MAILPOET-3988]
2022-01-18 15:30:22 +01:00