Skip to content

Commit 35b62a9

Browse files
authored
Merge pull request #25 from XeroAPI/sid-development
Build from OAS 2.3.3
2 parents d27ab18 + 422e8c0 commit 35b62a9

File tree

346 files changed

+413
-370
lines changed

Some content is hidden

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

346 files changed

+413
-370
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@ __pycache__/
33
*.py[cod]
44
*$py.class
55

6+
.DS_Store
7+
68
# C extensions
79
*.so
810

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.0.10",
51+
version="1.0.11",
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.0.10"
5+
__version__ = "1.0.11"

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.3.0
10+
OpenAPI spec version: 2.3.3
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.3.0
8+
OpenAPI spec version: 2.3.3
99
1010
Generated by: https://openapi-generator.tech
1111
"""
@@ -12863,6 +12863,7 @@ def get_quotes(
1286312863
status=empty,
1286412864
page=empty,
1286512865
order=empty,
12866+
quote_number=empty,
1286612867
_return_http_data_only=True,
1286712868
_preload_content=True,
1286812869
_request_timeout=None,
@@ -12879,6 +12880,7 @@ def get_quotes(
1287912880
:param str status: Filter for quotes of a particular Status
1288012881
:param int page: e.g. page=1 – Up to 100 Quotes will be returned in a single API call with line items shown for each quote
1288112882
:param str order: Order by an any element
12883+
:param str quote_number: Filter by quote number (e.g. GET https://.../Quotes?QuoteNumber=QU-0001)
1288212884
:param bool _return_http_data_only: return received data only
1288312885
:param bool _preload_content: load received data in models
1288412886
:param bool _request_timeout: maximum wait time for response
@@ -12921,6 +12923,9 @@ def get_quotes(
1292112923
if order is not empty:
1292212924
query_params.append(("order", order))
1292312925

12926+
if quote_number is not empty:
12927+
query_params.append(("QuoteNumber", quote_number))
12928+
1292412929
header_params = {
1292512930
"xero-tenant-id": xero_tenant_id,
1292612931
}

xero_python/accounting/docs/AccountingApi.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10050,7 +10050,7 @@ Name | Type | Description | Notes
1005010050
[[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)
1005110051

1005210052
# **get_quotes**
10053-
> Quotes get_quotes(xero_tenant_id, if_modified_since=if_modified_since, date_from=date_from, date_to=date_to, expiry_date_from=expiry_date_from, expiry_date_to=expiry_date_to, contact_id=contact_id, status=status, page=page, order=order)
10053+
> Quotes get_quotes(xero_tenant_id, if_modified_since=if_modified_since, date_from=date_from, date_to=date_to, expiry_date_from=expiry_date_from, expiry_date_to=expiry_date_to, contact_id=contact_id, status=status, page=page, order=order, quote_number=quote_number)
1005410054

1005510055
Allows you to retrieve any sales quotes
1005610056

@@ -10090,9 +10090,10 @@ contact_id = '00000000-0000-0000-000-000000000000' # str | Filter for quotes bel
1009010090
status = 'status_example' # str | Filter for quotes of a particular Status (optional)
1009110091
page = 1 # int | e.g. page=1 – Up to 100 Quotes will be returned in a single API call with line items shown for each quote (optional)
1009210092
order = 'ASC' # str | Order by an any element (optional)
10093+
quote_number = 'quote_number_example' # str | Filter by quote number (e.g. GET https://.../Quotes?QuoteNumber=QU-0001) (optional)
1009310094
try:
1009410095
# Allows you to retrieve any sales quotes
10095-
api_response = api_instance.get_quotes(xero_tenant_id, if_modified_since=if_modified_since, date_from=date_from, date_to=date_to, expiry_date_from=expiry_date_from, expiry_date_to=expiry_date_to, contact_id=contact_id, status=status, page=page, order=order)
10096+
api_response = api_instance.get_quotes(xero_tenant_id, if_modified_since=if_modified_since, date_from=date_from, date_to=date_to, expiry_date_from=expiry_date_from, expiry_date_to=expiry_date_to, contact_id=contact_id, status=status, page=page, order=order, quote_number=quote_number)
1009610097
pprint(api_response)
1009710098
except ApiException as e:
1009810099
print("Exception when calling AccountingApi->get_quotes: %s\n" % e)
@@ -10112,6 +10113,7 @@ Name | Type | Description | Notes
1011210113
**status** | **str**| Filter for quotes of a particular Status | [optional]
1011310114
**page** | **int**| e.g. page=1 – Up to 100 Quotes will be returned in a single API call with line items shown for each quote | [optional]
1011410115
**order** | **str**| Order by an any element | [optional]
10116+
**quote_number** | **str**| Filter by quote number (e.g. GET https://.../Quotes?QuoteNumber=QU-0001) | [optional]
1011510117

1011610118
### Return type
1011710119

xero_python/accounting/docs/Invoice.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ Name | Type | Description | Notes
2525
**total** | **float** | Total of Invoice tax inclusive (i.e. SubTotal + TotalTax). This will be ignored if it doesn’t equal the sum of the LineAmounts | [optional]
2626
**total_discount** | **float** | Total of discounts applied on the invoice line items | [optional]
2727
**invoice_id** | **str** | Xero generated unique identifier for invoice | [optional]
28+
**repeating_invoice_id** | **str** | Xero generated unique identifier for repeating invoices | [optional]
2829
**has_attachments** | **bool** | boolean to indicate if an invoice has an attachment | [optional] [default to False]
2930
**is_discounted** | **bool** | boolean to indicate if an invoice has a discount | [optional]
3031
**payments** | [**list[Payment]**](Payment.md) | See Payments | [optional]

xero_python/accounting/docs/TrackingOption.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@
33
## Properties
44
Name | Type | Description | Notes
55
------------ | ------------- | ------------- | -------------
6-
**tracking_option_id** | **str** | The Xero identifier for a tracking optione.g. ae777a87-5ef3-4fa0-a4f0-d10e1f13073a | [optional]
7-
**name** | **str** | The name of the tracking option e.g. Marketing, East (max length = 50) | [optional]
6+
**tracking_option_id** | **str** | The Xero identifier for a tracking option e.g. ae777a87-5ef3-4fa0-a4f0-d10e1f13073a | [optional]
7+
**name** | **str** | The name of the tracking option e.g. Marketing, East (max length = 100) | [optional]
88
**status** | **str** | The status of a tracking option | [optional]
9-
**tracking_category_id** | **str** | Filter by a tracking categorye.g. 297c2dc5-cc47-4afd-8ec8-74990b8761e9 | [optional]
9+
**tracking_category_id** | **str** | Filter by a tracking category e.g. 297c2dc5-cc47-4afd-8ec8-74990b8761e9 | [optional]
1010

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

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

0 commit comments

Comments
 (0)