Skip to content

Commit 0cfe5e1

Browse files
authored
Merge pull request #35 from XeroAPI/sid-development
Build for OAS 2.7.0
2 parents 016a620 + 70bda09 commit 0cfe5e1

File tree

463 files changed

+1096
-527
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

463 files changed

+1096
-527
lines changed

README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,14 @@ Official python SDK for Xero API generated by OpenAPI spec for oAuth 2
1717
* Class based interface for Xero API endpoints.
1818
* Model classes used to represent API data.
1919
* Currently Supported API sets:
20+
2021
* [Accounting API](https://developer.xero.com/documentation/api/api-overview)
2122
* [Assets API](https://developer.xero.com/documentation/assets-api/overview)
2223
* [Projects API](https://developer.xero.com/documentation/projects/overview-projects)
2324
* [AU Payroll API](https://developer.xero.com/documentation/payroll-api/overview)
2425
* [UK Payroll API](https://developer.xero.com/documentation/payroll-api-uk/overview)
26+
* [NZ Payroll API](https://developer.xero.com/documentation/payroll-api-nz/overview)
27+
2528
* Error handling for ease of use.
2629

2730
## Starter Project
@@ -95,8 +98,6 @@ We've created [xero-python-outh2-app](https://github.com/XeroAPI/xero-python-oau
9598
* settings
9699
* tracking categories
97100

98-
99-
100101
## Credits
101102

102103
* This package was created with

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,5 +48,5 @@ def read_file(filename):
4848
keywords="xero python sdk API oAuth",
4949
name="xero_python",
5050
packages=find_packages(include=["xero_python", "xero_python.*"]),
51-
version="1.1.0",
51+
version="1.2.0",
5252
)

xero_python/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@
22

33
__author__ = """Xero Developer API"""
44
__email__ = "[email protected]"
5-
__version__ = "1.1.0"
5+
__version__ = "1.2.0"

xero_python/accounting/__init__.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
88
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
99
10-
OpenAPI spec version: 2.4.4
10+
OpenAPI spec version: 2.7.0
1111
1212
Generated by: https://openapi-generator.tech
1313
"""
@@ -26,6 +26,9 @@
2626
from xero_python.accounting.models.action import Action
2727
from xero_python.accounting.models.actions import Actions
2828
from xero_python.accounting.models.address import Address
29+
from xero_python.accounting.models.address_for_organisation import (
30+
AddressForOrganisation,
31+
)
2932
from xero_python.accounting.models.allocation import Allocation
3033
from xero_python.accounting.models.allocations import Allocations
3134
from xero_python.accounting.models.attachment import Attachment

xero_python/accounting/api/accounting_api.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
77

8-
OpenAPI spec version: 2.4.4
8+
OpenAPI spec version: 2.7.0
99
1010
Generated by: https://openapi-generator.tech
1111
"""
@@ -14938,7 +14938,7 @@ def get_report_balance_sheet(
1493814938
"""Allows you to retrieve report for BalanceSheet # noqa: E501
1493914939
OAuth2 scope: accounting.reports.read
1494014940
:param str xero_tenant_id: Xero identifier for Tenant (required)
14941-
:param str date: The date of the Balance Sheet report
14941+
:param date date: The date of the Balance Sheet report
1494214942
:param int periods: The number of periods for the Balance Sheet report
1494314943
:param str timeframe: The period size to compare to (MONTH, QUARTER, YEAR)
1494414944
:param str tracking_option_id1: The tracking option 1 for the Balance Sheet report

xero_python/accounting/docs/AccountingApi.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8292,11 +8292,11 @@ Name | Type | Description | Notes
82928292
------------- | ------------- | ------------- | -------------
82938293
**xero_tenant_id** | **str**| Xero identifier for Tenant |
82948294
**page** | **int**| Up to 100 linked transactions will be returned in a single API call. Use the page parameter to specify the page to be returned e.g. page=1. | [optional]
8295-
**linked_transaction_id** | **str**| The Xero identifier for an Linked Transaction | [optional]
8296-
**source_transaction_id** | **str**| Filter by the SourceTransactionID. Get the linked transactions created from a particular ACCPAY invoice | [optional]
8297-
**contact_id** | **str**| Filter by the ContactID. Get all the linked transactions that have been assigned to a particular customer. | [optional]
8295+
**linked_transaction_id** | [**str**](.md)| The Xero identifier for an Linked Transaction | [optional]
8296+
**source_transaction_id** | [**str**](.md)| Filter by the SourceTransactionID. Get the linked transactions created from a particular ACCPAY invoice | [optional]
8297+
**contact_id** | [**str**](.md)| Filter by the ContactID. Get all the linked transactions that have been assigned to a particular customer. | [optional]
82988298
**status** | **str**| Filter by the combination of ContactID and Status. Get the linked transactions associaed to a customer and with a status | [optional]
8299-
**target_transaction_id** | **str**| Filter by the TargetTransactionID. Get all the linked transactions allocated to a particular ACCREC invoice | [optional]
8299+
**target_transaction_id** | [**str**](.md)| Filter by the TargetTransactionID. Get all the linked transactions allocated to a particular ACCREC invoice | [optional]
83008300

83018301
### Return type
83028302

@@ -11668,7 +11668,7 @@ api_client = ApiClient(
1166811668
api_instance = AccountingApi(api_client)
1166911669

1167011670
xero_tenant_id = 'YOUR_XERO_TENANT_ID' # str | Xero identifier for Tenant
11671-
date = '2019-11-01' # str | The date of the Balance Sheet report (optional)
11671+
date = '2019-11-01' # date | The date of the Balance Sheet report (optional)
1167211672
periods = 3 # int | The number of periods for the Balance Sheet report (optional)
1167311673
timeframe = 'MONTH' # str | The period size to compare to (MONTH, QUARTER, YEAR) (optional)
1167411674
tracking_option_id1 = '00000000-0000-0000-000-000000000000' # str | The tracking option 1 for the Balance Sheet report (optional)
@@ -11688,7 +11688,7 @@ except ApiException as e:
1168811688
Name | Type | Description | Notes
1168911689
------------- | ------------- | ------------- | -------------
1169011690
**xero_tenant_id** | **str**| Xero identifier for Tenant |
11691-
**date** | **str**| The date of the Balance Sheet report | [optional]
11691+
**date** | **date**| The date of the Balance Sheet report | [optional]
1169211692
**periods** | **int**| The number of periods for the Balance Sheet report | [optional]
1169311693
**timeframe** | **str**| The period size to compare to (MONTH, QUARTER, YEAR) | [optional]
1169411694
**tracking_option_id1** | **str**| The tracking option 1 for the Balance Sheet report | [optional]
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
# AddressForOrganisation
2+
3+
## Properties
4+
Name | Type | Description | Notes
5+
------------ | ------------- | ------------- | -------------
6+
**address_type** | **str** | define the type of address | [optional]
7+
**address_line1** | **str** | max length = 500 | [optional]
8+
**address_line2** | **str** | max length = 500 | [optional]
9+
**address_line3** | **str** | max length = 500 | [optional]
10+
**address_line4** | **str** | max length = 500 | [optional]
11+
**city** | **str** | max length = 255 | [optional]
12+
**region** | **str** | max length = 255 | [optional]
13+
**postal_code** | **str** | max length = 50 | [optional]
14+
**country** | **str** | max length = 50, [A-Z], [a-z] only | [optional]
15+
**attention_to** | **str** | max length = 255 | [optional]
16+
17+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
18+
19+

xero_python/accounting/docs/CISOrgSetting.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ Name | Type | Description | Notes
55
------------ | ------------- | ------------- | -------------
66
**cis_contractor_enabled** | **bool** | true or false - Boolean that describes if the organisation is a CIS Contractor | [optional]
77
**cis_sub_contractor_enabled** | **bool** | true or false - Boolean that describes if the organisation is a CIS SubContractor | [optional]
8-
**rate** | **int** | CIS Deduction rate for the organisation | [optional]
8+
**rate** | **float** | CIS Deduction rate for the organisation | [optional]
99

1010
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
1111

xero_python/accounting/docs/CISSetting.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
Name | Type | Description | Notes
55
------------ | ------------- | ------------- | -------------
66
**cis_enabled** | **bool** | Boolean that describes if the contact is a CIS Subcontractor | [optional]
7-
**rate** | **int** | CIS Deduction rate for the contact if he is a subcontractor. If the contact is not CISEnabled, then the rate is not returned | [optional]
7+
**rate** | **float** | CIS Deduction rate for the contact if he is a subcontractor. If the contact is not CISEnabled, then the rate is not returned | [optional]
88

99
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
1010

xero_python/accounting/docs/CreditNote.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,15 @@ Name | Type | Description | Notes
66
**type** | **str** | See Credit Note Types | [optional]
77
**contact** | [**Contact**](Contact.md) | | [optional]
88
**date** | **date** | The date the credit note is issued YYYY-MM-DD. If the Date element is not specified then it will default to the current date based on the timezone setting of the organisation | [optional]
9+
**due_date** | **date** | Date invoice is due – YYYY-MM-DD | [optional]
910
**status** | **str** | See Credit Note Status Codes | [optional]
1011
**line_amount_types** | [**LineAmountTypes**](LineAmountTypes.md) | | [optional]
1112
**line_items** | [**list[LineItem]**](LineItem.md) | See Invoice Line Items | [optional]
1213
**sub_total** | **float** | The subtotal of the credit note excluding taxes | [optional]
1314
**total_tax** | **float** | The total tax on the credit note | [optional]
1415
**total** | **float** | The total of the Credit Note(subtotal + total tax) | [optional]
16+
**cis_deduction** | **float** | CIS deduction for UK contractors | [optional]
17+
**cis_rate** | **float** | CIS Deduction rate for the organisation | [optional]
1518
**updated_date_utc** | **datetime** | UTC timestamp of last update to the credit note | [optional]
1619
**currency_code** | [**CurrencyCode**](CurrencyCode.md) | | [optional]
1720
**fully_paid_on_date** | **date** | Date when credit note was fully paid(UTC format) | [optional]

0 commit comments

Comments
 (0)