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.
21 lines (20 loc) • 604 B
JavaScript
import { Endpoints, TransactionEndpoints } from "../../constant/constant";
import { BaseService } from "./baseService";
class TransactionService extends BaseService {
endpoint = Endpoints.Transaction;
constructor(data) {
super(data);
}
// #region "GET"
inquiry(payload) {
const url = this.resolveURL(TransactionEndpoints.Inquiry);
return this.GET(url, { params: payload });
}
// #endregion
// #region "POST"
create(payload) {
const url = this.resolveURL();
return this.POST(url, payload);
}
}
export { TransactionService };