Skip to content

Commit

Permalink
feat: send signer to Ahjo with decisionProposal
Browse files Browse the repository at this point in the history
  • Loading branch information
rikuke committed Nov 14, 2024
1 parent e595189 commit 54087e8
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
7 changes: 7 additions & 0 deletions backend/benefit/applications/services/ahjo_payload.py
Original file line number Diff line number Diff line change
Expand Up @@ -477,6 +477,12 @@ def prepare_decision_proposal_payload(
"ID": handler.ad_username,
}

signer_dict = {
"Role": "signer",
"Name": decision_text.signer_name,
"ID": decision_text.signer_id,
}

proposal_dict = {
"records": [
{
Expand All @@ -489,6 +495,7 @@ def prepare_decision_proposal_payload(
"Agents": [
main_creator_dict,
decision_maker_dict,
signer_dict,
],
},
{
Expand Down
5 changes: 5 additions & 0 deletions backend/benefit/applications/tests/test_ahjo_payload.py
Original file line number Diff line number Diff line change
Expand Up @@ -478,6 +478,11 @@ def test_prepare_decision_proposal_payload(application_with_ahjo_decision):
"Role": "decisionMaker",
"ID": decision.decision_maker_id,
},
{
"Role": "signer",
"ID": decision.signer_id,
"Name": decision.signer_name,
},
],
},
{
Expand Down

0 comments on commit 54087e8

Please sign in to comment.