massive update, probably broken
[dotfiles/.git] / .config / coc / extensions / node_modules / coc-pyright / node_modules / pyright / dist / typeshed-fallback / stubs / braintree / braintree / subscription.pyi
1 from typing import Any
2
3 from braintree.add_on import AddOn as AddOn
4 from braintree.configuration import Configuration as Configuration
5 from braintree.descriptor import Descriptor as Descriptor
6 from braintree.discount import Discount as Discount
7 from braintree.error_result import ErrorResult as ErrorResult
8 from braintree.exceptions.not_found_error import NotFoundError as NotFoundError
9 from braintree.resource import Resource as Resource
10 from braintree.resource_collection import ResourceCollection as ResourceCollection
11 from braintree.subscription_status_event import SubscriptionStatusEvent as SubscriptionStatusEvent
12 from braintree.successful_result import SuccessfulResult as SuccessfulResult
13 from braintree.transaction import Transaction as Transaction
14 from braintree.util.http import Http as Http
15
16 class Subscription(Resource):
17     class TrialDurationUnit:
18         Day: str
19         Month: str
20     class Source:
21         Api: str
22         ControlPanel: str
23         Recurring: str
24     class Status:
25         Active: str
26         Canceled: str
27         Expired: str
28         PastDue: str
29         Pending: str
30     @staticmethod
31     def create(params: Any | None = ...): ...
32     @staticmethod
33     def create_signature(): ...
34     @staticmethod
35     def find(subscription_id): ...
36     @staticmethod
37     def retry_charge(subscription_id, amount: Any | None = ..., submit_for_settlement: bool = ...): ...
38     @staticmethod
39     def update(subscription_id, params: Any | None = ...): ...
40     @staticmethod
41     def cancel(subscription_id): ...
42     @staticmethod
43     def search(*query): ...
44     @staticmethod
45     def update_signature(): ...
46     price: Any
47     balance: Any
48     next_billing_period_amount: Any
49     add_ons: Any
50     descriptor: Any
51     description: Any
52     discounts: Any
53     status_history: Any
54     transactions: Any
55     def __init__(self, gateway, attributes) -> None: ...