lib/bayonet_client/response.rb in bayonet_client-2.1.1 vs lib/bayonet_client/response.rb in bayonet_client-2.1.2
- old
+ new
@@ -1,24 +1,21 @@
require 'json'
module BayonetClient
class BayonetResponse
- attr_accessor :feedback_api_trans_code, :rules_triggered,
- :risk_level, :payload, :reason_code,
+ attr_accessor :rules_triggered,
+ :decision, :payload, :reason_code,
:reason_message, :request_body, :bayonet_fingerprint,
:raw
def initialize(parsed_response)
- if parsed_response.key?('feedback_api_trans_code')
- self.feedback_api_trans_code = parsed_response['feedback_api_trans_code']
- end
if parsed_response.key?('rules_triggered')
self.rules_triggered = parsed_response['rules_triggered']
end
- if parsed_response.key?('risk_level')
- self.risk_level = parsed_response['risk_level']
+ if parsed_response.key?('decision')
+ self.decision = parsed_response['decision']
end
if parsed_response.key?('payload')
self.payload = parsed_response['payload']
end
if parsed_response.key?('reason_code')