Skip to content

Commit a43c4c3

Browse files
actions-userRyan McCarthy
andcommitted
[XAPI-1200] Fix build scripts (#389)
* [XAPI-1200] Handle output folder deletion in main script * [XAPI-1200] Use locally built docker image * [XAPI-1200] Check java installed and using correct version * [XAPI-1200] Rename docker file no longer just used for docs * [XAPI-1200] Added docker to run post generation checks in code-gen repo * [XAPI-1200] Update repository Now matches what is in upstream after manual change previously * [XAPI-1200] Do python processing with uv with pinned package versions * [XAPI-1200] Remove flake8 It's not doing anything right now, and we should move to ruff in the future anyway * [XAPI-1200] Newline fix * [XAPI-1200] Check java versions 11-21 * [XAPI-1200] Remove flake8 and other pip/python installing This is handled with uv now * [XAPI-1200] Run tests in uv * [XAPI-1200] Access host from inside container * [XAPI-1200] Use uv directly instead of docker --------- Co-authored-by: Ryan McCarthy <[email protected]>
1 parent 9ad0da4 commit a43c4c3

File tree

17 files changed

+49
-698
lines changed

17 files changed

+49
-698
lines changed

docs/accounting/Contact.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ Name | Type | Description | Notes
1717
**contact_persons** | [**Array&lt;ContactPerson&gt;**](ContactPerson.md) | See contact persons | [optional]
1818
**bank_account_details** | **String** | Bank account number of contact | [optional]
1919
**tax_number** | **String** | Tax number of contact – this is also known as the ABN (Australia), GST Number (New Zealand), VAT Number (UK) or Tax ID Number (US and global) in the Xero UI depending on which regionalized version of Xero you are using (max length &#x3D; 50) | [optional]
20+
**tax_number_type** | **String** | Identifier of the regional type of tax number, such as US, UK, or other regional tax identifiers | [optional]
2021
**accounts_receivable_tax_type** | **String** | The tax type from TaxRates | [optional]
2122
**accounts_payable_tax_type** | **String** | The tax type from TaxRates | [optional]
2223
**addresses** | [**Array&lt;Address&gt;**](Address.md) | Store certain address types for a contact – see address types | [optional]
@@ -65,6 +66,7 @@ instance = XeroRuby::Accounting::Contact.new(contact_id: null,
6566
contact_persons: null,
6667
bank_account_details: null,
6768
tax_number: null,
69+
tax_number_type: null,
6870
accounts_receivable_tax_type: null,
6971
accounts_payable_tax_type: null,
7072
addresses: null,

docs/accounting/index.html

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2104,6 +2104,11 @@
21042104
"type" : "string",
21052105
"description" : "Tax number of contact – this is also known as the ABN (Australia), GST Number (New Zealand), VAT Number (UK) or Tax ID Number (US and global) in the Xero UI depending on which regionalized version of Xero you are using (max length = 50)"
21062106
},
2107+
"TaxNumberType" : {
2108+
"type" : "string",
2109+
"description" : "Identifier of the regional type of tax number, such as US, UK, or other regional tax identifiers",
2110+
"enum" : [ "SSN", "EIN", "ITIN", "ATIN" ]
2111+
},
21072112
"AccountsReceivableTaxType" : {
21082113
"type" : "string",
21092114
"description" : "The tax type from TaxRates"

docs/payroll_nz/Employee.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,19 +31,19 @@ instance = XeroRuby::PayrollNz::Employee.new(employee_id: d90457c4-f1be-4f2e-b4e
3131
title: Mrs,
3232
first_name: Karen,
3333
last_name: Jones,
34-
date_of_birth: Wed Jan 02 00:00:00 GMT 2019,
34+
date_of_birth: Wed Jan 02 00:00:00 UTC 2019,
3535
address: null,
3636
email: developer@me.com,
3737
gender: F,
3838
phone_number: 415-555-1212,
39-
start_date: Sun Jan 19 00:00:00 GMT 2020,
40-
end_date: Sun Jan 19 00:00:00 GMT 2020,
39+
start_date: Sun Jan 19 00:00:00 UTC 2020,
40+
end_date: Sun Jan 19 00:00:00 UTC 2020,
4141
payroll_calendar_id: null,
4242
updated_date_utc: null,
4343
created_date_utc: null,
4444
job_title: General Manager,
4545
engagement_type: Permanent,
46-
fixed_term_end_date: Sun Jan 19 00:00:00 GMT 2020)
46+
fixed_term_end_date: Sun Jan 19 00:00:00 UTC 2020)
4747
```
4848

4949

docs/payroll_nz/EmployeeLeaveSetup.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,8 @@ instance = XeroRuby::PayrollNz::EmployeeLeaveSetup.new(include_holiday_pay: fals
3232
sick_leave_maximum_to_accrue: 200.5,
3333
sick_leave_opening_balance: 10.5,
3434
sick_leave_schedule_of_accrual: OnAnniversaryDate,
35-
sick_leave_anniversary_date: Sun Jan 19 00:00:00 GMT 2020,
36-
annual_leave_anniversary_date: Sun Jan 19 00:00:00 GMT 2020)
35+
sick_leave_anniversary_date: Sun Jan 19 00:00:00 UTC 2020,
36+
annual_leave_anniversary_date: Sun Jan 19 00:00:00 UTC 2020)
3737
```
3838

3939

docs/payroll_nz/EmployeeLeaveType.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ instance = XeroRuby::PayrollNz::EmployeeLeaveType.new(leave_type_id: null,
3737
include_holiday_pay_every_pay: null,
3838
show_annual_leave_in_advance: null,
3939
annual_leave_total_amount_paid: null,
40-
schedule_of_accrual_date: Sun Jan 19 00:00:00 GMT 2020)
40+
schedule_of_accrual_date: Sun Jan 19 00:00:00 UTC 2020)
4141
```
4242

4343

docs/payroll_nz/Employment.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ instance = XeroRuby::PayrollNz::Employment.new(payroll_calendar_id: null,
1919
pay_run_calendar_id: null,
2020
start_date: null,
2121
engagement_type: Permanent,
22-
fixed_term_end_date: Sun Jan 19 00:00:00 GMT 2020)
22+
fixed_term_end_date: Sun Jan 19 00:00:00 UTC 2020)
2323
```
2424

2525

docs/payroll_nz/PayrollNzApi.md

Lines changed: 0 additions & 72 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,6 @@ Method | HTTP request | Description
7373
[**update_employee_leave**](PayrollNzApi.md#update_employee_leave) | **PUT** /Employees/{EmployeeID}/Leave/{LeaveID} | Updates leave records for a specific employee
7474
[**update_employee_salary_and_wage**](PayrollNzApi.md#update_employee_salary_and_wage) | **PUT** /Employees/{EmployeeID}/SalaryAndWages/{SalaryAndWagesID} | Updates an employee&#39;s salary and wages record
7575
[**update_employee_tax**](PayrollNzApi.md#update_employee_tax) | **POST** /Employees/{EmployeeID}/Tax | Updates the tax records for a specific employee
76-
[**update_pay_run**](PayrollNzApi.md#update_pay_run) | **PUT** /PayRuns/{PayRunID} | Updates a pay run
7776
[**update_pay_slip_line_items**](PayrollNzApi.md#update_pay_slip_line_items) | **PUT** /PaySlips/{PaySlipID} | Creates an employee pay slip
7877
[**update_timesheet_line**](PayrollNzApi.md#update_timesheet_line) | **PUT** /Timesheets/{TimesheetID}/Lines/{TimesheetLineID} | Updates a timesheet line for a specific timesheet
7978

@@ -4750,77 +4749,6 @@ Name | Type | Description | Notes
47504749
- **Accept**: application/json
47514750

47524751

4753-
## update_pay_run
4754-
4755-
> PayRunObject update_pay_run(xero_tenant_id, pay_run_id, pay_run, opts)
4756-
4757-
Updates a pay run
4758-
4759-
### Example
4760-
4761-
```ruby
4762-
# load the gem
4763-
require 'xero-ruby'
4764-
4765-
creds = {
4766-
client_id: ENV['CLIENT_ID'],
4767-
client_secret: ENV['CLIENT_SECRET'],
4768-
redirect_uri: ENV['REDIRECT_URI'],
4769-
scopes: ENV['SCOPES']
4770-
}
4771-
xero_client = XeroRuby::ApiClient.new(credentials: creds)
4772-
4773-
token_set = fetch_valid_token_set(user) # example
4774-
4775-
xero_client.refresh_token_set(token_set)
4776-
4777-
# You need to namespace your api method call to one of the following api sets
4778-
# [:accounting_api, :assets_api, :projects_api, :files_api, :payroll_au_api, :payroll_nz_api, :payroll_uk_api, :app_store_api]
4779-
4780-
api_instance = xero_client.<api_set>
4781-
4782-
4783-
4784-
xero_tenant_id = 'xero_tenant_id_example' # String | Xero identifier for Tenant
4785-
pay_run_id = 'pay_run_id_example' # String | Identifier for the pay run
4786-
pay_run = {"paymentDate":"2019-07-01"} # PayRun |
4787-
opts = {
4788-
idempotency_key: 'KEY_VALUE' # String | This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
4789-
}
4790-
4791-
begin
4792-
#Updates a pay run
4793-
result = api_instance.update_pay_run(xero_tenant_id, pay_run_id, pay_run, opts)
4794-
p result
4795-
rescue XeroRuby::PayrollNz::ApiError => e
4796-
puts "Exception when calling PayrollNzApi->update_pay_run: #{e}"
4797-
end
4798-
```
4799-
4800-
### Parameters
4801-
4802-
4803-
Name | Type | Description | Notes
4804-
------------- | ------------- | ------------- | -------------
4805-
**xero_tenant_id** | **String**| Xero identifier for Tenant |
4806-
**pay_run_id** | [**String**](.md)| Identifier for the pay run |
4807-
**pay_run** | [**PayRun**](PayRun.md)| |
4808-
**idempotency_key** | **String**| This allows you to safely retry requests without the risk of duplicate processing. 128 character max. | [optional]
4809-
4810-
### Return type
4811-
4812-
[**PayRunObject**](PayRunObject.md)
4813-
4814-
### Authorization
4815-
4816-
[OAuth2](../README.md#OAuth2)
4817-
4818-
### HTTP request headers
4819-
4820-
- **Content-Type**: application/json
4821-
- **Accept**: application/json
4822-
4823-
48244752
## update_pay_slip_line_items
48254753

48264754
> PaySlipObject update_pay_slip_line_items(xero_tenant_id, pay_slip_id, pay_slip, opts)

docs/payroll_nz/index.html

Lines changed: 0 additions & 183 deletions
Original file line numberDiff line numberDiff line change
@@ -4296,9 +4296,6 @@
42964296
<li data-group="PayrollNz" data-name="updateEmployeeTax" class="">
42974297
<a href="#api-PayrollNz-updateEmployeeTax">updateEmployeeTax</a>
42984298
</li>
4299-
<li data-group="PayrollNz" data-name="updatePayRun" class="">
4300-
<a href="#api-PayrollNz-updatePayRun">updatePayRun</a>
4301-
</li>
43024299
<li data-group="PayrollNz" data-name="updatePaySlipLineItems" class="">
43034300
<a href="#api-PayrollNz-updatePaySlipLineItems">updatePaySlipLineItems</a>
43044301
</li>
@@ -14299,186 +14296,6 @@ <h2>Parameters</h2>
1429914296
}
1430014297
},
1430114298
"required" : true
14302-
}
14303-
</script>
14304-
</table>
14305-
</article>
14306-
</div>
14307-
<hr>
14308-
<div id="api-PayrollNz-updatePayRun">
14309-
<article id="api-PayrollNz-updatePayRun-0" data-group="User" data-name="updatePayRun" data-version="0">
14310-
<div class="pull-left">
14311-
<h1>updatePayRun</h1>
14312-
<p>Updates a pay run</p>
14313-
</div>
14314-
<div class="pull-right"></div>
14315-
<div class="clearfix"></div>
14316-
<p></p>
14317-
<p class="marked"></p>
14318-
<p></p>
14319-
<br />
14320-
<pre class="prettyprint language-html prettyprinted" data-type="put"><code><span class="pln">/PayRuns/{PayRunID}</span></code></pre>
14321-
<p>
14322-
<h3>Usage and SDK Samples</h3>
14323-
</p>
14324-
<ul class="nav nav-tabs nav-tabs-examples">
14325-
<!-- *****REPLACE***** comment out the other languages <li> -->
14326-
<li class=""><a href="#examples-PayrollNz-updatePayRun-0-ruby">Ruby</a></li>
14327-
</ul>
14328-
<div class="tab-content">
14329-
<!-- *****REPLACE***** comment out the other languages tab-pane -->
14330-
<div class="tab-pane" id="examples-PayrollNz-updatePayRun-0-ruby">
14331-
<pre class="prettyprint"><code class="language-ruby">xero_client.set_token_set(user.token_set)
14332-
14333-
xero_tenant_id = 'xeroTenantId_example'
14334-
pay_run_id = '38400000-8cf0-11bd-b23e-10b96e4ef00d'
14335-
idempotency_key = 'KEY_VALUE'
14336-
start_date = 'YYYY-MM-DD'
14337-
payment_date = 'YYYY-MM-DD'
14338-
14339-
pay_run_calendar = {
14340-
calendar_type: XeroRuby::PayrollNz::calendar_type::WEEKLY,
14341-
period_start_date: start_date,
14342-
payment_date: payment_date
14343-
}
14344-
14345-
begin
14346-
response = xero_client.accounting_api.update_pay_run(xero_tenant_id, pay_run_id, payRun, idempotency_key)
14347-
return response
14348-
rescue XeroRuby::ApiError => e
14349-
puts "Exception when calling update_pay_run: #{e}"
14350-
end
14351-
</code></pre>
14352-
</div>
14353-
</div>
14354-
<h2>Scopes</h2>
14355-
<table>
14356-
14357-
<tr>
14358-
<td>payroll.payruns</td>
14359-
<td>Grant read-write access to payroll payruns</td>
14360-
</tr>
14361-
14362-
</table>
14363-
<h2>Parameters</h2>
14364-
<div class="methodsubtabletitle">Path parameters</div>
14365-
<table id="methodsubtable">
14366-
<tr>
14367-
<th width="150px">Name</th>
14368-
<th>Description</th>
14369-
</tr>
14370-
<tr><td style="width:150px;">PayRunID<span style="color:red;">*</span></td>
14371-
<td>
14372-
14373-
14374-
<div id="d2e199_updatePayRun_payRunID">
14375-
<div class="json-schema-view">
14376-
<div class="primitive">
14377-
<span class="type">
14378-
UUID
14379-
</span>
14380-
<span class="format">
14381-
(uuid)
14382-
</span>
14383-
14384-
<div class="inner description marked">
14385-
Identifier for the pay run
14386-
</div>
14387-
</div>
14388-
<div class="inner required">
14389-
Required
14390-
</div>
14391-
</div>
14392-
</div>
14393-
</td>
14394-
</tr>
14395-
14396-
</table>
14397-
<div class="methodsubtabletitle">Header parameters</div>
14398-
<table id="methodsubtable">
14399-
<tr>
14400-
<th width="150px">Name</th>
14401-
<th>Description</th>
14402-
</tr>
14403-
<tr><td style="width:150px;">Xero-Tenant-Id<span style="color:red;">*</span></td>
14404-
<td>
14405-
14406-
14407-
<div id="d2e199_updatePayRun_xeroTenantId">
14408-
<div class="json-schema-view">
14409-
<div class="primitive">
14410-
<span class="type">
14411-
String
14412-
</span>
14413-
14414-
<div class="inner description marked">
14415-
Xero identifier for Tenant
14416-
</div>
14417-
</div>
14418-
<div class="inner required">
14419-
Required
14420-
</div>
14421-
</div>
14422-
</div>
14423-
</td>
14424-
</tr>
14425-
14426-
<tr><td style="width:150px;">Idempotency-Key</td>
14427-
<td>
14428-
14429-
14430-
<div id="d2e199_updatePayRun_idempotencyKey">
14431-
<div class="json-schema-view">
14432-
<div class="primitive">
14433-
<span class="type">
14434-
String
14435-
</span>
14436-
14437-
<div class="inner description marked">
14438-
This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
14439-
</div>
14440-
</div>
14441-
</div>
14442-
</div>
14443-
</td>
14444-
</tr>
14445-
14446-
</table>
14447-
<div class="methodsubtabletitle">Body parameters</div>
14448-
<table id="methodsubtable">
14449-
<tr>
14450-
<th width="150px">Name</th>
14451-
<th>Description</th>
14452-
</tr>
14453-
<tr>
14454-
<td style="width:150px;">payRun <span style="color:red;">*</span></td>
14455-
<td>
14456-
<div class="json-schema-view">
14457-
<div class="primitive">
14458-
<span class="type">
14459-
PayRun
14460-
</span>
14461-
<div class="inner description marked">
14462-
14463-
</div>
14464-
</div>
14465-
<div class="inner required">
14466-
Required
14467-
</div>
14468-
</div>
14469-
<script type="application/ld+json">
14470-
{
14471-
"content" : {
14472-
"application/json" : {
14473-
"schema" : {
14474-
"$ref" : "#/components/schemas/PayRun"
14475-
},
14476-
"example" : {
14477-
"paymentDate" : "2019-07-01"
14478-
}
14479-
}
14480-
},
14481-
"required" : true
1448214299
}
1448314300
</script>
1448414301
</table>

docs/payroll_uk/Employee.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,13 +32,13 @@ instance = XeroRuby::PayrollUk::Employee.new(employee_id: d90457c4-f1be-4f2e-b4e
3232
title: Mrs,
3333
first_name: Karen,
3434
last_name: Jones,
35-
date_of_birth: Wed Jan 02 00:00:00 GMT 2019,
35+
date_of_birth: Wed Jan 02 00:00:00 UTC 2019,
3636
address: null,
3737
email: developer@me.com,
3838
gender: F,
3939
phone_number: 415-555-1212,
40-
start_date: Sun Jan 19 00:00:00 GMT 2020,
41-
end_date: Sun Jan 19 00:00:00 GMT 2020,
40+
start_date: Sun Jan 19 00:00:00 UTC 2020,
41+
end_date: Sun Jan 19 00:00:00 UTC 2020,
4242
payroll_calendar_id: null,
4343
updated_date_utc: null,
4444
created_date_utc: null,

docs/payroll_uk/EmployeeLeaveType.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ instance = XeroRuby::PayrollUk::EmployeeLeaveType.new(leave_type_id: null,
2323
maximum_to_accrue: null,
2424
opening_balance: null,
2525
rate_accrued_hourly: null,
26-
schedule_of_accrual_date: Mon Apr 01 00:00:00 GMT 2024)
26+
schedule_of_accrual_date: Mon Apr 01 00:00:00 UTC 2024)
2727
```
2828

2929

0 commit comments

Comments
 (0)