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,273 @@
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 UnifiedriskRiskAssessmentBuyerHistoryCustomerAccount
16
+ # Date the cardholder's account was last changed. This includes changes to the billing or shipping address, new payment accounts or new users added. Recommended for Discover ProtectBuy.
17
+ attr_accessor :last_change_date
18
+
19
+ # The values from the enum can be: - GUEST - NEW_ACCOUNT - EXISTING_ACCOUNT
20
+ attr_accessor :creation_history
21
+
22
+ # This field is applicable only in case of EXISTING_ACCOUNT in creationHistory. Possible values: - ACCOUNT_UPDATED_NOW - ACCOUNT_UPDATED_PAST
23
+ attr_accessor :modification_history
24
+
25
+ # This only applies for EXISTING_ACCOUNT in creationHistory. The values from the enum can be: - PASSWORD_CHANGED_NOW - PASSWORD_CHANGED_PAST - PASSWORD_NEVER_CHANGED
26
+ attr_accessor :password_history
27
+
28
+ # Date the cardholder opened the account. Recommended for Discover ProtectBuy. This only applies for EXISTING_ACCOUNT in creationHistory.
29
+ attr_accessor :create_date
30
+
31
+ # Date the cardholder last changed or reset password on account. Recommended for Discover ProtectBuy. This only applies for PASSWORD_CHANGED_PAST in passwordHistory.
32
+ attr_accessor :password_change_date
33
+
34
+ attr_accessor :alertnate_authentication
35
+
36
+ # Attribute mapping from ruby-style variable name to JSON key.
37
+ def self.attribute_map
38
+ {
39
+ :'last_change_date' => :'lastChangeDate',
40
+ :'creation_history' => :'creationHistory',
41
+ :'modification_history' => :'modificationHistory',
42
+ :'password_history' => :'passwordHistory',
43
+ :'create_date' => :'createDate',
44
+ :'password_change_date' => :'passwordChangeDate',
45
+ :'alertnate_authentication' => :'alertnateAuthentication'
46
+ }
47
+ end
48
+
49
+ # Attribute mapping from JSON key to ruby-style variable name.
50
+ def self.json_map
51
+ {
52
+ :'last_change_date' => :'last_change_date',
53
+ :'creation_history' => :'creation_history',
54
+ :'modification_history' => :'modification_history',
55
+ :'password_history' => :'password_history',
56
+ :'create_date' => :'create_date',
57
+ :'password_change_date' => :'password_change_date',
58
+ :'alertnate_authentication' => :'alertnate_authentication'
59
+ }
60
+ end
61
+
62
+ # Attribute type mapping.
63
+ def self.swagger_types
64
+ {
65
+ :'last_change_date' => :'String',
66
+ :'creation_history' => :'String',
67
+ :'modification_history' => :'String',
68
+ :'password_history' => :'String',
69
+ :'create_date' => :'String',
70
+ :'password_change_date' => :'String',
71
+ :'alertnate_authentication' => :'UnifiedriskRiskAssessmentBuyerHistoryCustomerAccountAlertnateAuthentication'
72
+ }
73
+ end
74
+
75
+ # Initializes the object
76
+ # @param [Hash] attributes Model attributes in the form of hash
77
+ def initialize(attributes = {})
78
+ return unless attributes.is_a?(Hash)
79
+
80
+ # convert string to symbol for hash key
81
+ attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
82
+
83
+ if attributes.has_key?(:'lastChangeDate')
84
+ self.last_change_date = attributes[:'lastChangeDate']
85
+ end
86
+
87
+ if attributes.has_key?(:'creationHistory')
88
+ self.creation_history = attributes[:'creationHistory']
89
+ end
90
+
91
+ if attributes.has_key?(:'modificationHistory')
92
+ self.modification_history = attributes[:'modificationHistory']
93
+ end
94
+
95
+ if attributes.has_key?(:'passwordHistory')
96
+ self.password_history = attributes[:'passwordHistory']
97
+ end
98
+
99
+ if attributes.has_key?(:'createDate')
100
+ self.create_date = attributes[:'createDate']
101
+ end
102
+
103
+ if attributes.has_key?(:'passwordChangeDate')
104
+ self.password_change_date = attributes[:'passwordChangeDate']
105
+ end
106
+
107
+ if attributes.has_key?(:'alertnateAuthentication')
108
+ self.alertnate_authentication = attributes[:'alertnateAuthentication']
109
+ end
110
+ end
111
+
112
+ # Show invalid properties with the reasons. Usually used together with valid?
113
+ # @return Array for valid properties with the reasons
114
+ def list_invalid_properties
115
+ invalid_properties = Array.new
116
+ invalid_properties
117
+ end
118
+
119
+ # Check to see if the all the properties in the model are valid
120
+ # @return true if the model is valid
121
+ def valid?
122
+ true
123
+ end
124
+
125
+ # Custom attribute writer method with validation
126
+ # @param [Object] last_change_date Value to be assigned
127
+ def last_change_date=(last_change_date)
128
+ @last_change_date = last_change_date
129
+ end
130
+
131
+ # Custom attribute writer method with validation
132
+ # @param [Object] create_date Value to be assigned
133
+ def create_date=(create_date)
134
+ @create_date = create_date
135
+ end
136
+
137
+ # Custom attribute writer method with validation
138
+ # @param [Object] password_change_date Value to be assigned
139
+ def password_change_date=(password_change_date)
140
+ @password_change_date = password_change_date
141
+ end
142
+
143
+ # Checks equality by comparing each attribute.
144
+ # @param [Object] Object to be compared
145
+ def ==(o)
146
+ return true if self.equal?(o)
147
+ self.class == o.class &&
148
+ last_change_date == o.last_change_date &&
149
+ creation_history == o.creation_history &&
150
+ modification_history == o.modification_history &&
151
+ password_history == o.password_history &&
152
+ create_date == o.create_date &&
153
+ password_change_date == o.password_change_date &&
154
+ alertnate_authentication == o.alertnate_authentication
155
+ end
156
+
157
+ # @see the `==` method
158
+ # @param [Object] Object to be compared
159
+ def eql?(o)
160
+ self == o
161
+ end
162
+
163
+ # Calculates hash code according to all attributes.
164
+ # @return [Fixnum] Hash code
165
+ def hash
166
+ [last_change_date, creation_history, modification_history, password_history, create_date, password_change_date, alertnate_authentication].hash
167
+ end
168
+
169
+ # Builds the object from hash
170
+ # @param [Hash] attributes Model attributes in the form of hash
171
+ # @return [Object] Returns the model itself
172
+ def build_from_hash(attributes)
173
+ return nil unless attributes.is_a?(Hash)
174
+ self.class.swagger_types.each_pair do |key, type|
175
+ if type =~ /\AArray<(.*)>/i
176
+ # check to ensure the input is an array given that the the attribute
177
+ # is documented as an array but the input is not
178
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
179
+ self.send("#{self.class.json_map[key]}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
180
+ end
181
+ elsif !attributes[self.class.attribute_map[key]].nil?
182
+ self.send("#{self.class.json_map[key]}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
183
+ end # or else data not found in attributes(hash), not an issue as the data can be optional
184
+ end
185
+
186
+ self
187
+ end
188
+
189
+ # Deserializes the data based on type
190
+ # @param string type Data type
191
+ # @param string value Value to be deserialized
192
+ # @return [Object] Deserialized data
193
+ def _deserialize(type, value)
194
+ case type.to_sym
195
+ when :DateTime
196
+ DateTime.parse(value)
197
+ when :Date
198
+ Date.parse(value)
199
+ when :String
200
+ value.to_s
201
+ when :Integer
202
+ value.to_i
203
+ when :Float
204
+ value.to_f
205
+ when :BOOLEAN
206
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
207
+ true
208
+ else
209
+ false
210
+ end
211
+ when :Object
212
+ # generic object (usually a Hash), return directly
213
+ value
214
+ when /\AArray<(?<inner_type>.+)>\z/
215
+ inner_type = Regexp.last_match[:inner_type]
216
+ value.map { |v| _deserialize(inner_type, v) }
217
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
218
+ k_type = Regexp.last_match[:k_type]
219
+ v_type = Regexp.last_match[:v_type]
220
+ {}.tap do |hash|
221
+ value.each do |k, v|
222
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
223
+ end
224
+ end
225
+ else # model
226
+ temp_model = CyberSource.const_get(type).new
227
+ temp_model.build_from_hash(value)
228
+ end
229
+ end
230
+
231
+ # Returns the string representation of the object
232
+ # @return [String] String presentation of the object
233
+ def to_s
234
+ to_hash.to_s
235
+ end
236
+
237
+ # to_body is an alias to to_hash (backward compatibility)
238
+ # @return [Hash] Returns the object in the form of hash
239
+ def to_body
240
+ to_hash
241
+ end
242
+
243
+ # Returns the object in the form of hash
244
+ # @return [Hash] Returns the object in the form of hash
245
+ def to_hash
246
+ hash = {}
247
+ self.class.attribute_map.each_pair do |attr, param|
248
+ value = self.send(attr)
249
+ next if value.nil?
250
+ hash[param] = _to_hash(value)
251
+ end
252
+ hash
253
+ end
254
+
255
+ # Outputs non-array value in the form of hash
256
+ # For object, use to_hash. Otherwise, just return the value
257
+ # @param [Object] value Any valid value
258
+ # @return [Hash] Returns the value in the form of hash
259
+ def _to_hash(value)
260
+ if value.is_a?(Array)
261
+ value.compact.map { |v| _to_hash(v) }
262
+ elsif value.is_a?(Hash)
263
+ {}.tap do |hash|
264
+ value.each { |k, v| hash[k] = _to_hash(v) }
265
+ end
266
+ elsif value.respond_to? :to_hash
267
+ value.to_hash
268
+ else
269
+ value
270
+ end
271
+ end
272
+ end
273
+ end
@@ -12,89 +12,65 @@ Swagger Codegen version: 2.4.38
12
12
  require 'date'
13
13
 
14
14
  module CyberSource
15
- # UCP checkout session state. Total amounts are expressed in cents (not micros).
16
- class InlineResponse20114
17
- attr_accessor :ucp
15
+ # Alternate or prior authentication details used to supplement 3DS risk decisioning with additional cardholder authentication evidence
16
+ class UnifiedriskRiskAssessmentBuyerHistoryCustomerAccountAlertnateAuthentication
17
+ # Method used for alternate authentication during the current session (e.g., FRICTIONLESS, OTP, BIOMETRIC, PUSH_NOTIFICATION). Used as a risk signal in the 3DS flow
18
+ attr_accessor :authentication_method
18
19
 
19
- # Unique UCP session identifier. Required for all subsequent UCP calls (update, complete, cancel).
20
- attr_accessor :id
20
+ # Date and time of the alternate authentication event in ISO 8601 format. Recency of authentication affects risk scoring and challenge exemption decisions
21
+ attr_accessor :authentication_date
21
22
 
22
- # Current lifecycle state of the session. - `active` — open and modifiable - `completed` — order placed, immutable - `cancelled` — abandoned, no charge made Possible values: - active - completed - cancelled
23
- attr_accessor :status
23
+ # Opaque data payload from the alternate authentication process (e.g., signed assertion, biometric template reference). Value is issuer or method specific
24
+ attr_accessor :authentication_data
24
25
 
25
- # ISO 4217 currency code for this session (e.g. `USD`, `EUR`).
26
- attr_accessor :currency
26
+ # Authentication method used in the most recent prior authentication for this account (e.g., OTP, PASSWORD, BIOMETRIC). Provides historical authentication context
27
+ attr_accessor :prior_authentication_method
27
28
 
28
- attr_accessor :buyer
29
+ # Date and time of the most recent prior authentication event in ISO 8601 format, used to calculate authentication recency risk signals
30
+ attr_accessor :prior_authentication_date
29
31
 
30
- # Cart line items with merchant-confirmed pricing.
31
- attr_accessor :line_items
32
+ # Opaque data payload from the prior authentication event, providing additional context about the historical authentication assertion
33
+ attr_accessor :prior_authentication_data
32
34
 
33
- # Order cost breakdown. Each entry represents one total type (subtotal, tax, shipping, discount, or grand total). Amounts are in **cents** (not micros).
34
- attr_accessor :totals
35
-
36
- attr_accessor :fulfillment
37
-
38
- attr_accessor :payment
39
-
40
- attr_accessor :discounts
41
-
42
- attr_accessor :order
43
-
44
- # Related resource links (e.g. terms of use, privacy policy).
45
- attr_accessor :links
35
+ # Reference identifier linking back to the prior authentication session or transaction, used for session continuity and risk correlation
36
+ attr_accessor :prior_authentication_ref
46
37
 
47
38
  # Attribute mapping from ruby-style variable name to JSON key.
48
39
  def self.attribute_map
49
40
  {
50
- :'ucp' => :'ucp',
51
- :'id' => :'id',
52
- :'status' => :'status',
53
- :'currency' => :'currency',
54
- :'buyer' => :'buyer',
55
- :'line_items' => :'line_items',
56
- :'totals' => :'totals',
57
- :'fulfillment' => :'fulfillment',
58
- :'payment' => :'payment',
59
- :'discounts' => :'discounts',
60
- :'order' => :'order',
61
- :'links' => :'links'
41
+ :'authentication_method' => :'authenticationMethod',
42
+ :'authentication_date' => :'authenticationDate',
43
+ :'authentication_data' => :'authenticationData',
44
+ :'prior_authentication_method' => :'priorAuthenticationMethod',
45
+ :'prior_authentication_date' => :'priorAuthenticationDate',
46
+ :'prior_authentication_data' => :'priorAuthenticationData',
47
+ :'prior_authentication_ref' => :'priorAuthenticationRef'
62
48
  }
63
49
  end
64
50
 
65
51
  # Attribute mapping from JSON key to ruby-style variable name.
66
52
  def self.json_map
67
53
  {
68
- :'ucp' => :'ucp',
69
- :'id' => :'id',
70
- :'status' => :'status',
71
- :'currency' => :'currency',
72
- :'buyer' => :'buyer',
73
- :'line_items' => :'line_items',
74
- :'totals' => :'totals',
75
- :'fulfillment' => :'fulfillment',
76
- :'payment' => :'payment',
77
- :'discounts' => :'discounts',
78
- :'order' => :'order',
79
- :'links' => :'links'
54
+ :'authentication_method' => :'authentication_method',
55
+ :'authentication_date' => :'authentication_date',
56
+ :'authentication_data' => :'authentication_data',
57
+ :'prior_authentication_method' => :'prior_authentication_method',
58
+ :'prior_authentication_date' => :'prior_authentication_date',
59
+ :'prior_authentication_data' => :'prior_authentication_data',
60
+ :'prior_authentication_ref' => :'prior_authentication_ref'
80
61
  }
81
62
  end
82
63
 
83
64
  # Attribute type mapping.
84
65
  def self.swagger_types
85
66
  {
86
- :'ucp' => :'InlineResponse20114Ucp',
87
- :'id' => :'String',
88
- :'status' => :'String',
89
- :'currency' => :'String',
90
- :'buyer' => :'UcpCheckoutSessionResponseBuyer',
91
- :'line_items' => :'Array<InlineResponse20114LineItems>',
92
- :'totals' => :'Array<Iccv1checkoutsessionsFulfillmentTotals>',
93
- :'fulfillment' => :'InlineResponse20114Fulfillment',
94
- :'payment' => :'InlineResponse20114Payment',
95
- :'discounts' => :'InlineResponse20114Discounts',
96
- :'order' => :'InlineResponse20114Order',
97
- :'links' => :'Array<InlineResponse20113Links>'
67
+ :'authentication_method' => :'String',
68
+ :'authentication_date' => :'String',
69
+ :'authentication_data' => :'String',
70
+ :'prior_authentication_method' => :'String',
71
+ :'prior_authentication_date' => :'String',
72
+ :'prior_authentication_data' => :'String',
73
+ :'prior_authentication_ref' => :'String'
98
74
  }
99
75
  end
100
76
 
@@ -106,58 +82,32 @@ module CyberSource
106
82
  # convert string to symbol for hash key
107
83
  attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
108
84
 
109
- if attributes.has_key?(:'ucp')
110
- self.ucp = attributes[:'ucp']
111
- end
112
-
113
- if attributes.has_key?(:'id')
114
- self.id = attributes[:'id']
115
- end
116
-
117
- if attributes.has_key?(:'status')
118
- self.status = attributes[:'status']
85
+ if attributes.has_key?(:'authenticationMethod')
86
+ self.authentication_method = attributes[:'authenticationMethod']
119
87
  end
120
88
 
121
- if attributes.has_key?(:'currency')
122
- self.currency = attributes[:'currency']
89
+ if attributes.has_key?(:'authenticationDate')
90
+ self.authentication_date = attributes[:'authenticationDate']
123
91
  end
124
92
 
125
- if attributes.has_key?(:'buyer')
126
- self.buyer = attributes[:'buyer']
93
+ if attributes.has_key?(:'authenticationData')
94
+ self.authentication_data = attributes[:'authenticationData']
127
95
  end
128
96
 
129
- if attributes.has_key?(:'line_items')
130
- if (value = attributes[:'line_items']).is_a?(Array)
131
- self.line_items = value
132
- end
97
+ if attributes.has_key?(:'priorAuthenticationMethod')
98
+ self.prior_authentication_method = attributes[:'priorAuthenticationMethod']
133
99
  end
134
100
 
135
- if attributes.has_key?(:'totals')
136
- if (value = attributes[:'totals']).is_a?(Array)
137
- self.totals = value
138
- end
101
+ if attributes.has_key?(:'priorAuthenticationDate')
102
+ self.prior_authentication_date = attributes[:'priorAuthenticationDate']
139
103
  end
140
104
 
141
- if attributes.has_key?(:'fulfillment')
142
- self.fulfillment = attributes[:'fulfillment']
105
+ if attributes.has_key?(:'priorAuthenticationData')
106
+ self.prior_authentication_data = attributes[:'priorAuthenticationData']
143
107
  end
144
108
 
145
- if attributes.has_key?(:'payment')
146
- self.payment = attributes[:'payment']
147
- end
148
-
149
- if attributes.has_key?(:'discounts')
150
- self.discounts = attributes[:'discounts']
151
- end
152
-
153
- if attributes.has_key?(:'order')
154
- self.order = attributes[:'order']
155
- end
156
-
157
- if attributes.has_key?(:'links')
158
- if (value = attributes[:'links']).is_a?(Array)
159
- self.links = value
160
- end
109
+ if attributes.has_key?(:'priorAuthenticationRef')
110
+ self.prior_authentication_ref = attributes[:'priorAuthenticationRef']
161
111
  end
162
112
  end
163
113
 
@@ -179,18 +129,13 @@ module CyberSource
179
129
  def ==(o)
180
130
  return true if self.equal?(o)
181
131
  self.class == o.class &&
182
- ucp == o.ucp &&
183
- id == o.id &&
184
- status == o.status &&
185
- currency == o.currency &&
186
- buyer == o.buyer &&
187
- line_items == o.line_items &&
188
- totals == o.totals &&
189
- fulfillment == o.fulfillment &&
190
- payment == o.payment &&
191
- discounts == o.discounts &&
192
- order == o.order &&
193
- links == o.links
132
+ authentication_method == o.authentication_method &&
133
+ authentication_date == o.authentication_date &&
134
+ authentication_data == o.authentication_data &&
135
+ prior_authentication_method == o.prior_authentication_method &&
136
+ prior_authentication_date == o.prior_authentication_date &&
137
+ prior_authentication_data == o.prior_authentication_data &&
138
+ prior_authentication_ref == o.prior_authentication_ref
194
139
  end
195
140
 
196
141
  # @see the `==` method
@@ -202,7 +147,7 @@ module CyberSource
202
147
  # Calculates hash code according to all attributes.
203
148
  # @return [Fixnum] Hash code
204
149
  def hash
205
- [ucp, id, status, currency, buyer, line_items, totals, fulfillment, payment, discounts, order, links].hash
150
+ [authentication_method, authentication_date, authentication_data, prior_authentication_method, prior_authentication_date, prior_authentication_data, prior_authentication_ref].hash
206
151
  end
207
152
 
208
153
  # Builds the object from hash