Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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.20.0</li>
<li class="nav-header" data-group="Accounting"><strong>VSN: </strong>1.21.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.20.0</li>
<li class="nav-header" data-group="AppStore"><strong>VSN: </strong>1.21.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.20.0</li>
<li class="nav-header" data-group="Asset"><strong>VSN: </strong>1.21.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.20.0</li>
<li class="nav-header" data-group="Files"><strong>VSN: </strong>1.21.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.20.0</li>
<li class="nav-header" data-group="Finance"><strong>VSN: </strong>1.21.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.20.0</li>
<li class="nav-header" data-group="PayrollAu"><strong>VSN: </strong>1.21.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.20.0</li>
<li class="nav-header" data-group="PayrollNz"><strong>VSN: </strong>1.21.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.20.0</li>
<li class="nav-header" data-group="PayrollUk"><strong>VSN: </strong>1.21.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.20.0</li>
<li class="nav-header" data-group="Project"><strong>VSN: </strong>1.21.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.20.0",
version="1.21.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__ = "1.20.0"
__version__ = "1.21.0"
14 changes: 7 additions & 7 deletions 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.31.0
OpenAPI spec version: 2.33.1
"""

import importlib
Expand Down Expand Up @@ -968,7 +968,7 @@ def create_branding_theme_payment_services(
self,
xero_tenant_id,
branding_theme_id,
payment_service,
payment_services,
_return_http_data_only=True,
_preload_content=True,
_request_timeout=None,
Expand All @@ -977,7 +977,7 @@ def create_branding_theme_payment_services(
OAuth2 scope: paymentservices
:param str xero_tenant_id: Xero identifier for Tenant (required)
:param str branding_theme_id: Unique identifier for a Branding Theme (required)
:param PaymentService payment_service: PaymentService object in body of request (required)
:param PaymentServices payment_services: PaymentServices array with PaymentService object in body of request (required)
:param bool _return_http_data_only: return received data only
:param bool _preload_content: load received data in models
:param bool _request_timeout: maximum wait time for response
Expand All @@ -996,10 +996,10 @@ def create_branding_theme_payment_services(
"Missing the required parameter `branding_theme_id` "
"when calling `create_branding_theme_payment_services`"
)
# verify the required parameter 'payment_service' is set
if payment_service is None:
# verify the required parameter 'payment_services' is set
if payment_services is None:
raise ValueError(
"Missing the required parameter `payment_service` "
"Missing the required parameter `payment_services` "
"when calling `create_branding_theme_payment_services`"
)

Expand All @@ -1017,7 +1017,7 @@ def create_branding_theme_payment_services(
local_var_files = {}
form_params = []

body_params = payment_service
body_params = payment_services
# HTTP header `Accept`
header_params["Accept"] = self.api_client.select_header_accept(
["application/json"]
Expand Down
8 changes: 4 additions & 4 deletions xero_python/accounting/docs/AccountingApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -893,7 +893,7 @@ Name | Type | Description | Notes
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)

# **create_branding_theme_payment_services**
> PaymentServices create_branding_theme_payment_services(xero_tenant_id, branding_theme_id, payment_service)
> PaymentServices create_branding_theme_payment_services(xero_tenant_id, branding_theme_id, payment_services)

Creates a new custom payment service for a specific branding theme

Expand Down Expand Up @@ -925,10 +925,10 @@ api_instance = AccountingApi(api_client)

xero_tenant_id = 'YOUR_XERO_TENANT_ID' # str | Xero identifier for Tenant
branding_theme_id = '00000000-0000-0000-0000-000000000000' # str | Unique identifier for a Branding Theme
payment_service = { "PaymentServiceID": "00000000-0000-0000-0000-000000000000", "PaymentServiceName": "Payments Service", "PaymentServiceUrl": "https://www.paymentservice.com/", "PayNowText": "Pay Now" } # PaymentService | PaymentService object in body of request
payment_services = { "PaymentServices": [ { "PaymentServiceID": "54b3b4f6-0443-4fba-bcd1-61ec0c35ca55", "PaymentServiceName": "PayUpNow", "PaymentServiceUrl": "https://www.payupnow.com/", "PaymentServiceType": "Custom", "PayNowText": "Time To Pay" } ] } # PaymentServices | PaymentServices array with PaymentService object in body of request
try:
# Creates a new custom payment service for a specific branding theme
api_response = api_instance.create_branding_theme_payment_services(xero_tenant_id, branding_theme_id, payment_service)
api_response = api_instance.create_branding_theme_payment_services(xero_tenant_id, branding_theme_id, payment_services)
pprint(api_response)
except ApiException as e:
print("Exception when calling AccountingApi->create_branding_theme_payment_services: %s\n" % e)
Expand All @@ -940,7 +940,7 @@ Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**xero_tenant_id** | **str**| Xero identifier for Tenant |
**branding_theme_id** | [**str**](.md)| Unique identifier for a Branding Theme |
**payment_service** | [**PaymentService**](PaymentService.md)| PaymentService object in body of request |
**payment_services** | [**PaymentServices**](PaymentServices.md)| PaymentServices array with PaymentService object in body of request |

### Return type

Expand Down
4 changes: 2 additions & 2 deletions xero_python/accounting/docs/BatchPayment.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@ Name | Type | Description | Notes
**payments** | [**list[Payment]**](Payment.md) | An array of payments | [optional]
**type** | **str** | PAYBATCH for bill payments or RECBATCH for sales invoice payments (read-only) | [optional]
**status** | **str** | AUTHORISED or DELETED (read-only). New batch payments will have a status of AUTHORISED. It is not possible to delete batch payments via the API. | [optional]
**total_amount** | **str** | The total of the payments that make up the batch (read-only) | [optional]
**total_amount** | **float** | The total of the payments that make up the batch (read-only) | [optional]
**updated_date_utc** | **datetime** | UTC timestamp of last update to the payment | [optional]
**is_reconciled** | **str** | Booelan that tells you if the batch payment has been reconciled (read-only) | [optional]
**is_reconciled** | **bool** | Booelan that tells you if the batch payment has been reconciled (read-only) | [optional]
**validation_errors** | [**list[ValidationError]**](ValidationError.md) | Displays array of validation error messages from the API | [optional]

[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
Expand Down
1 change: 1 addition & 0 deletions xero_python/accounting/docs/Payment.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ Name | Type | Description | Notes
**overpayment** | [**Overpayment**](Overpayment.md) | | [optional]
**invoice_number** | **str** | Number of invoice or credit note you are applying payment to e.g.INV-4003 | [optional]
**credit_note_number** | **str** | Number of invoice or credit note you are applying payment to e.g. INV-4003 | [optional]
**batch_payment** | [**BatchPayment**](BatchPayment.md) | | [optional]
**account** | [**Account**](Account.md) | | [optional]
**code** | **str** | Code of account you are using to make the payment e.g. 001 (note- not all accounts have a code value) | [optional]
**date** | **date** | Date the payment is being made (YYYY-MM-DD) e.g. 2009-09-06 | [optional]
Expand Down
12 changes: 6 additions & 6 deletions xero_python/accounting/models/batch_payment.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,9 @@ class BatchPayment(BaseModel):
"payments": "list[Payment]",
"type": "str",
"status": "str",
"total_amount": "str",
"total_amount": "float",
"updated_date_utc": "datetime[ms-format]",
"is_reconciled": "str",
"is_reconciled": "bool",
"validation_errors": "list[ValidationError]",
}

Expand Down Expand Up @@ -486,7 +486,7 @@ def total_amount(self):
The total of the payments that make up the batch (read-only) # noqa: E501

:return: The total_amount of this BatchPayment. # noqa: E501
:rtype: str
:rtype: float
"""
return self._total_amount

