mercadopago
Version:
Mercadopago SDK for Node.js
17 lines (16 loc) • 635 B
TypeScript
/**
* Implementation of the "update subscription plan" operation.
*
* Sends a PUT to `/preapproval_plan/{id}` with the modified fields
* and returns the updated plan resource.
*
* @module clients/preApprovalPlan/update
*/
import type { UpdatePreApprovalPlanUpdateClient } from './types';
import type { PreApprovalPlanResponse } from '../../../clients/preApprovalPlan/commonTypes';
/**
* Update an existing subscription plan template.
*
* @returns The updated plan resource.
*/
export default function update({ id, updatePreApprovalPlanRequest, config }: UpdatePreApprovalPlanUpdateClient): Promise<PreApprovalPlanResponse>;