|
5 | 5 | namespace PHPFUI\ConstantContact\Definition; |
6 | 6 |
|
7 | 7 | /** |
8 | | - * @property array<\PHPFUI\ConstantContact\UUID> $contact_ids Exports up to 500 specific contacts. This property is mutually exclusive with <code>list_ids</code>. |
9 | | - * @property array<\PHPFUI\ConstantContact\UUID> $list_ids Exports all of the contacts inside of up to 50 contact lists. This property is mutually exclusive with <code>contact_ids</code>. |
10 | | - * @property int $segment_id Specify the <code>segment_id</code> from which you want to export all contacts that meet the specified <code>segment_criteria</code>. This property is mutually exclusive with <code>contact_ids</code> and <code>list_ids</code>. You can only specify one <code>segment_id</code>. |
11 | | - * @property array $fields Use this array to export specific contact fields. You must export <code>email_address</code> to successfully export <code>email_optin_source</code>, <code>email_optin_date</code>, <code>email_optout_source</code>, <code>email_optout_date</code>, or <code>email_optout_reason</code>. |
12 | | - * @property string $status Allows you to export only contacts that have a specific status value. Possible values are <code>active</code> (billable), <code>unsubscribed</code>, or <code>removed</code>. Applicable with either `contact_ids` or `list_ids` as the source. |
| 8 | + * @property array<\PHPFUI\ConstantContact\UUID> $contact_ids Exports up to 500 specific contacts. This property is mutually exclusive with all other filtering criteria except with<code>status</code>. |
| 9 | + * @property array<\PHPFUI\ConstantContact\UUID> $list_ids Exports all of the contacts inside of up to 50 contact lists. This property is mutually exclusive with all other filtering criteria except with either <code>status</code> or <code>exclude</code>. |
| 10 | + * @property array<\PHPFUI\ConstantContact\UUID> $tag_ids Exports contacts assigned one or more of the tags (<code>tag_id</code>) specified. This property is mutually exclusive with all other filtering criteria. |
| 11 | + * @property bool $new_subscriber Set to <code>true</code> to only export contacts that subscribed within the last 30 days. Default setting is <code>false</code>. This property is mutually exclusive with all other filtering criteria except with either <code>list_ids</code> or <code>exclude</code>. |
| 12 | + * @property int $segment_id Specify the <code>segment_id</code> from which you want to export all contacts that meet the specified <code>segment_criteria</code>. You can only specify one <code>segment_id</code>. This property is mutually exclusive with all other filtering criteria. |
| 13 | + * @property array $fields By default , all fields are returned. Use this array to only export specific contact fields. You must export <code>email_address</code> to successfully export <code>email_optin_source</code>, <code>email_optin_date</code>, <code>email_optout_source</code>, <code>email_optout_date</code>, or <code>email_optout_reason</code>. |
| 14 | + * @property string $status Allows you to export only contacts that have a specific status value. This property is mutually exclusive with all other filtering criteria except with either <code>contact_ids</code> or <code>list_ids</code>. |
| 15 | + * @property \PHPFUI\ConstantContact\Definition\Exclude $exclude |
13 | 16 | */ |
14 | 17 | class ContactsExport extends \PHPFUI\ConstantContact\Definition\Base |
15 | 18 | { |
16 | 19 | protected static array $fields = [ |
17 | 20 | 'contact_ids' => 'array<\PHPFUI\ConstantContact\UUID>', |
18 | 21 | 'list_ids' => 'array<\PHPFUI\ConstantContact\UUID>', |
| 22 | + 'tag_ids' => 'array<\PHPFUI\ConstantContact\UUID>', |
| 23 | + 'new_subscriber' => 'bool', |
19 | 24 | 'segment_id' => 'int', |
20 | 25 | 'fields' => 'array', |
21 | 26 | 'status' => 'string', |
| 27 | + 'exclude' => '\PHPFUI\ConstantContact\Definition\Exclude', |
22 | 28 |
|
23 | 29 | ]; |
24 | 30 |
|
25 | 31 | protected static array $maxLength = [ |
26 | 32 | 'contact_ids' => 500, |
27 | 33 | 'list_ids' => 50, |
| 34 | + 'tag_ids' => 50, |
28 | 35 |
|
29 | 36 | ]; |
30 | 37 | } |
0 commit comments