massive update, probably broken
[dotfiles/.git] / .config / coc / extensions / node_modules / coc-pyright / node_modules / pyright / dist / typeshed-fallback / stubs / braintree / braintree / transaction_gateway.pyi
1 from typing import Any
2
3 from braintree.error_result import ErrorResult as ErrorResult
4 from braintree.exceptions.not_found_error import NotFoundError as NotFoundError
5 from braintree.exceptions.request_timeout_error import RequestTimeoutError as RequestTimeoutError
6 from braintree.resource import Resource as Resource
7 from braintree.resource_collection import ResourceCollection as ResourceCollection
8 from braintree.successful_result import SuccessfulResult as SuccessfulResult
9 from braintree.transaction import Transaction as Transaction
10
11 class TransactionGateway:
12     gateway: Any
13     config: Any
14     def __init__(self, gateway) -> None: ...
15     def adjust_authorization(self, transaction_id, amount): ...
16     def clone_transaction(self, transaction_id, params): ...
17     def cancel_release(self, transaction_id): ...
18     def create(self, params): ...
19     def credit(self, params): ...
20     def find(self, transaction_id): ...
21     def hold_in_escrow(self, transaction_id): ...
22     def refund(self, transaction_id, amount_or_options: Any | None = ...): ...
23     def sale(self, params): ...
24     def search(self, *query): ...
25     def release_from_escrow(self, transaction_id): ...
26     def submit_for_settlement(self, transaction_id, amount: Any | None = ..., params: Any | None = ...): ...
27     def update_details(self, transaction_id, params: Any | None = ...): ...
28     def submit_for_partial_settlement(self, transaction_id, amount, params: Any | None = ...): ...
29     def void(self, transaction_id): ...