mercadopago
Version:
Mercadopago SDK for Node.js
17 lines (16 loc) • 554 B
TypeScript
/**
* Implementation of the list-refunds operation.
*
* Sends a `GET /v1/payments/{payment_id}/refunds/` request to retrieve
* all refunds associated with the specified payment.
*
* @module paymentRefund/list
*/
import type { PaymentRefundListClient } from './types';
import type { RefundResponse } from '../commonTypes';
/**
* List all refunds for the specified payment.
*
* @returns An array of refund records for the payment.
*/
export default function list({ payment_id, config }: PaymentRefundListClient): Promise<Array<RefundResponse>>;