lib/recurly/invoice.rb
# Refunds specific line items on the invoice.
#
# @return [Invoice, false] A new refund invoice, false if the invoice isn't
# refundable.
# @raise [Error] If the refund fails.
# @param line_items [Array, nil] An array of line items to refund.
Refunds specific line items on the invoice.
Refunds specific line items on the invoice .
def refund line_items = nil, refund_apply_order = 'credit'
      return false unless link? :refund
      refund = self.class.from_response(
        follow_link :refund, :body => refund_line_items_to_xml(line_items, refund_apply_order)
      )
      refund
    end
def refund line_items = nil , refund_apply_order = 'credit' return false unless link? :refund refund = self . class . from_response ( follow_link :refund , :body => refund_line_items_to_xml ( line_items , refund_apply_order ) ) refund end
Refunds specific line items on the invoice.
Refunds specific line items on the invoice .
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 .
line_items
An array of line items to refund.
An array of line items to refund .
refund_apply_order
<not_specific>