Skip to content

Commit d1b69b6

Browse files
committed
V23.4.0 - 2023-04-05
1 parent b0b55b6 commit d1b69b6

File tree

10 files changed

+327
-21
lines changed

10 files changed

+327
-21
lines changed
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
<?php
2+
3+
// Generated file. Do not edit by hand. Use update.php in project root.
4+
5+
namespace PHPFUI\ConstantContact\Definition;
6+
7+
/**
8+
* @property string $activity_id The system assigned UUID that uniquely identifies an activity.
9+
* @property string $state The activity processing state.
10+
* @property \PHPFUI\ConstantContact\DateTime $started_at Timestamp showing when processing started for the activity, in ISO-8601 format.
11+
* @property \PHPFUI\ConstantContact\DateTime $completed_at Timestamp showing when processing completed for the activity, in ISO-8601 format.
12+
* @property \PHPFUI\ConstantContact\DateTime $created_at Timestamp showing when the activity was first requested, in ISO-8601 format.
13+
* @property \PHPFUI\ConstantContact\DateTime $updated_at Timestamp showing when the activity was last updated, in ISO-8601 format.
14+
* @property int $percent_done The processing percent complete for the activity.
15+
* @property array $activity_errors An array of error message strings describing the errors that occurred.
16+
* @property \PHPFUI\ConstantContact\Definition\Status $status
17+
* @property \PHPFUI\ConstantContact\Definition\Link $_links
18+
*/
19+
class ActivityDeleteListsResponse extends \PHPFUI\ConstantContact\Definition\Base
20+
{
21+
protected static array $fields = [
22+
'activity_id' => 'string',
23+
'state' => ['initialized', 'processing', 'completed', 'cancelled', 'failed', 'timed_out'],
24+
'started_at' => '\PHPFUI\ConstantContact\DateTime',
25+
'completed_at' => '\PHPFUI\ConstantContact\DateTime',
26+
'created_at' => '\PHPFUI\ConstantContact\DateTime',
27+
'updated_at' => '\PHPFUI\ConstantContact\DateTime',
28+
'percent_done' => 'int',
29+
'activity_errors' => 'array',
30+
'status' => '\PHPFUI\ConstantContact\Definition\Status',
31+
'_links' => '\PHPFUI\ConstantContact\Definition\Link',
32+
33+
];
34+
}

