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 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: 16.2.0
// The version of the OpenAPI document: 19.0.0


using System;
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: 16.2.0
// The version of the OpenAPI document: 19.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: 16.2.0
// The version of the OpenAPI document: 19.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: 16.2.0
// The version of the OpenAPI document: 19.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: 16.2.0
// The version of the OpenAPI document: 19.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: 16.2.0
// The version of the OpenAPI document: 19.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: 16.2.0
// The version of the OpenAPI document: 19.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: 16.2.0
// The version of the OpenAPI document: 19.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: 16.2.0
// The version of the OpenAPI document: 19.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: 16.2.0
// The version of the OpenAPI document: 19.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: 16.2.0
// The version of the OpenAPI document: 19.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: 16.2.0
// The version of the OpenAPI document: 19.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 = "18.1.0";
public const string Version = "18.2.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-18.1.0";
UserAgent = "xero-netstandard-18.2.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: 16.2.0\n";
report += " SDK Package Version: 18.1.0\n";
report += " Version of the API: 19.0.0\n";
report += " SDK Package Version: 18.2.0\n";

return report;
}
Expand Down
2 changes: 1 addition & 1 deletion Xero.NetStandard.OAuth2/Model/Accounting/CreditNote.cs
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@ public enum StatusEnum
/// </summary>
/// <value>Boolean to set whether the credit note in the Xero app should be marked as “sent”. This can be set only on credit notes that have been approved</value>
[DataMember(Name="SentToContact", EmitDefaultValue=false)]
public bool? SentToContact { get; private set; }
public bool? SentToContact { get; set; }

/// <summary>
/// The currency rate for a multicurrency invoice. If no rate is specified, the XE.com day rate is used
Expand Down
48 changes: 39 additions & 9 deletions Xero.NetStandard.OAuth2/Model/Accounting/Invoice.cs
Original file line number Diff line number Diff line change
Expand Up @@ -253,25 +253,25 @@ public enum StatusEnum
public decimal? CISRate { get; private set; }

/// <summary>
/// Total of invoice excluding taxes
/// Total of invoice excluding taxes. Calculated automatically by Xero from the invoice&#39;s line items. Only for ACCPAY and ACCREC invoices, where this opt-in capability is enabled for your organisation, can SubTotal be supplied on write – on a SUBMITTED or AUTHORISED invoice supplied together with TotalTax and Total, it is validated against the calculated line item totals (see RoundingAmount); it is ignored in all other cases. This write behaviour, and the returned value reflecting it, only applies to the Create and Update endpoints (POST/PUT) and to retrieving a single invoice by ID (GET by ID) – it does not apply when listing invoices (GET)
/// </summary>
/// <value>Total of invoice excluding taxes</value>
/// <value>Total of invoice excluding taxes. Calculated automatically by Xero from the invoice&#39;s line items. Only for ACCPAY and ACCREC invoices, where this opt-in capability is enabled for your organisation, can SubTotal be supplied on write – on a SUBMITTED or AUTHORISED invoice supplied together with TotalTax and Total, it is validated against the calculated line item totals (see RoundingAmount); it is ignored in all other cases. This write behaviour, and the returned value reflecting it, only applies to the Create and Update endpoints (POST/PUT) and to retrieving a single invoice by ID (GET by ID) – it does not apply when listing invoices (GET) </value>
[DataMember(Name="SubTotal", EmitDefaultValue=false)]
public decimal? SubTotal { get; private set; }
public decimal? SubTotal { get; set; }

/// <summary>
/// Total tax on invoice
/// Total tax on invoice. Calculated automatically by Xero from the invoice&#39;s line items. Only for ACCPAY and ACCREC invoices, where this opt-in capability is enabled for your organisation, can TotalTax be supplied on write – on a SUBMITTED or AUTHORISED invoice supplied together with SubTotal and Total, it is validated against the calculated line item totals (see RoundingAmount); it is ignored in all other cases. This write behaviour, and the returned value reflecting it, only applies to the Create and Update endpoints (POST/PUT) and to retrieving a single invoice by ID (GET by ID) – it does not apply when listing invoices (GET)
/// </summary>
/// <value>Total tax on invoice</value>
/// <value>Total tax on invoice. Calculated automatically by Xero from the invoice&#39;s line items. Only for ACCPAY and ACCREC invoices, where this opt-in capability is enabled for your organisation, can TotalTax be supplied on write – on a SUBMITTED or AUTHORISED invoice supplied together with SubTotal and Total, it is validated against the calculated line item totals (see RoundingAmount); it is ignored in all other cases. This write behaviour, and the returned value reflecting it, only applies to the Create and Update endpoints (POST/PUT) and to retrieving a single invoice by ID (GET by ID) – it does not apply when listing invoices (GET) </value>
[DataMember(Name="TotalTax", EmitDefaultValue=false)]
public decimal? TotalTax { get; private set; }
public decimal? TotalTax { get; set; }

/// <summary>
/// Total of Invoice tax inclusive (i.e. SubTotal + TotalTax). This will be ignored if it doesn’t equal the sum of the LineAmounts
/// Total of Invoice tax inclusive (i.e. SubTotal + TotalTax + RoundingAmount). Calculated automatically by Xero from the invoice&#39;s line items. Only for ACCPAY and ACCREC invoices, where this opt-in capability is enabled for your organisation, can Total be supplied on write – on a SUBMITTED or AUTHORISED invoice supplied together with SubTotal and TotalTax, it is validated against the calculated line item totals plus RoundingAmount; in all other cases this will be ignored if it does not equal the sum of the LineAmounts. This write behaviour, and the returned value reflecting it, only applies to the Create and Update endpoints (POST/PUT) and to retrieving a single invoice by ID (GET by ID) – it does not apply when listing invoices (GET)
/// </summary>
/// <value>Total of Invoice tax inclusive (i.e. SubTotal + TotalTax). This will be ignored if it doesn’t equal the sum of the LineAmounts</value>
/// <value>Total of Invoice tax inclusive (i.e. SubTotal + TotalTax + RoundingAmount). Calculated automatically by Xero from the invoice&#39;s line items. Only for ACCPAY and ACCREC invoices, where this opt-in capability is enabled for your organisation, can Total be supplied on write – on a SUBMITTED or AUTHORISED invoice supplied together with SubTotal and TotalTax, it is validated against the calculated line item totals plus RoundingAmount; in all other cases this will be ignored if it does not equal the sum of the LineAmounts. This write behaviour, and the returned value reflecting it, only applies to the Create and Update endpoints (POST/PUT) and to retrieving a single invoice by ID (GET by ID) – it does not apply when listing invoices (GET) </value>
[DataMember(Name="Total", EmitDefaultValue=false)]
public decimal? Total { get; private set; }
public decimal? Total { get; set; }

/// <summary>
/// Total of discounts applied on the invoice line items
Expand All @@ -280,6 +280,20 @@ public enum StatusEnum
[DataMember(Name="TotalDiscount", EmitDefaultValue=false)]
public decimal? TotalDiscount { get; private set; }

/// <summary>
/// An optional rounding adjustment added to SubTotal + TotalTax to give Total (i.e. Total &#x3D; SubTotal + TotalTax + RoundingAmount). Only applies to ACCPAY and ACCREC invoices, and only if this opt-in capability has been enabled for your organisation. Not validated while the invoice is DRAFT. For SUBMITTED and AUTHORISED invoices, RoundingAmount is only applied when SubTotal, TotalTax and Total are all supplied together, and must be between -0.10 and 0.10 – values outside this range are rejected with a validation error (on DRAFT invoices, an out-of-range value is ignored instead). This field is only settable and only returned via the Create and Update endpoints (POST/PUT) and when retrieving a single invoice by ID (GET by ID) – it is not returned when listing invoices (GET)
/// </summary>
/// <value>An optional rounding adjustment added to SubTotal + TotalTax to give Total (i.e. Total &#x3D; SubTotal + TotalTax + RoundingAmount). Only applies to ACCPAY and ACCREC invoices, and only if this opt-in capability has been enabled for your organisation. Not validated while the invoice is DRAFT. For SUBMITTED and AUTHORISED invoices, RoundingAmount is only applied when SubTotal, TotalTax and Total are all supplied together, and must be between -0.10 and 0.10 – values outside this range are rejected with a validation error (on DRAFT invoices, an out-of-range value is ignored instead). This field is only settable and only returned via the Create and Update endpoints (POST/PUT) and when retrieving a single invoice by ID (GET by ID) – it is not returned when listing invoices (GET) </value>
[DataMember(Name="RoundingAmount", EmitDefaultValue=false)]
public decimal? RoundingAmount { get; set; }

