UNPKG

thawani-nodejs

Version:

Node.js library for Thawani Payment Gateway

29 lines 846 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.Refunds = void 0; const base_1 = require("./base"); const constants_1 = require("../constants"); class Refunds extends base_1.BaseResource { async create(params) { return this.request({ method: 'POST', url: constants_1.API_ENDPOINTS.refunds, data: params }); } async retrieve(refundId) { return this.request({ method: 'GET', url: `${constants_1.API_ENDPOINTS.refunds}/${refundId}` }); } async list(limit = 10, skip = 0) { return this.request({ method: 'GET', url: constants_1.API_ENDPOINTS.refunds, params: { limit, skip } }); } } exports.Refunds = Refunds; //# sourceMappingURL=refunds.js.map