Exemplo n.º 1
0
class AccountHolder:
    first_name: str = json_field(json="firstName")
    last_name: str = json_field(json="lastName")
    middle_names: Optional[List[str]] = json_field(json="middleNames",
                                                   omitempty=True)
    address: Address = json_field(json="address")
    date_of_birth: date = json_field(json="dob")
Exemplo n.º 2
0
 class Item:
     string_value: str = json_field(json="stringValue")
     int_value: int = json_field(json="intValue")
     float_value: float = json_field(json="floatValue")
     bool_value: bool = json_field(json="boolValue")
     null_value: None = json_field(json="nullValue")
     datetime_value: datetime = json_field(json="datetimeValue")
     date_value: date = json_field(json="dateValue")
     uuid_value: UUID = json_field(json="uuidValue")
     enum_value: Option = json_field(json="enumValue")
Exemplo n.º 3
0
 class Item:
     string_value: Optional[str] = json_field(json="stringValue")
     int_value: Optional[int] = json_field(json="intValue")
     float_value: Optional[float] = json_field(json="floatValue")
     bool_value: Optional[bool] = json_field(json="boolValue")
     null_value: Optional[None] = json_field(json="nullValue")
     datetime_value: Optional[datetime] = json_field(json="datetimeValue")
     date_value: Optional[date] = json_field(json="dateValue")
     uuid_value: Optional[UUID] = json_field(json="uuidValue")
     enum_value: Optional[Option] = json_field(json="enumValue")
Exemplo n.º 4
0
 class Item:
     value: str
     str_value: Optional[str] = json_field(omitempty=True)
     int_value: Optional[int] = json_field(omitempty=True)
     float_value: Optional[float] = json_field(omitempty=True)
     bool_value: Optional[bool] = json_field(omitempty=True)
     uuid_value: Optional[UUID] = json_field(omitempty=True)
     datetime_value: Optional[datetime] = json_field(omitempty=True)
     date_value: Optional[date] = json_field(omitempty=True)
Exemplo n.º 5
0
class Officers:
    directors: Optional[List[Officer]] = json_field(omitempty=True)
    other: Optional[List[Officer]] = json_field(omitempty=True)
    partners: Optional[List[Officer]] = json_field(omitempty=True)
    resigned: Optional[List[Officer]] = json_field(omitempty=True)
    secretaries: Optional[List[Officer]] = json_field(omitempty=True)
    trustees: Optional[List[Officer]] = json_field(omitempty=True)
Exemplo n.º 6
0
class Officer:
    entity_type: EntityType
    linked_profile: LinkedProfile
    merged_resolver_ids: List[UUID] = json_field(omitempty=True)
    resolver_id: UUID = json_field(omitempty=True)
    task_variant_ids: List[UUID] = json_field(omitempty=True)
    unverified_task_variant_ids: List[UUID] = json_field(omitempty=True)
    natures_of_control: Optional[List[str]] = json_field(omitempty=True)
    shareholdings: Optional[List[Shareholding]] = json_field(omitempty=True)
Exemplo n.º 7
0
class Address:
    house_number: str = json_field(json="houseNumber")
    post_code: str = json_field(json="postCode")
    street: Optional[str] = json_field(json="street", omitempty=True)
Exemplo n.º 8
0
class Schema(Item):
    important_item: Item = json_field(json="importantItem")

    items_list: List[Item] = json_field(json="itemsList")

    int_list: List[int] = json_field(json="intList")
    float_list: List[float] = json_field(json="floatList")
    str_list: List[str] = json_field(json="strList")
    datetime_list: List[datetime] = json_field(json="datetimeList")
    date_list: List[date] = json_field(json="dateList")
    enum_list: List[Size] = json_field(json="enumList")

    # Include the complete item here too
    int_key: int = json_field(json="intKey")
    float_key: float = json_field(json="floatKey")
    str_key: str = json_field(json="strKey")
    datetime_key: datetime = json_field(json="datetimeKey")
    date_key: date = json_field(json="dateKey")
    enum_key: Size = json_field(json="enumKey")

    optional_valid_int_key: Optional[int] = json_field(
        json="optionalValidIntKey")
    optional_valid_float_key: Optional[float] = json_field(
        json="optionalValidFloatKey")
    optional_valid_str_key: Optional[str] = json_field(
        json="optionalValidStrKey")
    optional_valid_datetime_key: Optional[datetime] = json_field(
        json="optionalValidDatetimeKey")
    optional_valid_date_key: Optional[date] = json_field(
        json="optionalValidDateKey")
    optional_valid_enum_key: Optional[Size] = json_field(
        json="optionalValidEnumKey")

    optional_null_int_key: Optional[int] = json_field(
        json="optionalNullIntKey")
    optional_null_float_key: Optional[float] = json_field(
        json="optionalNullFloatKey")
    optional_null_str_key: Optional[str] = json_field(
        json="optionalNullStrKey")
    optional_null_datetime_key: Optional[datetime] = json_field(
        json="optionalNullDatetimeKey")
    optional_null_date_key: Optional[date] = json_field(
        json="optionalNullDateKey")
    optional_null_enum_key: Optional[Size] = json_field(
        json="optionalNullEnumKey")
