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,236 @@
|
|
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
|
+
# Identifies the financial institution acting as the acquirer of this customer transaction. The acquirer is the member or system user that signed the merchant.
|
17
|
+
class PaymentProductsCardProcessingConfigurationInformationConfigurationsCommonAcquirer
|
18
|
+
# Identifier of the acquirer. This number is usually assigned by Visa. Applicable for VPC, GPX (gpx), CMCIC (cmcic), EFTPOS, CB2A, CUP, American Express Direct (amexdirect) and Six (six) processors. Validation details (for selected processors)... <table> <thead><tr><th>Processor</th><th>Acceptance Type</th><th>Required</th><th>Min. Length</th><th>Max. Length</th><th>Regex</th><th>Default Value</th></tr></thead> <tr><td>American Express Direct</td><td>cnp, cp, hybrid</td><td>Yes</td><td>1</td><td>13</td><td>^[0-9]+$</td><td>1111</td></tr> </table>
|
19
|
+
attr_accessor :institution_id
|
20
|
+
|
21
|
+
# Number assigned by MasterCard to banks to identify the member in transactions. Applicable for VPC and GPX (gpx) processors.
|
22
|
+
attr_accessor :interbank_card_association_id
|
23
|
+
|
24
|
+
# Assigned by Discover to identify the acquirer. Applicable for VPC and GPX (gpx) processors.
|
25
|
+
attr_accessor :discover_institution_id
|
26
|
+
|
27
|
+
# ISO 4217 format. Applicable for VPC, GPX (gpx), EFTPOS, RUPAY, Prisma (prisma) and CUP processors.
|
28
|
+
attr_accessor :country_code
|
29
|
+
|
30
|
+
# The BIN to which this capturefile is sent. This field must contain a valid BIN. Applicable for VPC and GPX (gpx) processors.
|
31
|
+
attr_accessor :file_destination_bin
|
32
|
+
|
33
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
34
|
+
def self.attribute_map
|
35
|
+
{
|
36
|
+
:'institution_id' => :'institutionId',
|
37
|
+
:'interbank_card_association_id' => :'interbankCardAssociationId',
|
38
|
+
:'discover_institution_id' => :'discoverInstitutionId',
|
39
|
+
:'country_code' => :'countryCode',
|
40
|
+
:'file_destination_bin' => :'fileDestinationBin'
|
41
|
+
}
|
42
|
+
end
|
43
|
+
|
44
|
+
# Attribute mapping from JSON key to ruby-style variable name.
|
45
|
+
def self.json_map
|
46
|
+
{
|
47
|
+
:'institution_id' => :'institution_id',
|
48
|
+
:'interbank_card_association_id' => :'interbank_card_association_id',
|
49
|
+
:'discover_institution_id' => :'discover_institution_id',
|
50
|
+
:'country_code' => :'country_code',
|
51
|
+
:'file_destination_bin' => :'file_destination_bin'
|
52
|
+
}
|
53
|
+
end
|
54
|
+
|
55
|
+
# Attribute type mapping.
|
56
|
+
def self.swagger_types
|
57
|
+
{
|
58
|
+
:'institution_id' => :'String',
|
59
|
+
:'interbank_card_association_id' => :'String',
|
60
|
+
:'discover_institution_id' => :'String',
|
61
|
+
:'country_code' => :'String',
|
62
|
+
:'file_destination_bin' => :'String'
|
63
|
+
}
|
64
|
+
end
|
65
|
+
|
66
|
+
# Initializes the object
|
67
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
68
|
+
def initialize(attributes = {})
|
69
|
+
return unless attributes.is_a?(Hash)
|
70
|
+
|
71
|
+
# convert string to symbol for hash key
|
72
|
+
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
73
|
+
|
74
|
+
if attributes.has_key?(:'institutionId')
|
75
|
+
self.institution_id = attributes[:'institutionId']
|
76
|
+
end
|
77
|
+
|
78
|
+
if attributes.has_key?(:'interbankCardAssociationId')
|
79
|
+
self.interbank_card_association_id = attributes[:'interbankCardAssociationId']
|
80
|
+
end
|
81
|
+
|
82
|
+
if attributes.has_key?(:'discoverInstitutionId')
|
83
|
+
self.discover_institution_id = attributes[:'discoverInstitutionId']
|
84
|
+
end
|
85
|
+
|
86
|
+
if attributes.has_key?(:'countryCode')
|
87
|
+
self.country_code = attributes[:'countryCode']
|
88
|
+
end
|
89
|
+
|
90
|
+
if attributes.has_key?(:'fileDestinationBin')
|
91
|
+
self.file_destination_bin = attributes[:'fileDestinationBin']
|
92
|
+
end
|
93
|
+
end
|
94
|
+
|
95
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
96
|
+
# @return Array for valid properties with the reasons
|
97
|
+
def list_invalid_properties
|
98
|
+
invalid_properties = Array.new
|
99
|
+
invalid_properties
|
100
|
+
end
|
101
|
+
|
102
|
+
# Check to see if the all the properties in the model are valid
|
103
|
+
# @return true if the model is valid
|
104
|
+
def valid?
|
105
|
+
true
|
106
|
+
end
|
107
|
+
|
108
|
+
# Checks equality by comparing each attribute.
|
109
|
+
# @param [Object] Object to be compared
|
110
|
+
def ==(o)
|
111
|
+
return true if self.equal?(o)
|
112
|
+
self.class == o.class &&
|
113
|
+
institution_id == o.institution_id &&
|
114
|
+
interbank_card_association_id == o.interbank_card_association_id &&
|
115
|
+
discover_institution_id == o.discover_institution_id &&
|
116
|
+
country_code == o.country_code &&
|
117
|
+
file_destination_bin == o.file_destination_bin
|
118
|
+
end
|
119
|
+
|
120
|
+
# @see the `==` method
|
121
|
+
# @param [Object] Object to be compared
|
122
|
+
def eql?(o)
|
123
|
+
self == o
|
124
|
+
end
|
125
|
+
|
126
|
+
# Calculates hash code according to all attributes.
|
127
|
+
# @return [Fixnum] Hash code
|
128
|
+
def hash
|
129
|
+
[institution_id, interbank_card_association_id, discover_institution_id, country_code, file_destination_bin].hash
|
130
|
+
end
|
131
|
+
|
132
|
+
# Builds the object from hash
|
133
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
134
|
+
# @return [Object] Returns the model itself
|
135
|
+
def build_from_hash(attributes)
|
136
|
+
return nil unless attributes.is_a?(Hash)
|
137
|
+
self.class.swagger_types.each_pair do |key, type|
|
138
|
+
if type =~ /\AArray<(.*)>/i
|
139
|
+
# check to ensure the input is an array given that the the attribute
|
140
|
+
# is documented as an array but the input is not
|
141
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
142
|
+
self.send("#{self.class.json_map[key]}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
143
|
+
end
|
144
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
145
|
+
self.send("#{self.class.json_map[key]}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
146
|
+
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
147
|
+
end
|
148
|
+
|
149
|
+
self
|
150
|
+
end
|
151
|
+
|
152
|
+
# Deserializes the data based on type
|
153
|
+
# @param string type Data type
|
154
|
+
# @param string value Value to be deserialized
|
155
|
+
# @return [Object] Deserialized data
|
156
|
+
def _deserialize(type, value)
|
157
|
+
case type.to_sym
|
158
|
+
when :DateTime
|
159
|
+
DateTime.parse(value)
|
160
|
+
when :Date
|
161
|
+
Date.parse(value)
|
162
|
+
when :String
|
163
|
+
value.to_s
|
164
|
+
when :Integer
|
165
|
+
value.to_i
|
166
|
+
when :Float
|
167
|
+
value.to_f
|
168
|
+
when :BOOLEAN
|
169
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
170
|
+
true
|
171
|
+
else
|
172
|
+
false
|
173
|
+
end
|
174
|
+
when :Object
|
175
|
+
# generic object (usually a Hash), return directly
|
176
|
+
value
|
177
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
178
|
+
inner_type = Regexp.last_match[:inner_type]
|
179
|
+
value.map { |v| _deserialize(inner_type, v) }
|
180
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
181
|
+
k_type = Regexp.last_match[:k_type]
|
182
|
+
v_type = Regexp.last_match[:v_type]
|
183
|
+
{}.tap do |hash|
|
184
|
+
value.each do |k, v|
|
185
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
186
|
+
end
|
187
|
+
end
|
188
|
+
else # model
|
189
|
+
temp_model = CyberSource.const_get(type).new
|
190
|
+
temp_model.build_from_hash(value)
|
191
|
+
end
|
192
|
+
end
|
193
|
+
|
194
|
+
# Returns the string representation of the object
|
195
|
+
# @return [String] String presentation of the object
|
196
|
+
def to_s
|
197
|
+
to_hash.to_s
|
198
|
+
end
|
199
|
+
|
200
|
+
# to_body is an alias to to_hash (backward compatibility)
|
201
|
+
# @return [Hash] Returns the object in the form of hash
|
202
|
+
def to_body
|
203
|
+
to_hash
|
204
|
+
end
|
205
|
+
|
206
|
+
# Returns the object in the form of hash
|
207
|
+
# @return [Hash] Returns the object in the form of hash
|
208
|
+
def to_hash
|
209
|
+
hash = {}
|
210
|
+
self.class.attribute_map.each_pair do |attr, param|
|
211
|
+
value = self.send(attr)
|
212
|
+
next if value.nil?
|
213
|
+
hash[param] = _to_hash(value)
|
214
|
+
end
|
215
|
+
hash
|
216
|
+
end
|
217
|
+
|
218
|
+
# Outputs non-array value in the form of hash
|
219
|
+
# For object, use to_hash. Otherwise, just return the value
|
220
|
+
# @param [Object] value Any valid value
|
221
|
+
# @return [Hash] Returns the value in the form of hash
|
222
|
+
def _to_hash(value)
|
223
|
+
if value.is_a?(Array)
|
224
|
+
value.compact.map { |v| _to_hash(v) }
|
225
|
+
elsif value.is_a?(Hash)
|
226
|
+
{}.tap do |hash|
|
227
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
228
|
+
end
|
229
|
+
elsif value.respond_to? :to_hash
|
230
|
+
value.to_hash
|
231
|
+
else
|
232
|
+
value
|
233
|
+
end
|
234
|
+
end
|
235
|
+
end
|
236
|
+
end
|
@@ -0,0 +1,258 @@
|
|
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 PaymentProductsCardProcessingConfigurationInformationConfigurationsCommonCurrencies
|
17
|
+
attr_accessor :enabled
|
18
|
+
|
19
|
+
# Indicates whether the card-present transaction is activated for the selected currency. If both enabledCardPresent and enabledCardNotPresent are set to null, then enabledCardPresent will have the value of enabled.
|
20
|
+
attr_accessor :enabled_card_present
|
21
|
+
|
22
|
+
# Indicates whether the card-not-present transaction is activated for the selected currency. If both enabledCardPresent and enabledCardNotPresent are set to null, then enabledCardNotPresent will have the value of enabled.
|
23
|
+
attr_accessor :enabled_card_not_present
|
24
|
+
|
25
|
+
# Merchant ID assigned by an acquirer or a processor. Should not be overridden by any other party.
|
26
|
+
attr_accessor :merchant_id
|
27
|
+
|
28
|
+
# The 'Terminal Id' aka TID, is an identifier used for with your payments processor. Depending on the processor and payment acceptance type this may also be the default Terminal ID used for Card Present and Virtual Terminal transactions.
|
29
|
+
attr_accessor :terminal_id
|
30
|
+
|
31
|
+
# Applicable for Prisma (prisma) processor.
|
32
|
+
attr_accessor :terminal_ids
|
33
|
+
|
34
|
+
# Service Establishment Number (a.k.a. SE Number) is a unique ten-digit number assigned by American Express to a merchant that accepts American Express cards. 10 digit number provided by acquirer currency. This may be unique for each currency, however it depends on the way the processor is set up for the merchant.
|
35
|
+
attr_accessor :service_enablement_number
|
36
|
+
|
37
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
38
|
+
def self.attribute_map
|
39
|
+
{
|
40
|
+
:'enabled' => :'enabled',
|
41
|
+
:'enabled_card_present' => :'enabledCardPresent',
|
42
|
+
:'enabled_card_not_present' => :'enabledCardNotPresent',
|
43
|
+
:'merchant_id' => :'merchantId',
|
44
|
+
:'terminal_id' => :'terminalId',
|
45
|
+
:'terminal_ids' => :'terminalIds',
|
46
|
+
:'service_enablement_number' => :'serviceEnablementNumber'
|
47
|
+
}
|
48
|
+
end
|
49
|
+
|
50
|
+
# Attribute mapping from JSON key to ruby-style variable name.
|
51
|
+
def self.json_map
|
52
|
+
{
|
53
|
+
:'enabled' => :'enabled',
|
54
|
+
:'enabled_card_present' => :'enabled_card_present',
|
55
|
+
:'enabled_card_not_present' => :'enabled_card_not_present',
|
56
|
+
:'merchant_id' => :'merchant_id',
|
57
|
+
:'terminal_id' => :'terminal_id',
|
58
|
+
:'terminal_ids' => :'terminal_ids',
|
59
|
+
:'service_enablement_number' => :'service_enablement_number'
|
60
|
+
}
|
61
|
+
end
|
62
|
+
|
63
|
+
# Attribute type mapping.
|
64
|
+
def self.swagger_types
|
65
|
+
{
|
66
|
+
:'enabled' => :'BOOLEAN',
|
67
|
+
:'enabled_card_present' => :'BOOLEAN',
|
68
|
+
:'enabled_card_not_present' => :'BOOLEAN',
|
69
|
+
:'merchant_id' => :'String',
|
70
|
+
:'terminal_id' => :'String',
|
71
|
+
:'terminal_ids' => :'Array<String>',
|
72
|
+
:'service_enablement_number' => :'String'
|
73
|
+
}
|
74
|
+
end
|
75
|
+
|
76
|
+
# Initializes the object
|
77
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
78
|
+
def initialize(attributes = {})
|
79
|
+
return unless attributes.is_a?(Hash)
|
80
|
+
|
81
|
+
# convert string to symbol for hash key
|
82
|
+
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
83
|
+
|
84
|
+
if attributes.has_key?(:'enabled')
|
85
|
+
self.enabled = attributes[:'enabled']
|
86
|
+
end
|
87
|
+
|
88
|
+
if attributes.has_key?(:'enabledCardPresent')
|
89
|
+
self.enabled_card_present = attributes[:'enabledCardPresent']
|
90
|
+
end
|
91
|
+
|
92
|
+
if attributes.has_key?(:'enabledCardNotPresent')
|
93
|
+
self.enabled_card_not_present = attributes[:'enabledCardNotPresent']
|
94
|
+
end
|
95
|
+
|
96
|
+
if attributes.has_key?(:'merchantId')
|
97
|
+
self.merchant_id = attributes[:'merchantId']
|
98
|
+
end
|
99
|
+
|
100
|
+
if attributes.has_key?(:'terminalId')
|
101
|
+
self.terminal_id = attributes[:'terminalId']
|
102
|
+
end
|
103
|
+
|
104
|
+
if attributes.has_key?(:'terminalIds')
|
105
|
+
if (value = attributes[:'terminalIds']).is_a?(Array)
|
106
|
+
self.terminal_ids = value
|
107
|
+
end
|
108
|
+
end
|
109
|
+
|
110
|
+
if attributes.has_key?(:'serviceEnablementNumber')
|
111
|
+
self.service_enablement_number = attributes[:'serviceEnablementNumber']
|
112
|
+
end
|
113
|
+
end
|
114
|
+
|
115
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
116
|
+
# @return Array for valid properties with the reasons
|
117
|
+
def list_invalid_properties
|
118
|
+
invalid_properties = Array.new
|
119
|
+
invalid_properties
|
120
|
+
end
|
121
|
+
|
122
|
+
# Check to see if the all the properties in the model are valid
|
123
|
+
# @return true if the model is valid
|
124
|
+
def valid?
|
125
|
+
true
|
126
|
+
end
|
127
|
+
|
128
|
+
# Checks equality by comparing each attribute.
|
129
|
+
# @param [Object] Object to be compared
|
130
|
+
def ==(o)
|
131
|
+
return true if self.equal?(o)
|
132
|
+
self.class == o.class &&
|
133
|
+
enabled == o.enabled &&
|
134
|
+
enabled_card_present == o.enabled_card_present &&
|
135
|
+
enabled_card_not_present == o.enabled_card_not_present &&
|
136
|
+
merchant_id == o.merchant_id &&
|
137
|
+
terminal_id == o.terminal_id &&
|
138
|
+
terminal_ids == o.terminal_ids &&
|
139
|
+
service_enablement_number == o.service_enablement_number
|
140
|
+
end
|
141
|
+
|
142
|
+
# @see the `==` method
|
143
|
+
# @param [Object] Object to be compared
|
144
|
+
def eql?(o)
|
145
|
+
self == o
|
146
|
+
end
|
147
|
+
|
148
|
+
# Calculates hash code according to all attributes.
|
149
|
+
# @return [Fixnum] Hash code
|
150
|
+
def hash
|
151
|
+
[enabled, enabled_card_present, enabled_card_not_present, merchant_id, terminal_id, terminal_ids, service_enablement_number].hash
|
152
|
+
end
|
153
|
+
|
154
|
+
# Builds the object from hash
|
155
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
156
|
+
# @return [Object] Returns the model itself
|
157
|
+
def build_from_hash(attributes)
|
158
|
+
return nil unless attributes.is_a?(Hash)
|
159
|
+
self.class.swagger_types.each_pair do |key, type|
|
160
|
+
if type =~ /\AArray<(.*)>/i
|
161
|
+
# check to ensure the input is an array given that the the attribute
|
162
|
+
# is documented as an array but the input is not
|
163
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
164
|
+
self.send("#{self.class.json_map[key]}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
165
|
+
end
|
166
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
167
|
+
self.send("#{self.class.json_map[key]}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
168
|
+
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
169
|
+
end
|
170
|
+
|
171
|
+
self
|
172
|
+
end
|
173
|
+
|
174
|
+
# Deserializes the data based on type
|
175
|
+
# @param string type Data type
|
176
|
+
# @param string value Value to be deserialized
|
177
|
+
# @return [Object] Deserialized data
|
178
|
+
def _deserialize(type, value)
|
179
|
+
case type.to_sym
|
180
|
+
when :DateTime
|
181
|
+
DateTime.parse(value)
|
182
|
+
when :Date
|
183
|
+
Date.parse(value)
|
184
|
+
when :String
|
185
|
+
value.to_s
|
186
|
+
when :Integer
|
187
|
+
value.to_i
|
188
|
+
when :Float
|
189
|
+
value.to_f
|
190
|
+
when :BOOLEAN
|
191
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
192
|
+
true
|
193
|
+
else
|
194
|
+
false
|
195
|
+
end
|
196
|
+
when :Object
|
197
|
+
# generic object (usually a Hash), return directly
|
198
|
+
value
|
199
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
200
|
+
inner_type = Regexp.last_match[:inner_type]
|
201
|
+
value.map { |v| _deserialize(inner_type, v) }
|
202
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
203
|
+
k_type = Regexp.last_match[:k_type]
|
204
|
+
v_type = Regexp.last_match[:v_type]
|
205
|
+
{}.tap do |hash|
|
206
|
+
value.each do |k, v|
|
207
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
208
|
+
end
|
209
|
+
end
|
210
|
+
else # model
|
211
|
+
temp_model = CyberSource.const_get(type).new
|
212
|
+
temp_model.build_from_hash(value)
|
213
|
+
end
|
214
|
+
end
|
215
|
+
|
216
|
+
# Returns the string representation of the object
|
217
|
+
# @return [String] String presentation of the object
|
218
|
+
def to_s
|
219
|
+
to_hash.to_s
|
220
|
+
end
|
221
|
+
|
222
|
+
# to_body is an alias to to_hash (backward compatibility)
|
223
|
+
# @return [Hash] Returns the object in the form of hash
|
224
|
+
def to_body
|
225
|
+
to_hash
|
226
|
+
end
|
227
|
+
|
228
|
+
# Returns the object in the form of hash
|
229
|
+
# @return [Hash] Returns the object in the form of hash
|
230
|
+
def to_hash
|
231
|
+
hash = {}
|
232
|
+
self.class.attribute_map.each_pair do |attr, param|
|
233
|
+
value = self.send(attr)
|
234
|
+
next if value.nil?
|
235
|
+
hash[param] = _to_hash(value)
|
236
|
+
end
|
237
|
+
hash
|
238
|
+
end
|
239
|
+
|
240
|
+
# Outputs non-array value in the form of hash
|
241
|
+
# For object, use to_hash. Otherwise, just return the value
|
242
|
+
# @param [Object] value Any valid value
|
243
|
+
# @return [Hash] Returns the value in the form of hash
|
244
|
+
def _to_hash(value)
|
245
|
+
if value.is_a?(Array)
|
246
|
+
value.compact.map { |v| _to_hash(v) }
|
247
|
+
elsif value.is_a?(Hash)
|
248
|
+
{}.tap do |hash|
|
249
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
250
|
+
end
|
251
|
+
elsif value.respond_to? :to_hash
|
252
|
+
value.to_hash
|
253
|
+
else
|
254
|
+
value
|
255
|
+
end
|
256
|
+
end
|
257
|
+
end
|
258
|
+
end
|