You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// Generated file. Do not edit by hand. Use update.php in project root.
4
+
5
+
namespacePHPFUI\ConstantContact\Definition;
6
+
7
+
/**
8
+
* @property int $total Total number of contacts for the account.
9
+
* @property int $explicit Total number of contacts explicitly confirmed. Consent is obtained when you explicitly ask your potential contacts for permission to send the email (for example, using a sign-up form) and they agree. After you obtain express consent, it is good forever or until the contact opts out.
10
+
* @property int $implicit Total number of contacts implicitly confirmed. Consent is inferred based on actions, such as having an existing business relationship (making a purchase or donation, for example). In order to maintain implied consent to comply with CASL a contact must take a business action with you at least once every two years. Under CAN-Spam there is no need to maintain implied consent, it is assumed until the receiver indicates they no longer wish to receive messages.
11
+
* @property int $pending Total number of contacts pending confirmation. Consent is requested and pending confirmation from the contact.
12
+
* @property int $unsubscribed Total number of unsubscribed contacts. Consent is revoked when a contact has unsubscribed.
13
+
* @property int $new_subscriber Total number of newly subscribed contacts.
14
+
*/
15
+
class ContactsCounts extends \PHPFUI\ConstantContact\Definition\Base
* Use to get the total contacts count for the account and the total contact-consent
18
+
* counts for each consent state. Optionally, to include the total number
19
+
* of new subscribers in the results, use `new_subscribers` in the `include`
20
+
* query parameter. To optimize open rates, reduce spam reports, and help
21
+
* grow your business, you must value your contact's consent to receive
22
+
* or to not receive your emails.
23
+
*
24
+
* @param string $include Use to return the total number of new contact subscribers in the results.
25
+
*/
26
+
publicfunctionget(?string$include = null) : array
27
+
{
28
+
29
+
if (null !== $include)
30
+
{
31
+
$validValues = ['new_subscriber'];
32
+
33
+
if (! \in_array($include, $validValues))
34
+
{
35
+
thrownew \PHPFUI\ConstantContact\Exception\InvalidValue("Parameter include with value '{$include}' is not one of (" . \implode(', ', $validValues) . ') in ' . __METHOD__);
0 commit comments