| 1 |
<?php // phpcs:ignore |
| 2 |
/** |
| 3 |
* Mail Integration Interface |
| 4 |
* |
| 5 |
* @package optin |
| 6 |
* @subpackage optin/intergrtions |
| 7 |
*/ |
| 8 |
|
| 9 |
namespace OPTN\Includes\Integrations\Base; |
| 10 |
|
| 11 |
interface MailIntegration { |
| 12 |
|
| 13 |
/** |
| 14 |
* Constructor |
| 15 |
* |
| 16 |
* @param int $account_id account id. |
| 17 |
*/ |
| 18 |
public function __construct( $account_id ); |
| 19 |
|
| 20 |
/** |
| 21 |
* Adds a subscribe. |
| 22 |
* |
| 23 |
* @param array $data data. |
| 24 |
* @return bool |
| 25 |
*/ |
| 26 |
public function add_subscriber( $data ): bool; |
| 27 |
|
| 28 |
|
| 29 |
/** |
| 30 |
* Add a lead to leads table. |
| 31 |
* |
| 32 |
* @param array $data data. |
| 33 |
* @return void |
| 34 |
*/ |
| 35 |
public function add_lead( $data ); |
| 36 |
|
| 37 |
/** |
| 38 |
* Gets all the default and custom fields |
| 39 |
* |
| 40 |
* @param array $args receive data as array. |
| 41 |
* @return array |
| 42 |
*/ |
| 43 |
public function get_fields( $args = array() ): array; |
| 44 |
|
| 45 |
|
| 46 |
/** |
| 47 |
* Gets all the lists or groups or tags |
| 48 |
* |
| 49 |
* @param array $args receive data as array. |
| 50 |
* @return array |
| 51 |
*/ |
| 52 |
public function get_lists( $args = array() ): array; |
| 53 |
} |
| 54 |
|