Skip to content

Commit

Permalink
Generated models with use of appropriate traits
Browse files Browse the repository at this point in the history
  • Loading branch information
calcinai committed Jun 20, 2015
1 parent 99046d4 commit 54d07d8
Show file tree
Hide file tree
Showing 11 changed files with 48 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/XeroPHP/Models/Accounting/Account.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,13 @@

use XeroPHP\Remote;

use XeroPHP\Traits\AttachmentTrait;


class Account extends Remote\Object {

use AttachmentTrait;

/**
* Customer defined alpha numeric account code e.g 200 or SALES
*
Expand Down
4 changes: 4 additions & 0 deletions src/XeroPHP/Models/Accounting/BankTransaction.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,15 @@

use XeroPHP\Remote;

use XeroPHP\Traits\AttachmentTrait;

use XeroPHP\Models\Accounting\BankTransaction\LineItem;
use XeroPHP\Models\Accounting\BankTransaction\BankAccount;

class BankTransaction extends Remote\Object {

use AttachmentTrait;

/**
* See Bank Transaction Types
*
Expand Down
4 changes: 4 additions & 0 deletions src/XeroPHP/Models/Accounting/BankTransfer.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,15 @@

use XeroPHP\Remote;

use XeroPHP\Traits\AttachmentTrait;

use XeroPHP\Models\Accounting\BankTransfer\FromBankAccount;
use XeroPHP\Models\Accounting\BankTransfer\ToBankAccount;

class BankTransfer extends Remote\Object {

use AttachmentTrait;

/**
* See FromBankAccount
*
Expand Down
4 changes: 4 additions & 0 deletions src/XeroPHP/Models/Accounting/Contact.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,15 @@

use XeroPHP\Remote;

use XeroPHP\Traits\AttachmentTrait;

use XeroPHP\Models\Accounting\Contact\ContactPerson;
use XeroPHP\Models\Accounting\Organisation\PaymentTerm;

class Contact extends Remote\Object {

use AttachmentTrait;

/**
* Xero identifier
*
Expand Down
6 changes: 6 additions & 0 deletions src/XeroPHP/Models/Accounting/CreditNote.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,17 @@

use XeroPHP\Remote;

use XeroPHP\Traits\PDFTrait;
use XeroPHP\Traits\AttachmentTrait;

use XeroPHP\Models\Accounting\Invoice\LineItem;
use XeroPHP\Models\Accounting\CreditNote\Allocation;

class CreditNote extends Remote\Object {

use PDFTrait;
use AttachmentTrait;

/**
* An optional field to store a reference
*
Expand Down
6 changes: 6 additions & 0 deletions src/XeroPHP/Models/Accounting/Invoice.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,16 @@

use XeroPHP\Remote;

use XeroPHP\Traits\PDFTrait;
use XeroPHP\Traits\AttachmentTrait;

use XeroPHP\Models\Accounting\Invoice\LineItem;

class Invoice extends Remote\Object {

use PDFTrait;
use AttachmentTrait;

/**
* See Invoice Types
*
Expand Down
4 changes: 4 additions & 0 deletions src/XeroPHP/Models/Accounting/ManualJournal.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,14 @@

use XeroPHP\Remote;

use XeroPHP\Traits\AttachmentTrait;

use XeroPHP\Models\Accounting\ManualJournal\JournalLine;

class ManualJournal extends Remote\Object {

use AttachmentTrait;

/**
* Xero identifier
*
Expand Down
4 changes: 4 additions & 0 deletions src/XeroPHP/Models/Accounting/Overpayment.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,15 @@

use XeroPHP\Remote;

use XeroPHP\Traits\AttachmentTrait;

use XeroPHP\Models\Accounting\BankTransaction\LineItem;
use XeroPHP\Models\Accounting\Overpayment\Allocation;

class Overpayment extends Remote\Object {

use AttachmentTrait;

/**
* This property has been removed from the Xero API
*
Expand Down
4 changes: 4 additions & 0 deletions src/XeroPHP/Models/Accounting/Prepayment.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,15 @@

use XeroPHP\Remote;

use XeroPHP\Traits\AttachmentTrait;

use XeroPHP\Models\Accounting\BankTransaction\LineItem;
use XeroPHP\Models\Accounting\Prepayment\Allocation;

class Prepayment extends Remote\Object {

use AttachmentTrait;

/**
* This property has been removed from the Xero API
*
Expand Down
4 changes: 4 additions & 0 deletions src/XeroPHP/Models/Accounting/Receipt.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,14 @@

use XeroPHP\Remote;

use XeroPHP\Traits\AttachmentTrait;

use XeroPHP\Models\Accounting\Receipt\LineItem;

class Receipt extends Remote\Object {

use AttachmentTrait;

/**
* Date of receipt – YYYY-MM-DD
*
Expand Down
4 changes: 4 additions & 0 deletions src/XeroPHP/Models/Accounting/RepeatingInvoice.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,15 @@

use XeroPHP\Remote;

use XeroPHP\Traits\AttachmentTrait;

use XeroPHP\Models\Accounting\RepeatingInvoice\Schedule;
use XeroPHP\Models\Accounting\RepeatingInvoice\LineItem;

class RepeatingInvoice extends Remote\Object {

use AttachmentTrait;

/**
* See Invoice Types
*
Expand Down

0 comments on commit 54d07d8

Please sign in to comment.