Constructor
new Name(formatted_name, first_nameopt, last_nameopt, middle_nameopt, suffixopt, prefixopt)
- Source:
Properties:
Name | Type | Attributes | Description |
---|---|---|---|
formatted_name |
String | The formatted name of the contact | |
first_name |
String |
<optional> |
The first name of the contact |
last_name |
String |
<optional> |
The last name of the contact |
middle_name |
String |
<optional> |
The middle name of the contact |
suffix |
String |
<optional> |
The suffix of the contact |
prefix |
String |
<optional> |
The prefix of the contact |
_ |
String | The type of the object, for internal use only |
Builds a name object for a contact, required for contacts.
The object requires a formatted_name and at least another property.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
formatted_name |
String | Full name, as it normally appears | |
first_name |
String |
<optional> |
First name |
last_name |
String |
<optional> |
Last name |
middle_name |
String |
<optional> |
Middle name |
suffix |
String |
<optional> |
Name suffix |
prefix |
String |
<optional> |
Name prefix |
Throws:
-
-
If formatted_name is not defined
- Type
- Error
-
-
-
If no other component apart from formatted_name is defined
- Type
- Error
-