src/ConstantContact/Definition/ContactList.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
* @property \PHPFUI\ConstantContact\DateTime $created_at System generated date and time that the resource was created, in ISO-8601 format.
1313
* @property \PHPFUI\ConstantContact\DateTime $updated_at Date and time that the list was last updated, in ISO-8601 format. System generated.
1414
* @property \PHPFUI\ConstantContact\DateTime $deleted_at If the list was deleted, this property shows the date and time it was deleted, in ISO-8601 format. System generated.
15-
* @property int $membership_count The number of contacts in the contact list.
15+
* @property int $membership_count The total number of contacts that are members in a list. Does not apply to segment type lists.
1616
*/
1717
class ContactList extends \PHPFUI\ConstantContact\Definition\Base
1818
{
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
<?php
2+
3+
// Generated file. Do not edit by hand. Use update.php in project root.
4+
5+
namespace PHPFUI\ConstantContact\Definition;
6+
7+
/**
8+
* @property \PHPFUI\ConstantContact\UUID $list_id Unique ID for the contact list
9+
* @property string $name The name given to the contact list
10+
* @property string $description Text describing the list.
11+
* @property bool $favorite Identifies whether or not the account has favorited the contact list.
12+
* @property \PHPFUI\ConstantContact\DateTime $created_at System generated date and time that the resource was created, in ISO-8601 format.
13+
* @property \PHPFUI\ConstantContact\DateTime $updated_at Date and time that the list was last updated, in ISO-8601 format. System generated.
14+
* @property \PHPFUI\ConstantContact\DateTime $deleted_at If the list was deleted, this property shows the date and time it was deleted, in ISO-8601 format. System generated.
15+
*/
16+
class ContactListPutPost extends \PHPFUI\ConstantContact\Definition\Base
17+
{
18+
protected static array $fields = [
19+
'list_id' => '\PHPFUI\ConstantContact\UUID',
20+
'name' => 'string',
21+
'description' => 'string',
22+
'favorite' => 'bool',
23+
'created_at' => '\PHPFUI\ConstantContact\DateTime',
24+
'updated_at' => '\PHPFUI\ConstantContact\DateTime',
25+
'deleted_at' => '\PHPFUI\ConstantContact\DateTime',
26+
27+
];
28+
}

src/ConstantContact/Definition/ContactPostRequest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
* @property array<\PHPFUI\ConstantContact\Definition\ContactCustomField> $custom_fields Array of up to 25 <code>custom_field</code> key value pairs.
1818
* @property array<\PHPFUI\ConstantContact\Definition\PhoneNumberPut> $phone_numbers Array of up to 3 phone numbers subresources.
1919
* @property array<\PHPFUI\ConstantContact\Definition\StreetAddressPut> $street_addresses Array of up to 3 street address subresources.
20-
* @property array<\PHPFUI\ConstantContact\UUID> $list_memberships Array of <code>list_id<code>s to which the contact is being subscribed, up to a maximum of 50.
20+
* @property array<\PHPFUI\ConstantContact\UUID> $list_memberships Array of <code>list_id</code>s to which the contact is being subscribed, up to a maximum of 50.
2121
* @property array<\PHPFUI\ConstantContact\UUID> $taggings Array of tags (<code>tag_id</code>) assigned to the contact, up to a maximum of 50.
2222
* @property array<\PHPFUI\ConstantContact\Definition\Note> $notes An array of notes about the contact.
2323
*/
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
<?php
2+
3+
// Generated file. Do not edit by hand. Use update.php in project root.
4+
5+
namespace PHPFUI\ConstantContact\Definition;
6+
7+
/**
8+
* @property array<\PHPFUI\ConstantContact\UUID> $list_ids The array of contact lists <code>list_id</code> to delete.
9+
*/
10+
class ListIdList100 extends \PHPFUI\ConstantContact\Definition\Base
11+
{
12+
protected static array $fields = [
13+
'list_ids' => 'array<\PHPFUI\ConstantContact\UUID>',
14+
15+
];
16+
17+
protected static array $maxLength = [
18+
'list_ids' => 100,
19+
20+
];
21+
}

src/ConstantContact/Definition/Status.php

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,11 @@
55
namespace PHPFUI\ConstantContact\Definition;
66

77
/**
8-
* @property int $items_total_count Total number of contacts to add to or remove from lists.
9-
* @property int $items_completed_count The number of contacts processed.
10-
* @property int $list_count The number of lists specified in the request.
8+
* @property int $list_count The number of lists deleted.
119
*/
1210
class Status extends \PHPFUI\ConstantContact\Definition\Base
1311
{
1412
protected static array $fields = [
15-
'items_total_count' => 'int',
16-
'items_completed_count' => 'int',
1713
'list_count' => 'int',
1814

1915
];
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
<?php
2+
3+
// Generated file. Do not edit by hand. Use update.php in project root.
4+
5+
namespace PHPFUI\ConstantContact\V3\Activities;
6+
7+
class ListDelete extends \PHPFUI\ConstantContact\Base
8+
{
9+
public function __construct(\PHPFUI\ConstantContact\Client $client)
10+
{
11+
parent::__construct($client, '/v3/activities/list_delete');
12+
}
13+
14+
/**
15+
* Delete Contact Lists
16+
*
17+
* Use this endpoint to delete up to 100 contact lists in an account.
18+
*
19+
* @param \PHPFUI\ConstantContact\Definition\ListIdList100 $body An array of `list_id`'s to delete.
20+
*/
21+
public function post(\PHPFUI\ConstantContact\Definition\ListIdList100 $body) : array
22+
{
23+
24+
return $this->doPost(['body' => $body->getData(), ]);
25+
}
26+
}

src/ConstantContact/V3/ContactList.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ public function __construct(\PHPFUI\ConstantContact\Client $client)
1818
*
1919
*
2020
* @param string $list_id The system generated ID that uniquely identifies a contact list.
21-
* @param string $include_membership_count Use to include the number of contact members per list by setting the `include_membership_count` to either `active`, to count only active contacts, or `all` to include all contacts in the count.
21+
* @param string $include_membership_count Returns the total number of contacts per list that meet your selection criteria. Set the `include_membership_count` to `active`, to count only active contacts, or `all` to include all contacts in the count.
2222
*/
2323
public function get(string $list_id, ?string $include_membership_count = null) : array
2424
{

src/ConstantContact/V3/ContactLists.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ public function __construct(\PHPFUI\ConstantContact\Client $client)
2222
*
2323
* @param int $limit Use to specify the number of results displayed per page of output, from 1 - 500, default = 50.
2424
* @param bool $include_count Set `include_count` to `true` to return the total number of contact lists that meet your selection criteria.
25-
* @param string $include_membership_count Use to include the total number of contacts members in each list. Set to `active`, to count only active (mailable) contacts, or `all` to count all contacts.
25+
* @param string $include_membership_count Use to include the total number of contacts per list. Set to `active`, to count only active (mailable) contacts, or `all` to count all contacts.
2626
* @param string $name Use to get details for a single list by entering the full name of the list.
2727
* @param string $status Use to get lists by status. Accepts comma-separated status values.
2828
*/

0 commit comments

Comments
 (0)