Skip to content

Commit 9b94033

Browse files
committed
refactor(api): remove unused properties and enum members (#19)
Also adds the following enum members - `unreadable_image` - `endorsement_irregular`
1 parent 5b0137d commit 9b94033

11 files changed

+7
-1230
lines changed

src/increase/types/check_deposit.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,7 @@ class DepositReturn(BaseModel):
105105
"unknown_reason",
106106
"unmatched_details",
107107
"unreadable_image",
108+
"endorsement_irregular",
108109
]
109110

110111
returned_at: datetime

src/increase/types/check_transfer.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -213,6 +213,7 @@ class CheckTransfer(BaseModel):
213213
"pending_submission",
214214
"submitted",
215215
"pending_mailing",
216+
"stopped_and_pending_mailing",
216217
"mailed",
217218
"canceled",
218219
"deposited",

src/increase/types/declined_transaction.py

Lines changed: 0 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@
1717
"SourceCheckDecline",
1818
"SourceInboundRealTimePaymentsTransferDecline",
1919
"SourceInternationalACHDecline",
20-
"SourceCardRouteDecline",
2120
"SourceWireDecline",
2221
]
2322

@@ -314,32 +313,6 @@ class SourceInternationalACHDecline(BaseModel):
314313
trace_number: str
315314

316315

317-
class SourceCardRouteDecline(BaseModel):
318-
amount: int
319-
"""The declined amount in the minor unit of the destination account currency.
320-
321-
For dollars, for example, this is cents.
322-
"""
323-
324-
currency: Literal["CAD", "CHF", "EUR", "GBP", "JPY", "USD"]
325-
"""
326-
The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the destination
327-
account currency.
328-
"""
329-
330-
merchant_acceptor_id: str
331-
332-
merchant_category_code: Optional[str]
333-
334-
merchant_city: Optional[str]
335-
336-
merchant_country: str
337-
338-
merchant_descriptor: str
339-
340-
merchant_state: Optional[str]
341-
342-
343316
class SourceWireDecline(BaseModel):
344317
amount: int
345318
"""The declined amount in the minor unit of the destination account currency.
@@ -403,20 +376,12 @@ class Source(BaseModel):
403376
equal to `card_decline`.
404377
"""
405378

406-
card_route_decline: Optional[SourceCardRouteDecline]
407-
"""A Deprecated Card Decline object.
408-
409-
This field will be present in the JSON response if and only if `category` is
410-
equal to `card_route_decline`.
411-
"""
412-
413379
category: Literal[
414380
"ach_decline",
415381
"card_decline",
416382
"check_decline",
417383
"inbound_real_time_payments_transfer_decline",
418384
"international_ach_decline",
419-
"card_route_decline",
420385
"wire_decline",
421386
"other",
422387
]

src/increase/types/pending_transaction.py

Lines changed: 0 additions & 58 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,7 @@
1818
"SourceCheckDepositInstruction",
1919
"SourceCheckTransferInstruction",
2020
"SourceInboundFundsHold",
21-
"SourceCardRouteAuthorization",
2221
"SourceRealTimePaymentsTransferInstruction",
23-
"SourceWireDrawdownPaymentInstruction",
2422
"SourceWireTransferInstruction",
2523
]
2624

@@ -239,32 +237,6 @@ class SourceInboundFundsHold(BaseModel):
239237
"""The status of the hold."""
240238

241239

242-
class SourceCardRouteAuthorization(BaseModel):
243-
amount: int
244-
"""The pending amount in the minor unit of the transaction's currency.
245-
246-
For dollars, for example, this is cents.
247-
"""
248-
249-
currency: Literal["CAD", "CHF", "EUR", "GBP", "JPY", "USD"]
250-
"""
251-
The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the
252-
transaction's currency.
253-
"""
254-
255-
merchant_acceptor_id: str
256-
257-
merchant_category_code: str
258-
259-
merchant_city: Optional[str]
260-
261-
merchant_country: str
262-
263-
merchant_descriptor: str
264-
265-
merchant_state: Optional[str]
266-
267-
268240
class SourceRealTimePaymentsTransferInstruction(BaseModel):
269241
amount: int
270242
"""The pending amount in the minor unit of the transaction's currency.
@@ -279,20 +251,6 @@ class SourceRealTimePaymentsTransferInstruction(BaseModel):
279251
"""
280252

281253

282-
class SourceWireDrawdownPaymentInstruction(BaseModel):
283-
account_number: str
284-
285-
amount: int
286-
"""The pending amount in the minor unit of the transaction's currency.
287-
288-
For dollars, for example, this is cents.
289-
"""
290-
291-
message_to_recipient: str
292-
293-
routing_number: str
294-
295-
296254
class SourceWireTransferInstruction(BaseModel):
297255
account_number: str
298256

@@ -331,23 +289,14 @@ class Source(BaseModel):
331289
equal to `card_authorization`.
332290
"""
333291

334-
card_route_authorization: Optional[SourceCardRouteAuthorization]
335-
"""A Deprecated Card Authorization object.
336-
337-
This field will be present in the JSON response if and only if `category` is
338-
equal to `card_route_authorization`.
339-
"""
340-
341292
category: Literal[
342293
"account_transfer_instruction",
343294
"ach_transfer_instruction",
344295
"card_authorization",
345296
"check_deposit_instruction",
346297
"check_transfer_instruction",
347298
"inbound_funds_hold",
348-
"card_route_authorization",
349299
"real_time_payments_transfer_instruction",
350-
"wire_drawdown_payment_instruction",
351300
"wire_transfer_instruction",
352301
"other",
353302
]
@@ -385,13 +334,6 @@ class Source(BaseModel):
385334
equal to `real_time_payments_transfer_instruction`.
386335
"""
387336

388-
wire_drawdown_payment_instruction: Optional[SourceWireDrawdownPaymentInstruction]
389-
"""A Wire Drawdown Payment Instruction object.
390-
391-
This field will be present in the JSON response if and only if `category` is
392-
equal to `wire_drawdown_payment_instruction`.
393-
"""
394-
395337
wire_transfer_instruction: Optional[SourceWireTransferInstruction]
396338
"""A Wire Transfer Instruction object.
397339

0 commit comments

Comments
 (0)