/// <summary>
/// The total amount as originally entered for the invoice, before any RoundingAmount adjustment is applied. Only applies to ACCPAY and ACCREC invoices, and only if this opt-in capability has been enabled for your organisation. Can only be set while the invoice is DRAFT; once the invoice is no longer DRAFT this reflects Total. This field is only settable and only returned via the Create and Update endpoints (POST/PUT) and when retrieving a single invoice by ID (GET by ID) – it is not returned when listing invoices (GET)
/// </summary>
/// <value>The total amount as originally entered for the invoice, before any RoundingAmount adjustment is applied. Only applies to ACCPAY and ACCREC invoices, and only if this opt-in capability has been enabled for your organisation. Can only be set while the invoice is DRAFT; once the invoice is no longer DRAFT this reflects Total. This field is only settable and only returned via the Create and Update endpoints (POST/PUT) and when retrieving a single invoice by ID (GET by ID) – it is not returned when listing invoices (GET) </value>
[DataMember(Name="EnteredTotal", EmitDefaultValue=false)]
public decimal? EnteredTotal { get; set; }

/// <summary>
/// Xero generated unique identifier for invoice
/// </summary>
Expand Down Expand Up @@ -450,6 +464,8 @@ public override string ToString()
sb.Append(" TotalTax: ").Append(TotalTax).Append("\n");
sb.Append(" Total: ").Append(Total).Append("\n");
sb.Append(" TotalDiscount: ").Append(TotalDiscount).Append("\n");
sb.Append(" RoundingAmount: ").Append(RoundingAmount).Append("\n");
sb.Append(" EnteredTotal: ").Append(EnteredTotal).Append("\n");
sb.Append(" InvoiceID: ").Append(InvoiceID).Append("\n");
sb.Append(" RepeatingInvoiceID: ").Append(RepeatingInvoiceID).Append("\n");
sb.Append(" HasAttachments: ").Append(HasAttachments).Append("\n");
Expand Down Expand Up @@ -611,6 +627,16 @@ public bool Equals(Invoice input)
(this.TotalDiscount != null &&
this.TotalDiscount.Equals(input.TotalDiscount))
) &&
(
this.RoundingAmount == input.RoundingAmount ||
(this.RoundingAmount != null &&
this.RoundingAmount.Equals(input.RoundingAmount))
) &&
(
this.EnteredTotal == input.EnteredTotal ||
(this.EnteredTotal != null &&
this.EnteredTotal.Equals(input.EnteredTotal))
) &&
(
this.InvoiceID == input.InvoiceID ||
(this.InvoiceID != null &&
Expand Down Expand Up @@ -770,6 +796,10 @@ public override int GetHashCode()
hashCode = hashCode * 59 + this.Total.GetHashCode();
if (this.TotalDiscount != null)
hashCode = hashCode * 59 + this.TotalDiscount.GetHashCode();
if (this.RoundingAmount != null)
hashCode = hashCode * 59 + this.RoundingAmount.GetHashCode();
if (this.EnteredTotal != null)
hashCode = hashCode * 59 + this.EnteredTotal.GetHashCode();
if (this.InvoiceID != null)
hashCode = hashCode * 59 + this.InvoiceID.GetHashCode();
if (this.RepeatingInvoiceID != null)
Expand Down
8 changes: 7 additions & 1 deletion Xero.NetStandard.OAuth2/Model/PayrollUk/EmploymentStatus.cs
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,13 @@ public enum EmploymentStatus
/// Enum Unspecified for value: Unspecified
/// </summary>
[EnumMember(Value = "Unspecified")]
Unspecified = 3
Unspecified = 3,

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

}

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>18.1.0</Version>
<Version>18.2.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
Loading
Loading