Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[V2] Adds RevRec features to AddOns #821

Merged
merged 1 commit into from
Feb 20, 2024

Conversation

Smolations
Copy link

@Smolations Smolations commented Feb 14, 2024

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

  • LiabilityGlAccountId
  • RevenueGlAccountId
  • PerformanceObligationId

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();

@Smolations Smolations added the V2 V2 Client label Feb 14, 2024
@Smolations Smolations mentioned this pull request Feb 15, 2024
@Smolations Smolations changed the title Adds RevRec features to AddOns [V2] Adds RevRec features to AddOns Feb 15, 2024
@Smolations Smolations marked this pull request as ready for review February 16, 2024 20:02
@8eth
Copy link

8eth commented Feb 20, 2024

DevQA+1

@8eth 8eth merged commit 2f85674 into add-revrec-features Feb 20, 2024
3 checks passed
@8eth 8eth deleted the add-revrec-settings-to-addons branch February 20, 2024 16:19
recurly-integrations pushed a commit that referenced this pull request Mar 13, 2024
[Full Changelog](1.17.34...2.0.0)

**Merged Pull Requests**

- [V2] Add RevRec Settings to Adjustments [#822](#822) ([Smolations](https://github.com/Smolations))
- [V2] Adds RevRec features to AddOns [#821](#821) ([Smolations](https://github.com/Smolations))
- [V2] Adds RevRec features to Item, GiftCard, and ShippingMethod [#819](#819) ([Smolations](https://github.com/Smolations))
- [V2] Add RevRec settings to the Plan entity [#818](#818) ([Smolations](https://github.com/Smolations))
- [V2] Add RevRec settings to business entities [#817](#817) ([Smolations](https://github.com/Smolations))
- [V2] Add RevRec Performance Obligations Feature [#816](#816) ([Smolations](https://github.com/Smolations))
- Add revrec features [#815](#815) ([Smolations](https://github.com/Smolations))
- [V2] Add RevRec General Ledger Accounts Feature [#813](#813) ([Smolations](https://github.com/Smolations))
recurly-integrations pushed a commit that referenced this pull request Mar 13, 2024
[Full Changelog](1.17.34...1.17.35)

**Merged Pull Requests**

- [V2] Add RevRec Settings to Adjustments [#822](#822) ([Smolations](https://github.com/Smolations))
- [V2] Adds RevRec features to AddOns [#821](#821) ([Smolations](https://github.com/Smolations))
- [V2] Adds RevRec features to Item, GiftCard, and ShippingMethod [#819](#819) ([Smolations](https://github.com/Smolations))
- [V2] Add RevRec settings to the Plan entity [#818](#818) ([Smolations](https://github.com/Smolations))
- [V2] Add RevRec settings to business entities [#817](#817) ([Smolations](https://github.com/Smolations))
- [V2] Add RevRec Performance Obligations Feature [#816](#816) ([Smolations](https://github.com/Smolations))
- Add revrec features [#815](#815) ([Smolations](https://github.com/Smolations))
- [V2] Add RevRec General Ledger Accounts Feature [#813](#813) ([Smolations](https://github.com/Smolations))
recurly-integrations pushed a commit that referenced this pull request Mar 13, 2024
[Full Changelog](1.17.34...1.17.36)

**Merged Pull Requests**

- [V2] Add RevRec Settings to Adjustments [#822](#822) ([Smolations](https://github.com/Smolations))
- [V2] Adds RevRec features to AddOns [#821](#821) ([Smolations](https://github.com/Smolations))
- [V2] Adds RevRec features to Item, GiftCard, and ShippingMethod [#819](#819) ([Smolations](https://github.com/Smolations))
- [V2] Add RevRec settings to the Plan entity [#818](#818) ([Smolations](https://github.com/Smolations))
- [V2] Add RevRec settings to business entities [#817](#817) ([Smolations](https://github.com/Smolations))
- [V2] Add RevRec Performance Obligations Feature [#816](#816) ([Smolations](https://github.com/Smolations))
- Add revrec features [#815](#815) ([Smolations](https://github.com/Smolations))
- [V2] Add RevRec General Ledger Accounts Feature [#813](#813) ([Smolations](https://github.com/Smolations))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
V2 V2 Client
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants