UNPKG

mercadopago

Version:
18 lines (17 loc) 583 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.default = get; const path_1 = require("../../../utils/path"); /** * Get chargeback operation. * * Sends a `GET /v1/chargebacks/:id` request. * * @module chargeback/get */ const restClient_1 = require("../../../utils/restClient"); function get({ id, config }) { return restClient_1.RestClient.fetch(`/v1/chargebacks/${(0, path_1.encodePathParam)(id)}`, Object.assign({ method: 'GET', headers: { 'Authorization': `Bearer ${config.accessToken}`, } }, config.options)); }