cybersource_rest_client 0.0.86 → 0.0.88

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 (285) hide show
  1. checksums.yaml +4 -4
  2. data/lib/AuthenticationSDK/util/CertificateUtility.rb +14 -6
  3. data/lib/cybersource_rest_client/api/acp_checkout_api.rb +553 -0
  4. data/lib/cybersource_rest_client/api/agent_registration_api.rb +721 -0
  5. data/lib/cybersource_rest_client/api/bank_account_validation_api.rb +0 -1
  6. data/lib/cybersource_rest_client/api/bin_lookup_api.rb +3 -3
  7. data/lib/cybersource_rest_client/api/create_new_webhooks_api.rb +6 -6
  8. data/lib/cybersource_rest_client/api/enrollment_api.rb +104 -0
  9. data/lib/cybersource_rest_client/api/foreign_exchange_rates_api.rb +3 -3
  10. data/lib/cybersource_rest_client/api/manage_webhooks_api.rb +9 -9
  11. data/lib/cybersource_rest_client/api/merchant_boarding_api.rb +3 -3
  12. data/lib/cybersource_rest_client/api/{merchant_capabilities_api.rb → merchant_registration_api.rb} +47 -391
  13. data/lib/cybersource_rest_client/api/offers_api.rb +3 -3
  14. data/lib/cybersource_rest_client/api/payment_events_api.rb +197 -0
  15. data/lib/cybersource_rest_client/api/product_feed_api.rb +365 -0
  16. data/lib/cybersource_rest_client/api/purchase_intent_api.rb +278 -0
  17. data/lib/cybersource_rest_client/api/search_transactions_api.rb +2 -2
  18. data/lib/cybersource_rest_client/api/transaction_details_api.rb +1 -1
  19. data/lib/cybersource_rest_client/api/transaction_query_api.rb +3 -3
  20. data/lib/cybersource_rest_client/api/ucp_checkout_api.rb +453 -0
  21. data/lib/cybersource_rest_client/api/visa_protect_risk_insights_api.rb +104 -0
  22. data/lib/cybersource_rest_client/models/activate_merchant_key_response200.rb +1 -1
  23. data/lib/cybersource_rest_client/models/add_agent_key_response201.rb +11 -11
  24. data/lib/cybersource_rest_client/models/agent_registration_response201.rb +13 -15
  25. data/lib/cybersource_rest_client/models/agent_registration_response201_keys.rb +8 -8
  26. data/lib/cybersource_rest_client/models/agent_request.rb +9 -11
  27. data/lib/cybersource_rest_client/models/agent_update.rb +7 -9
  28. data/lib/cybersource_rest_client/models/auth_reversal_request.rb +1 -1
  29. data/lib/cybersource_rest_client/models/boarding_payouts_configurations.rb +1 -1
  30. data/lib/cybersource_rest_client/models/boarding_payouts_configurations_acquirer.rb +216 -0
  31. data/lib/cybersource_rest_client/models/boarding_payouts_configurations_merchant_descriptor.rb +205 -0
  32. data/lib/cybersource_rest_client/models/boarding_payouts_configurations_processors.rb +581 -0
  33. data/lib/cybersource_rest_client/models/capture_payment_request.rb +1 -1
  34. data/lib/cybersource_rest_client/models/create_order_request.rb +11 -1
  35. data/lib/cybersource_rest_client/models/create_payment_request.rb +14 -1
  36. data/lib/cybersource_rest_client/models/create_session_req.rb +14 -1
  37. data/lib/cybersource_rest_client/models/create_session_request.rb +14 -1
  38. data/lib/cybersource_rest_client/models/iccv1agents_keys.rb +4 -4
  39. data/lib/cybersource_rest_client/models/iccv1merchants_api_integrations.rb +2 -2
  40. data/lib/cybersource_rest_client/models/iccv1merchants_encryption_key.rb +6 -6
  41. data/lib/cybersource_rest_client/models/iccv1merchants_protocol_interactions.rb +1 -1
  42. data/lib/cybersource_rest_client/models/iccv1merchants_web_integrations.rb +2 -2
  43. data/lib/cybersource_rest_client/models/inline_response_200_16.rb +2 -2
  44. data/lib/cybersource_rest_client/models/inline_response_200_17.rb +60 -5
  45. data/lib/cybersource_rest_client/models/inline_response_200_18.rb +45 -5
  46. data/lib/cybersource_rest_client/models/inline_response_200_19.rb +30 -107
  47. data/lib/cybersource_rest_client/models/inline_response_200_19_processing.rb +213 -0
  48. data/lib/cybersource_rest_client/models/inline_response_200_19_syndication.rb +224 -0
  49. data/lib/cybersource_rest_client/models/inline_response_200_20_products.rb +80 -682
  50. data/lib/cybersource_rest_client/models/inline_response_200_4.rb +1 -1
  51. data/lib/cybersource_rest_client/models/inline_response_200_5.rb +1 -1
  52. data/lib/cybersource_rest_client/models/inline_response_201_10.rb +18 -93
  53. data/lib/cybersource_rest_client/models/inline_response_201_11.rb +103 -8
  54. data/lib/cybersource_rest_client/models/{inline_response_201_12_client_reference_information.rb → inline_response_201_11_client_reference_information.rb} +1 -1
  55. data/lib/cybersource_rest_client/models/{inline_response_201_12_error_information.rb → inline_response_201_11_error_information.rb} +1 -1
  56. data/lib/cybersource_rest_client/models/{inline_response_201_12_order_information.rb → inline_response_201_11_order_information.rb} +2 -2
  57. 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
  58. 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
  59. data/lib/cybersource_rest_client/models/{inline_response_201_12_processor_information.rb → inline_response_201_11_processor_information.rb} +1 -1
  60. data/lib/cybersource_rest_client/models/inline_response_201_12.rb +141 -80
  61. data/lib/cybersource_rest_client/models/{inline_response_201_13_fulfillment_address.rb → inline_response_201_12_fulfillment_address.rb} +1 -1
  62. data/lib/cybersource_rest_client/models/{inline_response_201_13_fulfillment_options.rb → inline_response_201_12_fulfillment_options.rb} +31 -1
  63. data/lib/cybersource_rest_client/models/{inline_response_201_14_item.rb → inline_response_201_12_item.rb} +20 -20
  64. data/lib/cybersource_rest_client/models/inline_response_201_12_line_items.rb +256 -0
  65. data/lib/cybersource_rest_client/models/{inline_response_201_13_links.rb → inline_response_201_12_links.rb} +1 -1
  66. data/lib/cybersource_rest_client/models/{inline_response_201_13_messages.rb → inline_response_201_12_messages.rb} +1 -1
  67. data/lib/cybersource_rest_client/models/{inline_response_201_13_payment_provider.rb → inline_response_201_12_payment_provider.rb} +1 -1
  68. data/lib/cybersource_rest_client/models/{inline_response_201_13_totals.rb → inline_response_201_12_totals.rb} +16 -1
  69. data/lib/cybersource_rest_client/models/inline_response_201_13.rb +61 -67
  70. data/lib/cybersource_rest_client/models/{inline_response_201_14_discounts.rb → inline_response_201_13_discounts.rb} +1 -1
  71. data/lib/cybersource_rest_client/models/{inline_response_201_14_fulfillment.rb → inline_response_201_13_fulfillment.rb} +1 -1
  72. data/lib/cybersource_rest_client/models/inline_response_201_13_item.rb +19 -19
  73. data/lib/cybersource_rest_client/models/inline_response_201_13_line_items.rb +20 -51
  74. data/lib/cybersource_rest_client/models/{inline_response_201_14_order.rb → inline_response_201_13_order.rb} +1 -1
  75. data/lib/cybersource_rest_client/models/{inline_response_201_14_payment.rb → inline_response_201_13_payment.rb} +1 -1
  76. data/lib/cybersource_rest_client/models/{inline_response_201_14_ucp.rb → inline_response_201_13_ucp.rb} +2 -2
  77. data/lib/cybersource_rest_client/models/{inline_response_201_14_ucp_capabilities.rb → inline_response_201_13_ucp_capabilities.rb} +1 -1
  78. data/lib/cybersource_rest_client/models/inline_response_201_3.rb +82 -39
  79. data/lib/cybersource_rest_client/models/{inline_response_201_5_error_information.rb → inline_response_201_3_error_information.rb} +3 -3
  80. data/lib/cybersource_rest_client/models/{inline_response_201_5_error_information_details.rb → inline_response_201_3_error_information_details.rb} +2 -2
  81. data/lib/cybersource_rest_client/models/{inline_response_201_5_order_information.rb → inline_response_201_3_order_information.rb} +2 -2
  82. data/lib/cybersource_rest_client/models/inline_response_201_3_order_information_amount_details.rb +315 -0
  83. data/lib/cybersource_rest_client/models/inline_response_201_3_processing_information.rb +189 -0
  84. data/lib/cybersource_rest_client/models/{inline_response_201_4_processing_information_routing.rb → inline_response_201_3_processing_information_routing.rb} +1 -1
  85. data/lib/cybersource_rest_client/models/inline_response_201_3_processor_information.rb +213 -0
  86. data/lib/cybersource_rest_client/models/inline_response_201_4.rb +41 -30
  87. data/lib/cybersource_rest_client/models/{inline_response_201_5__links.rb → inline_response_201_4__links.rb} +2 -2
  88. data/lib/cybersource_rest_client/models/{inline_response_201_5__links_self.rb → inline_response_201_4__links_self.rb} +1 -1
  89. data/lib/cybersource_rest_client/models/{inline_response_201_5_acquirer_information.rb → inline_response_201_4_acquirer_information.rb} +1 -1
  90. data/lib/cybersource_rest_client/models/{inline_response_201_5_client_reference_information.rb → inline_response_201_4_client_reference_information.rb} +1 -1
  91. data/lib/cybersource_rest_client/models/inline_response_201_4_error_information.rb +1 -1
  92. data/lib/cybersource_rest_client/models/inline_response_201_4_error_information_details.rb +1 -1
  93. data/lib/cybersource_rest_client/models/{inline_response_201_5_merchant_information.rb → inline_response_201_4_merchant_information.rb} +1 -1
  94. data/lib/cybersource_rest_client/models/inline_response_201_4_order_information_amount_details.rb +46 -97
  95. data/lib/cybersource_rest_client/models/{inline_response_201_5_payment_information.rb → inline_response_201_4_payment_information.rb} +2 -2
  96. data/lib/cybersource_rest_client/models/{inline_response_201_5_payment_information_card.rb → inline_response_201_4_payment_information_card.rb} +1 -1
  97. data/lib/cybersource_rest_client/models/inline_response_201_4_processing_information.rb +59 -8
  98. 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
  99. data/lib/cybersource_rest_client/models/inline_response_201_4_processor_information.rb +342 -7
  100. 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
  101. data/lib/cybersource_rest_client/models/{inline_response_201_5_transactions.rb → inline_response_201_4_transactions.rb} +7 -7
  102. data/lib/cybersource_rest_client/models/inline_response_201_5.rb +35 -68
  103. data/lib/cybersource_rest_client/models/{inline_response_201_6_payout_information.rb → inline_response_201_5_payout_information.rb} +3 -3
  104. 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
  105. 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
  106. data/lib/cybersource_rest_client/models/inline_response_201_6.rb +59 -26
  107. data/lib/cybersource_rest_client/models/{inline_response_201_7_integration_information.rb → inline_response_201_6_integration_information.rb} +2 -2
  108. 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
  109. data/lib/cybersource_rest_client/models/{inline_response_201_7_organization_information.rb → inline_response_201_6_organization_information.rb} +1 -1
  110. data/lib/cybersource_rest_client/models/{inline_response_201_7_product_information_setups.rb → inline_response_201_6_product_information_setups.rb} +2 -2
  111. data/lib/cybersource_rest_client/models/{inline_response_201_7_registration_information.rb → inline_response_201_6_registration_information.rb} +1 -1
  112. data/lib/cybersource_rest_client/models/{inline_response_201_7_setups.rb → inline_response_201_6_setups.rb} +4 -4
  113. data/lib/cybersource_rest_client/models/{inline_response_201_7_setups_commerce_solutions.rb → inline_response_201_6_setups_commerce_solutions.rb} +1 -1
  114. data/lib/cybersource_rest_client/models/{inline_response_201_7_setups_risk.rb → inline_response_201_6_setups_risk.rb} +16 -6
  115. data/lib/cybersource_rest_client/models/{inline_response_201_7_setups_value_added_services.rb → inline_response_201_6_setups_value_added_services.rb} +16 -6
  116. data/lib/cybersource_rest_client/models/inline_response_201_7.rb +19 -78
  117. data/lib/cybersource_rest_client/models/{inline_response_201_8_key_information.rb → inline_response_201_7_key_information.rb} +2 -2
  118. 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
  119. 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
  120. data/lib/cybersource_rest_client/models/inline_response_201_8.rb +117 -25
  121. data/lib/cybersource_rest_client/models/inline_response_201_9.rb +68 -105
  122. data/lib/cybersource_rest_client/models/{inline_response_201_10_payloads.rb → inline_response_201_9_payloads.rb} +2 -2
  123. data/lib/cybersource_rest_client/models/{inline_response_201_10_payloads_test_payload.rb → inline_response_201_9_payloads_test_payload.rb} +1 -1
  124. data/lib/cybersource_rest_client/models/inline_response_202_1.rb +191 -0
  125. data/lib/cybersource_rest_client/models/inline_response_400_3.rb +1 -1
  126. data/lib/cybersource_rest_client/models/inline_response_400_4.rb +1 -1
  127. data/lib/cybersource_rest_client/models/invoicing_v2_invoices_post201_response_merchant_defined_field_values_with_definition.rb +11 -1
  128. data/lib/cybersource_rest_client/models/key_request.rb +4 -4
  129. data/lib/cybersource_rest_client/models/key_request_1.rb +5 -5
  130. data/lib/cybersource_rest_client/models/key_update.rb +5 -5
  131. data/lib/cybersource_rest_client/models/key_update_1.rb +5 -5
  132. data/lib/cybersource_rest_client/models/list_agent_keys_response200.rb +2 -2
  133. data/lib/cybersource_rest_client/models/merchant_registration_response201.rb +10 -10
  134. data/lib/cybersource_rest_client/models/merchant_registration_response201_api_integrations.rb +225 -0
  135. data/lib/cybersource_rest_client/models/merchant_registration_response201_keys.rb +1 -1
  136. data/lib/cybersource_rest_client/models/merchant_registration_response201_web_integrations.rb +225 -0
  137. data/lib/cybersource_rest_client/models/merchant_request.rb +7 -7
  138. data/lib/cybersource_rest_client/models/merchant_update.rb +7 -7
  139. data/lib/cybersource_rest_client/models/mit_reversal_request.rb +1 -1
  140. data/lib/cybersource_rest_client/models/mit_void_request.rb +15 -5
  141. data/lib/cybersource_rest_client/models/payments_configuration_setup.rb +11 -1
  142. data/lib/cybersource_rest_client/models/payments_products.rb +11 -1
  143. data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response.rb +12 -1
  144. data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_1.rb +12 -1
  145. data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_1_order_information.rb +44 -1
  146. data/lib/cybersource_rest_client/models/{pts_v2_payouts_post201_response_merchant_information_merchant_descriptor.rb → pts_v2_payments_post201_response_1_order_information_merchant_descriptor.rb} +1 -1
  147. data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_1_processor_information.rb +18 -1
  148. data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_installment_information.rb +101 -5
  149. data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_order_information_ship_to.rb +12 -1
  150. data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_point_of_sale_information.rb +22 -5
  151. data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_processor_information.rb +22 -5
  152. data/lib/cybersource_rest_client/models/pts_v2_payments_refund_post201_response_processor_information.rb +22 -5
  153. data/lib/cybersource_rest_client/models/pts_v2_payments_reversals_post201_response.rb +1 -1
  154. data/lib/cybersource_rest_client/models/{ptsv2paymentsidreversals_point_of_sale_information.rb → pts_v2_payments_reversals_post201_response_point_of_sale_information.rb} +2 -2
  155. data/lib/cybersource_rest_client/models/{ptsv2paymentsidreversals_point_of_sale_information_emv.rb → pts_v2_payments_reversals_post201_response_point_of_sale_information_emv.rb} +1 -1
  156. data/lib/cybersource_rest_client/models/pts_v2_payments_reversals_post201_response_processor_information.rb +22 -5
  157. data/lib/cybersource_rest_client/models/pts_v2_payouts_post201_response_merchant_information.rb +1 -1
  158. data/lib/cybersource_rest_client/models/ptsv2intents_buyer_information.rb +196 -0
  159. data/lib/cybersource_rest_client/models/ptsv2intents_merchant_information_merchant_descriptor.rb +18 -1
  160. data/lib/cybersource_rest_client/models/ptsv2intents_order_information_bill_to.rb +154 -1
  161. data/lib/cybersource_rest_client/models/ptsv2intents_order_information_line_items.rb +16 -5
  162. data/lib/cybersource_rest_client/models/ptsv2intentsid_merchant_information.rb +1 -1
  163. data/lib/cybersource_rest_client/models/ptsv2intentsid_merchant_information_merchant_descriptor.rb +207 -0
  164. data/lib/cybersource_rest_client/models/ptsv2payments_buyer.rb +247 -0
  165. data/lib/cybersource_rest_client/models/{inline_response_201_3_results_risk_insights.rb → ptsv2payments_order_history.rb} +39 -36
  166. data/lib/cybersource_rest_client/models/ptsv2payments_ship_to.rb +281 -0
  167. data/lib/cybersource_rest_client/models/ptsv2paymentsidrefunds_point_of_sale_information.rb +1 -1
  168. data/lib/cybersource_rest_client/models/{ptsv2paymentsidcaptures_point_of_sale_information_emv.rb → ptsv2paymentsidrefunds_point_of_sale_information_emv.rb} +1 -1
  169. data/lib/cybersource_rest_client/models/risk_products.rb +15 -5
  170. data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_point_of_sale_information.rb +1 -1
  171. data/lib/cybersource_rest_client/models/tss_v2_transactions_post201_response__embedded_point_of_sale_information.rb +1 -1
  172. data/lib/cybersource_rest_client/models/ucv1sessions_complete_mandate.rb +16 -5
  173. data/lib/cybersource_rest_client/models/ucv1sessions_data.rb +11 -1
  174. data/lib/cybersource_rest_client/models/ucv1sessions_data_acquirer_information.rb +196 -0
  175. data/lib/cybersource_rest_client/models/ucv1sessions_data_aggregator_information.rb +1 -1
  176. data/lib/cybersource_rest_client/models/ucv1sessions_data_consumer_authentication_information.rb +16 -5
  177. data/lib/cybersource_rest_client/models/{inline_response_201_14_line_items.rb → unified_risk_post201_response.rb} +28 -42
  178. data/lib/cybersource_rest_client/models/{inline_response_201_3_results.rb → unified_risk_post201_response_results.rb} +3 -3
  179. data/lib/cybersource_rest_client/models/unified_risk_post201_response_results_risk_insights.rb +291 -0
  180. data/lib/cybersource_rest_client/models/unified_risk_post201_response_results_risk_insights_client.rb +208 -0
  181. data/lib/cybersource_rest_client/models/unified_risk_post201_response_results_risk_insights_error.rb +202 -0
  182. data/lib/cybersource_rest_client/models/unified_risk_post201_response_results_risk_insights_packages.rb +190 -0
  183. data/lib/cybersource_rest_client/models/unified_risk_post201_response_results_risk_insights_packages_transaction_insights.rb +250 -0
  184. data/lib/cybersource_rest_client/models/unified_risk_post201_response_results_risk_insights_packages_transaction_insights_insights.rb +219 -0
  185. data/lib/cybersource_rest_client/models/unified_risk_post201_response_transaction_insights_insights_warnings.rb +214 -0
  186. data/lib/cybersource_rest_client/models/{unified_risk_labels_post400_response.rb → unified_risk_post400_response.rb} +2 -2
  187. data/lib/cybersource_rest_client/models/{unified_risk_labels_post400_response_errors.rb → unified_risk_post400_response_errors.rb} +1 -1
  188. data/lib/cybersource_rest_client/models/{deactivate_merchant_key_response200.rb → unifiedrisk_account.rb} +10 -16
  189. data/lib/cybersource_rest_client/models/unifiedrisk_acquirer.rb +302 -0
  190. data/lib/cybersource_rest_client/models/{inline_response_200_19_google_merchant.rb → unifiedrisk_acquirer_merchant_account.rb} +42 -45
  191. data/lib/cybersource_rest_client/models/unifiedrisk_acquirer_merchant_account_security_amount.rb +246 -0
  192. data/lib/cybersource_rest_client/models/unifiedrisk_authentication.rb +402 -0
  193. data/lib/cybersource_rest_client/models/unifiedrisk_authentication_challenge.rb +202 -0
  194. data/lib/cybersource_rest_client/models/unifiedrisk_authorization.rb +212 -0
  195. data/lib/cybersource_rest_client/models/unifiedrisk_browser.rb +420 -0
  196. data/lib/cybersource_rest_client/models/unifiedrisk_customer.rb +403 -0
  197. data/lib/cybersource_rest_client/models/unifiedrisk_customer_address.rb +279 -0
  198. data/lib/cybersource_rest_client/models/{inline_response_201_5_processing_information.rb → unifiedrisk_customer_personal_identification.rb} +99 -42
  199. data/lib/cybersource_rest_client/models/unifiedrisk_device.rb +681 -0
  200. data/lib/cybersource_rest_client/models/unifiedrisk_device_point_of_sale.rb +344 -0
  201. data/lib/cybersource_rest_client/models/unifiedrisk_initiating_party.rb +223 -0
  202. data/lib/cybersource_rest_client/models/unifiedrisk_merchant.rb +326 -0
  203. data/lib/cybersource_rest_client/models/unifiedrisk_merchant_address.rb +328 -0
  204. data/lib/cybersource_rest_client/models/unifiedrisk_merchant_merchant_descriptor.rb +389 -0
  205. data/lib/cybersource_rest_client/models/unifiedrisk_merchant_merchant_descriptor_expected_annual_sales.rb +268 -0
  206. data/lib/cybersource_rest_client/models/unifiedrisk_merchant_merchant_descriptor_expected_average_ticket_size.rb +246 -0
  207. data/lib/cybersource_rest_client/models/unifiedrisk_merchant_merchant_descriptor_expected_monthly_sales.rb +268 -0
  208. data/lib/cybersource_rest_client/models/unifiedrisk_merchant_merchant_descriptor_hierarchy.rb +224 -0
  209. data/lib/cybersource_rest_client/models/{label_request.rb → unifiedrisk_merchant_merchant_descriptor_limit_value.rb} +62 -73
  210. data/lib/cybersource_rest_client/models/unifiedrisk_merchant_trading_address.rb +301 -0
  211. data/lib/cybersource_rest_client/models/{inline_response_200_19_google_merchant_products.rb → unifiedrisk_order.rb} +58 -61
  212. data/lib/cybersource_rest_client/models/unifiedrisk_order_billing.rb +360 -0
  213. data/lib/cybersource_rest_client/models/unifiedrisk_order_line_items.rb +262 -0
  214. data/lib/cybersource_rest_client/models/unifiedrisk_order_shipping.rb +464 -0
  215. data/lib/cybersource_rest_client/models/unifiedrisk_order_shipping_store.rb +251 -0
  216. data/lib/cybersource_rest_client/models/unifiedrisk_order_shipping_store_address.rb +191 -0
  217. data/lib/cybersource_rest_client/models/unifiedrisk_order_shipping_store_store_address.rb +235 -0
  218. data/lib/cybersource_rest_client/models/unifiedrisk_partner.rb +214 -0
  219. data/lib/cybersource_rest_client/models/unifiedrisk_payment.rb +423 -0
  220. data/lib/cybersource_rest_client/models/unifiedrisk_payment_approvals.rb +193 -0
  221. data/lib/cybersource_rest_client/models/unifiedrisk_payment_bank_account.rb +451 -0
  222. data/lib/cybersource_rest_client/models/{inline_response_201_5_order_information_amount_details.rb → unifiedrisk_payment_bank_account_balance_before.rb} +49 -56
  223. data/lib/cybersource_rest_client/models/unifiedrisk_payment_bank_account_branch_address.rb +328 -0
  224. data/lib/cybersource_rest_client/models/unifiedrisk_payment_bank_account_credit_limit.rb +257 -0
  225. data/lib/cybersource_rest_client/models/unifiedrisk_payment_bank_account_financial_institution.rb +212 -0
  226. data/lib/cybersource_rest_client/models/unifiedrisk_payment_batch.rb +323 -0
  227. data/lib/cybersource_rest_client/models/unifiedrisk_payment_card.rb +461 -0
  228. data/lib/cybersource_rest_client/models/unifiedrisk_payment_card_par_details.rb +196 -0
  229. data/lib/cybersource_rest_client/models/unifiedrisk_payment_card_token_details.rb +380 -0
  230. data/lib/cybersource_rest_client/models/unifiedrisk_payment_check.rb +289 -0
  231. data/lib/cybersource_rest_client/models/unifiedrisk_payment_check_deposit_location.rb +279 -0
  232. data/lib/cybersource_rest_client/models/unifiedrisk_payment_counterparty.rb +287 -0
  233. data/lib/cybersource_rest_client/models/unifiedrisk_payment_counterparty_address.rb +279 -0
  234. data/lib/cybersource_rest_client/models/unifiedrisk_payment_counterparty_branch_address.rb +279 -0
  235. data/lib/cybersource_rest_client/models/unifiedrisk_payment_sdk.rb +268 -0
  236. data/lib/cybersource_rest_client/models/unifiedrisk_payment_token.rb +213 -0
  237. data/lib/cybersource_rest_client/models/unifiedrisk_payment_verification.rb +230 -0
  238. data/lib/cybersource_rest_client/models/unifiedrisk_payment_verification_additional.rb +256 -0
  239. data/lib/cybersource_rest_client/models/unifiedrisk_payment_verification_authentication.rb +232 -0
  240. data/lib/cybersource_rest_client/models/unifiedrisk_payment_verification_authentication_pin.rb +201 -0
  241. data/lib/cybersource_rest_client/models/unifiedrisk_payment_verification_authentication_three_ds.rb +190 -0
  242. data/lib/cybersource_rest_client/models/unifiedrisk_payment_verification_card_security.rb +199 -0
  243. data/lib/cybersource_rest_client/models/unifiedrisk_payment_verification_card_security_avs.rb +218 -0
  244. data/lib/cybersource_rest_client/models/unifiedrisk_payment_verification_card_security_cvv.rb +196 -0
  245. data/lib/cybersource_rest_client/models/{inline_response_200_19_errors.rb → unifiedrisk_payment_verification_digital.rb} +26 -27
  246. data/lib/cybersource_rest_client/models/unifiedrisk_payment_wallet.rb +201 -0
  247. data/lib/cybersource_rest_client/models/unifiedrisk_payment_wire.rb +364 -0
  248. data/lib/cybersource_rest_client/models/unifiedrisk_risk_assessment.rb +308 -0
  249. data/lib/cybersource_rest_client/models/unifiedrisk_risk_assessment_buyer_history.rb +276 -0
  250. data/lib/cybersource_rest_client/models/unifiedrisk_risk_assessment_buyer_history_account_history.rb +207 -0
  251. data/lib/cybersource_rest_client/models/unifiedrisk_risk_assessment_buyer_history_customer_account.rb +273 -0
  252. data/lib/cybersource_rest_client/models/{inline_response_201_14.rb → unifiedrisk_risk_assessment_buyer_history_customer_account_alertnate_authentication.rb} +59 -114
  253. data/lib/cybersource_rest_client/models/unifiedrisk_risk_assessment_vital4.rb +191 -0
  254. data/lib/cybersource_rest_client/models/unifiedrisk_session.rb +202 -0
  255. data/lib/cybersource_rest_client/models/unifiedrisk_terminal.rb +238 -0
  256. data/lib/cybersource_rest_client/models/unifiedrisk_terminal_address.rb +301 -0
  257. data/lib/cybersource_rest_client/models/unifiedrisk_terminal_capabilities.rb +234 -0
  258. data/lib/cybersource_rest_client/models/unifiedrisk_third_party_risk.rb +708 -0
  259. data/lib/cybersource_rest_client/models/unifiedrisk_third_party_risk_raw_data.rb +189 -0
  260. data/lib/cybersource_rest_client/models/unifiedrisk_transaction.rb +305 -12
  261. data/lib/cybersource_rest_client/models/unifiedrisk_transaction_additional_fees.rb +257 -0
  262. data/lib/cybersource_rest_client/models/unifiedrisk_transaction_amount.rb +257 -0
  263. data/lib/cybersource_rest_client/models/unifiedrisk_transaction_batch_details.rb +220 -0
  264. data/lib/cybersource_rest_client/models/unifiedrisk_transaction_batch_details_batch_credits_amount.rb +246 -0
  265. data/lib/cybersource_rest_client/models/unifiedrisk_transaction_batch_details_batch_debits_amount.rb +246 -0
  266. data/lib/cybersource_rest_client/models/unifiedrisk_transaction_batch_details_file_credits.rb +246 -0
  267. data/lib/cybersource_rest_client/models/unifiedrisk_transaction_batch_details_file_debits.rb +246 -0
  268. data/lib/cybersource_rest_client/models/unifiedrisk_transaction_check_details.rb +190 -0
  269. data/lib/cybersource_rest_client/models/unifiedrisk_transaction_check_details_deposited_cash_amount.rb +246 -0
  270. data/lib/cybersource_rest_client/models/unifiedrisk_transaction_recurring_details.rb +341 -0
  271. data/lib/cybersource_rest_client/models/unifiedrisk_travel.rb +279 -0
  272. data/lib/cybersource_rest_client/models/value_added_services_products.rb +15 -5
  273. data/lib/cybersource_rest_client/models/void_capture_request.rb +15 -5
  274. data/lib/cybersource_rest_client/models/void_credit_request.rb +15 -5
  275. data/lib/cybersource_rest_client/models/void_payment_request.rb +15 -5
  276. data/lib/cybersource_rest_client/models/void_refund_request.rb +15 -5
  277. data/lib/cybersource_rest_client/models/vpri_request.rb +505 -0
  278. data/lib/cybersource_rest_client/models/vpri_transaction_insights_additional_data.rb +190 -0
  279. data/lib/cybersource_rest_client/models/vpri_transaction_insights_additional_data_card_bin_data.rb +357 -0
  280. data/lib/cybersource_rest_client.rb +178 -72
  281. metadata +180 -74
  282. data/lib/cybersource_rest_client/api/agent_capabilities_api.rb +0 -2279
  283. data/lib/cybersource_rest_client/api/transaction_risk_labeling_api.rb +0 -104
  284. data/lib/cybersource_rest_client/models/inline_response_201_5_processor_information.rb +0 -548
  285. data/lib/cybersource_rest_client/models/ptsv2paymentsidcaptures_point_of_sale_information.rb +0 -223
