You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
we have a repeated pattern in our code where given an invoice, transaction or subscription, we want the account id, but without having to fetch the stub and make one additional HTTP request.
This obviously assumes that the URLs stay the same and the ID is always at the end. Would it be possible to provide a getId() method in the Recurly_Stub instead that handles this logic in a more robust way?
The text was updated successfully, but these errors were encountered:
Closing this out since there are no plausible ways to tackle the edge cases. If anyone has a suggestion on how to make this work for both of the following tags (and all the other edge cases mentioned here), please open a Pull Request and we'll be happy to review and merge:
we have a repeated pattern in our code where given an invoice, transaction or subscription, we want the account id, but without having to fetch the stub and make one additional HTTP request.
This is possible by doing:
This obviously assumes that the URLs stay the same and the ID is always at the end. Would it be possible to provide a
getId()
method in theRecurly_Stub
instead that handles this logic in a more robust way?The text was updated successfully, but these errors were encountered: