Skip to content

Commit

Permalink
Generate against OpenAPI spec v2.9.2
Browse files Browse the repository at this point in the history
Xero NetStandard SDK version 3.14.1 generated against OpenAPI Spec version 2.9.2

## Accounting
Add BatchPaymentID to Payment

## Files
**Note**: if you are using named parameters the following may be a breaking change

FileId renamed to FileID
  • Loading branch information
jamie-hoffmann-xero committed Feb 11, 2021
1 parent 9186654 commit cf2617c
Show file tree
Hide file tree
Showing 12 changed files with 128 additions and 113 deletions.
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: 2.9.0
// The version of the OpenAPI document: 2.9.2


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


using System;
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: 2.9.0
// The version of the OpenAPI document: 2.9.2


using System;
Expand Down
198 changes: 99 additions & 99 deletions Xero.NetStandard.OAuth2/Api/FilesApi.cs

Large diffs are not rendered by default.

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


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


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


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


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


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 @@ -30,7 +30,7 @@ public class Configuration : IReadableConfiguration
/// Version of the package.
/// </summary>
/// <value>Version of the package.</value>
public const string Version = "3.14.0";
public const string Version = "3.14.1";

/// <summary>
/// Identifier for ISO 8601 DateTime Format
Expand Down Expand Up @@ -99,7 +99,7 @@ public class Configuration : IReadableConfiguration
[System.Diagnostics.CodeAnalysis.SuppressMessage("ReSharper", "VirtualMemberCallInConstructor")]
public Configuration()
{
UserAgent = "xero-netstandard-3.14.0";
UserAgent = "xero-netstandard-3.14.1";
BasePath = "https://api.xero.com/api.xro/2.0";
DefaultHeader = new ConcurrentDictionary<string, string>();
ApiKey = new ConcurrentDictionary<string, string>();
Expand Down Expand Up @@ -331,8 +331,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: 2.9.0\n";
report += " SDK Package Version: 3.14.0\n";
report += " Version of the API: 2.9.2\n";
report += " SDK Package Version: 3.14.1\n";

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

/// <summary>
/// Present if the payment was created as part of a batch.
/// </summary>
/// <value>Present if the payment was created as part of a batch.</value>
[DataMember(Name="BatchPaymentID", EmitDefaultValue=false)]
public Guid? BatchPaymentID { get; set; }

/// <summary>
/// The suppliers bank account number the payment is being made to
/// </summary>
Expand Down Expand Up @@ -295,6 +302,7 @@ public override string ToString()
sb.Append(" PaymentType: ").Append(PaymentType).Append("\n");
sb.Append(" UpdatedDateUTC: ").Append(UpdatedDateUTC).Append("\n");
sb.Append(" PaymentID: ").Append(PaymentID).Append("\n");
sb.Append(" BatchPaymentID: ").Append(BatchPaymentID).Append("\n");
sb.Append(" BankAccountNumber: ").Append(BankAccountNumber).Append("\n");
sb.Append(" Particulars: ").Append(Particulars).Append("\n");
sb.Append(" Details: ").Append(Details).Append("\n");
Expand Down Expand Up @@ -419,6 +427,11 @@ public bool Equals(Payment input)
(this.PaymentID != null &&
this.PaymentID.Equals(input.PaymentID))
) &&
(
this.BatchPaymentID == input.BatchPaymentID ||
(this.BatchPaymentID != null &&
this.BatchPaymentID.Equals(input.BatchPaymentID))
) &&
(
this.BankAccountNumber == input.BankAccountNumber ||
(this.BankAccountNumber != null &&
Expand Down Expand Up @@ -498,6 +511,8 @@ public override int GetHashCode()
hashCode = hashCode * 59 + this.UpdatedDateUTC.GetHashCode();
if (this.PaymentID != null)
hashCode = hashCode * 59 + this.PaymentID.GetHashCode();
if (this.BatchPaymentID != null)
hashCode = hashCode * 59 + this.BatchPaymentID.GetHashCode();
if (this.BankAccountNumber != null)
hashCode = hashCode * 59 + this.BankAccountNumber.GetHashCode();
if (this.Particulars != null)
Expand Down
4 changes: 2 additions & 2 deletions Xero.NetStandard.OAuth2/Xero.NetStandard.OAuth2.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,12 @@
<Authors>Xero API</Authors>
<Company>Xero</Company>
<AssemblyTitle>OpenAPI Library</AssemblyTitle>
<Description>A library generated from a OpenAPI doc</Description>
<Description>This is a .NETStandard SDK library, used to communicate with the Xero API using OAuth2.0. See https://github.com/XeroAPI/Xero-NetStandard for more information</Description>
<GenerateRuntimeConfigurationFiles>true</GenerateRuntimeConfigurationFiles>
<AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects>
<GenerateBindingRedirectsOutputType>true</GenerateBindingRedirectsOutputType>
<RootNamespace>Xero.NetStandard.OAuth2</RootNamespace>
<Version>3.14.0</Version>
<Version>3.14.1</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

0 comments on commit cf2617c

Please sign in to comment.