@@ -0,0 +1,214 @@
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
+ # A warning returned by the risk assessment service indicating a data quality issue, model limitation, or coverage gap that may affect the accuracy or completeness of the response.
16
+ class UnifiedRiskPost201ResponseResultsRISKINSIGHTSPackagesTransactionInsightsInsightsWarnings
17
+ # Machine-readable warning code identifier (e.g., SCORE-01, BIN-01, CARD-01, EMAIL-01). Use this code for programmatic handling and filtering of specific warning categories.
18
+ attr_accessor :code
19
+
20
+ # Human-readable explanation of the warning, providing context on why the warning was raised and its potential impact on the risk assessment result.
21
+ attr_accessor :description
22
+
23
+ # Attribute mapping from ruby-style variable name to JSON key.
24
+ def self.attribute_map
25
+ {
26
+ :'code' => :'code',
27
+ :'description' => :'description'
28
+ }
29
+ end
30
+
31
+ # Attribute mapping from JSON key to ruby-style variable name.
32
+ def self.json_map
33
+ {
34
+ :'code' => :'code',
35
+ :'description' => :'description'
36
+ }
37
+ end
38
+
39
+ # Attribute type mapping.
40
+ def self.swagger_types
41
+ {
42
+ :'code' => :'String',
43
+ :'description' => :'String'
44
+ }
45
+ end
46
+
47
+ # Initializes the object
48
+ # @param [Hash] attributes Model attributes in the form of hash
49
+ def initialize(attributes = {})
50
+ return unless attributes.is_a?(Hash)
51
+
52
+ # convert string to symbol for hash key
53
+ attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
54
+
55
+ if attributes.has_key?(:'code')
56
+ self.code = attributes[:'code']
57
+ end
58
+
59
+ if attributes.has_key?(:'description')
60
+ self.description = attributes[:'description']
61
+ end
62
+ end
63
+
64
+ # Show invalid properties with the reasons. Usually used together with valid?
65
+ # @return Array for valid properties with the reasons
66
+ def list_invalid_properties
67
+ invalid_properties = Array.new
68
+ invalid_properties
69
+ end
70
+
71
+ # Check to see if the all the properties in the model are valid
72
+ # @return true if the model is valid
73
+ def valid?
74
+ true
75
+ end
76
+
77
+ # Custom attribute writer method with validation
78
+ # @param [Object] code Value to be assigned
79
+ def code=(code)
80
+ @code = code
81
+ end
82
+
83
+ # Custom attribute writer method with validation
84
+ # @param [Object] description Value to be assigned
85
+ def description=(description)
86
+ @description = description
87
+ end
88
+
89
+ # Checks equality by comparing each attribute.
90
+ # @param [Object] Object to be compared
91
+ def ==(o)
92
+ return true if self.equal?(o)
93
+ self.class == o.class &&
94
+ code == o.code &&
95
+ description == o.description
96
+ end
97
+
98
+ # @see the `==` method
99
+ # @param [Object] Object to be compared
100
+ def eql?(o)
101
+ self == o
102
+ end
103
+
104
+ # Calculates hash code according to all attributes.
105
+ # @return [Fixnum] Hash code
106
+ def hash
107
+ [code, description].hash
108
+ end
109
+
110
+ # Builds the object from hash
111
+ # @param [Hash] attributes Model attributes in the form of hash
112
+ # @return [Object] Returns the model itself
113
+ def build_from_hash(attributes)
114
+ return nil unless attributes.is_a?(Hash)
115
+ self.class.swagger_types.each_pair do |key, type|
116
+ if type =~ /\AArray<(.*)>/i
117
+ # check to ensure the input is an array given that the the attribute
118
+ # is documented as an array but the input is not
119
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
120
+ self.send("#{self.class.json_map[key]}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
121
+ end
122
+ elsif !attributes[self.class.attribute_map[key]].nil?
123
+ self.send("#{self.class.json_map[key]}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
124
+ end # or else data not found in attributes(hash), not an issue as the data can be optional
125
+ end
126
+
127
+ self
128
+ end
129
+
130
+ # Deserializes the data based on type
131
+ # @param string type Data type
132
+ # @param string value Value to be deserialized
133
+ # @return [Object] Deserialized data
134
+ def _deserialize(type, value)
135
+ case type.to_sym
136
+ when :DateTime
137
+ DateTime.parse(value)
138
+ when :Date
139
+ Date.parse(value)
140
+ when :String
141
+ value.to_s
142
+ when :Integer
143
+ value.to_i
144
+ when :Float
145
+ value.to_f
146
+ when :BOOLEAN
147
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
148
+ true
149
+ else
150
+ false
151
+ end
152
+ when :Object
153
+ # generic object (usually a Hash), return directly
154
+ value
155
+ when /\AArray<(?<inner_type>.+)>\z/
156
+ inner_type = Regexp.last_match[:inner_type]
157
+ value.map { |v| _deserialize(inner_type, v) }
158
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
159
+ k_type = Regexp.last_match[:k_type]
160
+ v_type = Regexp.last_match[:v_type]
161
+ {}.tap do |hash|
162
+ value.each do |k, v|
163
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
164
+ end
165
+ end
166
+ else # model
167
+ temp_model = CyberSource.const_get(type).new
168
+ temp_model.build_from_hash(value)
169
+ end
170
+ end
171
+
172
+ # Returns the string representation of the object
173
+ # @return [String] String presentation of the object
174
+ def to_s
175
+ to_hash.to_s
176
+ end
177
+
178
+ # to_body is an alias to to_hash (backward compatibility)
179
+ # @return [Hash] Returns the object in the form of hash
180
+ def to_body
181
+ to_hash
182
+ end
183
+
184
+ # Returns the object in the form of hash
185
+ # @return [Hash] Returns the object in the form of hash
186
+ def to_hash
187
+ hash = {}
188
+ self.class.attribute_map.each_pair do |attr, param|
189
+ value = self.send(attr)
190
+ next if value.nil?
191
+ hash[param] = _to_hash(value)
192
+ end
193
+ hash
194
+ end
195
+
196
+ # Outputs non-array value in the form of hash
197
+ # For object, use to_hash. Otherwise, just return the value
198
+ # @param [Object] value Any valid value
199
+ # @return [Hash] Returns the value in the form of hash
200
+ def _to_hash(value)
201
+ if value.is_a?(Array)
202
+ value.compact.map { |v| _to_hash(v) }
203
+ elsif value.is_a?(Hash)
204
+ {}.tap do |hash|
205
+ value.each { |k, v| hash[k] = _to_hash(v) }
206
+ end
207
+ elsif value.respond_to? :to_hash
208
+ value.to_hash
209
+ else
210
+ value
211
+ end
212
+ end
213
+ end
214
+ end
@@ -13,7 +13,7 @@ require 'date'
13
13
 
14
14
  module CyberSource
15
15
  # Error response envelope returned for HTTP 400 and HTTP 500. Contains a root-level errors array describing what failed and why. There is no results object on pure error responses.
16
- class UnifiedRiskLabelsPost400Response
16
+ class UnifiedRiskPost400Response
17
17
  # Echoes the unique request identifier from the original request. May be absent if the request could not be parsed (e.g., malformed JSON).
18
18
  attr_accessor :request_id
19
19
 
@@ -46,7 +46,7 @@ module CyberSource
46
46
  {
47
47
  :'request_id' => :'String',
48
48
  :'submit_time_utc' => :'DateTime',
49
- :'errors' => :'Array<UnifiedRiskLabelsPost400ResponseErrors>'
49
+ :'errors' => :'Array<UnifiedRiskPost400ResponseErrors>'
50
50
  }
51
51
  end
52
52
 
@@ -12,7 +12,7 @@ Swagger Codegen version: 2.4.38
12
12
  require 'date'
13
13
 
14
14
  module CyberSource
15
- class UnifiedRiskLabelsPost400ResponseErrors
15
+ class UnifiedRiskPost400ResponseErrors
16
16
  # The action that encountered an error (e.g., DECISION, FEATURESPACE, RISK_INSIGHTS, CONSUMER_AUTHENTICATION, VEAS). Possible values: - DECISION - FEATURESPACE - RISK_INSIGHTS - CONSUMER_AUTHENTICATION - VEAS
17
17
  attr_accessor :action
18
18
 
@@ -12,29 +12,28 @@ Swagger Codegen version: 2.4.38
12
12
  require 'date'
13
13
 
14
14
  module CyberSource
15
- # Generic success message response.
16
- class DeactivateMerchantKeyResponse200
17
- # Response message
18
- attr_accessor :message
15
+ class UnifiedriskAccount
16
+ # In the case where this event represents the opening of an account, this field is a free text field where you can input the declaration by the customer on the source of funds.
17
+ attr_accessor :source_of_funds
19
18
 
20
19
  # Attribute mapping from ruby-style variable name to JSON key.
21
20
  def self.attribute_map
22
21
  {
23
- :'message' => :'message'
22
+ :'source_of_funds' => :'sourceOfFunds'
24
23
  }
25
24
  end
26
25
 
27
26
  # Attribute mapping from JSON key to ruby-style variable name.
28
27
  def self.json_map
29
28
  {
30
- :'message' => :'message'
29
+ :'source_of_funds' => :'source_of_funds'
31
30
  }
32
31
  end
33
32
 
34
33
  # Attribute type mapping.
35
34
  def self.swagger_types
36
35
  {
37
- :'message' => :'String'
36
+ :'source_of_funds' => :'String'
38
37
  }
39
38
  end
40
39
 
@@ -46,8 +45,8 @@ module CyberSource
46
45
  # convert string to symbol for hash key
47
46
  attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
48
47
 
49
- if attributes.has_key?(:'message')
50
- self.message = attributes[:'message']
48
+ if attributes.has_key?(:'sourceOfFunds')
49
+ self.source_of_funds = attributes[:'sourceOfFunds']
51
50
  end
52
51
  end
53
52
 
@@ -55,17 +54,12 @@ module CyberSource
55
54
  # @return Array for valid properties with the reasons
56
55
  def list_invalid_properties
57
56
  invalid_properties = Array.new
58
- if @message.nil?
59
- invalid_properties.push('invalid value for "message", message cannot be nil.')
60
- end
61
-
62
57
  invalid_properties
63
58
  end
64
59
 
65
60
  # Check to see if the all the properties in the model are valid
66
61
  # @return true if the model is valid
67
62
  def valid?
68
- return false if @message.nil?
69
63
  true
70
64
  end
71
65
 
@@ -74,7 +68,7 @@ module CyberSource
74
68
  def ==(o)
75
69
  return true if self.equal?(o)
76
70
  self.class == o.class &&
77
- message == o.message
71
+ source_of_funds == o.source_of_funds
78
72
  end
79
73
 
80
74
  # @see the `==` method
@@ -86,7 +80,7 @@ module CyberSource
86
80
  # Calculates hash code according to all attributes.
87
81
  # @return [Fixnum] Hash code
88
82
  def hash
89
- [message].hash
83
+ [source_of_funds].hash
90
84
  end
91
85
 
92
86
  # Builds the object from hash
@@ -0,0 +1,302 @@
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
+ # Acquirer identification, credentials, and country information
16
+ class UnifiedriskAcquirer
17
+ # Acquirer bank ID number that corresponds to a certificate that Cybersource already has.This ID has this format. 4XXXXX for Visa and 5XXXXX for Mastercard.
18
+ attr_accessor :acquirer_bin
19
+
20
+ # Two-letter ISO 3166-1 country code for the acquirer. Used for jurisdiction, regulatory, and risk evaluation when acquirer country may differ from merchant country (including EEA scenarios).
21
+ attr_accessor :country
22
+
23
+ # Registered password for the Visa directory server.
24
+ attr_accessor :password
25
+
26
+ # A unique identifier assigned to the merchant by the acquirer or payment processor
27
+ attr_accessor :merchant_id
28
+
29
+ # A unique identifier for the acquirer in a transaction. | A unique identifier for the acquirer in a transaction. This is only relevant if the originating event was a card transaction.
30
+ attr_accessor :acquirer_id
31
+
32
+ # Short name of the acquirer in acquirerId
33
+ attr_accessor :name
34
+
35
+ attr_accessor :merchant_account
36
+
37
+ # Indicates the phase or stage in the transaction processing flow at which the authorization was declined (e.g., ISSUER, ACQUIRER, NETWORK, MERCHANT)
38
+ attr_accessor :declined_phase
39
+
40
+ # The source system or database from which the acquirer's country code was derived or validated (e.g., BIN table, registration data)
41
+ attr_accessor :country_source
42
+
43
+ # Attribute mapping from ruby-style variable name to JSON key.
44
+ def self.attribute_map
45
+ {
46
+ :'acquirer_bin' => :'acquirerBin',
47
+ :'country' => :'country',
48
+ :'password' => :'password',
49
+ :'merchant_id' => :'merchantId',
50
+ :'acquirer_id' => :'acquirerId',
51
+ :'name' => :'name',
52
+ :'merchant_account' => :'merchantAccount',
53
+ :'declined_phase' => :'declinedPhase',
54
+ :'country_source' => :'countrySource'
55
+ }
56
+ end
57
+
58
+ # Attribute mapping from JSON key to ruby-style variable name.
59
+ def self.json_map
60
+ {
61
+ :'acquirer_bin' => :'acquirer_bin',
62
+ :'country' => :'country',
63
+ :'password' => :'password',
64
+ :'merchant_id' => :'merchant_id',
65
+ :'acquirer_id' => :'acquirer_id',
66
+ :'name' => :'name',
67
+ :'merchant_account' => :'merchant_account',
68
+ :'declined_phase' => :'declined_phase',
69
+ :'country_source' => :'country_source'
70
+ }
71
+ end
72
+
73
+ # Attribute type mapping.
74
+ def self.swagger_types
75
+ {
76
+ :'acquirer_bin' => :'String',
77
+ :'country' => :'String',
78
+ :'password' => :'String',
79
+ :'merchant_id' => :'String',
80
+ :'acquirer_id' => :'String',
81
+ :'name' => :'String',
82
+ :'merchant_account' => :'UnifiedriskAcquirerMerchantAccount',
83
+ :'declined_phase' => :'String',
84
+ :'country_source' => :'String'
85
+ }
86
+ end
87
+
88
+ # Initializes the object
89
+ # @param [Hash] attributes Model attributes in the form of hash
90
+ def initialize(attributes = {})
91
+ return unless attributes.is_a?(Hash)
92
+
93
+ # convert string to symbol for hash key
94
+ attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
95
+
96
+ if attributes.has_key?(:'acquirerBin')
97
+ self.acquirer_bin = attributes[:'acquirerBin']
98
+ end
99
+
100
+ if attributes.has_key?(:'country')
101
+ self.country = attributes[:'country']
102
+ end
103
+
104
+ if attributes.has_key?(:'password')
105
+ self.password = attributes[:'password']
106
+ end
107
+
108
+ if attributes.has_key?(:'merchantId')
109
+ self.merchant_id = attributes[:'merchantId']
110
+ end
111
+
112
+ if attributes.has_key?(:'acquirerId')
113
+ self.acquirer_id = attributes[:'acquirerId']
114
+ end
115
+
116
+ if attributes.has_key?(:'name')
117
+ self.name = attributes[:'name']
118
+ end
119
+
120
+ if attributes.has_key?(:'merchantAccount')
121
+ self.merchant_account = attributes[:'merchantAccount']
122
+ end
123
+
124
+ if attributes.has_key?(:'declinedPhase')
125
+ self.declined_phase = attributes[:'declinedPhase']
126
+ end
127
+
128
+ if attributes.has_key?(:'countrySource')
129
+ self.country_source = attributes[:'countrySource']
130
+ end
131
+ end
132
+
133
+ # Show invalid properties with the reasons. Usually used together with valid?
134
+ # @return Array for valid properties with the reasons
135
+ def list_invalid_properties
136
+ invalid_properties = Array.new
137
+ invalid_properties
138
+ end
139
+
140
+ # Check to see if the all the properties in the model are valid
141
+ # @return true if the model is valid
142
+ def valid?
143
+ true
144
+ end
145
+
146
+ # Custom attribute writer method with validation
147
+ # @param [Object] acquirer_bin Value to be assigned
148
+ def acquirer_bin=(acquirer_bin)
149
+ @acquirer_bin = acquirer_bin
150
+ end
151
+
152
+ # Custom attribute writer method with validation
153
+ # @param [Object] country Value to be assigned
154
+ def country=(country)
155
+ @country = country
156
+ end
157
+
158
+ # Custom attribute writer method with validation
159
+ # @param [Object] password Value to be assigned
160
+ def password=(password)
161
+ @password = password
162
+ end
163
+
164
+ # Custom attribute writer method with validation
165
+ # @param [Object] merchant_id Value to be assigned
166
+ def merchant_id=(merchant_id)
167
+ @merchant_id = merchant_id
168
+ end
169
+
170
+ # Checks equality by comparing each attribute.
171
+ # @param [Object] Object to be compared
172
+ def ==(o)
173
+ return true if self.equal?(o)
174
+ self.class == o.class &&
175
+ acquirer_bin == o.acquirer_bin &&
176
+ country == o.country &&
177
+ password == o.password &&
178
+ merchant_id == o.merchant_id &&
179
+ acquirer_id == o.acquirer_id &&
180
+ name == o.name &&
181
+ merchant_account == o.merchant_account &&
182
+ declined_phase == o.declined_phase &&
183
+ country_source == o.country_source
184
+ end
185
+
186
+ # @see the `==` method
187
+ # @param [Object] Object to be compared
188
+ def eql?(o)
189
+ self == o
190
+ end
191
+
192
+ # Calculates hash code according to all attributes.
193
+ # @return [Fixnum] Hash code
194
+ def hash
195
+ [acquirer_bin, country, password, merchant_id, acquirer_id, name, merchant_account, declined_phase, country_source].hash
196
+ end
197
+
198
+ # Builds the object from hash
199
+ # @param [Hash] attributes Model attributes in the form of hash
200
+ # @return [Object] Returns the model itself
201
+ def build_from_hash(attributes)
202
+ return nil unless attributes.is_a?(Hash)
203
+ self.class.swagger_types.each_pair do |key, type|
204
+ if type =~ /\AArray<(.*)>/i
205
+ # check to ensure the input is an array given that the the attribute
206
+ # is documented as an array but the input is not
207
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
208
+ self.send("#{self.class.json_map[key]}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
209
+ end
210
+ elsif !attributes[self.class.attribute_map[key]].nil?
211
+ self.send("#{self.class.json_map[key]}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
212
+ end # or else data not found in attributes(hash), not an issue as the data can be optional
213
+ end
214
+
215
+ self
216
+ end
217
+
218
+ # Deserializes the data based on type
219
+ # @param string type Data type
220
+ # @param string value Value to be deserialized
221
+ # @return [Object] Deserialized data
222
+ def _deserialize(type, value)
223
+ case type.to_sym
224
+ when :DateTime
225
+ DateTime.parse(value)
226
+ when :Date
227
+ Date.parse(value)
228
+ when :String
229
+ value.to_s
230
+ when :Integer
231
+ value.to_i
232
+ when :Float
233
+ value.to_f
234
+ when :BOOLEAN
235
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
236
+ true
237
+ else
238
+ false
239
+ end
240
+ when :Object
241
+ # generic object (usually a Hash), return directly
242
+ value
243
+ when /\AArray<(?<inner_type>.+)>\z/
244
+ inner_type = Regexp.last_match[:inner_type]
245
+ value.map { |v| _deserialize(inner_type, v) }
246
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
247
+ k_type = Regexp.last_match[:k_type]
248
+ v_type = Regexp.last_match[:v_type]
249
+ {}.tap do |hash|
250
+ value.each do |k, v|
251
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
252
+ end
253
+ end
254
+ else # model
255
+ temp_model = CyberSource.const_get(type).new
256
+ temp_model.build_from_hash(value)
257
+ end
258
+ end
259
+
260
+ # Returns the string representation of the object
261
+ # @return [String] String presentation of the object
262
+ def to_s
263
+ to_hash.to_s
264
+ end
265
+
266
+ # to_body is an alias to to_hash (backward compatibility)
267
+ # @return [Hash] Returns the object in the form of hash
268
+ def to_body
269
+ to_hash
270
+ end
271
+
272
+ # Returns the object in the form of hash
273
+ # @return [Hash] Returns the object in the form of hash
274
+ def to_hash
275
+ hash = {}
276
+ self.class.attribute_map.each_pair do |attr, param|
277
+ value = self.send(attr)
278
+ next if value.nil?
279
+ hash[param] = _to_hash(value)
280
+ end
281
+ hash
282
+ end
283
+
284
+ # Outputs non-array value in the form of hash
285
+ # For object, use to_hash. Otherwise, just return the value
286
+ # @param [Object] value Any valid value
287
+ # @return [Hash] Returns the value in the form of hash
288
+ def _to_hash(value)
289
+ if value.is_a?(Array)
290
+ value.compact.map { |v| _to_hash(v) }
291
+ elsif value.is_a?(Hash)
292
+ {}.tap do |hash|
293
+ value.each { |k, v| hash[k] = _to_hash(v) }
294
+ end
295
+ elsif value.respond_to? :to_hash
296
+ value.to_hash
297
+ else
298
+ value
299
+ end
300
+ end
301
+ end
302
+ end