Skip to content

Commit

Permalink
refactor: add verifier as parameter to verify method
Browse files Browse the repository at this point in the history
This is to reflect the change that was made in cal-itp/benefits#317
(agency supports multiple verifiers).)
  • Loading branch information
angela-tran committed May 19, 2022
1 parent 996a3ce commit 6a63ce8
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions eligibility_api/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -139,11 +139,10 @@ def __init__(
class Client:
"""Eligibility Verification API HTTP client."""

def __init__(self, agency, issuer):
def __init__(self, agency, verifier, issuer):
logger.debug(f"Initialize client for agency: {agency.short_name}")
self.issuer = issuer

verifier = agency.eligibility_verifier
# get the eligibility type names
self.types = list(map(lambda t: t.name, agency.types_to_verify()))
self.agency_id = agency.agency_id
Expand Down

0 comments on commit 6a63ce8

Please sign in to comment.