Class: Buckaruby::RefundInfoResponse

Inherits:
ApiResponse show all
Defined in:
lib/buckaruby/response.rb

Overview

Response when retrieving the refund information.

Instance Attribute Summary

Attributes inherited from Response

#response

Instance Method Summary collapse

Methods inherited from ApiResponse

#initialize

Methods inherited from Response

#additional, #custom, #initialize, #params, #status, #timestamp

Constructor Details

This class inherits a constructor from Buckaruby::ApiResponse

Instance Method Details

#currencyObject



230
231
232
# File 'lib/buckaruby/response.rb', line 230

def currency
  params[:brq_refundinfo_1_refundcurrency]
end

#invoicenumberObject



226
227
228
# File 'lib/buckaruby/response.rb', line 226

def invoicenumber
  params[:brq_refundinfo_1_invoice]
end

#maximum_amountObject



222
223
224
# File 'lib/buckaruby/response.rb', line 222

def maximum_amount
  params[:brq_refundinfo_1_maximumrefundamount]
end

#payment_methodObject



214
215
216
# File 'lib/buckaruby/response.rb', line 214

def payment_method
  params[:brq_refundinfo_1_servicecode]
end

#refundable?Boolean

Returns:

  • (Boolean)


218
219
220
# File 'lib/buckaruby/response.rb', line 218

def refundable?
  !params[:brq_refundinfo_1_isrefundable].nil? && params[:brq_refundinfo_1_isrefundable].casecmp('true').zero?
end