cybersource_rest_client 0.0.86 → 0.0.87

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (200) hide show
  1. checksums.yaml +4 -4
  2. data/lib/AuthenticationSDK/util/CertificateUtility.rb +14 -6
  3. data/lib/cybersource_rest_client/api/agent_capabilities_api.rb +24 -24
  4. data/lib/cybersource_rest_client/api/bin_lookup_api.rb +3 -3
  5. data/lib/cybersource_rest_client/api/create_new_webhooks_api.rb +6 -6
  6. data/lib/cybersource_rest_client/api/foreign_exchange_rates_api.rb +3 -3
  7. data/lib/cybersource_rest_client/api/manage_webhooks_api.rb +9 -9
  8. data/lib/cybersource_rest_client/api/merchant_boarding_api.rb +3 -3
  9. data/lib/cybersource_rest_client/api/offers_api.rb +3 -3
  10. data/lib/cybersource_rest_client/api/search_transactions_api.rb +2 -2
  11. data/lib/cybersource_rest_client/api/transaction_details_api.rb +1 -1
  12. data/lib/cybersource_rest_client/api/transaction_query_api.rb +3 -3
  13. data/lib/cybersource_rest_client/api/visa_protect_risk_insights_api.rb +104 -0
  14. data/lib/cybersource_rest_client/models/inline_response_200_16.rb +2 -2
  15. data/lib/cybersource_rest_client/models/inline_response_200_17.rb +5 -5
  16. data/lib/cybersource_rest_client/models/inline_response_200_18.rb +5 -5
  17. data/lib/cybersource_rest_client/models/inline_response_200_4.rb +1 -1
  18. data/lib/cybersource_rest_client/models/inline_response_200_5.rb +1 -1
  19. data/lib/cybersource_rest_client/models/inline_response_201_10.rb +18 -93
  20. data/lib/cybersource_rest_client/models/inline_response_201_11.rb +103 -8
  21. data/lib/cybersource_rest_client/models/{inline_response_201_12_client_reference_information.rb → inline_response_201_11_client_reference_information.rb} +1 -1
  22. data/lib/cybersource_rest_client/models/{inline_response_201_12_error_information.rb → inline_response_201_11_error_information.rb} +1 -1
  23. data/lib/cybersource_rest_client/models/{inline_response_201_12_order_information.rb → inline_response_201_11_order_information.rb} +2 -2
  24. data/lib/cybersource_rest_client/models/{inline_response_201_12_order_information_currency_conversion.rb → inline_response_201_11_order_information_currency_conversion.rb} +2 -2
  25. data/lib/cybersource_rest_client/models/{inline_response_201_12_order_information_currency_conversion_offer.rb → inline_response_201_11_order_information_currency_conversion_offer.rb} +1 -1
  26. data/lib/cybersource_rest_client/models/{inline_response_201_12_processor_information.rb → inline_response_201_11_processor_information.rb} +1 -1
  27. data/lib/cybersource_rest_client/models/inline_response_201_12.rb +110 -89
  28. data/lib/cybersource_rest_client/models/{inline_response_201_13_fulfillment_address.rb → inline_response_201_12_fulfillment_address.rb} +1 -1
  29. data/lib/cybersource_rest_client/models/{inline_response_201_13_fulfillment_options.rb → inline_response_201_12_fulfillment_options.rb} +1 -1
  30. data/lib/cybersource_rest_client/models/{inline_response_201_14_item.rb → inline_response_201_12_item.rb} +20 -20
  31. data/lib/cybersource_rest_client/models/inline_response_201_12_line_items.rb +256 -0
  32. data/lib/cybersource_rest_client/models/{inline_response_201_13_links.rb → inline_response_201_12_links.rb} +1 -1
  33. data/lib/cybersource_rest_client/models/{inline_response_201_13_messages.rb → inline_response_201_12_messages.rb} +1 -1
  34. data/lib/cybersource_rest_client/models/{inline_response_201_13_payment_provider.rb → inline_response_201_12_payment_provider.rb} +1 -1
  35. data/lib/cybersource_rest_client/models/{inline_response_201_13_totals.rb → inline_response_201_12_totals.rb} +1 -1
  36. data/lib/cybersource_rest_client/models/inline_response_201_13.rb +61 -67
  37. data/lib/cybersource_rest_client/models/{inline_response_201_14_discounts.rb → inline_response_201_13_discounts.rb} +1 -1
  38. data/lib/cybersource_rest_client/models/{inline_response_201_14_fulfillment.rb → inline_response_201_13_fulfillment.rb} +1 -1
  39. data/lib/cybersource_rest_client/models/inline_response_201_13_item.rb +19 -19
  40. data/lib/cybersource_rest_client/models/inline_response_201_13_line_items.rb +20 -51
  41. data/lib/cybersource_rest_client/models/{inline_response_201_14_order.rb → inline_response_201_13_order.rb} +1 -1
  42. data/lib/cybersource_rest_client/models/{inline_response_201_14_payment.rb → inline_response_201_13_payment.rb} +1 -1
  43. data/lib/cybersource_rest_client/models/{inline_response_201_14_ucp.rb → inline_response_201_13_ucp.rb} +2 -2
  44. data/lib/cybersource_rest_client/models/{inline_response_201_14_ucp_capabilities.rb → inline_response_201_13_ucp_capabilities.rb} +1 -1
  45. data/lib/cybersource_rest_client/models/inline_response_201_3.rb +82 -39
  46. data/lib/cybersource_rest_client/models/{inline_response_201_5_error_information.rb → inline_response_201_3_error_information.rb} +3 -3
  47. data/lib/cybersource_rest_client/models/{inline_response_201_5_error_information_details.rb → inline_response_201_3_error_information_details.rb} +2 -2
  48. data/lib/cybersource_rest_client/models/{inline_response_201_5_order_information.rb → inline_response_201_3_order_information.rb} +2 -2
  49. data/lib/cybersource_rest_client/models/inline_response_201_3_order_information_amount_details.rb +315 -0
  50. data/lib/cybersource_rest_client/models/inline_response_201_3_processing_information.rb +189 -0
  51. data/lib/cybersource_rest_client/models/{inline_response_201_4_processing_information_routing.rb → inline_response_201_3_processing_information_routing.rb} +1 -1
  52. data/lib/cybersource_rest_client/models/inline_response_201_3_processor_information.rb +213 -0
  53. data/lib/cybersource_rest_client/models/inline_response_201_4.rb +41 -30
  54. data/lib/cybersource_rest_client/models/{inline_response_201_5__links.rb → inline_response_201_4__links.rb} +2 -2
  55. data/lib/cybersource_rest_client/models/{inline_response_201_5__links_self.rb → inline_response_201_4__links_self.rb} +1 -1
  56. data/lib/cybersource_rest_client/models/{inline_response_201_5_acquirer_information.rb → inline_response_201_4_acquirer_information.rb} +1 -1
  57. data/lib/cybersource_rest_client/models/{inline_response_201_5_client_reference_information.rb → inline_response_201_4_client_reference_information.rb} +1 -1
  58. data/lib/cybersource_rest_client/models/inline_response_201_4_error_information.rb +1 -1
  59. data/lib/cybersource_rest_client/models/inline_response_201_4_error_information_details.rb +1 -1
  60. data/lib/cybersource_rest_client/models/{inline_response_201_5_merchant_information.rb → inline_response_201_4_merchant_information.rb} +1 -1
  61. data/lib/cybersource_rest_client/models/inline_response_201_4_order_information_amount_details.rb +46 -97
  62. data/lib/cybersource_rest_client/models/{inline_response_201_5_payment_information.rb → inline_response_201_4_payment_information.rb} +2 -2
  63. data/lib/cybersource_rest_client/models/{inline_response_201_5_payment_information_card.rb → inline_response_201_4_payment_information_card.rb} +1 -1
  64. data/lib/cybersource_rest_client/models/inline_response_201_4_processing_information.rb +59 -8
  65. data/lib/cybersource_rest_client/models/{inline_response_201_5_processing_information_payouts_options.rb → inline_response_201_4_processing_information_payouts_options.rb} +1 -1
  66. data/lib/cybersource_rest_client/models/inline_response_201_4_processor_information.rb +342 -7
  67. data/lib/cybersource_rest_client/models/{inline_response_201_5_processor_information_card_verification.rb → inline_response_201_4_processor_information_card_verification.rb} +1 -1
  68. data/lib/cybersource_rest_client/models/{inline_response_201_5_transactions.rb → inline_response_201_4_transactions.rb} +7 -7
  69. data/lib/cybersource_rest_client/models/inline_response_201_5.rb +35 -68
  70. data/lib/cybersource_rest_client/models/{inline_response_201_6_payout_information.rb → inline_response_201_5_payout_information.rb} +3 -3
  71. data/lib/cybersource_rest_client/models/{inline_response_201_6_payout_information_pull_funds.rb → inline_response_201_5_payout_information_pull_funds.rb} +1 -1
  72. data/lib/cybersource_rest_client/models/{inline_response_201_6_payout_information_push_funds.rb → inline_response_201_5_payout_information_push_funds.rb} +1 -1
  73. data/lib/cybersource_rest_client/models/inline_response_201_6.rb +59 -26
  74. data/lib/cybersource_rest_client/models/{inline_response_201_7_integration_information.rb → inline_response_201_6_integration_information.rb} +2 -2
  75. data/lib/cybersource_rest_client/models/{inline_response_201_7_integration_information_tenant_configurations.rb → inline_response_201_6_integration_information_tenant_configurations.rb} +1 -1
  76. data/lib/cybersource_rest_client/models/{inline_response_201_7_organization_information.rb → inline_response_201_6_organization_information.rb} +1 -1
  77. data/lib/cybersource_rest_client/models/{inline_response_201_7_product_information_setups.rb → inline_response_201_6_product_information_setups.rb} +2 -2
  78. data/lib/cybersource_rest_client/models/{inline_response_201_7_registration_information.rb → inline_response_201_6_registration_information.rb} +1 -1
  79. data/lib/cybersource_rest_client/models/{inline_response_201_7_setups.rb → inline_response_201_6_setups.rb} +4 -4
  80. data/lib/cybersource_rest_client/models/{inline_response_201_7_setups_commerce_solutions.rb → inline_response_201_6_setups_commerce_solutions.rb} +1 -1
  81. data/lib/cybersource_rest_client/models/{inline_response_201_7_setups_risk.rb → inline_response_201_6_setups_risk.rb} +1 -1
  82. data/lib/cybersource_rest_client/models/{inline_response_201_7_setups_value_added_services.rb → inline_response_201_6_setups_value_added_services.rb} +1 -1
  83. data/lib/cybersource_rest_client/models/inline_response_201_7.rb +19 -78
  84. data/lib/cybersource_rest_client/models/{inline_response_201_8_key_information.rb → inline_response_201_7_key_information.rb} +2 -2
  85. data/lib/cybersource_rest_client/models/{inline_response_201_8_key_information_error_information.rb → inline_response_201_7_key_information_error_information.rb} +2 -2
  86. data/lib/cybersource_rest_client/models/{inline_response_201_8_key_information_error_information_details.rb → inline_response_201_7_key_information_error_information_details.rb} +1 -1
  87. data/lib/cybersource_rest_client/models/inline_response_201_8.rb +117 -25
  88. data/lib/cybersource_rest_client/models/inline_response_201_9.rb +68 -105
  89. data/lib/cybersource_rest_client/models/{inline_response_201_10_payloads.rb → inline_response_201_9_payloads.rb} +2 -2
  90. data/lib/cybersource_rest_client/models/{inline_response_201_10_payloads_test_payload.rb → inline_response_201_9_payloads_test_payload.rb} +1 -1
  91. data/lib/cybersource_rest_client/models/inline_response_400_3.rb +1 -1
  92. data/lib/cybersource_rest_client/models/inline_response_400_4.rb +1 -1
  93. data/lib/cybersource_rest_client/models/invoicing_v2_invoices_post201_response_merchant_defined_field_values_with_definition.rb +11 -1
  94. data/lib/cybersource_rest_client/models/ucv1sessions_complete_mandate.rb +16 -5
  95. data/lib/cybersource_rest_client/models/ucv1sessions_data.rb +11 -1
  96. data/lib/cybersource_rest_client/models/ucv1sessions_data_acquirer_information.rb +196 -0
  97. data/lib/cybersource_rest_client/models/ucv1sessions_data_aggregator_information.rb +1 -1
  98. data/lib/cybersource_rest_client/models/ucv1sessions_data_consumer_authentication_information.rb +16 -5
  99. data/lib/cybersource_rest_client/models/{inline_response_201_14_line_items.rb → unified_risk_post201_response.rb} +28 -42
  100. data/lib/cybersource_rest_client/models/{inline_response_201_3_results.rb → unified_risk_post201_response_results.rb} +3 -3
  101. data/lib/cybersource_rest_client/models/unified_risk_post201_response_results_risk_insights.rb +291 -0
  102. data/lib/cybersource_rest_client/models/unified_risk_post201_response_results_risk_insights_client.rb +208 -0
  103. data/lib/cybersource_rest_client/models/unified_risk_post201_response_results_risk_insights_error.rb +202 -0
  104. data/lib/cybersource_rest_client/models/unified_risk_post201_response_results_risk_insights_packages.rb +190 -0
  105. data/lib/cybersource_rest_client/models/unified_risk_post201_response_results_risk_insights_packages_transaction_insights.rb +250 -0
  106. data/lib/cybersource_rest_client/models/unified_risk_post201_response_results_risk_insights_packages_transaction_insights_insights.rb +219 -0
  107. data/lib/cybersource_rest_client/models/unified_risk_post201_response_transaction_insights_insights_warnings.rb +214 -0
  108. data/lib/cybersource_rest_client/models/{unified_risk_labels_post400_response.rb → unified_risk_post400_response.rb} +2 -2
  109. data/lib/cybersource_rest_client/models/{unified_risk_labels_post400_response_errors.rb → unified_risk_post400_response_errors.rb} +1 -1
  110. data/lib/cybersource_rest_client/models/unifiedrisk_account.rb +190 -0
  111. data/lib/cybersource_rest_client/models/unifiedrisk_acquirer.rb +302 -0
  112. data/lib/cybersource_rest_client/models/unifiedrisk_acquirer_merchant_account.rb +234 -0
  113. data/lib/cybersource_rest_client/models/unifiedrisk_acquirer_merchant_account_security_amount.rb +246 -0
  114. data/lib/cybersource_rest_client/models/unifiedrisk_authentication.rb +402 -0
  115. data/lib/cybersource_rest_client/models/unifiedrisk_authentication_challenge.rb +202 -0
  116. data/lib/cybersource_rest_client/models/unifiedrisk_authorization.rb +212 -0
  117. data/lib/cybersource_rest_client/models/unifiedrisk_browser.rb +420 -0
  118. data/lib/cybersource_rest_client/models/unifiedrisk_customer.rb +403 -0
  119. data/lib/cybersource_rest_client/models/unifiedrisk_customer_address.rb +279 -0
  120. data/lib/cybersource_rest_client/models/{inline_response_201_5_processing_information.rb → unifiedrisk_customer_personal_identification.rb} +99 -42
  121. data/lib/cybersource_rest_client/models/unifiedrisk_device.rb +681 -0
  122. data/lib/cybersource_rest_client/models/unifiedrisk_device_point_of_sale.rb +344 -0
  123. data/lib/cybersource_rest_client/models/unifiedrisk_initiating_party.rb +223 -0
  124. data/lib/cybersource_rest_client/models/unifiedrisk_merchant.rb +326 -0
  125. data/lib/cybersource_rest_client/models/unifiedrisk_merchant_address.rb +328 -0
  126. data/lib/cybersource_rest_client/models/unifiedrisk_merchant_merchant_descriptor.rb +389 -0
  127. data/lib/cybersource_rest_client/models/unifiedrisk_merchant_merchant_descriptor_expected_annual_sales.rb +268 -0
  128. data/lib/cybersource_rest_client/models/unifiedrisk_merchant_merchant_descriptor_expected_average_ticket_size.rb +246 -0
  129. data/lib/cybersource_rest_client/models/unifiedrisk_merchant_merchant_descriptor_expected_monthly_sales.rb +268 -0
  130. data/lib/cybersource_rest_client/models/unifiedrisk_merchant_merchant_descriptor_hierarchy.rb +224 -0
  131. data/lib/cybersource_rest_client/models/unifiedrisk_merchant_merchant_descriptor_limit_value.rb +257 -0
  132. data/lib/cybersource_rest_client/models/unifiedrisk_merchant_trading_address.rb +301 -0
  133. data/lib/cybersource_rest_client/models/{label_request.rb → unifiedrisk_order.rb} +60 -72
  134. data/lib/cybersource_rest_client/models/unifiedrisk_order_billing.rb +360 -0
  135. data/lib/cybersource_rest_client/models/unifiedrisk_order_line_items.rb +262 -0
  136. data/lib/cybersource_rest_client/models/unifiedrisk_order_shipping.rb +464 -0
  137. data/lib/cybersource_rest_client/models/unifiedrisk_order_shipping_store.rb +251 -0
  138. data/lib/cybersource_rest_client/models/unifiedrisk_order_shipping_store_address.rb +191 -0
  139. data/lib/cybersource_rest_client/models/{inline_response_201_3_results_risk_insights.rb → unifiedrisk_order_shipping_store_store_address.rb} +43 -43
  140. data/lib/cybersource_rest_client/models/unifiedrisk_partner.rb +214 -0
  141. data/lib/cybersource_rest_client/models/unifiedrisk_payment.rb +423 -0
  142. data/lib/cybersource_rest_client/models/unifiedrisk_payment_approvals.rb +193 -0
  143. data/lib/cybersource_rest_client/models/unifiedrisk_payment_bank_account.rb +451 -0
  144. data/lib/cybersource_rest_client/models/{inline_response_201_5_order_information_amount_details.rb → unifiedrisk_payment_bank_account_balance_before.rb} +49 -56
  145. data/lib/cybersource_rest_client/models/unifiedrisk_payment_bank_account_branch_address.rb +328 -0
  146. data/lib/cybersource_rest_client/models/unifiedrisk_payment_bank_account_credit_limit.rb +257 -0
  147. data/lib/cybersource_rest_client/models/unifiedrisk_payment_bank_account_financial_institution.rb +212 -0
  148. data/lib/cybersource_rest_client/models/unifiedrisk_payment_batch.rb +323 -0
  149. data/lib/cybersource_rest_client/models/unifiedrisk_payment_card.rb +461 -0
  150. data/lib/cybersource_rest_client/models/unifiedrisk_payment_card_par_details.rb +196 -0
  151. data/lib/cybersource_rest_client/models/unifiedrisk_payment_card_token_details.rb +380 -0
  152. data/lib/cybersource_rest_client/models/unifiedrisk_payment_check.rb +289 -0
  153. data/lib/cybersource_rest_client/models/unifiedrisk_payment_check_deposit_location.rb +279 -0
  154. data/lib/cybersource_rest_client/models/unifiedrisk_payment_counterparty.rb +287 -0
  155. data/lib/cybersource_rest_client/models/unifiedrisk_payment_counterparty_address.rb +279 -0
  156. data/lib/cybersource_rest_client/models/unifiedrisk_payment_counterparty_branch_address.rb +279 -0
  157. data/lib/cybersource_rest_client/models/unifiedrisk_payment_sdk.rb +268 -0
  158. data/lib/cybersource_rest_client/models/unifiedrisk_payment_token.rb +213 -0
  159. data/lib/cybersource_rest_client/models/unifiedrisk_payment_verification.rb +230 -0
  160. data/lib/cybersource_rest_client/models/unifiedrisk_payment_verification_additional.rb +256 -0
  161. data/lib/cybersource_rest_client/models/unifiedrisk_payment_verification_authentication.rb +232 -0
  162. data/lib/cybersource_rest_client/models/unifiedrisk_payment_verification_authentication_pin.rb +201 -0
  163. data/lib/cybersource_rest_client/models/unifiedrisk_payment_verification_authentication_three_ds.rb +190 -0
  164. data/lib/cybersource_rest_client/models/unifiedrisk_payment_verification_card_security.rb +199 -0
  165. data/lib/cybersource_rest_client/models/unifiedrisk_payment_verification_card_security_avs.rb +218 -0
  166. data/lib/cybersource_rest_client/models/unifiedrisk_payment_verification_card_security_cvv.rb +196 -0
  167. data/lib/cybersource_rest_client/models/unifiedrisk_payment_verification_digital.rb +212 -0
  168. data/lib/cybersource_rest_client/models/unifiedrisk_payment_wallet.rb +201 -0
  169. data/lib/cybersource_rest_client/models/unifiedrisk_payment_wire.rb +364 -0
  170. data/lib/cybersource_rest_client/models/unifiedrisk_risk_assessment.rb +308 -0
  171. data/lib/cybersource_rest_client/models/unifiedrisk_risk_assessment_buyer_history.rb +276 -0
  172. data/lib/cybersource_rest_client/models/unifiedrisk_risk_assessment_buyer_history_account_history.rb +207 -0
  173. data/lib/cybersource_rest_client/models/unifiedrisk_risk_assessment_buyer_history_customer_account.rb +273 -0
  174. data/lib/cybersource_rest_client/models/{inline_response_201_14.rb → unifiedrisk_risk_assessment_buyer_history_customer_account_alertnate_authentication.rb} +59 -114
  175. data/lib/cybersource_rest_client/models/unifiedrisk_risk_assessment_vital4.rb +191 -0
  176. data/lib/cybersource_rest_client/models/unifiedrisk_session.rb +202 -0
  177. data/lib/cybersource_rest_client/models/unifiedrisk_terminal.rb +238 -0
  178. data/lib/cybersource_rest_client/models/unifiedrisk_terminal_address.rb +301 -0
  179. data/lib/cybersource_rest_client/models/unifiedrisk_terminal_capabilities.rb +234 -0
  180. data/lib/cybersource_rest_client/models/unifiedrisk_third_party_risk.rb +708 -0
  181. data/lib/cybersource_rest_client/models/unifiedrisk_third_party_risk_raw_data.rb +189 -0
  182. data/lib/cybersource_rest_client/models/unifiedrisk_transaction.rb +305 -12
  183. data/lib/cybersource_rest_client/models/unifiedrisk_transaction_additional_fees.rb +257 -0
  184. data/lib/cybersource_rest_client/models/unifiedrisk_transaction_amount.rb +257 -0
  185. data/lib/cybersource_rest_client/models/unifiedrisk_transaction_batch_details.rb +220 -0
  186. data/lib/cybersource_rest_client/models/unifiedrisk_transaction_batch_details_batch_credits_amount.rb +246 -0
  187. data/lib/cybersource_rest_client/models/unifiedrisk_transaction_batch_details_batch_debits_amount.rb +246 -0
  188. data/lib/cybersource_rest_client/models/unifiedrisk_transaction_batch_details_file_credits.rb +246 -0
  189. data/lib/cybersource_rest_client/models/unifiedrisk_transaction_batch_details_file_debits.rb +246 -0
  190. data/lib/cybersource_rest_client/models/unifiedrisk_transaction_check_details.rb +190 -0
  191. data/lib/cybersource_rest_client/models/unifiedrisk_transaction_check_details_deposited_cash_amount.rb +246 -0
  192. data/lib/cybersource_rest_client/models/unifiedrisk_transaction_recurring_details.rb +341 -0
  193. data/lib/cybersource_rest_client/models/unifiedrisk_travel.rb +279 -0
  194. data/lib/cybersource_rest_client/models/vpri_request.rb +505 -0
  195. data/lib/cybersource_rest_client/models/vpri_transaction_insights_additional_data.rb +190 -0
  196. data/lib/cybersource_rest_client/models/vpri_transaction_insights_additional_data_card_bin_data.rb +357 -0
  197. data/lib/cybersource_rest_client.rb +153 -61
  198. metadata +155 -63
  199. data/lib/cybersource_rest_client/api/transaction_risk_labeling_api.rb +0 -104
  200. data/lib/cybersource_rest_client/models/inline_response_201_5_processor_information.rb +0 -548
@@ -0,0 +1,708 @@
1
+ =begin
2
+ #CyberSource Merged Spec
3
+
4
+ #All CyberSource API specs merged together. These are available at https://developer.cybersource.com/api/reference/api-reference.html
5
+
6
+ OpenAPI spec version: 0.0.1
7
+
8
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
9
+ Swagger Codegen version: 2.4.38
10
+ =end
11
+
12
+ require 'date'
13
+
14
+ module CyberSource
15
+ class UnifiedriskThirdPartyRisk
16
+ # If the user fails authentication, this displays the reason for failure, such as \"user cancel\" or \"challenge response failed\". Do not populate if there is no failed authentication.
17
+ attr_accessor :authentication_failed_reason
18
+
19
+ # The authentication method used by the ThirdParty
20
+ attr_accessor :authentication_method
21
+
22
+ # This field is only populated if the registration event is for an authentication service. It advises the authentication service being registered.
23
+ attr_accessor :authentication_service_type
24
+
25
+ # Indicates the status of the authentication which may be: auth_success, auth_fail, auth_init, or auth_init_in_progress.
26
+ attr_accessor :authentication_status
27
+
28
+ # This attribute will be returned with a value of 'yes' if an anomaly is detected with the various browser attributes collected during profiling, including Flash, JavaScript and User Agent.
29
+ attr_accessor :browser_anomaly
30
+
31
+ # The agent, parsed from the http user agent / \"browser\" string, which indicates the client may not be a real browser, e.g. crawler.
32
+ attr_accessor :browser_crawler_identification
33
+
34
+ # The user agent / browser string presented in the HTTP header.
35
+ attr_accessor :browser_http_info
36
+
37
+ # Indicates as \"Yes\"if there is an anomaly in the browser string content.
38
+ attr_accessor :browser_http_info_anomaly
39
+
40
+ # The browser determined using a combination of Flash, JavaScript and User Agent. If browser detection was unsuccessful this will be set to \"Unknown\".
41
+ attr_accessor :browser_info
42
+
43
+ # The code for the language that the browser is configured to accept which comes from the HTTP header.
44
+ attr_accessor :browser_language
45
+
46
+ # Indicates as \"Yes\" if there is an anomaly between the browser language and flash plugin language. This happens when both appear, and none of the browser's preferred languages is the same as the flash
47
+ attr_accessor :browser_language_anomaly
48
+
49
+ # Indicates if there is a mismatch between the javascript user agent string and the HTTP user agent string.
50
+ attr_accessor :browser_string_mismatch
51
+
52
+ # The version of the browser installed.
53
+ attr_accessor :browser_version_id
54
+
55
+ # Device fingerprint as calculated the ThirdParty. A device fingerprint is information collected about the software and hardware for the purpose of identification.
56
+ attr_accessor :device_fingerprint
57
+
58
+ # The date that this device was first encountered by ThirdParty
59
+ attr_accessor :device_fingerprint_first_seen
60
+
61
+ # \"not found\" indicates this is the first time ThirdParty has seen this device involved in a transaction; \"success\" indicates that ThirdParty has intelligence on this entity.
62
+ attr_accessor :device_fingerprint_result
63
+
64
+ # The risk score for this device as calculated by the ThirdParty
65
+ attr_accessor :device_fingerprint_score
66
+
67
+ # The date that this device was first encountered by ThirdParty, in yyyy-mm-dd format.
68
+ attr_accessor :device_first_seen_date
69
+
70
+ # A number between 0 and 1, representing the probability of the device being correctly identified.
71
+ attr_accessor :device_id_confidence
72
+
73
+ # Indicates whether this device is a new device (\"new\"), whether it was encountered before (\"success\"), and if not enough attributes were gathered to create a device identity (\"not enough attributes\").
74
+ attr_accessor :device_match_result
75
+
76
+ # Detects whether a mobile device has Root privileges on Android, or a Jailbroken iOS device. This stores a numerical value that indicates the number of jailbreak/root elements on a device. 0 indicates
77
+ attr_accessor :device_root_jail_break
78
+
79
+ # An array of strings containing additional information that describes the element(s) on the device that triggered the Jailbreak or Root detection.
80
+ attr_accessor :device_root_jail_break_reason
81
+
82
+ # The risk score for this device as calculated by the ThirdParty.
83
+ attr_accessor :device_score
84
+
85
+ # Third party Risk score Reason Code (InAuth, biocatch…etc)
86
+ attr_accessor :device_score_reason
87
+
88
+ # A digital id assigned by the Thirdparty
89
+ attr_accessor :digital_id
90
+
91
+ # The confidence score returned signifies the level of confidence that the event appears to be matching the behavior from the returned Digital ID.
92
+ attr_accessor :digital_id_confidence
93
+
94
+ # Trust Score rating associated with the ThirdParty ID which may be one of the following: very_low, low, neutral, high, very_high
95
+ attr_accessor :digital_id_trust_score_rating
96
+
97
+ # Reason codes describing the Trust Score rating (mutiple values). There may be up to 64 characters per entry and there may be an unlimited number of entries.
98
+ attr_accessor :digital_id_trust_score_reason_code
99
+
100
+ # \"not found\" indicates this is the first time ThirdParty has seen this login (username) involved in a transaction; \"success\" indicates that ThirdParty has intelligence on this entity.
101
+ attr_accessor :login_verification_result
102
+
103
+ # An array containing all of the Third Party rules that triggered for login (username) verification.
104
+ attr_accessor :login_verification_rules_hit
105
+
106
+ # The risk score for the login (username) as calculated by the ThirdParty
107
+ attr_accessor :login_verification_score
108
+
109
+ # \"not found\" indicates this is the first time ThirdParty has seen this name involved in a transaction; \"success\" indicates that ThirdParty has intelligence on this entity.
110
+ attr_accessor :name_verification_result
111
+
112
+ # An array containing all of the Third Party rules that triggered for name verification.
113
+ attr_accessor :name_verification_rules_hit
114
+
115
+ # The risk score for the name as calculated by the ThirdParty
116
+ attr_accessor :name_verification_score
117
+
118
+ # PASS, FAIL
119
+ attr_accessor :overall_assessment
120
+
121
+ # This is displayed indicating the reason for failure, such as \"user cancel\" or \"challenge response failed\".
122
+ attr_accessor :overall_assessment_reason
123
+
124
+ # \"not found\" indicates this is the first time ThirdParty has seen this phone involved in a transaction; \"success\" indicates that ThirdParty has intelligence on this entity.
125
+ attr_accessor :phone_verification_result
126
+
127
+ # The risk score for the phone as calculated by the ThirdParty
128
+ attr_accessor :phone_verification_score
129
+
130
+ # This indicates the type of device that was profiled, including mobile app, desktop app, or web browser on a desktop or mobile platform.
131
+ attr_accessor :profiled_device_type
132
+
133
+ # Name of the third party who's java script is used to capture and assess session, behaviour biometric use, etc
134
+ attr_accessor :provider_name
135
+
136
+ # Third party provider reference number assigned when the Third party assesses session risk and returns results to Customer
137
+ attr_accessor :ref_number
138
+
139
+ # Detects whether a mobile device is running in an Emulator on Android, or a Simulator on iOS. This stores a numerical value that indicates the number of emulator/simulator elements on a device.
140
+ attr_accessor :virtual_device_identification
141
+
142
+ # The accuracy of the estimated location, in meters. This represents the radius of a circle around the given location.
143
+ attr_accessor :wifi_accuracy
144
+
145
+ # The Latitude of the WiFi connection based on BSSID.
146
+ attr_accessor :wifi_latitude
147
+
148
+ # The Longitude of the WiFi connection based on BSSID.
149
+ attr_accessor :wifi_longitude
150
+
151
+ attr_accessor :raw_data
152
+
153
+ # Attribute mapping from ruby-style variable name to JSON key.
154
+ def self.attribute_map
155
+ {
156
+ :'authentication_failed_reason' => :'authenticationFailedReason',
157
+ :'authentication_method' => :'authenticationMethod',
158
+ :'authentication_service_type' => :'authenticationServiceType',
159
+ :'authentication_status' => :'authenticationStatus',
160
+ :'browser_anomaly' => :'browserAnomaly',
161
+ :'browser_crawler_identification' => :'browserCrawlerIdentification',
162
+ :'browser_http_info' => :'browserHTTPInfo',
163
+ :'browser_http_info_anomaly' => :'browserHTTPInfoAnomaly',
164
+ :'browser_info' => :'browserInfo',
165
+ :'browser_language' => :'browserLanguage',
166
+ :'browser_language_anomaly' => :'browserLanguageAnomaly',
167
+ :'browser_string_mismatch' => :'browserStringMismatch',
168
+ :'browser_version_id' => :'browserVersionId',
169
+ :'device_fingerprint' => :'deviceFingerprint',
170
+ :'device_fingerprint_first_seen' => :'deviceFingerprintFirstSeen',
171
+ :'device_fingerprint_result' => :'deviceFingerprintResult',
172
+ :'device_fingerprint_score' => :'deviceFingerprintScore',
173
+ :'device_first_seen_date' => :'deviceFirstSeenDate',
174
+ :'device_id_confidence' => :'deviceIdConfidence',
175
+ :'device_match_result' => :'deviceMatchResult',
176
+ :'device_root_jail_break' => :'deviceRootJailBreak',
177
+ :'device_root_jail_break_reason' => :'deviceRootJailBreakReason',
178
+ :'device_score' => :'deviceScore',
179
+ :'device_score_reason' => :'deviceScoreReason',
180
+ :'digital_id' => :'digitalId',
181
+ :'digital_id_confidence' => :'digitalIdConfidence',
182
+ :'digital_id_trust_score_rating' => :'digitalIdTrustScoreRating',
183
+ :'digital_id_trust_score_reason_code' => :'digitalIdTrustScoreReasonCode',
184
+ :'login_verification_result' => :'loginVerificationResult',
185
+ :'login_verification_rules_hit' => :'loginVerificationRulesHit',
186
+ :'login_verification_score' => :'loginVerificationScore',
187
+ :'name_verification_result' => :'nameVerificationResult',
188
+ :'name_verification_rules_hit' => :'nameVerificationRulesHit',
189
+ :'name_verification_score' => :'nameVerificationScore',
190
+ :'overall_assessment' => :'overallAssessment',
191
+ :'overall_assessment_reason' => :'overallAssessmentReason',
192
+ :'phone_verification_result' => :'phoneVerificationResult',
193
+ :'phone_verification_score' => :'phoneVerificationScore',
194
+ :'profiled_device_type' => :'profiledDeviceType',
195
+ :'provider_name' => :'providerName',
196
+ :'ref_number' => :'refNumber',
197
+ :'virtual_device_identification' => :'virtualDeviceIdentification',
198
+ :'wifi_accuracy' => :'wifiAccuracy',
199
+ :'wifi_latitude' => :'wifiLatitude',
200
+ :'wifi_longitude' => :'wifiLongitude',
201
+ :'raw_data' => :'rawData'
202
+ }
203
+ end
204
+
205
+ # Attribute mapping from JSON key to ruby-style variable name.
206
+ def self.json_map
207
+ {
208
+ :'authentication_failed_reason' => :'authentication_failed_reason',
209
+ :'authentication_method' => :'authentication_method',
210
+ :'authentication_service_type' => :'authentication_service_type',
211
+ :'authentication_status' => :'authentication_status',
212
+ :'browser_anomaly' => :'browser_anomaly',
213
+ :'browser_crawler_identification' => :'browser_crawler_identification',
214
+ :'browser_http_info' => :'browser_http_info',
215
+ :'browser_http_info_anomaly' => :'browser_http_info_anomaly',
216
+ :'browser_info' => :'browser_info',
217
+ :'browser_language' => :'browser_language',
218
+ :'browser_language_anomaly' => :'browser_language_anomaly',
219
+ :'browser_string_mismatch' => :'browser_string_mismatch',
220
+ :'browser_version_id' => :'browser_version_id',
221
+ :'device_fingerprint' => :'device_fingerprint',
222
+ :'device_fingerprint_first_seen' => :'device_fingerprint_first_seen',
223
+ :'device_fingerprint_result' => :'device_fingerprint_result',
224
+ :'device_fingerprint_score' => :'device_fingerprint_score',
225
+ :'device_first_seen_date' => :'device_first_seen_date',
226
+ :'device_id_confidence' => :'device_id_confidence',
227
+ :'device_match_result' => :'device_match_result',
228
+ :'device_root_jail_break' => :'device_root_jail_break',
229
+ :'device_root_jail_break_reason' => :'device_root_jail_break_reason',
230
+ :'device_score' => :'device_score',
231
+ :'device_score_reason' => :'device_score_reason',
232
+ :'digital_id' => :'digital_id',
233
+ :'digital_id_confidence' => :'digital_id_confidence',
234
+ :'digital_id_trust_score_rating' => :'digital_id_trust_score_rating',
235
+ :'digital_id_trust_score_reason_code' => :'digital_id_trust_score_reason_code',
236
+ :'login_verification_result' => :'login_verification_result',
237
+ :'login_verification_rules_hit' => :'login_verification_rules_hit',
238
+ :'login_verification_score' => :'login_verification_score',
239
+ :'name_verification_result' => :'name_verification_result',
240
+ :'name_verification_rules_hit' => :'name_verification_rules_hit',
241
+ :'name_verification_score' => :'name_verification_score',
242
+ :'overall_assessment' => :'overall_assessment',
243
+ :'overall_assessment_reason' => :'overall_assessment_reason',
244
+ :'phone_verification_result' => :'phone_verification_result',
245
+ :'phone_verification_score' => :'phone_verification_score',
246
+ :'profiled_device_type' => :'profiled_device_type',
247
+ :'provider_name' => :'provider_name',
248
+ :'ref_number' => :'ref_number',
249
+ :'virtual_device_identification' => :'virtual_device_identification',
250
+ :'wifi_accuracy' => :'wifi_accuracy',
251
+ :'wifi_latitude' => :'wifi_latitude',
252
+ :'wifi_longitude' => :'wifi_longitude',
253
+ :'raw_data' => :'raw_data'
254
+ }
255
+ end
256
+
257
+ # Attribute type mapping.
258
+ def self.swagger_types
259
+ {
260
+ :'authentication_failed_reason' => :'String',
261
+ :'authentication_method' => :'String',
262
+ :'authentication_service_type' => :'String',
263
+ :'authentication_status' => :'String',
264
+ :'browser_anomaly' => :'String',
265
+ :'browser_crawler_identification' => :'String',
266
+ :'browser_http_info' => :'String',
267
+ :'browser_http_info_anomaly' => :'String',
268
+ :'browser_info' => :'String',
269
+ :'browser_language' => :'String',
270
+ :'browser_language_anomaly' => :'String',
271
+ :'browser_string_mismatch' => :'String',
272
+ :'browser_version_id' => :'String',
273
+ :'device_fingerprint' => :'String',
274
+ :'device_fingerprint_first_seen' => :'Date',
275
+ :'device_fingerprint_result' => :'String',
276
+ :'device_fingerprint_score' => :'Float',
277
+ :'device_first_seen_date' => :'Date',
278
+ :'device_id_confidence' => :'Float',
279
+ :'device_match_result' => :'String',
280
+ :'device_root_jail_break' => :'Float',
281
+ :'device_root_jail_break_reason' => :'Array<String>',
282
+ :'device_score' => :'Float',
283
+ :'device_score_reason' => :'String',
284
+ :'digital_id' => :'String',
285
+ :'digital_id_confidence' => :'Float',
286
+ :'digital_id_trust_score_rating' => :'String',
287
+ :'digital_id_trust_score_reason_code' => :'String',
288
+ :'login_verification_result' => :'String',
289
+ :'login_verification_rules_hit' => :'Array<String>',
290
+ :'login_verification_score' => :'Float',
291
+ :'name_verification_result' => :'String',
292
+ :'name_verification_rules_hit' => :'Array<String>',
293
+ :'name_verification_score' => :'Float',
294
+ :'overall_assessment' => :'String',
295
+ :'overall_assessment_reason' => :'String',
296
+ :'phone_verification_result' => :'String',
297
+ :'phone_verification_score' => :'Float',
298
+ :'profiled_device_type' => :'String',
299
+ :'provider_name' => :'String',
300
+ :'ref_number' => :'String',
301
+ :'virtual_device_identification' => :'Float',
302
+ :'wifi_accuracy' => :'Float',
303
+ :'wifi_latitude' => :'Float',
304
+ :'wifi_longitude' => :'Float',
305
+ :'raw_data' => :'UnifiedriskThirdPartyRiskRawData'
306
+ }
307
+ end
308
+
309
+ # Initializes the object
310
+ # @param [Hash] attributes Model attributes in the form of hash
311
+ def initialize(attributes = {})
312
+ return unless attributes.is_a?(Hash)
313
+
314
+ # convert string to symbol for hash key
315
+ attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
316
+
317
+ if attributes.has_key?(:'authenticationFailedReason')
318
+ self.authentication_failed_reason = attributes[:'authenticationFailedReason']
319
+ end
320
+
321
+ if attributes.has_key?(:'authenticationMethod')
322
+ self.authentication_method = attributes[:'authenticationMethod']
323
+ end
324
+
325
+ if attributes.has_key?(:'authenticationServiceType')
326
+ self.authentication_service_type = attributes[:'authenticationServiceType']
327
+ end
328
+
329
+ if attributes.has_key?(:'authenticationStatus')
330
+ self.authentication_status = attributes[:'authenticationStatus']
331
+ end
332
+
333
+ if attributes.has_key?(:'browserAnomaly')
334
+ self.browser_anomaly = attributes[:'browserAnomaly']
335
+ end
336
+
337
+ if attributes.has_key?(:'browserCrawlerIdentification')
338
+ self.browser_crawler_identification = attributes[:'browserCrawlerIdentification']
339
+ end
340
+
341
+ if attributes.has_key?(:'browserHTTPInfo')
342
+ self.browser_http_info = attributes[:'browserHTTPInfo']
343
+ end
344
+
345
+ if attributes.has_key?(:'browserHTTPInfoAnomaly')
346
+ self.browser_http_info_anomaly = attributes[:'browserHTTPInfoAnomaly']
347
+ end
348
+
349
+ if attributes.has_key?(:'browserInfo')
350
+ self.browser_info = attributes[:'browserInfo']
351
+ end
352
+
353
+ if attributes.has_key?(:'browserLanguage')
354
+ self.browser_language = attributes[:'browserLanguage']
355
+ end
356
+
357
+ if attributes.has_key?(:'browserLanguageAnomaly')
358
+ self.browser_language_anomaly = attributes[:'browserLanguageAnomaly']
359
+ end
360
+
361
+ if attributes.has_key?(:'browserStringMismatch')
362
+ self.browser_string_mismatch = attributes[:'browserStringMismatch']
363
+ end
364
+
365
+ if attributes.has_key?(:'browserVersionId')
366
+ self.browser_version_id = attributes[:'browserVersionId']
367
+ end
368
+
369
+ if attributes.has_key?(:'deviceFingerprint')
370
+ self.device_fingerprint = attributes[:'deviceFingerprint']
371
+ end
372
+
373
+ if attributes.has_key?(:'deviceFingerprintFirstSeen')
374
+ self.device_fingerprint_first_seen = attributes[:'deviceFingerprintFirstSeen']
375
+ end
376
+
377
+ if attributes.has_key?(:'deviceFingerprintResult')
378
+ self.device_fingerprint_result = attributes[:'deviceFingerprintResult']
379
+ end
380
+
381
+ if attributes.has_key?(:'deviceFingerprintScore')
382
+ self.device_fingerprint_score = attributes[:'deviceFingerprintScore']
383
+ end
384
+
385
+ if attributes.has_key?(:'deviceFirstSeenDate')
386
+ self.device_first_seen_date = attributes[:'deviceFirstSeenDate']
387
+ end
388
+
389
+ if attributes.has_key?(:'deviceIdConfidence')
390
+ self.device_id_confidence = attributes[:'deviceIdConfidence']
391
+ end
392
+
393
+ if attributes.has_key?(:'deviceMatchResult')
394
+ self.device_match_result = attributes[:'deviceMatchResult']
395
+ end
396
+
397
+ if attributes.has_key?(:'deviceRootJailBreak')
398
+ self.device_root_jail_break = attributes[:'deviceRootJailBreak']
399
+ end
400
+
401
+ if attributes.has_key?(:'deviceRootJailBreakReason')
402
+ if (value = attributes[:'deviceRootJailBreakReason']).is_a?(Array)
403
+ self.device_root_jail_break_reason = value
404
+ end
405
+ end
406
+
407
+ if attributes.has_key?(:'deviceScore')
408
+ self.device_score = attributes[:'deviceScore']
409
+ end
410
+
411
+ if attributes.has_key?(:'deviceScoreReason')
412
+ self.device_score_reason = attributes[:'deviceScoreReason']
413
+ end
414
+
415
+ if attributes.has_key?(:'digitalId')
416
+ self.digital_id = attributes[:'digitalId']
417
+ end
418
+
419
+ if attributes.has_key?(:'digitalIdConfidence')
420
+ self.digital_id_confidence = attributes[:'digitalIdConfidence']
421
+ end
422
+
423
+ if attributes.has_key?(:'digitalIdTrustScoreRating')
424
+ self.digital_id_trust_score_rating = attributes[:'digitalIdTrustScoreRating']
425
+ end
426
+
427
+ if attributes.has_key?(:'digitalIdTrustScoreReasonCode')
428
+ self.digital_id_trust_score_reason_code = attributes[:'digitalIdTrustScoreReasonCode']
429
+ end
430
+
431
+ if attributes.has_key?(:'loginVerificationResult')
432
+ self.login_verification_result = attributes[:'loginVerificationResult']
433
+ end
434
+
435
+ if attributes.has_key?(:'loginVerificationRulesHit')
436
+ if (value = attributes[:'loginVerificationRulesHit']).is_a?(Array)
437
+ self.login_verification_rules_hit = value
438
+ end
439
+ end
440
+
441
+ if attributes.has_key?(:'loginVerificationScore')
442
+ self.login_verification_score = attributes[:'loginVerificationScore']
443
+ end
444
+
445
+ if attributes.has_key?(:'nameVerificationResult')
446
+ self.name_verification_result = attributes[:'nameVerificationResult']
447
+ end
448
+
449
+ if attributes.has_key?(:'nameVerificationRulesHit')
450
+ if (value = attributes[:'nameVerificationRulesHit']).is_a?(Array)
451
+ self.name_verification_rules_hit = value
452
+ end
453
+ end
454
+
455
+ if attributes.has_key?(:'nameVerificationScore')
456
+ self.name_verification_score = attributes[:'nameVerificationScore']
457
+ end
458
+
459
+ if attributes.has_key?(:'overallAssessment')
460
+ self.overall_assessment = attributes[:'overallAssessment']
461
+ end
462
+
463
+ if attributes.has_key?(:'overallAssessmentReason')
464
+ self.overall_assessment_reason = attributes[:'overallAssessmentReason']
465
+ end
466
+
467
+ if attributes.has_key?(:'phoneVerificationResult')
468
+ self.phone_verification_result = attributes[:'phoneVerificationResult']
469
+ end
470
+
471
+ if attributes.has_key?(:'phoneVerificationScore')
472
+ self.phone_verification_score = attributes[:'phoneVerificationScore']
473
+ end
474
+
475
+ if attributes.has_key?(:'profiledDeviceType')
476
+ self.profiled_device_type = attributes[:'profiledDeviceType']
477
+ end
478
+
479
+ if attributes.has_key?(:'providerName')
480
+ self.provider_name = attributes[:'providerName']
481
+ end
482
+
483
+ if attributes.has_key?(:'refNumber')
484
+ self.ref_number = attributes[:'refNumber']
485
+ end
486
+
487
+ if attributes.has_key?(:'virtualDeviceIdentification')
488
+ self.virtual_device_identification = attributes[:'virtualDeviceIdentification']
489
+ end
490
+
491
+ if attributes.has_key?(:'wifiAccuracy')
492
+ self.wifi_accuracy = attributes[:'wifiAccuracy']
493
+ end
494
+
495
+ if attributes.has_key?(:'wifiLatitude')
496
+ self.wifi_latitude = attributes[:'wifiLatitude']
497
+ end
498
+
499
+ if attributes.has_key?(:'wifiLongitude')
500
+ self.wifi_longitude = attributes[:'wifiLongitude']
501
+ end
502
+
503
+ if attributes.has_key?(:'rawData')
504
+ self.raw_data = attributes[:'rawData']
505
+ end
506
+ end
507
+
508
+ # Show invalid properties with the reasons. Usually used together with valid?
509
+ # @return Array for valid properties with the reasons
510
+ def list_invalid_properties
511
+ invalid_properties = Array.new
512
+ invalid_properties
513
+ end
514
+
515
+ # Check to see if the all the properties in the model are valid
516
+ # @return true if the model is valid
517
+ def valid?
518
+ true
519
+ end
520
+
521
+ # Custom attribute writer method with validation
522
+ # @param [Object] wifi_accuracy Value to be assigned
523
+ def wifi_accuracy=(wifi_accuracy)
524
+ @wifi_accuracy = wifi_accuracy
525
+ end
526
+
527
+ # Custom attribute writer method with validation
528
+ # @param [Object] wifi_latitude Value to be assigned
529
+ def wifi_latitude=(wifi_latitude)
530
+ @wifi_latitude = wifi_latitude
531
+ end
532
+
533
+ # Custom attribute writer method with validation
534
+ # @param [Object] wifi_longitude Value to be assigned
535
+ def wifi_longitude=(wifi_longitude)
536
+ @wifi_longitude = wifi_longitude
537
+ end
538
+
539
+ # Checks equality by comparing each attribute.
540
+ # @param [Object] Object to be compared
541
+ def ==(o)
542
+ return true if self.equal?(o)
543
+ self.class == o.class &&
544
+ authentication_failed_reason == o.authentication_failed_reason &&
545
+ authentication_method == o.authentication_method &&
546
+ authentication_service_type == o.authentication_service_type &&
547
+ authentication_status == o.authentication_status &&
548
+ browser_anomaly == o.browser_anomaly &&
549
+ browser_crawler_identification == o.browser_crawler_identification &&
550
+ browser_http_info == o.browser_http_info &&
551
+ browser_http_info_anomaly == o.browser_http_info_anomaly &&
552
+ browser_info == o.browser_info &&
553
+ browser_language == o.browser_language &&
554
+ browser_language_anomaly == o.browser_language_anomaly &&
555
+ browser_string_mismatch == o.browser_string_mismatch &&
556
+ browser_version_id == o.browser_version_id &&
557
+ device_fingerprint == o.device_fingerprint &&
558
+ device_fingerprint_first_seen == o.device_fingerprint_first_seen &&
559
+ device_fingerprint_result == o.device_fingerprint_result &&
560
+ device_fingerprint_score == o.device_fingerprint_score &&
561
+ device_first_seen_date == o.device_first_seen_date &&
562
+ device_id_confidence == o.device_id_confidence &&
563
+ device_match_result == o.device_match_result &&
564
+ device_root_jail_break == o.device_root_jail_break &&
565
+ device_root_jail_break_reason == o.device_root_jail_break_reason &&
566
+ device_score == o.device_score &&
567
+ device_score_reason == o.device_score_reason &&
568
+ digital_id == o.digital_id &&
569
+ digital_id_confidence == o.digital_id_confidence &&
570
+ digital_id_trust_score_rating == o.digital_id_trust_score_rating &&
571
+ digital_id_trust_score_reason_code == o.digital_id_trust_score_reason_code &&
572
+ login_verification_result == o.login_verification_result &&
573
+ login_verification_rules_hit == o.login_verification_rules_hit &&
574
+ login_verification_score == o.login_verification_score &&
575
+ name_verification_result == o.name_verification_result &&
576
+ name_verification_rules_hit == o.name_verification_rules_hit &&
577
+ name_verification_score == o.name_verification_score &&
578
+ overall_assessment == o.overall_assessment &&
579
+ overall_assessment_reason == o.overall_assessment_reason &&
580
+ phone_verification_result == o.phone_verification_result &&
581
+ phone_verification_score == o.phone_verification_score &&
582
+ profiled_device_type == o.profiled_device_type &&
583
+ provider_name == o.provider_name &&
584
+ ref_number == o.ref_number &&
585
+ virtual_device_identification == o.virtual_device_identification &&
586
+ wifi_accuracy == o.wifi_accuracy &&
587
+ wifi_latitude == o.wifi_latitude &&
588
+ wifi_longitude == o.wifi_longitude &&
589
+ raw_data == o.raw_data
590
+ end
591
+
592
+ # @see the `==` method
593
+ # @param [Object] Object to be compared
594
+ def eql?(o)
595
+ self == o
596
+ end
597
+
598
+ # Calculates hash code according to all attributes.
599
+ # @return [Fixnum] Hash code
600
+ def hash
601
+ [authentication_failed_reason, authentication_method, authentication_service_type, authentication_status, browser_anomaly, browser_crawler_identification, browser_http_info, browser_http_info_anomaly, browser_info, browser_language, browser_language_anomaly, browser_string_mismatch, browser_version_id, device_fingerprint, device_fingerprint_first_seen, device_fingerprint_result, device_fingerprint_score, device_first_seen_date, device_id_confidence, device_match_result, device_root_jail_break, device_root_jail_break_reason, device_score, device_score_reason, digital_id, digital_id_confidence, digital_id_trust_score_rating, digital_id_trust_score_reason_code, login_verification_result, login_verification_rules_hit, login_verification_score, name_verification_result, name_verification_rules_hit, name_verification_score, overall_assessment, overall_assessment_reason, phone_verification_result, phone_verification_score, profiled_device_type, provider_name, ref_number, virtual_device_identification, wifi_accuracy, wifi_latitude, wifi_longitude, raw_data].hash
602
+ end
603
+
604
+ # Builds the object from hash
605
+ # @param [Hash] attributes Model attributes in the form of hash
606
+ # @return [Object] Returns the model itself
607
+ def build_from_hash(attributes)
608
+ return nil unless attributes.is_a?(Hash)
609
+ self.class.swagger_types.each_pair do |key, type|
610
+ if type =~ /\AArray<(.*)>/i
611
+ # check to ensure the input is an array given that the the attribute
612
+ # is documented as an array but the input is not
613
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
614
+ self.send("#{self.class.json_map[key]}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
615
+ end
616
+ elsif !attributes[self.class.attribute_map[key]].nil?
617
+ self.send("#{self.class.json_map[key]}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
618
+ end # or else data not found in attributes(hash), not an issue as the data can be optional
619
+ end
620
+
621
+ self
622
+ end
623
+
624
+ # Deserializes the data based on type
625
+ # @param string type Data type
626
+ # @param string value Value to be deserialized
627
+ # @return [Object] Deserialized data
628
+ def _deserialize(type, value)
629
+ case type.to_sym
630
+ when :DateTime
631
+ DateTime.parse(value)
632
+ when :Date
633
+ Date.parse(value)
634
+ when :String
635
+ value.to_s
636
+ when :Integer
637
+ value.to_i
638
+ when :Float
639
+ value.to_f
640
+ when :BOOLEAN
641
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
642
+ true
643
+ else
644
+ false
645
+ end
646
+ when :Object
647
+ # generic object (usually a Hash), return directly
648
+ value
649
+ when /\AArray<(?<inner_type>.+)>\z/
650
+ inner_type = Regexp.last_match[:inner_type]
651
+ value.map { |v| _deserialize(inner_type, v) }
652
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
653
+ k_type = Regexp.last_match[:k_type]
654
+ v_type = Regexp.last_match[:v_type]
655
+ {}.tap do |hash|
656
+ value.each do |k, v|
657
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
658
+ end
659
+ end
660
+ else # model
661
+ temp_model = CyberSource.const_get(type).new
662
+ temp_model.build_from_hash(value)
663
+ end
664
+ end
665
+
666
+ # Returns the string representation of the object
667
+ # @return [String] String presentation of the object
668
+ def to_s
669
+ to_hash.to_s
670
+ end
671
+
672
+ # to_body is an alias to to_hash (backward compatibility)
673
+ # @return [Hash] Returns the object in the form of hash
674
+ def to_body
675
+ to_hash
676
+ end
677
+
678
+ # Returns the object in the form of hash
679
+ # @return [Hash] Returns the object in the form of hash
680
+ def to_hash
681
+ hash = {}
682
+ self.class.attribute_map.each_pair do |attr, param|
683
+ value = self.send(attr)
684
+ next if value.nil?
685
+ hash[param] = _to_hash(value)
686
+ end
687
+ hash
688
+ end
689
+
690
+ # Outputs non-array value in the form of hash
691
+ # For object, use to_hash. Otherwise, just return the value
692
+ # @param [Object] value Any valid value
693
+ # @return [Hash] Returns the value in the form of hash
694
+ def _to_hash(value)
695
+ if value.is_a?(Array)
696
+ value.compact.map { |v| _to_hash(v) }
697
+ elsif value.is_a?(Hash)
698
+ {}.tap do |hash|
699
+ value.each { |k, v| hash[k] = _to_hash(v) }
700
+ end
701
+ elsif value.respond_to? :to_hash
702
+ value.to_hash
703
+ else
704
+ value
705
+ end
706
+ end
707
+ end
708
+ end