mercadopago
Version:
Mercadopago SDK for Node.js
17 lines (16 loc) • 576 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.default = update;
/**
* Update advanced-payment operation.
*
* Sends a `PUT /v1/advanced_payments/:id` request.
*
* @module advancedPayment/update
*/
const restClient_1 = require("../../../utils/restClient");
function update({ id, body, config }) {
return restClient_1.RestClient.fetch(`/v1/advanced_payments/${id}`, Object.assign({ method: 'PUT', headers: {
'Authorization': `Bearer ${config.accessToken}`,
}, body: JSON.stringify(body) }, config.options));
}