Skip to content

Commit

Permalink
Merge pull request #144 from XeroAPI/OAS-6.2.0-Xero-python
Browse files Browse the repository at this point in the history
Build from OAS 6.2.0
  • Loading branch information
manishT72 authored Aug 26, 2024
2 parents 6486234 + a7e3b93 commit fb5f6e6
Show file tree
Hide file tree
Showing 25 changed files with 29 additions and 29 deletions.
6 changes: 3 additions & 3 deletions docs/v1/accounting/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -2494,7 +2494,7 @@
},
"SentToContact" : {
"type" : "boolean",
"description" : "boolean to indicate if a credit note has been sent to a contact via the Xero app (currently read only)",
"description" : "Boolean to set whether the credit note in the Xero app should be marked as “sent”. This can be set only on credit notes that have been approved",
"readOnly" : true
},
"CurrencyRate" : {
Expand Down Expand Up @@ -6216,7 +6216,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>6.1.0</li>
<li class="nav-header" data-group="Accounting"><strong>VSN: </strong>6.2.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 Expand Up @@ -41777,7 +41777,7 @@ <h2>Parameters</h2>
"schema" : {
"$ref" : "#/components/schemas/CreditNotes"
},
"example" : "{ \"CreditNotes\": [ { \"Type\": \"ACCPAYCREDIT\", \"Contact\": { \"ContactID\": \"430fa14a-f945-44d3-9f97-5df5e28441b8\" }, \"Date\": \"2019-01-05\", \"Status\": \"AUTHORISED\", \"Reference\": \"HelloWorld\", \"LineItems\": [ { \"Description\": \"Foobar\", \"Quantity\": 2, \"UnitAmount\": 20, \"AccountCode\": \"400\" } ] } ] }"
"example" : "{ \"CreditNotes\": [ { \"Type\": \"ACCPAYCREDIT\", \"Contact\": { \"ContactID\": \"430fa14a-f945-44d3-9f97-5df5e28441b8\" }, \"Date\": \"2019-01-05\", \"Status\": \"AUTHORISED\", \"Reference\": \"HelloWorld\", \"SentToContact\": true, \"LineItems\": [ { \"Description\": \"Foobar\", \"Quantity\": 2, \"UnitAmount\": 20, \"AccountCode\": \"400\" } ] } ] }"
}
},
"required" : true
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>6.1.0</li>
<li class="nav-header" data-group="AppStore"><strong>VSN: </strong>6.2.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>6.1.0</li>
<li class="nav-header" data-group="Asset"><strong>VSN: </strong>6.2.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 @@ -1170,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>6.1.0</li>
<li class="nav-header" data-group="Files"><strong>VSN: </strong>6.2.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 @@ -2737,7 +2737,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>6.1.0</li>
<li class="nav-header" data-group="Finance"><strong>VSN: </strong>6.2.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>6.1.0</li>
<li class="nav-header" data-group="PayrollAu"><strong>VSN: </strong>6.2.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 @@ -4031,7 +4031,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>6.1.0</li>
<li class="nav-header" data-group="PayrollNz"><strong>VSN: </strong>6.2.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>6.1.0</li>
<li class="nav-header" data-group="PayrollUk"><strong>VSN: </strong>6.2.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>6.1.0</li>
<li class="nav-header" data-group="Project"><strong>VSN: </strong>6.2.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="6.1.0",
version="6.2.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__ = "api@xero.com"
__version__ = "6.1.0"
__version__ = "6.2.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: 6.1.1
OpenAPI spec version: 6.2.0
"""

import importlib
Expand Down
2 changes: 1 addition & 1 deletion xero_python/accounting/docs/AccountingApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -13954,7 +13954,7 @@ api_instance = AccountingApi(api_client)

xero_tenant_id = 'YOUR_XERO_TENANT_ID' # str | Xero identifier for Tenant
credit_note_id = '00000000-0000-0000-0000-000000000000' # str | Unique identifier for a Credit Note
credit_notes = { "CreditNotes": [ { "Type": "ACCPAYCREDIT", "Contact": { "ContactID": "430fa14a-f945-44d3-9f97-5df5e28441b8" }, "Date": "2019-01-05", "Status": "AUTHORISED", "Reference": "HelloWorld", "LineItems": [ { "Description": "Foobar", "Quantity": 2, "UnitAmount": 20, "AccountCode": "400" } ] } ] } # CreditNotes | an array of Credit Notes containing credit note details to update
credit_notes = { "CreditNotes": [ { "Type": "ACCPAYCREDIT", "Contact": { "ContactID": "430fa14a-f945-44d3-9f97-5df5e28441b8" }, "Date": "2019-01-05", "Status": "AUTHORISED", "Reference": "HelloWorld", "SentToContact": true, "LineItems": [ { "Description": "Foobar", "Quantity": 2, "UnitAmount": 20, "AccountCode": "400" } ] } ] } # CreditNotes | an array of Credit Notes containing credit note details to update
unitdp = 4 # int | e.g. unitdp=4 – (Unit Decimal Places) You can opt in to use four decimal places for unit amounts (optional)
idempotency_key = 'KEY_VALUE' # str | This allows you to safely retry requests without the risk of duplicate processing. 128 character max. (optional)
try:
Expand Down
2 changes: 1 addition & 1 deletion xero_python/accounting/docs/CreditNote.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ Name | Type | Description | Notes
**credit_note_id** | **str** | Xero generated unique identifier | [optional]
**credit_note_number** | **str** | ACCRECCREDIT – Unique alpha numeric code identifying credit note (when missing will auto-generate from your Organisation Invoice Settings) | [optional]
**reference** | **str** | ACCRECCREDIT only – additional reference number | [optional]
**sent_to_contact** | **bool** | boolean to indicate if a credit note has been sent to a contact via the Xero app (currently read only) | [optional]
**sent_to_contact** | **bool** | Boolean to set whether the credit note in the Xero app should be marked as “sent”. This can be set only on credit notes that have been approved | [optional]
**currency_rate** | **float** | The currency rate for a multicurrency invoice. If no rate is specified, the XE.com day rate is used | [optional]
**remaining_credit** | **float** | The remaining credit balance on the Credit Note | [optional]
**allocations** | [**list[Allocation]**](Allocation.md) | See Allocations | [optional]
Expand Down
4 changes: 2 additions & 2 deletions xero_python/accounting/models/credit_note.py
Original file line number Diff line number Diff line change
Expand Up @@ -661,7 +661,7 @@ def reference(self, reference):
def sent_to_contact(self):
"""Gets the sent_to_contact of this CreditNote. # noqa: E501

