Skip to content

Commit

Permalink
Releasing v3.22.0. Please check the changelog for the updates.
Browse files Browse the repository at this point in the history
  • Loading branch information
cb-alish committed Aug 14, 2024
1 parent c5b80db commit 5598c24
Show file tree
Hide file tree
Showing 8 changed files with 30 additions and 4 deletions.
12 changes: 12 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,15 @@
### v3.22.0 (2024-08-14)
* * *

#### New Attributes:
* feature_type has been added in SubscriptionEntitlement.
* business_entity_id has been made optional in Quote.
* business_entity_id has been made optional in CreditNote.

#### New Input parameters:
* invoice_usages has been added in Subscription#UpdateForItemsRequest.
* invoice_usages has been added in Estimate#UpdateSubscriptionForItemsRequest.

### v3.21.0 (2024-07-31)
* * *

Expand Down
2 changes: 1 addition & 1 deletion ChargeBee/Api/ApiConfig.cs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ public sealed class ApiConfig
{
public static string DomainSuffix = "chargebee.com";
public static string Proto = "https";
public static string Version = "3.21.0";
public static string Version = "3.22.0";
public static readonly string API_VERSION = "v2";
public static int TimeTravelMillis { get; set; }
public static int ExportSleepMillis { get; set;}
Expand Down
2 changes: 1 addition & 1 deletion ChargeBee/ChargeBee.csproj
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFrameworks>netstandard1.2;netstandard2.0;net45</TargetFrameworks>
<Version>3.21.0</Version>
<Version>3.22.0</Version>
<PackageId>chargebee</PackageId>
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
<PackageProjectUrl>https://github.com/chargebee/chargebee-dotnet</PackageProjectUrl>
Expand Down
2 changes: 1 addition & 1 deletion ChargeBee/Models/CreditNote.cs
Original file line number Diff line number Diff line change
Expand Up @@ -281,7 +281,7 @@ public string VatNumberPrefix
}
public string BusinessEntityId
{
get { return GetValue<string>("business_entity_id", true); }
get { return GetValue<string>("business_entity_id", false); }
}
public CreditNoteShippingAddress ShippingAddress
{
Expand Down
5 changes: 5 additions & 0 deletions ChargeBee/Models/Estimate.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1932,6 +1932,11 @@ public UpdateSubscriptionForItemsRequest InvoiceImmediately(bool invoiceImmediat
m_params.AddOpt("invoice_immediately", invoiceImmediately);
return this;
}
public UpdateSubscriptionForItemsRequest InvoiceUsages(bool invoiceUsages)
{
m_params.AddOpt("invoice_usages", invoiceUsages);
return this;
}
public UpdateSubscriptionForItemsRequest SubscriptionId(string subscriptionId)
{
m_params.Add("subscription[id]", subscriptionId);
Expand Down
2 changes: 1 addition & 1 deletion ChargeBee/Models/Quote.cs
Original file line number Diff line number Diff line change
Expand Up @@ -294,7 +294,7 @@ public long? ContractTermTerminationFee
}
public string BusinessEntityId
{
get { return GetValue<string>("business_entity_id", true); }
get { return GetValue<string>("business_entity_id", false); }
}

#endregion
Expand Down
5 changes: 5 additions & 0 deletions ChargeBee/Models/Subscription.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3130,6 +3130,11 @@ public UpdateForItemsRequest PaymentInitiator(ChargeBee.Models.Enums.PaymentInit
m_params.AddOpt("payment_initiator", paymentInitiator);
return this;
}
public UpdateForItemsRequest InvoiceUsages(bool invoiceUsages)
{
m_params.AddOpt("invoice_usages", invoiceUsages);
return this;
}
[Obsolete]
public UpdateForItemsRequest CardGateway(ChargeBee.Models.Enums.GatewayEnum cardGateway)
{
Expand Down
4 changes: 4 additions & 0 deletions ChargeBee/Models/SubscriptionEntitlement.cs
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,10 @@ public string FeatureUnit
{
get { return GetValue<string>("feature_unit", false); }
}
public string FeatureType
{
get { return GetValue<string>("feature_type", false); }
}
public string Value
{
get { return GetValue<string>("value", false); }
Expand Down

0 comments on commit 5598c24

Please sign in to comment.