Skip to content

Commit 5ad45b9

Browse files
feat(api): api update
1 parent d08ab97 commit 5ad45b9

File tree

5 files changed

+32
-40
lines changed

5 files changed

+32
-40
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: 228
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/increase%2Fincrease-776b1bee3036836b954fa0db1e6d0349a04f76799402089994a9147a05967c0e.yml
3-
openapi_spec_hash: 185a637305e75b302860dce8d352f54f
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/increase%2Fincrease-04156469b84df056ff40f1cd402b851af019c7433591a072e02f90f3bd5e5d62.yml
3+
openapi_spec_hash: c3ff2c35ac0bdadd4290ad7f063deb5e
44
config_hash: eb2035151c7b49c2f12caf55469b8f9a

src/increase/resources/lockboxes.py

Lines changed: 14 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -137,9 +137,9 @@ def update(
137137
self,
138138
lockbox_id: str,
139139
*,
140+
check_deposit_behavior: Literal["enabled", "disabled"] | Omit = omit,
140141
description: str | Omit = omit,
141142
recipient_name: str | Omit = omit,
142-
status: Literal["active", "inactive"] | Omit = omit,
143143
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
144144
# The extra values given here take precedence over values defined on the client or passed to this method.
145145
extra_headers: Headers | None = None,
@@ -154,16 +154,14 @@ def update(
154154
Args:
155155
lockbox_id: The identifier of the Lockbox.
156156
157-
description: The description you choose for the Lockbox.
157+
check_deposit_behavior: This indicates if checks mailed to this lockbox will be deposited.
158158
159-
recipient_name: The recipient name you choose for the Lockbox.
159+
- `enabled` - Checks mailed to this Lockbox will be deposited.
160+
- `disabled` - Checks mailed to this Lockbox will not be deposited.
160161
161-
status: This indicates if checks can be sent to the Lockbox.
162+
description: The description you choose for the Lockbox.
162163
163-
- `active` - This Lockbox is active. Checks mailed to it will be deposited
164-
automatically.
165-
- `inactive` - This Lockbox is inactive. Checks mailed to it will not be
166-
deposited.
164+
recipient_name: The recipient name you choose for the Lockbox.
167165
168166
extra_headers: Send extra headers
169167
@@ -181,9 +179,9 @@ def update(
181179
f"/lockboxes/{lockbox_id}",
182180
body=maybe_transform(
183181
{
182+
"check_deposit_behavior": check_deposit_behavior,
184183
"description": description,
185184
"recipient_name": recipient_name,
186-
"status": status,
187185
},
188186
lockbox_update_params.LockboxUpdateParams,
189187
),
@@ -372,9 +370,9 @@ async def update(
372370
self,
373371
lockbox_id: str,
374372
*,
373+
check_deposit_behavior: Literal["enabled", "disabled"] | Omit = omit,
375374
description: str | Omit = omit,
376375
recipient_name: str | Omit = omit,
377-
status: Literal["active", "inactive"] | Omit = omit,
378376
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
379377
# The extra values given here take precedence over values defined on the client or passed to this method.
380378
extra_headers: Headers | None = None,
@@ -389,16 +387,14 @@ async def update(
389387
Args:
390388
lockbox_id: The identifier of the Lockbox.
391389
392-
description: The description you choose for the Lockbox.
390+
check_deposit_behavior: This indicates if checks mailed to this lockbox will be deposited.
393391
394-
recipient_name: The recipient name you choose for the Lockbox.
392+
- `enabled` - Checks mailed to this Lockbox will be deposited.
393+
- `disabled` - Checks mailed to this Lockbox will not be deposited.
395394
396-
status: This indicates if checks can be sent to the Lockbox.
395+
description: The description you choose for the Lockbox.
397396
398-
- `active` - This Lockbox is active. Checks mailed to it will be deposited
399-
automatically.
400-
- `inactive` - This Lockbox is inactive. Checks mailed to it will not be
401-
deposited.
397+
recipient_name: The recipient name you choose for the Lockbox.
402398
403399
extra_headers: Send extra headers
404400
@@ -416,9 +412,9 @@ async def update(
416412
f"/lockboxes/{lockbox_id}",
417413
body=await async_maybe_transform(
418414
{
415+
"check_deposit_behavior": check_deposit_behavior,
419416
"description": description,
420417
"recipient_name": recipient_name,
421-
"status": status,
422418
},
423419
lockbox_update_params.LockboxUpdateParams,
424420
),

src/increase/types/lockbox.py

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,13 @@ class Lockbox(BaseModel):
5050
address: Address
5151
"""The mailing address for the Lockbox."""
5252

53+
check_deposit_behavior: Literal["enabled", "disabled"]
54+
"""Indicates if checks mailed to this lockbox will be deposited.
55+
56+
- `enabled` - Checks mailed to this Lockbox will be deposited.
57+
- `disabled` - Checks mailed to this Lockbox will not be deposited.
58+
"""
59+
5360
created_at: datetime
5461
"""
5562
The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) time at which the Lockbox
@@ -70,15 +77,6 @@ class Lockbox(BaseModel):
7077
recipient_name: Optional[str] = None
7178
"""The recipient name you choose for the Lockbox."""
7279

73-
status: Literal["active", "inactive"]
74-
"""This indicates if mail can be sent to this address.
75-
76-
- `active` - This Lockbox is active. Checks mailed to it will be deposited
77-
automatically.
78-
- `inactive` - This Lockbox is inactive. Checks mailed to it will not be
79-
deposited.
80-
"""
81-
8280
type: Literal["lockbox"]
8381
"""A constant representing the object's type.
8482

src/increase/types/lockbox_update_params.py

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -8,17 +8,15 @@
88

99

1010
class LockboxUpdateParams(TypedDict, total=False):
11+
check_deposit_behavior: Literal["enabled", "disabled"]
12+
"""This indicates if checks mailed to this lockbox will be deposited.
13+
14+
- `enabled` - Checks mailed to this Lockbox will be deposited.
15+
- `disabled` - Checks mailed to this Lockbox will not be deposited.
16+
"""
17+
1118
description: str
1219
"""The description you choose for the Lockbox."""
1320

1421
recipient_name: str
1522
"""The recipient name you choose for the Lockbox."""
16-
17-
status: Literal["active", "inactive"]
18-
"""This indicates if checks can be sent to the Lockbox.
19-
20-
- `active` - This Lockbox is active. Checks mailed to it will be deposited
21-
automatically.
22-
- `inactive` - This Lockbox is inactive. Checks mailed to it will not be
23-
deposited.
24-
"""

tests/api_resources/test_lockboxes.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -108,9 +108,9 @@ def test_method_update(self, client: Increase) -> None:
108108
def test_method_update_with_all_params(self, client: Increase) -> None:
109109
lockbox = client.lockboxes.update(
110110
lockbox_id="lockbox_3xt21ok13q19advds4t5",
111+
check_deposit_behavior="disabled",
111112
description="x",
112113
recipient_name="x",
113-
status="inactive",
114114
)
115115
assert_matches_type(Lockbox, lockbox, path=["response"])
116116

@@ -281,9 +281,9 @@ async def test_method_update(self, async_client: AsyncIncrease) -> None:
281281
async def test_method_update_with_all_params(self, async_client: AsyncIncrease) -> None:
282282
lockbox = await async_client.lockboxes.update(
283283
lockbox_id="lockbox_3xt21ok13q19advds4t5",
284+
check_deposit_behavior="disabled",
284285
description="x",
285286
recipient_name="x",
286-
status="inactive",
287287
)
288288
assert_matches_type(Lockbox, lockbox, path=["response"])
289289

0 commit comments

Comments
 (0)