From 3099e0be784c352c02fffb65b88495d30a0d1f2a Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Tue, 5 Aug 2025 11:23:40 +0000 Subject: [PATCH 1/3] chore(internal): fix ruff target version --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 3de748765..bf9422a67 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -159,7 +159,7 @@ reportPrivateUsage = false [tool.ruff] line-length = 120 output-format = "grouped" -target-version = "py37" +target-version = "py38" [tool.ruff.format] docstring-code-format = true From 63a695f5c7052b20f50d05da436118593066b1e9 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Wed, 6 Aug 2025 20:51:18 +0000 Subject: [PATCH 2/3] feat(api): api update --- .stats.yml | 4 +- src/increase/types/transaction.py | 63 +++++++++++++++++++ src/increase/types/transaction_list_params.py | 1 + 3 files changed, 66 insertions(+), 2 deletions(-) diff --git a/.stats.yml b/.stats.yml index 7168a74e1..a81891058 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 202 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/increase%2Fincrease-aceb2cce1f9a46b1059a04de979b4c40210190639a4c264944b4402042168804.yml -openapi_spec_hash: 5b4ea7615676e742cea44d107b8038ca +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/increase%2Fincrease-147712ba3a72b1dea9a966f9b0ebc99ccebe38e1789426115f3b4c8977ed03c8.yml +openapi_spec_hash: 6c6fc01c8ea4f34b3c2553928945c100 config_hash: a185e9a72778cc4658ea73fb3a7f1354 diff --git a/src/increase/types/transaction.py b/src/increase/types/transaction.py index 406e5145b..9699a022f 100644 --- a/src/increase/types/transaction.py +++ b/src/increase/types/transaction.py @@ -14,6 +14,8 @@ "SourceACHTransferRejection", "SourceACHTransferReturn", "SourceCardDisputeAcceptance", + "SourceCardDisputeFinancial", + "SourceCardDisputeFinancialVisa", "SourceCardDisputeLoss", "SourceCardPushTransferAcceptance", "SourceCardRefund", @@ -393,6 +395,57 @@ class SourceCardDisputeAcceptance(BaseModel): """ +class SourceCardDisputeFinancialVisa(BaseModel): + event_type: Literal[ + "chargeback_submitted", + "merchant_prearbitration_declined", + "merchant_prearbitration_received", + "represented", + "user_prearbitration_declined", + "user_prearbitration_submitted", + ] + """The type of card dispute financial event. + + - `chargeback_submitted` - The user's chargeback was submitted. + - `merchant_prearbitration_declined` - The user declined the merchant's request + for pre-arbitration. + - `merchant_prearbitration_received` - The merchant's request for + pre-arbitration was received. + - `represented` - The transaction was represented by the merchant. + - `user_prearbitration_declined` - The user's request for pre-arbitration was + declined. + - `user_prearbitration_submitted` - The user's request for pre-arbitration was + submitted. + """ + + +class SourceCardDisputeFinancial(BaseModel): + amount: int + """The amount of the financial event.""" + + card_dispute_id: str + """The identifier of the Card Dispute the financial event is associated with.""" + + network: Literal["visa"] + """The network that the Card Dispute is associated with. + + - `visa` - Visa: details will be under the `visa` object. + """ + + transaction_id: str + """ + The identifier of the Transaction that was created to credit or debit the + disputed funds to or from your account. + """ + + visa: Optional[SourceCardDisputeFinancialVisa] = None + """ + Information for events related to card dispute for card payments processed over + Visa's network. This field will be present in the JSON response if and only if + `network` is equal to `visa`. + """ + + class SourceCardDisputeLoss(BaseModel): card_dispute_id: str """The identifier of the Card Dispute that was lost.""" @@ -2352,6 +2405,13 @@ class Source(BaseModel): Dispute. """ + card_dispute_financial: Optional[SourceCardDisputeFinancial] = None + """A Card Dispute Financial object. + + This field will be present in the JSON response if and only if `category` is + equal to `card_dispute_financial`. Financial event related to a Card Dispute. + """ + card_dispute_loss: Optional[SourceCardDisputeLoss] = None """A Card Dispute Loss object. @@ -2410,6 +2470,7 @@ class Source(BaseModel): "ach_transfer_return", "cashback_payment", "card_dispute_acceptance", + "card_dispute_financial", "card_dispute_loss", "card_refund", "card_settlement", @@ -2453,6 +2514,8 @@ class Source(BaseModel): `cashback_payment` object. - `card_dispute_acceptance` - Card Dispute Acceptance: details will be under the `card_dispute_acceptance` object. + - `card_dispute_financial` - Card Dispute Financial: details will be under the + `card_dispute_financial` object. - `card_dispute_loss` - Card Dispute Loss: details will be under the `card_dispute_loss` object. - `card_refund` - Card Refund: details will be under the `card_refund` object. diff --git a/src/increase/types/transaction_list_params.py b/src/increase/types/transaction_list_params.py index 3502becb7..6f94d99c2 100644 --- a/src/increase/types/transaction_list_params.py +++ b/src/increase/types/transaction_list_params.py @@ -46,6 +46,7 @@ class TransactionListParams(TypedDict, total=False): "ach_transfer_return", "cashback_payment", "card_dispute_acceptance", + "card_dispute_financial", "card_dispute_loss", "card_refund", "card_settlement", From 299f396499151e06c22814c815ba4f84609305d1 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Wed, 6 Aug 2025 20:51:43 +0000 Subject: [PATCH 3/3] release: 0.277.0 --- .release-please-manifest.json | 2 +- CHANGELOG.md | 13 +++++++++++++ pyproject.toml | 2 +- src/increase/_version.py | 2 +- 4 files changed, 16 insertions(+), 3 deletions(-) diff --git a/.release-please-manifest.json b/.release-please-manifest.json index bac125e6e..ebebec494 100644 --- a/.release-please-manifest.json +++ b/.release-please-manifest.json @@ -1,3 +1,3 @@ { - ".": "0.276.0" + ".": "0.277.0" } \ No newline at end of file diff --git a/CHANGELOG.md b/CHANGELOG.md index 9f9979283..bf3d2c693 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,18 @@ # Changelog +## 0.277.0 (2025-08-06) + +Full Changelog: [v0.276.0...v0.277.0](https://github.com/Increase/increase-python/compare/v0.276.0...v0.277.0) + +### Features + +* **api:** api update ([63a695f](https://github.com/Increase/increase-python/commit/63a695f5c7052b20f50d05da436118593066b1e9)) + + +### Chores + +* **internal:** fix ruff target version ([3099e0b](https://github.com/Increase/increase-python/commit/3099e0be784c352c02fffb65b88495d30a0d1f2a)) + ## 0.276.0 (2025-08-04) Full Changelog: [v0.275.0...v0.276.0](https://github.com/Increase/increase-python/compare/v0.275.0...v0.276.0) diff --git a/pyproject.toml b/pyproject.toml index bf9422a67..af87aad39 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "increase" -version = "0.276.0" +version = "0.277.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 9c13b86dd..f9c7c4ada 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.276.0" # x-release-please-version +__version__ = "0.277.0" # x-release-please-version