cybersource_rest_client 0.0.55 → 0.0.56
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/cybersource_rest_client/api/asymmetric_key_management_api.rb +6 -0
- data/lib/cybersource_rest_client/api/batches_api.rb +25 -23
- data/lib/cybersource_rest_client/api/billing_agreements_api.rb +6 -0
- data/lib/cybersource_rest_client/api/capture_api.rb +2 -0
- data/lib/cybersource_rest_client/api/create_new_webhooks_api.rb +269 -0
- data/lib/cybersource_rest_client/api/credit_api.rb +2 -0
- data/lib/cybersource_rest_client/api/customer_api.rb +4 -0
- data/lib/cybersource_rest_client/api/customer_payment_instrument_api.rb +4 -0
- data/lib/cybersource_rest_client/api/customer_shipping_address_api.rb +4 -0
- data/lib/cybersource_rest_client/api/decision_manager_api.rb +10 -0
- data/lib/cybersource_rest_client/api/emv_tag_details_api.rb +2 -0
- data/lib/cybersource_rest_client/api/instrument_identifier_api.rb +6 -0
- data/lib/cybersource_rest_client/api/invoice_settings_api.rb +6 -4
- data/lib/cybersource_rest_client/api/invoices_api.rb +16 -12
- data/lib/cybersource_rest_client/api/keymanagementpassword_api.rb +2 -0
- data/lib/cybersource_rest_client/api/keymanagementpgp_api.rb +2 -0
- data/lib/cybersource_rest_client/api/keymanagementscmp_api.rb +2 -0
- data/lib/cybersource_rest_client/api/manage_webhooks_api.rb +507 -0
- data/lib/cybersource_rest_client/api/merchant_boarding_api.rb +169 -0
- data/lib/cybersource_rest_client/api/microform_integration_api.rb +2 -0
- data/lib/cybersource_rest_client/api/payer_authentication_api.rb +6 -0
- data/lib/cybersource_rest_client/api/payment_instrument_api.rb +4 -0
- data/lib/cybersource_rest_client/api/payments_api.rb +6 -0
- data/lib/cybersource_rest_client/api/payouts_api.rb +2 -0
- data/lib/cybersource_rest_client/api/plans_api.rb +4 -0
- data/lib/cybersource_rest_client/api/push_funds_api.rb +2 -0
- data/lib/cybersource_rest_client/api/refund_api.rb +4 -0
- data/lib/cybersource_rest_client/api/report_subscriptions_api.rb +4 -0
- data/lib/cybersource_rest_client/api/reports_api.rb +2 -0
- data/lib/cybersource_rest_client/api/reversal_api.rb +4 -0
- data/lib/cybersource_rest_client/api/search_transactions_api.rb +2 -0
- data/lib/cybersource_rest_client/api/subscriptions_api.rb +4 -0
- data/lib/cybersource_rest_client/api/symmetric_key_management_api.rb +6 -0
- data/lib/cybersource_rest_client/api/taxes_api.rb +4 -0
- data/lib/cybersource_rest_client/api/unified_checkout_capture_context_api.rb +2 -0
- data/lib/cybersource_rest_client/api/user_management_search_api.rb +2 -0
- data/lib/cybersource_rest_client/api/verification_api.rb +4 -0
- data/lib/cybersource_rest_client/api/void_api.rb +10 -0
- data/lib/cybersource_rest_client/models/boardingv1registrations_document_information.rb +192 -0
- data/lib/cybersource_rest_client/models/boardingv1registrations_document_information_signed_documents.rb +196 -0
- data/lib/cybersource_rest_client/models/boardingv1registrations_integration_information.rb +205 -0
- data/lib/cybersource_rest_client/models/boardingv1registrations_integration_information_oauth2.rb +221 -0
- data/lib/cybersource_rest_client/models/boardingv1registrations_integration_information_tenant_configurations.rb +225 -0
- data/lib/cybersource_rest_client/models/boardingv1registrations_integration_information_tenant_information.rb +197 -0
- data/lib/cybersource_rest_client/models/boardingv1registrations_organization_information.rb +356 -0
- data/lib/cybersource_rest_client/models/boardingv1registrations_organization_information_business_information.rb +484 -0
- data/lib/cybersource_rest_client/models/boardingv1registrations_organization_information_business_information_address.rb +360 -0
- data/lib/cybersource_rest_client/models/boardingv1registrations_organization_information_business_information_business_contact.rb +341 -0
- data/lib/cybersource_rest_client/models/boardingv1registrations_organization_information_kyc.rb +382 -0
- data/lib/cybersource_rest_client/models/boardingv1registrations_organization_information_kyc_deposit_bank_account.rb +331 -0
- data/lib/cybersource_rest_client/models/boardingv1registrations_organization_information_owners.rb +526 -0
- data/lib/cybersource_rest_client/models/boardingv1registrations_product_information.rb +190 -0
- data/lib/cybersource_rest_client/models/boardingv1registrations_product_information_selected_products.rb +220 -0
- data/lib/cybersource_rest_client/models/boardingv1registrations_registration_information.rb +330 -0
- data/lib/cybersource_rest_client/models/capture_payment_request.rb +11 -1
- data/lib/cybersource_rest_client/models/commerce_solutions_products.rb +210 -0
- data/lib/cybersource_rest_client/models/commerce_solutions_products_account_updater.rb +200 -0
- data/lib/cybersource_rest_client/models/commerce_solutions_products_account_updater_configuration_information.rb +200 -0
- data/lib/cybersource_rest_client/models/commerce_solutions_products_account_updater_configuration_information_configurations.rb +242 -0
- data/lib/cybersource_rest_client/models/commerce_solutions_products_account_updater_configuration_information_configurations_amex.rb +221 -0
- data/lib/cybersource_rest_client/models/commerce_solutions_products_account_updater_configuration_information_configurations_master_card.rb +222 -0
- data/lib/cybersource_rest_client/models/commerce_solutions_products_account_updater_configuration_information_configurations_visa.rb +222 -0
- data/lib/cybersource_rest_client/models/commerce_solutions_products_bin_lookup.rb +200 -0
- data/lib/cybersource_rest_client/models/commerce_solutions_products_bin_lookup_configuration_information.rb +190 -0
- data/lib/cybersource_rest_client/models/commerce_solutions_products_bin_lookup_configuration_information_configurations.rb +202 -0
- data/lib/cybersource_rest_client/models/commerce_solutions_products_token_management.rb +200 -0
- data/lib/cybersource_rest_client/models/commerce_solutions_products_token_management_configuration_information.rb +200 -0
- data/lib/cybersource_rest_client/models/commerce_solutions_products_token_management_configuration_information_configurations.rb +191 -0
- data/lib/cybersource_rest_client/models/create_credit_request.rb +11 -1
- data/lib/cybersource_rest_client/models/create_payment_request.rb +11 -1
- data/lib/cybersource_rest_client/models/create_webhook.rb +290 -0
- data/lib/cybersource_rest_client/models/inline_response_200_2.rb +54 -52
- data/lib/cybersource_rest_client/models/inline_response_200_2_integration_information.rb +205 -0
- data/lib/cybersource_rest_client/models/inline_response_200_2_integration_information_tenant_configurations.rb +297 -0
- data/lib/cybersource_rest_client/models/inline_response_200_3.rb +26 -103
- data/lib/cybersource_rest_client/models/inline_response_200_4.rb +126 -83
- data/lib/cybersource_rest_client/models/inline_response_200_5.rb +252 -0
- data/lib/cybersource_rest_client/models/{inline_response_200_2__embedded.rb → inline_response_200_5__embedded.rb} +2 -2
- data/lib/cybersource_rest_client/models/{inline_response_200_2__embedded__links.rb → inline_response_200_5__embedded__links.rb} +2 -2
- data/lib/cybersource_rest_client/models/{inline_response_200_2__embedded__links_reports.rb → inline_response_200_5__embedded__links_reports.rb} +1 -1
- data/lib/cybersource_rest_client/models/{inline_response_200_2__embedded_batches.rb → inline_response_200_5__embedded_batches.rb} +3 -3
- data/lib/cybersource_rest_client/models/{inline_response_200_2__embedded_totals.rb → inline_response_200_5__embedded_totals.rb} +1 -1
- data/lib/cybersource_rest_client/models/{inline_response_200_2__links.rb → inline_response_200_5__links.rb} +1 -1
- data/lib/cybersource_rest_client/models/inline_response_200_6.rb +291 -0
- data/lib/cybersource_rest_client/models/{inline_response_200_3__links.rb → inline_response_200_6__links.rb} +2 -2
- data/lib/cybersource_rest_client/models/{inline_response_200_3__links_report.rb → inline_response_200_6__links_report.rb} +1 -1
- data/lib/cybersource_rest_client/models/{inline_response_200_3_billing.rb → inline_response_200_6_billing.rb} +1 -1
- data/lib/cybersource_rest_client/models/inline_response_200_7.rb +293 -0
- data/lib/cybersource_rest_client/models/{inline_response_200_4_records.rb → inline_response_200_7_records.rb} +3 -3
- data/lib/cybersource_rest_client/models/{inline_response_200_4_response_record.rb → inline_response_200_7_response_record.rb} +2 -2
- data/lib/cybersource_rest_client/models/{inline_response_200_4_response_record_additional_updates.rb → inline_response_200_7_response_record_additional_updates.rb} +1 -1
- data/lib/cybersource_rest_client/models/{inline_response_200_4_source_record.rb → inline_response_200_7_source_record.rb} +1 -1
- data/lib/cybersource_rest_client/models/inline_response_201_1.rb +316 -0
- data/lib/cybersource_rest_client/models/inline_response_201_1_integration_information.rb +193 -0
- data/lib/cybersource_rest_client/models/inline_response_201_1_integration_information_tenant_configurations.rb +287 -0
- data/lib/cybersource_rest_client/models/inline_response_201_1_organization_information.rb +218 -0
- data/lib/cybersource_rest_client/models/inline_response_201_1_product_information_setups.rb +215 -0
- data/lib/cybersource_rest_client/models/inline_response_201_1_registration_information.rb +257 -0
- data/lib/cybersource_rest_client/models/inline_response_201_1_setups.rb +220 -0
- data/lib/cybersource_rest_client/models/inline_response_201_1_setups_commerce_solutions.rb +210 -0
- data/lib/cybersource_rest_client/models/inline_response_201_1_setups_payments.rb +340 -0
- data/lib/cybersource_rest_client/models/inline_response_201_1_setups_payments_card_processing.rb +200 -0
- data/lib/cybersource_rest_client/models/inline_response_201_1_setups_payments_card_processing_configuration_status.rb +300 -0
- data/lib/cybersource_rest_client/models/inline_response_201_1_setups_payments_card_processing_subscription_status.rb +279 -0
- data/lib/cybersource_rest_client/models/inline_response_201_1_setups_payments_digital_payments.rb +190 -0
- data/lib/cybersource_rest_client/models/inline_response_201_1_setups_risk.rb +200 -0
- data/lib/cybersource_rest_client/models/inline_response_201_1_setups_value_added_services.rb +200 -0
- data/lib/cybersource_rest_client/models/inline_response_201_2.rb +223 -0
- data/lib/cybersource_rest_client/models/inline_response_201_2_key_information.rb +301 -0
- data/lib/cybersource_rest_client/models/inline_response_201_2_key_information_error_information.rb +203 -0
- data/lib/cybersource_rest_client/models/inline_response_201_2_key_information_error_information_details.rb +202 -0
- data/lib/cybersource_rest_client/models/inline_response_201_3.rb +348 -0
- data/lib/cybersource_rest_client/models/inline_response_201_4.rb +223 -0
- data/lib/cybersource_rest_client/models/inline_response_400_7.rb +37 -43
- data/lib/cybersource_rest_client/models/inline_response_400_7_details.rb +17 -15
- data/lib/cybersource_rest_client/models/inline_response_400_8.rb +276 -0
- data/lib/cybersource_rest_client/models/inline_response_400_8_details.rb +200 -0
- data/lib/cybersource_rest_client/models/inline_response_404_1.rb +270 -0
- data/lib/cybersource_rest_client/models/inline_response_404_2.rb +212 -0
- data/lib/cybersource_rest_client/models/inline_response_404_2_details.rb +200 -0
- data/lib/cybersource_rest_client/models/inline_response_422_1.rb +270 -0
- data/lib/cybersource_rest_client/models/inline_response_500_3.rb +258 -0
- data/lib/cybersource_rest_client/models/kms_v2_keys_sym_post201_response_key_information.rb +6 -0
- data/lib/cybersource_rest_client/models/kmsegressv2keysasym_client_reference_information.rb +198 -0
- data/lib/cybersource_rest_client/models/kmsegressv2keysasym_key_information.rb +280 -0
- data/lib/cybersource_rest_client/models/kmsegressv2keyssym_client_reference_information.rb +198 -0
- data/lib/cybersource_rest_client/models/kmsegressv2keyssym_key_information.rb +280 -0
- data/lib/cybersource_rest_client/models/notificationsubscriptionsv1productsorganization_id_event_types.rb +234 -0
- data/lib/cybersource_rest_client/models/notificationsubscriptionsv1webhooks_notification_scope.rb +206 -0
- data/lib/cybersource_rest_client/models/notificationsubscriptionsv1webhooks_products.rb +203 -0
- data/lib/cybersource_rest_client/models/notificationsubscriptionsv1webhooks_retry_policy.rb +271 -0
- data/lib/cybersource_rest_client/models/notificationsubscriptionsv1webhooks_security_policy.rb +202 -0
- data/lib/cybersource_rest_client/models/notificationsubscriptionsv1webhooks_security_policy_1.rb +213 -0
- data/lib/cybersource_rest_client/models/notificationsubscriptionsv1webhooks_security_policy_1_config.rb +224 -0
- data/lib/cybersource_rest_client/models/notificationsubscriptionsv1webhooks_security_policy_1_config_additional_config.rb +221 -0
- data/lib/cybersource_rest_client/models/notificationsubscriptionsv1webhooks_security_policy_config.rb +214 -0
- data/lib/cybersource_rest_client/models/nrtfv1webhookswebhook_idreplays_by_delivery_status.rb +244 -0
- data/lib/cybersource_rest_client/models/payment_products.rb +350 -0
- data/lib/cybersource_rest_client/models/payment_products_card_present_connect.rb +200 -0
- data/lib/cybersource_rest_client/models/payment_products_card_present_connect_configuration_information.rb +200 -0
- data/lib/cybersource_rest_client/models/payment_products_card_present_connect_configuration_information_configurations.rb +191 -0
- data/lib/cybersource_rest_client/models/payment_products_card_present_connect_subscription_information.rb +237 -0
- data/lib/cybersource_rest_client/models/payment_products_card_processing.rb +200 -0
- data/lib/cybersource_rest_client/models/payment_products_card_processing_config_card_not_present.rb +236 -0
- data/lib/cybersource_rest_client/models/payment_products_card_processing_config_card_not_present_installment.rb +202 -0
- data/lib/cybersource_rest_client/models/payment_products_card_processing_config_card_not_present_payouts.rb +281 -0
- data/lib/cybersource_rest_client/models/payment_products_card_processing_config_card_not_present_processors.rb +245 -0
- data/lib/cybersource_rest_client/models/payment_products_card_processing_config_card_present_processors.rb +259 -0
- data/lib/cybersource_rest_client/models/payment_products_card_processing_config_common_merchant_descriptor_info.rb +269 -0
- data/lib/cybersource_rest_client/models/payment_products_card_processing_config_features_card_not_present_payouts_currencies.rb +258 -0
- data/lib/cybersource_rest_client/models/payment_products_card_processing_configuration_information.rb +200 -0
- data/lib/cybersource_rest_client/models/payment_products_card_processing_configuration_information_configurations.rb +200 -0
- data/lib/cybersource_rest_client/models/payment_products_card_processing_configuration_information_configurations_common.rb +446 -0
- data/lib/cybersource_rest_client/models/payment_products_card_processing_configuration_information_configurations_common_acquirer.rb +236 -0
- data/lib/cybersource_rest_client/models/payment_products_card_processing_configuration_information_configurations_common_currencies.rb +258 -0
- data/lib/cybersource_rest_client/models/payment_products_card_processing_configuration_information_configurations_common_currencies_1.rb +225 -0
- data/lib/cybersource_rest_client/models/payment_products_card_processing_configuration_information_configurations_common_payment_types.rb +203 -0
- data/lib/cybersource_rest_client/models/payment_products_card_processing_configuration_information_configurations_common_processors.rb +721 -0
- data/lib/cybersource_rest_client/models/payment_products_card_processing_configuration_information_configurations_features.rb +200 -0
- data/lib/cybersource_rest_client/models/payment_products_card_processing_configuration_information_configurations_features_card_present.rb +204 -0
- data/lib/cybersource_rest_client/models/payment_products_card_processing_subscription_information.rb +250 -0
- data/lib/cybersource_rest_client/models/payment_products_card_processing_subscription_information_features.rb +190 -0
- data/lib/cybersource_rest_client/models/payment_products_currency_conversion.rb +200 -0
- data/lib/cybersource_rest_client/models/payment_products_currency_conversion_configuration_information.rb +200 -0
- data/lib/cybersource_rest_client/models/payment_products_currency_conversion_configuration_information_configurations.rb +192 -0
- data/lib/cybersource_rest_client/models/payment_products_currency_conversion_configuration_information_configurations_processors.rb +201 -0
- data/lib/cybersource_rest_client/models/payment_products_cybs_ready_terminal.rb +190 -0
- data/lib/cybersource_rest_client/models/payment_products_differential_fee.rb +190 -0
- data/lib/cybersource_rest_client/models/payment_products_differential_fee_subscription_information.rb +247 -0
- data/lib/cybersource_rest_client/models/payment_products_differential_fee_subscription_information_features.rb +190 -0
- data/lib/cybersource_rest_client/models/payment_products_digital_payments.rb +190 -0
- data/lib/cybersource_rest_client/models/payment_products_digital_payments_subscription_information.rb +250 -0
- data/lib/cybersource_rest_client/models/payment_products_e_check.rb +200 -0
- data/lib/cybersource_rest_client/models/payment_products_e_check_config_account_validation_service.rb +203 -0
- data/lib/cybersource_rest_client/models/payment_products_e_check_config_account_validation_service_internal_only.rb +193 -0
- data/lib/cybersource_rest_client/models/payment_products_e_check_config_account_validation_service_processors.rb +262 -0
- data/lib/cybersource_rest_client/models/payment_products_e_check_configuration_information.rb +200 -0
- data/lib/cybersource_rest_client/models/payment_products_e_check_configuration_information_configurations.rb +210 -0
- data/lib/cybersource_rest_client/models/payment_products_e_check_configuration_information_configurations_common.rb +296 -0
- data/lib/cybersource_rest_client/models/payment_products_e_check_configuration_information_configurations_common_internal_only.rb +206 -0
- data/lib/cybersource_rest_client/models/payment_products_e_check_configuration_information_configurations_common_internal_only_processors.rb +242 -0
- data/lib/cybersource_rest_client/models/payment_products_e_check_configuration_information_configurations_common_processors.rb +261 -0
- data/lib/cybersource_rest_client/models/payment_products_e_check_configuration_information_configurations_features.rb +190 -0
- data/lib/cybersource_rest_client/models/payment_products_e_check_configuration_information_configurations_underwriting.rb +334 -0
- data/lib/cybersource_rest_client/models/payment_products_e_check_subscription_information.rb +250 -0
- data/lib/cybersource_rest_client/models/payment_products_payer_authentication.rb +200 -0
- data/lib/cybersource_rest_client/models/payment_products_payer_authentication_config_card_types_j_cbj_secure.rb +221 -0
- data/lib/cybersource_rest_client/models/payment_products_payer_authentication_config_card_types_verified.rb +204 -0
- data/lib/cybersource_rest_client/models/payment_products_payer_authentication_config_card_types_verified_currencies.rb +244 -0
- data/lib/cybersource_rest_client/models/payment_products_payer_authentication_configuration_information.rb +200 -0
- data/lib/cybersource_rest_client/models/payment_products_payer_authentication_configuration_information_configurations.rb +190 -0
- data/lib/cybersource_rest_client/models/payment_products_payer_authentication_configuration_information_configurations_card_types.rb +260 -0
- data/lib/cybersource_rest_client/models/payment_products_payer_authentication_configuration_information_configurations_card_types_cb.rb +221 -0
- data/lib/cybersource_rest_client/models/payment_products_payer_authentication_subscription_information.rb +237 -0
- data/lib/cybersource_rest_client/models/payment_products_payouts.rb +200 -0
- data/lib/cybersource_rest_client/models/payment_products_payouts_configuration_information.rb +190 -0
- data/lib/cybersource_rest_client/models/payment_products_payouts_configuration_information_configurations.rb +204 -0
- data/lib/cybersource_rest_client/models/payment_products_payouts_configuration_information_configurations_processor_account.rb +237 -0
- data/lib/cybersource_rest_client/models/payment_products_payouts_configuration_information_configurations_pullfunds.rb +311 -0
- data/lib/cybersource_rest_client/models/payment_products_payouts_configuration_information_configurations_pushfunds.rb +336 -0
- data/lib/cybersource_rest_client/models/payment_products_secure_acceptance.rb +200 -0
- data/lib/cybersource_rest_client/models/payment_products_secure_acceptance_config_notifications_customer_notifications.rb +258 -0
- data/lib/cybersource_rest_client/models/payment_products_secure_acceptance_config_notifications_merchant_notifications.rb +235 -0
- data/lib/cybersource_rest_client/models/payment_products_secure_acceptance_config_payment_types_card_types.rb +220 -0
- data/lib/cybersource_rest_client/models/payment_products_secure_acceptance_config_payment_types_card_types_discover.rb +257 -0
- data/lib/cybersource_rest_client/models/payment_products_secure_acceptance_configuration_information.rb +200 -0
- data/lib/cybersource_rest_client/models/payment_products_secure_acceptance_configuration_information_configurations.rb +251 -0
- data/lib/cybersource_rest_client/models/payment_products_secure_acceptance_configuration_information_configurations_checkout.rb +213 -0
- data/lib/cybersource_rest_client/models/payment_products_secure_acceptance_configuration_information_configurations_contact_information.rb +221 -0
- data/lib/cybersource_rest_client/models/payment_products_secure_acceptance_configuration_information_configurations_notifications.rb +200 -0
- data/lib/cybersource_rest_client/models/payment_products_secure_acceptance_configuration_information_configurations_payment_methods.rb +214 -0
- data/lib/cybersource_rest_client/models/payment_products_secure_acceptance_configuration_information_configurations_payment_types.rb +191 -0
- data/lib/cybersource_rest_client/models/payment_products_secure_acceptance_configuration_information_configurations_service.rb +257 -0
- data/lib/cybersource_rest_client/models/payment_products_tax.rb +190 -0
- data/lib/cybersource_rest_client/models/payment_products_virtual_terminal.rb +200 -0
- data/lib/cybersource_rest_client/models/payment_products_virtual_terminal_config_card_not_present_global_payment_info.rb +210 -0
- data/lib/cybersource_rest_client/models/payment_products_virtual_terminal_config_card_not_present_global_payment_info_basic_info.rb +318 -0
- data/lib/cybersource_rest_client/models/payment_products_virtual_terminal_config_card_not_present_merchant_defined_data_fields.rb +430 -0
- data/lib/cybersource_rest_client/models/payment_products_virtual_terminal_config_card_not_present_payment_info.rb +338 -0
- data/lib/cybersource_rest_client/models/payment_products_virtual_terminal_config_card_not_present_receipt_info.rb +210 -0
- data/lib/cybersource_rest_client/models/payment_products_virtual_terminal_config_card_not_present_receipt_info_email_receipt.rb +190 -0
- data/lib/cybersource_rest_client/models/payment_products_virtual_terminal_config_card_not_present_receipt_info_header.rb +190 -0
- data/lib/cybersource_rest_client/models/payment_products_virtual_terminal_config_card_not_present_receipt_info_order_info.rb +200 -0
- data/lib/cybersource_rest_client/models/payment_products_virtual_terminal_configuration_information.rb +200 -0
- data/lib/cybersource_rest_client/models/payment_products_virtual_terminal_configuration_information_configurations.rb +200 -0
- data/lib/cybersource_rest_client/models/payment_products_virtual_terminal_configuration_information_configurations_card_not_present.rb +200 -0
- data/lib/cybersource_rest_client/models/post_registration_body.rb +230 -0
- data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_issuer_information.rb +22 -5
- data/lib/cybersource_rest_client/models/pts_v2_payments_reversals_post201_response.rb +1 -1
- data/lib/cybersource_rest_client/models/ptsv2billingagreements_payment_information_tokenized_card.rb +1 -1
- data/lib/cybersource_rest_client/models/ptsv2payments_consumer_authentication_information.rb +18 -1
- data/lib/cybersource_rest_client/models/ptsv2payments_merchant_defined_secure_information.rb +249 -0
- data/lib/cybersource_rest_client/models/ptsv2payments_payment_information_tokenized_card.rb +1 -1
- data/lib/cybersource_rest_client/models/ptsv2payments_processing_information.rb +22 -5
- data/lib/cybersource_rest_client/models/ptsv2payments_travel_information.rb +15 -5
- data/lib/cybersource_rest_client/models/ptsv2payments_travel_information_vehicle_data.rb +214 -0
- data/lib/cybersource_rest_client/models/ptsv2payouts_merchant_information_merchant_descriptor.rb +22 -5
- data/lib/cybersource_rest_client/models/replay_webhooks.rb +202 -0
- data/lib/cybersource_rest_client/models/reporting_v3_purchase_refund_details_get200_response.rb +1 -0
- data/lib/cybersource_rest_client/models/risk_products.rb +200 -0
- data/lib/cybersource_rest_client/models/risk_products_decision_manager.rb +200 -0
- data/lib/cybersource_rest_client/models/risk_products_decision_manager_config_thirdparty_provider_accurint.rb +200 -0
- data/lib/cybersource_rest_client/models/risk_products_decision_manager_config_thirdparty_provider_accurint_creds.rb +200 -0
- data/lib/cybersource_rest_client/models/risk_products_decision_manager_config_thirdparty_provider_credilink.rb +220 -0
- data/lib/cybersource_rest_client/models/risk_products_decision_manager_config_thirdparty_provider_credilink_creds.rb +210 -0
- data/lib/cybersource_rest_client/models/risk_products_decision_manager_config_thirdparty_provider_ekata_creds.rb +190 -0
- data/lib/cybersource_rest_client/models/risk_products_decision_manager_config_thirdparty_provider_emailage.rb +220 -0
- data/lib/cybersource_rest_client/models/risk_products_decision_manager_config_thirdparty_provider_perseuss.rb +210 -0
- data/lib/cybersource_rest_client/models/risk_products_decision_manager_config_thirdparty_provider_signifyd.rb +200 -0
- data/lib/cybersource_rest_client/models/risk_products_decision_manager_config_thirdparty_provider_signifyd_creds.rb +220 -0
- data/lib/cybersource_rest_client/models/risk_products_decision_manager_config_thirdparty_provider_targus.rb +210 -0
- data/lib/cybersource_rest_client/models/risk_products_decision_manager_config_thirdparty_provider_targus_creds.rb +210 -0
- data/lib/cybersource_rest_client/models/risk_products_decision_manager_configuration_information.rb +200 -0
- data/lib/cybersource_rest_client/models/risk_products_decision_manager_configuration_information_configurations.rb +220 -0
- data/lib/cybersource_rest_client/models/risk_products_decision_manager_configuration_information_configurations_organization.rb +191 -0
- data/lib/cybersource_rest_client/models/risk_products_decision_manager_configuration_information_configurations_portfolio_controls.rb +200 -0
- data/lib/cybersource_rest_client/models/risk_products_decision_manager_configuration_information_configurations_processing_options.rb +190 -0
- data/lib/cybersource_rest_client/models/risk_products_decision_manager_configuration_information_configurations_thirdparty.rb +190 -0
- data/lib/cybersource_rest_client/models/risk_products_decision_manager_configuration_information_configurations_thirdparty_provider.rb +250 -0
- data/lib/cybersource_rest_client/models/risk_products_decision_manager_configuration_information_configurations_thirdparty_provider_ekata.rb +220 -0
- data/lib/cybersource_rest_client/models/risk_products_fraud_management_essentials.rb +200 -0
- data/lib/cybersource_rest_client/models/risk_products_fraud_management_essentials_configuration_information.rb +190 -0
- data/lib/cybersource_rest_client/models/riskv1authenticationresults_payment_information_tokenized_card.rb +1 -1
- data/lib/cybersource_rest_client/models/riskv1authentications_payment_information_tokenized_card.rb +1 -1
- data/lib/cybersource_rest_client/models/riskv1authenticationsetups_payment_information_tokenized_card.rb +1 -1
- data/lib/cybersource_rest_client/models/riskv1decisions_consumer_authentication_information.rb +1 -1
- data/lib/cybersource_rest_client/models/riskv1decisions_payment_information_tokenized_card.rb +1 -1
- data/lib/cybersource_rest_client/models/save_asym_egress_key.rb +216 -0
- data/lib/cybersource_rest_client/models/save_sym_egress_key.rb +216 -0
- data/lib/cybersource_rest_client/models/update_webhook.rb +315 -0
- data/lib/cybersource_rest_client/models/value_added_services_products.rb +200 -0
- data/lib/cybersource_rest_client/utilities/tracking/sdk_tracker.rb +71 -0
- data/lib/cybersource_rest_client.rb +214 -13
- metadata +216 -29
@@ -0,0 +1,200 @@
|
|
1
|
+
=begin
|
2
|
+
#CyberSource Merged Spec
|
3
|
+
|
4
|
+
#All CyberSource API specs merged together. These are available at https://developer.cybersource.com/api/reference/api-reference.html
|
5
|
+
|
6
|
+
OpenAPI spec version: 0.0.1
|
7
|
+
|
8
|
+
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
|
+
Swagger Codegen version: 2.2.3
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'date'
|
14
|
+
|
15
|
+
module CyberSource
|
16
|
+
class RiskProductsDecisionManagerConfigurationInformationConfigurationsThirdpartyProviderSignifyd
|
17
|
+
attr_accessor :enabled
|
18
|
+
|
19
|
+
attr_accessor :credentials
|
20
|
+
|
21
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
22
|
+
def self.attribute_map
|
23
|
+
{
|
24
|
+
:'enabled' => :'enabled',
|
25
|
+
:'credentials' => :'credentials'
|
26
|
+
}
|
27
|
+
end
|
28
|
+
|
29
|
+
# Attribute mapping from JSON key to ruby-style variable name.
|
30
|
+
def self.json_map
|
31
|
+
{
|
32
|
+
:'enabled' => :'enabled',
|
33
|
+
:'credentials' => :'credentials'
|
34
|
+
}
|
35
|
+
end
|
36
|
+
|
37
|
+
# Attribute type mapping.
|
38
|
+
def self.swagger_types
|
39
|
+
{
|
40
|
+
:'enabled' => :'BOOLEAN',
|
41
|
+
:'credentials' => :'RiskProductsDecisionManagerConfigurationInformationConfigurationsThirdpartyProviderSignifydCredentials'
|
42
|
+
}
|
43
|
+
end
|
44
|
+
|
45
|
+
# Initializes the object
|
46
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
47
|
+
def initialize(attributes = {})
|
48
|
+
return unless attributes.is_a?(Hash)
|
49
|
+
|
50
|
+
# convert string to symbol for hash key
|
51
|
+
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
52
|
+
|
53
|
+
if attributes.has_key?(:'enabled')
|
54
|
+
self.enabled = attributes[:'enabled']
|
55
|
+
end
|
56
|
+
|
57
|
+
if attributes.has_key?(:'credentials')
|
58
|
+
self.credentials = attributes[:'credentials']
|
59
|
+
end
|
60
|
+
end
|
61
|
+
|
62
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
63
|
+
# @return Array for valid properties with the reasons
|
64
|
+
def list_invalid_properties
|
65
|
+
invalid_properties = Array.new
|
66
|
+
invalid_properties
|
67
|
+
end
|
68
|
+
|
69
|
+
# Check to see if the all the properties in the model are valid
|
70
|
+
# @return true if the model is valid
|
71
|
+
def valid?
|
72
|
+
true
|
73
|
+
end
|
74
|
+
|
75
|
+
# Checks equality by comparing each attribute.
|
76
|
+
# @param [Object] Object to be compared
|
77
|
+
def ==(o)
|
78
|
+
return true if self.equal?(o)
|
79
|
+
self.class == o.class &&
|
80
|
+
enabled == o.enabled &&
|
81
|
+
credentials == o.credentials
|
82
|
+
end
|
83
|
+
|
84
|
+
# @see the `==` method
|
85
|
+
# @param [Object] Object to be compared
|
86
|
+
def eql?(o)
|
87
|
+
self == o
|
88
|
+
end
|
89
|
+
|
90
|
+
# Calculates hash code according to all attributes.
|
91
|
+
# @return [Fixnum] Hash code
|
92
|
+
def hash
|
93
|
+
[enabled, credentials].hash
|
94
|
+
end
|
95
|
+
|
96
|
+
# Builds the object from hash
|
97
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
98
|
+
# @return [Object] Returns the model itself
|
99
|
+
def build_from_hash(attributes)
|
100
|
+
return nil unless attributes.is_a?(Hash)
|
101
|
+
self.class.swagger_types.each_pair do |key, type|
|
102
|
+
if type =~ /\AArray<(.*)>/i
|
103
|
+
# check to ensure the input is an array given that the the attribute
|
104
|
+
# is documented as an array but the input is not
|
105
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
106
|
+
self.send("#{self.class.json_map[key]}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
107
|
+
end
|
108
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
109
|
+
self.send("#{self.class.json_map[key]}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
110
|
+
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
111
|
+
end
|
112
|
+
|
113
|
+
self
|
114
|
+
end
|
115
|
+
|
116
|
+
# Deserializes the data based on type
|
117
|
+
# @param string type Data type
|
118
|
+
# @param string value Value to be deserialized
|
119
|
+
# @return [Object] Deserialized data
|
120
|
+
def _deserialize(type, value)
|
121
|
+
case type.to_sym
|
122
|
+
when :DateTime
|
123
|
+
DateTime.parse(value)
|
124
|
+
when :Date
|
125
|
+
Date.parse(value)
|
126
|
+
when :String
|
127
|
+
value.to_s
|
128
|
+
when :Integer
|
129
|
+
value.to_i
|
130
|
+
when :Float
|
131
|
+
value.to_f
|
132
|
+
when :BOOLEAN
|
133
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
134
|
+
true
|
135
|
+
else
|
136
|
+
false
|
137
|
+
end
|
138
|
+
when :Object
|
139
|
+
# generic object (usually a Hash), return directly
|
140
|
+
value
|
141
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
142
|
+
inner_type = Regexp.last_match[:inner_type]
|
143
|
+
value.map { |v| _deserialize(inner_type, v) }
|
144
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
145
|
+
k_type = Regexp.last_match[:k_type]
|
146
|
+
v_type = Regexp.last_match[:v_type]
|
147
|
+
{}.tap do |hash|
|
148
|
+
value.each do |k, v|
|
149
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
150
|
+
end
|
151
|
+
end
|
152
|
+
else # model
|
153
|
+
temp_model = CyberSource.const_get(type).new
|
154
|
+
temp_model.build_from_hash(value)
|
155
|
+
end
|
156
|
+
end
|
157
|
+
|
158
|
+
# Returns the string representation of the object
|
159
|
+
# @return [String] String presentation of the object
|
160
|
+
def to_s
|
161
|
+
to_hash.to_s
|
162
|
+
end
|
163
|
+
|
164
|
+
# to_body is an alias to to_hash (backward compatibility)
|
165
|
+
# @return [Hash] Returns the object in the form of hash
|
166
|
+
def to_body
|
167
|
+
to_hash
|
168
|
+
end
|
169
|
+
|
170
|
+
# Returns the object in the form of hash
|
171
|
+
# @return [Hash] Returns the object in the form of hash
|
172
|
+
def to_hash
|
173
|
+
hash = {}
|
174
|
+
self.class.attribute_map.each_pair do |attr, param|
|
175
|
+
value = self.send(attr)
|
176
|
+
next if value.nil?
|
177
|
+
hash[param] = _to_hash(value)
|
178
|
+
end
|
179
|
+
hash
|
180
|
+
end
|
181
|
+
|
182
|
+
# Outputs non-array value in the form of hash
|
183
|
+
# For object, use to_hash. Otherwise, just return the value
|
184
|
+
# @param [Object] value Any valid value
|
185
|
+
# @return [Hash] Returns the value in the form of hash
|
186
|
+
def _to_hash(value)
|
187
|
+
if value.is_a?(Array)
|
188
|
+
value.compact.map { |v| _to_hash(v) }
|
189
|
+
elsif value.is_a?(Hash)
|
190
|
+
{}.tap do |hash|
|
191
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
192
|
+
end
|
193
|
+
elsif value.respond_to? :to_hash
|
194
|
+
value.to_hash
|
195
|
+
else
|
196
|
+
value
|
197
|
+
end
|
198
|
+
end
|
199
|
+
end
|
200
|
+
end
|
@@ -0,0 +1,220 @@
|
|
1
|
+
=begin
|
2
|
+
#CyberSource Merged Spec
|
3
|
+
|
4
|
+
#All CyberSource API specs merged together. These are available at https://developer.cybersource.com/api/reference/api-reference.html
|
5
|
+
|
6
|
+
OpenAPI spec version: 0.0.1
|
7
|
+
|
8
|
+
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
|
+
Swagger Codegen version: 2.2.3
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'date'
|
14
|
+
|
15
|
+
module CyberSource
|
16
|
+
class RiskProductsDecisionManagerConfigurationInformationConfigurationsThirdpartyProviderSignifydCredentials
|
17
|
+
attr_accessor :team_id
|
18
|
+
|
19
|
+
attr_accessor :api_key
|
20
|
+
|
21
|
+
attr_accessor :secret_keyid
|
22
|
+
|
23
|
+
attr_accessor :secret_key
|
24
|
+
|
25
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
26
|
+
def self.attribute_map
|
27
|
+
{
|
28
|
+
:'team_id' => :'teamId',
|
29
|
+
:'api_key' => :'apiKey',
|
30
|
+
:'secret_keyid' => :'secretKeyid',
|
31
|
+
:'secret_key' => :'secretKey'
|
32
|
+
}
|
33
|
+
end
|
34
|
+
|
35
|
+
# Attribute mapping from JSON key to ruby-style variable name.
|
36
|
+
def self.json_map
|
37
|
+
{
|
38
|
+
:'team_id' => :'team_id',
|
39
|
+
:'api_key' => :'api_key',
|
40
|
+
:'secret_keyid' => :'secret_keyid',
|
41
|
+
:'secret_key' => :'secret_key'
|
42
|
+
}
|
43
|
+
end
|
44
|
+
|
45
|
+
# Attribute type mapping.
|
46
|
+
def self.swagger_types
|
47
|
+
{
|
48
|
+
:'team_id' => :'String',
|
49
|
+
:'api_key' => :'String',
|
50
|
+
:'secret_keyid' => :'String',
|
51
|
+
:'secret_key' => :'String'
|
52
|
+
}
|
53
|
+
end
|
54
|
+
|
55
|
+
# Initializes the object
|
56
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
57
|
+
def initialize(attributes = {})
|
58
|
+
return unless attributes.is_a?(Hash)
|
59
|
+
|
60
|
+
# convert string to symbol for hash key
|
61
|
+
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
62
|
+
|
63
|
+
if attributes.has_key?(:'teamId')
|
64
|
+
self.team_id = attributes[:'teamId']
|
65
|
+
end
|
66
|
+
|
67
|
+
if attributes.has_key?(:'apiKey')
|
68
|
+
self.api_key = attributes[:'apiKey']
|
69
|
+
end
|
70
|
+
|
71
|
+
if attributes.has_key?(:'secretKeyid')
|
72
|
+
self.secret_keyid = attributes[:'secretKeyid']
|
73
|
+
end
|
74
|
+
|
75
|
+
if attributes.has_key?(:'secretKey')
|
76
|
+
self.secret_key = attributes[:'secretKey']
|
77
|
+
end
|
78
|
+
end
|
79
|
+
|
80
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
81
|
+
# @return Array for valid properties with the reasons
|
82
|
+
def list_invalid_properties
|
83
|
+
invalid_properties = Array.new
|
84
|
+
invalid_properties
|
85
|
+
end
|
86
|
+
|
87
|
+
# Check to see if the all the properties in the model are valid
|
88
|
+
# @return true if the model is valid
|
89
|
+
def valid?
|
90
|
+
true
|
91
|
+
end
|
92
|
+
|
93
|
+
# Checks equality by comparing each attribute.
|
94
|
+
# @param [Object] Object to be compared
|
95
|
+
def ==(o)
|
96
|
+
return true if self.equal?(o)
|
97
|
+
self.class == o.class &&
|
98
|
+
team_id == o.team_id &&
|
99
|
+
api_key == o.api_key &&
|
100
|
+
secret_keyid == o.secret_keyid &&
|
101
|
+
secret_key == o.secret_key
|
102
|
+
end
|
103
|
+
|
104
|
+
# @see the `==` method
|
105
|
+
# @param [Object] Object to be compared
|
106
|
+
def eql?(o)
|
107
|
+
self == o
|
108
|
+
end
|
109
|
+
|
110
|
+
# Calculates hash code according to all attributes.
|
111
|
+
# @return [Fixnum] Hash code
|
112
|
+
def hash
|
113
|
+
[team_id, api_key, secret_keyid, secret_key].hash
|
114
|
+
end
|
115
|
+
|
116
|
+
# Builds the object from hash
|
117
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
118
|
+
# @return [Object] Returns the model itself
|
119
|
+
def build_from_hash(attributes)
|
120
|
+
return nil unless attributes.is_a?(Hash)
|
121
|
+
self.class.swagger_types.each_pair do |key, type|
|
122
|
+
if type =~ /\AArray<(.*)>/i
|
123
|
+
# check to ensure the input is an array given that the the attribute
|
124
|
+
# is documented as an array but the input is not
|
125
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
126
|
+
self.send("#{self.class.json_map[key]}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
127
|
+
end
|
128
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
129
|
+
self.send("#{self.class.json_map[key]}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
130
|
+
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
131
|
+
end
|
132
|
+
|
133
|
+
self
|
134
|
+
end
|
135
|
+
|
136
|
+
# Deserializes the data based on type
|
137
|
+
# @param string type Data type
|
138
|
+
# @param string value Value to be deserialized
|
139
|
+
# @return [Object] Deserialized data
|
140
|
+
def _deserialize(type, value)
|
141
|
+
case type.to_sym
|
142
|
+
when :DateTime
|
143
|
+
DateTime.parse(value)
|
144
|
+
when :Date
|
145
|
+
Date.parse(value)
|
146
|
+
when :String
|
147
|
+
value.to_s
|
148
|
+
when :Integer
|
149
|
+
value.to_i
|
150
|
+
when :Float
|
151
|
+
value.to_f
|
152
|
+
when :BOOLEAN
|
153
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
154
|
+
true
|
155
|
+
else
|
156
|
+
false
|
157
|
+
end
|
158
|
+
when :Object
|
159
|
+
# generic object (usually a Hash), return directly
|
160
|
+
value
|
161
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
162
|
+
inner_type = Regexp.last_match[:inner_type]
|
163
|
+
value.map { |v| _deserialize(inner_type, v) }
|
164
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
165
|
+
k_type = Regexp.last_match[:k_type]
|
166
|
+
v_type = Regexp.last_match[:v_type]
|
167
|
+
{}.tap do |hash|
|
168
|
+
value.each do |k, v|
|
169
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
170
|
+
end
|
171
|
+
end
|
172
|
+
else # model
|
173
|
+
temp_model = CyberSource.const_get(type).new
|
174
|
+
temp_model.build_from_hash(value)
|
175
|
+
end
|
176
|
+
end
|
177
|
+
|
178
|
+
# Returns the string representation of the object
|
179
|
+
# @return [String] String presentation of the object
|
180
|
+
def to_s
|
181
|
+
to_hash.to_s
|
182
|
+
end
|
183
|
+
|
184
|
+
# to_body is an alias to to_hash (backward compatibility)
|
185
|
+
# @return [Hash] Returns the object in the form of hash
|
186
|
+
def to_body
|
187
|
+
to_hash
|
188
|
+
end
|
189
|
+
|
190
|
+
# Returns the object in the form of hash
|
191
|
+
# @return [Hash] Returns the object in the form of hash
|
192
|
+
def to_hash
|
193
|
+
hash = {}
|
194
|
+
self.class.attribute_map.each_pair do |attr, param|
|
195
|
+
value = self.send(attr)
|
196
|
+
next if value.nil?
|
197
|
+
hash[param] = _to_hash(value)
|
198
|
+
end
|
199
|
+
hash
|
200
|
+
end
|
201
|
+
|
202
|
+
# Outputs non-array value in the form of hash
|
203
|
+
# For object, use to_hash. Otherwise, just return the value
|
204
|
+
# @param [Object] value Any valid value
|
205
|
+
# @return [Hash] Returns the value in the form of hash
|
206
|
+
def _to_hash(value)
|
207
|
+
if value.is_a?(Array)
|
208
|
+
value.compact.map { |v| _to_hash(v) }
|
209
|
+
elsif value.is_a?(Hash)
|
210
|
+
{}.tap do |hash|
|
211
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
212
|
+
end
|
213
|
+
elsif value.respond_to? :to_hash
|
214
|
+
value.to_hash
|
215
|
+
else
|
216
|
+
value
|
217
|
+
end
|
218
|
+
end
|
219
|
+
end
|
220
|
+
end
|
@@ -0,0 +1,210 @@
|
|
1
|
+
=begin
|
2
|
+
#CyberSource Merged Spec
|
3
|
+
|
4
|
+
#All CyberSource API specs merged together. These are available at https://developer.cybersource.com/api/reference/api-reference.html
|
5
|
+
|
6
|
+
OpenAPI spec version: 0.0.1
|
7
|
+
|
8
|
+
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
|
+
Swagger Codegen version: 2.2.3
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'date'
|
14
|
+
|
15
|
+
module CyberSource
|
16
|
+
class RiskProductsDecisionManagerConfigurationInformationConfigurationsThirdpartyProviderTargus
|
17
|
+
attr_accessor :enabled
|
18
|
+
|
19
|
+
attr_accessor :use_cybs_credentials
|
20
|
+
|
21
|
+
attr_accessor :credentials
|
22
|
+
|
23
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
24
|
+
def self.attribute_map
|
25
|
+
{
|
26
|
+
:'enabled' => :'enabled',
|
27
|
+
:'use_cybs_credentials' => :'useCybsCredentials',
|
28
|
+
:'credentials' => :'credentials'
|
29
|
+
}
|
30
|
+
end
|
31
|
+
|
32
|
+
# Attribute mapping from JSON key to ruby-style variable name.
|
33
|
+
def self.json_map
|
34
|
+
{
|
35
|
+
:'enabled' => :'enabled',
|
36
|
+
:'use_cybs_credentials' => :'use_cybs_credentials',
|
37
|
+
:'credentials' => :'credentials'
|
38
|
+
}
|
39
|
+
end
|
40
|
+
|
41
|
+
# Attribute type mapping.
|
42
|
+
def self.swagger_types
|
43
|
+
{
|
44
|
+
:'enabled' => :'BOOLEAN',
|
45
|
+
:'use_cybs_credentials' => :'BOOLEAN',
|
46
|
+
:'credentials' => :'RiskProductsDecisionManagerConfigurationInformationConfigurationsThirdpartyProviderTargusCredentials'
|
47
|
+
}
|
48
|
+
end
|
49
|
+
|
50
|
+
# Initializes the object
|
51
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
52
|
+
def initialize(attributes = {})
|
53
|
+
return unless attributes.is_a?(Hash)
|
54
|
+
|
55
|
+
# convert string to symbol for hash key
|
56
|
+
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
57
|
+
|
58
|
+
if attributes.has_key?(:'enabled')
|
59
|
+
self.enabled = attributes[:'enabled']
|
60
|
+
end
|
61
|
+
|
62
|
+
if attributes.has_key?(:'useCybsCredentials')
|
63
|
+
self.use_cybs_credentials = attributes[:'useCybsCredentials']
|
64
|
+
end
|
65
|
+
|
66
|
+
if attributes.has_key?(:'credentials')
|
67
|
+
self.credentials = attributes[:'credentials']
|
68
|
+
end
|
69
|
+
end
|
70
|
+
|
71
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
72
|
+
# @return Array for valid properties with the reasons
|
73
|
+
def list_invalid_properties
|
74
|
+
invalid_properties = Array.new
|
75
|
+
invalid_properties
|
76
|
+
end
|
77
|
+
|
78
|
+
# Check to see if the all the properties in the model are valid
|
79
|
+
# @return true if the model is valid
|
80
|
+
def valid?
|
81
|
+
true
|
82
|
+
end
|
83
|
+
|
84
|
+
# Checks equality by comparing each attribute.
|
85
|
+
# @param [Object] Object to be compared
|
86
|
+
def ==(o)
|
87
|
+
return true if self.equal?(o)
|
88
|
+
self.class == o.class &&
|
89
|
+
enabled == o.enabled &&
|
90
|
+
use_cybs_credentials == o.use_cybs_credentials &&
|
91
|
+
credentials == o.credentials
|
92
|
+
end
|
93
|
+
|
94
|
+
# @see the `==` method
|
95
|
+
# @param [Object] Object to be compared
|
96
|
+
def eql?(o)
|
97
|
+
self == o
|
98
|
+
end
|
99
|
+
|
100
|
+
# Calculates hash code according to all attributes.
|
101
|
+
# @return [Fixnum] Hash code
|
102
|
+
def hash
|
103
|
+
[enabled, use_cybs_credentials, credentials].hash
|
104
|
+
end
|
105
|
+
|
106
|
+
# Builds the object from hash
|
107
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
108
|
+
# @return [Object] Returns the model itself
|
109
|
+
def build_from_hash(attributes)
|
110
|
+
return nil unless attributes.is_a?(Hash)
|
111
|
+
self.class.swagger_types.each_pair do |key, type|
|
112
|
+
if type =~ /\AArray<(.*)>/i
|
113
|
+
# check to ensure the input is an array given that the the attribute
|
114
|
+
# is documented as an array but the input is not
|
115
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
116
|
+
self.send("#{self.class.json_map[key]}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
117
|
+
end
|
118
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
119
|
+
self.send("#{self.class.json_map[key]}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
120
|
+
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
121
|
+
end
|
122
|
+
|
123
|
+
self
|
124
|
+
end
|
125
|
+
|
126
|
+
# Deserializes the data based on type
|
127
|
+
# @param string type Data type
|
128
|
+
# @param string value Value to be deserialized
|
129
|
+
# @return [Object] Deserialized data
|
130
|
+
def _deserialize(type, value)
|
131
|
+
case type.to_sym
|
132
|
+
when :DateTime
|
133
|
+
DateTime.parse(value)
|
134
|
+
when :Date
|
135
|
+
Date.parse(value)
|
136
|
+
when :String
|
137
|
+
value.to_s
|
138
|
+
when :Integer
|
139
|
+
value.to_i
|
140
|
+
when :Float
|
141
|
+
value.to_f
|
142
|
+
when :BOOLEAN
|
143
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
144
|
+
true
|
145
|
+
else
|
146
|
+
false
|
147
|
+
end
|
148
|
+
when :Object
|
149
|
+
# generic object (usually a Hash), return directly
|
150
|
+
value
|
151
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
152
|
+
inner_type = Regexp.last_match[:inner_type]
|
153
|
+
value.map { |v| _deserialize(inner_type, v) }
|
154
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
155
|
+
k_type = Regexp.last_match[:k_type]
|
156
|
+
v_type = Regexp.last_match[:v_type]
|
157
|
+
{}.tap do |hash|
|
158
|
+
value.each do |k, v|
|
159
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
160
|
+
end
|
161
|
+
end
|
162
|
+
else # model
|
163
|
+
temp_model = CyberSource.const_get(type).new
|
164
|
+
temp_model.build_from_hash(value)
|
165
|
+
end
|
166
|
+
end
|
167
|
+
|
168
|
+
# Returns the string representation of the object
|
169
|
+
# @return [String] String presentation of the object
|
170
|
+
def to_s
|
171
|
+
to_hash.to_s
|
172
|
+
end
|
173
|
+
|
174
|
+
# to_body is an alias to to_hash (backward compatibility)
|
175
|
+
# @return [Hash] Returns the object in the form of hash
|
176
|
+
def to_body
|
177
|
+
to_hash
|
178
|
+
end
|
179
|
+
|
180
|
+
# Returns the object in the form of hash
|
181
|
+
# @return [Hash] Returns the object in the form of hash
|
182
|
+
def to_hash
|
183
|
+
hash = {}
|
184
|
+
self.class.attribute_map.each_pair do |attr, param|
|
185
|
+
value = self.send(attr)
|
186
|
+
next if value.nil?
|
187
|
+
hash[param] = _to_hash(value)
|
188
|
+
end
|
189
|
+
hash
|
190
|
+
end
|
191
|
+
|
192
|
+
# Outputs non-array value in the form of hash
|
193
|
+
# For object, use to_hash. Otherwise, just return the value
|
194
|
+
# @param [Object] value Any valid value
|
195
|
+
# @return [Hash] Returns the value in the form of hash
|
196
|
+
def _to_hash(value)
|
197
|
+
if value.is_a?(Array)
|
198
|
+
value.compact.map { |v| _to_hash(v) }
|
199
|
+
elsif value.is_a?(Hash)
|
200
|
+
{}.tap do |hash|
|
201
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
202
|
+
end
|
203
|
+
elsif value.respond_to? :to_hash
|
204
|
+
value.to_hash
|
205
|
+
else
|
206
|
+
value
|
207
|
+
end
|
208
|
+
end
|
209
|
+
end
|
210
|
+
end
|