-
Notifications
You must be signed in to change notification settings - Fork 433
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
3d86a22
commit 8788523
Showing
7 changed files
with
66 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
# File generated from our OpenAPI spec | ||
from __future__ import absolute_import, division, print_function | ||
|
||
# flake8: noqa | ||
|
||
from stripe.api_resources.financial_connections.account import Account | ||
from stripe.api_resources.financial_connections.account_owner import ( | ||
AccountOwner, | ||
) | ||
from stripe.api_resources.financial_connections.account_ownership import ( | ||
AccountOwnership, | ||
) | ||
from stripe.api_resources.financial_connections.session import Session |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
# File generated from our OpenAPI spec | ||
from __future__ import absolute_import, division, print_function | ||
|
||
from stripe import util | ||
from stripe.api_resources.abstract import APIResource | ||
from stripe.api_resources.abstract import custom_method | ||
|
||
|
||
@custom_method("disconnect", http_verb="post") | ||
@custom_method("refresh", http_verb="post") | ||
class Account(APIResource): | ||
OBJECT_NAME = "financial_connections.account" | ||
|
||
def disconnect(self, idempotency_key=None, **params): | ||
url = self.instance_url() + "/disconnect" | ||
headers = util.populate_headers(idempotency_key) | ||
self.refresh_from(self.request("post", url, params, headers)) | ||
return self | ||
|
||
def refresh(self, idempotency_key=None, **params): | ||
url = self.instance_url() + "/refresh" | ||
headers = util.populate_headers(idempotency_key) | ||
self.refresh_from(self.request("post", url, params, headers)) | ||
return self |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
# File generated from our OpenAPI spec | ||
from __future__ import absolute_import, division, print_function | ||
|
||
from stripe.stripe_object import StripeObject | ||
|
||
|
||
class AccountOwner(StripeObject): | ||
OBJECT_NAME = "financial_connections.account_owner" |
8 changes: 8 additions & 0 deletions
8
stripe/api_resources/financial_connections/account_ownership.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
# File generated from our OpenAPI spec | ||
from __future__ import absolute_import, division, print_function | ||
|
||
from stripe.stripe_object import StripeObject | ||
|
||
|
||
class AccountOwnership(StripeObject): | ||
OBJECT_NAME = "financial_connections.account_ownership" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
# File generated from our OpenAPI spec | ||
from __future__ import absolute_import, division, print_function | ||
|
||
from stripe.api_resources.abstract import CreateableAPIResource | ||
|
||
|
||
class Session(CreateableAPIResource): | ||
OBJECT_NAME = "financial_connections.session" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters