Class: Adyen::API::RecurringService::DisableResponse

Inherits:
Adyen::API::Response show all
Defined in:
lib/adyen/api.rb

Constant Summary collapse

DISABLED_RESPONSES =
%w{ [detail-successfully-disabled] [all-details-successfully-disabled] }

Instance Attribute Summary

Attributes inherited from Adyen::API::Response

#http_response

Instance Method Summary collapse

Methods inherited from Adyen::API::Response

#http_failure?, #initialize, response_attrs, #xml_querier

Constructor Details

This class inherits a constructor from Adyen::API::Response

Instance Method Details

#paramsObject



392
393
394
# File 'lib/adyen/api.rb', line 392

def params
  @params ||= { :response => xml_querier.text('//recurring:disableResponse/recurring:result/recurring:response') }
end

#success?Boolean Also known as: disabled?

Returns:

  • (Boolean)


386
387
388
# File 'lib/adyen/api.rb', line 386

def success?
  super && DISABLED_RESPONSES.include?(params[:response])
end