Skip to content

Commit

Permalink
Merge pull request #112 from XeroAPI/xero-python-1.24.0
Browse files Browse the repository at this point in the history
generates xero-python 1.24.0 from OAS 2.37.0
  • Loading branch information
rdemarco-xero authored May 9, 2023
2 parents a94a204 + a304fb1 commit 8b8bc88
Show file tree
Hide file tree
Showing 29 changed files with 49 additions and 43 deletions.
2 changes: 1 addition & 1 deletion bin/post-generation-hook.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

SCRIPT_DIR=$(dirname "$0")
PROJECT_ROOT=$(realpath "${SCRIPT_DIR}/..") # expects script in bin/
PATH=${PROJECT_ROOT}/venv/bin:$PATH # expects python environment in venv/
PATH=${PROJECT_ROOT}/venv/Scripts:$PATH # expects python environment in venv/
command -v black >/dev/null 2>&1 || { echo >&2 "'black' required, but not found. Please read 'Local installation' section in ${PROJECT_ROOT}/CONTRIBUTING.md file. Aborting."; exit 1; }
command -v flake8 >/dev/null 2>&1 || { echo >&2 "'flake8' required, but not found. Please read 'Local installation' section in ${PROJECT_ROOT}/CONTRIBUTING.md file. Aborting."; exit 1; }
cd "${PROJECT_ROOT}" && black xero_python && flake8 xero_python
Expand Down
2 changes: 1 addition & 1 deletion docs/v1/accounting/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -6008,7 +6008,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>1.23.0</li>
<li class="nav-header" data-group="Accounting"><strong>VSN: </strong>1.24.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 @@ -1133,7 +1133,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>1.23.0</li>
<li class="nav-header" data-group="AppStore"><strong>VSN: </strong>1.24.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>1.23.0</li>
<li class="nav-header" data-group="Asset"><strong>VSN: </strong>1.24.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
2 changes: 1 addition & 1 deletion docs/v1/files/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -1155,7 +1155,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>1.23.0</li>
<li class="nav-header" data-group="Files"><strong>VSN: </strong>1.24.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 @@ -2706,7 +2706,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>1.23.0</li>
<li class="nav-header" data-group="Finance"><strong>VSN: </strong>1.24.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 @@ -3254,7 +3254,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>1.23.0</li>
<li class="nav-header" data-group="PayrollAu"><strong>VSN: </strong>1.24.0</li>
<li class="nav-header" data-group="PayrollAu"><a href="#api-PayrollAu">Methods</a></li>
<li data-group="PayrollAu" data-name="createEmployee" class="">
<a href="#api-PayrollAu-createEmployee">createEmployee</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 @@ -3838,7 +3838,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>1.23.0</li>
<li class="nav-header" data-group="PayrollNz"><strong>VSN: </strong>1.24.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>1.23.0</li>
<li class="nav-header" data-group="PayrollUk"><strong>VSN: </strong>1.24.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 @@ -1468,7 +1468,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>1.23.0</li>
<li class="nav-header" data-group="Project"><strong>VSN: </strong>1.24.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="1.23.0",
version="1.24.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__ = "1.23.0"
__version__ = "1.24.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: 2.36.0
OpenAPI spec version: 2.37.0
"""

import importlib
Expand Down
17 changes: 10 additions & 7 deletions xero_python/accounting/models/currency_code.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ class CurrencyCode(Enum):
CAD = "CAD"
CDF = "CDF"
CHF = "CHF"
CLF = "CLF"
CLP = "CLP"
CNY = "CNY"
COP = "COP"
Expand All @@ -65,6 +66,7 @@ class CurrencyCode(Enum):
DKK = "DKK"
DOP = "DOP"
DZD = "DZD"
EEK = "EEK"
EGP = "EGP"
ERN = "ERN"
ETB = "ETB"
Expand All @@ -73,7 +75,6 @@ class CurrencyCode(Enum):
FKP = "FKP"
GBP = "GBP"
GEL = "GEL"
GGP = "GGP"
GHS = "GHS"
GIP = "GIP"
GMD = "GMD"
Expand All @@ -87,12 +88,10 @@ class CurrencyCode(Enum):
HUF = "HUF"
IDR = "IDR"
ILS = "ILS"
IMP = "IMP"
INR = "INR"
IQD = "IQD"
IRR = "IRR"
ISK = "ISK"
JEP = "JEP"
JMD = "JMD"
JOD = "JOD"
JPY = "JPY"
Expand All @@ -111,6 +110,7 @@ class CurrencyCode(Enum):
LRD = "LRD"
LSL = "LSL"
LTL = "LTL"
LVL = "LVL"
LYD = "LYD"
MAD = "MAD"
MDL = "MDL"
Expand All @@ -119,11 +119,13 @@ class CurrencyCode(Enum):
MMK = "MMK"
MNT = "MNT"
MOP = "MOP"
MRO = "MRO"
MRU = "MRU"
MUR = "MUR"
MVR = "MVR"
MWK = "MWK"
MXN = "MXN"
MXV = "MXV"
MYR = "MYR"
MZN = "MZN"
NAD = "NAD"
Expand Down Expand Up @@ -152,11 +154,13 @@ class CurrencyCode(Enum):
SEK = "SEK"
SGD = "SGD"
SHP = "SHP"
SKK = "SKK"
SLE = "SLE"
SLL = "SLL"
SOS = "SOS"
SPL = "SPL"
SRD = "SRD"
STN = "STN"
STN = "STD"
STD = "STN"
SVC = "SVC"
SYP = "SYP"
SZL = "SZL"
Expand All @@ -167,7 +171,6 @@ class CurrencyCode(Enum):
TOP = "TOP"
TRY_LIRA = "TRY"
TTD = "TTD"
TVD = "TVD"
TWD = "TWD"
TZS = "TZS"
UAH = "UAH"
Expand All @@ -176,12 +179,12 @@ class CurrencyCode(Enum):
UYU = "UYU"
UZS = "UZS"
VEF = "VEF"
VES = "VES"
VND = "VND"
VUV = "VUV"
WST = "WST"
XAF = "XAF"
XCD = "XCD"
XDR = "XDR"
XOF = "XOF"
XPF = "XPF"
YER = "YER"
Expand Down
8 changes: 4 additions & 4 deletions xero_python/accounting/models/tax_rate.py
Original file line number Diff line number Diff line change
Expand Up @@ -321,10 +321,10 @@ def report_tax_type(self, report_tax_type):
"IGDSINPUT3",
"SROVR",
"TOURISTREFUND",
"TXRCN33INPUT",
"TXRCREINPUT",
"TXRCESSINPUT",
"TXRCTSINPUT",
"TXRCN33",
"TXRCRE",
"TXRCESS",
"TXRCTS",
"CAPEXINPUT",
"UNDEFINED",
"CAPEXOUTPUT",
Expand Down
12 changes: 8 additions & 4 deletions xero_python/accounting/models/tax_type.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,10 +87,10 @@ class TaxType(Enum):
IGDSINPUT3 = "IGDSINPUT3"
SROVR = "SROVR"
TOURISTREFUND = "TOURISTREFUND"
TXRCN33INPUT = "TXRCN33INPUT"
TXRCREINPUT = "TXRCREINPUT"
TXRCESSINPUT = "TXRCESSINPUT"
TXRCTSINPUT = "TXRCTSINPUT"
TXRCN33 = "TXRCN33"
TXRCRE = "TXRCRE"
TXRCESS = "TXRCESS"
TXRCTS = "TXRCTS"
OUTPUTY23 = "OUTPUTY23"
DSOUTPUTY23 = "DSOUTPUTY23"
INPUTY23 = "INPUTY23"
Expand All @@ -106,3 +106,7 @@ class TaxType(Enum):
SROVRRSY23 = "SROVRRSY23"
SROVRLVGY23 = "SROVRLVGY23"
SRLVGY23 = "SRLVGY23"
TXRCN33Y23 = "TXRCN33Y23"
TXRCREY23 = "TXRCREY23"
TXRCESSY23 = "TXRCESSY23"
TXRCTSY23 = "TXRCTSY23"
1 change: 0 additions & 1 deletion xero_python/api_client/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,6 @@ def __call_api(
_preload_content=True,
_request_timeout=None,
):

config = self.configuration

# header parameters
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: 2.36.0
OpenAPI spec version: 2.37.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: 2.36.0
OpenAPI spec version: 2.37.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: 2.36.0
- Package version: 1.23.0
- API version: 2.37.0
- Package version: 1.24.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: 2.36.0
OpenAPI spec version: 2.37.0
"""

import importlib
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: 2.36.0
OpenAPI spec version: 2.37.0
"""

import importlib
Expand Down
2 changes: 1 addition & 1 deletion xero_python/finance/docs/StatementResponse.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ Name | Type | Description | Notes
**start_date** | **date** | Start date of statement | [optional]
**end_date** | **date** | End date of statement | [optional]
**imported_date_time_utc** | **datetime** | Utc date time of when the statement was imported in Xero | [optional]
**import_source** | **str** | Indicates the source of the statement data. Either imported from 1) direct bank feed OR 2) manual customer entry or upload. Manual import sources are STMTIMPORTSRC/MANUAL, STMTIMPORTSRC/CSV, STMTIMPORTSRC/OFX, Ofx or STMTIMPORTSRC/QIF. All other import sources are direct and, depending on the direct solution, may contain the name of the financial institution. | [optional]
**import_source** | **str** | Identifies where the statement data in Xero was sourced, 1) direct bank feed, automatically loaded from the bank (eg STMTIMPORTSRC/CBAFEED); 2) indirect bank feed, automatically loaded from a 3rd party provider (eg STMTIMPORTSRC/YODLEE); 3) manually uploaded bank feed (eg STMTIMPORTSRC/CSV) or 4) manually entered statement data (STMTIMPORTSRC/MANUAL). | [optional]
**start_balance** | **float** | Opening balance sourced from imported bank statements (if supplied). Note, for manually uploaded statements, this balance is also manual and usually not supplied. Where not supplied, the value will be 0. | [optional]
**end_balance** | **float** | Closing balance sourced from imported bank statements (if supplied). Note, for manually uploaded statements, this balance is also manual and usually not supplied. Where not supplied, the value will be 0. | [optional]
**indicative_start_balance** | **float** | Opening statement balance calculated in Xero (&#x3D; bank account conversion balance plus sum of imported bank statement lines). Note: If indicative statement balance doesn&#39;t match imported statement balance for the same date, either the conversion (opening at inception) balance in Xero is wrong or there&#39;s an error in the bank statement lines in Xero. Ref: https://central.xero.com/s/article/Compare-the-statement-balance-in-Xero-to-your-actual-bank-balance?userregion&#x3D;true | [optional]
Expand Down
4 changes: 2 additions & 2 deletions xero_python/finance/models/statement_response.py
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ def imported_date_time_utc(self, imported_date_time_utc):
def import_source(self):
"""Gets the import_source of this StatementResponse. # noqa: E501