Expand All @@ -497,7 +497,7 @@ def total_amount(self, total_amount):
The total of the payments that make up the batch (read-only) # noqa: E501

:param total_amount: The total_amount of this BatchPayment. # noqa: E501
:type: str
:type: float
"""

self._total_amount = total_amount
Expand Down Expand Up @@ -532,7 +532,7 @@ def is_reconciled(self):
Booelan that tells you if the batch payment has been reconciled (read-only) # noqa: E501

:return: The is_reconciled of this BatchPayment. # noqa: E501
:rtype: str
:rtype: bool
"""
return self._is_reconciled

Expand All @@ -543,7 +543,7 @@ def is_reconciled(self, is_reconciled):
Booelan that tells you if the batch payment has been reconciled (read-only) # noqa: E501

:param is_reconciled: The is_reconciled of this BatchPayment. # noqa: E501
:type: str
:type: bool
"""

self._is_reconciled = is_reconciled
Expand Down
27 changes: 27 additions & 0 deletions xero_python/accounting/models/payment.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ class Payment(BaseModel):
"overpayment": "Overpayment",
"invoice_number": "str",
"credit_note_number": "str",
"batch_payment": "BatchPayment",
"account": "Account",
"code": "str",
"date": "date[ms-format]",
Expand Down Expand Up @@ -65,6 +66,7 @@ class Payment(BaseModel):
"overpayment": "Overpayment",
"invoice_number": "InvoiceNumber",
"credit_note_number": "CreditNoteNumber",
"batch_payment": "BatchPayment",
"account": "Account",
"code": "Code",
"date": "Date",
Expand Down Expand Up @@ -95,6 +97,7 @@ def __init__(
overpayment=None,
invoice_number=None,
credit_note_number=None,
batch_payment=None,
account=None,
code=None,
date=None,
Expand Down Expand Up @@ -124,6 +127,7 @@ def __init__(
self._overpayment = None
self._invoice_number = None
self._credit_note_number = None
self._batch_payment = None
self._account = None
self._code = None
self._date = None
Expand Down Expand Up @@ -158,6 +162,8 @@ def __init__(
self.invoice_number = invoice_number
if credit_note_number is not None:
self.credit_note_number = credit_note_number
if batch_payment is not None:
self.batch_payment = batch_payment
if account is not None:
self.account = account
if code is not None:
Expand Down Expand Up @@ -329,6 +335,27 @@ def credit_note_number(self, credit_note_number):

self._credit_note_number = credit_note_number

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


:return: The batch_payment of this Payment. # noqa: E501
:rtype: BatchPayment
"""
return self._batch_payment

