diff --git a/stubs/braintree/METADATA.toml b/stubs/braintree/METADATA.toml index 06939c1658de..f6db28bb1b47 100644 --- a/stubs/braintree/METADATA.toml +++ b/stubs/braintree/METADATA.toml @@ -1,6 +1,2 @@ -version = "4.25.*" +version = "4.28.*" upstream_repository = "https://github.com/braintree/braintree_python" -partial_stub = true - -[tool.stubtest] -ignore_missing_stub = true diff --git a/stubs/braintree/braintree/address.pyi b/stubs/braintree/braintree/address.pyi index 2657af69bc7b..e6883749f8a5 100644 --- a/stubs/braintree/braintree/address.pyi +++ b/stubs/braintree/braintree/address.pyi @@ -13,6 +13,7 @@ class Address(Resource): Ground: str Electronic: str ShipToStore: str + PickupInStore: str @staticmethod def create(params: Incomplete | None = None): ... diff --git a/stubs/braintree/braintree/android_pay_card.pyi b/stubs/braintree/braintree/android_pay_card.pyi index 2edb683a51b5..f95f73f9e976 100644 --- a/stubs/braintree/braintree/android_pay_card.pyi +++ b/stubs/braintree/braintree/android_pay_card.pyi @@ -12,3 +12,9 @@ class AndroidPayCard(Resource): def last_4(self): ... @property def card_type(self): ... + @staticmethod + def signature(): ... + @staticmethod + def card_signature(): ... + @staticmethod + def network_token_signature(): ... diff --git a/stubs/braintree/braintree/apple_pay_card.pyi b/stubs/braintree/braintree/apple_pay_card.pyi index 792d2b4b64d7..b3121d15f1f2 100644 --- a/stubs/braintree/braintree/apple_pay_card.pyi +++ b/stubs/braintree/braintree/apple_pay_card.pyi @@ -13,3 +13,5 @@ class ApplePayCard(Resource): def __init__(self, gateway, attributes) -> None: ... @property def expiration_date(self): ... + @staticmethod + def signature(): ... diff --git a/stubs/braintree/braintree/credit_card.pyi b/stubs/braintree/braintree/credit_card.pyi index 4957523f4e2e..67ac672070f9 100644 --- a/stubs/braintree/braintree/credit_card.pyi +++ b/stubs/braintree/braintree/credit_card.pyi @@ -1,4 +1,5 @@ from _typeshed import Incomplete +from enum import Enum from typing import Any from braintree.address import Address as Address @@ -36,6 +37,14 @@ class CreditCard(Resource): No: str Unknown: str + class DebitNetwork(Enum): + Accel = "ACCEL" + Maestro = "MAESTRO" + Nyce = "NYCE" + Pulse = "PULSE" + Star = "STAR" + Star_Access = "STAR_ACCESS" + Commercial: Any DurbinRegulated: Any Debit: Any diff --git a/stubs/braintree/braintree/dispute.pyi b/stubs/braintree/braintree/dispute.pyi index 951c10f5e9d9..b600b8e40a3f 100644 --- a/stubs/braintree/braintree/dispute.pyi +++ b/stubs/braintree/braintree/dispute.pyi @@ -12,11 +12,13 @@ from braintree.transaction_details import TransactionDetails as TransactionDetai class Dispute(AttributeGetter): class Status: Accepted: str + AutoAccepted: str Disputed: str Expired: str + Lost: str Open: str + UnderReview: str Won: str - Lost: str class Reason: CancelledRecurringTransaction: str @@ -41,6 +43,15 @@ class Dispute(AttributeGetter): Standard: str NotProtected: str + class PreDisputeProgram: + NONE: str + VisaRdr: str + + class ProtectionLevel: + EffortlessCBP: str + StandardCBP: str + NoProtection: str + @staticmethod def accept(id): ... @staticmethod diff --git a/stubs/braintree/braintree/dispute_search.pyi b/stubs/braintree/braintree/dispute_search.pyi index dddf55e1641d..9de2d63457dc 100644 --- a/stubs/braintree/braintree/dispute_search.pyi +++ b/stubs/braintree/braintree/dispute_search.pyi @@ -7,12 +7,14 @@ class DisputeSearch: amount_won: Any case_number: Any chargeback_protection_level: Any + protection_level: Any customer_id: Any disbursement_date: Any effective_date: Any id: Any kind: Any merchant_account_id: Any + pre_dispute_program: Any reason: Any reason_code: Any received_date: Any diff --git a/stubs/braintree/braintree/enriched_customer_data.pyi b/stubs/braintree/braintree/enriched_customer_data.pyi new file mode 100644 index 000000000000..a3d2150759a4 --- /dev/null +++ b/stubs/braintree/braintree/enriched_customer_data.pyi @@ -0,0 +1,8 @@ +from _typeshed import Incomplete + +from braintree.resource import Resource as Resource +from braintree.venmo_profile_data import VenmoProfileData as VenmoProfileData + +class EnrichedCustomerData(Resource): + profile_data: Incomplete + def __init__(self, gateway, attributes) -> None: ... diff --git a/stubs/braintree/braintree/error_codes.pyi b/stubs/braintree/braintree/error_codes.pyi index 994521144eef..a345eae25803 100644 --- a/stubs/braintree/braintree/error_codes.pyi +++ b/stubs/braintree/braintree/error_codes.pyi @@ -53,6 +53,8 @@ class ErrorCodes: InvalidToken: str PrivateKeyMismatch: str KeyMismatchStoringCertificate: str + CustomerIdIsInvalid: str + BillingAddressFormatIsInvalid: str class AuthorizationFingerprint: MissingFingerprint: str @@ -67,8 +69,10 @@ class ErrorCodes: MakeDefaultRequiresCustomerId: str VerifyCardRequiresCustomerId: str FailOnDuplicatePaymentMethodRequiresCustomerId: str + InvalidDomainFormat: str CustomerDoesNotExist: str ProxyMerchantDoesNotExist: str + TooManyDomains: str UnsupportedVersion: str MerchantAccountDoesNotExist: str @@ -410,6 +414,11 @@ class ErrorCodes: IBANIsRequired: str AccountHolderNameIsRequired: str + class SepaDirectDebitAccount: + SepaDebitAccountPaymentMethodMandateTypeIsNotSupported: str + SepaDebitAccountPaymentMethodCustomerIdIsInvalid: str + SepaDebitAccountPaymentMethodCustomerIdIsRequired: str + class Subscription: BillingDayOfMonthCannotBeUpdated: str BillingDayOfMonthIsInvalid: str @@ -737,6 +746,10 @@ class ErrorCodes: TotalAmountIsRequired: str TotalAmountIsTooLarge: str TotalAmountMustBeGreaterThanZero: str + UPCCodeIsMissing: str + UPCCodeIsTooLong: str + UPCTypeIsInvalid: str + UPCTypeIsMissing: str UnitAmountFormatIsInvalid: str UnitAmountIsRequired: str UnitAmountIsTooLarge: str diff --git a/stubs/braintree/braintree/exceptions/test_operation_performed_in_production_error.pyi b/stubs/braintree/braintree/exceptions/test_operation_performed_in_production_error.pyi new file mode 100644 index 000000000000..583b34429303 --- /dev/null +++ b/stubs/braintree/braintree/exceptions/test_operation_performed_in_production_error.pyi @@ -0,0 +1,3 @@ +from braintree.exceptions.braintree_error import BraintreeError + +class TestOperationPerformedInProductionError(BraintreeError): ... diff --git a/stubs/braintree/braintree/exchange_rate_quote.pyi b/stubs/braintree/braintree/exchange_rate_quote.pyi new file mode 100644 index 000000000000..e73caf12f4c8 --- /dev/null +++ b/stubs/braintree/braintree/exchange_rate_quote.pyi @@ -0,0 +1,5 @@ +from braintree.attribute_getter import AttributeGetter as AttributeGetter +from braintree.montary_amount import MontaryAmount as MontaryAmount + +class ExchangeRateQuote(AttributeGetter): + def __init__(self, attributes) -> None: ... diff --git a/stubs/braintree/braintree/exchange_rate_quote_gateway.pyi b/stubs/braintree/braintree/exchange_rate_quote_gateway.pyi new file mode 100644 index 000000000000..65e989b6d456 --- /dev/null +++ b/stubs/braintree/braintree/exchange_rate_quote_gateway.pyi @@ -0,0 +1,13 @@ +from _typeshed import Incomplete + +from braintree.error_result import ErrorResult as ErrorResult +from braintree.exchange_rate_quote_payload import ExchangeRateQuotePayload as ExchangeRateQuotePayload +from braintree.successful_result import SuccessfulResult as SuccessfulResult + +class ExchangeRateQuoteGateway: + gateway: Incomplete + config: Incomplete + graphql_client: Incomplete + def __init__(self, gateway, graphql_client: Incomplete | None = None) -> None: ... + exchange_rate_quote_payload: Incomplete + def generate(self, request): ... diff --git a/stubs/braintree/braintree/exchange_rate_quote_input.pyi b/stubs/braintree/braintree/exchange_rate_quote_input.pyi new file mode 100644 index 000000000000..18dc7a66857f --- /dev/null +++ b/stubs/braintree/braintree/exchange_rate_quote_input.pyi @@ -0,0 +1,9 @@ +from _typeshed import Incomplete + +from braintree.attribute_getter import AttributeGetter as AttributeGetter + +class ExchangeRateQuoteInput(AttributeGetter): + parent: Incomplete + def __init__(self, parent, attributes) -> None: ... + def done(self): ... + def to_graphql_variables(self): ... diff --git a/stubs/braintree/braintree/exchange_rate_quote_payload.pyi b/stubs/braintree/braintree/exchange_rate_quote_payload.pyi new file mode 100644 index 000000000000..5c9965333ab1 --- /dev/null +++ b/stubs/braintree/braintree/exchange_rate_quote_payload.pyi @@ -0,0 +1,9 @@ +from _typeshed import Incomplete + +from braintree.exchange_rate_quote import ExchangeRateQuote as ExchangeRateQuote +from braintree.montary_amount import MontaryAmount as MontaryAmount + +class ExchangeRateQuotePayload: + quotes: Incomplete + def __init__(self, data) -> None: ... + def get_quotes(self): ... diff --git a/stubs/braintree/braintree/exchange_rate_quote_request.pyi b/stubs/braintree/braintree/exchange_rate_quote_request.pyi new file mode 100644 index 000000000000..844d59005951 --- /dev/null +++ b/stubs/braintree/braintree/exchange_rate_quote_request.pyi @@ -0,0 +1,9 @@ +from _typeshed import Incomplete + +from braintree.exchange_rate_quote_input import ExchangeRateQuoteInput as ExchangeRateQuoteInput + +class ExchangeRateQuoteRequest: + quotes: Incomplete + def __init__(self) -> None: ... + def add_exchange_rate_quote_input(self, attributes): ... + def to_graphql_variables(self): ... diff --git a/stubs/braintree/braintree/liability_shift.pyi b/stubs/braintree/braintree/liability_shift.pyi new file mode 100644 index 000000000000..6246a570a18d --- /dev/null +++ b/stubs/braintree/braintree/liability_shift.pyi @@ -0,0 +1,3 @@ +from braintree.attribute_getter import AttributeGetter as AttributeGetter + +class LiabilityShift(AttributeGetter): ... diff --git a/stubs/braintree/braintree/local_payment_expired.pyi b/stubs/braintree/braintree/local_payment_expired.pyi new file mode 100644 index 000000000000..61c66d7f201e --- /dev/null +++ b/stubs/braintree/braintree/local_payment_expired.pyi @@ -0,0 +1,4 @@ +from braintree.resource import Resource as Resource + +class LocalPaymentExpired(Resource): + def __init__(self, gateway, attributes) -> None: ... diff --git a/stubs/braintree/braintree/local_payment_funded.pyi b/stubs/braintree/braintree/local_payment_funded.pyi new file mode 100644 index 000000000000..ba4475980891 --- /dev/null +++ b/stubs/braintree/braintree/local_payment_funded.pyi @@ -0,0 +1,8 @@ +from _typeshed import Incomplete + +from braintree.resource import Resource as Resource +from braintree.transaction import Transaction as Transaction + +class LocalPaymentFunded(Resource): + transaction: Incomplete + def __init__(self, gateway, attributes) -> None: ... diff --git a/stubs/braintree/braintree/meta_checkout_card.pyi b/stubs/braintree/braintree/meta_checkout_card.pyi new file mode 100644 index 000000000000..8e29771805a5 --- /dev/null +++ b/stubs/braintree/braintree/meta_checkout_card.pyi @@ -0,0 +1,9 @@ +from braintree.address import Address as Address +from braintree.resource import Resource as Resource + +class MetaCheckoutCard(Resource): + def __init__(self, gateway, attributes) -> None: ... + @property + def expiration_date(self): ... + @property + def masked_number(self): ... diff --git a/stubs/braintree/braintree/meta_checkout_token.pyi b/stubs/braintree/braintree/meta_checkout_token.pyi new file mode 100644 index 000000000000..9cc2d89df89a --- /dev/null +++ b/stubs/braintree/braintree/meta_checkout_token.pyi @@ -0,0 +1,9 @@ +from braintree.address import Address as Address +from braintree.resource import Resource as Resource + +class MetaCheckoutToken(Resource): + def __init__(self, gateway, attributes) -> None: ... + @property + def expiration_date(self): ... + @property + def masked_number(self): ... diff --git a/stubs/braintree/braintree/montary_amount.pyi b/stubs/braintree/braintree/montary_amount.pyi new file mode 100644 index 000000000000..7ad47944c98a --- /dev/null +++ b/stubs/braintree/braintree/montary_amount.pyi @@ -0,0 +1,7 @@ +from _typeshed import Incomplete + +from braintree.attribute_getter import AttributeGetter as AttributeGetter + +class MontaryAmount(AttributeGetter): + value: Incomplete + def __init__(self, attributes) -> None: ... diff --git a/stubs/braintree/braintree/package_details.pyi b/stubs/braintree/braintree/package_details.pyi new file mode 100644 index 000000000000..f1347b8fdc54 --- /dev/null +++ b/stubs/braintree/braintree/package_details.pyi @@ -0,0 +1,7 @@ +from _typeshed import Incomplete + +from braintree.attribute_getter import AttributeGetter as AttributeGetter + +class PackageDetails(AttributeGetter): + detail_list: Incomplete + def __init__(self, attributes) -> None: ... diff --git a/stubs/braintree/braintree/payment_instrument_type.pyi b/stubs/braintree/braintree/payment_instrument_type.pyi index b19e7d84091e..b80557a5f7f4 100644 --- a/stubs/braintree/braintree/payment_instrument_type.pyi +++ b/stubs/braintree/braintree/payment_instrument_type.pyi @@ -1,6 +1,9 @@ class PaymentInstrumentType: + MetaCheckoutCard: str + MetaCheckoutToken: str PayPalAccount: str PayPalHere: str + SepaDirectDebitAccount: str EuropeBankAccount: str CreditCard: str ApplePayCard: str diff --git a/stubs/braintree/braintree/payment_method_customer_data_updated_metadata.pyi b/stubs/braintree/braintree/payment_method_customer_data_updated_metadata.pyi new file mode 100644 index 000000000000..f6fc474082b5 --- /dev/null +++ b/stubs/braintree/braintree/payment_method_customer_data_updated_metadata.pyi @@ -0,0 +1,10 @@ +from _typeshed import Incomplete + +from braintree.enriched_customer_data import EnrichedCustomerData as EnrichedCustomerData +from braintree.payment_method_parser import parse_payment_method as parse_payment_method +from braintree.resource import Resource as Resource + +class PaymentMethodCustomerDataUpdatedMetadata(Resource): + payment_method: Incomplete + enriched_customer_data: Incomplete + def __init__(self, gateway, attributes) -> None: ... diff --git a/stubs/braintree/braintree/plan.pyi b/stubs/braintree/braintree/plan.pyi index 8ff3bcd564a4..1a27e7c29397 100644 --- a/stubs/braintree/braintree/plan.pyi +++ b/stubs/braintree/braintree/plan.pyi @@ -1,3 +1,4 @@ +from _typeshed import Incomplete from typing import Any from braintree.add_on import AddOn as AddOn @@ -13,3 +14,13 @@ class Plan(Resource): def __init__(self, gateway, attributes) -> None: ... @staticmethod def all(): ... + @staticmethod + def create(params: Incomplete | None = None): ... + @staticmethod + def find(subscription_id): ... + @staticmethod + def update(subscription_id, params: Incomplete | None = None): ... + @staticmethod + def create_signature(): ... + @staticmethod + def update_signature(): ... diff --git a/stubs/braintree/braintree/plan_gateway.pyi b/stubs/braintree/braintree/plan_gateway.pyi index 61b37eb77ffb..54dd71e08cdd 100644 --- a/stubs/braintree/braintree/plan_gateway.pyi +++ b/stubs/braintree/braintree/plan_gateway.pyi @@ -1,3 +1,4 @@ +from _typeshed import Incomplete from typing import Any from braintree.error_result import ErrorResult as ErrorResult @@ -12,3 +13,6 @@ class PlanGateway: config: Any def __init__(self, gateway) -> None: ... def all(self): ... + def create(self, params: Incomplete | None = None): ... + def find(self, plan_id): ... + def update(self, plan_id, params: Incomplete | None = None): ... diff --git a/stubs/braintree/braintree/sepa_direct_debit_account.pyi b/stubs/braintree/braintree/sepa_direct_debit_account.pyi new file mode 100644 index 000000000000..c23cfb8c1f0e --- /dev/null +++ b/stubs/braintree/braintree/sepa_direct_debit_account.pyi @@ -0,0 +1,12 @@ +from _typeshed import Incomplete + +from braintree.configuration import Configuration as Configuration +from braintree.resource import Resource as Resource + +class SepaDirectDebitAccount(Resource): + @staticmethod + def find(sepa_direct_debit_account_token): ... + @staticmethod + def delete(sepa_direct_debit_account_token): ... + subscriptions: Incomplete + def __init__(self, gateway, attributes) -> None: ... diff --git a/stubs/braintree/braintree/sepa_direct_debit_account_gateway.pyi b/stubs/braintree/braintree/sepa_direct_debit_account_gateway.pyi new file mode 100644 index 000000000000..d2f05c001ce9 --- /dev/null +++ b/stubs/braintree/braintree/sepa_direct_debit_account_gateway.pyi @@ -0,0 +1,14 @@ +from _typeshed import Incomplete + +from braintree.error_result import ErrorResult as ErrorResult +from braintree.exceptions.not_found_error import NotFoundError as NotFoundError +from braintree.resource import Resource as Resource +from braintree.sepa_direct_debit_account import SepaDirectDebitAccount as SepaDirectDebitAccount +from braintree.successful_result import SuccessfulResult as SuccessfulResult + +class SepaDirectDebitAccountGateway: + gateway: Incomplete + config: Incomplete + def __init__(self, gateway) -> None: ... + def find(self, sepa_direct_debit_account_token): ... + def delete(self, sepa_direct_debit_account_token): ... diff --git a/stubs/braintree/braintree/test/__init__.pyi b/stubs/braintree/braintree/test/__init__.pyi new file mode 100644 index 000000000000..e69de29bb2d1 diff --git a/stubs/braintree/braintree/test/authentication_ids.pyi b/stubs/braintree/braintree/test/authentication_ids.pyi new file mode 100644 index 000000000000..9bd46089b4b3 --- /dev/null +++ b/stubs/braintree/braintree/test/authentication_ids.pyi @@ -0,0 +1,16 @@ +class AuthenticationIds: + ThreeDSecureVisaFullAuthentication: str + ThreeDSecureVisaLookupTimeout: str + ThreeDSecureVisaFailedSignature: str + ThreeDSecureVisaFailedAuthentication: str + ThreeDSecureVisaAttemptsNonParticipating: str + ThreeDSecureVisaNoteEnrolled: str + ThreeDSecureVisaUnavailable: str + ThreeDSecureVisaMPILookupError: str + ThreeDSecureVisaMPIAuthenticateError: str + ThreeDSecureVisaAuthenticationUnavailable: str + ThreeDSecureVisaBypassedAuthentication: str + ThreeDSecureTwoVisaSuccessfulFrictionlessAuthentication: str + ThreeDSecureTwoVisaSuccessfulStepUpAuthentication: str + ThreeDSecureTwoVisaErrorOnLookup: str + ThreeDSecureTwoVisaTimeoutOnLookup: str diff --git a/stubs/braintree/braintree/test/credit_card_defaults.pyi b/stubs/braintree/braintree/test/credit_card_defaults.pyi new file mode 100644 index 000000000000..8645a78b34e5 --- /dev/null +++ b/stubs/braintree/braintree/test/credit_card_defaults.pyi @@ -0,0 +1,3 @@ +class CreditCardDefaults: + CountryOfIssuance: str + IssuingBank: str diff --git a/stubs/braintree/braintree/test/credit_card_numbers.pyi b/stubs/braintree/braintree/test/credit_card_numbers.pyi new file mode 100644 index 000000000000..9055ef4bc25a --- /dev/null +++ b/stubs/braintree/braintree/test/credit_card_numbers.pyi @@ -0,0 +1,38 @@ +class CreditCardNumbers: + class CardTypeIndicators: + Commercial: str + DurbinRegulated: str + Debit: str + Healthcare: str + Payroll: str + Prepaid: str + IssuingBank: str + CountryOfIssuance: str + No: str + Unknown: str + + Maestro: str + MasterCard: str + MasterCardInternational: str + Visa: str + VisaInternational: str + VisaPrepaid: str + Discover: str + Elo: str + Hiper: str + Hipercard: str + Amex: str + + class FailsSandboxVerification: + AmEx: str + Discover: str + MasterCard: str + Visa: str + + class AmexPayWithPoints: + Success: str + IneligibleCard: str + InsufficientPoints: str + + class Disputes: + Chargeback: str diff --git a/stubs/braintree/braintree/test/merchant_account.pyi b/stubs/braintree/braintree/test/merchant_account.pyi new file mode 100644 index 000000000000..d005afcd70f9 --- /dev/null +++ b/stubs/braintree/braintree/test/merchant_account.pyi @@ -0,0 +1,5 @@ +Approve: str +InsufficientFundsContactUs: str +AccountNotAuthorizedContactUs: str +BankRejectedUpdateFundingInformation: str +BankRejectedNone: str diff --git a/stubs/braintree/braintree/test/nonces.pyi b/stubs/braintree/braintree/test/nonces.pyi new file mode 100644 index 000000000000..0ec07956362f --- /dev/null +++ b/stubs/braintree/braintree/test/nonces.pyi @@ -0,0 +1,81 @@ +class Nonces: + AbstractTransactable: str + AmexExpressCheckoutCard: str + AndroidPayCard: str + AndroidPayCardAmEx: str + AndroidPayCardDiscover: str + AndroidPayCardMasterCard: str + AndroidPayCardVisa: str + ApplePayAmEx: str + ApplePayMasterCard: str + ApplePayMpan: str + ApplePayVisa: str + Consumed: str + Europe: str + GatewayRejectedFraud: str + GatewayRejectedRiskThreshold: str + LocalPayment: str + LuhnInvalid: str + MasterpassAmEx: str + MasterpassDiscover: str + MasterpassMasterCard: str + MasterpassVisa: str + PayPalBillingAgreement: str + PayPalFuturePayment: str + PayPalFuturePaymentRefreshToken: str + PayPalOneTimePayment: str + ProcessorDeclinedAmEx: str + ProcessorDeclinedDiscover: str + ProcessorDeclinedMasterCard: str + ProcessorDeclinedVisa: str + ProcessorFailureJCB: str + SEPA: str + MetaCheckoutCard: str + MetaCheckoutToken: str + SamsungPayAmex: str + SamsungPayDiscover: str + SamsungPayMasterCard: str + SamsungPayVisa: str + SepaDirectDebit: str + ThreeDSecureTwoVisaErrorOnLookup: str + ThreeDSecureTwoVisaSuccessfulFrictionlessAuthentication: str + ThreeDSecureTwoVisaSuccessfulStepUpAuthentication: str + ThreeDSecureTwoVisaTimeoutOnLookup: str + ThreeDSecureVisaAttemptsNonParticipating: str + ThreeDSecureVisaAuthenticationUnavailable: str + ThreeDSecureVisaBypassedAuthentication: str + ThreeDSecureVisaFailedAuthentication: str + ThreeDSecureVisaFailedSignature: str + ThreeDSecureVisaFullAuthentication: str + ThreeDSecureVisaLookupTimeout: str + ThreeDSecureVisaMPIAuthenticateError: str + ThreeDSecureVisaMPILookupError: str + ThreeDSecureVisaNoteEnrolled: str + ThreeDSecureVisaUnavailable: str + Transactable: str + TransactableAmEx: str + TransactableCommercial: str + TransactableCountryOfIssuanceCAD: str + TransactableCountryOfIssuanceUSA: str + TransactableDebit: str + TransactableDinersClub: str + TransactableDiscover: str + TransactableDurbinRegulated: str + TransactableHealthcare: str + TransactableIssuingBankNetworkOnly: str + TransactableJCB: str + TransactableMaestro: str + TransactableMasterCard: str + TransactableNoIndicators: str + TransactablePayroll: str + TransactablePinlessDebitVisa: str + TransactablePrepaid: str + TransactableUnknownIndicators: str + TransactableVisa: str + VenmoAccount: str + VenmoAccountTokenIssuanceError: str + VisaCheckoutAmEx: str + VisaCheckoutDiscover: str + VisaCheckoutMasterCard: str + VisaCheckoutVisa: str + UsBankAccount: str diff --git a/stubs/braintree/braintree/test/venmo_sdk.pyi b/stubs/braintree/braintree/test/venmo_sdk.pyi new file mode 100644 index 000000000000..b2b6b18dd075 --- /dev/null +++ b/stubs/braintree/braintree/test/venmo_sdk.pyi @@ -0,0 +1,9 @@ +from _typeshed import Incomplete + +def generate_test_payment_method_code(number): ... + +VisaPaymentMethodCode: Incomplete +InvalidPaymentMethodCode: Incomplete + +Session: str +InvalidSession: str diff --git a/stubs/braintree/braintree/transaction.pyi b/stubs/braintree/braintree/transaction.pyi index b57da28aeac8..b06228e186c1 100644 --- a/stubs/braintree/braintree/transaction.pyi +++ b/stubs/braintree/braintree/transaction.pyi @@ -48,11 +48,15 @@ class Transaction(Resource): AvsAndCvv: str Cvv: str Duplicate: str + ExcessiveRetry: str Fraud: str RiskThreshold: str ThreeDSecure: str TokenIssuance: str + class ReasonCode: + ANY_REASON_CODE: str + class Source: Api: str ControlPanel: str @@ -133,6 +137,10 @@ class Transaction(Resource): @staticmethod def submit_for_settlement_signature(): ... @staticmethod + def package_tracking_signature(): ... + @staticmethod + def package_tracking(transaction_id, params: Incomplete | None = None): ... + @staticmethod def update_details_signature(): ... @staticmethod def refund_signature(): ... diff --git a/stubs/braintree/braintree/transaction_gateway.pyi b/stubs/braintree/braintree/transaction_gateway.pyi index f7f77f328458..90511f68ccf2 100644 --- a/stubs/braintree/braintree/transaction_gateway.pyi +++ b/stubs/braintree/braintree/transaction_gateway.pyi @@ -27,4 +27,5 @@ class TransactionGateway: def submit_for_settlement(self, transaction_id, amount: Incomplete | None = None, params: Incomplete | None = None): ... def update_details(self, transaction_id, params: Incomplete | None = None): ... def submit_for_partial_settlement(self, transaction_id, amount, params: Incomplete | None = None): ... + def package_tracking(self, transaction_id, params: Incomplete | None = None): ... def void(self, transaction_id): ... diff --git a/stubs/braintree/braintree/transaction_review.pyi b/stubs/braintree/braintree/transaction_review.pyi new file mode 100644 index 000000000000..17c767cdcc61 --- /dev/null +++ b/stubs/braintree/braintree/transaction_review.pyi @@ -0,0 +1,4 @@ +from braintree.resource import Resource as Resource + +class TransactionReview(Resource): + def __init__(self, attributes) -> None: ... diff --git a/stubs/braintree/braintree/transaction_search.pyi b/stubs/braintree/braintree/transaction_search.pyi index 439cc9f7f29d..3c8b8aaa4db2 100644 --- a/stubs/braintree/braintree/transaction_search.pyi +++ b/stubs/braintree/braintree/transaction_search.pyi @@ -43,6 +43,7 @@ class TransactionSearch: paypal_payer_email: Any paypal_payment_id: Any paypal_authorization_id: Any + sepa_debit_paypal_v2_order_id: Any credit_card_unique_identifier: Any store_id: Any credit_card_expiration_date: Any @@ -55,6 +56,7 @@ class TransactionSearch: created_using: Any credit_card_card_type: Any credit_card_customer_location: Any + debit_network: Any source: Any status: Any type: Any @@ -71,3 +73,5 @@ class TransactionSearch: settled_at: Any submitted_for_settlement_at: Any voided_at: Any + ach_return_responses_created_at: Any + reason_code: Any diff --git a/stubs/braintree/braintree/us_bank_account_verification.pyi b/stubs/braintree/braintree/us_bank_account_verification.pyi index 641b9d5da795..fb66d19be17f 100644 --- a/stubs/braintree/braintree/us_bank_account_verification.pyi +++ b/stubs/braintree/braintree/us_bank_account_verification.pyi @@ -18,6 +18,9 @@ class UsBankAccountVerification(AttributeGetter): TokenizedCheck: str MicroTransfers: str + class VerificationAddOns: + CustomerVerification: str + us_bank_account: Any def __init__(self, gateway, attributes) -> None: ... @staticmethod diff --git a/stubs/braintree/braintree/util/constants.pyi b/stubs/braintree/braintree/util/constants.pyi index f46d366a20d1..1ec390b709f0 100644 --- a/stubs/braintree/braintree/util/constants.pyi +++ b/stubs/braintree/braintree/util/constants.pyi @@ -1,3 +1,4 @@ class Constants: @staticmethod def get_all_constant_values_from_class(klass): ... + def get_all_enum_values(enum_class): ... diff --git a/stubs/braintree/braintree/venmo_profile_data.pyi b/stubs/braintree/braintree/venmo_profile_data.pyi new file mode 100644 index 000000000000..c85fb434ca2e --- /dev/null +++ b/stubs/braintree/braintree/venmo_profile_data.pyi @@ -0,0 +1,4 @@ +from braintree.resource import Resource as Resource + +class VenmoProfileData(Resource): + def __init__(self, gateway, attributes) -> None: ... diff --git a/stubs/braintree/braintree/webhook_notification.pyi b/stubs/braintree/braintree/webhook_notification.pyi index 795ad4536e7c..35c90af9072b 100644 --- a/stubs/braintree/braintree/webhook_notification.pyi +++ b/stubs/braintree/braintree/webhook_notification.pyi @@ -32,23 +32,29 @@ class WebhookNotification(Resource): Disbursement: str DisbursementException: str DisputeAccepted: str + DisputeAutoAccepted: str DisputeDisputed: str DisputeExpired: str DisputeLost: str DisputeOpened: str + DisputeUnderReview: str DisputeWon: str GrantedPaymentMethodRevoked: str GrantorUpdatedGrantedPaymentMethod: str LocalPaymentCompleted: str + LocalPaymentExpired: str + LocalPaymentFunded: str LocalPaymentReversed: str OAuthAccessRevoked: str PartnerMerchantConnected: str PartnerMerchantDeclined: str PartnerMerchantDisconnected: str + PaymentMethodCustomerDataUpdated: str PaymentMethodRevokedByCustomer: str RecipientUpdatedGrantedPaymentMethod: str SubMerchantAccountApproved: str SubMerchantAccountDeclined: str + SubscriptionBillingSkipped: str SubscriptionCanceled: str SubscriptionChargedSuccessfully: str SubscriptionChargedUnsuccessfully: str @@ -57,6 +63,7 @@ class WebhookNotification(Resource): SubscriptionWentActive: str SubscriptionWentPastDue: str TransactionDisbursed: str + TransactionReviewed: str TransactionSettled: str TransactionSettlementDeclined: str