-
Notifications
You must be signed in to change notification settings - Fork 0
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
Feat(enrollment): link funding source to group #15
Conversation
Coverage reportClick to see where and how coverage changed
This report was generated by python-coverage-comment-action |
53f79ff
to
5cc5bac
Compare
5cc5bac
to
c71ccf0
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hmm, this is sort of tricky since the behavior crosses different "domains" (funding sources, groups).
But I think ultimately we should be organizing our mixins to align with the structure of the API and where each endpoint is defined there. So I would recommend defining all of this within the GroupsMixin
vs. having FundingSourcesMixin
mixin the GroupsMixin
.
GroupsMixin
can still reference the static FundingSourcesMixin.FUNDING_SOURCES
to build the required endpoint.
@thekaveman Yeah, it is tricky. The API docs have one section for The endpoint for linking funding sources to groups is very similar to the one for linking products to groups. Whether we have them in |
@angela-tran yeah it is unfortunate that the API docs blend I would like to organize our mixins by the top-level API endpoint to the extent possible. Since this operation (linking a funding source to a group) falls under the I think a basic copy/paste of what you have here into the the |
@thekaveman Ok, that all sounds fine. Thanks |
update tests as well
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is great! Nice work on this full implementation!
Part of #10
This PR adds a method to
Client
to link a funding source to a group using their IDs.