cybersource_rest_client 0.0.81 → 0.0.83
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 +79 -42
- data/lib/AuthenticationSDK/core/MerchantConfig.rb +9 -2
- data/lib/AuthenticationSDK/logging/log_configuration.rb +2 -1
- data/lib/AuthenticationSDK/util/AuthJWEUtility.rb +1 -0
- data/lib/AuthenticationSDK/util/Constants.rb +2 -0
- data/lib/cybersource_rest_client/api/bank_account_validation_api.rb +3 -3
- data/lib/cybersource_rest_client/api/batches_api.rb +9 -9
- data/lib/cybersource_rest_client/api/bin_lookup_api.rb +3 -3
- data/lib/cybersource_rest_client/api/create_new_webhooks_api.rb +9 -9
- data/lib/cybersource_rest_client/api/decision_manager_api.rb +6 -6
- data/lib/cybersource_rest_client/api/device_de_association_api.rb +3 -3
- data/lib/cybersource_rest_client/api/device_search_api.rb +6 -6
- data/lib/cybersource_rest_client/api/invoice_settings_api.rb +12 -0
- data/lib/cybersource_rest_client/api/manage_webhooks_api.rb +15 -15
- data/lib/cybersource_rest_client/api/merchant_boarding_api.rb +6 -6
- data/lib/cybersource_rest_client/api/merchant_defined_fields_api.rb +9 -9
- data/lib/cybersource_rest_client/api/offers_api.rb +9 -8
- data/lib/cybersource_rest_client/api/pull_funds_api.rb +404 -0
- data/lib/cybersource_rest_client/api/subscriptions_api.rb +3 -0
- data/lib/cybersource_rest_client/api/token_api.rb +98 -8
- data/lib/cybersource_rest_client/api/tokenized_card_api.rb +16 -16
- data/lib/cybersource_rest_client/api/{transient_token_data_api.rb → transient_token_data_v2_api.rb} +91 -9
- data/lib/cybersource_rest_client/api/unified_checkout_v1_capture_context_api.rb +104 -0
- data/lib/cybersource_rest_client/models/add_negative_list_request.rb +1 -1
- data/lib/cybersource_rest_client/models/boardingv1registrations_integration_information.rb +15 -5
- data/lib/cybersource_rest_client/models/boardingv1registrations_integration_information_msd.rb +196 -0
- data/lib/cybersource_rest_client/models/card_processing_config_common.rb +11 -1
- data/lib/cybersource_rest_client/models/card_processing_config_common_acquirer_agreement.rb +190 -0
- data/lib/cybersource_rest_client/models/card_processing_config_common_acquirer_agreement_acquirer_code.rb +355 -0
- data/lib/cybersource_rest_client/models/card_processing_config_common_acquirer_agreement_acquirer_code_payment_options.rb +192 -0
- data/lib/cybersource_rest_client/models/check_payer_auth_enrollment_request.rb +1 -1
- data/lib/cybersource_rest_client/models/create_subscription_request.rb +1 -1
- data/lib/cybersource_rest_client/models/create_subscription_request_1.rb +1 -1
- data/lib/cybersource_rest_client/models/fraud_marking_action_request.rb +1 -1
- data/lib/cybersource_rest_client/models/generate_unified_checkout_v1_capture_context_request.rb +334 -0
- data/lib/cybersource_rest_client/models/get_all_subscriptions_response_order_information.rb +1 -1
- data/lib/cybersource_rest_client/models/get_all_subscriptions_response_order_information_amount_details.rb +240 -0
- data/lib/cybersource_rest_client/models/get_all_subscriptions_response_order_information_amount_details_surcharge.rb +196 -0
- data/lib/cybersource_rest_client/models/inline_response_200_1.rb +15 -42
- data/lib/cybersource_rest_client/models/inline_response_200_10.rb +10 -55
- data/lib/cybersource_rest_client/models/inline_response_200_11.rb +33 -37
- data/lib/cybersource_rest_client/models/{inline_response_200_10_devices.rb → inline_response_200_11_devices.rb} +2 -2
- data/lib/cybersource_rest_client/models/{inline_response_200_10_payment_processor_to_terminal_map.rb → inline_response_200_11_payment_processor_to_terminal_map.rb} +1 -1
- data/lib/cybersource_rest_client/models/inline_response_200_12.rb +47 -86
- data/lib/cybersource_rest_client/models/{inline_response_200_11__embedded.rb → inline_response_200_12__embedded.rb} +2 -2
- data/lib/cybersource_rest_client/models/{inline_response_200_11__embedded__links.rb → inline_response_200_12__embedded__links.rb} +2 -2
- data/lib/cybersource_rest_client/models/{inline_response_200_11__embedded__links_reports.rb → inline_response_200_12__embedded__links_reports.rb} +1 -1
- data/lib/cybersource_rest_client/models/{inline_response_200_11__embedded_batches.rb → inline_response_200_12__embedded_batches.rb} +3 -3
- data/lib/cybersource_rest_client/models/{inline_response_200_11__embedded_totals.rb → inline_response_200_12__embedded_totals.rb} +1 -1
- data/lib/cybersource_rest_client/models/inline_response_200_12__links.rb +16 -17
- data/lib/cybersource_rest_client/models/inline_response_200_13.rb +47 -49
- data/lib/cybersource_rest_client/models/inline_response_200_13__links.rb +201 -0
- data/lib/cybersource_rest_client/models/{inline_response_200_12__links_report.rb → inline_response_200_13__links_report.rb} +1 -1
- data/lib/cybersource_rest_client/models/{inline_response_200_12_billing.rb → inline_response_200_13_billing.rb} +1 -1
- data/lib/cybersource_rest_client/models/inline_response_200_14.rb +102 -31
- data/lib/cybersource_rest_client/models/{inline_response_200_13_records.rb → inline_response_200_14_records.rb} +3 -3
- data/lib/cybersource_rest_client/models/{inline_response_200_13_response_record.rb → inline_response_200_14_response_record.rb} +2 -2
- data/lib/cybersource_rest_client/models/{inline_response_200_13_response_record_additional_updates.rb → inline_response_200_14_response_record_additional_updates.rb} +1 -1
- data/lib/cybersource_rest_client/models/{inline_response_200_13_source_record.rb → inline_response_200_14_source_record.rb} +1 -1
- data/lib/cybersource_rest_client/models/inline_response_200_15.rb +18 -84
- data/lib/cybersource_rest_client/models/inline_response_200_16.rb +287 -0
- data/lib/cybersource_rest_client/models/{inline_response_200_15_client_reference_information.rb → inline_response_200_16_client_reference_information.rb} +1 -1
- data/lib/cybersource_rest_client/models/{tmsv2_tokenized_card__links.rb → inline_response_200_1__links.rb} +2 -2
- data/lib/cybersource_rest_client/models/{tmsv2_tokenized_card__links_self.rb → inline_response_200_1__links_self.rb} +1 -2
- data/lib/cybersource_rest_client/models/inline_response_200_2.rb +29 -31
- data/lib/cybersource_rest_client/models/{inline_response_200_1_content.rb → inline_response_200_2_content.rb} +1 -1
- data/lib/cybersource_rest_client/models/inline_response_200_3.rb +32 -103
- data/lib/cybersource_rest_client/models/{inline_response_200_2__embedded.rb → inline_response_200_3__embedded.rb} +3 -3
- data/lib/cybersource_rest_client/models/{inline_response_200_2__embedded_capture.rb → inline_response_200_3__embedded_capture.rb} +2 -2
- data/lib/cybersource_rest_client/models/{inline_response_200_2__embedded_capture__links.rb → inline_response_200_3__embedded_capture__links.rb} +2 -2
- data/lib/cybersource_rest_client/models/{inline_response_200_2__embedded_capture__links_self.rb → inline_response_200_3__embedded_capture__links_self.rb} +1 -1
- data/lib/cybersource_rest_client/models/{inline_response_200_2__embedded_reversal.rb → inline_response_200_3__embedded_reversal.rb} +2 -2
- data/lib/cybersource_rest_client/models/{inline_response_200_2__embedded_reversal__links.rb → inline_response_200_3__embedded_reversal__links.rb} +2 -2
- data/lib/cybersource_rest_client/models/{inline_response_200_2__embedded_reversal__links_self.rb → inline_response_200_3__embedded_reversal__links_self.rb} +1 -1
- data/lib/cybersource_rest_client/models/inline_response_200_4.rb +100 -54
- data/lib/cybersource_rest_client/models/inline_response_200_5.rb +65 -25
- data/lib/cybersource_rest_client/models/{inline_response_200_4_integration_information.rb → inline_response_200_5_integration_information.rb} +16 -6
- data/lib/cybersource_rest_client/models/{inline_response_200_4_integration_information_tenant_configurations.rb → inline_response_200_5_integration_information_tenant_configurations.rb} +1 -1
- data/lib/cybersource_rest_client/models/inline_response_200_6.rb +25 -126
- data/lib/cybersource_rest_client/models/inline_response_200_7.rb +1 -12
- data/lib/cybersource_rest_client/models/inline_response_200_8.rb +129 -51
- data/lib/cybersource_rest_client/models/inline_response_200_9.rb +55 -10
- data/lib/cybersource_rest_client/models/{inline_response_200_8_devices.rb → inline_response_200_9_devices.rb} +1 -1
- data/lib/cybersource_rest_client/models/inline_response_201_1.rb +22 -31
- data/lib/cybersource_rest_client/models/inline_response_201_1__links.rb +219 -0
- data/lib/cybersource_rest_client/models/{inline_response_200_11__links.rb → inline_response_201_1__links_customer.rb} +3 -13
- data/lib/cybersource_rest_client/models/inline_response_201_1__links_instrument_identifier.rb +190 -0
- data/lib/cybersource_rest_client/models/inline_response_201_1__links_payment_instruments.rb +190 -0
- data/lib/cybersource_rest_client/models/inline_response_201_1__links_tokenized_card.rb +190 -0
- data/lib/cybersource_rest_client/models/inline_response_201_1_card.rb +241 -0
- data/lib/cybersource_rest_client/models/{tokenizedcard_request.rb → inline_response_201_1_tokenized_card.rb} +39 -108
- data/lib/cybersource_rest_client/models/inline_response_201_2.rb +7 -37
- data/lib/cybersource_rest_client/models/inline_response_201_3.rb +26 -59
- data/lib/cybersource_rest_client/models/{inline_response_201_2_payout_information.rb → inline_response_201_3_payout_information.rb} +3 -3
- data/lib/cybersource_rest_client/models/{inline_response_201_2_payout_information_pull_funds.rb → inline_response_201_3_payout_information_pull_funds.rb} +1 -1
- data/lib/cybersource_rest_client/models/{inline_response_201_2_payout_information_push_funds.rb → inline_response_201_3_payout_information_push_funds.rb} +1 -1
- data/lib/cybersource_rest_client/models/inline_response_201_4.rb +78 -19
- data/lib/cybersource_rest_client/models/{inline_response_201_3_integration_information.rb → inline_response_201_4_integration_information.rb} +2 -2
- data/lib/cybersource_rest_client/models/{inline_response_201_3_integration_information_tenant_configurations.rb → inline_response_201_4_integration_information_tenant_configurations.rb} +1 -1
- data/lib/cybersource_rest_client/models/{inline_response_201_3_organization_information.rb → inline_response_201_4_organization_information.rb} +1 -1
- data/lib/cybersource_rest_client/models/{inline_response_201_3_product_information_setups.rb → inline_response_201_4_product_information_setups.rb} +2 -2
- data/lib/cybersource_rest_client/models/{inline_response_201_3_registration_information.rb → inline_response_201_4_registration_information.rb} +1 -1
- data/lib/cybersource_rest_client/models/{inline_response_201_3_setups.rb → inline_response_201_4_setups.rb} +5 -5
- data/lib/cybersource_rest_client/models/{inline_response_201_3_setups_commerce_solutions.rb → inline_response_201_4_setups_commerce_solutions.rb} +4 -4
- data/lib/cybersource_rest_client/models/{inline_response_201_3_setups_payments.rb → inline_response_201_4_setups_payments.rb} +21 -21
- data/lib/cybersource_rest_client/models/{inline_response_201_3_setups_payments_alternative_payment_methods.rb → inline_response_201_4_setups_payments_alternative_payment_methods.rb} +3 -3
- data/lib/cybersource_rest_client/models/{inline_response_201_3_setups_payments_alternative_payment_methods_configuration_status.rb → inline_response_201_4_setups_payments_alternative_payment_methods_configuration_status.rb} +1 -1
- data/lib/cybersource_rest_client/models/{inline_response_201_3_setups_payments_card_processing.rb → inline_response_201_4_setups_payments_card_processing.rb} +3 -3
- data/lib/cybersource_rest_client/models/{inline_response_201_3_setups_payments_card_processing_configuration_status.rb → inline_response_201_4_setups_payments_card_processing_configuration_status.rb} +1 -1
- data/lib/cybersource_rest_client/models/{inline_response_201_3_setups_payments_card_processing_subscription_status.rb → inline_response_201_4_setups_payments_card_processing_subscription_status.rb} +1 -1
- data/lib/cybersource_rest_client/models/{inline_response_201_3_setups_payments_digital_payments.rb → inline_response_201_4_setups_payments_digital_payments.rb} +2 -2
- data/lib/cybersource_rest_client/models/{inline_response_201_3_setups_risk.rb → inline_response_201_4_setups_risk.rb} +3 -3
- data/lib/cybersource_rest_client/models/{inline_response_201_3_setups_value_added_services.rb → inline_response_201_4_setups_value_added_services.rb} +4 -4
- data/lib/cybersource_rest_client/models/inline_response_201_5.rb +25 -117
- data/lib/cybersource_rest_client/models/{inline_response_201_4_key_information.rb → inline_response_201_5_key_information.rb} +2 -2
- data/lib/cybersource_rest_client/models/{inline_response_201_4_key_information_error_information.rb → inline_response_201_5_key_information_error_information.rb} +2 -2
- data/lib/cybersource_rest_client/models/{inline_response_201_4_key_information_error_information_details.rb → inline_response_201_5_key_information_error_information_details.rb} +1 -1
- data/lib/cybersource_rest_client/models/inline_response_201_6.rb +105 -68
- data/lib/cybersource_rest_client/models/inline_response_201_7.rb +93 -18
- data/lib/cybersource_rest_client/models/{inline_response_201_6_payloads.rb → inline_response_201_7_payloads.rb} +2 -2
- data/lib/cybersource_rest_client/models/{inline_response_201_6_payloads_test_payload.rb → inline_response_201_7_payloads_test_payload.rb} +1 -1
- data/lib/cybersource_rest_client/models/inline_response_201_8.rb +8 -103
- data/lib/cybersource_rest_client/models/inline_response_201_9.rb +297 -0
- data/lib/cybersource_rest_client/models/{inline_response_201_8_client_reference_information.rb → inline_response_201_9_client_reference_information.rb} +1 -1
- data/lib/cybersource_rest_client/models/{inline_response_201_8_error_information.rb → inline_response_201_9_error_information.rb} +1 -1
- data/lib/cybersource_rest_client/models/{inline_response_201_8_order_information.rb → inline_response_201_9_order_information.rb} +2 -2
- data/lib/cybersource_rest_client/models/{inline_response_201_8_order_information_currency_conversion.rb → inline_response_201_9_order_information_currency_conversion.rb} +2 -2
- data/lib/cybersource_rest_client/models/{inline_response_201_8_order_information_currency_conversion_offer.rb → inline_response_201_9_order_information_currency_conversion_offer.rb} +1 -1
- data/lib/cybersource_rest_client/models/{inline_response_201_8_processor_information.rb → inline_response_201_9_processor_information.rb} +1 -1
- data/lib/cybersource_rest_client/models/inline_response_404.rb +10 -20
- data/lib/cybersource_rest_client/models/inline_response_404_1.rb +7 -42
- data/lib/cybersource_rest_client/models/inline_response_404_2.rb +8 -7
- data/lib/cybersource_rest_client/models/{inline_response_404_1_details.rb → inline_response_404_2_details.rb} +1 -1
- data/lib/cybersource_rest_client/models/inline_response_404_3.rb +26 -2
- data/lib/cybersource_rest_client/models/inline_response_404_4.rb +17 -29
- data/lib/cybersource_rest_client/models/{inline_response_404_3_details.rb → inline_response_404_4_details.rb} +1 -1
- data/lib/cybersource_rest_client/models/inline_response_404_5.rb +28 -28
- data/lib/cybersource_rest_client/models/inline_response_404_6.rb +223 -0
- data/lib/cybersource_rest_client/models/inline_response_404_errors.rb +201 -0
- data/lib/cybersource_rest_client/models/invoicing_v2_invoice_settings_get200_response_invoice_settings_information.rb +15 -5
- data/lib/cybersource_rest_client/models/invoicing_v2_invoice_settings_get200_response_invoice_settings_information_custom_redirect_urls.rb +231 -0
- data/lib/cybersource_rest_client/models/invoicingv2invoice_settings_invoice_settings_information.rb +15 -5
- data/lib/cybersource_rest_client/models/payer_auth_setup_request.rb +1 -1
- data/lib/cybersource_rest_client/models/payments_products_payouts_configuration_information_configurations_common.rb +18 -1
- data/lib/cybersource_rest_client/models/payments_products_unified_checkout_subscription_info_features_portfolio_accessof_sensi_data.rb +190 -0
- data/lib/cybersource_rest_client/models/payments_products_unified_checkout_subscription_information_features.rb +205 -5
- data/lib/cybersource_rest_client/models/payments_products_unified_checkout_subscription_information_features_after_pay.rb +190 -0
- data/lib/cybersource_rest_client/models/payments_products_unified_checkout_subscription_information_features_apple_pay.rb +190 -0
- data/lib/cybersource_rest_client/models/payments_products_unified_checkout_subscription_information_features_bancontact.rb +190 -0
- data/lib/cybersource_rest_client/models/payments_products_unified_checkout_subscription_information_features_click_to_pay.rb +190 -0
- data/lib/cybersource_rest_client/models/payments_products_unified_checkout_subscription_information_features_decision_manager.rb +190 -0
- data/lib/cybersource_rest_client/models/payments_products_unified_checkout_subscription_information_features_dragon_pay.rb +190 -0
- data/lib/cybersource_rest_client/models/payments_products_unified_checkout_subscription_information_features_e_check.rb +190 -0
- data/lib/cybersource_rest_client/models/payments_products_unified_checkout_subscription_information_features_google_pay.rb +190 -0
- data/lib/cybersource_rest_client/models/payments_products_unified_checkout_subscription_information_features_ideal.rb +190 -0
- data/lib/cybersource_rest_client/models/payments_products_unified_checkout_subscription_information_features_konbini.rb +190 -0
- data/lib/cybersource_rest_client/models/payments_products_unified_checkout_subscription_information_features_multibanco.rb +190 -0
- data/lib/cybersource_rest_client/models/payments_products_unified_checkout_subscription_information_features_my_bank.rb +190 -0
- data/lib/cybersource_rest_client/models/payments_products_unified_checkout_subscription_information_features_p24.rb +190 -0
- data/lib/cybersource_rest_client/models/payments_products_unified_checkout_subscription_information_features_pay_pal.rb +190 -0
- data/lib/cybersource_rest_client/models/payments_products_unified_checkout_subscription_information_features_payer_authentication.rb +190 -0
- data/lib/cybersource_rest_client/models/payments_products_unified_checkout_subscription_information_features_tink_pay_by_bank.rb +190 -0
- data/lib/cybersource_rest_client/models/payments_products_unified_checkout_subscription_information_features_token_management.rb +190 -0
- data/lib/cybersource_rest_client/models/payments_products_unified_checkout_subscription_information_features_unified_click_to_pay_sdk.rb +190 -0
- data/lib/cybersource_rest_client/models/payments_products_unified_checkout_subscription_information_features_venmo.rb +190 -0
- data/lib/cybersource_rest_client/models/post_payment_credentials_request.rb +4 -4
- data/lib/cybersource_rest_client/models/post_payment_credentials_request_1.rb +269 -0
- data/lib/cybersource_rest_client/models/post_tokenized_card_request.rb +254 -0
- data/lib/cybersource_rest_client/models/pts_v2_credits_post201_response.rb +15 -5
- data/lib/cybersource_rest_client/models/pts_v2_incremental_authorization_patch201_response_error_information.rb +1 -1
- 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_post201_response.rb +11 -1
- data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_clearing_information.rb +315 -0
- data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_error_information.rb +1 -1
- data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_merchant_information.rb +18 -1
- data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_order_information_amount_details.rb +18 -1
- data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_processor_information.rb +18 -1
- data/lib/cybersource_rest_client/models/pts_v2_payments_refund_post201_response.rb +15 -5
- data/lib/cybersource_rest_client/models/pts_v2_payments_refund_post201_response_error_information.rb +213 -0
- data/lib/cybersource_rest_client/models/ptsv1pullfundstransfer_aggregator_information.rb +317 -0
- data/lib/cybersource_rest_client/models/ptsv1pullfundstransfer_aggregator_information_sub_merchant.rb +196 -0
- data/lib/cybersource_rest_client/models/{riskv1authenticationsetups_client_reference_information.rb → ptsv1pullfundstransfer_client_reference_information.rb} +39 -32
- data/lib/cybersource_rest_client/models/ptsv1pullfundstransfer_merchant_information.rb +189 -0
- data/lib/cybersource_rest_client/models/ptsv1pullfundstransfer_merchant_information_merchant_descriptor.rb +349 -0
- data/lib/cybersource_rest_client/models/ptsv1pullfundstransfer_order_information.rb +206 -0
- data/lib/cybersource_rest_client/models/ptsv1pullfundstransfer_order_information_amount_details.rb +275 -0
- data/lib/cybersource_rest_client/models/ptsv1pullfundstransfer_processing_info_funding_options_initiator_origin_ini_transaction.rb +222 -0
- data/lib/cybersource_rest_client/models/ptsv1pullfundstransfer_processing_information.rb +295 -0
- data/lib/cybersource_rest_client/models/ptsv1pullfundstransfer_processing_information_funding_options.rb +189 -0
- data/lib/cybersource_rest_client/models/ptsv1pullfundstransfer_processing_information_funding_options_initiator.rb +228 -0
- data/lib/cybersource_rest_client/models/ptsv1pullfundstransfer_processing_information_payouts_options.rb +196 -0
- data/lib/cybersource_rest_client/models/ptsv1pullfundstransfer_processing_information_recurring_options.rb +190 -0
- data/lib/cybersource_rest_client/models/ptsv1pullfundstransfer_recipient_information.rb +607 -0
- data/lib/cybersource_rest_client/models/ptsv1pullfundstransfer_recipient_information_personal_identification.rb +265 -0
- data/lib/cybersource_rest_client/models/ptsv1pullfundstransfer_sender_information.rb +595 -0
- data/lib/cybersource_rest_client/models/ptsv1pullfundstransfer_sender_information_account.rb +213 -0
- data/lib/cybersource_rest_client/models/ptsv1pullfundstransfer_sender_information_consumer_authentication.rb +206 -0
- data/lib/cybersource_rest_client/models/ptsv1pullfundstransfer_sender_information_consumer_authentication_strong_authentication.rb +264 -0
- data/lib/cybersource_rest_client/models/ptsv1pullfundstransfer_sender_information_payment_information.rb +255 -0
- data/lib/cybersource_rest_client/models/ptsv1pullfundstransfer_sender_information_payment_information_card.rb +291 -0
- data/lib/cybersource_rest_client/models/ptsv1pullfundstransfer_sender_information_payment_information_customer.rb +196 -0
- data/lib/cybersource_rest_client/models/ptsv1pullfundstransfer_sender_information_payment_information_instrument_identifier.rb +196 -0
- data/lib/cybersource_rest_client/models/ptsv1pullfundstransfer_sender_information_payment_information_payment_instrument.rb +196 -0
- data/lib/cybersource_rest_client/models/ptsv1pullfundstransfer_sender_information_payment_information_tokenized_card.rb +281 -0
- data/lib/cybersource_rest_client/models/ptsv1pullfundstransfer_sender_information_personal_identification.rb +274 -0
- data/lib/cybersource_rest_client/models/ptsv1pullfundstransferidrefund_order_information.rb +194 -0
- data/lib/cybersource_rest_client/models/ptsv1pullfundstransferidrefund_order_information_amount_details.rb +205 -0
- data/lib/cybersource_rest_client/models/ptsv1pullfundstransferidreversal_reversal_information.rb +194 -0
- data/lib/cybersource_rest_client/models/ptsv1pullfundstransferidreversal_reversal_information_amount_details.rb +205 -0
- data/lib/cybersource_rest_client/models/ptsv1pushfundstransfer_merchant_information.rb +15 -14
- data/lib/cybersource_rest_client/models/ptsv1pushfundstransfer_merchant_information_merchant_descriptor.rb +298 -0
- data/lib/cybersource_rest_client/models/ptsv1pushfundstransfer_payment_information.rb +219 -0
- data/lib/cybersource_rest_client/models/ptsv1pushfundstransfer_payment_information_card.rb +264 -0
- data/lib/cybersource_rest_client/models/ptsv1pushfundstransfer_payment_information_customer.rb +196 -0
- data/lib/cybersource_rest_client/models/ptsv1pushfundstransfer_payment_information_instrument_identifier.rb +196 -0
- data/lib/cybersource_rest_client/models/ptsv1pushfundstransfer_payment_information_payment_instrument.rb +196 -0
- data/lib/cybersource_rest_client/models/ptsv1pushfundstransfer_processing_information.rb +22 -5
- data/lib/cybersource_rest_client/models/ptsv1pushfundstransfer_processing_information_payouts_options.rb +1 -1
- data/lib/cybersource_rest_client/models/ptsv1pushfundstransfer_recipient_information_payment_information_card.rb +1 -19
- data/lib/cybersource_rest_client/models/ptsv2credits_processing_information.rb +35 -5
- data/lib/cybersource_rest_client/models/ptsv2credits_sender_information.rb +18 -1
- data/lib/cybersource_rest_client/models/ptsv2payments_processing_information.rb +18 -1
- data/lib/cybersource_rest_client/models/ptsv2paymentsidrefunds_processing_information.rb +22 -5
- data/lib/cybersource_rest_client/models/ptsv2payouts_processing_information_payouts_options.rb +1 -1
- data/lib/cybersource_rest_client/models/pull_funds201_response.rb +270 -0
- data/lib/cybersource_rest_client/models/pull_funds201_response__links.rb +239 -0
- data/lib/cybersource_rest_client/models/pull_funds201_response__links_customer.rb +202 -0
- data/lib/cybersource_rest_client/models/pull_funds201_response__links_instrument_identifier.rb +202 -0
- data/lib/cybersource_rest_client/models/pull_funds201_response__links_payment_instrument.rb +202 -0
- data/lib/cybersource_rest_client/models/pull_funds201_response__links_refund.rb +202 -0
- data/lib/cybersource_rest_client/models/pull_funds201_response__links_reversal.rb +202 -0
- data/lib/cybersource_rest_client/models/pull_funds201_response__links_self.rb +202 -0
- data/lib/cybersource_rest_client/models/pull_funds201_response_error_information.rb +225 -0
- data/lib/cybersource_rest_client/models/pull_funds201_response_error_information_details.rb +213 -0
- data/lib/cybersource_rest_client/models/pull_funds201_response_order_information.rb +189 -0
- data/lib/cybersource_rest_client/models/pull_funds201_response_order_information_amount_details.rb +222 -0
- data/lib/cybersource_rest_client/models/pull_funds201_response_processor_information.rb +301 -0
- data/lib/cybersource_rest_client/models/{kmsegressv2keysasym_client_reference_information.rb → pull_funds201_response_processor_information_avs.rb} +2 -3
- data/lib/cybersource_rest_client/models/pull_funds201_response_processor_information_consumer_authentication_response.rb +196 -0
- data/lib/cybersource_rest_client/models/pull_funds_refund201_response.rb +260 -0
- data/lib/cybersource_rest_client/models/pull_funds_refund201_response__links.rb +189 -0
- data/lib/cybersource_rest_client/models/pull_funds_refund201_response__links_self.rb +202 -0
- data/lib/cybersource_rest_client/models/pull_funds_refund201_response_processor_information.rb +213 -0
- data/lib/cybersource_rest_client/models/pull_funds_refund_request.rb +204 -0
- data/lib/cybersource_rest_client/models/pull_funds_request.rb +249 -0
- data/lib/cybersource_rest_client/models/pull_funds_reversal201_response.rb +260 -0
- data/lib/cybersource_rest_client/models/pull_funds_reversal201_response__links.rb +189 -0
- data/lib/cybersource_rest_client/models/pull_funds_reversal201_response__links_self.rb +202 -0
- data/lib/cybersource_rest_client/models/pull_funds_reversal201_response_error_information.rb +219 -0
- data/lib/cybersource_rest_client/models/pull_funds_reversal201_response_error_information_details.rb +207 -0
- data/lib/cybersource_rest_client/models/pull_funds_reversal201_response_processor_information.rb +247 -0
- data/lib/cybersource_rest_client/models/pull_funds_reversal400_response.rb +258 -0
- data/lib/cybersource_rest_client/models/pull_funds_reversal_request.rb +204 -0
- data/lib/cybersource_rest_client/models/push_funds201_response_error_information.rb +1 -1
- data/lib/cybersource_rest_client/models/push_funds201_response_processor_information.rb +15 -5
- data/lib/cybersource_rest_client/models/push_funds201_response_processor_information_merchant_advice.rb +213 -0
- data/lib/cybersource_rest_client/models/push_funds_request.rb +11 -1
- data/lib/cybersource_rest_client/models/rbsv1subscriptions_order_information.rb +189 -0
- data/lib/cybersource_rest_client/models/rbsv1subscriptionsid_order_information_amount_details.rb +15 -5
- data/lib/cybersource_rest_client/models/riskv1addressverifications_order_information_line_items.rb +1 -10
- data/lib/cybersource_rest_client/models/riskv1decisions_client_reference_information.rb +0 -9
- data/lib/cybersource_rest_client/models/riskv1decisions_order_information_line_items.rb +1 -1
- data/lib/cybersource_rest_client/models/riskv1liststypeentries_order_information_line_items.rb +1 -1
- data/lib/cybersource_rest_client/models/save_asym_egress_key.rb +1 -1
- data/lib/cybersource_rest_client/models/tms_bin_lookup_payment_account_information_features.rb +50 -6
- data/lib/cybersource_rest_client/models/tms_embedded_instrument_identifier__links.rb +15 -5
- data/lib/cybersource_rest_client/models/tms_embedded_instrument_identifier__links_tokenizedcards.rb +190 -0
- data/lib/cybersource_rest_client/models/tmsv2_tokenized_card.rb +34 -93
- data/lib/cybersource_rest_client/models/tmsv2_tokenized_card_card.rb +1 -2
- data/lib/cybersource_rest_client/models/tmsv2_tokenized_card_metadata.rb +0 -1
- data/lib/cybersource_rest_client/models/tmsv2tokenize_processing_information.rb +1 -1
- data/lib/cybersource_rest_client/models/{riskv1liststypeentries_client_reference_information.rb → tmsv2tokenizedcards_card.rb} +48 -39
- data/lib/cybersource_rest_client/models/{tmsv2_tokenized_card_passcode.rb → tmsv2tokenizedcards_passcode.rb} +1 -1
- data/lib/cybersource_rest_client/models/{tmsv2tokenstoken_idpaymentcredentials_authenticated_identities.rb → tmsv3tokenstoken_idpaymentcredentials_authenticated_identities.rb} +1 -1
- data/lib/cybersource_rest_client/models/{tmsv2tokenstoken_idpaymentcredentials_device_information.rb → tmsv3tokenstoken_idpaymentcredentials_device_information.rb} +1 -1
- data/lib/cybersource_rest_client/models/{tmsv2tokenstoken_idpaymentcredentials_merchant_information.rb → tmsv3tokenstoken_idpaymentcredentials_merchant_information.rb} +2 -2
- data/lib/cybersource_rest_client/models/{tmsv2tokenstoken_idpaymentcredentials_merchant_information_merchant_descriptor.rb → tmsv3tokenstoken_idpaymentcredentials_merchant_information_merchant_descriptor.rb} +1 -1
- data/lib/cybersource_rest_client/models/{tmsv2tokenstoken_idpaymentcredentials_order_information.rb → tmsv3tokenstoken_idpaymentcredentials_order_information.rb} +3 -3
- data/lib/cybersource_rest_client/models/{tmsv2tokenstoken_idpaymentcredentials_order_information_amount_details.rb → tmsv3tokenstoken_idpaymentcredentials_order_information_amount_details.rb} +1 -1
- data/lib/cybersource_rest_client/models/{tmsv2tokenstoken_idpaymentcredentials_order_information_bill_to.rb → tmsv3tokenstoken_idpaymentcredentials_order_information_bill_to.rb} +1 -1
- data/lib/cybersource_rest_client/models/ucv1sessions_appearance.rb +207 -0
- data/lib/cybersource_rest_client/models/ucv1sessions_appearance_variables.rb +1645 -0
- data/lib/cybersource_rest_client/models/ucv1sessions_capture_mandate.rb +296 -0
- data/lib/cybersource_rest_client/models/ucv1sessions_capture_mandate_cpf.rb +190 -0
- data/lib/cybersource_rest_client/models/ucv1sessions_complete_mandate.rb +229 -0
- data/lib/cybersource_rest_client/models/ucv1sessions_complete_mandate_tms.rb +204 -0
- data/lib/cybersource_rest_client/models/ucv1sessions_data.rb +281 -0
- data/lib/cybersource_rest_client/models/ucv1sessions_data_buyer_information.rb +259 -0
- data/lib/cybersource_rest_client/models/ucv1sessions_data_buyer_information_personal_identification.rb +224 -0
- data/lib/cybersource_rest_client/models/ucv1sessions_data_consumer_authentication_information.rb +230 -0
- data/lib/cybersource_rest_client/models/ucv1sessions_data_device_information.rb +196 -0
- data/lib/cybersource_rest_client/models/ucv1sessions_data_merchant_defined_information.rb +214 -0
- data/lib/cybersource_rest_client/models/ucv1sessions_data_merchant_information.rb +189 -0
- data/lib/cybersource_rest_client/models/ucv1sessions_data_merchant_information_merchant_descriptor.rb +315 -0
- data/lib/cybersource_rest_client/models/ucv1sessions_data_order_information.rb +231 -0
- data/lib/cybersource_rest_client/models/ucv1sessions_data_order_information_amount_details.rb +279 -0
- data/lib/cybersource_rest_client/models/ucv1sessions_data_order_information_amount_details_tax_details.rb +213 -0
- data/lib/cybersource_rest_client/models/ucv1sessions_data_order_information_bill_to.rb +483 -0
- data/lib/cybersource_rest_client/models/ucv1sessions_data_order_information_bill_to_company.rb +298 -0
- data/lib/cybersource_rest_client/models/ucv1sessions_data_payment_information.rb +189 -0
- data/lib/cybersource_rest_client/models/ucv1sessions_data_payment_information_card.rb +196 -0
- data/lib/cybersource_rest_client/models/ucv1sessions_data_processing_information.rb +257 -0
- data/lib/cybersource_rest_client/models/ucv1sessions_data_processing_information_authorization_options.rb +233 -0
- data/lib/cybersource_rest_client/models/ucv1sessions_data_processing_information_authorization_options_initiator.rb +200 -0
- data/lib/cybersource_rest_client/models/ucv1sessions_data_recipient_information.rb +329 -0
- data/lib/cybersource_rest_client/models/ucv1sessions_payment_configurations.rb +210 -0
- data/lib/cybersource_rest_client/models/ucv1sessions_payment_configurations_clicktopay.rb +190 -0
- data/lib/cybersource_rest_client/models/ucv1sessions_payment_configurations_googlepay.rb +192 -0
- data/lib/cybersource_rest_client/models/ucv1sessions_payment_configurations_tms_token.rb +216 -0
- data/lib/cybersource_rest_client/models/ucv1sessions_payment_configurations_tms_token_customer.rb +196 -0
- data/lib/cybersource_rest_client/models/ucv1sessions_payment_configurations_tms_token_instrument_identifiers.rb +195 -0
- data/lib/cybersource_rest_client/models/ucv1sessions_payment_configurations_tms_token_payment_instruments.rb +195 -0
- data/lib/cybersource_rest_client/models/ucv1sessions_transient_token_response_options.rb +190 -0
- data/lib/cybersource_rest_client/models/upv1capturecontexts_data_order_information_bill_to_company.rb +20 -20
- data/lib/cybersource_rest_client/models/upv1capturecontexts_order_information.rb +1 -1
- data/lib/cybersource_rest_client/models/upv1capturecontexts_order_information_bill_to.rb +483 -0
- data/lib/cybersource_rest_client/models/upv1capturecontexts_order_information_bill_to_company.rb +366 -0
- data/lib/cybersource_rest_client/models/validate_export_compliance_request.rb +1 -1
- data/lib/cybersource_rest_client/models/validate_request.rb +1 -1
- data/lib/cybersource_rest_client/models/verify_customer_address_request.rb +1 -1
- data/lib/cybersource_rest_client.rb +218 -73
- metadata +277 -126
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: c7b2145187caddc5e65d832429b125682e89bd7cb5524cce56ac174480dd8fb8
|
|
4
|
+
data.tar.gz: '05439a8ea021577faf619bc4ceff17236524baf1cfaa3738f8712ae278c1f671'
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 82bf63f6b1166f9822849d41bbad0999a78318d158bd891af281e7cee28b6f421b45cc56c6bb309feaf660ecdd1551801976f5091f7bc5419c82f7fdd8e70e27
|
|
7
|
+
data.tar.gz: a2b31e89fea58024cf133481dc8ee379a7ab7f94d810150b77738456f62763125da4a0d0c7342cb7adc4cb05aa365c39ff8afe254ba65e089c7ce6f7146a96ad
|
|
@@ -4,6 +4,7 @@ require 'jwt'
|
|
|
4
4
|
require 'json'
|
|
5
5
|
require 'active_support'
|
|
6
6
|
require 'time'
|
|
7
|
+
require 'securerandom'
|
|
7
8
|
require_relative '../../core/ITokenGeneration.rb'
|
|
8
9
|
require_relative '../../util/Constants.rb'
|
|
9
10
|
require_relative '../../util/ExceptionHandler.rb'
|
|
@@ -16,63 +17,99 @@ public
|
|
|
16
17
|
class GenerateJwtToken
|
|
17
18
|
@log_obj
|
|
18
19
|
|
|
19
|
-
#JWT Token
|
|
20
|
+
# JWT Token generation for JWTv2 specification
|
|
20
21
|
def getToken(merchantconfig_obj, gmtDatetime, isResponseMLEForApi)
|
|
21
22
|
@log_obj = Log.new merchantconfig_obj.log_config, "JwtToken"
|
|
22
23
|
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
if err.message.include? 'PKCS12_parse: mac verify failure'
|
|
46
|
-
@log_obj.logger.error(ExceptionHandler.new.new_custom_error Constants::ERROR_PREFIX + Constants::INCORRECT_KEY_PASS)
|
|
47
|
-
# exit!
|
|
48
|
-
else
|
|
49
|
-
@log_obj.logger.error(ExceptionHandler.new.new_api_exception err)
|
|
50
|
-
# exit!
|
|
24
|
+
begin
|
|
25
|
+
# Get payload claim set for JWTv2
|
|
26
|
+
payload_claim_set = getPayloadClaimSet(merchantconfig_obj, isResponseMLEForApi)
|
|
27
|
+
|
|
28
|
+
# Get cached certificate and private key
|
|
29
|
+
cache_value = Cache.new.fetchCachedP12Certificate(merchantconfig_obj)
|
|
30
|
+
private_key = cache_value.private_key
|
|
31
|
+
jwt_cert_obj = cache_value.cert
|
|
32
|
+
|
|
33
|
+
# Get header claim set for JWTv2
|
|
34
|
+
header_claim_set = getHeaderClaimSet(jwt_cert_obj)
|
|
35
|
+
|
|
36
|
+
# Generate JWT token using RS256 algorithm
|
|
37
|
+
token = JWT.encode(payload_claim_set, private_key, 'RS256', header_claim_set)
|
|
38
|
+
return token
|
|
39
|
+
rescue StandardError => err
|
|
40
|
+
if err.message.include? 'PKCS12_parse: mac verify failure'
|
|
41
|
+
@log_obj.logger.error(ExceptionHandler.new.new_custom_error Constants::ERROR_PREFIX + Constants::INCORRECT_KEY_PASS)
|
|
42
|
+
else
|
|
43
|
+
@log_obj.logger.error(ExceptionHandler.new.new_api_exception err)
|
|
44
|
+
end
|
|
45
|
+
raise err
|
|
51
46
|
end
|
|
52
|
-
raise err
|
|
53
47
|
end
|
|
54
48
|
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
49
|
+
private
|
|
50
|
+
|
|
51
|
+
def getPayloadClaimSet(merchantconfig_obj, isResponseMLEForApi)
|
|
52
|
+
jwt_payload = {}
|
|
53
|
+
request_type = merchantconfig_obj.requestType.upcase
|
|
54
|
+
|
|
55
|
+
# Setting the JWT digest and digest Algorithm when a POST, PUT, or PATCH request is made
|
|
58
56
|
if request_type == Constants::POST_REQUEST_TYPE || request_type == Constants::PUT_REQUEST_TYPE || request_type == Constants::PATCH_REQUEST_TYPE
|
|
59
57
|
payload = merchantconfig_obj.requestJsonData
|
|
60
|
-
|
|
61
|
-
# Note: Digest is not passed for GET calls
|
|
62
58
|
digest = DigestGeneration.new.generateDigest(payload)
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
59
|
+
jwt_payload['digest'] = digest
|
|
60
|
+
jwt_payload['digestAlgorithm'] = 'SHA-256'
|
|
61
|
+
end
|
|
62
|
+
|
|
63
|
+
# Set the iat and exp claims using Unix timestamps
|
|
64
|
+
current_time = Time.now.to_i
|
|
65
|
+
jwt_payload['iat'] = current_time
|
|
66
|
+
jwt_payload['exp'] = current_time + 120 # The exp claim is set to 2 mins more than the iat claim
|
|
67
|
+
|
|
68
|
+
# Set the request method, host and resource path in the JWT body as per the specification for all request types
|
|
69
|
+
jwt_payload['request-method'] = request_type
|
|
70
|
+
jwt_payload['request-host'] = merchantconfig_obj.requestHost
|
|
71
|
+
jwt_payload['request-resource-path'] = extractResourcePath(merchantconfig_obj.requestTarget)
|
|
72
|
+
|
|
73
|
+
# Choose issuer claim in the JWT body as per the use_metakey flag in the config file
|
|
74
|
+
if merchantconfig_obj.useMetaKey
|
|
75
|
+
issuer = merchantconfig_obj.portfolioID
|
|
66
76
|
else
|
|
67
|
-
|
|
77
|
+
issuer = merchantconfig_obj.merchantId
|
|
68
78
|
end
|
|
69
79
|
|
|
80
|
+
jwt_payload['iss'] = issuer
|
|
81
|
+
jwt_payload['jti'] = SecureRandom.uuid # Unique JWT ID
|
|
82
|
+
jwt_payload['v-c-jwt-version'] = '2'
|
|
83
|
+
jwt_payload['v-c-merchant-id'] = merchantconfig_obj.merchantId
|
|
84
|
+
|
|
70
85
|
if isResponseMLEForApi
|
|
71
|
-
|
|
72
|
-
|
|
86
|
+
mle_kid = MLEUtility.validate_and_auto_extract_response_mle_kid(merchantconfig_obj)
|
|
87
|
+
jwt_payload['v-c-response-mle-kid'] = mle_kid
|
|
73
88
|
end
|
|
74
89
|
|
|
75
|
-
|
|
90
|
+
return jwt_payload
|
|
76
91
|
end
|
|
92
|
+
|
|
93
|
+
def getHeaderClaimSet(jwt_cert_obj)
|
|
94
|
+
# Extract serial number from certificate for kid header
|
|
95
|
+
serial_number = MLEUtility.extract_serial_number_from_certificate(jwt_cert_obj)
|
|
96
|
+
|
|
97
|
+
jwt_headers = {
|
|
98
|
+
'kid' => serial_number,
|
|
99
|
+
'typ' => 'JWT'
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
# Add any other future parameters to the header claim set here
|
|
103
|
+
return jwt_headers
|
|
104
|
+
end
|
|
105
|
+
|
|
106
|
+
def extractResourcePath(request_target)
|
|
107
|
+
return '' if request_target.nil? || request_target.empty?
|
|
108
|
+
|
|
109
|
+
# Split the string to remove the query params
|
|
110
|
+
parts = request_target.split('?', 2)
|
|
111
|
+
return parts[0]
|
|
112
|
+
end
|
|
113
|
+
|
|
77
114
|
implements TokenInterface
|
|
78
115
|
end
|
|
@@ -142,7 +142,9 @@ public
|
|
|
142
142
|
|
|
143
143
|
validateMerchantDetails()
|
|
144
144
|
validateMLEConfiguration(cybsPropertyObj)
|
|
145
|
-
|
|
145
|
+
if !@keysDirectory.nil? && !@keysDirectory.to_s.empty? && !@keyFilename.nil? && !@keyFilename.to_s.empty?
|
|
146
|
+
@p12KeyFilePath = File.join(@keysDirectory, @keyFilename + ".p12")
|
|
147
|
+
end
|
|
146
148
|
logAllProperties(cybsPropertyObj)
|
|
147
149
|
end
|
|
148
150
|
|
|
@@ -232,10 +234,15 @@ public
|
|
|
232
234
|
@log_obj.logger.warn(ExceptionHandler.new.new_api_warning Constants::WARNING_PREFIX + Constants::KEY_ALIAS_NULL_EMPTY)
|
|
233
235
|
elsif !@keyAlias.instance_of? String
|
|
234
236
|
@keyAlias=@keyAlias.to_s
|
|
235
|
-
|
|
237
|
+
end
|
|
238
|
+
if !@useMetaKey && @keyAlias != @merchantId
|
|
236
239
|
@keyAlias = @merchantId
|
|
237
240
|
@log_obj.logger.warn(ExceptionHandler.new.new_api_warning Constants::WARNING_PREFIX + Constants::INCORRECT_KEY_ALIAS)
|
|
238
241
|
end
|
|
242
|
+
if @useMetaKey && @keyAlias != @portfolioID
|
|
243
|
+
@keyAlias = @portfolioID
|
|
244
|
+
@log_obj.logger.warn(ExceptionHandler.new.new_api_warning Constants::WARNING_PREFIX + Constants::INCORRECT_KEY_ALIAS_USE_METAKEY)
|
|
245
|
+
end
|
|
239
246
|
if @keyPass.to_s.empty?
|
|
240
247
|
@keyPass = @merchantId
|
|
241
248
|
@log_obj.logger.warn(ExceptionHandler.new.new_api_warning Constants::WARNING_PREFIX + Constants::KEY_PASS_NULL)
|
|
@@ -54,7 +54,8 @@ public
|
|
|
54
54
|
if @maxLogFiles.nil? || @maxLogFiles.to_s.empty?
|
|
55
55
|
@maxLogFiles = Constants::DEFAULT_MAX_LOG_FILES
|
|
56
56
|
log_message += Constants::WARNING_PREFIX + Constants::INVALID_MAX_LOG_FILES + @maxLogFiles
|
|
57
|
-
|
|
57
|
+
end
|
|
58
|
+
if !@maxLogFiles.instance_of? Integer
|
|
58
59
|
@maxLogFiles = @maxLogFiles.to_i
|
|
59
60
|
end
|
|
60
61
|
if @enableMasking == "true"
|
|
@@ -146,6 +146,8 @@
|
|
|
146
146
|
|
|
147
147
|
INCORRECT_KEY_ALIAS = 'The Entered KeyAlias is Incorrect. Assigining merchantID value' unless const_defined?(:INCORRECT_KEY_ALIAS)
|
|
148
148
|
|
|
149
|
+
INCORRECT_KEY_ALIAS_USE_METAKEY = 'The Entered KeyAlias is Incorrect with useMetaKey set to true. Assigining portfolioID value' unless const_defined?(:INCORRECT_KEY_ALIAS_USE_METAKEY)
|
|
150
|
+
|
|
149
151
|
ENABLE_CLIENT_CERT_EMPTY = 'Enable Clientcert is Empty/Null.' unless const_defined?(:ENABLE_CLIENT_CERT_EMPTY)
|
|
150
152
|
|
|
151
153
|
CLIENT_CERT_DIR_EMPTY = 'Client Cert Directory is Empty/Null' unless const_defined?(:CLIENT_CERT_DIR_EMPTY)
|
|
@@ -24,7 +24,7 @@ module CyberSource
|
|
|
24
24
|
#
|
|
25
25
|
# @param account_validations_request
|
|
26
26
|
# @param [Hash] opts the optional parameters
|
|
27
|
-
# @return [
|
|
27
|
+
# @return [InlineResponse20015]
|
|
28
28
|
#
|
|
29
29
|
# DISCLAIMER : Cybersource may allow Customer to access, use, and/or test a Cybersource product or service that may still be in development or has not been market-tested ("Beta Product") solely for the purpose of evaluating the functionality or marketability of the Beta Product (a "Beta Evaluation"). Notwithstanding any language to the contrary, the following terms shall apply with respect to Customer's participation in any Beta Evaluation (and the Beta Product(s)) accessed thereunder): The Parties will enter into a separate form agreement detailing the scope of the Beta Evaluation, requirements, pricing, the length of the beta evaluation period ("Beta Product Form"). Beta Products are not, and may not become, Transaction Services and have not yet been publicly released and are offered for the sole purpose of internal testing and non-commercial evaluation. Customer's use of the Beta Product shall be solely for the purpose of conducting the Beta Evaluation. Customer accepts all risks arising out of the access and use of the Beta Products. Cybersource may, in its sole discretion, at any time, terminate or discontinue the Beta Evaluation. Customer acknowledges and agrees that any Beta Product may still be in development and that Beta Product is provided "AS IS" and may not perform at the level of a commercially available service, may not operate as expected and may be modified prior to release. CYBERSOURCE SHALL NOT BE RESPONSIBLE OR LIABLE UNDER ANY CONTRACT, TORT (INCLUDING NEGLIGENCE), OR OTHERWISE RELATING TO A BETA PRODUCT OR THE BETA EVALUATION (A) FOR LOSS OR INACCURACY OF DATA OR COST OF PROCUREMENT OF SUBSTITUTE GOODS, SERVICES OR TECHNOLOGY, (B) ANY CLAIM, LOSSES, DAMAGES, OR CAUSE OF ACTION ARISING IN CONNECTION WITH THE BETA PRODUCT; OR (C) FOR ANY INDIRECT, INCIDENTAL OR CONSEQUENTIAL DAMAGES INCLUDING, BUT NOT LIMITED TO, LOSS OF REVENUES AND LOSS OF PROFITS.
|
|
30
30
|
def bank_account_validation_request(account_validations_request, opts = {})
|
|
@@ -36,7 +36,7 @@ module CyberSource
|
|
|
36
36
|
# The Visa Bank Account Validation Service is a new standalone product designed to validate customer's routing and bank account number combination for ACH transactions. Merchant's can use this standalone product to validate their customer's account prior to processing an ACH transaction against the customer's account to comply with Nacha's account validation mandate for Web-debit transactions.
|
|
37
37
|
# @param account_validations_request
|
|
38
38
|
# @param [Hash] opts the optional parameters
|
|
39
|
-
# @return [Array<(
|
|
39
|
+
# @return [Array<(InlineResponse20015, Fixnum, Hash)>] InlineResponse20015 data, response status code and response headers
|
|
40
40
|
def bank_account_validation_request_with_http_info(account_validations_request, opts = {})
|
|
41
41
|
|
|
42
42
|
if @api_client.config.debugging
|
|
@@ -89,7 +89,7 @@ module CyberSource
|
|
|
89
89
|
:form_params => form_params,
|
|
90
90
|
:body => post_body,
|
|
91
91
|
:auth_names => auth_names,
|
|
92
|
-
:return_type => '
|
|
92
|
+
:return_type => 'InlineResponse20015',
|
|
93
93
|
:isResponseMLEForApi => is_response_mle_for_api)
|
|
94
94
|
if @api_client.config.debugging
|
|
95
95
|
begin
|
|
@@ -24,7 +24,7 @@ module CyberSource
|
|
|
24
24
|
#
|
|
25
25
|
# @param batch_id Unique identification number assigned to the submitted request.
|
|
26
26
|
# @param [Hash] opts the optional parameters
|
|
27
|
-
# @return [
|
|
27
|
+
# @return [InlineResponse20014]
|
|
28
28
|
#
|
|
29
29
|
def get_batch_report(batch_id, opts = {})
|
|
30
30
|
data, status_code, headers = get_batch_report_with_http_info(batch_id, opts)
|
|
@@ -35,7 +35,7 @@ module CyberSource
|
|
|
35
35
|
# **Get Batch Report**<br>This resource accepts a batch id and returns: - The batch status. - The total number of accepted, rejected, updated records. - The total number of card association responses. - The billable quantities of: - New Account Numbers (NAN) - New Expiry Dates (NED) - Account Closures (ACL) - Contact Card Holders (CCH) - Source record information including token ids, masked card number, expiration dates & card type. - Response record information including response code, reason, token ids, masked card number, expiration dates & card type.
|
|
36
36
|
# @param batch_id Unique identification number assigned to the submitted request.
|
|
37
37
|
# @param [Hash] opts the optional parameters
|
|
38
|
-
# @return [Array<(
|
|
38
|
+
# @return [Array<(InlineResponse20014, Fixnum, Hash)>] InlineResponse20014 data, response status code and response headers
|
|
39
39
|
def get_batch_report_with_http_info(batch_id, opts = {})
|
|
40
40
|
|
|
41
41
|
if @api_client.config.debugging
|
|
@@ -94,7 +94,7 @@ module CyberSource
|
|
|
94
94
|
:form_params => form_params,
|
|
95
95
|
:body => post_body,
|
|
96
96
|
:auth_names => auth_names,
|
|
97
|
-
:return_type => '
|
|
97
|
+
:return_type => 'InlineResponse20014',
|
|
98
98
|
:isResponseMLEForApi => is_response_mle_for_api)
|
|
99
99
|
if @api_client.config.debugging
|
|
100
100
|
begin
|
|
@@ -111,7 +111,7 @@ module CyberSource
|
|
|
111
111
|
#
|
|
112
112
|
# @param batch_id Unique identification number assigned to the submitted request.
|
|
113
113
|
# @param [Hash] opts the optional parameters
|
|
114
|
-
# @return [
|
|
114
|
+
# @return [InlineResponse20013]
|
|
115
115
|
#
|
|
116
116
|
def get_batch_status(batch_id, opts = {})
|
|
117
117
|
data, status_code, headers = get_batch_status_with_http_info(batch_id, opts)
|
|
@@ -122,7 +122,7 @@ module CyberSource
|
|
|
122
122
|
# **Get Batch Status**<br>This resource accepts a batch id and returns: - The batch status. - The total number of accepted, rejected, updated records. - The total number of card association responses. - The billable quantities of: - New Account Numbers (NAN) - New Expiry Dates (NED) - Account Closures (ACL) - Contact Card Holders (CCH)
|
|
123
123
|
# @param batch_id Unique identification number assigned to the submitted request.
|
|
124
124
|
# @param [Hash] opts the optional parameters
|
|
125
|
-
# @return [Array<(
|
|
125
|
+
# @return [Array<(InlineResponse20013, Fixnum, Hash)>] InlineResponse20013 data, response status code and response headers
|
|
126
126
|
def get_batch_status_with_http_info(batch_id, opts = {})
|
|
127
127
|
|
|
128
128
|
if @api_client.config.debugging
|
|
@@ -181,7 +181,7 @@ module CyberSource
|
|
|
181
181
|
:form_params => form_params,
|
|
182
182
|
:body => post_body,
|
|
183
183
|
:auth_names => auth_names,
|
|
184
|
-
:return_type => '
|
|
184
|
+
:return_type => 'InlineResponse20013',
|
|
185
185
|
:isResponseMLEForApi => is_response_mle_for_api)
|
|
186
186
|
if @api_client.config.debugging
|
|
187
187
|
begin
|
|
@@ -201,7 +201,7 @@ module CyberSource
|
|
|
201
201
|
# @option opts [Integer] :limit The maximum number that can be returned in the array starting from the offset record in zero-based dataset. (default to 20)
|
|
202
202
|
# @option opts [String] :from_date ISO-8601 format: yyyyMMddTHHmmssZ
|
|
203
203
|
# @option opts [String] :to_date ISO-8601 format: yyyyMMddTHHmmssZ
|
|
204
|
-
# @return [
|
|
204
|
+
# @return [InlineResponse20012]
|
|
205
205
|
#
|
|
206
206
|
def get_batches_list(opts = {})
|
|
207
207
|
data, status_code, headers = get_batches_list_with_http_info(opts)
|
|
@@ -215,7 +215,7 @@ module CyberSource
|
|
|
215
215
|
# @option opts [Integer] :limit The maximum number that can be returned in the array starting from the offset record in zero-based dataset.
|
|
216
216
|
# @option opts [String] :from_date ISO-8601 format: yyyyMMddTHHmmssZ
|
|
217
217
|
# @option opts [String] :to_date ISO-8601 format: yyyyMMddTHHmmssZ
|
|
218
|
-
# @return [Array<(
|
|
218
|
+
# @return [Array<(InlineResponse20012, Fixnum, Hash)>] InlineResponse20012 data, response status code and response headers
|
|
219
219
|
def get_batches_list_with_http_info(opts = {})
|
|
220
220
|
|
|
221
221
|
if @api_client.config.debugging
|
|
@@ -270,7 +270,7 @@ module CyberSource
|
|
|
270
270
|
:form_params => form_params,
|
|
271
271
|
:body => post_body,
|
|
272
272
|
:auth_names => auth_names,
|
|
273
|
-
:return_type => '
|
|
273
|
+
:return_type => 'InlineResponse20012',
|
|
274
274
|
:isResponseMLEForApi => is_response_mle_for_api)
|
|
275
275
|
if @api_client.config.debugging
|
|
276
276
|
begin
|
|
@@ -24,7 +24,7 @@ module CyberSource
|
|
|
24
24
|
#
|
|
25
25
|
# @param create_bin_lookup_request
|
|
26
26
|
# @param [Hash] opts the optional parameters
|
|
27
|
-
# @return [
|
|
27
|
+
# @return [InlineResponse2013]
|
|
28
28
|
#
|
|
29
29
|
# DISCLAIMER : Cybersource may allow Customer to access, use, and/or test a Cybersource product or service that may still be in development or has not been market-tested ("Beta Product") solely for the purpose of evaluating the functionality or marketability of the Beta Product (a "Beta Evaluation"). Notwithstanding any language to the contrary, the following terms shall apply with respect to Customer's participation in any Beta Evaluation (and the Beta Product(s)) accessed thereunder): The Parties will enter into a separate form agreement detailing the scope of the Beta Evaluation, requirements, pricing, the length of the beta evaluation period ("Beta Product Form"). Beta Products are not, and may not become, Transaction Services and have not yet been publicly released and are offered for the sole purpose of internal testing and non-commercial evaluation. Customer's use of the Beta Product shall be solely for the purpose of conducting the Beta Evaluation. Customer accepts all risks arising out of the access and use of the Beta Products. Cybersource may, in its sole discretion, at any time, terminate or discontinue the Beta Evaluation. Customer acknowledges and agrees that any Beta Product may still be in development and that Beta Product is provided "AS IS" and may not perform at the level of a commercially available service, may not operate as expected and may be modified prior to release. CYBERSOURCE SHALL NOT BE RESPONSIBLE OR LIABLE UNDER ANY CONTRACT, TORT (INCLUDING NEGLIGENCE), OR OTHERWISE RELATING TO A BETA PRODUCT OR THE BETA EVALUATION (A) FOR LOSS OR INACCURACY OF DATA OR COST OF PROCUREMENT OF SUBSTITUTE GOODS, SERVICES OR TECHNOLOGY, (B) ANY CLAIM, LOSSES, DAMAGES, OR CAUSE OF ACTION ARISING IN CONNECTION WITH THE BETA PRODUCT; OR (C) FOR ANY INDIRECT, INCIDENTAL OR CONSEQUENTIAL DAMAGES INCLUDING, BUT NOT LIMITED TO, LOSS OF REVENUES AND LOSS OF PROFITS.
|
|
30
30
|
def get_account_info(create_bin_lookup_request, opts = {})
|
|
@@ -36,7 +36,7 @@ module CyberSource
|
|
|
36
36
|
# The BIN Lookup Service is a versatile business tool that provides card network agnostic solution designed to ensure frictionless transaction experience by utilizing up-to-date Bank Identification Number (BIN) attributes sourced from multiple global and regional data sources. This service helps to improve authorization rates by helping to route transactions to the best-suited card network, minimizes fraud through card detail verification and aids in regulatory compliance by identifying card properties. The service is flexible and provides businesses with a flexible choice of inputs such as primary account number (PAN), network token from major networks (such as Visa, American Express, Discover and several regional networks) which includes device PAN (DPAN), and all types of tokens generated via CyberSource Token Management Service (TMS). Currently, the range of available credentials is contingent on the networks enabled for the business entity. Therefore, the network information specified in this documentation is illustrative and subject to personalized offerings for each reseller or merchant.
|
|
37
37
|
# @param create_bin_lookup_request
|
|
38
38
|
# @param [Hash] opts the optional parameters
|
|
39
|
-
# @return [Array<(
|
|
39
|
+
# @return [Array<(InlineResponse2013, Fixnum, Hash)>] InlineResponse2013 data, response status code and response headers
|
|
40
40
|
def get_account_info_with_http_info(create_bin_lookup_request, opts = {})
|
|
41
41
|
|
|
42
42
|
if @api_client.config.debugging
|
|
@@ -89,7 +89,7 @@ module CyberSource
|
|
|
89
89
|
:form_params => form_params,
|
|
90
90
|
:body => post_body,
|
|
91
91
|
:auth_names => auth_names,
|
|
92
|
-
:return_type => '
|
|
92
|
+
:return_type => 'InlineResponse2013',
|
|
93
93
|
:isResponseMLEForApi => is_response_mle_for_api)
|
|
94
94
|
if @api_client.config.debugging
|
|
95
95
|
begin
|
|
@@ -24,7 +24,7 @@ module CyberSource
|
|
|
24
24
|
#
|
|
25
25
|
# @param organization_id The Organization Identifier.
|
|
26
26
|
# @param [Hash] opts the optional parameters
|
|
27
|
-
# @return [Array<
|
|
27
|
+
# @return [Array<InlineResponse2006>]
|
|
28
28
|
#
|
|
29
29
|
def find_products_to_subscribe(organization_id, opts = {})
|
|
30
30
|
data, status_code, headers = find_products_to_subscribe_with_http_info(organization_id, opts)
|
|
@@ -35,7 +35,7 @@ module CyberSource
|
|
|
35
35
|
# Retrieve a list of products and event types that your account is eligible for. These products and events are the ones that you may subscribe to in the next step of creating webhooks.
|
|
36
36
|
# @param organization_id The Organization Identifier.
|
|
37
37
|
# @param [Hash] opts the optional parameters
|
|
38
|
-
# @return [Array<(Array<
|
|
38
|
+
# @return [Array<(Array<InlineResponse2006>, Fixnum, Hash)>] Array<InlineResponse2006> data, response status code and response headers
|
|
39
39
|
def find_products_to_subscribe_with_http_info(organization_id, opts = {})
|
|
40
40
|
|
|
41
41
|
if @api_client.config.debugging
|
|
@@ -90,7 +90,7 @@ module CyberSource
|
|
|
90
90
|
:form_params => form_params,
|
|
91
91
|
:body => post_body,
|
|
92
92
|
:auth_names => auth_names,
|
|
93
|
-
:return_type => 'Array<
|
|
93
|
+
:return_type => 'Array<InlineResponse2006>',
|
|
94
94
|
:isResponseMLEForApi => is_response_mle_for_api)
|
|
95
95
|
if @api_client.config.debugging
|
|
96
96
|
begin
|
|
@@ -107,7 +107,7 @@ module CyberSource
|
|
|
107
107
|
#
|
|
108
108
|
# @param [Hash] opts the optional parameters
|
|
109
109
|
# @option opts [CreateWebhook] :create_webhook The webhook payload
|
|
110
|
-
# @return [
|
|
110
|
+
# @return [InlineResponse2016]
|
|
111
111
|
#
|
|
112
112
|
def notification_subscriptions_v2_webhooks_post(opts = {})
|
|
113
113
|
data, status_code, headers = notification_subscriptions_v2_webhooks_post_with_http_info(opts)
|
|
@@ -118,7 +118,7 @@ module CyberSource
|
|
|
118
118
|
# Create a new webhook subscription. Before creating a webhook, ensure that a signature key has been created. For the example \"Create Webhook using oAuth with Client Credentials\" - for clients who have more than one oAuth Provider and have different client secrets that they would like to config for a given webhook, they may do so by overriding the keyId inside security config of webhook subscription. See the Developer Center examples section titled \"Webhook Security - Create or Store Egress Symmetric Key - Store oAuth Credentials For Symmetric Key\" to store these oAuth credentials that CYBS will need for oAuth. For JWT authentication, attach your oAuth details to the webhook subscription. See the example \"Create Webhook using oAuth with JWT\"
|
|
119
119
|
# @param [Hash] opts the optional parameters
|
|
120
120
|
# @option opts [CreateWebhook] :create_webhook The webhook payload
|
|
121
|
-
# @return [Array<(
|
|
121
|
+
# @return [Array<(InlineResponse2016, Fixnum, Hash)>] InlineResponse2016 data, response status code and response headers
|
|
122
122
|
def notification_subscriptions_v2_webhooks_post_with_http_info(opts = {})
|
|
123
123
|
|
|
124
124
|
if @api_client.config.debugging
|
|
@@ -167,7 +167,7 @@ module CyberSource
|
|
|
167
167
|
:form_params => form_params,
|
|
168
168
|
:body => post_body,
|
|
169
169
|
:auth_names => auth_names,
|
|
170
|
-
:return_type => '
|
|
170
|
+
:return_type => 'InlineResponse2016',
|
|
171
171
|
:isResponseMLEForApi => is_response_mle_for_api)
|
|
172
172
|
if @api_client.config.debugging
|
|
173
173
|
begin
|
|
@@ -187,7 +187,7 @@ module CyberSource
|
|
|
187
187
|
# @param [Hash] opts the optional parameters
|
|
188
188
|
# @option opts [String] :v_c_correlation_id A globally unique id associated with your request
|
|
189
189
|
# @option opts [SaveSymEgressKey] :save_sym_egress_key Provide egress Symmetric key information to save (create or store or refresh)
|
|
190
|
-
# @return [
|
|
190
|
+
# @return [InlineResponse2015]
|
|
191
191
|
#
|
|
192
192
|
def save_sym_egress_key(v_c_sender_organization_id, v_c_permissions, opts = {})
|
|
193
193
|
data, status_code, headers = save_sym_egress_key_with_http_info(v_c_sender_organization_id, v_c_permissions, opts)
|
|
@@ -201,7 +201,7 @@ module CyberSource
|
|
|
201
201
|
# @param [Hash] opts the optional parameters
|
|
202
202
|
# @option opts [String] :v_c_correlation_id A globally unique id associated with your request
|
|
203
203
|
# @option opts [SaveSymEgressKey] :save_sym_egress_key Provide egress Symmetric key information to save (create or store or refresh)
|
|
204
|
-
# @return [Array<(
|
|
204
|
+
# @return [Array<(InlineResponse2015, Fixnum, Hash)>] InlineResponse2015 data, response status code and response headers
|
|
205
205
|
def save_sym_egress_key_with_http_info(v_c_sender_organization_id, v_c_permissions, opts = {})
|
|
206
206
|
|
|
207
207
|
if @api_client.config.debugging
|
|
@@ -269,7 +269,7 @@ module CyberSource
|
|
|
269
269
|
:form_params => form_params,
|
|
270
270
|
:body => post_body,
|
|
271
271
|
:auth_names => auth_names,
|
|
272
|
-
:return_type => '
|
|
272
|
+
:return_type => 'InlineResponse2015',
|
|
273
273
|
:isResponseMLEForApi => is_response_mle_for_api)
|
|
274
274
|
if @api_client.config.debugging
|
|
275
275
|
begin
|
|
@@ -25,7 +25,7 @@ module CyberSource
|
|
|
25
25
|
# @param id An unique identification number generated by Cybersource to identify the submitted request.
|
|
26
26
|
# @param case_management_actions_request
|
|
27
27
|
# @param [Hash] opts the optional parameters
|
|
28
|
-
# @return [
|
|
28
|
+
# @return [InlineResponse2003]
|
|
29
29
|
#
|
|
30
30
|
def action_decision_manager_case(id, case_management_actions_request, opts = {})
|
|
31
31
|
data, status_code, headers = action_decision_manager_case_with_http_info(id, case_management_actions_request, opts)
|
|
@@ -37,7 +37,7 @@ module CyberSource
|
|
|
37
37
|
# @param id An unique identification number generated by Cybersource to identify the submitted request.
|
|
38
38
|
# @param case_management_actions_request
|
|
39
39
|
# @param [Hash] opts the optional parameters
|
|
40
|
-
# @return [Array<(
|
|
40
|
+
# @return [Array<(InlineResponse2003, Fixnum, Hash)>] InlineResponse2003 data, response status code and response headers
|
|
41
41
|
def action_decision_manager_case_with_http_info(id, case_management_actions_request, opts = {})
|
|
42
42
|
|
|
43
43
|
if @api_client.config.debugging
|
|
@@ -94,7 +94,7 @@ module CyberSource
|
|
|
94
94
|
:form_params => form_params,
|
|
95
95
|
:body => post_body,
|
|
96
96
|
:auth_names => auth_names,
|
|
97
|
-
:return_type => '
|
|
97
|
+
:return_type => 'InlineResponse2003',
|
|
98
98
|
:isResponseMLEForApi => is_response_mle_for_api)
|
|
99
99
|
if @api_client.config.debugging
|
|
100
100
|
begin
|
|
@@ -199,7 +199,7 @@ module CyberSource
|
|
|
199
199
|
# @param id An unique identification number generated by Cybersource to identify the submitted request.
|
|
200
200
|
# @param case_management_comments_request
|
|
201
201
|
# @param [Hash] opts the optional parameters
|
|
202
|
-
# @return [
|
|
202
|
+
# @return [InlineResponse2012]
|
|
203
203
|
#
|
|
204
204
|
def comment_decision_manager_case(id, case_management_comments_request, opts = {})
|
|
205
205
|
data, status_code, headers = comment_decision_manager_case_with_http_info(id, case_management_comments_request, opts)
|
|
@@ -211,7 +211,7 @@ module CyberSource
|
|
|
211
211
|
# @param id An unique identification number generated by Cybersource to identify the submitted request.
|
|
212
212
|
# @param case_management_comments_request
|
|
213
213
|
# @param [Hash] opts the optional parameters
|
|
214
|
-
# @return [Array<(
|
|
214
|
+
# @return [Array<(InlineResponse2012, Fixnum, Hash)>] InlineResponse2012 data, response status code and response headers
|
|
215
215
|
def comment_decision_manager_case_with_http_info(id, case_management_comments_request, opts = {})
|
|
216
216
|
|
|
217
217
|
if @api_client.config.debugging
|
|
@@ -268,7 +268,7 @@ module CyberSource
|
|
|
268
268
|
:form_params => form_params,
|
|
269
269
|
:body => post_body,
|
|
270
270
|
:auth_names => auth_names,
|
|
271
|
-
:return_type => '
|
|
271
|
+
:return_type => 'InlineResponse2012',
|
|
272
272
|
:isResponseMLEForApi => is_response_mle_for_api)
|
|
273
273
|
if @api_client.config.debugging
|
|
274
274
|
begin
|
|
@@ -104,7 +104,7 @@ module CyberSource
|
|
|
104
104
|
#
|
|
105
105
|
# @param device_de_associate_v3_request deviceId that has to be de-associated to the destination organizationId.
|
|
106
106
|
# @param [Hash] opts the optional parameters
|
|
107
|
-
# @return [Array<
|
|
107
|
+
# @return [Array<InlineResponse20010>]
|
|
108
108
|
#
|
|
109
109
|
def post_de_associate_v3_terminal(device_de_associate_v3_request, opts = {})
|
|
110
110
|
data, status_code, headers = post_de_associate_v3_terminal_with_http_info(device_de_associate_v3_request, opts)
|
|
@@ -115,7 +115,7 @@ module CyberSource
|
|
|
115
115
|
# A device will be de-associated from its current organization and moved up in the hierarchy. The device's new position will be determined by a specified destination, either an account or a portfolio. If no destination is provided, the device will default to the currently logged-in user.
|
|
116
116
|
# @param device_de_associate_v3_request deviceId that has to be de-associated to the destination organizationId.
|
|
117
117
|
# @param [Hash] opts the optional parameters
|
|
118
|
-
# @return [Array<(Array<
|
|
118
|
+
# @return [Array<(Array<InlineResponse20010>, Fixnum, Hash)>] Array<InlineResponse20010> data, response status code and response headers
|
|
119
119
|
def post_de_associate_v3_terminal_with_http_info(device_de_associate_v3_request, opts = {})
|
|
120
120
|
|
|
121
121
|
if @api_client.config.debugging
|
|
@@ -168,7 +168,7 @@ module CyberSource
|
|
|
168
168
|
:form_params => form_params,
|
|
169
169
|
:body => post_body,
|
|
170
170
|
:auth_names => auth_names,
|
|
171
|
-
:return_type => 'Array<
|
|
171
|
+
:return_type => 'Array<InlineResponse20010>',
|
|
172
172
|
:isResponseMLEForApi => is_response_mle_for_api)
|
|
173
173
|
if @api_client.config.debugging
|
|
174
174
|
begin
|
|
@@ -24,7 +24,7 @@ module CyberSource
|
|
|
24
24
|
#
|
|
25
25
|
# @param post_device_search_request
|
|
26
26
|
# @param [Hash] opts the optional parameters
|
|
27
|
-
# @return [
|
|
27
|
+
# @return [InlineResponse2009]
|
|
28
28
|
#
|
|
29
29
|
def post_search_query(post_device_search_request, opts = {})
|
|
30
30
|
data, status_code, headers = post_search_query_with_http_info(post_device_search_request, opts)
|
|
@@ -35,7 +35,7 @@ module CyberSource
|
|
|
35
35
|
# Retrieves list of terminals in paginated format.
|
|
36
36
|
# @param post_device_search_request
|
|
37
37
|
# @param [Hash] opts the optional parameters
|
|
38
|
-
# @return [Array<(
|
|
38
|
+
# @return [Array<(InlineResponse2009, Fixnum, Hash)>] InlineResponse2009 data, response status code and response headers
|
|
39
39
|
def post_search_query_with_http_info(post_device_search_request, opts = {})
|
|
40
40
|
|
|
41
41
|
if @api_client.config.debugging
|
|
@@ -88,7 +88,7 @@ module CyberSource
|
|
|
88
88
|
:form_params => form_params,
|
|
89
89
|
:body => post_body,
|
|
90
90
|
:auth_names => auth_names,
|
|
91
|
-
:return_type => '
|
|
91
|
+
:return_type => 'InlineResponse2009',
|
|
92
92
|
:isResponseMLEForApi => is_response_mle_for_api)
|
|
93
93
|
if @api_client.config.debugging
|
|
94
94
|
begin
|
|
@@ -105,7 +105,7 @@ module CyberSource
|
|
|
105
105
|
#
|
|
106
106
|
# @param post_device_search_request_v3
|
|
107
107
|
# @param [Hash] opts the optional parameters
|
|
108
|
-
# @return [
|
|
108
|
+
# @return [InlineResponse20011]
|
|
109
109
|
#
|
|
110
110
|
def post_search_query_v3(post_device_search_request_v3, opts = {})
|
|
111
111
|
data, status_code, headers = post_search_query_v3_with_http_info(post_device_search_request_v3, opts)
|
|
@@ -116,7 +116,7 @@ module CyberSource
|
|
|
116
116
|
# Search for devices matching a given search query. The search query supports serialNumber, readerId, terminalId, status, statusChangeReason or organizationId Matching results are paginated.
|
|
117
117
|
# @param post_device_search_request_v3
|
|
118
118
|
# @param [Hash] opts the optional parameters
|
|
119
|
-
# @return [Array<(
|
|
119
|
+
# @return [Array<(InlineResponse20011, Fixnum, Hash)>] InlineResponse20011 data, response status code and response headers
|
|
120
120
|
def post_search_query_v3_with_http_info(post_device_search_request_v3, opts = {})
|
|
121
121
|
|
|
122
122
|
if @api_client.config.debugging
|
|
@@ -169,7 +169,7 @@ module CyberSource
|
|
|
169
169
|
:form_params => form_params,
|
|
170
170
|
:body => post_body,
|
|
171
171
|
:auth_names => auth_names,
|
|
172
|
-
:return_type => '
|
|
172
|
+
:return_type => 'InlineResponse20011',
|
|
173
173
|
:isResponseMLEForApi => is_response_mle_for_api)
|
|
174
174
|
if @api_client.config.debugging
|
|
175
175
|
begin
|
|
@@ -23,6 +23,7 @@ module CyberSource
|
|
|
23
23
|
# Allows you to retrieve the invoice settings for the payment page.
|
|
24
24
|
#
|
|
25
25
|
# @param [Hash] opts the optional parameters
|
|
26
|
+
# @option opts [String] :product_type Allows you to choose which product type settings you want to update.
|
|
26
27
|
# @return [InvoicingV2InvoiceSettingsGet200Response]
|
|
27
28
|
#
|
|
28
29
|
def get_invoice_settings(opts = {})
|
|
@@ -33,6 +34,7 @@ module CyberSource
|
|
|
33
34
|
# Get Invoice Settings
|
|
34
35
|
# Allows you to retrieve the invoice settings for the payment page.
|
|
35
36
|
# @param [Hash] opts the optional parameters
|
|
37
|
+
# @option opts [String] :product_type Allows you to choose which product type settings you want to update.
|
|
36
38
|
# @return [Array<(InvoicingV2InvoiceSettingsGet200Response, Fixnum, Hash)>] InvoicingV2InvoiceSettingsGet200Response data, response status code and response headers
|
|
37
39
|
def get_invoice_settings_with_http_info(opts = {})
|
|
38
40
|
|
|
@@ -44,11 +46,15 @@ module CyberSource
|
|
|
44
46
|
puts 'Cannot write to log'
|
|
45
47
|
end
|
|
46
48
|
end
|
|
49
|
+
if @api_client.config.client_side_validation && opts[:'product_type'] && !['INVOICING', 'PAYBYLINK'].include?(opts[:'product_type'])
|
|
50
|
+
fail ArgumentError, 'invalid value for "product_type", must be one of INVOICING, PAYBYLINK'
|
|
51
|
+
end
|
|
47
52
|
# resource path
|
|
48
53
|
local_var_path = 'invoicing/v2/invoiceSettings'
|
|
49
54
|
|
|
50
55
|
# query parameters
|
|
51
56
|
query_params = {}
|
|
57
|
+
query_params[:'productType'] = opts[:'product_type'] if !opts[:'product_type'].nil?
|
|
52
58
|
|
|
53
59
|
# header parameters
|
|
54
60
|
header_params = {}
|
|
@@ -101,6 +107,7 @@ module CyberSource
|
|
|
101
107
|
#
|
|
102
108
|
# @param invoice_settings_request
|
|
103
109
|
# @param [Hash] opts the optional parameters
|
|
110
|
+
# @option opts [String] :product_type Allows you to choose which product type settings you want to update.
|
|
104
111
|
# @return [InvoicingV2InvoiceSettingsGet200Response]
|
|
105
112
|
#
|
|
106
113
|
def update_invoice_settings(invoice_settings_request, opts = {})
|
|
@@ -112,6 +119,7 @@ module CyberSource
|
|
|
112
119
|
# Allows you to customize the payment page, the checkout experience, email communication and payer authentication. You can customize the invoice to match your brand with your business name, logo and brand colors, and a VAT Tax number. You can choose to capture the payers shipping details, phone number and email during the checkout process. You can add a custom message to all invoice emails and enable or disable payer authentication for invoice payments.
|
|
113
120
|
# @param invoice_settings_request
|
|
114
121
|
# @param [Hash] opts the optional parameters
|
|
122
|
+
# @option opts [String] :product_type Allows you to choose which product type settings you want to update.
|
|
115
123
|
# @return [Array<(InvoicingV2InvoiceSettingsGet200Response, Fixnum, Hash)>] InvoicingV2InvoiceSettingsGet200Response data, response status code and response headers
|
|
116
124
|
def update_invoice_settings_with_http_info(invoice_settings_request, opts = {})
|
|
117
125
|
|
|
@@ -127,11 +135,15 @@ module CyberSource
|
|
|
127
135
|
if @api_client.config.client_side_validation && invoice_settings_request.nil?
|
|
128
136
|
fail ArgumentError, "Missing the required parameter 'invoice_settings_request' when calling InvoiceSettingsApi.update_invoice_settings"
|
|
129
137
|
end
|
|
138
|
+
if @api_client.config.client_side_validation && opts[:'product_type'] && !['INVOICING', 'PAYBYLINK'].include?(opts[:'product_type'])
|
|
139
|
+
fail ArgumentError, 'invalid value for "product_type", must be one of INVOICING, PAYBYLINK'
|
|
140
|
+
end
|
|
130
141
|
# resource path
|
|
131
142
|
local_var_path = 'invoicing/v2/invoiceSettings'
|
|
132
143
|
|
|
133
144
|
# query parameters
|
|
134
145
|
query_params = {}
|
|
146
|
+
query_params[:'productType'] = opts[:'product_type'] if !opts[:'product_type'].nil?
|
|
135
147
|
|
|
136
148
|
# header parameters
|
|
137
149
|
header_params = {}
|