lib/recurly/invoice.rb
# Refunds the invoice for a specific amount.
#
# @return [Invoice, false] A new refund invoice, false if the invoice isn't
# refundable.
# @raise [Error] If the refund fails.
# @param amount_in_cents [Integer, nil] The amount (in cents) to refund.
Refunds the invoice for a specific amount.
Refunds the invoice for a specific amount .
def refund_amount amount_in_cents = nil, refund_apply_order = 'credit'
      return false unless link? :refund
      refund = self.class.from_response(
        follow_link :refund, :body => refund_amount_to_xml(amount_in_cents, refund_apply_order)
      )
      refund
    end
def refund_amount amount_in_cents = nil , refund_apply_order = 'credit' return false unless link? :refund refund = self . class . from_response ( follow_link :refund , :body => refund_amount_to_xml ( amount_in_cents , refund_apply_order ) ) refund end
Refunds the invoice for a specific amount.
Refunds the invoice for a specific amount .
A new refund invoice, false if the invoice isn't refundable.
A new refund invoice false if the invoice isn ' t refundable .
Invoice, false
[Error] If the refund fails.
[ Error ] If the refund fails .
amount_in_cents
The amount (in cents) to refund.
The amount ( in cents ) to refund .
refund_apply_order
<not_specific>