mercadopago
Version:
Mercadopago SDK for Node.js
17 lines (16 loc) • 594 B
TypeScript
/**
* Implementation of the "update preference" operation.
*
* Sends a PUT to `/checkout/preferences/{id}` with the modified fields
* and returns the updated preference resource.
*
* @module clients/preference/update
*/
import type { PreferenceUpdateClient } from './types';
import type { PreferenceResponse } from '../../../clients/preference/commonTypes';
/**
* Update an existing Checkout Pro preference.
*
* @returns The updated preference resource.
*/
export default function update({ id, updatePreferenceRequest, config }: PreferenceUpdateClient): Promise<PreferenceResponse>;