lib/bayonet_client/response.rb in bayonet_client-2.1.2 vs lib/bayonet_client/response.rb in bayonet_client-2.2.0

- old
+ new

@@ -2,20 +2,23 @@ module BayonetClient class BayonetResponse attr_accessor :rules_triggered, - :decision, :payload, :reason_code, + :decision, :bayonet_tracking_id, :payload, :reason_code, :reason_message, :request_body, :bayonet_fingerprint, :raw def initialize(parsed_response) if parsed_response.key?('rules_triggered') self.rules_triggered = parsed_response['rules_triggered'] end if parsed_response.key?('decision') self.decision = parsed_response['decision'] + end + if parsed_response.key?('bayonet_tracking_id') + self.bayonet_tracking_id = parsed_response['bayonet_tracking_id'] end if parsed_response.key?('payload') self.payload = parsed_response['payload'] end if parsed_response.key?('reason_code')