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.
30 lines (29 loc) • 1 kB
TypeScript
import IAccountPayload from '../interfaces/IAccountPayload';
export default class AccountPayload implements IAccountPayload {
private _userId;
private _financialEntityId;
private _nature;
private _name;
private _number;
private _balance;
private _chargeable;
private _extra_data?;
constructor({ userId, financialEntityId, nature, name, number, balance, chargeable, extra_data }: IAccountPayload);
get userId(): number | string;
set userId(value: number | string);
get financialEntityId(): number;
set financialEntityId(value: number);
get nature(): string;
set nature(value: string);
get name(): string;
set name(value: string);
get number(): string;
set number(value: string);
get balance(): number;
set balance(value: number);
get chargeable(): boolean;
set chargeable(value: boolean);
get extra_data(): string | undefined;
set extra_data(value: string | undefined);
toObject(): IAccountPayload;
}