plaid2.model.phone_number module

class plaid2.model.phone_number.PhoneNumber(*, data: str, primary: bool, type: str)[source]

Bases: BaseModel

data: str

The phone number.

dict(**kwargs: Any) Dict[str, Any][source]

Return a dict representation of the object. Takes same keyword arguments as pydantic.BaseModel.dict

json(**kwargs: Any) str[source]

Return a json string representation of the object. Takes same keyword arguments as pydantic.BaseModel.json

classmethod parse_obj(data: Any) PhoneNumber[source]

Parse a dict into the object. Takes same keyword arguments as pydantic.BaseModel.parse_obj

classmethod parse_raw(b: Union[bytes, str], **kwargs: Any) PhoneNumber[source]

Parse a json string into the object. Takes same keyword arguments as pydantic.BaseModel.parse_raw

primary: bool

When true, identifies the phone number as the primary number on an account.

type: str

The type of phone number.