Skip to content

Commit

Permalink
Updated models for Core API v2.89
Browse files Browse the repository at this point in the history
  • Loading branch information
calcinai committed Mar 4, 2015
1 parent eed0e67 commit f39f649
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 24 deletions.
47 changes: 24 additions & 23 deletions src/XeroPHP/Models/Accounting/Account.php
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,12 @@ class Account extends Remote\Object {
* @property bool ShowInExpenseClaims
*/

/**
* See Account Status Codes
*
* @property string Status
*/

/**
* The Xero identifier for an account – specified as a string following the endpoint name
e.g.
Expand All @@ -63,12 +69,6 @@ class Account extends Remote\Object {
* @property string Class
*/

/**
* See Account Status Codes
*
* @property string Status
*/

/**
* If this is a system account then this element is returned. See System Account types
*
Expand Down Expand Up @@ -198,7 +198,8 @@ public static function getAPIStem(){
public static function getSupportedMethods(){
return array(
Remote\Request::METHOD_GET,
Remote\Request::METHOD_PUT
Remote\Request::METHOD_PUT,
Remote\Request::METHOD_POST
);
}

Expand All @@ -221,9 +222,9 @@ public static function getProperties(){
'TaxType' => array (false, self::PROPERTY_TYPE_ENUM, null, false),
'EnablePaymentsToAccount' => array (false, self::PROPERTY_TYPE_BOOLEAN, null, false),
'ShowInExpenseClaims' => array (false, self::PROPERTY_TYPE_BOOLEAN, null, false),
'Status' => array (false, self::PROPERTY_TYPE_ENUM, null, false),
'AccountID' => array (false, self::PROPERTY_TYPE_STRING, null, false),
'Class' => array (false, self::PROPERTY_TYPE_ENUM, null, false),
'Status' => array (false, self::PROPERTY_TYPE_ENUM, null, false),
'SystemAccount' => array (false, self::PROPERTY_TYPE_ENUM, null, false),
'BankAccountNumber' => array (false, self::PROPERTY_TYPE_STRING, null, false),
'CurrencyCode' => array (false, self::PROPERTY_TYPE_STRING, null, false),
Expand Down Expand Up @@ -356,51 +357,51 @@ public function setShowInExpenseClaim($value){
/**
* @return string
*/
public function getAccountID(){
return $this->_data['AccountID'];
public function getStatus(){
return $this->_data['Status'];
}

/**
* @param string $value
* @return Account
*/
public function setAccountID($value){
$this->propertyUpdated('AccountID', $value);
$this->_data['AccountID'] = $value;
public function setStatus($value){
$this->propertyUpdated('Status', $value);
$this->_data['Status'] = $value;
return $this;
}

/**
* @return string
*/
public function getClass(){
return $this->_data['Class'];
public function getAccountID(){
return $this->_data['AccountID'];
}

/**
* @param string $value
* @return Account
*/
public function setClass($value){
$this->propertyUpdated('Class', $value);
$this->_data['Class'] = $value;
public function setAccountID($value){
$this->propertyUpdated('AccountID', $value);
$this->_data['AccountID'] = $value;
return $this;
}

/**
* @return string
*/
public function getStatus(){
return $this->_data['Status'];
public function getClass(){
return $this->_data['Class'];
}

/**
* @param string $value
* @return Account
*/
public function setStatus($value){
$this->propertyUpdated('Status', $value);
$this->_data['Status'] = $value;
public function setClass($value){
$this->propertyUpdated('Class', $value);
$this->_data['Class'] = $value;
return $this;
}

Expand Down
2 changes: 1 addition & 1 deletion src/XeroPHP/Models/Accounting/CreditNote.php
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ class CreditNote extends Remote\Object {
*/

/**
* UTC timestamp of last update to contact
* UTC timestamp of last update to the credit note
*
* @property \DateTime UpdatedDateUTC
*/
Expand Down

0 comments on commit f39f649

Please sign in to comment.