diff --git a/stubs/braintree/METADATA.toml b/stubs/braintree/METADATA.toml index 5f9b367ae..1fea0e751 100644 --- a/stubs/braintree/METADATA.toml +++ b/stubs/braintree/METADATA.toml @@ -1,2 +1,2 @@ -version = "4.33.*" +version = "4.34.*" upstream_repository = "https://github.com/braintree/braintree_python" diff --git a/stubs/braintree/braintree/__init__.pyi b/stubs/braintree/braintree/__init__.pyi index f242635c0..30ed226bb 100644 --- a/stubs/braintree/braintree/__init__.pyi +++ b/stubs/braintree/braintree/__init__.pyi @@ -49,6 +49,7 @@ from braintree.payment_method import PaymentMethod as PaymentMethod from braintree.payment_method_nonce import PaymentMethodNonce as PaymentMethodNonce from braintree.payment_method_parser import parse_payment_method as parse_payment_method from braintree.paypal_account import PayPalAccount as PayPalAccount +from braintree.paypal_payment_resource import PayPalPaymentResource as PayPalPaymentResource from braintree.plan import Plan as Plan from braintree.plan_gateway import PlanGateway as PlanGateway from braintree.processor_response_types import ProcessorResponseTypes as ProcessorResponseTypes diff --git a/stubs/braintree/braintree/braintree_gateway.pyi b/stubs/braintree/braintree/braintree_gateway.pyi index 39e20d7e6..5afb253f8 100644 --- a/stubs/braintree/braintree/braintree_gateway.pyi +++ b/stubs/braintree/braintree/braintree_gateway.pyi @@ -18,6 +18,7 @@ from braintree.oauth_gateway import OAuthGateway from braintree.payment_method_gateway import PaymentMethodGateway from braintree.payment_method_nonce_gateway import PaymentMethodNonceGateway from braintree.paypal_account_gateway import PayPalAccountGateway +from braintree.paypal_payment_resource_gateway import PayPalPaymentResourceGateway from braintree.plan_gateway import PlanGateway from braintree.sepa_direct_debit_account_gateway import SepaDirectDebitAccountGateway from braintree.settlement_batch_summary_gateway import SettlementBatchSummaryGateway @@ -49,6 +50,7 @@ class BraintreeGateway: payment_method: PaymentMethodGateway payment_method_nonce: PaymentMethodNonceGateway paypal_account: PayPalAccountGateway + paypal_payment_resource: PayPalPaymentResourceGateway plan: PlanGateway sepa_direct_debit_account: SepaDirectDebitAccountGateway settlement_batch_summary: SettlementBatchSummaryGateway diff --git a/stubs/braintree/braintree/credit_card.pyi b/stubs/braintree/braintree/credit_card.pyi index b70edba8b..a419ef74d 100644 --- a/stubs/braintree/braintree/credit_card.pyi +++ b/stubs/braintree/braintree/credit_card.pyi @@ -54,6 +54,7 @@ class CreditCard(Resource): Payroll: type[CardTypeIndicator] Prepaid: type[CardTypeIndicator] ProductId: type[CardTypeIndicator] + PrepaidReloadable: type[CardTypeIndicator] @staticmethod def create(params: Incomplete | None = None): ... @staticmethod diff --git a/stubs/braintree/braintree/error_codes.pyi b/stubs/braintree/braintree/error_codes.pyi index b4436b69c..4f1fffcbc 100644 --- a/stubs/braintree/braintree/error_codes.pyi +++ b/stubs/braintree/braintree/error_codes.pyi @@ -401,6 +401,46 @@ class ErrorCodes: PaymentMethodNonceUnknown: Final = "92908" TokenIsInUse: Final = "92906" + class PayPalPaymentResource: + NonceExpired: Final = "97301" + IdNotSupported: Final = "97302" + NonceRequired: Final = "97303" + InvalidEmail: Final = "97304" + EmailTooLong: Final = "97305" + ExpectedLineItemCollection: Final = "97306" + ExpectedLineItemHash: Final = "97307" + ExpectedLineItemDebit: Final = "97308" + InvalidUnitAmount: Final = "97309" + InvalidUnitTaxAmount: Final = "97310" + IsoCodeRequired: Final = "97311" + IsoCodeUnsupported: Final = "97312" + ShippingFieldsMissing: Final = "97313" + InvalidAmountBreakdown: Final = "97314" + ExpectedShippingOptionCollection: Final = "97315" + ShippingOptionsRequired: Final = "97316" + ShippingOptionFieldsMissing: Final = "97317" + InvalidShippingOptionType: Final = "97318" + ShippingOptionIdReused: Final = "97319" + TooManyShippingOptionsSelected: Final = "97320" + ShippingOptionMustMatchBreakdown: Final = "97321" + LineItemsShouldMatchTotal: Final = "97322" + LineItemsTaxShouldMatchTotal: Final = "97323" + PatchCallFailed: Final = "97324" + InvalidAmount: Final = "97325" + ShippingIdTooLong: Final = "97326" + ShippingLabelTooLong: Final = "97327" + ShippingFullNameTooLong: Final = "97328" + ShippingAddressTooLong: Final = "97329" + ShippingExtendedAddressTooLong: Final = "97330" + ShippingLocalityTooLong: Final = "97331" + ShippingRegionTooLong: Final = "97332" + CountryCodeTooLong: Final = "97333" + NationalNumberTooLong: Final = "97334" + PostalCodeTooLong: Final = "97335" + DescriptionTooLong: Final = "97336" + CustomFieldTooLong: Final = "97337" + OrderIdTooLong: Final = "97338" + class SettlementBatchSummary: CustomFieldIsInvalid: Final = "82303" SettlementDateIsInvalid: Final = "82302" diff --git a/stubs/braintree/braintree/paypal_payment_resource.pyi b/stubs/braintree/braintree/paypal_payment_resource.pyi new file mode 100644 index 000000000..4c2297db7 --- /dev/null +++ b/stubs/braintree/braintree/paypal_payment_resource.pyi @@ -0,0 +1,10 @@ +from _typeshed import Incomplete + +from braintree.resource import Resource + +class PayPalPaymentResource(Resource): + def __init__(self, gateway, attributes) -> None: ... + @staticmethod + def update(request): ... + @staticmethod + def update_signature() -> list[Incomplete]: ... diff --git a/stubs/braintree/braintree/paypal_payment_resource_gateway.pyi b/stubs/braintree/braintree/paypal_payment_resource_gateway.pyi new file mode 100644 index 000000000..10eb5fd46 --- /dev/null +++ b/stubs/braintree/braintree/paypal_payment_resource_gateway.pyi @@ -0,0 +1,10 @@ +from braintree.braintree_gateway import BraintreeGateway +from braintree.configuration import Configuration +from braintree.error_result import ErrorResult +from braintree.successful_result import SuccessfulResult + +class PayPalPaymentResourceGateway: + config: Configuration + gateway: BraintreeGateway + def __init__(self, gateway: BraintreeGateway) -> None: ... + def update(self, params) -> SuccessfulResult | ErrorResult: ... diff --git a/stubs/braintree/braintree/test/credit_card_numbers.pyi b/stubs/braintree/braintree/test/credit_card_numbers.pyi index 0bf826868..085591590 100644 --- a/stubs/braintree/braintree/test/credit_card_numbers.pyi +++ b/stubs/braintree/braintree/test/credit_card_numbers.pyi @@ -8,6 +8,7 @@ class CreditCardNumbers: Healthcare: Final = "4111111510101010" Payroll: Final = "4111111114101010" Prepaid: Final = "4111111111111210" + PrepaidReloadable: Final = "4229989900000002" IssuingBank: Final = "4111111141010101" CountryOfIssuance: Final = "4111111111121102" No: Final = "4111111111310101" diff --git a/stubs/braintree/braintree/test/nonces.pyi b/stubs/braintree/braintree/test/nonces.pyi index 448e3ef09..c59ffa78a 100644 --- a/stubs/braintree/braintree/test/nonces.pyi +++ b/stubs/braintree/braintree/test/nonces.pyi @@ -72,6 +72,7 @@ class Nonces: TransactablePayroll: Final = "fake-valid-payroll-nonce" TransactablePinlessDebitVisa: Final = "fake-pinless-debit-visa-nonce" TransactablePrepaid: Final = "fake-valid-prepaid-nonce" + TransactablePrepaidReloadable: Final = "fake-valid-prepaid-reloadable-nonce" TransactableUnknownIndicators: Final = "fake-valid-unknown-indicators-nonce" TransactableVisa: Final = "fake-valid-visa-nonce" VenmoAccount: Final = "fake-venmo-account-nonce"