Skip to content

Commit f2426f6

Browse files
committed
generated from OAS 2.17.2
1 parent 93435f0 commit f2426f6

File tree

106 files changed

+10244
-14
lines changed

Some content is hidden

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

106 files changed

+10244
-14
lines changed

docs/v1/accounting/index.html

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1984,6 +1984,11 @@
19841984
"description" : "Xero identifier",
19851985
"format" : "uuid"
19861986
},
1987+
"MergedToContactID" : {
1988+
"type" : "string",
1989+
"description" : "ID for the destination of a merged contact. Only returned when using paging or when fetching a contact by ContactId or ContactNumber.",
1990+
"format" : "uuid"
1991+
},
19871992
"ContactNumber" : {
19881993
"maxLength" : 50,
19891994
"type" : "string",
@@ -2014,6 +2019,11 @@
20142019
"type" : "string",
20152020
"description" : "Last name of contact person (max length = 255)"
20162021
},
2022+
"CompanyNumber" : {
2023+
"maxLength" : 50,
2024+
"type" : "string",
2025+
"description" : "Company registration number (max length = 50)"
2026+
},
20172027
"EmailAddress" : {
20182028
"maxLength" : 255,
20192029
"type" : "string",
@@ -2069,6 +2079,16 @@
20692079
"type" : "boolean",
20702080
"description" : "true or false – Boolean that describes if a contact has any AR invoices entered against them. Cannot be set via PUT or POST – it is automatically set when an accounts receivable invoice is generated against this contact."
20712081
},
2082+
"SalesDefaultLineAmountType" : {
2083+
"type" : "string",
2084+
"description" : "The default sales line amount type for a contact. Only available when summaryOnly parameter or paging is used, or when fetch by ContactId or ContactNumber.",
2085+
"enum" : [ "INCLUSIVE", "EXCLUSIVE", "NONE" ]
2086+
},
2087+
"PurchasesDefaultLineAmountType" : {
2088+
"type" : "string",
2089+
"description" : "The default purchases line amount type for a contact Only available when summaryOnly parameter or paging is used, or when fetch by ContactId or ContactNumber.",
2090+
"enum" : [ "INCLUSIVE", "EXCLUSIVE", "NONE" ]
2091+
},
20722092
"DefaultCurrency" : {
20732093
"$ref" : "#/components/schemas/CurrencyCode"
20742094
},
@@ -5956,7 +5976,7 @@
59565976
<nav id="scrollingNav">
59575977
<ul class="sidenav nav nav-list">
59585978
<li class="nav-header" data-group="Accounting"><strong>SDK: </strong><span id='sdk-name'></span></li>
5959-
<li class="nav-header" data-group="Accounting"><strong>VSN: </strong>1.10.0</li>
5979+
<li class="nav-header" data-group="Accounting"><strong>VSN: </strong>1.11.0b1</li>
59605980
<li class="nav-header" data-group="Accounting"><a href="#api-Accounting">Methods</a></li>
59615981
<li data-group="Accounting" data-name="createAccount" class="">
59625982
<a href="#api-Accounting-createAccount">createAccount</a>

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.10.0",
51+
version="1.11.0b1",
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.10.0"
5+
__version__ = "1.11.0b1"

xero_python/accounting/api/accounting_api.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
"""
1111

1212
"""
13-
OpenAPI spec version: 2.17.1
13+
OpenAPI spec version: 2.17.2
1414
"""
1515

1616
import importlib

xero_python/accounting/docs/Contact.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,14 @@
44
Name | Type | Description | Notes
55
------------ | ------------- | ------------- | -------------
66
**contact_id** | **str** | Xero identifier | [optional]
7+
**merged_to_contact_id** | **str** | ID for the destination of a merged contact. Only returned when using paging or when fetching a contact by ContactId or ContactNumber. | [optional]
78
**contact_number** | **str** | This can be updated via the API only i.e. This field is read only on the Xero contact screen, used to identify contacts in external systems (max length &#x3D; 50). If the Contact Number is used, this is displayed as Contact Code in the Contacts UI in Xero. | [optional]
89
**account_number** | **str** | A user defined account number. This can be updated via the API and the Xero UI (max length &#x3D; 50) | [optional]
910
**contact_status** | **str** | Current status of a contact – see contact status types | [optional]
1011
**name** | **str** | Full name of contact/organisation (max length &#x3D; 255) | [optional]
1112
**first_name** | **str** | First name of contact person (max length &#x3D; 255) | [optional]
1213
**last_name** | **str** | Last name of contact person (max length &#x3D; 255) | [optional]
14+
**company_number** | **str** | Company registration number (max length &#x3D; 50) | [optional]
1315
**email_address** | **str** | Email address of contact person (umlauts not supported) (max length &#x3D; 255) | [optional]
1416
**skype_user_name** | **str** | Skype user name of contact | [optional]
1517
**contact_persons** | [**list[ContactPerson]**](ContactPerson.md) | See contact persons | [optional]
@@ -21,6 +23,8 @@ Name | Type | Description | Notes
2123
**phones** | [**list[Phone]**](Phone.md) | Store certain phone types for a contact – see phone types | [optional]
2224
**is_supplier** | **bool** | true or false – Boolean that describes if a contact that has any AP invoices entered against them. Cannot be set via PUT or POST – it is automatically set when an accounts payable invoice is generated against this contact. | [optional]
2325
**is_customer** | **bool** | true or false – Boolean that describes if a contact has any AR invoices entered against them. Cannot be set via PUT or POST – it is automatically set when an accounts receivable invoice is generated against this contact. | [optional]
26+
**sales_default_line_amount_type** | **str** | The default sales line amount type for a contact. Only available when summaryOnly parameter or paging is used, or when fetch by ContactId or ContactNumber. | [optional]
27+
**purchases_default_line_amount_type** | **str** | The default purchases line amount type for a contact Only available when summaryOnly parameter or paging is used, or when fetch by ContactId or ContactNumber. | [optional]
2428
**default_currency** | [**CurrencyCode**](CurrencyCode.md) | | [optional]
2529
**xero_network_key** | **str** | Store XeroNetworkKey for contacts. | [optional]
2630
**sales_default_account_code** | **str** | The default sales account code for contacts | [optional]

xero_python/accounting/models/contact.py

Lines changed: 139 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,12 +31,14 @@ class Contact(BaseModel):
3131
"""
3232
openapi_types = {
3333
"contact_id": "str",
34+
"merged_to_contact_id": "str",
3435
"contact_number": "str",
3536
"account_number": "str",
3637
"contact_status": "str",
3738
"name": "str",
3839
"first_name": "str",
3940
"last_name": "str",
41+
"company_number": "str",
4042
"email_address": "str",
4143
"skype_user_name": "str",
4244
"contact_persons": "list[ContactPerson]",
@@ -48,6 +50,8 @@ class Contact(BaseModel):
4850
"phones": "list[Phone]",
4951
"is_supplier": "bool",
5052
"is_customer": "bool",
53+
"sales_default_line_amount_type": "str",
54+
"purchases_default_line_amount_type": "str",
5155
"default_currency": "CurrencyCode",
5256
"xero_network_key": "str",
5357
"sales_default_account_code": "str",
@@ -73,12 +77,14 @@ class Contact(BaseModel):
7377

7478
attribute_map = {
7579
"contact_id": "ContactID",
80+
"merged_to_contact_id": "MergedToContactID",
7681
"contact_number": "ContactNumber",
7782
"account_number": "AccountNumber",
7883
"contact_status": "ContactStatus",
7984
"name": "Name",
8085
"first_name": "FirstName",
8186
"last_name": "LastName",
87+
"company_number": "CompanyNumber",
8288
"email_address": "EmailAddress",
8389
"skype_user_name": "SkypeUserName",
8490
"contact_persons": "ContactPersons",
@@ -90,6 +96,8 @@ class Contact(BaseModel):
9096
"phones": "Phones",
9197
"is_supplier": "IsSupplier",
9298
"is_customer": "IsCustomer",
99+
"sales_default_line_amount_type": "SalesDefaultLineAmountType",
100+
"purchases_default_line_amount_type": "PurchasesDefaultLineAmountType",
93101
"default_currency": "DefaultCurrency",
94102
"xero_network_key": "XeroNetworkKey",
95103
"sales_default_account_code": "SalesDefaultAccountCode",
@@ -116,12 +124,14 @@ class Contact(BaseModel):
116124
def __init__(
117125
self,
118126
contact_id=None,
127+
merged_to_contact_id=None,
119128
contact_number=None,
120129
account_number=None,
121130
contact_status=None,
122131
name=None,
123132
first_name=None,
124133
last_name=None,
134+
company_number=None,
125135
email_address=None,
126136
skype_user_name=None,
127137
contact_persons=None,
@@ -133,6 +143,8 @@ def __init__(
133143
phones=None,
134144
is_supplier=None,
135145
is_customer=None,
146+
sales_default_line_amount_type=None,
147+
purchases_default_line_amount_type=None,
136148
default_currency=None,
137149
xero_network_key=None,
138150
sales_default_account_code=None,
@@ -158,12 +170,14 @@ def __init__(
158170
"""Contact - a model defined in OpenAPI""" # noqa: E501
159171

160172
self._contact_id = None
173+
self._merged_to_contact_id = None
161174
self._contact_number = None
162175
self._account_number = None
163176
self._contact_status = None
164177
self._name = None
165178
self._first_name = None
166179
self._last_name = None
180+
self._company_number = None
167181
self._email_address = None
168182
self._skype_user_name = None
169183
self._contact_persons = None
@@ -175,6 +189,8 @@ def __init__(
175189
self._phones = None
176190
self._is_supplier = None
177191
self._is_customer = None
192+
self._sales_default_line_amount_type = None
193+
self._purchases_default_line_amount_type = None
178194
self._default_currency = None
179195
self._xero_network_key = None
180196
self._sales_default_account_code = None
@@ -200,6 +216,8 @@ def __init__(
200216

201217
if contact_id is not None:
202218
self.contact_id = contact_id
219+
if merged_to_contact_id is not None:
220+
self.merged_to_contact_id = merged_to_contact_id
203221
if contact_number is not None:
204222
self.contact_number = contact_number
205223
if account_number is not None:
@@ -212,6 +230,8 @@ def __init__(
212230
self.first_name = first_name
213231
if last_name is not None:
214232
self.last_name = last_name
233+
if company_number is not None:
234+
self.company_number = company_number
215235
if email_address is not None:
216236
self.email_address = email_address
217237
if skype_user_name is not None:
@@ -234,6 +254,10 @@ def __init__(
234254
self.is_supplier = is_supplier
235255
if is_customer is not None:
236256
self.is_customer = is_customer
257+
if sales_default_line_amount_type is not None:
258+
self.sales_default_line_amount_type = sales_default_line_amount_type
259+
if purchases_default_line_amount_type is not None:
260+
self.purchases_default_line_amount_type = purchases_default_line_amount_type
237261
if default_currency is not None:
238262
self.default_currency = default_currency
239263
if xero_network_key is not None:
@@ -300,6 +324,29 @@ def contact_id(self, contact_id):
300324

301325
self._contact_id = contact_id
302326

327+
@property
328+
def merged_to_contact_id(self):
329+
"""Gets the merged_to_contact_id of this Contact. # noqa: E501
330+
331+
ID for the destination of a merged contact. Only returned when using paging or when fetching a contact by ContactId or ContactNumber. # noqa: E501
332+
333+
:return: The merged_to_contact_id of this Contact. # noqa: E501
334+
:rtype: str
335+
"""
336+
return self._merged_to_contact_id
337+
338+
@merged_to_contact_id.setter
339+
def merged_to_contact_id(self, merged_to_contact_id):
340+
"""Sets the merged_to_contact_id of this Contact.
341+
342+
ID for the destination of a merged contact. Only returned when using paging or when fetching a contact by ContactId or ContactNumber. # noqa: E501
343+
344+
:param merged_to_contact_id: The merged_to_contact_id of this Contact. # noqa: E501
345+
:type: str
346+
"""
347+
348+
self._merged_to_contact_id = merged_to_contact_id
349+
303350
@property
304351
def contact_number(self):
305352
"""Gets the contact_number of this Contact. # noqa: E501
@@ -472,6 +519,34 @@ def last_name(self, last_name):
472519

473520
self._last_name = last_name
474521

522+
@property
523+
def company_number(self):
524+
"""Gets the company_number of this Contact. # noqa: E501
525+
526+
Company registration number (max length = 50) # noqa: E501
527+
528+
:return: The company_number of this Contact. # noqa: E501
529+
:rtype: str
530+
"""
531+
return self._company_number
532+
533+
@company_number.setter
534+
def company_number(self, company_number):
535+
"""Sets the company_number of this Contact.
536+
537+
Company registration number (max length = 50) # noqa: E501
538+
539+
:param company_number: The company_number of this Contact. # noqa: E501
540+
:type: str
541+
"""
542+
if company_number is not None and len(company_number) > 50:
543+
raise ValueError(
544+
"Invalid value for `company_number`, "
545+
"length must be less than or equal to `50`"
546+
) # noqa: E501
547+
548+
self._company_number = company_number
549+
475550
@property
476551
def email_address(self):
477552
"""Gets the email_address of this Contact. # noqa: E501
@@ -735,6 +810,70 @@ def is_customer(self, is_customer):
735810

736811
self._is_customer = is_customer
737812

813+
@property
814+
def sales_default_line_amount_type(self):
815+
"""Gets the sales_default_line_amount_type of this Contact. # noqa: E501
816+
817+
The default sales line amount type for a contact. Only available when summaryOnly parameter or paging is used, or when fetch by ContactId or ContactNumber. # noqa: E501
818+
819+
:return: The sales_default_line_amount_type of this Contact. # noqa: E501
820+
:rtype: str
821+
"""
822+
return self._sales_default_line_amount_type
823+
824+
@sales_default_line_amount_type.setter
825+
def sales_default_line_amount_type(self, sales_default_line_amount_type):
826+
"""Sets the sales_default_line_amount_type of this Contact.
827+
828+
The default sales line amount type for a contact. Only available when summaryOnly parameter or paging is used, or when fetch by ContactId or ContactNumber. # noqa: E501
829+
830+
:param sales_default_line_amount_type: The sales_default_line_amount_type of this Contact. # noqa: E501
831+
:type: str
832+
"""
833+
allowed_values = ["INCLUSIVE", "EXCLUSIVE", "NONE", "None"] # noqa: E501
834+
835+
if sales_default_line_amount_type:
836+
if sales_default_line_amount_type not in allowed_values:
837+
raise ValueError(
838+
"Invalid value for `sales_default_line_amount_type` ({0}), must be one of {1}".format( # noqa: E501
839+
sales_default_line_amount_type, allowed_values
840+
)
841+
)
842+
843+
self._sales_default_line_amount_type = sales_default_line_amount_type
844+
845+
@property
846+
def purchases_default_line_amount_type(self):
847+
"""Gets the purchases_default_line_amount_type of this Contact. # noqa: E501
848+
849+
The default purchases line amount type for a contact Only available when summaryOnly parameter or paging is used, or when fetch by ContactId or ContactNumber. # noqa: E501
850+
851+
:return: The purchases_default_line_amount_type of this Contact. # noqa: E501
852+
:rtype: str
853+
"""
854+
return self._purchases_default_line_amount_type
855+
856+
@purchases_default_line_amount_type.setter
857+
def purchases_default_line_amount_type(self, purchases_default_line_amount_type):
858+
"""Sets the purchases_default_line_amount_type of this Contact.
859+
860+
The default purchases line amount type for a contact Only available when summaryOnly parameter or paging is used, or when fetch by ContactId or ContactNumber. # noqa: E501
861+
862+
:param purchases_default_line_amount_type: The purchases_default_line_amount_type of this Contact. # noqa: E501
863+
:type: str
864+
"""
865+
allowed_values = ["INCLUSIVE", "EXCLUSIVE", "NONE", "None"] # noqa: E501
866+
867+
if purchases_default_line_amount_type:
868+
if purchases_default_line_amount_type not in allowed_values:
869+
raise ValueError(
870+
"Invalid value for `purchases_default_line_amount_type` ({0}), must be one of {1}".format( # noqa: E501
871+
purchases_default_line_amount_type, allowed_values
872+
)
873+
)
874+
875+
self._purchases_default_line_amount_type = purchases_default_line_amount_type
876+
738877
@property
739878
def default_currency(self):
740879
"""Gets the default_currency of this Contact. # noqa: E501

xero_python/appstore/api/app_store_api.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
"""
1111

1212
"""
13-
OpenAPI spec version: 2.17.1
13+
OpenAPI spec version: 2.17.2
1414
"""
1515

1616
import importlib

xero_python/assets/api/asset_api.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
"""
1111

1212
"""
13-
OpenAPI spec version: 2.17.1
13+
OpenAPI spec version: 2.17.2
1414
"""
1515

1616
import importlib

xero_python/docs/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ These endpoints are related to managing authentication tokens and identity for X
33

44
The `xero_python` package is automatically generated by the [XeroAPI SDK 2.0 Codegen](https://github.com/xero-github/xeroapi-sdk-codegen) project:
55

6-
- API version: 2.17.1
7-
- Package version: 1.10.0
6+
- API version: 2.17.2
7+
- Package version: 1.11.0b1
88
- Build package: org.openapitools.codegen.languages.PythonClientCodegen
99
For more information, please visit [https://developer.xero.com](https://developer.xero.com)
1010

xero_python/file/api/files_api.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
"""
1111

1212
"""
13-
OpenAPI spec version: 2.17.1
13+
OpenAPI spec version: 2.17.2
1414
"""
1515

1616
import importlib

0 commit comments

Comments
 (0)