Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 30 additions & 1 deletion stubs/braintree/braintree/payment_method.pyi
Original file line number Diff line number Diff line change
@@ -1,14 +1,43 @@
from _typeshed import Incomplete

from braintree.amex_express_checkout_card import AmexExpressCheckoutCard
from braintree.android_pay_card import AndroidPayCard
from braintree.apple_pay_card import ApplePayCard
from braintree.credit_card import CreditCard
from braintree.error_result import ErrorResult
from braintree.europe_bank_account import EuropeBankAccount
from braintree.masterpass_card import MasterpassCard
from braintree.paypal_account import PayPalAccount
from braintree.resource import Resource
from braintree.samsung_pay_card import SamsungPayCard
from braintree.sepa_direct_debit_account import SepaDirectDebitAccount
from braintree.successful_result import SuccessfulResult
from braintree.unknown_payment_method import UnknownPaymentMethod
from braintree.us_bank_account import UsBankAccount
from braintree.venmo_account import VenmoAccount
from braintree.visa_checkout_card import VisaCheckoutCard

class PaymentMethod(Resource):
@staticmethod
def create(params: dict[str, Incomplete] | None = None) -> SuccessfulResult | ErrorResult: ...
@staticmethod
def find(payment_method_token: str) -> Resource: ...
def find(
payment_method_token: str,
) -> (
AndroidPayCard
| ApplePayCard
| EuropeBankAccount
| CreditCard
| PayPalAccount
| UsBankAccount
| VenmoAccount
| VisaCheckoutCard
| AmexExpressCheckoutCard
| SepaDirectDebitAccount
| MasterpassCard
| SamsungPayCard
| UnknownPaymentMethod
): ...
@staticmethod
def update(payment_method_token: str, params) -> SuccessfulResult | ErrorResult: ...
@staticmethod
Expand Down
32 changes: 30 additions & 2 deletions stubs/braintree/braintree/payment_method_gateway.pyi
Original file line number Diff line number Diff line change
@@ -1,15 +1,43 @@
from _typeshed import Incomplete

from braintree.amex_express_checkout_card import AmexExpressCheckoutCard
from braintree.android_pay_card import AndroidPayCard
from braintree.apple_pay_card import ApplePayCard
from braintree.credit_card import CreditCard
from braintree.error_result import ErrorResult
from braintree.resource import Resource
from braintree.europe_bank_account import EuropeBankAccount
from braintree.masterpass_card import MasterpassCard
from braintree.paypal_account import PayPalAccount
from braintree.samsung_pay_card import SamsungPayCard
from braintree.sepa_direct_debit_account import SepaDirectDebitAccount
from braintree.successful_result import SuccessfulResult
from braintree.unknown_payment_method import UnknownPaymentMethod
from braintree.us_bank_account import UsBankAccount
from braintree.venmo_account import VenmoAccount
from braintree.visa_checkout_card import VisaCheckoutCard

class PaymentMethodGateway:
gateway: Incomplete
config: Incomplete
def __init__(self, gateway) -> None: ...
def create(self, params: dict[str, Incomplete] | None = None) -> SuccessfulResult | ErrorResult: ...
def find(self, payment_method_token: str) -> Resource: ...
def find(
self, payment_method_token: str
) -> (
AndroidPayCard
| ApplePayCard
| EuropeBankAccount
| CreditCard
| PayPalAccount
| UsBankAccount
| VenmoAccount
| VisaCheckoutCard
| AmexExpressCheckoutCard
| SepaDirectDebitAccount
| MasterpassCard
| SamsungPayCard
| UnknownPaymentMethod
): ...
def update(self, payment_method_token: str, params) -> SuccessfulResult | ErrorResult: ...
def delete(self, payment_method_token: str, options=None) -> SuccessfulResult: ...
options: dict[str, Incomplete]
Expand Down