UNPKG

thawani-nodejs

Version:

Node.js library for Thawani Payment Gateway

22 lines 644 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.Payments = void 0; const base_1 = require("./base"); const constants_1 = require("../constants"); class Payments extends base_1.BaseResource { async retrieve(paymentId) { return this.request({ method: 'GET', url: `${constants_1.API_ENDPOINTS.payments}/${paymentId}` }); } async list(params) { return this.request({ method: 'GET', url: constants_1.API_ENDPOINTS.payments, params }); } } exports.Payments = Payments; //# sourceMappingURL=payments.js.map