Class: BuckarooClient::Gateway::NVP::InvoiceInfoResponse

Inherits:
Response
  • Object
show all
Defined in:
lib/buckaroo_client/gateway/nvp/invoice_info_response.rb

Instance Attribute Summary

Attributes inherited from Response

#body, #response, #status_code, #success

Instance Method Summary collapse

Methods inherited from Response

for_action, #initialize, #verified?, #verify!

Methods included from Signature

#secret_key, #signature

Constructor Details

This class inherits a constructor from BuckarooClient::Gateway::NVP::Response

Instance Method Details

#paid?Boolean

Returns:

  • (Boolean)


8
9
10
11
# File 'lib/buckaroo_client/gateway/nvp/invoice_info_response.rb', line 8

def paid?
  return nil unless response.key?('BRQ_INVOICE_1_PAID')
  response['BRQ_INVOICE_1_PAID'].to_s.downcase == 'true'
end