Skip to content

Commit 7f0c775

Browse files
feat(api): api update
1 parent a009452 commit 7f0c775

File tree

6 files changed

+48
-2
lines changed

6 files changed

+48
-2
lines changed

.stats.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 167
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/modern-treasury%2Fmodern-treasury-257040c089ce26f92854bb3b6f670346234fadcdb0c5cff409cfef36b29b10b3.yml
3-
openapi_spec_hash: 15e400c236067ffb59f207b5332c8a34
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/modern-treasury%2Fmodern-treasury-3f5592bbc01c42445ac4b8ba434c3dea8cda89df964fea61fbf1de119a187e16.yml
3+
openapi_spec_hash: e5d58c41a2d27e45c50897e3e37d2acc
44
config_hash: 55a5583c24314820a65f792e2ebab57b

src/modern_treasury/resources/incoming_payment_details.py

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -138,6 +138,7 @@ def list(
138138
metadata: Dict[str, str] | Omit = omit,
139139
per_page: int | Omit = omit,
140140
status: Literal["completed", "pending", "returned"] | Omit = omit,
141+
subtype: str | Omit = omit,
141142
type: Literal[
142143
"ach",
143144
"au_becs",
@@ -186,6 +187,10 @@ def list(
186187
status: The current status of the incoming payment order. One of `pending`, `completed`,
187188
or `returned`.
188189
190+
subtype: An additional layer of classification for the type of incoming payment detail.
191+
For example, a `type` of `stablecoin` may have a `subtype` of `ethereum` or
192+
`solana`.
193+
189194
type: One of: `ach`, `book`, `check`, `eft`, `interac`, `rtp`, `sepa`, `signet`, or
190195
`wire`.
191196
@@ -217,6 +222,7 @@ def list(
217222
"metadata": metadata,
218223
"per_page": per_page,
219224
"status": status,
225+
"subtype": subtype,
220226
"type": type,
221227
"virtual_account_id": virtual_account_id,
222228
},
@@ -236,6 +242,7 @@ def create_async(
236242
description: Optional[str] | Omit = omit,
237243
direction: Literal["credit", "debit"] | Omit = omit,
238244
internal_account_id: str | Omit = omit,
245+
subtype: Optional[str] | Omit = omit,
239246
type: Literal[
240247
"ach",
241248
"au_becs",
@@ -286,6 +293,9 @@ def create_async(
286293
287294
internal_account_id: The ID of one of your internal accounts.
288295
296+
subtype: An additional layer of classification for the type of incoming payment detail,
297+
e.g. `ethereum` for a `stablecoin` type.
298+
289299
type: One of `ach`, `wire`, `check`.
290300
291301
virtual_account_id: An optional parameter to associate the incoming payment detail to a virtual
@@ -312,6 +322,7 @@ def create_async(
312322
"description": description,
313323
"direction": direction,
314324
"internal_account_id": internal_account_id,
325+
"subtype": subtype,
315326
"type": type,
316327
"virtual_account_id": virtual_account_id,
317328
},
@@ -438,6 +449,7 @@ def list(
438449
metadata: Dict[str, str] | Omit = omit,
439450
per_page: int | Omit = omit,
440451
status: Literal["completed", "pending", "returned"] | Omit = omit,
452+
subtype: str | Omit = omit,
441453
type: Literal[
442454
"ach",
443455
"au_becs",
@@ -486,6 +498,10 @@ def list(
486498
status: The current status of the incoming payment order. One of `pending`, `completed`,
487499
or `returned`.
488500
501+
subtype: An additional layer of classification for the type of incoming payment detail.
502+
For example, a `type` of `stablecoin` may have a `subtype` of `ethereum` or
503+
`solana`.
504+
489505
type: One of: `ach`, `book`, `check`, `eft`, `interac`, `rtp`, `sepa`, `signet`, or
490506
`wire`.
491507
@@ -517,6 +533,7 @@ def list(
517533
"metadata": metadata,
518534
"per_page": per_page,
519535
"status": status,
536+
"subtype": subtype,
520537
"type": type,
521538
"virtual_account_id": virtual_account_id,
522539
},
@@ -536,6 +553,7 @@ async def create_async(
536553
description: Optional[str] | Omit = omit,
537554
direction: Literal["credit", "debit"] | Omit = omit,
538555
internal_account_id: str | Omit = omit,
556+
subtype: Optional[str] | Omit = omit,
539557
type: Literal[
540558
"ach",
541559
"au_becs",
@@ -586,6 +604,9 @@ async def create_async(
586604
587605
internal_account_id: The ID of one of your internal accounts.
588606
607+
subtype: An additional layer of classification for the type of incoming payment detail,
608+
e.g. `ethereum` for a `stablecoin` type.
609+
589610
type: One of `ach`, `wire`, `check`.
590611
591612
virtual_account_id: An optional parameter to associate the incoming payment detail to a virtual
@@ -612,6 +633,7 @@ async def create_async(
612633
"description": description,
613634
"direction": direction,
614635
"internal_account_id": internal_account_id,
636+
"subtype": subtype,
615637
"type": type,
616638
"virtual_account_id": virtual_account_id,
617639
},

src/modern_treasury/types/incoming_payment_detail.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,13 @@ class IncomingPaymentDetail(BaseModel):
129129
One of `pending`, `completed`, or `returned`.
130130
"""
131131

132+
subtype: Optional[str] = None
133+
"""An additional layer of classification for the type of incoming payment detail.
134+
135+
For example, a `type` of `stablecoin` may have a `subtype` of `ethereum` or
136+
`solana`.
137+
"""
138+
132139
transaction_id: Optional[str] = None
133140
"""The ID of the reconciled Transaction or `null`."""
134141

src/modern_treasury/types/incoming_payment_detail_create_async_params.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,12 @@ class IncomingPaymentDetailCreateAsyncParams(TypedDict, total=False):
4040
internal_account_id: str
4141
"""The ID of one of your internal accounts."""
4242

43+
subtype: Optional[str]
44+
"""
45+
An additional layer of classification for the type of incoming payment detail,
46+
e.g. `ethereum` for a `stablecoin` type.
47+
"""
48+
4349
type: Literal[
4450
"ach",
4551
"au_becs",

src/modern_treasury/types/incoming_payment_detail_list_params.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,13 @@ class IncomingPaymentDetailListParams(TypedDict, total=False):
4545
One of `pending`, `completed`, or `returned`.
4646
"""
4747

48+
subtype: str
49+
"""An additional layer of classification for the type of incoming payment detail.
50+
51+
For example, a `type` of `stablecoin` may have a `subtype` of `ethereum` or
52+
`solana`.
53+
"""
54+
4855
type: Literal[
4956
"ach",
5057
"au_becs",

tests/api_resources/test_incoming_payment_details.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,7 @@ def test_method_list_with_all_params(self, client: ModernTreasury) -> None:
120120
metadata={"foo": "string"},
121121
per_page=0,
122122
status="completed",
123+
subtype="subtype",
123124
type="ach",
124125
virtual_account_id="virtual_account_id",
125126
)
@@ -160,6 +161,7 @@ def test_method_create_async_with_all_params(self, client: ModernTreasury) -> No
160161
description="description",
161162
direction="credit",
162163
internal_account_id="182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
164+
subtype="subtype",
163165
type="ach",
164166
virtual_account_id="182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
165167
)
@@ -290,6 +292,7 @@ async def test_method_list_with_all_params(self, async_client: AsyncModernTreasu
290292
metadata={"foo": "string"},
291293
per_page=0,
292294
status="completed",
295+
subtype="subtype",
293296
type="ach",
294297
virtual_account_id="virtual_account_id",
295298
)
@@ -330,6 +333,7 @@ async def test_method_create_async_with_all_params(self, async_client: AsyncMode
330333
description="description",
331334
direction="credit",
332335
internal_account_id="182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
336+
subtype="subtype",
333337
type="ach",
334338
virtual_account_id="182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
335339
)

0 commit comments

Comments
 (0)