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
500 changes: 1 addition & 499 deletions Xero.NetStandard.OAuth2/Api/AccountingApi.cs

Large diffs are not rendered by default.

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: 12.0.2
// The version of the OpenAPI document: 13.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: 12.0.2
// The version of the OpenAPI document: 13.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: 12.0.2
// The version of the OpenAPI document: 13.0.0


using System;
Expand Down
10 changes: 5 additions & 5 deletions 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: 12.0.2
// The version of the OpenAPI document: 13.0.0


using System;
Expand Down Expand Up @@ -185,7 +185,7 @@ public interface IFilesApiAsync : IApiAccessor
/// <param name="objectId">Object id for single object</param>
/// <param name="pagesize">pass an optional page size value (optional)</param>
/// <param name="page">number of records to skip for pagination (optional)</param>
/// <param name="sort">values to sort by (optional)</param>
/// <param name="sort">values to sort by (optional, default to CreatedDateUtc)</param>
/// <param name="direction">direction to sort by (optional)</param>
/// <param name="cancellationToken">Cancellation token enables cancellation between threads. Defaults to CancellationToken.None</param>
/// <returns>Task of List&lt;Association&gt;</returns>
Expand All @@ -203,7 +203,7 @@ public interface IFilesApiAsync : IApiAccessor
/// <param name="objectId">Object id for single object</param>
/// <param name="pagesize">pass an optional page size value (optional)</param>
/// <param name="page">number of records to skip for pagination (optional)</param>
/// <param name="sort">values to sort by (optional)</param>
/// <param name="sort">values to sort by (optional, default to CreatedDateUtc)</param>
/// <param name="direction">direction to sort by (optional)</param>
/// <param name="cancellationToken">Cancellation token enables cancellation between threads. Defaults to CancellationToken.None</param>
/// <returns>Task of ApiResponse (List&lt;Association&gt;)</returns>
Expand Down Expand Up @@ -1104,7 +1104,7 @@ public async System.Threading.Tasks.Task DeleteFolderAsync (string accessToken,
/// <param name="objectId">Object id for single object</param>
/// <param name="pagesize">pass an optional page size value (optional)</param>
/// <param name="page">number of records to skip for pagination (optional)</param>
/// <param name="sort">values to sort by (optional)</param>
/// <param name="sort">values to sort by (optional, default to CreatedDateUtc)</param>
/// <param name="direction">direction to sort by (optional)</param>
/// <param name="cancellationToken">Cancellation token enables cancellation between threads. Defaults to CancellationToken.None</param>
/// <returns>Task of List&lt;Association&gt;</returns>
Expand All @@ -1124,7 +1124,7 @@ public async System.Threading.Tasks.Task<List<Association>> GetAssociationsByObj
/// <param name="objectId">Object id for single object</param>
/// <param name="pagesize">pass an optional page size value (optional)</param>
/// <param name="page">number of records to skip for pagination (optional)</param>
/// <param name="sort">values to sort by (optional)</param>
/// <param name="sort">values to sort by (optional, default to CreatedDateUtc)</param>
/// <param name="direction">direction to sort by (optional)</param>
/// <param name="cancellationToken">Cancellation token enables cancellation between threads. Defaults to CancellationToken.None</param>
/// <returns>Task of ApiResponse (List&lt;Association&gt;)</returns>
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: 12.0.2
// The version of the OpenAPI document: 13.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: 12.0.2
// The version of the OpenAPI document: 13.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: 12.0.2
// The version of the OpenAPI document: 13.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: 12.0.2
// The version of the OpenAPI document: 13.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: 12.0.2
// The version of the OpenAPI document: 13.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: 12.0.2
// The version of the OpenAPI document: 13.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: 12.0.2
// The version of the OpenAPI document: 13.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 = "14.0.1";
public const string Version = "15.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-14.0.1";
UserAgent = "xero-netstandard-15.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: 12.0.2\n";
report += " SDK Package Version: 14.0.1\n";
report += " Version of the API: 13.0.0\n";
report += " SDK Package Version: 15.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 @@ -182,6 +182,13 @@ public enum StatusEnum
[DataMember(Name="PrepaymentID", EmitDefaultValue=false)]
public Guid? PrepaymentID { get; set; }

/// <summary>
/// The unique identifier of the branding template applied to a receive prepayment
/// </summary>
/// <value>The unique identifier of the branding template applied to a receive prepayment</value>
[DataMember(Name="BrandingThemeID", EmitDefaultValue=false)]
public Guid? BrandingThemeID { get; private set; }

/// <summary>
/// The currency rate for a multicurrency prepayment. If no rate is specified, the XE.com day rate is used
/// </summary>
Expand Down Expand Up @@ -253,6 +260,7 @@ public override string ToString()
sb.Append(" UpdatedDateUTC: ").Append(UpdatedDateUTC).Append("\n");
sb.Append(" CurrencyCode: ").Append(CurrencyCode).Append("\n");
sb.Append(" PrepaymentID: ").Append(PrepaymentID).Append("\n");
sb.Append(" BrandingThemeID: ").Append(BrandingThemeID).Append("\n");
sb.Append(" CurrencyRate: ").Append(CurrencyRate).Append("\n");
sb.Append(" RemainingCredit: ").Append(RemainingCredit).Append("\n");
sb.Append(" Allocations: ").Append(Allocations).Append("\n");
Expand Down Expand Up @@ -361,6 +369,11 @@ public bool Equals(Prepayment input)
(this.PrepaymentID != null &&
this.PrepaymentID.Equals(input.PrepaymentID))
) &&
(
this.BrandingThemeID == input.BrandingThemeID ||
(this.BrandingThemeID != null &&
this.BrandingThemeID.Equals(input.BrandingThemeID))
) &&
(
this.CurrencyRate == input.CurrencyRate ||
(this.CurrencyRate != null &&
Expand Down Expand Up @@ -434,6 +447,8 @@ public override int GetHashCode()
hashCode = hashCode * 59 + this.CurrencyCode.GetHashCode();
if (this.PrepaymentID != null)
hashCode = hashCode * 59 + this.PrepaymentID.GetHashCode();
if (this.BrandingThemeID != null)
hashCode = hashCode * 59 + this.BrandingThemeID.GetHashCode();
if (this.CurrencyRate != null)
hashCode = hashCode * 59 + this.CurrencyRate.GetHashCode();
if (this.RemainingCredit != null)
Expand Down
30 changes: 30 additions & 0 deletions Xero.NetStandard.OAuth2/Model/Files/Association.cs
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,20 @@ public partial class Association : IEquatable<Association>, IValidatableObject
[DataMember(Name="Size", EmitDefaultValue=false)]
public int? Size { get; set; }

/// <summary>
/// The date the file was created (UTC). Note- The CreatedDateUtc element is only returned when using /Associations/{ObjectId} endpoint.
/// </summary>
/// <value>The date the file was created (UTC). Note- The CreatedDateUtc element is only returned when using /Associations/{ObjectId} endpoint.</value>
[DataMember(Name="CreatedDateUtc", EmitDefaultValue=false)]
public DateTime? CreatedDateUtc { get; set; }

/// <summary>
/// The date the file was associated with the object (UTC). Note- The AssociationDateUtc element is only returned when using /Associations/{ObjectId} endpoint.
/// </summary>
/// <value>The date the file was associated with the object (UTC). Note- The AssociationDateUtc element is only returned when using /Associations/{ObjectId} endpoint.</value>
[DataMember(Name="AssociationDateUtc", EmitDefaultValue=false)]
public DateTime? AssociationDateUtc { get; set; }

/// <summary>
/// The unique identifier of the file
/// </summary>
Expand All @@ -87,6 +101,8 @@ public override string ToString()
sb.Append(" SendWithObject: ").Append(SendWithObject).Append("\n");
sb.Append(" Name: ").Append(Name).Append("\n");
sb.Append(" Size: ").Append(Size).Append("\n");
sb.Append(" CreatedDateUtc: ").Append(CreatedDateUtc).Append("\n");
sb.Append(" AssociationDateUtc: ").Append(AssociationDateUtc).Append("\n");
sb.Append(" FileId: ").Append(FileId).Append("\n");
sb.Append(" ObjectId: ").Append(ObjectId).Append("\n");
sb.Append(" ObjectGroup: ").Append(ObjectGroup).Append("\n");
Expand Down Expand Up @@ -140,6 +156,16 @@ public bool Equals(Association input)
(this.Size != null &&
this.Size.Equals(input.Size))
) &&
(
this.CreatedDateUtc == input.CreatedDateUtc ||
(this.CreatedDateUtc != null &&
this.CreatedDateUtc.Equals(input.CreatedDateUtc))
) &&
(
this.AssociationDateUtc == input.AssociationDateUtc ||
(this.AssociationDateUtc != null &&
this.AssociationDateUtc.Equals(input.AssociationDateUtc))
) &&
(
this.FileId == input.FileId ||
(this.FileId != null &&
Expand Down Expand Up @@ -175,6 +201,10 @@ public override int GetHashCode()
hashCode = hashCode * 59 + this.Name.GetHashCode();
if (this.Size != null)
hashCode = hashCode * 59 + this.Size.GetHashCode();
if (this.CreatedDateUtc != null)
hashCode = hashCode * 59 + this.CreatedDateUtc.GetHashCode();
if (this.AssociationDateUtc != null)
hashCode = hashCode * 59 + this.AssociationDateUtc.GetHashCode();
if (this.FileId != null)
hashCode = hashCode * 59 + this.FileId.GetHashCode();
if (this.ObjectId != null)
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>14.0.1</Version>
<Version>15.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
Loading
Loading