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
27 changes: 21 additions & 6 deletions Xero.NetStandard.OAuth2/Api/AccountingApi.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
* Generated by: https://github.com/openapitools/openapi-generator.git
*/

// The version of the OpenAPI document: 11.1.0
// The version of the OpenAPI document: 12.0.0


using System;
Expand Down Expand Up @@ -4646,9 +4646,10 @@ public interface IAccountingApiAsync : IApiAccessor
/// <param name="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 (optional)</param>
/// <param name="unitdp">e.g. unitdp&#x3D;4 – (Unit Decimal Places) You can opt in to use four decimal places for unit amounts (optional)</param>
/// <param name="pageSize">Number of records to retrieve per page (optional)</param>
/// <param name="invoiceNumbers">Filter by a comma-separated list of InvoiceNumbers (optional)</param>
/// <param name="cancellationToken">Cancellation token enables cancellation between threads. Defaults to CancellationToken.None</param>
/// <returns>Task of Prepayments</returns>
System.Threading.Tasks.Task<Prepayments> GetPrepaymentsAsync (string accessToken, string xeroTenantId, DateTime? ifModifiedSince = null, string where = null, string order = null, int? page = null, int? unitdp = null, int? pageSize = null, CancellationToken cancellationToken = default);
System.Threading.Tasks.Task<Prepayments> GetPrepaymentsAsync (string accessToken, string xeroTenantId, DateTime? ifModifiedSince = null, string where = null, string order = null, int? page = null, int? unitdp = null, int? pageSize = null, List<string> invoiceNumbers = null, CancellationToken cancellationToken = default);

/// <summary>
/// Retrieves prepayments
Expand All @@ -4665,9 +4666,10 @@ public interface IAccountingApiAsync : IApiAccessor
/// <param name="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 (optional)</param>
/// <param name="unitdp">e.g. unitdp&#x3D;4 – (Unit Decimal Places) You can opt in to use four decimal places for unit amounts (optional)</param>
/// <param name="pageSize">Number of records to retrieve per page (optional)</param>
/// <param name="invoiceNumbers">Filter by a comma-separated list of InvoiceNumbers (optional)</param>
/// <param name="cancellationToken">Cancellation token enables cancellation between threads. Defaults to CancellationToken.None</param>
/// <returns>Task of ApiResponse (Prepayments)</returns>
System.Threading.Tasks.Task<ApiResponse<Prepayments>> GetPrepaymentsAsyncWithHttpInfo (string accessToken, string xeroTenantId, DateTime? ifModifiedSince = null, string where = null, string order = null, int? page = null, int? unitdp = null, int? pageSize = null, CancellationToken cancellationToken = default);
System.Threading.Tasks.Task<ApiResponse<Prepayments>> GetPrepaymentsAsyncWithHttpInfo (string accessToken, string xeroTenantId, DateTime? ifModifiedSince = null, string where = null, string order = null, int? page = null, int? unitdp = null, int? pageSize = null, List<string> invoiceNumbers = null, CancellationToken cancellationToken = default);
/// <summary>
/// Retrieves a specific purchase order using a unique purchase order Id
/// </summary>
Expand Down Expand Up @@ -21404,11 +21406,12 @@ public async System.Threading.Tasks.Task<HistoryRecords> GetPrepaymentHistoryAsy
/// <param name="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 (optional)</param>
/// <param name="unitdp">e.g. unitdp&#x3D;4 – (Unit Decimal Places) You can opt in to use four decimal places for unit amounts (optional)</param>
/// <param name="pageSize">Number of records to retrieve per page (optional)</param>
/// <param name="invoiceNumbers">Filter by a comma-separated list of InvoiceNumbers (optional)</param>
/// <param name="cancellationToken">Cancellation token enables cancellation between threads. Defaults to CancellationToken.None</param>
/// <returns>Task of Prepayments</returns>
public async System.Threading.Tasks.Task<Prepayments> GetPrepaymentsAsync (string accessToken, string xeroTenantId, DateTime? ifModifiedSince = null, string where = null, string order = null, int? page = null, int? unitdp = null, int? pageSize = null, CancellationToken cancellationToken = default)
public async System.Threading.Tasks.Task<Prepayments> GetPrepaymentsAsync (string accessToken, string xeroTenantId, DateTime? ifModifiedSince = null, string where = null, string order = null, int? page = null, int? unitdp = null, int? pageSize = null, List<string> invoiceNumbers = null, CancellationToken cancellationToken = default)
{
Xero.NetStandard.OAuth2.Client.ApiResponse<Prepayments> localVarResponse = await GetPrepaymentsAsyncWithHttpInfo(accessToken, xeroTenantId, ifModifiedSince, where, order, page, unitdp, pageSize, cancellationToken);
Xero.NetStandard.OAuth2.Client.ApiResponse<Prepayments> localVarResponse = await GetPrepaymentsAsyncWithHttpInfo(accessToken, xeroTenantId, ifModifiedSince, where, order, page, unitdp, pageSize, invoiceNumbers, cancellationToken);
return localVarResponse.Data;

}
Expand All @@ -21425,9 +21428,10 @@ public async System.Threading.Tasks.Task<Prepayments> GetPrepaymentsAsync (strin
/// <param name="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 (optional)</param>
/// <param name="unitdp">e.g. unitdp&#x3D;4 – (Unit Decimal Places) You can opt in to use four decimal places for unit amounts (optional)</param>
/// <param name="pageSize">Number of records to retrieve per page (optional)</param>
/// <param name="invoiceNumbers">Filter by a comma-separated list of InvoiceNumbers (optional)</param>
/// <param name="cancellationToken">Cancellation token enables cancellation between threads. Defaults to CancellationToken.None</param>
/// <returns>Task of ApiResponse (Prepayments)</returns>
public async System.Threading.Tasks.Task<Xero.NetStandard.OAuth2.Client.ApiResponse<Prepayments>> GetPrepaymentsAsyncWithHttpInfo (string accessToken, string xeroTenantId, DateTime? ifModifiedSince = null, string where = null, string order = null, int? page = null, int? unitdp = null, int? pageSize = null, CancellationToken cancellationToken = default)
public async System.Threading.Tasks.Task<Xero.NetStandard.OAuth2.Client.ApiResponse<Prepayments>> GetPrepaymentsAsyncWithHttpInfo (string accessToken, string xeroTenantId, DateTime? ifModifiedSince = null, string where = null, string order = null, int? page = null, int? unitdp = null, int? pageSize = null, List<string> invoiceNumbers = null, CancellationToken cancellationToken = default)
{
// verify the required parameter 'xeroTenantId' is set
if (xeroTenantId == null)
Expand Down Expand Up @@ -21505,6 +21509,17 @@ public async System.Threading.Tasks.Task<Prepayments> GetPrepaymentsAsync (strin
}
}
}

if (invoiceNumbers != null)
{
foreach (var kvp in Xero.NetStandard.OAuth2.Client.ClientUtils.ParameterToMultiMap("csv", "InvoiceNumbers", invoiceNumbers))
{
foreach (var value in kvp.Value)
{
requestOptions.QueryParameters.Add(kvp.Key, value);
}
}
}
if (xeroTenantId != null)
requestOptions.HeaderParameters.Add("xero-tenant-id", Xero.NetStandard.OAuth2.Client.ClientUtils.ParameterToString(xeroTenantId)); // header parameter
if (ifModifiedSince != null)
Expand Down
2 changes: 1 addition & 1 deletion Xero.NetStandard.OAuth2/Api/AppStoreApi.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
* Generated by: https://github.com/openapitools/openapi-generator.git
*/

// The version of the OpenAPI document: 11.1.0
// The version of the OpenAPI document: 12.0.0


using System;
Expand Down
2 changes: 1 addition & 1 deletion Xero.NetStandard.OAuth2/Api/AssetApi.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
* Generated by: https://github.com/openapitools/openapi-generator.git
*/

// The version of the OpenAPI document: 11.1.0
// The version of the OpenAPI document: 12.0.0


using System;
Expand Down Expand Up @@ -772,7 +772,7 @@
requestOptions.HeaderParameters.Add("Accept", accept);


if (status != null)

Check warning on line 775 in Xero.NetStandard.OAuth2/Api/AssetApi.cs

View workflow job for this annotation

GitHub Actions / build-test-lint

