Skip to content

Commit e2fd2c9

Browse files
chore: add missing docstrings
1 parent 1c4d912 commit e2fd2c9

File tree

92 files changed

+2941
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

92 files changed

+2941
-0
lines changed

src/increase/types/account.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,11 @@
1212

1313

1414
class Account(BaseModel):
15+
"""Accounts are your bank accounts with Increase.
16+
17+
They store money, receive transfers, and send payments. They earn interest and have depository insurance.
18+
"""
19+
1520
id: str
1621
"""The Account identifier."""
1722

src/increase/types/account_number.py

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@
1212

1313

1414
class InboundACH(BaseModel):
15+
"""Properties related to how this Account Number handles inbound ACH transfers."""
16+
1517
debit_status: Literal["allowed", "blocked"]
1618
"""Whether ACH debits are allowed against this Account Number.
1719
@@ -24,6 +26,10 @@ class InboundACH(BaseModel):
2426

2527

2628
class InboundChecks(BaseModel):
29+
"""
30+
Properties related to how this Account Number should handle inbound check withdrawals.
31+
"""
32+
2733
status: Literal["allowed", "check_transfers_only"]
2834
"""How Increase should process checks with this account number printed on them.
2935
@@ -35,6 +41,11 @@ class InboundChecks(BaseModel):
3541

3642

3743
class AccountNumber(BaseModel):
44+
"""Each account can have multiple account and routing numbers.
45+
46+
We recommend that you use a set per vendor. This is similar to how you use different passwords for different websites. Account numbers can also be used to seamlessly reconcile inbound payments. Generating a unique account number per vendor ensures you always know the originator of an incoming payment.
47+
"""
48+
3849
id: str
3950
"""The Account Number identifier."""
4051

src/increase/types/account_number_create_params.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,8 @@ class AccountNumberCreateParams(TypedDict, total=False):
2525

2626

2727
class InboundACH(TypedDict, total=False):
28+
"""Options related to how this Account Number should handle inbound ACH transfers."""
29+
2830
debit_status: Required[Literal["allowed", "blocked"]]
2931
"""Whether ACH debits are allowed against this Account Number.
3032
@@ -38,6 +40,10 @@ class InboundACH(TypedDict, total=False):
3840

3941

4042
class InboundChecks(TypedDict, total=False):
43+
"""
44+
Options related to how this Account Number should handle inbound check withdrawals.
45+
"""
46+
4147
status: Required[Literal["allowed", "check_transfers_only"]]
4248
"""How Increase should process checks with this account number printed on them.
4349

src/increase/types/account_number_update_params.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,8 @@ class AccountNumberUpdateParams(TypedDict, total=False):
3030

3131

3232
class InboundACH(TypedDict, total=False):
33+
"""Options related to how this Account Number handles inbound ACH transfers."""
34+
3335
debit_status: Literal["allowed", "blocked"]
3436
"""Whether ACH debits are allowed against this Account Number.
3537
@@ -42,6 +44,10 @@ class InboundACH(TypedDict, total=False):
4244

4345

4446
class InboundChecks(TypedDict, total=False):
47+
"""
48+
Options related to how this Account Number should handle inbound check withdrawals.
49+
"""
50+
4551
status: Required[Literal["allowed", "check_transfers_only"]]
4652
"""How Increase should process checks with this account number printed on them.
4753

src/increase/types/account_statement.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,11 @@
99

1010

1111
class AccountStatement(BaseModel):
12+
"""Account Statements are generated monthly for every active Account.
13+
14+
You can access the statement's data via the API or retrieve a PDF with its details via its associated File.
15+
"""
16+
1217
id: str
1318
"""The Account Statement identifier."""
1419

src/increase/types/account_transfer.py

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,10 @@
2020

2121

2222
class Approval(BaseModel):
23+
"""
24+
If your account requires approvals for transfers and the transfer was approved, this will contain details of the approval.
25+
"""
26+
2327
approved_at: datetime
2428
"""
2529
The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date and time at which
@@ -34,6 +38,10 @@ class Approval(BaseModel):
3438

3539

3640
class Cancellation(BaseModel):
41+
"""
42+
If your account requires approvals for transfers and the transfer was not approved, this will contain details of the cancellation.
43+
"""
44+
3745
canceled_at: datetime
3846
"""
3947
The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date and time at which
@@ -48,21 +56,29 @@ class Cancellation(BaseModel):
4856

4957

5058
class CreatedByAPIKey(BaseModel):
59+
"""If present, details about the API key that created the transfer."""
60+
5161
description: Optional[str] = None
5262
"""The description set for the API key when it was created."""
5363

5464

5565
class CreatedByOAuthApplication(BaseModel):
66+
"""If present, details about the OAuth Application that created the transfer."""
67+
5668
name: str
5769
"""The name of the OAuth Application."""
5870

5971

