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 stubs/braintree/METADATA.toml
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
version = "4.41.*"
version = "4.42.*"
upstream_repository = "https://github.com/braintree/braintree_python"
1 change: 1 addition & 0 deletions stubs/braintree/braintree/braintree_gateway.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -65,3 +65,4 @@ class BraintreeGateway:
webhook_notification: WebhookNotificationGateway
webhook_testing: WebhookTestingGateway
def __init__(self, config=None, **kwargs) -> None: ...
def close(self) -> None: ...
1 change: 1 addition & 0 deletions stubs/braintree/braintree/configuration.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -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: ...
1 change: 1 addition & 0 deletions stubs/braintree/braintree/transaction.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -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: ...
Expand Down
1 change: 1 addition & 0 deletions stubs/braintree/braintree/transaction_amounts.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -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"
1 change: 1 addition & 0 deletions stubs/braintree/braintree/util/http.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -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): ...
Expand Down
3 changes: 3 additions & 0 deletions stubs/braintree/braintree/visa_checkout_card.pyi
Original file line number Diff line number Diff line change
@@ -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]
Expand Down