Skip to content

Commit e79e6af

Browse files
authored
[braintree] Update to 4.42.* (#15362)
1 parent dd78db8 commit e79e6af

File tree

7 files changed

+9
-1
lines changed

7 files changed

+9
-1
lines changed

stubs/braintree/METADATA.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
version = "4.41.*"
1+
version = "4.42.*"
22
upstream_repository = "https://github.com/braintree/braintree_python"

stubs/braintree/braintree/braintree_gateway.pyi

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,3 +65,4 @@ class BraintreeGateway:
6565
webhook_notification: WebhookNotificationGateway
6666
webhook_testing: WebhookTestingGateway
6767
def __init__(self, config=None, **kwargs) -> None: ...
68+
def close(self) -> None: ...

stubs/braintree/braintree/configuration.pyi

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@ class Configuration:
6464
def http(self) -> Http: ...
6565
def graphql_client(self) -> GraphQLClient: ...
6666
def http_strategy(self): ...
67+
def close(self) -> None: ...
6768
def has_client_credentials(self) -> bool: ...
6869
def assert_has_client_credentials(self) -> None: ...
6970
def has_access_token(self) -> bool: ...

stubs/braintree/braintree/transaction.pyi

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -178,6 +178,7 @@ class Transaction(Resource):
178178
network_transaction_id: Incomplete
179179
payment_facilitator: PaymentFacilitator
180180
transfer: Transfer
181+
partially_authorized: bool
181182
subscription_id: str
182183
created_at: datetime
183184
def __init__(self, gateway, attributes) -> None: ...

stubs/braintree/braintree/transaction_amounts.pyi

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ from typing import Final
22

33
class TransactionAmounts:
44
Authorize: Final = "1000.00"
5+
PartiallyAuthorized: Final = "1004.00"
56
Decline: Final = "2000.00"
67
HardDecline: Final = "2015.00"
78
Fail: Final = "3000.00"

stubs/braintree/braintree/util/http.pyi

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ class Http:
1717
config: Configuration
1818
environment: Environment
1919
def __init__(self, config: Configuration, environment: Environment | None = None) -> None: ...
20+
def close(self) -> None: ...
2021
def post(self, path: str, params: dict[str, Incomplete] | None = None): ...
2122
def delete(self, path: str): ...
2223
def get(self, path: str): ...

stubs/braintree/braintree/visa_checkout_card.pyi

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,11 @@
1+
from typing_extensions import deprecated
2+
13
from braintree.address import Address
24
from braintree.credit_card_verification import CreditCardVerification
35
from braintree.resource import Resource
46
from braintree.subscription import Subscription
57

8+
@deprecated("Visa Checkout is no longer supported for creating new transactions.")
69
class VisaCheckoutCard(Resource):
710
billing_address: Address | None
811
subscriptions: list[Subscription]

0 commit comments

Comments
 (0)