Skip to content

Fix SimulateIncomingAchPaymentDTO missing status arg - #86

Merged
avesk merged 1 commit into
masterfrom
fix/simulate-incoming-ach-payment-status
Jul 17, 2026
Merged

Fix SimulateIncomingAchPaymentDTO missing status arg#86
avesk merged 1 commit into
masterfrom
fix/simulate-incoming-ach-payment-status

Conversation

@avesk

@avesk avesk commented Jul 17, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • SimulateIncomingAchPaymentDTO.from_json_api omitted status when constructing BasePayment, so remaining positional args shifted (directionstatus, descriptiondirection, …) and a successful Unit sandbox simulate-incoming-ACH response raised TypeError.
  • Mirror the working sibling SimulateAchPaymentDTO.from_json_api, which already passes attributes.get("status").
  • Also fix __init__ to pass status into BasePayment.__init__ (it previously skipped it and set attributes["status"] after the fact).

Test plan

  • Confirm SimulateIncomingAchPaymentDTO.from_json_api with a sandbox-shaped payload (including status) constructs without TypeError
  • Confirm Truss simulate_incoming_ach_payment works against Unit sandbox without an api-repo monkeypatch of from_json_api

Made with Cursor

from_json_api omitted status when constructing BasePayment, shifting
positional args and raising TypeError on a successful sandbox response.
Mirror SimulateAchPaymentDTO.from_json_api and pass status through __init__.

Co-authored-by: Cursor <cursoragent@cursor.com>
@avesk
avesk merged commit 8a53425 into master Jul 17, 2026
3 of 4 checks passed
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