xero-python 1.25.0__tar.gz → 2.0.0__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (1215) hide show
  1. xero_python-2.0.0/AUTHORS.md +9 -0
  2. xero_python-2.0.0/HISTORY.md +4 -0
  3. xero_python-2.0.0/LICENSE +22 -0
  4. xero_python-2.0.0/MANIFEST.in +11 -0
  5. xero_python-2.0.0/PKG-INFO +643 -0
  6. xero_python-2.0.0/README.md +612 -0
  7. xero_python-2.0.0/requirements.txt +4 -0
  8. xero_python-2.0.0/setup.cfg +19 -0
  9. xero_python-2.0.0/setup.py +52 -0
  10. xero_python-2.0.0/tests/__init__.py +15 -0
  11. xero_python-2.0.0/tests/accounting/__init__.py +1 -0
  12. xero_python-2.0.0/tests/accounting/api/__init__.py +1 -0
  13. xero_python-2.0.0/tests/accounting/api/cassettes/test_get_organisations.yaml +70 -0
  14. xero_python-2.0.0/tests/accounting/api/cassettes/test_invoice_attachment_upload_and_download.yaml +4287 -0
  15. xero_python-2.0.0/tests/accounting/api/test_accounting_api.py +664 -0
  16. xero_python-2.0.0/tests/cassettes/test_vcr.yaml +634 -0
  17. xero_python-2.0.0/tests/conftest.py +176 -0
  18. xero_python-2.0.0/tests/identity/__init__.py +1 -0
  19. xero_python-2.0.0/tests/identity/api/__init__.py +1 -0
  20. xero_python-2.0.0/tests/identity/api/cassettes/test_get_connections.yaml +44 -0
  21. xero_python-2.0.0/tests/identity/api/test_identity_api.py +36 -0
  22. xero_python-2.0.0/tests/test_api_client/__init__.py +41 -0
  23. xero_python-2.0.0/tests/test_api_client/cassettes/test_call_api_get_organisations.yaml +70 -0
  24. xero_python-2.0.0/tests/test_api_client/cassettes/test_token_api_refresh_token.yaml +61 -0
  25. xero_python-2.0.0/tests/test_api_client/test_deserializer.py +383 -0
  26. xero_python-2.0.0/tests/test_api_client/test_oauth2.py +249 -0
  27. xero_python-2.0.0/tests/test_api_client/test_serializer.py +391 -0
  28. xero_python-2.0.0/tests/test_executor.py +24 -0
  29. xero_python-2.0.0/tests/test_single_dispatch_str.py +99 -0
  30. xero_python-2.0.0/xero_python/__init__.py +5 -0
  31. xero_python-2.0.0/xero_python/accounting/__init__.py +158 -0
  32. xero_python-2.0.0/xero_python/accounting/api/__init__.py +4 -0
  33. xero_python-2.0.0/xero_python/accounting/api/accounting_api.py +20860 -0
  34. xero_python-2.0.0/xero_python/accounting/api/exception_handler.py +16 -0
  35. xero_python-2.0.0/xero_python/accounting/models/__init__.py +153 -0
  36. xero_python-2.0.0/xero_python/accounting/models/account.py +698 -0
  37. xero_python-2.0.0/xero_python/accounting/models/account_type.py +44 -0
  38. xero_python-2.0.0/xero_python/accounting/models/accounts.py +64 -0
  39. xero_python-2.0.0/xero_python/accounting/models/accounts_payable.py +88 -0
  40. xero_python-2.0.0/xero_python/accounting/models/accounts_receivable.py +88 -0
  41. xero_python-2.0.0/xero_python/accounting/models/action.py +101 -0
  42. xero_python-2.0.0/xero_python/accounting/models/actions.py +64 -0
  43. xero_python-2.0.0/xero_python/accounting/models/address.py +388 -0
  44. xero_python-2.0.0/xero_python/accounting/models/address_for_organisation.py +388 -0
  45. xero_python-2.0.0/xero_python/accounting/models/allocation.py +335 -0
  46. xero_python-2.0.0/xero_python/accounting/models/allocations.py +64 -0
  47. xero_python-2.0.0/xero_python/accounting/models/attachment.py +218 -0
  48. xero_python-2.0.0/xero_python/accounting/models/attachments.py +64 -0
  49. xero_python-2.0.0/xero_python/accounting/models/balance_details.py +128 -0
  50. xero_python-2.0.0/xero_python/accounting/models/balances.py +94 -0
  51. xero_python-2.0.0/xero_python/accounting/models/bank_transaction.py +711 -0
  52. xero_python-2.0.0/xero_python/accounting/models/bank_transactions.py +64 -0
  53. xero_python-2.0.0/xero_python/accounting/models/bank_transfer.py +455 -0
  54. xero_python-2.0.0/xero_python/accounting/models/bank_transfers.py +64 -0
  55. xero_python-2.0.0/xero_python/accounting/models/batch_payment.py +572 -0
  56. xero_python-2.0.0/xero_python/accounting/models/batch_payment_delete.py +98 -0
  57. xero_python-2.0.0/xero_python/accounting/models/batch_payment_delete_by_url_param.py +69 -0
  58. xero_python-2.0.0/xero_python/accounting/models/batch_payment_details.py +198 -0
  59. xero_python-2.0.0/xero_python/accounting/models/batch_payments.py +64 -0
  60. xero_python-2.0.0/xero_python/accounting/models/bill.py +90 -0
  61. xero_python-2.0.0/xero_python/accounting/models/branding_theme.py +227 -0
  62. xero_python-2.0.0/xero_python/accounting/models/branding_themes.py +64 -0
  63. xero_python-2.0.0/xero_python/accounting/models/budget.py +228 -0
  64. xero_python-2.0.0/xero_python/accounting/models/budget_balance.py +161 -0
  65. xero_python-2.0.0/xero_python/accounting/models/budget_line.py +126 -0
  66. xero_python-2.0.0/xero_python/accounting/models/budget_lines.py +161 -0
  67. xero_python-2.0.0/xero_python/accounting/models/budgets.py +64 -0
  68. xero_python-2.0.0/xero_python/accounting/models/cis_org_setting.py +128 -0
  69. xero_python-2.0.0/xero_python/accounting/models/cis_org_settings.py +64 -0
  70. xero_python-2.0.0/xero_python/accounting/models/cis_setting.py +92 -0
  71. xero_python-2.0.0/xero_python/accounting/models/cis_settings.py +64 -0
  72. xero_python-2.0.0/xero_python/accounting/models/contact.py +1319 -0
  73. xero_python-2.0.0/xero_python/accounting/models/contact_group.py +165 -0
  74. xero_python-2.0.0/xero_python/accounting/models/contact_groups.py +64 -0
  75. xero_python-2.0.0/xero_python/accounting/models/contact_person.py +160 -0
  76. xero_python-2.0.0/xero_python/accounting/models/contacts.py +64 -0
  77. xero_python-2.0.0/xero_python/accounting/models/conversion_balances.py +126 -0
  78. xero_python-2.0.0/xero_python/accounting/models/conversion_date.py +92 -0
  79. xero_python-2.0.0/xero_python/accounting/models/country_code.py +266 -0
  80. xero_python-2.0.0/xero_python/accounting/models/credit_note.py +934 -0
  81. xero_python-2.0.0/xero_python/accounting/models/credit_notes.py +64 -0
  82. xero_python-2.0.0/xero_python/accounting/models/currencies.py +64 -0
  83. xero_python-2.0.0/xero_python/accounting/models/currency.py +90 -0
  84. xero_python-2.0.0/xero_python/accounting/models/currency_code.py +194 -0
  85. xero_python-2.0.0/xero_python/accounting/models/element.py +264 -0
  86. xero_python-2.0.0/xero_python/accounting/models/employee.py +297 -0
  87. xero_python-2.0.0/xero_python/accounting/models/employees.py +64 -0
  88. xero_python-2.0.0/xero_python/accounting/models/error.py +156 -0
  89. xero_python-2.0.0/xero_python/accounting/models/expense_claim.py +404 -0
  90. xero_python-2.0.0/xero_python/accounting/models/expense_claims.py +64 -0
  91. xero_python-2.0.0/xero_python/accounting/models/external_link.py +136 -0
  92. xero_python-2.0.0/xero_python/accounting/models/history_record.py +156 -0
  93. xero_python-2.0.0/xero_python/accounting/models/history_records.py +64 -0
  94. xero_python-2.0.0/xero_python/accounting/models/import_summary.py +91 -0
  95. xero_python-2.0.0/xero_python/accounting/models/import_summary_accounts.py +303 -0
  96. xero_python-2.0.0/xero_python/accounting/models/import_summary_object.py +64 -0
  97. xero_python-2.0.0/xero_python/accounting/models/import_summary_organisation.py +64 -0
  98. xero_python-2.0.0/xero_python/accounting/models/invoice.py +1239 -0
  99. xero_python-2.0.0/xero_python/accounting/models/invoice_reminder.py +66 -0
  100. xero_python-2.0.0/xero_python/accounting/models/invoice_reminders.py +64 -0
  101. xero_python-2.0.0/xero_python/accounting/models/invoices.py +64 -0
  102. xero_python-2.0.0/xero_python/accounting/models/item.py +525 -0
  103. xero_python-2.0.0/xero_python/accounting/models/items.py +64 -0
  104. xero_python-2.0.0/xero_python/accounting/models/journal.py +312 -0
  105. xero_python-2.0.0/xero_python/accounting/models/journal_line.py +390 -0
  106. xero_python-2.0.0/xero_python/accounting/models/journals.py +64 -0
  107. xero_python-2.0.0/xero_python/accounting/models/line_amount_types.py +29 -0
  108. xero_python-2.0.0/xero_python/accounting/models/line_item.py +477 -0
  109. xero_python-2.0.0/xero_python/accounting/models/line_item_item.py +126 -0
  110. xero_python-2.0.0/xero_python/accounting/models/line_item_tracking.py +161 -0
  111. xero_python-2.0.0/xero_python/accounting/models/linked_transaction.py +397 -0
  112. xero_python-2.0.0/xero_python/accounting/models/linked_transactions.py +64 -0
  113. xero_python-2.0.0/xero_python/accounting/models/manual_journal.py +467 -0
  114. xero_python-2.0.0/xero_python/accounting/models/manual_journal_line.py +276 -0
  115. xero_python-2.0.0/xero_python/accounting/models/manual_journals.py +64 -0
  116. xero_python-2.0.0/xero_python/accounting/models/online_invoice.py +66 -0
  117. xero_python-2.0.0/xero_python/accounting/models/online_invoices.py +64 -0
  118. xero_python-2.0.0/xero_python/accounting/models/organisation.py +1140 -0
  119. xero_python-2.0.0/xero_python/accounting/models/organisations.py +64 -0
  120. xero_python-2.0.0/xero_python/accounting/models/overpayment.py +612 -0
  121. xero_python-2.0.0/xero_python/accounting/models/overpayments.py +64 -0
  122. xero_python-2.0.0/xero_python/accounting/models/payment.py +843 -0
  123. xero_python-2.0.0/xero_python/accounting/models/payment_delete.py +69 -0
  124. xero_python-2.0.0/xero_python/accounting/models/payment_service.py +218 -0
  125. xero_python-2.0.0/xero_python/accounting/models/payment_services.py +64 -0
  126. xero_python-2.0.0/xero_python/accounting/models/payment_term.py +88 -0
  127. xero_python-2.0.0/xero_python/accounting/models/payment_term_type.py +30 -0
  128. xero_python-2.0.0/xero_python/accounting/models/payments.py +64 -0
  129. xero_python-2.0.0/xero_python/accounting/models/phone.py +189 -0
  130. xero_python-2.0.0/xero_python/accounting/models/prepayment.py +642 -0
  131. xero_python-2.0.0/xero_python/accounting/models/prepayments.py +64 -0
  132. xero_python-2.0.0/xero_python/accounting/models/purchase.py +156 -0
  133. xero_python-2.0.0/xero_python/accounting/models/purchase_order.py +866 -0
  134. xero_python-2.0.0/xero_python/accounting/models/purchase_orders.py +64 -0
  135. xero_python-2.0.0/xero_python/accounting/models/quote.py +757 -0
  136. xero_python-2.0.0/xero_python/accounting/models/quote_line_amount_types.py +29 -0
  137. xero_python-2.0.0/xero_python/accounting/models/quote_status_codes.py +32 -0
  138. xero_python-2.0.0/xero_python/accounting/models/quotes.py +64 -0
  139. xero_python-2.0.0/xero_python/accounting/models/receipt.py +574 -0
  140. xero_python-2.0.0/xero_python/accounting/models/receipts.py +64 -0
  141. xero_python-2.0.0/xero_python/accounting/models/repeating_invoice.py +634 -0
  142. xero_python-2.0.0/xero_python/accounting/models/repeating_invoices.py +64 -0
  143. xero_python-2.0.0/xero_python/accounting/models/report.py +225 -0
  144. xero_python-2.0.0/xero_python/accounting/models/report_attribute.py +88 -0
  145. xero_python-2.0.0/xero_python/accounting/models/report_cell.py +88 -0
  146. xero_python-2.0.0/xero_python/accounting/models/report_fields.py +116 -0
  147. xero_python-2.0.0/xero_python/accounting/models/report_row.py +112 -0
  148. xero_python-2.0.0/xero_python/accounting/models/report_rows.py +146 -0
  149. xero_python-2.0.0/xero_python/accounting/models/report_with_row.py +301 -0
  150. xero_python-2.0.0/xero_python/accounting/models/report_with_rows.py +64 -0
  151. xero_python-2.0.0/xero_python/accounting/models/reports.py +64 -0
  152. xero_python-2.0.0/xero_python/accounting/models/request_empty.py +66 -0
  153. xero_python-2.0.0/xero_python/accounting/models/row_type.py +30 -0
  154. xero_python-2.0.0/xero_python/accounting/models/sales_tracking_category.py +97 -0
  155. xero_python-2.0.0/xero_python/accounting/models/schedule.py +273 -0
  156. xero_python-2.0.0/xero_python/accounting/models/setup.py +124 -0
  157. xero_python-2.0.0/xero_python/accounting/models/tax_component.py +156 -0
  158. xero_python-2.0.0/xero_python/accounting/models/tax_rate.py +516 -0
  159. xero_python-2.0.0/xero_python/accounting/models/tax_rates.py +64 -0
  160. xero_python-2.0.0/xero_python/accounting/models/tax_type.py +146 -0
  161. xero_python-2.0.0/xero_python/accounting/models/ten_ninety_nine_contact.py +787 -0
  162. xero_python-2.0.0/xero_python/accounting/models/ten_nintey_nine_contact.py +683 -0
  163. xero_python-2.0.0/xero_python/accounting/models/time_zone.py +167 -0
  164. xero_python-2.0.0/xero_python/accounting/models/tracking_categories.py +64 -0
  165. xero_python-2.0.0/xero_python/accounting/models/tracking_category.py +237 -0
  166. xero_python-2.0.0/xero_python/accounting/models/tracking_option.py +170 -0
  167. xero_python-2.0.0/xero_python/accounting/models/tracking_options.py +64 -0
  168. xero_python-2.0.0/xero_python/accounting/models/user.py +265 -0
  169. xero_python-2.0.0/xero_python/accounting/models/users.py +64 -0
  170. xero_python-2.0.0/xero_python/accounting/models/validation_error.py +66 -0
  171. xero_python-2.0.0/xero_python/api_client/__init__.py +792 -0
  172. xero_python-2.0.0/xero_python/api_client/configuration.py +234 -0
  173. xero_python-2.0.0/xero_python/api_client/deserializer.py +288 -0
  174. xero_python-2.0.0/xero_python/api_client/oauth2.py +327 -0
  175. xero_python-2.0.0/xero_python/api_client/serializer.py +223 -0
  176. xero_python-2.0.0/xero_python/appstore/__init__.py +29 -0
  177. xero_python-2.0.0/xero_python/appstore/api/__init__.py +4 -0
  178. xero_python-2.0.0/xero_python/appstore/api/app_store_api.py +388 -0
  179. xero_python-2.0.0/xero_python/appstore/models/__init__.py +24 -0
  180. xero_python-2.0.0/xero_python/appstore/models/create_usage_record.py +98 -0
  181. xero_python-2.0.0/xero_python/appstore/models/plan.py +180 -0
  182. xero_python-2.0.0/xero_python/appstore/models/price.py +125 -0
  183. xero_python-2.0.0/xero_python/appstore/models/problem_details.py +206 -0
  184. xero_python-2.0.0/xero_python/appstore/models/product.py +193 -0
  185. xero_python-2.0.0/xero_python/appstore/models/subscription.py +301 -0
  186. xero_python-2.0.0/xero_python/appstore/models/subscription_item.py +299 -0
  187. xero_python-2.0.0/xero_python/appstore/models/update_usage_record.py +69 -0
  188. xero_python-2.0.0/xero_python/appstore/models/usage_record.py +300 -0
  189. xero_python-2.0.0/xero_python/appstore/models/usage_records_list.py +69 -0
  190. xero_python-2.0.0/xero_python/assets/__init__.py +35 -0
  191. xero_python-2.0.0/xero_python/assets/api/__init__.py +4 -0
  192. xero_python-2.0.0/xero_python/assets/api/asset_api.py +537 -0
  193. xero_python-2.0.0/xero_python/assets/models/__init__.py +30 -0
  194. xero_python-2.0.0/xero_python/assets/models/asset.py +505 -0
  195. xero_python-2.0.0/xero_python/assets/models/asset_status.py +29 -0
  196. xero_python-2.0.0/xero_python/assets/models/asset_status_query_param.py +29 -0
  197. xero_python-2.0.0/xero_python/assets/models/asset_type.py +253 -0
  198. xero_python-2.0.0/xero_python/assets/models/assets.py +88 -0
  199. xero_python-2.0.0/xero_python/assets/models/book_depreciation_detail.py +247 -0
  200. xero_python-2.0.0/xero_python/assets/models/book_depreciation_setting.py +311 -0
  201. xero_python-2.0.0/xero_python/assets/models/error.py +189 -0
  202. xero_python-2.0.0/xero_python/assets/models/field_validation_errors_element.py +218 -0
  203. xero_python-2.0.0/xero_python/assets/models/pagination.py +148 -0
  204. xero_python-2.0.0/xero_python/assets/models/resource_validation_errors_element.py +189 -0
  205. xero_python-2.0.0/xero_python/assets/models/setting.py +286 -0
  206. xero_python-2.0.0/xero_python/exceptions/__init__.py +157 -0
  207. xero_python-2.0.0/xero_python/exceptions/http_status_exceptions.py +97 -0
  208. xero_python-2.0.0/xero_python/file/__init__.py +28 -0
  209. xero_python-2.0.0/xero_python/file/api/__init__.py +4 -0
  210. xero_python-2.0.0/xero_python/file/api/files_api.py +1604 -0
  211. xero_python-2.0.0/xero_python/file/models/__init__.py +23 -0
  212. xero_python-2.0.0/xero_python/file/models/association.py +152 -0
  213. xero_python-2.0.0/xero_python/file/models/file_object.py +274 -0
  214. xero_python-2.0.0/xero_python/file/models/files.py +148 -0
  215. xero_python-2.0.0/xero_python/file/models/folder.py +184 -0
  216. xero_python-2.0.0/xero_python/file/models/folders.py +64 -0
  217. xero_python-2.0.0/xero_python/file/models/inline_object.py +150 -0
  218. xero_python-2.0.0/xero_python/file/models/inline_object1.py +150 -0
  219. xero_python-2.0.0/xero_python/file/models/object_group.py +38 -0
  220. xero_python-2.0.0/xero_python/file/models/object_type.py +82 -0
  221. xero_python-2.0.0/xero_python/file/models/upload_object.py +159 -0
  222. xero_python-2.0.0/xero_python/file/models/user.py +185 -0
  223. xero_python-2.0.0/xero_python/finance/__init__.py +87 -0
  224. xero_python-2.0.0/xero_python/finance/api/__init__.py +4 -0
  225. xero_python-2.0.0/xero_python/finance/api/finance_api.py +1030 -0
  226. xero_python-2.0.0/xero_python/finance/models/__init__.py +82 -0
  227. xero_python-2.0.0/xero_python/finance/models/account_usage.py +421 -0
  228. xero_python-2.0.0/xero_python/finance/models/account_usage_response.py +154 -0
  229. xero_python-2.0.0/xero_python/finance/models/balance_sheet_account_detail.py +184 -0
  230. xero_python-2.0.0/xero_python/finance/models/balance_sheet_account_group.py +90 -0
  231. xero_python-2.0.0/xero_python/finance/models/balance_sheet_account_type.py +126 -0
  232. xero_python-2.0.0/xero_python/finance/models/balance_sheet_response.py +150 -0
  233. xero_python-2.0.0/xero_python/finance/models/bank_statement_accounting_response.py +160 -0
  234. xero_python-2.0.0/xero_python/finance/models/bank_statement_response.py +94 -0
  235. xero_python-2.0.0/xero_python/finance/models/bank_transaction_response.py +216 -0
  236. xero_python-2.0.0/xero_python/finance/models/cash_account_response.py +189 -0
  237. xero_python-2.0.0/xero_python/finance/models/cash_balance.py +131 -0
  238. xero_python-2.0.0/xero_python/finance/models/cash_validation_response.py +183 -0
  239. xero_python-2.0.0/xero_python/finance/models/cashflow_account.py +247 -0
  240. xero_python-2.0.0/xero_python/finance/models/cashflow_activity.py +124 -0
  241. xero_python-2.0.0/xero_python/finance/models/cashflow_response.py +158 -0
  242. xero_python-2.0.0/xero_python/finance/models/cashflow_type.py +122 -0
  243. xero_python-2.0.0/xero_python/finance/models/contact_detail.py +214 -0
  244. xero_python-2.0.0/xero_python/finance/models/contact_response.py +92 -0
  245. xero_python-2.0.0/xero_python/finance/models/contact_total_detail.py +128 -0
  246. xero_python-2.0.0/xero_python/finance/models/contact_total_other.py +160 -0
  247. xero_python-2.0.0/xero_python/finance/models/credit_note_response.py +154 -0
  248. xero_python-2.0.0/xero_python/finance/models/current_statement_response.py +218 -0
  249. xero_python-2.0.0/xero_python/finance/models/data_source_response.py +479 -0
  250. xero_python-2.0.0/xero_python/finance/models/history_record_response.py +184 -0
  251. xero_python-2.0.0/xero_python/finance/models/income_by_contact_response.py +239 -0
  252. xero_python-2.0.0/xero_python/finance/models/invoice_response.py +154 -0
  253. xero_python-2.0.0/xero_python/finance/models/line_item_response.py +156 -0
  254. xero_python-2.0.0/xero_python/finance/models/lock_history_model.py +128 -0
  255. xero_python-2.0.0/xero_python/finance/models/lock_history_response.py +126 -0
  256. xero_python-2.0.0/xero_python/finance/models/manual_journal_total.py +66 -0
  257. xero_python-2.0.0/xero_python/finance/models/overpayment_response.py +154 -0
  258. xero_python-2.0.0/xero_python/finance/models/payment_response.py +326 -0
  259. xero_python-2.0.0/xero_python/finance/models/pnl_account.py +218 -0
  260. xero_python-2.0.0/xero_python/finance/models/pnl_account_class.py +92 -0
  261. xero_python-2.0.0/xero_python/finance/models/pnl_account_type.py +118 -0
  262. xero_python-2.0.0/xero_python/finance/models/practice_response.py +189 -0
  263. xero_python-2.0.0/xero_python/finance/models/prepayment_response.py +154 -0
  264. xero_python-2.0.0/xero_python/finance/models/problem.py +146 -0
  265. xero_python-2.0.0/xero_python/finance/models/problem_type.py +37 -0
  266. xero_python-2.0.0/xero_python/finance/models/profit_and_loss_response.py +185 -0
  267. xero_python-2.0.0/xero_python/finance/models/report_history_model.py +128 -0
  268. xero_python-2.0.0/xero_python/finance/models/report_history_response.py +124 -0
  269. xero_python-2.0.0/xero_python/finance/models/statement_balance_response.py +92 -0
  270. xero_python-2.0.0/xero_python/finance/models/statement_line_response.py +450 -0
  271. xero_python-2.0.0/xero_python/finance/models/statement_lines_response.py +535 -0
  272. xero_python-2.0.0/xero_python/finance/models/statement_response.py +334 -0
  273. xero_python-2.0.0/xero_python/finance/models/total_detail.py +128 -0
  274. xero_python-2.0.0/xero_python/finance/models/total_other.py +128 -0
  275. xero_python-2.0.0/xero_python/finance/models/trial_balance_account.py +330 -0
  276. xero_python-2.0.0/xero_python/finance/models/trial_balance_entry.py +92 -0
  277. xero_python-2.0.0/xero_python/finance/models/trial_balance_movement.py +154 -0
  278. xero_python-2.0.0/xero_python/finance/models/trial_balance_response.py +126 -0
  279. xero_python-2.0.0/xero_python/finance/models/user_activities_response.py +124 -0
  280. xero_python-2.0.0/xero_python/finance/models/user_response.py +388 -0
  281. xero_python-2.0.0/xero_python/identity/__init__.py +22 -0
  282. xero_python-2.0.0/xero_python/identity/api/__init__.py +4 -0
  283. xero_python-2.0.0/xero_python/identity/api/exception_handler.py +18 -0
  284. xero_python-2.0.0/xero_python/identity/api/identity_api.py +180 -0
  285. xero_python-2.0.0/xero_python/identity/models/__init__.py +17 -0
  286. xero_python-2.0.0/xero_python/identity/models/access_token.py +189 -0
  287. xero_python-2.0.0/xero_python/identity/models/connection.py +247 -0
  288. xero_python-2.0.0/xero_python/identity/models/refresh_token.py +156 -0
  289. xero_python-2.0.0/xero_python/models.py +69 -0
  290. xero_python-2.0.0/xero_python/payrollau/__init__.py +129 -0
  291. xero_python-2.0.0/xero_python/payrollau/api/__init__.py +4 -0
  292. xero_python-2.0.0/xero_python/payrollau/api/payroll_au_api.py +2738 -0
  293. xero_python-2.0.0/xero_python/payrollau/models/__init__.py +124 -0
  294. xero_python-2.0.0/xero_python/payrollau/models/account.py +152 -0
  295. xero_python-2.0.0/xero_python/payrollau/models/account_type.py +49 -0
  296. xero_python-2.0.0/xero_python/payrollau/models/allowance_category.py +33 -0
  297. xero_python-2.0.0/xero_python/payrollau/models/allowance_type.py +36 -0
  298. xero_python-2.0.0/xero_python/payrollau/models/api_exception.py +122 -0
  299. xero_python-2.0.0/xero_python/payrollau/models/bank_account.py +218 -0
  300. xero_python-2.0.0/xero_python/payrollau/models/calendar_type.py +32 -0
  301. xero_python-2.0.0/xero_python/payrollau/models/country_of_residence.py +276 -0
  302. xero_python-2.0.0/xero_python/payrollau/models/deduction_line.py +190 -0
  303. xero_python-2.0.0/xero_python/payrollau/models/deduction_type.py +317 -0
  304. xero_python-2.0.0/xero_python/payrollau/models/deduction_type_calculation_type.py +29 -0
  305. xero_python-2.0.0/xero_python/payrollau/models/earnings_line.py +306 -0
  306. xero_python-2.0.0/xero_python/payrollau/models/earnings_rate.py +638 -0
  307. xero_python-2.0.0/xero_python/payrollau/models/earnings_rate_calculation_type.py +29 -0
  308. xero_python-2.0.0/xero_python/payrollau/models/earnings_type.py +40 -0
  309. xero_python-2.0.0/xero_python/payrollau/models/employee.py +1093 -0
  310. xero_python-2.0.0/xero_python/payrollau/models/employee_status.py +28 -0
  311. xero_python-2.0.0/xero_python/payrollau/models/employees.py +64 -0
  312. xero_python-2.0.0/xero_python/payrollau/models/employment_basis.py +32 -0
  313. xero_python-2.0.0/xero_python/payrollau/models/employment_termination_payment_type.py +28 -0
  314. xero_python-2.0.0/xero_python/payrollau/models/employment_type.py +28 -0
  315. xero_python-2.0.0/xero_python/payrollau/models/entitlement_final_pay_payout_type.py +28 -0
  316. xero_python-2.0.0/xero_python/payrollau/models/home_address.py +219 -0
  317. xero_python-2.0.0/xero_python/payrollau/models/income_type.py +31 -0
  318. xero_python-2.0.0/xero_python/payrollau/models/leave_accrual_line.py +128 -0
  319. xero_python-2.0.0/xero_python/payrollau/models/leave_application.py +359 -0
  320. xero_python-2.0.0/xero_python/payrollau/models/leave_applications.py +64 -0
  321. xero_python-2.0.0/xero_python/payrollau/models/leave_balance.py +160 -0
  322. xero_python-2.0.0/xero_python/payrollau/models/leave_category_code.py +38 -0
  323. xero_python-2.0.0/xero_python/payrollau/models/leave_earnings_line.py +158 -0
  324. xero_python-2.0.0/xero_python/payrollau/models/leave_line.py +284 -0
  325. xero_python-2.0.0/xero_python/payrollau/models/leave_line_calculation_type.py +30 -0
  326. xero_python-2.0.0/xero_python/payrollau/models/leave_lines.py +64 -0
  327. xero_python-2.0.0/xero_python/payrollau/models/leave_period.py +158 -0
  328. xero_python-2.0.0/xero_python/payrollau/models/leave_period_status.py +30 -0
  329. xero_python-2.0.0/xero_python/payrollau/models/leave_type.py +366 -0
  330. xero_python-2.0.0/xero_python/payrollau/models/leave_type_contribution_type.py +30 -0
  331. xero_python-2.0.0/xero_python/payrollau/models/manual_tax_type.py +32 -0
  332. xero_python-2.0.0/xero_python/payrollau/models/opening_balances.py +264 -0
  333. xero_python-2.0.0/xero_python/payrollau/models/paid_leave_earnings_line.py +195 -0
  334. xero_python-2.0.0/xero_python/payrollau/models/pay_item.py +152 -0
  335. xero_python-2.0.0/xero_python/payrollau/models/pay_items.py +64 -0
  336. xero_python-2.0.0/xero_python/payrollau/models/pay_out_type.py +28 -0
  337. xero_python-2.0.0/xero_python/payrollau/models/pay_run.py +509 -0
  338. xero_python-2.0.0/xero_python/payrollau/models/pay_run_status.py +28 -0
  339. xero_python-2.0.0/xero_python/payrollau/models/pay_runs.py +64 -0
  340. xero_python-2.0.0/xero_python/payrollau/models/pay_template.py +179 -0
  341. xero_python-2.0.0/xero_python/payrollau/models/payment_frequency_type.py +33 -0
  342. xero_python-2.0.0/xero_python/payrollau/models/payroll_calendar.py +274 -0
  343. xero_python-2.0.0/xero_python/payrollau/models/payroll_calendars.py +64 -0
  344. xero_python-2.0.0/xero_python/payrollau/models/payslip.py +579 -0
  345. xero_python-2.0.0/xero_python/payrollau/models/payslip_lines.py +260 -0
  346. xero_python-2.0.0/xero_python/payrollau/models/payslip_object.py +64 -0
  347. xero_python-2.0.0/xero_python/payrollau/models/payslip_summary.py +392 -0
  348. xero_python-2.0.0/xero_python/payrollau/models/payslips.py +64 -0
  349. xero_python-2.0.0/xero_python/payrollau/models/rate_type.py +29 -0
  350. xero_python-2.0.0/xero_python/payrollau/models/reimbursement_line.py +165 -0
  351. xero_python-2.0.0/xero_python/payrollau/models/reimbursement_lines.py +64 -0
  352. xero_python-2.0.0/xero_python/payrollau/models/reimbursement_type.py +194 -0
  353. xero_python-2.0.0/xero_python/payrollau/models/residency_status.py +29 -0
  354. xero_python-2.0.0/xero_python/payrollau/models/senior_marital_status.py +29 -0
  355. xero_python-2.0.0/xero_python/payrollau/models/settings.py +158 -0
  356. xero_python-2.0.0/xero_python/payrollau/models/settings_object.py +64 -0
  357. xero_python-2.0.0/xero_python/payrollau/models/settings_tracking_categories.py +94 -0
  358. xero_python-2.0.0/xero_python/payrollau/models/settings_tracking_categories_employee_groups.py +97 -0
  359. xero_python-2.0.0/xero_python/payrollau/models/settings_tracking_categories_timesheet_categories.py +97 -0
  360. xero_python-2.0.0/xero_python/payrollau/models/state.py +34 -0
  361. xero_python-2.0.0/xero_python/payrollau/models/super_fund.py +422 -0
  362. xero_python-2.0.0/xero_python/payrollau/models/super_fund_product.py +149 -0
  363. xero_python-2.0.0/xero_python/payrollau/models/super_fund_products.py +64 -0
  364. xero_python-2.0.0/xero_python/payrollau/models/super_fund_type.py +28 -0
  365. xero_python-2.0.0/xero_python/payrollau/models/super_funds.py +64 -0
  366. xero_python-2.0.0/xero_python/payrollau/models/super_line.py +272 -0
  367. xero_python-2.0.0/xero_python/payrollau/models/super_membership.py +134 -0
  368. xero_python-2.0.0/xero_python/payrollau/models/superannuation_calculation_type.py +29 -0
  369. xero_python-2.0.0/xero_python/payrollau/models/superannuation_contribution_type.py +30 -0
  370. xero_python-2.0.0/xero_python/payrollau/models/superannuation_line.py +301 -0
  371. xero_python-2.0.0/xero_python/payrollau/models/tax_declaration.py +659 -0
  372. xero_python-2.0.0/xero_python/payrollau/models/tax_line.py +216 -0
  373. xero_python-2.0.0/xero_python/payrollau/models/tax_scale_type.py +32 -0
  374. xero_python-2.0.0/xero_python/payrollau/models/tfn_exemption_type.py +30 -0
  375. xero_python-2.0.0/xero_python/payrollau/models/timesheet.py +310 -0
  376. xero_python-2.0.0/xero_python/payrollau/models/timesheet_line.py +160 -0
  377. xero_python-2.0.0/xero_python/payrollau/models/timesheet_object.py +64 -0
  378. xero_python-2.0.0/xero_python/payrollau/models/timesheet_status.py +31 -0
  379. xero_python-2.0.0/xero_python/payrollau/models/timesheets.py +64 -0
  380. xero_python-2.0.0/xero_python/payrollau/models/validation_error.py +66 -0
  381. xero_python-2.0.0/xero_python/payrollau/models/work_condition.py +29 -0
  382. xero_python-2.0.0/xero_python/payrollnz/__init__.py +146 -0
  383. xero_python-2.0.0/xero_python/payrollnz/api/__init__.py +4 -0
  384. xero_python-2.0.0/xero_python/payrollnz/api/payroll_nz_api.py +5736 -0
  385. xero_python-2.0.0/xero_python/payrollnz/models/__init__.py +141 -0
  386. xero_python-2.0.0/xero_python/payrollnz/models/account.py +164 -0
  387. xero_python-2.0.0/xero_python/payrollnz/models/accounts.py +64 -0
  388. xero_python-2.0.0/xero_python/payrollnz/models/address.py +227 -0
  389. xero_python-2.0.0/xero_python/payrollnz/models/bank_account.py +294 -0
  390. xero_python-2.0.0/xero_python/payrollnz/models/benefit.py +368 -0
  391. xero_python-2.0.0/xero_python/payrollnz/models/calendar_type.py +33 -0
  392. xero_python-2.0.0/xero_python/payrollnz/models/deduction.py +242 -0
  393. xero_python-2.0.0/xero_python/payrollnz/models/deduction_line.py +189 -0
  394. xero_python-2.0.0/xero_python/payrollnz/models/deduction_object.py +120 -0
  395. xero_python-2.0.0/xero_python/payrollnz/models/deductions.py +120 -0
  396. xero_python-2.0.0/xero_python/payrollnz/models/earnings_line.py +334 -0
  397. xero_python-2.0.0/xero_python/payrollnz/models/earnings_order.py +190 -0
  398. xero_python-2.0.0/xero_python/payrollnz/models/earnings_order_object.py +122 -0
  399. xero_python-2.0.0/xero_python/payrollnz/models/earnings_orders.py +122 -0
  400. xero_python-2.0.0/xero_python/payrollnz/models/earnings_rate.py +389 -0
  401. xero_python-2.0.0/xero_python/payrollnz/models/earnings_rate_object.py +120 -0
  402. xero_python-2.0.0/xero_python/payrollnz/models/earnings_rates.py +122 -0
  403. xero_python-2.0.0/xero_python/payrollnz/models/earnings_template.py +218 -0
  404. xero_python-2.0.0/xero_python/payrollnz/models/earnings_template_object.py +122 -0
  405. xero_python-2.0.0/xero_python/payrollnz/models/employee.py +486 -0
  406. xero_python-2.0.0/xero_python/payrollnz/models/employee_earnings_templates.py +122 -0
  407. xero_python-2.0.0/xero_python/payrollnz/models/employee_leave.py +259 -0
  408. xero_python-2.0.0/xero_python/payrollnz/models/employee_leave_balance.py +156 -0
  409. xero_python-2.0.0/xero_python/payrollnz/models/employee_leave_balances.py +122 -0
  410. xero_python-2.0.0/xero_python/payrollnz/models/employee_leave_object.py +116 -0
  411. xero_python-2.0.0/xero_python/payrollnz/models/employee_leave_setup.py +255 -0
  412. xero_python-2.0.0/xero_python/payrollnz/models/employee_leave_setup_object.py +120 -0
  413. xero_python-2.0.0/xero_python/payrollnz/models/employee_leave_type.py +349 -0
  414. xero_python-2.0.0/xero_python/payrollnz/models/employee_leave_type_object.py +120 -0
  415. xero_python-2.0.0/xero_python/payrollnz/models/employee_leave_types.py +120 -0
  416. xero_python-2.0.0/xero_python/payrollnz/models/employee_leaves.py +116 -0
  417. xero_python-2.0.0/xero_python/payrollnz/models/employee_object.py +120 -0
  418. xero_python-2.0.0/xero_python/payrollnz/models/employee_opening_balance.py +160 -0
  419. xero_python-2.0.0/xero_python/payrollnz/models/employee_opening_balances_object.py +122 -0
  420. xero_python-2.0.0/xero_python/payrollnz/models/employee_pay_template.py +96 -0
  421. xero_python-2.0.0/xero_python/payrollnz/models/employee_pay_template_object.py +120 -0
  422. xero_python-2.0.0/xero_python/payrollnz/models/employee_pay_templates.py +120 -0
  423. xero_python-2.0.0/xero_python/payrollnz/models/employee_statutory_leave_balance.py +149 -0
  424. xero_python-2.0.0/xero_python/payrollnz/models/employee_statutory_leave_balance_object.py +120 -0
  425. xero_python-2.0.0/xero_python/payrollnz/models/employee_statutory_leave_summary.py +272 -0
  426. xero_python-2.0.0/xero_python/payrollnz/models/employee_statutory_leaves_summaries.py +122 -0
  427. xero_python-2.0.0/xero_python/payrollnz/models/employee_statutory_sick_leave.py +547 -0
  428. xero_python-2.0.0/xero_python/payrollnz/models/employee_statutory_sick_leave_object.py +122 -0
  429. xero_python-2.0.0/xero_python/payrollnz/models/employee_statutory_sick_leaves.py +122 -0
  430. xero_python-2.0.0/xero_python/payrollnz/models/employee_tax.py +555 -0
  431. xero_python-2.0.0/xero_python/payrollnz/models/employee_tax_object.py +120 -0
  432. xero_python-2.0.0/xero_python/payrollnz/models/employees.py +120 -0
  433. xero_python-2.0.0/xero_python/payrollnz/models/employment.py +128 -0
  434. xero_python-2.0.0/xero_python/payrollnz/models/employment_object.py +120 -0
  435. xero_python-2.0.0/xero_python/payrollnz/models/gross_earnings_history.py +92 -0
  436. xero_python-2.0.0/xero_python/payrollnz/models/invalid_field.py +92 -0
  437. xero_python-2.0.0/xero_python/payrollnz/models/leave_accrual_line.py +92 -0
  438. xero_python-2.0.0/xero_python/payrollnz/models/leave_earnings_line.py +334 -0
  439. xero_python-2.0.0/xero_python/payrollnz/models/leave_period.py +169 -0
  440. xero_python-2.0.0/xero_python/payrollnz/models/leave_periods.py +120 -0
  441. xero_python-2.0.0/xero_python/payrollnz/models/leave_type.py +227 -0
  442. xero_python-2.0.0/xero_python/payrollnz/models/leave_type_object.py +120 -0
  443. xero_python-2.0.0/xero_python/payrollnz/models/leave_types.py +120 -0
  444. xero_python-2.0.0/xero_python/payrollnz/models/pagination.py +148 -0
  445. xero_python-2.0.0/xero_python/payrollnz/models/pay_run.py +411 -0
  446. xero_python-2.0.0/xero_python/payrollnz/models/pay_run_calendar.py +257 -0
  447. xero_python-2.0.0/xero_python/payrollnz/models/pay_run_calendar_object.py +122 -0
  448. xero_python-2.0.0/xero_python/payrollnz/models/pay_run_calendars.py +122 -0
  449. xero_python-2.0.0/xero_python/payrollnz/models/pay_run_object.py +120 -0
  450. xero_python-2.0.0/xero_python/payrollnz/models/pay_runs.py +120 -0
  451. xero_python-2.0.0/xero_python/payrollnz/models/pay_slip.py +897 -0
  452. xero_python-2.0.0/xero_python/payrollnz/models/pay_slip_object.py +120 -0
  453. xero_python-2.0.0/xero_python/payrollnz/models/pay_slips.py +120 -0
  454. xero_python-2.0.0/xero_python/payrollnz/models/payment_line.py +189 -0
  455. xero_python-2.0.0/xero_python/payrollnz/models/payment_method.py +99 -0
  456. xero_python-2.0.0/xero_python/payrollnz/models/payment_method_object.py +122 -0
  457. xero_python-2.0.0/xero_python/payrollnz/models/problem.py +214 -0
  458. xero_python-2.0.0/xero_python/payrollnz/models/reimbursement.py +338 -0
  459. xero_python-2.0.0/xero_python/payrollnz/models/reimbursement_line.py +189 -0
  460. xero_python-2.0.0/xero_python/payrollnz/models/reimbursement_object.py +120 -0
  461. xero_python-2.0.0/xero_python/payrollnz/models/reimbursements.py +122 -0
  462. xero_python-2.0.0/xero_python/payrollnz/models/salary_and_wage.py +373 -0
  463. xero_python-2.0.0/xero_python/payrollnz/models/salary_and_wage_object.py +122 -0
  464. xero_python-2.0.0/xero_python/payrollnz/models/salary_and_wages.py +122 -0
  465. xero_python-2.0.0/xero_python/payrollnz/models/settings.py +120 -0
  466. xero_python-2.0.0/xero_python/payrollnz/models/statutory_deduction.py +187 -0
  467. xero_python-2.0.0/xero_python/payrollnz/models/statutory_deduction_category.py +37 -0
  468. xero_python-2.0.0/xero_python/payrollnz/models/statutory_deduction_line.py +160 -0
  469. xero_python-2.0.0/xero_python/payrollnz/models/statutory_deduction_object.py +122 -0
  470. xero_python-2.0.0/xero_python/payrollnz/models/statutory_deductions.py +122 -0
  471. xero_python-2.0.0/xero_python/payrollnz/models/superannuation_line.py +218 -0
  472. xero_python-2.0.0/xero_python/payrollnz/models/superannuation_object.py +120 -0
  473. xero_python-2.0.0/xero_python/payrollnz/models/superannuations.py +120 -0
  474. xero_python-2.0.0/xero_python/payrollnz/models/tax_code.py +45 -0
  475. xero_python-2.0.0/xero_python/payrollnz/models/tax_line.py +189 -0
  476. xero_python-2.0.0/xero_python/payrollnz/models/tax_settings.py +225 -0
  477. xero_python-2.0.0/xero_python/payrollnz/models/timesheet.py +330 -0
  478. xero_python-2.0.0/xero_python/payrollnz/models/timesheet_earnings_line.py +334 -0
  479. xero_python-2.0.0/xero_python/payrollnz/models/timesheet_line.py +198 -0
  480. xero_python-2.0.0/xero_python/payrollnz/models/timesheet_line_object.py +122 -0
  481. xero_python-2.0.0/xero_python/payrollnz/models/timesheet_object.py +120 -0
  482. xero_python-2.0.0/xero_python/payrollnz/models/timesheets.py +120 -0
  483. xero_python-2.0.0/xero_python/payrollnz/models/tracking_categories.py +122 -0
  484. xero_python-2.0.0/xero_python/payrollnz/models/tracking_category.py +108 -0
  485. xero_python-2.0.0/xero_python/payrolluk/__init__.py +133 -0
  486. xero_python-2.0.0/xero_python/payrolluk/api/__init__.py +4 -0
  487. xero_python-2.0.0/xero_python/payrolluk/api/exception_handler.py +16 -0
  488. xero_python-2.0.0/xero_python/payrolluk/api/payroll_uk_api.py +5873 -0
  489. xero_python-2.0.0/xero_python/payrolluk/models/__init__.py +128 -0
  490. xero_python-2.0.0/xero_python/payrolluk/models/account.py +167 -0
  491. xero_python-2.0.0/xero_python/payrolluk/models/accounts.py +64 -0
  492. xero_python-2.0.0/xero_python/payrolluk/models/address.py +198 -0
  493. xero_python-2.0.0/xero_python/payrolluk/models/bank_account.py +133 -0
  494. xero_python-2.0.0/xero_python/payrolluk/models/benefit.py +492 -0
  495. xero_python-2.0.0/xero_python/payrolluk/models/benefit_line.py +189 -0
  496. xero_python-2.0.0/xero_python/payrolluk/models/benefit_object.py +120 -0
  497. xero_python-2.0.0/xero_python/payrolluk/models/benefits.py +120 -0
  498. xero_python-2.0.0/xero_python/payrolluk/models/court_order_line.py +92 -0
  499. xero_python-2.0.0/xero_python/payrolluk/models/deduction.py +550 -0
  500. xero_python-2.0.0/xero_python/payrolluk/models/deduction_line.py +156 -0
  501. xero_python-2.0.0/xero_python/payrolluk/models/deduction_object.py +120 -0
  502. xero_python-2.0.0/xero_python/payrolluk/models/deductions.py +120 -0
  503. xero_python-2.0.0/xero_python/payrolluk/models/earnings_line.py +305 -0
  504. xero_python-2.0.0/xero_python/payrolluk/models/earnings_order.py +190 -0
  505. xero_python-2.0.0/xero_python/payrolluk/models/earnings_order_object.py +122 -0
  506. xero_python-2.0.0/xero_python/payrolluk/models/earnings_orders.py +122 -0
  507. xero_python-2.0.0/xero_python/payrolluk/models/earnings_rate.py +397 -0
  508. xero_python-2.0.0/xero_python/payrolluk/models/earnings_rate_object.py +120 -0
  509. xero_python-2.0.0/xero_python/payrolluk/models/earnings_rates.py +122 -0
  510. xero_python-2.0.0/xero_python/payrolluk/models/earnings_template.py +218 -0
  511. xero_python-2.0.0/xero_python/payrolluk/models/earnings_template_object.py +122 -0
  512. xero_python-2.0.0/xero_python/payrolluk/models/employee.py +515 -0
  513. xero_python-2.0.0/xero_python/payrolluk/models/employee_leave.py +259 -0
  514. xero_python-2.0.0/xero_python/payrolluk/models/employee_leave_balance.py +156 -0
  515. xero_python-2.0.0/xero_python/payrolluk/models/employee_leave_balances.py +122 -0
  516. xero_python-2.0.0/xero_python/payrolluk/models/employee_leave_object.py +116 -0
  517. xero_python-2.0.0/xero_python/payrolluk/models/employee_leave_type.py +239 -0
  518. xero_python-2.0.0/xero_python/payrolluk/models/employee_leave_type_object.py +120 -0
  519. xero_python-2.0.0/xero_python/payrolluk/models/employee_leave_types.py +120 -0
  520. xero_python-2.0.0/xero_python/payrolluk/models/employee_leaves.py +116 -0
  521. xero_python-2.0.0/xero_python/payrolluk/models/employee_object.py +120 -0
  522. xero_python-2.0.0/xero_python/payrolluk/models/employee_opening_balances.py +218 -0
  523. xero_python-2.0.0/xero_python/payrolluk/models/employee_opening_balances_object.py +122 -0
  524. xero_python-2.0.0/xero_python/payrolluk/models/employee_pay_template.py +96 -0
  525. xero_python-2.0.0/xero_python/payrolluk/models/employee_pay_template_object.py +120 -0
  526. xero_python-2.0.0/xero_python/payrolluk/models/employee_pay_templates.py +122 -0
  527. xero_python-2.0.0/xero_python/payrolluk/models/employee_statutory_leave_balance.py +149 -0
  528. xero_python-2.0.0/xero_python/payrolluk/models/employee_statutory_leave_balance_object.py +120 -0
  529. xero_python-2.0.0/xero_python/payrolluk/models/employee_statutory_leave_summary.py +272 -0
  530. xero_python-2.0.0/xero_python/payrolluk/models/employee_statutory_leaves_summaries.py +122 -0
  531. xero_python-2.0.0/xero_python/payrolluk/models/employee_statutory_sick_leave.py +547 -0
  532. xero_python-2.0.0/xero_python/payrolluk/models/employee_statutory_sick_leave_object.py +122 -0
  533. xero_python-2.0.0/xero_python/payrolluk/models/employee_statutory_sick_leaves.py +122 -0
  534. xero_python-2.0.0/xero_python/payrolluk/models/employee_tax.py +363 -0
  535. xero_python-2.0.0/xero_python/payrolluk/models/employee_tax_object.py +120 -0
  536. xero_python-2.0.0/xero_python/payrolluk/models/employees.py +120 -0
  537. xero_python-2.0.0/xero_python/payrolluk/models/employment.py +184 -0
  538. xero_python-2.0.0/xero_python/payrolluk/models/employment_object.py +120 -0
  539. xero_python-2.0.0/xero_python/payrolluk/models/invalid_field.py +92 -0
  540. xero_python-2.0.0/xero_python/payrolluk/models/leave_accrual_line.py +92 -0
  541. xero_python-2.0.0/xero_python/payrolluk/models/leave_earnings_line.py +218 -0
  542. xero_python-2.0.0/xero_python/payrolluk/models/leave_period.py +169 -0
  543. xero_python-2.0.0/xero_python/payrolluk/models/leave_periods.py +120 -0
  544. xero_python-2.0.0/xero_python/payrolluk/models/leave_type.py +285 -0
  545. xero_python-2.0.0/xero_python/payrolluk/models/leave_type_object.py +120 -0
  546. xero_python-2.0.0/xero_python/payrolluk/models/leave_types.py +120 -0
  547. xero_python-2.0.0/xero_python/payrolluk/models/pagination.py +148 -0
  548. xero_python-2.0.0/xero_python/payrolluk/models/pay_run.py +430 -0
  549. xero_python-2.0.0/xero_python/payrolluk/models/pay_run_calendar.py +276 -0
  550. xero_python-2.0.0/xero_python/payrolluk/models/pay_run_calendar_object.py +122 -0
  551. xero_python-2.0.0/xero_python/payrolluk/models/pay_run_calendars.py +122 -0
  552. xero_python-2.0.0/xero_python/payrolluk/models/pay_run_object.py +120 -0
  553. xero_python-2.0.0/xero_python/payrolluk/models/pay_runs.py +120 -0
  554. xero_python-2.0.0/xero_python/payrolluk/models/payment_line.py +189 -0
  555. xero_python-2.0.0/xero_python/payrolluk/models/payment_method.py +102 -0
  556. xero_python-2.0.0/xero_python/payrolluk/models/payment_method_object.py +122 -0
  557. xero_python-2.0.0/xero_python/payrolluk/models/payslip.py +843 -0
  558. xero_python-2.0.0/xero_python/payrolluk/models/payslip_object.py +120 -0
  559. xero_python-2.0.0/xero_python/payrolluk/models/payslips.py +120 -0
  560. xero_python-2.0.0/xero_python/payrolluk/models/problem.py +214 -0
  561. xero_python-2.0.0/xero_python/payrolluk/models/reimbursement.py +162 -0
  562. xero_python-2.0.0/xero_python/payrolluk/models/reimbursement_line.py +128 -0
  563. xero_python-2.0.0/xero_python/payrolluk/models/reimbursement_object.py +120 -0
  564. xero_python-2.0.0/xero_python/payrolluk/models/reimbursements.py +122 -0
  565. xero_python-2.0.0/xero_python/payrolluk/models/salary_and_wage.py +341 -0
  566. xero_python-2.0.0/xero_python/payrolluk/models/salary_and_wage_object.py +122 -0
  567. xero_python-2.0.0/xero_python/payrolluk/models/salary_and_wages.py +122 -0
  568. xero_python-2.0.0/xero_python/payrolluk/models/settings.py +120 -0
  569. xero_python-2.0.0/xero_python/payrolluk/models/statutory_deduction.py +187 -0
  570. xero_python-2.0.0/xero_python/payrolluk/models/statutory_deduction_category.py +40 -0
  571. xero_python-2.0.0/xero_python/payrolluk/models/tax_line.py +218 -0
  572. xero_python-2.0.0/xero_python/payrolluk/models/timesheet.py +324 -0
  573. xero_python-2.0.0/xero_python/payrolluk/models/timesheet_earnings_line.py +218 -0
  574. xero_python-2.0.0/xero_python/payrolluk/models/timesheet_line.py +198 -0
  575. xero_python-2.0.0/xero_python/payrolluk/models/timesheet_line_object.py +122 -0
  576. xero_python-2.0.0/xero_python/payrolluk/models/timesheet_object.py +120 -0
  577. xero_python-2.0.0/xero_python/payrolluk/models/timesheets.py +120 -0
  578. xero_python-2.0.0/xero_python/payrolluk/models/tracking_categories.py +122 -0
  579. xero_python-2.0.0/xero_python/payrolluk/models/tracking_category.py +108 -0
  580. xero_python-2.0.0/xero_python/project/__init__.py +39 -0
  581. xero_python-2.0.0/xero_python/project/api/__init__.py +4 -0
  582. xero_python-2.0.0/xero_python/project/api/project_api.py +1571 -0
  583. xero_python-2.0.0/xero_python/project/models/__init__.py +34 -0
  584. xero_python-2.0.0/xero_python/project/models/amount.py +88 -0
  585. xero_python-2.0.0/xero_python/project/models/charge_type.py +29 -0
  586. xero_python-2.0.0/xero_python/project/models/currency_code.py +189 -0
  587. xero_python-2.0.0/xero_python/project/models/error.py +92 -0
  588. xero_python-2.0.0/xero_python/project/models/pagination.py +156 -0
  589. xero_python-2.0.0/xero_python/project/models/project.py +653 -0
  590. xero_python-2.0.0/xero_python/project/models/project_create_or_update.py +157 -0
  591. xero_python-2.0.0/xero_python/project/models/project_patch.py +67 -0
  592. xero_python-2.0.0/xero_python/project/models/project_status.py +28 -0
  593. xero_python-2.0.0/xero_python/project/models/project_user.py +118 -0
  594. xero_python-2.0.0/xero_python/project/models/project_users.py +88 -0
  595. xero_python-2.0.0/xero_python/project/models/projects.py +88 -0
  596. xero_python-2.0.0/xero_python/project/models/task.py +478 -0
  597. xero_python-2.0.0/xero_python/project/models/task_create_or_update.py +161 -0
  598. xero_python-2.0.0/xero_python/project/models/tasks.py +88 -0
  599. xero_python-2.0.0/xero_python/project/models/time_entries.py +88 -0
  600. xero_python-2.0.0/xero_python/project/models/time_entry.py +314 -0
  601. xero_python-2.0.0/xero_python/project/models/time_entry_create_or_update.py +196 -0
  602. xero_python-2.0.0/xero_python/rest.py +384 -0
  603. xero_python-2.0.0/xero_python/single_dispatch_str.py +97 -0
  604. xero_python-2.0.0/xero_python/utils.py +45 -0
  605. xero_python-2.0.0/xero_python.egg-info/PKG-INFO +643 -0
  606. xero_python-1.25.0/AUTHORS.md +0 -9
  607. xero_python-1.25.0/HISTORY.md +0 -4
  608. xero_python-1.25.0/LICENSE +0 -22
  609. xero_python-1.25.0/MANIFEST.in +0 -11
  610. xero_python-1.25.0/PKG-INFO +0 -640
  611. xero_python-1.25.0/README.md +0 -612
  612. xero_python-1.25.0/requirements.txt +0 -4
  613. xero_python-1.25.0/setup.cfg +0 -19
  614. xero_python-1.25.0/setup.py +0 -52
  615. xero_python-1.25.0/tests/__init__.py +0 -15
  616. xero_python-1.25.0/tests/accounting/__init__.py +0 -1
  617. xero_python-1.25.0/tests/accounting/api/__init__.py +0 -1
  618. xero_python-1.25.0/tests/accounting/api/cassettes/test_get_organisations.yaml +0 -70
  619. xero_python-1.25.0/tests/accounting/api/cassettes/test_invoice_attachment_upload_and_download.yaml +0 -4287
  620. xero_python-1.25.0/tests/accounting/api/test_accounting_api.py +0 -663
  621. xero_python-1.25.0/tests/cassettes/test_vcr.yaml +0 -634
  622. xero_python-1.25.0/tests/conftest.py +0 -175
  623. xero_python-1.25.0/tests/identity/__init__.py +0 -1
  624. xero_python-1.25.0/tests/identity/api/__init__.py +0 -1
  625. xero_python-1.25.0/tests/identity/api/cassettes/test_get_connections.yaml +0 -44
  626. xero_python-1.25.0/tests/identity/api/test_identity_api.py +0 -36
  627. xero_python-1.25.0/tests/test_api_client/__init__.py +0 -41
  628. xero_python-1.25.0/tests/test_api_client/cassettes/test_call_api_get_organisations.yaml +0 -70
  629. xero_python-1.25.0/tests/test_api_client/cassettes/test_token_api_refresh_token.yaml +0 -61
  630. xero_python-1.25.0/tests/test_api_client/test_deserializer.py +0 -383
  631. xero_python-1.25.0/tests/test_api_client/test_oauth2.py +0 -248
  632. xero_python-1.25.0/tests/test_api_client/test_serializer.py +0 -391
  633. xero_python-1.25.0/tests/test_executor.py +0 -24
  634. xero_python-1.25.0/tests/test_single_dispatch_str.py +0 -99
  635. xero_python-1.25.0/xero_python/__init__.py +0 -5
  636. xero_python-1.25.0/xero_python/accounting/__init__.py +0 -158
  637. xero_python-1.25.0/xero_python/accounting/api/__init__.py +0 -4
  638. xero_python-1.25.0/xero_python/accounting/api/accounting_api.py +0 -20098
  639. xero_python-1.25.0/xero_python/accounting/api/exception_handler.py +0 -16
  640. xero_python-1.25.0/xero_python/accounting/models/__init__.py +0 -153
  641. xero_python-1.25.0/xero_python/accounting/models/account.py +0 -698
  642. xero_python-1.25.0/xero_python/accounting/models/account_type.py +0 -48
  643. xero_python-1.25.0/xero_python/accounting/models/accounts.py +0 -64
  644. xero_python-1.25.0/xero_python/accounting/models/accounts_payable.py +0 -88
  645. xero_python-1.25.0/xero_python/accounting/models/accounts_receivable.py +0 -88
  646. xero_python-1.25.0/xero_python/accounting/models/action.py +0 -101
  647. xero_python-1.25.0/xero_python/accounting/models/actions.py +0 -64
  648. xero_python-1.25.0/xero_python/accounting/models/address.py +0 -388
  649. xero_python-1.25.0/xero_python/accounting/models/address_for_organisation.py +0 -388
  650. xero_python-1.25.0/xero_python/accounting/models/allocation.py +0 -277
  651. xero_python-1.25.0/xero_python/accounting/models/allocations.py +0 -64
  652. xero_python-1.25.0/xero_python/accounting/models/attachment.py +0 -218
  653. xero_python-1.25.0/xero_python/accounting/models/attachments.py +0 -64
  654. xero_python-1.25.0/xero_python/accounting/models/balance_details.py +0 -128
  655. xero_python-1.25.0/xero_python/accounting/models/balances.py +0 -94
  656. xero_python-1.25.0/xero_python/accounting/models/bank_transaction.py +0 -711
  657. xero_python-1.25.0/xero_python/accounting/models/bank_transactions.py +0 -64
  658. xero_python-1.25.0/xero_python/accounting/models/bank_transfer.py +0 -455
  659. xero_python-1.25.0/xero_python/accounting/models/bank_transfers.py +0 -64
  660. xero_python-1.25.0/xero_python/accounting/models/batch_payment.py +0 -572
  661. xero_python-1.25.0/xero_python/accounting/models/batch_payment_delete.py +0 -98
  662. xero_python-1.25.0/xero_python/accounting/models/batch_payment_delete_by_url_param.py +0 -69
  663. xero_python-1.25.0/xero_python/accounting/models/batch_payment_details.py +0 -198
  664. xero_python-1.25.0/xero_python/accounting/models/batch_payments.py +0 -64
  665. xero_python-1.25.0/xero_python/accounting/models/bill.py +0 -90
  666. xero_python-1.25.0/xero_python/accounting/models/branding_theme.py +0 -227
  667. xero_python-1.25.0/xero_python/accounting/models/branding_themes.py +0 -64
  668. xero_python-1.25.0/xero_python/accounting/models/budget.py +0 -228
  669. xero_python-1.25.0/xero_python/accounting/models/budget_balance.py +0 -161
  670. xero_python-1.25.0/xero_python/accounting/models/budget_line.py +0 -126
  671. xero_python-1.25.0/xero_python/accounting/models/budget_lines.py +0 -161
  672. xero_python-1.25.0/xero_python/accounting/models/budgets.py +0 -64
  673. xero_python-1.25.0/xero_python/accounting/models/cis_org_setting.py +0 -128
  674. xero_python-1.25.0/xero_python/accounting/models/cis_org_settings.py +0 -64
  675. xero_python-1.25.0/xero_python/accounting/models/cis_setting.py +0 -92
  676. xero_python-1.25.0/xero_python/accounting/models/cis_settings.py +0 -64
  677. xero_python-1.25.0/xero_python/accounting/models/contact.py +0 -1348
  678. xero_python-1.25.0/xero_python/accounting/models/contact_group.py +0 -165
  679. xero_python-1.25.0/xero_python/accounting/models/contact_groups.py +0 -64
  680. xero_python-1.25.0/xero_python/accounting/models/contact_person.py +0 -160
  681. xero_python-1.25.0/xero_python/accounting/models/contacts.py +0 -64
  682. xero_python-1.25.0/xero_python/accounting/models/conversion_balances.py +0 -126
  683. xero_python-1.25.0/xero_python/accounting/models/conversion_date.py +0 -92
  684. xero_python-1.25.0/xero_python/accounting/models/country_code.py +0 -266
  685. xero_python-1.25.0/xero_python/accounting/models/credit_note.py +0 -934
  686. xero_python-1.25.0/xero_python/accounting/models/credit_notes.py +0 -64
  687. xero_python-1.25.0/xero_python/accounting/models/currencies.py +0 -64
  688. xero_python-1.25.0/xero_python/accounting/models/currency.py +0 -90
  689. xero_python-1.25.0/xero_python/accounting/models/currency_code.py +0 -195
  690. xero_python-1.25.0/xero_python/accounting/models/element.py +0 -264
  691. xero_python-1.25.0/xero_python/accounting/models/employee.py +0 -297
  692. xero_python-1.25.0/xero_python/accounting/models/employees.py +0 -64
  693. xero_python-1.25.0/xero_python/accounting/models/error.py +0 -156
  694. xero_python-1.25.0/xero_python/accounting/models/expense_claim.py +0 -404
  695. xero_python-1.25.0/xero_python/accounting/models/expense_claims.py +0 -64
  696. xero_python-1.25.0/xero_python/accounting/models/external_link.py +0 -136
  697. xero_python-1.25.0/xero_python/accounting/models/history_record.py +0 -156
  698. xero_python-1.25.0/xero_python/accounting/models/history_records.py +0 -64
  699. xero_python-1.25.0/xero_python/accounting/models/import_summary.py +0 -91
  700. xero_python-1.25.0/xero_python/accounting/models/import_summary_accounts.py +0 -303
  701. xero_python-1.25.0/xero_python/accounting/models/import_summary_object.py +0 -64
  702. xero_python-1.25.0/xero_python/accounting/models/import_summary_organisation.py +0 -64
  703. xero_python-1.25.0/xero_python/accounting/models/invoice.py +0 -1239
  704. xero_python-1.25.0/xero_python/accounting/models/invoice_reminder.py +0 -66
  705. xero_python-1.25.0/xero_python/accounting/models/invoice_reminders.py +0 -64
  706. xero_python-1.25.0/xero_python/accounting/models/invoices.py +0 -64
  707. xero_python-1.25.0/xero_python/accounting/models/item.py +0 -525
  708. xero_python-1.25.0/xero_python/accounting/models/items.py +0 -64
  709. xero_python-1.25.0/xero_python/accounting/models/journal.py +0 -312
  710. xero_python-1.25.0/xero_python/accounting/models/journal_line.py +0 -390
  711. xero_python-1.25.0/xero_python/accounting/models/journals.py +0 -64
  712. xero_python-1.25.0/xero_python/accounting/models/line_amount_types.py +0 -29
  713. xero_python-1.25.0/xero_python/accounting/models/line_item.py +0 -477
  714. xero_python-1.25.0/xero_python/accounting/models/line_item_item.py +0 -126
  715. xero_python-1.25.0/xero_python/accounting/models/line_item_tracking.py +0 -161
  716. xero_python-1.25.0/xero_python/accounting/models/linked_transaction.py +0 -397
  717. xero_python-1.25.0/xero_python/accounting/models/linked_transactions.py +0 -64
  718. xero_python-1.25.0/xero_python/accounting/models/manual_journal.py +0 -467
  719. xero_python-1.25.0/xero_python/accounting/models/manual_journal_line.py +0 -276
  720. xero_python-1.25.0/xero_python/accounting/models/manual_journals.py +0 -64
  721. xero_python-1.25.0/xero_python/accounting/models/online_invoice.py +0 -66
  722. xero_python-1.25.0/xero_python/accounting/models/online_invoices.py +0 -64
  723. xero_python-1.25.0/xero_python/accounting/models/organisation.py +0 -1140
  724. xero_python-1.25.0/xero_python/accounting/models/organisations.py +0 -64
  725. xero_python-1.25.0/xero_python/accounting/models/overpayment.py +0 -612
  726. xero_python-1.25.0/xero_python/accounting/models/overpayments.py +0 -64
  727. xero_python-1.25.0/xero_python/accounting/models/payment.py +0 -843
  728. xero_python-1.25.0/xero_python/accounting/models/payment_delete.py +0 -69
  729. xero_python-1.25.0/xero_python/accounting/models/payment_service.py +0 -218
  730. xero_python-1.25.0/xero_python/accounting/models/payment_services.py +0 -64
  731. xero_python-1.25.0/xero_python/accounting/models/payment_term.py +0 -88
  732. xero_python-1.25.0/xero_python/accounting/models/payment_term_type.py +0 -30
  733. xero_python-1.25.0/xero_python/accounting/models/payments.py +0 -64
  734. xero_python-1.25.0/xero_python/accounting/models/phone.py +0 -189
  735. xero_python-1.25.0/xero_python/accounting/models/prepayment.py +0 -642
  736. xero_python-1.25.0/xero_python/accounting/models/prepayments.py +0 -64
  737. xero_python-1.25.0/xero_python/accounting/models/purchase.py +0 -156
  738. xero_python-1.25.0/xero_python/accounting/models/purchase_order.py +0 -866
  739. xero_python-1.25.0/xero_python/accounting/models/purchase_orders.py +0 -64
  740. xero_python-1.25.0/xero_python/accounting/models/quote.py +0 -757
  741. xero_python-1.25.0/xero_python/accounting/models/quote_line_amount_types.py +0 -29
  742. xero_python-1.25.0/xero_python/accounting/models/quote_status_codes.py +0 -32
  743. xero_python-1.25.0/xero_python/accounting/models/quotes.py +0 -64
  744. xero_python-1.25.0/xero_python/accounting/models/receipt.py +0 -574
  745. xero_python-1.25.0/xero_python/accounting/models/receipts.py +0 -64
  746. xero_python-1.25.0/xero_python/accounting/models/repeating_invoice.py +0 -634
  747. xero_python-1.25.0/xero_python/accounting/models/repeating_invoices.py +0 -64
  748. xero_python-1.25.0/xero_python/accounting/models/report.py +0 -225
  749. xero_python-1.25.0/xero_python/accounting/models/report_attribute.py +0 -88
  750. xero_python-1.25.0/xero_python/accounting/models/report_cell.py +0 -88
  751. xero_python-1.25.0/xero_python/accounting/models/report_fields.py +0 -116
  752. xero_python-1.25.0/xero_python/accounting/models/report_row.py +0 -112
  753. xero_python-1.25.0/xero_python/accounting/models/report_rows.py +0 -146
  754. xero_python-1.25.0/xero_python/accounting/models/report_with_row.py +0 -301
  755. xero_python-1.25.0/xero_python/accounting/models/report_with_rows.py +0 -64
  756. xero_python-1.25.0/xero_python/accounting/models/reports.py +0 -64
  757. xero_python-1.25.0/xero_python/accounting/models/request_empty.py +0 -66
  758. xero_python-1.25.0/xero_python/accounting/models/row_type.py +0 -30
  759. xero_python-1.25.0/xero_python/accounting/models/sales_tracking_category.py +0 -97
  760. xero_python-1.25.0/xero_python/accounting/models/schedule.py +0 -273
  761. xero_python-1.25.0/xero_python/accounting/models/setup.py +0 -124
  762. xero_python-1.25.0/xero_python/accounting/models/tax_component.py +0 -156
  763. xero_python-1.25.0/xero_python/accounting/models/tax_rate.py +0 -515
  764. xero_python-1.25.0/xero_python/accounting/models/tax_rates.py +0 -64
  765. xero_python-1.25.0/xero_python/accounting/models/tax_type.py +0 -122
  766. xero_python-1.25.0/xero_python/accounting/models/ten_ninety_nine_contact.py +0 -682
  767. xero_python-1.25.0/xero_python/accounting/models/ten_nintey_nine_contact.py +0 -683
  768. xero_python-1.25.0/xero_python/accounting/models/time_zone.py +0 -167
  769. xero_python-1.25.0/xero_python/accounting/models/tracking_categories.py +0 -64
  770. xero_python-1.25.0/xero_python/accounting/models/tracking_category.py +0 -237
  771. xero_python-1.25.0/xero_python/accounting/models/tracking_option.py +0 -170
  772. xero_python-1.25.0/xero_python/accounting/models/tracking_options.py +0 -64
  773. xero_python-1.25.0/xero_python/accounting/models/user.py +0 -265
  774. xero_python-1.25.0/xero_python/accounting/models/users.py +0 -64
  775. xero_python-1.25.0/xero_python/accounting/models/validation_error.py +0 -66
  776. xero_python-1.25.0/xero_python/api_client/__init__.py +0 -792
  777. xero_python-1.25.0/xero_python/api_client/configuration.py +0 -234
  778. xero_python-1.25.0/xero_python/api_client/deserializer.py +0 -288
  779. xero_python-1.25.0/xero_python/api_client/oauth2.py +0 -327
  780. xero_python-1.25.0/xero_python/api_client/serializer.py +0 -223
  781. xero_python-1.25.0/xero_python/appstore/__init__.py +0 -29
  782. xero_python-1.25.0/xero_python/appstore/api/__init__.py +0 -4
  783. xero_python-1.25.0/xero_python/appstore/api/app_store_api.py +0 -378
  784. xero_python-1.25.0/xero_python/appstore/models/__init__.py +0 -24
  785. xero_python-1.25.0/xero_python/appstore/models/create_usage_record.py +0 -98
  786. xero_python-1.25.0/xero_python/appstore/models/plan.py +0 -180
  787. xero_python-1.25.0/xero_python/appstore/models/price.py +0 -125
  788. xero_python-1.25.0/xero_python/appstore/models/problem_details.py +0 -206
  789. xero_python-1.25.0/xero_python/appstore/models/product.py +0 -193
  790. xero_python-1.25.0/xero_python/appstore/models/subscription.py +0 -301
  791. xero_python-1.25.0/xero_python/appstore/models/subscription_item.py +0 -299
  792. xero_python-1.25.0/xero_python/appstore/models/update_usage_record.py +0 -69
  793. xero_python-1.25.0/xero_python/appstore/models/usage_record.py +0 -300
  794. xero_python-1.25.0/xero_python/appstore/models/usage_records_list.py +0 -69
  795. xero_python-1.25.0/xero_python/assets/__init__.py +0 -35
  796. xero_python-1.25.0/xero_python/assets/api/__init__.py +0 -4
  797. xero_python-1.25.0/xero_python/assets/api/asset_api.py +0 -521
  798. xero_python-1.25.0/xero_python/assets/models/__init__.py +0 -30
  799. xero_python-1.25.0/xero_python/assets/models/asset.py +0 -505
  800. xero_python-1.25.0/xero_python/assets/models/asset_status.py +0 -29
  801. xero_python-1.25.0/xero_python/assets/models/asset_status_query_param.py +0 -29
  802. xero_python-1.25.0/xero_python/assets/models/asset_type.py +0 -253
  803. xero_python-1.25.0/xero_python/assets/models/assets.py +0 -88
  804. xero_python-1.25.0/xero_python/assets/models/book_depreciation_detail.py +0 -247
  805. xero_python-1.25.0/xero_python/assets/models/book_depreciation_setting.py +0 -311
  806. xero_python-1.25.0/xero_python/assets/models/error.py +0 -189
  807. xero_python-1.25.0/xero_python/assets/models/field_validation_errors_element.py +0 -218
  808. xero_python-1.25.0/xero_python/assets/models/pagination.py +0 -148
  809. xero_python-1.25.0/xero_python/assets/models/resource_validation_errors_element.py +0 -189
  810. xero_python-1.25.0/xero_python/assets/models/setting.py +0 -286
  811. xero_python-1.25.0/xero_python/exceptions/__init__.py +0 -157
  812. xero_python-1.25.0/xero_python/exceptions/http_status_exceptions.py +0 -97
  813. xero_python-1.25.0/xero_python/file/__init__.py +0 -28
  814. xero_python-1.25.0/xero_python/file/api/__init__.py +0 -4
  815. xero_python-1.25.0/xero_python/file/api/files_api.py +0 -1522
  816. xero_python-1.25.0/xero_python/file/models/__init__.py +0 -23
  817. xero_python-1.25.0/xero_python/file/models/association.py +0 -152
  818. xero_python-1.25.0/xero_python/file/models/file_object.py +0 -274
  819. xero_python-1.25.0/xero_python/file/models/files.py +0 -148
  820. xero_python-1.25.0/xero_python/file/models/folder.py +0 -184
  821. xero_python-1.25.0/xero_python/file/models/folders.py +0 -64
  822. xero_python-1.25.0/xero_python/file/models/inline_object.py +0 -150
  823. xero_python-1.25.0/xero_python/file/models/inline_object1.py +0 -150
  824. xero_python-1.25.0/xero_python/file/models/object_group.py +0 -38
  825. xero_python-1.25.0/xero_python/file/models/object_type.py +0 -82
  826. xero_python-1.25.0/xero_python/file/models/upload_object.py +0 -159
  827. xero_python-1.25.0/xero_python/file/models/user.py +0 -185
  828. xero_python-1.25.0/xero_python/finance/__init__.py +0 -87
  829. xero_python-1.25.0/xero_python/finance/api/__init__.py +0 -4
  830. xero_python-1.25.0/xero_python/finance/api/finance_api.py +0 -1030
  831. xero_python-1.25.0/xero_python/finance/models/__init__.py +0 -82
  832. xero_python-1.25.0/xero_python/finance/models/account_usage.py +0 -421
  833. xero_python-1.25.0/xero_python/finance/models/account_usage_response.py +0 -154
  834. xero_python-1.25.0/xero_python/finance/models/balance_sheet_account_detail.py +0 -184
  835. xero_python-1.25.0/xero_python/finance/models/balance_sheet_account_group.py +0 -90
  836. xero_python-1.25.0/xero_python/finance/models/balance_sheet_account_type.py +0 -126
  837. xero_python-1.25.0/xero_python/finance/models/balance_sheet_response.py +0 -150
  838. xero_python-1.25.0/xero_python/finance/models/bank_statement_accounting_response.py +0 -160
  839. xero_python-1.25.0/xero_python/finance/models/bank_statement_response.py +0 -94
  840. xero_python-1.25.0/xero_python/finance/models/bank_transaction_response.py +0 -216
  841. xero_python-1.25.0/xero_python/finance/models/cash_account_response.py +0 -189
  842. xero_python-1.25.0/xero_python/finance/models/cash_balance.py +0 -131
  843. xero_python-1.25.0/xero_python/finance/models/cash_validation_response.py +0 -183
  844. xero_python-1.25.0/xero_python/finance/models/cashflow_account.py +0 -247
  845. xero_python-1.25.0/xero_python/finance/models/cashflow_activity.py +0 -124
  846. xero_python-1.25.0/xero_python/finance/models/cashflow_response.py +0 -158
  847. xero_python-1.25.0/xero_python/finance/models/cashflow_type.py +0 -122
  848. xero_python-1.25.0/xero_python/finance/models/contact_detail.py +0 -214
  849. xero_python-1.25.0/xero_python/finance/models/contact_response.py +0 -92
  850. xero_python-1.25.0/xero_python/finance/models/contact_total_detail.py +0 -128
  851. xero_python-1.25.0/xero_python/finance/models/contact_total_other.py +0 -160
  852. xero_python-1.25.0/xero_python/finance/models/credit_note_response.py +0 -154
  853. xero_python-1.25.0/xero_python/finance/models/current_statement_response.py +0 -218
  854. xero_python-1.25.0/xero_python/finance/models/data_source_response.py +0 -479
  855. xero_python-1.25.0/xero_python/finance/models/history_record_response.py +0 -184
  856. xero_python-1.25.0/xero_python/finance/models/income_by_contact_response.py +0 -239
  857. xero_python-1.25.0/xero_python/finance/models/invoice_response.py +0 -154
  858. xero_python-1.25.0/xero_python/finance/models/line_item_response.py +0 -156
  859. xero_python-1.25.0/xero_python/finance/models/lock_history_model.py +0 -128
  860. xero_python-1.25.0/xero_python/finance/models/lock_history_response.py +0 -126
  861. xero_python-1.25.0/xero_python/finance/models/manual_journal_total.py +0 -66
  862. xero_python-1.25.0/xero_python/finance/models/overpayment_response.py +0 -154
  863. xero_python-1.25.0/xero_python/finance/models/payment_response.py +0 -326
  864. xero_python-1.25.0/xero_python/finance/models/pnl_account.py +0 -218
  865. xero_python-1.25.0/xero_python/finance/models/pnl_account_class.py +0 -92
  866. xero_python-1.25.0/xero_python/finance/models/pnl_account_type.py +0 -118
  867. xero_python-1.25.0/xero_python/finance/models/practice_response.py +0 -189
  868. xero_python-1.25.0/xero_python/finance/models/prepayment_response.py +0 -154
  869. xero_python-1.25.0/xero_python/finance/models/problem.py +0 -146
  870. xero_python-1.25.0/xero_python/finance/models/problem_type.py +0 -36
  871. xero_python-1.25.0/xero_python/finance/models/profit_and_loss_response.py +0 -185
  872. xero_python-1.25.0/xero_python/finance/models/report_history_model.py +0 -128
  873. xero_python-1.25.0/xero_python/finance/models/report_history_response.py +0 -124
  874. xero_python-1.25.0/xero_python/finance/models/statement_balance_response.py +0 -92
  875. xero_python-1.25.0/xero_python/finance/models/statement_line_response.py +0 -450
  876. xero_python-1.25.0/xero_python/finance/models/statement_lines_response.py +0 -535
  877. xero_python-1.25.0/xero_python/finance/models/statement_response.py +0 -334
  878. xero_python-1.25.0/xero_python/finance/models/total_detail.py +0 -128
  879. xero_python-1.25.0/xero_python/finance/models/total_other.py +0 -128
  880. xero_python-1.25.0/xero_python/finance/models/trial_balance_account.py +0 -330
  881. xero_python-1.25.0/xero_python/finance/models/trial_balance_entry.py +0 -92
  882. xero_python-1.25.0/xero_python/finance/models/trial_balance_movement.py +0 -154
  883. xero_python-1.25.0/xero_python/finance/models/trial_balance_response.py +0 -126
  884. xero_python-1.25.0/xero_python/finance/models/user_activities_response.py +0 -124
  885. xero_python-1.25.0/xero_python/finance/models/user_response.py +0 -388
  886. xero_python-1.25.0/xero_python/identity/__init__.py +0 -22
  887. xero_python-1.25.0/xero_python/identity/api/__init__.py +0 -4
  888. xero_python-1.25.0/xero_python/identity/api/exception_handler.py +0 -18
  889. xero_python-1.25.0/xero_python/identity/api/identity_api.py +0 -180
  890. xero_python-1.25.0/xero_python/identity/models/__init__.py +0 -17
  891. xero_python-1.25.0/xero_python/identity/models/access_token.py +0 -189
  892. xero_python-1.25.0/xero_python/identity/models/connection.py +0 -247
  893. xero_python-1.25.0/xero_python/identity/models/refresh_token.py +0 -156
  894. xero_python-1.25.0/xero_python/models.py +0 -69
  895. xero_python-1.25.0/xero_python/payrollau/__init__.py +0 -129
  896. xero_python-1.25.0/xero_python/payrollau/api/__init__.py +0 -4
  897. xero_python-1.25.0/xero_python/payrollau/api/payroll_au_api.py +0 -2633
  898. xero_python-1.25.0/xero_python/payrollau/models/__init__.py +0 -124
  899. xero_python-1.25.0/xero_python/payrollau/models/account.py +0 -152
  900. xero_python-1.25.0/xero_python/payrollau/models/account_type.py +0 -49
  901. xero_python-1.25.0/xero_python/payrollau/models/allowance_category.py +0 -33
  902. xero_python-1.25.0/xero_python/payrollau/models/allowance_type.py +0 -36
  903. xero_python-1.25.0/xero_python/payrollau/models/api_exception.py +0 -122
  904. xero_python-1.25.0/xero_python/payrollau/models/bank_account.py +0 -218
  905. xero_python-1.25.0/xero_python/payrollau/models/calendar_type.py +0 -32
  906. xero_python-1.25.0/xero_python/payrollau/models/country_of_residence.py +0 -277
  907. xero_python-1.25.0/xero_python/payrollau/models/deduction_line.py +0 -190
  908. xero_python-1.25.0/xero_python/payrollau/models/deduction_type.py +0 -317
  909. xero_python-1.25.0/xero_python/payrollau/models/deduction_type_calculation_type.py +0 -29
  910. xero_python-1.25.0/xero_python/payrollau/models/earnings_line.py +0 -306
  911. xero_python-1.25.0/xero_python/payrollau/models/earnings_rate.py +0 -638
  912. xero_python-1.25.0/xero_python/payrollau/models/earnings_rate_calculation_type.py +0 -29
  913. xero_python-1.25.0/xero_python/payrollau/models/earnings_type.py +0 -40
  914. xero_python-1.25.0/xero_python/payrollau/models/employee.py +0 -1093
  915. xero_python-1.25.0/xero_python/payrollau/models/employee_status.py +0 -28
  916. xero_python-1.25.0/xero_python/payrollau/models/employees.py +0 -64
  917. xero_python-1.25.0/xero_python/payrollau/models/employment_basis.py +0 -32
  918. xero_python-1.25.0/xero_python/payrollau/models/employment_termination_payment_type.py +0 -28
  919. xero_python-1.25.0/xero_python/payrollau/models/employment_type.py +0 -28
  920. xero_python-1.25.0/xero_python/payrollau/models/entitlement_final_pay_payout_type.py +0 -28
  921. xero_python-1.25.0/xero_python/payrollau/models/home_address.py +0 -219
  922. xero_python-1.25.0/xero_python/payrollau/models/income_type.py +0 -31
  923. xero_python-1.25.0/xero_python/payrollau/models/leave_accrual_line.py +0 -128
  924. xero_python-1.25.0/xero_python/payrollau/models/leave_application.py +0 -359
  925. xero_python-1.25.0/xero_python/payrollau/models/leave_applications.py +0 -64
  926. xero_python-1.25.0/xero_python/payrollau/models/leave_balance.py +0 -160
  927. xero_python-1.25.0/xero_python/payrollau/models/leave_category_code.py +0 -38
  928. xero_python-1.25.0/xero_python/payrollau/models/leave_earnings_line.py +0 -158
  929. xero_python-1.25.0/xero_python/payrollau/models/leave_line.py +0 -284
  930. xero_python-1.25.0/xero_python/payrollau/models/leave_line_calculation_type.py +0 -31
  931. xero_python-1.25.0/xero_python/payrollau/models/leave_lines.py +0 -64
  932. xero_python-1.25.0/xero_python/payrollau/models/leave_period.py +0 -158
  933. xero_python-1.25.0/xero_python/payrollau/models/leave_period_status.py +0 -28
  934. xero_python-1.25.0/xero_python/payrollau/models/leave_type.py +0 -366
  935. xero_python-1.25.0/xero_python/payrollau/models/leave_type_contribution_type.py +0 -30
  936. xero_python-1.25.0/xero_python/payrollau/models/manual_tax_type.py +0 -32
  937. xero_python-1.25.0/xero_python/payrollau/models/opening_balances.py +0 -264
  938. xero_python-1.25.0/xero_python/payrollau/models/paid_leave_earnings_line.py +0 -195
  939. xero_python-1.25.0/xero_python/payrollau/models/pay_item.py +0 -152
  940. xero_python-1.25.0/xero_python/payrollau/models/pay_items.py +0 -64
  941. xero_python-1.25.0/xero_python/payrollau/models/pay_out_type.py +0 -28
  942. xero_python-1.25.0/xero_python/payrollau/models/pay_run.py +0 -509
  943. xero_python-1.25.0/xero_python/payrollau/models/pay_run_status.py +0 -28
  944. xero_python-1.25.0/xero_python/payrollau/models/pay_runs.py +0 -64
  945. xero_python-1.25.0/xero_python/payrollau/models/pay_template.py +0 -179
  946. xero_python-1.25.0/xero_python/payrollau/models/payment_frequency_type.py +0 -33
  947. xero_python-1.25.0/xero_python/payrollau/models/payroll_calendar.py +0 -274
  948. xero_python-1.25.0/xero_python/payrollau/models/payroll_calendars.py +0 -64
  949. xero_python-1.25.0/xero_python/payrollau/models/payslip.py +0 -579
  950. xero_python-1.25.0/xero_python/payrollau/models/payslip_lines.py +0 -260
  951. xero_python-1.25.0/xero_python/payrollau/models/payslip_object.py +0 -64
  952. xero_python-1.25.0/xero_python/payrollau/models/payslip_summary.py +0 -392
  953. xero_python-1.25.0/xero_python/payrollau/models/payslips.py +0 -64
  954. xero_python-1.25.0/xero_python/payrollau/models/rate_type.py +0 -29
  955. xero_python-1.25.0/xero_python/payrollau/models/reimbursement_line.py +0 -165
  956. xero_python-1.25.0/xero_python/payrollau/models/reimbursement_lines.py +0 -64
  957. xero_python-1.25.0/xero_python/payrollau/models/reimbursement_type.py +0 -194
  958. xero_python-1.25.0/xero_python/payrollau/models/residency_status.py +0 -29
  959. xero_python-1.25.0/xero_python/payrollau/models/senior_marital_status.py +0 -29
  960. xero_python-1.25.0/xero_python/payrollau/models/settings.py +0 -158
  961. xero_python-1.25.0/xero_python/payrollau/models/settings_object.py +0 -64
  962. xero_python-1.25.0/xero_python/payrollau/models/settings_tracking_categories.py +0 -94
  963. xero_python-1.25.0/xero_python/payrollau/models/settings_tracking_categories_employee_groups.py +0 -97
  964. xero_python-1.25.0/xero_python/payrollau/models/settings_tracking_categories_timesheet_categories.py +0 -97
  965. xero_python-1.25.0/xero_python/payrollau/models/state.py +0 -34
  966. xero_python-1.25.0/xero_python/payrollau/models/super_fund.py +0 -422
  967. xero_python-1.25.0/xero_python/payrollau/models/super_fund_product.py +0 -149
  968. xero_python-1.25.0/xero_python/payrollau/models/super_fund_products.py +0 -64
  969. xero_python-1.25.0/xero_python/payrollau/models/super_fund_type.py +0 -28
  970. xero_python-1.25.0/xero_python/payrollau/models/super_funds.py +0 -64
  971. xero_python-1.25.0/xero_python/payrollau/models/super_line.py +0 -272
  972. xero_python-1.25.0/xero_python/payrollau/models/super_membership.py +0 -134
  973. xero_python-1.25.0/xero_python/payrollau/models/superannuation_calculation_type.py +0 -29
  974. xero_python-1.25.0/xero_python/payrollau/models/superannuation_contribution_type.py +0 -30
  975. xero_python-1.25.0/xero_python/payrollau/models/superannuation_line.py +0 -301
  976. xero_python-1.25.0/xero_python/payrollau/models/tax_declaration.py +0 -659
  977. xero_python-1.25.0/xero_python/payrollau/models/tax_line.py +0 -216
  978. xero_python-1.25.0/xero_python/payrollau/models/tax_scale_type.py +0 -32
  979. xero_python-1.25.0/xero_python/payrollau/models/tfn_exemption_type.py +0 -30
  980. xero_python-1.25.0/xero_python/payrollau/models/timesheet.py +0 -310
  981. xero_python-1.25.0/xero_python/payrollau/models/timesheet_line.py +0 -160
  982. xero_python-1.25.0/xero_python/payrollau/models/timesheet_object.py +0 -64
  983. xero_python-1.25.0/xero_python/payrollau/models/timesheet_status.py +0 -31
  984. xero_python-1.25.0/xero_python/payrollau/models/timesheets.py +0 -64
  985. xero_python-1.25.0/xero_python/payrollau/models/validation_error.py +0 -66
  986. xero_python-1.25.0/xero_python/payrollau/models/work_condition.py +0 -29
  987. xero_python-1.25.0/xero_python/payrollnz/__init__.py +0 -146
  988. xero_python-1.25.0/xero_python/payrollnz/api/__init__.py +0 -4
  989. xero_python-1.25.0/xero_python/payrollnz/api/payroll_nz_api.py +0 -5591
  990. xero_python-1.25.0/xero_python/payrollnz/models/__init__.py +0 -141
  991. xero_python-1.25.0/xero_python/payrollnz/models/account.py +0 -164
  992. xero_python-1.25.0/xero_python/payrollnz/models/accounts.py +0 -64
  993. xero_python-1.25.0/xero_python/payrollnz/models/address.py +0 -227
  994. xero_python-1.25.0/xero_python/payrollnz/models/bank_account.py +0 -294
  995. xero_python-1.25.0/xero_python/payrollnz/models/benefit.py +0 -368
  996. xero_python-1.25.0/xero_python/payrollnz/models/calendar_type.py +0 -33
  997. xero_python-1.25.0/xero_python/payrollnz/models/deduction.py +0 -242
  998. xero_python-1.25.0/xero_python/payrollnz/models/deduction_line.py +0 -189
  999. xero_python-1.25.0/xero_python/payrollnz/models/deduction_object.py +0 -120
  1000. xero_python-1.25.0/xero_python/payrollnz/models/deductions.py +0 -120
  1001. xero_python-1.25.0/xero_python/payrollnz/models/earnings_line.py +0 -334
  1002. xero_python-1.25.0/xero_python/payrollnz/models/earnings_order.py +0 -190
  1003. xero_python-1.25.0/xero_python/payrollnz/models/earnings_order_object.py +0 -122
  1004. xero_python-1.25.0/xero_python/payrollnz/models/earnings_orders.py +0 -122
  1005. xero_python-1.25.0/xero_python/payrollnz/models/earnings_rate.py +0 -389
  1006. xero_python-1.25.0/xero_python/payrollnz/models/earnings_rate_object.py +0 -120
  1007. xero_python-1.25.0/xero_python/payrollnz/models/earnings_rates.py +0 -122
  1008. xero_python-1.25.0/xero_python/payrollnz/models/earnings_template.py +0 -218
  1009. xero_python-1.25.0/xero_python/payrollnz/models/earnings_template_object.py +0 -122
  1010. xero_python-1.25.0/xero_python/payrollnz/models/employee.py +0 -457
  1011. xero_python-1.25.0/xero_python/payrollnz/models/employee_earnings_templates.py +0 -122
  1012. xero_python-1.25.0/xero_python/payrollnz/models/employee_leave.py +0 -259
  1013. xero_python-1.25.0/xero_python/payrollnz/models/employee_leave_balance.py +0 -156
  1014. xero_python-1.25.0/xero_python/payrollnz/models/employee_leave_balances.py +0 -122
  1015. xero_python-1.25.0/xero_python/payrollnz/models/employee_leave_object.py +0 -116
  1016. xero_python-1.25.0/xero_python/payrollnz/models/employee_leave_setup.py +0 -255
  1017. xero_python-1.25.0/xero_python/payrollnz/models/employee_leave_setup_object.py +0 -120
  1018. xero_python-1.25.0/xero_python/payrollnz/models/employee_leave_type.py +0 -349
  1019. xero_python-1.25.0/xero_python/payrollnz/models/employee_leave_type_object.py +0 -120
  1020. xero_python-1.25.0/xero_python/payrollnz/models/employee_leave_types.py +0 -120
  1021. xero_python-1.25.0/xero_python/payrollnz/models/employee_leaves.py +0 -116
  1022. xero_python-1.25.0/xero_python/payrollnz/models/employee_object.py +0 -120
  1023. xero_python-1.25.0/xero_python/payrollnz/models/employee_opening_balance.py +0 -160
  1024. xero_python-1.25.0/xero_python/payrollnz/models/employee_opening_balances_object.py +0 -122
  1025. xero_python-1.25.0/xero_python/payrollnz/models/employee_pay_template.py +0 -96
  1026. xero_python-1.25.0/xero_python/payrollnz/models/employee_pay_template_object.py +0 -120
  1027. xero_python-1.25.0/xero_python/payrollnz/models/employee_pay_templates.py +0 -120
  1028. xero_python-1.25.0/xero_python/payrollnz/models/employee_statutory_leave_balance.py +0 -149
  1029. xero_python-1.25.0/xero_python/payrollnz/models/employee_statutory_leave_balance_object.py +0 -120
  1030. xero_python-1.25.0/xero_python/payrollnz/models/employee_statutory_leave_summary.py +0 -272
  1031. xero_python-1.25.0/xero_python/payrollnz/models/employee_statutory_leaves_summaries.py +0 -122
  1032. xero_python-1.25.0/xero_python/payrollnz/models/employee_statutory_sick_leave.py +0 -547
  1033. xero_python-1.25.0/xero_python/payrollnz/models/employee_statutory_sick_leave_object.py +0 -122
  1034. xero_python-1.25.0/xero_python/payrollnz/models/employee_statutory_sick_leaves.py +0 -122
  1035. xero_python-1.25.0/xero_python/payrollnz/models/employee_tax.py +0 -555
  1036. xero_python-1.25.0/xero_python/payrollnz/models/employee_tax_object.py +0 -120
  1037. xero_python-1.25.0/xero_python/payrollnz/models/employees.py +0 -120
  1038. xero_python-1.25.0/xero_python/payrollnz/models/employment.py +0 -128
  1039. xero_python-1.25.0/xero_python/payrollnz/models/employment_object.py +0 -120
  1040. xero_python-1.25.0/xero_python/payrollnz/models/gross_earnings_history.py +0 -92
  1041. xero_python-1.25.0/xero_python/payrollnz/models/invalid_field.py +0 -92
  1042. xero_python-1.25.0/xero_python/payrollnz/models/leave_accrual_line.py +0 -92
  1043. xero_python-1.25.0/xero_python/payrollnz/models/leave_earnings_line.py +0 -334
  1044. xero_python-1.25.0/xero_python/payrollnz/models/leave_period.py +0 -169
  1045. xero_python-1.25.0/xero_python/payrollnz/models/leave_periods.py +0 -120
  1046. xero_python-1.25.0/xero_python/payrollnz/models/leave_type.py +0 -227
  1047. xero_python-1.25.0/xero_python/payrollnz/models/leave_type_object.py +0 -120
  1048. xero_python-1.25.0/xero_python/payrollnz/models/leave_types.py +0 -120
  1049. xero_python-1.25.0/xero_python/payrollnz/models/pagination.py +0 -148
  1050. xero_python-1.25.0/xero_python/payrollnz/models/pay_run.py +0 -411
  1051. xero_python-1.25.0/xero_python/payrollnz/models/pay_run_calendar.py +0 -257
  1052. xero_python-1.25.0/xero_python/payrollnz/models/pay_run_calendar_object.py +0 -122
  1053. xero_python-1.25.0/xero_python/payrollnz/models/pay_run_calendars.py +0 -122
  1054. xero_python-1.25.0/xero_python/payrollnz/models/pay_run_object.py +0 -120
  1055. xero_python-1.25.0/xero_python/payrollnz/models/pay_runs.py +0 -120
  1056. xero_python-1.25.0/xero_python/payrollnz/models/pay_slip.py +0 -897
  1057. xero_python-1.25.0/xero_python/payrollnz/models/pay_slip_object.py +0 -120
  1058. xero_python-1.25.0/xero_python/payrollnz/models/pay_slips.py +0 -120
  1059. xero_python-1.25.0/xero_python/payrollnz/models/payment_line.py +0 -189
  1060. xero_python-1.25.0/xero_python/payrollnz/models/payment_method.py +0 -99
  1061. xero_python-1.25.0/xero_python/payrollnz/models/payment_method_object.py +0 -122
  1062. xero_python-1.25.0/xero_python/payrollnz/models/problem.py +0 -214
  1063. xero_python-1.25.0/xero_python/payrollnz/models/reimbursement.py +0 -338
  1064. xero_python-1.25.0/xero_python/payrollnz/models/reimbursement_line.py +0 -189
  1065. xero_python-1.25.0/xero_python/payrollnz/models/reimbursement_object.py +0 -120
  1066. xero_python-1.25.0/xero_python/payrollnz/models/reimbursements.py +0 -122
  1067. xero_python-1.25.0/xero_python/payrollnz/models/salary_and_wage.py +0 -373
  1068. xero_python-1.25.0/xero_python/payrollnz/models/salary_and_wage_object.py +0 -122
  1069. xero_python-1.25.0/xero_python/payrollnz/models/salary_and_wages.py +0 -122
  1070. xero_python-1.25.0/xero_python/payrollnz/models/settings.py +0 -120
  1071. xero_python-1.25.0/xero_python/payrollnz/models/statutory_deduction.py +0 -187
  1072. xero_python-1.25.0/xero_python/payrollnz/models/statutory_deduction_category.py +0 -37
  1073. xero_python-1.25.0/xero_python/payrollnz/models/statutory_deduction_line.py +0 -160
  1074. xero_python-1.25.0/xero_python/payrollnz/models/statutory_deduction_object.py +0 -122
  1075. xero_python-1.25.0/xero_python/payrollnz/models/statutory_deductions.py +0 -122
  1076. xero_python-1.25.0/xero_python/payrollnz/models/superannuation_line.py +0 -218
  1077. xero_python-1.25.0/xero_python/payrollnz/models/superannuation_object.py +0 -120
  1078. xero_python-1.25.0/xero_python/payrollnz/models/superannuations.py +0 -120
  1079. xero_python-1.25.0/xero_python/payrollnz/models/tax_code.py +0 -45
  1080. xero_python-1.25.0/xero_python/payrollnz/models/tax_line.py +0 -189
  1081. xero_python-1.25.0/xero_python/payrollnz/models/tax_settings.py +0 -225
  1082. xero_python-1.25.0/xero_python/payrollnz/models/timesheet.py +0 -330
  1083. xero_python-1.25.0/xero_python/payrollnz/models/timesheet_earnings_line.py +0 -334
  1084. xero_python-1.25.0/xero_python/payrollnz/models/timesheet_line.py +0 -198
  1085. xero_python-1.25.0/xero_python/payrollnz/models/timesheet_line_object.py +0 -122
  1086. xero_python-1.25.0/xero_python/payrollnz/models/timesheet_object.py +0 -120
  1087. xero_python-1.25.0/xero_python/payrollnz/models/timesheets.py +0 -120
  1088. xero_python-1.25.0/xero_python/payrollnz/models/tracking_categories.py +0 -122
  1089. xero_python-1.25.0/xero_python/payrollnz/models/tracking_category.py +0 -108
  1090. xero_python-1.25.0/xero_python/payrolluk/__init__.py +0 -133
  1091. xero_python-1.25.0/xero_python/payrolluk/api/__init__.py +0 -4
  1092. xero_python-1.25.0/xero_python/payrolluk/api/exception_handler.py +0 -16
  1093. xero_python-1.25.0/xero_python/payrolluk/api/payroll_uk_api.py +0 -5738
  1094. xero_python-1.25.0/xero_python/payrolluk/models/__init__.py +0 -128
  1095. xero_python-1.25.0/xero_python/payrolluk/models/account.py +0 -167
  1096. xero_python-1.25.0/xero_python/payrolluk/models/accounts.py +0 -64
  1097. xero_python-1.25.0/xero_python/payrolluk/models/address.py +0 -198
  1098. xero_python-1.25.0/xero_python/payrolluk/models/bank_account.py +0 -133
  1099. xero_python-1.25.0/xero_python/payrolluk/models/benefit.py +0 -492
  1100. xero_python-1.25.0/xero_python/payrolluk/models/benefit_line.py +0 -189
  1101. xero_python-1.25.0/xero_python/payrolluk/models/benefit_object.py +0 -120
  1102. xero_python-1.25.0/xero_python/payrolluk/models/benefits.py +0 -120
  1103. xero_python-1.25.0/xero_python/payrolluk/models/court_order_line.py +0 -92
  1104. xero_python-1.25.0/xero_python/payrolluk/models/deduction.py +0 -550
  1105. xero_python-1.25.0/xero_python/payrolluk/models/deduction_line.py +0 -156
  1106. xero_python-1.25.0/xero_python/payrolluk/models/deduction_object.py +0 -120
  1107. xero_python-1.25.0/xero_python/payrolluk/models/deductions.py +0 -120
  1108. xero_python-1.25.0/xero_python/payrolluk/models/earnings_line.py +0 -305
  1109. xero_python-1.25.0/xero_python/payrolluk/models/earnings_order.py +0 -190
  1110. xero_python-1.25.0/xero_python/payrolluk/models/earnings_order_object.py +0 -122
  1111. xero_python-1.25.0/xero_python/payrolluk/models/earnings_orders.py +0 -122
  1112. xero_python-1.25.0/xero_python/payrolluk/models/earnings_rate.py +0 -397
  1113. xero_python-1.25.0/xero_python/payrolluk/models/earnings_rate_object.py +0 -120
  1114. xero_python-1.25.0/xero_python/payrolluk/models/earnings_rates.py +0 -122
  1115. xero_python-1.25.0/xero_python/payrolluk/models/earnings_template.py +0 -218
  1116. xero_python-1.25.0/xero_python/payrolluk/models/earnings_template_object.py +0 -122
  1117. xero_python-1.25.0/xero_python/payrolluk/models/employee.py +0 -515
  1118. xero_python-1.25.0/xero_python/payrolluk/models/employee_leave.py +0 -259
  1119. xero_python-1.25.0/xero_python/payrolluk/models/employee_leave_balance.py +0 -156
  1120. xero_python-1.25.0/xero_python/payrolluk/models/employee_leave_balances.py +0 -122
  1121. xero_python-1.25.0/xero_python/payrolluk/models/employee_leave_object.py +0 -116
  1122. xero_python-1.25.0/xero_python/payrolluk/models/employee_leave_type.py +0 -239
  1123. xero_python-1.25.0/xero_python/payrolluk/models/employee_leave_type_object.py +0 -120
  1124. xero_python-1.25.0/xero_python/payrolluk/models/employee_leave_types.py +0 -120
  1125. xero_python-1.25.0/xero_python/payrolluk/models/employee_leaves.py +0 -116
  1126. xero_python-1.25.0/xero_python/payrolluk/models/employee_object.py +0 -120
  1127. xero_python-1.25.0/xero_python/payrolluk/models/employee_opening_balances.py +0 -218
  1128. xero_python-1.25.0/xero_python/payrolluk/models/employee_opening_balances_object.py +0 -122
  1129. xero_python-1.25.0/xero_python/payrolluk/models/employee_pay_template.py +0 -96
  1130. xero_python-1.25.0/xero_python/payrolluk/models/employee_pay_template_object.py +0 -120
  1131. xero_python-1.25.0/xero_python/payrolluk/models/employee_pay_templates.py +0 -122
  1132. xero_python-1.25.0/xero_python/payrolluk/models/employee_statutory_leave_balance.py +0 -149
  1133. xero_python-1.25.0/xero_python/payrolluk/models/employee_statutory_leave_balance_object.py +0 -120
  1134. xero_python-1.25.0/xero_python/payrolluk/models/employee_statutory_leave_summary.py +0 -272
  1135. xero_python-1.25.0/xero_python/payrolluk/models/employee_statutory_leaves_summaries.py +0 -122
  1136. xero_python-1.25.0/xero_python/payrolluk/models/employee_statutory_sick_leave.py +0 -547
  1137. xero_python-1.25.0/xero_python/payrolluk/models/employee_statutory_sick_leave_object.py +0 -122
  1138. xero_python-1.25.0/xero_python/payrolluk/models/employee_statutory_sick_leaves.py +0 -122
  1139. xero_python-1.25.0/xero_python/payrolluk/models/employee_tax.py +0 -363
  1140. xero_python-1.25.0/xero_python/payrolluk/models/employee_tax_object.py +0 -120
  1141. xero_python-1.25.0/xero_python/payrolluk/models/employees.py +0 -120
  1142. xero_python-1.25.0/xero_python/payrolluk/models/employment.py +0 -184
  1143. xero_python-1.25.0/xero_python/payrolluk/models/employment_object.py +0 -120
  1144. xero_python-1.25.0/xero_python/payrolluk/models/invalid_field.py +0 -92
  1145. xero_python-1.25.0/xero_python/payrolluk/models/leave_accrual_line.py +0 -92
  1146. xero_python-1.25.0/xero_python/payrolluk/models/leave_earnings_line.py +0 -218
  1147. xero_python-1.25.0/xero_python/payrolluk/models/leave_period.py +0 -169
  1148. xero_python-1.25.0/xero_python/payrolluk/models/leave_periods.py +0 -120
  1149. xero_python-1.25.0/xero_python/payrolluk/models/leave_type.py +0 -285
  1150. xero_python-1.25.0/xero_python/payrolluk/models/leave_type_object.py +0 -120
  1151. xero_python-1.25.0/xero_python/payrolluk/models/leave_types.py +0 -120
  1152. xero_python-1.25.0/xero_python/payrolluk/models/pagination.py +0 -148
  1153. xero_python-1.25.0/xero_python/payrolluk/models/pay_run.py +0 -430
  1154. xero_python-1.25.0/xero_python/payrolluk/models/pay_run_calendar.py +0 -276
  1155. xero_python-1.25.0/xero_python/payrolluk/models/pay_run_calendar_object.py +0 -122
  1156. xero_python-1.25.0/xero_python/payrolluk/models/pay_run_calendars.py +0 -122
  1157. xero_python-1.25.0/xero_python/payrolluk/models/pay_run_object.py +0 -120
  1158. xero_python-1.25.0/xero_python/payrolluk/models/pay_runs.py +0 -120
  1159. xero_python-1.25.0/xero_python/payrolluk/models/payment_line.py +0 -189
  1160. xero_python-1.25.0/xero_python/payrolluk/models/payment_method.py +0 -102
  1161. xero_python-1.25.0/xero_python/payrolluk/models/payment_method_object.py +0 -122
  1162. xero_python-1.25.0/xero_python/payrolluk/models/payslip.py +0 -843
  1163. xero_python-1.25.0/xero_python/payrolluk/models/payslip_object.py +0 -120
  1164. xero_python-1.25.0/xero_python/payrolluk/models/payslips.py +0 -120
  1165. xero_python-1.25.0/xero_python/payrolluk/models/problem.py +0 -214
  1166. xero_python-1.25.0/xero_python/payrolluk/models/reimbursement.py +0 -162
  1167. xero_python-1.25.0/xero_python/payrolluk/models/reimbursement_line.py +0 -128
  1168. xero_python-1.25.0/xero_python/payrolluk/models/reimbursement_object.py +0 -120
  1169. xero_python-1.25.0/xero_python/payrolluk/models/reimbursements.py +0 -122
  1170. xero_python-1.25.0/xero_python/payrolluk/models/salary_and_wage.py +0 -341
  1171. xero_python-1.25.0/xero_python/payrolluk/models/salary_and_wage_object.py +0 -122
  1172. xero_python-1.25.0/xero_python/payrolluk/models/salary_and_wages.py +0 -122
  1173. xero_python-1.25.0/xero_python/payrolluk/models/settings.py +0 -120
  1174. xero_python-1.25.0/xero_python/payrolluk/models/statutory_deduction.py +0 -187
  1175. xero_python-1.25.0/xero_python/payrolluk/models/statutory_deduction_category.py +0 -40
  1176. xero_python-1.25.0/xero_python/payrolluk/models/tax_line.py +0 -218
  1177. xero_python-1.25.0/xero_python/payrolluk/models/timesheet.py +0 -324
  1178. xero_python-1.25.0/xero_python/payrolluk/models/timesheet_earnings_line.py +0 -218
  1179. xero_python-1.25.0/xero_python/payrolluk/models/timesheet_line.py +0 -198
  1180. xero_python-1.25.0/xero_python/payrolluk/models/timesheet_line_object.py +0 -122
  1181. xero_python-1.25.0/xero_python/payrolluk/models/timesheet_object.py +0 -120
  1182. xero_python-1.25.0/xero_python/payrolluk/models/timesheets.py +0 -120
  1183. xero_python-1.25.0/xero_python/payrolluk/models/tracking_categories.py +0 -122
  1184. xero_python-1.25.0/xero_python/payrolluk/models/tracking_category.py +0 -108
  1185. xero_python-1.25.0/xero_python/project/__init__.py +0 -39
  1186. xero_python-1.25.0/xero_python/project/api/__init__.py +0 -4
  1187. xero_python-1.25.0/xero_python/project/api/project_api.py +0 -1536
  1188. xero_python-1.25.0/xero_python/project/models/__init__.py +0 -34
  1189. xero_python-1.25.0/xero_python/project/models/amount.py +0 -88
  1190. xero_python-1.25.0/xero_python/project/models/charge_type.py +0 -29
  1191. xero_python-1.25.0/xero_python/project/models/currency_code.py +0 -190
  1192. xero_python-1.25.0/xero_python/project/models/error.py +0 -92
  1193. xero_python-1.25.0/xero_python/project/models/pagination.py +0 -156
  1194. xero_python-1.25.0/xero_python/project/models/project.py +0 -653
  1195. xero_python-1.25.0/xero_python/project/models/project_create_or_update.py +0 -157
  1196. xero_python-1.25.0/xero_python/project/models/project_patch.py +0 -67
  1197. xero_python-1.25.0/xero_python/project/models/project_status.py +0 -28
  1198. xero_python-1.25.0/xero_python/project/models/project_user.py +0 -118
  1199. xero_python-1.25.0/xero_python/project/models/project_users.py +0 -88
  1200. xero_python-1.25.0/xero_python/project/models/projects.py +0 -88
  1201. xero_python-1.25.0/xero_python/project/models/task.py +0 -478
  1202. xero_python-1.25.0/xero_python/project/models/task_create_or_update.py +0 -161
  1203. xero_python-1.25.0/xero_python/project/models/tasks.py +0 -88
  1204. xero_python-1.25.0/xero_python/project/models/time_entries.py +0 -88
  1205. xero_python-1.25.0/xero_python/project/models/time_entry.py +0 -314
  1206. xero_python-1.25.0/xero_python/project/models/time_entry_create_or_update.py +0 -196
  1207. xero_python-1.25.0/xero_python/rest.py +0 -382
  1208. xero_python-1.25.0/xero_python/single_dispatch_str.py +0 -97
  1209. xero_python-1.25.0/xero_python/utils.py +0 -45
  1210. xero_python-1.25.0/xero_python.egg-info/PKG-INFO +0 -640
  1211. {xero_python-1.25.0 → xero_python-2.0.0}/tests/accounting/api/fixtures/inv-0032.pdf +0 -0
  1212. {xero_python-1.25.0 → xero_python-2.0.0}/xero_python.egg-info/SOURCES.txt +0 -0
  1213. {xero_python-1.25.0 → xero_python-2.0.0}/xero_python.egg-info/dependency_links.txt +0 -0
  1214. {xero_python-1.25.0 → xero_python-2.0.0}/xero_python.egg-info/requires.txt +0 -0
  1215. {xero_python-1.25.0 → xero_python-2.0.0}/xero_python.egg-info/top_level.txt +0 -0
@@ -0,0 +1,9 @@
1
+ # Credits
2
+
3
+ ## Development Lead
4
+
5
+ * Xero Developer API <api@xero.com>
6
+
7
+ ## Contributors
8
+
9
+ None yet. Why not be the first?
@@ -0,0 +1,4 @@
1
+ ## History
2
+
3
+ ### 0.1.0 (2020-03-02)
4
+ * First release on PyPI.
@@ -0,0 +1,22 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2020, Xero Developer API
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
22
+
@@ -0,0 +1,11 @@
1
+ include AUTHORS.md
2
+ include HISTORY.md
3
+ include LICENSE
4
+ include README.md
5
+ include requirements.txt
6
+
7
+ recursive-include tests *
8
+ recursive-exclude * __pycache__
9
+ recursive-exclude * *.py[co]
10
+
11
+ recursive-include docs *.md conf.py Makefile make.bat *.jpg *.png *.gif
@@ -0,0 +1,643 @@
1
+ Metadata-Version: 2.1
2
+ Name: xero_python
3
+ Version: 2.0.0
4
+ Summary: Official Python sdk for Xero API generated by OpenAPI spec for oAuth2
5
+ Author: Xero Developer API
6
+ Author-email: api@xero.com
7
+ License: MIT license
8
+ Keywords: xero python sdk API oAuth
9
+ Classifier: Development Status :: 4 - Beta
10
+ Classifier: Intended Audience :: Developers
11
+ Classifier: License :: OSI Approved :: MIT License
12
+ Classifier: Natural Language :: English
13
+ Classifier: Programming Language :: Python :: 3
14
+ Classifier: Programming Language :: Python :: 3.5
15
+ Classifier: Programming Language :: Python :: 3.6
16
+ Classifier: Programming Language :: Python :: 3.7
17
+ Classifier: Programming Language :: Python :: 3.8
18
+ Requires-Python: >=3.5
19
+ Description-Content-Type: text/markdown
20
+ License-File: LICENSE
21
+ License-File: AUTHORS.md
22
+ Requires-Dist: python-dateutil>=2.7
23
+ Requires-Dist: urllib3
24
+ Requires-Dist: certifi
25
+
26
+ # xero-python
27
+ [![PyPI version](https://badge.fury.io/py/xero-python.svg)](https://badge.fury.io/py/xero-python)
28
+ [![Github forks](https://img.shields.io/github/forks/XeroAPI/xero-python.svg)](https://github.com/XeroAPI/xero-python/network)
29
+ [![Github stars](https://img.shields.io/github/stars/XeroAPI/xero-python.svg)](https://github.com/XeroAPI/xero-python/stargazers)
30
+ [![Downloads](https://pepy.tech/badge/xero-python)](https://pepy.tech/project/xero-python)
31
+
32
+ The xero-python SDK makes it easy for developers to access Xero's APIs in their python code, and build robust applications and software using small business & general ledger accounting data.
33
+ # Table of Contents
34
+ - [API Client documentation](#api-client-documentation)
35
+ - [Sample Applications](#sample-applications)
36
+ - [Xero Account Requirements](#xero-account-requirements)
37
+ - [Installation](#installation)
38
+ - [Configuration](#configuration)
39
+ - [Authentication](#authentication)
40
+ - [Custom Connections](#custom-connections)
41
+ - [App Store Subscriptions](#app-store-subscriptions)
42
+ - [API Clients](#api-clients)
43
+ - [Helper Methods](#helper-methods)
44
+ - [Usage Examples](#usage-examples)
45
+ - [SDK conventions](#sdk-conventions)
46
+ - [Participating in Xero’s developer community](#participating-in-xeros-developer-community)
47
+ - [Contributing](#contributing)
48
+
49
+ <hr>
50
+
51
+ ## API Client documentation
52
+ This SDK supports full method coverage for the following Xero API sets:
53
+
54
+ | API Set | Description |
55
+ | --- | --- |
56
+ | [`Accounting`](https://xeroapi.github.io/xero-python/v1/accounting/index.html) | The Accounting API exposes accounting functions of the main Xero application *(most commonly used)*
57
+ | [Assets](https://xeroapi.github.io/xero-python/v1/assets/index.html) | The Assets API exposes fixed asset related functions of the Xero Accounting application |
58
+ | [Files](https://xeroapi.github.io/xero-python/v1/files/index.html) | The Files API provides access to the files, folders, and the association of files within a Xero organisation |
59
+ | [Projects](https://xeroapi.github.io/xero-python/v1/projects/index.html) | Xero Projects allows businesses to track time and costs on projects/jobs and report on profitability |
60
+ | [Payroll (AU)](https://xeroapi.github.io/xero-python/v1/payroll-au/index.html) | The (AU) Payroll API exposes payroll related functions of the payroll Xero application |
61
+ | [Payroll (UK)](https://xeroapi.github.io/xero-python/v1/payroll-uk/index.html) | The (UK) Payroll API exposes payroll related functions of the payroll Xero application |
62
+ | [Payroll (NZ)](https://xeroapi.github.io/xero-python/v1/payroll-nz/index.html) | The (NZ) Payroll API exposes payroll related functions of the payroll Xero application |
63
+
64
+ <img src="https://i.imgur.com/feMhCtI.png" alt="drawing" width="350"/>
65
+
66
+ <hr>
67
+
68
+ ## Sample Applications
69
+ Sample apps can get you started quickly with simple auth flows and advanced usage examples.
70
+
71
+ | Sample App | Description | Screenshot |
72
+ | --- | --- | --- |
73
+ | [`starter-app`](https://github.com/XeroAPI/xero-python-oauth2-starter) | Basic getting started code samples | <img src="https://i.imgur.com/gJA93yT.png" alt="drawing" width="200"/>
74
+ | [`full-app`](https://github.com/XeroAPI/xero-python-oauth2-app) | Complete app with more complex examples | <img src="https://i.imgur.com/1YRqMmc.png" alt="drawing" width="500"/>
75
+ | [`custom-connections-starter`](https://github.com/XeroAPI/xero-python-custom-connections-starter) | Basic app showing Custom Connections - a Xero [premium option](https://developer.xero.com/documentation/oauth2/custom-connections) for building M2M integrations to a single org | <img src="https://i.imgur.com/uOlaWg8.png" alt="drawing" width="300"/>
76
+
77
+ <hr>
78
+
79
+ ## Xero Account Requirements
80
+ - Create a [free Xero user account](https://www.xero.com/us/signup/api/)
81
+ - Login to your Xero developer [dashboard](https://developer.xero.com/app/manage) and create an API application
82
+ - Copy the credentials from your API app and store them using a secure ENV variable strategy
83
+ - Decide the [neccesary scopes](https://developer.xero.com/documentation/oauth2/scopes) for your app's functionality
84
+
85
+ # Installation
86
+ To install this SDK in your project:
87
+ ```
88
+ pip install xero-python
89
+ ```
90
+
91
+ ---
92
+ ## Configuration
93
+ ```python
94
+ # -*- coding: utf-8 -*-
95
+ import os
96
+ from functools import wraps
97
+ from io import BytesIO
98
+ from logging.config import dictConfig
99
+ from flask import Flask, session
100
+ from flask_oauthlib.contrib.client import OAuth, OAuth2Application
101
+ from flask_session import Session
102
+ from xero_python.accounting import AccountingApi
103
+ from xero_python.assets import AssetApi
104
+ from xero_python.project import ProjectApi
105
+ from xero_python.payrollau import PayrollAuApi
106
+ from xero_python.payrolluk import PayrollUkApi
107
+ from xero_python.payrollnz import PayrollNzApi
108
+ from xero_python.file import FilesApi
109
+ from xero_python.api_client import ApiClient, serialize
110
+ from xero_python.api_client.configuration import Configuration
111
+ from xero_python.api_client.oauth2 import OAuth2Token
112
+ from xero_python.exceptions import AccountingBadRequestException, PayrollUkBadRequestException
113
+ from xero_python.identity import IdentityApi
114
+ from xero_python.utils import getvalue
115
+ import logging_settings
116
+ from utils import jsonify, serialize_model
117
+
118
+ dictConfig(logging_settings.default_settings)
119
+
120
+ # configure main flask application
121
+ app = Flask(__name__)
122
+ app.config.from_object("default_settings")
123
+ app.config.from_pyfile("config.py", silent=True)
124
+
125
+ if app.config["ENV"] != "production":
126
+ # allow oauth2 loop to run over http (used for local testing only)
127
+ os.environ["OAUTHLIB_INSECURE_TRANSPORT"] = "1"
128
+
129
+ # configure persistent session cache
130
+ Session(app)
131
+
132
+ # configure flask-oauthlib application
133
+ oauth = OAuth(app)
134
+ xero = oauth.remote_app(
135
+ name="xero",
136
+ version="2",
137
+ client_id=app.config["CLIENT_ID"],
138
+ client_secret=app.config["CLIENT_SECRET"],
139
+ endpoint_url="https://api.xero.com/",
140
+ authorization_url="https://login.xero.com/identity/connect/authorize",
141
+ access_token_url="https://identity.xero.com/connect/token",
142
+ refresh_token_url="https://identity.xero.com/connect/token",
143
+ scope="offline_access openid profile email accounting.transactions "
144
+ "accounting.transactions.read accounting.reports.read "
145
+ "accounting.journals.read accounting.settings accounting.settings.read "
146
+ "accounting.contacts accounting.contacts.read accounting.attachments "
147
+ "accounting.attachments.read assets projects "
148
+ "files "
149
+ "payroll.employees payroll.payruns payroll.payslip payroll.timesheets payroll.settings",
150
+ ) # type: OAuth2Application
151
+
152
+
153
+ # configure xero-python sdk client
154
+ api_client = ApiClient(
155
+ Configuration(
156
+ debug=app.config["DEBUG"],
157
+ oauth2_token=OAuth2Token(
158
+ client_id=app.config["CLIENT_ID"], client_secret=app.config["CLIENT_SECRET"]
159
+ ),
160
+ ),
161
+ pool_threads=1,
162
+ )
163
+
164
+ # configure token persistence and exchange point between flask-oauthlib and xero-python
165
+ @xero.tokengetter
166
+ @api_client.oauth2_token_getter
167
+ def obtain_xero_oauth2_token():
168
+ return session.get("token")
169
+
170
+ @xero.tokensaver
171
+ @api_client.oauth2_token_saver
172
+ def store_xero_oauth2_token(token):
173
+ session["token"] = token
174
+ session.modified = True
175
+ ```
176
+
177
+ ---
178
+ ## Authentication
179
+ All API requests go through Xero's OAuth 2.0 gateway and require a valid `access_token` to be set on the `client` which appends the `access_token` [JWT](https://jwt.io/) to the header of each request.
180
+
181
+ If you are making an API call for the first time:
182
+
183
+ 1. Send the user to the Xero authorization URL
184
+ ```python
185
+ @app.route("/login")
186
+ def login():
187
+ redirect_url = url_for("oauth_callback", _external=True)
188
+ session["state"] = app.config["STATE"]
189
+ try:
190
+ response = xero.authorize(callback_uri=redirect_url, state=session["state"])
191
+ except Exception as e:
192
+ print(e)
193
+ raise
194
+ return response
195
+ ```
196
+ 2. The user will authorize your application and be sent to your `redirect_uri`. This is when and where to check that the returned "state" param matches that which was previously defined. If the "state" params match, calling the oauth library's `authorized_response()` method will swap the temporary auth code for an access token which you can store and use for subsequent API calls.
197
+ ```python
198
+ @app.route("/callback")
199
+ def oauth_callback():
200
+ if request.args.get("state") != session["state"]:
201
+ return "Error, state doesn't match, no token for you."
202
+ try:
203
+ response = xero.authorized_response()
204
+ except Exception as e:
205
+ print(e)
206
+ raise
207
+ if response is None or response.get("access_token") is None:
208
+ return "Access denied: response=%s" % response
209
+ store_xero_oauth2_token(response)
210
+ return redirect(url_for("index", _external=True))
211
+ ```
212
+ 3. Call the Xero API like so:
213
+ ```python
214
+ @app.route("/accounting_invoice_read_all")
215
+ @xero_token_required
216
+ def accounting_invoice_read_all():
217
+ code = get_code_snippet("INVOICES","READ_ALL")
218
+
219
+ #[INVOICES:READ_ALL]
220
+ xero_tenant_id = get_xero_tenant_id()
221
+ accounting_api = AccountingApi(api_client)
222
+
223
+ try:
224
+ invoices_read = accounting_api.get_invoices(
225
+ xero_tenant_id
226
+ )
227
+ except AccountingBadRequestException as exception:
228
+ output = "Error: " + exception.reason
229
+ json = jsonify(exception.error_data)
230
+ else:
231
+ output = "Total invoices found: {}.".format(len(invoices_read.invoices)
232
+ )
233
+ json = serialize_model(invoices_read)
234
+ #[/INVOICES:READ_ALL]
235
+
236
+ return render_template(
237
+ "output.html", title="Invoices",code=code, output=output, json=json, len = 0, set="accounting", endpoint="invoice", action="read_all"
238
+ )
239
+ ```
240
+
241
+ It is recommended that you store this token set JSON in a datastore in relation to the user who has authenticated the Xero API connection. Each time you want to call the Xero API, you will need to access the previously generated token set, initialize it on the SDK `client`, and refresh the `access_token` prior to making API calls.
242
+
243
+ ### Token Set
244
+ | key | value | description |
245
+ | --- | --- | --- |
246
+ | id_token: | "xxx.yyy.zzz" | [OpenID Connect](https://openid.net/connect/) token returned if `openid profile email` scopes accepted |
247
+ | access_token: | "xxx.yyy.zzz" | [Bearer token](https://oauth.net/2/jwt/) with a 30 minute expiration required for all API calls |
248
+ | expires_in: | 1800 | Time in seconds till the token expires - 1800s is 30m |
249
+ | refresh_token: | "XXXXXXX" | Alphanumeric string used to obtain a new Token Set w/ a fresh access_token - 60 day expiry |
250
+ | scope: | ["email", "profile", "openid", "accounting.transactions", "offline_access"] | The Xero permissions that are embedded in the `access_token` |
251
+
252
+ Example Token Set JSON:
253
+ ```
254
+ {
255
+ "id_token": "xxx.yyy.zz",
256
+ "access_token": "xxx.yyy.zzz",
257
+ "expires_in": 1800,
258
+ "token_type": "Bearer",
259
+ "refresh_token": "xxxxxxxxx",
260
+ "scope": ["email", "profile", "openid", "accounting.transactions", "offline_access"]
261
+ }
262
+ ```
263
+
264
+ ---
265
+ ## Custom Connections
266
+
267
+ Custom Connections are a Xero [premium option](https://developer.xero.com/documentation/oauth2/custom-connections) used for building M2M integrations to a single organisation. A custom connection uses OAuth 2.0's [`client_credentials`](https://www.oauth.com/oauth2-servers/access-tokens/client-credentials/) grant which eliminates the step of exchanging the temporary code for a token set.
268
+
269
+ To use this SDK with a Custom Connections:
270
+ ```python
271
+ # -*- coding: utf-8 -*-
272
+ import os
273
+ from functools import wraps
274
+ from io import BytesIO
275
+ from logging.config import dictConfig
276
+ from flask import Flask, url_for, render_template, session, redirect, json, send_file
277
+ from flask_session import Session
278
+ from xero_python.accounting import AccountingApi, ContactPerson, Contact, Contacts
279
+ from xero_python.api_client import ApiClient, serialize
280
+ from xero_python.api_client.configuration import Configuration
281
+ from xero_python.api_client.oauth2 import OAuth2Token
282
+ from xero_python.exceptions import AccountingBadRequestException
283
+ from xero_python.identity import IdentityApi
284
+ from xero_python.utils import getvalue
285
+ import logging_settings
286
+ from utils import jsonify, serialize_model
287
+
288
+ dictConfig(logging_settings.default_settings)
289
+
290
+ # configure main flask application
291
+ app = Flask(__name__)
292
+ app.config.from_object("default_settings")
293
+ app.config.from_pyfile("config.py", silent=True)
294
+
295
+ # configure persistent session cache
296
+ Session(app)
297
+
298
+ # configure xero-python sdk client
299
+ api_client = ApiClient(
300
+ Configuration(
301
+ debug=app.config["DEBUG"],
302
+ oauth2_token=OAuth2Token(
303
+ client_id=app.config["CLIENT_ID"], client_secret=app.config["CLIENT_SECRET"]
304
+ ),
305
+ ),
306
+ pool_threads=1,
307
+ )
308
+
309
+ # configure token persistence and exchange point between app session and xero-python
310
+ @api_client.oauth2_token_getter
311
+ def obtain_xero_oauth2_token():
312
+ return session.get("token")
313
+
314
+ @api_client.oauth2_token_saver
315
+ def store_xero_oauth2_token(token):
316
+ session["token"] = token
317
+ session.modified = True
318
+
319
+ @app.route("/get_token")
320
+ def get_token():
321
+ try:
322
+ # no user auth flow, no exchanging temp code for token
323
+ xero_token = api_client.get_client_credentials_token()
324
+ except Exception as e:
325
+ print(e)
326
+ raise
327
+ # todo validate state value
328
+ if xero_token is None or xero_token.get("access_token") is None:
329
+ return "Access denied: response=%s" % xero_token
330
+ store_xero_oauth2_token(xero_token)
331
+ return redirect(url_for("index", _external=True))
332
+
333
+ @app.route("/accounting_invoice_read_all")
334
+ @xero_token_required
335
+ def accounting_invoice_read_all():
336
+ code = get_code_snippet("INVOICES","READ_ALL")
337
+
338
+ #[INVOICES:READ_ALL]
339
+ accounting_api = AccountingApi(api_client)
340
+
341
+ try:
342
+ invoices_read = accounting_api.get_invoices('')
343
+ except AccountingBadRequestException as exception:
344
+ output = "Error: " + exception.reason
345
+ json = jsonify(exception.error_data)
346
+ else:
347
+ output = "Total invoices found: {}.".format(len(invoices_read.invoices)
348
+ )
349
+ json = serialize_model(invoices_read)
350
+ #[/INVOICES:READ_ALL]
351
+
352
+ return render_template(
353
+ "output.html", title="Invoices",code=code, output=output, json=json, len = 0, set="accounting", endpoint="invoice", action="read_all"
354
+ )
355
+ ```
356
+
357
+ Because Custom Connections are only valid for a single organisation you don't need to pass the xero-tenant-id as the first parameter to every method, or more specifically for this SDK xeroTenantId can be an empty string.
358
+
359
+ > Because the SDK is generated from the OpenAPI spec the parameter remains. For now you are required to pass an empty string to use this SDK with a Custom Connection.
360
+
361
+ ---
362
+
363
+ ## App Store Subscriptions
364
+
365
+ If you are implementing subscriptions to participate in Xero's App Store you will need to setup [App Store subscriptions](https://developer.xero.com/documentation/guides/how-to-guides/xero-app-store-referrals/) endpoints.
366
+
367
+ When a plan is successfully purchased, the user is redirected back to the URL specified in the setup process. The Xero App Store appends the subscription Id to this URL so you can immediately determine what plan the user has subscribed to through the subscriptions API.
368
+
369
+ With your app credentials you can create a client via `client_credentials` grant_type with the `marketplace.billing` scope. This unique access_token will allow you to query any functions in `AppStoreApi`. Client Credentials tokens to query app store endpoints will only work for apps that have completed the App Store on-boarding process.
370
+ ```python
371
+ # configure xero-python sdk client
372
+ api_client = ApiClient(
373
+ Configuration(
374
+ debug=app.config["DEBUG"],
375
+ oauth2_token=OAuth2Token(
376
+ client_id=app.config["CLIENT_ID"], client_secret=app.config["CLIENT_SECRET"]
377
+ ),
378
+ ),
379
+ pool_threads=1,
380
+ )
381
+
382
+ try:
383
+ # pass True for app_store_billing - defaults to False if no value provided
384
+ xero_token = api_client.get_client_credentials_token(True)
385
+ except Exception as e:
386
+ print(e)
387
+ raise
388
+
389
+ app_store_api = AppStoreApi(api_client)
390
+
391
+ subscription = app_store_api.get_subscription(subscription_id)
392
+ print(subscription)
393
+
394
+ {
395
+ 'current_period_end': datetime.datetime(2021, 9, 2, 14, 8, 58, 772536, tzinfo=tzutc()),
396
+ 'end_date': None,
397
+ 'id': '03bc74f2-1237-4477-b782-2dfb1a6d8b21',
398
+ 'organisation_id': '79e8b2e5-c63d-4dce-888f-e0f3e9eac647',
399
+ 'plans':[
400
+ {
401
+ 'id': '6abc26f3-9390-4194-8b25-ce8b9942fda9',
402
+ 'name': 'Small',
403
+ 'status': 'ACTIVE',
404
+ 'subscription_items': [
405
+ {
406
+ 'end_date': None,
407
+ 'id': '834cff4c-b753-4de2-9e7a-3451e14fa17a',
408
+ 'price': {
409
+ 'amount': Decimal('0.1000'),
410
+ 'currency': 'NZD',
411
+ 'id': '2310de92-c7c0-4bcb-b972-fb7612177bc7'
412
+ },
413
+ 'product': {
414
+ 'id': '9586421f-7325-4493-bac9-d93be06a6a38',
415
+ 'name': '',
416
+ 'type': 'FIXED',
417
+ 'seat_unit': None
418
+ },
419
+ 'start_date': datetime.datetime(2021, 8, 2, 14, 8, 58, 772536, tzinfo=tzutc()),
420
+ 'test_mode': True
421
+ }
422
+ ]
423
+ }
424
+ ],
425
+ 'start_date': datetime.datetime(2021, 8, 2, 14, 8, 58, 772536, tzinfo=tzutc()),
426
+ 'status': 'ACTIVE',
427
+ 'test_mode': True
428
+ }
429
+
430
+ ```
431
+ You should use the subscription data to provision user access/permissions to your application.
432
+ ### App Store Subscription Webhooks
433
+
434
+ In additon to a subscription Id being passed through the URL, when a purchase or an upgrade takes place you will be notified via a webhook. You can then use the subscription Id in the webhook payload to query the AppStore endpoints and determine what plan the user purchased, upgraded, downgraded or cancelled.
435
+
436
+ Refer to Xero's documenation to learn more about setting up and receiving webhooks.
437
+ > https://developer.xero.com/documentation/guides/webhooks/overview/
438
+
439
+ ---
440
+ ## API Clients
441
+ You can access the different API sets and their available methods through the following:
442
+
443
+ ```python
444
+ accounting_api = AccountingApi(api_client)
445
+ read_accounts = accounting_api.get_accounts(xero_tenant_id)
446
+ asset_api = AssetApi(api_client)
447
+ read_assets = asset_api.get_assets(xero_tenant_id)
448
+ # ... all the API sets follow the same pattern
449
+ ```
450
+ ---
451
+ ## Helper Methods
452
+
453
+ Once you have a valid Token Set in your datastore, the next time you want to call the Xero API simply initialize a new `client` and refresh the token set.
454
+
455
+ ```python
456
+ # configure xero-python sdk client
457
+ api_client = ApiClient(
458
+ Configuration(
459
+ debug=app.config["DEBUG"],
460
+ oauth2_token=OAuth2Token(
461
+ client_id=app.config["CLIENT_ID"], client_secret=app.config["CLIENT_SECRET"]
462
+ ),
463
+ ),
464
+ pool_threads=1,
465
+ )
466
+
467
+ # configure token persistence and exchange point between app session and xero-python
468
+ @api_client.oauth2_token_getter
469
+ def obtain_xero_oauth2_token():
470
+ return session.get("token")
471
+
472
+ @api_client.oauth2_token_saver
473
+ def store_xero_oauth2_token(token):
474
+ session["token"] = token
475
+ session.modified = True
476
+
477
+ # get existing token set
478
+ token_set = get_token_set_from_database(user_id); // example function name
479
+
480
+ # set token set to the api client
481
+ store_xero_oauth2_token(token_set)
482
+
483
+ # refresh token set on the api client
484
+ api_client.refresh_oauth2_token()
485
+
486
+ # call the Xero API
487
+ accounting_api = AccountingApi(api_client)
488
+ read_accounts = accounting_api.get_accounts(xero_tenant_id)
489
+ ```
490
+
491
+ A full list of the SDK client's methods:
492
+
493
+ | method | description | params | returns
494
+ | --- | --- | --- | --- |
495
+ | api_client.`oauth2_token_saver` | A decorator to register a callback function for saving refreshed token while the old token has expired | token_saver: the callback function accepting `token` argument | token_saver to allow this method be used as decorator |
496
+ | api_client.`oauth2_token_getter` | A decorator to register a callback function for getting oauth2 token | token_getter: the callback function returning oauth2 token dictionary | token_getter to allow this method be used as decorator |
497
+ | api_client.`revoke_oauth2_token` | Revokes a users refresh token and removes all their connections to your app | N/A | empty OAuth2 token |
498
+ | api_client.`refresh_oauth2_token` | Refreshes OAuth2 token set | N/A | new token set |
499
+ | api_client.`set_oauth2_token` | Sets OAuth2 token directly on the client | dict token: standard token dictionary | N/A |
500
+ | api_client.`get_oauth2_token` | Get OAuth2 token dictionary | N/A | dict |
501
+ ---
502
+ ## Usage Examples
503
+ ### Accounting API
504
+ ```python
505
+ from xero_python.accounting import AccountingApi
506
+ from xero_python.utils import getvalue
507
+
508
+ accounting_api = AccountingApi(api_client)
509
+
510
+ # Get Accounts
511
+ read_accounts = accounting_api.get_accounts(xero_tenant_id)
512
+ account_id = getvalue(read_accounts, "accounts.0.account_id", "")
513
+
514
+ # Get Account by ID
515
+ read_one_account = accounting_api.get_account(xero_tenant_id, account_id)
516
+
517
+ # Create Invoice
518
+ # get contact
519
+ read_contacts = accounting_api.get_contacts(xero_tenant_id)
520
+ contact_id = getvalue(read_contacts, "contacts.0.contact_id", "")
521
+ # get account
522
+ where = "Type==\"SALES\"&&Status==\"ACTIVE\""
523
+ read_accounts = accounting_api.get_accounts(
524
+ xero_tenant_id, where=where
525
+ )
526
+ account_id = getvalue(read_accounts, "accounts.0.account_id", "")
527
+ # build Invoices
528
+ contact = Contact(
529
+ contact_id=contact_id
530
+ )
531
+ line_item = LineItem(
532
+ account_code=account_id,
533
+ description= "Consulting",
534
+ quantity=1.0,
535
+ unit_amount=10.0,
536
+ )
537
+ invoice = Invoice(
538
+ line_items=[line_item],
539
+ contact=contact,
540
+ due_date= dateutil.parser.parse("2020-09-03T00:00:00Z"),
541
+ date= dateutil.parser.parse("2020-07-03T00:00:00Z"),
542
+ type="ACCREC"
543
+ )
544
+ invoices = Invoices(invoices=[invoice])
545
+ created_invoices = accounting_api.create_invoices(xero_tenant_id, invoices=invoices)
546
+ invoice_id = getvalue(read_invoices, "invoices.0.invoice_id", "")
547
+
548
+ # Create Attachment
549
+ include_online = True
550
+ file_name = "helo-heros.jpg"
551
+ path_to_upload = Path(__file__).resolve().parent.joinpath(file_name)
552
+ open_file = open(path_to_upload, 'rb')
553
+ body = open_file.read()
554
+ content_type = mimetypes.MimeTypes().guess_type(file_name)[0]
555
+
556
+ created_invoice_attachments_by_file_name = accounting_api.create_invoice_attachment_by_file_name(
557
+ xero_tenant_id,
558
+ invoice_id,
559
+ file_name,
560
+ body,
561
+ include_online,
562
+ )
563
+ ```
564
+
565
+ ---
566
+ ## SDK conventions
567
+
568
+ ### Querying & Filtering
569
+
570
+ Describe the support for query options and filtering
571
+
572
+ ```python
573
+ # configure api_client for use with xero-python sdk client
574
+ api_client = ApiClient(
575
+ Configuration(
576
+ debug=false,
577
+ oauth2_token=OAuth2Token(
578
+ client_id="YOUR_CLIENT_ID", client_secret="YOUR_CLIENT_SECRET"
579
+ ),
580
+ ),
581
+ pool_threads=1,
582
+ )
583
+
584
+ api_client.set_oauth2_token("YOUR_ACCESS_TOKEN")
585
+
586
+ def accounting_get_invoices():
587
+ api_instance = AccountingApi(api_client)
588
+ xero_tenant_id = 'YOUR_XERO_TENANT_ID'
589
+ if_modified_since = dateutil.parser.parse("2020-02-06T12:17:43.202-08:00")
590
+ where = 'Status=="DRAFT"'
591
+ order = 'InvoiceNumber ASC'
592
+ ids = ["00000000-0000-0000-0000-000000000000"]
593
+ invoice_numbers = ["INV-001", "INV-002"]
594
+ contact_ids = ["00000000-0000-0000-0000-000000000000"]
595
+ statuses = ["DRAFT", "SUBMITTED"]
596
+ include_archived = 'true'
597
+ created_by_my_app = 'false'
598
+ summary_only = 'true'
599
+
600
+ api_response = api_instance.get_invoices(
601
+ xero_tenant_id,
602
+ if_modified_since,
603
+ where,
604
+ order,
605
+ ids,
606
+ invoice_numbers,
607
+ contact_ids,
608
+ statuses,
609
+ page,
610
+ include_archived,
611
+ created_by_my_app,
612
+ unitdp,
613
+ summary_only
614
+ )
615
+ ```
616
+
617
+ ---
618
+
619
+ ## Participating in Xero’s developer community
620
+
621
+ This SDK is one of a number of SDK’s that the Xero Developer team builds and maintains. We are grateful for all the contributions that the community makes.
622
+
623
+ Here are a few things you should be aware of as a contributor:
624
+ * Xero has adopted the Contributor Covenant [Code of Conduct](https://github.com/XeroAPI/xero-python/blob/master/CODE_OF_CONDUCT.md), we expect all contributors in our community to adhere to it
625
+ * If you raise an issue then please make sure to fill out the Github issue template, doing so helps us help you
626
+ * You’re welcome to raise PRs. As our SDKs are generated we may use your code in the core SDK build instead of merging your code
627
+ * We have a [contribution guide](https://github.com/XeroAPI/xero-python/blob/master/CONTRIBUTING.md) for you to follow when contributing to this SDK
628
+ * Curious about how we generate our SDK’s? Have a [read of our process](https://devblog.xero.com/building-sdks-for-the-future-b79ff726dfd6) and have a look at our [OpenAPISpec](https://github.com/XeroAPI/Xero-OpenAPI)
629
+ * This software is published under the [MIT License](https://github.com/XeroAPI/xero-python/blob/master/LICENSE)
630
+
631
+ For questions that aren’t related to SDKs please refer to our [developer support page](https://developer.xero.com/support/).
632
+
633
+ ### Contributing
634
+ PRs, issues, and discussion are highly appreciated and encouraged. Note that the majority of this project is generated code based on [Xero's OpenAPI specs](https://github.com/XeroAPI/Xero-OpenAPI) - PR's will be evaluated and pre-merge will be incorporated into the root generation templates.
635
+
636
+ ### Versioning
637
+ We do our best to keep OS industry `semver` standards, but we can make mistakes! If something is not accurately reflected in a version's release notes please let the team know.
638
+
639
+
640
+ ## History
641
+
642
+ ### 0.1.0 (2020-03-02)
643
+ * First release on PyPI.