thawani-nodejs
Version:
Node.js library for Thawani Payment Gateway
22 lines • 715 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.PaymentMethods = void 0;
const base_1 = require("./base");
const constants_1 = require("../constants");
class PaymentMethods extends base_1.BaseResource {
async list(customerId) {
return this.request({
method: 'GET',
url: constants_1.API_ENDPOINTS.paymentMethods,
params: { customer_id: customerId }
});
}
async delete(cardId) {
return this.request({
method: 'DELETE',
url: `${constants_1.API_ENDPOINTS.paymentMethods}/${cardId}`
});
}
}
exports.PaymentMethods = PaymentMethods;
//# sourceMappingURL=payment-methods.js.map