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 Gemfile.lock
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
PATH
remote: .
specs:
xero-ruby (13.0.0)
xero-ruby (14.0.0)
faraday (>= 2.0, < 3.0)
json (~> 2.1, >= 2.1.0)
json-jwt (~> 1.16, >= 1.16.3)
Expand Down
5 changes: 4 additions & 1 deletion docs/accounting/AccountingApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -10883,7 +10883,9 @@ opts = {

unitdp: 4, # Integer | e.g. unitdp=4 – (Unit Decimal Places) You can opt in to use four decimal places for unit amounts

page_size: 100 # Integer | Number of records to retrieve per page
page_size: 100, # Integer | Number of records to retrieve per page

invoice_numbers: ['&quot;INV-001&quot;, &quot;INV-002&quot;'] # Array<String> | Filter by a comma-separated list of InvoiceNumbers
}

begin
Expand All @@ -10907,6 +10909,7 @@ Name | Type | Description | Notes
**page** | **Integer**| 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** | **Integer**| e.g. unitdp&#x3D;4 – (Unit Decimal Places) You can opt in to use four decimal places for unit amounts | [optional]
**page_size** | **Integer**| Number of records to retrieve per page | [optional]
**invoice_numbers** | [**Array&lt;String&gt;**](String.md)| Filter by a comma-separated list of InvoiceNumbers | [optional]

### Return type

