Skip to content

Commit e51fd3a

Browse files
authored
Merge pull request #5 from XeroAPI/sid-development
Build from spec 2.2.5
2 parents 2ca9cee + aa48956 commit e51fd3a

File tree

157 files changed

+3789
-132
lines changed

Some content is hidden

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

157 files changed

+3789
-132
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.3",
51+
version="0.3.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__ = "0.2.3"
5+
__version__ = "0.3.0"

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.2.2
10+
OpenAPI spec version: 2.2.5
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.2.2
8+
OpenAPI spec version: 2.2.5
99
1010
Generated by: https://openapi-generator.tech
1111
"""
@@ -1501,6 +1501,7 @@ def create_credit_note_allocation(
15011501
xero_tenant_id,
15021502
credit_note_id,
15031503
allocations,
1504+
summarize_errors=empty,
15041505
_return_http_data_only=True,
15051506
_preload_content=True,
15061507
_request_timeout=None,
@@ -1510,6 +1511,7 @@ def create_credit_note_allocation(
15101511
:param str xero_tenant_id: Xero identifier for Tenant (required)
15111512
:param str credit_note_id: Unique identifier for a Credit Note (required)
15121513
:param Allocations allocations: Allocations with array of Allocation object in body of request. (required)
1514+
:param bool summarize_errors: If false return 200 OK and mix of successfully created obejcts and any with validation errors
15131515
:param bool _return_http_data_only: return received data only
15141516
:param bool _preload_content: load received data in models
15151517
:param bool _request_timeout: maximum wait time for response
@@ -1542,6 +1544,9 @@ def create_credit_note_allocation(
15421544

15431545
query_params = []
15441546

1547+
if summarize_errors is not empty:
1548+
query_params.append(("summarizeErrors", summarize_errors))
1549+
15451550
header_params = {
15461551
"xero-tenant-id": xero_tenant_id,
15471552
}

xero_python/accounting/docs/AccountingApi.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ Method | HTTP request | Description
150150
[**get_purchase_order_history**](AccountingApi.md#get_purchase_order_history) | **GET** /PurchaseOrders/{PurchaseOrderID}/History | Allows you to retrieve history for PurchaseOrder
151151
[**get_purchase_orders**](AccountingApi.md#get_purchase_orders) | **GET** /PurchaseOrders | Allows you to retrieve purchase orders
152152
[**get_quote**](AccountingApi.md#get_quote) | **GET** /Quotes/{QuoteID} | Allows you to retrieve a specified quote
153-
[**get_quote_as_pdf**](AccountingApi.md#get_quote_as_pdf) | **GET** /Quotes/{QuotesID}/pdf | Allows you to retrieve quotes as PDF files
153+
[**get_quote_as_pdf**](AccountingApi.md#get_quote_as_pdf) | **GET** /Quotes/{QuoteID}/pdf | Allows you to retrieve quotes as PDF files
154154
[**get_quote_attachment_by_file_name**](AccountingApi.md#get_quote_attachment_by_file_name) | **GET** /Quotes/{QuoteID}/Attachments/{FileName} | Allows you to retrieve Attachment on Quote by Filename
155155
[**get_quote_attachment_by_id**](AccountingApi.md#get_quote_attachment_by_id) | **GET** /Quotes/{QuoteID}/Attachments/{AttachmentID} | Allows you to retrieve specific Attachment on Quote
156156
[**get_quote_attachments**](AccountingApi.md#get_quote_attachments) | **GET** /Quotes/{QuoteID}/Attachments | Allows you to retrieve Attachments for Quotes
@@ -1263,7 +1263,7 @@ Name | Type | Description | Notes
12631263
[[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)
12641264

12651265
# **create_credit_note_allocation**
1266-
> Allocations create_credit_note_allocation(xero_tenant_id, credit_note_id, allocations)
1266+
> Allocations create_credit_note_allocation(xero_tenant_id, credit_note_id, allocations, summarize_errors=summarize_errors)
12671267

12681268
Allows you to create Allocation on CreditNote
12691269

@@ -1296,9 +1296,10 @@ api_instance = AccountingApi(api_client)
12961296
xero_tenant_id = 'YOUR_XERO_TENANT_ID' # str | Xero identifier for Tenant
12971297
credit_note_id = '00000000-0000-0000-000-000000000000' # str | Unique identifier for a Credit Note
12981298
allocations = { allocations:[ { amount:1.0, date:"2019-03-05", invoice:{ invoiceID:"c45720a1-ade3-4a38-a064-d15489be6841", lineItems:[], type: Invoice.TypeEnum.ACCPAY, contact:{} } } ] } # Allocations | Allocations with array of Allocation object in body of request.
1299+
summarize_errors = False # bool | If false return 200 OK and mix of successfully created obejcts and any with validation errors (optional) (default to False)
12991300
try:
13001301
# Allows you to create Allocation on CreditNote
1301-
api_response = api_instance.create_credit_note_allocation(xero_tenant_id, credit_note_id, allocations)
1302+
api_response = api_instance.create_credit_note_allocation(xero_tenant_id, credit_note_id, allocations, summarize_errors=summarize_errors)
13021303
pprint(api_response)
13031304
except ApiException as e:
13041305
print("Exception when calling AccountingApi->create_credit_note_allocation: %s\n" % e)
@@ -1311,6 +1312,7 @@ Name | Type | Description | Notes
13111312
**xero_tenant_id** | **str**| Xero identifier for Tenant |
13121313
**credit_note_id** | [**str**](.md)| Unique identifier for a Credit Note |
13131314
**allocations** | [**Allocations**](Allocations.md)| Allocations with array of Allocation object in body of request. |
1315+
**summarize_errors** | **bool**| If false return 200 OK and mix of successfully created obejcts and any with validation errors | [optional] [default to False]
13141316

13151317
### Return type
13161318

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.2.2
9+
OpenAPI spec version: 2.2.5
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.2.2
8+
OpenAPI spec version: 2.2.5
99
1010
Generated by: https://openapi-generator.tech
1111
"""

xero_python/accounting/models/account_type.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.2.2
8+
OpenAPI spec version: 2.2.5
99
1010
Generated by: https://openapi-generator.tech
1111
"""

xero_python/accounting/models/accounts.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.2.2
8+
OpenAPI spec version: 2.2.5
99
1010
Generated by: https://openapi-generator.tech
1111
"""

xero_python/accounting/models/accounts_payable.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.2.2
8+
OpenAPI spec version: 2.2.5
99
1010
Generated by: https://openapi-generator.tech
1111
"""

0 commit comments

Comments
 (0)