UNPKG

open-banking-pfm-sdk

Version:

The Open Banking PFM SDK uses Client classes and with **Promises** to get responses from the Open Banking PFM API in an easier way and structured as data models.

24 lines (23 loc) 888 B
import ICategory from '../interfaces/ICategory'; export default class Category implements ICategory { protected _id: number; protected _name: string; protected _color: string; protected _imagePath: string; protected _parentCategoryId: number; protected _userId: number | string; protected _isUserCategory: boolean; protected _dateCreated: number | undefined; protected _lastUpdated: number | undefined; constructor({ id, name, color, imagePath, parentCategoryId, userId, isUserCategory, dateCreated, lastUpdated }: ICategory); get id(): number; get name(): string; get color(): string; get imagePath(): string; get parentCategoryId(): number; get userId(): number | string; get isUserCategory(): boolean; get dateCreated(): number | undefined; get lastUpdated(): number | undefined; toObject(): ICategory; }