Sync SDK DTOs with Unit API docs (automated, 2026-05-14)#77
Open
cursor[bot] wants to merge 5 commits into
Open
Sync SDK DTOs with Unit API docs (automated, 2026-05-14)#77cursor[bot] wants to merge 5 commits into
cursor[bot] wants to merge 5 commits into
Conversation
Adds optional fields documented at https://docs.unit.co/resources#account-end-of-day: - overdraftLimit (Optional integer) Co-authored-by: Avery Kushner <avesk@users.noreply.github.com>
Adds optional fields documented at https://docs.unit.co/resources#ach-payment: - expectedCompletionDate (Optional RFC3339 Date string) - counterpartyVerificationMethod (Optional string) Co-authored-by: Avery Kushner <avesk@users.noreply.github.com>
Adds optional fields documented at https://docs.unit.co/resources#ach-received-payment: - originatorEntityId (Optional string) - receivingEntityName (Optional string) Co-authored-by: Avery Kushner <avesk@users.noreply.github.com>
Adds optional fields documented at https://docs.unit.co/resources#depositaccount: - updatedAt (Optional RFC3339 Date string) - freezeReason (Optional string) - fraudReason (Optional string) - dacaStatus (Optional string) Co-authored-by: Avery Kushner <avesk@users.noreply.github.com>
Adds optional fields documented at https://docs.unit.co/resources#individualapplication: - updatedAt (Optional RFC3339 Date string) - nationality (Optional ISO31661-Alpha2 string) - industry (Optional Industry) - idTheftScore (Optional number) Co-authored-by: Avery Kushner <avesk@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Automated sync against https://docs.unit.co/resources covering 5 resource DTOs. Each resource is a separate commit so reviewers can split or cherry-pick.
Resources synced
1.
AccountEndOfDayDTO(unit/models/account_end_of_day.py)Source: https://docs.unit.co/resources#account-end-of-day
Added optional fields
overdraftLimitManual review needed
2.
AchPaymentDTO(unit/models/payment.py)Source: https://docs.unit.co/resources#ach-payment
Added optional fields
expectedCompletionDatePending,Sent, the date on which the counterparty will handle the request.counterpartyVerificationMethodPlaid).Manual review needed
sameDay(boolean): present in docs as a non-Optional attribute but missing fromAchPaymentDTO. Adding it as required would be a breaking change for any caller currently constructing the DTO; flagging for human triage.secCode(string, one ofWEB/CCD/PPD): present in docs as a non-Optional attribute but missing fromAchPaymentDTO. Same breaking-change concern assameDay.3.
AchReceivedPaymentDTO(unit/models/payment.py)Source: https://docs.unit.co/resources#ach-received-payment
Added optional fields
originatorEntityIdreceivingEntityNameManual review needed
isAdvanceable(boolean): docs list this as a non-Optional attribute but it's missing fromAchReceivedPaymentDTO. Adding as required would be a breaking change.direction(stringDebit/Credit): docs list this as a non-Optional attribute but it's missing fromAchReceivedPaymentDTO. Adding as required would be a breaking change.4.
DepositAccountDTO(unit/models/account.py)Source: https://docs.unit.co/resources#depositaccount
Added optional fields
updatedAtfreezeReasonFraud,ByBank, or free-text.fraudReasonFraudis the close reason.dacaStatusEntered,Activated, etc.).Manual review needed
interestTerms(Interest Terms): docs list this as a non-Optional nested attribute but the field is missing fromDepositAccountDTO. The docs also note "only available ifextraFields[account]is used", suggesting it is in practice optional, but the table doesn't mark it so. Flagging for human triage; if added, it would also need anInterestTermssub-object class.5.
IndividualApplicationDTO(unit/models/application.py)Source: https://docs.unit.co/resources#individualapplication
Added optional fields
updatedAtnationalityindustryidTheftScoreManual review needed
passport(string): docs list this as a non-Optional attribute (with the note "Eitherssnorpassportwill be populated") but it is currently absent fromIndividualApplicationDTO. Whether to add it as a required or optional kwarg is a human call.archived(boolean): docs list this as a non-Optional attribute but it is currently absent fromIndividualApplicationDTO. Same triage question.Backward compatibility
All additions are optional kwargs with
Nonedefaults; existing callers are unaffected.Queued for next run
The following resources also have drift versus the docs but were deferred to keep this run scoped to 5 resources (cap defined by the docs-sync automation):
BusinessApplicationDTO— missing optionalupdatedAt,industry; manual review forarchived.CounterpartyDTO—tagsexists in docs but is not formally marked Optional; manual review.WirePaymentDTO—imadOmadexists in docs but is not formally marked Optional; manual review.AccountHold,WireReceivedPayment, account limit overrides, repayments, recurring payments, credit applications, fraud cases, etc.) — adding these requires new DTO files plus codec entries and is left for a follow-up.Opened by the docs-sync automation. Mirror automation will open a paired API PR against Truss-pmts/api once this PR is opened.