boolean to indicate if a credit note has been sent to a contact via the Xero app (currently read only) # noqa: E501
Boolean to set whether the credit note in the Xero app should be marked as “sent”. This can be set only on credit notes that have been approved # noqa: E501

:return: The sent_to_contact of this CreditNote. # noqa: E501
:rtype: bool
Expand All @@ -672,7 +672,7 @@ def sent_to_contact(self):
def sent_to_contact(self, sent_to_contact):
"""Sets the sent_to_contact of this CreditNote.

boolean to indicate if a credit note has been sent to a contact via the Xero app (currently read only) # noqa: E501
Boolean to set whether the credit note in the Xero app should be marked as “sent”. This can be set only on credit notes that have been approved # noqa: E501

:param sent_to_contact: The sent_to_contact of this CreditNote. # noqa: E501
:type: bool
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: 6.1.1
OpenAPI spec version: 6.2.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: 6.1.1
OpenAPI spec version: 6.2.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: 6.1.1
- Package version: 6.1.0
- API version: 6.2.0
- Package version: 6.2.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: 6.1.1
OpenAPI spec version: 6.2.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: 6.1.1
OpenAPI spec version: 6.2.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: 6.1.1
OpenAPI spec version: 6.2.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: 6.1.1
OpenAPI spec version: 6.2.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: 6.1.1
OpenAPI spec version: 6.2.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: 6.1.1
OpenAPI spec version: 6.2.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: 6.1.1
OpenAPI spec version: 6.2.0
"""

import importlib
Expand Down

0 comments on commit fb5f6e6

Please sign in to comment.