Skip to content

Commit 0b6e42c

Browse files
authored
Bump braintree to 4.34.* (#13592)
1 parent a1c28f7 commit 0b6e42c

File tree

9 files changed

+67
-1
lines changed

9 files changed

+67
-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.33.*"
1+
version = "4.34.*"
22
upstream_repository = "https://github.com/braintree/braintree_python"

stubs/braintree/braintree/__init__.pyi

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ from braintree.payment_method import PaymentMethod as PaymentMethod
4949
from braintree.payment_method_nonce import PaymentMethodNonce as PaymentMethodNonce
5050
from braintree.payment_method_parser import parse_payment_method as parse_payment_method
5151
from braintree.paypal_account import PayPalAccount as PayPalAccount
52+
from braintree.paypal_payment_resource import PayPalPaymentResource as PayPalPaymentResource
5253
from braintree.plan import Plan as Plan
5354
from braintree.plan_gateway import PlanGateway as PlanGateway
5455
from braintree.processor_response_types import ProcessorResponseTypes as ProcessorResponseTypes

stubs/braintree/braintree/braintree_gateway.pyi

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ from braintree.oauth_gateway import OAuthGateway
1818
from braintree.payment_method_gateway import PaymentMethodGateway
1919
from braintree.payment_method_nonce_gateway import PaymentMethodNonceGateway
2020
from braintree.paypal_account_gateway import PayPalAccountGateway
21+
from braintree.paypal_payment_resource_gateway import PayPalPaymentResourceGateway
2122
from braintree.plan_gateway import PlanGateway
2223
from braintree.sepa_direct_debit_account_gateway import SepaDirectDebitAccountGateway
2324
from braintree.settlement_batch_summary_gateway import SettlementBatchSummaryGateway
@@ -49,6 +50,7 @@ class BraintreeGateway:
4950
payment_method: PaymentMethodGateway
5051
payment_method_nonce: PaymentMethodNonceGateway
5152
paypal_account: PayPalAccountGateway
53+
paypal_payment_resource: PayPalPaymentResourceGateway
5254
plan: PlanGateway
5355
sepa_direct_debit_account: SepaDirectDebitAccountGateway
5456
settlement_batch_summary: SettlementBatchSummaryGateway

stubs/braintree/braintree/credit_card.pyi

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ class CreditCard(Resource):
5454
Payroll: type[CardTypeIndicator]
5555
Prepaid: type[CardTypeIndicator]
5656
ProductId: type[CardTypeIndicator]
57+
PrepaidReloadable: type[CardTypeIndicator]
5758
@staticmethod
5859
def create(params: Incomplete | None = None): ...
5960
@staticmethod

stubs/braintree/braintree/error_codes.pyi

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -401,6 +401,46 @@ class ErrorCodes:
401401
PaymentMethodNonceUnknown: Final = "92908"
402402
TokenIsInUse: Final = "92906"
403403

404+
class PayPalPaymentResource:
405+
NonceExpired: Final = "97301"
406+
IdNotSupported: Final = "97302"
407+
NonceRequired: Final = "97303"
408+
InvalidEmail: Final = "97304"
409+
EmailTooLong: Final = "97305"
410+
ExpectedLineItemCollection: Final = "97306"
411+
ExpectedLineItemHash: Final = "97307"
412+
ExpectedLineItemDebit: Final = "97308"
413+
InvalidUnitAmount: Final = "97309"
414+
InvalidUnitTaxAmount: Final = "97310"
415+
IsoCodeRequired: Final = "97311"
416+
IsoCodeUnsupported: Final = "97312"
417+
ShippingFieldsMissing: Final = "97313"
418+
InvalidAmountBreakdown: Final = "97314"
419+
ExpectedShippingOptionCollection: Final = "97315"
420+
ShippingOptionsRequired: Final = "97316"
421+
ShippingOptionFieldsMissing: Final = "97317"
422+
InvalidShippingOptionType: Final = "97318"
423+
ShippingOptionIdReused: Final = "97319"
424+
TooManyShippingOptionsSelected: Final = "97320"
425+
ShippingOptionMustMatchBreakdown: Final = "97321"
426+
LineItemsShouldMatchTotal: Final = "97322"
427+
LineItemsTaxShouldMatchTotal: Final = "97323"
428+
PatchCallFailed: Final = "97324"
429+
InvalidAmount: Final = "97325"
430+
ShippingIdTooLong: Final = "97326"
431+
ShippingLabelTooLong: Final = "97327"
432+
ShippingFullNameTooLong: Final = "97328"
433+
ShippingAddressTooLong: Final = "97329"
434+
ShippingExtendedAddressTooLong: Final = "97330"
435+
ShippingLocalityTooLong: Final = "97331"
436+
ShippingRegionTooLong: Final = "97332"
437+
CountryCodeTooLong: Final = "97333"
438+
NationalNumberTooLong: Final = "97334"
439+
PostalCodeTooLong: Final = "97335"
440+
DescriptionTooLong: Final = "97336"
441+
CustomFieldTooLong: Final = "97337"
442+
OrderIdTooLong: Final = "97338"
443+
404444
class SettlementBatchSummary:
405445
CustomFieldIsInvalid: Final = "82303"
406446
SettlementDateIsInvalid: Final = "82302"
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
from _typeshed import Incomplete
2+
3+
from braintree.resource import Resource
4+
5+
class PayPalPaymentResource(Resource):
6+
def __init__(self, gateway, attributes) -> None: ...
7+
@staticmethod
8+
def update(request): ...
9+
@staticmethod
10+
def update_signature() -> list[Incomplete]: ...
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
from braintree.braintree_gateway import BraintreeGateway
2+
from braintree.configuration import Configuration
3+
from braintree.error_result import ErrorResult
4+
from braintree.successful_result import SuccessfulResult
5+
6+
class PayPalPaymentResourceGateway:
7+
config: Configuration
8+
gateway: BraintreeGateway
9+
def __init__(self, gateway: BraintreeGateway) -> None: ...
10+
def update(self, params) -> SuccessfulResult | ErrorResult: ...

stubs/braintree/braintree/test/credit_card_numbers.pyi

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ class CreditCardNumbers:
88
Healthcare: Final = "4111111510101010"
99
Payroll: Final = "4111111114101010"
1010
Prepaid: Final = "4111111111111210"
11+
PrepaidReloadable: Final = "4229989900000002"
1112
IssuingBank: Final = "4111111141010101"
1213
CountryOfIssuance: Final = "4111111111121102"
1314
No: Final = "4111111111310101"

stubs/braintree/braintree/test/nonces.pyi

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,7 @@ class Nonces:
7272
TransactablePayroll: Final = "fake-valid-payroll-nonce"
7373
TransactablePinlessDebitVisa: Final = "fake-pinless-debit-visa-nonce"
7474
TransactablePrepaid: Final = "fake-valid-prepaid-nonce"
75+
TransactablePrepaidReloadable: Final = "fake-valid-prepaid-reloadable-nonce"
7576
TransactableUnknownIndicators: Final = "fake-valid-unknown-indicators-nonce"
7677
TransactableVisa: Final = "fake-valid-visa-nonce"
7778
VenmoAccount: Final = "fake-venmo-account-nonce"

0 commit comments

Comments
 (0)