Skip to content

Commit 8ad178a

Browse files
committed
chore: release new SDK versions based on update OpenAPI Spec (#397)
1 parent 9ad0da4 commit 8ad178a

26 files changed

+156
-716
lines changed

Gemfile.lock

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
PATH
22
remote: .
33
specs:
4-
xero-ruby (12.1.0)
4+
xero-ruby (12.2.0)
55
faraday (>= 2.0, < 3.0)
66
json (~> 2.1, >= 2.1.0)
77
json-jwt (~> 1.16, >= 1.16.3)

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: 8 additions & 3 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"
@@ -6339,7 +6344,7 @@
63396344
<nav id="scrollingNav">
63406345
<ul class="sidenav nav nav-list">
63416346
<li class="nav-header" data-group="Accounting"><strong>SDK: </strong><span id='sdk-name'></span></li>
6342-
<li class="nav-header" data-group="Accounting"><strong>VSN: </strong>12.1.0</li>
6347+
<li class="nav-header" data-group="Accounting"><strong>VSN: </strong>12.2.0</li>
63436348
<li class="nav-header" data-group="Accounting"><a href="#api-Accounting">Methods</a></li>
63446349
<li data-group="Accounting" data-name="createAccount" class="">
63456350
<a href="#api-Accounting-createAccount">createAccount</a>
@@ -22974,7 +22979,7 @@ <h2>Scopes</h2>
2297422979

2297522980
<tr>
2297622981
<td>accounting.budgets.read</td>
22977-
<td></td>
22982+
<td>Grant read-only access to read budgets</td>
2297822983
</tr>
2297922984

2298022985
</table>
@@ -23142,7 +23147,7 @@ <h2>Scopes</h2>
2314223147

2314323148
<tr>
2314423149
<td>accounting.budgets.read</td>
23145-
<td></td>
23150+
<td>Grant read-only access to read budgets</td>
2314623151
</tr>
2314723152

2314823153
</table>

docs/app_store/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1241,7 +1241,7 @@
12411241
<nav id="scrollingNav">
12421242
<ul class="sidenav nav nav-list">
12431243
<li class="nav-header" data-group="AppStore"><strong>SDK: </strong><span id='sdk-name'></span></li>
1244-
<li class="nav-header" data-group="AppStore"><strong>VSN: </strong>12.1.0</li>
1244+
<li class="nav-header" data-group="AppStore"><strong>VSN: </strong>12.2.0</li>
12451245
<li class="nav-header" data-group="AppStore"><a href="#api-AppStore">Methods</a></li>
12461246
<li data-group="AppStore" data-name="getSubscription" class="">
12471247
<a href="#api-AppStore-getSubscription">getSubscription</a>

docs/assets/BookDepreciationDetail.md

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,11 @@ Name | Type | Description | Notes
1111
**residual_value** | **BigDecimal** | The value of the asset remaining when you&#39;ve fully depreciated it. | [optional]
1212
**prior_accum_depreciation_amount** | **BigDecimal** | All depreciation prior to the current financial year. | [optional]
1313
**current_accum_depreciation_amount** | **BigDecimal** | All depreciation occurring in the current financial year. | [optional]
14+
**business_use_capital_gain** | **BigDecimal** | (New Zealand Orgs Only) The portion of capital gain realised from the disposal of a fixed asset that is attributable to its business use. | [optional]
15+
**business_use_current_gain_loss** | **BigDecimal** | (New Zealand Orgs Only) Represents the gain or loss from the disposal of the business use portion of a fixed asset. This value records the financial result (profit or loss) related specifically to the asset’s business use. | [optional]
16+
**private_use_capital_gain** | **BigDecimal** | (New Zealand Orgs Only) The portion of capital gain realised from the disposal of a fixed asset that is attributable to its private (non-business) use. | [optional]
17+
**private_use_current_gain_loss** | **BigDecimal** | (New Zealand Orgs Only) Represents the gain or loss from the disposal of the private use portion of a fixed asset. This value records the financial result (profit or loss) related specifically to the asset’s private use. | [optional]
18+
**initial_deduction_percentage** | **Float** | (New Zealand Orgs Only) The Investment Boost deduction percentage. | [optional]
1419

1520
## Code Sample
1621

@@ -23,7 +28,12 @@ instance = XeroRuby::Assets::BookDepreciationDetail.new(current_capital_gain: 5.
2328
cost_limit: 9000.0,
2429
residual_value: 10000.0,
2530
prior_accum_depreciation_amount: 0.45,
26-
current_accum_depreciation_amount: 5.0)
31+
current_accum_depreciation_amount: 5.0,
32+
business_use_capital_gain: null,
33+
business_use_current_gain_loss: null,
34+
private_use_capital_gain: null,
35+
private_use_current_gain_loss: null,
36+
initial_deduction_percentage: null)
2737
```
2838

2939

docs/assets/index.html

Lines changed: 30 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1077,6 +1077,35 @@
10771077
"format" : "double",
10781078
"example" : 5.0,
10791079
"x-is-money" : true
1080+
},
1081+
"businessUseCapitalGain" : {
1082+
"type" : "number",
1083+
"description" : "(New Zealand Orgs Only) The portion of capital gain realised from the disposal of a fixed asset that is attributable to its business use.",
1084+
"format" : "decimal",
1085+
"x-is-money" : true
1086+
},
1087+
"businessUseCurrentGainLoss" : {
1088+
"type" : "number",
1089+
"description" : "(New Zealand Orgs Only) Represents the gain or loss from the disposal of the business use portion of a fixed asset. This value records the financial result (profit or loss) related specifically to the asset’s business use.",
1090+
"format" : "decimal",
1091+
"x-is-money" : true
1092+
},
1093+
"privateUseCapitalGain" : {
1094+
"type" : "number",
1095+
"description" : "(New Zealand Orgs Only) The portion of capital gain realised from the disposal of a fixed asset that is attributable to its private (non-business) use.",
1096+
"format" : "decimal",
1097+
"x-is-money" : true
1098+
},
1099+
"privateUseCurrentGainLoss" : {
1100+
"type" : "number",
1101+
"description" : "(New Zealand Orgs Only) Represents the gain or loss from the disposal of the private use portion of a fixed asset. This value records the financial result (profit or loss) related specifically to the asset’s private use.",
1102+
"format" : "decimal",
1103+
"x-is-money" : true
1104+
},
1105+
"initialDeductionPercentage" : {
1106+
"type" : "number",
1107+
"description" : "(New Zealand Orgs Only) The Investment Boost deduction percentage.",
1108+
"format" : "decimal"
10801109
}
10811110
},
10821111
"description" : ""
@@ -1390,7 +1419,7 @@
13901419
<nav id="scrollingNav">
13911420
<ul class="sidenav nav nav-list">
13921421
<li class="nav-header" data-group="Asset"><strong>SDK: </strong><span id='sdk-name'></span></li>
1393-
<li class="nav-header" data-group="Asset"><strong>VSN: </strong>12.1.0</li>
1422+
<li class="nav-header" data-group="Asset"><strong>VSN: </strong>12.2.0</li>
13941423
<li class="nav-header" data-group="Asset"><a href="#api-Asset">Methods</a></li>
13951424
<li data-group="Asset" data-name="createAsset" class="">
13961425
<a href="#api-Asset-createAsset">createAsset</a>

docs/files/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1170,7 +1170,7 @@
11701170
<nav id="scrollingNav">
11711171
<ul class="sidenav nav nav-list">
11721172
<li class="nav-header" data-group="Files"><strong>SDK: </strong><span id='sdk-name'></span></li>
1173-
<li class="nav-header" data-group="Files"><strong>VSN: </strong>12.1.0</li>
1173+
<li class="nav-header" data-group="Files"><strong>VSN: </strong>12.2.0</li>
11741174
<li class="nav-header" data-group="Files"><a href="#api-Files">Methods</a></li>
11751175
<li data-group="Files" data-name="createFileAssociation" class="">
11761176
<a href="#api-Files-createFileAssociation">createFileAssociation</a>

docs/finance/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2716,7 +2716,7 @@
27162716
<nav id="scrollingNav">
27172717
<ul class="sidenav nav nav-list">
27182718
<li class="nav-header" data-group="Finance"><strong>SDK: </strong><span id='sdk-name'></span></li>
2719-
<li class="nav-header" data-group="Finance"><strong>VSN: </strong>12.1.0</li>
2719+
<li class="nav-header" data-group="Finance"><strong>VSN: </strong>12.2.0</li>
27202720
<li class="nav-header" data-group="Finance"><a href="#api-Finance">Methods</a></li>
27212721
<li data-group="Finance" data-name="getAccountingActivityAccountUsage" class="">
27222722
<a href="#api-Finance-getAccountingActivityAccountUsage">getAccountingActivityAccountUsage</a>

docs/payroll_au/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3412,7 +3412,7 @@
34123412
<nav id="scrollingNav">
34133413
<ul class="sidenav nav nav-list">
34143414
<li class="nav-header" data-group="PayrollAu"><strong>SDK: </strong><span id='sdk-name'></span></li>
3415-
<li class="nav-header" data-group="PayrollAu"><strong>VSN: </strong>12.1.0</li>
3415+
<li class="nav-header" data-group="PayrollAu"><strong>VSN: </strong>12.2.0</li>
34163416
<li class="nav-header" data-group="PayrollAu"><a href="#api-PayrollAu">Methods</a></li>
34173417
<li data-group="PayrollAu" data-name="approveLeaveApplication" class="">
34183418
<a href="#api-PayrollAu-approveLeaveApplication">approveLeaveApplication</a>

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

0 commit comments

Comments
 (0)