Stubs for braintree (#5789)

A library that provides integration access to the Braintree Gateway.

I started with stubgen, then cleaned up to address missing functions. Testing plan is to keep an eye on CI and fix any issues that arise.
This commit is contained in:
Shiva Raisinghani
2021-07-24 13:47:14 -07:00
committed by GitHub
parent 1ad4b79139
commit e24f940c7d
157 changed files with 3142 additions and 0 deletions

View File

@@ -30,6 +30,7 @@
"stubs/bleach",
"stubs/boto",
"stubs/beautifulsoup4",
"stubs/braintree",
"stubs/caldav",
"stubs/commonmark",
"stubs/cryptography",

View File

@@ -0,0 +1 @@
version = "4.11"

View File

@@ -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

View File

@@ -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: ...

View File

@@ -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: ...

View File

@@ -0,0 +1,6 @@
from braintree.configuration import Configuration as Configuration
from braintree.modification import Modification as Modification
class AddOn(Modification):
@staticmethod
def all(): ...

View File

@@ -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): ...

View File

@@ -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(): ...

View File

@@ -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 = ...): ...

View File

@@ -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): ...

View File

@@ -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): ...

View File

@@ -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): ...

View File

@@ -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): ...

View File

@@ -0,0 +1,3 @@
from braintree.attribute_getter import AttributeGetter as AttributeGetter
class ApplePayOptions(AttributeGetter): ...

View File

@@ -0,0 +1,4 @@
from typing import Any
class AttributeGetter:
def __init__(self, attributes: Any | None = ...) -> None: ...

View File

@@ -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: ...

View File

@@ -0,0 +1,3 @@
from braintree.attribute_getter import AttributeGetter as AttributeGetter
class BinData(AttributeGetter): ...

View File

@@ -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: ...

View File

@@ -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(): ...

View File

@@ -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 = ...): ...

View File

@@ -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): ...

View File

@@ -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): ...

View File

@@ -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): ...

View File

@@ -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): ...

View File

@@ -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): ...

View File

@@ -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 = ...): ...

View File

@@ -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): ...

View File

@@ -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): ...

View File

@@ -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

View File

@@ -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: ...

View File

@@ -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 = ...): ...

View File

@@ -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

View File

@@ -0,0 +1,4 @@
from braintree.resource import Resource as Resource
class Descriptor(Resource):
def __init__(self, gateway, attributes) -> None: ...

View File

@@ -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): ...

View File

@@ -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): ...

View File

@@ -0,0 +1,6 @@
from braintree.configuration import Configuration as Configuration
from braintree.modification import Modification as Modification
class Discount(Modification):
@staticmethod
def all(): ...

View File

@@ -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): ...

View File

@@ -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: ...

View File

@@ -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

View File

@@ -0,0 +1,4 @@
from braintree.attribute_getter import AttributeGetter as AttributeGetter
class DisputeEvidence(AttributeGetter):
def __init__(self, attributes) -> None: ...

View File

@@ -0,0 +1,4 @@
from braintree.attribute_getter import AttributeGetter as AttributeGetter
class DisputePayPalMessage(AttributeGetter):
def __init__(self, attributes) -> None: ...

View File

@@ -0,0 +1,4 @@
from braintree.attribute_getter import AttributeGetter as AttributeGetter
class DisputeStatusHistory(AttributeGetter):
def __init__(self, attributes) -> None: ...

View File

@@ -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): ...

View File

@@ -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

View File

@@ -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: ...

View File

@@ -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 = ...): ...

View File

@@ -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(): ...

View File

@@ -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

View File

@@ -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): ...

View File

@@ -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): ...

View File

@@ -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(): ...

View File

@@ -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

View File

@@ -0,0 +1,3 @@
from braintree.exceptions.braintree_error import BraintreeError as BraintreeError
class AuthenticationError(BraintreeError): ...

View File

@@ -0,0 +1,3 @@
from braintree.exceptions.braintree_error import BraintreeError as BraintreeError
class AuthorizationError(BraintreeError): ...

View File

@@ -0,0 +1 @@
class BraintreeError(Exception): ...

View File

@@ -0,0 +1,3 @@
from braintree.exceptions.unexpected_error import UnexpectedError as UnexpectedError
class ConfigurationError(UnexpectedError): ...

View File

