xeroizer 0.2.2 → 0.3.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (115) hide show
  1. data/VERSION +1 -1
  2. data/lib/xeroizer/exceptions.rb +13 -0
  3. data/lib/xeroizer/generic_application.rb +1 -0
  4. data/lib/xeroizer/models/credit_note.rb +1 -0
  5. data/lib/xeroizer/models/employee.rb +28 -0
  6. data/lib/xeroizer/models/external_link.rb +16 -0
  7. data/lib/xeroizer/models/invoice.rb +2 -0
  8. data/lib/xeroizer/models/organisation.rb +13 -7
  9. data/lib/xeroizer/models/payment.rb +1 -1
  10. data/lib/xeroizer/models/tracking_category_child.rb +4 -1
  11. data/lib/xeroizer/record/base.rb +2 -2
  12. data/lib/xeroizer/record/base_model.rb +21 -3
  13. data/lib/xeroizer/record/model_definition_helper.rb +6 -2
  14. data/lib/xeroizer/record/record_association_helper.rb +42 -4
  15. data/lib/xeroizer/record/xml_helper.rb +3 -2
  16. data/lib/xeroizer/report/factory.rb +3 -2
  17. data/lib/xeroizer/response.rb +1 -1
  18. data/lib/xeroizer.rb +1 -0
  19. data/test/stub_responses/contacts.xml +0 -3349
  20. data/test/stub_responses/credit_note.xml +37 -31
  21. data/test/stub_responses/credit_notes.xml +54 -34
  22. data/test/stub_responses/employees.xml +29 -0
  23. data/test/stub_responses/invoice.xml +44 -51
  24. data/test/stub_responses/invoices.xml +1180 -1055
  25. data/test/stub_responses/organisation.xml +10 -1
  26. data/test/stub_responses/organisations.xml +13 -4
  27. data/test/stub_responses/payments.xml +1121 -0
  28. data/test/stub_responses/records/credit_note-371cd138-1e5c-4ec1-a8c6-a1c10e8bdab1.xml +13 -9
  29. data/test/stub_responses/records/credit_note-3bffc09b-79f2-490d-b91b-c59b700b43a4.xml +13 -9
  30. data/test/stub_responses/records/credit_note-43c678ee-f357-48e2-b192-b6e3634762f9.xml +13 -9
  31. data/test/stub_responses/records/credit_note-482c018b-d329-4e05-9b4f-7a4cfc695aa0.xml +13 -9
  32. data/test/stub_responses/records/credit_note-4f67130a-749a-4ee6-98b2-743adbc11245.xml +11 -9
  33. data/test/stub_responses/records/credit_note-50e98404-2fba-4031-af67-8ba4bb227c44.xml +12 -9
  34. data/test/stub_responses/records/credit_note-7df8949c-b71f-40c0-bbcf-39f2f450f286.xml +11 -9
  35. data/test/stub_responses/records/credit_note-b356e488-2678-4be4-ad4b-d294df2d48d6.xml +9 -7
  36. data/test/stub_responses/records/invoice-0032f627-3156-4d30-9b1c-4d3b994dc921.xml +13 -11
  37. data/test/stub_responses/records/invoice-00c9511b-24b9-4190-a90a-8abf2fe9f4a0.xml +13 -11
  38. data/test/stub_responses/records/invoice-024d7994-a26c-4c20-9894-13934840fc31.xml +12 -11
  39. data/test/stub_responses/records/invoice-0e64a623-c2a1-446a-93ed-eb897f118cbc.xml +9 -8
  40. data/test/stub_responses/records/invoice-15e88e57-2554-4496-a18e-eb3f5c622345.xml +13 -11
  41. data/test/stub_responses/records/invoice-166f0588-d0ba-458c-b28a-8edd4c8fc463.xml +13 -11
  42. data/test/stub_responses/records/invoice-1d1ba340-afa2-4f4c-8ff7-a147bda9a47b.xml +13 -11
  43. data/test/stub_responses/records/invoice-290ef4c4-baec-492b-b4dd-c102826470ae.xml +13 -11
  44. data/test/stub_responses/records/invoice-30a87092-31b5-4a2c-831e-327486533dd2.xml +10 -8
  45. data/test/stub_responses/records/invoice-30dbd181-72a8-43df-b392-4241bf43d5fc.xml +22 -11
  46. data/test/stub_responses/records/invoice-33e4123e-7cdd-4f05-9a0a-eb8adeb2b868.xml +13 -11
  47. data/test/stub_responses/records/invoice-387db692-26ac-47e6-b6cc-015343809bda.xml +13 -11
  48. data/test/stub_responses/records/invoice-3b28bf11-ed2f-4cf4-8e9e-fcae730cc292.xml +13 -11
  49. data/test/stub_responses/records/invoice-3fcb9847-b350-412e-ab90-7d9d774ad881.xml +13 -11
  50. data/test/stub_responses/records/invoice-440613e4-4785-4eff-9ba1-c432816cf8c7.xml +78 -0
  51. data/test/stub_responses/records/invoice-4602eda6-abe9-448e-b65f-ae6bea21f0eb.xml +10 -8
  52. data/test/stub_responses/records/invoice-46441f63-873f-4cdc-a278-b8fe516f3abb.xml +11 -8
  53. data/test/stub_responses/records/invoice-4ad1ec01-f4a3-41d7-bbb4-d2ab2fec8e65.xml +12 -11
  54. data/test/stub_responses/records/invoice-4b9afceb-f7c7-4e64-8aac-7b009971fd52.xml +13 -11
  55. data/test/stub_responses/records/invoice-4edbf6d5-4e92-43af-bedd-7effc0b86833.xml +10 -8
  56. data/test/stub_responses/records/invoice-4fad1af2-b871-4ac5-a15a-3c5e32d2e2c4.xml +19 -9
  57. data/test/stub_responses/records/invoice-52ee4d67-cae4-462c-adb2-182c39017f3d.xml +13 -11
  58. data/test/stub_responses/records/invoice-54585f46-c1a0-4432-bd4f-c1fae2fba59b.xml +9 -8
  59. data/test/stub_responses/records/invoice-5613938b-9e27-472e-92ae-3b038b669d10.xml +13 -11
  60. data/test/stub_responses/records/invoice-5aa9451d-95d1-4f95-a966-bbab2573f71c.xml +10 -8
  61. data/test/stub_responses/records/invoice-5aadcd34-01a9-4b8d-a2bb-d7cc1de9fa45.xml +13 -11
  62. data/test/stub_responses/records/invoice-5f6deadf-36a2-495a-9980-ceb11e8af9a9.xml +10 -8
  63. data/test/stub_responses/records/invoice-625ffe1b-f5d8-438e-a376-981de5f5a733.xml +13 -11
  64. data/test/stub_responses/records/invoice-64cd559e-8e03-46af-b461-8555285cee71.xml +10 -8
  65. data/test/stub_responses/records/invoice-66fbe37f-49b1-43fd-97ed-85114022cd2f.xml +10 -8
  66. data/test/stub_responses/records/invoice-673dd7cc-beb7-4697-83d4-0c47cb400cc2.xml +21 -11
  67. data/test/stub_responses/records/invoice-69fc971e-9b37-41c5-9c87-174330f22343.xml +9 -8
  68. data/test/stub_responses/records/invoice-70e6db69-e5a4-42c7-a397-aa3212c2945f.xml +10 -8
  69. data/test/stub_responses/records/invoice-766d1289-b440-4675-a656-1a0612ecac77.xml +13 -11
  70. data/test/stub_responses/records/invoice-76bcb361-f93b-4513-b312-5a4af306d276.xml +9 -8
  71. data/test/stub_responses/records/invoice-76e3f056-479f-417c-a72b-f3d767899b87.xml +13 -11
  72. data/test/stub_responses/records/invoice-77b338ef-ecc0-4b95-a0d7-2617b0054611.xml +21 -10
  73. data/test/stub_responses/records/invoice-7be9956d-5316-4f6b-a66a-d355b3f159b2.xml +13 -11
  74. data/test/stub_responses/records/invoice-7dae876a-b424-436b-a4e6-17b3fdeec80c.xml +20 -11
  75. data/test/stub_responses/records/invoice-7e862d93-8dab-4856-8b0c-d844e09d750f.xml +10 -8
  76. data/test/stub_responses/records/invoice-803f70b0-56d9-4157-9787-41df271777a0.xml +13 -11
  77. data/test/stub_responses/records/invoice-86102312-aa3f-438c-9938-6840f4d8dda6.xml +12 -11
  78. data/test/stub_responses/records/invoice-8694c9c5-7097-4449-a708-b8c1982921a4.xml +9 -8
  79. data/test/stub_responses/records/invoice-86d6e00f-ef56-49f7-9a54-796ccd5ca057.xml +10 -8
  80. data/test/stub_responses/records/invoice-88e77f0f-54a5-4efc-a979-7e22223cc4d7.xml +9 -8
  81. data/test/stub_responses/records/invoice-8b0ccb6a-d9b7-4da5-8360-ef7fb157b5aa.xml +9 -8
  82. data/test/stub_responses/records/invoice-935fc854-8037-4111-8d91-993010c331cc.xml +12 -11
  83. data/test/stub_responses/records/invoice-962ef33f-c9d2-4602-9b9f-93a02bea23b3.xml +13 -10
  84. data/test/stub_responses/records/invoice-9868b472-1983-48e9-8edf-7e81ddf2c03a.xml +10 -8
  85. data/test/stub_responses/records/invoice-a3bc62ef-f11b-4a9c-a4f9-a342bda371b5.xml +9 -8
  86. data/test/stub_responses/records/invoice-a6894ca0-60ee-4d45-9dd4-b44fcba46ec5.xml +13 -11
  87. data/test/stub_responses/records/invoice-a77268ce-74b2-483d-a2b3-70dbdc9e49d2.xml +78 -0
  88. data/test/stub_responses/records/invoice-a9f765e6-b9bc-4505-a47b-fb3ecb327e7b.xml +14 -11
  89. data/test/stub_responses/records/invoice-aa0173af-8707-4e7f-8dde-4c7a357bd312.xml +30 -13
  90. data/test/stub_responses/records/invoice-ab63738a-370a-43a5-bfa3-620d684e66d0.xml +10 -8
  91. data/test/stub_responses/records/invoice-b0344791-5a8a-40dd-a208-d99a461a6c10.xml +13 -11
  92. data/test/stub_responses/records/invoice-b1e53910-473c-46a3-b3cb-38ece571220e.xml +21 -11
  93. data/test/stub_responses/records/invoice-b2c02d0b-41a8-4d4d-97d7-014c78b3547d.xml +13 -11
  94. data/test/stub_responses/records/invoice-b75b3928-ab72-4424-8b93-9cdbbde4cd72.xml +19 -9
  95. data/test/stub_responses/records/invoice-bcd8a71f-aa31-4d0f-8a01-13ea26363ddf.xml +13 -11
  96. data/test/stub_responses/records/invoice-bfbb7c45-de02-45e7-b065-d9863ecfb0d8.xml +9 -8
  97. data/test/stub_responses/records/invoice-c12aff7e-12bf-4185-8702-460929f19674.xml +9 -8
  98. data/test/stub_responses/records/invoice-c3380b96-976d-4b3e-8b26-8d01eb6a3742.xml +13 -11
  99. data/test/stub_responses/records/invoice-c963f2b0-cbe1-4abd-9ccc-7e512c942068.xml +9 -8
  100. data/test/stub_responses/records/invoice-cba46b29-3788-4158-b668-ab10160ccbfe.xml +78 -0
  101. data/test/stub_responses/records/invoice-dba2f021-f149-4191-a126-5351d587ab0e.xml +12 -11
  102. data/test/stub_responses/records/invoice-de5d9c29-21b3-4342-958b-ed72c4bd7ab0.xml +13 -11
  103. data/test/stub_responses/records/invoice-e3d96555-2876-4364-a46a-7551a4f52611.xml +15 -11
  104. data/test/stub_responses/records/invoice-e4a0afbd-aea0-450b-ae23-0ce921e84a77.xml +11 -8
  105. data/test/stub_responses/records/invoice-e9cb9ecb-58ef-43a8-bd20-69a85338142d.xml +13 -11
  106. data/test/stub_responses/records/invoice-ec9a6f67-7128-4a63-8ba3-5e516f455f9b.xml +13 -11
  107. data/test/stub_responses/records/invoice-ed0f2587-84fc-4aef-bc4b-b1a262e24484.xml +14 -11
  108. data/test/stub_responses/records/invoice-f362ca53-8ade-4047-865a-bb64bee5863d.xml +12 -11
  109. data/test/stub_responses/records/invoice-f571c38b-5be1-41e1-ad5a-ff6184284beb.xml +21 -11
  110. data/test/stub_responses/records/invoice-f5832195-5cd3-4660-ad3f-b73d9c64f263.xml +10 -8
  111. data/test/stub_responses/records/invoice-f9c857eb-64cd-4235-a078-d04b52c77ea7.xml +13 -11
  112. data/test/stub_responses/refresh_responses.rb +1 -1
  113. data/test/unit/record/record_association_test.rb +33 -0
  114. data/xeroizer.gemspec +9 -2
  115. metadata +11 -4
