UNPKG

ggez-banking-sdk

Version:

A Node.js package to handle GGEZ Banking API endpoints, Simplify the process of managing CRUD operations with this efficient and easy-to-use package.

19 lines (18 loc) 589 B
import { AccountEndpoints, Endpoints } from "../../constant/constant"; import { BaseService } from "./baseService"; class AccountService extends BaseService { endpoint = Endpoints.Account; constructor(data) { super(data); } // #region "GET" get(accountId) { const url = this.resolveURL(`/${accountId}`); return this.GET(url, { flags: { showSensitiveData: true } }); } getLimits(accountId) { const url = this.resolveURL(`/${AccountEndpoints.Limits}/${accountId}`); return this.GET(url); } } export { AccountService };