mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-06-25 18:24:03 +08:00
Bump braintree to 4.34.* (#13592)
This commit is contained in:
@@ -1,2 +1,2 @@
|
||||
version = "4.33.*"
|
||||
version = "4.34.*"
|
||||
upstream_repository = "https://github.com/braintree/braintree_python"
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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"
|
||||
|
||||
@@ -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]: ...
|
||||
@@ -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: ...
|
||||
@@ -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"
|
||||
|
||||
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user