diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index bd314ddba..f275b5aa1 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -35,10 +35,10 @@ 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 @@ -46,6 +46,20 @@ jobs: 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 diff --git a/.release-please-manifest.json b/.release-please-manifest.json index 02a070605..b7101200d 100644 --- a/.release-please-manifest.json +++ b/.release-please-manifest.json @@ -1,3 +1,3 @@ { - ".": "0.257.0" + ".": "0.258.0" } \ No newline at end of file diff --git a/.stats.yml b/.stats.yml index a3290ea74..a3c642efc 100644 --- a/.stats.yml +++ b/.stats.yml @@ -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 diff --git a/CHANGELOG.md b/CHANGELOG.md index 783cf49f4..00c87a614 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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) diff --git a/pyproject.toml b/pyproject.toml index 6346e7ab4..c48d3433b 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -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" diff --git a/scripts/utils/upload-artifact.sh b/scripts/utils/upload-artifact.sh index b27770d8b..7f63b4fa1 100755 --- a/scripts/utils/upload-artifact.sh +++ b/scripts/utils/upload-artifact.sh @@ -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") @@ -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 diff --git a/src/increase/_version.py b/src/increase/_version.py index 2581c7994..4d97c4f52 100644 --- a/src/increase/_version.py +++ b/src/increase/_version.py @@ -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 diff --git a/src/increase/resources/inbound_ach_transfers.py b/src/increase/resources/inbound_ach_transfers.py index 7ef4e87b1..3e475ab67 100644 --- a/src/increase/resources/inbound_ach_transfers.py +++ b/src/increase/resources/inbound_ach_transfers.py @@ -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", @@ -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 @@ -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", @@ -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 diff --git a/src/increase/types/inbound_ach_transfer_transfer_return_params.py b/src/increase/types/inbound_ach_transfer_transfer_return_params.py index 79742df96..9f0535c3c 100644 --- a/src/increase/types/inbound_ach_transfer_transfer_return_params.py +++ b/src/increase/types/inbound_ach_transfer_transfer_return_params.py @@ -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", @@ -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