@@ -1,8 +1,8 @@
1
- <Response xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
2
- <Id>44386555-aab4-4817-ba3a-f81d67e03a23</Id>
1
+ <Response xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
2
+ <Id>19ae2280-0a74-42c6-baa8-d2406d2803eb</Id>
3
3
  <Status>OK</Status>
4
- <ProviderName>Test Provider Name</ProviderName>
5
- <DateTimeUTC>2010-12-21T01:02:22.9591027Z</DateTimeUTC>
4
+ <ProviderName>Demo AU</ProviderName>
5
+ <DateTimeUTC>2011-05-31T01:33:26.4205364Z</DateTimeUTC>
6
6
  <Invoices>
7
7
  <Invoice>
8
8
  <Contact>
@@ -31,13 +31,13 @@
31
31
  <PhoneType>FAX</PhoneType>
32
32
  </Phone>
33
33
  </Phones>
34
- <UpdatedDateUTC>2010-12-09T19:47:09.557</UpdatedDateUTC>
34
+ <UpdatedDateUTC>2011-05-19T19:47:09.557</UpdatedDateUTC>
35
35
  <IsSupplier>true</IsSupplier>
36
36
  <IsCustomer>false</IsCustomer>
37
37
  </Contact>
38
- <Date>2010-12-09T00:00:00</Date>
39
- <DueDate>2010-12-17T00:00:00</DueDate>
40
- <Status>AUTHORISED</Status>
38
+ <Date>2011-05-19T00:00:00</Date>
39
+ <DueDate>2011-05-27T00:00:00</DueDate>
40
+ <Status>PAID</Status>
41
41
  <LineAmountTypes>Exclusive</LineAmountTypes>