6072
class CreatedByUser(BaseModel):
73+
"""If present, details about the User that created the transfer."""
74+
6175
email: str
6276
"""The email address of the User."""
6377

6478

6579
class CreatedBy(BaseModel):
80+
"""What object created the transfer, either via the API or the dashboard."""
81+
6682
api_key: Optional[CreatedByAPIKey] = None
6783
"""If present, details about the API key that created the transfer."""
6884

@@ -84,6 +100,10 @@ class CreatedBy(BaseModel):
84100

85101

86102
class AccountTransfer(BaseModel):
103+
"""
104+
Account transfers move funds between your own accounts at Increase (accounting systems often refer to these as Book Transfers). Account Transfers are free and synchronous. Upon creation they create two Transactions, one negative on the originating account and one positive on the destination account (unless the transfer requires approval, in which case the Transactions will be created when the transfer is approved).
105+
"""
106+
87107
id: str
88108
"""The Account Transfer's identifier."""
89109

src/increase/types/ach_prenotification.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,8 @@ class NotificationsOfChange(BaseModel):
8888

8989

9090
class PrenotificationReturn(BaseModel):
91+
"""If your prenotification is returned, this will contain details of the return."""
92+
9193
created_at: datetime
9294
"""
9395
The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date and time at which
@@ -319,6 +321,10 @@ class PrenotificationReturn(BaseModel):
319321

320322

321323
class ACHPrenotification(BaseModel):
324+
"""
325+
ACH Prenotifications are one way you can verify account and routing numbers by Automated Clearing House (ACH).
326+
"""
327+
322328
id: str
323329
"""The ACH Prenotification's identifier."""
324330

src/increase/types/ach_transfer.py

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,10 @@
3232

3333

3434
class Acknowledgement(BaseModel):
35+
"""
36+
After the transfer is acknowledged by FedACH, this will contain supplemental details. The Federal Reserve sends an acknowledgement message for each file that Increase submits.
37+
"""
38+
3539
acknowledged_at: str
3640
"""
3741
When the Federal Reserve acknowledged the submitted file containing this
@@ -45,6 +49,8 @@ class AddendaFreeformEntry(BaseModel):
4549

4650

4751
class AddendaFreeform(BaseModel):
52+
"""Unstructured `payment_related_information` passed through with the transfer."""
53+
4854
entries: List[AddendaFreeformEntry]
4955
"""Each entry represents an addendum sent with the transfer."""
5056

@@ -61,11 +67,18 @@ class AddendaPaymentOrderRemittanceAdviceInvoice(BaseModel):
6167

6268

6369
class AddendaPaymentOrderRemittanceAdvice(BaseModel):
70+
"""Structured ASC X12 820 remittance advice records.
71+
72+
Please reach out to [support@increase.com](mailto:support@increase.com) for more information.
73+
"""
74+
6475
invoices: List[AddendaPaymentOrderRemittanceAdviceInvoice]
6576
"""ASC X12 RMR records for this specific transfer."""
6677

6778

6879
class Addenda(BaseModel):
80+
"""Additional information that will be sent to the recipient."""
81+
6982
category: Literal["freeform", "payment_order_remittance_advice", "other"]
7083
"""The type of the resource.
7184
@@ -92,6 +105,10 @@ class Addenda(BaseModel):
92105

93106

94107
class Approval(BaseModel):
108+
"""
109+
If your account requires approvals for transfers and the transfer was approved, this will contain details of the approval.
110+
"""
111+
95112
approved_at: datetime.datetime
96113
"""
97114
The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date and time at which
@@ -106,6 +123,10 @@ class Approval(BaseModel):
106123

107124

108125
class Cancellation(BaseModel):
126+
"""
127+
If your account requires approvals for transfers and the transfer was not approved, this will contain details of the cancellation.
128+
"""
129+
109130
canceled_at: datetime.datetime
110131
"""
111132
The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date and time at which
@@ -120,21 +141,29 @@ class Cancellation(BaseModel):
120141

121142

122143
class CreatedByAPIKey(BaseModel):
144+
"""If present, details about the API key that created the transfer."""
145+
123146
description: Optional[str] = None
124147
"""The description set for the API key when it was created."""
125148

126149

127150
class CreatedByOAuthApplication(BaseModel):
151+
"""If present, details about the OAuth Application that created the transfer."""
152+
128153
name: str
129154
"""The name of the OAuth Application."""
130155

131156

132157
class CreatedByUser(BaseModel):
158+
"""If present, details about the User that created the transfer."""
159+
133160
email: str
134161
"""The email address of the User."""
135162

136163

137164
class CreatedBy(BaseModel):
165+
"""What object created the transfer, either via the API or the dashboard."""
166+
138167
api_key: Optional[CreatedByAPIKey] = None
139168
"""If present, details about the API key that created the transfer."""
140169

@@ -156,6 +185,11 @@ class CreatedBy(BaseModel):
156185