@@ -0,0 +1,3 @@
from braintree.exceptions.braintree_error import BraintreeError as BraintreeError
class GatewayTimeoutError(BraintreeError): ...

View File

@@ -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

View File

@@ -0,0 +1,3 @@
from braintree.exceptions.unexpected_error import UnexpectedError as UnexpectedError
class ConnectionError(UnexpectedError): ...

View File

@@ -0,0 +1,3 @@
from braintree.exceptions.unexpected_error import UnexpectedError as UnexpectedError
class InvalidResponseError(UnexpectedError): ...

View File

@@ -0,0 +1,5 @@
from braintree.exceptions.unexpected_error import UnexpectedError as UnexpectedError
class TimeoutError(UnexpectedError): ...
class ConnectTimeoutError(TimeoutError): ...
class ReadTimeoutError(TimeoutError): ...

View File

@@ -0,0 +1,3 @@
from braintree.exceptions.braintree_error import BraintreeError as BraintreeError
class InvalidChallengeError(BraintreeError): ...

View File

@@ -0,0 +1,3 @@
from braintree.exceptions.braintree_error import BraintreeError as BraintreeError
class InvalidSignatureError(BraintreeError): ...

View File

@@ -0,0 +1,3 @@
from braintree.exceptions.braintree_error import BraintreeError as BraintreeError
class NotFoundError(BraintreeError): ...

View File

@@ -0,0 +1,3 @@
from braintree.exceptions.braintree_error import BraintreeError as BraintreeError
class RequestTimeoutError(BraintreeError): ...

View File

@@ -0,0 +1,3 @@
from braintree.exceptions.braintree_error import BraintreeError as BraintreeError
class ServerError(BraintreeError): ...

View File

@@ -0,0 +1,3 @@
from braintree.exceptions.braintree_error import BraintreeError as BraintreeError
class ServiceUnavailableError(BraintreeError): ...

View File

@@ -0,0 +1,3 @@
from braintree.exceptions.braintree_error import BraintreeError as BraintreeError
class TooManyRequestsError(BraintreeError): ...

View File

@@ -0,0 +1,3 @@
from braintree.exceptions.braintree_error import BraintreeError as BraintreeError
class UnexpectedError(BraintreeError): ...

View File

@@ -0,0 +1,3 @@
from braintree.exceptions.braintree_error import BraintreeError as BraintreeError
class UpgradeRequiredError(BraintreeError): ...

View File

@@ -0,0 +1,3 @@
from braintree.attribute_getter import AttributeGetter as AttributeGetter
class FacilitatedDetails(AttributeGetter): ...

View File

@@ -0,0 +1,3 @@
from braintree.attribute_getter import AttributeGetter as AttributeGetter
class FacilitatorDetails(AttributeGetter): ...

View File

@@ -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: ...

View File

@@ -0,0 +1,3 @@
from braintree.resource import Resource as Resource
class IbanBankAccount(Resource): ...

View File

@@ -0,0 +1,6 @@
from typing import Any
from braintree.search import Search as Search
class IdsSearch:
ids: Any

View File

@@ -0,0 +1,3 @@
from braintree.resource import Resource as Resource
class LocalPayment(Resource): ...

View File

@@ -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: ...

View File

@@ -0,0 +1,4 @@
from braintree.resource import Resource as Resource
class LocalPaymentReversed(Resource):
def __init__(self, gateway, attributes) -> None: ...

View File

@@ -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): ...

View File

@@ -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: ...

View File

@@ -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

View File

@@ -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: ...

View File

@@ -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: ...

View File

@@ -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: ...

View File

@@ -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: ...

View File

@@ -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): ...

View File

@@ -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): ...

View File

@@ -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): ...

View File

@@ -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: ...

View File

@@ -0,0 +1,4 @@
from braintree.resource import Resource as Resource
class OAuthAccessRevocation(Resource):
def __init__(self, attributes) -> None: ...

View File

@@ -0,0 +1,3 @@
from braintree.resource import Resource as Resource
class OAuthCredentials(Resource): ...

View File

@@ -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): ...

View File

@@ -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): ...

View File

@@ -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: ...

View File

@@ -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: ...

View File

@@ -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

View File

@@ -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(): ...

View File

@@ -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): ...

View File

@@ -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: ...

View File

@@ -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): ...

Some files were not shown because too many files have changed in this diff Show More