Skip to content

Commit

Permalink
Merge pull request #850 from elmo-2022/elmo
Browse files Browse the repository at this point in the history
Add CompanyName
  • Loading branch information
calcinai authored Apr 18, 2022
2 parents d3dc89d + f256bdc commit 8ac1460
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions src/XeroPHP/Models/Accounting/Contact.php
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,11 @@ class Contact extends Remote\Model
* @property string TaxNumber
*/

/**
* Company registration number. Max 50 char.
* @property string CompanyNumber
*/

/**
* Default tax type used for contact on AR invoices.
*
Expand Down Expand Up @@ -314,6 +319,7 @@ public static function getProperties()
'ContactPersons' => [false, self::PROPERTY_TYPE_OBJECT, 'Accounting\\Contact\\ContactPerson', true, false],
'BankAccountDetails' => [false, self::PROPERTY_TYPE_STRING, null, false, false],
'TaxNumber' => [false, self::PROPERTY_TYPE_STRING, null, false, false],
'CompanyNumber' => [false, self::PROPERTY_TYPE_STRING, null, false, false],
'AccountsReceivableTaxType' => [false, self::PROPERTY_TYPE_STRING, null, false, false],
'AccountsPayableTaxType' => [false, self::PROPERTY_TYPE_STRING, null, false, false],
'Addresses' => [false, self::PROPERTY_TYPE_OBJECT, 'Accounting\\Address', true, false],
Expand Down Expand Up @@ -612,6 +618,27 @@ public function setTaxNumber($value)
return $this;
}

/**
* @return string
*/
public function getCompanyNumber()
{
return $this->_data['CompanyNumber'];
}

/**
* @param string $value
*
* @return Contact
*/
public function setCompanyNumber($value)
{
$this->propertyUpdated('CompanyNumber', $value);
$this->_data['CompanyNumber'] = $value;

return $this;
}

/**
* @return string
*/
Expand Down

1 comment on commit 8ac1460

@elmo-2022
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for accepting the PR @calcinai
When to expect a release with the updated code?

Please sign in to comment.