Skip to content

Commit 7b078dc

Browse files
author
sangeet-joy_xero
committed
Build for version - 9.0.0
1 parent c7dc688 commit 7b078dc

File tree

11 files changed

+51
-14
lines changed

11 files changed

+51
-14
lines changed

docs/v1/accounting/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6220,7 +6220,7 @@
62206220
"OrganisationRole" : {
62216221
"type" : "string",
62226222
"description" : "User role that defines permissions in Xero and via API (READONLY, INVOICEONLY, STANDARD, FINANCIALADVISER, etc)",
6223-
"enum" : [ "READONLY", "INVOICEONLY", "STANDARD", "FINANCIALADVISER", "MANAGEDCLIENT", "CASHBOOKCLIENT", "UNKNOWN" ]
6223+
"enum" : [ "READONLY", "INVOICEONLY", "STANDARD", "FINANCIALADVISER", "MANAGEDCLIENT", "CASHBOOKCLIENT", "UNKNOWN", "REMOVED" ]
62246224
}
62256225
},
62266226
"description" : "",

docs/v1/appstore/index.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -976,8 +976,8 @@
976976
},
977977
"type" : {
978978
"type" : "string",
979-
"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",
980-
"enum" : [ "FIXED", "PER_SEAT", "METERED" ]
979+
"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",
980+
"enum" : [ "FIXED", "PER_SEAT", "METERED", "SIMPLE" ]
981981
},
982982
"usageUnit" : {
983983
"type" : "string",

docs/v1/files/index.html

Lines changed: 23 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2741,10 +2741,11 @@ <h3>Usage and SDK Samples</h3>
27412741
def accounting_get_files():
27422742
api_instance = FilesApi(api_client)
27432743
xero_tenant_id = 'YOUR_XERO_TENANT_ID'
2744-
sort = 'CreatedDateUTC DESC'
2744+
sort = 'CreatedDateUTC'
2745+
direction = 'ASC'
27452746

27462747
try:
2747-
api_response = api_instance.get_files(xero_tenant_id, pagesize, page, sort)
2748+
api_response = api_instance.get_files(xero_tenant_id, pagesize, page, sort, direction)
27482749
print(api_response)
27492750
except AccountingBadRequestException as e:
27502751
print("Exception when calling FilesApi->getFiles: %s\n" % e)</code></pre>
@@ -2859,6 +2860,26 @@ <h2>Parameters</h2>
28592860
</div>
28602861
</div>
28612862
</td>
2863+
</tr>
2864+
2865+
<tr><td style="width:150px;">direction</td>
2866+
<td>
2867+
2868+
2869+
<div id="d2e199_getFiles_direction">
2870+
<div class="json-schema-view">
2871+
<div class="primitive">
2872+
<span class="type">
2873+
String
2874+
</span>
2875+
2876+
<div class="inner description marked">
2877+
sort direction
2878+
</div>
2879+
</div>
2880+
</div>
2881+
</div>
2882+
</td>
28622883
</tr>
28632884

28642885
</table>

docs/v1/payroll-uk/index.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1954,7 +1954,7 @@
19541954
"leaveType" : {
19551955
"type" : "string",
19561956
"description" : "The type of statutory leave",
1957-
"enum" : [ "Sick", "Adoption", "Maternity", "Paternity", "Sharedparental", "Bereavement" ]
1957+
"enum" : [ "Sick", "Adoption", "Maternity", "Paternity", "Sharedparental", "Bereavement", "NeonatalCare" ]
19581958
},
19591959
"balanceRemaining" : {
19601960
"type" : "number",
@@ -2002,7 +2002,7 @@
20022002
"type" : {
20032003
"type" : "string",
20042004
"description" : "The category of statutory leave",
2005-
"enum" : [ "Sick", "Adoption", "Maternity", "Paternity", "Sharedparental", "Bereavement" ]
2005+
"enum" : [ "Sick", "Adoption", "Maternity", "Paternity", "Sharedparental", "Bereavement", "NeonatalCare" ]
20062006
},
20072007
"startDate" : {
20082008
"type" : "string",

xero_python/accounting/models/user.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -251,6 +251,7 @@ def organisation_role(self, organisation_role):
251251
"MANAGEDCLIENT",
252252
"CASHBOOKCLIENT",
253253
"UNKNOWN",
254+
"REMOVED",
254255
"None",
255256
] # noqa: E501
256257

xero_python/appstore/docs/Product.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ Name | Type | Description | Notes
66
**id** | **str** | The unique identifier for the product | [optional]
77
**name** | **str** | The name of the product | [optional]
88
**seat_unit** | **str** | The unit of the per seat product. e.g. \&quot;user\&quot;, \&quot;organisation\&quot;, \&quot;SMS\&quot;, etc | [optional]
9-
**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]
9+
**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]
1010
**usage_unit** | **str** | The unit of the usage product. e.g. \&quot;user\&quot;, \&quot;minutes\&quot;, \&quot;SMS\&quot;, etc | [optional]
1111

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

xero_python/appstore/models/product.py

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ def seat_unit(self, seat_unit):
141141
def type(self):
142142
"""Gets the type of this Product. # noqa: E501
143143
144-
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
144+
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
145145
146146
:return: The type of this Product. # noqa: E501
147147
:rtype: str
@@ -152,12 +152,18 @@ def type(self):
152152
def type(self, type):
153153
"""Sets the type of this Product.
154154
155-
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
155+
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
156156
157157
:param type: The type of this Product. # noqa: E501
158158
:type: str
159159
"""
160-
allowed_values = ["FIXED", "PER_SEAT", "METERED", "None"] # noqa: E501
160+
allowed_values = [
161+
"FIXED",
162+
"PER_SEAT",
163+
"METERED",
164+
"SIMPLE",
165+
"None",
166+
] # noqa: E501
161167

162168
if type:
163169
if type not in allowed_values:

xero_python/file/api/files_api.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -885,6 +885,7 @@ def get_files(
885885
pagesize=empty,
886886
page=empty,
887887
sort=empty,
888+
direction=empty,
888889
_return_http_data_only=True,
889890
_preload_content=True,
890891
_request_timeout=None,
@@ -895,6 +896,7 @@ def get_files(
895896
:param int pagesize: pass an optional page size value
896897
:param int page: number of records to skip for pagination
897898
:param str sort: values to sort by
899+
:param str direction: sort direction
898900
:param bool _return_http_data_only: return received data only
899901
:param bool _preload_content: load received data in models
900902
:param bool _request_timeout: maximum wait time for response
@@ -936,6 +938,9 @@ def get_files(
936938
if sort is not empty:
937939
query_params.append(("sort", sort))
938940

941+
if direction is not empty:
942+
query_params.append(("direction", direction))
943+
939944
header_params = {
940945
"xero-tenant-id": xero_tenant_id,
941946
}

xero_python/file/docs/FilesApi.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -686,7 +686,7 @@ Name | Type | Description | Notes
686686
[[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)
687687

688688
# **get_files**
689-
> Files get_files(xero_tenant_id, pagesize=pagesize, page=page, sort=sort)
689+
> Files get_files(xero_tenant_id, pagesize=pagesize, page=page, sort=sort, direction=direction)
690690
691691
Retrieves files
692692

@@ -719,10 +719,11 @@ api_instance = FilesApi(api_client)
719719
xero_tenant_id = 'YOUR_XERO_TENANT_ID' # str | Xero identifier for Tenant
720720
pagesize = 50 # int | pass an optional page size value (optional)
721721
page = 2 # int | number of records to skip for pagination (optional)
722-
sort = 'CreatedDateUTC DESC' # str | values to sort by (optional)
722+
sort = 'CreatedDateUTC' # str | values to sort by (optional)
723+
direction = 'ASC' # str | sort direction (optional)
723724
try:
724725
# Retrieves files
725-
api_response = api_instance.get_files(xero_tenant_id, pagesize=pagesize, page=page, sort=sort)
726+
api_response = api_instance.get_files(xero_tenant_id, pagesize=pagesize, page=page, sort=sort, direction=direction)
726727
pprint(api_response)
727728
except ApiException as e:
728729
print("Exception when calling FilesApi->get_files: %s\n" % e)
@@ -736,6 +737,7 @@ Name | Type | Description | Notes
736737
**pagesize** | **int**| pass an optional page size value | [optional]
737738
**page** | **int**| number of records to skip for pagination | [optional]
738739
**sort** | **str**| values to sort by | [optional]
740+
**direction** | **str**| sort direction | [optional]
739741

740742
### Return type
741743

xero_python/payrolluk/models/employee_statutory_leave_balance.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,7 @@ def leave_type(self, leave_type):
8181
"Paternity",
8282
"Sharedparental",
8383
"Bereavement",
84+
"NeonatalCare",
8485
"None",
8586
] # noqa: E501
8687

0 commit comments

Comments
 (0)