Skip to content

Conversation

@reshmabidikar
Copy link
Contributor

@reshmabidikar reshmabidikar commented Jan 20, 2025

@reshmabidikar reshmabidikar marked this pull request as ready for review January 20, 2025 09:20
getBundleId(),
getBundleExternalKey(),
List.of(new DefaultEntitlementSpecifier(null, null, null, getExternalKey(), null)),
List.of(new DefaultEntitlementSpecifier(spec.getPlanPhaseSpecifier(), spec.getBillCycleDay(), spec.getQuantity(), getExternalKey(), spec.getOverrides())),
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Am i understanding correctly that we were not passing correctly the details of the EntitlementSpecifier to the entitlement plugins for change operations - in this case should we also fix the other methods changePlanWithDate, ... ?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Am i understanding correctly that we were not passing correctly the details of the EntitlementSpecifier to the entitlement plugins for change operations

Yes that is correct. Yes, I think we need to fix the other changePlanWithXXX methods. I'm also wondering if we should make this change in the cancelPlanWithXXX methods? For example here?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should pass all the info to the plugin through the EntitlementContext pluginContext. In the case of cancelation, there is no spec though, so not clear that we are missing anything. If you see anything missing, please add it. Definitely needed for other changePlanWithXXX.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Taking a look again, you are right, there is no need to make changes to the cancelXXX methods. I've made changes to all the changePlanWithXXX methods in 92bc89c.

@sbrossie sbrossie merged commit 0e491c3 into killbill:master Jan 30, 2025
11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants