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
@@ -11,6 +11,15 @@
11
11
  <Version>AU</Version>
12
12
  <OrganisationType>COMPANY</OrganisationType>
13
13
  <BaseCurrency>AUD</BaseCurrency>
14
+ <CountryCode>AU</CountryCode>
15
+ <IsDemoCompany>true</IsDemoCompany>
16
+ <OrganisationStatus>ACTIVE</OrganisationStatus>
17
+ <RegistrationNumber>53003086616</RegistrationNumber>
18
+ <TaxNumber>53003086616</TaxNumber>
19
+ <FinancialYearEndDay>30</FinancialYearEndDay>
20
+ <FinancialYearEndMonth>6</FinancialYearEndMonth>
21
+ <PeriodLockDate>2008-06-30T00:00:00</PeriodLockDate>
22
+ <CreatedDateUTC>2011-05-19T05:26:03.95</CreatedDateUTC>
14
23
  </Organisation>
15
24
  </Organisations>
16
- </Response>
25
+ </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>0f8c65fe-4406-4795-a7e2-bf86c6b45a54</Id>
1
+ <Response xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
2
+ <Id>8ac3b9a6-11e9-40fa-abac-c9f0c6884640</Id>
3
3
  <Status>OK</Status>
4
- <ProviderName>Appcordion Private</ProviderName>
5
- <DateTimeUTC>2010-12-21T01:05:27.7919593Z</DateTimeUTC>
4
+ <ProviderName>Demo AU</ProviderName>
5
+ <DateTimeUTC>2011-05-31T01:24:36.6896074Z</DateTimeUTC>
6
6
  <Organisations>
7
7
  <Organisation>
8
8
  <Name>Demo Company (AU)</Name>
@@ -11,6 +11,15 @@
11
11
  <Version>AU</Version>
12
12
  <OrganisationType>COMPANY</OrganisationType>
13
13
  <BaseCurrency>AUD</BaseCurrency>
14
+ <CountryCode>AU</CountryCode>
15
+ <IsDemoCompany>true</IsDemoCompany>
16
+ <OrganisationStatus>ACTIVE</OrganisationStatus>
17
+ <RegistrationNumber>53003086616</RegistrationNumber>
18
+ <TaxNumber>53003086616</TaxNumber>
19
+ <FinancialYearEndDay>30</FinancialYearEndDay>
20
+ <FinancialYearEndMonth>6</FinancialYearEndMonth>
21
+ <PeriodLockDate>2008-06-30T00:00:00</PeriodLockDate>
22
+ <CreatedDateUTC>2011-05-19T05:26:03.95</CreatedDateUTC>
14
23
  </Organisation>
15
24
  </Organisations>
16
25
  </Response>