Indicates the source of the statement data. Either imported from 1) direct bank feed OR 2) manual customer entry or upload. Manual import sources are STMTIMPORTSRC/MANUAL, STMTIMPORTSRC/CSV, STMTIMPORTSRC/OFX, Ofx or STMTIMPORTSRC/QIF. All other import sources are direct and, depending on the direct solution, may contain the name of the financial institution. # noqa: E501
Identifies where the statement data in Xero was sourced, 1) direct bank feed, automatically loaded from the bank (eg STMTIMPORTSRC/CBAFEED); 2) indirect bank feed, automatically loaded from a 3rd party provider (eg STMTIMPORTSRC/YODLEE); 3) manually uploaded bank feed (eg STMTIMPORTSRC/CSV) or 4) manually entered statement data (STMTIMPORTSRC/MANUAL). # noqa: E501

:return: The import_source of this StatementResponse. # noqa: E501
:rtype: str
Expand All @@ -210,7 +210,7 @@ def import_source(self):
def import_source(self, import_source):
"""Sets the import_source of this StatementResponse.

Indicates the source of the statement data. Either imported from 1) direct bank feed OR 2) manual customer entry or upload. Manual import sources are STMTIMPORTSRC/MANUAL, STMTIMPORTSRC/CSV, STMTIMPORTSRC/OFX, Ofx or STMTIMPORTSRC/QIF. All other import sources are direct and, depending on the direct solution, may contain the name of the financial institution. # noqa: E501
Identifies where the statement data in Xero was sourced, 1) direct bank feed, automatically loaded from the bank (eg STMTIMPORTSRC/CBAFEED); 2) indirect bank feed, automatically loaded from a 3rd party provider (eg STMTIMPORTSRC/YODLEE); 3) manually uploaded bank feed (eg STMTIMPORTSRC/CSV) or 4) manually entered statement data (STMTIMPORTSRC/MANUAL). # noqa: E501

:param import_source: The import_source of this StatementResponse. # noqa: E501
:type: str
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: 2.36.0
OpenAPI spec version: 2.37.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: 2.36.0
OpenAPI spec version: 2.37.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: 2.36.0
OpenAPI spec version: 2.37.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: 2.36.0
OpenAPI spec version: 2.37.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: 2.36.0
OpenAPI spec version: 2.37.0
"""

import importlib
Expand Down

0 comments on commit 8b8bc88

Please sign in to comment.