Skip to content

Commit

Permalink
[DE-759] Release 2.0.0
Browse files Browse the repository at this point in the history
DE-766 Bug fix: listEvents endpoint deserialisation problem
  • Loading branch information
michalpierog authored Mar 19, 2024
1 parent 1fca65b commit 455d333
Show file tree
Hide file tree
Showing 6 changed files with 78 additions and 79 deletions.
6 changes: 3 additions & 3 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>1.0.1.0</Version>
<Version>2.0.0.0</Version>
<Authors>MaxioSdk</Authors>
<Owners></Owners>
<Product>AdvancedBilling.Standard</Product>
<Copyright>Copyright © 2019</Copyright>
<AssemblyVersion>1.0.1.0</AssemblyVersion>
<FileVersion>1.0.1.0</FileVersion>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<FileVersion>2.0.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 Down
2 changes: 1 addition & 1 deletion AdvancedBilling.Standard/AdvancedBillingClient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ public sealed class AdvancedBillingClient : IConfiguration
};

private readonly GlobalConfiguration globalConfiguration;
private const string userAgent = "AB SDK DotNet:1.0.1 on OS {os-info}";
private const string userAgent = "AB SDK DotNet:2.0.0 on OS {os-info}";
private readonly Lazy<APIExportsController> aPIExports;
private readonly Lazy<AdvanceInvoiceController> advanceInvoice;
private readonly Lazy<BillingPortalController> billingPortal;
Expand Down
39 changes: 19 additions & 20 deletions AdvancedBilling.Standard/Models/InvoiceIssued.cs
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@ public InvoiceIssued()
/// <param name="uid">uid.</param>
/// <param name="number">number.</param>
/// <param name="role">role.</param>
/// <param name="dueDate">due_date.</param>
/// <param name="issueDate">issue_date.</param>
/// <param name="paidDate">paid_date.</param>
/// <param name="dueAmount">due_amount.</param>
Expand All @@ -47,13 +46,13 @@ public InvoiceIssued()
/// <param name="productName">product_name.</param>
/// <param name="consolidationLevel">consolidation_level.</param>
/// <param name="lineItems">line_items.</param>
/// <param name="dueDate">due_date.</param>
public InvoiceIssued(
string uid,
string number,
string role,
DateTime dueDate,
DateTime issueDate,
DateTime paidDate,
string issueDate,
string paidDate,
string dueAmount,
string paidAmount,
string taxAmount,
Expand All @@ -62,7 +61,8 @@ public InvoiceIssued(
string statusAmount,
string productName,
string consolidationLevel,
List<Models.InvoiceLineItemEventData> lineItems)
List<Models.InvoiceLineItemEventData> lineItems,
DateTime? dueDate = null)
{
this.Uid = uid;
this.Number = number;
Expand Down Expand Up @@ -109,25 +109,24 @@ public InvoiceIssued(
/// Gets or sets DueDate.
/// </summary>
[JsonConverter(typeof(CustomDateTimeConverter), "yyyy'-'MM'-'dd")]
[JsonProperty("due_date")]
[JsonRequired]
public DateTime DueDate { get; set; }
[JsonProperty("due_date", NullValueHandling = NullValueHandling.Include)]
public DateTime? DueDate { get; set; }

/// <summary>
/// Gets or sets IssueDate.
/// Invoice issue date. Can be an empty string if value is missing.
/// </summary>
[JsonConverter(typeof(CustomDateTimeConverter), "yyyy'-'MM'-'dd")]
[JsonConverter(typeof(JsonStringConverter), true)]
[JsonProperty("issue_date")]
[JsonRequired]
public DateTime IssueDate { get; set; }
public string IssueDate { get; set; }

/// <summary>
/// Gets or sets PaidDate.
/// Paid date. Can be an empty string if value is missing.
/// </summary>
[JsonConverter(typeof(CustomDateTimeConverter), "yyyy'-'MM'-'dd")]
[JsonConverter(typeof(JsonStringConverter), true)]
[JsonProperty("paid_date")]
[JsonRequired]
public DateTime PaidDate { get; set; }
public string PaidDate { get; set; }

/// <summary>
/// Gets or sets DueAmount.
Expand Down Expand Up @@ -225,9 +224,9 @@ public override bool Equals(object obj)
return obj is InvoiceIssued other && ((this.Uid == null && other.Uid == null) || (this.Uid?.Equals(other.Uid) == true)) &&
((this.Number == null && other.Number == null) || (this.Number?.Equals(other.Number) == true)) &&
((this.Role == null && other.Role == null) || (this.Role?.Equals(other.Role) == true)) &&
this.DueDate.Equals(other.DueDate) &&
this.IssueDate.Equals(other.IssueDate) &&
this.PaidDate.Equals(other.PaidDate) &&
((this.DueDate == null && other.DueDate == null) || (this.DueDate?.Equals(other.DueDate) == true)) &&
((this.IssueDate == null && other.IssueDate == null) || (this.IssueDate?.Equals(other.IssueDate) == true)) &&
((this.PaidDate == null && other.PaidDate == null) || (this.PaidDate?.Equals(other.PaidDate) == true)) &&
((this.DueAmount == null && other.DueAmount == null) || (this.DueAmount?.Equals(other.DueAmount) == true)) &&
((this.PaidAmount == null && other.PaidAmount == null) || (this.PaidAmount?.Equals(other.PaidAmount) == true)) &&
((this.TaxAmount == null && other.TaxAmount == null) || (this.TaxAmount?.Equals(other.TaxAmount) == true)) &&
Expand All @@ -248,9 +247,9 @@ public override bool Equals(object obj)
toStringOutput.Add($"this.Uid = {(this.Uid == null ? "null" : this.Uid)}");
toStringOutput.Add($"this.Number = {(this.Number == null ? "null" : this.Number)}");
toStringOutput.Add($"this.Role = {(this.Role == null ? "null" : this.Role)}");
toStringOutput.Add($"this.DueDate = {this.DueDate}");
toStringOutput.Add($"this.IssueDate = {this.IssueDate}");
toStringOutput.Add($"this.PaidDate = {this.PaidDate}");
toStringOutput.Add($"this.DueDate = {(this.DueDate == null ? "null" : this.DueDate.ToString())}");
toStringOutput.Add($"this.IssueDate = {(this.IssueDate == null ? "null" : this.IssueDate)}");
toStringOutput.Add($"this.PaidDate = {(this.PaidDate == null ? "null" : this.PaidDate)}");
toStringOutput.Add($"this.DueAmount = {(this.DueAmount == null ? "null" : this.DueAmount)}");
toStringOutput.Add($"this.PaidAmount = {(this.PaidAmount == null ? "null" : this.PaidAmount)}");
toStringOutput.Add($"this.TaxAmount = {(this.TaxAmount == null ? "null" : this.TaxAmount)}");
Expand Down
10 changes: 5 additions & 5 deletions AdvancedBilling.sln
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,18 @@ Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio 15
VisualStudioVersion = 15.0.26430.14
MinimumVisualStudioVersion = 10.0.40219.1
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "AdvancedBilling.Standard", "AdvancedBilling.Standard/AdvancedBilling.Standard.csproj", "{4553b6c7-f656-4a07-a8e0-c6b89e1723e2}"
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "AdvancedBilling.Standard", "AdvancedBilling.Standard/AdvancedBilling.Standard.csproj", "{90deb70a-d992-4b77-8c9d-22686b266f3b}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Release|Any CPU = Release|Any CPU
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{4553b6c7-f656-4a07-a8e0-c6b89e1723e2}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{4553b6c7-f656-4a07-a8e0-c6b89e1723e2}.Debug|Any CPU.Build.0 = Debug|Any CPU
{4553b6c7-f656-4a07-a8e0-c6b89e1723e2}.Release|Any CPU.ActiveCfg = Release|Any CPU
{4553b6c7-f656-4a07-a8e0-c6b89e1723e2}.Release|Any CPU.Build.0 = Release|Any CPU
{90deb70a-d992-4b77-8c9d-22686b266f3b}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{90deb70a-d992-4b77-8c9d-22686b266f3b}.Debug|Any CPU.Build.0 = Debug|Any CPU
{90deb70a-d992-4b77-8c9d-22686b266f3b}.Release|Any CPU.ActiveCfg = Release|Any CPU
{90deb70a-d992-4b77-8c9d-22686b266f3b}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
Expand Down
90 changes: 45 additions & 45 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,15 +30,15 @@ curl -u <api_key>:x -H Accept:application/json -H Content-Type:application/json
If you are building with .NET CLI tools then you can also use the following command:

```bash
dotnet add package Maxio.AdvancedBillingSdk --version 1.0.1
dotnet add package Maxio.AdvancedBillingSdk --version 2.0.0
```

You can also view the package at:
https://www.nuget.org/packages/Maxio.AdvancedBillingSdk/1.0.1
https://www.nuget.org/packages/Maxio.AdvancedBillingSdk/2.0.0

## Initialize the API Client

**_Note:_** Documentation for the client can be found [here.](https://www.github.com/maxio-com/ab-dotnet-sdk/tree/1.0.1/doc/client.md)
**_Note:_** Documentation for the client can be found [here.](https://www.github.com/maxio-com/ab-dotnet-sdk/tree/2.0.0/doc/client.md)

The following parameters are configurable for the API Client:

Expand All @@ -48,7 +48,7 @@ The following parameters are configurable for the API Client:
| `Domain` | `string` | The Chargify server domain.<br>*Default*: `"chargify.com"` |
| `Environment` | `Environment` | The API environment. <br> **Default: `Environment.Production`** |
| `Timeout` | `TimeSpan` | Http client timeout.<br>*Default*: `TimeSpan.FromSeconds(30)` |
| `BasicAuthCredentials` | [`BasicAuthCredentials`](https://www.github.com/maxio-com/ab-dotnet-sdk/tree/1.0.1/doc/$a/https://www.github.com/maxio-com/ab-dotnet-sdk/tree/1.0.1/basic-authentication.md) | The Credentials Setter for Basic Authentication |
| `BasicAuthCredentials` | [`BasicAuthCredentials`](https://www.github.com/maxio-com/ab-dotnet-sdk/tree/2.0.0/doc/$a/https://www.github.com/maxio-com/ab-dotnet-sdk/tree/2.0.0/basic-authentication.md) | The Credentials Setter for Basic Authentication |

The API client can be initialized as follows:

Expand Down Expand Up @@ -81,51 +81,51 @@ The SDK can be configured to use a different environment for making API calls. A

This API uses the following authentication schemes.

* [`BasicAuth (Basic Authentication)`](https://www.github.com/maxio-com/ab-dotnet-sdk/tree/1.0.1/doc/$a/https://www.github.com/maxio-com/ab-dotnet-sdk/tree/1.0.1/basic-authentication.md)
* [`BasicAuth (Basic Authentication)`](https://www.github.com/maxio-com/ab-dotnet-sdk/tree/2.0.0/doc/$a/https://www.github.com/maxio-com/ab-dotnet-sdk/tree/2.0.0/basic-authentication.md)

## List of APIs

* [API Exports](https://www.github.com/maxio-com/ab-dotnet-sdk/tree/1.0.1/doc/controllers/api-exports.md)
* [Advance Invoice](https://www.github.com/maxio-com/ab-dotnet-sdk/tree/1.0.1/doc/controllers/advance-invoice.md)
* [Billing Portal](https://www.github.com/maxio-com/ab-dotnet-sdk/tree/1.0.1/doc/controllers/billing-portal.md)
* [Custom Fields](https://www.github.com/maxio-com/ab-dotnet-sdk/tree/1.0.1/doc/controllers/custom-fields.md)
* [Events-Based Billing Segments](https://www.github.com/maxio-com/ab-dotnet-sdk/tree/1.0.1/doc/controllers/events-based-billing-segments.md)
* [Payment Profiles](https://www.github.com/maxio-com/ab-dotnet-sdk/tree/1.0.1/doc/controllers/payment-profiles.md)
* [Product Families](https://www.github.com/maxio-com/ab-dotnet-sdk/tree/1.0.1/doc/controllers/product-families.md)
* [Product Price Points](https://www.github.com/maxio-com/ab-dotnet-sdk/tree/1.0.1/doc/controllers/product-price-points.md)
* [Proforma Invoices](https://www.github.com/maxio-com/ab-dotnet-sdk/tree/1.0.1/doc/controllers/proforma-invoices.md)
* [Reason Codes](https://www.github.com/maxio-com/ab-dotnet-sdk/tree/1.0.1/doc/controllers/reason-codes.md)
* [Referral Codes](https://www.github.com/maxio-com/ab-dotnet-sdk/tree/1.0.1/doc/controllers/referral-codes.md)
* [Sales Commissions](https://www.github.com/maxio-com/ab-dotnet-sdk/tree/1.0.1/doc/controllers/sales-commissions.md)
* [Subscription Components](https://www.github.com/maxio-com/ab-dotnet-sdk/tree/1.0.1/doc/controllers/subscription-components.md)
* [Subscription Groups](https://www.github.com/maxio-com/ab-dotnet-sdk/tree/1.0.1/doc/controllers/subscription-groups.md)
* [Subscription Group Invoice Account](https://www.github.com/maxio-com/ab-dotnet-sdk/tree/1.0.1/doc/controllers/subscription-group-invoice-account.md)
* [Subscription Group Status](https://www.github.com/maxio-com/ab-dotnet-sdk/tree/1.0.1/doc/controllers/subscription-group-status.md)
* [Subscription Invoice Account](https://www.github.com/maxio-com/ab-dotnet-sdk/tree/1.0.1/doc/controllers/subscription-invoice-account.md)
* [Subscription Notes](https://www.github.com/maxio-com/ab-dotnet-sdk/tree/1.0.1/doc/controllers/subscription-notes.md)
* [Subscription Products](https://www.github.com/maxio-com/ab-dotnet-sdk/tree/1.0.1/doc/controllers/subscription-products.md)
* [Subscription Status](https://www.github.com/maxio-com/ab-dotnet-sdk/tree/1.0.1/doc/controllers/subscription-status.md)
* [Coupons](https://www.github.com/maxio-com/ab-dotnet-sdk/tree/1.0.1/doc/controllers/coupons.md)
* [Components](https://www.github.com/maxio-com/ab-dotnet-sdk/tree/1.0.1/doc/controllers/components.md)
* [Customers](https://www.github.com/maxio-com/ab-dotnet-sdk/tree/1.0.1/doc/controllers/customers.md)
* [Events](https://www.github.com/maxio-com/ab-dotnet-sdk/tree/1.0.1/doc/controllers/events.md)
* [Insights](https://www.github.com/maxio-com/ab-dotnet-sdk/tree/1.0.1/doc/controllers/insights.md)
* [Invoices](https://www.github.com/maxio-com/ab-dotnet-sdk/tree/1.0.1/doc/controllers/invoices.md)
* [Offers](https://www.github.com/maxio-com/ab-dotnet-sdk/tree/1.0.1/doc/controllers/offers.md)
* [Products](https://www.github.com/maxio-com/ab-dotnet-sdk/tree/1.0.1/doc/controllers/products.md)
* [Sites](https://www.github.com/maxio-com/ab-dotnet-sdk/tree/1.0.1/doc/controllers/sites.md)
* [Subscriptions](https://www.github.com/maxio-com/ab-dotnet-sdk/tree/1.0.1/doc/controllers/subscriptions.md)
* [Webhooks](https://www.github.com/maxio-com/ab-dotnet-sdk/tree/1.0.1/doc/controllers/webhooks.md)
* [API Exports](https://www.github.com/maxio-com/ab-dotnet-sdk/tree/2.0.0/doc/controllers/api-exports.md)
* [Advance Invoice](https://www.github.com/maxio-com/ab-dotnet-sdk/tree/2.0.0/doc/controllers/advance-invoice.md)
* [Billing Portal](https://www.github.com/maxio-com/ab-dotnet-sdk/tree/2.0.0/doc/controllers/billing-portal.md)
* [Custom Fields](https://www.github.com/maxio-com/ab-dotnet-sdk/tree/2.0.0/doc/controllers/custom-fields.md)
* [Events-Based Billing Segments](https://www.github.com/maxio-com/ab-dotnet-sdk/tree/2.0.0/doc/controllers/events-based-billing-segments.md)
* [Payment Profiles](https://www.github.com/maxio-com/ab-dotnet-sdk/tree/2.0.0/doc/controllers/payment-profiles.md)
* [Product Families](https://www.github.com/maxio-com/ab-dotnet-sdk/tree/2.0.0/doc/controllers/product-families.md)
* [Product Price Points](https://www.github.com/maxio-com/ab-dotnet-sdk/tree/2.0.0/doc/controllers/product-price-points.md)
* [Proforma Invoices](https://www.github.com/maxio-com/ab-dotnet-sdk/tree/2.0.0/doc/controllers/proforma-invoices.md)
* [Reason Codes](https://www.github.com/maxio-com/ab-dotnet-sdk/tree/2.0.0/doc/controllers/reason-codes.md)
* [Referral Codes](https://www.github.com/maxio-com/ab-dotnet-sdk/tree/2.0.0/doc/controllers/referral-codes.md)
* [Sales Commissions](https://www.github.com/maxio-com/ab-dotnet-sdk/tree/2.0.0/doc/controllers/sales-commissions.md)
* [Subscription Components](https://www.github.com/maxio-com/ab-dotnet-sdk/tree/2.0.0/doc/controllers/subscription-components.md)
* [Subscription Groups](https://www.github.com/maxio-com/ab-dotnet-sdk/tree/2.0.0/doc/controllers/subscription-groups.md)
* [Subscription Group Invoice Account](https://www.github.com/maxio-com/ab-dotnet-sdk/tree/2.0.0/doc/controllers/subscription-group-invoice-account.md)
* [Subscription Group Status](https://www.github.com/maxio-com/ab-dotnet-sdk/tree/2.0.0/doc/controllers/subscription-group-status.md)
* [Subscription Invoice Account](https://www.github.com/maxio-com/ab-dotnet-sdk/tree/2.0.0/doc/controllers/subscription-invoice-account.md)
* [Subscription Notes](https://www.github.com/maxio-com/ab-dotnet-sdk/tree/2.0.0/doc/controllers/subscription-notes.md)
* [Subscription Products](https://www.github.com/maxio-com/ab-dotnet-sdk/tree/2.0.0/doc/controllers/subscription-products.md)
* [Subscription Status](https://www.github.com/maxio-com/ab-dotnet-sdk/tree/2.0.0/doc/controllers/subscription-status.md)
* [Coupons](https://www.github.com/maxio-com/ab-dotnet-sdk/tree/2.0.0/doc/controllers/coupons.md)
* [Components](https://www.github.com/maxio-com/ab-dotnet-sdk/tree/2.0.0/doc/controllers/components.md)
* [Customers](https://www.github.com/maxio-com/ab-dotnet-sdk/tree/2.0.0/doc/controllers/customers.md)
* [Events](https://www.github.com/maxio-com/ab-dotnet-sdk/tree/2.0.0/doc/controllers/events.md)
* [Insights](https://www.github.com/maxio-com/ab-dotnet-sdk/tree/2.0.0/doc/controllers/insights.md)
* [Invoices](https://www.github.com/maxio-com/ab-dotnet-sdk/tree/2.0.0/doc/controllers/invoices.md)
* [Offers](https://www.github.com/maxio-com/ab-dotnet-sdk/tree/2.0.0/doc/controllers/offers.md)
* [Products](https://www.github.com/maxio-com/ab-dotnet-sdk/tree/2.0.0/doc/controllers/products.md)
* [Sites](https://www.github.com/maxio-com/ab-dotnet-sdk/tree/2.0.0/doc/controllers/sites.md)
* [Subscriptions](https://www.github.com/maxio-com/ab-dotnet-sdk/tree/2.0.0/doc/controllers/subscriptions.md)
* [Webhooks](https://www.github.com/maxio-com/ab-dotnet-sdk/tree/2.0.0/doc/controllers/webhooks.md)

## Classes Documentation

* [Utility Classes](https://www.github.com/maxio-com/ab-dotnet-sdk/tree/1.0.1/doc/utility-classes.md)
* [HttpRequest](https://www.github.com/maxio-com/ab-dotnet-sdk/tree/1.0.1/doc/http-request.md)
* [HttpResponse](https://www.github.com/maxio-com/ab-dotnet-sdk/tree/1.0.1/doc/http-response.md)
* [HttpStringResponse](https://www.github.com/maxio-com/ab-dotnet-sdk/tree/1.0.1/doc/http-string-response.md)
* [HttpContext](https://www.github.com/maxio-com/ab-dotnet-sdk/tree/1.0.1/doc/http-context.md)
* [HttpClientConfiguration](https://www.github.com/maxio-com/ab-dotnet-sdk/tree/1.0.1/doc/http-client-configuration.md)
* [HttpClientConfiguration Builder](https://www.github.com/maxio-com/ab-dotnet-sdk/tree/1.0.1/doc/http-client-configuration-builder.md)
* [IAuthManager](https://www.github.com/maxio-com/ab-dotnet-sdk/tree/1.0.1/doc/i-auth-manager.md)
* [ApiException](https://www.github.com/maxio-com/ab-dotnet-sdk/tree/1.0.1/doc/api-exception.md)
* [Utility Classes](https://www.github.com/maxio-com/ab-dotnet-sdk/tree/2.0.0/doc/utility-classes.md)
* [HttpRequest](https://www.github.com/maxio-com/ab-dotnet-sdk/tree/2.0.0/doc/http-request.md)
* [HttpResponse](https://www.github.com/maxio-com/ab-dotnet-sdk/tree/2.0.0/doc/http-response.md)
* [HttpStringResponse](https://www.github.com/maxio-com/ab-dotnet-sdk/tree/2.0.0/doc/http-string-response.md)
* [HttpContext](https://www.github.com/maxio-com/ab-dotnet-sdk/tree/2.0.0/doc/http-context.md)
* [HttpClientConfiguration](https://www.github.com/maxio-com/ab-dotnet-sdk/tree/2.0.0/doc/http-client-configuration.md)
* [HttpClientConfiguration Builder](https://www.github.com/maxio-com/ab-dotnet-sdk/tree/2.0.0/doc/http-client-configuration-builder.md)
* [IAuthManager](https://www.github.com/maxio-com/ab-dotnet-sdk/tree/2.0.0/doc/i-auth-manager.md)
* [ApiException](https://www.github.com/maxio-com/ab-dotnet-sdk/tree/2.0.0/doc/api-exception.md)

Loading

0 comments on commit 455d333

Please sign in to comment.