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



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

def currency
  params[:brq_refundinfo_1_refundcurrency]
end

#invoicenumberObject



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

def invoicenumber
  params[:brq_refundinfo_1_invoice]
end

#maximum_amountObject



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

def maximum_amount
  params[:brq_refundinfo_1_maximumrefundamount]
end

#payment_methodObject



211
212
213
# File 'lib/buckaruby/response.rb', line 211

def payment_method
  params[:brq_refundinfo_1_servicecode]
end

#refundable?Boolean

Returns:

  • (Boolean)


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

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