Expand Down
2 changes: 2 additions & 0 deletions docs/accounting/Prepayment.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ Name | Type | Description | Notes
**total_tax** | **BigDecimal** | The total tax on the prepayment | [optional]
**total** | **BigDecimal** | The total of the prepayment(subtotal + total tax) | [optional]
**reference** | **String** | Returns Invoice number field. Reference field isn&#39;t available. | [optional]
**invoice_number** | **String** | 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** | **String** | Xero generated unique identifier | [optional]
Expand All @@ -40,6 +41,7 @@ instance = XeroRuby::Accounting::Prepayment.new(type: null,
total_tax: null,
total: null,
reference: null,
invoice_number: null,
updated_date_utc: /Date(1573755038314)/,
currency_code: null,
prepayment_id: null,
Expand Down
30 changes: 28 additions & 2 deletions docs/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>13.0.0</li>
<li class="nav-header" data-group="Accounting"><strong>VSN: </strong>14.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 @@ -31610,9 +31615,10 @@ <h3>Usage and SDK Samples</h3>
page = 1
unitdp = 4
pageSize = 100
invoice_numbers = [&quot;INV-001&quot;, &quot;INV-002&quot;]

begin
response = xero_client.accounting_api.get_prepayments(xero_tenant_id, if_modified_since, where, order, page, unitdp, pageSize)
response = xero_client.accounting_api.get_prepayments(xero_tenant_id, if_modified_since, where, order, page, unitdp, pageSize, invoice_numbers)
return response
rescue XeroRuby::ApiError => e
puts "Exception when calling get_prepayments: #{e}"
Expand Down Expand Up @@ -31792,6 +31798,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/app_store/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>13.0.0</li>
<li class="nav-header" data-group="AppStore"><strong>VSN: </strong>14.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/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>13.0.0</li>
<li class="nav-header" data-group="Asset"><strong>VSN: </strong>14.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/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>13.0.0</li>
<li class="nav-header" data-group="Files"><strong>VSN: </strong>14.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/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>13.0.0</li>
<li class="nav-header" data-group="Finance"><strong>VSN: </strong>14.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/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>13.0.0</li>
<li class="nav-header" data-group="PayrollAu"><strong>VSN: </strong>14.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/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>13.0.0</li>
<li class="nav-header" data-group="PayrollAuV2"><strong>VSN: </strong>14.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/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>13.0.0</li>
<li class="nav-header" data-group="PayrollNz"><strong>VSN: </strong>14.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/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>13.0.0</li>
<li class="nav-header" data-group="PayrollUk"><strong>VSN: </strong>14.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/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>13.0.0</li>
<li class="nav-header" data-group="Project"><strong>VSN: </strong>14.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
3 changes: 3 additions & 0 deletions lib/xero-ruby/api/accounting_api.rb
Original file line number Diff line number Diff line change
Expand Up @@ -12501,6 +12501,7 @@ def get_prepayment_history_with_http_info(xero_tenant_id, prepayment_id, options
# @option opts [Integer] :page e.g. page&#x3D;1 – Up to 100 prepayments will be returned in a single API call with line items shown for each overpayment
# @option opts [Integer] :unitdp e.g. unitdp&#x3D;4 – (Unit Decimal Places) You can opt in to use four decimal places for unit amounts
# @option opts [Integer] :page_size Number of records to retrieve per page
# @option opts [Array<String>] :invoice_numbers Filter by a comma-separated list of InvoiceNumbers
# @return [Prepayments]
def get_prepayments(xero_tenant_id, opts = {})
data, _status_code, _headers = get_prepayments_with_http_info(xero_tenant_id, opts)
Expand All @@ -12516,6 +12517,7 @@ def get_prepayments(xero_tenant_id, opts = {})
# @option opts [Integer] :page e.g. page&#x3D;1 – Up to 100 prepayments will be returned in a single API call with line items shown for each overpayment
# @option opts [Integer] :unitdp e.g. unitdp&#x3D;4 – (Unit Decimal Places) You can opt in to use four decimal places for unit amounts
# @option opts [Integer] :page_size Number of records to retrieve per page
# @option opts [Array<String>] :invoice_numbers Filter by a comma-separated list of InvoiceNumbers
# @return [Array<(Prepayments, Integer, Hash)>] Prepayments data, response status code and response headers
def get_prepayments_with_http_info(xero_tenant_id, options = {})
opts = options.dup
Expand All @@ -12539,6 +12541,7 @@ def get_prepayments_with_http_info(xero_tenant_id, options = {})
query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil?
query_params[:'unitdp'] = opts[:'unitdp'] if !opts[:'unitdp'].nil?
query_params[:'pageSize'] = opts[:'page_size'] if !opts[:'page_size'].nil?
query_params[:'InvoiceNumbers'] = @api_client.build_collection_param(opts[:'invoice_numbers'], :csv) if !opts[:'invoice_numbers'].nil?

# XeroAPI's `IDs` convention openapi-generator does not snake_case properly.. manual over-riding `i_ds` malformations:
query_params[:'IDs'] = @api_client.build_collection_param(opts[:'ids'], :csv) if !opts[:'ids'].nil?
Expand Down
12 changes: 11 additions & 1 deletion lib/xero-ruby/models/accounting/prepayment.rb
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,9 @@ class Prepayment
# Returns Invoice number field. Reference field isn't available.
attr_accessor :reference

# Returns Invoice number for prepayment receive document only.
attr_accessor :invoice_number

# UTC timestamp of last update to the prepayment
attr_accessor :updated_date_utc

Expand Down Expand Up @@ -118,6 +121,7 @@ def self.attribute_map
:'total_tax' => :'TotalTax',
:'total' => :'Total',
:'reference' => :'Reference',
:'invoice_number' => :'InvoiceNumber',
:'updated_date_utc' => :'UpdatedDateUTC',
:'currency_code' => :'CurrencyCode',
:'prepayment_id' => :'PrepaymentID',
Expand All @@ -144,6 +148,7 @@ def self.openapi_types
:'total_tax' => :'BigDecimal',
:'total' => :'BigDecimal',
:'reference' => :'String',
:'invoice_number' => :'String',
:'updated_date_utc' => :'DateTime',
:'currency_code' => :'CurrencyCode',
:'prepayment_id' => :'String',
Expand Down Expand Up @@ -214,6 +219,10 @@ def initialize(attributes = {})
self.reference = attributes[:'reference']
end

if attributes.key?(:'invoice_number')
self.invoice_number = attributes[:'invoice_number']
end

if attributes.key?(:'updated_date_utc')
self.updated_date_utc = attributes[:'updated_date_utc']
end
Expand Down Expand Up @@ -315,6 +324,7 @@ def ==(o)
total_tax == o.total_tax &&
total == o.total &&
reference == o.reference &&
invoice_number == o.invoice_number &&
updated_date_utc == o.updated_date_utc &&
currency_code == o.currency_code &&
prepayment_id == o.prepayment_id &&
Expand All @@ -336,7 +346,7 @@ def eql?(o)
# Calculates hash code according to all attributes.
# @return [Integer] Hash code
def hash
[type, contact, date, status, line_amount_types, line_items, sub_total, total_tax, total, reference, updated_date_utc, currency_code, prepayment_id, currency_rate, remaining_credit, allocations, payments, applied_amount, has_attachments, attachments].hash
[type, contact, date, status, line_amount_types, line_items, sub_total, total_tax, total, reference, invoice_number, updated_date_utc, currency_code, prepayment_id, currency_rate, remaining_credit, allocations, payments, applied_amount, has_attachments, attachments].hash
end

# Builds the object from hash
Expand Down
Loading
Loading