UNPKG

mercadopago

Version:
21 lines (20 loc) 699 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.default = get; const path_1 = require("../../../utils/path"); /** * Get order operation -- sends `GET /v1/orders/{id}`. * * @module clients/order/get */ const restClient_1 = require("../../../utils/restClient"); /** * Retrieve a single order by its unique identifier. * * @returns The full order representation including transactions and status. */ function get({ id, config }) { return restClient_1.RestClient.fetch(`/v1/orders/${(0, path_1.encodePathParam)(id)}`, Object.assign({ method: 'GET', headers: { 'Authorization': `Bearer ${config.accessToken}`, } }, config.options)); }