Skip to content

Commit

Permalink
DE-1099 Release 6.1.0 (#45)
Browse files Browse the repository at this point in the history
* Added ScheduleSubscriptionCancellationEnabled property to the Site model
* Added string representations for exceptions models
* Removed this. from properties names in model string representations
  • Loading branch information
lucassus authored Jan 21, 2025
1 parent f28d454 commit 6ee6458
Show file tree
Hide file tree
Showing 548 changed files with 3,396 additions and 2,940 deletions.
8 changes: 4 additions & 4 deletions AdvancedBilling.Standard/AdvancedBilling.Standard.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,13 @@
<PropertyGroup>
<TargetFramework>netstandard2.0</TargetFramework>
<AssemblyName>Maxio.AdvancedBillingSdk</AssemblyName>
<Version>6.0.0.0</Version>
<Version>6.1.0.0</Version>
<Authors>MaxioSdk</Authors>
<Owners></Owners>
<Product>AdvancedBilling.Standard</Product>
<Copyright>Copyright © 2019</Copyright>
<AssemblyVersion>6.0.0.0</AssemblyVersion>
<FileVersion>6.0.0.0</FileVersion>
<AssemblyVersion>6.1.0.0</AssemblyVersion>
<FileVersion>6.1.0.0</FileVersion>
<Description>Ultimate billing and pricing flexibility for B2B SaaS.
Maxio integrates directly into your product, so you can seamlessly manage your product catalog, bill customers, and collect payments.</Description>
<LangVersion>7.3</LangVersion>
Expand All @@ -32,7 +32,7 @@ Maxio integrates directly into your product, so you can seamlessly manage your p
</PropertyGroup>

<ItemGroup>
<PackageReference Include="APIMatic.Core" Version= "[0.4.5, 0.5.0)" />
<PackageReference Include="APIMatic.Core" Version= "[0.4.6, 0.5.0)" />
<PackageReference Include="Microsoft.CSharp" Version="4.7.0" />
<None Include="..\README.md" Pack="true" PackagePath="\"/>
<None Include="..\LICENSE" Pack="true" PackagePath="\"/>
Expand Down
2 changes: 1 addition & 1 deletion AdvancedBilling.Standard/AdvancedBillingClient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ public sealed class AdvancedBillingClient : IConfiguration
};

private readonly GlobalConfiguration globalConfiguration;
private const string userAgent = "AB SDK DotNet:6.0.0 on OS {os-info}";
private const string userAgent = "AB SDK DotNet:6.1.0 on OS {os-info}";
private readonly HttpCallback httpCallback;
private readonly Lazy<APIExportsController> aPIExports;
private readonly Lazy<AdvanceInvoiceController> advanceInvoice;
Expand Down
19 changes: 19 additions & 0 deletions AdvancedBilling.Standard/Exceptions/ApiException.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
using AdvancedBilling.Standard.Http.Client;
using AdvancedBilling.Standard.Http.Request;
using AdvancedBilling.Standard.Http.Response;
using System.Collections.Generic;

namespace AdvancedBilling.Standard.Exceptions
{
Expand All @@ -20,5 +21,23 @@ public class ApiException : CoreApiException<HttpRequest, HttpResponse, HttpCont
/// <param name="reason"> The reason for throwing exception.</param>
/// <param name="context"> The HTTP context that encapsulates request and response objects.</param>
public ApiException(string reason, HttpContext context = null) : base(reason, context) { }

/// <inheritdoc/>
public override string ToString()
{
var toStringOutput = new List<string>();
ToString(toStringOutput);
return $"ApiException : ({string.Join(", ", toStringOutput)})";
}

/// <summary>
/// ToString overload.
/// </summary>
/// <param name="toStringOutput">List of strings.</param>
protected void ToString(List<string> toStringOutput)
{
toStringOutput.Add($"StatusCode = {HttpContext?.Response?.StatusCode}");
toStringOutput.Add($"Message = {Message}");
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -38,5 +38,23 @@ public ComponentAllocationErrorException(string reason, HttpContext context)
/// </summary>
[JsonProperty("errors", NullValueHandling = NullValueHandling.Ignore)]
public List<Models.ComponentAllocationErrorItem> Errors { get; set; }

/// <inheritdoc/>
public override string ToString()
{
var toStringOutput = new List<string>();
this.ToString(toStringOutput);
return $"ComponentAllocationErrorException : ({string.Join(", ", toStringOutput)})";
}

/// <summary>
/// ToString overload.
/// </summary>
/// <param name="toStringOutput">List of strings.</param>
protected new void ToString(List<string> toStringOutput)
{
base.ToString(toStringOutput);
toStringOutput.Add($"Errors = {(this.Errors == null ? "null" : $"[{string.Join(", ", this.Errors)} ]")}");
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -38,5 +38,23 @@ public ComponentPricePointErrorException(string reason, HttpContext context)
/// </summary>
[JsonProperty("errors", NullValueHandling = NullValueHandling.Ignore)]
public List<Models.ComponentPricePointErrorItem> Errors { get; set; }

/// <inheritdoc/>
public override string ToString()
{
var toStringOutput = new List<string>();
this.ToString(toStringOutput);
return $"ComponentPricePointErrorException : ({string.Join(", ", toStringOutput)})";
}

/// <summary>
/// ToString overload.
/// </summary>
/// <param name="toStringOutput">List of strings.</param>
protected new void ToString(List<string> toStringOutput)
{
base.ToString(toStringOutput);
toStringOutput.Add($"Errors = {(this.Errors == null ? "null" : $"[{string.Join(", ", this.Errors)} ]")}");
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -39,5 +39,23 @@ public CustomerErrorResponseException(string reason, HttpContext context)
/// </summary>
[JsonProperty("errors", NullValueHandling = NullValueHandling.Ignore)]
public CustomerErrorResponseErrors Errors { get; set; }

/// <inheritdoc/>
public override string ToString()
{
var toStringOutput = new List<string>();
this.ToString(toStringOutput);
return $"CustomerErrorResponseException : ({string.Join(", ", toStringOutput)})";
}

/// <summary>
/// ToString overload.
/// </summary>
/// <param name="toStringOutput">List of strings.</param>
protected new void ToString(List<string> toStringOutput)
{
base.ToString(toStringOutput);
toStringOutput.Add($"Errors = {(this.Errors == null ? "null" : this.Errors.ToString())}");
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -38,5 +38,23 @@ public ErrorArrayMapResponseException(string reason, HttpContext context)
/// </summary>
[JsonProperty("errors", NullValueHandling = NullValueHandling.Ignore)]
public object Errors { get; set; }

/// <inheritdoc/>
public override string ToString()
{
var toStringOutput = new List<string>();
this.ToString(toStringOutput);
return $"ErrorArrayMapResponseException : ({string.Join(", ", toStringOutput)})";
}

/// <summary>
/// ToString overload.
/// </summary>
/// <param name="toStringOutput">List of strings.</param>
protected new void ToString(List<string> toStringOutput)
{
base.ToString(toStringOutput);
toStringOutput.Add($"Errors = {(this.Errors == null ? "null" : this.Errors.ToString())}");
}
}
}
18 changes: 18 additions & 0 deletions AdvancedBilling.Standard/Exceptions/ErrorListResponseException.cs
Original file line number Diff line number Diff line change
Expand Up @@ -38,5 +38,23 @@ public ErrorListResponseException(string reason, HttpContext context)
/// </summary>
[JsonProperty("errors")]
public List<string> Errors { get; set; }

/// <inheritdoc/>
public override string ToString()
{
var toStringOutput = new List<string>();
this.ToString(toStringOutput);
return $"ErrorListResponseException : ({string.Join(", ", toStringOutput)})";
}

/// <summary>
/// ToString overload.
/// </summary>
/// <param name="toStringOutput">List of strings.</param>
protected new void ToString(List<string> toStringOutput)
{
base.ToString(toStringOutput);
toStringOutput.Add($"Errors = {(this.Errors == null ? "null" : $"[{string.Join(", ", this.Errors)} ]")}");
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -38,5 +38,23 @@ public ErrorStringMapResponseException(string reason, HttpContext context)
/// </summary>
[JsonProperty("errors", NullValueHandling = NullValueHandling.Ignore)]
public Dictionary<string, string> Errors { get; set; }

/// <inheritdoc/>
public override string ToString()
{
var toStringOutput = new List<string>();
this.ToString(toStringOutput);
return $"ErrorStringMapResponseException : ({string.Join(", ", toStringOutput)})";
}

/// <summary>
/// ToString overload.
/// </summary>
/// <param name="toStringOutput">List of strings.</param>
protected new void ToString(List<string> toStringOutput)
{
base.ToString(toStringOutput);
toStringOutput.Add($"Errors = {(this.Errors == null ? "null" : this.Errors.ToString())}");
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -38,5 +38,23 @@ public EventBasedBillingListSegmentsErrorsException(string reason, HttpContext c
/// </summary>
[JsonProperty("errors", NullValueHandling = NullValueHandling.Ignore)]
public Models.Errors Errors { get; set; }

/// <inheritdoc/>
public override string ToString()
{
var toStringOutput = new List<string>();
this.ToString(toStringOutput);
return $"EventBasedBillingListSegmentsErrorsException : ({string.Join(", ", toStringOutput)})";
}

/// <summary>
/// ToString overload.
/// </summary>
/// <param name="toStringOutput">List of strings.</param>
protected new void ToString(List<string> toStringOutput)
{
base.ToString(toStringOutput);
toStringOutput.Add($"Errors = {(this.Errors == null ? "null" : this.Errors.ToString())}");
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -38,5 +38,23 @@ public EventBasedBillingSegmentErrorsException(string reason, HttpContext contex
/// </summary>
[JsonProperty("errors", NullValueHandling = NullValueHandling.Ignore)]
public object Errors { get; set; }

/// <inheritdoc/>
public override string ToString()
{
var toStringOutput = new List<string>();
this.ToString(toStringOutput);
return $"EventBasedBillingSegmentErrorsException : ({string.Join(", ", toStringOutput)})";
}

/// <summary>
/// ToString overload.
/// </summary>
/// <param name="toStringOutput">List of strings.</param>
protected new void ToString(List<string> toStringOutput)
{
base.ToString(toStringOutput);
toStringOutput.Add($"Errors = {(this.Errors == null ? "null" : this.Errors.ToString())}");
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -38,5 +38,23 @@ public EventBasedBillingSegmentException(string reason, HttpContext context)
/// </summary>
[JsonProperty("errors")]
public Models.EventBasedBillingSegmentError Errors { get; set; }

/// <inheritdoc/>
public override string ToString()
{
var toStringOutput = new List<string>();
this.ToString(toStringOutput);
return $"EventBasedBillingSegmentException : ({string.Join(", ", toStringOutput)})";
}

/// <summary>
/// ToString overload.
/// </summary>
/// <param name="toStringOutput">List of strings.</param>
protected new void ToString(List<string> toStringOutput)
{
base.ToString(toStringOutput);
toStringOutput.Add($"Errors = {(this.Errors == null ? "null" : this.Errors.ToString())}");
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -38,5 +38,23 @@ public ProductPricePointErrorResponseException(string reason, HttpContext contex
/// </summary>
[JsonProperty("errors")]
public Models.ProductPricePointErrors Errors { get; set; }

/// <inheritdoc/>
public override string ToString()
{
var toStringOutput = new List<string>();
this.ToString(toStringOutput);
return $"ProductPricePointErrorResponseException : ({string.Join(", ", toStringOutput)})";
}

/// <summary>
/// ToString overload.
/// </summary>
/// <param name="toStringOutput">List of strings.</param>
protected new void ToString(List<string> toStringOutput)
{
base.ToString(toStringOutput);
toStringOutput.Add($"Errors = {(this.Errors == null ? "null" : this.Errors.ToString())}");
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -38,5 +38,23 @@ public ProformaBadRequestErrorResponseException(string reason, HttpContext conte
/// </summary>
[JsonProperty("errors", NullValueHandling = NullValueHandling.Ignore)]
public Models.ProformaError Errors { get; set; }

/// <inheritdoc/>
public override string ToString()
{
var toStringOutput = new List<string>();
this.ToString(toStringOutput);
return $"ProformaBadRequestErrorResponseException : ({string.Join(", ", toStringOutput)})";
}

/// <summary>
/// ToString overload.
/// </summary>
/// <param name="toStringOutput">List of strings.</param>
protected new void ToString(List<string> toStringOutput)
{
base.ToString(toStringOutput);
toStringOutput.Add($"Errors = {(this.Errors == null ? "null" : this.Errors.ToString())}");
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -38,5 +38,23 @@ public RefundPrepaymentBaseErrorsResponseException(string reason, HttpContext co
/// </summary>
[JsonProperty("errors", NullValueHandling = NullValueHandling.Ignore)]
public Models.RefundPrepaymentBaseRefundError Errors { get; set; }

/// <inheritdoc/>
public override string ToString()
{
var toStringOutput = new List<string>();
this.ToString(toStringOutput);
return $"RefundPrepaymentBaseErrorsResponseException : ({string.Join(", ", toStringOutput)})";
}

/// <summary>
/// ToString overload.
/// </summary>
/// <param name="toStringOutput">List of strings.</param>
protected new void ToString(List<string> toStringOutput)
{
base.ToString(toStringOutput);
toStringOutput.Add($"Errors = {(this.Errors == null ? "null" : this.Errors.ToString())}");
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -38,5 +38,23 @@ public SingleErrorResponseException(string reason, HttpContext context)
/// </summary>
[JsonProperty("error")]
public string Error { get; set; }

/// <inheritdoc/>
public override string ToString()
{
var toStringOutput = new List<string>();
this.ToString(toStringOutput);
return $"SingleErrorResponseException : ({string.Join(", ", toStringOutput)})";
}

/// <summary>
/// ToString overload.
/// </summary>
/// <param name="toStringOutput">List of strings.</param>
protected new void ToString(List<string> toStringOutput)
{
base.ToString(toStringOutput);
toStringOutput.Add($"Error = {this.Error ?? "null"}");
}
}
}
Loading

0 comments on commit 6ee6458

Please sign in to comment.