157186

158187
class InboundFundsHold(BaseModel):
188+
"""Increase will sometimes hold the funds for ACH debit transfers.
189+
190+
If funds are held, this sub-object will contain details of the hold.
191+
"""
192+
159193
amount: int
160194
"""The held amount in the minor unit of the account's currency.
161195
@@ -296,6 +330,11 @@ class NotificationsOfChange(BaseModel):
296330

297331

298332
class PreferredEffectiveDate(BaseModel):
333+
"""Configuration for how the effective date of the transfer will be set.
334+
335+
This determines same-day vs future-dated settlement timing. If not set, defaults to a `settlement_schedule` of `same_day`. If set, exactly one of the child attributes must be set.
336+
"""
337+
299338
date: Optional[datetime.date] = None
300339
"""
301340
A specific date in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format to
@@ -316,6 +355,8 @@ class PreferredEffectiveDate(BaseModel):
316355

317356

318357
class Return(BaseModel):
358+
"""If your transfer is returned, this will contain details of the return."""
359+
319360
created_at: datetime.datetime
320361
"""
321362
The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date and time at which
@@ -578,6 +619,10 @@ def __getattr__(self, attr: str) -> object: ...
578619

579620

580621
class Settlement(BaseModel):
622+
"""
623+
A subhash containing information about when and how the transfer settled at the Federal Reserve.
624+
"""
625+
581626
settled_at: datetime.datetime
582627
"""
583628
When the funds for this transfer have settled at the destination bank at the
@@ -586,6 +631,10 @@ class Settlement(BaseModel):
586631

587632

588633
class Submission(BaseModel):
634+
"""
635+
After the transfer is submitted to FedACH, this will contain supplemental details. Increase batches transfers and submits a file to the Federal Reserve roughly every 30 minutes. The Federal Reserve processes ACH transfers during weekdays according to their [posted schedule](https://www.frbservices.org/resources/resource-centers/same-day-ach/fedach-processing-schedule.html).
636+
"""
637+
589638
administrative_returns_expected_by: datetime.datetime
590639
"""The timestamp by which any administrative returns are expected to be received
591640
by.
@@ -637,6 +686,10 @@ class Submission(BaseModel):
637686

638687

639688
class ACHTransfer(BaseModel):
689+
"""
690+
ACH transfers move funds between your Increase account and any other account accessible by the Automated Clearing House (ACH).
691+
"""
692+
640693
id: str
641694
"""The ACH transfer's identifier."""
642695

src/increase/types/ach_transfer_create_params.py

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -155,6 +155,11 @@ class AddendaFreeformEntry(TypedDict, total=False):
155155

156156

157157
class AddendaFreeform(TypedDict, total=False):
158+
"""Unstructured `payment_related_information` passed through with the transfer.
159+
160+
Required if and only if `category` is `freeform`.
161+
"""
162+
158163
entries: Required[Iterable[AddendaFreeformEntry]]
159164
"""Each entry represents an addendum sent with the transfer.
160165
@@ -177,11 +182,21 @@ class AddendaPaymentOrderRemittanceAdviceInvoice(TypedDict, total=False):
177182

178183

179184
class AddendaPaymentOrderRemittanceAdvice(TypedDict, total=False):
185+
"""Structured ASC X12 820 remittance advice records.
186+
187+
Please reach out to [support@increase.com](mailto:support@increase.com) for more information. Required if and only if `category` is `payment_order_remittance_advice`.
188+
"""
189+
180190
invoices: Required[Iterable[AddendaPaymentOrderRemittanceAdviceInvoice]]
181191
"""ASC X12 RMR records for this specific transfer."""
182192

183193

184194
class Addenda(TypedDict, total=False):
195+
"""Additional information that will be sent to the recipient.
196+
197+
This is included in the transfer data sent to the receiving bank.
198+
"""
199+
185200
category: Required[Literal["freeform", "payment_order_remittance_advice"]]
186201
"""The type of addenda to pass with the transfer.
187202
@@ -208,6 +223,11 @@ class Addenda(TypedDict, total=False):
208223

209224

210225
class PreferredEffectiveDate(TypedDict, total=False):
226+
"""Configuration for how the effective date of the transfer will be set.
227+
228+
This determines same-day vs future-dated settlement timing. If not set, defaults to a `settlement_schedule` of `same_day`. If set, exactly one of the child attributes must be set.
229+
"""
230+
211231
date: Annotated[Union[str, datetime.date], PropertyInfo(format="iso8601")]
212232
"""
213233
A specific date in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format to

src/increase/types/balance_lookup.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,10 @@
88

99

1010
class BalanceLookup(BaseModel):
11+
"""
12+
Represents a request to lookup the balance of an Account at a given point in time.
13+
"""
14+
1115
account_id: str
1216
"""The identifier for the account for which the balance was queried."""
1317

0 commit comments

Comments
 (0)