Skip to content

Commit 2ca9cee

Browse files
authored
Merge pull request #4 from XeroAPI/sid-development
Build from OpenAPI spec 2.2.2
2 parents 52f1ec2 + 5a1e248 commit 2ca9cee

File tree

131 files changed

+411
-135
lines changed

Some content is hidden

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

131 files changed

+411
-135
lines changed

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="0.2.2",
51+
version="0.2.3",
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__ = "0.2.2"
5+
__version__ = "0.2.3"

xero_python/accounting/__init__.py

Lines changed: 1 addition & 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.1.6
10+
OpenAPI spec version: 2.2.2
1111
1212
Generated by: https://openapi-generator.tech
1313
"""

xero_python/accounting/api/accounting_api.py

Lines changed: 6 additions & 1 deletion
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.1.6
8+
OpenAPI spec version: 2.2.2
99
1010
Generated by: https://openapi-generator.tech
1111
"""
@@ -11628,6 +11628,7 @@ def get_payments(
1162811628
if_modified_since=empty,
1162911629
where=empty,
1163011630
order=empty,
11631+
page=empty,
1163111632
_return_http_data_only=True,
1163211633
_preload_content=True,
1163311634
_request_timeout=None,
@@ -11638,6 +11639,7 @@ def get_payments(
1163811639
:param datetime if_modified_since: Only records created or modified since this timestamp will be returned
1163911640
:param str where: Filter by an any element
1164011641
:param str order: Order by an any element
11642+
:param int page: Up to 100 payments will be returned in a single API call
1164111643
:param bool _return_http_data_only: return received data only
1164211644
:param bool _preload_content: load received data in models
1164311645
:param bool _request_timeout: maximum wait time for response
@@ -11662,6 +11664,9 @@ def get_payments(
1166211664
if order is not empty:
1166311665
query_params.append(("order", order))
1166411666

11667+
if page is not empty:
11668+
query_params.append(("page", page))
11669+
1166511670
header_params = {
1166611671
"xero-tenant-id": xero_tenant_id,
1166711672
}

xero_python/accounting/docs/AccountingApi.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9071,7 +9071,7 @@ Name | Type | Description | Notes
90719071
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
90729072

90739073
# **get_payments**
9074-
> Payments get_payments(xero_tenant_id, if_modified_since=if_modified_since, where=where, order=order)
9074+
> Payments get_payments(xero_tenant_id, if_modified_since=if_modified_since, where=where, order=order, page=page)
90759075

90769076
Allows you to retrieve payments for invoices and credit notes
90779077

@@ -9105,9 +9105,10 @@ xero_tenant_id = 'YOUR_XERO_TENANT_ID' # str | Xero identifier for Tenant
91059105
if_modified_since = '2020-02-06T12:17:43.202-08:00' # datetime | Only records created or modified since this timestamp will be returned (optional)
91069106
where = 'Status==\"' + Payment.StatusEnum.AUTHORISED + '\"' # str | Filter by an any element (optional)
91079107
order = 'Amount ASC' # str | Order by an any element (optional)
9108+
page = 1 # int | Up to 100 payments will be returned in a single API call (optional)
91089109
try:
91099110
# Allows you to retrieve payments for invoices and credit notes
9110-
api_response = api_instance.get_payments(xero_tenant_id, if_modified_since=if_modified_since, where=where, order=order)
9111+
api_response = api_instance.get_payments(xero_tenant_id, if_modified_since=if_modified_since, where=where, order=order, page=page)
91119112
pprint(api_response)
91129113
except ApiException as e:
91139114
print("Exception when calling AccountingApi->get_payments: %s\n" % e)
@@ -9121,6 +9122,7 @@ Name | Type | Description | Notes
91219122
**if_modified_since** | **datetime**| Only records created or modified since this timestamp will be returned | [optional]
91229123
**where** | **str**| Filter by an any element | [optional]
91239124
**order** | **str**| Order by an any element | [optional]
9125+
**page** | **int**| Up to 100 payments will be returned in a single API call | [optional]
91249126

91259127
### Return type
91269128

xero_python/accounting/docs/Allocation.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,13 @@
44
Name | Type | Description | Notes
55
------------ | ------------- | ------------- | -------------
66
**invoice** | [**Invoice**](Invoice.md) | |
7+
**overpayment** | [**Overpayment**](Overpayment.md) | | [optional]
8+
**prepayment** | [**Prepayment**](Prepayment.md) | | [optional]
9+
**credit_note** | [**CreditNote**](CreditNote.md) | | [optional]
710
**amount** | **float** | the amount being applied to the invoice |
811
**date** | **date** | the date the allocation is applied YYYY-MM-DD. |
12+
**status_attribute_string** | **str** | A string to indicate if a invoice status | [optional]
13+
**validation_errors** | [**list[ValidationError]**](ValidationError.md) | Displays array of validation error messages from the API | [optional]
914

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

xero_python/accounting/docs/Organisation.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ Name | Type | Description | Notes
1515
**is_demo_company** | **bool** | Boolean to describe if organisation is a demo company. | [optional]
1616
**organisation_status** | **str** | Will be set to ACTIVE if you can connect to organisation via the Xero API | [optional]
1717
**registration_number** | **str** | Shows for New Zealand, Australian and UK organisations | [optional]
18+
**employer_identification_number** | **str** | Shown if set. US Only. | [optional]
1819
**tax_number** | **str** | Shown if set. Displays in the Xero UI as Tax File Number (AU), GST Number (NZ), VAT Number (UK) and Tax ID Number (US & Global). | [optional]
1920
**financial_year_end_day** | **int** | Calendar day e.g. 0-31 | [optional]
2021
**financial_year_end_month** | **int** | Calendar Month e.g. 1-12 | [optional]

xero_python/accounting/docs/Quote.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,8 @@ Name | Type | Description | Notes
2525
**branding_theme_id** | **str** | See BrandingThemes | [optional]
2626
**updated_date_utc** | **datetime** | Last modified date UTC format | [optional]
2727
**line_amount_types** | [**QuoteLineAmountTypes**](QuoteLineAmountTypes.md) | | [optional]
28+
**status_attribute_string** | **str** | A string to indicate if a invoice status | [optional]
29+
**validation_errors** | [**list[ValidationError]**](ValidationError.md) | Displays array of validation error messages from the API | [optional]
2830

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

xero_python/accounting/models/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
77
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
88
9-
OpenAPI spec version: 2.1.6
9+
OpenAPI spec version: 2.2.2
1010
1111
Generated by: https://openapi-generator.tech
1212
"""

xero_python/accounting/models/account.py

Lines changed: 1 addition & 1 deletion
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.1.6
8+
OpenAPI spec version: 2.2.2
99
1010
Generated by: https://openapi-generator.tech
1111
"""

0 commit comments

Comments
 (0)