42
42
  <LineItems>
43
43
  <LineItem>
@@ -53,14 +53,24 @@
53
53
  <SubTotal>120.00</SubTotal>
54
54
  <TotalTax>12.00</TotalTax>
55
55
  <Total>132.00</Total>
56
- <UpdatedDateUTC>2010-12-10T05:47:09.59</UpdatedDateUTC>
56
+ <UpdatedDateUTC>2011-05-23T02:27:02.573</UpdatedDateUTC>
57
57
  <CurrencyCode>AUD</CurrencyCode>
58
+ <FullyPaidOnDate>2011-05-23T00:00:00</FullyPaidOnDate>
58
59
  <Type>ACCPAY</Type>
59
60
  <InvoiceID>b1e53910-473c-46a3-b3cb-38ece571220e</InvoiceID>
60
61
  <InvoiceNumber>Sub</InvoiceNumber>
61
- <AmountDue>132.00</AmountDue>
62
- <AmountPaid>0.00</AmountPaid>
62
+ <Payments>
63
+ <Payment>
64
+ <PaymentID>6838ffb2-7b51-45b0-8060-24c1356f3c09</PaymentID>
65
+ <Date>2011-05-23T00:00:00</Date>
66
+ <Amount>132.00</Amount>
67
+ <CurrencyRate>1.000000</CurrencyRate>
68
+ </Payment>
69
+ </Payments>
70
+ <AmountDue>0.00</AmountDue>
71
+ <AmountPaid>132.00</AmountPaid>
63
72
  <AmountCredited>0.00</AmountCredited>
73
+ <SentToContact>false</SentToContact>
64
74
  </Invoice>
65
75
  </Invoices>
66
76
  </Response>
@@ -1,8 +1,8 @@
1
- <Response xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
2
- <Id>22ce586f-4ae0-461d-b3bf-ae7144296554</Id>
1
+ <Response xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
2
+ <Id>45590685-0c72-4e5a-8d39-d82e3fedc010</Id>
3
3
  <Status>OK</Status>
4
- <ProviderName>Test Provider Name</ProviderName>
5
- <DateTimeUTC>2010-12-21T01:01:44.1768599Z</DateTimeUTC>
4
+ <ProviderName>Demo AU</ProviderName>
5
+ <DateTimeUTC>2011-05-31T01:31:15.758433Z</DateTimeUTC>
6
6
  <Invoices>
7
7
  <Invoice>
8
8
  <Contact>
@@ -39,7 +39,7 @@
39
39
  <PhoneType>MOBILE</PhoneType>
40
40
  </Phone>
41
41
  </Phones>
42
- <UpdatedDateUTC>2010-12-09T19:28:52.123</UpdatedDateUTC>
42
+ <UpdatedDateUTC>2011-05-19T19:28:52.123</UpdatedDateUTC>
43
43
  <ContactGroups>
