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.
- checksums.yaml +4 -4
- data/lib/AuthenticationSDK/util/CertificateUtility.rb +14 -6
- data/lib/cybersource_rest_client/api/acp_checkout_api.rb +553 -0
- data/lib/cybersource_rest_client/api/agent_registration_api.rb +721 -0
- data/lib/cybersource_rest_client/api/bank_account_validation_api.rb +0 -1
- data/lib/cybersource_rest_client/api/bin_lookup_api.rb +3 -3
- data/lib/cybersource_rest_client/api/create_new_webhooks_api.rb +6 -6
- data/lib/cybersource_rest_client/api/enrollment_api.rb +104 -0
- data/lib/cybersource_rest_client/api/foreign_exchange_rates_api.rb +3 -3
- data/lib/cybersource_rest_client/api/manage_webhooks_api.rb +9 -9
- data/lib/cybersource_rest_client/api/merchant_boarding_api.rb +3 -3
- data/lib/cybersource_rest_client/api/{merchant_capabilities_api.rb → merchant_registration_api.rb} +47 -391
- data/lib/cybersource_rest_client/api/offers_api.rb +3 -3
- data/lib/cybersource_rest_client/api/payment_events_api.rb +197 -0
- data/lib/cybersource_rest_client/api/product_feed_api.rb +365 -0
- data/lib/cybersource_rest_client/api/purchase_intent_api.rb +278 -0
- data/lib/cybersource_rest_client/api/search_transactions_api.rb +2 -2
- data/lib/cybersource_rest_client/api/transaction_details_api.rb +1 -1
- data/lib/cybersource_rest_client/api/transaction_query_api.rb +3 -3
- data/lib/cybersource_rest_client/api/ucp_checkout_api.rb +453 -0
- data/lib/cybersource_rest_client/api/visa_protect_risk_insights_api.rb +104 -0
- data/lib/cybersource_rest_client/models/activate_merchant_key_response200.rb +1 -1
- data/lib/cybersource_rest_client/models/add_agent_key_response201.rb +11 -11
- data/lib/cybersource_rest_client/models/agent_registration_response201.rb +13 -15
- data/lib/cybersource_rest_client/models/agent_registration_response201_keys.rb +8 -8
- data/lib/cybersource_rest_client/models/agent_request.rb +9 -11
- data/lib/cybersource_rest_client/models/agent_update.rb +7 -9
- data/lib/cybersource_rest_client/models/auth_reversal_request.rb +1 -1
- data/lib/cybersource_rest_client/models/boarding_payouts_configurations.rb +1 -1
- data/lib/cybersource_rest_client/models/boarding_payouts_configurations_acquirer.rb +216 -0
- data/lib/cybersource_rest_client/models/boarding_payouts_configurations_merchant_descriptor.rb +205 -0
- data/lib/cybersource_rest_client/models/boarding_payouts_configurations_processors.rb +581 -0
- data/lib/cybersource_rest_client/models/capture_payment_request.rb +1 -1
- data/lib/cybersource_rest_client/models/create_order_request.rb +11 -1
- data/lib/cybersource_rest_client/models/create_payment_request.rb +14 -1
- data/lib/cybersource_rest_client/models/create_session_req.rb +14 -1
- data/lib/cybersource_rest_client/models/create_session_request.rb +14 -1
- data/lib/cybersource_rest_client/models/iccv1agents_keys.rb +4 -4
- data/lib/cybersource_rest_client/models/iccv1merchants_api_integrations.rb +2 -2
- data/lib/cybersource_rest_client/models/iccv1merchants_encryption_key.rb +6 -6
- data/lib/cybersource_rest_client/models/iccv1merchants_protocol_interactions.rb +1 -1
- data/lib/cybersource_rest_client/models/iccv1merchants_web_integrations.rb +2 -2
- data/lib/cybersource_rest_client/models/inline_response_200_16.rb +2 -2
- data/lib/cybersource_rest_client/models/inline_response_200_17.rb +60 -5
- data/lib/cybersource_rest_client/models/inline_response_200_18.rb +45 -5
- data/lib/cybersource_rest_client/models/inline_response_200_19.rb +30 -107
- data/lib/cybersource_rest_client/models/inline_response_200_19_processing.rb +213 -0
- data/lib/cybersource_rest_client/models/inline_response_200_19_syndication.rb +224 -0
- data/lib/cybersource_rest_client/models/inline_response_200_20_products.rb +80 -682
- data/lib/cybersource_rest_client/models/inline_response_200_4.rb +1 -1
- data/lib/cybersource_rest_client/models/inline_response_200_5.rb +1 -1
- data/lib/cybersource_rest_client/models/inline_response_201_10.rb +18 -93
- data/lib/cybersource_rest_client/models/inline_response_201_11.rb +103 -8
- data/lib/cybersource_rest_client/models/{inline_response_201_12_client_reference_information.rb → inline_response_201_11_client_reference_information.rb} +1 -1
- data/lib/cybersource_rest_client/models/{inline_response_201_12_error_information.rb → inline_response_201_11_error_information.rb} +1 -1
- data/lib/cybersource_rest_client/models/{inline_response_201_12_order_information.rb → inline_response_201_11_order_information.rb} +2 -2
- 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
- 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
- data/lib/cybersource_rest_client/models/{inline_response_201_12_processor_information.rb → inline_response_201_11_processor_information.rb} +1 -1
- data/lib/cybersource_rest_client/models/inline_response_201_12.rb +141 -80
- data/lib/cybersource_rest_client/models/{inline_response_201_13_fulfillment_address.rb → inline_response_201_12_fulfillment_address.rb} +1 -1
- data/lib/cybersource_rest_client/models/{inline_response_201_13_fulfillment_options.rb → inline_response_201_12_fulfillment_options.rb} +31 -1
- data/lib/cybersource_rest_client/models/{inline_response_201_14_item.rb → inline_response_201_12_item.rb} +20 -20
- data/lib/cybersource_rest_client/models/inline_response_201_12_line_items.rb +256 -0
- data/lib/cybersource_rest_client/models/{inline_response_201_13_links.rb → inline_response_201_12_links.rb} +1 -1
- data/lib/cybersource_rest_client/models/{inline_response_201_13_messages.rb → inline_response_201_12_messages.rb} +1 -1
- data/lib/cybersource_rest_client/models/{inline_response_201_13_payment_provider.rb → inline_response_201_12_payment_provider.rb} +1 -1
- data/lib/cybersource_rest_client/models/{inline_response_201_13_totals.rb → inline_response_201_12_totals.rb} +16 -1
- data/lib/cybersource_rest_client/models/inline_response_201_13.rb +61 -67
- data/lib/cybersource_rest_client/models/{inline_response_201_14_discounts.rb → inline_response_201_13_discounts.rb} +1 -1
- data/lib/cybersource_rest_client/models/{inline_response_201_14_fulfillment.rb → inline_response_201_13_fulfillment.rb} +1 -1
- data/lib/cybersource_rest_client/models/inline_response_201_13_item.rb +19 -19
- data/lib/cybersource_rest_client/models/inline_response_201_13_line_items.rb +20 -51
- data/lib/cybersource_rest_client/models/{inline_response_201_14_order.rb → inline_response_201_13_order.rb} +1 -1
- data/lib/cybersource_rest_client/models/{inline_response_201_14_payment.rb → inline_response_201_13_payment.rb} +1 -1
- data/lib/cybersource_rest_client/models/{inline_response_201_14_ucp.rb → inline_response_201_13_ucp.rb} +2 -2
- data/lib/cybersource_rest_client/models/{inline_response_201_14_ucp_capabilities.rb → inline_response_201_13_ucp_capabilities.rb} +1 -1
- data/lib/cybersource_rest_client/models/inline_response_201_3.rb +82 -39
- data/lib/cybersource_rest_client/models/{inline_response_201_5_error_information.rb → inline_response_201_3_error_information.rb} +3 -3
- data/lib/cybersource_rest_client/models/{inline_response_201_5_error_information_details.rb → inline_response_201_3_error_information_details.rb} +2 -2
- data/lib/cybersource_rest_client/models/{inline_response_201_5_order_information.rb → inline_response_201_3_order_information.rb} +2 -2
- data/lib/cybersource_rest_client/models/inline_response_201_3_order_information_amount_details.rb +315 -0
- data/lib/cybersource_rest_client/models/inline_response_201_3_processing_information.rb +189 -0
- data/lib/cybersource_rest_client/models/{inline_response_201_4_processing_information_routing.rb → inline_response_201_3_processing_information_routing.rb} +1 -1
- data/lib/cybersource_rest_client/models/inline_response_201_3_processor_information.rb +213 -0
- data/lib/cybersource_rest_client/models/inline_response_201_4.rb +41 -30
- data/lib/cybersource_rest_client/models/{inline_response_201_5__links.rb → inline_response_201_4__links.rb} +2 -2
- data/lib/cybersource_rest_client/models/{inline_response_201_5__links_self.rb → inline_response_201_4__links_self.rb} +1 -1
- data/lib/cybersource_rest_client/models/{inline_response_201_5_acquirer_information.rb → inline_response_201_4_acquirer_information.rb} +1 -1
- data/lib/cybersource_rest_client/models/{inline_response_201_5_client_reference_information.rb → inline_response_201_4_client_reference_information.rb} +1 -1
- data/lib/cybersource_rest_client/models/inline_response_201_4_error_information.rb +1 -1
- data/lib/cybersource_rest_client/models/inline_response_201_4_error_information_details.rb +1 -1
- data/lib/cybersource_rest_client/models/{inline_response_201_5_merchant_information.rb → inline_response_201_4_merchant_information.rb} +1 -1
- data/lib/cybersource_rest_client/models/inline_response_201_4_order_information_amount_details.rb +46 -97
- data/lib/cybersource_rest_client/models/{inline_response_201_5_payment_information.rb → inline_response_201_4_payment_information.rb} +2 -2
- data/lib/cybersource_rest_client/models/{inline_response_201_5_payment_information_card.rb → inline_response_201_4_payment_information_card.rb} +1 -1
- data/lib/cybersource_rest_client/models/inline_response_201_4_processing_information.rb +59 -8
- 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
- data/lib/cybersource_rest_client/models/inline_response_201_4_processor_information.rb +342 -7
- 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
- data/lib/cybersource_rest_client/models/{inline_response_201_5_transactions.rb → inline_response_201_4_transactions.rb} +7 -7
- data/lib/cybersource_rest_client/models/inline_response_201_5.rb +35 -68
- data/lib/cybersource_rest_client/models/{inline_response_201_6_payout_information.rb → inline_response_201_5_payout_information.rb} +3 -3
- 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
- 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
- data/lib/cybersource_rest_client/models/inline_response_201_6.rb +59 -26
- data/lib/cybersource_rest_client/models/{inline_response_201_7_integration_information.rb → inline_response_201_6_integration_information.rb} +2 -2
- 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
- data/lib/cybersource_rest_client/models/{inline_response_201_7_organization_information.rb → inline_response_201_6_organization_information.rb} +1 -1
- data/lib/cybersource_rest_client/models/{inline_response_201_7_product_information_setups.rb → inline_response_201_6_product_information_setups.rb} +2 -2
- data/lib/cybersource_rest_client/models/{inline_response_201_7_registration_information.rb → inline_response_201_6_registration_information.rb} +1 -1
- data/lib/cybersource_rest_client/models/{inline_response_201_7_setups.rb → inline_response_201_6_setups.rb} +4 -4
- data/lib/cybersource_rest_client/models/{inline_response_201_7_setups_commerce_solutions.rb → inline_response_201_6_setups_commerce_solutions.rb} +1 -1
- data/lib/cybersource_rest_client/models/{inline_response_201_7_setups_risk.rb → inline_response_201_6_setups_risk.rb} +16 -6
- 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
- data/lib/cybersource_rest_client/models/inline_response_201_7.rb +19 -78
- data/lib/cybersource_rest_client/models/{inline_response_201_8_key_information.rb → inline_response_201_7_key_information.rb} +2 -2
- 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
- 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
- data/lib/cybersource_rest_client/models/inline_response_201_8.rb +117 -25
- data/lib/cybersource_rest_client/models/inline_response_201_9.rb +68 -105
- data/lib/cybersource_rest_client/models/{inline_response_201_10_payloads.rb → inline_response_201_9_payloads.rb} +2 -2
- data/lib/cybersource_rest_client/models/{inline_response_201_10_payloads_test_payload.rb → inline_response_201_9_payloads_test_payload.rb} +1 -1
- data/lib/cybersource_rest_client/models/inline_response_202_1.rb +191 -0
- data/lib/cybersource_rest_client/models/inline_response_400_3.rb +1 -1
- data/lib/cybersource_rest_client/models/inline_response_400_4.rb +1 -1
- data/lib/cybersource_rest_client/models/invoicing_v2_invoices_post201_response_merchant_defined_field_values_with_definition.rb +11 -1
- data/lib/cybersource_rest_client/models/key_request.rb +4 -4
- data/lib/cybersource_rest_client/models/key_request_1.rb +5 -5
- data/lib/cybersource_rest_client/models/key_update.rb +5 -5
- data/lib/cybersource_rest_client/models/key_update_1.rb +5 -5
- data/lib/cybersource_rest_client/models/list_agent_keys_response200.rb +2 -2
- data/lib/cybersource_rest_client/models/merchant_registration_response201.rb +10 -10
- data/lib/cybersource_rest_client/models/merchant_registration_response201_api_integrations.rb +225 -0
- data/lib/cybersource_rest_client/models/merchant_registration_response201_keys.rb +1 -1
- data/lib/cybersource_rest_client/models/merchant_registration_response201_web_integrations.rb +225 -0
- data/lib/cybersource_rest_client/models/merchant_request.rb +7 -7
- data/lib/cybersource_rest_client/models/merchant_update.rb +7 -7
- data/lib/cybersource_rest_client/models/mit_reversal_request.rb +1 -1
- data/lib/cybersource_rest_client/models/mit_void_request.rb +15 -5
- data/lib/cybersource_rest_client/models/payments_configuration_setup.rb +11 -1
- data/lib/cybersource_rest_client/models/payments_products.rb +11 -1
- data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response.rb +12 -1
- data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_1.rb +12 -1
- data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_1_order_information.rb +44 -1
- 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
- data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_1_processor_information.rb +18 -1
- data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_installment_information.rb +101 -5
- data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_order_information_ship_to.rb +12 -1
- data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_point_of_sale_information.rb +22 -5
- data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_processor_information.rb +22 -5
- data/lib/cybersource_rest_client/models/pts_v2_payments_refund_post201_response_processor_information.rb +22 -5
- data/lib/cybersource_rest_client/models/pts_v2_payments_reversals_post201_response.rb +1 -1
- 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
- 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
- data/lib/cybersource_rest_client/models/pts_v2_payments_reversals_post201_response_processor_information.rb +22 -5
- data/lib/cybersource_rest_client/models/pts_v2_payouts_post201_response_merchant_information.rb +1 -1
- data/lib/cybersource_rest_client/models/ptsv2intents_buyer_information.rb +196 -0
- data/lib/cybersource_rest_client/models/ptsv2intents_merchant_information_merchant_descriptor.rb +18 -1
- data/lib/cybersource_rest_client/models/ptsv2intents_order_information_bill_to.rb +154 -1
- data/lib/cybersource_rest_client/models/ptsv2intents_order_information_line_items.rb +16 -5
- data/lib/cybersource_rest_client/models/ptsv2intentsid_merchant_information.rb +1 -1
- data/lib/cybersource_rest_client/models/ptsv2intentsid_merchant_information_merchant_descriptor.rb +207 -0
- data/lib/cybersource_rest_client/models/ptsv2payments_buyer.rb +247 -0
- data/lib/cybersource_rest_client/models/{inline_response_201_3_results_risk_insights.rb → ptsv2payments_order_history.rb} +39 -36
- data/lib/cybersource_rest_client/models/ptsv2payments_ship_to.rb +281 -0
- data/lib/cybersource_rest_client/models/ptsv2paymentsidrefunds_point_of_sale_information.rb +1 -1
- data/lib/cybersource_rest_client/models/{ptsv2paymentsidcaptures_point_of_sale_information_emv.rb → ptsv2paymentsidrefunds_point_of_sale_information_emv.rb} +1 -1
- data/lib/cybersource_rest_client/models/risk_products.rb +15 -5
- data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_point_of_sale_information.rb +1 -1
- data/lib/cybersource_rest_client/models/tss_v2_transactions_post201_response__embedded_point_of_sale_information.rb +1 -1
- data/lib/cybersource_rest_client/models/ucv1sessions_complete_mandate.rb +16 -5
- data/lib/cybersource_rest_client/models/ucv1sessions_data.rb +11 -1
- data/lib/cybersource_rest_client/models/ucv1sessions_data_acquirer_information.rb +196 -0
- data/lib/cybersource_rest_client/models/ucv1sessions_data_aggregator_information.rb +1 -1
- data/lib/cybersource_rest_client/models/ucv1sessions_data_consumer_authentication_information.rb +16 -5
- data/lib/cybersource_rest_client/models/{inline_response_201_14_line_items.rb → unified_risk_post201_response.rb} +28 -42
- data/lib/cybersource_rest_client/models/{inline_response_201_3_results.rb → unified_risk_post201_response_results.rb} +3 -3
- data/lib/cybersource_rest_client/models/unified_risk_post201_response_results_risk_insights.rb +291 -0
- data/lib/cybersource_rest_client/models/unified_risk_post201_response_results_risk_insights_client.rb +208 -0
- data/lib/cybersource_rest_client/models/unified_risk_post201_response_results_risk_insights_error.rb +202 -0
- data/lib/cybersource_rest_client/models/unified_risk_post201_response_results_risk_insights_packages.rb +190 -0
- data/lib/cybersource_rest_client/models/unified_risk_post201_response_results_risk_insights_packages_transaction_insights.rb +250 -0
- data/lib/cybersource_rest_client/models/unified_risk_post201_response_results_risk_insights_packages_transaction_insights_insights.rb +219 -0
- data/lib/cybersource_rest_client/models/unified_risk_post201_response_transaction_insights_insights_warnings.rb +214 -0
- data/lib/cybersource_rest_client/models/{unified_risk_labels_post400_response.rb → unified_risk_post400_response.rb} +2 -2
- data/lib/cybersource_rest_client/models/{unified_risk_labels_post400_response_errors.rb → unified_risk_post400_response_errors.rb} +1 -1
- data/lib/cybersource_rest_client/models/{deactivate_merchant_key_response200.rb → unifiedrisk_account.rb} +10 -16
- data/lib/cybersource_rest_client/models/unifiedrisk_acquirer.rb +302 -0
- data/lib/cybersource_rest_client/models/{inline_response_200_19_google_merchant.rb → unifiedrisk_acquirer_merchant_account.rb} +42 -45
- data/lib/cybersource_rest_client/models/unifiedrisk_acquirer_merchant_account_security_amount.rb +246 -0
- data/lib/cybersource_rest_client/models/unifiedrisk_authentication.rb +402 -0
- data/lib/cybersource_rest_client/models/unifiedrisk_authentication_challenge.rb +202 -0
- data/lib/cybersource_rest_client/models/unifiedrisk_authorization.rb +212 -0
- data/lib/cybersource_rest_client/models/unifiedrisk_browser.rb +420 -0
- data/lib/cybersource_rest_client/models/unifiedrisk_customer.rb +403 -0
- data/lib/cybersource_rest_client/models/unifiedrisk_customer_address.rb +279 -0
- data/lib/cybersource_rest_client/models/{inline_response_201_5_processing_information.rb → unifiedrisk_customer_personal_identification.rb} +99 -42
- data/lib/cybersource_rest_client/models/unifiedrisk_device.rb +681 -0
- data/lib/cybersource_rest_client/models/unifiedrisk_device_point_of_sale.rb +344 -0
- data/lib/cybersource_rest_client/models/unifiedrisk_initiating_party.rb +223 -0
- data/lib/cybersource_rest_client/models/unifiedrisk_merchant.rb +326 -0
- data/lib/cybersource_rest_client/models/unifiedrisk_merchant_address.rb +328 -0
- data/lib/cybersource_rest_client/models/unifiedrisk_merchant_merchant_descriptor.rb +389 -0
- data/lib/cybersource_rest_client/models/unifiedrisk_merchant_merchant_descriptor_expected_annual_sales.rb +268 -0
- data/lib/cybersource_rest_client/models/unifiedrisk_merchant_merchant_descriptor_expected_average_ticket_size.rb +246 -0
- data/lib/cybersource_rest_client/models/unifiedrisk_merchant_merchant_descriptor_expected_monthly_sales.rb +268 -0
- data/lib/cybersource_rest_client/models/unifiedrisk_merchant_merchant_descriptor_hierarchy.rb +224 -0
- data/lib/cybersource_rest_client/models/{label_request.rb → unifiedrisk_merchant_merchant_descriptor_limit_value.rb} +62 -73
- data/lib/cybersource_rest_client/models/unifiedrisk_merchant_trading_address.rb +301 -0
- data/lib/cybersource_rest_client/models/{inline_response_200_19_google_merchant_products.rb → unifiedrisk_order.rb} +58 -61
- data/lib/cybersource_rest_client/models/unifiedrisk_order_billing.rb +360 -0
- data/lib/cybersource_rest_client/models/unifiedrisk_order_line_items.rb +262 -0
- data/lib/cybersource_rest_client/models/unifiedrisk_order_shipping.rb +464 -0
- data/lib/cybersource_rest_client/models/unifiedrisk_order_shipping_store.rb +251 -0
- data/lib/cybersource_rest_client/models/unifiedrisk_order_shipping_store_address.rb +191 -0
- data/lib/cybersource_rest_client/models/unifiedrisk_order_shipping_store_store_address.rb +235 -0
- data/lib/cybersource_rest_client/models/unifiedrisk_partner.rb +214 -0
- data/lib/cybersource_rest_client/models/unifiedrisk_payment.rb +423 -0
- data/lib/cybersource_rest_client/models/unifiedrisk_payment_approvals.rb +193 -0
- data/lib/cybersource_rest_client/models/unifiedrisk_payment_bank_account.rb +451 -0
- data/lib/cybersource_rest_client/models/{inline_response_201_5_order_information_amount_details.rb → unifiedrisk_payment_bank_account_balance_before.rb} +49 -56
- data/lib/cybersource_rest_client/models/unifiedrisk_payment_bank_account_branch_address.rb +328 -0
- data/lib/cybersource_rest_client/models/unifiedrisk_payment_bank_account_credit_limit.rb +257 -0
- data/lib/cybersource_rest_client/models/unifiedrisk_payment_bank_account_financial_institution.rb +212 -0
- data/lib/cybersource_rest_client/models/unifiedrisk_payment_batch.rb +323 -0
- data/lib/cybersource_rest_client/models/unifiedrisk_payment_card.rb +461 -0
- data/lib/cybersource_rest_client/models/unifiedrisk_payment_card_par_details.rb +196 -0
- data/lib/cybersource_rest_client/models/unifiedrisk_payment_card_token_details.rb +380 -0
- data/lib/cybersource_rest_client/models/unifiedrisk_payment_check.rb +289 -0
- data/lib/cybersource_rest_client/models/unifiedrisk_payment_check_deposit_location.rb +279 -0
- data/lib/cybersource_rest_client/models/unifiedrisk_payment_counterparty.rb +287 -0
- data/lib/cybersource_rest_client/models/unifiedrisk_payment_counterparty_address.rb +279 -0
- data/lib/cybersource_rest_client/models/unifiedrisk_payment_counterparty_branch_address.rb +279 -0
- data/lib/cybersource_rest_client/models/unifiedrisk_payment_sdk.rb +268 -0
- data/lib/cybersource_rest_client/models/unifiedrisk_payment_token.rb +213 -0
- data/lib/cybersource_rest_client/models/unifiedrisk_payment_verification.rb +230 -0
- data/lib/cybersource_rest_client/models/unifiedrisk_payment_verification_additional.rb +256 -0
- data/lib/cybersource_rest_client/models/unifiedrisk_payment_verification_authentication.rb +232 -0
- data/lib/cybersource_rest_client/models/unifiedrisk_payment_verification_authentication_pin.rb +201 -0
- data/lib/cybersource_rest_client/models/unifiedrisk_payment_verification_authentication_three_ds.rb +190 -0
- data/lib/cybersource_rest_client/models/unifiedrisk_payment_verification_card_security.rb +199 -0
- data/lib/cybersource_rest_client/models/unifiedrisk_payment_verification_card_security_avs.rb +218 -0
- data/lib/cybersource_rest_client/models/unifiedrisk_payment_verification_card_security_cvv.rb +196 -0
- data/lib/cybersource_rest_client/models/{inline_response_200_19_errors.rb → unifiedrisk_payment_verification_digital.rb} +26 -27
- data/lib/cybersource_rest_client/models/unifiedrisk_payment_wallet.rb +201 -0
- data/lib/cybersource_rest_client/models/unifiedrisk_payment_wire.rb +364 -0
- data/lib/cybersource_rest_client/models/unifiedrisk_risk_assessment.rb +308 -0
- data/lib/cybersource_rest_client/models/unifiedrisk_risk_assessment_buyer_history.rb +276 -0
- data/lib/cybersource_rest_client/models/unifiedrisk_risk_assessment_buyer_history_account_history.rb +207 -0
- data/lib/cybersource_rest_client/models/unifiedrisk_risk_assessment_buyer_history_customer_account.rb +273 -0
- data/lib/cybersource_rest_client/models/{inline_response_201_14.rb → unifiedrisk_risk_assessment_buyer_history_customer_account_alertnate_authentication.rb} +59 -114
- data/lib/cybersource_rest_client/models/unifiedrisk_risk_assessment_vital4.rb +191 -0
- data/lib/cybersource_rest_client/models/unifiedrisk_session.rb +202 -0
- data/lib/cybersource_rest_client/models/unifiedrisk_terminal.rb +238 -0
- data/lib/cybersource_rest_client/models/unifiedrisk_terminal_address.rb +301 -0
- data/lib/cybersource_rest_client/models/unifiedrisk_terminal_capabilities.rb +234 -0
- data/lib/cybersource_rest_client/models/unifiedrisk_third_party_risk.rb +708 -0
- data/lib/cybersource_rest_client/models/unifiedrisk_third_party_risk_raw_data.rb +189 -0
- data/lib/cybersource_rest_client/models/unifiedrisk_transaction.rb +305 -12
- data/lib/cybersource_rest_client/models/unifiedrisk_transaction_additional_fees.rb +257 -0
- data/lib/cybersource_rest_client/models/unifiedrisk_transaction_amount.rb +257 -0
- data/lib/cybersource_rest_client/models/unifiedrisk_transaction_batch_details.rb +220 -0
- data/lib/cybersource_rest_client/models/unifiedrisk_transaction_batch_details_batch_credits_amount.rb +246 -0
- data/lib/cybersource_rest_client/models/unifiedrisk_transaction_batch_details_batch_debits_amount.rb +246 -0
- data/lib/cybersource_rest_client/models/unifiedrisk_transaction_batch_details_file_credits.rb +246 -0
- data/lib/cybersource_rest_client/models/unifiedrisk_transaction_batch_details_file_debits.rb +246 -0
- data/lib/cybersource_rest_client/models/unifiedrisk_transaction_check_details.rb +190 -0
- data/lib/cybersource_rest_client/models/unifiedrisk_transaction_check_details_deposited_cash_amount.rb +246 -0
- data/lib/cybersource_rest_client/models/unifiedrisk_transaction_recurring_details.rb +341 -0
- data/lib/cybersource_rest_client/models/unifiedrisk_travel.rb +279 -0
- data/lib/cybersource_rest_client/models/value_added_services_products.rb +15 -5
- data/lib/cybersource_rest_client/models/void_capture_request.rb +15 -5
- data/lib/cybersource_rest_client/models/void_credit_request.rb +15 -5
- data/lib/cybersource_rest_client/models/void_payment_request.rb +15 -5
- data/lib/cybersource_rest_client/models/void_refund_request.rb +15 -5
- data/lib/cybersource_rest_client/models/vpri_request.rb +505 -0
- data/lib/cybersource_rest_client/models/vpri_transaction_insights_additional_data.rb +190 -0
- data/lib/cybersource_rest_client/models/vpri_transaction_insights_additional_data_card_bin_data.rb +357 -0
- data/lib/cybersource_rest_client.rb +178 -72
- metadata +180 -74
- data/lib/cybersource_rest_client/api/agent_capabilities_api.rb +0 -2279
- data/lib/cybersource_rest_client/api/transaction_risk_labeling_api.rb +0 -104
- data/lib/cybersource_rest_client/models/inline_response_201_5_processor_information.rb +0 -548
- data/lib/cybersource_rest_client/models/ptsv2paymentsidcaptures_point_of_sale_information.rb +0 -223
|
@@ -0,0 +1,505 @@
|
|
|
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
|
+
# Unified risk assessment request with action-based routing
|
|
16
|
+
class VpriRequest
|
|
17
|
+
# Actions to perform. For VPRI, specify VISA_PROTECT_RISK_INSIGHTS. Multiple actions may be included in a single request to invoke additional services simultaneously.
|
|
18
|
+
attr_accessor :actions
|
|
19
|
+
|
|
20
|
+
# The events to be performed under specific actions. For VISA_PROTECT_RISK_INSIGHTS, supported values are LABELS and INSIGHTS.
|
|
21
|
+
attr_accessor :events
|
|
22
|
+
|
|
23
|
+
attr_accessor :transaction
|
|
24
|
+
|
|
25
|
+
# Unique identifier for the risk assessment request
|
|
26
|
+
attr_accessor :request_id
|
|
27
|
+
|
|
28
|
+
# The time that the real-world event occurred.
|
|
29
|
+
attr_accessor :event_time
|
|
30
|
+
|
|
31
|
+
# The context in which the request is made.
|
|
32
|
+
attr_accessor :context
|
|
33
|
+
|
|
34
|
+
# Indicates whether the request is live or a test.
|
|
35
|
+
attr_accessor :mode
|
|
36
|
+
|
|
37
|
+
# Brief description or comments about the request
|
|
38
|
+
attr_accessor :request_comments
|
|
39
|
+
|
|
40
|
+
# Version of the request schema
|
|
41
|
+
attr_accessor :schema_version
|
|
42
|
+
|
|
43
|
+
attr_accessor :partner
|
|
44
|
+
|
|
45
|
+
attr_accessor :payment
|
|
46
|
+
|
|
47
|
+
attr_accessor :order
|
|
48
|
+
|
|
49
|
+
attr_accessor :customer
|
|
50
|
+
|
|
51
|
+
attr_accessor :risk_assessment
|
|
52
|
+
|
|
53
|
+
attr_accessor :travel
|
|
54
|
+
|
|
55
|
+
attr_accessor :merchant
|
|
56
|
+
|
|
57
|
+
attr_accessor :acquirer
|
|
58
|
+
|
|
59
|
+
attr_accessor :device
|
|
60
|
+
|
|
61
|
+
attr_accessor :session
|
|
62
|
+
|
|
63
|
+
# Free-form field for information not catered for by other components. Must not contain cardholder data or sensitive auth data.
|
|
64
|
+
attr_accessor :supplementary_data
|
|
65
|
+
|
|
66
|
+
attr_accessor :labels
|
|
67
|
+
|
|
68
|
+
attr_accessor :account
|
|
69
|
+
|
|
70
|
+
attr_accessor :authentication
|
|
71
|
+
|
|
72
|
+
attr_accessor :authorization
|
|
73
|
+
|
|
74
|
+
attr_accessor :browser
|
|
75
|
+
|
|
76
|
+
attr_accessor :initiating_party
|
|
77
|
+
|
|
78
|
+
attr_accessor :terminal
|
|
79
|
+
|
|
80
|
+
attr_accessor :third_party_risk
|
|
81
|
+
|
|
82
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
|
83
|
+
def self.attribute_map
|
|
84
|
+
{
|
|
85
|
+
:'actions' => :'actions',
|
|
86
|
+
:'events' => :'events',
|
|
87
|
+
:'transaction' => :'transaction',
|
|
88
|
+
:'request_id' => :'requestId',
|
|
89
|
+
:'event_time' => :'eventTime',
|
|
90
|
+
:'context' => :'context',
|
|
91
|
+
:'mode' => :'mode',
|
|
92
|
+
:'request_comments' => :'requestComments',
|
|
93
|
+
:'schema_version' => :'schemaVersion',
|
|
94
|
+
:'partner' => :'partner',
|
|
95
|
+
:'payment' => :'payment',
|
|
96
|
+
:'order' => :'order',
|
|
97
|
+
:'customer' => :'customer',
|
|
98
|
+
:'risk_assessment' => :'riskAssessment',
|
|
99
|
+
:'travel' => :'travel',
|
|
100
|
+
:'merchant' => :'merchant',
|
|
101
|
+
:'acquirer' => :'acquirer',
|
|
102
|
+
:'device' => :'device',
|
|
103
|
+
:'session' => :'session',
|
|
104
|
+
:'supplementary_data' => :'supplementaryData',
|
|
105
|
+
:'labels' => :'labels',
|
|
106
|
+
:'account' => :'account',
|
|
107
|
+
:'authentication' => :'authentication',
|
|
108
|
+
:'authorization' => :'authorization',
|
|
109
|
+
:'browser' => :'browser',
|
|
110
|
+
:'initiating_party' => :'initiatingParty',
|
|
111
|
+
:'terminal' => :'terminal',
|
|
112
|
+
:'third_party_risk' => :'thirdPartyRisk'
|
|
113
|
+
}
|
|
114
|
+
end
|
|
115
|
+
|
|
116
|
+
# Attribute mapping from JSON key to ruby-style variable name.
|
|
117
|
+
def self.json_map
|
|
118
|
+
{
|
|
119
|
+
:'actions' => :'actions',
|
|
120
|
+
:'events' => :'events',
|
|
121
|
+
:'transaction' => :'transaction',
|
|
122
|
+
:'request_id' => :'request_id',
|
|
123
|
+
:'event_time' => :'event_time',
|
|
124
|
+
:'context' => :'context',
|
|
125
|
+
:'mode' => :'mode',
|
|
126
|
+
:'request_comments' => :'request_comments',
|
|
127
|
+
:'schema_version' => :'schema_version',
|
|
128
|
+
:'partner' => :'partner',
|
|
129
|
+
:'payment' => :'payment',
|
|
130
|
+
:'order' => :'order',
|
|
131
|
+
:'customer' => :'customer',
|
|
132
|
+
:'risk_assessment' => :'risk_assessment',
|
|
133
|
+
:'travel' => :'travel',
|
|
134
|
+
:'merchant' => :'merchant',
|
|
135
|
+
:'acquirer' => :'acquirer',
|
|
136
|
+
:'device' => :'device',
|
|
137
|
+
:'session' => :'session',
|
|
138
|
+
:'supplementary_data' => :'supplementary_data',
|
|
139
|
+
:'labels' => :'labels',
|
|
140
|
+
:'account' => :'account',
|
|
141
|
+
:'authentication' => :'authentication',
|
|
142
|
+
:'authorization' => :'authorization',
|
|
143
|
+
:'browser' => :'browser',
|
|
144
|
+
:'initiating_party' => :'initiating_party',
|
|
145
|
+
:'terminal' => :'terminal',
|
|
146
|
+
:'third_party_risk' => :'third_party_risk'
|
|
147
|
+
}
|
|
148
|
+
end
|
|
149
|
+
|
|
150
|
+
# Attribute type mapping.
|
|
151
|
+
def self.swagger_types
|
|
152
|
+
{
|
|
153
|
+
:'actions' => :'Array<String>',
|
|
154
|
+
:'events' => :'Array<String>',
|
|
155
|
+
:'transaction' => :'UnifiedriskTransaction',
|
|
156
|
+
:'request_id' => :'String',
|
|
157
|
+
:'event_time' => :'DateTime',
|
|
158
|
+
:'context' => :'String',
|
|
159
|
+
:'mode' => :'String',
|
|
160
|
+
:'request_comments' => :'String',
|
|
161
|
+
:'schema_version' => :'Integer',
|
|
162
|
+
:'partner' => :'UnifiedriskPartner',
|
|
163
|
+
:'payment' => :'UnifiedriskPayment',
|
|
164
|
+
:'order' => :'UnifiedriskOrder',
|
|
165
|
+
:'customer' => :'UnifiedriskCustomer',
|
|
166
|
+
:'risk_assessment' => :'UnifiedriskRiskAssessment',
|
|
167
|
+
:'travel' => :'UnifiedriskTravel',
|
|
168
|
+
:'merchant' => :'UnifiedriskMerchant',
|
|
169
|
+
:'acquirer' => :'UnifiedriskAcquirer',
|
|
170
|
+
:'device' => :'UnifiedriskDevice',
|
|
171
|
+
:'session' => :'UnifiedriskSession',
|
|
172
|
+
:'supplementary_data' => :'String',
|
|
173
|
+
:'labels' => :'UnifiedriskLabels',
|
|
174
|
+
:'account' => :'UnifiedriskAccount',
|
|
175
|
+
:'authentication' => :'UnifiedriskAuthentication',
|
|
176
|
+
:'authorization' => :'UnifiedriskAuthorization',
|
|
177
|
+
:'browser' => :'UnifiedriskBrowser',
|
|
178
|
+
:'initiating_party' => :'UnifiedriskInitiatingParty',
|
|
179
|
+
:'terminal' => :'UnifiedriskTerminal',
|
|
180
|
+
:'third_party_risk' => :'UnifiedriskThirdPartyRisk'
|
|
181
|
+
}
|
|
182
|
+
end
|
|
183
|
+
|
|
184
|
+
# Initializes the object
|
|
185
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
186
|
+
def initialize(attributes = {})
|
|
187
|
+
return unless attributes.is_a?(Hash)
|
|
188
|
+
|
|
189
|
+
# convert string to symbol for hash key
|
|
190
|
+
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
|
191
|
+
|
|
192
|
+
if attributes.has_key?(:'actions')
|
|
193
|
+
if (value = attributes[:'actions']).is_a?(Array)
|
|
194
|
+
self.actions = value
|
|
195
|
+
end
|
|
196
|
+
end
|
|
197
|
+
|
|
198
|
+
if attributes.has_key?(:'events')
|
|
199
|
+
if (value = attributes[:'events']).is_a?(Array)
|
|
200
|
+
self.events = value
|
|
201
|
+
end
|
|
202
|
+
end
|
|
203
|
+
|
|
204
|
+
if attributes.has_key?(:'transaction')
|
|
205
|
+
self.transaction = attributes[:'transaction']
|
|
206
|
+
end
|
|
207
|
+
|
|
208
|
+
if attributes.has_key?(:'requestId')
|
|
209
|
+
self.request_id = attributes[:'requestId']
|
|
210
|
+
end
|
|
211
|
+
|
|
212
|
+
if attributes.has_key?(:'eventTime')
|
|
213
|
+
self.event_time = attributes[:'eventTime']
|
|
214
|
+
end
|
|
215
|
+
|
|
216
|
+
if attributes.has_key?(:'context')
|
|
217
|
+
self.context = attributes[:'context']
|
|
218
|
+
end
|
|
219
|
+
|
|
220
|
+
if attributes.has_key?(:'mode')
|
|
221
|
+
self.mode = attributes[:'mode']
|
|
222
|
+
end
|
|
223
|
+
|
|
224
|
+
if attributes.has_key?(:'requestComments')
|
|
225
|
+
self.request_comments = attributes[:'requestComments']
|
|
226
|
+
end
|
|
227
|
+
|
|
228
|
+
if attributes.has_key?(:'schemaVersion')
|
|
229
|
+
self.schema_version = attributes[:'schemaVersion']
|
|
230
|
+
end
|
|
231
|
+
|
|
232
|
+
if attributes.has_key?(:'partner')
|
|
233
|
+
self.partner = attributes[:'partner']
|
|
234
|
+
end
|
|
235
|
+
|
|
236
|
+
if attributes.has_key?(:'payment')
|
|
237
|
+
self.payment = attributes[:'payment']
|
|
238
|
+
end
|
|
239
|
+
|
|
240
|
+
if attributes.has_key?(:'order')
|
|
241
|
+
self.order = attributes[:'order']
|
|
242
|
+
end
|
|
243
|
+
|
|
244
|
+
if attributes.has_key?(:'customer')
|
|
245
|
+
self.customer = attributes[:'customer']
|
|
246
|
+
end
|
|
247
|
+
|
|
248
|
+
if attributes.has_key?(:'riskAssessment')
|
|
249
|
+
self.risk_assessment = attributes[:'riskAssessment']
|
|
250
|
+
end
|
|
251
|
+
|
|
252
|
+
if attributes.has_key?(:'travel')
|
|
253
|
+
self.travel = attributes[:'travel']
|
|
254
|
+
end
|
|
255
|
+
|
|
256
|
+
if attributes.has_key?(:'merchant')
|
|
257
|
+
self.merchant = attributes[:'merchant']
|
|
258
|
+
end
|
|
259
|
+
|
|
260
|
+
if attributes.has_key?(:'acquirer')
|
|
261
|
+
self.acquirer = attributes[:'acquirer']
|
|
262
|
+
end
|
|
263
|
+
|
|
264
|
+
if attributes.has_key?(:'device')
|
|
265
|
+
self.device = attributes[:'device']
|
|
266
|
+
end
|
|
267
|
+
|
|
268
|
+
if attributes.has_key?(:'session')
|
|
269
|
+
self.session = attributes[:'session']
|
|
270
|
+
end
|
|
271
|
+
|
|
272
|
+
if attributes.has_key?(:'supplementaryData')
|
|
273
|
+
self.supplementary_data = attributes[:'supplementaryData']
|
|
274
|
+
end
|
|
275
|
+
|
|
276
|
+
if attributes.has_key?(:'labels')
|
|
277
|
+
self.labels = attributes[:'labels']
|
|
278
|
+
end
|
|
279
|
+
|
|
280
|
+
if attributes.has_key?(:'account')
|
|
281
|
+
self.account = attributes[:'account']
|
|
282
|
+
end
|
|
283
|
+
|
|
284
|
+
if attributes.has_key?(:'authentication')
|
|
285
|
+
self.authentication = attributes[:'authentication']
|
|
286
|
+
end
|
|
287
|
+
|
|
288
|
+
if attributes.has_key?(:'authorization')
|
|
289
|
+
self.authorization = attributes[:'authorization']
|
|
290
|
+
end
|
|
291
|
+
|
|
292
|
+
if attributes.has_key?(:'browser')
|
|
293
|
+
self.browser = attributes[:'browser']
|
|
294
|
+
end
|
|
295
|
+
|
|
296
|
+
if attributes.has_key?(:'initiatingParty')
|
|
297
|
+
self.initiating_party = attributes[:'initiatingParty']
|
|
298
|
+
end
|
|
299
|
+
|
|
300
|
+
if attributes.has_key?(:'terminal')
|
|
301
|
+
self.terminal = attributes[:'terminal']
|
|
302
|
+
end
|
|
303
|
+
|
|
304
|
+
if attributes.has_key?(:'thirdPartyRisk')
|
|
305
|
+
self.third_party_risk = attributes[:'thirdPartyRisk']
|
|
306
|
+
end
|
|
307
|
+
end
|
|
308
|
+
|
|
309
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
|
310
|
+
# @return Array for valid properties with the reasons
|
|
311
|
+
def list_invalid_properties
|
|
312
|
+
invalid_properties = Array.new
|
|
313
|
+
if @actions.nil?
|
|
314
|
+
invalid_properties.push('invalid value for "actions", actions cannot be nil.')
|
|
315
|
+
end
|
|
316
|
+
|
|
317
|
+
if @events.nil?
|
|
318
|
+
invalid_properties.push('invalid value for "events", events cannot be nil.')
|
|
319
|
+
end
|
|
320
|
+
|
|
321
|
+
if @transaction.nil?
|
|
322
|
+
invalid_properties.push('invalid value for "transaction", transaction cannot be nil.')
|
|
323
|
+
end
|
|
324
|
+
|
|
325
|
+
if @event_time.nil?
|
|
326
|
+
invalid_properties.push('invalid value for "event_time", event_time cannot be nil.')
|
|
327
|
+
end
|
|
328
|
+
|
|
329
|
+
invalid_properties
|
|
330
|
+
end
|
|
331
|
+
|
|
332
|
+
# Check to see if the all the properties in the model are valid
|
|
333
|
+
# @return true if the model is valid
|
|
334
|
+
def valid?
|
|
335
|
+
return false if @actions.nil?
|
|
336
|
+
return false if @events.nil?
|
|
337
|
+
return false if @transaction.nil?
|
|
338
|
+
return false if @event_time.nil?
|
|
339
|
+
true
|
|
340
|
+
end
|
|
341
|
+
|
|
342
|
+
# Custom attribute writer method with validation
|
|
343
|
+
# @param [Object] mode Value to be assigned
|
|
344
|
+
def mode=(mode)
|
|
345
|
+
@mode = mode
|
|
346
|
+
end
|
|
347
|
+
|
|
348
|
+
# Custom attribute writer method with validation
|
|
349
|
+
# @param [Object] request_comments Value to be assigned
|
|
350
|
+
def request_comments=(request_comments)
|
|
351
|
+
@request_comments = request_comments
|
|
352
|
+
end
|
|
353
|
+
|
|
354
|
+
# Checks equality by comparing each attribute.
|
|
355
|
+
# @param [Object] Object to be compared
|
|
356
|
+
def ==(o)
|
|
357
|
+
return true if self.equal?(o)
|
|
358
|
+
self.class == o.class &&
|
|
359
|
+
actions == o.actions &&
|
|
360
|
+
events == o.events &&
|
|
361
|
+
transaction == o.transaction &&
|
|
362
|
+
request_id == o.request_id &&
|
|
363
|
+
event_time == o.event_time &&
|
|
364
|
+
context == o.context &&
|
|
365
|
+
mode == o.mode &&
|
|
366
|
+
request_comments == o.request_comments &&
|
|
367
|
+
schema_version == o.schema_version &&
|
|
368
|
+
partner == o.partner &&
|
|
369
|
+
payment == o.payment &&
|
|
370
|
+
order == o.order &&
|
|
371
|
+
customer == o.customer &&
|
|
372
|
+
risk_assessment == o.risk_assessment &&
|
|
373
|
+
travel == o.travel &&
|
|
374
|
+
merchant == o.merchant &&
|
|
375
|
+
acquirer == o.acquirer &&
|
|
376
|
+
device == o.device &&
|
|
377
|
+
session == o.session &&
|
|
378
|
+
supplementary_data == o.supplementary_data &&
|
|
379
|
+
labels == o.labels &&
|
|
380
|
+
account == o.account &&
|
|
381
|
+
authentication == o.authentication &&
|
|
382
|
+
authorization == o.authorization &&
|
|
383
|
+
browser == o.browser &&
|
|
384
|
+
initiating_party == o.initiating_party &&
|
|
385
|
+
terminal == o.terminal &&
|
|
386
|
+
third_party_risk == o.third_party_risk
|
|
387
|
+
end
|
|
388
|
+
|
|
389
|
+
# @see the `==` method
|
|
390
|
+
# @param [Object] Object to be compared
|
|
391
|
+
def eql?(o)
|
|
392
|
+
self == o
|
|
393
|
+
end
|
|
394
|
+
|
|
395
|
+
# Calculates hash code according to all attributes.
|
|
396
|
+
# @return [Fixnum] Hash code
|
|
397
|
+
def hash
|
|
398
|
+
[actions, events, transaction, request_id, event_time, context, mode, request_comments, schema_version, partner, payment, order, customer, risk_assessment, travel, merchant, acquirer, device, session, supplementary_data, labels, account, authentication, authorization, browser, initiating_party, terminal, third_party_risk].hash
|
|
399
|
+
end
|
|
400
|
+
|
|
401
|
+
# Builds the object from hash
|
|
402
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
403
|
+
# @return [Object] Returns the model itself
|
|
404
|
+
def build_from_hash(attributes)
|
|
405
|
+
return nil unless attributes.is_a?(Hash)
|
|
406
|
+
self.class.swagger_types.each_pair do |key, type|
|
|
407
|
+
if type =~ /\AArray<(.*)>/i
|
|
408
|
+
# check to ensure the input is an array given that the the attribute
|
|
409
|
+
# is documented as an array but the input is not
|
|
410
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
|
411
|
+
self.send("#{self.class.json_map[key]}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
|
412
|
+
end
|
|
413
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
|
414
|
+
self.send("#{self.class.json_map[key]}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
|
415
|
+
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
|
416
|
+
end
|
|
417
|
+
|
|
418
|
+
self
|
|
419
|
+
end
|
|
420
|
+
|
|
421
|
+
# Deserializes the data based on type
|
|
422
|
+
# @param string type Data type
|
|
423
|
+
# @param string value Value to be deserialized
|
|
424
|
+
# @return [Object] Deserialized data
|
|
425
|
+
def _deserialize(type, value)
|
|
426
|
+
case type.to_sym
|
|
427
|
+
when :DateTime
|
|
428
|
+
DateTime.parse(value)
|
|
429
|
+
when :Date
|
|
430
|
+
Date.parse(value)
|
|
431
|
+
when :String
|
|
432
|
+
value.to_s
|
|
433
|
+
when :Integer
|
|
434
|
+
value.to_i
|
|
435
|
+
when :Float
|
|
436
|
+
value.to_f
|
|
437
|
+
when :BOOLEAN
|
|
438
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
|
439
|
+
true
|
|
440
|
+
else
|
|
441
|
+
false
|
|
442
|
+
end
|
|
443
|
+
when :Object
|
|
444
|
+
# generic object (usually a Hash), return directly
|
|
445
|
+
value
|
|
446
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
|
447
|
+
inner_type = Regexp.last_match[:inner_type]
|
|
448
|
+
value.map { |v| _deserialize(inner_type, v) }
|
|
449
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
|
450
|
+
k_type = Regexp.last_match[:k_type]
|
|
451
|
+
v_type = Regexp.last_match[:v_type]
|
|
452
|
+
{}.tap do |hash|
|
|
453
|
+
value.each do |k, v|
|
|
454
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
|
455
|
+
end
|
|
456
|
+
end
|
|
457
|
+
else # model
|
|
458
|
+
temp_model = CyberSource.const_get(type).new
|
|
459
|
+
temp_model.build_from_hash(value)
|
|
460
|
+
end
|
|
461
|
+
end
|
|
462
|
+
|
|
463
|
+
# Returns the string representation of the object
|
|
464
|
+
# @return [String] String presentation of the object
|
|
465
|
+
def to_s
|
|
466
|
+
to_hash.to_s
|
|
467
|
+
end
|
|
468
|
+
|
|
469
|
+
# to_body is an alias to to_hash (backward compatibility)
|
|
470
|
+
# @return [Hash] Returns the object in the form of hash
|
|
471
|
+
def to_body
|
|
472
|
+
to_hash
|
|
473
|
+
end
|
|
474
|
+
|
|
475
|
+
# Returns the object in the form of hash
|
|
476
|
+
# @return [Hash] Returns the object in the form of hash
|
|
477
|
+
def to_hash
|
|
478
|
+
hash = {}
|
|
479
|
+
self.class.attribute_map.each_pair do |attr, param|
|
|
480
|
+
value = self.send(attr)
|
|
481
|
+
next if value.nil?
|
|
482
|
+
hash[param] = _to_hash(value)
|
|
483
|
+
end
|
|
484
|
+
hash
|
|
485
|
+
end
|
|
486
|
+
|
|
487
|
+
# Outputs non-array value in the form of hash
|
|
488
|
+
# For object, use to_hash. Otherwise, just return the value
|
|
489
|
+
# @param [Object] value Any valid value
|
|
490
|
+
# @return [Hash] Returns the value in the form of hash
|
|
491
|
+
def _to_hash(value)
|
|
492
|
+
if value.is_a?(Array)
|
|
493
|
+
value.compact.map { |v| _to_hash(v) }
|
|
494
|
+
elsif value.is_a?(Hash)
|
|
495
|
+
{}.tap do |hash|
|
|
496
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
|
497
|
+
end
|
|
498
|
+
elsif value.respond_to? :to_hash
|
|
499
|
+
value.to_hash
|
|
500
|
+
else
|
|
501
|
+
value
|
|
502
|
+
end
|
|
503
|
+
end
|
|
504
|
+
end
|
|
505
|
+
end
|
|
@@ -0,0 +1,190 @@
|
|
|
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
|
+
# Supplementary data enriching the transaction risk assessment, such as card BIN metadata.
|
|
16
|
+
class VpriTransactionInsightsAdditionalData
|
|
17
|
+
attr_accessor :card_bin_data
|
|
18
|
+
|
|
19
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
|
20
|
+
def self.attribute_map
|
|
21
|
+
{
|
|
22
|
+
:'card_bin_data' => :'cardBinData'
|
|
23
|
+
}
|
|
24
|
+
end
|
|
25
|
+
|
|
26
|
+
# Attribute mapping from JSON key to ruby-style variable name.
|
|
27
|
+
def self.json_map
|
|
28
|
+
{
|
|
29
|
+
:'card_bin_data' => :'card_bin_data'
|
|
30
|
+
}
|
|
31
|
+
end
|
|
32
|
+
|
|
33
|
+
# Attribute type mapping.
|
|
34
|
+
def self.swagger_types
|
|
35
|
+
{
|
|
36
|
+
:'card_bin_data' => :'VpriTransactionInsightsAdditionalDataCardBinData'
|
|
37
|
+
}
|
|
38
|
+
end
|
|
39
|
+
|
|
40
|
+
# Initializes the object
|
|
41
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
42
|
+
def initialize(attributes = {})
|
|
43
|
+
return unless attributes.is_a?(Hash)
|
|
44
|
+
|
|
45
|
+
# convert string to symbol for hash key
|
|
46
|
+
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
|
47
|
+
|
|
48
|
+
if attributes.has_key?(:'cardBinData')
|
|
49
|
+
self.card_bin_data = attributes[:'cardBinData']
|
|
50
|
+
end
|
|
51
|
+
end
|
|
52
|
+
|
|
53
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
|
54
|
+
# @return Array for valid properties with the reasons
|
|
55
|
+
def list_invalid_properties
|
|
56
|
+
invalid_properties = Array.new
|
|
57
|
+
invalid_properties
|
|
58
|
+
end
|
|
59
|
+
|
|
60
|
+
# Check to see if the all the properties in the model are valid
|
|
61
|
+
# @return true if the model is valid
|
|
62
|
+
def valid?
|
|
63
|
+
true
|
|
64
|
+
end
|
|
65
|
+
|
|
66
|
+
# Checks equality by comparing each attribute.
|
|
67
|
+
# @param [Object] Object to be compared
|
|
68
|
+
def ==(o)
|
|
69
|
+
return true if self.equal?(o)
|
|
70
|
+
self.class == o.class &&
|
|
71
|
+
card_bin_data == o.card_bin_data
|
|
72
|
+
end
|
|
73
|
+
|
|
74
|
+
# @see the `==` method
|
|
75
|
+
# @param [Object] Object to be compared
|
|
76
|
+
def eql?(o)
|
|
77
|
+
self == o
|
|
78
|
+
end
|
|
79
|
+
|
|
80
|
+
# Calculates hash code according to all attributes.
|
|
81
|
+
# @return [Fixnum] Hash code
|
|
82
|
+
def hash
|
|
83
|
+
[card_bin_data].hash
|
|
84
|
+
end
|
|
85
|
+
|
|
86
|
+
# Builds the object from hash
|
|
87
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
88
|
+
# @return [Object] Returns the model itself
|
|
89
|
+
def build_from_hash(attributes)
|
|
90
|
+
return nil unless attributes.is_a?(Hash)
|
|
91
|
+
self.class.swagger_types.each_pair do |key, type|
|
|
92
|
+
if type =~ /\AArray<(.*)>/i
|
|
93
|
+
# check to ensure the input is an array given that the the attribute
|
|
94
|
+
# is documented as an array but the input is not
|
|
95
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
|
96
|
+
self.send("#{self.class.json_map[key]}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
|
97
|
+
end
|
|
98
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
|
99
|
+
self.send("#{self.class.json_map[key]}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
|
100
|
+
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
|
101
|
+
end
|
|
102
|
+
|
|
103
|
+
self
|
|
104
|
+
end
|
|
105
|
+
|
|
106
|
+
# Deserializes the data based on type
|
|
107
|
+
# @param string type Data type
|
|
108
|
+
# @param string value Value to be deserialized
|
|
109
|
+
# @return [Object] Deserialized data
|
|
110
|
+
def _deserialize(type, value)
|
|
111
|
+
case type.to_sym
|
|
112
|
+
when :DateTime
|
|
113
|
+
DateTime.parse(value)
|
|
114
|
+
when :Date
|
|
115
|
+
Date.parse(value)
|
|
116
|
+
when :String
|
|
117
|
+
value.to_s
|
|
118
|
+
when :Integer
|
|
119
|
+
value.to_i
|
|
120
|
+
when :Float
|
|
121
|
+
value.to_f
|
|
122
|
+
when :BOOLEAN
|
|
123
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
|
124
|
+
true
|
|
125
|
+
else
|
|
126
|
+
false
|
|
127
|
+
end
|
|
128
|
+
when :Object
|
|
129
|
+
# generic object (usually a Hash), return directly
|
|
130
|
+
value
|
|
131
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
|
132
|
+
inner_type = Regexp.last_match[:inner_type]
|
|
133
|
+
value.map { |v| _deserialize(inner_type, v) }
|
|
134
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
|
135
|
+
k_type = Regexp.last_match[:k_type]
|
|
136
|
+
v_type = Regexp.last_match[:v_type]
|
|
137
|
+
{}.tap do |hash|
|
|
138
|
+
value.each do |k, v|
|
|
139
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
|
140
|
+
end
|
|
141
|
+
end
|
|
142
|
+
else # model
|
|
143
|
+
temp_model = CyberSource.const_get(type).new
|
|
144
|
+
temp_model.build_from_hash(value)
|
|
145
|
+
end
|
|
146
|
+
end
|
|
147
|
+
|
|
148
|
+
# Returns the string representation of the object
|
|
149
|
+
# @return [String] String presentation of the object
|
|
150
|
+
def to_s
|
|
151
|
+
to_hash.to_s
|
|
152
|
+
end
|
|
153
|
+
|
|
154
|
+
# to_body is an alias to to_hash (backward compatibility)
|
|
155
|
+
# @return [Hash] Returns the object in the form of hash
|
|
156
|
+
def to_body
|
|
157
|
+
to_hash
|
|
158
|
+
end
|
|
159
|
+
|
|
160
|
+
# Returns the object in the form of hash
|
|
161
|
+
# @return [Hash] Returns the object in the form of hash
|
|
162
|
+
def to_hash
|
|
163
|
+
hash = {}
|
|
164
|
+
self.class.attribute_map.each_pair do |attr, param|
|
|
165
|
+
value = self.send(attr)
|
|
166
|
+
next if value.nil?
|
|
167
|
+
hash[param] = _to_hash(value)
|
|
168
|
+
end
|
|
169
|
+
hash
|
|
170
|
+
end
|
|
171
|
+
|
|
172
|
+
# Outputs non-array value in the form of hash
|
|
173
|
+
# For object, use to_hash. Otherwise, just return the value
|
|
174
|
+
# @param [Object] value Any valid value
|
|
175
|
+
# @return [Hash] Returns the value in the form of hash
|
|
176
|
+
def _to_hash(value)
|
|
177
|
+
if value.is_a?(Array)
|
|
178
|
+
value.compact.map { |v| _to_hash(v) }
|
|
179
|
+
elsif value.is_a?(Hash)
|
|
180
|
+
{}.tap do |hash|
|
|
181
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
|
182
|
+
end
|
|
183
|
+
elsif value.respond_to? :to_hash
|
|
184
|
+
value.to_hash
|
|
185
|
+
else
|
|
186
|
+
value
|
|
187
|
+
end
|
|
188
|
+
end
|
|
189
|
+
end
|
|
190
|
+
end
|