class Mercadopago::DisbursementRefund

Access to Advanced Payments Refunds

Public Instance Methods

create(advanced_payment_id, disbursement_id, amount: nil, request_options: nil) click to toggle source
# File lib/mercadopago/resources/disbursement_refund.rb, line 17
def create(advanced_payment_id, disbursement_id, amount: nil, request_options: nil)
  disbursement_refund_data = amount.nil? ? nil : { amount: amount }

  _post(uri: "/v1/advanced_payments/#{advanced_payment_id}/disbursements/#{disbursement_id}/refunds",
        data: disbursement_refund_data, request_options: request_options)
end
create_all(advanced_payment_id, request_options: nil) click to toggle source
# File lib/mercadopago/resources/disbursement_refund.rb, line 13
def create_all(advanced_payment_id, request_options: nil)
  _post(uri: "/v1/advanced_payments/#{advanced_payment_id}/refunds", request_options: request_options)
end
list(advanced_payment_id, request_options: nil) click to toggle source
# File lib/mercadopago/resources/disbursement_refund.rb, line 9
def list(advanced_payment_id, request_options: nil)
  _get(uri: "/v1/advanced_payments/#{advanced_payment_id}/refunds", request_options: nil)
end