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
18 changes: 16 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,17 +35,31 @@ jobs:
- name: Run lints
run: ./scripts/lint

upload:
build:
if: github.repository == 'stainless-sdks/increase-python' && (github.event_name == 'push' || github.event.pull_request.head.repo.fork)
timeout-minutes: 10
name: upload
name: build
permissions:
contents: read
id-token: write
runs-on: depot-ubuntu-24.04
steps:
- uses: actions/checkout@v4

- name: Install Rye
run: |
curl -sSf https://rye.astral.sh/get | bash
echo "$HOME/.rye/shims" >> $GITHUB_PATH
env:
RYE_VERSION: '0.44.0'
RYE_INSTALL_OPTION: '--yes'

- name: Install dependencies
run: rye sync --all-features

- name: Run build
run: rye build

- name: Get GitHub OIDC Token
id: github-oidc
uses: actions/github-script@v6
Expand Down
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.257.0"
".": "0.258.0"
}
4 changes: 2 additions & 2 deletions .stats.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
configured_endpoints: 201
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/increase%2Fincrease-930514b98f2a5e85e56fe454b7a1f2e16e1f0a4a4e2804b31acc3da98526f2ed.yml
openapi_spec_hash: 8e35630e1ad9cfb1ac15ad87701f806f
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/increase%2Fincrease-86936f20d6eab34ef44aed8b323cea5043d733402022fd34c7e24e2234875306.yml
openapi_spec_hash: cb262d222b0031cce34498409149e4ae
config_hash: 97774f946585cecb19181a1817870d0b
13 changes: 13 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,18 @@
# Changelog

## 0.258.0 (2025-07-02)

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

### Features

* **api:** api update ([c470cbe](https://github.com/Increase/increase-python/commit/c470cbe909feeffb19089f3ee490523f667a93e6))


### Chores

* **ci:** change upload type ([cb3ffab](https://github.com/Increase/increase-python/commit/cb3ffab57e365abf4fc6be710c7c47105780b54f))

## 0.257.0 (2025-07-01)

Full Changelog: [v0.256.2...v0.257.0](https://github.com/Increase/increase-python/compare/v0.256.2...v0.257.0)
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.257.0"
version = "0.258.0"
description = "The official Python library for the increase API"
dynamic = ["readme"]
license = "Apache-2.0"
Expand Down
12 changes: 7 additions & 5 deletions scripts/utils/upload-artifact.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
#!/usr/bin/env bash
set -exuo pipefail

RESPONSE=$(curl -X POST "$URL" \
FILENAME=$(basename dist/*.whl)

RESPONSE=$(curl -X POST "$URL?filename=$FILENAME" \
-H "Authorization: Bearer $AUTH" \
-H "Content-Type: application/json")

Expand All @@ -12,13 +14,13 @@ if [[ "$SIGNED_URL" == "null" ]]; then
exit 1
fi

UPLOAD_RESPONSE=$(tar -cz . | curl -v -X PUT \
-H "Content-Type: application/gzip" \
--data-binary @- "$SIGNED_URL" 2>&1)
UPLOAD_RESPONSE=$(curl -v -X PUT \
-H "Content-Type: binary/octet-stream" \
--data-binary "@dist/$FILENAME" "$SIGNED_URL" 2>&1)

if echo "$UPLOAD_RESPONSE" | grep -q "HTTP/[0-9.]* 200"; then
echo -e "\033[32mUploaded build to Stainless storage.\033[0m"
echo -e "\033[32mInstallation: pip install 'https://pkg.stainless.com/s/increase-python/$SHA'\033[0m"
echo -e "\033[32mInstallation: pip install 'https://pkg.stainless.com/s/increase-python/$SHA/$FILENAME'\033[0m"
else
echo -e "\033[31mFailed to upload artifact.\033[0m"
exit 1
Expand Down
2 changes: 1 addition & 1 deletion src/increase/_version.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.

__title__ = "increase"
__version__ = "0.257.0" # x-release-please-version
__version__ = "0.258.0" # x-release-please-version
8 changes: 0 additions & 8 deletions src/increase/resources/inbound_ach_transfers.py
Original file line number Diff line number Diff line change
Expand Up @@ -297,7 +297,6 @@ def transfer_return(
*,
reason: Literal[
"insufficient_funds",
"returned_per_odfi_request",
"authorization_revoked_by_customer",
"payment_stopped",
"customer_advised_unauthorized_improper_ineligible_or_incomplete",
Expand Down Expand Up @@ -327,9 +326,6 @@ def transfer_return(

- `insufficient_funds` - The customer's account has insufficient funds. This
reason is only allowed for debits. The Nacha return code is R01.
- `returned_per_odfi_request` - The originating financial institution asked for
this transfer to be returned. The receiving bank is complying with the
request. The Nacha return code is R06.
- `authorization_revoked_by_customer` - The customer no longer authorizes this
transaction. The Nacha return code is R07.
- `payment_stopped` - The customer asked for the payment to be stopped. This
Expand Down Expand Up @@ -646,7 +642,6 @@ async def transfer_return(
*,
reason: Literal[
"insufficient_funds",
"returned_per_odfi_request",
"authorization_revoked_by_customer",
"payment_stopped",
"customer_advised_unauthorized_improper_ineligible_or_incomplete",
Expand Down Expand Up @@ -676,9 +671,6 @@ async def transfer_return(

- `insufficient_funds` - The customer's account has insufficient funds. This
reason is only allowed for debits. The Nacha return code is R01.
- `returned_per_odfi_request` - The originating financial institution asked for
this transfer to be returned. The receiving bank is complying with the
request. The Nacha return code is R06.
- `authorization_revoked_by_customer` - The customer no longer authorizes this
transaction. The Nacha return code is R07.
- `payment_stopped` - The customer asked for the payment to be stopped. This
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ class InboundACHTransferTransferReturnParams(TypedDict, total=False):
reason: Required[
Literal[
"insufficient_funds",
"returned_per_odfi_request",
"authorization_revoked_by_customer",
"payment_stopped",
"customer_advised_unauthorized_improper_ineligible_or_incomplete",
Expand All @@ -29,9 +28,6 @@ class InboundACHTransferTransferReturnParams(TypedDict, total=False):

- `insufficient_funds` - The customer's account has insufficient funds. This
reason is only allowed for debits. The Nacha return code is R01.
- `returned_per_odfi_request` - The originating financial institution asked for
this transfer to be returned. The receiving bank is complying with the
request. The Nacha return code is R06.
- `authorization_revoked_by_customer` - The customer no longer authorizes this
transaction. The Nacha return code is R07.
- `payment_stopped` - The customer asked for the payment to be stopped. This
Expand Down