|
1 | 1 | from _typeshed import Incomplete |
2 | 2 |
|
| 3 | +from braintree.amex_express_checkout_card import AmexExpressCheckoutCard |
| 4 | +from braintree.android_pay_card import AndroidPayCard |
| 5 | +from braintree.apple_pay_card import ApplePayCard |
| 6 | +from braintree.credit_card import CreditCard |
3 | 7 | from braintree.error_result import ErrorResult |
4 | | -from braintree.resource import Resource |
| 8 | +from braintree.europe_bank_account import EuropeBankAccount |
| 9 | +from braintree.masterpass_card import MasterpassCard |
| 10 | +from braintree.paypal_account import PayPalAccount |
| 11 | +from braintree.samsung_pay_card import SamsungPayCard |
| 12 | +from braintree.sepa_direct_debit_account import SepaDirectDebitAccount |
5 | 13 | from braintree.successful_result import SuccessfulResult |
| 14 | +from braintree.unknown_payment_method import UnknownPaymentMethod |
| 15 | +from braintree.us_bank_account import UsBankAccount |
| 16 | +from braintree.venmo_account import VenmoAccount |
| 17 | +from braintree.visa_checkout_card import VisaCheckoutCard |
6 | 18 |
|
7 | 19 | class PaymentMethodGateway: |
8 | 20 | gateway: Incomplete |
9 | 21 | config: Incomplete |
10 | 22 | def __init__(self, gateway) -> None: ... |
11 | 23 | def create(self, params: dict[str, Incomplete] | None = None) -> SuccessfulResult | ErrorResult: ... |
12 | | - def find(self, payment_method_token: str) -> Resource: ... |
| 24 | + def find( |
| 25 | + self, payment_method_token: str |
| 26 | + ) -> ( |
| 27 | + AndroidPayCard |
| 28 | + | ApplePayCard |
| 29 | + | EuropeBankAccount |
| 30 | + | CreditCard |
| 31 | + | PayPalAccount |
| 32 | + | UsBankAccount |
| 33 | + | VenmoAccount |
| 34 | + | VisaCheckoutCard |
| 35 | + | AmexExpressCheckoutCard |
| 36 | + | SepaDirectDebitAccount |
| 37 | + | MasterpassCard |
| 38 | + | SamsungPayCard |
| 39 | + | UnknownPaymentMethod |
| 40 | + ): ... |
13 | 41 | def update(self, payment_method_token: str, params) -> SuccessfulResult | ErrorResult: ... |
14 | 42 | def delete(self, payment_method_token: str, options=None) -> SuccessfulResult: ... |
15 | 43 | options: dict[str, Incomplete] |
|
0 commit comments