cybersource_rest_client 0.0.83 → 0.0.85
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/authentication/jwt/JwtToken.rb +46 -27
- data/lib/AuthenticationSDK/core/MerchantConfig.rb +93 -58
- data/lib/AuthenticationSDK/logging/sensitive_logging.rb +265 -93
- data/lib/AuthenticationSDK/util/AuthJWEUtility.rb +53 -3
- data/lib/AuthenticationSDK/util/Cache.rb +20 -12
- data/lib/AuthenticationSDK/util/Constants.rb +92 -31
- data/lib/AuthenticationSDK/util/MLEUtility.rb +51 -2
- data/lib/cybersource_rest_client/api/{instructions_api.rb → agent_capabilities_api.rb} +116 -35
- data/lib/cybersource_rest_client/api/batches_api.rb +1 -1
- data/lib/cybersource_rest_client/api/billing_agreements_api.rb +6 -6
- data/lib/cybersource_rest_client/api/capture_api.rb +2 -2
- data/lib/cybersource_rest_client/api/create_new_webhooks_api.rb +14 -22
- data/lib/cybersource_rest_client/api/credentials_api.rb +104 -0
- data/lib/cybersource_rest_client/api/credit_api.rb +2 -2
- data/lib/cybersource_rest_client/api/customer_payment_instrument_api.rb +3 -3
- data/lib/cybersource_rest_client/api/instrument_identifier_api.rb +3 -3
- data/lib/cybersource_rest_client/api/invoice_settings_api.rb +2 -2
- data/lib/cybersource_rest_client/api/invoices_api.rb +6 -6
- data/lib/cybersource_rest_client/api/manage_webhooks_api.rb +20 -28
- data/lib/cybersource_rest_client/api/merchant_boarding_api.rb +2 -2
- data/lib/cybersource_rest_client/api/network_tokens_api.rb +654 -0
- data/lib/cybersource_rest_client/api/orders_api.rb +4 -4
- data/lib/cybersource_rest_client/api/payment_links_api.rb +4 -4
- data/lib/cybersource_rest_client/api/payment_tokens_api.rb +2 -2
- data/lib/cybersource_rest_client/api/payments_api.rb +21 -21
- data/lib/cybersource_rest_client/api/plans_api.rb +1 -1
- data/lib/cybersource_rest_client/api/refund_api.rb +4 -4
- data/lib/cybersource_rest_client/api/reversal_api.rb +4 -4
- data/lib/cybersource_rest_client/api/subscriptions_api.rb +183 -1
- data/lib/cybersource_rest_client/api/subscriptions_follow_ons_api.rb +1 -1
- data/lib/cybersource_rest_client/api/void_api.rb +10 -10
- data/lib/cybersource_rest_client/api_client.rb +35 -2
- data/lib/cybersource_rest_client/configuration.rb +2 -2
- data/lib/cybersource_rest_client/models/{commerce_solutions_products_account_updater_configuration_information_configurations.rb → account_updater_configurations.rb} +4 -4
- data/lib/cybersource_rest_client/models/{commerce_solutions_products_account_updater_configuration_information_configurations_amex.rb → account_updater_configurations_amex.rb} +1 -1
- data/lib/cybersource_rest_client/models/{commerce_solutions_products_account_updater_configuration_information_configurations_master_card.rb → account_updater_configurations_master_card.rb} +1 -1
- data/lib/cybersource_rest_client/models/{commerce_solutions_products_account_updater_configuration_information_configurations_visa.rb → account_updater_configurations_visa.rb} +1 -1
- data/lib/cybersource_rest_client/models/account_validations_request.rb +15 -5
- data/lib/cybersource_rest_client/models/{ptsv1pullfundstransfer_processing_information_funding_options.rb → aft_funding_options.rb} +2 -2
- data/lib/cybersource_rest_client/models/{ptsv1pullfundstransfer_processing_information_funding_options_initiator.rb → aft_funding_options_initiator.rb} +2 -2
- data/lib/cybersource_rest_client/models/{ptsv1pullfundstransfer_processing_info_funding_options_initiator_origin_ini_transaction.rb → aft_funding_options_initiator_originator_initiated_transaction.rb} +1 -1
- data/lib/cybersource_rest_client/models/agentic_cancel_purchase_intent_request.rb +3 -3
- data/lib/cybersource_rest_client/models/agentic_card_enrollment_request.rb +8 -8
- data/lib/cybersource_rest_client/models/agentic_confirm_transaction_events_request.rb +2 -2
- data/lib/cybersource_rest_client/models/agentic_create_purchase_intent_request.rb +5 -5
- data/lib/cybersource_rest_client/models/agentic_retrieve_payment_credentials_request.rb +2 -2
- data/lib/cybersource_rest_client/models/agentic_retrieve_payment_credentials_response200.rb +1 -1
- data/lib/cybersource_rest_client/models/agentic_update_purchase_intent_request.rb +5 -5
- data/lib/cybersource_rest_client/models/{payments_products_alternative_payment_methods_configuration_information_configurations_processors.rb → alternative_payments_processor_configuration.rb} +1 -1
- data/lib/cybersource_rest_client/models/auth_reversal_request.rb +11 -1
- data/lib/cybersource_rest_client/models/bavsv1accountvalidations_payment_information.rb +32 -6
- data/lib/cybersource_rest_client/models/bavsv1accountvalidations_payment_information_bank.rb +1 -1
- data/lib/cybersource_rest_client/models/bavsv1accountvalidations_payment_information_bank_account.rb +1 -1
- data/lib/cybersource_rest_client/models/bavsv1accountvalidations_payment_information_customer.rb +196 -0
- data/lib/cybersource_rest_client/models/bavsv1accountvalidations_payment_information_instrument_identifier.rb +196 -0
- data/lib/cybersource_rest_client/models/bavsv1accountvalidations_payment_information_payment_instrument.rb +196 -0
- data/lib/cybersource_rest_client/models/bavsv1accountvalidations_token_information.rb +208 -0
- data/lib/cybersource_rest_client/models/bin_lookup403_response.rb +223 -0
- data/lib/cybersource_rest_client/models/bin_lookupv400_response.rb +235 -0
- data/lib/cybersource_rest_client/models/{card_processing_config_common_acquirer_agreement_acquirer_code.rb → boarding_acquirer_details.rb} +2 -2
- data/lib/cybersource_rest_client/models/{card_processing_config_common_acquirer_agreement_acquirer_code_payment_options.rb → boarding_acquirer_details_payment_options.rb} +1 -1
- data/lib/cybersource_rest_client/models/{boardingv1registrations_organization_information_business_information.rb → boarding_business_information.rb} +6 -6
- data/lib/cybersource_rest_client/models/{boardingv1registrations_organization_information_business_information_address.rb → boarding_business_information_address.rb} +1 -1
- data/lib/cybersource_rest_client/models/{boardingv1registrations_organization_information_business_information_business_contact.rb → boarding_business_information_business_contact.rb} +1 -1
- data/lib/cybersource_rest_client/models/{boardingv1registrations_organization_information_business_information_localized_names.rb → boarding_business_information_localized_names.rb} +1 -1
- data/lib/cybersource_rest_client/models/{payments_products_payouts_configuration_information_configurations.rb → boarding_payouts_configurations.rb} +2 -2
- data/lib/cybersource_rest_client/models/{payments_products_payouts_configuration_information_configurations_common.rb → boarding_payouts_configurations_common.rb} +2 -2
- data/lib/cybersource_rest_client/models/{payments_products_payouts_configuration_information_configurations_common_aggregator.rb → boarding_payouts_configurations_common_aggregator.rb} +1 -1
- data/lib/cybersource_rest_client/models/boardingv1registrations_organization_information.rb +1 -1
- data/lib/cybersource_rest_client/models/boardingv1registrations_organization_information_owners.rb +1 -1
- data/lib/cybersource_rest_client/models/card_processing_config_common_acquirer_agreement.rb +1 -1
- data/lib/cybersource_rest_client/models/card_processing_config_common_processors.rb +105 -1
- data/lib/cybersource_rest_client/models/commerce_solutions_products.rb +15 -5
- data/lib/cybersource_rest_client/models/commerce_solutions_products_account_updater_configuration_information.rb +1 -1
- data/lib/cybersource_rest_client/models/create_credit_request.rb +15 -5
- data/lib/cybersource_rest_client/models/create_subscription_response.rb +1 -1
- data/lib/cybersource_rest_client/models/{payment_instrument_list_1__embedded_payment_instruments.rb → default_payment_instrument.rb} +9 -9
- data/lib/cybersource_rest_client/models/{tmsv2tokenize_token_information_customer__embedded_default_payment_instrument__embedded.rb → default_payment_instrument__embedded.rb} +1 -1
- data/lib/cybersource_rest_client/models/{tmsv2tokenize_token_information_customer__embedded_default_payment_instrument__links.rb → default_payment_instrument__links.rb} +2 -2
- data/lib/cybersource_rest_client/models/{tmsv2tokenize_token_information_customer__embedded_default_payment_instrument__links_self.rb → default_payment_instrument__links_self.rb} +1 -1
- data/lib/cybersource_rest_client/models/{tmsv2tokenize_token_information_customer__embedded_default_payment_instrument_bank_account.rb → default_payment_instrument_bank_account.rb} +1 -1
- data/lib/cybersource_rest_client/models/{tmsv2tokenize_token_information_customer__embedded_default_payment_instrument_bill_to.rb → default_payment_instrument_bill_to.rb} +1 -1
- data/lib/cybersource_rest_client/models/{tmsv2tokenize_token_information_customer__embedded_default_payment_instrument_buyer_information.rb → default_payment_instrument_buyer_information.rb} +2 -2
- data/lib/cybersource_rest_client/models/{tmsv2tokenize_default_payment_instrument_buyer_info_issued_by.rb → default_payment_instrument_buyer_information_issued_by.rb} +1 -1
- data/lib/cybersource_rest_client/models/{tmsv2tokenize_default_payment_instrument_buyer_info_personal_identification.rb → default_payment_instrument_buyer_information_personal_identification.rb} +2 -2
- data/lib/cybersource_rest_client/models/{tmsv2tokenize_token_information_customer__embedded_default_payment_instrument_card.rb → default_payment_instrument_card.rb} +2 -2
- data/lib/cybersource_rest_client/models/{tmsv2tokenize_default_payment_instrument_card_tokenized_info.rb → default_payment_instrument_card_tokenized_information.rb} +1 -1
- data/lib/cybersource_rest_client/models/{tmsv2tokenize_default_payment_instrument_instrument_identifier.rb → default_payment_instrument_instrument_identifier.rb} +1 -1
- data/lib/cybersource_rest_client/models/{tmsv2tokenize_token_information_customer__embedded_default_payment_instrument_metadata.rb → default_payment_instrument_metadata.rb} +1 -1
- data/lib/cybersource_rest_client/models/{tmsv2tokenize_token_information_customer__embedded_default_shipping_address.rb → default_shipping_address.rb} +4 -4
- data/lib/cybersource_rest_client/models/{tmsv2tokenize_token_information_customer__embedded_default_shipping_address__links.rb → default_shipping_address__links.rb} +3 -3
- data/lib/cybersource_rest_client/models/{tmsv2tokenize_token_information_customer__embedded_default_shipping_address__links_customer.rb → default_shipping_address__links_customer.rb} +1 -1
- data/lib/cybersource_rest_client/models/{tmsv2tokenize_token_information_customer__embedded_default_shipping_address__links_self.rb → default_shipping_address__links_self.rb} +1 -1
- data/lib/cybersource_rest_client/models/{tmsv2tokenize_token_information_customer__embedded_default_shipping_address_metadata.rb → default_shipping_address_metadata.rb} +1 -1
- data/lib/cybersource_rest_client/models/{tmsv2tokenize_token_information_customer__embedded_default_shipping_address_ship_to.rb → default_shipping_address_ship_to.rb} +1 -1
- data/lib/cybersource_rest_client/models/{pts_v2_payments_post201_response_watchlist_screening_information_watch_list.rb → export_compliance_watch_list.rb} +2 -2
- data/lib/cybersource_rest_client/models/{pts_v2_payments_post201_response_watchlist_screening_information_watch_list_matches.rb → export_compliance_watch_list_matches.rb} +1 -1
- data/lib/cybersource_rest_client/models/{get_subscription_response_1_payment_instrument_buyer_information.rb → follow_on_transaction_buyer_information.rb} +2 -2
- data/lib/cybersource_rest_client/models/generate_unified_checkout_v1_capture_context_request.rb +2 -2
- data/lib/cybersource_rest_client/models/get_all_subscriptions_response_order_information_amount_details_surcharge.rb +22 -5
- data/lib/cybersource_rest_client/models/get_subscription_response_1_payment_instrument.rb +2 -2
- data/lib/cybersource_rest_client/models/get_subscription_response_1_shipping_address.rb +1 -1
- data/lib/cybersource_rest_client/models/get_subscriptions_payments_response.rb +247 -0
- data/lib/cybersource_rest_client/models/get_subscriptions_payments_response_1.rb +224 -0
- data/lib/cybersource_rest_client/models/{pbl_payment_links_post201_response__links.rb → get_subscriptions_payments_response_1__links.rb} +1 -1
- data/lib/cybersource_rest_client/models/get_subscriptions_payments_response__links.rb +209 -0
- data/lib/cybersource_rest_client/models/{payments_products_unified_checkout_configuration_information_configurations_features.rb → get_subscriptions_payments_response_cycles_completed_count.rb} +11 -9
- data/lib/cybersource_rest_client/models/get_subscriptions_payments_response_subscription_payment.rb +356 -0
- data/lib/cybersource_rest_client/models/{acpv1instructionsinstruction_idcredentials_order_information_amount_detail.rb → icc_amount_detail.rb} +2 -2
- data/lib/cybersource_rest_client/models/{acpv1instructionsinstruction_idcredentials_order_information_items.rb → icc_line_item.rb} +4 -4
- data/lib/cybersource_rest_client/models/{acpv1instructionsinstruction_idcredentials_order_information_items_additional_info.rb → icc_line_item_additional_info.rb} +1 -1
- data/lib/cybersource_rest_client/models/{acpv1instructionsinstruction_idcredentials_order_information_items_policies.rb → icc_line_item_policies.rb} +1 -1
- data/lib/cybersource_rest_client/models/{acpv1instructionsinstruction_idcredentials_merchant_information_merchant_descriptor.rb → icc_merchant_descriptor.rb} +1 -1
- data/lib/cybersource_rest_client/models/{acpv1instructionsinstruction_idconfirmations_processor_information_payment_instrument.rb → icc_payment_instrument.rb} +3 -3
- data/lib/cybersource_rest_client/models/{acpv1instructionsinstruction_idconf_processor_info_payment_instrument_verifi_results.rb → icc_payment_instrument_verification_results.rb} +1 -1
- data/lib/cybersource_rest_client/models/{acpv1instructionsinstruction_idconfirmations_order_information_shipping_details.rb → icc_shipping_details.rb} +1 -1
- data/lib/cybersource_rest_client/models/{agentic_retrieve_payment_credentials_response200_transaction_response_with_pending_events.rb → icc_transaction_response_pending_events.rb} +1 -1
- data/lib/cybersource_rest_client/models/{acpv1instructions_decline_threshold.rb → iccv1instructions_decline_threshold.rb} +2 -2
- data/lib/cybersource_rest_client/models/{acpv1instructions_mandates.rb → iccv1instructions_mandates.rb} +4 -4
- data/lib/cybersource_rest_client/models/{acpv1instructions_recurring_payment_information.rb → iccv1instructions_recurring_payment_information.rb} +2 -2
- data/lib/cybersource_rest_client/models/{acpv1instructionsinstruction_idconfirmations_confirmation_data.rb → iccv1instructionsinstruction_idconfirmations_confirmation_data.rb} +5 -5
- data/lib/cybersource_rest_client/models/{acpv1instructionsinstruction_idconfirmations_merchant_information.rb → iccv1instructionsinstruction_idconfirmations_merchant_information.rb} +1 -1
- data/lib/cybersource_rest_client/models/{acpv1instructionsinstruction_idconfirmations_order_information.rb → iccv1instructionsinstruction_idconfirmations_order_information.rb} +5 -5
- data/lib/cybersource_rest_client/models/{acpv1instructionsinstruction_idconfirmations_processor_information.rb → iccv1instructionsinstruction_idconfirmations_processor_information.rb} +4 -4
- data/lib/cybersource_rest_client/models/{acpv1instructionsinstruction_idcredentials_attachments.rb → iccv1instructionsinstruction_idcredentials_attachments.rb} +1 -1
- data/lib/cybersource_rest_client/models/{acpv1instructionsinstruction_idcredentials_client_reference_information.rb → iccv1instructionsinstruction_idcredentials_client_reference_information.rb} +1 -1
- data/lib/cybersource_rest_client/models/{acpv1instructionsinstruction_idcredentials_mandate_reference_data.rb → iccv1instructionsinstruction_idcredentials_mandate_reference_data.rb} +1 -1
- data/lib/cybersource_rest_client/models/{acpv1instructionsinstruction_idcredentials_merchant_information.rb → iccv1instructionsinstruction_idcredentials_merchant_information.rb} +2 -2
- data/lib/cybersource_rest_client/models/{acpv1instructionsinstruction_idcredentials_order_information.rb → iccv1instructionsinstruction_idcredentials_order_information.rb} +4 -4
- data/lib/cybersource_rest_client/models/{acpv1instructionsinstruction_idcredentials_order_information_line_items.rb → iccv1instructionsinstruction_idcredentials_order_information_line_items.rb} +2 -2
- data/lib/cybersource_rest_client/models/{acpv1instructionsinstruction_idcredentials_order_information_ship_to.rb → iccv1instructionsinstruction_idcredentials_order_information_ship_to.rb} +1 -1
- data/lib/cybersource_rest_client/models/{acpv1instructionsinstruction_idcredentials_payment_options.rb → iccv1instructionsinstruction_idcredentials_payment_options.rb} +1 -1
- data/lib/cybersource_rest_client/models/{acpv1instructionsinstruction_idcredentials_transaction_data.rb → iccv1instructionsinstruction_idcredentials_transaction_data.rb} +7 -7
- data/lib/cybersource_rest_client/models/iccv1mppcredentials_challenge.rb +369 -0
- data/lib/cybersource_rest_client/models/iccv1mppcredentials_challenge_encryption_jwk.rb +336 -0
- data/lib/cybersource_rest_client/models/{acpv1tokens_assurance_data.rb → iccv1tokens_assurance_data.rb} +10 -10
- data/lib/cybersource_rest_client/models/{acpv1tokens_authenticated_identities.rb → iccv1tokens_authenticated_identities.rb} +2 -2
- data/lib/cybersource_rest_client/models/{acpv1tokens_authentication_context.rb → iccv1tokens_authentication_context.rb} +2 -2
- data/lib/cybersource_rest_client/models/{acpv1tokens_bill_to.rb → iccv1tokens_bill_to.rb} +2 -2
- data/lib/cybersource_rest_client/models/{acpv1tokens_buyer_information.rb → iccv1tokens_buyer_information.rb} +3 -3
- data/lib/cybersource_rest_client/models/{acpv1tokens_buyer_information_personal_identification.rb → iccv1tokens_buyer_information_personal_identification.rb} +9 -9
- data/lib/cybersource_rest_client/models/{acpv1tokens_consent_data.rb → iccv1tokens_consent_data.rb} +1 -1
- data/lib/cybersource_rest_client/models/{acpv1tokens_consumer_identity.rb → iccv1tokens_consumer_identity.rb} +2 -2
- data/lib/cybersource_rest_client/models/{acpv1tokens_device_information.rb → iccv1tokens_device_information.rb} +3 -3
- data/lib/cybersource_rest_client/models/{acpv1tokens_device_information_device_data.rb → iccv1tokens_device_information_device_data.rb} +1 -1
- data/lib/cybersource_rest_client/models/{acpv1tokens_enrollment_reference_data.rb → iccv1tokens_enrollment_reference_data.rb} +2 -2
- data/lib/cybersource_rest_client/models/{acpv1tokens_payment_information.rb → iccv1tokens_payment_information.rb} +5 -5
- data/lib/cybersource_rest_client/models/{acpv1tokens_payment_information_customer.rb → iccv1tokens_payment_information_customer.rb} +1 -1
- data/lib/cybersource_rest_client/models/{acpv1tokens_payment_information_instrument_identifier.rb → iccv1tokens_payment_information_instrument_identifier.rb} +1 -1
- data/lib/cybersource_rest_client/models/{acpv1tokens_payment_information_payment_instrument.rb → iccv1tokens_payment_information_payment_instrument.rb} +1 -1
- data/lib/cybersource_rest_client/models/inline_response_201_1_tokenized_card.rb +26 -5
- data/lib/cybersource_rest_client/models/inline_response_201_4_setups.rb +1 -1
- data/lib/cybersource_rest_client/models/inline_response_201_4_setups_commerce_solutions.rb +17 -7
- data/lib/cybersource_rest_client/models/inline_response_201_4_setups_risk.rb +16 -6
- data/lib/cybersource_rest_client/models/inline_response_201_4_setups_value_added_services.rb +27 -7
- data/lib/cybersource_rest_client/models/inline_response_400_10.rb +30 -75
- data/lib/cybersource_rest_client/models/{inline_response_400_8_details.rb → inline_response_400_10_details.rb} +1 -1
- data/lib/cybersource_rest_client/models/inline_response_400_11.rb +242 -0
- data/lib/cybersource_rest_client/models/inline_response_400_12.rb +235 -0
- data/lib/cybersource_rest_client/models/{inline_response_400_7_details.rb → inline_response_400_12_details.rb} +3 -3
- data/lib/cybersource_rest_client/models/inline_response_400_13.rb +281 -0
- data/lib/cybersource_rest_client/models/inline_response_400_6.rb +37 -60
- data/lib/cybersource_rest_client/models/inline_response_400_7.rb +6 -6
- data/lib/cybersource_rest_client/models/inline_response_400_8.rb +58 -36
- data/lib/cybersource_rest_client/models/{inline_response_400_6_fields.rb → inline_response_400_8_fields.rb} +1 -1
- data/lib/cybersource_rest_client/models/inline_response_400_9.rb +16 -16
- data/lib/cybersource_rest_client/models/inline_response_400_9_details.rb +2 -2
- data/lib/cybersource_rest_client/models/inline_response_404_3.rb +1 -1
- data/lib/cybersource_rest_client/models/inline_response_422_1.rb +1 -1
- data/lib/cybersource_rest_client/models/inline_response_502.rb +9 -53
- data/lib/cybersource_rest_client/models/inline_response_502_1.rb +24 -12
- data/lib/cybersource_rest_client/models/inline_response_502_2.rb +19 -47
- data/lib/cybersource_rest_client/models/inline_response_502_3.rb +251 -0
- data/lib/cybersource_rest_client/models/iplv2paymentlinks_order_information_line_items.rb +73 -5
- data/lib/cybersource_rest_client/models/microform_config_features.rb +189 -0
- data/lib/cybersource_rest_client/models/microform_config_features_gateway_agnostic.rb +189 -0
- data/lib/cybersource_rest_client/models/mit_reversal_request.rb +11 -1
- data/lib/cybersource_rest_client/models/mpp_credentials_request.rb +221 -0
- data/lib/cybersource_rest_client/models/mpp_credentials_response200.rb +338 -0
- data/lib/cybersource_rest_client/models/patch_customer_payment_instrument_request.rb +8 -8
- data/lib/cybersource_rest_client/models/patch_customer_request.rb +1 -1
- data/lib/cybersource_rest_client/models/patch_customer_shipping_address_request.rb +3 -3
- data/lib/cybersource_rest_client/models/patch_instrument_identifier_request.rb +1 -1
- data/lib/cybersource_rest_client/models/patch_payment_instrument_request.rb +8 -8
- data/lib/cybersource_rest_client/models/{tmsv2tokenize_token_information_customer__embedded_default_payment_instrument.rb → payment_instrument.rb} +9 -9
- data/lib/cybersource_rest_client/models/payment_instrument_list_1__embedded.rb +1 -1
- data/lib/cybersource_rest_client/models/payment_instrument_list__embedded.rb +1 -1
- data/lib/cybersource_rest_client/models/{payment_instrument_list_1__embedded__embedded.rb → payment_instrument_list__embedded__embedded.rb} +1 -1
- data/lib/cybersource_rest_client/models/{inline_response_201_4_setups_payments.rb → payments_configuration_setup.rb} +45 -25
- data/lib/cybersource_rest_client/models/{inline_response_201_4_setups_payments_alternative_payment_methods.rb → payments_configuration_setup_alternative_payment_methods.rb} +3 -3
- data/lib/cybersource_rest_client/models/{inline_response_201_4_setups_payments_alternative_payment_methods_configuration_status.rb → payments_configuration_setup_alternative_payment_methods_configuration_status.rb} +1 -1
- data/lib/cybersource_rest_client/models/{inline_response_201_4_setups_payments_card_processing.rb → payments_configuration_setup_card_processing.rb} +3 -3
- data/lib/cybersource_rest_client/models/{inline_response_201_4_setups_payments_card_processing_configuration_status.rb → payments_configuration_setup_card_processing_configuration_status.rb} +1 -1
- data/lib/cybersource_rest_client/models/{inline_response_201_4_setups_payments_card_processing_subscription_status.rb → payments_configuration_setup_card_processing_subscription_status.rb} +1 -1
- data/lib/cybersource_rest_client/models/{inline_response_201_4_setups_payments_digital_payments.rb → payments_configuration_setup_digital_payments.rb} +2 -2
- data/lib/cybersource_rest_client/models/payments_products.rb +25 -5
- data/lib/cybersource_rest_client/models/payments_products_alternative_payment_methods_configuration_information_configurations.rb +1 -1
- data/lib/cybersource_rest_client/models/payments_products_currency_conversion_configuration_information_configurations_processors.rb +14 -2
- data/lib/cybersource_rest_client/models/payments_products_microform.rb +199 -0
- data/lib/cybersource_rest_client/models/payments_products_microform_configuration_information.rb +199 -0
- data/lib/cybersource_rest_client/models/{payments_products_unified_checkout_configuration_information_configurations.rb → payments_products_microform_configuration_information_configurations.rb} +2 -2
- data/lib/cybersource_rest_client/models/payments_products_microform_subscription_information.rb +227 -0
- data/lib/cybersource_rest_client/models/payments_products_payouts_configuration_information.rb +1 -1
- data/lib/cybersource_rest_client/models/payments_products_unified_checkout_configuration_information.rb +1 -1
- data/lib/cybersource_rest_client/models/payments_products_unified_checkout_subscription_information.rb +1 -1
- data/lib/cybersource_rest_client/models/pbl_payment_links_get200_response.rb +1 -1
- data/lib/cybersource_rest_client/models/pbl_payment_links_post201_response.rb +1 -1
- data/lib/cybersource_rest_client/models/post_customer_payment_instrument_request.rb +8 -8
- data/lib/cybersource_rest_client/models/post_customer_request.rb +1 -1
- data/lib/cybersource_rest_client/models/post_customer_shipping_address_request.rb +3 -3
- data/lib/cybersource_rest_client/models/post_instrument_identifier_enrollment_request.rb +1 -1
- data/lib/cybersource_rest_client/models/post_instrument_identifier_request.rb +1 -1
- data/lib/cybersource_rest_client/models/post_issuer_life_cycle_simulation_request.rb +1 -1
- data/lib/cybersource_rest_client/models/post_payment_credentials_request.rb +1 -1
- data/lib/cybersource_rest_client/models/post_payment_credentials_request_1.rb +1 -1
- data/lib/cybersource_rest_client/models/post_payment_instrument_request.rb +8 -8
- data/lib/cybersource_rest_client/models/post_tokenized_card_request.rb +15 -5
- data/lib/cybersource_rest_client/models/{ptsv2payments_processing_information_authorization_options.rb → processing_info_authorization_options.rb} +2 -2
- data/lib/cybersource_rest_client/models/{ptsv2payments_processing_information_authorization_options_initiator.rb → processing_info_authorization_options_initiator.rb} +2 -2
- data/lib/cybersource_rest_client/models/{ptsv2payments_merchant_initiated_transaction.rb → processing_info_authorization_options_initiator_merchant_initiated_transaction.rb} +4 -4
- data/lib/cybersource_rest_client/models/{pts_v2_payments_post201_response_processor_information_seller_protection.rb → processor_information_seller_protection.rb} +1 -1
- data/lib/cybersource_rest_client/models/pts_v2_create_billing_agreement_post201_response_agreement_information.rb +80 -1
- data/lib/cybersource_rest_client/models/pts_v2_credits_post201_response.rb +42 -2
- data/lib/cybersource_rest_client/models/pts_v2_credits_post201_response_merchant_information.rb +196 -0
- data/lib/cybersource_rest_client/models/{ptsv1pushfundstransfer_recipient_information_payment_information.rb → pts_v2_credits_post201_response_payment_account_information.rb} +2 -2
- data/lib/cybersource_rest_client/models/pts_v2_credits_post201_response_payment_information.rb +15 -5
- data/lib/cybersource_rest_client/models/pts_v2_credits_post201_response_payment_information_account_features.rb +196 -0
- data/lib/cybersource_rest_client/models/pts_v2_credits_post201_response_token_information.rb +189 -0
- data/lib/cybersource_rest_client/models/pts_v2_incremental_authorization_patch201_response_processor_information.rb +1 -1
- data/lib/cybersource_rest_client/models/pts_v2_modify_billing_agreement_post201_response_agreement_information.rb +35 -1
- data/lib/cybersource_rest_client/models/pts_v2_payments_captures_post201_response_point_of_sale_information.rb +22 -5
- data/lib/cybersource_rest_client/models/pts_v2_payments_captures_post201_response_processor_information.rb +1 -1
- data/lib/cybersource_rest_client/models/pts_v2_payments_order_post201_response_order_information_shipping_details.rb +1 -1
- data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_1_processor_information.rb +1 -1
- data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_consumer_authentication_information.rb +106 -5
- data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_consumer_authentication_information_strong_authentication.rb +22 -5
- data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_payment_account_information.rb +15 -5
- data/lib/cybersource_rest_client/models/{pts_v2_payments_post201_response_payment_information_tokenized_card.rb → pts_v2_payments_post201_response_payment_account_information_tokenized_card.rb} +1 -1
- data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_payment_information.rb +1 -1
- data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_processing_information.rb +18 -1
- data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_processor_information.rb +24 -7
- data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_token_information.rb +15 -5
- data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_token_information_third_party_token.rb +213 -0
- data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_watchlist_screening_information.rb +1 -1
- data/lib/cybersource_rest_client/models/pts_v2_payments_refund_post201_response.rb +1 -1
- data/lib/cybersource_rest_client/models/pts_v2_payments_refund_post201_response_error_information.rb +1 -1
- data/lib/cybersource_rest_client/models/pts_v2_payments_refund_post201_response_order_information_amount_details.rb +18 -1
- data/lib/cybersource_rest_client/models/pts_v2_payments_refund_post201_response_processor_information.rb +19 -2
- data/lib/cybersource_rest_client/models/pts_v2_payments_reversals_post201_response_processor_information.rb +1 -1
- data/lib/cybersource_rest_client/models/pts_v2_payments_voids_post201_response_processor_information.rb +7 -1
- data/lib/cybersource_rest_client/models/pts_v2_payouts_post201_response_issuer_information.rb +166 -1
- data/lib/cybersource_rest_client/models/pts_v2_payouts_post201_response_processor_information.rb +45 -5
- data/lib/cybersource_rest_client/models/{pull_funds201_response_processor_information_avs.rb → pts_v2_payouts_post201_response_processor_information_avs.rb} +1 -1
- data/lib/cybersource_rest_client/models/pts_v2_payouts_post201_response_processor_information_customer.rb +196 -0
- data/lib/cybersource_rest_client/models/pts_v2_payouts_post201_response_processor_information_electronic_verification_results.rb +281 -0
- data/lib/cybersource_rest_client/models/ptsv1pullfundstransfer_buyer_information.rb +196 -0
- data/lib/cybersource_rest_client/models/ptsv1pullfundstransfer_order_information_amount_details.rb +1 -1
- data/lib/cybersource_rest_client/models/ptsv1pullfundstransfer_processing_information.rb +19 -6
- data/lib/cybersource_rest_client/models/ptsv1pushfundstransfer_processing_information.rb +19 -6
- data/lib/cybersource_rest_client/models/ptsv1pushfundstransfer_recipient_information.rb +1 -1
- data/lib/cybersource_rest_client/models/ptsv2billingagreements_agreement_information.rb +84 -5
- data/lib/cybersource_rest_client/models/ptsv2billingagreements_order_information.rb +12 -2
- data/lib/cybersource_rest_client/models/ptsv2billingagreements_order_information_amount_details.rb +230 -0
- data/lib/cybersource_rest_client/models/{ptsv2intents_order_information_invoice_details.rb → ptsv2billingagreements_order_information_invoice_details.rb} +1 -1
- data/lib/cybersource_rest_client/models/ptsv2billingagreements_payment_information_bank.rb +15 -5
- data/lib/cybersource_rest_client/models/ptsv2billingagreements_payment_information_bank_account_alias.rb +207 -0
- data/lib/cybersource_rest_client/models/ptsv2billingagreements_processing_information.rb +18 -1
- data/lib/cybersource_rest_client/models/ptsv2billingagreementsid_agreement_information.rb +56 -5
- data/lib/cybersource_rest_client/models/ptsv2billingagreementsid_processing_information.rb +18 -1
- data/lib/cybersource_rest_client/models/ptsv2credits_processing_information.rb +36 -6
- data/lib/cybersource_rest_client/models/ptsv2credits_processing_information_refund_options.rb +22 -5
- data/lib/cybersource_rest_client/models/ptsv2credits_token_information.rb +228 -0
- data/lib/cybersource_rest_client/models/ptsv2intents_order_information.rb +1 -1
- data/lib/cybersource_rest_client/models/ptsv2intentsid_order_information.rb +1 -1
- data/lib/cybersource_rest_client/models/ptsv2payments_aggregator_information_sub_merchant.rb +15 -5
- data/lib/cybersource_rest_client/models/ptsv2payments_consumer_authentication_information.rb +16 -5
- data/lib/cybersource_rest_client/models/ptsv2payments_order_information.rb +28 -1
- data/lib/cybersource_rest_client/models/ptsv2payments_order_information_digital_currency.rb +231 -0
- data/lib/cybersource_rest_client/models/ptsv2payments_order_information_shipping_details.rb +23 -6
- data/lib/cybersource_rest_client/models/ptsv2payments_payment_information.rb +32 -5
- data/lib/cybersource_rest_client/models/ptsv2payments_payment_information_bank.rb +15 -5
- data/lib/cybersource_rest_client/models/ptsv2payments_payment_information_bank_account_alias.rb +207 -0
- data/lib/cybersource_rest_client/models/ptsv2payments_payment_information_third_party_token.rb +196 -0
- data/lib/cybersource_rest_client/models/ptsv2payments_point_of_sale_information.rb +18 -1
- data/lib/cybersource_rest_client/models/ptsv2payments_processing_information.rb +74 -8
- data/lib/cybersource_rest_client/models/ptsv2payments_processing_information_program_indicators.rb +202 -0
- data/lib/cybersource_rest_client/models/ptsv2payments_processor_information.rb +73 -5
- data/lib/cybersource_rest_client/models/ptsv2payments_recipient_information.rb +16 -5
- data/lib/cybersource_rest_client/models/ptsv2payments_sender_information.rb +16 -5
- data/lib/cybersource_rest_client/models/ptsv2payments_token_information.rb +32 -5
- data/lib/cybersource_rest_client/models/ptsv2payments_token_information_token_authentication_information.rb +193 -0
- data/lib/cybersource_rest_client/models/ptsv2payments_token_information_token_authentication_information_authenticated_identities.rb +252 -0
- data/lib/cybersource_rest_client/models/ptsv2paymentsidcaptures_aggregator_information_sub_merchant.rb +15 -5
- data/lib/cybersource_rest_client/models/ptsv2paymentsidcaptures_order_information_shipping_details.rb +100 -5
- data/lib/cybersource_rest_client/models/ptsv2paymentsidcaptures_point_of_sale_information.rb +22 -5
- data/lib/cybersource_rest_client/models/ptsv2paymentsidcaptures_processing_information.rb +19 -2
- data/lib/cybersource_rest_client/models/ptsv2paymentsidcaptures_processor_information.rb +39 -5
- data/lib/cybersource_rest_client/models/ptsv2paymentsidrefunds_order_information.rb +15 -5
- data/lib/cybersource_rest_client/models/ptsv2paymentsidrefunds_order_information_shipping_details.rb +196 -0
- data/lib/cybersource_rest_client/models/ptsv2paymentsidrefunds_payment_information.rb +32 -5
- data/lib/cybersource_rest_client/models/ptsv2paymentsidrefunds_processing_information.rb +1 -1
- data/lib/cybersource_rest_client/models/ptsv2paymentsidrefunds_processing_information_refund_options.rb +22 -5
- data/lib/cybersource_rest_client/models/ptsv2paymentsidreversals_device_information.rb +196 -0
- data/lib/cybersource_rest_client/models/ptsv2paymentsidreversals_payment_information.rb +22 -5
- data/lib/cybersource_rest_client/models/ptsv2paymentsidreversals_processing_information.rb +1 -1
- data/lib/cybersource_rest_client/models/ptsv2payouts_processing_information.rb +18 -5
- data/lib/cybersource_rest_client/models/pull_funds201_response_processor_information.rb +36 -6
- data/lib/cybersource_rest_client/models/pull_funds_request.rb +11 -1
- data/lib/cybersource_rest_client/models/push_funds201_response.rb +11 -1
- data/lib/cybersource_rest_client/models/push_funds201_response_issuer_information.rb +344 -0
- data/lib/cybersource_rest_client/models/push_funds201_response_processor_information.rb +45 -5
- data/lib/cybersource_rest_client/models/push_funds_transfer_payment_information.rb +189 -0
- data/lib/cybersource_rest_client/models/{ptsv1pushfundstransfer_recipient_information_payment_information_card.rb → push_funds_transfer_payment_information_card.rb} +4 -4
- data/lib/cybersource_rest_client/models/{ptsv1pushfundstransfer_recipient_information_payment_information_card_customer.rb → push_funds_transfer_payment_information_card_customer.rb} +1 -1
- data/lib/cybersource_rest_client/models/{ptsv1pushfundstransfer_recipient_information_payment_information_card_instrument_identifier.rb → push_funds_transfer_payment_information_card_instrument_identifier.rb} +1 -1
- data/lib/cybersource_rest_client/models/{ptsv1pushfundstransfer_recipient_information_payment_information_card_payment_instrument.rb → push_funds_transfer_payment_information_card_payment_instrument.rb} +1 -1
- data/lib/cybersource_rest_client/models/{rbsv1subscriptions_processing_information_authorization_options.rb → rbs_authorization_options.rb} +2 -2
- data/lib/cybersource_rest_client/models/{rbsv1subscriptions_processing_information_authorization_options_initiator.rb → rbs_authorization_options_initiator.rb} +1 -1
- data/lib/cybersource_rest_client/models/rbsv1subscriptions_processing_information.rb +1 -1
- data/lib/cybersource_rest_client/models/{reporting_v3_report_definitions_name_get200_response_default_settings.rb → report_definition_default_settings.rb} +1 -1
- data/lib/cybersource_rest_client/models/reporting_v3_report_definitions_get200_response_report_definitions.rb +1 -1
- data/lib/cybersource_rest_client/models/reporting_v3_report_definitions_name_get200_response.rb +1 -1
- data/lib/cybersource_rest_client/models/{risk_v1_address_verifications_post201_response_address_verification_information.rb → risk_address_verification_information.rb} +3 -3
- data/lib/cybersource_rest_client/models/{risk_v1_address_verifications_post201_response_address_verification_information_bar_code.rb → risk_address_verification_information_bar_code.rb} +1 -1
- data/lib/cybersource_rest_client/models/{risk_v1_address_verifications_post201_response_address_verification_information_standard_address.rb → risk_address_verification_information_standard_address.rb} +2 -2
- data/lib/cybersource_rest_client/models/{risk_v1_address_verifications_post201_response_address1.rb → risk_address_verification_information_standard_address_address1.rb} +1 -1
- data/lib/cybersource_rest_client/models/risk_products.rb +15 -5
- data/lib/cybersource_rest_client/models/risk_v1_address_verifications_post201_response.rb +1 -1
- data/lib/cybersource_rest_client/models/riskv1decisions_order_information_ship_to.rb +39 -5
- data/lib/cybersource_rest_client/models/riskv1decisions_order_information_shipping_details.rb +1 -1
- data/lib/cybersource_rest_client/models/shipping_address_list_for_customer__embedded.rb +1 -1
- data/lib/cybersource_rest_client/models/tms_card_art.rb +23 -1
- data/lib/cybersource_rest_client/models/tms_embedded_instrument_identifier.rb +1 -1
- data/lib/cybersource_rest_client/models/tms_embedded_instrument_identifier_bill_to.rb +22 -5
- data/lib/cybersource_rest_client/models/{tmsv2tokenizedcardstokenized_card_idissuerlifecycleeventsimulations_metadata.rb → tms_issuer_life_cycle_event_simulation_metadata.rb} +2 -2
- data/lib/cybersource_rest_client/models/{tmsv2tokenizedcardstokenized_card_idissuerlifecycleeventsimulations_metadata_card_art.rb → tms_issuer_life_cycle_event_simulation_metadata_card_art.rb} +2 -2
- data/lib/cybersource_rest_client/models/{tms_issuerlifecycleeventsimulations_metadata_card_art_combined_asset.rb → tms_issuer_life_cycle_event_simulation_metadata_card_art_combined_asset.rb} +1 -1
- data/lib/cybersource_rest_client/models/{tms_embedded_instrument_identifier_point_of_sale_information.rb → tms_point_of_sale_information.rb} +2 -2
- data/lib/cybersource_rest_client/models/{tms_embedded_instrument_identifier_point_of_sale_information_emv_tags.rb → tms_point_of_sale_information_emv_tags.rb} +1 -1
- data/lib/cybersource_rest_client/models/tms_tokenized_card_delete_request.rb +189 -0
- data/lib/cybersource_rest_client/models/tmsv1paymentinstruments__embedded.rb +190 -0
- data/lib/cybersource_rest_client/models/tmsv2_tokenized_card.rb +22 -1
- data/lib/cybersource_rest_client/models/tmsv2_tokenized_card_card.rb +1 -1
- data/lib/cybersource_rest_client/models/tmsv2_tokenized_card_metadata.rb +16 -5
- data/lib/cybersource_rest_client/models/tmsv2_tokenized_card_metadata_issuer.rb +41 -8
- data/lib/cybersource_rest_client/models/{tmsv3tokenstoken_idpaymentcredentials_merchant_information_merchant_descriptor.rb → tmsv2_tokenized_card_metadata_issuer_bank_applications.rb} +11 -11
- data/lib/cybersource_rest_client/models/tmsv2_tokenized_card_metadata_issuer_capabilities.rb +257 -0
- data/lib/cybersource_rest_client/models/tmsv2_tokenized_card_verification_results.rb +202 -0
- data/lib/cybersource_rest_client/models/tmsv2customers__embedded.rb +200 -0
- data/lib/cybersource_rest_client/models/tmsv2tokenize_token_information.rb +2 -2
- data/lib/cybersource_rest_client/models/tmsv2tokenize_token_information_customer__embedded.rb +2 -2
- data/lib/cybersource_rest_client/models/{tmsv3tokenstoken_idpaymentcredentials_order_information_bill_to.rb → tmsv2tokenizedcards_bill_to.rb} +1 -1
- data/lib/cybersource_rest_client/models/tmsv2tokenizedcardstokenized_card_iddelete_reason.rb +208 -0
- data/lib/cybersource_rest_client/models/tmsv3tokenstoken_idpaymentcredentials_authenticated_identities.rb +19 -8
- data/lib/cybersource_rest_client/models/tmsv3tokenstoken_idpaymentcredentials_order_information.rb +1 -1
- data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_order_information_shipping_details.rb +1 -1
- data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_sender_information.rb +1 -1
- data/lib/cybersource_rest_client/models/uc_configurations.rb +189 -0
- data/lib/cybersource_rest_client/models/uc_configurations_features.rb +209 -0
- data/lib/cybersource_rest_client/models/uc_configurations_features_click_to_pay.rb +189 -0
- data/lib/cybersource_rest_client/models/uc_configurations_features_click_to_pay_enrollment_data.rb +223 -0
- data/lib/cybersource_rest_client/models/{payments_products_unified_checkout_configuration_information_configurations_features_paze.rb → uc_configurations_features_paze.rb} +2 -2
- data/lib/cybersource_rest_client/models/uc_configurations_features_portfolio_accessto_sensitive_data.rb +190 -0
- data/lib/cybersource_rest_client/models/{payments_products_unified_checkout_subscription_information_features.rb → uc_feature_subscription.rb} +22 -22
- data/lib/cybersource_rest_client/models/{payments_products_unified_checkout_subscription_information_features_after_pay.rb → uc_feature_subscription_after_pay.rb} +1 -1
- data/lib/cybersource_rest_client/models/{payments_products_unified_checkout_subscription_information_features_apple_pay.rb → uc_feature_subscription_apple_pay.rb} +1 -1
- data/lib/cybersource_rest_client/models/{payments_products_unified_checkout_subscription_information_features_bancontact.rb → uc_feature_subscription_bancontact.rb} +1 -1
- data/lib/cybersource_rest_client/models/{payments_products_unified_checkout_subscription_information_features_click_to_pay.rb → uc_feature_subscription_click_to_pay.rb} +1 -1
- data/lib/cybersource_rest_client/models/{payments_products_unified_checkout_subscription_information_features_decision_manager.rb → uc_feature_subscription_decision_manager.rb} +1 -1
- data/lib/cybersource_rest_client/models/{payments_products_unified_checkout_subscription_information_features_dragon_pay.rb → uc_feature_subscription_dragon_pay.rb} +1 -1
- data/lib/cybersource_rest_client/models/{payments_products_unified_checkout_subscription_information_features_e_check.rb → uc_feature_subscription_e_check.rb} +1 -1
- data/lib/cybersource_rest_client/models/{payments_products_unified_checkout_subscription_information_features_google_pay.rb → uc_feature_subscription_google_pay.rb} +1 -1
- data/lib/cybersource_rest_client/models/{payments_products_unified_checkout_subscription_information_features_ideal.rb → uc_feature_subscription_ideal.rb} +1 -1
- data/lib/cybersource_rest_client/models/{payments_products_unified_checkout_subscription_information_features_konbini.rb → uc_feature_subscription_konbini.rb} +1 -1
- data/lib/cybersource_rest_client/models/{payments_products_unified_checkout_subscription_information_features_multibanco.rb → uc_feature_subscription_multibanco.rb} +1 -1
- data/lib/cybersource_rest_client/models/{payments_products_unified_checkout_subscription_information_features_my_bank.rb → uc_feature_subscription_my_bank.rb} +1 -1
- data/lib/cybersource_rest_client/models/{payments_products_unified_checkout_subscription_information_features_p24.rb → uc_feature_subscription_p24.rb} +1 -1
- data/lib/cybersource_rest_client/models/{payments_products_unified_checkout_subscription_information_features_pay_pal.rb → uc_feature_subscription_pay_pal.rb} +1 -1
- data/lib/cybersource_rest_client/models/{payments_products_unified_checkout_subscription_information_features_payer_authentication.rb → uc_feature_subscription_payer_authentication.rb} +1 -1
- data/lib/cybersource_rest_client/models/{payments_products_unified_checkout_subscription_information_features_paze_for_unified_checkout.rb → uc_feature_subscription_paze_for_unified_checkout.rb} +1 -1
- data/lib/cybersource_rest_client/models/{payments_products_unified_checkout_subscription_info_features_portfolio_accessof_sensi_data.rb → uc_feature_subscription_portfolio_accessof_sensitive_data.rb} +1 -1
- data/lib/cybersource_rest_client/models/{payments_products_unified_checkout_subscription_information_features_tink_pay_by_bank.rb → uc_feature_subscription_tink_pay_by_bank.rb} +1 -1
- data/lib/cybersource_rest_client/models/{payments_products_unified_checkout_subscription_information_features_token_management.rb → uc_feature_subscription_token_management.rb} +1 -1
- data/lib/cybersource_rest_client/models/{payments_products_unified_checkout_subscription_information_features_unified_click_to_pay_sdk.rb → uc_feature_subscription_unified_click_to_pay_sdk.rb} +1 -1
- data/lib/cybersource_rest_client/models/{payments_products_unified_checkout_subscription_information_features_venmo.rb → uc_feature_subscription_venmo.rb} +1 -1
- data/lib/cybersource_rest_client/models/ucv1sessions_complete_mandate.rb +1 -1
- data/lib/cybersource_rest_client/models/ucv1sessions_data.rb +45 -15
- data/lib/cybersource_rest_client/models/ucv1sessions_data_aggregator_information.rb +325 -0
- data/lib/cybersource_rest_client/models/ucv1sessions_data_aggregator_information_sub_merchant.rb +366 -0
- data/lib/cybersource_rest_client/models/ucv1sessions_data_client_reference_information.rb +227 -0
- data/lib/cybersource_rest_client/models/ucv1sessions_data_consumer_authentication_information.rb +22 -5
- data/lib/cybersource_rest_client/models/ucv1sessions_data_installment_information.rb +196 -0
- data/lib/cybersource_rest_client/models/ucv1sessions_data_merchant_information.rb +22 -5
- data/lib/cybersource_rest_client/models/ucv1sessions_data_merchant_information_merchant_descriptor.rb +18 -1
- data/lib/cybersource_rest_client/models/ucv1sessions_data_order_information.rb +17 -7
- data/lib/cybersource_rest_client/models/ucv1sessions_data_order_information_amount_details.rb +86 -12
- data/lib/cybersource_rest_client/models/ucv1sessions_data_order_information_invoice_details.rb +242 -0
- data/lib/cybersource_rest_client/models/ucv1sessions_data_order_information_invoice_details_transaction_advice_addendum.rb +196 -0
- data/lib/cybersource_rest_client/models/ucv1sessions_data_order_information_line_items.rb +702 -0
- data/lib/cybersource_rest_client/models/ucv1sessions_data_order_information_ship_to.rb +388 -0
- data/lib/cybersource_rest_client/models/ucv1sessions_data_order_information_shipping_details.rb +213 -0
- data/lib/cybersource_rest_client/models/ucv1sessions_data_processing_information.rb +38 -1
- data/lib/cybersource_rest_client/models/ucv1sessions_data_processing_information_authorization_options_initiator.rb +1 -1
- data/lib/cybersource_rest_client/models/ucv1sessions_data_processing_information_bank_transfer_options.rb +196 -0
- data/lib/cybersource_rest_client/models/ucv1sessions_data_processing_information_recurring_options.rb +192 -0
- data/lib/cybersource_rest_client/models/ucv1sessions_data_recipient_information.rb +107 -53
- data/lib/cybersource_rest_client/models/ucv1sessions_data_sender_information.rb +376 -0
- data/lib/cybersource_rest_client/models/ucv1sessions_data_sender_information_account.rb +213 -0
- data/lib/cybersource_rest_client/models/ucv1sessions_payment_configurations.rb +11 -1
- data/lib/cybersource_rest_client/models/ucv1sessions_payment_configurations_googlepay.rb +1 -1
- data/lib/cybersource_rest_client/models/ucv1sessions_payment_configurations_paypal.rb +211 -0
- data/lib/cybersource_rest_client/models/ucv1sessions_payment_configurations_paypal_tokenized_payment_method.rb +213 -0
- data/lib/cybersource_rest_client/models/ucv1sessions_payment_configurations_tms_token.rb +1 -1
- data/lib/cybersource_rest_client/models/{underwriting_configuration_organization_information_business_information_business_details.rb → underwriting_configuration_business_details.rb} +2 -2
- data/lib/cybersource_rest_client/models/underwriting_configuration_business_details_product_services_subscription.rb +1 -1
- data/lib/cybersource_rest_client/models/underwriting_configuration_organization_information_business_information.rb +1 -1
- data/lib/cybersource_rest_client/models/{upv1capturecontexts_data_processing_info_mit.rb → unified_checkout_merchant_initiated_transaction.rb} +1 -1
- data/lib/cybersource_rest_client/models/update_payments.rb +192 -0
- data/lib/cybersource_rest_client/models/upv1capturecontexts_data_order_information.rb +4 -2
- data/lib/cybersource_rest_client/models/upv1capturecontexts_data_order_information_line_items.rb +2 -2
- data/lib/cybersource_rest_client/models/{upv1capturecontexts_data_order_information_line_items_passenger.rb → upv1capturecontexts_data_order_information_passenger.rb} +1 -1
- data/lib/cybersource_rest_client/models/{upv1capturecontexts_data_order_information_line_items_tax_details.rb → upv1capturecontexts_data_order_information_tax_details.rb} +1 -1
- data/lib/cybersource_rest_client/models/upv1capturecontexts_data_processing_information_authorization_options_initiator.rb +1 -1
- data/lib/cybersource_rest_client/models/value_added_services_products.rb +25 -5
- data/lib/cybersource_rest_client/models/{vt_config_card_not_present_global_payment_information.rb → virtual_terminal_global_payment_settings.rb} +4 -4
- data/lib/cybersource_rest_client/models/{vt_config_card_not_present_global_payment_information_basic_information.rb → virtual_terminal_global_payment_settings_basic_information.rb} +1 -1
- data/lib/cybersource_rest_client/models/{vt_config_card_not_present_global_payment_information_merchant_defined_data_fields.rb → virtual_terminal_global_payment_settings_merchant_defined_data_fields.rb} +1 -1
- data/lib/cybersource_rest_client/models/{vt_config_card_not_present_global_payment_information_payment_information.rb → virtual_terminal_global_payment_settings_payment_information.rb} +1 -1
- data/lib/cybersource_rest_client/models/vt_config_card_not_present.rb +1 -1
- data/lib/cybersource_rest_client.rb +225 -158
- metadata +231 -164
- data/lib/cybersource_rest_client/api/enrollment_api.rb +0 -104
- data/lib/cybersource_rest_client/api/token_api.rb +0 -306
- data/lib/cybersource_rest_client/api/tokenized_card_api.rb +0 -371
- data/lib/cybersource_rest_client/models/tmsv3tokenstoken_idpaymentcredentials_merchant_information.rb +0 -189
- data/lib/cybersource_rest_client/utilities/flex/token_verification.rb +0 -42
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
class Constants
|
|
3
2
|
GET_REQUEST_TYPE_LOWER = 'get' unless const_defined?(:GET_REQUEST_TYPE_LOWER)
|
|
4
3
|
|
|
5
4
|
POST_REQUEST_TYPE_LOWER = 'post' unless const_defined?(:POST_REQUEST_TYPE_LOWER)
|
|
@@ -42,7 +41,7 @@
|
|
|
42
41
|
|
|
43
42
|
SIGNATURE_ALGORITHM = 'HmacSHA256' unless const_defined?(:SIGNATURE_ALGORITHM)
|
|
44
43
|
|
|
45
|
-
ALGORITHM =
|
|
44
|
+
ALGORITHM = 'algorithm="' unless const_defined?(:ALGORITHM)
|
|
46
45
|
|
|
47
46
|
SHA256 = 'SHA-256=' unless const_defined?(:SHA256)
|
|
48
47
|
|
|
@@ -52,11 +51,11 @@
|
|
|
52
51
|
|
|
53
52
|
USER_AGENT_VALUE = 'Mozilla/5.0' unless const_defined?(:USER_AGENT_VALUE)
|
|
54
53
|
|
|
55
|
-
KEY_ID =
|
|
54
|
+
KEY_ID = 'keyid="' unless const_defined?(:KEY_ID)
|
|
56
55
|
|
|
57
|
-
HEADERS_PARAM =
|
|
56
|
+
HEADERS_PARAM = 'headers="' unless const_defined?(:HEADERS_PARAM)
|
|
58
57
|
|
|
59
|
-
SIGNATURE_PARAM =
|
|
58
|
+
SIGNATURE_PARAM = 'signature="' unless const_defined?(:SIGNATURE_PARAM)
|
|
60
59
|
|
|
61
60
|
AUTH_TYPE_HTTP = 'HTTP_SIGNATURE' unless const_defined?(:AUTH_TYPE_HTTP)
|
|
62
61
|
|
|
@@ -66,7 +65,16 @@
|
|
|
66
65
|
|
|
67
66
|
AUTH_TYPE_JWT = 'JWT' unless const_defined?(:AUTH_TYPE_JWT)
|
|
68
67
|
|
|
69
|
-
|
|
68
|
+
JWT_KEY_TYPE_P12 = 'P12' unless const_defined?(:JWT_KEY_TYPE_P12)
|
|
69
|
+
|
|
70
|
+
JWT_KEY_TYPE_SHARED_SECRET = 'SHARED_SECRET' unless const_defined?(:JWT_KEY_TYPE_SHARED_SECRET)
|
|
71
|
+
|
|
72
|
+
unless const_defined?(:INVALID_JWT_KEY_TYPE)
|
|
73
|
+
INVALID_JWT_KEY_TYPE = "Invalid jwtKeyType. Must be 'P12' or 'SHARED_SECRET'."
|
|
74
|
+
end
|
|
75
|
+
|
|
76
|
+
OLD_RUN_ENVIRONMENT_CONSTANTS = ['CYBERSOURCE.ENVIRONMENT.SANDBOX', 'CYBERSOURCE.ENVIRONMENT.PRODUCTION',
|
|
77
|
+
'CYBERSOURCE.IN.ENVIRONMENT.SANDBOX', 'CYBERSOURCE.IN.ENVIRONMENT.PRODUCTION', 'BANKOFAMERICA.ENVIRONMENT.SANDBOX', 'BANKOFAMERICA.ENVIRONMENT.PRODUCTION']
|
|
70
78
|
|
|
71
79
|
# constants for fall back logic
|
|
72
80
|
|
|
@@ -84,7 +92,7 @@
|
|
|
84
92
|
|
|
85
93
|
DEFAULT_LOG_LEVEL = 'debug' unless const_defined?(:DEFAULT_LOG_LEVEL)
|
|
86
94
|
|
|
87
|
-
LOG_LEVELS = [
|
|
95
|
+
LOG_LEVELS = %w[UNKNOWN FATAL ERROR WARN INFO DEBUG] unless const_defined?(:LOG_LEVELS)
|
|
88
96
|
|
|
89
97
|
# Constant for Fall back logic and Exception Handling
|
|
90
98
|
|
|
@@ -98,29 +106,43 @@
|
|
|
98
106
|
|
|
99
107
|
INCORRECT_KEY_PASS = 'The keyPass Entered is Incorrect' unless const_defined?(:INCORRECT_KEY_PASS)
|
|
100
108
|
|
|
101
|
-
AUTH_TYPE_MANDATORY= 'AuthenticationType is Mandatory' unless const_defined?(:AUTH_TYPE_MANDATORY)
|
|
109
|
+
AUTH_TYPE_MANDATORY = 'AuthenticationType is Mandatory' unless const_defined?(:AUTH_TYPE_MANDATORY)
|
|
102
110
|
|
|
103
111
|
MERCHANT_KEY_ID_MANDATORY = 'MerchantKeyId is Mandatory' unless const_defined?(:MERCHANT_KEY_ID_MANDATORY)
|
|
104
112
|
|
|
105
|
-
|
|
113
|
+
unless const_defined?(:MERCHANT_SECRET_KEY_MANDATORY)
|
|
114
|
+
MERCHANT_SECRET_KEY_MANDATORY = 'MerchantSecretKey is Mandatory'
|
|
115
|
+
end
|
|
106
116
|
|
|
107
117
|
PORTFOLIO_ID_MANDATORY = 'PortfolioID is Mandatory' unless const_defined?(:PORTFOLIO_ID_MANDATORY)
|
|
108
118
|
|
|
109
119
|
KEY_PASS_NULL = 'keyPass is empty, Assigining merchantID value' unless const_defined?(:KEY_PASS_NULL)
|
|
110
120
|
|
|
111
|
-
|
|
121
|
+
unless const_defined?(:REQUEST_JSON_PATH_EMPTY)
|
|
122
|
+
REQUEST_JSON_PATH_EMPTY = 'RequestJsonPath not provided. Using Default Value:'
|
|
123
|
+
end
|
|
112
124
|
|
|
113
125
|
REQUEST_TYPE_EMPTY = 'RequestType Property of Merchant Config Not Set' unless const_defined?(:REQUEST_TYPE_EMPTY)
|
|
114
126
|
|
|
115
|
-
|
|
127
|
+
unless const_defined?(:INVALID_REQUEST_TYPE_METHOD)
|
|
128
|
+
INVALID_REQUEST_TYPE_METHOD = 'Entered Request Type should be (GET/POST/PUT)'
|
|
129
|
+
end
|
|
116
130
|
|
|
117
|
-
|
|
131
|
+
unless const_defined?(:INVALID_LOG_DIRECTORY)
|
|
132
|
+
INVALID_LOG_DIRECTORY = 'Entered LogDirectory is Missing/Incorrect. Using Default Path: '
|
|
133
|
+
end
|
|
118
134
|
|
|
119
|
-
|
|
135
|
+
unless const_defined?(:INVALID_MAX_LOG_SIZE)
|
|
136
|
+
INVALID_MAX_LOG_SIZE = 'Entered MaxLogSize is Missing/Incorrect. Using Default Value: '
|
|
137
|
+
end
|
|
120
138
|
|
|
121
|
-
|
|
139
|
+
unless const_defined?(:INVALID_MAX_LOG_FILES)
|
|
140
|
+
INVALID_MAX_LOG_FILES = 'Entered MaxLogFiles is Missing/Incorrect. Using Default Value: '
|
|
141
|
+
end
|
|
122
142
|
|
|
123
|
-
|
|
143
|
+
unless const_defined?(:INVALID_LOG_LEVEL)
|
|
144
|
+
INVALID_LOG_LEVEL = 'Entered LogLevel is Missing/Incorrect. Using Default Value: '
|
|
145
|
+
end
|
|
124
146
|
|
|
125
147
|
RUN_ENVIRONMENT_ERROR = 'Entered RunEnvironment is Incorrect.' unless const_defined?(:RUN_ENVIRONMENT_ERROR)
|
|
126
148
|
|
|
@@ -130,23 +152,50 @@
|
|
|
130
152
|
|
|
131
153
|
WARNING_PREFIX = 'Warning: ' unless const_defined?(:WARNING_PREFIX)
|
|
132
154
|
|
|
133
|
-
|
|
155
|
+
unless const_defined?(:HIDDEN_MERCHANT_PROPERTIES)
|
|
156
|
+
HIDDEN_MERCHANT_PROPERTIES = 'merchantID,merchantKeyId,merchantsecretKey,keyAlias,keyPass,'\
|
|
157
|
+
'keyPassword,sslKeyPassword,clientId,clientSecret,accessToken,refreshToken,'\
|
|
158
|
+
'privateKey,sslClientCert,responseMlePrivateKey,responseMlePrivateKeyPassword,'\
|
|
159
|
+
'responseMlePrivateKeyFilePassword,responseMlePrivateKeyFilePath,'\
|
|
160
|
+
'responseMlePrivateKeyFileName,mleForRequestPublicCertPath,pemFileDirectory,'\
|
|
161
|
+
'clientCertDirectory,keysDirectory,keyFilename'
|
|
162
|
+
end
|
|
163
|
+
|
|
164
|
+
unless const_defined?(:SENSITIVE_PROPERTY_PATTERNS)
|
|
165
|
+
# Substrings (case-insensitive) used to redact any configuration key whose name
|
|
166
|
+
# contains them. Provides defense-in-depth against new/unknown sensitive fields.
|
|
167
|
+
SENSITIVE_PROPERTY_PATTERNS = %w[secret password passwd pass token privatekey private_key apikey api_key credential cert].freeze
|
|
168
|
+
end
|
|
169
|
+
|
|
170
|
+
REDACTED_VALUE = '***REDACTED***' unless const_defined?(:REDACTED_VALUE)
|
|
134
171
|
|
|
135
172
|
RUN_ENVIRONMENT = 'RunEnvironment is Mandatory' unless const_defined?(:RUN_ENVIRONMENT)
|
|
136
173
|
|
|
137
|
-
|
|
174
|
+
unless const_defined?(:KEY_DIRECTORY_EMPTY)
|
|
175
|
+
KEY_DIRECTORY_EMPTY = 'KeysDirectory not provided. Using Default Path:'
|
|
176
|
+
end
|
|
138
177
|
|
|
139
|
-
|
|
178
|
+
unless const_defined?(:FILE_NOT_FOUND)
|
|
179
|
+
FILE_NOT_FOUND = 'File not found, Re-Enter path/file name, Entered path/file name :: '
|
|
180
|
+
end
|
|
140
181
|
|
|
141
182
|
AUTH_ERROR = 'Check Authentication Type (HTTP_Signature/JWT) in cybs.yml.' unless const_defined?(:AUTH_ERROR)
|
|
142
183
|
|
|
143
|
-
|
|
184
|
+
unless const_defined?(:KEY_FILE_NAME_NULL_EMPTY)
|
|
185
|
+
KEY_FILE_NAME_NULL_EMPTY = 'KeyFilename Empty/Null. Assigining merchantID value'
|
|
186
|
+
end
|
|
144
187
|
|
|
145
|
-
|
|
188
|
+
unless const_defined?(:KEY_ALIAS_NULL_EMPTY)
|
|
189
|
+
KEY_ALIAS_NULL_EMPTY = 'KeyAlias Empty/Null. Assigining merchantID value'
|
|
190
|
+
end
|
|
146
191
|
|
|
147
|
-
|
|
192
|
+
unless const_defined?(:INCORRECT_KEY_ALIAS)
|
|
193
|
+
INCORRECT_KEY_ALIAS = 'The Entered KeyAlias is Incorrect. Assigining merchantID value'
|
|
194
|
+
end
|
|
148
195
|
|
|
149
|
-
|
|
196
|
+
unless const_defined?(:INCORRECT_KEY_ALIAS_USE_METAKEY)
|
|
197
|
+
INCORRECT_KEY_ALIAS_USE_METAKEY = 'The Entered KeyAlias is Incorrect with useMetaKey set to true. Assigining portfolioID value'
|
|
198
|
+
end
|
|
150
199
|
|
|
151
200
|
ENABLE_CLIENT_CERT_EMPTY = 'Enable Clientcert is Empty/Null.' unless const_defined?(:ENABLE_CLIENT_CERT_EMPTY)
|
|
152
201
|
|
|
@@ -172,15 +221,27 @@
|
|
|
172
221
|
|
|
173
222
|
CERTIFICATE_EXPIRY_DATE_WARNING_DAYS = 90 unless const_defined?(:CERTIFICATE_EXPIRY_DATE_WARNING_DAYS)
|
|
174
223
|
|
|
175
|
-
MLE_CACHE_IDENTIFIER_FOR_CONFIG_CERT =
|
|
224
|
+
MLE_CACHE_IDENTIFIER_FOR_CONFIG_CERT = 'mleCertFromMerchantConfig'
|
|
225
|
+
|
|
226
|
+
MLE_CACHE_IDENTIFIER_FOR_P12_CERT = 'mleCertFromP12'
|
|
227
|
+
|
|
228
|
+
DEFAULT_KEY_FILE_PATH = File.join(Dir.pwd, 'resources')
|
|
176
229
|
|
|
177
|
-
|
|
230
|
+
MLE_CACHE_KEY_IDENTIFIER_FOR_RESPONSE_PRIVATE_KEY = 'mleResponsePrivateKeyFromFile'
|
|
178
231
|
|
|
179
|
-
|
|
232
|
+
PUBLIC_KEY_CACHE_IDENTIFIER = 'FlexV2PublicKeys'
|
|
180
233
|
|
|
181
|
-
|
|
234
|
+
RESPONSE_MLE_P12_PFX_CACHE_IDENTIFIER = '_responseMleP12Pfx'
|
|
182
235
|
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
236
|
+
# Allowed JWE algorithms for decryption (per CGK specification).
|
|
237
|
+
# Only strong key-encryption and content-encryption algorithms are permitted.
|
|
238
|
+
# Weak algorithms such as RSA1_5 (Bleichenbacher-vulnerable) and 'dir' are blocked.
|
|
239
|
+
unless const_defined?(:ALLOWED_JWE_KEY_ENCRYPTION_ALGORITHMS)
|
|
240
|
+
ALLOWED_JWE_KEY_ENCRYPTION_ALGORITHMS = %w[RSA-OAEP
|
|
241
|
+
RSA-OAEP-256].freeze
|
|
242
|
+
end
|
|
243
|
+
unless const_defined?(:ALLOWED_JWE_CONTENT_ENCRYPTION_ALGORITHMS)
|
|
244
|
+
ALLOWED_JWE_CONTENT_ENCRYPTION_ALGORITHMS = %w[A128GCM
|
|
245
|
+
A256GCM].freeze
|
|
246
|
+
end
|
|
247
|
+
end
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
require_relative '../logging/log_factory.rb'
|
|
2
|
+
require_relative '../logging/sensitive_logging.rb'
|
|
2
3
|
require 'jose'
|
|
3
4
|
require 'json'
|
|
4
5
|
require_relative './Cache'
|
|
@@ -9,6 +10,28 @@ require_relative './AuthJWEUtility'
|
|
|
9
10
|
public
|
|
10
11
|
class MLEUtility
|
|
11
12
|
@log_obj = nil
|
|
13
|
+
|
|
14
|
+
# Fail-safe gate for the decrypted-MLE-response diagnostic log lines.
|
|
15
|
+
# Default OFF: even at DEBUG, the decrypted/encrypted bodies are NOT emitted.
|
|
16
|
+
# Operators who need wire-level diagnostics must explicitly opt in by calling
|
|
17
|
+
# MLEUtility.enable_mle_plaintext_logging! in application bootstrap code; the
|
|
18
|
+
# toggle is process-local and not driven by config files or env vars so it
|
|
19
|
+
# cannot be flipped on accidentally by a deployment change.
|
|
20
|
+
@mle_plaintext_logging_enabled = false
|
|
21
|
+
|
|
22
|
+
class << self
|
|
23
|
+
def mle_plaintext_logging_enabled?
|
|
24
|
+
@mle_plaintext_logging_enabled == true
|
|
25
|
+
end
|
|
26
|
+
|
|
27
|
+
def enable_mle_plaintext_logging!
|
|
28
|
+
@mle_plaintext_logging_enabled = true
|
|
29
|
+
end
|
|
30
|
+
|
|
31
|
+
def disable_mle_plaintext_logging!
|
|
32
|
+
@mle_plaintext_logging_enabled = false
|
|
33
|
+
end
|
|
34
|
+
end
|
|
12
35
|
def self.check_is_mle_for_API(merchant_config, inbound_mle_status, operation_ids)
|
|
13
36
|
is_mle_for_api = false
|
|
14
37
|
|
|
@@ -48,6 +71,15 @@ public
|
|
|
48
71
|
return requestBody
|
|
49
72
|
end
|
|
50
73
|
|
|
74
|
+
# Check if using shared secret JWT without explicit MLE certificate path
|
|
75
|
+
if mleCertificate.nil? &&
|
|
76
|
+
Constants::AUTH_TYPE_JWT.downcase == merchantConfig.authenticationType.downcase &&
|
|
77
|
+
merchantConfig.is_shared_secret_key_type?
|
|
78
|
+
@log_obj.logger.debug("MLE for requests with JWT shared secret authentication requires mleForRequestPublicCertPath to be explicitly provided in merchant configuration.")
|
|
79
|
+
@log_obj.logger.debug("Please set mleForRequestPublicCertPath to the path of your MLE public certificate file.")
|
|
80
|
+
raise StandardError.new(Constants::ERROR_PREFIX + "Missing MLE certificate for JWT shared secret authentication. Please provide the MLE public certificate path in the configuration.")
|
|
81
|
+
end
|
|
82
|
+
|
|
51
83
|
begin
|
|
52
84
|
serial_number = self.extract_serial_number_from_certificate(mleCertificate)
|
|
53
85
|
|
|
@@ -139,11 +171,28 @@ public
|
|
|
139
171
|
end
|
|
140
172
|
|
|
141
173
|
begin
|
|
142
|
-
|
|
174
|
+
# Fail-safe: only emit decrypted-MLE bodies when an operator has explicitly
|
|
175
|
+
# called MLEUtility.enable_mle_plaintext_logging! AND the logger is at
|
|
176
|
+
# DEBUG. Even then, route the payload through SensitiveDataFilter so
|
|
177
|
+
# PCI/PII fields (PAN, CVV, account, expiration, token, ...) are masked
|
|
178
|
+
# before reaching any appender.
|
|
179
|
+
plaintext_logging = MLEUtility.mle_plaintext_logging_enabled? && @log_obj.logger.debug?
|
|
180
|
+
|
|
181
|
+
if plaintext_logging
|
|
182
|
+
formatter = SensitiveDataFilter.new
|
|
183
|
+
@log_obj.logger.debug("LOG_NETWORK_RESPONSE_BEFORE_MLE_DECRYPTION: #{formatter.maskSensitiveDataInJson(responseBody)}")
|
|
184
|
+
else
|
|
185
|
+
@log_obj.logger.debug('LOG_NETWORK_RESPONSE_BEFORE_MLE_DECRYPTION: <encrypted payload omitted>')
|
|
186
|
+
end
|
|
143
187
|
|
|
144
188
|
decryptedResponse = AuthJWEUtility.decrypt_jwe_using_private_key(mlePrivateKey, jweResponseToken)
|
|
145
189
|
|
|
146
|
-
|
|
190
|
+
if plaintext_logging
|
|
191
|
+
formatter ||= SensitiveDataFilter.new
|
|
192
|
+
@log_obj.logger.debug("LOG_NETWORK_RESPONSE_AFTER_MLE_DECRYPTION: #{formatter.maskSensitiveDataInJson(decryptedResponse)}")
|
|
193
|
+
else
|
|
194
|
+
@log_obj.logger.debug('LOG_NETWORK_RESPONSE_AFTER_MLE_DECRYPTION: <decrypted payload not logged>')
|
|
195
|
+
end
|
|
147
196
|
|
|
148
197
|
return decryptedResponse
|
|
149
198
|
rescue => e
|
|
@@ -12,7 +12,7 @@ Swagger Codegen version: 2.4.38
|
|
|
12
12
|
require 'uri'
|
|
13
13
|
require 'AuthenticationSDK/util/MLEUtility'
|
|
14
14
|
module CyberSource
|
|
15
|
-
class
|
|
15
|
+
class AgentCapabilitiesApi
|
|
16
16
|
attr_accessor :api_client
|
|
17
17
|
|
|
18
18
|
def initialize(api_client = ApiClient.default, config)
|
|
@@ -20,7 +20,7 @@ module CyberSource
|
|
|
20
20
|
@api_client.set_configuration(config)
|
|
21
21
|
end
|
|
22
22
|
# Cancel a purchase intent
|
|
23
|
-
#
|
|
23
|
+
# Cancel an existing purchase intent (instruction) identified by its instructionId. The agent calls this endpoint when the consumer decides to abandon the purchase before payment credentials have been used. Requires device information and assurance data for identity verification. Returns status CANCELLED (HTTP 200) on success, or PENDING (HTTP 202) with pendingEvents if cardholder authentication is required before cancellation can proceed.
|
|
24
24
|
#
|
|
25
25
|
# @param instruction_id
|
|
26
26
|
# @param agentic_cancel_purchase_intent_request Unique identifier for the purchase intent instruction.
|
|
@@ -33,7 +33,7 @@ module CyberSource
|
|
|
33
33
|
end
|
|
34
34
|
|
|
35
35
|
# Cancel a purchase intent
|
|
36
|
-
#
|
|
36
|
+
# Cancel an existing purchase intent (instruction) identified by its instructionId. The agent calls this endpoint when the consumer decides to abandon the purchase before payment credentials have been used. Requires device information and assurance data for identity verification. Returns status CANCELLED (HTTP 200) on success, or PENDING (HTTP 202) with pendingEvents if cardholder authentication is required before cancellation can proceed.
|
|
37
37
|
# @param instruction_id
|
|
38
38
|
# @param agentic_cancel_purchase_intent_request Unique identifier for the purchase intent instruction.
|
|
39
39
|
# @param [Hash] opts the optional parameters
|
|
@@ -43,21 +43,21 @@ module CyberSource
|
|
|
43
43
|
if @api_client.config.debugging
|
|
44
44
|
begin
|
|
45
45
|
raise
|
|
46
|
-
@api_client.config.logger.debug 'Calling API:
|
|
46
|
+
@api_client.config.logger.debug 'Calling API: AgentCapabilitiesApi.cancel_purchase_intent ...'
|
|
47
47
|
rescue
|
|
48
48
|
puts 'Cannot write to log'
|
|
49
49
|
end
|
|
50
50
|
end
|
|
51
51
|
# verify the required parameter 'instruction_id' is set
|
|
52
52
|
if @api_client.config.client_side_validation && instruction_id.nil?
|
|
53
|
-
fail ArgumentError, "Missing the required parameter 'instruction_id' when calling
|
|
53
|
+
fail ArgumentError, "Missing the required parameter 'instruction_id' when calling AgentCapabilitiesApi.cancel_purchase_intent"
|
|
54
54
|
end
|
|
55
55
|
# verify the required parameter 'agentic_cancel_purchase_intent_request' is set
|
|
56
56
|
if @api_client.config.client_side_validation && agentic_cancel_purchase_intent_request.nil?
|
|
57
|
-
fail ArgumentError, "Missing the required parameter 'agentic_cancel_purchase_intent_request' when calling
|
|
57
|
+
fail ArgumentError, "Missing the required parameter 'agentic_cancel_purchase_intent_request' when calling AgentCapabilitiesApi.cancel_purchase_intent"
|
|
58
58
|
end
|
|
59
59
|
# resource path
|
|
60
|
-
local_var_path = '
|
|
60
|
+
local_var_path = 'icc/v1/instructions/{instructionId}/cancel'.sub('{' + 'instructionId' + '}', instruction_id.to_s)
|
|
61
61
|
|
|
62
62
|
# query parameters
|
|
63
63
|
query_params = {}
|
|
@@ -99,7 +99,7 @@ module CyberSource
|
|
|
99
99
|
if @api_client.config.debugging
|
|
100
100
|
begin
|
|
101
101
|
raise
|
|
102
|
-
@api_client.config.logger.debug "API called:
|
|
102
|
+
@api_client.config.logger.debug "API called: AgentCapabilitiesApi#cancel_purchase_intent\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
103
103
|
rescue
|
|
104
104
|
puts 'Cannot write to log'
|
|
105
105
|
end
|
|
@@ -107,7 +107,7 @@ module CyberSource
|
|
|
107
107
|
return data, status_code, headers
|
|
108
108
|
end
|
|
109
109
|
# Confirm transaction events
|
|
110
|
-
#
|
|
110
|
+
# Confirm transaction events for a completed purchase. The agent calls this endpoint after the payment has been submitted to notify the Intelligent Commerce Connect of the transaction outcome. The request includes processor information (transaction type, status, approval codes), order details (shipping, tracking, product information), and merchant information. Returns HTTP 202 acknowledging receipt of the confirmation.
|
|
111
111
|
#
|
|
112
112
|
# @param instruction_id Unique identifier for the purchase intent instruction.
|
|
113
113
|
# @param agentic_confirm_transaction_events_request
|
|
@@ -120,7 +120,7 @@ module CyberSource
|
|
|
120
120
|
end
|
|
121
121
|
|
|
122
122
|
# Confirm transaction events
|
|
123
|
-
#
|
|
123
|
+
# Confirm transaction events for a completed purchase. The agent calls this endpoint after the payment has been submitted to notify the Intelligent Commerce Connect of the transaction outcome. The request includes processor information (transaction type, status, approval codes), order details (shipping, tracking, product information), and merchant information. Returns HTTP 202 acknowledging receipt of the confirmation.
|
|
124
124
|
# @param instruction_id Unique identifier for the purchase intent instruction.
|
|
125
125
|
# @param agentic_confirm_transaction_events_request
|
|
126
126
|
# @param [Hash] opts the optional parameters
|
|
@@ -130,21 +130,21 @@ module CyberSource
|
|
|
130
130
|
if @api_client.config.debugging
|
|
131
131
|
begin
|
|
132
132
|
raise
|
|
133
|
-
@api_client.config.logger.debug 'Calling API:
|
|
133
|
+
@api_client.config.logger.debug 'Calling API: AgentCapabilitiesApi.confirm_transaction_events ...'
|
|
134
134
|
rescue
|
|
135
135
|
puts 'Cannot write to log'
|
|
136
136
|
end
|
|
137
137
|
end
|
|
138
138
|
# verify the required parameter 'instruction_id' is set
|
|
139
139
|
if @api_client.config.client_side_validation && instruction_id.nil?
|
|
140
|
-
fail ArgumentError, "Missing the required parameter 'instruction_id' when calling
|
|
140
|
+
fail ArgumentError, "Missing the required parameter 'instruction_id' when calling AgentCapabilitiesApi.confirm_transaction_events"
|
|
141
141
|
end
|
|
142
142
|
# verify the required parameter 'agentic_confirm_transaction_events_request' is set
|
|
143
143
|
if @api_client.config.client_side_validation && agentic_confirm_transaction_events_request.nil?
|
|
144
|
-
fail ArgumentError, "Missing the required parameter 'agentic_confirm_transaction_events_request' when calling
|
|
144
|
+
fail ArgumentError, "Missing the required parameter 'agentic_confirm_transaction_events_request' when calling AgentCapabilitiesApi.confirm_transaction_events"
|
|
145
145
|
end
|
|
146
146
|
# resource path
|
|
147
|
-
local_var_path = '
|
|
147
|
+
local_var_path = 'icc/v1/instructions/{instructionId}/confirmations'.sub('{' + 'instructionId' + '}', instruction_id.to_s)
|
|
148
148
|
|
|
149
149
|
# query parameters
|
|
150
150
|
query_params = {}
|
|
@@ -186,7 +186,88 @@ module CyberSource
|
|
|
186
186
|
if @api_client.config.debugging
|
|
187
187
|
begin
|
|
188
188
|
raise
|
|
189
|
-
@api_client.config.logger.debug "API called:
|
|
189
|
+
@api_client.config.logger.debug "API called: AgentCapabilitiesApi#confirm_transaction_events\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
190
|
+
rescue
|
|
191
|
+
puts 'Cannot write to log'
|
|
192
|
+
end
|
|
193
|
+
end
|
|
194
|
+
return data, status_code, headers
|
|
195
|
+
end
|
|
196
|
+
# Enroll a card
|
|
197
|
+
# Enroll a payment card for agentic or e-commerce transactions. This is typically the first step in the Intelligent Commerce payment lifecycle — the agent calls this endpoint to register a consumer's card, creating a tokenized reference that can be used in subsequent purchase instructions and payment credential retrieval. Requires device information, consumer identity, billing details, and payment instrument references. Returns a status of ACTIVE (HTTP 200) if enrollment completes immediately, or PENDING (HTTP 202) with pendingEvents if cardholder authentication is required. Call this endpoint when a consumer wants to add a new payment card or when setting up a card for agentic payment flows.
|
|
198
|
+
#
|
|
199
|
+
# @param agentic_card_enrollment_request
|
|
200
|
+
# @param [Hash] opts the optional parameters
|
|
201
|
+
# @return [AgenticCardEnrollmentResponse200]
|
|
202
|
+
#
|
|
203
|
+
def enroll_card(agentic_card_enrollment_request, opts = {})
|
|
204
|
+
data, status_code, headers = enroll_card_with_http_info(agentic_card_enrollment_request, opts)
|
|
205
|
+
return data, status_code, headers
|
|
206
|
+
end
|
|
207
|
+
|
|
208
|
+
# Enroll a card
|
|
209
|
+
# Enroll a payment card for agentic or e-commerce transactions. This is typically the first step in the Intelligent Commerce payment lifecycle — the agent calls this endpoint to register a consumer's card, creating a tokenized reference that can be used in subsequent purchase instructions and payment credential retrieval. Requires device information, consumer identity, billing details, and payment instrument references. Returns a status of ACTIVE (HTTP 200) if enrollment completes immediately, or PENDING (HTTP 202) with pendingEvents if cardholder authentication is required. Call this endpoint when a consumer wants to add a new payment card or when setting up a card for agentic payment flows.
|
|
210
|
+
# @param agentic_card_enrollment_request
|
|
211
|
+
# @param [Hash] opts the optional parameters
|
|
212
|
+
# @return [Array<(AgenticCardEnrollmentResponse200, Fixnum, Hash)>] AgenticCardEnrollmentResponse200 data, response status code and response headers
|
|
213
|
+
def enroll_card_with_http_info(agentic_card_enrollment_request, opts = {})
|
|
214
|
+
|
|
215
|
+
if @api_client.config.debugging
|
|
216
|
+
begin
|
|
217
|
+
raise
|
|
218
|
+
@api_client.config.logger.debug 'Calling API: AgentCapabilitiesApi.enroll_card ...'
|
|
219
|
+
rescue
|
|
220
|
+
puts 'Cannot write to log'
|
|
221
|
+
end
|
|
222
|
+
end
|
|
223
|
+
# verify the required parameter 'agentic_card_enrollment_request' is set
|
|
224
|
+
if @api_client.config.client_side_validation && agentic_card_enrollment_request.nil?
|
|
225
|
+
fail ArgumentError, "Missing the required parameter 'agentic_card_enrollment_request' when calling AgentCapabilitiesApi.enroll_card"
|
|
226
|
+
end
|
|
227
|
+
# resource path
|
|
228
|
+
local_var_path = 'icc/v1/tokens'
|
|
229
|
+
|
|
230
|
+
# query parameters
|
|
231
|
+
query_params = {}
|
|
232
|
+
|
|
233
|
+
# header parameters
|
|
234
|
+
header_params = {}
|
|
235
|
+
# HTTP header 'Accept' (if needed)
|
|
236
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/hal+json;charset=utf-8'])
|
|
237
|
+
# HTTP header 'Content-Type'
|
|
238
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json;charset=utf-8'])
|
|
239
|
+
|
|
240
|
+
# form parameters
|
|
241
|
+
form_params = {}
|
|
242
|
+
|
|
243
|
+
# http body (model)
|
|
244
|
+
post_body = @api_client.object_to_http_body(agentic_card_enrollment_request)
|
|
245
|
+
sdk_tracker = SdkTracker.new
|
|
246
|
+
post_body = sdk_tracker.insert_developer_id_tracker(post_body, 'AgenticCardEnrollmentRequest', @api_client.config.host, @api_client.merchantconfig.defaultDeveloperId)
|
|
247
|
+
inbound_mle_status = "mandatory"
|
|
248
|
+
if MLEUtility.check_is_mle_for_API(@api_client.merchantconfig, inbound_mle_status, ["enroll_card","enroll_card_with_http_info"])
|
|
249
|
+
begin
|
|
250
|
+
post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body)
|
|
251
|
+
rescue
|
|
252
|
+
raise
|
|
253
|
+
end
|
|
254
|
+
end
|
|
255
|
+
|
|
256
|
+
is_response_mle_for_api = MLEUtility.check_is_response_mle_for_api(@api_client.merchantconfig, ["enroll_card","enroll_card_with_http_info"])
|
|
257
|
+
|
|
258
|
+
auth_names = []
|
|
259
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
|
260
|
+
:header_params => header_params,
|
|
261
|
+
:query_params => query_params,
|
|
262
|
+
:form_params => form_params,
|
|
263
|
+
:body => post_body,
|
|
264
|
+
:auth_names => auth_names,
|
|
265
|
+
:return_type => 'AgenticCardEnrollmentResponse200',
|
|
266
|
+
:isResponseMLEForApi => is_response_mle_for_api)
|
|
267
|
+
if @api_client.config.debugging
|
|
268
|
+
begin
|
|
269
|
+
raise
|
|
270
|
+
@api_client.config.logger.debug "API called: AgentCapabilitiesApi#enroll_card\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
190
271
|
rescue
|
|
191
272
|
puts 'Cannot write to log'
|
|
192
273
|
end
|
|
@@ -194,7 +275,7 @@ module CyberSource
|
|
|
194
275
|
return data, status_code, headers
|
|
195
276
|
end
|
|
196
277
|
# Initiate a purchase intent
|
|
197
|
-
#
|
|
278
|
+
# Create a new purchase intent (instruction) for an agentic transaction. The agent calls this endpoint after a card has been enrolled to define what the consumer wants to buy. The request includes payment instrument references, device and assurance data, mandates (spending limits, merchant preferences, and product descriptions), and optional buyer information. Return an instructionId (HTTP 200) if the intent is created immediately, or PENDING (HTTP 202) with pendingEvents if cardholder authentication is required. The instructionId returned is used in all subsequent operations - update, cancel, retrieve credentials, and confirm transaction.
|
|
198
279
|
#
|
|
199
280
|
# @param agentic_create_purchase_intent_request
|
|
200
281
|
# @param [Hash] opts the optional parameters
|
|
@@ -206,7 +287,7 @@ module CyberSource
|
|
|
206
287
|
end
|
|
207
288
|
|
|
208
289
|
# Initiate a purchase intent
|
|
209
|
-
#
|
|
290
|
+
# Create a new purchase intent (instruction) for an agentic transaction. The agent calls this endpoint after a card has been enrolled to define what the consumer wants to buy. The request includes payment instrument references, device and assurance data, mandates (spending limits, merchant preferences, and product descriptions), and optional buyer information. Return an instructionId (HTTP 200) if the intent is created immediately, or PENDING (HTTP 202) with pendingEvents if cardholder authentication is required. The instructionId returned is used in all subsequent operations - update, cancel, retrieve credentials, and confirm transaction.
|
|
210
291
|
# @param agentic_create_purchase_intent_request
|
|
211
292
|
# @param [Hash] opts the optional parameters
|
|
212
293
|
# @return [Array<(AgenticCreatePurchaseIntentResponse200, Fixnum, Hash)>] AgenticCreatePurchaseIntentResponse200 data, response status code and response headers
|
|
@@ -215,17 +296,17 @@ module CyberSource
|
|
|
215
296
|
if @api_client.config.debugging
|
|
216
297
|
begin
|
|
217
298
|
raise
|
|
218
|
-
@api_client.config.logger.debug 'Calling API:
|
|
299
|
+
@api_client.config.logger.debug 'Calling API: AgentCapabilitiesApi.initiate_purchase_intent ...'
|
|
219
300
|
rescue
|
|
220
301
|
puts 'Cannot write to log'
|
|
221
302
|
end
|
|
222
303
|
end
|
|
223
304
|
# verify the required parameter 'agentic_create_purchase_intent_request' is set
|
|
224
305
|
if @api_client.config.client_side_validation && agentic_create_purchase_intent_request.nil?
|
|
225
|
-
fail ArgumentError, "Missing the required parameter 'agentic_create_purchase_intent_request' when calling
|
|
306
|
+
fail ArgumentError, "Missing the required parameter 'agentic_create_purchase_intent_request' when calling AgentCapabilitiesApi.initiate_purchase_intent"
|
|
226
307
|
end
|
|
227
308
|
# resource path
|
|
228
|
-
local_var_path = '
|
|
309
|
+
local_var_path = 'icc/v1/instructions'
|
|
229
310
|
|
|
230
311
|
# query parameters
|
|
231
312
|
query_params = {}
|
|
@@ -267,7 +348,7 @@ module CyberSource
|
|
|
267
348
|
if @api_client.config.debugging
|
|
268
349
|
begin
|
|
269
350
|
raise
|
|
270
|
-
@api_client.config.logger.debug "API called:
|
|
351
|
+
@api_client.config.logger.debug "API called: AgentCapabilitiesApi#initiate_purchase_intent\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
271
352
|
rescue
|
|
272
353
|
puts 'Cannot write to log'
|
|
273
354
|
end
|
|
@@ -275,7 +356,7 @@ module CyberSource
|
|
|
275
356
|
return data, status_code, headers
|
|
276
357
|
end
|
|
277
358
|
# Retrieve payment credentials
|
|
278
|
-
# Retrieve a
|
|
359
|
+
# Retrieve tokenized payment credentials for a purchase intent to complete the transaction at a merchant. The agent calls this endpoint after a purchase intent has been created and approved, providing transaction-level details including order information, merchant details, payment options, and production information. Returns COMPLETED (HTTP 200) with a signed payload containing encrypted payment credentials (authorization token and JWS-signed payload), or PENDING (HTTP 202) with pendingEvents if additional cardholder authentication is required. The signed payload is used by the merchant's payment processor to complete the transaction.
|
|
279
360
|
#
|
|
280
361
|
# @param instruction_id Unique identifier for the purchase intent instruction.
|
|
281
362
|
# @param agentic_retrieve_payment_credentials_request
|
|
@@ -288,7 +369,7 @@ module CyberSource
|
|
|
288
369
|
end
|
|
289
370
|
|
|
290
371
|
# Retrieve payment credentials
|
|
291
|
-
# Retrieve a
|
|
372
|
+
# Retrieve tokenized payment credentials for a purchase intent to complete the transaction at a merchant. The agent calls this endpoint after a purchase intent has been created and approved, providing transaction-level details including order information, merchant details, payment options, and production information. Returns COMPLETED (HTTP 200) with a signed payload containing encrypted payment credentials (authorization token and JWS-signed payload), or PENDING (HTTP 202) with pendingEvents if additional cardholder authentication is required. The signed payload is used by the merchant's payment processor to complete the transaction.
|
|
292
373
|
# @param instruction_id Unique identifier for the purchase intent instruction.
|
|
293
374
|
# @param agentic_retrieve_payment_credentials_request
|
|
294
375
|
# @param [Hash] opts the optional parameters
|
|
@@ -298,21 +379,21 @@ module CyberSource
|
|
|
298
379
|
if @api_client.config.debugging
|
|
299
380
|
begin
|
|
300
381
|
raise
|
|
301
|
-
@api_client.config.logger.debug 'Calling API:
|
|
382
|
+
@api_client.config.logger.debug 'Calling API: AgentCapabilitiesApi.retrieve_payment_credentials ...'
|
|
302
383
|
rescue
|
|
303
384
|
puts 'Cannot write to log'
|
|
304
385
|
end
|
|
305
386
|
end
|
|
306
387
|
# verify the required parameter 'instruction_id' is set
|
|
307
388
|
if @api_client.config.client_side_validation && instruction_id.nil?
|
|
308
|
-
fail ArgumentError, "Missing the required parameter 'instruction_id' when calling
|
|
389
|
+
fail ArgumentError, "Missing the required parameter 'instruction_id' when calling AgentCapabilitiesApi.retrieve_payment_credentials"
|
|
309
390
|
end
|
|
310
391
|
# verify the required parameter 'agentic_retrieve_payment_credentials_request' is set
|
|
311
392
|
if @api_client.config.client_side_validation && agentic_retrieve_payment_credentials_request.nil?
|
|
312
|
-
fail ArgumentError, "Missing the required parameter 'agentic_retrieve_payment_credentials_request' when calling
|
|
393
|
+
fail ArgumentError, "Missing the required parameter 'agentic_retrieve_payment_credentials_request' when calling AgentCapabilitiesApi.retrieve_payment_credentials"
|
|
313
394
|
end
|
|
314
395
|
# resource path
|
|
315
|
-
local_var_path = '
|
|
396
|
+
local_var_path = 'icc/v1/instructions/{instructionId}/credentials'.sub('{' + 'instructionId' + '}', instruction_id.to_s)
|
|
316
397
|
|
|
317
398
|
# query parameters
|
|
318
399
|
query_params = {}
|
|
@@ -354,7 +435,7 @@ module CyberSource
|
|
|
354
435
|
if @api_client.config.debugging
|
|
355
436
|
begin
|
|
356
437
|
raise
|
|
357
|
-
@api_client.config.logger.debug "API called:
|
|
438
|
+
@api_client.config.logger.debug "API called: AgentCapabilitiesApi#retrieve_payment_credentials\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
358
439
|
rescue
|
|
359
440
|
puts 'Cannot write to log'
|
|
360
441
|
end
|
|
@@ -362,7 +443,7 @@ module CyberSource
|
|
|
362
443
|
return data, status_code, headers
|
|
363
444
|
end
|
|
364
445
|
# Update a purchase intent
|
|
365
|
-
#
|
|
446
|
+
# Update an existing purchase intent (instruction) identified by its instructionId. The agent calls this endpoint when the consumer modifies their order — for example, changing the quantity, updating mandates, switching payment instruments, or changing shipping details. The request body has the same structure as the initiate request. Returns the same instructionId (HTTP 200) on success, or PENDING (HTTP 202) with pendingEvents if additional cardholder authentication is required for the updated intent.
|
|
366
447
|
#
|
|
367
448
|
# @param instruction_id Unique identifier for the purchase intent instruction.
|
|
368
449
|
# @param agentic_update_purchase_intent_request
|
|
@@ -375,7 +456,7 @@ module CyberSource
|
|
|
375
456
|
end
|
|
376
457
|
|
|
377
458
|
# Update a purchase intent
|
|
378
|
-
#
|
|
459
|
+
# Update an existing purchase intent (instruction) identified by its instructionId. The agent calls this endpoint when the consumer modifies their order — for example, changing the quantity, updating mandates, switching payment instruments, or changing shipping details. The request body has the same structure as the initiate request. Returns the same instructionId (HTTP 200) on success, or PENDING (HTTP 202) with pendingEvents if additional cardholder authentication is required for the updated intent.
|
|
379
460
|
# @param instruction_id Unique identifier for the purchase intent instruction.
|
|
380
461
|
# @param agentic_update_purchase_intent_request
|
|
381
462
|
# @param [Hash] opts the optional parameters
|
|
@@ -385,21 +466,21 @@ module CyberSource
|
|
|
385
466
|
if @api_client.config.debugging
|
|
386
467
|
begin
|
|
387
468
|
raise
|
|
388
|
-
@api_client.config.logger.debug 'Calling API:
|
|
469
|
+
@api_client.config.logger.debug 'Calling API: AgentCapabilitiesApi.update_purchase_intent ...'
|
|
389
470
|
rescue
|
|
390
471
|
puts 'Cannot write to log'
|
|
391
472
|
end
|
|
392
473
|
end
|
|
393
474
|
# verify the required parameter 'instruction_id' is set
|
|
394
475
|
if @api_client.config.client_side_validation && instruction_id.nil?
|
|
395
|
-
fail ArgumentError, "Missing the required parameter 'instruction_id' when calling
|
|
476
|
+
fail ArgumentError, "Missing the required parameter 'instruction_id' when calling AgentCapabilitiesApi.update_purchase_intent"
|
|
396
477
|
end
|
|
397
478
|
# verify the required parameter 'agentic_update_purchase_intent_request' is set
|
|
398
479
|
if @api_client.config.client_side_validation && agentic_update_purchase_intent_request.nil?
|
|
399
|
-
fail ArgumentError, "Missing the required parameter 'agentic_update_purchase_intent_request' when calling
|
|
480
|
+
fail ArgumentError, "Missing the required parameter 'agentic_update_purchase_intent_request' when calling AgentCapabilitiesApi.update_purchase_intent"
|
|
400
481
|
end
|
|
401
482
|
# resource path
|
|
402
|
-
local_var_path = '
|
|
483
|
+
local_var_path = 'icc/v1/instructions/{instructionId}'.sub('{' + 'instructionId' + '}', instruction_id.to_s)
|
|
403
484
|
|
|
404
485
|
# query parameters
|
|
405
486
|
query_params = {}
|
|
@@ -441,7 +522,7 @@ module CyberSource
|
|
|
441
522
|
if @api_client.config.debugging
|
|
442
523
|
begin
|
|
443
524
|
raise
|
|
444
|
-
@api_client.config.logger.debug "API called:
|
|
525
|
+
@api_client.config.logger.debug "API called: AgentCapabilitiesApi#update_purchase_intent\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
445
526
|
rescue
|
|
446
527
|
puts 'Cannot write to log'
|
|
447
528
|
end
|
|
@@ -239,7 +239,7 @@ module CyberSource
|
|
|
239
239
|
# header parameters
|
|
240
240
|
header_params = {}
|
|
241
241
|
# HTTP header 'Accept' (if needed)
|
|
242
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json;charset=utf-8'])
|
|
242
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/json;charset=utf-8'])
|
|
243
243
|
# HTTP header 'Content-Type'
|
|
244
244
|
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json;charset=utf-8'])
|
|
245
245
|
|