Skip to content

Commit

Permalink
feat: docstring for the enroll function
Browse files Browse the repository at this point in the history
  • Loading branch information
angela-tran committed Sep 10, 2024
1 parent 7abf4e5 commit e4b4d7a
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions benefits/enrollment/enrollment.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,11 @@ class Status(Enum):


def enroll(request, card_token):
"""
Attempts to enroll this card into the transit processor group for the flow in the request's session.
Returns a tuple containing a Status indicating the result of the attempt and any exception that occurred.
"""
agency = session.agency(request)
flow = session.flow(request)

Expand Down

0 comments on commit e4b4d7a

Please sign in to comment.