@batch_payment.setter
def batch_payment(self, batch_payment):
"""Sets the batch_payment of this Payment.


:param batch_payment: The batch_payment of this Payment. # noqa: E501
:type: BatchPayment
"""

self._batch_payment = batch_payment

@property
def account(self):
"""Gets the account of this Payment. # noqa: E501
Expand Down
3 changes: 3 additions & 0 deletions xero_python/accounting/models/tax_rate.py
Original file line number Diff line number Diff line change
Expand Up @@ -332,6 +332,9 @@ def report_tax_type(self, report_tax_type):
"GOODSIMPORT",
"NONEINPUT",
"NOTREPORTED",
"SROVRRS",
"SROVRLVG",
"SRLVG",
"None",
] # noqa: E501

Expand Down
15 changes: 15 additions & 0 deletions xero_python/accounting/models/tax_type.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,3 +91,18 @@ class TaxType(Enum):
TXRCREINPUT = "TXRCREINPUT"
TXRCESSINPUT = "TXRCESSINPUT"
TXRCTSINPUT = "TXRCTSINPUT"
OUTPUTY23 = "OUTPUTY23"
DSOUTPUTY23 = "DSOUTPUTY23"
INPUTY23 = "INPUTY23"
IMINPUT2Y23 = "IMINPUT2Y23"
IGDSINPUT2Y23 = "IGDSINPUT2Y23"
TXPETINPUTY23 = "TXPETINPUTY23"
TXESSINPUTY23 = "TXESSINPUTY23"
TXN33INPUTY23 = "TXN33INPUTY23"
TXREINPUTY23 = "TXREINPUTY23"
TXCAY23 = "TXCAY23"
BADDEBTRELIEFY23 = "BADDEBTRELIEFY23"
IGDSINPUT3Y23 = "IGDSINPUT3Y23"
SROVRRSY23 = "SROVRRSY23"
SROVRLVGY23 = "SROVRLVGY23"
SRLVGY23 = "SRLVGY23"
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.31.0
OpenAPI spec version: 2.33.1
"""

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.31.0
OpenAPI spec version: 2.33.1
"""

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.31.0
- Package version: 1.20.0
- API version: 2.33.1
- Package version: 1.21.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.31.0
OpenAPI spec version: 2.33.1
"""

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.31.0
OpenAPI spec version: 2.33.1
"""

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: 2.31.0
OpenAPI spec version: 2.33.1
"""

import importlib
Expand Down
Loading