xero_gateway 2.0.4 → 2.0.5
Sign up to get free protection for your applications and to get access to all the features.
- data/README.textile +57 -5
- data/lib/xero_gateway/account.rb +8 -2
- data/lib/xero_gateway/credit_note.rb +275 -0
- data/lib/xero_gateway/exceptions.rb +3 -1
- data/lib/xero_gateway/gateway.rb +119 -3
- data/lib/xero_gateway/http.rb +10 -6
- data/lib/xero_gateway/oauth.rb +3 -1
- data/lib/xero_gateway/response.rb +2 -0
- data/lib/xero_gateway/tracking_category.rb +5 -2
- data/lib/xero_gateway.rb +1 -0
- data/test/integration/create_credit_note_test.rb +49 -0
- data/test/integration/get_credit_note_test.rb +48 -0
- data/test/integration/get_credit_notes_test.rb +90 -0
- data/test/integration/get_tracking_categories_test.rb +3 -2
- data/test/test_helper.rb +24 -1
- data/test/unit/account_test.rb +3 -2
- data/test/unit/credit_note_test.rb +284 -0
- data/test/unit/gateway_test.rb +17 -1
- data/xero_gateway.gemspec +3 -76
- metadata +13 -29
- data/CHANGELOG.textile +0 -57
- data/test/stub_responses/accounts.xml +0 -1
- data/test/stub_responses/api_exception.xml +0 -153
- data/test/stub_responses/contact.xml +0 -1
- data/test/stub_responses/contacts.xml +0 -2189
- data/test/stub_responses/create_invoice.xml +0 -64
- data/test/stub_responses/currencies.xml +0 -16
- data/test/stub_responses/invalid_api_key_error.xml +0 -1
- data/test/stub_responses/invalid_consumer_key +0 -1
- data/test/stub_responses/invalid_request_token +0 -1
- data/test/stub_responses/invoice.xml +0 -1
- data/test/stub_responses/invoice_not_found_error.xml +0 -1
- data/test/stub_responses/invoices.xml +0 -1
- data/test/stub_responses/organisation.xml +0 -14
- data/test/stub_responses/tax_rates.xml +0 -52
- data/test/stub_responses/token_expired +0 -1
- data/test/stub_responses/tracking_categories.xml +0 -1
- data/test/stub_responses/unknown_error.xml +0 -1
- data/test/xsd/README +0 -2
- data/test/xsd/create_contact.xsd +0 -61
- data/test/xsd/create_invoice.xsd +0 -107
data/xero_gateway.gemspec
CHANGED
@@ -1,85 +1,12 @@
|
|
1
1
|
Gem::Specification.new do |s|
|
2
2
|
s.name = "xero_gateway"
|
3
|
-
s.version = "2.0.
|
4
|
-
s.date = "2010-
|
3
|
+
s.version = "2.0.5"
|
4
|
+
s.date = "2010-10-21"
|
5
5
|
s.summary = "Enables ruby based applications to communicate with the Xero API"
|
6
6
|
s.email = "tim@connorsoftware.com"
|
7
7
|
s.homepage = "http://github.com/tlconnor/xero_gateway"
|
8
8
|
s.description = "Enables ruby based applications to communicate with the Xero API"
|
9
9
|
s.has_rdoc = false
|
10
10
|
s.authors = ["Tim Connor", "Nik Wakelin"]
|
11
|
-
s.files
|
12
|
-
"init.rb",
|
13
|
-
"LICENSE",
|
14
|
-
"Rakefile",
|
15
|
-
"README.textile",
|
16
|
-
"examples/oauth.rb",
|
17
|
-
"lib/xero_gateway.rb",
|
18
|
-
"lib/xero_gateway/account.rb",
|
19
|
-
"lib/xero_gateway/accounts_list.rb",
|
20
|
-
"lib/xero_gateway/address.rb",
|
21
|
-
"lib/xero_gateway/ca-certificates.crt",
|
22
|
-
"lib/xero_gateway/contact.rb",
|
23
|
-
"lib/xero_gateway/currency.rb",
|
24
|
-
"lib/xero_gateway/dates.rb",
|
25
|
-
"lib/xero_gateway/error.rb",
|
26
|
-
"lib/xero_gateway/exceptions.rb",
|
27
|
-
"lib/xero_gateway/gateway.rb",
|
28
|
-
"lib/xero_gateway/http.rb",
|
29
|
-
"lib/xero_gateway/http_encoding_helper.rb",
|
30
|
-
"lib/xero_gateway/invoice.rb",
|
31
|
-
"lib/xero_gateway/line_item.rb",
|
32
|
-
"lib/xero_gateway/money.rb",
|
33
|
-
"lib/xero_gateway/oauth.rb",
|
34
|
-
"lib/xero_gateway/organisation.rb",
|
35
|
-
"lib/xero_gateway/payment.rb",
|
36
|
-
"lib/xero_gateway/phone.rb",
|
37
|
-
"lib/xero_gateway/private_app.rb",
|
38
|
-
"lib/xero_gateway/response.rb",
|
39
|
-
"lib/xero_gateway/tax_rate.rb",
|
40
|
-
"lib/xero_gateway/tracking_category.rb",
|
41
|
-
"test/integration/accounts_list_test.rb",
|
42
|
-
"test/integration/create_contact_test.rb",
|
43
|
-
"test/integration/create_invoice_test.rb",
|
44
|
-
"test/integration/get_accounts_test.rb",
|
45
|
-
"test/integration/get_contact_test.rb",
|
46
|
-
"test/integration/get_contacts_test.rb",
|
47
|
-
"test/integration/get_currencies_test.rb",
|
48
|
-
"test/integration/get_invoice_test.rb",
|
49
|
-
"test/integration/get_invoices_test.rb",
|
50
|
-
"test/integration/get_organisation_test.rb",
|
51
|
-
"test/integration/get_tax_rates_test.rb",
|
52
|
-
"test/integration/get_tracking_categories_test.rb",
|
53
|
-
"test/integration/update_contact_test.rb",
|
54
|
-
"test/stub_responses/accounts.xml",
|
55
|
-
"test/stub_responses/api_exception.xml",
|
56
|
-
"test/stub_responses/contact.xml",
|
57
|
-
"test/stub_responses/contacts.xml",
|
58
|
-
"test/stub_responses/create_invoice.xml",
|
59
|
-
"test/stub_responses/currencies.xml",
|
60
|
-
"test/stub_responses/invalid_api_key_error.xml",
|
61
|
-
"test/stub_responses/invalid_consumer_key",
|
62
|
-
"test/stub_responses/invalid_request_token",
|
63
|
-
"test/stub_responses/invoice.xml",
|
64
|
-
"test/stub_responses/invoice_not_found_error.xml",
|
65
|
-
"test/stub_responses/invoices.xml",
|
66
|
-
"test/stub_responses/organisation.xml",
|
67
|
-
"test/stub_responses/tax_rates.xml",
|
68
|
-
"test/stub_responses/token_expired",
|
69
|
-
"test/stub_responses/tracking_categories.xml",
|
70
|
-
"test/stub_responses/unknown_error.xml",
|
71
|
-
"test/test_helper.rb",
|
72
|
-
"test/unit/account_test.rb",
|
73
|
-
"test/unit/contact_test.rb",
|
74
|
-
"test/unit/currency_test.rb",
|
75
|
-
"test/unit/gateway_test.rb",
|
76
|
-
"test/unit/invoice_test.rb",
|
77
|
-
"test/unit/oauth_test.rb",
|
78
|
-
"test/unit/organisation_test.rb",
|
79
|
-
"test/unit/tax_rate_test.rb",
|
80
|
-
"test/unit/tracking_category_test.rb",
|
81
|
-
"test/xsd/README",
|
82
|
-
"test/xsd/create_contact.xsd",
|
83
|
-
"test/xsd/create_invoice.xsd",
|
84
|
-
"xero_gateway.gemspec"]
|
11
|
+
s.files = ["LICENSE", "Rakefile", "README.textile", "xero_gateway.gemspec"] + Dir['**/*.rb'] + Dir['**/*.crt']
|
85
12
|
end
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: xero_gateway
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 5
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 2
|
8
8
|
- 0
|
9
|
-
-
|
10
|
-
version: 2.0.
|
9
|
+
- 5
|
10
|
+
version: 2.0.5
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Tim Connor
|
@@ -16,7 +16,7 @@ autorequire:
|
|
16
16
|
bindir: bin
|
17
17
|
cert_chain: []
|
18
18
|
|
19
|
-
date: 2010-
|
19
|
+
date: 2010-10-21 00:00:00 +13:00
|
20
20
|
default_executable:
|
21
21
|
dependencies: []
|
22
22
|
|
@@ -29,18 +29,17 @@ extensions: []
|
|
29
29
|
extra_rdoc_files: []
|
30
30
|
|
31
31
|
files:
|
32
|
-
- CHANGELOG.textile
|
33
|
-
- init.rb
|
34
32
|
- LICENSE
|
35
33
|
- Rakefile
|
36
34
|
- README.textile
|
35
|
+
- xero_gateway.gemspec
|
37
36
|
- examples/oauth.rb
|
38
|
-
-
|
37
|
+
- init.rb
|
39
38
|
- lib/xero_gateway/account.rb
|
40
39
|
- lib/xero_gateway/accounts_list.rb
|
41
40
|
- lib/xero_gateway/address.rb
|
42
|
-
- lib/xero_gateway/ca-certificates.crt
|
43
41
|
- lib/xero_gateway/contact.rb
|
42
|
+
- lib/xero_gateway/credit_note.rb
|
44
43
|
- lib/xero_gateway/currency.rb
|
45
44
|
- lib/xero_gateway/dates.rb
|
46
45
|
- lib/xero_gateway/error.rb
|
@@ -59,12 +58,16 @@ files:
|
|
59
58
|
- lib/xero_gateway/response.rb
|
60
59
|
- lib/xero_gateway/tax_rate.rb
|
61
60
|
- lib/xero_gateway/tracking_category.rb
|
61
|
+
- lib/xero_gateway.rb
|
62
62
|
- test/integration/accounts_list_test.rb
|
63
63
|
- test/integration/create_contact_test.rb
|
64
|
+
- test/integration/create_credit_note_test.rb
|
64
65
|
- test/integration/create_invoice_test.rb
|
65
66
|
- test/integration/get_accounts_test.rb
|
66
67
|
- test/integration/get_contact_test.rb
|
67
68
|
- test/integration/get_contacts_test.rb
|
69
|
+
- test/integration/get_credit_note_test.rb
|
70
|
+
- test/integration/get_credit_notes_test.rb
|
68
71
|
- test/integration/get_currencies_test.rb
|
69
72
|
- test/integration/get_invoice_test.rb
|
70
73
|
- test/integration/get_invoices_test.rb
|
@@ -72,26 +75,10 @@ files:
|
|
72
75
|
- test/integration/get_tax_rates_test.rb
|
73
76
|
- test/integration/get_tracking_categories_test.rb
|
74
77
|
- test/integration/update_contact_test.rb
|
75
|
-
- test/stub_responses/accounts.xml
|
76
|
-
- test/stub_responses/api_exception.xml
|
77
|
-
- test/stub_responses/contact.xml
|
78
|
-
- test/stub_responses/contacts.xml
|
79
|
-
- test/stub_responses/create_invoice.xml
|
80
|
-
- test/stub_responses/currencies.xml
|
81
|
-
- test/stub_responses/invalid_api_key_error.xml
|
82
|
-
- test/stub_responses/invalid_consumer_key
|
83
|
-
- test/stub_responses/invalid_request_token
|
84
|
-
- test/stub_responses/invoice.xml
|
85
|
-
- test/stub_responses/invoice_not_found_error.xml
|
86
|
-
- test/stub_responses/invoices.xml
|
87
|
-
- test/stub_responses/organisation.xml
|
88
|
-
- test/stub_responses/tax_rates.xml
|
89
|
-
- test/stub_responses/token_expired
|
90
|
-
- test/stub_responses/tracking_categories.xml
|
91
|
-
- test/stub_responses/unknown_error.xml
|
92
78
|
- test/test_helper.rb
|
93
79
|
- test/unit/account_test.rb
|
94
80
|
- test/unit/contact_test.rb
|
81
|
+
- test/unit/credit_note_test.rb
|
95
82
|
- test/unit/currency_test.rb
|
96
83
|
- test/unit/gateway_test.rb
|
97
84
|
- test/unit/invoice_test.rb
|
@@ -99,10 +86,7 @@ files:
|
|
99
86
|
- test/unit/organisation_test.rb
|
100
87
|
- test/unit/tax_rate_test.rb
|
101
88
|
- test/unit/tracking_category_test.rb
|
102
|
-
-
|
103
|
-
- test/xsd/create_contact.xsd
|
104
|
-
- test/xsd/create_invoice.xsd
|
105
|
-
- xero_gateway.gemspec
|
89
|
+
- lib/xero_gateway/ca-certificates.crt
|
106
90
|
has_rdoc: true
|
107
91
|
homepage: http://github.com/tlconnor/xero_gateway
|
108
92
|
licenses: []
|
data/CHANGELOG.textile
DELETED
@@ -1,57 +0,0 @@
|
|
1
|
-
h2. 2.0.4, released 29/09/2010
|
2
|
-
|
3
|
-
* Use bundler for dependency management
|
4
|
-
|
5
|
-
h2. 2.0.3, released 29/09/2010
|
6
|
-
|
7
|
-
* Fix issue caused by Xero updating the Tracking Category XML structure
|
8
|
-
|
9
|
-
h2. 2.0.2, released 23/08/2010
|
10
|
-
|
11
|
-
* Xero Api version 2.0
|
12
|
-
|
13
|
-
h2. 1.0.5, released 25/09/2009
|
14
|
-
|
15
|
-
* This will be the final release before switching to the Xero API version 2.0
|
16
|
-
* Allow multiple tracking options per line item
|
17
|
-
|
18
|
-
h2. 1.0.4, released 13/08/2009
|
19
|
-
|
20
|
-
* Auto-assign Contact#contact_id and Invoice#invoice_id on creation of either of these records.
|
21
|
-
* Add Xero::Gateway#build_contact and Xero::Gateway#build_invoice factory methods to create Contact/Invoice objects associated with the gateway.
|
22
|
-
* Add Contact#save method to create/update a contact record based on if it has a contact_id or contact_number.
|
23
|
-
* Add Invoice#save method to create (insert only currently supported by Xero API) the invoice.
|
24
|
-
* Add #valid? method to each model class to validate it's contents with the minimum required by the API (without calling the API).
|
25
|
-
* Add useful API constants throughout the library.
|
26
|
-
* Allow Invoice and LineItem to auto-calculate line_amount, sub_total, total_tax and total fields. Existing setters for these fields remain (for backwards compatability) but will be deprecated in the future.
|
27
|
-
* Create XeroGateway::AccountList class to make working with the accounts response more powerful and faster (as it caches the last result).
|
28
|
-
* Add :updated_after parameter to XeroGateway::Gateway#get_contacts
|
29
|
-
* Add XeroGateway::Gateway#update_contacts
|
30
|
-
* Add XeroGateway::Gateway#create_invoices
|
31
|
-
|
32
|
-
h2. 1.0.3, released 09/12/2008
|
33
|
-
|
34
|
-
* Major refactorings to DRY out gateway.rb
|
35
|
-
* Removed all messages classes in favour of invoice.to_xml and Invoice.from_xml(element)
|
36
|
-
* Added unit tests for the handing of errors from Xero
|
37
|
-
|
38
|
-
h2. 1.0.2, released 04/12/2008
|
39
|
-
|
40
|
-
* Added implementation of GET /api.xro/1.0/tracking
|
41
|
-
|
42
|
-
|
43
|
-
h2. 1.0.1, released 02/12/2008
|
44
|
-
|
45
|
-
* Added implementation of GET /api.xro/1.0/accounts
|
46
|
-
* Replaced Invoice.id, Contact.id etc with Invoice.invoice_id, Contact.contact_id to avoid Object.id errors
|
47
|
-
|
48
|
-
|
49
|
-
h2. 1.0.0, released 01/12/2008
|
50
|
-
|
51
|
-
* Initial release, including:
|
52
|
-
* PUT /api.xro/1.0/contact
|
53
|
-
* GET /api.xro/1.0/contact
|
54
|
-
* GET /api.xro/1.0/contacts
|
55
|
-
* PUT /api.xro/1.0/invoice
|
56
|
-
* GET /api.xro/1.0/invoice
|
57
|
-
* GET /api.xro/1.0/invoices
|
@@ -1 +0,0 @@
|
|
1
|
-
<?xml version="1.0"?><Response xmlns:i="http://www.w3.org/2001/XMLSchema-instance"><ID>cf37ba46-29a7-4824-ad63-43482463afed</ID><Status>OK</Status><ProviderName>YOUR PROVIDER</ProviderName><DateTimeUTC>2008-12-01T08:39:54.70175Z</DateTimeUTC><Accounts><Account><Code>200</Code><Name>Sales</Name><Type>REVENUE</Type><TaxType>OUTPUT</TaxType><Description>Income from any normal business activity</Description></Account><Account><Code>260</Code><Name>Other Revenue</Name><Type>REVENUE</Type><TaxType>OUTPUT</TaxType><Description>Any other income that does not relate to normal business activities and is not recurring</Description></Account><Account><Code>270</Code><Name>Interest Income</Name><Type>REVENUE</Type><TaxType>NONE</TaxType><Description>Gross interest income (i.e. before deducting Residential Withholding Tax), such as bank interest</Description></Account><Account><Code>400</Code><Name>Advertising</Name><Type>OVERHEADS</Type><TaxType>INPUT</TaxType><Description>Expenses incurred for advertising while trying to increase sales</Description></Account><Account><Code>404</Code><Name>Bank Fees</Name><Type>OVERHEADS</Type><TaxType>NONE</TaxType><Description>Fees charged by your bank for transactions regarding your bank account(s).</Description></Account><Account><Code>408</Code><Name>Cleaning</Name><Type>OVERHEADS</Type><TaxType>INPUT</TaxType><Description>Expenses incurred for cleaning business property.</Description></Account><Account><Code>412</Code><Name>Consulting & Accounting</Name><Type>OVERHEADS</Type><TaxType>INPUT</TaxType><Description>Expenses related to paying consultants</Description></Account><Account><Code>416</Code><Name>Depreciation</Name><Type>OVERHEADS</Type><TaxType>NONE</TaxType><Description>The amount of the asset's cost (based on the useful life) that was consumed during the period</Description></Account><Account><Code>420</Code><Name>Entertainment</Name><Type>OVERHEADS</Type><TaxType>INPUT</TaxType><Description>50% of the total expense relating to business-related entertainment. E.g. shouting clients or employees a drink or a meal etc.</Description></Account><Account><Code>424</Code><Name>Entertainment - Non deductible</Name><Type>OVERHEADS</Type><TaxType>NONE</TaxType><Description>Expenses paid by company for the business but are not deductable for income tax purposes.</Description></Account><Account><Code>425</Code><Name>Freight & Courier</Name><Type>OVERHEADS</Type><TaxType>INPUT</TaxType><Description>Expenses incurred on courier & freight costs</Description></Account><Account><Code>429</Code><Name>General Expenses</Name><Type>OVERHEADS</Type><TaxType>INPUT</TaxType><Description>General expenses related to the running of the business.</Description></Account><Account><Code>433</Code><Name>Insurance</Name><Type>OVERHEADS</Type><TaxType>INPUT</TaxType><Description>Expenses incurred for insuring the business' assets</Description></Account><Account><Code>437</Code><Name>Interest Expense</Name><Type>OVERHEADS</Type><TaxType>NONE</TaxType><Description>Any interest expenses paid to IRD, business bank accounts or credit card accounts.</Description></Account><Account><Code>441</Code><Name>Legal expenses</Name><Type>OVERHEADS</Type><TaxType>INPUT</TaxType><Description>Expenses incurred on any legal matters</Description></Account><Account><Code>445</Code><Name>Light, Power, Heating</Name><Type>OVERHEADS</Type><TaxType>INPUT</TaxType><Description>Expenses incurred for lighting, powering or heating the premises</Description></Account><Account><Code>449</Code><Name>Motor Vehicle Expenses</Name><Type>OVERHEADS</Type><TaxType>INPUT</TaxType><Description>Expenses incurred on the running of company motor vehicles</Description></Account><Account><Code>453</Code><Name>Office Expenses</Name><Type>OVERHEADS</Type><TaxType>INPUT</TaxType><Description>General expenses related to the running of the business office.</Description></Account><Account><Code>461</Code><Name>Printing & Stationery</Name><Type>OVERHEADS</Type><TaxType>INPUT</TaxType><Description>Expenses incurred by the entity as a result of printing and stationery</Description></Account><Account><Code>469</Code><Name>Rent</Name><Type>OVERHEADS</Type><TaxType>INPUT</TaxType><Description>The payment to lease a building or area.</Description></Account><Account><Code>473</Code><Name>Repairs and Maintenance</Name><Type>OVERHEADS</Type><TaxType>INPUT</TaxType><Description>Expenses incurred on a damaged or run down asset that will bring the asset back to its original condition.</Description></Account><Account><Code>477</Code><Name>Salaries</Name><Type>OVERHEADS</Type><TaxType>NONE</TaxType><Description>Payment to employees in exchange for their resources</Description></Account><Account><Code>478</Code><Name>KiwiSaver Employer Contributions</Name><Type>OVERHEADS</Type><TaxType>NONE</TaxType><Description>KiwiSaver employer contributions</Description></Account><Account><Code>485</Code><Name>Subscriptions</Name><Type>OVERHEADS</Type><TaxType>INPUT</TaxType><Description>E.g. Magazines, professional bodies.</Description></Account><Account><Code>489</Code><Name>Telephone & Internet</Name><Type>OVERHEADS</Type><TaxType>INPUT</TaxType><Description>Expenditure incurred from any business-related phone calls, phone lines, or internet connections</Description></Account><Account><Code>493</Code><Name>Travel - National</Name><Type>OVERHEADS</Type><TaxType>INPUT</TaxType><Description>Expenses incurred from domestic travel which has a business purpose</Description></Account><Account><Code>494</Code><Name>Travel - International</Name><Type>OVERHEADS</Type><TaxType>NONE</TaxType><Description>Expenses incurred from international travel which has a business purpose</Description></Account><Account><Code>505</Code><Name>Income Tax Expense</Name><Type>EXPENSE</Type><TaxType>NONE</TaxType><Description>A percentage of total earnings paid to the government.</Description></Account><Account><Code>610</Code><Name>Accounts Receivable</Name><Type>CURRENT</Type><TaxType>NONE</TaxType><Description>Outstanding invoices the company has issued out to the client but has not yet received in cash at balance date.</Description></Account><Account><Code>611</Code><Name>less Provision for Doubtful Debts</Name><Type>CURRENT</Type><TaxType>NONE</TaxType><Description>A provision anticipating that some of the accounts receivables will become bad debts.</Description></Account><Account><Code>620</Code><Name>Prepayments</Name><Type>CURRENT</Type><TaxType>NONE</TaxType><Description>An expenditure that has been paid for in advance.</Description></Account><Account><Code>625</Code><Name>Withholding tax paid</Name><Type>CURRENT</Type><TaxType>NONE</TaxType><Description>Withholding tax paid</Description></Account><Account><Code>710</Code><Name>Office Equipment</Name><Type>FIXED</Type><TaxType>INPUT</TaxType><Description>Office equipment that is owned and controlled by the business</Description></Account><Account><Code>711</Code><Name>Less Accumulated Depreciation on Office Equipment</Name><Type>FIXED</Type><TaxType>NONE</TaxType><Description>The total amount of office equipment cost that has been consumed by the entity (based on the useful life)</Description></Account><Account><Code>720</Code><Name>Computer Equipment</Name><Type>FIXED</Type><TaxType>INPUT</TaxType><Description>Computer equipment that is owned and controlled by the business</Description></Account><Account><Code>721</Code><Name>Less Accumulated Depreciation on Computer Equipment</Name><Type>FIXED</Type><TaxType>NONE</TaxType><Description>The total amount of computer equipment cost that has been consumed by the business (based on the useful life)</Description></Account><Account><Code>800</Code><Name>Accounts Payable</Name><Type>CURRLIAB</Type><TaxType>NONE</TaxType><Description>Outstanding invoices the company has received from suppliers but has not yet paid at balance date</Description></Account><Account><Code>801</Code><Name>Unpaid Expense Claims</Name><Type>CURRLIAB</Type><TaxType>NONE</TaxType><Description>Expense claims typically made by employees/shareholder employees still outstanding.</Description></Account><Account><Code>820</Code><Name>GST</Name><Type>CURRLIAB</Type><TaxType>NONE</TaxType><Description>The balance in this account represents GST owing to or from the IRD. At the end of the GST period, it is this account that should be used to code against either the 'refunds from' or 'payments to' the IRD that will appear on the bank statement. Xero has been designed to use only one GST account to track GST on income and expenses, so there is no need to add any new GST accounts to Xero.</Description></Account><Account><Code>821</Code><Name>GST On Imports</Name><Type>CURRLIAB</Type><TaxType>NONE</TaxType><Description>GST paid to customs.</Description></Account><Account><Code>825</Code><Name>PAYE Payable</Name><Type>CURRLIAB</Type><TaxType>NONE</TaxType><Description>The amount of PAYE tax that is due to be paid</Description></Account><Account><Code>830</Code><Name>Income Tax</Name><Type>CURRLIAB</Type><TaxType>NONE</TaxType><Description>The amount of income tax that is due to be paid, also resident withholding tax paid on interest received.</Description></Account><Account><Code>840</Code><Name>Historical Adjustment</Name><Type>CURRLIAB</Type><TaxType>NONE</TaxType><Description>For accountant adjustments</Description></Account><Account><Code>850</Code><Name>Suspense</Name><Type>CURRLIAB</Type><TaxType>NONE</TaxType><Description>An entry that allows an unknown transaction to be entered, so the accounts can still be worked on in balance and the entry can be dealt with later.</Description></Account><Account><Code>860</Code><Name>Rounding</Name><Type>CURRLIAB</Type><TaxType>NONE</TaxType><Description>An adjustment entry to allow for rounding</Description></Account><Account><Code>877</Code><Name>Tracking Transfers</Name><Type>CURRLIAB</Type><TaxType>NONE</TaxType><Description>Transfers between tracking categories</Description></Account><Account><Code>900</Code><Name>Loan</Name><Type>TERMLIAB</Type><TaxType>NONE</TaxType><Description>Money that has been borrowed from a creditor</Description></Account><Account><Code>960</Code><Name>Retained Earnings</Name><Type>EQUITY</Type><TaxType>NONE</TaxType><Description>Do not Use</Description></Account><Account><Code>970</Code><Name>Owner A Funds Introduced</Name><Type>EQUITY</Type><TaxType>NONE</TaxType><Description>Funds contributed by the owner</Description></Account><Account><Code>980</Code><Name>Owner A Drawings</Name><Type>EQUITY</Type><TaxType>NONE</TaxType><Description>Withdrawals by the owners</Description></Account></Accounts></Response>
|
@@ -1,153 +0,0 @@
|
|
1
|
-
<?xml version="1.0" encoding="utf-16"?>
|
2
|
-
<ApiException xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
|
3
|
-
<ErrorNumber>10</ErrorNumber>
|
4
|
-
<Type>ValidationException</Type>
|
5
|
-
<Message>A validation exception occurred</Message>
|
6
|
-
<Elements>
|
7
|
-
<DataContractBase xsi:type="Invoice">
|
8
|
-
<ValidationErrors>
|
9
|
-
<ValidationError>
|
10
|
-
<Message>Users Organisation is not subscribed to currency NZD</Message>
|
11
|
-
</ValidationError>
|
12
|
-
</ValidationErrors>
|
13
|
-
<Warnings />
|
14
|
-
<Reference>Ref:SMITHK</Reference>
|
15
|
-
<Type>ACCREC</Type>
|
16
|
-
<Contact>
|
17
|
-
<ValidationErrors />
|
18
|
-
<Warnings />
|
19
|
-
<ContactID>00000000-0000-0000-0000-000000000000</ContactID>
|
20
|
-
<ContactNumber>0006841301</ContactNumber>
|
21
|
-
<ContactStatus>ACTIVE</ContactStatus>
|
22
|
-
<Name>Ariki Properties</Name>
|
23
|
-
<FirstName>Simon</FirstName>
|
24
|
-
<LastName>Greenville</LastName>
|
25
|
-
<EmailAddress>emailaddress@yourdomain.com</EmailAddress>
|
26
|
-
<SkypeUserName>Skype Name/Number</SkypeUserName>
|
27
|
-
<BankAccountDetails>Bank Account Details</BankAccountDetails>
|
28
|
-
<TaxNumber>Tax ID Number</TaxNumber>
|
29
|
-
<AccountsPayableTaxType>INPUT</AccountsPayableTaxType>
|
30
|
-
<Addresses>
|
31
|
-
<Address>
|
32
|
-
<ValidationErrors />
|
33
|
-
<Warnings />
|
34
|
-
<AddressType>STREET</AddressType>
|
35
|
-
<AddressLine1>Level 71</AddressLine1>
|
36
|
-
<AddressLine2>30 Rockefeller plaza</AddressLine2>
|
37
|
-
<AddressLine3 />
|
38
|
-
<AddressLine4 />
|
39
|
-
<City>New York</City>
|
40
|
-
<Region>New York State</Region>
|
41
|
-
<PostalCode>10112</PostalCode>
|
42
|
-
<Country>USA</Country>
|
43
|
-
<AttentionTo>Simon G.</AttentionTo>
|
44
|
-
</Address>
|
45
|
-
<Address>
|
46
|
-
<ValidationErrors />
|
47
|
-
<Warnings />
|
48
|
-
<AddressType>POBOX</AddressType>
|
49
|
-
<AddressLine1>PO Box 10112</AddressLine1>
|
50
|
-
<AddressLine2 />
|
51
|
-
<AddressLine3 />
|
52
|
-
<AddressLine4 />
|
53
|
-
<City>New York</City>
|
54
|
-
<Region>New York State</Region>
|
55
|
-
<PostalCode>10112</PostalCode>
|
56
|
-
<Country>USA</Country>
|
57
|
-
<AttentionTo>Simon G.</AttentionTo>
|
58
|
-
</Address>
|
59
|
-
</Addresses>
|
60
|
-
<Phones>
|
61
|
-
<Phone>
|
62
|
-
<ValidationErrors />
|
63
|
-
<Warnings />
|
64
|
-
<PhoneType>DEFAULT</PhoneType>
|
65
|
-
<PhoneNumber>5996999</PhoneNumber>
|
66
|
-
<PhoneAreaCode>877</PhoneAreaCode>
|
67
|
-
<PhoneCountryCode>0001</PhoneCountryCode>
|
68
|
-
</Phone>
|
69
|
-
<Phone>
|
70
|
-
<ValidationErrors />
|
71
|
-
<Warnings />
|
72
|
-
<PhoneType>DDI</PhoneType>
|
73
|
-
<PhoneNumber>1234567</PhoneNumber>
|
74
|
-
<PhoneAreaCode>877</PhoneAreaCode>
|
75
|
-
<PhoneCountryCode>0001</PhoneCountryCode>
|
76
|
-
</Phone>
|
77
|
-
<Phone>
|
78
|
-
<ValidationErrors />
|
79
|
-
<Warnings />
|
80
|
-
<PhoneType>FAX</PhoneType>
|
81
|
-
<PhoneNumber>7654321</PhoneNumber>
|
82
|
-
<PhoneAreaCode>877</PhoneAreaCode>
|
83
|
-
<PhoneCountryCode>0001</PhoneCountryCode>
|
84
|
-
</Phone>
|
85
|
-
<Phone>
|
86
|
-
<ValidationErrors />
|
87
|
-
<Warnings />
|
88
|
-
<PhoneType>MOBILE</PhoneType>
|
89
|
-
<PhoneNumber>5555555</PhoneNumber>
|
90
|
-
<PhoneAreaCode>877</PhoneAreaCode>
|
91
|
-
<PhoneCountryCode>0001</PhoneCountryCode>
|
92
|
-
</Phone>
|
93
|
-
</Phones>
|
94
|
-
<UpdatedDateUTC xsi:nil="true" />
|
95
|
-
<ContactGroups />
|
96
|
-
<IsSupplier xsi:nil="true" />
|
97
|
-
<IsCustomer xsi:nil="true" />
|
98
|
-
<DefaultCurrency>USD</DefaultCurrency>
|
99
|
-
</Contact>
|
100
|
-
<Date>2009-09-08T00:00:00</Date>
|
101
|
-
<DueDate>2009-10-20T00:00:00</DueDate>
|
102
|
-
<Status>SUBMITTED</Status>
|
103
|
-
<LineAmountTypes>Inclusive</LineAmountTypes>
|
104
|
-
<LineItems>
|
105
|
-
<LineItem>
|
106
|
-
<ValidationErrors />
|
107
|
-
<Warnings />
|
108
|
-
<Description>3 copies of OS X 10.6 Snow Leopard</Description>
|
109
|
-
<Quantity>3.0000</Quantity>
|
110
|
-
<UnitAmount>59.00</UnitAmount>
|
111
|
-
<TaxType>OUTPUT</TaxType>
|
112
|
-
<TaxAmount>19.67</TaxAmount>
|
113
|
-
<LineAmount>177.00</LineAmount>
|
114
|
-
<AccountCode>200</AccountCode>
|
115
|
-
<Tracking>
|
116
|
-
<TrackingCategory>
|
117
|
-
<ValidationErrors />
|
118
|
-
<Warnings />
|
119
|
-
<TrackingCategoryID>e2f2f732-e92a-4f3a-9c4d-ee4da0182a13</TrackingCategoryID>
|
120
|
-
<Name>Region</Name>
|
121
|
-
<Option>North</Option>
|
122
|
-
<Options />
|
123
|
-
</TrackingCategory>
|
124
|
-
</Tracking>
|
125
|
-
</LineItem>
|
126
|
-
<LineItem>
|
127
|
-
<ValidationErrors />
|
128
|
-
<Warnings />
|
129
|
-
<Description>Returned Apple Keyboard with Numeric Keypad (faulty)</Description>
|
130
|
-
<Quantity>1.0000</Quantity>
|
131
|
-
<UnitAmount>-79.00</UnitAmount>
|
132
|
-
<TaxType>OUTPUT</TaxType>
|
133
|
-
<TaxAmount>-8.78</TaxAmount>
|
134
|
-
<LineAmount>-79.00</LineAmount>
|
135
|
-
<AccountCode>200</AccountCode>
|
136
|
-
<Tracking />
|
137
|
-
</LineItem>
|
138
|
-
</LineItems>
|
139
|
-
<SubTotal>87.11</SubTotal>
|
140
|
-
<TotalTax>10.90</TotalTax>
|
141
|
-
<Total>98.00</Total>
|
142
|
-
<UpdatedDateUTC xsi:nil="true" />
|
143
|
-
<CurrencyCode>NZD</CurrencyCode>
|
144
|
-
<FullyPaidOnDate xsi:nil="true" />
|
145
|
-
<InvoiceID>00000000-0000-0000-0000-000000000000</InvoiceID>
|
146
|
-
<InvoiceNumber>OIT:01065</InvoiceNumber>
|
147
|
-
<Payments />
|
148
|
-
<AmountDue xsi:nil="true" />
|
149
|
-
<AmountPaid xsi:nil="true" />
|
150
|
-
<AmountCredited xsi:nil="true" />
|
151
|
-
</DataContractBase>
|
152
|
-
</Elements>
|
153
|
-
</ApiException>
|
@@ -1 +0,0 @@
|
|
1
|
-
<?xml version="1.0"?><Response xmlns:i="http://www.w3.org/2001/XMLSchema-instance"><ID>a99a9aaa-9999-99a9-9aa9-aaaaaa9a9999</ID><Status>OK</Status><ProviderName>YOUR PROVIDER</ProviderName><DateTimeUTC>2008-10-09T02:40:54.3997437Z</DateTimeUTC><Contact><ContactID>e8d9ecd8-c17a-49c4-a445-708875ccb042</ContactID><ContactNumber>12345</ContactNumber><Name>CONTACT NAME</Name><EmailAddress>bob@example.com</EmailAddress><Addresses><Address><AddressType>DEFAULT</AddressType><AddressLine1>LINE 1 OF THE ADDRESS</AddressLine1><AddressLine2>LINE 2 OF THE ADDRESS</AddressLine2><AddressLine3>LINE 3 OF THE ADDRESS</AddressLine3><AddressLine4>LINE 4 OF THE ADDRESS</AddressLine4><City>WELLINGTON</City><Region>WELLINGTON</Region><PostalCode>6021</PostalCode><Country>NEW ZEALAND</Country></Address></Addresses><Phones><Phone><PhoneType>DEFAULT</PhoneType><PhoneNumber>12345</PhoneNumber></Phone></Phones></Contact></Response>
|