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..afb77dee0936 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,17 @@ 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[Resource] + 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): ...