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,453 @@
|
|
|
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 'uri'
|
|
13
|
+
require 'AuthenticationSDK/util/MLEUtility'
|
|
14
|
+
module CyberSource
|
|
15
|
+
class UCPCheckoutApi
|
|
16
|
+
attr_accessor :api_client
|
|
17
|
+
|
|
18
|
+
def initialize(api_client = ApiClient.default, config)
|
|
19
|
+
@api_client = api_client
|
|
20
|
+
@api_client.set_configuration(config)
|
|
21
|
+
end
|
|
22
|
+
# Cancel Checkout UCP
|
|
23
|
+
# Cancels an active UCP checkout session. No charge is made. This operation is idempotent — cancelling an already-cancelled session returns a successful response. Sessions also expire automatically after 30 minutes of inactivity.
|
|
24
|
+
#
|
|
25
|
+
# @param session_id The unique identifier of the UCP checkout session to cancel.
|
|
26
|
+
# @param [Hash] opts the optional parameters
|
|
27
|
+
# @return [InlineResponse20113]
|
|
28
|
+
#
|
|
29
|
+
def ucp_cancel_checkout(session_id, opts = {})
|
|
30
|
+
data, status_code, headers = ucp_cancel_checkout_with_http_info(session_id, opts)
|
|
31
|
+
return data, status_code, headers
|
|
32
|
+
end
|
|
33
|
+
|
|
34
|
+
# Cancel Checkout UCP
|
|
35
|
+
# Cancels an active UCP checkout session. No charge is made. This operation is idempotent — cancelling an already-cancelled session returns a successful response. Sessions also expire automatically after 30 minutes of inactivity.
|
|
36
|
+
# @param session_id The unique identifier of the UCP checkout session to cancel.
|
|
37
|
+
# @param [Hash] opts the optional parameters
|
|
38
|
+
# @return [Array<(InlineResponse20113, Fixnum, Hash)>] InlineResponse20113 data, response status code and response headers
|
|
39
|
+
def ucp_cancel_checkout_with_http_info(session_id, opts = {})
|
|
40
|
+
|
|
41
|
+
if @api_client.config.debugging
|
|
42
|
+
begin
|
|
43
|
+
raise
|
|
44
|
+
@api_client.config.logger.debug 'Calling API: UCPCheckoutApi.ucp_cancel_checkout ...'
|
|
45
|
+
rescue
|
|
46
|
+
puts 'Cannot write to log'
|
|
47
|
+
end
|
|
48
|
+
end
|
|
49
|
+
# verify the required parameter 'session_id' is set
|
|
50
|
+
if @api_client.config.client_side_validation && session_id.nil?
|
|
51
|
+
fail ArgumentError, "Missing the required parameter 'session_id' when calling UCPCheckoutApi.ucp_cancel_checkout"
|
|
52
|
+
end
|
|
53
|
+
# resource path
|
|
54
|
+
local_var_path = 'icc/v1/checkout-sessions/{session_id}/cancel'.sub('{' + 'session_id' + '}', session_id.to_s)
|
|
55
|
+
|
|
56
|
+
# query parameters
|
|
57
|
+
query_params = {}
|
|
58
|
+
|
|
59
|
+
# header parameters
|
|
60
|
+
header_params = {}
|
|
61
|
+
# HTTP header 'Accept' (if needed)
|
|
62
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/hal+json;charset=utf-8'])
|
|
63
|
+
# HTTP header 'Content-Type'
|
|
64
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json;charset=utf-8'])
|
|
65
|
+
|
|
66
|
+
# form parameters
|
|
67
|
+
form_params = {}
|
|
68
|
+
|
|
69
|
+
# http body (model)
|
|
70
|
+
if 'POST' == 'POST'
|
|
71
|
+
post_body = '{}'
|
|
72
|
+
else
|
|
73
|
+
post_body = nil
|
|
74
|
+
end
|
|
75
|
+
inbound_mle_status = "mandatory"
|
|
76
|
+
if MLEUtility.check_is_mle_for_API(@api_client.merchantconfig, inbound_mle_status, ["ucp_cancel_checkout","ucp_cancel_checkout_with_http_info"])
|
|
77
|
+
begin
|
|
78
|
+
post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body)
|
|
79
|
+
rescue
|
|
80
|
+
raise
|
|
81
|
+
end
|
|
82
|
+
end
|
|
83
|
+
|
|
84
|
+
is_response_mle_for_api = MLEUtility.check_is_response_mle_for_api(@api_client.merchantconfig, ["ucp_cancel_checkout","ucp_cancel_checkout_with_http_info"])
|
|
85
|
+
|
|
86
|
+
auth_names = []
|
|
87
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
|
88
|
+
:header_params => header_params,
|
|
89
|
+
:query_params => query_params,
|
|
90
|
+
:form_params => form_params,
|
|
91
|
+
:body => post_body,
|
|
92
|
+
:auth_names => auth_names,
|
|
93
|
+
:return_type => 'InlineResponse20113',
|
|
94
|
+
:isResponseMLEForApi => is_response_mle_for_api)
|
|
95
|
+
if @api_client.config.debugging
|
|
96
|
+
begin
|
|
97
|
+
raise
|
|
98
|
+
@api_client.config.logger.debug "API called: UCPCheckoutApi#ucp_cancel_checkout\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
99
|
+
rescue
|
|
100
|
+
puts 'Cannot write to log'
|
|
101
|
+
end
|
|
102
|
+
end
|
|
103
|
+
return data, status_code, headers
|
|
104
|
+
end
|
|
105
|
+
# Complete Checkout UCP
|
|
106
|
+
# **Final step of the UCP checkout flow.** Finalizes the session and places the order with the merchant. ACG translates the UCP completion request to the merchant's checkout API. On success, the session transitions to `completed`. An `order_id` is not returned in the UCP response — use the ACP Complete endpoint if you need order confirmation details. **Always use an `idempotency-key`** to prevent duplicate orders on network retries.
|
|
107
|
+
#
|
|
108
|
+
# @param session_id The unique identifier of the UCP checkout session to complete.
|
|
109
|
+
# @param [Hash] opts the optional parameters
|
|
110
|
+
# @option opts [String] :idempotency_key **Strongly recommended.** A unique key that ensures this order is placed exactly once on retries. Lowercase per UCP spec.
|
|
111
|
+
# @option opts [UcpCompleteCheckoutRequest] :ucp_complete_checkout_request UCP completion payload containing payment instrument and optional risk signals. If payment context was already provided in the Create or Update call, the body can be omitted. Risk signals are logged for fraud analysis and are not forwarded to the merchant.
|
|
112
|
+
# @return [InlineResponse20113]
|
|
113
|
+
#
|
|
114
|
+
def ucp_complete_checkout(session_id, opts = {})
|
|
115
|
+
data, status_code, headers = ucp_complete_checkout_with_http_info(session_id, opts)
|
|
116
|
+
return data, status_code, headers
|
|
117
|
+
end
|
|
118
|
+
|
|
119
|
+
# Complete Checkout UCP
|
|
120
|
+
# **Final step of the UCP checkout flow.** Finalizes the session and places the order with the merchant. ACG translates the UCP completion request to the merchant's checkout API. On success, the session transitions to `completed`. An `order_id` is not returned in the UCP response — use the ACP Complete endpoint if you need order confirmation details. **Always use an `idempotency-key`** to prevent duplicate orders on network retries.
|
|
121
|
+
# @param session_id The unique identifier of the UCP checkout session to complete.
|
|
122
|
+
# @param [Hash] opts the optional parameters
|
|
123
|
+
# @option opts [String] :idempotency_key **Strongly recommended.** A unique key that ensures this order is placed exactly once on retries. Lowercase per UCP spec.
|
|
124
|
+
# @option opts [UcpCompleteCheckoutRequest] :ucp_complete_checkout_request UCP completion payload containing payment instrument and optional risk signals. If payment context was already provided in the Create or Update call, the body can be omitted. Risk signals are logged for fraud analysis and are not forwarded to the merchant.
|
|
125
|
+
# @return [Array<(InlineResponse20113, Fixnum, Hash)>] InlineResponse20113 data, response status code and response headers
|
|
126
|
+
def ucp_complete_checkout_with_http_info(session_id, opts = {})
|
|
127
|
+
|
|
128
|
+
if @api_client.config.debugging
|
|
129
|
+
begin
|
|
130
|
+
raise
|
|
131
|
+
@api_client.config.logger.debug 'Calling API: UCPCheckoutApi.ucp_complete_checkout ...'
|
|
132
|
+
rescue
|
|
133
|
+
puts 'Cannot write to log'
|
|
134
|
+
end
|
|
135
|
+
end
|
|
136
|
+
# verify the required parameter 'session_id' is set
|
|
137
|
+
if @api_client.config.client_side_validation && session_id.nil?
|
|
138
|
+
fail ArgumentError, "Missing the required parameter 'session_id' when calling UCPCheckoutApi.ucp_complete_checkout"
|
|
139
|
+
end
|
|
140
|
+
# resource path
|
|
141
|
+
local_var_path = 'icc/v1/checkout-sessions/{session_id}/complete'.sub('{' + 'session_id' + '}', session_id.to_s)
|
|
142
|
+
|
|
143
|
+
# query parameters
|
|
144
|
+
query_params = {}
|
|
145
|
+
|
|
146
|
+
# header parameters
|
|
147
|
+
header_params = {}
|
|
148
|
+
# HTTP header 'Accept' (if needed)
|
|
149
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/hal+json;charset=utf-8'])
|
|
150
|
+
# HTTP header 'Content-Type'
|
|
151
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json;charset=utf-8'])
|
|
152
|
+
header_params[:'idempotency-key'] = opts[:'idempotency_key'] if !opts[:'idempotency_key'].nil?
|
|
153
|
+
|
|
154
|
+
# form parameters
|
|
155
|
+
form_params = {}
|
|
156
|
+
|
|
157
|
+
# http body (model)
|
|
158
|
+
post_body = @api_client.object_to_http_body(opts[:'ucp_complete_checkout_request'])
|
|
159
|
+
sdk_tracker = SdkTracker.new
|
|
160
|
+
post_body = sdk_tracker.insert_developer_id_tracker(post_body, 'UcpCompleteCheckoutRequest', @api_client.config.host, @api_client.merchantconfig.defaultDeveloperId)
|
|
161
|
+
inbound_mle_status = "mandatory"
|
|
162
|
+
if MLEUtility.check_is_mle_for_API(@api_client.merchantconfig, inbound_mle_status, ["ucp_complete_checkout","ucp_complete_checkout_with_http_info"])
|
|
163
|
+
begin
|
|
164
|
+
post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body)
|
|
165
|
+
rescue
|
|
166
|
+
raise
|
|
167
|
+
end
|
|
168
|
+
end
|
|
169
|
+
|
|
170
|
+
is_response_mle_for_api = MLEUtility.check_is_response_mle_for_api(@api_client.merchantconfig, ["ucp_complete_checkout","ucp_complete_checkout_with_http_info"])
|
|
171
|
+
|
|
172
|
+
auth_names = []
|
|
173
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
|
174
|
+
:header_params => header_params,
|
|
175
|
+
:query_params => query_params,
|
|
176
|
+
:form_params => form_params,
|
|
177
|
+
:body => post_body,
|
|
178
|
+
:auth_names => auth_names,
|
|
179
|
+
:return_type => 'InlineResponse20113',
|
|
180
|
+
:isResponseMLEForApi => is_response_mle_for_api)
|
|
181
|
+
if @api_client.config.debugging
|
|
182
|
+
begin
|
|
183
|
+
raise
|
|
184
|
+
@api_client.config.logger.debug "API called: UCPCheckoutApi#ucp_complete_checkout\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
185
|
+
rescue
|
|
186
|
+
puts 'Cannot write to log'
|
|
187
|
+
end
|
|
188
|
+
end
|
|
189
|
+
return data, status_code, headers
|
|
190
|
+
end
|
|
191
|
+
# Create Checkout Session UCP
|
|
192
|
+
# **Step 1 of the UCP checkout flow.** Creates a new UCP checkout session using Google's Universal Commerce Protocol format. ACG translates the UCP request into the internal ACP format, applies merchant pricing, and returns a UCP-format session response with a session `id`. UCP uses `line_items` (instead of `items`) and lowercase header names (`idempotency-key`) per the UCP specification. **Store the `id`** from the response — it is required for all subsequent UCP calls.
|
|
193
|
+
#
|
|
194
|
+
# @param ucp_create_checkout_session_request UCP checkout session creation payload containing line items, buyer details, currency, and optional payment, fulfillment, and discount information.
|
|
195
|
+
# @param [Hash] opts the optional parameters
|
|
196
|
+
# @option opts [String] :idempotency_key Client-generated unique key (UUID recommended) to ensure this request is processed exactly once. Lowercase per UCP specification.
|
|
197
|
+
# @return [InlineResponse20113]
|
|
198
|
+
#
|
|
199
|
+
def ucp_create_checkout_session(ucp_create_checkout_session_request, opts = {})
|
|
200
|
+
data, status_code, headers = ucp_create_checkout_session_with_http_info(ucp_create_checkout_session_request, opts)
|
|
201
|
+
return data, status_code, headers
|
|
202
|
+
end
|
|
203
|
+
|
|
204
|
+
# Create Checkout Session UCP
|
|
205
|
+
# **Step 1 of the UCP checkout flow.** Creates a new UCP checkout session using Google's Universal Commerce Protocol format. ACG translates the UCP request into the internal ACP format, applies merchant pricing, and returns a UCP-format session response with a session `id`. UCP uses `line_items` (instead of `items`) and lowercase header names (`idempotency-key`) per the UCP specification. **Store the `id`** from the response — it is required for all subsequent UCP calls.
|
|
206
|
+
# @param ucp_create_checkout_session_request UCP checkout session creation payload containing line items, buyer details, currency, and optional payment, fulfillment, and discount information.
|
|
207
|
+
# @param [Hash] opts the optional parameters
|
|
208
|
+
# @option opts [String] :idempotency_key Client-generated unique key (UUID recommended) to ensure this request is processed exactly once. Lowercase per UCP specification.
|
|
209
|
+
# @return [Array<(InlineResponse20113, Fixnum, Hash)>] InlineResponse20113 data, response status code and response headers
|
|
210
|
+
def ucp_create_checkout_session_with_http_info(ucp_create_checkout_session_request, opts = {})
|
|
211
|
+
|
|
212
|
+
if @api_client.config.debugging
|
|
213
|
+
begin
|
|
214
|
+
raise
|
|
215
|
+
@api_client.config.logger.debug 'Calling API: UCPCheckoutApi.ucp_create_checkout_session ...'
|
|
216
|
+
rescue
|
|
217
|
+
puts 'Cannot write to log'
|
|
218
|
+
end
|
|
219
|
+
end
|
|
220
|
+
# verify the required parameter 'ucp_create_checkout_session_request' is set
|
|
221
|
+
if @api_client.config.client_side_validation && ucp_create_checkout_session_request.nil?
|
|
222
|
+
fail ArgumentError, "Missing the required parameter 'ucp_create_checkout_session_request' when calling UCPCheckoutApi.ucp_create_checkout_session"
|
|
223
|
+
end
|
|
224
|
+
# resource path
|
|
225
|
+
local_var_path = 'icc/v1/checkout-sessions'
|
|
226
|
+
|
|
227
|
+
# query parameters
|
|
228
|
+
query_params = {}
|
|
229
|
+
|
|
230
|
+
# header parameters
|
|
231
|
+
header_params = {}
|
|
232
|
+
# HTTP header 'Accept' (if needed)
|
|
233
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/hal+json;charset=utf-8'])
|
|
234
|
+
# HTTP header 'Content-Type'
|
|
235
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json;charset=utf-8'])
|
|
236
|
+
header_params[:'idempotency-key'] = opts[:'idempotency_key'] if !opts[:'idempotency_key'].nil?
|
|
237
|
+
|
|
238
|
+
# form parameters
|
|
239
|
+
form_params = {}
|
|
240
|
+
|
|
241
|
+
# http body (model)
|
|
242
|
+
post_body = @api_client.object_to_http_body(ucp_create_checkout_session_request)
|
|
243
|
+
sdk_tracker = SdkTracker.new
|
|
244
|
+
post_body = sdk_tracker.insert_developer_id_tracker(post_body, 'UcpCreateCheckoutSessionRequest', @api_client.config.host, @api_client.merchantconfig.defaultDeveloperId)
|
|
245
|
+
inbound_mle_status = "mandatory"
|
|
246
|
+
if MLEUtility.check_is_mle_for_API(@api_client.merchantconfig, inbound_mle_status, ["ucp_create_checkout_session","ucp_create_checkout_session_with_http_info"])
|
|
247
|
+
begin
|
|
248
|
+
post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body)
|
|
249
|
+
rescue
|
|
250
|
+
raise
|
|
251
|
+
end
|
|
252
|
+
end
|
|
253
|
+
|
|
254
|
+
is_response_mle_for_api = MLEUtility.check_is_response_mle_for_api(@api_client.merchantconfig, ["ucp_create_checkout_session","ucp_create_checkout_session_with_http_info"])
|
|
255
|
+
|
|
256
|
+
auth_names = []
|
|
257
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
|
258
|
+
:header_params => header_params,
|
|
259
|
+
:query_params => query_params,
|
|
260
|
+
:form_params => form_params,
|
|
261
|
+
:body => post_body,
|
|
262
|
+
:auth_names => auth_names,
|
|
263
|
+
:return_type => 'InlineResponse20113',
|
|
264
|
+
:isResponseMLEForApi => is_response_mle_for_api)
|
|
265
|
+
if @api_client.config.debugging
|
|
266
|
+
begin
|
|
267
|
+
raise
|
|
268
|
+
@api_client.config.logger.debug "API called: UCPCheckoutApi#ucp_create_checkout_session\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
269
|
+
rescue
|
|
270
|
+
puts 'Cannot write to log'
|
|
271
|
+
end
|
|
272
|
+
end
|
|
273
|
+
return data, status_code, headers
|
|
274
|
+
end
|
|
275
|
+
# Get Checkout Session UCP
|
|
276
|
+
# Retrieves the current state of a UCP checkout session. Use this to verify session status, retrieve updated totals after a fulfillment change, or resume a session after an interruption.
|
|
277
|
+
#
|
|
278
|
+
# @param session_id The unique identifier of the UCP checkout session to retrieve. Obtained from the `id` field in the Create Session response.
|
|
279
|
+
# @param ucp_get_checkout_session_request Empty request body.
|
|
280
|
+
# @param [Hash] opts the optional parameters
|
|
281
|
+
# @return [InlineResponse20113]
|
|
282
|
+
#
|
|
283
|
+
def ucp_get_checkout_session(session_id, ucp_get_checkout_session_request, opts = {})
|
|
284
|
+
data, status_code, headers = ucp_get_checkout_session_with_http_info(session_id, ucp_get_checkout_session_request, opts)
|
|
285
|
+
return data, status_code, headers
|
|
286
|
+
end
|
|
287
|
+
|
|
288
|
+
# Get Checkout Session UCP
|
|
289
|
+
# Retrieves the current state of a UCP checkout session. Use this to verify session status, retrieve updated totals after a fulfillment change, or resume a session after an interruption.
|
|
290
|
+
# @param session_id The unique identifier of the UCP checkout session to retrieve. Obtained from the `id` field in the Create Session response.
|
|
291
|
+
# @param ucp_get_checkout_session_request Empty request body.
|
|
292
|
+
# @param [Hash] opts the optional parameters
|
|
293
|
+
# @return [Array<(InlineResponse20113, Fixnum, Hash)>] InlineResponse20113 data, response status code and response headers
|
|
294
|
+
def ucp_get_checkout_session_with_http_info(session_id, ucp_get_checkout_session_request, opts = {})
|
|
295
|
+
|
|
296
|
+
if @api_client.config.debugging
|
|
297
|
+
begin
|
|
298
|
+
raise
|
|
299
|
+
@api_client.config.logger.debug 'Calling API: UCPCheckoutApi.ucp_get_checkout_session ...'
|
|
300
|
+
rescue
|
|
301
|
+
puts 'Cannot write to log'
|
|
302
|
+
end
|
|
303
|
+
end
|
|
304
|
+
# verify the required parameter 'session_id' is set
|
|
305
|
+
if @api_client.config.client_side_validation && session_id.nil?
|
|
306
|
+
fail ArgumentError, "Missing the required parameter 'session_id' when calling UCPCheckoutApi.ucp_get_checkout_session"
|
|
307
|
+
end
|
|
308
|
+
# verify the required parameter 'ucp_get_checkout_session_request' is set
|
|
309
|
+
if @api_client.config.client_side_validation && ucp_get_checkout_session_request.nil?
|
|
310
|
+
fail ArgumentError, "Missing the required parameter 'ucp_get_checkout_session_request' when calling UCPCheckoutApi.ucp_get_checkout_session"
|
|
311
|
+
end
|
|
312
|
+
# resource path
|
|
313
|
+
local_var_path = 'icc/v1/checkout-sessions/{session_id}'.sub('{' + 'session_id' + '}', session_id.to_s)
|
|
314
|
+
|
|
315
|
+
# query parameters
|
|
316
|
+
query_params = {}
|
|
317
|
+
|
|
318
|
+
# header parameters
|
|
319
|
+
header_params = {}
|
|
320
|
+
# HTTP header 'Accept' (if needed)
|
|
321
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/hal+json;charset=utf-8'])
|
|
322
|
+
# HTTP header 'Content-Type'
|
|
323
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json;charset=utf-8'])
|
|
324
|
+
|
|
325
|
+
# form parameters
|
|
326
|
+
form_params = {}
|
|
327
|
+
|
|
328
|
+
# http body (model)
|
|
329
|
+
post_body = @api_client.object_to_http_body(ucp_get_checkout_session_request)
|
|
330
|
+
sdk_tracker = SdkTracker.new
|
|
331
|
+
post_body = sdk_tracker.insert_developer_id_tracker(post_body, 'Object', @api_client.config.host, @api_client.merchantconfig.defaultDeveloperId)
|
|
332
|
+
inbound_mle_status = "false"
|
|
333
|
+
if MLEUtility.check_is_mle_for_API(@api_client.merchantconfig, inbound_mle_status, ["ucp_get_checkout_session","ucp_get_checkout_session_with_http_info"])
|
|
334
|
+
begin
|
|
335
|
+
post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body)
|
|
336
|
+
rescue
|
|
337
|
+
raise
|
|
338
|
+
end
|
|
339
|
+
end
|
|
340
|
+
|
|
341
|
+
is_response_mle_for_api = MLEUtility.check_is_response_mle_for_api(@api_client.merchantconfig, ["ucp_get_checkout_session","ucp_get_checkout_session_with_http_info"])
|
|
342
|
+
|
|
343
|
+
auth_names = []
|
|
344
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
|
345
|
+
:header_params => header_params,
|
|
346
|
+
:query_params => query_params,
|
|
347
|
+
:form_params => form_params,
|
|
348
|
+
:body => post_body,
|
|
349
|
+
:auth_names => auth_names,
|
|
350
|
+
:return_type => 'InlineResponse20113',
|
|
351
|
+
:isResponseMLEForApi => is_response_mle_for_api)
|
|
352
|
+
if @api_client.config.debugging
|
|
353
|
+
begin
|
|
354
|
+
raise
|
|
355
|
+
@api_client.config.logger.debug "API called: UCPCheckoutApi#ucp_get_checkout_session\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
356
|
+
rescue
|
|
357
|
+
puts 'Cannot write to log'
|
|
358
|
+
end
|
|
359
|
+
end
|
|
360
|
+
return data, status_code, headers
|
|
361
|
+
end
|
|
362
|
+
# Update Checkout Session UCP
|
|
363
|
+
# Modifies an active UCP checkout session and returns the updated session state. Use this to change line item quantities, update fulfillment address or method, or apply discount codes. Totals are recalculated and returned in the response. Only the fields you include in the request body are updated.
|
|
364
|
+
#
|
|
365
|
+
# @param session_id The unique identifier of the UCP checkout session to update.
|
|
366
|
+
# @param ucp_update_checkout_session_request UCP session update payload. All fields are optional — only fields you include will be applied.
|
|
367
|
+
# @param [Hash] opts the optional parameters
|
|
368
|
+
# @option opts [String] :idempotency_key Client-generated unique key for idempotency. Lowercase per UCP spec.
|
|
369
|
+
# @return [InlineResponse20113]
|
|
370
|
+
#
|
|
371
|
+
def ucp_update_checkout_session(session_id, ucp_update_checkout_session_request, opts = {})
|
|
372
|
+
data, status_code, headers = ucp_update_checkout_session_with_http_info(session_id, ucp_update_checkout_session_request, opts)
|
|
373
|
+
return data, status_code, headers
|
|
374
|
+
end
|
|
375
|
+
|
|
376
|
+
# Update Checkout Session UCP
|
|
377
|
+
# Modifies an active UCP checkout session and returns the updated session state. Use this to change line item quantities, update fulfillment address or method, or apply discount codes. Totals are recalculated and returned in the response. Only the fields you include in the request body are updated.
|
|
378
|
+
# @param session_id The unique identifier of the UCP checkout session to update.
|
|
379
|
+
# @param ucp_update_checkout_session_request UCP session update payload. All fields are optional — only fields you include will be applied.
|
|
380
|
+
# @param [Hash] opts the optional parameters
|
|
381
|
+
# @option opts [String] :idempotency_key Client-generated unique key for idempotency. Lowercase per UCP spec.
|
|
382
|
+
# @return [Array<(InlineResponse20113, Fixnum, Hash)>] InlineResponse20113 data, response status code and response headers
|
|
383
|
+
def ucp_update_checkout_session_with_http_info(session_id, ucp_update_checkout_session_request, opts = {})
|
|
384
|
+
|
|
385
|
+
if @api_client.config.debugging
|
|
386
|
+
begin
|
|
387
|
+
raise
|
|
388
|
+
@api_client.config.logger.debug 'Calling API: UCPCheckoutApi.ucp_update_checkout_session ...'
|
|
389
|
+
rescue
|
|
390
|
+
puts 'Cannot write to log'
|
|
391
|
+
end
|
|
392
|
+
end
|
|
393
|
+
# verify the required parameter 'session_id' is set
|
|
394
|
+
if @api_client.config.client_side_validation && session_id.nil?
|
|
395
|
+
fail ArgumentError, "Missing the required parameter 'session_id' when calling UCPCheckoutApi.ucp_update_checkout_session"
|
|
396
|
+
end
|
|
397
|
+
# verify the required parameter 'ucp_update_checkout_session_request' is set
|
|
398
|
+
if @api_client.config.client_side_validation && ucp_update_checkout_session_request.nil?
|
|
399
|
+
fail ArgumentError, "Missing the required parameter 'ucp_update_checkout_session_request' when calling UCPCheckoutApi.ucp_update_checkout_session"
|
|
400
|
+
end
|
|
401
|
+
# resource path
|
|
402
|
+
local_var_path = 'icc/v1/checkout-sessions/{session_id}'.sub('{' + 'session_id' + '}', session_id.to_s)
|
|
403
|
+
|
|
404
|
+
# query parameters
|
|
405
|
+
query_params = {}
|
|
406
|
+
|
|
407
|
+
# header parameters
|
|
408
|
+
header_params = {}
|
|
409
|
+
# HTTP header 'Accept' (if needed)
|
|
410
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/hal+json;charset=utf-8'])
|
|
411
|
+
# HTTP header 'Content-Type'
|
|
412
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json;charset=utf-8'])
|
|
413
|
+
header_params[:'idempotency-key'] = opts[:'idempotency_key'] if !opts[:'idempotency_key'].nil?
|
|
414
|
+
|
|
415
|
+
# form parameters
|
|
416
|
+
form_params = {}
|
|
417
|
+
|
|
418
|
+
# http body (model)
|
|
419
|
+
post_body = @api_client.object_to_http_body(ucp_update_checkout_session_request)
|
|
420
|
+
sdk_tracker = SdkTracker.new
|
|
421
|
+
post_body = sdk_tracker.insert_developer_id_tracker(post_body, 'UcpUpdateCheckoutSessionRequest', @api_client.config.host, @api_client.merchantconfig.defaultDeveloperId)
|
|
422
|
+
inbound_mle_status = "mandatory"
|
|
423
|
+
if MLEUtility.check_is_mle_for_API(@api_client.merchantconfig, inbound_mle_status, ["ucp_update_checkout_session","ucp_update_checkout_session_with_http_info"])
|
|
424
|
+
begin
|
|
425
|
+
post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body)
|
|
426
|
+
rescue
|
|
427
|
+
raise
|
|
428
|
+
end
|
|
429
|
+
end
|
|
430
|
+
|
|
431
|
+
is_response_mle_for_api = MLEUtility.check_is_response_mle_for_api(@api_client.merchantconfig, ["ucp_update_checkout_session","ucp_update_checkout_session_with_http_info"])
|
|
432
|
+
|
|
433
|
+
auth_names = []
|
|
434
|
+
data, status_code, headers = @api_client.call_api(:PUT, local_var_path,
|
|
435
|
+
:header_params => header_params,
|
|
436
|
+
:query_params => query_params,
|
|
437
|
+
:form_params => form_params,
|
|
438
|
+
:body => post_body,
|
|
439
|
+
:auth_names => auth_names,
|
|
440
|
+
:return_type => 'InlineResponse20113',
|
|
441
|
+
:isResponseMLEForApi => is_response_mle_for_api)
|
|
442
|
+
if @api_client.config.debugging
|
|
443
|
+
begin
|
|
444
|
+
raise
|
|
445
|
+
@api_client.config.logger.debug "API called: UCPCheckoutApi#ucp_update_checkout_session\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
446
|
+
rescue
|
|
447
|
+
puts 'Cannot write to log'
|
|
448
|
+
end
|
|
449
|
+
end
|
|
450
|
+
return data, status_code, headers
|
|
451
|
+
end
|
|
452
|
+
end
|
|
453
|
+
end
|
|
@@ -0,0 +1,104 @@
|
|
|
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 'uri'
|
|
13
|
+
require 'AuthenticationSDK/util/MLEUtility'
|
|
14
|
+
module CyberSource
|
|
15
|
+
class VisaProtectRiskInsightsApi
|
|
16
|
+
attr_accessor :api_client
|
|
17
|
+
|
|
18
|
+
def initialize(api_client = ApiClient.default, config)
|
|
19
|
+
@api_client = api_client
|
|
20
|
+
@api_client.set_configuration(config)
|
|
21
|
+
end
|
|
22
|
+
# Visa Protect Risk Insights
|
|
23
|
+
# VPRI delivers real-time, AI-driven risk scores and insights via a data-only API to enrich existing fraud strategies and improve decisioning. It integrates easily into existing workflows and provides immediate value by identifying legitimate behavior across Visa's global network—helping reduce false declines and increase acceptance.
|
|
24
|
+
#
|
|
25
|
+
# @param vpri_request VPRI request for Transaction Risk Scoring or Transaction Risk Labeling
|
|
26
|
+
# @param [Hash] opts the optional parameters
|
|
27
|
+
# @return [UnifiedRiskPost201Response]
|
|
28
|
+
#
|
|
29
|
+
def submit_vpri(vpri_request, opts = {})
|
|
30
|
+
data, status_code, headers = submit_vpri_with_http_info(vpri_request, opts)
|
|
31
|
+
return data, status_code, headers
|
|
32
|
+
end
|
|
33
|
+
|
|
34
|
+
# Visa Protect Risk Insights
|
|
35
|
+
# VPRI delivers real-time, AI-driven risk scores and insights via a data-only API to enrich existing fraud strategies and improve decisioning. It integrates easily into existing workflows and provides immediate value by identifying legitimate behavior across Visa's global network—helping reduce false declines and increase acceptance.
|
|
36
|
+
# @param vpri_request VPRI request for Transaction Risk Scoring or Transaction Risk Labeling
|
|
37
|
+
# @param [Hash] opts the optional parameters
|
|
38
|
+
# @return [Array<(UnifiedRiskPost201Response, Fixnum, Hash)>] UnifiedRiskPost201Response data, response status code and response headers
|
|
39
|
+
def submit_vpri_with_http_info(vpri_request, opts = {})
|
|
40
|
+
|
|
41
|
+
if @api_client.config.debugging
|
|
42
|
+
begin
|
|
43
|
+
raise
|
|
44
|
+
@api_client.config.logger.debug 'Calling API: VisaProtectRiskInsightsApi.submit_vpri ...'
|
|
45
|
+
rescue
|
|
46
|
+
puts 'Cannot write to log'
|
|
47
|
+
end
|
|
48
|
+
end
|
|
49
|
+
# verify the required parameter 'vpri_request' is set
|
|
50
|
+
if @api_client.config.client_side_validation && vpri_request.nil?
|
|
51
|
+
fail ArgumentError, "Missing the required parameter 'vpri_request' when calling VisaProtectRiskInsightsApi.submit_vpri"
|
|
52
|
+
end
|
|
53
|
+
# resource path
|
|
54
|
+
local_var_path = 'unifiedrisk'
|
|
55
|
+
|
|
56
|
+
# query parameters
|
|
57
|
+
query_params = {}
|
|
58
|
+
|
|
59
|
+
# header parameters
|
|
60
|
+
header_params = {}
|
|
61
|
+
# HTTP header 'Accept' (if needed)
|
|
62
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
63
|
+
# HTTP header 'Content-Type'
|
|
64
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
|
65
|
+
|
|
66
|
+
# form parameters
|
|
67
|
+
form_params = {}
|
|
68
|
+
|
|
69
|
+
# http body (model)
|
|
70
|
+
post_body = @api_client.object_to_http_body(vpri_request)
|
|
71
|
+
sdk_tracker = SdkTracker.new
|
|
72
|
+
post_body = sdk_tracker.insert_developer_id_tracker(post_body, 'VpriRequest', @api_client.config.host, @api_client.merchantconfig.defaultDeveloperId)
|
|
73
|
+
inbound_mle_status = "mandatory"
|
|
74
|
+
if MLEUtility.check_is_mle_for_API(@api_client.merchantconfig, inbound_mle_status, ["submit_vpri","submit_vpri_with_http_info"])
|
|
75
|
+
begin
|
|
76
|
+
post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body)
|
|
77
|
+
rescue
|
|
78
|
+
raise
|
|
79
|
+
end
|
|
80
|
+
end
|
|
81
|
+
|
|
82
|
+
is_response_mle_for_api = MLEUtility.check_is_response_mle_for_api(@api_client.merchantconfig, ["submit_vpri","submit_vpri_with_http_info"])
|
|
83
|
+
|
|
84
|
+
auth_names = []
|
|
85
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
|
86
|
+
:header_params => header_params,
|
|
87
|
+
:query_params => query_params,
|
|
88
|
+
:form_params => form_params,
|
|
89
|
+
:body => post_body,
|
|
90
|
+
:auth_names => auth_names,
|
|
91
|
+
:return_type => 'UnifiedRiskPost201Response',
|
|
92
|
+
:isResponseMLEForApi => is_response_mle_for_api)
|
|
93
|
+
if @api_client.config.debugging
|
|
94
|
+
begin
|
|
95
|
+
raise
|
|
96
|
+
@api_client.config.logger.debug "API called: VisaProtectRiskInsightsApi#submit_vpri\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
97
|
+
rescue
|
|
98
|
+
puts 'Cannot write to log'
|
|
99
|
+
end
|
|
100
|
+
end
|
|
101
|
+
return data, status_code, headers
|
|
102
|
+
end
|
|
103
|
+
end
|
|
104
|
+
end
|
|
@@ -32,7 +32,7 @@ module CyberSource
|
|
|
32
32
|
# JWE key wrap algorithm Possible values: - RSA-OAEP - RSA-OAEP-256 - RSA-OAEP-384 - RSA-OAEP-512
|
|
33
33
|
attr_accessor :algorithm
|
|
34
34
|
|
|
35
|
-
# JWE content encryption algorithm Possible values: - A256GCM - A128GCM - C20P -
|
|
35
|
+
# JWE content encryption algorithm Possible values: - A256GCM - A128GCM - C20P - A256CBC_HS512 - A128CBC_HS256 - A256CCM - A128CCM
|
|
36
36
|
attr_accessor :encryption_type
|
|
37
37
|
|
|
38
38
|
# Key expiration date in UTC
|
|
@@ -14,37 +14,37 @@ require 'date'
|
|
|
14
14
|
module CyberSource
|
|
15
15
|
# Response object for a single agent public key, including agent context.
|
|
16
16
|
class AddAgentKeyResponse201
|
|
17
|
-
# Unique key identifier
|
|
17
|
+
# Unique key identifier (UUID) generated by VARS on creation
|
|
18
18
|
attr_accessor :id
|
|
19
19
|
|
|
20
|
-
#
|
|
20
|
+
# Unique identifier of the agent this key belongs to (64-char SHA-256 hash)
|
|
21
21
|
attr_accessor :agent_id
|
|
22
22
|
|
|
23
|
-
#
|
|
23
|
+
# Display name of the agent this key belongs to
|
|
24
24
|
attr_accessor :agent_name
|
|
25
25
|
|
|
26
|
-
# Agent classification Possible values: - trusted - known
|
|
26
|
+
# Agent classification: 'trusted' (commercially onboarded via Visa) or 'known' (open-source/community agent, unverified) Possible values: - trusted - known
|
|
27
27
|
attr_accessor :agent_type
|
|
28
28
|
|
|
29
|
-
#
|
|
29
|
+
# Name for this key, unique within the agent
|
|
30
30
|
attr_accessor :key_name
|
|
31
31
|
|
|
32
|
-
# Base64-encoded public key
|
|
32
|
+
# Base64-encoded public key. Supported formats: PEM (PKCS#8, PKCS#1) and JWK
|
|
33
33
|
attr_accessor :public_key
|
|
34
34
|
|
|
35
|
-
#
|
|
35
|
+
# HTTP Signature signing algorithm (RFC 9421 §3.3). Must match the key type and curve. Possible values: - rsa-pss-sha256 - rsa-pss-sha512 - ecdsa-p256-sha256 - ecdsa-p384-sha384 - ed25519
|
|
36
36
|
attr_accessor :algorithm
|
|
37
37
|
|
|
38
|
-
#
|
|
38
|
+
# ISO 8601 UTC datetime when this key expires. Expired keys cannot be activated.
|
|
39
39
|
attr_accessor :expiration_date
|
|
40
40
|
|
|
41
|
-
#
|
|
41
|
+
# Current lifecycle status of the key: 'active' (in use), 'deactivated' (manually disabled), or 'expired' (past expiration date) Possible values: - active - deactivated - expired
|
|
42
42
|
attr_accessor :status
|
|
43
43
|
|
|
44
|
-
#
|
|
44
|
+
# ISO 8601 UTC timestamp when the key was created
|
|
45
45
|
attr_accessor :created_at
|
|
46
46
|
|
|
47
|
-
#
|
|
47
|
+
# ISO 8601 UTC timestamp when the key was last updated
|
|
48
48
|
attr_accessor :updated_at
|
|
49
49
|
|
|
50
50
|
# Attribute mapping from ruby-style variable name to JSON key.
|