recurly / recurly-client-dotnet

A .NET API wrapper for Recurly.
https://developers.recurly.com
MIT License
86 stars 80 forks source link

[V2] Adds RevRec features to AddOns #821

Closed Smolations closed 8 months ago

Smolations commented 8 months ago

Adds the following properties to the AddOn entity for the V2 client:

Examples

//** create an add-on with default RevRec settings
var addOn = new AddOn();
// ...
addOn.Create();
Console.WriteLine("Liability ID: {0}", addOn.LiabilityGlAccountId); // => ""
Console.WriteLine("Revenue ID: {0}", addOn.RevenueGlAccountId);     // => ""
Console.WriteLine("POB ID: {0}", addOn.PerformanceObligationId);    // => "abc" (default POB)

//** remove (or change) RevRec settings from an add-on
var addOn = AddOns.Get(addOnCode);

// note that POB IDs cannot be removed, but they can be changed
addOn.LiabilityGlAccountId = null;
addOn.RevenueGlAccountId = null;
addOn.Update();
8eth commented 8 months ago

DevQA+1