Skip to content

Commit 29cb41b

Browse files
committed
V22.10.0 - 2022-10-20
1 parent 889ea8b commit 29cb41b

File tree

4 files changed

+37
-5
lines changed

4 files changed

+37
-5
lines changed

src/ConstantContact/Definition/ContactCreateOrUpdateInput.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,5 +51,10 @@ class ContactCreateOrUpdateInput extends \PHPFUI\ConstantContact\Definition\Base
5151
'list_memberships' => 50,
5252
'custom_fields' => 50,
5353

54+
];
55+
56+
protected static array $requiredFields = [
57+
'kind',
58+
5459
];
5560
}

src/ConstantContact/Definition/Customer.php

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,5 +41,12 @@ class Customer extends \PHPFUI\ConstantContact\Definition\Base
4141
protected static array $maxLength = [
4242
'contact_phone' => 25,
4343

44+
];
45+
46+
protected static array $requiredFields = [
47+
'address_line1',
48+
'city',
49+
'country_code',
50+
4451
];
4552
}
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
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 $resend_subject The subject line used when resending the email campaign activity.
9+
* @property int $delay_days The number of days to wait before Constant Contact resends the email. Valid values include <code>1</code> to <code>10</code> days. This property is mutually exclusive with <code>delay_minutes</code>. This value is only returned in the response results if the resend activity was created with <code>delay_days</code> or the <code>delay_minutes</code> equal to an exact day value.
10+
* @property int $delay_minutes The number of minutes to wait before Constant Contact resends the email campaign activity. There are 1,440 minutes in a day. Valid values includes a minimum of <code>720</code> (12 hours) and a maximum of <code>14,400</code> minutes (10 days). This property is mutually exclusive with <code>delay_days</code>
11+
*/
12+
class ResendToNonOpenersInput extends \PHPFUI\ConstantContact\Definition\Base
13+
{
14+
protected static array $fields = [
15+
'resend_subject' => 'string',
16+
'delay_days' => 'int',
17+
'delay_minutes' => 'int',
18+
19+
];
20+
}

src/ConstantContact/V3/Activities/ContactsFileImport.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -30,11 +30,11 @@ public function __construct(\PHPFUI\ConstantContact\Client $client)
3030
* and the remaining data is dropped.
3131
*
3232
* @param string $file The CSV file you are importing. The column headings that you can use in the file are: `first_name`,
33-
* `last_name`, `email`, `phone`, `job_title`, `anniversary`, `birthday_day`, `birthday_month`, `company_name`, `street`, `street2`, `city`, `state`, `zip`, and `country`. The only required column heading is `email`.
34-
*
35-
*
36-
* You can also use custom fields as column headings. Enter the custom field name prefixed with `cf:` as the column heading. For example, use `cf:first_name` as the header name if you have a custom field named "first_name". The custom field must already exist in the Constant Contact account you are using. Depending on the custom field data type, you can enter dates or strings as the value of the custom field. Each contact can contain up to 25 different custom fields.
37-
*
33+
`last_name`, `email`, `phone`, `job_title`, `anniversary`, `birthday_day`, `birthday_month`, `company_name`, `street`, `street2`, `city`, `state`, `zip`, and `country`. The only required column heading is `email`.
34+
35+
36+
You can also use custom fields as column headings. Enter the custom field name prefixed with `cf:` as the column heading. For example, use `cf:first_name` as the header name if you have a custom field named "first_name". The custom field must already exist in the Constant Contact account you are using. Depending on the custom field data type, you can enter dates or strings as the value of the custom field. Each contact can contain up to 25 different custom fields.
37+
3838
* @param array $list_ids Specify which contact lists you are adding all imported contacts to as an array of up to 50 contact `list_id` values.
3939
*/
4040
public function post(string $file, array $list_ids) : array

0 commit comments

Comments
 (0)