Skip to content

Commit aa66507

Browse files
feat(api): add WIRE category, wire events, remove remittance_information from payment
1 parent 224cb0c commit aa66507

7 files changed

Lines changed: 60 additions & 9 deletions

File tree

.stats.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 188
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/lithic%2Flithic-b0ae5fc46338788b5191870fa233397a5624402f6f30177574fc824c2d6d235f.yml
3-
openapi_spec_hash: 13b104665e60f7d755b0483eb2e8a344
4-
config_hash: 7daa8d0d03697920c0c1ca18ce6d4594
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/lithic%2Flithic-716063c7d5d29dd3904168352017d0a065e50eec066f78ed8a3f7c796a48a78b.yml
3+
openapi_spec_hash: 3d930f469199651974e9bfbee65486ef
4+
config_hash: 8799cfd589579f105ef8696a6d664c71

src/lithic/resources/account_activity.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ def list(
5151
business_account_token: str | Omit = omit,
5252
category: Literal[
5353
"ACH",
54+
"WIRE",
5455
"BALANCE_OR_FUNDING",
5556
"FEE",
5657
"REWARD",
@@ -222,6 +223,7 @@ def list(
222223
business_account_token: str | Omit = omit,
223224
category: Literal[
224225
"ACH",
226+
"WIRE",
225227
"BALANCE_OR_FUNDING",
226228
"FEE",
227229
"REWARD",

src/lithic/types/account_activity_list_params.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ class AccountActivityListParams(TypedDict, total=False):
2626

2727
category: Literal[
2828
"ACH",
29+
"WIRE",
2930
"BALANCE_OR_FUNDING",
3031
"FEE",
3132
"REWARD",

src/lithic/types/account_activity_list_response.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ class FinancialTransaction(BaseModel):
2525

2626
category: Literal[
2727
"ACH",
28+
"WIRE",
2829
"BALANCE_OR_FUNDING",
2930
"FEE",
3031
"REWARD",

src/lithic/types/account_activity_retrieve_transaction_response.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ class FinancialTransaction(BaseModel):
2525

2626
category: Literal[
2727
"ACH",
28+
"WIRE",
2829
"BALANCE_OR_FUNDING",
2930
"FEE",
3031
"REWARD",

src/lithic/types/financial_accounts/statements/statement_line_items.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ class Data(BaseModel):
1818

1919
category: Literal[
2020
"ACH",
21+
"WIRE",
2122
"BALANCE_OR_FUNDING",
2223
"FEE",
2324
"REWARD",
@@ -39,6 +40,11 @@ class Data(BaseModel):
3940
"HOLD",
4041
"PROGRAM_FUNDING",
4142
]
43+
"""
44+
Note: Inbound wire transfers are coming soon (availability varies by partner
45+
bank). The WIRE category is a preview. To learn more, contact your customer
46+
success manager.
47+
"""
4248

4349
created: datetime
4450
"""Timestamp of when the line item was generated"""

src/lithic/types/payment.py

Lines changed: 46 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,11 @@
1818

1919

2020
class Event(BaseModel):
21-
"""Payment Event"""
21+
"""
22+
Note: Inbound wire transfers are coming soon (availability varies by partner bank). Wire-related fields below are a preview. To learn more, contact your customer success manager.
23+
24+
Payment Event
25+
"""
2226

2327
token: str
2428
"""Globally unique identifier."""
@@ -54,8 +58,22 @@ class Event(BaseModel):
5458
"ACH_RETURN_PROCESSED",
5559
"ACH_RETURN_REJECTED",
5660
"ACH_RETURN_SETTLED",
61+
"WIRE_TRANSFER_INBOUND_RECEIVED",
62+
"WIRE_TRANSFER_INBOUND_SETTLED",
63+
"WIRE_TRANSFER_INBOUND_BLOCKED",
64+
"WIRE_RETURN_OUTBOUND_INITIATED",
65+
"WIRE_RETURN_OUTBOUND_SENT",
66+
"WIRE_RETURN_OUTBOUND_SETTLED",
67+
"WIRE_RETURN_OUTBOUND_REJECTED",
5768
]
58-
"""Event types:
69+
"""
70+
Note: Inbound wire transfers are coming soon (availability varies by partner
71+
bank). Wire-related event types below are a preview. To learn more, contact your
72+
customer success manager.
73+
74+
Event types:
75+
76+
ACH events:
5977
6078
- `ACH_ORIGINATION_INITIATED` - ACH origination received and pending
6179
approval/release from an ACH hold.
@@ -81,6 +99,26 @@ class Event(BaseModel):
8199
Financial Institution.
82100
- `ACH_RETURN_REJECTED` - ACH return was rejected by the Receiving Depository
83101
Financial Institution.
102+
103+
Wire transfer events:
104+
105+
- `WIRE_TRANSFER_INBOUND_RECEIVED` - Inbound wire transfer received from the
106+
Federal Reserve and pending release to available balance.
107+
- `WIRE_TRANSFER_INBOUND_SETTLED` - Inbound wire transfer funds released from
108+
pending to available balance.
109+
- `WIRE_TRANSFER_INBOUND_BLOCKED` - Inbound wire transfer blocked and funds
110+
frozen for regulatory review.
111+
112+
Wire return events:
113+
114+
- `WIRE_RETURN_OUTBOUND_INITIATED` - Outbound wire return initiated to return
115+
funds from an inbound wire transfer.
116+
- `WIRE_RETURN_OUTBOUND_SENT` - Outbound wire return sent to the Federal Reserve
117+
and pending acceptance.
118+
- `WIRE_RETURN_OUTBOUND_SETTLED` - Outbound wire return accepted by the Federal
119+
Reserve and funds returned to sender.
120+
- `WIRE_RETURN_OUTBOUND_REJECTED` - Outbound wire return rejected by the Federal
121+
Reserve.
84122
"""
85123

86124
detailed_results: Optional[
@@ -99,7 +137,11 @@ class Event(BaseModel):
99137
"""More detailed reasons for the event"""
100138

101139
external_id: Optional[str] = None
102-
"""Payment event external ID, for example, ACH trace number."""
140+
"""Payment event external ID.
141+
142+
For ACH transactions, this is the ACH trace number. For inbound wire transfers,
143+
this is the IMAD (Input Message Accountability Data).
144+
"""
103145

104146

105147
class MethodAttributesACHMethodAttributes(BaseModel):
@@ -145,9 +187,6 @@ class MethodAttributesWireMethodAttributes(BaseModel):
145187
for tracking the message through the Fedwire system
146188
"""
147189

148-
remittance_information: Optional[str] = None
149-
"""Payment details or invoice reference"""
150-
151190

152191
MethodAttributes: TypeAlias = Union[MethodAttributesACHMethodAttributes, MethodAttributesWireMethodAttributes]
153192

@@ -170,6 +209,7 @@ class Payment(BaseModel):
170209

171210
category: Literal[
172211
"ACH",
212+
"WIRE",
173213
"BALANCE_OR_FUNDING",
174214
"FEE",
175215
"REWARD",

0 commit comments

Comments
 (0)