From aa23623f39a8fea37b0d59d86975cfae67a66379 Mon Sep 17 00:00:00 2001 From: donbarbos Date: Tue, 3 Feb 2026 12:08:11 +0400 Subject: [PATCH] [braintree] Update to 4.42.* Closes: #15361 --- stubs/braintree/METADATA.toml | 2 +- stubs/braintree/braintree/braintree_gateway.pyi | 1 + stubs/braintree/braintree/configuration.pyi | 1 + stubs/braintree/braintree/transaction.pyi | 1 + stubs/braintree/braintree/transaction_amounts.pyi | 1 + stubs/braintree/braintree/util/http.pyi | 1 + stubs/braintree/braintree/visa_checkout_card.pyi | 3 +++ 7 files changed, 9 insertions(+), 1 deletion(-) diff --git a/stubs/braintree/METADATA.toml b/stubs/braintree/METADATA.toml index 43d34d36b451..b9a6efe6e027 100644 --- a/stubs/braintree/METADATA.toml +++ b/stubs/braintree/METADATA.toml @@ -1,2 +1,2 @@ -version = "4.41.*" +version = "4.42.*" upstream_repository = "https://github.com/braintree/braintree_python" diff --git a/stubs/braintree/braintree/braintree_gateway.pyi b/stubs/braintree/braintree/braintree_gateway.pyi index fc857c95133e..c8d7b52e71aa 100644 --- a/stubs/braintree/braintree/braintree_gateway.pyi +++ b/stubs/braintree/braintree/braintree_gateway.pyi @@ -65,3 +65,4 @@ class BraintreeGateway: webhook_notification: WebhookNotificationGateway webhook_testing: WebhookTestingGateway def __init__(self, config=None, **kwargs) -> None: ... + def close(self) -> None: ... diff --git a/stubs/braintree/braintree/configuration.pyi b/stubs/braintree/braintree/configuration.pyi index b480ffaa6781..25385ba8b292 100644 --- a/stubs/braintree/braintree/configuration.pyi +++ b/stubs/braintree/braintree/configuration.pyi @@ -64,6 +64,7 @@ class Configuration: def http(self) -> Http: ... def graphql_client(self) -> GraphQLClient: ... def http_strategy(self): ... + def close(self) -> None: ... def has_client_credentials(self) -> bool: ... def assert_has_client_credentials(self) -> None: ... def has_access_token(self) -> bool: ... diff --git a/stubs/braintree/braintree/transaction.pyi b/stubs/braintree/braintree/transaction.pyi index 9554df46319c..ef2477266586 100644 --- a/stubs/braintree/braintree/transaction.pyi +++ b/stubs/braintree/braintree/transaction.pyi @@ -178,6 +178,7 @@ class Transaction(Resource): network_transaction_id: Incomplete payment_facilitator: PaymentFacilitator transfer: Transfer + partially_authorized: bool subscription_id: str created_at: datetime def __init__(self, gateway, attributes) -> None: ... diff --git a/stubs/braintree/braintree/transaction_amounts.pyi b/stubs/braintree/braintree/transaction_amounts.pyi index 3e59e1d652eb..6853fa9807ec 100644 --- a/stubs/braintree/braintree/transaction_amounts.pyi +++ b/stubs/braintree/braintree/transaction_amounts.pyi @@ -2,6 +2,7 @@ from typing import Final class TransactionAmounts: Authorize: Final = "1000.00" + PartiallyAuthorized: Final = "1004.00" Decline: Final = "2000.00" HardDecline: Final = "2015.00" Fail: Final = "3000.00" diff --git a/stubs/braintree/braintree/util/http.pyi b/stubs/braintree/braintree/util/http.pyi index f061e7ab892d..e2bda12df16c 100644 --- a/stubs/braintree/braintree/util/http.pyi +++ b/stubs/braintree/braintree/util/http.pyi @@ -17,6 +17,7 @@ class Http: config: Configuration environment: Environment def __init__(self, config: Configuration, environment: Environment | None = None) -> None: ... + def close(self) -> None: ... def post(self, path: str, params: dict[str, Incomplete] | None = None): ... def delete(self, path: str): ... def get(self, path: str): ... diff --git a/stubs/braintree/braintree/visa_checkout_card.pyi b/stubs/braintree/braintree/visa_checkout_card.pyi index 911e6fd6505b..9909b514e95e 100644 --- a/stubs/braintree/braintree/visa_checkout_card.pyi +++ b/stubs/braintree/braintree/visa_checkout_card.pyi @@ -1,8 +1,11 @@ +from typing_extensions import deprecated + from braintree.address import Address from braintree.credit_card_verification import CreditCardVerification from braintree.resource import Resource from braintree.subscription import Subscription +@deprecated("Visa Checkout is no longer supported for creating new transactions.") class VisaCheckoutCard(Resource): billing_address: Address | None subscriptions: list[Subscription]