-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* moral accounts * imports * lint * version
- Loading branch information
1 parent
f8e7f47
commit 8bed077
Showing
5 changed files
with
131 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 |
---|---|---|
@@ -0,0 +1,74 @@ | ||
import datetime as dt | ||
from typing import List, Optional | ||
|
||
from pydantic import BaseModel, EmailStr | ||
|
||
from cuenca_validations.types import Address, CurpField, PhoneNumber, Rfc | ||
|
||
|
||
class BusinessDetails(BaseModel): | ||
business_description: str | ||
account_usage_description: str | ||
|
||
|
||
class TransactionalProfileServices(BaseModel): | ||
spei_transfers_num: int | ||
spei_transfers_amount: int | ||
internal_transfers_num: int | ||
internal_transfers_amount: int | ||
|
||
|
||
class TransactionalProfile(BaseModel): | ||
currency: str | ||
monthly_amount: int | ||
payers_num: int | ||
recipients_num: int | ||
deposits: Optional[TransactionalProfileServices] = None | ||
withdrawal: Optional[TransactionalProfileServices] = None | ||
|
||
|
||
class LicenseDetails(BaseModel): | ||
license_required: bool | ||
supervisory_entity: Optional[str] = None | ||
license_type: Optional[str] = None | ||
license_date: Optional[dt.date] = None | ||
|
||
|
||
class AuditDetails(BaseModel): | ||
has_audit: bool | ||
audit_provider: Optional[str] = None | ||
audit_date: Optional[dt.date] = None | ||
audit_comments: Optional[str] = None | ||
|
||
|
||
class VulnerableActivityDetails(BaseModel): | ||
is_vulnerable_activity: bool | ||
has_sat_register: Optional[bool] = None | ||
sat_registered_date: Optional[dt.date] = None | ||
is_in_compliance: Optional[bool] = None | ||
|
||
|
||
class PhysicalPerson(BaseModel): | ||
names: str | ||
first_surname: str | ||
second_surname: Optional[str] = None | ||
curp: Optional[CurpField] = None | ||
rfc: Optional[Rfc] = None | ||
|
||
|
||
class LegalRepresentative(PhysicalPerson): | ||
job: str | ||
phone_number: PhoneNumber | ||
email_address: EmailStr | ||
address: Address | ||
|
||
|
||
class ShareholderPhysical(PhysicalPerson): | ||
share_capital: int | ||
|
||
|
||
class Shareholder(BaseModel): | ||
name: str | ||
percentage: int | ||
shareholders: List[ShareholderPhysical] | ||
legal_representatives: List[LegalRepresentative] |
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 |
---|---|---|
@@ -1 +1 @@ | ||
__version__ = '0.11.25' | ||
__version__ = '0.11.26' |