Skip to content

Commit

Permalink
Updated models with new gen
Browse files Browse the repository at this point in the history
  • Loading branch information
calcinai committed May 25, 2015
1 parent 5c0e7bc commit df631e4
Show file tree
Hide file tree
Showing 8 changed files with 48 additions and 48 deletions.
12 changes: 6 additions & 6 deletions src/XeroPHP/Models/Accounting/BankTransaction.php
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ class BankTransaction extends Remote\Object {
* Line amounts are exclusive of tax by default if you don’t specify this element. See Line Amount
* Types
*
* @property float[] LineAmountTypes
* @property string LineAmountTypes
*/

/**
Expand Down Expand Up @@ -209,7 +209,7 @@ public static function getProperties() {
'CurrencyRate' => array (false, self::PROPERTY_TYPE_FLOAT, null, false, false),
'Url' => array (false, self::PROPERTY_TYPE_STRING, null, false, false),
'Status' => array (false, self::PROPERTY_TYPE_ENUM, null, false, false),
'LineAmountTypes' => array (false, self::PROPERTY_TYPE_FLOAT, null, true, false),
'LineAmountTypes' => array (false, self::PROPERTY_TYPE_ENUM, null, false, false),
'SubTotal' => array (false, self::PROPERTY_TYPE_FLOAT, null, false, false),
'TotalTax' => array (false, self::PROPERTY_TYPE_FLOAT, null, false, false),
'Total' => array (false, self::PROPERTY_TYPE_FLOAT, null, false, false),
Expand Down Expand Up @@ -408,19 +408,19 @@ public function setStatus($value) {
}

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

/**
* @param float $value
* @param string $value
* @return BankTransaction
*/
public function addLineAmountType($value) {
public function setLineAmountType($value) {
$this->propertyUpdated('LineAmountTypes', $value);
$this->_data['LineAmountTypes'][] = $value;
$this->_data['LineAmountTypes'] = $value;
return $this;
}

Expand Down
12 changes: 6 additions & 6 deletions src/XeroPHP/Models/Accounting/CreditNote.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ class CreditNote extends Remote\Object {
/**
* See Invoice Line Amount Types
*
* @property float[] LineAmountTypes
* @property string LineAmountTypes
*/

/**
Expand Down Expand Up @@ -209,7 +209,7 @@ public static function getProperties() {
'Contact' => array (false, self::PROPERTY_TYPE_OBJECT, 'Accounting\\Contact', false, false),
'Date' => array (false, self::PROPERTY_TYPE_DATE, '\\DateTime', false, false),
'Status' => array (false, self::PROPERTY_TYPE_ENUM, null, false, false),
'LineAmountTypes' => array (false, self::PROPERTY_TYPE_FLOAT, null, true, false),
'LineAmountTypes' => array (false, self::PROPERTY_TYPE_ENUM, null, false, false),
'LineItems' => array (false, self::PROPERTY_TYPE_OBJECT, 'Accounting\\Invoice\\LineItem', true, false),
'SubTotal' => array (false, self::PROPERTY_TYPE_FLOAT, null, false, false),
'TotalTax' => array (false, self::PROPERTY_TYPE_FLOAT, null, false, false),
Expand Down Expand Up @@ -315,19 +315,19 @@ public function setStatus($value) {
}

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

/**
* @param float $value
* @param string $value
* @return CreditNote
*/
public function addLineAmountType($value) {
public function setLineAmountType($value) {
$this->propertyUpdated('LineAmountTypes', $value);
$this->_data['LineAmountTypes'][] = $value;
$this->_data['LineAmountTypes'] = $value;
return $this;
}

Expand Down
12 changes: 6 additions & 6 deletions src/XeroPHP/Models/Accounting/Invoice.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ class Invoice extends Remote\Object {
* Line amounts are exclusive of tax by default if you don’t specify this element. See Line Amount
* Types
*
* @property float[] LineAmountTypes
* @property string LineAmountTypes
*/

/**
Expand Down Expand Up @@ -283,7 +283,7 @@ public static function getProperties() {
'LineItems' => array (true, self::PROPERTY_TYPE_OBJECT, 'Accounting\\Invoice\\LineItem', true, false),
'Date' => array (false, self::PROPERTY_TYPE_DATE, '\\DateTime', false, false),
'DueDate' => array (false, self::PROPERTY_TYPE_DATE, '\\DateTime', false, false),
'LineAmountTypes' => array (false, self::PROPERTY_TYPE_FLOAT, null, true, false),
'LineAmountTypes' => array (false, self::PROPERTY_TYPE_ENUM, null, false, false),
'InvoiceNumber' => array (false, self::PROPERTY_TYPE_FLOAT, null, false, false),
'Reference' => array (false, self::PROPERTY_TYPE_STRING, null, false, false),
'BrandingThemeID' => array (false, self::PROPERTY_TYPE_STRING, null, false, false),
Expand Down Expand Up @@ -399,19 +399,19 @@ public function setDueDate(\DateTime $value) {
}

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

/**
* @param float $value
* @param string $value
* @return Invoice
*/
public function addLineAmountType($value) {
public function setLineAmountType($value) {
$this->propertyUpdated('LineAmountTypes', $value);
$this->_data['LineAmountTypes'][] = $value;
$this->_data['LineAmountTypes'] = $value;
return $this;
}

Expand Down
12 changes: 6 additions & 6 deletions src/XeroPHP/Models/Accounting/ManualJournal.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ class ManualJournal extends Remote\Object {
/**
* NoTax by default if you don’t specify this element. See Line Amount Types
*
* @property float[] LineAmountTypes
* @property string LineAmountTypes
*/

/**
Expand Down Expand Up @@ -137,7 +137,7 @@ public static function getProperties() {
'Narration' => array (true, self::PROPERTY_TYPE_STRING, null, false, false),
'JournalLines' => array (true, self::PROPERTY_TYPE_OBJECT, 'Accounting\\ManualJournal\\JournalLine', true, false),
'Date' => array (false, self::PROPERTY_TYPE_DATE, '\\DateTime', false, false),
'LineAmountTypes' => array (false, self::PROPERTY_TYPE_FLOAT, null, true, false),
'LineAmountTypes' => array (false, self::PROPERTY_TYPE_ENUM, null, false, false),
'Status' => array (false, self::PROPERTY_TYPE_ENUM, null, false, false),
'Url' => array (false, self::PROPERTY_TYPE_STRING, null, false, false),
'ShowOnCashBasisReports' => array (false, self::PROPERTY_TYPE_BOOLEAN, null, false, false),
Expand Down Expand Up @@ -215,19 +215,19 @@ public function setDate(\DateTime $value) {
}

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

/**
* @param float $value
* @param string $value
* @return ManualJournal
*/
public function addLineAmountType($value) {
public function setLineAmountType($value) {
$this->propertyUpdated('LineAmountTypes', $value);
$this->_data['LineAmountTypes'][] = $value;
$this->_data['LineAmountTypes'] = $value;
return $this;
}

Expand Down
12 changes: 6 additions & 6 deletions src/XeroPHP/Models/Accounting/Overpayment.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ class Overpayment extends Remote\Object {
/**
* See Overpayment Line Amount Types
*
* @property float[] LineAmountTypes
* @property string LineAmountTypes
*/

/**
Expand Down Expand Up @@ -196,7 +196,7 @@ public static function getProperties() {
'Contact' => array (false, self::PROPERTY_TYPE_OBJECT, 'Accounting\\Contact', false, false),
'Date' => array (false, self::PROPERTY_TYPE_DATE, '\\DateTime', false, false),
'Status' => array (false, self::PROPERTY_TYPE_ENUM, null, false, false),
'LineAmountTypes' => array (false, self::PROPERTY_TYPE_FLOAT, null, true, false),
'LineAmountTypes' => array (false, self::PROPERTY_TYPE_ENUM, null, false, false),
'LineItems' => array (false, self::PROPERTY_TYPE_OBJECT, 'Accounting\\BankTransaction\\LineItem', true, false),
'SubTotal' => array (false, self::PROPERTY_TYPE_FLOAT, null, false, false),
'TotalTax' => array (false, self::PROPERTY_TYPE_FLOAT, null, false, false),
Expand Down Expand Up @@ -301,19 +301,19 @@ public function setStatus($value) {
}

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

/**
* @param float $value
* @param string $value
* @return Overpayment
*/
public function addLineAmountType($value) {
public function setLineAmountType($value) {
$this->propertyUpdated('LineAmountTypes', $value);
$this->_data['LineAmountTypes'][] = $value;
$this->_data['LineAmountTypes'] = $value;
return $this;
}

Expand Down
12 changes: 6 additions & 6 deletions src/XeroPHP/Models/Accounting/Prepayment.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ class Prepayment extends Remote\Object {
/**
* See Prepayment Line Amount Types
*
* @property float[] LineAmountTypes
* @property string LineAmountTypes
*/

/**
Expand Down Expand Up @@ -196,7 +196,7 @@ public static function getProperties() {
'Contact' => array (false, self::PROPERTY_TYPE_OBJECT, 'Accounting\\Contact', false, false),
'Date' => array (false, self::PROPERTY_TYPE_DATE, '\\DateTime', false, false),
'Status' => array (false, self::PROPERTY_TYPE_ENUM, null, false, false),
'LineAmountTypes' => array (false, self::PROPERTY_TYPE_FLOAT, null, true, false),
'LineAmountTypes' => array (false, self::PROPERTY_TYPE_ENUM, null, false, false),
'LineItems' => array (false, self::PROPERTY_TYPE_OBJECT, 'Accounting\\BankTransaction\\LineItem', true, false),
'SubTotal' => array (false, self::PROPERTY_TYPE_FLOAT, null, false, false),
'TotalTax' => array (false, self::PROPERTY_TYPE_FLOAT, null, false, false),
Expand Down Expand Up @@ -301,19 +301,19 @@ public function setStatus($value) {
}

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

/**
* @param float $value
* @param string $value
* @return Prepayment
*/
public function addLineAmountType($value) {
public function setLineAmountType($value) {
$this->propertyUpdated('LineAmountTypes', $value);
$this->_data['LineAmountTypes'][] = $value;
$this->_data['LineAmountTypes'] = $value;
return $this;
}

Expand Down
12 changes: 6 additions & 6 deletions src/XeroPHP/Models/Accounting/Receipt.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ class Receipt extends Remote\Object {
/**
* See Line Amount Types
*
* @property float[] LineAmountTypes
* @property string LineAmountTypes
*/

/**
Expand Down Expand Up @@ -174,7 +174,7 @@ public static function getProperties() {
'LineItems' => array (true, self::PROPERTY_TYPE_OBJECT, 'Accounting\\Receipt\\LineItem', true, false),
'User' => array (true, self::PROPERTY_TYPE_OBJECT, 'Accounting\\User', false, false),
'Reference' => array (false, self::PROPERTY_TYPE_STRING, null, false, false),
'LineAmountTypes' => array (false, self::PROPERTY_TYPE_FLOAT, null, true, false),
'LineAmountTypes' => array (false, self::PROPERTY_TYPE_ENUM, null, false, false),
'SubTotal' => array (false, self::PROPERTY_TYPE_FLOAT, null, false, false),
'TotalTax' => array (false, self::PROPERTY_TYPE_FLOAT, null, false, false),
'Total' => array (false, self::PROPERTY_TYPE_FLOAT, null, false, false),
Expand Down Expand Up @@ -274,19 +274,19 @@ public function setReference($value) {
}

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

/**
* @param float $value
* @param string $value
* @return Receipt
*/
public function addLineAmountType($value) {
public function setLineAmountType($value) {
$this->propertyUpdated('LineAmountTypes', $value);
$this->_data['LineAmountTypes'][] = $value;
$this->_data['LineAmountTypes'] = $value;
return $this;
}

Expand Down
12 changes: 6 additions & 6 deletions src/XeroPHP/Models/Accounting/RepeatingInvoice.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ class RepeatingInvoice extends Remote\Object {
* Line amounts are exclusive of tax by default if you don’t specify this element. See Line Amount
* Types
*
* @property float[] LineAmountTypes
* @property string LineAmountTypes
*/

/**
Expand Down Expand Up @@ -162,7 +162,7 @@ public static function getProperties() {
'Contact' => array (false, self::PROPERTY_TYPE_OBJECT, 'Accounting\\Contact', false, false),
'Schedule' => array (false, self::PROPERTY_TYPE_OBJECT, 'Accounting\\RepeatingInvoice\\Schedule', false, false),
'LineItems' => array (false, self::PROPERTY_TYPE_OBJECT, 'Accounting\\RepeatingInvoice\\LineItem', true, false),
'LineAmountTypes' => array (false, self::PROPERTY_TYPE_FLOAT, null, true, false),
'LineAmountTypes' => array (false, self::PROPERTY_TYPE_ENUM, null, false, false),
'Reference' => array (false, self::PROPERTY_TYPE_STRING, null, false, false),
'BrandingThemeID' => array (false, self::PROPERTY_TYPE_STRING, null, false, false),
'CurrencyCode' => array (false, self::PROPERTY_TYPE_STRING, null, false, false),
Expand Down Expand Up @@ -245,19 +245,19 @@ public function addLineItem(LineItem $value) {
}

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

/**
* @param float $value
* @param string $value
* @return RepeatingInvoice
*/
public function addLineAmountType($value) {
public function setLineAmountType($value) {
$this->propertyUpdated('LineAmountTypes', $value);
$this->_data['LineAmountTypes'][] = $value;
$this->_data['LineAmountTypes'] = $value;
return $this;
}

Expand Down

0 comments on commit df631e4

Please sign in to comment.