diff --git a/docs/v1/accounting/index.html b/docs/v1/accounting/index.html index c6415660..d11bf35b 100644 --- a/docs/v1/accounting/index.html +++ b/docs/v1/accounting/index.html @@ -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", @@ -6350,7 +6355,7 @@ SDK: - VSN: 10.0.0 + VSN: 11.0.0 Methods createAccount @@ -33203,9 +33208,10 @@ Usage and SDK Samples if_modified_since = dateutil.parser.parse("2020-02-06T12:17:43.202-08:00") where = 'Status=="AUTHORISED"' order = 'Reference ASC' + invoice_numbers = ["INV-001", "INV-002"] 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) @@ -33383,6 +33389,26 @@ Parameters + + + InvoiceNumbers + + + + + + + + array[String] + + + +Filter by a comma-separated list of InvoiceNumbers + + + + + diff --git a/docs/v1/appstore/index.html b/docs/v1/appstore/index.html index f38c5843..b9432867 100644 --- a/docs/v1/appstore/index.html +++ b/docs/v1/appstore/index.html @@ -1242,7 +1242,7 @@ SDK: - VSN: 10.0.0 + VSN: 11.0.0 Methods getSubscription diff --git a/docs/v1/assets/index.html b/docs/v1/assets/index.html index dcea4beb..5c5d5e97 100644 --- a/docs/v1/assets/index.html +++ b/docs/v1/assets/index.html @@ -1420,7 +1420,7 @@ SDK: - VSN: 10.0.0 + VSN: 11.0.0 Methods createAsset diff --git a/docs/v1/files/index.html b/docs/v1/files/index.html index 284eab7f..2f79148c 100644 --- a/docs/v1/files/index.html +++ b/docs/v1/files/index.html @@ -1171,7 +1171,7 @@ SDK: - VSN: 10.0.0 + VSN: 11.0.0 Methods createFileAssociation diff --git a/docs/v1/finance/index.html b/docs/v1/finance/index.html index 761b2c20..a5cd96ab 100644 --- a/docs/v1/finance/index.html +++ b/docs/v1/finance/index.html @@ -2376,7 +2376,7 @@ SDK: - VSN: 10.0.0 + VSN: 11.0.0 Methods getBankStatementAccounting diff --git a/docs/v1/payroll-au-v2/index.html b/docs/v1/payroll-au-v2/index.html index 90d87a10..a1045479 100644 --- a/docs/v1/payroll-au-v2/index.html +++ b/docs/v1/payroll-au-v2/index.html @@ -1160,7 +1160,7 @@ SDK: - VSN: 10.0.0 + VSN: 11.0.0 Methods approveTimesheet diff --git a/docs/v1/payroll-au/index.html b/docs/v1/payroll-au/index.html index de393ff9..0daeec37 100644 --- a/docs/v1/payroll-au/index.html +++ b/docs/v1/payroll-au/index.html @@ -3447,7 +3447,7 @@ SDK: - VSN: 10.0.0 + VSN: 11.0.0 Methods approveLeaveApplication diff --git a/docs/v1/payroll-nz/index.html b/docs/v1/payroll-nz/index.html index 39efa086..9a7f579d 100644 --- a/docs/v1/payroll-nz/index.html +++ b/docs/v1/payroll-nz/index.html @@ -4068,7 +4068,7 @@ SDK: - VSN: 10.0.0 + VSN: 11.0.0 Methods approveTimesheet diff --git a/docs/v1/payroll-uk/index.html b/docs/v1/payroll-uk/index.html index 7cc3f569..861bf4c8 100644 --- a/docs/v1/payroll-uk/index.html +++ b/docs/v1/payroll-uk/index.html @@ -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", @@ -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", @@ -3701,7 +3701,7 @@ SDK: - VSN: 10.0.0 + VSN: 11.0.0 Methods approveTimesheet diff --git a/docs/v1/projects/index.html b/docs/v1/projects/index.html index a7bcb8ff..992b3ae9 100644 --- a/docs/v1/projects/index.html +++ b/docs/v1/projects/index.html @@ -1463,7 +1463,7 @@ SDK: - VSN: 10.0.0 + VSN: 11.0.0 Methods createProject diff --git a/setup.py b/setup.py index 039b349b..6d635c83 100644 --- a/setup.py +++ b/setup.py @@ -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", ) diff --git a/xero_python/__init__.py b/xero_python/__init__.py index 27b29d05..912f98c3 100644 --- a/xero_python/__init__.py +++ b/xero_python/__init__.py @@ -2,4 +2,4 @@ __author__ = """Xero Developer API""" __email__ = "api@xero.com" -__version__ = "10.0.0" +__version__ = "11.0.0" diff --git a/xero_python/accounting/api/accounting_api.py b/xero_python/accounting/api/accounting_api.py index 24cec18a..d6cd0d6d 100644 --- a/xero_python/accounting/api/accounting_api.py +++ b/xero_python/accounting/api/accounting_api.py @@ -21,7 +21,7 @@ """ """ - OpenAPI spec version: 11.1.0 + OpenAPI spec version: 12.0.0 """ @@ -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, @@ -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 @@ -13444,7 +13446,9 @@ def get_prepayments( "when calling `get_prepayments`" ) - collection_formats = {} + collection_formats = { + "InvoiceNumbers": "csv", + } path_params = {} query_params = [] @@ -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, } diff --git a/xero_python/accounting/docs/AccountingApi.md b/xero_python/accounting/docs/AccountingApi.md index 79630049..076355ef 100644 --- a/xero_python/accounting/docs/AccountingApi.md +++ b/xero_python/accounting/docs/AccountingApi.md @@ -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 @@ -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 = ['"INV-001", "INV-002"'] # 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) @@ -10402,6 +10403,7 @@ Name | Type | Description | Notes **page** | **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** | **int**| e.g. unitdp=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 diff --git a/xero_python/accounting/docs/Prepayment.md b/xero_python/accounting/docs/Prepayment.md index 2168254a..850e85c9 100644 --- a/xero_python/accounting/docs/Prepayment.md +++ b/xero_python/accounting/docs/Prepayment.md @@ -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'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] diff --git a/xero_python/accounting/models/prepayment.py b/xero_python/accounting/models/prepayment.py index ea374d50..b9fb3094 100644 --- a/xero_python/accounting/models/prepayment.py +++ b/xero_python/accounting/models/prepayment.py @@ -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", @@ -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", @@ -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, @@ -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 @@ -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: @@ -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 diff --git a/xero_python/appstore/api/app_store_api.py b/xero_python/appstore/api/app_store_api.py index f4e27251..c339f8b5 100644 --- a/xero_python/appstore/api/app_store_api.py +++ b/xero_python/appstore/api/app_store_api.py @@ -21,7 +21,7 @@ """ """ - OpenAPI spec version: 11.1.0 + OpenAPI spec version: 12.0.0 """ diff --git a/xero_python/assets/api/asset_api.py b/xero_python/assets/api/asset_api.py index 12f86873..d21e7763 100644 --- a/xero_python/assets/api/asset_api.py +++ b/xero_python/assets/api/asset_api.py @@ -21,7 +21,7 @@ """ """ - OpenAPI spec version: 11.1.0 + OpenAPI spec version: 12.0.0 """ diff --git a/xero_python/docs/README.md b/xero_python/docs/README.md index 3a2bc986..2574fc8f 100644 --- a/xero_python/docs/README.md +++ b/xero_python/docs/README.md @@ -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) diff --git a/xero_python/file/api/files_api.py b/xero_python/file/api/files_api.py index 8e30b51b..a9e0c15e 100644 --- a/xero_python/file/api/files_api.py +++ b/xero_python/file/api/files_api.py @@ -21,7 +21,7 @@ """ """ - OpenAPI spec version: 11.1.0 + OpenAPI spec version: 12.0.0 """ diff --git a/xero_python/finance/api/finance_api.py b/xero_python/finance/api/finance_api.py index 7a2f37fb..d509e977 100644 --- a/xero_python/finance/api/finance_api.py +++ b/xero_python/finance/api/finance_api.py @@ -21,7 +21,7 @@ """ """ - OpenAPI spec version: 11.1.0 + OpenAPI spec version: 12.0.0 """ diff --git a/xero_python/identity/api/identity_api.py b/xero_python/identity/api/identity_api.py index 90458d9a..ab5425b9 100644 --- a/xero_python/identity/api/identity_api.py +++ b/xero_python/identity/api/identity_api.py @@ -21,7 +21,7 @@ """ """ - OpenAPI spec version: 11.1.0 + OpenAPI spec version: 12.0.0 """ diff --git a/xero_python/payrollau/api/payroll_au_api.py b/xero_python/payrollau/api/payroll_au_api.py index 23c6d5f0..d074552a 100644 --- a/xero_python/payrollau/api/payroll_au_api.py +++ b/xero_python/payrollau/api/payroll_au_api.py @@ -21,7 +21,7 @@ """ """ - OpenAPI spec version: 11.1.0 + OpenAPI spec version: 12.0.0 """ diff --git a/xero_python/payrollauv2/api/payroll_au_v2_api.py b/xero_python/payrollauv2/api/payroll_au_v2_api.py index ff92e6bc..1ee336af 100644 --- a/xero_python/payrollauv2/api/payroll_au_v2_api.py +++ b/xero_python/payrollauv2/api/payroll_au_v2_api.py @@ -21,7 +21,7 @@ """ """ - OpenAPI spec version: 11.1.0 + OpenAPI spec version: 12.0.0 """ diff --git a/xero_python/payrollnz/api/payroll_nz_api.py b/xero_python/payrollnz/api/payroll_nz_api.py index b1eadb16..33797d16 100644 --- a/xero_python/payrollnz/api/payroll_nz_api.py +++ b/xero_python/payrollnz/api/payroll_nz_api.py @@ -21,7 +21,7 @@ """ """ - OpenAPI spec version: 11.1.0 + OpenAPI spec version: 12.0.0 """ diff --git a/xero_python/payrolluk/api/payroll_uk_api.py b/xero_python/payrolluk/api/payroll_uk_api.py index 41145797..ab60798f 100644 --- a/xero_python/payrolluk/api/payroll_uk_api.py +++ b/xero_python/payrolluk/api/payroll_uk_api.py @@ -21,7 +21,7 @@ """ """ - OpenAPI spec version: 11.1.0 + OpenAPI spec version: 12.0.0 """ diff --git a/xero_python/payrolluk/models/earnings_rate.py b/xero_python/payrolluk/models/earnings_rate.py index 6a3d4f04..7c4277cb 100644 --- a/xero_python/payrolluk/models/earnings_rate.py +++ b/xero_python/payrolluk/models/earnings_rate.py @@ -198,6 +198,7 @@ def earnings_type(self, earnings_type): "TerminationPay", "StatutoryNeonatalCarePay", "StatutoryNeonatalCarePayNonPensionable", + "StatutoryBereavementPayNorthernIreland", "None", ] # noqa: E501 diff --git a/xero_python/payrolluk/models/employee_statutory_leave_summary.py b/xero_python/payrolluk/models/employee_statutory_leave_summary.py index dcd2ecbf..4c67e810 100644 --- a/xero_python/payrolluk/models/employee_statutory_leave_summary.py +++ b/xero_python/payrolluk/models/employee_statutory_leave_summary.py @@ -159,6 +159,7 @@ def type(self, type): "Sharedparental", "Bereavement", "NeonatalCare", + "BereavementNire", "None", ] # noqa: E501 diff --git a/xero_python/project/api/project_api.py b/xero_python/project/api/project_api.py index 0c3eba2d..b7eb8e69 100644 --- a/xero_python/project/api/project_api.py +++ b/xero_python/project/api/project_api.py @@ -21,7 +21,7 @@ """ """ - OpenAPI spec version: 11.1.0 + OpenAPI spec version: 12.0.0 """