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
30 changes: 28 additions & 2 deletions docs/v1/accounting/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -4758,6 +4758,11 @@
"description" : "Returns Invoice number field. Reference field isn't available.",
"readOnly" : true
},
"InvoiceNumber" : {
"type" : "string",
"description" : "Returns Invoice number for prepayment receive document only.",
"readOnly" : true
},
"UpdatedDateUTC" : {
"type" : "string",
"description" : "UTC timestamp of last update to the prepayment",
Expand Down Expand Up @@ -6350,7 +6355,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>10.0.0</li>
<li class="nav-header" data-group="Accounting"><strong>VSN: </strong>11.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 Expand Up @@ -33203,9 +33208,10 @@ <h3>Usage and SDK Samples</h3>
if_modified_since = dateutil.parser.parse("2020-02-06T12:17:43.202-08:00")
where = 'Status=="AUTHORISED"'
order = 'Reference ASC'
invoice_numbers = [&quot;INV-001&quot;, &quot;INV-002&quot;]

try:
api_response = api_instance.get_prepayments(xero_tenant_id, if_modified_since, where, order, page, unitdp, pageSize)
api_response = api_instance.get_prepayments(xero_tenant_id, if_modified_since, where, order, page, unitdp, pageSize, invoice_numbers)
print(api_response)
except AccountingBadRequestException as e:
print("Exception when calling AccountingApi->getPrepayments: %s\n" % e)</code></pre>
Expand Down Expand Up @@ -33383,6 +33389,26 @@ <h2>Parameters</h2>
</div>
</div>
</td>
</tr>

<tr><td style="width:150px;">InvoiceNumbers</td>
<td>


<div id="d2e199_getPrepayments_invoiceNumbers">
<div class="json-schema-view">
<div class="primitive">
<span class="type">
array[String]
</span>

<div class="inner description marked">
Filter by a comma-separated list of InvoiceNumbers
</div>
</div>
</div>
</div>
</td>
</tr>

</table>
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 @@ -1242,7 +1242,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>10.0.0</li>
<li class="nav-header" data-group="AppStore"><strong>VSN: </strong>11.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 @@ -1420,7 +1420,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>10.0.0</li>
<li class="nav-header" data-group="Asset"><strong>VSN: </strong>11.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
2 changes: 1 addition & 1 deletion docs/v1/files/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -1171,7 +1171,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>10.0.0</li>
<li class="nav-header" data-group="Files"><strong>VSN: </strong>11.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 @@ -2376,7 +2376,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>10.0.0</li>
<li class="nav-header" data-group="Finance"><strong>VSN: </strong>11.0.0</li>
<li class="nav-header" data-group="Finance"><a href="#api-Finance">Methods</a></li>
<li data-group="Finance" data-name="getBankStatementAccounting" class="">
<a href="#api-Finance-getBankStatementAccounting">getBankStatementAccounting</a>
Expand Down
2 changes: 1 addition & 1 deletion docs/v1/payroll-au-v2/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -1160,7 +1160,7 @@
<nav id="scrollingNav">
<ul class="sidenav nav nav-list">
<li class="nav-header" data-group="PayrollAuV2"><strong>SDK: </strong><span id='sdk-name'></span></li>
<li class="nav-header" data-group="PayrollAuV2"><strong>VSN: </strong>10.0.0</li>
<li class="nav-header" data-group="PayrollAuV2"><strong>VSN: </strong>11.0.0</li>
<li class="nav-header" data-group="PayrollAuV2"><a href="#api-PayrollAuV2">Methods</a></li>
<li data-group="PayrollAuV2" data-name="approveTimesheet" class="">
<a href="#api-PayrollAuV2-approveTimesheet">approveTimesheet</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 @@ -3447,7 +3447,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>10.0.0</li>
<li class="nav-header" data-group="PayrollAu"><strong>VSN: </strong>11.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 @@ -4068,7 +4068,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>10.0.0</li>
<li class="nav-header" data-group="PayrollNz"><strong>VSN: </strong>11.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
6 changes: 3 additions & 3 deletions docs/v1/payroll-uk/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -1460,7 +1460,7 @@
"earningsType" : {
"type" : "string",
"description" : "Indicates how an employee will be paid when taking this type of earning",
"enum" : [ "Allowance", "BackPay", "Bonus", "Commission", "LumpSum", "OtherEarnings", "OvertimeEarnings", "RegularEarnings", "StatutoryAdoptionPay", "StatutoryAdoptionPayNonPensionable", "StatutoryBereavementPay", "StatutoryMaternityPay", "StatutoryMaternityPayNonPensionable", "StatutoryPaternityPay", "StatutoryPaternityPayNonPensionable", "StatutoryParentalBereavementPayNonPensionable", "StatutorySharedParentalPay", "StatutorySharedParentalPayNonPensionable", "StatutorySickPay", "StatutorySickPayNonPensionable", "TipsNonDirect", "TipsDirect", "TerminationPay", "StatutoryNeonatalCarePay", "StatutoryNeonatalCarePayNonPensionable" ]
"enum" : [ "Allowance", "BackPay", "Bonus", "Commission", "LumpSum", "OtherEarnings", "OvertimeEarnings", "RegularEarnings", "StatutoryAdoptionPay", "StatutoryAdoptionPayNonPensionable", "StatutoryBereavementPay", "StatutoryMaternityPay", "StatutoryMaternityPayNonPensionable", "StatutoryPaternityPay", "StatutoryPaternityPayNonPensionable", "StatutoryParentalBereavementPayNonPensionable", "StatutorySharedParentalPay", "StatutorySharedParentalPayNonPensionable", "StatutorySickPay", "StatutorySickPayNonPensionable", "TipsNonDirect", "TipsDirect", "TerminationPay", "StatutoryNeonatalCarePay", "StatutoryNeonatalCarePayNonPensionable", "StatutoryBereavementPayNorthernIreland" ]
},
"rateType" : {
"type" : "string",
Expand Down Expand Up @@ -2088,7 +2088,7 @@
"type" : {
"type" : "string",
"description" : "The category of statutory leave",
"enum" : [ "Sick", "Adoption", "Maternity", "Paternity", "Sharedparental", "Bereavement", "NeonatalCare" ]
"enum" : [ "Sick", "Adoption", "Maternity", "Paternity", "Sharedparental", "Bereavement", "NeonatalCare", "BereavementNire" ]
},
"startDate" : {
"type" : "string",
Expand Down Expand Up @@ -3701,7 +3701,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>10.0.0</li>
<li class="nav-header" data-group="PayrollUk"><strong>VSN: </strong>11.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 @@ -1463,7 +1463,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>10.0.0</li>
<li class="nav-header" data-group="Project"><strong>VSN: </strong>11.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="10.0.0",
version="11.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__ = "api@xero.com"
__version__ = "10.0.0"
__version__ = "11.0.0"
11 changes: 9 additions & 2 deletions xero_python/accounting/api/accounting_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
"""

"""
OpenAPI spec version: 11.1.0
OpenAPI spec version: 12.0.0
"""


Expand Down Expand Up @@ -13418,6 +13418,7 @@ def get_prepayments(
page=empty,
unitdp=empty,
page_size=empty,
invoice_numbers=empty,
_return_http_data_only=True,
_preload_content=True,
_request_timeout=None,
Expand All @@ -13431,6 +13432,7 @@ def get_prepayments(
:param int page: e.g. page=1 – Up to 100 prepayments will be returned in a single API call with line items shown for each overpayment
:param int unitdp: e.g. unitdp=4 – (Unit Decimal Places) You can opt in to use four decimal places for unit amounts
:param int page_size: Number of records to retrieve per page
:param list[str] invoice_numbers: Filter by a comma-separated list of InvoiceNumbers
: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 @@ -13444,7 +13446,9 @@ def get_prepayments(
"when calling `get_prepayments`"
)

collection_formats = {}
collection_formats = {
"InvoiceNumbers": "csv",
}
path_params = {}

query_params = []
Expand All @@ -13464,6 +13468,9 @@ def get_prepayments(
if page_size is not empty:
query_params.append(("pageSize", page_size))

if invoice_numbers is not empty:
query_params.append(("InvoiceNumbers", invoice_numbers))

header_params = {
"xero-tenant-id": xero_tenant_id,
}
Expand Down
6 changes: 4 additions & 2 deletions xero_python/accounting/docs/AccountingApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -10346,7 +10346,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)

# **get_prepayments**
> Prepayments get_prepayments(xero_tenant_id, if_modified_since=if_modified_since, where=where, order=order, page=page, unitdp=unitdp, page_size=page_size)
> Prepayments get_prepayments(xero_tenant_id, if_modified_since=if_modified_since, where=where, order=order, page=page, unitdp=unitdp, page_size=page_size, invoice_numbers=invoice_numbers)

Retrieves prepayments

Expand Down Expand Up @@ -10383,9 +10383,10 @@ order = 'Reference ASC' # str | Order by an any element (optional)
page = 1 # int | e.g. page=1 – Up to 100 prepayments will be returned in a single API call with line items shown for each overpayment (optional)
unitdp = 4 # int | e.g. unitdp=4 – (Unit Decimal Places) You can opt in to use four decimal places for unit amounts (optional)
page_size = 100 # int | Number of records to retrieve per page (optional)
invoice_numbers = ['&quot;INV-001&quot;, &quot;INV-002&quot;'] # list[str] | Filter by a comma-separated list of InvoiceNumbers (optional)
try:
# Retrieves prepayments
api_response = api_instance.get_prepayments(xero_tenant_id, if_modified_since=if_modified_since, where=where, order=order, page=page, unitdp=unitdp, page_size=page_size)
api_response = api_instance.get_prepayments(xero_tenant_id, if_modified_since=if_modified_since, where=where, order=order, page=page, unitdp=unitdp, page_size=page_size, invoice_numbers=invoice_numbers)
pprint(api_response)
except ApiException as e:
print("Exception when calling AccountingApi->get_prepayments: %s\n" % e)
Expand All @@ -10402,6 +10403,7 @@ Name | Type | Description | Notes
**page** | **int**| e.g. page&#x3D;1 – Up to 100 prepayments will be returned in a single API call with line items shown for each overpayment | [optional]
**unitdp** | **int**| e.g. unitdp&#x3D;4 – (Unit Decimal Places) You can opt in to use four decimal places for unit amounts | [optional]
**page_size** | **int**| Number of records to retrieve per page | [optional]
**invoice_numbers** | [**list[str]**](str.md)| Filter by a comma-separated list of InvoiceNumbers | [optional]

### Return type

Expand Down
1 change: 1 addition & 0 deletions xero_python/accounting/docs/Prepayment.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ Name | Type | Description | Notes
**total_tax** | **float** | The total tax on the prepayment | [optional]
**total** | **float** | The total of the prepayment(subtotal + total tax) | [optional]
**reference** | **str** | Returns Invoice number field. Reference field isn&#39;t available. | [optional]
**invoice_number** | **str** | Returns Invoice number for prepayment receive document only. | [optional]
**updated_date_utc** | **datetime** | UTC timestamp of last update to the prepayment | [optional]
**currency_code** | [**CurrencyCode**](CurrencyCode.md) | | [optional]
**prepayment_id** | **str** | Xero generated unique identifier | [optional]
Expand Down
29 changes: 29 additions & 0 deletions xero_python/accounting/models/prepayment.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ class Prepayment(BaseModel):
"total_tax": "float",
"total": "float",
"reference": "str",
"invoice_number": "str",
"updated_date_utc": "datetime[ms-format]",
"currency_code": "CurrencyCode",
"prepayment_id": "str",
Expand All @@ -63,6 +64,7 @@ class Prepayment(BaseModel):
"total_tax": "TotalTax",
"total": "Total",
"reference": "Reference",
"invoice_number": "InvoiceNumber",
"updated_date_utc": "UpdatedDateUTC",
"currency_code": "CurrencyCode",
"prepayment_id": "PrepaymentID",
Expand All @@ -87,6 +89,7 @@ def __init__(
total_tax=None,
total=None,
reference=None,
invoice_number=None,
updated_date_utc=None,
currency_code=None,
prepayment_id=None,
Expand All @@ -110,6 +113,7 @@ def __init__(
self._total_tax = None
self._total = None
self._reference = None
self._invoice_number = None
self._updated_date_utc = None
self._currency_code = None
self._prepayment_id = None
Expand Down Expand Up @@ -142,6 +146,8 @@ def __init__(
self.total = total
if reference is not None:
self.reference = reference
if invoice_number is not None:
self.invoice_number = invoice_number
if updated_date_utc is not None:
self.updated_date_utc = updated_date_utc
if currency_code is not None:
Expand Down Expand Up @@ -413,6 +419,29 @@ def reference(self, reference):

self._reference = reference

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

Returns Invoice number for prepayment receive document only. # noqa: E501

:return: The invoice_number of this Prepayment. # noqa: E501
:rtype: str
"""
return self._invoice_number

@invoice_number.setter
def invoice_number(self, invoice_number):
"""Sets the invoice_number of this Prepayment.

Returns Invoice number for prepayment receive document only. # noqa: E501

:param invoice_number: The invoice_number of this Prepayment. # noqa: E501
:type: str
"""

self._invoice_number = invoice_number

@property
def updated_date_utc(self):
"""Gets the updated_date_utc of this Prepayment. # 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 @@ -21,7 +21,7 @@
"""

"""
OpenAPI spec version: 11.1.0
OpenAPI spec version: 12.0.0
"""


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 @@ -21,7 +21,7 @@
"""

"""
OpenAPI spec version: 11.1.0
OpenAPI spec version: 12.0.0
"""


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: 11.1.0
- Package version: 10.0.0
- API version: 12.0.0
- Package version: 11.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 @@ -21,7 +21,7 @@
"""

"""
OpenAPI spec version: 11.1.0
OpenAPI spec version: 12.0.0
"""


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 @@ -21,7 +21,7 @@
"""

"""
OpenAPI spec version: 11.1.0
OpenAPI spec version: 12.0.0
"""


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 @@ -21,7 +21,7 @@
"""

"""
OpenAPI spec version: 11.1.0
OpenAPI spec version: 12.0.0
"""


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 @@ -21,7 +21,7 @@
"""

"""
OpenAPI spec version: 11.1.0
OpenAPI spec version: 12.0.0
"""


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

"""
OpenAPI spec version: 11.1.0
OpenAPI spec version: 12.0.0
"""


Expand Down
Loading
Loading