Skip to content

Commit

Permalink
build from oas 4.0.0 (#134)
Browse files Browse the repository at this point in the history
  • Loading branch information
manishT72 authored Jun 21, 2024
1 parent e92d8ab commit 6aaad9d
Show file tree
Hide file tree
Showing 25 changed files with 137 additions and 25 deletions.
4 changes: 2 additions & 2 deletions docs/v1/accounting/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -4062,7 +4062,7 @@
"Class" : {
"type" : "string",
"description" : "Organisation Classes describe which plan the Xero organisation is on (e.g. DEMO, TRIAL, PREMIUM)",
"enum" : [ "DEMO", "TRIAL", "STARTER", "STANDARD", "PREMIUM", "PREMIUM_20", "PREMIUM_50", "PREMIUM_100", "LEDGER", "GST_CASHBOOK", "NON_GST_CASHBOOK", "ULTIMATE", "LITE" ]
"enum" : [ "DEMO", "TRIAL", "STARTER", "STANDARD", "PREMIUM", "PREMIUM_20", "PREMIUM_50", "PREMIUM_100", "LEDGER", "GST_CASHBOOK", "NON_GST_CASHBOOK", "ULTIMATE", "LITE", "IGNITE", "GROW", "COMPREHENSIVE" ]
},
"Edition" : {
"type" : "string",
Expand Down Expand Up @@ -6100,7 +6100,7 @@
<nav id="scrollingNav">
<ul class="sidenav nav nav-list">
<li class="nav-header" data-group="Accounting"><strong>SDK: </strong><span id='sdk-name'></span></li>
<li class="nav-header" data-group="Accounting"><strong>VSN: </strong>3.0.0</li>
<li class="nav-header" data-group="Accounting"><strong>VSN: </strong>4.0.0</li>
<li class="nav-header" data-group="Accounting"><a href="#api-Accounting">Methods</a></li>
<li data-group="Accounting" data-name="createAccount" class="">
<a href="#api-Accounting-createAccount">createAccount</a>
Expand Down
2 changes: 1 addition & 1 deletion docs/v1/appstore/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -1241,7 +1241,7 @@
<nav id="scrollingNav">
<ul class="sidenav nav nav-list">
<li class="nav-header" data-group="AppStore"><strong>SDK: </strong><span id='sdk-name'></span></li>
<li class="nav-header" data-group="AppStore"><strong>VSN: </strong>3.0.0</li>
<li class="nav-header" data-group="AppStore"><strong>VSN: </strong>4.0.0</li>
<li class="nav-header" data-group="AppStore"><a href="#api-AppStore">Methods</a></li>
<li data-group="AppStore" data-name="getSubscription" class="">
<a href="#api-AppStore-getSubscription">getSubscription</a>
Expand Down
2 changes: 1 addition & 1 deletion docs/v1/assets/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -1392,7 +1392,7 @@
<nav id="scrollingNav">
<ul class="sidenav nav nav-list">
<li class="nav-header" data-group="Asset"><strong>SDK: </strong><span id='sdk-name'></span></li>
<li class="nav-header" data-group="Asset"><strong>VSN: </strong>3.0.0</li>
<li class="nav-header" data-group="Asset"><strong>VSN: </strong>4.0.0</li>
<li class="nav-header" data-group="Asset"><a href="#api-Asset">Methods</a></li>
<li data-group="Asset" data-name="createAsset" class="">
<a href="#api-Asset-createAsset">createAsset</a>
Expand Down
17 changes: 16 additions & 1 deletion docs/v1/files/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -866,6 +866,21 @@
"title" : "",
"type" : "object",
"properties" : {
"SendWithObject" : {
"type" : "boolean",
"description" : "Boolean flag to determines whether the file is sent with the document it is attached to on client facing communications. Note- The SendWithObject element is only returned when using /Associations/{ObjectId} endpoint.",
"example" : true
},
"Name" : {
"type" : "string",
"description" : "The name of the associated file. Note- The Name element is only returned when using /Associations/{ObjectId} endpoint.",
"example" : "Test.pdf"
},
"Size" : {
"type" : "integer",
"description" : "The size of the associated file in bytes. Note- The Size element is only returned when using /Associations/{ObjectId} endpoint.",
"example" : 12357
},
"FileId" : {
"type" : "string",
"description" : "The unique identifier of the file",
Expand Down Expand Up @@ -1155,7 +1170,7 @@
<nav id="scrollingNav">
<ul class="sidenav nav nav-list">
<li class="nav-header" data-group="Files"><strong>SDK: </strong><span id='sdk-name'></span></li>
<li class="nav-header" data-group="Files"><strong>VSN: </strong>3.0.0</li>
<li class="nav-header" data-group="Files"><strong>VSN: </strong>4.0.0</li>
<li class="nav-header" data-group="Files"><a href="#api-Files">Methods</a></li>
<li data-group="Files" data-name="createFileAssociation" class="">
<a href="#api-Files-createFileAssociation">createFileAssociation</a>
Expand Down
2 changes: 1 addition & 1 deletion docs/v1/finance/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -2734,7 +2734,7 @@
<nav id="scrollingNav">
<ul class="sidenav nav nav-list">
<li class="nav-header" data-group="Finance"><strong>SDK: </strong><span id='sdk-name'></span></li>
<li class="nav-header" data-group="Finance"><strong>VSN: </strong>3.0.0</li>
<li class="nav-header" data-group="Finance"><strong>VSN: </strong>4.0.0</li>
<li class="nav-header" data-group="Finance"><a href="#api-Finance">Methods</a></li>
<li data-group="Finance" data-name="getAccountingActivityAccountUsage" class="">
<a href="#api-Finance-getAccountingActivityAccountUsage">getAccountingActivityAccountUsage</a>
Expand Down
2 changes: 1 addition & 1 deletion docs/v1/payroll-au/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -3412,7 +3412,7 @@
<nav id="scrollingNav">
<ul class="sidenav nav nav-list">
<li class="nav-header" data-group="PayrollAu"><strong>SDK: </strong><span id='sdk-name'></span></li>
<li class="nav-header" data-group="PayrollAu"><strong>VSN: </strong>3.0.0</li>
<li class="nav-header" data-group="PayrollAu"><strong>VSN: </strong>4.0.0</li>
<li class="nav-header" data-group="PayrollAu"><a href="#api-PayrollAu">Methods</a></li>
<li data-group="PayrollAu" data-name="approveLeaveApplication" class="">
<a href="#api-PayrollAu-approveLeaveApplication">approveLeaveApplication</a>
Expand Down
2 changes: 1 addition & 1 deletion docs/v1/payroll-nz/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -3843,7 +3843,7 @@
<nav id="scrollingNav">
<ul class="sidenav nav nav-list">
<li class="nav-header" data-group="PayrollNz"><strong>SDK: </strong><span id='sdk-name'></span></li>
<li class="nav-header" data-group="PayrollNz"><strong>VSN: </strong>3.0.0</li>
<li class="nav-header" data-group="PayrollNz"><strong>VSN: </strong>4.0.0</li>
<li class="nav-header" data-group="PayrollNz"><a href="#api-PayrollNz">Methods</a></li>
<li data-group="PayrollNz" data-name="approveTimesheet" class="">
<a href="#api-PayrollNz-approveTimesheet">approveTimesheet</a>
Expand Down
2 changes: 1 addition & 1 deletion docs/v1/payroll-uk/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -3510,7 +3510,7 @@
<nav id="scrollingNav">
<ul class="sidenav nav nav-list">
<li class="nav-header" data-group="PayrollUk"><strong>SDK: </strong><span id='sdk-name'></span></li>
<li class="nav-header" data-group="PayrollUk"><strong>VSN: </strong>3.0.0</li>
<li class="nav-header" data-group="PayrollUk"><strong>VSN: </strong>4.0.0</li>
<li class="nav-header" data-group="PayrollUk"><a href="#api-PayrollUk">Methods</a></li>
<li data-group="PayrollUk" data-name="approveTimesheet" class="">
<a href="#api-PayrollUk-approveTimesheet">approveTimesheet</a>
Expand Down
2 changes: 1 addition & 1 deletion docs/v1/projects/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -1462,7 +1462,7 @@
<nav id="scrollingNav">
<ul class="sidenav nav nav-list">
<li class="nav-header" data-group="Project"><strong>SDK: </strong><span id='sdk-name'></span></li>
<li class="nav-header" data-group="Project"><strong>VSN: </strong>3.0.0</li>
<li class="nav-header" data-group="Project"><strong>VSN: </strong>4.0.0</li>
<li class="nav-header" data-group="Project"><a href="#api-Project">Methods</a></li>
<li data-group="Project" data-name="createProject" class="">
<a href="#api-Project-createProject">createProject</a>
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,5 +48,5 @@ def read_file(filename):
keywords="xero python sdk API oAuth",
name="xero_python",
packages=find_packages(include=["xero_python", "xero_python.*"]),
version="3.0.0",
version="4.0.0",
)
2 changes: 1 addition & 1 deletion xero_python/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@

__author__ = """Xero Developer API"""
__email__ = "[email protected]"
__version__ = "3.0.0"
__version__ = "4.0.0"
2 changes: 1 addition & 1 deletion xero_python/accounting/api/accounting_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"""

"""
OpenAPI spec version: 3.0.3
OpenAPI spec version: 4.0.0
"""

import importlib
Expand Down
3 changes: 3 additions & 0 deletions xero_python/accounting/models/organisation.py
Original file line number Diff line number Diff line change
Expand Up @@ -981,6 +981,9 @@ def _class(self, _class):
"NON_GST_CASHBOOK",
"ULTIMATE",
"LITE",
"IGNITE",
"GROW",
"COMPREHENSIVE",
"None",
] # noqa: E501

Expand Down
2 changes: 1 addition & 1 deletion xero_python/appstore/api/app_store_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"""

"""
OpenAPI spec version: 3.0.3
OpenAPI spec version: 4.0.0
"""

import importlib
Expand Down
2 changes: 1 addition & 1 deletion xero_python/assets/api/asset_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"""

"""
OpenAPI spec version: 3.0.3
OpenAPI spec version: 4.0.0
"""

import importlib
Expand Down
4 changes: 2 additions & 2 deletions xero_python/docs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ These endpoints are related to managing authentication tokens and identity for X

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

- API version: 3.0.3
- Package version: 3.0.0
- API version: 4.0.0
- Package version: 4.0.0
- Build package: org.openapitools.codegen.languages.PythonClientCodegen
For more information, please visit [https://developer.xero.com](https://developer.xero.com)

Expand Down
2 changes: 1 addition & 1 deletion xero_python/file/api/files_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"""

"""
OpenAPI spec version: 3.0.3
OpenAPI spec version: 4.0.0
"""

import importlib
Expand Down
3 changes: 3 additions & 0 deletions xero_python/file/docs/Association.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**send_with_object** | **bool** | Boolean flag to determines whether the file is sent with the document it is attached to on client facing communications. Note- The SendWithObject element is only returned when using /Associations/{ObjectId} endpoint. | [optional]
**name** | **str** | The name of the associated file. Note- The Name element is only returned when using /Associations/{ObjectId} endpoint. | [optional]
**size** | **int** | The size of the associated file in bytes. Note- The Size element is only returned when using /Associations/{ObjectId} endpoint. | [optional]
**file_id** | **str** | The unique identifier of the file | [optional]
**object_id** | **str** | The identifier of the object that the file is being associated with (e.g. InvoiceID, BankTransactionID, ContactID) | [optional]
**object_group** | [**ObjectGroup**](ObjectGroup.md) | | [optional]
Expand Down
93 changes: 92 additions & 1 deletion xero_python/file/models/association.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,30 +30,52 @@ class Association(BaseModel):
and the value is json key in definition.
"""
openapi_types = {
"send_with_object": "bool",
"name": "str",
"size": "int",
"file_id": "str",
"object_id": "str",
"object_group": "ObjectGroup",
"object_type": "ObjectType",
}

attribute_map = {
"send_with_object": "SendWithObject",
"name": "Name",
"size": "Size",
"file_id": "FileId",
"object_id": "ObjectId",
"object_group": "ObjectGroup",
"object_type": "ObjectType",
}

def __init__(
self, file_id=None, object_id=None, object_group=None, object_type=None
self,
send_with_object=None,
name=None,
size=None,
file_id=None,
object_id=None,
object_group=None,
object_type=None,
): # noqa: E501
"""Association - a model defined in OpenAPI""" # noqa: E501

self._send_with_object = None
self._name = None
self._size = None
self._file_id = None
self._object_id = None
self._object_group = None
self._object_type = None
self.discriminator = None

if send_with_object is not None:
self.send_with_object = send_with_object
if name is not None:
self.name = name
if size is not None:
self.size = size
if file_id is not None:
self.file_id = file_id
if object_id is not None:
Expand All @@ -63,6 +85,75 @@ def __init__(
if object_type is not None:
self.object_type = object_type

@property
def send_with_object(self):
"""Gets the send_with_object of this Association. # noqa: E501

Boolean flag to determines whether the file is sent with the document it is attached to on client facing communications. Note- The SendWithObject element is only returned when using /Associations/{ObjectId} endpoint. # noqa: E501

:return: The send_with_object of this Association. # noqa: E501
:rtype: bool
"""
return self._send_with_object

@send_with_object.setter
def send_with_object(self, send_with_object):
"""Sets the send_with_object of this Association.

Boolean flag to determines whether the file is sent with the document it is attached to on client facing communications. Note- The SendWithObject element is only returned when using /Associations/{ObjectId} endpoint. # noqa: E501

:param send_with_object: The send_with_object of this Association. # noqa: E501
:type: bool
"""

self._send_with_object = send_with_object

@property
def name(self):
"""Gets the name of this Association. # noqa: E501

The name of the associated file. Note- The Name element is only returned when using /Associations/{ObjectId} endpoint. # noqa: E501

:return: The name of this Association. # noqa: E501
:rtype: str
"""
return self._name

@name.setter
def name(self, name):
"""Sets the name of this Association.

The name of the associated file. Note- The Name element is only returned when using /Associations/{ObjectId} endpoint. # noqa: E501

:param name: The name of this Association. # noqa: E501
:type: str
"""

self._name = name

@property
def size(self):
"""Gets the size of this Association. # noqa: E501

The size of the associated file in bytes. Note- The Size element is only returned when using /Associations/{ObjectId} endpoint. # noqa: E501

:return: The size of this Association. # noqa: E501
:rtype: int
"""
return self._size

@size.setter
def size(self, size):
"""Sets the size of this Association.

The size of the associated file in bytes. Note- The Size element is only returned when using /Associations/{ObjectId} endpoint. # noqa: E501

:param size: The size of this Association. # noqa: E501
:type: int
"""

self._size = size

@property
def file_id(self):
"""Gets the file_id of this Association. # noqa: E501
Expand Down
2 changes: 1 addition & 1 deletion xero_python/finance/api/finance_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"""

"""
OpenAPI spec version: 3.0.3
OpenAPI spec version: 4.0.0
"""

import importlib
Expand Down
2 changes: 1 addition & 1 deletion xero_python/identity/api/identity_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"""

"""
OpenAPI spec version: 3.0.3
OpenAPI spec version: 4.0.0
"""

import importlib
Expand Down
2 changes: 1 addition & 1 deletion xero_python/payrollau/api/payroll_au_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"""

"""
OpenAPI spec version: 3.0.3
OpenAPI spec version: 4.0.0
"""

import importlib
Expand Down
2 changes: 1 addition & 1 deletion xero_python/payrollnz/api/payroll_nz_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"""

"""
OpenAPI spec version: 3.0.3
OpenAPI spec version: 4.0.0
"""

import importlib
Expand Down
2 changes: 1 addition & 1 deletion xero_python/payrolluk/api/payroll_uk_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"""

"""
OpenAPI spec version: 3.0.3
OpenAPI spec version: 4.0.0
"""

import importlib
Expand Down
2 changes: 1 addition & 1 deletion xero_python/project/api/project_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"""

"""
OpenAPI spec version: 3.0.3
OpenAPI spec version: 4.0.0
"""

import importlib
Expand Down

0 comments on commit 6aaad9d

Please sign in to comment.