44
44
  <ContactGroup>
45
45
  <ContactGroupID>26fcca8d-a03b-4968-a80a-a463d5bf30ee</ContactGroupID>
@@ -50,8 +50,8 @@
50
50
  <IsSupplier>false</IsSupplier>
51
51
  <IsCustomer>true</IsCustomer>
52
52
  </Contact>
53
- <Date>2010-10-09T00:00:00</Date>
54
- <DueDate>2010-10-18T00:00:00</DueDate>
53
+ <Date>2011-03-19T00:00:00</Date>
54
+ <DueDate>2011-03-28T00:00:00</DueDate>
55
55
  <Status>PAID</Status>
56
56
  <LineAmountTypes>Exclusive</LineAmountTypes>
57
57
  <LineItems>
@@ -63,29 +63,31 @@ Per month fixed fee for minimum 20 hours/month.</Description>
63
63
  <TaxAmount>50.00</TaxAmount>
64
64
  <LineAmount>500.00</LineAmount>
65
65
  <AccountCode>200</AccountCode>
66
+ <ItemCode>Support-M</ItemCode>
66
67
  <Quantity>1.0000</Quantity>
67
68
  </LineItem>
68
69
  </LineItems>
69
70
  <SubTotal>500.00</SubTotal>
70
71
  <TotalTax>50.00</TotalTax>
71
72
  <Total>550.00</Total>
72
- <UpdatedDateUTC>2010-12-02T17:14:39.943</UpdatedDateUTC>
73
+ <UpdatedDateUTC>2008-09-24T17:14:39.943</UpdatedDateUTC>
73
74
  <CurrencyCode>AUD</CurrencyCode>
74
- <FullyPaidOnDate>2010-10-18T00:00:00</FullyPaidOnDate>
75
+ <FullyPaidOnDate>2011-03-28T00:00:00</FullyPaidOnDate>
75
76
  <Type>ACCREC</Type>
76
77
  <InvoiceID>b2c02d0b-41a8-4d4d-97d7-014c78b3547d</InvoiceID>
77
78
  <InvoiceNumber>ORC1016</InvoiceNumber>
78
79
  <Reference>Monthly support</Reference>
79
80
  <Payments>
80
81
  <Payment>
81
- <Date>2010-10-18T00:00:00</Date>
82
- <Amount>550.00</Amount>
83
82
  <PaymentID>26c6252a-2759-48a8-824c-e6589a292140</PaymentID>
83
+ <Date>2011-03-28T00:00:00</Date>
84
+ <Amount>550.00</Amount>
84
85
  </Payment>
85
86
  </Payments>
86
87
  <AmountDue>0.00</AmountDue>
87
88
  <AmountPaid>550.00</AmountPaid>
88
89
  <AmountCredited>0.00</AmountCredited>
90
+ <SentToContact>true</SentToContact>
89
91
  </Invoice>
90
92
  </Invoices>
91
93
  </Response>
@@ -1,8 +1,8 @@
1
- <Response xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
2
- <Id>18644fea-d402-401b-a1b4-702d33133034</Id>
1
+ <Response xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
2
+ <Id>ca49ad62-fff0-4f9d-b34b-85dbf01c4032</Id>
3
3
  <Status>OK</Status>
4
- <ProviderName>Test Provider Name</ProviderName>
5
- <DateTimeUTC>2010-12-21T01:05:17.3541921Z</DateTimeUTC>
4
+ <ProviderName>Demo AU</ProviderName>
5
+ <DateTimeUTC>2011-05-31T01:30:03.098928Z</DateTimeUTC>
6
6
  <Invoices>
7
7
  <Invoice>
8
8
  <Contact>
@@ -37,12 +37,12 @@
37
37
  <PhoneType>MOBILE</PhoneType>
38
38
  </Phone>
39
39
  </Phones>
40
- <UpdatedDateUTC>2010-11-24T21:11:54.647</UpdatedDateUTC>
40
+ <UpdatedDateUTC>2011-05-04T21:11:54.647</UpdatedDateUTC>
41
41
  <IsSupplier>false</IsSupplier>
42
42
  <IsCustomer>true</IsCustomer>
43
43
  </Contact>
44
- <Date>2010-09-22T00:00:00</Date>
45
- <DueDate>2010-10-02T00:00:00</DueDate>
44
+ <Date>2011-03-02T00:00:00</Date>
45
+ <DueDate>2011-03-12T00:00:00</DueDate>
46
46
  <Status>PAID</Status>
47
47
  <LineAmountTypes>Exclusive</LineAmountTypes>
48
48
  <LineItems>
@@ -60,21 +60,31 @@
60
60
  <TrackingCategoryID>093af706-c2aa-4d97-a4ce-2d205a017eac</TrackingCategoryID>
61
61
  </TrackingCategory>
62
62
  </Tracking>
63
+ <ItemCode>Train-MS</ItemCode>
63
64
  <Quantity>1.0000</Quantity>
64
65
  </LineItem>
65
66
  </LineItems>
66
67
  <SubTotal>500.00</SubTotal>
67
68
  <TotalTax>50.00</TotalTax>
68
69
  <Total>550.00</Total>
69
- <UpdatedDateUTC>2010-11-25T06:52:49.03</UpdatedDateUTC>
70
+ <UpdatedDateUTC>2008-09-17T06:52:49.03</UpdatedDateUTC>
70
71
  <CurrencyCode>AUD</CurrencyCode>
71
- <FullyPaidOnDate>2010-09-22T00:00:00</FullyPaidOnDate>
72
+ <FullyPaidOnDate>2011-03-02T00:00:00</FullyPaidOnDate>
72
73
  <Type>ACCREC</Type>
73
74
  <InvoiceID>b75b3928-ab72-4424-8b93-9cdbbde4cd72</InvoiceID>
74
75
  <InvoiceNumber>ORC1005</InvoiceNumber>
76
+ <CreditNotes>
77
+ <CreditNote>
78
+ <Date>2011-03-02T00:00:00</Date>
79
+ <Total>550.00</Total>
80
+ <CreditNoteID>50e98404-2fba-4031-af67-8ba4bb227c44</CreditNoteID>
81
+ <CreditNoteNumber>CR1005</CreditNoteNumber>
82
+ </CreditNote>
83
+ </CreditNotes>
75
84
  <AmountDue>0.00</AmountDue>
76
85
  <AmountPaid>0.00</AmountPaid>
77
86
  <AmountCredited>550.00</AmountCredited>
87
+ <SentToContact>false</SentToContact>
78
88
  </Invoice>
79
89
  </Invoices>
80
90
  </Response>
@@ -1,8 +1,8 @@
1
- <Response xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
2
- <Id>8ca6571d-959d-4491-87ca-290ff87d2090</Id>
1
+ <Response xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
2
+ <Id>deaa6a42-e2ff-4bf8-9d00-263cdb3967a2</Id>
3
3
  <Status>OK</Status>
4
- <ProviderName>Test Provider Name</ProviderName>
5
- <DateTimeUTC>2010-12-21T01:01:59.0522407Z</DateTimeUTC>
4
+ <ProviderName>Demo AU</ProviderName>
5
+ <DateTimeUTC>2011-05-31T01:32:31.8243406Z</DateTimeUTC>
6
6
  <Invoices>
7
7
  <Invoice>
8
8
  <Contact>
@@ -40,7 +40,7 @@
40
40
  <PhoneType>MOBILE</PhoneType>
41
41
  </Phone>
42
42
  </Phones>
43
- <UpdatedDateUTC>2010-11-26T01:28:03.573</UpdatedDateUTC>
43
+ <UpdatedDateUTC>2011-05-06T01:28:03.573</UpdatedDateUTC>
44
44
  <ContactGroups>
45
45
  <ContactGroup>
46
46
  <ContactGroupID>26fcca8d-a03b-4968-a80a-a463d5bf30ee</ContactGroupID>
@@ -51,8 +51,8 @@
51
51
  <IsSupplier>false</IsSupplier>
52
52
  <IsCustomer>true</IsCustomer>
53
53
  </Contact>
54
- <Date>2010-11-09T00:00:00</Date>
55
- <DueDate>2010-11-22T00:00:00</DueDate>
54
+ <Date>2011-04-19T00:00:00</Date>
55
+ <DueDate>2011-05-02T00:00:00</DueDate>
56
56
  <Status>PAID</Status>
57
57
  <LineAmountTypes>Exclusive</LineAmountTypes>
58
58
  <LineItems>
@@ -64,29 +64,31 @@ Per month fixed fee for minimum 20 hours/month.</Description>
64
64
  <TaxAmount>50.00</TaxAmount>
65
65
  <LineAmount>500.00</LineAmount>
66
66
  <AccountCode>200</AccountCode>
67
+ <ItemCode>Support-M</ItemCode>
67
68
  <Quantity>1.0000</Quantity>
68
69
  </LineItem>
69
70
  </LineItems>
70
71
  <SubTotal>500.00</SubTotal>
71
72
  <TotalTax>50.00</TotalTax>
72
73
  <Total>550.00</Total>
73
- <UpdatedDateUTC>2010-12-09T14:31:10.92</UpdatedDateUTC>
74
+ <UpdatedDateUTC>2008-10-01T14:31:10.92</UpdatedDateUTC>
74
75
  <CurrencyCode>AUD</CurrencyCode>
75
- <FullyPaidOnDate>2010-11-28T00:00:00</FullyPaidOnDate>
76
+ <FullyPaidOnDate>2011-05-08T00:00:00</FullyPaidOnDate>
76
77
  <Type>ACCREC</Type>
77
78
  <InvoiceID>bcd8a71f-aa31-4d0f-8a01-13ea26363ddf</InvoiceID>
78
79
  <InvoiceNumber>ORC1023</InvoiceNumber>
79
80
  <Reference>Monthly support</Reference>
80
81
  <Payments>
81
82
  <Payment>
82
- <Date>2010-11-28T00:00:00</Date>
83
- <Amount>550.00</Amount>
84
83
  <PaymentID>bf4828d8-a198-4b74-9e4d-3a238200610e</PaymentID>
84
+ <Date>2011-05-08T00:00:00</Date>
85
+ <Amount>550.00</Amount>
85
86
  </Payment>
86
87
  </Payments>
87
88
  <AmountDue>0.00</AmountDue>
88
89
  <AmountPaid>550.00</AmountPaid>
89
90
  <AmountCredited>0.00</AmountCredited>
91
+ <SentToContact>true</SentToContact>
90
92
  </Invoice>
91
93
  </Invoices>
92
94
  </Response>
@@ -1,8 +1,8 @@
1
- <Response xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
2
- <Id>1fc6f1b6-c49a-4756-9891-a900b55db6d6</Id>
1
+ <Response xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
2
+ <Id>663664b0-5a38-4a9d-991f-71816a2c65ef</Id>
3
3
  <Status>OK</Status>
4
- <ProviderName>Test Provider Name</ProviderName>
5
- <DateTimeUTC>2010-12-21T01:05:07.9008251Z</DateTimeUTC>
4
+ <ProviderName>Demo AU</ProviderName>
5
+ <DateTimeUTC>2011-05-31T01:32:54.9347509Z</DateTimeUTC>
6
6
  <Invoices>
7
7
  <Invoice>
8
8
  <Contact>
@@ -31,12 +31,12 @@
31
31
  <PhoneType>MOBILE</PhoneType>
32
32
  </Phone>
33
33
  </Phones>
34
- <UpdatedDateUTC>2010-12-03T01:49:53.353</UpdatedDateUTC>
34
+ <UpdatedDateUTC>2011-05-13T01:49:53.353</UpdatedDateUTC>
35
35
  <IsSupplier>true</IsSupplier>
36
36
  <IsCustomer>false</IsCustomer>
37
37
  </Contact>
38
- <Date>2010-11-28T00:00:00</Date>
39
- <DueDate>2010-12-13T00:00:00</DueDate>
38
+ <Date>2011-05-08T00:00:00</Date>
39
+ <DueDate>2011-05-23T00:00:00</DueDate>
40
40
  <Status>SUBMITTED</Status>
41
41
  <LineAmountTypes>Exclusive</LineAmountTypes>
42
42
  <LineItems>
@@ -53,13 +53,14 @@
53
53
  <SubTotal>1350.00</SubTotal>
54
54
  <TotalTax>135.00</TotalTax>
55
55
  <Total>1485.00</Total>
56
- <UpdatedDateUTC>2010-12-10T05:48:00.013</UpdatedDateUTC>
56
+ <UpdatedDateUTC>2008-10-02T05:48:00.013</UpdatedDateUTC>
57
57
  <CurrencyCode>AUD</CurrencyCode>
58
58
  <Type>ACCPAY</Type>
59
59
  <InvoiceID>bfbb7c45-de02-45e7-b065-d9863ecfb0d8</InvoiceID>
60
60
  <AmountDue>1485.00</AmountDue>
61
61
  <AmountPaid>0.00</AmountPaid>
62
62
  <AmountCredited>0.00</AmountCredited>
63
+ <SentToContact>false</SentToContact>
63
64
  </Invoice>
64
65
  </Invoices>
65
66
  </Response>
@@ -1,8 +1,8 @@
1
- <Response xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
2
- <Id>5f36ddfd-76c2-4d13-96ca-cf87e8920e09</Id>
1
+ <Response xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
2
+ <Id>b726962e-1d70-443b-baa0-293f3387d5b1</Id>
3
3
  <Status>OK</Status>
4
- <ProviderName>Test Provider Name</ProviderName>
5
- <DateTimeUTC>2010-12-21T01:03:30.5233323Z</DateTimeUTC>
4
+ <ProviderName>Demo AU</ProviderName>
5
+ <DateTimeUTC>2011-05-31T01:33:09.1072608Z</DateTimeUTC>
6
6
  <Invoices>
7
7
  <Invoice>
8
8
  <Contact>
@@ -36,12 +36,12 @@
36
36
  <PhoneType>MOBILE</PhoneType>
37
37
  </Phone>
38
38
  </Phones>
39
- <UpdatedDateUTC>2010-11-23T23:41:00.857</UpdatedDateUTC>
39
+ <UpdatedDateUTC>2011-05-03T23:41:00.857</UpdatedDateUTC>
40
40
  <IsSupplier>true</IsSupplier>
41
41
  <IsCustomer>false</IsCustomer>
42
42
  </Contact>
43
- <Date>2010-12-03T00:00:00</Date>
44
- <DueDate>2010-12-28T00:00:00</DueDate>
43
+ <Date>2011-05-13T00:00:00</Date>
44
+ <DueDate>2011-06-07T00:00:00</DueDate>
45
45
  <Status>AUTHORISED</Status>
46
46
  <LineAmountTypes>Exclusive</LineAmountTypes>
47
47
  <LineItems>
@@ -65,12 +65,13 @@
65
65
  <SubTotal>1969.99</SubTotal>
66
66
  <TotalTax>197.00</TotalTax>
67
67
  <Total>2166.99</Total>
68
- <UpdatedDateUTC>2011-05-25T11:16:38.36</UpdatedDateUTC>
68
+ <UpdatedDateUTC>2009-03-17T11:16:38.36</UpdatedDateUTC>
69
69
  <CurrencyCode>AUD</CurrencyCode>
70
70
  <Type>ACCPAY</Type>
71
71
  <InvoiceID>c12aff7e-12bf-4185-8702-460929f19674</InvoiceID>
72
72
  <AmountDue>2166.99</AmountDue>
73
73
  <AmountPaid>0.00</AmountPaid>
74
+ <SentToContact>false</SentToContact>
74
75
  </Invoice>
75
76
  </Invoices>
76
77
  </Response>
@@ -1,8 +1,8 @@
1
- <Response xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
2
- <Id>d8512066-1ad6-4b2c-a773-758a0b506f31</Id>
1
+ <Response xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
2
+ <Id>5c987d70-e737-4d37-a9f0-6cc25f3dfd63</Id>
3
3
  <Status>OK</Status>
4
- <ProviderName>Test Provider Name</ProviderName>
5
- <DateTimeUTC>2010-12-21T01:03:14.7416783Z</DateTimeUTC>
4
+ <ProviderName>Demo AU</ProviderName>
5
+ <DateTimeUTC>2011-05-31T01:31:10.758209Z</DateTimeUTC>
6
6
  <Invoices>
7
7
  <Invoice>
8
8
  <Contact>
@@ -33,7 +33,7 @@
33
33
  <PhoneType>DDI</PhoneType>
34
34
  </Phone>
35
35
  </Phones>
36
- <UpdatedDateUTC>2010-12-09T19:32:00.767</UpdatedDateUTC>
36
+ <UpdatedDateUTC>2011-05-19T19:32:00.767</UpdatedDateUTC>
37
37
  <ContactGroups>
38
38
  <ContactGroup>
39
39
  <ContactGroupID>26fcca8d-a03b-4968-a80a-a463d5bf30ee</ContactGroupID>
@@ -44,8 +44,8 @@
44
44
  <IsSupplier>false</IsSupplier>
45
45
  <IsCustomer>true</IsCustomer>
46
46
  </Contact>
47
- <Date>2010-10-09T00:00:00</Date>
48
- <DueDate>2010-10-18T00:00:00</DueDate>
47
+ <Date>2011-03-19T00:00:00</Date>
48
+ <DueDate>2011-03-28T00:00:00</DueDate>
49
49
  <Status>PAID</Status>
50
50
  <LineAmountTypes>Exclusive</LineAmountTypes>
51
51
  <LineItems>
@@ -57,29 +57,31 @@ Per month fixed fee for minimum 20 hours/month.</Description>
57
57
  <TaxAmount>50.00</TaxAmount>
58
58
  <LineAmount>500.00</LineAmount>
59
59
  <AccountCode>200</AccountCode>
60
+ <ItemCode>Support-M</ItemCode>
60
61
  <Quantity>1.0000</Quantity>
61
62
  </LineItem>
62
63
  </LineItems>
63
64
  <SubTotal>500.00</SubTotal>
64
65
  <TotalTax>50.00</TotalTax>
65
66
  <Total>550.00</Total>
66
- <UpdatedDateUTC>2010-12-02T17:10:54.443</UpdatedDateUTC>
67
+ <UpdatedDateUTC>2008-09-24T17:10:54.443</UpdatedDateUTC>
67
68
  <CurrencyCode>AUD</CurrencyCode>
68
- <FullyPaidOnDate>2010-10-18T00:00:00</FullyPaidOnDate>
69
+ <FullyPaidOnDate>2011-03-28T00:00:00</FullyPaidOnDate>
69
70
  <Type>ACCREC</Type>
70
71
  <InvoiceID>c3380b96-976d-4b3e-8b26-8d01eb6a3742</InvoiceID>
71
72
  <InvoiceNumber>ORC1018</InvoiceNumber>
72
73
  <Reference>Monthly support</Reference>
73
74
  <Payments>
74
75
  <Payment>
75
- <Date>2010-10-18T00:00:00</Date>
76
- <Amount>550.00</Amount>
77
76
  <PaymentID>4d31d5f3-3c27-4eca-aad7-d59ca5abb22e</PaymentID>
77
+ <Date>2011-03-28T00:00:00</Date>
78
+ <Amount>550.00</Amount>
78
79
  </Payment>
79
80
  </Payments>
80
81
  <AmountDue>0.00</AmountDue>
81
82
  <AmountPaid>550.00</AmountPaid>
82
83
  <AmountCredited>0.00</AmountCredited>
84
+ <SentToContact>true</SentToContact>
83
85
  </Invoice>
84
86
  </Invoices>
85
87
  </Response>
@@ -1,8 +1,8 @@
1
- <Response xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
2
- <Id>fdbd9aae-2336-4a4a-842a-4ec22b233808</Id>
1
+ <Response xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
2
+ <Id>1393e397-927d-485b-bc0d-446edad7987e</Id>
3
3
  <Status>OK</Status>
4
- <ProviderName>Test Provider Name</ProviderName>
5
- <DateTimeUTC>2010-12-21T01:03:07.7258737Z</DateTimeUTC>
4
+ <ProviderName>Demo AU</ProviderName>
5
+ <DateTimeUTC>2011-05-31T01:30:15.0682142Z</DateTimeUTC>
6
6
  <Invoices>
7
7
  <Invoice>
8
8
  <Contact>
@@ -31,12 +31,12 @@
31
31
  <PhoneType>FAX</PhoneType>
32
32
  </Phone>
33
33
  </Phones>
34
- <UpdatedDateUTC>2010-11-16T06:15:30.913</UpdatedDateUTC>
34
+ <UpdatedDateUTC>2011-04-26T06:15:30.913</UpdatedDateUTC>
35
35
  <IsSupplier>true</IsSupplier>
36
36
  <IsCustomer>false</IsCustomer>
37
37
  </Contact>
38
- <Date>2010-10-22T00:00:00</Date>
39
- <DueDate>2010-11-08T00:00:00</DueDate>
38
+ <Date>2011-04-01T00:00:00</Date>
39
+ <DueDate>2011-04-18T00:00:00</DueDate>
40
40
  <Status>DELETED</Status>
41
41
  <LineAmountTypes>Exclusive</LineAmountTypes>
42
42
  <LineItems>
@@ -53,7 +53,7 @@
53
53
  <SubTotal>0.00</SubTotal>
54
54
  <TotalTax>0.00</TotalTax>
55
55
  <Total>0.00</Total>
56
- <UpdatedDateUTC>2010-11-25T14:28:05.153</UpdatedDateUTC>
56
+ <UpdatedDateUTC>2008-09-17T14:28:05.153</UpdatedDateUTC>
57
57
  <CurrencyCode>AUD</CurrencyCode>
58
58
  <Type>ACCPAY</Type>
59
59
  <InvoiceID>c963f2b0-cbe1-4abd-9ccc-7e512c942068</InvoiceID>
@@ -61,6 +61,7 @@
61
61
  <AmountDue>0.00</AmountDue>
62
62
  <AmountPaid>0.00</AmountPaid>
63
63
  <AmountCredited>0.00</AmountCredited>
64
+ <SentToContact>false</SentToContact>
64
65
  </Invoice>
65
66
  </Invoices>
66
67
  </Response>
@@ -0,0 +1,78 @@
1
+ <Response xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
2
+ <Id>5c3d3533-a978-4ebc-9ee3-b4a5705f7478</Id>
3
+ <Status>OK</Status>
4
+ <ProviderName>Demo AU</ProviderName>
5
+ <DateTimeUTC>2011-05-31T01:33:39.4679959Z</DateTimeUTC>
6
+ <Invoices>
7
+ <Invoice>
8
+ <Contact>
9
+ <ContactID>f308fdd0-9cf3-4f24-ae28-9ad57ae71310</ContactID>
10
+ <ContactStatus>ACTIVE</ContactStatus>
11
+ <Name>Someone Else</Name>
12
+ <Addresses>
13
+ <Address>
14
+ <AddressType>STREET</AddressType>
15
+ </Address>
16
+ <Address>
17
+ <AddressType>POBOX</AddressType>
18
+ </Address>
19
+ </Addresses>
20
+ <Phones>
21
+ <Phone>
22
+ <PhoneType>DEFAULT</PhoneType>
23
+ </Phone>
24
+ <Phone>
25
+ <PhoneType>DDI</PhoneType>
26
+ </Phone>
27
+ <Phone>
28
+ <PhoneType>MOBILE</PhoneType>
29
+ </Phone>
30
+ <Phone>
31
+ <PhoneType>FAX</PhoneType>
32
+ </Phone>
33
+ </Phones>
34
+ <UpdatedDateUTC>2011-05-27T07:24:05.843</UpdatedDateUTC>
35
+ <IsSupplier>false</IsSupplier>
36
+ <IsCustomer>true</IsCustomer>
37
+ <DefaultCurrency>AUD</DefaultCurrency>
38
+ </Contact>
39
+ <Date>2011-05-27T00:00:00</Date>
40
+ <DueDate>2011-05-27T00:00:00</DueDate>
41
+ <BrandingThemeID>aefae6d5-7bbe-4e2e-aadc-302cd07a0fc1</BrandingThemeID>
42
+ <Status>PAID</Status>
43
+ <LineAmountTypes>Inclusive</LineAmountTypes>
44
+ <LineItems>
45
+ <LineItem>
46
+ <Description>Another payment</Description>
47
+ <UnitAmount>1500.00</UnitAmount>
48
+ <TaxType>OUTPUT</TaxType>
49
+ <TaxAmount>136.36</TaxAmount>
50
+ <LineAmount>1500.00</LineAmount>
51
+ <AccountCode>200</AccountCode>
52
+ <Quantity>1.0000</Quantity>
53
+ </LineItem>
54
+ </LineItems>
55
+ <SubTotal>1363.64</SubTotal>
56
+ <TotalTax>136.36</TotalTax>
57
+ <Total>1500.00</Total>
58
+ <UpdatedDateUTC>2011-05-27T07:25:01.63</UpdatedDateUTC>
59
+ <CurrencyCode>AUD</CurrencyCode>
60
+ <FullyPaidOnDate>2011-05-27T00:00:00</FullyPaidOnDate>
61
+ <Type>ACCREC</Type>
62
+ <InvoiceID>cba46b29-3788-4158-b668-ab10160ccbfe</InvoiceID>
63
+ <InvoiceNumber>ORC1041</InvoiceNumber>
64
+ <Payments>
65
+ <Payment>
66
+ <PaymentID>80ab3fa2-eab1-40d8-a057-e29244eb0185</PaymentID>
67
+ <Date>2011-05-27T00:00:00</Date>
68
+ <Amount>1500.00</Amount>
69
+ <Reference>BOB</Reference>
70
+ <CurrencyRate>1.000000</CurrencyRate>
71
+ </Payment>
72
+ </Payments>
73
+ <AmountDue>0.00</AmountDue>
74
+ <AmountPaid>1500.00</AmountPaid>
75
+ <SentToContact>false</SentToContact>
76
+ </Invoice>
77
+ </Invoices>
78
+ </Response>
@@ -1,8 +1,8 @@
1
- <Response xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
2
- <Id>f3e6d1a4-1860-4c00-af34-dae04d2b49fc</Id>
1
+ <Response xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
2
+ <Id>13c72589-0539-4cd5-bef5-36b8cce6a1e0</Id>
3
3
  <Status>OK</Status>
4
- <ProviderName>Test Provider Name</ProviderName>
5
- <DateTimeUTC>2010-12-21T01:02:55.4911855Z</DateTimeUTC>
4
+ <ProviderName>Demo AU</ProviderName>
5
+ <DateTimeUTC>2011-05-31T01:32:44.4811576Z</DateTimeUTC>
6
6
  <Invoices>
7
7
  <Invoice>
8
8
  <Contact>
@@ -31,12 +31,12 @@
31
31
  <PhoneType>FAX</PhoneType>
32
32
  </Phone>
33
33
  </Phones>
34
- <UpdatedDateUTC>2010-11-16T06:15:30.913</UpdatedDateUTC>
34
+ <UpdatedDateUTC>2011-04-26T06:15:30.913</UpdatedDateUTC>
35
35
  <IsSupplier>true</IsSupplier>
36
36
  <IsCustomer>false</IsCustomer>
37
37
  </Contact>
38
- <Date>2010-11-22T00:00:00</Date>
39
- <DueDate>2010-12-08T00:00:00</DueDate>
38
+ <Date>2011-05-02T00:00:00</Date>
39
+ <DueDate>2011-05-18T00:00:00</DueDate>
40
40
  <Status>PAID</Status>
41
41
  <LineAmountTypes>Exclusive</LineAmountTypes>
42
42
  <LineItems>
@@ -53,22 +53,23 @@
53
53
  <SubTotal>301.00</SubTotal>
54
54
  <TotalTax>30.10</TotalTax>
55
55
  <Total>331.10</Total>
56
- <UpdatedDateUTC>2010-12-09T16:05:05.71</UpdatedDateUTC>
56
+ <UpdatedDateUTC>2008-10-01T16:05:05.71</UpdatedDateUTC>
57
57
  <CurrencyCode>AUD</CurrencyCode>
58
- <FullyPaidOnDate>2010-12-06T00:00:00</FullyPaidOnDate>
58
+ <FullyPaidOnDate>2011-05-16T00:00:00</FullyPaidOnDate>
59
59
  <Type>ACCPAY</Type>
60
60
  <InvoiceID>dba2f021-f149-4191-a126-5351d587ab0e</InvoiceID>
61
61
  <InvoiceNumber>3395</InvoiceNumber>
62
62
  <Payments>
63
63
  <Payment>
64
- <Date>2010-12-06T00:00:00</Date>
65
- <Amount>331.10</Amount>
66
64
  <PaymentID>47504860-bd3b-4bdb-97d8-521d15139de4</PaymentID>
65
+ <Date>2011-05-16T00:00:00</Date>
66
+ <Amount>331.10</Amount>
67
67
  </Payment>
68
68
  </Payments>
69
69
  <AmountDue>0.00</AmountDue>
70
70
  <AmountPaid>331.10</AmountPaid>
71
71
  <AmountCredited>0.00</AmountCredited>
72
+ <SentToContact>false</SentToContact>
72
73
  </Invoice>
73
74
  </Invoices>
74
75
  </Response>