Exemplo n.º 9
0
class Item:
    int_key: int = json_field(json="intKey")
    float_key: float = json_field(json="floatKey")
    str_key: str = json_field(json="strKey")
    datetime_key: datetime = json_field(json="datetimeKey")
    date_key: date = json_field(json="dateKey")
    enum_key: Size = json_field(json="enumKey")

    optional_valid_int_key: Optional[int] = json_field(
        json="optionalValidIntKey")
    optional_valid_float_key: Optional[float] = json_field(
        json="optionalValidFloatKey")
    optional_valid_str_key: Optional[str] = json_field(
        json="optionalValidStrKey")
    optional_valid_datetime_key: Optional[datetime] = json_field(
        json="optionalValidDatetimeKey")
    optional_valid_date_key: Optional[date] = json_field(
        json="optionalValidDateKey")
    optional_valid_enum_key: Optional[Size] = json_field(
        json="optionalValidEnumKey")

    optional_null_int_key: Optional[int] = json_field(
        json="optionalNullIntKey")
    optional_null_float_key: Optional[float] = json_field(
        json="optionalNullFloatKey")
    optional_null_str_key: Optional[str] = json_field(
        json="optionalNullStrKey")
    optional_null_datetime_key: Optional[datetime] = json_field(
        json="optionalNullDatetimeKey")
    optional_null_date_key: Optional[date] = json_field(
        json="optionalNullDateKey")
    optional_null_enum_key: Optional[Size] = json_field(
        json="optionalNullEnumKey")
Exemplo n.º 10
0
class AccountPage:
    results: List[Account] = json_field(json="results")
    page: int = json_field(json="page")
    next_page: Optional[int] = json_field(json="nextPage")
Exemplo n.º 11
0
class Account:
    account_name: str = json_field(json="accountName")
    number: str = json_field(json="number")
Exemplo n.º 12
0
class User:
    user_id: int = json_field(json="userId")
    first_name: str = json_field(json="firstName")
    last_name: str = json_field(json="lastName")
Exemplo n.º 13
0
 class Inner:
     string_value: str = json_field(json="stringValue")
     int_value: int = json_field(json="intValue")
     uuid_value: UUID = json_field(json="uuidValue")
Exemplo n.º 14
0
class FullName:
    family_name: str
    given_names: List[str]
    title: Optional[str] = json_field(omitempty=True)
    alt_family_names: Optional[List[str]] = json_field(omitempty=True)
Exemplo n.º 15
0
class Metadata:
    country_of_incorporation: CountryOfIncorperation
    name: str
    number: str
    previous_names: Optional[List[PreviousName]] = json_field(omitempty=True)
Exemplo n.º 16
0
class OwnershipStructure:
    beneficial_owners: List[Officer]
    share_classes: Optional[List[ShareClass]] = json_field(omitempty=True)
Exemplo n.º 17
0
class Account:
    account_number: int = json_field(json="accountNumber")
    sort_code: int = json_field(json="sortCode")
    account_type: AccountType = json_field(json="accountType")
    account_holder: AccountHolder = json_field(json="accountHolder")
    date_opened: datetime = json_field(json="dateOpened")
Exemplo n.º 18
0
class TaskVariant:
    id: UUID
    task_type: TaskType
    alias: str
    description: Optional[str] = json_field(omitempty=True)
    name: Optional[str] = json_field(omitempty=True)