xero-python 9.1.0__tar.gz → 9.2.0__tar.gz

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