-
Notifications
You must be signed in to change notification settings - Fork 30
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
Unsubscribe from a rate plan does not work with developerId, only email #36
Comments
We should not be using anything but email addresses as an ID for developers. The older client library only used |
Here is payload example when trying to unsubscribe:
That developer[id] ='someID-000-0000-84fc-...' should be email address. |
Here is my ugly patch so you get the idea what I am trying to achieve. |
@minnur You can apply this patch on the PHP API client with Composer Patches until we do not figure out a general solution for this and any related issues to this problem. |
Actual Behavior
When trying to unsubscribe from an existing rate plan I get this:
URL id qualifier [[email protected]] does not match with the entity id [someID-0839-4057-84fc-...] or some of these entities may not exist
Expected Behavior
Successfully unsubscribe form a rate plan.
Steps to Reproduce the behavior
The code for the subscribe/unsubscribe is in my fork. I am trying to create a patch that would temporarily solve this issue or give some ideas on how this issue could be better handled in the library.
Proposed Solution
Looks like
Apigee\Edge\Api\Monetization\Normalizer\EntityNormalizer::normalize
needs a special treatment for the developer ID when calling unsubscribe method. While developer entity ID is used for the subscribe to rate plan is used the unsubscribe requires actual email address as a Developer ID.The text was updated successfully, but these errors were encountered: