class Mercadopago::Refund

[Click here for more infos](www.mercadopago.com.br/developers/en/guides/manage-account/account/cancellations-and-refunds#bookmark_refunds)

Public Instance Methods

create(payment_id, refund_data: nil, request_options: nil) click to toggle source
# File lib/mercadopago/resources/refund.rb, line 18
def create(payment_id, refund_data: nil, request_options: nil)
  raise TypeError, 'Param refund_data must be a Hash' unless refund_data.nil? || refund_data.is_a?(Hash)

  _post(uri: "/v1/payments/#{payment_id}/refunds", data: refund_data, request_options: request_options)
end
list(payment_id, request_options: nil) click to toggle source
# File lib/mercadopago/resources/refund.rb, line 14
def list(payment_id, request_options: nil)
  _get(uri: "/v1/payments/#{payment_id}/refunds", request_options: request_options)
end