Skip to content

Commit c8bb44d

Browse files
authored
[braintree] Update to 4.39 (#14872)
1 parent 7f2d948 commit c8bb44d

12 files changed

+91
-4
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.38.*"
1+
version = "4.39.*"
22
upstream_repository = "https://github.com/braintree/braintree_python"

stubs/braintree/braintree/__init__.pyi

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,13 @@ from braintree.amex_express_checkout_card import AmexExpressCheckoutCard as Amex
77
from braintree.android_pay_card import AndroidPayCard as AndroidPayCard
88
from braintree.apple_pay_card import ApplePayCard as ApplePayCard
99
from braintree.apple_pay_gateway import ApplePayGateway as ApplePayGateway
10+
from braintree.bank_account_instant_verification_gateway import (
11+
BankAccountInstantVerificationGateway as BankAccountInstantVerificationGateway,
12+
)
13+
from braintree.bank_account_instant_verification_jwt import BankAccountInstantVerificationJwt as BankAccountInstantVerificationJwt
14+
from braintree.bank_account_instant_verification_jwt_request import (
15+
BankAccountInstantVerificationJwtRequest as BankAccountInstantVerificationJwtRequest,
16+
)
1017
from braintree.blik_alias import BlikAlias as BlikAlias
1118
from braintree.braintree_gateway import BraintreeGateway as BraintreeGateway
1219
from braintree.client_token import ClientToken as ClientToken
@@ -62,10 +69,12 @@ from braintree.paypal_payment_resource import PayPalPaymentResource as PayPalPay
6269
from braintree.plan import Plan as Plan
6370
from braintree.plan_gateway import PlanGateway as PlanGateway
6471
from braintree.processor_response_types import ProcessorResponseTypes as ProcessorResponseTypes
72+
from braintree.receiver import Receiver as Receiver
6573
from braintree.resource_collection import ResourceCollection as ResourceCollection
6674
from braintree.risk_data import RiskData as RiskData
6775
from braintree.samsung_pay_card import SamsungPayCard as SamsungPayCard
6876
from braintree.search import Search as Search
77+
from braintree.sender import Sender as Sender
6978
from braintree.sepa_direct_debit_account import SepaDirectDebitAccount as SepaDirectDebitAccount
7079
from braintree.settlement_batch_summary import SettlementBatchSummary as SettlementBatchSummary
7180
from braintree.signature_service import SignatureService as SignatureService
@@ -84,9 +93,11 @@ from braintree.transaction_details import TransactionDetails as TransactionDetai
8493
from braintree.transaction_gateway import TransactionGateway as TransactionGateway
8594
from braintree.transaction_line_item import TransactionLineItem as TransactionLineItem
8695
from braintree.transaction_search import TransactionSearch as TransactionSearch
96+
from braintree.transaction_us_bank_account_request import TransactionUsBankAccountRequest as TransactionUsBankAccountRequest
8797
from braintree.transfer import Transfer as Transfer
8898
from braintree.unknown_payment_method import UnknownPaymentMethod as UnknownPaymentMethod
8999
from braintree.us_bank_account import UsBankAccount as UsBankAccount
100+
from braintree.us_bank_account_verification import UsBankAccountVerification as UsBankAccountVerification
90101
from braintree.validation_error_collection import ValidationErrorCollection as ValidationErrorCollection
91102
from braintree.venmo_account import VenmoAccount as VenmoAccount
92103
from braintree.venmo_profile_data import VenmoProfileData as VenmoProfileData
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
from _typeshed import Incomplete
2+
from typing import Final
3+
4+
from braintree.error_result import ErrorResult
5+
from braintree.successful_result import SuccessfulResult
6+
7+
class BankAccountInstantVerificationGateway:
8+
gateway: Incomplete
9+
config: Incomplete
10+
graphql_client: Incomplete
11+
CREATE_JWT_MUTATION: Final[str]
12+
def __init__(self, gateway) -> None: ...
13+
def create_jwt(self, request) -> SuccessfulResult | ErrorResult: ...
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
from braintree.attribute_getter import AttributeGetter
2+
3+
class BankAccountInstantVerificationJwt(AttributeGetter):
4+
def __init__(self, jwt) -> None: ...
5+
@property
6+
def jwt(self): ...
7+
@jwt.setter
8+
def jwt(self, value) -> None: ...
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
from typing import TypedDict, type_check_only
2+
from typing_extensions import Self
3+
4+
@type_check_only
5+
class _ParamsDict(TypedDict, total=False):
6+
businessName: str
7+
returnUrl: str
8+
cancelUrl: str
9+
10+
class BankAccountInstantVerificationJwtRequest:
11+
def __init__(self) -> None: ...
12+
def business_name(self, business_name: str) -> Self: ...
13+
def return_url(self, return_url: str) -> Self: ...
14+
def cancel_url(self, cancel_url: str) -> Self: ...
15+
def get_business_name(self) -> str: ...
16+
def get_return_url(self) -> str: ...
17+
def get_cancel_url(self) -> str: ...
18+
def to_graphql_variables(self) -> _ParamsDict: ...

stubs/braintree/braintree/braintree_gateway.pyi

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
1-
from _typeshed import Incomplete
2-
31
from braintree.add_on_gateway import AddOnGateway
42
from braintree.address_gateway import AddressGateway
53
from braintree.apple_pay_gateway import ApplePayGateway
4+
from braintree.bank_account_instant_verification_gateway import BankAccountInstantVerificationGateway
65
from braintree.client_token_gateway import ClientTokenGateway
76
from braintree.configuration import Configuration
87
from braintree.credit_card_gateway import CreditCardGateway
@@ -28,6 +27,7 @@ from braintree.transaction_gateway import TransactionGateway
2827
from braintree.transaction_line_item_gateway import TransactionLineItemGateway
2928
from braintree.us_bank_account_gateway import UsBankAccountGateway
3029
from braintree.us_bank_account_verification_gateway import UsBankAccountVerificationGateway
30+
from braintree.util.graphql_client import GraphQLClient
3131
from braintree.webhook_notification_gateway import WebhookNotificationGateway
3232
from braintree.webhook_testing_gateway import WebhookTestingGateway
3333

@@ -36,14 +36,15 @@ class BraintreeGateway:
3636
add_on: AddOnGateway
3737
address: AddressGateway
3838
apple_pay: ApplePayGateway
39+
bank_account_instant_verification: BankAccountInstantVerificationGateway
3940
client_token: ClientTokenGateway
4041
credit_card: CreditCardGateway
4142
customer: CustomerGateway
4243
discount: DiscountGateway
4344
dispute: DisputeGateway
4445
document_upload: DocumentUploadGateway
4546
exchange_rate_quote: ExchangeRateQuoteGateway
46-
graphql_client: Incomplete
47+
graphql_client: GraphQLClient
4748
merchant: MerchantGateway
4849
merchant_account: MerchantAccountGateway
4950
oauth: OAuthGateway

stubs/braintree/braintree/error_codes.pyi

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -572,6 +572,8 @@ class ErrorCodes:
572572
TransactionIsNotEligibleForAdjustment: Final = "915219"
573573
TransactionMustBeInStateAuthorized: Final = "915218"
574574
TransactionSourceIsInvalid: Final = "915133"
575+
TransferTypeIsInvalid: Final = "97501"
576+
TransferDetailsAreRequired: Final = "97510"
575577
TypeIsInvalid: Final = "91523"
576578
TypeIsRequired: Final = "91524"
577579
UnsupportedVoiceAuthorization: Final = "91539"
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
from typing import Any
2+
3+
from braintree.attribute_getter import AttributeGetter
4+
5+
class Receiver(AttributeGetter):
6+
def __init__(self, attributes: dict[str, Any] | None) -> None: ...
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
from typing import Any
2+
3+
from braintree.attribute_getter import AttributeGetter
4+
5+
class Sender(AttributeGetter):
6+
def __init__(self, attributes: dict[str, Any] | None) -> None: ...
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
from _typeshed import Incomplete
2+
from datetime import datetime
3+
from typing import TypedDict, type_check_only
4+
from typing_extensions import Self
5+
6+
@type_check_only
7+
class _ParamsDict(TypedDict, total=False):
8+
ach_mandate_text: str
9+
ach_mandate_accepted_at: str
10+
11+
class TransactionUsBankAccountRequest:
12+
parent: Incomplete
13+
def __init__(self, parent) -> None: ...
14+
def ach_mandate_text(self, ach_mandate_text: str) -> Self: ...
15+
def ach_mandate_accepted_at(self, ach_mandate_accepted_at: str | datetime) -> Self: ...
16+
def done(self): ...
17+
def to_param_dict(self) -> _ParamsDict: ...

0 commit comments

Comments
 (0)