Skip to content

Commit 51d053e

Browse files
feat(api): Add hold token field to book transfers
1 parent f428d56 commit 51d053e

4 files changed

Lines changed: 15 additions & 2 deletions

File tree

.stats.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 176
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/lithic%2Flithic-da8525181ab7cccb66db674dd7243de54b28969c0395223f6dbec3c791f1e7b0.yml
3-
openapi_spec_hash: f4f45e8ca906900f78f1c8aa0233fc20
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/lithic%2Flithic-f137c504db2dbc70382232b1db7ed592a852bc58068a4e72d5ba7ce724110b3d.yml
3+
openapi_spec_hash: 20abc9c95ee5814da6d7aeccec75e996
44
config_hash: 693dddc4721eef512d75ab6c60897794

src/lithic/resources/book_transfers.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,7 @@ def create(
104104
],
105105
token: str | Omit = omit,
106106
external_id: str | Omit = omit,
107+
hold_token: str | Omit = omit,
107108
memo: str | Omit = omit,
108109
on_closed_account: Literal["FAIL", "USE_SUSPENSE"] | Omit = omit,
109110
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
@@ -136,6 +137,8 @@ def create(
136137
137138
external_id: External ID defined by the customer
138139
140+
hold_token: Token of an existing hold to settle when this transfer is initiated
141+
139142
memo: Optional descriptor for the transfer.
140143
141144
on_closed_account: What to do if the financial account is closed when posting an operation
@@ -160,6 +163,7 @@ def create(
160163
"type": type,
161164
"token": token,
162165
"external_id": external_id,
166+
"hold_token": hold_token,
163167
"memo": memo,
164168
"on_closed_account": on_closed_account,
165169
},
@@ -459,6 +463,7 @@ async def create(
459463
],
460464
token: str | Omit = omit,
461465
external_id: str | Omit = omit,
466+
hold_token: str | Omit = omit,
462467
memo: str | Omit = omit,
463468
on_closed_account: Literal["FAIL", "USE_SUSPENSE"] | Omit = omit,
464469
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
@@ -491,6 +496,8 @@ async def create(
491496
492497
external_id: External ID defined by the customer
493498
499+
hold_token: Token of an existing hold to settle when this transfer is initiated
500+
494501
memo: Optional descriptor for the transfer.
495502
496503
on_closed_account: What to do if the financial account is closed when posting an operation
@@ -515,6 +522,7 @@ async def create(
515522
"type": type,
516523
"token": token,
517524
"external_id": external_id,
525+
"hold_token": hold_token,
518526
"memo": memo,
519527
"on_closed_account": on_closed_account,
520528
},

src/lithic/types/book_transfer_create_params.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,9 @@ class BookTransferCreateParams(TypedDict, total=False):
9393
external_id: str
9494
"""External ID defined by the customer"""
9595

96+
hold_token: str
97+
"""Token of an existing hold to settle when this transfer is initiated"""
98+
9699
memo: str
97100
"""Optional descriptor for the transfer."""
98101

tests/api_resources/test_book_transfers.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ def test_method_create_with_all_params(self, client: Lithic) -> None:
4444
type="ATM_BALANCE_INQUIRY",
4545
token="182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
4646
external_id="external_id",
47+
hold_token="182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
4748
memo="memo",
4849
on_closed_account="FAIL",
4950
)
@@ -280,6 +281,7 @@ async def test_method_create_with_all_params(self, async_client: AsyncLithic) ->
280281
type="ATM_BALANCE_INQUIRY",
281282
token="182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
282283
external_id="external_id",
284+
hold_token="182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
283285
memo="memo",
284286
on_closed_account="FAIL",
285287
)

0 commit comments

Comments
 (0)