Skip to content

Add FraudLinkedToFraudulentCustomer and ByBank to ArchiveReason - #84

Draft
claude[bot] wants to merge 1 commit into
masterfrom
archive-reason-parity
Draft

Add FraudLinkedToFraudulentCustomer and ByBank to ArchiveReason#84
claude[bot] wants to merge 1 commit into
masterfrom
archive-reason-parity

Conversation

@claude

@claude claude Bot commented Jul 7, 2026

Copy link
Copy Markdown

Requested by Lauren · Slack thread

Before

Archiving a customer with reason FraudLinkedToFraudulentCustomer or ByBank is rejected by consumers that validate against ArchiveReason, even though Unit's API accepts both values.

After

The ArchiveReason Literal in unit/models/customer.py matches all 9 reason values documented for Unit's Archive Customer endpoint: Inactive, FraudACHActivity, FraudCardActivity, FraudCheckActivity, FraudApplicationHistory, FraudAccountActivity, FraudClientIdentified, FraudLinkedToFraudulentCustomer, ByBank.

Reference: Unit API docs — Archive Customer


Generated by Claude Code

Unit's Archive Customer API accepts nine reason values; the Literal was
missing FraudLinkedToFraudulentCustomer and ByBank, causing consumers
that validate against ArchiveReason to reject reasons Unit supports.

Ref: https://www.unit.co/docs/api/customers/api/
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