xero-python 6.3.0a8__tar.gz → 7.0.1__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 (632) hide show
  1. xero_python-7.0.1/PKG-INFO +643 -0
  2. {xero_python-6.3.0a8 → xero_python-7.0.1}/setup.py +1 -1
  3. xero_python-7.0.1/tests/.DS_Store +0 -0
  4. {xero_python-6.3.0a8 → xero_python-7.0.1}/tests/test_api_client/test_oauth2.py +43 -0
  5. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/__init__.py +1 -1
  6. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/accounting/api/accounting_api.py +1 -1
  7. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/api_client/oauth2.py +1 -1
  8. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/appstore/api/app_store_api.py +1 -1
  9. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/assets/api/asset_api.py +1 -1
  10. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/file/api/files_api.py +1 -1
  11. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/finance/api/finance_api.py +1 -1
  12. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/finance/models/current_statement_response.py +2 -2
  13. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/finance/models/data_source_response.py +0 -87
  14. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/identity/api/identity_api.py +1 -1
  15. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/payrollau/api/payroll_au_api.py +1 -1
  16. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/payrollnz/api/payroll_nz_api.py +1 -1
  17. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/payrollnz/models/employee_leave_setup.py +93 -6
  18. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/payrollnz/models/employee_leave_type.py +93 -6
  19. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/payrollnz/models/leave_period.py +90 -3
  20. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/payrollnz/models/leave_type.py +58 -0
  21. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/payrolluk/api/payroll_uk_api.py +1 -1
  22. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/project/api/project_api.py +1 -1
  23. xero_python-7.0.1/xero_python.egg-info/PKG-INFO +643 -0
  24. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python.egg-info/SOURCES.txt +1 -0
  25. xero_python-6.3.0a8/PKG-INFO +0 -640
  26. xero_python-6.3.0a8/xero_python.egg-info/PKG-INFO +0 -640
  27. {xero_python-6.3.0a8 → xero_python-7.0.1}/AUTHORS.md +0 -0
  28. {xero_python-6.3.0a8 → xero_python-7.0.1}/HISTORY.md +0 -0
  29. {xero_python-6.3.0a8 → xero_python-7.0.1}/LICENSE +0 -0
  30. {xero_python-6.3.0a8 → xero_python-7.0.1}/MANIFEST.in +0 -0
  31. {xero_python-6.3.0a8 → xero_python-7.0.1}/README.md +0 -0
  32. {xero_python-6.3.0a8 → xero_python-7.0.1}/requirements.txt +0 -0
  33. {xero_python-6.3.0a8 → xero_python-7.0.1}/setup.cfg +0 -0
  34. {xero_python-6.3.0a8 → xero_python-7.0.1}/tests/__init__.py +0 -0
  35. {xero_python-6.3.0a8 → xero_python-7.0.1}/tests/accounting/__init__.py +0 -0
  36. {xero_python-6.3.0a8 → xero_python-7.0.1}/tests/accounting/api/__init__.py +0 -0
  37. {xero_python-6.3.0a8 → xero_python-7.0.1}/tests/accounting/api/cassettes/test_get_organisations.yaml +0 -0
  38. {xero_python-6.3.0a8 → xero_python-7.0.1}/tests/accounting/api/cassettes/test_invoice_attachment_upload_and_download.yaml +0 -0
  39. {xero_python-6.3.0a8 → xero_python-7.0.1}/tests/accounting/api/fixtures/inv-0032.pdf +0 -0
  40. {xero_python-6.3.0a8 → xero_python-7.0.1}/tests/accounting/api/test_accounting_api.py +0 -0
  41. {xero_python-6.3.0a8 → xero_python-7.0.1}/tests/cassettes/test_vcr.yaml +0 -0
  42. {xero_python-6.3.0a8 → xero_python-7.0.1}/tests/conftest.py +0 -0
  43. {xero_python-6.3.0a8 → xero_python-7.0.1}/tests/identity/__init__.py +0 -0
  44. {xero_python-6.3.0a8 → xero_python-7.0.1}/tests/identity/api/__init__.py +0 -0
  45. {xero_python-6.3.0a8 → xero_python-7.0.1}/tests/identity/api/cassettes/test_get_connections.yaml +0 -0
  46. {xero_python-6.3.0a8 → xero_python-7.0.1}/tests/identity/api/test_identity_api.py +0 -0
  47. {xero_python-6.3.0a8 → xero_python-7.0.1}/tests/test_api_client/__init__.py +0 -0
  48. {xero_python-6.3.0a8 → xero_python-7.0.1}/tests/test_api_client/cassettes/test_call_api_get_organisations.yaml +0 -0
  49. {xero_python-6.3.0a8 → xero_python-7.0.1}/tests/test_api_client/cassettes/test_token_api_refresh_token.yaml +0 -0
  50. {xero_python-6.3.0a8 → xero_python-7.0.1}/tests/test_api_client/test_deserializer.py +0 -0
  51. {xero_python-6.3.0a8 → xero_python-7.0.1}/tests/test_api_client/test_serializer.py +0 -0
  52. {xero_python-6.3.0a8 → xero_python-7.0.1}/tests/test_executor.py +0 -0
  53. {xero_python-6.3.0a8 → xero_python-7.0.1}/tests/test_single_dispatch_str.py +0 -0
  54. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/accounting/__init__.py +0 -0
  55. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/accounting/api/__init__.py +0 -0
  56. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/accounting/api/exception_handler.py +0 -0
  57. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/accounting/models/__init__.py +0 -0
  58. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/accounting/models/account.py +0 -0
  59. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/accounting/models/account_type.py +0 -0
  60. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/accounting/models/accounts.py +0 -0
  61. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/accounting/models/accounts_payable.py +0 -0
  62. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/accounting/models/accounts_receivable.py +0 -0
  63. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/accounting/models/action.py +0 -0
  64. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/accounting/models/actions.py +0 -0
  65. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/accounting/models/address.py +0 -0
  66. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/accounting/models/address_for_organisation.py +0 -0
  67. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/accounting/models/allocation.py +0 -0
  68. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/accounting/models/allocations.py +0 -0
  69. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/accounting/models/attachment.py +0 -0
  70. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/accounting/models/attachments.py +0 -0
  71. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/accounting/models/balance_details.py +0 -0
  72. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/accounting/models/balances.py +0 -0
  73. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/accounting/models/bank_transaction.py +0 -0
  74. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/accounting/models/bank_transactions.py +0 -0
  75. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/accounting/models/bank_transfer.py +0 -0
  76. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/accounting/models/bank_transfers.py +0 -0
  77. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/accounting/models/batch_payment.py +0 -0
  78. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/accounting/models/batch_payment_delete.py +0 -0
  79. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/accounting/models/batch_payment_delete_by_url_param.py +0 -0
  80. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/accounting/models/batch_payment_details.py +0 -0
  81. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/accounting/models/batch_payments.py +0 -0
  82. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/accounting/models/bill.py +0 -0
  83. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/accounting/models/branding_theme.py +0 -0
  84. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/accounting/models/branding_themes.py +0 -0
  85. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/accounting/models/budget.py +0 -0
  86. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/accounting/models/budget_balance.py +0 -0
  87. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/accounting/models/budget_line.py +0 -0
  88. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/accounting/models/budget_lines.py +0 -0
  89. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/accounting/models/budgets.py +0 -0
  90. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/accounting/models/cis_org_setting.py +0 -0
  91. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/accounting/models/cis_org_settings.py +0 -0
  92. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/accounting/models/cis_setting.py +0 -0
  93. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/accounting/models/cis_settings.py +0 -0
  94. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/accounting/models/contact.py +0 -0
  95. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/accounting/models/contact_group.py +0 -0
  96. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/accounting/models/contact_groups.py +0 -0
  97. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/accounting/models/contact_person.py +0 -0
  98. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/accounting/models/contacts.py +0 -0
  99. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/accounting/models/conversion_balances.py +0 -0
  100. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/accounting/models/conversion_date.py +0 -0
  101. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/accounting/models/country_code.py +0 -0
  102. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/accounting/models/credit_note.py +0 -0
  103. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/accounting/models/credit_notes.py +0 -0
  104. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/accounting/models/currencies.py +0 -0
  105. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/accounting/models/currency.py +0 -0
  106. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/accounting/models/currency_code.py +0 -0
  107. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/accounting/models/element.py +0 -0
  108. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/accounting/models/employee.py +0 -0
  109. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/accounting/models/employees.py +0 -0
  110. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/accounting/models/error.py +0 -0
  111. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/accounting/models/expense_claim.py +0 -0
  112. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/accounting/models/expense_claims.py +0 -0
  113. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/accounting/models/external_link.py +0 -0
  114. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/accounting/models/get_bank_transactions_response.py +0 -0
  115. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/accounting/models/get_contacts_response.py +0 -0
  116. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/accounting/models/get_credit_notes_response.py +0 -0
  117. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/accounting/models/get_invoices_response.py +0 -0
  118. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/accounting/models/get_manual_journals_response.py +0 -0
  119. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/accounting/models/get_overpayments_response.py +0 -0
  120. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/accounting/models/get_payments_response.py +0 -0
  121. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/accounting/models/get_prepayments_response.py +0 -0
  122. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/accounting/models/get_purchase_orders_response.py +0 -0
  123. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/accounting/models/history_record.py +0 -0
  124. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/accounting/models/history_records.py +0 -0
  125. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/accounting/models/import_summary.py +0 -0
  126. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/accounting/models/import_summary_accounts.py +0 -0
  127. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/accounting/models/import_summary_object.py +0 -0
  128. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/accounting/models/import_summary_organisation.py +0 -0
  129. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/accounting/models/invoice.py +0 -0
  130. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/accounting/models/invoice_address.py +0 -0
  131. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/accounting/models/invoice_reminder.py +0 -0
  132. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/accounting/models/invoice_reminders.py +0 -0
  133. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/accounting/models/invoices.py +0 -0
  134. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/accounting/models/item.py +0 -0
  135. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/accounting/models/items.py +0 -0
  136. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/accounting/models/journal.py +0 -0
  137. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/accounting/models/journal_line.py +0 -0
  138. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/accounting/models/journals.py +0 -0
  139. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/accounting/models/line_amount_types.py +0 -0
  140. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/accounting/models/line_item.py +0 -0
  141. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/accounting/models/line_item_item.py +0 -0
  142. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/accounting/models/line_item_tracking.py +0 -0
  143. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/accounting/models/linked_transaction.py +0 -0
  144. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/accounting/models/linked_transactions.py +0 -0
  145. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/accounting/models/manual_journal.py +0 -0
  146. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/accounting/models/manual_journal_line.py +0 -0
  147. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/accounting/models/manual_journals.py +0 -0
  148. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/accounting/models/online_invoice.py +0 -0
  149. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/accounting/models/online_invoices.py +0 -0
  150. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/accounting/models/organisation.py +0 -0
  151. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/accounting/models/organisations.py +0 -0
  152. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/accounting/models/overpayment.py +0 -0
  153. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/accounting/models/overpayments.py +0 -0
  154. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/accounting/models/page_info.py +0 -0
  155. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/accounting/models/pagination.py +0 -0
  156. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/accounting/models/payment.py +0 -0
  157. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/accounting/models/payment_delete.py +0 -0
  158. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/accounting/models/payment_service.py +0 -0
  159. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/accounting/models/payment_services.py +0 -0
  160. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/accounting/models/payment_term.py +0 -0
  161. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/accounting/models/payment_term_type.py +0 -0
  162. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/accounting/models/payments.py +0 -0
  163. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/accounting/models/phone.py +0 -0
  164. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/accounting/models/prepayment.py +0 -0
  165. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/accounting/models/prepayments.py +0 -0
  166. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/accounting/models/purchase.py +0 -0
  167. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/accounting/models/purchase_order.py +0 -0
  168. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/accounting/models/purchase_orders.py +0 -0
  169. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/accounting/models/quote.py +0 -0
  170. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/accounting/models/quote_line_amount_types.py +0 -0
  171. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/accounting/models/quote_status_codes.py +0 -0
  172. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/accounting/models/quotes.py +0 -0
  173. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/accounting/models/receipt.py +0 -0
  174. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/accounting/models/receipts.py +0 -0
  175. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/accounting/models/repeating_invoice.py +0 -0
  176. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/accounting/models/repeating_invoices.py +0 -0
  177. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/accounting/models/report.py +0 -0
  178. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/accounting/models/report_attribute.py +0 -0
  179. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/accounting/models/report_cell.py +0 -0
  180. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/accounting/models/report_fields.py +0 -0
  181. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/accounting/models/report_row.py +0 -0
  182. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/accounting/models/report_rows.py +0 -0
  183. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/accounting/models/report_with_row.py +0 -0
  184. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/accounting/models/report_with_rows.py +0 -0
  185. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/accounting/models/reports.py +0 -0
  186. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/accounting/models/request_empty.py +0 -0
  187. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/accounting/models/row_type.py +0 -0
  188. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/accounting/models/sales_tracking_category.py +0 -0
  189. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/accounting/models/schedule.py +0 -0
  190. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/accounting/models/setup.py +0 -0
  191. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/accounting/models/tax_breakdown_component.py +0 -0
  192. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/accounting/models/tax_component.py +0 -0
  193. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/accounting/models/tax_rate.py +0 -0
  194. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/accounting/models/tax_rates.py +0 -0
  195. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/accounting/models/tax_type.py +0 -0
  196. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/accounting/models/ten_ninety_nine_contact.py +0 -0
  197. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/accounting/models/ten_nintey_nine_contact.py +0 -0
  198. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/accounting/models/time_zone.py +0 -0
  199. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/accounting/models/tracking_categories.py +0 -0
  200. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/accounting/models/tracking_category.py +0 -0
  201. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/accounting/models/tracking_option.py +0 -0
  202. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/accounting/models/tracking_options.py +0 -0
  203. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/accounting/models/user.py +0 -0
  204. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/accounting/models/users.py +0 -0
  205. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/accounting/models/validation_error.py +0 -0
  206. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/api_client/__init__.py +0 -0
  207. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/api_client/configuration.py +0 -0
  208. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/api_client/deserializer.py +0 -0
  209. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/api_client/serializer.py +0 -0
  210. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/appstore/__init__.py +0 -0
  211. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/appstore/api/__init__.py +0 -0
  212. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/appstore/models/__init__.py +0 -0
  213. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/appstore/models/create_usage_record.py +0 -0
  214. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/appstore/models/plan.py +0 -0
  215. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/appstore/models/price.py +0 -0
  216. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/appstore/models/problem_details.py +0 -0
  217. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/appstore/models/product.py +0 -0
  218. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/appstore/models/subscription.py +0 -0
  219. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/appstore/models/subscription_item.py +0 -0
  220. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/appstore/models/update_usage_record.py +0 -0
  221. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/appstore/models/usage_record.py +0 -0
  222. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/appstore/models/usage_records_list.py +0 -0
  223. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/assets/__init__.py +0 -0
  224. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/assets/api/__init__.py +0 -0
  225. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/assets/models/__init__.py +0 -0
  226. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/assets/models/asset.py +0 -0
  227. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/assets/models/asset_status.py +0 -0
  228. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/assets/models/asset_status_query_param.py +0 -0
  229. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/assets/models/asset_type.py +0 -0
  230. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/assets/models/assets.py +0 -0
  231. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/assets/models/book_depreciation_detail.py +0 -0
  232. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/assets/models/book_depreciation_setting.py +0 -0
  233. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/assets/models/error.py +0 -0
  234. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/assets/models/field_validation_errors_element.py +0 -0
  235. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/assets/models/pagination.py +0 -0
  236. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/assets/models/resource_validation_errors_element.py +0 -0
  237. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/assets/models/setting.py +0 -0
  238. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/exceptions/__init__.py +0 -0
  239. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/exceptions/http_status_exceptions.py +0 -0
  240. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/file/__init__.py +0 -0
  241. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/file/api/__init__.py +0 -0
  242. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/file/models/__init__.py +0 -0
  243. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/file/models/association.py +0 -0
  244. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/file/models/file_object.py +0 -0
  245. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/file/models/files.py +0 -0
  246. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/file/models/folder.py +0 -0
  247. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/file/models/folders.py +0 -0
  248. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/file/models/inline_object.py +0 -0
  249. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/file/models/inline_object1.py +0 -0
  250. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/file/models/object_group.py +0 -0
  251. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/file/models/object_type.py +0 -0
  252. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/file/models/upload_object.py +0 -0
  253. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/file/models/user.py +0 -0
  254. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/finance/__init__.py +0 -0
  255. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/finance/api/__init__.py +0 -0
  256. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/finance/models/__init__.py +0 -0
  257. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/finance/models/account_usage.py +0 -0
  258. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/finance/models/account_usage_response.py +0 -0
  259. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/finance/models/balance_sheet_account_detail.py +0 -0
  260. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/finance/models/balance_sheet_account_group.py +0 -0
  261. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/finance/models/balance_sheet_account_type.py +0 -0
  262. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/finance/models/balance_sheet_response.py +0 -0
  263. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/finance/models/bank_statement_accounting_response.py +0 -0
  264. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/finance/models/bank_statement_response.py +0 -0
  265. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/finance/models/bank_transaction_response.py +0 -0
  266. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/finance/models/cash_account_response.py +0 -0
  267. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/finance/models/cash_balance.py +0 -0
  268. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/finance/models/cash_validation_response.py +0 -0
  269. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/finance/models/cashflow_account.py +0 -0
  270. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/finance/models/cashflow_activity.py +0 -0
  271. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/finance/models/cashflow_response.py +0 -0
  272. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/finance/models/cashflow_type.py +0 -0
  273. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/finance/models/contact_detail.py +0 -0
  274. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/finance/models/contact_response.py +0 -0
  275. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/finance/models/contact_total_detail.py +0 -0
  276. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/finance/models/contact_total_other.py +0 -0
  277. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/finance/models/credit_note_response.py +0 -0
  278. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/finance/models/history_record_response.py +0 -0
  279. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/finance/models/income_by_contact_response.py +0 -0
  280. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/finance/models/invoice_response.py +0 -0
  281. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/finance/models/line_item_response.py +0 -0
  282. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/finance/models/lock_history_model.py +0 -0
  283. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/finance/models/lock_history_response.py +0 -0
  284. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/finance/models/manual_journal_total.py +0 -0
  285. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/finance/models/overpayment_response.py +0 -0
  286. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/finance/models/payment_response.py +0 -0
  287. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/finance/models/pnl_account.py +0 -0
  288. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/finance/models/pnl_account_class.py +0 -0
  289. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/finance/models/pnl_account_type.py +0 -0
  290. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/finance/models/practice_response.py +0 -0
  291. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/finance/models/prepayment_response.py +0 -0
  292. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/finance/models/problem.py +0 -0
  293. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/finance/models/problem_type.py +0 -0
  294. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/finance/models/profit_and_loss_response.py +0 -0
  295. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/finance/models/report_history_model.py +0 -0
  296. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/finance/models/report_history_response.py +0 -0
  297. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/finance/models/statement_balance_response.py +0 -0
  298. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/finance/models/statement_line_response.py +0 -0
  299. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/finance/models/statement_lines_response.py +0 -0
  300. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/finance/models/statement_response.py +0 -0
  301. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/finance/models/total_detail.py +0 -0
  302. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/finance/models/total_other.py +0 -0
  303. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/finance/models/trial_balance_account.py +0 -0
  304. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/finance/models/trial_balance_entry.py +0 -0
  305. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/finance/models/trial_balance_movement.py +0 -0
  306. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/finance/models/trial_balance_response.py +0 -0
  307. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/finance/models/user_activities_response.py +0 -0
  308. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/finance/models/user_response.py +0 -0
  309. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/identity/__init__.py +0 -0
  310. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/identity/api/__init__.py +0 -0
  311. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/identity/api/exception_handler.py +0 -0
  312. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/identity/models/__init__.py +0 -0
  313. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/identity/models/access_token.py +0 -0
  314. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/identity/models/connection.py +0 -0
  315. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/identity/models/refresh_token.py +0 -0
  316. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/models.py +0 -0
  317. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/payrollau/__init__.py +0 -0
  318. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/payrollau/api/__init__.py +0 -0
  319. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/payrollau/models/__init__.py +0 -0
  320. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/payrollau/models/account.py +0 -0
  321. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/payrollau/models/account_type.py +0 -0
  322. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/payrollau/models/allowance_category.py +0 -0
  323. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/payrollau/models/allowance_type.py +0 -0
  324. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/payrollau/models/api_exception.py +0 -0
  325. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/payrollau/models/bank_account.py +0 -0
  326. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/payrollau/models/calendar_type.py +0 -0
  327. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/payrollau/models/country_of_residence.py +0 -0
  328. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/payrollau/models/deduction_line.py +0 -0
  329. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/payrollau/models/deduction_type.py +0 -0
  330. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/payrollau/models/deduction_type_calculation_type.py +0 -0
  331. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/payrollau/models/earnings_line.py +0 -0
  332. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/payrollau/models/earnings_rate.py +0 -0
  333. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/payrollau/models/earnings_rate_calculation_type.py +0 -0
  334. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/payrollau/models/earnings_type.py +0 -0
  335. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/payrollau/models/employee.py +0 -0
  336. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/payrollau/models/employee_status.py +0 -0
  337. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/payrollau/models/employees.py +0 -0
  338. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/payrollau/models/employment_basis.py +0 -0
  339. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/payrollau/models/employment_termination_payment_type.py +0 -0
  340. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/payrollau/models/employment_type.py +0 -0
  341. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/payrollau/models/entitlement_final_pay_payout_type.py +0 -0
  342. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/payrollau/models/home_address.py +0 -0
  343. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/payrollau/models/income_type.py +0 -0
  344. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/payrollau/models/leave_accrual_line.py +0 -0
  345. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/payrollau/models/leave_application.py +0 -0
  346. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/payrollau/models/leave_applications.py +0 -0
  347. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/payrollau/models/leave_balance.py +0 -0
  348. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/payrollau/models/leave_category_code.py +0 -0
  349. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/payrollau/models/leave_earnings_line.py +0 -0
  350. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/payrollau/models/leave_line.py +0 -0
  351. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/payrollau/models/leave_line_calculation_type.py +0 -0
  352. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/payrollau/models/leave_lines.py +0 -0
  353. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/payrollau/models/leave_period.py +0 -0
  354. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/payrollau/models/leave_period_status.py +0 -0
  355. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/payrollau/models/leave_type.py +0 -0
  356. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/payrollau/models/leave_type_contribution_type.py +0 -0
  357. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/payrollau/models/manual_tax_type.py +0 -0
  358. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/payrollau/models/opening_balances.py +0 -0
  359. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/payrollau/models/paid_leave_earnings_line.py +0 -0
  360. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/payrollau/models/pay_item.py +0 -0
  361. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/payrollau/models/pay_items.py +0 -0
  362. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/payrollau/models/pay_out_type.py +0 -0
  363. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/payrollau/models/pay_run.py +0 -0
  364. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/payrollau/models/pay_run_status.py +0 -0
  365. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/payrollau/models/pay_runs.py +0 -0
  366. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/payrollau/models/pay_template.py +0 -0
  367. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/payrollau/models/payment_frequency_type.py +0 -0
  368. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/payrollau/models/payroll_calendar.py +0 -0
  369. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/payrollau/models/payroll_calendars.py +0 -0
  370. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/payrollau/models/payslip.py +0 -0
  371. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/payrollau/models/payslip_lines.py +0 -0
  372. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/payrollau/models/payslip_object.py +0 -0
  373. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/payrollau/models/payslip_summary.py +0 -0
  374. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/payrollau/models/payslips.py +0 -0
  375. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/payrollau/models/rate_type.py +0 -0
  376. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/payrollau/models/reimbursement_line.py +0 -0
  377. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/payrollau/models/reimbursement_lines.py +0 -0
  378. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/payrollau/models/reimbursement_type.py +0 -0
  379. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/payrollau/models/residency_status.py +0 -0
  380. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/payrollau/models/senior_marital_status.py +0 -0
  381. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/payrollau/models/settings.py +0 -0
  382. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/payrollau/models/settings_object.py +0 -0
  383. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/payrollau/models/settings_tracking_categories.py +0 -0
  384. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/payrollau/models/settings_tracking_categories_employee_groups.py +0 -0
  385. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/payrollau/models/settings_tracking_categories_timesheet_categories.py +0 -0
  386. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/payrollau/models/state.py +0 -0
  387. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/payrollau/models/super_fund.py +0 -0
  388. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/payrollau/models/super_fund_product.py +0 -0
  389. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/payrollau/models/super_fund_products.py +0 -0
  390. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/payrollau/models/super_fund_type.py +0 -0
  391. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/payrollau/models/super_funds.py +0 -0
  392. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/payrollau/models/super_line.py +0 -0
  393. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/payrollau/models/super_membership.py +0 -0
  394. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/payrollau/models/superannuation_calculation_type.py +0 -0
  395. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/payrollau/models/superannuation_contribution_type.py +0 -0
  396. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/payrollau/models/superannuation_line.py +0 -0
  397. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/payrollau/models/tax_declaration.py +0 -0
  398. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/payrollau/models/tax_line.py +0 -0
  399. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/payrollau/models/tax_scale_type.py +0 -0
  400. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/payrollau/models/tfn_exemption_type.py +0 -0
  401. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/payrollau/models/timesheet.py +0 -0
  402. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/payrollau/models/timesheet_line.py +0 -0
  403. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/payrollau/models/timesheet_object.py +0 -0
  404. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/payrollau/models/timesheet_status.py +0 -0
  405. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/payrollau/models/timesheets.py +0 -0
  406. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/payrollau/models/validation_error.py +0 -0
  407. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/payrollau/models/work_condition.py +0 -0
  408. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/payrollnz/__init__.py +0 -0
  409. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/payrollnz/api/__init__.py +0 -0
  410. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/payrollnz/models/__init__.py +0 -0
  411. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/payrollnz/models/account.py +0 -0
  412. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/payrollnz/models/accounts.py +0 -0
  413. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/payrollnz/models/address.py +0 -0
  414. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/payrollnz/models/bank_account.py +0 -0
  415. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/payrollnz/models/benefit.py +0 -0
  416. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/payrollnz/models/calendar_type.py +0 -0
  417. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/payrollnz/models/deduction.py +0 -0
  418. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/payrollnz/models/deduction_line.py +0 -0
  419. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/payrollnz/models/deduction_object.py +0 -0
  420. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/payrollnz/models/deductions.py +0 -0
  421. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/payrollnz/models/earnings_line.py +0 -0
  422. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/payrollnz/models/earnings_order.py +0 -0
  423. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/payrollnz/models/earnings_order_object.py +0 -0
  424. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/payrollnz/models/earnings_orders.py +0 -0
  425. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/payrollnz/models/earnings_rate.py +0 -0
  426. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/payrollnz/models/earnings_rate_object.py +0 -0
  427. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/payrollnz/models/earnings_rates.py +0 -0
  428. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/payrollnz/models/earnings_template.py +0 -0
  429. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/payrollnz/models/earnings_template_object.py +0 -0
  430. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/payrollnz/models/employee.py +0 -0
  431. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/payrollnz/models/employee_earnings_templates.py +0 -0
  432. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/payrollnz/models/employee_leave.py +0 -0
  433. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/payrollnz/models/employee_leave_balance.py +0 -0
  434. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/payrollnz/models/employee_leave_balances.py +0 -0
  435. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/payrollnz/models/employee_leave_object.py +0 -0
  436. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/payrollnz/models/employee_leave_setup_object.py +0 -0
  437. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/payrollnz/models/employee_leave_type_object.py +0 -0
  438. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/payrollnz/models/employee_leave_types.py +0 -0
  439. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/payrollnz/models/employee_leaves.py +0 -0
  440. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/payrollnz/models/employee_object.py +0 -0
  441. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/payrollnz/models/employee_opening_balance.py +0 -0
  442. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/payrollnz/models/employee_opening_balances_object.py +0 -0
  443. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/payrollnz/models/employee_pay_template.py +0 -0
  444. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/payrollnz/models/employee_pay_template_object.py +0 -0
  445. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/payrollnz/models/employee_pay_templates.py +0 -0
  446. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/payrollnz/models/employee_statutory_leave_balance.py +0 -0
  447. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/payrollnz/models/employee_statutory_leave_balance_object.py +0 -0
  448. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/payrollnz/models/employee_statutory_leave_summary.py +0 -0
  449. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/payrollnz/models/employee_statutory_leaves_summaries.py +0 -0
  450. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/payrollnz/models/employee_statutory_sick_leave.py +0 -0
  451. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/payrollnz/models/employee_statutory_sick_leave_object.py +0 -0
  452. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/payrollnz/models/employee_statutory_sick_leaves.py +0 -0
  453. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/payrollnz/models/employee_tax.py +0 -0
  454. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/payrollnz/models/employee_tax_object.py +0 -0
  455. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/payrollnz/models/employee_working_pattern.py +0 -0
  456. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/payrollnz/models/employee_working_pattern_with_working_weeks.py +0 -0
  457. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/payrollnz/models/employee_working_pattern_with_working_weeks_object.py +0 -0
  458. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/payrollnz/models/employee_working_pattern_with_working_weeks_request.py +0 -0
  459. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/payrollnz/models/employee_working_patterns_object.py +0 -0
  460. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/payrollnz/models/employees.py +0 -0
  461. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/payrollnz/models/employment.py +0 -0
  462. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/payrollnz/models/employment_object.py +0 -0
  463. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/payrollnz/models/gross_earnings_history.py +0 -0
  464. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/payrollnz/models/invalid_field.py +0 -0
  465. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/payrollnz/models/leave_accrual_line.py +0 -0
  466. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/payrollnz/models/leave_earnings_line.py +0 -0
  467. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/payrollnz/models/leave_periods.py +0 -0
  468. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/payrollnz/models/leave_type_object.py +0 -0
  469. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/payrollnz/models/leave_types.py +0 -0
  470. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/payrollnz/models/pagination.py +0 -0
  471. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/payrollnz/models/pay_run.py +0 -0
  472. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/payrollnz/models/pay_run_calendar.py +0 -0
  473. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/payrollnz/models/pay_run_calendar_object.py +0 -0
  474. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/payrollnz/models/pay_run_calendars.py +0 -0
  475. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/payrollnz/models/pay_run_object.py +0 -0
  476. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/payrollnz/models/pay_runs.py +0 -0
  477. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/payrollnz/models/pay_slip.py +0 -0
  478. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/payrollnz/models/pay_slip_object.py +0 -0
  479. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/payrollnz/models/pay_slips.py +0 -0
  480. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/payrollnz/models/payment_line.py +0 -0
  481. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/payrollnz/models/payment_method.py +0 -0
  482. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/payrollnz/models/payment_method_object.py +0 -0
  483. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/payrollnz/models/problem.py +0 -0
  484. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/payrollnz/models/reimbursement.py +0 -0
  485. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/payrollnz/models/reimbursement_line.py +0 -0
  486. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/payrollnz/models/reimbursement_object.py +0 -0
  487. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/payrollnz/models/reimbursements.py +0 -0
  488. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/payrollnz/models/salary_and_wage.py +0 -0
  489. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/payrollnz/models/salary_and_wage_object.py +0 -0
  490. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/payrollnz/models/salary_and_wages.py +0 -0
  491. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/payrollnz/models/settings.py +0 -0
  492. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/payrollnz/models/statutory_deduction.py +0 -0
  493. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/payrollnz/models/statutory_deduction_category.py +0 -0
  494. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/payrollnz/models/statutory_deduction_line.py +0 -0
  495. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/payrollnz/models/statutory_deduction_object.py +0 -0
  496. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/payrollnz/models/statutory_deductions.py +0 -0
  497. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/payrollnz/models/superannuation_line.py +0 -0
  498. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/payrollnz/models/superannuation_object.py +0 -0
  499. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/payrollnz/models/superannuations.py +0 -0
  500. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/payrollnz/models/tax_code.py +0 -0
  501. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/payrollnz/models/tax_line.py +0 -0
  502. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/payrollnz/models/tax_settings.py +0 -0
  503. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/payrollnz/models/timesheet.py +0 -0
  504. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/payrollnz/models/timesheet_earnings_line.py +0 -0
  505. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/payrollnz/models/timesheet_line.py +0 -0
  506. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/payrollnz/models/timesheet_line_object.py +0 -0
  507. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/payrollnz/models/timesheet_object.py +0 -0
  508. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/payrollnz/models/timesheets.py +0 -0
  509. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/payrollnz/models/tracking_categories.py +0 -0
  510. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/payrollnz/models/tracking_category.py +0 -0
  511. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/payrollnz/models/working_week.py +0 -0
  512. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/payrolluk/__init__.py +0 -0
  513. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/payrolluk/api/__init__.py +0 -0
  514. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/payrolluk/api/exception_handler.py +0 -0
  515. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/payrolluk/models/__init__.py +0 -0
  516. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/payrolluk/models/account.py +0 -0
  517. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/payrolluk/models/accounts.py +0 -0
  518. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/payrolluk/models/address.py +0 -0
  519. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/payrolluk/models/bank_account.py +0 -0
  520. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/payrolluk/models/benefit.py +0 -0
  521. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/payrolluk/models/benefit_line.py +0 -0
  522. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/payrolluk/models/benefit_object.py +0 -0
  523. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/payrolluk/models/benefits.py +0 -0
  524. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/payrolluk/models/court_order_line.py +0 -0
  525. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/payrolluk/models/deduction.py +0 -0
  526. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/payrolluk/models/deduction_line.py +0 -0
  527. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/payrolluk/models/deduction_object.py +0 -0
  528. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/payrolluk/models/deductions.py +0 -0
  529. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/payrolluk/models/earnings_line.py +0 -0
  530. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/payrolluk/models/earnings_order.py +0 -0
  531. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/payrolluk/models/earnings_order_object.py +0 -0
  532. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/payrolluk/models/earnings_orders.py +0 -0
  533. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/payrolluk/models/earnings_rate.py +0 -0
  534. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/payrolluk/models/earnings_rate_object.py +0 -0
  535. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/payrolluk/models/earnings_rates.py +0 -0
  536. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/payrolluk/models/earnings_template.py +0 -0
  537. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/payrolluk/models/earnings_template_object.py +0 -0
  538. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/payrolluk/models/employee.py +0 -0
  539. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/payrolluk/models/employee_leave.py +0 -0
  540. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/payrolluk/models/employee_leave_balance.py +0 -0
  541. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/payrolluk/models/employee_leave_balances.py +0 -0
  542. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/payrolluk/models/employee_leave_object.py +0 -0
  543. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/payrolluk/models/employee_leave_type.py +0 -0
  544. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/payrolluk/models/employee_leave_type_object.py +0 -0
  545. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/payrolluk/models/employee_leave_types.py +0 -0
  546. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/payrolluk/models/employee_leaves.py +0 -0
  547. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/payrolluk/models/employee_object.py +0 -0
  548. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/payrolluk/models/employee_opening_balances.py +0 -0
  549. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/payrolluk/models/employee_opening_balances_object.py +0 -0
  550. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/payrolluk/models/employee_pay_template.py +0 -0
  551. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/payrolluk/models/employee_pay_template_object.py +0 -0
  552. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/payrolluk/models/employee_pay_templates.py +0 -0
  553. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/payrolluk/models/employee_statutory_leave_balance.py +0 -0
  554. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/payrolluk/models/employee_statutory_leave_balance_object.py +0 -0
  555. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/payrolluk/models/employee_statutory_leave_summary.py +0 -0
  556. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/payrolluk/models/employee_statutory_leaves_summaries.py +0 -0
  557. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/payrolluk/models/employee_statutory_sick_leave.py +0 -0
  558. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/payrolluk/models/employee_statutory_sick_leave_object.py +0 -0
  559. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/payrolluk/models/employee_statutory_sick_leaves.py +0 -0
  560. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/payrolluk/models/employee_tax.py +0 -0
  561. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/payrolluk/models/employee_tax_object.py +0 -0
  562. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/payrolluk/models/employees.py +0 -0
  563. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/payrolluk/models/employment.py +0 -0
  564. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/payrolluk/models/employment_object.py +0 -0
  565. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/payrolluk/models/invalid_field.py +0 -0
  566. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/payrolluk/models/leave_accrual_line.py +0 -0
  567. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/payrolluk/models/leave_earnings_line.py +0 -0
  568. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/payrolluk/models/leave_period.py +0 -0
  569. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/payrolluk/models/leave_periods.py +0 -0
  570. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/payrolluk/models/leave_type.py +0 -0
  571. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/payrolluk/models/leave_type_object.py +0 -0
  572. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/payrolluk/models/leave_types.py +0 -0
  573. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/payrolluk/models/pagination.py +0 -0
  574. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/payrolluk/models/pay_run.py +0 -0
  575. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/payrolluk/models/pay_run_calendar.py +0 -0
  576. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/payrolluk/models/pay_run_calendar_object.py +0 -0
  577. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/payrolluk/models/pay_run_calendars.py +0 -0
  578. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/payrolluk/models/pay_run_object.py +0 -0
  579. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/payrolluk/models/pay_runs.py +0 -0
  580. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/payrolluk/models/payment_line.py +0 -0
  581. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/payrolluk/models/payment_method.py +0 -0
  582. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/payrolluk/models/payment_method_object.py +0 -0
  583. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/payrolluk/models/payslip.py +0 -0
  584. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/payrolluk/models/payslip_object.py +0 -0
  585. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/payrolluk/models/payslips.py +0 -0
  586. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/payrolluk/models/problem.py +0 -0
  587. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/payrolluk/models/reimbursement.py +0 -0
  588. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/payrolluk/models/reimbursement_line.py +0 -0
  589. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/payrolluk/models/reimbursement_object.py +0 -0
  590. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/payrolluk/models/reimbursements.py +0 -0
  591. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/payrolluk/models/salary_and_wage.py +0 -0
  592. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/payrolluk/models/salary_and_wage_object.py +0 -0
  593. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/payrolluk/models/salary_and_wages.py +0 -0
  594. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/payrolluk/models/settings.py +0 -0
  595. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/payrolluk/models/statutory_deduction.py +0 -0
  596. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/payrolluk/models/statutory_deduction_category.py +0 -0
  597. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/payrolluk/models/tax_line.py +0 -0
  598. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/payrolluk/models/timesheet.py +0 -0
  599. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/payrolluk/models/timesheet_earnings_line.py +0 -0
  600. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/payrolluk/models/timesheet_line.py +0 -0
  601. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/payrolluk/models/timesheet_line_object.py +0 -0
  602. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/payrolluk/models/timesheet_object.py +0 -0
  603. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/payrolluk/models/timesheets.py +0 -0
  604. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/payrolluk/models/tracking_categories.py +0 -0
  605. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/payrolluk/models/tracking_category.py +0 -0
  606. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/project/__init__.py +0 -0
  607. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/project/api/__init__.py +0 -0
  608. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/project/models/__init__.py +0 -0
  609. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/project/models/amount.py +0 -0
  610. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/project/models/charge_type.py +0 -0
  611. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/project/models/currency_code.py +0 -0
  612. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/project/models/error.py +0 -0
  613. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/project/models/pagination.py +0 -0
  614. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/project/models/project.py +0 -0
  615. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/project/models/project_create_or_update.py +0 -0
  616. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/project/models/project_patch.py +0 -0
  617. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/project/models/project_status.py +0 -0
  618. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/project/models/project_user.py +0 -0
  619. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/project/models/project_users.py +0 -0
  620. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/project/models/projects.py +0 -0
  621. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/project/models/task.py +0 -0
  622. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/project/models/task_create_or_update.py +0 -0
  623. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/project/models/tasks.py +0 -0
  624. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/project/models/time_entries.py +0 -0
  625. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/project/models/time_entry.py +0 -0
  626. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/project/models/time_entry_create_or_update.py +0 -0
  627. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/rest.py +0 -0
  628. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/single_dispatch_str.py +0 -0
  629. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python/utils.py +0 -0
  630. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python.egg-info/dependency_links.txt +0 -0
  631. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python.egg-info/requires.txt +0 -0
  632. {xero_python-6.3.0a8 → xero_python-7.0.1}/xero_python.egg-info/top_level.txt +0 -0
@@ -0,0 +1,643 @@
1
+ Metadata-Version: 2.1
2
+ Name: xero_python
3
+ Version: 7.0.1
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.
@@ -48,5 +48,5 @@ setup(
48
48
  keywords="xero python sdk API oAuth",
49
49
  name="xero_python",
50
50
  packages=find_packages(include=["xero_python", "xero_python.*"]),
51
- version="6.3.0-alpha.8",
51
+ version="7.0.1",
52
52
  )
Binary file