Skip to content

Commit

Permalink
Merge pull request #85 from XeroAPI/xero-python-1.13.1
Browse files Browse the repository at this point in the history
generates xero-python 1.13.1 from OAS 2.19.3
  • Loading branch information
RettBehrens authored Mar 16, 2022
2 parents 66856a7 + c9b92d8 commit e5c30b6
Show file tree
Hide file tree
Showing 23 changed files with 43 additions and 41 deletions.
6 changes: 3 additions & 3 deletions docs/v1/accounting/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -3931,7 +3931,7 @@
"OrganisationType" : {
"type" : "string",
"description" : "Organisation Type",
"enum" : [ "ACCOUNTING_PRACTICE", "COMPANY", "CHARITY", "CLUB_OR_SOCIETY", "LOOK_THROUGH_COMPANY", "NOT_FOR_PROFIT", "PARTNERSHIP", "S_CORPORATION", "SELF_MANAGED_SUPERANNUATION_FUND", "SOLE_TRADER", "SUPERANNUATION_FUND", "TRUST" ]
"enum" : [ "ACCOUNTING_PRACTICE", "COMPANY", "CHARITY", "CLUB_OR_SOCIETY", "INDIVIDUAL", "LOOK_THROUGH_COMPANY", "NOT_FOR_PROFIT", "PARTNERSHIP", "S_CORPORATION", "SELF_MANAGED_SUPERANNUATION_FUND", "SOLE_TRADER", "SUPERANNUATION_FUND", "TRUST" ]
},
"BaseCurrency" : {
"$ref" : "#/components/schemas/CurrencyCode"
Expand Down Expand Up @@ -4008,7 +4008,7 @@
"OrganisationEntityType" : {
"type" : "string",
"description" : "Organisation Entity Type",
"enum" : [ "ACCOUNTING_PRACTICE", "COMPANY", "CHARITY", "CLUB_OR_SOCIETY", "LOOK_THROUGH_COMPANY", "NOT_FOR_PROFIT", "PARTNERSHIP", "S_CORPORATION", "SELF_MANAGED_SUPERANNUATION_FUND", "SOLE_TRADER", "SUPERANNUATION_FUND", "TRUST" ]
"enum" : [ "ACCOUNTING_PRACTICE", "COMPANY", "CHARITY", "CLUB_OR_SOCIETY", "INDIVIDUAL", "LOOK_THROUGH_COMPANY", "NOT_FOR_PROFIT", "PARTNERSHIP", "S_CORPORATION", "SELF_MANAGED_SUPERANNUATION_FUND", "SOLE_TRADER", "SUPERANNUATION_FUND", "TRUST" ]
},
"ShortCode" : {
"type" : "string",
Expand Down Expand Up @@ -6000,7 +6000,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.13.0</li>
<li class="nav-header" data-group="Accounting"><strong>VSN: </strong>1.13.1</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 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.13.0",
version="1.13.1",
)
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.13.0"
__version__ = "1.13.1"
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.19.1
OpenAPI spec version: 2.19.3
"""

import importlib
Expand Down
2 changes: 2 additions & 0 deletions xero_python/accounting/models/organisation.py
Original file line number Diff line number Diff line change
Expand Up @@ -425,6 +425,7 @@ def organisation_type(self, organisation_type):
"COMPANY",
"CHARITY",
"CLUB_OR_SOCIETY",
"INDIVIDUAL",
"LOOK_THROUGH_COMPANY",
"NOT_FOR_PROFIT",
"PARTNERSHIP",
Expand Down Expand Up @@ -901,6 +902,7 @@ def organisation_entity_type(self, organisation_entity_type):
"COMPANY",
"CHARITY",
"CLUB_OR_SOCIETY",
"INDIVIDUAL",
"LOOK_THROUGH_COMPANY",
"NOT_FOR_PROFIT",
"PARTNERSHIP",
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.19.1
OpenAPI spec version: 2.19.3
"""

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.19.1
OpenAPI spec version: 2.19.3
"""

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.19.1
- Package version: 1.13.0
- API version: 2.19.3
- Package version: 1.13.1
- 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.19.1
OpenAPI spec version: 2.19.3
"""

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.19.1
OpenAPI spec version: 2.19.3
"""

import importlib
Expand Down
2 changes: 1 addition & 1 deletion xero_python/finance/docs/BankTransactionResponse.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ Name | Type | Description | Notes
**bank_transaction_id** | **str** | Xero Identifier of transaction | [optional]
**batch_payment_id** | **str** | Xero Identifier of batch payment. Present if the transaction is part of a batch. | [optional]
**contact** | [**ContactResponse**](ContactResponse.md) | | [optional]
**date** | **datetime** | Date of transaction - YYYY-MM-DD | [optional]
**date** | **date** | Date of transaction - YYYY-MM-DD | [optional]
**amount** | **float** | Amount of transaction | [optional]
**line_items** | [**list[LineItemResponse]**](LineItemResponse.md) | The LineItems element can contain any number of individual LineItem sub-elements. Not included in summary mode | [optional]

Expand Down
2 changes: 1 addition & 1 deletion xero_python/finance/docs/PaymentResponse.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**payment_id** | **str** | Xero Identifier of payment | [optional]
**batch_payment_id** | **str** | Xero Identifier of batch payment. Present if the payment was created as part of a batch. | [optional]
**date** | **datetime** | Date the payment is being made (YYYY-MM-DD) e.g. 2009-09-06 | [optional]
**date** | **date** | Date the payment is being made (YYYY-MM-DD) e.g. 2009-09-06 | [optional]
**amount** | **float** | The amount of the payment | [optional]
**bank_amount** | **float** | The bank amount of the payment | [optional]
**currency_rate** | **float** | Exchange rate when payment is received. Only used for non base currency invoices and credit notes e.g. 0.7500 | [optional]
Expand Down
4 changes: 2 additions & 2 deletions xero_python/finance/docs/StatementLineResponse.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**statement_line_id** | **str** | Xero Identifier of statement line | [optional]
**posted_date** | **datetime** | Date of when statement line was posted | [optional]
**posted_date** | **date** | Date of when statement line was posted | [optional]
**reference** | **str** | Reference description of statement line | [optional]
**notes** | **str** | Notes description of statement line | [optional]
**cheque_no** | **str** | Cheque number of statement line | [optional]
**amount** | **float** | Amount of statement line | [optional]
**transaction_date** | **datetime** | Transaction date of statement line | [optional]
**transaction_date** | **date** | Transaction date of statement line | [optional]
**type** | **str** | Type of statement line | [optional]
**is_reconciled** | **bool** | Boolean to show if statement line is reconciled | [optional]
**is_duplicate** | **bool** | Boolean to show if statement line is duplicate | [optional]
Expand Down
4 changes: 2 additions & 2 deletions xero_python/finance/docs/StatementResponse.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**statement_id** | **str** | Xero Identifier of statement | [optional]
**start_date** | **datetime** | Start date of statement | [optional]
**end_date** | **datetime** | End date of statement | [optional]
**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** | Import source of statement (STMTIMPORTSRC/MANUAL, STMTIMPORTSRC/CSV, STMTIMPORTSRC/QIF, STMTIMPORTSRC/OFX, XeroApi) | [optional]
**statement_lines** | [**list[StatementLineResponse]**](StatementLineResponse.md) | List of statement lines | [optional]
Expand Down
6 changes: 3 additions & 3 deletions xero_python/finance/models/bank_transaction_response.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ class BankTransactionResponse(BaseModel):
"bank_transaction_id": "str",
"batch_payment_id": "str",
"contact": "ContactResponse",
"date": "datetime",
"date": "date",
"amount": "float",
"line_items": "list[LineItemResponse]",
}
Expand Down Expand Up @@ -153,7 +153,7 @@ def date(self):
Date of transaction - YYYY-MM-DD # noqa: E501
:return: The date of this BankTransactionResponse. # noqa: E501
:rtype: datetime
:rtype: date
"""
return self._date

Expand All @@ -164,7 +164,7 @@ def date(self, date):
Date of transaction - YYYY-MM-DD # noqa: E501
:param date: The date of this BankTransactionResponse. # noqa: E501
:type: datetime
:type: date
"""

self._date = date
Expand Down
6 changes: 3 additions & 3 deletions xero_python/finance/models/payment_response.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ class PaymentResponse(BaseModel):
openapi_types = {
"payment_id": "str",
"batch_payment_id": "str",
"date": "datetime",
"date": "date",
"amount": "float",
"bank_amount": "float",
"currency_rate": "float",
Expand Down Expand Up @@ -156,7 +156,7 @@ def date(self):
Date the payment is being made (YYYY-MM-DD) e.g. 2009-09-06 # noqa: E501
:return: The date of this PaymentResponse. # noqa: E501
:rtype: datetime
:rtype: date
"""
return self._date

Expand All @@ -167,7 +167,7 @@ def date(self, date):
Date the payment is being made (YYYY-MM-DD) e.g. 2009-09-06 # noqa: E501
:param date: The date of this PaymentResponse. # noqa: E501
:type: datetime
:type: date
"""

self._date = date
Expand Down
12 changes: 6 additions & 6 deletions xero_python/finance/models/statement_line_response.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,12 +31,12 @@ class StatementLineResponse(BaseModel):
"""
openapi_types = {
"statement_line_id": "str",
"posted_date": "datetime",
"posted_date": "date",
"reference": "str",
"notes": "str",
"cheque_no": "str",
"amount": "float",
"transaction_date": "datetime",
"transaction_date": "date",
"type": "str",
"is_reconciled": "bool",
"is_duplicate": "bool",
Expand Down Expand Up @@ -151,7 +151,7 @@ def posted_date(self):
Date of when statement line was posted # noqa: E501
:return: The posted_date of this StatementLineResponse. # noqa: E501
:rtype: datetime
:rtype: date
"""
return self._posted_date

Expand All @@ -162,7 +162,7 @@ def posted_date(self, posted_date):
Date of when statement line was posted # noqa: E501
:param posted_date: The posted_date of this StatementLineResponse. # noqa: E501
:type: datetime
:type: date
"""

self._posted_date = posted_date
Expand Down Expand Up @@ -266,7 +266,7 @@ def transaction_date(self):
Transaction date of statement line # noqa: E501
:return: The transaction_date of this StatementLineResponse. # noqa: E501
:rtype: datetime
:rtype: date
"""
return self._transaction_date

Expand All @@ -277,7 +277,7 @@ def transaction_date(self, transaction_date):
Transaction date of statement line # noqa: E501
:param transaction_date: The transaction_date of this StatementLineResponse. # noqa: E501
:type: datetime
:type: date
"""

self._transaction_date = transaction_date
Expand Down
12 changes: 6 additions & 6 deletions xero_python/finance/models/statement_response.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@ class StatementResponse(BaseModel):
"""
openapi_types = {
"statement_id": "str",
"start_date": "datetime",
"end_date": "datetime",
"start_date": "date",
"end_date": "date",
"imported_date_time_utc": "datetime",
"import_source": "str",
"statement_lines": "list[StatementLineResponse]",
Expand Down Expand Up @@ -109,7 +109,7 @@ def start_date(self):
Start date of statement # noqa: E501
:return: The start_date of this StatementResponse. # noqa: E501
:rtype: datetime
:rtype: date
"""
return self._start_date

Expand All @@ -120,7 +120,7 @@ def start_date(self, start_date):
Start date of statement # noqa: E501
:param start_date: The start_date of this StatementResponse. # noqa: E501
:type: datetime
:type: date
"""

self._start_date = start_date
Expand All @@ -132,7 +132,7 @@ def end_date(self):
End date of statement # noqa: E501
:return: The end_date of this StatementResponse. # noqa: E501
:rtype: datetime
:rtype: date
"""
return self._end_date

Expand All @@ -143,7 +143,7 @@ def end_date(self, end_date):
End date of statement # noqa: E501
:param end_date: The end_date of this StatementResponse. # noqa: E501
:type: datetime
:type: date
"""

self._end_date = end_date
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.19.1
OpenAPI spec version: 2.19.3
"""

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.19.1
OpenAPI spec version: 2.19.3
"""

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.19.1
OpenAPI spec version: 2.19.3
"""

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.19.1
OpenAPI spec version: 2.19.3
"""

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.19.1
OpenAPI spec version: 2.19.3
"""

import importlib
Expand Down

0 comments on commit e5c30b6

Please sign in to comment.