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

Simplify and cleanup API interactions #26

Merged
merged 9 commits into from
Mar 30, 2021
Merged

Simplify and cleanup API interactions #26

merged 9 commits into from
Mar 30, 2021

Conversation

thekaveman
Copy link
Member

Modeling Agencies as having only a single Eligibility Verifier (instead of a list) simplifies the initial call to EV.

With liberal use of a few custom Exception classes, we can further eliminate all the type checking and special handling for API responses, where we would just raise an exception (or one would be raised) anyway.

In the Discounts API, we also need to carry the customer_id between calls as it's not currently being returned in an update/PATCH request.

the value in session is just the name
Contrary to the docs, when updating an existing customer record, the
customer's ID property is not passed back with the response.

Group registration requires a customer ID, so inject into response when
we know it ahead of time (since the customer exists).
we may need this in the future, but as of now it
is bringing more overhead and complexity than it's worth
remove unneeded base Response class, raise exceptions instead
@thekaveman thekaveman merged commit 0ed0095 into main Mar 30, 2021
@thekaveman thekaveman deleted the cleanup branch March 30, 2021 19:56
@thekaveman thekaveman added this to the March 2021 milestone Apr 8, 2021
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.

1 participant