From fe020dfc79f91be52e6a4d7986bc878ad53fa8a4 Mon Sep 17 00:00:00 2001 From: Avasam Date: Sun, 31 Mar 2024 16:17:58 -0400 Subject: [PATCH 1/3] stubtest-complete & Bump braintree to 4.28.* --- stubs/braintree/METADATA.toml | 6 +- stubs/braintree/braintree/address.pyi | 1 + .../braintree/braintree/android_pay_card.pyi | 6 ++ stubs/braintree/braintree/apple_pay_card.pyi | 2 + stubs/braintree/braintree/credit_card.pyi | 9 +++ stubs/braintree/braintree/dispute.pyi | 13 ++- stubs/braintree/braintree/dispute_search.pyi | 2 + .../braintree/enriched_customer_data.pyi | 8 ++ stubs/braintree/braintree/error_codes.pyi | 13 +++ ...peration_performed_in_production_error.pyi | 3 + .../braintree/exchange_rate_quote.pyi | 5 ++ .../braintree/exchange_rate_quote_gateway.pyi | 13 +++ .../braintree/exchange_rate_quote_input.pyi | 9 +++ .../braintree/exchange_rate_quote_payload.pyi | 9 +++ .../braintree/exchange_rate_quote_request.pyi | 9 +++ stubs/braintree/braintree/liability_shift.pyi | 3 + .../braintree/local_payment_expired.pyi | 4 + .../braintree/local_payment_funded.pyi | 8 ++ .../braintree/meta_checkout_card.pyi | 9 +++ .../braintree/meta_checkout_token.pyi | 9 +++ stubs/braintree/braintree/montary_amount.pyi | 7 ++ stubs/braintree/braintree/package_details.pyi | 7 ++ .../braintree/payment_instrument_type.pyi | 3 + ..._method_customer_data_updated_metadata.pyi | 10 +++ stubs/braintree/braintree/plan.pyi | 11 +++ stubs/braintree/braintree/plan_gateway.pyi | 4 + .../braintree/sepa_direct_debit_account.pyi | 12 +++ .../sepa_direct_debit_account_gateway.pyi | 14 ++++ stubs/braintree/braintree/test/__init__.pyi | 0 .../braintree/test/authentication_ids.pyi | 16 ++++ .../braintree/test/credit_card_defaults.pyi | 3 + .../braintree/test/credit_card_numbers.pyi | 38 +++++++++ .../braintree/test/merchant_account.pyi | 5 ++ stubs/braintree/braintree/test/nonces.pyi | 81 +++++++++++++++++++ stubs/braintree/braintree/test/venmo_sdk.pyi | 9 +++ stubs/braintree/braintree/transaction.pyi | 8 ++ .../braintree/transaction_gateway.pyi | 1 + .../braintree/transaction_review.pyi | 4 + .../braintree/transaction_search.pyi | 4 + .../us_bank_account_verification.pyi | 3 + stubs/braintree/braintree/util/constants.pyi | 1 + .../braintree/venmo_profile_data.pyi | 4 + .../braintree/webhook_notification.pyi | 7 ++ 43 files changed, 387 insertions(+), 6 deletions(-) create mode 100644 stubs/braintree/braintree/enriched_customer_data.pyi create mode 100644 stubs/braintree/braintree/exceptions/test_operation_performed_in_production_error.pyi create mode 100644 stubs/braintree/braintree/exchange_rate_quote.pyi create mode 100644 stubs/braintree/braintree/exchange_rate_quote_gateway.pyi create mode 100644 stubs/braintree/braintree/exchange_rate_quote_input.pyi create mode 100644 stubs/braintree/braintree/exchange_rate_quote_payload.pyi create mode 100644 stubs/braintree/braintree/exchange_rate_quote_request.pyi create mode 100644 stubs/braintree/braintree/liability_shift.pyi create mode 100644 stubs/braintree/braintree/local_payment_expired.pyi create mode 100644 stubs/braintree/braintree/local_payment_funded.pyi create mode 100644 stubs/braintree/braintree/meta_checkout_card.pyi create mode 100644 stubs/braintree/braintree/meta_checkout_token.pyi create mode 100644 stubs/braintree/braintree/montary_amount.pyi create mode 100644 stubs/braintree/braintree/package_details.pyi create mode 100644 stubs/braintree/braintree/payment_method_customer_data_updated_metadata.pyi create mode 100644 stubs/braintree/braintree/sepa_direct_debit_account.pyi create mode 100644 stubs/braintree/braintree/sepa_direct_debit_account_gateway.pyi create mode 100644 stubs/braintree/braintree/test/__init__.pyi create mode 100644 stubs/braintree/braintree/test/authentication_ids.pyi create mode 100644 stubs/braintree/braintree/test/credit_card_defaults.pyi create mode 100644 stubs/braintree/braintree/test/credit_card_numbers.pyi create mode 100644 stubs/braintree/braintree/test/merchant_account.pyi create mode 100644 stubs/braintree/braintree/test/nonces.pyi create mode 100644 stubs/braintree/braintree/test/venmo_sdk.pyi create mode 100644 stubs/braintree/braintree/transaction_review.pyi create mode 100644 stubs/braintree/braintree/venmo_profile_data.pyi 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 From bbe800bb4297a8260a0147cb4064f720ff0c2885 Mon Sep 17 00:00:00 2001 From: Avasam Date: Sun, 31 Mar 2024 17:53:45 -0400 Subject: [PATCH 2/3] Replace Any by Incomplete or their actual type --- .../account_updater_daily_report.pyi | 6 +- stubs/braintree/braintree/add_on_gateway.pyi | 6 +- stubs/braintree/braintree/address_gateway.pyi | 5 +- .../braintree/amex_express_checkout_card.pyi | 5 +- .../braintree/braintree/android_pay_card.pyi | 7 +- stubs/braintree/braintree/apple_pay_card.pyi | 7 +- .../braintree/braintree/apple_pay_gateway.pyi | 6 +- .../braintree/braintree/attribute_getter.pyi | 7 +- .../braintree/authorization_adjustment.pyi | 4 +- .../braintree/braintree/braintree_gateway.pyi | 61 ++++---- .../braintree/client_token_gateway.pyi | 5 +- stubs/braintree/braintree/configuration.pyi | 19 ++- .../braintree/credentials_parser.pyi | 11 +- stubs/braintree/braintree/credit_card.pyi | 28 ++-- .../braintree/credit_card_gateway.pyi | 5 +- .../braintree/credit_card_verification.pyi | 19 +-- .../credit_card_verification_gateway.pyi | 6 +- .../credit_card_verification_search.pyi | 26 ++-- stubs/braintree/braintree/customer.pyi | 40 +++-- .../braintree/braintree/customer_gateway.pyi | 5 +- stubs/braintree/braintree/customer_search.pyi | 50 +++---- stubs/braintree/braintree/disbursement.pyi | 6 +- .../braintree/disbursement_detail.pyi | 6 +- .../braintree/braintree/discount_gateway.pyi | 6 +- stubs/braintree/braintree/dispute.pyi | 23 +-- stubs/braintree/braintree/dispute_gateway.pyi | 8 +- stubs/braintree/braintree/dispute_search.pyi | 42 +++--- .../braintree/document_upload_gateway.pyi | 5 +- stubs/braintree/braintree/error_result.pyi | 19 ++- stubs/braintree/braintree/errors.pyi | 6 +- .../granted_payment_instrument_update.pyi | 4 +- stubs/braintree/braintree/ids_search.pyi | 4 +- .../braintree/local_payment_completed.pyi | 4 +- stubs/braintree/braintree/masterpass_card.pyi | 7 +- stubs/braintree/braintree/merchant.pyi | 4 +- .../merchant_account/address_details.pyi | 4 +- .../merchant_account/business_details.pyi | 6 +- .../merchant_account/funding_details.pyi | 4 +- .../merchant_account/individual_details.pyi | 6 +- .../merchant_account/merchant_account.pyi | 11 +- .../braintree/merchant_account_gateway.pyi | 5 +- .../braintree/braintree/merchant_gateway.pyi | 6 +- stubs/braintree/braintree/modification.pyi | 4 +- stubs/braintree/braintree/oauth_gateway.pyi | 6 +- stubs/braintree/braintree/package_details.pyi | 4 +- .../braintree/paginated_collection.pyi | 4 +- .../braintree/braintree/paginated_result.pyi | 8 +- .../braintree/braintree/partner_merchant.pyi | 12 +- .../braintree/payment_method_gateway.pyi | 7 +- .../braintree/payment_method_nonce.pyi | 8 +- .../payment_method_nonce_gateway.pyi | 6 +- stubs/braintree/braintree/paypal_account.pyi | 4 +- .../braintree/paypal_account_gateway.pyi | 5 +- stubs/braintree/braintree/plan.pyi | 5 +- stubs/braintree/braintree/plan_gateway.pyi | 5 +- stubs/braintree/braintree/resource.pyi | 4 +- .../braintree/resource_collection.pyi | 4 +- .../revoked_payment_method_metadata.pyi | 8 +- .../braintree/braintree/samsung_pay_card.pyi | 7 +- stubs/braintree/braintree/search.pyi | 18 +-- .../braintree/sepa_direct_debit_account.pyi | 5 +- .../settlement_batch_summary_gateway.pyi | 5 +- .../braintree/braintree/signature_service.pyi | 6 +- stubs/braintree/braintree/status_event.pyi | 4 +- stubs/braintree/braintree/subscription.pyi | 20 +-- .../braintree/subscription_gateway.pyi | 5 +- .../braintree/subscription_search.pyi | 26 ++-- .../braintree/subscription_status_event.pyi | 6 +- stubs/braintree/braintree/testing_gateway.pyi | 6 +- stubs/braintree/braintree/transaction.pyi | 80 +++++----- .../braintree/transaction_details.pyi | 4 +- .../braintree/transaction_gateway.pyi | 5 +- .../transaction_line_item_gateway.pyi | 6 +- .../braintree/transaction_search.pyi | 140 +++++++++--------- stubs/braintree/braintree/us_bank_account.pyi | 6 +- .../braintree/us_bank_account_gateway.pyi | 6 +- .../us_bank_account_verification.pyi | 5 +- .../us_bank_account_verification_gateway.pyi | 6 +- .../us_bank_account_verification_search.pyi | 26 ++-- stubs/braintree/braintree/util/generator.pyi | 4 +- .../braintree/util/graphql_client.pyi | 3 +- stubs/braintree/braintree/util/http.pyi | 5 +- stubs/braintree/braintree/util/parser.pyi | 4 +- .../braintree/validation_error_collection.pyi | 3 +- stubs/braintree/braintree/venmo_account.pyi | 5 +- .../braintree/visa_checkout_card.pyi | 9 +- .../braintree/webhook_notification.pyi | 44 +++--- .../webhook_notification_gateway.pyi | 6 +- .../braintree/webhook_testing_gateway.pyi | 5 +- 89 files changed, 541 insertions(+), 547 deletions(-) diff --git a/stubs/braintree/braintree/account_updater_daily_report.pyi b/stubs/braintree/braintree/account_updater_daily_report.pyi index 86b343898205..4673c259465f 100644 --- a/stubs/braintree/braintree/account_updater_daily_report.pyi +++ b/stubs/braintree/braintree/account_updater_daily_report.pyi @@ -1,9 +1,9 @@ -from typing import Any +from _typeshed import Incomplete from braintree.configuration import Configuration as Configuration from braintree.resource import Resource as Resource class AccountUpdaterDailyReport(Resource): - report_url: Any - report_date: Any + report_url: Incomplete + report_date: Incomplete def __init__(self, gateway, attributes) -> None: ... diff --git a/stubs/braintree/braintree/add_on_gateway.pyi b/stubs/braintree/braintree/add_on_gateway.pyi index 131c84cf248f..3f12dc7adf33 100644 --- a/stubs/braintree/braintree/add_on_gateway.pyi +++ b/stubs/braintree/braintree/add_on_gateway.pyi @@ -1,10 +1,10 @@ -from typing import Any +from _typeshed import Incomplete from braintree.add_on import AddOn as AddOn from braintree.resource_collection import ResourceCollection as ResourceCollection class AddOnGateway: - gateway: Any - config: Any + gateway: Incomplete + config: Incomplete def __init__(self, gateway) -> None: ... def all(self): ... diff --git a/stubs/braintree/braintree/address_gateway.pyi b/stubs/braintree/braintree/address_gateway.pyi index 07f7530abf30..c642224fb9ca 100644 --- a/stubs/braintree/braintree/address_gateway.pyi +++ b/stubs/braintree/braintree/address_gateway.pyi @@ -1,5 +1,4 @@ from _typeshed import Incomplete -from typing import Any from braintree.address import Address as Address from braintree.error_result import ErrorResult as ErrorResult @@ -8,8 +7,8 @@ from braintree.resource import Resource as Resource from braintree.successful_result import SuccessfulResult as SuccessfulResult class AddressGateway: - gateway: Any - config: Any + gateway: Incomplete + config: Incomplete def __init__(self, gateway) -> None: ... def create(self, params: Incomplete | None = None): ... def delete(self, customer_id, address_id): ... diff --git a/stubs/braintree/braintree/amex_express_checkout_card.pyi b/stubs/braintree/braintree/amex_express_checkout_card.pyi index 4d736b43e31b..793031491367 100644 --- a/stubs/braintree/braintree/amex_express_checkout_card.pyi +++ b/stubs/braintree/braintree/amex_express_checkout_card.pyi @@ -1,9 +1,8 @@ -from typing import Any - from braintree.resource import Resource as Resource +from braintree.subscription import Subscription class AmexExpressCheckoutCard(Resource): - subscriptions: Any + subscriptions: list[Subscription] def __init__(self, gateway, attributes) -> None: ... @property def expiration_date(self): ... diff --git a/stubs/braintree/braintree/android_pay_card.pyi b/stubs/braintree/braintree/android_pay_card.pyi index f95f73f9e976..3b0a01cd2c16 100644 --- a/stubs/braintree/braintree/android_pay_card.pyi +++ b/stubs/braintree/braintree/android_pay_card.pyi @@ -1,10 +1,11 @@ -from typing import Any +from _typeshed import Incomplete from braintree.resource import Resource as Resource +from braintree.subscription import Subscription class AndroidPayCard(Resource): - is_expired: Any - subscriptions: Any + is_expired: Incomplete + subscriptions: list[Subscription] def __init__(self, gateway, attributes) -> None: ... @property def expiration_date(self): ... diff --git a/stubs/braintree/braintree/apple_pay_card.pyi b/stubs/braintree/braintree/apple_pay_card.pyi index b3121d15f1f2..a5e4bdada0f1 100644 --- a/stubs/braintree/braintree/apple_pay_card.pyi +++ b/stubs/braintree/braintree/apple_pay_card.pyi @@ -1,6 +1,7 @@ -from typing import Any +from _typeshed import Incomplete from braintree.resource import Resource as Resource +from braintree.subscription import Subscription class ApplePayCard(Resource): class CardType: @@ -8,8 +9,8 @@ class ApplePayCard(Resource): MasterCard: str Visa: str - is_expired: Any - subscriptions: Any + is_expired: Incomplete + subscriptions: list[Subscription] def __init__(self, gateway, attributes) -> None: ... @property def expiration_date(self): ... diff --git a/stubs/braintree/braintree/apple_pay_gateway.pyi b/stubs/braintree/braintree/apple_pay_gateway.pyi index 37579860600a..f0df170b14b7 100644 --- a/stubs/braintree/braintree/apple_pay_gateway.pyi +++ b/stubs/braintree/braintree/apple_pay_gateway.pyi @@ -1,4 +1,4 @@ -from typing import Any +from _typeshed import Incomplete from braintree.apple_pay_options import ApplePayOptions as ApplePayOptions from braintree.error_result import ErrorResult as ErrorResult @@ -6,8 +6,8 @@ from braintree.exceptions.unexpected_error import UnexpectedError as UnexpectedE from braintree.successful_result import SuccessfulResult as SuccessfulResult class ApplePayGateway: - gateway: Any - config: Any + gateway: Incomplete + config: Incomplete def __init__(self, gateway) -> None: ... def register_domain(self, domain): ... def unregister_domain(self, domain): ... diff --git a/stubs/braintree/braintree/attribute_getter.pyi b/stubs/braintree/braintree/attribute_getter.pyi index ce928b4946a5..66998f5d8001 100644 --- a/stubs/braintree/braintree/attribute_getter.pyi +++ b/stubs/braintree/braintree/attribute_getter.pyi @@ -1,4 +1,7 @@ -from _typeshed import Incomplete +from typing import Any class AttributeGetter: - def __init__(self, attributes: Incomplete | None = None) -> None: ... + def __init__(self, attributes: dict[str, Any] | None = None) -> None: ... + # This doesn't exist at runtime, but subclasses should define their own fields populated by attributes in __init__ + # Until that's done, keep __getattribute__ to fill in the gaps + def __getattribute__(self, name: str) -> Any: ... diff --git a/stubs/braintree/braintree/authorization_adjustment.pyi b/stubs/braintree/braintree/authorization_adjustment.pyi index 32e9319ee4a2..538d145cf0c3 100644 --- a/stubs/braintree/braintree/authorization_adjustment.pyi +++ b/stubs/braintree/braintree/authorization_adjustment.pyi @@ -1,7 +1,7 @@ -from typing import Any +from decimal import Decimal from braintree.attribute_getter import AttributeGetter as AttributeGetter class AuthorizationAdjustment(AttributeGetter): - amount: Any + amount: Decimal | None def __init__(self, attributes) -> None: ... diff --git a/stubs/braintree/braintree/braintree_gateway.pyi b/stubs/braintree/braintree/braintree_gateway.pyi index c82ef2f03ab0..0cae3945f786 100644 --- a/stubs/braintree/braintree/braintree_gateway.pyi +++ b/stubs/braintree/braintree/braintree_gateway.pyi @@ -1,5 +1,4 @@ from _typeshed import Incomplete -from typing import Any from braintree.add_on_gateway import AddOnGateway as AddOnGateway from braintree.address_gateway import AddressGateway as AddressGateway @@ -12,6 +11,7 @@ from braintree.customer_gateway import CustomerGateway as CustomerGateway from braintree.discount_gateway import DiscountGateway as DiscountGateway from braintree.dispute_gateway import DisputeGateway as DisputeGateway from braintree.document_upload_gateway import DocumentUploadGateway as DocumentUploadGateway +from braintree.exchange_rate_quote_gateway import ExchangeRateQuoteGateway from braintree.merchant_account_gateway import MerchantAccountGateway as MerchantAccountGateway from braintree.merchant_gateway import MerchantGateway as MerchantGateway from braintree.oauth_gateway import OAuthGateway as OAuthGateway @@ -19,6 +19,7 @@ from braintree.payment_method_gateway import PaymentMethodGateway as PaymentMeth from braintree.payment_method_nonce_gateway import PaymentMethodNonceGateway as PaymentMethodNonceGateway from braintree.paypal_account_gateway import PayPalAccountGateway as PayPalAccountGateway from braintree.plan_gateway import PlanGateway as PlanGateway +from braintree.sepa_direct_debit_account_gateway import SepaDirectDebitAccountGateway from braintree.settlement_batch_summary_gateway import SettlementBatchSummaryGateway as SettlementBatchSummaryGateway from braintree.subscription_gateway import SubscriptionGateway as SubscriptionGateway from braintree.testing_gateway import TestingGateway as TestingGateway @@ -30,32 +31,34 @@ from braintree.webhook_notification_gateway import WebhookNotificationGateway as from braintree.webhook_testing_gateway import WebhookTestingGateway as WebhookTestingGateway class BraintreeGateway: - config: Any - add_on: Any - address: Any - apple_pay: Any - client_token: Any - credit_card: Any - customer: Any - discount: Any - dispute: Any - document_upload: Any - graphql_client: Any - merchant: Any - merchant_account: Any - oauth: Any - payment_method: Any - payment_method_nonce: Any - paypal_account: Any - plan: Any - settlement_batch_summary: Any - subscription: Any - testing: Any - transaction: Any - transaction_line_item: Any - us_bank_account: Any - us_bank_account_verification: Any - verification: Any - webhook_notification: Any - webhook_testing: Any + config: Configuration + add_on: AddOnGateway + address: AddressGateway + apple_pay: ApplePayGateway + client_token: ClientTokenGateway + credit_card: CreditCardGateway + customer: CustomerGateway + discount: DiscountGateway + dispute: DisputeGateway + document_upload: DocumentUploadGateway + exchange_rate_quote: ExchangeRateQuoteGateway + graphql_client: Incomplete + merchant: MerchantGateway + merchant_account: MerchantAccountGateway + oauth: OAuthGateway + payment_method: PaymentMethodGateway + payment_method_nonce: PaymentMethodNonceGateway + paypal_account: PayPalAccountGateway + plan: PlanGateway + sepa_direct_debit_account: SepaDirectDebitAccountGateway + settlement_batch_summary: SettlementBatchSummaryGateway + subscription: SubscriptionGateway + testing: TestingGateway + transaction: TransactionGateway + transaction_line_item: TransactionLineItemGateway + us_bank_account: UsBankAccountGateway + us_bank_account_verification: UsBankAccountVerificationGateway + verification: CreditCardVerificationGateway + webhook_notification: WebhookNotificationGateway + webhook_testing: WebhookTestingGateway def __init__(self, config: Incomplete | None = None, **kwargs) -> None: ... diff --git a/stubs/braintree/braintree/client_token_gateway.pyi b/stubs/braintree/braintree/client_token_gateway.pyi index 49d8bf37e559..958550c02e64 100644 --- a/stubs/braintree/braintree/client_token_gateway.pyi +++ b/stubs/braintree/braintree/client_token_gateway.pyi @@ -1,12 +1,11 @@ from _typeshed import Incomplete -from typing import Any from braintree import exceptions as exceptions from braintree.client_token import ClientToken as ClientToken from braintree.resource import Resource as Resource class ClientTokenGateway: - gateway: Any - config: Any + gateway: Incomplete + config: Incomplete def __init__(self, gateway) -> None: ... def generate(self, params: Incomplete | None = None): ... diff --git a/stubs/braintree/braintree/configuration.pyi b/stubs/braintree/braintree/configuration.pyi index a3a0667a2df2..39c079a201cf 100644 --- a/stubs/braintree/braintree/configuration.pyi +++ b/stubs/braintree/braintree/configuration.pyi @@ -1,5 +1,4 @@ from _typeshed import Incomplete -from typing import Any from braintree.credentials_parser import CredentialsParser as CredentialsParser from braintree.environment import Environment as Environment @@ -19,15 +18,15 @@ class Configuration: def api_version(): ... @staticmethod def graphql_api_version(): ... - environment: Any - merchant_id: Any - public_key: Any - private_key: Any - client_id: Any - client_secret: Any - access_token: Any - timeout: Any - wrap_http_exceptions: Any + environment: Incomplete + merchant_id: Incomplete + public_key: Incomplete + private_key: Incomplete + client_id: Incomplete + client_secret: Incomplete + access_token: Incomplete + timeout: Incomplete + wrap_http_exceptions: Incomplete def __init__( self, environment: Incomplete | None = None, diff --git a/stubs/braintree/braintree/credentials_parser.pyi b/stubs/braintree/braintree/credentials_parser.pyi index 0eddad1c9cec..d3cef256101b 100644 --- a/stubs/braintree/braintree/credentials_parser.pyi +++ b/stubs/braintree/braintree/credentials_parser.pyi @@ -1,19 +1,18 @@ from _typeshed import Incomplete -from typing import Any from braintree.environment import Environment as Environment from braintree.exceptions.configuration_error import ConfigurationError as ConfigurationError class CredentialsParser: - client_id: Any - client_secret: Any - access_token: Any + client_id: Incomplete + client_secret: Incomplete + access_token: Incomplete def __init__( self, client_id: Incomplete | None = None, client_secret: Incomplete | None = None, access_token: Incomplete | None = None ) -> None: ... - environment: Any + environment: Incomplete def parse_client_credentials(self) -> None: ... - merchant_id: Any + merchant_id: Incomplete def parse_access_token(self) -> None: ... def get_environment(self, credential): ... def get_merchant_id(self, credential): ... diff --git a/stubs/braintree/braintree/credit_card.pyi b/stubs/braintree/braintree/credit_card.pyi index 67ac672070f9..e8d700534808 100644 --- a/stubs/braintree/braintree/credit_card.pyi +++ b/stubs/braintree/braintree/credit_card.pyi @@ -1,11 +1,11 @@ from _typeshed import Incomplete from enum import Enum -from typing import Any from braintree.address import Address as Address from braintree.configuration import Configuration as Configuration from braintree.credit_card_verification import CreditCardVerification as CreditCardVerification from braintree.resource import Resource as Resource +from braintree.subscription import Subscription class CreditCard(Resource): class CardType: @@ -45,15 +45,15 @@ class CreditCard(Resource): Star = "STAR" Star_Access = "STAR_ACCESS" - Commercial: Any - DurbinRegulated: Any - Debit: Any - Healthcare: Any - CountryOfIssuance: Any - IssuingBank: Any - Payroll: Any - Prepaid: Any - ProductId: Any + Commercial: type[CardTypeIndicator] + DurbinRegulated: type[CardTypeIndicator] + Debit: type[CardTypeIndicator] + Healthcare: type[CardTypeIndicator] + CountryOfIssuance: type[CardTypeIndicator] + IssuingBank: type[CardTypeIndicator] + Payroll: type[CardTypeIndicator] + Prepaid: type[CardTypeIndicator] + ProductId: type[CardTypeIndicator] @staticmethod def create(params: Incomplete | None = None): ... @staticmethod @@ -74,10 +74,10 @@ class CreditCard(Resource): def update_signature(): ... @staticmethod def signature(type): ... - is_expired: Any - billing_address: Any - subscriptions: Any - verification: Any + is_expired = expired + billing_address: Address | None + subscriptions: list[Subscription] + verification: CreditCardVerification def __init__(self, gateway, attributes): ... @property def expiration_date(self): ... diff --git a/stubs/braintree/braintree/credit_card_gateway.pyi b/stubs/braintree/braintree/credit_card_gateway.pyi index 3f0140c4e424..d463ac13dd55 100644 --- a/stubs/braintree/braintree/credit_card_gateway.pyi +++ b/stubs/braintree/braintree/credit_card_gateway.pyi @@ -1,5 +1,4 @@ from _typeshed import Incomplete -from typing import Any from braintree.credit_card import CreditCard as CreditCard from braintree.error_result import ErrorResult as ErrorResult @@ -10,8 +9,8 @@ from braintree.resource_collection import ResourceCollection as ResourceCollecti from braintree.successful_result import SuccessfulResult as SuccessfulResult class CreditCardGateway: - gateway: Any - config: Any + gateway: Incomplete + config: Incomplete def __init__(self, gateway) -> None: ... def create(self, params: Incomplete | None = None): ... def delete(self, credit_card_token): ... diff --git a/stubs/braintree/braintree/credit_card_verification.pyi b/stubs/braintree/braintree/credit_card_verification.pyi index e1672dd7b794..27f5fd0025ec 100644 --- a/stubs/braintree/braintree/credit_card_verification.pyi +++ b/stubs/braintree/braintree/credit_card_verification.pyi @@ -1,4 +1,5 @@ -from typing import Any +from _typeshed import Incomplete +from decimal import Decimal from braintree.attribute_getter import AttributeGetter as AttributeGetter from braintree.configuration import Configuration as Configuration @@ -13,14 +14,14 @@ class CreditCardVerification(AttributeGetter): ProcessorDeclined: str Verified: str - amount: Any - currency_iso_code: Any - processor_response_code: Any - processor_response_text: Any - network_response_code: Any - network_response_text: Any - risk_data: Any - three_d_secure_info: Any + amount: Decimal | None + currency_iso_code: Incomplete + processor_response_code: Incomplete + processor_response_text: Incomplete + network_response_code: Incomplete + network_response_text: Incomplete + risk_data: RiskData | None + three_d_secure_info: ThreeDSecureInfo | None def __init__(self, gateway, attributes) -> None: ... @staticmethod def find(verification_id): ... diff --git a/stubs/braintree/braintree/credit_card_verification_gateway.pyi b/stubs/braintree/braintree/credit_card_verification_gateway.pyi index 737cf19d8975..dc782936ccfe 100644 --- a/stubs/braintree/braintree/credit_card_verification_gateway.pyi +++ b/stubs/braintree/braintree/credit_card_verification_gateway.pyi @@ -1,4 +1,4 @@ -from typing import Any +from _typeshed import Incomplete from braintree.credit_card_verification import CreditCardVerification as CreditCardVerification from braintree.credit_card_verification_search import CreditCardVerificationSearch as CreditCardVerificationSearch @@ -9,8 +9,8 @@ from braintree.resource_collection import ResourceCollection as ResourceCollecti from braintree.successful_result import SuccessfulResult as SuccessfulResult class CreditCardVerificationGateway: - gateway: Any - config: Any + gateway: Incomplete + config: Incomplete def __init__(self, gateway) -> None: ... def find(self, verification_id): ... def search(self, *query): ... diff --git a/stubs/braintree/braintree/credit_card_verification_search.pyi b/stubs/braintree/braintree/credit_card_verification_search.pyi index 4036aaddbdca..dd2cd957edc2 100644 --- a/stubs/braintree/braintree/credit_card_verification_search.pyi +++ b/stubs/braintree/braintree/credit_card_verification_search.pyi @@ -1,20 +1,18 @@ -from typing import Any - from braintree.credit_card import CreditCard as CreditCard from braintree.credit_card_verification import CreditCardVerification as CreditCardVerification from braintree.search import Search as Search from braintree.util import Constants as Constants class CreditCardVerificationSearch: - credit_card_cardholder_name: Any - id: Any - credit_card_expiration_date: Any - credit_card_number: Any - credit_card_card_type: Any - ids: Any - created_at: Any - status: Any - billing_postal_code: Any - customer_email: Any - customer_id: Any - payment_method_token: Any + credit_card_cardholder_name: Search.TextNodeBuilder + id: Search.TextNodeBuilder + credit_card_expiration_date: Search.EqualityNodeBuilder + credit_card_number: Search.PartialMatchNodeBuilder + credit_card_card_type: Search.MultipleValueNodeBuilder + ids: Search.MultipleValueNodeBuilder + created_at: Search.RangeNodeBuilder + status: Search.MultipleValueNodeBuilder + billing_postal_code: Search.TextNodeBuilder + customer_email: Search.TextNodeBuilder + customer_id: Search.TextNodeBuilder + payment_method_token: Search.TextNodeBuilder diff --git a/stubs/braintree/braintree/customer.pyi b/stubs/braintree/braintree/customer.pyi index 25bbe139d59b..acf01efd3cc4 100644 --- a/stubs/braintree/braintree/customer.pyi +++ b/stubs/braintree/braintree/customer.pyi @@ -1,5 +1,4 @@ from _typeshed import Incomplete -from typing import Any from braintree.address import Address as Address from braintree.amex_express_checkout_card import AmexExpressCheckoutCard as AmexExpressCheckoutCard @@ -39,17 +38,30 @@ class Customer(Resource): def create_signature(): ... @staticmethod def update_signature(): ... - payment_methods: Any - credit_cards: Any - addresses: Any - paypal_accounts: Any - apple_pay_cards: Any - android_pay_cards: Any - amex_express_checkout_cards: Any - europe_bank_accounts: Any - venmo_accounts: Any - us_bank_accounts: Any - visa_checkout_cards: Any - masterpass_cards: Any - samsung_pay_cards: Any + payment_methods: list[ + CreditCard + | Address + | PayPalAccount + | ApplePayCard + | AndroidPayCard + | AmexExpressCheckoutCard + | EuropeBankAccount + | VenmoAccount + | UsBankAccount + | VisaCheckoutCard + | MasterpassCard + | SamsungPayCard + ] + credit_cards: list[CreditCard] + addresses: list[Address] + paypal_accounts: list[PayPalAccount] + apple_pay_cards: list[ApplePayCard] + android_pay_cards: list[AndroidPayCard] + amex_express_checkout_cards: list[AmexExpressCheckoutCard] + europe_bank_accounts: list[EuropeBankAccount] + venmo_accounts: list[VenmoAccount] + us_bank_accounts: list[UsBankAccount] + visa_checkout_cards: list[VisaCheckoutCard] + masterpass_cards: list[MasterpassCard] + samsung_pay_cards: list[SamsungPayCard] def __init__(self, gateway, attributes) -> None: ... diff --git a/stubs/braintree/braintree/customer_gateway.pyi b/stubs/braintree/braintree/customer_gateway.pyi index 3e24ca6951ac..ef37e11ca8ef 100644 --- a/stubs/braintree/braintree/customer_gateway.pyi +++ b/stubs/braintree/braintree/customer_gateway.pyi @@ -1,5 +1,4 @@ from _typeshed import Incomplete -from typing import Any from braintree.customer import Customer as Customer from braintree.error_result import ErrorResult as ErrorResult @@ -10,8 +9,8 @@ from braintree.resource_collection import ResourceCollection as ResourceCollecti from braintree.successful_result import SuccessfulResult as SuccessfulResult class CustomerGateway: - gateway: Any - config: Any + gateway: Incomplete + config: Incomplete def __init__(self, gateway) -> None: ... def all(self): ... def create(self, params: Incomplete | None = None): ... diff --git a/stubs/braintree/braintree/customer_search.pyi b/stubs/braintree/braintree/customer_search.pyi index a55ecf7846ed..e6845a80a3d9 100644 --- a/stubs/braintree/braintree/customer_search.pyi +++ b/stubs/braintree/braintree/customer_search.pyi @@ -1,29 +1,27 @@ -from typing import Any - from braintree.search import Search as Search class CustomerSearch: - address_extended_address: Any - address_first_name: Any - address_last_name: Any - address_locality: Any - address_postal_code: Any - address_region: Any - address_street_address: Any - address_country_name: Any - cardholder_name: Any - company: Any - created_at: Any - credit_card_expiration_date: Any - credit_card_number: Any - email: Any - fax: Any - first_name: Any - id: Any - ids: Any - last_name: Any - payment_method_token: Any - payment_method_token_with_duplicates: Any - phone: Any - website: Any - paypal_account_email: Any + address_extended_address: Search.TextNodeBuilder + address_first_name: Search.TextNodeBuilder + address_last_name: Search.TextNodeBuilder + address_locality: Search.TextNodeBuilder + address_postal_code: Search.TextNodeBuilder + address_region: Search.TextNodeBuilder + address_street_address: Search.TextNodeBuilder + address_country_name: Search.TextNodeBuilder + cardholder_name: Search.TextNodeBuilder + company: Search.TextNodeBuilder + created_at: Search.RangeNodeBuilder + credit_card_expiration_date: Search.EqualityNodeBuilder + credit_card_number: Search.TextNodeBuilder + email: Search.TextNodeBuilder + fax: Search.TextNodeBuilder + first_name: Search.TextNodeBuilder + id: Search.TextNodeBuilder + ids: Search.MultipleValueNodeBuilder + last_name: Search.TextNodeBuilder + payment_method_token: Search.TextNodeBuilder + payment_method_token_with_duplicates: Search.IsNodeBuilder + phone: Search.TextNodeBuilder + website: Search.TextNodeBuilder + paypal_account_email: Search.TextNodeBuilder diff --git a/stubs/braintree/braintree/disbursement.pyi b/stubs/braintree/braintree/disbursement.pyi index e167f4d36106..e769c87f34be 100644 --- a/stubs/braintree/braintree/disbursement.pyi +++ b/stubs/braintree/braintree/disbursement.pyi @@ -1,4 +1,4 @@ -from typing import Any +from decimal import Decimal from braintree.merchant_account import MerchantAccount as MerchantAccount from braintree.resource import Resource as Resource @@ -9,8 +9,8 @@ class Disbursement(Resource): Credit: str Debit: str - amount: Any - merchant_account: Any + amount: Decimal + merchant_account: MerchantAccount def __init__(self, gateway, attributes) -> None: ... def transactions(self): ... def is_credit(self): ... diff --git a/stubs/braintree/braintree/disbursement_detail.pyi b/stubs/braintree/braintree/disbursement_detail.pyi index 7badea3a87fe..c917583b652c 100644 --- a/stubs/braintree/braintree/disbursement_detail.pyi +++ b/stubs/braintree/braintree/disbursement_detail.pyi @@ -1,10 +1,10 @@ -from typing import Any +from decimal import Decimal from braintree.attribute_getter import AttributeGetter as AttributeGetter class DisbursementDetail(AttributeGetter): - settlement_amount: Any - settlement_currency_exchange_rate: Any + settlement_amount: Decimal | None + settlement_currency_exchange_rate: Decimal | None def __init__(self, attributes) -> None: ... @property def is_valid(self): ... diff --git a/stubs/braintree/braintree/discount_gateway.pyi b/stubs/braintree/braintree/discount_gateway.pyi index 45203a328f29..1c6410540e2d 100644 --- a/stubs/braintree/braintree/discount_gateway.pyi +++ b/stubs/braintree/braintree/discount_gateway.pyi @@ -1,10 +1,10 @@ -from typing import Any +from _typeshed import Incomplete from braintree.discount import Discount as Discount from braintree.resource_collection import ResourceCollection as ResourceCollection class DiscountGateway: - gateway: Any - config: Any + gateway: Incomplete + config: Incomplete def __init__(self, gateway) -> None: ... def all(self): ... diff --git a/stubs/braintree/braintree/dispute.pyi b/stubs/braintree/braintree/dispute.pyi index b600b8e40a3f..bdc99af9743a 100644 --- a/stubs/braintree/braintree/dispute.pyi +++ b/stubs/braintree/braintree/dispute.pyi @@ -1,4 +1,5 @@ -from typing import Any +from _typeshed import Incomplete +from decimal import Decimal from braintree.attribute_getter import AttributeGetter as AttributeGetter from braintree.configuration import Configuration as Configuration @@ -66,13 +67,15 @@ class Dispute(AttributeGetter): def remove_evidence(id, evidence_id): ... @staticmethod def search(*query): ... - amount: Any - amount_disputed: Any - amount_won: Any - transaction_details: Any - transaction: Any - evidence: Any - paypal_messages: Any - status_history: Any - forwarded_comments: Any + amount: Decimal | None + amount_disputed: Decimal | None + amount_won: Decimal | None + protection_level: Incomplete + transaction_details: TransactionDetails + transaction = transaction_details + evidence: list[DisputeEvidence] | None + paypal_messages: list[DisputePayPalMessage] | None + status_history: list[DisputeStatusHistory] | None + processor_comments: Incomplete + forwarded_comments: processor_comments def __init__(self, attributes) -> None: ... diff --git a/stubs/braintree/braintree/dispute_gateway.pyi b/stubs/braintree/braintree/dispute_gateway.pyi index 72ce19c9091b..366c178ec092 100644 --- a/stubs/braintree/braintree/dispute_gateway.pyi +++ b/stubs/braintree/braintree/dispute_gateway.pyi @@ -1,4 +1,4 @@ -from typing import Any +from _typeshed import Incomplete from braintree.dispute import Dispute as Dispute from braintree.dispute_details import DisputeEvidence as DisputeEvidence @@ -10,8 +10,8 @@ from braintree.resource_collection import ResourceCollection as ResourceCollecti from braintree.successful_result import SuccessfulResult as SuccessfulResult class DisputeGateway: - gateway: Any - config: Any + gateway: Incomplete + config: Incomplete def __init__(self, gateway) -> None: ... def accept(self, dispute_id): ... def add_file_evidence(self, dispute_id, document_upload_id_or_request): ... @@ -19,5 +19,5 @@ class DisputeGateway: def finalize(self, dispute_id): ... def find(self, dispute_id): ... def remove_evidence(self, dispute_id, evidence_id): ... - search_criteria: Any + search_criteria: dict[Incomplete, Incomplete] def search(self, *query): ... diff --git a/stubs/braintree/braintree/dispute_search.pyi b/stubs/braintree/braintree/dispute_search.pyi index 9de2d63457dc..810e5294d748 100644 --- a/stubs/braintree/braintree/dispute_search.pyi +++ b/stubs/braintree/braintree/dispute_search.pyi @@ -1,25 +1,23 @@ -from typing import Any - from braintree.search import Search as Search class DisputeSearch: - amount_disputed: Any - 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 - reference_number: Any - reply_by_date: Any - status: Any - transaction_id: Any - transaction_source: Any + amount_disputed: Search.RangeNodeBuilder + amount_won: Search.RangeNodeBuilder + case_number: Search.TextNodeBuilder + chargeback_protection_level: Search.MultipleValueNodeBuilder + protection_level: Search.MultipleValueNodeBuilder + customer_id: Search.TextNodeBuilder + disbursement_date: Search.RangeNodeBuilder + effective_date: Search.RangeNodeBuilder + id: Search.TextNodeBuilder + kind: Search.MultipleValueNodeBuilder + merchant_account_id: Search.MultipleValueNodeBuilder + pre_dispute_program: Search.MultipleValueNodeBuilder + reason: Search.MultipleValueNodeBuilder + reason_code: Search.MultipleValueNodeBuilder + received_date: Search.RangeNodeBuilder + reference_number: Search.TextNodeBuilder + reply_by_date: Search.RangeNodeBuilder + status: Search.MultipleValueNodeBuilder + transaction_id: Search.TextNodeBuilder + transaction_source: Search.MultipleValueNodeBuilder diff --git a/stubs/braintree/braintree/document_upload_gateway.pyi b/stubs/braintree/braintree/document_upload_gateway.pyi index 9b2c1adfbad7..c2e4f2710792 100644 --- a/stubs/braintree/braintree/document_upload_gateway.pyi +++ b/stubs/braintree/braintree/document_upload_gateway.pyi @@ -1,5 +1,4 @@ from _typeshed import Incomplete -from typing import Any from braintree.document_upload import DocumentUpload as DocumentUpload from braintree.error_result import ErrorResult as ErrorResult @@ -7,7 +6,7 @@ from braintree.resource import Resource as Resource from braintree.successful_result import SuccessfulResult as SuccessfulResult class DocumentUploadGateway: - gateway: Any - config: Any + gateway: Incomplete + config: Incomplete def __init__(self, gateway) -> None: ... def create(self, params: Incomplete | None = None): ... diff --git a/stubs/braintree/braintree/error_result.pyi b/stubs/braintree/braintree/error_result.pyi index 6869df0dcbc7..86dc7c4a8419 100644 --- a/stubs/braintree/braintree/error_result.pyi +++ b/stubs/braintree/braintree/error_result.pyi @@ -1,16 +1,19 @@ -from typing import Any +from _typeshed import Incomplete from braintree.credit_card_verification import CreditCardVerification as CreditCardVerification from braintree.errors import Errors as Errors +from braintree.plan import Plan +from braintree.subscription import Subscription +from braintree.transaction import Transaction class ErrorResult: - params: Any - errors: Any - message: Any - credit_card_verification: Any - transaction: Any - subscription: Any - merchant_account: Any + params: Incomplete + errors: Errors + message: Incomplete + credit_card_verification: CreditCardVerification | None + transaction: Transaction + subscription: Subscription + merchant_account: Plan def __init__(self, gateway, attributes) -> None: ... @property def is_success(self): ... diff --git a/stubs/braintree/braintree/errors.pyi b/stubs/braintree/braintree/errors.pyi index 071bdba64d45..c2c27abc5d74 100644 --- a/stubs/braintree/braintree/errors.pyi +++ b/stubs/braintree/braintree/errors.pyi @@ -1,10 +1,8 @@ -from typing import Any - from braintree.validation_error_collection import ValidationErrorCollection as ValidationErrorCollection class Errors: - errors: Any - size: Any + errors: ValidationErrorCollection + size = errors.deep_size def __init__(self, data) -> None: ... @property def deep_errors(self): ... diff --git a/stubs/braintree/braintree/granted_payment_instrument_update.pyi b/stubs/braintree/braintree/granted_payment_instrument_update.pyi index 73219712dcf3..9a0f97ff8d4d 100644 --- a/stubs/braintree/braintree/granted_payment_instrument_update.pyi +++ b/stubs/braintree/braintree/granted_payment_instrument_update.pyi @@ -1,7 +1,7 @@ -from typing import Any +from _typeshed import Incomplete from braintree.resource import Resource as Resource class GrantedPaymentInstrumentUpdate(Resource): - payment_method_nonce: Any + payment_method_nonce: Incomplete def __init__(self, gateway, attributes) -> None: ... diff --git a/stubs/braintree/braintree/ids_search.pyi b/stubs/braintree/braintree/ids_search.pyi index db017bb7e016..ebc548aa4730 100644 --- a/stubs/braintree/braintree/ids_search.pyi +++ b/stubs/braintree/braintree/ids_search.pyi @@ -1,6 +1,4 @@ -from typing import Any - from braintree.search import Search as Search class IdsSearch: - ids: Any + ids: Search.MultipleValueNodeBuilder diff --git a/stubs/braintree/braintree/local_payment_completed.pyi b/stubs/braintree/braintree/local_payment_completed.pyi index ff8e4ca887ae..d233775e4dd0 100644 --- a/stubs/braintree/braintree/local_payment_completed.pyi +++ b/stubs/braintree/braintree/local_payment_completed.pyi @@ -1,8 +1,6 @@ -from typing import Any - from braintree.resource import Resource as Resource from braintree.transaction import Transaction as Transaction class LocalPaymentCompleted(Resource): - transaction: Any + transaction: Transaction def __init__(self, gateway, attributes) -> None: ... diff --git a/stubs/braintree/braintree/masterpass_card.pyi b/stubs/braintree/braintree/masterpass_card.pyi index 2921f9b87ee7..c7ef1b088747 100644 --- a/stubs/braintree/braintree/masterpass_card.pyi +++ b/stubs/braintree/braintree/masterpass_card.pyi @@ -1,11 +1,10 @@ -from typing import Any - from braintree.address import Address as Address from braintree.resource import Resource as Resource +from braintree.subscription import Subscription class MasterpassCard(Resource): - billing_address: Any - subscriptions: Any + billing_address: Address | None + subscriptions: list[Subscription] def __init__(self, gateway, attributes) -> None: ... @property def expiration_date(self): ... diff --git a/stubs/braintree/braintree/merchant.pyi b/stubs/braintree/braintree/merchant.pyi index 4a80756aa79d..78d6c307241a 100644 --- a/stubs/braintree/braintree/merchant.pyi +++ b/stubs/braintree/braintree/merchant.pyi @@ -1,8 +1,6 @@ -from typing import Any - from braintree.merchant_account import MerchantAccount as MerchantAccount from braintree.resource import Resource as Resource class Merchant(Resource): - merchant_accounts: Any + merchant_accounts: list[MerchantAccount] def __init__(self, gateway, attributes) -> None: ... diff --git a/stubs/braintree/braintree/merchant_account/address_details.pyi b/stubs/braintree/braintree/merchant_account/address_details.pyi index 3a3a9aacd8f9..7cb828ef887b 100644 --- a/stubs/braintree/braintree/merchant_account/address_details.pyi +++ b/stubs/braintree/braintree/merchant_account/address_details.pyi @@ -1,7 +1,7 @@ -from typing import Any +from typing import ClassVar from braintree.attribute_getter import AttributeGetter as AttributeGetter class AddressDetails(AttributeGetter): - detail_list: Any + detail_list: ClassVar[list[str]] def __init__(self, attributes) -> None: ... diff --git a/stubs/braintree/braintree/merchant_account/business_details.pyi b/stubs/braintree/braintree/merchant_account/business_details.pyi index d5800497d1a3..db3d6b68fa4d 100644 --- a/stubs/braintree/braintree/merchant_account/business_details.pyi +++ b/stubs/braintree/braintree/merchant_account/business_details.pyi @@ -1,9 +1,9 @@ -from typing import Any +from typing import ClassVar from braintree.attribute_getter import AttributeGetter as AttributeGetter from braintree.merchant_account.address_details import AddressDetails as AddressDetails class BusinessDetails(AttributeGetter): - detail_list: Any - address_details: Any + detail_list: ClassVar[list[str]] + address_details: AddressDetails def __init__(self, attributes) -> None: ... diff --git a/stubs/braintree/braintree/merchant_account/funding_details.pyi b/stubs/braintree/braintree/merchant_account/funding_details.pyi index 220e767f35d4..0ad644981444 100644 --- a/stubs/braintree/braintree/merchant_account/funding_details.pyi +++ b/stubs/braintree/braintree/merchant_account/funding_details.pyi @@ -1,7 +1,7 @@ -from typing import Any +from typing import ClassVar from braintree.attribute_getter import AttributeGetter as AttributeGetter class FundingDetails(AttributeGetter): - detail_list: Any + detail_list: ClassVar[list[str]] def __init__(self, attributes) -> None: ... diff --git a/stubs/braintree/braintree/merchant_account/individual_details.pyi b/stubs/braintree/braintree/merchant_account/individual_details.pyi index 1f07477ace62..d23785fe1d7d 100644 --- a/stubs/braintree/braintree/merchant_account/individual_details.pyi +++ b/stubs/braintree/braintree/merchant_account/individual_details.pyi @@ -1,9 +1,9 @@ -from typing import Any +from typing import ClassVar from braintree.attribute_getter import AttributeGetter as AttributeGetter from braintree.merchant_account.address_details import AddressDetails as AddressDetails class IndividualDetails(AttributeGetter): - detail_list: Any - address_details: Any + detail_list: ClassVar[list[str]] + address_details: AddressDetails def __init__(self, attributes) -> None: ... diff --git a/stubs/braintree/braintree/merchant_account/merchant_account.pyi b/stubs/braintree/braintree/merchant_account/merchant_account.pyi index 5c2c776bc369..34e31d2368a8 100644 --- a/stubs/braintree/braintree/merchant_account/merchant_account.pyi +++ b/stubs/braintree/braintree/merchant_account/merchant_account.pyi @@ -1,5 +1,4 @@ from _typeshed import Incomplete -from typing import Any from braintree.configuration import Configuration as Configuration from braintree.merchant_account import ( @@ -20,11 +19,11 @@ class MerchantAccount(Resource): Email: str MobilePhone: str - FundingDestinations: Any - individual_details: Any - business_details: Any - funding_details: Any - master_merchant_account: Any + FundingDestinations: type[FundingDestination] + individual_details: IndividualDetails + business_details: BusinessDetails + funding_details: FundingDetails + master_merchant_account: MerchantAccount def __init__(self, gateway, attributes) -> None: ... @staticmethod def create(params: Incomplete | None = None): ... diff --git a/stubs/braintree/braintree/merchant_account_gateway.pyi b/stubs/braintree/braintree/merchant_account_gateway.pyi index 73b0af87227a..4558233c5573 100644 --- a/stubs/braintree/braintree/merchant_account_gateway.pyi +++ b/stubs/braintree/braintree/merchant_account_gateway.pyi @@ -1,5 +1,4 @@ from _typeshed import Incomplete -from typing import Any from braintree.error_result import ErrorResult as ErrorResult from braintree.exceptions.not_found_error import NotFoundError as NotFoundError @@ -11,8 +10,8 @@ from braintree.resource_collection import ResourceCollection as ResourceCollecti from braintree.successful_result import SuccessfulResult as SuccessfulResult class MerchantAccountGateway: - gateway: Any - config: Any + gateway: Incomplete + config: Incomplete def __init__(self, gateway) -> None: ... def create(self, params: Incomplete | None = None): ... def update(self, merchant_account_id, params: Incomplete | None = None): ... diff --git a/stubs/braintree/braintree/merchant_gateway.pyi b/stubs/braintree/braintree/merchant_gateway.pyi index efbbaaf4325d..dfa55ebad28f 100644 --- a/stubs/braintree/braintree/merchant_gateway.pyi +++ b/stubs/braintree/braintree/merchant_gateway.pyi @@ -1,4 +1,4 @@ -from typing import Any +from _typeshed import Incomplete from braintree.error_result import ErrorResult as ErrorResult from braintree.exceptions.not_found_error import NotFoundError as NotFoundError @@ -9,7 +9,7 @@ from braintree.resource_collection import ResourceCollection as ResourceCollecti from braintree.successful_result import SuccessfulResult as SuccessfulResult class MerchantGateway: - gateway: Any - config: Any + gateway: Incomplete + config: Incomplete def __init__(self, gateway) -> None: ... def create(self, params): ... diff --git a/stubs/braintree/braintree/modification.pyi b/stubs/braintree/braintree/modification.pyi index e55fa128b621..ed9e701e6910 100644 --- a/stubs/braintree/braintree/modification.pyi +++ b/stubs/braintree/braintree/modification.pyi @@ -1,7 +1,7 @@ -from typing import Any +from decimal import Decimal from braintree.resource import Resource as Resource class Modification(Resource): - amount: Any + amount: Decimal def __init__(self, gateway, attributes) -> None: ... diff --git a/stubs/braintree/braintree/oauth_gateway.pyi b/stubs/braintree/braintree/oauth_gateway.pyi index 096dfbc72763..8c4dca623ad8 100644 --- a/stubs/braintree/braintree/oauth_gateway.pyi +++ b/stubs/braintree/braintree/oauth_gateway.pyi @@ -1,4 +1,4 @@ -from typing import Any +from _typeshed import Incomplete from braintree.error_result import ErrorResult as ErrorResult from braintree.exceptions.not_found_error import NotFoundError as NotFoundError @@ -6,8 +6,8 @@ from braintree.oauth_credentials import OAuthCredentials as OAuthCredentials from braintree.successful_result import SuccessfulResult as SuccessfulResult class OAuthGateway: - gateway: Any - config: Any + gateway: Incomplete + config: Incomplete def __init__(self, gateway) -> None: ... def create_token_from_code(self, params): ... def create_token_from_refresh_token(self, params): ... diff --git a/stubs/braintree/braintree/package_details.pyi b/stubs/braintree/braintree/package_details.pyi index f1347b8fdc54..f5388fc5bf32 100644 --- a/stubs/braintree/braintree/package_details.pyi +++ b/stubs/braintree/braintree/package_details.pyi @@ -1,7 +1,7 @@ -from _typeshed import Incomplete +from typing import ClassVar from braintree.attribute_getter import AttributeGetter as AttributeGetter class PackageDetails(AttributeGetter): - detail_list: Incomplete + detail_list: ClassVar[list[str]] def __init__(self, attributes) -> None: ... diff --git a/stubs/braintree/braintree/paginated_collection.pyi b/stubs/braintree/braintree/paginated_collection.pyi index 3e2182f6de5f..08cb89880d6d 100644 --- a/stubs/braintree/braintree/paginated_collection.pyi +++ b/stubs/braintree/braintree/paginated_collection.pyi @@ -1,8 +1,8 @@ +from _typeshed import Incomplete from collections.abc import Generator -from typing import Any class PaginatedCollection: def __init__(self, method) -> None: ... @property - def items(self) -> Generator[Any, None, None]: ... + def items(self) -> Generator[Incomplete, None, None]: ... def __iter__(self): ... diff --git a/stubs/braintree/braintree/paginated_result.pyi b/stubs/braintree/braintree/paginated_result.pyi index a7bbb385ec7d..3511f8708d6e 100644 --- a/stubs/braintree/braintree/paginated_result.pyi +++ b/stubs/braintree/braintree/paginated_result.pyi @@ -1,7 +1,7 @@ -from typing import Any +from _typeshed import Incomplete class PaginatedResult: - total_items: Any - page_size: Any - current_page: Any + total_items: Incomplete + page_size: Incomplete + current_page: Incomplete def __init__(self, total_items, page_size, current_page) -> None: ... diff --git a/stubs/braintree/braintree/partner_merchant.pyi b/stubs/braintree/braintree/partner_merchant.pyi index 06ea8c9f162c..6be64491206e 100644 --- a/stubs/braintree/braintree/partner_merchant.pyi +++ b/stubs/braintree/braintree/partner_merchant.pyi @@ -1,12 +1,12 @@ -from typing import Any +from _typeshed import Incomplete from braintree.configuration import Configuration as Configuration from braintree.resource import Resource as Resource class PartnerMerchant(Resource): - partner_merchant_id: Any - private_key: Any - public_key: Any - merchant_public_id: Any - client_side_encryption_key: Any + partner_merchant_id: Incomplete + private_key: Incomplete + public_key: Incomplete + merchant_public_id: Incomplete + client_side_encryption_key: Incomplete def __init__(self, gateway, attributes) -> None: ... diff --git a/stubs/braintree/braintree/payment_method_gateway.pyi b/stubs/braintree/braintree/payment_method_gateway.pyi index 4eec27e86a74..2258ef804c98 100644 --- a/stubs/braintree/braintree/payment_method_gateway.pyi +++ b/stubs/braintree/braintree/payment_method_gateway.pyi @@ -1,5 +1,4 @@ from _typeshed import Incomplete -from typing import Any from braintree.amex_express_checkout_card import AmexExpressCheckoutCard as AmexExpressCheckoutCard from braintree.android_pay_card import AndroidPayCard as AndroidPayCard @@ -24,13 +23,13 @@ from braintree.venmo_account import VenmoAccount as VenmoAccount from braintree.visa_checkout_card import VisaCheckoutCard as VisaCheckoutCard class PaymentMethodGateway: - gateway: Any - config: Any + gateway: Incomplete + config: Incomplete def __init__(self, gateway) -> None: ... def create(self, params: Incomplete | None = None): ... def find(self, payment_method_token): ... def update(self, payment_method_token, params): ... def delete(self, payment_method_token, options: Incomplete | None = None): ... - options: Any + options: dict[str, Incomplete] def grant(self, payment_method_token, options: Incomplete | None = None): ... def revoke(self, payment_method_token): ... diff --git a/stubs/braintree/braintree/payment_method_nonce.pyi b/stubs/braintree/braintree/payment_method_nonce.pyi index 80944a7aecf7..1969b9691c76 100644 --- a/stubs/braintree/braintree/payment_method_nonce.pyi +++ b/stubs/braintree/braintree/payment_method_nonce.pyi @@ -1,4 +1,4 @@ -from typing import Any +from _typeshed import Incomplete from braintree.bin_data import BinData as BinData from braintree.configuration import Configuration as Configuration @@ -10,7 +10,7 @@ class PaymentMethodNonce(Resource): def create(payment_method_token, params={}): ... @staticmethod def find(payment_method_nonce): ... - three_d_secure_info: Any - authentication_insight: Any - bin_data: Any + three_d_secure_info: ThreeDSecureInfo + authentication_insight: Incomplete + bin_data: BinData def __init__(self, gateway, attributes) -> None: ... diff --git a/stubs/braintree/braintree/payment_method_nonce_gateway.pyi b/stubs/braintree/braintree/payment_method_nonce_gateway.pyi index a8bd929d4dc6..e7a01de60bca 100644 --- a/stubs/braintree/braintree/payment_method_nonce_gateway.pyi +++ b/stubs/braintree/braintree/payment_method_nonce_gateway.pyi @@ -1,4 +1,4 @@ -from typing import Any +from _typeshed import Incomplete from braintree.error_result import ErrorResult as ErrorResult from braintree.exceptions.not_found_error import NotFoundError as NotFoundError @@ -8,8 +8,8 @@ from braintree.resource_collection import ResourceCollection as ResourceCollecti from braintree.successful_result import SuccessfulResult as SuccessfulResult class PaymentMethodNonceGateway: - gateway: Any - config: Any + gateway: Incomplete + config: Incomplete def __init__(self, gateway) -> None: ... def create(self, payment_method_token, params=...): ... def find(self, payment_method_nonce): ... diff --git a/stubs/braintree/braintree/paypal_account.pyi b/stubs/braintree/braintree/paypal_account.pyi index d46cd89efbad..cd44a1a33e60 100644 --- a/stubs/braintree/braintree/paypal_account.pyi +++ b/stubs/braintree/braintree/paypal_account.pyi @@ -1,8 +1,8 @@ from _typeshed import Incomplete -from typing import Any from braintree.configuration import Configuration as Configuration from braintree.resource import Resource as Resource +from braintree.subscription import Subscription class PayPalAccount(Resource): @staticmethod @@ -13,5 +13,5 @@ class PayPalAccount(Resource): def update(paypal_account_token, params: Incomplete | None = None): ... @staticmethod def signature(): ... - subscriptions: Any + subscriptions: list[Subscription] def __init__(self, gateway, attributes) -> None: ... diff --git a/stubs/braintree/braintree/paypal_account_gateway.pyi b/stubs/braintree/braintree/paypal_account_gateway.pyi index bc89d299e454..8bcf717f455e 100644 --- a/stubs/braintree/braintree/paypal_account_gateway.pyi +++ b/stubs/braintree/braintree/paypal_account_gateway.pyi @@ -1,5 +1,4 @@ from _typeshed import Incomplete -from typing import Any from braintree.error_result import ErrorResult as ErrorResult from braintree.exceptions.not_found_error import NotFoundError as NotFoundError @@ -8,8 +7,8 @@ from braintree.resource import Resource as Resource from braintree.successful_result import SuccessfulResult as SuccessfulResult class PayPalAccountGateway: - gateway: Any - config: Any + gateway: Incomplete + config: Incomplete def __init__(self, gateway) -> None: ... def find(self, paypal_account_token): ... def delete(self, paypal_account_token): ... diff --git a/stubs/braintree/braintree/plan.pyi b/stubs/braintree/braintree/plan.pyi index 1a27e7c29397..8ade51075e2a 100644 --- a/stubs/braintree/braintree/plan.pyi +++ b/stubs/braintree/braintree/plan.pyi @@ -1,5 +1,4 @@ from _typeshed import Incomplete -from typing import Any from braintree.add_on import AddOn as AddOn from braintree.configuration import Configuration as Configuration @@ -9,8 +8,8 @@ from braintree.resource_collection import ResourceCollection as ResourceCollecti from braintree.util.http import Http as Http class Plan(Resource): - add_ons: Any - discounts: Any + add_ons: list[AddOn] + discounts: list[Discount] def __init__(self, gateway, attributes) -> None: ... @staticmethod def all(): ... diff --git a/stubs/braintree/braintree/plan_gateway.pyi b/stubs/braintree/braintree/plan_gateway.pyi index 54dd71e08cdd..6e5a1f4dbcdd 100644 --- a/stubs/braintree/braintree/plan_gateway.pyi +++ b/stubs/braintree/braintree/plan_gateway.pyi @@ -1,5 +1,4 @@ from _typeshed import Incomplete -from typing import Any from braintree.error_result import ErrorResult as ErrorResult from braintree.exceptions.not_found_error import NotFoundError as NotFoundError @@ -9,8 +8,8 @@ from braintree.resource_collection import ResourceCollection as ResourceCollecti from braintree.successful_result import SuccessfulResult as SuccessfulResult class PlanGateway: - gateway: Any - config: Any + gateway: Incomplete + config: Incomplete def __init__(self, gateway) -> None: ... def all(self): ... def create(self, params: Incomplete | None = None): ... diff --git a/stubs/braintree/braintree/resource.pyi b/stubs/braintree/braintree/resource.pyi index 1bda497526d7..b1f89c694eb8 100644 --- a/stubs/braintree/braintree/resource.pyi +++ b/stubs/braintree/braintree/resource.pyi @@ -1,4 +1,4 @@ -from typing import Any +from _typeshed import Incomplete from braintree.attribute_getter import AttributeGetter as AttributeGetter @@ -8,5 +8,5 @@ raw_type = bytes class Resource(AttributeGetter): @staticmethod def verify_keys(params, signature) -> None: ... - gateway: Any + gateway: Incomplete def __init__(self, gateway, attributes) -> None: ... diff --git a/stubs/braintree/braintree/resource_collection.pyi b/stubs/braintree/braintree/resource_collection.pyi index 6028d17f800a..5152e54d8381 100644 --- a/stubs/braintree/braintree/resource_collection.pyi +++ b/stubs/braintree/braintree/resource_collection.pyi @@ -1,5 +1,5 @@ +from _typeshed import Incomplete from collections.abc import Generator -from typing import Any from braintree.exceptions.unexpected_error import UnexpectedError as UnexpectedError @@ -10,7 +10,7 @@ class ResourceCollection: @property def first(self): ... @property - def items(self) -> Generator[Any, None, None]: ... + def items(self) -> Generator[Incomplete, None, None]: ... @property def ids(self): ... def __iter__(self): ... diff --git a/stubs/braintree/braintree/revoked_payment_method_metadata.pyi b/stubs/braintree/braintree/revoked_payment_method_metadata.pyi index 60358ffb5e98..ed4ec5fc853a 100644 --- a/stubs/braintree/braintree/revoked_payment_method_metadata.pyi +++ b/stubs/braintree/braintree/revoked_payment_method_metadata.pyi @@ -1,10 +1,10 @@ -from typing import Any +from _typeshed import Incomplete from braintree.payment_method_parser import parse_payment_method as parse_payment_method from braintree.resource import Resource as Resource class RevokedPaymentMethodMetadata(Resource): - revoked_payment_method: Any - customer_id: Any - token: Any + revoked_payment_method: Incomplete + customer_id: Incomplete + token: Incomplete def __init__(self, gateway, attributes) -> None: ... diff --git a/stubs/braintree/braintree/samsung_pay_card.pyi b/stubs/braintree/braintree/samsung_pay_card.pyi index ce734bb21661..1ad3c329e883 100644 --- a/stubs/braintree/braintree/samsung_pay_card.pyi +++ b/stubs/braintree/braintree/samsung_pay_card.pyi @@ -1,11 +1,10 @@ -from typing import Any - from braintree.address import Address as Address from braintree.resource import Resource as Resource +from braintree.subscription import Subscription class SamsungPayCard(Resource): - billing_address: Any - subscriptions: Any + billing_address: Address | None + subscriptions: list[Subscription] def __init__(self, gateway, attributes) -> None: ... @property def expiration_date(self): ... diff --git a/stubs/braintree/braintree/search.pyi b/stubs/braintree/braintree/search.pyi index 31fa269762b6..8ba8866b11e3 100644 --- a/stubs/braintree/braintree/search.pyi +++ b/stubs/braintree/braintree/search.pyi @@ -1,8 +1,8 @@ -from typing import Any +from _typeshed import Incomplete class Search: class IsNodeBuilder: - name: Any + name: Incomplete def __init__(self, name) -> None: ... def __eq__(self, value): ... def is_equal(self, value): ... @@ -12,7 +12,7 @@ class Search: def is_not_equal(self, value): ... class KeyValueNodeBuilder: - name: Any + name: Incomplete def __init__(self, name) -> None: ... def __eq__(self, value): ... def is_equal(self, value): ... @@ -24,7 +24,7 @@ class Search: def ends_with(self, value): ... class EndsWithNodeBuilder: - name: Any + name: Incomplete def __init__(self, name) -> None: ... def ends_with(self, value): ... @@ -32,14 +32,14 @@ class Search: def contains(self, value): ... class Node: - name: Any - dict: Any + name: Incomplete + dict: Incomplete def __init__(self, name, dict) -> None: ... def to_param(self): ... class MultipleValueNodeBuilder: - name: Any - whitelist: Any + name: Incomplete + whitelist: Incomplete def __init__(self, name, whitelist=[]) -> None: ... def in_list(self, *values): ... def __eq__(self, value): ... @@ -48,7 +48,7 @@ class Search: def __init__(self, name, whitelist=[]) -> None: ... class RangeNodeBuilder: - name: Any + name: Incomplete def __init__(self, name) -> None: ... def __eq__(self, value): ... def is_equal(self, value): ... diff --git a/stubs/braintree/braintree/sepa_direct_debit_account.pyi b/stubs/braintree/braintree/sepa_direct_debit_account.pyi index c23cfb8c1f0e..c81df774254c 100644 --- a/stubs/braintree/braintree/sepa_direct_debit_account.pyi +++ b/stubs/braintree/braintree/sepa_direct_debit_account.pyi @@ -1,12 +1,11 @@ -from _typeshed import Incomplete - from braintree.configuration import Configuration as Configuration from braintree.resource import Resource as Resource +from braintree.subscription import Subscription class SepaDirectDebitAccount(Resource): @staticmethod def find(sepa_direct_debit_account_token): ... @staticmethod def delete(sepa_direct_debit_account_token): ... - subscriptions: Incomplete + subscriptions: list[Subscription] def __init__(self, gateway, attributes) -> None: ... diff --git a/stubs/braintree/braintree/settlement_batch_summary_gateway.pyi b/stubs/braintree/braintree/settlement_batch_summary_gateway.pyi index e1b49c6e9018..86b44f214872 100644 --- a/stubs/braintree/braintree/settlement_batch_summary_gateway.pyi +++ b/stubs/braintree/braintree/settlement_batch_summary_gateway.pyi @@ -1,5 +1,4 @@ from _typeshed import Incomplete -from typing import Any from braintree.error_result import ErrorResult as ErrorResult from braintree.resource import Resource as Resource @@ -7,7 +6,7 @@ from braintree.settlement_batch_summary import SettlementBatchSummary as Settlem from braintree.successful_result import SuccessfulResult as SuccessfulResult class SettlementBatchSummaryGateway: - gateway: Any - config: Any + gateway: Incomplete + config: Incomplete def __init__(self, gateway) -> None: ... def generate(self, settlement_date, group_by_custom_field: Incomplete | None = None): ... diff --git a/stubs/braintree/braintree/signature_service.pyi b/stubs/braintree/braintree/signature_service.pyi index abe5ff8b34de..6565ea31e601 100644 --- a/stubs/braintree/braintree/signature_service.pyi +++ b/stubs/braintree/braintree/signature_service.pyi @@ -1,10 +1,10 @@ -from typing import Any +from _typeshed import Incomplete from braintree.util.crypto import Crypto as Crypto class SignatureService: - private_key: Any - hmac_hash: Any + private_key: Incomplete + hmac_hash: Incomplete def __init__(self, private_key, hashfunc=...) -> None: ... def sign(self, data): ... def hash(self, data): ... diff --git a/stubs/braintree/braintree/status_event.pyi b/stubs/braintree/braintree/status_event.pyi index b4110a2f457e..b114ec3df9a2 100644 --- a/stubs/braintree/braintree/status_event.pyi +++ b/stubs/braintree/braintree/status_event.pyi @@ -1,7 +1,7 @@ -from typing import Any +from decimal import Decimal from braintree.resource import Resource as Resource class StatusEvent(Resource): - amount: Any + amount: Decimal def __init__(self, gateway, attributes) -> None: ... diff --git a/stubs/braintree/braintree/subscription.pyi b/stubs/braintree/braintree/subscription.pyi index 22838779f6b3..1ed8029f061a 100644 --- a/stubs/braintree/braintree/subscription.pyi +++ b/stubs/braintree/braintree/subscription.pyi @@ -1,5 +1,5 @@ from _typeshed import Incomplete -from typing import Any +from decimal import Decimal from braintree.add_on import AddOn as AddOn from braintree.configuration import Configuration as Configuration @@ -47,13 +47,13 @@ class Subscription(Resource): def search(*query): ... @staticmethod def update_signature(): ... - price: Any - balance: Any - next_billing_period_amount: Any - add_ons: Any - descriptor: Any - description: Any - discounts: Any - status_history: Any - transactions: Any + price: Decimal + balance: Decimal + next_billing_period_amount: Decimal + add_ons: list[AddOn] + descriptor: Descriptor + description: Incomplete + discounts: list[Discount] + status_history: list[SubscriptionStatusEvent] + transactions: list[Transaction] def __init__(self, gateway, attributes) -> None: ... diff --git a/stubs/braintree/braintree/subscription_gateway.pyi b/stubs/braintree/braintree/subscription_gateway.pyi index 33a806602c9e..9fe3e31537ad 100644 --- a/stubs/braintree/braintree/subscription_gateway.pyi +++ b/stubs/braintree/braintree/subscription_gateway.pyi @@ -1,5 +1,4 @@ from _typeshed import Incomplete -from typing import Any from braintree.error_result import ErrorResult as ErrorResult from braintree.exceptions.not_found_error import NotFoundError as NotFoundError @@ -10,8 +9,8 @@ from braintree.successful_result import SuccessfulResult as SuccessfulResult from braintree.transaction import Transaction as Transaction class SubscriptionGateway: - gateway: Any - config: Any + gateway: Incomplete + config: Incomplete def __init__(self, gateway) -> None: ... def cancel(self, subscription_id): ... def create(self, params: Incomplete | None = None): ... diff --git a/stubs/braintree/braintree/subscription_search.pyi b/stubs/braintree/braintree/subscription_search.pyi index 43f7759d283f..ccc255b0e355 100644 --- a/stubs/braintree/braintree/subscription_search.pyi +++ b/stubs/braintree/braintree/subscription_search.pyi @@ -1,19 +1,17 @@ -from typing import Any - from braintree import Subscription as Subscription from braintree.search import Search as Search from braintree.util import Constants as Constants class SubscriptionSearch: - billing_cycles_remaining: Any - created_at: Any - days_past_due: Any - id: Any - ids: Any - in_trial_period: Any - merchant_account_id: Any - next_billing_date: Any - plan_id: Any - price: Any - status: Any - transaction_id: Any + billing_cycles_remaining: Search.RangeNodeBuilder + created_at: Search.RangeNodeBuilder + days_past_due: Search.RangeNodeBuilder + id: Search.TextNodeBuilder + ids: Search.MultipleValueNodeBuilder + in_trial_period: Search.MultipleValueNodeBuilder + merchant_account_id: Search.MultipleValueNodeBuilder + next_billing_date: Search.RangeNodeBuilder + plan_id: Search.MultipleValueOrTextNodeBuilder + price: Search.RangeNodeBuilder + status: Search.MultipleValueNodeBuilder + transaction_id: Search.TextNodeBuilder diff --git a/stubs/braintree/braintree/subscription_status_event.pyi b/stubs/braintree/braintree/subscription_status_event.pyi index c649e0512643..42eb59bf4c11 100644 --- a/stubs/braintree/braintree/subscription_status_event.pyi +++ b/stubs/braintree/braintree/subscription_status_event.pyi @@ -1,8 +1,8 @@ -from typing import Any +from decimal import Decimal from braintree.resource import Resource as Resource class SubscriptionStatusEvent(Resource): - balance: Any - price: Any + balance: Decimal + price: Decimal def __init__(self, gateway, attributes) -> None: ... diff --git a/stubs/braintree/braintree/testing_gateway.pyi b/stubs/braintree/braintree/testing_gateway.pyi index 90063ba3acdc..f3cdce8d8bd9 100644 --- a/stubs/braintree/braintree/testing_gateway.pyi +++ b/stubs/braintree/braintree/testing_gateway.pyi @@ -1,12 +1,12 @@ -from typing import Any +from _typeshed import Incomplete from braintree.error_result import ErrorResult as ErrorResult from braintree.successful_result import SuccessfulResult as SuccessfulResult from braintree.transaction import Transaction as Transaction class TestingGateway: - gateway: Any - config: Any + gateway: Incomplete + config: Incomplete def __init__(self, gateway) -> None: ... def make_past_due(self, subscription_id, number_of_days_past_due: int = 1) -> None: ... def escrow_transaction(self, transaction_id) -> None: ... diff --git a/stubs/braintree/braintree/transaction.pyi b/stubs/braintree/braintree/transaction.pyi index b06228e186c1..19d2e4a00b82 100644 --- a/stubs/braintree/braintree/transaction.pyi +++ b/stubs/braintree/braintree/transaction.pyi @@ -1,5 +1,5 @@ from _typeshed import Incomplete -from typing import Any +from decimal import Decimal from braintree.add_on import AddOn as AddOn from braintree.address import Address as Address @@ -21,6 +21,9 @@ from braintree.facilitated_details import FacilitatedDetails as FacilitatedDetai from braintree.facilitator_details import FacilitatorDetails as FacilitatorDetails from braintree.local_payment import LocalPayment as LocalPayment from braintree.masterpass_card import MasterpassCard as MasterpassCard +from braintree.meta_checkout_card import MetaCheckoutCard +from braintree.meta_checkout_token import MetaCheckoutToken +from braintree.package_details import PackageDetails from braintree.payment_instrument_type import PaymentInstrumentType as PaymentInstrumentType from braintree.paypal_account import PayPalAccount as PayPalAccount from braintree.paypal_here import PayPalHere as PayPalHere @@ -28,6 +31,7 @@ from braintree.resource import Resource as Resource from braintree.resource_collection import ResourceCollection as ResourceCollection from braintree.risk_data import RiskData as RiskData from braintree.samsung_pay_card import SamsungPayCard as SamsungPayCard +from braintree.sepa_direct_debit_account import SepaDirectDebitAccount from braintree.status_event import StatusEvent as StatusEvent from braintree.subscription_details import SubscriptionDetails as SubscriptionDetails from braintree.successful_result import SuccessfulResult as SuccessfulResult @@ -146,41 +150,45 @@ class Transaction(Resource): def refund_signature(): ... @staticmethod def submit_for_partial_settlement(transaction_id, amount, params: Incomplete | None = None): ... - amount: Any - tax_amount: Any - discount_amount: Any - shipping_amount: Any - billing_details: Any - credit_card_details: Any - paypal_details: Any - paypal_here_details: Any - local_payment_details: Any - europe_bank_account_details: Any - us_bank_account: Any - apple_pay_details: Any - android_pay_card_details: Any - amex_express_checkout_card_details: Any - venmo_account_details: Any - visa_checkout_card_details: Any - masterpass_card_details: Any - samsung_pay_card_details: Any - sca_exemption_requested: Any - customer_details: Any - shipping_details: Any - add_ons: Any - discounts: Any - status_history: Any - subscription_details: Any - descriptor: Any - disbursement_details: Any - disputes: Any - authorization_adjustments: Any - payment_instrument_type: Any - risk_data: Any - three_d_secure_info: Any - facilitated_details: Any - facilitator_details: Any - network_transaction_id: Any + amount: Decimal + tax_amount: Decimal | None + discount_amount: Decimal | None + shipping_amount: Decimal | None + billing_details: Address + credit_card_details: CreditCard + packages: list[PackageDetails] + paypal_details: PayPalAccount + paypal_here_details: PayPalHere + local_payment_details: LocalPayment + sepa_direct_debit_account_details: SepaDirectDebitAccount + europe_bank_account_details: EuropeBankAccount + us_bank_account: UsBankAccount + apple_pay_details: ApplePayCard + android_pay_card_details: AndroidPayCard + amex_express_checkout_card_details: AmexExpressCheckoutCard + venmo_account_details: VenmoAccount + visa_checkout_card_details: VisaCheckoutCard + masterpass_card_details: MasterpassCard + samsung_pay_card_details: SamsungPayCard + meta_checkout_card_details: MetaCheckoutCard + meta_checkout_token_details: MetaCheckoutToken + sca_exemption_requested: Incomplete + customer_details: Customer + shipping_details: Address + add_ons: list[AddOn] + discounts: list[Discount] + status_history: list[StatusEvent] + subscription_details: SubscriptionDetails + descriptor: Descriptor + disbursement_details: DisbursementDetail + disputes: list[Dispute] + authorization_adjustments: list[AuthorizationAdjustment] + payment_instrument_type: Incomplete + risk_data: RiskData | None + three_d_secure_info: ThreeDSecureInfo | None + facilitated_details: FacilitatedDetails + facilitator_details: FacilitatorDetails + network_transaction_id: Incomplete def __init__(self, gateway, attributes) -> None: ... @property def vault_billing_address(self): ... diff --git a/stubs/braintree/braintree/transaction_details.pyi b/stubs/braintree/braintree/transaction_details.pyi index ceb5b4b19575..451e83ae0864 100644 --- a/stubs/braintree/braintree/transaction_details.pyi +++ b/stubs/braintree/braintree/transaction_details.pyi @@ -1,7 +1,7 @@ -from typing import Any +from decimal import Decimal from braintree.attribute_getter import AttributeGetter as AttributeGetter class TransactionDetails(AttributeGetter): - amount: Any + amount: Decimal | None def __init__(self, attributes) -> None: ... diff --git a/stubs/braintree/braintree/transaction_gateway.pyi b/stubs/braintree/braintree/transaction_gateway.pyi index 90511f68ccf2..7424690a71f5 100644 --- a/stubs/braintree/braintree/transaction_gateway.pyi +++ b/stubs/braintree/braintree/transaction_gateway.pyi @@ -1,5 +1,4 @@ from _typeshed import Incomplete -from typing import Any from braintree.error_result import ErrorResult as ErrorResult from braintree.exceptions.not_found_error import NotFoundError as NotFoundError @@ -10,8 +9,8 @@ from braintree.successful_result import SuccessfulResult as SuccessfulResult from braintree.transaction import Transaction as Transaction class TransactionGateway: - gateway: Any - config: Any + gateway: Incomplete + config: Incomplete def __init__(self, gateway) -> None: ... def adjust_authorization(self, transaction_id, amount): ... def clone_transaction(self, transaction_id, params): ... diff --git a/stubs/braintree/braintree/transaction_line_item_gateway.pyi b/stubs/braintree/braintree/transaction_line_item_gateway.pyi index 8eca1b10cc65..2955d16b122f 100644 --- a/stubs/braintree/braintree/transaction_line_item_gateway.pyi +++ b/stubs/braintree/braintree/transaction_line_item_gateway.pyi @@ -1,4 +1,4 @@ -from typing import Any +from _typeshed import Incomplete from braintree.error_result import ErrorResult as ErrorResult from braintree.exceptions.not_found_error import NotFoundError as NotFoundError @@ -8,7 +8,7 @@ from braintree.resource_collection import ResourceCollection as ResourceCollecti from braintree.transaction_line_item import TransactionLineItem as TransactionLineItem class TransactionLineItemGateway: - gateway: Any - config: Any + gateway: Incomplete + config: Incomplete def __init__(self, gateway) -> None: ... def find_all(self, transaction_id): ... diff --git a/stubs/braintree/braintree/transaction_search.pyi b/stubs/braintree/braintree/transaction_search.pyi index 3c8b8aaa4db2..e555e8b0d44f 100644 --- a/stubs/braintree/braintree/transaction_search.pyi +++ b/stubs/braintree/braintree/transaction_search.pyi @@ -1,77 +1,75 @@ -from typing import Any - from braintree.credit_card import CreditCard as CreditCard from braintree.search import Search as Search from braintree.transaction import Transaction as Transaction from braintree.util import Constants as Constants class TransactionSearch: - billing_first_name: Any - billing_company: Any - billing_country_name: Any - billing_extended_address: Any - billing_last_name: Any - billing_locality: Any - billing_postal_code: Any - billing_region: Any - billing_street_address: Any - credit_card_cardholder_name: Any - currency: Any - customer_company: Any - customer_email: Any - customer_fax: Any - customer_first_name: Any - customer_id: Any - customer_last_name: Any - customer_phone: Any - customer_website: Any - id: Any - order_id: Any - payment_method_token: Any - processor_authorization_code: Any - europe_bank_account_iban: Any - settlement_batch_id: Any - shipping_company: Any - shipping_country_name: Any - shipping_extended_address: Any - shipping_first_name: Any - shipping_last_name: Any - shipping_locality: Any - shipping_postal_code: Any - shipping_region: Any - shipping_street_address: Any - 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 - credit_card_number: Any - user: Any - ids: Any - merchant_account_id: Any - payment_instrument_type: Any - store_ids: Any - created_using: Any - credit_card_card_type: Any - credit_card_customer_location: Any - debit_network: Any - source: Any - status: Any - type: Any - refund: Any - amount: Any - authorization_expired_at: Any - authorized_at: Any - created_at: Any - disbursement_date: Any - dispute_date: Any - failed_at: Any - gateway_rejected_at: Any - processor_declined_at: Any - settled_at: Any - submitted_for_settlement_at: Any - voided_at: Any - ach_return_responses_created_at: Any - reason_code: Any + billing_company: Search.TextNodeBuilder + billing_country_name: Search.TextNodeBuilder + billing_extended_address: Search.TextNodeBuilder + billing_first_name: Search.TextNodeBuilder + billing_last_name: Search.TextNodeBuilder + billing_locality: Search.TextNodeBuilder + billing_postal_code: Search.TextNodeBuilder + billing_region: Search.TextNodeBuilder + billing_street_address: Search.TextNodeBuilder + credit_card_cardholder_name: Search.TextNodeBuilder + currency: Search.TextNodeBuilder + customer_company: Search.TextNodeBuilder + customer_email: Search.TextNodeBuilder + customer_fax: Search.TextNodeBuilder + customer_first_name: Search.TextNodeBuilder + customer_id: Search.TextNodeBuilder + customer_last_name: Search.TextNodeBuilder + customer_phone: Search.TextNodeBuilder + customer_website: Search.TextNodeBuilder + id: Search.TextNodeBuilder + order_id: Search.TextNodeBuilder + payment_method_token: Search.TextNodeBuilder + processor_authorization_code: Search.TextNodeBuilder + europe_bank_account_iban: Search.TextNodeBuilder + settlement_batch_id: Search.TextNodeBuilder + shipping_company: Search.TextNodeBuilder + shipping_country_name: Search.TextNodeBuilder + shipping_extended_address: Search.TextNodeBuilder + shipping_first_name: Search.TextNodeBuilder + shipping_last_name: Search.TextNodeBuilder + shipping_locality: Search.TextNodeBuilder + shipping_postal_code: Search.TextNodeBuilder + shipping_region: Search.TextNodeBuilder + shipping_street_address: Search.TextNodeBuilder + paypal_payer_email: Search.TextNodeBuilder + paypal_payment_id: Search.TextNodeBuilder + paypal_authorization_id: Search.TextNodeBuilder + sepa_debit_paypal_v2_order_id: Search.TextNodeBuilder + credit_card_unique_identifier: Search.TextNodeBuilder + store_id: Search.TextNodeBuilder + credit_card_expiration_date: Search.EqualityNodeBuilder + credit_card_number: Search.PartialMatchNodeBuilder + user: Search.MultipleValueNodeBuilder + ids: Search.MultipleValueNodeBuilder + merchant_account_id: Search.MultipleValueNodeBuilder + payment_instrument_type: Search.MultipleValueNodeBuilder + store_ids: Search.MultipleValueNodeBuilder + created_using: Search.MultipleValueNodeBuilder + credit_card_card_type: Search.MultipleValueNodeBuilder + credit_card_customer_location: Search.MultipleValueNodeBuilder + debit_network: Search.MultipleValueNodeBuilder + source: Search.MultipleValueNodeBuilder + status: Search.MultipleValueNodeBuilder + type: Search.MultipleValueNodeBuilder + refund: Search.KeyValueNodeBuilder + amount: Search.RangeNodeBuilder + authorization_expired_at: Search.RangeNodeBuilder + authorized_at: Search.RangeNodeBuilder + created_at: Search.RangeNodeBuilder + disbursement_date: Search.RangeNodeBuilder + dispute_date: Search.RangeNodeBuilder + failed_at: Search.RangeNodeBuilder + gateway_rejected_at: Search.RangeNodeBuilder + processor_declined_at: Search.RangeNodeBuilder + settled_at: Search.RangeNodeBuilder + submitted_for_settlement_at: Search.RangeNodeBuilder + voided_at: Search.RangeNodeBuilder + ach_return_responses_created_at: Search.RangeNodeBuilder + reason_code: Search.MultipleValueNodeBuilder diff --git a/stubs/braintree/braintree/us_bank_account.pyi b/stubs/braintree/braintree/us_bank_account.pyi index 31d005cd00a9..67bc45f6180c 100644 --- a/stubs/braintree/braintree/us_bank_account.pyi +++ b/stubs/braintree/braintree/us_bank_account.pyi @@ -1,5 +1,3 @@ -from typing import Any - from braintree.ach_mandate import AchMandate as AchMandate from braintree.configuration import Configuration as Configuration from braintree.resource import Resource as Resource @@ -12,6 +10,6 @@ class UsBankAccount(Resource): def sale(token, transactionRequest): ... @staticmethod def signature(): ... - ach_mandate: Any - verifications: Any + ach_mandate: AchMandate | None + verifications: list[UsBankAccountVerification] def __init__(self, gateway, attributes) -> None: ... diff --git a/stubs/braintree/braintree/us_bank_account_gateway.pyi b/stubs/braintree/braintree/us_bank_account_gateway.pyi index 665b5714664b..e79eb9b5a04e 100644 --- a/stubs/braintree/braintree/us_bank_account_gateway.pyi +++ b/stubs/braintree/braintree/us_bank_account_gateway.pyi @@ -1,10 +1,10 @@ -from typing import Any +from _typeshed import Incomplete from braintree.exceptions.not_found_error import NotFoundError as NotFoundError from braintree.us_bank_account import UsBankAccount as UsBankAccount class UsBankAccountGateway: - gateway: Any - config: Any + gateway: Incomplete + config: Incomplete def __init__(self, gateway) -> None: ... def find(self, us_bank_account_token): ... diff --git a/stubs/braintree/braintree/us_bank_account_verification.pyi b/stubs/braintree/braintree/us_bank_account_verification.pyi index fb66d19be17f..bd1c400a9c55 100644 --- a/stubs/braintree/braintree/us_bank_account_verification.pyi +++ b/stubs/braintree/braintree/us_bank_account_verification.pyi @@ -1,7 +1,6 @@ -from typing import Any - from braintree.attribute_getter import AttributeGetter as AttributeGetter from braintree.configuration import Configuration as Configuration +from braintree.us_bank_account import UsBankAccount class UsBankAccountVerification(AttributeGetter): class Status: @@ -21,7 +20,7 @@ class UsBankAccountVerification(AttributeGetter): class VerificationAddOns: CustomerVerification: str - us_bank_account: Any + us_bank_account: UsBankAccount | None def __init__(self, gateway, attributes) -> None: ... @staticmethod def confirm_micro_transfer_amounts(verification_id, amounts): ... diff --git a/stubs/braintree/braintree/us_bank_account_verification_gateway.pyi b/stubs/braintree/braintree/us_bank_account_verification_gateway.pyi index 1f420f984fef..cf2d17c04a14 100644 --- a/stubs/braintree/braintree/us_bank_account_verification_gateway.pyi +++ b/stubs/braintree/braintree/us_bank_account_verification_gateway.pyi @@ -1,4 +1,4 @@ -from typing import Any +from _typeshed import Incomplete from braintree.error_result import ErrorResult as ErrorResult from braintree.exceptions.not_found_error import NotFoundError as NotFoundError @@ -8,8 +8,8 @@ from braintree.us_bank_account_verification import UsBankAccountVerification as from braintree.us_bank_account_verification_search import UsBankAccountVerificationSearch as UsBankAccountVerificationSearch class UsBankAccountVerificationGateway: - gateway: Any - config: Any + gateway: Incomplete + config: Incomplete def __init__(self, gateway) -> None: ... def confirm_micro_transfer_amounts(self, verification_id, amounts): ... def find(self, verification_id): ... diff --git a/stubs/braintree/braintree/us_bank_account_verification_search.pyi b/stubs/braintree/braintree/us_bank_account_verification_search.pyi index 3b937177d22c..9626c18faa8a 100644 --- a/stubs/braintree/braintree/us_bank_account_verification_search.pyi +++ b/stubs/braintree/braintree/us_bank_account_verification_search.pyi @@ -1,20 +1,18 @@ -from typing import Any - from braintree.search import Search as Search from braintree.us_bank_account import UsBankAccount as UsBankAccount from braintree.us_bank_account_verification import UsBankAccountVerification as UsBankAccountVerification from braintree.util import Constants as Constants class UsBankAccountVerificationSearch: - account_holder_name: Any - customer_email: Any - customer_id: Any - id: Any - payment_method_token: Any - routing_number: Any - ids: Any - status: Any - verification_method: Any - created_at: Any - account_type: Any - account_number: Any + account_holder_name: Search.TextNodeBuilder + customer_email: Search.TextNodeBuilder + customer_id: Search.TextNodeBuilder + id: Search.TextNodeBuilder + payment_method_token: Search.TextNodeBuilder + routing_number: Search.TextNodeBuilder + ids: Search.MultipleValueNodeBuilder + status: Search.MultipleValueNodeBuilder + verification_method: Search.MultipleValueNodeBuilder + created_at: Search.RangeNodeBuilder + account_type: Search.EqualityNodeBuilder + account_number: Search.EndsWithNodeBuilder diff --git a/stubs/braintree/braintree/util/generator.pyi b/stubs/braintree/braintree/util/generator.pyi index 5768acfcab7a..fe7d4f3a4d62 100644 --- a/stubs/braintree/braintree/util/generator.pyi +++ b/stubs/braintree/braintree/util/generator.pyi @@ -1,10 +1,10 @@ -from typing import Any +from _typeshed import Incomplete integer_types = int text_type = str binary_type = bytes class Generator: - dict: Any + dict: dict[Incomplete, Incomplete] def __init__(self, dict) -> None: ... def generate(self): ... diff --git a/stubs/braintree/braintree/util/graphql_client.pyi b/stubs/braintree/braintree/util/graphql_client.pyi index 67003af08ac3..3b3fcb912f4a 100644 --- a/stubs/braintree/braintree/util/graphql_client.pyi +++ b/stubs/braintree/braintree/util/graphql_client.pyi @@ -1,5 +1,4 @@ from _typeshed import Incomplete -from typing import Any from braintree.exceptions.authentication_error import AuthenticationError as AuthenticationError from braintree.exceptions.authorization_error import AuthorizationError as AuthorizationError @@ -14,6 +13,6 @@ from braintree.util.http import Http as Http class GraphQLClient(Http): @staticmethod def raise_exception_for_graphql_error(response) -> None: ... - graphql_headers: Any + graphql_headers: dict[str, str] def __init__(self, config: Incomplete | None = None, environment: Incomplete | None = None) -> None: ... def query(self, definition, variables: Incomplete | None = None, operation_name: Incomplete | None = None): ... diff --git a/stubs/braintree/braintree/util/http.pyi b/stubs/braintree/braintree/util/http.pyi index 1092cd250167..7509772cde29 100644 --- a/stubs/braintree/braintree/util/http.pyi +++ b/stubs/braintree/braintree/util/http.pyi @@ -1,5 +1,4 @@ from _typeshed import Incomplete -from typing import Any from braintree import version as version from braintree.environment import Environment as Environment @@ -32,8 +31,8 @@ class Http: def is_error_status(status): ... @staticmethod def raise_exception_from_status(status, message: Incomplete | None = None) -> None: ... - config: Any - environment: Any + config: Incomplete + environment: Incomplete def __init__(self, config, environment: Incomplete | None = None) -> None: ... def post(self, path, params: Incomplete | None = None): ... def delete(self, path): ... diff --git a/stubs/braintree/braintree/util/parser.pyi b/stubs/braintree/braintree/util/parser.pyi index 04f71d120645..f96f84277d6d 100644 --- a/stubs/braintree/braintree/util/parser.pyi +++ b/stubs/braintree/braintree/util/parser.pyi @@ -1,10 +1,10 @@ -from typing import Any +from xml.dom.minidom import Document from braintree.util.datetime_parser import parse_datetime as parse_datetime binary_type = bytes class Parser: - doc: Any + doc: Document def __init__(self, xml) -> None: ... def parse(self): ... diff --git a/stubs/braintree/braintree/validation_error_collection.pyi b/stubs/braintree/braintree/validation_error_collection.pyi index 337dd2c5bcd3..0fef41c61b10 100644 --- a/stubs/braintree/braintree/validation_error_collection.pyi +++ b/stubs/braintree/braintree/validation_error_collection.pyi @@ -1,10 +1,9 @@ from _typeshed import Incomplete -from typing import Any from braintree.validation_error import ValidationError as ValidationError class ValidationErrorCollection: - data: Any + data: dict[str, Incomplete] def __init__(self, data: Incomplete | None = None) -> None: ... @property def deep_errors(self): ... diff --git a/stubs/braintree/braintree/venmo_account.pyi b/stubs/braintree/braintree/venmo_account.pyi index 8d4fe93d9304..bebdc7aa63c2 100644 --- a/stubs/braintree/braintree/venmo_account.pyi +++ b/stubs/braintree/braintree/venmo_account.pyi @@ -1,7 +1,6 @@ -from typing import Any - from braintree.resource import Resource as Resource +from braintree.subscription import Subscription class VenmoAccount(Resource): - subscriptions: Any + subscriptions: list[Subscription] def __init__(self, gateway, attributes) -> None: ... diff --git a/stubs/braintree/braintree/visa_checkout_card.pyi b/stubs/braintree/braintree/visa_checkout_card.pyi index 6e8f37d5cd19..ccff7db27ba0 100644 --- a/stubs/braintree/braintree/visa_checkout_card.pyi +++ b/stubs/braintree/braintree/visa_checkout_card.pyi @@ -1,13 +1,12 @@ -from typing import Any - from braintree.address import Address as Address from braintree.credit_card_verification import CreditCardVerification as CreditCardVerification from braintree.resource import Resource as Resource +from braintree.subscription import Subscription class VisaCheckoutCard(Resource): - billing_address: Any - subscriptions: Any - verification: Any + billing_address: Address | None + subscriptions: list[Subscription] + verification: CreditCardVerification def __init__(self, gateway, attributes): ... @property def expiration_date(self): ... diff --git a/stubs/braintree/braintree/webhook_notification.pyi b/stubs/braintree/braintree/webhook_notification.pyi index 35c90af9072b..29442df2676d 100644 --- a/stubs/braintree/braintree/webhook_notification.pyi +++ b/stubs/braintree/braintree/webhook_notification.pyi @@ -1,4 +1,4 @@ -from typing import Any +from _typeshed import Incomplete from braintree.account_updater_daily_report import AccountUpdaterDailyReport as AccountUpdaterDailyReport from braintree.configuration import Configuration as Configuration @@ -13,14 +13,18 @@ from braintree.dispute import Dispute as Dispute from braintree.error_result import ErrorResult as ErrorResult from braintree.granted_payment_instrument_update import GrantedPaymentInstrumentUpdate as GrantedPaymentInstrumentUpdate from braintree.local_payment_completed import LocalPaymentCompleted as LocalPaymentCompleted +from braintree.local_payment_expired import LocalPaymentExpired +from braintree.local_payment_funded import LocalPaymentFunded from braintree.local_payment_reversed import LocalPaymentReversed as LocalPaymentReversed from braintree.merchant_account import MerchantAccount as MerchantAccount from braintree.oauth_access_revocation import OAuthAccessRevocation as OAuthAccessRevocation from braintree.partner_merchant import PartnerMerchant as PartnerMerchant +from braintree.payment_method_customer_data_updated_metadata import PaymentMethodCustomerDataUpdatedMetadata from braintree.resource import Resource as Resource from braintree.revoked_payment_method_metadata import RevokedPaymentMethodMetadata as RevokedPaymentMethodMetadata from braintree.subscription import Subscription as Subscription from braintree.transaction import Transaction as Transaction +from braintree.transaction_review import TransactionReview from braintree.validation_error_collection import ValidationErrorCollection as ValidationErrorCollection class WebhookNotification(Resource): @@ -71,21 +75,25 @@ class WebhookNotification(Resource): def parse(signature, payload): ... @staticmethod def verify(challenge): ... - source_merchant_id: Any - subscription: Any - merchant_account: Any - transaction: Any - connected_merchant_status_transitioned: Any - connected_merchant_paypal_status_changed: Any - partner_merchant: Any - oauth_access_revocation: Any - disbursement: Any - dispute: Any - account_updater_daily_report: Any - granted_payment_instrument_update: Any - revoked_payment_method_metadata: Any - local_payment_completed: Any - local_payment_reversed: Any - errors: Any - message: Any + source_merchant_id: Incomplete + subscription: Subscription + merchant_account: MerchantAccount + transaction: Transaction + transaction_review: TransactionReview + connected_merchant_status_transitioned: ConnectedMerchantStatusTransitioned + connected_merchant_paypal_status_changed: ConnectedMerchantPayPalStatusChanged + partner_merchant: PartnerMerchant + oauth_access_revocation: OAuthAccessRevocation + disbursement: Disbursement + dispute: Dispute + account_updater_daily_report: AccountUpdaterDailyReport + granted_payment_instrument_update: GrantedPaymentInstrumentUpdate + revoked_payment_method_metadata: RevokedPaymentMethodMetadata + local_payment_completed: LocalPaymentCompleted + local_payment_expired: LocalPaymentExpired + local_payment_funded: LocalPaymentFunded + local_payment_reversed: LocalPaymentReversed + payment_method_customer_data_updated_metadata: PaymentMethodCustomerDataUpdatedMetadata + errors: ValidationErrorCollection + message: Incomplete def __init__(self, gateway, attributes) -> None: ... diff --git a/stubs/braintree/braintree/webhook_notification_gateway.pyi b/stubs/braintree/braintree/webhook_notification_gateway.pyi index 9f26304aa798..48206b6b6bf9 100644 --- a/stubs/braintree/braintree/webhook_notification_gateway.pyi +++ b/stubs/braintree/braintree/webhook_notification_gateway.pyi @@ -1,4 +1,4 @@ -from typing import Any +from _typeshed import Incomplete from braintree.exceptions.invalid_challenge_error import InvalidChallengeError as InvalidChallengeError from braintree.exceptions.invalid_signature_error import InvalidSignatureError as InvalidSignatureError @@ -9,8 +9,8 @@ from braintree.webhook_notification import WebhookNotification as WebhookNotific text_type = str class WebhookNotificationGateway: - gateway: Any - config: Any + gateway: Incomplete + config: Incomplete def __init__(self, gateway) -> None: ... def parse(self, signature, payload): ... def verify(self, challenge): ... diff --git a/stubs/braintree/braintree/webhook_testing_gateway.pyi b/stubs/braintree/braintree/webhook_testing_gateway.pyi index 9e089d789660..228f933a1a1a 100644 --- a/stubs/braintree/braintree/webhook_testing_gateway.pyi +++ b/stubs/braintree/braintree/webhook_testing_gateway.pyi @@ -1,11 +1,10 @@ from _typeshed import Incomplete -from typing import Any from braintree.util.crypto import Crypto as Crypto from braintree.webhook_notification import WebhookNotification as WebhookNotification class WebhookTestingGateway: - gateway: Any - config: Any + gateway: Incomplete + config: Incomplete def __init__(self, gateway) -> None: ... def sample_notification(self, kind, id, source_merchant_id: Incomplete | None = None): ... From 5dff6dff6c1364f0fb72d1216255d78a27dbf9a8 Mon Sep 17 00:00:00 2001 From: Avasam Date: Sun, 31 Mar 2024 19:35:00 -0400 Subject: [PATCH 3/3] Update stubs/braintree/braintree/customer.pyi --- stubs/braintree/braintree/customer.pyi | 15 +-------------- 1 file changed, 1 insertion(+), 14 deletions(-) diff --git a/stubs/braintree/braintree/customer.pyi b/stubs/braintree/braintree/customer.pyi index acf01efd3cc4..afb77dee0936 100644 --- a/stubs/braintree/braintree/customer.pyi +++ b/stubs/braintree/braintree/customer.pyi @@ -38,20 +38,7 @@ class Customer(Resource): def create_signature(): ... @staticmethod def update_signature(): ... - payment_methods: list[ - CreditCard - | Address - | PayPalAccount - | ApplePayCard - | AndroidPayCard - | AmexExpressCheckoutCard - | EuropeBankAccount - | VenmoAccount - | UsBankAccount - | VisaCheckoutCard - | MasterpassCard - | SamsungPayCard - ] + payment_methods: list[Resource] credit_cards: list[CreditCard] addresses: list[Address] paypal_accounts: list[PayPalAccount]