You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: xero_python/accounting/api/accounting_api.py
+17-2Lines changed: 17 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -10,7 +10,7 @@
10
10
"""
11
11
12
12
"""
13
-
OpenAPI spec version: 2.16.1
13
+
OpenAPI spec version: 2.17.1
14
14
"""
15
15
16
16
import importlib
@@ -7559,14 +7559,18 @@ def get_budget(
7559
7559
self,
7560
7560
xero_tenant_id,
7561
7561
budget_id,
7562
+
date_to=empty,
7563
+
date_from=empty,
7562
7564
_return_http_data_only=True,
7563
7565
_preload_content=True,
7564
7566
_request_timeout=None,
7565
7567
):
7566
-
"""Retrieves a specific budgets, which includes budget lines # noqa: E501
7568
+
"""Retrieves a specific budget, which includes budget lines # noqa: E501
7567
7569
OAuth2 scope: accounting.budgets.read
7568
7570
:param str xero_tenant_id: Xero identifier for Tenant (required)
7569
7571
:param str budget_id: Unique identifier for Budgets (required)
7572
+
:param date date_to: Filter by start date
7573
+
:param date date_from: Filter by end date
7570
7574
:param bool _return_http_data_only: return received data only
7571
7575
:param bool _preload_content: load received data in models
7572
7576
:param bool _request_timeout: maximum wait time for response
@@ -7593,6 +7597,12 @@ def get_budget(
7593
7597
7594
7598
query_params = []
7595
7599
7600
+
if date_to is not empty:
7601
+
query_params.append(("DateTo", date_to))
7602
+
7603
+
if date_from is not empty:
7604
+
query_params.append(("DateFrom", date_from))
7605
+
7596
7606
header_params = {
7597
7607
"xero-tenant-id": xero_tenant_id,
7598
7608
}
@@ -8450,6 +8460,7 @@ def get_contacts(
8450
8460
page=empty,
8451
8461
include_archived=empty,
8452
8462
summary_only=empty,
8463
+
search_term=empty,
8453
8464
_return_http_data_only=True,
8454
8465
_preload_content=True,
8455
8466
_request_timeout=None,
@@ -8464,6 +8475,7 @@ def get_contacts(
8464
8475
:param int page: e.g. page=1 - Up to 100 contacts will be returned in a single API call.
8465
8476
:param bool include_archived: e.g. includeArchived=true - Contacts with a status of ARCHIVED will be included in the response
8466
8477
:param bool summary_only: Use summaryOnly=true in GET Contacts and Invoices endpoint to retrieve a smaller version of the response object. This returns only lightweight fields, excluding computation-heavy fields from the response, making the API calls quick and efficient.
8478
+
:param str search_term: Search parameter that performs a case-insensitive text search across the Name, FirstName, LastName, ContactNumber and EmailAddress fields.
8467
8479
:param bool _return_http_data_only: return received data only
8468
8480
:param bool _preload_content: load received data in models
8469
8481
:param bool _request_timeout: maximum wait time for response
[**get_branding_theme**](AccountingApi.md#get_branding_theme) | **GET** /BrandingThemes/{BrandingThemeID} | Retrieves a specific branding theme using a unique branding theme Id
91
91
[**get_branding_theme_payment_services**](AccountingApi.md#get_branding_theme_payment_services) | **GET** /BrandingThemes/{BrandingThemeID}/PaymentServices | Retrieves the payment services for a specific branding theme
92
92
[**get_branding_themes**](AccountingApi.md#get_branding_themes) | **GET** /BrandingThemes | Retrieves all the branding themes
93
-
[**get_budget**](AccountingApi.md#get_budget) | **GET** /Budgets/{BudgetID} | Retrieves a specific budgets, which includes budget lines
93
+
[**get_budget**](AccountingApi.md#get_budget) | **GET** /Budgets/{BudgetID} | Retrieves a specific budget, which includes budget lines
94
94
[**get_budgets**](AccountingApi.md#get_budgets) | **GET** /Budgets | Retrieve a list of budgets
95
95
[**get_contact**](AccountingApi.md#get_contact) | **GET** /Contacts/{ContactID} | Retrieves a specific contacts in a Xero organisation using a unique contact Id
96
96
[**get_contact_attachment_by_file_name**](AccountingApi.md#get_contact_attachment_by_file_name) | **GET** /Contacts/{ContactID}/Attachments/{FileName} | Retrieves a specific attachment from a specific contact by file name
@@ -593,7 +593,7 @@ api_client = ApiClient(
593
593
api_instance = AccountingApi(api_client)
594
594
595
595
xero_tenant_id = 'YOUR_XERO_TENANT_ID' # str | Xero identifier for Tenant
@@ -5826,9 +5826,9 @@ Name | Type | Description | Notes
5826
5826
[[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)
xero_tenant_id = 'YOUR_XERO_TENANT_ID' # str | Xero identifier for Tenant
5923
5927
i_ds = ['"00000000-0000-0000-0000-000000000000"'] # list[str] | Filter by BudgetID. Allows you to retrieve a specific individual budget. (optional)
5924
-
date_to = '2013-10-20' # date | Filter by start date (optional)
5925
-
date_from = '2013-10-20' # date | Filter by end date (optional)
5928
+
date_to = '2019-10-31' # date | Filter by start date (optional)
5929
+
date_from = '2019-10-31' # date | Filter by end date (optional)
@@ -6533,7 +6537,7 @@ Name | Type | Description | Notes
6533
6537
[[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)
page = 1 # int | e.g. page=1 - Up to 100 contacts will be returned in a single API call. (optional)
6572
6576
include_archived = True # bool | e.g. includeArchived=true - Contacts with a status of ARCHIVED will be included in the response (optional)
6573
6577
summary_only = False # bool | Use summaryOnly=true in GET Contacts and Invoices endpoint to retrieve a smaller version of the response object. This returns only lightweight fields, excluding computation-heavy fields from the response, making the API calls quick and efficient. (optional) (default to False)
6578
+
search_term = 'searchTerm=Joe Bloggs' # str | Search parameter that performs a case-insensitive text search across the Name, FirstName, LastName, ContactNumber and EmailAddress fields. (optional)
print("Exception when calling AccountingApi->get_contacts: %s\n" % e)
@@ -6591,6 +6596,7 @@ Name | Type | Description | Notes
6591
6596
**page** | **int**| e.g. page=1 - Up to 100 contacts will be returned in a single API call. | [optional]
6592
6597
**include_archived** | **bool**| e.g. includeArchived=true - Contacts with a status of ARCHIVED will be included in the response | [optional]
6593
6598
**summary_only** | **bool**| Use summaryOnly=true in GET Contacts and Invoices endpoint to retrieve a smaller version of the response object. This returns only lightweight fields, excluding computation-heavy fields from the response, making the API calls quick and efficient. | [optional] [default to False]
6599
+
**search_term** | **str**| Search parameter that performs a case-insensitive text search across the Name, FirstName, LastName, ContactNumber and EmailAddress fields. | [optional]
**notes** | **str** | Any footnotes associated with this balance | [optional]
10
10
11
11
[[Back to Model list]](../README.md#documentation-for-models)[[Back to API list]](../README.md#documentation-for-api-endpoints)[[Back to README]](../README.md)
0 commit comments