Commit Graph

36 Commits

Author SHA1 Message Date
Brezo Cordero
9c86227290 Update ERROR_MESSAGE_BULK_EMAIL_FORBIDDEN
[MAILPOET-6024]
2024-06-10 11:12:22 +02:00
Brezo Cordero
c65cf4d6b1 Add new API error for forbidden bulk email
[MAILPOET-5832]
2024-01-20 13:39:23 +05: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
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
06ac055112 Add Bridge API constant for subscribers limit error
[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
1f287e7af0 Use common private method for checking keys in Bridge API
The two public methods for checking MSS and Premium keys were almost
exact copies.
To avoid doing the same changes in two places I decided to refactor them to
internally use a common private method.
[MAILPOET-5103]
2023-04-26 10:57:40 +02:00
Jan Lysý
296ec54c3e Add function preparing error response
[MAILPOET-4639]
2023-01-16 13:46:07 +01:00
Jan Lysý
579de1cc86 Reduce the count of constants
[MAILPOET-4639]
2023-01-16 13:46:07 +01:00
Jan Lysý
c79787c677 Extract domain creation 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ý
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 Lysý
982568445b Extract sending error messages from bridge to strings
The original error is stored under a new key for easier handling an error state.
[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
Sam Najian
455e3fbb90 Fix issue of site-url in none-lowercase failing validation
When validating the MSS/Premium keys sending a none-lowercase
site-url would cause the bridge to correctly validating

[MAILPOET-4754]
2022-11-01 15:00:07 +01:00
Rostislav Wolny
90ff2db0d1 Fix errors caught by translations code sniff
[MAILPOET-4302]
2022-08-11 12:36:23 +02:00
Rostislav Wolny
d625457174 Add logging of unexpected formats from sender domain endpoints on Bridge API
[MAILPOET-4302]
2022-08-11 12:36:23 +02:00
Rostislav Wolny
c58c613959 Use WordPress translation functions directly
[MAILPOET-4302]
2022-08-11 12:36:23 +02:00
Rostislav Wolny
f4346c8957 Add links to sender domains API docs
[MAILPOET-4302]
2022-08-11 12:36:23 +02:00
Oluwaseun Olorunsola
5c3a9fe9b2 Add API methods for creating and verifying sender domains
We also included an API method for fetching Sender Domains

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
David Remer
97e160bf67 Fix WordPress.WP.I18n.MissingArgDomain
[MAILPOET-4524]
2022-08-09 13:23:16 +02:00
David Remer
218de96024 Fix WordPress.WP.I18n.MissingTranslatorsComment errors
[MAILPOET-4524]
2022-08-09 13:23:16 +02:00
David Remer
b05e6d414c Remove WP\Functions::__ and other translate functions
Under the new sniffer rules, those functions produce errors and, when those methods
are used, the sniffer can not properly be applied.

[MAILPOET-4524]
2022-08-09 13:23:16 +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
d93448c352 Fix typo and variable names error
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
ee70d2dd1e Implement polling and reconfirmation
This will poll the server every certain interval (15s) for the email address
and stop polling if the email is Authorized or the modal is closed or after a certain period of time (2 hours)

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
dec4a12882 Codestyle
[MAILPOET-4253]
2022-06-20 10:34:41 +02:00
David Remer
1b5f3db655 Use new endpoint to fetch authorized emails
[MAILPOET-4253]
2022-06-20 10:34:41 +02:00
Jan Lysý
32c27b91c1 Add handling for more 5xx errors from the bridge
[MAILPOET-4209]
2022-05-11 09:13:09 +02:00
Rostislav Wolny
b45966ab44 Add logging of failed mss and premium key validations on API
[MAILPOET-4051]
2022-04-11 12:17:29 +02:00
Rostislav Wolny
9b71a7804c Update Monolog/Monolog from v1 to v2
[MAILPOET-4175]
2022-03-28 13:49:41 +02:00
Jan Jakes
9f790efbf0 Move plugin files to a subfolder
[MAILPOET-3988]
2022-01-18 15:30:22 +01:00