Fixed Address.pm POD to include firstName and lastName attributes.
This commit is contained in:
parent
de983627cd
commit
d972141607
1 changed files with 6 additions and 3 deletions
|
|
@ -188,9 +188,13 @@ A hash reference that contains one or more of the following:
|
|||
|
||||
A human readable label like "home" or "work".
|
||||
|
||||
=head4 name
|
||||
=head4 firstName
|
||||
|
||||
The name of the company or person to address this to.
|
||||
The first name of the company or person to address this to.
|
||||
|
||||
=head4 lastName
|
||||
|
||||
The last name of the company or person to address this to.
|
||||
|
||||
=head4 address1
|
||||
|
||||
|
|
@ -233,7 +237,6 @@ The address book that this address belongs to.
|
|||
sub update {
|
||||
my ($self, $newProperties) = @_;
|
||||
my $id = id $self;
|
||||
#foreach my $field (qw(address1 address2 address3 state code city label name country phoneNumber)) {
|
||||
foreach my $field (qw(address1 address2 address3 state code city label firstName lastName country phoneNumber)) {
|
||||
$properties{$id}{$field} = (exists $newProperties->{$field}) ? $newProperties->{$field} : $properties{$id}{$field};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue