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
@@ -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>26559093-3fbf-4e18-93fa-44da34a31a4a</Id>
3
+ <Status>OK</Status>
4
+ <ProviderName>Demo AU</ProviderName>
5
+ <DateTimeUTC>2011-05-31T01:33:33.4521014Z</DateTimeUTC>
6
+ <Invoices>
7
+ <Invoice>
8
+ <Contact>
9
+ <ContactID>26ac3afa-9d2b-4049-a7ba-3ce9463ea453</ContactID>
10
+ <ContactStatus>ACTIVE</ContactStatus>
11
+ <Name>Bob Test</Name>
12
+ <Addresses>
13
+ <Address>
14
+ <AddressType>POBOX</AddressType>
15
+ </Address>
16
+ <Address>
17
+ <AddressType>STREET</AddressType>
18
+ </Address>
19
+ </Addresses>
20
+ <Phones>
21
+ <Phone>
22
+ <PhoneType>MOBILE</PhoneType>
23
+ </Phone>
24
+ <Phone>
25
+ <PhoneType>FAX</PhoneType>
26
+ </Phone>
27
+ <Phone>
28
+ <PhoneType>DEFAULT</PhoneType>
29
+ </Phone>
30
+ <Phone>
31
+ <PhoneType>DDI</PhoneType>
32
+ </Phone>
33
+ </Phones>
34
+ <UpdatedDateUTC>2011-05-27T07:23:08.933</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>Item</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:23:32.067</UpdatedDateUTC>
59
+ <CurrencyCode>AUD</CurrencyCode>
60
+ <FullyPaidOnDate>2011-05-27T00:00:00</FullyPaidOnDate>
61
+ <Type>ACCREC</Type>
62
+ <InvoiceID>440613e4-4785-4eff-9ba1-c432816cf8c7</InvoiceID>
63
+ <InvoiceNumber>ORC1040</InvoiceNumber>
64
+ <Payments>
65
+ <Payment>
66
+ <PaymentID>980553a5-6310-4a1b-9538-bc9cc688f0ae</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>df30a82f-cab1-4723-9992-ed466e191acd</Id>
1
+ <Response xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
2
+ <Id>fd45ed0f-7197-433d-a2fc-acc634dae0b5</Id>
3
3
  <Status>OK</Status>
4
- <ProviderName>Test Provider Name</ProviderName>
5
- <DateTimeUTC>2010-12-21T01:03:45.6174687Z</DateTimeUTC>
4
+ <ProviderName>Demo AU</ProviderName>
5
+ <DateTimeUTC>2011-05-31T01:32:12.2453385Z</DateTimeUTC>
6
6
  <Invoices>
7
7
  <Invoice>
8
8
  <Contact>
@@ -53,12 +53,12 @@
53
53
  <PhoneType>DDI</PhoneType>
54
54
  </Phone>
55
55
  </Phones>
56
- <UpdatedDateUTC>2011-11-18T23:28:25.387</UpdatedDateUTC>
56
+ <UpdatedDateUTC>2012-04-27T23:28:25.387</UpdatedDateUTC>
57
57
  <IsSupplier>false</IsSupplier>
58
58
  <IsCustomer>true</IsCustomer>
59
59
  </Contact>
60
- <Date>2010-11-23T00:00:00</Date>
61
- <DueDate>2010-12-13T00:00:00</DueDate>
60
+ <Date>2011-05-03T00:00:00</Date>
61
+ <DueDate>2011-05-23T00:00:00</DueDate>
62
62
  <Status>AUTHORISED</Status>
63
63
  <LineAmountTypes>Exclusive</LineAmountTypes>
64
64
  <LineItems>
@@ -76,13 +76,14 @@
76
76
  <TrackingCategoryID>093af706-c2aa-4d97-a4ce-2d205a017eac</TrackingCategoryID>
77
77
  </TrackingCategory>
78
78
  </Tracking>
79
+ <ItemCode>PMD</ItemCode>
79
80
  <Quantity>5.0000</Quantity>
80
81
  </LineItem>
81
82
  </LineItems>
82
83
  <SubTotal>3500.00</SubTotal>
83
84
  <TotalTax>350.00</TotalTax>
84
85
  <Total>3850.00</Total>
85
- <UpdatedDateUTC>2010-12-09T14:09:32.247</UpdatedDateUTC>
86
+ <UpdatedDateUTC>2008-10-01T14:09:32.247</UpdatedDateUTC>
86
87
  <CurrencyCode>AUD</CurrencyCode>
87
88
  <Type>ACCREC</Type>
88
89
  <InvoiceID>4602eda6-abe9-448e-b65f-ae6bea21f0eb</InvoiceID>
@@ -91,6 +92,7 @@
91
92
  <AmountDue>3850.00</AmountDue>
92
93
  <AmountPaid>0.00</AmountPaid>
93
94
  <AmountCredited>0.00</AmountCredited>
95
+ <SentToContact>true</SentToContact>
94
96
  </Invoice>
95
97
  </Invoices>
96
98
  </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>c54a2726-cec2-4671-ba32-780b423605b2</Id>
1
+ <Response xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
2
+ <Id>fb700381-f4d0-45d4-a759-b18b93c7e088</Id>
3
3
  <Status>OK</Status>
4
- <ProviderName>Test Provider Name</ProviderName>
5
- <DateTimeUTC>2010-12-21T01:04:01.1178655Z</DateTimeUTC>
4
+ <ProviderName>Demo AU</ProviderName>
5
+ <DateTimeUTC>2011-05-31T01:33:11.232356Z</DateTimeUTC>
6
6
  <Invoices>
7
7
  <Invoice>
8
8
  <Contact>
@@ -47,12 +47,12 @@
47
47
  <PhoneType>DDI</PhoneType>
48
48
  </Phone>
49
49
  </Phones>
50
- <UpdatedDateUTC>2011-01-21T20:06:00.75</UpdatedDateUTC>
50
+ <UpdatedDateUTC>2011-07-01T20:06:00.75</UpdatedDateUTC>
51
51
  <IsSupplier>false</IsSupplier>
52
52
  <IsCustomer>true</IsCustomer>
53
53
  </Contact>
54
- <Date>2010-11-28T00:00:00</Date>
55
- <DueDate>2010-12-08T00:00:00</DueDate>
54
+ <Date>2011-05-08T00:00:00</Date>
55
+ <DueDate>2011-05-18T00:00:00</DueDate>
56
56
  <Status>VOIDED</Status>
57
57
  <LineAmountTypes>Exclusive</LineAmountTypes>
58
58
  <LineItems>
@@ -63,6 +63,7 @@
63
63
  <TaxAmount>50.00</TaxAmount>
64
64
  <LineAmount>500.00</LineAmount>
65
65
  <AccountCode>200</AccountCode>
66
+ <ItemCode>Train-MS</ItemCode>
66
67
  <Quantity>1.0000</Quantity>
67
68
  </LineItem>
68
69
  <LineItem>
@@ -72,13 +73,14 @@
72
73
  <TaxAmount>50.00</TaxAmount>
73
74
  <LineAmount>500.00</LineAmount>
74
75
  <AccountCode>200</AccountCode>
76
+ <ItemCode>Train-MS</ItemCode>
75
77
  <Quantity>1.0000</Quantity>
76
78
  </LineItem>
77
79
  </LineItems>
78
80
  <SubTotal>1000.00</SubTotal>
79
81
  <TotalTax>100.00</TotalTax>
80
82
  <Total>1100.00</Total>
81
- <UpdatedDateUTC>2011-11-19T05:40:43.417</UpdatedDateUTC>
83
+ <UpdatedDateUTC>2009-09-11T05:40:43.417</UpdatedDateUTC>
82
84
  <CurrencyCode>AUD</CurrencyCode>
83
85
  <Type>ACCREC</Type>
84
86
  <InvoiceID>46441f63-873f-4cdc-a278-b8fe516f3abb</InvoiceID>
@@ -86,6 +88,7 @@
86
88
  <AmountDue>1100.00</AmountDue>
87
89
  <AmountPaid>0.00</AmountPaid>
88
90
  <AmountCredited>0.00</AmountCredited>
91
+ <SentToContact>true</SentToContact>
89
92
  </Invoice>
90
93
  </Invoices>
91
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>89de6bfb-ff1e-4159-b5d6-fe76ae5643eb</Id>
1
+ <Response xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
2
+ <Id>8eefc565-2ffd-4fbe-bdd4-e22f4cd61a77</Id>
3
3
  <Status>OK</Status>
4
- <ProviderName>Test Provider Name</ProviderName>
5
- <DateTimeUTC>2010-12-21T01:04:31.3217637Z</DateTimeUTC>
4
+ <ProviderName>Demo AU</ProviderName>
5
+ <DateTimeUTC>2011-05-31T01:32:29.2148487Z</DateTimeUTC>
6
6
  <Invoices>
7
7
  <Invoice>
8
8
  <Contact>
@@ -31,12 +31,12 @@
31
31
  <PhoneType>DEFAULT</PhoneType>
32
32
  </Phone>
33
33
  </Phones>
34
- <UpdatedDateUTC>2010-11-16T06:44:23.14</UpdatedDateUTC>
34
+ <UpdatedDateUTC>2011-04-26T06:44:23.14</UpdatedDateUTC>
35
35
  <IsSupplier>true</IsSupplier>
36
36
  <IsCustomer>false</IsCustomer>
37
37
  </Contact>
38
- <Date>2010-11-08T00:00:00</Date>
39
- <DueDate>2010-11-23T00:00:00</DueDate>
38
+ <Date>2011-04-18T00:00:00</Date>
39
+ <DueDate>2011-05-03T00:00:00</DueDate>
40
40
  <Status>PAID</Status>
41
41
  <LineAmountTypes>Exclusive</LineAmountTypes>
42
42
  <LineItems>
@@ -53,21 +53,22 @@
53
53
  <SubTotal>155.00</SubTotal>
54
54
  <TotalTax>15.50</TotalTax>
55
55
  <Total>170.50</Total>
56
- <UpdatedDateUTC>2010-12-09T14:29:27.933</UpdatedDateUTC>
56
+ <UpdatedDateUTC>2008-10-01T14:29:27.933</UpdatedDateUTC>
57
57
  <CurrencyCode>AUD</CurrencyCode>
58
- <FullyPaidOnDate>2010-11-23T00:00:00</FullyPaidOnDate>
58
+ <FullyPaidOnDate>2011-05-03T00:00:00</FullyPaidOnDate>
59
59
  <Type>ACCPAY</Type>
60
60
  <InvoiceID>4ad1ec01-f4a3-41d7-bbb4-d2ab2fec8e65</InvoiceID>
61
61
  <Payments>
62
62
  <Payment>
63
- <Date>2010-11-23T00:00:00</Date>
64
- <Amount>170.50</Amount>
65
63
  <PaymentID>9a26b253-dc27-4f8d-ab1c-f85a30bc3038</PaymentID>
64
+ <Date>2011-05-03T00:00:00</Date>
65
+ <Amount>170.50</Amount>
66
66
  </Payment>
67
67
  </Payments>
68
68
  <AmountDue>0.00</AmountDue>
69
69
  <AmountPaid>170.50</AmountPaid>
70
70
  <AmountCredited>0.00</AmountCredited>
71
+ <SentToContact>false</SentToContact>
71
72
  </Invoice>
72
73
  </Invoices>
73
74
  </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>063142eb-22b5-405e-b4cb-fbb51d709746</Id>
1
+ <Response xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
2
+ <Id>63461ed2-978d-4b79-a204-a4d8428b3457</Id>
3
3
  <Status>OK</Status>
4
- <ProviderName>Test Provider Name</ProviderName>
5
- <DateTimeUTC>2010-12-21T01:03:22.7887593Z</DateTimeUTC>
4
+ <ProviderName>Demo AU</ProviderName>
5
+ <DateTimeUTC>2011-05-31T01:31:33.727988Z</DateTimeUTC>
6
6
  <Invoices>
7
7
  <Invoice>
8
8
  <Contact>
@@ -33,12 +33,12 @@
33
33
  <PhoneType>FAX</PhoneType>
34
34
  </Phone>
35
35
  </Phones>
36
- <UpdatedDateUTC>2010-12-09T19:29:28.747</UpdatedDateUTC>
36
+ <UpdatedDateUTC>2011-05-19T19:29:28.747</UpdatedDateUTC>
37
37
  <IsSupplier>false</IsSupplier>
38
38
  <IsCustomer>true</IsCustomer>
39
39
  </Contact>
40
- <Date>2010-10-12T00:00:00</Date>
41
- <DueDate>2010-10-28T00:00:00</DueDate>
40
+ <Date>2011-03-22T00:00:00</Date>
41
+ <DueDate>2011-04-07T00:00:00</DueDate>
42
42
  <Status>PAID</Status>
43
43
  <LineAmountTypes>Exclusive</LineAmountTypes>
44
44
  <LineItems>
@@ -56,29 +56,31 @@
56
56
  <TrackingCategoryID>093af706-c2aa-4d97-a4ce-2d205a017eac</TrackingCategoryID>
57
57
  </TrackingCategory>
58
58
  </Tracking>
59
+ <ItemCode>DevD</ItemCode>
59
60
  <Quantity>5.0000</Quantity>
60
61
  </LineItem>
61
62
  </LineItems>
62
63
  <SubTotal>3250.00</SubTotal>
63
64
  <TotalTax>325.00</TotalTax>
64
65
  <Total>3575.00</Total>
65
- <UpdatedDateUTC>2010-12-03T11:12:26.197</UpdatedDateUTC>
66
+ <UpdatedDateUTC>2008-09-25T11:12:26.197</UpdatedDateUTC>
66
67
  <CurrencyCode>AUD</CurrencyCode>
67
- <FullyPaidOnDate>2010-11-08T00:00:00</FullyPaidOnDate>
68
+ <FullyPaidOnDate>2011-04-18T00:00:00</FullyPaidOnDate>
68
69
  <Type>ACCREC</Type>
69
70
  <InvoiceID>4b9afceb-f7c7-4e64-8aac-7b009971fd52</InvoiceID>
70
71
  <InvoiceNumber>ORC1013</InvoiceNumber>
71
72
  <Reference>BWP p.o. R22987</Reference>
72
73
  <Payments>
73
74
  <Payment>
74
- <Date>2010-11-08T00:00:00</Date>
75
- <Amount>3575.00</Amount>
76
75
  <PaymentID>d3abafa8-b7fa-4edb-b050-3a8485cf44be</PaymentID>
76
+ <Date>2011-04-18T00:00:00</Date>
77
+ <Amount>3575.00</Amount>
77
78
  </Payment>
78
79
  </Payments>
79
80
  <AmountDue>0.00</AmountDue>
80
81
  <AmountPaid>3575.00</AmountPaid>
81
82
  <AmountCredited>0.00</AmountCredited>
83
+ <SentToContact>true</SentToContact>
82
84
  </Invoice>
83
85
  </Invoices>
84
86
  </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>95a0318e-8a4f-4b64-84e0-36e73b734ba4</Id>
1
+ <Response xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
2
+ <Id>21cb79d0-c51e-470f-8e4f-d9b33fe2bc65</Id>
3
3
  <Status>OK</Status>
4
- <ProviderName>Test Provider Name</ProviderName>
5
- <DateTimeUTC>2010-12-21T01:03:37.9766481Z</DateTimeUTC>
4
+ <ProviderName>Demo AU</ProviderName>
5
+ <DateTimeUTC>2011-05-31T01:33:18.6545635Z</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>2012-12-06T04:31:39.377</UpdatedDateUTC>
34
+ <UpdatedDateUTC>2013-05-16T04:31:39.377</UpdatedDateUTC>
35
35
  <IsSupplier>false</IsSupplier>
36
36
  <IsCustomer>true</IsCustomer>
37
37
  <DefaultCurrency>AUD</DefaultCurrency>
38
38
  </Contact>
39
- <Date>2010-12-09T00:00:00</Date>
40
- <DueDate>2010-12-27T00:00:00</DueDate>
39
+ <Date>2011-05-19T00:00:00</Date>
40
+ <DueDate>2011-06-06T00:00:00</DueDate>
41
41
  <BrandingThemeID>aefae6d5-7bbe-4e2e-aadc-302cd07a0fc1</BrandingThemeID>
42
42
  <Status>AUTHORISED</Status>
43
43
  <LineAmountTypes>Inclusive</LineAmountTypes>
@@ -49,13 +49,14 @@
49
49
  <TaxAmount>20.36</TaxAmount>
50
50
  <LineAmount>224.00</LineAmount>
51
51
  <AccountCode>200</AccountCode>
52
+ <ItemCode>GB1-White</ItemCode>
52
53
  <Quantity>40.0000</Quantity>
53
54
  </LineItem>
54
55
  </LineItems>
55
56
  <SubTotal>203.64</SubTotal>
56
57
  <TotalTax>20.36</TotalTax>
57
58
  <Total>224.00</Total>
58
- <UpdatedDateUTC>2012-12-06T14:31:39.39</UpdatedDateUTC>
59
+ <UpdatedDateUTC>2010-09-29T14:31:39.39</UpdatedDateUTC>
59
60
  <CurrencyCode>AUD</CurrencyCode>
60
61
  <Type>ACCREC</Type>
61
62
  <InvoiceID>4edbf6d5-4e92-43af-bedd-7effc0b86833</InvoiceID>
@@ -63,6 +64,7 @@
63
64
  <Reference>GB1-White</Reference>
64
65
  <AmountDue>224.00</AmountDue>
65
66
  <AmountPaid>0.00</AmountPaid>
67
+ <SentToContact>false</SentToContact>
66
68
  </Invoice>
67
69
  </Invoices>
68
70
  </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>d7acf896-494f-4ec0-86e9-353bdec8cee4</Id>
1
+ <Response xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
2
+ <Id>22a13c81-1a06-431e-a9b2-347599149610</Id>
3
3
  <Status>OK</Status>
4
- <ProviderName>Test Provider Name</ProviderName>
5
- <DateTimeUTC>2010-12-21T01:03:25.8825885Z</DateTimeUTC>
4
+ <ProviderName>Demo AU</ProviderName>
5
+ <DateTimeUTC>2011-05-31T01:30:27.1781317Z</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-09-08T00:00:00</Date>
54
- <DueDate>2010-09-17T00:00:00</DueDate>
53
+ <Date>2011-02-16T00:00:00</Date>
54
+ <DueDate>2011-02-25T00:00:00</DueDate>
55
55
  <Status>PAID</Status>
56
56
  <LineAmountTypes>Exclusive</LineAmountTypes>
57
57
  <LineItems>
@@ -63,21 +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-11-26T11:56:55.33</UpdatedDateUTC>
73
+ <UpdatedDateUTC>2008-09-18T11:56:55.33</UpdatedDateUTC>
73
74
  <CurrencyCode>AUD</CurrencyCode>
74
- <FullyPaidOnDate>2010-09-17T00:00:00</FullyPaidOnDate>
75
+ <FullyPaidOnDate>2011-02-25T00:00:00</FullyPaidOnDate>
75
76
  <Type>ACCREC</Type>
76
77
  <InvoiceID>4fad1af2-b871-4ac5-a15a-3c5e32d2e2c4</InvoiceID>
77
78
  <InvoiceNumber>ORC1003</InvoiceNumber>
79
+ <CreditNotes>
80
+ <CreditNote>
81
+ <Date>2011-02-25T00:00:00</Date>
82
+ <Total>550.00</Total>
83
+ <CreditNoteID>371cd138-1e5c-4ec1-a8c6-a1c10e8bdab1</CreditNoteID>
84
+ <CreditNoteNumber>CR1003</CreditNoteNumber>
85
+ </CreditNote>
86
+ </CreditNotes>
78
87
  <AmountDue>0.00</AmountDue>
79
88
  <AmountPaid>0.00</AmountPaid>
80
89
  <AmountCredited>550.00</AmountCredited>
90
+ <SentToContact>true</SentToContact>
81
91
  </Invoice>
82
92
  </Invoices>
83
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>7794a33a-ecf4-4193-8686-397c88dc3cd6</Id>
1
+ <Response xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
2
+ <Id>8dfb3078-721a-431f-8ada-c0d3e1c2bf87</Id>
3
3
  <Status>OK</Status>
4
- <ProviderName>Test Provider Name</ProviderName>
5
- <DateTimeUTC>2010-12-21T01:02:10.8337923Z</DateTimeUTC>
4
+ <ProviderName>Demo AU</ProviderName>
5
+ <DateTimeUTC>2011-05-31T01:30:24.8811538Z</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-20T05:49:48.123</UpdatedDateUTC>
34
+ <UpdatedDateUTC>2011-04-30T05:49:48.123</UpdatedDateUTC>
35
35
  <IsSupplier>true</IsSupplier>
36
36
  <IsCustomer>false</IsCustomer>
37
37
  </Contact>
38
- <Date>2010-09-09T00:00:00</Date>
39
- <DueDate>2010-09-16T00:00:00</DueDate>
38
+ <Date>2011-02-17T00:00:00</Date>
39
+ <DueDate>2011-02-24T00:00:00</DueDate>
40
40
  <Status>PAID</Status>
41
41
  <LineAmountTypes>Exclusive</LineAmountTypes>
42
42
  <LineItems>
@@ -60,22 +60,24 @@
60
60
  <SubTotal>199.00</SubTotal>
61
61
  <TotalTax>19.90</TotalTax>
62
62
  <Total>218.90</Total>
63
- <UpdatedDateUTC>2010-11-26T11:45:11.227</UpdatedDateUTC>
63
+ <UpdatedDateUTC>2008-09-18T11:45:11.227</UpdatedDateUTC>
64
64
  <CurrencyCode>AUD</CurrencyCode>
65
- <FullyPaidOnDate>2010-09-10T00:00:00</FullyPaidOnDate>
65
+ <FullyPaidOnDate>2011-02-18T00:00:00</FullyPaidOnDate>
66
66
  <Type>ACCPAY</Type>
67
67
  <InvoiceID>52ee4d67-cae4-462c-adb2-182c39017f3d</InvoiceID>
68
68
  <InvoiceNumber>ICT 08</InvoiceNumber>
69
69
  <Payments>
70
70
  <Payment>
71
- <Date>2010-09-10T00:00:00</Date>
72
- <Amount>218.90</Amount>
73
71
  <PaymentID>a826f56f-52b0-49cd-974f-dc6697fb33ca</PaymentID>
72
+ <Date>2011-02-18T00:00:00</Date>
73
+ <Amount>218.90</Amount>
74
+ <Reference>DD 111093</Reference>
74
75
  </Payment>
75
76
  </Payments>
76
77
  <AmountDue>0.00</AmountDue>
77
78
  <AmountPaid>218.90</AmountPaid>
78
79
  <AmountCredited>0.00</AmountCredited>
80
+ <SentToContact>false</SentToContact>
79
81
  </Invoice>
80
82
  </Invoices>
81
83
  </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>f9022fe6-c85c-41b0-a6bc-f18310a0f2a5</Id>
1
+ <Response xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
2
+ <Id>0f9e6520-955a-4176-bd5c-f5dd4aff48b9</Id>
3
3
  <Status>OK</Status>
4
- <ProviderName>Test Provider Name</ProviderName>
5
- <DateTimeUTC>2010-12-21T01:05:10.4321399Z</DateTimeUTC>
4
+ <ProviderName>Demo AU</ProviderName>
5
+ <DateTimeUTC>2011-05-31T01:31:49.2130567Z</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-12-09T02:03:42.917</UpdatedDateUTC>
34
+ <UpdatedDateUTC>2011-05-19T02:03:42.917</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-11T00:00:00</DueDate>
38
+ <Date>2011-05-08T00:00:00</Date>
39
+ <DueDate>2011-05-21T00:00:00</DueDate>
40
40
  <Status>AUTHORISED</Status>
41
41
  <LineAmountTypes>Inclusive</LineAmountTypes>
42
42
  <LineItems>
@@ -53,7 +53,7 @@
53
53
  <SubTotal>2272.73</SubTotal>
54
54
  <TotalTax>227.27</TotalTax>
55
55
  <Total>2500.00</Total>
56
- <UpdatedDateUTC>2010-12-09T12:04:42.68</UpdatedDateUTC>
56
+ <UpdatedDateUTC>2008-10-01T12:04:42.68</UpdatedDateUTC>
57
57
  <CurrencyCode>AUD</CurrencyCode>
58
58
  <Type>ACCPAY</Type>
59
59
  <InvoiceID>54585f46-c1a0-4432-bd4f-c1fae2fba59b</InvoiceID>
@@ -61,6 +61,7 @@
61
61
  <AmountDue>2500.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>
@@ -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>317931ee-0031-46c5-bd0a-fca64299a108</Id>
1
+ <Response xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
2
+ <Id>607aef19-4582-4c13-aad2-5c3633a80eb6</Id>
3
3
  <Status>OK</Status>
4
- <ProviderName>Test Provider Name</ProviderName>
5
- <DateTimeUTC>2010-12-21T01:02:26.2091859Z</DateTimeUTC>
4
+ <ProviderName>Demo AU</ProviderName>
5
+ <DateTimeUTC>2011-05-31T01:30:40.6943622Z</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-09-08T00:00:00</Date>
48
- <DueDate>2010-09-17T00:00:00</DueDate>
47
+ <Date>2011-02-16T00:00:00</Date>
48
+ <DueDate>2011-02-25T00: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-11-26T12:11:48.903</UpdatedDateUTC>
67
+ <UpdatedDateUTC>2008-09-18T12:11:48.903</UpdatedDateUTC>
67
68
  <CurrencyCode>AUD</CurrencyCode>
68
- <FullyPaidOnDate>2010-09-17T00:00:00</FullyPaidOnDate>
69
+ <FullyPaidOnDate>2011-02-25T00:00:00</FullyPaidOnDate>
69
70
  <Type>ACCREC</Type>
70
71
  <InvoiceID>5613938b-9e27-472e-92ae-3b038b669d10</InvoiceID>
71
72
  <InvoiceNumber>ORC1010</InvoiceNumber>
72
73
  <Reference>Monthly support</Reference>
73
74
  <Payments>
74
75
  <Payment>
75
- <Date>2010-09-17T00:00:00</Date>
76
- <Amount>550.00</Amount>
77
76
  <PaymentID>84f0f27e-add2-48ca-8cab-1013a9b171b6</PaymentID>
77
+ <Date>2011-02-25T00: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>