From 1c68d065d05fe5dd4b70748eebd6da7ac6160067 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Tue, 12 Nov 2024 01:49:34 +0000 Subject: [PATCH 1/4] chore: rebuild project due to codegen change (#809) --- README.md | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index ba0141a7..f845add0 100644 --- a/README.md +++ b/README.md @@ -26,8 +26,7 @@ import os from increase import Increase client = Increase( - # This is the default and can be omitted - api_key=os.environ.get("INCREASE_API_KEY"), + api_key=os.environ.get("INCREASE_API_KEY"), # This is the default and can be omitted # defaults to "production". environment="sandbox", ) @@ -55,8 +54,7 @@ import asyncio from increase import AsyncIncrease client = AsyncIncrease( - # This is the default and can be omitted - api_key=os.environ.get("INCREASE_API_KEY"), + api_key=os.environ.get("INCREASE_API_KEY"), # This is the default and can be omitted # defaults to "production". environment="sandbox", ) From 893501345954f3cddf62c67640b7e1e546ddf904 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Tue, 12 Nov 2024 12:14:50 +0000 Subject: [PATCH 2/4] chore: rebuild project due to codegen change (#811) --- src/increase/_utils/_transform.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/increase/_utils/_transform.py b/src/increase/_utils/_transform.py index d7c05345..a6b62cad 100644 --- a/src/increase/_utils/_transform.py +++ b/src/increase/_utils/_transform.py @@ -316,6 +316,11 @@ async def _async_transform_recursive( # Iterable[T] or (is_iterable_type(stripped_type) and is_iterable(data) and not isinstance(data, str)) ): + # dicts are technically iterable, but it is an iterable on the keys of the dict and is not usually + # intended as an iterable, so we don't transform it. + if isinstance(data, dict): + return cast(object, data) + inner_type = extract_type_arg(stripped_type, 0) return [await _async_transform_recursive(d, annotation=annotation, inner_type=inner_type) for d in data] From 22cb186cbf4f7bfa5fe52ada13c63fd4f4c021ad Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Wed, 13 Nov 2024 05:08:17 +0000 Subject: [PATCH 3/4] feat(api): api update (#812) --- .stats.yml | 2 +- src/increase/types/card_payment.py | 8 ++++---- src/increase/types/transaction.py | 8 ++++---- 3 files changed, 9 insertions(+), 9 deletions(-) diff --git a/.stats.yml b/.stats.yml index 73bace6e..5b5d4a60 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,2 +1,2 @@ configured_endpoints: 199 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/increase%2Fincrease-7678922302b8dfe04d326fee16e9644cb1dd6cffa5e810c58f37d9b159b04582.yml +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/increase%2Fincrease-820e880c0c5a0a64c9370d6fa3f8d0f479c25f88ea3e2cec4d83ab6b40c9cebf.yml diff --git a/src/increase/types/card_payment.py b/src/increase/types/card_payment.py index d69a2b97..9c870a16 100644 --- a/src/increase/types/card_payment.py +++ b/src/increase/types/card_payment.py @@ -1524,7 +1524,7 @@ class ElementCardRefund(BaseModel): interchange: Optional[ElementCardRefundInterchange] = None """Interchange assessed as a part of this transaciton.""" - merchant_acceptor_id: Optional[str] = None + merchant_acceptor_id: str """ The merchant identifier (commonly abbreviated as MID) of the merchant the card is transacting with. @@ -1539,7 +1539,7 @@ class ElementCardRefund(BaseModel): merchant_country: str """The country the merchant resides in.""" - merchant_name: Optional[str] = None + merchant_name: str """The name of the merchant.""" merchant_state: Optional[str] = None @@ -2182,7 +2182,7 @@ class ElementCardSettlement(BaseModel): interchange: Optional[ElementCardSettlementInterchange] = None """Interchange assessed as a part of this transaciton.""" - merchant_acceptor_id: Optional[str] = None + merchant_acceptor_id: str """ The merchant identifier (commonly abbreviated as MID) of the merchant the card is transacting with. @@ -2197,7 +2197,7 @@ class ElementCardSettlement(BaseModel): merchant_country: str """The country the merchant resides in.""" - merchant_name: Optional[str] = None + merchant_name: str """The name of the merchant.""" merchant_state: Optional[str] = None diff --git a/src/increase/types/transaction.py b/src/increase/types/transaction.py index c30da0a3..2fa29933 100644 --- a/src/increase/types/transaction.py +++ b/src/increase/types/transaction.py @@ -883,7 +883,7 @@ class SourceCardRefund(BaseModel): interchange: Optional[SourceCardRefundInterchange] = None """Interchange assessed as a part of this transaciton.""" - merchant_acceptor_id: Optional[str] = None + merchant_acceptor_id: str """ The merchant identifier (commonly abbreviated as MID) of the merchant the card is transacting with. @@ -898,7 +898,7 @@ class SourceCardRefund(BaseModel): merchant_country: str """The country the merchant resides in.""" - merchant_name: Optional[str] = None + merchant_name: str """The name of the merchant.""" merchant_state: Optional[str] = None @@ -1446,7 +1446,7 @@ class SourceCardSettlement(BaseModel): interchange: Optional[SourceCardSettlementInterchange] = None """Interchange assessed as a part of this transaciton.""" - merchant_acceptor_id: Optional[str] = None + merchant_acceptor_id: str """ The merchant identifier (commonly abbreviated as MID) of the merchant the card is transacting with. @@ -1461,7 +1461,7 @@ class SourceCardSettlement(BaseModel): merchant_country: str """The country the merchant resides in.""" - merchant_name: Optional[str] = None + merchant_name: str """The name of the merchant.""" merchant_state: Optional[str] = None From f657394f300ada09c16fd29f31d655e6b358c88c Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Wed, 13 Nov 2024 05:08:49 +0000 Subject: [PATCH 4/4] release: 0.155.0 --- .release-please-manifest.json | 2 +- CHANGELOG.md | 14 ++++++++++++++ pyproject.toml | 2 +- src/increase/_version.py | 2 +- 4 files changed, 17 insertions(+), 3 deletions(-) diff --git a/.release-please-manifest.json b/.release-please-manifest.json index 78362658..f102a288 100644 --- a/.release-please-manifest.json +++ b/.release-please-manifest.json @@ -1,3 +1,3 @@ { - ".": "0.154.0" + ".": "0.155.0" } \ No newline at end of file diff --git a/CHANGELOG.md b/CHANGELOG.md index 474b4607..adef0ddf 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,19 @@ # Changelog +## 0.155.0 (2024-11-13) + +Full Changelog: [v0.154.0...v0.155.0](https://github.com/Increase/increase-python/compare/v0.154.0...v0.155.0) + +### Features + +* **api:** api update ([#812](https://github.com/Increase/increase-python/issues/812)) ([22cb186](https://github.com/Increase/increase-python/commit/22cb186cbf4f7bfa5fe52ada13c63fd4f4c021ad)) + + +### Chores + +* rebuild project due to codegen change ([#809](https://github.com/Increase/increase-python/issues/809)) ([1c68d06](https://github.com/Increase/increase-python/commit/1c68d065d05fe5dd4b70748eebd6da7ac6160067)) +* rebuild project due to codegen change ([#811](https://github.com/Increase/increase-python/issues/811)) ([8935013](https://github.com/Increase/increase-python/commit/893501345954f3cddf62c67640b7e1e546ddf904)) + ## 0.154.0 (2024-11-11) Full Changelog: [v0.153.0...v0.154.0](https://github.com/Increase/increase-python/compare/v0.153.0...v0.154.0) diff --git a/pyproject.toml b/pyproject.toml index b86fa800..2abb64de 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "increase" -version = "0.154.0" +version = "0.155.0" description = "The official Python library for the increase API" dynamic = ["readme"] license = "Apache-2.0" diff --git a/src/increase/_version.py b/src/increase/_version.py index acd2c331..73cc1820 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.154.0" # x-release-please-version +__version__ = "0.155.0" # x-release-please-version