cybersource_rest_client 0.0.86 → 0.0.88
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/AuthenticationSDK/util/CertificateUtility.rb +14 -6
- data/lib/cybersource_rest_client/api/acp_checkout_api.rb +553 -0
- data/lib/cybersource_rest_client/api/agent_registration_api.rb +721 -0
- data/lib/cybersource_rest_client/api/bank_account_validation_api.rb +0 -1
- data/lib/cybersource_rest_client/api/bin_lookup_api.rb +3 -3
- data/lib/cybersource_rest_client/api/create_new_webhooks_api.rb +6 -6
- data/lib/cybersource_rest_client/api/enrollment_api.rb +104 -0
- data/lib/cybersource_rest_client/api/foreign_exchange_rates_api.rb +3 -3
- data/lib/cybersource_rest_client/api/manage_webhooks_api.rb +9 -9
- data/lib/cybersource_rest_client/api/merchant_boarding_api.rb +3 -3
- data/lib/cybersource_rest_client/api/{merchant_capabilities_api.rb → merchant_registration_api.rb} +47 -391
- data/lib/cybersource_rest_client/api/offers_api.rb +3 -3
- data/lib/cybersource_rest_client/api/payment_events_api.rb +197 -0
- data/lib/cybersource_rest_client/api/product_feed_api.rb +365 -0
- data/lib/cybersource_rest_client/api/purchase_intent_api.rb +278 -0
- data/lib/cybersource_rest_client/api/search_transactions_api.rb +2 -2
- data/lib/cybersource_rest_client/api/transaction_details_api.rb +1 -1
- data/lib/cybersource_rest_client/api/transaction_query_api.rb +3 -3
- data/lib/cybersource_rest_client/api/ucp_checkout_api.rb +453 -0
- data/lib/cybersource_rest_client/api/visa_protect_risk_insights_api.rb +104 -0
- data/lib/cybersource_rest_client/models/activate_merchant_key_response200.rb +1 -1
- data/lib/cybersource_rest_client/models/add_agent_key_response201.rb +11 -11
- data/lib/cybersource_rest_client/models/agent_registration_response201.rb +13 -15
- data/lib/cybersource_rest_client/models/agent_registration_response201_keys.rb +8 -8
- data/lib/cybersource_rest_client/models/agent_request.rb +9 -11
- data/lib/cybersource_rest_client/models/agent_update.rb +7 -9
- data/lib/cybersource_rest_client/models/auth_reversal_request.rb +1 -1
- data/lib/cybersource_rest_client/models/boarding_payouts_configurations.rb +1 -1
- data/lib/cybersource_rest_client/models/boarding_payouts_configurations_acquirer.rb +216 -0
- data/lib/cybersource_rest_client/models/boarding_payouts_configurations_merchant_descriptor.rb +205 -0
- data/lib/cybersource_rest_client/models/boarding_payouts_configurations_processors.rb +581 -0
- data/lib/cybersource_rest_client/models/capture_payment_request.rb +1 -1
- data/lib/cybersource_rest_client/models/create_order_request.rb +11 -1
- data/lib/cybersource_rest_client/models/create_payment_request.rb +14 -1
- data/lib/cybersource_rest_client/models/create_session_req.rb +14 -1
- data/lib/cybersource_rest_client/models/create_session_request.rb +14 -1
- data/lib/cybersource_rest_client/models/iccv1agents_keys.rb +4 -4
- data/lib/cybersource_rest_client/models/iccv1merchants_api_integrations.rb +2 -2
- data/lib/cybersource_rest_client/models/iccv1merchants_encryption_key.rb +6 -6
- data/lib/cybersource_rest_client/models/iccv1merchants_protocol_interactions.rb +1 -1
- data/lib/cybersource_rest_client/models/iccv1merchants_web_integrations.rb +2 -2
- data/lib/cybersource_rest_client/models/inline_response_200_16.rb +2 -2
- data/lib/cybersource_rest_client/models/inline_response_200_17.rb +60 -5
- data/lib/cybersource_rest_client/models/inline_response_200_18.rb +45 -5
- data/lib/cybersource_rest_client/models/inline_response_200_19.rb +30 -107
- data/lib/cybersource_rest_client/models/inline_response_200_19_processing.rb +213 -0
- data/lib/cybersource_rest_client/models/inline_response_200_19_syndication.rb +224 -0
- data/lib/cybersource_rest_client/models/inline_response_200_20_products.rb +80 -682
- data/lib/cybersource_rest_client/models/inline_response_200_4.rb +1 -1
- data/lib/cybersource_rest_client/models/inline_response_200_5.rb +1 -1
- data/lib/cybersource_rest_client/models/inline_response_201_10.rb +18 -93
- data/lib/cybersource_rest_client/models/inline_response_201_11.rb +103 -8
- data/lib/cybersource_rest_client/models/{inline_response_201_12_client_reference_information.rb → inline_response_201_11_client_reference_information.rb} +1 -1
- data/lib/cybersource_rest_client/models/{inline_response_201_12_error_information.rb → inline_response_201_11_error_information.rb} +1 -1
- data/lib/cybersource_rest_client/models/{inline_response_201_12_order_information.rb → inline_response_201_11_order_information.rb} +2 -2
- data/lib/cybersource_rest_client/models/{inline_response_201_12_order_information_currency_conversion.rb → inline_response_201_11_order_information_currency_conversion.rb} +2 -2
- data/lib/cybersource_rest_client/models/{inline_response_201_12_order_information_currency_conversion_offer.rb → inline_response_201_11_order_information_currency_conversion_offer.rb} +1 -1
- data/lib/cybersource_rest_client/models/{inline_response_201_12_processor_information.rb → inline_response_201_11_processor_information.rb} +1 -1
- data/lib/cybersource_rest_client/models/inline_response_201_12.rb +141 -80
- data/lib/cybersource_rest_client/models/{inline_response_201_13_fulfillment_address.rb → inline_response_201_12_fulfillment_address.rb} +1 -1
- data/lib/cybersource_rest_client/models/{inline_response_201_13_fulfillment_options.rb → inline_response_201_12_fulfillment_options.rb} +31 -1
- data/lib/cybersource_rest_client/models/{inline_response_201_14_item.rb → inline_response_201_12_item.rb} +20 -20
- data/lib/cybersource_rest_client/models/inline_response_201_12_line_items.rb +256 -0
- data/lib/cybersource_rest_client/models/{inline_response_201_13_links.rb → inline_response_201_12_links.rb} +1 -1
- data/lib/cybersource_rest_client/models/{inline_response_201_13_messages.rb → inline_response_201_12_messages.rb} +1 -1
- data/lib/cybersource_rest_client/models/{inline_response_201_13_payment_provider.rb → inline_response_201_12_payment_provider.rb} +1 -1
- data/lib/cybersource_rest_client/models/{inline_response_201_13_totals.rb → inline_response_201_12_totals.rb} +16 -1
- data/lib/cybersource_rest_client/models/inline_response_201_13.rb +61 -67
- data/lib/cybersource_rest_client/models/{inline_response_201_14_discounts.rb → inline_response_201_13_discounts.rb} +1 -1
- data/lib/cybersource_rest_client/models/{inline_response_201_14_fulfillment.rb → inline_response_201_13_fulfillment.rb} +1 -1
- data/lib/cybersource_rest_client/models/inline_response_201_13_item.rb +19 -19
- data/lib/cybersource_rest_client/models/inline_response_201_13_line_items.rb +20 -51
- data/lib/cybersource_rest_client/models/{inline_response_201_14_order.rb → inline_response_201_13_order.rb} +1 -1
- data/lib/cybersource_rest_client/models/{inline_response_201_14_payment.rb → inline_response_201_13_payment.rb} +1 -1
- data/lib/cybersource_rest_client/models/{inline_response_201_14_ucp.rb → inline_response_201_13_ucp.rb} +2 -2
- data/lib/cybersource_rest_client/models/{inline_response_201_14_ucp_capabilities.rb → inline_response_201_13_ucp_capabilities.rb} +1 -1
- data/lib/cybersource_rest_client/models/inline_response_201_3.rb +82 -39
- data/lib/cybersource_rest_client/models/{inline_response_201_5_error_information.rb → inline_response_201_3_error_information.rb} +3 -3
- data/lib/cybersource_rest_client/models/{inline_response_201_5_error_information_details.rb → inline_response_201_3_error_information_details.rb} +2 -2
- data/lib/cybersource_rest_client/models/{inline_response_201_5_order_information.rb → inline_response_201_3_order_information.rb} +2 -2
- data/lib/cybersource_rest_client/models/inline_response_201_3_order_information_amount_details.rb +315 -0
- data/lib/cybersource_rest_client/models/inline_response_201_3_processing_information.rb +189 -0
- data/lib/cybersource_rest_client/models/{inline_response_201_4_processing_information_routing.rb → inline_response_201_3_processing_information_routing.rb} +1 -1
- data/lib/cybersource_rest_client/models/inline_response_201_3_processor_information.rb +213 -0
- data/lib/cybersource_rest_client/models/inline_response_201_4.rb +41 -30
- data/lib/cybersource_rest_client/models/{inline_response_201_5__links.rb → inline_response_201_4__links.rb} +2 -2
- data/lib/cybersource_rest_client/models/{inline_response_201_5__links_self.rb → inline_response_201_4__links_self.rb} +1 -1
- data/lib/cybersource_rest_client/models/{inline_response_201_5_acquirer_information.rb → inline_response_201_4_acquirer_information.rb} +1 -1
- data/lib/cybersource_rest_client/models/{inline_response_201_5_client_reference_information.rb → inline_response_201_4_client_reference_information.rb} +1 -1
- data/lib/cybersource_rest_client/models/inline_response_201_4_error_information.rb +1 -1
- data/lib/cybersource_rest_client/models/inline_response_201_4_error_information_details.rb +1 -1
- data/lib/cybersource_rest_client/models/{inline_response_201_5_merchant_information.rb → inline_response_201_4_merchant_information.rb} +1 -1
- data/lib/cybersource_rest_client/models/inline_response_201_4_order_information_amount_details.rb +46 -97
- data/lib/cybersource_rest_client/models/{inline_response_201_5_payment_information.rb → inline_response_201_4_payment_information.rb} +2 -2
- data/lib/cybersource_rest_client/models/{inline_response_201_5_payment_information_card.rb → inline_response_201_4_payment_information_card.rb} +1 -1
- data/lib/cybersource_rest_client/models/inline_response_201_4_processing_information.rb +59 -8
- data/lib/cybersource_rest_client/models/{inline_response_201_5_processing_information_payouts_options.rb → inline_response_201_4_processing_information_payouts_options.rb} +1 -1
- data/lib/cybersource_rest_client/models/inline_response_201_4_processor_information.rb +342 -7
- data/lib/cybersource_rest_client/models/{inline_response_201_5_processor_information_card_verification.rb → inline_response_201_4_processor_information_card_verification.rb} +1 -1
- data/lib/cybersource_rest_client/models/{inline_response_201_5_transactions.rb → inline_response_201_4_transactions.rb} +7 -7
- data/lib/cybersource_rest_client/models/inline_response_201_5.rb +35 -68
- data/lib/cybersource_rest_client/models/{inline_response_201_6_payout_information.rb → inline_response_201_5_payout_information.rb} +3 -3
- data/lib/cybersource_rest_client/models/{inline_response_201_6_payout_information_pull_funds.rb → inline_response_201_5_payout_information_pull_funds.rb} +1 -1
- data/lib/cybersource_rest_client/models/{inline_response_201_6_payout_information_push_funds.rb → inline_response_201_5_payout_information_push_funds.rb} +1 -1
- data/lib/cybersource_rest_client/models/inline_response_201_6.rb +59 -26
- data/lib/cybersource_rest_client/models/{inline_response_201_7_integration_information.rb → inline_response_201_6_integration_information.rb} +2 -2
- data/lib/cybersource_rest_client/models/{inline_response_201_7_integration_information_tenant_configurations.rb → inline_response_201_6_integration_information_tenant_configurations.rb} +1 -1
- data/lib/cybersource_rest_client/models/{inline_response_201_7_organization_information.rb → inline_response_201_6_organization_information.rb} +1 -1
- data/lib/cybersource_rest_client/models/{inline_response_201_7_product_information_setups.rb → inline_response_201_6_product_information_setups.rb} +2 -2
- data/lib/cybersource_rest_client/models/{inline_response_201_7_registration_information.rb → inline_response_201_6_registration_information.rb} +1 -1
- data/lib/cybersource_rest_client/models/{inline_response_201_7_setups.rb → inline_response_201_6_setups.rb} +4 -4
- data/lib/cybersource_rest_client/models/{inline_response_201_7_setups_commerce_solutions.rb → inline_response_201_6_setups_commerce_solutions.rb} +1 -1
- data/lib/cybersource_rest_client/models/{inline_response_201_7_setups_risk.rb → inline_response_201_6_setups_risk.rb} +16 -6
- data/lib/cybersource_rest_client/models/{inline_response_201_7_setups_value_added_services.rb → inline_response_201_6_setups_value_added_services.rb} +16 -6
- data/lib/cybersource_rest_client/models/inline_response_201_7.rb +19 -78
- data/lib/cybersource_rest_client/models/{inline_response_201_8_key_information.rb → inline_response_201_7_key_information.rb} +2 -2
- data/lib/cybersource_rest_client/models/{inline_response_201_8_key_information_error_information.rb → inline_response_201_7_key_information_error_information.rb} +2 -2
- data/lib/cybersource_rest_client/models/{inline_response_201_8_key_information_error_information_details.rb → inline_response_201_7_key_information_error_information_details.rb} +1 -1
- data/lib/cybersource_rest_client/models/inline_response_201_8.rb +117 -25
- data/lib/cybersource_rest_client/models/inline_response_201_9.rb +68 -105
- data/lib/cybersource_rest_client/models/{inline_response_201_10_payloads.rb → inline_response_201_9_payloads.rb} +2 -2
- data/lib/cybersource_rest_client/models/{inline_response_201_10_payloads_test_payload.rb → inline_response_201_9_payloads_test_payload.rb} +1 -1
- data/lib/cybersource_rest_client/models/inline_response_202_1.rb +191 -0
- data/lib/cybersource_rest_client/models/inline_response_400_3.rb +1 -1
- data/lib/cybersource_rest_client/models/inline_response_400_4.rb +1 -1
- data/lib/cybersource_rest_client/models/invoicing_v2_invoices_post201_response_merchant_defined_field_values_with_definition.rb +11 -1
- data/lib/cybersource_rest_client/models/key_request.rb +4 -4
- data/lib/cybersource_rest_client/models/key_request_1.rb +5 -5
- data/lib/cybersource_rest_client/models/key_update.rb +5 -5
- data/lib/cybersource_rest_client/models/key_update_1.rb +5 -5
- data/lib/cybersource_rest_client/models/list_agent_keys_response200.rb +2 -2
- data/lib/cybersource_rest_client/models/merchant_registration_response201.rb +10 -10
- data/lib/cybersource_rest_client/models/merchant_registration_response201_api_integrations.rb +225 -0
- data/lib/cybersource_rest_client/models/merchant_registration_response201_keys.rb +1 -1
- data/lib/cybersource_rest_client/models/merchant_registration_response201_web_integrations.rb +225 -0
- data/lib/cybersource_rest_client/models/merchant_request.rb +7 -7
- data/lib/cybersource_rest_client/models/merchant_update.rb +7 -7
- data/lib/cybersource_rest_client/models/mit_reversal_request.rb +1 -1
- data/lib/cybersource_rest_client/models/mit_void_request.rb +15 -5
- data/lib/cybersource_rest_client/models/payments_configuration_setup.rb +11 -1
- data/lib/cybersource_rest_client/models/payments_products.rb +11 -1
- data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response.rb +12 -1
- data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_1.rb +12 -1
- data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_1_order_information.rb +44 -1
- data/lib/cybersource_rest_client/models/{pts_v2_payouts_post201_response_merchant_information_merchant_descriptor.rb → pts_v2_payments_post201_response_1_order_information_merchant_descriptor.rb} +1 -1
- data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_1_processor_information.rb +18 -1
- data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_installment_information.rb +101 -5
- data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_order_information_ship_to.rb +12 -1
- data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_point_of_sale_information.rb +22 -5
- data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_processor_information.rb +22 -5
- data/lib/cybersource_rest_client/models/pts_v2_payments_refund_post201_response_processor_information.rb +22 -5
- data/lib/cybersource_rest_client/models/pts_v2_payments_reversals_post201_response.rb +1 -1
- data/lib/cybersource_rest_client/models/{ptsv2paymentsidreversals_point_of_sale_information.rb → pts_v2_payments_reversals_post201_response_point_of_sale_information.rb} +2 -2
- data/lib/cybersource_rest_client/models/{ptsv2paymentsidreversals_point_of_sale_information_emv.rb → pts_v2_payments_reversals_post201_response_point_of_sale_information_emv.rb} +1 -1
- data/lib/cybersource_rest_client/models/pts_v2_payments_reversals_post201_response_processor_information.rb +22 -5
- data/lib/cybersource_rest_client/models/pts_v2_payouts_post201_response_merchant_information.rb +1 -1
- data/lib/cybersource_rest_client/models/ptsv2intents_buyer_information.rb +196 -0
- data/lib/cybersource_rest_client/models/ptsv2intents_merchant_information_merchant_descriptor.rb +18 -1
- data/lib/cybersource_rest_client/models/ptsv2intents_order_information_bill_to.rb +154 -1
- data/lib/cybersource_rest_client/models/ptsv2intents_order_information_line_items.rb +16 -5
- data/lib/cybersource_rest_client/models/ptsv2intentsid_merchant_information.rb +1 -1
- data/lib/cybersource_rest_client/models/ptsv2intentsid_merchant_information_merchant_descriptor.rb +207 -0
- data/lib/cybersource_rest_client/models/ptsv2payments_buyer.rb +247 -0
- data/lib/cybersource_rest_client/models/{inline_response_201_3_results_risk_insights.rb → ptsv2payments_order_history.rb} +39 -36
- data/lib/cybersource_rest_client/models/ptsv2payments_ship_to.rb +281 -0
- data/lib/cybersource_rest_client/models/ptsv2paymentsidrefunds_point_of_sale_information.rb +1 -1
- data/lib/cybersource_rest_client/models/{ptsv2paymentsidcaptures_point_of_sale_information_emv.rb → ptsv2paymentsidrefunds_point_of_sale_information_emv.rb} +1 -1
- data/lib/cybersource_rest_client/models/risk_products.rb +15 -5
- data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_point_of_sale_information.rb +1 -1
- data/lib/cybersource_rest_client/models/tss_v2_transactions_post201_response__embedded_point_of_sale_information.rb +1 -1
- data/lib/cybersource_rest_client/models/ucv1sessions_complete_mandate.rb +16 -5
- data/lib/cybersource_rest_client/models/ucv1sessions_data.rb +11 -1
- data/lib/cybersource_rest_client/models/ucv1sessions_data_acquirer_information.rb +196 -0
- data/lib/cybersource_rest_client/models/ucv1sessions_data_aggregator_information.rb +1 -1
- data/lib/cybersource_rest_client/models/ucv1sessions_data_consumer_authentication_information.rb +16 -5
- data/lib/cybersource_rest_client/models/{inline_response_201_14_line_items.rb → unified_risk_post201_response.rb} +28 -42
- data/lib/cybersource_rest_client/models/{inline_response_201_3_results.rb → unified_risk_post201_response_results.rb} +3 -3
- data/lib/cybersource_rest_client/models/unified_risk_post201_response_results_risk_insights.rb +291 -0
- data/lib/cybersource_rest_client/models/unified_risk_post201_response_results_risk_insights_client.rb +208 -0
- data/lib/cybersource_rest_client/models/unified_risk_post201_response_results_risk_insights_error.rb +202 -0
- data/lib/cybersource_rest_client/models/unified_risk_post201_response_results_risk_insights_packages.rb +190 -0
- data/lib/cybersource_rest_client/models/unified_risk_post201_response_results_risk_insights_packages_transaction_insights.rb +250 -0
- data/lib/cybersource_rest_client/models/unified_risk_post201_response_results_risk_insights_packages_transaction_insights_insights.rb +219 -0
- data/lib/cybersource_rest_client/models/unified_risk_post201_response_transaction_insights_insights_warnings.rb +214 -0
- data/lib/cybersource_rest_client/models/{unified_risk_labels_post400_response.rb → unified_risk_post400_response.rb} +2 -2
- data/lib/cybersource_rest_client/models/{unified_risk_labels_post400_response_errors.rb → unified_risk_post400_response_errors.rb} +1 -1
- data/lib/cybersource_rest_client/models/{deactivate_merchant_key_response200.rb → unifiedrisk_account.rb} +10 -16
- data/lib/cybersource_rest_client/models/unifiedrisk_acquirer.rb +302 -0
- data/lib/cybersource_rest_client/models/{inline_response_200_19_google_merchant.rb → unifiedrisk_acquirer_merchant_account.rb} +42 -45
- data/lib/cybersource_rest_client/models/unifiedrisk_acquirer_merchant_account_security_amount.rb +246 -0
- data/lib/cybersource_rest_client/models/unifiedrisk_authentication.rb +402 -0
- data/lib/cybersource_rest_client/models/unifiedrisk_authentication_challenge.rb +202 -0
- data/lib/cybersource_rest_client/models/unifiedrisk_authorization.rb +212 -0
- data/lib/cybersource_rest_client/models/unifiedrisk_browser.rb +420 -0
- data/lib/cybersource_rest_client/models/unifiedrisk_customer.rb +403 -0
- data/lib/cybersource_rest_client/models/unifiedrisk_customer_address.rb +279 -0
- data/lib/cybersource_rest_client/models/{inline_response_201_5_processing_information.rb → unifiedrisk_customer_personal_identification.rb} +99 -42
- data/lib/cybersource_rest_client/models/unifiedrisk_device.rb +681 -0
- data/lib/cybersource_rest_client/models/unifiedrisk_device_point_of_sale.rb +344 -0
- data/lib/cybersource_rest_client/models/unifiedrisk_initiating_party.rb +223 -0
- data/lib/cybersource_rest_client/models/unifiedrisk_merchant.rb +326 -0
- data/lib/cybersource_rest_client/models/unifiedrisk_merchant_address.rb +328 -0
- data/lib/cybersource_rest_client/models/unifiedrisk_merchant_merchant_descriptor.rb +389 -0
- data/lib/cybersource_rest_client/models/unifiedrisk_merchant_merchant_descriptor_expected_annual_sales.rb +268 -0
- data/lib/cybersource_rest_client/models/unifiedrisk_merchant_merchant_descriptor_expected_average_ticket_size.rb +246 -0
- data/lib/cybersource_rest_client/models/unifiedrisk_merchant_merchant_descriptor_expected_monthly_sales.rb +268 -0
- data/lib/cybersource_rest_client/models/unifiedrisk_merchant_merchant_descriptor_hierarchy.rb +224 -0
- data/lib/cybersource_rest_client/models/{label_request.rb → unifiedrisk_merchant_merchant_descriptor_limit_value.rb} +62 -73
- data/lib/cybersource_rest_client/models/unifiedrisk_merchant_trading_address.rb +301 -0
- data/lib/cybersource_rest_client/models/{inline_response_200_19_google_merchant_products.rb → unifiedrisk_order.rb} +58 -61
- data/lib/cybersource_rest_client/models/unifiedrisk_order_billing.rb +360 -0
- data/lib/cybersource_rest_client/models/unifiedrisk_order_line_items.rb +262 -0
- data/lib/cybersource_rest_client/models/unifiedrisk_order_shipping.rb +464 -0
- data/lib/cybersource_rest_client/models/unifiedrisk_order_shipping_store.rb +251 -0
- data/lib/cybersource_rest_client/models/unifiedrisk_order_shipping_store_address.rb +191 -0
- data/lib/cybersource_rest_client/models/unifiedrisk_order_shipping_store_store_address.rb +235 -0
- data/lib/cybersource_rest_client/models/unifiedrisk_partner.rb +214 -0
- data/lib/cybersource_rest_client/models/unifiedrisk_payment.rb +423 -0
- data/lib/cybersource_rest_client/models/unifiedrisk_payment_approvals.rb +193 -0
- data/lib/cybersource_rest_client/models/unifiedrisk_payment_bank_account.rb +451 -0
- data/lib/cybersource_rest_client/models/{inline_response_201_5_order_information_amount_details.rb → unifiedrisk_payment_bank_account_balance_before.rb} +49 -56
- data/lib/cybersource_rest_client/models/unifiedrisk_payment_bank_account_branch_address.rb +328 -0
- data/lib/cybersource_rest_client/models/unifiedrisk_payment_bank_account_credit_limit.rb +257 -0
- data/lib/cybersource_rest_client/models/unifiedrisk_payment_bank_account_financial_institution.rb +212 -0
- data/lib/cybersource_rest_client/models/unifiedrisk_payment_batch.rb +323 -0
- data/lib/cybersource_rest_client/models/unifiedrisk_payment_card.rb +461 -0
- data/lib/cybersource_rest_client/models/unifiedrisk_payment_card_par_details.rb +196 -0
- data/lib/cybersource_rest_client/models/unifiedrisk_payment_card_token_details.rb +380 -0
- data/lib/cybersource_rest_client/models/unifiedrisk_payment_check.rb +289 -0
- data/lib/cybersource_rest_client/models/unifiedrisk_payment_check_deposit_location.rb +279 -0
- data/lib/cybersource_rest_client/models/unifiedrisk_payment_counterparty.rb +287 -0
- data/lib/cybersource_rest_client/models/unifiedrisk_payment_counterparty_address.rb +279 -0
- data/lib/cybersource_rest_client/models/unifiedrisk_payment_counterparty_branch_address.rb +279 -0
- data/lib/cybersource_rest_client/models/unifiedrisk_payment_sdk.rb +268 -0
- data/lib/cybersource_rest_client/models/unifiedrisk_payment_token.rb +213 -0
- data/lib/cybersource_rest_client/models/unifiedrisk_payment_verification.rb +230 -0
- data/lib/cybersource_rest_client/models/unifiedrisk_payment_verification_additional.rb +256 -0
- data/lib/cybersource_rest_client/models/unifiedrisk_payment_verification_authentication.rb +232 -0
- data/lib/cybersource_rest_client/models/unifiedrisk_payment_verification_authentication_pin.rb +201 -0
- data/lib/cybersource_rest_client/models/unifiedrisk_payment_verification_authentication_three_ds.rb +190 -0
- data/lib/cybersource_rest_client/models/unifiedrisk_payment_verification_card_security.rb +199 -0
- data/lib/cybersource_rest_client/models/unifiedrisk_payment_verification_card_security_avs.rb +218 -0
- data/lib/cybersource_rest_client/models/unifiedrisk_payment_verification_card_security_cvv.rb +196 -0
- data/lib/cybersource_rest_client/models/{inline_response_200_19_errors.rb → unifiedrisk_payment_verification_digital.rb} +26 -27
- data/lib/cybersource_rest_client/models/unifiedrisk_payment_wallet.rb +201 -0
- data/lib/cybersource_rest_client/models/unifiedrisk_payment_wire.rb +364 -0
- data/lib/cybersource_rest_client/models/unifiedrisk_risk_assessment.rb +308 -0
- data/lib/cybersource_rest_client/models/unifiedrisk_risk_assessment_buyer_history.rb +276 -0
- data/lib/cybersource_rest_client/models/unifiedrisk_risk_assessment_buyer_history_account_history.rb +207 -0
- data/lib/cybersource_rest_client/models/unifiedrisk_risk_assessment_buyer_history_customer_account.rb +273 -0
- data/lib/cybersource_rest_client/models/{inline_response_201_14.rb → unifiedrisk_risk_assessment_buyer_history_customer_account_alertnate_authentication.rb} +59 -114
- data/lib/cybersource_rest_client/models/unifiedrisk_risk_assessment_vital4.rb +191 -0
- data/lib/cybersource_rest_client/models/unifiedrisk_session.rb +202 -0
- data/lib/cybersource_rest_client/models/unifiedrisk_terminal.rb +238 -0
- data/lib/cybersource_rest_client/models/unifiedrisk_terminal_address.rb +301 -0
- data/lib/cybersource_rest_client/models/unifiedrisk_terminal_capabilities.rb +234 -0
- data/lib/cybersource_rest_client/models/unifiedrisk_third_party_risk.rb +708 -0
- data/lib/cybersource_rest_client/models/unifiedrisk_third_party_risk_raw_data.rb +189 -0
- data/lib/cybersource_rest_client/models/unifiedrisk_transaction.rb +305 -12
- data/lib/cybersource_rest_client/models/unifiedrisk_transaction_additional_fees.rb +257 -0
- data/lib/cybersource_rest_client/models/unifiedrisk_transaction_amount.rb +257 -0
- data/lib/cybersource_rest_client/models/unifiedrisk_transaction_batch_details.rb +220 -0
- data/lib/cybersource_rest_client/models/unifiedrisk_transaction_batch_details_batch_credits_amount.rb +246 -0
- data/lib/cybersource_rest_client/models/unifiedrisk_transaction_batch_details_batch_debits_amount.rb +246 -0
- data/lib/cybersource_rest_client/models/unifiedrisk_transaction_batch_details_file_credits.rb +246 -0
- data/lib/cybersource_rest_client/models/unifiedrisk_transaction_batch_details_file_debits.rb +246 -0
- data/lib/cybersource_rest_client/models/unifiedrisk_transaction_check_details.rb +190 -0
- data/lib/cybersource_rest_client/models/unifiedrisk_transaction_check_details_deposited_cash_amount.rb +246 -0
- data/lib/cybersource_rest_client/models/unifiedrisk_transaction_recurring_details.rb +341 -0
- data/lib/cybersource_rest_client/models/unifiedrisk_travel.rb +279 -0
- data/lib/cybersource_rest_client/models/value_added_services_products.rb +15 -5
- data/lib/cybersource_rest_client/models/void_capture_request.rb +15 -5
- data/lib/cybersource_rest_client/models/void_credit_request.rb +15 -5
- data/lib/cybersource_rest_client/models/void_payment_request.rb +15 -5
- data/lib/cybersource_rest_client/models/void_refund_request.rb +15 -5
- data/lib/cybersource_rest_client/models/vpri_request.rb +505 -0
- data/lib/cybersource_rest_client/models/vpri_transaction_insights_additional_data.rb +190 -0
- data/lib/cybersource_rest_client/models/vpri_transaction_insights_additional_data_card_bin_data.rb +357 -0
- data/lib/cybersource_rest_client.rb +178 -72
- metadata +180 -74
- data/lib/cybersource_rest_client/api/agent_capabilities_api.rb +0 -2279
- data/lib/cybersource_rest_client/api/transaction_risk_labeling_api.rb +0 -104
- data/lib/cybersource_rest_client/models/inline_response_201_5_processor_information.rb +0 -548
- data/lib/cybersource_rest_client/models/ptsv2paymentsidcaptures_point_of_sale_information.rb +0 -223
|
@@ -0,0 +1,389 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
#CyberSource Merged Spec
|
|
3
|
+
|
|
4
|
+
#All CyberSource API specs merged together. These are available at https://developer.cybersource.com/api/reference/api-reference.html
|
|
5
|
+
|
|
6
|
+
OpenAPI spec version: 0.0.1
|
|
7
|
+
|
|
8
|
+
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
|
9
|
+
Swagger Codegen version: 2.4.38
|
|
10
|
+
=end
|
|
11
|
+
|
|
12
|
+
require 'date'
|
|
13
|
+
|
|
14
|
+
module CyberSource
|
|
15
|
+
class UnifiedriskMerchantMerchantDescriptor
|
|
16
|
+
# Your merchant name.**Note** For Paymentech processor using Cybersource Payouts, the maximum data length is 22.#### PIN debit Your business name. This name is displayed on the cardholder's statement. When you include more than one consecutive space, extra spaces are removed.When you do not include this value in your PIN debit request, the merchant name from your account is used. **Important** This value must consist of English characters.Optional field for PIN debit credit or PIN debit pu
|
|
17
|
+
attr_accessor :name
|
|
18
|
+
|
|
19
|
+
# Address of company's website provided by merchant
|
|
20
|
+
attr_accessor :url
|
|
21
|
+
|
|
22
|
+
# Primary contact email address of the merchant, used for notifications, dispute communications, and merchant verification purposes
|
|
23
|
+
attr_accessor :email
|
|
24
|
+
|
|
25
|
+
# Primary phone number of the merchant in E.164 format (e.g., +14155552671), used for contact and identity verification
|
|
26
|
+
attr_accessor :phone_number
|
|
27
|
+
|
|
28
|
+
# Risk classification or category assigned to the merchant based on their industry, transaction patterns, and historical fraud rates (e.g., HIGH, MEDIUM, LOW)
|
|
29
|
+
attr_accessor :risk_profile
|
|
30
|
+
|
|
31
|
+
# Names or identifiers of individuals authorized to sign agreements and take financial actions on behalf of the merchant entity
|
|
32
|
+
attr_accessor :authorized_signatories
|
|
33
|
+
|
|
34
|
+
# The date the merchant account was or is scheduled to be closed, in ISO 8601 format (YYYY-MM-DD). Used for tracking merchant lifecycle events
|
|
35
|
+
attr_accessor :close_date
|
|
36
|
+
|
|
37
|
+
# The ISO 3166-1 alpha-3 country code where the merchant business is legally incorporated (e.g., GBR, USA, IND)
|
|
38
|
+
attr_accessor :country_incorporated
|
|
39
|
+
|
|
40
|
+
# The merchant's score as assessed by the acquirer or a credit bureau, used for underwriting and risk decisions during merchant onboarding
|
|
41
|
+
attr_accessor :credit_score
|
|
42
|
+
|
|
43
|
+
# The date the merchant's business was formally established or incorporated, in ISO 8601 format (YYYY-MM-DD). Used for business tenure risk assessment
|
|
44
|
+
attr_accessor :date_of_establishment
|
|
45
|
+
|
|
46
|
+
# The date of the most recent ownership change for the merchant entity, in ISO 8601 format. Ownership changes can indicate elevated risk and require re-underwriting
|
|
47
|
+
attr_accessor :dateof_ownership_change
|
|
48
|
+
|
|
49
|
+
# Indicates whether the merchant supports e-commerce transactions and the level of online payment capability (e.g., FULL, PARTIAL, NONE)
|
|
50
|
+
attr_accessor :ecommerce_support
|
|
51
|
+
|
|
52
|
+
attr_accessor :expected_average_ticket_size
|
|
53
|
+
|
|
54
|
+
attr_accessor :expected_annual_sales
|
|
55
|
+
|
|
56
|
+
attr_accessor :expected_monthly_sales
|
|
57
|
+
|
|
58
|
+
# Defines the type of financial limit applied to the merchant (e.g., SINGLE_TRANSACTION, DAILY, MONTHLY, ANNUAL). Used to enforce risk controls during payment processing
|
|
59
|
+
attr_accessor :limit_type
|
|
60
|
+
|
|
61
|
+
attr_accessor :limit_value
|
|
62
|
+
|
|
63
|
+
attr_accessor :hierarchy
|
|
64
|
+
|
|
65
|
+
# The primary category of goods or services sold by the merchant (e.g., Electronics, Clothing, Travel Services). Used alongside MCC for granular risk profiling
|
|
66
|
+
attr_accessor :primary_goods
|
|
67
|
+
|
|
68
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
|
69
|
+
def self.attribute_map
|
|
70
|
+
{
|
|
71
|
+
:'name' => :'name',
|
|
72
|
+
:'url' => :'url',
|
|
73
|
+
:'email' => :'email',
|
|
74
|
+
:'phone_number' => :'phoneNumber',
|
|
75
|
+
:'risk_profile' => :'riskProfile',
|
|
76
|
+
:'authorized_signatories' => :'authorizedSignatories',
|
|
77
|
+
:'close_date' => :'closeDate',
|
|
78
|
+
:'country_incorporated' => :'countryIncorporated',
|
|
79
|
+
:'credit_score' => :'creditScore',
|
|
80
|
+
:'date_of_establishment' => :'dateOfEstablishment',
|
|
81
|
+
:'dateof_ownership_change' => :'dateofOwnershipChange',
|
|
82
|
+
:'ecommerce_support' => :'ecommerceSupport',
|
|
83
|
+
:'expected_average_ticket_size' => :'expectedAverageTicketSize',
|
|
84
|
+
:'expected_annual_sales' => :'expectedAnnualSales',
|
|
85
|
+
:'expected_monthly_sales' => :'expectedMonthlySales',
|
|
86
|
+
:'limit_type' => :'limitType',
|
|
87
|
+
:'limit_value' => :'limitValue',
|
|
88
|
+
:'hierarchy' => :'hierarchy',
|
|
89
|
+
:'primary_goods' => :'primaryGoods'
|
|
90
|
+
}
|
|
91
|
+
end
|
|
92
|
+
|
|
93
|
+
# Attribute mapping from JSON key to ruby-style variable name.
|
|
94
|
+
def self.json_map
|
|
95
|
+
{
|
|
96
|
+
:'name' => :'name',
|
|
97
|
+
:'url' => :'url',
|
|
98
|
+
:'email' => :'email',
|
|
99
|
+
:'phone_number' => :'phone_number',
|
|
100
|
+
:'risk_profile' => :'risk_profile',
|
|
101
|
+
:'authorized_signatories' => :'authorized_signatories',
|
|
102
|
+
:'close_date' => :'close_date',
|
|
103
|
+
:'country_incorporated' => :'country_incorporated',
|
|
104
|
+
:'credit_score' => :'credit_score',
|
|
105
|
+
:'date_of_establishment' => :'date_of_establishment',
|
|
106
|
+
:'dateof_ownership_change' => :'dateof_ownership_change',
|
|
107
|
+
:'ecommerce_support' => :'ecommerce_support',
|
|
108
|
+
:'expected_average_ticket_size' => :'expected_average_ticket_size',
|
|
109
|
+
:'expected_annual_sales' => :'expected_annual_sales',
|
|
110
|
+
:'expected_monthly_sales' => :'expected_monthly_sales',
|
|
111
|
+
:'limit_type' => :'limit_type',
|
|
112
|
+
:'limit_value' => :'limit_value',
|
|
113
|
+
:'hierarchy' => :'hierarchy',
|
|
114
|
+
:'primary_goods' => :'primary_goods'
|
|
115
|
+
}
|
|
116
|
+
end
|
|
117
|
+
|
|
118
|
+
# Attribute type mapping.
|
|
119
|
+
def self.swagger_types
|
|
120
|
+
{
|
|
121
|
+
:'name' => :'String',
|
|
122
|
+
:'url' => :'String',
|
|
123
|
+
:'email' => :'String',
|
|
124
|
+
:'phone_number' => :'String',
|
|
125
|
+
:'risk_profile' => :'String',
|
|
126
|
+
:'authorized_signatories' => :'String',
|
|
127
|
+
:'close_date' => :'String',
|
|
128
|
+
:'country_incorporated' => :'String',
|
|
129
|
+
:'credit_score' => :'Integer',
|
|
130
|
+
:'date_of_establishment' => :'String',
|
|
131
|
+
:'dateof_ownership_change' => :'String',
|
|
132
|
+
:'ecommerce_support' => :'String',
|
|
133
|
+
:'expected_average_ticket_size' => :'UnifiedriskMerchantMerchantDescriptorExpectedAverageTicketSize',
|
|
134
|
+
:'expected_annual_sales' => :'UnifiedriskMerchantMerchantDescriptorExpectedAnnualSales',
|
|
135
|
+
:'expected_monthly_sales' => :'UnifiedriskMerchantMerchantDescriptorExpectedMonthlySales',
|
|
136
|
+
:'limit_type' => :'String',
|
|
137
|
+
:'limit_value' => :'UnifiedriskMerchantMerchantDescriptorLimitValue',
|
|
138
|
+
:'hierarchy' => :'UnifiedriskMerchantMerchantDescriptorHierarchy',
|
|
139
|
+
:'primary_goods' => :'String'
|
|
140
|
+
}
|
|
141
|
+
end
|
|
142
|
+
|
|
143
|
+
# Initializes the object
|
|
144
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
145
|
+
def initialize(attributes = {})
|
|
146
|
+
return unless attributes.is_a?(Hash)
|
|
147
|
+
|
|
148
|
+
# convert string to symbol for hash key
|
|
149
|
+
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
|
150
|
+
|
|
151
|
+
if attributes.has_key?(:'name')
|
|
152
|
+
self.name = attributes[:'name']
|
|
153
|
+
end
|
|
154
|
+
|
|
155
|
+
if attributes.has_key?(:'url')
|
|
156
|
+
self.url = attributes[:'url']
|
|
157
|
+
end
|
|
158
|
+
|
|
159
|
+
if attributes.has_key?(:'email')
|
|
160
|
+
self.email = attributes[:'email']
|
|
161
|
+
end
|
|
162
|
+
|
|
163
|
+
if attributes.has_key?(:'phoneNumber')
|
|
164
|
+
self.phone_number = attributes[:'phoneNumber']
|
|
165
|
+
end
|
|
166
|
+
|
|
167
|
+
if attributes.has_key?(:'riskProfile')
|
|
168
|
+
self.risk_profile = attributes[:'riskProfile']
|
|
169
|
+
end
|
|
170
|
+
|
|
171
|
+
if attributes.has_key?(:'authorizedSignatories')
|
|
172
|
+
self.authorized_signatories = attributes[:'authorizedSignatories']
|
|
173
|
+
end
|
|
174
|
+
|
|
175
|
+
if attributes.has_key?(:'closeDate')
|
|
176
|
+
self.close_date = attributes[:'closeDate']
|
|
177
|
+
end
|
|
178
|
+
|
|
179
|
+
if attributes.has_key?(:'countryIncorporated')
|
|
180
|
+
self.country_incorporated = attributes[:'countryIncorporated']
|
|
181
|
+
end
|
|
182
|
+
|
|
183
|
+
if attributes.has_key?(:'creditScore')
|
|
184
|
+
self.credit_score = attributes[:'creditScore']
|
|
185
|
+
end
|
|
186
|
+
|
|
187
|
+
if attributes.has_key?(:'dateOfEstablishment')
|
|
188
|
+
self.date_of_establishment = attributes[:'dateOfEstablishment']
|
|
189
|
+
end
|
|
190
|
+
|
|
191
|
+
if attributes.has_key?(:'dateofOwnershipChange')
|
|
192
|
+
self.dateof_ownership_change = attributes[:'dateofOwnershipChange']
|
|
193
|
+
end
|
|
194
|
+
|
|
195
|
+
if attributes.has_key?(:'ecommerceSupport')
|
|
196
|
+
self.ecommerce_support = attributes[:'ecommerceSupport']
|
|
197
|
+
end
|
|
198
|
+
|
|
199
|
+
if attributes.has_key?(:'expectedAverageTicketSize')
|
|
200
|
+
self.expected_average_ticket_size = attributes[:'expectedAverageTicketSize']
|
|
201
|
+
end
|
|
202
|
+
|
|
203
|
+
if attributes.has_key?(:'expectedAnnualSales')
|
|
204
|
+
self.expected_annual_sales = attributes[:'expectedAnnualSales']
|
|
205
|
+
end
|
|
206
|
+
|
|
207
|
+
if attributes.has_key?(:'expectedMonthlySales')
|
|
208
|
+
self.expected_monthly_sales = attributes[:'expectedMonthlySales']
|
|
209
|
+
end
|
|
210
|
+
|
|
211
|
+
if attributes.has_key?(:'limitType')
|
|
212
|
+
self.limit_type = attributes[:'limitType']
|
|
213
|
+
end
|
|
214
|
+
|
|
215
|
+
if attributes.has_key?(:'limitValue')
|
|
216
|
+
self.limit_value = attributes[:'limitValue']
|
|
217
|
+
end
|
|
218
|
+
|
|
219
|
+
if attributes.has_key?(:'hierarchy')
|
|
220
|
+
self.hierarchy = attributes[:'hierarchy']
|
|
221
|
+
end
|
|
222
|
+
|
|
223
|
+
if attributes.has_key?(:'primaryGoods')
|
|
224
|
+
self.primary_goods = attributes[:'primaryGoods']
|
|
225
|
+
end
|
|
226
|
+
end
|
|
227
|
+
|
|
228
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
|
229
|
+
# @return Array for valid properties with the reasons
|
|
230
|
+
def list_invalid_properties
|
|
231
|
+
invalid_properties = Array.new
|
|
232
|
+
invalid_properties
|
|
233
|
+
end
|
|
234
|
+
|
|
235
|
+
# Check to see if the all the properties in the model are valid
|
|
236
|
+
# @return true if the model is valid
|
|
237
|
+
def valid?
|
|
238
|
+
true
|
|
239
|
+
end
|
|
240
|
+
|
|
241
|
+
# Custom attribute writer method with validation
|
|
242
|
+
# @param [Object] url Value to be assigned
|
|
243
|
+
def url=(url)
|
|
244
|
+
@url = url
|
|
245
|
+
end
|
|
246
|
+
|
|
247
|
+
# Checks equality by comparing each attribute.
|
|
248
|
+
# @param [Object] Object to be compared
|
|
249
|
+
def ==(o)
|
|
250
|
+
return true if self.equal?(o)
|
|
251
|
+
self.class == o.class &&
|
|
252
|
+
name == o.name &&
|
|
253
|
+
url == o.url &&
|
|
254
|
+
email == o.email &&
|
|
255
|
+
phone_number == o.phone_number &&
|
|
256
|
+
risk_profile == o.risk_profile &&
|
|
257
|
+
authorized_signatories == o.authorized_signatories &&
|
|
258
|
+
close_date == o.close_date &&
|
|
259
|
+
country_incorporated == o.country_incorporated &&
|
|
260
|
+
credit_score == o.credit_score &&
|
|
261
|
+
date_of_establishment == o.date_of_establishment &&
|
|
262
|
+
dateof_ownership_change == o.dateof_ownership_change &&
|
|
263
|
+
ecommerce_support == o.ecommerce_support &&
|
|
264
|
+
expected_average_ticket_size == o.expected_average_ticket_size &&
|
|
265
|
+
expected_annual_sales == o.expected_annual_sales &&
|
|
266
|
+
expected_monthly_sales == o.expected_monthly_sales &&
|
|
267
|
+
limit_type == o.limit_type &&
|
|
268
|
+
limit_value == o.limit_value &&
|
|
269
|
+
hierarchy == o.hierarchy &&
|
|
270
|
+
primary_goods == o.primary_goods
|
|
271
|
+
end
|
|
272
|
+
|
|
273
|
+
# @see the `==` method
|
|
274
|
+
# @param [Object] Object to be compared
|
|
275
|
+
def eql?(o)
|
|
276
|
+
self == o
|
|
277
|
+
end
|
|
278
|
+
|
|
279
|
+
# Calculates hash code according to all attributes.
|
|
280
|
+
# @return [Fixnum] Hash code
|
|
281
|
+
def hash
|
|
282
|
+
[name, url, email, phone_number, risk_profile, authorized_signatories, close_date, country_incorporated, credit_score, date_of_establishment, dateof_ownership_change, ecommerce_support, expected_average_ticket_size, expected_annual_sales, expected_monthly_sales, limit_type, limit_value, hierarchy, primary_goods].hash
|
|
283
|
+
end
|
|
284
|
+
|
|
285
|
+
# Builds the object from hash
|
|
286
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
287
|
+
# @return [Object] Returns the model itself
|
|
288
|
+
def build_from_hash(attributes)
|
|
289
|
+
return nil unless attributes.is_a?(Hash)
|
|
290
|
+
self.class.swagger_types.each_pair do |key, type|
|
|
291
|
+
if type =~ /\AArray<(.*)>/i
|
|
292
|
+
# check to ensure the input is an array given that the the attribute
|
|
293
|
+
# is documented as an array but the input is not
|
|
294
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
|
295
|
+
self.send("#{self.class.json_map[key]}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
|
296
|
+
end
|
|
297
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
|
298
|
+
self.send("#{self.class.json_map[key]}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
|
299
|
+
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
|
300
|
+
end
|
|
301
|
+
|
|
302
|
+
self
|
|
303
|
+
end
|
|
304
|
+
|
|
305
|
+
# Deserializes the data based on type
|
|
306
|
+
# @param string type Data type
|
|
307
|
+
# @param string value Value to be deserialized
|
|
308
|
+
# @return [Object] Deserialized data
|
|
309
|
+
def _deserialize(type, value)
|
|
310
|
+
case type.to_sym
|
|
311
|
+
when :DateTime
|
|
312
|
+
DateTime.parse(value)
|
|
313
|
+
when :Date
|
|
314
|
+
Date.parse(value)
|
|
315
|
+
when :String
|
|
316
|
+
value.to_s
|
|
317
|
+
when :Integer
|
|
318
|
+
value.to_i
|
|
319
|
+
when :Float
|
|
320
|
+
value.to_f
|
|
321
|
+
when :BOOLEAN
|
|
322
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
|
323
|
+
true
|
|
324
|
+
else
|
|
325
|
+
false
|
|
326
|
+
end
|
|
327
|
+
when :Object
|
|
328
|
+
# generic object (usually a Hash), return directly
|
|
329
|
+
value
|
|
330
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
|
331
|
+
inner_type = Regexp.last_match[:inner_type]
|
|
332
|
+
value.map { |v| _deserialize(inner_type, v) }
|
|
333
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
|
334
|
+
k_type = Regexp.last_match[:k_type]
|
|
335
|
+
v_type = Regexp.last_match[:v_type]
|
|
336
|
+
{}.tap do |hash|
|
|
337
|
+
value.each do |k, v|
|
|
338
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
|
339
|
+
end
|
|
340
|
+
end
|
|
341
|
+
else # model
|
|
342
|
+
temp_model = CyberSource.const_get(type).new
|
|
343
|
+
temp_model.build_from_hash(value)
|
|
344
|
+
end
|
|
345
|
+
end
|
|
346
|
+
|
|
347
|
+
# Returns the string representation of the object
|
|
348
|
+
# @return [String] String presentation of the object
|
|
349
|
+
def to_s
|
|
350
|
+
to_hash.to_s
|
|
351
|
+
end
|
|
352
|
+
|
|
353
|
+
# to_body is an alias to to_hash (backward compatibility)
|
|
354
|
+
# @return [Hash] Returns the object in the form of hash
|
|
355
|
+
def to_body
|
|
356
|
+
to_hash
|
|
357
|
+
end
|
|
358
|
+
|
|
359
|
+
# Returns the object in the form of hash
|
|
360
|
+
# @return [Hash] Returns the object in the form of hash
|
|
361
|
+
def to_hash
|
|
362
|
+
hash = {}
|
|
363
|
+
self.class.attribute_map.each_pair do |attr, param|
|
|
364
|
+
value = self.send(attr)
|
|
365
|
+
next if value.nil?
|
|
366
|
+
hash[param] = _to_hash(value)
|
|
367
|
+
end
|
|
368
|
+
hash
|
|
369
|
+
end
|
|
370
|
+
|
|
371
|
+
# Outputs non-array value in the form of hash
|
|
372
|
+
# For object, use to_hash. Otherwise, just return the value
|
|
373
|
+
# @param [Object] value Any valid value
|
|
374
|
+
# @return [Hash] Returns the value in the form of hash
|
|
375
|
+
def _to_hash(value)
|
|
376
|
+
if value.is_a?(Array)
|
|
377
|
+
value.compact.map { |v| _to_hash(v) }
|
|
378
|
+
elsif value.is_a?(Hash)
|
|
379
|
+
{}.tap do |hash|
|
|
380
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
|
381
|
+
end
|
|
382
|
+
elsif value.respond_to? :to_hash
|
|
383
|
+
value.to_hash
|
|
384
|
+
else
|
|
385
|
+
value
|
|
386
|
+
end
|
|
387
|
+
end
|
|
388
|
+
end
|
|
389
|
+
end
|
|
@@ -0,0 +1,268 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
#CyberSource Merged Spec
|
|
3
|
+
|
|
4
|
+
#All CyberSource API specs merged together. These are available at https://developer.cybersource.com/api/reference/api-reference.html
|
|
5
|
+
|
|
6
|
+
OpenAPI spec version: 0.0.1
|
|
7
|
+
|
|
8
|
+
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
|
9
|
+
Swagger Codegen version: 2.4.38
|
|
10
|
+
=end
|
|
11
|
+
|
|
12
|
+
require 'date'
|
|
13
|
+
|
|
14
|
+
module CyberSource
|
|
15
|
+
# Merchant's projected annual sales volume and value, declared during onboarding and used for risk threshold calibration
|
|
16
|
+
class UnifiedriskMerchantMerchantDescriptorExpectedAnnualSales
|
|
17
|
+
# Nested container for expected annual sales data
|
|
18
|
+
attr_accessor :expected_annual_sales
|
|
19
|
+
|
|
20
|
+
# ISO 4217 3-letter code for the base reference currency for annual sales
|
|
21
|
+
attr_accessor :base_currency
|
|
22
|
+
|
|
23
|
+
# Expected annual sales value in the base currency, in minor units
|
|
24
|
+
attr_accessor :base_value
|
|
25
|
+
|
|
26
|
+
# ISO 4217 3-letter currency code for the expected annual sales amount
|
|
27
|
+
attr_accessor :currency
|
|
28
|
+
|
|
29
|
+
# ISO 4217 3-letter code for the merchant's local currency for annual sales
|
|
30
|
+
attr_accessor :merchant_currency
|
|
31
|
+
|
|
32
|
+
# Expected annual sales in the merchant's local currency, in minor units
|
|
33
|
+
attr_accessor :merchant_value
|
|
34
|
+
|
|
35
|
+
# Expected annual sales amount in the specified currency, in minor units
|
|
36
|
+
attr_accessor :value
|
|
37
|
+
|
|
38
|
+
# Expected number of transactions per year, used alongside sales value for per-transaction risk profiling
|
|
39
|
+
attr_accessor :expected_annual_volume
|
|
40
|
+
|
|
41
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
|
42
|
+
def self.attribute_map
|
|
43
|
+
{
|
|
44
|
+
:'expected_annual_sales' => :'expectedAnnualSales',
|
|
45
|
+
:'base_currency' => :'baseCurrency',
|
|
46
|
+
:'base_value' => :'baseValue',
|
|
47
|
+
:'currency' => :'currency',
|
|
48
|
+
:'merchant_currency' => :'merchantCurrency',
|
|
49
|
+
:'merchant_value' => :'merchantValue',
|
|
50
|
+
:'value' => :'value',
|
|
51
|
+
:'expected_annual_volume' => :'expectedAnnualVolume'
|
|
52
|
+
}
|
|
53
|
+
end
|
|
54
|
+
|
|
55
|
+
# Attribute mapping from JSON key to ruby-style variable name.
|
|
56
|
+
def self.json_map
|
|
57
|
+
{
|
|
58
|
+
:'expected_annual_sales' => :'expected_annual_sales',
|
|
59
|
+
:'base_currency' => :'base_currency',
|
|
60
|
+
:'base_value' => :'base_value',
|
|
61
|
+
:'currency' => :'currency',
|
|
62
|
+
:'merchant_currency' => :'merchant_currency',
|
|
63
|
+
:'merchant_value' => :'merchant_value',
|
|
64
|
+
:'value' => :'value',
|
|
65
|
+
:'expected_annual_volume' => :'expected_annual_volume'
|
|
66
|
+
}
|
|
67
|
+
end
|
|
68
|
+
|
|
69
|
+
# Attribute type mapping.
|
|
70
|
+
def self.swagger_types
|
|
71
|
+
{
|
|
72
|
+
:'expected_annual_sales' => :'Object',
|
|
73
|
+
:'base_currency' => :'String',
|
|
74
|
+
:'base_value' => :'String',
|
|
75
|
+
:'currency' => :'String',
|
|
76
|
+
:'merchant_currency' => :'String',
|
|
77
|
+
:'merchant_value' => :'String',
|
|
78
|
+
:'value' => :'String',
|
|
79
|
+
:'expected_annual_volume' => :'Integer'
|
|
80
|
+
}
|
|
81
|
+
end
|
|
82
|
+
|
|
83
|
+
# Initializes the object
|
|
84
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
85
|
+
def initialize(attributes = {})
|
|
86
|
+
return unless attributes.is_a?(Hash)
|
|
87
|
+
|
|
88
|
+
# convert string to symbol for hash key
|
|
89
|
+
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
|
90
|
+
|
|
91
|
+
if attributes.has_key?(:'expectedAnnualSales')
|
|
92
|
+
self.expected_annual_sales = attributes[:'expectedAnnualSales']
|
|
93
|
+
end
|
|
94
|
+
|
|
95
|
+
if attributes.has_key?(:'baseCurrency')
|
|
96
|
+
self.base_currency = attributes[:'baseCurrency']
|
|
97
|
+
end
|
|
98
|
+
|
|
99
|
+
if attributes.has_key?(:'baseValue')
|
|
100
|
+
self.base_value = attributes[:'baseValue']
|
|
101
|
+
end
|
|
102
|
+
|
|
103
|
+
if attributes.has_key?(:'currency')
|
|
104
|
+
self.currency = attributes[:'currency']
|
|
105
|
+
end
|
|
106
|
+
|
|
107
|
+
if attributes.has_key?(:'merchantCurrency')
|
|
108
|
+
self.merchant_currency = attributes[:'merchantCurrency']
|
|
109
|
+
end
|
|
110
|
+
|
|
111
|
+
if attributes.has_key?(:'merchantValue')
|
|
112
|
+
self.merchant_value = attributes[:'merchantValue']
|
|
113
|
+
end
|
|
114
|
+
|
|
115
|
+
if attributes.has_key?(:'value')
|
|
116
|
+
self.value = attributes[:'value']
|
|
117
|
+
end
|
|
118
|
+
|
|
119
|
+
if attributes.has_key?(:'expectedAnnualVolume')
|
|
120
|
+
self.expected_annual_volume = attributes[:'expectedAnnualVolume']
|
|
121
|
+
end
|
|
122
|
+
end
|
|
123
|
+
|
|
124
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
|
125
|
+
# @return Array for valid properties with the reasons
|
|
126
|
+
def list_invalid_properties
|
|
127
|
+
invalid_properties = Array.new
|
|
128
|
+
invalid_properties
|
|
129
|
+
end
|
|
130
|
+
|
|
131
|
+
# Check to see if the all the properties in the model are valid
|
|
132
|
+
# @return true if the model is valid
|
|
133
|
+
def valid?
|
|
134
|
+
true
|
|
135
|
+
end
|
|
136
|
+
|
|
137
|
+
# Checks equality by comparing each attribute.
|
|
138
|
+
# @param [Object] Object to be compared
|
|
139
|
+
def ==(o)
|
|
140
|
+
return true if self.equal?(o)
|
|
141
|
+
self.class == o.class &&
|
|
142
|
+
expected_annual_sales == o.expected_annual_sales &&
|
|
143
|
+
base_currency == o.base_currency &&
|
|
144
|
+
base_value == o.base_value &&
|
|
145
|
+
currency == o.currency &&
|
|
146
|
+
merchant_currency == o.merchant_currency &&
|
|
147
|
+
merchant_value == o.merchant_value &&
|
|
148
|
+
value == o.value &&
|
|
149
|
+
expected_annual_volume == o.expected_annual_volume
|
|
150
|
+
end
|
|
151
|
+
|
|
152
|
+
# @see the `==` method
|
|
153
|
+
# @param [Object] Object to be compared
|
|
154
|
+
def eql?(o)
|
|
155
|
+
self == o
|
|
156
|
+
end
|
|
157
|
+
|
|
158
|
+
# Calculates hash code according to all attributes.
|
|
159
|
+
# @return [Fixnum] Hash code
|
|
160
|
+
def hash
|
|
161
|
+
[expected_annual_sales, base_currency, base_value, currency, merchant_currency, merchant_value, value, expected_annual_volume].hash
|
|
162
|
+
end
|
|
163
|
+
|
|
164
|
+
# Builds the object from hash
|
|
165
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
166
|
+
# @return [Object] Returns the model itself
|
|
167
|
+
def build_from_hash(attributes)
|
|
168
|
+
return nil unless attributes.is_a?(Hash)
|
|
169
|
+
self.class.swagger_types.each_pair do |key, type|
|
|
170
|
+
if type =~ /\AArray<(.*)>/i
|
|
171
|
+
# check to ensure the input is an array given that the the attribute
|
|
172
|
+
# is documented as an array but the input is not
|
|
173
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
|
174
|
+
self.send("#{self.class.json_map[key]}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
|
175
|
+
end
|
|
176
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
|
177
|
+
self.send("#{self.class.json_map[key]}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
|
178
|
+
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
|
179
|
+
end
|
|
180
|
+
|
|
181
|
+
self
|
|
182
|
+
end
|
|
183
|
+
|
|
184
|
+
# Deserializes the data based on type
|
|
185
|
+
# @param string type Data type
|
|
186
|
+
# @param string value Value to be deserialized
|
|
187
|
+
# @return [Object] Deserialized data
|
|
188
|
+
def _deserialize(type, value)
|
|
189
|
+
case type.to_sym
|
|
190
|
+
when :DateTime
|
|
191
|
+
DateTime.parse(value)
|
|
192
|
+
when :Date
|
|
193
|
+
Date.parse(value)
|
|
194
|
+
when :String
|
|
195
|
+
value.to_s
|
|
196
|
+
when :Integer
|
|
197
|
+
value.to_i
|
|
198
|
+
when :Float
|
|
199
|
+
value.to_f
|
|
200
|
+
when :BOOLEAN
|
|
201
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
|
202
|
+
true
|
|
203
|
+
else
|
|
204
|
+
false
|
|
205
|
+
end
|
|
206
|
+
when :Object
|
|
207
|
+
# generic object (usually a Hash), return directly
|
|
208
|
+
value
|
|
209
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
|
210
|
+
inner_type = Regexp.last_match[:inner_type]
|
|
211
|
+
value.map { |v| _deserialize(inner_type, v) }
|
|
212
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
|
213
|
+
k_type = Regexp.last_match[:k_type]
|
|
214
|
+
v_type = Regexp.last_match[:v_type]
|
|
215
|
+
{}.tap do |hash|
|
|
216
|
+
value.each do |k, v|
|
|
217
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
|
218
|
+
end
|
|
219
|
+
end
|
|
220
|
+
else # model
|
|
221
|
+
temp_model = CyberSource.const_get(type).new
|
|
222
|
+
temp_model.build_from_hash(value)
|
|
223
|
+
end
|
|
224
|
+
end
|
|
225
|
+
|
|
226
|
+
# Returns the string representation of the object
|
|
227
|
+
# @return [String] String presentation of the object
|
|
228
|
+
def to_s
|
|
229
|
+
to_hash.to_s
|
|
230
|
+
end
|
|
231
|
+
|
|
232
|
+
# to_body is an alias to to_hash (backward compatibility)
|
|
233
|
+
# @return [Hash] Returns the object in the form of hash
|
|
234
|
+
def to_body
|
|
235
|
+
to_hash
|
|
236
|
+
end
|
|
237
|
+
|
|
238
|
+
# Returns the object in the form of hash
|
|
239
|
+
# @return [Hash] Returns the object in the form of hash
|
|
240
|
+
def to_hash
|
|
241
|
+
hash = {}
|
|
242
|
+
self.class.attribute_map.each_pair do |attr, param|
|
|
243
|
+
value = self.send(attr)
|
|
244
|
+
next if value.nil?
|
|
245
|
+
hash[param] = _to_hash(value)
|
|
246
|
+
end
|
|
247
|
+
hash
|
|
248
|
+
end
|
|
249
|
+
|
|
250
|
+
# Outputs non-array value in the form of hash
|
|
251
|
+
# For object, use to_hash. Otherwise, just return the value
|
|
252
|
+
# @param [Object] value Any valid value
|
|
253
|
+
# @return [Hash] Returns the value in the form of hash
|
|
254
|
+
def _to_hash(value)
|
|
255
|
+
if value.is_a?(Array)
|
|
256
|
+
value.compact.map { |v| _to_hash(v) }
|
|
257
|
+
elsif value.is_a?(Hash)
|
|
258
|
+
{}.tap do |hash|
|
|
259
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
|
260
|
+
end
|
|
261
|
+
elsif value.respond_to? :to_hash
|
|
262
|
+
value.to_hash
|
|
263
|
+
else
|
|
264
|
+
value
|
|
265
|
+
end
|
|
266
|
+
end
|
|
267
|
+
end
|
|
268
|
+
end
|