diff --git a/pyrightconfig.stricter.json b/pyrightconfig.stricter.json index 4d8757cdb..e806a5f40 100644 --- a/pyrightconfig.stricter.json +++ b/pyrightconfig.stricter.json @@ -30,6 +30,7 @@ "stubs/bleach", "stubs/boto", "stubs/beautifulsoup4", + "stubs/braintree", "stubs/caldav", "stubs/commonmark", "stubs/cryptography", diff --git a/stubs/braintree/METADATA.toml b/stubs/braintree/METADATA.toml new file mode 100644 index 000000000..4ede6a0b8 --- /dev/null +++ b/stubs/braintree/METADATA.toml @@ -0,0 +1 @@ +version = "4.11" diff --git a/stubs/braintree/braintree/__init__.pyi b/stubs/braintree/braintree/__init__.pyi new file mode 100644 index 000000000..f242635c0 --- /dev/null +++ b/stubs/braintree/braintree/__init__.pyi @@ -0,0 +1,83 @@ +from braintree.ach_mandate import AchMandate as AchMandate +from braintree.add_on import AddOn as AddOn +from braintree.add_on_gateway import AddOnGateway as AddOnGateway +from braintree.address import Address as Address +from braintree.address_gateway import AddressGateway as AddressGateway +from braintree.amex_express_checkout_card import AmexExpressCheckoutCard as AmexExpressCheckoutCard +from braintree.android_pay_card import AndroidPayCard as AndroidPayCard +from braintree.apple_pay_card import ApplePayCard as ApplePayCard +from braintree.apple_pay_gateway import ApplePayGateway as ApplePayGateway +from braintree.braintree_gateway import BraintreeGateway as BraintreeGateway +from braintree.client_token import ClientToken as ClientToken +from braintree.configuration import Configuration as Configuration +from braintree.connected_merchant_paypal_status_changed import ( + ConnectedMerchantPayPalStatusChanged as ConnectedMerchantPayPalStatusChanged, +) +from braintree.connected_merchant_status_transitioned import ( + ConnectedMerchantStatusTransitioned as ConnectedMerchantStatusTransitioned, +) +from braintree.credentials_parser import CredentialsParser as CredentialsParser +from braintree.credit_card import CreditCard as CreditCard +from braintree.credit_card_gateway import CreditCardGateway as CreditCardGateway +from braintree.credit_card_verification import CreditCardVerification as CreditCardVerification +from braintree.credit_card_verification_search import CreditCardVerificationSearch as CreditCardVerificationSearch +from braintree.customer import Customer as Customer +from braintree.customer_gateway import CustomerGateway as CustomerGateway +from braintree.customer_search import CustomerSearch as CustomerSearch +from braintree.descriptor import Descriptor as Descriptor +from braintree.disbursement import Disbursement as Disbursement +from braintree.discount import Discount as Discount +from braintree.discount_gateway import DiscountGateway as DiscountGateway +from braintree.dispute import Dispute as Dispute +from braintree.dispute_search import DisputeSearch as DisputeSearch +from braintree.document_upload import DocumentUpload as DocumentUpload +from braintree.document_upload_gateway import DocumentUploadGateway as DocumentUploadGateway +from braintree.environment import Environment as Environment +from braintree.error_codes import ErrorCodes as ErrorCodes +from braintree.error_result import ErrorResult as ErrorResult +from braintree.errors import Errors as Errors +from braintree.europe_bank_account import EuropeBankAccount as EuropeBankAccount +from braintree.local_payment_completed import LocalPaymentCompleted as LocalPaymentCompleted +from braintree.local_payment_reversed import LocalPaymentReversed as LocalPaymentReversed +from braintree.merchant import Merchant as Merchant +from braintree.merchant_account import MerchantAccount as MerchantAccount +from braintree.merchant_account_gateway import MerchantAccountGateway as MerchantAccountGateway +from braintree.oauth_access_revocation import OAuthAccessRevocation as OAuthAccessRevocation +from braintree.partner_merchant import PartnerMerchant as PartnerMerchant +from braintree.payment_instrument_type import PaymentInstrumentType as PaymentInstrumentType +from braintree.payment_method import PaymentMethod as PaymentMethod +from braintree.payment_method_nonce import PaymentMethodNonce as PaymentMethodNonce +from braintree.payment_method_parser import parse_payment_method as parse_payment_method +from braintree.paypal_account import PayPalAccount as PayPalAccount +from braintree.plan import Plan as Plan +from braintree.plan_gateway import PlanGateway as PlanGateway +from braintree.processor_response_types import ProcessorResponseTypes as ProcessorResponseTypes +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.search import Search as Search +from braintree.settlement_batch_summary import SettlementBatchSummary as SettlementBatchSummary +from braintree.signature_service import SignatureService as SignatureService +from braintree.status_event import StatusEvent as StatusEvent +from braintree.subscription import Subscription as Subscription +from braintree.subscription_gateway import SubscriptionGateway as SubscriptionGateway +from braintree.subscription_search import SubscriptionSearch as SubscriptionSearch +from braintree.subscription_status_event import SubscriptionStatusEvent as SubscriptionStatusEvent +from braintree.successful_result import SuccessfulResult as SuccessfulResult +from braintree.testing_gateway import TestingGateway as TestingGateway +from braintree.three_d_secure_info import ThreeDSecureInfo as ThreeDSecureInfo +from braintree.transaction import Transaction as Transaction +from braintree.transaction_amounts import TransactionAmounts as TransactionAmounts +from braintree.transaction_details import TransactionDetails as TransactionDetails +from braintree.transaction_gateway import TransactionGateway as TransactionGateway +from braintree.transaction_line_item import TransactionLineItem as TransactionLineItem +from braintree.transaction_search import TransactionSearch as TransactionSearch +from braintree.unknown_payment_method import UnknownPaymentMethod as UnknownPaymentMethod +from braintree.us_bank_account import UsBankAccount as UsBankAccount +from braintree.validation_error_collection import ValidationErrorCollection as ValidationErrorCollection +from braintree.venmo_account import VenmoAccount as VenmoAccount +from braintree.version import Version as Version +from braintree.webhook_notification import WebhookNotification as WebhookNotification +from braintree.webhook_notification_gateway import WebhookNotificationGateway as WebhookNotificationGateway +from braintree.webhook_testing import WebhookTesting as WebhookTesting +from braintree.webhook_testing_gateway import WebhookTestingGateway as WebhookTestingGateway diff --git a/stubs/braintree/braintree/account_updater_daily_report.pyi b/stubs/braintree/braintree/account_updater_daily_report.pyi new file mode 100644 index 000000000..86b343898 --- /dev/null +++ b/stubs/braintree/braintree/account_updater_daily_report.pyi @@ -0,0 +1,9 @@ +from typing import Any + +from braintree.configuration import Configuration as Configuration +from braintree.resource import Resource as Resource + +class AccountUpdaterDailyReport(Resource): + report_url: Any + report_date: Any + def __init__(self, gateway, attributes) -> None: ... diff --git a/stubs/braintree/braintree/ach_mandate.pyi b/stubs/braintree/braintree/ach_mandate.pyi new file mode 100644 index 000000000..053c028d1 --- /dev/null +++ b/stubs/braintree/braintree/ach_mandate.pyi @@ -0,0 +1,5 @@ +from braintree.resource import Resource as Resource +from braintree.util.datetime_parser import parse_datetime as parse_datetime + +class AchMandate(Resource): + def __init__(self, gateway, attributes) -> None: ... diff --git a/stubs/braintree/braintree/add_on.pyi b/stubs/braintree/braintree/add_on.pyi new file mode 100644 index 000000000..6665ada54 --- /dev/null +++ b/stubs/braintree/braintree/add_on.pyi @@ -0,0 +1,6 @@ +from braintree.configuration import Configuration as Configuration +from braintree.modification import Modification as Modification + +class AddOn(Modification): + @staticmethod + def all(): ... diff --git a/stubs/braintree/braintree/add_on_gateway.pyi b/stubs/braintree/braintree/add_on_gateway.pyi new file mode 100644 index 000000000..131c84cf2 --- /dev/null +++ b/stubs/braintree/braintree/add_on_gateway.pyi @@ -0,0 +1,10 @@ +from typing import Any + +from braintree.add_on import AddOn as AddOn +from braintree.resource_collection import ResourceCollection as ResourceCollection + +class AddOnGateway: + gateway: Any + config: Any + def __init__(self, gateway) -> None: ... + def all(self): ... diff --git a/stubs/braintree/braintree/address.pyi b/stubs/braintree/braintree/address.pyi new file mode 100644 index 000000000..63d7531c5 --- /dev/null +++ b/stubs/braintree/braintree/address.pyi @@ -0,0 +1,27 @@ +from typing import Any + +from braintree.configuration import Configuration as Configuration +from braintree.error_result import ErrorResult as ErrorResult +from braintree.resource import Resource as Resource +from braintree.successful_result import SuccessfulResult as SuccessfulResult + +class Address(Resource): + class ShippingMethod: + SameDay: str + NextDay: str + Priority: str + Ground: str + Electronic: str + ShipToStore: str + @staticmethod + def create(params: Any | None = ...): ... + @staticmethod + def delete(customer_id, address_id): ... + @staticmethod + def find(customer_id, address_id): ... + @staticmethod + def update(customer_id, address_id, params: Any | None = ...): ... + @staticmethod + def create_signature(): ... + @staticmethod + def update_signature(): ... diff --git a/stubs/braintree/braintree/address_gateway.pyi b/stubs/braintree/braintree/address_gateway.pyi new file mode 100644 index 000000000..bf55fe3f0 --- /dev/null +++ b/stubs/braintree/braintree/address_gateway.pyi @@ -0,0 +1,16 @@ +from typing import Any + +from braintree.address import Address as Address +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.successful_result import SuccessfulResult as SuccessfulResult + +class AddressGateway: + gateway: Any + config: Any + def __init__(self, gateway) -> None: ... + def create(self, params: Any | None = ...): ... + def delete(self, customer_id, address_id): ... + def find(self, customer_id, address_id): ... + def update(self, customer_id, address_id, params: Any | None = ...): ... diff --git a/stubs/braintree/braintree/amex_express_checkout_card.pyi b/stubs/braintree/braintree/amex_express_checkout_card.pyi new file mode 100644 index 000000000..4d736b43e --- /dev/null +++ b/stubs/braintree/braintree/amex_express_checkout_card.pyi @@ -0,0 +1,9 @@ +from typing import Any + +from braintree.resource import Resource as Resource + +class AmexExpressCheckoutCard(Resource): + subscriptions: Any + 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 new file mode 100644 index 000000000..2edb683a5 --- /dev/null +++ b/stubs/braintree/braintree/android_pay_card.pyi @@ -0,0 +1,14 @@ +from typing import Any + +from braintree.resource import Resource as Resource + +class AndroidPayCard(Resource): + is_expired: Any + subscriptions: Any + def __init__(self, gateway, attributes) -> None: ... + @property + def expiration_date(self): ... + @property + def last_4(self): ... + @property + def card_type(self): ... diff --git a/stubs/braintree/braintree/apple_pay_card.pyi b/stubs/braintree/braintree/apple_pay_card.pyi new file mode 100644 index 000000000..f1cf10754 --- /dev/null +++ b/stubs/braintree/braintree/apple_pay_card.pyi @@ -0,0 +1,14 @@ +from typing import Any + +from braintree.resource import Resource as Resource + +class ApplePayCard(Resource): + class CardType: + AmEx: str + MasterCard: str + Visa: str + is_expired: Any + subscriptions: Any + 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 new file mode 100644 index 000000000..375798606 --- /dev/null +++ b/stubs/braintree/braintree/apple_pay_gateway.pyi @@ -0,0 +1,14 @@ +from typing import Any + +from braintree.apple_pay_options import ApplePayOptions as ApplePayOptions +from braintree.error_result import ErrorResult as ErrorResult +from braintree.exceptions.unexpected_error import UnexpectedError as UnexpectedError +from braintree.successful_result import SuccessfulResult as SuccessfulResult + +class ApplePayGateway: + gateway: Any + config: Any + def __init__(self, gateway) -> None: ... + def register_domain(self, domain): ... + def unregister_domain(self, domain): ... + def registered_domains(self): ... diff --git a/stubs/braintree/braintree/apple_pay_options.pyi b/stubs/braintree/braintree/apple_pay_options.pyi new file mode 100644 index 000000000..8328c271f --- /dev/null +++ b/stubs/braintree/braintree/apple_pay_options.pyi @@ -0,0 +1,3 @@ +from braintree.attribute_getter import AttributeGetter as AttributeGetter + +class ApplePayOptions(AttributeGetter): ... diff --git a/stubs/braintree/braintree/attribute_getter.pyi b/stubs/braintree/braintree/attribute_getter.pyi new file mode 100644 index 000000000..bedbb800a --- /dev/null +++ b/stubs/braintree/braintree/attribute_getter.pyi @@ -0,0 +1,4 @@ +from typing import Any + +class AttributeGetter: + def __init__(self, attributes: Any | None = ...) -> None: ... diff --git a/stubs/braintree/braintree/authorization_adjustment.pyi b/stubs/braintree/braintree/authorization_adjustment.pyi new file mode 100644 index 000000000..32e9319ee --- /dev/null +++ b/stubs/braintree/braintree/authorization_adjustment.pyi @@ -0,0 +1,7 @@ +from typing import Any + +from braintree.attribute_getter import AttributeGetter as AttributeGetter + +class AuthorizationAdjustment(AttributeGetter): + amount: Any + def __init__(self, attributes) -> None: ... diff --git a/stubs/braintree/braintree/bin_data.pyi b/stubs/braintree/braintree/bin_data.pyi new file mode 100644 index 000000000..540fa2496 --- /dev/null +++ b/stubs/braintree/braintree/bin_data.pyi @@ -0,0 +1,3 @@ +from braintree.attribute_getter import AttributeGetter as AttributeGetter + +class BinData(AttributeGetter): ... diff --git a/stubs/braintree/braintree/braintree_gateway.pyi b/stubs/braintree/braintree/braintree_gateway.pyi new file mode 100644 index 000000000..afa470a8a --- /dev/null +++ b/stubs/braintree/braintree/braintree_gateway.pyi @@ -0,0 +1,60 @@ +from typing import Any + +from braintree.add_on_gateway import AddOnGateway as AddOnGateway +from braintree.address_gateway import AddressGateway as AddressGateway +from braintree.apple_pay_gateway import ApplePayGateway as ApplePayGateway +from braintree.client_token_gateway import ClientTokenGateway as ClientTokenGateway +from braintree.configuration import Configuration as Configuration +from braintree.credit_card_gateway import CreditCardGateway as CreditCardGateway +from braintree.credit_card_verification_gateway import CreditCardVerificationGateway as CreditCardVerificationGateway +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.merchant_account_gateway import MerchantAccountGateway as MerchantAccountGateway +from braintree.merchant_gateway import MerchantGateway as MerchantGateway +from braintree.oauth_gateway import OAuthGateway as OAuthGateway +from braintree.payment_method_gateway import PaymentMethodGateway as PaymentMethodGateway +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.settlement_batch_summary_gateway import SettlementBatchSummaryGateway as SettlementBatchSummaryGateway +from braintree.subscription_gateway import SubscriptionGateway as SubscriptionGateway +from braintree.testing_gateway import TestingGateway as TestingGateway +from braintree.transaction_gateway import TransactionGateway as TransactionGateway +from braintree.transaction_line_item_gateway import TransactionLineItemGateway as TransactionLineItemGateway +from braintree.us_bank_account_gateway import UsBankAccountGateway as UsBankAccountGateway +from braintree.us_bank_account_verification_gateway import UsBankAccountVerificationGateway as UsBankAccountVerificationGateway +from braintree.webhook_notification_gateway import WebhookNotificationGateway as WebhookNotificationGateway +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 + def __init__(self, config: Any | None = ..., **kwargs) -> None: ... diff --git a/stubs/braintree/braintree/client_token.pyi b/stubs/braintree/braintree/client_token.pyi new file mode 100644 index 000000000..3e083a212 --- /dev/null +++ b/stubs/braintree/braintree/client_token.pyi @@ -0,0 +1,12 @@ +from typing import Any + +from braintree import exceptions as exceptions +from braintree.configuration import Configuration as Configuration +from braintree.signature_service import SignatureService as SignatureService +from braintree.util.crypto import Crypto as Crypto + +class ClientToken: + @staticmethod + def generate(params: Any | None = ..., gateway: Any | None = ...): ... + @staticmethod + def generate_signature(): ... diff --git a/stubs/braintree/braintree/client_token_gateway.pyi b/stubs/braintree/braintree/client_token_gateway.pyi new file mode 100644 index 000000000..ddb0b12e6 --- /dev/null +++ b/stubs/braintree/braintree/client_token_gateway.pyi @@ -0,0 +1,11 @@ +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 + def __init__(self, gateway) -> None: ... + def generate(self, params: Any | None = ...): ... diff --git a/stubs/braintree/braintree/configuration.pyi b/stubs/braintree/braintree/configuration.pyi new file mode 100644 index 000000000..1d8c3fc53 --- /dev/null +++ b/stubs/braintree/braintree/configuration.pyi @@ -0,0 +1,50 @@ +from typing import Any + +from braintree.credentials_parser import CredentialsParser as CredentialsParser +from braintree.environment import Environment as Environment +from braintree.exceptions.configuration_error import ConfigurationError as ConfigurationError +from braintree.util.graphql_client import GraphQLClient as GraphQLClient + +class Configuration: + @staticmethod + def configure(environment, merchant_id, public_key, private_key, **kwargs) -> None: ... + @staticmethod + def for_partner(environment, partner_id, public_key, private_key, **kwargs): ... + @staticmethod + def gateway(): ... + @staticmethod + def instantiate(): ... + @staticmethod + 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 + def __init__( + self, + environment: Any | None = ..., + merchant_id: Any | None = ..., + public_key: Any | None = ..., + private_key: Any | None = ..., + client_id: Any | None = ..., + client_secret: Any | None = ..., + access_token: Any | None = ..., + *args, + **kwargs, + ) -> None: ... + def base_merchant_path(self): ... + def base_url(self): ... + def graphql_base_url(self): ... + def http(self): ... + def graphql_client(self): ... + def http_strategy(self): ... + def has_client_credentials(self): ... + def assert_has_client_credentials(self) -> None: ... + def has_access_token(self): ... diff --git a/stubs/braintree/braintree/connected_merchant_paypal_status_changed.pyi b/stubs/braintree/braintree/connected_merchant_paypal_status_changed.pyi new file mode 100644 index 000000000..9f1fe6a15 --- /dev/null +++ b/stubs/braintree/braintree/connected_merchant_paypal_status_changed.pyi @@ -0,0 +1,6 @@ +from braintree.resource import Resource as Resource + +class ConnectedMerchantPayPalStatusChanged(Resource): + def __init__(self, gateway, attributes) -> None: ... + @property + def merchant_id(self): ... diff --git a/stubs/braintree/braintree/connected_merchant_status_transitioned.pyi b/stubs/braintree/braintree/connected_merchant_status_transitioned.pyi new file mode 100644 index 000000000..5b6fa3c2c --- /dev/null +++ b/stubs/braintree/braintree/connected_merchant_status_transitioned.pyi @@ -0,0 +1,6 @@ +from braintree.resource import Resource as Resource + +class ConnectedMerchantStatusTransitioned(Resource): + def __init__(self, gateway, attributes) -> None: ... + @property + def merchant_id(self): ... diff --git a/stubs/braintree/braintree/credentials_parser.pyi b/stubs/braintree/braintree/credentials_parser.pyi new file mode 100644 index 000000000..dd1b69ac9 --- /dev/null +++ b/stubs/braintree/braintree/credentials_parser.pyi @@ -0,0 +1,16 @@ +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 + def __init__(self, client_id: Any | None = ..., client_secret: Any | None = ..., access_token: Any | None = ...) -> None: ... + environment: Any + def parse_client_credentials(self) -> None: ... + merchant_id: Any + 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 new file mode 100644 index 000000000..f6a373892 --- /dev/null +++ b/stubs/braintree/braintree/credit_card.pyi @@ -0,0 +1,72 @@ +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 + +class CreditCard(Resource): + class CardType: + AmEx: str + CarteBlanche: str + ChinaUnionPay: str + DinersClubInternational: str + Discover: str + Electron: str + Elo: str + Hiper: str + Hipercard: str + JCB: str + Laser: str + UK_Maestro: str + Maestro: str + MasterCard: str + Solo: str + Switch: str + Visa: str + Unknown: str + class CustomerLocation: + International: str + US: str + class CardTypeIndicator: + Yes: str + No: str + Unknown: str + Commercial: Any + DurbinRegulated: Any + Debit: Any + Healthcare: Any + CountryOfIssuance: Any + IssuingBank: Any + Payroll: Any + Prepaid: Any + ProductId: Any + @staticmethod + def create(params: Any | None = ...): ... + @staticmethod + def update(credit_card_token, params: Any | None = ...): ... + @staticmethod + def delete(credit_card_token): ... + @staticmethod + def expired(): ... + @staticmethod + def expiring_between(start_date, end_date): ... + @staticmethod + def find(credit_card_token): ... + @staticmethod + def from_nonce(nonce): ... + @staticmethod + def create_signature(): ... + @staticmethod + def update_signature(): ... + @staticmethod + def signature(type): ... + is_expired: Any + billing_address: Any + subscriptions: Any + verification: Any + def __init__(self, gateway, attributes): ... + @property + def expiration_date(self): ... + @property + def masked_number(self): ... diff --git a/stubs/braintree/braintree/credit_card_gateway.pyi b/stubs/braintree/braintree/credit_card_gateway.pyi new file mode 100644 index 000000000..765f808a7 --- /dev/null +++ b/stubs/braintree/braintree/credit_card_gateway.pyi @@ -0,0 +1,22 @@ +from typing import Any + +from braintree.credit_card import CreditCard as CreditCard +from braintree.error_result import ErrorResult as ErrorResult +from braintree.exceptions.not_found_error import NotFoundError as NotFoundError +from braintree.ids_search import IdsSearch as IdsSearch +from braintree.resource import Resource as Resource +from braintree.resource_collection import ResourceCollection as ResourceCollection +from braintree.successful_result import SuccessfulResult as SuccessfulResult + +class CreditCardGateway: + gateway: Any + config: Any + def __init__(self, gateway) -> None: ... + def create(self, params: Any | None = ...): ... + def delete(self, credit_card_token): ... + def expired(self): ... + def expiring_between(self, start_date, end_date): ... + def find(self, credit_card_token): ... + def forward(self, credit_card_token, receiving_merchant_id) -> None: ... + def from_nonce(self, nonce): ... + def update(self, credit_card_token, params: Any | None = ...): ... diff --git a/stubs/braintree/braintree/credit_card_verification.pyi b/stubs/braintree/braintree/credit_card_verification.pyi new file mode 100644 index 000000000..29fb9d5d1 --- /dev/null +++ b/stubs/braintree/braintree/credit_card_verification.pyi @@ -0,0 +1,32 @@ +from typing import Any + +from braintree.attribute_getter import AttributeGetter as AttributeGetter +from braintree.configuration import Configuration as Configuration +from braintree.resource import Resource as Resource +from braintree.risk_data import RiskData as RiskData +from braintree.three_d_secure_info import ThreeDSecureInfo as ThreeDSecureInfo + +class CreditCardVerification(AttributeGetter): + class Status: + Failed: str + GatewayRejected: str + 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 + def __init__(self, gateway, attributes) -> None: ... + @staticmethod + def find(verification_id): ... + @staticmethod + def search(*query): ... + @staticmethod + def create(params): ... + @staticmethod + def create_signature(): ... + def __eq__(self, other): ... diff --git a/stubs/braintree/braintree/credit_card_verification_gateway.pyi b/stubs/braintree/braintree/credit_card_verification_gateway.pyi new file mode 100644 index 000000000..737cf19d8 --- /dev/null +++ b/stubs/braintree/braintree/credit_card_verification_gateway.pyi @@ -0,0 +1,17 @@ +from typing import Any + +from braintree.credit_card_verification import CreditCardVerification as CreditCardVerification +from braintree.credit_card_verification_search import CreditCardVerificationSearch as CreditCardVerificationSearch +from braintree.error_result import ErrorResult as ErrorResult +from braintree.exceptions.not_found_error import NotFoundError as NotFoundError +from braintree.ids_search import IdsSearch as IdsSearch +from braintree.resource_collection import ResourceCollection as ResourceCollection +from braintree.successful_result import SuccessfulResult as SuccessfulResult + +class CreditCardVerificationGateway: + gateway: Any + config: Any + def __init__(self, gateway) -> None: ... + def find(self, verification_id): ... + def search(self, *query): ... + def create(self, params): ... diff --git a/stubs/braintree/braintree/credit_card_verification_search.pyi b/stubs/braintree/braintree/credit_card_verification_search.pyi new file mode 100644 index 000000000..4036aaddb --- /dev/null +++ b/stubs/braintree/braintree/credit_card_verification_search.pyi @@ -0,0 +1,20 @@ +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 diff --git a/stubs/braintree/braintree/customer.pyi b/stubs/braintree/braintree/customer.pyi new file mode 100644 index 000000000..cd0ffa78a --- /dev/null +++ b/stubs/braintree/braintree/customer.pyi @@ -0,0 +1,54 @@ +from typing import Any + +from braintree.address import Address as Address +from braintree.amex_express_checkout_card import AmexExpressCheckoutCard as AmexExpressCheckoutCard +from braintree.android_pay_card import AndroidPayCard as AndroidPayCard +from braintree.apple_pay_card import ApplePayCard as ApplePayCard +from braintree.configuration import Configuration as Configuration +from braintree.credit_card import CreditCard as CreditCard +from braintree.error_result import ErrorResult as ErrorResult +from braintree.europe_bank_account import EuropeBankAccount as EuropeBankAccount +from braintree.exceptions.not_found_error import NotFoundError as NotFoundError +from braintree.ids_search import IdsSearch as IdsSearch +from braintree.masterpass_card import MasterpassCard as MasterpassCard +from braintree.paypal_account import PayPalAccount as PayPalAccount +from braintree.resource import Resource as Resource +from braintree.resource_collection import ResourceCollection as ResourceCollection +from braintree.samsung_pay_card import SamsungPayCard as SamsungPayCard +from braintree.successful_result import SuccessfulResult as SuccessfulResult +from braintree.us_bank_account import UsBankAccount as UsBankAccount +from braintree.util.http import Http as Http +from braintree.venmo_account import VenmoAccount as VenmoAccount +from braintree.visa_checkout_card import VisaCheckoutCard as VisaCheckoutCard + +class Customer(Resource): + @staticmethod + def all(): ... + @staticmethod + def create(params: Any | None = ...): ... + @staticmethod + def delete(customer_id): ... + @staticmethod + def find(customer_id, association_filter_id: Any | None = ...): ... + @staticmethod + def search(*query): ... + @staticmethod + def update(customer_id, params: Any | None = ...): ... + @staticmethod + 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 + def __init__(self, gateway, attributes) -> None: ... diff --git a/stubs/braintree/braintree/customer_gateway.pyi b/stubs/braintree/braintree/customer_gateway.pyi new file mode 100644 index 000000000..6b1391ef7 --- /dev/null +++ b/stubs/braintree/braintree/customer_gateway.pyi @@ -0,0 +1,20 @@ +from typing import Any + +from braintree.customer import Customer as Customer +from braintree.error_result import ErrorResult as ErrorResult +from braintree.exceptions.not_found_error import NotFoundError as NotFoundError +from braintree.ids_search import IdsSearch as IdsSearch +from braintree.resource import Resource as Resource +from braintree.resource_collection import ResourceCollection as ResourceCollection +from braintree.successful_result import SuccessfulResult as SuccessfulResult + +class CustomerGateway: + gateway: Any + config: Any + def __init__(self, gateway) -> None: ... + def all(self): ... + def create(self, params: Any | None = ...): ... + def delete(self, customer_id): ... + def find(self, customer_id, association_filter_id: Any | None = ...): ... + def search(self, *query): ... + def update(self, customer_id, params: Any | None = ...): ... diff --git a/stubs/braintree/braintree/customer_search.pyi b/stubs/braintree/braintree/customer_search.pyi new file mode 100644 index 000000000..a55ecf784 --- /dev/null +++ b/stubs/braintree/braintree/customer_search.pyi @@ -0,0 +1,29 @@ +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 diff --git a/stubs/braintree/braintree/descriptor.pyi b/stubs/braintree/braintree/descriptor.pyi new file mode 100644 index 000000000..0ec66354c --- /dev/null +++ b/stubs/braintree/braintree/descriptor.pyi @@ -0,0 +1,4 @@ +from braintree.resource import Resource as Resource + +class Descriptor(Resource): + def __init__(self, gateway, attributes) -> None: ... diff --git a/stubs/braintree/braintree/disbursement.pyi b/stubs/braintree/braintree/disbursement.pyi new file mode 100644 index 000000000..fc4634d3e --- /dev/null +++ b/stubs/braintree/braintree/disbursement.pyi @@ -0,0 +1,16 @@ +from typing import Any + +from braintree.merchant_account import MerchantAccount as MerchantAccount +from braintree.resource import Resource as Resource +from braintree.transaction_search import TransactionSearch as TransactionSearch + +class Disbursement(Resource): + class Type: + Credit: str + Debit: str + amount: Any + merchant_account: Any + def __init__(self, gateway, attributes) -> None: ... + def transactions(self): ... + def is_credit(self): ... + def is_debit(self): ... diff --git a/stubs/braintree/braintree/disbursement_detail.pyi b/stubs/braintree/braintree/disbursement_detail.pyi new file mode 100644 index 000000000..7badea3a8 --- /dev/null +++ b/stubs/braintree/braintree/disbursement_detail.pyi @@ -0,0 +1,10 @@ +from typing import Any + +from braintree.attribute_getter import AttributeGetter as AttributeGetter + +class DisbursementDetail(AttributeGetter): + settlement_amount: Any + settlement_currency_exchange_rate: Any + def __init__(self, attributes) -> None: ... + @property + def is_valid(self): ... diff --git a/stubs/braintree/braintree/discount.pyi b/stubs/braintree/braintree/discount.pyi new file mode 100644 index 000000000..e9ff1c91d --- /dev/null +++ b/stubs/braintree/braintree/discount.pyi @@ -0,0 +1,6 @@ +from braintree.configuration import Configuration as Configuration +from braintree.modification import Modification as Modification + +class Discount(Modification): + @staticmethod + def all(): ... diff --git a/stubs/braintree/braintree/discount_gateway.pyi b/stubs/braintree/braintree/discount_gateway.pyi new file mode 100644 index 000000000..45203a328 --- /dev/null +++ b/stubs/braintree/braintree/discount_gateway.pyi @@ -0,0 +1,10 @@ +from typing import Any + +from braintree.discount import Discount as Discount +from braintree.resource_collection import ResourceCollection as ResourceCollection + +class DiscountGateway: + gateway: Any + config: Any + def __init__(self, gateway) -> None: ... + def all(self): ... diff --git a/stubs/braintree/braintree/dispute.pyi b/stubs/braintree/braintree/dispute.pyi new file mode 100644 index 000000000..64a87eb04 --- /dev/null +++ b/stubs/braintree/braintree/dispute.pyi @@ -0,0 +1,63 @@ +from typing import Any + +from braintree.attribute_getter import AttributeGetter as AttributeGetter +from braintree.configuration import Configuration as Configuration +from braintree.dispute_details import ( + DisputeEvidence as DisputeEvidence, + DisputePayPalMessage as DisputePayPalMessage, + DisputeStatusHistory as DisputeStatusHistory, +) +from braintree.transaction_details import TransactionDetails as TransactionDetails + +class Dispute(AttributeGetter): + class Status: + Accepted: str + Disputed: str + Expired: str + Open: str + Won: str + Lost: str + class Reason: + CancelledRecurringTransaction: str + CreditNotProcessed: str + Duplicate: str + Fraud: str + General: str + InvalidAccount: str + NotRecognized: str + ProductNotReceived: str + ProductUnsatisfactory: str + Retrieval: str + TransactionAmountDiffers: str + class Kind: + Chargeback: str + PreArbitration: str + Retrieval: str + class ChargebackProtectionLevel: + Effortless: str + Standard: str + NotProtected: str + @staticmethod + def accept(id): ... + @staticmethod + def add_file_evidence(dispute_id, document_upload_id): ... + @staticmethod + def add_text_evidence(id, content_or_request): ... + @staticmethod + def finalize(id): ... + @staticmethod + def find(id): ... + @staticmethod + 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 + def __init__(self, attributes) -> None: ... diff --git a/stubs/braintree/braintree/dispute_details/__init__.pyi b/stubs/braintree/braintree/dispute_details/__init__.pyi new file mode 100644 index 000000000..e03bf6a1a --- /dev/null +++ b/stubs/braintree/braintree/dispute_details/__init__.pyi @@ -0,0 +1,3 @@ +from braintree.dispute_details.evidence import DisputeEvidence as DisputeEvidence +from braintree.dispute_details.paypal_message import DisputePayPalMessage as DisputePayPalMessage +from braintree.dispute_details.status_history import DisputeStatusHistory as DisputeStatusHistory diff --git a/stubs/braintree/braintree/dispute_details/evidence.pyi b/stubs/braintree/braintree/dispute_details/evidence.pyi new file mode 100644 index 000000000..c488be75c --- /dev/null +++ b/stubs/braintree/braintree/dispute_details/evidence.pyi @@ -0,0 +1,4 @@ +from braintree.attribute_getter import AttributeGetter as AttributeGetter + +class DisputeEvidence(AttributeGetter): + def __init__(self, attributes) -> None: ... diff --git a/stubs/braintree/braintree/dispute_details/paypal_message.pyi b/stubs/braintree/braintree/dispute_details/paypal_message.pyi new file mode 100644 index 000000000..95504bfd8 --- /dev/null +++ b/stubs/braintree/braintree/dispute_details/paypal_message.pyi @@ -0,0 +1,4 @@ +from braintree.attribute_getter import AttributeGetter as AttributeGetter + +class DisputePayPalMessage(AttributeGetter): + def __init__(self, attributes) -> None: ... diff --git a/stubs/braintree/braintree/dispute_details/status_history.pyi b/stubs/braintree/braintree/dispute_details/status_history.pyi new file mode 100644 index 000000000..648315f33 --- /dev/null +++ b/stubs/braintree/braintree/dispute_details/status_history.pyi @@ -0,0 +1,4 @@ +from braintree.attribute_getter import AttributeGetter as AttributeGetter + +class DisputeStatusHistory(AttributeGetter): + def __init__(self, attributes) -> None: ... diff --git a/stubs/braintree/braintree/dispute_gateway.pyi b/stubs/braintree/braintree/dispute_gateway.pyi new file mode 100644 index 000000000..72ce19c90 --- /dev/null +++ b/stubs/braintree/braintree/dispute_gateway.pyi @@ -0,0 +1,23 @@ +from typing import Any + +from braintree.dispute import Dispute as Dispute +from braintree.dispute_details import DisputeEvidence as DisputeEvidence +from braintree.error_result import ErrorResult as ErrorResult +from braintree.exceptions.not_found_error import NotFoundError as NotFoundError +from braintree.paginated_collection import PaginatedCollection as PaginatedCollection +from braintree.paginated_result import PaginatedResult as PaginatedResult +from braintree.resource_collection import ResourceCollection as ResourceCollection +from braintree.successful_result import SuccessfulResult as SuccessfulResult + +class DisputeGateway: + gateway: Any + config: Any + def __init__(self, gateway) -> None: ... + def accept(self, dispute_id): ... + def add_file_evidence(self, dispute_id, document_upload_id_or_request): ... + def add_text_evidence(self, dispute_id, content_or_request): ... + def finalize(self, dispute_id): ... + def find(self, dispute_id): ... + def remove_evidence(self, dispute_id, evidence_id): ... + search_criteria: Any + def search(self, *query): ... diff --git a/stubs/braintree/braintree/dispute_search.pyi b/stubs/braintree/braintree/dispute_search.pyi new file mode 100644 index 000000000..dddf55e16 --- /dev/null +++ b/stubs/braintree/braintree/dispute_search.pyi @@ -0,0 +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 + customer_id: Any + disbursement_date: Any + effective_date: Any + id: Any + kind: Any + merchant_account_id: Any + reason: Any + reason_code: Any + received_date: Any + reference_number: Any + reply_by_date: Any + status: Any + transaction_id: Any + transaction_source: Any diff --git a/stubs/braintree/braintree/document_upload.pyi b/stubs/braintree/braintree/document_upload.pyi new file mode 100644 index 000000000..428b0d632 --- /dev/null +++ b/stubs/braintree/braintree/document_upload.pyi @@ -0,0 +1,14 @@ +from typing import Any + +from braintree.configuration import Configuration as Configuration +from braintree.resource import Resource as Resource +from braintree.successful_result import SuccessfulResult as SuccessfulResult + +class DocumentUpload(Resource): + class Kind: + EvidenceDocument: str + @staticmethod + def create(params: Any | None = ...): ... + @staticmethod + def create_signature(): ... + def __init__(self, gateway, attributes) -> None: ... diff --git a/stubs/braintree/braintree/document_upload_gateway.pyi b/stubs/braintree/braintree/document_upload_gateway.pyi new file mode 100644 index 000000000..1c7549d65 --- /dev/null +++ b/stubs/braintree/braintree/document_upload_gateway.pyi @@ -0,0 +1,12 @@ +from typing import Any + +from braintree.document_upload import DocumentUpload as DocumentUpload +from braintree.error_result import ErrorResult as ErrorResult +from braintree.resource import Resource as Resource +from braintree.successful_result import SuccessfulResult as SuccessfulResult + +class DocumentUploadGateway: + gateway: Any + config: Any + def __init__(self, gateway) -> None: ... + def create(self, params: Any | None = ...): ... diff --git a/stubs/braintree/braintree/environment.pyi b/stubs/braintree/braintree/environment.pyi new file mode 100644 index 000000000..7ebd8bf03 --- /dev/null +++ b/stubs/braintree/braintree/environment.pyi @@ -0,0 +1,33 @@ +from typing import Any + +from braintree.exceptions.configuration_error import ConfigurationError as ConfigurationError + +class Environment: + __name__: Any + is_ssl: Any + ssl_certificate: Any + def __init__( + self, name, server, port, auth_url, is_ssl, ssl_certificate, graphql_server: str = ..., graphql_port: str = ... + ) -> None: ... + @property + def base_url(self): ... + @property + def port(self): ... + @property + def auth_url(self): ... + @property + def protocol(self): ... + @property + def server(self): ... + @property + def server_and_port(self): ... + @property + def graphql_server(self): ... + @property + def graphql_port(self): ... + @property + def graphql_server_and_port(self): ... + @staticmethod + def parse_environment(environment): ... + @staticmethod + def braintree_root(): ... diff --git a/stubs/braintree/braintree/error_codes.pyi b/stubs/braintree/braintree/error_codes.pyi new file mode 100644 index 000000000..147f54dc4 --- /dev/null +++ b/stubs/braintree/braintree/error_codes.pyi @@ -0,0 +1,722 @@ +class ErrorCodes: + class Address: + CannotBeBlank: str + CompanyIsInvalid: str + CompanyIsTooLong: str + CountryCodeAlpha2IsNotAccepted: str + CountryCodeAlpha3IsNotAccepted: str + CountryCodeNumericIsNotAccepted: str + CountryNameIsNotAccepted: str + ExtendedAddressIsInvalid: str + ExtendedAddressIsTooLong: str + FirstNameIsInvalid: str + FirstNameIsTooLong: str + InconsistentCountry: str + IsInvalid: str + LastNameIsInvalid: str + LastNameIsTooLong: str + LocalityIsInvalid: str + LocalityIsTooLong: str + PostalCodeInvalidCharacters: str + PostalCodeIsInvalid: str + PostalCodeIsRequired: str + PostalCodeIsRequiredForCardBrandAndProcessor: str + PostalCodeIsTooLong: str + RegionIsInvalid: str + RegionIsTooLong: str + StateIsInvalidForSellerProtection: str + StreetAddressIsInvalid: str + StreetAddressIsRequired: str + StreetAddressIsTooLong: str + TooManyAddressesPerCustomer: str + class ApplePay: + ApplePayCardsAreNotAccepted: str + CustomerIdIsRequiredForVaulting: str + TokenIsInUse: str + PaymentMethodNonceConsumed: str + PaymentMethodNonceUnknown: str + PaymentMethodNonceLocked: str + PaymentMethodNonceCardTypeIsNotAccepted: str + CannotUpdateApplePayCardUsingPaymentMethodNonce: str + NumberIsRequired: str + ExpirationMonthIsRequired: str + ExpirationYearIsRequired: str + CryptogramIsRequired: str + DecryptionFailed: str + Disabled: str + MerchantNotConfigured: str + MerchantKeysAlreadyConfigured: str + MerchantKeysNotConfigured: str + CertificateInvalid: str + CertificateMismatch: str + InvalidToken: str + PrivateKeyMismatch: str + KeyMismatchStoringCertificate: str + class AuthorizationFingerprint: + MissingFingerprint: str + InvalidFormat: str + SignatureRevoked: str + InvalidCreatedAt: str + InvalidPublicKey: str + InvalidSignature: str + OptionsNotAllowedWithoutCustomer: str + class ClientToken: + MakeDefaultRequiresCustomerId: str + VerifyCardRequiresCustomerId: str + FailOnDuplicatePaymentMethodRequiresCustomerId: str + CustomerDoesNotExist: str + ProxyMerchantDoesNotExist: str + UnsupportedVersion: str + MerchantAccountDoesNotExist: str + class CreditCard: + BillingAddressConflict: str + BillingAddressFormatIsInvalid: str + BillingAddressIdIsInvalid: str + CannotUpdateCardUsingPaymentMethodNonce: str + CardholderNameIsTooLong: str + CreditCardTypeIsNotAccepted: str + CreditCardTypeIsNotAcceptedBySubscriptionMerchantAccount: str + CustomerIdIsInvalid: str + CustomerIdIsRequired: str + CvvIsInvalid: str + CvvIsRequired: str + CvvVerificationFailed: str + DuplicateCardExists: str + ExpirationDateConflict: str + ExpirationDateIsInvalid: str + ExpirationDateIsRequired: str + ExpirationDateYearIsInvalid: str + ExpirationMonthIsInvalid: str + ExpirationYearIsInvalid: str + InvalidParamsForCreditCardUpdate: str + InvalidVenmoSDKPaymentMethodCode: str + NumberHasInvalidLength: str + NumberLengthIsInvalid: str + NumberIsInvalid: str + NumberIsProhibited: str + NumberIsRequired: str + NumberMustBeTestNumber: str + PaymentMethodConflict: str + PaymentMethodIsNotACreditCard: str + PaymentMethodNonceCardTypeIsNotAccepted: str + PaymentMethodNonceConsumed: str + PaymentMethodNonceLocked: str + PaymentMethodNonceUnknown: str + PostalCodeVerificationFailed: str + TokenInvalid: str + TokenFormatIsInvalid: str + TokenIsInUse: str + TokenIsNotAllowed: str + TokenIsRequired: str + TokenIsTooLong: str + VenmoSDKPaymentMethodCodeCardTypeIsNotAccepted: str + VerificationNotSupportedOnThisMerchantAccount: str + VerificationAccountTypeIsInvald: str + VerificationAccountTypeNotSupported: str + class Options: + UpdateExistingTokenIsInvalid: str + UpdateExistingTokenNotAllowed: str + VerificationAmountCannotBeNegative: str + VerificationAmountFormatIsInvalid: str + VerificationAmountIsTooLarge: str + VerificationAmountNotSupportedByProcessor: str + VerificationMerchantAccountIdIsInvalid: str + VerificationMerchantAccountIsForbidden: str + VerificationMerchantAccountIsSuspended: str + VerificationMerchantAccountCannotBeSubMerchantAccount: str + class Customer: + CompanyIsTooLong: str + CustomFieldIsInvalid: str + CustomFieldIsTooLong: str + EmailIsInvalid: str + EmailFormatIsInvalid: str + EmailIsRequired: str + EmailIsTooLong: str + FaxIsTooLong: str + FirstNameIsTooLong: str + IdIsInUse: str + IdIsInvalid: str + IdIsNotAllowed: str + IdIsRequired: str + IdIsTooLong: str + LastNameIsTooLong: str + PhoneIsTooLong: str + VaultedPaymentInstrumentNonceBelongsToDifferentCustomer: str + WebsiteIsInvalid: str + WebsiteFormatIsInvalid: str + WebsiteIsTooLong: str + class Descriptor: + DynamicDescriptorsDisabled: str + InternationalNameFormatIsInvalid: str + InternationalPhoneFormatIsInvalid: str + NameFormatIsInvalid: str + PhoneFormatIsInvalid: str + UrlFormatIsInvalid: str + class Dispute: + CanOnlyAddEvidenceToOpenDispute: str + CanOnlyRemoveEvidenceFromOpenDispute: str + CanOnlyAddEvidenceDocumentToDispute: str + CanOnlyAcceptOpenDispute: str + CanOnlyFinalizeOpenDispute: str + CanOnlyCreateEvidenceWithValidCategory: str + EvidenceContentDateInvalid: str + EvidenceContentTooLong: str + EvidenceContentARNTooLong: str + EvidenceContentPhoneTooLong: str + EvidenceCategoryTextOnly: str + EvidenceCategoryDocumentOnly: str + EvidenceCategoryNotForReasonCode: str + EvidenceCategoryDuplicate: str + EvidenceContentEmailInvalid: str + DigitalGoodsMissingEvidence: str + DigitalGoodsMissingDownloadDate: str + NonDisputedPriorTransactionEvidenceMissingARN: str + NonDisputedPriorTransactionEvidenceMissingDate: str + RecurringTransactionEvidenceMissingDate: str + RecurringTransactionEvidenceMissingARN: str + ValidEvidenceRequiredToFinalize: str + class DocumentUpload: + KindIsInvalid: str + FileIsTooLarge: str + FileTypeIsInvalid: str + FileIsMalformedOrEncrypted: str + FileIsTooLong: str + FileIsEmpty: str + class Merchant: + CountryCannotBeBlank: str + CountryCodeAlpha2IsInvalid: str + CountryCodeAlpha2IsNotAccepted: str + CountryCodeAlpha3IsInvalid: str + CountryCodeAlpha3IsNotAccepted: str + CountryCodeNumericIsInvalid: str + CountryCodeNumericIsNotAccepted: str + CountryNameIsInvalid: str + CountryNameIsNotAccepted: str + CurrenciesAreInvalid: str + EmailFormatIsInvalid: str + EmailIsRequired: str + InconsistentCountry: str + PaymentMethodsAreInvalid: str + PaymentMethodsAreNotAllowed: str + MerchantAccountExistsForCurrency: str + CurrencyIsRequired: str + CurrencyIsInvalid: str + NoMerchantAccounts: str + MerchantAccountExistsForId: str + class MerchantAccount: + IdFormatIsInvalid: str + IdIsInUse: str + IdIsNotAllowed: str + IdIsTooLong: str + MasterMerchantAccountIdIsInvalid: str + MasterMerchantAccountIdIsRequired: str + MasterMerchantAccountMustBeActive: str + TosAcceptedIsRequired: str + CannotBeUpdated: str + IdCannotBeUpdated: str + MasterMerchantAccountIdCannotBeUpdated: str + Declined: str + DeclinedMasterCardMatch: str + DeclinedOFAC: str + DeclinedFailedKYC: str + DeclinedSsnInvalid: str + DeclinedSsnMatchesDeceased: str + class ApplicantDetails: + AccountNumberIsRequired: str + CompanyNameIsInvalid: str + CompanyNameIsRequiredWithTaxId: str + DateOfBirthIsRequired: str + Declined: str + DeclinedMasterCardMatch: str + DeclinedOFAC: str + DeclinedFailedKYC: str + DeclinedSsnInvalid: str + DeclinedSsnMatchesDeceased: str + EmailAddressIsInvalid: str + FirstNameIsInvalid: str + FirstNameIsRequired: str + LastNameIsInvalid: str + LastNameIsRequired: str + PhoneIsInvalid: str + RoutingNumberIsInvalid: str + RoutingNumberIsRequired: str + SsnIsInvalid: str + TaxIdIsInvalid: str + TaxIdIsRequiredWithCompanyName: str + DateOfBirthIsInvalid: str + EmailAddressIsRequired: str + AccountNumberIsInvalid: str + TaxIdMustBeBlank: str + class Address: + LocalityIsRequired: str + PostalCodeIsInvalid: str + PostalCodeIsRequired: str + RegionIsRequired: str + StreetAddressIsInvalid: str + StreetAddressIsRequired: str + RegionIsInvalid: str + class Individual: + FirstNameIsRequired: str + LastNameIsRequired: str + DateOfBirthIsRequired: str + SsnIsInvalid: str + EmailAddressIsInvalid: str + FirstNameIsInvalid: str + LastNameIsInvalid: str + PhoneIsInvalid: str + DateOfBirthIsInvalid: str + EmailAddressIsRequired: str + class Address: + StreetAddressIsRequired: str + LocalityIsRequired: str + PostalCodeIsRequired: str + RegionIsRequired: str + StreetAddressIsInvalid: str + PostalCodeIsInvalid: str + RegionIsInvalid: str + class Business: + DbaNameIsInvalid: str + LegalNameIsInvalid: str + LegalNameIsRequiredWithTaxId: str + TaxIdIsInvalid: str + TaxIdIsRequiredWithLegalName: str + TaxIdMustBeBlank: str + class Address: + StreetAddressIsInvalid: str + PostalCodeIsInvalid: str + RegionIsInvalid: str + class Funding: + RoutingNumberIsRequired: str + AccountNumberIsRequired: str + RoutingNumberIsInvalid: str + AccountNumberIsInvalid: str + DestinationIsInvalid: str + DestinationIsRequired: str + EmailAddressIsInvalid: str + EmailAddressIsRequired: str + MobilePhoneIsInvalid: str + MobilePhoneIsRequired: str + class OAuth: + InvalidGrant: str + InvalidCredentials: str + InvalidScope: str + InvalidRequest: str + UnsupportedGrantType: str + class Verification: + ThreeDSecureAuthenticationIdIsInvalid: str + ThreeDSecureAuthenticationIdDoesntMatchNonceThreeDSecureAuthentication: str + ThreeDSecureTransactionPaymentMethodDoesntMatchThreeDSecureAuthenticationPaymentMethod: str + ThreeDSecureAuthenticationIdWithThreeDSecurePassThruIsInvalid: str + ThreeDSecureAuthenticationFailed: str + ThreeDSecureTokenIsInvalid: str + ThreeDSecureVerificationDataDoesntMatchVerify: str + MerchantAccountDoesNotSupport3DSecure: str + MerchantAcountDoesNotMatch3DSecureMerchantAccount: str + AmountDoesNotMatch3DSecureAmount: str + class ThreeDSecurePassThru: + EciFlagIsRequired: str + EciFlagIsInvalid: str + CavvIsRequired: str + ThreeDSecureVersionIsRequired: str + ThreeDSecureVersionIsInvalid: str + AuthenticationResponseIsInvalid: str + DirectoryResponseIsInvalid: str + CavvAlgorithmIsInvalid: str + class Options: + AmountCannotBeNegative: str + AmountFormatIsInvalid: str + AmountIsTooLarge: str + AmountNotSupportedByProcessor: str + MerchantAccountIdIsInvalid: str + MerchantAccountIsSuspended: str + MerchantAccountIsForbidden: str + MerchantAccountCannotBeSubMerchantAccount: str + AccountTypeIsInvalid: str + AccountTypeNotSupported: str + class PaymentMethod: + CannotForwardPaymentMethodType: str + PaymentMethodParamsAreRequired: str + NonceIsInvalid: str + NonceIsRequired: str + CustomerIdIsRequired: str + CustomerIdIsInvalid: str + PaymentMethodNonceConsumed: str + PaymentMethodNonceUnknown: str + PaymentMethodNonceLocked: str + PaymentMethodNoLongerSupported: str + AuthExpired: str + CannotHaveFundingSourceWithoutAccessToken: str + InvalidFundingSourceSelection: str + CannotUpdatePayPalAccountUsingPaymentMethodNonce: str + class Options: + UsBankAccountVerificationMethodIsInvalid: str + class PayPalAccount: + CannotHaveBothAccessTokenAndConsentCode: str + CannotVaultOneTimeUsePayPalAccount: str + ConsentCodeOrAccessTokenIsRequired: str + CustomerIdIsRequiredForVaulting: str + InvalidParamsForPayPalAccountUpdate: str + PayPalAccountsAreNotAccepted: str + PayPalCommunicationError: str + PaymentMethodNonceConsumed: str + PaymentMethodNonceLocked: str + PaymentMethodNonceUnknown: str + TokenIsInUse: str + class SettlementBatchSummary: + CustomFieldIsInvalid: str + SettlementDateIsInvalid: str + SettlementDateIsRequired: str + class SEPAMandate: + TypeIsRequired: str + IBANInvalidCharacter: str + BICInvalidCharacter: str + BICLengthIsInvalid: str + BICUnsupportedCountry: str + IBANUnsupportedCountry: str + IBANInvalidFormat: str + BillingAddressConflict: str + BillingAddressIdIsInvalid: str + TypeIsInvalid: str + class EuropeBankAccount: + BICIsRequired: str + IBANIsRequired: str + AccountHolderNameIsRequired: str + class Subscription: + BillingDayOfMonthCannotBeUpdated: str + BillingDayOfMonthIsInvalid: str + BillingDayOfMonthMustBeNumeric: str + CannotAddDuplicateAddonOrDiscount: str + CannotEditCanceledSubscription: str + CannotEditExpiredSubscription: str + CannotEditPriceChangingFieldsOnPastDueSubscription: str + FirstBillingDateCannotBeInThePast: str + FirstBillingDateCannotBeUpdated: str + FirstBillingDateIsInvalid: str + IdIsInUse: str + InconsistentNumberOfBillingCycles: str + InconsistentStartDate: str + InvalidRequestFormat: str + MerchantAccountDoesNotSupportInstrumentType: str + MerchantAccountIdIsInvalid: str + MismatchCurrencyISOCode: str + NumberOfBillingCyclesCannotBeBlank: str + NumberOfBillingCyclesIsTooSmall: str + NumberOfBillingCyclesMustBeGreaterThanZero: str + NumberOfBillingCyclesMustBeNumeric: str + PaymentMethodNonceCardTypeIsNotAccepted: str + PaymentMethodNonceInstrumentTypeDoesNotSupportSubscriptions: str + PaymentMethodNonceIsInvalid: str + PaymentMethodNonceNotAssociatedWithCustomer: str + PaymentMethodNonceUnvaultedCardIsNotAccepted: str + PaymentMethodTokenCardTypeIsNotAccepted: str + PaymentMethodTokenInstrumentTypeDoesNotSupportSubscriptions: str + PaymentMethodTokenIsInvalid: str + PaymentMethodTokenNotAssociatedWithCustomer: str + PlanBillingFrequencyCannotBeUpdated: str + PlanIdIsInvalid: str + PriceCannotBeBlank: str + PriceFormatIsInvalid: str + PriceIsTooLarge: str + StatusIsCanceled: str + TokenFormatIsInvalid: str + TrialDurationFormatIsInvalid: str + TrialDurationIsRequired: str + TrialDurationUnitIsInvalid: str + class Modification: + AmountCannotBeBlank: str + AmountIsInvalid: str + AmountIsTooLarge: str + CannotEditModificationsOnPastDueSubscription: str + CannotUpdateAndRemove: str + ExistingIdIsIncorrectKind: str + ExistingIdIsInvalid: str + ExistingIdIsRequired: str + IdToRemoveIsIncorrectKind: str + IdToRemoveIsNotPresent: str + InconsistentNumberOfBillingCycles: str + InheritedFromIdIsInvalid: str + InheritedFromIdIsRequired: str + Missing: str + NumberOfBillingCyclesCannotBeBlank: str + NumberOfBillingCyclesIsInvalid: str + NumberOfBillingCyclesMustBeGreaterThanZero: str + QuantityCannotBeBlank: str + QuantityIsInvalid: str + QuantityMustBeGreaterThanZero: str + IdToRemoveIsInvalid: str + class Transaction: + AdjustmentAmountMustBeGreaterThanZero: str + AmountCannotBeNegative: str + AmountDoesNotMatch3DSecureAmount: str + AmountIsInvalid: str + AmountFormatIsInvalid: str + AmountIsRequired: str + AmountIsTooLarge: str + AmountMustBeGreaterThanZero: str + AmountNotSupportedByProcessor: str + BillingAddressConflict: str + BillingPhoneNumberIsInvalid: str + CannotBeVoided: str + CannotCancelRelease: str + CannotCloneCredit: str + CannotCloneMarketplaceTransaction: str + CannotCloneTransactionWithPayPalAccount: str + CannotCloneTransactionWithVaultCreditCard: str + CannotCloneUnsuccessfulTransaction: str + CannotCloneVoiceAuthorizations: str + CannotHoldInEscrow: str + CannotPartiallyRefundEscrowedTransaction: str + CannotRefundCredit: str + CannotRefundSettlingTransaction: str + CannotRefundUnlessSettled: str + CannotRefundWithPendingMerchantAccount: str + CannotRefundWithSuspendedMerchantAccount: str + CannotReleaseFromEscrow: str + CannotSimulateTransactionSettlement: str + CannotSubmitForPartialSettlement: str + CannotSubmitForSettlement: str + CannotUpdateTransactionDetailsNotSubmittedForSettlement: str + ChannelIsTooLong: str + CreditCardIsRequired: str + CustomFieldIsInvalid: str + CustomFieldIsTooLong: str + CustomerDefaultPaymentMethodCardTypeIsNotAccepted: str + CustomerDoesNotHaveCreditCard: str + CustomerIdIsInvalid: str + DiscountAmountCannotBeNegative: str + DiscountAmountFormatIsInvalid: str + DiscountAmountIsTooLarge: str + ExchangeRateQuoteIdIsTooLong: str + FailedAuthAdjustmentAllowRetry: str + FailedAuthAdjustmentHardDecline: str + FinalAuthSubmitForSettlementForDifferentAmount: str + HasAlreadyBeenRefunded: str + LineItemsExpected: str + MerchantAccountDoesNotMatch3DSecureMerchantAccount: str + MerchantAccountDoesNotSupportMOTO: str + MerchantAccountDoesNotSupportRefunds: str + MerchantAccountIdDoesNotMatchSubscription: str + MerchantAccountIdIsInvalid: str + MerchantAccountIsSuspended: str + NoNetAmountToPerformAuthAdjustment: str + OrderIdIsTooLong: str + PayPalAuthExpired: str + PayPalNotEnabled: str + PayPalVaultRecordMissingData: str + PaymentInstrumentNotSupportedByMerchantAccount: str + PaymentInstrumentTypeIsNotAccepted: str + PaymentInstrumentWithExternalVaultIsInvalid: str + PaymentMethodConflict: str + PaymentMethodConflictWithVenmoSDK: str + PaymentMethodDoesNotBelongToCustomer: str + PaymentMethodDoesNotBelongToSubscription: str + PaymentMethodNonceCardTypeIsNotAccepted: str + PaymentMethodNonceConsumed: str + PaymentMethodNonceHasNoValidPaymentInstrumentType: str + PaymentMethodNonceLocked: str + PaymentMethodNonceUnknown: str + PaymentMethodTokenCardTypeIsNotAccepted: str + PaymentMethodTokenIsInvalid: str + ProcessorAuthorizationCodeCannotBeSet: str + ProcessorAuthorizationCodeIsInvalid: str + ProcessorDoesNotSupportAuths: str + ProcessorDoesNotSupportAuthAdjustment: str + ProcessorDoesNotSupportCredits: str + ProcessorDoesNotSupportIncrementalAuth: str + ProcessorDoesNotSupportMotoForCardType: str + ProcessorDoesNotSupportPartialAuthReversal: str + ProcessorDoesNotSupportPartialSettlement: str + ProcessorDoesNotSupportUpdatingDescriptor: str + ProcessorDoesNotSupportUpdatingOrderId: str + ProcessorDoesNotSupportUpdatingTransactionDetails: str + ProcessorDoesNotSupportVoiceAuthorizations: str + ProductSkuIsInvalid: str + PurchaseOrderNumberIsInvalid: str + PurchaseOrderNumberIsTooLong: str + RefundAmountIsTooLarge: str + RefundAuthHardDeclined: str + RefundAuthSoftDeclined: str + ScaExemptionInvalid: str + ServiceFeeAmountCannotBeNegative: str + ServiceFeeAmountFormatIsInvalid: str + ServiceFeeAmountIsTooLarge: str + ServiceFeeAmountNotAllowedOnMasterMerchantAccount: str + ServiceFeeIsNotAllowedOnCredits: str + ServiceFeeNotAcceptedForPayPal: str + SettlementAmountIsLessThanServiceFeeAmount: str + SettlementAmountIsTooLarge: str + ShippingAddressDoesntMatchCustomer: str + ShippingAmountCannotBeNegative: str + ShippingAmountFormatIsInvalid: str + ShippingAmountIsTooLarge: str + ShippingMethodIsInvalid: str + ShippingPhoneNumberIsInvalid: str + ShipsFromPostalCodeInvalidCharacters: str + ShipsFromPostalCodeIsInvalid: str + ShipsFromPostalCodeIsTooLong: str + SubMerchantAccountRequiresServiceFeeAmount: str + SubscriptionDoesNotBelongToCustomer: str + SubscriptionIdIsInvalid: str + SubscriptionStatusMustBePastDue: str + TaxAmountCannotBeNegative: str + TaxAmountFormatIsInvalid: str + TaxAmountIsRequiredForAibSwedish: str + TaxAmountIsTooLarge: str + ThreeDSecureAuthenticationFailed: str + ThreeDSecureAuthenticationIdDoesntMatchNonceThreeDSecureAuthentication: str + ThreeDSecureAuthenticationIdIsInvalid: str + ThreeDSecureAuthenticationIdWithThreeDSecurePassThruIsInvalid: str + ThreeDSecureAuthenticationResponseIsInvalid: str + ThreeDSecureCavvAlgorithmIsInvalid: str + ThreeDSecureCavvIsRequired: str + ThreeDSecureDirectoryResponseIsInvalid: str + ThreeDSecureEciFlagIsInvalid: str + ThreeDSecureEciFlagIsRequired: str + ThreeDSecureMerchantAccountDoesNotSupportCardType: str + ThreeDSecureTokenIsInvalid: str + ThreeDSecureTransactionDataDoesntMatchVerify: str + ThreeDSecureTransactionPaymentMethodDoesntMatchThreeDSecureAuthenticationPaymentMethod: str + ThreeDSecureXidIsRequired: str + TooManyLineItems: str + TransactionIsNotEligibleForAdjustment: str + TransactionMustBeInStateAuthorized: str + TransactionSourceIsInvalid: str + TypeIsInvalid: str + TypeIsRequired: str + UnsupportedVoiceAuthorization: str + UsBankAccountNonceMustBePlaidVerified: str + UsBankAccountNotVerified: str + class ExternalVault: + StatusIsInvalid: str + StatusWithPreviousNetworkTransactionIdIsInvalid: str + CardTypeIsInvalid: str + PreviousNetworkTransactionIdIsInvalid: str + class Options: + SubmitForSettlementIsRequiredForCloning: str + SubmitForSettlementIsRequiredForPayPalUnilateral: str + UseBillingForShippingDisabled: str + VaultIsDisabled: str + class PayPal: + CustomFieldTooLong: str + class CreditCard: + AccountTypeIsInvalid: str + AccountTypeNotSupported: str + AccountTypeDebitDoesNotSupportAuths: str + class Industry: + IndustryTypeIsInvalid: str + class Lodging: + EmptyData: str + FolioNumberIsInvalid: str + CheckInDateIsInvalid: str + CheckOutDateIsInvalid: str + CheckOutDateMustFollowCheckInDate: str + UnknownDataField: str + RoomRateMustBeGreaterThanZero: str + RoomRateFormatIsInvalid: str + RoomRateIsTooLarge: str + RoomTaxMustBeGreaterThanZero: str + RoomTaxFormatIsInvalid: str + RoomTaxIsTooLarge: str + NoShowIndicatorIsInvalid: str + AdvancedDepositIndicatorIsInvalid: str + FireSafetyIndicatorIsInvalid: str + PropertyPhoneIsInvalid: str + class TravelCruise: + EmptyData: str + UnknownDataField: str + TravelPackageIsInvalid: str + DepartureDateIsInvalid: str + LodgingCheckInDateIsInvalid: str + LodgingCheckOutDateIsInvalid: str + class TravelFlight: + EmptyData: str + UnknownDataField: str + CustomerCodeIsTooLong: str + FareAmountCannotBeNegative: str + FareAmountFormatIsInvalid: str + FareAmountIsTooLarge: str + FeeAmountCannotBeNegative: str + FeeAmountFormatIsInvalid: str + FeeAmountIsTooLarge: str + IssuedDateFormatIsInvalid: str + IssuingCarrierCodeIsTooLong: str + PassengerMiddleInitialIsTooLong: str + RestrictedTicketIsRequired: str + TaxAmountCannotBeNegative: str + TaxAmountFormatIsInvalid: str + TaxAmountIsTooLarge: str + TicketNumberIsTooLong: str + LegsExpected: str + TooManyLegs: str + class Leg: + class TravelFlight: + ArrivalAirportCodeIsTooLong: str + ArrivalTimeFormatIsInvalid: str + CarrierCodeIsTooLong: str + ConjunctionTicketIsTooLong: str + CouponNumberIsTooLong: str + DepartureAirportCodeIsTooLong: str + DepartureTimeFormatIsInvalid: str + ExchangeTicketIsTooLong: str + FareAmountCannotBeNegative: str + FareAmountFormatIsInvalid: str + FareAmountIsTooLarge: str + FareBasisCodeIsTooLong: str + FeeAmountCannotBeNegative: str + FeeAmountFormatIsInvalid: str + FeeAmountIsTooLarge: str + ServiceClassIsTooLong: str + TaxAmountCannotBeNegative: str + TaxAmountFormatIsInvalid: str + TaxAmountIsTooLarge: str + TicketNumberIsTooLong: str + class AdditionalCharge: + KindIsInvalid: str + KindMustBeUnique: str + AmountMustBeGreaterThanZero: str + AmountFormatIsInvalid: str + AmountIsTooLarge: str + AmountIsRequired: str + class LineItem: + CommodityCodeIsTooLong: str + DescriptionIsTooLong: str + DiscountAmountFormatIsInvalid: str + DiscountAmountIsTooLarge: str + DiscountAmountCannotBeNegative: str + KindIsInvalid: str + KindIsRequired: str + NameIsRequired: str + NameIsTooLong: str + ProductCodeIsTooLong: str + QuantityFormatIsInvalid: str + QuantityIsRequired: str + QuantityIsTooLarge: str + TotalAmountFormatIsInvalid: str + TotalAmountIsRequired: str + TotalAmountIsTooLarge: str + TotalAmountMustBeGreaterThanZero: str + UnitAmountFormatIsInvalid: str + UnitAmountIsRequired: str + UnitAmountIsTooLarge: str + UnitAmountMustBeGreaterThanZero: str + UnitOfMeasureIsTooLarge: str + UnitTaxAmountFormatIsInvalid: str + UnitTaxAmountIsTooLarge: str + UnitTaxAmountCannotBeNegative: str + TaxAmountFormatIsInvalid: str + TaxAmountIsTooLarge: str + TaxAmountCannotBeNegative: str + class UsBankAccountVerification: + NotConfirmable: str + MustBeMicroTransfersVerification: str + AmountsDoNotMatch: str + TooManyConfirmationAttempts: str + UnableToConfirmDepositAmounts: str + InvalidDepositAmounts: str + class RiskData: + CustomerBrowserIsTooLong: str + CustomerDeviceIdIsTooLong: str + CustomerLocationZipInvalidCharacters: str + CustomerLocationZipIsInvalid: str + CustomerLocationZipIsTooLong: str + CustomerTenureIsTooLong: str diff --git a/stubs/braintree/braintree/error_result.pyi b/stubs/braintree/braintree/error_result.pyi new file mode 100644 index 000000000..6869df0dc --- /dev/null +++ b/stubs/braintree/braintree/error_result.pyi @@ -0,0 +1,16 @@ +from typing import Any + +from braintree.credit_card_verification import CreditCardVerification as CreditCardVerification +from braintree.errors import Errors as Errors + +class ErrorResult: + params: Any + errors: Any + message: Any + credit_card_verification: Any + transaction: Any + subscription: Any + merchant_account: Any + 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 new file mode 100644 index 000000000..52ee0af53 --- /dev/null +++ b/stubs/braintree/braintree/errors.pyi @@ -0,0 +1,12 @@ +from typing import Any + +from braintree.validation_error_collection import ValidationErrorCollection as ValidationErrorCollection + +class Errors: + errors: Any + size: Any + def __init__(self, data) -> None: ... + @property + def deep_errors(self): ... + def for_object(self, key): ... + def __len__(self): ... diff --git a/stubs/braintree/braintree/europe_bank_account.pyi b/stubs/braintree/braintree/europe_bank_account.pyi new file mode 100644 index 000000000..6c6230c5d --- /dev/null +++ b/stubs/braintree/braintree/europe_bank_account.pyi @@ -0,0 +1,9 @@ +from braintree.configuration import Configuration as Configuration +from braintree.resource import Resource as Resource + +class EuropeBankAccount(Resource): + class MandateType: + Business: str + Consumer: str + @staticmethod + def signature(): ... diff --git a/stubs/braintree/braintree/exceptions/__init__.pyi b/stubs/braintree/braintree/exceptions/__init__.pyi new file mode 100644 index 000000000..343f22a04 --- /dev/null +++ b/stubs/braintree/braintree/exceptions/__init__.pyi @@ -0,0 +1,13 @@ +from braintree.exceptions.authentication_error import AuthenticationError as AuthenticationError +from braintree.exceptions.authorization_error import AuthorizationError as AuthorizationError +from braintree.exceptions.configuration_error import ConfigurationError as ConfigurationError +from braintree.exceptions.gateway_timeout_error import GatewayTimeoutError as GatewayTimeoutError +from braintree.exceptions.invalid_challenge_error import InvalidChallengeError as InvalidChallengeError +from braintree.exceptions.invalid_signature_error import InvalidSignatureError as InvalidSignatureError +from braintree.exceptions.not_found_error import NotFoundError as NotFoundError +from braintree.exceptions.request_timeout_error import RequestTimeoutError as RequestTimeoutError +from braintree.exceptions.server_error import ServerError as ServerError +from braintree.exceptions.service_unavailable_error import ServiceUnavailableError as ServiceUnavailableError +from braintree.exceptions.too_many_requests_error import TooManyRequestsError as TooManyRequestsError +from braintree.exceptions.unexpected_error import UnexpectedError as UnexpectedError +from braintree.exceptions.upgrade_required_error import UpgradeRequiredError as UpgradeRequiredError diff --git a/stubs/braintree/braintree/exceptions/authentication_error.pyi b/stubs/braintree/braintree/exceptions/authentication_error.pyi new file mode 100644 index 000000000..64e3b5702 --- /dev/null +++ b/stubs/braintree/braintree/exceptions/authentication_error.pyi @@ -0,0 +1,3 @@ +from braintree.exceptions.braintree_error import BraintreeError as BraintreeError + +class AuthenticationError(BraintreeError): ... diff --git a/stubs/braintree/braintree/exceptions/authorization_error.pyi b/stubs/braintree/braintree/exceptions/authorization_error.pyi new file mode 100644 index 000000000..e945a78dd --- /dev/null +++ b/stubs/braintree/braintree/exceptions/authorization_error.pyi @@ -0,0 +1,3 @@ +from braintree.exceptions.braintree_error import BraintreeError as BraintreeError + +class AuthorizationError(BraintreeError): ... diff --git a/stubs/braintree/braintree/exceptions/braintree_error.pyi b/stubs/braintree/braintree/exceptions/braintree_error.pyi new file mode 100644 index 000000000..7437f6dc4 --- /dev/null +++ b/stubs/braintree/braintree/exceptions/braintree_error.pyi @@ -0,0 +1 @@ +class BraintreeError(Exception): ... diff --git a/stubs/braintree/braintree/exceptions/configuration_error.pyi b/stubs/braintree/braintree/exceptions/configuration_error.pyi new file mode 100644 index 000000000..abf8cb304 --- /dev/null +++ b/stubs/braintree/braintree/exceptions/configuration_error.pyi @@ -0,0 +1,3 @@ +from braintree.exceptions.unexpected_error import UnexpectedError as UnexpectedError + +class ConfigurationError(UnexpectedError): ... diff --git a/stubs/braintree/braintree/exceptions/gateway_timeout_error.pyi b/stubs/braintree/braintree/exceptions/gateway_timeout_error.pyi new file mode 100644 index 000000000..97a8be4df --- /dev/null +++ b/stubs/braintree/braintree/exceptions/gateway_timeout_error.pyi @@ -0,0 +1,3 @@ +from braintree.exceptions.braintree_error import BraintreeError as BraintreeError + +class GatewayTimeoutError(BraintreeError): ... diff --git a/stubs/braintree/braintree/exceptions/http/__init__.pyi b/stubs/braintree/braintree/exceptions/http/__init__.pyi new file mode 100644 index 000000000..32eda380e --- /dev/null +++ b/stubs/braintree/braintree/exceptions/http/__init__.pyi @@ -0,0 +1,3 @@ +from braintree.exceptions.http.connection_error import ConnectionError as ConnectionError +from braintree.exceptions.http.invalid_response_error import InvalidResponseError as InvalidResponseError +from braintree.exceptions.http.timeout_error import TimeoutError as TimeoutError diff --git a/stubs/braintree/braintree/exceptions/http/connection_error.pyi b/stubs/braintree/braintree/exceptions/http/connection_error.pyi new file mode 100644 index 000000000..05b5c933b --- /dev/null +++ b/stubs/braintree/braintree/exceptions/http/connection_error.pyi @@ -0,0 +1,3 @@ +from braintree.exceptions.unexpected_error import UnexpectedError as UnexpectedError + +class ConnectionError(UnexpectedError): ... diff --git a/stubs/braintree/braintree/exceptions/http/invalid_response_error.pyi b/stubs/braintree/braintree/exceptions/http/invalid_response_error.pyi new file mode 100644 index 000000000..d65b0810f --- /dev/null +++ b/stubs/braintree/braintree/exceptions/http/invalid_response_error.pyi @@ -0,0 +1,3 @@ +from braintree.exceptions.unexpected_error import UnexpectedError as UnexpectedError + +class InvalidResponseError(UnexpectedError): ... diff --git a/stubs/braintree/braintree/exceptions/http/timeout_error.pyi b/stubs/braintree/braintree/exceptions/http/timeout_error.pyi new file mode 100644 index 000000000..b00dbb69a --- /dev/null +++ b/stubs/braintree/braintree/exceptions/http/timeout_error.pyi @@ -0,0 +1,5 @@ +from braintree.exceptions.unexpected_error import UnexpectedError as UnexpectedError + +class TimeoutError(UnexpectedError): ... +class ConnectTimeoutError(TimeoutError): ... +class ReadTimeoutError(TimeoutError): ... diff --git a/stubs/braintree/braintree/exceptions/invalid_challenge_error.pyi b/stubs/braintree/braintree/exceptions/invalid_challenge_error.pyi new file mode 100644 index 000000000..af1f68bf1 --- /dev/null +++ b/stubs/braintree/braintree/exceptions/invalid_challenge_error.pyi @@ -0,0 +1,3 @@ +from braintree.exceptions.braintree_error import BraintreeError as BraintreeError + +class InvalidChallengeError(BraintreeError): ... diff --git a/stubs/braintree/braintree/exceptions/invalid_signature_error.pyi b/stubs/braintree/braintree/exceptions/invalid_signature_error.pyi new file mode 100644 index 000000000..5958f8f58 --- /dev/null +++ b/stubs/braintree/braintree/exceptions/invalid_signature_error.pyi @@ -0,0 +1,3 @@ +from braintree.exceptions.braintree_error import BraintreeError as BraintreeError + +class InvalidSignatureError(BraintreeError): ... diff --git a/stubs/braintree/braintree/exceptions/not_found_error.pyi b/stubs/braintree/braintree/exceptions/not_found_error.pyi new file mode 100644 index 000000000..50fb02f7f --- /dev/null +++ b/stubs/braintree/braintree/exceptions/not_found_error.pyi @@ -0,0 +1,3 @@ +from braintree.exceptions.braintree_error import BraintreeError as BraintreeError + +class NotFoundError(BraintreeError): ... diff --git a/stubs/braintree/braintree/exceptions/request_timeout_error.pyi b/stubs/braintree/braintree/exceptions/request_timeout_error.pyi new file mode 100644 index 000000000..65ab265df --- /dev/null +++ b/stubs/braintree/braintree/exceptions/request_timeout_error.pyi @@ -0,0 +1,3 @@ +from braintree.exceptions.braintree_error import BraintreeError as BraintreeError + +class RequestTimeoutError(BraintreeError): ... diff --git a/stubs/braintree/braintree/exceptions/server_error.pyi b/stubs/braintree/braintree/exceptions/server_error.pyi new file mode 100644 index 000000000..1ccc2bed7 --- /dev/null +++ b/stubs/braintree/braintree/exceptions/server_error.pyi @@ -0,0 +1,3 @@ +from braintree.exceptions.braintree_error import BraintreeError as BraintreeError + +class ServerError(BraintreeError): ... diff --git a/stubs/braintree/braintree/exceptions/service_unavailable_error.pyi b/stubs/braintree/braintree/exceptions/service_unavailable_error.pyi new file mode 100644 index 000000000..d51469ac7 --- /dev/null +++ b/stubs/braintree/braintree/exceptions/service_unavailable_error.pyi @@ -0,0 +1,3 @@ +from braintree.exceptions.braintree_error import BraintreeError as BraintreeError + +class ServiceUnavailableError(BraintreeError): ... diff --git a/stubs/braintree/braintree/exceptions/too_many_requests_error.pyi b/stubs/braintree/braintree/exceptions/too_many_requests_error.pyi new file mode 100644 index 000000000..1980fcb46 --- /dev/null +++ b/stubs/braintree/braintree/exceptions/too_many_requests_error.pyi @@ -0,0 +1,3 @@ +from braintree.exceptions.braintree_error import BraintreeError as BraintreeError + +class TooManyRequestsError(BraintreeError): ... diff --git a/stubs/braintree/braintree/exceptions/unexpected_error.pyi b/stubs/braintree/braintree/exceptions/unexpected_error.pyi new file mode 100644 index 000000000..c141ae5f2 --- /dev/null +++ b/stubs/braintree/braintree/exceptions/unexpected_error.pyi @@ -0,0 +1,3 @@ +from braintree.exceptions.braintree_error import BraintreeError as BraintreeError + +class UnexpectedError(BraintreeError): ... diff --git a/stubs/braintree/braintree/exceptions/upgrade_required_error.pyi b/stubs/braintree/braintree/exceptions/upgrade_required_error.pyi new file mode 100644 index 000000000..feae59a29 --- /dev/null +++ b/stubs/braintree/braintree/exceptions/upgrade_required_error.pyi @@ -0,0 +1,3 @@ +from braintree.exceptions.braintree_error import BraintreeError as BraintreeError + +class UpgradeRequiredError(BraintreeError): ... diff --git a/stubs/braintree/braintree/facilitated_details.pyi b/stubs/braintree/braintree/facilitated_details.pyi new file mode 100644 index 000000000..724f3f181 --- /dev/null +++ b/stubs/braintree/braintree/facilitated_details.pyi @@ -0,0 +1,3 @@ +from braintree.attribute_getter import AttributeGetter as AttributeGetter + +class FacilitatedDetails(AttributeGetter): ... diff --git a/stubs/braintree/braintree/facilitator_details.pyi b/stubs/braintree/braintree/facilitator_details.pyi new file mode 100644 index 000000000..0557e2d1d --- /dev/null +++ b/stubs/braintree/braintree/facilitator_details.pyi @@ -0,0 +1,3 @@ +from braintree.attribute_getter import AttributeGetter as AttributeGetter + +class FacilitatorDetails(AttributeGetter): ... diff --git a/stubs/braintree/braintree/granted_payment_instrument_update.pyi b/stubs/braintree/braintree/granted_payment_instrument_update.pyi new file mode 100644 index 000000000..73219712d --- /dev/null +++ b/stubs/braintree/braintree/granted_payment_instrument_update.pyi @@ -0,0 +1,7 @@ +from typing import Any + +from braintree.resource import Resource as Resource + +class GrantedPaymentInstrumentUpdate(Resource): + payment_method_nonce: Any + def __init__(self, gateway, attributes) -> None: ... diff --git a/stubs/braintree/braintree/iban_bank_account.pyi b/stubs/braintree/braintree/iban_bank_account.pyi new file mode 100644 index 000000000..b8c25aba2 --- /dev/null +++ b/stubs/braintree/braintree/iban_bank_account.pyi @@ -0,0 +1,3 @@ +from braintree.resource import Resource as Resource + +class IbanBankAccount(Resource): ... diff --git a/stubs/braintree/braintree/ids_search.pyi b/stubs/braintree/braintree/ids_search.pyi new file mode 100644 index 000000000..db017bb7e --- /dev/null +++ b/stubs/braintree/braintree/ids_search.pyi @@ -0,0 +1,6 @@ +from typing import Any + +from braintree.search import Search as Search + +class IdsSearch: + ids: Any diff --git a/stubs/braintree/braintree/local_payment.pyi b/stubs/braintree/braintree/local_payment.pyi new file mode 100644 index 000000000..355a1c486 --- /dev/null +++ b/stubs/braintree/braintree/local_payment.pyi @@ -0,0 +1,3 @@ +from braintree.resource import Resource as Resource + +class LocalPayment(Resource): ... diff --git a/stubs/braintree/braintree/local_payment_completed.pyi b/stubs/braintree/braintree/local_payment_completed.pyi new file mode 100644 index 000000000..ff8e4ca88 --- /dev/null +++ b/stubs/braintree/braintree/local_payment_completed.pyi @@ -0,0 +1,8 @@ +from typing import Any + +from braintree.resource import Resource as Resource +from braintree.transaction import Transaction as Transaction + +class LocalPaymentCompleted(Resource): + transaction: Any + def __init__(self, gateway, attributes) -> None: ... diff --git a/stubs/braintree/braintree/local_payment_reversed.pyi b/stubs/braintree/braintree/local_payment_reversed.pyi new file mode 100644 index 000000000..be538ec76 --- /dev/null +++ b/stubs/braintree/braintree/local_payment_reversed.pyi @@ -0,0 +1,4 @@ +from braintree.resource import Resource as Resource + +class LocalPaymentReversed(Resource): + def __init__(self, gateway, attributes) -> None: ... diff --git a/stubs/braintree/braintree/masterpass_card.pyi b/stubs/braintree/braintree/masterpass_card.pyi new file mode 100644 index 000000000..2921f9b87 --- /dev/null +++ b/stubs/braintree/braintree/masterpass_card.pyi @@ -0,0 +1,13 @@ +from typing import Any + +from braintree.address import Address as Address +from braintree.resource import Resource as Resource + +class MasterpassCard(Resource): + billing_address: Any + subscriptions: Any + def __init__(self, gateway, attributes) -> None: ... + @property + def expiration_date(self): ... + @property + def masked_number(self): ... diff --git a/stubs/braintree/braintree/merchant.pyi b/stubs/braintree/braintree/merchant.pyi new file mode 100644 index 000000000..4a80756aa --- /dev/null +++ b/stubs/braintree/braintree/merchant.pyi @@ -0,0 +1,8 @@ +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 + def __init__(self, gateway, attributes) -> None: ... diff --git a/stubs/braintree/braintree/merchant_account/__init__.pyi b/stubs/braintree/braintree/merchant_account/__init__.pyi new file mode 100644 index 000000000..743f6fa81 --- /dev/null +++ b/stubs/braintree/braintree/merchant_account/__init__.pyi @@ -0,0 +1,4 @@ +from braintree.merchant_account.business_details import BusinessDetails as BusinessDetails +from braintree.merchant_account.funding_details import FundingDetails as FundingDetails +from braintree.merchant_account.individual_details import IndividualDetails as IndividualDetails +from braintree.merchant_account.merchant_account import MerchantAccount as MerchantAccount diff --git a/stubs/braintree/braintree/merchant_account/address_details.pyi b/stubs/braintree/braintree/merchant_account/address_details.pyi new file mode 100644 index 000000000..3a3a9aacd --- /dev/null +++ b/stubs/braintree/braintree/merchant_account/address_details.pyi @@ -0,0 +1,7 @@ +from typing import Any + +from braintree.attribute_getter import AttributeGetter as AttributeGetter + +class AddressDetails(AttributeGetter): + detail_list: Any + 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 new file mode 100644 index 000000000..d5800497d --- /dev/null +++ b/stubs/braintree/braintree/merchant_account/business_details.pyi @@ -0,0 +1,9 @@ +from typing import Any + +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 + 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 new file mode 100644 index 000000000..220e767f3 --- /dev/null +++ b/stubs/braintree/braintree/merchant_account/funding_details.pyi @@ -0,0 +1,7 @@ +from typing import Any + +from braintree.attribute_getter import AttributeGetter as AttributeGetter + +class FundingDetails(AttributeGetter): + detail_list: Any + 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 new file mode 100644 index 000000000..1f07477ac --- /dev/null +++ b/stubs/braintree/braintree/merchant_account/individual_details.pyi @@ -0,0 +1,9 @@ +from typing import Any + +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 + 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 new file mode 100644 index 000000000..4bdb762ef --- /dev/null +++ b/stubs/braintree/braintree/merchant_account/merchant_account.pyi @@ -0,0 +1,31 @@ +from typing import Any + +from braintree.configuration import Configuration as Configuration +from braintree.merchant_account import ( + BusinessDetails as BusinessDetails, + FundingDetails as FundingDetails, + IndividualDetails as IndividualDetails, +) +from braintree.resource import Resource as Resource + +class MerchantAccount(Resource): + class Status: + Active: str + Pending: str + Suspended: str + class FundingDestination: + Bank: str + Email: str + MobilePhone: str + FundingDestinations: Any + individual_details: Any + business_details: Any + funding_details: Any + master_merchant_account: Any + def __init__(self, gateway, attributes) -> None: ... + @staticmethod + def create(params: Any | None = ...): ... + @staticmethod + def update(id, attributes): ... + @staticmethod + def find(id): ... diff --git a/stubs/braintree/braintree/merchant_account_gateway.pyi b/stubs/braintree/braintree/merchant_account_gateway.pyi new file mode 100644 index 000000000..5d653eab7 --- /dev/null +++ b/stubs/braintree/braintree/merchant_account_gateway.pyi @@ -0,0 +1,20 @@ +from typing import Any + +from braintree.error_result import ErrorResult as ErrorResult +from braintree.exceptions.not_found_error import NotFoundError as NotFoundError +from braintree.merchant_account import MerchantAccount as MerchantAccount +from braintree.paginated_collection import PaginatedCollection as PaginatedCollection +from braintree.paginated_result import PaginatedResult as PaginatedResult +from braintree.resource import Resource as Resource +from braintree.resource_collection import ResourceCollection as ResourceCollection +from braintree.successful_result import SuccessfulResult as SuccessfulResult + +class MerchantAccountGateway: + gateway: Any + config: Any + def __init__(self, gateway) -> None: ... + def create(self, params: Any | None = ...): ... + def update(self, merchant_account_id, params: Any | None = ...): ... + def find(self, merchant_account_id): ... + def create_for_currency(self, params: Any | None = ...): ... + def all(self): ... diff --git a/stubs/braintree/braintree/merchant_gateway.pyi b/stubs/braintree/braintree/merchant_gateway.pyi new file mode 100644 index 000000000..efbbaaf43 --- /dev/null +++ b/stubs/braintree/braintree/merchant_gateway.pyi @@ -0,0 +1,15 @@ +from typing import Any + +from braintree.error_result import ErrorResult as ErrorResult +from braintree.exceptions.not_found_error import NotFoundError as NotFoundError +from braintree.merchant import Merchant as Merchant +from braintree.oauth_credentials import OAuthCredentials as OAuthCredentials +from braintree.resource import Resource as Resource +from braintree.resource_collection import ResourceCollection as ResourceCollection +from braintree.successful_result import SuccessfulResult as SuccessfulResult + +class MerchantGateway: + gateway: Any + config: Any + def __init__(self, gateway) -> None: ... + def create(self, params): ... diff --git a/stubs/braintree/braintree/modification.pyi b/stubs/braintree/braintree/modification.pyi new file mode 100644 index 000000000..e55fa128b --- /dev/null +++ b/stubs/braintree/braintree/modification.pyi @@ -0,0 +1,7 @@ +from typing import Any + +from braintree.resource import Resource as Resource + +class Modification(Resource): + amount: Any + def __init__(self, gateway, attributes) -> None: ... diff --git a/stubs/braintree/braintree/oauth_access_revocation.pyi b/stubs/braintree/braintree/oauth_access_revocation.pyi new file mode 100644 index 000000000..579dccac8 --- /dev/null +++ b/stubs/braintree/braintree/oauth_access_revocation.pyi @@ -0,0 +1,4 @@ +from braintree.resource import Resource as Resource + +class OAuthAccessRevocation(Resource): + def __init__(self, attributes) -> None: ... diff --git a/stubs/braintree/braintree/oauth_credentials.pyi b/stubs/braintree/braintree/oauth_credentials.pyi new file mode 100644 index 000000000..487034ade --- /dev/null +++ b/stubs/braintree/braintree/oauth_credentials.pyi @@ -0,0 +1,3 @@ +from braintree.resource import Resource as Resource + +class OAuthCredentials(Resource): ... diff --git a/stubs/braintree/braintree/oauth_gateway.pyi b/stubs/braintree/braintree/oauth_gateway.pyi new file mode 100644 index 000000000..096dfbc72 --- /dev/null +++ b/stubs/braintree/braintree/oauth_gateway.pyi @@ -0,0 +1,15 @@ +from typing import Any + +from braintree.error_result import ErrorResult as ErrorResult +from braintree.exceptions.not_found_error import NotFoundError as NotFoundError +from braintree.oauth_credentials import OAuthCredentials as OAuthCredentials +from braintree.successful_result import SuccessfulResult as SuccessfulResult + +class OAuthGateway: + gateway: Any + config: Any + def __init__(self, gateway) -> None: ... + def create_token_from_code(self, params): ... + def create_token_from_refresh_token(self, params): ... + def revoke_access_token(self, access_token): ... + def connect_url(self, raw_params): ... diff --git a/stubs/braintree/braintree/paginated_collection.pyi b/stubs/braintree/braintree/paginated_collection.pyi new file mode 100644 index 000000000..3e2182f6d --- /dev/null +++ b/stubs/braintree/braintree/paginated_collection.pyi @@ -0,0 +1,8 @@ +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 __iter__(self): ... diff --git a/stubs/braintree/braintree/paginated_result.pyi b/stubs/braintree/braintree/paginated_result.pyi new file mode 100644 index 000000000..a7bbb385e --- /dev/null +++ b/stubs/braintree/braintree/paginated_result.pyi @@ -0,0 +1,7 @@ +from typing import Any + +class PaginatedResult: + total_items: Any + page_size: Any + current_page: Any + 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 new file mode 100644 index 000000000..06ea8c9f1 --- /dev/null +++ b/stubs/braintree/braintree/partner_merchant.pyi @@ -0,0 +1,12 @@ +from typing import Any + +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 + def __init__(self, gateway, attributes) -> None: ... diff --git a/stubs/braintree/braintree/payment_instrument_type.pyi b/stubs/braintree/braintree/payment_instrument_type.pyi new file mode 100644 index 000000000..b19e7d840 --- /dev/null +++ b/stubs/braintree/braintree/payment_instrument_type.pyi @@ -0,0 +1,14 @@ +class PaymentInstrumentType: + PayPalAccount: str + PayPalHere: str + EuropeBankAccount: str + CreditCard: str + ApplePayCard: str + AndroidPayCard: str + AmexExpressCheckoutCard: str + VenmoAccount: str + UsBankAccount: str + VisaCheckoutCard: str + MasterpassCard: str + SamsungPayCard: str + LocalPayment: str diff --git a/stubs/braintree/braintree/payment_method.pyi b/stubs/braintree/braintree/payment_method.pyi new file mode 100644 index 000000000..acb99aaca --- /dev/null +++ b/stubs/braintree/braintree/payment_method.pyi @@ -0,0 +1,23 @@ +from typing import Any + +from braintree.address import Address as Address +from braintree.configuration import Configuration as Configuration +from braintree.resource import Resource as Resource + +class PaymentMethod(Resource): + @staticmethod + def create(params: Any | None = ...): ... + @staticmethod + def find(payment_method_token): ... + @staticmethod + def update(payment_method_token, params): ... + @staticmethod + def delete(payment_method_token, options: Any | None = ...): ... + @staticmethod + def create_signature(): ... + @staticmethod + def signature(type): ... + @staticmethod + def update_signature(): ... + @staticmethod + def delete_signature(): ... diff --git a/stubs/braintree/braintree/payment_method_gateway.pyi b/stubs/braintree/braintree/payment_method_gateway.pyi new file mode 100644 index 000000000..370f0aafb --- /dev/null +++ b/stubs/braintree/braintree/payment_method_gateway.pyi @@ -0,0 +1,35 @@ +from typing import Any + +from braintree.amex_express_checkout_card import AmexExpressCheckoutCard as AmexExpressCheckoutCard +from braintree.android_pay_card import AndroidPayCard as AndroidPayCard +from braintree.apple_pay_card import ApplePayCard as ApplePayCard +from braintree.credit_card import CreditCard as CreditCard +from braintree.error_result import ErrorResult as ErrorResult +from braintree.europe_bank_account import EuropeBankAccount as EuropeBankAccount +from braintree.exceptions.not_found_error import NotFoundError as NotFoundError +from braintree.ids_search import IdsSearch as IdsSearch +from braintree.masterpass_card import MasterpassCard as MasterpassCard +from braintree.payment_method import PaymentMethod as PaymentMethod +from braintree.payment_method_nonce import PaymentMethodNonce as PaymentMethodNonce +from braintree.payment_method_parser import parse_payment_method as parse_payment_method +from braintree.paypal_account import PayPalAccount as PayPalAccount +from braintree.resource import Resource as Resource +from braintree.resource_collection import ResourceCollection as ResourceCollection +from braintree.samsung_pay_card import SamsungPayCard as SamsungPayCard +from braintree.successful_result import SuccessfulResult as SuccessfulResult +from braintree.unknown_payment_method import UnknownPaymentMethod as UnknownPaymentMethod +from braintree.us_bank_account import UsBankAccount as UsBankAccount +from braintree.venmo_account import VenmoAccount as VenmoAccount +from braintree.visa_checkout_card import VisaCheckoutCard as VisaCheckoutCard + +class PaymentMethodGateway: + gateway: Any + config: Any + def __init__(self, gateway) -> None: ... + def create(self, params: Any | None = ...): ... + def find(self, payment_method_token): ... + def update(self, payment_method_token, params): ... + def delete(self, payment_method_token, options: Any | None = ...): ... + options: Any + def grant(self, payment_method_token, options: Any | 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 new file mode 100644 index 000000000..35a804c8e --- /dev/null +++ b/stubs/braintree/braintree/payment_method_nonce.pyi @@ -0,0 +1,16 @@ +from typing import Any + +from braintree.bin_data import BinData as BinData +from braintree.configuration import Configuration as Configuration +from braintree.resource import Resource as Resource +from braintree.three_d_secure_info import ThreeDSecureInfo as ThreeDSecureInfo + +class PaymentMethodNonce(Resource): + @staticmethod + def create(payment_method_token, params=...): ... + @staticmethod + def find(payment_method_nonce): ... + three_d_secure_info: Any + authentication_insight: Any + bin_data: Any + 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 new file mode 100644 index 000000000..a8bd929d4 --- /dev/null +++ b/stubs/braintree/braintree/payment_method_nonce_gateway.pyi @@ -0,0 +1,15 @@ +from typing import Any + +from braintree.error_result import ErrorResult as ErrorResult +from braintree.exceptions.not_found_error import NotFoundError as NotFoundError +from braintree.payment_method_nonce import PaymentMethodNonce as PaymentMethodNonce +from braintree.resource import Resource as Resource +from braintree.resource_collection import ResourceCollection as ResourceCollection +from braintree.successful_result import SuccessfulResult as SuccessfulResult + +class PaymentMethodNonceGateway: + gateway: Any + config: Any + def __init__(self, gateway) -> None: ... + def create(self, payment_method_token, params=...): ... + def find(self, payment_method_nonce): ... diff --git a/stubs/braintree/braintree/payment_method_parser.pyi b/stubs/braintree/braintree/payment_method_parser.pyi new file mode 100644 index 000000000..17d9fb752 --- /dev/null +++ b/stubs/braintree/braintree/payment_method_parser.pyi @@ -0,0 +1,15 @@ +from braintree.amex_express_checkout_card import AmexExpressCheckoutCard as AmexExpressCheckoutCard +from braintree.android_pay_card import AndroidPayCard as AndroidPayCard +from braintree.apple_pay_card import ApplePayCard as ApplePayCard +from braintree.credit_card import CreditCard as CreditCard +from braintree.europe_bank_account import EuropeBankAccount as EuropeBankAccount +from braintree.masterpass_card import MasterpassCard as MasterpassCard +from braintree.payment_method import PaymentMethod as PaymentMethod +from braintree.paypal_account import PayPalAccount as PayPalAccount +from braintree.samsung_pay_card import SamsungPayCard as SamsungPayCard +from braintree.unknown_payment_method import UnknownPaymentMethod as UnknownPaymentMethod +from braintree.us_bank_account import UsBankAccount as UsBankAccount +from braintree.venmo_account import VenmoAccount as VenmoAccount +from braintree.visa_checkout_card import VisaCheckoutCard as VisaCheckoutCard + +def parse_payment_method(gateway, attributes): ... diff --git a/stubs/braintree/braintree/paypal_account.pyi b/stubs/braintree/braintree/paypal_account.pyi new file mode 100644 index 000000000..24a0e923b --- /dev/null +++ b/stubs/braintree/braintree/paypal_account.pyi @@ -0,0 +1,16 @@ +from typing import Any + +from braintree.configuration import Configuration as Configuration +from braintree.resource import Resource as Resource + +class PayPalAccount(Resource): + @staticmethod + def find(paypal_account_token): ... + @staticmethod + def delete(paypal_account_token): ... + @staticmethod + def update(paypal_account_token, params: Any | None = ...): ... + @staticmethod + def signature(): ... + subscriptions: Any + def __init__(self, gateway, attributes) -> None: ... diff --git a/stubs/braintree/braintree/paypal_account_gateway.pyi b/stubs/braintree/braintree/paypal_account_gateway.pyi new file mode 100644 index 000000000..fa7a306c0 --- /dev/null +++ b/stubs/braintree/braintree/paypal_account_gateway.pyi @@ -0,0 +1,15 @@ +from typing import Any + +from braintree.error_result import ErrorResult as ErrorResult +from braintree.exceptions.not_found_error import NotFoundError as NotFoundError +from braintree.paypal_account import PayPalAccount as PayPalAccount +from braintree.resource import Resource as Resource +from braintree.successful_result import SuccessfulResult as SuccessfulResult + +class PayPalAccountGateway: + gateway: Any + config: Any + def __init__(self, gateway) -> None: ... + def find(self, paypal_account_token): ... + def delete(self, paypal_account_token): ... + def update(self, paypal_account_token, params: Any | None = ...): ... diff --git a/stubs/braintree/braintree/paypal_here.pyi b/stubs/braintree/braintree/paypal_here.pyi new file mode 100644 index 000000000..6bfd845a3 --- /dev/null +++ b/stubs/braintree/braintree/paypal_here.pyi @@ -0,0 +1,4 @@ +from braintree.resource import Resource as Resource + +class PayPalHere(Resource): + def __init__(self, gateway, attributes) -> None: ... diff --git a/stubs/braintree/braintree/plan.pyi b/stubs/braintree/braintree/plan.pyi new file mode 100644 index 000000000..8ff3bcd56 --- /dev/null +++ b/stubs/braintree/braintree/plan.pyi @@ -0,0 +1,15 @@ +from typing import Any + +from braintree.add_on import AddOn as AddOn +from braintree.configuration import Configuration as Configuration +from braintree.discount import Discount as Discount +from braintree.resource import Resource as Resource +from braintree.resource_collection import ResourceCollection as ResourceCollection +from braintree.util.http import Http as Http + +class Plan(Resource): + add_ons: Any + discounts: Any + 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 new file mode 100644 index 000000000..61b37eb77 --- /dev/null +++ b/stubs/braintree/braintree/plan_gateway.pyi @@ -0,0 +1,14 @@ +from typing import Any + +from braintree.error_result import ErrorResult as ErrorResult +from braintree.exceptions.not_found_error import NotFoundError as NotFoundError +from braintree.plan import Plan as Plan +from braintree.resource import Resource as Resource +from braintree.resource_collection import ResourceCollection as ResourceCollection +from braintree.successful_result import SuccessfulResult as SuccessfulResult + +class PlanGateway: + gateway: Any + config: Any + def __init__(self, gateway) -> None: ... + def all(self): ... diff --git a/stubs/braintree/braintree/processor_response_types.pyi b/stubs/braintree/braintree/processor_response_types.pyi new file mode 100644 index 000000000..d17a9841f --- /dev/null +++ b/stubs/braintree/braintree/processor_response_types.pyi @@ -0,0 +1,4 @@ +class ProcessorResponseTypes: + Approved: str + SoftDeclined: str + HardDeclined: str diff --git a/stubs/braintree/braintree/resource.pyi b/stubs/braintree/braintree/resource.pyi new file mode 100644 index 000000000..1bda49752 --- /dev/null +++ b/stubs/braintree/braintree/resource.pyi @@ -0,0 +1,12 @@ +from typing import Any + +from braintree.attribute_getter import AttributeGetter as AttributeGetter + +text_type = str +raw_type = bytes + +class Resource(AttributeGetter): + @staticmethod + def verify_keys(params, signature) -> None: ... + gateway: Any + def __init__(self, gateway, attributes) -> None: ... diff --git a/stubs/braintree/braintree/resource_collection.pyi b/stubs/braintree/braintree/resource_collection.pyi new file mode 100644 index 000000000..6028d17f8 --- /dev/null +++ b/stubs/braintree/braintree/resource_collection.pyi @@ -0,0 +1,16 @@ +from collections.abc import Generator +from typing import Any + +from braintree.exceptions.unexpected_error import UnexpectedError as UnexpectedError + +class ResourceCollection: + def __init__(self, query, results, method) -> None: ... + @property + def maximum_size(self): ... + @property + def first(self): ... + @property + def items(self) -> Generator[Any, 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 new file mode 100644 index 000000000..60358ffb5 --- /dev/null +++ b/stubs/braintree/braintree/revoked_payment_method_metadata.pyi @@ -0,0 +1,10 @@ +from typing import Any + +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 + def __init__(self, gateway, attributes) -> None: ... diff --git a/stubs/braintree/braintree/risk_data.pyi b/stubs/braintree/braintree/risk_data.pyi new file mode 100644 index 000000000..b0b1c61b8 --- /dev/null +++ b/stubs/braintree/braintree/risk_data.pyi @@ -0,0 +1,3 @@ +from braintree.attribute_getter import AttributeGetter as AttributeGetter + +class RiskData(AttributeGetter): ... diff --git a/stubs/braintree/braintree/samsung_pay_card.pyi b/stubs/braintree/braintree/samsung_pay_card.pyi new file mode 100644 index 000000000..ce734bb21 --- /dev/null +++ b/stubs/braintree/braintree/samsung_pay_card.pyi @@ -0,0 +1,13 @@ +from typing import Any + +from braintree.address import Address as Address +from braintree.resource import Resource as Resource + +class SamsungPayCard(Resource): + billing_address: Any + subscriptions: Any + def __init__(self, gateway, attributes) -> None: ... + @property + def expiration_date(self): ... + @property + def masked_number(self): ... diff --git a/stubs/braintree/braintree/search.pyi b/stubs/braintree/braintree/search.pyi new file mode 100644 index 000000000..a9449ff61 --- /dev/null +++ b/stubs/braintree/braintree/search.pyi @@ -0,0 +1,50 @@ +from typing import Any + +class Search: + class IsNodeBuilder: + name: Any + def __init__(self, name) -> None: ... + def __eq__(self, value): ... + def is_equal(self, value): ... + class EqualityNodeBuilder(IsNodeBuilder): + def __ne__(self, value): ... + def is_not_equal(self, value): ... + class KeyValueNodeBuilder: + name: Any + def __init__(self, name) -> None: ... + def __eq__(self, value): ... + def is_equal(self, value): ... + def __ne__(self, value): ... + def is_not_equal(self, value): ... + class PartialMatchNodeBuilder(EqualityNodeBuilder): + def starts_with(self, value): ... + def ends_with(self, value): ... + class EndsWithNodeBuilder: + name: Any + def __init__(self, name) -> None: ... + def ends_with(self, value): ... + class TextNodeBuilder(PartialMatchNodeBuilder): + def contains(self, value): ... + class Node: + name: Any + dict: Any + def __init__(self, name, dict) -> None: ... + def to_param(self): ... + class MultipleValueNodeBuilder: + name: Any + whitelist: Any + def __init__(self, name, whitelist=...) -> None: ... + def in_list(self, *values): ... + def __eq__(self, value): ... + class MultipleValueOrTextNodeBuilder(TextNodeBuilder, MultipleValueNodeBuilder): + def __init__(self, name, whitelist=...) -> None: ... + class RangeNodeBuilder: + name: Any + def __init__(self, name) -> None: ... + def __eq__(self, value): ... + def is_equal(self, value): ... + def __ge__(self, min): ... + def greater_than_or_equal_to(self, min): ... + def __le__(self, max): ... + def less_than_or_equal_to(self, max): ... + def between(self, min, max): ... diff --git a/stubs/braintree/braintree/settlement_batch_summary.pyi b/stubs/braintree/braintree/settlement_batch_summary.pyi new file mode 100644 index 000000000..6b0a85411 --- /dev/null +++ b/stubs/braintree/braintree/settlement_batch_summary.pyi @@ -0,0 +1,13 @@ +from typing import Any + +from braintree.configuration import Configuration as Configuration +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.resource_collection import ResourceCollection as ResourceCollection +from braintree.successful_result import SuccessfulResult as SuccessfulResult +from braintree.util.http import Http as Http + +class SettlementBatchSummary(Resource): + @staticmethod + def generate(settlement_date, group_by_custom_field: Any | None = ...): ... diff --git a/stubs/braintree/braintree/settlement_batch_summary_gateway.pyi b/stubs/braintree/braintree/settlement_batch_summary_gateway.pyi new file mode 100644 index 000000000..31644a727 --- /dev/null +++ b/stubs/braintree/braintree/settlement_batch_summary_gateway.pyi @@ -0,0 +1,12 @@ +from typing import Any + +from braintree.error_result import ErrorResult as ErrorResult +from braintree.resource import Resource as Resource +from braintree.settlement_batch_summary import SettlementBatchSummary as SettlementBatchSummary +from braintree.successful_result import SuccessfulResult as SuccessfulResult + +class SettlementBatchSummaryGateway: + gateway: Any + config: Any + def __init__(self, gateway) -> None: ... + def generate(self, settlement_date, group_by_custom_field: Any | None = ...): ... diff --git a/stubs/braintree/braintree/signature_service.pyi b/stubs/braintree/braintree/signature_service.pyi new file mode 100644 index 000000000..abe5ff8b3 --- /dev/null +++ b/stubs/braintree/braintree/signature_service.pyi @@ -0,0 +1,10 @@ +from typing import Any + +from braintree.util.crypto import Crypto as Crypto + +class SignatureService: + private_key: Any + hmac_hash: Any + 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 new file mode 100644 index 000000000..b4110a2f4 --- /dev/null +++ b/stubs/braintree/braintree/status_event.pyi @@ -0,0 +1,7 @@ +from typing import Any + +from braintree.resource import Resource as Resource + +class StatusEvent(Resource): + amount: Any + def __init__(self, gateway, attributes) -> None: ... diff --git a/stubs/braintree/braintree/subscription.pyi b/stubs/braintree/braintree/subscription.pyi new file mode 100644 index 000000000..33aa2bc44 --- /dev/null +++ b/stubs/braintree/braintree/subscription.pyi @@ -0,0 +1,55 @@ +from typing import Any + +from braintree.add_on import AddOn as AddOn +from braintree.configuration import Configuration as Configuration +from braintree.descriptor import Descriptor as Descriptor +from braintree.discount import Discount as Discount +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.resource_collection import ResourceCollection as ResourceCollection +from braintree.subscription_status_event import SubscriptionStatusEvent as SubscriptionStatusEvent +from braintree.successful_result import SuccessfulResult as SuccessfulResult +from braintree.transaction import Transaction as Transaction +from braintree.util.http import Http as Http + +class Subscription(Resource): + class TrialDurationUnit: + Day: str + Month: str + class Source: + Api: str + ControlPanel: str + Recurring: str + class Status: + Active: str + Canceled: str + Expired: str + PastDue: str + Pending: str + @staticmethod + def create(params: Any | None = ...): ... + @staticmethod + def create_signature(): ... + @staticmethod + def find(subscription_id): ... + @staticmethod + def retry_charge(subscription_id, amount: Any | None = ..., submit_for_settlement: bool = ...): ... + @staticmethod + def update(subscription_id, params: Any | None = ...): ... + @staticmethod + def cancel(subscription_id): ... + @staticmethod + 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 + def __init__(self, gateway, attributes) -> None: ... diff --git a/stubs/braintree/braintree/subscription_details.pyi b/stubs/braintree/braintree/subscription_details.pyi new file mode 100644 index 000000000..f54a2419f --- /dev/null +++ b/stubs/braintree/braintree/subscription_details.pyi @@ -0,0 +1,3 @@ +from braintree.attribute_getter import AttributeGetter as AttributeGetter + +class SubscriptionDetails(AttributeGetter): ... diff --git a/stubs/braintree/braintree/subscription_gateway.pyi b/stubs/braintree/braintree/subscription_gateway.pyi new file mode 100644 index 000000000..766dc57e6 --- /dev/null +++ b/stubs/braintree/braintree/subscription_gateway.pyi @@ -0,0 +1,20 @@ +from typing import Any + +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.resource_collection import ResourceCollection as ResourceCollection +from braintree.subscription import Subscription as Subscription +from braintree.successful_result import SuccessfulResult as SuccessfulResult +from braintree.transaction import Transaction as Transaction + +class SubscriptionGateway: + gateway: Any + config: Any + def __init__(self, gateway) -> None: ... + def cancel(self, subscription_id): ... + def create(self, params: Any | None = ...): ... + def find(self, subscription_id): ... + def retry_charge(self, subscription_id, amount: Any | None = ..., submit_for_settlement: bool = ...): ... + def search(self, *query): ... + def update(self, subscription_id, params: Any | None = ...): ... diff --git a/stubs/braintree/braintree/subscription_search.pyi b/stubs/braintree/braintree/subscription_search.pyi new file mode 100644 index 000000000..43f7759d2 --- /dev/null +++ b/stubs/braintree/braintree/subscription_search.pyi @@ -0,0 +1,19 @@ +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 diff --git a/stubs/braintree/braintree/subscription_status_event.pyi b/stubs/braintree/braintree/subscription_status_event.pyi new file mode 100644 index 000000000..c649e0512 --- /dev/null +++ b/stubs/braintree/braintree/subscription_status_event.pyi @@ -0,0 +1,8 @@ +from typing import Any + +from braintree.resource import Resource as Resource + +class SubscriptionStatusEvent(Resource): + balance: Any + price: Any + def __init__(self, gateway, attributes) -> None: ... diff --git a/stubs/braintree/braintree/successful_result.pyi b/stubs/braintree/braintree/successful_result.pyi new file mode 100644 index 000000000..66fbb74e7 --- /dev/null +++ b/stubs/braintree/braintree/successful_result.pyi @@ -0,0 +1,5 @@ +from braintree.attribute_getter import AttributeGetter as AttributeGetter + +class SuccessfulResult(AttributeGetter): + @property + def is_success(self): ... diff --git a/stubs/braintree/braintree/testing_gateway.pyi b/stubs/braintree/braintree/testing_gateway.pyi new file mode 100644 index 000000000..262997c5d --- /dev/null +++ b/stubs/braintree/braintree/testing_gateway.pyi @@ -0,0 +1,17 @@ +from typing import Any + +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 + def __init__(self, gateway) -> None: ... + def make_past_due(self, subscription_id, number_of_days_past_due: int = ...) -> None: ... + def escrow_transaction(self, transaction_id) -> None: ... + def settle_transaction(self, transaction_id): ... + def settlement_confirm_transaction(self, transaction_id): ... + def settlement_decline_transaction(self, transaction_id): ... + def settlement_pending_transaction(self, transaction_id): ... + def create_3ds_verification(self, merchant_account_id, params): ... diff --git a/stubs/braintree/braintree/three_d_secure_info.pyi b/stubs/braintree/braintree/three_d_secure_info.pyi new file mode 100644 index 000000000..8758b9741 --- /dev/null +++ b/stubs/braintree/braintree/three_d_secure_info.pyi @@ -0,0 +1,3 @@ +from braintree.attribute_getter import AttributeGetter as AttributeGetter + +class ThreeDSecureInfo(AttributeGetter): ... diff --git a/stubs/braintree/braintree/transaction.pyi b/stubs/braintree/braintree/transaction.pyi new file mode 100644 index 000000000..59cee2fe0 --- /dev/null +++ b/stubs/braintree/braintree/transaction.pyi @@ -0,0 +1,177 @@ +from typing import Any + +from braintree.add_on import AddOn as AddOn +from braintree.address import Address as Address +from braintree.amex_express_checkout_card import AmexExpressCheckoutCard as AmexExpressCheckoutCard +from braintree.android_pay_card import AndroidPayCard as AndroidPayCard +from braintree.apple_pay_card import ApplePayCard as ApplePayCard +from braintree.authorization_adjustment import AuthorizationAdjustment as AuthorizationAdjustment +from braintree.configuration import Configuration as Configuration +from braintree.credit_card import CreditCard as CreditCard +from braintree.customer import Customer as Customer +from braintree.descriptor import Descriptor as Descriptor +from braintree.disbursement_detail import DisbursementDetail as DisbursementDetail +from braintree.discount import Discount as Discount +from braintree.dispute import Dispute as Dispute +from braintree.error_result import ErrorResult as ErrorResult +from braintree.europe_bank_account import EuropeBankAccount as EuropeBankAccount +from braintree.exceptions.not_found_error import NotFoundError as NotFoundError +from braintree.facilitated_details import FacilitatedDetails as FacilitatedDetails +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.payment_instrument_type import PaymentInstrumentType as PaymentInstrumentType +from braintree.paypal_account import PayPalAccount as PayPalAccount +from braintree.paypal_here import PayPalHere as PayPalHere +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.status_event import StatusEvent as StatusEvent +from braintree.subscription_details import SubscriptionDetails as SubscriptionDetails +from braintree.successful_result import SuccessfulResult as SuccessfulResult +from braintree.three_d_secure_info import ThreeDSecureInfo as ThreeDSecureInfo +from braintree.transaction_line_item import TransactionLineItem as TransactionLineItem +from braintree.us_bank_account import UsBankAccount as UsBankAccount +from braintree.venmo_account import VenmoAccount as VenmoAccount +from braintree.visa_checkout_card import VisaCheckoutCard as VisaCheckoutCard + +class Transaction(Resource): + class CreatedUsing: + FullInformation: str + Token: str + class GatewayRejectionReason: + ApplicationIncomplete: str + Avs: str + AvsAndCvv: str + Cvv: str + Duplicate: str + Fraud: str + RiskThreshold: str + ThreeDSecure: str + TokenIssuance: str + class Source: + Api: str + ControlPanel: str + Recurring: str + class EscrowStatus: + HoldPending: str + Held: str + ReleasePending: str + Released: str + Refunded: str + class Status: + AuthorizationExpired: str + Authorized: str + Authorizing: str + Failed: str + GatewayRejected: str + ProcessorDeclined: str + Settled: str + SettlementConfirmed: str + SettlementDeclined: str + SettlementFailed: str + SettlementPending: str + Settling: str + SubmittedForSettlement: str + Voided: str + class Type: + Credit: str + Sale: str + class IndustryType: + Lodging: str + TravelAndCruise: str + TravelAndFlight: str + class AdditionalCharge: + Restaurant: str + GiftShop: str + MiniBar: str + Telephone: str + Laundry: str + Other: str + @staticmethod + def adjust_authorization(transaction_id, amount): ... + @staticmethod + def clone_transaction(transaction_id, params): ... + @staticmethod + def cancel_release(transaction_id): ... + @staticmethod + def credit(params: Any | None = ...): ... + @staticmethod + def find(transaction_id): ... + @staticmethod + def hold_in_escrow(transaction_id): ... + @staticmethod + def refund(transaction_id, amount_or_options: Any | None = ...): ... + @staticmethod + def sale(params: Any | None = ...): ... + @staticmethod + def search(*query): ... + @staticmethod + def release_from_escrow(transaction_id): ... + @staticmethod + def submit_for_settlement(transaction_id, amount: Any | None = ..., params: Any | None = ...): ... + @staticmethod + def update_details(transaction_id, params: Any | None = ...): ... + @staticmethod + def void(transaction_id): ... + @staticmethod + def create(params): ... + @staticmethod + def clone_signature(): ... + @staticmethod + def create_signature(): ... + @staticmethod + def submit_for_settlement_signature(): ... + @staticmethod + def update_details_signature(): ... + @staticmethod + def refund_signature(): ... + @staticmethod + def submit_for_partial_settlement(transaction_id, amount, params: Any | 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 + def __init__(self, gateway, attributes) -> None: ... + @property + def vault_billing_address(self): ... + @property + def vault_credit_card(self): ... + @property + def vault_customer(self): ... + @property + def is_disbursed(self): ... + @property + def line_items(self): ... diff --git a/stubs/braintree/braintree/transaction_amounts.pyi b/stubs/braintree/braintree/transaction_amounts.pyi new file mode 100644 index 000000000..f6556f485 --- /dev/null +++ b/stubs/braintree/braintree/transaction_amounts.pyi @@ -0,0 +1,5 @@ +class TransactionAmounts: + Authorize: str + Decline: str + HardDecline: str + Fail: str diff --git a/stubs/braintree/braintree/transaction_details.pyi b/stubs/braintree/braintree/transaction_details.pyi new file mode 100644 index 000000000..ceb5b4b19 --- /dev/null +++ b/stubs/braintree/braintree/transaction_details.pyi @@ -0,0 +1,7 @@ +from typing import Any + +from braintree.attribute_getter import AttributeGetter as AttributeGetter + +class TransactionDetails(AttributeGetter): + amount: Any + def __init__(self, attributes) -> None: ... diff --git a/stubs/braintree/braintree/transaction_gateway.pyi b/stubs/braintree/braintree/transaction_gateway.pyi new file mode 100644 index 000000000..07f69feed --- /dev/null +++ b/stubs/braintree/braintree/transaction_gateway.pyi @@ -0,0 +1,29 @@ +from typing import Any + +from braintree.error_result import ErrorResult as ErrorResult +from braintree.exceptions.not_found_error import NotFoundError as NotFoundError +from braintree.exceptions.request_timeout_error import RequestTimeoutError as RequestTimeoutError +from braintree.resource import Resource as Resource +from braintree.resource_collection import ResourceCollection as ResourceCollection +from braintree.successful_result import SuccessfulResult as SuccessfulResult +from braintree.transaction import Transaction as Transaction + +class TransactionGateway: + gateway: Any + config: Any + def __init__(self, gateway) -> None: ... + def adjust_authorization(self, transaction_id, amount): ... + def clone_transaction(self, transaction_id, params): ... + def cancel_release(self, transaction_id): ... + def create(self, params): ... + def credit(self, params): ... + def find(self, transaction_id): ... + def hold_in_escrow(self, transaction_id): ... + def refund(self, transaction_id, amount_or_options: Any | None = ...): ... + def sale(self, params): ... + def search(self, *query): ... + def release_from_escrow(self, transaction_id): ... + def submit_for_settlement(self, transaction_id, amount: Any | None = ..., params: Any | None = ...): ... + def update_details(self, transaction_id, params: Any | None = ...): ... + def submit_for_partial_settlement(self, transaction_id, amount, params: Any | None = ...): ... + def void(self, transaction_id): ... diff --git a/stubs/braintree/braintree/transaction_line_item.pyi b/stubs/braintree/braintree/transaction_line_item.pyi new file mode 100644 index 000000000..11cd731f7 --- /dev/null +++ b/stubs/braintree/braintree/transaction_line_item.pyi @@ -0,0 +1,11 @@ +from braintree.attribute_getter import AttributeGetter as AttributeGetter +from braintree.configuration import Configuration as Configuration +from braintree.resource import Resource as Resource + +class TransactionLineItem(AttributeGetter): + class Kind: + Credit: str + Debit: str + def __init__(self, attributes) -> None: ... + @staticmethod + def find_all(transaction_id): ... diff --git a/stubs/braintree/braintree/transaction_line_item_gateway.pyi b/stubs/braintree/braintree/transaction_line_item_gateway.pyi new file mode 100644 index 000000000..8eca1b10c --- /dev/null +++ b/stubs/braintree/braintree/transaction_line_item_gateway.pyi @@ -0,0 +1,14 @@ +from typing import Any + +from braintree.error_result import ErrorResult as ErrorResult +from braintree.exceptions.not_found_error import NotFoundError as NotFoundError +from braintree.exceptions.request_timeout_error import RequestTimeoutError as RequestTimeoutError +from braintree.resource import Resource as Resource +from braintree.resource_collection import ResourceCollection as ResourceCollection +from braintree.transaction_line_item import TransactionLineItem as TransactionLineItem + +class TransactionLineItemGateway: + gateway: Any + config: Any + 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 new file mode 100644 index 000000000..439cc9f7f --- /dev/null +++ b/stubs/braintree/braintree/transaction_search.pyi @@ -0,0 +1,73 @@ +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 + 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 + 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 diff --git a/stubs/braintree/braintree/unknown_payment_method.pyi b/stubs/braintree/braintree/unknown_payment_method.pyi new file mode 100644 index 000000000..b683e6ee0 --- /dev/null +++ b/stubs/braintree/braintree/unknown_payment_method.pyi @@ -0,0 +1,4 @@ +from braintree.resource import Resource as Resource + +class UnknownPaymentMethod(Resource): + def image_url(self): ... diff --git a/stubs/braintree/braintree/us_bank_account.pyi b/stubs/braintree/braintree/us_bank_account.pyi new file mode 100644 index 000000000..31d005cd0 --- /dev/null +++ b/stubs/braintree/braintree/us_bank_account.pyi @@ -0,0 +1,17 @@ +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 +from braintree.us_bank_account_verification import UsBankAccountVerification as UsBankAccountVerification + +class UsBankAccount(Resource): + @staticmethod + def find(token): ... + @staticmethod + def sale(token, transactionRequest): ... + @staticmethod + def signature(): ... + ach_mandate: Any + verifications: Any + 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 new file mode 100644 index 000000000..665b57146 --- /dev/null +++ b/stubs/braintree/braintree/us_bank_account_gateway.pyi @@ -0,0 +1,10 @@ +from typing import Any + +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 + 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 new file mode 100644 index 000000000..cf4bd42cb --- /dev/null +++ b/stubs/braintree/braintree/us_bank_account_verification.pyi @@ -0,0 +1,27 @@ +from typing import Any + +from braintree.attribute_getter import AttributeGetter as AttributeGetter +from braintree.configuration import Configuration as Configuration + +class UsBankAccountVerification(AttributeGetter): + class Status: + Failed: str + GatewayRejected: str + ProcessorDeclined: str + Unrecognized: str + Verified: str + Pending: str + class VerificationMethod: + NetworkCheck: str + IndependentCheck: str + TokenizedCheck: str + MicroTransfers: str + us_bank_account: Any + def __init__(self, gateway, attributes) -> None: ... + @staticmethod + def confirm_micro_transfer_amounts(verification_id, amounts): ... + @staticmethod + def find(verification_id): ... + @staticmethod + def search(*query): ... + def __eq__(self, other): ... diff --git a/stubs/braintree/braintree/us_bank_account_verification_gateway.pyi b/stubs/braintree/braintree/us_bank_account_verification_gateway.pyi new file mode 100644 index 000000000..1f420f984 --- /dev/null +++ b/stubs/braintree/braintree/us_bank_account_verification_gateway.pyi @@ -0,0 +1,16 @@ +from typing import Any + +from braintree.error_result import ErrorResult as ErrorResult +from braintree.exceptions.not_found_error import NotFoundError as NotFoundError +from braintree.resource_collection import ResourceCollection as ResourceCollection +from braintree.successful_result import SuccessfulResult as SuccessfulResult +from braintree.us_bank_account_verification import UsBankAccountVerification as UsBankAccountVerification +from braintree.us_bank_account_verification_search import UsBankAccountVerificationSearch as UsBankAccountVerificationSearch + +class UsBankAccountVerificationGateway: + gateway: Any + config: Any + def __init__(self, gateway) -> None: ... + def confirm_micro_transfer_amounts(self, verification_id, amounts): ... + def find(self, verification_id): ... + def search(self, *query): ... diff --git a/stubs/braintree/braintree/us_bank_account_verification_search.pyi b/stubs/braintree/braintree/us_bank_account_verification_search.pyi new file mode 100644 index 000000000..3b937177d --- /dev/null +++ b/stubs/braintree/braintree/us_bank_account_verification_search.pyi @@ -0,0 +1,20 @@ +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 diff --git a/stubs/braintree/braintree/util/__init__.pyi b/stubs/braintree/braintree/util/__init__.pyi new file mode 100644 index 000000000..974d71418 --- /dev/null +++ b/stubs/braintree/braintree/util/__init__.pyi @@ -0,0 +1,7 @@ +from braintree.util.constants import Constants as Constants +from braintree.util.crypto import Crypto as Crypto +from braintree.util.generator import Generator as Generator +from braintree.util.graphql_client import GraphQLClient as GraphQLClient +from braintree.util.http import Http as Http +from braintree.util.parser import Parser as Parser +from braintree.util.xml_util import XmlUtil as XmlUtil diff --git a/stubs/braintree/braintree/util/constants.pyi b/stubs/braintree/braintree/util/constants.pyi new file mode 100644 index 000000000..f46d366a2 --- /dev/null +++ b/stubs/braintree/braintree/util/constants.pyi @@ -0,0 +1,3 @@ +class Constants: + @staticmethod + def get_all_constant_values_from_class(klass): ... diff --git a/stubs/braintree/braintree/util/crypto.pyi b/stubs/braintree/braintree/util/crypto.pyi new file mode 100644 index 000000000..6ea4a83dc --- /dev/null +++ b/stubs/braintree/braintree/util/crypto.pyi @@ -0,0 +1,9 @@ +text_type = str + +class Crypto: + @staticmethod + def sha1_hmac_hash(secret_key, content): ... + @staticmethod + def sha256_hmac_hash(secret_key, content): ... + @staticmethod + def secure_compare(left, right): ... diff --git a/stubs/braintree/braintree/util/datetime_parser.pyi b/stubs/braintree/braintree/util/datetime_parser.pyi new file mode 100644 index 000000000..eb12ffa40 --- /dev/null +++ b/stubs/braintree/braintree/util/datetime_parser.pyi @@ -0,0 +1 @@ +def parse_datetime(timestamp): ... diff --git a/stubs/braintree/braintree/util/generator.pyi b/stubs/braintree/braintree/util/generator.pyi new file mode 100644 index 000000000..5768acfca --- /dev/null +++ b/stubs/braintree/braintree/util/generator.pyi @@ -0,0 +1,10 @@ +from typing import Any + +integer_types = int +text_type = str +binary_type = bytes + +class Generator: + dict: Any + 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 new file mode 100644 index 000000000..16ac5e47d --- /dev/null +++ b/stubs/braintree/braintree/util/graphql_client.pyi @@ -0,0 +1,18 @@ +from typing import Any + +from braintree.exceptions.authentication_error import AuthenticationError as AuthenticationError +from braintree.exceptions.authorization_error import AuthorizationError as AuthorizationError +from braintree.exceptions.not_found_error import NotFoundError as NotFoundError +from braintree.exceptions.server_error import ServerError as ServerError +from braintree.exceptions.service_unavailable_error import ServiceUnavailableError as ServiceUnavailableError +from braintree.exceptions.too_many_requests_error import TooManyRequestsError as TooManyRequestsError +from braintree.exceptions.unexpected_error import UnexpectedError as UnexpectedError +from braintree.exceptions.upgrade_required_error import UpgradeRequiredError as UpgradeRequiredError +from braintree.util.http import Http as Http + +class GraphQLClient(Http): + @staticmethod + def raise_exception_for_graphql_error(response) -> None: ... + graphql_headers: Any + def __init__(self, config: Any | None = ..., environment: Any | None = ...) -> None: ... + def query(self, definition, variables: Any | None = ..., operation_name: Any | None = ...): ... diff --git a/stubs/braintree/braintree/util/http.pyi b/stubs/braintree/braintree/util/http.pyi new file mode 100644 index 000000000..f5e7a1ad6 --- /dev/null +++ b/stubs/braintree/braintree/util/http.pyi @@ -0,0 +1,42 @@ +from typing import Any + +from braintree import version as version +from braintree.environment import Environment as Environment +from braintree.exceptions.authentication_error import AuthenticationError as AuthenticationError +from braintree.exceptions.authorization_error import AuthorizationError as AuthorizationError +from braintree.exceptions.gateway_timeout_error import GatewayTimeoutError as GatewayTimeoutError +from braintree.exceptions.http.connection_error import ConnectionError as ConnectionError +from braintree.exceptions.http.invalid_response_error import InvalidResponseError as InvalidResponseError +from braintree.exceptions.http.timeout_error import ( + ConnectTimeoutError as ConnectTimeoutError, + ReadTimeoutError as ReadTimeoutError, + TimeoutError as TimeoutError, +) +from braintree.exceptions.not_found_error import NotFoundError as NotFoundError +from braintree.exceptions.request_timeout_error import RequestTimeoutError as RequestTimeoutError +from braintree.exceptions.server_error import ServerError as ServerError +from braintree.exceptions.service_unavailable_error import ServiceUnavailableError as ServiceUnavailableError +from braintree.exceptions.too_many_requests_error import TooManyRequestsError as TooManyRequestsError +from braintree.exceptions.unexpected_error import UnexpectedError as UnexpectedError +from braintree.exceptions.upgrade_required_error import UpgradeRequiredError as UpgradeRequiredError +from braintree.util.xml_util import XmlUtil as XmlUtil + +class Http: + class ContentType: + Xml: str + Multipart: str + Json: str + @staticmethod + def is_error_status(status): ... + @staticmethod + def raise_exception_from_status(status, message: Any | None = ...) -> None: ... + config: Any + environment: Any + def __init__(self, config, environment: Any | None = ...) -> None: ... + def post(self, path, params: Any | None = ...): ... + def delete(self, path): ... + def get(self, path): ... + def put(self, path, params: Any | None = ...): ... + def post_multipart(self, path, files, params: Any | None = ...): ... + def http_do(self, http_verb, path, headers, request_body): ... + def handle_exception(self, exception) -> None: ... diff --git a/stubs/braintree/braintree/util/parser.pyi b/stubs/braintree/braintree/util/parser.pyi new file mode 100644 index 000000000..04f71d120 --- /dev/null +++ b/stubs/braintree/braintree/util/parser.pyi @@ -0,0 +1,10 @@ +from typing import Any + +from braintree.util.datetime_parser import parse_datetime as parse_datetime + +binary_type = bytes + +class Parser: + doc: Any + def __init__(self, xml) -> None: ... + def parse(self): ... diff --git a/stubs/braintree/braintree/util/xml_util.pyi b/stubs/braintree/braintree/util/xml_util.pyi new file mode 100644 index 000000000..d288665ac --- /dev/null +++ b/stubs/braintree/braintree/util/xml_util.pyi @@ -0,0 +1,8 @@ +from braintree.util.generator import Generator as Generator +from braintree.util.parser import Parser as Parser + +class XmlUtil: + @staticmethod + def xml_from_dict(dict): ... + @staticmethod + def dict_from_xml(xml): ... diff --git a/stubs/braintree/braintree/validation_error.pyi b/stubs/braintree/braintree/validation_error.pyi new file mode 100644 index 000000000..04254c721 --- /dev/null +++ b/stubs/braintree/braintree/validation_error.pyi @@ -0,0 +1,3 @@ +from braintree.attribute_getter import AttributeGetter as AttributeGetter + +class ValidationError(AttributeGetter): ... diff --git a/stubs/braintree/braintree/validation_error_collection.pyi b/stubs/braintree/braintree/validation_error_collection.pyi new file mode 100644 index 000000000..546dfcf7c --- /dev/null +++ b/stubs/braintree/braintree/validation_error_collection.pyi @@ -0,0 +1,20 @@ +from typing import Any + +from braintree.validation_error import ValidationError as ValidationError + +class ValidationErrorCollection: + data: Any + def __init__(self, data: Any | None = ...) -> None: ... + @property + def deep_errors(self): ... + def for_index(self, index): ... + def for_object(self, nested_key): ... + def on(self, attribute): ... + @property + def deep_size(self): ... + @property + def errors(self): ... + @property + def size(self): ... + def __getitem__(self, index): ... + def __len__(self): ... diff --git a/stubs/braintree/braintree/venmo_account.pyi b/stubs/braintree/braintree/venmo_account.pyi new file mode 100644 index 000000000..8d4fe93d9 --- /dev/null +++ b/stubs/braintree/braintree/venmo_account.pyi @@ -0,0 +1,7 @@ +from typing import Any + +from braintree.resource import Resource as Resource + +class VenmoAccount(Resource): + subscriptions: Any + def __init__(self, gateway, attributes) -> None: ... diff --git a/stubs/braintree/braintree/version.pyi b/stubs/braintree/braintree/version.pyi new file mode 100644 index 000000000..935fb36a8 --- /dev/null +++ b/stubs/braintree/braintree/version.pyi @@ -0,0 +1 @@ +Version: str diff --git a/stubs/braintree/braintree/visa_checkout_card.pyi b/stubs/braintree/braintree/visa_checkout_card.pyi new file mode 100644 index 000000000..6e8f37d5c --- /dev/null +++ b/stubs/braintree/braintree/visa_checkout_card.pyi @@ -0,0 +1,15 @@ +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 + +class VisaCheckoutCard(Resource): + billing_address: Any + subscriptions: Any + verification: Any + def __init__(self, gateway, attributes): ... + @property + def expiration_date(self): ... + @property + def masked_number(self): ... diff --git a/stubs/braintree/braintree/webhook_notification.pyi b/stubs/braintree/braintree/webhook_notification.pyi new file mode 100644 index 000000000..34de0f771 --- /dev/null +++ b/stubs/braintree/braintree/webhook_notification.pyi @@ -0,0 +1,83 @@ +from typing import Any + +from braintree.account_updater_daily_report import AccountUpdaterDailyReport as AccountUpdaterDailyReport +from braintree.configuration import Configuration as Configuration +from braintree.connected_merchant_paypal_status_changed import ( + ConnectedMerchantPayPalStatusChanged as ConnectedMerchantPayPalStatusChanged, +) +from braintree.connected_merchant_status_transitioned import ( + ConnectedMerchantStatusTransitioned as ConnectedMerchantStatusTransitioned, +) +from braintree.disbursement import Disbursement as Disbursement +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_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.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.validation_error_collection import ValidationErrorCollection as ValidationErrorCollection + +class WebhookNotification(Resource): + class Kind: + AccountUpdaterDailyReport: str + Check: str + ConnectedMerchantPayPalStatusChanged: str + ConnectedMerchantStatusTransitioned: str + Disbursement: str + DisbursementException: str + DisputeAccepted: str + DisputeDisputed: str + DisputeExpired: str + DisputeLost: str + DisputeOpened: str + DisputeWon: str + GrantedPaymentMethodRevoked: str + GrantorUpdatedGrantedPaymentMethod: str + LocalPaymentCompleted: str + LocalPaymentReversed: str + OAuthAccessRevoked: str + PartnerMerchantConnected: str + PartnerMerchantDeclined: str + PartnerMerchantDisconnected: str + PaymentMethodRevokedByCustomer: str + RecipientUpdatedGrantedPaymentMethod: str + SubMerchantAccountApproved: str + SubMerchantAccountDeclined: str + SubscriptionCanceled: str + SubscriptionChargedSuccessfully: str + SubscriptionChargedUnsuccessfully: str + SubscriptionExpired: str + SubscriptionTrialEnded: str + SubscriptionWentActive: str + SubscriptionWentPastDue: str + TransactionDisbursed: str + TransactionSettled: str + TransactionSettlementDeclined: str + @staticmethod + 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 + def __init__(self, gateway, attributes) -> None: ... diff --git a/stubs/braintree/braintree/webhook_notification_gateway.pyi b/stubs/braintree/braintree/webhook_notification_gateway.pyi new file mode 100644 index 000000000..9f26304aa --- /dev/null +++ b/stubs/braintree/braintree/webhook_notification_gateway.pyi @@ -0,0 +1,16 @@ +from typing import Any + +from braintree.exceptions.invalid_challenge_error import InvalidChallengeError as InvalidChallengeError +from braintree.exceptions.invalid_signature_error import InvalidSignatureError as InvalidSignatureError +from braintree.util.crypto import Crypto as Crypto +from braintree.util.xml_util import XmlUtil as XmlUtil +from braintree.webhook_notification import WebhookNotification as WebhookNotification + +text_type = str + +class WebhookNotificationGateway: + gateway: Any + config: Any + def __init__(self, gateway) -> None: ... + def parse(self, signature, payload): ... + def verify(self, challenge): ... diff --git a/stubs/braintree/braintree/webhook_testing.pyi b/stubs/braintree/braintree/webhook_testing.pyi new file mode 100644 index 000000000..6e12f0cd1 --- /dev/null +++ b/stubs/braintree/braintree/webhook_testing.pyi @@ -0,0 +1,7 @@ +from typing import Any + +from braintree.configuration import Configuration as Configuration + +class WebhookTesting: + @staticmethod + def sample_notification(kind, id, source_merchant_id: Any | None = ...): ... diff --git a/stubs/braintree/braintree/webhook_testing_gateway.pyi b/stubs/braintree/braintree/webhook_testing_gateway.pyi new file mode 100644 index 000000000..b11569d05 --- /dev/null +++ b/stubs/braintree/braintree/webhook_testing_gateway.pyi @@ -0,0 +1,10 @@ +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 + def __init__(self, gateway) -> None: ... + def sample_notification(self, kind, id, source_merchant_id: Any | None = ...): ... diff --git a/tests/pytype_exclude_list.txt b/tests/pytype_exclude_list.txt index 8180fd1cc..28b0f6b4d 100644 --- a/tests/pytype_exclude_list.txt +++ b/tests/pytype_exclude_list.txt @@ -43,3 +43,79 @@ stubs/protobuf/google/protobuf/text_format.pyi stubs/protobuf/google/protobuf/timestamp_pb2.pyi stubs/protobuf/google/protobuf/type_pb2.pyi stubs/protobuf/google/protobuf/wrappers_pb2.pyi + +stubs/braintree/braintree/__init__.pyi +stubs/braintree/braintree/braintree_gateway.pyi +stubs/braintree/braintree/credit_card_gateway.pyi +stubs/braintree/braintree/credit_card_verification_gateway.pyi +stubs/braintree/braintree/credit_card_verification_search.pyi +stubs/braintree/braintree/customer.pyi +stubs/braintree/braintree/customer_gateway.pyi +stubs/braintree/braintree/customer_search.pyi +stubs/braintree/braintree/disbursement.pyi +stubs/braintree/braintree/dispute_search.pyi +stubs/braintree/braintree/ids_search.pyi +stubs/braintree/braintree/local_payment_completed.pyi +stubs/braintree/braintree/payment_method_gateway.pyi +stubs/braintree/braintree/search.pyi +stubs/braintree/braintree/subscription.pyi +stubs/braintree/braintree/subscription_gateway.pyi +stubs/braintree/braintree/subscription_search.pyi +stubs/braintree/braintree/testing_gateway.pyi +stubs/braintree/braintree/transaction.pyi +stubs/braintree/braintree/transaction_gateway.pyi +stubs/braintree/braintree/transaction_search.pyi +stubs/braintree/braintree/us_bank_account_verification_gateway.pyi +stubs/braintree/braintree/us_bank_account_verification_search.pyi +stubs/braintree/braintree/webhook_notification.pyi +stubs/braintree/braintree/webhook_notification_gateway.pyi +stubs/braintree/braintree/webhook_testing_gateway.pyi +stubs/braintree/braintree/account_updater_daily_report.pyi +stubs/braintree/braintree/configuration.pyi +stubs/braintree/braintree/discount.pyi +stubs/braintree/braintree/discount_gateway.pyi +stubs/braintree/braintree/dispute.pyi +stubs/braintree/braintree/dispute_gateway.pyi +stubs/braintree/braintree/document_upload.pyi +stubs/braintree/braintree/document_upload_gateway.pyi +stubs/braintree/braintree/europe_bank_account.pyi +stubs/braintree/braintree/merchant.pyi +stubs/braintree/braintree/merchant_account/__init__.pyi +stubs/braintree/braintree/merchant_account/merchant_account.pyi +stubs/braintree/braintree/merchant_account_gateway.pyi +stubs/braintree/braintree/merchant_gateway.pyi +stubs/braintree/braintree/partner_merchant.pyi +stubs/braintree/braintree/payment_method.pyi +stubs/braintree/braintree/payment_method_nonce.pyi +stubs/braintree/braintree/payment_method_nonce_gateway.pyi +stubs/braintree/braintree/payment_method_parser.pyi +stubs/braintree/braintree/paypal_account.pyi +stubs/braintree/braintree/paypal_account_gateway.pyi +stubs/braintree/braintree/plan.pyi +stubs/braintree/braintree/plan_gateway.pyi +stubs/braintree/braintree/revoked_payment_method_metadata.pyi +stubs/braintree/braintree/settlement_batch_summary.pyi +stubs/braintree/braintree/settlement_batch_summary_gateway.pyi +stubs/braintree/braintree/transaction_line_item.pyi +stubs/braintree/braintree/transaction_line_item_gateway.pyi +stubs/braintree/braintree/us_bank_account.pyi +stubs/braintree/braintree/us_bank_account_gateway.pyi +stubs/braintree/braintree/us_bank_account_verification.pyi +stubs/braintree/braintree/util/__init__.pyi +stubs/braintree/braintree/util/graphql_client.pyi +stubs/braintree/braintree/util/http.pyi +stubs/braintree/braintree/add_on.pyi +stubs/braintree/braintree/webhook_testing.pyi +stubs/braintree/braintree/add_on_gateway.pyi +stubs/braintree/braintree/address.pyi +stubs/braintree/braintree/masterpass_card.pyi +stubs/braintree/braintree/samsung_pay_card.pyi +stubs/braintree/braintree/visa_checkout_card.pyi +stubs/braintree/braintree/address_gateway.pyi +stubs/braintree/braintree/apple_pay_gateway.pyi +stubs/braintree/braintree/credit_card_verification.pyi +stubs/braintree/braintree/client_token.pyi +stubs/braintree/braintree/client_token_gateway.pyi +stubs/braintree/braintree/credit_card.pyi +stubs/braintree/braintree/error_result.pyi +stubs/braintree/braintree/oauth_gateway.pyi