Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docs/v1/accounting/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -6220,7 +6220,7 @@
"OrganisationRole" : {
"type" : "string",
"description" : "User role that defines permissions in Xero and via API (READONLY, INVOICEONLY, STANDARD, FINANCIALADVISER, etc)",
"enum" : [ "READONLY", "INVOICEONLY", "STANDARD", "FINANCIALADVISER", "MANAGEDCLIENT", "CASHBOOKCLIENT", "UNKNOWN" ]
"enum" : [ "READONLY", "INVOICEONLY", "STANDARD", "FINANCIALADVISER", "MANAGEDCLIENT", "CASHBOOKCLIENT", "UNKNOWN", "REMOVED" ]
}
},
"description" : "",
Expand Down
4 changes: 2 additions & 2 deletions docs/v1/appstore/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -976,8 +976,8 @@
},
"type" : {
"type" : "string",
"description" : "The pricing model of the product:\n* FIXED: Customers are charged a fixed amount for each billing period\n* PER_SEAT: Customers are charged based on the number of units they purchase\n* METERED: Customers are charged per use of this product\n",
"enum" : [ "FIXED", "PER_SEAT", "METERED" ]
"description" : "The pricing model of the product:\n* FIXED: Customers are charged a fixed amount for each billing period\n* PER_SEAT: Customers are charged based on the number of units they purchase\n* METERED: Customers are charged per use of this product\n* SIMPLE: Customers are charged on a fixed amount for each billing period with an optional add-on feature\n",
"enum" : [ "FIXED", "PER_SEAT", "METERED", "SIMPLE" ]
},
"usageUnit" : {
"type" : "string",
Expand Down
25 changes: 23 additions & 2 deletions docs/v1/files/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -2741,10 +2741,11 @@ <h3>Usage and SDK Samples</h3>
def accounting_get_files():
api_instance = FilesApi(api_client)
xero_tenant_id = 'YOUR_XERO_TENANT_ID'
sort = 'CreatedDateUTC DESC'
sort = 'CreatedDateUTC'
direction = 'ASC'

try:
api_response = api_instance.get_files(xero_tenant_id, pagesize, page, sort)
api_response = api_instance.get_files(xero_tenant_id, pagesize, page, sort, direction)
print(api_response)
except AccountingBadRequestException as e:
print("Exception when calling FilesApi->getFiles: %s\n" % e)</code></pre>
Expand Down Expand Up @@ -2859,6 +2860,26 @@ <h2>Parameters</h2>
</div>
</div>
</td>
</tr>

<tr><td style="width:150px;">direction</td>
<td>


<div id="d2e199_getFiles_direction">
<div class="json-schema-view">
<div class="primitive">
<span class="type">
String
</span>

<div class="inner description marked">
sort direction
</div>
</div>
</div>
</div>
</td>
</tr>

</table>
Expand Down
4 changes: 2 additions & 2 deletions docs/v1/payroll-uk/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -1954,7 +1954,7 @@
"leaveType" : {
"type" : "string",
"description" : "The type of statutory leave",
"enum" : [ "Sick", "Adoption", "Maternity", "Paternity", "Sharedparental", "Bereavement" ]
"enum" : [ "Sick", "Adoption", "Maternity", "Paternity", "Sharedparental", "Bereavement", "NeonatalCare" ]
},
"balanceRemaining" : {
"type" : "number",
Expand Down Expand Up @@ -2002,7 +2002,7 @@
"type" : {
"type" : "string",
"description" : "The category of statutory leave",
"enum" : [ "Sick", "Adoption", "Maternity", "Paternity", "Sharedparental", "Bereavement" ]
"enum" : [ "Sick", "Adoption", "Maternity", "Paternity", "Sharedparental", "Bereavement", "NeonatalCare" ]
},
"startDate" : {
"type" : "string",
Expand Down
1 change: 1 addition & 0 deletions xero_python/accounting/models/user.py
Original file line number Diff line number Diff line change
Expand Up @@ -251,6 +251,7 @@ def organisation_role(self, organisation_role):
"MANAGEDCLIENT",
"CASHBOOKCLIENT",
"UNKNOWN",
"REMOVED",
"None",
] # noqa: E501

Expand Down
2 changes: 1 addition & 1 deletion xero_python/appstore/docs/Product.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ Name | Type | Description | Notes
**id** | **str** | The unique identifier for the product | [optional]
**name** | **str** | The name of the product | [optional]
**seat_unit** | **str** | The unit of the per seat product. e.g. \&quot;user\&quot;, \&quot;organisation\&quot;, \&quot;SMS\&quot;, etc | [optional]
**type** | **str** | The pricing model of the product: * FIXED: Customers are charged a fixed amount for each billing period * PER_SEAT: Customers are charged based on the number of units they purchase * METERED: Customers are charged per use of this product | [optional]
**type** | **str** | The pricing model of the product: * FIXED: Customers are charged a fixed amount for each billing period * PER_SEAT: Customers are charged based on the number of units they purchase * METERED: Customers are charged per use of this product * SIMPLE: Customers are charged on a fixed amount for each billing period with an optional add-on feature | [optional]
**usage_unit** | **str** | The unit of the usage product. e.g. \&quot;user\&quot;, \&quot;minutes\&quot;, \&quot;SMS\&quot;, etc | [optional]

[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
Expand Down
12 changes: 9 additions & 3 deletions xero_python/appstore/models/product.py
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ def seat_unit(self, seat_unit):
def type(self):
"""Gets the type of this Product. # noqa: E501

The pricing model of the product: * FIXED: Customers are charged a fixed amount for each billing period * PER_SEAT: Customers are charged based on the number of units they purchase * METERED: Customers are charged per use of this product # noqa: E501
The pricing model of the product: * FIXED: Customers are charged a fixed amount for each billing period * PER_SEAT: Customers are charged based on the number of units they purchase * METERED: Customers are charged per use of this product * SIMPLE: Customers are charged on a fixed amount for each billing period with an optional add-on feature # noqa: E501

:return: The type of this Product. # noqa: E501
:rtype: str
Expand All @@ -152,12 +152,18 @@ def type(self):
def type(self, type):
"""Sets the type of this Product.

The pricing model of the product: * FIXED: Customers are charged a fixed amount for each billing period * PER_SEAT: Customers are charged based on the number of units they purchase * METERED: Customers are charged per use of this product # noqa: E501
The pricing model of the product: * FIXED: Customers are charged a fixed amount for each billing period * PER_SEAT: Customers are charged based on the number of units they purchase * METERED: Customers are charged per use of this product * SIMPLE: Customers are charged on a fixed amount for each billing period with an optional add-on feature # noqa: E501

:param type: The type of this Product. # noqa: E501
:type: str
"""
allowed_values = ["FIXED", "PER_SEAT", "METERED", "None"] # noqa: E501
allowed_values = [
"FIXED",
"PER_SEAT",
"METERED",
"SIMPLE",
"None",
] # noqa: E501

if type:
if type not in allowed_values:
Expand Down
5 changes: 5 additions & 0 deletions xero_python/file/api/files_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -885,6 +885,7 @@ def get_files(
pagesize=empty,
page=empty,
sort=empty,
direction=empty,
_return_http_data_only=True,
_preload_content=True,
_request_timeout=None,
Expand All @@ -895,6 +896,7 @@ def get_files(
:param int pagesize: pass an optional page size value
:param int page: number of records to skip for pagination
:param str sort: values to sort by
:param str direction: sort direction
:param bool _return_http_data_only: return received data only
:param bool _preload_content: load received data in models
:param bool _request_timeout: maximum wait time for response
Expand Down Expand Up @@ -936,6 +938,9 @@ def get_files(
if sort is not empty:
query_params.append(("sort", sort))

if direction is not empty:
query_params.append(("direction", direction))

header_params = {
"xero-tenant-id": xero_tenant_id,
}
Expand Down
8 changes: 5 additions & 3 deletions xero_python/file/docs/FilesApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -686,7 +686,7 @@ Name | Type | Description | Notes
[[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)

# **get_files**
> Files get_files(xero_tenant_id, pagesize=pagesize, page=page, sort=sort)
> Files get_files(xero_tenant_id, pagesize=pagesize, page=page, sort=sort, direction=direction)

Retrieves files

Expand Down Expand Up @@ -719,10 +719,11 @@ api_instance = FilesApi(api_client)
xero_tenant_id = 'YOUR_XERO_TENANT_ID' # str | Xero identifier for Tenant
pagesize = 50 # int | pass an optional page size value (optional)
page = 2 # int | number of records to skip for pagination (optional)
sort = 'CreatedDateUTC DESC' # str | values to sort by (optional)
sort = 'CreatedDateUTC' # str | values to sort by (optional)
direction = 'ASC' # str | sort direction (optional)
try:
# Retrieves files
api_response = api_instance.get_files(xero_tenant_id, pagesize=pagesize, page=page, sort=sort)
api_response = api_instance.get_files(xero_tenant_id, pagesize=pagesize, page=page, sort=sort, direction=direction)
pprint(api_response)
except ApiException as e:
print("Exception when calling FilesApi->get_files: %s\n" % e)
Expand All @@ -736,6 +737,7 @@ Name | Type | Description | Notes
**pagesize** | **int**| pass an optional page size value | [optional]
**page** | **int**| number of records to skip for pagination | [optional]
**sort** | **str**| values to sort by | [optional]
**direction** | **str**| sort direction | [optional]

### Return type

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@ def leave_type(self, leave_type):
"Paternity",
"Sharedparental",
"Bereavement",
"NeonatalCare",
"None",
] # noqa: E501

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,7 @@ def type(self, type):
"Paternity",
"Sharedparental",
"Bereavement",
"NeonatalCare",
"None",
] # noqa: E501

Expand Down