alex-mpoet
a6caf0a1e6
Add bridge ping endpoint
...
[MAILPOET-6030]
2024-06-12 11:16:51 +02:00
Brezo Cordero
9c86227290
Update ERROR_MESSAGE_BULK_EMAIL_FORBIDDEN
...
[MAILPOET-6024]
2024-06-10 11:12:22 +02:00
Mike Jolley
435f638011
Apply rules on lib dir
2024-03-21 16:57:59 +01:00
Brezo Cordero
06b6d91456
Allow sending if domain authentication required but not in cache and shop not available
...
[MAILPOET-5921]
2024-03-04 11:37:40 +01:00
Brezo Cordero
f3c8d16439
Increase transient expiration time
...
[MAILPOET-5921]
2024-03-04 11:37:40 +01:00
Brezo Cordero
52a68ee508
Do not reload cache if no data returned
...
and a small refactor for duplicated code.
[MAILPOET-5921]
2024-03-04 11:37:40 +01:00
Brezo Cordero
d65fdd7a6d
Reset currentRecords only when needed
...
And reloadCache after domain verification.
[MAILPOET-5844]
2024-02-05 10:52:56 +01:00
Brezo Cordero
928c100839
Rename constant
...
[MAILPOET-5844]
2024-02-05 10:52:56 +01:00
Brezo Cordero
1e373ab7e0
Update Sender Domain inline notice
...
Remove unused notices displayed before enforcement date.
[MAILPOET-5844]
2024-02-05 10:52:56 +01:00
Brezo Cordero
3f8c0f2bc6
Remove restrictionsApply function
...
[MAILPOET-5844]
2024-02-05 10:52:56 +01:00
Brezo Cordero
5113e65949
Reduce sender domain authentication limits
...
[MAILPOET-5856]
2024-01-30 10:40:33 +01:00
Brezo Cordero
74a8a0aefc
Modify context for Automations
...
[MAILPOET-5796]
2024-01-29 16:53:00 +01:00
Brezo Cordero
8177c3819c
Fix PHP error warning on createAuthorizedSenderDomain
...
And reload cache
[MAILPOET-5796]
2024-01-29 16:53:00 +01:00
Brezo Cordero
1a7a424936
Add Sender Domain Data to MailPoet Context
...
[MAILPOET-5796]
2024-01-29 16:53:00 +01:00
Brezo Cordero
5a4140c65a
Improve readability
...
[MAILPOET-5832]
2024-01-20 13:39:23 +05:00
Brezo Cordero
d76aec0431
Add return type
...
[MAILPOET-5832]
2024-01-20 13:39:23 +05:00
Brezo Cordero
b80f71f8c2
Remove unused code
...
[MAILPOET-5832]
2024-01-20 13:39:23 +05:00
Brezo Cordero
4a0ed51c8c
Reduce API calls to verify sender domain during sending
...
and call checkAuthorizedEmailAddresses on bulk email sending error.
[MAILPOET-5832]
2024-01-20 13:39:23 +05:00
Brezo Cordero
9d8de3b3cf
Use a transient to store sender domains
...
to reduce API calls.
[MAILPOET-5832]
2024-01-20 13:39:23 +05:00
Brezo Cordero
c65cf4d6b1
Add new API error for forbidden bulk email
...
[MAILPOET-5832]
2024-01-20 13:39:23 +05:00
Brezo Cordero
ab23a01423
Modify the check for sender address
...
to implement rule for existing campaigns.
[MAILPOET-5832]
2024-01-20 13:39:23 +05:00
Brezo Cordero
56556493fe
Add function isAuthorizedDomainRequiredForExistingCampaigns
...
[MAILPOET-5832]
2024-01-20 13:39:23 +05:00
Brezo Cordero
78faadc126
Use new function to get verified domains
...
It uses the overall status set by the shop instead of checking the records.
[MAILPOET-5832]
2024-01-20 13:39:23 +05:00
Brezo Cordero
f3693f4afd
Add function to verify sender Address on activation
...
[MAILPOET-5786]
2024-01-15 19:34:21 +05:00
Brezo Cordero
3b3be51324
Add functions to check activation restrictions
...
[MAILPOET-5786]
2024-01-15 19:34:21 +05:00
Brezo Cordero
01a3b3c5ca
Add getFullyOrPartiallyVerifiedSenderDomains
...
This function will replace getVerifiedDomains
[MAILPOET-5786]
2024-01-15 19:34:21 +05:00
Brezo Cordero
aef1d65b6d
Change the domain extraction
...
to have a sequential array so that json_encode keeps it as an array.
[MAILPOET-5786]
2024-01-15 19:34:21 +05:00
Brezo Cordero
8f7d559400
Remove getDmarcPolicyForDomain
...
[MAILPOET-5782]
2024-01-14 19:37:36 +05:00
Brezo Cordero
5735d21e4d
Remove isDomainDmarcRestricted
...
[MAILPOET-5782]
2024-01-14 19:37:36 +05:00
Brezo Cordero
45423a8e62
Refactor functions to AuthorizedSenderDomainController
...
[MAILPOET-5782]
2024-01-14 19:37:36 +05:00
Brezo Cordero
8c068c0232
Refactor sender domain limits
...
[MAILPOET-5782]
2024-01-14 19:37:36 +05:00
Brezo Cordero
ab296401b2
Allow verification of partially verified Sender domains
...
[MAILPOET-5817]
2024-01-10 02:47:40 +05:00
John Oleksowicz
0d83836b68
Add banner notices for unverified sender domains
...
MAILPOET-5783
2024-01-03 18:54:01 +01:00
John Oleksowicz
e1df697ce7
Add method to get rewritten email address for MSS
...
MAILPOET-5783
2023-12-20 13:53:59 -06:00
John Oleksowicz
518530edac
Add methods for retrieving domains by status
...
MAILPOET-5783
2023-12-20 13:53:59 -06:00
John Oleksowicz
71dd3168fd
Extract method for raw sender domains API response
...
We are going to add a new property to these responses which we'll use
for other logic, so we can't only rely on the transformed version of the
API response anymore.
MAILPOET-5783
2023-12-20 13:53:59 -06:00
Oluwaseun Olorunsola
6585d2b692
Cast all sub-objects to array
...
MAILPOET-5803
2023-12-19 13:27:21 +01:00
Oluwaseun Olorunsola
074674a498
Properly format response from API
...
MAILPOET-5803
2023-12-19 13:27:21 +01:00
Jan Lysý
525c80bac4
Fix PHPStan warnings in lib
...
[MAILPOET-5751]
2023-12-13 11:48:14 +01:00
Rostislav Wolny
e2dc6855a8
Fix logCurlInformation causing error when called with one parameter
...
[MAILPOET-5493]
2023-07-31 14:22:03 +02:00
Brezo Cordero
b4b49166f2
Store the subscription type when updating the key
...
[MAILPOET-5223]
2023-05-22 11:52:23 +02:00
Rodrigo Primo
f836b03b56
Add return type to the methods moved from ModelValidator
...
[MAILPOET-4343]
2023-05-17 12:37:22 +02:00
Rodrigo Primo
00d021109c
Move ModelValidator::validateNonRoleEmail() to a new Validator class
...
We want to remove/refactor the whole ModelValidator class as part of the
Doctrine refactor.
This commit moves the method ModelValidator::validateNonRoleEmail() to a
new Validator class as the method is not used by the validator system of
the Paris models. ModelValidator::validateEmail() was also moved as it
is called by ModelValidator::validateNonRoleEmail().
[MAILPOET-4343]
2023-05-17 12:37:22 +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
06ac055112
Add Bridge API constant for subscribers limit error
...
[MAILPOET-5103]
2023-04-26 10:57:40 +02:00