| @@ 7-42 (lines=36) @@ | ||
| 4 | ||
| 5 | use MacsiDigital\Xero\Support\Model; |
|
| 6 | ||
| 7 | class AccountingOverpayment extends Model |
|
| 8 | { |
|
| 9 | const ENDPOINT = 'OverPayments'; |
|
| 10 | const NODE_NAME = 'OverPayment'; |
|
| 11 | const KEY_FIELD = 'OverPaymentID'; |
|
| 12 | ||
| 13 | protected $methods = ['get', 'post', 'put']; |
|
| 14 | ||
| 15 | protected $attributes = [ |
|
| 16 | 'Reference' => '', |
|
| 17 | 'Type' => '', |
|
| 18 | 'Contact' => '', |
|
| 19 | 'Date' => '', |
|
| 20 | 'Status' => '', |
|
| 21 | 'LineAmountTypes' => '', |
|
| 22 | 'LineItems' => '', |
|
| 23 | 'SubTotal' => '', |
|
| 24 | 'TotalTax' => '', |
|
| 25 | 'Total' => '', |
|
| 26 | 'UpdatedDateUTC' => '', |
|
| 27 | 'CurrencyCode' => '', |
|
| 28 | 'FullyPaidOnDate' => '', |
|
| 29 | 'OverpaymentID' => '', |
|
| 30 | 'CurrencyRate' => '', |
|
| 31 | 'RemainingCredit' => '', |
|
| 32 | 'Allocations' => '', |
|
| 33 | 'Paymetns' => '', |
|
| 34 | 'HasAttachments' => '', |
|
| 35 | ]; |
|
| 36 | ||
| 37 | protected $relationships = [ |
|
| 38 | 'Contact' => '\MacsiDigital\Xero\AccountingContact', |
|
| 39 | 'LineItems' => '\MacsiDigital\Xero\AccountingLineItem', |
|
| 40 | 'Payments' => '\MacsiDigital\Xero\AccountingPayment', |
|
| 41 | ]; |
|
| 42 | } |
|
| 43 | ||
| @@ 7-41 (lines=35) @@ | ||
| 4 | ||
| 5 | use MacsiDigital\Xero\Support\Model; |
|
| 6 | ||
| 7 | class AccountingPrepayment extends Model |
|
| 8 | { |
|
| 9 | const ENDPOINT = 'PrePayments'; |
|
| 10 | const NODE_NAME = 'PrePayment'; |
|
| 11 | const KEY_FIELD = 'PrePaymentID'; |
|
| 12 | ||
| 13 | protected $methods = ['get', 'post', 'put']; |
|
| 14 | ||
| 15 | protected $attributes = [ |
|
| 16 | 'Reference' => '', |
|
| 17 | 'Type' => '', |
|
| 18 | 'Contact' => '', |
|
| 19 | 'Date' => '', |
|
| 20 | 'Status' => '', |
|
| 21 | 'LineAmountTypes' => '', |
|
| 22 | 'LineItems' => '', |
|
| 23 | 'SubTotal' => '', |
|
| 24 | 'TotalTax' => '', |
|
| 25 | 'Total' => '', |
|
| 26 | 'UpdatedDateUTC' => '', |
|
| 27 | 'CurrencyCode' => '', |
|
| 28 | 'FullyPaidOnDate' => '', |
|
| 29 | 'PrepaymentID' => '', |
|
| 30 | 'CurrencyRate' => '', |
|
| 31 | 'RemainingCredit' => '', |
|
| 32 | 'Allocations' => '', |
|
| 33 | 'HasAttachments' => '', |
|
| 34 | ]; |
|
| 35 | ||
| 36 | protected $relationships = [ |
|
| 37 | 'Contact' => '\MacsiDigital\Xero\AccountingContact', |
|
| 38 | 'LineItems' => '\MacsiDigital\Xero\AccountingLineItem', |
|
| 39 | 'Allocation' => '\MacsiDigital\Xero\AccountingAllocation', |
|
| 40 | ]; |
|
| 41 | } |
|
| 42 | ||