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.154.0"
".": "0.155.0"
}
2 changes: 1 addition & 1 deletion .stats.yml
Original file line number Diff line number Diff line change
@@ -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
14 changes: 14 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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)
Expand Down
6 changes: 2 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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",
)
Expand Down Expand Up @@ -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",
)
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.154.0"
version = "0.155.0"
description = "The official Python library for the increase API"
dynamic = ["readme"]
license = "Apache-2.0"
Expand Down
5 changes: 5 additions & 0 deletions src/increase/_utils/_transform.py
Original file line number Diff line number Diff line change
Expand Up @@ -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]

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.154.0" # x-release-please-version
__version__ = "0.155.0" # x-release-please-version
8 changes: 4 additions & 4 deletions src/increase/types/card_payment.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand All @@ -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
Expand Down Expand Up @@ -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.
Expand All @@ -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
Expand Down
8 changes: 4 additions & 4 deletions src/increase/types/transaction.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand All @@ -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
Expand Down Expand Up @@ -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.
Expand All @@ -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
Expand Down