The result of the expression is always 'true' since a value of type 'AssetStatusQueryParam' is never equal to 'null' of type 'AssetStatusQueryParam?'
{
foreach (var kvp in Xero.NetStandard.OAuth2.Client.ClientUtils.ParameterToMultiMap("", "status", status))
{
Expand Down
2 changes: 1 addition & 1 deletion Xero.NetStandard.OAuth2/Api/BankFeedsApi.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
* Generated by: https://github.com/openapitools/openapi-generator.git
*/

// The version of the OpenAPI document: 11.1.0
// The version of the OpenAPI document: 12.0.0


using System;
Expand Down
2 changes: 1 addition & 1 deletion Xero.NetStandard.OAuth2/Api/FilesApi.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
* Generated by: https://github.com/openapitools/openapi-generator.git
*/

// The version of the OpenAPI document: 11.1.0
// The version of the OpenAPI document: 12.0.0


using System;
Expand Down
2 changes: 1 addition & 1 deletion Xero.NetStandard.OAuth2/Api/FinanceApi.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
* Generated by: https://github.com/openapitools/openapi-generator.git
*/

// The version of the OpenAPI document: 11.1.0
// The version of the OpenAPI document: 12.0.0


using System;
Expand Down
2 changes: 1 addition & 1 deletion Xero.NetStandard.OAuth2/Api/IdentityApi.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
* Generated by: https://github.com/openapitools/openapi-generator.git
*/

// The version of the OpenAPI document: 11.1.0
// The version of the OpenAPI document: 12.0.0


using System;
Expand Down
2 changes: 1 addition & 1 deletion Xero.NetStandard.OAuth2/Api/PayrollAUApi.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
* Generated by: https://github.com/openapitools/openapi-generator.git
*/

// The version of the OpenAPI document: 11.1.0
// The version of the OpenAPI document: 12.0.0


using System;
Expand Down
2 changes: 1 addition & 1 deletion Xero.NetStandard.OAuth2/Api/PayrollAUV2Api.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
* Generated by: https://github.com/openapitools/openapi-generator.git
*/

// The version of the OpenAPI document: 11.1.0
// The version of the OpenAPI document: 12.0.0


using System;
Expand Down
2 changes: 1 addition & 1 deletion Xero.NetStandard.OAuth2/Api/PayrollNZApi.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
* Generated by: https://github.com/openapitools/openapi-generator.git
*/

// The version of the OpenAPI document: 11.1.0
// The version of the OpenAPI document: 12.0.0


using System;
Expand Down
2 changes: 1 addition & 1 deletion Xero.NetStandard.OAuth2/Api/PayrollUkApi.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
* Generated by: https://github.com/openapitools/openapi-generator.git
*/

// The version of the OpenAPI document: 11.1.0
// The version of the OpenAPI document: 12.0.0


using System;
Expand Down
2 changes: 1 addition & 1 deletion Xero.NetStandard.OAuth2/Api/ProjectApi.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
* Generated by: https://github.com/openapitools/openapi-generator.git
*/

// The version of the OpenAPI document: 11.1.0
// The version of the OpenAPI document: 12.0.0


using System;
Expand Down
8 changes: 4 additions & 4 deletions Xero.NetStandard.OAuth2/Client/Configuration.cs
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ public class Configuration : IReadableConfiguration
/// Version of the package.
/// </summary>
/// <value>Version of the package.</value>
public const string Version = "13.0.0";
public const string Version = "14.0.0";

/// <summary>
/// Identifier for ISO 8601 DateTime Format
Expand Down Expand Up @@ -103,7 +103,7 @@ public class Configuration : IReadableConfiguration
[System.Diagnostics.CodeAnalysis.SuppressMessage("ReSharper", "VirtualMemberCallInConstructor")]
public Configuration()
{
UserAgent = "xero-netstandard-13.0.0";
UserAgent = "xero-netstandard-14.0.0";
BasePath = "https://api.xero.com/api.xro/2.0";
DefaultHeader = new ConcurrentDictionary<string, string>();
ApiKey = new ConcurrentDictionary<string, string>();
Expand Down Expand Up @@ -341,8 +341,8 @@ public static String ToDebugReport()
{
String report = "C# SDK (Xero.NetStandard.OAuth2) Debug Report:\n";
report += " OS: " + System.Runtime.InteropServices.RuntimeInformation.OSDescription + "\n";
report += " Version of the API: 11.1.0\n";
report += " SDK Package Version: 13.0.0\n";
report += " Version of the API: 12.0.0\n";
report += " SDK Package Version: 14.0.0\n";

return report;
}
Expand Down
15 changes: 15 additions & 0 deletions Xero.NetStandard.OAuth2/Model/Accounting/Prepayment.cs
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,13 @@ public enum StatusEnum
[DataMember(Name="Reference", EmitDefaultValue=false)]
public string Reference { get; private set; }

/// <summary>
/// Returns Invoice number for prepayment receive document only.
/// </summary>
/// <value>Returns Invoice number for prepayment receive document only.</value>
[DataMember(Name="InvoiceNumber", EmitDefaultValue=false)]
public string InvoiceNumber { get; private set; }

/// <summary>
/// UTC timestamp of last update to the prepayment
/// </summary>
Expand Down Expand Up @@ -242,6 +249,7 @@ public override string ToString()
sb.Append(" TotalTax: ").Append(TotalTax).Append("\n");
sb.Append(" Total: ").Append(Total).Append("\n");
sb.Append(" Reference: ").Append(Reference).Append("\n");
sb.Append(" InvoiceNumber: ").Append(InvoiceNumber).Append("\n");
sb.Append(" UpdatedDateUTC: ").Append(UpdatedDateUTC).Append("\n");
sb.Append(" CurrencyCode: ").Append(CurrencyCode).Append("\n");
sb.Append(" PrepaymentID: ").Append(PrepaymentID).Append("\n");
Expand Down Expand Up @@ -334,6 +342,11 @@ public bool Equals(Prepayment input)
(this.Reference != null &&
this.Reference.Equals(input.Reference))
) &&
(
this.InvoiceNumber == input.InvoiceNumber ||
(this.InvoiceNumber != null &&
this.InvoiceNumber.Equals(input.InvoiceNumber))
) &&
(
this.UpdatedDateUTC == input.UpdatedDateUTC ||
(this.UpdatedDateUTC != null &&
Expand Down Expand Up @@ -414,6 +427,8 @@ public override int GetHashCode()
hashCode = hashCode * 59 + this.Total.GetHashCode();
if (this.Reference != null)
hashCode = hashCode * 59 + this.Reference.GetHashCode();
if (this.InvoiceNumber != null)
hashCode = hashCode * 59 + this.InvoiceNumber.GetHashCode();
if (this.UpdatedDateUTC != null)
hashCode = hashCode * 59 + this.UpdatedDateUTC.GetHashCode();
hashCode = hashCode * 59 + this.CurrencyCode.GetHashCode();
Expand Down
8 changes: 7 additions & 1 deletion Xero.NetStandard.OAuth2/Model/PayrollUk/EarningsRate.cs
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,13 @@ public enum EarningsTypeEnum
/// Enum StatutoryNeonatalCarePayNonPensionable for value: StatutoryNeonatalCarePayNonPensionable
/// </summary>
[EnumMember(Value = "StatutoryNeonatalCarePayNonPensionable")]
StatutoryNeonatalCarePayNonPensionable = 25
StatutoryNeonatalCarePayNonPensionable = 25,

/// <summary>
/// Enum StatutoryBereavementPayNorthernIreland for value: StatutoryBereavementPayNorthernIreland
/// </summary>
[EnumMember(Value = "StatutoryBereavementPayNorthernIreland")]
StatutoryBereavementPayNorthernIreland = 26

}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,13 @@ public enum TypeEnum
/// Enum NeonatalCare for value: NeonatalCare
/// </summary>
[EnumMember(Value = "NeonatalCare")]
NeonatalCare = 7
NeonatalCare = 7,

/// <summary>
/// Enum BereavementNire for value: BereavementNire
/// </summary>
[EnumMember(Value = "BereavementNire")]
BereavementNire = 8

}

Expand Down
2 changes: 1 addition & 1 deletion Xero.NetStandard.OAuth2/Xero.NetStandard.OAuth2.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
<AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects>
<GenerateBindingRedirectsOutputType>true</GenerateBindingRedirectsOutputType>
<RootNamespace>Xero.NetStandard.OAuth2</RootNamespace>
<Version>13.0.0</Version>
<Version>14.0.0</Version>
<DocumentationFile>bin\$(Configuration)\$(TargetFramework)\Xero.NetStandard.OAuth2.xml</DocumentationFile>
<PackageLicenseUrl>https://github.com/XeroAPI/Xero-NetStandard/</PackageLicenseUrl>
<PackageIconUrl>https://en.gravatar.com/userimage/180557955/74b3a957d886bc921b0d1455beed9dab.png</PackageIconUrl>
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 @@ -6351,7 +6356,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 @@ -34035,9 +34040,10 @@ <h3>Usage and SDK Samples</h3>
var page = 1;
var unitdp = 4;
var pageSize = 100;
var invoiceNumbers = new List&lt;string&gt;{&quot;INV-001&quot;,&quot;INV-002&quot;}

try {
var result = await apiInstance.GetPrepaymentsAsync(accessToken, xeroTenantId, ifModifiedSince, where, order, page, unitdp, pageSize);
var result = await apiInstance.GetPrepaymentsAsync(accessToken, xeroTenantId, ifModifiedSince, where, order, page, unitdp, pageSize, invoiceNumbers);
Console.WriteLine(result);
}
catch (Exception e)
Expand Down Expand Up @@ -34221,6 +34227,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/appstore/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -1243,7 +1243,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 @@ -1421,7 +1421,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/bankfeeds/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -1270,7 +1270,7 @@
<nav id="scrollingNav">
<ul class="sidenav nav nav-list">
<li class="nav-header" data-group="BankFeeds"><strong>SDK: </strong><span id='sdk-name'></span></li>
<li class="nav-header" data-group="BankFeeds"><strong>VSN: </strong>13.0.0</li>
<li class="nav-header" data-group="BankFeeds"><strong>VSN: </strong>14.0.0</li>
<li class="nav-header" data-group="BankFeeds"><a href="#api-BankFeeds">Methods</a></li>
<li data-group="BankFeeds" data-name="createFeedConnections" class="">
<a href="#api-BankFeeds-createFeedConnections">createFeedConnections</a>
Expand Down
Loading
Loading