Skip to content

Commit ff8dddb

Browse files
feat(api): api update
1 parent 9f96fe7 commit ff8dddb

File tree

5 files changed

+28
-16
lines changed

5 files changed

+28
-16
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-20e1561a0d8d3d75c643376822d6e039bcc63f27fd1feff20b8b1e6aced1decd.yml
3-
openapi_spec_hash: 225581a20e328afe5ebba8ee801e002b
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/increase%2Fincrease-8c1e7b6c76b828e1835e628850b33c7468a0db61db1df8e5b781868445ecf25c.yml
3+
openapi_spec_hash: eff2b69771bdda576c42980ca05fdc79
44
config_hash: eb2035151c7b49c2f12caf55469b8f9a

src/increase/resources/check_transfers.py

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -110,8 +110,9 @@ def create(
110110
other `fulfillment_method` is provided.
111111
112112
valid_until_date: If provided, the check will be valid on or before this date. After this date,
113-
the check transfer will be stopped and deposits will not be accepted. For checks
114-
printed by Increase, this date is included on the check as its expiry.
113+
the check transfer will be automatically stopped and deposits will not be
114+
accepted. For checks printed by Increase, this date is included on the check as
115+
its expiry.
115116
116117
extra_headers: Send extra headers
117118
@@ -338,7 +339,7 @@ def stop_payment(
338339
self,
339340
check_transfer_id: str,
340341
*,
341-
reason: Literal["mail_delivery_failed", "not_authorized", "unknown"] | Omit = omit,
342+
reason: Literal["mail_delivery_failed", "not_authorized", "valid_until_date_passed", "unknown"] | Omit = omit,
342343
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
343344
# The extra values given here take precedence over values defined on the client or passed to this method.
344345
extra_headers: Headers | None = None,
@@ -357,6 +358,8 @@ def stop_payment(
357358
358359
- `mail_delivery_failed` - The check could not be delivered.
359360
- `not_authorized` - The check was not authorized.
361+
- `valid_until_date_passed` - The check was stopped for `valid_until_date` being
362+
in the past.
360363
- `unknown` - The check was stopped for another reason.
361364
362365
extra_headers: Send extra headers
@@ -469,8 +472,9 @@ async def create(
469472
other `fulfillment_method` is provided.
470473
471474
valid_until_date: If provided, the check will be valid on or before this date. After this date,
472-
the check transfer will be stopped and deposits will not be accepted. For checks
473-
printed by Increase, this date is included on the check as its expiry.
475+
the check transfer will be automatically stopped and deposits will not be
476+
accepted. For checks printed by Increase, this date is included on the check as
477+
its expiry.
474478
475479
extra_headers: Send extra headers
476480
@@ -697,7 +701,7 @@ async def stop_payment(
697701
self,
698702
check_transfer_id: str,
699703
*,
700-
reason: Literal["mail_delivery_failed", "not_authorized", "unknown"] | Omit = omit,
704+
reason: Literal["mail_delivery_failed", "not_authorized", "valid_until_date_passed", "unknown"] | Omit = omit,
701705
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
702706
# The extra values given here take precedence over values defined on the client or passed to this method.
703707
extra_headers: Headers | None = None,
@@ -716,6 +720,8 @@ async def stop_payment(
716720
717721
- `mail_delivery_failed` - The check could not be delivered.
718722
- `not_authorized` - The check was not authorized.
723+
- `valid_until_date_passed` - The check was stopped for `valid_until_date` being
724+
in the past.
719725
- `unknown` - The check was stopped for another reason.
720726
721727
extra_headers: Send extra headers

src/increase/types/check_transfer.py

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -231,13 +231,17 @@ def __getattr__(self, attr: str) -> object: ...
231231

232232

233233
class StopPaymentRequest(BaseModel):
234-
reason: Literal["mail_delivery_failed", "rejected_by_increase", "not_authorized", "unknown"]
234+
reason: Literal[
235+
"mail_delivery_failed", "rejected_by_increase", "not_authorized", "valid_until_date_passed", "unknown"
236+
]
235237
"""The reason why this transfer was stopped.
236238
237239
- `mail_delivery_failed` - The check could not be delivered.
238240
- `rejected_by_increase` - The check was canceled by an Increase operator who
239241
will provide details out-of-band.
240242
- `not_authorized` - The check was not authorized.
243+
- `valid_until_date_passed` - The check was stopped for `valid_until_date` being
244+
in the past.
241245
- `unknown` - The check was stopped for another reason.
242246
"""
243247

@@ -503,9 +507,9 @@ class CheckTransfer(BaseModel):
503507
valid_until_date: Optional[date] = None
504508
"""If set, the check will be valid on or before this date.
505509
506-
After this date, the check transfer will be stopped and deposits will not be
507-
accepted. For checks printed by Increase, this date is included on the check as
508-
its expiry.
510+
After this date, the check transfer will be automatically stopped and deposits
511+
will not be accepted. For checks printed by Increase, this date is included on
512+
the check as its expiry.
509513
"""
510514

511515
if TYPE_CHECKING:

src/increase/types/check_transfer_create_params.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -81,9 +81,9 @@ class CheckTransferCreateParams(TypedDict, total=False):
8181
valid_until_date: Annotated[Union[str, date], PropertyInfo(format="iso8601")]
8282
"""If provided, the check will be valid on or before this date.
8383
84-
After this date, the check transfer will be stopped and deposits will not be
85-
accepted. For checks printed by Increase, this date is included on the check as
86-
its expiry.
84+
After this date, the check transfer will be automatically stopped and deposits
85+
will not be accepted. For checks printed by Increase, this date is included on
86+
the check as its expiry.
8787
"""
8888

8989

src/increase/types/check_transfer_stop_payment_params.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,12 @@
88

99

1010
class CheckTransferStopPaymentParams(TypedDict, total=False):
11-
reason: Literal["mail_delivery_failed", "not_authorized", "unknown"]
11+
reason: Literal["mail_delivery_failed", "not_authorized", "valid_until_date_passed", "unknown"]
1212
"""The reason why this transfer should be stopped.
1313
1414
- `mail_delivery_failed` - The check could not be delivered.
1515
- `not_authorized` - The check was not authorized.
16+
- `valid_until_date_passed` - The check was stopped for `valid_until_date` being
17+
in the past.
1618
- `unknown` - The check was stopped for another reason.
1719
"""

0 commit comments

Comments
 (0)