Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .release-please-manifest.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
".": "0.416.0"
".": "0.417.0"
}
8 changes: 4 additions & 4 deletions .stats.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
configured_endpoints: 230
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/increase%2Fincrease-01b0246dcddc851a762ec864d0a728fb63f4020fe94039d2403518b22f3af120.yml
openapi_spec_hash: 773dfed2baf70342616421533b9b5a56
config_hash: ff2eb5f192b4de36611b37b27961c2d8
configured_endpoints: 227
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/increase%2Fincrease-63db8a5872b6a112abfc879f75a53bc6975994025752e86b27ab327884d94655.yml
openapi_spec_hash: b7ffb71e0102fcd040a575bf917656e3
config_hash: ca52ca9a2968f330339fd50c1a386e05
23 changes: 23 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,28 @@
# Changelog

## 0.417.0 (2025-12-26)

Full Changelog: [v0.416.0...v0.417.0](https://github.com/Increase/increase-python/compare/v0.416.0...v0.417.0)

### Features

* **api:** api update ([e2b0365](https://github.com/Increase/increase-python/commit/e2b0365db5b62be17329c0c9b468f5ba5e99b6f9))
* **api:** api update ([d6a0d4f](https://github.com/Increase/increase-python/commit/d6a0d4f554b965fd1f4960243a1d6446e5d33e33))
* **api:** api update ([e858da5](https://github.com/Increase/increase-python/commit/e858da5079a61f75022728757ac00508f1e74946))
* **api:** api update ([2c6557c](https://github.com/Increase/increase-python/commit/2c6557c60b60ee0e2535f29c05e00333ca09435d))
* **api:** api update ([8894aea](https://github.com/Increase/increase-python/commit/8894aea5a61f7b9b1551827e6ceae12a8c8d9bef))


### Bug Fixes

* use async_to_httpx_files in patch method ([d547dac](https://github.com/Increase/increase-python/commit/d547dac930116c8b431a3f265753352f3f8fa38a))


### Chores

* **internal:** add `--fix` argument to lint script ([e301f82](https://github.com/Increase/increase-python/commit/e301f82596a7bc2cece91e7defe42df9d1f749d3))
* speedup initial import ([d9fe2b3](https://github.com/Increase/increase-python/commit/d9fe2b30e763a7cbfb225e53df81e4e6f06b926d))

## 0.416.0 (2025-12-16)

Full Changelog: [v0.415.0...v0.416.0](https://github.com/Increase/increase-python/compare/v0.415.0...v0.416.0)
Expand Down
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -240,13 +240,13 @@ app = Flask(__name__)
# - The `secret` argument to `webhooks.unwrap`
client = Increase()


@app.route("/webhook", methods=["POST"])
def webhook():
request_body = request.get_data(as_text=True)

try:

event = client.webhooks.unwrap(request_body, request.headers, secret='your webhook secret')
event = client.webhooks.unwrap(request_body, request.headers, secret="your webhook secret")

if event.type == "account.created":
print("Account created:", event.data)
Expand Down Expand Up @@ -284,6 +284,7 @@ app = Flask(__name__)
# - The `secret` argument to `webhooks.unwrap`
client = Increase()


@app.route("/webhook", methods=["POST"])
def webhook():
request_body = request.get_data(as_text=True)
Expand Down
18 changes: 2 additions & 16 deletions api.md
Original file line number Diff line number Diff line change
Expand Up @@ -557,20 +557,6 @@ Methods:

- <code title="post /file_links">client.file_links.<a href="./src/increase/resources/file_links.py">create</a>(\*\*<a href="src/increase/types/file_link_create_params.py">params</a>) -> <a href="./src/increase/types/file_link.py">FileLink</a></code>

# Documents

Types:

```python
from increase.types import Document
```

Methods:

- <code title="post /documents">client.documents.<a href="./src/increase/resources/documents.py">create</a>(\*\*<a href="src/increase/types/document_create_params.py">params</a>) -> <a href="./src/increase/types/document.py">Document</a></code>
- <code title="get /documents/{document_id}">client.documents.<a href="./src/increase/resources/documents.py">retrieve</a>(document_id) -> <a href="./src/increase/types/document.py">Document</a></code>
- <code title="get /documents">client.documents.<a href="./src/increase/resources/documents.py">list</a>(\*\*<a href="src/increase/types/document_list_params.py">params</a>) -> <a href="./src/increase/types/document.py">SyncPage[Document]</a></code>

# Exports

Types:
Expand Down Expand Up @@ -1008,11 +994,11 @@ Methods:

- <code title="post /simulations/account_statements">client.simulations.account_statements.<a href="./src/increase/resources/simulations/account_statements.py">create</a>(\*\*<a href="src/increase/types/simulations/account_statement_create_params.py">params</a>) -> <a href="./src/increase/types/account_statement.py">AccountStatement</a></code>

## Documents
## Exports

Methods:

- <code title="post /simulations/documents">client.simulations.documents.<a href="./src/increase/resources/simulations/documents.py">create</a>(\*\*<a href="src/increase/types/simulations/document_create_params.py">params</a>) -> <a href="./src/increase/types/document.py">Document</a></code>
- <code title="post /simulations/exports">client.simulations.exports.<a href="./src/increase/resources/simulations/exports.py">create</a>(\*\*<a href="src/increase/types/simulations/export_create_params.py">params</a>) -> <a href="./src/increase/types/export.py">Export</a></code>

## CardTokens

Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
name = "increase"
version = "0.416.0"
version = "0.417.0"
description = "The official Python library for the increase API"
dynamic = ["readme"]
license = "Apache-2.0"
Expand Down
9 changes: 7 additions & 2 deletions scripts/lint
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,13 @@ set -e

cd "$(dirname "$0")/.."

echo "==> Running lints"
rye run lint
if [ "$1" = "--fix" ]; then
echo "==> Running lints with --fix"
rye run fix:ruff
else
echo "==> Running lints"
rye run lint
fi

echo "==> Making sure it imports"
rye run python -c 'import increase'
2 changes: 1 addition & 1 deletion src/increase/_base_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -1774,7 +1774,7 @@ async def patch(
options: RequestOptions = {},
) -> ResponseT:
opts = FinalRequestOptions.construct(
method="patch", url=path, json_data=body, files=to_httpx_files(files), **options
method="patch", url=path, json_data=body, files=await async_to_httpx_files(files), **options
)
return await self.request(cast_to, opts)

Expand Down
Loading