-
Notifications
You must be signed in to change notification settings - Fork 176
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
Showing
6 changed files
with
88 additions
and
1 deletion.
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
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 |
---|---|---|
|
@@ -2,3 +2,4 @@ | |
from .cip import * | ||
from .requests import * | ||
from .documents import * | ||
from .funding import * |
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,35 @@ | ||
from datetime import datetime | ||
from typing import Optional | ||
from uuid import UUID | ||
|
||
from ..enums import ACHRelationshipStatus, BankAccountType | ||
from alpaca.common.models import ValidateBaseModel as BaseModel | ||
|
||
|
||
class ACHRelationship(BaseModel): | ||
""" | ||
Attributes: | ||
id (UUID): ID of Relationship | ||
account_id (UUID): ID of the Account this ACHRelationship is tied to | ||
created_at (datetime): Date and time this relationship was created | ||
updated_at (datetime): Date and time of when this relationship was last updated | ||
status (ACHRelationshipStatus): Current status of the relationship | ||
account_owner_name (str): Full name of the account owner | ||
bank_account_type (BankAccountType): The kind of bank account this relationship points to | ||
bank_account_number (str): The number of bank account that the relationship points to | ||
bank_routing_number (str): Routing number for the bank account | ||
nickname (str): User provided name for account | ||
processor_token (Optional[str]): If you are using Plaid, then this is a Plaid processor token. | ||
""" | ||
|
||
id: UUID | ||
account_id: UUID | ||
created_at: datetime | ||
updated_at: datetime | ||
status: ACHRelationshipStatus | ||
account_owner_name: str | ||
bank_account_type: BankAccountType | ||
bank_account_number: str | ||
bank_routing_number: str | ||
nickname: str | ||
processor_token: Optional[str] = None |
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,19 @@ | ||
.. toctree:: | ||
:maxdepth: 2 | ||
:caption: Contents: | ||
|
||
Models For Accessing and Controlling Funding of Accounts | ||
======================================================== | ||
|
||
This page is for the models representing the information that various API requests require/can use. | ||
|
||
This has been separated out into a different module internally (and here in the docs) for ease of development | ||
but is still accessible from ``alpaca.broker.models`` directly. | ||
|
||
For example: | ||
|
||
>>> from alpaca.broker.models import ACHRelationship | ||
|
||
|
||
.. automodule:: alpaca.broker.models.funding | ||
:members: |
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