Skip to content

Commit 0884e18

Browse files
feat(api/types): mark more check transfer intention properties as nullable (#23)
Also adds `physical_card_artwork` and `physical_card_carrier` to file purpose enum
1 parent 8569c11 commit 0884e18

11 files changed

+42
-33
lines changed

src/increase/resources/files.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,8 @@ def create(
2929
"trust_formation_document",
3030
"digital_wallet_artwork",
3131
"digital_wallet_app_icon",
32+
"physical_card_artwork",
33+
"physical_card_carrier",
3234
"document_request",
3335
"entity_supplemental_document",
3436
],
@@ -193,6 +195,8 @@ async def create(
193195
"trust_formation_document",
194196
"digital_wallet_artwork",
195197
"digital_wallet_app_icon",
198+
"physical_card_artwork",
199+
"physical_card_carrier",
196200
"document_request",
197201
"entity_supplemental_document",
198202
],

src/increase/types/card_update_params.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ class BillingAddress(TypedDict, total=False):
4444

4545
class DigitalWallet(TypedDict, total=False):
4646
card_profile_id: str
47-
"""The card profile assigned to this digital card.
47+
"""The card profile assigned to this card.
4848
4949
Card profiles may also be assigned at the program level.
5050
"""

src/increase/types/check_transfer.py

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -135,19 +135,19 @@ class CheckTransfer(BaseModel):
135135
account_id: str
136136
"""The identifier of the Account from which funds will be transferred."""
137137

138-
address_city: str
138+
address_city: Optional[str]
139139
"""The city of the check's destination."""
140140

141-
address_line1: str
141+
address_line1: Optional[str]
142142
"""The street address of the check's destination."""
143143

144144
address_line2: Optional[str]
145145
"""The second line of the address of the check's destination."""
146146

147-
address_state: str
147+
address_state: Optional[str]
148148
"""The state of the check's destination."""
149149

150-
address_zip: str
150+
address_zip: Optional[str]
151151
"""The postal code of the check's destination."""
152152

153153
amount: int
@@ -189,13 +189,13 @@ class CheckTransfer(BaseModel):
189189
the check was mailed.
190190
"""
191191

192-
message: str
192+
message: Optional[str]
193193
"""The descriptor that will be printed on the memo field on the check."""
194194

195195
note: Optional[str]
196196
"""The descriptor that will be printed on the letter included with the check."""
197197

198-
recipient_name: str
198+
recipient_name: Optional[str]
199199
"""The name that will be printed on the check."""
200200

201201
return_address: Optional[ReturnAddress]
@@ -213,7 +213,6 @@ class CheckTransfer(BaseModel):
213213
"pending_submission",
214214
"submitted",
215215
"pending_mailing",
216-
"stopped_and_pending_mailing",
217216
"mailed",
218217
"canceled",
219218
"deposited",

src/increase/types/file.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,8 @@ class File(BaseModel):
4242
"trust_formation_document",
4343
"digital_wallet_artwork",
4444
"digital_wallet_app_icon",
45+
"physical_card_artwork",
46+
"physical_card_carrier",
4547
"document_request",
4648
"entity_supplemental_document",
4749
"export",

src/increase/types/file_create_params.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,8 @@ class FileCreateParams(TypedDict, total=False):
2828
"trust_formation_document",
2929
"digital_wallet_artwork",
3030
"digital_wallet_app_icon",
31+
"physical_card_artwork",
32+
"physical_card_carrier",
3133
"document_request",
3234
"entity_supplemental_document",
3335
]

src/increase/types/file_list_params.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,8 @@ class CreatedAt(TypedDict, total=False):
6767
"trust_formation_document",
6868
"digital_wallet_artwork",
6969
"digital_wallet_app_icon",
70+
"physical_card_artwork",
71+
"physical_card_carrier",
7072
"document_request",
7173
"entity_supplemental_document",
7274
"export",

src/increase/types/simulations/ach_transfer_simulation.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -419,19 +419,19 @@ class TransactionSourceCheckDepositReturn(BaseModel):
419419

420420

421421
class TransactionSourceCheckTransferIntention(BaseModel):
422-
address_city: str
422+
address_city: Optional[str]
423423
"""The city of the check's destination."""
424424

425-
address_line1: str
425+
address_line1: Optional[str]
426426
"""The street address of the check's destination."""
427427

428428
address_line2: Optional[str]
429429
"""The second line of the address of the check's destination."""
430430

431-
address_state: str
431+
address_state: Optional[str]
432432
"""The state of the check's destination."""
433433

434-
address_zip: str
434+
address_zip: Optional[str]
435435
"""The postal code of the check's destination."""
436436

437437
amount: int
@@ -443,7 +443,7 @@ class TransactionSourceCheckTransferIntention(BaseModel):
443443
currency.
444444
"""
445445

446-
recipient_name: str
446+
recipient_name: Optional[str]
447447
"""The name that will be printed on the check."""
448448

449449
transfer_id: str

src/increase/types/simulations/inbound_real_time_payments_transfer_simulation_result.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -419,19 +419,19 @@ class TransactionSourceCheckDepositReturn(BaseModel):
419419

420420

421421
class TransactionSourceCheckTransferIntention(BaseModel):
422-
address_city: str
422+
address_city: Optional[str]
423423
"""The city of the check's destination."""
424424

425-
address_line1: str
425+
address_line1: Optional[str]
426426
"""The street address of the check's destination."""
427427

428428
address_line2: Optional[str]
429429
"""The second line of the address of the check's destination."""
430430

431-
address_state: str
431+
address_state: Optional[str]
432432
"""The state of the check's destination."""
433433

434-
address_zip: str
434+
address_zip: Optional[str]
435435
"""The postal code of the check's destination."""
436436

437437
amount: int
@@ -443,7 +443,7 @@ class TransactionSourceCheckTransferIntention(BaseModel):
443443
currency.
444444
"""
445445

446-
recipient_name: str
446+
recipient_name: Optional[str]
447447
"""The name that will be printed on the check."""
448448

449449
transfer_id: str

src/increase/types/simulations/interest_payment_simulation_result.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -408,19 +408,19 @@ class TransactionSourceCheckDepositReturn(BaseModel):
408408

409409

410410
class TransactionSourceCheckTransferIntention(BaseModel):
411-
address_city: str
411+
address_city: Optional[str]
412412
"""The city of the check's destination."""
413413

414-
address_line1: str
414+
address_line1: Optional[str]
415415
"""The street address of the check's destination."""
416416

417417
address_line2: Optional[str]
418418
"""The second line of the address of the check's destination."""
419419

420-
address_state: str
420+
address_state: Optional[str]
421421
"""The state of the check's destination."""
422422

423-
address_zip: str
423+
address_zip: Optional[str]
424424
"""The postal code of the check's destination."""
425425

426426
amount: int
@@ -432,7 +432,7 @@ class TransactionSourceCheckTransferIntention(BaseModel):
432432
currency.
433433
"""
434434

435-
recipient_name: str
435+
recipient_name: Optional[str]
436436
"""The name that will be printed on the check."""
437437

438438
transfer_id: str

src/increase/types/simulations/wire_transfer_simulation.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -408,19 +408,19 @@ class TransactionSourceCheckDepositReturn(BaseModel):
408408

409409

410410
class TransactionSourceCheckTransferIntention(BaseModel):
411-
address_city: str
411+
address_city: Optional[str]
412412
"""The city of the check's destination."""
413413

414-
address_line1: str
414+
address_line1: Optional[str]
415415
"""The street address of the check's destination."""
416416

417417
address_line2: Optional[str]
418418
"""The second line of the address of the check's destination."""
419419

420-
address_state: str
420+
address_state: Optional[str]
421421
"""The state of the check's destination."""
422422

423-
address_zip: str
423+
address_zip: Optional[str]
424424
"""The postal code of the check's destination."""
425425

426426
amount: int
@@ -432,7 +432,7 @@ class TransactionSourceCheckTransferIntention(BaseModel):
432432
currency.
433433
"""
434434

435-
recipient_name: str
435+
recipient_name: Optional[str]
436436
"""The name that will be printed on the check."""
437437

438438
transfer_id: str

0 commit comments

Comments
 (0)