plaid2.model.category module

class plaid2.model.category.Category(*, category_id: str, hierarchy: List[str], group: str)[source]

Bases: BaseModel

category_id: str

An identifying number for the category. category_id is a Plaid-specific identifier and does not necessarily correspond to merchant category codes.

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

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

group: str

place for physical transactions or special for other transactions such as bank charges.

hierarchy: List[str]

A hierarchical array of the categories to which this category_id belongs.

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) Category[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) Category[source]

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